feat(auth): replace browser Basic Auth popup with custom Shadcn SSO AuthGateModal and .hl-input system

Browse Source
This commit is contained in:
Yin Kou committed 2026-11-07 00:33:10 +08:00
1 parent ba3cf726b4
commit cbc47336d6
13 files changed
+804 -208

No files matched your search

+154
View File
@@ -0,0 +1,154 @@
(function(){const O=document.createElement("link").relList;if(O&&O.supports&&O.supports("modulepreload"))return;for(const E of document.querySelectorAll('link[rel="modulepreload"]'))d(E);new MutationObserver(E=>{for(const H of E)if(H.type==="childList")for(const J of H.addedNodes)J.tagName==="LINK"&&J.rel==="modulepreload"&&d(J)}).observe(document,{childList:!0,subtree:!0});function T(E){const H={};return E.integrity&&(H.integrity=E.integrity),E.referrerPolicy&&(H.referrerPolicy=E.referrerPolicy),E.crossOrigin==="use-credentials"?H.credentials="include":E.crossOrigin==="anonymous"?H.credentials="omit":H.credentials="same-origin",H}function d(E){if(E.ep)return;E.ep=!0;const H=T(E);fetch(E.href,H)}})();function g0(x){return x&&x.__esModule&&Object.prototype.hasOwnProperty.call(x,"default")?x.default:x}var Ts={exports:{}},nn={};/**
* @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 u0;function pv(){if(u0)return nn;u0=1;var x=Symbol.for("react.transitional.element"),O=Symbol.for("react.fragment");function T(d,E,H){var J=null;if(H!==void 0&&(J=""+H),E.key!==void 0&&(J=""+E.key),"key"in E){H={};for(var K in E)K!=="key"&&(H[K]=E[K])}else H=E;return E=H.ref,{$$typeof:x,type:d,key:J,ref:E!==void 0?E:null,props:H}}return nn.Fragment=O,nn.jsx=T,nn.jsxs=T,nn}var n0;function Nv(){return n0||(n0=1,Ts.exports=pv()),Ts.exports}var f=Nv(),_s={exports:{}},V={};/**
* @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 Tv(){if(c0)return V;c0=1;var x=Symbol.for("react.transitional.element"),O=Symbol.for("react.portal"),T=Symbol.for("react.fragment"),d=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),H=Symbol.for("react.consumer"),J=Symbol.for("react.context"),K=Symbol.for("react.forward_ref"),Q=Symbol.for("react.suspense"),W=Symbol.for("react.memo"),A=Symbol.for("react.lazy"),S=Symbol.for("react.activity"),D=Symbol.for("react.view_transition"),w=Symbol.iterator;function U(r){return r===null||typeof r!="object"?null:(r=w&&r[w]||r["@@iterator"],typeof r=="function"?r:null)}var vl={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},P=Object.assign,jl={};function Bl(r,_,B){this.props=r,this.context=_,this.refs=jl,this.updater=B||vl}Bl.prototype.isReactComponent={},Bl.prototype.setState=function(r,_){if(typeof r!="object"&&typeof r!="function"&&r!=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,r,_,"setState")},Bl.prototype.forceUpdate=function(r){this.updater.enqueueForceUpdate(this,r,"forceUpdate")};function I(){}I.prototype=Bl.prototype;function il(r,_,B){this.props=r,this.context=_,this.refs=jl,this.updater=B||vl}var Il=il.prototype=new I;Il.constructor=il,P(Il,Bl.prototype),Il.isPureReactComponent=!0;var Pl=Array.isArray;function ll(){}var ol={H:null,A:null,T:null,S:null},Qt=Object.prototype.hasOwnProperty;function Tt(r,_,B){var q=B.ref;return{$$typeof:x,type:r,key:_,ref:q!==void 0?q:null,props:B}}function _t(r,_){return Tt(r.type,_,r.props)}function rt(r){return typeof r=="object"&&r!==null&&r.$$typeof===x}function be(r){var _={"=":"=0",":":"=2"};return"$"+r.replace(/[=:]/g,function(B){return _[B]})}var $e=/\/+/g;function ql(r,_){return typeof r=="object"&&r!==null&&r.key!=null?be(""+r.key):_.toString(36)}function j(r){switch(r.status){case"fulfilled":return r.value;case"rejected":throw r.reason;default:switch(typeof r.status=="string"?r.then(ll,ll):(r.status="pending",r.then(function(_){r.status==="pending"&&(r.status="fulfilled",r.value=_)},function(_){r.status==="pending"&&(r.status="rejected",r.reason=_)})),r.status){case"fulfilled":return r.value;case"rejected":throw r.reason}}throw r}function X(r,_,B,q,cl){var fl=typeof r;(fl==="undefined"||fl==="boolean")&&(r=null);var rl=!1;if(r===null)rl=!0;else switch(fl){case"bigint":case"string":case"number":rl=!0;break;case"object":switch(r.$$typeof){case x:case O:rl=!0;break;case A:return rl=r._init,X(rl(r._payload),_,B,q,cl)}}if(rl)return cl=cl(r),rl=q===""?"."+ql(r,0):q,Pl(cl)?(B="",rl!=null&&(B=rl.replace($e,"$&/")+"/"),X(cl,_,B,"",function(ee){return ee})):cl!=null&&(rt(cl)&&(cl=_t(cl,B+(cl.key==null||r&&r.key===cl.key?"":(""+cl.key).replace($e,"$&/")+"/")+rl)),_.push(cl)),1;rl=0;var R=q===""?".":q+":";if(Pl(r))for(var Z=0;Z<r.length;Z++)q=r[Z],fl=R+ql(q,Z),rl+=X(q,_,B,fl,cl);else if(Z=U(r),typeof Z=="function")for(r=Z.call(r),Z=0;!(q=r.next()).done;)q=q.value,fl=R+ql(q,Z++),rl+=X(q,_,B,fl,cl);else if(fl==="object"){if(typeof r.then=="function")return X(j(r),_,B,q,cl);throw _=String(r),Error("Objects are not valid as a React child (found: "+(_==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":_)+"). If you meant to render a collection of children, use an array instead.")}return rl}function L(r,_,B){if(r==null)return r;var q=[],cl=0;return X(r,q,"","",function(fl){return _.call(B,fl,cl++)}),q}function pl(r){if(r._status===-1){var _=r._result,B=_();B.then(function(q){(r._status===0||r._status===-1)&&(r._status=1,r._result=q,B.status===void 0&&(B.status="fulfilled",B.value=q))},function(q){(r._status===0||r._status===-1)&&(r._status=2,r._result=q,B.status===void 0&&(B.status="rejected",B.reason=q))}),r._status===-1&&(r._status=0,r._result=B)}if(r._status===1)return r._result.default;throw r._result}var ml=typeof reportError=="function"?reportError:function(r){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var _=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof r=="object"&&r!==null&&typeof r.message=="string"?String(r.message):String(r),error:r});if(!window.dispatchEvent(_))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",r);return}console.error(r)};function Rt(r){var _=ol.T,B={};B.types=_!==null?_.types:null,ol.T=B;try{var q=r(),cl=ol.S;cl!==null&&cl(B,q),typeof q=="object"&&q!==null&&typeof q.then=="function"&&q.then(ll,ml)}catch(fl){ml(fl)}finally{_!==null&&B.types!==null&&(_.types=B.types),ol.T=_}}function te(r){var _=ol.T;if(_!==null){var B=_.types;B===null?_.types=[r]:B.indexOf(r)===-1&&B.push(r)}else Rt(te.bind(null,r))}var We={map:L,forEach:function(r,_,B){L(r,function(){_.apply(this,arguments)},B)},count:function(r){var _=0;return L(r,function(){_++}),_},toArray:function(r){return L(r,function(_){return _})||[]},only:function(r){if(!rLine truncated
* @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 f0;function _v(){return f0||(f0=1,(function(x){function O(j,X){var L=j.length;j.push(X);l:for(;0<L;){var pl=L-1>>>1,ml=j[pl];if(0<E(ml,X))j[pl]=X,j[L]=ml,L=pl;else break l}}function T(j){return j.length===0?null:j[0]}function d(j){if(j.length===0)return null;var X=j[0],L=j.pop();if(L!==X){j[0]=L;l:for(var pl=0,ml=j.length,Rt=ml>>>1;pl<Rt;){var te=2*(pl+1)-1,We=j[te],r=te+1,_=j[r];if(0>E(We,L))r<ml&&0>E(_,We)?(j[pl]=_,j[r]=L,pl=r):(j[pl]=We,j[te]=L,pl=te);else if(r<ml&&0>E(_,L))j[pl]=_,j[r]=L,pl=r;else break l}}return X}function E(j,X){var L=j.sortIndex-X.sortIndex;return L!==0?L:j.id-X.id}if(x.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var H=performance;x.unstable_now=function(){return H.now()}}else{var J=Date,K=J.now();x.unstable_now=function(){return J.now()-K}}var Q=[],W=[],A=1,S=null,D=3,w=!1,U=!1,vl=!1,P=!1,jl=typeof setTimeout=="function"?setTimeout:null,Bl=typeof clearTimeout=="function"?clearTimeout:null,I=typeof setImmediate<"u"?setImmediate:null;function il(j){for(var X=T(W);X!==null;){if(X.callback===null)d(W);else if(X.startTime<=j)d(W),X.sortIndex=X.expirationTime,O(Q,X);else break;X=T(W)}}function Il(j){if(vl=!1,il(j),!U)if(T(Q)!==null)U=!0,Pl||(Pl=!0,rt());else{var X=T(W);X!==null&&ql(Il,X.startTime-j)}}var Pl=!1,ll=-1,ol=5,Qt=-1;function Tt(){return P?!0:!(x.unstable_now()-Qt<ol)}function _t(){if(P=!1,Pl){var j=x.unstable_now();Qt=j;var X=!0;try{l:{U=!1,vl&&(vl=!1,Bl(ll),ll=-1),w=!0;var L=D;try{t:{for(il(j),S=T(Q);S!==null&&!(S.expirationTime>j&&Tt());){var pl=S.callback;if(typeof pl=="function"){S.callback=null,D=S.priorityLevel;var ml=pl(S.expirationTime<=j);if(j=x.unstable_now(),typeof ml=="function"){S.callback=ml,il(j),X=!0;break t}S===T(Q)&&d(Q),il(j)}else d(Q);S=T(Q)}if(S!==null)X=!0;else{var Rt=T(W);Rt!==null&&ql(Il,Rt.startTime-j),X=!1}}break l}finally{S=null,D=L,w=!1}X=void 0}}finally{X?rt():Pl=!1}}}var rt;if(typeof I=="function")rt=function(){I(_t)};else if(typeof MessageChannel<"u"){var be=new MessageChannel,$e=be.port2;be.port1.onmessage=_t,rt=function(){$e.postMessage(null)}}else rt=function(){jl(_t,0)};function ql(j,X){ll=jl(function(){j(x.unstable_now())},X)}x.unstable_IdlePriority=5,x.unstable_ImmediatePriority=1,x.unstable_LowPriority=4,x.unstable_NormalPriority=3,x.unstable_Profiling=null,x.unstable_UserBlockingPriority=2,x.unstable_cancelCallback=function(j){j.callback=null},x.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ol=0<j?Math.floor(1e3/j):5},x.unstable_getCurrentPriorityLevel=function(){return D},x.unstable_next=function(j){switch(D){case 1:case 2:case 3:var X=3;break;default:X=D}var L=D;D=X;try{return j()}finally{D=L}},x.unstable_requestPaint=function(){P=!0},x.unstable_runWithPriority=function(j,X){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var L=D;D=j;try{return X()}finally{D=L}},x.unstable_scheduleCallback=function(j,X,L){var pl=x.unstable_now();switch(typeof L=="object"&&L!==null?(L=L.delay,L=typeof L=="number"&&0<L?pl+L:pl):L=pl,j){case 1:var ml=-1;break;case 2:ml=250;break;case 5:ml=1073741823;break;case 4:ml=1e4;break;default:ml=5e3}return ml=L+ml,j={id:A++,callback:X,priorityLevel:j,startTime:L,expirationTime:ml,sortIndex:-1},L>pl?(j.sortIndex=L,O(W,j),T(Q)===null&&j===T(W)&&(vl?(Bl(ll),ll=-1):vl=!0,ql(Il,L-pl))):(j.sortIndex=ml,O(Q,j),U||w||(U=!0,Pl||(Pl=!0,rt()))),j},x.unstable_shouldYield=Tt,x.unstable_wrapCallback=function(j){var X=D;return function(){var L=D;D=X;try{return j.apply(this,arguments)}finally{D=L}}}})(Os)),Os}var s0;function Ev(){return s0||(s0=1,zs.exports=_v()),zs.exports}var js={exports:{}},Wl={};/**
* @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 o0;function zv(){if(o0)return Wl;o0=1;var x=As();function O(A){var S="https://react.dev/errors/"+A;if(1<arguments.length){S+="?args[]="+encodeURIComponent(arguments[1]);for(var D=2;D<arguments.length;D++)S+="&args[]="+encodeURIComponent(arguments[D])}return"Minified React error #"+A+"; visit "+S+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function T(){}var d={d:{f:T,r:function(){throw Error(O(522))},D:T,C:T,L:T,m:T,X:T,S:T,M:T},p:0,findDOMNode:null},E=Symbol.for("react.portal"),H=Symbol.for("react.recoverable"),J=Symbol.for("react.optimistic_key");function K(A,S,D){var w=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:E,key:w==null?null:w===J?J:""+w,children:A,containerInfo:S,implementation:D}}var Q=x.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function W(A,S){if(A==="font")return"";if(typeof S=="string")return S==="use-credentials"?S:""}return Wl.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=d,Wl.browser=function(A){return{$$typeof:H,_reason:A}},Wl.createPortal=function(A,S){var D=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!S||S.nodeType!==1&&S.nodeType!==9&&S.nodeType!==11)throw Error(O(299));return K(A,S,null,D)},Wl.flushSync=function(A){var S=Q.T,D=d.p;try{if(Q.T=null,d.p=2,A)return A()}finally{Q.T=S,d.p=D,d.d.f()}},Wl.preconnect=function(A,S){typeof A=="string"&&(S?(S=S.crossOrigin,S=typeof S=="string"?S==="use-credentials"?S:"":void 0):S=null,d.d.C(A,S))},Wl.prefetchDNS=function(A){typeof A=="string"&&d.d.D(A)},Wl.preinit=function(A,S){if(typeof A=="string"&&S&&typeof S.as=="string"){var D=S.as,w=W(D,S.crossOrigin),U=typeof S.integrity=="string"?S.integrity:void 0,vl=typeof S.fetchPriority=="string"?S.fetchPriority:void 0;D==="style"?d.d.S(A,typeof S.precedence=="string"?S.precedence:void 0,{crossOrigin:w,integrity:U,fetchPriority:vl}):D==="script"&&d.d.X(A,{crossOrigin:w,integrity:U,fetchPriority:vl,nonce:typeof S.nonce=="string"?S.nonce:void 0})}},Wl.preinitModule=function(A,S){if(typeof A=="string")if(typeof S=="object"&&S!==null){if(S.as==null||S.as==="script"){var D=W(S.as,S.crossOrigin);d.d.M(A,{crossOrigin:D,integrity:typeof S.integrity=="string"?S.integrity:void 0,nonce:typeof S.nonce=="string"?S.nonce:void 0,fetchPriority:typeof S.fetchPriority=="string"?S.fetchPriority:void 0})}}else S==null&&d.d.M(A)},Wl.preload=function(A,S){if(typeof A=="string"&&typeof S=="object"&&S!==null&&typeof S.as=="string"){var D=S.as,w=W(D,S.crossOrigin);d.d.L(A,D,{crossOrigin:w,integrity:typeof S.integrity=="string"?S.integrity:void 0,nonce:typeof S.nonce=="string"?S.nonce:void 0,type:typeof S.type=="string"?S.type:void 0,fetchPriority:typeof S.fetchPriority=="string"?S.fetchPriority:void 0,referrerPolicy:typeof S.referrerPolicy=="string"?S.referrerPolicy:void 0,imageSrcSet:typeof S.imageSrcSet=="string"?S.imageSrcSet:void 0,imageSizes:typeof S.imageSizes=="string"?S.imageSizes:void 0,media:typeof S.media=="string"?S.media:void 0})}},Wl.preloadModule=function(A,S){if(typeof A=="string")if(S){var D=W(S.as,S.crossOrigin);d.d.m(A,{as:typeof S.as=="string"&&S.as!=="script"?S.as:void 0,crossOrigin:D,integrity:typeof S.integrity=="string"?S.integrity:void 0,nonce:typeof S.nonce=="string"?S.nonce:void 0,fetchPriority:typeof S.fetchPriority=="string"?S.fetchPriority:void 0})}else d.d.m(A)},Wl.requestFormReset=function(A){d.d.r(A)},Wl.unstable_batchedUpdates=function(A,S){return A(S)},Wl.useFormState=function(A,S,D){return Q.H.useFormState(A,S,D)},Wl.useFormStatus=function(){return Q.H.useHostTransitionStatus()},Wl.version="19.3.1",Wl}var r0;function Ov(){if(r0)return js.exports;r0=1;function x(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(x)}catch(O){console.error(O)}}return x(),js.exports=zv(),js.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 d0;function jv(){if(d0)return cn;d0=1;var x=Ev(),O=As(),T=Ov();function d(l){var t="https://react.dev/errors/"+l;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var e=2;e<arguments.length;e++)t+="&args[]="+encodeURIComponent(arguments[e])}return"Minified React error #"+l+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function E(l){return!(!l||l.nodeType!==1&&l.nodeType!==9&&l.nodeType!==11)}function H(l){for(var t=l,e=t;e&&!e.alternate;)t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;for(;t.return;)t=t.return;return t.tag===3?l:null}function J(l){if(l.tag===13){var t=l.memoizedState;if(t===null&&(l=l.alternate,l!==null&&(t=l.memoizedState)),t!==null)return t.dehydrated}return null}function K(l){if(l.tag===31){var t=l.memoizedState;if(t===null&&(l=l.alternate,l!==null&&(t=l.memoizedState)),t!==null)return t.dehydrated}return null}function Q(l){if(H(l)!==l)throw Error(d(188))}function W(l){var t=l.alternate;if(!t){if(t=H(l),t===null)throw Error(d(188));return t!==l?null:l}for(var e=l,a=t;;){var u=e.return;if(u===null)break;var n=u.alternate;if(n===null){if(a=u.return,a!==null){e=a;continue}break}if(u.child===n.child){for(n=u.child;n;){if(n===e)return Q(u),l;if(n===a)return Q(u),t;n=n.sibling}throw Error(d(188))}if(e.return!==a.return)e=u,a=n;else{for(var c=!1,i=u.child;i;){if(i===e){c=!0,e=u,a=n;break}if(i===a){c=!0,a=u,e=n;break}i=i.sibling}if(!c){for(i=n.child;i;){if(i===e){c=!0,e=n,a=u;break}if(i===a){c=!0,a=n,e=u;break}i=i.sibling}if(!c)throw Error(d(189))}}if(e.alternate!==a)throw Error(d(190))}if(e.tag!==3)throw Error(d(188));return e.stateNode.current===e?l:t}function A(l){var t=l.tag;if(t===5||t===26||t===27||t===6)return l;for(l=l.child;l!==null;){if(t=A(l),t!==null)return t;l=l.sibling}return null}function S(l,t,e,a,u,n){for(;l!==null;){if((l.tag===5||l.tag===27||l.tag===6)&&e(l,a,u,n)||(l.tag!==22||l.memoizedState===null)&&(t||l.tag!==5&&l.tag!==27)&&S(l.child,t,e,a,u,n))return!0;l=l.sibling}return!1}function D(l){for(l=l.return;l!==null;){if(l.tag===3||l.tag===5||l.tag===27)return l;l=l.return}return null}function w(l){var t=!1;for(l=l.return;l!==null&&(l.tag===4&&(t=!0),!(l.tag===3||l.tag===5||l.tag===27));)l=l.return;return t}function U(l){var t=[null,null],e=D(l);return e===null||vl(t,l,e.child,{foundSelf:!1}),t}function vl(l,t,e,a){for(;e!==null;){if(e===t)a.foundSelf=!0;else if(e.tag===5||e.tag===27||e.tag===6){if(a.foundSelf)return l[1]=e,!0;l[0]=e}else if((e.tag!==22||e.memoizedState===null)&&vl(l,t,e.child,a))return!0;e=e.sibling}return!1}function P(l){switch(l.tag){case 5:case 27:case 6:return l.stateNode;case 3:return l.stateNode.containerInfo;default:throw Error(d(559))}}var jl=null,Bl=null;function I(l,t,e){return l===e?!0:l===t?(jl=l,!0):!1}function il(l,t,e){return l===e?(Bl=l,!1):l===t?(Bl!==null&&(jl=l),!0):!1}function Il(l){if(l===null)return null;do l=l===null?null:l.return;while(l&&l.tag!==5&&l.tag!==27&&l.tag!==3);return l||null}function Pl(l,t,e){for(var a=0,u=l;u;u=e(u))a++;u=0;for(var n=t;n;n=e(n))u++;for(;0<a-u;)l=e(l),a--;for(;0<u-a;)t=e(t),u--;for(;a--;){if(l===t||t!==null&&l===t.alternate)return l;l=e(l),t=e(t)}return null}var ll=Object.assign,ol=Symbol.for("react.element"),Qt=Symbol.for("react.transitional.element"),Tt=Symbol.for("react.portal"),_t=Symbol.for("react.fragment"),rt=Symbol.for("react.strict_mode"),be=Symbol.for("react.profiler"),$e=Symbol.for("react.consumer"),ql=Symbol.for("react.context"),j=Symbol.for("react.forward_ref"),X=Symbol.for("react.suspense"),L=Symbol.for("react.suspense_list"),pl=Symbol.for("react.memo"),ml=Symbol.for("react.lazy"),Rt=Symbol.for("react.activity"),te=Symbol.for("react.legacy_hidden"),We=Symbol.for("react.memo_cache_sentinel"),r=Symbol.for("react.view_transition"),_=Symbol.for("react.recoverable"),B=Symbol.iterator;function q(l){return l===null||typeof l!="object"?null:(l=B&&l[B]||l["@@iterator"],typeof l=="function"?l:null)}var cl=Symbol.for("react.client.reference");function fl(l){if(l==null)return null;if(typeof l=="function")return l.$$typeof===cl?null:l.displayName||l.name||null;if(typeof l=="string")return l;switch(l){case _t:return"Fragment";case be:return"Profiler";case rt:return"StrictMode";case X:return"Suspense";case L:return"SuspenseList";case Rt:return"Activity";case r:return"ViewTransition"}if(typeof l=="object")switch(l.$$typeof){case Tt:return"Portal";case ql:return l.displayName||"Context";case $e:return(l._context.displayName||"Context")+".Consumer";case j:var t=l.render;return l=l.displayName,l||(l=t.displayName||t.name||"",l=l!==""?"ForwardRef("+l+")":"ForwardRef"),l;case pl:return t=l.displayName||null,t!==null?t:fl(l.type)||"Memo";case ml:t=l._payload,l=l._init;try{return fl(l(t))}catch{}}return null}var rl=Array.isArray,R=O.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z=T.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee={pending:!1,data:null,method:null,action:nLine truncated
at`)?" (<anonymous>)":-1<e.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Lc+l+Us}var Zc=!1;function Vc(l,t){if(!l||Zc)return"";Zc=!0;var e=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var N=function(){throw Error()};if(Object.defineProperty(N.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(N,[])}catch(z){var m=z}Reflect.construct(l,[],N)}else{try{N.call()}catch(z){m=z}N=!1;try{var g=Object.getOwnPropertyDescriptor(l.prototype,"props");Object.defineProperty(l.prototype,"props",{configurable:!0,set:function(){throw Error()}}),N=!0,new l}finally{N&&(g!==void 0?Object.defineProperty(l.prototype,"props",g):delete l.prototype.props)}}}else{try{throw Error()}catch(z){m=z}(N=l())&&typeof N.catch=="function"&&N.catch(function(){})}}catch(z){if(z&&m&&typeof z.stack=="string")return[z.stack,m.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var n=a.DetermineComponentFrameRoot(),c=n[0],i=n[1];if(c&&i){var s=c.split(`
`),v=i.split(`
`);for(u=a=0;a<s.length&&!s[a].includes("DetermineComponentFrameRoot");)a++;for(;u<v.length&&!v[u].includes("DetermineComponentFrameRoot");)u++;if(a===s.length||u===v.length)for(a=s.length-1,u=v.length-1;1<=a&&0<=u&&s[a]!==v[u];)u--;for(;1<=a&&0<=u;a--,u--)if(s[a]!==v[u]){if(a!==1||u!==1)do if(a--,u--,0>u||s[a]!==v[u]){var b=`
`+s[a].replace(" at new "," at ");return l.displayName&&b.includes("<anonymous>")&&(b=b.replace("<anonymous>",l.displayName)),b}while(1<=a&&0<=u);break}}}finally{Zc=!1,Error.prepareStackTrace=e}return(e=l?l.displayName||l.name:"")?Se(e):""}function E0(l,t){switch(l.tag){case 26:case 27:case 5:return Se(l.type);case 16:return Se("Lazy");case 13:return l.child!==t&&t!==null?Se("Suspense Fallback"):Se("Suspense");case 19:return Se("SuspenseList");case 0:case 15:return Vc(l.type,!1);case 11:return Vc(l.type.render,!1);case 1:return Vc(l.type,!0);case 31:return Se("Activity");case 30:return Se("ViewTransition");default:return""}}function Rs(l){try{var t="",e=null;do t+=E0(l,e),e=l,l=l.return;while(l);return t}catch(a){return`
Error generating stack: `+a.message+`
`+a.stack}}var Kc=Object.prototype.hasOwnProperty,Jc=x.unstable_scheduleCallback,kc=x.unstable_cancelCallback,z0=x.unstable_shouldYield,O0=x.unstable_requestPaint,dt=x.unstable_now,j0=x.unstable_getCurrentPriorityLevel,Hs=x.unstable_ImmediatePriority,Ys=x.unstable_UserBlockingPriority,rn=x.unstable_NormalPriority,A0=x.unstable_LowPriority,Bs=x.unstable_IdlePriority,C0=x.log,M0=x.unstable_setDisableYieldValue,du=null,mt=null;function pe(l){if(typeof C0=="function"&&M0(l),mt&&typeof mt.setStrictMode=="function")try{mt.setStrictMode(du,l)}catch{}}var ht=Math.clz32?Math.clz32:R0,D0=Math.log,U0=Math.LN2;function R0(l){return l>>>=0,l===0?32:31-(D0(l)/U0|0)|0}var dn=256,mn=262144,hn=4194304;function Fe(l){var t=l&42;if(t!==0)return t;switch(l&-l){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 l&-l;case 262144:case 524288:case 1048576:case 2097152:return l&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return l&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return l}}function vn(l,t,e){var a=l.pendingLanes;if(a===0)return 0;var u=0,n=l.suspendedLanes,c=l.pingedLanes;l=l.warmLanes;var i=a&134217727;return i!==0?(a=i&~n,a!==0?u=Fe(a):(c&=i,c!==0?u=Fe(c):e||(e=i&~l,e!==0&&(u=Fe(e))))):(i=a&~n,i!==0?u=Fe(i):c!==0?u=Fe(c):e||(e=a&~l,e!==0&&(u=Fe(e)))),u===0?0:t!==0&&t!==u&&(t&n)===0&&(n=u&-u,e=t&-t,n>=e||n===32&&(e&4194048)!==0)?t:u}function mu(l,t){return(l.pendingLanes&~(l.suspendedLanes&~l.pingedLanes)&t)===0}function qs(l,t){(t&8)!==0&&(t|=t&32);var e=l.entangledLanes;if(e!==0)for(l=l.entanglements,e&=t;0<e;){var a=31-ht(e),u=1<<a;t|=l[a],e&=~u}return t}function H0(l,t){switch(l){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 ws(){var l=hn;return hn<<=1,(hn&62914560)===0&&(hn=4194304),l}function $c(l){for(var t=[],e=0;31>e;e++)t.push(l);return t}function hu(l,t){l.pendingLanes|=t,t!==268435456&&(l.suspendedLanes=0,l.pingedLanes=0,l.warmLanes=0)}function Y0(l,t,e,a,u,n){var c=l.pendingLanes;l.pendingLanes=e,l.suspendedLanes=0,l.pingedLanes=0,l.warmLanes=0,l.expiredLanes&=e,l.entangledLanes&=e,l.errorRecoveryDisabledLanes&=e,l.shellSuspendCounter=0;var i=l.entanglements,s=l.expirationTimes,v=l.hiddenUpdates;for(e=c&~e;0<e;){var b=31-ht(e),N=1<<b;i[b]=0,s[b]=-1;var m=v[b];if(m!==null)for(v[b]=null,b=0;b<m.length;b++){var g=m[b];g!==null&&(g.lane&=-536870913)}e&=~N}a!==0&&Gs(l,a,0),n!==0&&u===0&&l.tag!==0&&(l.suspendedLanes|=n&~(c&~t))}function Gs(l,t,e){l.pendingLanes|=t,l.suspendedLanes&=~t;var a=31-ht(t);l.entangledLanes|=t,l.entanglements[a]=l.entanglements[a]|1073741824|e&261930}function Qs(l,t){var e=l.entangledLanes|=t;for(l=l.entanglements;e;){var a=31-ht(e),u=1<<a;u&t|l[a]&t&&(l[a]|=t),e&=~u}}function Xs(l,t){var e=t&-t;return e=(e&42)!==0?1:Wc(e),(e&(l.suspendedLanes|t))!==0?0:e}function Wc(l){switch(l){case 2:l=1;break;case 8:l=4;break;case 32:l=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:l=128;break;case 268435456:l=134217728;break;default:l=0}return l}function Fc(l){return l&=-l,2<l?8<l?(l&134217727)!==0?32:268435456:8:2}function Ls(){var l=Z.p;return l!==0?l:(l=window.event,l===void 0?32:Fm(l.type))}function Zs(l,t){var e=Z.p;try{return Z.p=l,t()}finally{Z.p=e}}var ae=Math.random().toString(36).slice(2),Zl="__reactFiber$"+ae,nt="__reactProps$"+ae,Na="__reactContainer$"+ae,Vs="__reactEvents$"+ae,B0="__reactListeners$"+ae,q0="__reactHandles$"+ae,Ks="__reactResources$"+ae,vu="__reactMarker$"+ae,yn="__reactLoad$"+ae;function gn(l){delete l[Zl],delete l[nt],delete l[B0],delete l[q0]}function Ie(l){var t;if(t=l[Zl])return t;for(var e=l.parentNode;e;){if(t=e[Na]||e[Zl]){if(e=t.alternate,t.child!==null||e!==null&&e.child!==null)for(l=Mm(l);l!==null;){if(e=l[Zl])return e;l=Mm(l)}return t}l=e,e=l.parentNode}return null}function Ta(l){if(l=l[Zl]||l[Na]){var t=l.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return l}return null}function yu(l){var t=l.tag;if(t===5||t===26||t===27||t===6)return l.stateNode;throw Error(d(33))}function _a(l){var t=l[Ks];return t||(t=l[Ks]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function wl(l){l[vu]=!0}function Js(l){l[yn]=void 0}var ks=new Set,$s={};function Pe(l,t){Ea(l,t),Ea(l+"Capture",t)}function Line truncated
`).replace(E1,"")}function rm(l,t){return t=om(t),om(l)===t}function bl(l,t,e,a,u,n){switch(e){case"children":if(typeof a=="string")t==="body"||t==="textarea"&&a===""||Oa(l,a);else if(typeof a=="number"||typeof a=="bigint")t!=="body"&&Oa(l,""+a);else return;break;case"className":xn(l,"class",a);break;case"tabIndex":xn(l,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":xn(l,e,a);break;case"style":no(l,a,n);return;case"data":if(t!=="object"){xn(l,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||e!=="href")){l.removeAttribute(e);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){l.removeAttribute(e);break}a=Sn(a),l.setAttribute(e,a);break;case"action":case"formAction":if(typeof a=="function"){l.setAttribute(e,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof n=="function"&&(e==="formAction"?(t!=="input"&&bl(l,t,"name",u.name,u,null),bl(l,t,"formEncType",u.formEncType,u,null),bl(l,t,"formMethod",u.formMethod,u,null),bl(l,t,"formTarget",u.formTarget,u,null)):(bl(l,t,"encType",u.encType,u,null),bl(l,t,"method",u.method,u,null),bl(l,t,"target",u.target,u,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){l.removeAttribute(e);break}a=Sn(a),l.setAttribute(e,a);break;case"onClick":a!=null&&(l.onclick=Zt);return;case"onScroll":a!=null&&el("scroll",l);return;case"onScrollEnd":a!=null&&el("scrollend",l);return;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(d(61));if(e=a.__html,e!=null){if(u.children!=null)throw Error(d(60));(n!=null?n.__html:void 0)!==e&&(l.innerHTML=e)}}break;case"multiple":l.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":l.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){l.removeAttribute("xlink:href");break}e=Sn(a),l.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",e);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?l.setAttribute(e,a):l.removeAttribute(e);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"credentialless":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?l.setAttribute(e,""):l.removeAttribute(e);break;case"capture":case"download":a===!0?l.setAttribute(e,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?l.setAttribute(e,a):l.removeAttribute(e);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?l.setAttribute(e,a):l.removeAttribute(e);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?l.removeAttribute(e):l.setAttribute(e,a);break;case"popover":el("beforetoggle",l),el("toggle",l),bn(l,"popover",a);break;case"xlinkActuate":ue(l,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":ue(l,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":ue(l,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":ue(l,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":ue(l,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":ue(l,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":ue(l,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":ue(l,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":ue(l,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":bn(l,"is",a);break;case"innerText":case"textContent":return;default:if(!(2<e.length)||e[0]!=="o"&&e[0]!=="O"||e[1]!=="n"&&e[1]!=="N")e=Z0.get(e)||e,bn(l,e,a);else return}sl=!0}function ls(l,t,e,a,u,n){switch(e){case"style":no(l,a,n);return;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(d(61));if(e=a.__html,e!=null){if(u.children!=null)throw Error(d(60));(n!=null?n.__html:void 0)!==e&&(l.innerHTML=e)}}break;case"children":if(typeof a=="string")Oa(l,a);else if(typeof a=="number"||typeof a=="bigint")Oa(l,""+a);else return;break;case"onScroll":a!=null&&el("scroll",l);return;case"onScrollEnd":a!=null&&el("scro Line truncated
* @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 Qv=x=>x.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),S0=(...x)=>x.filter((O,T,d)=>!!O&&O.trim()!==""&&d.indexOf(O)===T).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 Xv={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 Lv=xl.forwardRef(({color:x="currentColor",size:O=24,strokeWidth:T=2,absoluteStrokeWidth:d,className:E="",children:H,iconNode:J,...K},Q)=>xl.createElement("svg",{ref:Q,...Xv,width:O,height:O,stroke:x,strokeWidth:d?Number(T)*24/Number(O):T,className:S0("lucide",E),...K},[...J.map(([W,A])=>xl.createElement(W,A)),...Array.isArray(H)?H:[H]]));/**
* @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 Fl=(x,O)=>{const T=xl.forwardRef(({className:d,...E},H)=>xl.createElement(Lv,{ref:H,iconNode:O,className:S0(`lucide-${Qv(x)}`,d),...E}));return T.displayName=`${x}`,T};/**
* @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 Zv=[["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"}]],p0=Fl("BookOpen",Zv);/**
* @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 Vv=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],N0=Fl("Check",Vv);/**
* @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 Kv=[["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"}]],Jv=Fl("EyeOff",Kv);/**
* @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 kv=[["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"}]],$v=Fl("Eye",kv);/**
* @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 Wv=[["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"}]],y0=Fl("KeyRound",Wv);/**
* @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 Fv=[["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"}]],Iv=Fl("Layers",Fv);/**
* @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 Pv=[["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"}]],ly=Fl("LayoutGrid",Pv);/**
* @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 ty=[["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"}]],ey=Fl("Lock",ty);/**
* @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 ay=[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]],uy=Fl("Moon",ay);/**
* @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 ny=[["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"}]],cy=Fl("Palette",ny);/**
* @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 iy=[["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"}]],fy=Fl("PanelsTopLeft",iy);/**
* @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 sy=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],Cs=Fl("Search",sy);/**
* @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 oy=[["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"}]],ry=Fl("ShieldCheck",oy);/**
* @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 dy=[["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"}]],my=Fl("Sparkles",dy);/**
* @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 hy=[["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"}]],vy=Fl("Sun",hy);/**
* @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 yy=[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]],Ms=Fl("Terminal",yy);/**
* @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 gy=[["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"}]],by=Fl("User",gy),xy=[{id:"auto",label:"智能路由"},{id:"edge443",label:"443 免端口"},{id:"home10443",label:"10443 家宽"},{id:"lan",label:"LAN 局域网"}],Sy=()=>{const{theme:x,resolvedTheme:O,routeMode:T,viewMode:d,telemetry:E,setTheme:H,toggleTheme:J,setRouteMode:K,setViewMode:Q,setShowAgyModal:W,setShowCmdPalette:A}=ke();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:()=>Q("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.jsxs("nav",{className:"flex items-center gap-1 text-xs",children:[f.jsxs("button",{onClick:()=>Q("dashboard"),className:"px-2.5 py-1.5 rounded-md font-medium flex items-center gap-1.5 transition-all cursor-pointer",style:d==="dashboard"?{backgroundColor:"var(--bg-muted)",color:"var(--text-main)"}:{color:"var(--text-muted)"},children:[f.jsx(ly,{className:"w-3.5 h-3.5"}),f.jsx("span",{children:"中控台"})]}),f.jsxs("button",{onClick:()=>Q("storybook"),className:"px-2.5 py-1.5 rounded-md font-medium flex items-center gap-1.5 transition-all cursor-pointer",style:d==="storybook"?{backgroundColor:"var(--bg-muted)",color:"var(--text-main)"}:{color:"var(--text-muted)"},children:[f.jsx(p0,{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("button",{onClick:()=>A(!0),className:"hl-btn-outline px-3 py-1.5 text-xs flex items-center gap-3 cursor-pointer",title:"按 Cmd+K 唤起全局命令面板",children:[f.jsxs("span",{className:"flex items-center gap-1.5",style:{color:"var(--text-muted)"},children:[f.jsx(Cs,{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("button",{onClick:()=>W(!0),className:"hl-btn-primary px-3 py-1.5 text-xs flex items-center gap-1.5 cursor-pointer",children:[f.jsx(Ms,{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:J,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:O==="dark"?f.jsxs(f.Fragment,{children:[f.jsx(uy,{className:"w-3.5 h-3.5"}),f.jsx("span",{children:"深色"})]}):f.jsxs(f.Fragment,{children:[f.jsx(vy,{className:"w-3.5 h-3.5"}),f.jsx("span",{children:"浅色"})]})}),x!=="system"&&f.jsx("button",{onClick:()=>H("system"),className:"px-2 py-1 rounded-md text-[11px] transition-all cursor-pointer",style:{color:"var(--text-muted)"},title:"恢复跟随设备系统深浅色自动切换",children:"自动"})]})]})]})}),d==="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,E.mini.cpu_pct)}%`}})}),f.jsxs("span",{className:"font-medium",children:[E.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,E.mini.mem_pct)}%`}})}),f.jsxs("span",{className:"font-medium",children:[E.mini.mem_used_gb,"G"]})]}),f.jsxs("div",{className:"hl-pill px-2.Line truncated