Files
study-tool/static/assets/index-Dfv5RNeD.js
T
study-tool 1a3347f7f9 feat: 添加账号支持选择学习平台
账号新增 platform 字段,登录/刷新课程/发现课程按平台分发;同时把 JS 脚本收进 script/(目录规范调整)。
2026-10-30 01:13:47 +08:00

229 lines
284 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
var Nh=Object.defineProperty;var Eh=(r,N,E)=>N in r?Nh(r,N,{enumerable:!0,configurable:!0,writable:!0,value:E}):r[N]=E;var Li=(r,N,E)=>Eh(r,typeof N!="symbol"?N+"":N,E);(function(){const N=document.createElement("link").relList;if(N&&N.supports&&N.supports("modulepreload"))return;for(const M of document.querySelectorAll('link[rel="modulepreload"]'))d(M);new MutationObserver(M=>{for(const w of M)if(w.type==="childList")for(const j of w.addedNodes)j.tagName==="LINK"&&j.rel==="modulepreload"&&d(j)}).observe(document,{childList:!0,subtree:!0});function E(M){const w={};return M.integrity&&(w.integrity=M.integrity),M.referrerPolicy&&(w.referrerPolicy=M.referrerPolicy),M.crossOrigin==="use-credentials"?w.credentials="include":M.crossOrigin==="anonymous"?w.credentials="omit":w.credentials="same-origin",w}function d(M){if(M.ep)return;M.ep=!0;const w=E(M);fetch(M.href,w)}})();var As={exports:{}},dn={};/**
* @license React
* react-jsx-runtime.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var sm;function zh(){if(sm)return dn;sm=1;var r=Symbol.for("react.transitional.element"),N=Symbol.for("react.fragment");function E(d,M,w){var j=null;if(w!==void 0&&(j=""+w),M.key!==void 0&&(j=""+M.key),"key"in M){w={};for(var ut in M)ut!=="key"&&(w[ut]=M[ut])}else w=M;return M=w.ref,{$$typeof:r,type:d,key:j,ref:M!==void 0?M:null,props:w}}return dn.Fragment=N,dn.jsx=E,dn.jsxs=E,dn}var rm;function _h(){return rm||(rm=1,As.exports=zh()),As.exports}var f=_h(),js={exports:{}},nt={};/**
* @license React
* react.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var om;function Oh(){if(om)return nt;om=1;var r=Symbol.for("react.transitional.element"),N=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),d=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),w=Symbol.for("react.consumer"),j=Symbol.for("react.context"),ut=Symbol.for("react.forward_ref"),W=Symbol.for("react.suspense"),V=Symbol.for("react.memo"),q=Symbol.for("react.lazy"),S=Symbol.for("react.activity"),Z=Symbol.for("react.view_transition"),rt=Symbol.iterator;function Xt(o){return o===null||typeof o!="object"?null:(o=rt&&o[rt]||o["@@iterator"],typeof o=="function"?o:null)}var et={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},D=Object.assign,dt={};function tt(o,T,Y){this.props=o,this.context=T,this.refs=dt,this.updater=Y||et}tt.prototype.isReactComponent={},tt.prototype.setState=function(o,T){if(typeof o!="object"&&typeof o!="function"&&o!=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,o,T,"setState")},tt.prototype.forceUpdate=function(o){this.updater.enqueueForceUpdate(this,o,"forceUpdate")};function Tt(){}Tt.prototype=tt.prototype;function Ft(o,T,Y){this.props=o,this.context=T,this.refs=dt,this.updater=Y||et}var Mt=Ft.prototype=new Tt;Mt.constructor=Ft,D(Mt,tt.prototype),Mt.isPureReactComponent=!0;var Ht=Array.isArray;function F(){}var C={H:null,A:null,T:null,S:null},At=Object.prototype.hasOwnProperty;function zt(o,T,Y){var Q=Y.ref;return{$$typeof:r,type:o,key:T,ref:Q!==void 0?Q:null,props:Y}}function Nt(o,T){return zt(o.type,T,o.props)}function Ct(o){return typeof o=="object"&&o!==null&&o.$$typeof===r}function Wt(o){var T={"=":"=0",":":"=2"};return"$"+o.replace(/[=:]/g,function(Y){return T[Y]})}var Lt=/\/+/g;function Bt(o,T){return typeof o=="object"&&o!==null&&o.key!=null?Wt(""+o.key):T.toString(36)}function H(o){switch(o.status){case"fulfilled":return o.value;case"rejected":throw o.reason;default:switch(typeof o.status=="string"?o.then(F,F):(o.status="pending",o.then(function(T){o.status==="pending"&&(o.status="fulfilled",o.value=T)},function(T){o.status==="pending"&&(o.status="rejected",o.reason=T)})),o.status){case"fulfilled":return o.value;case"rejected":throw o.reason}}throw o}function k(o,T,Y,Q,mt){var st=typeof o;(st==="undefined"||st==="boolean")&&(o=null);var vt=!1;if(o===null)vt=!0;else switch(st){case"bigint":case"string":case"number":vt=!0;break;case"object":switch(o.$$typeof){case r:case N:vt=!0;break;case q:return vt=o._init,k(vt(o._payload),T,Y,Q,mt)}}if(vt)return mt=mt(o),vt=Q===""?"."+Bt(o,0):Q,Ht(mt)?(Y="",vt!=null&&(Y=vt.replace(Lt,"$&/")+"/"),k(mt,T,Y,"",function(A){return A})):mt!=null&&(Ct(mt)&&(mt=Nt(mt,Y+(mt.key==null||o&&o.key===mt.key?"":(""+mt.key).replace(Lt,"$&/")+"/")+vt)),T.push(mt)),1;vt=0;var y=Q===""?".":Q+":";if(Ht(o))for(var O=0;O<o.length;O++)Q=o[O],st=y+Bt(Q,O),vt+=k(Q,T,Y,st,mt);else if(O=Xt(o),typeof O=="function")for(o=O.call(o),O=0;!(Q=o.next()).done;)Q=Q.value,st=y+Bt(Q,O++),vt+=k(Q,T,Y,st,mt);else if(st==="object"){if(typeof o.then=="function")return k(H(o),T,Y,Q,mt);throw T=String(o),Error("Objects are not valid as a React child (found: "+(T==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":T)+"). If you meant to render a collection of children, use an array instead.")}return vt}function I(o,T,Y){if(o==null)return o;var Q=[],mt=0;return k(o,Q,"","",function(st){return T.call(Y,st,mt++)}),Q}function pt(o){if(o._status===-1){var T=o._result,Y=T();Y.then(function(Q){(o._status===0||o._status===-1)&&(o._status=1,o._result=Q,Y.status===void 0&&(Y.status="fulfilled",Y.value=Q))},function(Q){(o._status===0||o._status===-1)&&(o._status=2,o._result=Q,Y.status===void 0&&(Y.status="rejected",Y.reason=Q))}),o._status===-1&&(o._status=0,o._result=Y)}if(o._status===1)return o._result.default;throw o._result}var B=typeof reportError=="function"?reportError:function(o){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var T=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof o=="object"&&o!==null&&typeof o.message=="string"?String(o.message):String(o),error:o});if(!window.dispatchEvent(T))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",o);return}console.error(o)};function at(o){var T=C.T,Y={};Y.types=T!==null?T.types:null,C.T=Y;try{var Q=o(),mt=C.S;mt!==null&&mt(Y,Q),typeof Q=="object"&&Q!==null&&typeof Q.then=="function"&&Q.then(F,B)}catch(st){B(st)}finally{T!==null&&Y.types!==null&&(T.types=Y.types),C.T=T}}function it(o){var T=C.T;if(T!==null){var Y=T.types;Y===null?T.types=[o]:Y.indexOf(o)===-1&&Y.push(o)}else at(it.bind(null,o))}var wt={map:I,forEach:function(o,T,Y){I(o,function(){T.apply(this,arguments)},Y)},count:function(o){var T=0;return I(o,function(){T++}),T},toArray:function(o){return I(o,function(T){return T})||[]},only:function(o){if(!Ct(o))throw Error("React.Children.only expected to receive a single React element child.");return o}};return nt.Activity=S,nt.Children=wt,nt.Component=tt,nt.Fragment=E,nt.Profiler=M,nt.PureComponent=Ft,nt.StrictMode=d,nt.Suspense=W,nt.ViewTransition=Z,nt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=C,nt.__COMPILER_RUNTIME={__proto__:null,c:function(o){return C.H.useMemoCache(o)}},nt.addTransitionType=it,nt.cache=function(o){return function(){return o.apply(null,arguments)}},nt.cacheSignal=function(){return null},nt.cloneElement=function(o,T,Y){if(o==null)throw Error("The argument must be a React element, but you passed "+o+".");var Q=D({},o.props),mt=o.key;if(T!=null)for(st in T.key!==void 0&&(mt=""+T.key),T)!At.call(T,st)||st==="key"||st==="__self"||st==="__source"||st==="ref"&&T.ref===void 0||(Q[st]=T[st]);var st=arguments.length-2;if(st===1)Q.children=Y;else if(1<st){for(var vt=Array(st),y=0;y<st;y++)vt[y]=arguments[y+2];Q.children=vt}return zt(o.type,mt,Q)},nt.createContext=function(o){return o={$$typeof:j,_currentValue:o,_currentValue2:o,_threadCount:0,Provider:null,Consumer:null},o.Provider=o,o.Consumer={$$typeof:w,_context:o},o},nt.createElement=function(o,T,Y){var Q,mt={},st=null;if(T!=null)for(Q in T.key!==void 0&&(st=""+T.key),T)At.call(T,Q)&&Q!=="key"&&Q!=="__self"&&Q!=="__source"&&(mt[Q]=T[Q]);var vt=arguments.length-2;if(vt===1)mt.children=Y;else if(1<vt){for(var y=Array(vt),O=0;O<vt;O++)y[O]=arguments[O+2];mt.children=y}if(o&&o.defaultProps)for(Q in vt=o.defaultProps,vt)mt[Q]===void 0&&(mt[Q]=vt[Q]);return zt(o,st,mt)},nt.createRef=function(){return{current:null}},nt.forwardRef=function(o){return{$$typeof:ut,render:o}},nt.isValidElement=Ct,nt.lazy=function(o){return{$$typeof:q,_payload:{_status:-1,_result:o},_init:pt}},nt.memo=function(o,T){return{$$typeof:V,type:o,compare:T===void 0?null:T}},nt.startTransition=at,nt.unstable_useCacheRefresh=function(){return C.H.useCacheRefresh()},nt.use=function(o){return C.H.use(o)},nt.useActionState=function(o,T,Y){return C.H.useActionState(o,T,Y)},nt.useCallback=function(o,T){return C.H.useCallback(o,T)},nt.useContext=function(o){return C.H.useContext(o)},nt.useDebugValue=function(){},nt.useDeferredValue=function(o,T){return C.H.useDeferredValue(o,T)},nt.useEffect=function(o,T){return C.H.useEffect(o,T)},nt.useEffectEvent=function(o){return C.H.useEffectEvent(o)},nt.useId=function(){return C.H.useId()},nt.useImperativeHandle=function(o,T,Y){return C.H.useImperativeHandle(o,T,Y)},nt.useInsertionEffect=function(o,T){return C.H.useInsertionEffect(o,T)},nt.useLayoutEffect=function(o,T){return C.H.useLayoutEffect(o,T)},nt.useMemo=function(o,T){return C.H.useMemo(o,T)},nt.useOptimistic=function(o,T){return C.H.useOptimistic(o,T)},nt.useReducer=function(o,T,Y){return C.H.useReducer(o,T,Y)},nt.useRef=function(o){return C.H.useRef(o)},nt.useState=function(o){return C.H.useState(o)},nt.useSyncExternalStore=function(o,T,Y){return C.H.useSyncExternalStore(o,T,Y)},nt.useTransition=function(){return C.H.useTransition()},nt.version="19.3.1",nt}var dm;function qs(){return dm||(dm=1,js.exports=Oh()),js.exports}var G=qs(),Ms={exports:{}},mn={},Cs={exports:{}},Ds={};/**
* @license React
* scheduler.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var mm;function Ah(){return mm||(mm=1,(function(r){function N(H,k){var I=H.length;H.push(k);t:for(;0<I;){var pt=I-1>>>1,B=H[pt];if(0<M(B,k))H[pt]=k,H[I]=B,I=pt;else break t}}function E(H){return H.length===0?null:H[0]}function d(H){if(H.length===0)return null;var k=H[0],I=H.pop();if(I!==k){H[0]=I;t:for(var pt=0,B=H.length,at=B>>>1;pt<at;){var it=2*(pt+1)-1,wt=H[it],o=it+1,T=H[o];if(0>M(wt,I))o<B&&0>M(T,wt)?(H[pt]=T,H[o]=I,pt=o):(H[pt]=wt,H[it]=I,pt=it);else if(o<B&&0>M(T,I))H[pt]=T,H[o]=I,pt=o;else break t}}return k}function M(H,k){var I=H.sortIndex-k.sortIndex;return I!==0?I:H.id-k.id}if(r.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var w=performance;r.unstable_now=function(){return w.now()}}else{var j=Date,ut=j.now();r.unstable_now=function(){return j.now()-ut}}var W=[],V=[],q=1,S=null,Z=3,rt=!1,Xt=!1,et=!1,D=!1,dt=typeof setTimeout=="function"?setTimeout:null,tt=typeof clearTimeout=="function"?clearTimeout:null,Tt=typeof setImmediate<"u"?setImmediate:null;function Ft(H){for(var k=E(V);k!==null;){if(k.callback===null)d(V);else if(k.startTime<=H)d(V),k.sortIndex=k.expirationTime,N(W,k);else break;k=E(V)}}function Mt(H){if(et=!1,Ft(H),!Xt)if(E(W)!==null)Xt=!0,Ht||(Ht=!0,Ct());else{var k=E(V);k!==null&&Bt(Mt,k.startTime-H)}}var Ht=!1,F=-1,C=5,At=-1;function zt(){return D?!0:!(r.unstable_now()-At<C)}function Nt(){if(D=!1,Ht){var H=r.unstable_now();At=H;var k=!0;try{t:{Xt=!1,et&&(et=!1,tt(F),F=-1),rt=!0;var I=Z;try{l:{for(Ft(H),S=E(W);S!==null&&!(S.expirationTime>H&&zt());){var pt=S.callback;if(typeof pt=="function"){S.callback=null,Z=S.priorityLevel;var B=pt(S.expirationTime<=H);if(H=r.unstable_now(),typeof B=="function"){S.callback=B,Ft(H),k=!0;break l}S===E(W)&&d(W),Ft(H)}else d(W);S=E(W)}if(S!==null)k=!0;else{var at=E(V);at!==null&&Bt(Mt,at.startTime-H),k=!1}}break t}finally{S=null,Z=I,rt=!1}k=void 0}}finally{k?Ct():Ht=!1}}}var Ct;if(typeof Tt=="function")Ct=function(){Tt(Nt)};else if(typeof MessageChannel<"u"){var Wt=new MessageChannel,Lt=Wt.port2;Wt.port1.onmessage=Nt,Ct=function(){Lt.postMessage(null)}}else Ct=function(){dt(Nt,0)};function Bt(H,k){F=dt(function(){H(r.unstable_now())},k)}r.unstable_IdlePriority=5,r.unstable_ImmediatePriority=1,r.unstable_LowPriority=4,r.unstable_NormalPriority=3,r.unstable_Profiling=null,r.unstable_UserBlockingPriority=2,r.unstable_cancelCallback=function(H){H.callback=null},r.unstable_forceFrameRate=function(H){0>H||125<H?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):C=0<H?Math.floor(1e3/H):5},r.unstable_getCurrentPriorityLevel=function(){return Z},r.unstable_next=function(H){switch(Z){case 1:case 2:case 3:var k=3;break;default:k=Z}var I=Z;Z=k;try{return H()}finally{Z=I}},r.unstable_requestPaint=function(){D=!0},r.unstable_runWithPriority=function(H,k){switch(H){case 1:case 2:case 3:case 4:case 5:break;default:H=3}var I=Z;Z=H;try{return k()}finally{Z=I}},r.unstable_scheduleCallback=function(H,k,I){var pt=r.unstable_now();switch(typeof I=="object"&&I!==null?(I=I.delay,I=typeof I=="number"&&0<I?pt+I:pt):I=pt,H){case 1:var B=-1;break;case 2:B=250;break;case 5:B=1073741823;break;case 4:B=1e4;break;default:B=5e3}return B=I+B,H={id:q++,callback:k,priorityLevel:H,startTime:I,expirationTime:B,sortIndex:-1},I>pt?(H.sortIndex=I,N(V,H),E(W)===null&&H===E(V)&&(et?(tt(F),F=-1):et=!0,Bt(Mt,I-pt))):(H.sortIndex=B,N(W,H),Xt||rt||(Xt=!0,Ht||(Ht=!0,Ct()))),H},r.unstable_shouldYield=zt,r.unstable_wrapCallback=function(H){var k=Z;return function(){var I=Z;Z=k;try{return H.apply(this,arguments)}finally{Z=I}}}})(Ds)),Ds}var ym;function jh(){return ym||(ym=1,Cs.exports=Ah()),Cs.exports}var Us={exports:{}},hl={};/**
* @license React
* react-dom.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var hm;function Mh(){if(hm)return hl;hm=1;var r=qs();function N(q){var S="https://react.dev/errors/"+q;if(1<arguments.length){S+="?args[]="+encodeURIComponent(arguments[1]);for(var Z=2;Z<arguments.length;Z++)S+="&args[]="+encodeURIComponent(arguments[Z])}return"Minified React error #"+q+"; visit "+S+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function E(){}var d={d:{f:E,r:function(){throw Error(N(522))},D:E,C:E,L:E,m:E,X:E,S:E,M:E},p:0,findDOMNode:null},M=Symbol.for("react.portal"),w=Symbol.for("react.recoverable"),j=Symbol.for("react.optimistic_key");function ut(q,S,Z){var rt=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:M,key:rt==null?null:rt===j?j:""+rt,children:q,containerInfo:S,implementation:Z}}var W=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function V(q,S){if(q==="font")return"";if(typeof S=="string")return S==="use-credentials"?S:""}return hl.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=d,hl.browser=function(q){return{$$typeof:w,_reason:q}},hl.createPortal=function(q,S){var Z=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!S||S.nodeType!==1&&S.nodeType!==9&&S.nodeType!==11)throw Error(N(299));return ut(q,S,null,Z)},hl.flushSync=function(q){var S=W.T,Z=d.p;try{if(W.T=null,d.p=2,q)return q()}finally{W.T=S,d.p=Z,d.d.f()}},hl.preconnect=function(q,S){typeof q=="string"&&(S?(S=S.crossOrigin,S=typeof S=="string"?S==="use-credentials"?S:"":void 0):S=null,d.d.C(q,S))},hl.prefetchDNS=function(q){typeof q=="string"&&d.d.D(q)},hl.preinit=function(q,S){if(typeof q=="string"&&S&&typeof S.as=="string"){var Z=S.as,rt=V(Z,S.crossOrigin),Xt=typeof S.integrity=="string"?S.integrity:void 0,et=typeof S.fetchPriority=="string"?S.fetchPriority:void 0;Z==="style"?d.d.S(q,typeof S.precedence=="string"?S.precedence:void 0,{crossOrigin:rt,integrity:Xt,fetchPriority:et}):Z==="script"&&d.d.X(q,{crossOrigin:rt,integrity:Xt,fetchPriority:et,nonce:typeof S.nonce=="string"?S.nonce:void 0})}},hl.preinitModule=function(q,S){if(typeof q=="string")if(typeof S=="object"&&S!==null){if(S.as==null||S.as==="script"){var Z=V(S.as,S.crossOrigin);d.d.M(q,{crossOrigin:Z,integrity:typeof S.integrity=="string"?S.integrity:void 0,nonce:typeof S.nonce=="string"?S.nonce:void 0,fetchPriority:typeof S.fetchPriority=="string"?S.fetchPriority:void 0})}}else S==null&&d.d.M(q)},hl.preload=function(q,S){if(typeof q=="string"&&typeof S=="object"&&S!==null&&typeof S.as=="string"){var Z=S.as,rt=V(Z,S.crossOrigin);d.d.L(q,Z,{crossOrigin:rt,integrity:typeof S.integrity=="string"?S.integrity:void 0,nonce:typeof S.nonce=="string"?S.nonce:void 0,type:typeof S.type=="string"?S.type:void 0,fetchPriority:typeof S.fetchPriority=="string"?S.fetchPriority:void 0,referrerPolicy:typeof S.referrerPolicy=="string"?S.referrerPolicy:void 0,imageSrcSet:typeof S.imageSrcSet=="string"?S.imageSrcSet:void 0,imageSizes:typeof S.imageSizes=="string"?S.imageSizes:void 0,media:typeof S.media=="string"?S.media:void 0})}},hl.preloadModule=function(q,S){if(typeof q=="string")if(S){var Z=V(S.as,S.crossOrigin);d.d.m(q,{as:typeof S.as=="string"&&S.as!=="script"?S.as:void 0,crossOrigin:Z,integrity:typeof S.integrity=="string"?S.integrity:void 0,nonce:typeof S.nonce=="string"?S.nonce:void 0,fetchPriority:typeof S.fetchPriority=="string"?S.fetchPriority:void 0})}else d.d.m(q)},hl.requestFormReset=function(q){d.d.r(q)},hl.unstable_batchedUpdates=function(q,S){return q(S)},hl.useFormState=function(q,S,Z){return W.H.useFormState(q,S,Z)},hl.useFormStatus=function(){return W.H.useHostTransitionStatus()},hl.version="19.3.1",hl}var vm;function Ch(){if(vm)return Us.exports;vm=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(N){console.error(N)}}return r(),Us.exports=Mh(),Us.exports}/**
* @license React
* react-dom-client.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var gm;function Dh(){if(gm)return mn;gm=1;var r=jh(),N=qs(),E=Ch();function d(t){var l="https://react.dev/errors/"+t;if(1<arguments.length){l+="?args[]="+encodeURIComponent(arguments[1]);for(var e=2;e<arguments.length;e++)l+="&args[]="+encodeURIComponent(arguments[e])}return"Minified React error #"+t+"; visit "+l+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function M(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function w(t){for(var l=t,e=l;e&&!e.alternate;)l=e,(l.flags&4098)!==0&&(t=l.return),e=l.return;for(;l.return;)l=l.return;return l.tag===3?t:null}function j(t){if(t.tag===13){var l=t.memoizedState;if(l===null&&(t=t.alternate,t!==null&&(l=t.memoizedState)),l!==null)return l.dehydrated}return null}function ut(t){if(t.tag===31){var l=t.memoizedState;if(l===null&&(t=t.alternate,t!==null&&(l=t.memoizedState)),l!==null)return l.dehydrated}return null}function W(t){if(w(t)!==t)throw Error(d(188))}function V(t){var l=t.alternate;if(!l){if(l=w(t),l===null)throw Error(d(188));return l!==t?null:t}for(var e=t,a=l;;){var u=e.return;if(u===null)break;var n=u.alternate;if(n===null){if(a=u.return,a!==null){e=a;continue}break}if(u.child===n.child){for(n=u.child;n;){if(n===e)return W(u),t;if(n===a)return W(u),l;n=n.sibling}throw Error(d(188))}if(e.return!==a.return)e=u,a=n;else{for(var i=!1,c=u.child;c;){if(c===e){i=!0,e=u,a=n;break}if(c===a){i=!0,a=u,e=n;break}c=c.sibling}if(!i){for(c=n.child;c;){if(c===e){i=!0,e=n,a=u;break}if(c===a){i=!0,a=n,e=u;break}c=c.sibling}if(!i)throw Error(d(189))}}if(e.alternate!==a)throw Error(d(190))}if(e.tag!==3)throw Error(d(188));return e.stateNode.current===e?t:l}function q(t){var l=t.tag;if(l===5||l===26||l===27||l===6)return t;for(t=t.child;t!==null;){if(l=q(t),l!==null)return l;t=t.sibling}return null}function S(t,l,e,a,u,n){for(;t!==null;){if((t.tag===5||t.tag===27||t.tag===6)&&e(t,a,u,n)||(t.tag!==22||t.memoizedState===null)&&(l||t.tag!==5&&t.tag!==27)&&S(t.child,l,e,a,u,n))return!0;t=t.sibling}return!1}function Z(t){for(t=t.return;t!==null;){if(t.tag===3||t.tag===5||t.tag===27)return t;t=t.return}return null}function rt(t){var l=!1;for(t=t.return;t!==null&&(t.tag===4&&(l=!0),!(t.tag===3||t.tag===5||t.tag===27));)t=t.return;return l}function Xt(t){var l=[null,null],e=Z(t);return e===null||et(l,t,e.child,{foundSelf:!1}),l}function et(t,l,e,a){for(;e!==null;){if(e===l)a.foundSelf=!0;else if(e.tag===5||e.tag===27||e.tag===6){if(a.foundSelf)return t[1]=e,!0;t[0]=e}else if((e.tag!==22||e.memoizedState===null)&&et(t,l,e.child,a))return!0;e=e.sibling}return!1}function D(t){switch(t.tag){case 5:case 27:case 6:return t.stateNode;case 3:return t.stateNode.containerInfo;default:throw Error(d(559))}}var dt=null,tt=null;function Tt(t,l,e){return t===e?!0:t===l?(dt=t,!0):!1}function Ft(t,l,e){return t===e?(tt=t,!1):t===l?(tt!==null&&(dt=t),!0):!1}function Mt(t){if(t===null)return null;do t=t===null?null:t.return;while(t&&t.tag!==5&&t.tag!==27&&t.tag!==3);return t||null}function Ht(t,l,e){for(var a=0,u=t;u;u=e(u))a++;u=0;for(var n=l;n;n=e(n))u++;for(;0<a-u;)t=e(t),a--;for(;0<u-a;)l=e(l),u--;for(;a--;){if(t===l||l!==null&&t===l.alternate)return t;t=e(t),l=e(l)}return null}var F=Object.assign,C=Symbol.for("react.element"),At=Symbol.for("react.transitional.element"),zt=Symbol.for("react.portal"),Nt=Symbol.for("react.fragment"),Ct=Symbol.for("react.strict_mode"),Wt=Symbol.for("react.profiler"),Lt=Symbol.for("react.consumer"),Bt=Symbol.for("react.context"),H=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),pt=Symbol.for("react.memo"),B=Symbol.for("react.lazy"),at=Symbol.for("react.activity"),it=Symbol.for("react.legacy_hidden"),wt=Symbol.for("react.memo_cache_sentinel"),o=Symbol.for("react.view_transition"),T=Symbol.for("react.recoverable"),Y=Symbol.iterator;function Q(t){return t===null||typeof t!="object"?null:(t=Y&&t[Y]||t["@@iterator"],typeof t=="function"?t:null)}var mt=Symbol.for("react.client.reference");function st(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===mt?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Nt:return"Fragment";case Wt:return"Profiler";case Ct:return"StrictMode";case k:return"Suspense";case I:return"SuspenseList";case at:return"Activity";case o:return"ViewTransition"}if(typeof t=="object")switch(t.$$typeof){case zt:return"Portal";case Bt:return t.displayName||"Context";case Lt:return(t._context.displayName||"Context")+".Consumer";case H:var l=t.render;return t=t.displayName,t||(t=l.displayName||l.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case pt:return l=t.displayName||null,l!==null?l:st(t.type)||"Memo";case B:l=t._payload,t=t._init;try{return st(t(l))}catch{}}return null}var vt=Array.isArray,y=N.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,O=E.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,A={pending:!1,data:null,method:null,action:null},L=[],U=-1;function J(t){return{current:t}}function P(t){0>U||(t.current=L[U],L[U]=null,U--)}function gt(t,l){U++,L[U]=t.current,t.current=l}var fl=J(null),le=J(null),Me=J(null),hn=J(null);function vn(t,l){switch(gt(Me,l),gt(le,t),gt(fl,null),l.nodeType){case 9:case 11:t=(t=l.documentElement)&&(t=t.namespaceURI)?b0(t):0;break;default:if(t=l.tagName,l=l.namespaceURI)l=b0(l),t=x0(l,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}P(fl),gt(fl,t)}function Aa(){P(fl),P(le),P(Me)}function Ji(t){var l=t.memoizedState;l!==null&&(hu._currentValue=l.memoizedState,gt(hn,t)),l=fl.current;var e=x0(l,t.type);l!==e&&(gt(le,t),gt(fl,e))}function gn(t){le.current===t&&(P(fl),P(le)),hn.current===t&&(P(hn),hu._currentValue=A)}var ki,Ys;function Ce(t){if(ki===void 0)try{throw Error()}catch(e){var l=e.stack.trim().match(/\n( *(at )?)/);ki=l&&l[1]||"",Ys=-1<e.stack.indexOf(`
at`)?" (<anonymous>)":-1<e.stack.indexOf("@")?"@unknown:0:0":""}return`
`+ki+t+Ys}var $i=!1;function Fi(t,l){if(!t||$i)return"";$i=!0;var e=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(l){var _=function(){throw Error()};if(Object.defineProperty(_.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(_,[])}catch(R){var h=R}Reflect.construct(t,[],_)}else{try{_.call()}catch(R){h=R}_=!1;try{var x=Object.getOwnPropertyDescriptor(t.prototype,"props");Object.defineProperty(t.prototype,"props",{configurable:!0,set:function(){throw Error()}}),_=!0,new t}finally{_&&(x!==void 0?Object.defineProperty(t.prototype,"props",x):delete t.prototype.props)}}}else{try{throw Error()}catch(R){h=R}(_=t())&&typeof _.catch=="function"&&_.catch(function(){})}}catch(R){if(R&&h&&typeof R.stack=="string")return[R.stack,h.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var n=a.DetermineComponentFrameRoot(),i=n[0],c=n[1];if(i&&c){var s=i.split(`
`),g=c.split(`
`);for(u=a=0;a<s.length&&!s[a].includes("DetermineComponentFrameRoot");)a++;for(;u<g.length&&!g[u].includes("DetermineComponentFrameRoot");)u++;if(a===s.length||u===g.length)for(a=s.length-1,u=g.length-1;1<=a&&0<=u&&s[a]!==g[u];)u--;for(;1<=a&&0<=u;a--,u--)if(s[a]!==g[u]){if(a!==1||u!==1)do if(a--,u--,0>u||s[a]!==g[u]){var p=`
`+s[a].replace(" at new "," at ");return t.displayName&&p.includes("<anonymous>")&&(p=p.replace("<anonymous>",t.displayName)),p}while(1<=a&&0<=u);break}}}finally{$i=!1,Error.prepareStackTrace=e}return(e=t?t.displayName||t.name:"")?Ce(e):""}function Om(t,l){switch(t.tag){case 26:case 27:case 5:return Ce(t.type);case 16:return Ce("Lazy");case 13:return t.child!==l&&l!==null?Ce("Suspense Fallback"):Ce("Suspense");case 19:return Ce("SuspenseList");case 0:case 15:return Fi(t.type,!1);case 11:return Fi(t.type.render,!1);case 1:return Fi(t.type,!0);case 31:return Ce("Activity");case 30:return Ce("ViewTransition");default:return""}}function ws(t){try{var l="",e=null;do l+=Om(t,e),e=t,t=t.return;while(t);return l}catch(a){return`
Error generating stack: `+a.message+`
`+a.stack}}var Wi=Object.prototype.hasOwnProperty,Ii=r.unstable_scheduleCallback,Pi=r.unstable_cancelCallback,Am=r.unstable_shouldYield,jm=r.unstable_requestPaint,Al=r.unstable_now,Mm=r.unstable_getCurrentPriorityLevel,Gs=r.unstable_ImmediatePriority,Qs=r.unstable_UserBlockingPriority,bn=r.unstable_NormalPriority,Cm=r.unstable_LowPriority,Xs=r.unstable_IdlePriority,Dm=r.log,Um=r.unstable_setDisableYieldValue,bu=null,jl=null;function De(t){if(typeof Dm=="function"&&Um(t),jl&&typeof jl.setStrictMode=="function")try{jl.setStrictMode(bu,t)}catch{}}var Ml=Math.clz32?Math.clz32:qm,Rm=Math.log,Hm=Math.LN2;function qm(t){return t>>>=0,t===0?32:31-(Rm(t)/Hm|0)|0}var xn=256,pn=262144,Sn=4194304;function na(t){var l=t&42;if(l!==0)return l;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&-t;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Tn(t,l,e){var a=t.pendingLanes;if(a===0)return 0;var u=0,n=t.suspendedLanes,i=t.pingedLanes;t=t.warmLanes;var c=a&134217727;return c!==0?(a=c&~n,a!==0?u=na(a):(i&=c,i!==0?u=na(i):e||(e=c&~t,e!==0&&(u=na(e))))):(c=a&~n,c!==0?u=na(c):i!==0?u=na(i):e||(e=a&~t,e!==0&&(u=na(e)))),u===0?0:l!==0&&l!==u&&(l&n)===0&&(n=u&-u,e=l&-l,n>=e||n===32&&(e&4194048)!==0)?l:u}function xu(t,l){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&l)===0}function Vs(t,l){(l&8)!==0&&(l|=l&32);var e=t.entangledLanes;if(e!==0)for(t=t.entanglements,e&=l;0<e;){var a=31-Ml(e),u=1<<a;l|=t[a],e&=~u}return l}function Bm(t,l){switch(t){case 1:case 2:case 4:case 8:case 64:return l+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 l+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 Zs(){var t=Sn;return Sn<<=1,(Sn&62914560)===0&&(Sn=4194304),t}function tc(t){for(var l=[],e=0;31>e;e++)l.push(t);return l}function pu(t,l){t.pendingLanes|=l,l!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Ym(t,l,e,a,u,n){var i=t.pendingLanes;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=e,t.entangledLanes&=e,t.errorRecoveryDisabledLanes&=e,t.shellSuspendCounter=0;var c=t.entanglements,s=t.expirationTimes,g=t.hiddenUpdates;for(e=i&~e;0<e;){var p=31-Ml(e),_=1<<p;c[p]=0,s[p]=-1;var h=g[p];if(h!==null)for(g[p]=null,p=0;p<h.length;p++){var x=h[p];x!==null&&(x.lane&=-536870913)}e&=~_}a!==0&&Ls(t,a,0),n!==0&&u===0&&t.tag!==0&&(t.suspendedLanes|=n&~(i&~l))}function Ls(t,l,e){t.pendingLanes|=l,t.suspendedLanes&=~l;var a=31-Ml(l);t.entangledLanes|=l,t.entanglements[a]=t.entanglements[a]|1073741824|e&261930}function Ks(t,l){var e=t.entangledLanes|=l;for(t=t.entanglements;e;){var a=31-Ml(e),u=1<<a;u&l|t[a]&l&&(t[a]|=l),e&=~u}}function Js(t,l){var e=l&-l;return e=(e&42)!==0?1:lc(e),(e&(t.suspendedLanes|l))!==0?0:e}function lc(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function ec(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function ks(){var t=O.p;return t!==0?t:(t=window.event,t===void 0?32:em(t.type))}function $s(t,l){var e=O.p;try{return O.p=t,l()}finally{O.p=e}}var ye=Math.random().toString(36).slice(2),sl="__reactFiber$"+ye,Tl="__reactProps$"+ye,ja="__reactContainer$"+ye,Fs="__reactEvents$"+ye,wm="__reactListeners$"+ye,Gm="__reactHandles$"+ye,Ws="__reactResources$"+ye,Su="__reactMarker$"+ye,Nn="__reactLoad$"+ye;function En(t){delete t[sl],delete t[Tl],delete t[wm],delete t[Gm]}function ia(t){var l;if(l=t[sl])return l;for(var e=t.parentNode;e;){if(l=e[ja]||e[sl]){if(e=l.alternate,l.child!==null||e!==null&&e.child!==null)for(t=q0(t);t!==null;){if(e=t[sl])return e;t=q0(t)}return l}t=e,e=t.parentNode}return null}function Ma(t){if(t=t[sl]||t[ja]){var l=t.tag;if(l===5||l===6||l===13||l===31||l===26||l===27||l===3)return t}return null}function Tu(t){var l=t.tag;if(l===5||l===26||l===27||l===6)return t.stateNode;throw Error(d(33))}function Ca(t){var l=t[Ws];return l||(l=t[Ws]={hoistableStyles:new Map,hoistableScripts:new Map}),l}function ul(t){t[Su]=!0}function Is(t){t[Nn]=void 0}var Ps=new Set,tr={};function ca(t,l){Da(t,l),Da(t+"Capture",l)}function Da(t,l){for(tr[t]=l,t=0;t<l.length;t++)Ps.add(l[t])}var Qm=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]*$"),lr={},er={};function Xm(t){return Wi.call(er,t)?!0:Wi.call(lr,t)?!1:Qm.test(t)?er[t]=!0:(lr[t]=!0,!1)}var Et=!1;function ar(){var t=Et;return Et=!1,t}function zn(t,l,e){if(Xm(l))if(e===null)t.removeAttribute(l);else{switch(typeof e){case"undefined":case"function":case"symbol":t.removeAttribute(l);return;case"boolean":var a=l.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){t.removeAttribute(l);return}}t.setAttribute(l,e)}}function _n(t,l,e){if(e===null)t.removeAttribute(l);else{switch(typeof e){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(l);return}t.setAttribute(l,e)}}function he(t,l,e,a){if(a===null)t.removeAttribute(e);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttributeNS(l,e,a)}}function Cl(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function ur(t){var l=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(l==="checkbox"||l==="radio")}function Vm(t,l,e){var a=Object.getOwnPropertyDescriptor(t.constructor.prototype,l);if(!t.hasOwnProperty(l)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var u=a.get,n=a.set;return Object.defineProperty(t,l,{configurable:!0,get:function(){return u.call(this)},set:function(i){e=""+i,n.call(this,i)}}),Object.defineProperty(t,l,{enumerable:a.enumerable}),{getValue:function(){return e},setValue:function(i){e=""+i},stopTracking:function(){t._valueTracker=null,delete t[l]}}}}function ac(t){if(!t._valueTracker){var l=ur(t)?"checked":"value";t._valueTracker=Vm(t,l,""+t[l])}}function nr(t){if(!t)return!1;var l=t._valueTracker;if(!l)return!0;var e=l.getValue(),a="";return t&&(a=ur(t)?t.checked?"true":"false":t.value),t=a,t!==e?(l.setValue(t),!0):!1}var Zm=/[\n"\\]/g;function wl(t){return t.replace(Zm,function(l){return"\\"+l.charCodeAt(0).toString(16)+" "})}function uc(t,l,e,a,u,n,i,c){t.name="",i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"?t.type=i:t.removeAttribute("type"),l!=null?i==="number"?(l===0&&t.value===""||t.value!=l)&&(t.value=""+Cl(l)):t.value!==""+Cl(l)&&(t.value=""+Cl(l)):i!=="submit"&&i!=="reset"||t.removeAttribute("value"),l!=null?i==="number"&&t.value==l?nc(t,Cl(t.value)):nc(t,Cl(l)):e!=null?nc(t,Cl(e)):a!=null&&t.removeAttribute("value"),u==null&&n!=null&&(t.defaultChecked=!!n),u!=null&&(t.checked=u&&typeof u!="function"&&typeof u!="symbol"),c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?t.name=""+Cl(c):t.removeAttribute("name")}function ir(t,l,e,a,u,n,i,c){if(n!=null&&typeof n!="function"&&typeof n!="symbol"&&typeof n!="boolean"&&(t.type=n),l!=null||e!=null){if(!(n!=="submit"&&n!=="reset"||l!=null)){ac(t);return}e=e!=null?""+Cl(e):"",l=l!=null?""+Cl(l):e,c||l===t.value||(t.value=l),t.defaultValue=l}a=a??u,a=typeof a!="function"&&typeof a!="symbol"&&!!a,t.checked=c?t.checked:!!a,t.defaultChecked=!!a,i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(t.name=i),ac(t)}function nc(t,l){t.defaultValue!==""+l&&(t.defaultValue=""+l)}function Ua(t,l,e,a){if(t=t.options,l){l={};for(var u=0;u<e.length;u++)l["$"+e[u]]=!0;for(e=0;e<t.length;e++)u=l.hasOwnProperty("$"+t[e].value),t[e].selected!==u&&(t[e].selected=u),u&&a&&(t[e].defaultSelected=!0)}else{for(e=""+Cl(e),l=null,u=0;u<t.length;u++){if(t[u].value===e){t[u].selected=!0,a&&(t[u].defaultSelected=!0);return}l!==null||t[u].disabled||(l=t[u])}l!==null&&(l.selected=!0)}}function cr(t,l,e){if(l!=null&&(l=""+Cl(l),l!==t.value&&(t.value=l),e==null)){t.defaultValue!==l&&(t.defaultValue=l);return}t.defaultValue=e!=null?""+Cl(e):""}function fr(t,l,e,a){if(l==null){if(a!=null){if(e!=null)throw Error(d(92));if(vt(a)){if(1<a.length)throw Error(d(93));a=a[0]}e=a}e==null&&(e=""),l=e}e=Cl(l),t.defaultValue=e,a=t.textContent,a===e&&a!==""&&a!==null&&(t.value=a),ac(t)}function Ra(t,l){if(l){var e=t.firstChild;if(e&&e===t.lastChild&&e.nodeType===3){e.nodeValue=l;return}}t.textContent=l}var Lm=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 sr(t,l,e){var a=l.indexOf("--")===0;e==null||typeof e=="boolean"||e===""?a?t.setProperty(l,""):l==="float"?t.cssFloat="":t[l]="":a?t.setProperty(l,e):typeof e!="number"||e===0||Lm.has(l)?l==="float"?t.cssFloat=e:t[l]=(""+e).trim():t[l]=e+"px"}function rr(t,l,e){if(l!=null&&typeof l!="object")throw Error(d(62));if(t=t.style,e!=null){for(var a in e)!e.hasOwnProperty(a)||l!=null&&l.hasOwnProperty(a)||(a.indexOf("--")===0?t.setProperty(a,""):a==="float"?t.cssFloat="":t[a]="",Et=!0);for(var u in l)a=l[u],l.hasOwnProperty(u)&&e[u]!==a&&(sr(t,u,a),Et=!0)}else for(var n in l)l.hasOwnProperty(n)&&sr(t,n,l[n])}function ic(t){if(t.indexOf("-")===-1)return!1;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Km=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"],["maskType","mask-type"],["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"]]),Jm=/^[\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 On(t){return Jm.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function ee(){}var cc=null;function fc(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Ha=null,qa=null;function or(t){var l=Ma(t);if(l&&(t=l.stateNode)){var e=t[Tl]||null;t:switch(t=l.stateNode,l.type){case"input":if(uc(t,e.value,e.defaultValue,e.defaultValue,e.checked,e.defaultChecked,e.type,e.name),l=e.name,e.type==="radio"&&l!=null){for(e=t;e.parentNode;)e=e.parentNode;for(e=e.querySelectorAll('input[name="'+wl(""+l)+'"][type="radio"]'),l=0;l<e.length;l++){var a=e[l];if(a!==t&&a.form===t.form){var u=a[Tl]||null;if(!u)throw Error(d(90));uc(a,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(l=0;l<e.length;l++)a=e[l],a.form===t.form&&nr(a)}break t;case"textarea":cr(t,e.value,e.defaultValue);break t;case"select":l=e.value,l!=null&&Ua(t,!!e.multiple,l,!1)}}}var sc=!1;function dr(t,l,e){if(sc)return t(l,e);sc=!0;try{var a=t(l);return a}finally{if(sc=!1,(Ha!==null||qa!==null)&&(Oi(),Ha&&(l=Ha,t=qa,qa=Ha=null,or(l),t)))for(l=0;l<t.length;l++)or(t[l])}}function Nu(t,l){var e=t.stateNode;if(e===null)return null;var a=e[Tl]||null;if(a===null)return null;e=a[l];t:switch(l){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(t=t.type,a=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!a;break t;default:t=!1}if(t)return null;if(e&&typeof e!="function")throw Error(d(231,l,typeof e));return e}var ve=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),rc=!1;if(ve)try{var Eu={};Object.defineProperty(Eu,"passive",{get:function(){rc=!0}}),window.addEventListener("test",Eu,Eu),window.removeEventListener("test",Eu,Eu)}catch{rc=!1}var Ue=null,oc=null,An=null;function mr(){if(An)return An;var t,l=oc,e=l.length,a,u="value"in Ue?Ue.value:Ue.textContent,n=u.length;for(t=0;t<e&&l[t]===u[t];t++);var i=e-t;for(a=1;a<=i&&l[e-a]===u[n-a];a++);return An=u.slice(t,1<a?1-a:void 0)}function jn(t){var l=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&l===13&&(t=13)):t=l,t===10&&(t=13),32<=t||t===13?t:0}function Mn(){return!0}function yr(){return!1}function bl(t){function l(e,a,u,n,i){this._reactName=e,this._targetInst=u,this.type=a,this.nativeEvent=n,this.target=i,this.currentTarget=null;for(var c in t)t.hasOwnProperty(c)&&(e=t[c],this[c]=e?e(n):n[c]);return this.isDefaultPrevented=(n.defaultPrevented!=null?n.defaultPrevented:n.returnValue===!1)?Mn:yr,this.isPropagationStopped=yr,this}return F(l.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!="unknown"&&(e.returnValue=!1),this.isDefaultPrevented=Mn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!="unknown"&&(e.cancelBubble=!0),this.isPropagationStopped=Mn)},persist:function(){},isPersistent:Mn}),l}var Re={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Cn=bl(Re),zu=F({},Re,{view:0,detail:0}),km=bl(zu),dc,mc,_u,Dn=F({},zu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:hc,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==_u&&(_u&&t.type==="mousemove"?(dc=t.screenX-_u.screenX,mc=t.screenY-_u.screenY):mc=dc=0,_u=t),dc)},movementY:function(t){return"movementY"in t?t.movementY:mc}}),hr=bl(Dn),$m=F({},Dn,{dataTransfer:0}),Fm=bl($m),Wm=F({},zu,{relatedTarget:0}),yc=bl(Wm),Im=F({},Re,{animationName:0,elapsedTime:0,pseudoElement:0}),Pm=bl(Im),t1=F({},Re,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),l1=bl(t1),e1=F({},Re,{data:0}),vr=bl(e1),a1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},u1={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"},n1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function i1(t){var l=this.nativeEvent;return l.getModifierState?l.getModifierState(t):(t=n1[t])?!!l[t]:!1}function hc(){return i1}var c1=F({},zu,{key:function(t){if(t.key){var l=a1[t.key]||t.key;if(l!=="Unidentified")return l}return t.type==="keypress"?(t=jn(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?u1[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:hc,charCode:function(t){return t.type==="keypress"?jn(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?jn(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),f1=bl(c1),s1=F({},Dn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),gr=bl(s1),r1=F({},Re,{submitter:0}),o1=bl(r1),d1=F({},zu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:hc}),m1=bl(d1),y1=F({},Re,{propertyName:0,elapsedTime:0,pseudoElement:0}),h1=bl(y1),v1=F({},Dn,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),g1=bl(v1),b1=F({},Re,{newState:0,oldState:0,source:0}),x1=bl(b1),p1=[9,13,27,32],vc=ve&&"CompositionEvent"in window,Ou=null;ve&&"documentMode"in document&&(Ou=document.documentMode);var S1=ve&&"TextEvent"in window&&!Ou,br=ve&&(!vc||Ou&&8<Ou&&11>=Ou),xr=" ",pr=!1;function Sr(t,l){switch(t){case"keyup":return p1.indexOf(l.keyCode)!==-1;case"keydown":return l.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Tr(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Ba=!1;function T1(t,l){switch(t){case"compositionend":return Tr(l);case"keypress":return l.which!==32?null:(pr=!0,xr);case"textInput":return t=l.data,t===xr&&pr?null:t;default:return null}}function N1(t,l){if(Ba)return t==="compositionend"||!vc&&Sr(t,l)?(t=mr(),An=oc=Ue=null,Ba=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(l.ctrlKey||l.altKey||l.metaKey)||l.ctrlKey&&l.altKey){if(l.char&&1<l.char.length)return l.char;if(l.which)return String.fromCharCode(l.which)}return null;case"compositionend":return br&&l.locale!=="ko"?null:l.data;default:return null}}var E1={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 Nr(t){var l=t&&t.nodeName&&t.nodeName.toLowerCase();return l==="input"?!!E1[t.type]:l==="textarea"}function Er(t,l,e,a){Ha?qa?qa.push(a):qa=[a]:Ha=a,l=Ui(l,"onChange"),0<l.length&&(e=new Cn("onChange","change",null,e,a),t.push({event:e,listeners:l}))}var Au=null,ju=null;function z1(t){d0(t,0)}function Un(t){var l=Tu(t);if(nr(l))return t}function zr(t,l){if(t==="change")return l}var _r=!1;if(ve){var gc;if(ve){var bc="oninput"in document;if(!bc){var Or=document.createElement("div");Or.setAttribute("oninput","return;"),bc=typeof Or.oninput=="function"}gc=bc}else gc=!1;_r=gc&&(!document.documentMode||9<document.documentMode)}function Ar(){Au&&(Au.detachEvent("onpropertychange",jr),ju=Au=null)}function jr(t){if(t.propertyName==="value"&&Un(ju)){var l=[];Er(l,ju,t,fc(t)),dr(z1,l)}}function _1(t,l,e){t==="focusin"?(Ar(),Au=l,ju=e,Au.attachEvent("onpropertychange",jr)):t==="focusout"&&Ar()}function O1(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Un(ju)}function A1(t,l){if(t==="click")return Un(l)}function j1(t,l){if(t==="input"||t==="change")return Un(l)}function M1(t,l){return t===l&&(t!==0||1/t===1/l)||t!==t&&l!==l}var Dl=typeof Object.is=="function"?Object.is:M1;function Mu(t,l){if(Dl(t,l))return!0;if(typeof t!="object"||t===null||typeof l!="object"||l===null)return!1;var e=Object.keys(t),a=Object.keys(l);if(e.length!==a.length)return!1;for(a=0;a<e.length;a++){var u=e[a];if(!Wi.call(l,u)||!Dl(t[u],l[u]))return!1}return!0}function xc(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function Mr(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Cr(t,l){var e=Mr(t);t=0;for(var a;e;){if(e.nodeType===3){if(a=t+e.textContent.length,t<=l&&a>=l)return{node:e,offset:l-t};t=a}t:{for(;e;){if(e.nextSibling){e=e.nextSibling;break t}e=e.parentNode}e=void 0}e=Mr(e)}}function Dr(t,l){return t&&l?t===l?!0:t&&t.nodeType===3?!1:l&&l.nodeType===3?Dr(t,l.parentNode):"contains"in t?t.contains(l):t.compareDocumentPosition?!!(t.compareDocumentPosition(l)&16):!1:!1}function Ur(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var l=xc(t.document);l instanceof t.HTMLIFrameElement;){try{var e=typeof l.contentWindow.location.href=="string"}catch{e=!1}if(e)t=l.contentWindow;else break;l=xc(t.document)}return l}function pc(t){var l=t&&t.nodeName&&t.nodeName.toLowerCase();return l&&(l==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||l==="textarea"||t.contentEditable==="true")}var C1=ve&&"documentMode"in document&&11>=document.documentMode,Ya=null,Sc=null,Cu=null,Tc=!1;function Rr(t,l,e){var a=e.window===e?e.document:e.nodeType===9?e:e.ownerDocument;Tc||Ya==null||Ya!==xc(a)||(a=Ya,"selectionStart"in a&&pc(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Cu&&Mu(Cu,a)||(Cu=a,a=Ui(Sc,"onSelect"),0<a.length&&(l=new Cn("onSelect","select",null,l,e),t.push({event:l,listeners:a}),l.target=Ya)))}function fa(t,l){var e={};return e[t.toLowerCase()]=l.toLowerCase(),e["Webkit"+t]="webkit"+l,e["Moz"+t]="moz"+l,e}var wa={animationend:fa("Animation","AnimationEnd"),animationiteration:fa("Animation","AnimationIteration"),animationstart:fa("Animation","AnimationStart"),transitionrun:fa("Transition","TransitionRun"),transitionstart:fa("Transition","TransitionStart"),transitioncancel:fa("Transition","TransitionCancel"),transitionend:fa("Transition","TransitionEnd")},Nc={},Hr={};ve&&(Hr=document.createElement("div").style,"AnimationEvent"in window||(delete wa.animationend.animation,delete wa.animationiteration.animation,delete wa.animationstart.animation),"TransitionEvent"in window||delete wa.transitionend.transition);function sa(t){if(Nc[t])return Nc[t];if(!wa[t])return t;var l=wa[t],e;for(e in l)if(l.hasOwnProperty(e)&&e in Hr)return Nc[t]=l[e];return t}var qr=sa("animationend"),Br=sa("animationiteration"),Yr=sa("animationstart"),D1=sa("transitionrun"),U1=sa("transitionstart"),R1=sa("transitioncancel"),wr=sa("transitionend"),Gr=new Map,Ec="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError 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(" ");Ec.push("scrollEnd");function $l(t,l){Gr.set(t,l),ca(l,[t])}var H1=0;function ge(t,l){if(t.name!=null&&t.name!=="auto")return t.name;if(l.autoName!==null)return l.autoName;t=Pl.identifierPrefix;var e=H1++;return t="_"+t+"t_"+e.toString(32)+"_",l.autoName=t}function Qr(t){if(t==null||typeof t=="string")return t;var l=null,e=nu;if(e!==null)for(var a=0;a<e.length;a++){var u=t[e[a]];if(u!=null){if(u==="none")return"none";l=l==null?u:l+(" "+u)}}return l??t.default}function be(t,l){return t=Qr(t),l=Qr(l),l==null?t==="auto"?null:t:l==="auto"?null:l}var Rn=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var l=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(l))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},Gl=[],Ga=0,zc=0;function Hn(){for(var t=Ga,l=zc=Ga=0;l<t;){var e=Gl[l];Gl[l++]=null;var a=Gl[l];Gl[l++]=null;var u=Gl[l];Gl[l++]=null;var n=Gl[l];if(Gl[l++]=null,a!==null&&u!==null){var i=a.pending;i===null?u.next=u:(u.next=i.next,i.next=u),a.pending=u}n!==0&&Xr(e,u,n)}}function qn(t,l,e,a){Gl[Ga++]=t,Gl[Ga++]=l,Gl[Ga++]=e,Gl[Ga++]=a,zc|=a,t.lanes|=a,t=t.alternate,t!==null&&(t.lanes|=a)}function _c(t,l,e,a){return qn(t,l,e,a),Bn(t)}function ra(t,l){return qn(t,null,null,l),Bn(t)}function Xr(t,l,e){t.lanes|=e;var a=t.alternate;a!==null&&(a.lanes|=e);for(var u=!1,n=t.return;n!==null;)n.childLanes|=e,a=n.alternate,a!==null&&(a.childLanes|=e),n.tag===22&&(t=n.stateNode,t===null||t._visibility&1||(u=!0)),t=n,n=n.return;return t.tag===3?(n=t.stateNode,u&&l!==null&&(u=31-Ml(e),t=n.hiddenUpdates,a=t[u],a===null?t[u]=[l]:a.push(l),l.lane=e|536870912),n):null}function Bn(t){if(50<Pu)throw Pu=0,_i=null,Error(d(185));for(var l=t.return;l!==null;)t=l,l=t.return;return t.tag===3?t.stateNode:null}var Qa={};function q1(t,l,e,a){this.tag=t,this.key=e,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=l,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Nl(t,l,e,a){return new q1(t,l,e,a)}function Oc(t){return t=t.prototype,!(!t||!t.isReactComponent)}function xe(t,l){var e=t.alternate;return e===null?(e=Nl(t.tag,l,t.key,t.mode),e.elementType=t.elementType,e.type=t.type,e.stateNode=t.stateNode,e.alternate=t,t.alternate=e):(e.pendingProps=l,e.type=t.type,e.flags=0,e.subtreeFlags=0,e.deletions=null),e.flags=t.flags&1206910976,e.childLanes=t.childLanes,e.lanes=t.lanes,e.child=t.child,e.memoizedProps=t.memoizedProps,e.memoizedState=t.memoizedState,e.updateQueue=t.updateQueue,l=t.dependencies,e.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext},e.sibling=t.sibling,e.index=t.index,e.ref=t.ref,e.refCleanup=t.refCleanup,e}function Vr(t,l){t.flags&=1206910978;var e=t.alternate;return e===null?(t.childLanes=0,t.lanes=l,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=e.childLanes,t.lanes=e.lanes,t.child=e.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=e.memoizedProps,t.memoizedState=e.memoizedState,t.updateQueue=e.updateQueue,t.type=e.type,l=e.dependencies,t.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext}),t}function Yn(t,l,e,a,u,n){var i=0;if(a=t,typeof a=="function")Oc(a)&&(i=1);else if(typeof a=="string")i=rh(t,e,fl.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(a){case at:return t=Nl(31,e,l,u),t.elementType=at,t.lanes=n,t;case Nt:return oa(e.children,u,n,l);case Ct:i=8,u|=24;break;case Wt:return t=Nl(12,e,l,u|2),t.elementType=Wt,t.lanes=n,t;case k:return t=Nl(13,e,l,u),t.elementType=k,t.lanes=n,t;case I:return t=Nl(19,e,l,u),t.elementType=I,t.lanes=n,t;case it:case o:return t=u|32,t=Nl(30,e,l,t),t.elementType=o,t.lanes=n,t.stateNode={autoName:null,paired:null,clones:null,ref:null},t;default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case Bt:i=10;break t;case Lt:i=9;break t;case H:i=11;break t;case pt:i=14;break t;case B:i=16,a=null;break t}i=29,e=Error(d(130,t===null?"null":typeof t,"")),a=null}return l=Nl(i,e,l,u),l.elementType=t,l.type=a,l.lanes=n,l}function oa(t,l,e,a){return t=Nl(7,t,a,l),t.lanes=e,t}function Ac(t,l,e){return t=Nl(6,t,null,l),t.lanes=e,t}function Zr(t){var l=Nl(18,null,null,0);return l.stateNode=t,l}function jc(t,l,e){return l=Nl(4,t.children!==null?t.children:[],t.key,l),l.lanes=e,l.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},l}var Lr=new WeakMap;function Ql(t,l){if(typeof t=="object"&&t!==null){var e=Lr.get(t);return e!==void 0?e:(l={value:t,source:l,stack:ws(l)},Lr.set(t,l),l)}return{value:t,source:l,stack:ws(l)}}var Xa=[],Va=0,wn=null,Du=0,Xl=[],Vl=0,He=null,ae=1,ue="";function pe(t,l){Xa[Va++]=Du,Xa[Va++]=wn,wn=t,Du=l}function Kr(t,l,e){Xl[Vl++]=ae,Xl[Vl++]=ue,Xl[Vl++]=He,He=t;var a=ae;t=ue;var u=32-Ml(a)-1;a&=~(1<<u),e+=1;var n=32-Ml(l)+u;if(30<n){var i=u-u%5;n=(a&(1<<i)-1).toString(32),a>>=i,u-=i,ae=1<<32-Ml(l)+u|e<<u|a,ue=n+t}else ae=1<<n|e<<u|a,ue=t}function Gn(t){t.return!==null&&(pe(t,1),Kr(t,1,0))}function Mc(t){for(;t===wn;)wn=Xa[--Va],Xa[Va]=null,Du=Xa[--Va],Xa[Va]=null;for(;t===He;)He=Xl[--Vl],Xl[Vl]=null,ue=Xl[--Vl],Xl[Vl]=null,ae=Xl[--Vl],Xl[Vl]=null}function Jr(t,l){Xl[Vl++]=ae,Xl[Vl++]=ue,Xl[Vl++]=He,ae=l.id,ue=l.overflow,He=t}var nl=null,Gt=null,ot=!1,qe=null,Zl=!1,Cc=Error(d(519));function Be(t){var l=Error(d(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Uu(Ql(l,t)),Cc}function kr(t){var l=t.stateNode,e=t.type,a=t.memoizedProps;switch(l[sl]=t,l[Tl]=a,e){case"dialog":ht("cancel",l),ht("close",l);break;case"iframe":case"object":case"embed":ht("load",l);break;case"video":case"audio":for(e=0;e<ln.length;e++)ht(ln[e],l);break;case"source":ht("error",l);break;case"img":case"image":case"link":ht("error",l),ht("load",l);break;case"details":ht("toggle",l);break;case"input":ht("invalid",l),ir(l,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":ht("invalid",l);break;case"textarea":ht("invalid",l),fr(l,a.value,a.defaultValue,a.children)}e=a.children,typeof e!="string"&&typeof e!="number"&&typeof e!="bigint"||l.textContent===""+e||a.suppressHydrationWarning===!0||v0(l.textContent,e)?(a.popover!=null&&(ht("beforetoggle",l),ht("toggle",l)),a.onScroll!=null&&ht("scroll",l),a.onScrollEnd!=null&&ht("scrollend",l),a.onClick!=null&&(l.onclick=ee),l=!0):l=!1,l||Be(t,!0)}function Qn(t){for(nl=t.return;nl;)switch(nl.tag){case 5:case 31:case 13:Zl=!1;return;case 27:case 3:Zl=!0;return;default:nl=nl.return}}function Za(t){if(t!==nl)return!1;if(!ot)return Qn(t),ot=!0,!1;var l=t.tag,e;if((e=l!==3&&l!==27)&&((e=l===5)&&(e=t.type,e=!(e!=="form"&&e!=="button")||fs(t.type,t.memoizedProps)),e=!e),e&&Gt&&Be(t),Qn(t),l===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(d(317));Gt=H0(t)}else if(l===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(d(317));Gt=H0(t)}else l===27?(l=Gt,Pe(t.type)?(t=gs,gs=null,Gt=t):Gt=l):Gt=nl?Kl(t.stateNode.nextSibling):null;return!0}function da(){Gt=nl=null,ot=!1}function Dc(){var t=qe;return t!==null&&(_l===null?_l=t:_l.push.apply(_l,t),qe=null),t}function Uu(t){qe===null?qe=[t]:qe.push(t)}var Uc=J(null),ma=null,Se=null;function Ye(t,l,e){gt(Uc,l._currentValue),l._currentValue=e}function Te(t){t._currentValue=Uc.current,P(Uc)}function Xn(t,l,e){for(;t!==null;){var a=t.alternate;if((t.childLanes&l)!==l?(t.childLanes|=l,a!==null&&(a.childLanes|=l)):a!==null&&(a.childLanes&l)!==l&&(a.childLanes|=l),t===e)break;t=t.return}}function Rc(t,l,e,a){var u=t.child;for(u!==null&&(u.return=t);u!==null;){var n=u.dependencies;if(n!==null){var i=u.child;n=n.firstContext;t:for(;n!==null;){var c=n;n=u;for(var s=0;s<l.length;s++)if(c.context===l[s]){n.lanes|=e,c=n.alternate,c!==null&&(c.lanes|=e),Xn(n.return,e,t),a||(i=null);break t}n=c.next}}else if(u.tag===18){if(i=u.return,i===null)throw Error(d(341));i.lanes|=e,n=i.alternate,n!==null&&(n.lanes|=e),Xn(i,e,t),i=null}else u.tag===13&&u.memoizedState!==null&&u.memoizedState.dehydrated===null?(u.lanes|=e,i=u.alternate,i!==null&&(i.lanes|=e),Xn(u.return,e,t),i=u.child,i=i!==null?i.sibling:null):i=u.child;if(i!==null)i.return=u;else for(i=u;i!==null;){if(i===t){i=null;break}if(u=i.sibling,u!==null){u.return=i.return,i=u;break}i=i.return}u=i}}function ya(t,l,e,a){t=null;for(var u=l,n=!1;u!==null;){if(!n){if((u.flags&524288)!==0)n=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var i=u.alternate;if(i===null)throw Error(d(387));if(i=i.memoizedProps,i!==null){var c=u.type;Dl(u.pendingProps.value,i.value)||(t!==null?t.push(c):t=[c])}}else if(u===hn.current){if(i=u.alternate,i===null)throw Error(d(387));i.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(t!==null?t.push(hu):t=[hu])}u=u.return}return t!==null&&Rc(l,t,e,a),l.flags|=262144,t!==null}function Vn(t){for(t=t.firstContext;t!==null;){if(!Dl(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function ha(t){ma=t,Se=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function rl(t){return $r(ma,t)}function Zn(t,l){return ma===null&&ha(t),$r(t,l)}function $r(t,l){var e=l._currentValue;if(l={context:l,memoizedValue:e,next:null},Se===null){if(t===null)throw Error(d(308));Se=l,t.dependencies={lanes:0,firstContext:l},t.flags|=524288}else Se=Se.next=l;return e}var B1=typeof AbortController<"u"?AbortController:function(){var t=[],l=this.signal={aborted:!1,addEventListener:function(e,a){t.push(a)}};this.abort=function(){l.aborted=!0,t.forEach(function(e){return e()})}},Y1=r.unstable_scheduleCallback,w1=r.unstable_NormalPriority,Pt={$$typeof:Bt,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Hc(){return{controller:new B1,data:new Map,refCount:0}}function Ru(t){t.refCount--,t.refCount===0&&Y1(w1,function(){t.controller.abort()})}function Fr(t,l){if((t.pendingLanes&4194048)!==0){var e=t.transitionTypes;for(e===null&&(e=t.transitionTypes=[]),t=0;t<l.length;t++){var a=l[t];e.indexOf(a)===-1&&e.push(a)}}}var Hu=null;function G1(t){var l=t.transitionTypes;return t.transitionTypes=null,l}var qu=null,qc=0,va=0,La=null;function Q1(t,l){if(qu===null){var e=qu=[];qc=0,va=Pf(),La={status:"pending",value:void 0,then:function(a){e.push(a)}}}return qc++,l.then(Wr,Wr),l}function Wr(){if(--qc===0&&(Hu=null,qu!==null)){La!==null&&(La.status="fulfilled");var t=qu;qu=null,va=0,La=null;for(var l=0;l<t.length;l++)(0,t[l])()}}function X1(t,l){var e=[],a={status:"pending",value:null,reason:null,then:function(u){e.push(u)}};return t.then(function(){a.status="fulfilled",a.value=l;for(var u=0;u<e.length;u++)(0,e[u])(l)},function(u){for(a.status="rejected",a.reason=u,u=0;u<e.length;u++)(0,e[u])(void 0)}),a}var Ir=y.S;y.S=function(t,l){if(Ld=Al(),typeof l=="object"&&l!==null&&typeof l.then=="function"&&Q1(t,l),Hu!==null)for(var e=su;e!==null;)Fr(e,Hu),e=e.next;if(e=t.types,e!==null){for(var a=su;a!==null;)Fr(a,e),a=a.next;if(va!==0){a=Hu,a===null&&(a=Hu=[]);for(var u=0;u<e.length;u++){var n=e[u];a.indexOf(n)===-1&&a.push(n)}}}Ir!==null&&Ir(t,l)};var ga=J(null);function Bc(){var t=ga.current;return t!==null?t:Yt.pooledCache}function Ln(t,l){l===null?gt(ga,ga.current):gt(ga,l.pool)}function Pr(){var t=Bc();return t===null?null:{parent:Pt._currentValue,pool:t}}var Ka=Error(d(460)),Yc=Error(d(474)),Kn=Error(d(542)),Jn={then:function(){}};function to(t){return t=t.status,t==="fulfilled"||t==="rejected"}function lo(t,l,e){switch(e=t[e],e===void 0?t.push(l):e!==l&&(l.then(ee,ee),l=e),l.status){case"fulfilled":return l.value;case"rejected":throw t=l.reason,ao(t),t===void 0&&!("reason"in l)?Error(d(600)):t;default:if(typeof l.status=="string")l.then(ee,ee);else{if(t=Yt,t!==null&&100<t.shellSuspendCounter)throw Error(d(482));t=l,t.status="pending",t.then(function(a){if(l.status==="pending"){var u=l;u.status="fulfilled",u.value=a}},function(a){if(l.status==="pending"){var u=l;u.status="rejected",u.reason=a}})}switch(l.status){case"fulfilled":return l.value;case"rejected":throw t=l.reason,ao(t),t}throw xa=l,Ka}}function ba(t){try{var l=t._init;return l(t._payload)}catch(e){throw e!==null&&typeof e=="object"&&typeof e.then=="function"?(xa=e,Ka):e}}var xa=null;function eo(){if(xa===null)throw Error(d(459));var t=xa;return xa=null,t}function ao(t){if(t===Ka||t===Kn)throw Error(d(483))}var Ja=null,Bu=0;function kn(t){var l=Bu;return Bu+=1,Ja===null&&(Ja=[]),lo(Ja,t,l)}function we(t,l){l=l.props.ref,t.ref=l!==void 0?l:null}function $n(t,l){throw l.$$typeof===C?Error(d(525)):(t=Object.prototype.toString.call(l),Error(d(31,t==="[object Object]"?"object with keys {"+Object.keys(l).join(", ")+"}":t)))}function uo(t){function l(v,m){if(t){var b=v.deletions;b===null?(v.deletions=[m],v.flags|=16):b.push(m)}}function e(v,m){if(!t)return null;for(;m!==null;)l(v,m),m=m.sibling;return null}function a(v){for(var m=new Map;v!==null;)v.key===null?m.set(v.index,v):m.set(v.key,v),v=v.sibling;return m}function u(v,m){return v=xe(v,m),v.index=0,v.sibling=null,v}function n(v,m,b){return v.index=b,t?(b=v.alternate,b!==null?(b=b.index,b<m?(v.flags|=2,m):b):(v.flags|=134217730,m)):(v.flags|=1048576,m)}function i(v){return t&&v.alternate===null&&(v.flags|=134217730),v}function c(v,m,b,z){return m===null||m.tag!==6?(m=Ac(b,v.mode,z),m.return=v,m):(m=u(m,b),m.return=v,m)}function s(v,m,b,z){var X=b.type;return X===Nt?(v=p(v,m,b.props.children,z,b.key),we(v,b),v):m!==null&&(m.elementType===X||typeof X=="object"&&X!==null&&X.$$typeof===B&&ba(X)===m.type)?(m=u(m,b.props),we(m,b),m.return=v,m):(m=Yn(b.type,b.key,b.props,null,v.mode,z),we(m,b),m.return=v,m)}function g(v,m,b,z){return m===null||m.tag!==4||m.stateNode.containerInfo!==b.containerInfo||m.stateNode.implementation!==b.implementation?(m=jc(b,v.mode,z),m.return=v,m):(m=u(m,b.children||[]),m.return=v,m)}function p(v,m,b,z,X){return m===null||m.tag!==7?(m=oa(b,v.mode,z,X),m.return=v,m):(m=u(m,b),m.return=v,m)}function _(v,m,b){if(typeof m=="string"&&m!==""||typeof m=="number"||typeof m=="bigint")return m=Ac(""+m,v.mode,b),m.return=v,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case At:return b=Yn(m.type,m.key,m.props,null,v.mode,b),we(b,m),b.return=v,b;case zt:return m=jc(m,v.mode,b),m.return=v,m;case B:return m=ba(m),_(v,m,b)}if(vt(m)||Q(m))return m=oa(m,v.mode,b,null),m.return=v,m;if(typeof m.then=="function")return _(v,kn(m),b);if(m.$$typeof===Bt)return _(v,Zn(v,m),b);$n(v,m)}return null}function h(v,m,b,z){var X=m!==null?m.key:null;if(typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint")return X!==null?null:c(v,m,""+b,z);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case At:return b.key===X?s(v,m,b,z):null;case zt:return b.key===X?g(v,m,b,z):null;case B:return b=ba(b),h(v,m,b,z)}if(vt(b)||Q(b))return X!==null?null:p(v,m,b,z,null);if(typeof b.then=="function")return h(v,m,kn(b),z);if(b.$$typeof===Bt)return h(v,m,Zn(v,b),z);$n(v,b)}return null}function x(v,m,b,z,X){if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return v=v.get(b)||null,c(m,v,""+z,X);if(typeof z=="object"&&z!==null){switch(z.$$typeof){case At:return v=v.get(z.key===null?b:z.key)||null,s(m,v,z,X);case zt:return v=v.get(z.key===null?b:z.key)||null,g(m,v,z,X);case B:return z=ba(z),x(v,m,b,z,X)}if(vt(z)||Q(z))return v=v.get(b)||null,p(m,v,z,X,null);if(typeof z.then=="function")return x(v,m,b,kn(z),X);if(z.$$typeof===Bt)return x(v,m,b,Zn(m,z),X);$n(m,z)}return null}function R(v,m,b,z){for(var X=null,xt=null,$=m,lt=m=0,el=null;$!==null&&lt<b.length;lt++){$.index>lt?(el=$,$=null):el=$.sibling;var St=h(v,$,b[lt],z);if(St===null){$===null&&($=el);break}t&&$&&St.alternate===null&&l(v,$),m=n(St,m,lt),xt===null?X=St:xt.sibling=St,xt=St,$=el}if(lt===b.length)return e(v,$),ot&&pe(v,lt),X;if($===null){for(;lt<b.length;lt++)$=_(v,b[lt],z),$!==null&&(m=n($,m,lt),xt===null?X=$:xt.sibling=$,xt=$);return ot&&pe(v,lt),X}for($=a($);lt<b.length;lt++)el=x($,v,lt,b[lt],z),el!==null&&(t&&(St=el.alternate,St!==null&&$.delete(St.key===null?lt:St.key)),m=n(el,m,lt),xt===null?X=el:xt.sibling=el,xt=el);return t&&$.forEach(function(ua){return l(v,ua)}),ot&&pe(v,lt),X}function K(v,m,b,z){if(b==null)throw Error(d(151));for(var X=null,xt=null,$=m,lt=m=0,el=null,St=b.next();$!==null&&!St.done;lt++,St=b.next()){$.index>lt?(el=$,$=null):el=$.sibling;var ua=h(v,$,St.value,z);if(ua===null){$===null&&($=el);break}t&&$&&ua.alternate===null&&l(v,$),m=n(ua,m,lt),xt===null?X=ua:xt.sibling=ua,xt=ua,$=el}if(St.done)return e(v,$),ot&&pe(v,lt),X;if($===null){for(;!St.done;lt++,St=b.next())St=_(v,St.value,z),St!==null&&(m=n(St,m,lt),xt===null?X=St:xt.sibling=St,xt=St);return ot&&pe(v,lt),X}for($=a($);!St.done;lt++,St=b.next())St=x($,v,lt,St.value,z),St!==null&&(t&&(el=St.alternate,el!==null&&$.delete(el.key===null?lt:el.key)),m=n(St,m,lt),xt===null?X=St:xt.sibling=St,xt=St);return t&&$.forEach(function(Th){return l(v,Th)}),ot&&pe(v,lt),X}function ft(v,m,b,z){if(typeof b=="object"&&b!==null&&b.type===Nt&&b.key===null&&b.props.ref===void 0&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case At:t:{for(var X=b.key;m!==null;){if(m.key===X){if(X=b.type,X===Nt){if(m.tag===7){e(v,m.sibling),z=u(m,b.props.children),we(z,b),z.return=v,v=z;break t}}else if(m.elementType===X||typeof X=="object"&&X!==null&&X.$$typeof===B&&ba(X)===m.type){e(v,m.sibling),z=u(m,b.props),we(z,b),z.return=v,v=z;break t}e(v,m);break}else l(v,m);m=m.sibling}b.type===Nt?(z=oa(b.props.children,v.mode,z,b.key),we(z,b),z.return=v,v=z):(z=Yn(b.type,b.key,b.props,null,v.mode,z),we(z,b),z.return=v,v=z)}return i(v);case zt:t:{for(X=b.key;m!==null;){if(m.key===X)if(m.tag===4&&m.stateNode.containerInfo===b.containerInfo&&m.stateNode.implementation===b.implementation){e(v,m.sibling),z=u(m,b.children||[]),z.return=v,v=z;break t}else{e(v,m);break}else l(v,m);m=m.sibling}z=jc(b,v.mode,z),z.return=v,v=z}return i(v);case B:return b=ba(b),ft(v,m,b,z)}if(vt(b))return R(v,m,b,z);if(Q(b)){if(X=Q(b),typeof X!="function")throw Error(d(150));return b=X.call(b),K(v,m,b,z)}if(typeof b.then=="function")return ft(v,m,kn(b),z);if(b.$$typeof===Bt)return ft(v,m,Zn(v,b),z);$n(v,b)}return typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint"?(b=""+b,m!==null&&m.tag===6?(e(v,m.sibling),z=u(m,b),z.return=v,v=z):(e(v,m),z=Ac(b,v.mode,z),z.return=v,v=z),i(v)):e(v,m)}return function(v,m,b,z){try{Bu=0;var X=ft(v,m,b,z);return Ja=null,X}catch($){if($===Ka||$===Kn)throw $;var xt=Nl(29,$,null,v.mode);return xt.lanes=z,xt.return=v,xt}finally{}}}var pa=uo(!0),no=uo(!1),Ge=!1;function wc(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Gc(t,l){t=t.updateQueue,l.updateQueue===t&&(l.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Qe(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Xe(t,l,e){var a=t.updateQueue;if(a===null)return null;if(a=a.shared,(_t&2)!==0){var u=a.pending;return u===null?l.next=l:(l.next=u.next,u.next=l),a.pending=l,l=Bn(t),Xr(t,null,e),l}return qn(t,a,l,e),Bn(t)}function Yu(t,l,e){if(l=l.updateQueue,l!==null&&(l=l.shared,(e&4194048)!==0)){var a=l.lanes;a&=t.pendingLanes,e|=a,l.lanes=e,Ks(t,e)}}function Qc(t,l){var e=t.updateQueue,a=t.alternate;if(a!==null&&(a=a.updateQueue,e===a)){var u=null,n=null;if(e=e.firstBaseUpdate,e!==null){do{var i={lane:e.lane,tag:e.tag,payload:e.payload,callback:null,next:null};n===null?u=n=i:n=n.next=i,e=e.next}while(e!==null);n===null?u=n=l:n=n.next=l}else u=n=l;e={baseState:a.baseState,firstBaseUpdate:u,lastBaseUpdate:n,shared:a.shared,callbacks:a.callbacks},t.updateQueue=e;return}t=e.lastBaseUpdate,t===null?e.firstBaseUpdate=l:t.next=l,e.lastBaseUpdate=l}var Xc=!1;function wu(){if(Xc){var t=La;if(t!==null)throw t}}function Gu(t,l,e,a){Xc=!1;var u=t.updateQueue;Ge=!1;var n=u.firstBaseUpdate,i=u.lastBaseUpdate,c=u.shared.pending;if(c!==null){u.shared.pending=null;var s=c,g=s.next;s.next=null,i===null?n=g:i.next=g,i=s;var p=t.alternate;p!==null&&(p=p.updateQueue,c=p.lastBaseUpdate,c!==i&&(c===null?p.firstBaseUpdate=g:c.next=g,p.lastBaseUpdate=s))}if(n!==null){var _=u.baseState;i=0,p=g=s=null,c=n;do{var h=c.lane&-536870913,x=h!==c.lane;if(x?(bt&h)===h:(a&h)===h){h!==0&&h===va&&(Xc=!0),p!==null&&(p=p.next={lane:0,tag:c.tag,payload:c.payload,callback:null,next:null});t:{var R=t,K=c;h=l;var ft=e;switch(K.tag){case 1:if(R=K.payload,typeof R=="function"){_=R.call(ft,_,h);break t}_=R;break t;case 3:R.flags=R.flags&-65537|128;case 0:if(R=K.payload,h=typeof R=="function"?R.call(ft,_,h):R,h==null)break t;_=F({},_,h);break t;case 2:Ge=!0}}h=c.callback,h!==null&&(t.flags|=64,x&&(t.flags|=8192),x=u.callbacks,x===null?u.callbacks=[h]:x.push(h))}else x={lane:h,tag:c.tag,payload:c.payload,callback:c.callback,next:null},p===null?(g=p=x,s=_):p=p.next=x,i|=h;if(c=c.next,c===null){if(c=u.shared.pending,c===null)break;x=c,c=x.next,x.next=null,u.lastBaseUpdate=x,u.shared.pending=null}}while(!0);p===null&&(s=_),u.baseState=s,u.firstBaseUpdate=g,u.lastBaseUpdate=p,n===null&&(u.shared.lanes=0),$e|=i,t.lanes=i,t.memoizedState=_}}function io(t,l){if(typeof t!="function")throw Error(d(191,t));t.call(l)}function co(t,l){var e=t.callbacks;if(e!==null)for(t.callbacks=null,t=0;t<e.length;t++)io(e[t],l)}var Ve=J(null),Fn=J(0);function fo(t,l){t=Oe,gt(Fn,t),gt(Ve,l),Oe=t|l.baseLanes}function Vc(){gt(Fn,Oe),gt(Ve,Ve.current)}function Zc(){Oe=Fn.current,P(Ve),P(Fn)}var ol=J(null),vl=null;function Ze(t){var l=t.alternate;gt(dl,dl.current&1),gt(ol,t),vl===null&&(l===null||Ve.current!==null||l.memoizedState!==null)&&(vl=t)}function Lc(t){gt(dl,dl.current),gt(ol,t),vl===null&&(vl=t)}function so(t){t.tag===22?(gt(dl,dl.current),gt(ol,t),vl===null&&(vl=t)):Le()}function Le(){gt(dl,dl.current),gt(ol,ol.current)}function Ul(t){P(ol),vl===t&&(vl=null),P(dl)}var dl=J(0);function Qu(t,l){gt(ol,ol.current),gt(dl,l)}function Kc(t){P(dl),P(ol),vl===t&&(vl=null)}function Wn(t){for(var l=t;l!==null;){if(l.tag===13){var e=l.memoizedState;if(e!==null&&(e=e.dehydrated,e===null||hs(e)||vs(e)))return l}else if(l.tag===19&&l.memoizedProps.revealOrder!=="independent"){if((l.flags&128)!==0)return l}else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===t)break;for(;l.sibling===null;){if(l.return===null||l.return===t)return null;l=l.return}l.sibling.return=l.return,l=l.sibling}return null}var Ne=0,ct=null,qt=null,tl=null,In=!1,ka=!1,Sa=!1,Pn=0,Xu=0,$a=null,V1=0;function kt(){throw Error(d(321))}function Jc(t,l){if(l===null)return!1;for(var e=0;e<l.length&&e<t.length;e++)if(!Dl(t[e],l[e]))return!1;return!0}function kc(t,l,e,a,u,n){return Ne=n,ct=l,l.memoizedState=null,l.updateQueue=null,l.lanes=0,y.H=t===null||t.memoizedState===null?Jo:ko,Sa=!1,n=e(a,u),Sa=!1,ka&&(n=oo(l,e,a,u)),ro(t),n}function ro(t){y.H=ii;var l=qt!==null&&qt.next!==null;if(Ne=0,tl=qt=ct=null,In=!1,Xu=0,$a=null,l)throw Error(d(300));t===null||ll||(t=t.dependencies,t!==null&&Vn(t)&&(ll=!0))}function oo(t,l,e,a){ct=t;var u=0;do{if(ka&&($a=null),Xu=0,ka=!1,25<=u)throw Error(d(301));if(u+=1,tl=qt=null,t.updateQueue!=null){var n=t.updateQueue;n.lastEffect=null,n.events=null,n.stores=null,n.memoCache!=null&&(n.memoCache.index=0)}y.H=W1,n=l(e,a)}while(ka);return n}function Z1(){var t=y.H,l=t.useState()[0];return l=typeof l.then=="function"?Vu(l):l,t=t.useState()[0],(qt!==null?qt.memoizedState:null)!==t&&(ct.flags|=1024),l}function $c(){var t=Pn!==0;return Pn=0,t}function Fc(t,l,e){l.updateQueue=t.updateQueue,l.flags&=-2053,t.lanes&=~e}function Wc(t){if(In){for(t=t.memoizedState;t!==null;){var l=t.queue;l!==null&&(l.pending=null),t=t.next}In=!1}Ne=0,tl=qt=ct=null,ka=!1,Xu=Pn=0,$a=null}function xl(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return tl===null?ct.memoizedState=tl=t:tl=tl.next=t,tl}function It(){if(qt===null){var t=ct.alternate;t=t!==null?t.memoizedState:null}else t=qt.next;var l=tl===null?ct.memoizedState:tl.next;if(l!==null)tl=l,qt=t;else{if(t===null)throw ct.alternate===null?Error(d(467)):Error(d(310));qt=t,t={memoizedState:qt.memoizedState,baseState:qt.baseState,baseQueue:qt.baseQueue,queue:qt.queue,next:null},tl===null?ct.memoizedState=tl=t:tl=tl.next=t}return tl}function ti(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Vu(t){var l=Xu;return Xu+=1,$a===null&&($a=[]),t=lo($a,t,l),l=ct,(tl===null?l.memoizedState:tl.next)===null&&(l=l.alternate,y.H=l===null||l.memoizedState===null?Jo:ko),t}function li(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Vu(t);if(t.$$typeof===T)return;if(t.$$typeof===Bt)return rl(t)}throw Error(d(438,String(t)))}function Ic(t){var l=null,e=ct.updateQueue;if(e!==null&&(l=e.memoCache),l==null){var a=ct.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(l={data:a.data.map(function(u){return u.slice()}),index:0})))}if(l==null&&(l={data:[],index:0}),e===null&&(e=ti(),ct.updateQueue=e),e.memoCache=l,e=l.data[l.index],e===void 0)for(e=l.data[l.index]=Array(t),a=0;a<t;a++)e[a]=wt;return l.index++,e}function Ee(t,l){return typeof l=="function"?l(t):l}function ei(t){var l=It();return Pc(l,qt,t)}function Pc(t,l,e){var a=t.queue;if(a===null)throw Error(d(311));a.lastRenderedReducer=e;var u=t.baseQueue,n=a.pending;if(n!==null){if(u!==null){var i=u.next;u.next=n.next,n.next=i}l.baseQueue=u=n,a.pending=null}if(n=t.baseState,u===null)t.memoizedState=n;else{l=u.next;var c=i=null,s=null,g=l,p=!1;do{var _=g.lane&-536870913;if(_!==g.lane?(bt&_)===_:(Ne&_)===_){var h=g.revertLane;if(h===0)s!==null&&(s=s.next={lane:0,revertLane:0,gesture:null,action:g.action,hasEagerState:g.hasEagerState,eagerState:g.eagerState,next:null}),_===va&&(p=!0);else if((Ne&h)===h){g=g.next,h===va&&(p=!0);continue}else _={lane:0,revertLane:g.revertLane,gesture:null,action:g.action,hasEagerState:g.hasEagerState,eagerState:g.eagerState,next:null},s===null?(c=s=_,i=n):s=s.next=_,ct.lanes|=h,$e|=h;_=g.action,Sa&&e(n,_),n=g.hasEagerState?g.eagerState:e(n,_)}else h={lane:_,revertLane:g.revertLane,gesture:g.gesture,action:g.action,hasEagerState:g.hasEagerState,eagerState:g.eagerState,next:null},s===null?(c=s=h,i=n):s=s.next=h,ct.lanes|=_,$e|=_;g=g.next}while(g!==null&&g!==l);if(s===null?i=n:s.next=c,!Dl(n,t.memoizedState)&&(ll=!0,p&&(e=La,e!==null)))throw e;t.memoizedState=n,t.baseState=i,t.baseQueue=s,a.lastRenderedState=n}return u===null&&(a.lanes=0),[t.memoizedState,a.dispatch]}function tf(t){var l=It(),e=l.queue;if(e===null)throw Error(d(311));e.lastRenderedReducer=t;var a=e.dispatch,u=e.pending,n=l.memoizedState;if(u!==null){e.pending=null;var i=u=u.next;do n=t(n,i.action),i=i.next;while(i!==u);Dl(n,l.memoizedState)||(ll=!0),l.memoizedState=n,l.baseQueue===null&&(l.baseState=n),e.lastRenderedState=n}return[n,a]}function mo(t,l,e){var a=ct,u=It(),n=ot;if(n){if(e===void 0)throw Error(d(407));e=e()}else e=l();var i=!Dl((qt||u).memoizedState,e);if(i&&(u.memoizedState=e,ll=!0),u=u.queue,af(vo.bind(null,a,u,t),[t]),t=u.getSnapshot!==l||i||tl!==null&&(tl.memoizedState.tag&1)!==0,Fa(t?9:8,{destroy:void 0},ho.bind(null,a,u,e,l),null),t){if(a.flags|=2048,Yt===null)throw Error(d(349));n||(Ne&127)!==0||yo(a,l,e)}return e}function yo(t,l,e){t.flags|=16384,t={getSnapshot:l,value:e},l=ct.updateQueue,l===null?(l=ti(),ct.updateQueue=l,l.stores=[t]):(e=l.stores,e===null?l.stores=[t]:e.push(t))}function ho(t,l,e,a){l.value=e,l.getSnapshot=a,go(l)&&bo(t)}function vo(t,l,e){return e(function(){go(l)&&bo(t)})}function go(t){var l=t.getSnapshot;t=t.value;try{var e=l();return!Dl(t,e)}catch{return!0}}function bo(t){var l=ra(t,2);l!==null&&Ol(l,t,2)}function lf(t){var l=xl();if(typeof t=="function"){var e=t;if(t=e(),Sa){De(!0);try{e()}finally{De(!1)}}}return l.memoizedState=l.baseState=t,l.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ee,lastRenderedState:t},l}function xo(t,l,e,a){return t.baseState=e,Pc(t,qt,typeof a=="function"?a:Ee)}function L1(t,l,e,a,u){if(ni(t))throw Error(d(485));if(t=l.action,t!==null){var n={payload:u,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(i){n.listeners.push(i)}};y.T!==null?e(!0):n.isTransition=!1,a(n),e=l.pending,e===null?(n.next=l.pending=n,po(l,n)):(n.next=e.next,l.pending=e.next=n)}}function po(t,l){var e=l.action,a=l.payload,u=t.state;if(l.isTransition){var n=y.T,i={};i.types=n!==null?n.types:null,y.T=i;try{var c=e(u,a),s=y.S;s!==null&&s(i,c),So(t,l,c)}catch(g){ef(t,l,g)}finally{n!==null&&i.types!==null&&(n.types=i.types),y.T=n}}else try{n=e(u,a),So(t,l,n)}catch(g){ef(t,l,g)}}function So(t,l,e){e!==null&&typeof e=="object"&&typeof e.then=="function"?e.then(function(a){To(t,l,a)},function(a){return ef(t,l,a)}):To(t,l,e)}function To(t,l,e){l.status="fulfilled",l.value=e,No(l),t.state=e,l=t.pending,l!==null&&(e=l.next,e===l?t.pending=null:(e=e.next,l.next=e,po(t,e)))}function ef(t,l,e){var a=t.pending;if(t.pending=null,a!==null){a=a.next;do l.status="rejected",l.reason=e,No(l),l=l.next;while(l!==a)}t.action=null}function No(t){t=t.listeners;for(var l=0;l<t.length;l++)(0,t[l])()}function Eo(t,l){return l}function zo(t,l){if(ot){var e=Yt.formState;if(e!==null){t:{var a=ct;if(ot){if(Gt){l:{for(var u=Gt,n=Zl;u.nodeType!==8;){if(!n){u=null;break l}if(u=Kl(u.nextSibling),u===null){u=null;break l}}n=u.data,u=n==="F!"||n==="F"?u:null}if(u){Gt=Kl(u.nextSibling),a=u.data==="F!";break t}}Be(a)}a=!1}a&&(l=e[0])}}return e=xl(),e.memoizedState=e.baseState=l,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Eo,lastRenderedState:l},e.queue=a,e=Zo.bind(null,ct,a),a.dispatch=e,a=lf(!1),n=sf.bind(null,ct,!1,a.queue),a=xl(),u={state:l,dispatch:null,action:t,pending:null},a.queue=u,e=L1.bind(null,ct,u,n,e),u.dispatch=e,a.memoizedState=t,[l,e,!1]}function _o(t){var l=It();return Oo(l,qt,t)}function Oo(t,l,e){if(l=Pc(t,l,Eo)[0],t=ei(Ee)[0],typeof l=="object"&&l!==null&&typeof l.then=="function")try{var a=Vu(l)}catch(i){throw i===Ka?Kn:i}else a=l;l=It();var u=l.queue,n=u.dispatch;return e!==l.memoizedState&&(ct.flags|=2048,Fa(9,{destroy:void 0},K1.bind(null,u,e),null)),[a,n,t]}function K1(t,l){t.action=l}function Ao(t){var l=It(),e=qt;if(e!==null)return Oo(l,e,t);It(),l=l.memoizedState,e=It();var a=e.queue.dispatch;return e.memoizedState=t,[l,a,!1]}function Fa(t,l,e,a){return t={tag:t,create:e,deps:a,inst:l,next:null},l=ct.updateQueue,l===null&&(l=ti(),ct.updateQueue=l),e=l.lastEffect,e===null?l.lastEffect=t.next=t:(a=e.next,e.next=t,t.next=a,l.lastEffect=t),t}function jo(){return It().memoizedState}function ai(t,l,e,a){var u=xl();ct.flags|=t,u.memoizedState=Fa(1|l,{destroy:void 0},e,a===void 0?null:a)}function ui(t,l,e,a){var u=It();a=a===void 0?null:a;var n=u.memoizedState.inst;qt!==null&&a!==null&&Jc(a,qt.memoizedState.deps)?u.memoizedState=Fa(l,n,e,a):(ct.flags|=t,u.memoizedState=Fa(1|l,n,e,a))}function Mo(t,l){ai(8390656,8,t,l)}function af(t,l){ui(2048,8,t,l)}function J1(t){ct.flags|=4;var l=ct.updateQueue;if(l===null)l=ti(),ct.updateQueue=l,l.events=[t];else{var e=l.events;e===null?l.events=[t]:e.push(t)}}function Co(t){var l=It().memoizedState;return J1({ref:l,nextImpl:t}),function(){if((_t&2)!==0)throw Error(d(440));return l.impl.apply(void 0,arguments)}}function Do(t,l){return ui(4,2,t,l)}function Uo(t,l){return ui(4,4,t,l)}function Ro(t,l){if(typeof l=="function"){t=t();var e=l(t);return function(){typeof e=="function"?e():l(null)}}if(l!=null)return t=t(),l.current=t,function(){l.current=null}}function Ho(t,l,e){e=e!=null?e.concat([t]):null,ui(4,4,Ro.bind(null,l,t),e)}function uf(){}function qo(t,l){var e=It();l=l===void 0?null:l;var a=e.memoizedState;return l!==null&&Jc(l,a[1])?a[0]:(e.memoizedState=[t,l],t)}function Bo(t,l){var e=It();l=l===void 0?null:l;var a=e.memoizedState;if(l!==null&&Jc(l,a[1]))return a[0];if(a=t(),Sa){De(!0);try{t()}finally{De(!1)}}return e.memoizedState=[a,l],a}function nf(t,l,e){return e===void 0||(Ne&1073741824)!==0&&(bt&261930)===0?t.memoizedState=l:(t.memoizedState=e,t=Jd(),ct.lanes|=t,$e|=t,e)}function Yo(t,l,e,a){return Dl(e,l)?e:Ve.current!==null?(t=nf(t,e,a),Dl(t,l)||(ll=!0),t):(Ne&106)===0||(Ne&1073741824)!==0&&(bt&261930)===0?(ll=!0,t.memoizedState=e):(t=Jd(),ct.lanes|=t,$e|=t,l)}function wo(t,l,e,a,u){var n=O.p;O.p=n!==0&&8>n?n:8;var i=y.T,c={};c.types=i!==null?i.types:null,y.T=c,sf(t,!1,l,e);try{var s=u(),g=y.S;if(g!==null&&g(c,s),s!==null&&typeof s=="object"&&typeof s.then=="function"){var p=X1(s,a);Zu(t,l,p,Bl(t))}else Zu(t,l,a,Bl(t))}catch(_){Zu(t,l,{then:function(){},status:"rejected",reason:_},Bl())}finally{O.p=n,i!==null&&c.types!==null&&(i.types=c.types),y.T=i}}function k1(){}function cf(t,l,e,a){if(t.tag!==5)throw Error(d(476));var u=Go(t).queue;wo(t,u,l,A,e===null?k1:function(){return Qo(t),e(a)})}function Go(t){var l=t.memoizedState;if(l!==null)return l;l={memoizedState:A,baseState:A,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ee,lastRenderedState:A},next:null};var e={};return l.next={memoizedState:e,baseState:e,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ee,lastRenderedState:e},next:null},t.memoizedState=l,t=t.alternate,t!==null&&(t.memoizedState=l),l}function Qo(t){var l=Go(t);l.next===null&&(l=t.alternate.memoizedState),Zu(t,l.next.queue,{},Bl())}function ff(){return rl(hu)}function Xo(){return It().memoizedState}function Vo(){return It().memoizedState}function $1(t){for(var l=t.return;l!==null;){switch(l.tag){case 24:case 3:var e=Bl();t=Qe(e);var a=Xe(l,t,e);a!==null&&(Ol(a,l,e),Yu(a,l,e)),l={cache:Hc()},t.payload=l;return}l=l.return}}function F1(t,l,e){var a=Bl();e={lane:a,revertLane:0,gesture:null,action:e,hasEagerState:!1,eagerState:null,next:null},ni(t)?Lo(l,e):(e=_c(t,l,e,a),e!==null&&(Ol(e,t,a),Ko(e,l,a)))}function Zo(t,l,e){var a=Bl();Zu(t,l,e,a)}function Zu(t,l,e,a){var u={lane:a,revertLane:0,gesture:null,action:e,hasEagerState:!1,eagerState:null,next:null};if(ni(t))Lo(l,u);else{var n=t.alternate;if(t.lanes===0&&(n===null||n.lanes===0)&&(n=l.lastRenderedReducer,n!==null))try{var i=l.lastRenderedState,c=n(i,e);if(u.hasEagerState=!0,u.eagerState=c,Dl(c,i))return qn(t,l,u,0),Yt===null&&Hn(),!1}catch{}finally{}if(e=_c(t,l,u,a),e!==null)return Ol(e,t,a),Ko(e,l,a),!0}return!1}function sf(t,l,e,a){if(a={lane:2,revertLane:Pf(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},ni(t)){if(l)throw Error(d(479))}else l=_c(t,e,a,2),l!==null&&Ol(l,t,2)}function ni(t){var l=t.alternate;return t===ct||l!==null&&l===ct}function Lo(t,l){ka=In=!0;var e=t.pending;e===null?l.next=l:(l.next=e.next,e.next=l),t.pending=l}function Ko(t,l,e){if((e&4194048)!==0){var a=l.lanes;a&=t.pendingLanes,e|=a,l.lanes=e,Ks(t,e)}}var ii={readContext:rl,use:li,useCallback:kt,useContext:kt,useEffect:kt,useImperativeHandle:kt,useLayoutEffect:kt,useInsertionEffect:kt,useMemo:kt,useReducer:kt,useRef:kt,useState:kt,useDebugValue:kt,useDeferredValue:kt,useTransition:kt,useSyncExternalStore:kt,useId:kt,useHostTransitionStatus:kt,useFormState:kt,useActionState:kt,useOptimistic:kt,useMemoCache:kt,useCacheRefresh:kt,useEffectEvent:kt},Jo={readContext:rl,use:li,useCallback:function(t,l){return xl().memoizedState=[t,l===void 0?null:l],t},useContext:rl,useEffect:Mo,useImperativeHandle:function(t,l,e){e=e!=null?e.concat([t]):null,ai(4194308,4,Ro.bind(null,l,t),e)},useLayoutEffect:function(t,l){return ai(4194308,4,t,l)},useInsertionEffect:function(t,l){ai(4,2,t,l)},useMemo:function(t,l){var e=xl();l=l===void 0?null:l;var a=t();if(Sa){De(!0);try{t()}finally{De(!1)}}return e.memoizedState=[a,l],a},useReducer:function(t,l,e){var a=xl();if(e!==void 0){var u=e(l);if(Sa){De(!0);try{e(l)}finally{De(!1)}}}else u=l;return a.memoizedState=a.baseState=u,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:u},a.queue=t,t=t.dispatch=F1.bind(null,ct,t),[a.memoizedState,t]},useRef:function(t){var l=xl();return t={current:t},l.memoizedState=t},useState:function(t){t=lf(t);var l=t.queue,e=Zo.bind(null,ct,l);return l.dispatch=e,[t.memoizedState,e]},useDebugValue:uf,useDeferredValue:function(t,l){var e=xl();return nf(e,t,l)},useTransition:function(){var t=lf(!1);return t=wo.bind(null,ct,t.queue,!0,!1),xl().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,l,e){var a=ct,u=xl();if(ot){if(e===void 0)throw Error(d(407));e=e()}else{if(e=l(),Yt===null)throw Error(d(349));(bt&127)!==0||yo(a,l,e)}u.memoizedState=e;var n={value:e,getSnapshot:l};return u.queue=n,Mo(vo.bind(null,a,n,t),[t]),a.flags|=2048,Fa(9,{destroy:void 0},ho.bind(null,a,n,e,l),null),e},useId:function(){var t=xl(),l=Yt.identifierPrefix;if(ot){var e=ue,a=ae;e=(a&~(1<<32-Ml(a)-1)).toString(32)+e,l="_"+l+"R_"+e,e=Pn++,0<e&&(l+="H"+e.toString(32)),l+="_"}else e=V1++,l="_"+l+"r_"+e.toString(32)+"_";return t.memoizedState=l},useHostTransitionStatus:ff,useFormState:zo,useActionState:zo,useOptimistic:function(t){var l=xl();l.memoizedState=l.baseState=t;var e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return l.queue=e,l=sf.bind(null,ct,!0,e),e.dispatch=l,[t,l]},useMemoCache:Ic,useCacheRefresh:function(){return xl().memoizedState=$1.bind(null,ct)},useEffectEvent:function(t){var l=xl(),e={impl:t};return l.memoizedState=e,function(){if((_t&2)!==0)throw Error(d(440));return e.impl.apply(void 0,arguments)}}},ko={readContext:rl,use:li,useCallback:qo,useContext:rl,useEffect:af,useImperativeHandle:Ho,useInsertionEffect:Do,useLayoutEffect:Uo,useMemo:Bo,useReducer:ei,useRef:jo,useState:function(){return ei(Ee)},useDebugValue:uf,useDeferredValue:function(t,l){var e=It();return Yo(e,qt.memoizedState,t,l)},useTransition:function(){var t=ei(Ee)[0],l=It().memoizedState;return[typeof t=="boolean"?t:Vu(t),l]},useSyncExternalStore:mo,useId:Xo,useHostTransitionStatus:ff,useFormState:_o,useActionState:_o,useOptimistic:function(t,l){var e=It();return xo(e,qt,t,l)},useMemoCache:Ic,useCacheRefresh:Vo,useEffectEvent:Co},W1={readContext:rl,use:li,useCallback:qo,useContext:rl,useEffect:af,useImperativeHandle:Ho,useInsertionEffect:Do,useLayoutEffect:Uo,useMemo:Bo,useReducer:tf,useRef:jo,useState:function(){return tf(Ee)},useDebugValue:uf,useDeferredValue:function(t,l){var e=It();return qt===null?nf(e,t,l):Yo(e,qt.memoizedState,t,l)},useTransition:function(){var t=tf(Ee)[0],l=It().memoizedState;return[typeof t=="boolean"?t:Vu(t),l]},useSyncExternalStore:mo,useId:Xo,useHostTransitionStatus:ff,useFormState:Ao,useActionState:Ao,useOptimistic:function(t,l){var e=It();return qt!==null?xo(e,qt,t,l):(e.baseState=t,[t,e.queue.dispatch])},useMemoCache:Ic,useCacheRefresh:Vo,useEffectEvent:Co};function rf(t,l,e,a){l=t.memoizedState,e=e(a,l),e=e==null?l:F({},l,e),t.memoizedState=e,t.lanes===0&&(t.updateQueue.baseState=e)}var of={enqueueSetState:function(t,l,e){t=t._reactInternals;var a=Bl(),u=Qe(a);u.payload=l,e!=null&&(u.callback=e),l=Xe(t,u,a),l!==null&&(Ol(l,t,a),Yu(l,t,a))},enqueueReplaceState:function(t,l,e){t=t._reactInternals;var a=Bl(),u=Qe(a);u.tag=1,u.payload=l,e!=null&&(u.callback=e),l=Xe(t,u,a),l!==null&&(Ol(l,t,a),Yu(l,t,a))},enqueueForceUpdate:function(t,l){t=t._reactInternals;var e=Bl(),a=Qe(e);a.tag=2,l!=null&&(a.callback=l),l=Xe(t,a,e),l!==null&&(Ol(l,t,e),Yu(l,t,e))}};function $o(t,l,e,a,u,n,i){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(a,n,i):l.prototype&&l.prototype.isPureReactComponent?!Mu(e,a)||!Mu(u,n):!0}function Fo(t,l,e,a){t=l.state,typeof l.componentWillReceiveProps=="function"&&l.componentWillReceiveProps(e,a),typeof l.UNSAFE_componentWillReceiveProps=="function"&&l.UNSAFE_componentWillReceiveProps(e,a),l.state!==t&&of.enqueueReplaceState(l,l.state,null)}function Ta(t,l){var e=l;if("ref"in l){e={};for(var a in l)a!=="ref"&&(e[a]=l[a])}if(t=t.defaultProps){e===l&&(e=F({},e));for(var u in t)e[u]===void 0&&(e[u]=t[u])}return e}function Wo(t){Rn(t)}function Io(t){console.error(t)}function Po(t){Rn(t)}function ci(t,l){try{var e=t.onUncaughtError;e(l.value,{componentStack:l.stack})}catch(a){setTimeout(function(){throw a})}}function td(t,l,e){try{var a=t.onCaughtError;a(e.value,{componentStack:e.stack,errorBoundary:l.tag===1?l.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function df(t,l,e){return e=Qe(e),e.tag=3,e.payload={element:null},e.callback=function(){ci(t,l)},e}function ld(t){return t=Qe(t),t.tag=3,t}function ed(t,l,e,a){var u=e.type.getDerivedStateFromError;if(typeof u=="function"){var n=a.value;t.payload=function(){return u(n)},t.callback=function(){td(l,e,a)}}var i=e.stateNode;i!==null&&typeof i.componentDidCatch=="function"&&(t.callback=function(){td(l,e,a),typeof u!="function"&&(Fe===null?Fe=new Set([this]):Fe.add(this));var c=a.stack;this.componentDidCatch(a.value,{componentStack:c!==null?c:""})})}function I1(t,l,e,a,u){if(e.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(l=e.alternate,l!==null&&ya(l,e,u,!0),e=ol.current,e!==null){switch(e.tag){case 31:case 13:case 19:return vl===null?Ai():e.alternate===null&&$t===0&&($t=3),e.flags&=-257,e.flags|=65536,e.lanes=u,a===Jn?e.flags|=16384:(l=e.updateQueue,l===null?e.updateQueue=new Set([a]):l.add(a),Ff(t,a,u)),!1;case 22:return e.flags|=65536,a===Jn?e.flags|=16384:(l=e.updateQueue,l===null?(l={transitions:null,markerInstances:null,retryQueue:new Set([a])},e.updateQueue=l):(e=l.retryQueue,e===null?l.retryQueue=new Set([a]):e.add(a)),Ff(t,a,u)),!1}throw Error(d(435,e.tag))}return Ff(t,a,u),Ai(),!1}if(ot)return l=ol.current,l!==null?((l.flags&65536)===0&&(l.flags|=256),l.flags|=65536,l.lanes=u,a!==Cc&&(t=Error(d(422),{cause:a}),Uu(Ql(t,e)))):(a!==Cc&&(l=Error(d(423),{cause:a}),Uu(Ql(l,e))),t=t.current.alternate,t.flags|=65536,u&=-u,t.lanes|=u,a=Ql(a,e),u=df(t.stateNode,a,u),Qc(t,u),$t!==4&&($t=2)),!1;var n=Error(d(520),{cause:a});if(n=Ql(n,e),Iu===null?Iu=[n]:Iu.push(n),$t!==4&&($t=2),l===null)return!0;a=Ql(a,e),e=l;do{switch(e.tag){case 3:return e.flags|=65536,t=u&-u,e.lanes|=t,t=df(e.stateNode,a,t),Qc(e,t),!1;case 1:if(l=e.type,n=e.stateNode,(e.flags&128)===0&&(typeof l.getDerivedStateFromError=="function"||n!==null&&typeof n.componentDidCatch=="function"&&(Fe===null||!Fe.has(n))))return e.flags|=65536,u&=-u,e.lanes|=u,u=ld(u),ed(u,t,e,a),Qc(e,u),!1;break;case 22:if(e.memoizedState!==null)return e.flags|=65536,!1}e=e.return}while(e!==null);return!1}var mf=Error(d(461)),ll=!1;function al(t,l,e,a){l.child=t===null?no(l,null,e,a):pa(l,t.child,e,a)}function ad(t,l,e,a,u){e=e.render;var n=l.ref;if("ref"in a){var i={};for(var c in a)c!=="ref"&&(i[c]=a[c])}else i=a;return ha(l),a=kc(t,l,e,i,n,u),c=$c(),t!==null&&!ll?(Fc(t,l,u),ze(t,l,u)):(ot&&c&&Gn(l),l.flags|=1,al(t,l,a,u),l.child)}function ud(t,l,e,a,u){if(t===null){var n=e.type;return typeof n=="function"&&!Oc(n)&&n.defaultProps===void 0&&e.compare===null?(l.tag=15,l.type=n,nd(t,l,n,a,u)):(t=Yn(e.type,null,a,l,l.mode,u),t.ref=l.ref,t.return=l,l.child=t)}if(n=t.child,!Sf(t,u)){var i=n.memoizedProps;if(e=e.compare,e=e!==null?e:Mu,e(i,a)&&t.ref===l.ref)return ze(t,l,u)}return l.flags|=1,t=xe(n,a),t.ref=l.ref,t.return=l,l.child=t}function nd(t,l,e,a,u){if(t!==null){var n=t.memoizedProps;if(Mu(n,a)&&t.ref===l.ref)if(ll=!1,l.pendingProps=a=n,Sf(t,u))(t.flags&131072)!==0&&(ll=!0);else return l.lanes=t.lanes,ze(t,l,u)}return yf(t,l,e,a,u)}function id(t,l,e,a){var u=a.children,n=t!==null?t.memoizedState:null;if(t===null&&l.stateNode===null&&(l.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((l.flags&128)!==0){if(n=n!==null?n.baseLanes|e:e,t!==null){for(a=l.child=t.child,u=0;a!==null;)u=u|a.lanes|a.childLanes,a=a.sibling;a=u&~n}else a=0,l.child=null;return cd(t,l,n,e,a)}if((e&536870912)!==0)l.memoizedState={baseLanes:0,cachePool:null},t!==null&&Ln(l,n!==null?n.cachePool:null),n!==null?fo(l,n):Vc(),so(l);else return a=l.lanes=536870912,cd(t,l,n!==null?n.baseLanes|e:e,e,a)}else n!==null?(Ln(l,n.cachePool),fo(l,n),Le(),l.memoizedState=null):(t!==null&&Ln(l,null),Vc(),Le());return al(t,l,u,e),l.child}function Lu(t,l){return t!==null&&t.tag===22||l.stateNode!==null||(l.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.sibling}function cd(t,l,e,a,u){var n=Bc();return n=n===null?null:{parent:Pt._currentValue,pool:n},l.memoizedState={baseLanes:e,cachePool:n},t!==null&&Ln(l,null),Vc(),so(l),t!==null&&ya(t,l,a,!0),l.childLanes=u,null}function fi(t,l){return l=si({mode:l.mode,children:l.children},t.mode),l.ref=t.ref,t.child=l,l.return=t,l}function fd(t,l,e){return pa(l,t.child,null,e),t=fi(l,l.pendingProps),t.flags|=2,Ul(l),l.memoizedState=null,t}function P1(t,l,e){var a=l.pendingProps,u=(l.flags&128)!==0;if(l.flags&=-129,t===null){if(ot){if(a.mode==="hidden")return t=fi(l,a),l.lanes=536870912,t.memoizedState={baseLanes:0,cachePool:null},Lu(null,t);if(Lc(l),(t=Gt)?(t=R0(t,Zl),t=t!==null&&t.data==="&"?t:null,t!==null&&(l.memoizedState={dehydrated:t,treeContext:He!==null?{id:ae,overflow:ue}:null,retryLane:536870912,hydrationErrors:null},e=Zr(t),e.return=l,l.child=e,nl=l,Gt=null)):t=null,t===null)throw Be(l);return l.lanes=536870912,null}return fi(l,a)}var n=t.memoizedState;if(n!==null){var i=n.dehydrated;if(Lc(l),u)if(l.flags&256)l.flags&=-257,l=fd(t,l,e);else if(l.memoizedState!==null)l.child=t.child,l.flags|=128,l=null;else throw Error(d(558));else if(ll||ya(t,l,e,!1),u=(e&t.childLanes)!==0,ll||u){if(Ve.current===null){if(a=Yt,a!==null&&(i=Js(a,e),i!==0&&i!==n.retryLane))throw n.retryLane=i,ra(t,i),Ol(a,t,i),mf;Ai()}l=fd(t,l,e)}else t=n.treeContext,Gt=Kl(i.nextSibling),nl=l,ot=!0,qe=null,Zl=!1,t!==null&&Jr(l,t),l=fi(l,a),l.flags|=134221824;return l}return t=xe(t.child,{mode:a.mode,children:a.children}),t.ref=l.ref,l.child=t,t.return=l,t}function Wa(t,l){var e=l.ref;if(e===null)t!==null&&t.ref!==null&&(l.flags|=4194816);else{if(typeof e!="function"&&typeof e!="object")throw Error(d(284));(t===null||t.ref!==e)&&(l.flags|=4194816)}}function yf(t,l,e,a,u){return ha(l),e=kc(t,l,e,a,void 0,u),a=$c(),t!==null&&!ll?(Fc(t,l,u),ze(t,l,u)):(ot&&a&&Gn(l),l.flags|=1,al(t,l,e,u),l.child)}function sd(t,l,e,a,u,n){return ha(l),l.updateQueue=null,e=oo(l,a,e,u),ro(t),a=$c(),t!==null&&!ll?(Fc(t,l,n),ze(t,l,n)):(ot&&a&&Gn(l),l.flags|=1,al(t,l,e,n),l.child)}function rd(t,l,e,a,u){if(ha(l),l.stateNode===null){var n=Qa,i=e.contextType;typeof i=="object"&&i!==null&&(n=rl(i)),n=new e(a,n),l.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,n.updater=of,l.stateNode=n,n._reactInternals=l,n=l.stateNode,n.props=a,n.state=l.memoizedState,n.refs={},wc(l),i=e.contextType,n.context=typeof i=="object"&&i!==null?rl(i):Qa,n.state=l.memoizedState,i=e.getDerivedStateFromProps,typeof i=="function"&&(rf(l,e,i,a),n.state=l.memoizedState),typeof e.getDerivedStateFromProps=="function"||typeof n.getSnapshotBeforeUpdate=="function"||typeof n.UNSAFE_componentWillMount!="function"&&typeof n.componentWillMount!="function"||(i=n.state,typeof n.componentWillMount=="function"&&n.componentWillMount(),typeof n.UNSAFE_componentWillMount=="function"&&n.UNSAFE_componentWillMount(),i!==n.state&&of.enqueueReplaceState(n,n.state,null),Gu(l,a,n,u),wu(),n.state=l.memoizedState),typeof n.componentDidMount=="function"&&(l.flags|=4194308),a=!0}else if(t===null){n=l.stateNode;var c=l.memoizedProps,s=Ta(e,c);n.props=s;var g=n.context,p=e.contextType;i=Qa,typeof p=="object"&&p!==null&&(i=rl(p));var _=e.getDerivedStateFromProps;p=typeof _=="function"||typeof n.getSnapshotBeforeUpdate=="function",c=l.pendingProps!==c,p||typeof n.UNSAFE_componentWillReceiveProps!="function"&&typeof n.componentWillReceiveProps!="function"||(c||g!==i)&&Fo(l,n,a,i),Ge=!1;var h=l.memoizedState;n.state=h,Gu(l,a,n,u),wu(),g=l.memoizedState,c||h!==g||Ge?(typeof _=="function"&&(rf(l,e,_,a),g=l.memoizedState),(s=Ge||$o(l,e,s,a,h,g,i))?(p||typeof n.UNSAFE_componentWillMount!="function"&&typeof n.componentWillMount!="function"||(typeof n.componentWillMount=="function"&&n.componentWillMount(),typeof n.UNSAFE_componentWillMount=="function"&&n.UNSAFE_componentWillMount()),typeof n.componentDidMount=="function"&&(l.flags|=4194308)):(typeof n.componentDidMount=="function"&&(l.flags|=4194308),l.memoizedProps=a,l.memoizedState=g),n.props=a,n.state=g,n.context=i,a=s):(typeof n.componentDidMount=="function"&&(l.flags|=4194308),a=!1)}else{n=l.stateNode,Gc(t,l),i=l.memoizedProps,p=Ta(e,i),n.props=p,_=l.pendingProps,h=n.context,g=e.contextType,s=Qa,typeof g=="object"&&g!==null&&(s=rl(g)),c=e.getDerivedStateFromProps,(g=typeof c=="function"||typeof n.getSnapshotBeforeUpdate=="function")||typeof n.UNSAFE_componentWillReceiveProps!="function"&&typeof n.componentWillReceiveProps!="function"||(i!==_||h!==s)&&Fo(l,n,a,s),Ge=!1,h=l.memoizedState,n.state=h,Gu(l,a,n,u),wu();var x=l.memoizedState;i!==_||h!==x||Ge||t!==null&&t.dependencies!==null&&Vn(t.dependencies)?(typeof c=="function"&&(rf(l,e,c,a),x=l.memoizedState),(p=Ge||$o(l,e,p,a,h,x,s)||t!==null&&t.dependencies!==null&&Vn(t.dependencies))?(g||typeof n.UNSAFE_componentWillUpdate!="function"&&typeof n.componentWillUpdate!="function"||(typeof n.componentWillUpdate=="function"&&n.componentWillUpdate(a,x,s),typeof n.UNSAFE_componentWillUpdate=="function"&&n.UNSAFE_componentWillUpdate(a,x,s)),typeof n.componentDidUpdate=="function"&&(l.flags|=4),typeof n.getSnapshotBeforeUpdate=="function"&&(l.flags|=1024)):(typeof n.componentDidUpdate!="function"||i===t.memoizedProps&&h===t.memoizedState||(l.flags|=4),typeof n.getSnapshotBeforeUpdate!="function"||i===t.memoizedProps&&h===t.memoizedState||(l.flags|=1024),l.memoizedProps=a,l.memoizedState=x),n.props=a,n.state=x,n.context=s,a=p):(typeof n.componentDidUpdate!="function"||i===t.memoizedProps&&h===t.memoizedState||(l.flags|=4),typeof n.getSnapshotBeforeUpdate!="function"||i===t.memoizedProps&&h===t.memoizedState||(l.flags|=1024),a=!1)}return n=a,Wa(t,l),a=(l.flags&128)!==0,n||a?(n=l.stateNode,e=a&&typeof e.getDerivedStateFromError!="function"?null:n.render(),l.flags|=1,t!==null&&a?(l.child=pa(l,t.child,null,u),l.child=pa(l,null,e,u)):al(t,l,e,u),l.memoizedState=n.state,t=l.child):t=ze(t,l,u),t}function od(t,l,e,a){return da(),l.flags|=256,al(t,l,e,a),l.child}var hf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function vf(t){return{baseLanes:t,cachePool:Pr()}}function gf(t,l,e){return t=t!==null?t.childLanes&~e:0,l&&(t|=ql),t}function dd(t,l,e){var a=l.pendingProps,u=!1,n=(l.flags&128)!==0,i;if((i=n)||(i=t!==null&&t.memoizedState===null?!1:(dl.current&2)!==0),i&&(u=!0,l.flags&=-129),i=(l.flags&32)!==0,l.flags&=-33,t===null){if(ot){if(u?Ze(l):Le(),(t=Gt)?(t=R0(t,Zl),t=t!==null&&t.data!=="&"?t:null,t!==null&&(l.memoizedState={dehydrated:t,treeContext:He!==null?{id:ae,overflow:ue}:null,retryLane:536870912,hydrationErrors:null},e=Zr(t),e.return=l,l.child=e,nl=l,Gt=null)):t=null,t===null)throw Be(l);return vs(t)?l.lanes=32:l.lanes=536870912,null}return n=a.children,a=a.fallback,u?(Le(),u=l.mode,n=si({mode:"hidden",children:n},u),a=oa(a,u,e,null),n.return=l,a.return=l,n.sibling=a,l.child=n,a=l.child,a.memoizedState=vf(e),a.childLanes=gf(t,i,e),l.memoizedState=hf,Lu(null,a)):(Ze(l),bf(l,n))}var c=t.memoizedState;if(c!==null){var s=c.dehydrated;if(s!==null)return ty(t,l,n,i,a,s,c,e)}return u?(Le(),u=a.fallback,n=l.mode,c=t.child,s=c.sibling,a=xe(c,{mode:"hidden",children:a.children}),a.subtreeFlags=c.subtreeFlags&1206910976,s!==null?u=xe(s,u):(u=oa(u,n,e,null),u.flags|=2),u.return=l,a.return=l,a.sibling=u,l.child=a,Lu(null,a),a=l.child,u=t.child.memoizedState,u===null?u=vf(e):(n=u.cachePool,n!==null?(c=Pt._currentValue,n=n.parent!==c?{parent:c,pool:c}:n):n=Pr(),u={baseLanes:u.baseLanes|e,cachePool:n}),a.memoizedState=u,a.childLanes=gf(t,i,e),l.memoizedState=hf,Lu(t.child,a)):(Ze(l),e=t.child,t=e.sibling,e=xe(e,{mode:"visible",children:a.children}),e.return=l,e.sibling=null,t!==null&&(i=l.deletions,i===null?(l.deletions=[t],l.flags|=16):i.push(t)),l.child=e,l.memoizedState=null,e)}function bf(t,l){return l=si({mode:"visible",children:l},t.mode),l.return=t,t.child=l}function si(t,l){return t=Nl(22,t,null,l),t.lanes=0,t}function ri(t,l,e){return pa(l,t.child,null,e),t=bf(l,l.pendingProps.children),t.flags|=2,l.memoizedState=null,t}function ty(t,l,e,a,u,n,i,c){if(e)return l.flags&256?(Ze(l),l.flags&=-257,ri(t,l,c)):l.memoizedState!==null?(Le(),l.child=t.child,l.flags|=128,null):(Le(),n=u.fallback,i=l.mode,u=si({mode:"visible",children:u.children},i),n=oa(n,i,c,null),n.flags|=2,u.return=l,n.return=l,u.sibling=n,l.child=u,pa(l,t.child,null,c),u=l.child,u.memoizedState=vf(c),u.childLanes=gf(t,a,c),l.memoizedState=hf,Lu(null,u));if(Ze(l),vs(n)){if(a=n.nextSibling&&n.nextSibling.dataset,a)var s=a.dgst;return a=s,a!==""&&(u=Error(d(419)),u.stack="",u.digest=a,Uu({value:u,source:null,stack:null})),ri(t,l,c)}if(ll||ya(t,l,c,!1),a=(c&t.childLanes)!==0,ll||a){if(Ve.current!==null)return ri(t,l,c);if(a=Yt,a!==null&&(u=Js(a,c),u!==0&&u!==i.retryLane))throw i.retryLane=u,ra(t,u),Ol(a,t,u),mf;return hs(n)||Ai(),ri(t,l,c)}return hs(n)?(l.flags|=192,l.child=t.child,null):(t=i.treeContext,Gt=Kl(n.nextSibling),nl=l,ot=!0,qe=null,Zl=!1,t!==null&&Jr(l,t),l=bf(l,u.children),l.flags|=134221824,l)}function md(t,l,e){t.lanes|=l;var a=t.alternate;a!==null&&(a.lanes|=l),Xn(t.return,l,e)}function yd(t){for(var l=null;t!==null;){var e=t.alternate;e!==null&&Wn(e)===null&&(l=t),t=t.sibling}return l}function oi(t,l,e,a,u,n){var i=t.memoizedState;i===null?t.memoizedState={isBackwards:l,rendering:null,renderingStartTime:0,last:a,tail:e,tailMode:u,treeForkCount:n}:(i.isBackwards=l,i.rendering=null,i.renderingStartTime=0,i.last=a,i.tail=e,i.tailMode=u,i.treeForkCount=n)}function xf(t){var l=t.child;for(t.child=null;l!==null;){var e=l.sibling;l.sibling=t.child,t.child=l,l=e}}function pf(t,l,e){var a=l.pendingProps,u=a.revealOrder,n=a.tail;a=a.children;var i=dl.current;if(l.flags&128)return Qu(l,i),null;var c=(i&2)!==0;if(c?(i=i&1|2,l.flags|=128):i&=1,Qu(l,i),u==="backwards"&&t!==null?(xf(t),al(t,l,a,e),xf(t)):al(t,l,a,e),a=ot?Du:0,!c&&t!==null&&(t.flags&128)!==0)t:for(t=l.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&md(t,e,l);else if(t.tag===19)md(t,e,l);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===l)break t;for(;t.sibling===null;){if(t.return===null||t.return===l)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(u){case"backwards":e=yd(l.child),e===null?(u=l.child,l.child=null):(u=e.sibling,e.sibling=null,xf(l)),oi(l,!0,u,null,n,a);break;case"unstable_legacy-backwards":for(e=null,u=l.child,l.child=null;u!==null;){if(t=u.alternate,t!==null&&Wn(t)===null){l.child=u;break}t=u.sibling,u.sibling=e,e=u,u=t}oi(l,!0,e,null,n,a);break;case"together":oi(l,!1,null,null,void 0,a);break;case"independent":l.memoizedState=null;break;default:e=yd(l.child),e===null?(u=l.child,l.child=null):(u=e.sibling,e.sibling=null),oi(l,!1,u,e,n,a)}return l.child}function hd(t,l,e){var a=l.pendingProps;return Ye(l,l.type,a.value),al(t,l,a.children,e),l.child}function ze(t,l,e){if(t!==null&&(l.dependencies=t.dependencies),$e|=l.lanes,(e&l.childLanes)===0)if(t!==null){if(ya(t,l,e,!1),(e&l.childLanes)===0)return null}else return null;if(t!==null&&l.child!==t.child)throw Error(d(153));if(l.child!==null){for(t=l.child,e=xe(t,t.pendingProps),l.child=e,e.return=l;t.sibling!==null;)t=t.sibling,e=e.sibling=xe(t,t.pendingProps),e.return=l;e.sibling=null}return l.child}function Sf(t,l){return(t.lanes&l)!==0?!0:(t=t.dependencies,!!(t!==null&&Vn(t)))}function ly(t,l,e){switch(l.tag){case 3:vn(l,l.stateNode.containerInfo),Ye(l,Pt,t.memoizedState.cache),da();break;case 27:case 5:Ji(l);break;case 4:vn(l,l.stateNode.containerInfo);break;case 10:Ye(l,l.type,l.memoizedProps.value);break;case 31:if(l.memoizedState!==null)return l.flags|=128,Lc(l),null;break;case 13:var a=l.memoizedState;if(a!==null){if(a.dehydrated!==null)return Ze(l),l.flags|=128,null;a=ya(t,l,e,!1);var u=l.child.childLanes;return a||(e&u)!==0?dd(t,l,e):(Ze(l),t=ze(t,l,e),t!==null?t.sibling:null)}Ze(l);break;case 19:if(l.flags&128)return pf(t,l,e);if(u=(t.flags&128)!==0,a=(e&l.childLanes)!==0,a||(ya(t,l,e,!1),a=(e&l.childLanes)!==0),u){if(a)return pf(t,l,e);l.flags|=128}if(u=l.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),Qu(l,dl.current),a)break;return null;case 22:return l.lanes=0,id(t,l,e,l.pendingProps);case 24:Ye(l,Pt,t.memoizedState.cache)}return ze(t,l,e)}function vd(t,l,e){if(t!==null)if(t.memoizedProps!==l.pendingProps)ll=!0;else{if(!Sf(t,e)&&(l.flags&128)===0)return ll=!1,ly(t,l,e);ll=(t.flags&131072)!==0}else ll=!1,ot&&(l.flags&1048576)!==0&&Kr(l,Du,l.index);switch(l.lanes=0,l.tag){case 16:t:{var a=l.pendingProps;if(t=ba(l.elementType),l.type=t,typeof t=="function")Oc(t)?(a=Ta(t,a),l.tag=1,l=rd(null,l,t,a,e)):(l.tag=0,l=yf(null,l,t,a,e));else{if(t!=null){var u=t.$$typeof;if(u===H){l.tag=11,l=ad(null,l,t,a,e);break t}else if(u===pt){l.tag=14,l=ud(null,l,t,a,e);break t}else if(u===Bt){l.tag=10,l.type=t,l=hd(null,l,e);break t}}throw l=st(t)||t,Error(d(306,l,""))}}return l;case 0:return yf(t,l,l.type,l.pendingProps,e);case 1:return a=l.type,u=Ta(a,l.pendingProps),rd(t,l,a,u,e);case 3:t:{if(vn(l,l.stateNode.containerInfo),t===null)throw Error(d(387));a=l.pendingProps;var n=l.memoizedState;u=n.element,Gc(t,l),Gu(l,a,null,e);var i=l.memoizedState;if(a=i.cache,Ye(l,Pt,a),a!==n.cache&&Rc(l,[Pt],e,!0),wu(),a=i.element,n.isDehydrated)if(n={element:a,isDehydrated:!1,cache:i.cache},l.updateQueue.baseState=n,l.memoizedState=n,l.flags&256){l=od(t,l,a,e);break t}else if(a!==u){u=Ql(Error(d(424)),l),Uu(u),l=od(t,l,a,e);break t}else{switch(t=l.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(Gt=Kl(t.firstChild),nl=l,ot=!0,qe=null,Zl=!0,e=no(l,null,a,e),l.child=e;e;)e.flags=e.flags&-3|134221824,e=e.sibling}else{if(da(),a===u){l=ze(t,l,e);break t}al(t,l,a,e)}l=l.child}return l;case 26:return Wa(t,l),t===null?(e=Q0(l.type,null,l.pendingProps,null))?l.memoizedState=e:ot||(l.stateNode=p0(l.type,l.pendingProps,Me.current,l)):l.memoizedState=Q0(l.type,t.memoizedProps,l.pendingProps,t.memoizedState),null;case 27:return Ji(l),t===null&&ot&&(a=l.stateNode=B0(l.type,l.pendingProps,Me.current),nl=l,Zl=!0,u=Gt,Pe(l.type)?(gs=u,Gt=Kl(a.firstChild)):Gt=u),al(t,l,l.pendingProps.children,e),Wa(t,l),t===null&&(l.flags|=4194304),l.child;case 5:return t===null&&ot&&((u=a=Gt)&&(a=$y(a,l.type,l.pendingProps,Zl),a!==null?(l.stateNode=a,nl=l,Gt=Kl(a.firstChild),Zl=!1,u=!0):u=!1),u||Be(l)),Ji(l),u=l.type,n=l.pendingProps,i=t!==null?t.memoizedProps:null,a=n.children,fs(u,n)?a=null:i!==null&&fs(u,i)&&(l.flags|=32),l.memoizedState!==null&&(u=kc(t,l,Z1,null,null,e),hu._currentValue=u),Wa(t,l),al(t,l,a,e),l.child;case 6:return t===null&&ot&&((t=e=Gt)&&(e=Fy(e,l.pendingProps,Zl),e!==null?(l.stateNode=e,nl=l,Gt=null,t=!0):t=!1),t||Be(l)),null;case 13:return dd(t,l,e);case 4:return vn(l,l.stateNode.containerInfo),a=l.pendingProps,t===null?l.child=pa(l,null,a,e):al(t,l,a,e),l.child;case 11:return ad(t,l,l.type,l.pendingProps,e);case 7:return a=l.pendingProps,Wa(t,l),al(t,l,a,e),l.child;case 8:return al(t,l,l.pendingProps.children,e),l.child;case 12:return al(t,l,l.pendingProps.children,e),l.child;case 10:return hd(t,l,e);case 9:return u=l.type._context,a=l.pendingProps.children,ha(l),u=rl(u),a=a(u),l.flags|=1,al(t,l,a,e),l.child;case 14:return ud(t,l,l.type,l.pendingProps,e);case 15:return nd(t,l,l.type,l.pendingProps,e);case 19:return pf(t,l,e);case 31:return P1(t,l,e);case 22:return id(t,l,e,l.pendingProps);case 24:return ha(l),a=rl(Pt),t===null?(u=Bc(),u===null&&(u=Yt,n=Hc(),u.pooledCache=n,n.refCount++,n!==null&&(u.pooledCacheLanes|=e),u=n),l.memoizedState={parent:a,cache:u},wc(l),Ye(l,Pt,u)):((t.lanes&e)!==0&&(Gc(t,l),Gu(l,null,null,e),wu()),u=t.memoizedState,n=l.memoizedState,u.parent!==a?(u={parent:a,cache:a},l.memoizedState=u,l.lanes===0&&(l.memoizedState=l.updateQueue.baseState=u),Ye(l,Pt,a)):(a=n.cache,Ye(l,Pt,a),a!==u.cache&&Rc(l,[Pt],e,!0))),al(t,l,l.pendingProps.children,e),l.child;case 30:return l.stateNode===null&&(l.stateNode={autoName:null,paired:null,clones:null,ref:null}),a=l.pendingProps,a.name!=null&&a.name!=="auto"?l.flags|=t===null?18882560:18874368:ot&&Gn(l),t!==null&&t.memoizedProps.name!==a.name?l.flags|=4194816:Wa(t,l),al(t,l,a.children,e),l.child;case 29:throw l.pendingProps}throw Error(d(156,l.tag))}function _e(t){t.flags|=4}function Tf(t,l,e,a,u){var n;if((n=(t.mode&32)!==0)&&(n=e===null?L0(l,a):L0(l,a)&&(a.src!==e.src||a.srcSet!==e.srcSet)),n){if(t.flags|=16777216,(u&335544128)===u)if(t.stateNode.complete)t.flags|=8192;else if(Wd())t.flags|=8192;else throw xa=Jn,Yc}else t.flags&=-16777217}function gd(t,l){if(l.type!=="stylesheet"||(l.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!K0(l))if(Wd())t.flags|=8192;else throw xa=Jn,Yc}function di(t,l){l!==null&&(t.flags|=4),t.flags&16384&&(l=t.tag!==22?Zs():536870912,t.lanes|=l,eu|=l)}function Ku(t,l){if(!ot)switch(t.tailMode){case"visible":break;case"collapsed":for(var e=t.tail,a=null;e!==null;)e.alternate!==null&&(a=e),e=e.sibling;a===null?l||t.tail===null?t.tail=null:t.tail.sibling=null:a.sibling=null;break;default:for(l=t.tail,e=null;l!==null;)l.alternate!==null&&(e=l),l=l.sibling;e===null?t.tail=null:e.sibling=null}}function Qt(t){var l=t.alternate!==null&&t.alternate.child===t.child,e=0,a=0;if(l)for(var u=t.child;u!==null;)e|=u.lanes|u.childLanes,a|=u.subtreeFlags&1206910976,a|=u.flags&1206910976,u.return=t,u=u.sibling;else for(u=t.child;u!==null;)e|=u.lanes|u.childLanes,a|=u.subtreeFlags,a|=u.flags,u.return=t,u=u.sibling;return t.subtreeFlags|=a,t.childLanes=e,l}function ey(t,l,e){var a=l.pendingProps;switch(Mc(l),l.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Qt(l),null;case 1:return Qt(l),null;case 3:return e=l.stateNode,a=null,t!==null&&(a=t.memoizedState.cache),l.memoizedState.cache!==a&&(l.flags|=2048),Te(Pt),Aa(),e.pendingContext&&(e.context=e.pendingContext,e.pendingContext=null),(t===null||t.child===null)&&(Za(l)?_e(l):t===null||t.memoizedState.isDehydrated&&(l.flags&256)===0||(l.flags|=1024,Dc())),Qt(l),null;case 26:var u=l.type,n=l.memoizedState;return t===null?(_e(l),n!==null?(Qt(l),gd(l,n)):(Qt(l),Tf(l,u,null,a,e))):n?n!==t.memoizedState?(_e(l),Qt(l),gd(l,n)):(Qt(l),l.flags&=-16777217):(t=t.memoizedProps,t!==a&&_e(l),Qt(l),Tf(l,u,t,a,e)),null;case 27:if(gn(l),e=Me.current,u=l.type,t!==null&&l.stateNode!=null)t.memoizedProps!==a&&_e(l);else{if(!a){if(l.stateNode===null)throw Error(d(166));return Qt(l),l.subtreeFlags&=-33554433,null}t=fl.current,Za(l)?kr(l):(t=B0(u,a,e),l.stateNode=t,_e(l))}return Qt(l),l.subtreeFlags&=-33554433,null;case 5:if(gn(l),u=l.type,t!==null&&l.stateNode!=null)t.memoizedProps!==a&&_e(l);else{if(!a){if(l.stateNode===null)throw Error(d(166));return Qt(l),l.subtreeFlags&=-33554433,null}if(n=fl.current,Za(l))kr(l);else{var i=an(Me.current);switch(n){case 1:n=i.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:n=i.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":n=i.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":n=i.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":n=i.createElement("div"),n.innerHTML="<script><\/script>",n=n.removeChild(n.firstChild);break;case"select":n=typeof a.is=="string"?i.createElement("select",{is:a.is}):i.createElement("select"),a.multiple?n.multiple=!0:a.size&&(n.size=a.size);break;default:n=typeof a.is=="string"?i.createElement(u,{is:a.is}):i.createElement(u)}}n[sl]=l,n[Tl]=a;t:for(i=l.child;i!==null;){if(i.tag===5||i.tag===6)n.appendChild(i.stateNode);else if(i.tag!==4&&i.tag!==27&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===l)break t;for(;i.sibling===null;){if(i.return===null||i.return===l)break t;i=i.return}i.sibling.return=i.return,i=i.sibling}l.stateNode=n;t:switch(yl(n,u,a),u){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break t;case"img":a=!0;break t;default:a=!1}a&&_e(l)}}return Qt(l),l.subtreeFlags&=-33554433,Tf(l,l.type,t===null?null:t.memoizedProps,l.pendingProps,e),null;case 6:if(t&&l.stateNode!=null)t.memoizedProps!==a&&_e(l);else{if(typeof a!="string"&&l.stateNode===null)throw Error(d(166));if(t=Me.current,Za(l)){if(t=l.stateNode,e=l.memoizedProps,a=null,u=nl,u!==null)switch(u.tag){case 27:case 5:a=u.memoizedProps}t[sl]=l,t=!!(t.nodeValue===e||a!==null&&a.suppressHydrationWarning===!0||v0(t.nodeValue,e)),t||Be(l,!0)}else t=an(t).createTextNode(a),t[sl]=l,l.stateNode=t}return Qt(l),null;case 31:if(e=l.memoizedState,t===null||t.memoizedState!==null){if(a=Za(l),e!==null){if(t===null){if(!a)throw Error(d(318));if(t=l.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(d(557));t[sl]=l}else da(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;Qt(l),t=!1}else e=Dc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=e),t=!0;if(!t)return l.flags&256?(Ul(l),l):(Ul(l),null);if((l.flags&128)!==0)throw Error(d(558))}return Qt(l),null;case 13:if(a=l.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(u=Za(l),a!==null&&a.dehydrated!==null){if(t===null){if(!u)throw Error(d(318));if(u=l.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(d(317));u[sl]=l}else da(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;Qt(l),u=!1}else u=Dc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=u),u=!0;if(!u)return l.flags&256?(Ul(l),l):(Ul(l),null)}return Ul(l),(l.flags&128)!==0?(l.lanes=e,l):(e=a!==null,t=t!==null&&t.memoizedState!==null,e&&(a=l.child,u=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(u=a.alternate.memoizedState.cachePool.pool),n=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(n=a.memoizedState.cachePool.pool),n!==u&&(a.flags|=2048)),e!==t&&e&&(l.child.flags|=8192),di(l,l.updateQueue),Qt(l),null);case 4:return Aa(),t===null&&as(l.stateNode.containerInfo),l.flags|=67108864,Qt(l),null;case 10:return Te(l.type),Qt(l),null;case 19:if(Kc(l),a=l.memoizedState,a===null)return Qt(l),null;if(u=(l.flags&128)!==0,n=a.rendering,n===null)if(u)Ku(a,!1);else{if($t!==0||t!==null&&(t.flags&128)!==0)for(t=l.child;t!==null;){if(n=Wn(t),n!==null){for(l.flags|=128,Ku(a,!1),t=n.updateQueue,l.updateQueue=t,di(l,t),l.subtreeFlags=0,t=e,e=l.child;e!==null;)Vr(e,t),e=e.sibling;return Qu(l,dl.current&1|2),ot&&pe(l,a.treeForkCount),l.child}t=t.sibling}a.tail!==null&&Al()>Ei&&(l.flags|=128,u=!0,Ku(a,!1),l.lanes=4194304)}else{if(!u)if(t=Wn(n),t!==null){if(l.flags|=128,u=!0,t=t.updateQueue,l.updateQueue=t,di(l,t),Ku(a,!0),a.tail===null&&a.tailMode!=="collapsed"&&a.tailMode!=="visible"&&!n.alternate&&!ot)return Qt(l),null}else 2*Al()-a.renderingStartTime>Ei&&e!==536870912&&(l.flags|=128,u=!0,Ku(a,!1),l.lanes=4194304);a.isBackwards?(n.sibling=l.child,l.child=n):(t=a.last,t!==null?t.sibling=n:l.child=n,a.last=n)}if(a.tail!==null){t=a.tail;t:{for(e=t;e!==null;){if(e.alternate!==null){e=!1;break t}e=e.sibling}e=!0}return a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Al(),t.sibling=null,n=dl.current,n=u?n&1|2:n&1,a.tailMode==="visible"||a.tailMode==="collapsed"||!e||ot?Qu(l,n):(e=n,gt(ol,l),gt(dl,e),vl===null&&(vl=l)),ot&&pe(l,a.treeForkCount),t}return Qt(l),null;case 22:case 23:return Ul(l),Zc(),a=l.memoizedState!==null,t!==null?t.memoizedState!==null!==a&&(l.flags|=8192):a&&(l.flags|=8192),a?(e&536870912)!==0&&(l.flags&128)===0&&(Qt(l),l.subtreeFlags&6&&(l.flags|=8192)):Qt(l),e=l.updateQueue,e!==null&&di(l,e.retryQueue),e=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),a=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(a=l.memoizedState.cachePool.pool),a!==e&&(l.flags|=2048),t!==null&&P(ga),null;case 24:return e=null,t!==null&&(e=t.memoizedState.cache),l.memoizedState.cache!==e&&(l.flags|=2048),Te(Pt),Qt(l),null;case 25:return null;case 30:return l.flags|=33554432,Qt(l),null}throw Error(d(156,l.tag))}function ay(t,l){switch(Mc(l),l.tag){case 1:return t=l.flags,t&65536?(l.flags=t&-65537|128,l):null;case 3:return Te(Pt),Aa(),t=l.flags,(t&65536)!==0&&(t&128)===0?(l.flags=t&-65537|128,l):null;case 26:case 27:case 5:return gn(l),null;case 31:if(l.memoizedState!==null){if(Ul(l),l.alternate===null)throw Error(d(340));da()}return t=l.flags,t&65536?(l.flags=t&-65537|128,l):null;case 13:if(Ul(l),t=l.memoizedState,t!==null&&t.dehydrated!==null){if(l.alternate===null)throw Error(d(340));da()}return t=l.flags,t&65536?(l.flags=t&-65537|128,l):null;case 19:return Kc(l),t=l.flags,t&65536?(l.flags=t&-65537|128,t=l.memoizedState,t!==null&&(t.rendering=null,t.tail=null),l.flags|=4,l):null;case 4:return Aa(),null;case 10:return Te(l.type),null;case 22:case 23:return Ul(l),Zc(),t!==null&&P(ga),t=l.flags,t&65536?(l.flags=t&-65537|128,l):null;case 24:return Te(Pt),null;case 25:return null;default:return null}}function bd(t,l){switch(Mc(l),l.tag){case 3:Te(Pt),Aa();break;case 26:case 27:case 5:gn(l);break;case 4:Aa();break;case 31:l.memoizedState!==null&&Ul(l);break;case 13:Ul(l);break;case 19:Kc(l);break;case 10:Te(l.type);break;case 22:case 23:Ul(l),Zc(),t!==null&&P(ga);break;case 24:Te(Pt)}}function Ju(t,l){try{var e=l.updateQueue,a=e!==null?e.lastEffect:null;if(a!==null){var u=a.next;e=u;do{if((e.tag&t)===t){a=void 0;var n=e.create,i=e.inst;a=n(),i.destroy=a}e=e.next}while(e!==u)}}catch(c){Ut(l,l.return,c)}}function Ke(t,l,e){try{var a=l.updateQueue,u=a!==null?a.lastEffect:null;if(u!==null){var n=u.next;a=n;do{if((a.tag&t)===t){var i=a.inst,c=i.destroy;if(c!==void 0){i.destroy=void 0,u=l;var s=e,g=c;try{g()}catch(p){Ut(u,s,p)}}}a=a.next}while(a!==n)}}catch(p){Ut(l,l.return,p)}}function xd(t){var l=t.updateQueue;if(l!==null){var e=t.stateNode;try{co(l,e)}catch(a){Ut(t,t.return,a)}}}function pd(t,l,e){e.props=Ta(t.type,t.memoizedProps),e.state=t.memoizedState;try{e.componentWillUnmount()}catch(a){Ut(t,l,a)}}function ne(t,l){try{var e=t.ref;if(e!==null){switch(t.tag){case 26:case 27:case 5:var a=t.stateNode;break;case 30:var u=t.stateNode,n=ge(t.memoizedProps,u);(u.ref===null||u.ref.name!==n)&&(u.ref=O0(n)),a=u.ref;break;case 7:if(t.stateNode===null){var i=new Yl(t);S(t.child,!1,Jy,i,void 0,void 0),t.stateNode=i}a=t.stateNode;break;default:a=t.stateNode}typeof e=="function"?t.refCleanup=e(a):e.current=a}}catch(c){Ut(t,l,c)}}function ml(t,l){var e=t.ref,a=t.refCleanup;if(e!==null)if(typeof a=="function")try{a()}catch(u){Ut(t,l,u)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof e=="function")try{e(null)}catch(u){Ut(t,l,u)}else e.current=null}function mi(t,l){if((t.tag===5||t.tag===27||t.tag===6)&&t.alternate===null&&l!==null)for(var e=0;e<l.length;e++)U0(t.stateNode,l[e])}function Sd(t){for(var l=t.return;l!==null&&(Ef(l)&&U0(t.stateNode,l.stateNode),!Nf(l));)l=l.return}function ku(t){for(var l=t.return;l!==null&&(Ef(l)&&ky(t.stateNode,l.stateNode),!Nf(l));)l=l.return}function Nf(t){return t.tag===5||t.tag===3||t.tag===27}function Ef(t){return t&&t.tag===7&&t.stateNode!==null}function zf(t){var l=t.type,e=t.memoizedProps,a=t.stateNode;try{t:switch(l){case"button":case"input":case"select":case"textarea":e.autoFocus&&a.focus();break t;case"img":e.src?a.src=e.src:e.srcSet&&(a.srcset=e.srcSet)}}catch(u){Ut(t,t.return,u)}}function _f(t,l,e){try{var a=t.stateNode;jy(a,t.type,e,l),a[Tl]=l}catch(u){Ut(t,t.return,u)}}function Td(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Pe(t.type)||t.tag===4}function Of(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Td(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Pe(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Af(t,l,e,a){var u=t.tag;if(u===5||u===6)u=t.stateNode,l?(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e).insertBefore(u,l):(l=e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.appendChild(u),e=e._reactRootContainer,e!=null||l.onclick!==null||(l.onclick=ee)),mi(t,a),Et=!0;else if(u!==4&&(u===27&&(mi(t,a),a=null,Pe(t.type)&&(e=t.stateNode,l=null)),t=t.child,t!==null))for(Af(t,l,e,a),t=t.sibling;t!==null;)Af(t,l,e,a),t=t.sibling}function yi(t,l,e,a){var u=t.tag;if(u===5||u===6)u=t.stateNode,l?e.insertBefore(u,l):e.appendChild(u),mi(t,a),Et=!0;else if(u!==4&&(u===27&&(mi(t,a),a=null,Pe(t.type)&&(e=t.stateNode)),t=t.child,t!==null))for(yi(t,l,e,a),t=t.sibling;t!==null;)yi(t,l,e,a),t=t.sibling}function Nd(t){var l=t.stateNode,e=t.memoizedProps;try{for(var a=t.type,u=l.attributes;u.length;)l.removeAttributeNode(u[0]);yl(l,a,e),l[sl]=t,l[Tl]=e}catch(n){Ut(t,t.return,n)}}var hi=!1,Rl=null;function Ed(t){(t.tag===30||(t.subtreeFlags&33554432)!==0)&&(hi=!0)}var ie=null;function zd(){var t=ie;return ie=null,t}var El=0;function Ia(t,l,e,a,u){return El=0,_d(t.child,l,e,a,u)}function _d(t,l,e,a,u){for(var n=!1;t!==null;){if(t.tag===5){var i=t.stateNode;if(a!==null){var c=os(i);a.push(c),c.view&&(n=!0)}else n||os(i).view&&(n=!0);hi=!0,z0(i,El===0?l:l+"_"+El,e),El++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&u||_d(t.child,l,e,a,u)&&(n=!0));t=t.sibling}return n}function ce(t,l){for(;t!==null;)t.tag===5?_0(t.stateNode,t.memoizedProps):(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&l||ce(t.child,l)),t=t.sibling}function vi(t){if((t.subtreeFlags&18874368)!==0)for(t=t.child;t!==null;){if((t.tag!==22||t.memoizedState===null)&&(vi(t),t.tag===30&&(t.flags&18874368)!==0&&t.stateNode.paired)){var l=t.memoizedProps;if(l.name==null||l.name==="auto")throw Error(d(544));var e=l.name;l=be(l.default,l.share),l!=="none"&&(Ia(t,e,l,null,!1)||ce(t.child,!1))}t=t.sibling}}function jf(t,l){if(t.tag===30){var e=t.stateNode,a=t.memoizedProps,u=ge(a,e),n=be(a.default,e.paired?a.share:a.enter);n!=="none"?Ia(t,u,n,null,!1)?(vi(t),e.paired||l||iu(t,a.onEnter)):ce(t.child,!1):vi(t)}else if((t.subtreeFlags&33554432)!==0)for(t=t.child;t!==null;)jf(t,l),t=t.sibling;else vi(t)}function Mf(t){if(Rl!==null&&Rl.size!==0){var l=Rl;if((t.subtreeFlags&18874368)!==0)for(t=t.child;t!==null;){if(t.tag!==22||t.memoizedState===null){if(t.tag===30&&(t.flags&18874368)!==0){var e=t.memoizedProps,a=e.name;if(a!=null&&a!=="auto"){var u=l.get(a);if(u!==void 0){var n=be(e.default,e.share);if(n!=="none"&&(Ia(t,a,n,null,!1)?(n=t.stateNode,u.paired=n,n.paired=u,iu(t,e.onShare)):ce(t.child,!1)),l.delete(a),l.size===0)break}}}Mf(t)}t=t.sibling}}}function Cf(t){if(t.tag===30){var l=t.memoizedProps,e=ge(l,t.stateNode),a=Rl!==null?Rl.get(e):void 0,u=be(l.default,a!==void 0?l.share:l.exit);u!=="none"&&(Ia(t,e,u,null,!1)?a!==void 0?(u=t.stateNode,a.paired=u,u.paired=a,Rl.delete(e),iu(t,l.onShare)):iu(t,l.onExit):ce(t.child,!1)),Rl!==null&&Mf(t)}else if((t.subtreeFlags&33554432)!==0)for(t=t.child;t!==null;)Cf(t),t=t.sibling;else Rl!==null&&Mf(t)}function Od(t){for(t=t.child;t!==null;){if(t.tag===30){var l=t.memoizedProps,e=ge(l,t.stateNode);l=be(l.default,l.update),t.flags&=-5,l!=="none"&&Ia(t,e,l,t.memoizedState=[],!1)}else(t.subtreeFlags&33554432)!==0&&Od(t);t=t.sibling}}function Df(t){if((t.subtreeFlags&18874368)!==0)for(t=t.child;t!==null;){if(t.tag!==22||t.memoizedState===null){if(t.tag===30&&(t.flags&18874368)!==0){var l=t.stateNode;l.paired!==null&&(l.paired=null,ce(t.child,!1))}Df(t)}t=t.sibling}}function gi(t){if(t.tag===30)t.stateNode.paired=null,ce(t.child,!1),Df(t);else if((t.subtreeFlags&33554432)!==0)for(t=t.child;t!==null;)gi(t),t=t.sibling;else Df(t)}function Ad(t){for(t=t.child;t!==null;)t.tag===30?ce(t.child,!1):(t.subtreeFlags&33554432)!==0&&Ad(t),t=t.sibling}function Uf(t,l,e,a,u,n,i){for(var c=!1;l!==null;){if(l.tag===5){var s=l.stateNode;if(n!==null&&El<n.length){var g=n[El],p=os(s);(g.view||p.view)&&(c=!0);var _;if(_=(t.flags&4)===0)if(p.clip)_=!0;else{_=g.rect;var h=p.rect;_=_.y!==h.y||_.x!==h.x||_.height!==h.height||_.width!==h.width}_&&(t.flags|=4),p.abs?p=!g.abs:(g=g.rect,p=p.rect,p=g.height!==p.height||g.width!==p.width),p&&(t.flags|=32)}else t.flags|=32;(t.flags&4)!==0&&z0(s,El===0?e:e+"_"+El,u),c&&(t.flags&4)!==0||(ie===null&&(ie=[]),ie.push(s,El===0?a:a+"_"+El,l.memoizedProps)),El++}else(l.tag!==22||l.memoizedState===null)&&(l.tag===30&&i?t.flags|=l.flags&32:Uf(t,l.child,e,a,u,n,i)&&(c=!0));l=l.sibling}return c}function jd(t,l){for(t=t.child;t!==null;){if(t.tag===30){var e=t.memoizedProps,a=t.stateNode,u=ge(e,a),n=be(e.default,e.update),i;i=t.memoizedState,t.memoizedState=null,a=t;var c=t.child;El=0,u=Uf(a,c,u,u,n,i,!1),(t.flags&4)!==0&&u&&iu(t,e.onUpdate)}else(t.subtreeFlags&33554432)!==0&&jd(t);t=t.sibling}}var il=!1,jt=!1,fe=!1,Rf=!1,Md=typeof WeakSet=="function"?WeakSet:Set,cl=null,se=!1,$u=!1,bi=!1,Hf=!1;function uy(t,l,e){if(t=t.containerInfo,is=vu,t=Ur(t),pc(t)){if("selectionStart"in t)var a={start:t.selectionStart,end:t.selectionEnd};else t:{a=(a=t.ownerDocument)&&a.defaultView||window;var u=a.getSelection&&a.getSelection();if(u&&u.rangeCount!==0){a=u.anchorNode;var n=u.anchorOffset,i=u.focusNode;u=u.focusOffset;try{a.nodeType,i.nodeType}catch{a=null;break t}var c=0,s=-1,g=-1,p=0,_=0,h=t,x=null;l:for(;;){for(var R;h!==a||n!==0&&h.nodeType!==3||(s=c+n),h!==i||u!==0&&h.nodeType!==3||(g=c+u),h.nodeType===3&&(c+=h.nodeValue.length),(R=h.firstChild)!==null;)x=h,h=R;for(;;){if(h===t)break l;if(x===a&&++p===n&&(s=c),x===i&&++_===u&&(g=c),(R=h.nextSibling)!==null)break;h=x,x=h.parentNode}h=R}a=s===-1||g===-1?null:{start:s,end:g}}else a=null}a=a||{start:0,end:0}}else a=null;for(cs={focusedElem:t,selectionRange:a},vu=!1,e=(e&335544064)===e,cl=l,l=e?9270:1024;cl!==null;){if(t=cl,e&&(a=t.deletions,a!==null))for(n=0;n<a.length;n++)e&&Cf(a[n]);if(t.alternate===null&&(t.flags&2)!==0)e&&Ed(t),xi(e);else{if(t.tag===22){if(a=t.alternate,t.memoizedState!==null){a!==null&&a.memoizedState===null&&e&&Cf(a),xi(e);continue}else if(a!==null&&a.memoizedState!==null){e&&Ed(t),xi(e);continue}}a=t.child,(t.subtreeFlags&l)!==0&&a!==null?(a.return=t,cl=a):(e&&Od(t),xi(e))}}Rl=null}function xi(t){for(;cl!==null;){var l=cl,e=t,a=l.alternate,u=l.flags;switch(l.tag){case 0:case 11:case 15:break;case 1:if((u&1024)!==0&&a!==null){e=void 0,u=a.memoizedProps,a=a.memoizedState;var n=l.stateNode;try{var i=Ta(l.type,u);e=n.getSnapshotBeforeUpdate(i,a),n.__reactInternalSnapshotBeforeUpdate=e}catch(c){Ut(l,l.return,c)}}break;case 3:if((u&1024)!==0){if(a=l.stateNode.containerInfo,e=a.nodeType,e===9)ys(a);else if(e===1)switch(a.nodeName){case"HEAD":case"HTML":case"BODY":ys(a);break;default:a.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:e&&a!==null&&(e=ge(a.memoizedProps,a.stateNode),u=l.memoizedProps,u=be(u.default,u.update),u!=="none"&&Ia(a,e,u,a.memoizedState=[],!0));break;default:if((u&1024)!==0)throw Error(d(163))}if(a=l.sibling,a!==null){a.return=l.return,cl=a;break}cl=l.return}}function Cd(t,l,e){var a=e.flags;switch(e.tag){case 0:case 11:case 15:re(t,e),a&4&&Ju(5,e);break;case 1:if(re(t,e),a&4)if(t=e.stateNode,l===null)try{t.componentDidMount()}catch(i){Ut(e,e.return,i)}else{var u=Ta(e.type,l.memoizedProps);l=l.memoizedState;try{t.componentDidUpdate(u,l,t.__reactInternalSnapshotBeforeUpdate)}catch(i){Ut(e,e.return,i)}}a&64&&xd(e),a&512&&ne(e,e.return);break;case 3:if(re(t,e),a&64&&(t=e.updateQueue,t!==null)){if(l=null,e.child!==null)switch(e.child.tag){case 27:case 5:l=e.child.stateNode;break;case 1:l=e.child.stateNode}try{co(t,l)}catch(i){Ut(e,e.return,i)}}break;case 27:l===null&&a&4&&Nd(e);case 26:case 5:re(t,e),l===null&&a&4&&zf(e),a&512&&ne(e,e.return);break;case 12:re(t,e);break;case 31:re(t,e),a&4&&Hd(t,e);break;case 13:re(t,e),a&4&&qd(t,e),a&64&&(t=e.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(e=vy.bind(null,e),Wy(t,e))));break;case 22:if(a=e.memoizedState!==null||il,!a){var n=l!==null&&l.memoizedState!==null||jt;l=il,u=jt,il=a,(jt=n)&&!u?(a=2,(e.subtreeFlags&8772)!==0&&(a|=1),Il(t,e,a)):re(t,e),il=l,jt=u}break;case 30:re(t,e),a&512&&ne(e,e.return);break;case 7:a&512&&ne(e,e.return);default:re(t,e)}}function qf(t,l){for(t=t.child;t!==null;)Dd(t,l),t=t.sibling}function Dd(t,l){switch(t.tag){case 5:case 26:try{var e=t.stateNode;if(l){var a=e.style;typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none"}else{var u=t.stateNode,n=t.memoizedProps.style,i=n!=null&&n.hasOwnProperty("display")?n.display:null;u.style.display=i==null||typeof i=="boolean"?"":(""+i).trim()}}catch(s){Ut(t,t.return,s)}Bf(t,l);break;case 6:try{t.stateNode.nodeValue=l?"":t.memoizedProps,Et=!0}catch(s){Ut(t,t.return,s)}break;case 18:try{var c=t.stateNode;l?E0(c,!0):E0(t.stateNode,!1)}catch(s){Ut(t,t.return,s)}break;case 22:case 23:t.memoizedState===null&&qf(t,l);break;default:qf(t,l)}}function Bf(t,l){if(t.subtreeFlags&67108864)for(t=t.child;t!==null;){t:{var e=t,a=l;switch(e.tag){case 4:Dd(e,a);break t;case 22:e.memoizedState===null&&Bf(e,a);break t;default:Bf(e,a)}}t=t.sibling}}function Ud(t){var l=t.alternate;l!==null&&(t.alternate=null,Ud(l)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(l=t.stateNode,l!==null&&En(l)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var Vt=null,zl=!1;function Fl(t,l,e){for(e=e.child;e!==null;)Rd(t,l,e),e=e.sibling}function Rd(t,l,e){if(jl&&typeof jl.onCommitFiberUnmount=="function")try{jl.onCommitFiberUnmount(bu,e)}catch{}switch(e.tag){case 26:jt||ml(e,l),Fl(t,l,e),e.memoizedState?e.memoizedState.count--:e.stateNode&&!jt&&(e=e.stateNode,e.parentNode.removeChild(e));break;case 27:jt||ml(e,l),ku(e);var a=Vt,u=zl;Pe(e.type)&&(Vt=e.stateNode,zl=!1),Fl(t,l,e),Y0(e.stateNode,e.type,e.memoizedProps),Vt=a,zl=u;break;case 5:jt||ml(e,l),ku(e);case 6:if(e.tag===6&&ku(e),a=Vt,u=zl,Vt=null,Fl(t,l,e),Vt=a,zl=u,Vt!==null)if(zl)try{(Vt.nodeType===9?Vt.body:Vt.nodeName==="HTML"?Vt.ownerDocument.body:Vt).removeChild(e.stateNode),Et=!0}catch(n){Ut(e,l,n)}else try{Vt.removeChild(e.stateNode),Et=!0}catch(n){Ut(e,l,n)}break;case 18:Vt!==null&&(zl?(t=Vt,N0(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,e.stateNode),gu(t)):N0(Vt,e.stateNode));break;case 4:a=Vt,u=zl,Vt=e.stateNode.containerInfo,zl=!0,Fl(t,l,e),Vt=a,zl=u;break;case 0:case 11:case 14:case 15:Ke(2,e,l),jt||Ke(4,e,l),Fl(t,l,e);break;case 1:jt||(ml(e,l),a=e.stateNode,typeof a.componentWillUnmount=="function"&&pd(e,l,a)),Fl(t,l,e);break;case 21:Fl(t,l,e);break;case 22:jt=(a=jt)||e.memoizedState!==null,Fl(t,l,e),jt=a;break;case 30:ml(e,l),Fl(t,l,e);break;case 7:jt||ml(e,l),Fl(t,l,e);break;default:Fl(t,l,e)}}function Hd(t,l){if(l.memoizedState===null&&(t=l.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{gu(t)}catch(e){Ut(l,l.return,e)}}}function qd(t,l){if(l.memoizedState===null&&(t=l.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{gu(t)}catch(e){Ut(l,l.return,e)}}function ny(t){switch(t.tag){case 31:case 13:case 19:var l=t.stateNode;return l===null&&(l=t.stateNode=new Md),l;case 22:return t=t.stateNode,l=t._retryCache,l===null&&(l=t._retryCache=new Md),l;default:throw Error(d(435,t.tag))}}function pi(t,l){var e=ny(t);l.forEach(function(a){if(!e.has(a)){e.add(a);var u=gy.bind(null,t,a);a.then(u,u)}})}function pl(t,l,e){var a=l.deletions;if(a!==null)for(var u=0;u<a.length;u++){var n=a[u],i=t,c=l,s=c;t:for(;s!==null;){switch(s.tag){case 27:if(Pe(s.type)){Vt=s.stateNode,zl=!1;break t}break;case 5:Vt=s.stateNode,zl=!1;break t;case 3:case 4:Vt=s.stateNode.containerInfo,zl=!0;break t}s=s.return}if(Vt===null)throw Error(d(160));Rd(i,c,n),Vt=null,zl=!1,i=n.alternate,i!==null&&(i.return=null),n.return=null}if(l.subtreeFlags&13886)for(l=l.child;l!==null;)Bd(l,t,e),l=l.sibling}var Wl=null;function Bd(t,l,e){var a=t.alternate,u=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(u&4&&(a=t.updateQueue,a=a!==null?a.events:null,a!==null))for(var n=0;n<a.length;n++){var i=a[n];i.ref.impl=i.nextImpl}pl(l,t,e),Sl(t),u&4&&(Ke(3,t,t.return),Ju(3,t),Ke(5,t,t.return));break;case 1:pl(l,t,e),Sl(t),u&512&&(jt||a===null||ml(a,a.return)),u&64&&il&&(t=t.updateQueue,t!==null&&(l=t.callbacks,l!==null&&(e=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=e===null?l:e.concat(l))));break;case 26:if(n=Wl,pl(l,t,e),Sl(t),u&512&&(jt||a===null||ml(a,a.return)),u&4)if(u=a!==null?a.memoizedState:null,e=t.memoizedState,a===null)if(e===null)if(t.stateNode===null)if(il)t.stateNode=p0(t.type,t.memoizedProps,l.containerInfo,t);else{t:{l=t.type,e=t.memoizedProps,u=n.ownerDocument||n;l:switch(l){case"title":a=u.getElementsByTagName("title")[0],(!a||a[Su]||a[sl]||a.namespaceURI==="http://www.w3.org/2000/svg"||a.hasAttribute("itemprop"))&&(a=u.createElement(l),u.head.insertBefore(a,u.querySelector("head > title"))),yl(a,l,e),a[sl]=t,ul(a),l=a;break t;case"link":if(n=Z0("link","href",u).get(l+(e.href||""))){for(i=0;i<n.length;i++)if(a=n[i],a.getAttribute("href")===(e.href==null||e.href===""?null:e.href)&&a.getAttribute("rel")===(e.rel==null?null:e.rel)&&a.getAttribute("title")===(e.title==null?null:e.title)&&a.getAttribute("crossorigin")===(e.crossOrigin==null?null:e.crossOrigin)){n.splice(i,1);break l}}a=u.createElement(l),yl(a,l,e),u.head.appendChild(a);break;case"meta":if(n=Z0("meta","content",u).get(l+(e.content||""))){for(i=0;i<n.length;i++)if(a=n[i],a.getAttribute("content")===(e.content==null?null:""+e.content)&&a.getAttribute("name")===(e.name==null?null:e.name)&&a.getAttribute("property")===(e.property==null?null:e.property)&&a.getAttribute("http-equiv")===(e.httpEquiv==null?null:e.httpEquiv)&&a.getAttribute("charset")===(e.charSet==null?null:e.charSet)){n.splice(i,1);break l}}a=u.createElement(l),yl(a,l,e),u.head.appendChild(a);break;default:throw Error(d(468,l))}a[sl]=t,ul(a),l=a}t.stateNode=l}else il||Ss(n,t.type,t.stateNode);else t.stateNode=V0(n,e,t.memoizedProps);else u!==e?(u===null?(l=a.stateNode,l===null||jt||l.parentNode.removeChild(l)):u.count--,e===null?il||Ss(n,t.type,t.stateNode):V0(n,e,t.memoizedProps)):e===null&&t.stateNode!==null&&_f(t,t.memoizedProps,a.memoizedProps);break;case 27:pl(l,t,e),Sl(t),u&512&&(jt||a===null||ml(a,a.return)),a!==null&&u&4&&_f(t,t.memoizedProps,a.memoizedProps);break;case 5:if(n=fe,fe=!1,pl(l,t,e),fe=n,Sl(t),u&512&&(jt||a===null||ml(a,a.return)),t.flags&32){l=t.stateNode;try{Ra(l,""),Et=!0}catch(p){Ut(t,t.return,p)}}u&4&&t.stateNode!=null&&(l=t.memoizedProps,_f(t,l,a!==null?a.memoizedProps:l)),u&1024&&(Rf=!0);break;case 6:if(pl(l,t,e),Sl(t),u&4){if(t.stateNode===null)throw Error(d(162));l=t.memoizedProps,e=t.stateNode;try{e.nodeValue=l,Et=!0}catch(p){Ut(t,t.return,p)}}break;case 3:if(Et=!1,Hi=null,n=Wl,Wl=un(l.containerInfo),pl(l,t,e),Wl=n,Sl(t),u&4&&a!==null&&a.memoizedState.isDehydrated)try{gu(l.containerInfo)}catch(p){Ut(t,t.return,p)}Rf&&(Rf=!1,Yd(t)),Et=!1;break;case 4:u=fe,fe=il,a=ar(),n=Wl,Wl=un(t.stateNode.containerInfo),pl(l,t,e),Sl(t),Wl=n,Et&&$u&&(bi=!0),Et=a,fe=u;break;case 12:pl(l,t,e),Sl(t);break;case 31:pl(l,t,e),Sl(t),u&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,pi(t,l)));break;case 13:pl(l,t,e),Sl(t),t.child.flags&8192&&t.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Ni=Al()),u&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,pi(t,l)));break;case 22:n=t.memoizedState!==null,i=a!==null&&a.memoizedState!==null;var c=il,s=jt,g=fe;il=c||n,fe=g||n,jt=s||i,pl(l,t,e),jt=s,fe=g,il=c,Sl(t),u&8192&&(l=t.stateNode,l._visibility=n?l._visibility&-2:l._visibility|1,!n||a===null||i||il||jt||(l=i||jt,e=il,a=jt,il=n||il,jt=l,Je(t,2),il=e,jt=a),!n&&fe||qf(t,n)),u&4&&(l=t.updateQueue,l!==null&&(e=l.retryQueue,e!==null&&(l.retryQueue=null,pi(t,e))));break;case 19:pl(l,t,e),Sl(t),u&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,pi(t,l)));break;case 30:u&512&&(jt||a===null||ml(a,a.return)),u=ar(),n=$u,i=(e&335544064)===e,c=t.memoizedProps,$u=i&&be(c.default,c.update)!=="none",pl(l,t,e),Sl(t),i&&a!==null&&Et&&(t.flags|=4),$u=n,Et=u;break;case 21:break;case 7:u&512&&(jt||a===null||ml(a,a.return)),a&&a.stateNode!==null&&(a.stateNode._fragmentFiber=t);default:pl(l,t,e),Sl(t)}}function Sl(t){var l=t.flags;if(l&2){try{for(var e,a=t.return;a!==null;){if(Td(a)){e=a;break}a=a.return}a=null;for(var u=t.return;u!==null;){if(Ef(u)){var n=u.stateNode;a===null?a=[n]:a.push(n)}if(Nf(u))break;u=u.return}var i=a;if(e==null)throw Error(d(160));switch(e.tag){case 27:var c=e.stateNode,s=Of(t);yi(t,s,c,i);break;case 5:var g=e.stateNode;e.flags&32&&(Ra(g,""),e.flags&=-33);var p=Of(t);yi(t,p,g,i);break;case 3:case 4:var _=e.stateNode.containerInfo,h=Of(t);Af(t,h,_,i);break;default:throw Error(d(161))}}catch(x){Ut(t,t.return,x)}t.flags&=-3}l&4096&&(t.flags&=-4097)}function Yd(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var l=t;Yd(l),l.tag===5&&l.flags&1024&&(l=l.stateNode,vu=!0,l.reset(),vu=!1),t=t.sibling}}function Pa(t,l){if(l.subtreeFlags&9270)for(l=l.child;l!==null;)wd(l,t),l=l.sibling;else jd(l)}function wd(t,l){var e=t.alternate;if(e===null)jf(t,!1);else switch(t.tag){case 3:if(Hf=se=!1,zd(),Pa(l,t),!se&&!bi){if(t=ie,t!==null)for(var a=0;a<t.length;a+=3){e=t[a];var u=t[a+1];_0(e,t[a+2]),e=e.ownerDocument.documentElement,e!==null&&e.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group("+u+")"})}t=l.containerInfo,t=t.nodeType===9?t.documentElement:t.ownerDocument.documentElement,t!==null&&t.style.viewTransitionName===""&&(t.style.viewTransitionName="none",t.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group(root)"}),t.animate({width:[0,0],height:[0,0]},{duration:0,fill:"forwards",pseudoElement:"::view-transition"})),Hf=!0}ie=null;break;case 5:Pa(l,t);break;case 4:a=se,se=!1,Pa(l,t),se&&(bi=!0),se=a;break;case 22:t.memoizedState===null&&(e.memoizedState!==null?jf(t,!1):Pa(l,t));break;case 30:a=se,u=zd(),se=!1,Pa(l,t),se&&(t.flags|=4);var n=t.memoizedProps,i=t.stateNode;l=ge(n,i),i=ge(e.memoizedProps,i);var c=be(n.default,n.update);c==="none"?l=!1:(n=e.memoizedState,e.memoizedState=null,e=t.child,El=0,l=Uf(t,e,l,i,c,n,!0),El!==(n===null?0:n.length)&&(t.flags|=32)),(t.flags&4)!==0&&l?(iu(t,t.memoizedProps.onUpdate),ie=u):u!==null&&(u.push.apply(u,ie),ie=u),se=(t.flags&32)!==0?!0:a;break;default:Pa(l,t)}}function re(t,l){if(l.subtreeFlags&8772)for(l=l.child;l!==null;)Cd(t,l.alternate,l),l=l.sibling}function Je(t,l){for(t=t.child;t!==null;){var e=t,a=l;switch(e.tag){case 0:case 11:case 14:case 15:Ke(4,e,e.return),Je(e,a);break;case 1:ml(e,e.return);var u=e.stateNode;typeof u.componentWillUnmount=="function"&&pd(e,e.return,u),Je(e,a);break;case 27:(a&2)!==0&&Y0(e.stateNode,e.type,e.memoizedProps);case 5:ml(e,e.return),e.tag!==5&&e.tag!==27||ku(e),Je(e,a);break;case 6:ku(e);break;case 26:ml(e,e.return),u=e.stateNode,e.memoizedState!==null||u===null||jt||u.parentNode.removeChild(u),Je(e,a);break;case 22:e.memoizedState===null&&Je(e,a);break;case 30:ml(e,e.return),Je(e,a);break;case 7:ml(e,e.return);default:Je(e,a)}t=t.sibling}}function Il(t,l,e){for(e=(l.subtreeFlags&8772)!==0?e:e&-2,l=l.child;l!==null;){var a=l.alternate,u=t,n=l,i=n.flags,c=(e&1)!==0;switch(n.tag){case 0:case 11:case 15:Il(u,n,e),Ju(4,n);break;case 1:if(Il(u,n,e),a=n,u=a.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(p){Ut(a,a.return,p)}if(a=n,u=a.updateQueue,u!==null){var s=a.stateNode;try{var g=u.shared.hiddenCallbacks;if(g!==null)for(u.shared.hiddenCallbacks=null,u=0;u<g.length;u++)io(g[u],s)}catch(p){Ut(a,a.return,p)}}c&&i&64&&xd(n),ne(n,n.return);break;case 27:(e&2)!==0&&Nd(n);case 5:n.tag!==5&&n.tag!==27||Sd(n),Il(u,n,e),c&&a===null&&i&4&&zf(n),ne(n,n.return);break;case 6:Sd(n);break;case 26:s=n.stateNode,n.memoizedState!==null||s===null||il||Ss(un(s.ownerDocument),n.type,s),Il(u,n,e),c&&a===null&&i&4&&zf(n),ne(n,n.return);break;case 12:Il(u,n,e);break;case 31:Il(u,n,e),c&&i&4&&Hd(u,n);break;case 13:Il(u,n,e),c&&i&4&&qd(u,n);break;case 22:n.memoizedState===null&&Il(u,n,e),ne(n,n.return);break;case 30:Il(u,n,e),ne(n,n.return);break;case 7:ne(n,n.return);default:Il(u,n,e)}l=l.sibling}}function Yf(t,l){var e=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),t=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(t=l.memoizedState.cachePool.pool),t!==e&&(t!=null&&t.refCount++,e!=null&&Ru(e))}function wf(t,l){t=null,l.alternate!==null&&(t=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==t&&(l.refCount++,t!=null&&Ru(t))}function Ll(t,l,e,a){var u=(e&335544064)===e;if(l.subtreeFlags&(u?10262:10256))for(l=l.child;l!==null;)Gd(t,l,e,a),l=l.sibling;else u&&Ad(l)}function Gd(t,l,e,a){var u=(e&335544064)===e;u&&l.alternate===null&&l.return!==null&&l.return.alternate!==null&&gi(l);var n=l.flags;switch(l.tag){case 0:case 11:case 15:Ll(t,l,e,a),n&2048&&Ju(9,l);break;case 1:Ll(t,l,e,a);break;case 3:Ll(t,l,e,a),u&&Hf&&(t=t.containerInfo,t=t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,t.style.viewTransitionName==="root"&&(t.style.viewTransitionName=""),t=t.ownerDocument.documentElement,t!==null&&t.style.viewTransitionName==="none"&&(t.style.viewTransitionName="")),n&2048&&(n=null,l.alternate!==null&&(n=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==n&&(l.refCount++,n!=null&&Ru(n)));break;case 12:if(n&2048){Ll(t,l,e,a),n=l.stateNode;try{var i=l.memoizedProps,c=i.id,s=i.onPostCommit;typeof s=="function"&&s(c,l.alternate===null?"mount":"update",n.passiveEffectDuration,-0)}catch(g){Ut(l,l.return,g)}}else Ll(t,l,e,a);break;case 31:Ll(t,l,e,a);break;case 13:Ll(t,l,e,a);break;case 23:break;case 22:i=l.stateNode,c=l.alternate,l.memoizedState!==null?(u&&c!==null&&c.memoizedState===null&&gi(c),i._visibility&2?Ll(t,l,e,a):Fu(t,l)):(u&&c!==null&&c.memoizedState!==null&&gi(l),i._visibility&2?Ll(t,l,e,a):(i._visibility|=2,tu(t,l,e,a,(l.subtreeFlags&10256)!==0||!1))),n&2048&&Yf(c,l);break;case 24:Ll(t,l,e,a),n&2048&&wf(l.alternate,l);break;case 30:u&&(n=l.alternate,n!==null&&(ce(n.child,!0),ce(l.child,!0))),Ll(t,l,e,a);break;default:Ll(t,l,e,a)}}function tu(t,l,e,a,u){for(u=u&&((l.subtreeFlags&10256)!==0||!1),l=l.child;l!==null;){var n=t,i=l,c=e,s=a,g=i.flags;switch(i.tag){case 0:case 11:case 15:tu(n,i,c,s,u),Ju(8,i);break;case 23:break;case 22:var p=i.stateNode;i.memoizedState!==null?p._visibility&2?tu(n,i,c,s,u):Fu(n,i):(p._visibility|=2,tu(n,i,c,s,u)),u&&g&2048&&Yf(i.alternate,i);break;case 24:tu(n,i,c,s,u),u&&g&2048&&wf(i.alternate,i);break;default:tu(n,i,c,s,u)}l=l.sibling}}function Fu(t,l){if(l.subtreeFlags&10256)for(l=l.child;l!==null;){var e=t,a=l,u=a.flags;switch(a.tag){case 22:Fu(e,a),u&2048&&Yf(a.alternate,a);break;case 24:Fu(e,a),u&2048&&wf(a.alternate,a);break;default:Fu(e,a)}l=l.sibling}}var Na=8192;function Ea(t,l,e){if(t.subtreeFlags&Na)for(t=t.child;t!==null;)Qd(t,l,e),t=t.sibling}function Qd(t,l,e){switch(t.tag){case 26:Ea(t,l,e),t.flags&Na&&(t.memoizedState!==null?oh(e,Wl,t.memoizedState,t.memoizedProps):(t=t.stateNode,(l&335544128)===l&&k0(e,t)));break;case 5:Ea(t,l,e),t.flags&Na&&(t=t.stateNode,(l&335544128)===l&&k0(e,t));break;case 3:case 4:var a=Wl;Wl=un(t.stateNode.containerInfo),Ea(t,l,e),Wl=a;break;case 22:t.memoizedState===null&&(a=t.alternate,a!==null&&a.memoizedState!==null?(a=Na,Na=16777216,Ea(t,l,e),Na=a):Ea(t,l,e));break;case 30:if((t.flags&Na)!==0&&(a=t.memoizedProps.name,a!=null&&a!=="auto")){var u=t.stateNode;u.paired=null,Rl===null&&(Rl=new Map),Rl.set(a,u)}Ea(t,l,e);break;default:Ea(t,l,e)}}function Xd(t){var l=t.alternate;if(l!==null&&(t=l.child,t!==null)){l.child=null;do l=t.sibling,t.sibling=null,t=l;while(t!==null)}}function Wu(t){var l=t.deletions;if((t.flags&16)!==0){if(l!==null)for(var e=0;e<l.length;e++){var a=l[e];cl=a,Zd(a,t)}Xd(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Vd(t),t=t.sibling}function Vd(t){switch(t.tag){case 0:case 11:case 15:Wu(t),t.flags&2048&&Ke(9,t,t.return);break;case 3:Wu(t);break;case 12:Wu(t);break;case 22:var l=t.stateNode;t.memoizedState!==null&&l._visibility&2&&(t.return===null||t.return.tag!==13)?(l._visibility&=-3,Si(t)):Wu(t);break;default:Wu(t)}}function Si(t){var l=t.deletions;if((t.flags&16)!==0){if(l!==null)for(var e=0;e<l.length;e++){var a=l[e];cl=a,Zd(a,t)}Xd(t)}for(t=t.child;t!==null;){switch(l=t,l.tag){case 0:case 11:case 15:Ke(8,l,l.return),Si(l);break;case 22:e=l.stateNode,e._visibility&2&&(e._visibility&=-3,Si(l));break;default:Si(l)}t=t.sibling}}function Zd(t,l){for(;cl!==null;){var e=cl;switch(e.tag){case 0:case 11:case 15:Ke(8,e,l);break;case 23:case 22:if(e.memoizedState!==null&&e.memoizedState.cachePool!==null){var a=e.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:Ru(e.memoizedState.cache)}if(a=e.child,a!==null)a.return=e,cl=a;else t:for(e=t;cl!==null;){a=cl;var u=a.sibling,n=a.return;if(Ud(a),a===e){cl=null;break t}if(u!==null){u.return=n,cl=u;break t}cl=n}}}var iy={getCacheForType:function(t){var l=rl(Pt),e=l.data.get(t);return e===void 0&&(e=t(),l.data.set(t,e)),e},cacheSignal:function(){return rl(Pt).controller.signal}},cy=typeof WeakMap=="function"?WeakMap:Map,_t=0,Yt=null,yt=null,bt=0,Dt=0,Hl=null,ke=!1,lu=!1,Gf=!1,Oe=0,$t=0,$e=0,za=0,Ti=0,ql=0,eu=0,Iu=null,_l=null,Qf=!1,Ni=0,Ld=0,Ei=1/0,zi=null,Fe=null,Kt=0,Pl=null,_a=null,oe=0,Xf=0,Vf=null,Kd=null,au=null,uu=null,nu=null,Pu=0,_i=null;function Bl(){return(_t&2)!==0&&bt!==0?bt&-bt:y.T!==null?Pf():ks()}function Jd(){if(ql===0)if((bt&536870912)===0||ot){var t=pn;pn<<=1,(pn&3932160)===0&&(pn=262144),ql=t}else ql=536870912;return t=ol.current,t!==null&&(t.flags|=32),ql}function iu(t,l){if(l!=null){var e=t.stateNode,a=e.ref;a===null&&(a=e.ref=O0(ge(t.memoizedProps,e))),uu===null&&(uu=[]),uu.push(l.bind(null,a))}}function Ol(t,l,e){(t===Yt&&(Dt===2||Dt===9)||t.cancelPendingCommit!==null)&&(cu(t,0),We(t,bt,ql,!1)),pu(t,e),((_t&2)===0||t!==Yt)&&(t===Yt&&((_t&2)===0&&(za|=e),$t===4&&We(t,bt,ql,!1)),de(t))}function kd(t,l,e){if((_t&6)!==0)throw Error(d(327));var a=!e&&(l&127)===0&&(l&t.expiredLanes)===0||xu(t,l),u=a?ry(t,l):Lf(t,l,!0),n=a;do{if(u===0){lu&&!a&&We(t,l,0,!1);break}else{if(e=t.current.alternate,n&&!fy(e)){u=Lf(t,l,!1),n=!1;continue}if(u===2){if(n=l,t.errorRecoveryDisabledLanes&n)var i=0;else i=t.pendingLanes&-536870913,i=i!==0?i:i&536870912?536870912:0;if(i!==0){l=i;t:{var c=t;u=Iu;var s=c.current.memoizedState.isDehydrated;if(s&&(cu(c,i).flags|=256),i=Lf(c,i,!1),i!==2&&i!==6){if(Gf&&!s){c.errorRecoveryDisabledLanes|=n,za|=n,u=4;break t}n=_l,_l=u,n!==null&&(_l===null?_l=n:_l.push.apply(_l,n))}u=i}if(n=!1,u!==2)continue}}if(u===1){cu(t,0),We(t,l,0,!0);break}t:{switch(a=t,n=u,n){case 0:case 1:throw Error(d(345));case 4:if((l&4194048)!==l&&(l&62914560)!==l)break;case 6:We(a,l,ql,!ke);break t;case 2:_l=null;break;case 3:case 5:break;default:throw Error(d(329))}if((l&62914560)===l&&(u=Ni+300-Al(),10<u)){if(We(a,l,ql,!ke),Tn(a,0,!0)!==0)break t;oe=l,a.timeoutHandle=rs($d.bind(null,a,e,_l,zi,Qf,l,ql,za,eu,ke,n,"Throttled",-0,0),u);break t}$d(a,e,_l,zi,Qf,l,ql,za,eu,ke,n,null,-0,0)}}break}while(!0);de(t)}function $d(t,l,e,a,u,n,i,c,s,g,p,_,h,x){t.timeoutHandle=-1;var R=l.subtreeFlags,K=(n&335544064)===n;if(_=null,(K||R&8192||(R&16785408)===16785408)&&(_={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ee},Rl=null,Qd(l,n,_),K&&(R=_,K=t.containerInfo,K=(K.nodeType===9?K:K.ownerDocument).__reactViewTransition,K!=null&&(R.count++,R.waitingForViewTransition=!0,R=fn.bind(R),K.finished.then(R,R))),R=(n&62914560)===n?Ni-Al():(n&4194048)===n?Ld-Al():0,R=dh(_,R),R!==null)){oe=n,t.cancelPendingCommit=R(a0.bind(null,t,l,n,e,a,u,i,c,s,g,p,_,null,h,x)),We(t,n,i,!g);return}a0(t,l,n,e,a,u,i,c,s,g,p,_)}function fy(t){for(var l=t;;){var e=l.tag;if((e===0||e===11||e===15)&&l.flags&16384&&(e=l.updateQueue,e!==null&&(e=e.stores,e!==null)))for(var a=0;a<e.length;a++){var u=e[a],n=u.getSnapshot;u=u.value;try{if(!Dl(n(),u))return!1}catch{return!1}}if(e=l.child,l.subtreeFlags&16384&&e!==null)e.return=l,l=e;else{if(l===t)break;for(;l.sibling===null;){if(l.return===null||l.return===t)return!0;l=l.return}l.sibling.return=l.return,l=l.sibling}}return!0}function We(t,l,e,a){l=Vs(t,l),l&=~Ti,l&=~za,t.suspendedLanes|=l,t.pingedLanes&=~l,a&&(t.warmLanes|=l),a=t.expirationTimes;for(var u=l;0<u;){var n=31-Ml(u),i=1<<n;a[n]=-1,u&=~i}e!==0&&Ls(t,e,l)}function Oi(){return(_t&6)===0?(tn(0),!1):!0}function Zf(){if(yt!==null){if(Dt===0)var t=yt.return;else t=yt,Se=ma=null,Wc(t),Ja=null,Bu=0,t=yt;for(;t!==null;)bd(t.alternate,t),t=t.return;yt=null}}function cu(t,l){var e=t.timeoutHandle;return e!==-1&&(t.timeoutHandle=-1,Dy(e)),e=t.cancelPendingCommit,e!==null&&(t.cancelPendingCommit=null,e()),oe=0,Zf(),Yt=t,yt=e=xe(t.current,null),bt=l,Dt=0,Hl=null,ke=!1,lu=xu(t,l),Gf=!1,eu=ql=Ti=za=$e=$t=0,_l=Iu=null,Qf=!1,Oe=Vs(t,l),Hn(),e}function Fd(t,l){ct=null,y.H=ii,l===Ka||l===Kn?(l=eo(),Dt=3):l===Yc?(l=eo(),Dt=4):Dt=l===mf?8:l!==null&&typeof l=="object"&&typeof l.then=="function"?6:1,Hl=l,yt===null&&($t=1,ci(t,Ql(l,t.current)))}function Wd(){var t=ol.current;return t===null?!0:(bt&4194048)===bt?vl===null:(bt&62914560)===bt||(bt&536870912)!==0?t===vl:!1}function Id(){var t=y.H;return y.H=ii,t===null?ii:t}function Pd(){var t=y.A;return y.A=iy,t}function Ai(){$t=4,ke||(bt&4194048)!==bt&&ol.current!==null||(lu=!0),($e&134217727)===0&&(za&134217727)===0||Yt===null||We(Yt,bt,ql,!1)}function Lf(t,l,e){var a=_t;_t|=2;var u=Id(),n=Pd();(Yt!==t||bt!==l)&&(zi=null,cu(t,l)),l=!1;var i=$t;t:do try{if(Dt!==0&&yt!==null){var c=yt,s=Hl;switch(Dt){case 8:Zf(),i=6;break t;case 3:case 2:case 9:case 6:ol.current===null&&(l=!0);var g=Dt;if(Dt=0,Hl=null,fu(t,c,s,g),e&&lu){i=0;break t}break;default:g=Dt,Dt=0,Hl=null,fu(t,c,s,g)}}sy(),i=$t;break}catch(p){Fd(t,p)}while(!0);return l&&t.shellSuspendCounter++,Se=ma=null,_t=a,y.H=u,y.A=n,yt===null&&(Yt=null,bt=0,Hn()),i}function sy(){for(;yt!==null;)t0(yt)}function ry(t,l){var e=_t;_t|=2;var a=Id(),u=Pd();Yt!==t||bt!==l?(zi=null,Ei=Al()+500,cu(t,l)):lu=xu(t,l);t:do try{if(Dt!==0&&yt!==null){l=yt;var n=Hl;l:switch(Dt){case 1:Dt=0,Hl=null,fu(t,l,n,1);break;case 2:case 9:if(to(n)){Dt=0,Hl=null,l0(l);break}l=function(){Dt!==2&&Dt!==9||Yt!==t||(Dt=7),de(t)},n.then(l,l);break t;case 3:Dt=7;break t;case 4:Dt=5;break t;case 7:to(n)?(Dt=0,Hl=null,l0(l)):(Dt=0,Hl=null,fu(t,l,n,7));break;case 5:var i=null;switch(yt.tag){case 26:i=yt.memoizedState;case 5:case 27:var c=yt;if(i?K0(i):c.stateNode.complete){Dt=0,Hl=null;var s=c.sibling;if(s!==null)yt=s;else{var g=c.return;g!==null?(yt=g,ji(g)):yt=null}break l}}Dt=0,Hl=null,fu(t,l,n,5);break;case 6:Dt=0,Hl=null,fu(t,l,n,6);break;case 8:Zf(),$t=6;break t;default:throw Error(d(462))}}oy();break}catch(p){Fd(t,p)}while(!0);return Se=ma=null,y.H=a,y.A=u,_t=e,yt!==null?0:(Yt=null,bt=0,Hn(),$t)}function oy(){for(;yt!==null&&!Am();)t0(yt)}function t0(t){var l=vd(t.alternate,t,Oe);t.memoizedProps=t.pendingProps,l===null?ji(t):yt=l}function l0(t){var l=t,e=l.alternate;switch(l.tag){case 15:case 0:l=sd(e,l,l.pendingProps,l.type,void 0,bt);break;case 11:l=sd(e,l,l.pendingProps,l.type.render,l.ref,bt);break;case 5:Wc(l);var a=l;a===nl&&(ot?(Qn(a),a.tag===5&&a.stateNode!=null&&(Gt=a.stateNode)):(Qn(a),ot=!0));default:bd(e,l),l=yt=Vr(l,Oe),l=vd(e,l,Oe)}t.memoizedProps=t.pendingProps,l===null?ji(t):yt=l}function fu(t,l,e,a){Se=ma=null,Wc(l),Ja=null,Bu=0;var u=l.return;try{if(I1(t,u,l,e,bt)){$t=1,ci(t,Ql(e,t.current)),yt=null;return}}catch(n){if(u!==null)throw yt=u,n;$t=1,ci(t,Ql(e,t.current)),yt=null;return}l.flags&32768?(ot||a===1?t=!0:lu||(bt&536870912)!==0?t=!1:(ke=t=!0,(a===2||a===9||a===3||a===6)&&(a=ol.current,a!==null&&a.tag===13&&(a.flags|=16384))),e0(l,t)):ji(l)}function ji(t){var l=t;do{if((l.flags&32768)!==0){e0(l,ke);return}t=l.return;var e=ey(l.alternate,l,Oe);if(e!==null){yt=e;return}if(l=l.sibling,l!==null){yt=l;return}yt=l=t}while(l!==null);$t===0&&($t=5)}function e0(t,l){do{var e=ay(t.alternate,t);if(e!==null){e.flags&=32767,yt=e;return}if(e=t.return,e!==null&&(e.flags|=32768,e.subtreeFlags=0,e.deletions=null),!l&&(t=t.sibling,t!==null)){yt=t;return}yt=t=e}while(t!==null);$t=6,yt=null}function a0(t,l,e,a,u,n,i,c,s,g,p,_){t.cancelPendingCommit=null;do Mi();while(Kt!==0);if((_t&6)!==0)throw Error(d(327));if(l!==null){if(l===t.current)throw Error(d(177));t===Yt&&(yt=Yt=null,bt=0),_a=l,Pl=t,oe=e,Vf=u,Kd=a,dy(t,l,e,i,c,s,_)}}function dy(t,l,e,a,u,n,i){var c=l.lanes|l.childLanes;if(Xf=c,c|=zc,Ym(t,e,c,a,u,n),uu=null,(e&335544064)===e?(nu=G1(t),a=10262):(nu=null,a=10256),(l.subtreeFlags&a)!==0||(l.flags&a)!==0?(t.callbackNode=null,t.callbackPriority=0,by(bn,function(){return $f(),null})):(t.callbackNode=null,t.callbackPriority=0),hi=!1,a=(l.flags&13878)!==0,(l.subtreeFlags&13878)!==0||a){a=y.T,y.T=null,u=O.p,O.p=2,n=_t,_t|=4;try{uy(t,l,e)}finally{_t=n,O.p=u,y.T=a}}Kt=1,hi?au=Yy(i,t.containerInfo,nu,Kf,Jf,yy,kf,$f,my):(Kf(),Jf(),kf())}function my(t){if(Kt!==0){var l=Pl.onRecoverableError;l(t,{componentStack:null})}}function yy(){Kt===3&&(Kt=0,wd(_a,Pl),Kt=4)}function Kf(){if(Kt===1){Kt=0;var t=Pl,l=_a,e=oe,a=(l.flags&13878)!==0;if((l.subtreeFlags&13878)!==0||a){a=y.T,y.T=null;var u=O.p;O.p=2;var n=_t;_t|=4;try{$u=bi=!1,Bd(l,t,e),e=cs;var i=Ur(t.containerInfo),c=e.focusedElem,s=e.selectionRange;if(i!==c&&c&&c.ownerDocument&&Dr(c.ownerDocument.documentElement,c)){if(s!==null&&pc(c)){var g=s.start,p=s.end;if(p===void 0&&(p=g),"selectionStart"in c)c.selectionStart=g,c.selectionEnd=Math.min(p,c.value.length);else{var _=c.ownerDocument||document,h=_&&_.defaultView||window;if(h.getSelection){var x=h.getSelection(),R=c.textContent.length,K=Math.min(s.start,R),ft=s.end===void 0?K:Math.min(s.end,R);!x.extend&&K>ft&&(i=ft,ft=K,K=i);var v=Cr(c,K),m=Cr(c,ft);if(v&&m&&(x.rangeCount!==1||x.anchorNode!==v.node||x.anchorOffset!==v.offset||x.focusNode!==m.node||x.focusOffset!==m.offset)){var b=_.createRange();b.setStart(v.node,v.offset),x.removeAllRanges(),K>ft?(x.addRange(b),x.extend(m.node,m.offset)):(b.setEnd(m.node,m.offset),x.addRange(b))}}}}for(_=[],x=c;x=x.parentNode;)x.nodeType===1&&_.push({element:x,left:x.scrollLeft,top:x.scrollTop});for(typeof c.focus=="function"&&c.focus(),c=0;c<_.length;c++){var z=_[c];z.element.scrollLeft=z.left,z.element.scrollTop=z.top}}vu=!!is,cs=is=null}finally{_t=n,O.p=u,y.T=a}}t.current=l,Kt=2}}function Jf(){if(Kt===2){Kt=0;var t=Pl,l=_a,e=(l.flags&8772)!==0;if((l.subtreeFlags&8772)!==0||e){e=y.T,y.T=null;var a=O.p;O.p=2;var u=_t;_t|=4;try{Cd(t,l.alternate,l)}finally{_t=u,O.p=a,y.T=e}}Kt=3}}function kf(){if(Kt===4||Kt===3){Kt=0;var t=au;au=null,jm();var l=Pl,e=_a,a=oe,u=Kd,n=(a&335544064)===a?10262:10256;if((e.subtreeFlags&n)!==0||(e.flags&n)!==0?Kt=5:(Kt=0,_a=Pl=null,u0(l,l.pendingLanes)),n=l.pendingLanes,n===0&&(Fe=null),ec(a),e=e.stateNode,jl&&typeof jl.onCommitFiberRoot=="function")try{jl.onCommitFiberRoot(bu,e,void 0,(e.current.flags&128)===128)}catch{}if(u!==null){e=y.T,n=O.p,O.p=2,y.T=null;try{for(var i=l.onRecoverableError,c=0;c<u.length;c++){var s=u[c];i(s.value,{componentStack:s.stack})}}finally{y.T=e,O.p=n}}if(u=uu,i=nu,nu=null,u!==null&&(uu=null,i===null&&(i=[]),t!==null))for(s=0;s<u.length;s++)e=(0,u[s])(i),e!==void 0&&t.finished.finally(e);(oe&3)!==0&&Mi(),de(l),n=l.pendingLanes,(a&261930)!==0&&(n&42)!==0?l===_i?Pu++:(Pu=0,_i=l):(Pu=0,_i=null),tn(0)}}function u0(t,l){(t.pooledCacheLanes&=l)===0&&(l=t.pooledCache,l!=null&&(t.pooledCache=null,Ru(l)))}function Mi(){return au!==null&&(au.skipTransition(),au=null),Kf(),Jf(),kf(),$f()}function $f(){if(Kt!==5)return!1;var t=Pl,l=Xf;Xf=0;var e=ec(oe),a=y.T,u=O.p;try{O.p=32>e?32:e,y.T=null,e=Vf,Vf=null;var n=Pl,i=oe;if(Kt=0,_a=Pl=null,oe=0,(_t&6)!==0)throw Error(d(331));var c=_t;if(_t|=4,Vd(n.current),Gd(n,n.current,i,e),_t=c,tn(0,!1),jl&&typeof jl.onPostCommitFiberRoot=="function")try{jl.onPostCommitFiberRoot(bu,n)}catch{}return!0}finally{O.p=u,y.T=a,u0(t,l)}}function n0(t,l,e){l=Ql(e,l),l=df(t.stateNode,l,2),t=Xe(t,l,2),t!==null&&(pu(t,2),de(t))}function Ut(t,l,e){if(t.tag===3)n0(t,t,e);else for(;l!==null;){if(l.tag===3){n0(l,t,e);break}else if(l.tag===1){var a=l.stateNode;if(typeof l.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Fe===null||!Fe.has(a))){t=Ql(e,t),e=ld(2),a=Xe(l,e,2),a!==null&&(ed(e,a,l,t),pu(a,2),de(a));break}}l=l.return}}function Ff(t,l,e){var a=t.pingCache;if(a===null){a=t.pingCache=new cy;var u=new Set;a.set(l,u)}else u=a.get(l),u===void 0&&(u=new Set,a.set(l,u));u.has(e)||(Gf=!0,u.add(e),t=hy.bind(null,t,l,e),l.then(t,t))}function hy(t,l,e){var a=t.pingCache;a!==null&&a.delete(l),t.pingedLanes|=t.suspendedLanes&e,t.warmLanes&=~e,Yt===t&&(bt&e)===e&&(($t===4||$t===3&&(bt&62914560)===bt&&300>Al()-Ni)&&(_t&2)===0?cu(t,0):Ti|=e,eu===bt&&(eu=0)),de(t)}function i0(t,l){l===0&&(l=Zs()),t=ra(t,l),t!==null&&(pu(t,l),de(t))}function vy(t){var l=t.memoizedState,e=0;l!==null&&(e=l.retryLane),i0(t,e)}function gy(t,l){var e=0;switch(t.tag){case 31:case 13:var a=t.stateNode,u=t.memoizedState;u!==null&&(e=u.retryLane);break;case 19:a=t.stateNode;break;case 22:a=t.stateNode._retryCache;break;default:throw Error(d(314))}a!==null&&a.delete(l),i0(t,e)}function by(t,l){return Ii(t,l)}var su=null,ru=null,Wf=!1,Ci=!1,If=!1,Ie=0;function de(t){t!==ru&&t.next===null&&(ru===null?su=ru=t:ru=ru.next=t),Ci=!0,Wf||(Wf=!0,py())}function tn(t,l){if(!If&&Ci){If=!0;do for(var e=!1,a=su;a!==null;){if(t!==0){var u=a.pendingLanes;if(u===0)var n=0;else{var i=a.suspendedLanes,c=a.pingedLanes;n=(1<<31-Ml(42|t)+1)-1,n&=u&~(i&~c),n=n&201326741?n&201326741|1:n?n|2:0}n!==0&&(e=!0,r0(a,n))}else n=bt,n=Tn(a,a===Yt?n:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(n&3)===0||xu(a,n)||(e=!0,r0(a,n));a=a.next}while(e);If=!1}}function xy(){c0()}function c0(){Ci=Wf=!1;var t=0;Ie!==0&&Cy()&&(t=Ie);for(var l=Al(),e=null,a=su;a!==null;){var u=a.next,n=f0(a,l);n===0?(a.next=null,e===null?su=u:e.next=u,u===null&&(ru=e)):(e=a,(t!==0||(n&3)!==0)&&(Ci=!0)),a=u}Kt!==0&&Kt!==5||tn(t),Ie!==0&&(Ie=0)}function f0(t,l){for(var e=t.suspendedLanes,a=t.pingedLanes,u=t.expirationTimes,n=t.pendingLanes&-62914561;0<n;){var i=31-Ml(n),c=1<<i,s=u[i];s===-1?((c&e)===0||(c&a)!==0)&&(u[i]=Bm(c,l)):s<=l&&(t.expiredLanes|=c),n&=~c}if(l=Yt,e=bt,e=Tn(t,t===l?e:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a=t.callbackNode,e===0||t===l&&(Dt===2||Dt===9)||t.cancelPendingCommit!==null)return a!==null&&a!==null&&Pi(a),t.callbackNode=null,t.callbackPriority=0;if((e&3)===0||xu(t,e)){if(l=e&-e,l===t.callbackPriority)return l;switch(a!==null&&Pi(a),ec(e)){case 2:case 8:e=Qs;break;case 32:e=bn;break;case 268435456:e=Xs;break;default:e=bn}return a=s0.bind(null,t),e=Ii(e,a),t.callbackPriority=l,t.callbackNode=e,l}return a!==null&&a!==null&&Pi(a),t.callbackPriority=2,t.callbackNode=null,2}function s0(t,l){if(Kt!==0&&Kt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var e=t.callbackNode;if(Mi()&&t.callbackNode!==e)return null;var a=bt;return a=Tn(t,t===Yt?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a===0?null:(kd(t,a,l),f0(t,Al()),t.callbackNode!=null&&t.callbackNode===e?s0.bind(null,t):null)}function r0(t,l){if(Mi())return null;kd(t,l,!0)}function py(){Uy(function(){(_t&6)!==0?Ii(Gs,xy):c0()})}function Pf(){if(Ie===0){var t=va;t===0&&(t=xn,xn<<=1,(xn&261888)===0&&(xn=256)),Ie=t}return Ie}function o0(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:On(t)}function Sy(t,l,e,a,u){if(l==="submit"&&e&&e.stateNode===u){var n=o0((u[Tl]||null).action),i=a.submitter;i&&(l=(l=i[Tl]||null)?o0(l.formAction):i.getAttribute("formAction"),l!==null&&(n=l,i=null));var c=new Cn("action","action",null,a,u);t.push({event:c,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Ie!==0){var s=new FormData(u,i);cf(e,{pending:!0,data:s,method:u.method,action:n},null,s)}}else typeof n=="function"&&(c.preventDefault(),s=new FormData(u,i),cf(e,{pending:!0,data:s,method:u.method,action:n},n,s))},currentTarget:u}]})}}for(var ts=0;ts<Ec.length;ts++){var ls=Ec[ts],Ty=ls.toLowerCase(),Ny=ls[0].toUpperCase()+ls.slice(1);$l(Ty,"on"+Ny)}$l(qr,"onAnimationEnd"),$l(Br,"onAnimationIteration"),$l(Yr,"onAnimationStart"),$l("dblclick","onDoubleClick"),$l("focusin","onFocus"),$l("focusout","onBlur"),$l(D1,"onTransitionRun"),$l(U1,"onTransitionStart"),$l(R1,"onTransitionCancel"),$l(wr,"onTransitionEnd"),Da("onMouseEnter",["mouseout","mouseover"]),Da("onMouseLeave",["mouseout","mouseover"]),Da("onPointerEnter",["pointerout","pointerover"]),Da("onPointerLeave",["pointerout","pointerover"]),ca("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ca("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ca("onBeforeInput",["compositionend","keypress","textInput","paste"]),ca("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ca("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ca("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ln="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(" "),Ey=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ln));function d0(t,l){l=(l&4)!==0;for(var e=0;e<t.length;e++){var a=t[e],u=a.event;a=a.listeners;t:{var n=void 0;if(l)for(var i=a.length-1;0<=i;i--){var c=a[i],s=c.instance,g=c.currentTarget;if(c=c.listener,s!==n&&u.isPropagationStopped())break t;n=c,u.currentTarget=g;try{n(u)}catch(p){Rn(p)}u.currentTarget=null,n=s}else for(i=0;i<a.length;i++){if(c=a[i],s=c.instance,g=c.currentTarget,c=c.listener,s!==n&&u.isPropagationStopped())break t;n=c,u.currentTarget=g;try{n(u)}catch(p){Rn(p)}u.currentTarget=null,n=s}}}}function ht(t,l){var e=l[Fs];e===void 0&&(e=l[Fs]=new Set);var a=t+"__bubble";e.has(a)||(m0(l,t,2,!1),e.add(a))}function es(t,l,e){var a=0;l&&(a|=4),m0(e,t,a,l)}var Di="_reactListening"+Math.random().toString(36).slice(2);function as(t){if(!t[Di]){t[Di]=!0,Ps.forEach(function(e){e!=="selectionchange"&&(Ey.has(e)||es(e,!1,t),es(e,!0,t))});var l=t.nodeType===9?t:t.ownerDocument;l===null||l[Di]||(l[Di]=!0,es("selectionchange",!1,l))}}function m0(t,l,e,a){switch(em(l)){case 2:var u=vh;break;case 8:u=gh;break;default:u=Ns}e=u.bind(null,l,e,t),u=void 0,!rc||l!=="touchstart"&&l!=="touchmove"&&l!=="wheel"||(u=!0),a?u!==void 0?t.addEventListener(l,e,{capture:!0,passive:u}):t.addEventListener(l,e,!0):u!==void 0?t.addEventListener(l,e,{passive:u}):t.addEventListener(l,e,!1)}function us(t,l,e,a,u){var n=a;if((l&1)===0&&(l&2)===0&&a!==null)t:for(;;){if(a===null)return;var i=a.tag;if(i===3||i===4){var c=a.stateNode.containerInfo;if(c===u)break;if(i===4)for(i=a.return;i!==null;){var s=i.tag;if((s===3||s===4)&&i.stateNode.containerInfo===u)return;i=i.return}for(;c!==null;){if(i=ia(c),i===null)return;if(s=i.tag,s===5||s===6||s===26||s===27){a=n=i;continue t}c=c.parentNode}}a=a.return}dr(function(){var g=n,p=fc(e),_=[];t:{var h=Gr.get(t);if(h!==void 0){var x=Cn,R=t;switch(t){case"keypress":if(jn(e)===0)break t;case"keydown":case"keyup":x=f1;break;case"focusin":R="focus",x=yc;break;case"focusout":R="blur",x=yc;break;case"beforeblur":case"afterblur":x=yc;break;case"click":if(e.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":x=hr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":x=Fm;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":x=m1;break;case qr:case Br:case Yr:x=Pm;break;case wr:x=h1;break;case"scroll":case"scrollend":x=km;break;case"wheel":x=g1;break;case"copy":case"cut":case"paste":x=l1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":x=gr;break;case"submit":x=o1;break;case"toggle":case"beforetoggle":x=x1}var K=(l&4)!==0,ft=!K&&(t==="scroll"||t==="scrollend"),v=K?h!==null?h+"Capture":null:h;K=[];for(var m=g,b;m!==null;){var z=m;if(b=z.stateNode,z=z.tag,z!==5&&z!==26&&z!==27||b===null||v===null||(z=Nu(m,v),z!=null&&K.push(en(m,z,b))),ft)break;m=m.return}0<K.length&&(h=new x(h,R,null,e,p),_.push({event:h,listeners:K}))}}if((l&7)===0){t:{if(x=t==="mouseover"||t==="pointerover",h=t==="mouseout"||t==="pointerout",x&&e!==cc&&(R=e.relatedTarget||e.fromElement)&&(ia(R)||R[ja]))break t;(h||x)&&(R=p.window===p?p:(x=p.ownerDocument)?x.defaultView||x.parentWindow:window,h?(x=e.relatedTarget||e.toElement,h=g,x=x?ia(x):null,x!==null&&(ft=w(x),K=x.tag,x!==ft||K!==5&&K!==27&&K!==6)&&(x=null)):(h=null,x=g),h!==x&&(K=hr,z="onMouseLeave",v="onMouseEnter",m="mouse",(t==="pointerout"||t==="pointerover")&&(K=gr,z="onPointerLeave",v="onPointerEnter",m="pointer"),ft=h==null?R:Tu(h),b=x==null?R:Tu(x),R=new K(z,m+"leave",h,e,p),R.target=ft,R.relatedTarget=b,z=null,ia(p)===g&&(K=new K(v,m+"enter",x,e,p),K.target=b,K.relatedTarget=ft,z=K),ft=z,K=h&&x?Ht(h,x,zy):null,h!==null&&y0(_,R,h,K,!1),x!==null&&ft!==null&&y0(_,ft,x,K,!0)))}t:{if(h=g?Tu(g):window,x=h.nodeName&&h.nodeName.toLowerCase(),x==="select"||x==="input"&&h.type==="file")var X=zr;else if(Nr(h))if(_r)X=j1;else{X=O1;var xt=_1}else x=h.nodeName,!x||x.toLowerCase()!=="input"||h.type!=="checkbox"&&h.type!=="radio"?g&&ic(g.elementType)&&(X=zr):X=A1;if(X&&(X=X(t,g))){Er(_,X,e,p);break t}xt&&xt(t,h,g)}switch(xt=g?Tu(g):window,t){case"focusin":(Nr(xt)||xt.contentEditable==="true")&&(Ya=xt,Sc=g,Cu=null);break;case"focusout":Cu=Sc=Ya=null;break;case"mousedown":Tc=!0;break;case"contextmenu":case"mouseup":case"dragend":Tc=!1,Rr(_,e,p);break;case"selectionchange":if(C1)break;case"keydown":case"keyup":Rr(_,e,p)}var $;if(vc)t:{switch(t){case"compositionstart":var lt="onCompositionStart";break t;case"compositionend":lt="onCompositionEnd";break t;case"compositionupdate":lt="onCompositionUpdate";break t}lt=void 0}else Ba?Sr(t,e)&&(lt="onCompositionEnd"):t==="keydown"&&e.keyCode===229&&(lt="onCompositionStart");lt&&(br&&e.locale!=="ko"&&(Ba||lt!=="onCompositionStart"?lt==="onCompositionEnd"&&Ba&&($=mr()):(Ue=p,oc="value"in Ue?Ue.value:Ue.textContent,Ba=!0)),xt=Ui(g,lt),0<xt.length&&(lt=new vr(lt,t,null,e,p),_.push({event:lt,listeners:xt}),$?lt.data=$:($=Tr(e),$!==null&&(lt.data=$)))),($=S1?T1(t,e):N1(t,e))&&(lt=Ui(g,"onBeforeInput"),0<lt.length&&(xt=new vr("onBeforeInput","beforeinput",null,e,p),_.push({event:xt,listeners:lt}),xt.data=$)),Sy(_,t,g,e,p)}d0(_,l)})}function en(t,l,e){return{instance:t,listener:l,currentTarget:e}}function Ui(t,l){for(var e=l+"Capture",a=[];t!==null;){var u=t,n=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||n===null||(u=Nu(t,e),u!=null&&a.unshift(en(t,u,n)),u=Nu(t,l),u!=null&&a.push(en(t,u,n))),t.tag===3)return a;t=t.return}return[]}function zy(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function y0(t,l,e,a,u){for(var n=l._reactName,i=[];e!==null&&e!==a;){var c=e,s=c.alternate,g=c.stateNode;if(c=c.tag,s!==null&&s===a)break;c!==5&&c!==26&&c!==27||g===null||(s=g,u?(g=Nu(e,n),g!=null&&i.unshift(en(e,g,s))):u||(g=Nu(e,n),g!=null&&i.push(en(e,g,s)))),e=e.return}i.length!==0&&t.push({event:l,listeners:i})}var _y=/\r\n?/g,Oy=/\u0000|\uFFFD/g;function h0(t){return(typeof t=="string"?t:""+t).replace(_y,`
`).replace(Oy,"")}function v0(t,l){return l=h0(l),h0(t)===l}function Rt(t,l,e,a,u,n){switch(e){case"children":if(typeof a=="string")l==="body"||l==="textarea"&&a===""||Ra(t,a);else if(typeof a=="number"||typeof a=="bigint")l!=="body"&&Ra(t,""+a);else return;break;case"className":_n(t,"class",a);break;case"tabIndex":_n(t,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":_n(t,e,a);break;case"style":rr(t,a,n);return;case"data":if(l!=="object"){_n(t,"data",a);break}case"src":case"href":if(a===""&&(l!=="a"||e!=="href")){t.removeAttribute(e);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(e);break}a=On(a),t.setAttribute(e,a);break;case"action":case"formAction":if(typeof a=="function"){t.setAttribute(e,"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 n=="function"&&(e==="formAction"?(l!=="input"&&Rt(t,l,"name",u.name,u,null),Rt(t,l,"formEncType",u.formEncType,u,null),Rt(t,l,"formMethod",u.formMethod,u,null),Rt(t,l,"formTarget",u.formTarget,u,null)):(Rt(t,l,"encType",u.encType,u,null),Rt(t,l,"method",u.method,u,null),Rt(t,l,"target",u.target,u,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(e);break}a=On(a),t.setAttribute(e,a);break;case"onClick":a!=null&&(t.onclick=ee);return;case"onScroll":a!=null&&ht("scroll",t);return;case"onScrollEnd":a!=null&&ht("scrollend",t);return;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(d(61));if(e=a.__html,e!=null){if(u.children!=null)throw Error(d(60));(n!=null?n.__html:void 0)!==e&&(t.innerHTML=e)}}break;case"multiple":t.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":t.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){t.removeAttribute("xlink:href");break}e=On(a),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",e);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(e,a):t.removeAttribute(e);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"credentialless":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(e,""):t.removeAttribute(e);break;case"capture":case"download":a===!0?t.setAttribute(e,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(e,a):t.removeAttribute(e);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?t.setAttribute(e,a):t.removeAttribute(e);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?t.removeAttribute(e):t.setAttribute(e,a);break;case"popover":ht("beforetoggle",t),ht("toggle",t),zn(t,"popover",a);break;case"xlinkActuate":he(t,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":he(t,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":he(t,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":he(t,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":he(t,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":he(t,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":he(t,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":he(t,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":he(t,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":zn(t,"is",a);break;case"innerText":case"textContent":return;default:if(!(2<e.length)||e[0]!=="o"&&e[0]!=="O"||e[1]!=="n"&&e[1]!=="N")e=Km.get(e)||e,zn(t,e,a);else return}Et=!0}function ns(t,l,e,a,u,n){switch(e){case"style":rr(t,a,n);return;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(d(61));if(e=a.__html,e!=null){if(u.children!=null)throw Error(d(60));(n!=null?n.__html:void 0)!==e&&(t.innerHTML=e)}}break;case"children":if(typeof a=="string")Ra(t,a);else if(typeof a=="number"||typeof a=="bigint")Ra(t,""+a);else return;break;case"onScroll":a!=null&&ht("scroll",t);return;case"onScrollEnd":a!=null&&ht("scrollend",t);return;case"onClick":a!=null&&(t.onclick=ee);return;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":return;case"innerText":case"textContent":return;default:if(!tr.hasOwnProperty(e))t:{if(e[0]==="o"&&e[1]==="n"&&(u=e.endsWith("Capture"),n=e.slice(2,u?e.length-7:void 0),l=t[Tl]||null,l=l!=null?l[e]:null,typeof l=="function"&&t.removeEventListener(n,l,u),typeof a=="function")){typeof l!="function"&&l!==null&&(e in t?t[e]=null:t.hasAttribute(e)&&t.removeAttribute(e)),t.addEventListener(n,a,u);break t}Et=!0,e in t?t[e]=a:a===!0?t.setAttribute(e,""):zn(t,e,a)}return}Et=!0}function yl(t,l,e){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ht("error",t),ht("load",t);var a=!1,u=!1,n;for(n in e)if(e.hasOwnProperty(n)){var i=e[n];if(i!=null)switch(n){case"src":a=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(d(137,l));default:Rt(t,l,n,i,e,null)}}u&&Rt(t,l,"srcSet",e.srcSet,e,null),a&&Rt(t,l,"src",e.src,e,null);return;case"input":ht("invalid",t);var c=n=i=u=null,s=null,g=null;for(a in e)if(e.hasOwnProperty(a)){var p=e[a];if(p!=null)switch(a){case"name":u=p;break;case"type":i=p;break;case"checked":s=p;break;case"defaultChecked":g=p;break;case"value":n=p;break;case"defaultValue":c=p;break;case"children":case"dangerouslySetInnerHTML":if(p!=null)throw Error(d(137,l));break;default:Rt(t,l,a,p,e,null)}}ir(t,n,c,s,g,i,u,!1);return;case"select":ht("invalid",t),a=i=n=null;for(u in e)if(e.hasOwnProperty(u)&&(c=e[u],c!=null))switch(u){case"value":n=c;break;case"defaultValue":i=c;break;case"multiple":a=c;default:Rt(t,l,u,c,e,null)}l=n,e=i,t.multiple=!!a,l!=null?Ua(t,!!a,l,!1):e!=null&&Ua(t,!!a,e,!0);return;case"textarea":ht("invalid",t),n=u=a=null;for(i in e)if(e.hasOwnProperty(i)&&(c=e[i],c!=null))switch(i){case"value":a=c;break;case"defaultValue":u=c;break;case"children":n=c;break;case"dangerouslySetInnerHTML":if(c!=null)throw Error(d(91));break;default:Rt(t,l,i,c,e,null)}fr(t,a,u,n);return;case"option":for(s in e)if(e.hasOwnProperty(s)&&(a=e[s],a!=null))switch(s){case"selected":t.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:Rt(t,l,s,a,e,null)}return;case"dialog":ht("beforetoggle",t),ht("toggle",t),ht("cancel",t),ht("close",t);break;case"iframe":case"object":ht("load",t);break;case"video":case"audio":for(a=0;a<ln.length;a++)ht(ln[a],t);break;case"image":ht("error",t),ht("load",t);break;case"details":ht("toggle",t);break;case"embed":case"source":case"link":ht("error",t),ht("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(g in e)if(e.hasOwnProperty(g)&&(a=e[g],a!=null))switch(g){case"children":case"dangerouslySetInnerHTML":throw Error(d(137,l));default:Rt(t,l,g,a,e,null)}return;default:if(ic(l)){for(p in e)e.hasOwnProperty(p)&&(a=e[p],a!==void 0&&ns(t,l,p,a,e,void 0));return}}for(c in e)e.hasOwnProperty(c)&&(a=e[c],a!=null&&Rt(t,l,c,a,e,null))}var Ay={};function jy(t,l,e,a){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,n=null,i=null,c=null,s=null,g=null,p=null;for(x in e){var _=e[x];if(e.hasOwnProperty(x)&&_!=null)switch(x){case"checked":break;case"value":break;case"defaultValue":s=_;default:a.hasOwnProperty(x)||Rt(t,l,x,null,a,_)}}for(var h in a){var x=a[h];if(_=e[h],a.hasOwnProperty(h)&&(x!=null||_!=null))switch(h){case"type":x!==_&&(Et=!0),n=x;break;case"name":x!==_&&(Et=!0),u=x;break;case"checked":x!==_&&(Et=!0),g=x;break;case"defaultChecked":x!==_&&(Et=!0),p=x;break;case"value":x!==_&&(Et=!0),i=x;break;case"defaultValue":x!==_&&(Et=!0),c=x;break;case"children":case"dangerouslySetInnerHTML":if(x!=null)throw Error(d(137,l));break;default:x!==_&&Rt(t,l,h,x,a,_)}}uc(t,i,c,s,g,p,n,u);return;case"select":x=i=c=h=null;for(n in e)if(s=e[n],e.hasOwnProperty(n)&&s!=null)switch(n){case"value":break;case"multiple":x=s;default:a.hasOwnProperty(n)||Rt(t,l,n,null,a,s)}for(u in a)if(n=a[u],s=e[u],a.hasOwnProperty(u)&&(n!=null||s!=null))switch(u){case"value":n!==s&&(Et=!0),h=n;break;case"defaultValue":n!==s&&(Et=!0),c=n;break;case"multiple":n!==s&&(Et=!0),i=n;default:n!==s&&Rt(t,l,u,n,a,s)}l=c,e=i,a=x,h!=null?Ua(t,!!e,h,!1):!!a!=!!e&&(l!=null?Ua(t,!!e,l,!0):Ua(t,!!e,e?[]:"",!1));return;case"textarea":x=h=null;for(c in e)if(u=e[c],e.hasOwnProperty(c)&&u!=null&&!a.hasOwnProperty(c))switch(c){case"value":break;case"children":break;default:Rt(t,l,c,null,a,u)}for(i in a)if(u=a[i],n=e[i],a.hasOwnProperty(i)&&(u!=null||n!=null))switch(i){case"value":u!==n&&(Et=!0),h=u;break;case"defaultValue":u!==n&&(Et=!0),x=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(d(91));break;default:u!==n&&Rt(t,l,i,u,a,n)}cr(t,h,x);return;case"option":for(var R in e)if(h=e[R],e.hasOwnProperty(R)&&h!=null&&!a.hasOwnProperty(R))switch(R){case"selected":t.selected=!1;break;default:Rt(t,l,R,null,a,h)}for(s in a)if(h=a[s],x=e[s],a.hasOwnProperty(s)&&h!==x&&(h!=null||x!=null))switch(s){case"selected":h!==x&&(Et=!0),t.selected=h&&typeof h!="function"&&typeof h!="symbol";break;default:Rt(t,l,s,h,a,x)}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 K in e)h=e[K],e.hasOwnProperty(K)&&h!=null&&!a.hasOwnProperty(K)&&Rt(t,l,K,null,a,h);for(g in a)if(h=a[g],x=e[g],a.hasOwnProperty(g)&&h!==x&&(h!=null||x!=null))switch(g){case"children":case"dangerouslySetInnerHTML":if(h!=null)throw Error(d(137,l));break;default:Rt(t,l,g,h,a,x)}return;default:if(ic(l)){for(var ft in e)h=e[ft],e.hasOwnProperty(ft)&&h!==void 0&&!a.hasOwnProperty(ft)&&ns(t,l,ft,void 0,a,h);for(p in a)h=a[p],x=e[p],!a.hasOwnProperty(p)||h===x||h===void 0&&x===void 0||ns(t,l,p,h,a,x);return}}for(var v in e)h=e[v],e.hasOwnProperty(v)&&h!=null&&!a.hasOwnProperty(v)&&Rt(t,l,v,null,a,h);for(_ in a)h=a[_],x=e[_],!a.hasOwnProperty(_)||h===x||h==null&&x==null||Rt(t,l,_,h,a,x)}function g0(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function My(){if(typeof performance.getEntriesByType=="function"){for(var t=0,l=0,e=performance.getEntriesByType("resource"),a=0;a<e.length;a++){var u=e[a],n=u.transferSize,i=u.initiatorType,c=u.duration;if(n&&c&&g0(i)){for(i=0,c=u.responseEnd,a+=1;a<e.length;a++){var s=e[a],g=s.startTime;if(g>c)break;var p=s.transferSize,_=s.initiatorType;p&&g0(_)&&(s=s.responseEnd,i+=p*(s<c?1:(c-g)/(s-g)))}if(--a,l+=8*(n+i)/(u.duration/1e3),t++,10<t)break}}if(0<t)return l/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var is=null,cs=null;function an(t){return t.nodeType===9?t:t.ownerDocument}function b0(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function x0(t,l){if(t===0)switch(l){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&l==="foreignObject"?0:t}function p0(t,l,e,a){return e=an(e).createElement(t),e[sl]=a,e[Tl]=l,yl(e,t,l),ul(e),e}function fs(t,l){return t==="textarea"||t==="noscript"||typeof l.children=="string"||typeof l.children=="number"||typeof l.children=="bigint"||typeof l.dangerouslySetInnerHTML=="object"&&l.dangerouslySetInnerHTML!==null&&l.dangerouslySetInnerHTML.__html!=null}var ss=null;function Cy(){var t=window.event;return t&&t.type==="popstate"?t===ss?!1:(ss=t,!0):(ss=null,!1)}var rs=typeof setTimeout=="function"?setTimeout:void 0,Dy=typeof clearTimeout=="function"?clearTimeout:void 0,S0=typeof Promise=="function"?Promise:void 0,T0=typeof requestAnimationFrame=="function"?requestAnimationFrame:rs,Uy=typeof queueMicrotask=="function"?queueMicrotask:typeof S0<"u"?function(t){return S0.resolve(null).then(t).catch(Ry)}:rs;function Ry(t){setTimeout(function(){throw t})}function Pe(t){return t==="head"}function N0(t,l){var e=l,a=0;do{var u=e.nextSibling;if(t.removeChild(e),u&&u.nodeType===8)if(e=u.data,e==="/$"||e==="/&"){if(a===0){t.removeChild(u),gu(l);return}a--}else if(e==="$"||e==="$?"||e==="$~"||e==="$!"||e==="&")a++;else if(e==="html")bs(t.ownerDocument.documentElement);else if(e==="head"){e=t.ownerDocument.head,bs(e);for(var n=e.firstChild;n;){var i=n.nextSibling,c=n.nodeName;n[Su]||c==="SCRIPT"||c==="STYLE"||c==="LINK"&&n.rel.toLowerCase()==="stylesheet"||e.removeChild(n),n=i}}else e==="body"&&bs(t.ownerDocument.body);e=u}while(e);gu(l)}function E0(t,l){var e=t;t=0;do{var a=e.nextSibling;if(e.nodeType===1?l?(e._stashedDisplay=e.style.display,e.style.display="none"):(e.style.display=e._stashedDisplay||"",e.getAttribute("style")===""&&e.removeAttribute("style")):e.nodeType===3&&(l?(e._stashedText=e.nodeValue,e.nodeValue=""):e.nodeValue=e._stashedText||""),a&&a.nodeType===8)if(e=a.data,e==="/$"){if(t===0)break;t--}else e!=="$"&&e!=="$?"&&e!=="$~"&&e!=="$!"||t++;e=a}while(e)}function z0(t,l,e){if(l=CSS.escape(l)!==l?"r-"+btoa(l).replace(/=/g,""):l,t.style.viewTransitionName=l,e!=null&&(t.style.viewTransitionClass=e),e=getComputedStyle(t),e.display==="inline"){if(l=t.getClientRects(),l.length===1)var a=1;else for(var u=a=0;u<l.length;u++){var n=l[u];0<n.width&&0<n.height&&a++}a===1&&(t=t.style,t.display=l.length===1?"inline-block":"block",t.marginTop="-"+e.paddingTop,t.marginBottom="-"+e.paddingBottom)}}function _0(t,l){t=t.style,l=l.style;var e=l!=null?l.hasOwnProperty("viewTransitionName")?l.viewTransitionName:l.hasOwnProperty("view-transition-name")?l["view-transition-name"]:null:null;t.viewTransitionName=e==null||typeof e=="boolean"?"":(""+e).trim(),e=l!=null?l.hasOwnProperty("viewTransitionClass")?l.viewTransitionClass:l.hasOwnProperty("view-transition-class")?l["view-transition-class"]:null:null,t.viewTransitionClass=e==null||typeof e=="boolean"?"":(""+e).trim(),t.display==="inline-block"&&(l==null?t.display=t.margin="":(e=l.display,t.display=e==null||typeof e=="boolean"?"":e,e=l.margin,e!=null?t.margin=e:(e=l.hasOwnProperty("marginTop")?l.marginTop:l["margin-top"],t.marginTop=e==null||typeof e=="boolean"?"":e,l=l.hasOwnProperty("marginBottom")?l.marginBottom:l["margin-bottom"],t.marginBottom=l==null||typeof l=="boolean"?"":l)))}function Hy(t,l,e){return e=e.ownerDocument.defaultView,{rect:t,abs:l.position==="absolute"||l.position==="fixed",clip:l.clipPath!=="none"||l.overflow!=="visible"||l.filter!=="none"||l.mask!=="none"||l.mask!=="none"||l.borderRadius!=="0px",view:0<=t.bottom&&0<=t.right&&t.top<=e.innerHeight&&t.left<=e.innerWidth}}function os(t){var l=t.getBoundingClientRect(),e=getComputedStyle(t);return Hy(l,e,t)}function qy(t){return t.documentElement.clientHeight}function By(t){this.addEventListener("load",t),this.addEventListener("error",t)}function Yy(t,l,e,a,u,n,i,c,s){var g=l.nodeType===9?l:l.ownerDocument;try{var p=g.startViewTransition({update:function(){var h=g.defaultView,x=h.navigation&&h.navigation.transition,R=g.fonts.status;a();var K=[];if(R==="loaded"&&(qy(g),g.fonts.status==="loading"&&K.push(g.fonts.ready)),R=K.length,t!==null)for(var ft=t.suspenseyImages,v=0,m=0;m<ft.length;m++){var b=ft[m];if(!b.complete){var z=b.getBoundingClientRect();if(0<z.bottom&&0<z.right&&z.top<h.innerHeight&&z.left<h.innerWidth){if(v+=J0(b),v>qi){K.length=R;break}b=new Promise(By.bind(b)),K.push(b)}}}if(0<K.length)return h=Promise.race([Promise.all(K),new Promise(function(X){return setTimeout(X,500)})]).then(u,u),(x?Promise.allSettled([x.finished,h]):h).then(n,n);if(u(),x)return x.finished.then(n,n);n()},types:e});g.__reactViewTransition=p;var _=[];return p.ready.then(function(){for(var h=g.documentElement.getAnimations({subtree:!0}),x=0;x<h.length;x++){var R=h[x],K=R.effect,ft=K.pseudoElement;if(ft!=null&&ft.startsWith("::view-transition")){_.push(R),R=K.getKeyframes();for(var v=ft=void 0,m=!0,b=0;b<R.length;b++){var z=R[b],X=z.width;if(ft===void 0)ft=X;else if(ft!==X){m=!1;break}if(X=z.height,v===void 0)v=X;else if(v!==X){m=!1;break}delete z.width,delete z.height,z.transform==="none"&&delete z.transform}m&&ft!==void 0&&v!==void 0&&(K.setKeyframes(R),m=getComputedStyle(K.target,K.pseudoElement),m.width!==ft||m.height!==v)&&(m=R[0],m.width=ft,m.height=v,m=R[R.length-1],m.width=ft,m.height=v,K.setKeyframes(R))}}i()},function(h){g.__reactViewTransition===p&&(g.__reactViewTransition=null);try{if(typeof h=="object"&&h!==null)switch(h.name){case"InvalidStateError":(h.message==="View transition was skipped because document visibility state is hidden."||h.message==="Skipping view transition because document visibility state has become hidden."||h.message==="Skipping view transition because viewport size changed."||h.message==="Transition was aborted because of invalid state")&&(h=null)}h!==null&&s(h)}finally{a(),u(),i()}}),p.finished.finally(function(){for(var h=0;h<_.length;h++)_[h].cancel();g.__reactViewTransition===p&&(g.__reactViewTransition=null),c()}),p}catch{return a(),u(),i(),null}}function Oa(t,l){this._scope=document.documentElement,this._selector="::view-transition-"+t+"("+l+")"}Oa.prototype.animate=function(t,l){return l=typeof l=="number"?{duration:l}:F({},l),l.pseudoElement=this._selector,this._scope.animate(t,l)},Oa.prototype.getAnimations=function(){for(var t=this._scope,l=this._selector,e=t.getAnimations({subtree:!0}),a=[],u=0;u<e.length;u++){var n=e[u].effect;n!==null&&n.target===t&&n.pseudoElement===l&&a.push(e[u])}return a},Oa.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function O0(t){return{name:t,group:new Oa("group",t),imagePair:new Oa("image-pair",t),old:new Oa("old",t),new:new Oa("new",t)}}function Yl(t){this._fragmentFiber=t,this._observers=this._eventListeners=null}Yl.prototype.addEventListener=function(t,l,e){var a=null,u=null;if(!(e!=null&&typeof e!="boolean"&&(a=e.signal||null,a!==null&&a.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var n=this._eventListeners;if(j0(n,t,l,e)===-1){var i=this,c=l;e!=null&&typeof e!="boolean"&&e.once===!0&&(c=function(s){i.removeEventListener(t,l,e),typeof l=="function"?l.call(this,s):l.handleEvent(s)}),a!==null&&(u=i.removeEventListener.bind(i,t,l,e),a.addEventListener("abort",u,{once:!0}),u=a.removeEventListener.bind(a,"abort",u)),a=ou(e),n.push({type:t,listener:l,optionsOrUseCapture:e,attachedListener:c,cleanup:u}),S(this._fragmentFiber.child,!1,wy,t,c,a)}this._eventListeners=n}};function wy(t,l,e,a){return D(t).addEventListener(l,e,a),!1}Yl.prototype.removeEventListener=function(t,l,e){var a=this._eventListeners;if(a!==null&&(l=j0(a,t,l,e),l!==-1)){var u=a[l];e=u.attachedListener;var n=u.cleanup;u=ou(u.optionsOrUseCapture),S(this._fragmentFiber.child,!1,Gy,t,e,u),a.splice(l,1),n!==null&&n()}};function Gy(t,l,e,a){return D(t).removeEventListener(l,e,a),!1}function ou(t){return t!=null&&typeof t!="boolean"&&(t.once===!0||t.signal instanceof AbortSignal)?{capture:t.capture,passive:t.passive}:t}function A0(t){return t==null?"c=0":typeof t=="boolean"?"c="+(t?"1":"0"):"c="+(t.capture?"1":"0")}function j0(t,l,e,a){if(t.length===0)return-1;a=A0(a);for(var u=0;u<t.length;u++){var n=t[u];if(n.type===l&&n.listener===e&&A0(n.optionsOrUseCapture)===a)return u}return-1}Yl.prototype.dispatchEvent=function(t){var l=Z(this._fragmentFiber);if(l===null)return!0;l=D(l);var e=this._eventListeners;if(e!==null&&0<e.length||!t.bubbles){var a=l.nodeType===9?l.createComment(""):document.createTextNode("");if(e)for(var u=0;u<e.length;u++){var n=e[u];a.addEventListener(n.type,n.attachedListener,ou(n.optionsOrUseCapture))}if(l.appendChild(a),t=a.dispatchEvent(t),e)for(u=0;u<e.length;u++)n=e[u],a.removeEventListener(n.type,n.attachedListener,ou(n.optionsOrUseCapture));return l.removeChild(a),t}return l.dispatchEvent(t)},Yl.prototype.focus=function(t){S(this._fragmentFiber.child,!0,M0,t,void 0,void 0)};function M0(t,l){return t.tag===6?!1:(t=D(t),Iy(t,l))}Yl.prototype.focusLast=function(t){var l=[];S(this._fragmentFiber.child,!0,ds,l,void 0,void 0);for(var e=l.length-1;0<=e&&!M0(l[e],t);e--);};function ds(t,l){return l.push(t),!1}Yl.prototype.blur=function(){var t=Z(this._fragmentFiber);t!==null&&(t=D(t),t=an(t).activeElement,t!==null&&S(this._fragmentFiber.child,!1,Qy,t,void 0,void 0))};function Qy(t,l){return t.tag===6?!1:(t=D(t),t===l||t.contains(l)?(l.blur(),!0):!1)}Yl.prototype.observeUsing=function(t){this._observers===null&&(this._observers=new Set),this._observers.add(t),S(this._fragmentFiber.child,!1,Xy,t,void 0,void 0)};function Xy(t,l){return t.tag===6||(t=D(t),l.observe(t)),!1}Yl.prototype.unobserveUsing=function(t){var l=this._observers;if(l!==null&&l.has(t)){l.delete(t),S(this._fragmentFiber.child,!1,Vy,t,void 0,void 0);for(var e=l=0;e<te.length;e++){var a=te[e];a.fragmentInstance===this&&a.observer===t?t.unobserve(a.instance):te[l++]=a}te.length=l}};function Vy(t,l){return t.tag===6||(t=D(t),l.unobserve(t)),!1}var te=[],ms=!1;function Zy(t,l,e){te.push({fragmentInstance:t,observer:l,instance:e}),ms||(ms=!0,Py(function(){ms=!1;var a=te;te=[];for(var u=0;u<a.length;u++){var n=a[u];n.observer.unobserve(n.instance)}}))}Yl.prototype.getClientRects=function(){var t=[];return S(this._fragmentFiber.child,!1,Ly,t,void 0,void 0),t};function Ly(t,l){if(t.tag===6){t=t.stateNode;var e=t.ownerDocument.createRange();e.selectNodeContents(t),l.push.apply(l,e.getClientRects())}else t=D(t),l.push.apply(l,t.getClientRects());return!1}Yl.prototype.getRootNode=function(t){var l=Z(this._fragmentFiber);return l===null?this:D(l).getRootNode(t)},Yl.prototype.compareDocumentPosition=function(t){var l=Z(this._fragmentFiber);if(l===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var e=[];S(this._fragmentFiber.child,!1,ds,e,void 0,void 0);var a=D(l);if(e.length===0){if(e=a,rt(this._fragmentFiber)){t:{for(l=this._fragmentFiber.return;l!==null;){if(l.tag===4){l=l.stateNode.containerInfo;break t}if(l.tag===3||l.tag===5||l.tag===27)break;l=l.return}l=null}l!=null&&(e=l)}l=this._fragmentFiber;var u=a=e.compareDocumentPosition(t);return e===t?u=Node.DOCUMENT_POSITION_CONTAINS:a&Node.DOCUMENT_POSITION_CONTAINED_BY&&(e=Xt(l)[1],e===null?u=Node.DOCUMENT_POSITION_PRECEDING:(t=D(e).compareDocumentPosition(t),u=t===0||t&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),u|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}l=D(e[0]),u=D(e[e.length-1]);var n=rt(this._fragmentFiber)?l.parentElement:a;if(n==null)return Node.DOCUMENT_POSITION_DISCONNECTED;a=n.compareDocumentPosition(l)&Node.DOCUMENT_POSITION_CONTAINED_BY,n=n.compareDocumentPosition(u)&Node.DOCUMENT_POSITION_CONTAINED_BY;var i=l.compareDocumentPosition(t),c=u.compareDocumentPosition(t),s=i&Node.DOCUMENT_POSITION_CONTAINED_BY||c&Node.DOCUMENT_POSITION_CONTAINED_BY;return c=a&&n&&i&Node.DOCUMENT_POSITION_FOLLOWING&&c&Node.DOCUMENT_POSITION_PRECEDING,l=a&&l===t||n&&u===t||s||c?Node.DOCUMENT_POSITION_CONTAINED_BY:!a&&l===t||!n&&u===t?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:i,l&Node.DOCUMENT_POSITION_DISCONNECTED||l&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||Ky(l,this._fragmentFiber,e[0],e[e.length-1],t)?l:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function Ky(t,l,e,a,u){var n=ia(u);if(t&Node.DOCUMENT_POSITION_CONTAINED_BY){if(e=!!n)t:{for(;n!==null;){if(n.tag===7&&(n===l||n.alternate===l)){e=!0;break t}n=n.return}e=!1}return e}if(t&Node.DOCUMENT_POSITION_CONTAINS){if(n===null)return n=u.ownerDocument,u===n||u===n.documentElement||u===n.body;t:{for(n=l,l=Z(l);n!==null;){if(!(n.tag!==5&&n.tag!==3&&n.tag!==27||n!==l&&n.alternate!==l)){n=!0;break t}n=n.return}n=!1}return n}return t&Node.DOCUMENT_POSITION_PRECEDING?((l=!!n)&&!(l=n===e)&&(l=Ht(e,n,Mt),l===null?l=!1:(S(l,!0,Tt,n,e),n=dt,dt=null,l=n!==null)),l):t&Node.DOCUMENT_POSITION_FOLLOWING?((l=!!n)&&!(l=n===a)&&(l=Ht(a,n,Mt),l===null?l=!1:(S(l,!0,Ft,n,a),n=dt,tt=dt=null,l=n!==null)),l):!1}function C0(t,l){var e=t.ownerDocument.createRange();e.selectNodeContents(t),t=e.getBoundingClientRect(),window.scrollTo(window.scrollX+t.left,l?window.scrollY+t.top:window.scrollY+t.bottom-window.innerHeight)}Yl.prototype.scrollIntoView=function(t){if(typeof t=="object")throw Error(d(566));var l=[];S(this._fragmentFiber.child,!1,ds,l,void 0,void 0);var e=t!==!1;if(l.length===0){var a=Xt(this._fragmentFiber);if(a=e?a[1]||a[0]||Z(this._fragmentFiber):a[0]||a[1],a===null)return;if(a.tag===6){t=D(a),C0(t,e);return}if(a=D(a),a.nodeType!==9){if(a.nodeType===11){e="host"in a?a.host:null,e!==null&&e.scrollIntoView(t);return}a.scrollIntoView(t)}}for(a=e?l.length-1:0;a!==(e?-1:l.length);){var u=l[a];u.tag===6?(u=D(u),C0(u,e)):D(u).scrollIntoView(t),a+=e?-1:1}};function Jy(t,l){return t=D(t),D0(t,l),!1}function D0(t,l){t.reactFragments==null&&(t.reactFragments=new Set),t.reactFragments.add(l)}function U0(t,l){var e=l._eventListeners;if(e!==null)for(var a=0;a<e.length;a++){var u=e[a];t.addEventListener(u.type,u.attachedListener,ou(u.optionsOrUseCapture))}t.nodeType!==3&&(e=l._observers,e!==null&&e.forEach(function(n){for(var i=0,c=0;c<te.length;c++){var s=te[c];(s.fragmentInstance!==l||s.observer!==n||s.instance!==t)&&(te[i++]=s)}te.length=i,n.observe(t)}),D0(t,l))}function ky(t,l){var e=l._eventListeners;if(e!==null)for(var a=0;a<e.length;a++){var u=e[a];t.removeEventListener(u.type,u.attachedListener,ou(u.optionsOrUseCapture))}t.nodeType!==3&&(e=l._observers,e!==null&&e.forEach(function(n){typeof n.rootMargin=="string"?Zy(l,n,t):n.unobserve(t)}),t.reactFragments!=null&&t.reactFragments.delete(l))}function ys(t){var l=t.firstChild;for(l&&l.nodeType===10&&(l=l.nextSibling);l;){var e=l;switch(l=l.nextSibling,e.nodeName){case"HTML":case"HEAD":case"BODY":ys(e),En(e);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(e.rel.toLowerCase()==="stylesheet")continue}t.removeChild(e)}}function $y(t,l,e,a){for(;t.nodeType===1;){var u=e;if(t.nodeName.toLowerCase()!==l.toLowerCase()){if(!a&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(a){if(!t[Su])switch(l){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(n=t.getAttribute("rel"),n==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(n!==u.rel||t.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||t.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||t.getAttribute("title")!==(u.title==null?null:u.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(n=t.getAttribute("src"),(n!==(u.src==null?null:u.src)||t.getAttribute("type")!==(u.type==null?null:u.type)||t.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&n&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(l==="input"&&t.type==="hidden"){var n=u.name==null?null:""+u.name;if(u.type==="hidden"&&t.getAttribute("name")===n)return t}else return t;if(t=Kl(t.nextSibling),t===null)break}return null}function Fy(t,l,e){if(l==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Kl(t.nextSibling),t===null))return null;return t}function R0(t,l){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!l||(t=Kl(t.nextSibling),t===null))return null;return t}function hs(t){return t.data==="$?"||t.data==="$~"}function vs(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function Wy(t,l){var e=t.ownerDocument;if(t.data==="$~")t._reactRetry=l;else if(t.data!=="$?"||e.readyState!=="loading")l();else{var a=function(){l(),e.removeEventListener("DOMContentLoaded",a)};e.addEventListener("DOMContentLoaded",a),t._reactRetry=a}}function Kl(t){for(;t!=null;t=t.nextSibling){var l=t.nodeType;if(l===1||l===3)break;if(l===8){if(l=t.data,l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"||l==="F!"||l==="F")break;if(l==="/$"||l==="/&")return null}}return t}var gs=null;function H0(t){t=t.nextSibling;for(var l=0;t;){if(t.nodeType===8){var e=t.data;if(e==="/$"||e==="/&"){if(l===0)return Kl(t.nextSibling);l--}else e!=="$"&&e!=="$!"&&e!=="$?"&&e!=="$~"&&e!=="&"||l++}t=t.nextSibling}return null}function q0(t){t=t.previousSibling;for(var l=0;t;){if(t.nodeType===8){var e=t.data;if(e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"){if(l===0)return t;l--}else e!=="/$"&&e!=="/&"||l++}t=t.previousSibling}return null}function Iy(t,l){function e(){a=!0}if(t.ownerDocument.activeElement===t)return!0;var a=!1;try{t.ownerDocument.addEventListener("focus",e,!0),(t.focus||HTMLElement.prototype.focus).call(t,l)}finally{t.ownerDocument.removeEventListener("focus",e,!0)}return a}function Py(t){T0(function(){T0(function(l){return t(l)})})}function B0(t,l,e){switch(l=an(e),t){case"html":if(t=l.documentElement,!t)throw Error(d(452));return t;case"head":if(t=l.head,!t)throw Error(d(453));return t;case"body":if(t=l.body,!t)throw Error(d(454));return t;default:throw Error(d(451))}}function Y0(t,l,e){for(var a in e){var u=e[a];e.hasOwnProperty(a)&&u!=null&&Rt(t,l,a,null,Ay,u)}e.dangerouslySetInnerHTML!=null&&(t.textContent=""),t.onclick===ee&&(t.onclick=null),En(t)}function bs(t){for(var l=t.attributes;l.length;)t.removeAttributeNode(l[0]);En(t)}var Jl=new Map,w0=new Set;function un(t){if(typeof t.getRootNode=="function"){var l=t.getRootNode();if(l.nodeType===9||l.nodeType===11)return l}return t.nodeType===9?t:t.ownerDocument}var Ae=O.d;O.d={f:th,r:lh,D:eh,C:ah,L:uh,m:nh,X:ch,S:ih,M:fh};function th(){var t=Ae.f(),l=Oi();return t||l}function lh(t){var l=Ma(t);l!==null&&l.tag===5&&l.type==="form"?Qo(l):Ae.r(t)}var du=typeof document>"u"?null:document;function G0(t,l,e){var a=du;if(a&&typeof l=="string"&&l){var u=wl(l);u='link[rel="'+t+'"][href="'+u+'"]',typeof e=="string"&&(u+='[crossorigin="'+e+'"]'),w0.has(u)||(w0.add(u),t={rel:t,crossOrigin:e,href:l},a.querySelector(u)===null&&(l=a.createElement("link"),yl(l,"link",t),ul(l),a.head.appendChild(l)))}}function eh(t){Ae.D(t),G0("dns-prefetch",t,null)}function ah(t,l){Ae.C(t,l),G0("preconnect",t,l)}function uh(t,l,e){Ae.L(t,l,e);var a=du;if(a&&t&&l){var u='link[rel="preload"][as="'+wl(l)+'"]';l==="image"&&e&&e.imageSrcSet?(u+='[imagesrcset="'+wl(e.imageSrcSet)+'"]',typeof e.imageSizes=="string"&&(u+='[imagesizes="'+wl(e.imageSizes)+'"]')):u+='[href="'+wl(t)+'"]';var n=u;switch(l){case"style":n=mu(t);break;case"script":n=yu(t)}if(!(Jl.has(n)||(t=F({rel:"preload",href:l==="image"&&e&&e.imageSrcSet?void 0:t,as:l},e),Jl.set(n,t),a.querySelector(u)!==null||l==="style"&&a.querySelector(nn(n))||l==="script"&&a.querySelector(cn(n))))){var i=a.createElement("link");yl(i,"link",t),l==="style"&&(i[Nn]=!0,i.onload=i.onerror=function(){Is(i)}),ul(i),a.head.appendChild(i)}}}function nh(t,l){Ae.m(t,l);var e=du;if(e&&t){var a=l&&typeof l.as=="string"?l.as:"script",u='link[rel="modulepreload"][as="'+wl(a)+'"][href="'+wl(t)+'"]',n=u;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":n=yu(t)}if(!Jl.has(n)&&(t=F({rel:"modulepreload",href:t},l),Jl.set(n,t),e.querySelector(u)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(e.querySelector(cn(n)))return}a=e.createElement("link"),yl(a,"link",t),ul(a),e.head.appendChild(a)}}}function ih(t,l,e){Ae.S(t,l,e);var a=du;if(a&&t){var u=Ca(a).hoistableStyles,n=mu(t);l=l||"default";var i=u.get(n);if(!i){var c={loading:0,preload:null};if(i=a.querySelector(nn(n)))c.loading=5;else{t=F({rel:"stylesheet",href:t,"data-precedence":l},e),(e=Jl.get(n))&&xs(t,e);var s=i=a.createElement("link");ul(s),yl(s,"link",t),s._p=new Promise(function(g,p){s.onload=g,s.onerror=p}),s.addEventListener("load",function(){c.loading|=1}),s.addEventListener("error",function(){c.loading|=2}),c.loading|=4,Ri(i,l,a)}i={type:"stylesheet",instance:i,count:1,state:c},u.set(n,i)}}}function ch(t,l){Ae.X(t,l);var e=du;if(e&&t){var a=Ca(e).hoistableScripts,u=yu(t),n=a.get(u);n||(n=e.querySelector(cn(u)),n||(t=F({src:t,async:!0},l),(l=Jl.get(u))&&ps(t,l),n=e.createElement("script"),ul(n),yl(n,"link",t),e.head.appendChild(n)),n={type:"script",instance:n,count:1,state:null},a.set(u,n))}}function fh(t,l){Ae.M(t,l);var e=du;if(e&&t){var a=Ca(e).hoistableScripts,u=yu(t),n=a.get(u);n||(n=e.querySelector(cn(u)),n||(t=F({src:t,async:!0,type:"module"},l),(l=Jl.get(u))&&ps(t,l),n=e.createElement("script"),ul(n),yl(n,"link",t),e.head.appendChild(n)),n={type:"script",instance:n,count:1,state:null},a.set(u,n))}}function Q0(t,l,e,a){var u=(u=Me.current)?un(u):null;if(!u)throw Error(d(446));switch(t){case"meta":case"title":return null;case"style":return typeof e.precedence=="string"&&typeof e.href=="string"?(e=mu(e.href),l=Ca(u).hoistableStyles,a=l.get(e),a||(a={type:"style",instance:null,count:0,state:null},l.set(e,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(e.rel==="stylesheet"&&typeof e.href=="string"&&typeof e.precedence=="string"){t=mu(e.href);var n=Ca(u).hoistableStyles,i=n.get(t);if(i||(u=u.ownerDocument||u,i={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},n.set(t,i),(n=u.querySelector(nn(t)))?n._p||(i.instance=n,i.state.loading=5):(n=Jl.get(t),n||(n={rel:"preload",as:"style",href:e.href,crossOrigin:e.crossOrigin,integrity:e.integrity,media:e.media,hrefLang:e.hrefLang,referrerPolicy:e.referrerPolicy},Jl.set(t,n)),sh(u,t,n,i.state))),l&&a===null)throw Error(d(528,""));return i}if(l&&a!==null)throw Error(d(529,""));return null;case"script":return l=e.async,e=e.src,typeof e=="string"&&l&&typeof l!="function"&&typeof l!="symbol"?(e=yu(e),l=Ca(u).hoistableScripts,a=l.get(e),a||(a={type:"script",instance:null,count:0,state:null},l.set(e,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(d(444,t))}}function mu(t){return'href="'+wl(t)+'"'}function nn(t){return'link[rel="stylesheet"]['+t+"]"}function X0(t){return F({},t,{"data-precedence":t.precedence,precedence:null})}function sh(t,l,e,a){if(l=t.querySelector('link[rel="preload"][as="style"]['+l+"]")){if(l[Nn]!==!0){a.loading=1;return}}else l=t.createElement("link"),l[Nn]=!0,l.onload=l.onerror=Is.bind(null,l),yl(l,"link",e),ul(l),t.head.appendChild(l);a.preload=l,l.addEventListener("load",function(){return a.loading|=1}),l.addEventListener("error",function(){return a.loading|=2})}function yu(t){return'[src="'+wl(t)+'"]'}function cn(t){return"script[async]"+t}function V0(t,l,e){if(l.count++,l.instance===null)switch(l.type){case"style":var a=t.querySelector('style[data-href~="'+wl(e.href)+'"]');if(a)return l.instance=a,ul(a),a;var u=F({},e,{"data-href":e.href,"data-precedence":e.precedence,href:null,precedence:null});return a=(t.ownerDocument||t).createElement("style"),ul(a),yl(a,"style",u),Ri(a,e.precedence,t),l.instance=a;case"stylesheet":u=mu(e.href);var n=t.querySelector(nn(u));if(n)return l.state.loading|=4,l.instance=n,ul(n),n;a=X0(e),(u=Jl.get(u))&&xs(a,u),n=(t.ownerDocument||t).createElement("link"),ul(n);var i=n;return i._p=new Promise(function(c,s){i.onload=c,i.onerror=s}),yl(n,"link",a),l.state.loading|=4,Ri(n,e.precedence,t),l.instance=n;case"script":return n=yu(e.src),(u=t.querySelector(cn(n)))?(l.instance=u,ul(u),u):(a=e,(u=Jl.get(n))&&(a=F({},e),ps(a,u)),t=t.ownerDocument||t,u=t.createElement("script"),ul(u),yl(u,"link",a),t.head.appendChild(u),l.instance=u);case"void":return null;default:throw Error(d(443,l.type))}else l.type==="stylesheet"&&(l.state.loading&4)===0&&(a=l.instance,l.state.loading|=4,Ri(a,e.precedence,t));return l.instance}function Ri(t,l,e){for(var a=e.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=a.length?a[a.length-1]:null,n=u,i=0;i<a.length;i++){var c=a[i];if(c.dataset.precedence===l)n=c;else if(n!==u)break}n?n.parentNode.insertBefore(t,n.nextSibling):(l=e.nodeType===9?e.head:e,l.insertBefore(t,l.firstChild))}function xs(t,l){t.crossOrigin==null&&(t.crossOrigin=l.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=l.referrerPolicy),t.title==null&&(t.title=l.title)}function ps(t,l){t.crossOrigin==null&&(t.crossOrigin=l.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=l.referrerPolicy),t.integrity==null&&(t.integrity=l.integrity)}var Hi=null;function Z0(t,l,e){if(Hi===null){var a=new Map,u=Hi=new Map;u.set(e,a)}else u=Hi,a=u.get(e),a||(a=new Map,u.set(e,a));if(a.has(t))return a;for(a.set(t,null),e=e.getElementsByTagName(t),u=0;u<e.length;u++){var n=e[u];if(!(n[Su]||n[sl]||t==="link"&&n.getAttribute("rel")==="stylesheet")&&n.namespaceURI!=="http://www.w3.org/2000/svg"){var i=n.getAttribute(l)||"";i=t+i;var c=a.get(i);c?c.push(n):a.set(i,[n])}}return a}function Ss(t,l,e){t=t.ownerDocument||t,t.head.insertBefore(e,l==="title"?t.querySelector("head > title"):null)}function rh(t,l,e){if(e===1||l.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof l.precedence!="string"||typeof l.href!="string"||l.href==="")break;return!0;case"link":if(typeof l.rel!="string"||typeof l.href!="string"||l.href===""||l.onLoad||l.onError)break;switch(l.rel){case"stylesheet":return t=l.disabled,typeof l.precedence=="string"&&t==null;default:return!0}case"script":if(l.async&&typeof l.async!="function"&&typeof l.async!="symbol"&&!l.onLoad&&!l.onError&&l.src&&typeof l.src=="string")return!0}return!1}function L0(t,l){return t==="img"&&l.src!=null&&l.src!==""&&l.onLoad==null&&l.loading!=="lazy"}function K0(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function J0(t){return(t.width||100)*(t.height||100)*(typeof devicePixelRatio=="number"?devicePixelRatio:1)*.25}function k0(t,l){typeof l.decode=="function"&&(t.imgCount++,l.complete||(t.imgBytes+=J0(l),t.suspenseyImages.push(l)),t=mh.bind(t),l.decode().then(t,t))}function oh(t,l,e,a){if(e.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(e.state.loading&4)===0){if(e.instance===null){var u=mu(a.href),n=l.querySelector(nn(u));if(n){l=n._p,l!==null&&typeof l=="object"&&typeof l.then=="function"&&(t.count++,t=fn.bind(t),l.then(t,t)),e.state.loading|=4,e.instance=n,ul(n);return}n=l.ownerDocument||l,a=X0(a),(u=Jl.get(u))&&xs(a,u),n=n.createElement("link"),ul(n);var i=n;i._p=new Promise(function(c,s){i.onload=c,i.onerror=s}),yl(n,"link",a),e.instance=n}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(e,l),(l=e.state.preload)&&(e.state.loading&3)===0&&(t.count++,e=fn.bind(t),l.addEventListener("load",e),l.addEventListener("error",e))}}var qi=0;function dh(t,l){return t.stylesheets&&t.count===0&&Yi(t,t.stylesheets),0<t.count||0<t.imgCount?function(e){var a=setTimeout(function(){if(t.stylesheets&&Yi(t,t.stylesheets),t.unsuspend){var n=t.unsuspend;t.unsuspend=null,n()}},6e4+l);0<t.imgBytes&&qi===0&&(qi=62500*My());var u=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Yi(t,t.stylesheets),t.unsuspend)){var n=t.unsuspend;t.unsuspend=null,n()}},(t.imgBytes>qi?50:800)+l);return t.unsuspend=e,function(){t.unsuspend=null,clearTimeout(a),clearTimeout(u)}}:null}function $0(t){if(t.count===0&&(t.imgCount===0||!t.waitingForImages)){if(t.stylesheets)Yi(t,t.stylesheets);else if(t.unsuspend){var l=t.unsuspend;t.unsuspend=null,l()}}}function fn(){this.count--,$0(this)}function mh(){this.imgCount--,$0(this)}var Bi=null;function Yi(t,l){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Bi=new Map,l.forEach(yh,t),Bi=null,fn.call(t))}function yh(t,l){if(!(l.state.loading&4)){var e=Bi.get(t);if(e)var a=e.get(null);else{e=new Map,Bi.set(t,e);for(var u=t.querySelectorAll("link[data-precedence],style[data-precedence]"),n=0;n<u.length;n++){var i=u[n];(i.nodeName==="LINK"||i.getAttribute("media")!=="not all")&&(e.set(i.dataset.precedence,i),a=i)}a&&e.set(null,a)}u=l.instance,i=u.getAttribute("data-precedence"),n=e.get(i)||a,n===a&&e.set(null,u),e.set(i,u),this.count++,a=fn.bind(this),u.addEventListener("load",a),u.addEventListener("error",a),n?n.parentNode.insertBefore(u,n.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(u,t.firstChild)),l.state.loading|=4}}var hu={$$typeof:Bt,Provider:null,Consumer:null,_currentValue:A,_currentValue2:A,_threadCount:0};function hh(t,l,e,a,u,n,i,c,s){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=tc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=tc(0),this.hiddenUpdates=tc(null),this.identifierPrefix=a,this.onUncaughtError=u,this.onCaughtError=n,this.onRecoverableError=i,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=s,this.transitionTypes=null,this.incompleteTransitions=new Map}function F0(t,l,e,a,u,n,i,c,s,g,p,_){return t=new hh(t,l,e,i,s,g,p,_,c),l=1,n===!0&&(l|=24),n=Nl(3,null,null,l),t.current=n,n.stateNode=t,l=Hc(),l.refCount++,t.pooledCache=l,l.refCount++,n.memoizedState={element:a,isDehydrated:e,cache:l},wc(n),t}function W0(t){return t?(t=Qa,t):Qa}function I0(t,l,e,a,u,n){u=W0(u),a.context===null?a.context=u:a.pendingContext=u,a=Qe(l),a.payload={element:e},n=n===void 0?null:n,n!==null&&(a.callback=n),e=Xe(t,a,l),e!==null&&(Ol(e,t,l),Yu(e,t,l))}function P0(t,l){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var e=t.retryLane;t.retryLane=e!==0&&e<l?e:l}}function Ts(t,l){P0(t,l),(t=t.alternate)&&P0(t,l)}function tm(t){if(t.tag===13||t.tag===31){var l=ra(t,67108864);l!==null&&Ol(l,t,67108864),Ts(t,67108864)}}function lm(t){if(t.tag===13||t.tag===31){var l=Bl();l=lc(l);var e=ra(t,l);e!==null&&Ol(e,t,l),Ts(t,l)}}var vu=!0;function vh(t,l,e,a){var u=y.T;y.T=null;var n=O.p;try{O.p=2,Ns(t,l,e,a)}finally{O.p=n,y.T=u}}function gh(t,l,e,a){var u=y.T;y.T=null;var n=O.p;try{O.p=8,Ns(t,l,e,a)}finally{O.p=n,y.T=u}}function Ns(t,l,e,a){if(vu){var u=Es(a);if(u===null)us(t,l,a,wi,e),am(t,a);else if(xh(u,t,l,e,a))a.stopPropagation();else if(am(t,a),l&4&&-1<bh.indexOf(t)){for(;u!==null;){var n=Ma(u);if(n!==null)switch(n.tag){case 3:if(n=n.stateNode,n.current.memoizedState.isDehydrated){var i=na(n.pendingLanes);if(i!==0){var c=n;for(c.pendingLanes|=2,c.entangledLanes|=2;i;){var s=1<<31-Ml(i);c.entanglements[1]|=s,i&=~s}de(n),(_t&6)===0&&(Ei=Al()+500,tn(0))}}break;case 31:case 13:c=ra(n,2),c!==null&&Ol(c,n,2),Oi(),Ts(n,2)}if(n=Es(a),n===null&&us(t,l,a,wi,e),n===u)break;u=n}u!==null&&a.stopPropagation()}else us(t,l,a,null,e)}}function Es(t){return t=fc(t),zs(t)}var wi=null;function zs(t){if(wi=null,t=ia(t),t!==null){var l=w(t);if(l===null)t=null;else{var e=l.tag;if(e===13){if(t=j(l),t!==null)return t;t=null}else if(e===31){if(t=ut(l),t!==null)return t;t=null}else if(e===3){if(l.stateNode.current.memoizedState.isDehydrated)return l.tag===3?l.stateNode.containerInfo:null;t=null}else l!==t&&(t=null)}}return wi=t,null}function em(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"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"fullscreenerror":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"resize":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Mm()){case Gs:return 2;case Qs:return 8;case bn:case Cm:return 32;case Xs:return 268435456;default:return 32}default:return 32}}var _s=!1,ta=null,la=null,ea=null,sn=new Map,rn=new Map,aa=[],bh="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 am(t,l){switch(t){case"focusin":case"focusout":ta=null;break;case"dragenter":case"dragleave":la=null;break;case"mouseover":case"mouseout":ea=null;break;case"pointerover":case"pointerout":sn.delete(l.pointerId);break;case"gotpointercapture":case"lostpointercapture":rn.delete(l.pointerId)}}function on(t,l,e,a,u,n){return t===null||t.nativeEvent!==n?(t={blockedOn:l,domEventName:e,eventSystemFlags:a,nativeEvent:n,targetContainers:[u]},l!==null&&(l=Ma(l),l!==null&&tm(l)),t):(t.eventSystemFlags|=a,l=t.targetContainers,u!==null&&l.indexOf(u)===-1&&l.push(u),t)}function xh(t,l,e,a,u){switch(l){case"focusin":return ta=on(ta,t,l,e,a,u),!0;case"dragenter":return la=on(la,t,l,e,a,u),!0;case"mouseover":return ea=on(ea,t,l,e,a,u),!0;case"pointerover":var n=u.pointerId;return sn.set(n,on(sn.get(n)||null,t,l,e,a,u)),!0;case"gotpointercapture":return n=u.pointerId,rn.set(n,on(rn.get(n)||null,t,l,e,a,u)),!0}return!1}function um(t){var l=ia(t.target);if(l!==null){var e=w(l);if(e!==null){if(l=e.tag,l===13){if(l=j(e),l!==null){t.blockedOn=l,$s(t.priority,function(){lm(e)});return}}else if(l===31){if(l=ut(e),l!==null){t.blockedOn=l,$s(t.priority,function(){lm(e)});return}}else if(l===3&&e.stateNode.current.memoizedState.isDehydrated){t.blockedOn=e.tag===3?e.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Gi(t){if(t.blockedOn!==null)return!1;for(var l=t.targetContainers;0<l.length;){var e=Es(t.nativeEvent);if(e===null){e=t.nativeEvent;var a=new e.constructor(e.type,e);cc=a,e.target.dispatchEvent(a),cc=null}else return l=Ma(e),l!==null&&tm(l),t.blockedOn=e,!1;l.shift()}return!0}function nm(t,l,e){Gi(t)&&e.delete(l)}function ph(){_s=!1,ta!==null&&Gi(ta)&&(ta=null),la!==null&&Gi(la)&&(la=null),ea!==null&&Gi(ea)&&(ea=null),sn.forEach(nm),rn.forEach(nm)}function Qi(t,l){t.blockedOn===l&&(t.blockedOn=null,_s||(_s=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,ph)))}var Xi=null;function im(t){Xi!==t&&(Xi=t,r.unstable_scheduleCallback(r.unstable_NormalPriority,function(){Xi===t&&(Xi=null);for(var l=0;l<t.length;l+=3){var e=t[l],a=t[l+1],u=t[l+2];if(typeof a!="function"){if(zs(a||e)===null)continue;break}var n=Ma(e);n!==null&&(t.splice(l,3),l-=3,cf(n,{pending:!0,data:u,method:e.method,action:a},a,u))}}))}function gu(t){function l(s){return Qi(s,t)}ta!==null&&Qi(ta,t),la!==null&&Qi(la,t),ea!==null&&Qi(ea,t),sn.forEach(l),rn.forEach(l);for(var e=0;e<aa.length;e++){var a=aa[e];a.blockedOn===t&&(a.blockedOn=null)}for(;0<aa.length&&(e=aa[0],e.blockedOn===null);)um(e),e.blockedOn===null&&aa.shift();if(e=(t.ownerDocument||t).$$reactFormReplay,e!=null)for(a=0;a<e.length;a+=3){var u=e[a],n=e[a+1],i=u[Tl]||null;if(typeof n=="function")i||im(e);else if(i){var c=null;if(n&&n.hasAttribute("formAction")){if(u=n,i=n[Tl]||null)c=i.formAction;else if(zs(u)!==null)continue}else c=i.action;typeof c=="function"?e[a+1]=c:(e.splice(a,3),a-=3),im(e)}}}function cm(){function t(n){n.canIntercept&&n.info==="react-transition"&&n.intercept({handler:function(){return new Promise(function(i){return u=i})},focusReset:"manual",scroll:"manual"})}function l(){u!==null&&(u(),u=null),a||setTimeout(e,20)}function e(){if(!a&&!navigation.transition){var n=navigation.currentEntry;n&&n.url!=null&&navigation.navigate(n.url,{state:n.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,u=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",l),navigation.addEventListener("navigateerror",l),setTimeout(e,100),function(){a=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",l),navigation.removeEventListener("navigateerror",l),u!==null&&(u(),u=null)}}}function Os(t){this._internalRoot=t}Vi.prototype.render=Os.prototype.render=function(t){var l=this._internalRoot;if(l===null)throw Error(d(409));var e=l.current,a=Bl();I0(e,a,t,l,null,null)},Vi.prototype.unmount=Os.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var l=t.containerInfo;I0(t.current,2,null,t,null,null),Oi(),l[ja]=null}};function Vi(t){this._internalRoot=t}Vi.prototype.unstable_scheduleHydration=function(t){if(t){var l=ks();t={blockedOn:null,target:t,priority:l};for(var e=0;e<aa.length&&l!==0&&l<aa[e].priority;e++);aa.splice(e,0,t),e===0&&um(t)}};var fm=N.version;if(fm!=="19.3.1")throw Error(d(527,fm,"19.3.1"));O.findDOMNode=function(t){var l=t._reactInternals;if(l===void 0)throw typeof t.render=="function"?Error(d(188)):(t=Object.keys(t).join(","),Error(d(268,t)));return t=V(l),t=t!==null?q(t):null,t=t===null?null:t.stateNode,t};var Sh={bundleType:0,version:"19.3.1",rendererPackageName:"react-dom",currentDispatcherRef:y,reconcilerVersion:"19.3.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Zi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Zi.isDisabled&&Zi.supportsFiber)try{bu=Zi.inject(Sh),jl=Zi}catch{}}return mn.createRoot=function(t,l){if(!M(t))throw Error(d(299));var e=!1,a="",u=Wo,n=Io,i=Po;return l!=null&&(l.unstable_strictMode===!0&&(e=!0),l.identifierPrefix!==void 0&&(a=l.identifierPrefix),l.onUncaughtError!==void 0&&(u=l.onUncaughtError),l.onCaughtError!==void 0&&(n=l.onCaughtError),l.onRecoverableError!==void 0&&(i=l.onRecoverableError)),l=F0(t,1,!1,null,null,e,a,null,u,n,i,cm),t[ja]=l.current,as(t),new Os(l)},mn.hydrateRoot=function(t,l,e){if(!M(t))throw Error(d(299));var a=!1,u="",n=Wo,i=Io,c=Po,s=null;return e!=null&&(e.unstable_strictMode===!0&&(a=!0),e.identifierPrefix!==void 0&&(u=e.identifierPrefix),e.onUncaughtError!==void 0&&(n=e.onUncaughtError),e.onCaughtError!==void 0&&(i=e.onCaughtError),e.onRecoverableError!==void 0&&(c=e.onRecoverableError),e.formState!==void 0&&(s=e.formState)),l=F0(t,1,!0,l,e??null,a,u,s,n,i,c,cm),l.context=W0(null),e=l.current,a=Bl(),a=lc(a),u=Qe(a),u.callback=null,Xe(e,u,a),e=a,l.current.lanes=e,pu(l,e),de(l),t[ja]=l.current,as(t),new Vi(l)},mn.version="19.3.1",mn}var bm;function Uh(){if(bm)return Ms.exports;bm=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(N){console.error(N)}}return r(),Ms.exports=Dh(),Ms.exports}var Rh=Uh();/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Hh=r=>r.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),pm=(...r)=>r.filter((N,E,d)=>!!N&&N.trim()!==""&&d.indexOf(N)===E).join(" ").trim();/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var qh={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Bh=G.forwardRef(({color:r="currentColor",size:N=24,strokeWidth:E=2,absoluteStrokeWidth:d,className:M="",children:w,iconNode:j,...ut},W)=>G.createElement("svg",{ref:W,...qh,width:N,height:N,stroke:r,strokeWidth:d?Number(E)*24/Number(N):E,className:pm("lucide",M),...ut},[...j.map(([V,q])=>G.createElement(V,q)),...Array.isArray(w)?w:[w]]));/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Ot=(r,N)=>{const E=G.forwardRef(({className:d,...M},w)=>G.createElement(Bh,{ref:w,iconNode:N,className:pm(`lucide-${Hh(r)}`,d),...M}));return E.displayName=`${r}`,E};/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Yh=Ot("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const wh=Ot("Bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Sm=Ot("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Gh=Ot("CircleAlert",[["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"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Qh=Ot("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Xh=Ot("CircleStop",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["rect",{x:"9",y:"9",width:"6",height:"6",rx:"1",key:"1ssd4o"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Vh=Ot("ClipboardCheck",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"m9 14 2 2 4-4",key:"df797q"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Zh=Ot("Cpu",[["rect",{width:"16",height:"16",x:"4",y:"4",rx:"2",key:"14l7u7"}],["rect",{width:"6",height:"6",x:"9",y:"9",rx:"1",key:"5aljv4"}],["path",{d:"M15 2v2",key:"13l42r"}],["path",{d:"M15 20v2",key:"15mkzm"}],["path",{d:"M2 15h2",key:"1gxd5l"}],["path",{d:"M2 9h2",key:"1bbxkp"}],["path",{d:"M20 15h2",key:"19e6y8"}],["path",{d:"M20 9h2",key:"19tzq7"}],["path",{d:"M9 2v2",key:"165o2o"}],["path",{d:"M9 20v2",key:"i2bqo8"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Lh=Ot("Ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Kh=Ot("Gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Tm=Ot("GraduationCap",[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Jh=Ot("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const kh=Ot("KeyRound",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const $h=Ot("ListVideo",[["path",{d:"M12 12H3",key:"18klou"}],["path",{d:"M16 6H3",key:"1wxfjs"}],["path",{d:"M12 18H3",key:"11ftsu"}],["path",{d:"m16 12 5 3-5 3v-6Z",key:"zpskkp"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Fh=Ot("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Wh=Ot("LogIn",[["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}],["polyline",{points:"10 17 15 12 10 7",key:"1ail0h"}],["line",{x1:"15",x2:"3",y1:"12",y2:"12",key:"v6grx8"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Ih=Ot("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Nm=Ot("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Bs=Ot("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Ph=Ot("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const tv=Ot("ScrollText",[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const lv=Ot("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ev=Ot("ServerCog",[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["path",{d:"M4.5 10H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-.5",key:"tn8das"}],["path",{d:"M4.5 14H4a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2h-.5",key:"1g2pve"}],["path",{d:"M6 6h.01",key:"1utrut"}],["path",{d:"M6 18h.01",key:"uhywen"}],["path",{d:"m15.7 13.4-.9-.3",key:"1jwmzr"}],["path",{d:"m9.2 10.9-.9-.3",key:"qapnim"}],["path",{d:"m10.6 15.7.3-.9",key:"quwk0k"}],["path",{d:"m13.6 15.7-.4-1",key:"cb9xp7"}],["path",{d:"m10.8 9.3-.4-1",key:"1uaiz5"}],["path",{d:"m8.3 13.6 1-.4",key:"s6srou"}],["path",{d:"m14.7 10.8 1-.4",key:"4d31cq"}],["path",{d:"m13.4 8.3-.3.9",key:"1bm987"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const av=Ot("Settings2",[["path",{d:"M20 7h-9",key:"3s1dr2"}],["path",{d:"M14 17H5",key:"gfn3mx"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const uv=Ot("ShieldCheck",[["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"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const nv=Ot("Square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const iv=Ot("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Em=Ot("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const cv=Ot("Video",[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const fv=Ot("WifiOff",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}],["path",{d:"M5 12.859a10 10 0 0 1 5.17-2.69",key:"1dl1wf"}],["path",{d:"M19 12.859a10 10 0 0 0-2.007-1.523",key:"4k23kn"}],["path",{d:"M2 8.82a15 15 0 0 1 4.177-2.643",key:"1grhjp"}],["path",{d:"M22 8.82a15 15 0 0 0-11.288-3.764",key:"z3jwby"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const sv=Ot("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function zm(r){var N,E,d="";if(typeof r=="string"||typeof r=="number")d+=r;else if(typeof r=="object")if(Array.isArray(r)){var M=r.length;for(N=0;N<M;N++)r[N]&&(E=zm(r[N]))&&(d&&(d+=" "),d+=E)}else for(E in r)r[E]&&(d&&(d+=" "),d+=E);return d}function rv(){for(var r,N,E=0,d="",M=arguments.length;E<M;E++)(r=arguments[E])&&(N=zm(r))&&(d&&(d+=" "),d+=N);return d}const gl=(...r)=>rv(r),kl="w-full rounded-lg border border-line bg-white px-3 py-2 text-[13px] text-slate-900 placeholder:text-slate-400 transition focus:border-brand-500 focus:outline-none focus:ring-3 focus:ring-brand-500/15 disabled:cursor-not-allowed disabled:bg-slate-50";function xm(r){if(!r)return"—";const N=Math.floor((Date.now()-r)/6e4);return N<1?"刚刚":N<60?`${N} 分钟前`:`${Math.floor(N/60)} 小时前`}function Rs(r=[]){return{total:r.length,studyable:r.filter(N=>N.in_study!==!1).length}}function yn(r){return String(r||"").split("#").filter(Boolean)}const ov={"01":"单选","02":"多选","03":"判断","04":"问答"};function me(r){return r instanceof Error?r.message:String(r)}const dv={neutral:"bg-slate-100 text-slate-600 ring-slate-200",brand:"bg-brand-50 text-brand-700 ring-brand-100",success:"bg-emerald-50 text-emerald-700 ring-emerald-100",warning:"bg-amber-50 text-amber-700 ring-amber-100",danger:"bg-red-50 text-red-700 ring-red-100",running:"bg-sky-50 text-sky-700 ring-sky-100"};function Hs({tone:r="neutral",children:N,dot:E=!1,className:d}){return f.jsxs("span",{className:gl("inline-flex items-center gap-1.5 rounded-full px-2 py-0.5 text-[11px] font-medium ring-1 ring-inset",dv[r],d),children:[E&&f.jsx("span",{className:"size-1.5 rounded-full bg-current opacity-70"}),N]})}const mv={primary:"border-brand-500 bg-brand-500 text-white shadow-sm shadow-brand-500/25 hover:border-brand-600 hover:bg-brand-600",secondary:"border-line bg-white text-slate-700 hover:border-slate-300 hover:bg-slate-50",ghost:"border-transparent bg-transparent text-slate-600 hover:bg-slate-100",danger:"border-transparent bg-transparent text-red-600 hover:bg-red-50",soft:"border-brand-100 bg-brand-50 text-brand-700 hover:border-brand-200 hover:bg-brand-100"},yv={sm:"h-8 gap-1.5 rounded-lg px-2.5 text-xs",md:"h-9 gap-1.5 rounded-lg px-3.5 text-[13px]",icon:"h-9 w-9 rounded-lg"};function Jt({variant:r="secondary",size:N="md",loading:E=!1,icon:d,className:M,children:w,disabled:j,type:ut="button",...W}){return f.jsxs("button",{type:ut,disabled:j||E,className:gl("inline-flex shrink-0 items-center justify-center border font-medium transition","focus-visible:outline-none focus-visible:ring-3 focus-visible:ring-brand-500/20","disabled:cursor-not-allowed disabled:opacity-50",mv[r],yv[N],M),...W,children:[E?f.jsx(Fh,{className:"size-3.5 animate-spin"}):d,w]})}function hv(r,N){var w,j;const E=N==="login"||r.status==="logging"||((w=r.run)==null?void 0:w.status)==="logging"?"logging":((j=r.run)==null?void 0:j.status)||r.status||"idle",M={discovering:{label:"发现课程中",tone:"running",pulse:!0},studying:{label:"学习中",tone:"running",pulse:!0},finished:{label:"已完成",tone:"success"},stopped:{label:"已停止",tone:"warning"},error:{label:"出错",tone:"danger"},interrupted:{label:"已中断",tone:"warning"},logging:{label:"登录中",tone:"running",pulse:!0},logged_in:{label:"已登录",tone:"success"},login_failed:{label:"登录失败",tone:"danger"},idle:{label:"未登录",tone:"neutral"}}[E]||{label:E,tone:"neutral"};return{label:M.label,tone:M.tone,pulse:!!M.pulse}}function vv({account:r,course:N,disabled:E,onToggle:d}){var w;const M=(w=r.selected)==null?void 0:w.includes(N.plan_id);return f.jsxs("label",{className:gl("flex cursor-pointer items-start gap-2.5 rounded-lg border border-transparent px-2 py-1.5 transition","hover:border-line hover:bg-slate-50",E&&"pointer-events-none opacity-60"),children:[f.jsx("input",{type:"checkbox",className:"mt-0.5 size-3.5 shrink-0 accent-brand-500",checked:!!M,disabled:E,onChange:j=>d(N.plan_id,j.target.checked)}),f.jsxs("span",{className:"min-w-0 flex-1",children:[f.jsx("span",{className:"block truncate text-[12.5px] font-medium text-slate-700",children:N.name||N.plan_id}),f.jsx("span",{className:"mt-0.5 block truncate text-[11px] text-slate-400",children:[N.section,N.status_label,N.info].filter(Boolean).join(" · ")||"—"})]}),f.jsx("span",{className:"shrink-0 pt-0.5 text-[11px] tabular-nums text-slate-500",children:N.progress||""})]})}function gv({account:r,platformLabel:N,pending:E,openLog:d,logLines:M,onToggleLog:w,onLogin:j,onRefresh:ut,onStudy:W,onStop:V,onCapture:q,onStopCapture:S,onQuiz:Z,onDelete:rt,onToggleCourse:Xt,onSelectAll:et,onClearSelection:D,onToggleOption:dt}){var pt,B,at,it,wt,o,T,Y,Q,mt,st,vt,y,O,A,L;const[tt,Tt]=G.useState(!1),Ft=G.useRef(null),Mt=G.useRef(null),Ht=G.useRef(!0);G.useEffect(()=>{if(!tt)return;const U=J=>{var P;(P=Ft.current)!=null&&P.contains(J.target)||Tt(!1)};return document.addEventListener("pointerdown",U),()=>document.removeEventListener("pointerdown",U)},[tt]),G.useEffect(()=>{const U=Mt.current;U&&Ht.current&&(U.scrollTop=U.scrollHeight)},[M,d]);const F=hv(r,E),C=!!E||r.status==="logging"||((pt=r.run)==null?void 0:pt.status)==="logging",At=r.courses||[],zt=At.filter(U=>U.in_study!==!1),Nt=At.filter(U=>U.in_study===!1),Ct=Rs(At),Wt=((B=r.run)==null?void 0:B.done)||0,Lt=((at=r.run)==null?void 0:at.total)||0,Bt=Lt?Math.round(Wt/Lt*100):0,H=["discovering","studying"].includes(((it=r.run)==null?void 0:it.status)||""),k=((wt=r.selected)==null?void 0:wt.length)||0,I=k>0&&(((o=r.cookies)==null?void 0:o.length)||0)>0;return f.jsxs("article",{"data-id":r.id,className:"card-shadow flex min-w-0 flex-col rounded-2xl border border-line bg-white transition-colors hover:border-slate-300/80",children:[f.jsxs("header",{className:"flex items-start gap-3 px-4 pt-4",children:[f.jsxs("div",{className:"relative mt-0.5 grid size-10 shrink-0 place-items-center rounded-xl bg-gradient-to-br from-brand-50 to-sky-50 text-[13px] font-semibold text-brand-700 ring-1 ring-brand-100",children:[(r.user||r.username||"?").slice(0,1).toUpperCase(),f.jsx("span",{className:gl("absolute -bottom-0.5 -right-0.5 size-3 rounded-full border-2 border-white",F.tone==="success"?"bg-emerald-500":F.tone==="danger"?"bg-red-500":F.tone==="running"?"bg-sky-500":F.tone==="warning"?"bg-amber-500":"bg-slate-300",F.pulse&&"animate-pulse")})]}),f.jsxs("div",{className:"min-w-0 flex-1",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx("h2",{className:"truncate text-[13.5px] font-semibold text-slate-900",children:r.user||r.username}),f.jsx(Hs,{tone:F.tone,dot:!0,children:F.label})]}),f.jsxs("div",{className:"mt-1 flex flex-wrap items-center gap-x-2 gap-y-0.5 text-[11px] text-slate-400",children:[f.jsx("span",{className:"truncate",children:r.username}),r.note&&f.jsxs("span",{className:"truncate",children:["· ",r.note]}),f.jsxs("span",{children:["· ",xm(r.updated||r.loginAt)]})]})]}),f.jsx(Hs,{tone:"brand",className:"mt-0.5 shrink-0",children:N})]}),f.jsxs("div",{className:"px-4 pt-3",children:[f.jsxs("div",{className:"flex items-center justify-between gap-2",children:[f.jsxs("div",{className:"text-[11.5px] text-slate-500",children:["共 ",f.jsx("b",{className:"font-semibold text-slate-700",children:Ct.total})," 门 · 可学"," ",f.jsx("b",{className:"font-semibold text-slate-700",children:Ct.studyable}),Nt.length>0&&f.jsxs("span",{className:"text-slate-400",children:[" · 已完成 ",Nt.length]})]}),zt.length>0&&f.jsxs("div",{className:"flex items-center gap-1",children:[f.jsx("button",{type:"button",disabled:C,className:"rounded px-1.5 py-0.5 text-[11px] text-brand-600 transition hover:bg-brand-50 disabled:opacity-40",onClick:et,children:"全选"}),f.jsx("button",{type:"button",disabled:C||k===0,className:"rounded px-1.5 py-0.5 text-[11px] text-slate-500 transition hover:bg-slate-100 disabled:opacity-40",onClick:D,children:"清空"})]})]}),f.jsx("div",{className:"scrollbar-thin mt-1.5 max-h-[196px] min-h-[70px] overflow-y-auto pr-0.5",children:At.length===0?f.jsx("div",{className:"grid min-h-[70px] place-items-center rounded-lg border border-dashed border-line text-[12px] text-slate-400",children:"还没有课程,先登录或刷新课程"}):f.jsxs(f.Fragment,{children:[zt.map(U=>f.jsx(vv,{account:r,course:U,disabled:C,onToggle:Xt},U.plan_id)),Nt.length>0&&f.jsx("div",{className:"mt-1 border-t border-dashed border-line pt-1",children:Nt.map(U=>f.jsxs("div",{className:"flex items-start gap-2.5 rounded-lg px-2 py-1.5 text-slate-400",children:[f.jsx("span",{className:"mt-0.5 grid size-3.5 shrink-0 place-items-center rounded-full bg-emerald-50 text-[9px] text-emerald-600",children:"✓"}),f.jsxs("span",{className:"min-w-0 flex-1",children:[f.jsx("span",{className:"block truncate text-[12px]",children:U.name||U.plan_id}),f.jsx("span",{className:"mt-0.5 block truncate text-[10.5px] opacity-80",children:[U.section,U.info].filter(Boolean).join(" · ")})]}),f.jsx("span",{className:"shrink-0 text-[10.5px]",children:U.status_label||"已结束"})]},U.plan_id))})]})})]}),f.jsxs("div",{className:"mt-3 flex flex-wrap items-center gap-x-4 gap-y-1.5 border-t border-line/70 px-4 py-2.5",children:[f.jsxs("label",{className:"flex cursor-pointer items-center gap-1.5 text-[11.5px] text-slate-600",children:[f.jsx("input",{type:"checkbox",className:"size-3.5 accent-brand-500",checked:r.optQuiz===!0,disabled:C,onChange:U=>dt("quiz",U.target.checked)}),"自动交测验"]}),f.jsxs("label",{className:"flex cursor-pointer items-center gap-1.5 text-[11.5px] text-slate-600",children:[f.jsx("input",{type:"checkbox",className:"size-3.5 accent-brand-500",checked:r.optFeedback!==!1,disabled:C,onChange:U=>dt("feedback",U.target.checked)}),"自动交反馈表"]}),f.jsx("div",{className:"flex-1"}),f.jsx("span",{className:"text-[11px] tabular-nums text-slate-400",children:k>0?`已选 ${k} 门`:"未选择课程"})]}),f.jsxs("div",{className:"flex flex-wrap items-center gap-1.5 border-t border-line/70 px-4 py-2.5",children:[f.jsx(Jt,{size:"sm",variant:"soft",loading:E==="login"||r.status==="logging"||((T=r.run)==null?void 0:T.status)==="logging",disabled:C,icon:f.jsx(Wh,{className:"size-3.5"}),onClick:j,children:(Y=r.cookies)!=null&&Y.length?"重新登录":"登录"}),f.jsx(Jt,{size:"sm",loading:E==="refresh",disabled:C||!((Q=r.cookies)!=null&&Q.length),icon:f.jsx(Bs,{className:"size-3.5"}),onClick:ut,children:"刷新课程"}),f.jsx(Jt,{size:"sm",variant:"primary",loading:E==="study",disabled:C||!I,icon:f.jsx(Ih,{className:"size-3.5"}),onClick:W,children:"开始学习"}),f.jsx("div",{className:"flex-1"}),H&&f.jsx(Jt,{size:"icon",variant:"danger",loading:E==="stop",onClick:V,title:"停止学习","aria-label":"停止学习",children:f.jsx(Xh,{className:"size-4"})}),f.jsxs("div",{className:"relative",ref:Ft,children:[f.jsx(Jt,{size:"icon",variant:"ghost",onClick:()=>Tt(U=>!U),"aria-label":"更多操作",title:"更多操作",children:f.jsx(Lh,{className:"size-4"})}),tt&&f.jsx("div",{className:"absolute bottom-10 right-0 z-20 w-40 overflow-hidden rounded-xl border border-line bg-white py-1 shadow-xl shadow-slate-900/10",children:[{label:"课程日志",icon:$h,action:w},{label:"打开测验",icon:Vh,action:Z},(mt=r.run)!=null&&mt.capturing?{label:"停止抓包",icon:nv,action:S}:{label:"抓包 10 分钟",icon:cv,action:q},{label:"删除账号",icon:iv,action:rt,danger:!0}].map(U=>f.jsxs("button",{type:"button",className:gl("flex w-full items-center gap-2 px-3 py-2 text-left text-[12px] transition hover:bg-slate-50",U.danger?"text-red-600":"text-slate-700"),onClick:()=>{Tt(!1),U.action()},children:[f.jsx(U.icon,{className:"size-3.5 opacity-70"}),U.label]},U.label))})]})]}),(Lt>0||((st=r.run)==null?void 0:st.error))&&f.jsxs("div",{className:"border-t border-line/70 px-4 py-3",children:[f.jsxs("div",{className:"mb-1.5 flex items-center justify-between gap-2 text-[11px] text-slate-500",children:[f.jsx("span",{className:"truncate",children:((vt=r.run)==null?void 0:vt.course)||((y=r.run)==null?void 0:y.status)||"学习进度"}),f.jsxs("span",{className:"shrink-0 tabular-nums",children:[Wt," / ",Lt,Lt>0&&f.jsxs("span",{className:"ml-1 text-slate-400",children:["(",Bt,"%)"]})]})]}),f.jsx("div",{className:"h-1.5 overflow-hidden rounded-full bg-slate-100",children:f.jsx("div",{className:gl("h-full rounded-full transition-all duration-500",((O=r.run)==null?void 0:O.status)==="error"?"bg-red-500":((A=r.run)==null?void 0:A.status)==="finished"?"bg-emerald-500":"bg-gradient-to-r from-brand-500 to-sky-400"),style:{width:`${Math.min(100,Bt)}%`}})}),((L=r.run)==null?void 0:L.error)&&f.jsx("p",{className:"mt-2 rounded-lg bg-red-50 px-2.5 py-1.5 text-[11px] leading-relaxed text-red-700",children:r.run.error})]}),r.lastError&&f.jsx("div",{className:"border-t border-line/70 px-4 py-2.5",children:f.jsxs("p",{className:"rounded-lg bg-red-50/80 px-2.5 py-1.5 text-[11px] leading-relaxed text-red-700",children:[r.lastError,r.lastErrorAt?f.jsxs("span",{className:"ml-1 text-red-400",children:["· ",xm(r.lastErrorAt)]}):null]})}),f.jsxs("div",{className:gl("border-t border-line/70",d?"block":"hidden"),children:[f.jsxs("div",{className:"flex items-center gap-2 px-4 pt-2.5 text-[11px] text-slate-400",children:[f.jsx("span",{className:"font-medium text-slate-500",children:"课程日志"}),f.jsxs("span",{className:"tabular-nums",children:["(",M.length,")"]}),f.jsx("div",{className:"flex-1"}),f.jsx("button",{type:"button",onClick:w,className:"rounded px-1.5 py-0.5 text-[11px] text-slate-500 transition hover:bg-slate-100",children:"收起"})]}),f.jsx("pre",{ref:Mt,onScroll:U=>{const J=U.currentTarget;Ht.current=J.scrollHeight-J.scrollTop-J.clientHeight<24},className:gl("scrollbar-thin mx-4 mb-3 mt-2 max-h-56 overflow-auto rounded-lg bg-slate-950/95 p-3","font-mono text-[11px] leading-relaxed text-slate-300",M.length===0&&"text-slate-500"),children:M.length?M.join(`
`):"暂无日志 · 开始学习后这里会实时显示"})]}),f.jsxs("button",{type:"button",onClick:w,className:"flex items-center justify-center gap-1 border-t border-line/70 py-1.5 text-[10.5px] text-slate-400 transition hover:bg-slate-50 hover:text-slate-600","aria-expanded":d,children:[f.jsx(Sm,{className:gl("size-3 transition-transform",d&&"rotate-180")}),d?"收起课程日志":"展开课程日志"]})]})}const bv={md:"max-w-xl",lg:"max-w-3xl",xl:"max-w-6xl"};function Ki({open:r,onClose:N,title:E,subtitle:d,size:M="md",footer:w,children:j,bodyClassName:ut}){return G.useEffect(()=>{if(!r)return;const W=q=>{q.key==="Escape"&&N()};window.addEventListener("keydown",W);const V=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{window.removeEventListener("keydown",W),document.body.style.overflow=V}},[r,N]),r?f.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",children:[f.jsx("div",{className:"absolute inset-0 bg-slate-900/40 backdrop-blur-[2px]",onClick:N}),f.jsxs("div",{role:"dialog","aria-modal":"true",className:gl("relative flex max-h-[calc(100vh-2rem)] w-full flex-col overflow-hidden rounded-2xl","border border-line bg-white shadow-2xl shadow-slate-900/20",bv[M]),children:[f.jsxs("header",{className:"flex items-start gap-3 border-b border-line px-5 py-4",children:[f.jsxs("div",{className:"min-w-0 flex-1",children:[f.jsx("h2",{className:"truncate text-[15px] font-semibold text-slate-900",children:E}),d&&f.jsx("p",{className:"mt-0.5 truncate text-xs text-slate-500",children:d})]}),f.jsx("button",{type:"button",onClick:N,className:"-mr-1 rounded-lg p-1.5 text-slate-400 transition hover:bg-slate-100 hover:text-slate-600","aria-label":"关闭",children:f.jsx(sv,{className:"size-4"})})]}),f.jsx("div",{className:gl("min-h-0 flex-1 overflow-auto px-5 py-4",ut),children:j}),w&&f.jsx("footer",{className:"flex flex-wrap items-center justify-end gap-2 border-t border-line bg-slate-50/70 px-5 py-3",children:w})]})]}):null}function xv({open:r,platforms:N,onClose:E,onSubmit:d}){var dt;const[M,w]=G.useState(""),[j,ut]=G.useState(""),[W,V]=G.useState(""),[q,S]=G.useState(((dt=N[0])==null?void 0:dt.id)||"guanyixue"),[Z,rt]=G.useState(!1),[Xt,et]=G.useState("");G.useEffect(()=>{var tt;r&&(w(""),ut(""),V(""),S(((tt=N[0])==null?void 0:tt.id)||"guanyixue"),et(""),rt(!1))},[r,N]);async function D(){if(!M.trim()||!j){et("请填写账号和密码");return}rt(!0),et("");try{await d({username:M.trim(),password:j,note:W.trim(),platform:q}),E()}catch(tt){et(tt instanceof Error?tt.message:String(tt))}finally{rt(!1)}}return f.jsx(Ki,{open:r,onClose:E,title:"添加账号",subtitle:"账号密码保存在本机 SQLite,用于会话失效时自动重新登录",footer:f.jsxs(f.Fragment,{children:[f.jsx(Jt,{onClick:E,disabled:Z,children:"取消"}),f.jsx(Jt,{variant:"primary",loading:Z,onClick:D,children:"保存并登录"})]}),children:f.jsxs("div",{className:"space-y-4",children:[f.jsxs("div",{children:[f.jsx("label",{className:"mb-1.5 block text-[12px] font-medium text-slate-600",children:"学习平台"}),f.jsxs("div",{className:"relative",children:[f.jsx(Tm,{className:"pointer-events-none absolute left-2.5 top-1/2 size-3.5 -translate-y-1/2 text-slate-400"}),f.jsx("select",{className:`${kl} appearance-none pl-8 pr-8`,value:q,onChange:tt=>S(tt.target.value),children:N.map(tt=>f.jsx("option",{value:tt.id,children:tt.label},tt.id))}),f.jsx(Sm,{className:"pointer-events-none absolute right-2.5 top-1/2 size-3.5 -translate-y-1/2 text-slate-400"})]}),f.jsx("p",{className:"mt-1.5 text-[11px] leading-relaxed text-slate-400",children:"选「莞易学」后,后台会自动识别旧版 / 新版课程页并按对应实现学习;后续新增的平台会出现在这里。"})]}),f.jsxs("div",{children:[f.jsx("label",{className:"mb-1.5 block text-[12px] font-medium text-slate-600",children:"登录账号"}),f.jsx("input",{className:kl,value:M,autoFocus:!0,placeholder:"手机号 / 身份证号 / 教师账号",onChange:tt=>w(tt.target.value),onKeyDown:tt=>tt.key==="Enter"&&D()})]}),f.jsxs("div",{children:[f.jsx("label",{className:"mb-1.5 block text-[12px] font-medium text-slate-600",children:"密码"}),f.jsx("input",{className:kl,type:"password",value:j,autoComplete:"off",placeholder:"平台登录密码",onChange:tt=>ut(tt.target.value),onKeyDown:tt=>tt.key==="Enter"&&D()})]}),f.jsxs("div",{children:[f.jsxs("label",{className:"mb-1.5 block text-[12px] font-medium text-slate-600",children:["备注 ",f.jsx("span",{className:"font-normal text-slate-400",children:"(可选)"})]}),f.jsx("input",{className:kl,value:W,placeholder:"例如:张三 · 语文",onChange:tt=>V(tt.target.value)})]}),f.jsx("p",{className:"rounded-lg border border-line bg-slate-50 px-3 py-2 text-[11.5px] leading-relaxed text-slate-500",children:"保存后会自动尝试登录一次。若密码错误或需要验证码,卡片上会保留「登录」按钮,可手动重试。"}),Xt&&f.jsx("p",{className:"rounded-lg bg-red-50 px-3 py-2 text-[12px] text-red-700",children:Xt})]})})}class je extends Error{constructor(E,d={}){super(E);Li(this,"offline",!1);Li(this,"status");Li(this,"code");this.name="ApiError",Object.assign(this,d)}}async function Zt(r,N={}){let E;try{E=await fetch(r,{...N,headers:{"Content-Type":"application/json",...N.headers||{}}})}catch{throw new je("后端未连接",{offline:!0})}if(E.status===401)throw new je("需要访问令牌:请用 /?token=<AUTH_TOKEN> 打开一次",{status:401});if(!E.ok)throw new je(`HTTP ${E.status}`,{status:E.status});return await E.json()}async function pv(r,N,E){let d;try{d=await fetch(r,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(N)})}catch{throw new je("后端未连接",{offline:!0})}if(d.status===401)throw new je("需要访问令牌:请用 /?token=<AUTH_TOKEN> 打开一次");if(!d.ok)throw new je(`HTTP ${d.status}`);if(!d.body)throw new je("浏览器不支持流式响应");const M=d.body.getReader(),w=new TextDecoder;let j="";for(;;){const{value:ut,done:W}=await M.read();if(W)break;j+=w.decode(ut,{stream:!0});const V=j.split(`
`);j=V.pop()||"";for(const q of V){const S=q.trim();if(S.startsWith("data:"))try{E(JSON.parse(S.slice(5).trim()))}catch{}}}}function Sv(r){const N=String((r==null?void 0:r.text)||"").replace(/\s+/g," ").trim();return N.length>24?`${N.slice(0,24)}…`:N}function Tv({open:r,account:N,course:E,onClose:d,notify:M,onSubmitted:w}){const[j,ut]=G.useState(null),[W,V]=G.useState({}),[q,S]=G.useState(!1),[Z,rt]=G.useState(!1),[Xt,et]=G.useState(!1),[D,dt]=G.useState(!1),[tt,Tt]=G.useState(""),[Ft,Mt]=G.useState("info"),Ht=G.useRef(0);async function F(B=!1){if(!N||!E)return!1;S(!0),Tt(B?"正在生成新答卷…":"取题中…"),Mt("info");try{const at={cookies:N.cookies,platform:N.platform||"guanyixue",plan_id:E.plan_id,project_id:E.project_id,name:E.name||""};B&&(at.retake=!0,at.period_id=(j==null?void 0:j.period_id)||"");const it=await Zt("/api/quiz",{method:"POST",body:JSON.stringify(at)});if(!it.ok)return ut(null),Tt(it.error||"取题失败"),Mt("error"),!1;ut(it),V(Object.fromEntries((it.questions||[]).map(o=>[o.no,o.picked||""])));const wt=[];if(it.done){const o=it.surplus_exam_count;o!=null?wt.push(`剩 ${o} 次`):it.allow_exam_count&&wt.push(`共 ${it.allow_exam_count} 次`),it.show_answers?wt.push("已显示标准答案"):it.exam_after_watch_answer==="0"&&wt.push("本测验不开放答案"),Tt(`已交卷${wt.length?` · ${wt.join(" · ")}`:""}`),Mt("success")}else Tt(it.started?"已自动创建答卷(限时考试已开始计时)":""),Mt("info");return!0}catch(at){return Tt(at instanceof Error?at.message:"取题失败"),Mt("error"),!1}finally{S(!1)}}if(G.useEffect(()=>{!r||!N||!E||(ut(null),V({}),dt(!1),F(!1))},[r,N==null?void 0:N.id,E==null?void 0:E.plan_id]),!N||!E)return null;const C=(j==null?void 0:j.questions)||[],At=!!(j!=null&&j.done),zt=!!(j!=null&&j.show_answers),Nt=!!(j!=null&&j.can_retake),Ct=j==null?void 0:j.surplus_exam_count,Wt=At||q||Z||D;function Lt(B,at){V(it=>({...it,[B]:at}))}function Bt(B,at,it){V(wt=>{const o=yn(wt[B]),T=it?[...o,at]:o.filter(Y=>Y!==at);return T.sort(),{...wt,[B]:T.join("#")}})}async function H(){if(!j||!N)return;const B=C.filter(at=>!W[at.no]).length;if(!(B&&!window.confirm(`还有 ${B} 题没作答,确定提交?`))){rt(!0),Tt("提交中…"),Mt("info");try{const at=await Zt("/api/quiz/submit",{method:"POST",body:JSON.stringify({cookies:N.cookies,plan_id:j.plan_id,object_id:j.object_id,generation:j.generation||"legacy",result_id:j.result_id||"",answers:W})});if(!at.ok){at.code==="already_finished"&&await F(),Tt(at.error||"提交失败"),Mt("error");return}M({message:`测验已提交${at.score?`,得分 ${at.score}`:""}`,tone:"success"}),await F(),w()}catch(at){Tt(at instanceof Error?at.message:"提交失败"),Mt("error")}finally{rt(!1)}}}async function k(){if(!j)return;if(!j.can_retake){M({message:"没有剩余考试机会",tone:"error"});return}const B=Ct!=null?`(剩余 ${Ct} 次)`:"";if(window.confirm(`再考一次会消耗 1 次机会${B};限时考试会立即开始计时,确定?`)){et(!0);try{await F(!0)&&M({message:"已生成新答卷,可以重新答题了",tone:"success"})}finally{et(!1)}}}async function I(){if(!j||!N)return;if(j.done){M({message:"已交卷,点「再考一次」生成新答卷后再 AI 答题",tone:"error"});return}dt(!0),Ht.current=0;const B=Date.now();let at=0,it="";const wt=window.setInterval(()=>{Tt(`AI 答题中… ${Math.round((Date.now()-B)/1e3)}s · 已填 ${Ht.current}/${C.length} 题`),Mt("info")},1e3);Tt(`AI 答题中… 已填 0/${C.length} 题`);try{await pv("/api/quiz/answer",{questions:j.questions,account_id:N.id},o=>{const T=o.answers;if(T&&typeof T=="object"){const Y=Object.keys(T).length;Y&&(Ht.current+=Y,V(Q=>({...Q,...T})))}o.error&&(it=String(o.error)),o.done&&typeof o.failed=="number"&&(at=o.failed)}),Ht.current?at?(Tt(`AI 已填 ${Ht.current} 题,${at} 题失败${it?`:${it}`:""}`),Mt("error")):(Tt(`AI 已填 ${Ht.current} 题`),Mt("success")):(Tt(it?`AI 答题失败:${it}`:"AI 没有返回答案"),Mt("error"))}catch(o){Tt(o instanceof Error?o.message:"AI 答题失败"),Mt("error")}finally{window.clearInterval(wt),dt(!1)}}const pt=Nt?`再考一次${Ct!=null?`(剩 ${Ct} 次)`:""}`:Ct===0?"考试机会已用完":"再考一次";return f.jsx(Ki,{open:r,onClose:d,title:`测验 · ${E.name||E.plan_id}`,subtitle:tt||"取题后可手动作答,或让大模型逐批填写",size:"xl",footer:f.jsxs(f.Fragment,{children:[f.jsx("span",{className:gl("mr-auto max-w-[50%] truncate text-[11.5px]",Ft==="error"?"text-red-600":Ft==="success"?"text-emerald-600":"text-slate-500"),children:tt}),At&&f.jsx(Jt,{size:"sm",loading:Xt,disabled:q||!Nt,icon:f.jsx(Ph,{className:"size-3.5"}),onClick:k,children:pt}),f.jsx(Jt,{size:"sm",onClick:d,children:"关闭"}),f.jsx(Jt,{size:"sm",variant:"soft",loading:D,disabled:Wt||!C.length,icon:f.jsx(wh,{className:"size-3.5"}),onClick:I,children:"AI 答题"}),f.jsx(Jt,{size:"sm",variant:"primary",loading:Z,disabled:Wt||!C.length,icon:f.jsx(lv,{className:"size-3.5"}),onClick:H,children:"提交"})]}),children:q&&!C.length?f.jsx("div",{className:"py-16 text-center text-[13px] text-slate-400",children:"正在打开课程页取题…"}):C.length?f.jsx("div",{className:"space-y-2.5",children:C.map(B=>{const at=B.options||[],it=W[B.no]||"",wt=B.type==="02",o=at.length>0;return f.jsxs("div",{className:"rounded-xl border border-line px-3.5 py-3",children:[f.jsxs("div",{className:"flex items-start gap-2",children:[f.jsx("span",{className:"mt-0.5 grid size-5 shrink-0 place-items-center rounded-md bg-slate-100 text-[10.5px] font-semibold tabular-nums text-slate-500",children:B.no}),f.jsx(Hs,{tone:"neutral",className:"mt-0.5 shrink-0",children:ov[B.type||""]||"题目"}),f.jsx("p",{className:"min-w-0 flex-1 text-[13px] leading-relaxed text-slate-800",children:B.title||`第 ${B.no} 题`}),zt&&B.is_correct!==void 0&&f.jsx("span",{className:gl("shrink-0 text-[12px] font-semibold",B.is_correct?"text-emerald-600":"text-red-500"),children:B.is_correct?"✓":"✗"})]}),o&&f.jsx("div",{className:"mt-2 flex flex-wrap gap-1.5 pl-7",children:at.map(T=>{const Y=zt&&yn(B.correct).includes(T.key),Q=zt&&yn(B.picked).includes(T.key)&&!yn(B.correct).includes(T.key);return f.jsxs("span",{className:gl("max-w-full rounded-lg border px-2 py-1 text-[11.5px] leading-snug",Y?"border-emerald-200 bg-emerald-50 text-emerald-800":Q?"border-red-200 bg-red-50 text-red-700":"border-line bg-slate-50/70 text-slate-600"),children:[f.jsx("b",{className:"mr-1 font-semibold",children:T.key}),Sv(T)]},T.key)})}),f.jsxs("div",{className:"mt-2.5 flex flex-wrap items-center gap-2 pl-7",children:[wt?f.jsx("div",{className:"flex flex-wrap gap-1.5",children:at.map(T=>{const Y=yn(it);return f.jsxs("label",{title:`${T.key}. ${T.text||""}`,className:gl("flex cursor-pointer items-center gap-1 rounded-lg border px-2 py-1 text-[11.5px] transition",Y.includes(T.key)?"border-brand-300 bg-brand-50 text-brand-700":"border-line text-slate-600 hover:border-slate-300",Wt&&"pointer-events-none opacity-60"),children:[f.jsx("input",{type:"checkbox",className:"size-3 accent-brand-500",checked:Y.includes(T.key),disabled:Wt,onChange:Q=>Bt(B.no,T.key,Q.target.checked)}),T.key]},T.key)})}):o?f.jsxs("select",{className:"h-8 w-full max-w-[320px] rounded-lg border border-line bg-white px-2 text-[12px] text-slate-700 focus:border-brand-500 focus:outline-none disabled:bg-slate-50 disabled:text-slate-400",value:it,disabled:Wt,onChange:T=>Lt(B.no,T.target.value),children:[f.jsx("option",{value:"",children:"未选"}),at.map(T=>f.jsxs("option",{value:T.key,children:[T.key,". ",T.text||""]},T.key))]}):f.jsx("input",{className:"h-8 w-full max-w-[320px] rounded-lg border border-line bg-white px-2 text-[12px] text-slate-700 focus:border-brand-500 focus:outline-none disabled:bg-slate-50 disabled:text-slate-400",value:it,placeholder:"填写答案",disabled:Wt,onChange:T=>Lt(B.no,T.target.value)}),zt&&B.correct&&f.jsxs("span",{className:"text-[11.5px] text-slate-500",children:["标准答案:",f.jsx("b",{className:"font-semibold text-slate-700",children:B.correct})]})]}),zt&&B.analysis&&f.jsxs("p",{className:"mt-2 rounded-lg bg-slate-50 px-2.5 py-1.5 text-[11.5px] leading-relaxed text-slate-500",children:["解析:",B.analysis]})]},B.no)})}):f.jsx("div",{className:"py-16 text-center text-[13px] text-red-600",children:tt||"没有题目"})})}function Nv({open:r,onClose:N,notify:E}){const[d,M]=G.useState(!1),[w,j]=G.useState(!1),[ut,W]=G.useState(!1),[V,q]=G.useState({base_url:"",api_key:"",model:"",temperature:"0.2",timeout:"120",prompt:"",study_mode:"fast",study_parallel:"2"}),[S,Z]=G.useState("sk-...");G.useEffect(()=>{r&&(M(!0),Zt("/api/settings").then(D=>{const dt=D.llm||{},tt=D.study||{};q({base_url:dt.base_url||"",api_key:"",model:dt.model||"",temperature:String(dt.temperature??.2),timeout:String(dt.timeout??120),prompt:dt.prompt||"",study_mode:tt.mode||"fast",study_parallel:String(tt.parallel||2)}),Z(dt.has_key?`已保存 ${dt.key_hint||""},留空不修改`:"sk-...")}).catch(D=>E({message:`读取设置失败:${D.message}`,tone:"error"})).finally(()=>M(!1)))},[r,E]);function rt(D,dt){q(tt=>({...tt,[D]:dt}))}async function Xt(){j(!0);try{await Zt("/api/settings",{method:"POST",body:JSON.stringify({base_url:V.base_url.trim(),api_key:V.api_key.trim(),model:V.model.trim(),temperature:Number.parseFloat(V.temperature)||.2,timeout:Number.parseInt(V.timeout,10)||120,prompt:V.prompt,study_mode:V.study_mode,study_parallel:Number.parseInt(V.study_parallel,10)||0})}),E({message:"设置已保存",tone:"success"}),N()}catch(D){E({message:`保存失败:${D instanceof Error?D.message:D}`,tone:"error"})}finally{j(!1)}}async function et(){W(!0);try{const D=await Zt("/api/llm/test",{method:"POST",body:JSON.stringify({base_url:V.base_url.trim(),api_key:V.api_key.trim(),model:V.model.trim()})});E({message:D.ok?`连接正常(${D.ms} ms):${D.reply||""}`:`连接失败:${D.error||"未知错误"}`,tone:D.ok?"success":"error"})}catch(D){E({message:`连接失败:${D instanceof Error?D.message:D}`,tone:"error"})}finally{W(!1)}}return f.jsx(Ki,{open:r,onClose:N,title:"系统设置",subtitle:"大模型接口、答题提示词与学习模式",size:"lg",footer:f.jsxs(f.Fragment,{children:[f.jsx(Jt,{loading:ut,onClick:et,icon:f.jsx(Zh,{className:"size-3.5"}),children:"测试连接"}),f.jsx(Jt,{onClick:N,disabled:w,children:"取消"}),f.jsx(Jt,{variant:"primary",loading:w,onClick:Xt,disabled:d,children:"保存"})]}),children:d?f.jsx("div",{className:"py-10 text-center text-[12.5px] text-slate-400",children:"读取设置…"}):f.jsxs("div",{className:"space-y-6",children:[f.jsxs("section",{children:[f.jsxs("div",{className:"mb-3 flex items-center gap-2 text-[12.5px] font-semibold text-slate-700",children:[f.jsx(ev,{className:"size-4 text-brand-500"}),"大模型(OpenAI 兼容)"]}),f.jsxs("div",{className:"space-y-3",children:[f.jsxs("div",{children:[f.jsxs("label",{className:"mb-1.5 block text-[12px] text-slate-600",children:["接口地址 ",f.jsx("span",{className:"text-slate-400",children:"(写到 /v1 为止)"})]}),f.jsx("input",{className:kl,value:V.base_url,placeholder:"https://api.openai.com/v1",onChange:D=>rt("base_url",D.target.value)})]}),f.jsxs("div",{className:"grid gap-3 sm:grid-cols-2",children:[f.jsxs("div",{children:[f.jsx("label",{className:"mb-1.5 block text-[12px] text-slate-600",children:"API Key"}),f.jsxs("div",{className:"relative",children:[f.jsx(kh,{className:"pointer-events-none absolute left-2.5 top-1/2 size-3.5 -translate-y-1/2 text-slate-400"}),f.jsx("input",{className:`${kl} pl-8`,type:"password",autoComplete:"off",value:V.api_key,placeholder:S,onChange:D=>rt("api_key",D.target.value)})]})]}),f.jsxs("div",{children:[f.jsx("label",{className:"mb-1.5 block text-[12px] text-slate-600",children:"模型"}),f.jsx("input",{className:kl,value:V.model,placeholder:"gpt-4o-mini / deepseek-chat / qwen-plus",onChange:D=>rt("model",D.target.value)})]})]}),f.jsxs("div",{className:"grid gap-3 sm:grid-cols-2",children:[f.jsxs("div",{children:[f.jsx("label",{className:"mb-1.5 block text-[12px] text-slate-600",children:"温度"}),f.jsx("input",{className:kl,type:"number",min:0,max:2,step:.1,value:V.temperature,onChange:D=>rt("temperature",D.target.value)})]}),f.jsxs("div",{children:[f.jsx("label",{className:"mb-1.5 block text-[12px] text-slate-600",children:"超时(秒)"}),f.jsx("input",{className:kl,type:"number",min:10,max:600,value:V.timeout,onChange:D=>rt("timeout",D.target.value)})]})]}),f.jsxs("div",{children:[f.jsxs("label",{className:"mb-1.5 block text-[12px] text-slate-600",children:["答题提示词 ",f.jsx("span",{className:"text-slate-400",children:"(留空使用内置)"})]}),f.jsx("textarea",{className:`${kl} min-h-24 resize-y`,value:V.prompt,placeholder:'只输出 JSON {"answers":{"题号":"答案"}}',onChange:D=>rt("prompt",D.target.value)})]})]})]}),f.jsxs("section",{className:"border-t border-line pt-5",children:[f.jsxs("div",{className:"mb-3 flex items-center gap-2 text-[12.5px] font-semibold text-slate-700",children:[f.jsx(Kh,{className:"size-4 text-brand-500"}),"学习模式"]}),f.jsxs("div",{className:"grid gap-3 sm:grid-cols-2",children:[f.jsxs("div",{children:[f.jsx("label",{className:"mb-1.5 block text-[12px] text-slate-600",children:"模式"}),f.jsxs("select",{className:kl,value:V.study_mode,onChange:D=>rt("study_mode",D.target.value),children:[f.jsx("option",{value:"fast",children:"快速学习(只调接口上报)"}),f.jsx("option",{value:"normal",children:"常规学习(真实播放视频)"})]})]}),f.jsxs("div",{children:[f.jsx("label",{className:"mb-1.5 block text-[12px] text-slate-600",children:"常规模式并发数"}),f.jsx("input",{className:kl,type:"number",min:1,max:5,value:V.study_parallel,onChange:D=>rt("study_parallel",D.target.value)})]})]}),f.jsxs("p",{className:"mt-3 rounded-lg bg-slate-50 px-3 py-2 text-[11.5px] leading-relaxed text-slate-500",children:["常规学习会开多个无头浏览器同时播视频;平台若按课节顺序放行,会被弹回并自动降为 1 路。快速学习只调用 ",f.jsx("code",{className:"rounded bg-white px-1 ring-1 ring-line",children:"period/study/log"}),",不启动浏览器。"]})]})]})})}function Ev({accounts:r}){const N=r.filter(j=>{var ut;return((ut=j.cookies)==null?void 0:ut.length)>0||["logged_in","studying"].includes(j.status||"")}).length,E=r.filter(j=>{var ut;return["discovering","studying"].includes(((ut=j.run)==null?void 0:ut.status)||"")}).length,d=r.reduce((j,ut)=>{var W;return j+(((W=ut.run)==null?void 0:W.done)||0)},0),M=r.reduce((j,ut)=>{var W;return j+(((W=ut.run)==null?void 0:W.total)||0)},0),w=[{label:"账号",value:r.length,hint:"已添加",icon:Em,tone:"text-brand-600 bg-brand-50"},{label:"已登录",value:N,hint:r.length?`共 ${r.length} 个`:"等待添加",icon:uv,tone:"text-emerald-600 bg-emerald-50"},{label:"学习中",value:E,hint:E?"正在跑课":"空闲",icon:Yh,tone:"text-sky-600 bg-sky-50"},{label:"课程进度",value:M?`${d}/${M}`:"—",hint:M?`${Math.round(d/M*100)}%`:"暂无任务",icon:Tm,tone:"text-amber-600 bg-amber-50"}];return f.jsx("section",{className:"grid grid-cols-2 gap-3 lg:grid-cols-4",children:w.map(j=>f.jsxs("div",{className:"flex items-center gap-3 rounded-xl border border-line bg-white px-4 py-3",children:[f.jsx("span",{className:`grid size-9 shrink-0 place-items-center rounded-lg ${j.tone}`,children:f.jsx(j.icon,{className:"size-4"})}),f.jsxs("div",{className:"min-w-0",children:[f.jsx("div",{className:"text-[11px] text-slate-400",children:j.label}),f.jsxs("div",{className:"flex items-baseline gap-1.5",children:[f.jsx("span",{className:"text-[17px] font-semibold tabular-nums leading-tight text-slate-900",children:j.value}),f.jsx("span",{className:"truncate text-[10.5px] text-slate-400",children:j.hint})]})]})]},j.label))})}function zv({open:r,onClose:N}){const[E,d]=G.useState([]),[M,w]=G.useState(!1),j=G.useRef(null),ut=G.useRef(!0);G.useEffect(()=>{if(!r)return;let V=!0;const q=async()=>{try{const Z=await Zt("/api/log/history?key=system&tail=500");V&&d(Z.lines||[])}catch{}};d([]),q();const S=window.setInterval(()=>{document.hidden||q()},2500);return()=>{V=!1,window.clearInterval(S)}},[r]),G.useEffect(()=>{const V=j.current;V&&ut.current&&(V.scrollTop=V.scrollHeight)},[E,r]);async function W(){w(!0);try{await Zt("/api/log/history?key=system",{method:"DELETE"}),d([])}finally{w(!1)}}return f.jsx(Ki,{open:r,onClose:N,title:"系统日志",subtitle:"全局事件与系统级错误,实时刷新",size:"xl",footer:f.jsxs(f.Fragment,{children:[f.jsxs("span",{className:"mr-auto text-[11px] text-slate-400",children:["共 ",E.length," 行 · 保留最近 500 行"]}),f.jsx(Jt,{variant:"danger",size:"sm",loading:M,onClick:W,children:"清空"}),f.jsx(Jt,{size:"sm",onClick:N,children:"关闭"})]}),bodyClassName:"bg-slate-950 p-0",children:f.jsx("pre",{ref:j,onScroll:V=>{const q=V.currentTarget;ut.current=q.scrollHeight-q.scrollTop-q.clientHeight<24},className:"scrollbar-thin h-[60vh] overflow-auto whitespace-pre-wrap break-words p-4 font-mono text-[11.5px] leading-relaxed text-slate-300",children:E.length?E.join(`
`):"暂无系统日志"})})}function _v({toast:r}){if(!r)return null;const N=r.tone||"info",E=N==="error"?Gh:N==="success"?Qh:Jh;return f.jsxs("div",{role:"status",className:gl("animate-toast-in fixed bottom-7 left-1/2 z-[60] flex max-w-[85vw] -translate-x-1/2 items-center gap-2","rounded-xl px-4 py-2.5 text-[12.5px] font-medium shadow-xl shadow-slate-900/20",N==="error"?"bg-red-600 text-white":N==="success"?"bg-emerald-600 text-white":"bg-slate-900 text-white"),children:[f.jsx(E,{className:"size-4 shrink-0 opacity-90"}),f.jsx("span",{className:"break-words",children:r.message})]})}function Ov({refreshing:r,onRefresh:N,onSettings:E,onSystemLog:d,onAdd:M}){return f.jsx("header",{className:"sticky top-0 z-30 border-b border-line/80 bg-white/85 backdrop-blur-xl",children:f.jsxs("div",{className:"mx-auto flex h-16 max-w-[1320px] items-center gap-3 px-4 sm:px-6",children:[f.jsxs("div",{className:"flex min-w-0 items-center gap-3",children:[f.jsx("div",{className:"grid size-9 shrink-0 place-items-center rounded-xl bg-gradient-to-br from-brand-500 to-sky-400 text-[15px] font-bold text-white shadow-md shadow-brand-500/30",children:"学"}),f.jsxs("div",{className:"min-w-0",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx("h1",{className:"truncate text-[15px] font-semibold tracking-tight text-slate-900",children:"莞易学"}),f.jsx("span",{className:"hidden rounded-md bg-slate-100 px-1.5 py-0.5 text-[10px] font-medium text-slate-500 sm:inline",children:"多账号学习控制台"})]}),f.jsx("p",{className:"truncate text-[11.5px] text-slate-500",children:"东莞市教师培训平台 · 新旧版课程自动识别"})]})]}),f.jsx("div",{className:"flex-1"}),f.jsxs("div",{className:"flex items-center gap-1.5",children:[f.jsx(Jt,{variant:"ghost",size:"icon",onClick:N,loading:r,title:"刷新列表","aria-label":"刷新列表",children:f.jsx(Bs,{className:"size-4"})}),f.jsx(Jt,{variant:"ghost",size:"icon",onClick:d,title:"系统日志","aria-label":"系统日志",children:f.jsx(tv,{className:"size-4"})}),f.jsx(Jt,{variant:"ghost",size:"icon",onClick:E,title:"系统设置","aria-label":"系统设置",children:f.jsx(av,{className:"size-4"})}),f.jsx(Jt,{variant:"primary",className:"ml-1",icon:f.jsx(Nm,{className:"size-4"}),onClick:M,children:f.jsx("span",{className:"hidden sm:inline",children:"添加账号"})})]})]})})}const _m="guanyixue.inlineLogsOpen";function Av(){try{const r=JSON.parse(localStorage.getItem(_m)||"[]");return new Set(Array.isArray(r)?r.filter(N=>typeof N=="string"):[])}catch{return new Set}}function jv(r){try{localStorage.setItem(_m,JSON.stringify([...r]))}catch{}}function Mv(r){return{id:r.id,username:r.username,platform:r.platform||"guanyixue",note:r.note||"",user:r.user||"",cookies:r.cookies||[],courses:r.courses||[],selected:r.selected||[],status:r.status||"idle",lastError:r.lastError||"",lastErrorAt:r.lastErrorAt||0,optQuiz:r.optQuiz===!0,optFeedback:r.optFeedback!==!1,loginAt:r.loginAt||0}}function Cv(){const[r,N]=G.useState([]),E=G.useRef(r),[d,M]=G.useState({guanyixue:"莞易学"}),[w,j]=G.useState([{id:"guanyixue",label:"莞易学"}]),[ut,W]=G.useState(!1),[V,q]=G.useState(null),[S,Z]=G.useState({}),[rt,Xt]=G.useState(!1),[et,D]=G.useState(null),[dt,tt]=G.useState(()=>Av()),Tt=G.useRef(dt),[Ft,Mt]=G.useState({}),Ht=G.useRef(Ft),F=G.useRef(void 0);G.useEffect(()=>{E.current=r},[r]),G.useEffect(()=>{Ht.current=Ft},[Ft]),G.useEffect(()=>{Tt.current=dt,jv(dt)},[dt]),G.useEffect(()=>()=>window.clearTimeout(F.current),[]);const C=G.useCallback(y=>{q(y),window.clearTimeout(F.current),F.current=window.setTimeout(()=>q(null),3800)},[]),At=G.useCallback(async y=>{const O=await Zt("/api/accounts",{method:"POST",body:JSON.stringify(Mv(y))});if(O.ok===!1)throw new Error(O.error||"保存失败");return O},[]),zt=G.useCallback(y=>{N(O=>{const L=O.some(U=>U.id===y.id)?O.map(U=>U.id===y.id?y:U):[...O,y];return E.current=L,L})},[]),Nt=G.useCallback(async(y=!0)=>{var O;try{const[A,L]=await Promise.all([Zt("/api/runs"),Zt("/api/accounts")]),U=(L.accounts||[]).map(J=>({...J,run:A[J.id]||null})).sort((J,P)=>(J.created||0)-(P.created||0));N(U),E.current=U,W(!1);for(const J of U){const P=(O=J.run)==null?void 0:O.cookies;if(P&&P.length&&JSON.stringify(P)!==JSON.stringify(J.cookies||[])){const gt={...J,cookies:P};J.cookies=P,At(gt).catch(()=>{})}}}catch(A){A instanceof je&&A.offline?W(!0):y||C({message:`读取账号失败:${me(A)}`,tone:"error"})}},[C,At]);G.useEffect(()=>{Nt();const y=window.setInterval(()=>{document.hidden||Nt()},5e3);return()=>window.clearInterval(y)},[Nt]),G.useEffect(()=>{Zt("/api/platforms").then(y=>{const O=y.platforms||[];if(!O.length)return;j(O);const A={};for(const L of O)A[L.id]=L.label;M(A)}).catch(()=>{})},[]);const Ct=G.useCallback(async y=>{var U;const O=Ht.current[y]||{lines:[],since:0,busy:!1,historyTried:!1};if(O.busy)return;const A={...O,busy:!0},L=J=>{Ht.current={...Ht.current,[y]:J},Mt(P=>({...P,[y]:J}))};L(A);try{let J=await Zt(`/api/log?key=${encodeURIComponent(y)}&since=${A.since}`);typeof J.next=="number"&&J.next<A.since&&(A.lines=[],A.since=0,J=await Zt(`/api/log?key=${encodeURIComponent(y)}&since=0`));let P=J.lines||[];if(!P.length&&!J.status&&!A.historyTried){A.historyTried=!0;try{const fl=await Zt(`/api/log/history?key=${encodeURIComponent(y)}&tail=300`);(U=fl.lines)!=null&&U.length&&(P=fl.lines)}catch{}}P.length&&(A.lines=[...A.lines,...P].slice(-600)),typeof J.next=="number"&&(A.since=Math.max(A.since,J.next));const gt=J.cookies;if(gt!=null&&gt.length){const fl=E.current.find(le=>le.id===y);if(fl&&JSON.stringify(fl.cookies||[])!==JSON.stringify(gt)){const le={...fl,cookies:gt};zt(le),At(le).catch(()=>{})}}}catch{}finally{A.busy=!1,L(A)}},[zt,At]);G.useEffect(()=>{const y=window.setInterval(()=>{document.hidden||Tt.current.forEach(O=>void Ct(O))},1500);return()=>window.clearInterval(y)},[Ct]);const Wt=G.useCallback((y,O)=>{const A=O===void 0?!Tt.current.has(y):O,L=new Set(Tt.current);A?L.add(y):L.delete(y),Tt.current=L,tt(L),A&&Ct(y)},[Ct]);async function Lt(y,O,A){Z(L=>({...L,[y]:O}));try{return await A()}finally{Z(L=>{const U={...L};return delete U[y],U})}}async function Bt(y,O=!1){return Lt(y.id,"login",async()=>{zt({...y,status:"logging",lastError:""});try{await At({...y,status:"logging",lastError:""});const A=await Zt("/api/login",{method:"POST",body:JSON.stringify({account_id:y.id})});if(!A.ok){const J={...y,status:"login_failed",lastError:A.error||`HTTP ${A.code||"失败"}`,lastErrorAt:Date.now(),run:null};return zt(J),await At(J).catch(()=>{}),O||C({message:`登录失败:${J.lastError}`,tone:"error"}),!1}const L=A.courses||[],U={...y,status:"logged_in",cookies:A.cookies||[],user:A.user||y.user||"",courses:L,selected:(y.selected||[]).filter(J=>L.some(P=>P.plan_id===J)),loginAt:Date.now(),updated:Date.now(),lastError:"",lastErrorAt:0,run:null};return zt(U),await At(U).catch(()=>{}),O||C({message:A.warn?`登录成功,但课程读取异常:${A.warn}`:`登录成功:${U.user||U.username},读到 ${Rs(L).total} 门`,tone:A.warn?"info":"success"}),Nt(),!0}catch(A){const L={...y,status:"login_failed",lastError:me(A),lastErrorAt:Date.now()};return zt(L),await At(L).catch(()=>{}),O||C({message:`登录失败:${L.lastError}`,tone:"error"}),A instanceof je&&A.offline&&W(!0),!1}})}async function H(y){return Lt(y.id,"refresh",async()=>{var O;try{let A=await Zt("/api/courses",{method:"POST",body:JSON.stringify({cookies:y.cookies,platform:y.platform||"guanyixue"})});if(!A.ok&&A.code==="session_expired"){if(C({message:"会话已失效,正在自动重新登录…"}),!await Bt(y,!0))return;const J=E.current.find(P=>P.id===y.id);if(!J)return;A=await Zt("/api/courses",{method:"POST",body:JSON.stringify({cookies:J.cookies})})}if(!A.ok){C({message:`读取失败:${A.error||A.code||"未知错误"}`,tone:"error"});return}const L=E.current.find(J=>J.id===y.id)||y,U={...L,courses:A.courses||[],user:A.user||L.user,cookies:(O=A.cookies)!=null&&O.length?A.cookies:L.cookies,status:"logged_in",updated:Date.now(),lastError:"",lastErrorAt:0};zt(U),await At(U).catch(()=>{}),C({message:`已刷新,读到 ${Rs(U.courses).total} 门`,tone:"success"})}catch(A){C({message:`读取失败:${me(A)}`,tone:"error"})}})}async function k(y){var L;const O=y.selected||[],A=(y.courses||[]).filter(U=>O.includes(U.plan_id)&&U.in_study!==!1);if(!A.length){C({message:"请先勾选要学习的课程",tone:"error"});return}if(!((L=y.cookies)!=null&&L.length)){C({message:"请先登录",tone:"error"});return}return Lt(y.id,"study",async()=>{var U,J;try{const P=await Zt("/api/study",{method:"POST",body:JSON.stringify({key:y.id,username:y.user||y.username,cookies:y.cookies,courses:A,workers:40,cap_minutes:90,enable_quiz:y.optQuiz===!0,enable_feedback:y.optFeedback!==!1})});if(!P.ok){C({message:`启动失败:${P.error||"未知错误"}`,tone:"error"});return}const gt=((U=P.study)==null?void 0:U.mode)==="normal"?`常规真播 ${((J=P.study)==null?void 0:J.parallel)||1} 路并发`:"快速模式(只调接口)";C({message:`已开始 ${A.length} 门课程 · ${gt}${y.optQuiz?" · 含自动答题":" · 测验需手动作答"}`,tone:"success"}),Wt(y.id,!0),Nt()}catch(P){C({message:`启动失败:${me(P)}`,tone:"error"})}})}async function I(y){return Lt(y.id,"stop",async()=>{try{await Zt("/api/stop",{method:"POST",body:JSON.stringify({key:y.id})}),C({message:"已请求停止"}),Nt()}catch(O){C({message:`停止失败:${me(O)}`,tone:"error"})}})}async function pt(y){var O;if(!((O=y.cookies)!=null&&O.length)){C({message:"请先登录",tone:"error"});return}return Lt(y.id,"capture",async()=>{try{const A=await Zt("/api/capture",{method:"POST",body:JSON.stringify({key:y.id,cookies:y.cookies,minutes:10})});if(!A.ok){C({message:`抓包失败:${A.error||"未知错误"}`,tone:"error"});return}C({message:"已打开浏览器,请手动走一遍课程页;最多记录 10 分钟",tone:"success"})}catch(A){C({message:`抓包失败:${me(A)}`,tone:"error"})}})}async function B(y){return Lt(y.id,"capture",async()=>{try{await Zt("/api/capture/stop",{method:"POST",body:JSON.stringify({key:y.id})}),C({message:"已请求停止抓包"}),Nt()}catch(O){C({message:`停止抓包失败:${me(O)}`,tone:"error"})}})}async function at(y){if(window.confirm(`删除账号「${y.user||y.username}」?课程缓存和日志不会自动清理。`))try{await Zt(`/api/accounts/${encodeURIComponent(y.id)}`,{method:"DELETE"}),N(O=>{const A=O.filter(L=>L.id!==y.id);return E.current=A,A}),C({message:"账号已删除"})}catch(O){C({message:`删除失败:${me(O)}`,tone:"error"})}}async function it(y,O){const A={...y,selected:O};zt(A);try{await At(A)}catch(L){C({message:`保存勾选失败:${me(L)}`,tone:"error"})}}function wt(y,O,A){const L=y.selected||[];it(y,A?[...new Set([...L,O])]:L.filter(U=>U!==O))}function o(y){const O=(y.courses||[]).filter(A=>A.in_study!==!1).map(A=>A.plan_id);it(y,[...new Set([...y.selected||[],...O])])}async function T(y,O,A){const L=O==="quiz"?{...y,optQuiz:A}:{...y,optFeedback:A};zt(L);try{await At(L),C({message:O==="quiz"?A?"已开启自动交测验(注意正确率)":"已关闭自动交测验":A?"已开启自动交反馈表":"已关闭自动交反馈表"})}catch(U){C({message:`保存失败:${me(U)}`,tone:"error"})}}async function Y(y){const O=await Zt("/api/accounts",{method:"POST",body:JSON.stringify({username:y.username,platform:y.platform,password:y.password,note:y.note,cookies:[],courses:[],selected:[],status:"idle",created:Date.now()})});if(O.ok===!1)throw new Error(O.error||"保存失败");const A=await Zt("/api/accounts"),L=O.account||(A.accounts||[]).find(P=>P.username===y.username);if(!L){C({message:"已保存,但列表里没有找到新账号,请刷新页面",tone:"error"}),await Nt();return}C({message:"已保存,正在尝试首次登录…"});const U=await Bt(L,!0),J=E.current.find(P=>P.id===L.id);C(U?{message:`登录成功:${(J==null?void 0:J.user)||y.username}`,tone:"success"}:{message:`登录失败:${(J==null?void 0:J.lastError)||"未知原因"}(请手动点击「登录」重试)`,tone:"error"}),await Nt()}async function Q(){Xt(!0);try{await Nt(!1)}finally{Xt(!1)}}function mt(y){var A;const O=y.platform||((A=(y.courses||[]).find(L=>L.platform))==null?void 0:A.platform);return O&&d[O]||"莞易学"}const st=(et==null?void 0:et.type)==="quiz"&&r.find(y=>y.id===et.accountId)||null,vt=(et==null?void 0:et.type)==="quiz"?(st==null?void 0:st.courses.find(y=>y.plan_id===et.course.plan_id))||et.course:null;return f.jsxs("div",{className:"min-h-screen",children:[f.jsx(Ov,{refreshing:rt,onRefresh:()=>void Q(),onSettings:()=>D({type:"settings"}),onSystemLog:()=>D({type:"system"}),onAdd:()=>D({type:"add"})}),f.jsxs("main",{className:"mx-auto max-w-[1320px] px-4 pb-16 pt-5 sm:px-6",children:[ut&&f.jsxs("div",{className:"mb-4 flex flex-wrap items-center gap-2.5 rounded-xl border border-red-200 bg-red-50 px-4 py-2.5 text-[12.5px] text-red-700",children:[f.jsx(fv,{className:"size-4 shrink-0"}),f.jsx("span",{className:"font-medium",children:"后端未连接"}),f.jsx("span",{className:"text-red-500",children:"页面显示的是上一次数据,请确认服务已启动、端口没有变化。"}),f.jsx("div",{className:"flex-1"}),f.jsx(Jt,{size:"sm",variant:"secondary",loading:rt,onClick:()=>void Q(),children:"重试"})]}),f.jsx(Ev,{accounts:r}),f.jsxs("div",{className:"mb-3 mt-6 flex items-end justify-between gap-3",children:[f.jsxs("div",{children:[f.jsx("h2",{className:"text-[14px] font-semibold text-slate-900",children:"账号列表"}),f.jsx("p",{className:"mt-0.5 text-[11.5px] text-slate-400",children:"新旧版课程自动识别为「莞易学」,每 5 秒自动刷新状态"})]}),r.length>0&&f.jsx(Jt,{size:"sm",variant:"secondary",icon:f.jsx(Bs,{className:"size-3.5"}),loading:rt,onClick:()=>void Q(),children:"刷新"})]}),r.length===0?f.jsxs("div",{className:"card-shadow grid place-items-center rounded-2xl border border-dashed border-slate-300 bg-white px-6 py-16 text-center",children:[f.jsx("div",{className:"grid size-12 place-items-center rounded-2xl bg-brand-50 text-brand-600",children:f.jsx(Em,{className:"size-6"})}),f.jsx("h3",{className:"mt-4 text-[14px] font-semibold text-slate-800",children:"还没有账号"}),f.jsx("p",{className:"mt-1.5 max-w-md text-[12.5px] leading-relaxed text-slate-500",children:"添加东莞市教师培训平台账号后,可自动读取课程、勾选学习、提交反馈表与测验。 新旧版课程页会统一识别为「莞易学」。"}),f.jsx(Jt,{variant:"primary",className:"mt-5",icon:f.jsx(Nm,{className:"size-4"}),onClick:()=>D({type:"add"}),children:"添加第一个账号"})]}):f.jsx("div",{className:"grid items-start gap-4 md:grid-cols-2 xl:grid-cols-3",children:r.map(y=>{var O;return f.jsx(gv,{account:y,platformLabel:mt(y),pending:S[y.id],openLog:dt.has(y.id),logLines:((O=Ft[y.id])==null?void 0:O.lines)||[],onToggleLog:()=>Wt(y.id),onLogin:()=>void Bt(y),onRefresh:()=>void H(y),onStudy:()=>void k(y),onStop:()=>void I(y),onCapture:()=>void pt(y),onStopCapture:()=>void B(y),onDelete:()=>void at(y),onQuiz:()=>{var U;const A=(y.courses||[]).filter(J=>J.in_study!==!1),L=A.find(J=>{var P;return(P=y.selected)==null?void 0:P.includes(J.plan_id)})||A[0];if(!L){C({message:"这门课还没有课程数据,先点「刷新课程」",tone:"error"});return}if(!((U=y.cookies)!=null&&U.length)){C({message:"请先登录",tone:"error"});return}D({type:"quiz",accountId:y.id,course:L})},onToggleCourse:(A,L)=>wt(y,A,L),onSelectAll:()=>o(y),onClearSelection:()=>void it(y,[]),onToggleOption:(A,L)=>void T(y,A,L)},y.id)})})]}),f.jsx("footer",{className:"border-t border-line/70 py-5 text-center text-[11px] text-slate-400",children:"莞易学 · 多账号学习控制台 · 数据保存在本机"}),f.jsx(xv,{open:(et==null?void 0:et.type)==="add",platforms:w,onClose:()=>D(null),onSubmit:Y}),f.jsx(Nv,{open:(et==null?void 0:et.type)==="settings",onClose:()=>D(null),notify:C}),f.jsx(zv,{open:(et==null?void 0:et.type)==="system",onClose:()=>D(null)}),f.jsx(Tv,{open:(et==null?void 0:et.type)==="quiz"&&!!st,account:st,course:vt,onClose:()=>D(null),notify:C,onSubmitted:()=>void Nt()}),f.jsx(_v,{toast:V})]})}Rh.createRoot(document.getElementById("root")).render(f.jsx(G.StrictMode,{children:f.jsx(Cv,{})}));