@undefineds.co/xpod 0.2.30 → 0.2.32

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,51 +1,51 @@
1
- function zx(a,i){for(var o=0;o<i.length;o++){const s=i[o];if(typeof s!="string"&&!Array.isArray(s)){for(const f in s)if(f!=="default"&&!(f in a)){const d=Object.getOwnPropertyDescriptor(s,f);d&&Object.defineProperty(a,f,d.get?d:{enumerable:!0,get:()=>s[f]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))s(f);new MutationObserver(f=>{for(const d of f)if(d.type==="childList")for(const h of d.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&s(h)}).observe(document,{childList:!0,subtree:!0});function o(f){const d={};return f.integrity&&(d.integrity=f.integrity),f.referrerPolicy&&(d.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?d.credentials="include":f.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function s(f){if(f.ep)return;f.ep=!0;const d=o(f);fetch(f.href,d)}})();function hv(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var uu={exports:{}},Ai={};var pp;function Ox(){if(pp)return Ai;pp=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function o(s,f,d){var h=null;if(d!==void 0&&(h=""+d),f.key!==void 0&&(h=""+f.key),"key"in f){d={};for(var p in f)p!=="key"&&(d[p]=f[p])}else d=f;return f=d.ref,{$$typeof:a,type:s,key:h,ref:f!==void 0?f:null,props:d}}return Ai.Fragment=i,Ai.jsx=o,Ai.jsxs=o,Ai}var vp;function _x(){return vp||(vp=1,uu.exports=Ox()),uu.exports}var u=_x(),fu={exports:{}},ve={};var gp;function Dx(){if(gp)return ve;gp=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),h=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),C=Symbol.iterator;function j(N){return N===null||typeof N!="object"?null:(N=C&&N[C]||N["@@iterator"],typeof N=="function"?N:null)}var D={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,T={};function z(N,X,J){this.props=N,this.context=X,this.refs=T,this.updater=J||D}z.prototype.isReactComponent={},z.prototype.setState=function(N,X){if(typeof N!="object"&&typeof N!="function"&&N!=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,N,X,"setState")},z.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function R(){}R.prototype=z.prototype;function M(N,X,J){this.props=N,this.context=X,this.refs=T,this.updater=J||D}var q=M.prototype=new R;q.constructor=M,w(q,z.prototype),q.isPureReactComponent=!0;var Q=Array.isArray;function Z(){}var Y={H:null,A:null,T:null,S:null},le=Object.prototype.hasOwnProperty;function oe(N,X,J){var ee=J.ref;return{$$typeof:a,type:N,key:X,ref:ee!==void 0?ee:null,props:J}}function ae(N,X){return oe(N.type,X,N.props)}function se(N){return typeof N=="object"&&N!==null&&N.$$typeof===a}function W(N){var X={"=":"=0",":":"=2"};return"$"+N.replace(/[=:]/g,function(J){return X[J]})}var ce=/\/+/g;function I(N,X){return typeof N=="object"&&N!==null&&N.key!=null?W(""+N.key):X.toString(36)}function te(N){switch(N.status){case"fulfilled":return N.value;case"rejected":throw N.reason;default:switch(typeof N.status=="string"?N.then(Z,Z):(N.status="pending",N.then(function(X){N.status==="pending"&&(N.status="fulfilled",N.value=X)},function(X){N.status==="pending"&&(N.status="rejected",N.reason=X)})),N.status){case"fulfilled":return N.value;case"rejected":throw N.reason}}throw N}function O(N,X,J,ee,he){var pe=typeof N;(pe==="undefined"||pe==="boolean")&&(N=null);var $=!1;if(N===null)$=!0;else switch(pe){case"bigint":case"string":case"number":$=!0;break;case"object":switch(N.$$typeof){case a:case i:$=!0;break;case S:return $=N._init,O($(N._payload),X,J,ee,he)}}if($)return he=he(N),$=ee===""?"."+I(N,0):ee,Q(he)?(J="",$!=null&&(J=$.replace(ce,"$&/")+"/"),O(he,X,J,"",function(ue){return ue})):he!=null&&(se(he)&&(he=ae(he,J+(he.key==null||N&&N.key===he.key?"":(""+he.key).replace(ce,"$&/")+"/")+$)),X.push(he)),1;$=0;var be=ee===""?".":ee+":";if(Q(N))for(var P=0;P<N.length;P++)ee=N[P],pe=be+I(ee,P),$+=O(ee,X,J,pe,he);else if(P=j(N),typeof P=="function")for(N=P.call(N),P=0;!(ee=N.next()).done;)ee=ee.value,pe=be+I(ee,P++),$+=O(ee,X,J,pe,he);else if(pe==="object"){if(typeof N.then=="function")return O(te(N),X,J,ee,he);throw X=String(N),Error("Objects are not valid as a React child (found: "+(X==="[object Object]"?"object with keys {"+Object.keys(N).join(", ")+"}":X)+"). If you meant to render a collection of children, use an array instead.")}return $}function L(N,X,J){if(N==null)return N;var ee=[],he=0;return O(N,ee,"","",function(pe){return X.call(J,pe,he++)}),ee}function G(N){if(N._status===-1){var X=N._result;X=X(),X.then(function(J){(N._status===0||N._status===-1)&&(N._status=1,N._result=J)},function(J){(N._status===0||N._status===-1)&&(N._status=2,N._result=J)}),N._status===-1&&(N._status=0,N._result=X)}if(N._status===1)return N._result.default;throw N._result}var ne=typeof reportError=="function"?reportError:function(N){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var X=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof N=="object"&&N!==null&&typeof N.message=="string"?String(N.message):String(N),error:N});if(!window.dispatchEvent(X))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",N);return}console.error(N)},fe={map:L,forEach:function(N,X,J){L(N,function(){X.apply(this,arguments)},J)},count:function(N){var X=0;return L(N,function(){X++}),X},toArray:function(N){return L(N,function(X){return X})||[]},only:function(N){if(!se(N))throw Error("React.Children.only expected to receive a single React element child.");return N}};return ve.Activity=b,ve.Children=fe,ve.Component=z,ve.Fragment=o,ve.Profiler=f,ve.PureComponent=M,ve.StrictMode=s,ve.Suspense=v,ve.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Y,ve.__COMPILER_RUNTIME={__proto__:null,c:function(N){return Y.H.useMemoCache(N)}},ve.cache=function(N){return function(){return N.apply(null,arguments)}},ve.cacheSignal=function(){return null},ve.cloneElement=function(N,X,J){if(N==null)throw Error("The argument must be a React element, but you passed "+N+".");var ee=w({},N.props),he=N.key;if(X!=null)for(pe in X.key!==void 0&&(he=""+X.key),X)!le.call(X,pe)||pe==="key"||pe==="__self"||pe==="__source"||pe==="ref"&&X.ref===void 0||(ee[pe]=X[pe]);var pe=arguments.length-2;if(pe===1)ee.children=J;else if(1<pe){for(var $=Array(pe),be=0;be<pe;be++)$[be]=arguments[be+2];ee.children=$}return oe(N.type,he,ee)},ve.createContext=function(N){return N={$$typeof:h,_currentValue:N,_currentValue2:N,_threadCount:0,Provider:null,Consumer:null},N.Provider=N,N.Consumer={$$typeof:d,_context:N},N},ve.createElement=function(N,X,J){var ee,he={},pe=null;if(X!=null)for(ee in X.key!==void 0&&(pe=""+X.key),X)le.call(X,ee)&&ee!=="key"&&ee!=="__self"&&ee!=="__source"&&(he[ee]=X[ee]);var $=arguments.length-2;if($===1)he.children=J;else if(1<$){for(var be=Array($),P=0;P<$;P++)be[P]=arguments[P+2];he.children=be}if(N&&N.defaultProps)for(ee in $=N.defaultProps,$)he[ee]===void 0&&(he[ee]=$[ee]);return oe(N,pe,he)},ve.createRef=function(){return{current:null}},ve.forwardRef=function(N){return{$$typeof:p,render:N}},ve.isValidElement=se,ve.lazy=function(N){return{$$typeof:S,_payload:{_status:-1,_result:N},_init:G}},ve.memo=function(N,X){return{$$typeof:y,type:N,compare:X===void 0?null:X}},ve.startTransition=function(N){var X=Y.T,J={};Y.T=J;try{var ee=N(),he=Y.S;he!==null&&he(J,ee),typeof ee=="object"&&ee!==null&&typeof ee.then=="function"&&ee.then(Z,ne)}catch(pe){ne(pe)}finally{X!==null&&J.types!==null&&(X.types=J.types),Y.T=X}},ve.unstable_useCacheRefresh=function(){return Y.H.useCacheRefresh()},ve.use=function(N){return Y.H.use(N)},ve.useActionState=function(N,X,J){return Y.H.useActionState(N,X,J)},ve.useCallback=function(N,X){return Y.H.useCallback(N,X)},ve.useContext=function(N){return Y.H.useContext(N)},ve.useDebugValue=function(){},ve.useDeferredValue=function(N,X){return Y.H.useDeferredValue(N,X)},ve.useEffect=function(N,X){return Y.H.useEffect(N,X)},ve.useEffectEvent=function(N){return Y.H.useEffectEvent(N)},ve.useId=function(){return Y.H.useId()},ve.useImperativeHandle=function(N,X,J){return Y.H.useImperativeHandle(N,X,J)},ve.useInsertionEffect=function(N,X){return Y.H.useInsertionEffect(N,X)},ve.useLayoutEffect=function(N,X){return Y.H.useLayoutEffect(N,X)},ve.useMemo=function(N,X){return Y.H.useMemo(N,X)},ve.useOptimistic=function(N,X){return Y.H.useOptimistic(N,X)},ve.useReducer=function(N,X,J){return Y.H.useReducer(N,X,J)},ve.useRef=function(N){return Y.H.useRef(N)},ve.useState=function(N){return Y.H.useState(N)},ve.useSyncExternalStore=function(N,X,J){return Y.H.useSyncExternalStore(N,X,J)},ve.useTransition=function(){return Y.H.useTransition()},ve.version="19.2.3",ve}var yp;function Pu(){return yp||(yp=1,fu.exports=Dx()),fu.exports}var g=Pu();const Pt=hv(g),mv=zx({__proto__:null,default:Pt},[g]);var du={exports:{}},Ri={},hu={exports:{}},mu={};var xp;function Mx(){return xp||(xp=1,(function(a){function i(O,L){var G=O.length;O.push(L);e:for(;0<G;){var ne=G-1>>>1,fe=O[ne];if(0<f(fe,L))O[ne]=L,O[G]=fe,G=ne;else break e}}function o(O){return O.length===0?null:O[0]}function s(O){if(O.length===0)return null;var L=O[0],G=O.pop();if(G!==L){O[0]=G;e:for(var ne=0,fe=O.length,N=fe>>>1;ne<N;){var X=2*(ne+1)-1,J=O[X],ee=X+1,he=O[ee];if(0>f(J,G))ee<fe&&0>f(he,J)?(O[ne]=he,O[ee]=G,ne=ee):(O[ne]=J,O[X]=G,ne=X);else if(ee<fe&&0>f(he,G))O[ne]=he,O[ee]=G,ne=ee;else break e}}return L}function f(O,L){var G=O.sortIndex-L.sortIndex;return G!==0?G:O.id-L.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;a.unstable_now=function(){return d.now()}}else{var h=Date,p=h.now();a.unstable_now=function(){return h.now()-p}}var v=[],y=[],S=1,b=null,C=3,j=!1,D=!1,w=!1,T=!1,z=typeof setTimeout=="function"?setTimeout:null,R=typeof clearTimeout=="function"?clearTimeout:null,M=typeof setImmediate<"u"?setImmediate:null;function q(O){for(var L=o(y);L!==null;){if(L.callback===null)s(y);else if(L.startTime<=O)s(y),L.sortIndex=L.expirationTime,i(v,L);else break;L=o(y)}}function Q(O){if(w=!1,q(O),!D)if(o(v)!==null)D=!0,Z||(Z=!0,W());else{var L=o(y);L!==null&&te(Q,L.startTime-O)}}var Z=!1,Y=-1,le=5,oe=-1;function ae(){return T?!0:!(a.unstable_now()-oe<le)}function se(){if(T=!1,Z){var O=a.unstable_now();oe=O;var L=!0;try{e:{D=!1,w&&(w=!1,R(Y),Y=-1),j=!0;var G=C;try{t:{for(q(O),b=o(v);b!==null&&!(b.expirationTime>O&&ae());){var ne=b.callback;if(typeof ne=="function"){b.callback=null,C=b.priorityLevel;var fe=ne(b.expirationTime<=O);if(O=a.unstable_now(),typeof fe=="function"){b.callback=fe,q(O),L=!0;break t}b===o(v)&&s(v),q(O)}else s(v);b=o(v)}if(b!==null)L=!0;else{var N=o(y);N!==null&&te(Q,N.startTime-O),L=!1}}break e}finally{b=null,C=G,j=!1}L=void 0}}finally{L?W():Z=!1}}}var W;if(typeof M=="function")W=function(){M(se)};else if(typeof MessageChannel<"u"){var ce=new MessageChannel,I=ce.port2;ce.port1.onmessage=se,W=function(){I.postMessage(null)}}else W=function(){z(se,0)};function te(O,L){Y=z(function(){O(a.unstable_now())},L)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(O){O.callback=null},a.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"):le=0<O?Math.floor(1e3/O):5},a.unstable_getCurrentPriorityLevel=function(){return C},a.unstable_next=function(O){switch(C){case 1:case 2:case 3:var L=3;break;default:L=C}var G=C;C=L;try{return O()}finally{C=G}},a.unstable_requestPaint=function(){T=!0},a.unstable_runWithPriority=function(O,L){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var G=C;C=O;try{return L()}finally{C=G}},a.unstable_scheduleCallback=function(O,L,G){var ne=a.unstable_now();switch(typeof G=="object"&&G!==null?(G=G.delay,G=typeof G=="number"&&0<G?ne+G:ne):G=ne,O){case 1:var fe=-1;break;case 2:fe=250;break;case 5:fe=1073741823;break;case 4:fe=1e4;break;default:fe=5e3}return fe=G+fe,O={id:S++,callback:L,priorityLevel:O,startTime:G,expirationTime:fe,sortIndex:-1},G>ne?(O.sortIndex=G,i(y,O),o(v)===null&&O===o(y)&&(w?(R(Y),Y=-1):w=!0,te(Q,G-ne))):(O.sortIndex=fe,i(v,O),D||j||(D=!0,Z||(Z=!0,W()))),O},a.unstable_shouldYield=ae,a.unstable_wrapCallback=function(O){var L=C;return function(){var G=C;C=L;try{return O.apply(this,arguments)}finally{C=G}}}})(mu)),mu}var bp;function Lx(){return bp||(bp=1,hu.exports=Mx()),hu.exports}var pu={exports:{}},rt={};var Sp;function Ux(){if(Sp)return rt;Sp=1;var a=Pu();function i(v){var y="https://react.dev/errors/"+v;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var S=2;S<arguments.length;S++)y+="&args[]="+encodeURIComponent(arguments[S])}return"Minified React error #"+v+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var s={d:{f:o,r:function(){throw Error(i(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},f=Symbol.for("react.portal");function d(v,y,S){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:f,key:b==null?null:""+b,children:v,containerInfo:y,implementation:S}}var h=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(v,y){if(v==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}return rt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,rt.createPortal=function(v,y){var S=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error(i(299));return d(v,y,null,S)},rt.flushSync=function(v){var y=h.T,S=s.p;try{if(h.T=null,s.p=2,v)return v()}finally{h.T=y,s.p=S,s.d.f()}},rt.preconnect=function(v,y){typeof v=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,s.d.C(v,y))},rt.prefetchDNS=function(v){typeof v=="string"&&s.d.D(v)},rt.preinit=function(v,y){if(typeof v=="string"&&y&&typeof y.as=="string"){var S=y.as,b=p(S,y.crossOrigin),C=typeof y.integrity=="string"?y.integrity:void 0,j=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;S==="style"?s.d.S(v,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:b,integrity:C,fetchPriority:j}):S==="script"&&s.d.X(v,{crossOrigin:b,integrity:C,fetchPriority:j,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},rt.preinitModule=function(v,y){if(typeof v=="string")if(typeof y=="object"&&y!==null){if(y.as==null||y.as==="script"){var S=p(y.as,y.crossOrigin);s.d.M(v,{crossOrigin:S,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})}}else y==null&&s.d.M(v)},rt.preload=function(v,y){if(typeof v=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var S=y.as,b=p(S,y.crossOrigin);s.d.L(v,S,{crossOrigin:b,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0,type:typeof y.type=="string"?y.type:void 0,fetchPriority:typeof y.fetchPriority=="string"?y.fetchPriority:void 0,referrerPolicy:typeof y.referrerPolicy=="string"?y.referrerPolicy:void 0,imageSrcSet:typeof y.imageSrcSet=="string"?y.imageSrcSet:void 0,imageSizes:typeof y.imageSizes=="string"?y.imageSizes:void 0,media:typeof y.media=="string"?y.media:void 0})}},rt.preloadModule=function(v,y){if(typeof v=="string")if(y){var S=p(y.as,y.crossOrigin);s.d.m(v,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:S,integrity:typeof y.integrity=="string"?y.integrity:void 0})}else s.d.m(v)},rt.requestFormReset=function(v){s.d.r(v)},rt.unstable_batchedUpdates=function(v,y){return v(y)},rt.useFormState=function(v,y,S){return h.H.useFormState(v,y,S)},rt.useFormStatus=function(){return h.H.useHostTransitionStatus()},rt.version="19.2.3",rt}var wp;function pv(){if(wp)return pu.exports;wp=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),pu.exports=Ux(),pu.exports}var Ep;function Hx(){if(Ep)return Ri;Ep=1;var a=Lx(),i=Pu(),o=pv();function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function f(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function d(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function h(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function v(e){if(d(e)!==e)throw Error(s(188))}function y(e){var t=e.alternate;if(!t){if(t=d(e),t===null)throw Error(s(188));return t!==e?null:e}for(var n=e,l=t;;){var c=n.return;if(c===null)break;var r=c.alternate;if(r===null){if(l=c.return,l!==null){n=l;continue}break}if(c.child===r.child){for(r=c.child;r;){if(r===n)return v(c),e;if(r===l)return v(c),t;r=r.sibling}throw Error(s(188))}if(n.return!==l.return)n=c,l=r;else{for(var m=!1,x=c.child;x;){if(x===n){m=!0,n=c,l=r;break}if(x===l){m=!0,l=c,n=r;break}x=x.sibling}if(!m){for(x=r.child;x;){if(x===n){m=!0,n=r,l=c;break}if(x===l){m=!0,l=r,n=c;break}x=x.sibling}if(!m)throw Error(s(189))}}if(n.alternate!==l)throw Error(s(190))}if(n.tag!==3)throw Error(s(188));return n.stateNode.current===n?e:t}function S(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=S(e),t!==null)return t;e=e.sibling}return null}var b=Object.assign,C=Symbol.for("react.element"),j=Symbol.for("react.transitional.element"),D=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),z=Symbol.for("react.profiler"),R=Symbol.for("react.consumer"),M=Symbol.for("react.context"),q=Symbol.for("react.forward_ref"),Q=Symbol.for("react.suspense"),Z=Symbol.for("react.suspense_list"),Y=Symbol.for("react.memo"),le=Symbol.for("react.lazy"),oe=Symbol.for("react.activity"),ae=Symbol.for("react.memo_cache_sentinel"),se=Symbol.iterator;function W(e){return e===null||typeof e!="object"?null:(e=se&&e[se]||e["@@iterator"],typeof e=="function"?e:null)}var ce=Symbol.for("react.client.reference");function I(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ce?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case w:return"Fragment";case z:return"Profiler";case T:return"StrictMode";case Q:return"Suspense";case Z:return"SuspenseList";case oe:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case D:return"Portal";case M:return e.displayName||"Context";case R:return(e._context.displayName||"Context")+".Consumer";case q:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Y:return t=e.displayName||null,t!==null?t:I(e.type)||"Memo";case le:t=e._payload,e=e._init;try{return I(e(t))}catch{}}return null}var te=Array.isArray,O=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,L=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G={pending:!1,data:null,method:null,action:null},ne=[],fe=-1;function N(e){return{current:e}}function X(e){0>fe||(e.current=ne[fe],ne[fe]=null,fe--)}function J(e,t){fe++,ne[fe]=e.current,e.current=t}var ee=N(null),he=N(null),pe=N(null),$=N(null);function be(e,t){switch(J(pe,t),J(he,e),J(ee,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Bm(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Bm(t),e=km(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}X(ee),J(ee,e)}function P(){X(ee),X(he),X(pe)}function ue(e){e.memoizedState!==null&&J($,e);var t=ee.current,n=km(t,e.type);t!==n&&(J(he,e),J(ee,n))}function ge(e){he.current===e&&(X(ee),X(he)),$.current===e&&(X($),Ci._currentValue=G)}var Ae,tt;function st(e){if(Ae===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ae=t&&t[1]||"",tt=-1<n.stack.indexOf(`
1
+ function Lx(a,i){for(var r=0;r<i.length;r++){const o=i[r];if(typeof o!="string"&&!Array.isArray(o)){for(const f in o)if(f!=="default"&&!(f in a)){const d=Object.getOwnPropertyDescriptor(o,f);d&&Object.defineProperty(a,f,d.get?d:{enumerable:!0,get:()=>o[f]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))o(f);new MutationObserver(f=>{for(const d of f)if(d.type==="childList")for(const h of d.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&o(h)}).observe(document,{childList:!0,subtree:!0});function r(f){const d={};return f.integrity&&(d.integrity=f.integrity),f.referrerPolicy&&(d.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?d.credentials="include":f.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function o(f){if(f.ep)return;f.ep=!0;const d=r(f);fetch(f.href,d)}})();function xv(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var du={exports:{}},Ri={};var xp;function Ux(){if(xp)return Ri;xp=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function r(o,f,d){var h=null;if(d!==void 0&&(h=""+d),f.key!==void 0&&(h=""+f.key),"key"in f){d={};for(var p in f)p!=="key"&&(d[p]=f[p])}else d=f;return f=d.ref,{$$typeof:a,type:o,key:h,ref:f!==void 0?f:null,props:d}}return Ri.Fragment=i,Ri.jsx=r,Ri.jsxs=r,Ri}var bp;function Hx(){return bp||(bp=1,du.exports=Ux()),du.exports}var u=Hx(),hu={exports:{}},ye={};var Sp;function Bx(){if(Sp)return ye;Sp=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),h=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),C=Symbol.iterator;function j(N){return N===null||typeof N!="object"?null:(N=C&&N[C]||N["@@iterator"],typeof N=="function"?N:null)}var D={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,A={};function z(N,G,Z){this.props=N,this.context=G,this.refs=A,this.updater=Z||D}z.prototype.isReactComponent={},z.prototype.setState=function(N,G){if(typeof N!="object"&&typeof N!="function"&&N!=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,N,G,"setState")},z.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function R(){}R.prototype=z.prototype;function M(N,G,Z){this.props=N,this.context=G,this.refs=A,this.updater=Z||D}var q=M.prototype=new R;q.constructor=M,w(q,z.prototype),q.isPureReactComponent=!0;var Q=Array.isArray;function P(){}var Y={H:null,A:null,T:null,S:null},ne=Object.prototype.hasOwnProperty;function le(N,G,Z){var I=Z.ref;return{$$typeof:a,type:N,key:G,ref:I!==void 0?I:null,props:Z}}function se(N,G){return le(N.type,G,N.props)}function ue(N){return typeof N=="object"&&N!==null&&N.$$typeof===a}function $(N){var G={"=":"=0",":":"=2"};return"$"+N.replace(/[=:]/g,function(Z){return G[Z]})}var te=/\/+/g;function ee(N,G){return typeof N=="object"&&N!==null&&N.key!=null?$(""+N.key):G.toString(36)}function fe(N){switch(N.status){case"fulfilled":return N.value;case"rejected":throw N.reason;default:switch(typeof N.status=="string"?N.then(P,P):(N.status="pending",N.then(function(G){N.status==="pending"&&(N.status="fulfilled",N.value=G)},function(G){N.status==="pending"&&(N.status="rejected",N.reason=G)})),N.status){case"fulfilled":return N.value;case"rejected":throw N.reason}}throw N}function _(N,G,Z,I,re){var he=typeof N;(he==="undefined"||he==="boolean")&&(N=null);var J=!1;if(N===null)J=!0;else switch(he){case"bigint":case"string":case"number":J=!0;break;case"object":switch(N.$$typeof){case a:case i:J=!0;break;case S:return J=N._init,_(J(N._payload),G,Z,I,re)}}if(J)return re=re(N),J=I===""?"."+ee(N,0):I,Q(re)?(Z="",J!=null&&(Z=J.replace(te,"$&/")+"/"),_(re,G,Z,"",function(ie){return ie})):re!=null&&(ue(re)&&(re=se(re,Z+(re.key==null||N&&N.key===re.key?"":(""+re.key).replace(te,"$&/")+"/")+J)),G.push(re)),1;J=0;var ve=I===""?".":I+":";if(Q(N))for(var W=0;W<N.length;W++)I=N[W],he=ve+ee(I,W),J+=_(I,G,Z,he,re);else if(W=j(N),typeof W=="function")for(N=W.call(N),W=0;!(I=N.next()).done;)I=I.value,he=ve+ee(I,W++),J+=_(I,G,Z,he,re);else if(he==="object"){if(typeof N.then=="function")return _(fe(N),G,Z,I,re);throw G=String(N),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(N).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return J}function L(N,G,Z){if(N==null)return N;var I=[],re=0;return _(N,I,"","",function(he){return G.call(Z,he,re++)}),I}function V(N){if(N._status===-1){var G=N._result;G=G(),G.then(function(Z){(N._status===0||N._status===-1)&&(N._status=1,N._result=Z)},function(Z){(N._status===0||N._status===-1)&&(N._status=2,N._result=Z)}),N._status===-1&&(N._status=0,N._result=G)}if(N._status===1)return N._result.default;throw N._result}var ae=typeof reportError=="function"?reportError:function(N){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var G=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof N=="object"&&N!==null&&typeof N.message=="string"?String(N.message):String(N),error:N});if(!window.dispatchEvent(G))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",N);return}console.error(N)},pe={map:L,forEach:function(N,G,Z){L(N,function(){G.apply(this,arguments)},Z)},count:function(N){var G=0;return L(N,function(){G++}),G},toArray:function(N){return L(N,function(G){return G})||[]},only:function(N){if(!ue(N))throw Error("React.Children.only expected to receive a single React element child.");return N}};return ye.Activity=b,ye.Children=pe,ye.Component=z,ye.Fragment=r,ye.Profiler=f,ye.PureComponent=M,ye.StrictMode=o,ye.Suspense=v,ye.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Y,ye.__COMPILER_RUNTIME={__proto__:null,c:function(N){return Y.H.useMemoCache(N)}},ye.cache=function(N){return function(){return N.apply(null,arguments)}},ye.cacheSignal=function(){return null},ye.cloneElement=function(N,G,Z){if(N==null)throw Error("The argument must be a React element, but you passed "+N+".");var I=w({},N.props),re=N.key;if(G!=null)for(he in G.key!==void 0&&(re=""+G.key),G)!ne.call(G,he)||he==="key"||he==="__self"||he==="__source"||he==="ref"&&G.ref===void 0||(I[he]=G[he]);var he=arguments.length-2;if(he===1)I.children=Z;else if(1<he){for(var J=Array(he),ve=0;ve<he;ve++)J[ve]=arguments[ve+2];I.children=J}return le(N.type,re,I)},ye.createContext=function(N){return N={$$typeof:h,_currentValue:N,_currentValue2:N,_threadCount:0,Provider:null,Consumer:null},N.Provider=N,N.Consumer={$$typeof:d,_context:N},N},ye.createElement=function(N,G,Z){var I,re={},he=null;if(G!=null)for(I in G.key!==void 0&&(he=""+G.key),G)ne.call(G,I)&&I!=="key"&&I!=="__self"&&I!=="__source"&&(re[I]=G[I]);var J=arguments.length-2;if(J===1)re.children=Z;else if(1<J){for(var ve=Array(J),W=0;W<J;W++)ve[W]=arguments[W+2];re.children=ve}if(N&&N.defaultProps)for(I in J=N.defaultProps,J)re[I]===void 0&&(re[I]=J[I]);return le(N,he,re)},ye.createRef=function(){return{current:null}},ye.forwardRef=function(N){return{$$typeof:p,render:N}},ye.isValidElement=ue,ye.lazy=function(N){return{$$typeof:S,_payload:{_status:-1,_result:N},_init:V}},ye.memo=function(N,G){return{$$typeof:y,type:N,compare:G===void 0?null:G}},ye.startTransition=function(N){var G=Y.T,Z={};Y.T=Z;try{var I=N(),re=Y.S;re!==null&&re(Z,I),typeof I=="object"&&I!==null&&typeof I.then=="function"&&I.then(P,ae)}catch(he){ae(he)}finally{G!==null&&Z.types!==null&&(G.types=Z.types),Y.T=G}},ye.unstable_useCacheRefresh=function(){return Y.H.useCacheRefresh()},ye.use=function(N){return Y.H.use(N)},ye.useActionState=function(N,G,Z){return Y.H.useActionState(N,G,Z)},ye.useCallback=function(N,G){return Y.H.useCallback(N,G)},ye.useContext=function(N){return Y.H.useContext(N)},ye.useDebugValue=function(){},ye.useDeferredValue=function(N,G){return Y.H.useDeferredValue(N,G)},ye.useEffect=function(N,G){return Y.H.useEffect(N,G)},ye.useEffectEvent=function(N){return Y.H.useEffectEvent(N)},ye.useId=function(){return Y.H.useId()},ye.useImperativeHandle=function(N,G,Z){return Y.H.useImperativeHandle(N,G,Z)},ye.useInsertionEffect=function(N,G){return Y.H.useInsertionEffect(N,G)},ye.useLayoutEffect=function(N,G){return Y.H.useLayoutEffect(N,G)},ye.useMemo=function(N,G){return Y.H.useMemo(N,G)},ye.useOptimistic=function(N,G){return Y.H.useOptimistic(N,G)},ye.useReducer=function(N,G,Z){return Y.H.useReducer(N,G,Z)},ye.useRef=function(N){return Y.H.useRef(N)},ye.useState=function(N){return Y.H.useState(N)},ye.useSyncExternalStore=function(N,G,Z){return Y.H.useSyncExternalStore(N,G,Z)},ye.useTransition=function(){return Y.H.useTransition()},ye.version="19.2.3",ye}var wp;function Iu(){return wp||(wp=1,hu.exports=Bx()),hu.exports}var g=Iu();const Jt=xv(g),bv=Lx({__proto__:null,default:Jt},[g]);var mu={exports:{}},zi={},pu={exports:{}},vu={};var Ep;function kx(){return Ep||(Ep=1,(function(a){function i(_,L){var V=_.length;_.push(L);e:for(;0<V;){var ae=V-1>>>1,pe=_[ae];if(0<f(pe,L))_[ae]=L,_[V]=pe,V=ae;else break e}}function r(_){return _.length===0?null:_[0]}function o(_){if(_.length===0)return null;var L=_[0],V=_.pop();if(V!==L){_[0]=V;e:for(var ae=0,pe=_.length,N=pe>>>1;ae<N;){var G=2*(ae+1)-1,Z=_[G],I=G+1,re=_[I];if(0>f(Z,V))I<pe&&0>f(re,Z)?(_[ae]=re,_[I]=V,ae=I):(_[ae]=Z,_[G]=V,ae=G);else if(I<pe&&0>f(re,V))_[ae]=re,_[I]=V,ae=I;else break e}}return L}function f(_,L){var V=_.sortIndex-L.sortIndex;return V!==0?V:_.id-L.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;a.unstable_now=function(){return d.now()}}else{var h=Date,p=h.now();a.unstable_now=function(){return h.now()-p}}var v=[],y=[],S=1,b=null,C=3,j=!1,D=!1,w=!1,A=!1,z=typeof setTimeout=="function"?setTimeout:null,R=typeof clearTimeout=="function"?clearTimeout:null,M=typeof setImmediate<"u"?setImmediate:null;function q(_){for(var L=r(y);L!==null;){if(L.callback===null)o(y);else if(L.startTime<=_)o(y),L.sortIndex=L.expirationTime,i(v,L);else break;L=r(y)}}function Q(_){if(w=!1,q(_),!D)if(r(v)!==null)D=!0,P||(P=!0,$());else{var L=r(y);L!==null&&fe(Q,L.startTime-_)}}var P=!1,Y=-1,ne=5,le=-1;function se(){return A?!0:!(a.unstable_now()-le<ne)}function ue(){if(A=!1,P){var _=a.unstable_now();le=_;var L=!0;try{e:{D=!1,w&&(w=!1,R(Y),Y=-1),j=!0;var V=C;try{t:{for(q(_),b=r(v);b!==null&&!(b.expirationTime>_&&se());){var ae=b.callback;if(typeof ae=="function"){b.callback=null,C=b.priorityLevel;var pe=ae(b.expirationTime<=_);if(_=a.unstable_now(),typeof pe=="function"){b.callback=pe,q(_),L=!0;break t}b===r(v)&&o(v),q(_)}else o(v);b=r(v)}if(b!==null)L=!0;else{var N=r(y);N!==null&&fe(Q,N.startTime-_),L=!1}}break e}finally{b=null,C=V,j=!1}L=void 0}}finally{L?$():P=!1}}}var $;if(typeof M=="function")$=function(){M(ue)};else if(typeof MessageChannel<"u"){var te=new MessageChannel,ee=te.port2;te.port1.onmessage=ue,$=function(){ee.postMessage(null)}}else $=function(){z(ue,0)};function fe(_,L){Y=z(function(){_(a.unstable_now())},L)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(_){_.callback=null},a.unstable_forceFrameRate=function(_){0>_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ne=0<_?Math.floor(1e3/_):5},a.unstable_getCurrentPriorityLevel=function(){return C},a.unstable_next=function(_){switch(C){case 1:case 2:case 3:var L=3;break;default:L=C}var V=C;C=L;try{return _()}finally{C=V}},a.unstable_requestPaint=function(){A=!0},a.unstable_runWithPriority=function(_,L){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var V=C;C=_;try{return L()}finally{C=V}},a.unstable_scheduleCallback=function(_,L,V){var ae=a.unstable_now();switch(typeof V=="object"&&V!==null?(V=V.delay,V=typeof V=="number"&&0<V?ae+V:ae):V=ae,_){case 1:var pe=-1;break;case 2:pe=250;break;case 5:pe=1073741823;break;case 4:pe=1e4;break;default:pe=5e3}return pe=V+pe,_={id:S++,callback:L,priorityLevel:_,startTime:V,expirationTime:pe,sortIndex:-1},V>ae?(_.sortIndex=V,i(y,_),r(v)===null&&_===r(y)&&(w?(R(Y),Y=-1):w=!0,fe(Q,V-ae))):(_.sortIndex=pe,i(v,_),D||j||(D=!0,P||(P=!0,$()))),_},a.unstable_shouldYield=se,a.unstable_wrapCallback=function(_){var L=C;return function(){var V=C;C=L;try{return _.apply(this,arguments)}finally{C=V}}}})(vu)),vu}var Cp;function Yx(){return Cp||(Cp=1,pu.exports=kx()),pu.exports}var gu={exports:{}},ut={};var Np;function qx(){if(Np)return ut;Np=1;var a=Iu();function i(v){var y="https://react.dev/errors/"+v;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var S=2;S<arguments.length;S++)y+="&args[]="+encodeURIComponent(arguments[S])}return"Minified React error #"+v+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var o={d:{f:r,r:function(){throw Error(i(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},f=Symbol.for("react.portal");function d(v,y,S){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:f,key:b==null?null:""+b,children:v,containerInfo:y,implementation:S}}var h=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(v,y){if(v==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}return ut.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,ut.createPortal=function(v,y){var S=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error(i(299));return d(v,y,null,S)},ut.flushSync=function(v){var y=h.T,S=o.p;try{if(h.T=null,o.p=2,v)return v()}finally{h.T=y,o.p=S,o.d.f()}},ut.preconnect=function(v,y){typeof v=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,o.d.C(v,y))},ut.prefetchDNS=function(v){typeof v=="string"&&o.d.D(v)},ut.preinit=function(v,y){if(typeof v=="string"&&y&&typeof y.as=="string"){var S=y.as,b=p(S,y.crossOrigin),C=typeof y.integrity=="string"?y.integrity:void 0,j=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;S==="style"?o.d.S(v,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:b,integrity:C,fetchPriority:j}):S==="script"&&o.d.X(v,{crossOrigin:b,integrity:C,fetchPriority:j,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},ut.preinitModule=function(v,y){if(typeof v=="string")if(typeof y=="object"&&y!==null){if(y.as==null||y.as==="script"){var S=p(y.as,y.crossOrigin);o.d.M(v,{crossOrigin:S,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})}}else y==null&&o.d.M(v)},ut.preload=function(v,y){if(typeof v=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var S=y.as,b=p(S,y.crossOrigin);o.d.L(v,S,{crossOrigin:b,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0,type:typeof y.type=="string"?y.type:void 0,fetchPriority:typeof y.fetchPriority=="string"?y.fetchPriority:void 0,referrerPolicy:typeof y.referrerPolicy=="string"?y.referrerPolicy:void 0,imageSrcSet:typeof y.imageSrcSet=="string"?y.imageSrcSet:void 0,imageSizes:typeof y.imageSizes=="string"?y.imageSizes:void 0,media:typeof y.media=="string"?y.media:void 0})}},ut.preloadModule=function(v,y){if(typeof v=="string")if(y){var S=p(y.as,y.crossOrigin);o.d.m(v,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:S,integrity:typeof y.integrity=="string"?y.integrity:void 0})}else o.d.m(v)},ut.requestFormReset=function(v){o.d.r(v)},ut.unstable_batchedUpdates=function(v,y){return v(y)},ut.useFormState=function(v,y,S){return h.H.useFormState(v,y,S)},ut.useFormStatus=function(){return h.H.useHostTransitionStatus()},ut.version="19.2.3",ut}var jp;function Sv(){if(jp)return gu.exports;jp=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),gu.exports=qx(),gu.exports}var Ap;function Vx(){if(Ap)return zi;Ap=1;var a=Yx(),i=Iu(),r=Sv();function o(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function f(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function d(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function h(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function v(e){if(d(e)!==e)throw Error(o(188))}function y(e){var t=e.alternate;if(!t){if(t=d(e),t===null)throw Error(o(188));return t!==e?null:e}for(var n=e,l=t;;){var c=n.return;if(c===null)break;var s=c.alternate;if(s===null){if(l=c.return,l!==null){n=l;continue}break}if(c.child===s.child){for(s=c.child;s;){if(s===n)return v(c),e;if(s===l)return v(c),t;s=s.sibling}throw Error(o(188))}if(n.return!==l.return)n=c,l=s;else{for(var m=!1,x=c.child;x;){if(x===n){m=!0,n=c,l=s;break}if(x===l){m=!0,l=c,n=s;break}x=x.sibling}if(!m){for(x=s.child;x;){if(x===n){m=!0,n=s,l=c;break}if(x===l){m=!0,l=s,n=c;break}x=x.sibling}if(!m)throw Error(o(189))}}if(n.alternate!==l)throw Error(o(190))}if(n.tag!==3)throw Error(o(188));return n.stateNode.current===n?e:t}function S(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=S(e),t!==null)return t;e=e.sibling}return null}var b=Object.assign,C=Symbol.for("react.element"),j=Symbol.for("react.transitional.element"),D=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),z=Symbol.for("react.profiler"),R=Symbol.for("react.consumer"),M=Symbol.for("react.context"),q=Symbol.for("react.forward_ref"),Q=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),Y=Symbol.for("react.memo"),ne=Symbol.for("react.lazy"),le=Symbol.for("react.activity"),se=Symbol.for("react.memo_cache_sentinel"),ue=Symbol.iterator;function $(e){return e===null||typeof e!="object"?null:(e=ue&&e[ue]||e["@@iterator"],typeof e=="function"?e:null)}var te=Symbol.for("react.client.reference");function ee(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===te?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case w:return"Fragment";case z:return"Profiler";case A:return"StrictMode";case Q:return"Suspense";case P:return"SuspenseList";case le:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case D:return"Portal";case M:return e.displayName||"Context";case R:return(e._context.displayName||"Context")+".Consumer";case q:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Y:return t=e.displayName||null,t!==null?t:ee(e.type)||"Memo";case ne:t=e._payload,e=e._init;try{return ee(e(t))}catch{}}return null}var fe=Array.isArray,_=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,L=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V={pending:!1,data:null,method:null,action:null},ae=[],pe=-1;function N(e){return{current:e}}function G(e){0>pe||(e.current=ae[pe],ae[pe]=null,pe--)}function Z(e,t){pe++,ae[pe]=e.current,e.current=t}var I=N(null),re=N(null),he=N(null),J=N(null);function ve(e,t){switch(Z(he,t),Z(re,e),Z(I,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Vm(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Vm(t),e=Xm(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}G(I),Z(I,e)}function W(){G(I),G(re),G(he)}function ie(e){e.memoizedState!==null&&Z(J,e);var t=I.current,n=Xm(t,e.type);t!==n&&(Z(re,e),Z(I,n))}function ge(e){re.current===e&&(G(I),G(re)),J.current===e&&(G(J),Ni._currentValue=V)}var Ne,Ye;function et(e){if(Ne===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ne=t&&t[1]||"",Ye=-1<n.stack.indexOf(`
2
2
  at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
3
- `+Ae+e+tt}var hl=!1;function ml(e,t){if(!e||hl)return"";hl=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var K=function(){throw Error()};if(Object.defineProperty(K.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(K,[])}catch(k){var B=k}Reflect.construct(e,[],K)}else{try{K.call()}catch(k){B=k}e.call(K.prototype)}}else{try{throw Error()}catch(k){B=k}(K=e())&&typeof K.catch=="function"&&K.catch(function(){})}}catch(k){if(k&&B&&typeof k.stack=="string")return[k.stack,B.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var c=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");c&&c.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var r=l.DetermineComponentFrameRoot(),m=r[0],x=r[1];if(m&&x){var E=m.split(`
3
+ `+Ne+e+Ye}var dn=!1;function tt(e,t){if(!e||dn)return"";dn=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var K=function(){throw Error()};if(Object.defineProperty(K.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(K,[])}catch(k){var B=k}Reflect.construct(e,[],K)}else{try{K.call()}catch(k){B=k}e.call(K.prototype)}}else{try{throw Error()}catch(k){B=k}(K=e())&&typeof K.catch=="function"&&K.catch(function(){})}}catch(k){if(k&&B&&typeof k.stack=="string")return[k.stack,B.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var c=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");c&&c.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var s=l.DetermineComponentFrameRoot(),m=s[0],x=s[1];if(m&&x){var E=m.split(`
4
4
  `),H=x.split(`
5
- `);for(c=l=0;l<E.length&&!E[l].includes("DetermineComponentFrameRoot");)l++;for(;c<H.length&&!H[c].includes("DetermineComponentFrameRoot");)c++;if(l===E.length||c===H.length)for(l=E.length-1,c=H.length-1;1<=l&&0<=c&&E[l]!==H[c];)c--;for(;1<=l&&0<=c;l--,c--)if(E[l]!==H[c]){if(l!==1||c!==1)do if(l--,c--,0>c||E[l]!==H[c]){var V=`
6
- `+E[l].replace(" at new "," at ");return e.displayName&&V.includes("<anonymous>")&&(V=V.replace("<anonymous>",e.displayName)),V}while(1<=l&&0<=c);break}}}finally{hl=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?st(n):""}function La(e,t){switch(e.tag){case 26:case 27:case 5:return st(e.type);case 16:return st("Lazy");case 13:return e.child!==t&&t!==null?st("Suspense Fallback"):st("Suspense");case 19:return st("SuspenseList");case 0:case 15:return ml(e.type,!1);case 11:return ml(e.type.render,!1);case 1:return ml(e.type,!0);case 31:return st("Activity");default:return""}}function pf(e){try{var t="",n=null;do t+=La(e,n),n=e,e=e.return;while(e);return t}catch(l){return`
5
+ `);for(c=l=0;l<E.length&&!E[l].includes("DetermineComponentFrameRoot");)l++;for(;c<H.length&&!H[c].includes("DetermineComponentFrameRoot");)c++;if(l===E.length||c===H.length)for(l=E.length-1,c=H.length-1;1<=l&&0<=c&&E[l]!==H[c];)c--;for(;1<=l&&0<=c;l--,c--)if(E[l]!==H[c]){if(l!==1||c!==1)do if(l--,c--,0>c||E[l]!==H[c]){var X=`
6
+ `+E[l].replace(" at new "," at ");return e.displayName&&X.includes("<anonymous>")&&(X=X.replace("<anonymous>",e.displayName)),X}while(1<=l&&0<=c);break}}}finally{dn=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?et(n):""}function kn(e,t){switch(e.tag){case 26:case 27:case 5:return et(e.type);case 16:return et("Lazy");case 13:return e.child!==t&&t!==null?et("Suspense Fallback"):et("Suspense");case 19:return et("SuspenseList");case 0:case 15:return tt(e.type,!1);case 11:return tt(e.type.render,!1);case 1:return tt(e.type,!0);case 31:return et("Activity");default:return""}}function xf(e){try{var t="",n=null;do t+=kn(e,n),n=e,e=e.return;while(e);return t}catch(l){return`
7
7
  Error generating stack: `+l.message+`
8
- `+l.stack}}var Po=Object.prototype.hasOwnProperty,Jo=a.unstable_scheduleCallback,Wo=a.unstable_cancelCallback,ry=a.unstable_shouldYield,sy=a.unstable_requestPaint,xt=a.unstable_now,uy=a.unstable_getCurrentPriorityLevel,vf=a.unstable_ImmediatePriority,gf=a.unstable_UserBlockingPriority,Pi=a.unstable_NormalPriority,fy=a.unstable_LowPriority,yf=a.unstable_IdlePriority,dy=a.log,hy=a.unstable_setDisableYieldValue,Ua=null,bt=null;function Hn(e){if(typeof dy=="function"&&hy(e),bt&&typeof bt.setStrictMode=="function")try{bt.setStrictMode(Ua,e)}catch{}}var St=Math.clz32?Math.clz32:vy,my=Math.log,py=Math.LN2;function vy(e){return e>>>=0,e===0?32:31-(my(e)/py|0)|0}var Ji=256,Wi=262144,$i=4194304;function pl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ii(e,t,n){var l=e.pendingLanes;if(l===0)return 0;var c=0,r=e.suspendedLanes,m=e.pingedLanes;e=e.warmLanes;var x=l&134217727;return x!==0?(l=x&~r,l!==0?c=pl(l):(m&=x,m!==0?c=pl(m):n||(n=x&~e,n!==0&&(c=pl(n))))):(x=l&~r,x!==0?c=pl(x):m!==0?c=pl(m):n||(n=l&~e,n!==0&&(c=pl(n)))),c===0?0:t!==0&&t!==c&&(t&r)===0&&(r=c&-c,n=t&-t,r>=n||r===32&&(n&4194048)!==0)?t:c}function Ha(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function gy(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function xf(){var e=$i;return $i<<=1,($i&62914560)===0&&($i=4194304),e}function $o(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ba(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function yy(e,t,n,l,c,r){var m=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var x=e.entanglements,E=e.expirationTimes,H=e.hiddenUpdates;for(n=m&~n;0<n;){var V=31-St(n),K=1<<V;x[V]=0,E[V]=-1;var B=H[V];if(B!==null)for(H[V]=null,V=0;V<B.length;V++){var k=B[V];k!==null&&(k.lane&=-536870913)}n&=~K}l!==0&&bf(e,l,0),r!==0&&c===0&&e.tag!==0&&(e.suspendedLanes|=r&~(m&~t))}function bf(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-St(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|n&261930}function Sf(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var l=31-St(n),c=1<<l;c&t|e[l]&t&&(e[l]|=t),n&=~c}}function wf(e,t){var n=t&-t;return n=(n&42)!==0?1:Io(n),(n&(e.suspendedLanes|t))!==0?0:n}function Io(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function er(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Ef(){var e=L.p;return e!==0?e:(e=window.event,e===void 0?32:rp(e.type))}function Cf(e,t){var n=L.p;try{return L.p=e,t()}finally{L.p=n}}var Bn=Math.random().toString(36).slice(2),nt="__reactFiber$"+Bn,ft="__reactProps$"+Bn,Hl="__reactContainer$"+Bn,tr="__reactEvents$"+Bn,xy="__reactListeners$"+Bn,by="__reactHandles$"+Bn,Nf="__reactResources$"+Bn,ka="__reactMarker$"+Bn;function nr(e){delete e[nt],delete e[ft],delete e[tr],delete e[xy],delete e[by]}function Bl(e){var t=e[nt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Hl]||n[nt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Km(e);e!==null;){if(n=e[nt])return n;e=Km(e)}return t}e=n,n=e.parentNode}return null}function kl(e){if(e=e[nt]||e[Hl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ya(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function Yl(e){var t=e[Nf];return t||(t=e[Nf]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ie(e){e[ka]=!0}var jf=new Set,Tf={};function vl(e,t){ql(e,t),ql(e+"Capture",t)}function ql(e,t){for(Tf[e]=t,e=0;e<t.length;e++)jf.add(t[e])}var Sy=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]*$"),Af={},Rf={};function wy(e){return Po.call(Rf,e)?!0:Po.call(Af,e)?!1:Sy.test(e)?Rf[e]=!0:(Af[e]=!0,!1)}function ec(e,t,n){if(wy(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function tc(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function fn(e,t,n,l){if(l===null)e.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+l)}}function Lt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function zf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ey(e,t,n){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var c=l.get,r=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return c.call(this)},set:function(m){n=""+m,r.call(this,m)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return n},setValue:function(m){n=""+m},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function lr(e){if(!e._valueTracker){var t=zf(e)?"checked":"value";e._valueTracker=Ey(e,t,""+e[t])}}function Of(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),l="";return e&&(l=zf(e)?e.checked?"true":"false":e.value),e=l,e!==n?(t.setValue(e),!0):!1}function nc(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Cy=/[\n"\\]/g;function Ut(e){return e.replace(Cy,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function ar(e,t,n,l,c,r,m,x){e.name="",m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?e.type=m:e.removeAttribute("type"),t!=null?m==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Lt(t)):e.value!==""+Lt(t)&&(e.value=""+Lt(t)):m!=="submit"&&m!=="reset"||e.removeAttribute("value"),t!=null?ir(e,m,Lt(t)):n!=null?ir(e,m,Lt(n)):l!=null&&e.removeAttribute("value"),c==null&&r!=null&&(e.defaultChecked=!!r),c!=null&&(e.checked=c&&typeof c!="function"&&typeof c!="symbol"),x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?e.name=""+Lt(x):e.removeAttribute("name")}function _f(e,t,n,l,c,r,m,x){if(r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(e.type=r),t!=null||n!=null){if(!(r!=="submit"&&r!=="reset"||t!=null)){lr(e);return}n=n!=null?""+Lt(n):"",t=t!=null?""+Lt(t):n,x||t===e.value||(e.value=t),e.defaultValue=t}l=l??c,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=x?e.checked:!!l,e.defaultChecked=!!l,m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(e.name=m),lr(e)}function ir(e,t,n){t==="number"&&nc(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Vl(e,t,n,l){if(e=e.options,t){t={};for(var c=0;c<n.length;c++)t["$"+n[c]]=!0;for(n=0;n<e.length;n++)c=t.hasOwnProperty("$"+e[n].value),e[n].selected!==c&&(e[n].selected=c),c&&l&&(e[n].defaultSelected=!0)}else{for(n=""+Lt(n),t=null,c=0;c<e.length;c++){if(e[c].value===n){e[c].selected=!0,l&&(e[c].defaultSelected=!0);return}t!==null||e[c].disabled||(t=e[c])}t!==null&&(t.selected=!0)}}function Df(e,t,n){if(t!=null&&(t=""+Lt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Lt(n):""}function Mf(e,t,n,l){if(t==null){if(l!=null){if(n!=null)throw Error(s(92));if(te(l)){if(1<l.length)throw Error(s(93));l=l[0]}n=l}n==null&&(n=""),t=n}n=Lt(t),e.defaultValue=n,l=e.textContent,l===n&&l!==""&&l!==null&&(e.value=l),lr(e)}function Xl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}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 Lf(e,t,n){var l=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,n):typeof n!="number"||n===0||Ny.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Uf(e,t,n){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,n!=null){for(var l in n)!n.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var c in t)l=t[c],t.hasOwnProperty(c)&&n[c]!==l&&Lf(e,c,l)}else for(var r in t)t.hasOwnProperty(r)&&Lf(e,r,t[r])}function cr(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var jy=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"]]),Ty=/^[\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 lc(e){return Ty.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function dn(){}var or=null;function rr(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Gl=null,Fl=null;function Hf(e){var t=kl(e);if(t&&(e=t.stateNode)){var n=e[ft]||null;e:switch(e=t.stateNode,t.type){case"input":if(ar(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Ut(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var l=n[t];if(l!==e&&l.form===e.form){var c=l[ft]||null;if(!c)throw Error(s(90));ar(l,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name)}}for(t=0;t<n.length;t++)l=n[t],l.form===e.form&&Of(l)}break e;case"textarea":Df(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Vl(e,!!n.multiple,t,!1)}}}var sr=!1;function Bf(e,t,n){if(sr)return e(t,n);sr=!0;try{var l=e(t);return l}finally{if(sr=!1,(Gl!==null||Fl!==null)&&(Gc(),Gl&&(t=Gl,e=Fl,Fl=Gl=null,Hf(t),e)))for(t=0;t<e.length;t++)Hf(e[t])}}function qa(e,t){var n=e.stateNode;if(n===null)return null;var l=n[ft]||null;if(l===null)return null;n=l[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(s(231,t,typeof n));return n}var hn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ur=!1;if(hn)try{var Va={};Object.defineProperty(Va,"passive",{get:function(){ur=!0}}),window.addEventListener("test",Va,Va),window.removeEventListener("test",Va,Va)}catch{ur=!1}var kn=null,fr=null,ac=null;function kf(){if(ac)return ac;var e,t=fr,n=t.length,l,c="value"in kn?kn.value:kn.textContent,r=c.length;for(e=0;e<n&&t[e]===c[e];e++);var m=n-e;for(l=1;l<=m&&t[n-l]===c[r-l];l++);return ac=c.slice(e,1<l?1-l:void 0)}function ic(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function cc(){return!0}function Yf(){return!1}function dt(e){function t(n,l,c,r,m){this._reactName=n,this._targetInst=c,this.type=l,this.nativeEvent=r,this.target=m,this.currentTarget=null;for(var x in e)e.hasOwnProperty(x)&&(n=e[x],this[x]=n?n(r):r[x]);return this.isDefaultPrevented=(r.defaultPrevented!=null?r.defaultPrevented:r.returnValue===!1)?cc:Yf,this.isPropagationStopped=Yf,this}return b(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=cc)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=cc)},persist:function(){},isPersistent:cc}),t}var gl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},oc=dt(gl),Xa=b({},gl,{view:0,detail:0}),Ay=dt(Xa),dr,hr,Ga,rc=b({},Xa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:pr,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Ga&&(Ga&&e.type==="mousemove"?(dr=e.screenX-Ga.screenX,hr=e.screenY-Ga.screenY):hr=dr=0,Ga=e),dr)},movementY:function(e){return"movementY"in e?e.movementY:hr}}),qf=dt(rc),Ry=b({},rc,{dataTransfer:0}),zy=dt(Ry),Oy=b({},Xa,{relatedTarget:0}),mr=dt(Oy),_y=b({},gl,{animationName:0,elapsedTime:0,pseudoElement:0}),Dy=dt(_y),My=b({},gl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Ly=dt(My),Uy=b({},gl,{data:0}),Vf=dt(Uy),Hy={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},By={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"},ky={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Yy(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=ky[e])?!!t[e]:!1}function pr(){return Yy}var qy=b({},Xa,{key:function(e){if(e.key){var t=Hy[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ic(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?By[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:pr,charCode:function(e){return e.type==="keypress"?ic(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ic(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Vy=dt(qy),Xy=b({},rc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Xf=dt(Xy),Gy=b({},Xa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:pr}),Fy=dt(Gy),Ky=b({},gl,{propertyName:0,elapsedTime:0,pseudoElement:0}),Qy=dt(Ky),Zy=b({},rc,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Py=dt(Zy),Jy=b({},gl,{newState:0,oldState:0}),Wy=dt(Jy),$y=[9,13,27,32],vr=hn&&"CompositionEvent"in window,Fa=null;hn&&"documentMode"in document&&(Fa=document.documentMode);var Iy=hn&&"TextEvent"in window&&!Fa,Gf=hn&&(!vr||Fa&&8<Fa&&11>=Fa),Ff=" ",Kf=!1;function Qf(e,t){switch(e){case"keyup":return $y.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Zf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Kl=!1;function e0(e,t){switch(e){case"compositionend":return Zf(t);case"keypress":return t.which!==32?null:(Kf=!0,Ff);case"textInput":return e=t.data,e===Ff&&Kf?null:e;default:return null}}function t0(e,t){if(Kl)return e==="compositionend"||!vr&&Qf(e,t)?(e=kf(),ac=fr=kn=null,Kl=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Gf&&t.locale!=="ko"?null:t.data;default:return null}}var n0={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 Pf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!n0[e.type]:t==="textarea"}function Jf(e,t,n,l){Gl?Fl?Fl.push(l):Fl=[l]:Gl=l,t=Wc(t,"onChange"),0<t.length&&(n=new oc("onChange","change",null,n,l),e.push({event:n,listeners:t}))}var Ka=null,Qa=null;function l0(e){_m(e,0)}function sc(e){var t=Ya(e);if(Of(t))return e}function Wf(e,t){if(e==="change")return t}var $f=!1;if(hn){var gr;if(hn){var yr="oninput"in document;if(!yr){var If=document.createElement("div");If.setAttribute("oninput","return;"),yr=typeof If.oninput=="function"}gr=yr}else gr=!1;$f=gr&&(!document.documentMode||9<document.documentMode)}function ed(){Ka&&(Ka.detachEvent("onpropertychange",td),Qa=Ka=null)}function td(e){if(e.propertyName==="value"&&sc(Qa)){var t=[];Jf(t,Qa,e,rr(e)),Bf(l0,t)}}function a0(e,t,n){e==="focusin"?(ed(),Ka=t,Qa=n,Ka.attachEvent("onpropertychange",td)):e==="focusout"&&ed()}function i0(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return sc(Qa)}function c0(e,t){if(e==="click")return sc(t)}function o0(e,t){if(e==="input"||e==="change")return sc(t)}function r0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var wt=typeof Object.is=="function"?Object.is:r0;function Za(e,t){if(wt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),l=Object.keys(t);if(n.length!==l.length)return!1;for(l=0;l<n.length;l++){var c=n[l];if(!Po.call(t,c)||!wt(e[c],t[c]))return!1}return!0}function nd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ld(e,t){var n=nd(e);e=0;for(var l;n;){if(n.nodeType===3){if(l=e+n.textContent.length,e<=t&&l>=t)return{node:n,offset:t-e};e=l}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=nd(n)}}function ad(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ad(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function id(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=nc(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=nc(e.document)}return t}function xr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var s0=hn&&"documentMode"in document&&11>=document.documentMode,Ql=null,br=null,Pa=null,Sr=!1;function cd(e,t,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Sr||Ql==null||Ql!==nc(l)||(l=Ql,"selectionStart"in l&&xr(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Pa&&Za(Pa,l)||(Pa=l,l=Wc(br,"onSelect"),0<l.length&&(t=new oc("onSelect","select",null,t,n),e.push({event:t,listeners:l}),t.target=Ql)))}function yl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Zl={animationend:yl("Animation","AnimationEnd"),animationiteration:yl("Animation","AnimationIteration"),animationstart:yl("Animation","AnimationStart"),transitionrun:yl("Transition","TransitionRun"),transitionstart:yl("Transition","TransitionStart"),transitioncancel:yl("Transition","TransitionCancel"),transitionend:yl("Transition","TransitionEnd")},wr={},od={};hn&&(od=document.createElement("div").style,"AnimationEvent"in window||(delete Zl.animationend.animation,delete Zl.animationiteration.animation,delete Zl.animationstart.animation),"TransitionEvent"in window||delete Zl.transitionend.transition);function xl(e){if(wr[e])return wr[e];if(!Zl[e])return e;var t=Zl[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in od)return wr[e]=t[n];return e}var rd=xl("animationend"),sd=xl("animationiteration"),ud=xl("animationstart"),u0=xl("transitionrun"),f0=xl("transitionstart"),d0=xl("transitioncancel"),fd=xl("transitionend"),dd=new Map,Er="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(" ");Er.push("scrollEnd");function Ft(e,t){dd.set(e,t),vl(t,[e])}var uc=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Ht=[],Pl=0,Cr=0;function fc(){for(var e=Pl,t=Cr=Pl=0;t<e;){var n=Ht[t];Ht[t++]=null;var l=Ht[t];Ht[t++]=null;var c=Ht[t];Ht[t++]=null;var r=Ht[t];if(Ht[t++]=null,l!==null&&c!==null){var m=l.pending;m===null?c.next=c:(c.next=m.next,m.next=c),l.pending=c}r!==0&&hd(n,c,r)}}function dc(e,t,n,l){Ht[Pl++]=e,Ht[Pl++]=t,Ht[Pl++]=n,Ht[Pl++]=l,Cr|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function Nr(e,t,n,l){return dc(e,t,n,l),hc(e)}function bl(e,t){return dc(e,null,null,t),hc(e)}function hd(e,t,n){e.lanes|=n;var l=e.alternate;l!==null&&(l.lanes|=n);for(var c=!1,r=e.return;r!==null;)r.childLanes|=n,l=r.alternate,l!==null&&(l.childLanes|=n),r.tag===22&&(e=r.stateNode,e===null||e._visibility&1||(c=!0)),e=r,r=r.return;return e.tag===3?(r=e.stateNode,c&&t!==null&&(c=31-St(n),e=r.hiddenUpdates,l=e[c],l===null?e[c]=[t]:l.push(t),t.lane=n|536870912),r):null}function hc(e){if(50<gi)throw gi=0,Ms=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Jl={};function h0(e,t,n,l){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Et(e,t,n,l){return new h0(e,t,n,l)}function jr(e){return e=e.prototype,!(!e||!e.isReactComponent)}function mn(e,t){var n=e.alternate;return n===null?(n=Et(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function md(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function mc(e,t,n,l,c,r){var m=0;if(l=e,typeof e=="function")jr(e)&&(m=1);else if(typeof e=="string")m=yx(e,n,ee.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case oe:return e=Et(31,n,t,c),e.elementType=oe,e.lanes=r,e;case w:return Sl(n.children,c,r,t);case T:m=8,c|=24;break;case z:return e=Et(12,n,t,c|2),e.elementType=z,e.lanes=r,e;case Q:return e=Et(13,n,t,c),e.elementType=Q,e.lanes=r,e;case Z:return e=Et(19,n,t,c),e.elementType=Z,e.lanes=r,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case M:m=10;break e;case R:m=9;break e;case q:m=11;break e;case Y:m=14;break e;case le:m=16,l=null;break e}m=29,n=Error(s(130,e===null?"null":typeof e,"")),l=null}return t=Et(m,n,t,c),t.elementType=e,t.type=l,t.lanes=r,t}function Sl(e,t,n,l){return e=Et(7,e,l,t),e.lanes=n,e}function Tr(e,t,n){return e=Et(6,e,null,t),e.lanes=n,e}function pd(e){var t=Et(18,null,null,0);return t.stateNode=e,t}function Ar(e,t,n){return t=Et(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var vd=new WeakMap;function Bt(e,t){if(typeof e=="object"&&e!==null){var n=vd.get(e);return n!==void 0?n:(t={value:e,source:t,stack:pf(t)},vd.set(e,t),t)}return{value:e,source:t,stack:pf(t)}}var Wl=[],$l=0,pc=null,Ja=0,kt=[],Yt=0,Yn=null,It=1,en="";function pn(e,t){Wl[$l++]=Ja,Wl[$l++]=pc,pc=e,Ja=t}function gd(e,t,n){kt[Yt++]=It,kt[Yt++]=en,kt[Yt++]=Yn,Yn=e;var l=It;e=en;var c=32-St(l)-1;l&=~(1<<c),n+=1;var r=32-St(t)+c;if(30<r){var m=c-c%5;r=(l&(1<<m)-1).toString(32),l>>=m,c-=m,It=1<<32-St(t)+c|n<<c|l,en=r+e}else It=1<<r|n<<c|l,en=e}function Rr(e){e.return!==null&&(pn(e,1),gd(e,1,0))}function zr(e){for(;e===pc;)pc=Wl[--$l],Wl[$l]=null,Ja=Wl[--$l],Wl[$l]=null;for(;e===Yn;)Yn=kt[--Yt],kt[Yt]=null,en=kt[--Yt],kt[Yt]=null,It=kt[--Yt],kt[Yt]=null}function yd(e,t){kt[Yt++]=It,kt[Yt++]=en,kt[Yt++]=Yn,It=t.id,en=t.overflow,Yn=e}var lt=null,Ue=null,Ne=!1,qn=null,qt=!1,Or=Error(s(519));function Vn(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Wa(Bt(t,e)),Or}function xd(e){var t=e.stateNode,n=e.type,l=e.memoizedProps;switch(t[nt]=e,t[ft]=l,n){case"dialog":we("cancel",t),we("close",t);break;case"iframe":case"object":case"embed":we("load",t);break;case"video":case"audio":for(n=0;n<xi.length;n++)we(xi[n],t);break;case"source":we("error",t);break;case"img":case"image":case"link":we("error",t),we("load",t);break;case"details":we("toggle",t);break;case"input":we("invalid",t),_f(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":we("invalid",t);break;case"textarea":we("invalid",t),Mf(t,l.value,l.defaultValue,l.children)}n=l.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||l.suppressHydrationWarning===!0||Um(t.textContent,n)?(l.popover!=null&&(we("beforetoggle",t),we("toggle",t)),l.onScroll!=null&&we("scroll",t),l.onScrollEnd!=null&&we("scrollend",t),l.onClick!=null&&(t.onclick=dn),t=!0):t=!1,t||Vn(e,!0)}function bd(e){for(lt=e.return;lt;)switch(lt.tag){case 5:case 31:case 13:qt=!1;return;case 27:case 3:qt=!0;return;default:lt=lt.return}}function Il(e){if(e!==lt)return!1;if(!Ne)return bd(e),Ne=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Ps(e.type,e.memoizedProps)),n=!n),n&&Ue&&Vn(e),bd(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Ue=Fm(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Ue=Fm(e)}else t===27?(t=Ue,nl(e.type)?(e=eu,eu=null,Ue=e):Ue=t):Ue=lt?Xt(e.stateNode.nextSibling):null;return!0}function wl(){Ue=lt=null,Ne=!1}function _r(){var e=qn;return e!==null&&(vt===null?vt=e:vt.push.apply(vt,e),qn=null),e}function Wa(e){qn===null?qn=[e]:qn.push(e)}var Dr=N(null),El=null,vn=null;function Xn(e,t,n){J(Dr,t._currentValue),t._currentValue=n}function gn(e){e._currentValue=Dr.current,X(Dr)}function Mr(e,t,n){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===n)break;e=e.return}}function Lr(e,t,n,l){var c=e.child;for(c!==null&&(c.return=e);c!==null;){var r=c.dependencies;if(r!==null){var m=c.child;r=r.firstContext;e:for(;r!==null;){var x=r;r=c;for(var E=0;E<t.length;E++)if(x.context===t[E]){r.lanes|=n,x=r.alternate,x!==null&&(x.lanes|=n),Mr(r.return,n,e),l||(m=null);break e}r=x.next}}else if(c.tag===18){if(m=c.return,m===null)throw Error(s(341));m.lanes|=n,r=m.alternate,r!==null&&(r.lanes|=n),Mr(m,n,e),m=null}else m=c.child;if(m!==null)m.return=c;else for(m=c;m!==null;){if(m===e){m=null;break}if(c=m.sibling,c!==null){c.return=m.return,m=c;break}m=m.return}c=m}}function ea(e,t,n,l){e=null;for(var c=t,r=!1;c!==null;){if(!r){if((c.flags&524288)!==0)r=!0;else if((c.flags&262144)!==0)break}if(c.tag===10){var m=c.alternate;if(m===null)throw Error(s(387));if(m=m.memoizedProps,m!==null){var x=c.type;wt(c.pendingProps.value,m.value)||(e!==null?e.push(x):e=[x])}}else if(c===$.current){if(m=c.alternate,m===null)throw Error(s(387));m.memoizedState.memoizedState!==c.memoizedState.memoizedState&&(e!==null?e.push(Ci):e=[Ci])}c=c.return}e!==null&&Lr(t,e,n,l),t.flags|=262144}function vc(e){for(e=e.firstContext;e!==null;){if(!wt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Cl(e){El=e,vn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function at(e){return Sd(El,e)}function gc(e,t){return El===null&&Cl(e),Sd(e,t)}function Sd(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},vn===null){if(e===null)throw Error(s(308));vn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else vn=vn.next=t;return n}var m0=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},p0=a.unstable_scheduleCallback,v0=a.unstable_NormalPriority,Ke={$$typeof:M,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ur(){return{controller:new m0,data:new Map,refCount:0}}function $a(e){e.refCount--,e.refCount===0&&p0(v0,function(){e.controller.abort()})}var Ia=null,Hr=0,ta=0,na=null;function g0(e,t){if(Ia===null){var n=Ia=[];Hr=0,ta=Ys(),na={status:"pending",value:void 0,then:function(l){n.push(l)}}}return Hr++,t.then(wd,wd),t}function wd(){if(--Hr===0&&Ia!==null){na!==null&&(na.status="fulfilled");var e=Ia;Ia=null,ta=0,na=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function y0(e,t){var n=[],l={status:"pending",value:null,reason:null,then:function(c){n.push(c)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var c=0;c<n.length;c++)(0,n[c])(t)},function(c){for(l.status="rejected",l.reason=c,c=0;c<n.length;c++)(0,n[c])(void 0)}),l}var Ed=O.S;O.S=function(e,t){cm=xt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&g0(e,t),Ed!==null&&Ed(e,t)};var Nl=N(null);function Br(){var e=Nl.current;return e!==null?e:Le.pooledCache}function yc(e,t){t===null?J(Nl,Nl.current):J(Nl,t.pool)}function Cd(){var e=Br();return e===null?null:{parent:Ke._currentValue,pool:e}}var la=Error(s(460)),kr=Error(s(474)),xc=Error(s(542)),bc={then:function(){}};function Nd(e){return e=e.status,e==="fulfilled"||e==="rejected"}function jd(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(dn,dn),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Ad(e),e;default:if(typeof t.status=="string")t.then(dn,dn);else{if(e=Le,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var c=t;c.status="fulfilled",c.value=l}},function(l){if(t.status==="pending"){var c=t;c.status="rejected",c.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Ad(e),e}throw Tl=t,la}}function jl(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Tl=n,la):n}}var Tl=null;function Td(){if(Tl===null)throw Error(s(459));var e=Tl;return Tl=null,e}function Ad(e){if(e===la||e===xc)throw Error(s(483))}var aa=null,ei=0;function Sc(e){var t=ei;return ei+=1,aa===null&&(aa=[]),jd(aa,e,t)}function ti(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function wc(e,t){throw t.$$typeof===C?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Rd(e){function t(_,A){if(e){var U=_.deletions;U===null?(_.deletions=[A],_.flags|=16):U.push(A)}}function n(_,A){if(!e)return null;for(;A!==null;)t(_,A),A=A.sibling;return null}function l(_){for(var A=new Map;_!==null;)_.key!==null?A.set(_.key,_):A.set(_.index,_),_=_.sibling;return A}function c(_,A){return _=mn(_,A),_.index=0,_.sibling=null,_}function r(_,A,U){return _.index=U,e?(U=_.alternate,U!==null?(U=U.index,U<A?(_.flags|=67108866,A):U):(_.flags|=67108866,A)):(_.flags|=1048576,A)}function m(_){return e&&_.alternate===null&&(_.flags|=67108866),_}function x(_,A,U,F){return A===null||A.tag!==6?(A=Tr(U,_.mode,F),A.return=_,A):(A=c(A,U),A.return=_,A)}function E(_,A,U,F){var de=U.type;return de===w?V(_,A,U.props.children,F,U.key):A!==null&&(A.elementType===de||typeof de=="object"&&de!==null&&de.$$typeof===le&&jl(de)===A.type)?(A=c(A,U.props),ti(A,U),A.return=_,A):(A=mc(U.type,U.key,U.props,null,_.mode,F),ti(A,U),A.return=_,A)}function H(_,A,U,F){return A===null||A.tag!==4||A.stateNode.containerInfo!==U.containerInfo||A.stateNode.implementation!==U.implementation?(A=Ar(U,_.mode,F),A.return=_,A):(A=c(A,U.children||[]),A.return=_,A)}function V(_,A,U,F,de){return A===null||A.tag!==7?(A=Sl(U,_.mode,F,de),A.return=_,A):(A=c(A,U),A.return=_,A)}function K(_,A,U){if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return A=Tr(""+A,_.mode,U),A.return=_,A;if(typeof A=="object"&&A!==null){switch(A.$$typeof){case j:return U=mc(A.type,A.key,A.props,null,_.mode,U),ti(U,A),U.return=_,U;case D:return A=Ar(A,_.mode,U),A.return=_,A;case le:return A=jl(A),K(_,A,U)}if(te(A)||W(A))return A=Sl(A,_.mode,U,null),A.return=_,A;if(typeof A.then=="function")return K(_,Sc(A),U);if(A.$$typeof===M)return K(_,gc(_,A),U);wc(_,A)}return null}function B(_,A,U,F){var de=A!==null?A.key:null;if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return de!==null?null:x(_,A,""+U,F);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case j:return U.key===de?E(_,A,U,F):null;case D:return U.key===de?H(_,A,U,F):null;case le:return U=jl(U),B(_,A,U,F)}if(te(U)||W(U))return de!==null?null:V(_,A,U,F,null);if(typeof U.then=="function")return B(_,A,Sc(U),F);if(U.$$typeof===M)return B(_,A,gc(_,U),F);wc(_,U)}return null}function k(_,A,U,F,de){if(typeof F=="string"&&F!==""||typeof F=="number"||typeof F=="bigint")return _=_.get(U)||null,x(A,_,""+F,de);if(typeof F=="object"&&F!==null){switch(F.$$typeof){case j:return _=_.get(F.key===null?U:F.key)||null,E(A,_,F,de);case D:return _=_.get(F.key===null?U:F.key)||null,H(A,_,F,de);case le:return F=jl(F),k(_,A,U,F,de)}if(te(F)||W(F))return _=_.get(U)||null,V(A,_,F,de,null);if(typeof F.then=="function")return k(_,A,U,Sc(F),de);if(F.$$typeof===M)return k(_,A,U,gc(A,F),de);wc(A,F)}return null}function ie(_,A,U,F){for(var de=null,je=null,re=A,xe=A=0,Ce=null;re!==null&&xe<U.length;xe++){re.index>xe?(Ce=re,re=null):Ce=re.sibling;var Te=B(_,re,U[xe],F);if(Te===null){re===null&&(re=Ce);break}e&&re&&Te.alternate===null&&t(_,re),A=r(Te,A,xe),je===null?de=Te:je.sibling=Te,je=Te,re=Ce}if(xe===U.length)return n(_,re),Ne&&pn(_,xe),de;if(re===null){for(;xe<U.length;xe++)re=K(_,U[xe],F),re!==null&&(A=r(re,A,xe),je===null?de=re:je.sibling=re,je=re);return Ne&&pn(_,xe),de}for(re=l(re);xe<U.length;xe++)Ce=k(re,_,xe,U[xe],F),Ce!==null&&(e&&Ce.alternate!==null&&re.delete(Ce.key===null?xe:Ce.key),A=r(Ce,A,xe),je===null?de=Ce:je.sibling=Ce,je=Ce);return e&&re.forEach(function(ol){return t(_,ol)}),Ne&&pn(_,xe),de}function me(_,A,U,F){if(U==null)throw Error(s(151));for(var de=null,je=null,re=A,xe=A=0,Ce=null,Te=U.next();re!==null&&!Te.done;xe++,Te=U.next()){re.index>xe?(Ce=re,re=null):Ce=re.sibling;var ol=B(_,re,Te.value,F);if(ol===null){re===null&&(re=Ce);break}e&&re&&ol.alternate===null&&t(_,re),A=r(ol,A,xe),je===null?de=ol:je.sibling=ol,je=ol,re=Ce}if(Te.done)return n(_,re),Ne&&pn(_,xe),de;if(re===null){for(;!Te.done;xe++,Te=U.next())Te=K(_,Te.value,F),Te!==null&&(A=r(Te,A,xe),je===null?de=Te:je.sibling=Te,je=Te);return Ne&&pn(_,xe),de}for(re=l(re);!Te.done;xe++,Te=U.next())Te=k(re,_,xe,Te.value,F),Te!==null&&(e&&Te.alternate!==null&&re.delete(Te.key===null?xe:Te.key),A=r(Te,A,xe),je===null?de=Te:je.sibling=Te,je=Te);return e&&re.forEach(function(Rx){return t(_,Rx)}),Ne&&pn(_,xe),de}function Me(_,A,U,F){if(typeof U=="object"&&U!==null&&U.type===w&&U.key===null&&(U=U.props.children),typeof U=="object"&&U!==null){switch(U.$$typeof){case j:e:{for(var de=U.key;A!==null;){if(A.key===de){if(de=U.type,de===w){if(A.tag===7){n(_,A.sibling),F=c(A,U.props.children),F.return=_,_=F;break e}}else if(A.elementType===de||typeof de=="object"&&de!==null&&de.$$typeof===le&&jl(de)===A.type){n(_,A.sibling),F=c(A,U.props),ti(F,U),F.return=_,_=F;break e}n(_,A);break}else t(_,A);A=A.sibling}U.type===w?(F=Sl(U.props.children,_.mode,F,U.key),F.return=_,_=F):(F=mc(U.type,U.key,U.props,null,_.mode,F),ti(F,U),F.return=_,_=F)}return m(_);case D:e:{for(de=U.key;A!==null;){if(A.key===de)if(A.tag===4&&A.stateNode.containerInfo===U.containerInfo&&A.stateNode.implementation===U.implementation){n(_,A.sibling),F=c(A,U.children||[]),F.return=_,_=F;break e}else{n(_,A);break}else t(_,A);A=A.sibling}F=Ar(U,_.mode,F),F.return=_,_=F}return m(_);case le:return U=jl(U),Me(_,A,U,F)}if(te(U))return ie(_,A,U,F);if(W(U)){if(de=W(U),typeof de!="function")throw Error(s(150));return U=de.call(U),me(_,A,U,F)}if(typeof U.then=="function")return Me(_,A,Sc(U),F);if(U.$$typeof===M)return Me(_,A,gc(_,U),F);wc(_,U)}return typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint"?(U=""+U,A!==null&&A.tag===6?(n(_,A.sibling),F=c(A,U),F.return=_,_=F):(n(_,A),F=Tr(U,_.mode,F),F.return=_,_=F),m(_)):n(_,A)}return function(_,A,U,F){try{ei=0;var de=Me(_,A,U,F);return aa=null,de}catch(re){if(re===la||re===xc)throw re;var je=Et(29,re,null,_.mode);return je.lanes=F,je.return=_,je}}}var Al=Rd(!0),zd=Rd(!1),Gn=!1;function Yr(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function qr(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Fn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Kn(e,t,n){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Re&2)!==0){var c=l.pending;return c===null?t.next=t:(t.next=c.next,c.next=t),l.pending=t,t=hc(e),hd(e,null,n),t}return dc(e,l,t,n),hc(e)}function ni(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,Sf(e,n)}}function Vr(e,t){var n=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var c=null,r=null;if(n=n.firstBaseUpdate,n!==null){do{var m={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};r===null?c=r=m:r=r.next=m,n=n.next}while(n!==null);r===null?c=r=t:r=r.next=t}else c=r=t;n={baseState:l.baseState,firstBaseUpdate:c,lastBaseUpdate:r,shared:l.shared,callbacks:l.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Xr=!1;function li(){if(Xr){var e=na;if(e!==null)throw e}}function ai(e,t,n,l){Xr=!1;var c=e.updateQueue;Gn=!1;var r=c.firstBaseUpdate,m=c.lastBaseUpdate,x=c.shared.pending;if(x!==null){c.shared.pending=null;var E=x,H=E.next;E.next=null,m===null?r=H:m.next=H,m=E;var V=e.alternate;V!==null&&(V=V.updateQueue,x=V.lastBaseUpdate,x!==m&&(x===null?V.firstBaseUpdate=H:x.next=H,V.lastBaseUpdate=E))}if(r!==null){var K=c.baseState;m=0,V=H=E=null,x=r;do{var B=x.lane&-536870913,k=B!==x.lane;if(k?(Ee&B)===B:(l&B)===B){B!==0&&B===ta&&(Xr=!0),V!==null&&(V=V.next={lane:0,tag:x.tag,payload:x.payload,callback:null,next:null});e:{var ie=e,me=x;B=t;var Me=n;switch(me.tag){case 1:if(ie=me.payload,typeof ie=="function"){K=ie.call(Me,K,B);break e}K=ie;break e;case 3:ie.flags=ie.flags&-65537|128;case 0:if(ie=me.payload,B=typeof ie=="function"?ie.call(Me,K,B):ie,B==null)break e;K=b({},K,B);break e;case 2:Gn=!0}}B=x.callback,B!==null&&(e.flags|=64,k&&(e.flags|=8192),k=c.callbacks,k===null?c.callbacks=[B]:k.push(B))}else k={lane:B,tag:x.tag,payload:x.payload,callback:x.callback,next:null},V===null?(H=V=k,E=K):V=V.next=k,m|=B;if(x=x.next,x===null){if(x=c.shared.pending,x===null)break;k=x,x=k.next,k.next=null,c.lastBaseUpdate=k,c.shared.pending=null}}while(!0);V===null&&(E=K),c.baseState=E,c.firstBaseUpdate=H,c.lastBaseUpdate=V,r===null&&(c.shared.lanes=0),Wn|=m,e.lanes=m,e.memoizedState=K}}function Od(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function _d(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Od(n[e],t)}var ia=N(null),Ec=N(0);function Dd(e,t){e=jn,J(Ec,e),J(ia,t),jn=e|t.baseLanes}function Gr(){J(Ec,jn),J(ia,ia.current)}function Fr(){jn=Ec.current,X(ia),X(Ec)}var Ct=N(null),Vt=null;function Qn(e){var t=e.alternate;J(Xe,Xe.current&1),J(Ct,e),Vt===null&&(t===null||ia.current!==null||t.memoizedState!==null)&&(Vt=e)}function Kr(e){J(Xe,Xe.current),J(Ct,e),Vt===null&&(Vt=e)}function Md(e){e.tag===22?(J(Xe,Xe.current),J(Ct,e),Vt===null&&(Vt=e)):Zn()}function Zn(){J(Xe,Xe.current),J(Ct,Ct.current)}function Nt(e){X(Ct),Vt===e&&(Vt=null),X(Xe)}var Xe=N(0);function Cc(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||$s(n)||Is(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var yn=0,ye=null,_e=null,Qe=null,Nc=!1,ca=!1,Rl=!1,jc=0,ii=0,oa=null,x0=0;function Ye(){throw Error(s(321))}function Qr(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!wt(e[n],t[n]))return!1;return!0}function Zr(e,t,n,l,c,r){return yn=r,ye=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,O.H=e===null||e.memoizedState===null?gh:ss,Rl=!1,r=n(l,c),Rl=!1,ca&&(r=Ud(t,n,l,c)),Ld(e),r}function Ld(e){O.H=ri;var t=_e!==null&&_e.next!==null;if(yn=0,Qe=_e=ye=null,Nc=!1,ii=0,oa=null,t)throw Error(s(300));e===null||Ze||(e=e.dependencies,e!==null&&vc(e)&&(Ze=!0))}function Ud(e,t,n,l){ye=e;var c=0;do{if(ca&&(oa=null),ii=0,ca=!1,25<=c)throw Error(s(301));if(c+=1,Qe=_e=null,e.updateQueue!=null){var r=e.updateQueue;r.lastEffect=null,r.events=null,r.stores=null,r.memoCache!=null&&(r.memoCache.index=0)}O.H=yh,r=t(n,l)}while(ca);return r}function b0(){var e=O.H,t=e.useState()[0];return t=typeof t.then=="function"?ci(t):t,e=e.useState()[0],(_e!==null?_e.memoizedState:null)!==e&&(ye.flags|=1024),t}function Pr(){var e=jc!==0;return jc=0,e}function Jr(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Wr(e){if(Nc){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Nc=!1}yn=0,Qe=_e=ye=null,ca=!1,ii=jc=0,oa=null}function ut(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Qe===null?ye.memoizedState=Qe=e:Qe=Qe.next=e,Qe}function Ge(){if(_e===null){var e=ye.alternate;e=e!==null?e.memoizedState:null}else e=_e.next;var t=Qe===null?ye.memoizedState:Qe.next;if(t!==null)Qe=t,_e=e;else{if(e===null)throw ye.alternate===null?Error(s(467)):Error(s(310));_e=e,e={memoizedState:_e.memoizedState,baseState:_e.baseState,baseQueue:_e.baseQueue,queue:_e.queue,next:null},Qe===null?ye.memoizedState=Qe=e:Qe=Qe.next=e}return Qe}function Tc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ci(e){var t=ii;return ii+=1,oa===null&&(oa=[]),e=jd(oa,e,t),t=ye,(Qe===null?t.memoizedState:Qe.next)===null&&(t=t.alternate,O.H=t===null||t.memoizedState===null?gh:ss),e}function Ac(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return ci(e);if(e.$$typeof===M)return at(e)}throw Error(s(438,String(e)))}function $r(e){var t=null,n=ye.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var l=ye.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(c){return c.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=Tc(),ye.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),l=0;l<e;l++)n[l]=ae;return t.index++,n}function xn(e,t){return typeof t=="function"?t(e):t}function Rc(e){var t=Ge();return Ir(t,_e,e)}function Ir(e,t,n){var l=e.queue;if(l===null)throw Error(s(311));l.lastRenderedReducer=n;var c=e.baseQueue,r=l.pending;if(r!==null){if(c!==null){var m=c.next;c.next=r.next,r.next=m}t.baseQueue=c=r,l.pending=null}if(r=e.baseState,c===null)e.memoizedState=r;else{t=c.next;var x=m=null,E=null,H=t,V=!1;do{var K=H.lane&-536870913;if(K!==H.lane?(Ee&K)===K:(yn&K)===K){var B=H.revertLane;if(B===0)E!==null&&(E=E.next={lane:0,revertLane:0,gesture:null,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null}),K===ta&&(V=!0);else if((yn&B)===B){H=H.next,B===ta&&(V=!0);continue}else K={lane:0,revertLane:H.revertLane,gesture:null,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null},E===null?(x=E=K,m=r):E=E.next=K,ye.lanes|=B,Wn|=B;K=H.action,Rl&&n(r,K),r=H.hasEagerState?H.eagerState:n(r,K)}else B={lane:K,revertLane:H.revertLane,gesture:H.gesture,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null},E===null?(x=E=B,m=r):E=E.next=B,ye.lanes|=K,Wn|=K;H=H.next}while(H!==null&&H!==t);if(E===null?m=r:E.next=x,!wt(r,e.memoizedState)&&(Ze=!0,V&&(n=na,n!==null)))throw n;e.memoizedState=r,e.baseState=m,e.baseQueue=E,l.lastRenderedState=r}return c===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function es(e){var t=Ge(),n=t.queue;if(n===null)throw Error(s(311));n.lastRenderedReducer=e;var l=n.dispatch,c=n.pending,r=t.memoizedState;if(c!==null){n.pending=null;var m=c=c.next;do r=e(r,m.action),m=m.next;while(m!==c);wt(r,t.memoizedState)||(Ze=!0),t.memoizedState=r,t.baseQueue===null&&(t.baseState=r),n.lastRenderedState=r}return[r,l]}function Hd(e,t,n){var l=ye,c=Ge(),r=Ne;if(r){if(n===void 0)throw Error(s(407));n=n()}else n=t();var m=!wt((_e||c).memoizedState,n);if(m&&(c.memoizedState=n,Ze=!0),c=c.queue,ls(Yd.bind(null,l,c,e),[e]),c.getSnapshot!==t||m||Qe!==null&&Qe.memoizedState.tag&1){if(l.flags|=2048,ra(9,{destroy:void 0},kd.bind(null,l,c,n,t),null),Le===null)throw Error(s(349));r||(yn&127)!==0||Bd(l,t,n)}return n}function Bd(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ye.updateQueue,t===null?(t=Tc(),ye.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function kd(e,t,n,l){t.value=n,t.getSnapshot=l,qd(t)&&Vd(e)}function Yd(e,t,n){return n(function(){qd(t)&&Vd(e)})}function qd(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!wt(e,n)}catch{return!0}}function Vd(e){var t=bl(e,2);t!==null&&gt(t,e,2)}function ts(e){var t=ut();if(typeof e=="function"){var n=e;if(e=n(),Rl){Hn(!0);try{n()}finally{Hn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:xn,lastRenderedState:e},t}function Xd(e,t,n,l){return e.baseState=n,Ir(e,_e,typeof l=="function"?l:xn)}function S0(e,t,n,l,c){if(_c(e))throw Error(s(485));if(e=t.action,e!==null){var r={payload:c,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(m){r.listeners.push(m)}};O.T!==null?n(!0):r.isTransition=!1,l(r),n=t.pending,n===null?(r.next=t.pending=r,Gd(t,r)):(r.next=n.next,t.pending=n.next=r)}}function Gd(e,t){var n=t.action,l=t.payload,c=e.state;if(t.isTransition){var r=O.T,m={};O.T=m;try{var x=n(c,l),E=O.S;E!==null&&E(m,x),Fd(e,t,x)}catch(H){ns(e,t,H)}finally{r!==null&&m.types!==null&&(r.types=m.types),O.T=r}}else try{r=n(c,l),Fd(e,t,r)}catch(H){ns(e,t,H)}}function Fd(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){Kd(e,t,l)},function(l){return ns(e,t,l)}):Kd(e,t,n)}function Kd(e,t,n){t.status="fulfilled",t.value=n,Qd(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Gd(e,n)))}function ns(e,t,n){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=n,Qd(t),t=t.next;while(t!==l)}e.action=null}function Qd(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Zd(e,t){return t}function Pd(e,t){if(Ne){var n=Le.formState;if(n!==null){e:{var l=ye;if(Ne){if(Ue){t:{for(var c=Ue,r=qt;c.nodeType!==8;){if(!r){c=null;break t}if(c=Xt(c.nextSibling),c===null){c=null;break t}}r=c.data,c=r==="F!"||r==="F"?c:null}if(c){Ue=Xt(c.nextSibling),l=c.data==="F!";break e}}Vn(l)}l=!1}l&&(t=n[0])}}return n=ut(),n.memoizedState=n.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zd,lastRenderedState:t},n.queue=l,n=mh.bind(null,ye,l),l.dispatch=n,l=ts(!1),r=rs.bind(null,ye,!1,l.queue),l=ut(),c={state:t,dispatch:null,action:e,pending:null},l.queue=c,n=S0.bind(null,ye,c,r,n),c.dispatch=n,l.memoizedState=e,[t,n,!1]}function Jd(e){var t=Ge();return Wd(t,_e,e)}function Wd(e,t,n){if(t=Ir(e,t,Zd)[0],e=Rc(xn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=ci(t)}catch(m){throw m===la?xc:m}else l=t;t=Ge();var c=t.queue,r=c.dispatch;return n!==t.memoizedState&&(ye.flags|=2048,ra(9,{destroy:void 0},w0.bind(null,c,n),null)),[l,r,e]}function w0(e,t){e.action=t}function $d(e){var t=Ge(),n=_e;if(n!==null)return Wd(t,n,e);Ge(),t=t.memoizedState,n=Ge();var l=n.queue.dispatch;return n.memoizedState=e,[t,l,!1]}function ra(e,t,n,l){return e={tag:e,create:n,deps:l,inst:t,next:null},t=ye.updateQueue,t===null&&(t=Tc(),ye.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(l=n.next,n.next=e,e.next=l,t.lastEffect=e),e}function Id(){return Ge().memoizedState}function zc(e,t,n,l){var c=ut();ye.flags|=e,c.memoizedState=ra(1|t,{destroy:void 0},n,l===void 0?null:l)}function Oc(e,t,n,l){var c=Ge();l=l===void 0?null:l;var r=c.memoizedState.inst;_e!==null&&l!==null&&Qr(l,_e.memoizedState.deps)?c.memoizedState=ra(t,r,n,l):(ye.flags|=e,c.memoizedState=ra(1|t,r,n,l))}function eh(e,t){zc(8390656,8,e,t)}function ls(e,t){Oc(2048,8,e,t)}function E0(e){ye.flags|=4;var t=ye.updateQueue;if(t===null)t=Tc(),ye.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function th(e){var t=Ge().memoizedState;return E0({ref:t,nextImpl:e}),function(){if((Re&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function nh(e,t){return Oc(4,2,e,t)}function lh(e,t){return Oc(4,4,e,t)}function ah(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function ih(e,t,n){n=n!=null?n.concat([e]):null,Oc(4,4,ah.bind(null,t,e),n)}function as(){}function ch(e,t){var n=Ge();t=t===void 0?null:t;var l=n.memoizedState;return t!==null&&Qr(t,l[1])?l[0]:(n.memoizedState=[e,t],e)}function oh(e,t){var n=Ge();t=t===void 0?null:t;var l=n.memoizedState;if(t!==null&&Qr(t,l[1]))return l[0];if(l=e(),Rl){Hn(!0);try{e()}finally{Hn(!1)}}return n.memoizedState=[l,t],l}function is(e,t,n){return n===void 0||(yn&1073741824)!==0&&(Ee&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=rm(),ye.lanes|=e,Wn|=e,n)}function rh(e,t,n,l){return wt(n,t)?n:ia.current!==null?(e=is(e,n,l),wt(e,t)||(Ze=!0),e):(yn&42)===0||(yn&1073741824)!==0&&(Ee&261930)===0?(Ze=!0,e.memoizedState=n):(e=rm(),ye.lanes|=e,Wn|=e,t)}function sh(e,t,n,l,c){var r=L.p;L.p=r!==0&&8>r?r:8;var m=O.T,x={};O.T=x,rs(e,!1,t,n);try{var E=c(),H=O.S;if(H!==null&&H(x,E),E!==null&&typeof E=="object"&&typeof E.then=="function"){var V=y0(E,l);oi(e,t,V,At(e))}else oi(e,t,l,At(e))}catch(K){oi(e,t,{then:function(){},status:"rejected",reason:K},At())}finally{L.p=r,m!==null&&x.types!==null&&(m.types=x.types),O.T=m}}function C0(){}function cs(e,t,n,l){if(e.tag!==5)throw Error(s(476));var c=uh(e).queue;sh(e,c,t,G,n===null?C0:function(){return fh(e),n(l)})}function uh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:G,baseState:G,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:xn,lastRenderedState:G},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:xn,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function fh(e){var t=uh(e);t.next===null&&(t=e.alternate.memoizedState),oi(e,t.next.queue,{},At())}function os(){return at(Ci)}function dh(){return Ge().memoizedState}function hh(){return Ge().memoizedState}function N0(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=At();e=Fn(n);var l=Kn(t,e,n);l!==null&&(gt(l,t,n),ni(l,t,n)),t={cache:Ur()},e.payload=t;return}t=t.return}}function j0(e,t,n){var l=At();n={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},_c(e)?ph(t,n):(n=Nr(e,t,n,l),n!==null&&(gt(n,e,l),vh(n,t,l)))}function mh(e,t,n){var l=At();oi(e,t,n,l)}function oi(e,t,n,l){var c={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(_c(e))ph(t,c);else{var r=e.alternate;if(e.lanes===0&&(r===null||r.lanes===0)&&(r=t.lastRenderedReducer,r!==null))try{var m=t.lastRenderedState,x=r(m,n);if(c.hasEagerState=!0,c.eagerState=x,wt(x,m))return dc(e,t,c,0),Le===null&&fc(),!1}catch{}if(n=Nr(e,t,c,l),n!==null)return gt(n,e,l),vh(n,t,l),!0}return!1}function rs(e,t,n,l){if(l={lane:2,revertLane:Ys(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},_c(e)){if(t)throw Error(s(479))}else t=Nr(e,n,l,2),t!==null&&gt(t,e,2)}function _c(e){var t=e.alternate;return e===ye||t!==null&&t===ye}function ph(e,t){ca=Nc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function vh(e,t,n){if((n&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,Sf(e,n)}}var ri={readContext:at,use:Ac,useCallback:Ye,useContext:Ye,useEffect:Ye,useImperativeHandle:Ye,useLayoutEffect:Ye,useInsertionEffect:Ye,useMemo:Ye,useReducer:Ye,useRef:Ye,useState:Ye,useDebugValue:Ye,useDeferredValue:Ye,useTransition:Ye,useSyncExternalStore:Ye,useId:Ye,useHostTransitionStatus:Ye,useFormState:Ye,useActionState:Ye,useOptimistic:Ye,useMemoCache:Ye,useCacheRefresh:Ye};ri.useEffectEvent=Ye;var gh={readContext:at,use:Ac,useCallback:function(e,t){return ut().memoizedState=[e,t===void 0?null:t],e},useContext:at,useEffect:eh,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,zc(4194308,4,ah.bind(null,t,e),n)},useLayoutEffect:function(e,t){return zc(4194308,4,e,t)},useInsertionEffect:function(e,t){zc(4,2,e,t)},useMemo:function(e,t){var n=ut();t=t===void 0?null:t;var l=e();if(Rl){Hn(!0);try{e()}finally{Hn(!1)}}return n.memoizedState=[l,t],l},useReducer:function(e,t,n){var l=ut();if(n!==void 0){var c=n(t);if(Rl){Hn(!0);try{n(t)}finally{Hn(!1)}}}else c=t;return l.memoizedState=l.baseState=c,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:c},l.queue=e,e=e.dispatch=j0.bind(null,ye,e),[l.memoizedState,e]},useRef:function(e){var t=ut();return e={current:e},t.memoizedState=e},useState:function(e){e=ts(e);var t=e.queue,n=mh.bind(null,ye,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:as,useDeferredValue:function(e,t){var n=ut();return is(n,e,t)},useTransition:function(){var e=ts(!1);return e=sh.bind(null,ye,e.queue,!0,!1),ut().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var l=ye,c=ut();if(Ne){if(n===void 0)throw Error(s(407));n=n()}else{if(n=t(),Le===null)throw Error(s(349));(Ee&127)!==0||Bd(l,t,n)}c.memoizedState=n;var r={value:n,getSnapshot:t};return c.queue=r,eh(Yd.bind(null,l,r,e),[e]),l.flags|=2048,ra(9,{destroy:void 0},kd.bind(null,l,r,n,t),null),n},useId:function(){var e=ut(),t=Le.identifierPrefix;if(Ne){var n=en,l=It;n=(l&~(1<<32-St(l)-1)).toString(32)+n,t="_"+t+"R_"+n,n=jc++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=x0++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:os,useFormState:Pd,useActionState:Pd,useOptimistic:function(e){var t=ut();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=rs.bind(null,ye,!0,n),n.dispatch=t,[e,t]},useMemoCache:$r,useCacheRefresh:function(){return ut().memoizedState=N0.bind(null,ye)},useEffectEvent:function(e){var t=ut(),n={impl:e};return t.memoizedState=n,function(){if((Re&2)!==0)throw Error(s(440));return n.impl.apply(void 0,arguments)}}},ss={readContext:at,use:Ac,useCallback:ch,useContext:at,useEffect:ls,useImperativeHandle:ih,useInsertionEffect:nh,useLayoutEffect:lh,useMemo:oh,useReducer:Rc,useRef:Id,useState:function(){return Rc(xn)},useDebugValue:as,useDeferredValue:function(e,t){var n=Ge();return rh(n,_e.memoizedState,e,t)},useTransition:function(){var e=Rc(xn)[0],t=Ge().memoizedState;return[typeof e=="boolean"?e:ci(e),t]},useSyncExternalStore:Hd,useId:dh,useHostTransitionStatus:os,useFormState:Jd,useActionState:Jd,useOptimistic:function(e,t){var n=Ge();return Xd(n,_e,e,t)},useMemoCache:$r,useCacheRefresh:hh};ss.useEffectEvent=th;var yh={readContext:at,use:Ac,useCallback:ch,useContext:at,useEffect:ls,useImperativeHandle:ih,useInsertionEffect:nh,useLayoutEffect:lh,useMemo:oh,useReducer:es,useRef:Id,useState:function(){return es(xn)},useDebugValue:as,useDeferredValue:function(e,t){var n=Ge();return _e===null?is(n,e,t):rh(n,_e.memoizedState,e,t)},useTransition:function(){var e=es(xn)[0],t=Ge().memoizedState;return[typeof e=="boolean"?e:ci(e),t]},useSyncExternalStore:Hd,useId:dh,useHostTransitionStatus:os,useFormState:$d,useActionState:$d,useOptimistic:function(e,t){var n=Ge();return _e!==null?Xd(n,_e,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:$r,useCacheRefresh:hh};yh.useEffectEvent=th;function us(e,t,n,l){t=e.memoizedState,n=n(l,t),n=n==null?t:b({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var fs={enqueueSetState:function(e,t,n){e=e._reactInternals;var l=At(),c=Fn(l);c.payload=t,n!=null&&(c.callback=n),t=Kn(e,c,l),t!==null&&(gt(t,e,l),ni(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var l=At(),c=Fn(l);c.tag=1,c.payload=t,n!=null&&(c.callback=n),t=Kn(e,c,l),t!==null&&(gt(t,e,l),ni(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=At(),l=Fn(n);l.tag=2,t!=null&&(l.callback=t),t=Kn(e,l,n),t!==null&&(gt(t,e,n),ni(t,e,n))}};function xh(e,t,n,l,c,r,m){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,r,m):t.prototype&&t.prototype.isPureReactComponent?!Za(n,l)||!Za(c,r):!0}function bh(e,t,n,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,l),t.state!==e&&fs.enqueueReplaceState(t,t.state,null)}function zl(e,t){var n=t;if("ref"in t){n={};for(var l in t)l!=="ref"&&(n[l]=t[l])}if(e=e.defaultProps){n===t&&(n=b({},n));for(var c in e)n[c]===void 0&&(n[c]=e[c])}return n}function Sh(e){uc(e)}function wh(e){console.error(e)}function Eh(e){uc(e)}function Dc(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function Ch(e,t,n){try{var l=e.onCaughtError;l(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(c){setTimeout(function(){throw c})}}function ds(e,t,n){return n=Fn(n),n.tag=3,n.payload={element:null},n.callback=function(){Dc(e,t)},n}function Nh(e){return e=Fn(e),e.tag=3,e}function jh(e,t,n,l){var c=n.type.getDerivedStateFromError;if(typeof c=="function"){var r=l.value;e.payload=function(){return c(r)},e.callback=function(){Ch(t,n,l)}}var m=n.stateNode;m!==null&&typeof m.componentDidCatch=="function"&&(e.callback=function(){Ch(t,n,l),typeof c!="function"&&($n===null?$n=new Set([this]):$n.add(this));var x=l.stack;this.componentDidCatch(l.value,{componentStack:x!==null?x:""})})}function T0(e,t,n,l,c){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=n.alternate,t!==null&&ea(t,n,c,!0),n=Ct.current,n!==null){switch(n.tag){case 31:case 13:return Vt===null?Fc():n.alternate===null&&qe===0&&(qe=3),n.flags&=-257,n.flags|=65536,n.lanes=c,l===bc?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([l]):t.add(l),Hs(e,l,c)),!1;case 22:return n.flags|=65536,l===bc?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([l]):n.add(l)),Hs(e,l,c)),!1}throw Error(s(435,n.tag))}return Hs(e,l,c),Fc(),!1}if(Ne)return t=Ct.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=c,l!==Or&&(e=Error(s(422),{cause:l}),Wa(Bt(e,n)))):(l!==Or&&(t=Error(s(423),{cause:l}),Wa(Bt(t,n))),e=e.current.alternate,e.flags|=65536,c&=-c,e.lanes|=c,l=Bt(l,n),c=ds(e.stateNode,l,c),Vr(e,c),qe!==4&&(qe=2)),!1;var r=Error(s(520),{cause:l});if(r=Bt(r,n),vi===null?vi=[r]:vi.push(r),qe!==4&&(qe=2),t===null)return!0;l=Bt(l,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=c&-c,n.lanes|=e,e=ds(n.stateNode,l,e),Vr(n,e),!1;case 1:if(t=n.type,r=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||r!==null&&typeof r.componentDidCatch=="function"&&($n===null||!$n.has(r))))return n.flags|=65536,c&=-c,n.lanes|=c,c=Nh(c),jh(c,e,n,l),Vr(n,c),!1}n=n.return}while(n!==null);return!1}var hs=Error(s(461)),Ze=!1;function it(e,t,n,l){t.child=e===null?zd(t,null,n,l):Al(t,e.child,n,l)}function Th(e,t,n,l,c){n=n.render;var r=t.ref;if("ref"in l){var m={};for(var x in l)x!=="ref"&&(m[x]=l[x])}else m=l;return Cl(t),l=Zr(e,t,n,m,r,c),x=Pr(),e!==null&&!Ze?(Jr(e,t,c),bn(e,t,c)):(Ne&&x&&Rr(t),t.flags|=1,it(e,t,l,c),t.child)}function Ah(e,t,n,l,c){if(e===null){var r=n.type;return typeof r=="function"&&!jr(r)&&r.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=r,Rh(e,t,r,l,c)):(e=mc(n.type,null,l,t,t.mode,c),e.ref=t.ref,e.return=t,t.child=e)}if(r=e.child,!Ss(e,c)){var m=r.memoizedProps;if(n=n.compare,n=n!==null?n:Za,n(m,l)&&e.ref===t.ref)return bn(e,t,c)}return t.flags|=1,e=mn(r,l),e.ref=t.ref,e.return=t,t.child=e}function Rh(e,t,n,l,c){if(e!==null){var r=e.memoizedProps;if(Za(r,l)&&e.ref===t.ref)if(Ze=!1,t.pendingProps=l=r,Ss(e,c))(e.flags&131072)!==0&&(Ze=!0);else return t.lanes=e.lanes,bn(e,t,c)}return ms(e,t,n,l,c)}function zh(e,t,n,l){var c=l.children,r=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(r=r!==null?r.baseLanes|n:n,e!==null){for(l=t.child=e.child,c=0;l!==null;)c=c|l.lanes|l.childLanes,l=l.sibling;l=c&~r}else l=0,t.child=null;return Oh(e,t,r,n,l)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&yc(t,r!==null?r.cachePool:null),r!==null?Dd(t,r):Gr(),Md(t);else return l=t.lanes=536870912,Oh(e,t,r!==null?r.baseLanes|n:n,n,l)}else r!==null?(yc(t,r.cachePool),Dd(t,r),Zn(),t.memoizedState=null):(e!==null&&yc(t,null),Gr(),Zn());return it(e,t,c,n),t.child}function si(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Oh(e,t,n,l,c){var r=Br();return r=r===null?null:{parent:Ke._currentValue,pool:r},t.memoizedState={baseLanes:n,cachePool:r},e!==null&&yc(t,null),Gr(),Md(t),e!==null&&ea(e,t,l,!0),t.childLanes=c,null}function Mc(e,t){return t=Uc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function _h(e,t,n){return Al(t,e.child,null,n),e=Mc(t,t.pendingProps),e.flags|=2,Nt(t),t.memoizedState=null,e}function A0(e,t,n){var l=t.pendingProps,c=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ne){if(l.mode==="hidden")return e=Mc(t,l),t.lanes=536870912,si(null,e);if(Kr(t),(e=Ue)?(e=Gm(e,qt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Yn!==null?{id:It,overflow:en}:null,retryLane:536870912,hydrationErrors:null},n=pd(e),n.return=t,t.child=n,lt=t,Ue=null)):e=null,e===null)throw Vn(t);return t.lanes=536870912,null}return Mc(t,l)}var r=e.memoizedState;if(r!==null){var m=r.dehydrated;if(Kr(t),c)if(t.flags&256)t.flags&=-257,t=_h(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(Ze||ea(e,t,n,!1),c=(n&e.childLanes)!==0,Ze||c){if(l=Le,l!==null&&(m=wf(l,n),m!==0&&m!==r.retryLane))throw r.retryLane=m,bl(e,m),gt(l,e,m),hs;Fc(),t=_h(e,t,n)}else e=r.treeContext,Ue=Xt(m.nextSibling),lt=t,Ne=!0,qn=null,qt=!1,e!==null&&yd(t,e),t=Mc(t,l),t.flags|=4096;return t}return e=mn(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Lc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(s(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function ms(e,t,n,l,c){return Cl(t),n=Zr(e,t,n,l,void 0,c),l=Pr(),e!==null&&!Ze?(Jr(e,t,c),bn(e,t,c)):(Ne&&l&&Rr(t),t.flags|=1,it(e,t,n,c),t.child)}function Dh(e,t,n,l,c,r){return Cl(t),t.updateQueue=null,n=Ud(t,l,n,c),Ld(e),l=Pr(),e!==null&&!Ze?(Jr(e,t,r),bn(e,t,r)):(Ne&&l&&Rr(t),t.flags|=1,it(e,t,n,r),t.child)}function Mh(e,t,n,l,c){if(Cl(t),t.stateNode===null){var r=Jl,m=n.contextType;typeof m=="object"&&m!==null&&(r=at(m)),r=new n(l,r),t.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=fs,t.stateNode=r,r._reactInternals=t,r=t.stateNode,r.props=l,r.state=t.memoizedState,r.refs={},Yr(t),m=n.contextType,r.context=typeof m=="object"&&m!==null?at(m):Jl,r.state=t.memoizedState,m=n.getDerivedStateFromProps,typeof m=="function"&&(us(t,n,m,l),r.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof r.getSnapshotBeforeUpdate=="function"||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(m=r.state,typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount(),m!==r.state&&fs.enqueueReplaceState(r,r.state,null),ai(t,l,r,c),li(),r.state=t.memoizedState),typeof r.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){r=t.stateNode;var x=t.memoizedProps,E=zl(n,x);r.props=E;var H=r.context,V=n.contextType;m=Jl,typeof V=="object"&&V!==null&&(m=at(V));var K=n.getDerivedStateFromProps;V=typeof K=="function"||typeof r.getSnapshotBeforeUpdate=="function",x=t.pendingProps!==x,V||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(x||H!==m)&&bh(t,r,l,m),Gn=!1;var B=t.memoizedState;r.state=B,ai(t,l,r,c),li(),H=t.memoizedState,x||B!==H||Gn?(typeof K=="function"&&(us(t,n,K,l),H=t.memoizedState),(E=Gn||xh(t,n,E,l,B,H,m))?(V||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount()),typeof r.componentDidMount=="function"&&(t.flags|=4194308)):(typeof r.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=H),r.props=l,r.state=H,r.context=m,l=E):(typeof r.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{r=t.stateNode,qr(e,t),m=t.memoizedProps,V=zl(n,m),r.props=V,K=t.pendingProps,B=r.context,H=n.contextType,E=Jl,typeof H=="object"&&H!==null&&(E=at(H)),x=n.getDerivedStateFromProps,(H=typeof x=="function"||typeof r.getSnapshotBeforeUpdate=="function")||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(m!==K||B!==E)&&bh(t,r,l,E),Gn=!1,B=t.memoizedState,r.state=B,ai(t,l,r,c),li();var k=t.memoizedState;m!==K||B!==k||Gn||e!==null&&e.dependencies!==null&&vc(e.dependencies)?(typeof x=="function"&&(us(t,n,x,l),k=t.memoizedState),(V=Gn||xh(t,n,V,l,B,k,E)||e!==null&&e.dependencies!==null&&vc(e.dependencies))?(H||typeof r.UNSAFE_componentWillUpdate!="function"&&typeof r.componentWillUpdate!="function"||(typeof r.componentWillUpdate=="function"&&r.componentWillUpdate(l,k,E),typeof r.UNSAFE_componentWillUpdate=="function"&&r.UNSAFE_componentWillUpdate(l,k,E)),typeof r.componentDidUpdate=="function"&&(t.flags|=4),typeof r.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof r.componentDidUpdate!="function"||m===e.memoizedProps&&B===e.memoizedState||(t.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&B===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=k),r.props=l,r.state=k,r.context=E,l=V):(typeof r.componentDidUpdate!="function"||m===e.memoizedProps&&B===e.memoizedState||(t.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&B===e.memoizedState||(t.flags|=1024),l=!1)}return r=l,Lc(e,t),l=(t.flags&128)!==0,r||l?(r=t.stateNode,n=l&&typeof n.getDerivedStateFromError!="function"?null:r.render(),t.flags|=1,e!==null&&l?(t.child=Al(t,e.child,null,c),t.child=Al(t,null,n,c)):it(e,t,n,c),t.memoizedState=r.state,e=t.child):e=bn(e,t,c),e}function Lh(e,t,n,l){return wl(),t.flags|=256,it(e,t,n,l),t.child}var ps={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function vs(e){return{baseLanes:e,cachePool:Cd()}}function gs(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Tt),e}function Uh(e,t,n){var l=t.pendingProps,c=!1,r=(t.flags&128)!==0,m;if((m=r)||(m=e!==null&&e.memoizedState===null?!1:(Xe.current&2)!==0),m&&(c=!0,t.flags&=-129),m=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ne){if(c?Qn(t):Zn(),(e=Ue)?(e=Gm(e,qt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Yn!==null?{id:It,overflow:en}:null,retryLane:536870912,hydrationErrors:null},n=pd(e),n.return=t,t.child=n,lt=t,Ue=null)):e=null,e===null)throw Vn(t);return Is(e)?t.lanes=32:t.lanes=536870912,null}var x=l.children;return l=l.fallback,c?(Zn(),c=t.mode,x=Uc({mode:"hidden",children:x},c),l=Sl(l,c,n,null),x.return=t,l.return=t,x.sibling=l,t.child=x,l=t.child,l.memoizedState=vs(n),l.childLanes=gs(e,m,n),t.memoizedState=ps,si(null,l)):(Qn(t),ys(t,x))}var E=e.memoizedState;if(E!==null&&(x=E.dehydrated,x!==null)){if(r)t.flags&256?(Qn(t),t.flags&=-257,t=xs(e,t,n)):t.memoizedState!==null?(Zn(),t.child=e.child,t.flags|=128,t=null):(Zn(),x=l.fallback,c=t.mode,l=Uc({mode:"visible",children:l.children},c),x=Sl(x,c,n,null),x.flags|=2,l.return=t,x.return=t,l.sibling=x,t.child=l,Al(t,e.child,null,n),l=t.child,l.memoizedState=vs(n),l.childLanes=gs(e,m,n),t.memoizedState=ps,t=si(null,l));else if(Qn(t),Is(x)){if(m=x.nextSibling&&x.nextSibling.dataset,m)var H=m.dgst;m=H,l=Error(s(419)),l.stack="",l.digest=m,Wa({value:l,source:null,stack:null}),t=xs(e,t,n)}else if(Ze||ea(e,t,n,!1),m=(n&e.childLanes)!==0,Ze||m){if(m=Le,m!==null&&(l=wf(m,n),l!==0&&l!==E.retryLane))throw E.retryLane=l,bl(e,l),gt(m,e,l),hs;$s(x)||Fc(),t=xs(e,t,n)}else $s(x)?(t.flags|=192,t.child=e.child,t=null):(e=E.treeContext,Ue=Xt(x.nextSibling),lt=t,Ne=!0,qn=null,qt=!1,e!==null&&yd(t,e),t=ys(t,l.children),t.flags|=4096);return t}return c?(Zn(),x=l.fallback,c=t.mode,E=e.child,H=E.sibling,l=mn(E,{mode:"hidden",children:l.children}),l.subtreeFlags=E.subtreeFlags&65011712,H!==null?x=mn(H,x):(x=Sl(x,c,n,null),x.flags|=2),x.return=t,l.return=t,l.sibling=x,t.child=l,si(null,l),l=t.child,x=e.child.memoizedState,x===null?x=vs(n):(c=x.cachePool,c!==null?(E=Ke._currentValue,c=c.parent!==E?{parent:E,pool:E}:c):c=Cd(),x={baseLanes:x.baseLanes|n,cachePool:c}),l.memoizedState=x,l.childLanes=gs(e,m,n),t.memoizedState=ps,si(e.child,l)):(Qn(t),n=e.child,e=n.sibling,n=mn(n,{mode:"visible",children:l.children}),n.return=t,n.sibling=null,e!==null&&(m=t.deletions,m===null?(t.deletions=[e],t.flags|=16):m.push(e)),t.child=n,t.memoizedState=null,n)}function ys(e,t){return t=Uc({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Uc(e,t){return e=Et(22,e,null,t),e.lanes=0,e}function xs(e,t,n){return Al(t,e.child,null,n),e=ys(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Hh(e,t,n){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),Mr(e.return,t,n)}function bs(e,t,n,l,c,r){var m=e.memoizedState;m===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:c,treeForkCount:r}:(m.isBackwards=t,m.rendering=null,m.renderingStartTime=0,m.last=l,m.tail=n,m.tailMode=c,m.treeForkCount=r)}function Bh(e,t,n){var l=t.pendingProps,c=l.revealOrder,r=l.tail;l=l.children;var m=Xe.current,x=(m&2)!==0;if(x?(m=m&1|2,t.flags|=128):m&=1,J(Xe,m),it(e,t,l,n),l=Ne?Ja:0,!x&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Hh(e,n,t);else if(e.tag===19)Hh(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(c){case"forwards":for(n=t.child,c=null;n!==null;)e=n.alternate,e!==null&&Cc(e)===null&&(c=n),n=n.sibling;n=c,n===null?(c=t.child,t.child=null):(c=n.sibling,n.sibling=null),bs(t,!1,c,n,r,l);break;case"backwards":case"unstable_legacy-backwards":for(n=null,c=t.child,t.child=null;c!==null;){if(e=c.alternate,e!==null&&Cc(e)===null){t.child=c;break}e=c.sibling,c.sibling=n,n=c,c=e}bs(t,!0,n,null,r,l);break;case"together":bs(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function bn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Wn|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(ea(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,n=mn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=mn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Ss(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&vc(e)))}function R0(e,t,n){switch(t.tag){case 3:be(t,t.stateNode.containerInfo),Xn(t,Ke,e.memoizedState.cache),wl();break;case 27:case 5:ue(t);break;case 4:be(t,t.stateNode.containerInfo);break;case 10:Xn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Kr(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(Qn(t),t.flags|=128,null):(n&t.child.childLanes)!==0?Uh(e,t,n):(Qn(t),e=bn(e,t,n),e!==null?e.sibling:null);Qn(t);break;case 19:var c=(e.flags&128)!==0;if(l=(n&t.childLanes)!==0,l||(ea(e,t,n,!1),l=(n&t.childLanes)!==0),c){if(l)return Bh(e,t,n);t.flags|=128}if(c=t.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),J(Xe,Xe.current),l)break;return null;case 22:return t.lanes=0,zh(e,t,n,t.pendingProps);case 24:Xn(t,Ke,e.memoizedState.cache)}return bn(e,t,n)}function kh(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ze=!0;else{if(!Ss(e,n)&&(t.flags&128)===0)return Ze=!1,R0(e,t,n);Ze=(e.flags&131072)!==0}else Ze=!1,Ne&&(t.flags&1048576)!==0&&gd(t,Ja,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=jl(t.elementType),t.type=e,typeof e=="function")jr(e)?(l=zl(e,l),t.tag=1,t=Mh(null,t,e,l,n)):(t.tag=0,t=ms(null,t,e,l,n));else{if(e!=null){var c=e.$$typeof;if(c===q){t.tag=11,t=Th(null,t,e,l,n);break e}else if(c===Y){t.tag=14,t=Ah(null,t,e,l,n);break e}}throw t=I(e)||e,Error(s(306,t,""))}}return t;case 0:return ms(e,t,t.type,t.pendingProps,n);case 1:return l=t.type,c=zl(l,t.pendingProps),Mh(e,t,l,c,n);case 3:e:{if(be(t,t.stateNode.containerInfo),e===null)throw Error(s(387));l=t.pendingProps;var r=t.memoizedState;c=r.element,qr(e,t),ai(t,l,null,n);var m=t.memoizedState;if(l=m.cache,Xn(t,Ke,l),l!==r.cache&&Lr(t,[Ke],n,!0),li(),l=m.element,r.isDehydrated)if(r={element:l,isDehydrated:!1,cache:m.cache},t.updateQueue.baseState=r,t.memoizedState=r,t.flags&256){t=Lh(e,t,l,n);break e}else if(l!==c){c=Bt(Error(s(424)),t),Wa(c),t=Lh(e,t,l,n);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,Ue=Xt(e.firstChild),lt=t,Ne=!0,qn=null,qt=!0,n=zd(t,null,l,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(wl(),l===c){t=bn(e,t,n);break e}it(e,t,l,n)}t=t.child}return t;case 26:return Lc(e,t),e===null?(n=Jm(t.type,null,t.pendingProps,null))?t.memoizedState=n:Ne||(n=t.type,e=t.pendingProps,l=$c(pe.current).createElement(n),l[nt]=t,l[ft]=e,ct(l,n,e),Ie(l),t.stateNode=l):t.memoizedState=Jm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ue(t),e===null&&Ne&&(l=t.stateNode=Qm(t.type,t.pendingProps,pe.current),lt=t,qt=!0,c=Ue,nl(t.type)?(eu=c,Ue=Xt(l.firstChild)):Ue=c),it(e,t,t.pendingProps.children,n),Lc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ne&&((c=l=Ue)&&(l=ix(l,t.type,t.pendingProps,qt),l!==null?(t.stateNode=l,lt=t,Ue=Xt(l.firstChild),qt=!1,c=!0):c=!1),c||Vn(t)),ue(t),c=t.type,r=t.pendingProps,m=e!==null?e.memoizedProps:null,l=r.children,Ps(c,r)?l=null:m!==null&&Ps(c,m)&&(t.flags|=32),t.memoizedState!==null&&(c=Zr(e,t,b0,null,null,n),Ci._currentValue=c),Lc(e,t),it(e,t,l,n),t.child;case 6:return e===null&&Ne&&((e=n=Ue)&&(n=cx(n,t.pendingProps,qt),n!==null?(t.stateNode=n,lt=t,Ue=null,e=!0):e=!1),e||Vn(t)),null;case 13:return Uh(e,t,n);case 4:return be(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=Al(t,null,l,n):it(e,t,l,n),t.child;case 11:return Th(e,t,t.type,t.pendingProps,n);case 7:return it(e,t,t.pendingProps,n),t.child;case 8:return it(e,t,t.pendingProps.children,n),t.child;case 12:return it(e,t,t.pendingProps.children,n),t.child;case 10:return l=t.pendingProps,Xn(t,t.type,l.value),it(e,t,l.children,n),t.child;case 9:return c=t.type._context,l=t.pendingProps.children,Cl(t),c=at(c),l=l(c),t.flags|=1,it(e,t,l,n),t.child;case 14:return Ah(e,t,t.type,t.pendingProps,n);case 15:return Rh(e,t,t.type,t.pendingProps,n);case 19:return Bh(e,t,n);case 31:return A0(e,t,n);case 22:return zh(e,t,n,t.pendingProps);case 24:return Cl(t),l=at(Ke),e===null?(c=Br(),c===null&&(c=Le,r=Ur(),c.pooledCache=r,r.refCount++,r!==null&&(c.pooledCacheLanes|=n),c=r),t.memoizedState={parent:l,cache:c},Yr(t),Xn(t,Ke,c)):((e.lanes&n)!==0&&(qr(e,t),ai(t,null,null,n),li()),c=e.memoizedState,r=t.memoizedState,c.parent!==l?(c={parent:l,cache:l},t.memoizedState=c,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=c),Xn(t,Ke,l)):(l=r.cache,Xn(t,Ke,l),l!==c.cache&&Lr(t,[Ke],n,!0))),it(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function Sn(e){e.flags|=4}function ws(e,t,n,l,c){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(c&335544128)===c)if(e.stateNode.complete)e.flags|=8192;else if(dm())e.flags|=8192;else throw Tl=bc,kr}else e.flags&=-16777217}function Yh(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!tp(t))if(dm())e.flags|=8192;else throw Tl=bc,kr}function Hc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?xf():536870912,e.lanes|=t,da|=t)}function ui(e,t){if(!Ne)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function He(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,l=0;if(t)for(var c=e.child;c!==null;)n|=c.lanes|c.childLanes,l|=c.subtreeFlags&65011712,l|=c.flags&65011712,c.return=e,c=c.sibling;else for(c=e.child;c!==null;)n|=c.lanes|c.childLanes,l|=c.subtreeFlags,l|=c.flags,c.return=e,c=c.sibling;return e.subtreeFlags|=l,e.childLanes=n,t}function z0(e,t,n){var l=t.pendingProps;switch(zr(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return He(t),null;case 1:return He(t),null;case 3:return n=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),gn(Ke),P(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Il(t)?Sn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,_r())),He(t),null;case 26:var c=t.type,r=t.memoizedState;return e===null?(Sn(t),r!==null?(He(t),Yh(t,r)):(He(t),ws(t,c,null,l,n))):r?r!==e.memoizedState?(Sn(t),He(t),Yh(t,r)):(He(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&Sn(t),He(t),ws(t,c,e,l,n)),null;case 27:if(ge(t),n=pe.current,c=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Sn(t);else{if(!l){if(t.stateNode===null)throw Error(s(166));return He(t),null}e=ee.current,Il(t)?xd(t):(e=Qm(c,l,n),t.stateNode=e,Sn(t))}return He(t),null;case 5:if(ge(t),c=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Sn(t);else{if(!l){if(t.stateNode===null)throw Error(s(166));return He(t),null}if(r=ee.current,Il(t))xd(t);else{var m=$c(pe.current);switch(r){case 1:r=m.createElementNS("http://www.w3.org/2000/svg",c);break;case 2:r=m.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;default:switch(c){case"svg":r=m.createElementNS("http://www.w3.org/2000/svg",c);break;case"math":r=m.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;case"script":r=m.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild);break;case"select":r=typeof l.is=="string"?m.createElement("select",{is:l.is}):m.createElement("select"),l.multiple?r.multiple=!0:l.size&&(r.size=l.size);break;default:r=typeof l.is=="string"?m.createElement(c,{is:l.is}):m.createElement(c)}}r[nt]=t,r[ft]=l;e:for(m=t.child;m!==null;){if(m.tag===5||m.tag===6)r.appendChild(m.stateNode);else if(m.tag!==4&&m.tag!==27&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===t)break e;for(;m.sibling===null;){if(m.return===null||m.return===t)break e;m=m.return}m.sibling.return=m.return,m=m.sibling}t.stateNode=r;e:switch(ct(r,c,l),c){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&Sn(t)}}return He(t),ws(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&Sn(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(s(166));if(e=pe.current,Il(t)){if(e=t.stateNode,n=t.memoizedProps,l=null,c=lt,c!==null)switch(c.tag){case 27:case 5:l=c.memoizedProps}e[nt]=t,e=!!(e.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||Um(e.nodeValue,n)),e||Vn(t,!0)}else e=$c(e).createTextNode(l),e[nt]=t,t.stateNode=e}return He(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(l=Il(t),n!==null){if(e===null){if(!l)throw Error(s(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(557));e[nt]=t}else wl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;He(t),e=!1}else n=_r(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Nt(t),t):(Nt(t),null);if((t.flags&128)!==0)throw Error(s(558))}return He(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(c=Il(t),l!==null&&l.dehydrated!==null){if(e===null){if(!c)throw Error(s(318));if(c=t.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(s(317));c[nt]=t}else wl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;He(t),c=!1}else c=_r(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=c),c=!0;if(!c)return t.flags&256?(Nt(t),t):(Nt(t),null)}return Nt(t),(t.flags&128)!==0?(t.lanes=n,t):(n=l!==null,e=e!==null&&e.memoizedState!==null,n&&(l=t.child,c=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(c=l.alternate.memoizedState.cachePool.pool),r=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(r=l.memoizedState.cachePool.pool),r!==c&&(l.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Hc(t,t.updateQueue),He(t),null);case 4:return P(),e===null&&Gs(t.stateNode.containerInfo),He(t),null;case 10:return gn(t.type),He(t),null;case 19:if(X(Xe),l=t.memoizedState,l===null)return He(t),null;if(c=(t.flags&128)!==0,r=l.rendering,r===null)if(c)ui(l,!1);else{if(qe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(r=Cc(e),r!==null){for(t.flags|=128,ui(l,!1),e=r.updateQueue,t.updateQueue=e,Hc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)md(n,e),n=n.sibling;return J(Xe,Xe.current&1|2),Ne&&pn(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&xt()>Vc&&(t.flags|=128,c=!0,ui(l,!1),t.lanes=4194304)}else{if(!c)if(e=Cc(r),e!==null){if(t.flags|=128,c=!0,e=e.updateQueue,t.updateQueue=e,Hc(t,e),ui(l,!0),l.tail===null&&l.tailMode==="hidden"&&!r.alternate&&!Ne)return He(t),null}else 2*xt()-l.renderingStartTime>Vc&&n!==536870912&&(t.flags|=128,c=!0,ui(l,!1),t.lanes=4194304);l.isBackwards?(r.sibling=t.child,t.child=r):(e=l.last,e!==null?e.sibling=r:t.child=r,l.last=r)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=xt(),e.sibling=null,n=Xe.current,J(Xe,c?n&1|2:n&1),Ne&&pn(t,l.treeForkCount),e):(He(t),null);case 22:case 23:return Nt(t),Fr(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(n&536870912)!==0&&(t.flags&128)===0&&(He(t),t.subtreeFlags&6&&(t.flags|=8192)):He(t),n=t.updateQueue,n!==null&&Hc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==n&&(t.flags|=2048),e!==null&&X(Nl),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),gn(Ke),He(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function O0(e,t){switch(zr(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return gn(Ke),P(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ge(t),null;case 31:if(t.memoizedState!==null){if(Nt(t),t.alternate===null)throw Error(s(340));wl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Nt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));wl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return X(Xe),null;case 4:return P(),null;case 10:return gn(t.type),null;case 22:case 23:return Nt(t),Fr(),e!==null&&X(Nl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return gn(Ke),null;case 25:return null;default:return null}}function qh(e,t){switch(zr(t),t.tag){case 3:gn(Ke),P();break;case 26:case 27:case 5:ge(t);break;case 4:P();break;case 31:t.memoizedState!==null&&Nt(t);break;case 13:Nt(t);break;case 19:X(Xe);break;case 10:gn(t.type);break;case 22:case 23:Nt(t),Fr(),e!==null&&X(Nl);break;case 24:gn(Ke)}}function fi(e,t){try{var n=t.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var c=l.next;n=c;do{if((n.tag&e)===e){l=void 0;var r=n.create,m=n.inst;l=r(),m.destroy=l}n=n.next}while(n!==c)}}catch(x){Oe(t,t.return,x)}}function Pn(e,t,n){try{var l=t.updateQueue,c=l!==null?l.lastEffect:null;if(c!==null){var r=c.next;l=r;do{if((l.tag&e)===e){var m=l.inst,x=m.destroy;if(x!==void 0){m.destroy=void 0,c=t;var E=n,H=x;try{H()}catch(V){Oe(c,E,V)}}}l=l.next}while(l!==r)}}catch(V){Oe(t,t.return,V)}}function Vh(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{_d(t,n)}catch(l){Oe(e,e.return,l)}}}function Xh(e,t,n){n.props=zl(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(l){Oe(e,t,l)}}function di(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof n=="function"?e.refCleanup=n(l):n.current=l}}catch(c){Oe(e,t,c)}}function tn(e,t){var n=e.ref,l=e.refCleanup;if(n!==null)if(typeof l=="function")try{l()}catch(c){Oe(e,t,c)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(c){Oe(e,t,c)}else n.current=null}function Gh(e){var t=e.type,n=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&l.focus();break e;case"img":n.src?l.src=n.src:n.srcSet&&(l.srcset=n.srcSet)}}catch(c){Oe(e,e.return,c)}}function Es(e,t,n){try{var l=e.stateNode;I0(l,e.type,n,t),l[ft]=t}catch(c){Oe(e,e.return,c)}}function Fh(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&nl(e.type)||e.tag===4}function Cs(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Fh(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&nl(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ns(e,t,n){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=dn));else if(l!==4&&(l===27&&nl(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Ns(e,t,n),e=e.sibling;e!==null;)Ns(e,t,n),e=e.sibling}function Bc(e,t,n){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(l!==4&&(l===27&&nl(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Bc(e,t,n),e=e.sibling;e!==null;)Bc(e,t,n),e=e.sibling}function Kh(e){var t=e.stateNode,n=e.memoizedProps;try{for(var l=e.type,c=t.attributes;c.length;)t.removeAttributeNode(c[0]);ct(t,l,n),t[nt]=e,t[ft]=n}catch(r){Oe(e,e.return,r)}}var wn=!1,Pe=!1,js=!1,Qh=typeof WeakSet=="function"?WeakSet:Set,et=null;function _0(e,t){if(e=e.containerInfo,Qs=io,e=id(e),xr(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var l=n.getSelection&&n.getSelection();if(l&&l.rangeCount!==0){n=l.anchorNode;var c=l.anchorOffset,r=l.focusNode;l=l.focusOffset;try{n.nodeType,r.nodeType}catch{n=null;break e}var m=0,x=-1,E=-1,H=0,V=0,K=e,B=null;t:for(;;){for(var k;K!==n||c!==0&&K.nodeType!==3||(x=m+c),K!==r||l!==0&&K.nodeType!==3||(E=m+l),K.nodeType===3&&(m+=K.nodeValue.length),(k=K.firstChild)!==null;)B=K,K=k;for(;;){if(K===e)break t;if(B===n&&++H===c&&(x=m),B===r&&++V===l&&(E=m),(k=K.nextSibling)!==null)break;K=B,B=K.parentNode}K=k}n=x===-1||E===-1?null:{start:x,end:E}}else n=null}n=n||{start:0,end:0}}else n=null;for(Zs={focusedElem:e,selectionRange:n},io=!1,et=t;et!==null;)if(t=et,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,et=e;else for(;et!==null;){switch(t=et,r=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)c=e[n],c.ref.impl=c.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&r!==null){e=void 0,n=t,c=r.memoizedProps,r=r.memoizedState,l=n.stateNode;try{var ie=zl(n.type,c);e=l.getSnapshotBeforeUpdate(ie,r),l.__reactInternalSnapshotBeforeUpdate=e}catch(me){Oe(n,n.return,me)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Ws(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Ws(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(s(163))}if(e=t.sibling,e!==null){e.return=t.return,et=e;break}et=t.return}}function Zh(e,t,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:Cn(e,n),l&4&&fi(5,n);break;case 1:if(Cn(e,n),l&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(m){Oe(n,n.return,m)}else{var c=zl(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(c,t,e.__reactInternalSnapshotBeforeUpdate)}catch(m){Oe(n,n.return,m)}}l&64&&Vh(n),l&512&&di(n,n.return);break;case 3:if(Cn(e,n),l&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{_d(e,t)}catch(m){Oe(n,n.return,m)}}break;case 27:t===null&&l&4&&Kh(n);case 26:case 5:Cn(e,n),t===null&&l&4&&Gh(n),l&512&&di(n,n.return);break;case 12:Cn(e,n);break;case 31:Cn(e,n),l&4&&Wh(e,n);break;case 13:Cn(e,n),l&4&&$h(e,n),l&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=q0.bind(null,n),ox(e,n))));break;case 22:if(l=n.memoizedState!==null||wn,!l){t=t!==null&&t.memoizedState!==null||Pe,c=wn;var r=Pe;wn=l,(Pe=t)&&!r?Nn(e,n,(n.subtreeFlags&8772)!==0):Cn(e,n),wn=c,Pe=r}break;case 30:break;default:Cn(e,n)}}function Ph(e){var t=e.alternate;t!==null&&(e.alternate=null,Ph(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&nr(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Be=null,ht=!1;function En(e,t,n){for(n=n.child;n!==null;)Jh(e,t,n),n=n.sibling}function Jh(e,t,n){if(bt&&typeof bt.onCommitFiberUnmount=="function")try{bt.onCommitFiberUnmount(Ua,n)}catch{}switch(n.tag){case 26:Pe||tn(n,t),En(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Pe||tn(n,t);var l=Be,c=ht;nl(n.type)&&(Be=n.stateNode,ht=!1),En(e,t,n),Si(n.stateNode),Be=l,ht=c;break;case 5:Pe||tn(n,t);case 6:if(l=Be,c=ht,Be=null,En(e,t,n),Be=l,ht=c,Be!==null)if(ht)try{(Be.nodeType===9?Be.body:Be.nodeName==="HTML"?Be.ownerDocument.body:Be).removeChild(n.stateNode)}catch(r){Oe(n,t,r)}else try{Be.removeChild(n.stateNode)}catch(r){Oe(n,t,r)}break;case 18:Be!==null&&(ht?(e=Be,Vm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),ba(e)):Vm(Be,n.stateNode));break;case 4:l=Be,c=ht,Be=n.stateNode.containerInfo,ht=!0,En(e,t,n),Be=l,ht=c;break;case 0:case 11:case 14:case 15:Pn(2,n,t),Pe||Pn(4,n,t),En(e,t,n);break;case 1:Pe||(tn(n,t),l=n.stateNode,typeof l.componentWillUnmount=="function"&&Xh(n,t,l)),En(e,t,n);break;case 21:En(e,t,n);break;case 22:Pe=(l=Pe)||n.memoizedState!==null,En(e,t,n),Pe=l;break;default:En(e,t,n)}}function Wh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{ba(e)}catch(n){Oe(t,t.return,n)}}}function $h(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ba(e)}catch(n){Oe(t,t.return,n)}}function D0(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Qh),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Qh),t;default:throw Error(s(435,e.tag))}}function kc(e,t){var n=D0(e);t.forEach(function(l){if(!n.has(l)){n.add(l);var c=V0.bind(null,e,l);l.then(c,c)}})}function mt(e,t){var n=t.deletions;if(n!==null)for(var l=0;l<n.length;l++){var c=n[l],r=e,m=t,x=m;e:for(;x!==null;){switch(x.tag){case 27:if(nl(x.type)){Be=x.stateNode,ht=!1;break e}break;case 5:Be=x.stateNode,ht=!1;break e;case 3:case 4:Be=x.stateNode.containerInfo,ht=!0;break e}x=x.return}if(Be===null)throw Error(s(160));Jh(r,m,c),Be=null,ht=!1,r=c.alternate,r!==null&&(r.return=null),c.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Ih(t,e),t=t.sibling}var Kt=null;function Ih(e,t){var n=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:mt(t,e),pt(e),l&4&&(Pn(3,e,e.return),fi(3,e),Pn(5,e,e.return));break;case 1:mt(t,e),pt(e),l&512&&(Pe||n===null||tn(n,n.return)),l&64&&wn&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?l:n.concat(l))));break;case 26:var c=Kt;if(mt(t,e),pt(e),l&512&&(Pe||n===null||tn(n,n.return)),l&4){var r=n!==null?n.memoizedState:null;if(l=e.memoizedState,n===null)if(l===null)if(e.stateNode===null){e:{l=e.type,n=e.memoizedProps,c=c.ownerDocument||c;t:switch(l){case"title":r=c.getElementsByTagName("title")[0],(!r||r[ka]||r[nt]||r.namespaceURI==="http://www.w3.org/2000/svg"||r.hasAttribute("itemprop"))&&(r=c.createElement(l),c.head.insertBefore(r,c.querySelector("head > title"))),ct(r,l,n),r[nt]=e,Ie(r),l=r;break e;case"link":var m=Im("link","href",c).get(l+(n.href||""));if(m){for(var x=0;x<m.length;x++)if(r=m[x],r.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&r.getAttribute("rel")===(n.rel==null?null:n.rel)&&r.getAttribute("title")===(n.title==null?null:n.title)&&r.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){m.splice(x,1);break t}}r=c.createElement(l),ct(r,l,n),c.head.appendChild(r);break;case"meta":if(m=Im("meta","content",c).get(l+(n.content||""))){for(x=0;x<m.length;x++)if(r=m[x],r.getAttribute("content")===(n.content==null?null:""+n.content)&&r.getAttribute("name")===(n.name==null?null:n.name)&&r.getAttribute("property")===(n.property==null?null:n.property)&&r.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&r.getAttribute("charset")===(n.charSet==null?null:n.charSet)){m.splice(x,1);break t}}r=c.createElement(l),ct(r,l,n),c.head.appendChild(r);break;default:throw Error(s(468,l))}r[nt]=e,Ie(r),l=r}e.stateNode=l}else ep(c,e.type,e.stateNode);else e.stateNode=$m(c,l,e.memoizedProps);else r!==l?(r===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):r.count--,l===null?ep(c,e.type,e.stateNode):$m(c,l,e.memoizedProps)):l===null&&e.stateNode!==null&&Es(e,e.memoizedProps,n.memoizedProps)}break;case 27:mt(t,e),pt(e),l&512&&(Pe||n===null||tn(n,n.return)),n!==null&&l&4&&Es(e,e.memoizedProps,n.memoizedProps);break;case 5:if(mt(t,e),pt(e),l&512&&(Pe||n===null||tn(n,n.return)),e.flags&32){c=e.stateNode;try{Xl(c,"")}catch(ie){Oe(e,e.return,ie)}}l&4&&e.stateNode!=null&&(c=e.memoizedProps,Es(e,c,n!==null?n.memoizedProps:c)),l&1024&&(js=!0);break;case 6:if(mt(t,e),pt(e),l&4){if(e.stateNode===null)throw Error(s(162));l=e.memoizedProps,n=e.stateNode;try{n.nodeValue=l}catch(ie){Oe(e,e.return,ie)}}break;case 3:if(to=null,c=Kt,Kt=Ic(t.containerInfo),mt(t,e),Kt=c,pt(e),l&4&&n!==null&&n.memoizedState.isDehydrated)try{ba(t.containerInfo)}catch(ie){Oe(e,e.return,ie)}js&&(js=!1,em(e));break;case 4:l=Kt,Kt=Ic(e.stateNode.containerInfo),mt(t,e),pt(e),Kt=l;break;case 12:mt(t,e),pt(e);break;case 31:mt(t,e),pt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,kc(e,l)));break;case 13:mt(t,e),pt(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(qc=xt()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,kc(e,l)));break;case 22:c=e.memoizedState!==null;var E=n!==null&&n.memoizedState!==null,H=wn,V=Pe;if(wn=H||c,Pe=V||E,mt(t,e),Pe=V,wn=H,pt(e),l&8192)e:for(t=e.stateNode,t._visibility=c?t._visibility&-2:t._visibility|1,c&&(n===null||E||wn||Pe||Ol(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){E=n=t;try{if(r=E.stateNode,c)m=r.style,typeof m.setProperty=="function"?m.setProperty("display","none","important"):m.display="none";else{x=E.stateNode;var K=E.memoizedProps.style,B=K!=null&&K.hasOwnProperty("display")?K.display:null;x.style.display=B==null||typeof B=="boolean"?"":(""+B).trim()}}catch(ie){Oe(E,E.return,ie)}}}else if(t.tag===6){if(n===null){E=t;try{E.stateNode.nodeValue=c?"":E.memoizedProps}catch(ie){Oe(E,E.return,ie)}}}else if(t.tag===18){if(n===null){E=t;try{var k=E.stateNode;c?Xm(k,!0):Xm(E.stateNode,!1)}catch(ie){Oe(E,E.return,ie)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(n=l.retryQueue,n!==null&&(l.retryQueue=null,kc(e,n))));break;case 19:mt(t,e),pt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,kc(e,l)));break;case 30:break;case 21:break;default:mt(t,e),pt(e)}}function pt(e){var t=e.flags;if(t&2){try{for(var n,l=e.return;l!==null;){if(Fh(l)){n=l;break}l=l.return}if(n==null)throw Error(s(160));switch(n.tag){case 27:var c=n.stateNode,r=Cs(e);Bc(e,r,c);break;case 5:var m=n.stateNode;n.flags&32&&(Xl(m,""),n.flags&=-33);var x=Cs(e);Bc(e,x,m);break;case 3:case 4:var E=n.stateNode.containerInfo,H=Cs(e);Ns(e,H,E);break;default:throw Error(s(161))}}catch(V){Oe(e,e.return,V)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function em(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;em(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Cn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Zh(e,t.alternate,t),t=t.sibling}function Ol(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Pn(4,t,t.return),Ol(t);break;case 1:tn(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&Xh(t,t.return,n),Ol(t);break;case 27:Si(t.stateNode);case 26:case 5:tn(t,t.return),Ol(t);break;case 22:t.memoizedState===null&&Ol(t);break;case 30:Ol(t);break;default:Ol(t)}e=e.sibling}}function Nn(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,c=e,r=t,m=r.flags;switch(r.tag){case 0:case 11:case 15:Nn(c,r,n),fi(4,r);break;case 1:if(Nn(c,r,n),l=r,c=l.stateNode,typeof c.componentDidMount=="function")try{c.componentDidMount()}catch(H){Oe(l,l.return,H)}if(l=r,c=l.updateQueue,c!==null){var x=l.stateNode;try{var E=c.shared.hiddenCallbacks;if(E!==null)for(c.shared.hiddenCallbacks=null,c=0;c<E.length;c++)Od(E[c],x)}catch(H){Oe(l,l.return,H)}}n&&m&64&&Vh(r),di(r,r.return);break;case 27:Kh(r);case 26:case 5:Nn(c,r,n),n&&l===null&&m&4&&Gh(r),di(r,r.return);break;case 12:Nn(c,r,n);break;case 31:Nn(c,r,n),n&&m&4&&Wh(c,r);break;case 13:Nn(c,r,n),n&&m&4&&$h(c,r);break;case 22:r.memoizedState===null&&Nn(c,r,n),di(r,r.return);break;case 30:break;default:Nn(c,r,n)}t=t.sibling}}function Ts(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&$a(n))}function As(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&$a(e))}function Qt(e,t,n,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)tm(e,t,n,l),t=t.sibling}function tm(e,t,n,l){var c=t.flags;switch(t.tag){case 0:case 11:case 15:Qt(e,t,n,l),c&2048&&fi(9,t);break;case 1:Qt(e,t,n,l);break;case 3:Qt(e,t,n,l),c&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&$a(e)));break;case 12:if(c&2048){Qt(e,t,n,l),e=t.stateNode;try{var r=t.memoizedProps,m=r.id,x=r.onPostCommit;typeof x=="function"&&x(m,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(E){Oe(t,t.return,E)}}else Qt(e,t,n,l);break;case 31:Qt(e,t,n,l);break;case 13:Qt(e,t,n,l);break;case 23:break;case 22:r=t.stateNode,m=t.alternate,t.memoizedState!==null?r._visibility&2?Qt(e,t,n,l):hi(e,t):r._visibility&2?Qt(e,t,n,l):(r._visibility|=2,sa(e,t,n,l,(t.subtreeFlags&10256)!==0||!1)),c&2048&&Ts(m,t);break;case 24:Qt(e,t,n,l),c&2048&&As(t.alternate,t);break;default:Qt(e,t,n,l)}}function sa(e,t,n,l,c){for(c=c&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var r=e,m=t,x=n,E=l,H=m.flags;switch(m.tag){case 0:case 11:case 15:sa(r,m,x,E,c),fi(8,m);break;case 23:break;case 22:var V=m.stateNode;m.memoizedState!==null?V._visibility&2?sa(r,m,x,E,c):hi(r,m):(V._visibility|=2,sa(r,m,x,E,c)),c&&H&2048&&Ts(m.alternate,m);break;case 24:sa(r,m,x,E,c),c&&H&2048&&As(m.alternate,m);break;default:sa(r,m,x,E,c)}t=t.sibling}}function hi(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,l=t,c=l.flags;switch(l.tag){case 22:hi(n,l),c&2048&&Ts(l.alternate,l);break;case 24:hi(n,l),c&2048&&As(l.alternate,l);break;default:hi(n,l)}t=t.sibling}}var mi=8192;function ua(e,t,n){if(e.subtreeFlags&mi)for(e=e.child;e!==null;)nm(e,t,n),e=e.sibling}function nm(e,t,n){switch(e.tag){case 26:ua(e,t,n),e.flags&mi&&e.memoizedState!==null&&xx(n,Kt,e.memoizedState,e.memoizedProps);break;case 5:ua(e,t,n);break;case 3:case 4:var l=Kt;Kt=Ic(e.stateNode.containerInfo),ua(e,t,n),Kt=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=mi,mi=16777216,ua(e,t,n),mi=l):ua(e,t,n));break;default:ua(e,t,n)}}function lm(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function pi(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];et=l,im(l,e)}lm(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)am(e),e=e.sibling}function am(e){switch(e.tag){case 0:case 11:case 15:pi(e),e.flags&2048&&Pn(9,e,e.return);break;case 3:pi(e);break;case 12:pi(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Yc(e)):pi(e);break;default:pi(e)}}function Yc(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];et=l,im(l,e)}lm(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Pn(8,t,t.return),Yc(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Yc(t));break;default:Yc(t)}e=e.sibling}}function im(e,t){for(;et!==null;){var n=et;switch(n.tag){case 0:case 11:case 15:Pn(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var l=n.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:$a(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,et=l;else e:for(n=e;et!==null;){l=et;var c=l.sibling,r=l.return;if(Ph(l),l===n){et=null;break e}if(c!==null){c.return=r,et=c;break e}et=r}}}var M0={getCacheForType:function(e){var t=at(Ke),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return at(Ke).controller.signal}},L0=typeof WeakMap=="function"?WeakMap:Map,Re=0,Le=null,Se=null,Ee=0,ze=0,jt=null,Jn=!1,fa=!1,Rs=!1,jn=0,qe=0,Wn=0,_l=0,zs=0,Tt=0,da=0,vi=null,vt=null,Os=!1,qc=0,cm=0,Vc=1/0,Xc=null,$n=null,We=0,In=null,ha=null,Tn=0,_s=0,Ds=null,om=null,gi=0,Ms=null;function At(){return(Re&2)!==0&&Ee!==0?Ee&-Ee:O.T!==null?Ys():Ef()}function rm(){if(Tt===0)if((Ee&536870912)===0||Ne){var e=Wi;Wi<<=1,(Wi&3932160)===0&&(Wi=262144),Tt=e}else Tt=536870912;return e=Ct.current,e!==null&&(e.flags|=32),Tt}function gt(e,t,n){(e===Le&&(ze===2||ze===9)||e.cancelPendingCommit!==null)&&(ma(e,0),el(e,Ee,Tt,!1)),Ba(e,n),((Re&2)===0||e!==Le)&&(e===Le&&((Re&2)===0&&(_l|=n),qe===4&&el(e,Ee,Tt,!1)),nn(e))}function sm(e,t,n){if((Re&6)!==0)throw Error(s(327));var l=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Ha(e,t),c=l?B0(e,t):Us(e,t,!0),r=l;do{if(c===0){fa&&!l&&el(e,t,0,!1);break}else{if(n=e.current.alternate,r&&!U0(n)){c=Us(e,t,!1),r=!1;continue}if(c===2){if(r=t,e.errorRecoveryDisabledLanes&r)var m=0;else m=e.pendingLanes&-536870913,m=m!==0?m:m&536870912?536870912:0;if(m!==0){t=m;e:{var x=e;c=vi;var E=x.current.memoizedState.isDehydrated;if(E&&(ma(x,m).flags|=256),m=Us(x,m,!1),m!==2){if(Rs&&!E){x.errorRecoveryDisabledLanes|=r,_l|=r,c=4;break e}r=vt,vt=c,r!==null&&(vt===null?vt=r:vt.push.apply(vt,r))}c=m}if(r=!1,c!==2)continue}}if(c===1){ma(e,0),el(e,t,0,!0);break}e:{switch(l=e,r=c,r){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:el(l,t,Tt,!Jn);break e;case 2:vt=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(c=qc+300-xt(),10<c)){if(el(l,t,Tt,!Jn),Ii(l,0,!0)!==0)break e;Tn=t,l.timeoutHandle=Ym(um.bind(null,l,n,vt,Xc,Os,t,Tt,_l,da,Jn,r,"Throttled",-0,0),c);break e}um(l,n,vt,Xc,Os,t,Tt,_l,da,Jn,r,null,-0,0)}}break}while(!0);nn(e)}function um(e,t,n,l,c,r,m,x,E,H,V,K,B,k){if(e.timeoutHandle=-1,K=t.subtreeFlags,K&8192||(K&16785408)===16785408){K={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:dn},nm(t,r,K);var ie=(r&62914560)===r?qc-xt():(r&4194048)===r?cm-xt():0;if(ie=bx(K,ie),ie!==null){Tn=r,e.cancelPendingCommit=ie(ym.bind(null,e,t,r,n,l,c,m,x,E,V,K,null,B,k)),el(e,r,m,!H);return}}ym(e,t,r,n,l,c,m,x,E)}function U0(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var l=0;l<n.length;l++){var c=n[l],r=c.getSnapshot;c=c.value;try{if(!wt(r(),c))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function el(e,t,n,l){t&=~zs,t&=~_l,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var c=t;0<c;){var r=31-St(c),m=1<<r;l[r]=-1,c&=~m}n!==0&&bf(e,n,t)}function Gc(){return(Re&6)===0?(yi(0),!1):!0}function Ls(){if(Se!==null){if(ze===0)var e=Se.return;else e=Se,vn=El=null,Wr(e),aa=null,ei=0,e=Se;for(;e!==null;)qh(e.alternate,e),e=e.return;Se=null}}function ma(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,nx(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Tn=0,Ls(),Le=e,Se=n=mn(e.current,null),Ee=t,ze=0,jt=null,Jn=!1,fa=Ha(e,t),Rs=!1,da=Tt=zs=_l=Wn=qe=0,vt=vi=null,Os=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var c=31-St(l),r=1<<c;t|=e[c],l&=~r}return jn=t,fc(),n}function fm(e,t){ye=null,O.H=ri,t===la||t===xc?(t=Td(),ze=3):t===kr?(t=Td(),ze=4):ze=t===hs?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,jt=t,Se===null&&(qe=1,Dc(e,Bt(t,e.current)))}function dm(){var e=Ct.current;return e===null?!0:(Ee&4194048)===Ee?Vt===null:(Ee&62914560)===Ee||(Ee&536870912)!==0?e===Vt:!1}function hm(){var e=O.H;return O.H=ri,e===null?ri:e}function mm(){var e=O.A;return O.A=M0,e}function Fc(){qe=4,Jn||(Ee&4194048)!==Ee&&Ct.current!==null||(fa=!0),(Wn&134217727)===0&&(_l&134217727)===0||Le===null||el(Le,Ee,Tt,!1)}function Us(e,t,n){var l=Re;Re|=2;var c=hm(),r=mm();(Le!==e||Ee!==t)&&(Xc=null,ma(e,t)),t=!1;var m=qe;e:do try{if(ze!==0&&Se!==null){var x=Se,E=jt;switch(ze){case 8:Ls(),m=6;break e;case 3:case 2:case 9:case 6:Ct.current===null&&(t=!0);var H=ze;if(ze=0,jt=null,pa(e,x,E,H),n&&fa){m=0;break e}break;default:H=ze,ze=0,jt=null,pa(e,x,E,H)}}H0(),m=qe;break}catch(V){fm(e,V)}while(!0);return t&&e.shellSuspendCounter++,vn=El=null,Re=l,O.H=c,O.A=r,Se===null&&(Le=null,Ee=0,fc()),m}function H0(){for(;Se!==null;)pm(Se)}function B0(e,t){var n=Re;Re|=2;var l=hm(),c=mm();Le!==e||Ee!==t?(Xc=null,Vc=xt()+500,ma(e,t)):fa=Ha(e,t);e:do try{if(ze!==0&&Se!==null){t=Se;var r=jt;t:switch(ze){case 1:ze=0,jt=null,pa(e,t,r,1);break;case 2:case 9:if(Nd(r)){ze=0,jt=null,vm(t);break}t=function(){ze!==2&&ze!==9||Le!==e||(ze=7),nn(e)},r.then(t,t);break e;case 3:ze=7;break e;case 4:ze=5;break e;case 7:Nd(r)?(ze=0,jt=null,vm(t)):(ze=0,jt=null,pa(e,t,r,7));break;case 5:var m=null;switch(Se.tag){case 26:m=Se.memoizedState;case 5:case 27:var x=Se;if(m?tp(m):x.stateNode.complete){ze=0,jt=null;var E=x.sibling;if(E!==null)Se=E;else{var H=x.return;H!==null?(Se=H,Kc(H)):Se=null}break t}}ze=0,jt=null,pa(e,t,r,5);break;case 6:ze=0,jt=null,pa(e,t,r,6);break;case 8:Ls(),qe=6;break e;default:throw Error(s(462))}}k0();break}catch(V){fm(e,V)}while(!0);return vn=El=null,O.H=l,O.A=c,Re=n,Se!==null?0:(Le=null,Ee=0,fc(),qe)}function k0(){for(;Se!==null&&!ry();)pm(Se)}function pm(e){var t=kh(e.alternate,e,jn);e.memoizedProps=e.pendingProps,t===null?Kc(e):Se=t}function vm(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Dh(n,t,t.pendingProps,t.type,void 0,Ee);break;case 11:t=Dh(n,t,t.pendingProps,t.type.render,t.ref,Ee);break;case 5:Wr(t);default:qh(n,t),t=Se=md(t,jn),t=kh(n,t,jn)}e.memoizedProps=e.pendingProps,t===null?Kc(e):Se=t}function pa(e,t,n,l){vn=El=null,Wr(t),aa=null,ei=0;var c=t.return;try{if(T0(e,c,t,n,Ee)){qe=1,Dc(e,Bt(n,e.current)),Se=null;return}}catch(r){if(c!==null)throw Se=c,r;qe=1,Dc(e,Bt(n,e.current)),Se=null;return}t.flags&32768?(Ne||l===1?e=!0:fa||(Ee&536870912)!==0?e=!1:(Jn=e=!0,(l===2||l===9||l===3||l===6)&&(l=Ct.current,l!==null&&l.tag===13&&(l.flags|=16384))),gm(t,e)):Kc(t)}function Kc(e){var t=e;do{if((t.flags&32768)!==0){gm(t,Jn);return}e=t.return;var n=z0(t.alternate,t,jn);if(n!==null){Se=n;return}if(t=t.sibling,t!==null){Se=t;return}Se=t=e}while(t!==null);qe===0&&(qe=5)}function gm(e,t){do{var n=O0(e.alternate,e);if(n!==null){n.flags&=32767,Se=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Se=e;return}Se=e=n}while(e!==null);qe=6,Se=null}function ym(e,t,n,l,c,r,m,x,E){e.cancelPendingCommit=null;do Qc();while(We!==0);if((Re&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(r=t.lanes|t.childLanes,r|=Cr,yy(e,n,r,m,x,E),e===Le&&(Se=Le=null,Ee=0),ha=t,In=e,Tn=n,_s=r,Ds=c,om=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,X0(Pi,function(){return Em(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=O.T,O.T=null,c=L.p,L.p=2,m=Re,Re|=4;try{_0(e,t,n)}finally{Re=m,L.p=c,O.T=l}}We=1,xm(),bm(),Sm()}}function xm(){if(We===1){We=0;var e=In,t=ha,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=O.T,O.T=null;var l=L.p;L.p=2;var c=Re;Re|=4;try{Ih(t,e);var r=Zs,m=id(e.containerInfo),x=r.focusedElem,E=r.selectionRange;if(m!==x&&x&&x.ownerDocument&&ad(x.ownerDocument.documentElement,x)){if(E!==null&&xr(x)){var H=E.start,V=E.end;if(V===void 0&&(V=H),"selectionStart"in x)x.selectionStart=H,x.selectionEnd=Math.min(V,x.value.length);else{var K=x.ownerDocument||document,B=K&&K.defaultView||window;if(B.getSelection){var k=B.getSelection(),ie=x.textContent.length,me=Math.min(E.start,ie),Me=E.end===void 0?me:Math.min(E.end,ie);!k.extend&&me>Me&&(m=Me,Me=me,me=m);var _=ld(x,me),A=ld(x,Me);if(_&&A&&(k.rangeCount!==1||k.anchorNode!==_.node||k.anchorOffset!==_.offset||k.focusNode!==A.node||k.focusOffset!==A.offset)){var U=K.createRange();U.setStart(_.node,_.offset),k.removeAllRanges(),me>Me?(k.addRange(U),k.extend(A.node,A.offset)):(U.setEnd(A.node,A.offset),k.addRange(U))}}}}for(K=[],k=x;k=k.parentNode;)k.nodeType===1&&K.push({element:k,left:k.scrollLeft,top:k.scrollTop});for(typeof x.focus=="function"&&x.focus(),x=0;x<K.length;x++){var F=K[x];F.element.scrollLeft=F.left,F.element.scrollTop=F.top}}io=!!Qs,Zs=Qs=null}finally{Re=c,L.p=l,O.T=n}}e.current=t,We=2}}function bm(){if(We===2){We=0;var e=In,t=ha,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=O.T,O.T=null;var l=L.p;L.p=2;var c=Re;Re|=4;try{Zh(e,t.alternate,t)}finally{Re=c,L.p=l,O.T=n}}We=3}}function Sm(){if(We===4||We===3){We=0,sy();var e=In,t=ha,n=Tn,l=om;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?We=5:(We=0,ha=In=null,wm(e,e.pendingLanes));var c=e.pendingLanes;if(c===0&&($n=null),er(n),t=t.stateNode,bt&&typeof bt.onCommitFiberRoot=="function")try{bt.onCommitFiberRoot(Ua,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=O.T,c=L.p,L.p=2,O.T=null;try{for(var r=e.onRecoverableError,m=0;m<l.length;m++){var x=l[m];r(x.value,{componentStack:x.stack})}}finally{O.T=t,L.p=c}}(Tn&3)!==0&&Qc(),nn(e),c=e.pendingLanes,(n&261930)!==0&&(c&42)!==0?e===Ms?gi++:(gi=0,Ms=e):gi=0,yi(0)}}function wm(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,$a(t)))}function Qc(){return xm(),bm(),Sm(),Em()}function Em(){if(We!==5)return!1;var e=In,t=_s;_s=0;var n=er(Tn),l=O.T,c=L.p;try{L.p=32>n?32:n,O.T=null,n=Ds,Ds=null;var r=In,m=Tn;if(We=0,ha=In=null,Tn=0,(Re&6)!==0)throw Error(s(331));var x=Re;if(Re|=4,am(r.current),tm(r,r.current,m,n),Re=x,yi(0,!1),bt&&typeof bt.onPostCommitFiberRoot=="function")try{bt.onPostCommitFiberRoot(Ua,r)}catch{}return!0}finally{L.p=c,O.T=l,wm(e,t)}}function Cm(e,t,n){t=Bt(n,t),t=ds(e.stateNode,t,2),e=Kn(e,t,2),e!==null&&(Ba(e,2),nn(e))}function Oe(e,t,n){if(e.tag===3)Cm(e,e,n);else for(;t!==null;){if(t.tag===3){Cm(t,e,n);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&($n===null||!$n.has(l))){e=Bt(n,e),n=Nh(2),l=Kn(t,n,2),l!==null&&(jh(n,l,t,e),Ba(l,2),nn(l));break}}t=t.return}}function Hs(e,t,n){var l=e.pingCache;if(l===null){l=e.pingCache=new L0;var c=new Set;l.set(t,c)}else c=l.get(t),c===void 0&&(c=new Set,l.set(t,c));c.has(n)||(Rs=!0,c.add(n),e=Y0.bind(null,e,t,n),t.then(e,e))}function Y0(e,t,n){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Le===e&&(Ee&n)===n&&(qe===4||qe===3&&(Ee&62914560)===Ee&&300>xt()-qc?(Re&2)===0&&ma(e,0):zs|=n,da===Ee&&(da=0)),nn(e)}function Nm(e,t){t===0&&(t=xf()),e=bl(e,t),e!==null&&(Ba(e,t),nn(e))}function q0(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Nm(e,n)}function V0(e,t){var n=0;switch(e.tag){case 31:case 13:var l=e.stateNode,c=e.memoizedState;c!==null&&(n=c.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(s(314))}l!==null&&l.delete(t),Nm(e,n)}function X0(e,t){return Jo(e,t)}var Zc=null,va=null,Bs=!1,Pc=!1,ks=!1,tl=0;function nn(e){e!==va&&e.next===null&&(va===null?Zc=va=e:va=va.next=e),Pc=!0,Bs||(Bs=!0,F0())}function yi(e,t){if(!ks&&Pc){ks=!0;do for(var n=!1,l=Zc;l!==null;){if(e!==0){var c=l.pendingLanes;if(c===0)var r=0;else{var m=l.suspendedLanes,x=l.pingedLanes;r=(1<<31-St(42|e)+1)-1,r&=c&~(m&~x),r=r&201326741?r&201326741|1:r?r|2:0}r!==0&&(n=!0,Rm(l,r))}else r=Ee,r=Ii(l,l===Le?r:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(r&3)===0||Ha(l,r)||(n=!0,Rm(l,r));l=l.next}while(n);ks=!1}}function G0(){jm()}function jm(){Pc=Bs=!1;var e=0;tl!==0&&tx()&&(e=tl);for(var t=xt(),n=null,l=Zc;l!==null;){var c=l.next,r=Tm(l,t);r===0?(l.next=null,n===null?Zc=c:n.next=c,c===null&&(va=n)):(n=l,(e!==0||(r&3)!==0)&&(Pc=!0)),l=c}We!==0&&We!==5||yi(e),tl!==0&&(tl=0)}function Tm(e,t){for(var n=e.suspendedLanes,l=e.pingedLanes,c=e.expirationTimes,r=e.pendingLanes&-62914561;0<r;){var m=31-St(r),x=1<<m,E=c[m];E===-1?((x&n)===0||(x&l)!==0)&&(c[m]=gy(x,t)):E<=t&&(e.expiredLanes|=x),r&=~x}if(t=Le,n=Ee,n=Ii(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,n===0||e===t&&(ze===2||ze===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&Wo(l),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Ha(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(l!==null&&Wo(l),er(n)){case 2:case 8:n=gf;break;case 32:n=Pi;break;case 268435456:n=yf;break;default:n=Pi}return l=Am.bind(null,e),n=Jo(n,l),e.callbackPriority=t,e.callbackNode=n,t}return l!==null&&l!==null&&Wo(l),e.callbackPriority=2,e.callbackNode=null,2}function Am(e,t){if(We!==0&&We!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Qc()&&e.callbackNode!==n)return null;var l=Ee;return l=Ii(e,e===Le?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(sm(e,l,t),Tm(e,xt()),e.callbackNode!=null&&e.callbackNode===n?Am.bind(null,e):null)}function Rm(e,t){if(Qc())return null;sm(e,t,!0)}function F0(){lx(function(){(Re&6)!==0?Jo(vf,G0):jm()})}function Ys(){if(tl===0){var e=ta;e===0&&(e=Ji,Ji<<=1,(Ji&261888)===0&&(Ji=256)),tl=e}return tl}function zm(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:lc(""+e)}function Om(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function K0(e,t,n,l,c){if(t==="submit"&&n&&n.stateNode===c){var r=zm((c[ft]||null).action),m=l.submitter;m&&(t=(t=m[ft]||null)?zm(t.formAction):m.getAttribute("formAction"),t!==null&&(r=t,m=null));var x=new oc("action","action",null,l,c);e.push({event:x,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(tl!==0){var E=m?Om(c,m):new FormData(c);cs(n,{pending:!0,data:E,method:c.method,action:r},null,E)}}else typeof r=="function"&&(x.preventDefault(),E=m?Om(c,m):new FormData(c),cs(n,{pending:!0,data:E,method:c.method,action:r},r,E))},currentTarget:c}]})}}for(var qs=0;qs<Er.length;qs++){var Vs=Er[qs],Q0=Vs.toLowerCase(),Z0=Vs[0].toUpperCase()+Vs.slice(1);Ft(Q0,"on"+Z0)}Ft(rd,"onAnimationEnd"),Ft(sd,"onAnimationIteration"),Ft(ud,"onAnimationStart"),Ft("dblclick","onDoubleClick"),Ft("focusin","onFocus"),Ft("focusout","onBlur"),Ft(u0,"onTransitionRun"),Ft(f0,"onTransitionStart"),Ft(d0,"onTransitionCancel"),Ft(fd,"onTransitionEnd"),ql("onMouseEnter",["mouseout","mouseover"]),ql("onMouseLeave",["mouseout","mouseover"]),ql("onPointerEnter",["pointerout","pointerover"]),ql("onPointerLeave",["pointerout","pointerover"]),vl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),vl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),vl("onBeforeInput",["compositionend","keypress","textInput","paste"]),vl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),vl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),vl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var xi="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(" "),P0=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(xi));function _m(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var l=e[n],c=l.event;l=l.listeners;e:{var r=void 0;if(t)for(var m=l.length-1;0<=m;m--){var x=l[m],E=x.instance,H=x.currentTarget;if(x=x.listener,E!==r&&c.isPropagationStopped())break e;r=x,c.currentTarget=H;try{r(c)}catch(V){uc(V)}c.currentTarget=null,r=E}else for(m=0;m<l.length;m++){if(x=l[m],E=x.instance,H=x.currentTarget,x=x.listener,E!==r&&c.isPropagationStopped())break e;r=x,c.currentTarget=H;try{r(c)}catch(V){uc(V)}c.currentTarget=null,r=E}}}}function we(e,t){var n=t[tr];n===void 0&&(n=t[tr]=new Set);var l=e+"__bubble";n.has(l)||(Dm(t,e,2,!1),n.add(l))}function Xs(e,t,n){var l=0;t&&(l|=4),Dm(n,e,l,t)}var Jc="_reactListening"+Math.random().toString(36).slice(2);function Gs(e){if(!e[Jc]){e[Jc]=!0,jf.forEach(function(n){n!=="selectionchange"&&(P0.has(n)||Xs(n,!1,e),Xs(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Jc]||(t[Jc]=!0,Xs("selectionchange",!1,t))}}function Dm(e,t,n,l){switch(rp(t)){case 2:var c=Ex;break;case 8:c=Cx;break;default:c=iu}n=c.bind(null,t,n,e),c=void 0,!ur||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(c=!0),l?c!==void 0?e.addEventListener(t,n,{capture:!0,passive:c}):e.addEventListener(t,n,!0):c!==void 0?e.addEventListener(t,n,{passive:c}):e.addEventListener(t,n,!1)}function Fs(e,t,n,l,c){var r=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var m=l.tag;if(m===3||m===4){var x=l.stateNode.containerInfo;if(x===c)break;if(m===4)for(m=l.return;m!==null;){var E=m.tag;if((E===3||E===4)&&m.stateNode.containerInfo===c)return;m=m.return}for(;x!==null;){if(m=Bl(x),m===null)return;if(E=m.tag,E===5||E===6||E===26||E===27){l=r=m;continue e}x=x.parentNode}}l=l.return}Bf(function(){var H=r,V=rr(n),K=[];e:{var B=dd.get(e);if(B!==void 0){var k=oc,ie=e;switch(e){case"keypress":if(ic(n)===0)break e;case"keydown":case"keyup":k=Vy;break;case"focusin":ie="focus",k=mr;break;case"focusout":ie="blur",k=mr;break;case"beforeblur":case"afterblur":k=mr;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":k=qf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":k=zy;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":k=Fy;break;case rd:case sd:case ud:k=Dy;break;case fd:k=Qy;break;case"scroll":case"scrollend":k=Ay;break;case"wheel":k=Py;break;case"copy":case"cut":case"paste":k=Ly;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":k=Xf;break;case"toggle":case"beforetoggle":k=Wy}var me=(t&4)!==0,Me=!me&&(e==="scroll"||e==="scrollend"),_=me?B!==null?B+"Capture":null:B;me=[];for(var A=H,U;A!==null;){var F=A;if(U=F.stateNode,F=F.tag,F!==5&&F!==26&&F!==27||U===null||_===null||(F=qa(A,_),F!=null&&me.push(bi(A,F,U))),Me)break;A=A.return}0<me.length&&(B=new k(B,ie,null,n,V),K.push({event:B,listeners:me}))}}if((t&7)===0){e:{if(B=e==="mouseover"||e==="pointerover",k=e==="mouseout"||e==="pointerout",B&&n!==or&&(ie=n.relatedTarget||n.fromElement)&&(Bl(ie)||ie[Hl]))break e;if((k||B)&&(B=V.window===V?V:(B=V.ownerDocument)?B.defaultView||B.parentWindow:window,k?(ie=n.relatedTarget||n.toElement,k=H,ie=ie?Bl(ie):null,ie!==null&&(Me=d(ie),me=ie.tag,ie!==Me||me!==5&&me!==27&&me!==6)&&(ie=null)):(k=null,ie=H),k!==ie)){if(me=qf,F="onMouseLeave",_="onMouseEnter",A="mouse",(e==="pointerout"||e==="pointerover")&&(me=Xf,F="onPointerLeave",_="onPointerEnter",A="pointer"),Me=k==null?B:Ya(k),U=ie==null?B:Ya(ie),B=new me(F,A+"leave",k,n,V),B.target=Me,B.relatedTarget=U,F=null,Bl(V)===H&&(me=new me(_,A+"enter",ie,n,V),me.target=U,me.relatedTarget=Me,F=me),Me=F,k&&ie)t:{for(me=J0,_=k,A=ie,U=0,F=_;F;F=me(F))U++;F=0;for(var de=A;de;de=me(de))F++;for(;0<U-F;)_=me(_),U--;for(;0<F-U;)A=me(A),F--;for(;U--;){if(_===A||A!==null&&_===A.alternate){me=_;break t}_=me(_),A=me(A)}me=null}else me=null;k!==null&&Mm(K,B,k,me,!1),ie!==null&&Me!==null&&Mm(K,Me,ie,me,!0)}}e:{if(B=H?Ya(H):window,k=B.nodeName&&B.nodeName.toLowerCase(),k==="select"||k==="input"&&B.type==="file")var je=Wf;else if(Pf(B))if($f)je=o0;else{je=i0;var re=a0}else k=B.nodeName,!k||k.toLowerCase()!=="input"||B.type!=="checkbox"&&B.type!=="radio"?H&&cr(H.elementType)&&(je=Wf):je=c0;if(je&&(je=je(e,H))){Jf(K,je,n,V);break e}re&&re(e,B,H),e==="focusout"&&H&&B.type==="number"&&H.memoizedProps.value!=null&&ir(B,"number",B.value)}switch(re=H?Ya(H):window,e){case"focusin":(Pf(re)||re.contentEditable==="true")&&(Ql=re,br=H,Pa=null);break;case"focusout":Pa=br=Ql=null;break;case"mousedown":Sr=!0;break;case"contextmenu":case"mouseup":case"dragend":Sr=!1,cd(K,n,V);break;case"selectionchange":if(s0)break;case"keydown":case"keyup":cd(K,n,V)}var xe;if(vr)e:{switch(e){case"compositionstart":var Ce="onCompositionStart";break e;case"compositionend":Ce="onCompositionEnd";break e;case"compositionupdate":Ce="onCompositionUpdate";break e}Ce=void 0}else Kl?Qf(e,n)&&(Ce="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(Ce="onCompositionStart");Ce&&(Gf&&n.locale!=="ko"&&(Kl||Ce!=="onCompositionStart"?Ce==="onCompositionEnd"&&Kl&&(xe=kf()):(kn=V,fr="value"in kn?kn.value:kn.textContent,Kl=!0)),re=Wc(H,Ce),0<re.length&&(Ce=new Vf(Ce,e,null,n,V),K.push({event:Ce,listeners:re}),xe?Ce.data=xe:(xe=Zf(n),xe!==null&&(Ce.data=xe)))),(xe=Iy?e0(e,n):t0(e,n))&&(Ce=Wc(H,"onBeforeInput"),0<Ce.length&&(re=new Vf("onBeforeInput","beforeinput",null,n,V),K.push({event:re,listeners:Ce}),re.data=xe)),K0(K,e,H,n,V)}_m(K,t)})}function bi(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Wc(e,t){for(var n=t+"Capture",l=[];e!==null;){var c=e,r=c.stateNode;if(c=c.tag,c!==5&&c!==26&&c!==27||r===null||(c=qa(e,n),c!=null&&l.unshift(bi(e,c,r)),c=qa(e,t),c!=null&&l.push(bi(e,c,r))),e.tag===3)return l;e=e.return}return[]}function J0(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Mm(e,t,n,l,c){for(var r=t._reactName,m=[];n!==null&&n!==l;){var x=n,E=x.alternate,H=x.stateNode;if(x=x.tag,E!==null&&E===l)break;x!==5&&x!==26&&x!==27||H===null||(E=H,c?(H=qa(n,r),H!=null&&m.unshift(bi(n,H,E))):c||(H=qa(n,r),H!=null&&m.push(bi(n,H,E)))),n=n.return}m.length!==0&&e.push({event:t,listeners:m})}var W0=/\r\n?/g,$0=/\u0000|\uFFFD/g;function Lm(e){return(typeof e=="string"?e:""+e).replace(W0,`
9
- `).replace($0,"")}function Um(e,t){return t=Lm(t),Lm(e)===t}function De(e,t,n,l,c,r){switch(n){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||Xl(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&Xl(e,""+l);break;case"className":tc(e,"class",l);break;case"tabIndex":tc(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":tc(e,n,l);break;case"style":Uf(e,l,r);break;case"data":if(t!=="object"){tc(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=lc(""+l),e.setAttribute(n,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof r=="function"&&(n==="formAction"?(t!=="input"&&De(e,t,"name",c.name,c,null),De(e,t,"formEncType",c.formEncType,c,null),De(e,t,"formMethod",c.formMethod,c,null),De(e,t,"formTarget",c.formTarget,c,null)):(De(e,t,"encType",c.encType,c,null),De(e,t,"method",c.method,c,null),De(e,t,"target",c.target,c,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=lc(""+l),e.setAttribute(n,l);break;case"onClick":l!=null&&(e.onclick=dn);break;case"onScroll":l!=null&&we("scroll",e);break;case"onScrollEnd":l!=null&&we("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(n=l.__html,n!=null){if(c.children!=null)throw Error(s(60));e.innerHTML=n}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}n=lc(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,""+l):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":l===!0?e.setAttribute(n,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,l):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(n,l):e.removeAttribute(n);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(n):e.setAttribute(n,l);break;case"popover":we("beforetoggle",e),we("toggle",e),ec(e,"popover",l);break;case"xlinkActuate":fn(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":fn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":fn(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":fn(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":fn(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":fn(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":fn(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":fn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":fn(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":ec(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=jy.get(n)||n,ec(e,n,l))}}function Ks(e,t,n,l,c,r){switch(n){case"style":Uf(e,l,r);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(n=l.__html,n!=null){if(c.children!=null)throw Error(s(60));e.innerHTML=n}}break;case"children":typeof l=="string"?Xl(e,l):(typeof l=="number"||typeof l=="bigint")&&Xl(e,""+l);break;case"onScroll":l!=null&&we("scroll",e);break;case"onScrollEnd":l!=null&&we("scrollend",e);break;case"onClick":l!=null&&(e.onclick=dn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Tf.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(c=n.endsWith("Capture"),t=n.slice(2,c?n.length-7:void 0),r=e[ft]||null,r=r!=null?r[n]:null,typeof r=="function"&&e.removeEventListener(t,r,c),typeof l=="function")){typeof r!="function"&&r!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,l,c);break e}n in e?e[n]=l:l===!0?e.setAttribute(n,""):ec(e,n,l)}}}function ct(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":we("error",e),we("load",e);var l=!1,c=!1,r;for(r in n)if(n.hasOwnProperty(r)){var m=n[r];if(m!=null)switch(r){case"src":l=!0;break;case"srcSet":c=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:De(e,t,r,m,n,null)}}c&&De(e,t,"srcSet",n.srcSet,n,null),l&&De(e,t,"src",n.src,n,null);return;case"input":we("invalid",e);var x=r=m=c=null,E=null,H=null;for(l in n)if(n.hasOwnProperty(l)){var V=n[l];if(V!=null)switch(l){case"name":c=V;break;case"type":m=V;break;case"checked":E=V;break;case"defaultChecked":H=V;break;case"value":r=V;break;case"defaultValue":x=V;break;case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(s(137,t));break;default:De(e,t,l,V,n,null)}}_f(e,r,x,E,H,m,c,!1);return;case"select":we("invalid",e),l=m=r=null;for(c in n)if(n.hasOwnProperty(c)&&(x=n[c],x!=null))switch(c){case"value":r=x;break;case"defaultValue":m=x;break;case"multiple":l=x;default:De(e,t,c,x,n,null)}t=r,n=m,e.multiple=!!l,t!=null?Vl(e,!!l,t,!1):n!=null&&Vl(e,!!l,n,!0);return;case"textarea":we("invalid",e),r=c=l=null;for(m in n)if(n.hasOwnProperty(m)&&(x=n[m],x!=null))switch(m){case"value":l=x;break;case"defaultValue":c=x;break;case"children":r=x;break;case"dangerouslySetInnerHTML":if(x!=null)throw Error(s(91));break;default:De(e,t,m,x,n,null)}Mf(e,l,c,r);return;case"option":for(E in n)n.hasOwnProperty(E)&&(l=n[E],l!=null)&&(E==="selected"?e.selected=l&&typeof l!="function"&&typeof l!="symbol":De(e,t,E,l,n,null));return;case"dialog":we("beforetoggle",e),we("toggle",e),we("cancel",e),we("close",e);break;case"iframe":case"object":we("load",e);break;case"video":case"audio":for(l=0;l<xi.length;l++)we(xi[l],e);break;case"image":we("error",e),we("load",e);break;case"details":we("toggle",e);break;case"embed":case"source":case"link":we("error",e),we("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(H in n)if(n.hasOwnProperty(H)&&(l=n[H],l!=null))switch(H){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:De(e,t,H,l,n,null)}return;default:if(cr(t)){for(V in n)n.hasOwnProperty(V)&&(l=n[V],l!==void 0&&Ks(e,t,V,l,n,void 0));return}}for(x in n)n.hasOwnProperty(x)&&(l=n[x],l!=null&&De(e,t,x,l,n,null))}function I0(e,t,n,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var c=null,r=null,m=null,x=null,E=null,H=null,V=null;for(k in n){var K=n[k];if(n.hasOwnProperty(k)&&K!=null)switch(k){case"checked":break;case"value":break;case"defaultValue":E=K;default:l.hasOwnProperty(k)||De(e,t,k,null,l,K)}}for(var B in l){var k=l[B];if(K=n[B],l.hasOwnProperty(B)&&(k!=null||K!=null))switch(B){case"type":r=k;break;case"name":c=k;break;case"checked":H=k;break;case"defaultChecked":V=k;break;case"value":m=k;break;case"defaultValue":x=k;break;case"children":case"dangerouslySetInnerHTML":if(k!=null)throw Error(s(137,t));break;default:k!==K&&De(e,t,B,k,l,K)}}ar(e,m,x,E,H,V,r,c);return;case"select":k=m=x=B=null;for(r in n)if(E=n[r],n.hasOwnProperty(r)&&E!=null)switch(r){case"value":break;case"multiple":k=E;default:l.hasOwnProperty(r)||De(e,t,r,null,l,E)}for(c in l)if(r=l[c],E=n[c],l.hasOwnProperty(c)&&(r!=null||E!=null))switch(c){case"value":B=r;break;case"defaultValue":x=r;break;case"multiple":m=r;default:r!==E&&De(e,t,c,r,l,E)}t=x,n=m,l=k,B!=null?Vl(e,!!n,B,!1):!!l!=!!n&&(t!=null?Vl(e,!!n,t,!0):Vl(e,!!n,n?[]:"",!1));return;case"textarea":k=B=null;for(x in n)if(c=n[x],n.hasOwnProperty(x)&&c!=null&&!l.hasOwnProperty(x))switch(x){case"value":break;case"children":break;default:De(e,t,x,null,l,c)}for(m in l)if(c=l[m],r=n[m],l.hasOwnProperty(m)&&(c!=null||r!=null))switch(m){case"value":B=c;break;case"defaultValue":k=c;break;case"children":break;case"dangerouslySetInnerHTML":if(c!=null)throw Error(s(91));break;default:c!==r&&De(e,t,m,c,l,r)}Df(e,B,k);return;case"option":for(var ie in n)B=n[ie],n.hasOwnProperty(ie)&&B!=null&&!l.hasOwnProperty(ie)&&(ie==="selected"?e.selected=!1:De(e,t,ie,null,l,B));for(E in l)B=l[E],k=n[E],l.hasOwnProperty(E)&&B!==k&&(B!=null||k!=null)&&(E==="selected"?e.selected=B&&typeof B!="function"&&typeof B!="symbol":De(e,t,E,B,l,k));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 me in n)B=n[me],n.hasOwnProperty(me)&&B!=null&&!l.hasOwnProperty(me)&&De(e,t,me,null,l,B);for(H in l)if(B=l[H],k=n[H],l.hasOwnProperty(H)&&B!==k&&(B!=null||k!=null))switch(H){case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(s(137,t));break;default:De(e,t,H,B,l,k)}return;default:if(cr(t)){for(var Me in n)B=n[Me],n.hasOwnProperty(Me)&&B!==void 0&&!l.hasOwnProperty(Me)&&Ks(e,t,Me,void 0,l,B);for(V in l)B=l[V],k=n[V],!l.hasOwnProperty(V)||B===k||B===void 0&&k===void 0||Ks(e,t,V,B,l,k);return}}for(var _ in n)B=n[_],n.hasOwnProperty(_)&&B!=null&&!l.hasOwnProperty(_)&&De(e,t,_,null,l,B);for(K in l)B=l[K],k=n[K],!l.hasOwnProperty(K)||B===k||B==null&&k==null||De(e,t,K,B,l,k)}function Hm(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function ex(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),l=0;l<n.length;l++){var c=n[l],r=c.transferSize,m=c.initiatorType,x=c.duration;if(r&&x&&Hm(m)){for(m=0,x=c.responseEnd,l+=1;l<n.length;l++){var E=n[l],H=E.startTime;if(H>x)break;var V=E.transferSize,K=E.initiatorType;V&&Hm(K)&&(E=E.responseEnd,m+=V*(E<x?1:(x-H)/(E-H)))}if(--l,t+=8*(r+m)/(c.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Qs=null,Zs=null;function $c(e){return e.nodeType===9?e:e.ownerDocument}function Bm(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function km(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Ps(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Js=null;function tx(){var e=window.event;return e&&e.type==="popstate"?e===Js?!1:(Js=e,!0):(Js=null,!1)}var Ym=typeof setTimeout=="function"?setTimeout:void 0,nx=typeof clearTimeout=="function"?clearTimeout:void 0,qm=typeof Promise=="function"?Promise:void 0,lx=typeof queueMicrotask=="function"?queueMicrotask:typeof qm<"u"?function(e){return qm.resolve(null).then(e).catch(ax)}:Ym;function ax(e){setTimeout(function(){throw e})}function nl(e){return e==="head"}function Vm(e,t){var n=t,l=0;do{var c=n.nextSibling;if(e.removeChild(n),c&&c.nodeType===8)if(n=c.data,n==="/$"||n==="/&"){if(l===0){e.removeChild(c),ba(t);return}l--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")l++;else if(n==="html")Si(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Si(n);for(var r=n.firstChild;r;){var m=r.nextSibling,x=r.nodeName;r[ka]||x==="SCRIPT"||x==="STYLE"||x==="LINK"&&r.rel.toLowerCase()==="stylesheet"||n.removeChild(r),r=m}}else n==="body"&&Si(e.ownerDocument.body);n=c}while(n);ba(t)}function Xm(e,t){var n=e;e=0;do{var l=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=l}while(n)}function Ws(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Ws(n),nr(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function ix(e,t,n,l){for(;e.nodeType===1;){var c=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[ka])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(r=e.getAttribute("rel"),r==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(r!==c.rel||e.getAttribute("href")!==(c.href==null||c.href===""?null:c.href)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin)||e.getAttribute("title")!==(c.title==null?null:c.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(r=e.getAttribute("src"),(r!==(c.src==null?null:c.src)||e.getAttribute("type")!==(c.type==null?null:c.type)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin))&&r&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var r=c.name==null?null:""+c.name;if(c.type==="hidden"&&e.getAttribute("name")===r)return e}else return e;if(e=Xt(e.nextSibling),e===null)break}return null}function cx(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Xt(e.nextSibling),e===null))return null;return e}function Gm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Xt(e.nextSibling),e===null))return null;return e}function $s(e){return e.data==="$?"||e.data==="$~"}function Is(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function ox(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var l=function(){t(),n.removeEventListener("DOMContentLoaded",l)};n.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function Xt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var eu=null;function Fm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return Xt(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function Km(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function Qm(e,t,n){switch(t=$c(n),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function Si(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);nr(e)}var Gt=new Map,Zm=new Set;function Ic(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var An=L.d;L.d={f:rx,r:sx,D:ux,C:fx,L:dx,m:hx,X:px,S:mx,M:vx};function rx(){var e=An.f(),t=Gc();return e||t}function sx(e){var t=kl(e);t!==null&&t.tag===5&&t.type==="form"?fh(t):An.r(e)}var ga=typeof document>"u"?null:document;function Pm(e,t,n){var l=ga;if(l&&typeof t=="string"&&t){var c=Ut(t);c='link[rel="'+e+'"][href="'+c+'"]',typeof n=="string"&&(c+='[crossorigin="'+n+'"]'),Zm.has(c)||(Zm.add(c),e={rel:e,crossOrigin:n,href:t},l.querySelector(c)===null&&(t=l.createElement("link"),ct(t,"link",e),Ie(t),l.head.appendChild(t)))}}function ux(e){An.D(e),Pm("dns-prefetch",e,null)}function fx(e,t){An.C(e,t),Pm("preconnect",e,t)}function dx(e,t,n){An.L(e,t,n);var l=ga;if(l&&e&&t){var c='link[rel="preload"][as="'+Ut(t)+'"]';t==="image"&&n&&n.imageSrcSet?(c+='[imagesrcset="'+Ut(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(c+='[imagesizes="'+Ut(n.imageSizes)+'"]')):c+='[href="'+Ut(e)+'"]';var r=c;switch(t){case"style":r=ya(e);break;case"script":r=xa(e)}Gt.has(r)||(e=b({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Gt.set(r,e),l.querySelector(c)!==null||t==="style"&&l.querySelector(wi(r))||t==="script"&&l.querySelector(Ei(r))||(t=l.createElement("link"),ct(t,"link",e),Ie(t),l.head.appendChild(t)))}}function hx(e,t){An.m(e,t);var n=ga;if(n&&e){var l=t&&typeof t.as=="string"?t.as:"script",c='link[rel="modulepreload"][as="'+Ut(l)+'"][href="'+Ut(e)+'"]',r=c;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":r=xa(e)}if(!Gt.has(r)&&(e=b({rel:"modulepreload",href:e},t),Gt.set(r,e),n.querySelector(c)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Ei(r)))return}l=n.createElement("link"),ct(l,"link",e),Ie(l),n.head.appendChild(l)}}}function mx(e,t,n){An.S(e,t,n);var l=ga;if(l&&e){var c=Yl(l).hoistableStyles,r=ya(e);t=t||"default";var m=c.get(r);if(!m){var x={loading:0,preload:null};if(m=l.querySelector(wi(r)))x.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Gt.get(r))&&tu(e,n);var E=m=l.createElement("link");Ie(E),ct(E,"link",e),E._p=new Promise(function(H,V){E.onload=H,E.onerror=V}),E.addEventListener("load",function(){x.loading|=1}),E.addEventListener("error",function(){x.loading|=2}),x.loading|=4,eo(m,t,l)}m={type:"stylesheet",instance:m,count:1,state:x},c.set(r,m)}}}function px(e,t){An.X(e,t);var n=ga;if(n&&e){var l=Yl(n).hoistableScripts,c=xa(e),r=l.get(c);r||(r=n.querySelector(Ei(c)),r||(e=b({src:e,async:!0},t),(t=Gt.get(c))&&nu(e,t),r=n.createElement("script"),Ie(r),ct(r,"link",e),n.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},l.set(c,r))}}function vx(e,t){An.M(e,t);var n=ga;if(n&&e){var l=Yl(n).hoistableScripts,c=xa(e),r=l.get(c);r||(r=n.querySelector(Ei(c)),r||(e=b({src:e,async:!0,type:"module"},t),(t=Gt.get(c))&&nu(e,t),r=n.createElement("script"),Ie(r),ct(r,"link",e),n.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},l.set(c,r))}}function Jm(e,t,n,l){var c=(c=pe.current)?Ic(c):null;if(!c)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=ya(n.href),n=Yl(c).hoistableStyles,l=n.get(t),l||(l={type:"style",instance:null,count:0,state:null},n.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=ya(n.href);var r=Yl(c).hoistableStyles,m=r.get(e);if(m||(c=c.ownerDocument||c,m={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},r.set(e,m),(r=c.querySelector(wi(e)))&&!r._p&&(m.instance=r,m.state.loading=5),Gt.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Gt.set(e,n),r||gx(c,e,n,m.state))),t&&l===null)throw Error(s(528,""));return m}if(t&&l!==null)throw Error(s(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=xa(n),n=Yl(c).hoistableScripts,l=n.get(t),l||(l={type:"script",instance:null,count:0,state:null},n.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function ya(e){return'href="'+Ut(e)+'"'}function wi(e){return'link[rel="stylesheet"]['+e+"]"}function Wm(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function gx(e,t,n,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),ct(t,"link",n),Ie(t),e.head.appendChild(t))}function xa(e){return'[src="'+Ut(e)+'"]'}function Ei(e){return"script[async]"+e}function $m(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+Ut(n.href)+'"]');if(l)return t.instance=l,Ie(l),l;var c=b({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),Ie(l),ct(l,"style",c),eo(l,n.precedence,e),t.instance=l;case"stylesheet":c=ya(n.href);var r=e.querySelector(wi(c));if(r)return t.state.loading|=4,t.instance=r,Ie(r),r;l=Wm(n),(c=Gt.get(c))&&tu(l,c),r=(e.ownerDocument||e).createElement("link"),Ie(r);var m=r;return m._p=new Promise(function(x,E){m.onload=x,m.onerror=E}),ct(r,"link",l),t.state.loading|=4,eo(r,n.precedence,e),t.instance=r;case"script":return r=xa(n.src),(c=e.querySelector(Ei(r)))?(t.instance=c,Ie(c),c):(l=n,(c=Gt.get(r))&&(l=b({},n),nu(l,c)),e=e.ownerDocument||e,c=e.createElement("script"),Ie(c),ct(c,"link",l),e.head.appendChild(c),t.instance=c);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,eo(l,n.precedence,e));return t.instance}function eo(e,t,n){for(var l=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),c=l.length?l[l.length-1]:null,r=c,m=0;m<l.length;m++){var x=l[m];if(x.dataset.precedence===t)r=x;else if(r!==c)break}r?r.parentNode.insertBefore(e,r.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function tu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function nu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var to=null;function Im(e,t,n){if(to===null){var l=new Map,c=to=new Map;c.set(n,l)}else c=to,l=c.get(n),l||(l=new Map,c.set(n,l));if(l.has(e))return l;for(l.set(e,null),n=n.getElementsByTagName(e),c=0;c<n.length;c++){var r=n[c];if(!(r[ka]||r[nt]||e==="link"&&r.getAttribute("rel")==="stylesheet")&&r.namespaceURI!=="http://www.w3.org/2000/svg"){var m=r.getAttribute(t)||"";m=e+m;var x=l.get(m);x?x.push(r):l.set(m,[r])}}return l}function ep(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function yx(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!0;case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function tp(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function xx(e,t,n,l){if(n.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var c=ya(l.href),r=t.querySelector(wi(c));if(r){t=r._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=no.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=r,Ie(r);return}r=t.ownerDocument||t,l=Wm(l),(c=Gt.get(c))&&tu(l,c),r=r.createElement("link"),Ie(r);var m=r;m._p=new Promise(function(x,E){m.onload=x,m.onerror=E}),ct(r,"link",l),n.instance=r}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=no.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var lu=0;function bx(e,t){return e.stylesheets&&e.count===0&&ao(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var l=setTimeout(function(){if(e.stylesheets&&ao(e,e.stylesheets),e.unsuspend){var r=e.unsuspend;e.unsuspend=null,r()}},6e4+t);0<e.imgBytes&&lu===0&&(lu=62500*ex());var c=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ao(e,e.stylesheets),e.unsuspend)){var r=e.unsuspend;e.unsuspend=null,r()}},(e.imgBytes>lu?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(c)}}:null}function no(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ao(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var lo=null;function ao(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,lo=new Map,t.forEach(Sx,e),lo=null,no.call(e))}function Sx(e,t){if(!(t.state.loading&4)){var n=lo.get(e);if(n)var l=n.get(null);else{n=new Map,lo.set(e,n);for(var c=e.querySelectorAll("link[data-precedence],style[data-precedence]"),r=0;r<c.length;r++){var m=c[r];(m.nodeName==="LINK"||m.getAttribute("media")!=="not all")&&(n.set(m.dataset.precedence,m),l=m)}l&&n.set(null,l)}c=t.instance,m=c.getAttribute("data-precedence"),r=n.get(m)||l,r===l&&n.set(null,c),n.set(m,c),this.count++,l=no.bind(this),c.addEventListener("load",l),c.addEventListener("error",l),r?r.parentNode.insertBefore(c,r.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(c,e.firstChild)),t.state.loading|=4}}var Ci={$$typeof:M,Provider:null,Consumer:null,_currentValue:G,_currentValue2:G,_threadCount:0};function wx(e,t,n,l,c,r,m,x,E){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=$o(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=$o(0),this.hiddenUpdates=$o(null),this.identifierPrefix=l,this.onUncaughtError=c,this.onCaughtError=r,this.onRecoverableError=m,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=E,this.incompleteTransitions=new Map}function np(e,t,n,l,c,r,m,x,E,H,V,K){return e=new wx(e,t,n,m,E,H,V,K,x),t=1,r===!0&&(t|=24),r=Et(3,null,null,t),e.current=r,r.stateNode=e,t=Ur(),t.refCount++,e.pooledCache=t,t.refCount++,r.memoizedState={element:l,isDehydrated:n,cache:t},Yr(r),e}function lp(e){return e?(e=Jl,e):Jl}function ap(e,t,n,l,c,r){c=lp(c),l.context===null?l.context=c:l.pendingContext=c,l=Fn(t),l.payload={element:n},r=r===void 0?null:r,r!==null&&(l.callback=r),n=Kn(e,l,t),n!==null&&(gt(n,e,t),ni(n,e,t))}function ip(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function au(e,t){ip(e,t),(e=e.alternate)&&ip(e,t)}function cp(e){if(e.tag===13||e.tag===31){var t=bl(e,67108864);t!==null&&gt(t,e,67108864),au(e,67108864)}}function op(e){if(e.tag===13||e.tag===31){var t=At();t=Io(t);var n=bl(e,t);n!==null&&gt(n,e,t),au(e,t)}}var io=!0;function Ex(e,t,n,l){var c=O.T;O.T=null;var r=L.p;try{L.p=2,iu(e,t,n,l)}finally{L.p=r,O.T=c}}function Cx(e,t,n,l){var c=O.T;O.T=null;var r=L.p;try{L.p=8,iu(e,t,n,l)}finally{L.p=r,O.T=c}}function iu(e,t,n,l){if(io){var c=cu(l);if(c===null)Fs(e,t,l,co,n),sp(e,l);else if(jx(c,e,t,n,l))l.stopPropagation();else if(sp(e,l),t&4&&-1<Nx.indexOf(e)){for(;c!==null;){var r=kl(c);if(r!==null)switch(r.tag){case 3:if(r=r.stateNode,r.current.memoizedState.isDehydrated){var m=pl(r.pendingLanes);if(m!==0){var x=r;for(x.pendingLanes|=2,x.entangledLanes|=2;m;){var E=1<<31-St(m);x.entanglements[1]|=E,m&=~E}nn(r),(Re&6)===0&&(Vc=xt()+500,yi(0))}}break;case 31:case 13:x=bl(r,2),x!==null&&gt(x,r,2),Gc(),au(r,2)}if(r=cu(l),r===null&&Fs(e,t,l,co,n),r===c)break;c=r}c!==null&&l.stopPropagation()}else Fs(e,t,l,null,n)}}function cu(e){return e=rr(e),ou(e)}var co=null;function ou(e){if(co=null,e=Bl(e),e!==null){var t=d(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=h(t),e!==null)return e;e=null}else if(n===31){if(e=p(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return co=e,null}function rp(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(uy()){case vf:return 2;case gf:return 8;case Pi:case fy:return 32;case yf:return 268435456;default:return 32}default:return 32}}var ru=!1,ll=null,al=null,il=null,Ni=new Map,ji=new Map,cl=[],Nx="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function sp(e,t){switch(e){case"focusin":case"focusout":ll=null;break;case"dragenter":case"dragleave":al=null;break;case"mouseover":case"mouseout":il=null;break;case"pointerover":case"pointerout":Ni.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ji.delete(t.pointerId)}}function Ti(e,t,n,l,c,r){return e===null||e.nativeEvent!==r?(e={blockedOn:t,domEventName:n,eventSystemFlags:l,nativeEvent:r,targetContainers:[c]},t!==null&&(t=kl(t),t!==null&&cp(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,c!==null&&t.indexOf(c)===-1&&t.push(c),e)}function jx(e,t,n,l,c){switch(t){case"focusin":return ll=Ti(ll,e,t,n,l,c),!0;case"dragenter":return al=Ti(al,e,t,n,l,c),!0;case"mouseover":return il=Ti(il,e,t,n,l,c),!0;case"pointerover":var r=c.pointerId;return Ni.set(r,Ti(Ni.get(r)||null,e,t,n,l,c)),!0;case"gotpointercapture":return r=c.pointerId,ji.set(r,Ti(ji.get(r)||null,e,t,n,l,c)),!0}return!1}function up(e){var t=Bl(e.target);if(t!==null){var n=d(t);if(n!==null){if(t=n.tag,t===13){if(t=h(n),t!==null){e.blockedOn=t,Cf(e.priority,function(){op(n)});return}}else if(t===31){if(t=p(n),t!==null){e.blockedOn=t,Cf(e.priority,function(){op(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function oo(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=cu(e.nativeEvent);if(n===null){n=e.nativeEvent;var l=new n.constructor(n.type,n);or=l,n.target.dispatchEvent(l),or=null}else return t=kl(n),t!==null&&cp(t),e.blockedOn=n,!1;t.shift()}return!0}function fp(e,t,n){oo(e)&&n.delete(t)}function Tx(){ru=!1,ll!==null&&oo(ll)&&(ll=null),al!==null&&oo(al)&&(al=null),il!==null&&oo(il)&&(il=null),Ni.forEach(fp),ji.forEach(fp)}function ro(e,t){e.blockedOn===t&&(e.blockedOn=null,ru||(ru=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,Tx)))}var so=null;function dp(e){so!==e&&(so=e,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){so===e&&(so=null);for(var t=0;t<e.length;t+=3){var n=e[t],l=e[t+1],c=e[t+2];if(typeof l!="function"){if(ou(l||n)===null)continue;break}var r=kl(n);r!==null&&(e.splice(t,3),t-=3,cs(r,{pending:!0,data:c,method:n.method,action:l},l,c))}}))}function ba(e){function t(E){return ro(E,e)}ll!==null&&ro(ll,e),al!==null&&ro(al,e),il!==null&&ro(il,e),Ni.forEach(t),ji.forEach(t);for(var n=0;n<cl.length;n++){var l=cl[n];l.blockedOn===e&&(l.blockedOn=null)}for(;0<cl.length&&(n=cl[0],n.blockedOn===null);)up(n),n.blockedOn===null&&cl.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(l=0;l<n.length;l+=3){var c=n[l],r=n[l+1],m=c[ft]||null;if(typeof r=="function")m||dp(n);else if(m){var x=null;if(r&&r.hasAttribute("formAction")){if(c=r,m=r[ft]||null)x=m.formAction;else if(ou(c)!==null)continue}else x=m.action;typeof x=="function"?n[l+1]=x:(n.splice(l,3),l-=3),dp(n)}}}function hp(){function e(r){r.canIntercept&&r.info==="react-transition"&&r.intercept({handler:function(){return new Promise(function(m){return c=m})},focusReset:"manual",scroll:"manual"})}function t(){c!==null&&(c(),c=null),l||setTimeout(n,20)}function n(){if(!l&&!navigation.transition){var r=navigation.currentEntry;r&&r.url!=null&&navigation.navigate(r.url,{state:r.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,c=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),c!==null&&(c(),c=null)}}}function su(e){this._internalRoot=e}uo.prototype.render=su.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var n=t.current,l=At();ap(n,l,e,t,null,null)},uo.prototype.unmount=su.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ap(e.current,2,null,e,null,null),Gc(),t[Hl]=null}};function uo(e){this._internalRoot=e}uo.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ef();e={blockedOn:null,target:e,priority:t};for(var n=0;n<cl.length&&t!==0&&t<cl[n].priority;n++);cl.splice(n,0,e),n===0&&up(e)}};var mp=i.version;if(mp!=="19.2.3")throw Error(s(527,mp,"19.2.3"));L.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=y(t),e=e!==null?S(e):null,e=e===null?null:e.stateNode,e};var Ax={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:O,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var fo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!fo.isDisabled&&fo.supportsFiber)try{Ua=fo.inject(Ax),bt=fo}catch{}}return Ri.createRoot=function(e,t){if(!f(e))throw Error(s(299));var n=!1,l="",c=Sh,r=wh,m=Eh;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(c=t.onUncaughtError),t.onCaughtError!==void 0&&(r=t.onCaughtError),t.onRecoverableError!==void 0&&(m=t.onRecoverableError)),t=np(e,1,!1,null,null,n,l,null,c,r,m,hp),e[Hl]=t.current,Gs(e),new su(t)},Ri.hydrateRoot=function(e,t,n){if(!f(e))throw Error(s(299));var l=!1,c="",r=Sh,m=wh,x=Eh,E=null;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(c=n.identifierPrefix),n.onUncaughtError!==void 0&&(r=n.onUncaughtError),n.onCaughtError!==void 0&&(m=n.onCaughtError),n.onRecoverableError!==void 0&&(x=n.onRecoverableError),n.formState!==void 0&&(E=n.formState)),t=np(e,1,!0,t,n??null,l,c,E,r,m,x,hp),t.context=lp(null),n=t.current,l=At(),l=Io(l),c=Fn(l),c.callback=null,Kn(n,c,l),n=l,t.current.lanes=n,Ba(t,n),nn(t),e[Hl]=t.current,Gs(e),new uo(t)},Ri.version="19.2.3",Ri}var Cp;function Bx(){if(Cp)return du.exports;Cp=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),du.exports=Hx(),du.exports}var kx=Bx();var Np="popstate";function Yx(a={}){function i(s,f){let{pathname:d,search:h,hash:p}=s.location;return _u("",{pathname:d,search:h,hash:p},f.state&&f.state.usr||null,f.state&&f.state.key||"default")}function o(s,f){return typeof f=="string"?f:ki(f)}return Vx(i,o,null,a)}function ke(a,i){if(a===!1||a===null||typeof a>"u")throw new Error(i)}function Dt(a,i){if(!a){typeof console<"u"&&console.warn(i);try{throw new Error(i)}catch{}}}function qx(){return Math.random().toString(36).substring(2,10)}function jp(a,i){return{usr:a.state,key:a.key,idx:i}}function _u(a,i,o=null,s){return{pathname:typeof a=="string"?a:a.pathname,search:"",hash:"",...typeof i=="string"?Ra(i):i,state:o,key:i&&i.key||s||qx()}}function ki({pathname:a="/",search:i="",hash:o=""}){return i&&i!=="?"&&(a+=i.charAt(0)==="?"?i:"?"+i),o&&o!=="#"&&(a+=o.charAt(0)==="#"?o:"#"+o),a}function Ra(a){let i={};if(a){let o=a.indexOf("#");o>=0&&(i.hash=a.substring(o),a=a.substring(0,o));let s=a.indexOf("?");s>=0&&(i.search=a.substring(s),a=a.substring(0,s)),a&&(i.pathname=a)}return i}function Vx(a,i,o,s={}){let{window:f=document.defaultView,v5Compat:d=!1}=s,h=f.history,p="POP",v=null,y=S();y==null&&(y=0,h.replaceState({...h.state,idx:y},""));function S(){return(h.state||{idx:null}).idx}function b(){p="POP";let T=S(),z=T==null?null:T-y;y=T,v&&v({action:p,location:w.location,delta:z})}function C(T,z){p="PUSH";let R=_u(w.location,T,z);y=S()+1;let M=jp(R,y),q=w.createHref(R);try{h.pushState(M,"",q)}catch(Q){if(Q instanceof DOMException&&Q.name==="DataCloneError")throw Q;f.location.assign(q)}d&&v&&v({action:p,location:w.location,delta:1})}function j(T,z){p="REPLACE";let R=_u(w.location,T,z);y=S();let M=jp(R,y),q=w.createHref(R);h.replaceState(M,"",q),d&&v&&v({action:p,location:w.location,delta:0})}function D(T){return Xx(T)}let w={get action(){return p},get location(){return a(f,h)},listen(T){if(v)throw new Error("A history only accepts one active listener");return f.addEventListener(Np,b),v=T,()=>{f.removeEventListener(Np,b),v=null}},createHref(T){return i(f,T)},createURL:D,encodeLocation(T){let z=D(T);return{pathname:z.pathname,search:z.search,hash:z.hash}},push:C,replace:j,go(T){return h.go(T)}};return w}function Xx(a,i=!1){let o="http://localhost";typeof window<"u"&&(o=window.location.origin!=="null"?window.location.origin:window.location.href),ke(o,"No window.location.(origin|href) available to create URL");let s=typeof a=="string"?a:ki(a);return s=s.replace(/ $/,"%20"),!i&&s.startsWith("//")&&(s=o+s),new URL(s,o)}function vv(a,i,o="/"){return Gx(a,i,o,!1)}function Gx(a,i,o,s){let f=typeof i=="string"?Ra(i):i,d=_n(f.pathname||"/",o);if(d==null)return null;let h=gv(a);Fx(h);let p=null;for(let v=0;p==null&&v<h.length;++v){let y=nb(d);p=eb(h[v],y,s)}return p}function gv(a,i=[],o=[],s="",f=!1){let d=(h,p,v=f,y)=>{let S={relativePath:y===void 0?h.path||"":y,caseSensitive:h.caseSensitive===!0,childrenIndex:p,route:h};if(S.relativePath.startsWith("/")){if(!S.relativePath.startsWith(s)&&v)return;ke(S.relativePath.startsWith(s),`Absolute route path "${S.relativePath}" nested under path "${s}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),S.relativePath=S.relativePath.slice(s.length)}let b=On([s,S.relativePath]),C=o.concat(S);h.children&&h.children.length>0&&(ke(h.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${b}".`),gv(h.children,i,C,b,v)),!(h.path==null&&!h.index)&&i.push({path:b,score:$x(b,h.index),routesMeta:C})};return a.forEach((h,p)=>{if(h.path===""||!h.path?.includes("?"))d(h,p);else for(let v of yv(h.path))d(h,p,!0,v)}),i}function yv(a){let i=a.split("/");if(i.length===0)return[];let[o,...s]=i,f=o.endsWith("?"),d=o.replace(/\?$/,"");if(s.length===0)return f?[d,""]:[d];let h=yv(s.join("/")),p=[];return p.push(...h.map(v=>v===""?d:[d,v].join("/"))),f&&p.push(...h),p.map(v=>a.startsWith("/")&&v===""?"/":v)}function Fx(a){a.sort((i,o)=>i.score!==o.score?o.score-i.score:Ix(i.routesMeta.map(s=>s.childrenIndex),o.routesMeta.map(s=>s.childrenIndex)))}var Kx=/^:[\w-]+$/,Qx=3,Zx=2,Px=1,Jx=10,Wx=-2,Tp=a=>a==="*";function $x(a,i){let o=a.split("/"),s=o.length;return o.some(Tp)&&(s+=Wx),i&&(s+=Zx),o.filter(f=>!Tp(f)).reduce((f,d)=>f+(Kx.test(d)?Qx:d===""?Px:Jx),s)}function Ix(a,i){return a.length===i.length&&a.slice(0,-1).every((s,f)=>s===i[f])?a[a.length-1]-i[i.length-1]:0}function eb(a,i,o=!1){let{routesMeta:s}=a,f={},d="/",h=[];for(let p=0;p<s.length;++p){let v=s[p],y=p===s.length-1,S=d==="/"?i:i.slice(d.length)||"/",b=Ao({path:v.relativePath,caseSensitive:v.caseSensitive,end:y},S),C=v.route;if(!b&&y&&o&&!s[s.length-1].route.index&&(b=Ao({path:v.relativePath,caseSensitive:v.caseSensitive,end:!1},S)),!b)return null;Object.assign(f,b.params),h.push({params:f,pathname:On([d,b.pathname]),pathnameBase:cb(On([d,b.pathnameBase])),route:C}),b.pathnameBase!=="/"&&(d=On([d,b.pathnameBase]))}return h}function Ao(a,i){typeof a=="string"&&(a={path:a,caseSensitive:!1,end:!0});let[o,s]=tb(a.path,a.caseSensitive,a.end),f=i.match(o);if(!f)return null;let d=f[0],h=d.replace(/(.)\/+$/,"$1"),p=f.slice(1);return{params:s.reduce((y,{paramName:S,isOptional:b},C)=>{if(S==="*"){let D=p[C]||"";h=d.slice(0,d.length-D.length).replace(/(.)\/+$/,"$1")}const j=p[C];return b&&!j?y[S]=void 0:y[S]=(j||"").replace(/%2F/g,"/"),y},{}),pathname:d,pathnameBase:h,pattern:a}}function tb(a,i=!1,o=!0){Dt(a==="*"||!a.endsWith("*")||a.endsWith("/*"),`Route path "${a}" will be treated as if it were "${a.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${a.replace(/\*$/,"/*")}".`);let s=[],f="^"+a.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(h,p,v)=>(s.push({paramName:p,isOptional:v!=null}),v?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return a.endsWith("*")?(s.push({paramName:"*"}),f+=a==="*"||a==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):o?f+="\\/*$":a!==""&&a!=="/"&&(f+="(?:(?=\\/|$))"),[new RegExp(f,i?void 0:"i"),s]}function nb(a){try{return a.split("/").map(i=>decodeURIComponent(i).replace(/\//g,"%2F")).join("/")}catch(i){return Dt(!1,`The URL path "${a}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${i}).`),a}}function _n(a,i){if(i==="/")return a;if(!a.toLowerCase().startsWith(i.toLowerCase()))return null;let o=i.endsWith("/")?i.length-1:i.length,s=a.charAt(o);return s&&s!=="/"?null:a.slice(o)||"/"}var xv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,lb=a=>xv.test(a);function ab(a,i="/"){let{pathname:o,search:s="",hash:f=""}=typeof a=="string"?Ra(a):a,d;if(o)if(lb(o))d=o;else{if(o.includes("//")){let h=o;o=o.replace(/\/\/+/g,"/"),Dt(!1,`Pathnames cannot have embedded double slashes - normalizing ${h} -> ${o}`)}o.startsWith("/")?d=Ap(o.substring(1),"/"):d=Ap(o,i)}else d=i;return{pathname:d,search:ob(s),hash:rb(f)}}function Ap(a,i){let o=i.replace(/\/+$/,"").split("/");return a.split("/").forEach(f=>{f===".."?o.length>1&&o.pop():f!=="."&&o.push(f)}),o.length>1?o.join("/"):"/"}function vu(a,i,o,s){return`Cannot include a '${a}' character in a manually specified \`to.${i}\` field [${JSON.stringify(s)}]. Please separate it out to the \`to.${o}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function ib(a){return a.filter((i,o)=>o===0||i.route.path&&i.route.path.length>0)}function Ju(a){let i=ib(a);return i.map((o,s)=>s===i.length-1?o.pathname:o.pathnameBase)}function Wu(a,i,o,s=!1){let f;typeof a=="string"?f=Ra(a):(f={...a},ke(!f.pathname||!f.pathname.includes("?"),vu("?","pathname","search",f)),ke(!f.pathname||!f.pathname.includes("#"),vu("#","pathname","hash",f)),ke(!f.search||!f.search.includes("#"),vu("#","search","hash",f)));let d=a===""||f.pathname==="",h=d?"/":f.pathname,p;if(h==null)p=o;else{let b=i.length-1;if(!s&&h.startsWith("..")){let C=h.split("/");for(;C[0]==="..";)C.shift(),b-=1;f.pathname=C.join("/")}p=b>=0?i[b]:"/"}let v=ab(f,p),y=h&&h!=="/"&&h.endsWith("/"),S=(d||h===".")&&o.endsWith("/");return!v.pathname.endsWith("/")&&(y||S)&&(v.pathname+="/"),v}var On=a=>a.join("/").replace(/\/\/+/g,"/"),cb=a=>a.replace(/\/+$/,"").replace(/^\/*/,"/"),ob=a=>!a||a==="?"?"":a.startsWith("?")?a:"?"+a,rb=a=>!a||a==="#"?"":a.startsWith("#")?a:"#"+a,sb=class{constructor(a,i,o,s=!1){this.status=a,this.statusText=i||"",this.internal=s,o instanceof Error?(this.data=o.toString(),this.error=o):this.data=o}};function ub(a){return a!=null&&typeof a.status=="number"&&typeof a.statusText=="string"&&typeof a.internal=="boolean"&&"data"in a}function fb(a){return a.map(i=>i.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var bv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Sv(a,i){let o=a;if(typeof o!="string"||!xv.test(o))return{absoluteURL:void 0,isExternal:!1,to:o};let s=o,f=!1;if(bv)try{let d=new URL(window.location.href),h=o.startsWith("//")?new URL(d.protocol+o):new URL(o),p=_n(h.pathname,i);h.origin===d.origin&&p!=null?o=p+h.search+h.hash:f=!0}catch{Dt(!1,`<Link to="${o}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:s,isExternal:f,to:o}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var wv=["POST","PUT","PATCH","DELETE"];new Set(wv);var db=["GET",...wv];new Set(db);var za=g.createContext(null);za.displayName="DataRouter";var Bo=g.createContext(null);Bo.displayName="DataRouterState";var hb=g.createContext(!1),Ev=g.createContext({isTransitioning:!1});Ev.displayName="ViewTransition";var mb=g.createContext(new Map);mb.displayName="Fetchers";var pb=g.createContext(null);pb.displayName="Await";var Mt=g.createContext(null);Mt.displayName="Navigation";var Xi=g.createContext(null);Xi.displayName="Location";var rn=g.createContext({outlet:null,matches:[],isDataRoute:!1});rn.displayName="Route";var $u=g.createContext(null);$u.displayName="RouteError";var Cv="REACT_ROUTER_ERROR",vb="REDIRECT",gb="ROUTE_ERROR_RESPONSE";function yb(a){if(a.startsWith(`${Cv}:${vb}:{`))try{let i=JSON.parse(a.slice(28));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.location=="string"&&typeof i.reloadDocument=="boolean"&&typeof i.replace=="boolean")return i}catch{}}function xb(a){if(a.startsWith(`${Cv}:${gb}:{`))try{let i=JSON.parse(a.slice(40));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string")return new sb(i.status,i.statusText,i.data)}catch{}}function bb(a,{relative:i}={}){ke(Oa(),"useHref() may be used only in the context of a <Router> component.");let{basename:o,navigator:s}=g.useContext(Mt),{hash:f,pathname:d,search:h}=Gi(a,{relative:i}),p=d;return o!=="/"&&(p=d==="/"?o:On([o,d])),s.createHref({pathname:p,search:h,hash:f})}function Oa(){return g.useContext(Xi)!=null}function sn(){return ke(Oa(),"useLocation() may be used only in the context of a <Router> component."),g.useContext(Xi).location}var Nv="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function jv(a){g.useContext(Mt).static||g.useLayoutEffect(a)}function Un(){let{isDataRoute:a}=g.useContext(rn);return a?Db():Sb()}function Sb(){ke(Oa(),"useNavigate() may be used only in the context of a <Router> component.");let a=g.useContext(za),{basename:i,navigator:o}=g.useContext(Mt),{matches:s}=g.useContext(rn),{pathname:f}=sn(),d=JSON.stringify(Ju(s)),h=g.useRef(!1);return jv(()=>{h.current=!0}),g.useCallback((v,y={})=>{if(Dt(h.current,Nv),!h.current)return;if(typeof v=="number"){o.go(v);return}let S=Wu(v,JSON.parse(d),f,y.relative==="path");a==null&&i!=="/"&&(S.pathname=S.pathname==="/"?i:On([i,S.pathname])),(y.replace?o.replace:o.push)(S,y.state,y)},[i,o,d,f,a])}g.createContext(null);function Gi(a,{relative:i}={}){let{matches:o}=g.useContext(rn),{pathname:s}=sn(),f=JSON.stringify(Ju(o));return g.useMemo(()=>Wu(a,JSON.parse(f),s,i==="path"),[a,f,s,i])}function wb(a,i){return Tv(a,i)}function Tv(a,i,o,s,f){ke(Oa(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:d}=g.useContext(Mt),{matches:h}=g.useContext(rn),p=h[h.length-1],v=p?p.params:{},y=p?p.pathname:"/",S=p?p.pathnameBase:"/",b=p&&p.route;{let R=b&&b.path||"";Rv(y,!b||R.endsWith("*")||R.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${y}" (under <Route path="${R}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
8
+ `+l.stack}}var Jr=Object.prototype.hasOwnProperty,Wr=a.unstable_scheduleCallback,Ir=a.unstable_cancelCallback,hy=a.unstable_shouldYield,my=a.unstable_requestPaint,bt=a.unstable_now,py=a.unstable_getCurrentPriorityLevel,bf=a.unstable_ImmediatePriority,Sf=a.unstable_UserBlockingPriority,Ji=a.unstable_NormalPriority,vy=a.unstable_LowPriority,wf=a.unstable_IdlePriority,gy=a.log,yy=a.unstable_setDisableYieldValue,Ha=null,St=null;function Yn(e){if(typeof gy=="function"&&yy(e),St&&typeof St.setStrictMode=="function")try{St.setStrictMode(Ha,e)}catch{}}var wt=Math.clz32?Math.clz32:Sy,xy=Math.log,by=Math.LN2;function Sy(e){return e>>>=0,e===0?32:31-(xy(e)/by|0)|0}var Wi=256,Ii=262144,$i=4194304;function gl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function ec(e,t,n){var l=e.pendingLanes;if(l===0)return 0;var c=0,s=e.suspendedLanes,m=e.pingedLanes;e=e.warmLanes;var x=l&134217727;return x!==0?(l=x&~s,l!==0?c=gl(l):(m&=x,m!==0?c=gl(m):n||(n=x&~e,n!==0&&(c=gl(n))))):(x=l&~s,x!==0?c=gl(x):m!==0?c=gl(m):n||(n=l&~e,n!==0&&(c=gl(n)))),c===0?0:t!==0&&t!==c&&(t&s)===0&&(s=c&-c,n=t&-t,s>=n||s===32&&(n&4194048)!==0)?t:c}function Ba(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function wy(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ef(){var e=$i;return $i<<=1,($i&62914560)===0&&($i=4194304),e}function $r(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ka(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ey(e,t,n,l,c,s){var m=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var x=e.entanglements,E=e.expirationTimes,H=e.hiddenUpdates;for(n=m&~n;0<n;){var X=31-wt(n),K=1<<X;x[X]=0,E[X]=-1;var B=H[X];if(B!==null)for(H[X]=null,X=0;X<B.length;X++){var k=B[X];k!==null&&(k.lane&=-536870913)}n&=~K}l!==0&&Cf(e,l,0),s!==0&&c===0&&e.tag!==0&&(e.suspendedLanes|=s&~(m&~t))}function Cf(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-wt(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|n&261930}function Nf(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var l=31-wt(n),c=1<<l;c&t|e[l]&t&&(e[l]|=t),n&=~c}}function jf(e,t){var n=t&-t;return n=(n&42)!==0?1:eo(n),(n&(e.suspendedLanes|t))!==0?0:n}function eo(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function to(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Af(){var e=L.p;return e!==0?e:(e=window.event,e===void 0?32:dp(e.type))}function Tf(e,t){var n=L.p;try{return L.p=e,t()}finally{L.p=n}}var qn=Math.random().toString(36).slice(2),at="__reactFiber$"+qn,dt="__reactProps$"+qn,kl="__reactContainer$"+qn,no="__reactEvents$"+qn,Cy="__reactListeners$"+qn,Ny="__reactHandles$"+qn,Rf="__reactResources$"+qn,Ya="__reactMarker$"+qn;function lo(e){delete e[at],delete e[dt],delete e[no],delete e[Cy],delete e[Ny]}function Yl(e){var t=e[at];if(t)return t;for(var n=e.parentNode;n;){if(t=n[kl]||n[at]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Jm(e);e!==null;){if(n=e[at])return n;e=Jm(e)}return t}e=n,n=e.parentNode}return null}function ql(e){if(e=e[at]||e[kl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function qa(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function Vl(e){var t=e[Rf];return t||(t=e[Rf]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function nt(e){e[Ya]=!0}var zf=new Set,Of={};function yl(e,t){Xl(e,t),Xl(e+"Capture",t)}function Xl(e,t){for(Of[e]=t,e=0;e<t.length;e++)zf.add(t[e])}var jy=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]*$"),_f={},Df={};function Ay(e){return Jr.call(Df,e)?!0:Jr.call(_f,e)?!1:jy.test(e)?Df[e]=!0:(_f[e]=!0,!1)}function tc(e,t,n){if(Ay(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function nc(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function hn(e,t,n,l){if(l===null)e.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+l)}}function Ut(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Mf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ty(e,t,n){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var c=l.get,s=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return c.call(this)},set:function(m){n=""+m,s.call(this,m)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return n},setValue:function(m){n=""+m},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ao(e){if(!e._valueTracker){var t=Mf(e)?"checked":"value";e._valueTracker=Ty(e,t,""+e[t])}}function Lf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),l="";return e&&(l=Mf(e)?e.checked?"true":"false":e.value),e=l,e!==n?(t.setValue(e),!0):!1}function lc(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Ry=/[\n"\\]/g;function Ht(e){return e.replace(Ry,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function io(e,t,n,l,c,s,m,x){e.name="",m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?e.type=m:e.removeAttribute("type"),t!=null?m==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Ut(t)):e.value!==""+Ut(t)&&(e.value=""+Ut(t)):m!=="submit"&&m!=="reset"||e.removeAttribute("value"),t!=null?co(e,m,Ut(t)):n!=null?co(e,m,Ut(n)):l!=null&&e.removeAttribute("value"),c==null&&s!=null&&(e.defaultChecked=!!s),c!=null&&(e.checked=c&&typeof c!="function"&&typeof c!="symbol"),x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?e.name=""+Ut(x):e.removeAttribute("name")}function Uf(e,t,n,l,c,s,m,x){if(s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(e.type=s),t!=null||n!=null){if(!(s!=="submit"&&s!=="reset"||t!=null)){ao(e);return}n=n!=null?""+Ut(n):"",t=t!=null?""+Ut(t):n,x||t===e.value||(e.value=t),e.defaultValue=t}l=l??c,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=x?e.checked:!!l,e.defaultChecked=!!l,m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(e.name=m),ao(e)}function co(e,t,n){t==="number"&&lc(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Gl(e,t,n,l){if(e=e.options,t){t={};for(var c=0;c<n.length;c++)t["$"+n[c]]=!0;for(n=0;n<e.length;n++)c=t.hasOwnProperty("$"+e[n].value),e[n].selected!==c&&(e[n].selected=c),c&&l&&(e[n].defaultSelected=!0)}else{for(n=""+Ut(n),t=null,c=0;c<e.length;c++){if(e[c].value===n){e[c].selected=!0,l&&(e[c].defaultSelected=!0);return}t!==null||e[c].disabled||(t=e[c])}t!==null&&(t.selected=!0)}}function Hf(e,t,n){if(t!=null&&(t=""+Ut(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Ut(n):""}function Bf(e,t,n,l){if(t==null){if(l!=null){if(n!=null)throw Error(o(92));if(fe(l)){if(1<l.length)throw Error(o(93));l=l[0]}n=l}n==null&&(n=""),t=n}n=Ut(t),e.defaultValue=n,l=e.textContent,l===n&&l!==""&&l!==null&&(e.value=l),ao(e)}function Fl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var zy=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 kf(e,t,n){var l=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,n):typeof n!="number"||n===0||zy.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Yf(e,t,n){if(t!=null&&typeof t!="object")throw Error(o(62));if(e=e.style,n!=null){for(var l in n)!n.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var c in t)l=t[c],t.hasOwnProperty(c)&&n[c]!==l&&kf(e,c,l)}else for(var s in t)t.hasOwnProperty(s)&&kf(e,s,t[s])}function ro(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Oy=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"]]),_y=/^[\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 ac(e){return _y.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function mn(){}var oo=null;function so(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Kl=null,Ql=null;function qf(e){var t=ql(e);if(t&&(e=t.stateNode)){var n=e[dt]||null;e:switch(e=t.stateNode,t.type){case"input":if(io(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Ht(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var l=n[t];if(l!==e&&l.form===e.form){var c=l[dt]||null;if(!c)throw Error(o(90));io(l,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name)}}for(t=0;t<n.length;t++)l=n[t],l.form===e.form&&Lf(l)}break e;case"textarea":Hf(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Gl(e,!!n.multiple,t,!1)}}}var uo=!1;function Vf(e,t,n){if(uo)return e(t,n);uo=!0;try{var l=e(t);return l}finally{if(uo=!1,(Kl!==null||Ql!==null)&&(Fc(),Kl&&(t=Kl,e=Ql,Ql=Kl=null,qf(t),e)))for(t=0;t<e.length;t++)qf(e[t])}}function Va(e,t){var n=e.stateNode;if(n===null)return null;var l=n[dt]||null;if(l===null)return null;n=l[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(o(231,t,typeof n));return n}var pn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),fo=!1;if(pn)try{var Xa={};Object.defineProperty(Xa,"passive",{get:function(){fo=!0}}),window.addEventListener("test",Xa,Xa),window.removeEventListener("test",Xa,Xa)}catch{fo=!1}var Vn=null,ho=null,ic=null;function Xf(){if(ic)return ic;var e,t=ho,n=t.length,l,c="value"in Vn?Vn.value:Vn.textContent,s=c.length;for(e=0;e<n&&t[e]===c[e];e++);var m=n-e;for(l=1;l<=m&&t[n-l]===c[s-l];l++);return ic=c.slice(e,1<l?1-l:void 0)}function cc(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function rc(){return!0}function Gf(){return!1}function ht(e){function t(n,l,c,s,m){this._reactName=n,this._targetInst=c,this.type=l,this.nativeEvent=s,this.target=m,this.currentTarget=null;for(var x in e)e.hasOwnProperty(x)&&(n=e[x],this[x]=n?n(s):s[x]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?rc:Gf,this.isPropagationStopped=Gf,this}return b(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=rc)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=rc)},persist:function(){},isPersistent:rc}),t}var xl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},oc=ht(xl),Ga=b({},xl,{view:0,detail:0}),Dy=ht(Ga),mo,po,Fa,sc=b({},Ga,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:go,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Fa&&(Fa&&e.type==="mousemove"?(mo=e.screenX-Fa.screenX,po=e.screenY-Fa.screenY):po=mo=0,Fa=e),mo)},movementY:function(e){return"movementY"in e?e.movementY:po}}),Ff=ht(sc),My=b({},sc,{dataTransfer:0}),Ly=ht(My),Uy=b({},Ga,{relatedTarget:0}),vo=ht(Uy),Hy=b({},xl,{animationName:0,elapsedTime:0,pseudoElement:0}),By=ht(Hy),ky=b({},xl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Yy=ht(ky),qy=b({},xl,{data:0}),Kf=ht(qy),Vy={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Xy={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"},Gy={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Fy(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Gy[e])?!!t[e]:!1}function go(){return Fy}var Ky=b({},Ga,{key:function(e){if(e.key){var t=Vy[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=cc(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Xy[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:go,charCode:function(e){return e.type==="keypress"?cc(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?cc(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Qy=ht(Ky),Zy=b({},sc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Qf=ht(Zy),Py=b({},Ga,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:go}),Jy=ht(Py),Wy=b({},xl,{propertyName:0,elapsedTime:0,pseudoElement:0}),Iy=ht(Wy),$y=b({},sc,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),e0=ht($y),t0=b({},xl,{newState:0,oldState:0}),n0=ht(t0),l0=[9,13,27,32],yo=pn&&"CompositionEvent"in window,Ka=null;pn&&"documentMode"in document&&(Ka=document.documentMode);var a0=pn&&"TextEvent"in window&&!Ka,Zf=pn&&(!yo||Ka&&8<Ka&&11>=Ka),Pf=" ",Jf=!1;function Wf(e,t){switch(e){case"keyup":return l0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function If(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Zl=!1;function i0(e,t){switch(e){case"compositionend":return If(t);case"keypress":return t.which!==32?null:(Jf=!0,Pf);case"textInput":return e=t.data,e===Pf&&Jf?null:e;default:return null}}function c0(e,t){if(Zl)return e==="compositionend"||!yo&&Wf(e,t)?(e=Xf(),ic=ho=Vn=null,Zl=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Zf&&t.locale!=="ko"?null:t.data;default:return null}}var r0={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 $f(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!r0[e.type]:t==="textarea"}function ed(e,t,n,l){Kl?Ql?Ql.push(l):Ql=[l]:Kl=l,t=Ic(t,"onChange"),0<t.length&&(n=new oc("onChange","change",null,n,l),e.push({event:n,listeners:t}))}var Qa=null,Za=null;function o0(e){Um(e,0)}function uc(e){var t=qa(e);if(Lf(t))return e}function td(e,t){if(e==="change")return t}var nd=!1;if(pn){var xo;if(pn){var bo="oninput"in document;if(!bo){var ld=document.createElement("div");ld.setAttribute("oninput","return;"),bo=typeof ld.oninput=="function"}xo=bo}else xo=!1;nd=xo&&(!document.documentMode||9<document.documentMode)}function ad(){Qa&&(Qa.detachEvent("onpropertychange",id),Za=Qa=null)}function id(e){if(e.propertyName==="value"&&uc(Za)){var t=[];ed(t,Za,e,so(e)),Vf(o0,t)}}function s0(e,t,n){e==="focusin"?(ad(),Qa=t,Za=n,Qa.attachEvent("onpropertychange",id)):e==="focusout"&&ad()}function u0(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return uc(Za)}function f0(e,t){if(e==="click")return uc(t)}function d0(e,t){if(e==="input"||e==="change")return uc(t)}function h0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Et=typeof Object.is=="function"?Object.is:h0;function Pa(e,t){if(Et(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),l=Object.keys(t);if(n.length!==l.length)return!1;for(l=0;l<n.length;l++){var c=n[l];if(!Jr.call(t,c)||!Et(e[c],t[c]))return!1}return!0}function cd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function rd(e,t){var n=cd(e);e=0;for(var l;n;){if(n.nodeType===3){if(l=e+n.textContent.length,e<=t&&l>=t)return{node:n,offset:t-e};e=l}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=cd(n)}}function od(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?od(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function sd(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=lc(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=lc(e.document)}return t}function So(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var m0=pn&&"documentMode"in document&&11>=document.documentMode,Pl=null,wo=null,Ja=null,Eo=!1;function ud(e,t,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Eo||Pl==null||Pl!==lc(l)||(l=Pl,"selectionStart"in l&&So(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Ja&&Pa(Ja,l)||(Ja=l,l=Ic(wo,"onSelect"),0<l.length&&(t=new oc("onSelect","select",null,t,n),e.push({event:t,listeners:l}),t.target=Pl)))}function bl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Jl={animationend:bl("Animation","AnimationEnd"),animationiteration:bl("Animation","AnimationIteration"),animationstart:bl("Animation","AnimationStart"),transitionrun:bl("Transition","TransitionRun"),transitionstart:bl("Transition","TransitionStart"),transitioncancel:bl("Transition","TransitionCancel"),transitionend:bl("Transition","TransitionEnd")},Co={},fd={};pn&&(fd=document.createElement("div").style,"AnimationEvent"in window||(delete Jl.animationend.animation,delete Jl.animationiteration.animation,delete Jl.animationstart.animation),"TransitionEvent"in window||delete Jl.transitionend.transition);function Sl(e){if(Co[e])return Co[e];if(!Jl[e])return e;var t=Jl[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in fd)return Co[e]=t[n];return e}var dd=Sl("animationend"),hd=Sl("animationiteration"),md=Sl("animationstart"),p0=Sl("transitionrun"),v0=Sl("transitionstart"),g0=Sl("transitioncancel"),pd=Sl("transitionend"),vd=new Map,No="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(" ");No.push("scrollEnd");function Kt(e,t){vd.set(e,t),yl(t,[e])}var fc=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Bt=[],Wl=0,jo=0;function dc(){for(var e=Wl,t=jo=Wl=0;t<e;){var n=Bt[t];Bt[t++]=null;var l=Bt[t];Bt[t++]=null;var c=Bt[t];Bt[t++]=null;var s=Bt[t];if(Bt[t++]=null,l!==null&&c!==null){var m=l.pending;m===null?c.next=c:(c.next=m.next,m.next=c),l.pending=c}s!==0&&gd(n,c,s)}}function hc(e,t,n,l){Bt[Wl++]=e,Bt[Wl++]=t,Bt[Wl++]=n,Bt[Wl++]=l,jo|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function Ao(e,t,n,l){return hc(e,t,n,l),mc(e)}function wl(e,t){return hc(e,null,null,t),mc(e)}function gd(e,t,n){e.lanes|=n;var l=e.alternate;l!==null&&(l.lanes|=n);for(var c=!1,s=e.return;s!==null;)s.childLanes|=n,l=s.alternate,l!==null&&(l.childLanes|=n),s.tag===22&&(e=s.stateNode,e===null||e._visibility&1||(c=!0)),e=s,s=s.return;return e.tag===3?(s=e.stateNode,c&&t!==null&&(c=31-wt(n),e=s.hiddenUpdates,l=e[c],l===null?e[c]=[t]:l.push(t),t.lane=n|536870912),s):null}function mc(e){if(50<yi)throw yi=0,Us=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Il={};function y0(e,t,n,l){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ct(e,t,n,l){return new y0(e,t,n,l)}function To(e){return e=e.prototype,!(!e||!e.isReactComponent)}function vn(e,t){var n=e.alternate;return n===null?(n=Ct(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function yd(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function pc(e,t,n,l,c,s){var m=0;if(l=e,typeof e=="function")To(e)&&(m=1);else if(typeof e=="string")m=Ex(e,n,I.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case le:return e=Ct(31,n,t,c),e.elementType=le,e.lanes=s,e;case w:return El(n.children,c,s,t);case A:m=8,c|=24;break;case z:return e=Ct(12,n,t,c|2),e.elementType=z,e.lanes=s,e;case Q:return e=Ct(13,n,t,c),e.elementType=Q,e.lanes=s,e;case P:return e=Ct(19,n,t,c),e.elementType=P,e.lanes=s,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case M:m=10;break e;case R:m=9;break e;case q:m=11;break e;case Y:m=14;break e;case ne:m=16,l=null;break e}m=29,n=Error(o(130,e===null?"null":typeof e,"")),l=null}return t=Ct(m,n,t,c),t.elementType=e,t.type=l,t.lanes=s,t}function El(e,t,n,l){return e=Ct(7,e,l,t),e.lanes=n,e}function Ro(e,t,n){return e=Ct(6,e,null,t),e.lanes=n,e}function xd(e){var t=Ct(18,null,null,0);return t.stateNode=e,t}function zo(e,t,n){return t=Ct(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var bd=new WeakMap;function kt(e,t){if(typeof e=="object"&&e!==null){var n=bd.get(e);return n!==void 0?n:(t={value:e,source:t,stack:xf(t)},bd.set(e,t),t)}return{value:e,source:t,stack:xf(t)}}var $l=[],ea=0,vc=null,Wa=0,Yt=[],qt=0,Xn=null,en=1,tn="";function gn(e,t){$l[ea++]=Wa,$l[ea++]=vc,vc=e,Wa=t}function Sd(e,t,n){Yt[qt++]=en,Yt[qt++]=tn,Yt[qt++]=Xn,Xn=e;var l=en;e=tn;var c=32-wt(l)-1;l&=~(1<<c),n+=1;var s=32-wt(t)+c;if(30<s){var m=c-c%5;s=(l&(1<<m)-1).toString(32),l>>=m,c-=m,en=1<<32-wt(t)+c|n<<c|l,tn=s+e}else en=1<<s|n<<c|l,tn=e}function Oo(e){e.return!==null&&(gn(e,1),Sd(e,1,0))}function _o(e){for(;e===vc;)vc=$l[--ea],$l[ea]=null,Wa=$l[--ea],$l[ea]=null;for(;e===Xn;)Xn=Yt[--qt],Yt[qt]=null,tn=Yt[--qt],Yt[qt]=null,en=Yt[--qt],Yt[qt]=null}function wd(e,t){Yt[qt++]=en,Yt[qt++]=tn,Yt[qt++]=Xn,en=t.id,tn=t.overflow,Xn=e}var it=null,Ue=null,je=!1,Gn=null,Vt=!1,Do=Error(o(519));function Fn(e){var t=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ia(kt(t,e)),Do}function Ed(e){var t=e.stateNode,n=e.type,l=e.memoizedProps;switch(t[at]=e,t[dt]=l,n){case"dialog":we("cancel",t),we("close",t);break;case"iframe":case"object":case"embed":we("load",t);break;case"video":case"audio":for(n=0;n<bi.length;n++)we(bi[n],t);break;case"source":we("error",t);break;case"img":case"image":case"link":we("error",t),we("load",t);break;case"details":we("toggle",t);break;case"input":we("invalid",t),Uf(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":we("invalid",t);break;case"textarea":we("invalid",t),Bf(t,l.value,l.defaultValue,l.children)}n=l.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||l.suppressHydrationWarning===!0||Ym(t.textContent,n)?(l.popover!=null&&(we("beforetoggle",t),we("toggle",t)),l.onScroll!=null&&we("scroll",t),l.onScrollEnd!=null&&we("scrollend",t),l.onClick!=null&&(t.onclick=mn),t=!0):t=!1,t||Fn(e,!0)}function Cd(e){for(it=e.return;it;)switch(it.tag){case 5:case 31:case 13:Vt=!1;return;case 27:case 3:Vt=!0;return;default:it=it.return}}function ta(e){if(e!==it)return!1;if(!je)return Cd(e),je=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Ws(e.type,e.memoizedProps)),n=!n),n&&Ue&&Fn(e),Cd(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));Ue=Pm(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));Ue=Pm(e)}else t===27?(t=Ue,il(e.type)?(e=nu,nu=null,Ue=e):Ue=t):Ue=it?Gt(e.stateNode.nextSibling):null;return!0}function Cl(){Ue=it=null,je=!1}function Mo(){var e=Gn;return e!==null&&(gt===null?gt=e:gt.push.apply(gt,e),Gn=null),e}function Ia(e){Gn===null?Gn=[e]:Gn.push(e)}var Lo=N(null),Nl=null,yn=null;function Kn(e,t,n){Z(Lo,t._currentValue),t._currentValue=n}function xn(e){e._currentValue=Lo.current,G(Lo)}function Uo(e,t,n){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===n)break;e=e.return}}function Ho(e,t,n,l){var c=e.child;for(c!==null&&(c.return=e);c!==null;){var s=c.dependencies;if(s!==null){var m=c.child;s=s.firstContext;e:for(;s!==null;){var x=s;s=c;for(var E=0;E<t.length;E++)if(x.context===t[E]){s.lanes|=n,x=s.alternate,x!==null&&(x.lanes|=n),Uo(s.return,n,e),l||(m=null);break e}s=x.next}}else if(c.tag===18){if(m=c.return,m===null)throw Error(o(341));m.lanes|=n,s=m.alternate,s!==null&&(s.lanes|=n),Uo(m,n,e),m=null}else m=c.child;if(m!==null)m.return=c;else for(m=c;m!==null;){if(m===e){m=null;break}if(c=m.sibling,c!==null){c.return=m.return,m=c;break}m=m.return}c=m}}function na(e,t,n,l){e=null;for(var c=t,s=!1;c!==null;){if(!s){if((c.flags&524288)!==0)s=!0;else if((c.flags&262144)!==0)break}if(c.tag===10){var m=c.alternate;if(m===null)throw Error(o(387));if(m=m.memoizedProps,m!==null){var x=c.type;Et(c.pendingProps.value,m.value)||(e!==null?e.push(x):e=[x])}}else if(c===J.current){if(m=c.alternate,m===null)throw Error(o(387));m.memoizedState.memoizedState!==c.memoizedState.memoizedState&&(e!==null?e.push(Ni):e=[Ni])}c=c.return}e!==null&&Ho(t,e,n,l),t.flags|=262144}function gc(e){for(e=e.firstContext;e!==null;){if(!Et(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function jl(e){Nl=e,yn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ct(e){return Nd(Nl,e)}function yc(e,t){return Nl===null&&jl(e),Nd(e,t)}function Nd(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},yn===null){if(e===null)throw Error(o(308));yn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else yn=yn.next=t;return n}var x0=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},b0=a.unstable_scheduleCallback,S0=a.unstable_NormalPriority,Qe={$$typeof:M,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Bo(){return{controller:new x0,data:new Map,refCount:0}}function $a(e){e.refCount--,e.refCount===0&&b0(S0,function(){e.controller.abort()})}var ei=null,ko=0,la=0,aa=null;function w0(e,t){if(ei===null){var n=ei=[];ko=0,la=Vs(),aa={status:"pending",value:void 0,then:function(l){n.push(l)}}}return ko++,t.then(jd,jd),t}function jd(){if(--ko===0&&ei!==null){aa!==null&&(aa.status="fulfilled");var e=ei;ei=null,la=0,aa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function E0(e,t){var n=[],l={status:"pending",value:null,reason:null,then:function(c){n.push(c)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var c=0;c<n.length;c++)(0,n[c])(t)},function(c){for(l.status="rejected",l.reason=c,c=0;c<n.length;c++)(0,n[c])(void 0)}),l}var Ad=_.S;_.S=function(e,t){um=bt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&w0(e,t),Ad!==null&&Ad(e,t)};var Al=N(null);function Yo(){var e=Al.current;return e!==null?e:Le.pooledCache}function xc(e,t){t===null?Z(Al,Al.current):Z(Al,t.pool)}function Td(){var e=Yo();return e===null?null:{parent:Qe._currentValue,pool:e}}var ia=Error(o(460)),qo=Error(o(474)),bc=Error(o(542)),Sc={then:function(){}};function Rd(e){return e=e.status,e==="fulfilled"||e==="rejected"}function zd(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(mn,mn),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,_d(e),e;default:if(typeof t.status=="string")t.then(mn,mn);else{if(e=Le,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var c=t;c.status="fulfilled",c.value=l}},function(l){if(t.status==="pending"){var c=t;c.status="rejected",c.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,_d(e),e}throw Rl=t,ia}}function Tl(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Rl=n,ia):n}}var Rl=null;function Od(){if(Rl===null)throw Error(o(459));var e=Rl;return Rl=null,e}function _d(e){if(e===ia||e===bc)throw Error(o(483))}var ca=null,ti=0;function wc(e){var t=ti;return ti+=1,ca===null&&(ca=[]),zd(ca,e,t)}function ni(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Ec(e,t){throw t.$$typeof===C?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Dd(e){function t(O,T){if(e){var U=O.deletions;U===null?(O.deletions=[T],O.flags|=16):U.push(T)}}function n(O,T){if(!e)return null;for(;T!==null;)t(O,T),T=T.sibling;return null}function l(O){for(var T=new Map;O!==null;)O.key!==null?T.set(O.key,O):T.set(O.index,O),O=O.sibling;return T}function c(O,T){return O=vn(O,T),O.index=0,O.sibling=null,O}function s(O,T,U){return O.index=U,e?(U=O.alternate,U!==null?(U=U.index,U<T?(O.flags|=67108866,T):U):(O.flags|=67108866,T)):(O.flags|=1048576,T)}function m(O){return e&&O.alternate===null&&(O.flags|=67108866),O}function x(O,T,U,F){return T===null||T.tag!==6?(T=Ro(U,O.mode,F),T.return=O,T):(T=c(T,U),T.return=O,T)}function E(O,T,U,F){var de=U.type;return de===w?X(O,T,U.props.children,F,U.key):T!==null&&(T.elementType===de||typeof de=="object"&&de!==null&&de.$$typeof===ne&&Tl(de)===T.type)?(T=c(T,U.props),ni(T,U),T.return=O,T):(T=pc(U.type,U.key,U.props,null,O.mode,F),ni(T,U),T.return=O,T)}function H(O,T,U,F){return T===null||T.tag!==4||T.stateNode.containerInfo!==U.containerInfo||T.stateNode.implementation!==U.implementation?(T=zo(U,O.mode,F),T.return=O,T):(T=c(T,U.children||[]),T.return=O,T)}function X(O,T,U,F,de){return T===null||T.tag!==7?(T=El(U,O.mode,F,de),T.return=O,T):(T=c(T,U),T.return=O,T)}function K(O,T,U){if(typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint")return T=Ro(""+T,O.mode,U),T.return=O,T;if(typeof T=="object"&&T!==null){switch(T.$$typeof){case j:return U=pc(T.type,T.key,T.props,null,O.mode,U),ni(U,T),U.return=O,U;case D:return T=zo(T,O.mode,U),T.return=O,T;case ne:return T=Tl(T),K(O,T,U)}if(fe(T)||$(T))return T=El(T,O.mode,U,null),T.return=O,T;if(typeof T.then=="function")return K(O,wc(T),U);if(T.$$typeof===M)return K(O,yc(O,T),U);Ec(O,T)}return null}function B(O,T,U,F){var de=T!==null?T.key:null;if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return de!==null?null:x(O,T,""+U,F);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case j:return U.key===de?E(O,T,U,F):null;case D:return U.key===de?H(O,T,U,F):null;case ne:return U=Tl(U),B(O,T,U,F)}if(fe(U)||$(U))return de!==null?null:X(O,T,U,F,null);if(typeof U.then=="function")return B(O,T,wc(U),F);if(U.$$typeof===M)return B(O,T,yc(O,U),F);Ec(O,U)}return null}function k(O,T,U,F,de){if(typeof F=="string"&&F!==""||typeof F=="number"||typeof F=="bigint")return O=O.get(U)||null,x(T,O,""+F,de);if(typeof F=="object"&&F!==null){switch(F.$$typeof){case j:return O=O.get(F.key===null?U:F.key)||null,E(T,O,F,de);case D:return O=O.get(F.key===null?U:F.key)||null,H(T,O,F,de);case ne:return F=Tl(F),k(O,T,U,F,de)}if(fe(F)||$(F))return O=O.get(U)||null,X(T,O,F,de,null);if(typeof F.then=="function")return k(O,T,U,wc(F),de);if(F.$$typeof===M)return k(O,T,U,yc(T,F),de);Ec(T,F)}return null}function ce(O,T,U,F){for(var de=null,Ae=null,oe=T,be=T=0,Ce=null;oe!==null&&be<U.length;be++){oe.index>be?(Ce=oe,oe=null):Ce=oe.sibling;var Te=B(O,oe,U[be],F);if(Te===null){oe===null&&(oe=Ce);break}e&&oe&&Te.alternate===null&&t(O,oe),T=s(Te,T,be),Ae===null?de=Te:Ae.sibling=Te,Ae=Te,oe=Ce}if(be===U.length)return n(O,oe),je&&gn(O,be),de;if(oe===null){for(;be<U.length;be++)oe=K(O,U[be],F),oe!==null&&(T=s(oe,T,be),Ae===null?de=oe:Ae.sibling=oe,Ae=oe);return je&&gn(O,be),de}for(oe=l(oe);be<U.length;be++)Ce=k(oe,O,be,U[be],F),Ce!==null&&(e&&Ce.alternate!==null&&oe.delete(Ce.key===null?be:Ce.key),T=s(Ce,T,be),Ae===null?de=Ce:Ae.sibling=Ce,Ae=Ce);return e&&oe.forEach(function(ul){return t(O,ul)}),je&&gn(O,be),de}function me(O,T,U,F){if(U==null)throw Error(o(151));for(var de=null,Ae=null,oe=T,be=T=0,Ce=null,Te=U.next();oe!==null&&!Te.done;be++,Te=U.next()){oe.index>be?(Ce=oe,oe=null):Ce=oe.sibling;var ul=B(O,oe,Te.value,F);if(ul===null){oe===null&&(oe=Ce);break}e&&oe&&ul.alternate===null&&t(O,oe),T=s(ul,T,be),Ae===null?de=ul:Ae.sibling=ul,Ae=ul,oe=Ce}if(Te.done)return n(O,oe),je&&gn(O,be),de;if(oe===null){for(;!Te.done;be++,Te=U.next())Te=K(O,Te.value,F),Te!==null&&(T=s(Te,T,be),Ae===null?de=Te:Ae.sibling=Te,Ae=Te);return je&&gn(O,be),de}for(oe=l(oe);!Te.done;be++,Te=U.next())Te=k(oe,O,be,Te.value,F),Te!==null&&(e&&Te.alternate!==null&&oe.delete(Te.key===null?be:Te.key),T=s(Te,T,be),Ae===null?de=Te:Ae.sibling=Te,Ae=Te);return e&&oe.forEach(function(Mx){return t(O,Mx)}),je&&gn(O,be),de}function Me(O,T,U,F){if(typeof U=="object"&&U!==null&&U.type===w&&U.key===null&&(U=U.props.children),typeof U=="object"&&U!==null){switch(U.$$typeof){case j:e:{for(var de=U.key;T!==null;){if(T.key===de){if(de=U.type,de===w){if(T.tag===7){n(O,T.sibling),F=c(T,U.props.children),F.return=O,O=F;break e}}else if(T.elementType===de||typeof de=="object"&&de!==null&&de.$$typeof===ne&&Tl(de)===T.type){n(O,T.sibling),F=c(T,U.props),ni(F,U),F.return=O,O=F;break e}n(O,T);break}else t(O,T);T=T.sibling}U.type===w?(F=El(U.props.children,O.mode,F,U.key),F.return=O,O=F):(F=pc(U.type,U.key,U.props,null,O.mode,F),ni(F,U),F.return=O,O=F)}return m(O);case D:e:{for(de=U.key;T!==null;){if(T.key===de)if(T.tag===4&&T.stateNode.containerInfo===U.containerInfo&&T.stateNode.implementation===U.implementation){n(O,T.sibling),F=c(T,U.children||[]),F.return=O,O=F;break e}else{n(O,T);break}else t(O,T);T=T.sibling}F=zo(U,O.mode,F),F.return=O,O=F}return m(O);case ne:return U=Tl(U),Me(O,T,U,F)}if(fe(U))return ce(O,T,U,F);if($(U)){if(de=$(U),typeof de!="function")throw Error(o(150));return U=de.call(U),me(O,T,U,F)}if(typeof U.then=="function")return Me(O,T,wc(U),F);if(U.$$typeof===M)return Me(O,T,yc(O,U),F);Ec(O,U)}return typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint"?(U=""+U,T!==null&&T.tag===6?(n(O,T.sibling),F=c(T,U),F.return=O,O=F):(n(O,T),F=Ro(U,O.mode,F),F.return=O,O=F),m(O)):n(O,T)}return function(O,T,U,F){try{ti=0;var de=Me(O,T,U,F);return ca=null,de}catch(oe){if(oe===ia||oe===bc)throw oe;var Ae=Ct(29,oe,null,O.mode);return Ae.lanes=F,Ae.return=O,Ae}}}var zl=Dd(!0),Md=Dd(!1),Qn=!1;function Vo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Xo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Zn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Pn(e,t,n){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Re&2)!==0){var c=l.pending;return c===null?t.next=t:(t.next=c.next,c.next=t),l.pending=t,t=mc(e),gd(e,null,n),t}return hc(e,l,t,n),mc(e)}function li(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,Nf(e,n)}}function Go(e,t){var n=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var c=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var m={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};s===null?c=s=m:s=s.next=m,n=n.next}while(n!==null);s===null?c=s=t:s=s.next=t}else c=s=t;n={baseState:l.baseState,firstBaseUpdate:c,lastBaseUpdate:s,shared:l.shared,callbacks:l.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Fo=!1;function ai(){if(Fo){var e=aa;if(e!==null)throw e}}function ii(e,t,n,l){Fo=!1;var c=e.updateQueue;Qn=!1;var s=c.firstBaseUpdate,m=c.lastBaseUpdate,x=c.shared.pending;if(x!==null){c.shared.pending=null;var E=x,H=E.next;E.next=null,m===null?s=H:m.next=H,m=E;var X=e.alternate;X!==null&&(X=X.updateQueue,x=X.lastBaseUpdate,x!==m&&(x===null?X.firstBaseUpdate=H:x.next=H,X.lastBaseUpdate=E))}if(s!==null){var K=c.baseState;m=0,X=H=E=null,x=s;do{var B=x.lane&-536870913,k=B!==x.lane;if(k?(Ee&B)===B:(l&B)===B){B!==0&&B===la&&(Fo=!0),X!==null&&(X=X.next={lane:0,tag:x.tag,payload:x.payload,callback:null,next:null});e:{var ce=e,me=x;B=t;var Me=n;switch(me.tag){case 1:if(ce=me.payload,typeof ce=="function"){K=ce.call(Me,K,B);break e}K=ce;break e;case 3:ce.flags=ce.flags&-65537|128;case 0:if(ce=me.payload,B=typeof ce=="function"?ce.call(Me,K,B):ce,B==null)break e;K=b({},K,B);break e;case 2:Qn=!0}}B=x.callback,B!==null&&(e.flags|=64,k&&(e.flags|=8192),k=c.callbacks,k===null?c.callbacks=[B]:k.push(B))}else k={lane:B,tag:x.tag,payload:x.payload,callback:x.callback,next:null},X===null?(H=X=k,E=K):X=X.next=k,m|=B;if(x=x.next,x===null){if(x=c.shared.pending,x===null)break;k=x,x=k.next,k.next=null,c.lastBaseUpdate=k,c.shared.pending=null}}while(!0);X===null&&(E=K),c.baseState=E,c.firstBaseUpdate=H,c.lastBaseUpdate=X,s===null&&(c.shared.lanes=0),el|=m,e.lanes=m,e.memoizedState=K}}function Ld(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function Ud(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Ld(n[e],t)}var ra=N(null),Cc=N(0);function Hd(e,t){e=Tn,Z(Cc,e),Z(ra,t),Tn=e|t.baseLanes}function Ko(){Z(Cc,Tn),Z(ra,ra.current)}function Qo(){Tn=Cc.current,G(ra),G(Cc)}var Nt=N(null),Xt=null;function Jn(e){var t=e.alternate;Z(Ge,Ge.current&1),Z(Nt,e),Xt===null&&(t===null||ra.current!==null||t.memoizedState!==null)&&(Xt=e)}function Zo(e){Z(Ge,Ge.current),Z(Nt,e),Xt===null&&(Xt=e)}function Bd(e){e.tag===22?(Z(Ge,Ge.current),Z(Nt,e),Xt===null&&(Xt=e)):Wn()}function Wn(){Z(Ge,Ge.current),Z(Nt,Nt.current)}function jt(e){G(Nt),Xt===e&&(Xt=null),G(Ge)}var Ge=N(0);function Nc(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||eu(n)||tu(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var bn=0,xe=null,_e=null,Ze=null,jc=!1,oa=!1,Ol=!1,Ac=0,ci=0,sa=null,C0=0;function qe(){throw Error(o(321))}function Po(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Et(e[n],t[n]))return!1;return!0}function Jo(e,t,n,l,c,s){return bn=s,xe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,_.H=e===null||e.memoizedState===null?Sh:fs,Ol=!1,s=n(l,c),Ol=!1,oa&&(s=Yd(t,n,l,c)),kd(e),s}function kd(e){_.H=si;var t=_e!==null&&_e.next!==null;if(bn=0,Ze=_e=xe=null,jc=!1,ci=0,sa=null,t)throw Error(o(300));e===null||Pe||(e=e.dependencies,e!==null&&gc(e)&&(Pe=!0))}function Yd(e,t,n,l){xe=e;var c=0;do{if(oa&&(sa=null),ci=0,oa=!1,25<=c)throw Error(o(301));if(c+=1,Ze=_e=null,e.updateQueue!=null){var s=e.updateQueue;s.lastEffect=null,s.events=null,s.stores=null,s.memoCache!=null&&(s.memoCache.index=0)}_.H=wh,s=t(n,l)}while(oa);return s}function N0(){var e=_.H,t=e.useState()[0];return t=typeof t.then=="function"?ri(t):t,e=e.useState()[0],(_e!==null?_e.memoizedState:null)!==e&&(xe.flags|=1024),t}function Wo(){var e=Ac!==0;return Ac=0,e}function Io(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function $o(e){if(jc){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}jc=!1}bn=0,Ze=_e=xe=null,oa=!1,ci=Ac=0,sa=null}function ft(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ze===null?xe.memoizedState=Ze=e:Ze=Ze.next=e,Ze}function Fe(){if(_e===null){var e=xe.alternate;e=e!==null?e.memoizedState:null}else e=_e.next;var t=Ze===null?xe.memoizedState:Ze.next;if(t!==null)Ze=t,_e=e;else{if(e===null)throw xe.alternate===null?Error(o(467)):Error(o(310));_e=e,e={memoizedState:_e.memoizedState,baseState:_e.baseState,baseQueue:_e.baseQueue,queue:_e.queue,next:null},Ze===null?xe.memoizedState=Ze=e:Ze=Ze.next=e}return Ze}function Tc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ri(e){var t=ci;return ci+=1,sa===null&&(sa=[]),e=zd(sa,e,t),t=xe,(Ze===null?t.memoizedState:Ze.next)===null&&(t=t.alternate,_.H=t===null||t.memoizedState===null?Sh:fs),e}function Rc(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return ri(e);if(e.$$typeof===M)return ct(e)}throw Error(o(438,String(e)))}function es(e){var t=null,n=xe.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var l=xe.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(c){return c.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=Tc(),xe.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),l=0;l<e;l++)n[l]=se;return t.index++,n}function Sn(e,t){return typeof t=="function"?t(e):t}function zc(e){var t=Fe();return ts(t,_e,e)}function ts(e,t,n){var l=e.queue;if(l===null)throw Error(o(311));l.lastRenderedReducer=n;var c=e.baseQueue,s=l.pending;if(s!==null){if(c!==null){var m=c.next;c.next=s.next,s.next=m}t.baseQueue=c=s,l.pending=null}if(s=e.baseState,c===null)e.memoizedState=s;else{t=c.next;var x=m=null,E=null,H=t,X=!1;do{var K=H.lane&-536870913;if(K!==H.lane?(Ee&K)===K:(bn&K)===K){var B=H.revertLane;if(B===0)E!==null&&(E=E.next={lane:0,revertLane:0,gesture:null,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null}),K===la&&(X=!0);else if((bn&B)===B){H=H.next,B===la&&(X=!0);continue}else K={lane:0,revertLane:H.revertLane,gesture:null,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null},E===null?(x=E=K,m=s):E=E.next=K,xe.lanes|=B,el|=B;K=H.action,Ol&&n(s,K),s=H.hasEagerState?H.eagerState:n(s,K)}else B={lane:K,revertLane:H.revertLane,gesture:H.gesture,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null},E===null?(x=E=B,m=s):E=E.next=B,xe.lanes|=K,el|=K;H=H.next}while(H!==null&&H!==t);if(E===null?m=s:E.next=x,!Et(s,e.memoizedState)&&(Pe=!0,X&&(n=aa,n!==null)))throw n;e.memoizedState=s,e.baseState=m,e.baseQueue=E,l.lastRenderedState=s}return c===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function ns(e){var t=Fe(),n=t.queue;if(n===null)throw Error(o(311));n.lastRenderedReducer=e;var l=n.dispatch,c=n.pending,s=t.memoizedState;if(c!==null){n.pending=null;var m=c=c.next;do s=e(s,m.action),m=m.next;while(m!==c);Et(s,t.memoizedState)||(Pe=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,l]}function qd(e,t,n){var l=xe,c=Fe(),s=je;if(s){if(n===void 0)throw Error(o(407));n=n()}else n=t();var m=!Et((_e||c).memoizedState,n);if(m&&(c.memoizedState=n,Pe=!0),c=c.queue,is(Gd.bind(null,l,c,e),[e]),c.getSnapshot!==t||m||Ze!==null&&Ze.memoizedState.tag&1){if(l.flags|=2048,ua(9,{destroy:void 0},Xd.bind(null,l,c,n,t),null),Le===null)throw Error(o(349));s||(bn&127)!==0||Vd(l,t,n)}return n}function Vd(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=xe.updateQueue,t===null?(t=Tc(),xe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Xd(e,t,n,l){t.value=n,t.getSnapshot=l,Fd(t)&&Kd(e)}function Gd(e,t,n){return n(function(){Fd(t)&&Kd(e)})}function Fd(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Et(e,n)}catch{return!0}}function Kd(e){var t=wl(e,2);t!==null&&yt(t,e,2)}function ls(e){var t=ft();if(typeof e=="function"){var n=e;if(e=n(),Ol){Yn(!0);try{n()}finally{Yn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sn,lastRenderedState:e},t}function Qd(e,t,n,l){return e.baseState=n,ts(e,_e,typeof l=="function"?l:Sn)}function j0(e,t,n,l,c){if(Dc(e))throw Error(o(485));if(e=t.action,e!==null){var s={payload:c,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(m){s.listeners.push(m)}};_.T!==null?n(!0):s.isTransition=!1,l(s),n=t.pending,n===null?(s.next=t.pending=s,Zd(t,s)):(s.next=n.next,t.pending=n.next=s)}}function Zd(e,t){var n=t.action,l=t.payload,c=e.state;if(t.isTransition){var s=_.T,m={};_.T=m;try{var x=n(c,l),E=_.S;E!==null&&E(m,x),Pd(e,t,x)}catch(H){as(e,t,H)}finally{s!==null&&m.types!==null&&(s.types=m.types),_.T=s}}else try{s=n(c,l),Pd(e,t,s)}catch(H){as(e,t,H)}}function Pd(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){Jd(e,t,l)},function(l){return as(e,t,l)}):Jd(e,t,n)}function Jd(e,t,n){t.status="fulfilled",t.value=n,Wd(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Zd(e,n)))}function as(e,t,n){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=n,Wd(t),t=t.next;while(t!==l)}e.action=null}function Wd(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Id(e,t){return t}function $d(e,t){if(je){var n=Le.formState;if(n!==null){e:{var l=xe;if(je){if(Ue){t:{for(var c=Ue,s=Vt;c.nodeType!==8;){if(!s){c=null;break t}if(c=Gt(c.nextSibling),c===null){c=null;break t}}s=c.data,c=s==="F!"||s==="F"?c:null}if(c){Ue=Gt(c.nextSibling),l=c.data==="F!";break e}}Fn(l)}l=!1}l&&(t=n[0])}}return n=ft(),n.memoizedState=n.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Id,lastRenderedState:t},n.queue=l,n=yh.bind(null,xe,l),l.dispatch=n,l=ls(!1),s=us.bind(null,xe,!1,l.queue),l=ft(),c={state:t,dispatch:null,action:e,pending:null},l.queue=c,n=j0.bind(null,xe,c,s,n),c.dispatch=n,l.memoizedState=e,[t,n,!1]}function eh(e){var t=Fe();return th(t,_e,e)}function th(e,t,n){if(t=ts(e,t,Id)[0],e=zc(Sn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=ri(t)}catch(m){throw m===ia?bc:m}else l=t;t=Fe();var c=t.queue,s=c.dispatch;return n!==t.memoizedState&&(xe.flags|=2048,ua(9,{destroy:void 0},A0.bind(null,c,n),null)),[l,s,e]}function A0(e,t){e.action=t}function nh(e){var t=Fe(),n=_e;if(n!==null)return th(t,n,e);Fe(),t=t.memoizedState,n=Fe();var l=n.queue.dispatch;return n.memoizedState=e,[t,l,!1]}function ua(e,t,n,l){return e={tag:e,create:n,deps:l,inst:t,next:null},t=xe.updateQueue,t===null&&(t=Tc(),xe.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(l=n.next,n.next=e,e.next=l,t.lastEffect=e),e}function lh(){return Fe().memoizedState}function Oc(e,t,n,l){var c=ft();xe.flags|=e,c.memoizedState=ua(1|t,{destroy:void 0},n,l===void 0?null:l)}function _c(e,t,n,l){var c=Fe();l=l===void 0?null:l;var s=c.memoizedState.inst;_e!==null&&l!==null&&Po(l,_e.memoizedState.deps)?c.memoizedState=ua(t,s,n,l):(xe.flags|=e,c.memoizedState=ua(1|t,s,n,l))}function ah(e,t){Oc(8390656,8,e,t)}function is(e,t){_c(2048,8,e,t)}function T0(e){xe.flags|=4;var t=xe.updateQueue;if(t===null)t=Tc(),xe.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function ih(e){var t=Fe().memoizedState;return T0({ref:t,nextImpl:e}),function(){if((Re&2)!==0)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function ch(e,t){return _c(4,2,e,t)}function rh(e,t){return _c(4,4,e,t)}function oh(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function sh(e,t,n){n=n!=null?n.concat([e]):null,_c(4,4,oh.bind(null,t,e),n)}function cs(){}function uh(e,t){var n=Fe();t=t===void 0?null:t;var l=n.memoizedState;return t!==null&&Po(t,l[1])?l[0]:(n.memoizedState=[e,t],e)}function fh(e,t){var n=Fe();t=t===void 0?null:t;var l=n.memoizedState;if(t!==null&&Po(t,l[1]))return l[0];if(l=e(),Ol){Yn(!0);try{e()}finally{Yn(!1)}}return n.memoizedState=[l,t],l}function rs(e,t,n){return n===void 0||(bn&1073741824)!==0&&(Ee&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=dm(),xe.lanes|=e,el|=e,n)}function dh(e,t,n,l){return Et(n,t)?n:ra.current!==null?(e=rs(e,n,l),Et(e,t)||(Pe=!0),e):(bn&42)===0||(bn&1073741824)!==0&&(Ee&261930)===0?(Pe=!0,e.memoizedState=n):(e=dm(),xe.lanes|=e,el|=e,t)}function hh(e,t,n,l,c){var s=L.p;L.p=s!==0&&8>s?s:8;var m=_.T,x={};_.T=x,us(e,!1,t,n);try{var E=c(),H=_.S;if(H!==null&&H(x,E),E!==null&&typeof E=="object"&&typeof E.then=="function"){var X=E0(E,l);oi(e,t,X,Rt(e))}else oi(e,t,l,Rt(e))}catch(K){oi(e,t,{then:function(){},status:"rejected",reason:K},Rt())}finally{L.p=s,m!==null&&x.types!==null&&(m.types=x.types),_.T=m}}function R0(){}function os(e,t,n,l){if(e.tag!==5)throw Error(o(476));var c=mh(e).queue;hh(e,c,t,V,n===null?R0:function(){return ph(e),n(l)})}function mh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:V,baseState:V,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sn,lastRenderedState:V},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sn,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function ph(e){var t=mh(e);t.next===null&&(t=e.alternate.memoizedState),oi(e,t.next.queue,{},Rt())}function ss(){return ct(Ni)}function vh(){return Fe().memoizedState}function gh(){return Fe().memoizedState}function z0(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Rt();e=Zn(n);var l=Pn(t,e,n);l!==null&&(yt(l,t,n),li(l,t,n)),t={cache:Bo()},e.payload=t;return}t=t.return}}function O0(e,t,n){var l=Rt();n={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Dc(e)?xh(t,n):(n=Ao(e,t,n,l),n!==null&&(yt(n,e,l),bh(n,t,l)))}function yh(e,t,n){var l=Rt();oi(e,t,n,l)}function oi(e,t,n,l){var c={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Dc(e))xh(t,c);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var m=t.lastRenderedState,x=s(m,n);if(c.hasEagerState=!0,c.eagerState=x,Et(x,m))return hc(e,t,c,0),Le===null&&dc(),!1}catch{}if(n=Ao(e,t,c,l),n!==null)return yt(n,e,l),bh(n,t,l),!0}return!1}function us(e,t,n,l){if(l={lane:2,revertLane:Vs(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Dc(e)){if(t)throw Error(o(479))}else t=Ao(e,n,l,2),t!==null&&yt(t,e,2)}function Dc(e){var t=e.alternate;return e===xe||t!==null&&t===xe}function xh(e,t){oa=jc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function bh(e,t,n){if((n&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,Nf(e,n)}}var si={readContext:ct,use:Rc,useCallback:qe,useContext:qe,useEffect:qe,useImperativeHandle:qe,useLayoutEffect:qe,useInsertionEffect:qe,useMemo:qe,useReducer:qe,useRef:qe,useState:qe,useDebugValue:qe,useDeferredValue:qe,useTransition:qe,useSyncExternalStore:qe,useId:qe,useHostTransitionStatus:qe,useFormState:qe,useActionState:qe,useOptimistic:qe,useMemoCache:qe,useCacheRefresh:qe};si.useEffectEvent=qe;var Sh={readContext:ct,use:Rc,useCallback:function(e,t){return ft().memoizedState=[e,t===void 0?null:t],e},useContext:ct,useEffect:ah,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Oc(4194308,4,oh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Oc(4194308,4,e,t)},useInsertionEffect:function(e,t){Oc(4,2,e,t)},useMemo:function(e,t){var n=ft();t=t===void 0?null:t;var l=e();if(Ol){Yn(!0);try{e()}finally{Yn(!1)}}return n.memoizedState=[l,t],l},useReducer:function(e,t,n){var l=ft();if(n!==void 0){var c=n(t);if(Ol){Yn(!0);try{n(t)}finally{Yn(!1)}}}else c=t;return l.memoizedState=l.baseState=c,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:c},l.queue=e,e=e.dispatch=O0.bind(null,xe,e),[l.memoizedState,e]},useRef:function(e){var t=ft();return e={current:e},t.memoizedState=e},useState:function(e){e=ls(e);var t=e.queue,n=yh.bind(null,xe,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:cs,useDeferredValue:function(e,t){var n=ft();return rs(n,e,t)},useTransition:function(){var e=ls(!1);return e=hh.bind(null,xe,e.queue,!0,!1),ft().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var l=xe,c=ft();if(je){if(n===void 0)throw Error(o(407));n=n()}else{if(n=t(),Le===null)throw Error(o(349));(Ee&127)!==0||Vd(l,t,n)}c.memoizedState=n;var s={value:n,getSnapshot:t};return c.queue=s,ah(Gd.bind(null,l,s,e),[e]),l.flags|=2048,ua(9,{destroy:void 0},Xd.bind(null,l,s,n,t),null),n},useId:function(){var e=ft(),t=Le.identifierPrefix;if(je){var n=tn,l=en;n=(l&~(1<<32-wt(l)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Ac++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=C0++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:ss,useFormState:$d,useActionState:$d,useOptimistic:function(e){var t=ft();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=us.bind(null,xe,!0,n),n.dispatch=t,[e,t]},useMemoCache:es,useCacheRefresh:function(){return ft().memoizedState=z0.bind(null,xe)},useEffectEvent:function(e){var t=ft(),n={impl:e};return t.memoizedState=n,function(){if((Re&2)!==0)throw Error(o(440));return n.impl.apply(void 0,arguments)}}},fs={readContext:ct,use:Rc,useCallback:uh,useContext:ct,useEffect:is,useImperativeHandle:sh,useInsertionEffect:ch,useLayoutEffect:rh,useMemo:fh,useReducer:zc,useRef:lh,useState:function(){return zc(Sn)},useDebugValue:cs,useDeferredValue:function(e,t){var n=Fe();return dh(n,_e.memoizedState,e,t)},useTransition:function(){var e=zc(Sn)[0],t=Fe().memoizedState;return[typeof e=="boolean"?e:ri(e),t]},useSyncExternalStore:qd,useId:vh,useHostTransitionStatus:ss,useFormState:eh,useActionState:eh,useOptimistic:function(e,t){var n=Fe();return Qd(n,_e,e,t)},useMemoCache:es,useCacheRefresh:gh};fs.useEffectEvent=ih;var wh={readContext:ct,use:Rc,useCallback:uh,useContext:ct,useEffect:is,useImperativeHandle:sh,useInsertionEffect:ch,useLayoutEffect:rh,useMemo:fh,useReducer:ns,useRef:lh,useState:function(){return ns(Sn)},useDebugValue:cs,useDeferredValue:function(e,t){var n=Fe();return _e===null?rs(n,e,t):dh(n,_e.memoizedState,e,t)},useTransition:function(){var e=ns(Sn)[0],t=Fe().memoizedState;return[typeof e=="boolean"?e:ri(e),t]},useSyncExternalStore:qd,useId:vh,useHostTransitionStatus:ss,useFormState:nh,useActionState:nh,useOptimistic:function(e,t){var n=Fe();return _e!==null?Qd(n,_e,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:es,useCacheRefresh:gh};wh.useEffectEvent=ih;function ds(e,t,n,l){t=e.memoizedState,n=n(l,t),n=n==null?t:b({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var hs={enqueueSetState:function(e,t,n){e=e._reactInternals;var l=Rt(),c=Zn(l);c.payload=t,n!=null&&(c.callback=n),t=Pn(e,c,l),t!==null&&(yt(t,e,l),li(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var l=Rt(),c=Zn(l);c.tag=1,c.payload=t,n!=null&&(c.callback=n),t=Pn(e,c,l),t!==null&&(yt(t,e,l),li(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Rt(),l=Zn(n);l.tag=2,t!=null&&(l.callback=t),t=Pn(e,l,n),t!==null&&(yt(t,e,n),li(t,e,n))}};function Eh(e,t,n,l,c,s,m){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,s,m):t.prototype&&t.prototype.isPureReactComponent?!Pa(n,l)||!Pa(c,s):!0}function Ch(e,t,n,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,l),t.state!==e&&hs.enqueueReplaceState(t,t.state,null)}function _l(e,t){var n=t;if("ref"in t){n={};for(var l in t)l!=="ref"&&(n[l]=t[l])}if(e=e.defaultProps){n===t&&(n=b({},n));for(var c in e)n[c]===void 0&&(n[c]=e[c])}return n}function Nh(e){fc(e)}function jh(e){console.error(e)}function Ah(e){fc(e)}function Mc(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function Th(e,t,n){try{var l=e.onCaughtError;l(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(c){setTimeout(function(){throw c})}}function ms(e,t,n){return n=Zn(n),n.tag=3,n.payload={element:null},n.callback=function(){Mc(e,t)},n}function Rh(e){return e=Zn(e),e.tag=3,e}function zh(e,t,n,l){var c=n.type.getDerivedStateFromError;if(typeof c=="function"){var s=l.value;e.payload=function(){return c(s)},e.callback=function(){Th(t,n,l)}}var m=n.stateNode;m!==null&&typeof m.componentDidCatch=="function"&&(e.callback=function(){Th(t,n,l),typeof c!="function"&&(tl===null?tl=new Set([this]):tl.add(this));var x=l.stack;this.componentDidCatch(l.value,{componentStack:x!==null?x:""})})}function _0(e,t,n,l,c){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=n.alternate,t!==null&&na(t,n,c,!0),n=Nt.current,n!==null){switch(n.tag){case 31:case 13:return Xt===null?Kc():n.alternate===null&&Ve===0&&(Ve=3),n.flags&=-257,n.flags|=65536,n.lanes=c,l===Sc?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([l]):t.add(l),ks(e,l,c)),!1;case 22:return n.flags|=65536,l===Sc?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([l]):n.add(l)),ks(e,l,c)),!1}throw Error(o(435,n.tag))}return ks(e,l,c),Kc(),!1}if(je)return t=Nt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=c,l!==Do&&(e=Error(o(422),{cause:l}),Ia(kt(e,n)))):(l!==Do&&(t=Error(o(423),{cause:l}),Ia(kt(t,n))),e=e.current.alternate,e.flags|=65536,c&=-c,e.lanes|=c,l=kt(l,n),c=ms(e.stateNode,l,c),Go(e,c),Ve!==4&&(Ve=2)),!1;var s=Error(o(520),{cause:l});if(s=kt(s,n),gi===null?gi=[s]:gi.push(s),Ve!==4&&(Ve=2),t===null)return!0;l=kt(l,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=c&-c,n.lanes|=e,e=ms(n.stateNode,l,e),Go(n,e),!1;case 1:if(t=n.type,s=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||s!==null&&typeof s.componentDidCatch=="function"&&(tl===null||!tl.has(s))))return n.flags|=65536,c&=-c,n.lanes|=c,c=Rh(c),zh(c,e,n,l),Go(n,c),!1}n=n.return}while(n!==null);return!1}var ps=Error(o(461)),Pe=!1;function rt(e,t,n,l){t.child=e===null?Md(t,null,n,l):zl(t,e.child,n,l)}function Oh(e,t,n,l,c){n=n.render;var s=t.ref;if("ref"in l){var m={};for(var x in l)x!=="ref"&&(m[x]=l[x])}else m=l;return jl(t),l=Jo(e,t,n,m,s,c),x=Wo(),e!==null&&!Pe?(Io(e,t,c),wn(e,t,c)):(je&&x&&Oo(t),t.flags|=1,rt(e,t,l,c),t.child)}function _h(e,t,n,l,c){if(e===null){var s=n.type;return typeof s=="function"&&!To(s)&&s.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=s,Dh(e,t,s,l,c)):(e=pc(n.type,null,l,t,t.mode,c),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!Es(e,c)){var m=s.memoizedProps;if(n=n.compare,n=n!==null?n:Pa,n(m,l)&&e.ref===t.ref)return wn(e,t,c)}return t.flags|=1,e=vn(s,l),e.ref=t.ref,e.return=t,t.child=e}function Dh(e,t,n,l,c){if(e!==null){var s=e.memoizedProps;if(Pa(s,l)&&e.ref===t.ref)if(Pe=!1,t.pendingProps=l=s,Es(e,c))(e.flags&131072)!==0&&(Pe=!0);else return t.lanes=e.lanes,wn(e,t,c)}return vs(e,t,n,l,c)}function Mh(e,t,n,l){var c=l.children,s=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(s=s!==null?s.baseLanes|n:n,e!==null){for(l=t.child=e.child,c=0;l!==null;)c=c|l.lanes|l.childLanes,l=l.sibling;l=c&~s}else l=0,t.child=null;return Lh(e,t,s,n,l)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&xc(t,s!==null?s.cachePool:null),s!==null?Hd(t,s):Ko(),Bd(t);else return l=t.lanes=536870912,Lh(e,t,s!==null?s.baseLanes|n:n,n,l)}else s!==null?(xc(t,s.cachePool),Hd(t,s),Wn(),t.memoizedState=null):(e!==null&&xc(t,null),Ko(),Wn());return rt(e,t,c,n),t.child}function ui(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Lh(e,t,n,l,c){var s=Yo();return s=s===null?null:{parent:Qe._currentValue,pool:s},t.memoizedState={baseLanes:n,cachePool:s},e!==null&&xc(t,null),Ko(),Bd(t),e!==null&&na(e,t,l,!0),t.childLanes=c,null}function Lc(e,t){return t=Hc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Uh(e,t,n){return zl(t,e.child,null,n),e=Lc(t,t.pendingProps),e.flags|=2,jt(t),t.memoizedState=null,e}function D0(e,t,n){var l=t.pendingProps,c=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(je){if(l.mode==="hidden")return e=Lc(t,l),t.lanes=536870912,ui(null,e);if(Zo(t),(e=Ue)?(e=Zm(e,Vt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Xn!==null?{id:en,overflow:tn}:null,retryLane:536870912,hydrationErrors:null},n=xd(e),n.return=t,t.child=n,it=t,Ue=null)):e=null,e===null)throw Fn(t);return t.lanes=536870912,null}return Lc(t,l)}var s=e.memoizedState;if(s!==null){var m=s.dehydrated;if(Zo(t),c)if(t.flags&256)t.flags&=-257,t=Uh(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(o(558));else if(Pe||na(e,t,n,!1),c=(n&e.childLanes)!==0,Pe||c){if(l=Le,l!==null&&(m=jf(l,n),m!==0&&m!==s.retryLane))throw s.retryLane=m,wl(e,m),yt(l,e,m),ps;Kc(),t=Uh(e,t,n)}else e=s.treeContext,Ue=Gt(m.nextSibling),it=t,je=!0,Gn=null,Vt=!1,e!==null&&wd(t,e),t=Lc(t,l),t.flags|=4096;return t}return e=vn(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Uc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(o(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function vs(e,t,n,l,c){return jl(t),n=Jo(e,t,n,l,void 0,c),l=Wo(),e!==null&&!Pe?(Io(e,t,c),wn(e,t,c)):(je&&l&&Oo(t),t.flags|=1,rt(e,t,n,c),t.child)}function Hh(e,t,n,l,c,s){return jl(t),t.updateQueue=null,n=Yd(t,l,n,c),kd(e),l=Wo(),e!==null&&!Pe?(Io(e,t,s),wn(e,t,s)):(je&&l&&Oo(t),t.flags|=1,rt(e,t,n,s),t.child)}function Bh(e,t,n,l,c){if(jl(t),t.stateNode===null){var s=Il,m=n.contextType;typeof m=="object"&&m!==null&&(s=ct(m)),s=new n(l,s),t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=hs,t.stateNode=s,s._reactInternals=t,s=t.stateNode,s.props=l,s.state=t.memoizedState,s.refs={},Vo(t),m=n.contextType,s.context=typeof m=="object"&&m!==null?ct(m):Il,s.state=t.memoizedState,m=n.getDerivedStateFromProps,typeof m=="function"&&(ds(t,n,m,l),s.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(m=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),m!==s.state&&hs.enqueueReplaceState(s,s.state,null),ii(t,l,s,c),ai(),s.state=t.memoizedState),typeof s.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){s=t.stateNode;var x=t.memoizedProps,E=_l(n,x);s.props=E;var H=s.context,X=n.contextType;m=Il,typeof X=="object"&&X!==null&&(m=ct(X));var K=n.getDerivedStateFromProps;X=typeof K=="function"||typeof s.getSnapshotBeforeUpdate=="function",x=t.pendingProps!==x,X||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(x||H!==m)&&Ch(t,s,l,m),Qn=!1;var B=t.memoizedState;s.state=B,ii(t,l,s,c),ai(),H=t.memoizedState,x||B!==H||Qn?(typeof K=="function"&&(ds(t,n,K,l),H=t.memoizedState),(E=Qn||Eh(t,n,E,l,B,H,m))?(X||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=H),s.props=l,s.state=H,s.context=m,l=E):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{s=t.stateNode,Xo(e,t),m=t.memoizedProps,X=_l(n,m),s.props=X,K=t.pendingProps,B=s.context,H=n.contextType,E=Il,typeof H=="object"&&H!==null&&(E=ct(H)),x=n.getDerivedStateFromProps,(H=typeof x=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(m!==K||B!==E)&&Ch(t,s,l,E),Qn=!1,B=t.memoizedState,s.state=B,ii(t,l,s,c),ai();var k=t.memoizedState;m!==K||B!==k||Qn||e!==null&&e.dependencies!==null&&gc(e.dependencies)?(typeof x=="function"&&(ds(t,n,x,l),k=t.memoizedState),(X=Qn||Eh(t,n,X,l,B,k,E)||e!==null&&e.dependencies!==null&&gc(e.dependencies))?(H||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(l,k,E),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(l,k,E)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||m===e.memoizedProps&&B===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&B===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=k),s.props=l,s.state=k,s.context=E,l=X):(typeof s.componentDidUpdate!="function"||m===e.memoizedProps&&B===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&B===e.memoizedState||(t.flags|=1024),l=!1)}return s=l,Uc(e,t),l=(t.flags&128)!==0,s||l?(s=t.stateNode,n=l&&typeof n.getDerivedStateFromError!="function"?null:s.render(),t.flags|=1,e!==null&&l?(t.child=zl(t,e.child,null,c),t.child=zl(t,null,n,c)):rt(e,t,n,c),t.memoizedState=s.state,e=t.child):e=wn(e,t,c),e}function kh(e,t,n,l){return Cl(),t.flags|=256,rt(e,t,n,l),t.child}var gs={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function ys(e){return{baseLanes:e,cachePool:Td()}}function xs(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Tt),e}function Yh(e,t,n){var l=t.pendingProps,c=!1,s=(t.flags&128)!==0,m;if((m=s)||(m=e!==null&&e.memoizedState===null?!1:(Ge.current&2)!==0),m&&(c=!0,t.flags&=-129),m=(t.flags&32)!==0,t.flags&=-33,e===null){if(je){if(c?Jn(t):Wn(),(e=Ue)?(e=Zm(e,Vt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Xn!==null?{id:en,overflow:tn}:null,retryLane:536870912,hydrationErrors:null},n=xd(e),n.return=t,t.child=n,it=t,Ue=null)):e=null,e===null)throw Fn(t);return tu(e)?t.lanes=32:t.lanes=536870912,null}var x=l.children;return l=l.fallback,c?(Wn(),c=t.mode,x=Hc({mode:"hidden",children:x},c),l=El(l,c,n,null),x.return=t,l.return=t,x.sibling=l,t.child=x,l=t.child,l.memoizedState=ys(n),l.childLanes=xs(e,m,n),t.memoizedState=gs,ui(null,l)):(Jn(t),bs(t,x))}var E=e.memoizedState;if(E!==null&&(x=E.dehydrated,x!==null)){if(s)t.flags&256?(Jn(t),t.flags&=-257,t=Ss(e,t,n)):t.memoizedState!==null?(Wn(),t.child=e.child,t.flags|=128,t=null):(Wn(),x=l.fallback,c=t.mode,l=Hc({mode:"visible",children:l.children},c),x=El(x,c,n,null),x.flags|=2,l.return=t,x.return=t,l.sibling=x,t.child=l,zl(t,e.child,null,n),l=t.child,l.memoizedState=ys(n),l.childLanes=xs(e,m,n),t.memoizedState=gs,t=ui(null,l));else if(Jn(t),tu(x)){if(m=x.nextSibling&&x.nextSibling.dataset,m)var H=m.dgst;m=H,l=Error(o(419)),l.stack="",l.digest=m,Ia({value:l,source:null,stack:null}),t=Ss(e,t,n)}else if(Pe||na(e,t,n,!1),m=(n&e.childLanes)!==0,Pe||m){if(m=Le,m!==null&&(l=jf(m,n),l!==0&&l!==E.retryLane))throw E.retryLane=l,wl(e,l),yt(m,e,l),ps;eu(x)||Kc(),t=Ss(e,t,n)}else eu(x)?(t.flags|=192,t.child=e.child,t=null):(e=E.treeContext,Ue=Gt(x.nextSibling),it=t,je=!0,Gn=null,Vt=!1,e!==null&&wd(t,e),t=bs(t,l.children),t.flags|=4096);return t}return c?(Wn(),x=l.fallback,c=t.mode,E=e.child,H=E.sibling,l=vn(E,{mode:"hidden",children:l.children}),l.subtreeFlags=E.subtreeFlags&65011712,H!==null?x=vn(H,x):(x=El(x,c,n,null),x.flags|=2),x.return=t,l.return=t,l.sibling=x,t.child=l,ui(null,l),l=t.child,x=e.child.memoizedState,x===null?x=ys(n):(c=x.cachePool,c!==null?(E=Qe._currentValue,c=c.parent!==E?{parent:E,pool:E}:c):c=Td(),x={baseLanes:x.baseLanes|n,cachePool:c}),l.memoizedState=x,l.childLanes=xs(e,m,n),t.memoizedState=gs,ui(e.child,l)):(Jn(t),n=e.child,e=n.sibling,n=vn(n,{mode:"visible",children:l.children}),n.return=t,n.sibling=null,e!==null&&(m=t.deletions,m===null?(t.deletions=[e],t.flags|=16):m.push(e)),t.child=n,t.memoizedState=null,n)}function bs(e,t){return t=Hc({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Hc(e,t){return e=Ct(22,e,null,t),e.lanes=0,e}function Ss(e,t,n){return zl(t,e.child,null,n),e=bs(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function qh(e,t,n){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),Uo(e.return,t,n)}function ws(e,t,n,l,c,s){var m=e.memoizedState;m===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:c,treeForkCount:s}:(m.isBackwards=t,m.rendering=null,m.renderingStartTime=0,m.last=l,m.tail=n,m.tailMode=c,m.treeForkCount=s)}function Vh(e,t,n){var l=t.pendingProps,c=l.revealOrder,s=l.tail;l=l.children;var m=Ge.current,x=(m&2)!==0;if(x?(m=m&1|2,t.flags|=128):m&=1,Z(Ge,m),rt(e,t,l,n),l=je?Wa:0,!x&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&qh(e,n,t);else if(e.tag===19)qh(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(c){case"forwards":for(n=t.child,c=null;n!==null;)e=n.alternate,e!==null&&Nc(e)===null&&(c=n),n=n.sibling;n=c,n===null?(c=t.child,t.child=null):(c=n.sibling,n.sibling=null),ws(t,!1,c,n,s,l);break;case"backwards":case"unstable_legacy-backwards":for(n=null,c=t.child,t.child=null;c!==null;){if(e=c.alternate,e!==null&&Nc(e)===null){t.child=c;break}e=c.sibling,c.sibling=n,n=c,c=e}ws(t,!0,n,null,s,l);break;case"together":ws(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function wn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),el|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(na(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,n=vn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=vn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Es(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&gc(e)))}function M0(e,t,n){switch(t.tag){case 3:ve(t,t.stateNode.containerInfo),Kn(t,Qe,e.memoizedState.cache),Cl();break;case 27:case 5:ie(t);break;case 4:ve(t,t.stateNode.containerInfo);break;case 10:Kn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Zo(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(Jn(t),t.flags|=128,null):(n&t.child.childLanes)!==0?Yh(e,t,n):(Jn(t),e=wn(e,t,n),e!==null?e.sibling:null);Jn(t);break;case 19:var c=(e.flags&128)!==0;if(l=(n&t.childLanes)!==0,l||(na(e,t,n,!1),l=(n&t.childLanes)!==0),c){if(l)return Vh(e,t,n);t.flags|=128}if(c=t.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),Z(Ge,Ge.current),l)break;return null;case 22:return t.lanes=0,Mh(e,t,n,t.pendingProps);case 24:Kn(t,Qe,e.memoizedState.cache)}return wn(e,t,n)}function Xh(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Pe=!0;else{if(!Es(e,n)&&(t.flags&128)===0)return Pe=!1,M0(e,t,n);Pe=(e.flags&131072)!==0}else Pe=!1,je&&(t.flags&1048576)!==0&&Sd(t,Wa,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=Tl(t.elementType),t.type=e,typeof e=="function")To(e)?(l=_l(e,l),t.tag=1,t=Bh(null,t,e,l,n)):(t.tag=0,t=vs(null,t,e,l,n));else{if(e!=null){var c=e.$$typeof;if(c===q){t.tag=11,t=Oh(null,t,e,l,n);break e}else if(c===Y){t.tag=14,t=_h(null,t,e,l,n);break e}}throw t=ee(e)||e,Error(o(306,t,""))}}return t;case 0:return vs(e,t,t.type,t.pendingProps,n);case 1:return l=t.type,c=_l(l,t.pendingProps),Bh(e,t,l,c,n);case 3:e:{if(ve(t,t.stateNode.containerInfo),e===null)throw Error(o(387));l=t.pendingProps;var s=t.memoizedState;c=s.element,Xo(e,t),ii(t,l,null,n);var m=t.memoizedState;if(l=m.cache,Kn(t,Qe,l),l!==s.cache&&Ho(t,[Qe],n,!0),ai(),l=m.element,s.isDehydrated)if(s={element:l,isDehydrated:!1,cache:m.cache},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){t=kh(e,t,l,n);break e}else if(l!==c){c=kt(Error(o(424)),t),Ia(c),t=kh(e,t,l,n);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,Ue=Gt(e.firstChild),it=t,je=!0,Gn=null,Vt=!0,n=Md(t,null,l,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Cl(),l===c){t=wn(e,t,n);break e}rt(e,t,l,n)}t=t.child}return t;case 26:return Uc(e,t),e===null?(n=ep(t.type,null,t.pendingProps,null))?t.memoizedState=n:je||(n=t.type,e=t.pendingProps,l=$c(he.current).createElement(n),l[at]=t,l[dt]=e,ot(l,n,e),nt(l),t.stateNode=l):t.memoizedState=ep(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ie(t),e===null&&je&&(l=t.stateNode=Wm(t.type,t.pendingProps,he.current),it=t,Vt=!0,c=Ue,il(t.type)?(nu=c,Ue=Gt(l.firstChild)):Ue=c),rt(e,t,t.pendingProps.children,n),Uc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&je&&((c=l=Ue)&&(l=ux(l,t.type,t.pendingProps,Vt),l!==null?(t.stateNode=l,it=t,Ue=Gt(l.firstChild),Vt=!1,c=!0):c=!1),c||Fn(t)),ie(t),c=t.type,s=t.pendingProps,m=e!==null?e.memoizedProps:null,l=s.children,Ws(c,s)?l=null:m!==null&&Ws(c,m)&&(t.flags|=32),t.memoizedState!==null&&(c=Jo(e,t,N0,null,null,n),Ni._currentValue=c),Uc(e,t),rt(e,t,l,n),t.child;case 6:return e===null&&je&&((e=n=Ue)&&(n=fx(n,t.pendingProps,Vt),n!==null?(t.stateNode=n,it=t,Ue=null,e=!0):e=!1),e||Fn(t)),null;case 13:return Yh(e,t,n);case 4:return ve(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=zl(t,null,l,n):rt(e,t,l,n),t.child;case 11:return Oh(e,t,t.type,t.pendingProps,n);case 7:return rt(e,t,t.pendingProps,n),t.child;case 8:return rt(e,t,t.pendingProps.children,n),t.child;case 12:return rt(e,t,t.pendingProps.children,n),t.child;case 10:return l=t.pendingProps,Kn(t,t.type,l.value),rt(e,t,l.children,n),t.child;case 9:return c=t.type._context,l=t.pendingProps.children,jl(t),c=ct(c),l=l(c),t.flags|=1,rt(e,t,l,n),t.child;case 14:return _h(e,t,t.type,t.pendingProps,n);case 15:return Dh(e,t,t.type,t.pendingProps,n);case 19:return Vh(e,t,n);case 31:return D0(e,t,n);case 22:return Mh(e,t,n,t.pendingProps);case 24:return jl(t),l=ct(Qe),e===null?(c=Yo(),c===null&&(c=Le,s=Bo(),c.pooledCache=s,s.refCount++,s!==null&&(c.pooledCacheLanes|=n),c=s),t.memoizedState={parent:l,cache:c},Vo(t),Kn(t,Qe,c)):((e.lanes&n)!==0&&(Xo(e,t),ii(t,null,null,n),ai()),c=e.memoizedState,s=t.memoizedState,c.parent!==l?(c={parent:l,cache:l},t.memoizedState=c,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=c),Kn(t,Qe,l)):(l=s.cache,Kn(t,Qe,l),l!==c.cache&&Ho(t,[Qe],n,!0))),rt(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function En(e){e.flags|=4}function Cs(e,t,n,l,c){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(c&335544128)===c)if(e.stateNode.complete)e.flags|=8192;else if(vm())e.flags|=8192;else throw Rl=Sc,qo}else e.flags&=-16777217}function Gh(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!ip(t))if(vm())e.flags|=8192;else throw Rl=Sc,qo}function Bc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Ef():536870912,e.lanes|=t,ma|=t)}function fi(e,t){if(!je)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function He(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,l=0;if(t)for(var c=e.child;c!==null;)n|=c.lanes|c.childLanes,l|=c.subtreeFlags&65011712,l|=c.flags&65011712,c.return=e,c=c.sibling;else for(c=e.child;c!==null;)n|=c.lanes|c.childLanes,l|=c.subtreeFlags,l|=c.flags,c.return=e,c=c.sibling;return e.subtreeFlags|=l,e.childLanes=n,t}function L0(e,t,n){var l=t.pendingProps;switch(_o(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return He(t),null;case 1:return He(t),null;case 3:return n=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),xn(Qe),W(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(ta(t)?En(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Mo())),He(t),null;case 26:var c=t.type,s=t.memoizedState;return e===null?(En(t),s!==null?(He(t),Gh(t,s)):(He(t),Cs(t,c,null,l,n))):s?s!==e.memoizedState?(En(t),He(t),Gh(t,s)):(He(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&En(t),He(t),Cs(t,c,e,l,n)),null;case 27:if(ge(t),n=he.current,c=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&En(t);else{if(!l){if(t.stateNode===null)throw Error(o(166));return He(t),null}e=I.current,ta(t)?Ed(t):(e=Wm(c,l,n),t.stateNode=e,En(t))}return He(t),null;case 5:if(ge(t),c=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&En(t);else{if(!l){if(t.stateNode===null)throw Error(o(166));return He(t),null}if(s=I.current,ta(t))Ed(t);else{var m=$c(he.current);switch(s){case 1:s=m.createElementNS("http://www.w3.org/2000/svg",c);break;case 2:s=m.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;default:switch(c){case"svg":s=m.createElementNS("http://www.w3.org/2000/svg",c);break;case"math":s=m.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;case"script":s=m.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild);break;case"select":s=typeof l.is=="string"?m.createElement("select",{is:l.is}):m.createElement("select"),l.multiple?s.multiple=!0:l.size&&(s.size=l.size);break;default:s=typeof l.is=="string"?m.createElement(c,{is:l.is}):m.createElement(c)}}s[at]=t,s[dt]=l;e:for(m=t.child;m!==null;){if(m.tag===5||m.tag===6)s.appendChild(m.stateNode);else if(m.tag!==4&&m.tag!==27&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===t)break e;for(;m.sibling===null;){if(m.return===null||m.return===t)break e;m=m.return}m.sibling.return=m.return,m=m.sibling}t.stateNode=s;e:switch(ot(s,c,l),c){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&En(t)}}return He(t),Cs(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&En(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(o(166));if(e=he.current,ta(t)){if(e=t.stateNode,n=t.memoizedProps,l=null,c=it,c!==null)switch(c.tag){case 27:case 5:l=c.memoizedProps}e[at]=t,e=!!(e.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||Ym(e.nodeValue,n)),e||Fn(t,!0)}else e=$c(e).createTextNode(l),e[at]=t,t.stateNode=e}return He(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(l=ta(t),n!==null){if(e===null){if(!l)throw Error(o(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(557));e[at]=t}else Cl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;He(t),e=!1}else n=Mo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(jt(t),t):(jt(t),null);if((t.flags&128)!==0)throw Error(o(558))}return He(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(c=ta(t),l!==null&&l.dehydrated!==null){if(e===null){if(!c)throw Error(o(318));if(c=t.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(o(317));c[at]=t}else Cl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;He(t),c=!1}else c=Mo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=c),c=!0;if(!c)return t.flags&256?(jt(t),t):(jt(t),null)}return jt(t),(t.flags&128)!==0?(t.lanes=n,t):(n=l!==null,e=e!==null&&e.memoizedState!==null,n&&(l=t.child,c=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(c=l.alternate.memoizedState.cachePool.pool),s=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(s=l.memoizedState.cachePool.pool),s!==c&&(l.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Bc(t,t.updateQueue),He(t),null);case 4:return W(),e===null&&Ks(t.stateNode.containerInfo),He(t),null;case 10:return xn(t.type),He(t),null;case 19:if(G(Ge),l=t.memoizedState,l===null)return He(t),null;if(c=(t.flags&128)!==0,s=l.rendering,s===null)if(c)fi(l,!1);else{if(Ve!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(s=Nc(e),s!==null){for(t.flags|=128,fi(l,!1),e=s.updateQueue,t.updateQueue=e,Bc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)yd(n,e),n=n.sibling;return Z(Ge,Ge.current&1|2),je&&gn(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&bt()>Xc&&(t.flags|=128,c=!0,fi(l,!1),t.lanes=4194304)}else{if(!c)if(e=Nc(s),e!==null){if(t.flags|=128,c=!0,e=e.updateQueue,t.updateQueue=e,Bc(t,e),fi(l,!0),l.tail===null&&l.tailMode==="hidden"&&!s.alternate&&!je)return He(t),null}else 2*bt()-l.renderingStartTime>Xc&&n!==536870912&&(t.flags|=128,c=!0,fi(l,!1),t.lanes=4194304);l.isBackwards?(s.sibling=t.child,t.child=s):(e=l.last,e!==null?e.sibling=s:t.child=s,l.last=s)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=bt(),e.sibling=null,n=Ge.current,Z(Ge,c?n&1|2:n&1),je&&gn(t,l.treeForkCount),e):(He(t),null);case 22:case 23:return jt(t),Qo(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(n&536870912)!==0&&(t.flags&128)===0&&(He(t),t.subtreeFlags&6&&(t.flags|=8192)):He(t),n=t.updateQueue,n!==null&&Bc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==n&&(t.flags|=2048),e!==null&&G(Al),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),xn(Qe),He(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function U0(e,t){switch(_o(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return xn(Qe),W(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ge(t),null;case 31:if(t.memoizedState!==null){if(jt(t),t.alternate===null)throw Error(o(340));Cl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(jt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));Cl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return G(Ge),null;case 4:return W(),null;case 10:return xn(t.type),null;case 22:case 23:return jt(t),Qo(),e!==null&&G(Al),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return xn(Qe),null;case 25:return null;default:return null}}function Fh(e,t){switch(_o(t),t.tag){case 3:xn(Qe),W();break;case 26:case 27:case 5:ge(t);break;case 4:W();break;case 31:t.memoizedState!==null&&jt(t);break;case 13:jt(t);break;case 19:G(Ge);break;case 10:xn(t.type);break;case 22:case 23:jt(t),Qo(),e!==null&&G(Al);break;case 24:xn(Qe)}}function di(e,t){try{var n=t.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var c=l.next;n=c;do{if((n.tag&e)===e){l=void 0;var s=n.create,m=n.inst;l=s(),m.destroy=l}n=n.next}while(n!==c)}}catch(x){Oe(t,t.return,x)}}function In(e,t,n){try{var l=t.updateQueue,c=l!==null?l.lastEffect:null;if(c!==null){var s=c.next;l=s;do{if((l.tag&e)===e){var m=l.inst,x=m.destroy;if(x!==void 0){m.destroy=void 0,c=t;var E=n,H=x;try{H()}catch(X){Oe(c,E,X)}}}l=l.next}while(l!==s)}}catch(X){Oe(t,t.return,X)}}function Kh(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Ud(t,n)}catch(l){Oe(e,e.return,l)}}}function Qh(e,t,n){n.props=_l(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(l){Oe(e,t,l)}}function hi(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof n=="function"?e.refCleanup=n(l):n.current=l}}catch(c){Oe(e,t,c)}}function nn(e,t){var n=e.ref,l=e.refCleanup;if(n!==null)if(typeof l=="function")try{l()}catch(c){Oe(e,t,c)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(c){Oe(e,t,c)}else n.current=null}function Zh(e){var t=e.type,n=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&l.focus();break e;case"img":n.src?l.src=n.src:n.srcSet&&(l.srcset=n.srcSet)}}catch(c){Oe(e,e.return,c)}}function Ns(e,t,n){try{var l=e.stateNode;ax(l,e.type,n,t),l[dt]=t}catch(c){Oe(e,e.return,c)}}function Ph(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&il(e.type)||e.tag===4}function js(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ph(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&il(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function As(e,t,n){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=mn));else if(l!==4&&(l===27&&il(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(As(e,t,n),e=e.sibling;e!==null;)As(e,t,n),e=e.sibling}function kc(e,t,n){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(l!==4&&(l===27&&il(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(kc(e,t,n),e=e.sibling;e!==null;)kc(e,t,n),e=e.sibling}function Jh(e){var t=e.stateNode,n=e.memoizedProps;try{for(var l=e.type,c=t.attributes;c.length;)t.removeAttributeNode(c[0]);ot(t,l,n),t[at]=e,t[dt]=n}catch(s){Oe(e,e.return,s)}}var Cn=!1,Je=!1,Ts=!1,Wh=typeof WeakSet=="function"?WeakSet:Set,lt=null;function H0(e,t){if(e=e.containerInfo,Ps=cr,e=sd(e),So(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var l=n.getSelection&&n.getSelection();if(l&&l.rangeCount!==0){n=l.anchorNode;var c=l.anchorOffset,s=l.focusNode;l=l.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var m=0,x=-1,E=-1,H=0,X=0,K=e,B=null;t:for(;;){for(var k;K!==n||c!==0&&K.nodeType!==3||(x=m+c),K!==s||l!==0&&K.nodeType!==3||(E=m+l),K.nodeType===3&&(m+=K.nodeValue.length),(k=K.firstChild)!==null;)B=K,K=k;for(;;){if(K===e)break t;if(B===n&&++H===c&&(x=m),B===s&&++X===l&&(E=m),(k=K.nextSibling)!==null)break;K=B,B=K.parentNode}K=k}n=x===-1||E===-1?null:{start:x,end:E}}else n=null}n=n||{start:0,end:0}}else n=null;for(Js={focusedElem:e,selectionRange:n},cr=!1,lt=t;lt!==null;)if(t=lt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,lt=e;else for(;lt!==null;){switch(t=lt,s=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)c=e[n],c.ref.impl=c.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&s!==null){e=void 0,n=t,c=s.memoizedProps,s=s.memoizedState,l=n.stateNode;try{var ce=_l(n.type,c);e=l.getSnapshotBeforeUpdate(ce,s),l.__reactInternalSnapshotBeforeUpdate=e}catch(me){Oe(n,n.return,me)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)$s(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":$s(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(o(163))}if(e=t.sibling,e!==null){e.return=t.return,lt=e;break}lt=t.return}}function Ih(e,t,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:jn(e,n),l&4&&di(5,n);break;case 1:if(jn(e,n),l&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(m){Oe(n,n.return,m)}else{var c=_l(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(c,t,e.__reactInternalSnapshotBeforeUpdate)}catch(m){Oe(n,n.return,m)}}l&64&&Kh(n),l&512&&hi(n,n.return);break;case 3:if(jn(e,n),l&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Ud(e,t)}catch(m){Oe(n,n.return,m)}}break;case 27:t===null&&l&4&&Jh(n);case 26:case 5:jn(e,n),t===null&&l&4&&Zh(n),l&512&&hi(n,n.return);break;case 12:jn(e,n);break;case 31:jn(e,n),l&4&&tm(e,n);break;case 13:jn(e,n),l&4&&nm(e,n),l&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=K0.bind(null,n),dx(e,n))));break;case 22:if(l=n.memoizedState!==null||Cn,!l){t=t!==null&&t.memoizedState!==null||Je,c=Cn;var s=Je;Cn=l,(Je=t)&&!s?An(e,n,(n.subtreeFlags&8772)!==0):jn(e,n),Cn=c,Je=s}break;case 30:break;default:jn(e,n)}}function $h(e){var t=e.alternate;t!==null&&(e.alternate=null,$h(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&lo(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Be=null,mt=!1;function Nn(e,t,n){for(n=n.child;n!==null;)em(e,t,n),n=n.sibling}function em(e,t,n){if(St&&typeof St.onCommitFiberUnmount=="function")try{St.onCommitFiberUnmount(Ha,n)}catch{}switch(n.tag){case 26:Je||nn(n,t),Nn(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Je||nn(n,t);var l=Be,c=mt;il(n.type)&&(Be=n.stateNode,mt=!1),Nn(e,t,n),wi(n.stateNode),Be=l,mt=c;break;case 5:Je||nn(n,t);case 6:if(l=Be,c=mt,Be=null,Nn(e,t,n),Be=l,mt=c,Be!==null)if(mt)try{(Be.nodeType===9?Be.body:Be.nodeName==="HTML"?Be.ownerDocument.body:Be).removeChild(n.stateNode)}catch(s){Oe(n,t,s)}else try{Be.removeChild(n.stateNode)}catch(s){Oe(n,t,s)}break;case 18:Be!==null&&(mt?(e=Be,Km(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),wa(e)):Km(Be,n.stateNode));break;case 4:l=Be,c=mt,Be=n.stateNode.containerInfo,mt=!0,Nn(e,t,n),Be=l,mt=c;break;case 0:case 11:case 14:case 15:In(2,n,t),Je||In(4,n,t),Nn(e,t,n);break;case 1:Je||(nn(n,t),l=n.stateNode,typeof l.componentWillUnmount=="function"&&Qh(n,t,l)),Nn(e,t,n);break;case 21:Nn(e,t,n);break;case 22:Je=(l=Je)||n.memoizedState!==null,Nn(e,t,n),Je=l;break;default:Nn(e,t,n)}}function tm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{wa(e)}catch(n){Oe(t,t.return,n)}}}function nm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{wa(e)}catch(n){Oe(t,t.return,n)}}function B0(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Wh),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Wh),t;default:throw Error(o(435,e.tag))}}function Yc(e,t){var n=B0(e);t.forEach(function(l){if(!n.has(l)){n.add(l);var c=Q0.bind(null,e,l);l.then(c,c)}})}function pt(e,t){var n=t.deletions;if(n!==null)for(var l=0;l<n.length;l++){var c=n[l],s=e,m=t,x=m;e:for(;x!==null;){switch(x.tag){case 27:if(il(x.type)){Be=x.stateNode,mt=!1;break e}break;case 5:Be=x.stateNode,mt=!1;break e;case 3:case 4:Be=x.stateNode.containerInfo,mt=!0;break e}x=x.return}if(Be===null)throw Error(o(160));em(s,m,c),Be=null,mt=!1,s=c.alternate,s!==null&&(s.return=null),c.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)lm(t,e),t=t.sibling}var Qt=null;function lm(e,t){var n=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:pt(t,e),vt(e),l&4&&(In(3,e,e.return),di(3,e),In(5,e,e.return));break;case 1:pt(t,e),vt(e),l&512&&(Je||n===null||nn(n,n.return)),l&64&&Cn&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?l:n.concat(l))));break;case 26:var c=Qt;if(pt(t,e),vt(e),l&512&&(Je||n===null||nn(n,n.return)),l&4){var s=n!==null?n.memoizedState:null;if(l=e.memoizedState,n===null)if(l===null)if(e.stateNode===null){e:{l=e.type,n=e.memoizedProps,c=c.ownerDocument||c;t:switch(l){case"title":s=c.getElementsByTagName("title")[0],(!s||s[Ya]||s[at]||s.namespaceURI==="http://www.w3.org/2000/svg"||s.hasAttribute("itemprop"))&&(s=c.createElement(l),c.head.insertBefore(s,c.querySelector("head > title"))),ot(s,l,n),s[at]=e,nt(s),l=s;break e;case"link":var m=lp("link","href",c).get(l+(n.href||""));if(m){for(var x=0;x<m.length;x++)if(s=m[x],s.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&s.getAttribute("rel")===(n.rel==null?null:n.rel)&&s.getAttribute("title")===(n.title==null?null:n.title)&&s.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){m.splice(x,1);break t}}s=c.createElement(l),ot(s,l,n),c.head.appendChild(s);break;case"meta":if(m=lp("meta","content",c).get(l+(n.content||""))){for(x=0;x<m.length;x++)if(s=m[x],s.getAttribute("content")===(n.content==null?null:""+n.content)&&s.getAttribute("name")===(n.name==null?null:n.name)&&s.getAttribute("property")===(n.property==null?null:n.property)&&s.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&s.getAttribute("charset")===(n.charSet==null?null:n.charSet)){m.splice(x,1);break t}}s=c.createElement(l),ot(s,l,n),c.head.appendChild(s);break;default:throw Error(o(468,l))}s[at]=e,nt(s),l=s}e.stateNode=l}else ap(c,e.type,e.stateNode);else e.stateNode=np(c,l,e.memoizedProps);else s!==l?(s===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):s.count--,l===null?ap(c,e.type,e.stateNode):np(c,l,e.memoizedProps)):l===null&&e.stateNode!==null&&Ns(e,e.memoizedProps,n.memoizedProps)}break;case 27:pt(t,e),vt(e),l&512&&(Je||n===null||nn(n,n.return)),n!==null&&l&4&&Ns(e,e.memoizedProps,n.memoizedProps);break;case 5:if(pt(t,e),vt(e),l&512&&(Je||n===null||nn(n,n.return)),e.flags&32){c=e.stateNode;try{Fl(c,"")}catch(ce){Oe(e,e.return,ce)}}l&4&&e.stateNode!=null&&(c=e.memoizedProps,Ns(e,c,n!==null?n.memoizedProps:c)),l&1024&&(Ts=!0);break;case 6:if(pt(t,e),vt(e),l&4){if(e.stateNode===null)throw Error(o(162));l=e.memoizedProps,n=e.stateNode;try{n.nodeValue=l}catch(ce){Oe(e,e.return,ce)}}break;case 3:if(nr=null,c=Qt,Qt=er(t.containerInfo),pt(t,e),Qt=c,vt(e),l&4&&n!==null&&n.memoizedState.isDehydrated)try{wa(t.containerInfo)}catch(ce){Oe(e,e.return,ce)}Ts&&(Ts=!1,am(e));break;case 4:l=Qt,Qt=er(e.stateNode.containerInfo),pt(t,e),vt(e),Qt=l;break;case 12:pt(t,e),vt(e);break;case 31:pt(t,e),vt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Yc(e,l)));break;case 13:pt(t,e),vt(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Vc=bt()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Yc(e,l)));break;case 22:c=e.memoizedState!==null;var E=n!==null&&n.memoizedState!==null,H=Cn,X=Je;if(Cn=H||c,Je=X||E,pt(t,e),Je=X,Cn=H,vt(e),l&8192)e:for(t=e.stateNode,t._visibility=c?t._visibility&-2:t._visibility|1,c&&(n===null||E||Cn||Je||Dl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){E=n=t;try{if(s=E.stateNode,c)m=s.style,typeof m.setProperty=="function"?m.setProperty("display","none","important"):m.display="none";else{x=E.stateNode;var K=E.memoizedProps.style,B=K!=null&&K.hasOwnProperty("display")?K.display:null;x.style.display=B==null||typeof B=="boolean"?"":(""+B).trim()}}catch(ce){Oe(E,E.return,ce)}}}else if(t.tag===6){if(n===null){E=t;try{E.stateNode.nodeValue=c?"":E.memoizedProps}catch(ce){Oe(E,E.return,ce)}}}else if(t.tag===18){if(n===null){E=t;try{var k=E.stateNode;c?Qm(k,!0):Qm(E.stateNode,!1)}catch(ce){Oe(E,E.return,ce)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(n=l.retryQueue,n!==null&&(l.retryQueue=null,Yc(e,n))));break;case 19:pt(t,e),vt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Yc(e,l)));break;case 30:break;case 21:break;default:pt(t,e),vt(e)}}function vt(e){var t=e.flags;if(t&2){try{for(var n,l=e.return;l!==null;){if(Ph(l)){n=l;break}l=l.return}if(n==null)throw Error(o(160));switch(n.tag){case 27:var c=n.stateNode,s=js(e);kc(e,s,c);break;case 5:var m=n.stateNode;n.flags&32&&(Fl(m,""),n.flags&=-33);var x=js(e);kc(e,x,m);break;case 3:case 4:var E=n.stateNode.containerInfo,H=js(e);As(e,H,E);break;default:throw Error(o(161))}}catch(X){Oe(e,e.return,X)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function am(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;am(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function jn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Ih(e,t.alternate,t),t=t.sibling}function Dl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:In(4,t,t.return),Dl(t);break;case 1:nn(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&Qh(t,t.return,n),Dl(t);break;case 27:wi(t.stateNode);case 26:case 5:nn(t,t.return),Dl(t);break;case 22:t.memoizedState===null&&Dl(t);break;case 30:Dl(t);break;default:Dl(t)}e=e.sibling}}function An(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,c=e,s=t,m=s.flags;switch(s.tag){case 0:case 11:case 15:An(c,s,n),di(4,s);break;case 1:if(An(c,s,n),l=s,c=l.stateNode,typeof c.componentDidMount=="function")try{c.componentDidMount()}catch(H){Oe(l,l.return,H)}if(l=s,c=l.updateQueue,c!==null){var x=l.stateNode;try{var E=c.shared.hiddenCallbacks;if(E!==null)for(c.shared.hiddenCallbacks=null,c=0;c<E.length;c++)Ld(E[c],x)}catch(H){Oe(l,l.return,H)}}n&&m&64&&Kh(s),hi(s,s.return);break;case 27:Jh(s);case 26:case 5:An(c,s,n),n&&l===null&&m&4&&Zh(s),hi(s,s.return);break;case 12:An(c,s,n);break;case 31:An(c,s,n),n&&m&4&&tm(c,s);break;case 13:An(c,s,n),n&&m&4&&nm(c,s);break;case 22:s.memoizedState===null&&An(c,s,n),hi(s,s.return);break;case 30:break;default:An(c,s,n)}t=t.sibling}}function Rs(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&$a(n))}function zs(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&$a(e))}function Zt(e,t,n,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)im(e,t,n,l),t=t.sibling}function im(e,t,n,l){var c=t.flags;switch(t.tag){case 0:case 11:case 15:Zt(e,t,n,l),c&2048&&di(9,t);break;case 1:Zt(e,t,n,l);break;case 3:Zt(e,t,n,l),c&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&$a(e)));break;case 12:if(c&2048){Zt(e,t,n,l),e=t.stateNode;try{var s=t.memoizedProps,m=s.id,x=s.onPostCommit;typeof x=="function"&&x(m,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(E){Oe(t,t.return,E)}}else Zt(e,t,n,l);break;case 31:Zt(e,t,n,l);break;case 13:Zt(e,t,n,l);break;case 23:break;case 22:s=t.stateNode,m=t.alternate,t.memoizedState!==null?s._visibility&2?Zt(e,t,n,l):mi(e,t):s._visibility&2?Zt(e,t,n,l):(s._visibility|=2,fa(e,t,n,l,(t.subtreeFlags&10256)!==0||!1)),c&2048&&Rs(m,t);break;case 24:Zt(e,t,n,l),c&2048&&zs(t.alternate,t);break;default:Zt(e,t,n,l)}}function fa(e,t,n,l,c){for(c=c&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var s=e,m=t,x=n,E=l,H=m.flags;switch(m.tag){case 0:case 11:case 15:fa(s,m,x,E,c),di(8,m);break;case 23:break;case 22:var X=m.stateNode;m.memoizedState!==null?X._visibility&2?fa(s,m,x,E,c):mi(s,m):(X._visibility|=2,fa(s,m,x,E,c)),c&&H&2048&&Rs(m.alternate,m);break;case 24:fa(s,m,x,E,c),c&&H&2048&&zs(m.alternate,m);break;default:fa(s,m,x,E,c)}t=t.sibling}}function mi(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,l=t,c=l.flags;switch(l.tag){case 22:mi(n,l),c&2048&&Rs(l.alternate,l);break;case 24:mi(n,l),c&2048&&zs(l.alternate,l);break;default:mi(n,l)}t=t.sibling}}var pi=8192;function da(e,t,n){if(e.subtreeFlags&pi)for(e=e.child;e!==null;)cm(e,t,n),e=e.sibling}function cm(e,t,n){switch(e.tag){case 26:da(e,t,n),e.flags&pi&&e.memoizedState!==null&&Cx(n,Qt,e.memoizedState,e.memoizedProps);break;case 5:da(e,t,n);break;case 3:case 4:var l=Qt;Qt=er(e.stateNode.containerInfo),da(e,t,n),Qt=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=pi,pi=16777216,da(e,t,n),pi=l):da(e,t,n));break;default:da(e,t,n)}}function rm(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function vi(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];lt=l,sm(l,e)}rm(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)om(e),e=e.sibling}function om(e){switch(e.tag){case 0:case 11:case 15:vi(e),e.flags&2048&&In(9,e,e.return);break;case 3:vi(e);break;case 12:vi(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,qc(e)):vi(e);break;default:vi(e)}}function qc(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];lt=l,sm(l,e)}rm(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:In(8,t,t.return),qc(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,qc(t));break;default:qc(t)}e=e.sibling}}function sm(e,t){for(;lt!==null;){var n=lt;switch(n.tag){case 0:case 11:case 15:In(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var l=n.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:$a(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,lt=l;else e:for(n=e;lt!==null;){l=lt;var c=l.sibling,s=l.return;if($h(l),l===n){lt=null;break e}if(c!==null){c.return=s,lt=c;break e}lt=s}}}var k0={getCacheForType:function(e){var t=ct(Qe),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return ct(Qe).controller.signal}},Y0=typeof WeakMap=="function"?WeakMap:Map,Re=0,Le=null,Se=null,Ee=0,ze=0,At=null,$n=!1,ha=!1,Os=!1,Tn=0,Ve=0,el=0,Ml=0,_s=0,Tt=0,ma=0,gi=null,gt=null,Ds=!1,Vc=0,um=0,Xc=1/0,Gc=null,tl=null,$e=0,nl=null,pa=null,Rn=0,Ms=0,Ls=null,fm=null,yi=0,Us=null;function Rt(){return(Re&2)!==0&&Ee!==0?Ee&-Ee:_.T!==null?Vs():Af()}function dm(){if(Tt===0)if((Ee&536870912)===0||je){var e=Ii;Ii<<=1,(Ii&3932160)===0&&(Ii=262144),Tt=e}else Tt=536870912;return e=Nt.current,e!==null&&(e.flags|=32),Tt}function yt(e,t,n){(e===Le&&(ze===2||ze===9)||e.cancelPendingCommit!==null)&&(va(e,0),ll(e,Ee,Tt,!1)),ka(e,n),((Re&2)===0||e!==Le)&&(e===Le&&((Re&2)===0&&(Ml|=n),Ve===4&&ll(e,Ee,Tt,!1)),ln(e))}function hm(e,t,n){if((Re&6)!==0)throw Error(o(327));var l=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Ba(e,t),c=l?X0(e,t):Bs(e,t,!0),s=l;do{if(c===0){ha&&!l&&ll(e,t,0,!1);break}else{if(n=e.current.alternate,s&&!q0(n)){c=Bs(e,t,!1),s=!1;continue}if(c===2){if(s=t,e.errorRecoveryDisabledLanes&s)var m=0;else m=e.pendingLanes&-536870913,m=m!==0?m:m&536870912?536870912:0;if(m!==0){t=m;e:{var x=e;c=gi;var E=x.current.memoizedState.isDehydrated;if(E&&(va(x,m).flags|=256),m=Bs(x,m,!1),m!==2){if(Os&&!E){x.errorRecoveryDisabledLanes|=s,Ml|=s,c=4;break e}s=gt,gt=c,s!==null&&(gt===null?gt=s:gt.push.apply(gt,s))}c=m}if(s=!1,c!==2)continue}}if(c===1){va(e,0),ll(e,t,0,!0);break}e:{switch(l=e,s=c,s){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:ll(l,t,Tt,!$n);break e;case 2:gt=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(c=Vc+300-bt(),10<c)){if(ll(l,t,Tt,!$n),ec(l,0,!0)!==0)break e;Rn=t,l.timeoutHandle=Gm(mm.bind(null,l,n,gt,Gc,Ds,t,Tt,Ml,ma,$n,s,"Throttled",-0,0),c);break e}mm(l,n,gt,Gc,Ds,t,Tt,Ml,ma,$n,s,null,-0,0)}}break}while(!0);ln(e)}function mm(e,t,n,l,c,s,m,x,E,H,X,K,B,k){if(e.timeoutHandle=-1,K=t.subtreeFlags,K&8192||(K&16785408)===16785408){K={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:mn},cm(t,s,K);var ce=(s&62914560)===s?Vc-bt():(s&4194048)===s?um-bt():0;if(ce=Nx(K,ce),ce!==null){Rn=s,e.cancelPendingCommit=ce(wm.bind(null,e,t,s,n,l,c,m,x,E,X,K,null,B,k)),ll(e,s,m,!H);return}}wm(e,t,s,n,l,c,m,x,E)}function q0(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var l=0;l<n.length;l++){var c=n[l],s=c.getSnapshot;c=c.value;try{if(!Et(s(),c))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function ll(e,t,n,l){t&=~_s,t&=~Ml,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var c=t;0<c;){var s=31-wt(c),m=1<<s;l[s]=-1,c&=~m}n!==0&&Cf(e,n,t)}function Fc(){return(Re&6)===0?(xi(0),!1):!0}function Hs(){if(Se!==null){if(ze===0)var e=Se.return;else e=Se,yn=Nl=null,$o(e),ca=null,ti=0,e=Se;for(;e!==null;)Fh(e.alternate,e),e=e.return;Se=null}}function va(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,rx(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Rn=0,Hs(),Le=e,Se=n=vn(e.current,null),Ee=t,ze=0,At=null,$n=!1,ha=Ba(e,t),Os=!1,ma=Tt=_s=Ml=el=Ve=0,gt=gi=null,Ds=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var c=31-wt(l),s=1<<c;t|=e[c],l&=~s}return Tn=t,dc(),n}function pm(e,t){xe=null,_.H=si,t===ia||t===bc?(t=Od(),ze=3):t===qo?(t=Od(),ze=4):ze=t===ps?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,At=t,Se===null&&(Ve=1,Mc(e,kt(t,e.current)))}function vm(){var e=Nt.current;return e===null?!0:(Ee&4194048)===Ee?Xt===null:(Ee&62914560)===Ee||(Ee&536870912)!==0?e===Xt:!1}function gm(){var e=_.H;return _.H=si,e===null?si:e}function ym(){var e=_.A;return _.A=k0,e}function Kc(){Ve=4,$n||(Ee&4194048)!==Ee&&Nt.current!==null||(ha=!0),(el&134217727)===0&&(Ml&134217727)===0||Le===null||ll(Le,Ee,Tt,!1)}function Bs(e,t,n){var l=Re;Re|=2;var c=gm(),s=ym();(Le!==e||Ee!==t)&&(Gc=null,va(e,t)),t=!1;var m=Ve;e:do try{if(ze!==0&&Se!==null){var x=Se,E=At;switch(ze){case 8:Hs(),m=6;break e;case 3:case 2:case 9:case 6:Nt.current===null&&(t=!0);var H=ze;if(ze=0,At=null,ga(e,x,E,H),n&&ha){m=0;break e}break;default:H=ze,ze=0,At=null,ga(e,x,E,H)}}V0(),m=Ve;break}catch(X){pm(e,X)}while(!0);return t&&e.shellSuspendCounter++,yn=Nl=null,Re=l,_.H=c,_.A=s,Se===null&&(Le=null,Ee=0,dc()),m}function V0(){for(;Se!==null;)xm(Se)}function X0(e,t){var n=Re;Re|=2;var l=gm(),c=ym();Le!==e||Ee!==t?(Gc=null,Xc=bt()+500,va(e,t)):ha=Ba(e,t);e:do try{if(ze!==0&&Se!==null){t=Se;var s=At;t:switch(ze){case 1:ze=0,At=null,ga(e,t,s,1);break;case 2:case 9:if(Rd(s)){ze=0,At=null,bm(t);break}t=function(){ze!==2&&ze!==9||Le!==e||(ze=7),ln(e)},s.then(t,t);break e;case 3:ze=7;break e;case 4:ze=5;break e;case 7:Rd(s)?(ze=0,At=null,bm(t)):(ze=0,At=null,ga(e,t,s,7));break;case 5:var m=null;switch(Se.tag){case 26:m=Se.memoizedState;case 5:case 27:var x=Se;if(m?ip(m):x.stateNode.complete){ze=0,At=null;var E=x.sibling;if(E!==null)Se=E;else{var H=x.return;H!==null?(Se=H,Qc(H)):Se=null}break t}}ze=0,At=null,ga(e,t,s,5);break;case 6:ze=0,At=null,ga(e,t,s,6);break;case 8:Hs(),Ve=6;break e;default:throw Error(o(462))}}G0();break}catch(X){pm(e,X)}while(!0);return yn=Nl=null,_.H=l,_.A=c,Re=n,Se!==null?0:(Le=null,Ee=0,dc(),Ve)}function G0(){for(;Se!==null&&!hy();)xm(Se)}function xm(e){var t=Xh(e.alternate,e,Tn);e.memoizedProps=e.pendingProps,t===null?Qc(e):Se=t}function bm(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Hh(n,t,t.pendingProps,t.type,void 0,Ee);break;case 11:t=Hh(n,t,t.pendingProps,t.type.render,t.ref,Ee);break;case 5:$o(t);default:Fh(n,t),t=Se=yd(t,Tn),t=Xh(n,t,Tn)}e.memoizedProps=e.pendingProps,t===null?Qc(e):Se=t}function ga(e,t,n,l){yn=Nl=null,$o(t),ca=null,ti=0;var c=t.return;try{if(_0(e,c,t,n,Ee)){Ve=1,Mc(e,kt(n,e.current)),Se=null;return}}catch(s){if(c!==null)throw Se=c,s;Ve=1,Mc(e,kt(n,e.current)),Se=null;return}t.flags&32768?(je||l===1?e=!0:ha||(Ee&536870912)!==0?e=!1:($n=e=!0,(l===2||l===9||l===3||l===6)&&(l=Nt.current,l!==null&&l.tag===13&&(l.flags|=16384))),Sm(t,e)):Qc(t)}function Qc(e){var t=e;do{if((t.flags&32768)!==0){Sm(t,$n);return}e=t.return;var n=L0(t.alternate,t,Tn);if(n!==null){Se=n;return}if(t=t.sibling,t!==null){Se=t;return}Se=t=e}while(t!==null);Ve===0&&(Ve=5)}function Sm(e,t){do{var n=U0(e.alternate,e);if(n!==null){n.flags&=32767,Se=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Se=e;return}Se=e=n}while(e!==null);Ve=6,Se=null}function wm(e,t,n,l,c,s,m,x,E){e.cancelPendingCommit=null;do Zc();while($e!==0);if((Re&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(s=t.lanes|t.childLanes,s|=jo,Ey(e,n,s,m,x,E),e===Le&&(Se=Le=null,Ee=0),pa=t,nl=e,Rn=n,Ms=s,Ls=c,fm=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Z0(Ji,function(){return Am(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=_.T,_.T=null,c=L.p,L.p=2,m=Re,Re|=4;try{H0(e,t,n)}finally{Re=m,L.p=c,_.T=l}}$e=1,Em(),Cm(),Nm()}}function Em(){if($e===1){$e=0;var e=nl,t=pa,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=_.T,_.T=null;var l=L.p;L.p=2;var c=Re;Re|=4;try{lm(t,e);var s=Js,m=sd(e.containerInfo),x=s.focusedElem,E=s.selectionRange;if(m!==x&&x&&x.ownerDocument&&od(x.ownerDocument.documentElement,x)){if(E!==null&&So(x)){var H=E.start,X=E.end;if(X===void 0&&(X=H),"selectionStart"in x)x.selectionStart=H,x.selectionEnd=Math.min(X,x.value.length);else{var K=x.ownerDocument||document,B=K&&K.defaultView||window;if(B.getSelection){var k=B.getSelection(),ce=x.textContent.length,me=Math.min(E.start,ce),Me=E.end===void 0?me:Math.min(E.end,ce);!k.extend&&me>Me&&(m=Me,Me=me,me=m);var O=rd(x,me),T=rd(x,Me);if(O&&T&&(k.rangeCount!==1||k.anchorNode!==O.node||k.anchorOffset!==O.offset||k.focusNode!==T.node||k.focusOffset!==T.offset)){var U=K.createRange();U.setStart(O.node,O.offset),k.removeAllRanges(),me>Me?(k.addRange(U),k.extend(T.node,T.offset)):(U.setEnd(T.node,T.offset),k.addRange(U))}}}}for(K=[],k=x;k=k.parentNode;)k.nodeType===1&&K.push({element:k,left:k.scrollLeft,top:k.scrollTop});for(typeof x.focus=="function"&&x.focus(),x=0;x<K.length;x++){var F=K[x];F.element.scrollLeft=F.left,F.element.scrollTop=F.top}}cr=!!Ps,Js=Ps=null}finally{Re=c,L.p=l,_.T=n}}e.current=t,$e=2}}function Cm(){if($e===2){$e=0;var e=nl,t=pa,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=_.T,_.T=null;var l=L.p;L.p=2;var c=Re;Re|=4;try{Ih(e,t.alternate,t)}finally{Re=c,L.p=l,_.T=n}}$e=3}}function Nm(){if($e===4||$e===3){$e=0,my();var e=nl,t=pa,n=Rn,l=fm;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?$e=5:($e=0,pa=nl=null,jm(e,e.pendingLanes));var c=e.pendingLanes;if(c===0&&(tl=null),to(n),t=t.stateNode,St&&typeof St.onCommitFiberRoot=="function")try{St.onCommitFiberRoot(Ha,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=_.T,c=L.p,L.p=2,_.T=null;try{for(var s=e.onRecoverableError,m=0;m<l.length;m++){var x=l[m];s(x.value,{componentStack:x.stack})}}finally{_.T=t,L.p=c}}(Rn&3)!==0&&Zc(),ln(e),c=e.pendingLanes,(n&261930)!==0&&(c&42)!==0?e===Us?yi++:(yi=0,Us=e):yi=0,xi(0)}}function jm(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,$a(t)))}function Zc(){return Em(),Cm(),Nm(),Am()}function Am(){if($e!==5)return!1;var e=nl,t=Ms;Ms=0;var n=to(Rn),l=_.T,c=L.p;try{L.p=32>n?32:n,_.T=null,n=Ls,Ls=null;var s=nl,m=Rn;if($e=0,pa=nl=null,Rn=0,(Re&6)!==0)throw Error(o(331));var x=Re;if(Re|=4,om(s.current),im(s,s.current,m,n),Re=x,xi(0,!1),St&&typeof St.onPostCommitFiberRoot=="function")try{St.onPostCommitFiberRoot(Ha,s)}catch{}return!0}finally{L.p=c,_.T=l,jm(e,t)}}function Tm(e,t,n){t=kt(n,t),t=ms(e.stateNode,t,2),e=Pn(e,t,2),e!==null&&(ka(e,2),ln(e))}function Oe(e,t,n){if(e.tag===3)Tm(e,e,n);else for(;t!==null;){if(t.tag===3){Tm(t,e,n);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(tl===null||!tl.has(l))){e=kt(n,e),n=Rh(2),l=Pn(t,n,2),l!==null&&(zh(n,l,t,e),ka(l,2),ln(l));break}}t=t.return}}function ks(e,t,n){var l=e.pingCache;if(l===null){l=e.pingCache=new Y0;var c=new Set;l.set(t,c)}else c=l.get(t),c===void 0&&(c=new Set,l.set(t,c));c.has(n)||(Os=!0,c.add(n),e=F0.bind(null,e,t,n),t.then(e,e))}function F0(e,t,n){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Le===e&&(Ee&n)===n&&(Ve===4||Ve===3&&(Ee&62914560)===Ee&&300>bt()-Vc?(Re&2)===0&&va(e,0):_s|=n,ma===Ee&&(ma=0)),ln(e)}function Rm(e,t){t===0&&(t=Ef()),e=wl(e,t),e!==null&&(ka(e,t),ln(e))}function K0(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Rm(e,n)}function Q0(e,t){var n=0;switch(e.tag){case 31:case 13:var l=e.stateNode,c=e.memoizedState;c!==null&&(n=c.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(o(314))}l!==null&&l.delete(t),Rm(e,n)}function Z0(e,t){return Wr(e,t)}var Pc=null,ya=null,Ys=!1,Jc=!1,qs=!1,al=0;function ln(e){e!==ya&&e.next===null&&(ya===null?Pc=ya=e:ya=ya.next=e),Jc=!0,Ys||(Ys=!0,J0())}function xi(e,t){if(!qs&&Jc){qs=!0;do for(var n=!1,l=Pc;l!==null;){if(e!==0){var c=l.pendingLanes;if(c===0)var s=0;else{var m=l.suspendedLanes,x=l.pingedLanes;s=(1<<31-wt(42|e)+1)-1,s&=c&~(m&~x),s=s&201326741?s&201326741|1:s?s|2:0}s!==0&&(n=!0,Dm(l,s))}else s=Ee,s=ec(l,l===Le?s:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(s&3)===0||Ba(l,s)||(n=!0,Dm(l,s));l=l.next}while(n);qs=!1}}function P0(){zm()}function zm(){Jc=Ys=!1;var e=0;al!==0&&cx()&&(e=al);for(var t=bt(),n=null,l=Pc;l!==null;){var c=l.next,s=Om(l,t);s===0?(l.next=null,n===null?Pc=c:n.next=c,c===null&&(ya=n)):(n=l,(e!==0||(s&3)!==0)&&(Jc=!0)),l=c}$e!==0&&$e!==5||xi(e),al!==0&&(al=0)}function Om(e,t){for(var n=e.suspendedLanes,l=e.pingedLanes,c=e.expirationTimes,s=e.pendingLanes&-62914561;0<s;){var m=31-wt(s),x=1<<m,E=c[m];E===-1?((x&n)===0||(x&l)!==0)&&(c[m]=wy(x,t)):E<=t&&(e.expiredLanes|=x),s&=~x}if(t=Le,n=Ee,n=ec(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,n===0||e===t&&(ze===2||ze===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&Ir(l),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Ba(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(l!==null&&Ir(l),to(n)){case 2:case 8:n=Sf;break;case 32:n=Ji;break;case 268435456:n=wf;break;default:n=Ji}return l=_m.bind(null,e),n=Wr(n,l),e.callbackPriority=t,e.callbackNode=n,t}return l!==null&&l!==null&&Ir(l),e.callbackPriority=2,e.callbackNode=null,2}function _m(e,t){if($e!==0&&$e!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Zc()&&e.callbackNode!==n)return null;var l=Ee;return l=ec(e,e===Le?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(hm(e,l,t),Om(e,bt()),e.callbackNode!=null&&e.callbackNode===n?_m.bind(null,e):null)}function Dm(e,t){if(Zc())return null;hm(e,t,!0)}function J0(){ox(function(){(Re&6)!==0?Wr(bf,P0):zm()})}function Vs(){if(al===0){var e=la;e===0&&(e=Wi,Wi<<=1,(Wi&261888)===0&&(Wi=256)),al=e}return al}function Mm(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:ac(""+e)}function Lm(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function W0(e,t,n,l,c){if(t==="submit"&&n&&n.stateNode===c){var s=Mm((c[dt]||null).action),m=l.submitter;m&&(t=(t=m[dt]||null)?Mm(t.formAction):m.getAttribute("formAction"),t!==null&&(s=t,m=null));var x=new oc("action","action",null,l,c);e.push({event:x,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(al!==0){var E=m?Lm(c,m):new FormData(c);os(n,{pending:!0,data:E,method:c.method,action:s},null,E)}}else typeof s=="function"&&(x.preventDefault(),E=m?Lm(c,m):new FormData(c),os(n,{pending:!0,data:E,method:c.method,action:s},s,E))},currentTarget:c}]})}}for(var Xs=0;Xs<No.length;Xs++){var Gs=No[Xs],I0=Gs.toLowerCase(),$0=Gs[0].toUpperCase()+Gs.slice(1);Kt(I0,"on"+$0)}Kt(dd,"onAnimationEnd"),Kt(hd,"onAnimationIteration"),Kt(md,"onAnimationStart"),Kt("dblclick","onDoubleClick"),Kt("focusin","onFocus"),Kt("focusout","onBlur"),Kt(p0,"onTransitionRun"),Kt(v0,"onTransitionStart"),Kt(g0,"onTransitionCancel"),Kt(pd,"onTransitionEnd"),Xl("onMouseEnter",["mouseout","mouseover"]),Xl("onMouseLeave",["mouseout","mouseover"]),Xl("onPointerEnter",["pointerout","pointerover"]),Xl("onPointerLeave",["pointerout","pointerover"]),yl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),yl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),yl("onBeforeInput",["compositionend","keypress","textInput","paste"]),yl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),yl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),yl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var bi="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(" "),ex=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(bi));function Um(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var l=e[n],c=l.event;l=l.listeners;e:{var s=void 0;if(t)for(var m=l.length-1;0<=m;m--){var x=l[m],E=x.instance,H=x.currentTarget;if(x=x.listener,E!==s&&c.isPropagationStopped())break e;s=x,c.currentTarget=H;try{s(c)}catch(X){fc(X)}c.currentTarget=null,s=E}else for(m=0;m<l.length;m++){if(x=l[m],E=x.instance,H=x.currentTarget,x=x.listener,E!==s&&c.isPropagationStopped())break e;s=x,c.currentTarget=H;try{s(c)}catch(X){fc(X)}c.currentTarget=null,s=E}}}}function we(e,t){var n=t[no];n===void 0&&(n=t[no]=new Set);var l=e+"__bubble";n.has(l)||(Hm(t,e,2,!1),n.add(l))}function Fs(e,t,n){var l=0;t&&(l|=4),Hm(n,e,l,t)}var Wc="_reactListening"+Math.random().toString(36).slice(2);function Ks(e){if(!e[Wc]){e[Wc]=!0,zf.forEach(function(n){n!=="selectionchange"&&(ex.has(n)||Fs(n,!1,e),Fs(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Wc]||(t[Wc]=!0,Fs("selectionchange",!1,t))}}function Hm(e,t,n,l){switch(dp(t)){case 2:var c=Tx;break;case 8:c=Rx;break;default:c=ru}n=c.bind(null,t,n,e),c=void 0,!fo||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(c=!0),l?c!==void 0?e.addEventListener(t,n,{capture:!0,passive:c}):e.addEventListener(t,n,!0):c!==void 0?e.addEventListener(t,n,{passive:c}):e.addEventListener(t,n,!1)}function Qs(e,t,n,l,c){var s=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var m=l.tag;if(m===3||m===4){var x=l.stateNode.containerInfo;if(x===c)break;if(m===4)for(m=l.return;m!==null;){var E=m.tag;if((E===3||E===4)&&m.stateNode.containerInfo===c)return;m=m.return}for(;x!==null;){if(m=Yl(x),m===null)return;if(E=m.tag,E===5||E===6||E===26||E===27){l=s=m;continue e}x=x.parentNode}}l=l.return}Vf(function(){var H=s,X=so(n),K=[];e:{var B=vd.get(e);if(B!==void 0){var k=oc,ce=e;switch(e){case"keypress":if(cc(n)===0)break e;case"keydown":case"keyup":k=Qy;break;case"focusin":ce="focus",k=vo;break;case"focusout":ce="blur",k=vo;break;case"beforeblur":case"afterblur":k=vo;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":k=Ff;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":k=Ly;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":k=Jy;break;case dd:case hd:case md:k=By;break;case pd:k=Iy;break;case"scroll":case"scrollend":k=Dy;break;case"wheel":k=e0;break;case"copy":case"cut":case"paste":k=Yy;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":k=Qf;break;case"toggle":case"beforetoggle":k=n0}var me=(t&4)!==0,Me=!me&&(e==="scroll"||e==="scrollend"),O=me?B!==null?B+"Capture":null:B;me=[];for(var T=H,U;T!==null;){var F=T;if(U=F.stateNode,F=F.tag,F!==5&&F!==26&&F!==27||U===null||O===null||(F=Va(T,O),F!=null&&me.push(Si(T,F,U))),Me)break;T=T.return}0<me.length&&(B=new k(B,ce,null,n,X),K.push({event:B,listeners:me}))}}if((t&7)===0){e:{if(B=e==="mouseover"||e==="pointerover",k=e==="mouseout"||e==="pointerout",B&&n!==oo&&(ce=n.relatedTarget||n.fromElement)&&(Yl(ce)||ce[kl]))break e;if((k||B)&&(B=X.window===X?X:(B=X.ownerDocument)?B.defaultView||B.parentWindow:window,k?(ce=n.relatedTarget||n.toElement,k=H,ce=ce?Yl(ce):null,ce!==null&&(Me=d(ce),me=ce.tag,ce!==Me||me!==5&&me!==27&&me!==6)&&(ce=null)):(k=null,ce=H),k!==ce)){if(me=Ff,F="onMouseLeave",O="onMouseEnter",T="mouse",(e==="pointerout"||e==="pointerover")&&(me=Qf,F="onPointerLeave",O="onPointerEnter",T="pointer"),Me=k==null?B:qa(k),U=ce==null?B:qa(ce),B=new me(F,T+"leave",k,n,X),B.target=Me,B.relatedTarget=U,F=null,Yl(X)===H&&(me=new me(O,T+"enter",ce,n,X),me.target=U,me.relatedTarget=Me,F=me),Me=F,k&&ce)t:{for(me=tx,O=k,T=ce,U=0,F=O;F;F=me(F))U++;F=0;for(var de=T;de;de=me(de))F++;for(;0<U-F;)O=me(O),U--;for(;0<F-U;)T=me(T),F--;for(;U--;){if(O===T||T!==null&&O===T.alternate){me=O;break t}O=me(O),T=me(T)}me=null}else me=null;k!==null&&Bm(K,B,k,me,!1),ce!==null&&Me!==null&&Bm(K,Me,ce,me,!0)}}e:{if(B=H?qa(H):window,k=B.nodeName&&B.nodeName.toLowerCase(),k==="select"||k==="input"&&B.type==="file")var Ae=td;else if($f(B))if(nd)Ae=d0;else{Ae=u0;var oe=s0}else k=B.nodeName,!k||k.toLowerCase()!=="input"||B.type!=="checkbox"&&B.type!=="radio"?H&&ro(H.elementType)&&(Ae=td):Ae=f0;if(Ae&&(Ae=Ae(e,H))){ed(K,Ae,n,X);break e}oe&&oe(e,B,H),e==="focusout"&&H&&B.type==="number"&&H.memoizedProps.value!=null&&co(B,"number",B.value)}switch(oe=H?qa(H):window,e){case"focusin":($f(oe)||oe.contentEditable==="true")&&(Pl=oe,wo=H,Ja=null);break;case"focusout":Ja=wo=Pl=null;break;case"mousedown":Eo=!0;break;case"contextmenu":case"mouseup":case"dragend":Eo=!1,ud(K,n,X);break;case"selectionchange":if(m0)break;case"keydown":case"keyup":ud(K,n,X)}var be;if(yo)e:{switch(e){case"compositionstart":var Ce="onCompositionStart";break e;case"compositionend":Ce="onCompositionEnd";break e;case"compositionupdate":Ce="onCompositionUpdate";break e}Ce=void 0}else Zl?Wf(e,n)&&(Ce="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(Ce="onCompositionStart");Ce&&(Zf&&n.locale!=="ko"&&(Zl||Ce!=="onCompositionStart"?Ce==="onCompositionEnd"&&Zl&&(be=Xf()):(Vn=X,ho="value"in Vn?Vn.value:Vn.textContent,Zl=!0)),oe=Ic(H,Ce),0<oe.length&&(Ce=new Kf(Ce,e,null,n,X),K.push({event:Ce,listeners:oe}),be?Ce.data=be:(be=If(n),be!==null&&(Ce.data=be)))),(be=a0?i0(e,n):c0(e,n))&&(Ce=Ic(H,"onBeforeInput"),0<Ce.length&&(oe=new Kf("onBeforeInput","beforeinput",null,n,X),K.push({event:oe,listeners:Ce}),oe.data=be)),W0(K,e,H,n,X)}Um(K,t)})}function Si(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ic(e,t){for(var n=t+"Capture",l=[];e!==null;){var c=e,s=c.stateNode;if(c=c.tag,c!==5&&c!==26&&c!==27||s===null||(c=Va(e,n),c!=null&&l.unshift(Si(e,c,s)),c=Va(e,t),c!=null&&l.push(Si(e,c,s))),e.tag===3)return l;e=e.return}return[]}function tx(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Bm(e,t,n,l,c){for(var s=t._reactName,m=[];n!==null&&n!==l;){var x=n,E=x.alternate,H=x.stateNode;if(x=x.tag,E!==null&&E===l)break;x!==5&&x!==26&&x!==27||H===null||(E=H,c?(H=Va(n,s),H!=null&&m.unshift(Si(n,H,E))):c||(H=Va(n,s),H!=null&&m.push(Si(n,H,E)))),n=n.return}m.length!==0&&e.push({event:t,listeners:m})}var nx=/\r\n?/g,lx=/\u0000|\uFFFD/g;function km(e){return(typeof e=="string"?e:""+e).replace(nx,`
9
+ `).replace(lx,"")}function Ym(e,t){return t=km(t),km(e)===t}function De(e,t,n,l,c,s){switch(n){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||Fl(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&Fl(e,""+l);break;case"className":nc(e,"class",l);break;case"tabIndex":nc(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":nc(e,n,l);break;case"style":Yf(e,l,s);break;case"data":if(t!=="object"){nc(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=ac(""+l),e.setAttribute(n,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof s=="function"&&(n==="formAction"?(t!=="input"&&De(e,t,"name",c.name,c,null),De(e,t,"formEncType",c.formEncType,c,null),De(e,t,"formMethod",c.formMethod,c,null),De(e,t,"formTarget",c.formTarget,c,null)):(De(e,t,"encType",c.encType,c,null),De(e,t,"method",c.method,c,null),De(e,t,"target",c.target,c,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=ac(""+l),e.setAttribute(n,l);break;case"onClick":l!=null&&(e.onclick=mn);break;case"onScroll":l!=null&&we("scroll",e);break;case"onScrollEnd":l!=null&&we("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(o(61));if(n=l.__html,n!=null){if(c.children!=null)throw Error(o(60));e.innerHTML=n}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}n=ac(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,""+l):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":l===!0?e.setAttribute(n,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,l):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(n,l):e.removeAttribute(n);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(n):e.setAttribute(n,l);break;case"popover":we("beforetoggle",e),we("toggle",e),tc(e,"popover",l);break;case"xlinkActuate":hn(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":hn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":hn(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":hn(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":hn(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":hn(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":hn(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":hn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":hn(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":tc(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=Oy.get(n)||n,tc(e,n,l))}}function Zs(e,t,n,l,c,s){switch(n){case"style":Yf(e,l,s);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(o(61));if(n=l.__html,n!=null){if(c.children!=null)throw Error(o(60));e.innerHTML=n}}break;case"children":typeof l=="string"?Fl(e,l):(typeof l=="number"||typeof l=="bigint")&&Fl(e,""+l);break;case"onScroll":l!=null&&we("scroll",e);break;case"onScrollEnd":l!=null&&we("scrollend",e);break;case"onClick":l!=null&&(e.onclick=mn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Of.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(c=n.endsWith("Capture"),t=n.slice(2,c?n.length-7:void 0),s=e[dt]||null,s=s!=null?s[n]:null,typeof s=="function"&&e.removeEventListener(t,s,c),typeof l=="function")){typeof s!="function"&&s!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,l,c);break e}n in e?e[n]=l:l===!0?e.setAttribute(n,""):tc(e,n,l)}}}function ot(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":we("error",e),we("load",e);var l=!1,c=!1,s;for(s in n)if(n.hasOwnProperty(s)){var m=n[s];if(m!=null)switch(s){case"src":l=!0;break;case"srcSet":c=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:De(e,t,s,m,n,null)}}c&&De(e,t,"srcSet",n.srcSet,n,null),l&&De(e,t,"src",n.src,n,null);return;case"input":we("invalid",e);var x=s=m=c=null,E=null,H=null;for(l in n)if(n.hasOwnProperty(l)){var X=n[l];if(X!=null)switch(l){case"name":c=X;break;case"type":m=X;break;case"checked":E=X;break;case"defaultChecked":H=X;break;case"value":s=X;break;case"defaultValue":x=X;break;case"children":case"dangerouslySetInnerHTML":if(X!=null)throw Error(o(137,t));break;default:De(e,t,l,X,n,null)}}Uf(e,s,x,E,H,m,c,!1);return;case"select":we("invalid",e),l=m=s=null;for(c in n)if(n.hasOwnProperty(c)&&(x=n[c],x!=null))switch(c){case"value":s=x;break;case"defaultValue":m=x;break;case"multiple":l=x;default:De(e,t,c,x,n,null)}t=s,n=m,e.multiple=!!l,t!=null?Gl(e,!!l,t,!1):n!=null&&Gl(e,!!l,n,!0);return;case"textarea":we("invalid",e),s=c=l=null;for(m in n)if(n.hasOwnProperty(m)&&(x=n[m],x!=null))switch(m){case"value":l=x;break;case"defaultValue":c=x;break;case"children":s=x;break;case"dangerouslySetInnerHTML":if(x!=null)throw Error(o(91));break;default:De(e,t,m,x,n,null)}Bf(e,l,c,s);return;case"option":for(E in n)n.hasOwnProperty(E)&&(l=n[E],l!=null)&&(E==="selected"?e.selected=l&&typeof l!="function"&&typeof l!="symbol":De(e,t,E,l,n,null));return;case"dialog":we("beforetoggle",e),we("toggle",e),we("cancel",e),we("close",e);break;case"iframe":case"object":we("load",e);break;case"video":case"audio":for(l=0;l<bi.length;l++)we(bi[l],e);break;case"image":we("error",e),we("load",e);break;case"details":we("toggle",e);break;case"embed":case"source":case"link":we("error",e),we("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(H in n)if(n.hasOwnProperty(H)&&(l=n[H],l!=null))switch(H){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:De(e,t,H,l,n,null)}return;default:if(ro(t)){for(X in n)n.hasOwnProperty(X)&&(l=n[X],l!==void 0&&Zs(e,t,X,l,n,void 0));return}}for(x in n)n.hasOwnProperty(x)&&(l=n[x],l!=null&&De(e,t,x,l,n,null))}function ax(e,t,n,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var c=null,s=null,m=null,x=null,E=null,H=null,X=null;for(k in n){var K=n[k];if(n.hasOwnProperty(k)&&K!=null)switch(k){case"checked":break;case"value":break;case"defaultValue":E=K;default:l.hasOwnProperty(k)||De(e,t,k,null,l,K)}}for(var B in l){var k=l[B];if(K=n[B],l.hasOwnProperty(B)&&(k!=null||K!=null))switch(B){case"type":s=k;break;case"name":c=k;break;case"checked":H=k;break;case"defaultChecked":X=k;break;case"value":m=k;break;case"defaultValue":x=k;break;case"children":case"dangerouslySetInnerHTML":if(k!=null)throw Error(o(137,t));break;default:k!==K&&De(e,t,B,k,l,K)}}io(e,m,x,E,H,X,s,c);return;case"select":k=m=x=B=null;for(s in n)if(E=n[s],n.hasOwnProperty(s)&&E!=null)switch(s){case"value":break;case"multiple":k=E;default:l.hasOwnProperty(s)||De(e,t,s,null,l,E)}for(c in l)if(s=l[c],E=n[c],l.hasOwnProperty(c)&&(s!=null||E!=null))switch(c){case"value":B=s;break;case"defaultValue":x=s;break;case"multiple":m=s;default:s!==E&&De(e,t,c,s,l,E)}t=x,n=m,l=k,B!=null?Gl(e,!!n,B,!1):!!l!=!!n&&(t!=null?Gl(e,!!n,t,!0):Gl(e,!!n,n?[]:"",!1));return;case"textarea":k=B=null;for(x in n)if(c=n[x],n.hasOwnProperty(x)&&c!=null&&!l.hasOwnProperty(x))switch(x){case"value":break;case"children":break;default:De(e,t,x,null,l,c)}for(m in l)if(c=l[m],s=n[m],l.hasOwnProperty(m)&&(c!=null||s!=null))switch(m){case"value":B=c;break;case"defaultValue":k=c;break;case"children":break;case"dangerouslySetInnerHTML":if(c!=null)throw Error(o(91));break;default:c!==s&&De(e,t,m,c,l,s)}Hf(e,B,k);return;case"option":for(var ce in n)B=n[ce],n.hasOwnProperty(ce)&&B!=null&&!l.hasOwnProperty(ce)&&(ce==="selected"?e.selected=!1:De(e,t,ce,null,l,B));for(E in l)B=l[E],k=n[E],l.hasOwnProperty(E)&&B!==k&&(B!=null||k!=null)&&(E==="selected"?e.selected=B&&typeof B!="function"&&typeof B!="symbol":De(e,t,E,B,l,k));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 me in n)B=n[me],n.hasOwnProperty(me)&&B!=null&&!l.hasOwnProperty(me)&&De(e,t,me,null,l,B);for(H in l)if(B=l[H],k=n[H],l.hasOwnProperty(H)&&B!==k&&(B!=null||k!=null))switch(H){case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(o(137,t));break;default:De(e,t,H,B,l,k)}return;default:if(ro(t)){for(var Me in n)B=n[Me],n.hasOwnProperty(Me)&&B!==void 0&&!l.hasOwnProperty(Me)&&Zs(e,t,Me,void 0,l,B);for(X in l)B=l[X],k=n[X],!l.hasOwnProperty(X)||B===k||B===void 0&&k===void 0||Zs(e,t,X,B,l,k);return}}for(var O in n)B=n[O],n.hasOwnProperty(O)&&B!=null&&!l.hasOwnProperty(O)&&De(e,t,O,null,l,B);for(K in l)B=l[K],k=n[K],!l.hasOwnProperty(K)||B===k||B==null&&k==null||De(e,t,K,B,l,k)}function qm(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function ix(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),l=0;l<n.length;l++){var c=n[l],s=c.transferSize,m=c.initiatorType,x=c.duration;if(s&&x&&qm(m)){for(m=0,x=c.responseEnd,l+=1;l<n.length;l++){var E=n[l],H=E.startTime;if(H>x)break;var X=E.transferSize,K=E.initiatorType;X&&qm(K)&&(E=E.responseEnd,m+=X*(E<x?1:(x-H)/(E-H)))}if(--l,t+=8*(s+m)/(c.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Ps=null,Js=null;function $c(e){return e.nodeType===9?e:e.ownerDocument}function Vm(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Xm(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Ws(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Is=null;function cx(){var e=window.event;return e&&e.type==="popstate"?e===Is?!1:(Is=e,!0):(Is=null,!1)}var Gm=typeof setTimeout=="function"?setTimeout:void 0,rx=typeof clearTimeout=="function"?clearTimeout:void 0,Fm=typeof Promise=="function"?Promise:void 0,ox=typeof queueMicrotask=="function"?queueMicrotask:typeof Fm<"u"?function(e){return Fm.resolve(null).then(e).catch(sx)}:Gm;function sx(e){setTimeout(function(){throw e})}function il(e){return e==="head"}function Km(e,t){var n=t,l=0;do{var c=n.nextSibling;if(e.removeChild(n),c&&c.nodeType===8)if(n=c.data,n==="/$"||n==="/&"){if(l===0){e.removeChild(c),wa(t);return}l--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")l++;else if(n==="html")wi(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,wi(n);for(var s=n.firstChild;s;){var m=s.nextSibling,x=s.nodeName;s[Ya]||x==="SCRIPT"||x==="STYLE"||x==="LINK"&&s.rel.toLowerCase()==="stylesheet"||n.removeChild(s),s=m}}else n==="body"&&wi(e.ownerDocument.body);n=c}while(n);wa(t)}function Qm(e,t){var n=e;e=0;do{var l=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=l}while(n)}function $s(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":$s(n),lo(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function ux(e,t,n,l){for(;e.nodeType===1;){var c=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[Ya])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(s=e.getAttribute("rel"),s==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(s!==c.rel||e.getAttribute("href")!==(c.href==null||c.href===""?null:c.href)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin)||e.getAttribute("title")!==(c.title==null?null:c.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(s=e.getAttribute("src"),(s!==(c.src==null?null:c.src)||e.getAttribute("type")!==(c.type==null?null:c.type)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin))&&s&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var s=c.name==null?null:""+c.name;if(c.type==="hidden"&&e.getAttribute("name")===s)return e}else return e;if(e=Gt(e.nextSibling),e===null)break}return null}function fx(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Gt(e.nextSibling),e===null))return null;return e}function Zm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Gt(e.nextSibling),e===null))return null;return e}function eu(e){return e.data==="$?"||e.data==="$~"}function tu(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function dx(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var l=function(){t(),n.removeEventListener("DOMContentLoaded",l)};n.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function Gt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var nu=null;function Pm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return Gt(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function Jm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function Wm(e,t,n){switch(t=$c(n),e){case"html":if(e=t.documentElement,!e)throw Error(o(452));return e;case"head":if(e=t.head,!e)throw Error(o(453));return e;case"body":if(e=t.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function wi(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);lo(e)}var Ft=new Map,Im=new Set;function er(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var zn=L.d;L.d={f:hx,r:mx,D:px,C:vx,L:gx,m:yx,X:bx,S:xx,M:Sx};function hx(){var e=zn.f(),t=Fc();return e||t}function mx(e){var t=ql(e);t!==null&&t.tag===5&&t.type==="form"?ph(t):zn.r(e)}var xa=typeof document>"u"?null:document;function $m(e,t,n){var l=xa;if(l&&typeof t=="string"&&t){var c=Ht(t);c='link[rel="'+e+'"][href="'+c+'"]',typeof n=="string"&&(c+='[crossorigin="'+n+'"]'),Im.has(c)||(Im.add(c),e={rel:e,crossOrigin:n,href:t},l.querySelector(c)===null&&(t=l.createElement("link"),ot(t,"link",e),nt(t),l.head.appendChild(t)))}}function px(e){zn.D(e),$m("dns-prefetch",e,null)}function vx(e,t){zn.C(e,t),$m("preconnect",e,t)}function gx(e,t,n){zn.L(e,t,n);var l=xa;if(l&&e&&t){var c='link[rel="preload"][as="'+Ht(t)+'"]';t==="image"&&n&&n.imageSrcSet?(c+='[imagesrcset="'+Ht(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(c+='[imagesizes="'+Ht(n.imageSizes)+'"]')):c+='[href="'+Ht(e)+'"]';var s=c;switch(t){case"style":s=ba(e);break;case"script":s=Sa(e)}Ft.has(s)||(e=b({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Ft.set(s,e),l.querySelector(c)!==null||t==="style"&&l.querySelector(Ei(s))||t==="script"&&l.querySelector(Ci(s))||(t=l.createElement("link"),ot(t,"link",e),nt(t),l.head.appendChild(t)))}}function yx(e,t){zn.m(e,t);var n=xa;if(n&&e){var l=t&&typeof t.as=="string"?t.as:"script",c='link[rel="modulepreload"][as="'+Ht(l)+'"][href="'+Ht(e)+'"]',s=c;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":s=Sa(e)}if(!Ft.has(s)&&(e=b({rel:"modulepreload",href:e},t),Ft.set(s,e),n.querySelector(c)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Ci(s)))return}l=n.createElement("link"),ot(l,"link",e),nt(l),n.head.appendChild(l)}}}function xx(e,t,n){zn.S(e,t,n);var l=xa;if(l&&e){var c=Vl(l).hoistableStyles,s=ba(e);t=t||"default";var m=c.get(s);if(!m){var x={loading:0,preload:null};if(m=l.querySelector(Ei(s)))x.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Ft.get(s))&&lu(e,n);var E=m=l.createElement("link");nt(E),ot(E,"link",e),E._p=new Promise(function(H,X){E.onload=H,E.onerror=X}),E.addEventListener("load",function(){x.loading|=1}),E.addEventListener("error",function(){x.loading|=2}),x.loading|=4,tr(m,t,l)}m={type:"stylesheet",instance:m,count:1,state:x},c.set(s,m)}}}function bx(e,t){zn.X(e,t);var n=xa;if(n&&e){var l=Vl(n).hoistableScripts,c=Sa(e),s=l.get(c);s||(s=n.querySelector(Ci(c)),s||(e=b({src:e,async:!0},t),(t=Ft.get(c))&&au(e,t),s=n.createElement("script"),nt(s),ot(s,"link",e),n.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},l.set(c,s))}}function Sx(e,t){zn.M(e,t);var n=xa;if(n&&e){var l=Vl(n).hoistableScripts,c=Sa(e),s=l.get(c);s||(s=n.querySelector(Ci(c)),s||(e=b({src:e,async:!0,type:"module"},t),(t=Ft.get(c))&&au(e,t),s=n.createElement("script"),nt(s),ot(s,"link",e),n.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},l.set(c,s))}}function ep(e,t,n,l){var c=(c=he.current)?er(c):null;if(!c)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=ba(n.href),n=Vl(c).hoistableStyles,l=n.get(t),l||(l={type:"style",instance:null,count:0,state:null},n.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=ba(n.href);var s=Vl(c).hoistableStyles,m=s.get(e);if(m||(c=c.ownerDocument||c,m={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},s.set(e,m),(s=c.querySelector(Ei(e)))&&!s._p&&(m.instance=s,m.state.loading=5),Ft.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Ft.set(e,n),s||wx(c,e,n,m.state))),t&&l===null)throw Error(o(528,""));return m}if(t&&l!==null)throw Error(o(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Sa(n),n=Vl(c).hoistableScripts,l=n.get(t),l||(l={type:"script",instance:null,count:0,state:null},n.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function ba(e){return'href="'+Ht(e)+'"'}function Ei(e){return'link[rel="stylesheet"]['+e+"]"}function tp(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function wx(e,t,n,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),ot(t,"link",n),nt(t),e.head.appendChild(t))}function Sa(e){return'[src="'+Ht(e)+'"]'}function Ci(e){return"script[async]"+e}function np(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+Ht(n.href)+'"]');if(l)return t.instance=l,nt(l),l;var c=b({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),nt(l),ot(l,"style",c),tr(l,n.precedence,e),t.instance=l;case"stylesheet":c=ba(n.href);var s=e.querySelector(Ei(c));if(s)return t.state.loading|=4,t.instance=s,nt(s),s;l=tp(n),(c=Ft.get(c))&&lu(l,c),s=(e.ownerDocument||e).createElement("link"),nt(s);var m=s;return m._p=new Promise(function(x,E){m.onload=x,m.onerror=E}),ot(s,"link",l),t.state.loading|=4,tr(s,n.precedence,e),t.instance=s;case"script":return s=Sa(n.src),(c=e.querySelector(Ci(s)))?(t.instance=c,nt(c),c):(l=n,(c=Ft.get(s))&&(l=b({},n),au(l,c)),e=e.ownerDocument||e,c=e.createElement("script"),nt(c),ot(c,"link",l),e.head.appendChild(c),t.instance=c);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,tr(l,n.precedence,e));return t.instance}function tr(e,t,n){for(var l=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),c=l.length?l[l.length-1]:null,s=c,m=0;m<l.length;m++){var x=l[m];if(x.dataset.precedence===t)s=x;else if(s!==c)break}s?s.parentNode.insertBefore(e,s.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function lu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function au(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var nr=null;function lp(e,t,n){if(nr===null){var l=new Map,c=nr=new Map;c.set(n,l)}else c=nr,l=c.get(n),l||(l=new Map,c.set(n,l));if(l.has(e))return l;for(l.set(e,null),n=n.getElementsByTagName(e),c=0;c<n.length;c++){var s=n[c];if(!(s[Ya]||s[at]||e==="link"&&s.getAttribute("rel")==="stylesheet")&&s.namespaceURI!=="http://www.w3.org/2000/svg"){var m=s.getAttribute(t)||"";m=e+m;var x=l.get(m);x?x.push(s):l.set(m,[s])}}return l}function ap(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function Ex(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!0;case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function ip(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Cx(e,t,n,l){if(n.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var c=ba(l.href),s=t.querySelector(Ei(c));if(s){t=s._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=lr.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=s,nt(s);return}s=t.ownerDocument||t,l=tp(l),(c=Ft.get(c))&&lu(l,c),s=s.createElement("link"),nt(s);var m=s;m._p=new Promise(function(x,E){m.onload=x,m.onerror=E}),ot(s,"link",l),n.instance=s}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=lr.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var iu=0;function Nx(e,t){return e.stylesheets&&e.count===0&&ir(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var l=setTimeout(function(){if(e.stylesheets&&ir(e,e.stylesheets),e.unsuspend){var s=e.unsuspend;e.unsuspend=null,s()}},6e4+t);0<e.imgBytes&&iu===0&&(iu=62500*ix());var c=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ir(e,e.stylesheets),e.unsuspend)){var s=e.unsuspend;e.unsuspend=null,s()}},(e.imgBytes>iu?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(c)}}:null}function lr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ir(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ar=null;function ir(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ar=new Map,t.forEach(jx,e),ar=null,lr.call(e))}function jx(e,t){if(!(t.state.loading&4)){var n=ar.get(e);if(n)var l=n.get(null);else{n=new Map,ar.set(e,n);for(var c=e.querySelectorAll("link[data-precedence],style[data-precedence]"),s=0;s<c.length;s++){var m=c[s];(m.nodeName==="LINK"||m.getAttribute("media")!=="not all")&&(n.set(m.dataset.precedence,m),l=m)}l&&n.set(null,l)}c=t.instance,m=c.getAttribute("data-precedence"),s=n.get(m)||l,s===l&&n.set(null,c),n.set(m,c),this.count++,l=lr.bind(this),c.addEventListener("load",l),c.addEventListener("error",l),s?s.parentNode.insertBefore(c,s.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(c,e.firstChild)),t.state.loading|=4}}var Ni={$$typeof:M,Provider:null,Consumer:null,_currentValue:V,_currentValue2:V,_threadCount:0};function Ax(e,t,n,l,c,s,m,x,E){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=$r(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=$r(0),this.hiddenUpdates=$r(null),this.identifierPrefix=l,this.onUncaughtError=c,this.onCaughtError=s,this.onRecoverableError=m,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=E,this.incompleteTransitions=new Map}function cp(e,t,n,l,c,s,m,x,E,H,X,K){return e=new Ax(e,t,n,m,E,H,X,K,x),t=1,s===!0&&(t|=24),s=Ct(3,null,null,t),e.current=s,s.stateNode=e,t=Bo(),t.refCount++,e.pooledCache=t,t.refCount++,s.memoizedState={element:l,isDehydrated:n,cache:t},Vo(s),e}function rp(e){return e?(e=Il,e):Il}function op(e,t,n,l,c,s){c=rp(c),l.context===null?l.context=c:l.pendingContext=c,l=Zn(t),l.payload={element:n},s=s===void 0?null:s,s!==null&&(l.callback=s),n=Pn(e,l,t),n!==null&&(yt(n,e,t),li(n,e,t))}function sp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function cu(e,t){sp(e,t),(e=e.alternate)&&sp(e,t)}function up(e){if(e.tag===13||e.tag===31){var t=wl(e,67108864);t!==null&&yt(t,e,67108864),cu(e,67108864)}}function fp(e){if(e.tag===13||e.tag===31){var t=Rt();t=eo(t);var n=wl(e,t);n!==null&&yt(n,e,t),cu(e,t)}}var cr=!0;function Tx(e,t,n,l){var c=_.T;_.T=null;var s=L.p;try{L.p=2,ru(e,t,n,l)}finally{L.p=s,_.T=c}}function Rx(e,t,n,l){var c=_.T;_.T=null;var s=L.p;try{L.p=8,ru(e,t,n,l)}finally{L.p=s,_.T=c}}function ru(e,t,n,l){if(cr){var c=ou(l);if(c===null)Qs(e,t,l,rr,n),hp(e,l);else if(Ox(c,e,t,n,l))l.stopPropagation();else if(hp(e,l),t&4&&-1<zx.indexOf(e)){for(;c!==null;){var s=ql(c);if(s!==null)switch(s.tag){case 3:if(s=s.stateNode,s.current.memoizedState.isDehydrated){var m=gl(s.pendingLanes);if(m!==0){var x=s;for(x.pendingLanes|=2,x.entangledLanes|=2;m;){var E=1<<31-wt(m);x.entanglements[1]|=E,m&=~E}ln(s),(Re&6)===0&&(Xc=bt()+500,xi(0))}}break;case 31:case 13:x=wl(s,2),x!==null&&yt(x,s,2),Fc(),cu(s,2)}if(s=ou(l),s===null&&Qs(e,t,l,rr,n),s===c)break;c=s}c!==null&&l.stopPropagation()}else Qs(e,t,l,null,n)}}function ou(e){return e=so(e),su(e)}var rr=null;function su(e){if(rr=null,e=Yl(e),e!==null){var t=d(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=h(t),e!==null)return e;e=null}else if(n===31){if(e=p(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return rr=e,null}function dp(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(py()){case bf:return 2;case Sf:return 8;case Ji:case vy:return 32;case wf:return 268435456;default:return 32}default:return 32}}var uu=!1,cl=null,rl=null,ol=null,ji=new Map,Ai=new Map,sl=[],zx="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 hp(e,t){switch(e){case"focusin":case"focusout":cl=null;break;case"dragenter":case"dragleave":rl=null;break;case"mouseover":case"mouseout":ol=null;break;case"pointerover":case"pointerout":ji.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ai.delete(t.pointerId)}}function Ti(e,t,n,l,c,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:l,nativeEvent:s,targetContainers:[c]},t!==null&&(t=ql(t),t!==null&&up(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,c!==null&&t.indexOf(c)===-1&&t.push(c),e)}function Ox(e,t,n,l,c){switch(t){case"focusin":return cl=Ti(cl,e,t,n,l,c),!0;case"dragenter":return rl=Ti(rl,e,t,n,l,c),!0;case"mouseover":return ol=Ti(ol,e,t,n,l,c),!0;case"pointerover":var s=c.pointerId;return ji.set(s,Ti(ji.get(s)||null,e,t,n,l,c)),!0;case"gotpointercapture":return s=c.pointerId,Ai.set(s,Ti(Ai.get(s)||null,e,t,n,l,c)),!0}return!1}function mp(e){var t=Yl(e.target);if(t!==null){var n=d(t);if(n!==null){if(t=n.tag,t===13){if(t=h(n),t!==null){e.blockedOn=t,Tf(e.priority,function(){fp(n)});return}}else if(t===31){if(t=p(n),t!==null){e.blockedOn=t,Tf(e.priority,function(){fp(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function or(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=ou(e.nativeEvent);if(n===null){n=e.nativeEvent;var l=new n.constructor(n.type,n);oo=l,n.target.dispatchEvent(l),oo=null}else return t=ql(n),t!==null&&up(t),e.blockedOn=n,!1;t.shift()}return!0}function pp(e,t,n){or(e)&&n.delete(t)}function _x(){uu=!1,cl!==null&&or(cl)&&(cl=null),rl!==null&&or(rl)&&(rl=null),ol!==null&&or(ol)&&(ol=null),ji.forEach(pp),Ai.forEach(pp)}function sr(e,t){e.blockedOn===t&&(e.blockedOn=null,uu||(uu=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,_x)))}var ur=null;function vp(e){ur!==e&&(ur=e,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){ur===e&&(ur=null);for(var t=0;t<e.length;t+=3){var n=e[t],l=e[t+1],c=e[t+2];if(typeof l!="function"){if(su(l||n)===null)continue;break}var s=ql(n);s!==null&&(e.splice(t,3),t-=3,os(s,{pending:!0,data:c,method:n.method,action:l},l,c))}}))}function wa(e){function t(E){return sr(E,e)}cl!==null&&sr(cl,e),rl!==null&&sr(rl,e),ol!==null&&sr(ol,e),ji.forEach(t),Ai.forEach(t);for(var n=0;n<sl.length;n++){var l=sl[n];l.blockedOn===e&&(l.blockedOn=null)}for(;0<sl.length&&(n=sl[0],n.blockedOn===null);)mp(n),n.blockedOn===null&&sl.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(l=0;l<n.length;l+=3){var c=n[l],s=n[l+1],m=c[dt]||null;if(typeof s=="function")m||vp(n);else if(m){var x=null;if(s&&s.hasAttribute("formAction")){if(c=s,m=s[dt]||null)x=m.formAction;else if(su(c)!==null)continue}else x=m.action;typeof x=="function"?n[l+1]=x:(n.splice(l,3),l-=3),vp(n)}}}function gp(){function e(s){s.canIntercept&&s.info==="react-transition"&&s.intercept({handler:function(){return new Promise(function(m){return c=m})},focusReset:"manual",scroll:"manual"})}function t(){c!==null&&(c(),c=null),l||setTimeout(n,20)}function n(){if(!l&&!navigation.transition){var s=navigation.currentEntry;s&&s.url!=null&&navigation.navigate(s.url,{state:s.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,c=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),c!==null&&(c(),c=null)}}}function fu(e){this._internalRoot=e}fr.prototype.render=fu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var n=t.current,l=Rt();op(n,l,e,t,null,null)},fr.prototype.unmount=fu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;op(e.current,2,null,e,null,null),Fc(),t[kl]=null}};function fr(e){this._internalRoot=e}fr.prototype.unstable_scheduleHydration=function(e){if(e){var t=Af();e={blockedOn:null,target:e,priority:t};for(var n=0;n<sl.length&&t!==0&&t<sl[n].priority;n++);sl.splice(n,0,e),n===0&&mp(e)}};var yp=i.version;if(yp!=="19.2.3")throw Error(o(527,yp,"19.2.3"));L.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=y(t),e=e!==null?S(e):null,e=e===null?null:e.stateNode,e};var Dx={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:_,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var dr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!dr.isDisabled&&dr.supportsFiber)try{Ha=dr.inject(Dx),St=dr}catch{}}return zi.createRoot=function(e,t){if(!f(e))throw Error(o(299));var n=!1,l="",c=Nh,s=jh,m=Ah;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(c=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(m=t.onRecoverableError)),t=cp(e,1,!1,null,null,n,l,null,c,s,m,gp),e[kl]=t.current,Ks(e),new fu(t)},zi.hydrateRoot=function(e,t,n){if(!f(e))throw Error(o(299));var l=!1,c="",s=Nh,m=jh,x=Ah,E=null;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(c=n.identifierPrefix),n.onUncaughtError!==void 0&&(s=n.onUncaughtError),n.onCaughtError!==void 0&&(m=n.onCaughtError),n.onRecoverableError!==void 0&&(x=n.onRecoverableError),n.formState!==void 0&&(E=n.formState)),t=cp(e,1,!0,t,n??null,l,c,E,s,m,x,gp),t.context=rp(null),n=t.current,l=Rt(),l=eo(l),c=Zn(l),c.callback=null,Pn(n,c,l),n=l,t.current.lanes=n,ka(t,n),ln(t),e[kl]=t.current,Ks(e),new fr(t)},zi.version="19.2.3",zi}var Tp;function Xx(){if(Tp)return mu.exports;Tp=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),mu.exports=Vx(),mu.exports}var Gx=Xx();var Rp="popstate";function Fx(a={}){function i(o,f){let{pathname:d,search:h,hash:p}=o.location;return Mu("",{pathname:d,search:h,hash:p},f.state&&f.state.usr||null,f.state&&f.state.key||"default")}function r(o,f){return typeof f=="string"?f:Yi(f)}return Qx(i,r,null,a)}function ke(a,i){if(a===!1||a===null||typeof a>"u")throw new Error(i)}function Mt(a,i){if(!a){typeof console<"u"&&console.warn(i);try{throw new Error(i)}catch{}}}function Kx(){return Math.random().toString(36).substring(2,10)}function zp(a,i){return{usr:a.state,key:a.key,idx:i}}function Mu(a,i,r=null,o){return{pathname:typeof a=="string"?a:a.pathname,search:"",hash:"",...typeof i=="string"?Oa(i):i,state:r,key:i&&i.key||o||Kx()}}function Yi({pathname:a="/",search:i="",hash:r=""}){return i&&i!=="?"&&(a+=i.charAt(0)==="?"?i:"?"+i),r&&r!=="#"&&(a+=r.charAt(0)==="#"?r:"#"+r),a}function Oa(a){let i={};if(a){let r=a.indexOf("#");r>=0&&(i.hash=a.substring(r),a=a.substring(0,r));let o=a.indexOf("?");o>=0&&(i.search=a.substring(o),a=a.substring(0,o)),a&&(i.pathname=a)}return i}function Qx(a,i,r,o={}){let{window:f=document.defaultView,v5Compat:d=!1}=o,h=f.history,p="POP",v=null,y=S();y==null&&(y=0,h.replaceState({...h.state,idx:y},""));function S(){return(h.state||{idx:null}).idx}function b(){p="POP";let A=S(),z=A==null?null:A-y;y=A,v&&v({action:p,location:w.location,delta:z})}function C(A,z){p="PUSH";let R=Mu(w.location,A,z);y=S()+1;let M=zp(R,y),q=w.createHref(R);try{h.pushState(M,"",q)}catch(Q){if(Q instanceof DOMException&&Q.name==="DataCloneError")throw Q;f.location.assign(q)}d&&v&&v({action:p,location:w.location,delta:1})}function j(A,z){p="REPLACE";let R=Mu(w.location,A,z);y=S();let M=zp(R,y),q=w.createHref(R);h.replaceState(M,"",q),d&&v&&v({action:p,location:w.location,delta:0})}function D(A){return Zx(A)}let w={get action(){return p},get location(){return a(f,h)},listen(A){if(v)throw new Error("A history only accepts one active listener");return f.addEventListener(Rp,b),v=A,()=>{f.removeEventListener(Rp,b),v=null}},createHref(A){return i(f,A)},createURL:D,encodeLocation(A){let z=D(A);return{pathname:z.pathname,search:z.search,hash:z.hash}},push:C,replace:j,go(A){return h.go(A)}};return w}function Zx(a,i=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),ke(r,"No window.location.(origin|href) available to create URL");let o=typeof a=="string"?a:Yi(a);return o=o.replace(/ $/,"%20"),!i&&o.startsWith("//")&&(o=r+o),new URL(o,r)}function wv(a,i,r="/"){return Px(a,i,r,!1)}function Px(a,i,r,o){let f=typeof i=="string"?Oa(i):i,d=Mn(f.pathname||"/",r);if(d==null)return null;let h=Ev(a);Jx(h);let p=null;for(let v=0;p==null&&v<h.length;++v){let y=rb(d);p=ib(h[v],y,o)}return p}function Ev(a,i=[],r=[],o="",f=!1){let d=(h,p,v=f,y)=>{let S={relativePath:y===void 0?h.path||"":y,caseSensitive:h.caseSensitive===!0,childrenIndex:p,route:h};if(S.relativePath.startsWith("/")){if(!S.relativePath.startsWith(o)&&v)return;ke(S.relativePath.startsWith(o),`Absolute route path "${S.relativePath}" nested under path "${o}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),S.relativePath=S.relativePath.slice(o.length)}let b=Dn([o,S.relativePath]),C=r.concat(S);h.children&&h.children.length>0&&(ke(h.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${b}".`),Ev(h.children,i,C,b,v)),!(h.path==null&&!h.index)&&i.push({path:b,score:lb(b,h.index),routesMeta:C})};return a.forEach((h,p)=>{if(h.path===""||!h.path?.includes("?"))d(h,p);else for(let v of Cv(h.path))d(h,p,!0,v)}),i}function Cv(a){let i=a.split("/");if(i.length===0)return[];let[r,...o]=i,f=r.endsWith("?"),d=r.replace(/\?$/,"");if(o.length===0)return f?[d,""]:[d];let h=Cv(o.join("/")),p=[];return p.push(...h.map(v=>v===""?d:[d,v].join("/"))),f&&p.push(...h),p.map(v=>a.startsWith("/")&&v===""?"/":v)}function Jx(a){a.sort((i,r)=>i.score!==r.score?r.score-i.score:ab(i.routesMeta.map(o=>o.childrenIndex),r.routesMeta.map(o=>o.childrenIndex)))}var Wx=/^:[\w-]+$/,Ix=3,$x=2,eb=1,tb=10,nb=-2,Op=a=>a==="*";function lb(a,i){let r=a.split("/"),o=r.length;return r.some(Op)&&(o+=nb),i&&(o+=$x),r.filter(f=>!Op(f)).reduce((f,d)=>f+(Wx.test(d)?Ix:d===""?eb:tb),o)}function ab(a,i){return a.length===i.length&&a.slice(0,-1).every((o,f)=>o===i[f])?a[a.length-1]-i[i.length-1]:0}function ib(a,i,r=!1){let{routesMeta:o}=a,f={},d="/",h=[];for(let p=0;p<o.length;++p){let v=o[p],y=p===o.length-1,S=d==="/"?i:i.slice(d.length)||"/",b=Tr({path:v.relativePath,caseSensitive:v.caseSensitive,end:y},S),C=v.route;if(!b&&y&&r&&!o[o.length-1].route.index&&(b=Tr({path:v.relativePath,caseSensitive:v.caseSensitive,end:!1},S)),!b)return null;Object.assign(f,b.params),h.push({params:f,pathname:Dn([d,b.pathname]),pathnameBase:fb(Dn([d,b.pathnameBase])),route:C}),b.pathnameBase!=="/"&&(d=Dn([d,b.pathnameBase]))}return h}function Tr(a,i){typeof a=="string"&&(a={path:a,caseSensitive:!1,end:!0});let[r,o]=cb(a.path,a.caseSensitive,a.end),f=i.match(r);if(!f)return null;let d=f[0],h=d.replace(/(.)\/+$/,"$1"),p=f.slice(1);return{params:o.reduce((y,{paramName:S,isOptional:b},C)=>{if(S==="*"){let D=p[C]||"";h=d.slice(0,d.length-D.length).replace(/(.)\/+$/,"$1")}const j=p[C];return b&&!j?y[S]=void 0:y[S]=(j||"").replace(/%2F/g,"/"),y},{}),pathname:d,pathnameBase:h,pattern:a}}function cb(a,i=!1,r=!0){Mt(a==="*"||!a.endsWith("*")||a.endsWith("/*"),`Route path "${a}" will be treated as if it were "${a.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${a.replace(/\*$/,"/*")}".`);let o=[],f="^"+a.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(h,p,v)=>(o.push({paramName:p,isOptional:v!=null}),v?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return a.endsWith("*")?(o.push({paramName:"*"}),f+=a==="*"||a==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?f+="\\/*$":a!==""&&a!=="/"&&(f+="(?:(?=\\/|$))"),[new RegExp(f,i?void 0:"i"),o]}function rb(a){try{return a.split("/").map(i=>decodeURIComponent(i).replace(/\//g,"%2F")).join("/")}catch(i){return Mt(!1,`The URL path "${a}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${i}).`),a}}function Mn(a,i){if(i==="/")return a;if(!a.toLowerCase().startsWith(i.toLowerCase()))return null;let r=i.endsWith("/")?i.length-1:i.length,o=a.charAt(r);return o&&o!=="/"?null:a.slice(r)||"/"}var Nv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ob=a=>Nv.test(a);function sb(a,i="/"){let{pathname:r,search:o="",hash:f=""}=typeof a=="string"?Oa(a):a,d;if(r)if(ob(r))d=r;else{if(r.includes("//")){let h=r;r=r.replace(/\/\/+/g,"/"),Mt(!1,`Pathnames cannot have embedded double slashes - normalizing ${h} -> ${r}`)}r.startsWith("/")?d=_p(r.substring(1),"/"):d=_p(r,i)}else d=i;return{pathname:d,search:db(o),hash:hb(f)}}function _p(a,i){let r=i.replace(/\/+$/,"").split("/");return a.split("/").forEach(f=>{f===".."?r.length>1&&r.pop():f!=="."&&r.push(f)}),r.length>1?r.join("/"):"/"}function yu(a,i,r,o){return`Cannot include a '${a}' character in a manually specified \`to.${i}\` field [${JSON.stringify(o)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function ub(a){return a.filter((i,r)=>r===0||i.route.path&&i.route.path.length>0)}function $u(a){let i=ub(a);return i.map((r,o)=>o===i.length-1?r.pathname:r.pathnameBase)}function ef(a,i,r,o=!1){let f;typeof a=="string"?f=Oa(a):(f={...a},ke(!f.pathname||!f.pathname.includes("?"),yu("?","pathname","search",f)),ke(!f.pathname||!f.pathname.includes("#"),yu("#","pathname","hash",f)),ke(!f.search||!f.search.includes("#"),yu("#","search","hash",f)));let d=a===""||f.pathname==="",h=d?"/":f.pathname,p;if(h==null)p=r;else{let b=i.length-1;if(!o&&h.startsWith("..")){let C=h.split("/");for(;C[0]==="..";)C.shift(),b-=1;f.pathname=C.join("/")}p=b>=0?i[b]:"/"}let v=sb(f,p),y=h&&h!=="/"&&h.endsWith("/"),S=(d||h===".")&&r.endsWith("/");return!v.pathname.endsWith("/")&&(y||S)&&(v.pathname+="/"),v}var Dn=a=>a.join("/").replace(/\/\/+/g,"/"),fb=a=>a.replace(/\/+$/,"").replace(/^\/*/,"/"),db=a=>!a||a==="?"?"":a.startsWith("?")?a:"?"+a,hb=a=>!a||a==="#"?"":a.startsWith("#")?a:"#"+a,mb=class{constructor(a,i,r,o=!1){this.status=a,this.statusText=i||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function pb(a){return a!=null&&typeof a.status=="number"&&typeof a.statusText=="string"&&typeof a.internal=="boolean"&&"data"in a}function vb(a){return a.map(i=>i.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var jv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Av(a,i){let r=a;if(typeof r!="string"||!Nv.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let o=r,f=!1;if(jv)try{let d=new URL(window.location.href),h=r.startsWith("//")?new URL(d.protocol+r):new URL(r),p=Mn(h.pathname,i);h.origin===d.origin&&p!=null?r=p+h.search+h.hash:f=!0}catch{Mt(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:o,isExternal:f,to:r}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Tv=["POST","PUT","PATCH","DELETE"];new Set(Tv);var gb=["GET",...Tv];new Set(gb);var _a=g.createContext(null);_a.displayName="DataRouter";var Br=g.createContext(null);Br.displayName="DataRouterState";var yb=g.createContext(!1),Rv=g.createContext({isTransitioning:!1});Rv.displayName="ViewTransition";var xb=g.createContext(new Map);xb.displayName="Fetchers";var bb=g.createContext(null);bb.displayName="Await";var Lt=g.createContext(null);Lt.displayName="Navigation";var Gi=g.createContext(null);Gi.displayName="Location";var sn=g.createContext({outlet:null,matches:[],isDataRoute:!1});sn.displayName="Route";var tf=g.createContext(null);tf.displayName="RouteError";var zv="REACT_ROUTER_ERROR",Sb="REDIRECT",wb="ROUTE_ERROR_RESPONSE";function Eb(a){if(a.startsWith(`${zv}:${Sb}:{`))try{let i=JSON.parse(a.slice(28));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.location=="string"&&typeof i.reloadDocument=="boolean"&&typeof i.replace=="boolean")return i}catch{}}function Cb(a){if(a.startsWith(`${zv}:${wb}:{`))try{let i=JSON.parse(a.slice(40));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string")return new mb(i.status,i.statusText,i.data)}catch{}}function Nb(a,{relative:i}={}){ke(Da(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:o}=g.useContext(Lt),{hash:f,pathname:d,search:h}=Fi(a,{relative:i}),p=d;return r!=="/"&&(p=d==="/"?r:Dn([r,d])),o.createHref({pathname:p,search:h,hash:f})}function Da(){return g.useContext(Gi)!=null}function un(){return ke(Da(),"useLocation() may be used only in the context of a <Router> component."),g.useContext(Gi).location}var Ov="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function _v(a){g.useContext(Lt).static||g.useLayoutEffect(a)}function Bn(){let{isDataRoute:a}=g.useContext(sn);return a?Bb():jb()}function jb(){ke(Da(),"useNavigate() may be used only in the context of a <Router> component.");let a=g.useContext(_a),{basename:i,navigator:r}=g.useContext(Lt),{matches:o}=g.useContext(sn),{pathname:f}=un(),d=JSON.stringify($u(o)),h=g.useRef(!1);return _v(()=>{h.current=!0}),g.useCallback((v,y={})=>{if(Mt(h.current,Ov),!h.current)return;if(typeof v=="number"){r.go(v);return}let S=ef(v,JSON.parse(d),f,y.relative==="path");a==null&&i!=="/"&&(S.pathname=S.pathname==="/"?i:Dn([i,S.pathname])),(y.replace?r.replace:r.push)(S,y.state,y)},[i,r,d,f,a])}g.createContext(null);function Fi(a,{relative:i}={}){let{matches:r}=g.useContext(sn),{pathname:o}=un(),f=JSON.stringify($u(r));return g.useMemo(()=>ef(a,JSON.parse(f),o,i==="path"),[a,f,o,i])}function Ab(a,i){return Dv(a,i)}function Dv(a,i,r,o,f){ke(Da(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:d}=g.useContext(Lt),{matches:h}=g.useContext(sn),p=h[h.length-1],v=p?p.params:{},y=p?p.pathname:"/",S=p?p.pathnameBase:"/",b=p&&p.route;{let R=b&&b.path||"";Lv(y,!b||R.endsWith("*")||R.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${y}" (under <Route path="${R}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
10
10
 
11
- Please change the parent <Route path="${R}"> to <Route path="${R==="/"?"*":`${R}/*`}">.`)}let C=sn(),j;if(i){let R=typeof i=="string"?Ra(i):i;ke(S==="/"||R.pathname?.startsWith(S),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${S}" but pathname "${R.pathname}" was given in the \`location\` prop.`),j=R}else j=C;let D=j.pathname||"/",w=D;if(S!=="/"){let R=S.replace(/^\//,"").split("/");w="/"+D.replace(/^\//,"").split("/").slice(R.length).join("/")}let T=vv(a,{pathname:w});Dt(b||T!=null,`No routes matched location "${j.pathname}${j.search}${j.hash}" `),Dt(T==null||T[T.length-1].route.element!==void 0||T[T.length-1].route.Component!==void 0||T[T.length-1].route.lazy!==void 0,`Matched leaf route at location "${j.pathname}${j.search}${j.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let z=Tb(T&&T.map(R=>Object.assign({},R,{params:Object.assign({},v,R.params),pathname:On([S,d.encodeLocation?d.encodeLocation(R.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:R.pathname]),pathnameBase:R.pathnameBase==="/"?S:On([S,d.encodeLocation?d.encodeLocation(R.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:R.pathnameBase])})),h,o,s,f);return i&&z?g.createElement(Xi.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...j},navigationType:"POP"}},z):z}function Eb(){let a=_b(),i=ub(a)?`${a.status} ${a.statusText}`:a instanceof Error?a.message:JSON.stringify(a),o=a instanceof Error?a.stack:null,s="rgba(200,200,200, 0.5)",f={padding:"0.5rem",backgroundColor:s},d={padding:"2px 4px",backgroundColor:s},h=null;return console.error("Error handled by React Router default ErrorBoundary:",a),h=g.createElement(g.Fragment,null,g.createElement("p",null,"💿 Hey developer 👋"),g.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",g.createElement("code",{style:d},"ErrorBoundary")," or"," ",g.createElement("code",{style:d},"errorElement")," prop on your route.")),g.createElement(g.Fragment,null,g.createElement("h2",null,"Unexpected Application Error!"),g.createElement("h3",{style:{fontStyle:"italic"}},i),o?g.createElement("pre",{style:f},o):null,h)}var Cb=g.createElement(Eb,null),Av=class extends g.Component{constructor(a){super(a),this.state={location:a.location,revalidation:a.revalidation,error:a.error}}static getDerivedStateFromError(a){return{error:a}}static getDerivedStateFromProps(a,i){return i.location!==a.location||i.revalidation!=="idle"&&a.revalidation==="idle"?{error:a.error,location:a.location,revalidation:a.revalidation}:{error:a.error!==void 0?a.error:i.error,location:i.location,revalidation:a.revalidation||i.revalidation}}componentDidCatch(a,i){this.props.onError?this.props.onError(a,i):console.error("React Router caught the following error during render",a)}render(){let a=this.state.error;if(this.context&&typeof a=="object"&&a&&"digest"in a&&typeof a.digest=="string"){const o=xb(a.digest);o&&(a=o)}let i=a!==void 0?g.createElement(rn.Provider,{value:this.props.routeContext},g.createElement($u.Provider,{value:a,children:this.props.component})):this.props.children;return this.context?g.createElement(Nb,{error:a},i):i}};Av.contextType=hb;var gu=new WeakMap;function Nb({children:a,error:i}){let{basename:o}=g.useContext(Mt);if(typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){let s=yb(i.digest);if(s){let f=gu.get(i);if(f)throw f;let d=Sv(s.location,o);if(bv&&!gu.get(i))if(d.isExternal||s.reloadDocument)window.location.href=d.absoluteURL||d.to;else{const h=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(d.to,{replace:s.replace}));throw gu.set(i,h),h}return g.createElement("meta",{httpEquiv:"refresh",content:`0;url=${d.absoluteURL||d.to}`})}}return a}function jb({routeContext:a,match:i,children:o}){let s=g.useContext(za);return s&&s.static&&s.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=i.route.id),g.createElement(rn.Provider,{value:a},o)}function Tb(a,i=[],o=null,s=null,f=null){if(a==null){if(!o)return null;if(o.errors)a=o.matches;else if(i.length===0&&!o.initialized&&o.matches.length>0)a=o.matches;else return null}let d=a,h=o?.errors;if(h!=null){let S=d.findIndex(b=>b.route.id&&h?.[b.route.id]!==void 0);ke(S>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(h).join(",")}`),d=d.slice(0,Math.min(d.length,S+1))}let p=!1,v=-1;if(o)for(let S=0;S<d.length;S++){let b=d[S];if((b.route.HydrateFallback||b.route.hydrateFallbackElement)&&(v=S),b.route.id){let{loaderData:C,errors:j}=o,D=b.route.loader&&!C.hasOwnProperty(b.route.id)&&(!j||j[b.route.id]===void 0);if(b.route.lazy||D){p=!0,v>=0?d=d.slice(0,v+1):d=[d[0]];break}}}let y=o&&s?(S,b)=>{s(S,{location:o.location,params:o.matches?.[0]?.params??{},unstable_pattern:fb(o.matches),errorInfo:b})}:void 0;return d.reduceRight((S,b,C)=>{let j,D=!1,w=null,T=null;o&&(j=h&&b.route.id?h[b.route.id]:void 0,w=b.route.errorElement||Cb,p&&(v<0&&C===0?(Rv("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),D=!0,T=null):v===C&&(D=!0,T=b.route.hydrateFallbackElement||null)));let z=i.concat(d.slice(0,C+1)),R=()=>{let M;return j?M=w:D?M=T:b.route.Component?M=g.createElement(b.route.Component,null):b.route.element?M=b.route.element:M=S,g.createElement(jb,{match:b,routeContext:{outlet:S,matches:z,isDataRoute:o!=null},children:M})};return o&&(b.route.ErrorBoundary||b.route.errorElement||C===0)?g.createElement(Av,{location:o.location,revalidation:o.revalidation,component:w,error:j,children:R(),routeContext:{outlet:null,matches:z,isDataRoute:!0},onError:y}):R()},null)}function Iu(a){return`${a} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Ab(a){let i=g.useContext(za);return ke(i,Iu(a)),i}function Rb(a){let i=g.useContext(Bo);return ke(i,Iu(a)),i}function zb(a){let i=g.useContext(rn);return ke(i,Iu(a)),i}function ef(a){let i=zb(a),o=i.matches[i.matches.length-1];return ke(o.route.id,`${a} can only be used on routes that contain a unique "id"`),o.route.id}function Ob(){return ef("useRouteId")}function _b(){let a=g.useContext($u),i=Rb("useRouteError"),o=ef("useRouteError");return a!==void 0?a:i.errors?.[o]}function Db(){let{router:a}=Ab("useNavigate"),i=ef("useNavigate"),o=g.useRef(!1);return jv(()=>{o.current=!0}),g.useCallback(async(f,d={})=>{Dt(o.current,Nv),o.current&&(typeof f=="number"?await a.navigate(f):await a.navigate(f,{fromRouteId:i,...d}))},[a,i])}var Rp={};function Rv(a,i,o){!i&&!Rp[a]&&(Rp[a]=!0,Dt(!1,o))}g.memo(Mb);function Mb({routes:a,future:i,state:o,onError:s}){return Tv(a,void 0,o,s,i)}function Dn({to:a,replace:i,state:o,relative:s}){ke(Oa(),"<Navigate> may be used only in the context of a <Router> component.");let{static:f}=g.useContext(Mt);Dt(!f,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:d}=g.useContext(rn),{pathname:h}=sn(),p=Un(),v=Wu(a,Ju(d),h,s==="path"),y=JSON.stringify(v);return g.useEffect(()=>{p(JSON.parse(y),{replace:i,state:o,relative:s})},[p,y,s,i,o]),null}function Rt(a){ke(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Lb({basename:a="/",children:i=null,location:o,navigationType:s="POP",navigator:f,static:d=!1,unstable_useTransitions:h}){ke(!Oa(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let p=a.replace(/^\/*/,"/"),v=g.useMemo(()=>({basename:p,navigator:f,static:d,unstable_useTransitions:h,future:{}}),[p,f,d,h]);typeof o=="string"&&(o=Ra(o));let{pathname:y="/",search:S="",hash:b="",state:C=null,key:j="default"}=o,D=g.useMemo(()=>{let w=_n(y,p);return w==null?null:{location:{pathname:w,search:S,hash:b,state:C,key:j},navigationType:s}},[p,y,S,b,C,j,s]);return Dt(D!=null,`<Router basename="${p}"> is not able to match the URL "${y}${S}${b}" because it does not start with the basename, so the <Router> won't render anything.`),D==null?null:g.createElement(Mt.Provider,{value:v},g.createElement(Xi.Provider,{children:i,value:D}))}function Ub({children:a,location:i}){return wb(Du(a),i)}function Du(a,i=[]){let o=[];return g.Children.forEach(a,(s,f)=>{if(!g.isValidElement(s))return;let d=[...i,f];if(s.type===g.Fragment){o.push.apply(o,Du(s.props.children,d));return}ke(s.type===Rt,`[${typeof s.type=="string"?s.type:s.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),ke(!s.props.index||!s.props.children,"An index route cannot have child routes.");let h={id:s.props.id||d.join("-"),caseSensitive:s.props.caseSensitive,element:s.props.element,Component:s.props.Component,index:s.props.index,path:s.props.path,middleware:s.props.middleware,loader:s.props.loader,action:s.props.action,hydrateFallbackElement:s.props.hydrateFallbackElement,HydrateFallback:s.props.HydrateFallback,errorElement:s.props.errorElement,ErrorBoundary:s.props.ErrorBoundary,hasErrorBoundary:s.props.hasErrorBoundary===!0||s.props.ErrorBoundary!=null||s.props.errorElement!=null,shouldRevalidate:s.props.shouldRevalidate,handle:s.props.handle,lazy:s.props.lazy};s.props.children&&(h.children=Du(s.props.children,d)),o.push(h)}),o}var Eo="get",Co="application/x-www-form-urlencoded";function ko(a){return typeof HTMLElement<"u"&&a instanceof HTMLElement}function Hb(a){return ko(a)&&a.tagName.toLowerCase()==="button"}function Bb(a){return ko(a)&&a.tagName.toLowerCase()==="form"}function kb(a){return ko(a)&&a.tagName.toLowerCase()==="input"}function Yb(a){return!!(a.metaKey||a.altKey||a.ctrlKey||a.shiftKey)}function qb(a,i){return a.button===0&&(!i||i==="_self")&&!Yb(a)}function Mu(a=""){return new URLSearchParams(typeof a=="string"||Array.isArray(a)||a instanceof URLSearchParams?a:Object.keys(a).reduce((i,o)=>{let s=a[o];return i.concat(Array.isArray(s)?s.map(f=>[o,f]):[[o,s]])},[]))}function Vb(a,i){let o=Mu(a);return i&&i.forEach((s,f)=>{o.has(f)||i.getAll(f).forEach(d=>{o.append(f,d)})}),o}var ho=null;function Xb(){if(ho===null)try{new FormData(document.createElement("form"),0),ho=!1}catch{ho=!0}return ho}var Gb=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function yu(a){return a!=null&&!Gb.has(a)?(Dt(!1,`"${a}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Co}"`),null):a}function Fb(a,i){let o,s,f,d,h;if(Bb(a)){let p=a.getAttribute("action");s=p?_n(p,i):null,o=a.getAttribute("method")||Eo,f=yu(a.getAttribute("enctype"))||Co,d=new FormData(a)}else if(Hb(a)||kb(a)&&(a.type==="submit"||a.type==="image")){let p=a.form;if(p==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let v=a.getAttribute("formaction")||p.getAttribute("action");if(s=v?_n(v,i):null,o=a.getAttribute("formmethod")||p.getAttribute("method")||Eo,f=yu(a.getAttribute("formenctype"))||yu(p.getAttribute("enctype"))||Co,d=new FormData(p,a),!Xb()){let{name:y,type:S,value:b}=a;if(S==="image"){let C=y?`${y}.`:"";d.append(`${C}x`,"0"),d.append(`${C}y`,"0")}else y&&d.append(y,b)}}else{if(ko(a))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');o=Eo,s=null,f=Co,h=a}return d&&f==="text/plain"&&(h=d,d=void 0),{action:s,method:o.toLowerCase(),encType:f,formData:d,body:h}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function tf(a,i){if(a===!1||a===null||typeof a>"u")throw new Error(i)}function Kb(a,i,o,s){let f=typeof a=="string"?new URL(a,typeof window>"u"?"server://singlefetch/":window.location.origin):a;return o?f.pathname.endsWith("/")?f.pathname=`${f.pathname}_.${s}`:f.pathname=`${f.pathname}.${s}`:f.pathname==="/"?f.pathname=`_root.${s}`:i&&_n(f.pathname,i)==="/"?f.pathname=`${i.replace(/\/$/,"")}/_root.${s}`:f.pathname=`${f.pathname.replace(/\/$/,"")}.${s}`,f}async function Qb(a,i){if(a.id in i)return i[a.id];try{let o=await import(a.module);return i[a.id]=o,o}catch(o){return console.error(`Error loading route module \`${a.module}\`, reloading page...`),console.error(o),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Zb(a){return a==null?!1:a.href==null?a.rel==="preload"&&typeof a.imageSrcSet=="string"&&typeof a.imageSizes=="string":typeof a.rel=="string"&&typeof a.href=="string"}async function Pb(a,i,o){let s=await Promise.all(a.map(async f=>{let d=i.routes[f.route.id];if(d){let h=await Qb(d,o);return h.links?h.links():[]}return[]}));return Ib(s.flat(1).filter(Zb).filter(f=>f.rel==="stylesheet"||f.rel==="preload").map(f=>f.rel==="stylesheet"?{...f,rel:"prefetch",as:"style"}:{...f,rel:"prefetch"}))}function zp(a,i,o,s,f,d){let h=(v,y)=>o[y]?v.route.id!==o[y].route.id:!0,p=(v,y)=>o[y].pathname!==v.pathname||o[y].route.path?.endsWith("*")&&o[y].params["*"]!==v.params["*"];return d==="assets"?i.filter((v,y)=>h(v,y)||p(v,y)):d==="data"?i.filter((v,y)=>{let S=s.routes[v.route.id];if(!S||!S.hasLoader)return!1;if(h(v,y)||p(v,y))return!0;if(v.route.shouldRevalidate){let b=v.route.shouldRevalidate({currentUrl:new URL(f.pathname+f.search+f.hash,window.origin),currentParams:o[0]?.params||{},nextUrl:new URL(a,window.origin),nextParams:v.params,defaultShouldRevalidate:!0});if(typeof b=="boolean")return b}return!0}):[]}function Jb(a,i,{includeHydrateFallback:o}={}){return Wb(a.map(s=>{let f=i.routes[s.route.id];if(!f)return[];let d=[f.module];return f.clientActionModule&&(d=d.concat(f.clientActionModule)),f.clientLoaderModule&&(d=d.concat(f.clientLoaderModule)),o&&f.hydrateFallbackModule&&(d=d.concat(f.hydrateFallbackModule)),f.imports&&(d=d.concat(f.imports)),d}).flat(1))}function Wb(a){return[...new Set(a)]}function $b(a){let i={},o=Object.keys(a).sort();for(let s of o)i[s]=a[s];return i}function Ib(a,i){let o=new Set;return new Set(i),a.reduce((s,f)=>{let d=JSON.stringify($b(f));return o.has(d)||(o.add(d),s.push({key:d,link:f})),s},[])}function zv(){let a=g.useContext(za);return tf(a,"You must render this element inside a <DataRouterContext.Provider> element"),a}function eS(){let a=g.useContext(Bo);return tf(a,"You must render this element inside a <DataRouterStateContext.Provider> element"),a}var nf=g.createContext(void 0);nf.displayName="FrameworkContext";function Ov(){let a=g.useContext(nf);return tf(a,"You must render this element inside a <HydratedRouter> element"),a}function tS(a,i){let o=g.useContext(nf),[s,f]=g.useState(!1),[d,h]=g.useState(!1),{onFocus:p,onBlur:v,onMouseEnter:y,onMouseLeave:S,onTouchStart:b}=i,C=g.useRef(null);g.useEffect(()=>{if(a==="render"&&h(!0),a==="viewport"){let w=z=>{z.forEach(R=>{h(R.isIntersecting)})},T=new IntersectionObserver(w,{threshold:.5});return C.current&&T.observe(C.current),()=>{T.disconnect()}}},[a]),g.useEffect(()=>{if(s){let w=setTimeout(()=>{h(!0)},100);return()=>{clearTimeout(w)}}},[s]);let j=()=>{f(!0)},D=()=>{f(!1),h(!1)};return o?a!=="intent"?[d,C,{}]:[d,C,{onFocus:zi(p,j),onBlur:zi(v,D),onMouseEnter:zi(y,j),onMouseLeave:zi(S,D),onTouchStart:zi(b,j)}]:[!1,C,{}]}function zi(a,i){return o=>{a&&a(o),o.defaultPrevented||i(o)}}function nS({page:a,...i}){let{router:o}=zv(),s=g.useMemo(()=>vv(o.routes,a,o.basename),[o.routes,a,o.basename]);return s?g.createElement(aS,{page:a,matches:s,...i}):null}function lS(a){let{manifest:i,routeModules:o}=Ov(),[s,f]=g.useState([]);return g.useEffect(()=>{let d=!1;return Pb(a,i,o).then(h=>{d||f(h)}),()=>{d=!0}},[a,i,o]),s}function aS({page:a,matches:i,...o}){let s=sn(),{future:f,manifest:d,routeModules:h}=Ov(),{basename:p}=zv(),{loaderData:v,matches:y}=eS(),S=g.useMemo(()=>zp(a,i,y,d,s,"data"),[a,i,y,d,s]),b=g.useMemo(()=>zp(a,i,y,d,s,"assets"),[a,i,y,d,s]),C=g.useMemo(()=>{if(a===s.pathname+s.search+s.hash)return[];let w=new Set,T=!1;if(i.forEach(R=>{let M=d.routes[R.route.id];!M||!M.hasLoader||(!S.some(q=>q.route.id===R.route.id)&&R.route.id in v&&h[R.route.id]?.shouldRevalidate||M.hasClientLoader?T=!0:w.add(R.route.id))}),w.size===0)return[];let z=Kb(a,p,f.unstable_trailingSlashAwareDataRequests,"data");return T&&w.size>0&&z.searchParams.set("_routes",i.filter(R=>w.has(R.route.id)).map(R=>R.route.id).join(",")),[z.pathname+z.search]},[p,f.unstable_trailingSlashAwareDataRequests,v,s,d,S,i,a,h]),j=g.useMemo(()=>Jb(b,d),[b,d]),D=lS(b);return g.createElement(g.Fragment,null,C.map(w=>g.createElement("link",{key:w,rel:"prefetch",as:"fetch",href:w,...o})),j.map(w=>g.createElement("link",{key:w,rel:"modulepreload",href:w,...o})),D.map(({key:w,link:T})=>g.createElement("link",{key:w,nonce:o.nonce,...T})))}function iS(...a){return i=>{a.forEach(o=>{typeof o=="function"?o(i):o!=null&&(o.current=i)})}}var cS=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{cS&&(window.__reactRouterVersion="7.12.0")}catch{}function oS({basename:a,children:i,unstable_useTransitions:o,window:s}){let f=g.useRef();f.current==null&&(f.current=Yx({window:s,v5Compat:!0}));let d=f.current,[h,p]=g.useState({action:d.action,location:d.location}),v=g.useCallback(y=>{o===!1?p(y):g.startTransition(()=>p(y))},[o]);return g.useLayoutEffect(()=>d.listen(v),[d,v]),g.createElement(Lb,{basename:a,children:i,location:h.location,navigationType:h.action,navigator:d,unstable_useTransitions:o})}var _v=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ro=g.forwardRef(function({onClick:i,discover:o="render",prefetch:s="none",relative:f,reloadDocument:d,replace:h,state:p,target:v,to:y,preventScrollReset:S,viewTransition:b,unstable_defaultShouldRevalidate:C,...j},D){let{basename:w,unstable_useTransitions:T}=g.useContext(Mt),z=typeof y=="string"&&_v.test(y),R=Sv(y,w);y=R.to;let M=bb(y,{relative:f}),[q,Q,Z]=tS(s,j),Y=fS(y,{replace:h,state:p,target:v,preventScrollReset:S,relative:f,viewTransition:b,unstable_defaultShouldRevalidate:C,unstable_useTransitions:T});function le(ae){i&&i(ae),ae.defaultPrevented||Y(ae)}let oe=g.createElement("a",{...j,...Z,href:R.absoluteURL||M,onClick:R.isExternal||d?i:le,ref:iS(D,Q),target:v,"data-discover":!z&&o==="render"?"true":void 0});return q&&!z?g.createElement(g.Fragment,null,oe,g.createElement(nS,{page:M})):oe});Ro.displayName="Link";var rS=g.forwardRef(function({"aria-current":i="page",caseSensitive:o=!1,className:s="",end:f=!1,style:d,to:h,viewTransition:p,children:v,...y},S){let b=Gi(h,{relative:y.relative}),C=sn(),j=g.useContext(Bo),{navigator:D,basename:w}=g.useContext(Mt),T=j!=null&&gS(b)&&p===!0,z=D.encodeLocation?D.encodeLocation(b).pathname:b.pathname,R=C.pathname,M=j&&j.navigation&&j.navigation.location?j.navigation.location.pathname:null;o||(R=R.toLowerCase(),M=M?M.toLowerCase():null,z=z.toLowerCase()),M&&w&&(M=_n(M,w)||M);const q=z!=="/"&&z.endsWith("/")?z.length-1:z.length;let Q=R===z||!f&&R.startsWith(z)&&R.charAt(q)==="/",Z=M!=null&&(M===z||!f&&M.startsWith(z)&&M.charAt(z.length)==="/"),Y={isActive:Q,isPending:Z,isTransitioning:T},le=Q?i:void 0,oe;typeof s=="function"?oe=s(Y):oe=[s,Q?"active":null,Z?"pending":null,T?"transitioning":null].filter(Boolean).join(" ");let ae=typeof d=="function"?d(Y):d;return g.createElement(Ro,{...y,"aria-current":le,className:oe,ref:S,style:ae,to:h,viewTransition:p},typeof v=="function"?v(Y):v)});rS.displayName="NavLink";var sS=g.forwardRef(({discover:a="render",fetcherKey:i,navigate:o,reloadDocument:s,replace:f,state:d,method:h=Eo,action:p,onSubmit:v,relative:y,preventScrollReset:S,viewTransition:b,unstable_defaultShouldRevalidate:C,...j},D)=>{let{unstable_useTransitions:w}=g.useContext(Mt),T=pS(),z=vS(p,{relative:y}),R=h.toLowerCase()==="get"?"get":"post",M=typeof p=="string"&&_v.test(p),q=Q=>{if(v&&v(Q),Q.defaultPrevented)return;Q.preventDefault();let Z=Q.nativeEvent.submitter,Y=Z?.getAttribute("formmethod")||h,le=()=>T(Z||Q.currentTarget,{fetcherKey:i,method:Y,navigate:o,replace:f,state:d,relative:y,preventScrollReset:S,viewTransition:b,unstable_defaultShouldRevalidate:C});w&&o!==!1?g.startTransition(()=>le()):le()};return g.createElement("form",{ref:D,method:R,action:z,onSubmit:s?v:q,...j,"data-discover":!M&&a==="render"?"true":void 0})});sS.displayName="Form";function uS(a){return`${a} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Dv(a){let i=g.useContext(za);return ke(i,uS(a)),i}function fS(a,{target:i,replace:o,state:s,preventScrollReset:f,relative:d,viewTransition:h,unstable_defaultShouldRevalidate:p,unstable_useTransitions:v}={}){let y=Un(),S=sn(),b=Gi(a,{relative:d});return g.useCallback(C=>{if(qb(C,i)){C.preventDefault();let j=o!==void 0?o:ki(S)===ki(b),D=()=>y(a,{replace:j,state:s,preventScrollReset:f,relative:d,viewTransition:h,unstable_defaultShouldRevalidate:p});v?g.startTransition(()=>D()):D()}},[S,y,b,o,s,i,a,f,d,h,p,v])}function dS(a){Dt(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let i=g.useRef(Mu(a)),o=g.useRef(!1),s=sn(),f=g.useMemo(()=>Vb(s.search,o.current?null:i.current),[s.search]),d=Un(),h=g.useCallback((p,v)=>{const y=Mu(typeof p=="function"?p(new URLSearchParams(f)):p);o.current=!0,d("?"+y,v)},[d,f]);return[f,h]}var hS=0,mS=()=>`__${String(++hS)}__`;function pS(){let{router:a}=Dv("useSubmit"),{basename:i}=g.useContext(Mt),o=Ob(),s=a.fetch,f=a.navigate;return g.useCallback(async(d,h={})=>{let{action:p,method:v,encType:y,formData:S,body:b}=Fb(d,i);if(h.navigate===!1){let C=h.fetcherKey||mS();await s(C,o,h.action||p,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:S,body:b,formMethod:h.method||v,formEncType:h.encType||y,flushSync:h.flushSync})}else await f(h.action||p,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:S,body:b,formMethod:h.method||v,formEncType:h.encType||y,replace:h.replace,state:h.state,fromRouteId:o,flushSync:h.flushSync,viewTransition:h.viewTransition})},[s,f,i,o])}function vS(a,{relative:i}={}){let{basename:o}=g.useContext(Mt),s=g.useContext(rn);ke(s,"useFormAction must be used inside a RouteContext");let[f]=s.matches.slice(-1),d={...Gi(a||".",{relative:i})},h=sn();if(a==null){d.search=h.search;let p=new URLSearchParams(d.search),v=p.getAll("index");if(v.some(S=>S==="")){p.delete("index"),v.filter(b=>b).forEach(b=>p.append("index",b));let S=p.toString();d.search=S?`?${S}`:""}}return(!a||a===".")&&f.route.index&&(d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index"),o!=="/"&&(d.pathname=d.pathname==="/"?o:On([o,d.pathname])),ki(d)}function gS(a,{relative:i}={}){let o=g.useContext(Ev);ke(o!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:s}=Dv("useViewTransitionState"),f=Gi(a,{relative:i});if(!o.isTransitioning)return!1;let d=_n(o.currentLocation.pathname,s)||o.currentLocation.pathname,h=_n(o.nextLocation.pathname,s)||o.nextLocation.pathname;return Ao(f.pathname,h)!=null||Ao(f.pathname,d)!=null}var Fi=pv();const yS=hv(Fi),Mv=g.createContext(null);function $t(){const a=g.useContext(Mv);if(!a)throw new Error("useAuth must be used within AuthProvider");return a}function xS({children:a}){const i="/.account/",[o,s]=g.useState(null),[f,d]=g.useState(!0),[h,p]=g.useState(null),[v,y]=g.useState(!1),S=!!o?.account?.logout,b=f,C=async()=>{try{const w=await fetch("/.account/oidc/consent/",{headers:{Accept:"application/json"},credentials:"include"});return w.ok?!!(await w.json()).client:!1}catch{return!1}},j=async()=>{try{const w=await fetch(i,{headers:{Accept:"application/json"},credentials:"include"});if(w.ok){const T=await w.json();let z=!1;T.controls?.account?.logout&&(z=await C()),y(z),s(T.controls||{})}else p(`Failed to load configuration (Status: ${w.status})`)}catch{p("Network error: Could not connect to authentication server")}};g.useEffect(()=>{(async()=>(await j(),d(!1)))()},[i]);const D=async()=>{await j()};return u.jsx(Mv.Provider,{value:{controls:o,isInitializing:f,initError:h,idpIndex:i,isLoggedIn:S,authenticating:b,hasOidcPending:v,refetchControls:D},children:a})}const Lv=(...a)=>a.filter((i,o,s)=>!!i&&i.trim()!==""&&s.indexOf(i)===o).join(" ").trim();const bS=a=>a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const SS=a=>a.replace(/^([A-Z])|[\s-_]+(\w)/g,(i,o,s)=>s?s.toUpperCase():o.toLowerCase());const Op=a=>{const i=SS(a);return i.charAt(0).toUpperCase()+i.slice(1)};var wS={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 ES=a=>{for(const i in a)if(i.startsWith("aria-")||i==="role"||i==="title")return!0;return!1};const CS=g.forwardRef(({color:a="currentColor",size:i=24,strokeWidth:o=2,absoluteStrokeWidth:s,className:f="",children:d,iconNode:h,...p},v)=>g.createElement("svg",{ref:v,...wS,width:i,height:i,stroke:a,strokeWidth:s?Number(o)*24/Number(i):o,className:Lv("lucide",f),...!d&&!ES(p)&&{"aria-hidden":"true"},...p},[...h.map(([y,S])=>g.createElement(y,S)),...Array.isArray(d)?d:[d]]));const Ve=(a,i)=>{const o=g.forwardRef(({className:s,...f},d)=>g.createElement(CS,{ref:d,iconNode:i,className:Lv(`lucide-${bS(Op(a))}`,`lucide-${a}`,s),...f}));return o.displayName=Op(a),o};const NS=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Uv=Ve("arrow-left",NS);const jS=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Yo=Ve("arrow-right",jS);const TS=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],zn=Ve("check",TS);const AS=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Hv=Ve("chevron-down",AS);const RS=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],Bv=Ve("circle-alert",RS);const zS=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],kv=Ve("clock",zS);const OS=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],mo=Ve("copy",OS);const _S=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],DS=Ve("database",_S);const MS=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],_p=Ve("external-link",MS);const LS=[["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"}]],US=Ve("globe",LS);const HS=[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]],BS=Ve("hard-drive",HS);const kS=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],YS=Ve("info",kS);const qS=[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]],xu=Ve("key",qS);const VS=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],Yv=Ve("layers",VS);const XS=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Ta=Ve("loader-circle",XS);const GS=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],Bi=Ve("lock",GS);const FS=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],KS=Ve("log-out",FS);const QS=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],Lu=Ve("mail",QS);const ZS=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],bu=Ve("plus",ZS);const PS=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],Yi=Ve("shield",PS);const JS=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],Dp=Ve("trash-2",JS);const WS=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],qv=Ve("user",WS);function Vv(){return u.jsx("div",{className:"flex min-h-screen bg-zinc-50 text-zinc-900 items-center justify-center",children:u.jsx(Ta,{className:"w-6 h-6 animate-spin text-[#7C4DFF]"})})}function Ki({children:a,title:i,subtitle:o,icon:s,showBack:f,onBack:d}){return u.jsxs("div",{className:"min-h-screen bg-zinc-50 text-zinc-900 font-sans flex items-center justify-center p-4",children:[u.jsx("div",{className:"fixed inset-0 overflow-hidden pointer-events-none",children:u.jsx("div",{className:"absolute top-0 left-1/2 -translate-x-1/2 w-[1000px] h-[500px] bg-[#7C4DFF]/5 rounded-full blur-[120px]"})}),u.jsxs("div",{className:"w-full max-w-[360px] bg-white border border-zinc-200 rounded-3xl shadow-xl shadow-zinc-200/50 p-6 relative z-10",children:[u.jsxs("div",{className:"flex flex-col items-center mb-6",children:[u.jsxs("div",{className:"flex w-full items-center justify-between mb-4",children:[f?u.jsx("button",{onClick:d,className:"p-2 -ml-2 rounded-full hover:bg-zinc-100 text-zinc-400 hover:text-zinc-900 transition-colors",children:u.jsx(Uv,{className:"w-4 h-4"})}):u.jsx("div",{className:"w-8"}),u.jsx("div",{className:"w-10 h-10 bg-[#7C4DFF] rounded-xl shadow-lg shadow-[#7C4DFF]/20 flex items-center justify-center",children:s?u.jsx(s,{className:"w-5 h-5 text-white"}):u.jsx("div",{className:"w-5 h-5 border-2 border-white rounded opacity-80"})}),u.jsx("div",{className:"w-8"})]}),u.jsx("h2",{className:"text-xl font-bold tracking-tight text-center",children:i}),o&&u.jsx("p",{className:"mt-1 text-zinc-500 text-[11px] text-center leading-relaxed",children:o})]}),a]})]})}function $S({message:a}){return u.jsx(Ki,{title:"Error",subtitle:a,icon:Bv,children:u.jsx("button",{onClick:()=>window.location.reload(),className:"w-full py-2.5 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-xs font-medium transition-colors",children:"Retry"})})}const Uu="xpod:returnTo";function Ca(a){try{a&&sessionStorage.setItem(Uu,a)}catch{}}function IS(){try{const a=sessionStorage.getItem(Uu);return a&&sessionStorage.removeItem(Uu),a}catch{return null}}function e1(){try{return new URLSearchParams(window.location.search).get("returnTo")||null}catch{return null}}function t1(a,i,o=!1){return a&&i&&!o}function Mp({children:a,allowOidcPending:i=!1}){const{isLoggedIn:o,hasOidcPending:s}=$t(),f=sn();return t1(o,s,i)?u.jsx(Dn,{to:"/.account/oidc/consent/",replace:!0}):o?u.jsx(u.Fragment,{children:a}):(Ca(f.pathname+f.search),u.jsx(Dn,{to:"/.account/login/password/",replace:!0}))}function Xv(a){var i,o,s="";if(typeof a=="string"||typeof a=="number")s+=a;else if(typeof a=="object")if(Array.isArray(a)){var f=a.length;for(i=0;i<f;i++)a[i]&&(o=Xv(a[i]))&&(s&&(s+=" "),s+=o)}else for(o in a)a[o]&&(s&&(s+=" "),s+=o);return s}function $e(){for(var a,i,o=0,s="",f=arguments.length;o<f;o++)(a=arguments[o])&&(i=Xv(a))&&(s&&(s+=" "),s+=i);return s}const Lp=3,zo=63,n1=/^[a-z0-9-]+$/;function qi(a){return a.trim().toLowerCase()}function Oo(a){const i=qi(a);if(!i)return"Username is required";if(i.length<Lp||i.length>zo)return`Username must be ${Lp}-${zo} characters`;if(!n1.test(i))return"Username can only contain lowercase letters, numbers, and hyphens";if(i.startsWith("-")||i.endsWith("-"))return"Username cannot start or end with a hyphen"}function l1(a,i=5){const s=qi(a).replace(/[^a-z0-9-]/g,"-").replace(/-+/g,"-").replace(/^-+|-+$/g,"").slice(0,zo-3)||"user",f=Array.from({length:Math.max(i,3)},(d,h)=>`${s}-${h+1}`);return Array.from(new Set(f.map(d=>d.slice(0,zo)).filter(d=>!Oo(d)))).slice(0,i)}function a1(a){if(typeof window<"u")return"/api/v1/identity";try{const i=new URL(a);return i.hostname.startsWith("id.")?`${i.protocol}//api.${i.hostname.slice(3)}/api/v1/identity`:`${i.origin}/api/v1/identity`}catch{return"/api/v1/identity"}}async function Gv(a,i,o){const s=`${a1(i)}/${encodeURIComponent(a)}`;try{const f=await o(s,{headers:{Accept:"application/json"},credentials:"include"});if(f.status===404)return!1;if(f.ok||f.status===409)return!0}catch{}}async function i1(a,i,o,s=3){const f=l1(a,Math.max(s*2,5)),d=[];for(const h of f)if(await Gv(h,i,o)===!1&&d.push(h),d.length>=s)break;return d}async function Up(a,i,o=fetch){const s=qi(a);if(Oo(s))return{available:!1,suggestions:[]};const d=await Gv(s,i,o);return d===!1||d===void 0?{available:!0,suggestions:[]}:{available:!1,suggestions:await i1(s,i,o)}}function c1(){try{const a=sessionStorage.getItem("provisionCode")?.trim();return a||void 0}catch{return}}function Fv(){try{sessionStorage.removeItem("provisionCode")}catch{}}function Kv(a,i=c1()){const o={name:a.trim()};return i&&(o.settings={provisionCode:i}),o}async function o1(a){const i=await a.json().catch(()=>{});return i?.message||i?.error}function r1(a){return a?/There already is a resource at/i.test(a)||/Username already taken/i.test(a):!1}function Hp(a){return{Accept:"application/json",Authorization:`CSS-Account-Token ${a}`}}async function s1(a){const i=a.fetchImpl??fetch;let o=await i(a.accountCreateUrl,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({})});if(!o.ok)throw new Error((await o.json().catch(()=>({}))).message||"Failed to create account");const s=await o.json().catch(()=>({})),f=typeof s.authorization=="string"?s.authorization:"";if(!f)throw new Error("Account token not returned");if(o=await i(a.idpIndex,{headers:Hp(f),credentials:"include"}),!o.ok)throw new Error((await o.json().catch(()=>({}))).message||"Failed to load account controls");const d=await o.json().catch(()=>({})),h=d.controls?.password?.create,p=d.controls?.password?.login;if(!h)throw new Error("Password endpoint not found");if(!p)throw new Error("Login endpoint not found");if(o=await i(h,{method:"POST",headers:{...Hp(f),"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({email:a.email,password:a.password})}),!o.ok)throw new Error((await o.json().catch(()=>({}))).message||"Failed to set password");return{loginUrl:p}}async function u1(a,i,o,s=15e3){const f=Date.now()+s;let d=o?.pod,h=o?.webId;for(;Date.now()<f;){try{if(!d&&!h){const p=await a(i,{headers:{Accept:"application/json"},credentials:"include"});if(p.ok){const v=await p.json().catch(()=>({}));d=v.controls?.account?.pod,h=v.controls?.account?.webId}}if(h){const p=await a(h,{headers:{Accept:"application/json"},credentials:"include"});if(p.ok){const v=await p.json().catch(()=>({}));if(Object.keys(v.webIdLinks??{}).length>0)return!0}}if(d){const p=await a(d,{headers:{Accept:"application/json"},credentials:"include"});if(p.ok){const v=await p.json().catch(()=>({}));if(Object.keys(v.pods??{}).length>0)return!0}}}catch{}await new Promise(p=>setTimeout(p,500))}return!1}async function f1(a){const i=a.fetchImpl??fetch,{idpIndex:o,username:s}=a;let f=await i(o,{headers:{Accept:"application/json"},credentials:"include"});const d=await f.json().catch(()=>({})),h=d.controls?.account?.pod;if(!h)throw new Error("Pod creation endpoint not found");if(f=await i(h,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify(Kv(s))}),!f.ok){const v=await o1(f);throw r1(v)?new Error("Username is already taken. Your account was created; sign in and choose another Pod name."):new Error(v||"Failed to create pod")}await f.json().catch(()=>({})),Fv(),await u1(i,o,d.controls?.account);const p=await i("/.account/oidc/consent/",{headers:{Accept:"application/json"},credentials:"include"});return p.ok&&(await p.json().catch(()=>({}))).client?{redirectedToConsent:!0}:{redirectedToConsent:!1}}function Hu({initialIsRegister:a=!1}){const{controls:i,idpIndex:o,isLoggedIn:s,authenticating:f}=$t(),d=Un(),[h,p]=g.useState(!1),[v,y]=g.useState(a),[S,b]=g.useState(""),[C,j]=g.useState(""),[D,w]=g.useState(""),[T,z]=g.useState(!1),[R,M]=g.useState(!1),[q,Q]=g.useState(null),[Z,Y]=g.useState([]),le=C.length>0&&D.length>0&&C===D,oe=qi(S),ae=v?Oo(oe):void 0;if(g.useEffect(()=>{const te=e1();te&&Ca(te)},[]),g.useEffect(()=>{if(!v){M(!1),Q(null),Y([]);return}if(!oe){M(!1),Q(null),Y([]);return}if(ae){M(!1),Q(!1),Y([]);return}let te=!1;M(!0);const O=window.setTimeout(async()=>{const L=await Up(oe,o);te||(M(!1),Q(L.available),Y(L.suggestions))},300);return()=>{te=!0,window.clearTimeout(O)}},[o,v,oe,ae]),s)return u.jsx(Dn,{to:"/.account/account/",replace:!0});const se=[{icon:kv,title:"Your AI Secretary Never Stops",desc:"Runs 24/7, even when you are not talking to it"},{icon:Yv,title:"All Your Pieces, In One Place",desc:"Data, memory, and working context come back into one system"},{icon:Yi,title:"One Secretary, Many Agents",desc:"One aligned layer can direct many agents while keeping privacy and control inside your boundary"}],W=async te=>{te.preventDefault(),p(!0);const O=new FormData(te.currentTarget),L=O.get("email"),G=O.get("password");try{if(v){const ne=O.get("confirmPassword"),fe=qi(O.get("username")),N=Oo(fe);if(G!==ne){alert("Passwords do not match"),p(!1);return}if(N){alert(N),p(!1);return}const X=await Up(fe,o);if(!X.available){Q(!1),Y(X.suggestions),alert("Username is already taken"),p(!1);return}const{loginUrl:J}=await s1({accountCreateUrl:i?.account?.create||"/.account/account/",email:L,password:G,idpIndex:o});let ee=await fetch(J,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({email:L,password:G})});if(!ee.ok)throw new Error((await ee.json().catch(()=>({}))).message||"Auto-login failed");const he=await f1({idpIndex:o,username:fe});window.location.href=he.redirectedToConsent?"/.account/oidc/consent/":"/.account/account/"}else{const ne=await fetch(i?.password?.login||"/.account/login/password/",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({email:L,password:G})}),fe=await ne.json().catch(()=>({}));if(ne.ok){const N=ne.headers.get("Location");if(fe.location){window.location.href=fe.location;return}if(N){window.location.href=N;return}const X=IS();if(X){window.location.href=X;return}try{if((await fetch("/.account/oidc/consent/",{headers:{Accept:"application/json"},credentials:"include"})).ok){window.location.href="/.account/oidc/consent/";return}}catch{}window.location.href="/.account/account/"}else alert(fe.message||"Login failed")}}catch(ne){alert(ne.message||"Operation failed")}finally{p(!1)}},ce=()=>{y(!v),b(""),j(""),w(""),M(!1),Q(null),Y([])},I=async()=>{if(i?.oidc?.cancel){z(!0);try{const O=await(await fetch(i.oidc.cancel,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include"})).json();O.location&&(window.location.href=O.location)}catch{alert("Failed to cancel"),z(!1)}}};return u.jsxs("div",{className:"min-h-screen bg-zinc-50 text-zinc-900 font-sans flex items-center justify-center p-4 lg:p-8",children:[u.jsxs("div",{className:"fixed inset-0 overflow-hidden pointer-events-none",children:[u.jsx("div",{className:"absolute top-0 left-1/4 w-[800px] h-[600px] bg-[#7C4DFF]/5 rounded-full blur-[150px]"}),u.jsx("div",{className:"absolute bottom-0 right-1/4 w-[600px] h-[400px] bg-[#7C4DFF]/3 rounded-full blur-[100px]"})]}),u.jsxs("div",{className:"w-full max-w-6xl grid lg:grid-cols-2 gap-8 lg:gap-16 items-center relative z-10",children:[u.jsx("div",{className:"hidden lg:block px-8",children:u.jsxs("div",{className:"max-w-md ml-auto",children:[u.jsxs("div",{className:"flex items-center gap-3 mb-8",children:[u.jsx("div",{className:"w-12 h-12 bg-[#7C4DFF] rounded-xl shadow-lg shadow-[#7C4DFF]/20 flex items-center justify-center",children:u.jsx("div",{className:"w-6 h-6 border-2 border-white rounded opacity-90"})}),u.jsxs("div",{children:[u.jsx("div",{className:"text-2xl font-bold leading-tight",children:"Xpod"}),u.jsx("div",{className:"text-[10px] text-zinc-500 leading-tight",children:"Personal Messages Platform"})]})]}),u.jsxs("h1",{className:"text-2xl xl:text-3xl font-bold leading-tight mb-4",children:["Simplify Life with ",u.jsx("span",{className:"text-[#7C4DFF]",children:"Your AI Secretary"})]}),u.jsx("p",{className:"text-zinc-500 text-sm leading-relaxed mb-10",children:"An AI that never stops, knows your whole life, works for you—while guarding your privacy."}),u.jsx("div",{className:"space-y-4",children:u.jsx("div",{className:"space-y-3",children:se.map(({icon:te,title:O,desc:L})=>u.jsxs("div",{className:"flex gap-3",children:[u.jsx("div",{className:"w-8 h-8 bg-white border border-zinc-200 rounded-lg flex items-center justify-center shrink-0 shadow-sm",children:u.jsx(te,{className:"w-4 h-4 text-[#7C4DFF]"})}),u.jsxs("div",{children:[u.jsx("h3",{className:"text-xs font-medium text-zinc-900",children:O}),u.jsx("p",{className:"text-[10px] text-zinc-500",children:L})]})]},O))})}),u.jsx("div",{className:"mt-12",children:u.jsxs("p",{className:"text-[10px] text-zinc-400",children:["Powered by ",u.jsx("a",{href:"https://solidproject.org",target:"_blank",rel:"noopener",className:"text-[#7C4DFF] hover:text-[#6B3FE8]",children:"Solid Protocol"})]})})]})}),u.jsx("div",{className:"w-full max-w-sm mx-auto lg:mx-0",children:u.jsxs("div",{className:"bg-white border border-zinc-200 rounded-3xl p-6 lg:p-8 shadow-xl shadow-zinc-200/50",children:[u.jsxs("div",{className:"lg:hidden flex items-center gap-3 mb-8",children:[u.jsx("div",{className:"w-10 h-10 bg-[#7C4DFF] rounded-xl flex items-center justify-center",children:u.jsx("div",{className:"w-5 h-5 border-2 border-white rounded opacity-90"})}),u.jsxs("div",{children:[u.jsx("div",{className:"text-xl font-bold leading-tight",children:"Xpod"}),u.jsx("div",{className:"text-[10px] text-zinc-500 leading-tight",children:"Personal Messages Platform"})]})]}),u.jsxs("div",{className:"mb-6",children:[u.jsx("h2",{className:"text-xl font-bold",children:v?"Create account":"Welcome back"}),u.jsx("p",{className:"text-zinc-500 text-xs mt-1",children:v?"Create your Xpod account to get started.":"Sign in to continue your identity workspace."})]}),u.jsxs("form",{className:"space-y-4",onSubmit:W,children:[u.jsxs("div",{className:"space-y-3",children:[v&&u.jsxs("div",{className:"relative",children:[u.jsx(qv,{className:$e("absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4",ae&&S.length>0?"text-amber-500":"text-zinc-400")}),u.jsx("input",{name:"username",type:"text",required:!0,autoCapitalize:"none",autoCorrect:"off",spellCheck:!1,value:S,onChange:te=>b(te.target.value),className:$e("block w-full pl-10 pr-4 py-2.5 bg-zinc-50 border rounded-xl text-sm placeholder:text-zinc-400 focus:outline-none transition-colors",ae&&S.length>0||q===!1?"border-amber-300 focus:border-amber-500":q?"border-emerald-300 focus:border-emerald-500":"border-zinc-200 focus:border-[#7C4DFF]"),placeholder:"Username"})]}),u.jsxs("div",{className:"relative",children:[u.jsx(Lu,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-zinc-400"}),u.jsx("input",{name:"email",type:"email",required:!0,className:"block w-full pl-10 pr-4 py-2.5 bg-zinc-50 border border-zinc-200 rounded-xl text-sm placeholder:text-zinc-400 focus:border-[#7C4DFF] focus:outline-none transition-colors",placeholder:"Email"})]}),u.jsxs("div",{className:"relative",children:[u.jsx(Bi,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-zinc-400"}),u.jsx("input",{name:"password",type:"password",required:!0,value:C,onChange:te=>j(te.target.value),className:"block w-full pl-10 pr-4 py-2.5 bg-zinc-50 border border-zinc-200 rounded-xl text-sm placeholder:text-zinc-400 focus:border-[#7C4DFF] focus:outline-none transition-colors",placeholder:"Password"})]}),v&&u.jsxs("div",{className:"relative",children:[le?u.jsx(zn,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-emerald-500"}):u.jsx(Bi,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-zinc-400"}),u.jsx("input",{name:"confirmPassword",type:"password",required:!0,value:D,onChange:te=>w(te.target.value),className:$e("block w-full pl-10 pr-4 py-2.5 bg-zinc-50 border rounded-xl text-sm placeholder:text-zinc-400 focus:outline-none transition-colors",le?"border-emerald-300 focus:border-emerald-500":"border-zinc-200 focus:border-[#7C4DFF]"),placeholder:"Confirm password"})]})]}),v&&u.jsx("p",{className:$e("text-[11px] leading-relaxed",ae&&S.length>0||q===!1?"text-amber-600":q?"text-emerald-600":"text-zinc-500"),children:ae&&S.length>0?ae:R?"Checking username availability...":oe&&q===!1?"Username is already taken.":oe&&q?"Username is available.":"Username becomes your first Pod URL. Use 3-63 lowercase letters, numbers, or hyphens."}),v&&Z.length>0&&!ae&&q===!1&&u.jsx("div",{className:"flex flex-wrap gap-2",children:Z.map(te=>u.jsx("button",{type:"button",onClick:()=>b(te),className:"rounded-full border border-zinc-200 bg-white px-3 py-1 text-[11px] text-zinc-600 hover:border-[#7C4DFF] hover:text-[#7C4DFF]",children:te},te))}),!v&&u.jsx("div",{className:"flex justify-end",children:u.jsx("button",{type:"button",onClick:()=>d("/.account/login/password/forgot/"),className:"text-[11px] text-[#7C4DFF] hover:text-[#6B3FE8]",children:"Forgot password?"})}),u.jsx("button",{type:"submit",disabled:h||T||!!(v&&(ae||R||q===!1)),className:"w-full py-3 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-sm font-medium flex items-center justify-center gap-2 disabled:opacity-50 transition-colors",children:h?u.jsx(Ta,{className:"w-4 h-4 animate-spin"}):u.jsxs(u.Fragment,{children:[v?"Sign up":"Sign in",u.jsx(Yo,{className:"h-4 w-4"})]})}),f&&!v&&u.jsx("button",{type:"button",onClick:I,disabled:T||h,className:"w-full py-3 border border-zinc-200 hover:bg-zinc-100 text-zinc-600 rounded-xl text-sm font-medium flex items-center justify-center gap-2 disabled:opacity-50 transition-colors",children:T?u.jsx(Ta,{className:"w-4 h-4 animate-spin"}):"Cancel"})]}),u.jsx("div",{className:"mt-6 pt-6 border-t border-zinc-100 text-center",children:u.jsxs("p",{className:"text-[11px] text-zinc-500",children:[v?"Already have an account? ":"Don't have an account? ",u.jsx("button",{onClick:ce,className:"text-[#7C4DFF] font-medium hover:text-[#6B3FE8]",children:v?"Sign in":"Sign up"})]})})]})})]})]})}function d1(){const{isLoggedIn:a,hasOidcPending:i}=$t();return a&&i?u.jsx(Dn,{to:"/.account/oidc/consent/",replace:!0}):a?u.jsx(Dn,{to:"/.account/account/",replace:!0}):u.jsx(Hu,{})}function h1(){const a=Un(),{isLoggedIn:i}=$t(),o=[{icon:kv,title:"Your AI Secretary Never Stops",desc:"Runs 24/7, even when you're not talking to it"},{icon:Yv,title:"One Place for Your Whole Life",desc:"All your messages together in one place"},{icon:Yi,title:"One Secretary, Many Agents",desc:"Full power, full privacy"}];return u.jsxs("div",{className:"min-h-screen bg-zinc-50 text-zinc-900 font-sans flex items-center justify-center p-4 lg:p-8",children:[u.jsxs("div",{className:"fixed inset-0 overflow-hidden pointer-events-none",children:[u.jsx("div",{className:"absolute top-0 left-1/4 w-[800px] h-[600px] bg-[#7C4DFF]/5 rounded-full blur-[150px]"}),u.jsx("div",{className:"absolute bottom-0 right-1/4 w-[600px] h-[400px] bg-[#7C4DFF]/3 rounded-full blur-[100px]"})]}),u.jsxs("div",{className:"w-full max-w-6xl grid lg:grid-cols-2 gap-8 lg:gap-16 items-center relative z-10",children:[u.jsx("div",{className:"hidden lg:block px-8",children:u.jsxs("div",{className:"max-w-md ml-auto",children:[u.jsxs("div",{className:"flex items-center gap-3 mb-8",children:[u.jsx("div",{className:"w-12 h-12 bg-[#7C4DFF] rounded-xl shadow-lg shadow-[#7C4DFF]/20 flex items-center justify-center",children:u.jsx("div",{className:"w-6 h-6 border-2 border-white rounded opacity-90"})}),u.jsxs("div",{children:[u.jsx("div",{className:"text-2xl font-bold leading-tight",children:"Xpod"}),u.jsx("div",{className:"text-[10px] text-zinc-500 leading-tight",children:"Personal Messages Platform"})]})]}),u.jsxs("h1",{className:"text-2xl xl:text-3xl font-bold leading-tight mb-4",children:["Simplify Life with ",u.jsx("span",{className:"text-[#7C4DFF]",children:"Your AI Secretary"})]}),u.jsx("p",{className:"text-zinc-500 text-sm leading-relaxed mb-10",children:"An AI that never stops, knows your whole life, works for you—while guarding your privacy."}),u.jsx("div",{className:"space-y-4",children:u.jsx("div",{className:"space-y-3",children:o.map(({icon:s,title:f,desc:d})=>u.jsxs("div",{className:"flex gap-3",children:[u.jsx("div",{className:"w-8 h-8 bg-white border border-zinc-200 rounded-lg flex items-center justify-center shrink-0 shadow-sm",children:u.jsx(s,{className:"w-4 h-4 text-[#7C4DFF]"})}),u.jsxs("div",{children:[u.jsx("h3",{className:"text-xs font-medium text-zinc-900",children:f}),u.jsx("p",{className:"text-[10px] text-zinc-500",children:d})]})]},f))})}),u.jsx("div",{className:"mt-12",children:u.jsxs("p",{className:"text-[10px] text-zinc-400",children:["Powered by ",u.jsx("a",{href:"https://solidproject.org",target:"_blank",rel:"noopener",className:"text-[#7C4DFF] hover:text-[#6B3FE8]",children:"Solid Protocol"})]})})]})}),u.jsx("div",{className:"w-full max-w-sm mx-auto lg:mx-0",children:u.jsxs("div",{className:"bg-white border border-zinc-200 rounded-3xl p-6 lg:p-8 shadow-xl shadow-zinc-200/50",children:[u.jsxs("div",{className:"lg:hidden flex items-center gap-3 mb-8",children:[u.jsx("div",{className:"w-10 h-10 bg-[#7C4DFF] rounded-xl flex items-center justify-center",children:u.jsx("div",{className:"w-5 h-5 border-2 border-white rounded opacity-90"})}),u.jsxs("div",{children:[u.jsx("div",{className:"text-xl font-bold leading-tight",children:"Xpod"}),u.jsx("div",{className:"text-[10px] text-zinc-500 leading-tight",children:"Personal Messages Platform"})]})]}),u.jsxs("div",{className:"lg:hidden mb-8",children:[u.jsxs("h1",{className:"text-xl font-bold leading-tight mb-3",children:["Simplify Life with ",u.jsx("span",{className:"text-[#7C4DFF]",children:"Your AI Secretary"})]}),u.jsx("p",{className:"text-zinc-500 text-xs leading-relaxed mb-6",children:"An AI that never stops, knows your whole life, works for you—while guarding your privacy."}),u.jsx("div",{className:"space-y-2",children:o.map(({icon:s,title:f,desc:d})=>u.jsxs("div",{className:"flex gap-2",children:[u.jsx(s,{className:"w-4 h-4 text-[#7C4DFF] shrink-0 mt-0.5"}),u.jsxs("div",{children:[u.jsx("span",{className:"text-xs font-medium text-zinc-900",children:f}),u.jsxs("span",{className:"text-xs text-zinc-500",children:[" - ",d]})]})]},f))})]}),u.jsxs("div",{className:"mb-6",children:[u.jsx("h2",{className:"text-xl font-bold",children:"About Xpod"}),u.jsx("p",{className:"text-zinc-500 text-xs mt-1",children:"Learn more about the platform and resources."})]}),u.jsxs("div",{className:"space-y-3 mb-6",children:[u.jsxs("a",{href:"https://solidproject.org",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-3 p-3 bg-zinc-50 border border-zinc-200 rounded-xl hover:border-[#7C4DFF]/50 transition-colors group",children:[u.jsx("div",{className:"w-8 h-8 bg-white border border-zinc-200 rounded-lg flex items-center justify-center",children:u.jsx(_p,{className:"w-4 h-4 text-zinc-400 group-hover:text-[#7C4DFF]"})}),u.jsxs("div",{children:[u.jsx("div",{className:"text-sm font-medium text-zinc-900",children:"Solid Project"}),u.jsx("div",{className:"text-xs text-zinc-500",children:"Learn about the protocol"})]})]}),u.jsxs("a",{href:"https://github.com",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-3 p-3 bg-zinc-50 border border-zinc-200 rounded-xl hover:border-[#7C4DFF]/50 transition-colors group",children:[u.jsx("div",{className:"w-8 h-8 bg-white border border-zinc-200 rounded-lg flex items-center justify-center",children:u.jsx(_p,{className:"w-4 h-4 text-zinc-400 group-hover:text-[#7C4DFF]"})}),u.jsxs("div",{children:[u.jsx("div",{className:"text-sm font-medium text-zinc-900",children:"GitHub"}),u.jsx("div",{className:"text-xs text-zinc-500",children:"View source code"})]})]})]}),u.jsxs("div",{className:"pt-4 border-t border-zinc-100",children:[u.jsx("p",{className:"text-[10px] text-zinc-400 mb-4",children:"Version 0.1.0 · Built with Solid Protocol"}),u.jsxs("button",{onClick:()=>a(i?"/.account/account/":"/.account/login/password/"),className:"w-full py-3 border border-zinc-200 hover:bg-zinc-50 text-zinc-700 rounded-xl text-sm font-medium flex items-center justify-center gap-2 transition-colors",children:[u.jsx(Uv,{className:"w-4 h-4"}),i?"Back to Dashboard":"Back to Login"]})]})]})})]})]})}function m1(a){try{const o=new URL(a).pathname.split("/").filter(Boolean);return o[o.length-1]}catch{return}}function p1(a){const i=a?.pods;return!i||typeof i!="object"?[]:Object.entries(i).map(([o,s])=>({id:o,resourceUrl:s,name:m1(o)}))}function Su(a,i){return`sk-${btoa(`${a}:${i}`)}`}function v1(){if(typeof window>"u")return"https://api.undefineds.co/v1";const{protocol:a,hostname:i,origin:o}=window.location;return i.startsWith("id.")?`${a}//api.${i.slice(3)}/v1`:i.startsWith("api.")?`${o}/v1`:`${o.replace(/\/$/,"")}/v1`}function g1(){const{controls:a,refetchControls:i,hasOidcPending:o}=$t(),s=Un(),[f,d]=g.useState(!1),[h,p]=g.useState([]),[v,y]=g.useState([]),[S,b]=g.useState(!1),[C,j]=g.useState(!1),[D,w]=g.useState(""),[T,z]=g.useState(!1),[R,M]=g.useState(""),[q,Q]=g.useState([]),[Z,Y]=g.useState(null),[le,oe]=g.useState(!1),[ae,se]=g.useState(""),[W,ce]=g.useState(""),[I,te]=g.useState(null),[O,L]=g.useState(!1),G=g.useRef(null),ne=v1();g.useEffect(()=>{const P=ue=>{G.current&&!G.current.contains(ue.target)&&L(!1)};return document.addEventListener("mousedown",P),()=>document.removeEventListener("mousedown",P)},[]);const fe=async(P,ue)=>{try{await navigator.clipboard.writeText(P),te(ue),setTimeout(()=>te(null),2e3)}catch{}},N=async()=>{try{let P=[];if(a?.account?.webId){const ue=await fetch(a.account.webId,{headers:{Accept:"application/json"},credentials:"include"});if(ue.ok){const Ae=(await ue.json()).webIdLinks||{};P=Object.keys(Ae),p(P)}else p([])}else p([]);if(a?.account?.pod){const ue=await fetch(a.account.pod,{headers:{Accept:"application/json"},credentials:"include"});if(ue.ok){const ge=await ue.json(),Ae=p1(ge);y(Ae),b(Ae.length===0&&P.length>0)}else y([]),b(P.length>0)}else y([]),b(!1);if(a?.account?.clientCredentials){const ue=await fetch(a.account.clientCredentials,{headers:{Accept:"application/json"},credentials:"include"});if(ue.ok){const Ae=(await ue.json()).clientCredentials||{};Q(Object.entries(Ae).map(([tt])=>({id:tt})))}else Q([])}}catch(P){console.error("Failed to fetch account data:",P)}};g.useEffect(()=>{N()},[a]);const X=async()=>{if(a?.account?.logout){d(!0);try{(await fetch(a.account.logout,{method:"POST",headers:{Accept:"application/json"},credentials:"include"})).ok&&(await i(),s("/.account/"))}catch{alert("Logout failed")}finally{d(!1)}}},J=async P=>{if(P.preventDefault(),!(!a?.account?.pod||!D.trim())){d(!0);try{const ue=await fetch(a.account.pod,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify(Kv(D))});if(ue.ok)Fv(),w(""),j(!1),await i(),await N(),o&&s("/.account/oidc/consent/");else{const ge=await ue.json().catch(()=>({}));alert(ge.message||"Failed to create pod")}}catch{alert("Network error")}finally{d(!1)}}},ee=async P=>{if(P.preventDefault(),!(!a?.account?.webId||!R.trim())){d(!0);try{const ue=await fetch(a.account.webId,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({webId:R.trim()})});if(ue.ok)M(""),z(!1),await N();else{const ge=await ue.json().catch(()=>({}));alert(ge.message||"Failed to link WebID")}}catch{alert("Network error")}finally{d(!1)}}},he=async P=>{if(confirm(`Delete pod ${P}? This cannot be undone.`)){d(!0);try{(await fetch(P,{method:"DELETE",headers:{Accept:"application/json"},credentials:"include"})).ok?await N():alert("Failed to delete pod")}catch{alert("Network error")}finally{d(!1)}}},pe=async P=>{if(P.preventDefault(),!(!a?.account?.clientCredentials||!ae||!W.trim())){d(!0);try{const ue=await fetch(a.account.clientCredentials,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({name:W.trim(),webId:ae})});if(ue.ok){const ge=await ue.json();Y({id:ge.id,secret:ge.secret}),oe(!1),se(""),ce(""),await N()}else{const ge=await ue.json().catch(()=>({}));alert(ge.message||"Failed to create credential")}}catch{alert("Network error")}finally{d(!1)}}},$=()=>{if(h.length===0){alert("Please create a Pod first to get a WebID");return}se(h[0]),ce(""),oe(!0)},be=async P=>{if(confirm("Delete this credential? This cannot be undone.")){d(!0);try{(await fetch(P,{method:"DELETE",headers:{Accept:"application/json"},credentials:"include"})).ok?await N():alert("Failed to delete credential")}catch{alert("Network error")}finally{d(!1)}}};return u.jsxs("div",{className:"min-h-screen bg-zinc-50 text-zinc-900 font-sans",children:[u.jsx("div",{className:"fixed inset-0 overflow-hidden pointer-events-none",children:u.jsx("div",{className:"absolute top-0 left-1/2 -translate-x-1/2 w-[1000px] h-[500px] bg-[#7C4DFF]/5 rounded-full blur-[120px]"})}),u.jsx("header",{className:"relative z-10 border-b border-zinc-200 bg-white/80 backdrop-blur",children:u.jsxs("div",{className:"max-w-2xl mx-auto px-4 py-4 flex items-center justify-between",children:[u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx("div",{className:"w-8 h-8 bg-[#7C4DFF] rounded-lg flex items-center justify-center",children:u.jsx("div",{className:"w-4 h-4 border-2 border-white rounded opacity-80"})}),u.jsxs("div",{children:[u.jsx("div",{className:"font-semibold leading-tight",children:"Xpod"}),u.jsx("div",{className:"text-[10px] text-zinc-500 leading-tight",children:"Personal Messages Platform"})]})]}),u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsxs(Ro,{to:"/.account/about/",className:"flex items-center gap-1.5 px-3 py-1.5 text-xs text-zinc-500 hover:text-zinc-900 hover:bg-zinc-100 rounded-lg transition-colors",children:[u.jsx(YS,{className:"w-3.5 h-3.5"}),"About"]}),u.jsxs("button",{onClick:X,disabled:f,className:"flex items-center gap-2 px-3 py-1.5 text-xs text-zinc-500 hover:text-zinc-900 hover:bg-zinc-100 rounded-lg transition-colors",children:[u.jsx(KS,{className:"w-3.5 h-3.5"}),"Sign out"]})]})]})}),u.jsxs("main",{className:"relative z-10 max-w-2xl mx-auto px-4 py-8 space-y-8",children:[o&&u.jsx("div",{className:"p-4 bg-[#7C4DFF]/10 border border-[#7C4DFF]/30 rounded-xl",children:u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx("div",{className:"p-2 bg-[#7C4DFF]/20 rounded-lg",children:u.jsx(Yi,{className:"w-5 h-5 text-[#7C4DFF]"})}),u.jsxs("div",{children:[u.jsx("p",{className:"text-sm font-medium text-zinc-900",children:"Authorization Pending"}),u.jsx("p",{className:"text-xs text-zinc-500",children:"An application is waiting for your authorization"})]})]}),u.jsxs(Ro,{to:"/.account/oidc/consent/",className:"flex items-center gap-2 px-4 py-2 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-sm font-medium rounded-lg transition-colors",children:["Continue",u.jsx(Yo,{className:"w-4 h-4"})]})]})}),u.jsx("h1",{className:"text-2xl font-bold",children:"Account Dashboard"}),u.jsxs("section",{children:[u.jsxs("div",{className:"flex justify-between items-center mb-1",children:[u.jsxs("h2",{className:"text-sm font-semibold text-zinc-700 flex items-center gap-2",children:[u.jsx(BS,{className:"w-4 h-4 text-[#7C4DFF]"}),"Storage"]}),a?.account?.pod&&u.jsxs("button",{onClick:()=>j(!0),className:"flex items-center gap-1.5 px-3 py-1.5 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-xs rounded-lg transition-colors",children:[u.jsx(bu,{className:"w-3.5 h-3.5"}),"Add Pod"]})]}),u.jsx("p",{className:"text-[11px] text-zinc-500 mb-3",children:"Your personal data stores (Pods). You own and control all data stored here."}),C&&u.jsxs("form",{onSubmit:J,className:"mb-4 p-4 bg-white border border-zinc-200 rounded-xl shadow-sm",children:[u.jsx("label",{className:"block text-xs text-zinc-500 mb-2",children:"Pod Name"}),u.jsxs("div",{className:"flex gap-2",children:[u.jsx("input",{type:"text",value:D,onChange:P=>w(P.target.value),placeholder:"my-pod",className:"flex-1 px-3 py-2 bg-zinc-50 border border-zinc-200 rounded-lg text-sm focus:border-[#7C4DFF] focus:outline-none",required:!0}),u.jsx("button",{type:"submit",disabled:f,className:"px-4 py-2 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-xs rounded-lg disabled:opacity-50",children:f?"Creating...":"Create"}),u.jsx("button",{type:"button",onClick:()=>j(!1),className:"px-3 py-2 text-zinc-500 hover:text-zinc-900 text-xs",children:"Cancel"})]})]}),u.jsx("div",{className:"bg-white border border-zinc-200 rounded-xl shadow-sm",children:v.length===0?u.jsx("div",{className:"p-4",children:u.jsx("p",{className:"text-xs text-zinc-500 mb-3",children:S?"WebID 已存在,Pod 信息正在同步。请稍等后刷新页面。":"No Pods found. Create one to get started."})}):u.jsx("ul",{className:"divide-y divide-zinc-100",children:v.map(P=>u.jsxs("li",{className:"p-3 flex items-center justify-between",children:[u.jsxs("div",{className:"flex items-center gap-3 overflow-hidden",children:[u.jsx(DS,{className:"w-4 h-4 text-zinc-400 shrink-0"}),u.jsxs("div",{className:"min-w-0",children:[u.jsx("a",{href:P.id,target:"_blank",rel:"noopener",className:"text-xs font-mono text-[#7C4DFF] hover:text-[#6B3FE8] truncate block",children:P.id}),P.name&&u.jsxs("p",{className:"text-[11px] text-zinc-500 truncate",children:["Pod: ",P.name]})]})]}),u.jsx("button",{onClick:()=>he(P.resourceUrl),className:"p-2 text-zinc-400 hover:text-red-500 hover:bg-red-50 rounded-lg transition-colors",title:"Delete Pod",children:u.jsx(Dp,{className:"w-4 h-4"})})]},P.id))})})]}),u.jsxs("section",{children:[u.jsxs("div",{className:"flex justify-between items-center mb-1",children:[u.jsxs("h2",{className:"text-sm font-semibold text-zinc-700 flex items-center gap-2",children:[u.jsx(qv,{className:"w-4 h-4 text-[#7C4DFF]"}),"Identity"]}),a?.account?.webId&&u.jsxs("button",{onClick:()=>z(!0),className:"flex items-center gap-1.5 px-3 py-1.5 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-xs rounded-lg transition-colors",children:[u.jsx(bu,{className:"w-3.5 h-3.5"}),"Link WebID"]})]}),u.jsx("p",{className:"text-[11px] text-zinc-500 mb-3",children:"Your unique decentralized identifiers (WebIDs). This is your identity on the Solid network."}),T&&u.jsxs("form",{onSubmit:ee,className:"mb-4 p-4 bg-white border border-zinc-200 rounded-xl shadow-sm",children:[u.jsx("label",{className:"block text-xs text-zinc-500 mb-2",children:"WebID URL"}),u.jsxs("div",{className:"flex gap-2",children:[u.jsx("input",{type:"url",value:R,onChange:P=>M(P.target.value),placeholder:"https://example.com/profile/card#me",className:"flex-1 px-3 py-2 bg-zinc-50 border border-zinc-200 rounded-lg text-sm focus:border-[#7C4DFF] focus:outline-none",required:!0}),u.jsx("button",{type:"submit",disabled:f,className:"px-4 py-2 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-xs rounded-lg disabled:opacity-50",children:f?"Linking...":"Link"}),u.jsx("button",{type:"button",onClick:()=>z(!1),className:"px-3 py-2 text-zinc-500 hover:text-zinc-900 text-xs",children:"Cancel"})]})]}),u.jsx("div",{className:"bg-white border border-zinc-200 rounded-xl shadow-sm",children:h.length===0?u.jsx("p",{className:"p-4 text-xs text-zinc-500",children:"No WebIDs found. Create a Pod first to get a WebID."}):u.jsx("ul",{className:"divide-y divide-zinc-100",children:h.map(P=>u.jsxs("li",{className:"p-3 flex items-center gap-3",children:[u.jsx(US,{className:"w-4 h-4 text-zinc-400 shrink-0"}),u.jsx("a",{href:P,target:"_blank",rel:"noopener",className:"text-xs font-mono text-[#7C4DFF] hover:text-[#6B3FE8] truncate",children:P})]},P))})})]}),u.jsxs("section",{children:[u.jsxs("div",{className:"flex justify-between items-center mb-1",children:[u.jsxs("h2",{className:"text-sm font-semibold text-zinc-700 flex items-center gap-2",children:[u.jsx(xu,{className:"w-4 h-4 text-[#7C4DFF]"}),"Developer Access"]}),a?.account?.clientCredentials&&u.jsxs("button",{onClick:$,disabled:f,className:"flex items-center gap-1.5 px-3 py-1.5 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-xs rounded-lg transition-colors",children:[u.jsx(bu,{className:"w-3.5 h-3.5"}),"New Key"]})]}),u.jsxs("p",{className:"text-[11px] text-zinc-500 mb-3",children:["AI API keys for model endpoints such as ",u.jsx("code",{className:"bg-zinc-100 px-1 py-0.5 rounded",children:"/v1/chat/completions"})," and ",u.jsx("code",{className:"bg-zinc-100 px-1 py-0.5 rounded",children:"/v1/responses"}),". Send as ",u.jsx("code",{className:"bg-zinc-100 px-1 py-0.5 rounded",children:"Authorization: Bearer sk-xxx"}),"."]}),a?.account?.clientCredentials?u.jsxs(u.Fragment,{children:[le&&u.jsxs("form",{onSubmit:pe,className:"mb-4 p-4 bg-white border border-zinc-200 rounded-xl shadow-sm space-y-3",children:[u.jsxs("div",{children:[u.jsx("label",{className:"block text-xs text-zinc-500 mb-1",children:"Key Name"}),u.jsx("input",{type:"text",value:W,onChange:P=>ce(P.target.value),placeholder:"my-app-key",className:"w-full px-3 py-2 bg-zinc-50 border border-zinc-200 rounded-lg text-sm focus:border-[#7C4DFF] focus:outline-none",required:!0})]}),u.jsxs("div",{children:[u.jsx("label",{className:"block text-xs text-zinc-500 mb-1",children:"WebID"}),u.jsxs("div",{className:"relative",ref:G,children:[u.jsxs("button",{type:"button",onClick:()=>L(!O),className:"w-full px-3 py-2 bg-zinc-50 border border-zinc-200 rounded-lg text-sm focus:border-[#7C4DFF] focus:outline-none text-left flex items-center justify-between",children:[u.jsx("span",{className:"truncate text-zinc-700",children:ae||"Select WebID"}),u.jsx(Hv,{className:`w-4 h-4 text-zinc-400 transition-transform ${O?"rotate-180":""}`})]}),O&&u.jsx("div",{className:"absolute z-10 mt-1 w-full bg-white border border-zinc-200 rounded-lg shadow-lg max-h-48 overflow-auto",children:h.map(P=>u.jsx("button",{type:"button",onClick:()=>{se(P),L(!1)},className:`w-full px-3 py-2 text-left text-sm hover:bg-zinc-50 truncate ${ae===P?"bg-[#7C4DFF]/10 text-[#7C4DFF]":"text-zinc-700"}`,children:P},P))}),u.jsx("input",{type:"hidden",name:"webId",value:ae,required:!0})]})]}),u.jsxs("div",{className:"flex gap-2 justify-end",children:[u.jsx("button",{type:"button",onClick:()=>oe(!1),className:"px-3 py-2 text-zinc-500 hover:text-zinc-900 text-xs",children:"Cancel"}),u.jsx("button",{type:"submit",disabled:f,className:"px-4 py-2 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-xs rounded-lg disabled:opacity-50",children:f?"Creating...":"Create"})]})]}),Z&&u.jsx("div",{className:"mb-4 p-4 bg-emerald-50 border border-emerald-200 rounded-xl",children:u.jsxs("div",{className:"flex items-start gap-3",children:[u.jsx("div",{className:"p-2 bg-emerald-100 rounded-lg",children:u.jsx(xu,{className:"w-4 h-4 text-emerald-600"})}),u.jsxs("div",{className:"flex-1",children:[u.jsx("p",{className:"text-sm font-medium text-emerald-700 mb-1",children:"New API Key Created"}),u.jsx("p",{className:"text-xs text-zinc-500 mb-3",children:"Copy your API Key now. It will not be shown again."}),u.jsxs("div",{className:"space-y-3 text-xs font-mono bg-white p-3 rounded-lg border border-zinc-200",children:[u.jsxs("div",{className:"flex items-center justify-between gap-2",children:[u.jsxs("div",{className:"min-w-0",children:[u.jsx("span",{className:"text-zinc-400 select-none",children:"Client ID"}),u.jsx("p",{className:"text-zinc-600 truncate",children:Z.id})]}),u.jsx("button",{onClick:()=>fe(Z.id,"id"),className:"p-1.5 text-zinc-400 hover:text-zinc-900 hover:bg-zinc-100 rounded transition-colors shrink-0",title:"Copy Client ID",children:I==="id"?u.jsx(zn,{className:"w-3.5 h-3.5 text-emerald-500"}):u.jsx(mo,{className:"w-3.5 h-3.5"})})]}),u.jsxs("div",{className:"flex items-center justify-between gap-2",children:[u.jsxs("div",{className:"min-w-0",children:[u.jsx("span",{className:"text-zinc-400 select-none",children:"Client Secret"}),u.jsx("p",{className:"text-zinc-600 break-all",children:Z.secret})]}),u.jsx("button",{onClick:()=>fe(Z.secret,"secret"),className:"p-1.5 text-zinc-400 hover:text-zinc-900 hover:bg-zinc-100 rounded transition-colors shrink-0",title:"Copy Client Secret",children:I==="secret"?u.jsx(zn,{className:"w-3.5 h-3.5 text-emerald-500"}):u.jsx(mo,{className:"w-3.5 h-3.5"})})]}),u.jsxs("div",{className:"flex items-center justify-between gap-2 pt-3 border-t border-zinc-100",children:[u.jsxs("div",{className:"min-w-0",children:[u.jsx("span",{className:"text-zinc-400 select-none",children:"API Key"}),u.jsx("p",{className:"text-emerald-600 break-all font-medium",children:Su(Z.id,Z.secret)})]}),u.jsx("button",{onClick:()=>fe(Su(Z.id,Z.secret),"apikey"),className:"p-1.5 text-zinc-400 hover:text-zinc-900 hover:bg-zinc-100 rounded transition-colors shrink-0",title:"Copy API Key",children:I==="apikey"?u.jsx(zn,{className:"w-3.5 h-3.5 text-emerald-500"}):u.jsx(mo,{className:"w-3.5 h-3.5"})})]})]}),u.jsxs("div",{className:"mt-3 rounded-lg border border-zinc-200 bg-white p-3 text-xs",children:[u.jsx("p",{className:"mb-2 font-medium text-zinc-700",children:"Usage"}),u.jsxs("div",{className:"space-y-2 font-mono text-[11px]",children:[u.jsxs("div",{className:"flex items-start justify-between gap-2",children:[u.jsxs("div",{className:"min-w-0",children:[u.jsx("span",{className:"text-zinc-400 select-none",children:"Base URL"}),u.jsx("p",{className:"break-all text-zinc-600",children:ne})]}),u.jsx("button",{onClick:()=>fe(ne,"baseurl"),className:"p-1.5 text-zinc-400 hover:text-zinc-900 hover:bg-zinc-100 rounded transition-colors shrink-0",title:"Copy Base URL",children:I==="baseurl"?u.jsx(zn,{className:"w-3.5 h-3.5 text-emerald-500"}):u.jsx(mo,{className:"w-3.5 h-3.5"})})]}),u.jsxs("div",{children:[u.jsx("span",{className:"text-zinc-400 select-none",children:"Authorization"}),u.jsxs("p",{className:"break-all text-zinc-600",children:["Bearer ",Su(Z.id,Z.secret)]})]}),u.jsxs("div",{children:[u.jsx("span",{className:"text-zinc-400 select-none",children:"Endpoints"}),u.jsx("p",{className:"break-all text-zinc-600",children:"/chat/completions · /responses · /models"})]})]})]}),u.jsx("button",{onClick:()=>Y(null),className:"mt-2 text-xs text-zinc-500 hover:text-zinc-900 font-medium",children:"Done"})]})]})}),u.jsx("div",{className:"bg-white border border-zinc-200 rounded-xl shadow-sm",children:q.length===0?u.jsx("p",{className:"p-4 text-xs text-zinc-500",children:"No API keys found."}):u.jsx("ul",{className:"divide-y divide-zinc-100",children:q.map(P=>u.jsxs("li",{className:"p-3 flex items-center justify-between",children:[u.jsxs("div",{className:"flex items-center gap-3 overflow-hidden",children:[u.jsx(xu,{className:"w-4 h-4 text-zinc-400 shrink-0"}),u.jsx("span",{className:"text-xs font-mono text-zinc-600 truncate",children:P.id})]}),u.jsx("button",{onClick:()=>be(P.id),className:"p-2 text-zinc-400 hover:text-red-500 hover:bg-red-50 rounded-lg transition-colors",title:"Revoke Key",children:u.jsx(Dp,{className:"w-4 h-4"})})]},P.id))})})]}):u.jsx("div",{className:"bg-white border border-zinc-200 rounded-xl shadow-sm p-4",children:u.jsx("p",{className:"text-xs text-zinc-500",children:"Client credential endpoint not configured."})})]}),u.jsxs("section",{children:[u.jsxs("h2",{className:"text-sm font-semibold text-zinc-700 flex items-center gap-2 mb-3",children:[u.jsx(Yi,{className:"w-4 h-4 text-[#7C4DFF]"}),"Security"]}),u.jsxs("div",{className:"bg-white border border-zinc-200 rounded-xl shadow-sm p-4 flex items-center justify-between",children:[u.jsxs("div",{children:[u.jsx("h3",{className:"text-xs font-medium mb-1",children:"Password"}),u.jsx("p",{className:"text-[10px] text-zinc-500",children:"Update your account password"})]}),u.jsx("a",{href:a?.password?.forgot||"/.account/login/password/forgot/",className:"px-3 py-1.5 bg-zinc-100 hover:bg-zinc-200 text-zinc-700 text-xs rounded-lg transition-colors",children:"Change Password"})]})]})]})]})}function y1(){const{idpIndex:a,isLoggedIn:i,controls:o}=$t(),s=Un(),[f,d]=g.useState(!0),[h,p]=g.useState(null),[v,y]=g.useState(null),[S,b]=g.useState([]),[C,j]=g.useState(""),[D,w]=g.useState(null),[T,z]=g.useState(null),[R,M]=g.useState(!0),q=`${a}oidc/consent/`,Q=`${a}oidc/pick-webid/`,Z=`${a}oidc/cancel`;g.useEffect(()=>{console.log("[Consent] Page loaded, fetching consent info..."),Ca(window.location.href),(async()=>{try{const W=await fetch(q,{headers:{Accept:"application/json"},credentials:"include"});if(console.log("[Consent] GET consent response status:",W.status),W.status===401||W.status===403){w("Please sign in to continue authorization."),d(!1);return}if(!W.ok){const te=await W.json().catch(()=>({}));throw new Error(te.message||"Failed to load consent info")}const ce=await W.json();p(ce.client||{}),y(ce.webId||null);const I=await fetch(Q,{headers:{Accept:"application/json"},credentials:"include"});if(I.ok){const O=(await I.json()).webIds||[];b(O),ce.webId&&O.includes(ce.webId)?j(ce.webId):O.length>0&&j(O[0])}}catch(W){w(W.message||"Failed to load consent info")}finally{d(!1)}})()},[q,Q]);const Y=W=>{try{const ce=new URL(W),I=ce.pathname.split("/").filter(Boolean);return{provider:ce.host,podId:I[0]??"-",full:W}}catch{return{provider:"-",podId:"-",full:W}}},le=async W=>{try{await navigator.clipboard.writeText(W),z(W),setTimeout(()=>z(null),1200)}catch{z(null)}},oe=async()=>{try{o?.account?.logout&&await fetch(o.account.logout,{method:"POST",credentials:"include"}),window.location.href="/.account/login/password/"}catch{window.location.href="/.account/login/password/"}},ae=async W=>{console.log("[Consent] handleConsent called, allow:",W);try{if(d(!0),w(null),!W){console.log("[Consent] Cancelling...");const G=await(await fetch(Z,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({})})).json();console.log("[Consent] Cancel response:",G),G.location&&(window.location.href=G.location);return}if(C&&C!==v){console.log("[Consent] Picking WebID:",C);const L=await fetch(Q,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({webId:C,remember:!1})}),G=await L.json();if(!L.ok)throw new Error(G.message||"Failed to select WebID");G.location&&await fetch(G.location,{credentials:"include"})}const ce=await fetch(q,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({remember:R})}),I=await ce.json();if(console.log("[Consent] Response:",ce.status,I),console.log("[Consent] Location header:",ce.headers.get("Location")),!ce.ok)throw new Error(I.message||"Consent failed");const te=ce.headers.get("Location"),O=I.location||te;console.log("[Consent] Redirect URL:",O),O?window.location.href=O:(w("Authorization completed but no redirect URL received. The application may need to restart the login flow."),d(!1))}catch(ce){w(ce.message||"Consent failed"),d(!1)}},se=S.length>0?S:v?[v]:[];return u.jsxs(Ki,{title:"Authorize",subtitle:`${h?.client_name||"Application"} requests access`,icon:Yi,children:[!i&&u.jsxs("div",{className:"mb-4 bg-amber-50 border border-amber-200 rounded-xl p-3 text-zinc-600 text-[11px] space-y-3",children:[u.jsx("p",{children:"Sign in to approve this request and choose which WebID to share."}),u.jsx("button",{onClick:()=>{Ca(window.location.href),s("/.account/login/password/")},className:"w-full py-2.5 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-xs font-medium",children:"Go to Sign in"})]}),D&&u.jsxs("div",{className:"mb-4 bg-red-50 border border-red-200 rounded-xl p-3 text-red-600 text-[11px]",children:[u.jsx(Bv,{className:"w-4 h-4 inline mr-2"}),D]}),f?u.jsx("div",{className:"flex justify-center py-6",children:u.jsx(Ta,{className:"w-6 h-6 animate-spin text-[#7C4DFF]"})}):u.jsxs("div",{className:"space-y-4",children:[(h?.client_uri||h?.client_id)&&u.jsxs("div",{className:"text-center text-[11px] text-zinc-500 space-y-1",children:[h?.client_uri&&u.jsx("div",{children:u.jsx("a",{href:h.client_uri,target:"_blank",rel:"noopener",className:"text-[#7C4DFF] hover:text-[#6B3FE8]",children:h.client_uri})}),h?.client_id&&u.jsxs("div",{className:"text-[10px] text-zinc-400 truncate",title:h.client_id,children:["ID: ",h.client_id]})]}),u.jsxs("div",{className:"space-y-2",children:[u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx("label",{className:"block text-[11px] font-medium text-zinc-500 uppercase tracking-wider",children:"Sign in as"}),se.length>0&&u.jsxs("div",{className:"text-[10px] text-zinc-500",children:["Provider: ",u.jsx("span",{className:"text-zinc-600",children:Y(se[0]).provider})]})]}),se.length===0?u.jsxs("div",{className:"text-center py-4",children:[u.jsx("p",{className:"text-zinc-500 text-xs mb-3",children:"You need to create a Pod first to get a WebID."}),u.jsx("button",{onClick:()=>{Ca(window.location.href),s("/.account/account/")},className:"px-4 py-2 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-xs rounded-lg",children:"Create Pod"})]}):u.jsx("div",{className:"space-y-1",children:se.map(W=>{const ce=Y(W);return u.jsxs("label",{className:$e("flex items-center gap-3 p-3 rounded-xl border cursor-pointer transition-colors",C===W?"border-[#7C4DFF]/50 bg-[#7C4DFF]/10":"border-zinc-200 bg-zinc-50 hover:border-zinc-300"),children:[u.jsx("input",{type:"radio",name:"webId",value:W,checked:C===W,onChange:I=>j(I.target.value),className:"text-[#7C4DFF]"}),u.jsx("div",{className:"min-w-0 flex-1",children:u.jsx("div",{className:"text-sm font-medium text-zinc-700 truncate",title:ce.full,children:ce.podId})}),u.jsx("button",{type:"button",onClick:I=>{I.preventDefault(),le(W)},className:"px-2 py-1 text-[10px] rounded-lg border border-zinc-300 text-zinc-600 hover:text-zinc-900 hover:border-[#7C4DFF]/50 shrink-0",children:T===W?"Copied":"Copy"})]},W)})})]}),u.jsxs("label",{className:"flex items-center gap-2 text-xs text-zinc-600 cursor-pointer",children:[u.jsx("input",{type:"checkbox",checked:R,onChange:W=>M(W.target.checked),className:"rounded border-zinc-300 text-[#7C4DFF] focus:ring-[#7C4DFF]"}),"Remember this client"]}),u.jsxs("div",{className:"grid grid-cols-2 gap-3 pt-2",children:[u.jsx("button",{onClick:()=>ae(!1),disabled:f,className:"py-2.5 border border-zinc-200 rounded-xl text-xs text-zinc-500 hover:bg-zinc-100 disabled:opacity-50 transition-colors",children:"Deny"}),u.jsx("button",{onClick:()=>ae(!0),disabled:f||se.length===0,className:"py-2.5 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-xs disabled:opacity-50 transition-colors",children:f?"Authorizing...":"Authorize"})]}),u.jsxs("div",{className:"flex justify-center gap-4 pt-2 border-t border-zinc-100",children:[u.jsx("button",{type:"button",onClick:()=>{Ca(window.location.href),s("/.account/account/")},className:"text-[11px] text-[#7C4DFF] hover:text-[#6B3FE8]",children:"Edit account"}),u.jsx("button",{type:"button",onClick:oe,className:"text-[11px] text-zinc-500 hover:text-zinc-700",children:"Use a different account"})]})]})]})}function x1(){const{controls:a,isLoggedIn:i}=$t(),o=Un(),[s,f]=g.useState(!1),[d,h]=g.useState(!1);if(i)return u.jsx(Dn,{to:"/.account/account/",replace:!0});const p=async v=>{v.preventDefault(),f(!0);const y=new FormData(v.currentTarget).get("email");try{await fetch(a?.password?.forgot||"/.account/login/password/forgot/",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({email:y})}),h(!0)}catch{alert("Failed to send reset email")}finally{f(!1)}};return u.jsx(Ki,{title:"Reset Password",subtitle:"We will send a reset link to your email.",icon:Lu,showBack:!0,onBack:()=>o("/.account/login/password/"),children:d?u.jsxs("div",{className:"space-y-4",children:[u.jsxs("div",{className:"bg-emerald-50 border border-emerald-200 rounded-xl p-4 text-center",children:[u.jsx("div",{className:"w-10 h-10 bg-emerald-100 rounded-full flex items-center justify-center mx-auto mb-3",children:u.jsx(zn,{className:"w-5 h-5 text-emerald-600"})}),u.jsx("p",{className:"text-xs text-zinc-600",children:"If that email exists, we've sent a reset link."}),u.jsx("p",{className:"text-[10px] text-zinc-500 mt-2",children:"Check your spam folder if you don't see it."})]}),u.jsxs("div",{className:"flex gap-2",children:[u.jsx("button",{onClick:()=>o("/.account/login/password/"),className:"flex-1 py-3 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-sm font-medium",children:"Sign in"}),u.jsx("button",{onClick:()=>h(!1),className:"flex-1 py-3 bg-zinc-100 hover:bg-zinc-200 text-zinc-700 rounded-xl text-sm font-medium",children:"Resend"})]})]}):u.jsxs("form",{className:"space-y-4",onSubmit:p,children:[u.jsxs("div",{className:"relative",children:[u.jsx(Lu,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-zinc-400"}),u.jsx("input",{name:"email",type:"email",required:!0,className:"block w-full pl-10 pr-4 py-2.5 bg-zinc-50 border border-zinc-200 rounded-xl text-sm placeholder:text-zinc-400 focus:border-[#7C4DFF] focus:outline-none",placeholder:"Email address"})]}),u.jsx("button",{type:"submit",disabled:s,className:"w-full py-3 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-sm font-medium flex items-center justify-center gap-2 disabled:opacity-50",children:s?u.jsx(Ta,{className:"w-4 h-4 animate-spin"}):u.jsxs(u.Fragment,{children:["Send Reset Link ",u.jsx(Yo,{className:"h-4 w-4"})]})})]})})}function b1(){const{controls:a,isLoggedIn:i}=$t(),o=Un(),[s]=dS(),[f,d]=g.useState(!1),[h,p]=g.useState(!1),[v,y]=g.useState(null),[S,b]=g.useState(""),[C,j]=g.useState(""),D=s.get("rid"),w=S.length>0&&C.length>0&&S===C;if(i)return u.jsx(Dn,{to:"/.account/account/",replace:!0});if(!D)return u.jsx(Dn,{to:"/.account/login/password/forgot/",replace:!0});const T=async z=>{if(z.preventDefault(),!w){y("Passwords do not match");return}d(!0),y(null);try{const R=a?.password?.reset||"/.account/login/password/reset/",M=await fetch(R,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({recordId:D,password:S})});if(M.ok)p(!0);else{const q=await M.json().catch(()=>({}));y(q.message||"Failed to reset password")}}catch{y("Network error")}finally{d(!1)}};return u.jsx(Ki,{title:"Reset Password",subtitle:"Enter your new password.",icon:Bi,children:h?u.jsxs("div",{className:"space-y-4",children:[u.jsxs("div",{className:"bg-emerald-50 border border-emerald-200 rounded-xl p-4 text-center",children:[u.jsx("div",{className:"w-10 h-10 bg-emerald-100 rounded-full flex items-center justify-center mx-auto mb-3",children:u.jsx(zn,{className:"w-5 h-5 text-emerald-600"})}),u.jsx("p",{className:"text-xs text-zinc-600",children:"Your password has been reset successfully."})]}),u.jsx("button",{onClick:()=>o("/.account/login/password/"),className:"w-full py-3 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-sm font-medium",children:"Go to Sign in"})]}):u.jsxs("form",{className:"space-y-4",onSubmit:T,children:[v&&u.jsx("div",{className:"bg-red-50 border border-red-200 rounded-xl p-3 text-red-600 text-[11px]",children:v}),u.jsxs("div",{className:"space-y-3",children:[u.jsxs("div",{className:"relative",children:[u.jsx(Bi,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-zinc-400"}),u.jsx("input",{name:"password",type:"password",required:!0,value:S,onChange:z=>b(z.target.value),className:"block w-full pl-10 pr-4 py-2.5 bg-zinc-50 border border-zinc-200 rounded-xl text-sm placeholder:text-zinc-400 focus:border-[#7C4DFF] focus:outline-none",placeholder:"New password"})]}),u.jsxs("div",{className:"relative",children:[w?u.jsx(zn,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-emerald-500"}):u.jsx(Bi,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-zinc-400"}),u.jsx("input",{name:"confirmPassword",type:"password",required:!0,value:C,onChange:z=>j(z.target.value),className:`block w-full pl-10 pr-4 py-2.5 bg-zinc-50 border rounded-xl text-sm placeholder:text-zinc-400 focus:outline-none transition-colors ${w?"border-emerald-300 focus:border-emerald-500":"border-zinc-200 focus:border-[#7C4DFF]"}`,placeholder:"Confirm new password"})]})]}),u.jsx("button",{type:"submit",disabled:f||!w,className:"w-full py-3 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-sm font-medium flex items-center justify-center gap-2 disabled:opacity-50",children:f?u.jsx(Ta,{className:"w-4 h-4 animate-spin"}):u.jsxs(u.Fragment,{children:["Reset Password ",u.jsx(Yo,{className:"h-4 w-4"})]})}),u.jsx("div",{className:"text-center",children:u.jsx("button",{type:"button",onClick:()=>o("/.account/login/password/"),className:"text-[11px] text-[#7C4DFF] hover:text-[#6B3FE8]",children:"Back to Sign in"})})]})})}function S1(){const{controls:a,isLoggedIn:i}=$t(),[o,s]=g.useState([]),[f,d]=g.useState(!0);return g.useEffect(()=>{if(i){window.location.href="/.account/account/";return}(async()=>{try{if(a?.main?.logins){const p=await(await fetch(a.main.logins,{headers:{Accept:"application/json"},credentials:"include"})).json(),v=Object.entries(p.logins||{});if(v.length===1){window.location.href=v[0][1];return}if(v.length===0){window.location.href="/.account/login/password/";return}s(v)}else{window.location.href="/.account/login/password/";return}}catch{window.location.href=a?.html?.password?.login||"/.account/login/password/"}finally{d(!1)}})()},[a,i]),f?u.jsx(Vv,{}):u.jsx(Ki,{title:"Select Login Method",children:u.jsx("div",{className:"space-y-2",children:o.map(([h,p])=>u.jsx("a",{href:p,className:"block w-full py-3 px-4 bg-zinc-100 hover:bg-zinc-200 border border-zinc-200 rounded-xl text-center text-zinc-700 text-sm font-medium",children:h},h))})})}var Qv={"chatkit.error":"onError","chatkit.response.end":"onResponseEnd","chatkit.response.start":"onResponseStart","chatkit.log":"onLog","chatkit.thread.change":"onThreadChange","chatkit.thread.load.start":"onThreadLoadStart","chatkit.thread.load.end":"onThreadLoadEnd","chatkit.tool.change":"onToolChange","chatkit.ready":"onReady","chatkit.effect":"onEffect"},w1=Object.keys(Qv),E1=g.forwardRef(function({control:i,...o},s){const f=g.useRef(null);return g.useLayoutEffect(()=>{const d=f.current;if(!d)return;if(customElements.get("openai-chatkit")){d.setOptions(i.options);return}let h=!0;return customElements.whenDefined("openai-chatkit").then(()=>{h&&d.setOptions(i.options)}),()=>{h=!1}},[i.options]),g.useEffect(()=>{const d=f.current;if(!d)return;const h=new AbortController;for(const p of w1)d.addEventListener(p,v=>{const y=Qv[p],S=i.handlers[y];typeof S=="function"&&S(v.detail)},{signal:h.signal});return()=>{h.abort()}},[i.handlers]),u.jsx("openai-chatkit",{ref:d=>{f.current=d,i.setInstance(d),typeof s=="function"?s(d):s&&(s.current=d),f.current},...o})});function Bp(a){return a!==null&&typeof a=="object"&&[null,Object.prototype].includes(Object.getPrototypeOf(a))||Array.isArray(a)}function Bu(a,i,o=new WeakMap){if(Object.is(a,i))return!0;if(typeof a=="function"&&typeof i=="function")return typeof a==typeof i;if(!Bp(a)||!Bp(i))return!1;const s=o.get(a);if(s&&s===i)return!0;if(o.set(a,i),Array.isArray(a)||Array.isArray(i)){if(!Array.isArray(a)||!Array.isArray(i)||a.length!==i.length)return!1;for(let h=0;h<a.length;h++)if(!Bu(a[h],i[h],o))return!1;return!0}const f=Object.keys(a),d=Object.keys(i);if(f.length!==d.length)return!1;for(let h=0;h<f.length;h++){const p=f[h];if(!Object.prototype.hasOwnProperty.call(i,p))return!1;const v=a[p],y=i[p];if(!Bu(v,y,o))return!1}return!0}function C1(a){const i=[],o=(d,h)=>h.reduce((p,v)=>p==null?p:p[v],d),s=(d,h)=>(...p)=>{const v=o(a.current,d),y=v?.[h];if(typeof y=="function")return y.apply(v,p)},f=d=>{if(typeof d=="function"){const h=i[i.length-1],p=i.slice(0,-1);return s(p,h)}if(Array.isArray(d)){const h=i.length,p=new Array(d.length);for(let v=0;v<d.length;v++)i[h]=v,p[v]=f(d[v]);return i.length=h,p}if(d&&typeof d=="object"){const h=i.length,p={};for(const v of Object.keys(d))i[h]=v,p[v]=f(d[v]);return i.length=h,p}return d};return f(a.current)}function N1(a){const i=Pt.useRef(a);i.current=a;const o=Pt.useRef(null);return(!o.current||!Bu(o.current.snapshot,a))&&(o.current={snapshot:a,shaped:C1(i)}),o.current.shaped}var j1=Object.freeze(["focusComposer","setThreadId","sendUserMessage","setComposerValue","fetchUpdates","sendCustomAction","showHistory","hideHistory"]);function T1(a){const i=g.useRef(null),o=N1(a),s=g.useMemo(()=>j1.reduce((h,p)=>(h[p]=(...v)=>{if(!i.current){console.warn("ChatKit element is not mounted");return}return i.current[p](...v)},h),{}),[]),f=g.useCallback(h=>{i.current=h},[]),d=g.useMemo(()=>{const h={},p={};for(const[v,y]of Object.entries(o))/^on[A-Z]/.test(v)&&v!=="onClientTool"?p[v]=y:h[v]=y;return{setInstance:f,options:h,handlers:p}},[o,f]);return g.useMemo(()=>({...s,control:d,ref:i}),[s,d])}const kp="http://localhost:3000/chatkit",Yp="domain_pk_localhost_dev";function A1(){const{isLoggedIn:a}=$t(),[i,o]=g.useState(""),[s,f]=g.useState(!1),d=g.useCallback(async(p,v={})=>{const y={...v.headers||{}};return i&&(y.Authorization=`Bearer ${i}`),fetch(p,{...v,headers:y,credentials:"include"})},[i]),h=T1({api:{url:kp,domainKey:Yp,fetch:d},theme:"light",header:{enabled:!0,title:{enabled:!0,text:"Xpod Chat"}},history:{enabled:!0}});return u.jsxs("div",{className:"min-h-screen bg-gray-50",children:[u.jsxs("header",{className:"bg-white shadow-sm border-b",children:[u.jsxs("div",{className:"max-w-7xl mx-auto px-4 py-4 flex items-center justify-between",children:[u.jsxs("div",{className:"flex items-center space-x-4",children:[u.jsx("a",{href:"/.account/",className:"text-gray-500 hover:text-gray-700",children:u.jsx("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:u.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10 19l-7-7m0 0l7-7m-7 7h18"})})}),u.jsx("h1",{className:"text-xl font-semibold text-gray-900",children:"Chat"})]}),u.jsxs("div",{className:"flex items-center space-x-4",children:[u.jsx("button",{onClick:()=>f(!s),className:"text-sm text-gray-500 hover:text-gray-700",children:i?"🔑 API Key Set":"Set API Key"}),u.jsx("div",{className:"text-sm text-gray-500",children:a?u.jsx("span",{className:"text-green-600",children:"● Logged in"}):u.jsx("a",{href:"/.account/login/",className:"text-blue-600 hover:text-blue-800",children:"Login"})})]})]}),s&&u.jsxs("div",{className:"max-w-7xl mx-auto px-4 py-2 border-t bg-gray-50",children:[u.jsxs("div",{className:"flex items-center space-x-2",children:[u.jsx("input",{type:"password",placeholder:"Enter API Key (sk-xxx)",value:i,onChange:p=>o(p.target.value),className:"flex-1 px-3 py-2 border rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-blue-500"}),u.jsx("button",{onClick:()=>f(!1),className:"px-4 py-2 bg-blue-600 text-white text-sm rounded-lg hover:bg-blue-700",children:"Save"})]}),u.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"Get your API Key from the Account page after logging in."})]})]}),u.jsxs("main",{className:"max-w-4xl mx-auto p-4",children:[u.jsx("div",{className:"bg-white rounded-lg shadow-lg overflow-hidden",style:{height:"calc(100vh - 180px)"},children:u.jsx(E1,{control:h.control,style:{width:"100%",height:"100%"}})}),u.jsxs("div",{className:"mt-4 p-4 bg-gray-100 rounded-lg text-xs text-gray-600",children:[u.jsxs("p",{children:[u.jsx("strong",{children:"API URL:"})," ",kp]}),u.jsxs("p",{children:[u.jsx("strong",{children:"Domain Key:"})," ",Yp]}),u.jsxs("p",{children:[u.jsx("strong",{children:"Auth:"})," ",i?"API Key":a?"Session":"None"]})]})]})]})}function Oi(a){const{className:i,variant:o,children:s}=a;return u.jsx("div",{className:$e("rounded-xl bg-background",o==="bordered"&&"border border-border",i),children:s})}function _i(a){const{className:i,children:o}=a;return u.jsx("div",{className:$e("px-5 pt-5",i),children:o})}function Di(a){const{className:i,children:o}=a;return u.jsx("div",{className:$e("text-base font-semibold",i),children:o})}function Mi(a){const{className:i,children:o}=a;return u.jsx("div",{className:$e("px-5 pb-5 pt-4",i),children:o})}function wu(a){const{className:i,variant:o="default",size:s="default",children:f,...d}=a,h="inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-primary disabled:opacity-50 disabled:pointer-events-none",p={default:"bg-primary text-primary-foreground hover:bg-primary/90",secondary:"bg-muted text-foreground hover:bg-muted/80",ghost:"bg-transparent hover:bg-muted text-foreground"},v={default:"h-10 px-4 py-2",sm:"h-8 px-3"};return u.jsx("button",{className:$e(h,p[o],v[s],i),...d,children:f})}function Rn(a){const{className:i,...o}=a;return u.jsx("input",{className:$e("w-full h-10 rounded-md border border-input bg-background px-3 py-2 text-sm","placeholder:text-muted-foreground","focus:outline-none focus-visible:ring-2 focus-visible:ring-primary",i),...o})}function po(a){const{className:i,...o}=a;return u.jsx("label",{className:$e("text-sm font-medium text-foreground",i),...o})}function qp(a,[i,o]){return Math.min(o,Math.max(i,a))}function Je(a,i,{checkForDefaultPrevented:o=!0}={}){return function(f){if(a?.(f),o===!1||!f.defaultPrevented)return i?.(f)}}function lf(a,i=[]){let o=[];function s(d,h){const p=g.createContext(h),v=o.length;o=[...o,h];const y=b=>{const{scope:C,children:j,...D}=b,w=C?.[a]?.[v]||p,T=g.useMemo(()=>D,Object.values(D));return u.jsx(w.Provider,{value:T,children:j})};y.displayName=d+"Provider";function S(b,C){const j=C?.[a]?.[v]||p,D=g.useContext(j);if(D)return D;if(h!==void 0)return h;throw new Error(`\`${b}\` must be used within \`${d}\``)}return[y,S]}const f=()=>{const d=o.map(h=>g.createContext(h));return function(p){const v=p?.[a]||d;return g.useMemo(()=>({[`__scope${a}`]:{...p,[a]:v}}),[p,v])}};return f.scopeName=a,[s,R1(f,...i)]}function R1(...a){const i=a[0];if(a.length===1)return i;const o=()=>{const s=a.map(f=>({useScope:f(),scopeName:f.scopeName}));return function(d){const h=s.reduce((p,{useScope:v,scopeName:y})=>{const b=v(d)[`__scope${y}`];return{...p,...b}},{});return g.useMemo(()=>({[`__scope${i.scopeName}`]:h}),[h])}};return o.scopeName=i.scopeName,o}function Vp(a,i){if(typeof a=="function")return a(i);a!=null&&(a.current=i)}function Zv(...a){return i=>{let o=!1;const s=a.map(f=>{const d=Vp(f,i);return!o&&typeof d=="function"&&(o=!0),d});if(o)return()=>{for(let f=0;f<s.length;f++){const d=s[f];typeof d=="function"?d():Vp(a[f],null)}}}}function ot(...a){return g.useCallback(Zv(...a),a)}function _o(a){const i=z1(a),o=g.forwardRef((s,f)=>{const{children:d,...h}=s,p=g.Children.toArray(d),v=p.find(_1);if(v){const y=v.props.children,S=p.map(b=>b===v?g.Children.count(y)>1?g.Children.only(null):g.isValidElement(y)?y.props.children:null:b);return u.jsx(i,{...h,ref:f,children:g.isValidElement(y)?g.cloneElement(y,void 0,S):null})}return u.jsx(i,{...h,ref:f,children:d})});return o.displayName=`${a}.Slot`,o}function z1(a){const i=g.forwardRef((o,s)=>{const{children:f,...d}=o;if(g.isValidElement(f)){const h=M1(f),p=D1(d,f.props);return f.type!==g.Fragment&&(p.ref=s?Zv(s,h):h),g.cloneElement(f,p)}return g.Children.count(f)>1?g.Children.only(null):null});return i.displayName=`${a}.SlotClone`,i}var O1=Symbol("radix.slottable");function _1(a){return g.isValidElement(a)&&typeof a.type=="function"&&"__radixId"in a.type&&a.type.__radixId===O1}function D1(a,i){const o={...i};for(const s in i){const f=a[s],d=i[s];/^on[A-Z]/.test(s)?f&&d?o[s]=(...p)=>{const v=d(...p);return f(...p),v}:f&&(o[s]=f):s==="style"?o[s]={...f,...d}:s==="className"&&(o[s]=[f,d].filter(Boolean).join(" "))}return{...a,...o}}function M1(a){let i=Object.getOwnPropertyDescriptor(a.props,"ref")?.get,o=i&&"isReactWarning"in i&&i.isReactWarning;return o?a.ref:(i=Object.getOwnPropertyDescriptor(a,"ref")?.get,o=i&&"isReactWarning"in i&&i.isReactWarning,o?a.props.ref:a.props.ref||a.ref)}function L1(a){const i=a+"CollectionProvider",[o,s]=lf(i),[f,d]=o(i,{collectionRef:{current:null},itemMap:new Map}),h=w=>{const{scope:T,children:z}=w,R=Pt.useRef(null),M=Pt.useRef(new Map).current;return u.jsx(f,{scope:T,itemMap:M,collectionRef:R,children:z})};h.displayName=i;const p=a+"CollectionSlot",v=_o(p),y=Pt.forwardRef((w,T)=>{const{scope:z,children:R}=w,M=d(p,z),q=ot(T,M.collectionRef);return u.jsx(v,{ref:q,children:R})});y.displayName=p;const S=a+"CollectionItemSlot",b="data-radix-collection-item",C=_o(S),j=Pt.forwardRef((w,T)=>{const{scope:z,children:R,...M}=w,q=Pt.useRef(null),Q=ot(T,q),Z=d(S,z);return Pt.useEffect(()=>(Z.itemMap.set(q,{ref:q,...M}),()=>{Z.itemMap.delete(q)})),u.jsx(C,{[b]:"",ref:Q,children:R})});j.displayName=S;function D(w){const T=d(a+"CollectionConsumer",w);return Pt.useCallback(()=>{const R=T.collectionRef.current;if(!R)return[];const M=Array.from(R.querySelectorAll(`[${b}]`));return Array.from(T.itemMap.values()).sort((Z,Y)=>M.indexOf(Z.ref.current)-M.indexOf(Y.ref.current))},[T.collectionRef,T.itemMap])}return[{Provider:h,Slot:y,ItemSlot:j},D,s]}var U1=g.createContext(void 0);function H1(a){const i=g.useContext(U1);return a||i||"ltr"}var B1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Fe=B1.reduce((a,i)=>{const o=_o(`Primitive.${i}`),s=g.forwardRef((f,d)=>{const{asChild:h,...p}=f,v=h?o:i;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(v,{...p,ref:d})});return s.displayName=`Primitive.${i}`,{...a,[i]:s}},{});function k1(a,i){a&&Fi.flushSync(()=>a.dispatchEvent(i))}function Dl(a){const i=g.useRef(a);return g.useEffect(()=>{i.current=a}),g.useMemo(()=>(...o)=>i.current?.(...o),[])}function Y1(a,i=globalThis?.document){const o=Dl(a);g.useEffect(()=>{const s=f=>{f.key==="Escape"&&o(f)};return i.addEventListener("keydown",s,{capture:!0}),()=>i.removeEventListener("keydown",s,{capture:!0})},[o,i])}var q1="DismissableLayer",ku="dismissableLayer.update",V1="dismissableLayer.pointerDownOutside",X1="dismissableLayer.focusOutside",Xp,Pv=g.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Jv=g.forwardRef((a,i)=>{const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:s,onPointerDownOutside:f,onFocusOutside:d,onInteractOutside:h,onDismiss:p,...v}=a,y=g.useContext(Pv),[S,b]=g.useState(null),C=S?.ownerDocument??globalThis?.document,[,j]=g.useState({}),D=ot(i,Y=>b(Y)),w=Array.from(y.layers),[T]=[...y.layersWithOutsidePointerEventsDisabled].slice(-1),z=w.indexOf(T),R=S?w.indexOf(S):-1,M=y.layersWithOutsidePointerEventsDisabled.size>0,q=R>=z,Q=K1(Y=>{const le=Y.target,oe=[...y.branches].some(ae=>ae.contains(le));!q||oe||(f?.(Y),h?.(Y),Y.defaultPrevented||p?.())},C),Z=Q1(Y=>{const le=Y.target;[...y.branches].some(ae=>ae.contains(le))||(d?.(Y),h?.(Y),Y.defaultPrevented||p?.())},C);return Y1(Y=>{R===y.layers.size-1&&(s?.(Y),!Y.defaultPrevented&&p&&(Y.preventDefault(),p()))},C),g.useEffect(()=>{if(S)return o&&(y.layersWithOutsidePointerEventsDisabled.size===0&&(Xp=C.body.style.pointerEvents,C.body.style.pointerEvents="none"),y.layersWithOutsidePointerEventsDisabled.add(S)),y.layers.add(S),Gp(),()=>{o&&y.layersWithOutsidePointerEventsDisabled.size===1&&(C.body.style.pointerEvents=Xp)}},[S,C,o,y]),g.useEffect(()=>()=>{S&&(y.layers.delete(S),y.layersWithOutsidePointerEventsDisabled.delete(S),Gp())},[S,y]),g.useEffect(()=>{const Y=()=>j({});return document.addEventListener(ku,Y),()=>document.removeEventListener(ku,Y)},[]),u.jsx(Fe.div,{...v,ref:D,style:{pointerEvents:M?q?"auto":"none":void 0,...a.style},onFocusCapture:Je(a.onFocusCapture,Z.onFocusCapture),onBlurCapture:Je(a.onBlurCapture,Z.onBlurCapture),onPointerDownCapture:Je(a.onPointerDownCapture,Q.onPointerDownCapture)})});Jv.displayName=q1;var G1="DismissableLayerBranch",F1=g.forwardRef((a,i)=>{const o=g.useContext(Pv),s=g.useRef(null),f=ot(i,s);return g.useEffect(()=>{const d=s.current;if(d)return o.branches.add(d),()=>{o.branches.delete(d)}},[o.branches]),u.jsx(Fe.div,{...a,ref:f})});F1.displayName=G1;function K1(a,i=globalThis?.document){const o=Dl(a),s=g.useRef(!1),f=g.useRef(()=>{});return g.useEffect(()=>{const d=p=>{if(p.target&&!s.current){let v=function(){Wv(V1,o,y,{discrete:!0})};const y={originalEvent:p};p.pointerType==="touch"?(i.removeEventListener("click",f.current),f.current=v,i.addEventListener("click",f.current,{once:!0})):v()}else i.removeEventListener("click",f.current);s.current=!1},h=window.setTimeout(()=>{i.addEventListener("pointerdown",d)},0);return()=>{window.clearTimeout(h),i.removeEventListener("pointerdown",d),i.removeEventListener("click",f.current)}},[i,o]),{onPointerDownCapture:()=>s.current=!0}}function Q1(a,i=globalThis?.document){const o=Dl(a),s=g.useRef(!1);return g.useEffect(()=>{const f=d=>{d.target&&!s.current&&Wv(X1,o,{originalEvent:d},{discrete:!1})};return i.addEventListener("focusin",f),()=>i.removeEventListener("focusin",f)},[i,o]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}function Gp(){const a=new CustomEvent(ku);document.dispatchEvent(a)}function Wv(a,i,o,{discrete:s}){const f=o.originalEvent.target,d=new CustomEvent(a,{bubbles:!1,cancelable:!0,detail:o});i&&f.addEventListener(a,i,{once:!0}),s?k1(f,d):f.dispatchEvent(d)}var Eu=0;function Z1(){g.useEffect(()=>{const a=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",a[0]??Fp()),document.body.insertAdjacentElement("beforeend",a[1]??Fp()),Eu++,()=>{Eu===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(i=>i.remove()),Eu--}},[])}function Fp(){const a=document.createElement("span");return a.setAttribute("data-radix-focus-guard",""),a.tabIndex=0,a.style.outline="none",a.style.opacity="0",a.style.position="fixed",a.style.pointerEvents="none",a}var Cu="focusScope.autoFocusOnMount",Nu="focusScope.autoFocusOnUnmount",Kp={bubbles:!1,cancelable:!0},P1="FocusScope",$v=g.forwardRef((a,i)=>{const{loop:o=!1,trapped:s=!1,onMountAutoFocus:f,onUnmountAutoFocus:d,...h}=a,[p,v]=g.useState(null),y=Dl(f),S=Dl(d),b=g.useRef(null),C=ot(i,w=>v(w)),j=g.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;g.useEffect(()=>{if(s){let w=function(M){if(j.paused||!p)return;const q=M.target;p.contains(q)?b.current=q:rl(b.current,{select:!0})},T=function(M){if(j.paused||!p)return;const q=M.relatedTarget;q!==null&&(p.contains(q)||rl(b.current,{select:!0}))},z=function(M){if(document.activeElement===document.body)for(const Q of M)Q.removedNodes.length>0&&rl(p)};document.addEventListener("focusin",w),document.addEventListener("focusout",T);const R=new MutationObserver(z);return p&&R.observe(p,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",w),document.removeEventListener("focusout",T),R.disconnect()}}},[s,p,j.paused]),g.useEffect(()=>{if(p){Zp.add(j);const w=document.activeElement;if(!p.contains(w)){const z=new CustomEvent(Cu,Kp);p.addEventListener(Cu,y),p.dispatchEvent(z),z.defaultPrevented||(J1(tw(Iv(p)),{select:!0}),document.activeElement===w&&rl(p))}return()=>{p.removeEventListener(Cu,y),setTimeout(()=>{const z=new CustomEvent(Nu,Kp);p.addEventListener(Nu,S),p.dispatchEvent(z),z.defaultPrevented||rl(w??document.body,{select:!0}),p.removeEventListener(Nu,S),Zp.remove(j)},0)}}},[p,y,S,j]);const D=g.useCallback(w=>{if(!o&&!s||j.paused)return;const T=w.key==="Tab"&&!w.altKey&&!w.ctrlKey&&!w.metaKey,z=document.activeElement;if(T&&z){const R=w.currentTarget,[M,q]=W1(R);M&&q?!w.shiftKey&&z===q?(w.preventDefault(),o&&rl(M,{select:!0})):w.shiftKey&&z===M&&(w.preventDefault(),o&&rl(q,{select:!0})):z===R&&w.preventDefault()}},[o,s,j.paused]);return u.jsx(Fe.div,{tabIndex:-1,...h,ref:C,onKeyDown:D})});$v.displayName=P1;function J1(a,{select:i=!1}={}){const o=document.activeElement;for(const s of a)if(rl(s,{select:i}),document.activeElement!==o)return}function W1(a){const i=Iv(a),o=Qp(i,a),s=Qp(i.reverse(),a);return[o,s]}function Iv(a){const i=[],o=document.createTreeWalker(a,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{const f=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||f?NodeFilter.FILTER_SKIP:s.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)i.push(o.currentNode);return i}function Qp(a,i){for(const o of a)if(!$1(o,{upTo:i}))return o}function $1(a,{upTo:i}){if(getComputedStyle(a).visibility==="hidden")return!0;for(;a;){if(i!==void 0&&a===i)return!1;if(getComputedStyle(a).display==="none")return!0;a=a.parentElement}return!1}function I1(a){return a instanceof HTMLInputElement&&"select"in a}function rl(a,{select:i=!1}={}){if(a&&a.focus){const o=document.activeElement;a.focus({preventScroll:!0}),a!==o&&I1(a)&&i&&a.select()}}var Zp=ew();function ew(){let a=[];return{add(i){const o=a[0];i!==o&&o?.pause(),a=Pp(a,i),a.unshift(i)},remove(i){a=Pp(a,i),a[0]?.resume()}}}function Pp(a,i){const o=[...a],s=o.indexOf(i);return s!==-1&&o.splice(s,1),o}function tw(a){return a.filter(i=>i.tagName!=="A")}var yt=globalThis?.document?g.useLayoutEffect:()=>{},nw=mv[" useId ".trim().toString()]||(()=>{}),lw=0;function af(a){const[i,o]=g.useState(nw());return yt(()=>{o(s=>s??String(lw++))},[a]),i?`radix-${i}`:""}const aw=["top","right","bottom","left"],sl=Math.min,Ot=Math.max,Do=Math.round,vo=Math.floor,cn=a=>({x:a,y:a}),iw={left:"right",right:"left",bottom:"top",top:"bottom"},cw={start:"end",end:"start"};function Yu(a,i,o){return Ot(a,sl(i,o))}function Mn(a,i){return typeof a=="function"?a(i):a}function Ln(a){return a.split("-")[0]}function _a(a){return a.split("-")[1]}function cf(a){return a==="x"?"y":"x"}function of(a){return a==="y"?"height":"width"}const ow=new Set(["top","bottom"]);function an(a){return ow.has(Ln(a))?"y":"x"}function rf(a){return cf(an(a))}function rw(a,i,o){o===void 0&&(o=!1);const s=_a(a),f=rf(a),d=of(f);let h=f==="x"?s===(o?"end":"start")?"right":"left":s==="start"?"bottom":"top";return i.reference[d]>i.floating[d]&&(h=Mo(h)),[h,Mo(h)]}function sw(a){const i=Mo(a);return[qu(a),i,qu(i)]}function qu(a){return a.replace(/start|end/g,i=>cw[i])}const Jp=["left","right"],Wp=["right","left"],uw=["top","bottom"],fw=["bottom","top"];function dw(a,i,o){switch(a){case"top":case"bottom":return o?i?Wp:Jp:i?Jp:Wp;case"left":case"right":return i?uw:fw;default:return[]}}function hw(a,i,o,s){const f=_a(a);let d=dw(Ln(a),o==="start",s);return f&&(d=d.map(h=>h+"-"+f),i&&(d=d.concat(d.map(qu)))),d}function Mo(a){return a.replace(/left|right|bottom|top/g,i=>iw[i])}function mw(a){return{top:0,right:0,bottom:0,left:0,...a}}function eg(a){return typeof a!="number"?mw(a):{top:a,right:a,bottom:a,left:a}}function Lo(a){const{x:i,y:o,width:s,height:f}=a;return{width:s,height:f,top:o,left:i,right:i+s,bottom:o+f,x:i,y:o}}function $p(a,i,o){let{reference:s,floating:f}=a;const d=an(i),h=rf(i),p=of(h),v=Ln(i),y=d==="y",S=s.x+s.width/2-f.width/2,b=s.y+s.height/2-f.height/2,C=s[p]/2-f[p]/2;let j;switch(v){case"top":j={x:S,y:s.y-f.height};break;case"bottom":j={x:S,y:s.y+s.height};break;case"right":j={x:s.x+s.width,y:b};break;case"left":j={x:s.x-f.width,y:b};break;default:j={x:s.x,y:s.y}}switch(_a(i)){case"start":j[h]-=C*(o&&y?-1:1);break;case"end":j[h]+=C*(o&&y?-1:1);break}return j}async function pw(a,i){var o;i===void 0&&(i={});const{x:s,y:f,platform:d,rects:h,elements:p,strategy:v}=a,{boundary:y="clippingAncestors",rootBoundary:S="viewport",elementContext:b="floating",altBoundary:C=!1,padding:j=0}=Mn(i,a),D=eg(j),T=p[C?b==="floating"?"reference":"floating":b],z=Lo(await d.getClippingRect({element:(o=await(d.isElement==null?void 0:d.isElement(T)))==null||o?T:T.contextElement||await(d.getDocumentElement==null?void 0:d.getDocumentElement(p.floating)),boundary:y,rootBoundary:S,strategy:v})),R=b==="floating"?{x:s,y:f,width:h.floating.width,height:h.floating.height}:h.reference,M=await(d.getOffsetParent==null?void 0:d.getOffsetParent(p.floating)),q=await(d.isElement==null?void 0:d.isElement(M))?await(d.getScale==null?void 0:d.getScale(M))||{x:1,y:1}:{x:1,y:1},Q=Lo(d.convertOffsetParentRelativeRectToViewportRelativeRect?await d.convertOffsetParentRelativeRectToViewportRelativeRect({elements:p,rect:R,offsetParent:M,strategy:v}):R);return{top:(z.top-Q.top+D.top)/q.y,bottom:(Q.bottom-z.bottom+D.bottom)/q.y,left:(z.left-Q.left+D.left)/q.x,right:(Q.right-z.right+D.right)/q.x}}const vw=async(a,i,o)=>{const{placement:s="bottom",strategy:f="absolute",middleware:d=[],platform:h}=o,p=d.filter(Boolean),v=await(h.isRTL==null?void 0:h.isRTL(i));let y=await h.getElementRects({reference:a,floating:i,strategy:f}),{x:S,y:b}=$p(y,s,v),C=s,j={},D=0;for(let T=0;T<p.length;T++){var w;const{name:z,fn:R}=p[T],{x:M,y:q,data:Q,reset:Z}=await R({x:S,y:b,initialPlacement:s,placement:C,strategy:f,middlewareData:j,rects:y,platform:{...h,detectOverflow:(w=h.detectOverflow)!=null?w:pw},elements:{reference:a,floating:i}});S=M??S,b=q??b,j={...j,[z]:{...j[z],...Q}},Z&&D<=50&&(D++,typeof Z=="object"&&(Z.placement&&(C=Z.placement),Z.rects&&(y=Z.rects===!0?await h.getElementRects({reference:a,floating:i,strategy:f}):Z.rects),{x:S,y:b}=$p(y,C,v)),T=-1)}return{x:S,y:b,placement:C,strategy:f,middlewareData:j}},gw=a=>({name:"arrow",options:a,async fn(i){const{x:o,y:s,placement:f,rects:d,platform:h,elements:p,middlewareData:v}=i,{element:y,padding:S=0}=Mn(a,i)||{};if(y==null)return{};const b=eg(S),C={x:o,y:s},j=rf(f),D=of(j),w=await h.getDimensions(y),T=j==="y",z=T?"top":"left",R=T?"bottom":"right",M=T?"clientHeight":"clientWidth",q=d.reference[D]+d.reference[j]-C[j]-d.floating[D],Q=C[j]-d.reference[j],Z=await(h.getOffsetParent==null?void 0:h.getOffsetParent(y));let Y=Z?Z[M]:0;(!Y||!await(h.isElement==null?void 0:h.isElement(Z)))&&(Y=p.floating[M]||d.floating[D]);const le=q/2-Q/2,oe=Y/2-w[D]/2-1,ae=sl(b[z],oe),se=sl(b[R],oe),W=ae,ce=Y-w[D]-se,I=Y/2-w[D]/2+le,te=Yu(W,I,ce),O=!v.arrow&&_a(f)!=null&&I!==te&&d.reference[D]/2-(I<W?ae:se)-w[D]/2<0,L=O?I<W?I-W:I-ce:0;return{[j]:C[j]+L,data:{[j]:te,centerOffset:I-te-L,...O&&{alignmentOffset:L}},reset:O}}}),yw=function(a){return a===void 0&&(a={}),{name:"flip",options:a,async fn(i){var o,s;const{placement:f,middlewareData:d,rects:h,initialPlacement:p,platform:v,elements:y}=i,{mainAxis:S=!0,crossAxis:b=!0,fallbackPlacements:C,fallbackStrategy:j="bestFit",fallbackAxisSideDirection:D="none",flipAlignment:w=!0,...T}=Mn(a,i);if((o=d.arrow)!=null&&o.alignmentOffset)return{};const z=Ln(f),R=an(p),M=Ln(p)===p,q=await(v.isRTL==null?void 0:v.isRTL(y.floating)),Q=C||(M||!w?[Mo(p)]:sw(p)),Z=D!=="none";!C&&Z&&Q.push(...hw(p,w,D,q));const Y=[p,...Q],le=await v.detectOverflow(i,T),oe=[];let ae=((s=d.flip)==null?void 0:s.overflows)||[];if(S&&oe.push(le[z]),b){const I=rw(f,h,q);oe.push(le[I[0]],le[I[1]])}if(ae=[...ae,{placement:f,overflows:oe}],!oe.every(I=>I<=0)){var se,W;const I=(((se=d.flip)==null?void 0:se.index)||0)+1,te=Y[I];if(te&&(!(b==="alignment"?R!==an(te):!1)||ae.every(G=>an(G.placement)===R?G.overflows[0]>0:!0)))return{data:{index:I,overflows:ae},reset:{placement:te}};let O=(W=ae.filter(L=>L.overflows[0]<=0).sort((L,G)=>L.overflows[1]-G.overflows[1])[0])==null?void 0:W.placement;if(!O)switch(j){case"bestFit":{var ce;const L=(ce=ae.filter(G=>{if(Z){const ne=an(G.placement);return ne===R||ne==="y"}return!0}).map(G=>[G.placement,G.overflows.filter(ne=>ne>0).reduce((ne,fe)=>ne+fe,0)]).sort((G,ne)=>G[1]-ne[1])[0])==null?void 0:ce[0];L&&(O=L);break}case"initialPlacement":O=p;break}if(f!==O)return{reset:{placement:O}}}return{}}}};function Ip(a,i){return{top:a.top-i.height,right:a.right-i.width,bottom:a.bottom-i.height,left:a.left-i.width}}function ev(a){return aw.some(i=>a[i]>=0)}const xw=function(a){return a===void 0&&(a={}),{name:"hide",options:a,async fn(i){const{rects:o,platform:s}=i,{strategy:f="referenceHidden",...d}=Mn(a,i);switch(f){case"referenceHidden":{const h=await s.detectOverflow(i,{...d,elementContext:"reference"}),p=Ip(h,o.reference);return{data:{referenceHiddenOffsets:p,referenceHidden:ev(p)}}}case"escaped":{const h=await s.detectOverflow(i,{...d,altBoundary:!0}),p=Ip(h,o.floating);return{data:{escapedOffsets:p,escaped:ev(p)}}}default:return{}}}}},tg=new Set(["left","top"]);async function bw(a,i){const{placement:o,platform:s,elements:f}=a,d=await(s.isRTL==null?void 0:s.isRTL(f.floating)),h=Ln(o),p=_a(o),v=an(o)==="y",y=tg.has(h)?-1:1,S=d&&v?-1:1,b=Mn(i,a);let{mainAxis:C,crossAxis:j,alignmentAxis:D}=typeof b=="number"?{mainAxis:b,crossAxis:0,alignmentAxis:null}:{mainAxis:b.mainAxis||0,crossAxis:b.crossAxis||0,alignmentAxis:b.alignmentAxis};return p&&typeof D=="number"&&(j=p==="end"?D*-1:D),v?{x:j*S,y:C*y}:{x:C*y,y:j*S}}const Sw=function(a){return a===void 0&&(a=0),{name:"offset",options:a,async fn(i){var o,s;const{x:f,y:d,placement:h,middlewareData:p}=i,v=await bw(i,a);return h===((o=p.offset)==null?void 0:o.placement)&&(s=p.arrow)!=null&&s.alignmentOffset?{}:{x:f+v.x,y:d+v.y,data:{...v,placement:h}}}}},ww=function(a){return a===void 0&&(a={}),{name:"shift",options:a,async fn(i){const{x:o,y:s,placement:f,platform:d}=i,{mainAxis:h=!0,crossAxis:p=!1,limiter:v={fn:z=>{let{x:R,y:M}=z;return{x:R,y:M}}},...y}=Mn(a,i),S={x:o,y:s},b=await d.detectOverflow(i,y),C=an(Ln(f)),j=cf(C);let D=S[j],w=S[C];if(h){const z=j==="y"?"top":"left",R=j==="y"?"bottom":"right",M=D+b[z],q=D-b[R];D=Yu(M,D,q)}if(p){const z=C==="y"?"top":"left",R=C==="y"?"bottom":"right",M=w+b[z],q=w-b[R];w=Yu(M,w,q)}const T=v.fn({...i,[j]:D,[C]:w});return{...T,data:{x:T.x-o,y:T.y-s,enabled:{[j]:h,[C]:p}}}}}},Ew=function(a){return a===void 0&&(a={}),{options:a,fn(i){const{x:o,y:s,placement:f,rects:d,middlewareData:h}=i,{offset:p=0,mainAxis:v=!0,crossAxis:y=!0}=Mn(a,i),S={x:o,y:s},b=an(f),C=cf(b);let j=S[C],D=S[b];const w=Mn(p,i),T=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(v){const M=C==="y"?"height":"width",q=d.reference[C]-d.floating[M]+T.mainAxis,Q=d.reference[C]+d.reference[M]-T.mainAxis;j<q?j=q:j>Q&&(j=Q)}if(y){var z,R;const M=C==="y"?"width":"height",q=tg.has(Ln(f)),Q=d.reference[b]-d.floating[M]+(q&&((z=h.offset)==null?void 0:z[b])||0)+(q?0:T.crossAxis),Z=d.reference[b]+d.reference[M]+(q?0:((R=h.offset)==null?void 0:R[b])||0)-(q?T.crossAxis:0);D<Q?D=Q:D>Z&&(D=Z)}return{[C]:j,[b]:D}}}},Cw=function(a){return a===void 0&&(a={}),{name:"size",options:a,async fn(i){var o,s;const{placement:f,rects:d,platform:h,elements:p}=i,{apply:v=()=>{},...y}=Mn(a,i),S=await h.detectOverflow(i,y),b=Ln(f),C=_a(f),j=an(f)==="y",{width:D,height:w}=d.floating;let T,z;b==="top"||b==="bottom"?(T=b,z=C===(await(h.isRTL==null?void 0:h.isRTL(p.floating))?"start":"end")?"left":"right"):(z=b,T=C==="end"?"top":"bottom");const R=w-S.top-S.bottom,M=D-S.left-S.right,q=sl(w-S[T],R),Q=sl(D-S[z],M),Z=!i.middlewareData.shift;let Y=q,le=Q;if((o=i.middlewareData.shift)!=null&&o.enabled.x&&(le=M),(s=i.middlewareData.shift)!=null&&s.enabled.y&&(Y=R),Z&&!C){const ae=Ot(S.left,0),se=Ot(S.right,0),W=Ot(S.top,0),ce=Ot(S.bottom,0);j?le=D-2*(ae!==0||se!==0?ae+se:Ot(S.left,S.right)):Y=w-2*(W!==0||ce!==0?W+ce:Ot(S.top,S.bottom))}await v({...i,availableWidth:le,availableHeight:Y});const oe=await h.getDimensions(p.floating);return D!==oe.width||w!==oe.height?{reset:{rects:!0}}:{}}}};function qo(){return typeof window<"u"}function Da(a){return ng(a)?(a.nodeName||"").toLowerCase():"#document"}function _t(a){var i;return(a==null||(i=a.ownerDocument)==null?void 0:i.defaultView)||window}function un(a){var i;return(i=(ng(a)?a.ownerDocument:a.document)||window.document)==null?void 0:i.documentElement}function ng(a){return qo()?a instanceof Node||a instanceof _t(a).Node:!1}function Jt(a){return qo()?a instanceof Element||a instanceof _t(a).Element:!1}function on(a){return qo()?a instanceof HTMLElement||a instanceof _t(a).HTMLElement:!1}function tv(a){return!qo()||typeof ShadowRoot>"u"?!1:a instanceof ShadowRoot||a instanceof _t(a).ShadowRoot}const Nw=new Set(["inline","contents"]);function Qi(a){const{overflow:i,overflowX:o,overflowY:s,display:f}=Wt(a);return/auto|scroll|overlay|hidden|clip/.test(i+s+o)&&!Nw.has(f)}const jw=new Set(["table","td","th"]);function Tw(a){return jw.has(Da(a))}const Aw=[":popover-open",":modal"];function Vo(a){return Aw.some(i=>{try{return a.matches(i)}catch{return!1}})}const Rw=["transform","translate","scale","rotate","perspective"],zw=["transform","translate","scale","rotate","perspective","filter"],Ow=["paint","layout","strict","content"];function sf(a){const i=uf(),o=Jt(a)?Wt(a):a;return Rw.some(s=>o[s]?o[s]!=="none":!1)||(o.containerType?o.containerType!=="normal":!1)||!i&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!i&&(o.filter?o.filter!=="none":!1)||zw.some(s=>(o.willChange||"").includes(s))||Ow.some(s=>(o.contain||"").includes(s))}function _w(a){let i=ul(a);for(;on(i)&&!Aa(i);){if(sf(i))return i;if(Vo(i))return null;i=ul(i)}return null}function uf(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Dw=new Set(["html","body","#document"]);function Aa(a){return Dw.has(Da(a))}function Wt(a){return _t(a).getComputedStyle(a)}function Xo(a){return Jt(a)?{scrollLeft:a.scrollLeft,scrollTop:a.scrollTop}:{scrollLeft:a.scrollX,scrollTop:a.scrollY}}function ul(a){if(Da(a)==="html")return a;const i=a.assignedSlot||a.parentNode||tv(a)&&a.host||un(a);return tv(i)?i.host:i}function lg(a){const i=ul(a);return Aa(i)?a.ownerDocument?a.ownerDocument.body:a.body:on(i)&&Qi(i)?i:lg(i)}function Vi(a,i,o){var s;i===void 0&&(i=[]),o===void 0&&(o=!0);const f=lg(a),d=f===((s=a.ownerDocument)==null?void 0:s.body),h=_t(f);if(d){const p=Vu(h);return i.concat(h,h.visualViewport||[],Qi(f)?f:[],p&&o?Vi(p):[])}return i.concat(f,Vi(f,[],o))}function Vu(a){return a.parent&&Object.getPrototypeOf(a.parent)?a.frameElement:null}function ag(a){const i=Wt(a);let o=parseFloat(i.width)||0,s=parseFloat(i.height)||0;const f=on(a),d=f?a.offsetWidth:o,h=f?a.offsetHeight:s,p=Do(o)!==d||Do(s)!==h;return p&&(o=d,s=h),{width:o,height:s,$:p}}function ff(a){return Jt(a)?a:a.contextElement}function Na(a){const i=ff(a);if(!on(i))return cn(1);const o=i.getBoundingClientRect(),{width:s,height:f,$:d}=ag(i);let h=(d?Do(o.width):o.width)/s,p=(d?Do(o.height):o.height)/f;return(!h||!Number.isFinite(h))&&(h=1),(!p||!Number.isFinite(p))&&(p=1),{x:h,y:p}}const Mw=cn(0);function ig(a){const i=_t(a);return!uf()||!i.visualViewport?Mw:{x:i.visualViewport.offsetLeft,y:i.visualViewport.offsetTop}}function Lw(a,i,o){return i===void 0&&(i=!1),!o||i&&o!==_t(a)?!1:i}function Ml(a,i,o,s){i===void 0&&(i=!1),o===void 0&&(o=!1);const f=a.getBoundingClientRect(),d=ff(a);let h=cn(1);i&&(s?Jt(s)&&(h=Na(s)):h=Na(a));const p=Lw(d,o,s)?ig(d):cn(0);let v=(f.left+p.x)/h.x,y=(f.top+p.y)/h.y,S=f.width/h.x,b=f.height/h.y;if(d){const C=_t(d),j=s&&Jt(s)?_t(s):s;let D=C,w=Vu(D);for(;w&&s&&j!==D;){const T=Na(w),z=w.getBoundingClientRect(),R=Wt(w),M=z.left+(w.clientLeft+parseFloat(R.paddingLeft))*T.x,q=z.top+(w.clientTop+parseFloat(R.paddingTop))*T.y;v*=T.x,y*=T.y,S*=T.x,b*=T.y,v+=M,y+=q,D=_t(w),w=Vu(D)}}return Lo({width:S,height:b,x:v,y})}function Go(a,i){const o=Xo(a).scrollLeft;return i?i.left+o:Ml(un(a)).left+o}function cg(a,i){const o=a.getBoundingClientRect(),s=o.left+i.scrollLeft-Go(a,o),f=o.top+i.scrollTop;return{x:s,y:f}}function Uw(a){let{elements:i,rect:o,offsetParent:s,strategy:f}=a;const d=f==="fixed",h=un(s),p=i?Vo(i.floating):!1;if(s===h||p&&d)return o;let v={scrollLeft:0,scrollTop:0},y=cn(1);const S=cn(0),b=on(s);if((b||!b&&!d)&&((Da(s)!=="body"||Qi(h))&&(v=Xo(s)),on(s))){const j=Ml(s);y=Na(s),S.x=j.x+s.clientLeft,S.y=j.y+s.clientTop}const C=h&&!b&&!d?cg(h,v):cn(0);return{width:o.width*y.x,height:o.height*y.y,x:o.x*y.x-v.scrollLeft*y.x+S.x+C.x,y:o.y*y.y-v.scrollTop*y.y+S.y+C.y}}function Hw(a){return Array.from(a.getClientRects())}function Bw(a){const i=un(a),o=Xo(a),s=a.ownerDocument.body,f=Ot(i.scrollWidth,i.clientWidth,s.scrollWidth,s.clientWidth),d=Ot(i.scrollHeight,i.clientHeight,s.scrollHeight,s.clientHeight);let h=-o.scrollLeft+Go(a);const p=-o.scrollTop;return Wt(s).direction==="rtl"&&(h+=Ot(i.clientWidth,s.clientWidth)-f),{width:f,height:d,x:h,y:p}}const nv=25;function kw(a,i){const o=_t(a),s=un(a),f=o.visualViewport;let d=s.clientWidth,h=s.clientHeight,p=0,v=0;if(f){d=f.width,h=f.height;const S=uf();(!S||S&&i==="fixed")&&(p=f.offsetLeft,v=f.offsetTop)}const y=Go(s);if(y<=0){const S=s.ownerDocument,b=S.body,C=getComputedStyle(b),j=S.compatMode==="CSS1Compat"&&parseFloat(C.marginLeft)+parseFloat(C.marginRight)||0,D=Math.abs(s.clientWidth-b.clientWidth-j);D<=nv&&(d-=D)}else y<=nv&&(d+=y);return{width:d,height:h,x:p,y:v}}const Yw=new Set(["absolute","fixed"]);function qw(a,i){const o=Ml(a,!0,i==="fixed"),s=o.top+a.clientTop,f=o.left+a.clientLeft,d=on(a)?Na(a):cn(1),h=a.clientWidth*d.x,p=a.clientHeight*d.y,v=f*d.x,y=s*d.y;return{width:h,height:p,x:v,y}}function lv(a,i,o){let s;if(i==="viewport")s=kw(a,o);else if(i==="document")s=Bw(un(a));else if(Jt(i))s=qw(i,o);else{const f=ig(a);s={x:i.x-f.x,y:i.y-f.y,width:i.width,height:i.height}}return Lo(s)}function og(a,i){const o=ul(a);return o===i||!Jt(o)||Aa(o)?!1:Wt(o).position==="fixed"||og(o,i)}function Vw(a,i){const o=i.get(a);if(o)return o;let s=Vi(a,[],!1).filter(p=>Jt(p)&&Da(p)!=="body"),f=null;const d=Wt(a).position==="fixed";let h=d?ul(a):a;for(;Jt(h)&&!Aa(h);){const p=Wt(h),v=sf(h);!v&&p.position==="fixed"&&(f=null),(d?!v&&!f:!v&&p.position==="static"&&!!f&&Yw.has(f.position)||Qi(h)&&!v&&og(a,h))?s=s.filter(S=>S!==h):f=p,h=ul(h)}return i.set(a,s),s}function Xw(a){let{element:i,boundary:o,rootBoundary:s,strategy:f}=a;const h=[...o==="clippingAncestors"?Vo(i)?[]:Vw(i,this._c):[].concat(o),s],p=h[0],v=h.reduce((y,S)=>{const b=lv(i,S,f);return y.top=Ot(b.top,y.top),y.right=sl(b.right,y.right),y.bottom=sl(b.bottom,y.bottom),y.left=Ot(b.left,y.left),y},lv(i,p,f));return{width:v.right-v.left,height:v.bottom-v.top,x:v.left,y:v.top}}function Gw(a){const{width:i,height:o}=ag(a);return{width:i,height:o}}function Fw(a,i,o){const s=on(i),f=un(i),d=o==="fixed",h=Ml(a,!0,d,i);let p={scrollLeft:0,scrollTop:0};const v=cn(0);function y(){v.x=Go(f)}if(s||!s&&!d)if((Da(i)!=="body"||Qi(f))&&(p=Xo(i)),s){const j=Ml(i,!0,d,i);v.x=j.x+i.clientLeft,v.y=j.y+i.clientTop}else f&&y();d&&!s&&f&&y();const S=f&&!s&&!d?cg(f,p):cn(0),b=h.left+p.scrollLeft-v.x-S.x,C=h.top+p.scrollTop-v.y-S.y;return{x:b,y:C,width:h.width,height:h.height}}function ju(a){return Wt(a).position==="static"}function av(a,i){if(!on(a)||Wt(a).position==="fixed")return null;if(i)return i(a);let o=a.offsetParent;return un(a)===o&&(o=o.ownerDocument.body),o}function rg(a,i){const o=_t(a);if(Vo(a))return o;if(!on(a)){let f=ul(a);for(;f&&!Aa(f);){if(Jt(f)&&!ju(f))return f;f=ul(f)}return o}let s=av(a,i);for(;s&&Tw(s)&&ju(s);)s=av(s,i);return s&&Aa(s)&&ju(s)&&!sf(s)?o:s||_w(a)||o}const Kw=async function(a){const i=this.getOffsetParent||rg,o=this.getDimensions,s=await o(a.floating);return{reference:Fw(a.reference,await i(a.floating),a.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function Qw(a){return Wt(a).direction==="rtl"}const Zw={convertOffsetParentRelativeRectToViewportRelativeRect:Uw,getDocumentElement:un,getClippingRect:Xw,getOffsetParent:rg,getElementRects:Kw,getClientRects:Hw,getDimensions:Gw,getScale:Na,isElement:Jt,isRTL:Qw};function sg(a,i){return a.x===i.x&&a.y===i.y&&a.width===i.width&&a.height===i.height}function Pw(a,i){let o=null,s;const f=un(a);function d(){var p;clearTimeout(s),(p=o)==null||p.disconnect(),o=null}function h(p,v){p===void 0&&(p=!1),v===void 0&&(v=1),d();const y=a.getBoundingClientRect(),{left:S,top:b,width:C,height:j}=y;if(p||i(),!C||!j)return;const D=vo(b),w=vo(f.clientWidth-(S+C)),T=vo(f.clientHeight-(b+j)),z=vo(S),M={rootMargin:-D+"px "+-w+"px "+-T+"px "+-z+"px",threshold:Ot(0,sl(1,v))||1};let q=!0;function Q(Z){const Y=Z[0].intersectionRatio;if(Y!==v){if(!q)return h();Y?h(!1,Y):s=setTimeout(()=>{h(!1,1e-7)},1e3)}Y===1&&!sg(y,a.getBoundingClientRect())&&h(),q=!1}try{o=new IntersectionObserver(Q,{...M,root:f.ownerDocument})}catch{o=new IntersectionObserver(Q,M)}o.observe(a)}return h(!0),d}function Jw(a,i,o,s){s===void 0&&(s={});const{ancestorScroll:f=!0,ancestorResize:d=!0,elementResize:h=typeof ResizeObserver=="function",layoutShift:p=typeof IntersectionObserver=="function",animationFrame:v=!1}=s,y=ff(a),S=f||d?[...y?Vi(y):[],...Vi(i)]:[];S.forEach(z=>{f&&z.addEventListener("scroll",o,{passive:!0}),d&&z.addEventListener("resize",o)});const b=y&&p?Pw(y,o):null;let C=-1,j=null;h&&(j=new ResizeObserver(z=>{let[R]=z;R&&R.target===y&&j&&(j.unobserve(i),cancelAnimationFrame(C),C=requestAnimationFrame(()=>{var M;(M=j)==null||M.observe(i)})),o()}),y&&!v&&j.observe(y),j.observe(i));let D,w=v?Ml(a):null;v&&T();function T(){const z=Ml(a);w&&!sg(w,z)&&o(),w=z,D=requestAnimationFrame(T)}return o(),()=>{var z;S.forEach(R=>{f&&R.removeEventListener("scroll",o),d&&R.removeEventListener("resize",o)}),b?.(),(z=j)==null||z.disconnect(),j=null,v&&cancelAnimationFrame(D)}}const Ww=Sw,$w=ww,Iw=yw,eE=Cw,tE=xw,iv=gw,nE=Ew,lE=(a,i,o)=>{const s=new Map,f={platform:Zw,...o},d={...f.platform,_c:s};return vw(a,i,{...f,platform:d})};var aE=typeof document<"u",iE=function(){},No=aE?g.useLayoutEffect:iE;function Uo(a,i){if(a===i)return!0;if(typeof a!=typeof i)return!1;if(typeof a=="function"&&a.toString()===i.toString())return!0;let o,s,f;if(a&&i&&typeof a=="object"){if(Array.isArray(a)){if(o=a.length,o!==i.length)return!1;for(s=o;s--!==0;)if(!Uo(a[s],i[s]))return!1;return!0}if(f=Object.keys(a),o=f.length,o!==Object.keys(i).length)return!1;for(s=o;s--!==0;)if(!{}.hasOwnProperty.call(i,f[s]))return!1;for(s=o;s--!==0;){const d=f[s];if(!(d==="_owner"&&a.$$typeof)&&!Uo(a[d],i[d]))return!1}return!0}return a!==a&&i!==i}function ug(a){return typeof window>"u"?1:(a.ownerDocument.defaultView||window).devicePixelRatio||1}function cv(a,i){const o=ug(a);return Math.round(i*o)/o}function Tu(a){const i=g.useRef(a);return No(()=>{i.current=a}),i}function cE(a){a===void 0&&(a={});const{placement:i="bottom",strategy:o="absolute",middleware:s=[],platform:f,elements:{reference:d,floating:h}={},transform:p=!0,whileElementsMounted:v,open:y}=a,[S,b]=g.useState({x:0,y:0,strategy:o,placement:i,middlewareData:{},isPositioned:!1}),[C,j]=g.useState(s);Uo(C,s)||j(s);const[D,w]=g.useState(null),[T,z]=g.useState(null),R=g.useCallback(G=>{G!==Z.current&&(Z.current=G,w(G))},[]),M=g.useCallback(G=>{G!==Y.current&&(Y.current=G,z(G))},[]),q=d||D,Q=h||T,Z=g.useRef(null),Y=g.useRef(null),le=g.useRef(S),oe=v!=null,ae=Tu(v),se=Tu(f),W=Tu(y),ce=g.useCallback(()=>{if(!Z.current||!Y.current)return;const G={placement:i,strategy:o,middleware:C};se.current&&(G.platform=se.current),lE(Z.current,Y.current,G).then(ne=>{const fe={...ne,isPositioned:W.current!==!1};I.current&&!Uo(le.current,fe)&&(le.current=fe,Fi.flushSync(()=>{b(fe)}))})},[C,i,o,se,W]);No(()=>{y===!1&&le.current.isPositioned&&(le.current.isPositioned=!1,b(G=>({...G,isPositioned:!1})))},[y]);const I=g.useRef(!1);No(()=>(I.current=!0,()=>{I.current=!1}),[]),No(()=>{if(q&&(Z.current=q),Q&&(Y.current=Q),q&&Q){if(ae.current)return ae.current(q,Q,ce);ce()}},[q,Q,ce,ae,oe]);const te=g.useMemo(()=>({reference:Z,floating:Y,setReference:R,setFloating:M}),[R,M]),O=g.useMemo(()=>({reference:q,floating:Q}),[q,Q]),L=g.useMemo(()=>{const G={position:o,left:0,top:0};if(!O.floating)return G;const ne=cv(O.floating,S.x),fe=cv(O.floating,S.y);return p?{...G,transform:"translate("+ne+"px, "+fe+"px)",...ug(O.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:ne,top:fe}},[o,p,O.floating,S.x,S.y]);return g.useMemo(()=>({...S,update:ce,refs:te,elements:O,floatingStyles:L}),[S,ce,te,O,L])}const oE=a=>{function i(o){return{}.hasOwnProperty.call(o,"current")}return{name:"arrow",options:a,fn(o){const{element:s,padding:f}=typeof a=="function"?a(o):a;return s&&i(s)?s.current!=null?iv({element:s.current,padding:f}).fn(o):{}:s?iv({element:s,padding:f}).fn(o):{}}}},rE=(a,i)=>({...Ww(a),options:[a,i]}),sE=(a,i)=>({...$w(a),options:[a,i]}),uE=(a,i)=>({...nE(a),options:[a,i]}),fE=(a,i)=>({...Iw(a),options:[a,i]}),dE=(a,i)=>({...eE(a),options:[a,i]}),hE=(a,i)=>({...tE(a),options:[a,i]}),mE=(a,i)=>({...oE(a),options:[a,i]});var pE="Arrow",fg=g.forwardRef((a,i)=>{const{children:o,width:s=10,height:f=5,...d}=a;return u.jsx(Fe.svg,{...d,ref:i,width:s,height:f,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:a.asChild?o:u.jsx("polygon",{points:"0,0 30,0 15,10"})})});fg.displayName=pE;var vE=fg;function gE(a){const[i,o]=g.useState(void 0);return yt(()=>{if(a){o({width:a.offsetWidth,height:a.offsetHeight});const s=new ResizeObserver(f=>{if(!Array.isArray(f)||!f.length)return;const d=f[0];let h,p;if("borderBoxSize"in d){const v=d.borderBoxSize,y=Array.isArray(v)?v[0]:v;h=y.inlineSize,p=y.blockSize}else h=a.offsetWidth,p=a.offsetHeight;o({width:h,height:p})});return s.observe(a,{box:"border-box"}),()=>s.unobserve(a)}else o(void 0)},[a]),i}var df="Popper",[dg,hg]=lf(df),[yE,mg]=dg(df),pg=a=>{const{__scopePopper:i,children:o}=a,[s,f]=g.useState(null);return u.jsx(yE,{scope:i,anchor:s,onAnchorChange:f,children:o})};pg.displayName=df;var vg="PopperAnchor",gg=g.forwardRef((a,i)=>{const{__scopePopper:o,virtualRef:s,...f}=a,d=mg(vg,o),h=g.useRef(null),p=ot(i,h),v=g.useRef(null);return g.useEffect(()=>{const y=v.current;v.current=s?.current||h.current,y!==v.current&&d.onAnchorChange(v.current)}),s?null:u.jsx(Fe.div,{...f,ref:p})});gg.displayName=vg;var hf="PopperContent",[xE,bE]=dg(hf),yg=g.forwardRef((a,i)=>{const{__scopePopper:o,side:s="bottom",sideOffset:f=0,align:d="center",alignOffset:h=0,arrowPadding:p=0,avoidCollisions:v=!0,collisionBoundary:y=[],collisionPadding:S=0,sticky:b="partial",hideWhenDetached:C=!1,updatePositionStrategy:j="optimized",onPlaced:D,...w}=a,T=mg(hf,o),[z,R]=g.useState(null),M=ot(i,$=>R($)),[q,Q]=g.useState(null),Z=gE(q),Y=Z?.width??0,le=Z?.height??0,oe=s+(d!=="center"?"-"+d:""),ae=typeof S=="number"?S:{top:0,right:0,bottom:0,left:0,...S},se=Array.isArray(y)?y:[y],W=se.length>0,ce={padding:ae,boundary:se.filter(wE),altBoundary:W},{refs:I,floatingStyles:te,placement:O,isPositioned:L,middlewareData:G}=cE({strategy:"fixed",placement:oe,whileElementsMounted:(...$)=>Jw(...$,{animationFrame:j==="always"}),elements:{reference:T.anchor},middleware:[rE({mainAxis:f+le,alignmentAxis:h}),v&&sE({mainAxis:!0,crossAxis:!1,limiter:b==="partial"?uE():void 0,...ce}),v&&fE({...ce}),dE({...ce,apply:({elements:$,rects:be,availableWidth:P,availableHeight:ue})=>{const{width:ge,height:Ae}=be.reference,tt=$.floating.style;tt.setProperty("--radix-popper-available-width",`${P}px`),tt.setProperty("--radix-popper-available-height",`${ue}px`),tt.setProperty("--radix-popper-anchor-width",`${ge}px`),tt.setProperty("--radix-popper-anchor-height",`${Ae}px`)}}),q&&mE({element:q,padding:p}),EE({arrowWidth:Y,arrowHeight:le}),C&&hE({strategy:"referenceHidden",...ce})]}),[ne,fe]=Sg(O),N=Dl(D);yt(()=>{L&&N?.()},[L,N]);const X=G.arrow?.x,J=G.arrow?.y,ee=G.arrow?.centerOffset!==0,[he,pe]=g.useState();return yt(()=>{z&&pe(window.getComputedStyle(z).zIndex)},[z]),u.jsx("div",{ref:I.setFloating,"data-radix-popper-content-wrapper":"",style:{...te,transform:L?te.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:he,"--radix-popper-transform-origin":[G.transformOrigin?.x,G.transformOrigin?.y].join(" "),...G.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:a.dir,children:u.jsx(xE,{scope:o,placedSide:ne,onArrowChange:Q,arrowX:X,arrowY:J,shouldHideArrow:ee,children:u.jsx(Fe.div,{"data-side":ne,"data-align":fe,...w,ref:M,style:{...w.style,animation:L?void 0:"none"}})})})});yg.displayName=hf;var xg="PopperArrow",SE={top:"bottom",right:"left",bottom:"top",left:"right"},bg=g.forwardRef(function(i,o){const{__scopePopper:s,...f}=i,d=bE(xg,s),h=SE[d.placedSide];return u.jsx("span",{ref:d.onArrowChange,style:{position:"absolute",left:d.arrowX,top:d.arrowY,[h]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[d.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[d.placedSide],visibility:d.shouldHideArrow?"hidden":void 0},children:u.jsx(vE,{...f,ref:o,style:{...f.style,display:"block"}})})});bg.displayName=xg;function wE(a){return a!==null}var EE=a=>({name:"transformOrigin",options:a,fn(i){const{placement:o,rects:s,middlewareData:f}=i,h=f.arrow?.centerOffset!==0,p=h?0:a.arrowWidth,v=h?0:a.arrowHeight,[y,S]=Sg(o),b={start:"0%",center:"50%",end:"100%"}[S],C=(f.arrow?.x??0)+p/2,j=(f.arrow?.y??0)+v/2;let D="",w="";return y==="bottom"?(D=h?b:`${C}px`,w=`${-v}px`):y==="top"?(D=h?b:`${C}px`,w=`${s.floating.height+v}px`):y==="right"?(D=`${-v}px`,w=h?b:`${j}px`):y==="left"&&(D=`${s.floating.width+v}px`,w=h?b:`${j}px`),{data:{x:D,y:w}}}});function Sg(a){const[i,o="center"]=a.split("-");return[i,o]}var CE=pg,NE=gg,jE=yg,TE=bg,AE="Portal",wg=g.forwardRef((a,i)=>{const{container:o,...s}=a,[f,d]=g.useState(!1);yt(()=>d(!0),[]);const h=o||f&&globalThis?.document?.body;return h?yS.createPortal(u.jsx(Fe.div,{...s,ref:i}),h):null});wg.displayName=AE;var RE=mv[" useInsertionEffect ".trim().toString()]||yt;function ov({prop:a,defaultProp:i,onChange:o=()=>{},caller:s}){const[f,d,h]=zE({defaultProp:i,onChange:o}),p=a!==void 0,v=p?a:f;{const S=g.useRef(a!==void 0);g.useEffect(()=>{const b=S.current;b!==p&&console.warn(`${s} is changing from ${b?"controlled":"uncontrolled"} to ${p?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),S.current=p},[p,s])}const y=g.useCallback(S=>{if(p){const b=OE(S)?S(a):S;b!==a&&h.current?.(b)}else d(S)},[p,a,d,h]);return[v,y]}function zE({defaultProp:a,onChange:i}){const[o,s]=g.useState(a),f=g.useRef(o),d=g.useRef(i);return RE(()=>{d.current=i},[i]),g.useEffect(()=>{f.current!==o&&(d.current?.(o),f.current=o)},[o,f]),[o,s,d]}function OE(a){return typeof a=="function"}function _E(a){const i=g.useRef({value:a,previous:a});return g.useMemo(()=>(i.current.value!==a&&(i.current.previous=i.current.value,i.current.value=a),i.current.previous),[a])}var Eg=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),DE="VisuallyHidden",ME=g.forwardRef((a,i)=>u.jsx(Fe.span,{...a,ref:i,style:{...Eg,...a.style}}));ME.displayName=DE;var LE=function(a){if(typeof document>"u")return null;var i=Array.isArray(a)?a[0]:a;return i.ownerDocument.body},Sa=new WeakMap,go=new WeakMap,yo={},Au=0,Cg=function(a){return a&&(a.host||Cg(a.parentNode))},UE=function(a,i){return i.map(function(o){if(a.contains(o))return o;var s=Cg(o);return s&&a.contains(s)?s:(console.error("aria-hidden",o,"in not contained inside",a,". Doing nothing"),null)}).filter(function(o){return!!o})},HE=function(a,i,o,s){var f=UE(i,Array.isArray(a)?a:[a]);yo[o]||(yo[o]=new WeakMap);var d=yo[o],h=[],p=new Set,v=new Set(f),y=function(b){!b||p.has(b)||(p.add(b),y(b.parentNode))};f.forEach(y);var S=function(b){!b||v.has(b)||Array.prototype.forEach.call(b.children,function(C){if(p.has(C))S(C);else try{var j=C.getAttribute(s),D=j!==null&&j!=="false",w=(Sa.get(C)||0)+1,T=(d.get(C)||0)+1;Sa.set(C,w),d.set(C,T),h.push(C),w===1&&D&&go.set(C,!0),T===1&&C.setAttribute(o,"true"),D||C.setAttribute(s,"true")}catch(z){console.error("aria-hidden: cannot operate on ",C,z)}})};return S(i),p.clear(),Au++,function(){h.forEach(function(b){var C=Sa.get(b)-1,j=d.get(b)-1;Sa.set(b,C),d.set(b,j),C||(go.has(b)||b.removeAttribute(s),go.delete(b)),j||b.removeAttribute(o)}),Au--,Au||(Sa=new WeakMap,Sa=new WeakMap,go=new WeakMap,yo={})}},BE=function(a,i,o){o===void 0&&(o="data-aria-hidden");var s=Array.from(Array.isArray(a)?a:[a]),f=LE(a);return f?(s.push.apply(s,Array.from(f.querySelectorAll("[aria-live], script"))),HE(s,f,o,"aria-hidden")):function(){return null}},ln=function(){return ln=Object.assign||function(i){for(var o,s=1,f=arguments.length;s<f;s++){o=arguments[s];for(var d in o)Object.prototype.hasOwnProperty.call(o,d)&&(i[d]=o[d])}return i},ln.apply(this,arguments)};function Ng(a,i){var o={};for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&i.indexOf(s)<0&&(o[s]=a[s]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var f=0,s=Object.getOwnPropertySymbols(a);f<s.length;f++)i.indexOf(s[f])<0&&Object.prototype.propertyIsEnumerable.call(a,s[f])&&(o[s[f]]=a[s[f]]);return o}function kE(a,i,o){if(o||arguments.length===2)for(var s=0,f=i.length,d;s<f;s++)(d||!(s in i))&&(d||(d=Array.prototype.slice.call(i,0,s)),d[s]=i[s]);return a.concat(d||Array.prototype.slice.call(i))}var jo="right-scroll-bar-position",To="width-before-scroll-bar",YE="with-scroll-bars-hidden",qE="--removed-body-scroll-bar-size";function Ru(a,i){return typeof a=="function"?a(i):a&&(a.current=i),a}function VE(a,i){var o=g.useState(function(){return{value:a,callback:i,facade:{get current(){return o.value},set current(s){var f=o.value;f!==s&&(o.value=s,o.callback(s,f))}}}})[0];return o.callback=i,o.facade}var XE=typeof window<"u"?g.useLayoutEffect:g.useEffect,rv=new WeakMap;function GE(a,i){var o=VE(null,function(s){return a.forEach(function(f){return Ru(f,s)})});return XE(function(){var s=rv.get(o);if(s){var f=new Set(s),d=new Set(a),h=o.current;f.forEach(function(p){d.has(p)||Ru(p,null)}),d.forEach(function(p){f.has(p)||Ru(p,h)})}rv.set(o,a)},[a]),o}function FE(a){return a}function KE(a,i){i===void 0&&(i=FE);var o=[],s=!1,f={read:function(){if(s)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return o.length?o[o.length-1]:a},useMedium:function(d){var h=i(d,s);return o.push(h),function(){o=o.filter(function(p){return p!==h})}},assignSyncMedium:function(d){for(s=!0;o.length;){var h=o;o=[],h.forEach(d)}o={push:function(p){return d(p)},filter:function(){return o}}},assignMedium:function(d){s=!0;var h=[];if(o.length){var p=o;o=[],p.forEach(d),h=o}var v=function(){var S=h;h=[],S.forEach(d)},y=function(){return Promise.resolve().then(v)};y(),o={push:function(S){h.push(S),y()},filter:function(S){return h=h.filter(S),o}}}};return f}function QE(a){a===void 0&&(a={});var i=KE(null);return i.options=ln({async:!0,ssr:!1},a),i}var jg=function(a){var i=a.sideCar,o=Ng(a,["sideCar"]);if(!i)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var s=i.read();if(!s)throw new Error("Sidecar medium not found");return g.createElement(s,ln({},o))};jg.isSideCarExport=!0;function ZE(a,i){return a.useMedium(i),jg}var Tg=QE(),zu=function(){},Fo=g.forwardRef(function(a,i){var o=g.useRef(null),s=g.useState({onScrollCapture:zu,onWheelCapture:zu,onTouchMoveCapture:zu}),f=s[0],d=s[1],h=a.forwardProps,p=a.children,v=a.className,y=a.removeScrollBar,S=a.enabled,b=a.shards,C=a.sideCar,j=a.noRelative,D=a.noIsolation,w=a.inert,T=a.allowPinchZoom,z=a.as,R=z===void 0?"div":z,M=a.gapMode,q=Ng(a,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),Q=C,Z=GE([o,i]),Y=ln(ln({},q),f);return g.createElement(g.Fragment,null,S&&g.createElement(Q,{sideCar:Tg,removeScrollBar:y,shards:b,noRelative:j,noIsolation:D,inert:w,setCallbacks:d,allowPinchZoom:!!T,lockRef:o,gapMode:M}),h?g.cloneElement(g.Children.only(p),ln(ln({},Y),{ref:Z})):g.createElement(R,ln({},Y,{className:v,ref:Z}),p))});Fo.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Fo.classNames={fullWidth:To,zeroRight:jo};var PE=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function JE(){if(!document)return null;var a=document.createElement("style");a.type="text/css";var i=PE();return i&&a.setAttribute("nonce",i),a}function WE(a,i){a.styleSheet?a.styleSheet.cssText=i:a.appendChild(document.createTextNode(i))}function $E(a){var i=document.head||document.getElementsByTagName("head")[0];i.appendChild(a)}var IE=function(){var a=0,i=null;return{add:function(o){a==0&&(i=JE())&&(WE(i,o),$E(i)),a++},remove:function(){a--,!a&&i&&(i.parentNode&&i.parentNode.removeChild(i),i=null)}}},e2=function(){var a=IE();return function(i,o){g.useEffect(function(){return a.add(i),function(){a.remove()}},[i&&o])}},Ag=function(){var a=e2(),i=function(o){var s=o.styles,f=o.dynamic;return a(s,f),null};return i},t2={left:0,top:0,right:0,gap:0},Ou=function(a){return parseInt(a||"",10)||0},n2=function(a){var i=window.getComputedStyle(document.body),o=i[a==="padding"?"paddingLeft":"marginLeft"],s=i[a==="padding"?"paddingTop":"marginTop"],f=i[a==="padding"?"paddingRight":"marginRight"];return[Ou(o),Ou(s),Ou(f)]},l2=function(a){if(a===void 0&&(a="margin"),typeof window>"u")return t2;var i=n2(a),o=document.documentElement.clientWidth,s=window.innerWidth;return{left:i[0],top:i[1],right:i[2],gap:Math.max(0,s-o+i[2]-i[0])}},a2=Ag(),ja="data-scroll-locked",i2=function(a,i,o,s){var f=a.left,d=a.top,h=a.right,p=a.gap;return o===void 0&&(o="margin"),`
12
- .`.concat(YE,` {
13
- overflow: hidden `).concat(s,`;
14
- padding-right: `).concat(p,"px ").concat(s,`;
11
+ Please change the parent <Route path="${R}"> to <Route path="${R==="/"?"*":`${R}/*`}">.`)}let C=un(),j;if(i){let R=typeof i=="string"?Oa(i):i;ke(S==="/"||R.pathname?.startsWith(S),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${S}" but pathname "${R.pathname}" was given in the \`location\` prop.`),j=R}else j=C;let D=j.pathname||"/",w=D;if(S!=="/"){let R=S.replace(/^\//,"").split("/");w="/"+D.replace(/^\//,"").split("/").slice(R.length).join("/")}let A=wv(a,{pathname:w});Mt(b||A!=null,`No routes matched location "${j.pathname}${j.search}${j.hash}" `),Mt(A==null||A[A.length-1].route.element!==void 0||A[A.length-1].route.Component!==void 0||A[A.length-1].route.lazy!==void 0,`Matched leaf route at location "${j.pathname}${j.search}${j.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let z=_b(A&&A.map(R=>Object.assign({},R,{params:Object.assign({},v,R.params),pathname:Dn([S,d.encodeLocation?d.encodeLocation(R.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:R.pathname]),pathnameBase:R.pathnameBase==="/"?S:Dn([S,d.encodeLocation?d.encodeLocation(R.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:R.pathnameBase])})),h,r,o,f);return i&&z?g.createElement(Gi.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...j},navigationType:"POP"}},z):z}function Tb(){let a=Hb(),i=pb(a)?`${a.status} ${a.statusText}`:a instanceof Error?a.message:JSON.stringify(a),r=a instanceof Error?a.stack:null,o="rgba(200,200,200, 0.5)",f={padding:"0.5rem",backgroundColor:o},d={padding:"2px 4px",backgroundColor:o},h=null;return console.error("Error handled by React Router default ErrorBoundary:",a),h=g.createElement(g.Fragment,null,g.createElement("p",null,"💿 Hey developer 👋"),g.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",g.createElement("code",{style:d},"ErrorBoundary")," or"," ",g.createElement("code",{style:d},"errorElement")," prop on your route.")),g.createElement(g.Fragment,null,g.createElement("h2",null,"Unexpected Application Error!"),g.createElement("h3",{style:{fontStyle:"italic"}},i),r?g.createElement("pre",{style:f},r):null,h)}var Rb=g.createElement(Tb,null),Mv=class extends g.Component{constructor(a){super(a),this.state={location:a.location,revalidation:a.revalidation,error:a.error}}static getDerivedStateFromError(a){return{error:a}}static getDerivedStateFromProps(a,i){return i.location!==a.location||i.revalidation!=="idle"&&a.revalidation==="idle"?{error:a.error,location:a.location,revalidation:a.revalidation}:{error:a.error!==void 0?a.error:i.error,location:i.location,revalidation:a.revalidation||i.revalidation}}componentDidCatch(a,i){this.props.onError?this.props.onError(a,i):console.error("React Router caught the following error during render",a)}render(){let a=this.state.error;if(this.context&&typeof a=="object"&&a&&"digest"in a&&typeof a.digest=="string"){const r=Cb(a.digest);r&&(a=r)}let i=a!==void 0?g.createElement(sn.Provider,{value:this.props.routeContext},g.createElement(tf.Provider,{value:a,children:this.props.component})):this.props.children;return this.context?g.createElement(zb,{error:a},i):i}};Mv.contextType=yb;var xu=new WeakMap;function zb({children:a,error:i}){let{basename:r}=g.useContext(Lt);if(typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){let o=Eb(i.digest);if(o){let f=xu.get(i);if(f)throw f;let d=Av(o.location,r);if(jv&&!xu.get(i))if(d.isExternal||o.reloadDocument)window.location.href=d.absoluteURL||d.to;else{const h=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(d.to,{replace:o.replace}));throw xu.set(i,h),h}return g.createElement("meta",{httpEquiv:"refresh",content:`0;url=${d.absoluteURL||d.to}`})}}return a}function Ob({routeContext:a,match:i,children:r}){let o=g.useContext(_a);return o&&o.static&&o.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=i.route.id),g.createElement(sn.Provider,{value:a},r)}function _b(a,i=[],r=null,o=null,f=null){if(a==null){if(!r)return null;if(r.errors)a=r.matches;else if(i.length===0&&!r.initialized&&r.matches.length>0)a=r.matches;else return null}let d=a,h=r?.errors;if(h!=null){let S=d.findIndex(b=>b.route.id&&h?.[b.route.id]!==void 0);ke(S>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(h).join(",")}`),d=d.slice(0,Math.min(d.length,S+1))}let p=!1,v=-1;if(r)for(let S=0;S<d.length;S++){let b=d[S];if((b.route.HydrateFallback||b.route.hydrateFallbackElement)&&(v=S),b.route.id){let{loaderData:C,errors:j}=r,D=b.route.loader&&!C.hasOwnProperty(b.route.id)&&(!j||j[b.route.id]===void 0);if(b.route.lazy||D){p=!0,v>=0?d=d.slice(0,v+1):d=[d[0]];break}}}let y=r&&o?(S,b)=>{o(S,{location:r.location,params:r.matches?.[0]?.params??{},unstable_pattern:vb(r.matches),errorInfo:b})}:void 0;return d.reduceRight((S,b,C)=>{let j,D=!1,w=null,A=null;r&&(j=h&&b.route.id?h[b.route.id]:void 0,w=b.route.errorElement||Rb,p&&(v<0&&C===0?(Lv("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),D=!0,A=null):v===C&&(D=!0,A=b.route.hydrateFallbackElement||null)));let z=i.concat(d.slice(0,C+1)),R=()=>{let M;return j?M=w:D?M=A:b.route.Component?M=g.createElement(b.route.Component,null):b.route.element?M=b.route.element:M=S,g.createElement(Ob,{match:b,routeContext:{outlet:S,matches:z,isDataRoute:r!=null},children:M})};return r&&(b.route.ErrorBoundary||b.route.errorElement||C===0)?g.createElement(Mv,{location:r.location,revalidation:r.revalidation,component:w,error:j,children:R(),routeContext:{outlet:null,matches:z,isDataRoute:!0},onError:y}):R()},null)}function nf(a){return`${a} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Db(a){let i=g.useContext(_a);return ke(i,nf(a)),i}function Mb(a){let i=g.useContext(Br);return ke(i,nf(a)),i}function Lb(a){let i=g.useContext(sn);return ke(i,nf(a)),i}function lf(a){let i=Lb(a),r=i.matches[i.matches.length-1];return ke(r.route.id,`${a} can only be used on routes that contain a unique "id"`),r.route.id}function Ub(){return lf("useRouteId")}function Hb(){let a=g.useContext(tf),i=Mb("useRouteError"),r=lf("useRouteError");return a!==void 0?a:i.errors?.[r]}function Bb(){let{router:a}=Db("useNavigate"),i=lf("useNavigate"),r=g.useRef(!1);return _v(()=>{r.current=!0}),g.useCallback(async(f,d={})=>{Mt(r.current,Ov),r.current&&(typeof f=="number"?await a.navigate(f):await a.navigate(f,{fromRouteId:i,...d}))},[a,i])}var Dp={};function Lv(a,i,r){!i&&!Dp[a]&&(Dp[a]=!0,Mt(!1,r))}g.memo(kb);function kb({routes:a,future:i,state:r,onError:o}){return Dv(a,void 0,r,o,i)}function Ln({to:a,replace:i,state:r,relative:o}){ke(Da(),"<Navigate> may be used only in the context of a <Router> component.");let{static:f}=g.useContext(Lt);Mt(!f,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:d}=g.useContext(sn),{pathname:h}=un(),p=Bn(),v=ef(a,$u(d),h,o==="path"),y=JSON.stringify(v);return g.useEffect(()=>{p(JSON.parse(y),{replace:i,state:r,relative:o})},[p,y,o,i,r]),null}function zt(a){ke(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Yb({basename:a="/",children:i=null,location:r,navigationType:o="POP",navigator:f,static:d=!1,unstable_useTransitions:h}){ke(!Da(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let p=a.replace(/^\/*/,"/"),v=g.useMemo(()=>({basename:p,navigator:f,static:d,unstable_useTransitions:h,future:{}}),[p,f,d,h]);typeof r=="string"&&(r=Oa(r));let{pathname:y="/",search:S="",hash:b="",state:C=null,key:j="default"}=r,D=g.useMemo(()=>{let w=Mn(y,p);return w==null?null:{location:{pathname:w,search:S,hash:b,state:C,key:j},navigationType:o}},[p,y,S,b,C,j,o]);return Mt(D!=null,`<Router basename="${p}"> is not able to match the URL "${y}${S}${b}" because it does not start with the basename, so the <Router> won't render anything.`),D==null?null:g.createElement(Lt.Provider,{value:v},g.createElement(Gi.Provider,{children:i,value:D}))}function qb({children:a,location:i}){return Ab(Lu(a),i)}function Lu(a,i=[]){let r=[];return g.Children.forEach(a,(o,f)=>{if(!g.isValidElement(o))return;let d=[...i,f];if(o.type===g.Fragment){r.push.apply(r,Lu(o.props.children,d));return}ke(o.type===zt,`[${typeof o.type=="string"?o.type:o.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),ke(!o.props.index||!o.props.children,"An index route cannot have child routes.");let h={id:o.props.id||d.join("-"),caseSensitive:o.props.caseSensitive,element:o.props.element,Component:o.props.Component,index:o.props.index,path:o.props.path,middleware:o.props.middleware,loader:o.props.loader,action:o.props.action,hydrateFallbackElement:o.props.hydrateFallbackElement,HydrateFallback:o.props.HydrateFallback,errorElement:o.props.errorElement,ErrorBoundary:o.props.ErrorBoundary,hasErrorBoundary:o.props.hasErrorBoundary===!0||o.props.ErrorBoundary!=null||o.props.errorElement!=null,shouldRevalidate:o.props.shouldRevalidate,handle:o.props.handle,lazy:o.props.lazy};o.props.children&&(h.children=Lu(o.props.children,d)),r.push(h)}),r}var Er="get",Cr="application/x-www-form-urlencoded";function kr(a){return typeof HTMLElement<"u"&&a instanceof HTMLElement}function Vb(a){return kr(a)&&a.tagName.toLowerCase()==="button"}function Xb(a){return kr(a)&&a.tagName.toLowerCase()==="form"}function Gb(a){return kr(a)&&a.tagName.toLowerCase()==="input"}function Fb(a){return!!(a.metaKey||a.altKey||a.ctrlKey||a.shiftKey)}function Kb(a,i){return a.button===0&&(!i||i==="_self")&&!Fb(a)}function Uu(a=""){return new URLSearchParams(typeof a=="string"||Array.isArray(a)||a instanceof URLSearchParams?a:Object.keys(a).reduce((i,r)=>{let o=a[r];return i.concat(Array.isArray(o)?o.map(f=>[r,f]):[[r,o]])},[]))}function Qb(a,i){let r=Uu(a);return i&&i.forEach((o,f)=>{r.has(f)||i.getAll(f).forEach(d=>{r.append(f,d)})}),r}var hr=null;function Zb(){if(hr===null)try{new FormData(document.createElement("form"),0),hr=!1}catch{hr=!0}return hr}var Pb=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function bu(a){return a!=null&&!Pb.has(a)?(Mt(!1,`"${a}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Cr}"`),null):a}function Jb(a,i){let r,o,f,d,h;if(Xb(a)){let p=a.getAttribute("action");o=p?Mn(p,i):null,r=a.getAttribute("method")||Er,f=bu(a.getAttribute("enctype"))||Cr,d=new FormData(a)}else if(Vb(a)||Gb(a)&&(a.type==="submit"||a.type==="image")){let p=a.form;if(p==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let v=a.getAttribute("formaction")||p.getAttribute("action");if(o=v?Mn(v,i):null,r=a.getAttribute("formmethod")||p.getAttribute("method")||Er,f=bu(a.getAttribute("formenctype"))||bu(p.getAttribute("enctype"))||Cr,d=new FormData(p,a),!Zb()){let{name:y,type:S,value:b}=a;if(S==="image"){let C=y?`${y}.`:"";d.append(`${C}x`,"0"),d.append(`${C}y`,"0")}else y&&d.append(y,b)}}else{if(kr(a))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Er,o=null,f=Cr,h=a}return d&&f==="text/plain"&&(h=d,d=void 0),{action:o,method:r.toLowerCase(),encType:f,formData:d,body:h}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function af(a,i){if(a===!1||a===null||typeof a>"u")throw new Error(i)}function Wb(a,i,r,o){let f=typeof a=="string"?new URL(a,typeof window>"u"?"server://singlefetch/":window.location.origin):a;return r?f.pathname.endsWith("/")?f.pathname=`${f.pathname}_.${o}`:f.pathname=`${f.pathname}.${o}`:f.pathname==="/"?f.pathname=`_root.${o}`:i&&Mn(f.pathname,i)==="/"?f.pathname=`${i.replace(/\/$/,"")}/_root.${o}`:f.pathname=`${f.pathname.replace(/\/$/,"")}.${o}`,f}async function Ib(a,i){if(a.id in i)return i[a.id];try{let r=await import(a.module);return i[a.id]=r,r}catch(r){return console.error(`Error loading route module \`${a.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function $b(a){return a==null?!1:a.href==null?a.rel==="preload"&&typeof a.imageSrcSet=="string"&&typeof a.imageSizes=="string":typeof a.rel=="string"&&typeof a.href=="string"}async function eS(a,i,r){let o=await Promise.all(a.map(async f=>{let d=i.routes[f.route.id];if(d){let h=await Ib(d,r);return h.links?h.links():[]}return[]}));return aS(o.flat(1).filter($b).filter(f=>f.rel==="stylesheet"||f.rel==="preload").map(f=>f.rel==="stylesheet"?{...f,rel:"prefetch",as:"style"}:{...f,rel:"prefetch"}))}function Mp(a,i,r,o,f,d){let h=(v,y)=>r[y]?v.route.id!==r[y].route.id:!0,p=(v,y)=>r[y].pathname!==v.pathname||r[y].route.path?.endsWith("*")&&r[y].params["*"]!==v.params["*"];return d==="assets"?i.filter((v,y)=>h(v,y)||p(v,y)):d==="data"?i.filter((v,y)=>{let S=o.routes[v.route.id];if(!S||!S.hasLoader)return!1;if(h(v,y)||p(v,y))return!0;if(v.route.shouldRevalidate){let b=v.route.shouldRevalidate({currentUrl:new URL(f.pathname+f.search+f.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(a,window.origin),nextParams:v.params,defaultShouldRevalidate:!0});if(typeof b=="boolean")return b}return!0}):[]}function tS(a,i,{includeHydrateFallback:r}={}){return nS(a.map(o=>{let f=i.routes[o.route.id];if(!f)return[];let d=[f.module];return f.clientActionModule&&(d=d.concat(f.clientActionModule)),f.clientLoaderModule&&(d=d.concat(f.clientLoaderModule)),r&&f.hydrateFallbackModule&&(d=d.concat(f.hydrateFallbackModule)),f.imports&&(d=d.concat(f.imports)),d}).flat(1))}function nS(a){return[...new Set(a)]}function lS(a){let i={},r=Object.keys(a).sort();for(let o of r)i[o]=a[o];return i}function aS(a,i){let r=new Set;return new Set(i),a.reduce((o,f)=>{let d=JSON.stringify(lS(f));return r.has(d)||(r.add(d),o.push({key:d,link:f})),o},[])}function Uv(){let a=g.useContext(_a);return af(a,"You must render this element inside a <DataRouterContext.Provider> element"),a}function iS(){let a=g.useContext(Br);return af(a,"You must render this element inside a <DataRouterStateContext.Provider> element"),a}var cf=g.createContext(void 0);cf.displayName="FrameworkContext";function Hv(){let a=g.useContext(cf);return af(a,"You must render this element inside a <HydratedRouter> element"),a}function cS(a,i){let r=g.useContext(cf),[o,f]=g.useState(!1),[d,h]=g.useState(!1),{onFocus:p,onBlur:v,onMouseEnter:y,onMouseLeave:S,onTouchStart:b}=i,C=g.useRef(null);g.useEffect(()=>{if(a==="render"&&h(!0),a==="viewport"){let w=z=>{z.forEach(R=>{h(R.isIntersecting)})},A=new IntersectionObserver(w,{threshold:.5});return C.current&&A.observe(C.current),()=>{A.disconnect()}}},[a]),g.useEffect(()=>{if(o){let w=setTimeout(()=>{h(!0)},100);return()=>{clearTimeout(w)}}},[o]);let j=()=>{f(!0)},D=()=>{f(!1),h(!1)};return r?a!=="intent"?[d,C,{}]:[d,C,{onFocus:Oi(p,j),onBlur:Oi(v,D),onMouseEnter:Oi(y,j),onMouseLeave:Oi(S,D),onTouchStart:Oi(b,j)}]:[!1,C,{}]}function Oi(a,i){return r=>{a&&a(r),r.defaultPrevented||i(r)}}function rS({page:a,...i}){let{router:r}=Uv(),o=g.useMemo(()=>wv(r.routes,a,r.basename),[r.routes,a,r.basename]);return o?g.createElement(sS,{page:a,matches:o,...i}):null}function oS(a){let{manifest:i,routeModules:r}=Hv(),[o,f]=g.useState([]);return g.useEffect(()=>{let d=!1;return eS(a,i,r).then(h=>{d||f(h)}),()=>{d=!0}},[a,i,r]),o}function sS({page:a,matches:i,...r}){let o=un(),{future:f,manifest:d,routeModules:h}=Hv(),{basename:p}=Uv(),{loaderData:v,matches:y}=iS(),S=g.useMemo(()=>Mp(a,i,y,d,o,"data"),[a,i,y,d,o]),b=g.useMemo(()=>Mp(a,i,y,d,o,"assets"),[a,i,y,d,o]),C=g.useMemo(()=>{if(a===o.pathname+o.search+o.hash)return[];let w=new Set,A=!1;if(i.forEach(R=>{let M=d.routes[R.route.id];!M||!M.hasLoader||(!S.some(q=>q.route.id===R.route.id)&&R.route.id in v&&h[R.route.id]?.shouldRevalidate||M.hasClientLoader?A=!0:w.add(R.route.id))}),w.size===0)return[];let z=Wb(a,p,f.unstable_trailingSlashAwareDataRequests,"data");return A&&w.size>0&&z.searchParams.set("_routes",i.filter(R=>w.has(R.route.id)).map(R=>R.route.id).join(",")),[z.pathname+z.search]},[p,f.unstable_trailingSlashAwareDataRequests,v,o,d,S,i,a,h]),j=g.useMemo(()=>tS(b,d),[b,d]),D=oS(b);return g.createElement(g.Fragment,null,C.map(w=>g.createElement("link",{key:w,rel:"prefetch",as:"fetch",href:w,...r})),j.map(w=>g.createElement("link",{key:w,rel:"modulepreload",href:w,...r})),D.map(({key:w,link:A})=>g.createElement("link",{key:w,nonce:r.nonce,...A})))}function uS(...a){return i=>{a.forEach(r=>{typeof r=="function"?r(i):r!=null&&(r.current=i)})}}var fS=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{fS&&(window.__reactRouterVersion="7.12.0")}catch{}function dS({basename:a,children:i,unstable_useTransitions:r,window:o}){let f=g.useRef();f.current==null&&(f.current=Fx({window:o,v5Compat:!0}));let d=f.current,[h,p]=g.useState({action:d.action,location:d.location}),v=g.useCallback(y=>{r===!1?p(y):g.startTransition(()=>p(y))},[r]);return g.useLayoutEffect(()=>d.listen(v),[d,v]),g.createElement(Yb,{basename:a,children:i,location:h.location,navigationType:h.action,navigator:d,unstable_useTransitions:r})}var Bv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Rr=g.forwardRef(function({onClick:i,discover:r="render",prefetch:o="none",relative:f,reloadDocument:d,replace:h,state:p,target:v,to:y,preventScrollReset:S,viewTransition:b,unstable_defaultShouldRevalidate:C,...j},D){let{basename:w,unstable_useTransitions:A}=g.useContext(Lt),z=typeof y=="string"&&Bv.test(y),R=Av(y,w);y=R.to;let M=Nb(y,{relative:f}),[q,Q,P]=cS(o,j),Y=vS(y,{replace:h,state:p,target:v,preventScrollReset:S,relative:f,viewTransition:b,unstable_defaultShouldRevalidate:C,unstable_useTransitions:A});function ne(se){i&&i(se),se.defaultPrevented||Y(se)}let le=g.createElement("a",{...j,...P,href:R.absoluteURL||M,onClick:R.isExternal||d?i:ne,ref:uS(D,Q),target:v,"data-discover":!z&&r==="render"?"true":void 0});return q&&!z?g.createElement(g.Fragment,null,le,g.createElement(rS,{page:M})):le});Rr.displayName="Link";var hS=g.forwardRef(function({"aria-current":i="page",caseSensitive:r=!1,className:o="",end:f=!1,style:d,to:h,viewTransition:p,children:v,...y},S){let b=Fi(h,{relative:y.relative}),C=un(),j=g.useContext(Br),{navigator:D,basename:w}=g.useContext(Lt),A=j!=null&&wS(b)&&p===!0,z=D.encodeLocation?D.encodeLocation(b).pathname:b.pathname,R=C.pathname,M=j&&j.navigation&&j.navigation.location?j.navigation.location.pathname:null;r||(R=R.toLowerCase(),M=M?M.toLowerCase():null,z=z.toLowerCase()),M&&w&&(M=Mn(M,w)||M);const q=z!=="/"&&z.endsWith("/")?z.length-1:z.length;let Q=R===z||!f&&R.startsWith(z)&&R.charAt(q)==="/",P=M!=null&&(M===z||!f&&M.startsWith(z)&&M.charAt(z.length)==="/"),Y={isActive:Q,isPending:P,isTransitioning:A},ne=Q?i:void 0,le;typeof o=="function"?le=o(Y):le=[o,Q?"active":null,P?"pending":null,A?"transitioning":null].filter(Boolean).join(" ");let se=typeof d=="function"?d(Y):d;return g.createElement(Rr,{...y,"aria-current":ne,className:le,ref:S,style:se,to:h,viewTransition:p},typeof v=="function"?v(Y):v)});hS.displayName="NavLink";var mS=g.forwardRef(({discover:a="render",fetcherKey:i,navigate:r,reloadDocument:o,replace:f,state:d,method:h=Er,action:p,onSubmit:v,relative:y,preventScrollReset:S,viewTransition:b,unstable_defaultShouldRevalidate:C,...j},D)=>{let{unstable_useTransitions:w}=g.useContext(Lt),A=bS(),z=SS(p,{relative:y}),R=h.toLowerCase()==="get"?"get":"post",M=typeof p=="string"&&Bv.test(p),q=Q=>{if(v&&v(Q),Q.defaultPrevented)return;Q.preventDefault();let P=Q.nativeEvent.submitter,Y=P?.getAttribute("formmethod")||h,ne=()=>A(P||Q.currentTarget,{fetcherKey:i,method:Y,navigate:r,replace:f,state:d,relative:y,preventScrollReset:S,viewTransition:b,unstable_defaultShouldRevalidate:C});w&&r!==!1?g.startTransition(()=>ne()):ne()};return g.createElement("form",{ref:D,method:R,action:z,onSubmit:o?v:q,...j,"data-discover":!M&&a==="render"?"true":void 0})});mS.displayName="Form";function pS(a){return`${a} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function kv(a){let i=g.useContext(_a);return ke(i,pS(a)),i}function vS(a,{target:i,replace:r,state:o,preventScrollReset:f,relative:d,viewTransition:h,unstable_defaultShouldRevalidate:p,unstable_useTransitions:v}={}){let y=Bn(),S=un(),b=Fi(a,{relative:d});return g.useCallback(C=>{if(Kb(C,i)){C.preventDefault();let j=r!==void 0?r:Yi(S)===Yi(b),D=()=>y(a,{replace:j,state:o,preventScrollReset:f,relative:d,viewTransition:h,unstable_defaultShouldRevalidate:p});v?g.startTransition(()=>D()):D()}},[S,y,b,r,o,i,a,f,d,h,p,v])}function gS(a){Mt(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let i=g.useRef(Uu(a)),r=g.useRef(!1),o=un(),f=g.useMemo(()=>Qb(o.search,r.current?null:i.current),[o.search]),d=Bn(),h=g.useCallback((p,v)=>{const y=Uu(typeof p=="function"?p(new URLSearchParams(f)):p);r.current=!0,d("?"+y,v)},[d,f]);return[f,h]}var yS=0,xS=()=>`__${String(++yS)}__`;function bS(){let{router:a}=kv("useSubmit"),{basename:i}=g.useContext(Lt),r=Ub(),o=a.fetch,f=a.navigate;return g.useCallback(async(d,h={})=>{let{action:p,method:v,encType:y,formData:S,body:b}=Jb(d,i);if(h.navigate===!1){let C=h.fetcherKey||xS();await o(C,r,h.action||p,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:S,body:b,formMethod:h.method||v,formEncType:h.encType||y,flushSync:h.flushSync})}else await f(h.action||p,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:S,body:b,formMethod:h.method||v,formEncType:h.encType||y,replace:h.replace,state:h.state,fromRouteId:r,flushSync:h.flushSync,viewTransition:h.viewTransition})},[o,f,i,r])}function SS(a,{relative:i}={}){let{basename:r}=g.useContext(Lt),o=g.useContext(sn);ke(o,"useFormAction must be used inside a RouteContext");let[f]=o.matches.slice(-1),d={...Fi(a||".",{relative:i})},h=un();if(a==null){d.search=h.search;let p=new URLSearchParams(d.search),v=p.getAll("index");if(v.some(S=>S==="")){p.delete("index"),v.filter(b=>b).forEach(b=>p.append("index",b));let S=p.toString();d.search=S?`?${S}`:""}}return(!a||a===".")&&f.route.index&&(d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(d.pathname=d.pathname==="/"?r:Dn([r,d.pathname])),Yi(d)}function wS(a,{relative:i}={}){let r=g.useContext(Rv);ke(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:o}=kv("useViewTransitionState"),f=Fi(a,{relative:i});if(!r.isTransitioning)return!1;let d=Mn(r.currentLocation.pathname,o)||r.currentLocation.pathname,h=Mn(r.nextLocation.pathname,o)||r.nextLocation.pathname;return Tr(f.pathname,h)!=null||Tr(f.pathname,d)!=null}var Ki=Sv();const ES=xv(Ki),Yv=g.createContext(null);function $t(){const a=g.useContext(Yv);if(!a)throw new Error("useAuth must be used within AuthProvider");return a}function CS({children:a}){const i="/.account/",[r,o]=g.useState(null),[f,d]=g.useState(!0),[h,p]=g.useState(null),[v,y]=g.useState(!1),S=!!r?.account?.logout,b=f,C=async()=>{try{const w=await fetch("/.account/oidc/consent/",{headers:{Accept:"application/json"},credentials:"include"});return w.ok?!!(await w.json()).client:!1}catch{return!1}},j=async()=>{try{const w=await fetch(i,{headers:{Accept:"application/json"},credentials:"include"});if(w.ok){const A=await w.json();let z=!1;A.controls?.account?.logout&&(z=await C()),y(z),o(A.controls||{})}else p(`Failed to load configuration (Status: ${w.status})`)}catch{p("Network error: Could not connect to authentication server")}};g.useEffect(()=>{(async()=>(await j(),d(!1)))()},[i]);const D=async()=>{await j()};return u.jsx(Yv.Provider,{value:{controls:r,isInitializing:f,initError:h,idpIndex:i,isLoggedIn:S,authenticating:b,hasOidcPending:v,refetchControls:D},children:a})}const qv=(...a)=>a.filter((i,r,o)=>!!i&&i.trim()!==""&&o.indexOf(i)===r).join(" ").trim();const NS=a=>a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const jS=a=>a.replace(/^([A-Z])|[\s-_]+(\w)/g,(i,r,o)=>o?o.toUpperCase():r.toLowerCase());const Lp=a=>{const i=jS(a);return i.charAt(0).toUpperCase()+i.slice(1)};var AS={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 TS=a=>{for(const i in a)if(i.startsWith("aria-")||i==="role"||i==="title")return!0;return!1};const RS=g.forwardRef(({color:a="currentColor",size:i=24,strokeWidth:r=2,absoluteStrokeWidth:o,className:f="",children:d,iconNode:h,...p},v)=>g.createElement("svg",{ref:v,...AS,width:i,height:i,stroke:a,strokeWidth:o?Number(r)*24/Number(i):r,className:qv("lucide",f),...!d&&!TS(p)&&{"aria-hidden":"true"},...p},[...h.map(([y,S])=>g.createElement(y,S)),...Array.isArray(d)?d:[d]]));const Xe=(a,i)=>{const r=g.forwardRef(({className:o,...f},d)=>g.createElement(RS,{ref:d,iconNode:i,className:qv(`lucide-${NS(Lp(a))}`,`lucide-${a}`,o),...f}));return r.displayName=Lp(a),r};const zS=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Vv=Xe("arrow-left",zS);const OS=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Yr=Xe("arrow-right",OS);const _S=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],_n=Xe("check",_S);const DS=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Xv=Xe("chevron-down",DS);const MS=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],Gv=Xe("circle-alert",MS);const LS=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Fv=Xe("clock",LS);const US=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],mr=Xe("copy",US);const HS=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],BS=Xe("database",HS);const kS=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],Up=Xe("external-link",kS);const YS=[["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"}]],qS=Xe("globe",YS);const VS=[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]],XS=Xe("hard-drive",VS);const GS=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],FS=Xe("info",GS);const KS=[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]],Su=Xe("key",KS);const QS=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],Kv=Xe("layers",QS);const ZS=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Ra=Xe("loader-circle",ZS);const PS=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],ki=Xe("lock",PS);const JS=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],WS=Xe("log-out",JS);const IS=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],Hu=Xe("mail",IS);const $S=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],wu=Xe("plus",$S);const e1=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],qi=Xe("shield",e1);const t1=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],Hp=Xe("trash-2",t1);const n1=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],Qv=Xe("user",n1);function Zv(){return u.jsx("div",{className:"flex min-h-screen bg-zinc-50 text-zinc-900 items-center justify-center",children:u.jsx(Ra,{className:"w-6 h-6 animate-spin text-[#7C4DFF]"})})}function Qi({children:a,title:i,subtitle:r,icon:o,showBack:f,onBack:d}){return u.jsxs("div",{className:"min-h-screen bg-zinc-50 text-zinc-900 font-sans flex items-center justify-center p-4",children:[u.jsx("div",{className:"fixed inset-0 overflow-hidden pointer-events-none",children:u.jsx("div",{className:"absolute top-0 left-1/2 -translate-x-1/2 w-[1000px] h-[500px] bg-[#7C4DFF]/5 rounded-full blur-[120px]"})}),u.jsxs("div",{className:"w-full max-w-[360px] bg-white border border-zinc-200 rounded-3xl shadow-xl shadow-zinc-200/50 p-6 relative z-10",children:[u.jsxs("div",{className:"flex flex-col items-center mb-6",children:[u.jsxs("div",{className:"flex w-full items-center justify-between mb-4",children:[f?u.jsx("button",{onClick:d,className:"p-2 -ml-2 rounded-full hover:bg-zinc-100 text-zinc-400 hover:text-zinc-900 transition-colors",children:u.jsx(Vv,{className:"w-4 h-4"})}):u.jsx("div",{className:"w-8"}),u.jsx("div",{className:"w-10 h-10 bg-[#7C4DFF] rounded-xl shadow-lg shadow-[#7C4DFF]/20 flex items-center justify-center",children:o?u.jsx(o,{className:"w-5 h-5 text-white"}):u.jsx("div",{className:"w-5 h-5 border-2 border-white rounded opacity-80"})}),u.jsx("div",{className:"w-8"})]}),u.jsx("h2",{className:"text-xl font-bold tracking-tight text-center",children:i}),r&&u.jsx("p",{className:"mt-1 text-zinc-500 text-[11px] text-center leading-relaxed",children:r})]}),a]})]})}function l1({message:a}){return u.jsx(Qi,{title:"Error",subtitle:a,icon:Gv,children:u.jsx("button",{onClick:()=>window.location.reload(),className:"w-full py-2.5 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-xs font-medium transition-colors",children:"Retry"})})}const Bu="xpod:returnTo";function ja(a){try{a&&sessionStorage.setItem(Bu,a)}catch{}}function a1(){try{const a=sessionStorage.getItem(Bu);return a&&sessionStorage.removeItem(Bu),a}catch{return null}}function i1(){try{return new URLSearchParams(window.location.search).get("returnTo")||null}catch{return null}}function c1(a,i,r=!1){return a&&i&&!r}function Bp({children:a,allowOidcPending:i=!1}){const{isLoggedIn:r,hasOidcPending:o}=$t(),f=un();return c1(r,o,i)?u.jsx(Ln,{to:"/.account/oidc/consent/",replace:!0}):r?u.jsx(u.Fragment,{children:a}):(ja(f.pathname+f.search),u.jsx(Ln,{to:"/.account/login/password/",replace:!0}))}function Pv(a){var i,r,o="";if(typeof a=="string"||typeof a=="number")o+=a;else if(typeof a=="object")if(Array.isArray(a)){var f=a.length;for(i=0;i<f;i++)a[i]&&(r=Pv(a[i]))&&(o&&(o+=" "),o+=r)}else for(r in a)a[r]&&(o&&(o+=" "),o+=r);return o}function Ie(){for(var a,i,r=0,o="",f=arguments.length;r<f;r++)(a=arguments[r])&&(i=Pv(a))&&(o&&(o+=" "),o+=i);return o}const kp=3,zr=63,r1=/^[a-z0-9-]+$/;function Vi(a){return a.trim().toLowerCase()}function Or(a){const i=Vi(a);if(!i)return"Username is required";if(i.length<kp||i.length>zr)return`Username must be ${kp}-${zr} characters`;if(!r1.test(i))return"Username can only contain lowercase letters, numbers, and hyphens";if(i.startsWith("-")||i.endsWith("-"))return"Username cannot start or end with a hyphen"}function o1(a,i=5){const o=Vi(a).replace(/[^a-z0-9-]/g,"-").replace(/-+/g,"-").replace(/^-+|-+$/g,"").slice(0,zr-3)||"user",f=Array.from({length:Math.max(i,3)},(d,h)=>`${o}-${h+1}`);return Array.from(new Set(f.map(d=>d.slice(0,zr)).filter(d=>!Or(d)))).slice(0,i)}function s1(a){if(typeof window<"u")return"/api/v1/identity";try{const i=new URL(a);return i.hostname.startsWith("id.")?`${i.protocol}//api.${i.hostname.slice(3)}/api/v1/identity`:`${i.origin}/api/v1/identity`}catch{return"/api/v1/identity"}}async function Jv(a,i,r){const o=`${s1(i)}/${encodeURIComponent(a)}`;try{const f=await r(o,{headers:{Accept:"application/json"},credentials:"include"});if(f.status===404)return!1;if(f.ok||f.status===409)return!0}catch{}}async function u1(a,i,r,o=3){const f=o1(a,Math.max(o*2,5)),d=[];for(const h of f)if(await Jv(h,i,r)===!1&&d.push(h),d.length>=o)break;return d}async function Yp(a,i,r=fetch){const o=Vi(a),f=Or(o);if(f)return{available:!1,suggestions:[],error:f};const d=await Jv(o,i,r);return d===!1?{available:!0,suggestions:[]}:d===void 0?{available:!1,suggestions:[],error:"Unable to verify username availability right now. Please try again."}:{available:!1,suggestions:await u1(o,i,r)}}function f1(){try{const a=sessionStorage.getItem("provisionCode")?.trim();return a||void 0}catch{return}}function ku(){try{sessionStorage.removeItem("provisionCode")}catch{}}function Wv(a,i=f1()){const r={name:a.trim()};return i&&(r.settings={provisionCode:i}),r}class qr extends Error{code;constructor(i,r){super(i),this.name="RegistrationError",this.code=r}}async function rf(a){const i=await a.json().catch(()=>{});return i?.message||i?.error}function d1(a){return a?/There already is a resource at/i.test(a)||/Username already taken/i.test(a):!1}function h1(a){return a?/already is a login for this e-mail address/i.test(a)||/email(?: address)? is already/i.test(a)||/already registered/i.test(a):!1}function m1(a,i){try{return new URL(a,"http://xpod.local").pathname.split("/").filter(Boolean)[0]===i}catch{return!1}}async function p1(a,i,r,o){const f=await a(i,{headers:dl(o),credentials:"include"});if(!f.ok)return!1;const d=await f.json().catch(()=>({}));return Object.keys(d.pods??{}).some(h=>m1(h,r))}function dl(a){const i={Accept:"application/json"};return a&&(i.Authorization=`CSS-Account-Token ${a}`),i}async function v1(a){const i=a.fetchImpl??fetch;let r=await i(a.accountCreateUrl,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({})});if(!r.ok)throw new Error((await r.json().catch(()=>({}))).message||"Failed to create account");const o=await r.json().catch(()=>({})),f=typeof o.authorization=="string"?o.authorization:"";if(!f)throw new Error("Account token not returned");if(r=await i(a.idpIndex,{headers:dl(f),credentials:"include"}),!r.ok)throw new Error((await r.json().catch(()=>({}))).message||"Failed to load account controls");const d=await r.json().catch(()=>({})),h=d.controls?.password?.create,p=d.controls?.password?.login;if(!h)throw new Error("Password endpoint not found");if(!p)throw new Error("Login endpoint not found");if(r=await i(h,{method:"POST",headers:{...dl(f),"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({email:a.email,password:a.password})}),!r.ok){const v=await rf(r);throw h1(v)?new qr("This email is already registered. Sign in instead, or reset the password.","EMAIL_ALREADY_REGISTERED"):new Error(v||"Failed to set password")}return{accountToken:f,loginUrl:p}}async function g1(a){const r=await(a.fetchImpl??fetch)(a.loginUrl,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({email:a.email,password:a.password})});if(!r.ok){const d=await rf(r);throw a.duplicateEmailRecovery?new qr("This email is already registered, but the password did not match. Sign in or reset the password.","EMAIL_ALREADY_REGISTERED"):new Error(d||"Auto-login failed")}const o=await r.json().catch(()=>({})),f=typeof o.authorization=="string"?o.authorization:"";if(!f)throw new Error("Account token not returned after login");return{accountToken:f}}async function qp(a,i,r,o,f=15e3){const d=Date.now()+f;let h=r?.pod,p=r?.webId;for(;Date.now()<d;){try{if(!h&&!p){const v=await a(i,{headers:dl(o),credentials:"include"});if(v.ok){const y=await v.json().catch(()=>({}));h=y.controls?.account?.pod,p=y.controls?.account?.webId}}if(p){const v=await a(p,{headers:dl(o),credentials:"include"});if(v.ok){const y=await v.json().catch(()=>({}));if(Object.keys(y.webIdLinks??{}).length>0)return!0}}if(h){const v=await a(h,{headers:dl(o),credentials:"include"});if(v.ok){const y=await v.json().catch(()=>({}));if(Object.keys(y.pods??{}).length>0)return!0}}}catch{}await new Promise(v=>setTimeout(v,500))}return!1}async function Vp(a){const i=a.fetchImpl??fetch,{accountToken:r,idpIndex:o,username:f}=a;let d=await i(o,{headers:dl(r),credentials:"include"});const h=await d.json().catch(()=>({})),p=h.controls?.account?.pod;if(!p)throw new Error("Pod creation endpoint not found. The account API did not expose controls.account.pod.");if(await p1(i,p,f,r))return ku(),await qp(i,o,h.controls?.account,r),{createdPod:!0,redirectedToConsent:await Xp(i)};if(d=await i(p,{method:"POST",headers:{...dl(r),"Content-Type":"application/json"},credentials:"include",body:JSON.stringify(Wv(f))}),!d.ok){const v=await rf(d);throw d1(v)?new qr("Username is already taken. Your account was created; sign in and choose another Pod name.","USERNAME_ALREADY_TAKEN"):new Error(v||"Failed to create pod")}return await d.json().catch(()=>({})),ku(),await qp(i,o,h.controls?.account,r),{createdPod:!0,redirectedToConsent:await Xp(i)}}async function Xp(a){const i=await a("/.account/oidc/consent/",{headers:{Accept:"application/json"},credentials:"include"});return!!(i.ok&&(await i.json().catch(()=>({}))).client)}function Yu({initialIsRegister:a=!1}){const{controls:i,idpIndex:r,isLoggedIn:o,authenticating:f}=$t(),d=Bn(),[h,p]=g.useState(!1),[v,y]=g.useState(a),[S,b]=g.useState(""),[C,j]=g.useState(""),[D,w]=g.useState(""),[A,z]=g.useState(!1),[R,M]=g.useState(!1),[q,Q]=g.useState(null),[P,Y]=g.useState([]),[ne,le]=g.useState(null),[se,ue]=g.useState(""),[$,te]=g.useState(null),[ee,fe]=g.useState(null),_=C.length>0&&D.length>0&&C===D,L=Vi(S),V=v?Or(L):void 0;if(g.useEffect(()=>{const Z=i1();Z&&ja(Z)},[]),g.useEffect(()=>{if(!v){M(!1),Q(null),Y([]),le(null);return}if(!L){M(!1),Q(null),Y([]),le(null);return}if(V){M(!1),Q(!1),Y([]),le(V);return}let Z=!1;M(!0);const I=window.setTimeout(async()=>{const re=await Yp(L,r);Z||(M(!1),Q(re.available),Y(re.suggestions),le(re.error??null))},300);return()=>{Z=!0,window.clearTimeout(I)}},[r,v,L,V]),o)return u.jsx(Ln,{to:"/.account/account/",replace:!0});const ae=[{icon:Fv,title:"Your AI Secretary Never Stops",desc:"Runs 24/7, even when you are not talking to it"},{icon:Kv,title:"All Your Pieces, In One Place",desc:"Data, memory, and working context come back into one system"},{icon:qi,title:"One Secretary, Many Agents",desc:"One aligned layer can direct many agents while keeping privacy and control inside your boundary"}],pe=async Z=>{Z.preventDefault(),p(!0),te(null),fe(null);const I=new FormData(Z.currentTarget),re=I.get("email"),he=I.get("password");try{if(v){const J=I.get("confirmPassword"),ve=Vi(I.get("username")),W=Or(ve);if(he!==J){alert("Passwords do not match"),p(!1);return}if(W){alert(W),p(!1);return}const ie=await Yp(ve,r),ge=i?.password?.login||"/.account/login/password/",Ne=async(tt=!1)=>(await g1({duplicateEmailRecovery:tt,email:re,fetchImpl:fetch,loginUrl:ge,password:he})).accountToken;if(!ie.available){let tt;try{tt=await Ne()}catch{}if(tt){const kn=await Vp({accountToken:tt,idpIndex:r,username:ve});window.location.href=kn.redirectedToConsent?"/.account/oidc/consent/":"/.account/account/";return}Q(!1),Y(ie.suggestions),le(ie.error??"Username is already taken"),p(!1);return}if(ie.error){Q(!1),le(ie.error),p(!1);return}let Ye;const et=await Ne().catch(()=>{});if(et)Ye=et;else try{Ye=(await v1({accountCreateUrl:i?.account?.create||"/.account/account/",email:re,password:he,idpIndex:r})).accountToken}catch(tt){if(!(tt instanceof qr)||tt.code!=="EMAIL_ALREADY_REGISTERED")throw tt;Ye=await Ne(!0)}const dn=await Vp({accountToken:Ye,idpIndex:r,username:ve});window.location.href=dn.redirectedToConsent?"/.account/oidc/consent/":"/.account/account/"}else{const J=await fetch(i?.password?.login||"/.account/login/password/",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({email:re,password:he})}),ve=await J.json().catch(()=>({}));if(J.ok){const W=J.headers.get("Location");if(ve.location){window.location.href=ve.location;return}if(W){window.location.href=W;return}const ie=a1();if(ie){window.location.href=ie;return}try{if((await fetch("/.account/oidc/consent/",{headers:{Accept:"application/json"},credentials:"include"})).ok){window.location.href="/.account/oidc/consent/";return}}catch{}window.location.href="/.account/account/"}else fe(ve.message||"Login failed")}}catch(J){J?.name==="RegistrationError"&&J.code==="EMAIL_ALREADY_REGISTERED"?te(J.message):J?.name==="RegistrationError"&&J.code==="USERNAME_ALREADY_TAKEN"?(Q(!1),le(J.message)):fe(J.message||"Operation failed")}finally{p(!1)}},N=()=>{y(!v),b(""),j(""),w(""),M(!1),Q(null),Y([]),le(null),ue(""),te(null),fe(null)},G=async()=>{if(i?.oidc?.cancel){z(!0);try{const I=await(await fetch(i.oidc.cancel,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include"})).json();I.location&&(window.location.href=I.location)}catch{alert("Failed to cancel"),z(!1)}}};return u.jsxs("div",{className:"min-h-screen bg-zinc-50 text-zinc-900 font-sans flex items-center justify-center p-4 lg:p-8",children:[u.jsxs("div",{className:"fixed inset-0 overflow-hidden pointer-events-none",children:[u.jsx("div",{className:"absolute top-0 left-1/4 w-[800px] h-[600px] bg-[#7C4DFF]/5 rounded-full blur-[150px]"}),u.jsx("div",{className:"absolute bottom-0 right-1/4 w-[600px] h-[400px] bg-[#7C4DFF]/3 rounded-full blur-[100px]"})]}),u.jsxs("div",{className:"w-full max-w-6xl grid lg:grid-cols-2 gap-8 lg:gap-16 items-center relative z-10",children:[u.jsx("div",{className:"hidden lg:block px-8",children:u.jsxs("div",{className:"max-w-md ml-auto",children:[u.jsxs("div",{className:"flex items-center gap-3 mb-8",children:[u.jsx("div",{className:"w-12 h-12 bg-[#7C4DFF] rounded-xl shadow-lg shadow-[#7C4DFF]/20 flex items-center justify-center",children:u.jsx("div",{className:"w-6 h-6 border-2 border-white rounded opacity-90"})}),u.jsxs("div",{children:[u.jsx("div",{className:"text-2xl font-bold leading-tight",children:"Xpod"}),u.jsx("div",{className:"text-[10px] text-zinc-500 leading-tight",children:"Personal Messages Platform"})]})]}),u.jsxs("h1",{className:"text-2xl xl:text-3xl font-bold leading-tight mb-4",children:["Simplify Life with ",u.jsx("span",{className:"text-[#7C4DFF]",children:"Your AI Secretary"})]}),u.jsx("p",{className:"text-zinc-500 text-sm leading-relaxed mb-10",children:"An AI that never stops, knows your whole life, works for you—while guarding your privacy."}),u.jsx("div",{className:"space-y-4",children:u.jsx("div",{className:"space-y-3",children:ae.map(({icon:Z,title:I,desc:re})=>u.jsxs("div",{className:"flex gap-3",children:[u.jsx("div",{className:"w-8 h-8 bg-white border border-zinc-200 rounded-lg flex items-center justify-center shrink-0 shadow-sm",children:u.jsx(Z,{className:"w-4 h-4 text-[#7C4DFF]"})}),u.jsxs("div",{children:[u.jsx("h3",{className:"text-xs font-medium text-zinc-900",children:I}),u.jsx("p",{className:"text-[10px] text-zinc-500",children:re})]})]},I))})}),u.jsx("div",{className:"mt-12",children:u.jsxs("p",{className:"text-[10px] text-zinc-400",children:["Powered by ",u.jsx("a",{href:"https://solidproject.org",target:"_blank",rel:"noopener",className:"text-[#7C4DFF] hover:text-[#6B3FE8]",children:"Solid Protocol"})]})})]})}),u.jsx("div",{className:"w-full max-w-sm mx-auto lg:mx-0",children:u.jsxs("div",{className:"bg-white border border-zinc-200 rounded-3xl p-6 lg:p-8 shadow-xl shadow-zinc-200/50",children:[u.jsxs("div",{className:"lg:hidden flex items-center gap-3 mb-8",children:[u.jsx("div",{className:"w-10 h-10 bg-[#7C4DFF] rounded-xl flex items-center justify-center",children:u.jsx("div",{className:"w-5 h-5 border-2 border-white rounded opacity-90"})}),u.jsxs("div",{children:[u.jsx("div",{className:"text-xl font-bold leading-tight",children:"Xpod"}),u.jsx("div",{className:"text-[10px] text-zinc-500 leading-tight",children:"Personal Messages Platform"})]})]}),u.jsxs("div",{className:"mb-6",children:[u.jsx("h2",{className:"text-xl font-bold",children:v?"Create account":"Welcome back"}),u.jsx("p",{className:"text-zinc-500 text-xs mt-1",children:v?"Create your Xpod account to get started.":"Sign in to continue your identity workspace."})]}),u.jsxs("form",{className:"space-y-4",onSubmit:pe,children:[ee&&u.jsx("div",{className:"bg-red-50 border border-red-200 rounded-xl p-3 text-red-600 text-[11px]",children:ee}),u.jsxs("div",{className:"space-y-3",children:[v&&u.jsxs("div",{className:"relative",children:[u.jsx(Qv,{className:Ie("absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4",V&&S.length>0?"text-amber-500":"text-zinc-400")}),u.jsx("input",{name:"username",type:"text",required:!0,autoCapitalize:"none",autoCorrect:"off",spellCheck:!1,value:S,onChange:Z=>b(Z.target.value),className:Ie("block w-full pl-10 pr-4 py-2.5 bg-zinc-50 border rounded-xl text-sm placeholder:text-zinc-400 focus:outline-none transition-colors",V&&S.length>0||q===!1?"border-amber-300 focus:border-amber-500":q?"border-emerald-300 focus:border-emerald-500":"border-zinc-200 focus:border-[#7C4DFF]"),placeholder:"Username"})]}),u.jsxs("div",{className:"relative",children:[u.jsx(Hu,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-zinc-400"}),u.jsx("input",{name:"email",type:"email",required:!0,value:se,onChange:Z=>{ue(Z.target.value),$&&te(null)},className:Ie("block w-full pl-10 pr-4 py-2.5 bg-zinc-50 border rounded-xl text-sm placeholder:text-zinc-400 focus:outline-none transition-colors",$?"border-red-300 focus:border-red-500":"border-zinc-200 focus:border-[#7C4DFF]"),placeholder:"Email"})]}),$&&u.jsxs("p",{className:"text-[11px] leading-relaxed text-red-600",children:[$," ",u.jsx("button",{type:"button",onClick:()=>{y(!1),te(null),fe(null)},className:"font-medium text-[#7C4DFF] hover:text-[#6B3FE8]",children:"Sign in"})]}),u.jsxs("div",{className:"relative",children:[u.jsx(ki,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-zinc-400"}),u.jsx("input",{name:"password",type:"password",required:!0,value:C,onChange:Z=>j(Z.target.value),className:"block w-full pl-10 pr-4 py-2.5 bg-zinc-50 border border-zinc-200 rounded-xl text-sm placeholder:text-zinc-400 focus:border-[#7C4DFF] focus:outline-none transition-colors",placeholder:"Password"})]}),v&&u.jsxs("div",{className:"relative",children:[_?u.jsx(_n,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-emerald-500"}):u.jsx(ki,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-zinc-400"}),u.jsx("input",{name:"confirmPassword",type:"password",required:!0,value:D,onChange:Z=>w(Z.target.value),className:Ie("block w-full pl-10 pr-4 py-2.5 bg-zinc-50 border rounded-xl text-sm placeholder:text-zinc-400 focus:outline-none transition-colors",_?"border-emerald-300 focus:border-emerald-500":"border-zinc-200 focus:border-[#7C4DFF]"),placeholder:"Confirm password"})]})]}),v&&u.jsx("p",{className:Ie("text-[11px] leading-relaxed",V&&S.length>0||q===!1?"text-amber-600":q?"text-emerald-600":"text-zinc-500"),children:V&&S.length>0?V:R?"Checking username availability...":ne||(L&&q===!1?"Username is already taken.":L&&q?"Username is available.":"Username becomes your first Pod URL. Use 3-63 lowercase letters, numbers, or hyphens.")}),v&&P.length>0&&!V&&q===!1&&u.jsx("div",{className:"flex flex-wrap gap-2",children:P.map(Z=>u.jsx("button",{type:"button",onClick:()=>b(Z),className:"rounded-full border border-zinc-200 bg-white px-3 py-1 text-[11px] text-zinc-600 hover:border-[#7C4DFF] hover:text-[#7C4DFF]",children:Z},Z))}),!v&&u.jsx("div",{className:"flex justify-end",children:u.jsx("button",{type:"button",onClick:()=>d("/.account/login/password/forgot/"),className:"text-[11px] text-[#7C4DFF] hover:text-[#6B3FE8]",children:"Forgot password?"})}),u.jsx("button",{type:"submit",disabled:h||A||!!(v&&(V||R||q===!1)),className:"w-full py-3 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-sm font-medium flex items-center justify-center gap-2 disabled:opacity-50 transition-colors",children:h?u.jsx(Ra,{className:"w-4 h-4 animate-spin"}):u.jsxs(u.Fragment,{children:[v?"Sign up":"Sign in",u.jsx(Yr,{className:"h-4 w-4"})]})}),f&&!v&&u.jsx("button",{type:"button",onClick:G,disabled:A||h,className:"w-full py-3 border border-zinc-200 hover:bg-zinc-100 text-zinc-600 rounded-xl text-sm font-medium flex items-center justify-center gap-2 disabled:opacity-50 transition-colors",children:A?u.jsx(Ra,{className:"w-4 h-4 animate-spin"}):"Cancel"})]}),u.jsx("div",{className:"mt-6 pt-6 border-t border-zinc-100 text-center",children:u.jsxs("p",{className:"text-[11px] text-zinc-500",children:[v?"Already have an account? ":"Don't have an account? ",u.jsx("button",{onClick:N,className:"text-[#7C4DFF] font-medium hover:text-[#6B3FE8]",children:v?"Sign in":"Sign up"})]})})]})})]})]})}function y1(){const{isLoggedIn:a,hasOidcPending:i}=$t();return a&&i?u.jsx(Ln,{to:"/.account/oidc/consent/",replace:!0}):a?u.jsx(Ln,{to:"/.account/account/",replace:!0}):u.jsx(Yu,{})}function x1(){const a=Bn(),{isLoggedIn:i}=$t(),r=[{icon:Fv,title:"Your AI Secretary Never Stops",desc:"Runs 24/7, even when you're not talking to it"},{icon:Kv,title:"One Place for Your Whole Life",desc:"All your messages together in one place"},{icon:qi,title:"One Secretary, Many Agents",desc:"Full power, full privacy"}];return u.jsxs("div",{className:"min-h-screen bg-zinc-50 text-zinc-900 font-sans flex items-center justify-center p-4 lg:p-8",children:[u.jsxs("div",{className:"fixed inset-0 overflow-hidden pointer-events-none",children:[u.jsx("div",{className:"absolute top-0 left-1/4 w-[800px] h-[600px] bg-[#7C4DFF]/5 rounded-full blur-[150px]"}),u.jsx("div",{className:"absolute bottom-0 right-1/4 w-[600px] h-[400px] bg-[#7C4DFF]/3 rounded-full blur-[100px]"})]}),u.jsxs("div",{className:"w-full max-w-6xl grid lg:grid-cols-2 gap-8 lg:gap-16 items-center relative z-10",children:[u.jsx("div",{className:"hidden lg:block px-8",children:u.jsxs("div",{className:"max-w-md ml-auto",children:[u.jsxs("div",{className:"flex items-center gap-3 mb-8",children:[u.jsx("div",{className:"w-12 h-12 bg-[#7C4DFF] rounded-xl shadow-lg shadow-[#7C4DFF]/20 flex items-center justify-center",children:u.jsx("div",{className:"w-6 h-6 border-2 border-white rounded opacity-90"})}),u.jsxs("div",{children:[u.jsx("div",{className:"text-2xl font-bold leading-tight",children:"Xpod"}),u.jsx("div",{className:"text-[10px] text-zinc-500 leading-tight",children:"Personal Messages Platform"})]})]}),u.jsxs("h1",{className:"text-2xl xl:text-3xl font-bold leading-tight mb-4",children:["Simplify Life with ",u.jsx("span",{className:"text-[#7C4DFF]",children:"Your AI Secretary"})]}),u.jsx("p",{className:"text-zinc-500 text-sm leading-relaxed mb-10",children:"An AI that never stops, knows your whole life, works for you—while guarding your privacy."}),u.jsx("div",{className:"space-y-4",children:u.jsx("div",{className:"space-y-3",children:r.map(({icon:o,title:f,desc:d})=>u.jsxs("div",{className:"flex gap-3",children:[u.jsx("div",{className:"w-8 h-8 bg-white border border-zinc-200 rounded-lg flex items-center justify-center shrink-0 shadow-sm",children:u.jsx(o,{className:"w-4 h-4 text-[#7C4DFF]"})}),u.jsxs("div",{children:[u.jsx("h3",{className:"text-xs font-medium text-zinc-900",children:f}),u.jsx("p",{className:"text-[10px] text-zinc-500",children:d})]})]},f))})}),u.jsx("div",{className:"mt-12",children:u.jsxs("p",{className:"text-[10px] text-zinc-400",children:["Powered by ",u.jsx("a",{href:"https://solidproject.org",target:"_blank",rel:"noopener",className:"text-[#7C4DFF] hover:text-[#6B3FE8]",children:"Solid Protocol"})]})})]})}),u.jsx("div",{className:"w-full max-w-sm mx-auto lg:mx-0",children:u.jsxs("div",{className:"bg-white border border-zinc-200 rounded-3xl p-6 lg:p-8 shadow-xl shadow-zinc-200/50",children:[u.jsxs("div",{className:"lg:hidden flex items-center gap-3 mb-8",children:[u.jsx("div",{className:"w-10 h-10 bg-[#7C4DFF] rounded-xl flex items-center justify-center",children:u.jsx("div",{className:"w-5 h-5 border-2 border-white rounded opacity-90"})}),u.jsxs("div",{children:[u.jsx("div",{className:"text-xl font-bold leading-tight",children:"Xpod"}),u.jsx("div",{className:"text-[10px] text-zinc-500 leading-tight",children:"Personal Messages Platform"})]})]}),u.jsxs("div",{className:"lg:hidden mb-8",children:[u.jsxs("h1",{className:"text-xl font-bold leading-tight mb-3",children:["Simplify Life with ",u.jsx("span",{className:"text-[#7C4DFF]",children:"Your AI Secretary"})]}),u.jsx("p",{className:"text-zinc-500 text-xs leading-relaxed mb-6",children:"An AI that never stops, knows your whole life, works for you—while guarding your privacy."}),u.jsx("div",{className:"space-y-2",children:r.map(({icon:o,title:f,desc:d})=>u.jsxs("div",{className:"flex gap-2",children:[u.jsx(o,{className:"w-4 h-4 text-[#7C4DFF] shrink-0 mt-0.5"}),u.jsxs("div",{children:[u.jsx("span",{className:"text-xs font-medium text-zinc-900",children:f}),u.jsxs("span",{className:"text-xs text-zinc-500",children:[" - ",d]})]})]},f))})]}),u.jsxs("div",{className:"mb-6",children:[u.jsx("h2",{className:"text-xl font-bold",children:"About Xpod"}),u.jsx("p",{className:"text-zinc-500 text-xs mt-1",children:"Learn more about the platform and resources."})]}),u.jsxs("div",{className:"space-y-3 mb-6",children:[u.jsxs("a",{href:"https://solidproject.org",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-3 p-3 bg-zinc-50 border border-zinc-200 rounded-xl hover:border-[#7C4DFF]/50 transition-colors group",children:[u.jsx("div",{className:"w-8 h-8 bg-white border border-zinc-200 rounded-lg flex items-center justify-center",children:u.jsx(Up,{className:"w-4 h-4 text-zinc-400 group-hover:text-[#7C4DFF]"})}),u.jsxs("div",{children:[u.jsx("div",{className:"text-sm font-medium text-zinc-900",children:"Solid Project"}),u.jsx("div",{className:"text-xs text-zinc-500",children:"Learn about the protocol"})]})]}),u.jsxs("a",{href:"https://github.com",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-3 p-3 bg-zinc-50 border border-zinc-200 rounded-xl hover:border-[#7C4DFF]/50 transition-colors group",children:[u.jsx("div",{className:"w-8 h-8 bg-white border border-zinc-200 rounded-lg flex items-center justify-center",children:u.jsx(Up,{className:"w-4 h-4 text-zinc-400 group-hover:text-[#7C4DFF]"})}),u.jsxs("div",{children:[u.jsx("div",{className:"text-sm font-medium text-zinc-900",children:"GitHub"}),u.jsx("div",{className:"text-xs text-zinc-500",children:"View source code"})]})]})]}),u.jsxs("div",{className:"pt-4 border-t border-zinc-100",children:[u.jsx("p",{className:"text-[10px] text-zinc-400 mb-4",children:"Version 0.1.0 · Built with Solid Protocol"}),u.jsxs("button",{onClick:()=>a(i?"/.account/account/":"/.account/login/password/"),className:"w-full py-3 border border-zinc-200 hover:bg-zinc-50 text-zinc-700 rounded-xl text-sm font-medium flex items-center justify-center gap-2 transition-colors",children:[u.jsx(Vv,{className:"w-4 h-4"}),i?"Back to Dashboard":"Back to Login"]})]})]})})]})]})}function b1(a){try{const r=new URL(a).pathname.split("/").filter(Boolean);return r[r.length-1]}catch{return}}function S1(a){const i=a?.pods;return!i||typeof i!="object"?[]:Object.entries(i).map(([r,o])=>({id:r,resourceUrl:o,name:b1(r)}))}function Eu(a,i){return`sk-${btoa(`${a}:${i}`)}`}function w1(){if(typeof window>"u")return"https://api.undefineds.co/v1";const{protocol:a,hostname:i,origin:r}=window.location;return i.startsWith("id.")?`${a}//api.${i.slice(3)}/v1`:i.startsWith("api.")?`${r}/v1`:`${r.replace(/\/$/,"")}/v1`}function E1(){const{controls:a,refetchControls:i,hasOidcPending:r}=$t(),o=Bn(),[f,d]=g.useState(!1),[h,p]=g.useState([]),[v,y]=g.useState([]),[S,b]=g.useState(!1),[C,j]=g.useState(!1),[D,w]=g.useState(""),[A,z]=g.useState(!1),[R,M]=g.useState(""),[q,Q]=g.useState([]),[P,Y]=g.useState(null),[ne,le]=g.useState(!1),[se,ue]=g.useState(""),[$,te]=g.useState(""),[ee,fe]=g.useState(null),[_,L]=g.useState(!1),V=g.useRef(null),ae=w1();g.useEffect(()=>{const W=ie=>{V.current&&!V.current.contains(ie.target)&&L(!1)};return document.addEventListener("mousedown",W),()=>document.removeEventListener("mousedown",W)},[]);const pe=async(W,ie)=>{try{await navigator.clipboard.writeText(W),fe(ie),setTimeout(()=>fe(null),2e3)}catch{}},N=async()=>{try{let W=[];if(a?.account?.webId){const ie=await fetch(a.account.webId,{headers:{Accept:"application/json"},credentials:"include"});if(ie.ok){const Ne=(await ie.json()).webIdLinks||{};W=Object.keys(Ne),p(W)}else p([])}else p([]);if(a?.account?.pod){const ie=await fetch(a.account.pod,{headers:{Accept:"application/json"},credentials:"include"});if(ie.ok){const ge=await ie.json(),Ne=S1(ge);y(Ne),b(Ne.length===0&&W.length>0)}else y([]),b(W.length>0)}else y([]),b(!1);if(a?.account?.clientCredentials){const ie=await fetch(a.account.clientCredentials,{headers:{Accept:"application/json"},credentials:"include"});if(ie.ok){const Ne=(await ie.json()).clientCredentials||{};Q(Object.entries(Ne).map(([Ye])=>({id:Ye})))}else Q([])}}catch(W){console.error("Failed to fetch account data:",W)}};g.useEffect(()=>{N()},[a]);const G=async()=>{if(a?.account?.logout){d(!0);try{(await fetch(a.account.logout,{method:"POST",headers:{Accept:"application/json"},credentials:"include"})).ok&&(await i(),o("/.account/"))}catch{alert("Logout failed")}finally{d(!1)}}},Z=async W=>{if(W.preventDefault(),!(!a?.account?.pod||!D.trim())){d(!0);try{const ie=await fetch(a.account.pod,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify(Wv(D))});if(ie.ok)ku(),w(""),j(!1),await i(),await N(),r&&o("/.account/oidc/consent/");else{const ge=await ie.json().catch(()=>({}));alert(ge.message||"Failed to create pod")}}catch{alert("Network error")}finally{d(!1)}}},I=async W=>{if(W.preventDefault(),!(!a?.account?.webId||!R.trim())){d(!0);try{const ie=await fetch(a.account.webId,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({webId:R.trim()})});if(ie.ok)M(""),z(!1),await N();else{const ge=await ie.json().catch(()=>({}));alert(ge.message||"Failed to link WebID")}}catch{alert("Network error")}finally{d(!1)}}},re=async W=>{if(confirm(`Delete pod ${W}? This cannot be undone.`)){d(!0);try{(await fetch(W,{method:"DELETE",headers:{Accept:"application/json"},credentials:"include"})).ok?await N():alert("Failed to delete pod")}catch{alert("Network error")}finally{d(!1)}}},he=async W=>{if(W.preventDefault(),!(!a?.account?.clientCredentials||!se||!$.trim())){d(!0);try{const ie=await fetch(a.account.clientCredentials,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({name:$.trim(),webId:se})});if(ie.ok){const ge=await ie.json();Y({id:ge.id,secret:ge.secret}),le(!1),ue(""),te(""),await N()}else{const ge=await ie.json().catch(()=>({}));alert(ge.message||"Failed to create credential")}}catch{alert("Network error")}finally{d(!1)}}},J=()=>{if(h.length===0){alert("Please create a Pod first to get a WebID");return}ue(h[0]),te(""),le(!0)},ve=async W=>{if(confirm("Delete this credential? This cannot be undone.")){d(!0);try{(await fetch(W,{method:"DELETE",headers:{Accept:"application/json"},credentials:"include"})).ok?await N():alert("Failed to delete credential")}catch{alert("Network error")}finally{d(!1)}}};return u.jsxs("div",{className:"min-h-screen bg-zinc-50 text-zinc-900 font-sans",children:[u.jsx("div",{className:"fixed inset-0 overflow-hidden pointer-events-none",children:u.jsx("div",{className:"absolute top-0 left-1/2 -translate-x-1/2 w-[1000px] h-[500px] bg-[#7C4DFF]/5 rounded-full blur-[120px]"})}),u.jsx("header",{className:"relative z-10 border-b border-zinc-200 bg-white/80 backdrop-blur",children:u.jsxs("div",{className:"max-w-2xl mx-auto px-4 py-4 flex items-center justify-between",children:[u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx("div",{className:"w-8 h-8 bg-[#7C4DFF] rounded-lg flex items-center justify-center",children:u.jsx("div",{className:"w-4 h-4 border-2 border-white rounded opacity-80"})}),u.jsxs("div",{children:[u.jsx("div",{className:"font-semibold leading-tight",children:"Xpod"}),u.jsx("div",{className:"text-[10px] text-zinc-500 leading-tight",children:"Personal Messages Platform"})]})]}),u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsxs(Rr,{to:"/.account/about/",className:"flex items-center gap-1.5 px-3 py-1.5 text-xs text-zinc-500 hover:text-zinc-900 hover:bg-zinc-100 rounded-lg transition-colors",children:[u.jsx(FS,{className:"w-3.5 h-3.5"}),"About"]}),u.jsxs("button",{onClick:G,disabled:f,className:"flex items-center gap-2 px-3 py-1.5 text-xs text-zinc-500 hover:text-zinc-900 hover:bg-zinc-100 rounded-lg transition-colors",children:[u.jsx(WS,{className:"w-3.5 h-3.5"}),"Sign out"]})]})]})}),u.jsxs("main",{className:"relative z-10 max-w-2xl mx-auto px-4 py-8 space-y-8",children:[r&&u.jsx("div",{className:"p-4 bg-[#7C4DFF]/10 border border-[#7C4DFF]/30 rounded-xl",children:u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx("div",{className:"p-2 bg-[#7C4DFF]/20 rounded-lg",children:u.jsx(qi,{className:"w-5 h-5 text-[#7C4DFF]"})}),u.jsxs("div",{children:[u.jsx("p",{className:"text-sm font-medium text-zinc-900",children:"Authorization Pending"}),u.jsx("p",{className:"text-xs text-zinc-500",children:"An application is waiting for your authorization"})]})]}),u.jsxs(Rr,{to:"/.account/oidc/consent/",className:"flex items-center gap-2 px-4 py-2 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-sm font-medium rounded-lg transition-colors",children:["Continue",u.jsx(Yr,{className:"w-4 h-4"})]})]})}),u.jsx("h1",{className:"text-2xl font-bold",children:"Account Dashboard"}),u.jsxs("section",{children:[u.jsxs("div",{className:"flex justify-between items-center mb-1",children:[u.jsxs("h2",{className:"text-sm font-semibold text-zinc-700 flex items-center gap-2",children:[u.jsx(XS,{className:"w-4 h-4 text-[#7C4DFF]"}),"Storage"]}),a?.account?.pod&&u.jsxs("button",{onClick:()=>j(!0),className:"flex items-center gap-1.5 px-3 py-1.5 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-xs rounded-lg transition-colors",children:[u.jsx(wu,{className:"w-3.5 h-3.5"}),"Add Pod"]})]}),u.jsx("p",{className:"text-[11px] text-zinc-500 mb-3",children:"Your personal data stores (Pods). You own and control all data stored here."}),C&&u.jsxs("form",{onSubmit:Z,className:"mb-4 p-4 bg-white border border-zinc-200 rounded-xl shadow-sm",children:[u.jsx("label",{className:"block text-xs text-zinc-500 mb-2",children:"Pod Name"}),u.jsxs("div",{className:"flex gap-2",children:[u.jsx("input",{type:"text",value:D,onChange:W=>w(W.target.value),placeholder:"my-pod",className:"flex-1 px-3 py-2 bg-zinc-50 border border-zinc-200 rounded-lg text-sm focus:border-[#7C4DFF] focus:outline-none",required:!0}),u.jsx("button",{type:"submit",disabled:f,className:"px-4 py-2 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-xs rounded-lg disabled:opacity-50",children:f?"Creating...":"Create"}),u.jsx("button",{type:"button",onClick:()=>j(!1),className:"px-3 py-2 text-zinc-500 hover:text-zinc-900 text-xs",children:"Cancel"})]})]}),u.jsx("div",{className:"bg-white border border-zinc-200 rounded-xl shadow-sm",children:v.length===0?u.jsx("div",{className:"p-4",children:u.jsx("p",{className:"text-xs text-zinc-500 mb-3",children:S?"WebID 已存在,Pod 信息正在同步。请稍等后刷新页面。":"No Pods found. Create one to get started."})}):u.jsx("ul",{className:"divide-y divide-zinc-100",children:v.map(W=>u.jsxs("li",{className:"p-3 flex items-center justify-between",children:[u.jsxs("div",{className:"flex items-center gap-3 overflow-hidden",children:[u.jsx(BS,{className:"w-4 h-4 text-zinc-400 shrink-0"}),u.jsxs("div",{className:"min-w-0",children:[u.jsx("a",{href:W.id,target:"_blank",rel:"noopener",className:"text-xs font-mono text-[#7C4DFF] hover:text-[#6B3FE8] truncate block",children:W.id}),W.name&&u.jsxs("p",{className:"text-[11px] text-zinc-500 truncate",children:["Pod: ",W.name]})]})]}),u.jsx("button",{onClick:()=>re(W.resourceUrl),className:"p-2 text-zinc-400 hover:text-red-500 hover:bg-red-50 rounded-lg transition-colors",title:"Delete Pod",children:u.jsx(Hp,{className:"w-4 h-4"})})]},W.id))})})]}),u.jsxs("section",{children:[u.jsxs("div",{className:"flex justify-between items-center mb-1",children:[u.jsxs("h2",{className:"text-sm font-semibold text-zinc-700 flex items-center gap-2",children:[u.jsx(Qv,{className:"w-4 h-4 text-[#7C4DFF]"}),"Identity"]}),a?.account?.webId&&u.jsxs("button",{onClick:()=>z(!0),className:"flex items-center gap-1.5 px-3 py-1.5 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-xs rounded-lg transition-colors",children:[u.jsx(wu,{className:"w-3.5 h-3.5"}),"Link WebID"]})]}),u.jsx("p",{className:"text-[11px] text-zinc-500 mb-3",children:"Your unique decentralized identifiers (WebIDs). This is your identity on the Solid network."}),A&&u.jsxs("form",{onSubmit:I,className:"mb-4 p-4 bg-white border border-zinc-200 rounded-xl shadow-sm",children:[u.jsx("label",{className:"block text-xs text-zinc-500 mb-2",children:"WebID URL"}),u.jsxs("div",{className:"flex gap-2",children:[u.jsx("input",{type:"url",value:R,onChange:W=>M(W.target.value),placeholder:"https://example.com/profile/card#me",className:"flex-1 px-3 py-2 bg-zinc-50 border border-zinc-200 rounded-lg text-sm focus:border-[#7C4DFF] focus:outline-none",required:!0}),u.jsx("button",{type:"submit",disabled:f,className:"px-4 py-2 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-xs rounded-lg disabled:opacity-50",children:f?"Linking...":"Link"}),u.jsx("button",{type:"button",onClick:()=>z(!1),className:"px-3 py-2 text-zinc-500 hover:text-zinc-900 text-xs",children:"Cancel"})]})]}),u.jsx("div",{className:"bg-white border border-zinc-200 rounded-xl shadow-sm",children:h.length===0?u.jsx("p",{className:"p-4 text-xs text-zinc-500",children:"No WebIDs found. Create a Pod first to get a WebID."}):u.jsx("ul",{className:"divide-y divide-zinc-100",children:h.map(W=>u.jsxs("li",{className:"p-3 flex items-center gap-3",children:[u.jsx(qS,{className:"w-4 h-4 text-zinc-400 shrink-0"}),u.jsx("a",{href:W,target:"_blank",rel:"noopener",className:"text-xs font-mono text-[#7C4DFF] hover:text-[#6B3FE8] truncate",children:W})]},W))})})]}),u.jsxs("section",{children:[u.jsxs("div",{className:"flex justify-between items-center mb-1",children:[u.jsxs("h2",{className:"text-sm font-semibold text-zinc-700 flex items-center gap-2",children:[u.jsx(Su,{className:"w-4 h-4 text-[#7C4DFF]"}),"Developer Access"]}),a?.account?.clientCredentials&&u.jsxs("button",{onClick:J,disabled:f,className:"flex items-center gap-1.5 px-3 py-1.5 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-xs rounded-lg transition-colors",children:[u.jsx(wu,{className:"w-3.5 h-3.5"}),"New Key"]})]}),u.jsxs("p",{className:"text-[11px] text-zinc-500 mb-3",children:["AI API keys for model endpoints such as ",u.jsx("code",{className:"bg-zinc-100 px-1 py-0.5 rounded",children:"/v1/chat/completions"})," and ",u.jsx("code",{className:"bg-zinc-100 px-1 py-0.5 rounded",children:"/v1/responses"}),". Send as ",u.jsx("code",{className:"bg-zinc-100 px-1 py-0.5 rounded",children:"Authorization: Bearer sk-xxx"}),"."]}),a?.account?.clientCredentials?u.jsxs(u.Fragment,{children:[ne&&u.jsxs("form",{onSubmit:he,className:"mb-4 p-4 bg-white border border-zinc-200 rounded-xl shadow-sm space-y-3",children:[u.jsxs("div",{children:[u.jsx("label",{className:"block text-xs text-zinc-500 mb-1",children:"Key Name"}),u.jsx("input",{type:"text",value:$,onChange:W=>te(W.target.value),placeholder:"my-app-key",className:"w-full px-3 py-2 bg-zinc-50 border border-zinc-200 rounded-lg text-sm focus:border-[#7C4DFF] focus:outline-none",required:!0})]}),u.jsxs("div",{children:[u.jsx("label",{className:"block text-xs text-zinc-500 mb-1",children:"WebID"}),u.jsxs("div",{className:"relative",ref:V,children:[u.jsxs("button",{type:"button",onClick:()=>L(!_),className:"w-full px-3 py-2 bg-zinc-50 border border-zinc-200 rounded-lg text-sm focus:border-[#7C4DFF] focus:outline-none text-left flex items-center justify-between",children:[u.jsx("span",{className:"truncate text-zinc-700",children:se||"Select WebID"}),u.jsx(Xv,{className:`w-4 h-4 text-zinc-400 transition-transform ${_?"rotate-180":""}`})]}),_&&u.jsx("div",{className:"absolute z-10 mt-1 w-full bg-white border border-zinc-200 rounded-lg shadow-lg max-h-48 overflow-auto",children:h.map(W=>u.jsx("button",{type:"button",onClick:()=>{ue(W),L(!1)},className:`w-full px-3 py-2 text-left text-sm hover:bg-zinc-50 truncate ${se===W?"bg-[#7C4DFF]/10 text-[#7C4DFF]":"text-zinc-700"}`,children:W},W))}),u.jsx("input",{type:"hidden",name:"webId",value:se,required:!0})]})]}),u.jsxs("div",{className:"flex gap-2 justify-end",children:[u.jsx("button",{type:"button",onClick:()=>le(!1),className:"px-3 py-2 text-zinc-500 hover:text-zinc-900 text-xs",children:"Cancel"}),u.jsx("button",{type:"submit",disabled:f,className:"px-4 py-2 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-xs rounded-lg disabled:opacity-50",children:f?"Creating...":"Create"})]})]}),P&&u.jsx("div",{className:"mb-4 p-4 bg-emerald-50 border border-emerald-200 rounded-xl",children:u.jsxs("div",{className:"flex items-start gap-3",children:[u.jsx("div",{className:"p-2 bg-emerald-100 rounded-lg",children:u.jsx(Su,{className:"w-4 h-4 text-emerald-600"})}),u.jsxs("div",{className:"flex-1",children:[u.jsx("p",{className:"text-sm font-medium text-emerald-700 mb-1",children:"New API Key Created"}),u.jsx("p",{className:"text-xs text-zinc-500 mb-3",children:"Copy your API Key now. It will not be shown again."}),u.jsxs("div",{className:"space-y-3 text-xs font-mono bg-white p-3 rounded-lg border border-zinc-200",children:[u.jsxs("div",{className:"flex items-center justify-between gap-2",children:[u.jsxs("div",{className:"min-w-0",children:[u.jsx("span",{className:"text-zinc-400 select-none",children:"Client ID"}),u.jsx("p",{className:"text-zinc-600 truncate",children:P.id})]}),u.jsx("button",{onClick:()=>pe(P.id,"id"),className:"p-1.5 text-zinc-400 hover:text-zinc-900 hover:bg-zinc-100 rounded transition-colors shrink-0",title:"Copy Client ID",children:ee==="id"?u.jsx(_n,{className:"w-3.5 h-3.5 text-emerald-500"}):u.jsx(mr,{className:"w-3.5 h-3.5"})})]}),u.jsxs("div",{className:"flex items-center justify-between gap-2",children:[u.jsxs("div",{className:"min-w-0",children:[u.jsx("span",{className:"text-zinc-400 select-none",children:"Client Secret"}),u.jsx("p",{className:"text-zinc-600 break-all",children:P.secret})]}),u.jsx("button",{onClick:()=>pe(P.secret,"secret"),className:"p-1.5 text-zinc-400 hover:text-zinc-900 hover:bg-zinc-100 rounded transition-colors shrink-0",title:"Copy Client Secret",children:ee==="secret"?u.jsx(_n,{className:"w-3.5 h-3.5 text-emerald-500"}):u.jsx(mr,{className:"w-3.5 h-3.5"})})]}),u.jsxs("div",{className:"flex items-center justify-between gap-2 pt-3 border-t border-zinc-100",children:[u.jsxs("div",{className:"min-w-0",children:[u.jsx("span",{className:"text-zinc-400 select-none",children:"API Key"}),u.jsx("p",{className:"text-emerald-600 break-all font-medium",children:Eu(P.id,P.secret)})]}),u.jsx("button",{onClick:()=>pe(Eu(P.id,P.secret),"apikey"),className:"p-1.5 text-zinc-400 hover:text-zinc-900 hover:bg-zinc-100 rounded transition-colors shrink-0",title:"Copy API Key",children:ee==="apikey"?u.jsx(_n,{className:"w-3.5 h-3.5 text-emerald-500"}):u.jsx(mr,{className:"w-3.5 h-3.5"})})]})]}),u.jsxs("div",{className:"mt-3 rounded-lg border border-zinc-200 bg-white p-3 text-xs",children:[u.jsx("p",{className:"mb-2 font-medium text-zinc-700",children:"Usage"}),u.jsxs("div",{className:"space-y-2 font-mono text-[11px]",children:[u.jsxs("div",{className:"flex items-start justify-between gap-2",children:[u.jsxs("div",{className:"min-w-0",children:[u.jsx("span",{className:"text-zinc-400 select-none",children:"Base URL"}),u.jsx("p",{className:"break-all text-zinc-600",children:ae})]}),u.jsx("button",{onClick:()=>pe(ae,"baseurl"),className:"p-1.5 text-zinc-400 hover:text-zinc-900 hover:bg-zinc-100 rounded transition-colors shrink-0",title:"Copy Base URL",children:ee==="baseurl"?u.jsx(_n,{className:"w-3.5 h-3.5 text-emerald-500"}):u.jsx(mr,{className:"w-3.5 h-3.5"})})]}),u.jsxs("div",{children:[u.jsx("span",{className:"text-zinc-400 select-none",children:"Authorization"}),u.jsxs("p",{className:"break-all text-zinc-600",children:["Bearer ",Eu(P.id,P.secret)]})]}),u.jsxs("div",{children:[u.jsx("span",{className:"text-zinc-400 select-none",children:"Endpoints"}),u.jsx("p",{className:"break-all text-zinc-600",children:"/chat/completions · /responses · /models"})]})]})]}),u.jsx("button",{onClick:()=>Y(null),className:"mt-2 text-xs text-zinc-500 hover:text-zinc-900 font-medium",children:"Done"})]})]})}),u.jsx("div",{className:"bg-white border border-zinc-200 rounded-xl shadow-sm",children:q.length===0?u.jsx("p",{className:"p-4 text-xs text-zinc-500",children:"No API keys found."}):u.jsx("ul",{className:"divide-y divide-zinc-100",children:q.map(W=>u.jsxs("li",{className:"p-3 flex items-center justify-between",children:[u.jsxs("div",{className:"flex items-center gap-3 overflow-hidden",children:[u.jsx(Su,{className:"w-4 h-4 text-zinc-400 shrink-0"}),u.jsx("span",{className:"text-xs font-mono text-zinc-600 truncate",children:W.id})]}),u.jsx("button",{onClick:()=>ve(W.id),className:"p-2 text-zinc-400 hover:text-red-500 hover:bg-red-50 rounded-lg transition-colors",title:"Revoke Key",children:u.jsx(Hp,{className:"w-4 h-4"})})]},W.id))})})]}):u.jsx("div",{className:"bg-white border border-zinc-200 rounded-xl shadow-sm p-4",children:u.jsx("p",{className:"text-xs text-zinc-500",children:"Client credential endpoint not configured."})})]}),u.jsxs("section",{children:[u.jsxs("h2",{className:"text-sm font-semibold text-zinc-700 flex items-center gap-2 mb-3",children:[u.jsx(qi,{className:"w-4 h-4 text-[#7C4DFF]"}),"Security"]}),u.jsxs("div",{className:"bg-white border border-zinc-200 rounded-xl shadow-sm p-4 flex items-center justify-between",children:[u.jsxs("div",{children:[u.jsx("h3",{className:"text-xs font-medium mb-1",children:"Password"}),u.jsx("p",{className:"text-[10px] text-zinc-500",children:"Update your account password"})]}),u.jsx("a",{href:a?.password?.forgot||"/.account/login/password/forgot/",className:"px-3 py-1.5 bg-zinc-100 hover:bg-zinc-200 text-zinc-700 text-xs rounded-lg transition-colors",children:"Change Password"})]})]})]})]})}function C1(){const{idpIndex:a,isLoggedIn:i,controls:r}=$t(),o=Bn(),[f,d]=g.useState(!0),[h,p]=g.useState(null),[v,y]=g.useState(null),[S,b]=g.useState([]),[C,j]=g.useState(""),[D,w]=g.useState(null),[A,z]=g.useState(null),[R,M]=g.useState(!0),q=`${a}oidc/consent/`,Q=`${a}oidc/pick-webid/`,P=`${a}oidc/cancel`;g.useEffect(()=>{console.log("[Consent] Page loaded, fetching consent info..."),ja(window.location.href),(async()=>{try{const $=await fetch(q,{headers:{Accept:"application/json"},credentials:"include"});if(console.log("[Consent] GET consent response status:",$.status),$.status===401||$.status===403){w("Please sign in to continue authorization."),d(!1);return}if(!$.ok){const fe=await $.json().catch(()=>({}));throw new Error(fe.message||"Failed to load consent info")}const te=await $.json();p(te.client||{}),y(te.webId||null);const ee=await fetch(Q,{headers:{Accept:"application/json"},credentials:"include"});if(ee.ok){const _=(await ee.json()).webIds||[];b(_),te.webId&&_.includes(te.webId)?j(te.webId):_.length>0&&j(_[0])}}catch($){w($.message||"Failed to load consent info")}finally{d(!1)}})()},[q,Q]);const Y=$=>{try{const te=new URL($),ee=te.pathname.split("/").filter(Boolean);return{provider:te.host,podId:ee[0]??"-",full:$}}catch{return{provider:"-",podId:"-",full:$}}},ne=async $=>{try{await navigator.clipboard.writeText($),z($),setTimeout(()=>z(null),1200)}catch{z(null)}},le=async()=>{try{r?.account?.logout&&await fetch(r.account.logout,{method:"POST",credentials:"include"}),window.location.href="/.account/login/password/"}catch{window.location.href="/.account/login/password/"}},se=async $=>{console.log("[Consent] handleConsent called, allow:",$);try{if(d(!0),w(null),!$){console.log("[Consent] Cancelling...");const V=await(await fetch(P,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({})})).json();console.log("[Consent] Cancel response:",V),V.location&&(window.location.href=V.location);return}if(C&&C!==v){console.log("[Consent] Picking WebID:",C);const L=await fetch(Q,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({webId:C,remember:!1})}),V=await L.json();if(!L.ok)throw new Error(V.message||"Failed to select WebID");V.location&&await fetch(V.location,{credentials:"include"})}const te=await fetch(q,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({remember:R})}),ee=await te.json();if(console.log("[Consent] Response:",te.status,ee),console.log("[Consent] Location header:",te.headers.get("Location")),!te.ok)throw new Error(ee.message||"Consent failed");const fe=te.headers.get("Location"),_=ee.location||fe;console.log("[Consent] Redirect URL:",_),_?window.location.href=_:(w("Authorization completed but no redirect URL received. The application may need to restart the login flow."),d(!1))}catch(te){w(te.message||"Consent failed"),d(!1)}},ue=S.length>0?S:v?[v]:[];return u.jsxs(Qi,{title:"Authorize",subtitle:`${h?.client_name||"Application"} requests access`,icon:qi,children:[!i&&u.jsxs("div",{className:"mb-4 bg-amber-50 border border-amber-200 rounded-xl p-3 text-zinc-600 text-[11px] space-y-3",children:[u.jsx("p",{children:"Sign in to approve this request and choose which WebID to share."}),u.jsx("button",{onClick:()=>{ja(window.location.href),o("/.account/login/password/")},className:"w-full py-2.5 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-xs font-medium",children:"Go to Sign in"})]}),D&&u.jsxs("div",{className:"mb-4 bg-red-50 border border-red-200 rounded-xl p-3 text-red-600 text-[11px]",children:[u.jsx(Gv,{className:"w-4 h-4 inline mr-2"}),D]}),f?u.jsx("div",{className:"flex justify-center py-6",children:u.jsx(Ra,{className:"w-6 h-6 animate-spin text-[#7C4DFF]"})}):u.jsxs("div",{className:"space-y-4",children:[(h?.client_uri||h?.client_id)&&u.jsxs("div",{className:"text-center text-[11px] text-zinc-500 space-y-1",children:[h?.client_uri&&u.jsx("div",{children:u.jsx("a",{href:h.client_uri,target:"_blank",rel:"noopener",className:"text-[#7C4DFF] hover:text-[#6B3FE8]",children:h.client_uri})}),h?.client_id&&u.jsxs("div",{className:"text-[10px] text-zinc-400 truncate",title:h.client_id,children:["ID: ",h.client_id]})]}),u.jsxs("div",{className:"space-y-2",children:[u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx("label",{className:"block text-[11px] font-medium text-zinc-500 uppercase tracking-wider",children:"Sign in as"}),ue.length>0&&u.jsxs("div",{className:"text-[10px] text-zinc-500",children:["Provider: ",u.jsx("span",{className:"text-zinc-600",children:Y(ue[0]).provider})]})]}),ue.length===0?u.jsxs("div",{className:"text-center py-4",children:[u.jsx("p",{className:"text-zinc-500 text-xs mb-3",children:"You need to create a Pod first to get a WebID."}),u.jsx("button",{onClick:()=>{ja(window.location.href),o("/.account/account/")},className:"px-4 py-2 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-xs rounded-lg",children:"Create Pod"})]}):u.jsx("div",{className:"space-y-1",children:ue.map($=>{const te=Y($);return u.jsxs("label",{className:Ie("flex items-center gap-3 p-3 rounded-xl border cursor-pointer transition-colors",C===$?"border-[#7C4DFF]/50 bg-[#7C4DFF]/10":"border-zinc-200 bg-zinc-50 hover:border-zinc-300"),children:[u.jsx("input",{type:"radio",name:"webId",value:$,checked:C===$,onChange:ee=>j(ee.target.value),className:"text-[#7C4DFF]"}),u.jsx("div",{className:"min-w-0 flex-1",children:u.jsx("div",{className:"text-sm font-medium text-zinc-700 truncate",title:te.full,children:te.podId})}),u.jsx("button",{type:"button",onClick:ee=>{ee.preventDefault(),ne($)},className:"px-2 py-1 text-[10px] rounded-lg border border-zinc-300 text-zinc-600 hover:text-zinc-900 hover:border-[#7C4DFF]/50 shrink-0",children:A===$?"Copied":"Copy"})]},$)})})]}),u.jsxs("label",{className:"flex items-center gap-2 text-xs text-zinc-600 cursor-pointer",children:[u.jsx("input",{type:"checkbox",checked:R,onChange:$=>M($.target.checked),className:"rounded border-zinc-300 text-[#7C4DFF] focus:ring-[#7C4DFF]"}),"Remember this client"]}),u.jsxs("div",{className:"grid grid-cols-2 gap-3 pt-2",children:[u.jsx("button",{onClick:()=>se(!1),disabled:f,className:"py-2.5 border border-zinc-200 rounded-xl text-xs text-zinc-500 hover:bg-zinc-100 disabled:opacity-50 transition-colors",children:"Deny"}),u.jsx("button",{onClick:()=>se(!0),disabled:f||ue.length===0,className:"py-2.5 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-xs disabled:opacity-50 transition-colors",children:f?"Authorizing...":"Authorize"})]}),u.jsxs("div",{className:"flex justify-center gap-4 pt-2 border-t border-zinc-100",children:[u.jsx("button",{type:"button",onClick:()=>{ja(window.location.href),o("/.account/account/")},className:"text-[11px] text-[#7C4DFF] hover:text-[#6B3FE8]",children:"Edit account"}),u.jsx("button",{type:"button",onClick:le,className:"text-[11px] text-zinc-500 hover:text-zinc-700",children:"Use a different account"})]})]})]})}function N1(){const{controls:a,isLoggedIn:i}=$t(),r=Bn(),[o,f]=g.useState(!1),[d,h]=g.useState(!1);if(i)return u.jsx(Ln,{to:"/.account/account/",replace:!0});const p=async v=>{v.preventDefault(),f(!0);const y=new FormData(v.currentTarget).get("email");try{await fetch(a?.password?.forgot||"/.account/login/password/forgot/",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({email:y})}),h(!0)}catch{alert("Failed to send reset email")}finally{f(!1)}};return u.jsx(Qi,{title:"Reset Password",subtitle:"We will send a reset link to your email.",icon:Hu,showBack:!0,onBack:()=>r("/.account/login/password/"),children:d?u.jsxs("div",{className:"space-y-4",children:[u.jsxs("div",{className:"bg-emerald-50 border border-emerald-200 rounded-xl p-4 text-center",children:[u.jsx("div",{className:"w-10 h-10 bg-emerald-100 rounded-full flex items-center justify-center mx-auto mb-3",children:u.jsx(_n,{className:"w-5 h-5 text-emerald-600"})}),u.jsx("p",{className:"text-xs text-zinc-600",children:"If that email exists, we've sent a reset link."}),u.jsx("p",{className:"text-[10px] text-zinc-500 mt-2",children:"Check your spam folder if you don't see it."})]}),u.jsxs("div",{className:"flex gap-2",children:[u.jsx("button",{onClick:()=>r("/.account/login/password/"),className:"flex-1 py-3 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-sm font-medium",children:"Sign in"}),u.jsx("button",{onClick:()=>h(!1),className:"flex-1 py-3 bg-zinc-100 hover:bg-zinc-200 text-zinc-700 rounded-xl text-sm font-medium",children:"Resend"})]})]}):u.jsxs("form",{className:"space-y-4",onSubmit:p,children:[u.jsxs("div",{className:"relative",children:[u.jsx(Hu,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-zinc-400"}),u.jsx("input",{name:"email",type:"email",required:!0,className:"block w-full pl-10 pr-4 py-2.5 bg-zinc-50 border border-zinc-200 rounded-xl text-sm placeholder:text-zinc-400 focus:border-[#7C4DFF] focus:outline-none",placeholder:"Email address"})]}),u.jsx("button",{type:"submit",disabled:o,className:"w-full py-3 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-sm font-medium flex items-center justify-center gap-2 disabled:opacity-50",children:o?u.jsx(Ra,{className:"w-4 h-4 animate-spin"}):u.jsxs(u.Fragment,{children:["Send Reset Link ",u.jsx(Yr,{className:"h-4 w-4"})]})})]})})}function j1(){const{controls:a,isLoggedIn:i}=$t(),r=Bn(),[o]=gS(),[f,d]=g.useState(!1),[h,p]=g.useState(!1),[v,y]=g.useState(null),[S,b]=g.useState(""),[C,j]=g.useState(""),D=o.get("rid"),w=S.length>0&&C.length>0&&S===C;if(i)return u.jsx(Ln,{to:"/.account/account/",replace:!0});if(!D)return u.jsx(Ln,{to:"/.account/login/password/forgot/",replace:!0});const A=async z=>{if(z.preventDefault(),!w){y("Passwords do not match");return}d(!0),y(null);try{const R=a?.password?.reset||"/.account/login/password/reset/",M=await fetch(R,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({recordId:D,password:S})});if(M.ok)p(!0);else{const q=await M.json().catch(()=>({}));y(q.message||"Failed to reset password")}}catch{y("Network error")}finally{d(!1)}};return u.jsx(Qi,{title:"Reset Password",subtitle:"Enter your new password.",icon:ki,children:h?u.jsxs("div",{className:"space-y-4",children:[u.jsxs("div",{className:"bg-emerald-50 border border-emerald-200 rounded-xl p-4 text-center",children:[u.jsx("div",{className:"w-10 h-10 bg-emerald-100 rounded-full flex items-center justify-center mx-auto mb-3",children:u.jsx(_n,{className:"w-5 h-5 text-emerald-600"})}),u.jsx("p",{className:"text-xs text-zinc-600",children:"Your password has been reset successfully."})]}),u.jsx("button",{onClick:()=>r("/.account/login/password/"),className:"w-full py-3 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-sm font-medium",children:"Go to Sign in"})]}):u.jsxs("form",{className:"space-y-4",onSubmit:A,children:[v&&u.jsx("div",{className:"bg-red-50 border border-red-200 rounded-xl p-3 text-red-600 text-[11px]",children:v}),u.jsxs("div",{className:"space-y-3",children:[u.jsxs("div",{className:"relative",children:[u.jsx(ki,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-zinc-400"}),u.jsx("input",{name:"password",type:"password",required:!0,value:S,onChange:z=>b(z.target.value),className:"block w-full pl-10 pr-4 py-2.5 bg-zinc-50 border border-zinc-200 rounded-xl text-sm placeholder:text-zinc-400 focus:border-[#7C4DFF] focus:outline-none",placeholder:"New password"})]}),u.jsxs("div",{className:"relative",children:[w?u.jsx(_n,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-emerald-500"}):u.jsx(ki,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-zinc-400"}),u.jsx("input",{name:"confirmPassword",type:"password",required:!0,value:C,onChange:z=>j(z.target.value),className:`block w-full pl-10 pr-4 py-2.5 bg-zinc-50 border rounded-xl text-sm placeholder:text-zinc-400 focus:outline-none transition-colors ${w?"border-emerald-300 focus:border-emerald-500":"border-zinc-200 focus:border-[#7C4DFF]"}`,placeholder:"Confirm new password"})]})]}),u.jsx("button",{type:"submit",disabled:f||!w,className:"w-full py-3 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-sm font-medium flex items-center justify-center gap-2 disabled:opacity-50",children:f?u.jsx(Ra,{className:"w-4 h-4 animate-spin"}):u.jsxs(u.Fragment,{children:["Reset Password ",u.jsx(Yr,{className:"h-4 w-4"})]})}),u.jsx("div",{className:"text-center",children:u.jsx("button",{type:"button",onClick:()=>r("/.account/login/password/"),className:"text-[11px] text-[#7C4DFF] hover:text-[#6B3FE8]",children:"Back to Sign in"})})]})})}function A1(){const{controls:a,isLoggedIn:i}=$t(),[r,o]=g.useState([]),[f,d]=g.useState(!0);return g.useEffect(()=>{if(i){window.location.href="/.account/account/";return}(async()=>{try{if(a?.main?.logins){const p=await(await fetch(a.main.logins,{headers:{Accept:"application/json"},credentials:"include"})).json(),v=Object.entries(p.logins||{});if(v.length===1){window.location.href=v[0][1];return}if(v.length===0){window.location.href="/.account/login/password/";return}o(v)}else{window.location.href="/.account/login/password/";return}}catch{window.location.href=a?.html?.password?.login||"/.account/login/password/"}finally{d(!1)}})()},[a,i]),f?u.jsx(Zv,{}):u.jsx(Qi,{title:"Select Login Method",children:u.jsx("div",{className:"space-y-2",children:r.map(([h,p])=>u.jsx("a",{href:p,className:"block w-full py-3 px-4 bg-zinc-100 hover:bg-zinc-200 border border-zinc-200 rounded-xl text-center text-zinc-700 text-sm font-medium",children:h},h))})})}var Iv={"chatkit.error":"onError","chatkit.response.end":"onResponseEnd","chatkit.response.start":"onResponseStart","chatkit.log":"onLog","chatkit.thread.change":"onThreadChange","chatkit.thread.load.start":"onThreadLoadStart","chatkit.thread.load.end":"onThreadLoadEnd","chatkit.tool.change":"onToolChange","chatkit.ready":"onReady","chatkit.effect":"onEffect"},T1=Object.keys(Iv),R1=g.forwardRef(function({control:i,...r},o){const f=g.useRef(null);return g.useLayoutEffect(()=>{const d=f.current;if(!d)return;if(customElements.get("openai-chatkit")){d.setOptions(i.options);return}let h=!0;return customElements.whenDefined("openai-chatkit").then(()=>{h&&d.setOptions(i.options)}),()=>{h=!1}},[i.options]),g.useEffect(()=>{const d=f.current;if(!d)return;const h=new AbortController;for(const p of T1)d.addEventListener(p,v=>{const y=Iv[p],S=i.handlers[y];typeof S=="function"&&S(v.detail)},{signal:h.signal});return()=>{h.abort()}},[i.handlers]),u.jsx("openai-chatkit",{ref:d=>{f.current=d,i.setInstance(d),typeof o=="function"?o(d):o&&(o.current=d),f.current},...r})});function Gp(a){return a!==null&&typeof a=="object"&&[null,Object.prototype].includes(Object.getPrototypeOf(a))||Array.isArray(a)}function qu(a,i,r=new WeakMap){if(Object.is(a,i))return!0;if(typeof a=="function"&&typeof i=="function")return typeof a==typeof i;if(!Gp(a)||!Gp(i))return!1;const o=r.get(a);if(o&&o===i)return!0;if(r.set(a,i),Array.isArray(a)||Array.isArray(i)){if(!Array.isArray(a)||!Array.isArray(i)||a.length!==i.length)return!1;for(let h=0;h<a.length;h++)if(!qu(a[h],i[h],r))return!1;return!0}const f=Object.keys(a),d=Object.keys(i);if(f.length!==d.length)return!1;for(let h=0;h<f.length;h++){const p=f[h];if(!Object.prototype.hasOwnProperty.call(i,p))return!1;const v=a[p],y=i[p];if(!qu(v,y,r))return!1}return!0}function z1(a){const i=[],r=(d,h)=>h.reduce((p,v)=>p==null?p:p[v],d),o=(d,h)=>(...p)=>{const v=r(a.current,d),y=v?.[h];if(typeof y=="function")return y.apply(v,p)},f=d=>{if(typeof d=="function"){const h=i[i.length-1],p=i.slice(0,-1);return o(p,h)}if(Array.isArray(d)){const h=i.length,p=new Array(d.length);for(let v=0;v<d.length;v++)i[h]=v,p[v]=f(d[v]);return i.length=h,p}if(d&&typeof d=="object"){const h=i.length,p={};for(const v of Object.keys(d))i[h]=v,p[v]=f(d[v]);return i.length=h,p}return d};return f(a.current)}function O1(a){const i=Jt.useRef(a);i.current=a;const r=Jt.useRef(null);return(!r.current||!qu(r.current.snapshot,a))&&(r.current={snapshot:a,shaped:z1(i)}),r.current.shaped}var _1=Object.freeze(["focusComposer","setThreadId","sendUserMessage","setComposerValue","fetchUpdates","sendCustomAction","showHistory","hideHistory"]);function D1(a){const i=g.useRef(null),r=O1(a),o=g.useMemo(()=>_1.reduce((h,p)=>(h[p]=(...v)=>{if(!i.current){console.warn("ChatKit element is not mounted");return}return i.current[p](...v)},h),{}),[]),f=g.useCallback(h=>{i.current=h},[]),d=g.useMemo(()=>{const h={},p={};for(const[v,y]of Object.entries(r))/^on[A-Z]/.test(v)&&v!=="onClientTool"?p[v]=y:h[v]=y;return{setInstance:f,options:h,handlers:p}},[r,f]);return g.useMemo(()=>({...o,control:d,ref:i}),[o,d])}const Fp="http://localhost:3000/chatkit",Kp="domain_pk_localhost_dev";function M1(){const{isLoggedIn:a}=$t(),[i,r]=g.useState(""),[o,f]=g.useState(!1),d=g.useCallback(async(p,v={})=>{const y={...v.headers||{}};return i&&(y.Authorization=`Bearer ${i}`),fetch(p,{...v,headers:y,credentials:"include"})},[i]),h=D1({api:{url:Fp,domainKey:Kp,fetch:d},theme:"light",header:{enabled:!0,title:{enabled:!0,text:"Xpod Chat"}},history:{enabled:!0}});return u.jsxs("div",{className:"min-h-screen bg-gray-50",children:[u.jsxs("header",{className:"bg-white shadow-sm border-b",children:[u.jsxs("div",{className:"max-w-7xl mx-auto px-4 py-4 flex items-center justify-between",children:[u.jsxs("div",{className:"flex items-center space-x-4",children:[u.jsx("a",{href:"/.account/",className:"text-gray-500 hover:text-gray-700",children:u.jsx("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:u.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10 19l-7-7m0 0l7-7m-7 7h18"})})}),u.jsx("h1",{className:"text-xl font-semibold text-gray-900",children:"Chat"})]}),u.jsxs("div",{className:"flex items-center space-x-4",children:[u.jsx("button",{onClick:()=>f(!o),className:"text-sm text-gray-500 hover:text-gray-700",children:i?"🔑 API Key Set":"Set API Key"}),u.jsx("div",{className:"text-sm text-gray-500",children:a?u.jsx("span",{className:"text-green-600",children:"● Logged in"}):u.jsx("a",{href:"/.account/login/",className:"text-blue-600 hover:text-blue-800",children:"Login"})})]})]}),o&&u.jsxs("div",{className:"max-w-7xl mx-auto px-4 py-2 border-t bg-gray-50",children:[u.jsxs("div",{className:"flex items-center space-x-2",children:[u.jsx("input",{type:"password",placeholder:"Enter API Key (sk-xxx)",value:i,onChange:p=>r(p.target.value),className:"flex-1 px-3 py-2 border rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-blue-500"}),u.jsx("button",{onClick:()=>f(!1),className:"px-4 py-2 bg-blue-600 text-white text-sm rounded-lg hover:bg-blue-700",children:"Save"})]}),u.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"Get your API Key from the Account page after logging in."})]})]}),u.jsxs("main",{className:"max-w-4xl mx-auto p-4",children:[u.jsx("div",{className:"bg-white rounded-lg shadow-lg overflow-hidden",style:{height:"calc(100vh - 180px)"},children:u.jsx(R1,{control:h.control,style:{width:"100%",height:"100%"}})}),u.jsxs("div",{className:"mt-4 p-4 bg-gray-100 rounded-lg text-xs text-gray-600",children:[u.jsxs("p",{children:[u.jsx("strong",{children:"API URL:"})," ",Fp]}),u.jsxs("p",{children:[u.jsx("strong",{children:"Domain Key:"})," ",Kp]}),u.jsxs("p",{children:[u.jsx("strong",{children:"Auth:"})," ",i?"API Key":a?"Session":"None"]})]})]})]})}function _i(a){const{className:i,variant:r,children:o}=a;return u.jsx("div",{className:Ie("rounded-xl bg-background",r==="bordered"&&"border border-border",i),children:o})}function Di(a){const{className:i,children:r}=a;return u.jsx("div",{className:Ie("px-5 pt-5",i),children:r})}function Mi(a){const{className:i,children:r}=a;return u.jsx("div",{className:Ie("text-base font-semibold",i),children:r})}function Li(a){const{className:i,children:r}=a;return u.jsx("div",{className:Ie("px-5 pb-5 pt-4",i),children:r})}function Cu(a){const{className:i,variant:r="default",size:o="default",children:f,...d}=a,h="inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-primary disabled:opacity-50 disabled:pointer-events-none",p={default:"bg-primary text-primary-foreground hover:bg-primary/90",secondary:"bg-muted text-foreground hover:bg-muted/80",ghost:"bg-transparent hover:bg-muted text-foreground"},v={default:"h-10 px-4 py-2",sm:"h-8 px-3"};return u.jsx("button",{className:Ie(h,p[r],v[o],i),...d,children:f})}function On(a){const{className:i,...r}=a;return u.jsx("input",{className:Ie("w-full h-10 rounded-md border border-input bg-background px-3 py-2 text-sm","placeholder:text-muted-foreground","focus:outline-none focus-visible:ring-2 focus-visible:ring-primary",i),...r})}function pr(a){const{className:i,...r}=a;return u.jsx("label",{className:Ie("text-sm font-medium text-foreground",i),...r})}function Qp(a,[i,r]){return Math.min(r,Math.max(i,a))}function We(a,i,{checkForDefaultPrevented:r=!0}={}){return function(f){if(a?.(f),r===!1||!f.defaultPrevented)return i?.(f)}}function of(a,i=[]){let r=[];function o(d,h){const p=g.createContext(h),v=r.length;r=[...r,h];const y=b=>{const{scope:C,children:j,...D}=b,w=C?.[a]?.[v]||p,A=g.useMemo(()=>D,Object.values(D));return u.jsx(w.Provider,{value:A,children:j})};y.displayName=d+"Provider";function S(b,C){const j=C?.[a]?.[v]||p,D=g.useContext(j);if(D)return D;if(h!==void 0)return h;throw new Error(`\`${b}\` must be used within \`${d}\``)}return[y,S]}const f=()=>{const d=r.map(h=>g.createContext(h));return function(p){const v=p?.[a]||d;return g.useMemo(()=>({[`__scope${a}`]:{...p,[a]:v}}),[p,v])}};return f.scopeName=a,[o,L1(f,...i)]}function L1(...a){const i=a[0];if(a.length===1)return i;const r=()=>{const o=a.map(f=>({useScope:f(),scopeName:f.scopeName}));return function(d){const h=o.reduce((p,{useScope:v,scopeName:y})=>{const b=v(d)[`__scope${y}`];return{...p,...b}},{});return g.useMemo(()=>({[`__scope${i.scopeName}`]:h}),[h])}};return r.scopeName=i.scopeName,r}function Zp(a,i){if(typeof a=="function")return a(i);a!=null&&(a.current=i)}function $v(...a){return i=>{let r=!1;const o=a.map(f=>{const d=Zp(f,i);return!r&&typeof d=="function"&&(r=!0),d});if(r)return()=>{for(let f=0;f<o.length;f++){const d=o[f];typeof d=="function"?d():Zp(a[f],null)}}}}function st(...a){return g.useCallback($v(...a),a)}function _r(a){const i=U1(a),r=g.forwardRef((o,f)=>{const{children:d,...h}=o,p=g.Children.toArray(d),v=p.find(B1);if(v){const y=v.props.children,S=p.map(b=>b===v?g.Children.count(y)>1?g.Children.only(null):g.isValidElement(y)?y.props.children:null:b);return u.jsx(i,{...h,ref:f,children:g.isValidElement(y)?g.cloneElement(y,void 0,S):null})}return u.jsx(i,{...h,ref:f,children:d})});return r.displayName=`${a}.Slot`,r}function U1(a){const i=g.forwardRef((r,o)=>{const{children:f,...d}=r;if(g.isValidElement(f)){const h=Y1(f),p=k1(d,f.props);return f.type!==g.Fragment&&(p.ref=o?$v(o,h):h),g.cloneElement(f,p)}return g.Children.count(f)>1?g.Children.only(null):null});return i.displayName=`${a}.SlotClone`,i}var H1=Symbol("radix.slottable");function B1(a){return g.isValidElement(a)&&typeof a.type=="function"&&"__radixId"in a.type&&a.type.__radixId===H1}function k1(a,i){const r={...i};for(const o in i){const f=a[o],d=i[o];/^on[A-Z]/.test(o)?f&&d?r[o]=(...p)=>{const v=d(...p);return f(...p),v}:f&&(r[o]=f):o==="style"?r[o]={...f,...d}:o==="className"&&(r[o]=[f,d].filter(Boolean).join(" "))}return{...a,...r}}function Y1(a){let i=Object.getOwnPropertyDescriptor(a.props,"ref")?.get,r=i&&"isReactWarning"in i&&i.isReactWarning;return r?a.ref:(i=Object.getOwnPropertyDescriptor(a,"ref")?.get,r=i&&"isReactWarning"in i&&i.isReactWarning,r?a.props.ref:a.props.ref||a.ref)}function q1(a){const i=a+"CollectionProvider",[r,o]=of(i),[f,d]=r(i,{collectionRef:{current:null},itemMap:new Map}),h=w=>{const{scope:A,children:z}=w,R=Jt.useRef(null),M=Jt.useRef(new Map).current;return u.jsx(f,{scope:A,itemMap:M,collectionRef:R,children:z})};h.displayName=i;const p=a+"CollectionSlot",v=_r(p),y=Jt.forwardRef((w,A)=>{const{scope:z,children:R}=w,M=d(p,z),q=st(A,M.collectionRef);return u.jsx(v,{ref:q,children:R})});y.displayName=p;const S=a+"CollectionItemSlot",b="data-radix-collection-item",C=_r(S),j=Jt.forwardRef((w,A)=>{const{scope:z,children:R,...M}=w,q=Jt.useRef(null),Q=st(A,q),P=d(S,z);return Jt.useEffect(()=>(P.itemMap.set(q,{ref:q,...M}),()=>{P.itemMap.delete(q)})),u.jsx(C,{[b]:"",ref:Q,children:R})});j.displayName=S;function D(w){const A=d(a+"CollectionConsumer",w);return Jt.useCallback(()=>{const R=A.collectionRef.current;if(!R)return[];const M=Array.from(R.querySelectorAll(`[${b}]`));return Array.from(A.itemMap.values()).sort((P,Y)=>M.indexOf(P.ref.current)-M.indexOf(Y.ref.current))},[A.collectionRef,A.itemMap])}return[{Provider:h,Slot:y,ItemSlot:j},D,o]}var V1=g.createContext(void 0);function X1(a){const i=g.useContext(V1);return a||i||"ltr"}var G1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ke=G1.reduce((a,i)=>{const r=_r(`Primitive.${i}`),o=g.forwardRef((f,d)=>{const{asChild:h,...p}=f,v=h?r:i;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(v,{...p,ref:d})});return o.displayName=`Primitive.${i}`,{...a,[i]:o}},{});function F1(a,i){a&&Ki.flushSync(()=>a.dispatchEvent(i))}function Ll(a){const i=g.useRef(a);return g.useEffect(()=>{i.current=a}),g.useMemo(()=>(...r)=>i.current?.(...r),[])}function K1(a,i=globalThis?.document){const r=Ll(a);g.useEffect(()=>{const o=f=>{f.key==="Escape"&&r(f)};return i.addEventListener("keydown",o,{capture:!0}),()=>i.removeEventListener("keydown",o,{capture:!0})},[r,i])}var Q1="DismissableLayer",Vu="dismissableLayer.update",Z1="dismissableLayer.pointerDownOutside",P1="dismissableLayer.focusOutside",Pp,eg=g.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),tg=g.forwardRef((a,i)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:f,onFocusOutside:d,onInteractOutside:h,onDismiss:p,...v}=a,y=g.useContext(eg),[S,b]=g.useState(null),C=S?.ownerDocument??globalThis?.document,[,j]=g.useState({}),D=st(i,Y=>b(Y)),w=Array.from(y.layers),[A]=[...y.layersWithOutsidePointerEventsDisabled].slice(-1),z=w.indexOf(A),R=S?w.indexOf(S):-1,M=y.layersWithOutsidePointerEventsDisabled.size>0,q=R>=z,Q=I1(Y=>{const ne=Y.target,le=[...y.branches].some(se=>se.contains(ne));!q||le||(f?.(Y),h?.(Y),Y.defaultPrevented||p?.())},C),P=$1(Y=>{const ne=Y.target;[...y.branches].some(se=>se.contains(ne))||(d?.(Y),h?.(Y),Y.defaultPrevented||p?.())},C);return K1(Y=>{R===y.layers.size-1&&(o?.(Y),!Y.defaultPrevented&&p&&(Y.preventDefault(),p()))},C),g.useEffect(()=>{if(S)return r&&(y.layersWithOutsidePointerEventsDisabled.size===0&&(Pp=C.body.style.pointerEvents,C.body.style.pointerEvents="none"),y.layersWithOutsidePointerEventsDisabled.add(S)),y.layers.add(S),Jp(),()=>{r&&y.layersWithOutsidePointerEventsDisabled.size===1&&(C.body.style.pointerEvents=Pp)}},[S,C,r,y]),g.useEffect(()=>()=>{S&&(y.layers.delete(S),y.layersWithOutsidePointerEventsDisabled.delete(S),Jp())},[S,y]),g.useEffect(()=>{const Y=()=>j({});return document.addEventListener(Vu,Y),()=>document.removeEventListener(Vu,Y)},[]),u.jsx(Ke.div,{...v,ref:D,style:{pointerEvents:M?q?"auto":"none":void 0,...a.style},onFocusCapture:We(a.onFocusCapture,P.onFocusCapture),onBlurCapture:We(a.onBlurCapture,P.onBlurCapture),onPointerDownCapture:We(a.onPointerDownCapture,Q.onPointerDownCapture)})});tg.displayName=Q1;var J1="DismissableLayerBranch",W1=g.forwardRef((a,i)=>{const r=g.useContext(eg),o=g.useRef(null),f=st(i,o);return g.useEffect(()=>{const d=o.current;if(d)return r.branches.add(d),()=>{r.branches.delete(d)}},[r.branches]),u.jsx(Ke.div,{...a,ref:f})});W1.displayName=J1;function I1(a,i=globalThis?.document){const r=Ll(a),o=g.useRef(!1),f=g.useRef(()=>{});return g.useEffect(()=>{const d=p=>{if(p.target&&!o.current){let v=function(){ng(Z1,r,y,{discrete:!0})};const y={originalEvent:p};p.pointerType==="touch"?(i.removeEventListener("click",f.current),f.current=v,i.addEventListener("click",f.current,{once:!0})):v()}else i.removeEventListener("click",f.current);o.current=!1},h=window.setTimeout(()=>{i.addEventListener("pointerdown",d)},0);return()=>{window.clearTimeout(h),i.removeEventListener("pointerdown",d),i.removeEventListener("click",f.current)}},[i,r]),{onPointerDownCapture:()=>o.current=!0}}function $1(a,i=globalThis?.document){const r=Ll(a),o=g.useRef(!1);return g.useEffect(()=>{const f=d=>{d.target&&!o.current&&ng(P1,r,{originalEvent:d},{discrete:!1})};return i.addEventListener("focusin",f),()=>i.removeEventListener("focusin",f)},[i,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function Jp(){const a=new CustomEvent(Vu);document.dispatchEvent(a)}function ng(a,i,r,{discrete:o}){const f=r.originalEvent.target,d=new CustomEvent(a,{bubbles:!1,cancelable:!0,detail:r});i&&f.addEventListener(a,i,{once:!0}),o?F1(f,d):f.dispatchEvent(d)}var Nu=0;function ew(){g.useEffect(()=>{const a=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",a[0]??Wp()),document.body.insertAdjacentElement("beforeend",a[1]??Wp()),Nu++,()=>{Nu===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(i=>i.remove()),Nu--}},[])}function Wp(){const a=document.createElement("span");return a.setAttribute("data-radix-focus-guard",""),a.tabIndex=0,a.style.outline="none",a.style.opacity="0",a.style.position="fixed",a.style.pointerEvents="none",a}var ju="focusScope.autoFocusOnMount",Au="focusScope.autoFocusOnUnmount",Ip={bubbles:!1,cancelable:!0},tw="FocusScope",lg=g.forwardRef((a,i)=>{const{loop:r=!1,trapped:o=!1,onMountAutoFocus:f,onUnmountAutoFocus:d,...h}=a,[p,v]=g.useState(null),y=Ll(f),S=Ll(d),b=g.useRef(null),C=st(i,w=>v(w)),j=g.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;g.useEffect(()=>{if(o){let w=function(M){if(j.paused||!p)return;const q=M.target;p.contains(q)?b.current=q:fl(b.current,{select:!0})},A=function(M){if(j.paused||!p)return;const q=M.relatedTarget;q!==null&&(p.contains(q)||fl(b.current,{select:!0}))},z=function(M){if(document.activeElement===document.body)for(const Q of M)Q.removedNodes.length>0&&fl(p)};document.addEventListener("focusin",w),document.addEventListener("focusout",A);const R=new MutationObserver(z);return p&&R.observe(p,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",w),document.removeEventListener("focusout",A),R.disconnect()}}},[o,p,j.paused]),g.useEffect(()=>{if(p){ev.add(j);const w=document.activeElement;if(!p.contains(w)){const z=new CustomEvent(ju,Ip);p.addEventListener(ju,y),p.dispatchEvent(z),z.defaultPrevented||(nw(rw(ag(p)),{select:!0}),document.activeElement===w&&fl(p))}return()=>{p.removeEventListener(ju,y),setTimeout(()=>{const z=new CustomEvent(Au,Ip);p.addEventListener(Au,S),p.dispatchEvent(z),z.defaultPrevented||fl(w??document.body,{select:!0}),p.removeEventListener(Au,S),ev.remove(j)},0)}}},[p,y,S,j]);const D=g.useCallback(w=>{if(!r&&!o||j.paused)return;const A=w.key==="Tab"&&!w.altKey&&!w.ctrlKey&&!w.metaKey,z=document.activeElement;if(A&&z){const R=w.currentTarget,[M,q]=lw(R);M&&q?!w.shiftKey&&z===q?(w.preventDefault(),r&&fl(M,{select:!0})):w.shiftKey&&z===M&&(w.preventDefault(),r&&fl(q,{select:!0})):z===R&&w.preventDefault()}},[r,o,j.paused]);return u.jsx(Ke.div,{tabIndex:-1,...h,ref:C,onKeyDown:D})});lg.displayName=tw;function nw(a,{select:i=!1}={}){const r=document.activeElement;for(const o of a)if(fl(o,{select:i}),document.activeElement!==r)return}function lw(a){const i=ag(a),r=$p(i,a),o=$p(i.reverse(),a);return[r,o]}function ag(a){const i=[],r=document.createTreeWalker(a,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const f=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||f?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)i.push(r.currentNode);return i}function $p(a,i){for(const r of a)if(!aw(r,{upTo:i}))return r}function aw(a,{upTo:i}){if(getComputedStyle(a).visibility==="hidden")return!0;for(;a;){if(i!==void 0&&a===i)return!1;if(getComputedStyle(a).display==="none")return!0;a=a.parentElement}return!1}function iw(a){return a instanceof HTMLInputElement&&"select"in a}function fl(a,{select:i=!1}={}){if(a&&a.focus){const r=document.activeElement;a.focus({preventScroll:!0}),a!==r&&iw(a)&&i&&a.select()}}var ev=cw();function cw(){let a=[];return{add(i){const r=a[0];i!==r&&r?.pause(),a=tv(a,i),a.unshift(i)},remove(i){a=tv(a,i),a[0]?.resume()}}}function tv(a,i){const r=[...a],o=r.indexOf(i);return o!==-1&&r.splice(o,1),r}function rw(a){return a.filter(i=>i.tagName!=="A")}var xt=globalThis?.document?g.useLayoutEffect:()=>{},ow=bv[" useId ".trim().toString()]||(()=>{}),sw=0;function sf(a){const[i,r]=g.useState(ow());return xt(()=>{r(o=>o??String(sw++))},[a]),i?`radix-${i}`:""}const uw=["top","right","bottom","left"],hl=Math.min,_t=Math.max,Dr=Math.round,vr=Math.floor,rn=a=>({x:a,y:a}),fw={left:"right",right:"left",bottom:"top",top:"bottom"},dw={start:"end",end:"start"};function Xu(a,i,r){return _t(a,hl(i,r))}function Un(a,i){return typeof a=="function"?a(i):a}function Hn(a){return a.split("-")[0]}function Ma(a){return a.split("-")[1]}function uf(a){return a==="x"?"y":"x"}function ff(a){return a==="y"?"height":"width"}const hw=new Set(["top","bottom"]);function cn(a){return hw.has(Hn(a))?"y":"x"}function df(a){return uf(cn(a))}function mw(a,i,r){r===void 0&&(r=!1);const o=Ma(a),f=df(a),d=ff(f);let h=f==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return i.reference[d]>i.floating[d]&&(h=Mr(h)),[h,Mr(h)]}function pw(a){const i=Mr(a);return[Gu(a),i,Gu(i)]}function Gu(a){return a.replace(/start|end/g,i=>dw[i])}const nv=["left","right"],lv=["right","left"],vw=["top","bottom"],gw=["bottom","top"];function yw(a,i,r){switch(a){case"top":case"bottom":return r?i?lv:nv:i?nv:lv;case"left":case"right":return i?vw:gw;default:return[]}}function xw(a,i,r,o){const f=Ma(a);let d=yw(Hn(a),r==="start",o);return f&&(d=d.map(h=>h+"-"+f),i&&(d=d.concat(d.map(Gu)))),d}function Mr(a){return a.replace(/left|right|bottom|top/g,i=>fw[i])}function bw(a){return{top:0,right:0,bottom:0,left:0,...a}}function ig(a){return typeof a!="number"?bw(a):{top:a,right:a,bottom:a,left:a}}function Lr(a){const{x:i,y:r,width:o,height:f}=a;return{width:o,height:f,top:r,left:i,right:i+o,bottom:r+f,x:i,y:r}}function av(a,i,r){let{reference:o,floating:f}=a;const d=cn(i),h=df(i),p=ff(h),v=Hn(i),y=d==="y",S=o.x+o.width/2-f.width/2,b=o.y+o.height/2-f.height/2,C=o[p]/2-f[p]/2;let j;switch(v){case"top":j={x:S,y:o.y-f.height};break;case"bottom":j={x:S,y:o.y+o.height};break;case"right":j={x:o.x+o.width,y:b};break;case"left":j={x:o.x-f.width,y:b};break;default:j={x:o.x,y:o.y}}switch(Ma(i)){case"start":j[h]-=C*(r&&y?-1:1);break;case"end":j[h]+=C*(r&&y?-1:1);break}return j}async function Sw(a,i){var r;i===void 0&&(i={});const{x:o,y:f,platform:d,rects:h,elements:p,strategy:v}=a,{boundary:y="clippingAncestors",rootBoundary:S="viewport",elementContext:b="floating",altBoundary:C=!1,padding:j=0}=Un(i,a),D=ig(j),A=p[C?b==="floating"?"reference":"floating":b],z=Lr(await d.getClippingRect({element:(r=await(d.isElement==null?void 0:d.isElement(A)))==null||r?A:A.contextElement||await(d.getDocumentElement==null?void 0:d.getDocumentElement(p.floating)),boundary:y,rootBoundary:S,strategy:v})),R=b==="floating"?{x:o,y:f,width:h.floating.width,height:h.floating.height}:h.reference,M=await(d.getOffsetParent==null?void 0:d.getOffsetParent(p.floating)),q=await(d.isElement==null?void 0:d.isElement(M))?await(d.getScale==null?void 0:d.getScale(M))||{x:1,y:1}:{x:1,y:1},Q=Lr(d.convertOffsetParentRelativeRectToViewportRelativeRect?await d.convertOffsetParentRelativeRectToViewportRelativeRect({elements:p,rect:R,offsetParent:M,strategy:v}):R);return{top:(z.top-Q.top+D.top)/q.y,bottom:(Q.bottom-z.bottom+D.bottom)/q.y,left:(z.left-Q.left+D.left)/q.x,right:(Q.right-z.right+D.right)/q.x}}const ww=async(a,i,r)=>{const{placement:o="bottom",strategy:f="absolute",middleware:d=[],platform:h}=r,p=d.filter(Boolean),v=await(h.isRTL==null?void 0:h.isRTL(i));let y=await h.getElementRects({reference:a,floating:i,strategy:f}),{x:S,y:b}=av(y,o,v),C=o,j={},D=0;for(let A=0;A<p.length;A++){var w;const{name:z,fn:R}=p[A],{x:M,y:q,data:Q,reset:P}=await R({x:S,y:b,initialPlacement:o,placement:C,strategy:f,middlewareData:j,rects:y,platform:{...h,detectOverflow:(w=h.detectOverflow)!=null?w:Sw},elements:{reference:a,floating:i}});S=M??S,b=q??b,j={...j,[z]:{...j[z],...Q}},P&&D<=50&&(D++,typeof P=="object"&&(P.placement&&(C=P.placement),P.rects&&(y=P.rects===!0?await h.getElementRects({reference:a,floating:i,strategy:f}):P.rects),{x:S,y:b}=av(y,C,v)),A=-1)}return{x:S,y:b,placement:C,strategy:f,middlewareData:j}},Ew=a=>({name:"arrow",options:a,async fn(i){const{x:r,y:o,placement:f,rects:d,platform:h,elements:p,middlewareData:v}=i,{element:y,padding:S=0}=Un(a,i)||{};if(y==null)return{};const b=ig(S),C={x:r,y:o},j=df(f),D=ff(j),w=await h.getDimensions(y),A=j==="y",z=A?"top":"left",R=A?"bottom":"right",M=A?"clientHeight":"clientWidth",q=d.reference[D]+d.reference[j]-C[j]-d.floating[D],Q=C[j]-d.reference[j],P=await(h.getOffsetParent==null?void 0:h.getOffsetParent(y));let Y=P?P[M]:0;(!Y||!await(h.isElement==null?void 0:h.isElement(P)))&&(Y=p.floating[M]||d.floating[D]);const ne=q/2-Q/2,le=Y/2-w[D]/2-1,se=hl(b[z],le),ue=hl(b[R],le),$=se,te=Y-w[D]-ue,ee=Y/2-w[D]/2+ne,fe=Xu($,ee,te),_=!v.arrow&&Ma(f)!=null&&ee!==fe&&d.reference[D]/2-(ee<$?se:ue)-w[D]/2<0,L=_?ee<$?ee-$:ee-te:0;return{[j]:C[j]+L,data:{[j]:fe,centerOffset:ee-fe-L,..._&&{alignmentOffset:L}},reset:_}}}),Cw=function(a){return a===void 0&&(a={}),{name:"flip",options:a,async fn(i){var r,o;const{placement:f,middlewareData:d,rects:h,initialPlacement:p,platform:v,elements:y}=i,{mainAxis:S=!0,crossAxis:b=!0,fallbackPlacements:C,fallbackStrategy:j="bestFit",fallbackAxisSideDirection:D="none",flipAlignment:w=!0,...A}=Un(a,i);if((r=d.arrow)!=null&&r.alignmentOffset)return{};const z=Hn(f),R=cn(p),M=Hn(p)===p,q=await(v.isRTL==null?void 0:v.isRTL(y.floating)),Q=C||(M||!w?[Mr(p)]:pw(p)),P=D!=="none";!C&&P&&Q.push(...xw(p,w,D,q));const Y=[p,...Q],ne=await v.detectOverflow(i,A),le=[];let se=((o=d.flip)==null?void 0:o.overflows)||[];if(S&&le.push(ne[z]),b){const ee=mw(f,h,q);le.push(ne[ee[0]],ne[ee[1]])}if(se=[...se,{placement:f,overflows:le}],!le.every(ee=>ee<=0)){var ue,$;const ee=(((ue=d.flip)==null?void 0:ue.index)||0)+1,fe=Y[ee];if(fe&&(!(b==="alignment"?R!==cn(fe):!1)||se.every(V=>cn(V.placement)===R?V.overflows[0]>0:!0)))return{data:{index:ee,overflows:se},reset:{placement:fe}};let _=($=se.filter(L=>L.overflows[0]<=0).sort((L,V)=>L.overflows[1]-V.overflows[1])[0])==null?void 0:$.placement;if(!_)switch(j){case"bestFit":{var te;const L=(te=se.filter(V=>{if(P){const ae=cn(V.placement);return ae===R||ae==="y"}return!0}).map(V=>[V.placement,V.overflows.filter(ae=>ae>0).reduce((ae,pe)=>ae+pe,0)]).sort((V,ae)=>V[1]-ae[1])[0])==null?void 0:te[0];L&&(_=L);break}case"initialPlacement":_=p;break}if(f!==_)return{reset:{placement:_}}}return{}}}};function iv(a,i){return{top:a.top-i.height,right:a.right-i.width,bottom:a.bottom-i.height,left:a.left-i.width}}function cv(a){return uw.some(i=>a[i]>=0)}const Nw=function(a){return a===void 0&&(a={}),{name:"hide",options:a,async fn(i){const{rects:r,platform:o}=i,{strategy:f="referenceHidden",...d}=Un(a,i);switch(f){case"referenceHidden":{const h=await o.detectOverflow(i,{...d,elementContext:"reference"}),p=iv(h,r.reference);return{data:{referenceHiddenOffsets:p,referenceHidden:cv(p)}}}case"escaped":{const h=await o.detectOverflow(i,{...d,altBoundary:!0}),p=iv(h,r.floating);return{data:{escapedOffsets:p,escaped:cv(p)}}}default:return{}}}}},cg=new Set(["left","top"]);async function jw(a,i){const{placement:r,platform:o,elements:f}=a,d=await(o.isRTL==null?void 0:o.isRTL(f.floating)),h=Hn(r),p=Ma(r),v=cn(r)==="y",y=cg.has(h)?-1:1,S=d&&v?-1:1,b=Un(i,a);let{mainAxis:C,crossAxis:j,alignmentAxis:D}=typeof b=="number"?{mainAxis:b,crossAxis:0,alignmentAxis:null}:{mainAxis:b.mainAxis||0,crossAxis:b.crossAxis||0,alignmentAxis:b.alignmentAxis};return p&&typeof D=="number"&&(j=p==="end"?D*-1:D),v?{x:j*S,y:C*y}:{x:C*y,y:j*S}}const Aw=function(a){return a===void 0&&(a=0),{name:"offset",options:a,async fn(i){var r,o;const{x:f,y:d,placement:h,middlewareData:p}=i,v=await jw(i,a);return h===((r=p.offset)==null?void 0:r.placement)&&(o=p.arrow)!=null&&o.alignmentOffset?{}:{x:f+v.x,y:d+v.y,data:{...v,placement:h}}}}},Tw=function(a){return a===void 0&&(a={}),{name:"shift",options:a,async fn(i){const{x:r,y:o,placement:f,platform:d}=i,{mainAxis:h=!0,crossAxis:p=!1,limiter:v={fn:z=>{let{x:R,y:M}=z;return{x:R,y:M}}},...y}=Un(a,i),S={x:r,y:o},b=await d.detectOverflow(i,y),C=cn(Hn(f)),j=uf(C);let D=S[j],w=S[C];if(h){const z=j==="y"?"top":"left",R=j==="y"?"bottom":"right",M=D+b[z],q=D-b[R];D=Xu(M,D,q)}if(p){const z=C==="y"?"top":"left",R=C==="y"?"bottom":"right",M=w+b[z],q=w-b[R];w=Xu(M,w,q)}const A=v.fn({...i,[j]:D,[C]:w});return{...A,data:{x:A.x-r,y:A.y-o,enabled:{[j]:h,[C]:p}}}}}},Rw=function(a){return a===void 0&&(a={}),{options:a,fn(i){const{x:r,y:o,placement:f,rects:d,middlewareData:h}=i,{offset:p=0,mainAxis:v=!0,crossAxis:y=!0}=Un(a,i),S={x:r,y:o},b=cn(f),C=uf(b);let j=S[C],D=S[b];const w=Un(p,i),A=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(v){const M=C==="y"?"height":"width",q=d.reference[C]-d.floating[M]+A.mainAxis,Q=d.reference[C]+d.reference[M]-A.mainAxis;j<q?j=q:j>Q&&(j=Q)}if(y){var z,R;const M=C==="y"?"width":"height",q=cg.has(Hn(f)),Q=d.reference[b]-d.floating[M]+(q&&((z=h.offset)==null?void 0:z[b])||0)+(q?0:A.crossAxis),P=d.reference[b]+d.reference[M]+(q?0:((R=h.offset)==null?void 0:R[b])||0)-(q?A.crossAxis:0);D<Q?D=Q:D>P&&(D=P)}return{[C]:j,[b]:D}}}},zw=function(a){return a===void 0&&(a={}),{name:"size",options:a,async fn(i){var r,o;const{placement:f,rects:d,platform:h,elements:p}=i,{apply:v=()=>{},...y}=Un(a,i),S=await h.detectOverflow(i,y),b=Hn(f),C=Ma(f),j=cn(f)==="y",{width:D,height:w}=d.floating;let A,z;b==="top"||b==="bottom"?(A=b,z=C===(await(h.isRTL==null?void 0:h.isRTL(p.floating))?"start":"end")?"left":"right"):(z=b,A=C==="end"?"top":"bottom");const R=w-S.top-S.bottom,M=D-S.left-S.right,q=hl(w-S[A],R),Q=hl(D-S[z],M),P=!i.middlewareData.shift;let Y=q,ne=Q;if((r=i.middlewareData.shift)!=null&&r.enabled.x&&(ne=M),(o=i.middlewareData.shift)!=null&&o.enabled.y&&(Y=R),P&&!C){const se=_t(S.left,0),ue=_t(S.right,0),$=_t(S.top,0),te=_t(S.bottom,0);j?ne=D-2*(se!==0||ue!==0?se+ue:_t(S.left,S.right)):Y=w-2*($!==0||te!==0?$+te:_t(S.top,S.bottom))}await v({...i,availableWidth:ne,availableHeight:Y});const le=await h.getDimensions(p.floating);return D!==le.width||w!==le.height?{reset:{rects:!0}}:{}}}};function Vr(){return typeof window<"u"}function La(a){return rg(a)?(a.nodeName||"").toLowerCase():"#document"}function Dt(a){var i;return(a==null||(i=a.ownerDocument)==null?void 0:i.defaultView)||window}function fn(a){var i;return(i=(rg(a)?a.ownerDocument:a.document)||window.document)==null?void 0:i.documentElement}function rg(a){return Vr()?a instanceof Node||a instanceof Dt(a).Node:!1}function Wt(a){return Vr()?a instanceof Element||a instanceof Dt(a).Element:!1}function on(a){return Vr()?a instanceof HTMLElement||a instanceof Dt(a).HTMLElement:!1}function rv(a){return!Vr()||typeof ShadowRoot>"u"?!1:a instanceof ShadowRoot||a instanceof Dt(a).ShadowRoot}const Ow=new Set(["inline","contents"]);function Zi(a){const{overflow:i,overflowX:r,overflowY:o,display:f}=It(a);return/auto|scroll|overlay|hidden|clip/.test(i+o+r)&&!Ow.has(f)}const _w=new Set(["table","td","th"]);function Dw(a){return _w.has(La(a))}const Mw=[":popover-open",":modal"];function Xr(a){return Mw.some(i=>{try{return a.matches(i)}catch{return!1}})}const Lw=["transform","translate","scale","rotate","perspective"],Uw=["transform","translate","scale","rotate","perspective","filter"],Hw=["paint","layout","strict","content"];function hf(a){const i=mf(),r=Wt(a)?It(a):a;return Lw.some(o=>r[o]?r[o]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!i&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!i&&(r.filter?r.filter!=="none":!1)||Uw.some(o=>(r.willChange||"").includes(o))||Hw.some(o=>(r.contain||"").includes(o))}function Bw(a){let i=ml(a);for(;on(i)&&!za(i);){if(hf(i))return i;if(Xr(i))return null;i=ml(i)}return null}function mf(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const kw=new Set(["html","body","#document"]);function za(a){return kw.has(La(a))}function It(a){return Dt(a).getComputedStyle(a)}function Gr(a){return Wt(a)?{scrollLeft:a.scrollLeft,scrollTop:a.scrollTop}:{scrollLeft:a.scrollX,scrollTop:a.scrollY}}function ml(a){if(La(a)==="html")return a;const i=a.assignedSlot||a.parentNode||rv(a)&&a.host||fn(a);return rv(i)?i.host:i}function og(a){const i=ml(a);return za(i)?a.ownerDocument?a.ownerDocument.body:a.body:on(i)&&Zi(i)?i:og(i)}function Xi(a,i,r){var o;i===void 0&&(i=[]),r===void 0&&(r=!0);const f=og(a),d=f===((o=a.ownerDocument)==null?void 0:o.body),h=Dt(f);if(d){const p=Fu(h);return i.concat(h,h.visualViewport||[],Zi(f)?f:[],p&&r?Xi(p):[])}return i.concat(f,Xi(f,[],r))}function Fu(a){return a.parent&&Object.getPrototypeOf(a.parent)?a.frameElement:null}function sg(a){const i=It(a);let r=parseFloat(i.width)||0,o=parseFloat(i.height)||0;const f=on(a),d=f?a.offsetWidth:r,h=f?a.offsetHeight:o,p=Dr(r)!==d||Dr(o)!==h;return p&&(r=d,o=h),{width:r,height:o,$:p}}function pf(a){return Wt(a)?a:a.contextElement}function Aa(a){const i=pf(a);if(!on(i))return rn(1);const r=i.getBoundingClientRect(),{width:o,height:f,$:d}=sg(i);let h=(d?Dr(r.width):r.width)/o,p=(d?Dr(r.height):r.height)/f;return(!h||!Number.isFinite(h))&&(h=1),(!p||!Number.isFinite(p))&&(p=1),{x:h,y:p}}const Yw=rn(0);function ug(a){const i=Dt(a);return!mf()||!i.visualViewport?Yw:{x:i.visualViewport.offsetLeft,y:i.visualViewport.offsetTop}}function qw(a,i,r){return i===void 0&&(i=!1),!r||i&&r!==Dt(a)?!1:i}function Ul(a,i,r,o){i===void 0&&(i=!1),r===void 0&&(r=!1);const f=a.getBoundingClientRect(),d=pf(a);let h=rn(1);i&&(o?Wt(o)&&(h=Aa(o)):h=Aa(a));const p=qw(d,r,o)?ug(d):rn(0);let v=(f.left+p.x)/h.x,y=(f.top+p.y)/h.y,S=f.width/h.x,b=f.height/h.y;if(d){const C=Dt(d),j=o&&Wt(o)?Dt(o):o;let D=C,w=Fu(D);for(;w&&o&&j!==D;){const A=Aa(w),z=w.getBoundingClientRect(),R=It(w),M=z.left+(w.clientLeft+parseFloat(R.paddingLeft))*A.x,q=z.top+(w.clientTop+parseFloat(R.paddingTop))*A.y;v*=A.x,y*=A.y,S*=A.x,b*=A.y,v+=M,y+=q,D=Dt(w),w=Fu(D)}}return Lr({width:S,height:b,x:v,y})}function Fr(a,i){const r=Gr(a).scrollLeft;return i?i.left+r:Ul(fn(a)).left+r}function fg(a,i){const r=a.getBoundingClientRect(),o=r.left+i.scrollLeft-Fr(a,r),f=r.top+i.scrollTop;return{x:o,y:f}}function Vw(a){let{elements:i,rect:r,offsetParent:o,strategy:f}=a;const d=f==="fixed",h=fn(o),p=i?Xr(i.floating):!1;if(o===h||p&&d)return r;let v={scrollLeft:0,scrollTop:0},y=rn(1);const S=rn(0),b=on(o);if((b||!b&&!d)&&((La(o)!=="body"||Zi(h))&&(v=Gr(o)),on(o))){const j=Ul(o);y=Aa(o),S.x=j.x+o.clientLeft,S.y=j.y+o.clientTop}const C=h&&!b&&!d?fg(h,v):rn(0);return{width:r.width*y.x,height:r.height*y.y,x:r.x*y.x-v.scrollLeft*y.x+S.x+C.x,y:r.y*y.y-v.scrollTop*y.y+S.y+C.y}}function Xw(a){return Array.from(a.getClientRects())}function Gw(a){const i=fn(a),r=Gr(a),o=a.ownerDocument.body,f=_t(i.scrollWidth,i.clientWidth,o.scrollWidth,o.clientWidth),d=_t(i.scrollHeight,i.clientHeight,o.scrollHeight,o.clientHeight);let h=-r.scrollLeft+Fr(a);const p=-r.scrollTop;return It(o).direction==="rtl"&&(h+=_t(i.clientWidth,o.clientWidth)-f),{width:f,height:d,x:h,y:p}}const ov=25;function Fw(a,i){const r=Dt(a),o=fn(a),f=r.visualViewport;let d=o.clientWidth,h=o.clientHeight,p=0,v=0;if(f){d=f.width,h=f.height;const S=mf();(!S||S&&i==="fixed")&&(p=f.offsetLeft,v=f.offsetTop)}const y=Fr(o);if(y<=0){const S=o.ownerDocument,b=S.body,C=getComputedStyle(b),j=S.compatMode==="CSS1Compat"&&parseFloat(C.marginLeft)+parseFloat(C.marginRight)||0,D=Math.abs(o.clientWidth-b.clientWidth-j);D<=ov&&(d-=D)}else y<=ov&&(d+=y);return{width:d,height:h,x:p,y:v}}const Kw=new Set(["absolute","fixed"]);function Qw(a,i){const r=Ul(a,!0,i==="fixed"),o=r.top+a.clientTop,f=r.left+a.clientLeft,d=on(a)?Aa(a):rn(1),h=a.clientWidth*d.x,p=a.clientHeight*d.y,v=f*d.x,y=o*d.y;return{width:h,height:p,x:v,y}}function sv(a,i,r){let o;if(i==="viewport")o=Fw(a,r);else if(i==="document")o=Gw(fn(a));else if(Wt(i))o=Qw(i,r);else{const f=ug(a);o={x:i.x-f.x,y:i.y-f.y,width:i.width,height:i.height}}return Lr(o)}function dg(a,i){const r=ml(a);return r===i||!Wt(r)||za(r)?!1:It(r).position==="fixed"||dg(r,i)}function Zw(a,i){const r=i.get(a);if(r)return r;let o=Xi(a,[],!1).filter(p=>Wt(p)&&La(p)!=="body"),f=null;const d=It(a).position==="fixed";let h=d?ml(a):a;for(;Wt(h)&&!za(h);){const p=It(h),v=hf(h);!v&&p.position==="fixed"&&(f=null),(d?!v&&!f:!v&&p.position==="static"&&!!f&&Kw.has(f.position)||Zi(h)&&!v&&dg(a,h))?o=o.filter(S=>S!==h):f=p,h=ml(h)}return i.set(a,o),o}function Pw(a){let{element:i,boundary:r,rootBoundary:o,strategy:f}=a;const h=[...r==="clippingAncestors"?Xr(i)?[]:Zw(i,this._c):[].concat(r),o],p=h[0],v=h.reduce((y,S)=>{const b=sv(i,S,f);return y.top=_t(b.top,y.top),y.right=hl(b.right,y.right),y.bottom=hl(b.bottom,y.bottom),y.left=_t(b.left,y.left),y},sv(i,p,f));return{width:v.right-v.left,height:v.bottom-v.top,x:v.left,y:v.top}}function Jw(a){const{width:i,height:r}=sg(a);return{width:i,height:r}}function Ww(a,i,r){const o=on(i),f=fn(i),d=r==="fixed",h=Ul(a,!0,d,i);let p={scrollLeft:0,scrollTop:0};const v=rn(0);function y(){v.x=Fr(f)}if(o||!o&&!d)if((La(i)!=="body"||Zi(f))&&(p=Gr(i)),o){const j=Ul(i,!0,d,i);v.x=j.x+i.clientLeft,v.y=j.y+i.clientTop}else f&&y();d&&!o&&f&&y();const S=f&&!o&&!d?fg(f,p):rn(0),b=h.left+p.scrollLeft-v.x-S.x,C=h.top+p.scrollTop-v.y-S.y;return{x:b,y:C,width:h.width,height:h.height}}function Tu(a){return It(a).position==="static"}function uv(a,i){if(!on(a)||It(a).position==="fixed")return null;if(i)return i(a);let r=a.offsetParent;return fn(a)===r&&(r=r.ownerDocument.body),r}function hg(a,i){const r=Dt(a);if(Xr(a))return r;if(!on(a)){let f=ml(a);for(;f&&!za(f);){if(Wt(f)&&!Tu(f))return f;f=ml(f)}return r}let o=uv(a,i);for(;o&&Dw(o)&&Tu(o);)o=uv(o,i);return o&&za(o)&&Tu(o)&&!hf(o)?r:o||Bw(a)||r}const Iw=async function(a){const i=this.getOffsetParent||hg,r=this.getDimensions,o=await r(a.floating);return{reference:Ww(a.reference,await i(a.floating),a.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function $w(a){return It(a).direction==="rtl"}const eE={convertOffsetParentRelativeRectToViewportRelativeRect:Vw,getDocumentElement:fn,getClippingRect:Pw,getOffsetParent:hg,getElementRects:Iw,getClientRects:Xw,getDimensions:Jw,getScale:Aa,isElement:Wt,isRTL:$w};function mg(a,i){return a.x===i.x&&a.y===i.y&&a.width===i.width&&a.height===i.height}function tE(a,i){let r=null,o;const f=fn(a);function d(){var p;clearTimeout(o),(p=r)==null||p.disconnect(),r=null}function h(p,v){p===void 0&&(p=!1),v===void 0&&(v=1),d();const y=a.getBoundingClientRect(),{left:S,top:b,width:C,height:j}=y;if(p||i(),!C||!j)return;const D=vr(b),w=vr(f.clientWidth-(S+C)),A=vr(f.clientHeight-(b+j)),z=vr(S),M={rootMargin:-D+"px "+-w+"px "+-A+"px "+-z+"px",threshold:_t(0,hl(1,v))||1};let q=!0;function Q(P){const Y=P[0].intersectionRatio;if(Y!==v){if(!q)return h();Y?h(!1,Y):o=setTimeout(()=>{h(!1,1e-7)},1e3)}Y===1&&!mg(y,a.getBoundingClientRect())&&h(),q=!1}try{r=new IntersectionObserver(Q,{...M,root:f.ownerDocument})}catch{r=new IntersectionObserver(Q,M)}r.observe(a)}return h(!0),d}function nE(a,i,r,o){o===void 0&&(o={});const{ancestorScroll:f=!0,ancestorResize:d=!0,elementResize:h=typeof ResizeObserver=="function",layoutShift:p=typeof IntersectionObserver=="function",animationFrame:v=!1}=o,y=pf(a),S=f||d?[...y?Xi(y):[],...Xi(i)]:[];S.forEach(z=>{f&&z.addEventListener("scroll",r,{passive:!0}),d&&z.addEventListener("resize",r)});const b=y&&p?tE(y,r):null;let C=-1,j=null;h&&(j=new ResizeObserver(z=>{let[R]=z;R&&R.target===y&&j&&(j.unobserve(i),cancelAnimationFrame(C),C=requestAnimationFrame(()=>{var M;(M=j)==null||M.observe(i)})),r()}),y&&!v&&j.observe(y),j.observe(i));let D,w=v?Ul(a):null;v&&A();function A(){const z=Ul(a);w&&!mg(w,z)&&r(),w=z,D=requestAnimationFrame(A)}return r(),()=>{var z;S.forEach(R=>{f&&R.removeEventListener("scroll",r),d&&R.removeEventListener("resize",r)}),b?.(),(z=j)==null||z.disconnect(),j=null,v&&cancelAnimationFrame(D)}}const lE=Aw,aE=Tw,iE=Cw,cE=zw,rE=Nw,fv=Ew,oE=Rw,sE=(a,i,r)=>{const o=new Map,f={platform:eE,...r},d={...f.platform,_c:o};return ww(a,i,{...f,platform:d})};var uE=typeof document<"u",fE=function(){},Nr=uE?g.useLayoutEffect:fE;function Ur(a,i){if(a===i)return!0;if(typeof a!=typeof i)return!1;if(typeof a=="function"&&a.toString()===i.toString())return!0;let r,o,f;if(a&&i&&typeof a=="object"){if(Array.isArray(a)){if(r=a.length,r!==i.length)return!1;for(o=r;o--!==0;)if(!Ur(a[o],i[o]))return!1;return!0}if(f=Object.keys(a),r=f.length,r!==Object.keys(i).length)return!1;for(o=r;o--!==0;)if(!{}.hasOwnProperty.call(i,f[o]))return!1;for(o=r;o--!==0;){const d=f[o];if(!(d==="_owner"&&a.$$typeof)&&!Ur(a[d],i[d]))return!1}return!0}return a!==a&&i!==i}function pg(a){return typeof window>"u"?1:(a.ownerDocument.defaultView||window).devicePixelRatio||1}function dv(a,i){const r=pg(a);return Math.round(i*r)/r}function Ru(a){const i=g.useRef(a);return Nr(()=>{i.current=a}),i}function dE(a){a===void 0&&(a={});const{placement:i="bottom",strategy:r="absolute",middleware:o=[],platform:f,elements:{reference:d,floating:h}={},transform:p=!0,whileElementsMounted:v,open:y}=a,[S,b]=g.useState({x:0,y:0,strategy:r,placement:i,middlewareData:{},isPositioned:!1}),[C,j]=g.useState(o);Ur(C,o)||j(o);const[D,w]=g.useState(null),[A,z]=g.useState(null),R=g.useCallback(V=>{V!==P.current&&(P.current=V,w(V))},[]),M=g.useCallback(V=>{V!==Y.current&&(Y.current=V,z(V))},[]),q=d||D,Q=h||A,P=g.useRef(null),Y=g.useRef(null),ne=g.useRef(S),le=v!=null,se=Ru(v),ue=Ru(f),$=Ru(y),te=g.useCallback(()=>{if(!P.current||!Y.current)return;const V={placement:i,strategy:r,middleware:C};ue.current&&(V.platform=ue.current),sE(P.current,Y.current,V).then(ae=>{const pe={...ae,isPositioned:$.current!==!1};ee.current&&!Ur(ne.current,pe)&&(ne.current=pe,Ki.flushSync(()=>{b(pe)}))})},[C,i,r,ue,$]);Nr(()=>{y===!1&&ne.current.isPositioned&&(ne.current.isPositioned=!1,b(V=>({...V,isPositioned:!1})))},[y]);const ee=g.useRef(!1);Nr(()=>(ee.current=!0,()=>{ee.current=!1}),[]),Nr(()=>{if(q&&(P.current=q),Q&&(Y.current=Q),q&&Q){if(se.current)return se.current(q,Q,te);te()}},[q,Q,te,se,le]);const fe=g.useMemo(()=>({reference:P,floating:Y,setReference:R,setFloating:M}),[R,M]),_=g.useMemo(()=>({reference:q,floating:Q}),[q,Q]),L=g.useMemo(()=>{const V={position:r,left:0,top:0};if(!_.floating)return V;const ae=dv(_.floating,S.x),pe=dv(_.floating,S.y);return p?{...V,transform:"translate("+ae+"px, "+pe+"px)",...pg(_.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:ae,top:pe}},[r,p,_.floating,S.x,S.y]);return g.useMemo(()=>({...S,update:te,refs:fe,elements:_,floatingStyles:L}),[S,te,fe,_,L])}const hE=a=>{function i(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:a,fn(r){const{element:o,padding:f}=typeof a=="function"?a(r):a;return o&&i(o)?o.current!=null?fv({element:o.current,padding:f}).fn(r):{}:o?fv({element:o,padding:f}).fn(r):{}}}},mE=(a,i)=>({...lE(a),options:[a,i]}),pE=(a,i)=>({...aE(a),options:[a,i]}),vE=(a,i)=>({...oE(a),options:[a,i]}),gE=(a,i)=>({...iE(a),options:[a,i]}),yE=(a,i)=>({...cE(a),options:[a,i]}),xE=(a,i)=>({...rE(a),options:[a,i]}),bE=(a,i)=>({...hE(a),options:[a,i]});var SE="Arrow",vg=g.forwardRef((a,i)=>{const{children:r,width:o=10,height:f=5,...d}=a;return u.jsx(Ke.svg,{...d,ref:i,width:o,height:f,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:a.asChild?r:u.jsx("polygon",{points:"0,0 30,0 15,10"})})});vg.displayName=SE;var wE=vg;function EE(a){const[i,r]=g.useState(void 0);return xt(()=>{if(a){r({width:a.offsetWidth,height:a.offsetHeight});const o=new ResizeObserver(f=>{if(!Array.isArray(f)||!f.length)return;const d=f[0];let h,p;if("borderBoxSize"in d){const v=d.borderBoxSize,y=Array.isArray(v)?v[0]:v;h=y.inlineSize,p=y.blockSize}else h=a.offsetWidth,p=a.offsetHeight;r({width:h,height:p})});return o.observe(a,{box:"border-box"}),()=>o.unobserve(a)}else r(void 0)},[a]),i}var vf="Popper",[gg,yg]=of(vf),[CE,xg]=gg(vf),bg=a=>{const{__scopePopper:i,children:r}=a,[o,f]=g.useState(null);return u.jsx(CE,{scope:i,anchor:o,onAnchorChange:f,children:r})};bg.displayName=vf;var Sg="PopperAnchor",wg=g.forwardRef((a,i)=>{const{__scopePopper:r,virtualRef:o,...f}=a,d=xg(Sg,r),h=g.useRef(null),p=st(i,h),v=g.useRef(null);return g.useEffect(()=>{const y=v.current;v.current=o?.current||h.current,y!==v.current&&d.onAnchorChange(v.current)}),o?null:u.jsx(Ke.div,{...f,ref:p})});wg.displayName=Sg;var gf="PopperContent",[NE,jE]=gg(gf),Eg=g.forwardRef((a,i)=>{const{__scopePopper:r,side:o="bottom",sideOffset:f=0,align:d="center",alignOffset:h=0,arrowPadding:p=0,avoidCollisions:v=!0,collisionBoundary:y=[],collisionPadding:S=0,sticky:b="partial",hideWhenDetached:C=!1,updatePositionStrategy:j="optimized",onPlaced:D,...w}=a,A=xg(gf,r),[z,R]=g.useState(null),M=st(i,J=>R(J)),[q,Q]=g.useState(null),P=EE(q),Y=P?.width??0,ne=P?.height??0,le=o+(d!=="center"?"-"+d:""),se=typeof S=="number"?S:{top:0,right:0,bottom:0,left:0,...S},ue=Array.isArray(y)?y:[y],$=ue.length>0,te={padding:se,boundary:ue.filter(TE),altBoundary:$},{refs:ee,floatingStyles:fe,placement:_,isPositioned:L,middlewareData:V}=dE({strategy:"fixed",placement:le,whileElementsMounted:(...J)=>nE(...J,{animationFrame:j==="always"}),elements:{reference:A.anchor},middleware:[mE({mainAxis:f+ne,alignmentAxis:h}),v&&pE({mainAxis:!0,crossAxis:!1,limiter:b==="partial"?vE():void 0,...te}),v&&gE({...te}),yE({...te,apply:({elements:J,rects:ve,availableWidth:W,availableHeight:ie})=>{const{width:ge,height:Ne}=ve.reference,Ye=J.floating.style;Ye.setProperty("--radix-popper-available-width",`${W}px`),Ye.setProperty("--radix-popper-available-height",`${ie}px`),Ye.setProperty("--radix-popper-anchor-width",`${ge}px`),Ye.setProperty("--radix-popper-anchor-height",`${Ne}px`)}}),q&&bE({element:q,padding:p}),RE({arrowWidth:Y,arrowHeight:ne}),C&&xE({strategy:"referenceHidden",...te})]}),[ae,pe]=jg(_),N=Ll(D);xt(()=>{L&&N?.()},[L,N]);const G=V.arrow?.x,Z=V.arrow?.y,I=V.arrow?.centerOffset!==0,[re,he]=g.useState();return xt(()=>{z&&he(window.getComputedStyle(z).zIndex)},[z]),u.jsx("div",{ref:ee.setFloating,"data-radix-popper-content-wrapper":"",style:{...fe,transform:L?fe.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:re,"--radix-popper-transform-origin":[V.transformOrigin?.x,V.transformOrigin?.y].join(" "),...V.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:a.dir,children:u.jsx(NE,{scope:r,placedSide:ae,onArrowChange:Q,arrowX:G,arrowY:Z,shouldHideArrow:I,children:u.jsx(Ke.div,{"data-side":ae,"data-align":pe,...w,ref:M,style:{...w.style,animation:L?void 0:"none"}})})})});Eg.displayName=gf;var Cg="PopperArrow",AE={top:"bottom",right:"left",bottom:"top",left:"right"},Ng=g.forwardRef(function(i,r){const{__scopePopper:o,...f}=i,d=jE(Cg,o),h=AE[d.placedSide];return u.jsx("span",{ref:d.onArrowChange,style:{position:"absolute",left:d.arrowX,top:d.arrowY,[h]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[d.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[d.placedSide],visibility:d.shouldHideArrow?"hidden":void 0},children:u.jsx(wE,{...f,ref:r,style:{...f.style,display:"block"}})})});Ng.displayName=Cg;function TE(a){return a!==null}var RE=a=>({name:"transformOrigin",options:a,fn(i){const{placement:r,rects:o,middlewareData:f}=i,h=f.arrow?.centerOffset!==0,p=h?0:a.arrowWidth,v=h?0:a.arrowHeight,[y,S]=jg(r),b={start:"0%",center:"50%",end:"100%"}[S],C=(f.arrow?.x??0)+p/2,j=(f.arrow?.y??0)+v/2;let D="",w="";return y==="bottom"?(D=h?b:`${C}px`,w=`${-v}px`):y==="top"?(D=h?b:`${C}px`,w=`${o.floating.height+v}px`):y==="right"?(D=`${-v}px`,w=h?b:`${j}px`):y==="left"&&(D=`${o.floating.width+v}px`,w=h?b:`${j}px`),{data:{x:D,y:w}}}});function jg(a){const[i,r="center"]=a.split("-");return[i,r]}var zE=bg,OE=wg,_E=Eg,DE=Ng,ME="Portal",Ag=g.forwardRef((a,i)=>{const{container:r,...o}=a,[f,d]=g.useState(!1);xt(()=>d(!0),[]);const h=r||f&&globalThis?.document?.body;return h?ES.createPortal(u.jsx(Ke.div,{...o,ref:i}),h):null});Ag.displayName=ME;var LE=bv[" useInsertionEffect ".trim().toString()]||xt;function hv({prop:a,defaultProp:i,onChange:r=()=>{},caller:o}){const[f,d,h]=UE({defaultProp:i,onChange:r}),p=a!==void 0,v=p?a:f;{const S=g.useRef(a!==void 0);g.useEffect(()=>{const b=S.current;b!==p&&console.warn(`${o} is changing from ${b?"controlled":"uncontrolled"} to ${p?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),S.current=p},[p,o])}const y=g.useCallback(S=>{if(p){const b=HE(S)?S(a):S;b!==a&&h.current?.(b)}else d(S)},[p,a,d,h]);return[v,y]}function UE({defaultProp:a,onChange:i}){const[r,o]=g.useState(a),f=g.useRef(r),d=g.useRef(i);return LE(()=>{d.current=i},[i]),g.useEffect(()=>{f.current!==r&&(d.current?.(r),f.current=r)},[r,f]),[r,o,d]}function HE(a){return typeof a=="function"}function BE(a){const i=g.useRef({value:a,previous:a});return g.useMemo(()=>(i.current.value!==a&&(i.current.previous=i.current.value,i.current.value=a),i.current.previous),[a])}var Tg=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),kE="VisuallyHidden",YE=g.forwardRef((a,i)=>u.jsx(Ke.span,{...a,ref:i,style:{...Tg,...a.style}}));YE.displayName=kE;var qE=function(a){if(typeof document>"u")return null;var i=Array.isArray(a)?a[0]:a;return i.ownerDocument.body},Ea=new WeakMap,gr=new WeakMap,yr={},zu=0,Rg=function(a){return a&&(a.host||Rg(a.parentNode))},VE=function(a,i){return i.map(function(r){if(a.contains(r))return r;var o=Rg(r);return o&&a.contains(o)?o:(console.error("aria-hidden",r,"in not contained inside",a,". Doing nothing"),null)}).filter(function(r){return!!r})},XE=function(a,i,r,o){var f=VE(i,Array.isArray(a)?a:[a]);yr[r]||(yr[r]=new WeakMap);var d=yr[r],h=[],p=new Set,v=new Set(f),y=function(b){!b||p.has(b)||(p.add(b),y(b.parentNode))};f.forEach(y);var S=function(b){!b||v.has(b)||Array.prototype.forEach.call(b.children,function(C){if(p.has(C))S(C);else try{var j=C.getAttribute(o),D=j!==null&&j!=="false",w=(Ea.get(C)||0)+1,A=(d.get(C)||0)+1;Ea.set(C,w),d.set(C,A),h.push(C),w===1&&D&&gr.set(C,!0),A===1&&C.setAttribute(r,"true"),D||C.setAttribute(o,"true")}catch(z){console.error("aria-hidden: cannot operate on ",C,z)}})};return S(i),p.clear(),zu++,function(){h.forEach(function(b){var C=Ea.get(b)-1,j=d.get(b)-1;Ea.set(b,C),d.set(b,j),C||(gr.has(b)||b.removeAttribute(o),gr.delete(b)),j||b.removeAttribute(r)}),zu--,zu||(Ea=new WeakMap,Ea=new WeakMap,gr=new WeakMap,yr={})}},GE=function(a,i,r){r===void 0&&(r="data-aria-hidden");var o=Array.from(Array.isArray(a)?a:[a]),f=qE(a);return f?(o.push.apply(o,Array.from(f.querySelectorAll("[aria-live], script"))),XE(o,f,r,"aria-hidden")):function(){return null}},an=function(){return an=Object.assign||function(i){for(var r,o=1,f=arguments.length;o<f;o++){r=arguments[o];for(var d in r)Object.prototype.hasOwnProperty.call(r,d)&&(i[d]=r[d])}return i},an.apply(this,arguments)};function zg(a,i){var r={};for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&i.indexOf(o)<0&&(r[o]=a[o]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var f=0,o=Object.getOwnPropertySymbols(a);f<o.length;f++)i.indexOf(o[f])<0&&Object.prototype.propertyIsEnumerable.call(a,o[f])&&(r[o[f]]=a[o[f]]);return r}function FE(a,i,r){if(r||arguments.length===2)for(var o=0,f=i.length,d;o<f;o++)(d||!(o in i))&&(d||(d=Array.prototype.slice.call(i,0,o)),d[o]=i[o]);return a.concat(d||Array.prototype.slice.call(i))}var jr="right-scroll-bar-position",Ar="width-before-scroll-bar",KE="with-scroll-bars-hidden",QE="--removed-body-scroll-bar-size";function Ou(a,i){return typeof a=="function"?a(i):a&&(a.current=i),a}function ZE(a,i){var r=g.useState(function(){return{value:a,callback:i,facade:{get current(){return r.value},set current(o){var f=r.value;f!==o&&(r.value=o,r.callback(o,f))}}}})[0];return r.callback=i,r.facade}var PE=typeof window<"u"?g.useLayoutEffect:g.useEffect,mv=new WeakMap;function JE(a,i){var r=ZE(null,function(o){return a.forEach(function(f){return Ou(f,o)})});return PE(function(){var o=mv.get(r);if(o){var f=new Set(o),d=new Set(a),h=r.current;f.forEach(function(p){d.has(p)||Ou(p,null)}),d.forEach(function(p){f.has(p)||Ou(p,h)})}mv.set(r,a)},[a]),r}function WE(a){return a}function IE(a,i){i===void 0&&(i=WE);var r=[],o=!1,f={read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:a},useMedium:function(d){var h=i(d,o);return r.push(h),function(){r=r.filter(function(p){return p!==h})}},assignSyncMedium:function(d){for(o=!0;r.length;){var h=r;r=[],h.forEach(d)}r={push:function(p){return d(p)},filter:function(){return r}}},assignMedium:function(d){o=!0;var h=[];if(r.length){var p=r;r=[],p.forEach(d),h=r}var v=function(){var S=h;h=[],S.forEach(d)},y=function(){return Promise.resolve().then(v)};y(),r={push:function(S){h.push(S),y()},filter:function(S){return h=h.filter(S),r}}}};return f}function $E(a){a===void 0&&(a={});var i=IE(null);return i.options=an({async:!0,ssr:!1},a),i}var Og=function(a){var i=a.sideCar,r=zg(a,["sideCar"]);if(!i)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=i.read();if(!o)throw new Error("Sidecar medium not found");return g.createElement(o,an({},r))};Og.isSideCarExport=!0;function e2(a,i){return a.useMedium(i),Og}var _g=$E(),_u=function(){},Kr=g.forwardRef(function(a,i){var r=g.useRef(null),o=g.useState({onScrollCapture:_u,onWheelCapture:_u,onTouchMoveCapture:_u}),f=o[0],d=o[1],h=a.forwardProps,p=a.children,v=a.className,y=a.removeScrollBar,S=a.enabled,b=a.shards,C=a.sideCar,j=a.noRelative,D=a.noIsolation,w=a.inert,A=a.allowPinchZoom,z=a.as,R=z===void 0?"div":z,M=a.gapMode,q=zg(a,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),Q=C,P=JE([r,i]),Y=an(an({},q),f);return g.createElement(g.Fragment,null,S&&g.createElement(Q,{sideCar:_g,removeScrollBar:y,shards:b,noRelative:j,noIsolation:D,inert:w,setCallbacks:d,allowPinchZoom:!!A,lockRef:r,gapMode:M}),h?g.cloneElement(g.Children.only(p),an(an({},Y),{ref:P})):g.createElement(R,an({},Y,{className:v,ref:P}),p))});Kr.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Kr.classNames={fullWidth:Ar,zeroRight:jr};var t2=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function n2(){if(!document)return null;var a=document.createElement("style");a.type="text/css";var i=t2();return i&&a.setAttribute("nonce",i),a}function l2(a,i){a.styleSheet?a.styleSheet.cssText=i:a.appendChild(document.createTextNode(i))}function a2(a){var i=document.head||document.getElementsByTagName("head")[0];i.appendChild(a)}var i2=function(){var a=0,i=null;return{add:function(r){a==0&&(i=n2())&&(l2(i,r),a2(i)),a++},remove:function(){a--,!a&&i&&(i.parentNode&&i.parentNode.removeChild(i),i=null)}}},c2=function(){var a=i2();return function(i,r){g.useEffect(function(){return a.add(i),function(){a.remove()}},[i&&r])}},Dg=function(){var a=c2(),i=function(r){var o=r.styles,f=r.dynamic;return a(o,f),null};return i},r2={left:0,top:0,right:0,gap:0},Du=function(a){return parseInt(a||"",10)||0},o2=function(a){var i=window.getComputedStyle(document.body),r=i[a==="padding"?"paddingLeft":"marginLeft"],o=i[a==="padding"?"paddingTop":"marginTop"],f=i[a==="padding"?"paddingRight":"marginRight"];return[Du(r),Du(o),Du(f)]},s2=function(a){if(a===void 0&&(a="margin"),typeof window>"u")return r2;var i=o2(a),r=document.documentElement.clientWidth,o=window.innerWidth;return{left:i[0],top:i[1],right:i[2],gap:Math.max(0,o-r+i[2]-i[0])}},u2=Dg(),Ta="data-scroll-locked",f2=function(a,i,r,o){var f=a.left,d=a.top,h=a.right,p=a.gap;return r===void 0&&(r="margin"),`
12
+ .`.concat(KE,` {
13
+ overflow: hidden `).concat(o,`;
14
+ padding-right: `).concat(p,"px ").concat(o,`;
15
15
  }
16
- body[`).concat(ja,`] {
17
- overflow: hidden `).concat(s,`;
16
+ body[`).concat(Ta,`] {
17
+ overflow: hidden `).concat(o,`;
18
18
  overscroll-behavior: contain;
19
- `).concat([i&&"position: relative ".concat(s,";"),o==="margin"&&`
19
+ `).concat([i&&"position: relative ".concat(o,";"),r==="margin"&&`
20
20
  padding-left: `.concat(f,`px;
21
21
  padding-top: `).concat(d,`px;
22
22
  padding-right: `).concat(h,`px;
23
23
  margin-left:0;
24
24
  margin-top:0;
25
- margin-right: `).concat(p,"px ").concat(s,`;
26
- `),o==="padding"&&"padding-right: ".concat(p,"px ").concat(s,";")].filter(Boolean).join(""),`
25
+ margin-right: `).concat(p,"px ").concat(o,`;
26
+ `),r==="padding"&&"padding-right: ".concat(p,"px ").concat(o,";")].filter(Boolean).join(""),`
27
27
  }
28
28
 
29
- .`).concat(jo,` {
30
- right: `).concat(p,"px ").concat(s,`;
29
+ .`).concat(jr,` {
30
+ right: `).concat(p,"px ").concat(o,`;
31
31
  }
32
32
 
33
- .`).concat(To,` {
34
- margin-right: `).concat(p,"px ").concat(s,`;
33
+ .`).concat(Ar,` {
34
+ margin-right: `).concat(p,"px ").concat(o,`;
35
35
  }
36
36
 
37
- .`).concat(jo," .").concat(jo,` {
38
- right: 0 `).concat(s,`;
37
+ .`).concat(jr," .").concat(jr,` {
38
+ right: 0 `).concat(o,`;
39
39
  }
40
40
 
41
- .`).concat(To," .").concat(To,` {
42
- margin-right: 0 `).concat(s,`;
41
+ .`).concat(Ar," .").concat(Ar,` {
42
+ margin-right: 0 `).concat(o,`;
43
43
  }
44
44
 
45
- body[`).concat(ja,`] {
46
- `).concat(qE,": ").concat(p,`px;
45
+ body[`).concat(Ta,`] {
46
+ `).concat(QE,": ").concat(p,`px;
47
47
  }
48
- `)},sv=function(){var a=parseInt(document.body.getAttribute(ja)||"0",10);return isFinite(a)?a:0},c2=function(){g.useEffect(function(){return document.body.setAttribute(ja,(sv()+1).toString()),function(){var a=sv()-1;a<=0?document.body.removeAttribute(ja):document.body.setAttribute(ja,a.toString())}},[])},o2=function(a){var i=a.noRelative,o=a.noImportant,s=a.gapMode,f=s===void 0?"margin":s;c2();var d=g.useMemo(function(){return l2(f)},[f]);return g.createElement(a2,{styles:i2(d,!i,f,o?"":"!important")})},Xu=!1;if(typeof window<"u")try{var xo=Object.defineProperty({},"passive",{get:function(){return Xu=!0,!0}});window.addEventListener("test",xo,xo),window.removeEventListener("test",xo,xo)}catch{Xu=!1}var wa=Xu?{passive:!1}:!1,r2=function(a){return a.tagName==="TEXTAREA"},Rg=function(a,i){if(!(a instanceof Element))return!1;var o=window.getComputedStyle(a);return o[i]!=="hidden"&&!(o.overflowY===o.overflowX&&!r2(a)&&o[i]==="visible")},s2=function(a){return Rg(a,"overflowY")},u2=function(a){return Rg(a,"overflowX")},uv=function(a,i){var o=i.ownerDocument,s=i;do{typeof ShadowRoot<"u"&&s instanceof ShadowRoot&&(s=s.host);var f=zg(a,s);if(f){var d=Og(a,s),h=d[1],p=d[2];if(h>p)return!0}s=s.parentNode}while(s&&s!==o.body);return!1},f2=function(a){var i=a.scrollTop,o=a.scrollHeight,s=a.clientHeight;return[i,o,s]},d2=function(a){var i=a.scrollLeft,o=a.scrollWidth,s=a.clientWidth;return[i,o,s]},zg=function(a,i){return a==="v"?s2(i):u2(i)},Og=function(a,i){return a==="v"?f2(i):d2(i)},h2=function(a,i){return a==="h"&&i==="rtl"?-1:1},m2=function(a,i,o,s,f){var d=h2(a,window.getComputedStyle(i).direction),h=d*s,p=o.target,v=i.contains(p),y=!1,S=h>0,b=0,C=0;do{if(!p)break;var j=Og(a,p),D=j[0],w=j[1],T=j[2],z=w-T-d*D;(D||z)&&zg(a,p)&&(b+=z,C+=D);var R=p.parentNode;p=R&&R.nodeType===Node.DOCUMENT_FRAGMENT_NODE?R.host:R}while(!v&&p!==document.body||v&&(i.contains(p)||i===p));return(S&&Math.abs(b)<1||!S&&Math.abs(C)<1)&&(y=!0),y},bo=function(a){return"changedTouches"in a?[a.changedTouches[0].clientX,a.changedTouches[0].clientY]:[0,0]},fv=function(a){return[a.deltaX,a.deltaY]},dv=function(a){return a&&"current"in a?a.current:a},p2=function(a,i){return a[0]===i[0]&&a[1]===i[1]},v2=function(a){return`
48
+ `)},pv=function(){var a=parseInt(document.body.getAttribute(Ta)||"0",10);return isFinite(a)?a:0},d2=function(){g.useEffect(function(){return document.body.setAttribute(Ta,(pv()+1).toString()),function(){var a=pv()-1;a<=0?document.body.removeAttribute(Ta):document.body.setAttribute(Ta,a.toString())}},[])},h2=function(a){var i=a.noRelative,r=a.noImportant,o=a.gapMode,f=o===void 0?"margin":o;d2();var d=g.useMemo(function(){return s2(f)},[f]);return g.createElement(u2,{styles:f2(d,!i,f,r?"":"!important")})},Ku=!1;if(typeof window<"u")try{var xr=Object.defineProperty({},"passive",{get:function(){return Ku=!0,!0}});window.addEventListener("test",xr,xr),window.removeEventListener("test",xr,xr)}catch{Ku=!1}var Ca=Ku?{passive:!1}:!1,m2=function(a){return a.tagName==="TEXTAREA"},Mg=function(a,i){if(!(a instanceof Element))return!1;var r=window.getComputedStyle(a);return r[i]!=="hidden"&&!(r.overflowY===r.overflowX&&!m2(a)&&r[i]==="visible")},p2=function(a){return Mg(a,"overflowY")},v2=function(a){return Mg(a,"overflowX")},vv=function(a,i){var r=i.ownerDocument,o=i;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var f=Lg(a,o);if(f){var d=Ug(a,o),h=d[1],p=d[2];if(h>p)return!0}o=o.parentNode}while(o&&o!==r.body);return!1},g2=function(a){var i=a.scrollTop,r=a.scrollHeight,o=a.clientHeight;return[i,r,o]},y2=function(a){var i=a.scrollLeft,r=a.scrollWidth,o=a.clientWidth;return[i,r,o]},Lg=function(a,i){return a==="v"?p2(i):v2(i)},Ug=function(a,i){return a==="v"?g2(i):y2(i)},x2=function(a,i){return a==="h"&&i==="rtl"?-1:1},b2=function(a,i,r,o,f){var d=x2(a,window.getComputedStyle(i).direction),h=d*o,p=r.target,v=i.contains(p),y=!1,S=h>0,b=0,C=0;do{if(!p)break;var j=Ug(a,p),D=j[0],w=j[1],A=j[2],z=w-A-d*D;(D||z)&&Lg(a,p)&&(b+=z,C+=D);var R=p.parentNode;p=R&&R.nodeType===Node.DOCUMENT_FRAGMENT_NODE?R.host:R}while(!v&&p!==document.body||v&&(i.contains(p)||i===p));return(S&&Math.abs(b)<1||!S&&Math.abs(C)<1)&&(y=!0),y},br=function(a){return"changedTouches"in a?[a.changedTouches[0].clientX,a.changedTouches[0].clientY]:[0,0]},gv=function(a){return[a.deltaX,a.deltaY]},yv=function(a){return a&&"current"in a?a.current:a},S2=function(a,i){return a[0]===i[0]&&a[1]===i[1]},w2=function(a){return`
49
49
  .block-interactivity-`.concat(a,` {pointer-events: none;}
50
50
  .allow-interactivity-`).concat(a,` {pointer-events: all;}
51
- `)},g2=0,Ea=[];function y2(a){var i=g.useRef([]),o=g.useRef([0,0]),s=g.useRef(),f=g.useState(g2++)[0],d=g.useState(Ag)[0],h=g.useRef(a);g.useEffect(function(){h.current=a},[a]),g.useEffect(function(){if(a.inert){document.body.classList.add("block-interactivity-".concat(f));var w=kE([a.lockRef.current],(a.shards||[]).map(dv),!0).filter(Boolean);return w.forEach(function(T){return T.classList.add("allow-interactivity-".concat(f))}),function(){document.body.classList.remove("block-interactivity-".concat(f)),w.forEach(function(T){return T.classList.remove("allow-interactivity-".concat(f))})}}},[a.inert,a.lockRef.current,a.shards]);var p=g.useCallback(function(w,T){if("touches"in w&&w.touches.length===2||w.type==="wheel"&&w.ctrlKey)return!h.current.allowPinchZoom;var z=bo(w),R=o.current,M="deltaX"in w?w.deltaX:R[0]-z[0],q="deltaY"in w?w.deltaY:R[1]-z[1],Q,Z=w.target,Y=Math.abs(M)>Math.abs(q)?"h":"v";if("touches"in w&&Y==="h"&&Z.type==="range")return!1;var le=window.getSelection(),oe=le&&le.anchorNode,ae=oe?oe===Z||oe.contains(Z):!1;if(ae)return!1;var se=uv(Y,Z);if(!se)return!0;if(se?Q=Y:(Q=Y==="v"?"h":"v",se=uv(Y,Z)),!se)return!1;if(!s.current&&"changedTouches"in w&&(M||q)&&(s.current=Q),!Q)return!0;var W=s.current||Q;return m2(W,T,w,W==="h"?M:q)},[]),v=g.useCallback(function(w){var T=w;if(!(!Ea.length||Ea[Ea.length-1]!==d)){var z="deltaY"in T?fv(T):bo(T),R=i.current.filter(function(Q){return Q.name===T.type&&(Q.target===T.target||T.target===Q.shadowParent)&&p2(Q.delta,z)})[0];if(R&&R.should){T.cancelable&&T.preventDefault();return}if(!R){var M=(h.current.shards||[]).map(dv).filter(Boolean).filter(function(Q){return Q.contains(T.target)}),q=M.length>0?p(T,M[0]):!h.current.noIsolation;q&&T.cancelable&&T.preventDefault()}}},[]),y=g.useCallback(function(w,T,z,R){var M={name:w,delta:T,target:z,should:R,shadowParent:x2(z)};i.current.push(M),setTimeout(function(){i.current=i.current.filter(function(q){return q!==M})},1)},[]),S=g.useCallback(function(w){o.current=bo(w),s.current=void 0},[]),b=g.useCallback(function(w){y(w.type,fv(w),w.target,p(w,a.lockRef.current))},[]),C=g.useCallback(function(w){y(w.type,bo(w),w.target,p(w,a.lockRef.current))},[]);g.useEffect(function(){return Ea.push(d),a.setCallbacks({onScrollCapture:b,onWheelCapture:b,onTouchMoveCapture:C}),document.addEventListener("wheel",v,wa),document.addEventListener("touchmove",v,wa),document.addEventListener("touchstart",S,wa),function(){Ea=Ea.filter(function(w){return w!==d}),document.removeEventListener("wheel",v,wa),document.removeEventListener("touchmove",v,wa),document.removeEventListener("touchstart",S,wa)}},[]);var j=a.removeScrollBar,D=a.inert;return g.createElement(g.Fragment,null,D?g.createElement(d,{styles:v2(f)}):null,j?g.createElement(o2,{noRelative:a.noRelative,gapMode:a.gapMode}):null)}function x2(a){for(var i=null;a!==null;)a instanceof ShadowRoot&&(i=a.host,a=a.host),a=a.parentNode;return i}const b2=ZE(Tg,y2);var _g=g.forwardRef(function(a,i){return g.createElement(Fo,ln({},a,{ref:i,sideCar:b2}))});_g.classNames=Fo.classNames;var S2=[" ","Enter","ArrowUp","ArrowDown"],w2=[" ","Enter"],Ll="Select",[Ko,Qo,E2]=L1(Ll),[Ma]=lf(Ll,[E2,hg]),Zo=hg(),[C2,fl]=Ma(Ll),[N2,j2]=Ma(Ll),Dg=a=>{const{__scopeSelect:i,children:o,open:s,defaultOpen:f,onOpenChange:d,value:h,defaultValue:p,onValueChange:v,dir:y,name:S,autoComplete:b,disabled:C,required:j,form:D}=a,w=Zo(i),[T,z]=g.useState(null),[R,M]=g.useState(null),[q,Q]=g.useState(!1),Z=H1(y),[Y,le]=ov({prop:s,defaultProp:f??!1,onChange:d,caller:Ll}),[oe,ae]=ov({prop:h,defaultProp:p,onChange:v,caller:Ll}),se=g.useRef(null),W=T?D||!!T.closest("form"):!0,[ce,I]=g.useState(new Set),te=Array.from(ce).map(O=>O.props.value).join(";");return u.jsx(CE,{...w,children:u.jsxs(C2,{required:j,scope:i,trigger:T,onTriggerChange:z,valueNode:R,onValueNodeChange:M,valueNodeHasChildren:q,onValueNodeHasChildrenChange:Q,contentId:af(),value:oe,onValueChange:ae,open:Y,onOpenChange:le,dir:Z,triggerPointerDownPosRef:se,disabled:C,children:[u.jsx(Ko.Provider,{scope:i,children:u.jsx(N2,{scope:a.__scopeSelect,onNativeOptionAdd:g.useCallback(O=>{I(L=>new Set(L).add(O))},[]),onNativeOptionRemove:g.useCallback(O=>{I(L=>{const G=new Set(L);return G.delete(O),G})},[]),children:o})}),W?u.jsxs(ey,{"aria-hidden":!0,required:j,tabIndex:-1,name:S,autoComplete:b,value:oe,onChange:O=>ae(O.target.value),disabled:C,form:D,children:[oe===void 0?u.jsx("option",{value:""}):null,Array.from(ce)]},te):null]})})};Dg.displayName=Ll;var Mg="SelectTrigger",Lg=g.forwardRef((a,i)=>{const{__scopeSelect:o,disabled:s=!1,...f}=a,d=Zo(o),h=fl(Mg,o),p=h.disabled||s,v=ot(i,h.onTriggerChange),y=Qo(o),S=g.useRef("touch"),[b,C,j]=ny(w=>{const T=y().filter(M=>!M.disabled),z=T.find(M=>M.value===h.value),R=ly(T,w,z);R!==void 0&&h.onValueChange(R.value)}),D=w=>{p||(h.onOpenChange(!0),j()),w&&(h.triggerPointerDownPosRef.current={x:Math.round(w.pageX),y:Math.round(w.pageY)})};return u.jsx(NE,{asChild:!0,...d,children:u.jsx(Fe.button,{type:"button",role:"combobox","aria-controls":h.contentId,"aria-expanded":h.open,"aria-required":h.required,"aria-autocomplete":"none",dir:h.dir,"data-state":h.open?"open":"closed",disabled:p,"data-disabled":p?"":void 0,"data-placeholder":ty(h.value)?"":void 0,...f,ref:v,onClick:Je(f.onClick,w=>{w.currentTarget.focus(),S.current!=="mouse"&&D(w)}),onPointerDown:Je(f.onPointerDown,w=>{S.current=w.pointerType;const T=w.target;T.hasPointerCapture(w.pointerId)&&T.releasePointerCapture(w.pointerId),w.button===0&&w.ctrlKey===!1&&w.pointerType==="mouse"&&(D(w),w.preventDefault())}),onKeyDown:Je(f.onKeyDown,w=>{const T=b.current!=="";!(w.ctrlKey||w.altKey||w.metaKey)&&w.key.length===1&&C(w.key),!(T&&w.key===" ")&&S2.includes(w.key)&&(D(),w.preventDefault())})})})});Lg.displayName=Mg;var Ug="SelectValue",Hg=g.forwardRef((a,i)=>{const{__scopeSelect:o,className:s,style:f,children:d,placeholder:h="",...p}=a,v=fl(Ug,o),{onValueNodeHasChildrenChange:y}=v,S=d!==void 0,b=ot(i,v.onValueNodeChange);return yt(()=>{y(S)},[y,S]),u.jsx(Fe.span,{...p,ref:b,style:{pointerEvents:"none"},children:ty(v.value)?u.jsx(u.Fragment,{children:h}):d})});Hg.displayName=Ug;var T2="SelectIcon",Bg=g.forwardRef((a,i)=>{const{__scopeSelect:o,children:s,...f}=a;return u.jsx(Fe.span,{"aria-hidden":!0,...f,ref:i,children:s||"▼"})});Bg.displayName=T2;var A2="SelectPortal",kg=a=>u.jsx(wg,{asChild:!0,...a});kg.displayName=A2;var Ul="SelectContent",Yg=g.forwardRef((a,i)=>{const o=fl(Ul,a.__scopeSelect),[s,f]=g.useState();if(yt(()=>{f(new DocumentFragment)},[]),!o.open){const d=s;return d?Fi.createPortal(u.jsx(qg,{scope:a.__scopeSelect,children:u.jsx(Ko.Slot,{scope:a.__scopeSelect,children:u.jsx("div",{children:a.children})})}),d):null}return u.jsx(Vg,{...a,ref:i})});Yg.displayName=Ul;var Zt=10,[qg,dl]=Ma(Ul),R2="SelectContentImpl",z2=_o("SelectContent.RemoveScroll"),Vg=g.forwardRef((a,i)=>{const{__scopeSelect:o,position:s="item-aligned",onCloseAutoFocus:f,onEscapeKeyDown:d,onPointerDownOutside:h,side:p,sideOffset:v,align:y,alignOffset:S,arrowPadding:b,collisionBoundary:C,collisionPadding:j,sticky:D,hideWhenDetached:w,avoidCollisions:T,...z}=a,R=fl(Ul,o),[M,q]=g.useState(null),[Q,Z]=g.useState(null),Y=ot(i,$=>q($)),[le,oe]=g.useState(null),[ae,se]=g.useState(null),W=Qo(o),[ce,I]=g.useState(!1),te=g.useRef(!1);g.useEffect(()=>{if(M)return BE(M)},[M]),Z1();const O=g.useCallback($=>{const[be,...P]=W().map(Ae=>Ae.ref.current),[ue]=P.slice(-1),ge=document.activeElement;for(const Ae of $)if(Ae===ge||(Ae?.scrollIntoView({block:"nearest"}),Ae===be&&Q&&(Q.scrollTop=0),Ae===ue&&Q&&(Q.scrollTop=Q.scrollHeight),Ae?.focus(),document.activeElement!==ge))return},[W,Q]),L=g.useCallback(()=>O([le,M]),[O,le,M]);g.useEffect(()=>{ce&&L()},[ce,L]);const{onOpenChange:G,triggerPointerDownPosRef:ne}=R;g.useEffect(()=>{if(M){let $={x:0,y:0};const be=ue=>{$={x:Math.abs(Math.round(ue.pageX)-(ne.current?.x??0)),y:Math.abs(Math.round(ue.pageY)-(ne.current?.y??0))}},P=ue=>{$.x<=10&&$.y<=10?ue.preventDefault():M.contains(ue.target)||G(!1),document.removeEventListener("pointermove",be),ne.current=null};return ne.current!==null&&(document.addEventListener("pointermove",be),document.addEventListener("pointerup",P,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",be),document.removeEventListener("pointerup",P,{capture:!0})}}},[M,G,ne]),g.useEffect(()=>{const $=()=>G(!1);return window.addEventListener("blur",$),window.addEventListener("resize",$),()=>{window.removeEventListener("blur",$),window.removeEventListener("resize",$)}},[G]);const[fe,N]=ny($=>{const be=W().filter(ge=>!ge.disabled),P=be.find(ge=>ge.ref.current===document.activeElement),ue=ly(be,$,P);ue&&setTimeout(()=>ue.ref.current.focus())}),X=g.useCallback(($,be,P)=>{const ue=!te.current&&!P;(R.value!==void 0&&R.value===be||ue)&&(oe($),ue&&(te.current=!0))},[R.value]),J=g.useCallback(()=>M?.focus(),[M]),ee=g.useCallback(($,be,P)=>{const ue=!te.current&&!P;(R.value!==void 0&&R.value===be||ue)&&se($)},[R.value]),he=s==="popper"?Gu:Xg,pe=he===Gu?{side:p,sideOffset:v,align:y,alignOffset:S,arrowPadding:b,collisionBoundary:C,collisionPadding:j,sticky:D,hideWhenDetached:w,avoidCollisions:T}:{};return u.jsx(qg,{scope:o,content:M,viewport:Q,onViewportChange:Z,itemRefCallback:X,selectedItem:le,onItemLeave:J,itemTextRefCallback:ee,focusSelectedItem:L,selectedItemText:ae,position:s,isPositioned:ce,searchRef:fe,children:u.jsx(_g,{as:z2,allowPinchZoom:!0,children:u.jsx($v,{asChild:!0,trapped:R.open,onMountAutoFocus:$=>{$.preventDefault()},onUnmountAutoFocus:Je(f,$=>{R.trigger?.focus({preventScroll:!0}),$.preventDefault()}),children:u.jsx(Jv,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:d,onPointerDownOutside:h,onFocusOutside:$=>$.preventDefault(),onDismiss:()=>R.onOpenChange(!1),children:u.jsx(he,{role:"listbox",id:R.contentId,"data-state":R.open?"open":"closed",dir:R.dir,onContextMenu:$=>$.preventDefault(),...z,...pe,onPlaced:()=>I(!0),ref:Y,style:{display:"flex",flexDirection:"column",outline:"none",...z.style},onKeyDown:Je(z.onKeyDown,$=>{const be=$.ctrlKey||$.altKey||$.metaKey;if($.key==="Tab"&&$.preventDefault(),!be&&$.key.length===1&&N($.key),["ArrowUp","ArrowDown","Home","End"].includes($.key)){let ue=W().filter(ge=>!ge.disabled).map(ge=>ge.ref.current);if(["ArrowUp","End"].includes($.key)&&(ue=ue.slice().reverse()),["ArrowUp","ArrowDown"].includes($.key)){const ge=$.target,Ae=ue.indexOf(ge);ue=ue.slice(Ae+1)}setTimeout(()=>O(ue)),$.preventDefault()}})})})})})})});Vg.displayName=R2;var O2="SelectItemAlignedPosition",Xg=g.forwardRef((a,i)=>{const{__scopeSelect:o,onPlaced:s,...f}=a,d=fl(Ul,o),h=dl(Ul,o),[p,v]=g.useState(null),[y,S]=g.useState(null),b=ot(i,Y=>S(Y)),C=Qo(o),j=g.useRef(!1),D=g.useRef(!0),{viewport:w,selectedItem:T,selectedItemText:z,focusSelectedItem:R}=h,M=g.useCallback(()=>{if(d.trigger&&d.valueNode&&p&&y&&w&&T&&z){const Y=d.trigger.getBoundingClientRect(),le=y.getBoundingClientRect(),oe=d.valueNode.getBoundingClientRect(),ae=z.getBoundingClientRect();if(d.dir!=="rtl"){const ge=ae.left-le.left,Ae=oe.left-ge,tt=Y.left-Ae,st=Y.width+tt,hl=Math.max(st,le.width),ml=window.innerWidth-Zt,La=qp(Ae,[Zt,Math.max(Zt,ml-hl)]);p.style.minWidth=st+"px",p.style.left=La+"px"}else{const ge=le.right-ae.right,Ae=window.innerWidth-oe.right-ge,tt=window.innerWidth-Y.right-Ae,st=Y.width+tt,hl=Math.max(st,le.width),ml=window.innerWidth-Zt,La=qp(Ae,[Zt,Math.max(Zt,ml-hl)]);p.style.minWidth=st+"px",p.style.right=La+"px"}const se=C(),W=window.innerHeight-Zt*2,ce=w.scrollHeight,I=window.getComputedStyle(y),te=parseInt(I.borderTopWidth,10),O=parseInt(I.paddingTop,10),L=parseInt(I.borderBottomWidth,10),G=parseInt(I.paddingBottom,10),ne=te+O+ce+G+L,fe=Math.min(T.offsetHeight*5,ne),N=window.getComputedStyle(w),X=parseInt(N.paddingTop,10),J=parseInt(N.paddingBottom,10),ee=Y.top+Y.height/2-Zt,he=W-ee,pe=T.offsetHeight/2,$=T.offsetTop+pe,be=te+O+$,P=ne-be;if(be<=ee){const ge=se.length>0&&T===se[se.length-1].ref.current;p.style.bottom="0px";const Ae=y.clientHeight-w.offsetTop-w.offsetHeight,tt=Math.max(he,pe+(ge?J:0)+Ae+L),st=be+tt;p.style.height=st+"px"}else{const ge=se.length>0&&T===se[0].ref.current;p.style.top="0px";const tt=Math.max(ee,te+w.offsetTop+(ge?X:0)+pe)+P;p.style.height=tt+"px",w.scrollTop=be-ee+w.offsetTop}p.style.margin=`${Zt}px 0`,p.style.minHeight=fe+"px",p.style.maxHeight=W+"px",s?.(),requestAnimationFrame(()=>j.current=!0)}},[C,d.trigger,d.valueNode,p,y,w,T,z,d.dir,s]);yt(()=>M(),[M]);const[q,Q]=g.useState();yt(()=>{y&&Q(window.getComputedStyle(y).zIndex)},[y]);const Z=g.useCallback(Y=>{Y&&D.current===!0&&(M(),R?.(),D.current=!1)},[M,R]);return u.jsx(D2,{scope:o,contentWrapper:p,shouldExpandOnScrollRef:j,onScrollButtonChange:Z,children:u.jsx("div",{ref:v,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:q},children:u.jsx(Fe.div,{...f,ref:b,style:{boxSizing:"border-box",maxHeight:"100%",...f.style}})})})});Xg.displayName=O2;var _2="SelectPopperPosition",Gu=g.forwardRef((a,i)=>{const{__scopeSelect:o,align:s="start",collisionPadding:f=Zt,...d}=a,h=Zo(o);return u.jsx(jE,{...h,...d,ref:i,align:s,collisionPadding:f,style:{boxSizing:"border-box",...d.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Gu.displayName=_2;var[D2,mf]=Ma(Ul,{}),Fu="SelectViewport",Gg=g.forwardRef((a,i)=>{const{__scopeSelect:o,nonce:s,...f}=a,d=dl(Fu,o),h=mf(Fu,o),p=ot(i,d.onViewportChange),v=g.useRef(0);return u.jsxs(u.Fragment,{children:[u.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:s}),u.jsx(Ko.Slot,{scope:o,children:u.jsx(Fe.div,{"data-radix-select-viewport":"",role:"presentation",...f,ref:p,style:{position:"relative",flex:1,overflow:"hidden auto",...f.style},onScroll:Je(f.onScroll,y=>{const S=y.currentTarget,{contentWrapper:b,shouldExpandOnScrollRef:C}=h;if(C?.current&&b){const j=Math.abs(v.current-S.scrollTop);if(j>0){const D=window.innerHeight-Zt*2,w=parseFloat(b.style.minHeight),T=parseFloat(b.style.height),z=Math.max(w,T);if(z<D){const R=z+j,M=Math.min(D,R),q=R-M;b.style.height=M+"px",b.style.bottom==="0px"&&(S.scrollTop=q>0?q:0,b.style.justifyContent="flex-end")}}}v.current=S.scrollTop})})})]})});Gg.displayName=Fu;var Fg="SelectGroup",[M2,L2]=Ma(Fg),U2=g.forwardRef((a,i)=>{const{__scopeSelect:o,...s}=a,f=af();return u.jsx(M2,{scope:o,id:f,children:u.jsx(Fe.div,{role:"group","aria-labelledby":f,...s,ref:i})})});U2.displayName=Fg;var Kg="SelectLabel",Qg=g.forwardRef((a,i)=>{const{__scopeSelect:o,...s}=a,f=L2(Kg,o);return u.jsx(Fe.div,{id:f.id,...s,ref:i})});Qg.displayName=Kg;var Ho="SelectItem",[H2,Zg]=Ma(Ho),Pg=g.forwardRef((a,i)=>{const{__scopeSelect:o,value:s,disabled:f=!1,textValue:d,...h}=a,p=fl(Ho,o),v=dl(Ho,o),y=p.value===s,[S,b]=g.useState(d??""),[C,j]=g.useState(!1),D=ot(i,R=>v.itemRefCallback?.(R,s,f)),w=af(),T=g.useRef("touch"),z=()=>{f||(p.onValueChange(s),p.onOpenChange(!1))};if(s==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return u.jsx(H2,{scope:o,value:s,disabled:f,textId:w,isSelected:y,onItemTextChange:g.useCallback(R=>{b(M=>M||(R?.textContent??"").trim())},[]),children:u.jsx(Ko.ItemSlot,{scope:o,value:s,disabled:f,textValue:S,children:u.jsx(Fe.div,{role:"option","aria-labelledby":w,"data-highlighted":C?"":void 0,"aria-selected":y&&C,"data-state":y?"checked":"unchecked","aria-disabled":f||void 0,"data-disabled":f?"":void 0,tabIndex:f?void 0:-1,...h,ref:D,onFocus:Je(h.onFocus,()=>j(!0)),onBlur:Je(h.onBlur,()=>j(!1)),onClick:Je(h.onClick,()=>{T.current!=="mouse"&&z()}),onPointerUp:Je(h.onPointerUp,()=>{T.current==="mouse"&&z()}),onPointerDown:Je(h.onPointerDown,R=>{T.current=R.pointerType}),onPointerMove:Je(h.onPointerMove,R=>{T.current=R.pointerType,f?v.onItemLeave?.():T.current==="mouse"&&R.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Je(h.onPointerLeave,R=>{R.currentTarget===document.activeElement&&v.onItemLeave?.()}),onKeyDown:Je(h.onKeyDown,R=>{v.searchRef?.current!==""&&R.key===" "||(w2.includes(R.key)&&z(),R.key===" "&&R.preventDefault())})})})})});Pg.displayName=Ho;var Li="SelectItemText",Jg=g.forwardRef((a,i)=>{const{__scopeSelect:o,className:s,style:f,...d}=a,h=fl(Li,o),p=dl(Li,o),v=Zg(Li,o),y=j2(Li,o),[S,b]=g.useState(null),C=ot(i,z=>b(z),v.onItemTextChange,z=>p.itemTextRefCallback?.(z,v.value,v.disabled)),j=S?.textContent,D=g.useMemo(()=>u.jsx("option",{value:v.value,disabled:v.disabled,children:j},v.value),[v.disabled,v.value,j]),{onNativeOptionAdd:w,onNativeOptionRemove:T}=y;return yt(()=>(w(D),()=>T(D)),[w,T,D]),u.jsxs(u.Fragment,{children:[u.jsx(Fe.span,{id:v.textId,...d,ref:C}),v.isSelected&&h.valueNode&&!h.valueNodeHasChildren?Fi.createPortal(d.children,h.valueNode):null]})});Jg.displayName=Li;var Wg="SelectItemIndicator",$g=g.forwardRef((a,i)=>{const{__scopeSelect:o,...s}=a;return Zg(Wg,o).isSelected?u.jsx(Fe.span,{"aria-hidden":!0,...s,ref:i}):null});$g.displayName=Wg;var Ku="SelectScrollUpButton",B2=g.forwardRef((a,i)=>{const o=dl(Ku,a.__scopeSelect),s=mf(Ku,a.__scopeSelect),[f,d]=g.useState(!1),h=ot(i,s.onScrollButtonChange);return yt(()=>{if(o.viewport&&o.isPositioned){let p=function(){const y=v.scrollTop>0;d(y)};const v=o.viewport;return p(),v.addEventListener("scroll",p),()=>v.removeEventListener("scroll",p)}},[o.viewport,o.isPositioned]),f?u.jsx(Ig,{...a,ref:h,onAutoScroll:()=>{const{viewport:p,selectedItem:v}=o;p&&v&&(p.scrollTop=p.scrollTop-v.offsetHeight)}}):null});B2.displayName=Ku;var Qu="SelectScrollDownButton",k2=g.forwardRef((a,i)=>{const o=dl(Qu,a.__scopeSelect),s=mf(Qu,a.__scopeSelect),[f,d]=g.useState(!1),h=ot(i,s.onScrollButtonChange);return yt(()=>{if(o.viewport&&o.isPositioned){let p=function(){const y=v.scrollHeight-v.clientHeight,S=Math.ceil(v.scrollTop)<y;d(S)};const v=o.viewport;return p(),v.addEventListener("scroll",p),()=>v.removeEventListener("scroll",p)}},[o.viewport,o.isPositioned]),f?u.jsx(Ig,{...a,ref:h,onAutoScroll:()=>{const{viewport:p,selectedItem:v}=o;p&&v&&(p.scrollTop=p.scrollTop+v.offsetHeight)}}):null});k2.displayName=Qu;var Ig=g.forwardRef((a,i)=>{const{__scopeSelect:o,onAutoScroll:s,...f}=a,d=dl("SelectScrollButton",o),h=g.useRef(null),p=Qo(o),v=g.useCallback(()=>{h.current!==null&&(window.clearInterval(h.current),h.current=null)},[]);return g.useEffect(()=>()=>v(),[v]),yt(()=>{p().find(S=>S.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[p]),u.jsx(Fe.div,{"aria-hidden":!0,...f,ref:i,style:{flexShrink:0,...f.style},onPointerDown:Je(f.onPointerDown,()=>{h.current===null&&(h.current=window.setInterval(s,50))}),onPointerMove:Je(f.onPointerMove,()=>{d.onItemLeave?.(),h.current===null&&(h.current=window.setInterval(s,50))}),onPointerLeave:Je(f.onPointerLeave,()=>{v()})})}),Y2="SelectSeparator",q2=g.forwardRef((a,i)=>{const{__scopeSelect:o,...s}=a;return u.jsx(Fe.div,{"aria-hidden":!0,...s,ref:i})});q2.displayName=Y2;var Zu="SelectArrow",V2=g.forwardRef((a,i)=>{const{__scopeSelect:o,...s}=a,f=Zo(o),d=fl(Zu,o),h=dl(Zu,o);return d.open&&h.position==="popper"?u.jsx(TE,{...f,...s,ref:i}):null});V2.displayName=Zu;var X2="SelectBubbleInput",ey=g.forwardRef(({__scopeSelect:a,value:i,...o},s)=>{const f=g.useRef(null),d=ot(s,f),h=_E(i);return g.useEffect(()=>{const p=f.current;if(!p)return;const v=window.HTMLSelectElement.prototype,S=Object.getOwnPropertyDescriptor(v,"value").set;if(h!==i&&S){const b=new Event("change",{bubbles:!0});S.call(p,i),p.dispatchEvent(b)}},[h,i]),u.jsx(Fe.select,{...o,style:{...Eg,...o.style},ref:d,defaultValue:i})});ey.displayName=X2;function ty(a){return a===""||a===void 0}function ny(a){const i=Dl(a),o=g.useRef(""),s=g.useRef(0),f=g.useCallback(h=>{const p=o.current+h;i(p),(function v(y){o.current=y,window.clearTimeout(s.current),y!==""&&(s.current=window.setTimeout(()=>v(""),1e3))})(p)},[i]),d=g.useCallback(()=>{o.current="",window.clearTimeout(s.current)},[]);return g.useEffect(()=>()=>window.clearTimeout(s.current),[]),[o,f,d]}function ly(a,i,o){const f=i.length>1&&Array.from(i).every(y=>y===i[0])?i[0]:i,d=o?a.indexOf(o):-1;let h=G2(a,Math.max(d,0));f.length===1&&(h=h.filter(y=>y!==o));const v=h.find(y=>y.textValue.toLowerCase().startsWith(f.toLowerCase()));return v!==o?v:void 0}function G2(a,i){return a.map((o,s)=>a[(i+s)%a.length])}var F2=Dg,ay=Lg,K2=Hg,Q2=Bg,Z2=kg,iy=Yg,P2=Gg,cy=Qg,oy=Pg,J2=Jg,W2=$g;const So=F2,wo=K2,Ui=g.forwardRef(({className:a,children:i,...o},s)=>u.jsxs(ay,{ref:s,className:$e("flex h-9 items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background","placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-50",a),...o,children:[i,u.jsx(Q2,{asChild:!0,children:u.jsx(Hv,{className:"h-4 w-4 opacity-50"})})]}));Ui.displayName=ay.displayName;const Hi=g.forwardRef(({className:a,children:i,position:o="popper",...s},f)=>u.jsx(Z2,{children:u.jsx(iy,{ref:f,className:$e("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2","data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",o==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",a),position:o,...s,children:u.jsx(P2,{className:$e("p-1",o==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:i})})}));Hi.displayName=iy.displayName;const $2=g.forwardRef(({className:a,...i},o)=>u.jsx(cy,{ref:o,className:$e("px-2 py-1.5 text-sm font-semibold",a),...i}));$2.displayName=cy.displayName;const zt=g.forwardRef(({className:a,children:i,...o},s)=>u.jsxs(oy,{ref:s,className:$e("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none","focus:bg-accent focus:text-accent-foreground","data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),...o,children:[u.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:u.jsx(W2,{children:u.jsx(zn,{className:"h-4 w-4"})})}),u.jsx(J2,{children:i})]}));zt.displayName=oy.displayName;const Zi="/api/admin";async function I2(){try{const a=await fetch(`${Zi}/config`);if(a.ok)return await a.json()}catch(a){console.error("Failed to get admin config:",a)}return null}async function eC(a){try{const i=a?"?baseUrl="+encodeURIComponent(a):"",o=await fetch(Zi+"/public-ip"+i);if(o.ok)return await o.json()}catch(i){console.error("Failed to get public ip check:",i)}return null}async function tC(a){try{return(await fetch(`${Zi}/config`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({env:a})})).ok}catch(i){return console.error("Failed to update admin config:",i),!1}}async function nC(){try{return(await fetch(`${Zi}/restart`,{method:"POST"})).ok}catch(a){return console.error("Failed to trigger restart:",a),!1}}async function lC(){try{const a=await fetch(`${Zi}/ddns`);if(a.ok)return await a.json()}catch(a){console.error("Failed to get ddns status:",a)}return null}const aC=["XPOD_DEPLOY_MODE","CSS_ROOT_FILE_PATH","CSS_BASE_URL","XPOD_TUNNEL_PROVIDER","CLOUDFLARE_TUNNEL_TOKEN","SAKURA_TUNNEL_TOKEN","XPOD_HTTPS_MODE","XPOD_HTTPS_CERT_PATH","XPOD_HTTPS_KEY_PATH","CSS_PORT","CSS_SPARQL_ENDPOINT","CSS_IDENTITY_DB_URL","CSS_LOGGING_LEVEL","CSS_SHOW_STACK_TRACE"];function iC(){const[a,i]=g.useState({}),[o,s]=g.useState(null),[f,d]=g.useState(null),[h,p]=g.useState(!0),[v,y]=g.useState(!1),[S,b]=g.useState(!1),[C,j]=g.useState(""),[D,w]=g.useState(!1),T=a.XPOD_DEPLOY_MODE==="standalone"?"standalone":"local",z=["none","cloudflare","sakura_frp"].includes(a.XPOD_TUNNEL_PROVIDER)?a.XPOD_TUNNEL_PROVIDER:"none",R=["none","acme","manual"].includes(a.XPOD_HTTPS_MODE)?a.XPOD_HTTPS_MODE:"none",M=o?.status??"unknown",q=T==="local",Z=!!a.XPOD_CLOUD_API_ENDPOINT,Y=q&&Z;g.useEffect(()=>{oe()},[]),g.useEffect(()=>{h||ae(a.CSS_BASE_URL)},[a.CSS_BASE_URL,T,h]),g.useEffect(()=>{h||(Y?le():d(null))},[Y,h]);const le=async()=>{try{const L=await lC();d(L)}catch(L){console.error("Failed to load ddns status:",L),d(null)}},oe=async()=>{try{const L=await I2();L&&i({...L.env})}catch(L){console.error("Failed to load config:",L)}finally{p(!1)}},ae=async L=>{b(!0);try{const G=await eC(L);s(G)}catch(G){console.error("Failed to refresh public ip check:",G),s(null)}finally{b(!1)}},se=async()=>{if(te)return j(te),!1;y(!0),j("");try{const L={};for(const ne of aC)ne in a&&(L[ne]=a[ne]);const G=await tC(L);return j(G?"配置已保存,需要重启服务生效":"保存失败"),!!G}catch{return j("保存失败"),!1}finally{y(!1)}},W=async()=>{j("正在重启服务..."),await nC()?(j("重启信号已发送,请稍候..."),setTimeout(()=>window.location.reload(),3e3)):j("重启失败")},ce=async()=>{await se()&&await W()},I=(L,G)=>{i(ne=>({...ne,[L]:G}))},te=g.useMemo(()=>{if(z==="cloudflare"&&!a.CLOUDFLARE_TUNNEL_TOKEN)return"请填写 Cloudflare Tunnel Token";if(z==="sakura_frp"&&!a.SAKURA_TUNNEL_TOKEN)return"请填写 Sakura Tunnel Token";if(Y&&f?.mode==="tunnel"&&z==="none")return"当前网络不可直连,必须启用隧道(选择供应商并填写 Token)";const G=(a.CSS_BASE_URL||"").trim().startsWith("https://");return!Y&&G&&z==="none"&&R==="none"?"独立部署使用 https:// Base URL 时,需要配置 HTTPS(或启用隧道由边缘终止 TLS)":""},[f?.mode,a.CLOUDFLARE_TUNNEL_TOKEN,a.SAKURA_TUNNEL_TOKEN,a.CSS_BASE_URL,R,Y,T,z]),O=g.useMemo(()=>S?"检测中...":M==="pass"?"✓ 可直连":M==="fail"?"✗ 不可直连":"? 未知",[S,M]);return h?u.jsx("div",{className:"p-8 text-foreground",children:"加载中..."}):u.jsxs("div",{className:"p-8 max-w-4xl",children:[u.jsx("h1",{className:"type-h1 mb-4",children:"设置"}),u.jsxs(Oi,{variant:"bordered",className:"mb-6",children:[u.jsx(_i,{children:u.jsx(Di,{children:"存储目录"})}),u.jsx(Mi,{className:"space-y-2",children:u.jsx(Rn,{value:a.CSS_ROOT_FILE_PATH||"./data",onChange:L=>I("CSS_ROOT_FILE_PATH",L.target.value)})})]}),u.jsxs(Oi,{variant:"bordered",className:"mb-6",children:[u.jsx(_i,{children:u.jsx(Di,{children:"访问地址"})}),u.jsxs(Mi,{className:"space-y-2",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsxs(So,{value:T,onValueChange:L=>I("XPOD_DEPLOY_MODE",L),children:[u.jsx(Ui,{className:"w-36 shrink-0",children:u.jsx(wo,{})}),u.jsxs(Hi,{children:[u.jsx(zt,{value:"local",children:"边缘部署"}),u.jsx(zt,{value:"standalone",children:"独立部署"})]})]}),Y?u.jsx("span",{className:"text-sm text-muted-foreground flex-1",children:f?.fqdn||"(等待分配)"}):u.jsx(Rn,{className:"flex-1",value:a.CSS_BASE_URL||"http://127.0.0.1:3000",onChange:L=>I("CSS_BASE_URL",L.target.value),placeholder:"https://your-domain.com"})]}),u.jsx("div",{className:"text-xs text-muted-foreground",children:T==="local"?"边缘部署:接入云端,自动获得域名、身份认证和HTTPS证书,数据保留在本地":"独立部署:完全独立运行,域名、身份认证和证书需自行配置"})]})]}),u.jsxs(Oi,{variant:"bordered",className:"mb-6",children:[u.jsx(_i,{className:"pb-2",children:u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx(Di,{children:"隧道供应商"}),u.jsxs("span",{className:"text-sm",children:["外网:",u.jsx("span",{className:$e("ml-1",M==="pass"?"text-green-600":M==="fail"?"text-red-600":"text-muted-foreground"),children:O})]})]})}),u.jsxs(Mi,{className:"space-y-2",children:[Y&&f?.mode==="tunnel"?u.jsx("div",{className:"text-xs text-destructive",children:"当前网络不可直连,请选择隧道供应商并填写 Token。"}):null,T==="standalone"?u.jsx("div",{className:"text-xs text-muted-foreground",children:"独立部署下仅当没有公网 IP 时才需要隧道,有公网 IP 可不配置。"}):null,u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsxs(So,{value:z,onValueChange:L=>I("XPOD_TUNNEL_PROVIDER",L),children:[u.jsx(Ui,{className:"w-36 shrink-0",children:u.jsx(wo,{})}),u.jsxs(Hi,{children:[u.jsx(zt,{value:"none",children:"不使用隧道"}),u.jsx(zt,{value:"cloudflare",children:"Cloudflare"}),u.jsx(zt,{value:"sakura_frp",children:"Sakura FRP"})]})]}),z==="cloudflare"&&u.jsx(Rn,{className:"flex-1",placeholder:"Cloudflare Tunnel Token",value:a.CLOUDFLARE_TUNNEL_TOKEN||"",onChange:L=>I("CLOUDFLARE_TUNNEL_TOKEN",L.target.value)}),z==="sakura_frp"&&u.jsx(Rn,{className:"flex-1",placeholder:"Sakura Tunnel Token",value:a.SAKURA_TUNNEL_TOKEN,onChange:L=>I("SAKURA_TUNNEL_TOKEN",L.target.value)})]})]})]}),T==="standalone"&&u.jsxs(Oi,{variant:"bordered",className:"mb-6",children:[u.jsx(_i,{children:u.jsx(Di,{children:"https证书"})}),u.jsx(Mi,{children:u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsxs(So,{value:R,onValueChange:L=>I("XPOD_HTTPS_MODE",L),children:[u.jsx(Ui,{className:"w-36 shrink-0",children:u.jsx(wo,{})}),u.jsxs(Hi,{children:[u.jsx(zt,{value:"none",children:"关闭"}),u.jsx(zt,{value:"acme",children:"自动申请 (ACME)"}),u.jsx(zt,{value:"manual",children:"手动证书"})]})]}),R==="manual"&&u.jsxs(u.Fragment,{children:[u.jsx(Rn,{className:"flex-1",placeholder:"证书路径 (PEM)",value:a.XPOD_HTTPS_CERT_PATH||"",onChange:L=>I("XPOD_HTTPS_CERT_PATH",L.target.value)}),u.jsx(Rn,{className:"flex-1",placeholder:"私钥路径 (PEM)",value:a.XPOD_HTTPS_KEY_PATH||"",onChange:L=>I("XPOD_HTTPS_KEY_PATH",L.target.value)})]})]})})]}),u.jsx("div",{className:"mb-6",children:u.jsx(wu,{variant:"ghost",size:"sm",onClick:()=>w(L=>!L),children:D?"收起高级设置":"展开高级设置"})}),D&&u.jsxs(Oi,{variant:"bordered",className:"mb-6",children:[u.jsx(_i,{children:u.jsx(Di,{children:"高级设置"})}),u.jsxs(Mi,{className:"space-y-4",children:[u.jsxs("div",{children:[u.jsx(po,{children:"端口"}),u.jsx(Rn,{value:a.CSS_PORT||"3000",onChange:L=>I("CSS_PORT",L.target.value)})]}),u.jsxs("div",{children:[u.jsx(po,{children:"SPARQL 存储"}),u.jsx(Rn,{value:a.CSS_SPARQL_ENDPOINT||"",onChange:L=>I("CSS_SPARQL_ENDPOINT",L.target.value)})]}),u.jsxs("div",{children:[u.jsx(po,{children:"身份数据库"}),u.jsx(Rn,{value:a.CSS_IDENTITY_DB_URL||"",onChange:L=>I("CSS_IDENTITY_DB_URL",L.target.value)})]}),u.jsxs("div",{children:[u.jsx(po,{children:"日志级别"}),u.jsxs(So,{value:a.CSS_LOGGING_LEVEL||"info",onValueChange:L=>I("CSS_LOGGING_LEVEL",L),children:[u.jsx(Ui,{className:"w-40 shrink-0",children:u.jsx(wo,{})}),u.jsxs(Hi,{children:[u.jsx(zt,{value:"error",children:"error"}),u.jsx(zt,{value:"warn",children:"warn"}),u.jsx(zt,{value:"info",children:"info"}),u.jsx(zt,{value:"debug",children:"debug"})]})]})]}),u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("input",{type:"checkbox",id:"showStackTrace",checked:a.CSS_SHOW_STACK_TRACE==="true",onChange:L=>I("CSS_SHOW_STACK_TRACE",L.target.checked?"true":"false"),className:"rounded border-input"}),u.jsx("label",{htmlFor:"showStackTrace",className:"text-sm text-foreground",children:"显示错误堆栈"})]})]})]}),u.jsxs("div",{className:"flex items-center gap-4",children:[u.jsx(wu,{onClick:()=>{se()},disabled:v||!!te,children:v?"保存中...":"保存配置"}),u.jsx(wu,{variant:"secondary",onClick:()=>{ce()},disabled:v||!!te,children:"保存并重启"})]}),(C||te)&&u.jsx("div",{className:$e("mt-4 text-sm",te||C&&C.includes("失败")?"text-destructive":"text-green-500"),children:C||te})]})}function cC(){const{isInitializing:a,initError:i}=$t();return a?u.jsx(Vv,{}):i?u.jsx($S,{message:i}):u.jsxs(Ub,{children:[u.jsx(Rt,{path:"/.account/",element:u.jsx(d1,{})}),u.jsx(Rt,{path:"/.account/about/",element:u.jsx(h1,{})}),u.jsx(Rt,{path:"/.account/account/",element:u.jsx(Mp,{allowOidcPending:!0,children:u.jsx(g1,{})})}),u.jsx(Rt,{path:"/.account/settings/",element:u.jsx(Mp,{allowOidcPending:!0,children:u.jsx(iC,{})})}),u.jsx(Rt,{path:"/chat/",element:u.jsx(A1,{})}),u.jsx(Rt,{path:"/.account/login/",element:u.jsx(S1,{})}),u.jsx(Rt,{path:"/.account/login/password/",element:u.jsx(Hu,{initialIsRegister:!1})}),u.jsx(Rt,{path:"/.account/login/password/register/",element:u.jsx(Hu,{initialIsRegister:!0})}),u.jsx(Rt,{path:"/.account/login/password/forgot/",element:u.jsx(x1,{})}),u.jsx(Rt,{path:"/.account/login/password/reset/",element:u.jsx(b1,{})}),u.jsx(Rt,{path:"/.account/oidc/consent/",element:u.jsx(y1,{})}),u.jsx(Rt,{path:"*",element:u.jsx(Dn,{to:"/.account/",replace:!0})})]})}function oC(){return u.jsx(oS,{children:u.jsx(xS,{children:u.jsx(cC,{})})})}try{const a=new URLSearchParams(location.search).get("provisionCode");a&&sessionStorage.setItem("provisionCode",a)}catch{}kx.createRoot(document.getElementById("root")).render(u.jsx(Pt.StrictMode,{children:u.jsx(oC,{})}));
51
+ `)},E2=0,Na=[];function C2(a){var i=g.useRef([]),r=g.useRef([0,0]),o=g.useRef(),f=g.useState(E2++)[0],d=g.useState(Dg)[0],h=g.useRef(a);g.useEffect(function(){h.current=a},[a]),g.useEffect(function(){if(a.inert){document.body.classList.add("block-interactivity-".concat(f));var w=FE([a.lockRef.current],(a.shards||[]).map(yv),!0).filter(Boolean);return w.forEach(function(A){return A.classList.add("allow-interactivity-".concat(f))}),function(){document.body.classList.remove("block-interactivity-".concat(f)),w.forEach(function(A){return A.classList.remove("allow-interactivity-".concat(f))})}}},[a.inert,a.lockRef.current,a.shards]);var p=g.useCallback(function(w,A){if("touches"in w&&w.touches.length===2||w.type==="wheel"&&w.ctrlKey)return!h.current.allowPinchZoom;var z=br(w),R=r.current,M="deltaX"in w?w.deltaX:R[0]-z[0],q="deltaY"in w?w.deltaY:R[1]-z[1],Q,P=w.target,Y=Math.abs(M)>Math.abs(q)?"h":"v";if("touches"in w&&Y==="h"&&P.type==="range")return!1;var ne=window.getSelection(),le=ne&&ne.anchorNode,se=le?le===P||le.contains(P):!1;if(se)return!1;var ue=vv(Y,P);if(!ue)return!0;if(ue?Q=Y:(Q=Y==="v"?"h":"v",ue=vv(Y,P)),!ue)return!1;if(!o.current&&"changedTouches"in w&&(M||q)&&(o.current=Q),!Q)return!0;var $=o.current||Q;return b2($,A,w,$==="h"?M:q)},[]),v=g.useCallback(function(w){var A=w;if(!(!Na.length||Na[Na.length-1]!==d)){var z="deltaY"in A?gv(A):br(A),R=i.current.filter(function(Q){return Q.name===A.type&&(Q.target===A.target||A.target===Q.shadowParent)&&S2(Q.delta,z)})[0];if(R&&R.should){A.cancelable&&A.preventDefault();return}if(!R){var M=(h.current.shards||[]).map(yv).filter(Boolean).filter(function(Q){return Q.contains(A.target)}),q=M.length>0?p(A,M[0]):!h.current.noIsolation;q&&A.cancelable&&A.preventDefault()}}},[]),y=g.useCallback(function(w,A,z,R){var M={name:w,delta:A,target:z,should:R,shadowParent:N2(z)};i.current.push(M),setTimeout(function(){i.current=i.current.filter(function(q){return q!==M})},1)},[]),S=g.useCallback(function(w){r.current=br(w),o.current=void 0},[]),b=g.useCallback(function(w){y(w.type,gv(w),w.target,p(w,a.lockRef.current))},[]),C=g.useCallback(function(w){y(w.type,br(w),w.target,p(w,a.lockRef.current))},[]);g.useEffect(function(){return Na.push(d),a.setCallbacks({onScrollCapture:b,onWheelCapture:b,onTouchMoveCapture:C}),document.addEventListener("wheel",v,Ca),document.addEventListener("touchmove",v,Ca),document.addEventListener("touchstart",S,Ca),function(){Na=Na.filter(function(w){return w!==d}),document.removeEventListener("wheel",v,Ca),document.removeEventListener("touchmove",v,Ca),document.removeEventListener("touchstart",S,Ca)}},[]);var j=a.removeScrollBar,D=a.inert;return g.createElement(g.Fragment,null,D?g.createElement(d,{styles:w2(f)}):null,j?g.createElement(h2,{noRelative:a.noRelative,gapMode:a.gapMode}):null)}function N2(a){for(var i=null;a!==null;)a instanceof ShadowRoot&&(i=a.host,a=a.host),a=a.parentNode;return i}const j2=e2(_g,C2);var Hg=g.forwardRef(function(a,i){return g.createElement(Kr,an({},a,{ref:i,sideCar:j2}))});Hg.classNames=Kr.classNames;var A2=[" ","Enter","ArrowUp","ArrowDown"],T2=[" ","Enter"],Hl="Select",[Qr,Zr,R2]=q1(Hl),[Ua]=of(Hl,[R2,yg]),Pr=yg(),[z2,pl]=Ua(Hl),[O2,_2]=Ua(Hl),Bg=a=>{const{__scopeSelect:i,children:r,open:o,defaultOpen:f,onOpenChange:d,value:h,defaultValue:p,onValueChange:v,dir:y,name:S,autoComplete:b,disabled:C,required:j,form:D}=a,w=Pr(i),[A,z]=g.useState(null),[R,M]=g.useState(null),[q,Q]=g.useState(!1),P=X1(y),[Y,ne]=hv({prop:o,defaultProp:f??!1,onChange:d,caller:Hl}),[le,se]=hv({prop:h,defaultProp:p,onChange:v,caller:Hl}),ue=g.useRef(null),$=A?D||!!A.closest("form"):!0,[te,ee]=g.useState(new Set),fe=Array.from(te).map(_=>_.props.value).join(";");return u.jsx(zE,{...w,children:u.jsxs(z2,{required:j,scope:i,trigger:A,onTriggerChange:z,valueNode:R,onValueNodeChange:M,valueNodeHasChildren:q,onValueNodeHasChildrenChange:Q,contentId:sf(),value:le,onValueChange:se,open:Y,onOpenChange:ne,dir:P,triggerPointerDownPosRef:ue,disabled:C,children:[u.jsx(Qr.Provider,{scope:i,children:u.jsx(O2,{scope:a.__scopeSelect,onNativeOptionAdd:g.useCallback(_=>{ee(L=>new Set(L).add(_))},[]),onNativeOptionRemove:g.useCallback(_=>{ee(L=>{const V=new Set(L);return V.delete(_),V})},[]),children:r})}),$?u.jsxs(iy,{"aria-hidden":!0,required:j,tabIndex:-1,name:S,autoComplete:b,value:le,onChange:_=>se(_.target.value),disabled:C,form:D,children:[le===void 0?u.jsx("option",{value:""}):null,Array.from(te)]},fe):null]})})};Bg.displayName=Hl;var kg="SelectTrigger",Yg=g.forwardRef((a,i)=>{const{__scopeSelect:r,disabled:o=!1,...f}=a,d=Pr(r),h=pl(kg,r),p=h.disabled||o,v=st(i,h.onTriggerChange),y=Zr(r),S=g.useRef("touch"),[b,C,j]=ry(w=>{const A=y().filter(M=>!M.disabled),z=A.find(M=>M.value===h.value),R=oy(A,w,z);R!==void 0&&h.onValueChange(R.value)}),D=w=>{p||(h.onOpenChange(!0),j()),w&&(h.triggerPointerDownPosRef.current={x:Math.round(w.pageX),y:Math.round(w.pageY)})};return u.jsx(OE,{asChild:!0,...d,children:u.jsx(Ke.button,{type:"button",role:"combobox","aria-controls":h.contentId,"aria-expanded":h.open,"aria-required":h.required,"aria-autocomplete":"none",dir:h.dir,"data-state":h.open?"open":"closed",disabled:p,"data-disabled":p?"":void 0,"data-placeholder":cy(h.value)?"":void 0,...f,ref:v,onClick:We(f.onClick,w=>{w.currentTarget.focus(),S.current!=="mouse"&&D(w)}),onPointerDown:We(f.onPointerDown,w=>{S.current=w.pointerType;const A=w.target;A.hasPointerCapture(w.pointerId)&&A.releasePointerCapture(w.pointerId),w.button===0&&w.ctrlKey===!1&&w.pointerType==="mouse"&&(D(w),w.preventDefault())}),onKeyDown:We(f.onKeyDown,w=>{const A=b.current!=="";!(w.ctrlKey||w.altKey||w.metaKey)&&w.key.length===1&&C(w.key),!(A&&w.key===" ")&&A2.includes(w.key)&&(D(),w.preventDefault())})})})});Yg.displayName=kg;var qg="SelectValue",Vg=g.forwardRef((a,i)=>{const{__scopeSelect:r,className:o,style:f,children:d,placeholder:h="",...p}=a,v=pl(qg,r),{onValueNodeHasChildrenChange:y}=v,S=d!==void 0,b=st(i,v.onValueNodeChange);return xt(()=>{y(S)},[y,S]),u.jsx(Ke.span,{...p,ref:b,style:{pointerEvents:"none"},children:cy(v.value)?u.jsx(u.Fragment,{children:h}):d})});Vg.displayName=qg;var D2="SelectIcon",Xg=g.forwardRef((a,i)=>{const{__scopeSelect:r,children:o,...f}=a;return u.jsx(Ke.span,{"aria-hidden":!0,...f,ref:i,children:o||"▼"})});Xg.displayName=D2;var M2="SelectPortal",Gg=a=>u.jsx(Ag,{asChild:!0,...a});Gg.displayName=M2;var Bl="SelectContent",Fg=g.forwardRef((a,i)=>{const r=pl(Bl,a.__scopeSelect),[o,f]=g.useState();if(xt(()=>{f(new DocumentFragment)},[]),!r.open){const d=o;return d?Ki.createPortal(u.jsx(Kg,{scope:a.__scopeSelect,children:u.jsx(Qr.Slot,{scope:a.__scopeSelect,children:u.jsx("div",{children:a.children})})}),d):null}return u.jsx(Qg,{...a,ref:i})});Fg.displayName=Bl;var Pt=10,[Kg,vl]=Ua(Bl),L2="SelectContentImpl",U2=_r("SelectContent.RemoveScroll"),Qg=g.forwardRef((a,i)=>{const{__scopeSelect:r,position:o="item-aligned",onCloseAutoFocus:f,onEscapeKeyDown:d,onPointerDownOutside:h,side:p,sideOffset:v,align:y,alignOffset:S,arrowPadding:b,collisionBoundary:C,collisionPadding:j,sticky:D,hideWhenDetached:w,avoidCollisions:A,...z}=a,R=pl(Bl,r),[M,q]=g.useState(null),[Q,P]=g.useState(null),Y=st(i,J=>q(J)),[ne,le]=g.useState(null),[se,ue]=g.useState(null),$=Zr(r),[te,ee]=g.useState(!1),fe=g.useRef(!1);g.useEffect(()=>{if(M)return GE(M)},[M]),ew();const _=g.useCallback(J=>{const[ve,...W]=$().map(Ne=>Ne.ref.current),[ie]=W.slice(-1),ge=document.activeElement;for(const Ne of J)if(Ne===ge||(Ne?.scrollIntoView({block:"nearest"}),Ne===ve&&Q&&(Q.scrollTop=0),Ne===ie&&Q&&(Q.scrollTop=Q.scrollHeight),Ne?.focus(),document.activeElement!==ge))return},[$,Q]),L=g.useCallback(()=>_([ne,M]),[_,ne,M]);g.useEffect(()=>{te&&L()},[te,L]);const{onOpenChange:V,triggerPointerDownPosRef:ae}=R;g.useEffect(()=>{if(M){let J={x:0,y:0};const ve=ie=>{J={x:Math.abs(Math.round(ie.pageX)-(ae.current?.x??0)),y:Math.abs(Math.round(ie.pageY)-(ae.current?.y??0))}},W=ie=>{J.x<=10&&J.y<=10?ie.preventDefault():M.contains(ie.target)||V(!1),document.removeEventListener("pointermove",ve),ae.current=null};return ae.current!==null&&(document.addEventListener("pointermove",ve),document.addEventListener("pointerup",W,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ve),document.removeEventListener("pointerup",W,{capture:!0})}}},[M,V,ae]),g.useEffect(()=>{const J=()=>V(!1);return window.addEventListener("blur",J),window.addEventListener("resize",J),()=>{window.removeEventListener("blur",J),window.removeEventListener("resize",J)}},[V]);const[pe,N]=ry(J=>{const ve=$().filter(ge=>!ge.disabled),W=ve.find(ge=>ge.ref.current===document.activeElement),ie=oy(ve,J,W);ie&&setTimeout(()=>ie.ref.current.focus())}),G=g.useCallback((J,ve,W)=>{const ie=!fe.current&&!W;(R.value!==void 0&&R.value===ve||ie)&&(le(J),ie&&(fe.current=!0))},[R.value]),Z=g.useCallback(()=>M?.focus(),[M]),I=g.useCallback((J,ve,W)=>{const ie=!fe.current&&!W;(R.value!==void 0&&R.value===ve||ie)&&ue(J)},[R.value]),re=o==="popper"?Qu:Zg,he=re===Qu?{side:p,sideOffset:v,align:y,alignOffset:S,arrowPadding:b,collisionBoundary:C,collisionPadding:j,sticky:D,hideWhenDetached:w,avoidCollisions:A}:{};return u.jsx(Kg,{scope:r,content:M,viewport:Q,onViewportChange:P,itemRefCallback:G,selectedItem:ne,onItemLeave:Z,itemTextRefCallback:I,focusSelectedItem:L,selectedItemText:se,position:o,isPositioned:te,searchRef:pe,children:u.jsx(Hg,{as:U2,allowPinchZoom:!0,children:u.jsx(lg,{asChild:!0,trapped:R.open,onMountAutoFocus:J=>{J.preventDefault()},onUnmountAutoFocus:We(f,J=>{R.trigger?.focus({preventScroll:!0}),J.preventDefault()}),children:u.jsx(tg,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:d,onPointerDownOutside:h,onFocusOutside:J=>J.preventDefault(),onDismiss:()=>R.onOpenChange(!1),children:u.jsx(re,{role:"listbox",id:R.contentId,"data-state":R.open?"open":"closed",dir:R.dir,onContextMenu:J=>J.preventDefault(),...z,...he,onPlaced:()=>ee(!0),ref:Y,style:{display:"flex",flexDirection:"column",outline:"none",...z.style},onKeyDown:We(z.onKeyDown,J=>{const ve=J.ctrlKey||J.altKey||J.metaKey;if(J.key==="Tab"&&J.preventDefault(),!ve&&J.key.length===1&&N(J.key),["ArrowUp","ArrowDown","Home","End"].includes(J.key)){let ie=$().filter(ge=>!ge.disabled).map(ge=>ge.ref.current);if(["ArrowUp","End"].includes(J.key)&&(ie=ie.slice().reverse()),["ArrowUp","ArrowDown"].includes(J.key)){const ge=J.target,Ne=ie.indexOf(ge);ie=ie.slice(Ne+1)}setTimeout(()=>_(ie)),J.preventDefault()}})})})})})})});Qg.displayName=L2;var H2="SelectItemAlignedPosition",Zg=g.forwardRef((a,i)=>{const{__scopeSelect:r,onPlaced:o,...f}=a,d=pl(Bl,r),h=vl(Bl,r),[p,v]=g.useState(null),[y,S]=g.useState(null),b=st(i,Y=>S(Y)),C=Zr(r),j=g.useRef(!1),D=g.useRef(!0),{viewport:w,selectedItem:A,selectedItemText:z,focusSelectedItem:R}=h,M=g.useCallback(()=>{if(d.trigger&&d.valueNode&&p&&y&&w&&A&&z){const Y=d.trigger.getBoundingClientRect(),ne=y.getBoundingClientRect(),le=d.valueNode.getBoundingClientRect(),se=z.getBoundingClientRect();if(d.dir!=="rtl"){const ge=se.left-ne.left,Ne=le.left-ge,Ye=Y.left-Ne,et=Y.width+Ye,dn=Math.max(et,ne.width),tt=window.innerWidth-Pt,kn=Qp(Ne,[Pt,Math.max(Pt,tt-dn)]);p.style.minWidth=et+"px",p.style.left=kn+"px"}else{const ge=ne.right-se.right,Ne=window.innerWidth-le.right-ge,Ye=window.innerWidth-Y.right-Ne,et=Y.width+Ye,dn=Math.max(et,ne.width),tt=window.innerWidth-Pt,kn=Qp(Ne,[Pt,Math.max(Pt,tt-dn)]);p.style.minWidth=et+"px",p.style.right=kn+"px"}const ue=C(),$=window.innerHeight-Pt*2,te=w.scrollHeight,ee=window.getComputedStyle(y),fe=parseInt(ee.borderTopWidth,10),_=parseInt(ee.paddingTop,10),L=parseInt(ee.borderBottomWidth,10),V=parseInt(ee.paddingBottom,10),ae=fe+_+te+V+L,pe=Math.min(A.offsetHeight*5,ae),N=window.getComputedStyle(w),G=parseInt(N.paddingTop,10),Z=parseInt(N.paddingBottom,10),I=Y.top+Y.height/2-Pt,re=$-I,he=A.offsetHeight/2,J=A.offsetTop+he,ve=fe+_+J,W=ae-ve;if(ve<=I){const ge=ue.length>0&&A===ue[ue.length-1].ref.current;p.style.bottom="0px";const Ne=y.clientHeight-w.offsetTop-w.offsetHeight,Ye=Math.max(re,he+(ge?Z:0)+Ne+L),et=ve+Ye;p.style.height=et+"px"}else{const ge=ue.length>0&&A===ue[0].ref.current;p.style.top="0px";const Ye=Math.max(I,fe+w.offsetTop+(ge?G:0)+he)+W;p.style.height=Ye+"px",w.scrollTop=ve-I+w.offsetTop}p.style.margin=`${Pt}px 0`,p.style.minHeight=pe+"px",p.style.maxHeight=$+"px",o?.(),requestAnimationFrame(()=>j.current=!0)}},[C,d.trigger,d.valueNode,p,y,w,A,z,d.dir,o]);xt(()=>M(),[M]);const[q,Q]=g.useState();xt(()=>{y&&Q(window.getComputedStyle(y).zIndex)},[y]);const P=g.useCallback(Y=>{Y&&D.current===!0&&(M(),R?.(),D.current=!1)},[M,R]);return u.jsx(k2,{scope:r,contentWrapper:p,shouldExpandOnScrollRef:j,onScrollButtonChange:P,children:u.jsx("div",{ref:v,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:q},children:u.jsx(Ke.div,{...f,ref:b,style:{boxSizing:"border-box",maxHeight:"100%",...f.style}})})})});Zg.displayName=H2;var B2="SelectPopperPosition",Qu=g.forwardRef((a,i)=>{const{__scopeSelect:r,align:o="start",collisionPadding:f=Pt,...d}=a,h=Pr(r);return u.jsx(_E,{...h,...d,ref:i,align:o,collisionPadding:f,style:{boxSizing:"border-box",...d.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Qu.displayName=B2;var[k2,yf]=Ua(Bl,{}),Zu="SelectViewport",Pg=g.forwardRef((a,i)=>{const{__scopeSelect:r,nonce:o,...f}=a,d=vl(Zu,r),h=yf(Zu,r),p=st(i,d.onViewportChange),v=g.useRef(0);return u.jsxs(u.Fragment,{children:[u.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),u.jsx(Qr.Slot,{scope:r,children:u.jsx(Ke.div,{"data-radix-select-viewport":"",role:"presentation",...f,ref:p,style:{position:"relative",flex:1,overflow:"hidden auto",...f.style},onScroll:We(f.onScroll,y=>{const S=y.currentTarget,{contentWrapper:b,shouldExpandOnScrollRef:C}=h;if(C?.current&&b){const j=Math.abs(v.current-S.scrollTop);if(j>0){const D=window.innerHeight-Pt*2,w=parseFloat(b.style.minHeight),A=parseFloat(b.style.height),z=Math.max(w,A);if(z<D){const R=z+j,M=Math.min(D,R),q=R-M;b.style.height=M+"px",b.style.bottom==="0px"&&(S.scrollTop=q>0?q:0,b.style.justifyContent="flex-end")}}}v.current=S.scrollTop})})})]})});Pg.displayName=Zu;var Jg="SelectGroup",[Y2,q2]=Ua(Jg),V2=g.forwardRef((a,i)=>{const{__scopeSelect:r,...o}=a,f=sf();return u.jsx(Y2,{scope:r,id:f,children:u.jsx(Ke.div,{role:"group","aria-labelledby":f,...o,ref:i})})});V2.displayName=Jg;var Wg="SelectLabel",Ig=g.forwardRef((a,i)=>{const{__scopeSelect:r,...o}=a,f=q2(Wg,r);return u.jsx(Ke.div,{id:f.id,...o,ref:i})});Ig.displayName=Wg;var Hr="SelectItem",[X2,$g]=Ua(Hr),ey=g.forwardRef((a,i)=>{const{__scopeSelect:r,value:o,disabled:f=!1,textValue:d,...h}=a,p=pl(Hr,r),v=vl(Hr,r),y=p.value===o,[S,b]=g.useState(d??""),[C,j]=g.useState(!1),D=st(i,R=>v.itemRefCallback?.(R,o,f)),w=sf(),A=g.useRef("touch"),z=()=>{f||(p.onValueChange(o),p.onOpenChange(!1))};if(o==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return u.jsx(X2,{scope:r,value:o,disabled:f,textId:w,isSelected:y,onItemTextChange:g.useCallback(R=>{b(M=>M||(R?.textContent??"").trim())},[]),children:u.jsx(Qr.ItemSlot,{scope:r,value:o,disabled:f,textValue:S,children:u.jsx(Ke.div,{role:"option","aria-labelledby":w,"data-highlighted":C?"":void 0,"aria-selected":y&&C,"data-state":y?"checked":"unchecked","aria-disabled":f||void 0,"data-disabled":f?"":void 0,tabIndex:f?void 0:-1,...h,ref:D,onFocus:We(h.onFocus,()=>j(!0)),onBlur:We(h.onBlur,()=>j(!1)),onClick:We(h.onClick,()=>{A.current!=="mouse"&&z()}),onPointerUp:We(h.onPointerUp,()=>{A.current==="mouse"&&z()}),onPointerDown:We(h.onPointerDown,R=>{A.current=R.pointerType}),onPointerMove:We(h.onPointerMove,R=>{A.current=R.pointerType,f?v.onItemLeave?.():A.current==="mouse"&&R.currentTarget.focus({preventScroll:!0})}),onPointerLeave:We(h.onPointerLeave,R=>{R.currentTarget===document.activeElement&&v.onItemLeave?.()}),onKeyDown:We(h.onKeyDown,R=>{v.searchRef?.current!==""&&R.key===" "||(T2.includes(R.key)&&z(),R.key===" "&&R.preventDefault())})})})})});ey.displayName=Hr;var Ui="SelectItemText",ty=g.forwardRef((a,i)=>{const{__scopeSelect:r,className:o,style:f,...d}=a,h=pl(Ui,r),p=vl(Ui,r),v=$g(Ui,r),y=_2(Ui,r),[S,b]=g.useState(null),C=st(i,z=>b(z),v.onItemTextChange,z=>p.itemTextRefCallback?.(z,v.value,v.disabled)),j=S?.textContent,D=g.useMemo(()=>u.jsx("option",{value:v.value,disabled:v.disabled,children:j},v.value),[v.disabled,v.value,j]),{onNativeOptionAdd:w,onNativeOptionRemove:A}=y;return xt(()=>(w(D),()=>A(D)),[w,A,D]),u.jsxs(u.Fragment,{children:[u.jsx(Ke.span,{id:v.textId,...d,ref:C}),v.isSelected&&h.valueNode&&!h.valueNodeHasChildren?Ki.createPortal(d.children,h.valueNode):null]})});ty.displayName=Ui;var ny="SelectItemIndicator",ly=g.forwardRef((a,i)=>{const{__scopeSelect:r,...o}=a;return $g(ny,r).isSelected?u.jsx(Ke.span,{"aria-hidden":!0,...o,ref:i}):null});ly.displayName=ny;var Pu="SelectScrollUpButton",G2=g.forwardRef((a,i)=>{const r=vl(Pu,a.__scopeSelect),o=yf(Pu,a.__scopeSelect),[f,d]=g.useState(!1),h=st(i,o.onScrollButtonChange);return xt(()=>{if(r.viewport&&r.isPositioned){let p=function(){const y=v.scrollTop>0;d(y)};const v=r.viewport;return p(),v.addEventListener("scroll",p),()=>v.removeEventListener("scroll",p)}},[r.viewport,r.isPositioned]),f?u.jsx(ay,{...a,ref:h,onAutoScroll:()=>{const{viewport:p,selectedItem:v}=r;p&&v&&(p.scrollTop=p.scrollTop-v.offsetHeight)}}):null});G2.displayName=Pu;var Ju="SelectScrollDownButton",F2=g.forwardRef((a,i)=>{const r=vl(Ju,a.__scopeSelect),o=yf(Ju,a.__scopeSelect),[f,d]=g.useState(!1),h=st(i,o.onScrollButtonChange);return xt(()=>{if(r.viewport&&r.isPositioned){let p=function(){const y=v.scrollHeight-v.clientHeight,S=Math.ceil(v.scrollTop)<y;d(S)};const v=r.viewport;return p(),v.addEventListener("scroll",p),()=>v.removeEventListener("scroll",p)}},[r.viewport,r.isPositioned]),f?u.jsx(ay,{...a,ref:h,onAutoScroll:()=>{const{viewport:p,selectedItem:v}=r;p&&v&&(p.scrollTop=p.scrollTop+v.offsetHeight)}}):null});F2.displayName=Ju;var ay=g.forwardRef((a,i)=>{const{__scopeSelect:r,onAutoScroll:o,...f}=a,d=vl("SelectScrollButton",r),h=g.useRef(null),p=Zr(r),v=g.useCallback(()=>{h.current!==null&&(window.clearInterval(h.current),h.current=null)},[]);return g.useEffect(()=>()=>v(),[v]),xt(()=>{p().find(S=>S.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[p]),u.jsx(Ke.div,{"aria-hidden":!0,...f,ref:i,style:{flexShrink:0,...f.style},onPointerDown:We(f.onPointerDown,()=>{h.current===null&&(h.current=window.setInterval(o,50))}),onPointerMove:We(f.onPointerMove,()=>{d.onItemLeave?.(),h.current===null&&(h.current=window.setInterval(o,50))}),onPointerLeave:We(f.onPointerLeave,()=>{v()})})}),K2="SelectSeparator",Q2=g.forwardRef((a,i)=>{const{__scopeSelect:r,...o}=a;return u.jsx(Ke.div,{"aria-hidden":!0,...o,ref:i})});Q2.displayName=K2;var Wu="SelectArrow",Z2=g.forwardRef((a,i)=>{const{__scopeSelect:r,...o}=a,f=Pr(r),d=pl(Wu,r),h=vl(Wu,r);return d.open&&h.position==="popper"?u.jsx(DE,{...f,...o,ref:i}):null});Z2.displayName=Wu;var P2="SelectBubbleInput",iy=g.forwardRef(({__scopeSelect:a,value:i,...r},o)=>{const f=g.useRef(null),d=st(o,f),h=BE(i);return g.useEffect(()=>{const p=f.current;if(!p)return;const v=window.HTMLSelectElement.prototype,S=Object.getOwnPropertyDescriptor(v,"value").set;if(h!==i&&S){const b=new Event("change",{bubbles:!0});S.call(p,i),p.dispatchEvent(b)}},[h,i]),u.jsx(Ke.select,{...r,style:{...Tg,...r.style},ref:d,defaultValue:i})});iy.displayName=P2;function cy(a){return a===""||a===void 0}function ry(a){const i=Ll(a),r=g.useRef(""),o=g.useRef(0),f=g.useCallback(h=>{const p=r.current+h;i(p),(function v(y){r.current=y,window.clearTimeout(o.current),y!==""&&(o.current=window.setTimeout(()=>v(""),1e3))})(p)},[i]),d=g.useCallback(()=>{r.current="",window.clearTimeout(o.current)},[]);return g.useEffect(()=>()=>window.clearTimeout(o.current),[]),[r,f,d]}function oy(a,i,r){const f=i.length>1&&Array.from(i).every(y=>y===i[0])?i[0]:i,d=r?a.indexOf(r):-1;let h=J2(a,Math.max(d,0));f.length===1&&(h=h.filter(y=>y!==r));const v=h.find(y=>y.textValue.toLowerCase().startsWith(f.toLowerCase()));return v!==r?v:void 0}function J2(a,i){return a.map((r,o)=>a[(i+o)%a.length])}var W2=Bg,sy=Yg,I2=Vg,$2=Xg,eC=Gg,uy=Fg,tC=Pg,fy=Ig,dy=ey,nC=ty,lC=ly;const Sr=W2,wr=I2,Hi=g.forwardRef(({className:a,children:i,...r},o)=>u.jsxs(sy,{ref:o,className:Ie("flex h-9 items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background","placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-50",a),...r,children:[i,u.jsx($2,{asChild:!0,children:u.jsx(Xv,{className:"h-4 w-4 opacity-50"})})]}));Hi.displayName=sy.displayName;const Bi=g.forwardRef(({className:a,children:i,position:r="popper",...o},f)=>u.jsx(eC,{children:u.jsx(uy,{ref:f,className:Ie("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2","data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",a),position:r,...o,children:u.jsx(tC,{className:Ie("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:i})})}));Bi.displayName=uy.displayName;const aC=g.forwardRef(({className:a,...i},r)=>u.jsx(fy,{ref:r,className:Ie("px-2 py-1.5 text-sm font-semibold",a),...i}));aC.displayName=fy.displayName;const Ot=g.forwardRef(({className:a,children:i,...r},o)=>u.jsxs(dy,{ref:o,className:Ie("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none","focus:bg-accent focus:text-accent-foreground","data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),...r,children:[u.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:u.jsx(lC,{children:u.jsx(_n,{className:"h-4 w-4"})})}),u.jsx(nC,{children:i})]}));Ot.displayName=dy.displayName;const Pi="/api/admin";async function iC(){try{const a=await fetch(`${Pi}/config`);if(a.ok)return await a.json()}catch(a){console.error("Failed to get admin config:",a)}return null}async function cC(a){try{const i=a?"?baseUrl="+encodeURIComponent(a):"",r=await fetch(Pi+"/public-ip"+i);if(r.ok)return await r.json()}catch(i){console.error("Failed to get public ip check:",i)}return null}async function rC(a){try{return(await fetch(`${Pi}/config`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({env:a})})).ok}catch(i){return console.error("Failed to update admin config:",i),!1}}async function oC(){try{return(await fetch(`${Pi}/restart`,{method:"POST"})).ok}catch(a){return console.error("Failed to trigger restart:",a),!1}}async function sC(){try{const a=await fetch(`${Pi}/ddns`);if(a.ok)return await a.json()}catch(a){console.error("Failed to get ddns status:",a)}return null}const uC=["XPOD_DEPLOY_MODE","CSS_ROOT_FILE_PATH","CSS_BASE_URL","XPOD_TUNNEL_PROVIDER","CLOUDFLARE_TUNNEL_TOKEN","SAKURA_TUNNEL_TOKEN","XPOD_HTTPS_MODE","XPOD_HTTPS_CERT_PATH","XPOD_HTTPS_KEY_PATH","CSS_PORT","CSS_SPARQL_ENDPOINT","CSS_IDENTITY_DB_URL","CSS_LOGGING_LEVEL","CSS_SHOW_STACK_TRACE"];function fC(){const[a,i]=g.useState({}),[r,o]=g.useState(null),[f,d]=g.useState(null),[h,p]=g.useState(!0),[v,y]=g.useState(!1),[S,b]=g.useState(!1),[C,j]=g.useState(""),[D,w]=g.useState(!1),A=a.XPOD_DEPLOY_MODE==="standalone"?"standalone":"local",z=["none","cloudflare","sakura_frp"].includes(a.XPOD_TUNNEL_PROVIDER)?a.XPOD_TUNNEL_PROVIDER:"none",R=["none","acme","manual"].includes(a.XPOD_HTTPS_MODE)?a.XPOD_HTTPS_MODE:"none",M=r?.status??"unknown",q=A==="local",P=!!a.XPOD_CLOUD_API_ENDPOINT,Y=q&&P;g.useEffect(()=>{le()},[]),g.useEffect(()=>{h||se(a.CSS_BASE_URL)},[a.CSS_BASE_URL,A,h]),g.useEffect(()=>{h||(Y?ne():d(null))},[Y,h]);const ne=async()=>{try{const L=await sC();d(L)}catch(L){console.error("Failed to load ddns status:",L),d(null)}},le=async()=>{try{const L=await iC();L&&i({...L.env})}catch(L){console.error("Failed to load config:",L)}finally{p(!1)}},se=async L=>{b(!0);try{const V=await cC(L);o(V)}catch(V){console.error("Failed to refresh public ip check:",V),o(null)}finally{b(!1)}},ue=async()=>{if(fe)return j(fe),!1;y(!0),j("");try{const L={};for(const ae of uC)ae in a&&(L[ae]=a[ae]);const V=await rC(L);return j(V?"配置已保存,需要重启服务生效":"保存失败"),!!V}catch{return j("保存失败"),!1}finally{y(!1)}},$=async()=>{j("正在重启服务..."),await oC()?(j("重启信号已发送,请稍候..."),setTimeout(()=>window.location.reload(),3e3)):j("重启失败")},te=async()=>{await ue()&&await $()},ee=(L,V)=>{i(ae=>({...ae,[L]:V}))},fe=g.useMemo(()=>{if(z==="cloudflare"&&!a.CLOUDFLARE_TUNNEL_TOKEN)return"请填写 Cloudflare Tunnel Token";if(z==="sakura_frp"&&!a.SAKURA_TUNNEL_TOKEN)return"请填写 Sakura Tunnel Token";if(Y&&f?.mode==="tunnel"&&z==="none")return"当前网络不可直连,必须启用隧道(选择供应商并填写 Token)";const V=(a.CSS_BASE_URL||"").trim().startsWith("https://");return!Y&&V&&z==="none"&&R==="none"?"独立部署使用 https:// Base URL 时,需要配置 HTTPS(或启用隧道由边缘终止 TLS)":""},[f?.mode,a.CLOUDFLARE_TUNNEL_TOKEN,a.SAKURA_TUNNEL_TOKEN,a.CSS_BASE_URL,R,Y,A,z]),_=g.useMemo(()=>S?"检测中...":M==="pass"?"✓ 可直连":M==="fail"?"✗ 不可直连":"? 未知",[S,M]);return h?u.jsx("div",{className:"p-8 text-foreground",children:"加载中..."}):u.jsxs("div",{className:"p-8 max-w-4xl",children:[u.jsx("h1",{className:"type-h1 mb-4",children:"设置"}),u.jsxs(_i,{variant:"bordered",className:"mb-6",children:[u.jsx(Di,{children:u.jsx(Mi,{children:"存储目录"})}),u.jsx(Li,{className:"space-y-2",children:u.jsx(On,{value:a.CSS_ROOT_FILE_PATH||"./data",onChange:L=>ee("CSS_ROOT_FILE_PATH",L.target.value)})})]}),u.jsxs(_i,{variant:"bordered",className:"mb-6",children:[u.jsx(Di,{children:u.jsx(Mi,{children:"访问地址"})}),u.jsxs(Li,{className:"space-y-2",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsxs(Sr,{value:A,onValueChange:L=>ee("XPOD_DEPLOY_MODE",L),children:[u.jsx(Hi,{className:"w-36 shrink-0",children:u.jsx(wr,{})}),u.jsxs(Bi,{children:[u.jsx(Ot,{value:"local",children:"边缘部署"}),u.jsx(Ot,{value:"standalone",children:"独立部署"})]})]}),Y?u.jsx("span",{className:"text-sm text-muted-foreground flex-1",children:f?.fqdn||"(等待分配)"}):u.jsx(On,{className:"flex-1",value:a.CSS_BASE_URL||"http://127.0.0.1:3000",onChange:L=>ee("CSS_BASE_URL",L.target.value),placeholder:"https://your-domain.com"})]}),u.jsx("div",{className:"text-xs text-muted-foreground",children:A==="local"?"边缘部署:接入云端,自动获得域名、身份认证和HTTPS证书,数据保留在本地":"独立部署:完全独立运行,域名、身份认证和证书需自行配置"})]})]}),u.jsxs(_i,{variant:"bordered",className:"mb-6",children:[u.jsx(Di,{className:"pb-2",children:u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx(Mi,{children:"隧道供应商"}),u.jsxs("span",{className:"text-sm",children:["外网:",u.jsx("span",{className:Ie("ml-1",M==="pass"?"text-green-600":M==="fail"?"text-red-600":"text-muted-foreground"),children:_})]})]})}),u.jsxs(Li,{className:"space-y-2",children:[Y&&f?.mode==="tunnel"?u.jsx("div",{className:"text-xs text-destructive",children:"当前网络不可直连,请选择隧道供应商并填写 Token。"}):null,A==="standalone"?u.jsx("div",{className:"text-xs text-muted-foreground",children:"独立部署下仅当没有公网 IP 时才需要隧道,有公网 IP 可不配置。"}):null,u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsxs(Sr,{value:z,onValueChange:L=>ee("XPOD_TUNNEL_PROVIDER",L),children:[u.jsx(Hi,{className:"w-36 shrink-0",children:u.jsx(wr,{})}),u.jsxs(Bi,{children:[u.jsx(Ot,{value:"none",children:"不使用隧道"}),u.jsx(Ot,{value:"cloudflare",children:"Cloudflare"}),u.jsx(Ot,{value:"sakura_frp",children:"Sakura FRP"})]})]}),z==="cloudflare"&&u.jsx(On,{className:"flex-1",placeholder:"Cloudflare Tunnel Token",value:a.CLOUDFLARE_TUNNEL_TOKEN||"",onChange:L=>ee("CLOUDFLARE_TUNNEL_TOKEN",L.target.value)}),z==="sakura_frp"&&u.jsx(On,{className:"flex-1",placeholder:"Sakura Tunnel Token",value:a.SAKURA_TUNNEL_TOKEN,onChange:L=>ee("SAKURA_TUNNEL_TOKEN",L.target.value)})]})]})]}),A==="standalone"&&u.jsxs(_i,{variant:"bordered",className:"mb-6",children:[u.jsx(Di,{children:u.jsx(Mi,{children:"https证书"})}),u.jsx(Li,{children:u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsxs(Sr,{value:R,onValueChange:L=>ee("XPOD_HTTPS_MODE",L),children:[u.jsx(Hi,{className:"w-36 shrink-0",children:u.jsx(wr,{})}),u.jsxs(Bi,{children:[u.jsx(Ot,{value:"none",children:"关闭"}),u.jsx(Ot,{value:"acme",children:"自动申请 (ACME)"}),u.jsx(Ot,{value:"manual",children:"手动证书"})]})]}),R==="manual"&&u.jsxs(u.Fragment,{children:[u.jsx(On,{className:"flex-1",placeholder:"证书路径 (PEM)",value:a.XPOD_HTTPS_CERT_PATH||"",onChange:L=>ee("XPOD_HTTPS_CERT_PATH",L.target.value)}),u.jsx(On,{className:"flex-1",placeholder:"私钥路径 (PEM)",value:a.XPOD_HTTPS_KEY_PATH||"",onChange:L=>ee("XPOD_HTTPS_KEY_PATH",L.target.value)})]})]})})]}),u.jsx("div",{className:"mb-6",children:u.jsx(Cu,{variant:"ghost",size:"sm",onClick:()=>w(L=>!L),children:D?"收起高级设置":"展开高级设置"})}),D&&u.jsxs(_i,{variant:"bordered",className:"mb-6",children:[u.jsx(Di,{children:u.jsx(Mi,{children:"高级设置"})}),u.jsxs(Li,{className:"space-y-4",children:[u.jsxs("div",{children:[u.jsx(pr,{children:"端口"}),u.jsx(On,{value:a.CSS_PORT||"3000",onChange:L=>ee("CSS_PORT",L.target.value)})]}),u.jsxs("div",{children:[u.jsx(pr,{children:"SPARQL 存储"}),u.jsx(On,{value:a.CSS_SPARQL_ENDPOINT||"",onChange:L=>ee("CSS_SPARQL_ENDPOINT",L.target.value)})]}),u.jsxs("div",{children:[u.jsx(pr,{children:"身份数据库"}),u.jsx(On,{value:a.CSS_IDENTITY_DB_URL||"",onChange:L=>ee("CSS_IDENTITY_DB_URL",L.target.value)})]}),u.jsxs("div",{children:[u.jsx(pr,{children:"日志级别"}),u.jsxs(Sr,{value:a.CSS_LOGGING_LEVEL||"info",onValueChange:L=>ee("CSS_LOGGING_LEVEL",L),children:[u.jsx(Hi,{className:"w-40 shrink-0",children:u.jsx(wr,{})}),u.jsxs(Bi,{children:[u.jsx(Ot,{value:"error",children:"error"}),u.jsx(Ot,{value:"warn",children:"warn"}),u.jsx(Ot,{value:"info",children:"info"}),u.jsx(Ot,{value:"debug",children:"debug"})]})]})]}),u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("input",{type:"checkbox",id:"showStackTrace",checked:a.CSS_SHOW_STACK_TRACE==="true",onChange:L=>ee("CSS_SHOW_STACK_TRACE",L.target.checked?"true":"false"),className:"rounded border-input"}),u.jsx("label",{htmlFor:"showStackTrace",className:"text-sm text-foreground",children:"显示错误堆栈"})]})]})]}),u.jsxs("div",{className:"flex items-center gap-4",children:[u.jsx(Cu,{onClick:()=>{ue()},disabled:v||!!fe,children:v?"保存中...":"保存配置"}),u.jsx(Cu,{variant:"secondary",onClick:()=>{te()},disabled:v||!!fe,children:"保存并重启"})]}),(C||fe)&&u.jsx("div",{className:Ie("mt-4 text-sm",fe||C&&C.includes("失败")?"text-destructive":"text-green-500"),children:C||fe})]})}function dC(){const{isInitializing:a,initError:i}=$t();return a?u.jsx(Zv,{}):i?u.jsx(l1,{message:i}):u.jsxs(qb,{children:[u.jsx(zt,{path:"/.account/",element:u.jsx(y1,{})}),u.jsx(zt,{path:"/.account/about/",element:u.jsx(x1,{})}),u.jsx(zt,{path:"/.account/account/",element:u.jsx(Bp,{allowOidcPending:!0,children:u.jsx(E1,{})})}),u.jsx(zt,{path:"/.account/settings/",element:u.jsx(Bp,{allowOidcPending:!0,children:u.jsx(fC,{})})}),u.jsx(zt,{path:"/chat/",element:u.jsx(M1,{})}),u.jsx(zt,{path:"/.account/login/",element:u.jsx(A1,{})}),u.jsx(zt,{path:"/.account/login/password/",element:u.jsx(Yu,{initialIsRegister:!1})}),u.jsx(zt,{path:"/.account/login/password/register/",element:u.jsx(Yu,{initialIsRegister:!0})}),u.jsx(zt,{path:"/.account/login/password/forgot/",element:u.jsx(N1,{})}),u.jsx(zt,{path:"/.account/login/password/reset/",element:u.jsx(j1,{})}),u.jsx(zt,{path:"/.account/oidc/consent/",element:u.jsx(C1,{})}),u.jsx(zt,{path:"*",element:u.jsx(Ln,{to:"/.account/",replace:!0})})]})}function hC(){return u.jsx(dS,{children:u.jsx(CS,{children:u.jsx(dC,{})})})}try{const a=new URLSearchParams(location.search).get("provisionCode");a&&sessionStorage.setItem("provisionCode",a)}catch{}Gx.createRoot(document.getElementById("root")).render(u.jsx(Jt.StrictMode,{children:u.jsx(hC,{})}));