277 lines
430 KiB
JavaScript
277 lines
430 KiB
JavaScript
var p0=i=>{throw TypeError(i)};var b0=(i,u,c)=>u.has(i)||p0("Cannot "+c);var St=(i,u,c)=>(b0(i,u,"read from private field"),c?c.call(i):u.get(i)),x0=(i,u,c)=>u.has(i)?p0("Cannot add the same private member more than once"):u instanceof WeakSet?u.add(i):u.set(i,c),cf=(i,u,c,o)=>(b0(i,u,"write to private field"),o?o.call(i,c):u.set(i,c),c);function X2(i,u){for(var c=0;c<u.length;c++){const o=u[c];if(typeof o!="string"&&!Array.isArray(o)){for(const s in o)if(s!=="default"&&!(s in i)){const d=Object.getOwnPropertyDescriptor(o,s);d&&Object.defineProperty(i,s,d.get?d:{enumerable:!0,get:()=>o[s]})}}}return Object.freeze(Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}))}(function(){const u=document.createElement("link").relList;if(u&&u.supports&&u.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))o(s);new MutationObserver(s=>{for(const d of s)if(d.type==="childList")for(const h of d.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&o(h)}).observe(document,{childList:!0,subtree:!0});function c(s){const d={};return s.integrity&&(d.integrity=s.integrity),s.referrerPolicy&&(d.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?d.credentials="include":s.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function o(s){if(s.ep)return;s.ep=!0;const d=c(s);fetch(s.href,d)}})();function gd(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var sf={exports:{}},fr={};/**
|
||
* @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 S0;function Z2(){if(S0)return fr;S0=1;var i=Symbol.for("react.transitional.element"),u=Symbol.for("react.fragment");function c(o,s,d){var h=null;if(d!==void 0&&(h=""+d),s.key!==void 0&&(h=""+s.key),"key"in s){d={};for(var v in s)v!=="key"&&(d[v]=s[v])}else d=s;return s=d.ref,{$$typeof:i,type:o,key:h,ref:s!==void 0?s:null,props:d}}return fr.Fragment=u,fr.jsx=c,fr.jsxs=c,fr}var N0;function K2(){return N0||(N0=1,sf.exports=Z2()),sf.exports}var f=K2(),ff={exports:{}},be={};/**
|
||
* @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 C0;function I2(){if(C0)return be;C0=1;var i=Symbol.for("react.transitional.element"),u=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),h=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),x=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),N=Symbol.for("react.view_transition"),A=Symbol.iterator;function j(w){return w===null||typeof w!="object"?null:(w=A&&w[A]||w["@@iterator"],typeof w=="function"?w:null)}var z={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},H=Object.assign,q={};function G(w,U,$){this.props=w,this.context=U,this.refs=q,this.updater=$||z}G.prototype.isReactComponent={},G.prototype.setState=function(w,U){if(typeof w!="object"&&typeof w!="function"&&w!=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,w,U,"setState")},G.prototype.forceUpdate=function(w){this.updater.enqueueForceUpdate(this,w,"forceUpdate")};function k(){}k.prototype=G.prototype;function V(w,U,$){this.props=w,this.context=U,this.refs=q,this.updater=$||z}var K=V.prototype=new k;K.constructor=V,H(K,G.prototype),K.isPureReactComponent=!0;var _=Array.isArray;function E(){}var R={H:null,A:null,T:null,S:null},Q=Object.prototype.hasOwnProperty;function te(w,U,$){var ee=$.ref;return{$$typeof:i,type:w,key:U,ref:ee!==void 0?ee:null,props:$}}function W(w,U){return te(w.type,U,w.props)}function P(w){return typeof w=="object"&&w!==null&&w.$$typeof===i}function ne(w){var U={"=":"=0",":":"=2"};return"$"+w.replace(/[=:]/g,function($){return U[$]})}var re=/\/+/g;function ge(w,U){return typeof w=="object"&&w!==null&&w.key!=null?ne(""+w.key):U.toString(36)}function F(w){switch(w.status){case"fulfilled":return w.value;case"rejected":throw w.reason;default:switch(typeof w.status=="string"?w.then(E,E):(w.status="pending",w.then(function(U){w.status==="pending"&&(w.status="fulfilled",w.value=U)},function(U){w.status==="pending"&&(w.status="rejected",w.reason=U)})),w.status){case"fulfilled":return w.value;case"rejected":throw w.reason}}throw w}function ae(w,U,$,ee,he){var ie=typeof w;(ie==="undefined"||ie==="boolean")&&(w=null);var Ne=!1;if(w===null)Ne=!0;else switch(ie){case"bigint":case"string":case"number":Ne=!0;break;case"object":switch(w.$$typeof){case i:case u:Ne=!0;break;case S:return Ne=w._init,ae(Ne(w._payload),U,$,ee,he)}}if(Ne)return he=he(w),Ne=ee===""?"."+ge(w,0):ee,_(he)?($="",Ne!=null&&($=Ne.replace(re,"$&/")+"/"),ae(he,U,$,"",function(Ut){return Ut})):he!=null&&(P(he)&&(he=W(he,$+(he.key==null||w&&w.key===he.key?"":(""+he.key).replace(re,"$&/")+"/")+Ne)),U.push(he)),1;Ne=0;var fe=ee===""?".":ee+":";if(_(w))for(var ye=0;ye<w.length;ye++)ee=w[ye],ie=fe+ge(ee,ye),Ne+=ae(ee,U,$,ie,he);else if(ye=j(w),typeof ye=="function")for(w=ye.call(w),ye=0;!(ee=w.next()).done;)ee=ee.value,ie=fe+ge(ee,ye++),Ne+=ae(ee,U,$,ie,he);else if(ie==="object"){if(typeof w.then=="function")return ae(F(w),U,$,ee,he);throw U=String(w),Error("Objects are not valid as a React child (found: "+(U==="[object Object]"?"object with keys {"+Object.keys(w).join(", ")+"}":U)+"). If you meant to render a collection of children, use an array instead.")}return Ne}function ce(w,U,$){if(w==null)return w;var ee=[],he=0;return ae(w,ee,"","",function(ie){return U.call($,ie,he++)}),ee}function xe(w){if(w._status===-1){var U=w._result,$=U();$.then(function(ee){(w._status===0||w._status===-1)&&(w._status=1,w._result=ee,$.status===void 0&&($.status="fulfilled",$.value=ee))},function(ee){(w._status===0||w._status===-1)&&(w._status=2,w._result=ee,$.status===void 0&&($.status="rejected",$.reason=ee))}),w._status===-1&&(w._status=0,w._result=$)}if(w._status===1)return w._result.default;throw w._result}var I=typeof reportError=="function"?reportError:function(w){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var U=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof w=="object"&&w!==null&&typeof w.message=="string"?String(w.message):String(w),error:w});if(!window.dispatchEvent(U))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",w);return}console.error(w)};function Se(w){var U=R.T,$={};$.types=U!==null?U.types:null,R.T=$;try{var ee=w(),he=R.S;he!==null&&he($,ee),typeof ee=="object"&&ee!==null&&typeof ee.then=="function"&&ee.then(E,I)}catch(ie){I(ie)}finally{U!==null&&$.types!==null&&(U.types=$.types),R.T=U}}function J(w){var U=R.T;if(U!==null){var $=U.types;$===null?U.types=[w]:$.indexOf(w)===-1&&$.push(w)}else Se(J.bind(null,w))}var me={map:ce,forEach:function(w,U,$){ce(w,function(){U.apply(this,arguments)},$)},count:function(w){var U=0;return ce(w,function(){U++}),U},toArray:function(w){return ce(w,function(U){return U})||[]},only:function(w){if(!P(w))throw Error("React.Children.only expected to receive a single React element child.");return w}};return be.Activity=p,be.Children=me,be.Component=G,be.Fragment=c,be.Profiler=s,be.PureComponent=V,be.StrictMode=o,be.Suspense=g,be.ViewTransition=N,be.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=R,be.__COMPILER_RUNTIME={__proto__:null,c:function(w){return R.H.useMemoCache(w)}},be.addTransitionType=J,be.cache=function(w){return function(){return w.apply(null,arguments)}},be.cacheSignal=function(){return null},be.cloneElement=function(w,U,$){if(w==null)throw Error("The argument must be a React element, but you passed "+w+".");var ee=H({},w.props),he=w.key;if(U!=null)for(ie in U.key!==void 0&&(he=""+U.key),U)!Q.call(U,ie)||ie==="key"||ie==="__self"||ie==="__source"||ie==="ref"&&U.ref===void 0||(ee[ie]=U[ie]);var ie=arguments.length-2;if(ie===1)ee.children=$;else if(1<ie){for(var Ne=Array(ie),fe=0;fe<ie;fe++)Ne[fe]=arguments[fe+2];ee.children=Ne}return te(w.type,he,ee)},be.createContext=function(w){return w={$$typeof:h,_currentValue:w,_currentValue2:w,_threadCount:0,Provider:null,Consumer:null},w.Provider=w,w.Consumer={$$typeof:d,_context:w},w},be.createElement=function(w,U,$){var ee,he={},ie=null;if(U!=null)for(ee in U.key!==void 0&&(ie=""+U.key),U)Q.call(U,ee)&&ee!=="key"&&ee!=="__self"&&ee!=="__source"&&(he[ee]=U[ee]);var Ne=arguments.length-2;if(Ne===1)he.children=$;else if(1<Ne){for(var fe=Array(Ne),ye=0;ye<Ne;ye++)fe[ye]=arguments[ye+2];he.children=fe}if(w&&w.defaultProps)for(ee in Ne=w.defaultProps,Ne)he[ee]===void 0&&(he[ee]=Ne[ee]);return te(w,ie,he)},be.createRef=function(){return{current:null}},be.forwardRef=function(w){return{$$typeof:v,render:w}},be.isValidElement=P,be.lazy=function(w){return{$$typeof:S,_payload:{_status:-1,_result:w},_init:xe}},be.memo=function(w,U){return{$$typeof:x,type:w,compare:U===void 0?null:U}},be.startTransition=Se,be.unstable_useCacheRefresh=function(){return R.H.useCacheRefresh()},be.use=function(w){return R.H.use(w)},be.useActionState=function(w,U,$){return R.H.useActionState(w,U,$)},be.useCallback=function(w,U){return R.H.useCallback(w,U)},be.useContext=function(w){return R.H.useContext(w)},be.useDebugValue=function(){},be.useDeferredValue=function(w,U){return R.H.useDeferredValue(w,U)},be.useEffect=function(w,U){return R.H.useEffect(w,U)},be.useEffectEvent=function(w){return R.H.useEffectEvent(w)},be.useId=function(){return R.H.useId()},be.useImperativeHandle=function(w,U,$){return R.H.useImperativeHandle(w,U,$)},be.useInsertionEffect=function(w,U){return R.H.useInsertionEffect(w,U)},be.useLayoutEffect=function(w,U){return R.H.useLayoutEffect(w,U)},be.useMemo=function(w,U){return R.H.useMemo(w,U)},be.useOptimistic=function(w,U){return R.H.useOptimistic(w,U)},be.useReducer=function(w,U,$){return R.H.useReducer(w,U,$)},be.useRef=function(w){return R.H.useRef(w)},be.useState=function(w){return R.H.useState(w)},be.useSyncExternalStore=function(w,U,$){return R.H.useSyncExternalStore(w,U,$)},be.useTransition=function(){return R.H.useTransition()},be.version="19.3.1",be}var E0;function yd(){return E0||(E0=1,ff.exports=I2()),ff.exports}var b=yd();const gr=gd(b),sa=X2({__proto__:null,default:gr},[b]);var df={exports:{}},dr={},mf={exports:{}},hf={};/**
|
||
* @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 w0;function J2(){return w0||(w0=1,(function(i){function u(F,ae){var ce=F.length;F.push(ae);e:for(;0<ce;){var xe=ce-1>>>1,I=F[xe];if(0<s(I,ae))F[xe]=ae,F[ce]=I,ce=xe;else break e}}function c(F){return F.length===0?null:F[0]}function o(F){if(F.length===0)return null;var ae=F[0],ce=F.pop();if(ce!==ae){F[0]=ce;e:for(var xe=0,I=F.length,Se=I>>>1;xe<Se;){var J=2*(xe+1)-1,me=F[J],w=J+1,U=F[w];if(0>s(me,ce))w<I&&0>s(U,me)?(F[xe]=U,F[w]=ce,xe=w):(F[xe]=me,F[J]=ce,xe=J);else if(w<I&&0>s(U,ce))F[xe]=U,F[w]=ce,xe=w;else break e}}return ae}function s(F,ae){var ce=F.sortIndex-ae.sortIndex;return ce!==0?ce:F.id-ae.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;i.unstable_now=function(){return d.now()}}else{var h=Date,v=h.now();i.unstable_now=function(){return h.now()-v}}var g=[],x=[],S=1,p=null,N=3,A=!1,j=!1,z=!1,H=!1,q=typeof setTimeout=="function"?setTimeout:null,G=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null;function V(F){for(var ae=c(x);ae!==null;){if(ae.callback===null)o(x);else if(ae.startTime<=F)o(x),ae.sortIndex=ae.expirationTime,u(g,ae);else break;ae=c(x)}}function K(F){if(z=!1,V(F),!j)if(c(g)!==null)j=!0,_||(_=!0,P());else{var ae=c(x);ae!==null&&ge(K,ae.startTime-F)}}var _=!1,E=-1,R=5,Q=-1;function te(){return H?!0:!(i.unstable_now()-Q<R)}function W(){if(H=!1,_){var F=i.unstable_now();Q=F;var ae=!0;try{e:{j=!1,z&&(z=!1,G(E),E=-1),A=!0;var ce=N;try{t:{for(V(F),p=c(g);p!==null&&!(p.expirationTime>F&&te());){var xe=p.callback;if(typeof xe=="function"){p.callback=null,N=p.priorityLevel;var I=xe(p.expirationTime<=F);if(F=i.unstable_now(),typeof I=="function"){p.callback=I,V(F),ae=!0;break t}p===c(g)&&o(g),V(F)}else o(g);p=c(g)}if(p!==null)ae=!0;else{var Se=c(x);Se!==null&&ge(K,Se.startTime-F),ae=!1}}break e}finally{p=null,N=ce,A=!1}ae=void 0}}finally{ae?P():_=!1}}}var P;if(typeof k=="function")P=function(){k(W)};else if(typeof MessageChannel<"u"){var ne=new MessageChannel,re=ne.port2;ne.port1.onmessage=W,P=function(){re.postMessage(null)}}else P=function(){q(W,0)};function ge(F,ae){E=q(function(){F(i.unstable_now())},ae)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(F){F.callback=null},i.unstable_forceFrameRate=function(F){0>F||125<F?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):R=0<F?Math.floor(1e3/F):5},i.unstable_getCurrentPriorityLevel=function(){return N},i.unstable_next=function(F){switch(N){case 1:case 2:case 3:var ae=3;break;default:ae=N}var ce=N;N=ae;try{return F()}finally{N=ce}},i.unstable_requestPaint=function(){H=!0},i.unstable_runWithPriority=function(F,ae){switch(F){case 1:case 2:case 3:case 4:case 5:break;default:F=3}var ce=N;N=F;try{return ae()}finally{N=ce}},i.unstable_scheduleCallback=function(F,ae,ce){var xe=i.unstable_now();switch(typeof ce=="object"&&ce!==null?(ce=ce.delay,ce=typeof ce=="number"&&0<ce?xe+ce:xe):ce=xe,F){case 1:var I=-1;break;case 2:I=250;break;case 5:I=1073741823;break;case 4:I=1e4;break;default:I=5e3}return I=ce+I,F={id:S++,callback:ae,priorityLevel:F,startTime:ce,expirationTime:I,sortIndex:-1},ce>xe?(F.sortIndex=ce,u(x,F),c(g)===null&&F===c(x)&&(z?(G(E),E=-1):z=!0,ge(K,ce-xe))):(F.sortIndex=I,u(g,F),j||A||(j=!0,_||(_=!0,P()))),F},i.unstable_shouldYield=te,i.unstable_wrapCallback=function(F){var ae=N;return function(){var ce=N;N=ae;try{return F.apply(this,arguments)}finally{N=ce}}}})(hf)),hf}var T0;function F2(){return T0||(T0=1,mf.exports=J2()),mf.exports}var vf={exports:{}},Nt={};/**
|
||
* @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 j0;function P2(){if(j0)return Nt;j0=1;var i=yd();function u(S){var p="https://react.dev/errors/"+S;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var N=2;N<arguments.length;N++)p+="&args[]="+encodeURIComponent(arguments[N])}return"Minified React error #"+S+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(){}var o={d:{f:c,r:function(){throw Error(u(522))},D:c,C:c,L:c,m:c,X:c,S:c,M:c},p:0,findDOMNode:null},s=Symbol.for("react.portal"),d=Symbol.for("react.recoverable"),h=Symbol.for("react.optimistic_key");function v(S,p,N){var A=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:A==null?null:A===h?h:""+A,children:S,containerInfo:p,implementation:N}}var g=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function x(S,p){if(S==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Nt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,Nt.browser=function(S){return{$$typeof:d,_reason:S}},Nt.createPortal=function(S,p){var N=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(u(299));return v(S,p,null,N)},Nt.flushSync=function(S){var p=g.T,N=o.p;try{if(g.T=null,o.p=2,S)return S()}finally{g.T=p,o.p=N,o.d.f()}},Nt.preconnect=function(S,p){typeof S=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,o.d.C(S,p))},Nt.prefetchDNS=function(S){typeof S=="string"&&o.d.D(S)},Nt.preinit=function(S,p){if(typeof S=="string"&&p&&typeof p.as=="string"){var N=p.as,A=x(N,p.crossOrigin),j=typeof p.integrity=="string"?p.integrity:void 0,z=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;N==="style"?o.d.S(S,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:A,integrity:j,fetchPriority:z}):N==="script"&&o.d.X(S,{crossOrigin:A,integrity:j,fetchPriority:z,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Nt.preinitModule=function(S,p){if(typeof S=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var N=x(p.as,p.crossOrigin);o.d.M(S,{crossOrigin:N,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0})}}else p==null&&o.d.M(S)},Nt.preload=function(S,p){if(typeof S=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var N=p.as,A=x(N,p.crossOrigin);o.d.L(S,N,{crossOrigin:A,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},Nt.preloadModule=function(S,p){if(typeof S=="string")if(p){var N=x(p.as,p.crossOrigin);o.d.m(S,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:N,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0})}else o.d.m(S)},Nt.requestFormReset=function(S){o.d.r(S)},Nt.unstable_batchedUpdates=function(S,p){return S(p)},Nt.useFormState=function(S,p,N){return g.H.useFormState(S,p,N)},Nt.useFormStatus=function(){return g.H.useHostTransitionStatus()},Nt.version="19.3.1",Nt}var _0;function Uy(){if(_0)return vf.exports;_0=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(u){console.error(u)}}return i(),vf.exports=P2(),vf.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 A0;function $2(){if(A0)return dr;A0=1;var i=F2(),u=yd(),c=Uy();function o(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function d(e){for(var t=e,n=t;n&&!n.alternate;)t=n,(t.flags&4098)!==0&&(e=t.return),n=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function h(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function v(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function g(e){if(d(e)!==e)throw Error(o(188))}function x(e){var t=e.alternate;if(!t){if(t=d(e),t===null)throw Error(o(188));return t!==e?null:e}for(var n=e,l=t;;){var a=n.return;if(a===null)break;var r=a.alternate;if(r===null){if(l=a.return,l!==null){n=l;continue}break}if(a.child===r.child){for(r=a.child;r;){if(r===n)return g(a),e;if(r===l)return g(a),t;r=r.sibling}throw Error(o(188))}if(n.return!==l.return)n=a,l=r;else{for(var m=!1,y=a.child;y;){if(y===n){m=!0,n=a,l=r;break}if(y===l){m=!0,l=a,n=r;break}y=y.sibling}if(!m){for(y=r.child;y;){if(y===n){m=!0,n=r,l=a;break}if(y===l){m=!0,l=r,n=a;break}y=y.sibling}if(!m)throw Error(o(189))}}if(n.alternate!==l)throw Error(o(190))}if(n.tag!==3)throw Error(o(188));return n.stateNode.current===n?e:t}function S(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=S(e),t!==null)return t;e=e.sibling}return null}function p(e,t,n,l,a,r){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&n(e,l,a,r)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&p(e.child,t,n,l,a,r))return!0;e=e.sibling}return!1}function N(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function A(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),!(e.tag===3||e.tag===5||e.tag===27));)e=e.return;return t}function j(e){var t=[null,null],n=N(e);return n===null||z(t,e,n.child,{foundSelf:!1}),t}function z(e,t,n,l){for(;n!==null;){if(n===t)l.foundSelf=!0;else if(n.tag===5||n.tag===27||n.tag===6){if(l.foundSelf)return e[1]=n,!0;e[0]=n}else if((n.tag!==22||n.memoizedState===null)&&z(e,t,n.child,l))return!0;n=n.sibling}return!1}function H(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(o(559))}}var q=null,G=null;function k(e,t,n){return e===n?!0:e===t?(q=e,!0):!1}function V(e,t,n){return e===n?(G=e,!1):e===t?(G!==null&&(q=e),!0):!1}function K(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function _(e,t,n){for(var l=0,a=e;a;a=n(a))l++;a=0;for(var r=t;r;r=n(r))a++;for(;0<l-a;)e=n(e),l--;for(;0<a-l;)t=n(t),a--;for(;l--;){if(e===t||t!==null&&e===t.alternate)return e;e=n(e),t=n(t)}return null}var E=Object.assign,R=Symbol.for("react.element"),Q=Symbol.for("react.transitional.element"),te=Symbol.for("react.portal"),W=Symbol.for("react.fragment"),P=Symbol.for("react.strict_mode"),ne=Symbol.for("react.profiler"),re=Symbol.for("react.consumer"),ge=Symbol.for("react.context"),F=Symbol.for("react.forward_ref"),ae=Symbol.for("react.suspense"),ce=Symbol.for("react.suspense_list"),xe=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),Se=Symbol.for("react.activity"),J=Symbol.for("react.legacy_hidden"),me=Symbol.for("react.memo_cache_sentinel"),w=Symbol.for("react.view_transition"),U=Symbol.for("react.recoverable"),$=Symbol.iterator;function ee(e){return e===null||typeof e!="object"?null:(e=$&&e[$]||e["@@iterator"],typeof e=="function"?e:null)}var he=Symbol.for("react.client.reference");function ie(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===he?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case W:return"Fragment";case ne:return"Profiler";case P:return"StrictMode";case ae:return"Suspense";case ce:return"SuspenseList";case Se:return"Activity";case w:return"ViewTransition"}if(typeof e=="object")switch(e.$$typeof){case te:return"Portal";case ge:return e.displayName||"Context";case re:return(e._context.displayName||"Context")+".Consumer";case F:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case xe:return t=e.displayName||null,t!==null?t:ie(e.type)||"Memo";case I:t=e._payload,e=e._init;try{return ie(e(t))}catch{}}return null}var Ne=Array.isArray,fe=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ye=c.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ut={pending:!1,data:null,method:null,action:null},tl=[],ga=-1;function yn(e){return{current:e}}function ht(e){0>ga||(e.current=tl[ga],tl[ga]=null,ga--)}function Ye(e,t){ga++,tl[ga]=e.current,e.current=t}var pn=yn(null),yi=yn(null),nl=yn(null),Cr=yn(null);function Er(e,t){switch(Ye(nl,t),Ye(yi,e),Ye(pn,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?jg(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=jg(t),e=_g(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}ht(pn),Ye(pn,e)}function ya(){ht(pn),ht(yi),ht(nl)}function _o(e){var t=e.memoizedState;t!==null&&(ai._currentValue=t.memoizedState,Ye(Cr,e)),t=pn.current;var n=_g(t,e.type);t!==n&&(Ye(yi,e),Ye(pn,n))}function wr(e){yi.current===e&&(ht(pn),ht(yi)),Cr.current===e&&(ht(Cr),ai._currentValue=Ut)}var Ao,Id;function ll(e){if(Ao===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ao=t&&t[1]||"",Id=-1<n.stack.indexOf(`
|
||
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
||
`+Ao+e+Id}var Ro=!1;function Mo(e,t){if(!e||Ro)return"";Ro=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var Z=function(){throw Error()};if(Object.defineProperty(Z.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Z,[])}catch(le){var M=le}Reflect.construct(e,[],Z)}else{try{Z.call()}catch(le){M=le}Z=!1;try{var L=Object.getOwnPropertyDescriptor(e.prototype,"props");Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),Z=!0,new e}finally{Z&&(L!==void 0?Object.defineProperty(e.prototype,"props",L):delete e.prototype.props)}}}else{try{throw Error()}catch(le){M=le}(Z=e())&&typeof Z.catch=="function"&&Z.catch(function(){})}}catch(le){if(le&&M&&typeof le.stack=="string")return[le.stack,M.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var a=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");a&&a.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var r=l.DetermineComponentFrameRoot(),m=r[0],y=r[1];if(m&&y){var C=m.split(`
|
||
`),D=y.split(`
|
||
`);for(a=l=0;l<C.length&&!C[l].includes("DetermineComponentFrameRoot");)l++;for(;a<D.length&&!D[a].includes("DetermineComponentFrameRoot");)a++;if(l===C.length||a===D.length)for(l=C.length-1,a=D.length-1;1<=l&&0<=a&&C[l]!==D[a];)a--;for(;1<=l&&0<=a;l--,a--)if(C[l]!==D[a]){if(l!==1||a!==1)do if(l--,a--,0>a||C[l]!==D[a]){var Y=`
|
||
`+C[l].replace(" at new "," at ");return e.displayName&&Y.includes("<anonymous>")&&(Y=Y.replace("<anonymous>",e.displayName)),Y}while(1<=l&&0<=a);break}}}finally{Ro=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?ll(n):""}function Jp(e,t){switch(e.tag){case 26:case 27:case 5:return ll(e.type);case 16:return ll("Lazy");case 13:return e.child!==t&&t!==null?ll("Suspense Fallback"):ll("Suspense");case 19:return ll("SuspenseList");case 0:case 15:return Mo(e.type,!1);case 11:return Mo(e.type.render,!1);case 1:return Mo(e.type,!0);case 31:return ll("Activity");case 30:return ll("ViewTransition");default:return""}}function Jd(e){try{var t="",n=null;do t+=Jp(e,n),n=e,e=e.return;while(e);return t}catch(l){return`
|
||
Error generating stack: `+l.message+`
|
||
`+l.stack}}var Oo=Object.prototype.hasOwnProperty,zo=i.unstable_scheduleCallback,Do=i.unstable_cancelCallback,Fp=i.unstable_shouldYield,Pp=i.unstable_requestPaint,Bt=i.unstable_now,$p=i.unstable_getCurrentPriorityLevel,Fd=i.unstable_ImmediatePriority,Pd=i.unstable_UserBlockingPriority,Tr=i.unstable_NormalPriority,Wp=i.unstable_LowPriority,$d=i.unstable_IdlePriority,eb=i.log,tb=i.unstable_setDisableYieldValue,pi=null,kt=null;function al(e){if(typeof eb=="function"&&tb(e),kt&&typeof kt.setStrictMode=="function")try{kt.setStrictMode(pi,e)}catch{}}var Lt=Math.clz32?Math.clz32:ab,nb=Math.log,lb=Math.LN2;function ab(e){return e>>>=0,e===0?32:31-(nb(e)/lb|0)|0}var jr=256,_r=262144,Ar=4194304;function kl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&-e;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Rr(e,t,n){var l=e.pendingLanes;if(l===0)return 0;var a=0,r=e.suspendedLanes,m=e.pingedLanes;e=e.warmLanes;var y=l&134217727;return y!==0?(l=y&~r,l!==0?a=kl(l):(m&=y,m!==0?a=kl(m):n||(n=y&~e,n!==0&&(a=kl(n))))):(y=l&~r,y!==0?a=kl(y):m!==0?a=kl(m):n||(n=l&~e,n!==0&&(a=kl(n)))),a===0?0:t!==0&&t!==a&&(t&r)===0&&(r=a&-a,n=t&-t,r>=n||r===32&&(n&4194048)!==0)?t:a}function bi(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Wd(e,t){(t&8)!==0&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var l=31-Lt(n),a=1<<l;t|=e[l],n&=~a}return t}function ib(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function em(){var e=Ar;return Ar<<=1,(Ar&62914560)===0&&(Ar=4194304),e}function Uo(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function xi(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function rb(e,t,n,l,a,r){var m=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var y=e.entanglements,C=e.expirationTimes,D=e.hiddenUpdates;for(n=m&~n;0<n;){var Y=31-Lt(n),Z=1<<Y;y[Y]=0,C[Y]=-1;var M=D[Y];if(M!==null)for(D[Y]=null,Y=0;Y<M.length;Y++){var L=M[Y];L!==null&&(L.lane&=-536870913)}n&=~Z}l!==0&&tm(e,l,0),r!==0&&a===0&&e.tag!==0&&(e.suspendedLanes|=r&~(m&~t))}function tm(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-Lt(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|n&261930}function nm(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var l=31-Lt(n),a=1<<l;a&t|e[l]&t&&(e[l]|=t),n&=~a}}function lm(e,t){var n=t&-t;return n=(n&42)!==0?1:Bo(n),(n&(e.suspendedLanes|t))!==0?0:n}function Bo(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function ko(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function am(){var e=ye.p;return e!==0?e:(e=window.event,e===void 0?32:f0(e.type))}function im(e,t){var n=ye.p;try{return ye.p=e,t()}finally{ye.p=n}}var Bn=Math.random().toString(36).slice(2),vt="__reactFiber$"+Bn,_t="__reactProps$"+Bn,pa="__reactContainer$"+Bn,rm="__reactEvents$"+Bn,ub="__reactListeners$"+Bn,ob="__reactHandles$"+Bn,um="__reactResources$"+Bn,Si="__reactMarker$"+Bn,Mr="__reactLoad$"+Bn;function Or(e){delete e[vt],delete e[_t],delete e[ub],delete e[ob]}function Ll(e){var t;if(t=e[vt])return t;for(var n=e.parentNode;n;){if(t=n[pa]||n[vt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Xg(e);e!==null;){if(n=e[vt])return n;e=Xg(e)}return t}e=n,n=e.parentNode}return null}function ba(e){if(e=e[vt]||e[pa]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ni(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function xa(e){var t=e[um];return t||(t=e[um]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ot(e){e[Si]=!0}function om(e){e[Mr]=void 0}var cm=new Set,sm={};function Hl(e,t){Sa(e,t),Sa(e+"Capture",t)}function Sa(e,t){for(sm[e]=t,e=0;e<t.length;e++)cm.add(t[e])}var cb=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]*$"),fm={},dm={};function sb(e){return Oo.call(dm,e)?!0:Oo.call(fm,e)?!1:cb.test(e)?dm[e]=!0:(fm[e]=!0,!1)}var ze=!1;function mm(){var e=ze;return ze=!1,e}function zr(e,t,n){if(sb(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,n)}}function Dr(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,n)}}function kn(e,t,n,l){if(l===null)e.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,l)}}function Ht(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function hm(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function fb(e,t,n){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var a=l.get,r=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(m){n=""+m,r.call(this,m)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return n},setValue:function(m){n=""+m},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Lo(e){if(!e._valueTracker){var t=hm(e)?"checked":"value";e._valueTracker=fb(e,t,""+e[t])}}function vm(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),l="";return e&&(l=hm(e)?e.checked?"true":"false":e.value),e=l,e!==n?(t.setValue(e),!0):!1}var db=/[\n"\\]/g;function Jt(e){return e.replace(db,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Ho(e,t,n,l,a,r,m,y){e.name="",m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?e.type=m:e.removeAttribute("type"),t!=null?m==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Ht(t)):e.value!==""+Ht(t)&&(e.value=""+Ht(t)):m!=="submit"&&m!=="reset"||e.removeAttribute("value"),t!=null?m==="number"&&e.value==t?qo(e,Ht(e.value)):qo(e,Ht(t)):n!=null?qo(e,Ht(n)):l!=null&&e.removeAttribute("value"),a==null&&r!=null&&(e.defaultChecked=!!r),a!=null&&(e.checked=a&&typeof a!="function"&&typeof a!="symbol"),y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?e.name=""+Ht(y):e.removeAttribute("name")}function gm(e,t,n,l,a,r,m,y){if(r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(e.type=r),t!=null||n!=null){if(!(r!=="submit"&&r!=="reset"||t!=null)){Lo(e);return}n=n!=null?""+Ht(n):"",t=t!=null?""+Ht(t):n,y||t===e.value||(e.value=t),e.defaultValue=t}l=l??a,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=y?e.checked:!!l,e.defaultChecked=!!l,m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(e.name=m),Lo(e)}function qo(e,t){e.defaultValue!==""+t&&(e.defaultValue=""+t)}function Na(e,t,n,l){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&l&&(e[n].defaultSelected=!0)}else{for(n=""+Ht(n),t=null,a=0;a<e.length;a++){if(e[a].value===n){e[a].selected=!0,l&&(e[a].defaultSelected=!0);return}t!==null||e[a].disabled||(t=e[a])}t!==null&&(t.selected=!0)}}function ym(e,t,n){if(t!=null&&(t=""+Ht(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Ht(n):""}function pm(e,t,n,l){if(t==null){if(l!=null){if(n!=null)throw Error(o(92));if(Ne(l)){if(1<l.length)throw Error(o(93));l=l[0]}n=l}n==null&&(n=""),t=n}n=Ht(t),e.defaultValue=n,l=e.textContent,l===n&&l!==""&&l!==null&&(e.value=l),Lo(e)}function Ca(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var mb=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 bm(e,t,n){var l=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,n):typeof n!="number"||n===0||mb.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function xm(e,t,n){if(t!=null&&typeof t!="object")throw Error(o(62));if(e=e.style,n!=null){for(var l in n)!n.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="",ze=!0);for(var a in t)l=t[a],t.hasOwnProperty(a)&&n[a]!==l&&(bm(e,a,l),ze=!0)}else for(var r in t)t.hasOwnProperty(r)&&bm(e,r,t[r])}function Go(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var hb=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"]]),vb=/^[\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 Ur(e){return vb.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function bn(){}var Yo=null;function Vo(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ea=null,wa=null;function Sm(e){var t=ba(e);if(t&&(e=t.stateNode)){var n=e[_t]||null;e:switch(e=t.stateNode,t.type){case"input":if(Ho(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Jt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var l=n[t];if(l!==e&&l.form===e.form){var a=l[_t]||null;if(!a)throw Error(o(90));Ho(l,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)l=n[t],l.form===e.form&&vm(l)}break e;case"textarea":ym(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Na(e,!!n.multiple,t,!1)}}}var Qo=!1;function Nm(e,t,n){if(Qo)return e(t,n);Qo=!0;try{var l=e(t);return l}finally{if(Qo=!1,(Ea!==null||wa!==null)&&(Uu(),Ea&&(t=Ea,e=wa,wa=Ea=null,Sm(t),e)))for(t=0;t<e.length;t++)Sm(e[t])}}function Ci(e,t){var n=e.stateNode;if(n===null)return null;var l=n[_t]||null;if(l===null)return null;n=l[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(o(231,t,typeof n));return n}var Ln=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Xo=!1;if(Ln)try{var Ei={};Object.defineProperty(Ei,"passive",{get:function(){Xo=!0}}),window.addEventListener("test",Ei,Ei),window.removeEventListener("test",Ei,Ei)}catch{Xo=!1}var il=null,Zo=null,Br=null;function Cm(){if(Br)return Br;var e,t=Zo,n=t.length,l,a="value"in il?il.value:il.textContent,r=a.length;for(e=0;e<n&&t[e]===a[e];e++);var m=n-e;for(l=1;l<=m&&t[n-l]===a[r-l];l++);return Br=a.slice(e,1<l?1-l:void 0)}function kr(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Lr(){return!0}function Em(){return!1}function Et(e){function t(n,l,a,r,m){this._reactName=n,this._targetInst=a,this.type=l,this.nativeEvent=r,this.target=m,this.currentTarget=null;for(var y in e)e.hasOwnProperty(y)&&(n=e[y],this[y]=n?n(r):r[y]);return this.isDefaultPrevented=(r.defaultPrevented!=null?r.defaultPrevented:r.returnValue===!1)?Lr:Em,this.isPropagationStopped=Em,this}return E(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Lr)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Lr)},persist:function(){},isPersistent:Lr}),t}var rl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Hr=Et(rl),wi=E({},rl,{view:0,detail:0}),gb=Et(wi),Ko,Io,Ti,qr=E({},wi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Fo,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Ti&&(Ti&&e.type==="mousemove"?(Ko=e.screenX-Ti.screenX,Io=e.screenY-Ti.screenY):Io=Ko=0,Ti=e),Ko)},movementY:function(e){return"movementY"in e?e.movementY:Io}}),wm=Et(qr),yb=E({},qr,{dataTransfer:0}),pb=Et(yb),bb=E({},wi,{relatedTarget:0}),Jo=Et(bb),xb=E({},rl,{animationName:0,elapsedTime:0,pseudoElement:0}),Sb=Et(xb),Nb=E({},rl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Cb=Et(Nb),Eb=E({},rl,{data:0}),Tm=Et(Eb),wb={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Tb={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"},jb={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function _b(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=jb[e])?!!t[e]:!1}function Fo(){return _b}var Ab=E({},wi,{key:function(e){if(e.key){var t=wb[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=kr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Tb[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Fo,charCode:function(e){return e.type==="keypress"?kr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?kr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Rb=Et(Ab),Mb=E({},qr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),jm=Et(Mb),Ob=E({},rl,{submitter:0}),zb=Et(Ob),Db=E({},wi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Fo}),Ub=Et(Db),Bb=E({},rl,{propertyName:0,elapsedTime:0,pseudoElement:0}),kb=Et(Bb),Lb=E({},qr,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Hb=Et(Lb),qb=E({},rl,{newState:0,oldState:0,source:0}),Gb=Et(qb),Yb=[9,13,27,32],Po=Ln&&"CompositionEvent"in window,ji=null;Ln&&"documentMode"in document&&(ji=document.documentMode);var Vb=Ln&&"TextEvent"in window&&!ji,_m=Ln&&(!Po||ji&&8<ji&&11>=ji),Am=" ",Rm=!1;function Mm(e,t){switch(e){case"keyup":return Yb.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Om(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ta=!1;function Qb(e,t){switch(e){case"compositionend":return Om(t);case"keypress":return t.which!==32?null:(Rm=!0,Am);case"textInput":return e=t.data,e===Am&&Rm?null:e;default:return null}}function Xb(e,t){if(Ta)return e==="compositionend"||!Po&&Mm(e,t)?(e=Cm(),Br=Zo=il=null,Ta=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return _m&&t.locale!=="ko"?null:t.data;default:return null}}var Zb={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 zm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Zb[e.type]:t==="textarea"}function Dm(e,t,n,l){Ea?wa?wa.push(l):wa=[l]:Ea=l,t=Gu(t,"onChange"),0<t.length&&(n=new Hr("onChange","change",null,n,l),e.push({event:n,listeners:t}))}var _i=null,Ai=null;function Kb(e){Sg(e,0)}function Gr(e){var t=Ni(e);if(vm(t))return e}function Um(e,t){if(e==="change")return t}var Bm=!1;if(Ln){var $o;if(Ln){var Wo="oninput"in document;if(!Wo){var km=document.createElement("div");km.setAttribute("oninput","return;"),Wo=typeof km.oninput=="function"}$o=Wo}else $o=!1;Bm=$o&&(!document.documentMode||9<document.documentMode)}function Lm(){_i&&(_i.detachEvent("onpropertychange",Hm),Ai=_i=null)}function Hm(e){if(e.propertyName==="value"&&Gr(Ai)){var t=[];Dm(t,Ai,e,Vo(e)),Nm(Kb,t)}}function Ib(e,t,n){e==="focusin"?(Lm(),_i=t,Ai=n,_i.attachEvent("onpropertychange",Hm)):e==="focusout"&&Lm()}function Jb(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Gr(Ai)}function Fb(e,t){if(e==="click")return Gr(t)}function Pb(e,t){if(e==="input"||e==="change")return Gr(t)}function $b(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var qt=typeof Object.is=="function"?Object.is:$b;function Ri(e,t){if(qt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),l=Object.keys(t);if(n.length!==l.length)return!1;for(l=0;l<n.length;l++){var a=n[l];if(!Oo.call(t,a)||!qt(e[a],t[a]))return!1}return!0}function ec(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function qm(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Gm(e,t){var n=qm(e);e=0;for(var l;n;){if(n.nodeType===3){if(l=e+n.textContent.length,e<=t&&l>=t)return{node:n,offset:t-e};e=l}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=qm(n)}}function Ym(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ym(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Vm(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ec(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ec(e.document)}return t}function tc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var Wb=Ln&&"documentMode"in document&&11>=document.documentMode,ja=null,nc=null,Mi=null,lc=!1;function Qm(e,t,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;lc||ja==null||ja!==ec(l)||(l=ja,"selectionStart"in l&&tc(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Mi&&Ri(Mi,l)||(Mi=l,l=Gu(nc,"onSelect"),0<l.length&&(t=new Hr("onSelect","select",null,t,n),e.push({event:t,listeners:l}),t.target=ja)))}function ql(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var _a={animationend:ql("Animation","AnimationEnd"),animationiteration:ql("Animation","AnimationIteration"),animationstart:ql("Animation","AnimationStart"),transitionrun:ql("Transition","TransitionRun"),transitionstart:ql("Transition","TransitionStart"),transitioncancel:ql("Transition","TransitionCancel"),transitionend:ql("Transition","TransitionEnd")},ac={},Xm={};Ln&&(Xm=document.createElement("div").style,"AnimationEvent"in window||(delete _a.animationend.animation,delete _a.animationiteration.animation,delete _a.animationstart.animation),"TransitionEvent"in window||delete _a.transitionend.transition);function Gl(e){if(ac[e])return ac[e];if(!_a[e])return e;var t=_a[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Xm)return ac[e]=t[n];return e}var Zm=Gl("animationend"),Km=Gl("animationiteration"),Im=Gl("animationstart"),ex=Gl("transitionrun"),tx=Gl("transitionstart"),nx=Gl("transitioncancel"),Jm=Gl("transitionend"),Fm=new Map,ic="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(" ");ic.push("scrollEnd");function fn(e,t){Fm.set(e,t),Hl(t,[e])}var lx=0;function Hn(e,t){if(e.name!=null&&e.name!=="auto")return e.name;if(t.autoName!==null)return t.autoName;e=vn.identifierPrefix;var n=lx++;return e="_"+e+"t_"+n.toString(32)+"_",t.autoName=e}function Pm(e){if(e==null||typeof e=="string")return e;var t=null,n=Ia;if(n!==null)for(var l=0;l<n.length;l++){var a=e[n[l]];if(a!=null){if(a==="none")return"none";t=t==null?a:t+(" "+a)}}return t??e.default}function qn(e,t){return e=Pm(e),t=Pm(t),t==null?e==="auto"?null:e:t==="auto"?null:t}var Yr=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Ft=[],Aa=0,rc=0;function Vr(){for(var e=Aa,t=rc=Aa=0;t<e;){var n=Ft[t];Ft[t++]=null;var l=Ft[t];Ft[t++]=null;var a=Ft[t];Ft[t++]=null;var r=Ft[t];if(Ft[t++]=null,l!==null&&a!==null){var m=l.pending;m===null?a.next=a:(a.next=m.next,m.next=a),l.pending=a}r!==0&&$m(n,a,r)}}function Qr(e,t,n,l){Ft[Aa++]=e,Ft[Aa++]=t,Ft[Aa++]=n,Ft[Aa++]=l,rc|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function uc(e,t,n,l){return Qr(e,t,n,l),Xr(e)}function Yl(e,t){return Qr(e,null,null,t),Xr(e)}function $m(e,t,n){e.lanes|=n;var l=e.alternate;l!==null&&(l.lanes|=n);for(var a=!1,r=e.return;r!==null;)r.childLanes|=n,l=r.alternate,l!==null&&(l.childLanes|=n),r.tag===22&&(e=r.stateNode,e===null||e._visibility&1||(a=!0)),e=r,r=r.return;return e.tag===3?(r=e.stateNode,a&&t!==null&&(a=31-Lt(n),e=r.hiddenUpdates,l=e[a],l===null?e[a]=[t]:l.push(t),t.lane=n|536870912),r):null}function Xr(e){if(50<Wi)throw Wi=0,Du=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Ra={};function ax(e,t,n,l){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function At(e,t,n,l){return new ax(e,t,n,l)}function oc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Gn(e,t){var n=e.alternate;return n===null?(n=At(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&1206910976,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Wm(e,t){e.flags&=1206910978;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Zr(e,t,n,l,a,r){var m=0;if(l=e,typeof l=="function")oc(l)&&(m=1);else if(typeof l=="string")m=O2(e,n,pn.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(l){case Se:return e=At(31,n,t,a),e.elementType=Se,e.lanes=r,e;case W:return Vl(n.children,a,r,t);case P:m=8,a|=24;break;case ne:return e=At(12,n,t,a|2),e.elementType=ne,e.lanes=r,e;case ae:return e=At(13,n,t,a),e.elementType=ae,e.lanes=r,e;case ce:return e=At(19,n,t,a),e.elementType=ce,e.lanes=r,e;case J:case w:return e=a|32,e=At(30,n,t,e),e.elementType=w,e.lanes=r,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof l=="object"&&l!==null)switch(l.$$typeof){case ge:m=10;break e;case re:m=9;break e;case F:m=11;break e;case xe:m=14;break e;case I:m=16,l=null;break e}m=29,n=Error(o(130,e===null?"null":typeof e,"")),l=null}return t=At(m,n,t,a),t.elementType=e,t.type=l,t.lanes=r,t}function Vl(e,t,n,l){return e=At(7,e,l,t),e.lanes=n,e}function cc(e,t,n){return e=At(6,e,null,t),e.lanes=n,e}function eh(e){var t=At(18,null,null,0);return t.stateNode=e,t}function sc(e,t,n){return t=At(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var th=new WeakMap;function Pt(e,t){if(typeof e=="object"&&e!==null){var n=th.get(e);return n!==void 0?n:(t={value:e,source:t,stack:Jd(t)},th.set(e,t),t)}return{value:e,source:t,stack:Jd(t)}}var Ma=[],Oa=0,Kr=null,Oi=0,$t=[],Wt=0,ul=null,xn=1,Sn="";function Yn(e,t){Ma[Oa++]=Oi,Ma[Oa++]=Kr,Kr=e,Oi=t}function nh(e,t,n){$t[Wt++]=xn,$t[Wt++]=Sn,$t[Wt++]=ul,ul=e;var l=xn;e=Sn;var a=32-Lt(l)-1;l&=~(1<<a),n+=1;var r=32-Lt(t)+a;if(30<r){var m=a-a%5;r=(l&(1<<m)-1).toString(32),l>>=m,a-=m,xn=1<<32-Lt(t)+a|n<<a|l,Sn=r+e}else xn=1<<r|n<<a|l,Sn=e}function Ir(e){e.return!==null&&(Yn(e,1),nh(e,1,0))}function fc(e){for(;e===Kr;)Kr=Ma[--Oa],Ma[Oa]=null,Oi=Ma[--Oa],Ma[Oa]=null;for(;e===ul;)ul=$t[--Wt],$t[Wt]=null,Sn=$t[--Wt],$t[Wt]=null,xn=$t[--Wt],$t[Wt]=null}function lh(e,t){$t[Wt++]=xn,$t[Wt++]=Sn,$t[Wt++]=ul,xn=t.id,Sn=t.overflow,ul=e}var ct=null,Ve=null,we=!1,ol=null,en=!1,dc=Error(o(519));function cl(e){var t=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw zi(Pt(t,e)),dc}function ah(e){var t=e.stateNode,n=e.type,l=e.memoizedProps;switch(t[vt]=e,t[_t]=l,n){case"dialog":_e("cancel",t),_e("close",t);break;case"iframe":case"object":case"embed":_e("load",t);break;case"video":case"audio":for(n=0;n<tr.length;n++)_e(tr[n],t);break;case"source":_e("error",t);break;case"img":case"image":case"link":_e("error",t),_e("load",t);break;case"details":_e("toggle",t);break;case"input":_e("invalid",t),gm(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":_e("invalid",t);break;case"textarea":_e("invalid",t),pm(t,l.value,l.defaultValue,l.children)}n=l.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||l.suppressHydrationWarning===!0||wg(t.textContent,n)?(l.popover!=null&&(_e("beforetoggle",t),_e("toggle",t)),l.onScroll!=null&&_e("scroll",t),l.onScrollEnd!=null&&_e("scrollend",t),l.onClick!=null&&(t.onclick=bn),t=!0):t=!1,t||cl(e,!0)}function Jr(e){for(ct=e.return;ct;)switch(ct.tag){case 5:case 31:case 13:en=!1;return;case 27:case 3:en=!0;return;default:ct=ct.return}}function za(e){if(e!==ct)return!1;if(!we)return Jr(e),we=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Ys(e.type,e.memoizedProps)),n=!n),n&&Ve&&cl(e),Jr(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));Ve=Qg(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));Ve=Qg(e)}else t===27?(t=Ve,wl(e.type)?(e=Ps,Ps=null,Ve=e):Ve=t):Ve=ct?nn(e.stateNode.nextSibling):null;return!0}function Ql(){Ve=ct=null,we=!1}function mc(){var e=ol;return e!==null&&(Ot===null?Ot=e:Ot.push.apply(Ot,e),ol=null),e}function zi(e){ol===null?ol=[e]:ol.push(e)}var hc=yn(null),Xl=null,Vn=null;function sl(e,t,n){Ye(hc,t._currentValue),t._currentValue=n}function Qn(e){e._currentValue=hc.current,ht(hc)}function Fr(e,t,n){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===n)break;e=e.return}}function vc(e,t,n,l){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var r=a.dependencies;if(r!==null){var m=a.child;r=r.firstContext;e:for(;r!==null;){var y=r;r=a;for(var C=0;C<t.length;C++)if(y.context===t[C]){r.lanes|=n,y=r.alternate,y!==null&&(y.lanes|=n),Fr(r.return,n,e),l||(m=null);break e}r=y.next}}else if(a.tag===18){if(m=a.return,m===null)throw Error(o(341));m.lanes|=n,r=m.alternate,r!==null&&(r.lanes|=n),Fr(m,n,e),m=null}else a.tag===13&&a.memoizedState!==null&&a.memoizedState.dehydrated===null?(a.lanes|=n,m=a.alternate,m!==null&&(m.lanes|=n),Fr(a.return,n,e),m=a.child,m=m!==null?m.sibling:null):m=a.child;if(m!==null)m.return=a;else for(m=a;m!==null;){if(m===e){m=null;break}if(a=m.sibling,a!==null){a.return=m.return,m=a;break}m=m.return}a=m}}function Zl(e,t,n,l){e=null;for(var a=t,r=!1;a!==null;){if(!r){if((a.flags&524288)!==0)r=!0;else if((a.flags&262144)!==0)break}if(a.tag===10){var m=a.alternate;if(m===null)throw Error(o(387));if(m=m.memoizedProps,m!==null){var y=a.type;qt(a.pendingProps.value,m.value)||(e!==null?e.push(y):e=[y])}}else if(a===Cr.current){if(m=a.alternate,m===null)throw Error(o(387));m.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e!==null?e.push(ai):e=[ai])}a=a.return}return e!==null&&vc(t,e,n,l),t.flags|=262144,e!==null}function Pr(e){for(e=e.firstContext;e!==null;){if(!qt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Kl(e){Xl=e,Vn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function gt(e){return ih(Xl,e)}function $r(e,t){return Xl===null&&Kl(e),ih(e,t)}function ih(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Vn===null){if(e===null)throw Error(o(308));Vn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Vn=Vn.next=t;return n}var ix=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},rx=i.unstable_scheduleCallback,ux=i.unstable_NormalPriority,We={$$typeof:ge,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function gc(){return{controller:new ix,data:new Map,refCount:0}}function Di(e){e.refCount--,e.refCount===0&&rx(ux,function(){e.controller.abort()})}function rh(e,t){if((e.pendingLanes&4194048)!==0){var n=e.transitionTypes;for(n===null&&(n=e.transitionTypes=[]),e=0;e<t.length;e++){var l=t[e];n.indexOf(l)===-1&&n.push(l)}}}var Ui=null;function ox(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var Bi=null,yc=0,Il=0,Da=null;function cx(e,t){if(Bi===null){var n=Bi=[];yc=0,Il=zs(),Da={status:"pending",value:void 0,then:function(l){n.push(l)}}}return yc++,t.then(uh,uh),t}function uh(){if(--yc===0&&(Ui=null,Bi!==null)){Da!==null&&(Da.status="fulfilled");var e=Bi;Bi=null,Il=0,Da=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function sx(e,t){var n=[],l={status:"pending",value:null,reason:null,then:function(a){n.push(a)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var a=0;a<n.length;a++)(0,n[a])(t)},function(a){for(l.status="rejected",l.reason=a,a=0;a<n.length;a++)(0,n[a])(void 0)}),l}var oh=fe.S;fe.S=function(e,t){if(eg=Bt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&cx(e,t),Ui!==null)for(var n=$a;n!==null;)rh(n,Ui),n=n.next;if(n=e.types,n!==null){for(var l=$a;l!==null;)rh(l,n),l=l.next;if(Il!==0){l=Ui,l===null&&(l=Ui=[]);for(var a=0;a<n.length;a++){var r=n[a];l.indexOf(r)===-1&&l.push(r)}}}oh!==null&&oh(e,t)};var Jl=yn(null);function pc(){var e=Jl.current;return e!==null?e:Ge.pooledCache}function Wr(e,t){t===null?Ye(Jl,Jl.current):Ye(Jl,t.pool)}function ch(){var e=pc();return e===null?null:{parent:We._currentValue,pool:e}}var Ua=Error(o(460)),bc=Error(o(474)),eu=Error(o(542)),tu={then:function(){}};function sh(e){return e=e.status,e==="fulfilled"||e==="rejected"}function fh(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(bn,bn),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,mh(e),e===void 0&&!("reason"in t)?Error(o(600)):e;default:if(typeof t.status=="string")t.then(bn,bn);else{if(e=Ge,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var a=t;a.status="fulfilled",a.value=l}},function(l){if(t.status==="pending"){var a=t;a.status="rejected",a.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,mh(e),e}throw Pl=t,Ua}}function Fl(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Pl=n,Ua):n}}var Pl=null;function dh(){if(Pl===null)throw Error(o(459));var e=Pl;return Pl=null,e}function mh(e){if(e===Ua||e===eu)throw Error(o(483))}var Ba=null,ki=0;function nu(e){var t=ki;return ki+=1,Ba===null&&(Ba=[]),fh(Ba,e,t)}function fl(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function lu(e,t){throw t.$$typeof===R?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function hh(e){function t(O,T){if(e){var B=O.deletions;B===null?(O.deletions=[T],O.flags|=16):B.push(T)}}function n(O,T){if(!e)return null;for(;T!==null;)t(O,T),T=T.sibling;return null}function l(O){for(var T=new Map;O!==null;)O.key===null?T.set(O.index,O):T.set(O.key,O),O=O.sibling;return T}function a(O,T){return O=Gn(O,T),O.index=0,O.sibling=null,O}function r(O,T,B){return O.index=B,e?(B=O.alternate,B!==null?(B=B.index,B<T?(O.flags|=2,T):B):(O.flags|=134217730,T)):(O.flags|=1048576,T)}function m(O){return e&&O.alternate===null&&(O.flags|=134217730),O}function y(O,T,B,X){return T===null||T.tag!==6?(T=cc(B,O.mode,X),T.return=O,T):(T=a(T,B),T.return=O,T)}function C(O,T,B,X){var ue=B.type;return ue===W?(O=Y(O,T,B.props.children,X,B.key),fl(O,B),O):T!==null&&(T.elementType===ue||typeof ue=="object"&&ue!==null&&ue.$$typeof===I&&Fl(ue)===T.type)?(T=a(T,B.props),fl(T,B),T.return=O,T):(T=Zr(B.type,B.key,B.props,null,O.mode,X),fl(T,B),T.return=O,T)}function D(O,T,B,X){return T===null||T.tag!==4||T.stateNode.containerInfo!==B.containerInfo||T.stateNode.implementation!==B.implementation?(T=sc(B,O.mode,X),T.return=O,T):(T=a(T,B.children||[]),T.return=O,T)}function Y(O,T,B,X,ue){return T===null||T.tag!==7?(T=Vl(B,O.mode,X,ue),T.return=O,T):(T=a(T,B),T.return=O,T)}function Z(O,T,B){if(typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint")return T=cc(""+T,O.mode,B),T.return=O,T;if(typeof T=="object"&&T!==null){switch(T.$$typeof){case Q:return B=Zr(T.type,T.key,T.props,null,O.mode,B),fl(B,T),B.return=O,B;case te:return T=sc(T,O.mode,B),T.return=O,T;case I:return T=Fl(T),Z(O,T,B)}if(Ne(T)||ee(T))return T=Vl(T,O.mode,B,null),T.return=O,T;if(typeof T.then=="function")return Z(O,nu(T),B);if(T.$$typeof===ge)return Z(O,$r(O,T),B);lu(O,T)}return null}function M(O,T,B,X){var ue=T!==null?T.key:null;if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return ue!==null?null:y(O,T,""+B,X);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case Q:return B.key===ue?C(O,T,B,X):null;case te:return B.key===ue?D(O,T,B,X):null;case I:return B=Fl(B),M(O,T,B,X)}if(Ne(B)||ee(B))return ue!==null?null:Y(O,T,B,X,null);if(typeof B.then=="function")return M(O,T,nu(B),X);if(B.$$typeof===ge)return M(O,T,$r(O,B),X);lu(O,B)}return null}function L(O,T,B,X,ue){if(typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint")return O=O.get(B)||null,y(T,O,""+X,ue);if(typeof X=="object"&&X!==null){switch(X.$$typeof){case Q:return O=O.get(X.key===null?B:X.key)||null,C(T,O,X,ue);case te:return O=O.get(X.key===null?B:X.key)||null,D(T,O,X,ue);case I:return X=Fl(X),L(O,T,B,X,ue)}if(Ne(X)||ee(X))return O=O.get(B)||null,Y(T,O,X,ue,null);if(typeof X.then=="function")return L(O,T,B,nu(X),ue);if(X.$$typeof===ge)return L(O,T,B,$r(T,X),ue);lu(T,X)}return null}function le(O,T,B,X){for(var ue=null,Re=null,ve=T,pe=T=0,nt=null;ve!==null&&pe<B.length;pe++){ve.index>pe?(nt=ve,ve=null):nt=ve.sibling;var Me=M(O,ve,B[pe],X);if(Me===null){ve===null&&(ve=nt);break}e&&ve&&Me.alternate===null&&t(O,ve),T=r(Me,T,pe),Re===null?ue=Me:Re.sibling=Me,Re=Me,ve=nt}if(pe===B.length)return n(O,ve),we&&Yn(O,pe),ue;if(ve===null){for(;pe<B.length;pe++)ve=Z(O,B[pe],X),ve!==null&&(T=r(ve,T,pe),Re===null?ue=ve:Re.sibling=ve,Re=ve);return we&&Yn(O,pe),ue}for(ve=l(ve);pe<B.length;pe++)nt=L(ve,O,pe,B[pe],X),nt!==null&&(e&&(Me=nt.alternate,Me!==null&&ve.delete(Me.key===null?pe:Me.key)),T=r(nt,T,pe),Re===null?ue=nt:Re.sibling=nt,Re=nt);return e&&ve.forEach(function(Rl){return t(O,Rl)}),we&&Yn(O,pe),ue}function de(O,T,B,X){if(B==null)throw Error(o(151));for(var ue=null,Re=null,ve=T,pe=T=0,nt=null,Me=B.next();ve!==null&&!Me.done;pe++,Me=B.next()){ve.index>pe?(nt=ve,ve=null):nt=ve.sibling;var Rl=M(O,ve,Me.value,X);if(Rl===null){ve===null&&(ve=nt);break}e&&ve&&Rl.alternate===null&&t(O,ve),T=r(Rl,T,pe),Re===null?ue=Rl:Re.sibling=Rl,Re=Rl,ve=nt}if(Me.done)return n(O,ve),we&&Yn(O,pe),ue;if(ve===null){for(;!Me.done;pe++,Me=B.next())Me=Z(O,Me.value,X),Me!==null&&(T=r(Me,T,pe),Re===null?ue=Me:Re.sibling=Me,Re=Me);return we&&Yn(O,pe),ue}for(ve=l(ve);!Me.done;pe++,Me=B.next())Me=L(ve,O,pe,Me.value,X),Me!==null&&(e&&(nt=Me.alternate,nt!==null&&ve.delete(nt.key===null?pe:nt.key)),T=r(Me,T,pe),Re===null?ue=Me:Re.sibling=Me,Re=Me);return e&&ve.forEach(function(Q2){return t(O,Q2)}),we&&Yn(O,pe),ue}function Ee(O,T,B,X){if(typeof B=="object"&&B!==null&&B.type===W&&B.key===null&&B.props.ref===void 0&&(B=B.props.children),typeof B=="object"&&B!==null){switch(B.$$typeof){case Q:e:{for(var ue=B.key;T!==null;){if(T.key===ue){if(ue=B.type,ue===W){if(T.tag===7){n(O,T.sibling),X=a(T,B.props.children),fl(X,B),X.return=O,O=X;break e}}else if(T.elementType===ue||typeof ue=="object"&&ue!==null&&ue.$$typeof===I&&Fl(ue)===T.type){n(O,T.sibling),X=a(T,B.props),fl(X,B),X.return=O,O=X;break e}n(O,T);break}else t(O,T);T=T.sibling}B.type===W?(X=Vl(B.props.children,O.mode,X,B.key),fl(X,B),X.return=O,O=X):(X=Zr(B.type,B.key,B.props,null,O.mode,X),fl(X,B),X.return=O,O=X)}return m(O);case te:e:{for(ue=B.key;T!==null;){if(T.key===ue)if(T.tag===4&&T.stateNode.containerInfo===B.containerInfo&&T.stateNode.implementation===B.implementation){n(O,T.sibling),X=a(T,B.children||[]),X.return=O,O=X;break e}else{n(O,T);break}else t(O,T);T=T.sibling}X=sc(B,O.mode,X),X.return=O,O=X}return m(O);case I:return B=Fl(B),Ee(O,T,B,X)}if(Ne(B))return le(O,T,B,X);if(ee(B)){if(ue=ee(B),typeof ue!="function")throw Error(o(150));return B=ue.call(B),de(O,T,B,X)}if(typeof B.then=="function")return Ee(O,T,nu(B),X);if(B.$$typeof===ge)return Ee(O,T,$r(O,B),X);lu(O,B)}return typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint"?(B=""+B,T!==null&&T.tag===6?(n(O,T.sibling),X=a(T,B),X.return=O,O=X):(n(O,T),X=cc(B,O.mode,X),X.return=O,O=X),m(O)):n(O,T)}return function(O,T,B,X){try{ki=0;var ue=Ee(O,T,B,X);return Ba=null,ue}catch(ve){if(ve===Ua||ve===eu)throw ve;var Re=At(29,ve,null,O.mode);return Re.lanes=X,Re.return=O,Re}finally{}}}var $l=hh(!0),vh=hh(!1),dl=!1;function xc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Sc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function ml(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function hl(e,t,n){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Ue&2)!==0){var a=l.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),l.pending=t,t=Xr(e),$m(e,null,n),t}return Qr(e,l,t,n),Xr(e)}function Li(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,nm(e,n)}}function Nc(e,t){var n=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var a=null,r=null;if(n=n.firstBaseUpdate,n!==null){do{var m={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};r===null?a=r=m:r=r.next=m,n=n.next}while(n!==null);r===null?a=r=t:r=r.next=t}else a=r=t;n={baseState:l.baseState,firstBaseUpdate:a,lastBaseUpdate:r,shared:l.shared,callbacks:l.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Cc=!1;function Hi(){if(Cc){var e=Da;if(e!==null)throw e}}function qi(e,t,n,l){Cc=!1;var a=e.updateQueue;dl=!1;var r=a.firstBaseUpdate,m=a.lastBaseUpdate,y=a.shared.pending;if(y!==null){a.shared.pending=null;var C=y,D=C.next;C.next=null,m===null?r=D:m.next=D,m=C;var Y=e.alternate;Y!==null&&(Y=Y.updateQueue,y=Y.lastBaseUpdate,y!==m&&(y===null?Y.firstBaseUpdate=D:y.next=D,Y.lastBaseUpdate=C))}if(r!==null){var Z=a.baseState;m=0,Y=D=C=null,y=r;do{var M=y.lane&-536870913,L=M!==y.lane;if(L?(Ae&M)===M:(l&M)===M){M!==0&&M===Il&&(Cc=!0),Y!==null&&(Y=Y.next={lane:0,tag:y.tag,payload:y.payload,callback:null,next:null});e:{var le=e,de=y;M=t;var Ee=n;switch(de.tag){case 1:if(le=de.payload,typeof le=="function"){Z=le.call(Ee,Z,M);break e}Z=le;break e;case 3:le.flags=le.flags&-65537|128;case 0:if(le=de.payload,M=typeof le=="function"?le.call(Ee,Z,M):le,M==null)break e;Z=E({},Z,M);break e;case 2:dl=!0}}M=y.callback,M!==null&&(e.flags|=64,L&&(e.flags|=8192),L=a.callbacks,L===null?a.callbacks=[M]:L.push(M))}else L={lane:M,tag:y.tag,payload:y.payload,callback:y.callback,next:null},Y===null?(D=Y=L,C=Z):Y=Y.next=L,m|=M;if(y=y.next,y===null){if(y=a.shared.pending,y===null)break;L=y,y=L.next,L.next=null,a.lastBaseUpdate=L,a.shared.pending=null}}while(!0);Y===null&&(C=Z),a.baseState=C,a.firstBaseUpdate=D,a.lastBaseUpdate=Y,r===null&&(a.shared.lanes=0),Sl|=m,e.lanes=m,e.memoizedState=Z}}function gh(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function yh(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)gh(n[e],t)}var vl=yn(null),au=yn(0);function ph(e,t){e=Jn,Ye(au,e),Ye(vl,t),Jn=e|t.baseLanes}function Ec(){Ye(au,Jn),Ye(vl,vl.current)}function wc(){Jn=au.current,ht(vl),ht(au)}var yt=yn(null),Ct=null;function gl(e){var t=e.alternate;Ye(pt,pt.current&1),Ye(yt,e),Ct===null&&(t===null||vl.current!==null||t.memoizedState!==null)&&(Ct=e)}function Tc(e){Ye(pt,pt.current),Ye(yt,e),Ct===null&&(Ct=e)}function bh(e){e.tag===22?(Ye(pt,pt.current),Ye(yt,e),Ct===null&&(Ct=e)):yl()}function yl(){Ye(pt,pt.current),Ye(yt,yt.current)}function Gt(e){ht(yt),Ct===e&&(Ct=null),ht(pt)}var pt=yn(0);function Gi(e,t){Ye(yt,yt.current),Ye(pt,t)}function jc(e){ht(pt),ht(yt),Ct===e&&(Ct=null)}function iu(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Js(n)||Fs(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!=="independent"){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Xn=0,Ce=null,qe=null,et=null,ru=!1,ka=!1,Wl=!1,uu=0,Yi=0,La=null,fx=0;function Je(){throw Error(o(321))}function _c(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!qt(e[n],t[n]))return!1;return!0}function Ac(e,t,n,l,a,r){return Xn=r,Ce=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,fe.H=e===null||e.memoizedState===null?nv:lv,Wl=!1,r=n(l,a),Wl=!1,ka&&(r=Sh(t,n,l,a)),xh(e),r}function xh(e){fe.H=hu;var t=qe!==null&&qe.next!==null;if(Xn=0,et=qe=Ce=null,ru=!1,Yi=0,La=null,t)throw Error(o(300));e===null||tt||(e=e.dependencies,e!==null&&Pr(e)&&(tt=!0))}function Sh(e,t,n,l){Ce=e;var a=0;do{if(ka&&(La=null),Yi=0,ka=!1,25<=a)throw Error(o(301));if(a+=1,et=qe=null,e.updateQueue!=null){var r=e.updateQueue;r.lastEffect=null,r.events=null,r.stores=null,r.memoCache!=null&&(r.memoCache.index=0)}fe.H=bx,r=t(n,l)}while(ka);return r}function dx(){var e=fe.H,t=e.useState()[0];return t=typeof t.then=="function"?Vi(t):t,e=e.useState()[0],(qe!==null?qe.memoizedState:null)!==e&&(Ce.flags|=1024),t}function Rc(){var e=uu!==0;return uu=0,e}function Mc(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Oc(e){if(ru){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}ru=!1}Xn=0,et=qe=Ce=null,ka=!1,Yi=uu=0,La=null}function wt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return et===null?Ce.memoizedState=et=e:et=et.next=e,et}function Pe(){if(qe===null){var e=Ce.alternate;e=e!==null?e.memoizedState:null}else e=qe.next;var t=et===null?Ce.memoizedState:et.next;if(t!==null)et=t,qe=e;else{if(e===null)throw Ce.alternate===null?Error(o(467)):Error(o(310));qe=e,e={memoizedState:qe.memoizedState,baseState:qe.baseState,baseQueue:qe.baseQueue,queue:qe.queue,next:null},et===null?Ce.memoizedState=et=e:et=et.next=e}return et}function ou(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Vi(e){var t=Yi;return Yi+=1,La===null&&(La=[]),e=fh(La,e,t),t=Ce,(et===null?t.memoizedState:et.next)===null&&(t=t.alternate,fe.H=t===null||t.memoizedState===null?nv:lv),e}function cu(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Vi(e);if(e.$$typeof===U)return;if(e.$$typeof===ge)return gt(e)}throw Error(o(438,String(e)))}function zc(e){var t=null,n=Ce.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var l=Ce.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(a){return a.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=ou(),Ce.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),l=0;l<e;l++)n[l]=me;return t.index++,n}function Zn(e,t){return typeof t=="function"?t(e):t}function su(e){var t=Pe();return Dc(t,qe,e)}function Dc(e,t,n){var l=e.queue;if(l===null)throw Error(o(311));l.lastRenderedReducer=n;var a=e.baseQueue,r=l.pending;if(r!==null){if(a!==null){var m=a.next;a.next=r.next,r.next=m}t.baseQueue=a=r,l.pending=null}if(r=e.baseState,a===null)e.memoizedState=r;else{t=a.next;var y=m=null,C=null,D=t,Y=!1;do{var Z=D.lane&-536870913;if(Z!==D.lane?(Ae&Z)===Z:(Xn&Z)===Z){var M=D.revertLane;if(M===0)C!==null&&(C=C.next={lane:0,revertLane:0,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null}),Z===Il&&(Y=!0);else if((Xn&M)===M){D=D.next,M===Il&&(Y=!0);continue}else Z={lane:0,revertLane:D.revertLane,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},C===null?(y=C=Z,m=r):C=C.next=Z,Ce.lanes|=M,Sl|=M;Z=D.action,Wl&&n(r,Z),r=D.hasEagerState?D.eagerState:n(r,Z)}else M={lane:Z,revertLane:D.revertLane,gesture:D.gesture,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},C===null?(y=C=M,m=r):C=C.next=M,Ce.lanes|=Z,Sl|=Z;D=D.next}while(D!==null&&D!==t);if(C===null?m=r:C.next=y,!qt(r,e.memoizedState)&&(tt=!0,Y&&(n=Da,n!==null)))throw n;e.memoizedState=r,e.baseState=m,e.baseQueue=C,l.lastRenderedState=r}return a===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function Uc(e){var t=Pe(),n=t.queue;if(n===null)throw Error(o(311));n.lastRenderedReducer=e;var l=n.dispatch,a=n.pending,r=t.memoizedState;if(a!==null){n.pending=null;var m=a=a.next;do r=e(r,m.action),m=m.next;while(m!==a);qt(r,t.memoizedState)||(tt=!0),t.memoizedState=r,t.baseQueue===null&&(t.baseState=r),n.lastRenderedState=r}return[r,l]}function Nh(e,t,n){var l=Ce,a=Pe(),r=we;if(r){if(n===void 0)throw Error(o(407));n=n()}else n=t();var m=!qt((qe||a).memoizedState,n);if(m&&(a.memoizedState=n,tt=!0),a=a.queue,Lc(wh.bind(null,l,a,e),[e]),e=a.getSnapshot!==t||m||et!==null&&(et.memoizedState.tag&1)!==0,Ha(e?9:8,{destroy:void 0},Eh.bind(null,l,a,n,t),null),e){if(l.flags|=2048,Ge===null)throw Error(o(349));r||(Xn&127)!==0||Ch(l,t,n)}return n}function Ch(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ce.updateQueue,t===null?(t=ou(),Ce.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Eh(e,t,n,l){t.value=n,t.getSnapshot=l,Th(t)&&jh(e)}function wh(e,t,n){return n(function(){Th(t)&&jh(e)})}function Th(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!qt(e,n)}catch{return!0}}function jh(e){var t=Yl(e,2);t!==null&&zt(t,e,2)}function Bc(e){var t=wt();if(typeof e=="function"){var n=e;if(e=n(),Wl){al(!0);try{n()}finally{al(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zn,lastRenderedState:e},t}function _h(e,t,n,l){return e.baseState=n,Dc(e,qe,typeof l=="function"?l:Zn)}function mx(e,t,n,l,a){if(mu(e))throw Error(o(485));if(e=t.action,e!==null){var r={payload:a,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(m){r.listeners.push(m)}};fe.T!==null?n(!0):r.isTransition=!1,l(r),n=t.pending,n===null?(r.next=t.pending=r,Ah(t,r)):(r.next=n.next,t.pending=n.next=r)}}function Ah(e,t){var n=t.action,l=t.payload,a=e.state;if(t.isTransition){var r=fe.T,m={};m.types=r!==null?r.types:null,fe.T=m;try{var y=n(a,l),C=fe.S;C!==null&&C(m,y),Rh(e,t,y)}catch(D){kc(e,t,D)}finally{r!==null&&m.types!==null&&(r.types=m.types),fe.T=r}}else try{r=n(a,l),Rh(e,t,r)}catch(D){kc(e,t,D)}}function Rh(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){Mh(e,t,l)},function(l){return kc(e,t,l)}):Mh(e,t,n)}function Mh(e,t,n){t.status="fulfilled",t.value=n,Oh(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Ah(e,n)))}function kc(e,t,n){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=n,Oh(t),t=t.next;while(t!==l)}e.action=null}function Oh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function zh(e,t){return t}function Dh(e,t){if(we){var n=Ge.formState;if(n!==null){e:{var l=Ce;if(we){if(Ve){t:{for(var a=Ve,r=en;a.nodeType!==8;){if(!r){a=null;break t}if(a=nn(a.nextSibling),a===null){a=null;break t}}r=a.data,a=r==="F!"||r==="F"?a:null}if(a){Ve=nn(a.nextSibling),l=a.data==="F!";break e}}cl(l)}l=!1}l&&(t=n[0])}}return n=wt(),n.memoizedState=n.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:zh,lastRenderedState:t},n.queue=l,n=Wh.bind(null,Ce,l),l.dispatch=n,l=Bc(!1),r=Vc.bind(null,Ce,!1,l.queue),l=wt(),a={state:t,dispatch:null,action:e,pending:null},l.queue=a,n=mx.bind(null,Ce,a,r,n),a.dispatch=n,l.memoizedState=e,[t,n,!1]}function Uh(e){var t=Pe();return Bh(t,qe,e)}function Bh(e,t,n){if(t=Dc(e,t,zh)[0],e=su(Zn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=Vi(t)}catch(m){throw m===Ua?eu:m}else l=t;t=Pe();var a=t.queue,r=a.dispatch;return n!==t.memoizedState&&(Ce.flags|=2048,Ha(9,{destroy:void 0},hx.bind(null,a,n),null)),[l,r,e]}function hx(e,t){e.action=t}function kh(e){var t=Pe(),n=qe;if(n!==null)return Bh(t,n,e);Pe(),t=t.memoizedState,n=Pe();var l=n.queue.dispatch;return n.memoizedState=e,[t,l,!1]}function Ha(e,t,n,l){return e={tag:e,create:n,deps:l,inst:t,next:null},t=Ce.updateQueue,t===null&&(t=ou(),Ce.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(l=n.next,n.next=e,e.next=l,t.lastEffect=e),e}function Lh(){return Pe().memoizedState}function fu(e,t,n,l){var a=wt();Ce.flags|=e,a.memoizedState=Ha(1|t,{destroy:void 0},n,l===void 0?null:l)}function du(e,t,n,l){var a=Pe();l=l===void 0?null:l;var r=a.memoizedState.inst;qe!==null&&l!==null&&_c(l,qe.memoizedState.deps)?a.memoizedState=Ha(t,r,n,l):(Ce.flags|=e,a.memoizedState=Ha(1|t,r,n,l))}function Hh(e,t){fu(8390656,8,e,t)}function Lc(e,t){du(2048,8,e,t)}function vx(e){Ce.flags|=4;var t=Ce.updateQueue;if(t===null)t=ou(),Ce.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function qh(e){var t=Pe().memoizedState;return vx({ref:t,nextImpl:e}),function(){if((Ue&2)!==0)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function Gh(e,t){return du(4,2,e,t)}function Yh(e,t){return du(4,4,e,t)}function Vh(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Qh(e,t,n){n=n!=null?n.concat([e]):null,du(4,4,Vh.bind(null,t,e),n)}function Hc(){}function Xh(e,t){var n=Pe();t=t===void 0?null:t;var l=n.memoizedState;return t!==null&&_c(t,l[1])?l[0]:(n.memoizedState=[e,t],e)}function Zh(e,t){var n=Pe();t=t===void 0?null:t;var l=n.memoizedState;if(t!==null&&_c(t,l[1]))return l[0];if(l=e(),Wl){al(!0);try{e()}finally{al(!1)}}return n.memoizedState=[l,t],l}function qc(e,t,n){return n===void 0||(Xn&1073741824)!==0&&(Ae&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=ng(),Ce.lanes|=e,Sl|=e,n)}function Kh(e,t,n,l){return qt(n,t)?n:vl.current!==null?(e=qc(e,n,l),qt(e,t)||(tt=!0),e):(Xn&106)===0||(Xn&1073741824)!==0&&(Ae&261930)===0?(tt=!0,e.memoizedState=n):(e=ng(),Ce.lanes|=e,Sl|=e,t)}function Ih(e,t,n,l,a){var r=ye.p;ye.p=r!==0&&8>r?r:8;var m=fe.T,y={};y.types=m!==null?m.types:null,fe.T=y,Vc(e,!1,t,n);try{var C=a(),D=fe.S;if(D!==null&&D(y,C),C!==null&&typeof C=="object"&&typeof C.then=="function"){var Y=sx(C,l);Qi(e,t,Y,Xt(e))}else Qi(e,t,l,Xt(e))}catch(Z){Qi(e,t,{then:function(){},status:"rejected",reason:Z},Xt())}finally{ye.p=r,m!==null&&y.types!==null&&(m.types=y.types),fe.T=m}}function gx(){}function Gc(e,t,n,l){if(e.tag!==5)throw Error(o(476));var a=Jh(e).queue;Ih(e,a,t,Ut,n===null?gx:function(){return Fh(e),n(l)})}function Jh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Ut,baseState:Ut,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zn,lastRenderedState:Ut},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zn,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Fh(e){var t=Jh(e);t.next===null&&(t=e.alternate.memoizedState),Qi(e,t.next.queue,{},Xt())}function Yc(){return gt(ai)}function Ph(){return Pe().memoizedState}function $h(){return Pe().memoizedState}function yx(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Xt();e=ml(n);var l=hl(t,e,n);l!==null&&(zt(l,t,n),Li(l,t,n)),t={cache:gc()},e.payload=t;return}t=t.return}}function px(e,t,n){var l=Xt();n={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},mu(e)?ev(t,n):(n=uc(e,t,n,l),n!==null&&(zt(n,e,l),tv(n,t,l)))}function Wh(e,t,n){var l=Xt();Qi(e,t,n,l)}function Qi(e,t,n,l){var a={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(mu(e))ev(t,a);else{var r=e.alternate;if(e.lanes===0&&(r===null||r.lanes===0)&&(r=t.lastRenderedReducer,r!==null))try{var m=t.lastRenderedState,y=r(m,n);if(a.hasEagerState=!0,a.eagerState=y,qt(y,m))return Qr(e,t,a,0),Ge===null&&Vr(),!1}catch{}finally{}if(n=uc(e,t,a,l),n!==null)return zt(n,e,l),tv(n,t,l),!0}return!1}function Vc(e,t,n,l){if(l={lane:2,revertLane:zs(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},mu(e)){if(t)throw Error(o(479))}else t=uc(e,n,l,2),t!==null&&zt(t,e,2)}function mu(e){var t=e.alternate;return e===Ce||t!==null&&t===Ce}function ev(e,t){ka=ru=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function tv(e,t,n){if((n&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,nm(e,n)}}var hu={readContext:gt,use:cu,useCallback:Je,useContext:Je,useEffect:Je,useImperativeHandle:Je,useLayoutEffect:Je,useInsertionEffect:Je,useMemo:Je,useReducer:Je,useRef:Je,useState:Je,useDebugValue:Je,useDeferredValue:Je,useTransition:Je,useSyncExternalStore:Je,useId:Je,useHostTransitionStatus:Je,useFormState:Je,useActionState:Je,useOptimistic:Je,useMemoCache:Je,useCacheRefresh:Je,useEffectEvent:Je},nv={readContext:gt,use:cu,useCallback:function(e,t){return wt().memoizedState=[e,t===void 0?null:t],e},useContext:gt,useEffect:Hh,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,fu(4194308,4,Vh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return fu(4194308,4,e,t)},useInsertionEffect:function(e,t){fu(4,2,e,t)},useMemo:function(e,t){var n=wt();t=t===void 0?null:t;var l=e();if(Wl){al(!0);try{e()}finally{al(!1)}}return n.memoizedState=[l,t],l},useReducer:function(e,t,n){var l=wt();if(n!==void 0){var a=n(t);if(Wl){al(!0);try{n(t)}finally{al(!1)}}}else a=t;return l.memoizedState=l.baseState=a,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:a},l.queue=e,e=e.dispatch=px.bind(null,Ce,e),[l.memoizedState,e]},useRef:function(e){var t=wt();return e={current:e},t.memoizedState=e},useState:function(e){e=Bc(e);var t=e.queue,n=Wh.bind(null,Ce,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Hc,useDeferredValue:function(e,t){var n=wt();return qc(n,e,t)},useTransition:function(){var e=Bc(!1);return e=Ih.bind(null,Ce,e.queue,!0,!1),wt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var l=Ce,a=wt();if(we){if(n===void 0)throw Error(o(407));n=n()}else{if(n=t(),Ge===null)throw Error(o(349));(Ae&127)!==0||Ch(l,t,n)}a.memoizedState=n;var r={value:n,getSnapshot:t};return a.queue=r,Hh(wh.bind(null,l,r,e),[e]),l.flags|=2048,Ha(9,{destroy:void 0},Eh.bind(null,l,r,n,t),null),n},useId:function(){var e=wt(),t=Ge.identifierPrefix;if(we){var n=Sn,l=xn;n=(l&~(1<<32-Lt(l)-1)).toString(32)+n,t="_"+t+"R_"+n,n=uu++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=fx++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Yc,useFormState:Dh,useActionState:Dh,useOptimistic:function(e){var t=wt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Vc.bind(null,Ce,!0,n),n.dispatch=t,[e,t]},useMemoCache:zc,useCacheRefresh:function(){return wt().memoizedState=yx.bind(null,Ce)},useEffectEvent:function(e){var t=wt(),n={impl:e};return t.memoizedState=n,function(){if((Ue&2)!==0)throw Error(o(440));return n.impl.apply(void 0,arguments)}}},lv={readContext:gt,use:cu,useCallback:Xh,useContext:gt,useEffect:Lc,useImperativeHandle:Qh,useInsertionEffect:Gh,useLayoutEffect:Yh,useMemo:Zh,useReducer:su,useRef:Lh,useState:function(){return su(Zn)},useDebugValue:Hc,useDeferredValue:function(e,t){var n=Pe();return Kh(n,qe.memoizedState,e,t)},useTransition:function(){var e=su(Zn)[0],t=Pe().memoizedState;return[typeof e=="boolean"?e:Vi(e),t]},useSyncExternalStore:Nh,useId:Ph,useHostTransitionStatus:Yc,useFormState:Uh,useActionState:Uh,useOptimistic:function(e,t){var n=Pe();return _h(n,qe,e,t)},useMemoCache:zc,useCacheRefresh:$h,useEffectEvent:qh},bx={readContext:gt,use:cu,useCallback:Xh,useContext:gt,useEffect:Lc,useImperativeHandle:Qh,useInsertionEffect:Gh,useLayoutEffect:Yh,useMemo:Zh,useReducer:Uc,useRef:Lh,useState:function(){return Uc(Zn)},useDebugValue:Hc,useDeferredValue:function(e,t){var n=Pe();return qe===null?qc(n,e,t):Kh(n,qe.memoizedState,e,t)},useTransition:function(){var e=Uc(Zn)[0],t=Pe().memoizedState;return[typeof e=="boolean"?e:Vi(e),t]},useSyncExternalStore:Nh,useId:Ph,useHostTransitionStatus:Yc,useFormState:kh,useActionState:kh,useOptimistic:function(e,t){var n=Pe();return qe!==null?_h(n,qe,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:zc,useCacheRefresh:$h,useEffectEvent:qh};function Qc(e,t,n,l){t=e.memoizedState,n=n(l,t),n=n==null?t:E({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Xc={enqueueSetState:function(e,t,n){e=e._reactInternals;var l=Xt(),a=ml(l);a.payload=t,n!=null&&(a.callback=n),t=hl(e,a,l),t!==null&&(zt(t,e,l),Li(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var l=Xt(),a=ml(l);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=hl(e,a,l),t!==null&&(zt(t,e,l),Li(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Xt(),l=ml(n);l.tag=2,t!=null&&(l.callback=t),t=hl(e,l,n),t!==null&&(zt(t,e,n),Li(t,e,n))}};function av(e,t,n,l,a,r,m){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,r,m):t.prototype&&t.prototype.isPureReactComponent?!Ri(n,l)||!Ri(a,r):!0}function iv(e,t,n,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,l),t.state!==e&&Xc.enqueueReplaceState(t,t.state,null)}function ea(e,t){var n=t;if("ref"in t){n={};for(var l in t)l!=="ref"&&(n[l]=t[l])}if(e=e.defaultProps){n===t&&(n=E({},n));for(var a in e)n[a]===void 0&&(n[a]=e[a])}return n}function rv(e){Yr(e)}function uv(e){console.error(e)}function ov(e){Yr(e)}function vu(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function cv(e,t,n){try{var l=e.onCaughtError;l(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(a){setTimeout(function(){throw a})}}function Zc(e,t,n){return n=ml(n),n.tag=3,n.payload={element:null},n.callback=function(){vu(e,t)},n}function sv(e){return e=ml(e),e.tag=3,e}function fv(e,t,n,l){var a=n.type.getDerivedStateFromError;if(typeof a=="function"){var r=l.value;e.payload=function(){return a(r)},e.callback=function(){cv(t,n,l)}}var m=n.stateNode;m!==null&&typeof m.componentDidCatch=="function"&&(e.callback=function(){cv(t,n,l),typeof a!="function"&&(Nl===null?Nl=new Set([this]):Nl.add(this));var y=l.stack;this.componentDidCatch(l.value,{componentStack:y!==null?y:""})})}function xx(e,t,n,l,a){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=n.alternate,t!==null&&Zl(t,n,a,!0),n=yt.current,n!==null){switch(n.tag){case 31:case 13:case 19:return Ct===null?Bu():n.alternate===null&&Fe===0&&(Fe=3),n.flags&=-257,n.flags|=65536,n.lanes=a,l===tu?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([l]):t.add(l),Rs(e,l,a)),!1;case 22:return n.flags|=65536,l===tu?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([l]):n.add(l)),Rs(e,l,a)),!1}throw Error(o(435,n.tag))}return Rs(e,l,a),Bu(),!1}if(we)return t=yt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=a,l!==dc&&(e=Error(o(422),{cause:l}),zi(Pt(e,n)))):(l!==dc&&(t=Error(o(423),{cause:l}),zi(Pt(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,l=Pt(l,n),a=Zc(e.stateNode,l,a),Nc(e,a),Fe!==4&&(Fe=2)),!1;var r=Error(o(520),{cause:l});if(r=Pt(r,n),$i===null?$i=[r]:$i.push(r),Fe!==4&&(Fe=2),t===null)return!0;l=Pt(l,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=Zc(n.stateNode,l,e),Nc(n,e),!1;case 1:if(t=n.type,r=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||r!==null&&typeof r.componentDidCatch=="function"&&(Nl===null||!Nl.has(r))))return n.flags|=65536,a&=-a,n.lanes|=a,a=sv(a),fv(a,e,n,l),Nc(n,a),!1;break;case 22:if(n.memoizedState!==null)return n.flags|=65536,!1}n=n.return}while(n!==null);return!1}var Kc=Error(o(461)),tt=!1;function at(e,t,n,l){t.child=e===null?vh(t,null,n,l):$l(t,e.child,n,l)}function dv(e,t,n,l,a){n=n.render;var r=t.ref;if("ref"in l){var m={};for(var y in l)y!=="ref"&&(m[y]=l[y])}else m=l;return Kl(t),l=Ac(e,t,n,m,r,a),y=Rc(),e!==null&&!tt?(Mc(e,t,a),Kn(e,t,a)):(we&&y&&Ir(t),t.flags|=1,at(e,t,l,a),t.child)}function mv(e,t,n,l,a){if(e===null){var r=n.type;return typeof r=="function"&&!oc(r)&&r.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=r,hv(e,t,r,l,a)):(e=Zr(n.type,null,l,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(r=e.child,!ts(e,a)){var m=r.memoizedProps;if(n=n.compare,n=n!==null?n:Ri,n(m,l)&&e.ref===t.ref)return Kn(e,t,a)}return t.flags|=1,e=Gn(r,l),e.ref=t.ref,e.return=t,t.child=e}function hv(e,t,n,l,a){if(e!==null){var r=e.memoizedProps;if(Ri(r,l)&&e.ref===t.ref)if(tt=!1,t.pendingProps=l=r,ts(e,a))(e.flags&131072)!==0&&(tt=!0);else return t.lanes=e.lanes,Kn(e,t,a)}return Ic(e,t,n,l,a)}function vv(e,t,n,l){var a=l.children,r=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(r=r!==null?r.baseLanes|n:n,e!==null){for(l=t.child=e.child,a=0;l!==null;)a=a|l.lanes|l.childLanes,l=l.sibling;l=a&~r}else l=0,t.child=null;return gv(e,t,r,n,l)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Wr(t,r!==null?r.cachePool:null),r!==null?ph(t,r):Ec(),bh(t);else return l=t.lanes=536870912,gv(e,t,r!==null?r.baseLanes|n:n,n,l)}else r!==null?(Wr(t,r.cachePool),ph(t,r),yl(),t.memoizedState=null):(e!==null&&Wr(t,null),Ec(),yl());return at(e,t,a,n),t.child}function Xi(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function gv(e,t,n,l,a){var r=pc();return r=r===null?null:{parent:We._currentValue,pool:r},t.memoizedState={baseLanes:n,cachePool:r},e!==null&&Wr(t,null),Ec(),bh(t),e!==null&&Zl(e,t,l,!0),t.childLanes=a,null}function gu(e,t){return t=yu({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function yv(e,t,n){return $l(t,e.child,null,n),e=gu(t,t.pendingProps),e.flags|=2,Gt(t),t.memoizedState=null,e}function Sx(e,t,n){var l=t.pendingProps,a=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(we){if(l.mode==="hidden")return e=gu(t,l),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},Xi(null,e);if(Tc(t),(e=Ve)?(e=Vg(e,en),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ul!==null?{id:xn,overflow:Sn}:null,retryLane:536870912,hydrationErrors:null},n=eh(e),n.return=t,t.child=n,ct=t,Ve=null)):e=null,e===null)throw cl(t);return t.lanes=536870912,null}return gu(t,l)}var r=e.memoizedState;if(r!==null){var m=r.dehydrated;if(Tc(t),a)if(t.flags&256)t.flags&=-257,t=yv(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(o(558));else if(tt||Zl(e,t,n,!1),a=(n&e.childLanes)!==0,tt||a){if(vl.current===null){if(l=Ge,l!==null&&(m=lm(l,n),m!==0&&m!==r.retryLane))throw r.retryLane=m,Yl(e,m),zt(l,e,m),Kc;Bu()}t=yv(e,t,n)}else e=r.treeContext,Ve=nn(m.nextSibling),ct=t,we=!0,ol=null,en=!1,e!==null&&lh(t,e),t=gu(t,l),t.flags|=134221824;return t}return e=Gn(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function qa(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(o(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Ic(e,t,n,l,a){return Kl(t),n=Ac(e,t,n,l,void 0,a),l=Rc(),e!==null&&!tt?(Mc(e,t,a),Kn(e,t,a)):(we&&l&&Ir(t),t.flags|=1,at(e,t,n,a),t.child)}function pv(e,t,n,l,a,r){return Kl(t),t.updateQueue=null,n=Sh(t,l,n,a),xh(e),l=Rc(),e!==null&&!tt?(Mc(e,t,r),Kn(e,t,r)):(we&&l&&Ir(t),t.flags|=1,at(e,t,n,r),t.child)}function bv(e,t,n,l,a){if(Kl(t),t.stateNode===null){var r=Ra,m=n.contextType;typeof m=="object"&&m!==null&&(r=gt(m)),r=new n(l,r),t.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=Xc,t.stateNode=r,r._reactInternals=t,r=t.stateNode,r.props=l,r.state=t.memoizedState,r.refs={},xc(t),m=n.contextType,r.context=typeof m=="object"&&m!==null?gt(m):Ra,r.state=t.memoizedState,m=n.getDerivedStateFromProps,typeof m=="function"&&(Qc(t,n,m,l),r.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof r.getSnapshotBeforeUpdate=="function"||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(m=r.state,typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount(),m!==r.state&&Xc.enqueueReplaceState(r,r.state,null),qi(t,l,r,a),Hi(),r.state=t.memoizedState),typeof r.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){r=t.stateNode;var y=t.memoizedProps,C=ea(n,y);r.props=C;var D=r.context,Y=n.contextType;m=Ra,typeof Y=="object"&&Y!==null&&(m=gt(Y));var Z=n.getDerivedStateFromProps;Y=typeof Z=="function"||typeof r.getSnapshotBeforeUpdate=="function",y=t.pendingProps!==y,Y||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(y||D!==m)&&iv(t,r,l,m),dl=!1;var M=t.memoizedState;r.state=M,qi(t,l,r,a),Hi(),D=t.memoizedState,y||M!==D||dl?(typeof Z=="function"&&(Qc(t,n,Z,l),D=t.memoizedState),(C=dl||av(t,n,C,l,M,D,m))?(Y||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount()),typeof r.componentDidMount=="function"&&(t.flags|=4194308)):(typeof r.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=D),r.props=l,r.state=D,r.context=m,l=C):(typeof r.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{r=t.stateNode,Sc(e,t),m=t.memoizedProps,Y=ea(n,m),r.props=Y,Z=t.pendingProps,M=r.context,D=n.contextType,C=Ra,typeof D=="object"&&D!==null&&(C=gt(D)),y=n.getDerivedStateFromProps,(D=typeof y=="function"||typeof r.getSnapshotBeforeUpdate=="function")||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(m!==Z||M!==C)&&iv(t,r,l,C),dl=!1,M=t.memoizedState,r.state=M,qi(t,l,r,a),Hi();var L=t.memoizedState;m!==Z||M!==L||dl||e!==null&&e.dependencies!==null&&Pr(e.dependencies)?(typeof y=="function"&&(Qc(t,n,y,l),L=t.memoizedState),(Y=dl||av(t,n,Y,l,M,L,C)||e!==null&&e.dependencies!==null&&Pr(e.dependencies))?(D||typeof r.UNSAFE_componentWillUpdate!="function"&&typeof r.componentWillUpdate!="function"||(typeof r.componentWillUpdate=="function"&&r.componentWillUpdate(l,L,C),typeof r.UNSAFE_componentWillUpdate=="function"&&r.UNSAFE_componentWillUpdate(l,L,C)),typeof r.componentDidUpdate=="function"&&(t.flags|=4),typeof r.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof r.componentDidUpdate!="function"||m===e.memoizedProps&&M===e.memoizedState||(t.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&M===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=L),r.props=l,r.state=L,r.context=C,l=Y):(typeof r.componentDidUpdate!="function"||m===e.memoizedProps&&M===e.memoizedState||(t.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&M===e.memoizedState||(t.flags|=1024),l=!1)}return r=l,qa(e,t),l=(t.flags&128)!==0,r||l?(r=t.stateNode,n=l&&typeof n.getDerivedStateFromError!="function"?null:r.render(),t.flags|=1,e!==null&&l?(t.child=$l(t,e.child,null,a),t.child=$l(t,null,n,a)):at(e,t,n,a),t.memoizedState=r.state,e=t.child):e=Kn(e,t,a),e}function xv(e,t,n,l){return Ql(),t.flags|=256,at(e,t,n,l),t.child}var Jc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Fc(e){return{baseLanes:e,cachePool:ch()}}function Pc(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Qt),e}function Sv(e,t,n){var l=t.pendingProps,a=!1,r=(t.flags&128)!==0,m;if((m=r)||(m=e!==null&&e.memoizedState===null?!1:(pt.current&2)!==0),m&&(a=!0,t.flags&=-129),m=(t.flags&32)!==0,t.flags&=-33,e===null){if(we){if(a?gl(t):yl(),(e=Ve)?(e=Vg(e,en),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ul!==null?{id:xn,overflow:Sn}:null,retryLane:536870912,hydrationErrors:null},n=eh(e),n.return=t,t.child=n,ct=t,Ve=null)):e=null,e===null)throw cl(t);return Fs(e)?t.lanes=32:t.lanes=536870912,null}return r=l.children,l=l.fallback,a?(yl(),a=t.mode,r=yu({mode:"hidden",children:r},a),l=Vl(l,a,n,null),r.return=t,l.return=t,r.sibling=l,t.child=r,l=t.child,l.memoizedState=Fc(n),l.childLanes=Pc(e,m,n),t.memoizedState=Jc,Xi(null,l)):(gl(t),$c(t,r))}var y=e.memoizedState;if(y!==null){var C=y.dehydrated;if(C!==null)return Nx(e,t,r,m,l,C,y,n)}return a?(yl(),a=l.fallback,r=t.mode,y=e.child,C=y.sibling,l=Gn(y,{mode:"hidden",children:l.children}),l.subtreeFlags=y.subtreeFlags&1206910976,C!==null?a=Gn(C,a):(a=Vl(a,r,n,null),a.flags|=2),a.return=t,l.return=t,l.sibling=a,t.child=l,Xi(null,l),l=t.child,a=e.child.memoizedState,a===null?a=Fc(n):(r=a.cachePool,r!==null?(y=We._currentValue,r=r.parent!==y?{parent:y,pool:y}:r):r=ch(),a={baseLanes:a.baseLanes|n,cachePool:r}),l.memoizedState=a,l.childLanes=Pc(e,m,n),t.memoizedState=Jc,Xi(e.child,l)):(gl(t),n=e.child,e=n.sibling,n=Gn(n,{mode:"visible",children:l.children}),n.return=t,n.sibling=null,e!==null&&(m=t.deletions,m===null?(t.deletions=[e],t.flags|=16):m.push(e)),t.child=n,t.memoizedState=null,n)}function $c(e,t){return t=yu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function yu(e,t){return e=At(22,e,null,t),e.lanes=0,e}function pu(e,t,n){return $l(t,e.child,null,n),e=$c(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Nx(e,t,n,l,a,r,m,y){if(n)return t.flags&256?(gl(t),t.flags&=-257,pu(e,t,y)):t.memoizedState!==null?(yl(),t.child=e.child,t.flags|=128,null):(yl(),r=a.fallback,m=t.mode,a=yu({mode:"visible",children:a.children},m),r=Vl(r,m,y,null),r.flags|=2,a.return=t,r.return=t,a.sibling=r,t.child=a,$l(t,e.child,null,y),a=t.child,a.memoizedState=Fc(y),a.childLanes=Pc(e,l,y),t.memoizedState=Jc,Xi(null,a));if(gl(t),Fs(r)){if(l=r.nextSibling&&r.nextSibling.dataset,l)var C=l.dgst;return l=C,l!==""&&(a=Error(o(419)),a.stack="",a.digest=l,zi({value:a,source:null,stack:null})),pu(e,t,y)}if(tt||Zl(e,t,y,!1),l=(y&e.childLanes)!==0,tt||l){if(vl.current!==null)return pu(e,t,y);if(l=Ge,l!==null&&(a=lm(l,y),a!==0&&a!==m.retryLane))throw m.retryLane=a,Yl(e,a),zt(l,e,a),Kc;return Js(r)||Bu(),pu(e,t,y)}return Js(r)?(t.flags|=192,t.child=e.child,null):(e=m.treeContext,Ve=nn(r.nextSibling),ct=t,we=!0,ol=null,en=!1,e!==null&&lh(t,e),t=$c(t,a.children),t.flags|=134221824,t)}function Nv(e,t,n){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),Fr(e.return,t,n)}function Cv(e){for(var t=null;e!==null;){var n=e.alternate;n!==null&&iu(n)===null&&(t=e),e=e.sibling}return t}function bu(e,t,n,l,a,r){var m=e.memoizedState;m===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:a,treeForkCount:r}:(m.isBackwards=t,m.rendering=null,m.renderingStartTime=0,m.last=l,m.tail=n,m.tailMode=a,m.treeForkCount=r)}function Wc(e){var t=e.child;for(e.child=null;t!==null;){var n=t.sibling;t.sibling=e.child,e.child=t,t=n}}function es(e,t,n){var l=t.pendingProps,a=l.revealOrder,r=l.tail;l=l.children;var m=pt.current;if(t.flags&128)return Gi(t,m),null;var y=(m&2)!==0;if(y?(m=m&1|2,t.flags|=128):m&=1,Gi(t,m),a==="backwards"&&e!==null?(Wc(e),at(e,t,l,n),Wc(e)):at(e,t,l,n),l=we?Oi:0,!y&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Nv(e,n,t);else if(e.tag===19)Nv(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(a){case"backwards":n=Cv(t.child),n===null?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null,Wc(t)),bu(t,!0,a,null,r,l);break;case"unstable_legacy-backwards":for(n=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&iu(e)===null){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}bu(t,!0,n,null,r,l);break;case"together":bu(t,!1,null,null,void 0,l);break;case"independent":t.memoizedState=null;break;default:n=Cv(t.child),n===null?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),bu(t,!1,a,n,r,l)}return t.child}function Ev(e,t,n){var l=t.pendingProps;return sl(t,t.type,l.value),at(e,t,l.children,n),t.child}function Kn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Sl|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Zl(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,n=Gn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Gn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function ts(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Pr(e)))}function Cx(e,t,n){switch(t.tag){case 3:Er(t,t.stateNode.containerInfo),sl(t,We,e.memoizedState.cache),Ql();break;case 27:case 5:_o(t);break;case 4:Er(t,t.stateNode.containerInfo);break;case 10:sl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Tc(t),null;break;case 13:var l=t.memoizedState;if(l!==null){if(l.dehydrated!==null)return gl(t),t.flags|=128,null;l=Zl(e,t,n,!1);var a=t.child.childLanes;return l||(n&a)!==0?Sv(e,t,n):(gl(t),e=Kn(e,t,n),e!==null?e.sibling:null)}gl(t);break;case 19:if(t.flags&128)return es(e,t,n);if(a=(e.flags&128)!==0,l=(n&t.childLanes)!==0,l||(Zl(e,t,n,!1),l=(n&t.childLanes)!==0),a){if(l)return es(e,t,n);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),Gi(t,pt.current),l)break;return null;case 22:return t.lanes=0,vv(e,t,n,t.pendingProps);case 24:sl(t,We,e.memoizedState.cache)}return Kn(e,t,n)}function wv(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)tt=!0;else{if(!ts(e,n)&&(t.flags&128)===0)return tt=!1,Cx(e,t,n);tt=(e.flags&131072)!==0}else tt=!1,we&&(t.flags&1048576)!==0&&nh(t,Oi,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=Fl(t.elementType),t.type=e,typeof e=="function")oc(e)?(l=ea(e,l),t.tag=1,t=bv(null,t,e,l,n)):(t.tag=0,t=Ic(null,t,e,l,n));else{if(e!=null){var a=e.$$typeof;if(a===F){t.tag=11,t=dv(null,t,e,l,n);break e}else if(a===xe){t.tag=14,t=mv(null,t,e,l,n);break e}else if(a===ge){t.tag=10,t.type=e,t=Ev(null,t,n);break e}}throw t=ie(e)||e,Error(o(306,t,""))}}return t;case 0:return Ic(e,t,t.type,t.pendingProps,n);case 1:return l=t.type,a=ea(l,t.pendingProps),bv(e,t,l,a,n);case 3:e:{if(Er(t,t.stateNode.containerInfo),e===null)throw Error(o(387));l=t.pendingProps;var r=t.memoizedState;a=r.element,Sc(e,t),qi(t,l,null,n);var m=t.memoizedState;if(l=m.cache,sl(t,We,l),l!==r.cache&&vc(t,[We],n,!0),Hi(),l=m.element,r.isDehydrated)if(r={element:l,isDehydrated:!1,cache:m.cache},t.updateQueue.baseState=r,t.memoizedState=r,t.flags&256){t=xv(e,t,l,n);break e}else if(l!==a){a=Pt(Error(o(424)),t),zi(a),t=xv(e,t,l,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Ve=nn(e.firstChild),ct=t,we=!0,ol=null,en=!0,n=vh(t,null,l,n),t.child=n;n;)n.flags=n.flags&-3|134221824,n=n.sibling}else{if(Ql(),l===a){t=Kn(e,t,n);break e}at(e,t,l,n)}t=t.child}return t;case 26:return qa(e,t),e===null?(n=Fg(t.type,null,t.pendingProps,null))?t.memoizedState=n:we||(t.stateNode=Ag(t.type,t.pendingProps,nl.current,t)):t.memoizedState=Fg(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return _o(t),e===null&&we&&(l=t.stateNode=Zg(t.type,t.pendingProps,nl.current),ct=t,en=!0,a=Ve,wl(t.type)?(Ps=a,Ve=nn(l.firstChild)):Ve=a),at(e,t,t.pendingProps.children,n),qa(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&we&&((a=l=Ve)&&(l=y2(l,t.type,t.pendingProps,en),l!==null?(t.stateNode=l,ct=t,Ve=nn(l.firstChild),en=!1,a=!0):a=!1),a||cl(t)),_o(t),a=t.type,r=t.pendingProps,m=e!==null?e.memoizedProps:null,l=r.children,Ys(a,r)?l=null:m!==null&&Ys(a,m)&&(t.flags|=32),t.memoizedState!==null&&(a=Ac(e,t,dx,null,null,n),ai._currentValue=a),qa(e,t),at(e,t,l,n),t.child;case 6:return e===null&&we&&((e=n=Ve)&&(n=p2(n,t.pendingProps,en),n!==null?(t.stateNode=n,ct=t,Ve=null,e=!0):e=!1),e||cl(t)),null;case 13:return Sv(e,t,n);case 4:return Er(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=$l(t,null,l,n):at(e,t,l,n),t.child;case 11:return dv(e,t,t.type,t.pendingProps,n);case 7:return l=t.pendingProps,qa(e,t),at(e,t,l,n),t.child;case 8:return at(e,t,t.pendingProps.children,n),t.child;case 12:return at(e,t,t.pendingProps.children,n),t.child;case 10:return Ev(e,t,n);case 9:return a=t.type._context,l=t.pendingProps.children,Kl(t),a=gt(a),l=l(a),t.flags|=1,at(e,t,l,n),t.child;case 14:return mv(e,t,t.type,t.pendingProps,n);case 15:return hv(e,t,t.type,t.pendingProps,n);case 19:return es(e,t,n);case 31:return Sx(e,t,n);case 22:return vv(e,t,n,t.pendingProps);case 24:return Kl(t),l=gt(We),e===null?(a=pc(),a===null&&(a=Ge,r=gc(),a.pooledCache=r,r.refCount++,r!==null&&(a.pooledCacheLanes|=n),a=r),t.memoizedState={parent:l,cache:a},xc(t),sl(t,We,a)):((e.lanes&n)!==0&&(Sc(e,t),qi(t,null,null,n),Hi()),a=e.memoizedState,r=t.memoizedState,a.parent!==l?(a={parent:l,cache:l},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),sl(t,We,l)):(l=r.cache,sl(t,We,l),l!==a.cache&&vc(t,[We],n,!0))),at(e,t,t.pendingProps.children,n),t.child;case 30:return t.stateNode===null&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),l=t.pendingProps,l.name!=null&&l.name!=="auto"?t.flags|=e===null?18882560:18874368:we&&Ir(t),e!==null&&e.memoizedProps.name!==l.name?t.flags|=4194816:qa(e,t),at(e,t,l.children,n),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function In(e){e.flags|=4}function ns(e,t,n,l,a){var r;if((r=(e.mode&32)!==0)&&(r=n===null?e0(t,l):e0(t,l)&&(l.src!==n.src||l.srcSet!==n.srcSet)),r){if(e.flags|=16777216,(a&335544128)===a)if(e.stateNode.complete)e.flags|=8192;else if(rg())e.flags|=8192;else throw Pl=tu,bc}else e.flags&=-16777217}function Tv(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!t0(t))if(rg())e.flags|=8192;else throw Pl=tu,bc}function xu(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?em():536870912,e.lanes|=t,Xa|=t)}function Zi(e,t){if(!we)switch(e.tailMode){case"visible":break;case"collapsed":for(var n=e.tail,l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null;break;default:for(t=e.tail,n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null}}function Qe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,l=0;if(t)for(var a=e.child;a!==null;)n|=a.lanes|a.childLanes,l|=a.subtreeFlags&1206910976,l|=a.flags&1206910976,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)n|=a.lanes|a.childLanes,l|=a.subtreeFlags,l|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=l,e.childLanes=n,t}function Ex(e,t,n){var l=t.pendingProps;switch(fc(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Qe(t),null;case 1:return Qe(t),null;case 3:return n=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Qn(We),ya(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(za(t)?In(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,mc())),Qe(t),null;case 26:var a=t.type,r=t.memoizedState;return e===null?(In(t),r!==null?(Qe(t),Tv(t,r)):(Qe(t),ns(t,a,null,l,n))):r?r!==e.memoizedState?(In(t),Qe(t),Tv(t,r)):(Qe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&In(t),Qe(t),ns(t,a,e,l,n)),null;case 27:if(wr(t),n=nl.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&In(t);else{if(!l){if(t.stateNode===null)throw Error(o(166));return Qe(t),t.subtreeFlags&=-33554433,null}e=pn.current,za(t)?ah(t):(e=Zg(a,l,n),t.stateNode=e,In(t))}return Qe(t),t.subtreeFlags&=-33554433,null;case 5:if(wr(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&In(t);else{if(!l){if(t.stateNode===null)throw Error(o(166));return Qe(t),t.subtreeFlags&=-33554433,null}if(r=pn.current,za(t))ah(t);else{var m=lr(nl.current);switch(r){case 1:r=m.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:r=m.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":r=m.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":r=m.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":r=m.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild);break;case"select":r=typeof l.is=="string"?m.createElement("select",{is:l.is}):m.createElement("select"),l.multiple?r.multiple=!0:l.size&&(r.size=l.size);break;default:r=typeof l.is=="string"?m.createElement(a,{is:l.is}):m.createElement(a)}}r[vt]=t,r[_t]=l;e:for(m=t.child;m!==null;){if(m.tag===5||m.tag===6)r.appendChild(m.stateNode);else if(m.tag!==4&&m.tag!==27&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===t)break e;for(;m.sibling===null;){if(m.return===null||m.return===t)break e;m=m.return}m.sibling.return=m.return,m=m.sibling}t.stateNode=r;e:switch(xt(r,a,l),a){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&In(t)}}return Qe(t),t.subtreeFlags&=-33554433,ns(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&In(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(o(166));if(e=nl.current,za(t)){if(e=t.stateNode,n=t.memoizedProps,l=null,a=ct,a!==null)switch(a.tag){case 27:case 5:l=a.memoizedProps}e[vt]=t,e=!!(e.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||wg(e.nodeValue,n)),e||cl(t,!0)}else e=lr(e).createTextNode(l),e[vt]=t,t.stateNode=e}return Qe(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(l=za(t),n!==null){if(e===null){if(!l)throw Error(o(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(557));e[vt]=t}else Ql(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Qe(t),e=!1}else n=mc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Gt(t),t):(Gt(t),null);if((t.flags&128)!==0)throw Error(o(558))}return Qe(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=za(t),l!==null&&l.dehydrated!==null){if(e===null){if(!a)throw Error(o(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(o(317));a[vt]=t}else Ql(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Qe(t),a=!1}else a=mc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(Gt(t),t):(Gt(t),null)}return Gt(t),(t.flags&128)!==0?(t.lanes=n,t):(n=l!==null,e=e!==null&&e.memoizedState!==null,n&&(l=t.child,a=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(a=l.alternate.memoizedState.cachePool.pool),r=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(r=l.memoizedState.cachePool.pool),r!==a&&(l.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),xu(t,t.updateQueue),Qe(t),null);case 4:return ya(),e===null&&ks(t.stateNode.containerInfo),t.flags|=67108864,Qe(t),null;case 10:return Qn(t.type),Qe(t),null;case 19:if(jc(t),l=t.memoizedState,l===null)return Qe(t),null;if(a=(t.flags&128)!==0,r=l.rendering,r===null)if(a)Zi(l,!1);else{if(Fe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(r=iu(e),r!==null){for(t.flags|=128,Zi(l,!1),e=r.updateQueue,t.updateQueue=e,xu(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Wm(n,e),n=n.sibling;return Gi(t,pt.current&1|2),we&&Yn(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&Bt()>Ou&&(t.flags|=128,a=!0,Zi(l,!1),t.lanes=4194304)}else{if(!a)if(e=iu(r),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,xu(t,e),Zi(l,!0),l.tail===null&&l.tailMode!=="collapsed"&&l.tailMode!=="visible"&&!r.alternate&&!we)return Qe(t),null}else 2*Bt()-l.renderingStartTime>Ou&&n!==536870912&&(t.flags|=128,a=!0,Zi(l,!1),t.lanes=4194304);l.isBackwards?(r.sibling=t.child,t.child=r):(e=l.last,e!==null?e.sibling=r:t.child=r,l.last=r)}if(l.tail!==null){e=l.tail;e:{for(n=e;n!==null;){if(n.alternate!==null){n=!1;break e}n=n.sibling}n=!0}return l.rendering=e,l.tail=e.sibling,l.renderingStartTime=Bt(),e.sibling=null,r=pt.current,r=a?r&1|2:r&1,l.tailMode==="visible"||l.tailMode==="collapsed"||!n||we?Gi(t,r):(n=r,Ye(yt,t),Ye(pt,n),Ct===null&&(Ct=t)),we&&Yn(t,l.treeForkCount),e}return Qe(t),null;case 22:case 23:return Gt(t),wc(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(n&536870912)!==0&&(t.flags&128)===0&&(Qe(t),t.subtreeFlags&6&&(t.flags|=8192)):Qe(t),n=t.updateQueue,n!==null&&xu(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==n&&(t.flags|=2048),e!==null&&ht(Jl),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Qn(We),Qe(t),null;case 25:return null;case 30:return t.flags|=33554432,Qe(t),null}throw Error(o(156,t.tag))}function wx(e,t){switch(fc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Qn(We),ya(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return wr(t),null;case 31:if(t.memoizedState!==null){if(Gt(t),t.alternate===null)throw Error(o(340));Ql()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Gt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));Ql()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return jc(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return ya(),null;case 10:return Qn(t.type),null;case 22:case 23:return Gt(t),wc(),e!==null&&ht(Jl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Qn(We),null;case 25:return null;default:return null}}function jv(e,t){switch(fc(t),t.tag){case 3:Qn(We),ya();break;case 26:case 27:case 5:wr(t);break;case 4:ya();break;case 31:t.memoizedState!==null&&Gt(t);break;case 13:Gt(t);break;case 19:jc(t);break;case 10:Qn(t.type);break;case 22:case 23:Gt(t),wc(),e!==null&&ht(Jl);break;case 24:Qn(We)}}function Ki(e,t){try{var n=t.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var a=l.next;n=a;do{if((n.tag&e)===e){l=void 0;var r=n.create,m=n.inst;l=r(),m.destroy=l}n=n.next}while(n!==a)}}catch(y){Le(t,t.return,y)}}function pl(e,t,n){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var r=a.next;l=r;do{if((l.tag&e)===e){var m=l.inst,y=m.destroy;if(y!==void 0){m.destroy=void 0,a=t;var C=n,D=y;try{D()}catch(Y){Le(a,C,Y)}}}l=l.next}while(l!==r)}}catch(Y){Le(t,t.return,Y)}}function _v(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{yh(t,n)}catch(l){Le(e,e.return,l)}}}function Av(e,t,n){n.props=ea(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(l){Le(e,t,l)}}function Nn(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:var a=e.stateNode,r=Hn(e.memoizedProps,a);(a.ref===null||a.ref.name!==r)&&(a.ref=Bg(r)),l=a.ref;break;case 7:if(e.stateNode===null){var m=new Zt(e);p(e.child,!1,v2,m,void 0,void 0),e.stateNode=m}l=e.stateNode;break;default:l=e.stateNode}typeof n=="function"?e.refCleanup=n(l):n.current=l}}catch(y){Le(e,t,y)}}function bt(e,t){var n=e.ref,l=e.refCleanup;if(n!==null)if(typeof l=="function")try{l()}catch(a){Le(e,t,a)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(a){Le(e,t,a)}else n.current=null}function Su(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var n=0;n<t.length;n++)Yg(e.stateNode,t[n])}function Rv(e){for(var t=e.return;t!==null&&(as(t)&&Yg(e.stateNode,t.stateNode),!ls(t));)t=t.return}function Ii(e){for(var t=e.return;t!==null&&(as(t)&&g2(e.stateNode,t.stateNode),!ls(t));)t=t.return}function ls(e){return e.tag===5||e.tag===3||e.tag===27}function as(e){return e&&e.tag===7&&e.stateNode!==null}function is(e){var t=e.type,n=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&l.focus();break e;case"img":n.src?l.src=n.src:n.srcSet&&(l.srcset=n.srcSet)}}catch(a){Le(e,e.return,a)}}function rs(e,t,n){try{var l=e.stateNode;Px(l,e.type,n,t),l[_t]=t}catch(a){Le(e,e.return,a)}}function Mv(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&wl(e.type)||e.tag===4}function us(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Mv(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&wl(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function os(e,t,n,l){var a=e.tag;if(a===5||a===6)a=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(a,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(a),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=bn)),Su(e,l),ze=!0;else if(a!==4&&(a===27&&(Su(e,l),l=null,wl(e.type)&&(n=e.stateNode,t=null)),e=e.child,e!==null))for(os(e,t,n,l),e=e.sibling;e!==null;)os(e,t,n,l),e=e.sibling}function Nu(e,t,n,l){var a=e.tag;if(a===5||a===6)a=e.stateNode,t?n.insertBefore(a,t):n.appendChild(a),Su(e,l),ze=!0;else if(a!==4&&(a===27&&(Su(e,l),l=null,wl(e.type)&&(n=e.stateNode)),e=e.child,e!==null))for(Nu(e,t,n,l),e=e.sibling;e!==null;)Nu(e,t,n,l),e=e.sibling}function Ov(e){var t=e.stateNode,n=e.memoizedProps;try{for(var l=e.type,a=t.attributes;a.length;)t.removeAttributeNode(a[0]);xt(t,l,n),t[vt]=e,t[_t]=n}catch(r){Le(e,e.return,r)}}var Cu=!1,Yt=null;function zv(e){(e.tag===30||(e.subtreeFlags&33554432)!==0)&&(Cu=!0)}var Cn=null;function Dv(){var e=Cn;return Cn=null,e}var Rt=0;function Ga(e,t,n,l,a){return Rt=0,Uv(e.child,t,n,l,a)}function Uv(e,t,n,l,a){for(var r=!1;e!==null;){if(e.tag===5){var m=e.stateNode;if(l!==null){var y=Xs(m);l.push(y),y.view&&(r=!0)}else r||Xs(m).view&&(r=!0);Cu=!0,Dg(m,Rt===0?t:t+"_"+Rt,n),Rt++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&a||Uv(e.child,t,n,l,a)&&(r=!0));e=e.sibling}return r}function En(e,t){for(;e!==null;)e.tag===5?Ug(e.stateNode,e.memoizedProps):(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&t||En(e.child,t)),e=e.sibling}function Eu(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(Eu(e),e.tag===30&&(e.flags&18874368)!==0&&e.stateNode.paired)){var t=e.memoizedProps;if(t.name==null||t.name==="auto")throw Error(o(544));var n=t.name;t=qn(t.default,t.share),t!=="none"&&(Ga(e,n,t,null,!1)||En(e.child,!1))}e=e.sibling}}function cs(e,t){if(e.tag===30){var n=e.stateNode,l=e.memoizedProps,a=Hn(l,n),r=qn(l.default,n.paired?l.share:l.enter);r!=="none"?Ga(e,a,r,null,!1)?(Eu(e),n.paired||t||Ja(e,l.onEnter)):En(e.child,!1):Eu(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)cs(e,t),e=e.sibling;else Eu(e)}function ss(e){if(Yt!==null&&Yt.size!==0){var t=Yt;if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var n=e.memoizedProps,l=n.name;if(l!=null&&l!=="auto"){var a=t.get(l);if(a!==void 0){var r=qn(n.default,n.share);if(r!=="none"&&(Ga(e,l,r,null,!1)?(r=e.stateNode,a.paired=r,r.paired=a,Ja(e,n.onShare)):En(e.child,!1)),t.delete(l),t.size===0)break}}}ss(e)}e=e.sibling}}}function fs(e){if(e.tag===30){var t=e.memoizedProps,n=Hn(t,e.stateNode),l=Yt!==null?Yt.get(n):void 0,a=qn(t.default,l!==void 0?t.share:t.exit);a!=="none"&&(Ga(e,n,a,null,!1)?l!==void 0?(a=e.stateNode,l.paired=a,a.paired=l,Yt.delete(n),Ja(e,t.onShare)):Ja(e,t.onExit):En(e.child,!1)),Yt!==null&&ss(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)fs(e),e=e.sibling;else Yt!==null&&ss(e)}function Bv(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,n=Hn(t,e.stateNode);t=qn(t.default,t.update),e.flags&=-5,t!=="none"&&Ga(e,n,t,e.memoizedState=[],!1)}else(e.subtreeFlags&33554432)!==0&&Bv(e);e=e.sibling}}function ds(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var t=e.stateNode;t.paired!==null&&(t.paired=null,En(e.child,!1))}ds(e)}e=e.sibling}}function wu(e){if(e.tag===30)e.stateNode.paired=null,En(e.child,!1),ds(e);else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)wu(e),e=e.sibling;else ds(e)}function kv(e){for(e=e.child;e!==null;)e.tag===30?En(e.child,!1):(e.subtreeFlags&33554432)!==0&&kv(e),e=e.sibling}function ms(e,t,n,l,a,r,m){for(var y=!1;t!==null;){if(t.tag===5){var C=t.stateNode;if(r!==null&&Rt<r.length){var D=r[Rt],Y=Xs(C);(D.view||Y.view)&&(y=!0);var Z;if(Z=(e.flags&4)===0)if(Y.clip)Z=!0;else{Z=D.rect;var M=Y.rect;Z=Z.y!==M.y||Z.x!==M.x||Z.height!==M.height||Z.width!==M.width}Z&&(e.flags|=4),Y.abs?Y=!D.abs:(D=D.rect,Y=Y.rect,Y=D.height!==Y.height||D.width!==Y.width),Y&&(e.flags|=32)}else e.flags|=32;(e.flags&4)!==0&&Dg(C,Rt===0?n:n+"_"+Rt,a),y&&(e.flags&4)!==0||(Cn===null&&(Cn=[]),Cn.push(C,Rt===0?l:l+"_"+Rt,t.memoizedProps)),Rt++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&m?e.flags|=t.flags&32:ms(e,t.child,n,l,a,r,m)&&(y=!0));t=t.sibling}return y}function Lv(e,t){for(e=e.child;e!==null;){if(e.tag===30){var n=e.memoizedProps,l=e.stateNode,a=Hn(n,l),r=qn(n.default,n.update),m;m=e.memoizedState,e.memoizedState=null,l=e;var y=e.child;Rt=0,a=ms(l,y,a,a,r,m,!1),(e.flags&4)!==0&&a&&Ja(e,n.onUpdate)}else(e.subtreeFlags&33554432)!==0&&Lv(e);e=e.sibling}}var st=!1,Be=!1,wn=!1,hs=!1,Hv=typeof WeakSet=="function"?WeakSet:Set,ft=null,Tn=!1,Ji=!1,Tu=!1,vs=!1;function Tx(e,t,n){if(e=e.containerInfo,qs=ii,e=Vm(e),tc(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var r=a.anchorOffset,m=a.focusNode;a=a.focusOffset;try{l.nodeType,m.nodeType}catch{l=null;break e}var y=0,C=-1,D=-1,Y=0,Z=0,M=e,L=null;t:for(;;){for(var le;M!==l||r!==0&&M.nodeType!==3||(C=y+r),M!==m||a!==0&&M.nodeType!==3||(D=y+a),M.nodeType===3&&(y+=M.nodeValue.length),(le=M.firstChild)!==null;)L=M,M=le;for(;;){if(M===e)break t;if(L===l&&++Y===r&&(C=y),L===m&&++Z===a&&(D=y),(le=M.nextSibling)!==null)break;M=L,L=M.parentNode}M=le}l=C===-1||D===-1?null:{start:C,end:D}}else l=null}l=l||{start:0,end:0}}else l=null;for(Gs={focusedElem:e,selectionRange:l},ii=!1,n=(n&335544064)===n,ft=t,t=n?9270:1024;ft!==null;){if(e=ft,n&&(l=e.deletions,l!==null))for(r=0;r<l.length;r++)n&&fs(l[r]);if(e.alternate===null&&(e.flags&2)!==0)n&&zv(e),ju(n);else{if(e.tag===22){if(l=e.alternate,e.memoizedState!==null){l!==null&&l.memoizedState===null&&n&&fs(l),ju(n);continue}else if(l!==null&&l.memoizedState!==null){n&&zv(e),ju(n);continue}}l=e.child,(e.subtreeFlags&t)!==0&&l!==null?(l.return=e,ft=l):(n&&Bv(e),ju(n))}}Yt=null}function ju(e){for(;ft!==null;){var t=ft,n=e,l=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 15:break;case 1:if((a&1024)!==0&&l!==null){n=void 0,a=l.memoizedProps,l=l.memoizedState;var r=t.stateNode;try{var m=ea(t.type,a);n=r.getSnapshotBeforeUpdate(m,l),r.__reactInternalSnapshotBeforeUpdate=n}catch(y){Le(t,t.return,y)}}break;case 3:if((a&1024)!==0){if(l=t.stateNode.containerInfo,n=l.nodeType,n===9)Is(l);else if(n===1)switch(l.nodeName){case"HEAD":case"HTML":case"BODY":Is(l);break;default:l.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:n&&l!==null&&(n=Hn(l.memoizedProps,l.stateNode),a=t.memoizedProps,a=qn(a.default,a.update),a!=="none"&&Ga(l,n,a,l.memoizedState=[],!0));break;default:if((a&1024)!==0)throw Error(o(163))}if(l=t.sibling,l!==null){l.return=t.return,ft=l;break}ft=t.return}}function qv(e,t,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:jn(e,n),l&4&&Ki(5,n);break;case 1:if(jn(e,n),l&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(m){Le(n,n.return,m)}else{var a=ea(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(a,t,e.__reactInternalSnapshotBeforeUpdate)}catch(m){Le(n,n.return,m)}}l&64&&_v(n),l&512&&Nn(n,n.return);break;case 3:if(jn(e,n),l&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{yh(e,t)}catch(m){Le(n,n.return,m)}}break;case 27:t===null&&l&4&&Ov(n);case 26:case 5:jn(e,n),t===null&&l&4&&is(n),l&512&&Nn(n,n.return);break;case 12:jn(e,n);break;case 31:jn(e,n),l&4&&Qv(e,n);break;case 13:jn(e,n),l&4&&Xv(e,n),l&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Lx.bind(null,n),b2(e,n))));break;case 22:if(l=n.memoizedState!==null||st,!l){var r=t!==null&&t.memoizedState!==null||Be;t=st,a=Be,st=l,(Be=r)&&!a?(l=2,(n.subtreeFlags&8772)!==0&&(l|=1),hn(e,n,l)):jn(e,n),st=t,Be=a}break;case 30:jn(e,n),l&512&&Nn(n,n.return);break;case 7:l&512&&Nn(n,n.return);default:jn(e,n)}}function gs(e,t){for(e=e.child;e!==null;)Gv(e,t),e=e.sibling}function Gv(e,t){switch(e.tag){case 5:case 26:try{var n=e.stateNode;if(t){var l=n.style;typeof l.setProperty=="function"?l.setProperty("display","none","important"):l.display="none"}else{var a=e.stateNode,r=e.memoizedProps.style,m=r!=null&&r.hasOwnProperty("display")?r.display:null;a.style.display=m==null||typeof m=="boolean"?"":(""+m).trim()}}catch(C){Le(e,e.return,C)}ys(e,t);break;case 6:try{e.stateNode.nodeValue=t?"":e.memoizedProps,ze=!0}catch(C){Le(e,e.return,C)}break;case 18:try{var y=e.stateNode;t?zg(y,!0):zg(e.stateNode,!1)}catch(C){Le(e,e.return,C)}break;case 22:case 23:e.memoizedState===null&&gs(e,t);break;default:gs(e,t)}}function ys(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){e:{var n=e,l=t;switch(n.tag){case 4:Gv(n,l);break e;case 22:n.memoizedState===null&&ys(n,l);break e;default:ys(n,l)}}e=e.sibling}}function Yv(e){var t=e.alternate;t!==null&&(e.alternate=null,Yv(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Or(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Xe=null,Mt=!1;function dn(e,t,n){for(n=n.child;n!==null;)Vv(e,t,n),n=n.sibling}function Vv(e,t,n){if(kt&&typeof kt.onCommitFiberUnmount=="function")try{kt.onCommitFiberUnmount(pi,n)}catch{}switch(n.tag){case 26:Be||bt(n,t),dn(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&!Be&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Be||bt(n,t),Ii(n);var l=Xe,a=Mt;wl(n.type)&&(Xe=n.stateNode,Mt=!1),dn(e,t,n),Kg(n.stateNode,n.type,n.memoizedProps),Xe=l,Mt=a;break;case 5:Be||bt(n,t),Ii(n);case 6:if(n.tag===6&&Ii(n),l=Xe,a=Mt,Xe=null,dn(e,t,n),Xe=l,Mt=a,Xe!==null)if(Mt)try{(Xe.nodeType===9?Xe.body:Xe.nodeName==="HTML"?Xe.ownerDocument.body:Xe).removeChild(n.stateNode),ze=!0}catch(r){Le(n,t,r)}else try{Xe.removeChild(n.stateNode),ze=!0}catch(r){Le(n,t,r)}break;case 18:Xe!==null&&(Mt?(e=Xe,Og(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),ri(e)):Og(Xe,n.stateNode));break;case 4:l=Xe,a=Mt,Xe=n.stateNode.containerInfo,Mt=!0,dn(e,t,n),Xe=l,Mt=a;break;case 0:case 11:case 14:case 15:pl(2,n,t),Be||pl(4,n,t),dn(e,t,n);break;case 1:Be||(bt(n,t),l=n.stateNode,typeof l.componentWillUnmount=="function"&&Av(n,t,l)),dn(e,t,n);break;case 21:dn(e,t,n);break;case 22:Be=(l=Be)||n.memoizedState!==null,dn(e,t,n),Be=l;break;case 30:bt(n,t),dn(e,t,n);break;case 7:Be||bt(n,t),dn(e,t,n);break;default:dn(e,t,n)}}function Qv(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{ri(e)}catch(n){Le(t,t.return,n)}}}function Xv(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ri(e)}catch(n){Le(t,t.return,n)}}function jx(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Hv),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Hv),t;default:throw Error(o(435,e.tag))}}function _u(e,t){var n=jx(e);t.forEach(function(l){if(!n.has(l)){n.add(l);var a=Hx.bind(null,e,l);l.then(a,a)}})}function Tt(e,t,n){var l=t.deletions;if(l!==null)for(var a=0;a<l.length;a++){var r=l[a],m=e,y=t,C=y;e:for(;C!==null;){switch(C.tag){case 27:if(wl(C.type)){Xe=C.stateNode,Mt=!1;break e}break;case 5:Xe=C.stateNode,Mt=!1;break e;case 3:case 4:Xe=C.stateNode.containerInfo,Mt=!0;break e}C=C.return}if(Xe===null)throw Error(o(160));Vv(m,y,r),Xe=null,Mt=!1,m=r.alternate,m!==null&&(m.return=null),r.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Zv(t,e,n),t=t.sibling}var mn=null;function Zv(e,t,n){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(a&4&&(l=e.updateQueue,l=l!==null?l.events:null,l!==null))for(var r=0;r<l.length;r++){var m=l[r];m.ref.impl=m.nextImpl}Tt(t,e,n),jt(e),a&4&&(pl(3,e,e.return),Ki(3,e),pl(5,e,e.return));break;case 1:Tt(t,e,n),jt(e),a&512&&(Be||l===null||bt(l,l.return)),a&64&&st&&(e=e.updateQueue,e!==null&&(t=e.callbacks,t!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?t:n.concat(t))));break;case 26:if(r=mn,Tt(t,e,n),jt(e),a&512&&(Be||l===null||bt(l,l.return)),a&4)if(a=l!==null?l.memoizedState:null,n=e.memoizedState,l===null)if(n===null)if(e.stateNode===null)if(st)e.stateNode=Ag(e.type,e.memoizedProps,t.containerInfo,e);else{e:{t=e.type,n=e.memoizedProps,a=r.ownerDocument||r;t:switch(t){case"title":l=a.getElementsByTagName("title")[0],(!l||l[Si]||l[vt]||l.namespaceURI==="http://www.w3.org/2000/svg"||l.hasAttribute("itemprop"))&&(l=a.createElement(t),a.head.insertBefore(l,a.querySelector("head > title"))),xt(l,t,n),l[vt]=e,ot(l),t=l;break e;case"link":if(r=Wg("link","href",a).get(t+(n.href||""))){for(m=0;m<r.length;m++)if(l=r[m],l.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&l.getAttribute("rel")===(n.rel==null?null:n.rel)&&l.getAttribute("title")===(n.title==null?null:n.title)&&l.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){r.splice(m,1);break t}}l=a.createElement(t),xt(l,t,n),a.head.appendChild(l);break;case"meta":if(r=Wg("meta","content",a).get(t+(n.content||""))){for(m=0;m<r.length;m++)if(l=r[m],l.getAttribute("content")===(n.content==null?null:""+n.content)&&l.getAttribute("name")===(n.name==null?null:n.name)&&l.getAttribute("property")===(n.property==null?null:n.property)&&l.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&l.getAttribute("charset")===(n.charSet==null?null:n.charSet)){r.splice(m,1);break t}}l=a.createElement(t),xt(l,t,n),a.head.appendChild(l);break;default:throw Error(o(468,t))}l[vt]=e,ot(l),t=l}e.stateNode=t}else st||tf(r,e.type,e.stateNode);else e.stateNode=$g(r,n,e.memoizedProps);else a!==n?(a===null?(t=l.stateNode,t===null||Be||t.parentNode.removeChild(t)):a.count--,n===null?st||tf(r,e.type,e.stateNode):$g(r,n,e.memoizedProps)):n===null&&e.stateNode!==null&&rs(e,e.memoizedProps,l.memoizedProps);break;case 27:Tt(t,e,n),jt(e),a&512&&(Be||l===null||bt(l,l.return)),l!==null&&a&4&&rs(e,e.memoizedProps,l.memoizedProps);break;case 5:if(r=wn,wn=!1,Tt(t,e,n),wn=r,jt(e),a&512&&(Be||l===null||bt(l,l.return)),e.flags&32){t=e.stateNode;try{Ca(t,""),ze=!0}catch(Y){Le(e,e.return,Y)}}a&4&&e.stateNode!=null&&(t=e.memoizedProps,rs(e,t,l!==null?l.memoizedProps:t)),a&1024&&(hs=!0);break;case 6:if(Tt(t,e,n),jt(e),a&4){if(e.stateNode===null)throw Error(o(162));t=e.memoizedProps,n=e.stateNode;try{n.nodeValue=t,ze=!0}catch(Y){Le(e,e.return,Y)}}break;case 3:if(ze=!1,Vu=null,r=mn,mn=ar(t.containerInfo),Tt(t,e,n),mn=r,jt(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{ri(t.containerInfo)}catch(Y){Le(e,e.return,Y)}hs&&(hs=!1,Kv(e)),ze=!1;break;case 4:a=wn,wn=st,l=mm(),r=mn,mn=ar(e.stateNode.containerInfo),Tt(t,e,n),jt(e),mn=r,ze&&Ji&&(Tu=!0),ze=l,wn=a;break;case 12:Tt(t,e,n),jt(e);break;case 31:Tt(t,e,n),jt(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,_u(e,t)));break;case 13:Tt(t,e,n),jt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Mu=Bt()),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,_u(e,t)));break;case 22:r=e.memoizedState!==null,m=l!==null&&l.memoizedState!==null;var y=st,C=Be,D=wn;st=y||r,wn=D||r,Be=C||m,Tt(t,e,n),Be=C,wn=D,st=y,jt(e),a&8192&&(t=e.stateNode,t._visibility=r?t._visibility&-2:t._visibility|1,!r||l===null||m||st||Be||(t=m||Be,n=st,l=Be,st=r||st,Be=t,bl(e,2),st=n,Be=l),!r&&wn||gs(e,r)),a&4&&(t=e.updateQueue,t!==null&&(n=t.retryQueue,n!==null&&(t.retryQueue=null,_u(e,n))));break;case 19:Tt(t,e,n),jt(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,_u(e,t)));break;case 30:a&512&&(Be||l===null||bt(l,l.return)),a=mm(),r=Ji,m=(n&335544064)===n,y=e.memoizedProps,Ji=m&&qn(y.default,y.update)!=="none",Tt(t,e,n),jt(e),m&&l!==null&&ze&&(e.flags|=4),Ji=r,ze=a;break;case 21:break;case 7:a&512&&(Be||l===null||bt(l,l.return)),l&&l.stateNode!==null&&(l.stateNode._fragmentFiber=e);default:Tt(t,e,n),jt(e)}}function jt(e){var t=e.flags;if(t&2){try{for(var n,l=e.return;l!==null;){if(Mv(l)){n=l;break}l=l.return}l=null;for(var a=e.return;a!==null;){if(as(a)){var r=a.stateNode;l===null?l=[r]:l.push(r)}if(ls(a))break;a=a.return}var m=l;if(n==null)throw Error(o(160));switch(n.tag){case 27:var y=n.stateNode,C=us(e);Nu(e,C,y,m);break;case 5:var D=n.stateNode;n.flags&32&&(Ca(D,""),n.flags&=-33);var Y=us(e);Nu(e,Y,D,m);break;case 3:case 4:var Z=n.stateNode.containerInfo,M=us(e);os(e,M,Z,m);break;default:throw Error(o(161))}}catch(L){Le(e,e.return,L)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Kv(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Kv(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,ii=!0,t.reset(),ii=!1),e=e.sibling}}function Ya(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)Iv(t,e),t=t.sibling;else Lv(t)}function Iv(e,t){var n=e.alternate;if(n===null)cs(e,!1);else switch(e.tag){case 3:if(vs=Tn=!1,Dv(),Ya(t,e),!Tn&&!Tu){if(e=Cn,e!==null)for(var l=0;l<e.length;l+=3){n=e[l];var a=e[l+1];Ug(n,e[l+2]),n=n.ownerDocument.documentElement,n!==null&&n.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group("+a+")"})}e=t.containerInfo,e=e.nodeType===9?e.documentElement:e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===""&&(e.style.viewTransitionName="none",e.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group(root)"}),e.animate({width:[0,0],height:[0,0]},{duration:0,fill:"forwards",pseudoElement:"::view-transition"})),vs=!0}Cn=null;break;case 5:Ya(t,e);break;case 4:l=Tn,Tn=!1,Ya(t,e),Tn&&(Tu=!0),Tn=l;break;case 22:e.memoizedState===null&&(n.memoizedState!==null?cs(e,!1):Ya(t,e));break;case 30:l=Tn,a=Dv(),Tn=!1,Ya(t,e),Tn&&(e.flags|=4);var r=e.memoizedProps,m=e.stateNode;t=Hn(r,m),m=Hn(n.memoizedProps,m);var y=qn(r.default,r.update);y==="none"?t=!1:(r=n.memoizedState,n.memoizedState=null,n=e.child,Rt=0,t=ms(e,n,t,m,y,r,!0),Rt!==(r===null?0:r.length)&&(e.flags|=32)),(e.flags&4)!==0&&t?(Ja(e,e.memoizedProps.onUpdate),Cn=a):a!==null&&(a.push.apply(a,Cn),Cn=a),Tn=(e.flags&32)!==0?!0:l;break;default:Ya(t,e)}}function jn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)qv(e,t.alternate,t),t=t.sibling}function bl(e,t){for(e=e.child;e!==null;){var n=e,l=t;switch(n.tag){case 0:case 11:case 14:case 15:pl(4,n,n.return),bl(n,l);break;case 1:bt(n,n.return);var a=n.stateNode;typeof a.componentWillUnmount=="function"&&Av(n,n.return,a),bl(n,l);break;case 27:(l&2)!==0&&Kg(n.stateNode,n.type,n.memoizedProps);case 5:bt(n,n.return),n.tag!==5&&n.tag!==27||Ii(n),bl(n,l);break;case 6:Ii(n);break;case 26:bt(n,n.return),a=n.stateNode,n.memoizedState!==null||a===null||Be||a.parentNode.removeChild(a),bl(n,l);break;case 22:n.memoizedState===null&&bl(n,l);break;case 30:bt(n,n.return),bl(n,l);break;case 7:bt(n,n.return);default:bl(n,l)}e=e.sibling}}function hn(e,t,n){for(n=(t.subtreeFlags&8772)!==0?n:n&-2,t=t.child;t!==null;){var l=t.alternate,a=e,r=t,m=r.flags,y=(n&1)!==0;switch(r.tag){case 0:case 11:case 15:hn(a,r,n),Ki(4,r);break;case 1:if(hn(a,r,n),l=r,a=l.stateNode,typeof a.componentDidMount=="function")try{a.componentDidMount()}catch(Y){Le(l,l.return,Y)}if(l=r,a=l.updateQueue,a!==null){var C=l.stateNode;try{var D=a.shared.hiddenCallbacks;if(D!==null)for(a.shared.hiddenCallbacks=null,a=0;a<D.length;a++)gh(D[a],C)}catch(Y){Le(l,l.return,Y)}}y&&m&64&&_v(r),Nn(r,r.return);break;case 27:(n&2)!==0&&Ov(r);case 5:r.tag!==5&&r.tag!==27||Rv(r),hn(a,r,n),y&&l===null&&m&4&&is(r),Nn(r,r.return);break;case 6:Rv(r);break;case 26:C=r.stateNode,r.memoizedState!==null||C===null||st||tf(ar(C.ownerDocument),r.type,C),hn(a,r,n),y&&l===null&&m&4&&is(r),Nn(r,r.return);break;case 12:hn(a,r,n);break;case 31:hn(a,r,n),y&&m&4&&Qv(a,r);break;case 13:hn(a,r,n),y&&m&4&&Xv(a,r);break;case 22:r.memoizedState===null&&hn(a,r,n),Nn(r,r.return);break;case 30:hn(a,r,n),Nn(r,r.return);break;case 7:Nn(r,r.return);default:hn(a,r,n)}t=t.sibling}}function ps(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Di(n))}function bs(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Di(e))}function tn(e,t,n,l){var a=(n&335544064)===n;if(t.subtreeFlags&(a?10262:10256))for(t=t.child;t!==null;)Jv(e,t,n,l),t=t.sibling;else a&&kv(t)}function Jv(e,t,n,l){var a=(n&335544064)===n;a&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&wu(t);var r=t.flags;switch(t.tag){case 0:case 11:case 15:tn(e,t,n,l),r&2048&&Ki(9,t);break;case 1:tn(e,t,n,l);break;case 3:tn(e,t,n,l),a&&vs&&(e=e.containerInfo,e=e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,e.style.viewTransitionName==="root"&&(e.style.viewTransitionName=""),e=e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName==="none"&&(e.style.viewTransitionName="")),r&2048&&(r=null,t.alternate!==null&&(r=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==r&&(t.refCount++,r!=null&&Di(r)));break;case 12:if(r&2048){tn(e,t,n,l),r=t.stateNode;try{var m=t.memoizedProps,y=m.id,C=m.onPostCommit;typeof C=="function"&&C(y,t.alternate===null?"mount":"update",r.passiveEffectDuration,-0)}catch(D){Le(t,t.return,D)}}else tn(e,t,n,l);break;case 31:tn(e,t,n,l);break;case 13:tn(e,t,n,l);break;case 23:break;case 22:m=t.stateNode,y=t.alternate,t.memoizedState!==null?(a&&y!==null&&y.memoizedState===null&&wu(y),m._visibility&2?tn(e,t,n,l):Fi(e,t)):(a&&y!==null&&y.memoizedState!==null&&wu(t),m._visibility&2?tn(e,t,n,l):(m._visibility|=2,Va(e,t,n,l,(t.subtreeFlags&10256)!==0||!1))),r&2048&&ps(y,t);break;case 24:tn(e,t,n,l),r&2048&&bs(t.alternate,t);break;case 30:a&&(r=t.alternate,r!==null&&(En(r.child,!0),En(t.child,!0))),tn(e,t,n,l);break;default:tn(e,t,n,l)}}function Va(e,t,n,l,a){for(a=a&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var r=e,m=t,y=n,C=l,D=m.flags;switch(m.tag){case 0:case 11:case 15:Va(r,m,y,C,a),Ki(8,m);break;case 23:break;case 22:var Y=m.stateNode;m.memoizedState!==null?Y._visibility&2?Va(r,m,y,C,a):Fi(r,m):(Y._visibility|=2,Va(r,m,y,C,a)),a&&D&2048&&ps(m.alternate,m);break;case 24:Va(r,m,y,C,a),a&&D&2048&&bs(m.alternate,m);break;default:Va(r,m,y,C,a)}t=t.sibling}}function Fi(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,l=t,a=l.flags;switch(l.tag){case 22:Fi(n,l),a&2048&&ps(l.alternate,l);break;case 24:Fi(n,l),a&2048&&bs(l.alternate,l);break;default:Fi(n,l)}t=t.sibling}}var ta=8192;function na(e,t,n){if(e.subtreeFlags&ta)for(e=e.child;e!==null;)Fv(e,t,n),e=e.sibling}function Fv(e,t,n){switch(e.tag){case 26:na(e,t,n),e.flags&ta&&(e.memoizedState!==null?z2(n,mn,e.memoizedState,e.memoizedProps):(e=e.stateNode,(t&335544128)===t&&l0(n,e)));break;case 5:na(e,t,n),e.flags&ta&&(e=e.stateNode,(t&335544128)===t&&l0(n,e));break;case 3:case 4:var l=mn;mn=ar(e.stateNode.containerInfo),na(e,t,n),mn=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=ta,ta=16777216,na(e,t,n),ta=l):na(e,t,n));break;case 30:if((e.flags&ta)!==0&&(l=e.memoizedProps.name,l!=null&&l!=="auto")){var a=e.stateNode;a.paired=null,Yt===null&&(Yt=new Map),Yt.set(l,a)}na(e,t,n);break;default:na(e,t,n)}}function Pv(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Pi(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];ft=l,Wv(l,e)}Pv(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)$v(e),e=e.sibling}function $v(e){switch(e.tag){case 0:case 11:case 15:Pi(e),e.flags&2048&&pl(9,e,e.return);break;case 3:Pi(e);break;case 12:Pi(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Au(e)):Pi(e);break;default:Pi(e)}}function Au(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];ft=l,Wv(l,e)}Pv(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:pl(8,t,t.return),Au(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Au(t));break;default:Au(t)}e=e.sibling}}function Wv(e,t){for(;ft!==null;){var n=ft;switch(n.tag){case 0:case 11:case 15:pl(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var l=n.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Di(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,ft=l;else e:for(n=e;ft!==null;){l=ft;var a=l.sibling,r=l.return;if(Yv(l),l===n){ft=null;break e}if(a!==null){a.return=r,ft=a;break e}ft=r}}}var _x={getCacheForType:function(e){var t=gt(We),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return gt(We).controller.signal}},Ax=typeof WeakMap=="function"?WeakMap:Map,Ue=0,Ge=null,je=null,Ae=0,ke=0,Vt=null,xl=!1,Qa=!1,xs=!1,Jn=0,Fe=0,Sl=0,la=0,Ru=0,Qt=0,Xa=0,$i=null,Ot=null,Ss=!1,Mu=0,eg=0,Ou=1/0,zu=null,Nl=null,Ke=0,vn=null,aa=null,_n=0,Ns=0,Cs=null,tg=null,Za=null,Ka=null,Ia=null,Wi=0,Du=null;function Xt(){return(Ue&2)!==0&&Ae!==0?Ae&-Ae:fe.T!==null?zs():am()}function ng(){if(Qt===0)if((Ae&536870912)===0||we){var e=_r;_r<<=1,(_r&3932160)===0&&(_r=262144),Qt=e}else Qt=536870912;return e=yt.current,e!==null&&(e.flags|=32),Qt}function Ja(e,t){if(t!=null){var n=e.stateNode,l=n.ref;l===null&&(l=n.ref=Bg(Hn(e.memoizedProps,n))),Ka===null&&(Ka=[]),Ka.push(t.bind(null,l))}}function zt(e,t,n){(e===Ge&&(ke===2||ke===9)||e.cancelPendingCommit!==null)&&(Fa(e,0),Cl(e,Ae,Qt,!1)),xi(e,n),((Ue&2)===0||e!==Ge)&&(e===Ge&&((Ue&2)===0&&(la|=n),Fe===4&&Cl(e,Ae,Qt,!1)),An(e))}function lg(e,t,n){if((Ue&6)!==0)throw Error(o(327));var l=!n&&(t&127)===0&&(t&e.expiredLanes)===0||bi(e,t),a=l?Ox(e,t):ws(e,t,!0),r=l;do{if(a===0){Qa&&!l&&Cl(e,t,0,!1);break}else{if(n=e.current.alternate,r&&!Rx(n)){a=ws(e,t,!1),r=!1;continue}if(a===2){if(r=t,e.errorRecoveryDisabledLanes&r)var m=0;else m=e.pendingLanes&-536870913,m=m!==0?m:m&536870912?536870912:0;if(m!==0){t=m;e:{var y=e;a=$i;var C=y.current.memoizedState.isDehydrated;if(C&&(Fa(y,m).flags|=256),m=ws(y,m,!1),m!==2&&m!==6){if(xs&&!C){y.errorRecoveryDisabledLanes|=r,la|=r,a=4;break e}r=Ot,Ot=a,r!==null&&(Ot===null?Ot=r:Ot.push.apply(Ot,r))}a=m}if(r=!1,a!==2)continue}}if(a===1){Fa(e,0),Cl(e,t,0,!0);break}e:{switch(l=e,r=a,r){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t&&(t&62914560)!==t)break;case 6:Cl(l,t,Qt,!xl);break e;case 2:Ot=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(a=Mu+300-Bt(),10<a)){if(Cl(l,t,Qt,!xl),Rr(l,0,!0)!==0)break e;_n=t,l.timeoutHandle=Qs(ag.bind(null,l,n,Ot,zu,Ss,t,Qt,la,Xa,xl,r,"Throttled",-0,0),a);break e}ag(l,n,Ot,zu,Ss,t,Qt,la,Xa,xl,r,null,-0,0)}}break}while(!0);An(e)}function ag(e,t,n,l,a,r,m,y,C,D,Y,Z,M,L){e.timeoutHandle=-1;var le=t.subtreeFlags,de=(r&335544064)===r;if(Z=null,(de||le&8192||(le&16785408)===16785408)&&(Z={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:bn},Yt=null,Fv(t,r,Z),de&&(le=Z,de=e.containerInfo,de=(de.nodeType===9?de:de.ownerDocument).__reactViewTransition,de!=null&&(le.count++,le.waitingForViewTransition=!0,le=ur.bind(le),de.finished.then(le,le))),le=(r&62914560)===r?Mu-Bt():(r&4194048)===r?eg-Bt():0,le=D2(Z,le),le!==null)){_n=r,e.cancelPendingCommit=le(dg.bind(null,e,t,r,n,l,a,m,y,C,D,Y,Z,null,M,L)),Cl(e,r,m,!D);return}dg(e,t,r,n,l,a,m,y,C,D,Y,Z)}function Rx(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var l=0;l<n.length;l++){var a=n[l],r=a.getSnapshot;a=a.value;try{if(!qt(r(),a))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Cl(e,t,n,l){t=Wd(e,t),t&=~Ru,t&=~la,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var a=t;0<a;){var r=31-Lt(a),m=1<<r;l[r]=-1,a&=~m}n!==0&&tm(e,n,t)}function Uu(){return(Ue&6)===0?(er(0),!1):!0}function Es(){if(je!==null){if(ke===0)var e=je.return;else e=je,Vn=Xl=null,Oc(e),Ba=null,ki=0,e=je;for(;e!==null;)jv(e.alternate,e),e=e.return;je=null}}function Fa(e,t){var n=e.timeoutHandle;return n!==-1&&(e.timeoutHandle=-1,e2(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),_n=0,Es(),Ge=e,je=n=Gn(e.current,null),Ae=t,ke=0,Vt=null,xl=!1,Qa=bi(e,t),xs=!1,Xa=Qt=Ru=la=Sl=Fe=0,Ot=$i=null,Ss=!1,Jn=Wd(e,t),Vr(),n}function ig(e,t){Ce=null,fe.H=hu,t===Ua||t===eu?(t=dh(),ke=3):t===bc?(t=dh(),ke=4):ke=t===Kc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Vt=t,je===null&&(Fe=1,vu(e,Pt(t,e.current)))}function rg(){var e=yt.current;return e===null?!0:(Ae&4194048)===Ae?Ct===null:(Ae&62914560)===Ae||(Ae&536870912)!==0?e===Ct:!1}function ug(){var e=fe.H;return fe.H=hu,e===null?hu:e}function og(){var e=fe.A;return fe.A=_x,e}function Bu(){Fe=4,xl||(Ae&4194048)!==Ae&&yt.current!==null||(Qa=!0),(Sl&134217727)===0&&(la&134217727)===0||Ge===null||Cl(Ge,Ae,Qt,!1)}function ws(e,t,n){var l=Ue;Ue|=2;var a=ug(),r=og();(Ge!==e||Ae!==t)&&(zu=null,Fa(e,t)),t=!1;var m=Fe;e:do try{if(ke!==0&&je!==null){var y=je,C=Vt;switch(ke){case 8:Es(),m=6;break e;case 3:case 2:case 9:case 6:yt.current===null&&(t=!0);var D=ke;if(ke=0,Vt=null,Pa(e,y,C,D),n&&Qa){m=0;break e}break;default:D=ke,ke=0,Vt=null,Pa(e,y,C,D)}}Mx(),m=Fe;break}catch(Y){ig(e,Y)}while(!0);return t&&e.shellSuspendCounter++,Vn=Xl=null,Ue=l,fe.H=a,fe.A=r,je===null&&(Ge=null,Ae=0,Vr()),m}function Mx(){for(;je!==null;)cg(je)}function Ox(e,t){var n=Ue;Ue|=2;var l=ug(),a=og();Ge!==e||Ae!==t?(zu=null,Ou=Bt()+500,Fa(e,t)):Qa=bi(e,t);e:do try{if(ke!==0&&je!==null){t=je;var r=Vt;t:switch(ke){case 1:ke=0,Vt=null,Pa(e,t,r,1);break;case 2:case 9:if(sh(r)){ke=0,Vt=null,sg(t);break}t=function(){ke!==2&&ke!==9||Ge!==e||(ke=7),An(e)},r.then(t,t);break e;case 3:ke=7;break e;case 4:ke=5;break e;case 7:sh(r)?(ke=0,Vt=null,sg(t)):(ke=0,Vt=null,Pa(e,t,r,7));break;case 5:var m=null;switch(je.tag){case 26:m=je.memoizedState;case 5:case 27:var y=je;if(m?t0(m):y.stateNode.complete){ke=0,Vt=null;var C=y.sibling;if(C!==null)je=C;else{var D=y.return;D!==null?(je=D,ku(D)):je=null}break t}}ke=0,Vt=null,Pa(e,t,r,5);break;case 6:ke=0,Vt=null,Pa(e,t,r,6);break;case 8:Es(),Fe=6;break e;default:throw Error(o(462))}}zx();break}catch(Y){ig(e,Y)}while(!0);return Vn=Xl=null,fe.H=l,fe.A=a,Ue=n,je!==null?0:(Ge=null,Ae=0,Vr(),Fe)}function zx(){for(;je!==null&&!Fp();)cg(je)}function cg(e){var t=wv(e.alternate,e,Jn);e.memoizedProps=e.pendingProps,t===null?ku(e):je=t}function sg(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=pv(n,t,t.pendingProps,t.type,void 0,Ae);break;case 11:t=pv(n,t,t.pendingProps,t.type.render,t.ref,Ae);break;case 5:Oc(t);var l=t;l===ct&&(we?(Jr(l),l.tag===5&&l.stateNode!=null&&(Ve=l.stateNode)):(Jr(l),we=!0));default:jv(n,t),t=je=Wm(t,Jn),t=wv(n,t,Jn)}e.memoizedProps=e.pendingProps,t===null?ku(e):je=t}function Pa(e,t,n,l){Vn=Xl=null,Oc(t),Ba=null,ki=0;var a=t.return;try{if(xx(e,a,t,n,Ae)){Fe=1,vu(e,Pt(n,e.current)),je=null;return}}catch(r){if(a!==null)throw je=a,r;Fe=1,vu(e,Pt(n,e.current)),je=null;return}t.flags&32768?(we||l===1?e=!0:Qa||(Ae&536870912)!==0?e=!1:(xl=e=!0,(l===2||l===9||l===3||l===6)&&(l=yt.current,l!==null&&l.tag===13&&(l.flags|=16384))),fg(t,e)):ku(t)}function ku(e){var t=e;do{if((t.flags&32768)!==0){fg(t,xl);return}e=t.return;var n=Ex(t.alternate,t,Jn);if(n!==null){je=n;return}if(t=t.sibling,t!==null){je=t;return}je=t=e}while(t!==null);Fe===0&&(Fe=5)}function fg(e,t){do{var n=wx(e.alternate,e);if(n!==null){n.flags&=32767,je=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){je=e;return}je=e=n}while(e!==null);Fe=6,je=null}function dg(e,t,n,l,a,r,m,y,C,D,Y,Z){e.cancelPendingCommit=null;do Lu();while(Ke!==0);if((Ue&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));e===Ge&&(je=Ge=null,Ae=0),aa=t,vn=e,_n=n,Cs=a,tg=l,Dx(e,t,n,m,y,C,Z)}}function Dx(e,t,n,l,a,r,m){var y=t.lanes|t.childLanes;if(Ns=y,y|=rc,rb(e,n,y,l,a,r),Ka=null,(n&335544064)===n?(Ia=ox(e),l=10262):(Ia=null,l=10256),(t.subtreeFlags&l)!==0||(t.flags&l)!==0?(e.callbackNode=null,e.callbackPriority=0,qx(Tr,function(){return As(),null})):(e.callbackNode=null,e.callbackPriority=0),Cu=!1,l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=fe.T,fe.T=null,a=ye.p,ye.p=2,r=Ue,Ue|=4;try{Tx(e,t,n)}finally{Ue=r,ye.p=a,fe.T=l}}Ke=1,Cu?Za=r2(m,e.containerInfo,Ia,Ts,js,Bx,_s,As,Ux):(Ts(),js(),_s())}function Ux(e){if(Ke!==0){var t=vn.onRecoverableError;t(e,{componentStack:null})}}function Bx(){Ke===3&&(Ke=0,Iv(aa,vn),Ke=4)}function Ts(){if(Ke===1){Ke=0;var e=vn,t=aa,n=_n,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=fe.T,fe.T=null;var a=ye.p;ye.p=2;var r=Ue;Ue|=4;try{Ji=Tu=!1,Zv(t,e,n),n=Gs;var m=Vm(e.containerInfo),y=n.focusedElem,C=n.selectionRange;if(m!==y&&y&&y.ownerDocument&&Ym(y.ownerDocument.documentElement,y)){if(C!==null&&tc(y)){var D=C.start,Y=C.end;if(Y===void 0&&(Y=D),"selectionStart"in y)y.selectionStart=D,y.selectionEnd=Math.min(Y,y.value.length);else{var Z=y.ownerDocument||document,M=Z&&Z.defaultView||window;if(M.getSelection){var L=M.getSelection(),le=y.textContent.length,de=Math.min(C.start,le),Ee=C.end===void 0?de:Math.min(C.end,le);!L.extend&&de>Ee&&(m=Ee,Ee=de,de=m);var O=Gm(y,de),T=Gm(y,Ee);if(O&&T&&(L.rangeCount!==1||L.anchorNode!==O.node||L.anchorOffset!==O.offset||L.focusNode!==T.node||L.focusOffset!==T.offset)){var B=Z.createRange();B.setStart(O.node,O.offset),L.removeAllRanges(),de>Ee?(L.addRange(B),L.extend(T.node,T.offset)):(B.setEnd(T.node,T.offset),L.addRange(B))}}}}for(Z=[],L=y;L=L.parentNode;)L.nodeType===1&&Z.push({element:L,left:L.scrollLeft,top:L.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y<Z.length;y++){var X=Z[y];X.element.scrollLeft=X.left,X.element.scrollTop=X.top}}ii=!!qs,Gs=qs=null}finally{Ue=r,ye.p=a,fe.T=l}}e.current=t,Ke=2}}function js(){if(Ke===2){Ke=0;var e=vn,t=aa,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=fe.T,fe.T=null;var l=ye.p;ye.p=2;var a=Ue;Ue|=4;try{qv(e,t.alternate,t)}finally{Ue=a,ye.p=l,fe.T=n}}Ke=3}}function _s(){if(Ke===4||Ke===3){Ke=0;var e=Za;Za=null,Pp();var t=vn,n=aa,l=_n,a=tg,r=(l&335544064)===l?10262:10256;if((n.subtreeFlags&r)!==0||(n.flags&r)!==0?Ke=5:(Ke=0,aa=vn=null,mg(t,t.pendingLanes)),r=t.pendingLanes,r===0&&(Nl=null),ko(l),n=n.stateNode,kt&&typeof kt.onCommitFiberRoot=="function")try{kt.onCommitFiberRoot(pi,n,void 0,(n.current.flags&128)===128)}catch{}if(a!==null){n=fe.T,r=ye.p,ye.p=2,fe.T=null;try{for(var m=t.onRecoverableError,y=0;y<a.length;y++){var C=a[y];m(C.value,{componentStack:C.stack})}}finally{fe.T=n,ye.p=r}}if(a=Ka,m=Ia,Ia=null,a!==null&&(Ka=null,m===null&&(m=[]),e!==null))for(C=0;C<a.length;C++)n=(0,a[C])(m),n!==void 0&&e.finished.finally(n);(_n&3)!==0&&Lu(),An(t),r=t.pendingLanes,(l&261930)!==0&&(r&42)!==0?t===Du?Wi++:(Wi=0,Du=t):(Wi=0,Du=null),er(0)}}function mg(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Di(t)))}function Lu(){return Za!==null&&(Za.skipTransition(),Za=null),Ts(),js(),_s(),As()}function As(){if(Ke!==5)return!1;var e=vn,t=Ns;Ns=0;var n=ko(_n),l=fe.T,a=ye.p;try{ye.p=32>n?32:n,fe.T=null,n=Cs,Cs=null;var r=vn,m=_n;if(Ke=0,aa=vn=null,_n=0,(Ue&6)!==0)throw Error(o(331));var y=Ue;if(Ue|=4,$v(r.current),Jv(r,r.current,m,n),Ue=y,er(0,!1),kt&&typeof kt.onPostCommitFiberRoot=="function")try{kt.onPostCommitFiberRoot(pi,r)}catch{}return!0}finally{ye.p=a,fe.T=l,mg(e,t)}}function hg(e,t,n){t=Pt(n,t),t=Zc(e.stateNode,t,2),e=hl(e,t,2),e!==null&&(xi(e,2),An(e))}function Le(e,t,n){if(e.tag===3)hg(e,e,n);else for(;t!==null;){if(t.tag===3){hg(t,e,n);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Nl===null||!Nl.has(l))){e=Pt(n,e),n=sv(2),l=hl(t,n,2),l!==null&&(fv(n,l,t,e),xi(l,2),An(l));break}}t=t.return}}function Rs(e,t,n){var l=e.pingCache;if(l===null){l=e.pingCache=new Ax;var a=new Set;l.set(t,a)}else a=l.get(t),a===void 0&&(a=new Set,l.set(t,a));a.has(n)||(xs=!0,a.add(n),e=kx.bind(null,e,t,n),t.then(e,e))}function kx(e,t,n){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Ge===e&&(Ae&n)===n&&((Fe===4||Fe===3&&(Ae&62914560)===Ae&&300>Bt()-Mu)&&(Ue&2)===0?Fa(e,0):Ru|=n,Xa===Ae&&(Xa=0)),An(e)}function vg(e,t){t===0&&(t=em()),e=Yl(e,t),e!==null&&(xi(e,t),An(e))}function Lx(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),vg(e,n)}function Hx(e,t){var n=0;switch(e.tag){case 31:case 13:var l=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(o(314))}l!==null&&l.delete(t),vg(e,n)}function qx(e,t){return zo(e,t)}var $a=null,Wa=null,Ms=!1,Hu=!1,Os=!1,El=0;function An(e){e!==Wa&&e.next===null&&(Wa===null?$a=Wa=e:Wa=Wa.next=e),Hu=!0,Ms||(Ms=!0,Yx())}function er(e,t){if(!Os&&Hu){Os=!0;do for(var n=!1,l=$a;l!==null;){if(e!==0){var a=l.pendingLanes;if(a===0)var r=0;else{var m=l.suspendedLanes,y=l.pingedLanes;r=(1<<31-Lt(42|e)+1)-1,r&=a&~(m&~y),r=r&201326741?r&201326741|1:r?r|2:0}r!==0&&(n=!0,bg(l,r))}else r=Ae,r=Rr(l,l===Ge?r:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(r&3)===0||bi(l,r)||(n=!0,bg(l,r));l=l.next}while(n);Os=!1}}function Gx(){gg()}function gg(){Hu=Ms=!1;var e=0;El!==0&&Wx()&&(e=El);for(var t=Bt(),n=null,l=$a;l!==null;){var a=l.next,r=yg(l,t);r===0?(l.next=null,n===null?$a=a:n.next=a,a===null&&(Wa=n)):(n=l,(e!==0||(r&3)!==0)&&(Hu=!0)),l=a}Ke!==0&&Ke!==5||er(e),El!==0&&(El=0)}function yg(e,t){for(var n=e.suspendedLanes,l=e.pingedLanes,a=e.expirationTimes,r=e.pendingLanes&-62914561;0<r;){var m=31-Lt(r),y=1<<m,C=a[m];C===-1?((y&n)===0||(y&l)!==0)&&(a[m]=ib(y,t)):C<=t&&(e.expiredLanes|=y),r&=~y}if(t=Ge,n=Ae,n=Rr(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,n===0||e===t&&(ke===2||ke===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&Do(l),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||bi(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(l!==null&&Do(l),ko(n)){case 2:case 8:n=Pd;break;case 32:n=Tr;break;case 268435456:n=$d;break;default:n=Tr}return l=pg.bind(null,e),n=zo(n,l),e.callbackPriority=t,e.callbackNode=n,t}return l!==null&&l!==null&&Do(l),e.callbackPriority=2,e.callbackNode=null,2}function pg(e,t){if(Ke!==0&&Ke!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Lu()&&e.callbackNode!==n)return null;var l=Ae;return l=Rr(e,e===Ge?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(lg(e,l,t),yg(e,Bt()),e.callbackNode!=null&&e.callbackNode===n?pg.bind(null,e):null)}function bg(e,t){if(Lu())return null;lg(e,t,!0)}function Yx(){t2(function(){(Ue&6)!==0?zo(Fd,Gx):gg()})}function zs(){if(El===0){var e=Il;e===0&&(e=jr,jr<<=1,(jr&261888)===0&&(jr=256)),El=e}return El}function xg(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Ur(e)}function Vx(e,t,n,l,a){if(t==="submit"&&n&&n.stateNode===a){var r=xg((a[_t]||null).action),m=l.submitter;m&&(t=(t=m[_t]||null)?xg(t.formAction):m.getAttribute("formAction"),t!==null&&(r=t,m=null));var y=new Hr("action","action",null,l,a);e.push({event:y,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(El!==0){var C=new FormData(a,m);Gc(n,{pending:!0,data:C,method:a.method,action:r},null,C)}}else typeof r=="function"&&(y.preventDefault(),C=new FormData(a,m),Gc(n,{pending:!0,data:C,method:a.method,action:r},r,C))},currentTarget:a}]})}}for(var Ds=0;Ds<ic.length;Ds++){var Us=ic[Ds],Qx=Us.toLowerCase(),Xx=Us[0].toUpperCase()+Us.slice(1);fn(Qx,"on"+Xx)}fn(Zm,"onAnimationEnd"),fn(Km,"onAnimationIteration"),fn(Im,"onAnimationStart"),fn("dblclick","onDoubleClick"),fn("focusin","onFocus"),fn("focusout","onBlur"),fn(ex,"onTransitionRun"),fn(tx,"onTransitionStart"),fn(nx,"onTransitionCancel"),fn(Jm,"onTransitionEnd"),Sa("onMouseEnter",["mouseout","mouseover"]),Sa("onMouseLeave",["mouseout","mouseover"]),Sa("onPointerEnter",["pointerout","pointerover"]),Sa("onPointerLeave",["pointerout","pointerover"]),Hl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Hl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Hl("onBeforeInput",["compositionend","keypress","textInput","paste"]),Hl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Hl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Hl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var tr="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(" "),Zx=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(tr));function Sg(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var l=e[n],a=l.event;l=l.listeners;e:{var r=void 0;if(t)for(var m=l.length-1;0<=m;m--){var y=l[m],C=y.instance,D=y.currentTarget;if(y=y.listener,C!==r&&a.isPropagationStopped())break e;r=y,a.currentTarget=D;try{r(a)}catch(Y){Yr(Y)}a.currentTarget=null,r=C}else for(m=0;m<l.length;m++){if(y=l[m],C=y.instance,D=y.currentTarget,y=y.listener,C!==r&&a.isPropagationStopped())break e;r=y,a.currentTarget=D;try{r(a)}catch(Y){Yr(Y)}a.currentTarget=null,r=C}}}}function _e(e,t){var n=t[rm];n===void 0&&(n=t[rm]=new Set);var l=e+"__bubble";n.has(l)||(Ng(t,e,2,!1),n.add(l))}function Bs(e,t,n){var l=0;t&&(l|=4),Ng(n,e,l,t)}var qu="_reactListening"+Math.random().toString(36).slice(2);function ks(e){if(!e[qu]){e[qu]=!0,cm.forEach(function(n){n!=="selectionchange"&&(Zx.has(n)||Bs(n,!1,e),Bs(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[qu]||(t[qu]=!0,Bs("selectionchange",!1,t))}}function Ng(e,t,n,l){switch(f0(t)){case 2:var a=L2;break;case 8:a=H2;break;default:a=lf}n=a.bind(null,t,n,e),a=void 0,!Xo||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(a=!0),l?a!==void 0?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):a!==void 0?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function Ls(e,t,n,l,a){var r=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var m=l.tag;if(m===3||m===4){var y=l.stateNode.containerInfo;if(y===a)break;if(m===4)for(m=l.return;m!==null;){var C=m.tag;if((C===3||C===4)&&m.stateNode.containerInfo===a)return;m=m.return}for(;y!==null;){if(m=Ll(y),m===null)return;if(C=m.tag,C===5||C===6||C===26||C===27){l=r=m;continue e}y=y.parentNode}}l=l.return}Nm(function(){var D=r,Y=Vo(n),Z=[];e:{var M=Fm.get(e);if(M!==void 0){var L=Hr,le=e;switch(e){case"keypress":if(kr(n)===0)break e;case"keydown":case"keyup":L=Rb;break;case"focusin":le="focus",L=Jo;break;case"focusout":le="blur",L=Jo;break;case"beforeblur":case"afterblur":L=Jo;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":L=wm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":L=pb;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":L=Ub;break;case Zm:case Km:case Im:L=Sb;break;case Jm:L=kb;break;case"scroll":case"scrollend":L=gb;break;case"wheel":L=Hb;break;case"copy":case"cut":case"paste":L=Cb;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":L=jm;break;case"submit":L=zb;break;case"toggle":case"beforetoggle":L=Gb}var de=(t&4)!==0,Ee=!de&&(e==="scroll"||e==="scrollend"),O=de?M!==null?M+"Capture":null:M;de=[];for(var T=D,B;T!==null;){var X=T;if(B=X.stateNode,X=X.tag,X!==5&&X!==26&&X!==27||B===null||O===null||(X=Ci(T,O),X!=null&&de.push(nr(T,X,B))),Ee)break;T=T.return}0<de.length&&(M=new L(M,le,null,n,Y),Z.push({event:M,listeners:de}))}}if((t&7)===0){e:{if(L=e==="mouseover"||e==="pointerover",M=e==="mouseout"||e==="pointerout",L&&n!==Yo&&(le=n.relatedTarget||n.fromElement)&&(Ll(le)||le[pa]))break e;(M||L)&&(le=Y.window===Y?Y:(L=Y.ownerDocument)?L.defaultView||L.parentWindow:window,M?(L=n.relatedTarget||n.toElement,M=D,L=L?Ll(L):null,L!==null&&(Ee=d(L),de=L.tag,L!==Ee||de!==5&&de!==27&&de!==6)&&(L=null)):(M=null,L=D),M!==L&&(de=wm,X="onMouseLeave",O="onMouseEnter",T="mouse",(e==="pointerout"||e==="pointerover")&&(de=jm,X="onPointerLeave",O="onPointerEnter",T="pointer"),Ee=M==null?le:Ni(M),B=L==null?le:Ni(L),le=new de(X,T+"leave",M,n,Y),le.target=Ee,le.relatedTarget=B,X=null,Ll(Y)===D&&(de=new de(O,T+"enter",L,n,Y),de.target=B,de.relatedTarget=Ee,X=de),Ee=X,de=M&&L?_(M,L,Kx):null,M!==null&&Cg(Z,le,M,de,!1),L!==null&&Ee!==null&&Cg(Z,Ee,L,de,!0)))}e:{if(M=D?Ni(D):window,L=M.nodeName&&M.nodeName.toLowerCase(),L==="select"||L==="input"&&M.type==="file")var ue=Um;else if(zm(M))if(Bm)ue=Pb;else{ue=Jb;var Re=Ib}else L=M.nodeName,!L||L.toLowerCase()!=="input"||M.type!=="checkbox"&&M.type!=="radio"?D&&Go(D.elementType)&&(ue=Um):ue=Fb;if(ue&&(ue=ue(e,D))){Dm(Z,ue,n,Y);break e}Re&&Re(e,M,D)}switch(Re=D?Ni(D):window,e){case"focusin":(zm(Re)||Re.contentEditable==="true")&&(ja=Re,nc=D,Mi=null);break;case"focusout":Mi=nc=ja=null;break;case"mousedown":lc=!0;break;case"contextmenu":case"mouseup":case"dragend":lc=!1,Qm(Z,n,Y);break;case"selectionchange":if(Wb)break;case"keydown":case"keyup":Qm(Z,n,Y)}var ve;if(Po)e:{switch(e){case"compositionstart":var pe="onCompositionStart";break e;case"compositionend":pe="onCompositionEnd";break e;case"compositionupdate":pe="onCompositionUpdate";break e}pe=void 0}else Ta?Mm(e,n)&&(pe="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(pe="onCompositionStart");pe&&(_m&&n.locale!=="ko"&&(Ta||pe!=="onCompositionStart"?pe==="onCompositionEnd"&&Ta&&(ve=Cm()):(il=Y,Zo="value"in il?il.value:il.textContent,Ta=!0)),Re=Gu(D,pe),0<Re.length&&(pe=new Tm(pe,e,null,n,Y),Z.push({event:pe,listeners:Re}),ve?pe.data=ve:(ve=Om(n),ve!==null&&(pe.data=ve)))),(ve=Vb?Qb(e,n):Xb(e,n))&&(pe=Gu(D,"onBeforeInput"),0<pe.length&&(Re=new Tm("onBeforeInput","beforeinput",null,n,Y),Z.push({event:Re,listeners:pe}),Re.data=ve)),Vx(Z,e,D,n,Y)}Sg(Z,t)})}function nr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Gu(e,t){for(var n=t+"Capture",l=[];e!==null;){var a=e,r=a.stateNode;if(a=a.tag,a!==5&&a!==26&&a!==27||r===null||(a=Ci(e,n),a!=null&&l.unshift(nr(e,a,r)),a=Ci(e,t),a!=null&&l.push(nr(e,a,r))),e.tag===3)return l;e=e.return}return[]}function Kx(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Cg(e,t,n,l,a){for(var r=t._reactName,m=[];n!==null&&n!==l;){var y=n,C=y.alternate,D=y.stateNode;if(y=y.tag,C!==null&&C===l)break;y!==5&&y!==26&&y!==27||D===null||(C=D,a?(D=Ci(n,r),D!=null&&m.unshift(nr(n,D,C))):a||(D=Ci(n,r),D!=null&&m.push(nr(n,D,C)))),n=n.return}m.length!==0&&e.push({event:t,listeners:m})}var Ix=/\r\n?/g,Jx=/\u0000|\uFFFD/g;function Eg(e){return(typeof e=="string"?e:""+e).replace(Ix,`
|
||
`).replace(Jx,"")}function wg(e,t){return t=Eg(t),Eg(e)===t}function He(e,t,n,l,a,r){switch(n){case"children":if(typeof l=="string")t==="body"||t==="textarea"&&l===""||Ca(e,l);else if(typeof l=="number"||typeof l=="bigint")t!=="body"&&Ca(e,""+l);else return;break;case"className":Dr(e,"class",l);break;case"tabIndex":Dr(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Dr(e,n,l);break;case"style":xm(e,l,r);return;case"data":if(t!=="object"){Dr(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=Ur(l),e.setAttribute(n,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof r=="function"&&(n==="formAction"?(t!=="input"&&He(e,t,"name",a.name,a,null),He(e,t,"formEncType",a.formEncType,a,null),He(e,t,"formMethod",a.formMethod,a,null),He(e,t,"formTarget",a.formTarget,a,null)):(He(e,t,"encType",a.encType,a,null),He(e,t,"method",a.method,a,null),He(e,t,"target",a.target,a,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=Ur(l),e.setAttribute(n,l);break;case"onClick":l!=null&&(e.onclick=bn);return;case"onScroll":l!=null&&_e("scroll",e);return;case"onScrollEnd":l!=null&&_e("scrollend",e);return;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(o(61));if(n=l.__html,n!=null){if(a.children!=null)throw Error(o(60));(r!=null?r.__html:void 0)!==n&&(e.innerHTML=n)}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}n=Ur(l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,l):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"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":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":l===!0?e.setAttribute(n,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,l):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(n,l):e.removeAttribute(n);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(n):e.setAttribute(n,l);break;case"popover":_e("beforetoggle",e),_e("toggle",e),zr(e,"popover",l);break;case"xlinkActuate":kn(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":kn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":kn(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":kn(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":kn(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":kn(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":kn(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":kn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":kn(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":zr(e,"is",l);break;case"innerText":case"textContent":return;default:if(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")n=hb.get(n)||n,zr(e,n,l);else return}ze=!0}function Hs(e,t,n,l,a,r){switch(n){case"style":xm(e,l,r);return;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(o(61));if(n=l.__html,n!=null){if(a.children!=null)throw Error(o(60));(r!=null?r.__html:void 0)!==n&&(e.innerHTML=n)}}break;case"children":if(typeof l=="string")Ca(e,l);else if(typeof l=="number"||typeof l=="bigint")Ca(e,""+l);else return;break;case"onScroll":l!=null&&_e("scroll",e);return;case"onScrollEnd":l!=null&&_e("scrollend",e);return;case"onClick":l!=null&&(e.onclick=bn);return;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":return;case"innerText":case"textContent":return;default:if(!sm.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(a=n.endsWith("Capture"),r=n.slice(2,a?n.length-7:void 0),t=e[_t]||null,t=t!=null?t[n]:null,typeof t=="function"&&e.removeEventListener(r,t,a),typeof l=="function")){typeof t!="function"&&t!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(r,l,a);break e}ze=!0,n in e?e[n]=l:l===!0?e.setAttribute(n,""):zr(e,n,l)}return}ze=!0}function xt(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":_e("error",e),_e("load",e);var l=!1,a=!1,r;for(r in n)if(n.hasOwnProperty(r)){var m=n[r];if(m!=null)switch(r){case"src":l=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:He(e,t,r,m,n,null)}}a&&He(e,t,"srcSet",n.srcSet,n,null),l&&He(e,t,"src",n.src,n,null);return;case"input":_e("invalid",e);var y=r=m=a=null,C=null,D=null;for(l in n)if(n.hasOwnProperty(l)){var Y=n[l];if(Y!=null)switch(l){case"name":a=Y;break;case"type":m=Y;break;case"checked":C=Y;break;case"defaultChecked":D=Y;break;case"value":r=Y;break;case"defaultValue":y=Y;break;case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(o(137,t));break;default:He(e,t,l,Y,n,null)}}gm(e,r,y,C,D,m,a,!1);return;case"select":_e("invalid",e),l=m=r=null;for(a in n)if(n.hasOwnProperty(a)&&(y=n[a],y!=null))switch(a){case"value":r=y;break;case"defaultValue":m=y;break;case"multiple":l=y;default:He(e,t,a,y,n,null)}t=r,n=m,e.multiple=!!l,t!=null?Na(e,!!l,t,!1):n!=null&&Na(e,!!l,n,!0);return;case"textarea":_e("invalid",e),r=a=l=null;for(m in n)if(n.hasOwnProperty(m)&&(y=n[m],y!=null))switch(m){case"value":l=y;break;case"defaultValue":a=y;break;case"children":r=y;break;case"dangerouslySetInnerHTML":if(y!=null)throw Error(o(91));break;default:He(e,t,m,y,n,null)}pm(e,l,a,r);return;case"option":for(C in n)if(n.hasOwnProperty(C)&&(l=n[C],l!=null))switch(C){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:He(e,t,C,l,n,null)}return;case"dialog":_e("beforetoggle",e),_e("toggle",e),_e("cancel",e),_e("close",e);break;case"iframe":case"object":_e("load",e);break;case"video":case"audio":for(l=0;l<tr.length;l++)_e(tr[l],e);break;case"image":_e("error",e),_e("load",e);break;case"details":_e("toggle",e);break;case"embed":case"source":case"link":_e("error",e),_e("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(D in n)if(n.hasOwnProperty(D)&&(l=n[D],l!=null))switch(D){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:He(e,t,D,l,n,null)}return;default:if(Go(t)){for(Y in n)n.hasOwnProperty(Y)&&(l=n[Y],l!==void 0&&Hs(e,t,Y,l,n,void 0));return}}for(y in n)n.hasOwnProperty(y)&&(l=n[y],l!=null&&He(e,t,y,l,n,null))}var Fx={};function Px(e,t,n,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var a=null,r=null,m=null,y=null,C=null,D=null,Y=null;for(L in n){var Z=n[L];if(n.hasOwnProperty(L)&&Z!=null)switch(L){case"checked":break;case"value":break;case"defaultValue":C=Z;default:l.hasOwnProperty(L)||He(e,t,L,null,l,Z)}}for(var M in l){var L=l[M];if(Z=n[M],l.hasOwnProperty(M)&&(L!=null||Z!=null))switch(M){case"type":L!==Z&&(ze=!0),r=L;break;case"name":L!==Z&&(ze=!0),a=L;break;case"checked":L!==Z&&(ze=!0),D=L;break;case"defaultChecked":L!==Z&&(ze=!0),Y=L;break;case"value":L!==Z&&(ze=!0),m=L;break;case"defaultValue":L!==Z&&(ze=!0),y=L;break;case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(o(137,t));break;default:L!==Z&&He(e,t,M,L,l,Z)}}Ho(e,m,y,C,D,Y,r,a);return;case"select":L=m=y=M=null;for(r in n)if(C=n[r],n.hasOwnProperty(r)&&C!=null)switch(r){case"value":break;case"multiple":L=C;default:l.hasOwnProperty(r)||He(e,t,r,null,l,C)}for(a in l)if(r=l[a],C=n[a],l.hasOwnProperty(a)&&(r!=null||C!=null))switch(a){case"value":r!==C&&(ze=!0),M=r;break;case"defaultValue":r!==C&&(ze=!0),y=r;break;case"multiple":r!==C&&(ze=!0),m=r;default:r!==C&&He(e,t,a,r,l,C)}t=y,n=m,l=L,M!=null?Na(e,!!n,M,!1):!!l!=!!n&&(t!=null?Na(e,!!n,t,!0):Na(e,!!n,n?[]:"",!1));return;case"textarea":L=M=null;for(y in n)if(a=n[y],n.hasOwnProperty(y)&&a!=null&&!l.hasOwnProperty(y))switch(y){case"value":break;case"children":break;default:He(e,t,y,null,l,a)}for(m in l)if(a=l[m],r=n[m],l.hasOwnProperty(m)&&(a!=null||r!=null))switch(m){case"value":a!==r&&(ze=!0),M=a;break;case"defaultValue":a!==r&&(ze=!0),L=a;break;case"children":break;case"dangerouslySetInnerHTML":if(a!=null)throw Error(o(91));break;default:a!==r&&He(e,t,m,a,l,r)}ym(e,M,L);return;case"option":for(var le in n)if(M=n[le],n.hasOwnProperty(le)&&M!=null&&!l.hasOwnProperty(le))switch(le){case"selected":e.selected=!1;break;default:He(e,t,le,null,l,M)}for(C in l)if(M=l[C],L=n[C],l.hasOwnProperty(C)&&M!==L&&(M!=null||L!=null))switch(C){case"selected":M!==L&&(ze=!0),e.selected=M&&typeof M!="function"&&typeof M!="symbol";break;default:He(e,t,C,M,l,L)}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 de in n)M=n[de],n.hasOwnProperty(de)&&M!=null&&!l.hasOwnProperty(de)&&He(e,t,de,null,l,M);for(D in l)if(M=l[D],L=n[D],l.hasOwnProperty(D)&&M!==L&&(M!=null||L!=null))switch(D){case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(o(137,t));break;default:He(e,t,D,M,l,L)}return;default:if(Go(t)){for(var Ee in n)M=n[Ee],n.hasOwnProperty(Ee)&&M!==void 0&&!l.hasOwnProperty(Ee)&&Hs(e,t,Ee,void 0,l,M);for(Y in l)M=l[Y],L=n[Y],!l.hasOwnProperty(Y)||M===L||M===void 0&&L===void 0||Hs(e,t,Y,M,l,L);return}}for(var O in n)M=n[O],n.hasOwnProperty(O)&&M!=null&&!l.hasOwnProperty(O)&&He(e,t,O,null,l,M);for(Z in l)M=l[Z],L=n[Z],!l.hasOwnProperty(Z)||M===L||M==null&&L==null||He(e,t,Z,M,l,L)}function Tg(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function $x(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),l=0;l<n.length;l++){var a=n[l],r=a.transferSize,m=a.initiatorType,y=a.duration;if(r&&y&&Tg(m)){for(m=0,y=a.responseEnd,l+=1;l<n.length;l++){var C=n[l],D=C.startTime;if(D>y)break;var Y=C.transferSize,Z=C.initiatorType;Y&&Tg(Z)&&(C=C.responseEnd,m+=Y*(C<y?1:(y-D)/(C-D)))}if(--l,t+=8*(r+m)/(a.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var qs=null,Gs=null;function lr(e){return e.nodeType===9?e:e.ownerDocument}function jg(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function _g(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Ag(e,t,n,l){return n=lr(n).createElement(e),n[vt]=l,n[_t]=t,xt(n,e,t),ot(n),n}function Ys(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Vs=null;function Wx(){var e=window.event;return e&&e.type==="popstate"?e===Vs?!1:(Vs=e,!0):(Vs=null,!1)}var Qs=typeof setTimeout=="function"?setTimeout:void 0,e2=typeof clearTimeout=="function"?clearTimeout:void 0,Rg=typeof Promise=="function"?Promise:void 0,Mg=typeof requestAnimationFrame=="function"?requestAnimationFrame:Qs,t2=typeof queueMicrotask=="function"?queueMicrotask:typeof Rg<"u"?function(e){return Rg.resolve(null).then(e).catch(n2)}:Qs;function n2(e){setTimeout(function(){throw e})}function wl(e){return e==="head"}function Og(e,t){var n=t,l=0;do{var a=n.nextSibling;if(e.removeChild(n),a&&a.nodeType===8)if(n=a.data,n==="/$"||n==="/&"){if(l===0){e.removeChild(a),ri(t);return}l--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")l++;else if(n==="html")$s(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,$s(n);for(var r=n.firstChild;r;){var m=r.nextSibling,y=r.nodeName;r[Si]||y==="SCRIPT"||y==="STYLE"||y==="LINK"&&r.rel.toLowerCase()==="stylesheet"||n.removeChild(r),r=m}}else n==="body"&&$s(e.ownerDocument.body);n=a}while(n);ri(t)}function zg(e,t){var n=e;e=0;do{var l=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=l}while(n)}function Dg(e,t,n){if(t=CSS.escape(t)!==t?"r-"+btoa(t).replace(/=/g,""):t,e.style.viewTransitionName=t,n!=null&&(e.style.viewTransitionClass=n),n=getComputedStyle(e),n.display==="inline"){if(t=e.getClientRects(),t.length===1)var l=1;else for(var a=l=0;a<t.length;a++){var r=t[a];0<r.width&&0<r.height&&l++}l===1&&(e=e.style,e.display=t.length===1?"inline-block":"block",e.marginTop="-"+n.paddingTop,e.marginBottom="-"+n.paddingBottom)}}function Ug(e,t){e=e.style,t=t.style;var n=t!=null?t.hasOwnProperty("viewTransitionName")?t.viewTransitionName:t.hasOwnProperty("view-transition-name")?t["view-transition-name"]:null:null;e.viewTransitionName=n==null||typeof n=="boolean"?"":(""+n).trim(),n=t!=null?t.hasOwnProperty("viewTransitionClass")?t.viewTransitionClass:t.hasOwnProperty("view-transition-class")?t["view-transition-class"]:null:null,e.viewTransitionClass=n==null||typeof n=="boolean"?"":(""+n).trim(),e.display==="inline-block"&&(t==null?e.display=e.margin="":(n=t.display,e.display=n==null||typeof n=="boolean"?"":n,n=t.margin,n!=null?e.margin=n:(n=t.hasOwnProperty("marginTop")?t.marginTop:t["margin-top"],e.marginTop=n==null||typeof n=="boolean"?"":n,t=t.hasOwnProperty("marginBottom")?t.marginBottom:t["margin-bottom"],e.marginBottom=t==null||typeof t=="boolean"?"":t)))}function l2(e,t,n){return n=n.ownerDocument.defaultView,{rect:e,abs:t.position==="absolute"||t.position==="fixed",clip:t.clipPath!=="none"||t.overflow!=="visible"||t.filter!=="none"||t.mask!=="none"||t.mask!=="none"||t.borderRadius!=="0px",view:0<=e.bottom&&0<=e.right&&e.top<=n.innerHeight&&e.left<=n.innerWidth}}function Xs(e){var t=e.getBoundingClientRect(),n=getComputedStyle(e);return l2(t,n,e)}function a2(e){return e.documentElement.clientHeight}function i2(e){this.addEventListener("load",e),this.addEventListener("error",e)}function r2(e,t,n,l,a,r,m,y,C){var D=t.nodeType===9?t:t.ownerDocument;try{var Y=D.startViewTransition({update:function(){var M=D.defaultView,L=M.navigation&&M.navigation.transition,le=D.fonts.status;l();var de=[];if(le==="loaded"&&(a2(D),D.fonts.status==="loading"&&de.push(D.fonts.ready)),le=de.length,e!==null)for(var Ee=e.suspenseyImages,O=0,T=0;T<Ee.length;T++){var B=Ee[T];if(!B.complete){var X=B.getBoundingClientRect();if(0<X.bottom&&0<X.right&&X.top<M.innerHeight&&X.left<M.innerWidth){if(O+=n0(B),O>Qu){de.length=le;break}B=new Promise(i2.bind(B)),de.push(B)}}}if(0<de.length)return M=Promise.race([Promise.all(de),new Promise(function(ue){return setTimeout(ue,500)})]).then(a,a),(L?Promise.allSettled([L.finished,M]):M).then(r,r);if(a(),L)return L.finished.then(r,r);r()},types:n});D.__reactViewTransition=Y;var Z=[];return Y.ready.then(function(){for(var M=D.documentElement.getAnimations({subtree:!0}),L=0;L<M.length;L++){var le=M[L],de=le.effect,Ee=de.pseudoElement;if(Ee!=null&&Ee.startsWith("::view-transition")){Z.push(le),le=de.getKeyframes();for(var O=Ee=void 0,T=!0,B=0;B<le.length;B++){var X=le[B],ue=X.width;if(Ee===void 0)Ee=ue;else if(Ee!==ue){T=!1;break}if(ue=X.height,O===void 0)O=ue;else if(O!==ue){T=!1;break}delete X.width,delete X.height,X.transform==="none"&&delete X.transform}T&&Ee!==void 0&&O!==void 0&&(de.setKeyframes(le),T=getComputedStyle(de.target,de.pseudoElement),T.width!==Ee||T.height!==O)&&(T=le[0],T.width=Ee,T.height=O,T=le[le.length-1],T.width=Ee,T.height=O,de.setKeyframes(le))}}m()},function(M){D.__reactViewTransition===Y&&(D.__reactViewTransition=null);try{if(typeof M=="object"&&M!==null)switch(M.name){case"InvalidStateError":(M.message==="View transition was skipped because document visibility state is hidden."||M.message==="Skipping view transition because document visibility state has become hidden."||M.message==="Skipping view transition because viewport size changed."||M.message==="Transition was aborted because of invalid state")&&(M=null)}M!==null&&C(M)}finally{l(),a(),m()}}),Y.finished.finally(function(){for(var M=0;M<Z.length;M++)Z[M].cancel();D.__reactViewTransition===Y&&(D.__reactViewTransition=null),y()}),Y}catch{return l(),a(),m(),null}}function ia(e,t){this._scope=document.documentElement,this._selector="::view-transition-"+e+"("+t+")"}ia.prototype.animate=function(e,t){return t=typeof t=="number"?{duration:t}:E({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)},ia.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,n=e.getAnimations({subtree:!0}),l=[],a=0;a<n.length;a++){var r=n[a].effect;r!==null&&r.target===e&&r.pseudoElement===t&&l.push(n[a])}return l},ia.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function Bg(e){return{name:e,group:new ia("group",e),imagePair:new ia("image-pair",e),old:new ia("old",e),new:new ia("new",e)}}function Zt(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}Zt.prototype.addEventListener=function(e,t,n){var l=null,a=null;if(!(n!=null&&typeof n!="boolean"&&(l=n.signal||null,l!==null&&l.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var r=this._eventListeners;if(Lg(r,e,t,n)===-1){var m=this,y=t;n!=null&&typeof n!="boolean"&&n.once===!0&&(y=function(C){m.removeEventListener(e,t,n),typeof t=="function"?t.call(this,C):t.handleEvent(C)}),l!==null&&(a=m.removeEventListener.bind(m,e,t,n),l.addEventListener("abort",a,{once:!0}),a=l.removeEventListener.bind(l,"abort",a)),l=ei(n),r.push({type:e,listener:t,optionsOrUseCapture:n,attachedListener:y,cleanup:a}),p(this._fragmentFiber.child,!1,u2,e,y,l)}this._eventListeners=r}};function u2(e,t,n,l){return H(e).addEventListener(t,n,l),!1}Zt.prototype.removeEventListener=function(e,t,n){var l=this._eventListeners;if(l!==null&&(t=Lg(l,e,t,n),t!==-1)){var a=l[t];n=a.attachedListener;var r=a.cleanup;a=ei(a.optionsOrUseCapture),p(this._fragmentFiber.child,!1,o2,e,n,a),l.splice(t,1),r!==null&&r()}};function o2(e,t,n,l){return H(e).removeEventListener(t,n,l),!1}function ei(e){return e!=null&&typeof e!="boolean"&&(e.once===!0||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function kg(e){return e==null?"c=0":typeof e=="boolean"?"c="+(e?"1":"0"):"c="+(e.capture?"1":"0")}function Lg(e,t,n,l){if(e.length===0)return-1;l=kg(l);for(var a=0;a<e.length;a++){var r=e[a];if(r.type===t&&r.listener===n&&kg(r.optionsOrUseCapture)===l)return a}return-1}Zt.prototype.dispatchEvent=function(e){var t=N(this._fragmentFiber);if(t===null)return!0;t=H(t);var n=this._eventListeners;if(n!==null&&0<n.length||!e.bubbles){var l=t.nodeType===9?t.createComment(""):document.createTextNode("");if(n)for(var a=0;a<n.length;a++){var r=n[a];l.addEventListener(r.type,r.attachedListener,ei(r.optionsOrUseCapture))}if(t.appendChild(l),e=l.dispatchEvent(e),n)for(a=0;a<n.length;a++)r=n[a],l.removeEventListener(r.type,r.attachedListener,ei(r.optionsOrUseCapture));return t.removeChild(l),e}return t.dispatchEvent(e)},Zt.prototype.focus=function(e){p(this._fragmentFiber.child,!0,Hg,e,void 0,void 0)};function Hg(e,t){return e.tag===6?!1:(e=H(e),x2(e,t))}Zt.prototype.focusLast=function(e){var t=[];p(this._fragmentFiber.child,!0,Zs,t,void 0,void 0);for(var n=t.length-1;0<=n&&!Hg(t[n],e);n--);};function Zs(e,t){return t.push(e),!1}Zt.prototype.blur=function(){var e=N(this._fragmentFiber);e!==null&&(e=H(e),e=lr(e).activeElement,e!==null&&p(this._fragmentFiber.child,!1,c2,e,void 0,void 0))};function c2(e,t){return e.tag===6?!1:(e=H(e),e===t||e.contains(t)?(t.blur(),!0):!1)}Zt.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),p(this._fragmentFiber.child,!1,s2,e,void 0,void 0)};function s2(e,t){return e.tag===6||(e=H(e),t.observe(e)),!1}Zt.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),p(this._fragmentFiber.child,!1,f2,e,void 0,void 0);for(var n=t=0;n<gn.length;n++){var l=gn[n];l.fragmentInstance===this&&l.observer===e?e.unobserve(l.instance):gn[t++]=l}gn.length=t}};function f2(e,t){return e.tag===6||(e=H(e),t.unobserve(e)),!1}var gn=[],Ks=!1;function d2(e,t,n){gn.push({fragmentInstance:e,observer:t,instance:n}),Ks||(Ks=!0,S2(function(){Ks=!1;var l=gn;gn=[];for(var a=0;a<l.length;a++){var r=l[a];r.observer.unobserve(r.instance)}}))}Zt.prototype.getClientRects=function(){var e=[];return p(this._fragmentFiber.child,!1,m2,e,void 0,void 0),e};function m2(e,t){if(e.tag===6){e=e.stateNode;var n=e.ownerDocument.createRange();n.selectNodeContents(e),t.push.apply(t,n.getClientRects())}else e=H(e),t.push.apply(t,e.getClientRects());return!1}Zt.prototype.getRootNode=function(e){var t=N(this._fragmentFiber);return t===null?this:H(t).getRootNode(e)},Zt.prototype.compareDocumentPosition=function(e){var t=N(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];p(this._fragmentFiber.child,!1,Zs,n,void 0,void 0);var l=H(t);if(n.length===0){if(n=l,A(this._fragmentFiber)){e:{for(t=this._fragmentFiber.return;t!==null;){if(t.tag===4){t=t.stateNode.containerInfo;break e}if(t.tag===3||t.tag===5||t.tag===27)break;t=t.return}t=null}t!=null&&(n=t)}t=this._fragmentFiber;var a=l=n.compareDocumentPosition(e);return n===e?a=Node.DOCUMENT_POSITION_CONTAINS:l&Node.DOCUMENT_POSITION_CONTAINED_BY&&(n=j(t)[1],n===null?a=Node.DOCUMENT_POSITION_PRECEDING:(e=H(n).compareDocumentPosition(e),a=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),a|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=H(n[0]),a=H(n[n.length-1]);var r=A(this._fragmentFiber)?t.parentElement:l;if(r==null)return Node.DOCUMENT_POSITION_DISCONNECTED;l=r.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,r=r.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_CONTAINED_BY;var m=t.compareDocumentPosition(e),y=a.compareDocumentPosition(e),C=m&Node.DOCUMENT_POSITION_CONTAINED_BY||y&Node.DOCUMENT_POSITION_CONTAINED_BY;return y=l&&r&&m&Node.DOCUMENT_POSITION_FOLLOWING&&y&Node.DOCUMENT_POSITION_PRECEDING,t=l&&t===e||r&&a===e||C||y?Node.DOCUMENT_POSITION_CONTAINED_BY:!l&&t===e||!r&&a===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:m,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||h2(t,this._fragmentFiber,n[0],n[n.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function h2(e,t,n,l,a){var r=Ll(a);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(n=!!r)e:{for(;r!==null;){if(r.tag===7&&(r===t||r.alternate===t)){n=!0;break e}r=r.return}n=!1}return n}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(r===null)return r=a.ownerDocument,a===r||a===r.documentElement||a===r.body;e:{for(r=t,t=N(t);r!==null;){if(!(r.tag!==5&&r.tag!==3&&r.tag!==27||r!==t&&r.alternate!==t)){r=!0;break e}r=r.return}r=!1}return r}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!r)&&!(t=r===n)&&(t=_(n,r,K),t===null?t=!1:(p(t,!0,k,r,n),r=q,q=null,t=r!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!r)&&!(t=r===l)&&(t=_(l,r,K),t===null?t=!1:(p(t,!0,V,r,l),r=q,G=q=null,t=r!==null)),t):!1}function qg(e,t){var n=e.ownerDocument.createRange();n.selectNodeContents(e),e=n.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}Zt.prototype.scrollIntoView=function(e){if(typeof e=="object")throw Error(o(566));var t=[];p(this._fragmentFiber.child,!1,Zs,t,void 0,void 0);var n=e!==!1;if(t.length===0){var l=j(this._fragmentFiber);if(l=n?l[1]||l[0]||N(this._fragmentFiber):l[0]||l[1],l===null)return;if(l.tag===6){e=H(l),qg(e,n);return}if(l=H(l),l.nodeType!==9){if(l.nodeType===11){n="host"in l?l.host:null,n!==null&&n.scrollIntoView(e);return}l.scrollIntoView(e)}}for(l=n?t.length-1:0;l!==(n?-1:t.length);){var a=t[l];a.tag===6?(a=H(a),qg(a,n)):H(a).scrollIntoView(e),l+=n?-1:1}};function v2(e,t){return e=H(e),Gg(e,t),!1}function Gg(e,t){e.reactFragments==null&&(e.reactFragments=new Set),e.reactFragments.add(t)}function Yg(e,t){var n=t._eventListeners;if(n!==null)for(var l=0;l<n.length;l++){var a=n[l];e.addEventListener(a.type,a.attachedListener,ei(a.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(r){for(var m=0,y=0;y<gn.length;y++){var C=gn[y];(C.fragmentInstance!==t||C.observer!==r||C.instance!==e)&&(gn[m++]=C)}gn.length=m,r.observe(e)}),Gg(e,t))}function g2(e,t){var n=t._eventListeners;if(n!==null)for(var l=0;l<n.length;l++){var a=n[l];e.removeEventListener(a.type,a.attachedListener,ei(a.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(r){typeof r.rootMargin=="string"?d2(t,r,e):r.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function Is(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Is(n),Or(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function y2(e,t,n,l){for(;e.nodeType===1;){var a=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[Si])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(r=e.getAttribute("rel"),r==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(r!==a.rel||e.getAttribute("href")!==(a.href==null||a.href===""?null:a.href)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin)||e.getAttribute("title")!==(a.title==null?null:a.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(r=e.getAttribute("src"),(r!==(a.src==null?null:a.src)||e.getAttribute("type")!==(a.type==null?null:a.type)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin))&&r&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var r=a.name==null?null:""+a.name;if(a.type==="hidden"&&e.getAttribute("name")===r)return e}else return e;if(e=nn(e.nextSibling),e===null)break}return null}function p2(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=nn(e.nextSibling),e===null))return null;return e}function Vg(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=nn(e.nextSibling),e===null))return null;return e}function Js(e){return e.data==="$?"||e.data==="$~"}function Fs(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function b2(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var l=function(){t(),n.removeEventListener("DOMContentLoaded",l)};n.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function nn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Ps=null;function Qg(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return nn(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function Xg(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function x2(e,t){function n(){l=!0}if(e.ownerDocument.activeElement===e)return!0;var l=!1;try{e.ownerDocument.addEventListener("focus",n,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener("focus",n,!0)}return l}function S2(e){Mg(function(){Mg(function(t){return e(t)})})}function Zg(e,t,n){switch(t=lr(n),e){case"html":if(e=t.documentElement,!e)throw Error(o(452));return e;case"head":if(e=t.head,!e)throw Error(o(453));return e;case"body":if(e=t.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function Kg(e,t,n){for(var l in n){var a=n[l];n.hasOwnProperty(l)&&a!=null&&He(e,t,l,null,Fx,a)}n.dangerouslySetInnerHTML!=null&&(e.textContent=""),e.onclick===bn&&(e.onclick=null),Or(e)}function $s(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Or(e)}var ln=new Map,Ig=new Set;function ar(e){if(typeof e.getRootNode=="function"){var t=e.getRootNode();if(t.nodeType===9||t.nodeType===11)return t}return e.nodeType===9?e:e.ownerDocument}var Fn=ye.d;ye.d={f:N2,r:C2,D:E2,C:w2,L:T2,m:j2,X:A2,S:_2,M:R2};function N2(){var e=Fn.f(),t=Uu();return e||t}function C2(e){var t=ba(e);t!==null&&t.tag===5&&t.type==="form"?Fh(t):Fn.r(e)}var ti=typeof document>"u"?null:document;function Jg(e,t,n){var l=ti;if(l&&typeof t=="string"&&t){var a=Jt(t);a='link[rel="'+e+'"][href="'+a+'"]',typeof n=="string"&&(a+='[crossorigin="'+n+'"]'),Ig.has(a)||(Ig.add(a),e={rel:e,crossOrigin:n,href:t},l.querySelector(a)===null&&(t=l.createElement("link"),xt(t,"link",e),ot(t),l.head.appendChild(t)))}}function E2(e){Fn.D(e),Jg("dns-prefetch",e,null)}function w2(e,t){Fn.C(e,t),Jg("preconnect",e,t)}function T2(e,t,n){Fn.L(e,t,n);var l=ti;if(l&&e&&t){var a='link[rel="preload"][as="'+Jt(t)+'"]';t==="image"&&n&&n.imageSrcSet?(a+='[imagesrcset="'+Jt(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(a+='[imagesizes="'+Jt(n.imageSizes)+'"]')):a+='[href="'+Jt(e)+'"]';var r=a;switch(t){case"style":r=ni(e);break;case"script":r=li(e)}if(!(ln.has(r)||(e=E({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),ln.set(r,e),l.querySelector(a)!==null||t==="style"&&l.querySelector(ir(r))||t==="script"&&l.querySelector(rr(r))))){var m=l.createElement("link");xt(m,"link",e),t==="style"&&(m[Mr]=!0,m.onload=m.onerror=function(){om(m)}),ot(m),l.head.appendChild(m)}}}function j2(e,t){Fn.m(e,t);var n=ti;if(n&&e){var l=t&&typeof t.as=="string"?t.as:"script",a='link[rel="modulepreload"][as="'+Jt(l)+'"][href="'+Jt(e)+'"]',r=a;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":r=li(e)}if(!ln.has(r)&&(e=E({rel:"modulepreload",href:e},t),ln.set(r,e),n.querySelector(a)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(rr(r)))return}l=n.createElement("link"),xt(l,"link",e),ot(l),n.head.appendChild(l)}}}function _2(e,t,n){Fn.S(e,t,n);var l=ti;if(l&&e){var a=xa(l).hoistableStyles,r=ni(e);t=t||"default";var m=a.get(r);if(!m){var y={loading:0,preload:null};if(m=l.querySelector(ir(r)))y.loading=5;else{e=E({rel:"stylesheet",href:e,"data-precedence":t},n),(n=ln.get(r))&&Ws(e,n);var C=m=l.createElement("link");ot(C),xt(C,"link",e),C._p=new Promise(function(D,Y){C.onload=D,C.onerror=Y}),C.addEventListener("load",function(){y.loading|=1}),C.addEventListener("error",function(){y.loading|=2}),y.loading|=4,Yu(m,t,l)}m={type:"stylesheet",instance:m,count:1,state:y},a.set(r,m)}}}function A2(e,t){Fn.X(e,t);var n=ti;if(n&&e){var l=xa(n).hoistableScripts,a=li(e),r=l.get(a);r||(r=n.querySelector(rr(a)),r||(e=E({src:e,async:!0},t),(t=ln.get(a))&&ef(e,t),r=n.createElement("script"),ot(r),xt(r,"link",e),n.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},l.set(a,r))}}function R2(e,t){Fn.M(e,t);var n=ti;if(n&&e){var l=xa(n).hoistableScripts,a=li(e),r=l.get(a);r||(r=n.querySelector(rr(a)),r||(e=E({src:e,async:!0,type:"module"},t),(t=ln.get(a))&&ef(e,t),r=n.createElement("script"),ot(r),xt(r,"link",e),n.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},l.set(a,r))}}function Fg(e,t,n,l){var a=(a=nl.current)?ar(a):null;if(!a)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(n=ni(n.href),t=xa(a).hoistableStyles,l=t.get(n),l||(l={type:"style",instance:null,count:0,state:null},t.set(n,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=ni(n.href);var r=xa(a).hoistableStyles,m=r.get(e);if(m||(a=a.ownerDocument||a,m={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},r.set(e,m),(r=a.querySelector(ir(e)))?r._p||(m.instance=r,m.state.loading=5):(r=ln.get(e),r||(r={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},ln.set(e,r)),M2(a,e,r,m.state))),t&&l===null)throw Error(o(528,""));return m}if(t&&l!==null)throw Error(o(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(n=li(n),t=xa(a).hoistableScripts,l=t.get(n),l||(l={type:"script",instance:null,count:0,state:null},t.set(n,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function ni(e){return'href="'+Jt(e)+'"'}function ir(e){return'link[rel="stylesheet"]['+e+"]"}function Pg(e){return E({},e,{"data-precedence":e.precedence,precedence:null})}function M2(e,t,n,l){if(t=e.querySelector('link[rel="preload"][as="style"]['+t+"]")){if(t[Mr]!==!0){l.loading=1;return}}else t=e.createElement("link"),t[Mr]=!0,t.onload=t.onerror=om.bind(null,t),xt(t,"link",n),ot(t),e.head.appendChild(t);l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2})}function li(e){return'[src="'+Jt(e)+'"]'}function rr(e){return"script[async]"+e}function $g(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+Jt(n.href)+'"]');if(l)return t.instance=l,ot(l),l;var a=E({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),ot(l),xt(l,"style",a),Yu(l,n.precedence,e),t.instance=l;case"stylesheet":a=ni(n.href);var r=e.querySelector(ir(a));if(r)return t.state.loading|=4,t.instance=r,ot(r),r;l=Pg(n),(a=ln.get(a))&&Ws(l,a),r=(e.ownerDocument||e).createElement("link"),ot(r);var m=r;return m._p=new Promise(function(y,C){m.onload=y,m.onerror=C}),xt(r,"link",l),t.state.loading|=4,Yu(r,n.precedence,e),t.instance=r;case"script":return r=li(n.src),(a=e.querySelector(rr(r)))?(t.instance=a,ot(a),a):(l=n,(a=ln.get(r))&&(l=E({},n),ef(l,a)),e=e.ownerDocument||e,a=e.createElement("script"),ot(a),xt(a,"link",l),e.head.appendChild(a),t.instance=a);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,Yu(l,n.precedence,e));return t.instance}function Yu(e,t,n){for(var l=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=l.length?l[l.length-1]:null,r=a,m=0;m<l.length;m++){var y=l[m];if(y.dataset.precedence===t)r=y;else if(r!==a)break}r?r.parentNode.insertBefore(e,r.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Ws(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function ef(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Vu=null;function Wg(e,t,n){if(Vu===null){var l=new Map,a=Vu=new Map;a.set(n,l)}else a=Vu,l=a.get(n),l||(l=new Map,a.set(n,l));if(l.has(e))return l;for(l.set(e,null),n=n.getElementsByTagName(e),a=0;a<n.length;a++){var r=n[a];if(!(r[Si]||r[vt]||e==="link"&&r.getAttribute("rel")==="stylesheet")&&r.namespaceURI!=="http://www.w3.org/2000/svg"){var m=r.getAttribute(t)||"";m=e+m;var y=l.get(m);y?y.push(r):l.set(m,[r])}}return l}function tf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function O2(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function e0(e,t){return e==="img"&&t.src!=null&&t.src!==""&&t.onLoad==null&&t.loading!=="lazy"}function t0(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function n0(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio=="number"?devicePixelRatio:1)*.25}function l0(e,t){typeof t.decode=="function"&&(e.imgCount++,t.complete||(e.imgBytes+=n0(t),e.suspenseyImages.push(t)),e=U2.bind(e),t.decode().then(e,e))}function z2(e,t,n,l){if(n.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var a=ni(l.href),r=t.querySelector(ir(a));if(r){t=r._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=ur.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=r,ot(r);return}r=t.ownerDocument||t,l=Pg(l),(a=ln.get(a))&&Ws(l,a),r=r.createElement("link"),ot(r);var m=r;m._p=new Promise(function(y,C){m.onload=y,m.onerror=C}),xt(r,"link",l),n.instance=r}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=ur.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var Qu=0;function D2(e,t){return e.stylesheets&&e.count===0&&Zu(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var l=setTimeout(function(){if(e.stylesheets&&Zu(e,e.stylesheets),e.unsuspend){var r=e.unsuspend;e.unsuspend=null,r()}},6e4+t);0<e.imgBytes&&Qu===0&&(Qu=62500*$x());var a=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Zu(e,e.stylesheets),e.unsuspend)){var r=e.unsuspend;e.unsuspend=null,r()}},(e.imgBytes>Qu?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(a)}}:null}function a0(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)Zu(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function ur(){this.count--,a0(this)}function U2(){this.imgCount--,a0(this)}var Xu=null;function Zu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Xu=new Map,t.forEach(B2,e),Xu=null,ur.call(e))}function B2(e,t){if(!(t.state.loading&4)){var n=Xu.get(e);if(n)var l=n.get(null);else{n=new Map,Xu.set(e,n);for(var a=e.querySelectorAll("link[data-precedence],style[data-precedence]"),r=0;r<a.length;r++){var m=a[r];(m.nodeName==="LINK"||m.getAttribute("media")!=="not all")&&(n.set(m.dataset.precedence,m),l=m)}l&&n.set(null,l)}a=t.instance,m=a.getAttribute("data-precedence"),r=n.get(m)||l,r===l&&n.set(null,a),n.set(m,a),this.count++,l=ur.bind(this),a.addEventListener("load",l),a.addEventListener("error",l),r?r.parentNode.insertBefore(a,r.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(a,e.firstChild)),t.state.loading|=4}}var ai={$$typeof:ge,Provider:null,Consumer:null,_currentValue:Ut,_currentValue2:Ut,_threadCount:0};function k2(e,t,n,l,a,r,m,y,C){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Uo(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Uo(0),this.hiddenUpdates=Uo(null),this.identifierPrefix=l,this.onUncaughtError=a,this.onCaughtError=r,this.onRecoverableError=m,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=C,this.transitionTypes=null,this.incompleteTransitions=new Map}function i0(e,t,n,l,a,r,m,y,C,D,Y,Z){return e=new k2(e,t,n,m,C,D,Y,Z,y),t=1,r===!0&&(t|=24),r=At(3,null,null,t),e.current=r,r.stateNode=e,t=gc(),t.refCount++,e.pooledCache=t,t.refCount++,r.memoizedState={element:l,isDehydrated:n,cache:t},xc(r),e}function r0(e){return e?(e=Ra,e):Ra}function u0(e,t,n,l,a,r){a=r0(a),l.context===null?l.context=a:l.pendingContext=a,l=ml(t),l.payload={element:n},r=r===void 0?null:r,r!==null&&(l.callback=r),n=hl(e,l,t),n!==null&&(zt(n,e,t),Li(n,e,t))}function o0(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function nf(e,t){o0(e,t),(e=e.alternate)&&o0(e,t)}function c0(e){if(e.tag===13||e.tag===31){var t=Yl(e,67108864);t!==null&&zt(t,e,67108864),nf(e,67108864)}}function s0(e){if(e.tag===13||e.tag===31){var t=Xt();t=Bo(t);var n=Yl(e,t);n!==null&&zt(n,e,t),nf(e,t)}}var ii=!0;function L2(e,t,n,l){var a=fe.T;fe.T=null;var r=ye.p;try{ye.p=2,lf(e,t,n,l)}finally{ye.p=r,fe.T=a}}function H2(e,t,n,l){var a=fe.T;fe.T=null;var r=ye.p;try{ye.p=8,lf(e,t,n,l)}finally{ye.p=r,fe.T=a}}function lf(e,t,n,l){if(ii){var a=af(l);if(a===null)Ls(e,t,l,Ku,n),d0(e,l);else if(G2(a,e,t,n,l))l.stopPropagation();else if(d0(e,l),t&4&&-1<q2.indexOf(e)){for(;a!==null;){var r=ba(a);if(r!==null)switch(r.tag){case 3:if(r=r.stateNode,r.current.memoizedState.isDehydrated){var m=kl(r.pendingLanes);if(m!==0){var y=r;for(y.pendingLanes|=2,y.entangledLanes|=2;m;){var C=1<<31-Lt(m);y.entanglements[1]|=C,m&=~C}An(r),(Ue&6)===0&&(Ou=Bt()+500,er(0))}}break;case 31:case 13:y=Yl(r,2),y!==null&&zt(y,r,2),Uu(),nf(r,2)}if(r=af(l),r===null&&Ls(e,t,l,Ku,n),r===a)break;a=r}a!==null&&l.stopPropagation()}else Ls(e,t,l,null,n)}}function af(e){return e=Vo(e),rf(e)}var Ku=null;function rf(e){if(Ku=null,e=Ll(e),e!==null){var t=d(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=h(t),e!==null)return e;e=null}else if(n===31){if(e=v(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Ku=e,null}function f0(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"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($p()){case Fd:return 2;case Pd:return 8;case Tr:case Wp:return 32;case $d:return 268435456;default:return 32}default:return 32}}var uf=!1,Tl=null,jl=null,_l=null,or=new Map,cr=new Map,Al=[],q2="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 d0(e,t){switch(e){case"focusin":case"focusout":Tl=null;break;case"dragenter":case"dragleave":jl=null;break;case"mouseover":case"mouseout":_l=null;break;case"pointerover":case"pointerout":or.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":cr.delete(t.pointerId)}}function sr(e,t,n,l,a,r){return e===null||e.nativeEvent!==r?(e={blockedOn:t,domEventName:n,eventSystemFlags:l,nativeEvent:r,targetContainers:[a]},t!==null&&(t=ba(t),t!==null&&c0(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function G2(e,t,n,l,a){switch(t){case"focusin":return Tl=sr(Tl,e,t,n,l,a),!0;case"dragenter":return jl=sr(jl,e,t,n,l,a),!0;case"mouseover":return _l=sr(_l,e,t,n,l,a),!0;case"pointerover":var r=a.pointerId;return or.set(r,sr(or.get(r)||null,e,t,n,l,a)),!0;case"gotpointercapture":return r=a.pointerId,cr.set(r,sr(cr.get(r)||null,e,t,n,l,a)),!0}return!1}function m0(e){var t=Ll(e.target);if(t!==null){var n=d(t);if(n!==null){if(t=n.tag,t===13){if(t=h(n),t!==null){e.blockedOn=t,im(e.priority,function(){s0(n)});return}}else if(t===31){if(t=v(n),t!==null){e.blockedOn=t,im(e.priority,function(){s0(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Iu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=af(e.nativeEvent);if(n===null){n=e.nativeEvent;var l=new n.constructor(n.type,n);Yo=l,n.target.dispatchEvent(l),Yo=null}else return t=ba(n),t!==null&&c0(t),e.blockedOn=n,!1;t.shift()}return!0}function h0(e,t,n){Iu(e)&&n.delete(t)}function Y2(){uf=!1,Tl!==null&&Iu(Tl)&&(Tl=null),jl!==null&&Iu(jl)&&(jl=null),_l!==null&&Iu(_l)&&(_l=null),or.forEach(h0),cr.forEach(h0)}function Ju(e,t){e.blockedOn===t&&(e.blockedOn=null,uf||(uf=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Y2)))}var Fu=null;function v0(e){Fu!==e&&(Fu=e,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){Fu===e&&(Fu=null);for(var t=0;t<e.length;t+=3){var n=e[t],l=e[t+1],a=e[t+2];if(typeof l!="function"){if(rf(l||n)===null)continue;break}var r=ba(n);r!==null&&(e.splice(t,3),t-=3,Gc(r,{pending:!0,data:a,method:n.method,action:l},l,a))}}))}function ri(e){function t(C){return Ju(C,e)}Tl!==null&&Ju(Tl,e),jl!==null&&Ju(jl,e),_l!==null&&Ju(_l,e),or.forEach(t),cr.forEach(t);for(var n=0;n<Al.length;n++){var l=Al[n];l.blockedOn===e&&(l.blockedOn=null)}for(;0<Al.length&&(n=Al[0],n.blockedOn===null);)m0(n),n.blockedOn===null&&Al.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(l=0;l<n.length;l+=3){var a=n[l],r=n[l+1],m=a[_t]||null;if(typeof r=="function")m||v0(n);else if(m){var y=null;if(r&&r.hasAttribute("formAction")){if(a=r,m=r[_t]||null)y=m.formAction;else if(rf(a)!==null)continue}else y=m.action;typeof y=="function"?n[l+1]=y:(n.splice(l,3),l-=3),v0(n)}}}function g0(){function e(r){r.canIntercept&&r.info==="react-transition"&&r.intercept({handler:function(){return new Promise(function(m){return a=m})},focusReset:"manual",scroll:"manual"})}function t(){a!==null&&(a(),a=null),l||setTimeout(n,20)}function n(){if(!l&&!navigation.transition){var r=navigation.currentEntry;r&&r.url!=null&&navigation.navigate(r.url,{state:r.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,a=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),a!==null&&(a(),a=null)}}}function of(e){this._internalRoot=e}Pu.prototype.render=of.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var n=t.current,l=Xt();u0(n,l,e,t,null,null)},Pu.prototype.unmount=of.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;u0(e.current,2,null,e,null,null),Uu(),t[pa]=null}};function Pu(e){this._internalRoot=e}Pu.prototype.unstable_scheduleHydration=function(e){if(e){var t=am();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Al.length&&t!==0&&t<Al[n].priority;n++);Al.splice(n,0,e),n===0&&m0(e)}};var y0=u.version;if(y0!=="19.3.1")throw Error(o(527,y0,"19.3.1"));ye.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=x(t),e=e!==null?S(e):null,e=e===null?null:e.stateNode,e};var V2={bundleType:0,version:"19.3.1",rendererPackageName:"react-dom",currentDispatcherRef:fe,reconcilerVersion:"19.3.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var $u=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!$u.isDisabled&&$u.supportsFiber)try{pi=$u.inject(V2),kt=$u}catch{}}return dr.createRoot=function(e,t){if(!s(e))throw Error(o(299));var n=!1,l="",a=rv,r=uv,m=ov;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(a=t.onUncaughtError),t.onCaughtError!==void 0&&(r=t.onCaughtError),t.onRecoverableError!==void 0&&(m=t.onRecoverableError)),t=i0(e,1,!1,null,null,n,l,null,a,r,m,g0),e[pa]=t.current,ks(e),new of(t)},dr.hydrateRoot=function(e,t,n){if(!s(e))throw Error(o(299));var l=!1,a="",r=rv,m=uv,y=ov,C=null;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(a=n.identifierPrefix),n.onUncaughtError!==void 0&&(r=n.onUncaughtError),n.onCaughtError!==void 0&&(m=n.onCaughtError),n.onRecoverableError!==void 0&&(y=n.onRecoverableError),n.formState!==void 0&&(C=n.formState)),t=i0(e,1,!0,t,n??null,l,a,C,r,m,y,g0),t.context=r0(null),n=t.current,l=Xt(),l=Bo(l),a=ml(l),a.callback=null,hl(n,a,l),n=l,t.current.lanes=n,xi(t,n),An(t),e[pa]=t.current,ks(e),new Pu(t)},dr.version="19.3.1",dr}var R0;function W2(){if(R0)return df.exports;R0=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(u){console.error(u)}}return i(),df.exports=$2(),df.exports}var eS=W2();const tS=gd(eS),M0=i=>{let u;const c=new Set,o=(x,S)=>{const p=typeof x=="function"?x(u):x;if(!Object.is(p,u)){const N=u;u=S??(typeof p!="object"||p===null)?p:Object.assign({},u,p),c.forEach(A=>A(u,N))}},s=()=>u,v={setState:o,getState:s,getInitialState:()=>g,subscribe:x=>(c.add(x),()=>c.delete(x))},g=u=i(o,s,v);return v},nS=(i=>i?M0(i):M0),lS=i=>i;function aS(i,u=lS){const c=gr.useSyncExternalStore(i.subscribe,gr.useCallback(()=>u(i.getState()),[i,u]),()=>u(i.getInitialState()));return gr.useDebugValue(c),c}const O0=i=>{const u=nS(i),c=o=>aS(u,o);return Object.assign(c,u),c},iS=(i=>i?O0(i):O0),rS=()=>typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches,By=i=>{const c=(i==="system"?rS():i==="dark")?"dark":"light";return typeof document<"u"&&document.documentElement.setAttribute("data-theme",c),c},Wu=localStorage.getItem("hl_theme_v2"),ky=Wu==="light"||Wu==="dark"||Wu==="system"?Wu:"system",uS=By(ky),oS=localStorage.getItem("hl_route_mode")||"auto",cS=localStorage.getItem("hl_layout_preset")||"homepage-3col",sS=typeof window<"u"&&window.location.pathname.startsWith("/storybook")?"storybook":typeof window<"u"&&window.location.pathname.startsWith("/agents")?"agents":"dashboard",Un=iS((i,u)=>({theme:ky,resolvedTheme:uS,routeMode:oS,layoutPreset:cS,viewMode:sS,showAgyModal:!1,showWechatModal:!1,showCmdPalette:!1,toast:"",actionLoading:!1,telemetry:{mini:{chip:"Apple M6 (12核)",ip:"192.168.31.164",tailscale_ip:"100.108.205.40",cpu_pct:6.5,load_1m:.85,mem_used_gb:11.8,mem_total_gb:24,mem_pct:49.2,disk_used_gb:59.9,disk_total_gb:460.4,disk_pct:13,uptime:"运行中",agy_tmux:!0},nas:{ip:"192.168.31.185",online:!0,mounted:!0,total_tb:19.94,used_tb:3.36,free_tb:16.58,pct:16.8,latest_backup:"11-06 23:17"},network:{home_wan_ip:"124.90.142.21",ai_policy:"Ai平台 → 狮城节点",sg_node:"233boy-sea",sg_egress_ip:"104.43.105.243",sg_delay_ms:68},services:{agy:!0,vaultwarden:!0,nas:!0,clash:!0,router:!0,uptime:!0,clawbot:!1}},setTheme:c=>{localStorage.setItem("hl_theme_v2",c);const o=By(c);i({theme:c,resolvedTheme:o})},toggleTheme:()=>{const{resolvedTheme:c,setTheme:o}=u();o(c==="dark"?"light":"dark")},setRouteMode:c=>{localStorage.setItem("hl_route_mode",c),i({routeMode:c})},setLayoutPreset:c=>{localStorage.setItem("hl_layout_preset",c),i({layoutPreset:c})},setViewMode:c=>{if(typeof window<"u"){const o=c==="storybook"?"/storybook":c==="agents"?"/agents":"/";window.history.pushState({},"",o)}i({viewMode:c})},setShowAgyModal:c=>i({showAgyModal:c}),setShowWechatModal:c=>i({showWechatModal:c}),setShowCmdPalette:c=>i({showCmdPalette:c}),showToast:c=>{i({toast:c}),setTimeout(()=>{u().toast===c&&i({toast:""})},3e3)},fetchTelemetry:async()=>{try{const c=await fetch("/api/telemetry");if(c.ok){const o=await c.json();i({telemetry:o})}}catch{}},triggerAction:async(c,o)=>{const{showToast:s,fetchTelemetry:d}=u();i({actionLoading:!0}),s(o);try{const v=await(await fetch(`/api/action/${c}`,{method:"POST"})).json();s(v.message||"操作已完成"),await d()}catch{s("请求失败,请稍后重试")}finally{i({actionLoading:!1})}},copyCmd:async(c,o)=>{const{showToast:s}=u();try{await navigator.clipboard.writeText(c),s(`已复制「${o}」: ${c}`)}catch{s(c)}},getEffectiveMode:()=>{const{routeMode:c}=u();if(c!=="auto")return c;const o=window.location.hostname;return o.startsWith("192.168.")||o.startsWith("100.")||o==="localhost"?"lan":o.includes(".home.961504.xyz")||window.location.port==="10443"?"home10443":"edge443"}}));typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",()=>{const i=Un.getState();i.theme==="system"&&i.setTheme("system")});/**
|
||
* @license lucide-react v0.475.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const fS=i=>i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ly=(...i)=>i.filter((u,c,o)=>!!u&&u.trim()!==""&&o.indexOf(u)===c).join(" ").trim();/**
|
||
* @license lucide-react v0.475.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/var dS={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.475.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const mS=b.forwardRef(({color:i="currentColor",size:u=24,strokeWidth:c=2,absoluteStrokeWidth:o,className:s="",children:d,iconNode:h,...v},g)=>b.createElement("svg",{ref:g,...dS,width:u,height:u,stroke:i,strokeWidth:o?Number(c)*24/Number(u):c,className:Ly("lucide",s),...v},[...h.map(([x,S])=>b.createElement(x,S)),...Array.isArray(d)?d:[d]]));/**
|
||
* @license lucide-react v0.475.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const De=(i,u)=>{const c=b.forwardRef(({className:o,...s},d)=>b.createElement(mS,{ref:d,iconNode:u,className:Ly(`lucide-${fS(i)}`,o),...s}));return c.displayName=`${i}`,c};/**
|
||
* @license lucide-react v0.475.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const hS=[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]],vS=De("Archive",hS);/**
|
||
* @license lucide-react v0.475.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const gS=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]],Hy=De("BookOpen",gS);/**
|
||
* @license lucide-react v0.475.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const yS=[["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"}]],qy=De("Bot",yS);/**
|
||
* @license lucide-react v0.475.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const pS=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],bS=De("Check",pS);/**
|
||
* @license lucide-react v0.475.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const xS=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],SS=De("CircleCheck",xS);/**
|
||
* @license lucide-react v0.475.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const NS=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],z0=De("Copy",NS);/**
|
||
* @license lucide-react v0.475.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const CS=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],eo=De("ExternalLink",CS);/**
|
||
* @license lucide-react v0.475.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const ES=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],wS=De("EyeOff",ES);/**
|
||
* @license lucide-react v0.475.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const TS=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],jS=De("Eye",TS);/**
|
||
* @license lucide-react v0.475.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const _S=[["path",{d:"M9 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v5",key:"1w6njk"}],["circle",{cx:"13",cy:"12",r:"2",key:"1j92g6"}],["path",{d:"M18 19c-2.8 0-5-2.2-5-5v8",key:"pkpw2h"}],["circle",{cx:"20",cy:"19",r:"2",key:"1obnsp"}]],D0=De("FolderGit2",_S);/**
|
||
* @license lucide-react v0.475.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const AS=[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]],RS=De("GitBranch",AS);/**
|
||
* @license lucide-react v0.475.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const MS=[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]],OS=De("HardDrive",MS);/**
|
||
* @license lucide-react v0.475.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const zS=[["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"}]],U0=De("KeyRound",zS);/**
|
||
* @license lucide-react v0.475.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const DS=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],Gy=De("Layers",DS);/**
|
||
* @license lucide-react v0.475.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const US=[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]],BS=De("LayoutGrid",US);/**
|
||
* @license lucide-react v0.475.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const kS=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],LS=De("Lock",kS);/**
|
||
* @license lucide-react v0.475.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const HS=[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]],pd=De("MessageSquare",HS);/**
|
||
* @license lucide-react v0.475.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const qS=[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]],GS=De("Moon",qS);/**
|
||
* @license lucide-react v0.475.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const YS=[["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z",key:"12rzf8"}]],VS=De("Palette",YS);/**
|
||
* @license lucide-react v0.475.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const QS=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M9 21V9",key:"1oto5p"}]],XS=De("PanelsTopLeft",QS);/**
|
||
* @license lucide-react v0.475.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const ZS=[["rect",{width:"5",height:"5",x:"3",y:"3",rx:"1",key:"1tu5fj"}],["rect",{width:"5",height:"5",x:"16",y:"3",rx:"1",key:"1v8r4q"}],["rect",{width:"5",height:"5",x:"3",y:"16",rx:"1",key:"1x03jg"}],["path",{d:"M21 16h-3a2 2 0 0 0-2 2v3",key:"177gqh"}],["path",{d:"M21 21v.01",key:"ents32"}],["path",{d:"M12 7v3a2 2 0 0 1-2 2H7",key:"8crl2c"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M12 3h.01",key:"n36tog"}],["path",{d:"M12 16v.01",key:"133mhm"}],["path",{d:"M16 12h1",key:"1slzba"}],["path",{d:"M21 12v.01",key:"1lwtk9"}],["path",{d:"M12 21v-1",key:"1880an"}]],KS=De("QrCode",ZS);/**
|
||
* @license lucide-react v0.475.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const IS=[["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"}]],Yy=De("RefreshCw",IS);/**
|
||
* @license lucide-react v0.475.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const JS=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],bd=De("Search",JS);/**
|
||
* @license lucide-react v0.475.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const FS=[["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"}]],PS=De("Send",FS);/**
|
||
* @license lucide-react v0.475.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const $S=[["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"}]],WS=De("ShieldCheck",$S);/**
|
||
* @license lucide-react v0.475.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const eN=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]],tN=De("Smartphone",eN);/**
|
||
* @license lucide-react v0.475.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const nN=[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]],$f=De("Sparkles",nN);/**
|
||
* @license lucide-react v0.475.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const lN=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],aN=De("Sun",lN);/**
|
||
* @license lucide-react v0.475.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const iN=[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]],yr=De("Terminal",iN);/**
|
||
* @license lucide-react v0.475.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const rN=[["path",{d:"m19 5 3-3",key:"yk6iyv"}],["path",{d:"m2 22 3-3",key:"19mgm9"}],["path",{d:"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z",key:"goz73y"}],["path",{d:"M7.5 13.5 10 11",key:"7xgeeb"}],["path",{d:"M10.5 16.5 13 14",key:"10btkg"}],["path",{d:"m12 6 6 6 2.3-2.3a2.4 2.4 0 0 0 0-3.4l-2.6-2.6a2.4 2.4 0 0 0-3.4 0Z",key:"1snsnr"}]],uN=De("Unplug",rN);/**
|
||
* @license lucide-react v0.475.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const oN=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],cN=De("User",oN);/**
|
||
* @license lucide-react v0.475.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const sN=[["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"}]],fN=De("Users",sN);var dN=Object.defineProperty,xd=(i,u)=>dN(i,"name",{value:u,configurable:!0});function Wf(i,u){if(typeof i=="function")return i(u);i!=null&&(i.current=u)}xd(Wf,"setRef");function ua(...i){return u=>{let c=!1;const o=i.map(s=>{const d=Wf(s,u);return!c&&typeof d=="function"&&(c=!0),d});if(c)return()=>{for(let s=0;s<o.length;s++){const d=o[s];typeof d=="function"?d():Wf(i[s],null)}}}}xd(ua,"composeRefs");function Dt(...i){return b.useCallback(ua(...i),i)}xd(Dt,"useComposedRefs");var mN=Object.defineProperty,It=(i,u)=>mN(i,"name",{value:u,configurable:!0});function zl(i){const u=b.forwardRef((c,o)=>{let{children:s,...d}=c,h=null,v=!1;const g=[];s=Iy(s),b.Children.forEach(s,N=>{var A;if(Zy(N)){v=!0;const j=N;let z="child"in j.props?j.props.child:j.props.children;for(;Sd(z)&&typeof vo=="function";)z=vo(z._payload);h=gN(j,z),g.push((A=h==null?void 0:h.props)==null?void 0:A.children)}else g.push(N)}),h?h=b.cloneElement(h,void 0,g):!v&&b.Children.count(s)===1&&b.isValidElement(s)&&(h=s);const x=h?Xy(h):void 0,S=Dt(o,x);if(!h){if(s||s===0)throw new Error(v?bN(i):pN(i));return s}const p=Qy(d,h.props??{});return h.type!==b.Fragment&&(p.ref=o?S:x),b.cloneElement(h,p)});return u.displayName=`${i}.Slot`,u}It(zl,"createSlot");var hN=zl("Slot"),Vy=Symbol.for("radix.slottable");function vN(i){const u=It(c=>"child"in c?c.children(c.child):c.children,"Slottable");return u.displayName=`${i}.Slottable`,u.__radixId=Vy,u}It(vN,"createSlottable");var gN=It((i,u)=>"child"in i.props?b.isValidElement(u)?b.cloneElement(u,void 0,i.props.children(u.props.children)):null:b.isValidElement(u)?u:null,"getSlottableElementFromSlottable");function Qy(i,u){const c={...u};for(const o in u){const s=i[o],d=u[o];/^on[A-Z]/.test(o)?s&&d?c[o]=(...v)=>{const g=d(...v);return s(...v),g}:s&&(c[o]=s):o==="style"?c[o]={...s,...d}:o==="className"?c[o]=[s,d].filter(Boolean).join(" "):o==="aria-describedby"&&(c[o]=Jy(d,s))}return{...i,...c}}It(Qy,"mergeProps");function Xy(i){var o,s;let u=(o=Object.getOwnPropertyDescriptor(i.props,"ref"))==null?void 0:o.get,c=u&&"isReactWarning"in u&&u.isReactWarning;return c?i.ref:(u=(s=Object.getOwnPropertyDescriptor(i,"ref"))==null?void 0:s.get,c=u&&"isReactWarning"in u&&u.isReactWarning,c?i.props.ref:i.props.ref||i.ref)}It(Xy,"getElementRef");function Zy(i){return b.isValidElement(i)&&typeof i.type=="function"&&"__radixId"in i.type&&i.type.__radixId===Vy}It(Zy,"isSlottable");var yN=Symbol.for("react.lazy");function Sd(i){return i!=null&&typeof i=="object"&&"$$typeof"in i&&i.$$typeof===yN&&"_payload"in i&&Ky(i._payload)}It(Sd,"isLazyComponent");function Ky(i){return typeof i=="object"&&i!==null&&"then"in i}It(Ky,"isPromiseLike");function Iy(i){let u=i;for(;Sd(u)&&typeof vo=="function";)u=vo(u._payload);return u}It(Iy,"useUnwrappedLazy");function Jy(...i){const u=new Set;for(const c of i)if(typeof c=="string")for(const o of String(c).trim().split(/\s+/))o&&u.add(o);return u.size>0?Array.from(u).join(" "):void 0}It(Jy,"concatAriaDescribedby");var pN=It(i=>`${i} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),bN=It(i=>`${i} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),vo=sa[" use ".trim().toString()];function Fy(i){var u,c,o="";if(typeof i=="string"||typeof i=="number")o+=i;else if(typeof i=="object")if(Array.isArray(i)){var s=i.length;for(u=0;u<s;u++)i[u]&&(c=Fy(i[u]))&&(o&&(o+=" "),o+=c)}else for(c in i)i[c]&&(o&&(o+=" "),o+=c);return o}function Py(){for(var i,u,c=0,o="",s=arguments.length;c<s;c++)(i=arguments[c])&&(u=Fy(i))&&(o&&(o+=" "),o+=u);return o}const B0=i=>typeof i=="boolean"?`${i}`:i===0?"0":i,k0=Py,$y=(i,u)=>c=>{var o;if((u==null?void 0:u.variants)==null)return k0(i,c==null?void 0:c.class,c==null?void 0:c.className);const{variants:s,defaultVariants:d}=u,h=Object.keys(s).map(x=>{const S=c==null?void 0:c[x],p=d==null?void 0:d[x];if(S===null)return null;const N=B0(S)||B0(p);return s[x][N]}),v=c&&Object.entries(c).reduce((x,S)=>{let[p,N]=S;return N===void 0||(x[p]=N),x},{}),g=u==null||(o=u.compoundVariants)===null||o===void 0?void 0:o.reduce((x,S)=>{let{class:p,className:N,...A}=S;return Object.entries(A).every(j=>{let[z,H]=j;return Array.isArray(H)?H.includes({...d,...v}[z]):{...d,...v}[z]===H})?[...x,p,N]:x},[]);return k0(i,h,g,c==null?void 0:c.class,c==null?void 0:c.className)},xN=(i,u)=>{const c=new Array(i.length+u.length);for(let o=0;o<i.length;o++)c[o]=i[o];for(let o=0;o<u.length;o++)c[i.length+o]=u[o];return c},SN=(i,u)=>({classGroupId:i,validator:u}),Wy=(i=new Map,u=null,c)=>({nextPart:i,validators:u,classGroupId:c}),go="-",L0=[],NN="arbitrary..",CN=i=>{const u=wN(i),{conflictingClassGroups:c,conflictingClassGroupModifiers:o}=i;return{getClassGroupId:h=>{if(h.startsWith("[")&&h.endsWith("]"))return EN(h);const v=h.split(go),g=v[0]===""&&v.length>1?1:0;return e1(v,g,u)},getConflictingClassGroupIds:(h,v)=>{if(v){const g=o[h],x=c[h];return g?x?xN(x,g):g:x||L0}return c[h]||L0}}},e1=(i,u,c)=>{if(i.length-u===0)return c.classGroupId;const s=i[u],d=c.nextPart.get(s);if(d){const x=e1(i,u+1,d);if(x)return x}const h=c.validators;if(h===null)return;const v=u===0?i.join(go):i.slice(u).join(go),g=h.length;for(let x=0;x<g;x++){const S=h[x];if(S.validator(v))return S.classGroupId}},EN=i=>i.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const u=i.slice(1,-1),c=u.indexOf(":"),o=u.slice(0,c);return o?NN+o:void 0})(),wN=i=>{const{theme:u,classGroups:c}=i;return TN(c,u)},TN=(i,u)=>{const c=Wy();for(const o in i){const s=i[o];Nd(s,c,o,u)}return c},Nd=(i,u,c,o)=>{const s=i.length;for(let d=0;d<s;d++){const h=i[d];jN(h,u,c,o)}},jN=(i,u,c,o)=>{if(typeof i=="string"){_N(i,u,c);return}if(typeof i=="function"){AN(i,u,c,o);return}RN(i,u,c,o)},_N=(i,u,c)=>{const o=i===""?u:t1(u,i);o.classGroupId=c},AN=(i,u,c,o)=>{if(MN(i)){Nd(i(o),u,c,o);return}u.validators===null&&(u.validators=[]),u.validators.push(SN(c,i))},RN=(i,u,c,o)=>{const s=Object.entries(i),d=s.length;for(let h=0;h<d;h++){const[v,g]=s[h];Nd(g,t1(u,v),c,o)}},t1=(i,u)=>{let c=i;const o=u.split(go),s=o.length;for(let d=0;d<s;d++){const h=o[d];let v=c.nextPart.get(h);v||(v=Wy(),c.nextPart.set(h,v)),c=v}return c},MN=i=>"isThemeGetter"in i&&i.isThemeGetter===!0,ON=i=>{if(i<1)return{get:()=>{},set:()=>{}};let u=0,c=Object.create(null),o=Object.create(null);const s=(d,h)=>{c[d]=h,u++,u>i&&(u=0,o=c,c=Object.create(null))};return{get(d){let h=c[d];if(h!==void 0)return h;if((h=o[d])!==void 0)return s(d,h),h},set(d,h){d in c?c[d]=h:s(d,h)}}},ed="!",H0=":",zN=[],q0=(i,u,c,o,s)=>({modifiers:i,hasImportantModifier:u,baseClassName:c,maybePostfixModifierPosition:o,isExternal:s}),DN=i=>{const{prefix:u,experimentalParseClassName:c}=i;let o=s=>{const d=[];let h=0,v=0,g=0,x;const S=s.length;for(let z=0;z<S;z++){const H=s[z];if(h===0&&v===0){if(H===H0){d.push(s.slice(g,z)),g=z+1;continue}if(H==="/"){x=z;continue}}H==="["?h++:H==="]"?h--:H==="("?v++:H===")"&&v--}const p=d.length===0?s:s.slice(g);let N=p,A=!1;p.endsWith(ed)?(N=p.slice(0,-1),A=!0):p.startsWith(ed)&&(N=p.slice(1),A=!0);const j=x&&x>g?x-g:void 0;return q0(d,A,N,j)};if(u){const s=u+H0,d=o;o=h=>h.startsWith(s)?d(h.slice(s.length)):q0(zN,!1,h,void 0,!0)}if(c){const s=o;o=d=>c({className:d,parseClassName:s})}return o},UN=i=>{const u=new Map;return i.orderSensitiveModifiers.forEach((c,o)=>{u.set(c,1e6+o)}),c=>{const o=[];let s=[];for(let d=0;d<c.length;d++){const h=c[d],v=h[0]==="[",g=u.has(h);v||g?(s.length>0&&(s.sort(),o.push(...s),s=[]),o.push(h)):s.push(h)}return s.length>0&&(s.sort(),o.push(...s)),o}},BN=i=>({cache:ON(i.cacheSize),parseClassName:DN(i),sortModifiers:UN(i),postfixLookupClassGroupIds:kN(i),...CN(i)}),kN=i=>{const u=Object.create(null),c=i.postfixLookupClassGroups;if(c)for(let o=0;o<c.length;o++)u[c[o]]=!0;return u},LN=/\s+/,HN=(i,u)=>{const{parseClassName:c,getClassGroupId:o,getConflictingClassGroupIds:s,sortModifiers:d,postfixLookupClassGroupIds:h}=u,v=[],g=i.trim().split(LN);let x="";for(let S=g.length-1;S>=0;S-=1){const p=g[S],{isExternal:N,modifiers:A,hasImportantModifier:j,baseClassName:z,maybePostfixModifierPosition:H}=c(p);if(N){x=p+(x.length>0?" "+x:x);continue}let q=!!H,G;if(q){const E=z.substring(0,H);G=o(E);const R=G&&h[G]?o(z):void 0;R&&R!==G&&(G=R,q=!1)}else G=o(z);if(!G){if(!q){x=p+(x.length>0?" "+x:x);continue}if(G=o(z),!G){x=p+(x.length>0?" "+x:x);continue}q=!1}const k=A.length===0?"":A.length===1?A[0]:d(A).join(":"),V=j?k+ed:k,K=V+G;if(v.indexOf(K)>-1)continue;v.push(K);const _=s(G,q);for(let E=0;E<_.length;++E){const R=_[E];v.push(V+R)}x=p+(x.length>0?" "+x:x)}return x},qN=(...i)=>{let u=0,c,o,s="";for(;u<i.length;)(c=i[u++])&&(o=n1(c))&&(s&&(s+=" "),s+=o);return s},n1=i=>{if(typeof i=="string")return i;let u,c="";for(let o=0;o<i.length;o++)i[o]&&(u=n1(i[o]))&&(c&&(c+=" "),c+=u);return c},GN=(i,...u)=>{let c,o,s,d;const h=g=>{const x=u.reduce((S,p)=>p(S),i());return c=BN(x),o=c.cache.get,s=c.cache.set,d=v,v(g)},v=g=>{const x=o(g);if(x)return x;const S=HN(g,c);return s(g,S),S};return d=h,(...g)=>d(qN(...g))},YN=[],it=i=>{const u=c=>c[i]||YN;return u.isThemeGetter=!0,u.themeKey=i,u},l1=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,a1=/^\((?:(\w[\w-]*):)?(.+)\)$/i,VN=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,QN=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,XN=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,ZN=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/,KN=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,IN=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ml=i=>VN.test(i),Te=i=>!!i&&!Number.isNaN(Number(i)),Rn=i=>!!i&&Number.isInteger(Number(i)),gf=i=>i.endsWith("%")&&Te(i.slice(0,-1)),Pn=i=>QN.test(i),i1=()=>!0,JN=i=>XN.test(i)&&!ZN.test(i),Cd=()=>!1,FN=i=>KN.test(i),PN=i=>IN.test(i),$N=i=>!oe(i)&&!se(i),WN=i=>i.startsWith("@container")&&(i[10]==="/"&&i[11]!==void 0||i[11]==="s"&&i[16]!==void 0&&i.startsWith("-size/",10)||i[11]==="n"&&i[18]!==void 0&&i.startsWith("-normal/",10)),e4=i=>Bl(i,o1,Cd),oe=i=>l1.test(i),ra=i=>Bl(i,c1,JN),G0=i=>Bl(i,o4,Te),t4=i=>Bl(i,f1,i1),n4=i=>Bl(i,s1,Cd),Y0=i=>Bl(i,r1,Cd),l4=i=>Bl(i,u1,PN),to=i=>Bl(i,d1,FN),se=i=>a1.test(i),mr=i=>fa(i,c1),a4=i=>fa(i,s1),V0=i=>fa(i,r1),i4=i=>fa(i,o1),r4=i=>fa(i,u1),no=i=>fa(i,d1,!0),u4=i=>fa(i,f1,!0),Bl=(i,u,c)=>{const o=l1.exec(i);return o?o[1]?u(o[1]):c(o[2]):!1},fa=(i,u,c=!1)=>{const o=a1.exec(i);return o?o[1]?u(o[1]):c:!1},r1=i=>i==="position"||i==="percentage",u1=i=>i==="image"||i==="url",o1=i=>i==="length"||i==="size"||i==="bg-size",c1=i=>i==="length",o4=i=>i==="number",s1=i=>i==="family-name",f1=i=>i==="number"||i==="weight",d1=i=>i==="shadow",c4=()=>{const i=it("color"),u=it("font"),c=it("text"),o=it("font-weight"),s=it("tracking"),d=it("leading"),h=it("breakpoint"),v=it("container"),g=it("spacing"),x=it("radius"),S=it("shadow"),p=it("inset-shadow"),N=it("text-shadow"),A=it("drop-shadow"),j=it("blur"),z=it("perspective"),H=it("aspect"),q=it("ease"),G=it("animate"),k=()=>["auto","avoid","all","avoid-page","page","left","right","column"],V=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],K=()=>[...V(),se,oe],_=()=>["auto","hidden","clip","visible","scroll"],E=()=>["auto","contain","none"],R=()=>[se,oe,g],Q=()=>[Ml,"full","auto",...R()],te=()=>[Rn,"none","subgrid",se,oe],W=()=>["auto",{span:["full",Rn,se,oe]},Rn,se,oe],P=()=>[Rn,"auto",se,oe],ne=()=>["auto","min","max","fr",se,oe],re=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ge=()=>["start","end","center","stretch","center-safe","end-safe"],F=()=>["auto",...R()],ae=()=>[Ml,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...R()],ce=()=>[v,Ml,"screen","full","dvw","lvw","svw","min","max","fit",...R()],xe=()=>[Ml,"screen","full","lh","dvh","lvh","svh","min","max","fit",...R()],I=()=>[i,se,oe],Se=()=>[...V(),V0,Y0,{position:[se,oe]}],J=()=>["no-repeat",{repeat:["","x","y","space","round"]}],me=()=>["auto","cover","contain",i4,e4,{size:[se,oe]}],w=()=>[gf,mr,ra],U=()=>["","none","full",x,se,oe],$=()=>["",Te,mr,ra],ee=()=>["solid","dashed","dotted","double"],he=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ie=()=>[Te,gf,V0,Y0],Ne=()=>["","none",j,se,oe],fe=()=>["none",Te,se,oe],ye=()=>["none",Te,se,oe],Ut=()=>[Te,se,oe],tl=()=>[Ml,"full",...R()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Pn],breakpoint:[Pn],color:[i1],container:[Pn],"drop-shadow":[Pn],ease:["in","out","in-out"],font:[$N],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Pn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Pn],shadow:[Pn],spacing:["px",Te],text:[Pn],"text-shadow":[Pn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ml,oe,se,H]}],container:["container"],"container-type":[{"@container":["","normal","size",se,oe]}],"container-named":[WN],columns:[{columns:[Te,"auto",oe,se,v]}],"break-after":[{"break-after":k()}],"break-before":[{"break-before":k()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:K()}],overflow:[{overflow:_()}],"overflow-x":[{"overflow-x":_()}],"overflow-y":[{"overflow-y":_()}],overscroll:[{overscroll:E()}],"overscroll-x":[{"overscroll-x":E()}],"overscroll-y":[{"overscroll-y":E()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:Q()}],"inset-x":[{"inset-x":Q()}],"inset-y":[{"inset-y":Q()}],start:[{"inset-s":Q(),start:Q()}],end:[{"inset-e":Q(),end:Q()}],"inset-bs":[{"inset-bs":Q()}],"inset-be":[{"inset-be":Q()}],top:[{top:Q()}],right:[{right:Q()}],bottom:[{bottom:Q()}],left:[{left:Q()}],visibility:["visible","invisible","collapse"],z:[{z:[Rn,"auto",se,oe]}],basis:[{basis:[Ml,"full","auto",v,...R()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Te,Ml,"auto","initial","none",oe]}],grow:[{grow:["",Te,se,oe]}],shrink:[{shrink:["",Te,se,oe]}],order:[{order:[Rn,"first","last","none",se,oe]}],"grid-cols":[{"grid-cols":te()}],"col-start-end":[{col:W()}],"col-start":[{"col-start":P()}],"col-end":[{"col-end":P()}],"grid-rows":[{"grid-rows":te()}],"row-start-end":[{row:W()}],"row-start":[{"row-start":P()}],"row-end":[{"row-end":P()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ne()}],"auto-rows":[{"auto-rows":ne()}],gap:[{gap:R()}],"gap-x":[{"gap-x":R()}],"gap-y":[{"gap-y":R()}],"justify-content":[{justify:[...re(),"normal"]}],"justify-items":[{"justify-items":[...ge(),"normal"]}],"justify-self":[{"justify-self":["auto",...ge()]}],"align-content":[{content:["normal",...re()]}],"align-items":[{items:[...ge(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ge(),{baseline:["","last"]}]}],"place-content":[{"place-content":re()}],"place-items":[{"place-items":[...ge(),"baseline"]}],"place-self":[{"place-self":["auto",...ge()]}],p:[{p:R()}],px:[{px:R()}],py:[{py:R()}],ps:[{ps:R()}],pe:[{pe:R()}],pbs:[{pbs:R()}],pbe:[{pbe:R()}],pt:[{pt:R()}],pr:[{pr:R()}],pb:[{pb:R()}],pl:[{pl:R()}],m:[{m:F()}],mx:[{mx:F()}],my:[{my:F()}],ms:[{ms:F()}],me:[{me:F()}],mbs:[{mbs:F()}],mbe:[{mbe:F()}],mt:[{mt:F()}],mr:[{mr:F()}],mb:[{mb:F()}],ml:[{ml:F()}],"space-x":[{"space-x":R()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":R()}],"space-y-reverse":["space-y-reverse"],size:[{size:ae()}],"inline-size":[{inline:["auto",...ce()]}],"min-inline-size":[{"min-inline":["auto",...ce()]}],"max-inline-size":[{"max-inline":["none",...ce()]}],"block-size":[{block:["auto",...xe()]}],"min-block-size":[{"min-block":["auto",...xe()]}],"max-block-size":[{"max-block":["none",...xe()]}],w:[{w:[v,"screen",...ae()]}],"min-w":[{"min-w":[v,"screen","none",...ae()]}],"max-w":[{"max-w":[v,"screen","none","prose",{screen:[h]},...ae()]}],h:[{h:["screen","lh",...ae()]}],"min-h":[{"min-h":["screen","lh","none",...ae()]}],"max-h":[{"max-h":["screen","lh","none",...ae()]}],"font-size":[{text:["base",c,mr,ra]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,u4,t4]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",gf,oe]}],"font-family":[{font:[a4,n4,u]}],"font-features":[{"font-features":[oe]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[s,se,oe]}],"line-clamp":[{"line-clamp":[Te,"none",se,G0]}],leading:[{leading:["none",d,...R()]}],"list-image":[{"list-image":["none",se,oe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",se,oe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:I()}],"text-color":[{text:I()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ee(),"wavy"]}],"text-decoration-thickness":[{decoration:[Te,"from-font","auto",se,ra]}],"text-decoration-color":[{decoration:I()}],"underline-offset":[{"underline-offset":[Te,"auto",se,oe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:R()}],"tab-size":[{tab:[Rn,se,oe]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",se,oe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",se,oe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Se()}],"bg-repeat":[{bg:J()}],"bg-size":[{bg:me()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Rn,se,oe],radial:["",se,oe],conic:["",Rn,se,oe]},r4,l4]}],"bg-color":[{bg:I()}],"gradient-from-pos":[{from:w()}],"gradient-via-pos":[{via:w()}],"gradient-to-pos":[{to:w()}],"gradient-from":[{from:I()}],"gradient-via":[{via:I()}],"gradient-to":[{to:I()}],rounded:[{rounded:U()}],"rounded-s":[{"rounded-s":U()}],"rounded-e":[{"rounded-e":U()}],"rounded-t":[{"rounded-t":U()}],"rounded-r":[{"rounded-r":U()}],"rounded-b":[{"rounded-b":U()}],"rounded-l":[{"rounded-l":U()}],"rounded-ss":[{"rounded-ss":U()}],"rounded-se":[{"rounded-se":U()}],"rounded-ee":[{"rounded-ee":U()}],"rounded-es":[{"rounded-es":U()}],"rounded-tl":[{"rounded-tl":U()}],"rounded-tr":[{"rounded-tr":U()}],"rounded-br":[{"rounded-br":U()}],"rounded-bl":[{"rounded-bl":U()}],"border-w":[{border:$()}],"border-w-x":[{"border-x":$()}],"border-w-y":[{"border-y":$()}],"border-w-s":[{"border-s":$()}],"border-w-e":[{"border-e":$()}],"border-w-bs":[{"border-bs":$()}],"border-w-be":[{"border-be":$()}],"border-w-t":[{"border-t":$()}],"border-w-r":[{"border-r":$()}],"border-w-b":[{"border-b":$()}],"border-w-l":[{"border-l":$()}],"divide-x":[{"divide-x":$()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":$()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ee(),"hidden","none"]}],"divide-style":[{divide:[...ee(),"hidden","none"]}],"border-color":[{border:I()}],"border-color-x":[{"border-x":I()}],"border-color-y":[{"border-y":I()}],"border-color-s":[{"border-s":I()}],"border-color-e":[{"border-e":I()}],"border-color-bs":[{"border-bs":I()}],"border-color-be":[{"border-be":I()}],"border-color-t":[{"border-t":I()}],"border-color-r":[{"border-r":I()}],"border-color-b":[{"border-b":I()}],"border-color-l":[{"border-l":I()}],"divide-color":[{divide:I()}],"outline-style":[{outline:[...ee(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Te,se,oe]}],"outline-w":[{outline:["",Te,mr,ra]}],"outline-color":[{outline:I()}],shadow:[{shadow:["","inner","none",S,no,to]}],"shadow-color":[{shadow:I()}],"inset-shadow":[{"inset-shadow":["none",p,no,to]}],"inset-shadow-color":[{"inset-shadow":I()}],"ring-w":[{ring:$()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:I()}],"ring-offset-w":[{"ring-offset":[Te,ra]}],"ring-offset-color":[{"ring-offset":I()}],"inset-ring-w":[{"inset-ring":$()}],"inset-ring-color":[{"inset-ring":I()}],"text-shadow":[{"text-shadow":["none",N,no,to]}],"text-shadow-color":[{"text-shadow":I()}],opacity:[{opacity:[Te,se,oe]}],"mix-blend":[{"mix-blend":[...he(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":he()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Te]}],"mask-image-linear-from-pos":[{"mask-linear-from":ie()}],"mask-image-linear-to-pos":[{"mask-linear-to":ie()}],"mask-image-linear-from-color":[{"mask-linear-from":I()}],"mask-image-linear-to-color":[{"mask-linear-to":I()}],"mask-image-t-from-pos":[{"mask-t-from":ie()}],"mask-image-t-to-pos":[{"mask-t-to":ie()}],"mask-image-t-from-color":[{"mask-t-from":I()}],"mask-image-t-to-color":[{"mask-t-to":I()}],"mask-image-r-from-pos":[{"mask-r-from":ie()}],"mask-image-r-to-pos":[{"mask-r-to":ie()}],"mask-image-r-from-color":[{"mask-r-from":I()}],"mask-image-r-to-color":[{"mask-r-to":I()}],"mask-image-b-from-pos":[{"mask-b-from":ie()}],"mask-image-b-to-pos":[{"mask-b-to":ie()}],"mask-image-b-from-color":[{"mask-b-from":I()}],"mask-image-b-to-color":[{"mask-b-to":I()}],"mask-image-l-from-pos":[{"mask-l-from":ie()}],"mask-image-l-to-pos":[{"mask-l-to":ie()}],"mask-image-l-from-color":[{"mask-l-from":I()}],"mask-image-l-to-color":[{"mask-l-to":I()}],"mask-image-x-from-pos":[{"mask-x-from":ie()}],"mask-image-x-to-pos":[{"mask-x-to":ie()}],"mask-image-x-from-color":[{"mask-x-from":I()}],"mask-image-x-to-color":[{"mask-x-to":I()}],"mask-image-y-from-pos":[{"mask-y-from":ie()}],"mask-image-y-to-pos":[{"mask-y-to":ie()}],"mask-image-y-from-color":[{"mask-y-from":I()}],"mask-image-y-to-color":[{"mask-y-to":I()}],"mask-image-radial":[{"mask-radial":[se,oe]}],"mask-image-radial-from-pos":[{"mask-radial-from":ie()}],"mask-image-radial-to-pos":[{"mask-radial-to":ie()}],"mask-image-radial-from-color":[{"mask-radial-from":I()}],"mask-image-radial-to-color":[{"mask-radial-to":I()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":V()}],"mask-image-conic-pos":[{"mask-conic":[Te]}],"mask-image-conic-from-pos":[{"mask-conic-from":ie()}],"mask-image-conic-to-pos":[{"mask-conic-to":ie()}],"mask-image-conic-from-color":[{"mask-conic-from":I()}],"mask-image-conic-to-color":[{"mask-conic-to":I()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Se()}],"mask-repeat":[{mask:J()}],"mask-size":[{mask:me()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",se,oe]}],filter:[{filter:["","none",se,oe]}],blur:[{blur:Ne()}],brightness:[{brightness:[Te,se,oe]}],contrast:[{contrast:[Te,se,oe]}],"drop-shadow":[{"drop-shadow":["","none",A,no,to]}],"drop-shadow-color":[{"drop-shadow":I()}],grayscale:[{grayscale:["",Te,se,oe]}],"hue-rotate":[{"hue-rotate":[Te,se,oe]}],invert:[{invert:["",Te,se,oe]}],saturate:[{saturate:[Te,se,oe]}],sepia:[{sepia:["",Te,se,oe]}],"backdrop-filter":[{"backdrop-filter":["","none",se,oe]}],"backdrop-blur":[{"backdrop-blur":Ne()}],"backdrop-brightness":[{"backdrop-brightness":[Te,se,oe]}],"backdrop-contrast":[{"backdrop-contrast":[Te,se,oe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Te,se,oe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Te,se,oe]}],"backdrop-invert":[{"backdrop-invert":["",Te,se,oe]}],"backdrop-opacity":[{"backdrop-opacity":[Te,se,oe]}],"backdrop-saturate":[{"backdrop-saturate":[Te,se,oe]}],"backdrop-sepia":[{"backdrop-sepia":["",Te,se,oe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":R()}],"border-spacing-x":[{"border-spacing-x":R()}],"border-spacing-y":[{"border-spacing-y":R()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",se,oe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Te,"initial",se,oe]}],ease:[{ease:["linear","initial",q,se,oe]}],delay:[{delay:[Te,se,oe]}],animate:[{animate:["none",G,se,oe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[z,se,oe]}],"perspective-origin":[{"perspective-origin":K()}],rotate:[{rotate:fe()}],"rotate-x":[{"rotate-x":fe()}],"rotate-y":[{"rotate-y":fe()}],"rotate-z":[{"rotate-z":fe()}],scale:[{scale:ye()}],"scale-x":[{"scale-x":ye()}],"scale-y":[{"scale-y":ye()}],"scale-z":[{"scale-z":ye()}],"scale-3d":["scale-3d"],skew:[{skew:Ut()}],"skew-x":[{"skew-x":Ut()}],"skew-y":[{"skew-y":Ut()}],transform:[{transform:[se,oe,"","none","gpu","cpu"]}],"transform-origin":[{origin:K()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:tl()}],"translate-x":[{"translate-x":tl()}],"translate-y":[{"translate-y":tl()}],"translate-z":[{"translate-z":tl()}],"translate-none":["translate-none"],zoom:[{zoom:[Rn,se,oe]}],accent:[{accent:I()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:I()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",se,oe]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":I()}],"scrollbar-track-color":[{"scrollbar-track":I()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mbs":[{"scroll-mbs":R()}],"scroll-mbe":[{"scroll-mbe":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pbs":[{"scroll-pbs":R()}],"scroll-pbe":[{"scroll-pbe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",se,oe]}],fill:[{fill:["none",...I()]}],"stroke-w":[{stroke:[Te,mr,ra,G0]}],stroke:[{stroke:["none",...I()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["start","end","right","left"],"inset-y":["inset-bs","inset-be","top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["ps","pe","pr","pl"],py:["pbs","pbe","pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["ms","me","mr","ml"],my:["mbs","mbe","mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-s","border-w-e","border-w-r","border-w-l"],"border-w-y":["border-w-bs","border-w-be","border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-s","border-color-e","border-color-r","border-color-l"],"border-color-y":["border-color-bs","border-color-be","border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-ms","scroll-me","scroll-mr","scroll-ml"],"scroll-my":["scroll-mbs","scroll-mbe","scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-ps","scroll-pe","scroll-pr","scroll-pl"],"scroll-py":["scroll-pbs","scroll-pbe","scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},s4=GN(c4);function Ze(...i){return s4(Py(i))}const f4=$y("inline-flex items-center justify-center gap-1.5 whitespace-nowrap rounded-lg text-xs font-medium transition-all cursor-pointer select-none disabled:pointer-events-none disabled:opacity-50 shrink-0",{variants:{variant:{default:"hl-btn-primary shadow-xs",outline:"hl-btn-outline",secondary:"hl-muted border hl-border hover:opacity-90",ghost:"hover:bg-[var(--bg-muted)]",accent:"border border-[var(--accent)] bg-[var(--accent-soft)] text-[var(--accent)] font-semibold hover:opacity-90"},size:{default:"h-8 px-3 py-1.5",sm:"h-7 px-2.5 text-[11px] rounded-md",lg:"h-9 px-4 text-xs",icon:"h-8 w-8 p-0"}},defaultVariants:{variant:"default",size:"default"}}),Oe=b.forwardRef(({className:i,variant:u,size:c,asChild:o=!1,...s},d)=>{const h=o?hN:"button";return f.jsx(h,{className:Ze(f4({variant:u,size:c,className:i})),ref:d,...s})});Oe.displayName="Button";var d4=Object.defineProperty,vi=(i,u)=>d4(i,"name",{value:u,configurable:!0}),m1=!!(typeof window<"u"&&window.document&&window.document.createElement);function mt(i,u,{checkForDefaultPrevented:c=!0}={}){return vi(function(s){if(i==null||i(s),c===!1||!s||!s.defaultPrevented)return u==null?void 0:u(s)},"handleEvent")}vi(mt,"composeEventHandlers");function m4(i){var u;if(!m1)throw new Error("Cannot access window outside of the DOM");return((u=i==null?void 0:i.ownerDocument)==null?void 0:u.defaultView)??window}vi(m4,"getOwnerWindow");function td(i){if(!m1)throw new Error("Cannot access document outside of the DOM");return(i==null?void 0:i.ownerDocument)??document}vi(td,"getOwnerDocument");function h1(i,u=!1){const{activeElement:c}=td(i);if(!(c!=null&&c.nodeName))return null;if(v1(c)&&c.contentDocument)return h1(c.contentDocument.body,u);if(u){const o=c.getAttribute("aria-activedescendant");if(o){const s=td(c).getElementById(o);if(s)return s}}return c}vi(h1,"getActiveElement");function v1(i){return i.tagName==="IFRAME"}vi(v1,"isFrame");var h4=Object.defineProperty,rn=(i,u)=>h4(i,"name",{value:u,configurable:!0});function v4(i,u){const c=b.createContext(u);c.displayName=i+"Context";const o=rn(d=>{const{children:h,...v}=d,g=b.useMemo(()=>v,Object.values(v));return f.jsx(c.Provider,{value:g,children:h})},"Provider");o.displayName=i+"Provider";function s(d,h={}){const{optional:v=!1}=h,g=b.useContext(c);if(g)return g;if(u!==void 0)return u;if(!v)throw new Error(`\`${d}\` must be used within \`${i}\``)}return rn(s,"useContext"),[o,s]}rn(v4,"createContext");function da(i,u=[]){let c=[];function o(d,h){const v=b.createContext(h);v.displayName=d+"Context";const g=c.length;c=[...c,h];const x=rn(p=>{var q;const{scope:N,children:A,...j}=p,z=((q=N==null?void 0:N[i])==null?void 0:q[g])||v,H=b.useMemo(()=>j,Object.values(j));return f.jsx(z.Provider,{value:H,children:A})},"Provider");x.displayName=d+"Provider";function S(p,N,A={}){var q;const{optional:j=!1}=A,z=((q=N==null?void 0:N[i])==null?void 0:q[g])||v,H=b.useContext(z);if(H)return H;if(h!==void 0)return h;if(!j)throw new Error(`\`${p}\` must be used within \`${d}\``)}return rn(S,"useContext"),[x,S]}rn(o,"createContext");const s=rn(()=>{const d=c.map(h=>b.createContext(h));return rn(function(v){const g=(v==null?void 0:v[i])||d;return b.useMemo(()=>({[`__scope${i}`]:{...v,[i]:g}}),[v,g])},"useScope")},"createScope");return s.scopeName=i,[o,g1(s,...u)]}rn(da,"createContextScope");function g1(...i){const u=i[0];if(i.length===1)return u;const c=rn(()=>{const o=i.map(s=>({useScope:s(),scopeName:s.scopeName}));return rn(function(d){const h=o.reduce((v,{useScope:g,scopeName:x})=>{const p=g(d)[`__scope${x}`];return{...v,...p}},{});return b.useMemo(()=>({[`__scope${u.scopeName}`]:h}),[h])},"useComposedScopes")},"createScope");return c.scopeName=u.scopeName,c}rn(g1,"composeContextScopes");var on=globalThis!=null&&globalThis.document?b.useLayoutEffect:()=>{},g4=Object.defineProperty,ut=(i,u)=>g4(i,"name",{value:u,configurable:!0});function y1(i){const u=i+"CollectionProvider",[c,o]=da(u),[s,d]=c(u,{collectionRef:{current:null},itemMap:new Map}),h=ut(z=>{const{scope:H,children:q}=z,G=b.useRef(null),k=b.useRef(new Map).current;return f.jsx(s,{scope:H,itemMap:k,collectionRef:G,children:q})},"CollectionProvider");h.displayName=u;const v=i+"CollectionSlot",g=zl(v),x=b.forwardRef((z,H)=>{const{scope:q,children:G}=z,k=d(v,q),V=Dt(H,k.collectionRef);return f.jsx(g,{ref:V,children:G})});x.displayName=v;const S=i+"CollectionItemSlot",p="data-radix-collection-item",N=zl(S),A=b.forwardRef((z,H)=>{const{scope:q,children:G,...k}=z,V=b.useRef(null),K=Dt(H,V),_=d(S,q);return b.useEffect(()=>(_.itemMap.set(V,{ref:V,...k}),()=>void _.itemMap.delete(V))),f.jsx(N,{[p]:"",ref:K,children:G})});A.displayName=S;function j(z){const H=d(i+"CollectionConsumer",z);return b.useCallback(()=>{const G=H.collectionRef.current;if(!G)return[];const k=Array.from(G.querySelectorAll(`[${p}]`));return Array.from(H.itemMap.values()).sort((_,E)=>k.indexOf(_.ref.current)-k.indexOf(E.ref.current))},[H.collectionRef,H.itemMap])}return ut(j,"useCollection"),[{Provider:h,Slot:x,ItemSlot:A},j,o]}ut(y1,"createCollection");var Q0=new WeakMap,$e,Kt,lo=(Kt=class extends Map{constructor(c){super(c);x0(this,$e);cf(this,$e,[...super.keys()]),Q0.set(this,!0)}set(c,o){return Q0.get(this)&&!this.has(c)&&St(this,$e).push(c),super.set(c,o),this}insert(c,o,s){const d=this.has(o),h=d?this.size:this.size+1,v=Ed(c),g=v>=0?Math.min(v,h-1):Math.max(h+v,0);if(d?St(this,$e).indexOf(o)===g:g===this.size)return this.set(o,s),this;const x=St(this,$e).filter(p=>p!==o);x.splice(g,0,o);const S=x.map(p=>[p,p===o?s:this.get(p)]);this.clear();for(const[p,N]of S)this.set(p,N);return this}with(c,o,s){const d=new Kt(this);return d.insert(c,o,s),d}before(c){const o=St(this,$e).indexOf(c)-1;if(!(o<0))return this.entryAt(o)}setBefore(c,o,s){const d=St(this,$e).indexOf(c);if(d===-1)return this;const h=St(this,$e).indexOf(o),v=h!==-1&&h<d?d-1:d;return this.insert(v,o,s)}after(c){let o=St(this,$e).indexOf(c);if(o=o===-1||o===this.size-1?-1:o+1,o!==-1)return this.entryAt(o)}setAfter(c,o,s){const d=St(this,$e).indexOf(c);if(d===-1)return this;const h=St(this,$e).indexOf(o),v=h!==-1&&h<=d?d:d+1;return this.insert(v,o,s)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return cf(this,$e,[]),super.clear()}delete(c){const o=super.delete(c);return o&&St(this,$e).splice(St(this,$e).indexOf(c),1),o}deleteAt(c){const o=this.keyAt(c);return o!==void 0?this.delete(o):!1}at(c){const o=so(St(this,$e),c);if(o!==void 0)return this.get(o)}entryAt(c){const o=so(St(this,$e),c);if(o!==void 0)return[o,this.get(o)]}indexOf(c){return St(this,$e).indexOf(c)}keyAt(c){return so(St(this,$e),c)}from(c,o){const s=this.indexOf(c);if(s===-1)return;let d=s+o;return d<0&&(d=0),d>=this.size&&(d=this.size-1),this.at(d)}keyFrom(c,o){const s=this.indexOf(c);if(s===-1)return;let d=s+o;return d<0&&(d=0),d>=this.size&&(d=this.size-1),this.keyAt(d)}find(c,o){let s=0;for(const d of this){if(Reflect.apply(c,o,[d,s,this]))return d;s++}}findIndex(c,o){let s=0;for(const d of this){if(Reflect.apply(c,o,[d,s,this]))return s;s++}return-1}filter(c,o){const s=[];let d=0;for(const h of this)Reflect.apply(c,o,[h,d,this])&&s.push(h),d++;return new Kt(s)}map(c,o){const s=[];let d=0;for(const h of this)s.push([h[0],Reflect.apply(c,o,[h,d,this])]),d++;return new Kt(s)}reduce(...c){const[o,s]=c,d=c.length>1;if(!d&&this.size===0)throw new TypeError("Reduce of empty OrderedDict with no initial value");let h=0,v=s;for(const g of this)h===0&&!d?v=g:v=Reflect.apply(o,this,[v,g,h,this]),h++;return v}reduceRight(...c){const[o,s]=c,d=c.length>1;if(!d&&this.size===0)throw new TypeError("Reduce of empty OrderedDict with no initial value");let h=s;for(let v=this.size-1;v>=0;v--){const g=this.entryAt(v);v===this.size-1&&!d?h=g:h=Reflect.apply(o,this,[h,g,v,this])}return h}sort(c){if(typeof c!="function")throw new TypeError("OrderedDict.sort requires a compare function");const o=[...this.entries()].sort(c);this.clear();for(const[s,d]of o)this.set(s,d);return this}toSorted(c){if(typeof c!="function")throw new TypeError("OrderedDict.toSorted requires a compare function");const o=[...this.entries()].sort(c);return new Kt(o)}toReversed(){const c=new Kt;for(let o=this.size-1;o>=0;o--){const s=this.keyAt(o),d=this.get(s);c.set(s,d)}return c}toSpliced(...c){const o=[...this.entries()];return o.splice(...c),new Kt(o)}slice(c,o){const s=new Kt;for(const d of St(this,$e).slice(c,o))s.set(d,this.get(d));return s}every(c,o){let s=0;for(const d of this){if(!Reflect.apply(c,o,[d,s,this]))return!1;s++}return!0}some(c,o){let s=0;for(const d of this){if(Reflect.apply(c,o,[d,s,this]))return!0;s++}return!1}},$e=new WeakMap,ut(Kt,"OrderedDict"),Kt);function so(i,u){if("at"in Array.prototype)return Array.prototype.at.call(i,u);const c=p1(i,u);return c===-1?void 0:i[c]}ut(so,"at");function p1(i,u){const c=i.length,o=Ed(u),s=o>=0?o:c+o;return s<0||s>=c?-1:s}ut(p1,"toSafeIndex");function Ed(i){return i!==i||i===0?0:Math.trunc(i)}ut(Ed,"toSafeInteger");function y4(i){const u=i+"CollectionProvider",[c,o]=da(u),[s,d]=c(u);s.displayName=i+"CollectionStableContextProvider";const[h,v]=c(u);h.displayName=i+"CollectionStatefulContextProvider";const g=ut(({state:_,...E})=>_?f.jsx(S,{...E,state:_}):f.jsx(x,{...E}),"CollectionProvider");g.displayName=u;const x=ut(_=>{const E=G();return f.jsx(S,{..._,state:E})},"CollectionInit");x.displayName=i+"CollectionInit";const S=ut(_=>{const{scope:E,children:R,state:Q}=_,te=b.useRef(null),[W,P]=b.useState(null),ne=Dt(te,P),[re,ge]=Q,F=b.useRef(new lo),ae=b.useCallback(()=>{const ce=F.current;return S1(ce)||ce.sort(fo),ce},[]);return b.useEffect(()=>{if(!W)return;const ce=N1(()=>{ge(xe=>{const I=xe.toSorted(fo);return I.some(([J],me)=>xe.keyAt(me)!==J)?I:xe})});return ce.observe(W,{childList:!0,subtree:!0}),()=>{ce.disconnect()}},[W,ge]),f.jsx(s,{scope:E,collectionElementRef:ne,collectionElementRefObject:te,getCollection:ae,setCollection:ge,registryRef:F,children:f.jsx(h,{scope:E,collectionElement:W,collection:re,children:R})})},"CollectionProviderImpl");S.displayName=i+"CollectionProviderImpl";const p=i+"CollectionSlot",N=zl(p),A=b.forwardRef((_,E)=>{const{scope:R,children:Q}=_,te=d(p,R),W=Dt(E,te.collectionElementRef);return f.jsx(N,{ref:W,children:Q})});A.displayName=p;const j=i+"CollectionItemSlot",z="data-radix-collection-item",H=zl(j),q=b.forwardRef((_,E)=>{const{scope:R,children:Q,...te}=_,W=b.useRef(null),P=d(j,R),{setCollection:ne,registryRef:re}=P,ge=b.useRef(te);b1(ge.current,te)||(ge.current=te);const F=ge.current,ae=b.useCallback(I=>{const Se=re.current;I?Se.set(I,{...ge.current,element:I}):W.current&&Se.delete(W.current)},[re]),ce=Dt(E,ae,W);on(()=>{const I=W.current,Se=re.current;I&&Se.has(I)&&Se.set(I,{...F,element:I})},[F,re]);const xe=b.useRef(null);return b.useEffect(()=>{const I=W.current,Se=xe.current;((Se==null?void 0:Se.element)??null)===I&&(!I||(Se==null?void 0:Se.itemData)===F)||(xe.current=I?{element:I,itemData:F}:null,ne(J=>{const me=new lo(J);return Se&&Se.element!==I&&me.delete(Se.element),I&&me.set(I,{...F,element:I}),me.sort(fo)}))}),b.useEffect(()=>()=>{const I=xe.current;xe.current=null,I&&ne(Se=>{if(!Se.has(I.element))return Se;const J=new lo(Se);return J.delete(I.element),J})},[ne]),f.jsx(H,{[z]:"",ref:ce,children:Q})});q.displayName=j;function G(){return b.useState(new lo)}ut(G,"useInitCollection");function k(_){const{collection:E}=v(i+"CollectionConsumer",_);return E}ut(k,"useCollection");function V(_){const{getCollection:E}=d(i+"CollectionConsumer",_);return E}return ut(V,"useGetCollection"),[{Provider:g,Slot:A,ItemSlot:q},{createCollectionScope:o,useCollection:k,useGetCollection:V,useInitCollection:G}]}ut(y4,"createCollection");function b1(i,u){if(i===u)return!0;if(typeof i!="object"||typeof u!="object"||i==null||u==null)return!1;const c=Object.keys(i),o=Object.keys(u);if(c.length!==o.length)return!1;for(const s of c)if(!Object.prototype.hasOwnProperty.call(u,s)||i[s]!==u[s])return!1;return!0}ut(b1,"shallowEqual");function x1(i,u){return!!(u.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_PRECEDING)}ut(x1,"isElementPreceding");function S1(i){let u;for(const c of i.keys()){if(u){const o=u.compareDocumentPosition(c);if(!(o&Node.DOCUMENT_POSITION_DISCONNECTED)&&o&Node.DOCUMENT_POSITION_PRECEDING)return!1}u=c}return!0}ut(S1,"isInDocumentOrder");function fo(i,u){return!i[1].element||!u[1].element?0:x1(i[1].element,u[1].element)?-1:1}ut(fo,"sortByDocumentPosition");function N1(i){return new MutationObserver(c=>{for(const o of c)if(o.type==="childList"){i();return}})}ut(N1,"getChildListObserver");var p4=Object.defineProperty,b4=(i,u)=>p4(i,"name",{value:u,configurable:!0}),x4=sa[" useId ".trim().toString()]||(()=>{}),S4=0;function un(i){const[u,c]=b.useState(x4());return on(()=>{i||c(o=>o??String(S4++))},[i]),i||(u?`radix-${u}`:"")}b4(un,"useId");var C1=Uy(),N4=Object.defineProperty,C4=(i,u)=>N4(i,"name",{value:u,configurable:!0}),E4=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ie=E4.reduce((i,u)=>{const c=zl(`Primitive.${u}`),o=b.forwardRef((s,d)=>{const{asChild:h,...v}=s,g=h?c:u;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),f.jsx(g,{...v,ref:d})});return o.displayName=`Primitive.${u}`,{...i,[u]:o}},{});function E1(i,u){i&&C1.flushSync(()=>i.dispatchEvent(u))}C4(E1,"dispatchDiscreteCustomEvent");var w4=Object.defineProperty,T4=(i,u)=>w4(i,"name",{value:u,configurable:!0}),X0=sa[" useInsertionEffect ".trim().toString()];function oa(i){const u=b.useRef(i);return typeof X0=="function"?X0(()=>{u.current=i}):on(()=>{u.current=i}),b.useMemo(()=>((...c)=>{var o;return(o=u.current)==null?void 0:o.call(u,...c)}),[])}T4(oa,"useCallbackRef");var j4=Object.defineProperty,_4=(i,u)=>j4(i,"name",{value:u,configurable:!0}),Z0=sa[" useEffectEvent ".trim().toString()],K0=sa[" useInsertionEffect ".trim().toString()];function w1(i){if(typeof Z0=="function")return Z0(i);const u=b.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return typeof K0=="function"?K0(()=>{u.current=i}):on(()=>{u.current=i}),b.useMemo(()=>((...c)=>{var o;return(o=u.current)==null?void 0:o.call(u,...c)}),[])}_4(w1,"useEffectEvent");var A4=Object.defineProperty,xr=(i,u)=>A4(i,"name",{value:u,configurable:!0}),R4=sa[" useInsertionEffect ".trim().toString()]||on;function Sr({prop:i,defaultProp:u,onChange:c=xr(()=>{},"onChange"),caller:o}){const[s,d,h]=T1({defaultProp:u,onChange:c}),v=i!==void 0,g=v?i:s,x=b.useCallback(S=>{var p;if(v){const N=j1(S)?S(i):S;N!==i&&((p=h.current)==null||p.call(h,N))}else d(S)},[v,i,d,h]);return[g,x]}xr(Sr,"useControllableState");function T1({defaultProp:i,onChange:u}){const[c,o]=b.useState(i),s=b.useRef(c),d=b.useRef(u);return R4(()=>{d.current=u},[u]),b.useEffect(()=>{var h;s.current!==c&&((h=d.current)==null||h.call(d,c),s.current=c)},[c,s]),[c,o,d]}xr(T1,"useUncontrolledState");function j1(i){return typeof i=="function"}xr(j1,"isFunction");var I0=Symbol("RADIX:SYNC_STATE");function M4(i,u,c,o){const{prop:s,defaultProp:d,onChange:h,caller:v}=u,g=s!==void 0,x=w1(h),S=[{...c,state:d}];o&&S.push(o);const[p,N]=b.useReducer((H,q)=>{if(q.type===I0)return{...H,state:q.state};const G=i(H,q);return g&&!Object.is(G.state,H.state)&&x(G.state),G},...S),A=p.state,j=b.useRef(A);b.useEffect(()=>{j.current!==A&&(j.current=A,g||x(A))},[A,j,g]);const z=b.useMemo(()=>s!==void 0?{...p,state:s}:p,[p,s]);return b.useEffect(()=>{g&&!Object.is(s,p.state)&&N({type:I0,state:s})},[s,p.state,g]),[z,N]}xr(M4,"useControllableStateReducer");var O4=Object.defineProperty,z4=(i,u)=>O4(i,"name",{value:u,configurable:!0}),D4={LTR:"ltr"},U4=b.createContext(void 0);function wd(i){const u=b.useContext(U4);return i||u||D4.LTR}z4(wd,"useDirection");var B4=Object.defineProperty,Td=(i,u)=>B4(i,"name",{value:u,configurable:!0}),yf=!1;function _1(){const[i,u]=b.useState(yf);return b.useEffect(()=>{yf||(yf=!0,u(!0))},[]),i}Td(_1,"useIsHydrated");var A1=sa[" useSyncExternalStore ".trim().toString()];function R1(){return()=>{}}Td(R1,"subscribe");function M1(){return A1(R1,()=>!0,()=>!1)}Td(M1,"useIsHydratedModern");var k4=typeof A1=="function"?M1:_1,L4=Object.defineProperty,ma=(i,u)=>L4(i,"name",{value:u,configurable:!0}),pf="rovingFocusGroup.onEntryFocus",H4={bubbles:!1,cancelable:!0},So="RovingFocusGroup",[nd,O1,q4]=y1(So),[G4,z1]=da(So,[q4]),J0={Vertical:"vertical",Horizontal:"horizontal"},Y4={RTL:"rtl"},[V4,Q4]=G4(So),X4=b.forwardRef(ma(function(u,c){return f.jsx(nd.Provider,{scope:u.__scopeRovingFocusGroup,children:f.jsx(nd.Slot,{scope:u.__scopeRovingFocusGroup,children:f.jsx(Z4,{...u,ref:c})})})},"RovingFocusGroup")),Z4=b.forwardRef(ma(function(u,c){const{__scopeRovingFocusGroup:o,orientation:s,loop:d=!1,dir:h,currentTabStopId:v,defaultCurrentTabStopId:g,onCurrentTabStopIdChange:x,onEntryFocus:S,preventScrollOnEntryFocus:p=!1,...N}=u,A=b.useRef(null),j=Dt(c,A),z=wd(h),[H,q]=Sr({prop:v,defaultProp:g??null,onChange:x,caller:So}),[G,k]=b.useState(!1),V=oa(S),K=O1(o),_=b.useRef(!1),[E,R]=b.useState(0);return b.useEffect(()=>{const Q=A.current;if(Q)return Q.addEventListener(pf,V),()=>Q.removeEventListener(pf,V)},[V]),f.jsx(V4,{scope:o,orientation:s,dir:z,loop:d,currentTabStopId:H,onItemFocus:b.useCallback(Q=>q(Q),[q]),onItemShiftTab:b.useCallback(()=>k(!0),[]),onFocusableItemAdd:b.useCallback(()=>R(Q=>Q+1),[]),onFocusableItemRemove:b.useCallback(()=>R(Q=>Q-1),[]),children:f.jsx(Ie.div,{tabIndex:G||E===0?-1:0,"data-orientation":s,...N,ref:j,style:{outline:"none",...u.style},onMouseDown:mt(u.onMouseDown,()=>{_.current=!0}),onFocus:mt(u.onFocus,Q=>{const te=!_.current;if(Q.target===Q.currentTarget&&te&&!G){const W=new CustomEvent(pf,H4);if(Q.currentTarget.dispatchEvent(W),!W.defaultPrevented){const P=K().filter(ae=>ae.focusable),ne=P.find(ae=>ae.active),re=P.find(ae=>ae.id===H),F=[ne,re,...P].filter(Boolean).map(ae=>ae.ref.current);jd(F,p)}}_.current=!1}),onBlur:mt(u.onBlur,()=>k(!1))})})},"RovingFocusGroupImpl")),K4="RovingFocusGroupItem",I4=b.forwardRef(ma(function(u,c){const{__scopeRovingFocusGroup:o,focusable:s=!0,active:d=!1,tabStopId:h,children:v,...g}=u,x=un(),S=h||x,p=Q4(K4,o),N=p.currentTabStopId===S,A=O1(o),{onFocusableItemAdd:j,onFocusableItemRemove:z,currentTabStopId:H}=p,q=k4();return on(()=>{if(!(!q||!s))return j(),()=>z()},[q,s,j,z]),b.useEffect(()=>{if(!(q||!s))return j(),()=>z()},[q,s,j,z]),f.jsx(nd.ItemSlot,{scope:o,id:S,focusable:s,active:d,children:f.jsx(Ie.span,{tabIndex:N?0:-1,"data-orientation":p.orientation,...g,ref:c,onMouseDown:mt(u.onMouseDown,G=>{s?p.onItemFocus(S):G.preventDefault()}),onFocus:mt(u.onFocus,()=>p.onItemFocus(S)),onKeyDown:mt(u.onKeyDown,G=>{if(G.key==="Tab"&&G.shiftKey){p.onItemShiftTab();return}if(G.target!==G.currentTarget)return;const k=U1(G,p.orientation,p.dir);if(k!==void 0){if(G.metaKey||G.ctrlKey||G.altKey||G.shiftKey)return;G.preventDefault();let K=A().filter(_=>_.focusable).map(_=>_.ref.current);if(k==="last")K.reverse();else if(k==="prev"||k==="next"){k==="prev"&&K.reverse();const _=K.indexOf(G.currentTarget);K=p.loop?B1(K,_+1):K.slice(_+1)}setTimeout(()=>jd(K))}}),children:typeof v=="function"?v({isCurrentTabStop:N,hasTabStop:H!=null}):v})})},"RovingFocusGroupItem")),J4={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function D1(i,u){return u!==Y4.RTL?i:i==="ArrowLeft"?"ArrowRight":i==="ArrowRight"?"ArrowLeft":i}ma(D1,"getDirectionAwareKey");function U1(i,u,c){const o=D1(i.key,c);if(!(u===J0.Vertical&&["ArrowLeft","ArrowRight"].includes(o))&&!(u===J0.Horizontal&&["ArrowUp","ArrowDown"].includes(o)))return J4[o]}ma(U1,"getFocusIntent");function jd(i,u=!1){const c=document.activeElement;for(const o of i)if(o===c||(o.focus({preventScroll:u}),document.activeElement!==c))return}ma(jd,"focusFirst");function B1(i,u){return i.map((c,o)=>i[(u+o)%i.length])}ma(B1,"wrapArray");var F4=Object.defineProperty,Wn=(i,u)=>F4(i,"name",{value:u,configurable:!0});function k1(i,u){return b.useReducer((c,o)=>u[c][o]??c,i)}Wn(k1,"useStateMachine");var No=Wn(i=>{const{present:u,children:c}=i,o=L1(u),s=typeof c=="function"?c({present:o.isPresent}):b.Children.only(c),d=H1(o.ref,q1(s));return typeof c=="function"||o.isPresent?b.cloneElement(s,{ref:d}):null},"Presence");function L1(i){const[u,c]=b.useState(),o=b.useRef(null),s=b.useRef(i),d=b.useRef("none"),h=b.useRef(void 0),v=i?"mounted":"unmounted",[g,x]=k1(v,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return b.useEffect(()=>{g==="mounted"?(d.current=h.current??fi(o.current),h.current=void 0):d.current="none"},[g]),on(()=>{const S=o.current,p=s.current;if(p!==i){const A=d.current,j=fi(S);i?(h.current=j,x("MOUNT")):j==="none"||(S==null?void 0:S.display)==="none"?x("UNMOUNT"):x(p&&A!==j?"ANIMATION_OUT":"UNMOUNT"),s.current=i}},[i,x]),on(()=>{if(u){let S;const p=u.ownerDocument.defaultView??window,N=Wn(j=>{const H=fi(o.current).includes(CSS.escape(j.animationName));if(j.target===u&&H&&(x("ANIMATION_END"),!s.current)){const q=u.style.animationFillMode;u.style.animationFillMode="forwards",S=p.setTimeout(()=>{u.style.animationFillMode==="forwards"&&(u.style.animationFillMode=q)})}},"handleAnimationEnd"),A=Wn(j=>{j.target===u&&(d.current=fi(o.current))},"handleAnimationStart");return u.addEventListener("animationstart",A),u.addEventListener("animationcancel",N),u.addEventListener("animationend",N),()=>{p.clearTimeout(S),u.removeEventListener("animationstart",A),u.removeEventListener("animationcancel",N),u.removeEventListener("animationend",N)}}else x("ANIMATION_END")},[u,x]),{isPresent:["mounted","unmountSuspended"].includes(g),ref:b.useCallback(S=>{if(S){const p=getComputedStyle(S);o.current=p,h.current=fi(p)}else o.current=null;c(S)},[])}}Wn(L1,"usePresence");function ld(i,u){if(typeof i=="function")return i(u);i!=null&&(i.current=u)}Wn(ld,"setRef");function H1(...i){const u=b.useRef(i);return u.current=i,b.useCallback(c=>{const o=u.current;let s=!1;const d=o.map(h=>{const v=ld(h,c);return!s&&typeof v=="function"&&(s=!0),v});if(s)return()=>{for(let h=0;h<d.length;h++){const v=d[h];typeof v=="function"?v():ld(o[h],null)}}},[])}Wn(H1,"useStableComposedRefs");function fi(i){return(i==null?void 0:i.animationName)||"none"}Wn(fi,"getAnimationName");function q1(i){var o,s;let u=(o=Object.getOwnPropertyDescriptor(i.props,"ref"))==null?void 0:o.get,c=u&&"isReactWarning"in u&&u.isReactWarning;return c?i.ref:(u=(s=Object.getOwnPropertyDescriptor(i,"ref"))==null?void 0:s.get,c=u&&"isReactWarning"in u&&u.isReactWarning,c?i.props.ref:i.props.ref||i.ref)}Wn(q1,"getElementRef");var P4=Object.defineProperty,gi=(i,u)=>P4(i,"name",{value:u,configurable:!0}),G1={Automatic:"automatic",Manual:"manual"},_d="Tabs",[$4,RE]=da(_d,[z1]),Y1=z1(),[W4,Ad]=$4(_d),eC=b.forwardRef(gi(function(u,c){const{__scopeTabs:o,value:s,onValueChange:d,defaultValue:h,orientation:v="horizontal",dir:g,activationMode:x=G1.Automatic,...S}=u,p=wd(g),[N,A]=Sr({prop:s,onChange:d,defaultProp:h??"",caller:_d});return f.jsx(W4,{scope:o,baseId:un(),value:N,onValueChange:A,orientation:v,dir:p,activationMode:x,children:f.jsx(Ie.div,{dir:p,"data-orientation":v,...S,ref:c})})},"Tabs")),tC="TabsList",V1=b.forwardRef(gi(function(u,c){const{__scopeTabs:o,loop:s=!0,...d}=u,h=Ad(tC,o),v=Y1(o);return f.jsx(X4,{asChild:!0,...v,orientation:h.orientation,dir:h.dir,loop:s,children:f.jsx(Ie.div,{role:"tablist","aria-orientation":h.orientation,...d,ref:c})})},"TabsList")),nC="TabsTrigger",Q1=b.forwardRef(gi(function(u,c){const{__scopeTabs:o,value:s,disabled:d=!1,...h}=u,v=Ad(nC,o),g=Y1(o),x=Rd(v.baseId,s),S=Md(v.baseId,s),p=s===v.value;return f.jsx(I4,{asChild:!0,...g,focusable:!d,active:p,children:f.jsx(Ie.button,{type:"button",role:"tab","aria-selected":p,"aria-controls":S,"data-state":p?"active":"inactive","data-disabled":d?"":void 0,disabled:d,id:x,...h,ref:c,onMouseDown:mt(u.onMouseDown,N=>{!d&&N.button===0&&N.ctrlKey===!1?(N.currentTarget.focus(),v.onValueChange(s)):N.preventDefault()}),onKeyDown:mt(u.onKeyDown,N=>{d||N.target!==N.currentTarget||[" ","Enter"].includes(N.key)&&v.onValueChange(s)}),onFocus:mt(u.onFocus,()=>{const N=v.activationMode!==G1.Manual;!p&&!d&&N&&v.onValueChange(s)})})})},"TabsTrigger")),lC="TabsContent",X1=b.forwardRef(gi(function(u,c){const{__scopeTabs:o,value:s,forceMount:d,children:h,...v}=u,g=Ad(lC,o),x=Rd(g.baseId,s),S=Md(g.baseId,s),p=s===g.value,N=b.useRef(p);return b.useEffect(()=>{const A=requestAnimationFrame(()=>N.current=!1);return()=>cancelAnimationFrame(A)},[]),f.jsx(No,{present:d||p,children:({present:A})=>f.jsx(Ie.div,{"data-state":p?"active":"inactive","data-orientation":g.orientation,role:"tabpanel","aria-labelledby":x,hidden:!A,id:S,tabIndex:0,...v,ref:c,style:{...u.style,animationDuration:N.current?"0s":void 0},children:A&&h})})},"TabsContent"));function Rd(i,u){return`${i}-trigger-${u}`}gi(Rd,"makeTriggerId");function Md(i,u){return`${i}-content-${u}`}gi(Md,"makeContentId");const yo=eC,pr=b.forwardRef(({className:i,...u},c)=>f.jsx(V1,{ref:c,className:Ze("inline-flex items-center justify-center rounded-lg hl-muted p-1 border hl-border text-[var(--text-muted)]",i),...u}));pr.displayName=V1.displayName;const Dn=b.forwardRef(({className:i,...u},c)=>f.jsx(Q1,{ref:c,className:Ze("inline-flex items-center justify-center gap-1.5 whitespace-nowrap rounded-md px-2.5 py-1 text-xs font-medium transition-all cursor-pointer select-none disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-[var(--bg-card)] data-[state=active]:text-[var(--text-main)] data-[state=active]:shadow-xs",i),...u}));Dn.displayName=Q1.displayName;const aC=b.forwardRef(({className:i,...u},c)=>f.jsx(X1,{ref:c,className:Ze("mt-2 outline-none",i),...u}));aC.displayName=X1.displayName;const iC=[{id:"auto",label:"智能路由"},{id:"edge443",label:"443 免端口"},{id:"home10443",label:"10443 家宽"},{id:"lan",label:"LAN 局域网"}],rC=()=>{const{theme:i,resolvedTheme:u,routeMode:c,viewMode:o,telemetry:s,setTheme:d,toggleTheme:h,setRouteMode:v,setViewMode:g,setShowAgyModal:x,setShowWechatModal:S,setShowCmdPalette:p}=Un();return f.jsxs(f.Fragment,{children:[f.jsx("header",{className:"border-b hl-border sticky top-0 z-30 backdrop-blur-md",style:{backgroundColor:"color-mix(in srgb, var(--bg-card) 88%, transparent)"},children:f.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 h-14 flex items-center justify-between gap-4",children:[f.jsxs("div",{className:"flex items-center gap-4 shrink-0",children:[f.jsxs("div",{onClick:()=>g("dashboard"),className:"flex items-center gap-2.5 cursor-pointer",children:[f.jsx("img",{src:"https://cdn.jsdelivr.net/gh/walkxcode/dashboard-icons/png/apple.png",alt:"Mac mini",className:"w-6 h-6 rounded"}),f.jsx("span",{className:"font-semibold text-sm tracking-tight",children:"HomeLab"}),f.jsx("span",{className:"w-2 h-2 rounded-full",style:{backgroundColor:"var(--success)"},title:"全屋 4 节点在线"})]}),f.jsx("div",{className:"h-4 w-[1px] hl-muted"}),f.jsx(yo,{value:o,onValueChange:N=>g(N),children:f.jsxs(pr,{children:[f.jsxs(Dn,{value:"dashboard",children:[f.jsx(BS,{className:"w-3.5 h-3.5"}),f.jsx("span",{children:"中控台"})]}),f.jsxs(Dn,{value:"agents",children:[f.jsx(qy,{className:"w-3.5 h-3.5"}),f.jsx("span",{children:"Agent 编排"})]}),f.jsxs(Dn,{value:"storybook",children:[f.jsx(Hy,{className:"w-3.5 h-3.5"}),f.jsx("span",{children:"Storybook 设计规范"})]})]})})]}),f.jsxs("div",{className:"flex items-center gap-2.5 shrink-0 ml-auto",children:[f.jsxs(Oe,{variant:"outline",onClick:()=>p(!0),className:"gap-3",title:"按 Cmd+K 唤起全局命令面板",children:[f.jsxs("span",{className:"flex items-center gap-1.5",style:{color:"var(--text-muted)"},children:[f.jsx(bd,{className:"w-3.5 h-3.5"}),f.jsx("span",{className:"hidden sm:inline",children:"搜索服务或指令..."})]}),f.jsx("kbd",{className:"px-1.5 py-0.5 text-[10px] font-mono-num rounded hl-muted",style:{color:"var(--text-muted)"},children:"⌘K"})]}),f.jsxs(Oe,{variant:"outline",onClick:()=>S(!0),title:"连接微信 ClawBot,在微信内直接收发消息与控制 Mac mini",children:[f.jsx("span",{className:"w-2 h-2 rounded-full",style:{backgroundColor:s.services.clawbot?"var(--success)":"var(--accent)"}}),f.jsx(pd,{className:"w-3.5 h-3.5"}),f.jsx("span",{children:"微信 ClawBot"})]}),f.jsxs(Oe,{onClick:()=>x(!0),children:[f.jsx(yr,{className:"w-3.5 h-3.5"}),f.jsx("span",{children:"AGY 终端"})]}),f.jsxs("div",{className:"flex items-center p-0.5 rounded-lg hl-muted border hl-border text-xs",children:[f.jsx("button",{onClick:h,className:"px-2.5 py-1 rounded-md font-medium transition-all flex items-center gap-1.5 cursor-pointer",style:{backgroundColor:"var(--bg-card)",color:"var(--text-main)",boxShadow:"0 1px 2px rgba(0,0,0,0.08)"},title:"点击切换深色 / 浅色主题(默认跟随系统)",children:u==="dark"?f.jsxs(f.Fragment,{children:[f.jsx(GS,{className:"w-3.5 h-3.5"}),f.jsx("span",{children:"深色"})]}):f.jsxs(f.Fragment,{children:[f.jsx(aN,{className:"w-3.5 h-3.5"}),f.jsx("span",{children:"浅色"})]})}),i!=="system"&&f.jsx("button",{onClick:()=>d("system"),className:"px-2 py-1 rounded-md text-[11px] transition-all cursor-pointer",style:{color:"var(--text-muted)"},title:"恢复跟随设备系统深浅色自动切换",children:"自动"})]})]})]})}),o==="dashboard"&&f.jsx("div",{className:"border-b hl-border",style:{backgroundColor:"var(--bg-card)"},children:f.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-2.5 flex flex-wrap items-center justify-between gap-3",children:[f.jsxs("div",{className:"flex flex-wrap items-center gap-2 text-xs font-mono-num",children:[f.jsxs("div",{className:"hl-pill px-2.5 py-1 flex items-center gap-2",children:[f.jsx("span",{style:{color:"var(--text-muted)"},children:"M6 CPU"}),f.jsx("div",{className:"w-12 h-1.5 rounded-full hl-muted overflow-hidden",children:f.jsx("div",{className:"h-full hl-bar-fill",style:{width:`${Math.max(5,s.mini.cpu_pct)}%`}})}),f.jsxs("span",{className:"font-medium",children:[s.mini.cpu_pct,"%"]})]}),f.jsxs("div",{className:"hl-pill px-2.5 py-1 flex items-center gap-2",children:[f.jsx("span",{style:{color:"var(--text-muted)"},children:"RAM"}),f.jsx("div",{className:"w-12 h-1.5 rounded-full hl-muted overflow-hidden",children:f.jsx("div",{className:"h-full hl-bar-fill",style:{width:`${Math.max(5,s.mini.mem_pct)}%`}})}),f.jsxs("span",{className:"font-medium",children:[s.mini.mem_used_gb,"G"]})]}),f.jsxs("div",{className:"hl-pill px-2.5 py-1 flex items-center gap-2",children:[f.jsx("span",{style:{color:"var(--text-muted)"},children:"NAS 余量"}),f.jsx("div",{className:"w-12 h-1.5 rounded-full hl-muted overflow-hidden",children:f.jsx("div",{className:"h-full hl-bar-fill-green",style:{width:`${Math.max(5,s.nas.pct)}%`}})}),f.jsxs("span",{className:"font-medium",style:{color:"var(--success)"},children:[s.nas.free_tb," TB"]})]}),f.jsxs("div",{className:"hl-pill px-2.5 py-1 flex items-center gap-1.5",children:[f.jsx("span",{className:"w-1.5 h-1.5 rounded-full",style:{backgroundColor:"var(--success)"}}),f.jsx("span",{style:{color:"var(--text-muted)"},children:"SG 专线"}),f.jsx("span",{className:"font-medium",children:s.network.sg_delay_ms>0?`${s.network.sg_delay_ms}ms`:"直连"})]})]}),f.jsx(yo,{value:c,onValueChange:N=>v(N),className:"ml-auto",children:f.jsx(pr,{children:iC.map(N=>f.jsx(Dn,{value:N.id,children:N.label},N.id))})})]})})]})},Z1=({card:i})=>{const{getEffectiveMode:u,setShowAgyModal:c,triggerAction:o}=Un(),s=u(),d=s==="lan"?i.lanUrl:s==="home10443"?i.homeUrl:i.edgeUrl,h=s==="lan"?"LAN 直连":s==="home10443"?"10443":"443 免端口";return f.jsxs("a",{href:d,target:"_blank",rel:"noopener noreferrer",className:"hl-card hl-card-interactive flex flex-col justify-between overflow-hidden group cursor-pointer",children:[f.jsxs("div",{className:"p-4 sm:p-5 space-y-3",children:[f.jsxs("div",{className:"flex items-start justify-between gap-3",children:[f.jsxs("div",{className:"flex items-center gap-3.5 min-w-0",children:[f.jsx("div",{className:"w-10 h-10 rounded-xl hl-muted border hl-border p-1.5 flex items-center justify-center shrink-0",children:f.jsx("img",{src:i.iconUrl,alt:i.title,className:"w-full h-full object-contain"})}),f.jsxs("div",{className:"min-w-0",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx("h3",{className:"text-sm font-semibold truncate group-hover:underline",children:i.title}),f.jsx("span",{className:"w-2 h-2 rounded-full shrink-0",style:{backgroundColor:i.online!==!1?"var(--success)":"#ef4444"}})]}),f.jsx("p",{className:"text-[11px] font-mono-num truncate mt-0.5",style:{color:"var(--text-muted)"},children:i.subtitle})]})]}),i.actionType==="drawer"?f.jsx("button",{onClick:v=>{v.preventDefault(),c(!0)},className:"px-2 py-1 rounded-md text-[11px] font-medium shrink-0 transition-opacity hover:opacity-80 cursor-pointer",style:{backgroundColor:"var(--accent-soft)",color:"var(--accent)"},children:"页内终端"}):i.actionType==="backup"?f.jsx("button",{onClick:v=>{v.preventDefault(),o("backup_nas","正在打包备份至极空间 Z4...")},className:"px-2 py-1 rounded-md text-[11px] font-medium shrink-0 transition-opacity hover:opacity-80 cursor-pointer",style:{backgroundColor:"var(--success-soft)",color:"var(--success)"},children:"立即备份"}):f.jsx("span",{className:"text-xs font-mono-num px-2 py-0.5 rounded hl-muted shrink-0",style:{color:"var(--text-muted)"},children:h})]}),f.jsx("p",{className:"text-xs leading-relaxed line-clamp-2",style:{color:"var(--text-muted)"},children:i.desc})]}),f.jsx("div",{className:"hl-widget-footer grid grid-cols-3 divide-x hl-border text-center",children:i.stats.map((v,g)=>f.jsxs("div",{className:"py-2.5 px-2 flex flex-col items-center justify-center",children:[f.jsx("span",{className:"text-[10px] uppercase tracking-wider truncate max-w-full",style:{color:"var(--text-subtle)"},children:v.label}),f.jsx("span",{className:"text-xs font-semibold font-mono-num mt-0.5 truncate max-w-full",style:{color:v.highlight?"var(--success)":"var(--text-main)"},children:v.value})]},g))})]})},uC=[{label:"SSH 连接 Mac mini",cmd:"ssh mini"},{label:"终端接力 AGY 会话",cmd:'ssh mini -t "tmux attach -t agy"'},{label:"SSH 连接新加坡 Azure",cmd:"ssh azure"},{label:"SSH 连接小米主路由",cmd:"ssh root@192.168.31.1"}],K1=()=>{const{copyCmd:i,triggerAction:u}=Un();return f.jsxs("section",{className:"space-y-3 pt-1",children:[f.jsxs("div",{className:"flex items-center justify-between px-0.5",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx("h2",{className:"text-xs font-semibold uppercase tracking-wider",style:{color:"var(--text-muted)"},children:"终端快捷指令与备用直连书签"}),f.jsx("span",{className:"text-[11px] font-mono-num",style:{color:"var(--text-subtle)"},children:"· 点击指令即复制"})]}),f.jsxs("div",{className:"flex items-center gap-3 text-xs",children:[f.jsx("button",{onClick:()=>u("refresh_ddns","正在同步 Cloudflare DDNS..."),className:"hover:underline font-medium cursor-pointer",style:{color:"var(--accent)"},children:"刷新 DDNS 解析"}),f.jsx("button",{onClick:()=>u("mount_nas","正在巡检极空间 20TB SMB 挂载..."),className:"hover:underline font-medium cursor-pointer",style:{color:"var(--accent)"},children:"巡检极空间挂载"})]})]}),f.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-3",children:uC.map(c=>f.jsxs("button",{onClick:()=>i(c.cmd,c.label),className:"hl-card hl-card-interactive px-4 py-3 text-left flex items-center justify-between gap-2 cursor-pointer",children:[f.jsxs("div",{className:"min-w-0",children:[f.jsx("div",{className:"text-xs font-semibold",children:c.label}),f.jsx("div",{className:"text-[11px] font-mono-num truncate mt-0.5",style:{color:"var(--accent)"},children:c.cmd})]}),f.jsx("span",{className:"text-[10px] font-mono-num px-1.5 py-0.5 rounded hl-muted shrink-0",style:{color:"var(--text-muted)"},children:"COPY"})]},c.cmd))})]})},oC=$y("inline-flex items-center gap-1 rounded-md px-2 py-0.5 text-[11px] font-mono-num font-medium transition-colors shrink-0",{variants:{variant:{default:"bg-[var(--primary)] text-[var(--primary-fg)]",secondary:"hl-muted text-[var(--text-muted)] border hl-border",outline:"border hl-border text-[var(--text-muted)] bg-[var(--bg-card)]",accent:"bg-[var(--accent-soft)] text-[var(--accent)] font-semibold",success:"bg-[var(--success-soft)] text-[var(--success)] font-semibold"}},defaultVariants:{variant:"secondary"}});function rt({className:i,variant:u,...c}){return f.jsx("div",{className:Ze(oC({variant:u}),i),...c})}var F0=1,cC=.9,sC=.8,fC=.17,bf=.1,xf=.999,dC=.9999,mC=.99,hC=/[\\\/_+.#"@\[\(\{&]/,vC=/[\\\/_+.#"@\[\(\{&]/g,gC=/[\s-]/,I1=/[\s-]/g;function ad(i,u,c,o,s,d,h){if(d===u.length)return s===i.length?F0:mC;var v=`${s},${d}`;if(h[v]!==void 0)return h[v];for(var g=o.charAt(d),x=c.indexOf(g,s),S=0,p,N,A,j;x>=0;)p=ad(i,u,c,o,x+1,d+1,h),p>S&&(x===s?p*=F0:hC.test(i.charAt(x-1))?(p*=sC,A=i.slice(s,x-1).match(vC),A&&s>0&&(p*=Math.pow(xf,A.length))):gC.test(i.charAt(x-1))?(p*=cC,j=i.slice(s,x-1).match(I1),j&&s>0&&(p*=Math.pow(xf,j.length))):(p*=fC,s>0&&(p*=Math.pow(xf,x-s))),i.charAt(x)!==u.charAt(d)&&(p*=dC)),(p<bf&&c.charAt(x-1)===o.charAt(d+1)||o.charAt(d+1)===o.charAt(d)&&c.charAt(x-1)!==o.charAt(d))&&(N=ad(i,u,c,o,x+1,d+2,h),N*bf>p&&(p=N*bf)),p>S&&(S=p),x=c.indexOf(g,x+1);return h[v]=S,S}function P0(i){return i.toLowerCase().replace(I1," ")}function yC(i,u,c){return i=c&&c.length>0?`${i+" "+c.join(" ")}`:i,ad(i,u,P0(i),P0(u),0,0,{})}var pC=Object.defineProperty,dt=(i,u)=>pC(i,"name",{value:u,configurable:!0}),id="dismissableLayer.update",bC="dismissableLayer.pointerDownOutside",xC="dismissableLayer.focusOutside",$0,J1=b.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),SC=b.forwardRef(dt(function(u,c){const{disableOutsidePointerEvents:o=!1,deferPointerDownOutside:s=!1,onEscapeKeyDown:d,onPointerDownOutside:h,onFocusOutside:v,onInteractOutside:g,onDismiss:x,...S}=u,p=b.useContext(J1),[N,A]=b.useState(null),j=(N==null?void 0:N.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,z]=b.useState({}),H=Dt(c,A),q=Array.from(p.layers),[G]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),k=G?q.indexOf(G):-1,V=N?q.indexOf(N):-1,K=p.layersWithOutsidePointerEventsDisabled.size>0,_=V>=k,E=b.useRef(!1),R=P1(P=>{h==null||h(P),g==null||g(P),P.defaultPrevented||x==null||x()},{ownerDocument:j,deferPointerDownOutside:s,isDeferredPointerDownOutsideRef:E,dismissableSurfaces:p.dismissableSurfaces,shouldHandlePointerDownOutside:b.useCallback(P=>{if(!(P instanceof Node))return!1;const ne=[...p.branches].some(re=>re.contains(P));return _&&!ne},[p.branches,_])}),Q=$1(P=>{if(s&&E.current)return;const ne=P.target;[...p.branches].some(ge=>ge.contains(ne))||(v==null||v(P),g==null||g(P),P.defaultPrevented||x==null||x())},j),te=N?V===q.length-1:!1,W=oa(P=>{P.key==="Escape"&&(d==null||d(P),!P.defaultPrevented&&x&&(P.preventDefault(),x()))});return b.useEffect(()=>{if(te)return j.addEventListener("keydown",W,{capture:!0}),()=>j.removeEventListener("keydown",W,{capture:!0})},[j,te,W]),b.useEffect(()=>{if(N)return o&&(p.layersWithOutsidePointerEventsDisabled.size===0&&($0=j.body.style.pointerEvents,j.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(N)),p.layers.add(N),rd(),()=>{o&&(p.layersWithOutsidePointerEventsDisabled.delete(N),p.layersWithOutsidePointerEventsDisabled.size===0&&(j.body.style.pointerEvents=$0))}},[N,j,o,p]),b.useEffect(()=>()=>{N&&(p.layers.delete(N),p.layersWithOutsidePointerEventsDisabled.delete(N),rd())},[N,p]),b.useEffect(()=>{const P=dt(()=>z({}),"handleUpdate");return document.addEventListener(id,P),()=>document.removeEventListener(id,P)},[]),f.jsx(Ie.div,{...S,ref:H,style:{pointerEvents:K?_?"auto":"none":void 0,...u.style},onFocusCapture:mt(u.onFocusCapture,Q.onFocusCapture),onBlurCapture:mt(u.onBlurCapture,Q.onBlurCapture),onPointerDownCapture:mt(u.onPointerDownCapture,R.onPointerDownCapture)})},"DismissableLayer"));function F1(){const i=b.useContext(J1),[u,c]=b.useState(null);return b.useEffect(()=>{if(u)return i.dismissableSurfaces.add(u),()=>{i.dismissableSurfaces.delete(u)}},[u,i.dismissableSurfaces]),c}dt(F1,"useDismissableLayerSurface");var NC=dt(()=>!0,"IS_TRUE");function P1(i,u){const{ownerDocument:c=globalThis==null?void 0:globalThis.document,deferPointerDownOutside:o=!1,isDeferredPointerDownOutsideRef:s,dismissableSurfaces:d,shouldHandlePointerDownOutside:h=NC}=u,v=oa(i),g=b.useRef(!1),x=b.useRef(!1),S=b.useRef(new Map),p=b.useRef(()=>{});return b.useEffect(()=>{function N(){x.current=!1,s.current=!1,S.current.clear()}dt(N,"resetOutsideInteraction");function A(){return Array.from(S.current.values()).some(Boolean)}dt(A,"isOutsideInteractionIntercepted");function j(k){if(!x.current)return;const V=k.target;V instanceof Node&&[...d].some(_=>_.contains(V))||S.current.set(k.type,!0),k.type==="click"&&window.setTimeout(()=>{x.current&&p.current()},0)}dt(j,"handleInteractionCapture");function z(k){x.current&&S.current.set(k.type,!1)}dt(z,"handleInteractionBubble");const H=dt(k=>{if(k.target&&!g.current){let V=function(){c.removeEventListener("click",p.current);const _=A();N(),_||Od(bC,v,K,{discrete:!0})};if(dt(V,"handleAndDispatchPointerDownOutsideEvent"),!h(k.target)){c.removeEventListener("click",p.current),N(),g.current=!1;return}const K={originalEvent:k};x.current=!0,s.current=o&&k.button===0,S.current.clear(),!o||k.button!==0?V():(c.removeEventListener("click",p.current),p.current=V,c.addEventListener("click",p.current,{once:!0}))}else c.removeEventListener("click",p.current),N();g.current=!1},"handlePointerDown"),q=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const k of q)c.addEventListener(k,j,!0),c.addEventListener(k,z);const G=window.setTimeout(()=>{c.addEventListener("pointerdown",H)},0);return()=>{window.clearTimeout(G),c.removeEventListener("pointerdown",H),c.removeEventListener("click",p.current);for(const k of q)c.removeEventListener(k,j,!0),c.removeEventListener(k,z)}},[c,v,o,s,d,h]),{onPointerDownCapture:dt(()=>g.current=!0,"onPointerDownCapture")}}dt(P1,"usePointerDownOutside");function $1(i,u=globalThis==null?void 0:globalThis.document){const c=oa(i),o=b.useRef(!1);return b.useEffect(()=>{const s=dt(d=>{d.target&&!o.current&&Od(xC,c,{originalEvent:d},{discrete:!1})},"handleFocus");return u.addEventListener("focusin",s),()=>u.removeEventListener("focusin",s)},[u,c]),{onFocusCapture:dt(()=>o.current=!0,"onFocusCapture"),onBlurCapture:dt(()=>o.current=!1,"onBlurCapture")}}dt($1,"useFocusOutside");function rd(){const i=new CustomEvent(id);document.dispatchEvent(i)}dt(rd,"dispatchUpdate");function Od(i,u,c,{discrete:o}){const s=c.originalEvent.target,d=new CustomEvent(i,{bubbles:!1,cancelable:!0,detail:c});u&&s.addEventListener(i,u,{once:!0}),o?E1(s,d):s.dispatchEvent(d)}dt(Od,"handleAndDispatchCustomEvent");var CC=Object.defineProperty,lt=(i,u)=>CC(i,"name",{value:u,configurable:!0}),Sf="focusScope.autoFocusOnMount",Nf="focusScope.autoFocusOnUnmount",W0={bubbles:!1,cancelable:!0},EC=b.forwardRef(lt(function(u,c){const{loop:o=!1,trapped:s=!1,branches:d,onMountAutoFocus:h,onUnmountAutoFocus:v,...g}=u,[x,S]=b.useState(null),p=oa(h),N=oa(v),A=b.useRef(null),j=Dt(c,S),z=b.useRef(d);b.useEffect(()=>{z.current=d});const H=b.useCallback(k=>{var V;return k?x!=null&&x.contains(k)?!0:!!((V=z.current)!=null&&V.some(K=>K.contains(k))):!1},[x]),q=b.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;b.useEffect(()=>{if(s){let k=function(E){if(q.paused||!x)return;const R=E.target;H(R)?A.current=R:$n(A.current,{select:!0})},V=function(E){if(q.paused||!x)return;const R=E.relatedTarget;R!==null&&(H(R)||$n(A.current,{select:!0}))},K=function(E){if(document.activeElement===document.body)for(const Q of E)Q.removedNodes.length>0&&$n(x)};lt(k,"handleFocusIn"),lt(V,"handleFocusOut"),lt(K,"handleMutations"),document.addEventListener("focusin",k),document.addEventListener("focusout",V);const _=new MutationObserver(K);return x&&_.observe(x,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",k),document.removeEventListener("focusout",V),_.disconnect()}}},[s,x,q.paused,H]),b.useEffect(()=>{if(x){ey.add(q);const k=document.activeElement;if(!x.contains(k)){const K=new CustomEvent(Sf,W0);x.addEventListener(Sf,p),x.dispatchEvent(K),K.defaultPrevented||(np(up(zd(x)),{select:!0}),document.activeElement===k&&$n(x))}return()=>{x.removeEventListener(Sf,p);const K=x.ownerDocument,_=CustomEvent;setTimeout(()=>{const E=new _(Nf,W0);x.addEventListener(Nf,N),x.dispatchEvent(E),E.defaultPrevented||$n(k??K.body,{select:!0}),x.removeEventListener(Nf,N),ey.remove(q)},0)}}},[x,p,N,q]);const G=b.useCallback(k=>{if(!o&&!s||q.paused)return;const V=k.key==="Tab"&&!k.altKey&&!k.ctrlKey&&!k.metaKey,K=document.activeElement;if(V&&K){const _=k.currentTarget,[E,R]=lp(_);E&&R?!k.shiftKey&&K===R?(k.preventDefault(),o&&$n(E,{select:!0})):k.shiftKey&&K===E&&(k.preventDefault(),o&&$n(R,{select:!0})):K===_&&k.preventDefault()}},[o,s,q.paused]);return f.jsx(Ie.div,{tabIndex:-1,...g,ref:j,onKeyDown:G})},"FocusScope")),W1=b.createContext(null);function ep({registry:i,children:u}){return i?f.jsx(W1.Provider,{value:i,children:u}):u}lt(ep,"FocusScopeBranchProvider");function tp(){const[i,u]=b.useState([]),c=b.useMemo(()=>({add:lt(o=>u(s=>s.includes(o)?s:[...s,o]),"add"),remove:lt(o=>u(s=>s.filter(d=>d!==o)),"remove")}),[]);return{nodes:i,registry:c}}lt(tp,"useFocusScopeBranchRegistry");function wC(i){const u=b.useContext(W1);b.useEffect(()=>{if(!(!i||!u))return u.add(i),()=>u.remove(i)},[i,u])}lt(wC,"useFocusScopeBranch");function np(i,{select:u=!1}={}){const c=document.activeElement;for(const o of i)if($n(o,{select:u}),document.activeElement!==c)return}lt(np,"focusFirst");function lp(i){const u=zd(i),c=ud(u,i),o=ud(u.reverse(),i);return[c,o]}lt(lp,"getTabbableEdges");function zd(i){const u=[],o=i.ownerDocument.createTreeWalker(i,NodeFilter.SHOW_ELEMENT,{acceptNode:lt(s=>{const d=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||d?NodeFilter.FILTER_SKIP:s.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;o.nextNode();)u.push(o.currentNode);return u}lt(zd,"getTabbableCandidates");function ud(i,u){const c=typeof u.checkVisibility=="function"&&u.checkVisibility({checkVisibilityCSS:!0});for(const o of i)if(!(c?!o.checkVisibility({checkVisibilityCSS:!0}):ap(o,{upTo:u})))return o}lt(ud,"findVisible");function ap(i,{upTo:u}){if(getComputedStyle(i).visibility==="hidden")return!0;for(;i;){if(u!==void 0&&i===u)return!1;if(getComputedStyle(i).display==="none")return!0;i=i.parentElement}return!1}lt(ap,"isHidden");function ip(i){return i.tagName==="INPUT"&&typeof i.select=="function"}lt(ip,"isSelectableInput");function $n(i,{select:u=!1}={}){if(i&&i.focus){const o=(i.ownerDocument??document).activeElement;i.focus({preventScroll:!0}),i!==o&&ip(i)&&u&&i.select()}}lt($n,"focus");var ey=rp();function rp(){let i=[];return{add(u){const c=i[0];u!==c&&(c==null||c.pause()),i=od(i,u),i.unshift(u)},remove(u){var c;i=od(i,u),(c=i[0])==null||c.resume()}}}lt(rp,"createFocusScopesStack");function od(i,u){const c=[...i],o=c.indexOf(u);return o!==-1&&c.splice(o,1),c}lt(od,"arrayRemove");function up(i){return i.filter(u=>u.tagName!=="A")}lt(up,"removeLinks");var TC=Object.defineProperty,jC=(i,u)=>TC(i,"name",{value:u,configurable:!0}),_C=b.forwardRef(jC(function(u,c){var g;const{container:o,...s}=u,[d,h]=b.useState(!1);on(()=>h(!0),[]);const v=o||d&&((g=globalThis==null?void 0:globalThis.document)==null?void 0:g.body);return v?C1.createPortal(f.jsx(Ie.div,{...s,ref:c}),v):null},"Portal")),AC=Object.defineProperty,Dd=(i,u)=>AC(i,"name",{value:u,configurable:!0}),ao=0,Mn=null;function RC(i){return Ud(),i.children}Dd(RC,"FocusGuards");function Ud(){b.useEffect(()=>{Mn||(Mn={start:cd(),end:cd()});const{start:i,end:u}=Mn;return document.body.firstElementChild!==i&&document.body.insertAdjacentElement("afterbegin",i),document.body.lastElementChild!==u&&document.body.insertAdjacentElement("beforeend",u),ao++,()=>{ao===1&&(Mn==null||Mn.start.remove(),Mn==null||Mn.end.remove(),Mn=null),ao=Math.max(0,ao-1)}},[])}Dd(Ud,"useFocusGuards");function cd(){const i=document.createElement("span");return i.setAttribute("data-radix-focus-guard",""),i.tabIndex=0,i.style.outline="none",i.style.opacity="0",i.style.position="fixed",i.style.pointerEvents="none",i}Dd(cd,"createFocusGuard");var zn=function(){return zn=Object.assign||function(u){for(var c,o=1,s=arguments.length;o<s;o++){c=arguments[o];for(var d in c)Object.prototype.hasOwnProperty.call(c,d)&&(u[d]=c[d])}return u},zn.apply(this,arguments)};function op(i,u){var c={};for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&u.indexOf(o)<0&&(c[o]=i[o]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,o=Object.getOwnPropertySymbols(i);s<o.length;s++)u.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(i,o[s])&&(c[o[s]]=i[o[s]]);return c}function MC(i,u,c){if(c||arguments.length===2)for(var o=0,s=u.length,d;o<s;o++)(d||!(o in u))&&(d||(d=Array.prototype.slice.call(u,0,o)),d[o]=u[o]);return i.concat(d||Array.prototype.slice.call(u))}var mo="right-scroll-bar-position",ho="width-before-scroll-bar",OC="with-scroll-bars-hidden",zC="--removed-body-scroll-bar-size";function Cf(i,u){return typeof i=="function"?i(u):i&&(i.current=u),i}function DC(i,u){var c=b.useState(function(){return{value:i,callback:u,facade:{get current(){return c.value},set current(o){var s=c.value;s!==o&&(c.value=o,c.callback(o,s))}}}})[0];return c.callback=u,c.facade}var UC=typeof window<"u"?b.useLayoutEffect:b.useEffect,ty=new WeakMap;function BC(i,u){var c=DC(null,function(o){return i.forEach(function(s){return Cf(s,o)})});return UC(function(){var o=ty.get(c);if(o){var s=new Set(o),d=new Set(i),h=c.current;s.forEach(function(v){d.has(v)||Cf(v,null)}),d.forEach(function(v){s.has(v)||Cf(v,h)})}ty.set(c,i)},[i]),c}function kC(i){return i}function LC(i,u){u===void 0&&(u=kC);var c=[],o=!1,s={read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return c.length?c[c.length-1]:i},useMedium:function(d){var h=u(d,o);return c.push(h),function(){c=c.filter(function(v){return v!==h})}},assignSyncMedium:function(d){for(o=!0;c.length;){var h=c;c=[],h.forEach(d)}c={push:function(v){return d(v)},filter:function(){return c}}},assignMedium:function(d){o=!0;var h=[];if(c.length){var v=c;c=[],v.forEach(d),h=c}var g=function(){var S=h;h=[],S.forEach(d)},x=function(){return Promise.resolve().then(g)};x(),c={push:function(S){h.push(S),x()},filter:function(S){return h=h.filter(S),c}}}};return s}function HC(i){i===void 0&&(i={});var u=LC(null);return u.options=zn({async:!0,ssr:!1},i),u}var cp=function(i){var u=i.sideCar,c=op(i,["sideCar"]);if(!u)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=u.read();if(!o)throw new Error("Sidecar medium not found");return b.createElement(o,zn({},c))};cp.isSideCarExport=!0;function qC(i,u){return i.useMedium(u),cp}var sp=HC(),Ef=function(){},Co=b.forwardRef(function(i,u){var c=b.useRef(null),o=b.useState({onScrollCapture:Ef,onWheelCapture:Ef,onTouchMoveCapture:Ef}),s=o[0],d=o[1],h=i.forwardProps,v=i.children,g=i.className,x=i.removeScrollBar,S=i.enabled,p=i.shards,N=i.sideCar,A=i.noRelative,j=i.noIsolation,z=i.inert,H=i.allowPinchZoom,q=i.as,G=q===void 0?"div":q,k=i.gapMode,V=op(i,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),K=N,_=BC([c,u]),E=zn(zn({},V),s);return b.createElement(b.Fragment,null,S&&b.createElement(K,{sideCar:sp,removeScrollBar:x,shards:p,noRelative:A,noIsolation:j,inert:z,setCallbacks:d,allowPinchZoom:!!H,lockRef:c,gapMode:k}),h?b.cloneElement(b.Children.only(v),zn(zn({},E),{ref:_})):b.createElement(G,zn({},E,{className:g,ref:_}),v))});Co.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Co.classNames={fullWidth:ho,zeroRight:mo};var GC=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function YC(){if(!document)return null;var i=document.createElement("style");i.type="text/css";var u=GC();return u&&i.setAttribute("nonce",u),i}function VC(i,u){i.styleSheet?i.styleSheet.cssText=u:i.appendChild(document.createTextNode(u))}function QC(i){var u=document.head||document.getElementsByTagName("head")[0];u.appendChild(i)}var XC=function(){var i=0,u=null;return{add:function(c){i==0&&(u=YC())&&(VC(u,c),QC(u)),i++},remove:function(){i--,!i&&u&&(u.parentNode&&u.parentNode.removeChild(u),u=null)}}},ZC=function(){var i=XC();return function(u,c){b.useEffect(function(){return i.add(u),function(){i.remove()}},[u&&c])}},fp=function(){var i=ZC(),u=function(c){var o=c.styles,s=c.dynamic;return i(o,s),null};return u},KC={left:0,top:0,right:0,gap:0},wf=function(i){return parseInt(i||"",10)||0},IC=function(i){var u=window.getComputedStyle(document.body),c=u[i==="padding"?"paddingLeft":"marginLeft"],o=u[i==="padding"?"paddingTop":"marginTop"],s=u[i==="padding"?"paddingRight":"marginRight"];return[wf(c),wf(o),wf(s)]},JC=function(i){if(i===void 0&&(i="margin"),typeof window>"u")return KC;var u=IC(i),c=document.documentElement.clientWidth,o=window.innerWidth;return{left:u[0],top:u[1],right:u[2],gap:Math.max(0,o-c+u[2]-u[0])}},FC=fp(),hi="data-scroll-locked",PC=function(i,u,c,o){var s=i.left,d=i.top,h=i.right,v=i.gap;return c===void 0&&(c="margin"),`
|
||
.`.concat(OC,` {
|
||
overflow: hidden `).concat(o,`;
|
||
padding-right: `).concat(v,"px ").concat(o,`;
|
||
}
|
||
body[`).concat(hi,`] {
|
||
overflow: hidden `).concat(o,`;
|
||
overscroll-behavior: contain;
|
||
`).concat([u&&"position: relative ".concat(o,";"),c==="margin"&&`
|
||
padding-left: `.concat(s,`px;
|
||
padding-top: `).concat(d,`px;
|
||
padding-right: `).concat(h,`px;
|
||
margin-left:0;
|
||
margin-top:0;
|
||
margin-right: `).concat(v,"px ").concat(o,`;
|
||
`),c==="padding"&&"padding-right: ".concat(v,"px ").concat(o,";")].filter(Boolean).join(""),`
|
||
}
|
||
|
||
.`).concat(mo,` {
|
||
right: `).concat(v,"px ").concat(o,`;
|
||
}
|
||
|
||
.`).concat(ho,` {
|
||
margin-right: `).concat(v,"px ").concat(o,`;
|
||
}
|
||
|
||
.`).concat(mo," .").concat(mo,` {
|
||
right: 0 `).concat(o,`;
|
||
}
|
||
|
||
.`).concat(ho," .").concat(ho,` {
|
||
margin-right: 0 `).concat(o,`;
|
||
}
|
||
|
||
body[`).concat(hi,`] {
|
||
`).concat(zC,": ").concat(v,`px;
|
||
}
|
||
`)},ny=function(){var i=parseInt(document.body.getAttribute(hi)||"0",10);return isFinite(i)?i:0},$C=function(){b.useEffect(function(){return document.body.setAttribute(hi,(ny()+1).toString()),function(){var i=ny()-1;i<=0?document.body.removeAttribute(hi):document.body.setAttribute(hi,i.toString())}},[])},WC=function(i){var u=i.noRelative,c=i.noImportant,o=i.gapMode,s=o===void 0?"margin":o;$C();var d=b.useMemo(function(){return JC(s)},[s]);return b.createElement(FC,{styles:PC(d,!u,s,c?"":"!important")})},sd=!1;if(typeof window<"u")try{var io=Object.defineProperty({},"passive",{get:function(){return sd=!0,!0}});window.addEventListener("test",io,io),window.removeEventListener("test",io,io)}catch{sd=!1}var ui=sd?{passive:!1}:!1,e3=function(i){return i.tagName==="TEXTAREA"},dp=function(i,u){if(!(i instanceof Element))return!1;var c=window.getComputedStyle(i);return c[u]!=="hidden"&&!(c.overflowY===c.overflowX&&!e3(i)&&c[u]==="visible")},t3=function(i){return dp(i,"overflowY")},n3=function(i){return dp(i,"overflowX")},ly=function(i,u){var c=u.ownerDocument,o=u;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var s=mp(i,o);if(s){var d=hp(i,o),h=d[1],v=d[2];if(h>v)return!0}o=o.parentNode}while(o&&o!==c.body);return!1},l3=function(i){var u=i.scrollTop,c=i.scrollHeight,o=i.clientHeight;return[u,c,o]},a3=function(i){var u=i.scrollLeft,c=i.scrollWidth,o=i.clientWidth;return[u,c,o]},mp=function(i,u){return i==="v"?t3(u):n3(u)},hp=function(i,u){return i==="v"?l3(u):a3(u)},i3=function(i,u){return i==="h"&&u==="rtl"?-1:1},r3=function(i,u,c,o,s){var d=i3(i,window.getComputedStyle(u).direction),h=d*o,v=c.target,g=u.contains(v),x=!1,S=h>0,p=0,N=0;do{if(!v)break;var A=hp(i,v),j=A[0],z=A[1],H=A[2],q=z-H-d*j;(j||q)&&mp(i,v)&&(p+=q,N+=j);var G=v.parentNode;v=G&&G.nodeType===Node.DOCUMENT_FRAGMENT_NODE?G.host:G}while(!g&&v!==document.body||g&&(u.contains(v)||u===v));return(S&&Math.abs(p)<1||!S&&Math.abs(N)<1)&&(x=!0),x},ro=function(i){return"changedTouches"in i?[i.changedTouches[0].clientX,i.changedTouches[0].clientY]:[0,0]},ay=function(i){return[i.deltaX,i.deltaY]},iy=function(i){return i&&"current"in i?i.current:i},u3=function(i,u){return i[0]===u[0]&&i[1]===u[1]},o3=function(i){return`
|
||
.block-interactivity-`.concat(i,` {pointer-events: none;}
|
||
.allow-interactivity-`).concat(i,` {pointer-events: all;}
|
||
`)},c3=0,oi=[];function s3(i){var u=b.useRef([]),c=b.useRef([0,0]),o=b.useRef(),s=b.useState(c3++)[0],d=b.useState(fp)[0],h=b.useRef(i);b.useEffect(function(){h.current=i},[i]),b.useEffect(function(){if(i.inert){document.body.classList.add("block-interactivity-".concat(s));var z=MC([i.lockRef.current],(i.shards||[]).map(iy),!0).filter(Boolean);return z.forEach(function(H){return H.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),z.forEach(function(H){return H.classList.remove("allow-interactivity-".concat(s))})}}},[i.inert,i.lockRef.current,i.shards]);var v=b.useCallback(function(z,H){if("touches"in z&&z.touches.length===2||z.type==="wheel"&&z.ctrlKey)return!h.current.allowPinchZoom;var q=ro(z),G=c.current,k="deltaX"in z?z.deltaX:G[0]-q[0],V="deltaY"in z?z.deltaY:G[1]-q[1],K,_=z.target,E=Math.abs(k)>Math.abs(V)?"h":"v";if("touches"in z&&E==="h"&&_.type==="range")return!1;var R=window.getSelection(),Q=R&&R.anchorNode,te=Q?Q===_||Q.contains(_):!1;if(te)return!1;var W=ly(E,_);if(!W)return!0;if(W?K=E:(K=E==="v"?"h":"v",W=ly(E,_)),!W)return!1;if(!o.current&&"changedTouches"in z&&(k||V)&&(o.current=K),!K)return!0;var P=o.current||K;return r3(P,H,z,P==="h"?k:V)},[]),g=b.useCallback(function(z){var H=z;if(!(!oi.length||oi[oi.length-1]!==d)){var q="deltaY"in H?ay(H):ro(H),G=u.current.filter(function(K){return K.name===H.type&&(K.target===H.target||H.target===K.shadowParent)&&u3(K.delta,q)})[0];if(G&&G.should){H.cancelable&&H.preventDefault();return}if(!G){var k=(h.current.shards||[]).map(iy).filter(Boolean).filter(function(K){return K.contains(H.target)}),V=k.length>0?v(H,k[0]):!h.current.noIsolation;V&&H.cancelable&&H.preventDefault()}}},[]),x=b.useCallback(function(z,H,q,G){var k={name:z,delta:H,target:q,should:G,shadowParent:f3(q)};u.current.push(k),setTimeout(function(){u.current=u.current.filter(function(V){return V!==k})},1)},[]),S=b.useCallback(function(z){c.current=ro(z),o.current=void 0},[]),p=b.useCallback(function(z){x(z.type,ay(z),z.target,v(z,i.lockRef.current))},[]),N=b.useCallback(function(z){x(z.type,ro(z),z.target,v(z,i.lockRef.current))},[]);b.useEffect(function(){return oi.push(d),i.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:N}),document.addEventListener("wheel",g,ui),document.addEventListener("touchmove",g,ui),document.addEventListener("touchstart",S,ui),function(){oi=oi.filter(function(z){return z!==d}),document.removeEventListener("wheel",g,ui),document.removeEventListener("touchmove",g,ui),document.removeEventListener("touchstart",S,ui)}},[]);var A=i.removeScrollBar,j=i.inert;return b.createElement(b.Fragment,null,j?b.createElement(d,{styles:o3(s)}):null,A?b.createElement(WC,{noRelative:i.noRelative,gapMode:i.gapMode}):null)}function f3(i){for(var u=null;i!==null;)i instanceof ShadowRoot&&(u=i.host,i=i.host),i=i.parentNode;return u}const d3=qC(sp,s3);var vp=b.forwardRef(function(i,u){return b.createElement(Co,zn({},i,{ref:u,sideCar:d3}))});vp.classNames=Co.classNames;var m3=function(i){if(typeof document>"u")return null;var u=Array.isArray(i)?i[0]:i;return u.ownerDocument.body},ci=new WeakMap,uo=new WeakMap,oo={},Tf=0,gp=function(i){return i&&(i.host||gp(i.parentNode))},h3=function(i,u){return u.map(function(c){if(i.contains(c))return c;var o=gp(c);return o&&i.contains(o)?o:(console.error("aria-hidden",c,"in not contained inside",i,". Doing nothing"),null)}).filter(function(c){return!!c})},v3=function(i,u,c,o){var s=h3(u,Array.isArray(i)?i:[i]);oo[c]||(oo[c]=new WeakMap);var d=oo[c],h=[],v=new Set,g=new Set(s),x=function(p){!p||v.has(p)||(v.add(p),x(p.parentNode))};s.forEach(x);var S=function(p){!p||g.has(p)||Array.prototype.forEach.call(p.children,function(N){if(v.has(N))S(N);else try{var A=N.getAttribute(o),j=A!==null&&A!=="false",z=(ci.get(N)||0)+1,H=(d.get(N)||0)+1;ci.set(N,z),d.set(N,H),h.push(N),z===1&&j&&uo.set(N,!0),H===1&&N.setAttribute(c,"true"),j||N.setAttribute(o,"true")}catch(q){console.error("aria-hidden: cannot operate on ",N,q)}})};return S(u),v.clear(),Tf++,function(){h.forEach(function(p){var N=ci.get(p)-1,A=d.get(p)-1;ci.set(p,N),d.set(p,A),N||(uo.has(p)||p.removeAttribute(o),uo.delete(p)),A||p.removeAttribute(c)}),Tf--,Tf||(ci=new WeakMap,ci=new WeakMap,uo=new WeakMap,oo={})}},g3=function(i,u,c){c===void 0&&(c="data-aria-hidden");var o=Array.from(Array.isArray(i)?i:[i]),s=m3(i);return s?(o.push.apply(o,Array.from(s.querySelectorAll("[aria-live], script"))),v3(o,s,c,"aria-hidden")):function(){return null}},y3=Object.defineProperty,cn=(i,u)=>y3(i,"name",{value:u,configurable:!0}),Bd="Dialog",[yp,ME]=da(Bd),[p3,el]=yp(Bd),pp=cn(i=>{const{__scopeDialog:u,children:c,open:o,defaultOpen:s,onOpenChange:d,modal:h=!0}=i,v=b.useRef(null),g=b.useRef(null),{nodes:x,registry:S}=tp(),[p,N]=Sr({prop:o,defaultProp:s??!1,onChange:d,caller:Bd}),[A,j]=b.useState(0),[z,H]=b.useState(0);return f.jsx(p3,{scope:u,triggerRef:v,contentRef:g,contentId:un(),titleId:un(),descriptionId:un(),titlePresent:A>0,descriptionPresent:z>0,setTitleCount:j,setDescriptionCount:H,open:p,onOpenChange:N,onOpenToggle:b.useCallback(()=>N(q=>!q),[N]),modal:h,branchNodes:x,branchRegistry:S,children:c})},"Dialog"),bp="DialogPortal",[b3,xp]=yp(bp,{forceMount:void 0}),Sp=cn(i=>{const{__scopeDialog:u,forceMount:c,children:o,container:s}=i,d=el(bp,u);return f.jsx(b3,{scope:u,forceMount:c,children:b.Children.map(o,h=>f.jsx(No,{present:c||d.open,children:f.jsx(_C,{asChild:!0,container:s,children:h})}))})},"DialogPortal"),fd="DialogOverlay",kd=b.forwardRef(cn(function(u,c){const o=xp(fd,u.__scopeDialog),{forceMount:s=o.forceMount,...d}=u,h=el(fd,u.__scopeDialog);return h.modal?f.jsx(No,{present:s||h.open,children:f.jsx(S3,{...d,ref:c})}):null},"DialogOverlay")),x3=zl("DialogOverlay.RemoveScroll"),S3=b.forwardRef(cn(function(u,c){const{__scopeDialog:o,...s}=u,d=el(fd,o),h=F1(),v=Dt(c,h);return f.jsx(vp,{as:x3,allowPinchZoom:!0,shards:b.useMemo(()=>[d.contentRef,...d.branchNodes.map(g=>({current:g}))],[d.contentRef,d.branchNodes]),children:f.jsx(Ie.div,{"data-state":Hd(d.open),...s,ref:v,style:{pointerEvents:"auto",...s.style}})})},"DialogOverlayImpl")),br="DialogContent",Ld=b.forwardRef(cn(function(u,c){const o=xp(br,u.__scopeDialog),{forceMount:s=o.forceMount,...d}=u,h=el(br,u.__scopeDialog);return f.jsx(No,{present:s||h.open,children:h.modal?f.jsx(N3,{...d,ref:c}):f.jsx(C3,{...d,ref:c})})},"DialogContent")),N3=b.forwardRef(cn(function(u,c){const o=el(br,u.__scopeDialog),s=b.useRef(null),d=Dt(c,o.contentRef,s);return b.useEffect(()=>{const h=s.current;if(h)return g3(h)},[]),f.jsx(Np,{...u,ref:d,trapFocus:o.open,disableOutsidePointerEvents:o.open,onCloseAutoFocus:mt(u.onCloseAutoFocus,h=>{var v;h.preventDefault(),(v=o.triggerRef.current)==null||v.focus()}),onPointerDownOutside:mt(u.onPointerDownOutside,h=>{const v=h.detail.originalEvent,g=v.button===0&&v.ctrlKey===!0;(v.button===2||g)&&h.preventDefault()}),onFocusOutside:mt(u.onFocusOutside,h=>h.preventDefault())})},"DialogContentModal")),C3=b.forwardRef(cn(function(u,c){const o=el(br,u.__scopeDialog),s=b.useRef(!1),d=b.useRef(!1);return f.jsx(Np,{...u,ref:c,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:h=>{var v,g;(v=u.onCloseAutoFocus)==null||v.call(u,h),h.defaultPrevented||(s.current||(g=o.triggerRef.current)==null||g.focus(),h.preventDefault()),s.current=!1,d.current=!1},onInteractOutside:h=>{var x,S;(x=u.onInteractOutside)==null||x.call(u,h),h.defaultPrevented||(s.current=!0,h.detail.originalEvent.type==="pointerdown"&&(d.current=!0));const v=h.target;((S=o.triggerRef.current)==null?void 0:S.contains(v))&&h.preventDefault(),h.detail.originalEvent.type==="focusin"&&d.current&&h.preventDefault()}})},"DialogContentNonModal")),Np=b.forwardRef(cn(function(u,c){const{__scopeDialog:o,trapFocus:s,onOpenAutoFocus:d,onCloseAutoFocus:h,"aria-describedby":v,children:g,...x}=u,S=el(br,o);return Ud(),f.jsx(ep,{registry:S.branchRegistry,children:f.jsx(EC,{asChild:!0,loop:!0,trapped:s,branches:S.branchNodes,onMountAutoFocus:d,onUnmountAutoFocus:h,children:f.jsx(SC,{role:"dialog",id:S.contentId,"aria-labelledby":S.titlePresent?S.titleId:void 0,"aria-describedby":S.descriptionPresent?wp(v,S.descriptionId):v,"data-state":Hd(S.open),...x,ref:c,deferPointerDownOutside:!0,onDismiss:()=>S.onOpenChange(!1),children:g})})})},"DialogContentImpl")),Cp=b.forwardRef(cn(function(u,c){const{__scopeDialog:o,...s}=u,d=el("DialogTitle",o),{setTitleCount:h}=d;return on(()=>(h(v=>v+1),()=>h(v=>v-1)),[h]),f.jsx(Ie.h2,{id:d.titleId,...s,ref:c})},"DialogTitle")),Ep=b.forwardRef(cn(function(u,c){const{__scopeDialog:o,...s}=u,d=el("DialogDescription",o),{setDescriptionCount:h}=d;return on(()=>(h(v=>v+1),()=>h(v=>v-1)),[h]),f.jsx(Ie.p,{id:d.descriptionId,...s,ref:c})},"DialogDescription"));function wp(...i){const u=new Set;for(const c of i)if(typeof c=="string")for(const o of String(c).trim().split(/\s+/))o&&u.add(o);return u.size>0?Array.from(u).join(" "):void 0}cn(wp,"concatAriaDescribedby");function Hd(i){return i?"open":"closed"}cn(Hd,"getState");var hr='[cmdk-group=""]',jf='[cmdk-group-items=""]',E3='[cmdk-group-heading=""]',Tp='[cmdk-item=""]',ry=`${Tp}:not([aria-disabled="true"])`,dd="cmdk-item-select",di="data-value",w3=(i,u,c)=>yC(i,u,c),jp=b.createContext(void 0),Nr=()=>b.useContext(jp),_p=b.createContext(void 0),qd=()=>b.useContext(_p),Ap=b.createContext(void 0),Rp=b.forwardRef((i,u)=>{let c=mi(()=>{var J,me;return{search:"",value:(me=(J=i.value)!=null?J:i.defaultValue)!=null?me:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),o=mi(()=>new Set),s=mi(()=>new Map),d=mi(()=>new Map),h=mi(()=>new Set),v=Mp(i),{label:g,children:x,value:S,onValueChange:p,filter:N,shouldFilter:A,loop:j,disablePointerSelection:z=!1,vimBindings:H=!0,...q}=i,G=un(),k=un(),V=un(),K=b.useRef(null),_=B3();ca(()=>{if(S!==void 0){let J=S.trim();c.current.value=J,E.emit()}},[S]),ca(()=>{_(6,ne)},[]);let E=b.useMemo(()=>({subscribe:J=>(h.current.add(J),()=>h.current.delete(J)),snapshot:()=>c.current,setState:(J,me,w)=>{var U,$,ee,he;if(!Object.is(c.current[J],me)){if(c.current[J]=me,J==="search")P(),te(),_(1,W);else if(J==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let ie=document.getElementById(V);ie?ie.focus():(U=document.getElementById(G))==null||U.focus()}if(_(7,()=>{var ie;c.current.selectedItemId=(ie=re())==null?void 0:ie.id,E.emit()}),w||_(5,ne),(($=v.current)==null?void 0:$.value)!==void 0){let ie=me??"";(he=(ee=v.current).onValueChange)==null||he.call(ee,ie);return}}E.emit()}},emit:()=>{h.current.forEach(J=>J())}}),[]),R=b.useMemo(()=>({value:(J,me,w)=>{var U;me!==((U=d.current.get(J))==null?void 0:U.value)&&(d.current.set(J,{value:me,keywords:w}),c.current.filtered.items.set(J,Q(me,w)),_(2,()=>{te(),E.emit()}))},item:(J,me)=>(o.current.add(J),me&&(s.current.has(me)?s.current.get(me).add(J):s.current.set(me,new Set([J]))),_(3,()=>{P(),te(),c.current.value||W(),E.emit()}),()=>{d.current.delete(J),o.current.delete(J),c.current.filtered.items.delete(J);let w=re();_(4,()=>{P(),(w==null?void 0:w.getAttribute("id"))===J&&W(),E.emit()})}),group:J=>(s.current.has(J)||s.current.set(J,new Set),()=>{d.current.delete(J),s.current.delete(J)}),filter:()=>v.current.shouldFilter,label:g||i["aria-label"],getDisablePointerSelection:()=>v.current.disablePointerSelection,listId:G,inputId:V,labelId:k,listInnerRef:K}),[]);function Q(J,me){var w,U;let $=(U=(w=v.current)==null?void 0:w.filter)!=null?U:w3;return J?$(J,c.current.search,me):0}function te(){if(!c.current.search||v.current.shouldFilter===!1)return;let J=c.current.filtered.items,me=[];c.current.filtered.groups.forEach(U=>{let $=s.current.get(U),ee=0;$.forEach(he=>{let ie=J.get(he);ee=Math.max(ie,ee)}),me.push([U,ee])});let w=K.current;ge().sort((U,$)=>{var ee,he;let ie=U.getAttribute("id"),Ne=$.getAttribute("id");return((ee=J.get(Ne))!=null?ee:0)-((he=J.get(ie))!=null?he:0)}).forEach(U=>{let $=U.closest(jf);$?$.appendChild(U.parentElement===$?U:U.closest(`${jf} > *`)):w.appendChild(U.parentElement===w?U:U.closest(`${jf} > *`))}),me.sort((U,$)=>$[1]-U[1]).forEach(U=>{var $;let ee=($=K.current)==null?void 0:$.querySelector(`${hr}[${di}="${encodeURIComponent(U[0])}"]`);ee==null||ee.parentElement.appendChild(ee)})}function W(){let J=ge().find(w=>w.getAttribute("aria-disabled")!=="true"),me=J==null?void 0:J.getAttribute(di);E.setState("value",me||void 0)}function P(){var J,me,w,U;if(!c.current.search||v.current.shouldFilter===!1){c.current.filtered.count=o.current.size;return}c.current.filtered.groups=new Set;let $=0;for(let ee of o.current){let he=(me=(J=d.current.get(ee))==null?void 0:J.value)!=null?me:"",ie=(U=(w=d.current.get(ee))==null?void 0:w.keywords)!=null?U:[],Ne=Q(he,ie);c.current.filtered.items.set(ee,Ne),Ne>0&&$++}for(let[ee,he]of s.current)for(let ie of he)if(c.current.filtered.items.get(ie)>0){c.current.filtered.groups.add(ee);break}c.current.filtered.count=$}function ne(){var J,me,w;let U=re();U&&(((J=U.parentElement)==null?void 0:J.firstChild)===U&&((w=(me=U.closest(hr))==null?void 0:me.querySelector(E3))==null||w.scrollIntoView({block:"nearest"})),U.scrollIntoView({block:"nearest"}))}function re(){var J;return(J=K.current)==null?void 0:J.querySelector(`${Tp}[aria-selected="true"]`)}function ge(){var J;return Array.from(((J=K.current)==null?void 0:J.querySelectorAll(ry))||[])}function F(J){let me=ge()[J];me&&E.setState("value",me.getAttribute(di))}function ae(J){var me;let w=re(),U=ge(),$=U.findIndex(he=>he===w),ee=U[$+J];(me=v.current)!=null&&me.loop&&(ee=$+J<0?U[U.length-1]:$+J===U.length?U[0]:U[$+J]),ee&&E.setState("value",ee.getAttribute(di))}function ce(J){let me=re(),w=me==null?void 0:me.closest(hr),U;for(;w&&!U;)w=J>0?D3(w,hr):U3(w,hr),U=w==null?void 0:w.querySelector(ry);U?E.setState("value",U.getAttribute(di)):ae(J)}let xe=()=>F(ge().length-1),I=J=>{J.preventDefault(),J.metaKey?xe():J.altKey?ce(1):ae(1)},Se=J=>{J.preventDefault(),J.metaKey?F(0):J.altKey?ce(-1):ae(-1)};return b.createElement(Ie.div,{ref:u,tabIndex:-1,...q,"cmdk-root":"",onKeyDown:J=>{var me;(me=q.onKeyDown)==null||me.call(q,J);let w=J.nativeEvent.isComposing||J.keyCode===229;if(!(J.defaultPrevented||w))switch(J.key){case"n":case"j":{H&&J.ctrlKey&&I(J);break}case"ArrowDown":{I(J);break}case"p":case"k":{H&&J.ctrlKey&&Se(J);break}case"ArrowUp":{Se(J);break}case"Home":{J.preventDefault(),F(0);break}case"End":{J.preventDefault(),xe();break}case"Enter":{J.preventDefault();let U=re();if(U){let $=new Event(dd);U.dispatchEvent($)}}}}},b.createElement("label",{"cmdk-label":"",htmlFor:R.inputId,id:R.labelId,style:L3},g),Eo(i,J=>b.createElement(_p.Provider,{value:E},b.createElement(jp.Provider,{value:R},J))))}),T3=b.forwardRef((i,u)=>{var c,o;let s=un(),d=b.useRef(null),h=b.useContext(Ap),v=Nr(),g=Mp(i),x=(o=(c=g.current)==null?void 0:c.forceMount)!=null?o:h==null?void 0:h.forceMount;ca(()=>{if(!x)return v.item(s,h==null?void 0:h.id)},[x]);let S=Op(s,d,[i.value,i.children,d],i.keywords),p=qd(),N=Dl(_=>_.value&&_.value===S.current),A=Dl(_=>x||v.filter()===!1?!0:_.search?_.filtered.items.get(s)>0:!0);b.useEffect(()=>{let _=d.current;if(!(!_||i.disabled))return _.addEventListener(dd,j),()=>_.removeEventListener(dd,j)},[A,i.onSelect,i.disabled]);function j(){var _,E;z(),(E=(_=g.current).onSelect)==null||E.call(_,S.current)}function z(){p.setState("value",S.current,!0)}if(!A)return null;let{disabled:H,value:q,onSelect:G,forceMount:k,keywords:V,...K}=i;return b.createElement(Ie.div,{ref:ua(d,u),...K,id:s,"cmdk-item":"",role:"option","aria-disabled":!!H,"aria-selected":!!N,"data-disabled":!!H,"data-selected":!!N,onPointerMove:H||v.getDisablePointerSelection()?void 0:z,onClick:H?void 0:j},i.children)}),j3=b.forwardRef((i,u)=>{let{heading:c,children:o,forceMount:s,...d}=i,h=un(),v=b.useRef(null),g=b.useRef(null),x=un(),S=Nr(),p=Dl(A=>s||S.filter()===!1?!0:A.search?A.filtered.groups.has(h):!0);ca(()=>S.group(h),[]),Op(h,v,[i.value,i.heading,g]);let N=b.useMemo(()=>({id:h,forceMount:s}),[s]);return b.createElement(Ie.div,{ref:ua(v,u),...d,"cmdk-group":"",role:"presentation",hidden:p?void 0:!0},c&&b.createElement("div",{ref:g,"cmdk-group-heading":"","aria-hidden":!0,id:x},c),Eo(i,A=>b.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":c?x:void 0},b.createElement(Ap.Provider,{value:N},A))))}),_3=b.forwardRef((i,u)=>{let{alwaysRender:c,...o}=i,s=b.useRef(null),d=Dl(h=>!h.search);return!c&&!d?null:b.createElement(Ie.div,{ref:ua(s,u),...o,"cmdk-separator":"",role:"separator"})}),A3=b.forwardRef((i,u)=>{let{onValueChange:c,...o}=i,s=i.value!=null,d=qd(),h=Dl(x=>x.search),v=Dl(x=>x.selectedItemId),g=Nr();return b.useEffect(()=>{i.value!=null&&d.setState("search",i.value)},[i.value]),b.createElement(Ie.input,{ref:u,...o,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":g.listId,"aria-labelledby":g.labelId,"aria-activedescendant":v,id:g.inputId,type:"text",value:s?i.value:h,onChange:x=>{s||d.setState("search",x.target.value),c==null||c(x.target.value)}})}),R3=b.forwardRef((i,u)=>{let{children:c,label:o="Suggestions",...s}=i,d=b.useRef(null),h=b.useRef(null),v=Dl(x=>x.selectedItemId),g=Nr();return b.useEffect(()=>{if(h.current&&d.current){let x=h.current,S=d.current,p,N=new ResizeObserver(()=>{p=requestAnimationFrame(()=>{let A=x.offsetHeight;S.style.setProperty("--cmdk-list-height",A.toFixed(1)+"px")})});return N.observe(x),()=>{cancelAnimationFrame(p),N.unobserve(x)}}},[]),b.createElement(Ie.div,{ref:ua(d,u),...s,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":v,"aria-label":o,id:g.listId},Eo(i,x=>b.createElement("div",{ref:ua(h,g.listInnerRef),"cmdk-list-sizer":""},x)))}),M3=b.forwardRef((i,u)=>{let{open:c,onOpenChange:o,overlayClassName:s,contentClassName:d,container:h,...v}=i;return b.createElement(pp,{open:c,onOpenChange:o},b.createElement(Sp,{container:h},b.createElement(kd,{"cmdk-overlay":"",className:s}),b.createElement(Ld,{"aria-label":i.label,"cmdk-dialog":"",className:d},b.createElement(Rp,{ref:u,...v}))))}),O3=b.forwardRef((i,u)=>Dl(c=>c.filtered.count===0)?b.createElement(Ie.div,{ref:u,...i,"cmdk-empty":"",role:"presentation"}):null),z3=b.forwardRef((i,u)=>{let{progress:c,children:o,label:s="Loading...",...d}=i;return b.createElement(Ie.div,{ref:u,...d,"cmdk-loading":"",role:"progressbar","aria-valuenow":c,"aria-valuemin":0,"aria-valuemax":100,"aria-label":s},Eo(i,h=>b.createElement("div",{"aria-hidden":!0},h)))}),sn=Object.assign(Rp,{List:R3,Item:T3,Input:A3,Group:j3,Separator:_3,Dialog:M3,Empty:O3,Loading:z3});function D3(i,u){let c=i.nextElementSibling;for(;c;){if(c.matches(u))return c;c=c.nextElementSibling}}function U3(i,u){let c=i.previousElementSibling;for(;c;){if(c.matches(u))return c;c=c.previousElementSibling}}function Mp(i){let u=b.useRef(i);return ca(()=>{u.current=i}),u}var ca=typeof window>"u"?b.useEffect:b.useLayoutEffect;function mi(i){let u=b.useRef();return u.current===void 0&&(u.current=i()),u}function Dl(i){let u=qd(),c=()=>i(u.snapshot());return b.useSyncExternalStore(u.subscribe,c,c)}function Op(i,u,c,o=[]){let s=b.useRef(),d=Nr();return ca(()=>{var h;let v=(()=>{var x;for(let S of c){if(typeof S=="string")return S.trim();if(typeof S=="object"&&"current"in S)return S.current?(x=S.current.textContent)==null?void 0:x.trim():s.current}})(),g=o.map(x=>x.trim());d.value(i,v,g),(h=u.current)==null||h.setAttribute(di,v),s.current=v}),s}var B3=()=>{let[i,u]=b.useState(),c=mi(()=>new Map);return ca(()=>{c.current.forEach(o=>o()),c.current=new Map},[i]),(o,s)=>{c.current.set(o,s),u({})}};function k3(i){let u=i.type;return typeof u=="function"?u(i.props):"render"in u?u.render(i.props):i}function Eo({asChild:i,children:u},c){return i&&b.isValidElement(u)?b.cloneElement(k3(u),{ref:u.ref},c(u.props.children)):c(u)}var L3={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const Gd=pp,H3=Sp,zp=b.forwardRef(({className:i,...u},c)=>f.jsx(kd,{ref:c,className:Ze("fixed inset-0 z-50 bg-black/70 backdrop-blur-sm transition-opacity",i),...u}));zp.displayName=kd.displayName;const wo=b.forwardRef(({className:i,children:u,...c},o)=>f.jsxs(H3,{children:[f.jsx(zp,{}),f.jsx(Ld,{ref:o,className:Ze("fixed left-[50%] top-[50%] z-50 w-full max-w-lg translate-x-[-50%] translate-y-[-50%] hl-card shadow-2xl duration-200 outline-none",i),...c,children:u})]}));wo.displayName=Ld.displayName;const To=b.forwardRef(({className:i,...u},c)=>f.jsx(Cp,{ref:c,className:Ze("text-sm font-bold leading-none tracking-tight",i),...u}));To.displayName=Cp.displayName;const jo=b.forwardRef(({className:i,...u},c)=>f.jsx(Ep,{ref:c,className:Ze("text-xs text-[var(--text-muted)]",i),...u}));jo.displayName=Ep.displayName;const Dp=b.forwardRef(({className:i,...u},c)=>f.jsx(sn,{ref:c,className:Ze("flex h-full w-full flex-col overflow-hidden rounded-xl bg-[var(--bg-card)] text-[var(--text-main)]",i),...u}));Dp.displayName=sn.displayName;const q3=({children:i,...u})=>f.jsx(Gd,{...u,children:f.jsxs(wo,{className:"max-w-xl overflow-hidden p-0 shadow-2xl top-[22%] translate-y-0",children:[f.jsx(To,{className:"sr-only",children:"全局命令与服务搜索面板"}),f.jsx(jo,{className:"sr-only",children:"使用键盘上下方向键选择服务或操作,回车立即执行"}),f.jsx(Dp,{children:i})]})}),Up=b.forwardRef(({className:i,...u},c)=>f.jsxs("div",{className:"flex items-center border-b hl-border px-4 py-3 gap-3","cmdk-input-wrapper":"",children:[f.jsx(bd,{className:"h-4 w-4 shrink-0 text-[var(--text-muted)]"}),f.jsx(sn.Input,{ref:c,className:Ze("flex w-full bg-transparent text-sm outline-none placeholder:text-[var(--text-subtle)] disabled:cursor-not-allowed disabled:opacity-50",i),...u}),f.jsx("kbd",{className:"px-1.5 py-0.5 text-[10px] font-mono-num rounded hl-muted text-[var(--text-muted)] shrink-0",children:"ESC"})]}));Up.displayName=sn.Input.displayName;const Bp=b.forwardRef(({className:i,...u},c)=>f.jsx(sn.List,{ref:c,className:Ze("max-h-80 overflow-y-auto overflow-x-hidden p-2",i),...u}));Bp.displayName=sn.List.displayName;const kp=b.forwardRef((i,u)=>f.jsx(sn.Empty,{ref:u,className:"py-6 text-center text-xs text-[var(--text-muted)]",...i}));kp.displayName=sn.Empty.displayName;const Lp=b.forwardRef(({className:i,...u},c)=>f.jsx(sn.Group,{ref:c,className:Ze("overflow-hidden p-1 text-[var(--text-main)] [&_[cmdk-group-heading]]:px-2.5 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-[10px] [&_[cmdk-group-heading]]:font-semibold [&_[cmdk-group-heading]]:uppercase [&_[cmdk-group-heading]]:tracking-wider [&_[cmdk-group-heading]]:text-[var(--text-subtle)]",i),...u}));Lp.displayName=sn.Group.displayName;const Hp=b.forwardRef(({className:i,...u},c)=>f.jsx(sn.Item,{ref:c,className:Ze("relative flex cursor-pointer select-none items-center justify-between rounded-lg px-3 py-2 text-xs outline-none transition-colors data-[selected=true]:bg-[var(--bg-muted)] data-[selected=true]:text-[var(--text-main)] data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50",i),...u}));Hp.displayName=sn.Item.displayName;const G3=()=>{const{showCmdPalette:i,setShowCmdPalette:u,setShowAgyModal:c,setTheme:o,triggerAction:s,copyCmd:d,getEffectiveMode:h}=Un(),v=b.useMemo(()=>{const g=h(),x=(S,p,N)=>g==="lan"?N:g==="home10443"?p:S;return[{id:"open-agy-drawer",title:"在页内唤起 AGY 云端终端",hint:"tmux attach -t agy",type:"终端",run:()=>c(!0)},{id:"open-agy",title:"新窗口打开 AGY 云端工作台",hint:"https://agy.961504.xyz",type:"跳转",run:()=>window.open(x("https://agy.961504.xyz","https://agy.home.961504.xyz:10443","http://192.168.31.164:7681"),"_blank")},{id:"open-z4",title:"打开 极空间 Z4 私有云 (20TB)",hint:"192.168.31.185:5055",type:"跳转",run:()=>window.open(x("https://z4.home.961504.xyz:10443","https://z4.home.961504.xyz:10443","http://192.168.31.185:5055"),"_blank")},{id:"open-vw",title:"打开 Vaultwarden 密码保险箱",hint:"https://vw.961504.xyz",type:"跳转",run:()=>window.open(x("https://vw.961504.xyz","https://vw.home.961504.xyz:10443","http://192.168.31.164:8222"),"_blank")},{id:"open-clash",title:"打开 Mihomo 路由分流面板",hint:"192.168.31.1:9999",type:"跳转",run:()=>window.open(x("https://clash.home.961504.xyz:10443/ui/","https://clash.home.961504.xyz:10443/ui/","http://192.168.31.1:9999/ui/"),"_blank")},{id:"act-backup",title:"立即打包备份核心数据至极空间 Z4",hint:"backup-to-nas.sh",type:"运维",run:()=>s("backup_nas","正在打包备份至极空间 Z4...")},{id:"act-ddns",title:"立即刷新 Cloudflare DDNS 解析",hint:"cloudflare-ddns.sh",type:"运维",run:()=>s("refresh_ddns","正在同步 Cloudflare DDNS...")},{id:"ssh-mini",title:"复制 SSH 连接 Mac mini 指令",hint:"ssh mini",type:"SSH",run:()=>d("ssh mini","SSH Mac mini")},{id:"ssh-agy",title:"复制 终端接力 AGY 会话指令",hint:'ssh mini -t "tmux attach -t agy"',type:"SSH",run:()=>d('ssh mini -t "tmux attach -t agy"',"接力 AGY")},{id:"theme-system",title:"主题模式: 跟随设备系统深浅色自动切换",hint:"system",type:"主题",run:()=>o("system")},{id:"theme-light",title:"切换主题: 浅色纯净 (Light)",hint:"light",type:"主题",run:()=>o("light")},{id:"theme-dark",title:"切换主题: 深色极客 (Dark)",hint:"dark",type:"主题",run:()=>o("dark")}]},[h,c,o,s,d]);return f.jsxs(q3,{open:i,onOpenChange:u,children:[f.jsx(Up,{placeholder:"输入服务名称、SSH 指令、路由模式或主题..."}),f.jsxs(Bp,{children:[f.jsx(kp,{children:"未找到匹配的指令或服务"}),f.jsx(Lp,{heading:"快速操作与服务直达 (cmdk + Radix Dialog)",children:v.map(g=>f.jsxs(Hp,{value:`${g.title} ${g.hint} ${g.type}`,onSelect:()=>{u(!1),g.run()},children:[f.jsxs("div",{className:"flex items-center gap-2.5",children:[f.jsx("span",{className:"font-medium",children:g.title}),f.jsx("span",{className:"font-mono-num text-[11px] text-[var(--text-muted)]",children:g.hint})]}),f.jsx(rt,{variant:"secondary",children:g.type})]},g.id))})]})]})},an=b.forwardRef(({className:i,...u},c)=>f.jsx("div",{ref:c,className:Ze("hl-card",i),...u}));an.displayName="Card";const md=b.forwardRef(({className:i,...u},c)=>f.jsx("div",{ref:c,className:Ze("flex flex-col space-y-1.5 p-5",i),...u}));md.displayName="CardHeader";const hd=b.forwardRef(({className:i,...u},c)=>f.jsx("h3",{ref:c,className:Ze("text-sm font-bold leading-none tracking-tight",i),...u}));hd.displayName="CardTitle";const vd=b.forwardRef(({className:i,...u},c)=>f.jsx("p",{ref:c,className:Ze("text-xs text-[var(--text-muted)]",i),...u}));vd.displayName="CardDescription";const qp=b.forwardRef(({className:i,...u},c)=>f.jsx("div",{ref:c,className:Ze("p-5 pt-0",i),...u}));qp.displayName="CardContent";const Y3=b.forwardRef(({className:i,...u},c)=>f.jsx("div",{ref:c,className:Ze("flex items-center p-5 pt-0",i),...u}));Y3.displayName="CardFooter";const Yd=b.forwardRef(({className:i,type:u,...c},o)=>f.jsx("input",{type:u,className:Ze("hl-input",i),ref:o,...c}));Yd.displayName="Input";const po=b.forwardRef(({className:i,...u},c)=>f.jsx("div",{ref:c,className:Ze("hl-input-group",i),...u}));po.displayName="InputGroup";var V3=Object.defineProperty,Q3=(i,u)=>V3(i,"name",{value:u,configurable:!0});function Gp(i){const[u,c]=b.useState(void 0);return on(()=>{if(i){c({width:i.offsetWidth,height:i.offsetHeight});let o=0;const s=new ResizeObserver(d=>{if(!Array.isArray(d)||!d.length)return;const h=d[0];window.cancelAnimationFrame(o),o=window.requestAnimationFrame(()=>{let v,g;if("borderBoxSize"in h){const x=h.borderBoxSize,S=Array.isArray(x)?x[0]:x;v=S.inlineSize,g=S.blockSize}else v=i.offsetWidth,g=i.offsetHeight;c({width:v,height:g})})});return s.observe(i,{box:"border-box"}),()=>{window.cancelAnimationFrame(o),s.unobserve(i)}}else c(void 0)},[i]),u}Q3(Gp,"useSize");var X3=Object.defineProperty,Ul=(i,u)=>X3(i,"name",{value:u,configurable:!0}),Vd="Switch",[Z3,OE]=da(Vd),[K3,Qd]=Z3(Vd);function Yp(i){const{__scopeSwitch:u,checked:c,children:o,defaultChecked:s,disabled:d,form:h,name:v,onCheckedChange:g,required:x,value:S="on",internal_do_not_use_render:p}=i,[N,A]=Sr({prop:c,defaultProp:s??!1,onChange:g,caller:Vd}),[j,z]=b.useState(null),[H,q]=b.useState(null),[G,k]=b.useState(null),V=j?!!h||!!j.closest("form"):!0,K={checked:N,setChecked:A,disabled:d,control:j,setControl:z,name:v,form:h,value:S,userClick:G,onUserClick:k,required:x,defaultChecked:s,isFormControl:V,bubbleInput:H,setBubbleInput:q};return f.jsx(K3,{scope:u,...K,children:Qp(p)?p(K):o})}Ul(Yp,"SwitchProvider");var I3="SwitchTrigger",J3=b.forwardRef(Ul(function({__scopeSwitch:u,onClick:c,...o},s){const{control:d,form:h,value:v,disabled:g,checked:x,required:S,setControl:p,setChecked:N,onUserClick:A,isFormControl:j,bubbleInput:z}=Qd(I3,u),H=Dt(s,p),q=b.useRef(x);return b.useEffect(()=>{const G=h?d==null?void 0:d.ownerDocument.getElementById(h):d==null?void 0:d.form;if(G instanceof HTMLFormElement){const k=Ul(()=>N(q.current),"reset");return G.addEventListener("reset",k),()=>G.removeEventListener("reset",k)}},[d,h,N]),f.jsx(Ie.button,{type:"button",role:"switch","aria-checked":x,"aria-required":S,"data-state":Xd(x),"data-disabled":g?"":void 0,disabled:g,value:v,...o,ref:H,onClick:mt(c,G=>{const k=G.isPropagationStopped();A({requestedChecked:!x,hasConsumerStoppedPropagation:k}),N(V=>!V),z&&j&&(k||G.stopPropagation())})})},"SwitchTrigger")),Vp=b.forwardRef(Ul(function(u,c){const{__scopeSwitch:o,name:s,checked:d,defaultChecked:h,required:v,disabled:g,value:x,onCheckedChange:S,form:p,...N}=u;return f.jsx(Yp,{__scopeSwitch:o,checked:d,defaultChecked:h,disabled:g,required:v,onCheckedChange:S,name:s,form:p,value:x,internal_do_not_use_render:({isFormControl:A})=>f.jsxs(f.Fragment,{children:[f.jsx(J3,{...N,ref:c,__scopeSwitch:o}),A&&f.jsx(W3,{__scopeSwitch:o})]})})},"Switch")),F3="SwitchThumb",P3=b.forwardRef(Ul(function(u,c){const{__scopeSwitch:o,...s}=u,d=Qd(F3,o);return f.jsx(Ie.span,{"data-state":Xd(d.checked),"data-disabled":d.disabled?"":void 0,...s,ref:c})},"SwitchThumb")),$3="SwitchBubbleInput",W3=b.forwardRef(Ul(function({__scopeSwitch:u,onClick:c,...o},s){const{control:d,userClick:h,checked:v,defaultChecked:g,required:x,disabled:S,name:p,value:N,form:A,bubbleInput:j,setBubbleInput:z}=Qd($3,u),H=Dt(s,z),q=Gp(d),G=b.useRef(!1),k=b.useRef(v),V=b.useRef(h),K=b.useRef(null);b.useEffect(()=>{const E=j;if(!E)return;const R=window.HTMLInputElement.prototype,te=Object.getOwnPropertyDescriptor(R,"checked").set;if(!te)return;const W=k.current!==v;k.current=v;const P=h!==null&&h!==V.current;if(V.current=h,P)K.current=W?null:h,W&&te.call(E,v),E.dispatchEvent(new Event("click",{bubbles:!h.hasConsumerStoppedPropagation}));else if(W){const ne=K.current;K.current=null;const re=(ne==null?void 0:ne.requestedChecked)===v;G.current=!0,te.call(E,v),E.dispatchEvent(new Event("click",{bubbles:!(re&&ne.hasConsumerStoppedPropagation)})),G.current=!1}},[j,v,h]);const _=b.useRef(v);return f.jsx(Ie.input,{type:"checkbox","aria-hidden":!0,defaultChecked:g??_.current,required:x,disabled:S,name:p,value:N,form:A,...o,tabIndex:-1,ref:H,onClick:mt(c,E=>{G.current&&E.stopPropagation()}),style:{...o.style,...q,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})},"SwitchBubbleInput"));function Qp(i){return typeof i=="function"}Ul(Qp,"isFunction");function Xd(i){return i?"checked":"unchecked"}Ul(Xd,"getState");const bo=b.forwardRef(({className:i,...u},c)=>f.jsx(Vp,{className:Ze("peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border transition-colors disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-[var(--accent)] data-[state=checked]:border-[var(--accent)] data-[state=unchecked]:bg-[var(--bg-muted)] data-[state=unchecked]:border-[var(--border-color)]",i),...u,ref:c,children:f.jsx(P3,{className:Ze("pointer-events-none block h-3.5 w-3.5 rounded-full bg-white shadow-sm transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0.5")})}));bo.displayName=Vp.displayName;const Zd=({targetUrl:i="https://agy.961504.xyz",onSuccess:u,onCancel:c,embedded:o=!1})=>{const[s,d]=b.useState("ixvii0iv"),[h,v]=b.useState(""),[g,x]=b.useState(!1),[S,p]=b.useState(!0),[N,A]=b.useState(!1),[j,z]=b.useState(null),H=async q=>{if(q.preventDefault(),!s.trim()||!h){z("请输入用户名与访问密钥");return}A(!0),z(null);try{const G=await fetch("/api/auth/login",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({username:s.trim(),password:h,remember:S})}),k=await G.json();G.ok&&k.ok?u==null||u():z(k.message||"认证未通过,请检查密码")}catch{z("网络请求异常,请稍后重试")}finally{A(!1)}};return f.jsxs(an,{className:`w-full max-w-md p-6 space-y-5 ${o?"":"shadow-2xl"}`,children:[f.jsx("div",{className:"flex items-start justify-between gap-3 border-b hl-border pb-4",children:f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx("div",{className:"w-10 h-10 rounded-xl flex items-center justify-center border hl-border shrink-0",style:{backgroundColor:"var(--accent-soft)",color:"var(--accent)"},children:f.jsx(WS,{className:"w-5 h-5"})}),f.jsxs("div",{children:[f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx("h3",{className:"text-sm font-bold tracking-tight",children:"HomeLab 统一安全通行证"}),f.jsx(rt,{variant:"success",children:"SSO 2.0"})]}),f.jsx("p",{className:"text-xs font-mono-num mt-0.5 truncate max-w-[260px]",style:{color:"var(--text-muted)"},children:i})]})]})}),f.jsxs("form",{onSubmit:H,className:"space-y-4",children:[f.jsxs("div",{className:"space-y-1.5",children:[f.jsx("label",{className:"block text-xs font-semibold",style:{color:"var(--text-muted)"},children:"管理员账号 (Username)"}),f.jsxs(po,{children:[f.jsx(cN,{className:"w-4 h-4 shrink-0",style:{color:"var(--text-subtle)"}}),f.jsx("input",{type:"text",autoComplete:"username",value:s,onChange:q=>d(q.target.value),placeholder:"输入管理员账号 (如 ixvii0iv)",className:"font-mono-num"})]})]}),f.jsxs("div",{className:"space-y-1.5",children:[f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsx("label",{className:"block text-xs font-semibold",style:{color:"var(--text-muted)"},children:"访问通行密钥 (Access Key)"}),f.jsx("span",{className:"text-[10px] font-mono-num",style:{color:"var(--text-subtle)"},children:"与 Mac mini 密码一致"})]}),f.jsxs(po,{children:[f.jsx(LS,{className:"w-4 h-4 shrink-0",style:{color:"var(--text-subtle)"}}),f.jsx("input",{type:g?"text":"password",autoComplete:"current-password",autoFocus:!0,value:h,onChange:q=>v(q.target.value),placeholder:"输入访问密钥...",className:"font-mono-num"}),f.jsx("button",{type:"button",onClick:()=>x(!g),className:"p-1 rounded hover:opacity-80 cursor-pointer",style:{color:"var(--text-muted)"},title:g?"隐藏密码":"显示密码",children:g?f.jsx(wS,{className:"w-3.5 h-3.5"}):f.jsx(jS,{className:"w-3.5 h-3.5"})})]})]}),f.jsxs("div",{className:"flex items-center justify-between pt-1",children:[f.jsx("span",{className:"text-xs select-none",style:{color:"var(--text-muted)"},children:"在此设备保持 30 天免密通行 (*.961504.xyz)"}),f.jsx(bo,{checked:S,onCheckedChange:p})]}),j&&f.jsx("div",{className:"px-3 py-2 rounded-lg text-xs font-medium border",style:{backgroundColor:"rgba(239, 68, 68, 0.1)",borderColor:"rgba(239, 68, 68, 0.3)",color:"#ef4444"},children:j}),f.jsxs("div",{className:"flex items-center justify-end gap-2.5 pt-2",children:[c&&f.jsx(Oe,{type:"button",variant:"outline",onClick:c,children:"取消"}),f.jsxs(Oe,{type:"submit",disabled:N,className:"px-4",children:[f.jsx(yr,{className:"w-3.5 h-3.5"}),f.jsx("span",{children:N?"正在验证签名...":"解锁并进入工作台"})]})]})]})]})},eE=()=>{const{showAgyModal:i,setShowAgyModal:u,getEffectiveMode:c}=Un(),[o,s]=b.useState(!1),[d,h]=b.useState(!1),v=c(),g=v==="lan"?"http://192.168.31.164:7681":v==="home10443"?"https://agy.home.961504.xyz:10443":"https://agy.961504.xyz";return b.useEffect(()=>{if(i){if(v==="lan"){h(!0),s(!0);return}s(!1),fetch("/api/auth/status",{credentials:"include"}).then(x=>x.json()).then(x=>{h(!!x.authenticated),s(!0)}).catch(()=>{h(!1),s(!0)})}},[i,v]),f.jsx(Gd,{open:i,onOpenChange:u,children:f.jsxs(wo,{className:"w-[95vw] max-w-6xl h-[88vh] flex flex-col overflow-hidden p-0",children:[f.jsx(To,{className:"sr-only",children:"AGY 云端工作台"}),f.jsx(jo,{className:"sr-only",children:"M6 Mac mini 上的 24 小时 tmux 常驻 AI 编程终端"}),f.jsxs("div",{className:"px-4 py-2.5 border-b hl-border flex items-center justify-between hl-muted shrink-0",children:[f.jsxs("div",{className:"flex items-center gap-2.5",children:[f.jsx("img",{src:"https://cdn.jsdelivr.net/gh/walkxcode/dashboard-icons/png/google-gemini.png",alt:"AGY",className:"w-4 h-4"}),f.jsx("span",{className:"text-xs font-mono-num font-medium",children:"AGY 云端工作台 · tmux 持久会话 (关窗不断连)"})]}),f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx(Oe,{variant:"outline",size:"sm",asChild:!0,children:f.jsx("a",{href:g,target:"_blank",rel:"noopener noreferrer",className:"font-mono-num",children:"新标签页全屏 ↗"})}),f.jsx(Oe,{size:"sm",onClick:()=>u(!1),children:"收起终端"})]})]}),o?d?f.jsx("iframe",{src:g,title:"AGY Cloud Workbench",className:"w-full flex-1 bg-black border-0"}):f.jsx("div",{className:"flex-1 flex items-center justify-center p-4",style:{backgroundColor:"var(--bg-page)"},children:f.jsx(Zd,{targetUrl:g,onSuccess:()=>h(!0),onCancel:()=>u(!1)})}):f.jsx("div",{className:"flex-1 flex items-center justify-center text-xs font-mono-num",style:{color:"var(--text-muted)"},children:"正在校验 HomeLab SSO 通行证..."})]})})};var si={},_f,uy;function tE(){return uy||(uy=1,_f=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}),_f}var Af={},Ol={},oy;function ha(){if(oy)return Ol;oy=1;let i;const u=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];return Ol.getSymbolSize=function(o){if(!o)throw new Error('"version" cannot be null or undefined');if(o<1||o>40)throw new Error('"version" should be in range from 1 to 40');return o*4+17},Ol.getSymbolTotalCodewords=function(o){return u[o]},Ol.getBCHDigit=function(c){let o=0;for(;c!==0;)o++,c>>>=1;return o},Ol.setToSJISFunction=function(o){if(typeof o!="function")throw new Error('"toSJISFunc" is not a valid function.');i=o},Ol.isKanjiModeEnabled=function(){return typeof i<"u"},Ol.toSJIS=function(o){return i(o)},Ol}var Rf={},cy;function Kd(){return cy||(cy=1,(function(i){i.L={bit:1},i.M={bit:0},i.Q={bit:3},i.H={bit:2};function u(c){if(typeof c!="string")throw new Error("Param is not a string");switch(c.toLowerCase()){case"l":case"low":return i.L;case"m":case"medium":return i.M;case"q":case"quartile":return i.Q;case"h":case"high":return i.H;default:throw new Error("Unknown EC Level: "+c)}}i.isValid=function(o){return o&&typeof o.bit<"u"&&o.bit>=0&&o.bit<4},i.from=function(o,s){if(i.isValid(o))return o;try{return u(o)}catch{return s}}})(Rf)),Rf}var Mf,sy;function nE(){if(sy)return Mf;sy=1;function i(){this.buffer=[],this.length=0}return i.prototype={get:function(u){const c=Math.floor(u/8);return(this.buffer[c]>>>7-u%8&1)===1},put:function(u,c){for(let o=0;o<c;o++)this.putBit((u>>>c-o-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(u){const c=Math.floor(this.length/8);this.buffer.length<=c&&this.buffer.push(0),u&&(this.buffer[c]|=128>>>this.length%8),this.length++}},Mf=i,Mf}var Of,fy;function lE(){if(fy)return Of;fy=1;function i(u){if(!u||u<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=u,this.data=new Uint8Array(u*u),this.reservedBit=new Uint8Array(u*u)}return i.prototype.set=function(u,c,o,s){const d=u*this.size+c;this.data[d]=o,s&&(this.reservedBit[d]=!0)},i.prototype.get=function(u,c){return this.data[u*this.size+c]},i.prototype.xor=function(u,c,o){this.data[u*this.size+c]^=o},i.prototype.isReserved=function(u,c){return this.reservedBit[u*this.size+c]},Of=i,Of}var zf={},dy;function aE(){return dy||(dy=1,(function(i){const u=ha().getSymbolSize;i.getRowColCoords=function(o){if(o===1)return[];const s=Math.floor(o/7)+2,d=u(o),h=d===145?26:Math.ceil((d-13)/(2*s-2))*2,v=[d-7];for(let g=1;g<s-1;g++)v[g]=v[g-1]-h;return v.push(6),v.reverse()},i.getPositions=function(o){const s=[],d=i.getRowColCoords(o),h=d.length;for(let v=0;v<h;v++)for(let g=0;g<h;g++)v===0&&g===0||v===0&&g===h-1||v===h-1&&g===0||s.push([d[v],d[g]]);return s}})(zf)),zf}var Df={},my;function iE(){if(my)return Df;my=1;const i=ha().getSymbolSize,u=7;return Df.getPositions=function(o){const s=i(o);return[[0,0],[s-u,0],[0,s-u]]},Df}var Uf={},hy;function rE(){return hy||(hy=1,(function(i){i.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const u={N1:3,N2:3,N3:40,N4:10};i.isValid=function(s){return s!=null&&s!==""&&!isNaN(s)&&s>=0&&s<=7},i.from=function(s){return i.isValid(s)?parseInt(s,10):void 0},i.getPenaltyN1=function(s){const d=s.size;let h=0,v=0,g=0,x=null,S=null;for(let p=0;p<d;p++){v=g=0,x=S=null;for(let N=0;N<d;N++){let A=s.get(p,N);A===x?v++:(v>=5&&(h+=u.N1+(v-5)),x=A,v=1),A=s.get(N,p),A===S?g++:(g>=5&&(h+=u.N1+(g-5)),S=A,g=1)}v>=5&&(h+=u.N1+(v-5)),g>=5&&(h+=u.N1+(g-5))}return h},i.getPenaltyN2=function(s){const d=s.size;let h=0;for(let v=0;v<d-1;v++)for(let g=0;g<d-1;g++){const x=s.get(v,g)+s.get(v,g+1)+s.get(v+1,g)+s.get(v+1,g+1);(x===4||x===0)&&h++}return h*u.N2},i.getPenaltyN3=function(s){const d=s.size;let h=0,v=0,g=0;for(let x=0;x<d;x++){v=g=0;for(let S=0;S<d;S++)v=v<<1&2047|s.get(x,S),S>=10&&(v===1488||v===93)&&h++,g=g<<1&2047|s.get(S,x),S>=10&&(g===1488||g===93)&&h++}return h*u.N3},i.getPenaltyN4=function(s){let d=0;const h=s.data.length;for(let g=0;g<h;g++)d+=s.data[g];return Math.abs(Math.ceil(d*100/h/5)-10)*u.N4};function c(o,s,d){switch(o){case i.Patterns.PATTERN000:return(s+d)%2===0;case i.Patterns.PATTERN001:return s%2===0;case i.Patterns.PATTERN010:return d%3===0;case i.Patterns.PATTERN011:return(s+d)%3===0;case i.Patterns.PATTERN100:return(Math.floor(s/2)+Math.floor(d/3))%2===0;case i.Patterns.PATTERN101:return s*d%2+s*d%3===0;case i.Patterns.PATTERN110:return(s*d%2+s*d%3)%2===0;case i.Patterns.PATTERN111:return(s*d%3+(s+d)%2)%2===0;default:throw new Error("bad maskPattern:"+o)}}i.applyMask=function(s,d){const h=d.size;for(let v=0;v<h;v++)for(let g=0;g<h;g++)d.isReserved(g,v)||d.xor(g,v,c(s,g,v))},i.getBestMask=function(s,d){const h=Object.keys(i.Patterns).length;let v=0,g=1/0;for(let x=0;x<h;x++){d(x),i.applyMask(x,s);const S=i.getPenaltyN1(s)+i.getPenaltyN2(s)+i.getPenaltyN3(s)+i.getPenaltyN4(s);i.applyMask(x,s),S<g&&(g=S,v=x)}return v}})(Uf)),Uf}var co={},vy;function Xp(){if(vy)return co;vy=1;const i=Kd(),u=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],c=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];return co.getBlocksCount=function(s,d){switch(d){case i.L:return u[(s-1)*4+0];case i.M:return u[(s-1)*4+1];case i.Q:return u[(s-1)*4+2];case i.H:return u[(s-1)*4+3];default:return}},co.getTotalCodewordsCount=function(s,d){switch(d){case i.L:return c[(s-1)*4+0];case i.M:return c[(s-1)*4+1];case i.Q:return c[(s-1)*4+2];case i.H:return c[(s-1)*4+3];default:return}},co}var Bf={},vr={},gy;function uE(){if(gy)return vr;gy=1;const i=new Uint8Array(512),u=new Uint8Array(256);return(function(){let o=1;for(let s=0;s<255;s++)i[s]=o,u[o]=s,o<<=1,o&256&&(o^=285);for(let s=255;s<512;s++)i[s]=i[s-255]})(),vr.log=function(o){if(o<1)throw new Error("log("+o+")");return u[o]},vr.exp=function(o){return i[o]},vr.mul=function(o,s){return o===0||s===0?0:i[u[o]+u[s]]},vr}var yy;function oE(){return yy||(yy=1,(function(i){const u=uE();i.mul=function(o,s){const d=new Uint8Array(o.length+s.length-1);for(let h=0;h<o.length;h++)for(let v=0;v<s.length;v++)d[h+v]^=u.mul(o[h],s[v]);return d},i.mod=function(o,s){let d=new Uint8Array(o);for(;d.length-s.length>=0;){const h=d[0];for(let g=0;g<s.length;g++)d[g]^=u.mul(s[g],h);let v=0;for(;v<d.length&&d[v]===0;)v++;d=d.slice(v)}return d},i.generateECPolynomial=function(o){let s=new Uint8Array([1]);for(let d=0;d<o;d++)s=i.mul(s,new Uint8Array([1,u.exp(d)]));return s}})(Bf)),Bf}var kf,py;function cE(){if(py)return kf;py=1;const i=oE();function u(c){this.genPoly=void 0,this.degree=c,this.degree&&this.initialize(this.degree)}return u.prototype.initialize=function(o){this.degree=o,this.genPoly=i.generateECPolynomial(this.degree)},u.prototype.encode=function(o){if(!this.genPoly)throw new Error("Encoder not initialized");const s=new Uint8Array(o.length+this.degree);s.set(o);const d=i.mod(s,this.genPoly),h=this.degree-d.length;if(h>0){const v=new Uint8Array(this.degree);return v.set(d,h),v}return d},kf=u,kf}var Lf={},Hf={},qf={},by;function Zp(){return by||(by=1,qf.isValid=function(u){return!isNaN(u)&&u>=1&&u<=40}),qf}var On={},xy;function Kp(){if(xy)return On;xy=1;const i="[0-9]+",u="[A-Z $%*+\\-./:]+";let c="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";c=c.replace(/u/g,"\\u");const o="(?:(?![A-Z0-9 $%*+\\-./:]|"+c+`)(?:.|[\r
|
||
]))+`;On.KANJI=new RegExp(c,"g"),On.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),On.BYTE=new RegExp(o,"g"),On.NUMERIC=new RegExp(i,"g"),On.ALPHANUMERIC=new RegExp(u,"g");const s=new RegExp("^"+c+"$"),d=new RegExp("^"+i+"$"),h=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");return On.testKanji=function(g){return s.test(g)},On.testNumeric=function(g){return d.test(g)},On.testAlphanumeric=function(g){return h.test(g)},On}var Sy;function va(){return Sy||(Sy=1,(function(i){const u=Zp(),c=Kp();i.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},i.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},i.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},i.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},i.MIXED={bit:-1},i.getCharCountIndicator=function(d,h){if(!d.ccBits)throw new Error("Invalid mode: "+d);if(!u.isValid(h))throw new Error("Invalid version: "+h);return h>=1&&h<10?d.ccBits[0]:h<27?d.ccBits[1]:d.ccBits[2]},i.getBestModeForData=function(d){return c.testNumeric(d)?i.NUMERIC:c.testAlphanumeric(d)?i.ALPHANUMERIC:c.testKanji(d)?i.KANJI:i.BYTE},i.toString=function(d){if(d&&d.id)return d.id;throw new Error("Invalid mode")},i.isValid=function(d){return d&&d.bit&&d.ccBits};function o(s){if(typeof s!="string")throw new Error("Param is not a string");switch(s.toLowerCase()){case"numeric":return i.NUMERIC;case"alphanumeric":return i.ALPHANUMERIC;case"kanji":return i.KANJI;case"byte":return i.BYTE;default:throw new Error("Unknown mode: "+s)}}i.from=function(d,h){if(i.isValid(d))return d;try{return o(d)}catch{return h}}})(Hf)),Hf}var Ny;function sE(){return Ny||(Ny=1,(function(i){const u=ha(),c=Xp(),o=Kd(),s=va(),d=Zp(),h=7973,v=u.getBCHDigit(h);function g(N,A,j){for(let z=1;z<=40;z++)if(A<=i.getCapacity(z,j,N))return z}function x(N,A){return s.getCharCountIndicator(N,A)+4}function S(N,A){let j=0;return N.forEach(function(z){const H=x(z.mode,A);j+=H+z.getBitsLength()}),j}function p(N,A){for(let j=1;j<=40;j++)if(S(N,j)<=i.getCapacity(j,A,s.MIXED))return j}i.from=function(A,j){return d.isValid(A)?parseInt(A,10):j},i.getCapacity=function(A,j,z){if(!d.isValid(A))throw new Error("Invalid QR Code version");typeof z>"u"&&(z=s.BYTE);const H=u.getSymbolTotalCodewords(A),q=c.getTotalCodewordsCount(A,j),G=(H-q)*8;if(z===s.MIXED)return G;const k=G-x(z,A);switch(z){case s.NUMERIC:return Math.floor(k/10*3);case s.ALPHANUMERIC:return Math.floor(k/11*2);case s.KANJI:return Math.floor(k/13);case s.BYTE:default:return Math.floor(k/8)}},i.getBestVersionForData=function(A,j){let z;const H=o.from(j,o.M);if(Array.isArray(A)){if(A.length>1)return p(A,H);if(A.length===0)return 1;z=A[0]}else z=A;return g(z.mode,z.getLength(),H)},i.getEncodedBits=function(A){if(!d.isValid(A)||A<7)throw new Error("Invalid QR Code version");let j=A<<12;for(;u.getBCHDigit(j)-v>=0;)j^=h<<u.getBCHDigit(j)-v;return A<<12|j}})(Lf)),Lf}var Gf={},Cy;function fE(){if(Cy)return Gf;Cy=1;const i=ha(),u=1335,c=21522,o=i.getBCHDigit(u);return Gf.getEncodedBits=function(d,h){const v=d.bit<<3|h;let g=v<<10;for(;i.getBCHDigit(g)-o>=0;)g^=u<<i.getBCHDigit(g)-o;return(v<<10|g)^c},Gf}var Yf={},Vf,Ey;function dE(){if(Ey)return Vf;Ey=1;const i=va();function u(c){this.mode=i.NUMERIC,this.data=c.toString()}return u.getBitsLength=function(o){return 10*Math.floor(o/3)+(o%3?o%3*3+1:0)},u.prototype.getLength=function(){return this.data.length},u.prototype.getBitsLength=function(){return u.getBitsLength(this.data.length)},u.prototype.write=function(o){let s,d,h;for(s=0;s+3<=this.data.length;s+=3)d=this.data.substr(s,3),h=parseInt(d,10),o.put(h,10);const v=this.data.length-s;v>0&&(d=this.data.substr(s),h=parseInt(d,10),o.put(h,v*3+1))},Vf=u,Vf}var Qf,wy;function mE(){if(wy)return Qf;wy=1;const i=va(),u=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function c(o){this.mode=i.ALPHANUMERIC,this.data=o}return c.getBitsLength=function(s){return 11*Math.floor(s/2)+6*(s%2)},c.prototype.getLength=function(){return this.data.length},c.prototype.getBitsLength=function(){return c.getBitsLength(this.data.length)},c.prototype.write=function(s){let d;for(d=0;d+2<=this.data.length;d+=2){let h=u.indexOf(this.data[d])*45;h+=u.indexOf(this.data[d+1]),s.put(h,11)}this.data.length%2&&s.put(u.indexOf(this.data[d]),6)},Qf=c,Qf}var Xf,Ty;function hE(){if(Ty)return Xf;Ty=1;const i=va();function u(c){this.mode=i.BYTE,typeof c=="string"?this.data=new TextEncoder().encode(c):this.data=new Uint8Array(c)}return u.getBitsLength=function(o){return o*8},u.prototype.getLength=function(){return this.data.length},u.prototype.getBitsLength=function(){return u.getBitsLength(this.data.length)},u.prototype.write=function(c){for(let o=0,s=this.data.length;o<s;o++)c.put(this.data[o],8)},Xf=u,Xf}var Zf,jy;function vE(){if(jy)return Zf;jy=1;const i=va(),u=ha();function c(o){this.mode=i.KANJI,this.data=o}return c.getBitsLength=function(s){return s*13},c.prototype.getLength=function(){return this.data.length},c.prototype.getBitsLength=function(){return c.getBitsLength(this.data.length)},c.prototype.write=function(o){let s;for(s=0;s<this.data.length;s++){let d=u.toSJIS(this.data[s]);if(d>=33088&&d<=40956)d-=33088;else if(d>=57408&&d<=60351)d-=49472;else throw new Error("Invalid SJIS character: "+this.data[s]+`
|
||
Make sure your charset is UTF-8`);d=(d>>>8&255)*192+(d&255),o.put(d,13)}},Zf=c,Zf}var Kf={exports:{}},_y;function gE(){return _y||(_y=1,(function(i){var u={single_source_shortest_paths:function(c,o,s){var d={},h={};h[o]=0;var v=u.PriorityQueue.make();v.push(o,0);for(var g,x,S,p,N,A,j,z,H;!v.empty();){g=v.pop(),x=g.value,p=g.cost,N=c[x]||{};for(S in N)N.hasOwnProperty(S)&&(A=N[S],j=p+A,z=h[S],H=typeof h[S]>"u",(H||z>j)&&(h[S]=j,v.push(S,j),d[S]=x))}if(typeof s<"u"&&typeof h[s]>"u"){var q=["Could not find a path from ",o," to ",s,"."].join("");throw new Error(q)}return d},extract_shortest_path_from_predecessor_list:function(c,o){for(var s=[],d=o;d;)s.push(d),c[d],d=c[d];return s.reverse(),s},find_path:function(c,o,s){var d=u.single_source_shortest_paths(c,o,s);return u.extract_shortest_path_from_predecessor_list(d,s)},PriorityQueue:{make:function(c){var o=u.PriorityQueue,s={},d;c=c||{};for(d in o)o.hasOwnProperty(d)&&(s[d]=o[d]);return s.queue=[],s.sorter=c.sorter||o.default_sorter,s},default_sorter:function(c,o){return c.cost-o.cost},push:function(c,o){var s={value:c,cost:o};this.queue.push(s),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};i.exports=u})(Kf)),Kf.exports}var Ay;function yE(){return Ay||(Ay=1,(function(i){const u=va(),c=dE(),o=mE(),s=hE(),d=vE(),h=Kp(),v=ha(),g=gE();function x(q){return unescape(encodeURIComponent(q)).length}function S(q,G,k){const V=[];let K;for(;(K=q.exec(k))!==null;)V.push({data:K[0],index:K.index,mode:G,length:K[0].length});return V}function p(q){const G=S(h.NUMERIC,u.NUMERIC,q),k=S(h.ALPHANUMERIC,u.ALPHANUMERIC,q);let V,K;return v.isKanjiModeEnabled()?(V=S(h.BYTE,u.BYTE,q),K=S(h.KANJI,u.KANJI,q)):(V=S(h.BYTE_KANJI,u.BYTE,q),K=[]),G.concat(k,V,K).sort(function(E,R){return E.index-R.index}).map(function(E){return{data:E.data,mode:E.mode,length:E.length}})}function N(q,G){switch(G){case u.NUMERIC:return c.getBitsLength(q);case u.ALPHANUMERIC:return o.getBitsLength(q);case u.KANJI:return d.getBitsLength(q);case u.BYTE:return s.getBitsLength(q)}}function A(q){return q.reduce(function(G,k){const V=G.length-1>=0?G[G.length-1]:null;return V&&V.mode===k.mode?(G[G.length-1].data+=k.data,G):(G.push(k),G)},[])}function j(q){const G=[];for(let k=0;k<q.length;k++){const V=q[k];switch(V.mode){case u.NUMERIC:G.push([V,{data:V.data,mode:u.ALPHANUMERIC,length:V.length},{data:V.data,mode:u.BYTE,length:V.length}]);break;case u.ALPHANUMERIC:G.push([V,{data:V.data,mode:u.BYTE,length:V.length}]);break;case u.KANJI:G.push([V,{data:V.data,mode:u.BYTE,length:x(V.data)}]);break;case u.BYTE:G.push([{data:V.data,mode:u.BYTE,length:x(V.data)}])}}return G}function z(q,G){const k={},V={start:{}};let K=["start"];for(let _=0;_<q.length;_++){const E=q[_],R=[];for(let Q=0;Q<E.length;Q++){const te=E[Q],W=""+_+Q;R.push(W),k[W]={node:te,lastCount:0},V[W]={};for(let P=0;P<K.length;P++){const ne=K[P];k[ne]&&k[ne].node.mode===te.mode?(V[ne][W]=N(k[ne].lastCount+te.length,te.mode)-N(k[ne].lastCount,te.mode),k[ne].lastCount+=te.length):(k[ne]&&(k[ne].lastCount=te.length),V[ne][W]=N(te.length,te.mode)+4+u.getCharCountIndicator(te.mode,G))}}K=R}for(let _=0;_<K.length;_++)V[K[_]].end=0;return{map:V,table:k}}function H(q,G){let k;const V=u.getBestModeForData(q);if(k=u.from(G,V),k!==u.BYTE&&k.bit<V.bit)throw new Error('"'+q+'" cannot be encoded with mode '+u.toString(k)+`.
|
||
Suggested mode is: `+u.toString(V));switch(k===u.KANJI&&!v.isKanjiModeEnabled()&&(k=u.BYTE),k){case u.NUMERIC:return new c(q);case u.ALPHANUMERIC:return new o(q);case u.KANJI:return new d(q);case u.BYTE:return new s(q)}}i.fromArray=function(G){return G.reduce(function(k,V){return typeof V=="string"?k.push(H(V,null)):V.data&&k.push(H(V.data,V.mode)),k},[])},i.fromString=function(G,k){const V=p(G,v.isKanjiModeEnabled()),K=j(V),_=z(K,k),E=g.find_path(_.map,"start","end"),R=[];for(let Q=1;Q<E.length-1;Q++)R.push(_.table[E[Q]].node);return i.fromArray(A(R))},i.rawSplit=function(G){return i.fromArray(p(G,v.isKanjiModeEnabled()))}})(Yf)),Yf}var Ry;function pE(){if(Ry)return Af;Ry=1;const i=ha(),u=Kd(),c=nE(),o=lE(),s=aE(),d=iE(),h=rE(),v=Xp(),g=cE(),x=sE(),S=fE(),p=va(),N=yE();function A(_,E){const R=_.size,Q=d.getPositions(E);for(let te=0;te<Q.length;te++){const W=Q[te][0],P=Q[te][1];for(let ne=-1;ne<=7;ne++)if(!(W+ne<=-1||R<=W+ne))for(let re=-1;re<=7;re++)P+re<=-1||R<=P+re||(ne>=0&&ne<=6&&(re===0||re===6)||re>=0&&re<=6&&(ne===0||ne===6)||ne>=2&&ne<=4&&re>=2&&re<=4?_.set(W+ne,P+re,!0,!0):_.set(W+ne,P+re,!1,!0))}}function j(_){const E=_.size;for(let R=8;R<E-8;R++){const Q=R%2===0;_.set(R,6,Q,!0),_.set(6,R,Q,!0)}}function z(_,E){const R=s.getPositions(E);for(let Q=0;Q<R.length;Q++){const te=R[Q][0],W=R[Q][1];for(let P=-2;P<=2;P++)for(let ne=-2;ne<=2;ne++)P===-2||P===2||ne===-2||ne===2||P===0&&ne===0?_.set(te+P,W+ne,!0,!0):_.set(te+P,W+ne,!1,!0)}}function H(_,E){const R=_.size,Q=x.getEncodedBits(E);let te,W,P;for(let ne=0;ne<18;ne++)te=Math.floor(ne/3),W=ne%3+R-8-3,P=(Q>>ne&1)===1,_.set(te,W,P,!0),_.set(W,te,P,!0)}function q(_,E,R){const Q=_.size,te=S.getEncodedBits(E,R);let W,P;for(W=0;W<15;W++)P=(te>>W&1)===1,W<6?_.set(W,8,P,!0):W<8?_.set(W+1,8,P,!0):_.set(Q-15+W,8,P,!0),W<8?_.set(8,Q-W-1,P,!0):W<9?_.set(8,15-W-1+1,P,!0):_.set(8,15-W-1,P,!0);_.set(Q-8,8,1,!0)}function G(_,E){const R=_.size;let Q=-1,te=R-1,W=7,P=0;for(let ne=R-1;ne>0;ne-=2)for(ne===6&&ne--;;){for(let re=0;re<2;re++)if(!_.isReserved(te,ne-re)){let ge=!1;P<E.length&&(ge=(E[P]>>>W&1)===1),_.set(te,ne-re,ge),W--,W===-1&&(P++,W=7)}if(te+=Q,te<0||R<=te){te-=Q,Q=-Q;break}}}function k(_,E,R){const Q=new c;R.forEach(function(re){Q.put(re.mode.bit,4),Q.put(re.getLength(),p.getCharCountIndicator(re.mode,_)),re.write(Q)});const te=i.getSymbolTotalCodewords(_),W=v.getTotalCodewordsCount(_,E),P=(te-W)*8;for(Q.getLengthInBits()+4<=P&&Q.put(0,4);Q.getLengthInBits()%8!==0;)Q.putBit(0);const ne=(P-Q.getLengthInBits())/8;for(let re=0;re<ne;re++)Q.put(re%2?17:236,8);return V(Q,_,E)}function V(_,E,R){const Q=i.getSymbolTotalCodewords(E),te=v.getTotalCodewordsCount(E,R),W=Q-te,P=v.getBlocksCount(E,R),ne=Q%P,re=P-ne,ge=Math.floor(Q/P),F=Math.floor(W/P),ae=F+1,ce=ge-F,xe=new g(ce);let I=0;const Se=new Array(P),J=new Array(P);let me=0;const w=new Uint8Array(_.buffer);for(let ie=0;ie<P;ie++){const Ne=ie<re?F:ae;Se[ie]=w.slice(I,I+Ne),J[ie]=xe.encode(Se[ie]),I+=Ne,me=Math.max(me,Ne)}const U=new Uint8Array(Q);let $=0,ee,he;for(ee=0;ee<me;ee++)for(he=0;he<P;he++)ee<Se[he].length&&(U[$++]=Se[he][ee]);for(ee=0;ee<ce;ee++)for(he=0;he<P;he++)U[$++]=J[he][ee];return U}function K(_,E,R,Q){let te;if(Array.isArray(_))te=N.fromArray(_);else if(typeof _=="string"){let ge=E;if(!ge){const F=N.rawSplit(_);ge=x.getBestVersionForData(F,R)}te=N.fromString(_,ge||40)}else throw new Error("Invalid data");const W=x.getBestVersionForData(te,R);if(!W)throw new Error("The amount of data is too big to be stored in a QR Code");if(!E)E=W;else if(E<W)throw new Error(`
|
||
The chosen QR Code version cannot contain this amount of data.
|
||
Minimum version required to store current data is: `+W+`.
|
||
`);const P=k(E,R,te),ne=i.getSymbolSize(E),re=new o(ne);return A(re,E),j(re),z(re,E),q(re,R,0),E>=7&&H(re,E),G(re,P),isNaN(Q)&&(Q=h.getBestMask(re,q.bind(null,re,R))),h.applyMask(Q,re),q(re,R,Q),{modules:re,version:E,errorCorrectionLevel:R,maskPattern:Q,segments:te}}return Af.create=function(E,R){if(typeof E>"u"||E==="")throw new Error("No input text");let Q=u.M,te,W;return typeof R<"u"&&(Q=u.from(R.errorCorrectionLevel,u.M),te=x.from(R.version),W=h.from(R.maskPattern),R.toSJISFunc&&i.setToSJISFunction(R.toSJISFunc)),K(E,te,Q,W)},Af}var If={},Jf={},My;function Ip(){return My||(My=1,(function(i){function u(c){if(typeof c=="number"&&(c=c.toString()),typeof c!="string")throw new Error("Color should be defined as hex string");let o=c.slice().replace("#","").split("");if(o.length<3||o.length===5||o.length>8)throw new Error("Invalid hex color: "+c);(o.length===3||o.length===4)&&(o=Array.prototype.concat.apply([],o.map(function(d){return[d,d]}))),o.length===6&&o.push("F","F");const s=parseInt(o.join(""),16);return{r:s>>24&255,g:s>>16&255,b:s>>8&255,a:s&255,hex:"#"+o.slice(0,6).join("")}}i.getOptions=function(o){o||(o={}),o.color||(o.color={});const s=typeof o.margin>"u"||o.margin===null||o.margin<0?4:o.margin,d=o.width&&o.width>=21?o.width:void 0,h=o.scale||4;return{width:d,scale:d?4:h,margin:s,color:{dark:u(o.color.dark||"#000000ff"),light:u(o.color.light||"#ffffffff")},type:o.type,rendererOpts:o.rendererOpts||{}}},i.getScale=function(o,s){return s.width&&s.width>=o+s.margin*2?s.width/(o+s.margin*2):s.scale},i.getImageWidth=function(o,s){const d=i.getScale(o,s);return Math.floor((o+s.margin*2)*d)},i.qrToImageData=function(o,s,d){const h=s.modules.size,v=s.modules.data,g=i.getScale(h,d),x=Math.floor((h+d.margin*2)*g),S=d.margin*g,p=[d.color.light,d.color.dark];for(let N=0;N<x;N++)for(let A=0;A<x;A++){let j=(N*x+A)*4,z=d.color.light;if(N>=S&&A>=S&&N<x-S&&A<x-S){const H=Math.floor((N-S)/g),q=Math.floor((A-S)/g);z=p[v[H*h+q]?1:0]}o[j++]=z.r,o[j++]=z.g,o[j++]=z.b,o[j]=z.a}}})(Jf)),Jf}var Oy;function bE(){return Oy||(Oy=1,(function(i){const u=Ip();function c(s,d,h){s.clearRect(0,0,d.width,d.height),d.style||(d.style={}),d.height=h,d.width=h,d.style.height=h+"px",d.style.width=h+"px"}function o(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}i.render=function(d,h,v){let g=v,x=h;typeof g>"u"&&(!h||!h.getContext)&&(g=h,h=void 0),h||(x=o()),g=u.getOptions(g);const S=u.getImageWidth(d.modules.size,g),p=x.getContext("2d"),N=p.createImageData(S,S);return u.qrToImageData(N.data,d,g),c(p,x,S),p.putImageData(N,0,0),x},i.renderToDataURL=function(d,h,v){let g=v;typeof g>"u"&&(!h||!h.getContext)&&(g=h,h=void 0),g||(g={});const x=i.render(d,h,g),S=g.type||"image/png",p=g.rendererOpts||{};return x.toDataURL(S,p.quality)}})(If)),If}var Ff={},zy;function xE(){if(zy)return Ff;zy=1;const i=Ip();function u(s,d){const h=s.a/255,v=d+'="'+s.hex+'"';return h<1?v+" "+d+'-opacity="'+h.toFixed(2).slice(1)+'"':v}function c(s,d,h){let v=s+d;return typeof h<"u"&&(v+=" "+h),v}function o(s,d,h){let v="",g=0,x=!1,S=0;for(let p=0;p<s.length;p++){const N=Math.floor(p%d),A=Math.floor(p/d);!N&&!x&&(x=!0),s[p]?(S++,p>0&&N>0&&s[p-1]||(v+=x?c("M",N+h,.5+A+h):c("m",g,0),g=0,x=!1),N+1<d&&s[p+1]||(v+=c("h",S),S=0)):g++}return v}return Ff.render=function(d,h,v){const g=i.getOptions(h),x=d.modules.size,S=d.modules.data,p=x+g.margin*2,N=g.color.light.a?"<path "+u(g.color.light,"fill")+' d="M0 0h'+p+"v"+p+'H0z"/>':"",A="<path "+u(g.color.dark,"stroke")+' d="'+o(S,x,g.margin)+'"/>',j='viewBox="0 0 '+p+" "+p+'"',H='<svg xmlns="http://www.w3.org/2000/svg" '+(g.width?'width="'+g.width+'" height="'+g.width+'" ':"")+j+' shape-rendering="crispEdges">'+N+A+`</svg>
|
||
`;return typeof v=="function"&&v(null,H),H},Ff}var Dy;function SE(){if(Dy)return si;Dy=1;const i=tE(),u=pE(),c=bE(),o=xE();function s(d,h,v,g,x){const S=[].slice.call(arguments,1),p=S.length,N=typeof S[p-1]=="function";if(!N&&!i())throw new Error("Callback required as last argument");if(N){if(p<2)throw new Error("Too few arguments provided");p===2?(x=v,v=h,h=g=void 0):p===3&&(h.getContext&&typeof x>"u"?(x=g,g=void 0):(x=g,g=v,v=h,h=void 0))}else{if(p<1)throw new Error("Too few arguments provided");return p===1?(v=h,h=g=void 0):p===2&&!h.getContext&&(g=v,v=h,h=void 0),new Promise(function(A,j){try{const z=u.create(v,g);A(d(z,h,g))}catch(z){j(z)}})}try{const A=u.create(v,g);x(null,d(A,h,g))}catch(A){x(A)}}return si.create=u.create,si.toCanvas=s.bind(null,c.render),si.toDataURL=s.bind(null,c.renderToDataURL),si.toString=s.bind(null,function(d,h,v){return o.render(d,v)}),si}var NE=SE();const Pf=gd(NE),CE=()=>{const{showWechatModal:i,setShowWechatModal:u,showToast:c,fetchTelemetry:o}=Un(),[s,d]=b.useState(null),[h,v]=b.useState(""),[g,x]=b.useState(!1),[S,p]=b.useState(""),[N,A]=b.useState(!1),j=async()=>{var k;x(!0);try{const K=await(await fetch("/api/clawbot/qrcode",{method:"POST"})).json();d(K);const _=(k=K==null?void 0:K.login)==null?void 0:k.qrcode_url;if(_){const E=await Pf.toDataURL(_,{width:240,margin:2,color:{dark:"#09090b",light:"#ffffff"}});v(E)}}catch{c("获取微信 ClawBot 二维码失败")}finally{x(!1)}};b.useEffect(()=>{if(!i)return;let k=!1;(async()=>{var _,E,R;try{const te=await(await fetch("/api/clawbot/status")).json();if(k)return;if(d(te),!te.connected&&(!((_=te.login)!=null&&_.active)||!((E=te.login)!=null&&E.qrcode_url)))await j();else if((R=te.login)!=null&&R.qrcode_url){const W=await Pf.toDataURL(te.login.qrcode_url,{width:240,margin:2,color:{dark:"#09090b",light:"#ffffff"}});k||v(W)}}catch{}})();const K=setInterval(async()=>{var _;try{const E=await fetch("/api/clawbot/status");if(!E.ok)return;const R=await E.json();if(k)return;if(d(R),(_=R.login)!=null&&_.qrcode_url){const Q=await Pf.toDataURL(R.login.qrcode_url,{width:240,margin:2,color:{dark:"#09090b",light:"#ffffff"}});k||v(Q)}}catch{}},1500);return()=>{k=!0,clearInterval(K)}},[i]);const z=async k=>{if(k.preventDefault(),!!S.trim()){A(!0);try{const K=await(await fetch("/api/clawbot/verify",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:S.trim()})})).json();d(K),p(""),c("配对码已提交,正在等待微信验证...")}catch{c("配对码提交失败")}finally{A(!1)}}},H=async()=>{try{const V=await(await fetch("/api/clawbot/disconnect",{method:"POST"})).json();d(V),v(""),o(),c("已断开微信 ClawBot 连接")}catch{c("断开失败")}},q=!!(s!=null&&s.connected),G=s==null?void 0:s.login;return f.jsx(Gd,{open:i,onOpenChange:u,children:f.jsxs(wo,{className:"max-w-lg p-6 space-y-5",children:[f.jsx("div",{className:"flex items-start justify-between gap-3 border-b hl-border pb-4",children:f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx("div",{className:"w-10 h-10 rounded-xl flex items-center justify-center border hl-border shrink-0",style:{backgroundColor:"rgba(16, 185, 129, 0.14)",color:"var(--success)"},children:f.jsx(pd,{className:"w-5 h-5"})}),f.jsxs("div",{children:[f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx(To,{className:"text-sm font-bold",children:"微信 ClawBot · M6 Mac mini 直连通道"}),f.jsx(rt,{variant:q?"success":"accent",children:q?"已连接在线":"扫码绑定"})]}),f.jsx(jo,{className:"text-xs font-mono-num mt-0.5",children:"@tencent-weixin/openclaw-weixin · ilinkai.weixin.qq.com"})]})]})}),q?f.jsxs("div",{className:"space-y-4",children:[f.jsxs("div",{className:"p-4 rounded-xl border flex items-center justify-between",style:{backgroundColor:"var(--success-soft)",borderColor:"rgba(16, 185, 129, 0.3)"},children:[f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx(SS,{className:"w-5 h-5 shrink-0",style:{color:"var(--success)"}}),f.jsxs("div",{children:[f.jsx("div",{className:"text-xs font-bold",children:"微信 ClawBot 长轮询守护线程运行中"}),f.jsxs("div",{className:"text-[11px] font-mono-num mt-0.5",style:{color:"var(--text-muted)"},children:["Bot ID: ",s==null?void 0:s.bot_id," · 累计收发: ",(s==null?void 0:s.msg_count)??0," 条"]})]})]}),f.jsxs(Oe,{variant:"outline",size:"sm",onClick:H,children:[f.jsx(uN,{className:"w-3.5 h-3.5"}),f.jsx("span",{children:"重新绑定"})]})]}),f.jsxs("div",{className:"p-4 rounded-xl hl-muted border hl-border space-y-2.5 text-xs",children:[f.jsx("div",{className:"font-semibold",children:"📱 现在打开手机微信「微信 ClawBot」可直接发送:"}),f.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-2 font-mono-num text-[11px]",children:[f.jsxs("div",{className:"p-2 rounded hl-card",children:[f.jsx("span",{style:{color:"var(--accent)"},children:"状态"})," · 查看 M6 & 极空间遥测"]}),f.jsxs("div",{className:"p-2 rounded hl-card",children:[f.jsx("span",{style:{color:"var(--accent)"},children:"备份"})," · 立即打包备份至 20TB NAS"]}),f.jsxs("div",{className:"p-2 rounded hl-card",children:[f.jsx("span",{style:{color:"var(--accent)"},children:"屏幕"})," · 截取 AGY 终端实时画面"]}),f.jsxs("div",{className:"p-2 rounded hl-card",children:[f.jsx("span",{style:{color:"var(--accent)"},children:"$ df -h"})," · 执行任意 Mac mini 命令"]}),f.jsxs("div",{className:"p-2 rounded hl-card sm:col-span-2",children:[f.jsx("span",{style:{color:"var(--accent)"},children:"> 你好"})," 或直接发任意问题 · 注入 AGY 终端或调用 AI 回答"]})]})]})]}):f.jsxs("div",{className:"space-y-4",children:[f.jsxs("div",{className:"flex flex-col items-center justify-center p-5 rounded-xl hl-muted border hl-border space-y-3",children:[h?f.jsx("div",{className:"p-3 bg-white rounded-xl shadow-md border",children:f.jsx("img",{src:h,alt:"WeChat ClawBot QR Code",className:"w-48 h-48 block"})}):f.jsx("div",{className:"w-48 h-48 rounded-xl hl-card flex items-center justify-center text-xs font-mono-num",children:g?"正在向微信申请二维码...":"点击下方按钮生成二维码"}),f.jsxs("div",{className:"flex items-center gap-2 text-xs font-medium text-center",children:[f.jsx(tN,{className:"w-4 h-4 shrink-0",style:{color:"var(--accent)"}}),f.jsx("span",{children:(G==null?void 0:G.message)||"请使用手机微信扫描上方二维码启用 ClawBot"})]}),f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsxs(Oe,{variant:"outline",size:"sm",onClick:j,disabled:g,children:[f.jsx(Yy,{className:"w-3.5 h-3.5"}),f.jsx("span",{children:g?"刷新中...":"刷新二维码"})]}),(G==null?void 0:G.qrcode_url)&&f.jsx(Oe,{variant:"ghost",size:"sm",asChild:!0,children:f.jsxs("a",{href:G.qrcode_url,target:"_blank",rel:"noopener noreferrer",className:"font-mono-num",children:[f.jsx(KS,{className:"w-3.5 h-3.5"}),f.jsx("span",{children:"打开备用链接 ↗"})]})})]})]}),(G==null?void 0:G.status)==="need_verifycode"&&f.jsxs("form",{onSubmit:z,className:"p-4 rounded-xl border space-y-2.5",style:{backgroundColor:"var(--accent-soft)",borderColor:"var(--accent)"},children:[f.jsx("label",{className:"block text-xs font-bold",children:"🔢 手机微信上显示了配对数字,请在下方输入:"}),f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx(Yd,{type:"text",value:S,onChange:k=>p(k.target.value),placeholder:"输入手机微信显示的 6 位数字...",className:"font-mono-num",autoFocus:!0}),f.jsxs(Oe,{type:"submit",disabled:N,children:[f.jsx(PS,{className:"w-3.5 h-3.5"}),f.jsx("span",{children:"验证"})]})]})]})]}),f.jsx("div",{className:"flex items-center justify-end pt-1",children:f.jsx(Oe,{variant:"outline",onClick:()=>u(!1),children:"关闭窗口"})})]})})},EE={light:{id:"light",name:"Shadcn Clean Light (浅色纯净)",description:"对标 Apple / Stripe / Linear 浅色日光模式,高对比深灰文字配纯净白卡片与冷灰微边框。",tokens:{"--bg-page":"#f8fafc","--bg-card":"#ffffff","--bg-widget":"#f8fafc","--bg-muted":"#f1f5f9","--bg-hover":"#ffffff","--text-main":"#0f172a","--text-muted":"#64748b","--text-subtle":"#94a3b8","--border-color":"#e2e8f0","--border-hover":"#cbd5e1","--primary":"#0f172a","--primary-fg":"#ffffff","--accent":"#2563eb","--accent-soft":"rgba(37, 99, 235, 0.08)","--success":"#10b981","--success-soft":"rgba(16, 185, 129, 0.10)"}},dark:{id:"dark",name:"Catppuccin / Linear Dark (深色极客)",description:"融合 Catppuccin Mocha 与 Linear 暗黑规范,柔和护眼的深邃蓝黑基底配高辨识度状态色。",tokens:{"--bg-page":"#11111b","--bg-card":"#1e1e2e","--bg-widget":"#181825","--bg-muted":"#313244","--bg-hover":"#242438","--text-main":"#cdd6f4","--text-muted":"#a6adc8","--text-subtle":"#6c7086","--border-color":"#313244","--border-hover":"#45475a","--primary":"#cba6f7","--primary-fg":"#11111b","--accent":"#89b4fa","--accent-soft":"rgba(137, 180, 250, 0.15)","--success":"#a6e3a1","--success-soft":"rgba(166, 227, 161, 0.15)"}}},xo={"homepage-3col":{id:"homepage-3col",name:"Homepage 经典三列矩阵 (3-Column Grid)",description:"gethomepage.dev 标志性对称 3 列分组卡片,底部内嵌 3 格实时遥测单元。",gridClass:"grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4"},"bento-split":{id:"bento-split",name:"Shadcn 双列宽屏卡片 (2-Column Wide Bento)",description:"适合大字号阅读的 2 列宽体卡片布局,留白更充裕。",gridClass:"grid-cols-1 lg:grid-cols-2 gap-5"},"compact-2col":{id:"compact-2col",name:"高密度四列紧凑矩阵 (4-Column Dense)",description:"适合超宽显示器的一屏高密度 4 列布局。",gridClass:"grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-3.5"}},wE=()=>{const[i,u]=b.useState("form-inputs"),{theme:c,resolvedTheme:o,layoutPreset:s,setTheme:d,setLayoutPreset:h,setViewMode:v,setShowCmdPalette:g,telemetry:x,showToast:S}=Un(),[p,N]=b.useState(!0),[A,j]=b.useState("drawer"),[z,H]=b.useState(""),[q,G]=b.useState("192.168.31.164"),[k,V]=b.useState(!0),K=[{id:"layout-architecture",group:"FOUNDATIONS / 架构与布局",title:"01. AppShell 双层顶栏与网格布局",icon:f.jsx(XS,{className:"w-3.5 h-3.5"})},{id:"theme-tokens",group:"FOUNDATIONS / 架构与布局",title:"02. 双主题色板与自动切换规范",icon:f.jsx(VS,{className:"w-3.5 h-3.5"})},{id:"form-inputs",group:"SHADCN / RADIX UI 组件",title:"03. shadcn/ui + Radix 原语与认证弹窗",icon:f.jsx(U0,{className:"w-3.5 h-3.5"})},{id:"service-card",group:"SHADCN / RADIX UI 组件",title:"04. ServiceCard 内联遥测卡片",icon:f.jsx(Gy,{className:"w-3.5 h-3.5"})},{id:"ssh-shelf",group:"SHADCN / RADIX UI 组件",title:"05. SshShelf 快捷指令栏",icon:f.jsx(yr,{className:"w-3.5 h-3.5"})}];return f.jsx("div",{className:"flex-1 max-w-7xl w-full mx-auto px-4 sm:px-6 lg:px-8 py-6",children:f.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-4 gap-6 items-start",children:[f.jsxs(an,{className:"p-4 space-y-4 lg:sticky lg:top-20",children:[f.jsxs("div",{className:"flex items-center justify-between border-b hl-border pb-3",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx(Hy,{className:"w-4 h-4",style:{color:"var(--accent)"}}),f.jsx("span",{className:"text-xs font-bold uppercase tracking-wider",children:"shadcn/ui 组件库"})]}),f.jsx(rt,{variant:"accent",children:"Radix + cmdk"})]}),f.jsx("div",{className:"space-y-1",children:K.map(_=>f.jsxs("button",{onClick:()=>u(_.id),className:"w-full px-3 py-2 rounded-lg text-left text-xs font-medium flex items-center gap-2.5 transition-all cursor-pointer",style:i===_.id?{backgroundColor:"var(--accent-soft)",color:"var(--accent)"}:{color:"var(--text-muted)"},children:[_.icon,f.jsx("span",{className:"truncate",children:_.title})]},_.id))}),f.jsxs("div",{className:"pt-3 border-t hl-border space-y-2 text-xs",children:[f.jsx("div",{className:"text-[11px] font-semibold",style:{color:"var(--text-muted)"},children:"全局外观状态预览 (@radix-ui/react-tabs)"}),f.jsx(yo,{value:c,onValueChange:_=>d(_),children:f.jsxs(pr,{className:"w-full grid grid-cols-3",children:[f.jsx(Dn,{value:"system",children:"自动"}),f.jsx(Dn,{value:"light",children:"浅色"}),f.jsx(Dn,{value:"dark",children:"深色"})]})}),f.jsx(Oe,{onClick:()=>v("dashboard"),className:"w-full mt-2",children:"返回中控台主页"})]})]}),f.jsxs("div",{className:"lg:col-span-3 space-y-6",children:[i==="layout-architecture"&&f.jsx("div",{className:"space-y-6",children:f.jsxs(an,{className:"p-6 space-y-4",children:[f.jsx("div",{className:"flex items-center justify-between border-b hl-border pb-4",children:f.jsxs("div",{children:[f.jsx("span",{className:"text-[11px] font-mono-num uppercase tracking-wider",style:{color:"var(--accent)"},children:"Foundations / AppShell Layout"}),f.jsx("h2",{className:"text-lg font-bold mt-0.5",children:"标准双层顶栏架构 (Two-Tier AppShell) & 响应式网格切换"})]})}),f.jsxs("p",{className:"text-xs leading-relaxed",style:{color:"var(--text-muted)"},children:["参考 ",f.jsx("strong",{children:"Vercel Geist / shadcn/ui Dashboard-01 / GitHub AppShell"})," ","标准规范,将原本容易挤压折行的单层顶栏拆分为职责清晰的双层结构:"]}),f.jsxs("div",{className:"p-4 rounded-xl hl-muted border hl-border space-y-2.5 font-mono-num text-xs",children:[f.jsxs("div",{className:"p-3 rounded-lg hl-card flex items-center justify-between",children:[f.jsx("span",{children:"[左] 🍎 HomeLab · Radix Tabs 切换 (中控台 / Storybook)"}),f.jsx("span",{style:{color:"var(--accent)"},children:"[最右固定] 🔍 搜索 ⌘K · >_ AGY 终端 · ☀️/🌙 主题切换"})]}),f.jsxs("div",{className:"p-3 rounded-lg hl-card flex items-center justify-between",children:[f.jsx("span",{style:{color:"var(--success)"},children:"[左] 实时硬件遥测条 (M6 CPU · RAM · Z4 20TB · SG 专线)"}),f.jsx("span",{children:"[右对齐] Radix Tabs 路由切换器 (智能路由 / 443 / 10443 / LAN)"})]})]}),f.jsxs("div",{className:"pt-2 space-y-3",children:[f.jsx("div",{className:"text-xs font-semibold",children:"选择主页卡片网格布局预设(点击立即应用到主页):"}),f.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-3.5",children:Object.keys(xo).map(_=>{const E=xo[_],R=s===_;return f.jsxs("div",{onClick:()=>h(_),className:"hl-card hl-card-interactive p-4 cursor-pointer space-y-2",style:R?{borderColor:"var(--accent)"}:{},children:[f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsx("span",{className:"text-xs font-bold",children:E.name}),R&&f.jsx("span",{className:"w-4 h-4 rounded-full flex items-center justify-center",style:{backgroundColor:"var(--accent)",color:"#fff"},children:f.jsx(bS,{className:"w-2.5 h-2.5"})})]}),f.jsx("p",{className:"text-[11px]",style:{color:"var(--text-muted)"},children:E.description}),f.jsx("code",{className:"text-[10px] font-mono-num block pt-1",style:{color:"var(--accent)"},children:E.gridClass})]},_)})})]})]})}),i==="theme-tokens"&&f.jsxs(an,{className:"p-6 space-y-6",children:[f.jsxs("div",{className:"border-b hl-border pb-4 flex items-center justify-between",children:[f.jsxs("div",{children:[f.jsx("span",{className:"text-[11px] font-mono-num uppercase tracking-wider",style:{color:"var(--accent)"},children:"Foundations / Color System"}),f.jsxs("h2",{className:"text-lg font-bold mt-0.5",children:["主流双主题色板规范(当前生效:",o==="dark"?"深色极客":"浅色纯净",")"]})]}),f.jsxs(rt,{variant:"secondary",children:["模式: ",c==="system"?"跟随设备自动切换":"手动锁定"]})]}),f.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-5",children:["light","dark"].map(_=>{const E=EE[_];return f.jsxs("div",{className:"rounded-xl p-5 space-y-4 border",style:{backgroundColor:E.tokens["--bg-page"],color:E.tokens["--text-main"],borderColor:E.tokens["--border-color"]},children:[f.jsxs("div",{className:"flex items-center justify-between border-b pb-3",style:{borderColor:E.tokens["--border-color"]},children:[f.jsxs("div",{children:[f.jsx("div",{className:"text-sm font-bold",children:E.name}),f.jsx("div",{className:"text-xs mt-0.5",style:{color:E.tokens["--text-muted"]},children:E.description})]}),f.jsx("button",{onClick:()=>d(_),className:"px-2.5 py-1 rounded-md text-xs font-mono-num font-semibold cursor-pointer",style:{backgroundColor:E.tokens["--primary"],color:E.tokens["--primary-fg"]},children:"预览此主题"})]}),f.jsx("div",{className:"grid grid-cols-2 gap-2",children:Object.entries(E.tokens).map(([R,Q])=>f.jsxs("div",{className:"p-2 rounded-lg border flex items-center gap-2",style:{backgroundColor:E.tokens["--bg-card"],borderColor:E.tokens["--border-color"]},children:[f.jsx("span",{className:"w-5 h-5 rounded border shrink-0",style:{backgroundColor:Q,borderColor:E.tokens["--border-hover"]}}),f.jsxs("div",{className:"min-w-0",children:[f.jsx("div",{className:"text-[10px] font-mono-num font-semibold truncate",children:R}),f.jsx("div",{className:"text-[10px] font-mono-num truncate",style:{color:E.tokens["--text-muted"]},children:Q})]})]},R))})]},E.id)})})]}),i==="form-inputs"&&f.jsxs(an,{className:"p-6 space-y-6",children:[f.jsxs("div",{className:"border-b hl-border pb-4 flex items-center justify-between",children:[f.jsxs("div",{children:[f.jsx("span",{className:"text-[11px] font-mono-num uppercase tracking-wider",style:{color:"var(--accent)"},children:"src/components/ui/* · Official shadcn/ui + Radix Primitives + cmdk"}),f.jsx("h2",{className:"text-lg font-bold mt-0.5",children:"开源 `shadcn/ui` 组件库(`Input` / `Button` / `Switch` / `Badge` / `CommandDialog` / `AuthGateCard`)"})]}),f.jsx(U0,{className:"w-4 h-4",style:{color:"var(--accent)"}})]}),f.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6 items-start",children:[f.jsxs("div",{className:"p-5 rounded-xl hl-muted border hl-border space-y-4",children:[f.jsx("div",{className:"text-xs font-bold uppercase tracking-wider",style:{color:"var(--text-muted)"},children:"1. `src/components/ui/*` 标准原语展示"}),f.jsxs("div",{className:"space-y-1.5",children:[f.jsx("label",{className:"block text-xs font-medium",style:{color:"var(--text-muted)"},children:"Button 变体 (`cva` + `@radix-ui/react-slot`)"}),f.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[f.jsx(Oe,{variant:"default",children:"Primary 主按钮"}),f.jsx(Oe,{variant:"outline",children:"Outline 描边"}),f.jsx(Oe,{variant:"secondary",children:"Secondary 次级"}),f.jsx(Oe,{variant:"accent",children:"Accent 高亮"}),f.jsx(Oe,{variant:"ghost",onClick:()=>g(!0),children:"唤起 cmdk 面板 ⌘K"})]})]}),f.jsxs("div",{className:"space-y-1.5",children:[f.jsx("label",{className:"block text-xs font-medium",style:{color:"var(--text-muted)"},children:"Badge 标签与 `@radix-ui/react-switch` 开关"}),f.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2 p-2.5 rounded-lg hl-card",children:[f.jsxs("div",{className:"flex items-center gap-1.5",children:[f.jsx(rt,{variant:"default",children:"Default"}),f.jsx(rt,{variant:"accent",children:"Radix UI"}),f.jsx(rt,{variant:"success",children:"Online"}),f.jsx(rt,{variant:"outline",children:"v3.2"})]}),f.jsx(bo,{checked:k,onCheckedChange:V})]})]}),f.jsxs("div",{className:"space-y-1.5",children:[f.jsx("label",{className:"block text-xs font-medium",style:{color:"var(--text-muted)"},children:"`InputGroup` 组合输入框"}),f.jsxs(po,{children:[f.jsx(bd,{className:"w-4 h-4 shrink-0",style:{color:"var(--text-subtle)"}}),f.jsx("input",{type:"text",value:z,onChange:_=>H(_.target.value),placeholder:"搜索服务、SSH 指令或节点..."}),f.jsx("kbd",{className:"px-1.5 py-0.5 text-[10px] font-mono-num rounded hl-card border hl-border",style:{color:"var(--text-muted)"},children:"⌘K"})]})]}),f.jsxs("div",{className:"space-y-1.5",children:[f.jsx("label",{className:"block text-xs font-medium",style:{color:"var(--text-muted)"},children:"`Input` 等宽字体输入框"}),f.jsx(Yd,{type:"text",value:q,onChange:_=>G(_.target.value),className:"font-mono-num",placeholder:"192.168.31.164"})]})]}),f.jsx("div",{className:"flex flex-col items-center",children:f.jsx(Zd,{embedded:!0,targetUrl:"https://agy.961504.xyz",onSuccess:()=>S("SSO 认证成功!已签发 30 天全域名通行 Cookie")})})]})]}),i==="service-card"&&f.jsxs(an,{className:"p-6 space-y-6",children:[f.jsxs("div",{className:"border-b hl-border pb-4 flex items-center justify-between",children:[f.jsxs("div",{children:[f.jsx("span",{className:"text-[11px] font-mono-num uppercase tracking-wider",style:{color:"var(--accent)"},children:"Components / ServiceCard"}),f.jsx("h2",{className:"text-lg font-bold mt-0.5",children:"三段式内联遥测卡片 (ServiceCard Interactive Story)"})]}),f.jsx($f,{className:"w-4 h-4",style:{color:"var(--accent)"}})]}),f.jsxs("div",{className:"p-4 rounded-xl hl-muted border hl-border flex flex-wrap items-center gap-6 text-xs",children:[f.jsxs("div",{className:"flex items-center gap-2.5",children:[f.jsx("span",{className:"font-semibold",children:"在线状态 (online):"}),f.jsx(bo,{checked:p,onCheckedChange:N}),f.jsx("span",{className:"font-mono-num",children:p?"true":"false"})]}),f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx("span",{className:"font-semibold",children:"右上角动作按钮 (actionType):"}),["drawer","backup",void 0].map((_,E)=>f.jsx(Oe,{variant:A===_?"accent":"outline",size:"sm",onClick:()=>j(_),className:"font-mono-num",children:_||"route-badge"},E))]})]}),f.jsx("div",{className:"max-w-md mx-auto py-4",children:f.jsx(Z1,{card:{id:"agy",title:"AGY 云端工作台",subtitle:"agy.961504.xyz · ttyd + tmux",iconUrl:"https://cdn.jsdelivr.net/gh/walkxcode/dashboard-icons/png/google-gemini.png",online:p,actionType:A,desc:"M6 Mac mini 上的 24 小时常驻 AI 编程终端,已同步 Google 登录态并锁定新加坡出口,关掉网页后台继续运行。",edgeUrl:"https://agy.961504.xyz",homeUrl:"https://agy.home.961504.xyz:10443",lanUrl:"http://192.168.31.164:7681",stats:[{label:"M6 CPU 负载",value:`${x.mini.cpu_pct}%`},{label:"已用内存",value:`${x.mini.mem_used_gb} / 24 GB`},{label:"tmux 会话",value:"常驻运行中",highlight:!0}]}})})]}),i==="ssh-shelf"&&f.jsxs(an,{className:"p-6 space-y-6",children:[f.jsxs("div",{className:"border-b hl-border pb-4",children:[f.jsx("span",{className:"text-[11px] font-mono-num uppercase tracking-wider",style:{color:"var(--accent)"},children:"Components / SshShelf"}),f.jsx("h2",{className:"text-lg font-bold mt-0.5",children:"底部 SSH 快捷复制与运维操作栏"})]}),f.jsx(K1,{})]})]})]})})},TE={blue:"#3b82f6",violet:"#8b5cf6",teal:"#14b8a6",amber:"#f59e0b"},jE=()=>{const{getEffectiveMode:i,routeMode:u,copyCmd:c,showToast:o,setShowAgyModal:s,setShowWechatModal:d}=Un(),[h,v]=b.useState("native"),[g,x]=b.useState(null),[S,p]=b.useState(!1),[N,A]=b.useState(!1),j=b.useMemo(()=>i(),[i,u]),z=b.useMemo(()=>j==="lan"?"http://192.168.31.164:3080":j==="home10443"?"https://codeg.home.961504.xyz:10443":"https://codeg.961504.xyz",[j]),H=b.useMemo(()=>j==="lan"?"http://192.168.31.164:3005":j==="home10443"?"https://git.home.961504.xyz:10443":"https://git.961504.xyz",[j]),q=b.useCallback(async()=>{p(!0);try{const E=await fetch("/api/agents/overview");if(E.ok){const R=await E.json();x(R)}}catch{}finally{p(!1)}},[]);b.useEffect(()=>{q();const E=setInterval(q,6e3);return()=>clearInterval(E)},[q]);const G=async()=>{A(!0),o("正在将 Gitea 热层仓库与 LFS 大文件归档至极空间 20TB NAS...");try{const R=await(await fetch("/api/action/sync_git_nas",{method:"POST"})).json();o(R.message||"极空间 Git 冷备同步完成"),await q()}catch{o("冷备同步请求失败")}finally{A(!1)}},k=(g==null?void 0:g.codeg.assistants)||[],V=(g==null?void 0:g.gitea.repos)||[],K=(g==null?void 0:g.gitea.cold_bundles)||[],_=(g==null?void 0:g.tmux_windows)||[];return f.jsxs("main",{className:"flex-1 max-w-7xl w-full mx-auto px-4 sm:px-6 lg:px-8 py-6 space-y-6",children:[f.jsxs("div",{className:"flex flex-col md:flex-row md:items-center justify-between gap-4 pb-2 border-b hl-border",children:[f.jsxs("div",{className:"space-y-1",children:[f.jsxs("div",{className:"flex items-center gap-2.5",children:[f.jsxs("h1",{className:"text-lg font-semibold tracking-tight flex items-center gap-2",children:[f.jsx(qy,{className:"w-5 h-5",style:{color:"var(--accent)"}}),f.jsx("span",{children:"Multi-Agent 协同编排与私有 Git 中枢"})]}),f.jsx(rt,{variant:"success",children:"Codeg v0.42 + Gitea v28.3"})]}),f.jsxs("p",{className:"text-xs",style:{color:"var(--text-muted)"},children:["以开源 Codeg (ACP 协议) 为底座、Gitea (Mac SSD 热层 + 极空间 20TB 冷层) 为代码仓库,支持单聊分工角色与"," ",f.jsx("code",{className:"font-mono-num px-1 py-0.5 rounded hl-muted",children:"@点名"})," 跨智能体群聊协作。"]})]}),f.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[f.jsx(yo,{value:h,onValueChange:E=>v(E),children:f.jsxs(pr,{children:[f.jsxs(Dn,{value:"native",children:[f.jsx(Gy,{className:"w-3.5 h-3.5"}),f.jsx("span",{children:"自研编排 & Git 大盘"})]}),f.jsxs(Dn,{value:"embedded",children:[f.jsx($f,{className:"w-3.5 h-3.5"}),f.jsx("span",{children:"内嵌 Codeg 完整画布"})]})]})}),f.jsxs(Oe,{variant:"outline",size:"sm",onClick:()=>window.open(z,"_blank","noopener,noreferrer"),children:[f.jsx(eo,{className:"w-3.5 h-3.5"}),f.jsx("span",{children:"全屏打开 Codeg"})]}),f.jsxs(Oe,{variant:"outline",size:"sm",onClick:()=>window.open(H,"_blank","noopener,noreferrer"),children:[f.jsx(D0,{className:"w-3.5 h-3.5"}),f.jsx("span",{children:"打开 Gitea"})]})]})]}),h==="embedded"?f.jsxs(an,{className:"overflow-hidden",children:[f.jsxs("div",{className:"px-4 py-2.5 border-b hl-border flex items-center justify-between text-xs",style:{backgroundColor:"var(--bg-muted)"},children:[f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx("span",{className:"w-2 h-2 rounded-full",style:{backgroundColor:"var(--success)"}}),f.jsx("span",{className:"font-medium",children:"Codeg 原生多智能体工作台 (已注入 SSO 免密凭证)"}),f.jsx("span",{className:"font-mono-num",style:{color:"var(--text-muted)"},children:z})]}),f.jsx("div",{className:"flex items-center gap-2",children:f.jsxs(Oe,{variant:"ghost",size:"sm",onClick:()=>window.open(z,"_blank","noopener,noreferrer"),children:[f.jsx(eo,{className:"w-3.5 h-3.5"}),f.jsx("span",{children:"新标签页全屏"})]})})]}),f.jsx("iframe",{src:z,title:"Codeg Multi-Agent Workspace",className:"w-full border-0",style:{height:"calc(100vh - 220px)",minHeight:"640px"}})]}):f.jsxs("div",{className:"space-y-6",children:[f.jsxs("section",{className:"space-y-3",children:[f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx(fN,{className:"w-4 h-4",style:{color:"var(--accent)"}}),f.jsx("h2",{className:"text-xs font-semibold uppercase tracking-wider",style:{color:"var(--text-muted)"},children:"分工角色会话与 @群聊战队 · Specialist Role Squad (`Google Antigravity` 底座)"})]}),f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsxs(Oe,{variant:"ghost",size:"sm",onClick:q,disabled:S,children:[f.jsx(Yy,{className:`w-3.5 h-3.5 ${S?"animate-spin":""}`}),f.jsx("span",{children:"刷新状态"})]}),f.jsxs(Oe,{variant:"outline",size:"sm",onClick:()=>d(!0),children:[f.jsx(pd,{className:"w-3.5 h-3.5"}),f.jsx("span",{children:"微信入口绑定"})]})]})]}),f.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4",children:k.map(E=>{var Q;const R=TE[((Q=E.avatar)==null?void 0:Q.color)||"blue"]||"#3b82f6";return f.jsxs(an,{className:"p-4 flex flex-col justify-between gap-3",children:[f.jsxs("div",{className:"space-y-2",children:[f.jsxs("div",{className:"flex items-start justify-between gap-2",children:[f.jsxs("div",{className:"flex items-center gap-2.5",children:[f.jsx("div",{className:"w-8 h-8 rounded-lg flex items-center justify-center text-white font-semibold text-sm shrink-0",style:{backgroundColor:R},children:E.name.slice(0,1)}),f.jsxs("div",{children:[f.jsx("div",{className:"font-semibold text-sm flex items-center gap-1.5",children:f.jsxs("span",{children:["@",E.name]})}),f.jsxs("div",{className:"text-[11px] font-mono-num",style:{color:"var(--text-muted)"},children:["CLI: ",E.agent_type==="antigravity"?"Google Antigravity (agy)":E.agent_type]})]})]}),f.jsx(rt,{variant:"success",children:"就绪"})]}),f.jsx("p",{className:"text-xs leading-relaxed",style:{color:"var(--text-muted)"},children:E.description}),f.jsxs("div",{className:"p-2 rounded-md text-[11px] font-mono-num line-clamp-2 hl-muted",style:{color:"var(--text-subtle)"},title:E.instructions,children:["Prompt: ",E.instructions]})]}),f.jsxs("div",{className:"pt-2 border-t hl-border flex items-center gap-2",children:[f.jsx(Oe,{variant:"default",size:"sm",className:"flex-1",onClick:()=>v("embedded"),children:f.jsx("span",{children:"发起单聊"})}),f.jsxs(Oe,{variant:"outline",size:"sm",onClick:()=>c(`@${E.name} `,`群聊点名 @${E.name}`),title:"复制 @点名 指令,可在主会话或群聊中直接委派该角色",children:[f.jsx(z0,{className:"w-3.5 h-3.5"}),f.jsx("span",{children:"@点名"})]})]})]},E.id)})})]}),f.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-5",children:[f.jsxs(an,{className:"lg:col-span-2 p-5 space-y-4",children:[f.jsxs(md,{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-2 pb-3 border-b hl-border",children:[f.jsxs("div",{children:[f.jsxs(hd,{className:"flex items-center gap-2",children:[f.jsx(D0,{className:"w-4 h-4",style:{color:"var(--accent)"}}),f.jsx("span",{children:"私有 Git 代码中枢 (Gitea 热冷分层存储架构)"}),f.jsx(rt,{variant:g!=null&&g.gitea.online?"success":"warning",children:g!=null&&g.gitea.online?`在线 · ${g.gitea.latency_ms}ms`:"检测中"})]}),f.jsxs(vd,{className:"mt-1",children:["服务端与活跃索引常驻 M6 Mac mini NVMe SSD,LFS 大文件与全量 ",f.jsx("code",{className:"font-mono-num",children:".bundle"})," 镜像实时归档至极空间 Z4 20TB RAID。"]})]}),f.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[f.jsxs(Oe,{variant:"outline",size:"sm",onClick:G,disabled:N,children:[f.jsx(vS,{className:`w-3.5 h-3.5 ${N?"animate-spin":""}`}),f.jsx("span",{children:N?"归档中...":"立即同步至极空间冷存"})]}),f.jsxs(Oe,{variant:"default",size:"sm",onClick:()=>window.open(H,"_blank","noopener,noreferrer"),children:[f.jsx(eo,{className:"w-3.5 h-3.5"}),f.jsx("span",{children:"Gitea 控制台"})]})]})]}),f.jsxs(qp,{className:"space-y-4",children:[f.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:[f.jsxs("div",{className:"p-3 rounded-lg border hl-border hl-muted space-y-1",children:[f.jsxs("div",{className:"flex items-center justify-between text-xs",children:[f.jsx("span",{className:"font-semibold flex items-center gap-1.5",children:"🔥 Mac mini 热存储层 (NVMe SSD)"}),f.jsx(rt,{variant:"default",children:"毫秒级读写"})]}),f.jsx("div",{className:"text-[11px] font-mono-num truncate",style:{color:"var(--text-muted)"},children:(g==null?void 0:g.gitea.hot_path)||"/Users/ixvii0iv/homelab/stacks/git/data"}),f.jsx("div",{className:"text-[11px]",style:{color:"var(--text-subtle)"},children:"承载 SQLite 元数据、活跃 Git 裸仓库与 Agent Worktree 并发合并"})]}),f.jsxs("div",{className:"p-3 rounded-lg border hl-border hl-muted space-y-1",children:[f.jsxs("div",{className:"flex items-center justify-between text-xs",children:[f.jsxs("span",{className:"font-semibold flex items-center gap-1.5",children:[f.jsx(OS,{className:"w-3.5 h-3.5",style:{color:"var(--success)"}}),"🧊 极空间 Z4 冷存储层 (20TB RAID)"]}),f.jsxs(rt,{variant:"success",children:[K.length," 个全量冷备包"]})]}),f.jsx("div",{className:"text-[11px] font-mono-num truncate",style:{color:"var(--text-muted)"},children:(g==null?void 0:g.gitea.cold_path)||"/Users/ixvii0iv/nas/个人空间/Git_Cold_Storage"}),f.jsx("div",{className:"text-[11px]",style:{color:"var(--text-subtle)"},children:"承载 Git LFS 大文件、Release 制品包与自包含 .bundle 离线灾备包"})]})]}),f.jsxs("div",{className:"space-y-2",children:[f.jsxs("div",{className:"text-xs font-medium",style:{color:"var(--text-muted)"},children:["当前托管仓库 (",V.length,")"]}),V.map(E=>f.jsxs("div",{className:"p-3 rounded-lg border hl-border flex flex-col sm:flex-row sm:items-center justify-between gap-3",children:[f.jsxs("div",{className:"space-y-1",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx(RS,{className:"w-3.5 h-3.5",style:{color:"var(--accent)"}}),f.jsx("span",{className:"font-semibold text-sm font-mono-num",children:E.name}),f.jsx(rt,{variant:"default",children:E.default_branch}),K.some(R=>R.name.includes(E.name.replace("/","_")))&&f.jsx(rt,{variant:"success",children:"已冷备至 NAS"})]}),f.jsx("p",{className:"text-xs",style:{color:"var(--text-muted)"},children:E.description||"HomeLab 核心基础设施与前端工程仓库"})]}),f.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[f.jsxs(Oe,{variant:"outline",size:"sm",onClick:()=>c(`git clone ${H}/${E.name}.git`,`克隆 ${E.name}`),children:[f.jsx(z0,{className:"w-3.5 h-3.5"}),f.jsx("span",{children:"复制 Clone"})]}),f.jsxs(Oe,{variant:"outline",size:"sm",onClick:()=>window.open(`${H}/${E.name}`,"_blank","noopener,noreferrer"),children:[f.jsx(eo,{className:"w-3.5 h-3.5"}),f.jsx("span",{children:"查看代码"})]})]})]},E.name))]})]})]}),f.jsxs(an,{className:"p-5 flex flex-col justify-between space-y-4",children:[f.jsxs("div",{className:"space-y-4",children:[f.jsxs(md,{className:"pb-3 border-b hl-border",children:[f.jsxs(hd,{className:"flex items-center justify-between",children:[f.jsxs("span",{className:"flex items-center gap-2",children:[f.jsx(yr,{className:"w-4 h-4",style:{color:"var(--accent)"}}),f.jsx("span",{children:"AGY 原生常驻会话流"})]}),f.jsxs(rt,{variant:"success",children:[_.length||1," 窗口活跃"]})]}),f.jsxs(vd,{className:"mt-1",children:["M6 Mac mini 本机 ",f.jsx("code",{className:"font-mono-num",children:"tmux (agy)"})," 与 Codeg 工作区实时状态。"]})]}),f.jsxs("div",{className:"space-y-2.5",children:[f.jsx("div",{className:"text-xs font-medium",style:{color:"var(--text-muted)"},children:"已挂载 Codeg 工作区目录"}),((g==null?void 0:g.codeg.folders)||[]).map(E=>f.jsxs("div",{className:"p-2.5 rounded-lg border hl-border hl-muted flex items-center justify-between text-xs font-mono-num",children:[f.jsx("span",{className:"truncate",children:E.path}),f.jsx(rt,{variant:"success",children:"已绑定"})]},E.id)),f.jsx("div",{className:"text-xs font-medium pt-2",style:{color:"var(--text-muted)"},children:"Mac mini Tmux 会话窗格"}),_.length>0?_.map(E=>f.jsxs("div",{className:"p-2.5 rounded-lg border hl-border flex items-center justify-between text-xs",children:[f.jsxs("div",{className:"flex items-center gap-2 font-mono-num",children:[f.jsx("span",{className:"w-2 h-2 rounded-full",style:{backgroundColor:E.active?"var(--success)":"var(--text-muted)"}}),f.jsxs("span",{className:"font-medium",children:["#",E.index," ",E.name]})]}),f.jsx(rt,{variant:"default",children:E.command})]},E.index)):f.jsx("div",{className:"p-2.5 rounded-lg border hl-border text-xs font-mono-num",children:"#0 agy (Google Antigravity 常驻守护)"}),K.length>0&&f.jsxs("div",{className:"pt-2 space-y-1.5",children:[f.jsx("div",{className:"text-xs font-medium",style:{color:"var(--text-muted)"},children:"最近极空间 NAS 冷备快照"}),K.map(E=>f.jsxs("div",{className:"p-2 rounded-md hl-muted flex items-center justify-between text-[11px] font-mono-num",children:[f.jsx("span",{className:"truncate",children:E.name}),f.jsxs("span",{style:{color:"var(--success)"},children:[E.size_mb," MB · ",E.mtime.slice(5,16)]})]},E.name))]})]})]}),f.jsxs("div",{className:"pt-3 border-t hl-border flex items-center gap-2",children:[f.jsxs(Oe,{className:"flex-1",onClick:()=>s(!0),children:[f.jsx(yr,{className:"w-3.5 h-3.5"}),f.jsx("span",{children:"唤起 AGY 终端"})]}),f.jsxs(Oe,{variant:"outline",onClick:()=>v("embedded"),children:[f.jsx($f,{className:"w-3.5 h-3.5"}),f.jsx("span",{children:"进入画布"})]})]})]})]})]})]})},_E=()=>{var A;const{telemetry:i,toast:u,viewMode:c,layoutPreset:o,fetchTelemetry:s,setShowCmdPalette:d,getEffectiveMode:h,routeMode:v}=Un(),[g,x]=b.useState(()=>typeof window>"u"?null:new URLSearchParams(window.location.search).get("auth_redirect"));b.useEffect(()=>{s();const j=setInterval(s,3e3),z=H=>{(H.metaKey||H.ctrlKey)&&H.key.toLowerCase()==="k"&&(H.preventDefault(),d(!0))};return window.addEventListener("keydown",z),()=>{clearInterval(j),window.removeEventListener("keydown",z)}},[s,d]);const S=b.useMemo(()=>{const j=h();return j==="lan"?"LAN 局域网极速直连 (192.168.31.x)":j==="home10443"?"10443 家宽公网 HTTPS 直连":"443 免端口 HTTPS 直达 (*.961504.xyz)"},[h,v]),p=((A=xo[o])==null?void 0:A.gridClass)||xo["homepage-3col"].gridClass,N=b.useMemo(()=>{const j=i;return[{title:"核心工作台、多智能体编排与私有代码库",subtitle:"AI Agent Orchestration, Code Hub & Storage",showRouteHint:!0,items:[{id:"codeg",title:"Codeg 多智能体协同工作台",subtitle:"codeg.961504.xyz · ACP 20+ CLI 底座",iconUrl:"https://cdn.jsdelivr.net/gh/walkxcode/dashboard-icons/png/github-copilot.png",online:j.services.codeg??!0,desc:"原生聚合 Google Antigravity (agy)、Claude Code、Codex 等 20 种 CLI,支持 4 大分工角色单聊、@点名群聊委派、Git Worktree 待办与无限画布。",edgeUrl:"https://codeg.961504.xyz",homeUrl:"https://codeg.home.961504.xyz:10443",lanUrl:"http://192.168.31.164:3080",stats:[{label:"预设分工角色",value:"4 角色就绪",highlight:!0},{label:"底座引擎",value:"Codeg v0.42.0"},{label:"SSO 免密",value:"Proxy Auth 已注入"}]},{id:"gitea",title:"Gitea 私有代码与冷备中枢",subtitle:"git.961504.xyz · Mac SSD 热层 + NAS 冷层",iconUrl:"https://cdn.jsdelivr.net/gh/walkxcode/dashboard-icons/png/gitea.png",online:j.services.gitea??!0,desc:"自托管私有 Git 代码仓库,数据库与活跃索引跑在 M6 Mac mini 本地 SSD,Git LFS 大文件与 .bundle 全量冷备归档于极空间 20TB RAID。",edgeUrl:"https://git.961504.xyz",homeUrl:"https://git.home.961504.xyz:10443",lanUrl:"http://192.168.31.164:3005",stats:[{label:"主仓库",value:"admin/homelab",highlight:!0},{label:"热层介质",value:"M6 NVMe SSD"},{label:"冷存储池",value:"极空间 20TB NAS"}]},{id:"agy",title:"AGY 云端工作台",subtitle:"agy.961504.xyz · ttyd + tmux",iconUrl:"https://cdn.jsdelivr.net/gh/walkxcode/dashboard-icons/png/google-gemini.png",online:j.services.agy,actionType:"drawer",desc:"M6 Mac mini 上的 24 小时常驻 AI 编程终端,已同步 Google 登录态并锁定新加坡出口,关掉网页后台继续运行。",edgeUrl:"https://agy.961504.xyz",homeUrl:"https://agy.home.961504.xyz:10443",lanUrl:"http://192.168.31.164:7681",stats:[{label:"M6 CPU 负载",value:`${j.mini.cpu_pct}%`},{label:"已用内存",value:`${j.mini.mem_used_gb} / 24 GB`},{label:"tmux 会话",value:j.mini.agy_tmux?"常驻运行中":"待机",highlight:!0}]},{id:"zspace",title:"极空间 Z4 私有云",subtitle:"192.168.31.185 · 20TB RAID 存储池",iconUrl:"https://cdn.jsdelivr.net/gh/walkxcode/dashboard-icons/png/synology-drive.png",online:j.services.nas,desc:"家庭 20TB 大容量存储中心、极影视蓝光影院与手机相册备份,已自动 SMB 挂载至 Mac mini ~/nas。",edgeUrl:"https://z4.home.961504.xyz:10443",homeUrl:"https://z4.home.961504.xyz:10443",lanUrl:"http://192.168.31.185:5055",stats:[{label:"剩余可用",value:`${j.nas.free_tb} TB`,highlight:!0},{label:"已用容量",value:`${j.nas.used_tb} TB (${j.nas.pct}%)`},{label:"SMB 挂载",value:j.nas.mounted?"~/nas 已挂载":"重连中"}]},{id:"vaultwarden",title:"Vaultwarden 密码保险箱",subtitle:"vw.961504.xyz · Bitwarden 兼容",iconUrl:"https://cdn.jsdelivr.net/gh/walkxcode/dashboard-icons/png/vaultwarden.png",online:j.services.vaultwarden,actionType:"backup",desc:"自托管全平台加密密码库,支持 iOS / Android / 浏览器插件自动填充,每天凌晨 03:30 自动打包灾备至极空间。",edgeUrl:"https://vw.961504.xyz",homeUrl:"https://vw.home.961504.xyz:10443",lanUrl:"http://192.168.31.164:8222",stats:[{label:"容器状态",value:"Healthy",highlight:!0},{label:"最近极空间灾备",value:j.nas.latest_backup},{label:"Mac SSD 占用",value:`${j.mini.disk_pct}%`}]}]},{title:"网络网关、AI 专线与外部哨兵",subtitle:"Network Gateway & Cloud Edge",showRouteHint:!1,items:[{id:"clash",title:"Mihomo 路由分流面板",subtitle:"192.168.31.1:9999 · ShellCrash",iconUrl:"https://cdn.jsdelivr.net/gh/walkxcode/dashboard-icons/png/clash.png",online:j.services.clash,desc:"小米主路由器透明网关控制台,实时监控全屋设备流量、分流规则与狮城 AI 算力专线锁定状态。",edgeUrl:"https://clash.home.961504.xyz:10443/ui/",homeUrl:"https://clash.home.961504.xyz:10443/ui/",lanUrl:"http://192.168.31.1:9999/ui/",stats:[{label:"AI 锁定策略",value:"狮城节点",highlight:!0},{label:"新加坡延迟",value:j.network.sg_delay_ms>0?`${j.network.sg_delay_ms} ms`:"直连"},{label:"固定出口 IP",value:j.network.sg_egress_ip}]},{id:"router",title:"小米主路由器后台",subtitle:"192.168.31.1 · PPPoE 公网网关",iconUrl:"https://cdn.jsdelivr.net/gh/walkxcode/dashboard-icons/png/openwrt.png",online:j.services.router,desc:"管理家庭联通公网宽带拨号、DHCP 静态 IP 绑定、10443 与 41641 端口转发及全屋内网 Split-DNS。",edgeUrl:"https://router.home.961504.xyz:10443",homeUrl:"https://router.home.961504.xyz:10443",lanUrl:"http://192.168.31.1",stats:[{label:"联通公网 IPv4",value:j.network.home_wan_ip,highlight:!0},{label:"泛域名 DDNS",value:"*.home.961504.xyz"},{label:"内网网关",value:"192.168.31.1"}]},{id:"uptime",title:"Uptime Kuma 外部哨兵",subtitle:"status.961504.xyz · SG Azure",iconUrl:"https://cdn.jsdelivr.net/gh/walkxcode/dashboard-icons/png/uptime-kuma.png",online:j.services.uptime,desc:"独立部署在新加坡 Azure 公有云上的 24 小时外部监控哨兵,通过 Tailscale P2P 专线实时探测家庭服务。",edgeUrl:"https://status.961504.xyz",homeUrl:"https://status.961504.xyz",lanUrl:"https://status.961504.xyz",stats:[{label:"云端公网 IP",value:"104.43.105.243"},{label:"Tailscale 专线",value:"100.115.204.51"},{label:"外部探测状态",value:"100% 在线",highlight:!0}]}]}]},[i]);return f.jsxs("div",{className:"min-h-screen flex flex-col",children:[u&&f.jsxs("div",{className:"fixed bottom-5 right-5 z-50 hl-card px-4 py-3 flex items-center gap-2.5 shadow-2xl",children:[f.jsx("span",{className:"w-2 h-2 rounded-full",style:{backgroundColor:"var(--success)"}}),f.jsx("span",{className:"text-xs font-medium",children:u})]}),f.jsx(rC,{}),c==="storybook"?f.jsx(wE,{}):c==="agents"?f.jsx(jE,{}):f.jsxs("main",{className:"flex-1 max-w-7xl w-full mx-auto px-4 sm:px-6 lg:px-8 py-6 space-y-7",children:[N.map(j=>f.jsxs("section",{className:"space-y-3",children:[f.jsxs("div",{className:"flex items-center justify-between px-0.5",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx("h2",{className:"text-xs font-semibold uppercase tracking-wider",style:{color:"var(--text-muted)"},children:j.title}),f.jsxs("span",{className:"text-[11px] font-mono-num",style:{color:"var(--text-subtle)"},children:["· ",j.subtitle]})]}),j.showRouteHint&&f.jsxs("span",{className:"text-[11px] font-mono-num hidden sm:inline",style:{color:"var(--text-subtle)"},children:["当前路由模式: ",S]})]}),f.jsx("div",{className:`grid ${p}`,children:j.items.map(z=>f.jsx(Z1,{card:z},z.id))})]},j.title)),f.jsx(K1,{})]}),f.jsx(G3,{}),f.jsx(eE,{}),f.jsx(CE,{}),g&&f.jsx("div",{className:"fixed inset-0 z-50 bg-black/75 backdrop-blur-sm flex items-center justify-center p-4",children:f.jsx(Zd,{targetUrl:g,onSuccess:()=>{window.location.href=g},onCancel:()=>{x(null),window.history.replaceState({},"","/")}})})]})};tS.createRoot(document.getElementById("root")).render(f.jsx(gr.StrictMode,{children:f.jsx(_E,{})}));
|