var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;li[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},c=(n,r,o)=>(o=n==null?{}:e(i(n)),s(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n));(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var l=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.for(`react.view_transition`),m=Symbol.iterator;function h(e){return typeof e!=`object`||!e?null:(e=m&&e[m]||e[`@@iterator`],typeof e==`function`?e:null)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,v={};function y(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=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,e,t,`setState`)},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function b(){}b.prototype=y.prototype;function ee(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}var te=ee.prototype=new b;te.constructor=ee,_(te,y.prototype),te.isPureReactComponent=!0;var ne=Array.isArray;function re(){}var x={H:null,A:null,T:null,S:null},ie=Object.prototype.hasOwnProperty;function S(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function ae(e,t){return S(e.type,t,e.props)}function C(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function oe(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var se=/\/+/g;function ce(e,t){return typeof e==`object`&&e&&e.key!=null?oe(``+e.key):t.toString(36)}function le(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(re,re):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function ue(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,ue(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+ce(e,0):a,ne(o)?(i=``,c!=null&&(i=c.replace(se,`$&/`)+`/`),ue(o,r,i,``,function(e){return e})):o!=null&&(C(o)&&(o=ae(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(se,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(ne(e))for(var u=0;u{t.exports=l()})),d=o((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0>>1,a=e[r];if(0>>1;ri(c,n))li(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(li(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function ee(e){if(h=!1,b(e),!m){if(n(c)!==null)m=!0,te||(te=!0,ae());else{var t=n(l);t!==null&&se(ee,t.startTime-e)}}}var te=!1,ne=-1,re=5,x=-1;function ie(){return g?!0:!(e.unstable_now()-xt&&ie());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&se(ee,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?ae():te=!1}}}var ae;if(typeof y==`function`)ae=function(){y(S)};else if(typeof MessageChannel<`u`){var C=new MessageChannel,oe=C.port2;C.port1.onmessage=S,ae=function(){oe.postMessage(null)}}else ae=function(){_(S,0)};function se(t,n){ne=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(ne),ne=-1):h=!0,se(ee,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,te||(te=!0,ae()))),r},e.unstable_shouldYield=ie,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),f=o(((e,t)=>{t.exports=d()})),p=o((e=>{var t=u();function n(e){var t=`https://react.dev/errors/`+e;if(1{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=p()})),h=o((e=>{var t=f(),n=u(),r=m();function i(e){var t=`https://react.dev/errors/`+e;if(1ke||(e.current=Oe[ke],Oe[ke]=null,ke--)}function E(e,t){ke++,Oe[ke]=e.current,e.current=t}var Me=Ae(null),Ne=Ae(null),Pe=Ae(null),Fe=Ae(null);function Ie(e,t){switch(E(Pe,t),E(Ne,e),E(Me,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?up(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=up(t),e=dp(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}je(Me),E(Me,e)}function Le(){je(Me),je(Ne),je(Pe)}function Re(e){var t=e.memoizedState;t!==null&&(sh._currentValue=t.memoizedState,E(Fe,e)),t=Me.current;var n=dp(t,e.type);t!==n&&(E(Ne,e),E(Me,n))}function ze(e){Ne.current===e&&(je(Me),je(Ne)),Fe.current===e&&(je(Fe),sh._currentValue=De)}var Be,Ve;function He(e){if(Be===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Be=t&&t[1]||``,Ve=-1)`:-1i||c[r]!==l[i]){var u=` `+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(``)&&(u=u.replace(``,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{Ue=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?He(n):``}function We(e,t){switch(e.tag){case 26:case 27:case 5:return He(e.type);case 16:return He(`Lazy`);case 13:return e.child!==t&&t!==null?He(`Suspense Fallback`):He(`Suspense`);case 19:return He(`SuspenseList`);case 0:case 15:return D(e.type,!1);case 11:return D(e.type.render,!1);case 1:return D(e.type,!0);case 31:return He(`Activity`);case 30:return He(`ViewTransition`);default:return``}}function Ge(e){try{var t=``,n=null;do t+=We(e,n),n=e,e=e.return;while(e);return t}catch(e){return` Error generating stack: `+e.message+` `+e.stack}}var Ke=Object.prototype.hasOwnProperty,qe=t.unstable_scheduleCallback,Je=t.unstable_cancelCallback,Ye=t.unstable_shouldYield,Xe=t.unstable_requestPaint,O=t.unstable_now,Ze=t.unstable_getCurrentPriorityLevel,Qe=t.unstable_ImmediatePriority,$e=t.unstable_UserBlockingPriority,et=t.unstable_NormalPriority,tt=t.unstable_LowPriority,nt=t.unstable_IdlePriority,rt=t.log,it=t.unstable_setDisableYieldValue,at=null,ot=null;function st(e){if(typeof rt==`function`&&it(e),ot&&typeof ot.setStrictMode==`function`)try{ot.setStrictMode(at,e)}catch{}}var ct=Math.clz32?Math.clz32:dt,lt=Math.log,ut=Math.LN2;function dt(e){return e>>>=0,e===0?32:31-(lt(e)/ut|0)|0}var ft=256,pt=262144,mt=4194304;function ht(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 gt(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=ht(n))):i=ht(o):i=ht(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=ht(n))):i=ht(o)):i=ht(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function _t(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function vt(e,t){t&8&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0n;n++)t.push(e);return t}function xt(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function St(e,t,n,r,i,a){var o=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 s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0`u`||window.document===void 0||window.document.createElement===void 0),Ln=!1;if(In)try{var Rn={};Object.defineProperty(Rn,"passive",{get:function(){Ln=!0}}),window.addEventListener(`test`,Rn,Rn),window.removeEventListener(`test`,Rn,Rn)}catch{Ln=!1}var zn=null,Bn=null,Vn=null;function Hn(){if(Vn)return Vn;var e,t=Bn,n=t.length,r,i=`value`in zn?zn.value:zn.textContent,a=i.length;for(e=0;e=br),Cr=` `,wr=!1;function Tr(e,t){switch(e){case`keyup`:return vr.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function Er(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var Dr=!1;function Or(e,t){switch(e){case`compositionend`:return Er(t);case`keypress`:return t.which===32?(wr=!0,Cr):null;case`textInput`:return e=t.data,e===Cr&&wr?null:e;default:return null}}function kr(e,t){if(Dr)return e===`compositionend`||!yr&&Tr(e,t)?(e=Hn(),Vn=Bn=zn=null,Dr=!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)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Qr(n)}}function ei(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ei(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ti(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Zr(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=Zr(e.document)}return t}function ni(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 ri=In&&`documentMode`in document&&11>=document.documentMode,ii=null,ai=null,oi=null,si=!1;function ci(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;si||ii==null||ii!==Zr(r)||(r=ii,`selectionStart`in r&&ni(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),oi&&Xr(oi,r)||(oi=r,r=Jf(ai,`onSelect`),0>=o,i-=o,na=1<<32-ct(t)+i|n<h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),F&&ia(i,h),l;if(d===null){for(;hg?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),F&&ia(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return F&&ia(a,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&(_=v.alternate,_!==null&&h.delete(_.key===null?g:_.key)),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),F&&ia(a,g),u}function _(e,r,o,c){if(typeof o==`object`&&o&&o.type===se&&o.key===null&&o.props.ref===void 0&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case C:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===se){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),po(c,o),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===ge&&ao(l)===r.type){n(e,r.sibling),c=a(r,o.props),po(c,o),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}o.type===se?(c=Gi(o.props.children,e.mode,c,o.key),po(c,o),c.return=e,e=c):(c=Wi(o.type,o.key,o.props,null,e.mode,c),po(c,o),c.return=e,e=c)}return s(e);case oe:a:{for(l=o.key;r!==null;){if(r.key===l){if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}c=Ji(o,e.mode,c),c.return=e,e=c}return s(e);case ge:return o=ao(o),_(e,r,o,c)}if(Ee(o))return h(e,r,o,c);if(Ce(o)){if(l=Ce(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),g(e,r,o,c)}if(typeof o.then==`function`)return _(e,r,fo(o),c);if(o.$$typeof===de)return _(e,r,ja(e,o),c);mo(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=Ki(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{uo=0;var i=_(e,t,n,r);return lo=null,i}catch(t){if(t===$a||t===to)throw t;var a=Bi(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var go=ho(!0),_o=ho(!1),vo=!1;function yo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function bo(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 xo(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function So(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,W&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Li(e),Ii(e,null,n),t}return Ni(e,r,t,n),Li(e)}function Co(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,wt(e,n)}}function wo(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var To=!1;function Eo(){if(To){var e=Wa;if(e!==null)throw e}}function Do(e,t,n,r){To=!1;var i=e.updateQueue;vo=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(q&f)===f:(r&f)===f){f!==0&&f===Ua&&(To=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var m=e,h=s;f=t;var g=n;switch(h.tag){case 1:if(m=h.payload,typeof m==`function`){d=m.call(g,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=h.payload,f=typeof m==`function`?m.call(g,d,f):m,f==null)break a;d=S({},d,f);break a;case 2:vo=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),sd|=o,e.lanes=o,e.memoizedState=d}}function Oo(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function ko(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;ea?a:8;var o=w.T,s={};s.types=o===null?null:o.types,w.T=s,pc(e,!1,t,n);try{var c=i(),l=w.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?fc(e,t,qa(c,r),jd(e)):fc(e,t,r,jd(e))}catch(n){fc(e,t,{then:function(){},status:`rejected`,reason:n},jd())}finally{T.p=a,o!==null&&s.types!==null&&(o.types=s.types),w.T=o}}function nc(){}function rc(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=ic(e).queue;tc(e,a,t,De,n===null?nc:function(){return ac(e),n(r)})}function ic(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:De,baseState:De,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ms,lastRenderedState:De},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ms,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function ac(e){var t=ic(e);t.next===null&&(t=e.alternate.memoizedState),fc(e,t.next.queue,{},jd())}function oc(){return Aa(sh)}function sc(){return B().memoizedState}function cc(){return B().memoizedState}function lc(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=jd();e=xo(n);var r=So(t,e,n);r!==null&&(Pd(r,t,n),Co(r,t,n)),t={cache:Ia()},e.payload=t;return}t=t.return}}function uc(e,t,n){var r=jd();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},mc(e)?hc(t,n):(n=Pi(e,t,n,r),n!==null&&(Pd(n,e,r),gc(n,t,r)))}function dc(e,t,n){fc(e,t,n,jd())}function fc(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(mc(e))hc(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Yr(s,o))return Ni(e,t,i,0),G===null&&Mi(),!1}catch{}if(n=Pi(e,t,i,r),n!==null)return Pd(n,e,r),gc(n,t,r),!0}return!1}function pc(e,t,n,r){if(r={lane:2,revertLane:Pf(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},mc(e)){if(t)throw Error(i(479))}else t=Pi(e,n,r,2),t!==null&&Pd(t,e,2)}function mc(e){var t=e.alternate;return e===L||t!==null&&t===L}function hc(e,t){Yo=Jo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function gc(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,wt(e,n)}}var _c={readContext:Aa,use:fs,useCallback:z,useContext:z,useEffect:z,useImperativeHandle:z,useLayoutEffect:z,useInsertionEffect:z,useMemo:z,useReducer:z,useRef:z,useState:z,useDebugValue:z,useDeferredValue:z,useTransition:z,useSyncExternalStore:z,useId:z,useHostTransitionStatus:z,useFormState:z,useActionState:z,useOptimistic:z,useMemoCache:z,useCacheRefresh:z,useEffectEvent:z},vc={readContext:Aa,use:fs,useCallback:function(e,t){return ls().memoizedState=[e,t===void 0?null:t],e},useContext:Aa,useEffect:Hs,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),Bs(4194308,4,Js.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Bs(4194308,4,e,t)},useInsertionEffect:function(e,t){Bs(4,2,e,t)},useMemo:function(e,t){var n=ls();t=t===void 0?null:t;var r=e();if(Xo){st(!0);try{e()}finally{st(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=ls();if(n!==void 0){var i=n(t);if(Xo){st(!0);try{n(t)}finally{st(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=uc.bind(null,L,e),[r.memoizedState,e]},useRef:function(e){var t=ls();return e={current:e},t.memoizedState=e},useState:function(e){e=ws(e);var t=e.queue,n=dc.bind(null,L,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Xs,useDeferredValue:function(e,t){return $s(ls(),e,t)},useTransition:function(){var e=ws(!1);return e=tc.bind(null,L,e.queue,!0,!1),ls().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=L,a=ls();if(F){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),G===null)throw Error(i(349));q&127||ys(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,Hs(xs.bind(null,r,o,e),[e]),r.flags|=2048,Rs(9,{destroy:void 0},bs.bind(null,r,o,n,t),null),n},useId:function(){var e=ls(),t=G.identifierPrefix;if(F){var n=ra,r=na;n=(r&~(1<<32-ct(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=Zo++,0<\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[jt]=t,o[Mt]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(np(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&gl(t)}}return V(t),t.subtreeFlags&=-33554433,_l(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&gl(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=Pe.current,ga(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=la,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[jt]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||ep(e.nodeValue,n)),e||pa(t,!0)}else e=lp(e).createTextNode(r),e[jt]=t,t.stateNode=e}return V(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=ga(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[jt]=t}else _a(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;V(t),e=!1}else n=va(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Vo(t),t):(Vo(t),null);if(t.flags&128)throw Error(i(558))}return V(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=ga(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[jt]=t}else _a(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;V(t),a=!1}else a=va(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(Vo(t),t):(Vo(t),null)}return Vo(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),yl(t,t.updateQueue),V(t),null);case 4:return Le(),e===null&&Wf(t.stateNode.containerInfo),t.flags|=67108864,V(t),null;case 10:return wa(t.type),V(t),null;case 19:if(Wo(t),r=t.memoizedState,r===null)return V(t),null;if(a=!!(t.flags&128),o=r.rendering,o===null){if(a)bl(r,!1);else{if(Y!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Go(e),o!==null){for(t.flags|=128,bl(r,!1),e=o.updateQueue,t.updateQueue=e,yl(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Ui(n,e),n=n.sibling;return Uo(t,Ho.current&1|2),F&&ia(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&O()>_d&&(t.flags|=128,a=!0,bl(r,!1),t.lanes=4194304)}}else{if(!a){if(e=Go(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,yl(t,e),bl(r,!0),r.tail===null&&r.tailMode!==`collapsed`&&r.tailMode!==`visible`&&!o.alternate&&!F)return V(t),null}else 2*O()-r.renderingStartTime>_d&&n!==536870912&&(t.flags|=128,a=!0,bl(r,!1),t.lanes=4194304)}r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}if(r.tail!==null){e=r.tail;a:{for(n=e;n!==null;){if(n.alternate!==null){n=!1;break a}n=n.sibling}n=!0}return r.rendering=e,r.tail=e.sibling,r.renderingStartTime=O(),e.sibling=null,o=Ho.current,o=a?o&1|2:o&1,r.tailMode===`visible`||r.tailMode===`collapsed`||!n||F?Uo(t,o):(n=o,E(Fo,t),E(Ho,n),Io===null&&(Io=t)),F&&ia(t,r.treeForkCount),e}return V(t),null;case 22:case 23:return Vo(t),Po(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(V(t),t.subtreeFlags&6&&(t.flags|=8192)):V(t),n=t.updateQueue,n!==null&&yl(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&je(Ya),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),wa(I),V(t),null;case 25:return null;case 30:return t.flags|=33554432,V(t),null}throw Error(i(156,t.tag))}function Sl(e,t){switch(sa(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return wa(I),Le(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ze(t),null;case 31:if(t.memoizedState!==null){if(Vo(t),t.alternate===null)throw Error(i(340));_a()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Vo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));_a()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Wo(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 Le(),null;case 10:return wa(t.type),null;case 22:case 23:return Vo(t),Po(),e!==null&&je(Ya),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return wa(I),null;case 25:return null;default:return null}}function Cl(e,t){switch(sa(t),t.tag){case 3:wa(I),Le();break;case 26:case 27:case 5:ze(t);break;case 4:Le();break;case 31:t.memoizedState!==null&&Vo(t);break;case 13:Vo(t);break;case 19:Wo(t);break;case 10:wa(t.type);break;case 22:case 23:Vo(t),Po(),e!==null&&je(Ya);break;case 24:wa(I)}}function wl(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){Z(t,t.return,e)}}function Tl(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){Z(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Z(t,t.return,e)}}function El(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{ko(t,n)}catch(t){Z(e,e.return,t)}}}function Dl(e,t,n){n.props=Tc(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Z(e,t,n)}}function Ol(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:var i=e.stateNode,a=Ti(e.memoizedProps,i);(i.ref===null||i.ref.name!==a)&&(i.ref=Pp(a)),r=i.ref;break;case 7:if(e.stateNode===null){var o=new Fp(e);h(e.child,!1,Qp,o,void 0,void 0),e.stateNode=o}r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Z(e,t,n)}}function kl(e,t){var n=e.ref,r=e.refCleanup;if(n!==null){if(typeof r==`function`)try{r()}catch(n){Z(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){Z(e,t,n)}else n.current=null}}function Al(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var n=0;n title`))),np(r,t,n),r[jt]=e,Gt(r),t=r;break a;case`link`:if(o=Gm(`link`,`href`,a).get(t+(n.href||``))){for(s=0;sg&&(o=g,g=h,h=o);var _=$r(s,h),v=$r(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;sn?32:n,w.T=null,n=wd,wd=null;var o=bd,s=Sd;if(X=0,xd=bd=null,Sd=0,W&6)throw Error(i(331));var c=W;if(W|=4,Zu(o.current),Uu(o,o.current,s,n),W=c,Df(0,!1),ot&&typeof ot.onPostCommitFiberRoot==`function`)try{ot.onPostCommitFiberRoot(at,o)}catch{}return!0}finally{T.p=a,w.T=r,uf(e,t)}}function pf(e,t,n){t=Xi(n,t),t=jc(e.stateNode,t,2),e=So(e,t,2),e!==null&&(xt(e,2),Ef(e))}function Z(e,t,n){if(e.tag===3)pf(e,e,n);else for(;t!==null;){if(t.tag===3){pf(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(yd===null||!yd.has(r))){e=Xi(n,e),n=Mc(2),r=So(t,n,2),r!==null&&(Nc(n,r,t,e),xt(r,2),Ef(r));break}}t=t.return}}function mf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new td;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(ad=!0,i.add(n),e=hf.bind(null,e,t,n),t.then(e,e))}function hf(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,G===e&&(q&n)===n&&(Y===4||Y===3&&(q&62914560)===q&&300>O()-hd?W&2?ld|=n:Vd(e,0):ld|=n,dd===q&&(dd=0)),Ef(e)}function gf(e,t){t===0&&(t=k()),e=Fi(e,t),e!==null&&(xt(e,t),Ef(e))}function _f(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),gf(e,n)}function vf(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),gf(e,n)}function yf(e,t){return qe(e,t)}var bf=null,xf=null,Sf=!1,Cf=!1,wf=!1,Tf=0;function Ef(e){e!==xf&&e.next===null&&(xf===null?bf=xf=e:xf=xf.next=e),Cf=!0,Sf||(Sf=!0,Nf())}function Df(e,t){if(!wf&&Cf){wf=!0;do for(var n=!1,r=bf;r!==null;){if(!t){if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-ct(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,Mf(r,a))}else a=q,a=gt(r,r===G?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||_t(r,a)||(n=!0,Mf(r,a))}r=r.next}while(n);wf=!1}}function Of(){kf()}function kf(){Cf=Sf=!1;var e=0;Tf!==0&&hp()&&(e=Tf);for(var t=O(),n=null,r=bf;r!==null;){var i=r.next,a=Af(r,t);a===0?(r.next=null,n===null?bf=i:n.next=i,i===null&&(xf=n)):(n=r,(e!==0||a&3)&&(Cf=!0)),r=i}X!==0&&X!==5||Df(e,!1),Tf!==0&&(Tf=0)}function Af(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0s)break;var u=c.transferSize,d=c.initiatorType;u&&ap(d)&&(c=c.responseEnd,o+=u*(c$m){s.length=o;break}f=new Promise(jp.bind(f)),s.push(f)}}}if(0`u`?null:document;function Tm(e,t,n){var r=wm;if(r&&typeof t==`string`&&t){var i=fn(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),ym.has(i)||(ym.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),np(t,`link`,e),Gt(t),r.head.appendChild(t)))}}function Em(e){xm.D(e),Tm(`dns-prefetch`,e,null)}function Dm(e,t){xm.C(e,t),Tm(`preconnect`,e,t)}function Om(e,t,n){xm.L(e,t,n);var r=wm;if(r&&e&&t){var i=`link[rel="preload"][as="`+fn(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+fn(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+fn(n.imageSizes)+`"]`)):i+=`[href="`+fn(e)+`"]`;var a=i;switch(t){case`style`:a=Pm(e);break;case`script`:a=Rm(e)}if(!(vm.has(a)||(e=S({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),vm.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Fm(a))||t===`script`&&r.querySelector(zm(a))))){var o=r.createElement(`link`);np(o,`link`,e),t===`style`&&(o[zt]=!0,o.onload=o.onerror=function(){Kt(o)}),Gt(o),r.head.appendChild(o)}}}function km(e,t){xm.m(e,t);var n=wm;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+fn(r)+`"][href="`+fn(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Rm(e)}if(!vm.has(a)&&(e=S({rel:`modulepreload`,href:e},t),vm.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(zm(a)))return}r=n.createElement(`link`),np(r,`link`,e),Gt(r),n.head.appendChild(r)}}}function Am(e,t,n){xm.S(e,t,n);var r=wm;if(r&&e){var i=Wt(r).hoistableStyles,a=Pm(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Fm(a)))s.loading=5;else{e=S({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=vm.get(a))&&Hm(e,n);var c=o=r.createElement(`link`);Gt(c),np(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Vm(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function jm(e,t){xm.X(e,t);var n=wm;if(n&&e){var r=Wt(n).hoistableScripts,i=Rm(e),a=r.get(i);a||(a=n.querySelector(zm(i)),a||(e=S({src:e,async:!0},t),(t=vm.get(i))&&Um(e,t),a=n.createElement(`script`),Gt(a),np(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Mm(e,t){xm.M(e,t);var n=wm;if(n&&e){var r=Wt(n).hoistableScripts,i=Rm(e),a=r.get(i);a||(a=n.querySelector(zm(i)),a||(e=S({src:e,async:!0,type:`module`},t),(t=vm.get(i))&&Um(e,t),a=n.createElement(`script`),Gt(a),np(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Nm(e,t,n,r){var a=(a=Pe.current)?bm(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(n=Pm(n.href),t=Wt(a).hoistableStyles,r=t.get(n),r||(r={type:`style`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Pm(n.href);var o=Wt(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Fm(e)))?o._p||(s.instance=o,s.state.loading=5):(o=vm.get(e),o||(o={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},vm.set(e,o)),Lm(a,e,o,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(n=Rm(n),t=Wt(a).hoistableScripts,r=t.get(n),r||(r={type:`script`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Pm(e){return`href="`+fn(e)+`"`}function Fm(e){return`link[rel="stylesheet"][`+e+`]`}function Im(e){return S({},e,{"data-precedence":e.precedence,precedence:null})}function Lm(e,t,n,r){if(t=e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)){if(!0!==t[zt]){r.loading=1;return}}else t=e.createElement(`link`),t[zt]=!0,t.onload=t.onerror=Kt.bind(null,t),np(t,`link`,n),Gt(t),e.head.appendChild(t);r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2})}function Rm(e){return`[src="`+fn(e)+`"]`}function zm(e){return`script[async]`+e}function Bm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+fn(n.href)+`"]`);if(r)return t.instance=r,Gt(r),r;var a=S({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),Gt(r),np(r,`style`,a),Vm(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Pm(n.href);var o=e.querySelector(Fm(a));if(o)return t.state.loading|=4,t.instance=o,Gt(o),o;r=Im(n),(a=vm.get(a))&&Hm(r,a),o=(e.ownerDocument||e).createElement(`link`),Gt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),np(o,`link`,r),t.state.loading|=4,Vm(o,n.precedence,e),t.instance=o;case`script`:return o=Rm(n.src),(a=e.querySelector(zm(o)))?(t.instance=a,Gt(a),a):(r=n,(a=vm.get(o))&&(r=S({},n),Um(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),Gt(a),np(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Vm(r,n.precedence,e));return t.instance}function Vm(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o title`):null)}function qm(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 Jm(e,t){return e===`img`&&t.src!=null&&t.src!==``&&t.onLoad==null&&t.loading!==`lazy`}function Ym(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Xm(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio==`number`?devicePixelRatio:1)*.25}function Zm(e,t){typeof t.decode==`function`&&(e.imgCount++,t.complete||(e.imgBytes+=Xm(t),e.suspenseyImages.push(t)),e=rh.bind(e),t.decode().then(e,e))}function Qm(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Pm(r.href),a=t.querySelector(Fm(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=nh.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,Gt(a);return}a=t.ownerDocument||t,r=Im(r),(i=vm.get(i))&&Hm(r,i),a=a.createElement(`link`),Gt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),np(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=nh.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var $m=0;function eh(e,t){return e.stylesheets&&e.count===0&&ah(e,e.stylesheets),0$m?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function th(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)ah(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function nh(){this.count--,th(this)}function rh(){this.imgCount--,th(this)}var ih=null;function ah(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ih=new Map,t.forEach(oh,e),ih=null,nh.call(e))}function oh(e,t){if(!(t.state.loading&4)){var n=ih.get(e);if(n)var r=n.get(null);else{n=new Map,ih.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=h()})),_=c(u(),1),v=g();function y(e,t){if(e instanceof RegExp)return{keys:!1,pattern:e};var n,r,i,a,o=[],s=``,c=e.split(`/`);for(c[0]||c.shift();i=c.shift();)n=i[0],n===`*`?(o.push(n),s+=i[1]===`?`?`(?:/(.*))?`:`/(.*)`):n===`:`?(r=i.indexOf(`?`,1),a=i.indexOf(`.`,1),o.push(i.substring(1,~r?r:~a?a:i.length)),s+=~r&&!~a?`(?:/([^/]+?))?`:`/([^/]+?)`,~a&&(s+=(~r?`?`:``)+`\\`+i.substring(a))):s+=`/`+i;return{keys:o,pattern:RegExp(`^`+s+(t?`(?=$|/)`:`/?$`),`i`)}}var b=o((e=>{var t=u();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,o=t.useLayoutEffect,s=t.useDebugValue;function c(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),c=r[0].inst,u=r[1];return o(function(){c.value=n,c.getSnapshot=t,l(c)&&u({inst:c})},[e,n,t]),a(function(){return l(c)&&u({inst:c}),e(function(){l(c)&&u({inst:c})})},[e]),s(n),n}function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function d(e,t){return t()}var f=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?d:c;e.useSyncExternalStore=t.useSyncExternalStore===void 0?f:t.useSyncExternalStore})),ee=o(((e,t)=>{t.exports=b()}))(),te=_.useInsertionEffect,ne=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0?_.useLayoutEffect:_.useEffect,re=te||ne,x=e=>{let t=_.useRef([e,(...e)=>t[0](...e)]).current;return re(()=>{t[0]=e}),t[1]},ie=[`popstate`,`pushState`,`replaceState`,`hashchange`],S=[],ae=()=>S.forEach(e=>e()),C=e=>(S.push(e)===1&&ie.forEach(e=>addEventListener(e,ae)),()=>{S=S.filter(t=>t!==e),S.length||ie.forEach(e=>removeEventListener(e,ae))}),oe=(e,t)=>(0,ee.useSyncExternalStore)(C,e,t),se=()=>location.search,ce=({ssrSearch:e}={})=>oe(se,e==null?se:()=>e),le=()=>location.pathname,ue=({ssrPath:e}={})=>oe(le,e==null?le:()=>e),de=(e,{replace:t=!1,state:n=null}={})=>history[t?`replaceState`:`pushState`](n,``,e),fe=e=>[ue(e),de],pe=Symbol.for(`wouter_v3`);if(typeof history<`u`&&window[pe]===void 0){for(let e of[`pushState`,`replaceState`]){let t=history[e];history[e]=function(){let n=t.apply(this,arguments),r=new Event(e);return r.arguments=arguments,dispatchEvent(r),n}}Object.defineProperty(window,pe,{value:!0})}var me=(e=``)=>e===`/`?``:e,he=(e,t)=>e[0]===`~`?e.slice(1):me(t)+e,ge=(e,t)=>(e=_e(me(e)),t=_e(t),!e||!t.toLowerCase().indexOf(e.toLowerCase())?t.slice(e.length)||`/`:`~`+t),_e=e=>{try{return e.includes(`%`)?decodeURI(e):e}catch{return e}},ve=e=>_e(e[0]===`?`?e.slice(1):e),ye={hook:fe,searchHook:ce,parser:y,base:``,ssrPath:void 0,ssrSearch:void 0,ssrContext:void 0,hrefs:e=>e,aroundNav:(e,t,n)=>e(t,n)},be=(0,_.createContext)(ye),xe=()=>(0,_.useContext)(be),Se={},Ce=(0,_.createContext)(Se),we=()=>(0,_.useContext)(Ce),Te=(e,t=e.base)=>ge(t,e.hook(e)[0]),Ee=e=>{let[t,n]=e.hook(e);return[ge(e.base,t),x((t,r)=>e.aroundNav(n,he(t,e.base),r))]},w=()=>Ee(xe()),T=()=>{let e=xe();return ve(e.searchHook(e))},De=(e,t,n,r)=>{let{pattern:i,keys:a}=t instanceof RegExp?{pattern:t}:e(t||`*`,r),o=i.exec(n);if(!o)return[!1,null];let s={};for(let e=1;e{let n=xe(),r=t.hook?ye:n,i=r;if(t.ssrPath){let[e,n=t.ssrSearch??``]=t.ssrPath.split(`?`);e&&(t.ssrSearch=n,t.ssrPath=e)}t.hrefs=t.hrefs??t.hook?.hrefs,t.searchHook=t.searchHook??t.hook?.searchHook;let a=(0,_.useRef)(r),o=a.current,s=o;for(let e in r){let n=e===`base`?r[e]+(t[e]??``):t[e]??r[e];n!==s[e]&&(o===s&&(a.current=s={...s}),s[e]=n),(n!==r[e]||n!==i[e])&&(i=s)}return(0,_.createElement)(be.Provider,{value:i},e)},ke=({children:e,component:t},n)=>t?(0,_.createElement)(t,{params:n}):typeof e==`function`?e(n):e,Ae=e=>{let t=(0,_.useRef)(Se),n=t.current,r=Object.keys(e);return t.current=r.length!==Object.keys(n).length||r.some(t=>e[t]!==n[t])?e:n};function je(){let[e,t]=w(),n=T(),r=(0,_.useMemo)(()=>new URLSearchParams(n),[n]),i=r;return[r,x((n,r)=>{i=new URLSearchParams(typeof n==`function`?n(i):n);let a=i.toString();t(e+(a?`?`+a:``),r)})]}var E=({path:e,nest:t,match:n,...r})=>{let i=xe(),a=Te(i),[o,s,c]=n??De(i.parser,e,a,t),l=Ae({...we(),...s});if(!o)return null;let u=ke(r,l);return(0,_.createElement)(Ce.Provider,{value:l},c?(0,_.createElement)(Oe,{base:c},u):u)},Me=(0,_.forwardRef)((e,t)=>{let n=xe(),[r,i]=Ee(n),{to:a=``,href:o=a,onClick:s,asChild:c,children:l,className:u,replace:d,state:f,transition:p,...m}=e;return m.onClick=x(t=>{t.ctrlKey||t.metaKey||t.altKey||t.shiftKey||t.button!==0||(s?.(t),t.defaultPrevented||(t.preventDefault(),i(o,e)))}),m.href=n.hrefs(o[0]===`~`?o.slice(1):n.base+o,n),u!==void 0&&(m.className=u?.call?u(r===o):u),t&&(m.ref=t),c&&(0,_.isValidElement)(l)?(0,_.cloneElement)(l,m):(0,_.createElement)(`a`,m,l)}),Ne=(e,t=[])=>{if(Array.isArray(e))for(let n of e)Ne(n&&n.type===_.Fragment?n.props.children:n,t);else t.push(e);return t},Pe=({children:e,location:t})=>{let n=xe(),r=Te(n);for(let i of Ne(e)){let e=0;if((0,_.isValidElement)(i)&&(e=De(n.parser,i.props.path,t||r,i.props.nest))[0])return(0,_.cloneElement)(i,{match:e})}return null},Fe=[`default`,`compact`],Ie=(0,_.createContext)(null);function Le(){let e=(0,_.useContext)(Ie);if(!e)throw Error(`useAppState must be used inside `);return e}var Re={theme:`ns-theme`,viewMode:`ns-view-mode`,sidebarCollapsed:`ns-sidebar-collapsed`};function ze(e,t){try{let n=localStorage.getItem(e);return n===null?void 0:t.includes(n)?n:void 0}catch{return}}function Be(e,t){try{localStorage.setItem(e,t)}catch{}}function Ve(e){let t=ze(e,[`true`,`false`]);return t===void 0?void 0:t===`true`}function He(e,t){Be(e,t?`true`:`false`)}var Ue=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),D=o(((e,t)=>{t.exports=Ue()}))();function We(e){let t=document.documentElement;t.dataset.theme=e,t.classList.toggle(`dark`,e===`dark`),t.classList.toggle(`light`,e===`light`)}function Ge(e){document.documentElement.dataset.viewMode=e}function Ke(){return document.documentElement.getAttribute(`data-theme`)===`light`?`light`:`dark`}function qe(){return ze(Re.viewMode,Fe)??`default`}function Je(){return Ve(Re.sidebarCollapsed)??!1}function Ye({children:e}){let[t,n]=(0,_.useState)(Ke),[r,i]=(0,_.useState)(qe),[a,o]=(0,_.useState)(Je),[s,c]=(0,_.useState)(!1);(0,_.useEffect)(()=>{We(t)},[t]),(0,_.useEffect)(()=>{Ge(r)},[r]),(0,_.useEffect)(()=>{let e=e=>{(e.metaKey||e.ctrlKey)&&e.key.toLowerCase()===`k`&&(e.preventDefault(),c(e=>!e))};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[]);let l=(0,_.useCallback)(e=>{n(e),Be(Re.theme,e)},[]),u=(0,_.useCallback)(()=>{l(t===`dark`?`light`:`dark`)},[t,l]),d=(0,_.useCallback)(e=>{i(e),Be(Re.viewMode,e)},[]),f=(0,_.useCallback)(e=>{o(e),He(Re.sidebarCollapsed,e)},[]),p=(0,_.useCallback)(()=>{f(!a)},[a,f]),m=(0,_.useCallback)(()=>c(!0),[]),h=(0,_.useCallback)(()=>c(!1),[]),g=(0,_.useCallback)(()=>c(e=>!e),[]),v=(0,_.useMemo)(()=>({theme:t,viewMode:r,sidebarCollapsed:a,searchOpen:s,setTheme:l,toggleTheme:u,setViewMode:d,setSidebarCollapsed:f,toggleSidebar:p,openSearch:m,closeSearch:h,toggleSearch:g}),[t,r,a,s,l,u,d,f,p,m,h,g]);return(0,D.jsx)(Ie.Provider,{value:v,children:e})}var Xe=[{id:`metrics`,label:`Metrics Dashboard`,icon:`sparkles`},{id:`settings`,label:`Settings & Safeguards`,icon:`settings`},{id:`table`,label:`Service Monitor Table`,icon:`layers`},{id:`deploy`,label:`Deployment Flow`,icon:`terminal`}];function O(...e){let t=[];for(let n of e)if(n){if(typeof n==`string`||typeof n==`number`)t.push(String(n));else if(Array.isArray(n)){let e=O(...n);e&&t.push(e)}else if(typeof n==`object`)for(let[e,r]of Object.entries(n))r&&t.push(e)}return t.join(` `)}function Ze({className:e,...t}){return(0,D.jsx)(`div`,{className:O(`surface-card`,e),...t})}function Qe({className:e,...t}){return(0,D.jsx)(`div`,{className:O(`stack-xs`,e),style:{marginBottom:`var(--space-4)`},...t})}function $e({className:e,children:t,...n}){return(0,D.jsx)(`h3`,{className:O(e),style:{margin:0,fontSize:`var(--text-lg)`,fontWeight:700,color:`var(--foreground)`,letterSpacing:`-0.02em`},...n,children:t})}function et({className:e,...t}){return(0,D.jsx)(`p`,{className:O(e),style:{margin:0,fontSize:`var(--text-sm)`,color:`var(--muted-foreground)`,lineHeight:1.5},...t})}function tt({className:e,...t}){return(0,D.jsx)(`div`,{className:O(e),...t})}function nt({className:e,...t}){return(0,D.jsx)(`div`,{className:O(`flex-between`,e),style:{marginTop:`var(--space-5)`,paddingTop:`var(--space-4)`,borderTop:`1px solid var(--border)`},...t})}function rt({variant:e=`primary`,className:t,children:n,...r}){return(0,D.jsx)(`span`,{className:O(`badge`,`badge-${e}`,t),...r,children:n})}function it(e){return!e||!/[0-9]/.test(e)?`neutral`:e.trim().startsWith(`-`)?`down`:`up`}function at({title:e,value:t,change:n,trend:r=`neutral`,direction:i,caption:a,icon:o,className:s}){let c=i??it(n);return(0,D.jsxs)(Ze,{className:O(`hover-lift`,s),children:[(0,D.jsxs)(`div`,{className:`flex-between`,style:{marginBottom:`var(--space-3)`},children:[(0,D.jsx)(`span`,{style:{fontFamily:`var(--font-mono)`,fontSize:`var(--text-3xs)`,textTransform:`uppercase`,letterSpacing:`0.08em`,color:`var(--muted-foreground)`},children:e}),o&&(0,D.jsx)(`div`,{style:{color:`var(--primary)`,display:`flex`,alignItems:`center`},children:o})]}),(0,D.jsx)(`div`,{style:{fontSize:`var(--text-2xl)`,fontWeight:800,color:`var(--foreground)`,lineHeight:1.1,letterSpacing:`-0.04em`,marginBottom:`var(--space-2)`},children:t}),(0,D.jsxs)(`div`,{className:`flex-between`,style:{marginTop:`var(--space-2)`},children:[n&&(0,D.jsxs)(rt,{variant:r===`up`?`positive`:r===`down`?`destructive`:`secondary`,children:[c===`up`?`↑`:c===`down`?`↓`:`→`,` `,n]}),a&&(0,D.jsx)(`span`,{style:{fontSize:`var(--text-3xs)`,color:`var(--muted-foreground)`,fontFamily:`var(--font-mono)`},children:a})]})]})}function ot({value:e=0,max:t=100,indeterminate:n=!1,label:r,className:i,...a}){let o=Math.min(Math.max(Math.round(e/(t>0?t:100)*100),0),100),s=(0,_.useId)();return(0,D.jsxs)(`div`,{className:O(`stack-xs`,i),...a,children:[(r||!n)&&(0,D.jsxs)(`div`,{className:`flex-between`,style:{fontSize:`var(--text-xs)`,color:`var(--muted-foreground)`},children:[r&&(0,D.jsx)(`span`,{id:s,children:r}),!n&&(0,D.jsxs)(`span`,{style:{fontFamily:`var(--font-mono)`},children:[o,`%`]})]}),(0,D.jsx)(`div`,{className:`progress-container`,role:`progressbar`,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":n?void 0:o,"aria-busy":n?!0:void 0,"aria-labelledby":r?s:void 0,children:(0,D.jsx)(`div`,{className:O(`progress-fill`,n&&`progress-indeterminate`),style:n?void 0:{width:`${o}%`}})})]})}var st=e=>e?.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase();function ct(e,t,n=[]){if(t==null)throw Error(`[lucide]: iconNode is required when icon name is used`);return{name:st(e),size:24,node:t,...n.length>0?{aliases:n}:{}}}var lt=e=>{let t=``,n=!1;for(let r of e){if(r===`-`||r===`_`||r<=` `){n=t.length>0;continue}t.length===0?t+=r.toLowerCase():t+=n?r.toUpperCase():r,n=!1}return t},ut=e=>{let t=lt(e);return t.charAt(0).toUpperCase()+t.slice(1)},dt=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),ft={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`};function pt(e){return e!=null}function mt(e,t={}){let n=t.attributeNames??{},r=e=>n[e]??e,i=e.size??e.width??ft.width,a=e.size??e.height??ft.height,o=e.aliases?.filter(e=>typeof e==`string`&&e.trim()!==``).map(e=>`lucide-${e}`)??[],s=[...e.name?[`lucide-${e.name}`]:[],...o],c=t.className?.split(` `).filter(Boolean)??[],l=t.includeDefaultClasses===!1?dt(...c):dt(`lucide`,...s,...c),u=t.absoluteStrokeWidth?Number(t.strokeWidth??ft[`stroke-width`])*Number(e.size??e.width??ft.width)/Number(t.size??t.width??ft.width):t.strokeWidth??ft[`stroke-width`];return[`svg`,{...Object.entries(ft).reduce((e,[t,n])=>(e[r(t)]=n,e),{}),...`color`in t&&t.color&&{[r(`stroke`)]:t.color},...`size`in t&&pt(t.size)&&{[r(`width`)]:t.size,[r(`height`)]:t.size},...`width`in t&&pt(t.width)&&{[r(`width`)]:t.width},...`height`in t&&pt(t.height)&&{[r(`height`)]:t.height},[r(`stroke-width`)]:u,...l&&{[r(`class`)]:l},[r(`viewBox`)]:`0 0 ${i} ${a}`,...t.hasA11yProp===!1?{[r(`aria-hidden`)]:`true`}:{},...`attributes`in t&&t.attributes},e.node.map(e=>{let[n,i,a]=e,o=t.nonScalingStroke?{[r(`vector-effect`)]:`non-scaling-stroke`,...i}:i;return a?[n,o,a]:[n,o]})]}function ht(e,t={}){return mt(e,{...t,attributeNames:{...t.attributeNames,class:`className`,"stroke-width":`strokeWidth`,"stroke-linecap":`strokeLinecap`,"stroke-linejoin":`strokeLinejoin`,"vector-effect":`vectorEffect`}})}var gt=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},_t=(0,_.createContext)({}),vt=()=>(0,_.useContext)(_t),yt=(0,_.forwardRef)(({color:e,size:t,width:n,height:r,strokeWidth:i,absoluteStrokeWidth:a,nonScalingStroke:o,className:s=``,children:c,iconNode:l=[],icon:u={node:l,aliases:[],size:24},...d},f)=>{let{size:p=24,strokeWidth:m=2,absoluteStrokeWidth:h=!1,nonScalingStroke:g=!1,color:v=`currentColor`,className:y=``}=vt()??{},b=!!c||gt(d),[ee,te,ne=[]]=ht(u,{color:e??v,width:n??t??p,height:r??t??p,strokeWidth:i??m,absoluteStrokeWidth:a??h,nonScalingStroke:o??g,className:dt(y,s),hasA11yProp:b,attributes:d});return(0,_.createElement)(ee,{ref:f,...te},[...ne.map(([e,t])=>(0,_.createElement)(e,t)),...Array.isArray(c)?c:[c]])});function k(e,t=[],n=[]){let r=typeof e==`string`?ct(e,t,n):e,i=(0,_.forwardRef)(({className:e,...t},n)=>(0,_.createElement)(yt,{ref:n,icon:r,className:e,...t}));return r.name&&(i.displayName=ut(r.name)),i}var bt={name:`arrow-left`,size:24,node:[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]};bt.node;var xt=k(bt),St={name:`arrow-right`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]};St.node;var Ct=k(St),wt={name:`calendar`,size:24,node:[[`path`,{d:`M8 2v3`,key:`1ioesn`}],[`path`,{d:`M16 2v3`,key:`otl347`}],[`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,key:`h1oib`}],[`path`,{d:`M3 9h18`,key:`1pudct`}]]};wt.node;var Tt=k(wt),Et={name:`check`,size:24,node:[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]};Et.node;var Dt=k(Et),Ot={name:`chevron-down`,size:24,node:[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]};Ot.node;var kt=k(Ot),At={name:`chevron-left`,size:24,node:[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]};At.node;var jt=k(At),Mt={name:`chevron-right`,size:24,node:[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]};Mt.node;var Nt=k(Mt),Pt={name:`chevron-up`,size:24,node:[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]};Pt.node;var Ft=k(Pt),It={name:`circle-alert`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]],aliases:[`alert-circle`]};It.node;var Lt=k(It),Rt={name:`circle-check`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m16 9-5.5 5.5L8 12`,key:`xofnsj`}]],aliases:[`check-circle-2`]};Rt.node;var zt=k(Rt),Bt={name:`circle-question-mark`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3`,key:`1u773s`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]],aliases:[`help-circle`,`circle-help`]};Bt.node;var Vt=k(Bt),Ht={name:`clock`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}]]};Ht.node;var Ut=k(Ht),Wt={name:`code-xml`,size:24,node:[[`path`,{d:`m18 16 4-4-4-4`,key:`1inbqp`}],[`path`,{d:`m6 8-4 4 4 4`,key:`15zrgr`}],[`path`,{d:`m14.5 4-5 16`,key:`e7oirm`}]],aliases:[`code-2`]};Wt.node;var Gt=k(Wt),Kt={name:`copy`,size:24,node:[[`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`}]]};Kt.node;var qt=k(Kt),Jt={name:`cpu`,size:24,node:[[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M17 20v2`,key:`1rnc9c`}],[`path`,{d:`M17 2v2`,key:`11trls`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M2 17h2`,key:`7oei6x`}],[`path`,{d:`M2 7h2`,key:`asdhe0`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`M20 17h2`,key:`1fpfkl`}],[`path`,{d:`M20 7h2`,key:`1o8tra`}],[`path`,{d:`M7 20v2`,key:`4gnj0m`}],[`path`,{d:`M7 2v2`,key:`1i4yhu`}],[`rect`,{x:`4`,y:`4`,width:`16`,height:`16`,rx:`2`,key:`1vbyd7`}],[`rect`,{x:`8`,y:`8`,width:`8`,height:`8`,rx:`1`,key:`z9xiuo`}]]};Jt.node;var Yt=k(Jt),Xt={name:`database`,size:24,node:[[`ellipse`,{cx:`12`,cy:`5`,rx:`9`,ry:`3`,key:`msslwz`}],[`path`,{d:`M3 5V19A9 3 0 0 0 21 19V5`,key:`1wlel7`}],[`path`,{d:`M3 12A9 3 0 0 0 21 12`,key:`mv7ke4`}]]};Xt.node;var Zt=k(Xt),Qt={name:`download`,size:24,node:[[`path`,{d:`M12 15V3`,key:`m9g1x1`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}],[`path`,{d:`m7 10 5 5 5-5`,key:`brsn70`}]]};Qt.node;var $t=k(Qt),en={name:`external-link`,size:24,node:[[`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`}]]};en.node;var A=k(en),tn={name:`eye`,size:24,node:[[`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`}]]};tn.node;var nn=k(tn),rn={name:`file-text`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]};rn.node;var an=k(rn),on={name:`folder`,size:24,node:[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]};on.node;var sn=k(on),cn={name:`funnel`,size:24,node:[[`path`,{d:`M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z`,key:`sc7q7i`}]],aliases:[`filter`]};cn.node;var ln=k(cn),un={name:`info`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]};un.node;var dn=k(un),fn={name:`layers`,size:24,node:[[`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`}]],aliases:[`layers-3`]};fn.node;var pn=k(fn),mn={name:`log-out`,size:24,node:[[`path`,{d:`m16 17 5-5-5-5`,key:`1bji2h`}],[`path`,{d:`M21 12H9`,key:`dn1m92`}],[`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`,key:`1uf3rs`}]]};mn.node;var hn=k(mn),gn={name:`menu`,size:24,node:[[`path`,{d:`M4 5h16`,key:`1tepv9`}],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 19h16`,key:`1djgab`}]]};gn.node;var _n=k(gn),vn={name:`minus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}]]};vn.node;var yn=k(vn),bn={name:`moon`,size:24,node:[[`path`,{d:`M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401`,key:`kfwtm`}]]};bn.node;var xn=k(bn),Sn={name:`plus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]};Sn.node;var Cn=k(Sn),wn={name:`refresh-cw`,size:24,node:[[`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`}]]};wn.node;var Tn=k(wn),En={name:`search`,size:24,node:[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]};En.node;var Dn=k(En),On={name:`settings`,size:24,node:[[`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`,key:`1i5ecw`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]};On.node;var kn=k(On),An={name:`shield`,size:24,node:[[`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`}]]};An.node;var jn=k(An),Mn={name:`sliders-horizontal`,size:24,node:[[`path`,{d:`M10 5H3`,key:`1qgfaw`}],[`path`,{d:`M12 19H3`,key:`yhmn1j`}],[`path`,{d:`M14 3v4`,key:`1sua03`}],[`path`,{d:`M16 17v4`,key:`1q0r14`}],[`path`,{d:`M21 12h-9`,key:`1o4lsq`}],[`path`,{d:`M21 19h-5`,key:`1rlt1p`}],[`path`,{d:`M21 5h-7`,key:`1oszz2`}],[`path`,{d:`M8 10v4`,key:`tgpxqk`}],[`path`,{d:`M8 12H3`,key:`a7s4jb`}]]};Mn.node;var Nn=k(Mn),Pn={name:`sparkles`,size:24,node:[[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`,key:`1s2grr`}],[`path`,{d:`M20 2v4`,key:`1rf3ol`}],[`path`,{d:`M22 4h-4`,key:`gwowj6`}],[`circle`,{cx:`4`,cy:`20`,r:`2`,key:`6kqj1y`}]],aliases:[`stars`]};Pn.node;var Fn=k(Pn),In={name:`sun`,size:24,node:[[`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`}]]};In.node;var Ln=k(In),Rn={name:`terminal`,size:24,node:[[`path`,{d:`M12 19h8`,key:`baeox8`}],[`path`,{d:`m4 17 6-6-6-6`,key:`1yngyt`}]]};Rn.node;var zn=k(Rn),Bn={name:`trash`,size:24,node:[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]],aliases:[`trash-2`]};Bn.node;var Vn=k(Bn),Hn={name:`triangle-alert`,size:24,node:[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]],aliases:[`alert-triangle`]};Hn.node;var Un=k(Hn),Wn={name:`upload`,size:24,node:[[`path`,{d:`M12 3v12`,key:`1x0j5s`}],[`path`,{d:`m17 8-5-5-5 5`,key:`7q97r8`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}]]};Wn.node;var Gn=k(Wn),Kn={name:`user`,size:24,node:[[`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`}]]};Kn.node;var qn=k(Kn),Jn={name:`x`,size:24,node:[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]};Jn.node;var Yn=k(Jn),Xn={"arrow-right":Ct,"arrow-left":xt,"chevron-right":Nt,"chevron-left":jt,"chevron-down":kt,"chevron-up":Ft,"external-link":A,menu:_n,sparkles:Fn,terminal:zn,code:Gt,cpu:Yt,layers:pn,sun:Ln,moon:xn,database:Zt,search:Dn,copy:qt,settings:kn,sliders:Nn,filter:ln,plus:Cn,minus:yn,trash:Vn,refresh:Tn,download:$t,upload:Gn,folder:sn,file:an,user:qn,"log-out":hn,calendar:Tt,clock:Ut,check:Dt,"check-circle":zt,warning:Un,alert:Lt,info:dn,close:Yn,shield:jn,help:Vt,eye:nn},Zn={arrow:Ct,sparkle:Fn,x:Yn,"trash-2":Vn,"alert-triangle":Un,"alert-circle":Lt},Qn={...Xn,...Zn},$n={"arrow-right":{pascalName:`ArrowRight`,category:`Navigation`},"arrow-left":{pascalName:`ArrowLeft`,category:`Navigation`},"chevron-right":{pascalName:`ChevronRight`,category:`Navigation`},"chevron-left":{pascalName:`ChevronLeft`,category:`Navigation`},"chevron-down":{pascalName:`ChevronDown`,category:`Navigation`},"chevron-up":{pascalName:`ChevronUp`,category:`Navigation`},"external-link":{pascalName:`ExternalLink`,category:`Navigation`},menu:{pascalName:`Menu`,category:`Navigation`},sparkles:{pascalName:`Sparkles`,category:`System`},terminal:{pascalName:`Terminal`,category:`System`},code:{pascalName:`Code2`,category:`System`},cpu:{pascalName:`Cpu`,category:`System`},layers:{pascalName:`Layers`,category:`System`},sun:{pascalName:`Sun`,category:`System`},moon:{pascalName:`Moon`,category:`System`},database:{pascalName:`Database`,category:`System`},search:{pascalName:`Search`,category:`Interface`},copy:{pascalName:`Copy`,category:`Interface`},settings:{pascalName:`Settings`,category:`Interface`},sliders:{pascalName:`SlidersHorizontal`,category:`Interface`},filter:{pascalName:`Filter`,category:`Interface`},plus:{pascalName:`Plus`,category:`Interface`},minus:{pascalName:`Minus`,category:`Interface`},trash:{pascalName:`Trash2`,category:`Interface`},refresh:{pascalName:`RefreshCw`,category:`Interface`},download:{pascalName:`Download`,category:`Interface`},upload:{pascalName:`Upload`,category:`Interface`},folder:{pascalName:`Folder`,category:`Interface`},file:{pascalName:`FileText`,category:`Interface`},user:{pascalName:`User`,category:`Interface`},"log-out":{pascalName:`LogOut`,category:`Interface`},calendar:{pascalName:`Calendar`,category:`Interface`},clock:{pascalName:`Clock`,category:`Interface`},check:{pascalName:`Check`,category:`Status`},"check-circle":{pascalName:`CheckCircle2`,category:`Status`},warning:{pascalName:`AlertTriangle`,category:`Status`},alert:{pascalName:`AlertCircle`,category:`Status`},info:{pascalName:`Info`,category:`Status`},close:{pascalName:`X`,category:`Status`},shield:{pascalName:`Shield`,category:`Status`},help:{pascalName:`HelpCircle`,category:`Status`},eye:{pascalName:`Eye`,category:`Status`}},er=Object.entries(Xn).map(([e,t])=>({name:e,pascalName:$n[e].pascalName,category:$n[e].category,component:t}));function j({name:e,icon:t,size:n=18,strokeWidth:r=1.8,className:i,...a}){let o=e?Qn[e]:void 0;if(!t&&!o){let t=`[Icon] Unknown icon name "${String(e)}". Add it to iconMap in src/components/icon-registry.ts or pass an explicit \`icon\` prop.`;console.error(t)}return(0,D.jsx)(t??o??pn,{size:n,strokeWidth:r,className:i,"aria-hidden":`true`,...a})}function tr({title:e=`System Overview`,description:t=`Real-time telemetry and resource saturation across clusters.`,className:n=``}){let[r,i]=(0,_.useState)(`24h`);return(0,D.jsxs)(`div`,{className:`stack-lg ${n}`,children:[(0,D.jsxs)(`div`,{className:`flex-between`,style:{flexWrap:`wrap`,gap:`var(--space-3)`},children:[(0,D.jsxs)(`div`,{children:[(0,D.jsxs)(`div`,{className:`row-xs`,style:{marginBottom:`var(--space-1)`},children:[(0,D.jsx)(rt,{variant:`positive`,children:`Live Telemetry`}),(0,D.jsx)(rt,{variant:`outline`,children:`All Regions`})]}),(0,D.jsx)(`h3`,{style:{margin:`var(--space-1) 0`,fontSize:`var(--text-lg)`,fontWeight:700},children:e}),(0,D.jsx)(`p`,{style:{margin:0,color:`var(--muted-foreground)`,fontSize:`var(--text-xs)`},children:t})]}),(0,D.jsx)(`div`,{className:`row-xs`,children:[`24h`,`7d`,`30d`].map(e=>(0,D.jsx)(`button`,{className:`button ${r===e?`secondary`:`ghost`}`,style:{padding:`var(--space-1) var(--space-3)`,fontSize:`var(--text-xs)`},onClick:()=>i(e),children:e},e))})]}),(0,D.jsxs)(`div`,{className:`grid-3`,children:[(0,D.jsx)(at,{title:`Throughput`,value:r===`24h`?`14.2k req/s`:r===`7d`?`12.8k req/s`:`11.5k req/s`,change:`+18.4%`,trend:`up`,caption:`vs previous period`,icon:(0,D.jsx)(j,{name:`sparkles`,size:16})}),(0,D.jsx)(at,{title:`P99 Latency`,value:r===`24h`?`18ms`:r===`7d`?`22ms`:`25ms`,change:`-4.2ms`,trend:`up`,caption:`edge distribution`,icon:(0,D.jsx)(j,{name:`clock`,size:16})}),(0,D.jsx)(at,{title:`Error Rate`,value:`0.008%`,change:`-0.002%`,trend:`up`,caption:`within SLA (<0.05%)`,icon:(0,D.jsx)(j,{name:`shield`,size:16})})]}),(0,D.jsxs)(Ze,{children:[(0,D.jsxs)(Qe,{children:[(0,D.jsxs)(`div`,{className:`flex-between`,children:[(0,D.jsx)($e,{children:`Resource Utilization`}),(0,D.jsx)(`span`,{className:`mono muted`,style:{fontSize:`var(--text-3xs)`},children:`Cluster: canary-prod-01`})]}),(0,D.jsx)(et,{children:`Compute, memory, and persistent volume headroom.`})]}),(0,D.jsx)(tt,{children:(0,D.jsxs)(`div`,{className:`stack-md`,children:[(0,D.jsxs)(`div`,{children:[(0,D.jsxs)(`div`,{className:`flex-between`,style:{marginBottom:`var(--space-1)`},children:[(0,D.jsx)(`span`,{style:{fontSize:`var(--text-xs)`,color:`var(--foreground)`,fontWeight:500},children:`Worker CPU Saturation`}),(0,D.jsx)(`span`,{className:`mono`,style:{fontSize:`var(--text-xs)`,color:`var(--primary)`},children:`48%`})]}),(0,D.jsx)(ot,{value:48})]}),(0,D.jsxs)(`div`,{children:[(0,D.jsxs)(`div`,{className:`flex-between`,style:{marginBottom:`var(--space-1)`},children:[(0,D.jsx)(`span`,{style:{fontSize:`var(--text-xs)`,color:`var(--foreground)`,fontWeight:500},children:`Memory Allocation (16 GB Pool)`}),(0,D.jsx)(`span`,{className:`mono`,style:{fontSize:`var(--text-xs)`,color:`var(--primary)`},children:`74%`})]}),(0,D.jsx)(ot,{value:74})]}),(0,D.jsxs)(`div`,{children:[(0,D.jsxs)(`div`,{className:`flex-between`,style:{marginBottom:`var(--space-1)`},children:[(0,D.jsx)(`span`,{style:{fontSize:`var(--text-xs)`,color:`var(--foreground)`,fontWeight:500},children:`Network Ingress Bandwidth`}),(0,D.jsx)(`span`,{className:`mono`,style:{fontSize:`var(--text-xs)`,color:`var(--chart-2)`},children:`28%`})]}),(0,D.jsx)(ot,{value:28})]})]})})]})]})}function nr(){let e=(0,_.useRef)(new Set);return(0,_.useEffect)(()=>{let t=e.current;return()=>{t.forEach(clearTimeout),t.clear()}},[]),{schedule:(0,_.useCallback)((t,n)=>{let r=setTimeout(()=>{e.current.delete(r),t()},n);return e.current.add(r),r},[]),clear:(0,_.useCallback)(()=>{e.current.forEach(clearTimeout),e.current.clear()},[])}}function rr({checked:e,defaultChecked:t=!1,onCheckedChange:n,disabled:r=!1,className:i,id:a,"aria-label":o}){let[s,c]=(0,_.useState)(t),l=e!==void 0,u=l?e:s;return(0,D.jsx)(`button`,{type:`button`,role:`switch`,"aria-checked":u,disabled:r,id:a,"aria-label":o,className:O(`switch-root`,u&&`checked`,i),onClick:()=>{if(r)return;let e=!u;l||c(e),n?.(e)},style:{opacity:r?.5:1,cursor:r?`not-allowed`:`pointer`},children:(0,D.jsx)(`span`,{className:`switch-thumb`})})}function ir({variant:e=`info`,icon:t,className:n,children:r,...i}){return(0,D.jsxs)(`div`,{className:O(`alert`,`alert-${e}`,n),role:`alert`,...i,children:[t&&(0,D.jsx)(`div`,{className:`alert-icon`,style:{display:`flex`,alignItems:`center`},children:t}),(0,D.jsx)(`div`,{className:`stack-xs`,style:{flex:1,minWidth:0},children:r})]})}function ar({className:e,children:t,...n}){return(0,D.jsx)(`h5`,{className:O(e),style:{margin:0,fontSize:`var(--text-sm)`,fontWeight:600,color:`var(--foreground)`,lineHeight:1.4},...n,children:t})}function or({className:e,...t}){return(0,D.jsx)(`p`,{className:O(e),style:{margin:0,fontSize:`var(--text-xs)`,color:`var(--muted-foreground)`,lineHeight:1.5},...t})}var sr=new Set([`button`,`input`,`select`,`textarea`,`summary`]);function cr(e){let t=e.props;return t.tabIndex===void 0?t.onClick===void 0?typeof e.type==`string`?e.type===`a`?t.href!==void 0:sr.has(e.type):!1:!0:t.tabIndex>=0}function lr({content:e,children:t,className:n}){let r=(0,_.useId)(),[i,a]=(0,_.useState)(!1),o=typeof t!=`string`&&typeof t!=`number`&&(0,_.isValidElement)(t)&&t.type!==_.Fragment?t:(0,D.jsx)(`span`,{children:t}),s=o.props[`aria-describedby`],c=s?`${s} ${r}`:r,l=(0,_.cloneElement)(o,{"aria-describedby":c}),u=!cr(o);return(0,D.jsxs)(`span`,{className:O(`tooltip-wrapper`,n),tabIndex:u?0:void 0,onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1),onFocus:()=>a(!0),onBlur:()=>a(!1),onKeyDown:e=>{e.key===`Escape`&&a(!1)},children:[l,(0,D.jsx)(`span`,{id:r,className:`tooltip-box`,role:`tooltip`,"aria-hidden":!i,"data-open":i?`true`:`false`,children:e})]})}function ur({className:e,...t}){return(0,D.jsx)(`kbd`,{className:O(`kbd-tag`,e),...t})}function dr(){let[e,t]=(0,_.useState)(!1),[n,r]=(0,_.useState)(!1),[i,a]=(0,_.useState)(!1),[o,s]=(0,_.useState)(!0),[c,l]=(0,_.useState)(!0),[u,d]=(0,_.useState)(!1),f=`nsk_live_98a72ef01bc34d89a2`,{schedule:p}=nr();return(0,D.jsxs)(`div`,{className:`stack-lg`,children:[(0,D.jsxs)(Ze,{children:[(0,D.jsxs)(Qe,{children:[(0,D.jsxs)(`div`,{className:`flex-between`,children:[(0,D.jsx)($e,{children:`Environment & Access Keys`}),(0,D.jsx)(rt,{variant:`primary`,children:`Production`})]}),(0,D.jsx)(et,{children:`Manage authentication credentials and runtime ingress access.`})]}),(0,D.jsx)(tt,{children:(0,D.jsxs)(`div`,{className:`stack-md`,children:[(0,D.jsxs)(`div`,{children:[(0,D.jsx)(`label`,{style:{display:`block`,fontSize:`var(--text-xs)`,fontWeight:600,marginBottom:`var(--space-2)`},children:`Production Secret API Key`}),(0,D.jsxs)(`div`,{className:`row-xs`,style:{alignItems:`center`},children:[(0,D.jsxs)(`div`,{style:{flex:1,background:`var(--secondary)`,border:`1px solid var(--border)`,borderRadius:`var(--radius-md)`,padding:`var(--space-2) var(--space-3)`,fontFamily:`var(--font-mono)`,fontSize:`var(--text-xs)`,color:`var(--foreground)`,display:`flex`,alignItems:`center`,justifyContent:`space-between`},children:[(0,D.jsx)(`span`,{children:e?f:`••••••••••••••••••••••••••••••••`}),(0,D.jsx)(`button`,{className:`icon-button`,style:{padding:4},onClick:()=>t(!e),"aria-label":e?`Hide API key`:`Show API key`,children:(0,D.jsx)(j,{name:`eye`,size:14})})]}),(0,D.jsx)(lr,{content:`Copy key to clipboard`,children:(0,D.jsxs)(`button`,{className:`button secondary`,onClick:()=>{navigator.clipboard?.writeText(f),r(!0),p(()=>r(!1),2e3)},children:[(0,D.jsx)(j,{name:n?`check`:`copy`,size:14}),n?`Copied`:`Copy`]})})]})]}),(0,D.jsxs)(ir,{variant:`info`,children:[(0,D.jsx)(ar,{children:`Zero-Trust Rotation Enabled`}),(0,D.jsx)(or,{children:`Keys are automatically renewed every 90 days. Next scheduled rotation in 14 days.`})]})]})})]}),(0,D.jsxs)(Ze,{children:[(0,D.jsxs)(Qe,{children:[(0,D.jsx)($e,{children:`Deployment & Runtime Safeguards`}),(0,D.jsx)(et,{children:`Fine-tune canary threshold tolerances and telemetry logging.`})]}),(0,D.jsx)(tt,{children:(0,D.jsxs)(`div`,{className:`stack-md`,children:[(0,D.jsxs)(`div`,{className:`flex-between`,children:[(0,D.jsxs)(`div`,{children:[(0,D.jsx)(`div`,{style:{fontSize:`var(--text-sm)`,fontWeight:600,color:`var(--foreground)`},children:`Automated Canary Progression`}),(0,D.jsx)(`div`,{style:{fontSize:`var(--text-xs)`,color:`var(--muted-foreground)`,marginTop:2},children:`Gradually increase traffic from 5% to 100% based on error budget.`})]}),(0,D.jsx)(rr,{checked:o,onCheckedChange:s})]}),(0,D.jsxs)(`div`,{className:`flex-between`,style:{paddingTop:`var(--space-3)`,borderTop:`1px solid var(--border)`},children:[(0,D.jsxs)(`div`,{children:[(0,D.jsx)(`div`,{style:{fontSize:`var(--text-sm)`,fontWeight:600,color:`var(--foreground)`},children:`Detailed OpenTelemetry Tracing`}),(0,D.jsx)(`div`,{style:{fontSize:`var(--text-xs)`,color:`var(--muted-foreground)`,marginTop:2},children:`Emit span metrics for all inbound HTTP and gRPC remote procedure calls.`})]}),(0,D.jsx)(rr,{checked:c,onCheckedChange:l})]}),(0,D.jsxs)(`div`,{className:`flex-between`,style:{paddingTop:`var(--space-3)`,borderTop:`1px solid var(--border)`},children:[(0,D.jsxs)(`div`,{children:[(0,D.jsx)(`div`,{style:{fontSize:`var(--text-sm)`,fontWeight:600,color:`var(--foreground)`},children:`Immediate Circuit-Breaker Rollback`}),(0,D.jsx)(`div`,{style:{fontSize:`var(--text-xs)`,color:`var(--muted-foreground)`,marginTop:2},children:`Instantly revert to prior green build if P99 latency breaches 100ms.`})]}),(0,D.jsx)(rr,{checked:u,onCheckedChange:d})]})]})}),(0,D.jsxs)(nt,{children:[(0,D.jsxs)(`span`,{style:{fontSize:`var(--text-3xs)`,color:`var(--muted-foreground)`},children:[`Shortcut: `,(0,D.jsx)(ur,{children:`Ctrl`}),` + `,(0,D.jsx)(ur,{children:`S`}),` to persist`]}),(0,D.jsxs)(`div`,{className:`row-xs`,style:{marginLeft:`auto`},children:[(0,D.jsx)(`button`,{className:`button ghost`,children:`Discard`}),(0,D.jsxs)(`button`,{className:`button primary`,onClick:()=>{a(!0),p(()=>a(!1),2500)},children:[(0,D.jsx)(j,{name:i?`check`:`sparkles`,size:14}),i?`Saved Successfully`:`Save Changes`]})]})]})]})]})}function fr({className:e,...t}){return(0,D.jsx)(`div`,{className:`ui-table-container`,children:(0,D.jsx)(`table`,{className:O(`ui-table`,e),...t})})}function pr({className:e,...t}){return(0,D.jsx)(`thead`,{className:O(e),...t})}function mr({className:e,...t}){return(0,D.jsx)(`tbody`,{className:O(e),...t})}function hr({className:e,...t}){return(0,D.jsx)(`tr`,{className:O(e),...t})}function gr({className:e,...t}){return(0,D.jsx)(`th`,{className:O(e),...t})}function _r({className:e,...t}){return(0,D.jsx)(`td`,{className:O(e),...t})}function vr({className:e,...t}){return(0,D.jsx)(`div`,{className:O(`empty-state`,e),...t})}function yr({children:e,className:t}){return(0,D.jsx)(`div`,{className:O(`empty-state-icon`,t),children:e})}function br({className:e,children:t,...n}){return(0,D.jsx)(`h3`,{className:O(e),style:{margin:`0 0 var(--space-2)`,fontSize:`var(--text-lg)`,fontWeight:700,color:`var(--foreground)`,letterSpacing:`-0.02em`},...n,children:t})}function xr({className:e,...t}){return(0,D.jsx)(`p`,{className:O(e),style:{margin:`0 0 var(--space-5)`,fontSize:`var(--text-sm)`,color:`var(--muted-foreground)`,maxWidth:`420px`,lineHeight:1.6},...t})}function Sr({className:e,...t}){return(0,D.jsx)(`div`,{className:O(`row-sm`,e),...t})}var Cr=[{id:`1`,name:`api-gateway`,region:`us-east-1`,status:`healthy`,latency:`12ms`,memory:`128 MB`,instances:8},{id:`2`,name:`vector-indexer`,region:`eu-central-1`,status:`healthy`,latency:`34ms`,memory:`890 MB`,instances:4},{id:`3`,name:`model-inference`,region:`us-west-2`,status:`scaling`,latency:`78ms`,memory:`4.2 GB`,instances:16},{id:`4`,name:`session-broker`,region:`us-east-1`,status:`healthy`,latency:`8ms`,memory:`64 MB`,instances:6},{id:`5`,name:`analytics-worker`,region:`ap-northeast-1`,status:`degraded`,latency:`142ms`,memory:`1.8 GB`,instances:2},{id:`6`,name:`audit-logger`,region:`eu-west-1`,status:`healthy`,latency:`19ms`,memory:`210 MB`,instances:3}];function wr(){let[e,t]=(0,_.useState)(``),[n,r]=(0,_.useState)(`all`),i=(0,_.useMemo)(()=>Cr.filter(t=>{let r=t.name.toLowerCase().includes(e.toLowerCase())||t.region.toLowerCase().includes(e.toLowerCase()),i=n===`all`||t.status===n;return r&&i}),[e,n]);return(0,D.jsxs)(`div`,{className:`stack-md`,children:[(0,D.jsxs)(`div`,{className:`flex-between`,style:{flexWrap:`wrap`,gap:`var(--space-3)`},children:[(0,D.jsxs)(`div`,{className:`icon-search-bar`,style:{maxWidth:320},children:[(0,D.jsx)(j,{name:`search`,size:15}),(0,D.jsx)(`input`,{type:`text`,placeholder:`Filter services or regions...`,value:e,onChange:e=>t(e.target.value),className:`icon-search-input`}),e&&(0,D.jsx)(`button`,{className:`icon-clear-btn`,onClick:()=>t(``),children:(0,D.jsx)(j,{name:`close`,size:13})})]}),(0,D.jsx)(`div`,{className:`row-xs`,children:[`all`,`healthy`,`scaling`,`degraded`].map(e=>(0,D.jsx)(`button`,{className:`button ${n===e?`secondary`:`ghost`}`,style:{padding:`var(--space-1) var(--space-3)`,fontSize:`var(--text-xs)`,textTransform:`capitalize`},onClick:()=>r(e),children:e},e))})]}),i.length>0?(0,D.jsxs)(fr,{children:[(0,D.jsx)(pr,{children:(0,D.jsxs)(hr,{children:[(0,D.jsx)(gr,{children:`Service Name`}),(0,D.jsx)(gr,{children:`Region`}),(0,D.jsx)(gr,{children:`Status`}),(0,D.jsx)(gr,{children:`P99 Latency`}),(0,D.jsx)(gr,{children:`Memory`}),(0,D.jsx)(gr,{children:`Nodes`})]})}),(0,D.jsx)(mr,{children:i.map(e=>(0,D.jsxs)(hr,{children:[(0,D.jsx)(_r,{style:{fontWeight:600},children:(0,D.jsxs)(`div`,{className:`row-xs`,style:{alignItems:`center`},children:[(0,D.jsx)(`span`,{style:{width:7,height:7,borderRadius:`50%`,background:e.status===`healthy`?`var(--chart-2)`:e.status===`scaling`?`var(--primary)`:`var(--destructive)`,boxShadow:`0 0 8px ${e.status===`healthy`?`var(--chart-2)`:e.status===`scaling`?`var(--primary)`:`var(--destructive)`}`}}),e.name]})}),(0,D.jsx)(_r,{children:(0,D.jsx)(ur,{children:e.region})}),(0,D.jsx)(_r,{children:(0,D.jsx)(rt,{variant:e.status===`healthy`?`positive`:e.status===`scaling`?`primary`:`destructive`,children:e.status})}),(0,D.jsx)(_r,{className:`mono`,style:{color:e.status===`degraded`?`var(--destructive)`:`var(--primary)`},children:e.latency}),(0,D.jsx)(_r,{className:`mono`,style:{color:`var(--muted-foreground)`},children:e.memory}),(0,D.jsx)(_r,{className:`mono`,style:{color:`var(--foreground)`},children:e.instances})]},e.id))})]}):(0,D.jsxs)(vr,{children:[(0,D.jsx)(yr,{children:(0,D.jsx)(j,{name:`search`,size:24})}),(0,D.jsx)(br,{children:`No matching services`}),(0,D.jsxs)(xr,{children:[`No active nodes or services match the current filter query "`,e,`".`]})]}),(0,D.jsxs)(`div`,{className:`flex-between muted`,style:{fontSize:`var(--text-3xs)`,padding:`0 var(--space-2)`},children:[(0,D.jsxs)(`span`,{children:[`Showing `,i.length,` of `,Cr.length,` deployed services`]}),(0,D.jsx)(`span`,{className:`mono`,children:`Synced live via cluster coordinator`})]})]})}var Tr=`a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])`;function Er(e,t){if(e.key!==`Tab`||!t)return;let n=Array.from(t.querySelectorAll(Tr));if(n.length===0){e.preventDefault(),t.focus();return}let r=n[0],i=n[n.length-1];if(!r||!i)return;let a=document.activeElement;e.shiftKey?(a===r||a===t)&&(e.preventDefault(),i.focus()):a===i&&(e.preventDefault(),r.focus())}function Dr(e,t){(0,_.useEffect)(()=>{if(!e)return;let n=document.activeElement,r=document.body.style.overflow;return document.body.style.overflow=`hidden`,t.current?.focus(),()=>{document.body.style.overflow=r,n&&document.contains(n)&&n.focus()}},[e,t])}var Or=(0,_.createContext)(null);function kr(){let e=(0,_.useContext)(Or);if(!e)throw Error(`Overlay components must be used within an (Dialog/Sheet)`);return e}var Ar={background:`none`,border:0,padding:0,font:`inherit`,color:`inherit`,cursor:`pointer`};function jr({next:e,setOpen:t,children:n,className:r,onClick:i,style:a,asChild:o=!1,...s}){let c=n=>{i?.(n),n.defaultPrevented||t(e)};if(o&&(0,_.isValidElement)(n)){let e=n,t={onClick:c};return r&&(t.className=O(e.props.className,r)),a&&(t.style={...e.props.style,...a}),(0,_.cloneElement)(e,t)}return(0,D.jsx)(`button`,{...s,type:`button`,className:r,style:{...Ar,...a},onClick:c,children:n})}function Mr({children:e,open:t,defaultOpen:n=!1,onOpenChange:r}){let[i,a]=(0,_.useState)(n),o=t!==void 0,s=o?t:i,[c,l]=(0,_.useState)(!1),[u,d]=(0,_.useState)(!1),f=(0,_.useId)(),p=(0,_.useId)(),m=(0,_.useCallback)(e=>{o||a(e),r?.(e)},[o,r]),h=(0,_.useCallback)(e=>l(e),[]),g=(0,_.useCallback)(e=>d(e),[]),v=(0,_.useMemo)(()=>({open:s,setOpen:m,titleId:f,descriptionId:p,hasTitle:c,hasDescription:u,registerTitle:h,registerDescription:g}),[s,m,f,p,c,u,h,g]);return(0,D.jsx)(Or.Provider,{value:v,children:e})}function Nr(e){let{setOpen:t}=kr();return(0,D.jsx)(jr,{...e,setOpen:t,next:!0})}function Pr({children:e,className:t,backdropClassName:n,panelClassName:r,closeButtonLabel:i}){let{open:a,setOpen:o,titleId:s,descriptionId:c,hasTitle:l,hasDescription:u}=kr(),d=(0,_.useRef)(null);return Dr(a,d),(0,_.useEffect)(()=>{if(!a)return;let e=e=>{e.key===`Escape`&&o(!1)};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[a,o]),a?(0,D.jsx)(`div`,{className:n,onClick:()=>o(!1),children:(0,D.jsxs)(`div`,{ref:d,role:`dialog`,"aria-modal":`true`,"aria-labelledby":l?s:void 0,"aria-describedby":u?c:void 0,tabIndex:-1,className:O(r,t),onKeyDown:e=>{Er(e,d.current)},onClick:e=>e.stopPropagation(),children:[(0,D.jsx)(`button`,{type:`button`,className:`dialog-close-btn`,onClick:()=>o(!1),"aria-label":i,children:`✕`}),e]})}):null}function Fr({className:e,style:t,...n}){return(0,D.jsx)(`div`,{className:O(`stack-xs`,e),style:t,...n})}function Ir({className:e,style:t,...n}){let{titleId:r,registerTitle:i}=kr();return(0,_.useEffect)(()=>(i(!0),()=>i(!1)),[i]),(0,D.jsx)(`h2`,{id:r,className:O(e),style:t,...n})}function Lr({className:e,style:t,...n}){let{descriptionId:r,registerDescription:i}=kr();return(0,_.useEffect)(()=>(i(!0),()=>i(!1)),[i]),(0,D.jsx)(`p`,{id:r,className:O(e),style:t,...n})}function Rr({className:e,style:t,...n}){return(0,D.jsx)(`div`,{className:O(`flex-between`,e),style:{paddingTop:`var(--space-4)`,borderTop:`1px solid var(--border)`,gap:`var(--space-3)`,...t},...n})}function zr(e){let{setOpen:t}=kr();return(0,D.jsx)(jr,{...e,setOpen:t,next:!1})}function Br(e){return(0,D.jsx)(Mr,{...e})}function Vr(e){return(0,D.jsx)(Nr,{...e})}function Hr({children:e,className:t}){return(0,D.jsx)(Pr,{backdropClassName:`dialog-backdrop`,panelClassName:`dialog-panel`,closeButtonLabel:`Close dialog`,className:t,children:e})}function Ur({className:e,style:t,...n}){let r={marginBottom:`var(--space-4)`,...t};return(0,D.jsx)(Fr,{className:e,style:r,...n})}function Wr({className:e,style:t,...n}){let r={margin:0,fontSize:`var(--text-xl)`,fontWeight:700,color:`var(--foreground)`,letterSpacing:`-0.03em`,...t};return(0,D.jsx)(Ir,{className:e,style:r,...n})}function Gr({className:e,style:t,...n}){let r={margin:0,fontSize:`var(--text-sm)`,color:`var(--muted-foreground)`,lineHeight:1.5,...t};return(0,D.jsx)(Lr,{className:e,style:r,...n})}function Kr({className:e,style:t,...n}){let r={marginTop:`var(--space-6)`,...t};return(0,D.jsx)(Rr,{className:e,style:r,...n})}function qr(e){return(0,D.jsx)(zr,{...e})}function Jr(){let[e,t]=(0,_.useState)(!1),[n,r]=(0,_.useState)(!0),[i,a]=(0,_.useState)(!1),[o,s]=(0,_.useState)(!1),[c,l]=(0,_.useState)(0),[u,d]=(0,_.useState)(!1),{schedule:f,clear:p}=nr(),{schedule:m}=nr();return(0,_.useEffect)(()=>{e||p()},[e,p]),(0,D.jsxs)(Br,{open:e,onOpenChange:t,children:[(0,D.jsx)(Vr,{asChild:!0,children:(0,D.jsxs)(`button`,{className:`button primary`,children:[(0,D.jsx)(j,{name:`sparkles`,size:15}),` Promote Release to Canary`]})}),(0,D.jsxs)(Hr,{children:[(0,D.jsxs)(Ur,{children:[(0,D.jsxs)(`div`,{className:`flex-between`,style:{marginBottom:`var(--space-2)`},children:[(0,D.jsx)(Wr,{children:`Canary Rollout: release-2026.09.12`}),(0,D.jsx)(rt,{variant:`primary`,children:`v2.4.0`})]}),(0,D.jsxs)(Gr,{children:[`Targeting production cluster `,(0,D.jsx)(`code`,{style:{color:`var(--primary)`,fontFamily:`var(--font-mono)`},children:`canary-prod-01`}),`.`]})]}),(0,D.jsx)(`div`,{className:`stack-md`,style:{margin:`var(--space-4) 0`},children:u?(0,D.jsxs)(ir,{variant:`positive`,children:[(0,D.jsx)(ar,{children:`Deployment Succeeded!`}),(0,D.jsx)(or,{children:`Build is now receiving live canary traffic. Telemetry reports 0 errors and 14ms latency.`})]}):(0,D.jsxs)(D.Fragment,{children:[(0,D.jsxs)(ir,{variant:`warning`,children:[(0,D.jsx)(ar,{children:`Canary Traffic Notice`}),(0,D.jsx)(or,{children:`This deployment will divert 10% of production ingress traffic to the new build.`})]}),(0,D.jsxs)(`div`,{className:`stack-sm`,style:{background:`var(--secondary)`,padding:`var(--space-4)`,borderRadius:`var(--radius-lg)`},children:[(0,D.jsxs)(`div`,{className:`flex-between`,children:[(0,D.jsx)(`span`,{style:{fontSize:`var(--text-xs)`,fontWeight:500},children:`Gradual Traffic Ingress (10% → 50% → 100%)`}),(0,D.jsx)(rr,{checked:n,onCheckedChange:r})]}),(0,D.jsxs)(`div`,{className:`flex-between`,style:{paddingTop:`var(--space-2)`,borderTop:`1px solid var(--border)`},children:[(0,D.jsx)(`span`,{style:{fontSize:`var(--text-xs)`,fontWeight:500},children:`Bypass Pre-Flight Synthetic Probes`}),(0,D.jsx)(rr,{checked:i,onCheckedChange:a})]})]}),o&&(0,D.jsxs)(`div`,{className:`stack-xs`,children:[(0,D.jsx)(ot,{value:c,label:`Applying Canary Weights...`}),(0,D.jsx)(`span`,{className:`mono muted`,style:{fontSize:`var(--text-3xs)`},children:`Streaming build manifests to regional edge nodes...`})]})]})}),(0,D.jsx)(Kr,{children:u?(0,D.jsxs)(`button`,{className:`button primary`,style:{width:`100%`},onClick:()=>{t(!1),m(()=>{s(!1),l(0),d(!1)},300)},children:[(0,D.jsx)(j,{name:`check`,size:14}),` Done`]}):(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(qr,{asChild:!0,children:(0,D.jsx)(`button`,{className:`button secondary`,disabled:o,children:`Cancel`})}),(0,D.jsxs)(`button`,{className:`button primary`,onClick:()=>{s(!0),l(15),f(()=>l(45),500),f(()=>l(85),1e3),f(()=>{l(100),s(!1),d(!0)},1500)},disabled:o,children:[(0,D.jsx)(j,{name:o?`refresh`:`arrow-right`,size:14}),o?`Deploying...`:`Confirm Rollout`]})]})})]})]})}function Yr({activePattern:e,onPatternChange:t}={}){let[n,r]=(0,_.useState)(`metrics`),i=e??n,a=e=>{r(e),t?.(e)};return(0,D.jsxs)(`div`,{className:`stack-lg`,children:[(0,D.jsxs)(`div`,{className:`flex-between`,style:{flexWrap:`wrap`,gap:`var(--space-3)`},children:[(0,D.jsx)(`div`,{className:`segmented`,children:Xe.map(e=>(0,D.jsxs)(`button`,{type:`button`,className:i===e.id?`selected`:``,"aria-pressed":i===e.id,onClick:()=>a(e.id),children:[(0,D.jsx)(j,{name:e.icon,size:15}),(0,D.jsx)(`span`,{children:e.label})]},e.id))}),(0,D.jsxs)(`div`,{className:`row-xs`,style:{alignItems:`center`},children:[(0,D.jsx)(rt,{variant:`outline`,children:`Interactive Component`}),(0,D.jsx)(rt,{variant:`primary`,children:`Composable`})]})]}),(0,D.jsxs)(`div`,{className:`surface-card`,style:{padding:`var(--space-6)`,borderRadius:`var(--radius-xl)`},children:[i===`metrics`&&(0,D.jsx)(tr,{}),i===`settings`&&(0,D.jsx)(dr,{}),i===`table`&&(0,D.jsx)(wr,{}),i===`deploy`&&(0,D.jsx)(`div`,{className:`stack-md`,style:{maxWidth:640,margin:`0 auto`,textAlign:`center`,padding:`var(--space-6) 0`},children:(0,D.jsxs)(Ze,{children:[(0,D.jsxs)(Qe,{children:[(0,D.jsx)($e,{children:`Canary Deployment Orchestrator`}),(0,D.jsx)(et,{children:`A complete interactive modal flow demonstrating Dialog, Alert, Switch, and Progress components.`})]}),(0,D.jsx)(tt,{children:(0,D.jsx)(`div`,{style:{padding:`var(--space-6) 0`},children:(0,D.jsx)(Jr,{})})})]})})]})]})}function Xr(){let[e,t]=je(),n=e.get(`pattern`),r=Xe.some(e=>e.id===n)?n:`metrics`;return(0,D.jsx)(Yr,{activePattern:r,onPatternChange:e=>{t(t=>{let n=new URLSearchParams(t);return n.set(`pattern`,e),n},{replace:!0})}})}function Zr({variant:e=`secondary`,className:t=``,children:n,...r}){return(0,D.jsx)(`button`,{className:`button ${e} ${t}`.trim(),...r,children:n})}function Qr({href:e,variant:t=`secondary`,className:n=``,children:r}){return(0,D.jsx)(Me,{href:e,className:`button ${t} ${n}`.trim(),children:r})}var $r=(0,_.createContext)(null);function ei(){let e=(0,_.useContext)($r);if(!e)throw Error(`Tabs components must be used within `);return e}function ti(e,t,n){return`${e}-${t}-${n.replace(/[^A-Za-z0-9_-]+/g,`-`)}`}function ni({defaultValue:e=``,value:t,onValueChange:n,children:r,className:i}){let[a,o]=(0,_.useState)(e),s=(0,_.useId)(),c=t!==void 0,l=c?t:a;return(0,D.jsx)($r.Provider,{value:{value:l,setValue:e=>{c||o(e),n?.(e)},baseId:s},children:(0,D.jsx)(`div`,{className:O(`ui-tabs-root`,i),children:r})})}var ri=new Set([`ArrowRight`,`ArrowLeft`,`Home`,`End`]);function ii({className:e,onKeyDown:t,...n}){let{setValue:r}=ei();return(0,D.jsx)(`div`,{className:O(`ui-tabs-list`,e),role:`tablist`,"aria-orientation":`horizontal`,onKeyDown:e=>{if(t?.(e),e.defaultPrevented||!ri.has(e.key))return;let n=Array.from(e.currentTarget.querySelectorAll(`[role="tab"]:not([disabled])`));if(n.length===0)return;let i=n.indexOf(document.activeElement),a=n.findIndex(e=>e.getAttribute(`aria-selected`)===`true`),o=i>=0?i:a;if(o<0)return;let s;switch(e.key){case`ArrowRight`:s=(o+1)%n.length;break;case`ArrowLeft`:s=(o-1+n.length)%n.length;break;case`Home`:s=0;break;default:s=n.length-1}let c=n[s];if(c===void 0)return;let l=c.dataset.value;l!==void 0&&(e.preventDefault(),c.focus(),r(l))},...n})}function ai({value:e,className:t,children:n,...r}){let{value:i,setValue:a,baseId:o}=ei(),s=i===e;return(0,D.jsx)(`button`,{type:`button`,id:ti(o,`trigger`,e),role:`tab`,"aria-selected":s,"aria-controls":ti(o,`content`,e),tabIndex:s?0:-1,"data-value":e,className:O(`ui-tabs-trigger`,s&&`active`,t),onClick:()=>a(e),...r,children:n})}function oi({value:e,className:t,children:n,...r}){let{value:i,baseId:a}=ei(),o=i===e;return(0,D.jsx)(`div`,{id:ti(a,`content`,e),role:`tabpanel`,"aria-labelledby":ti(a,`trigger`,e),tabIndex:0,hidden:!o,className:O(`ui-tabs-content`,t),...r,children:n})}function si({variant:e=`text`,width:t,height:n,className:r,style:i,...a}){return(0,D.jsx)(`div`,{className:O(`skeleton`,e===`circle`?`skeleton-circle`:e===`rect`?`skeleton-rect`:`skeleton-text`,r),style:{width:t===void 0?void 0:typeof t==`number`?`${t}px`:t,height:n===void 0?void 0:typeof n==`number`?`${n}px`:n,...i},"aria-hidden":`true`,...a})}var ci={xs:`var(--space-5)`,sm:`var(--space-6)`,md:`var(--space-7)`,lg:`var(--space-9)`},li={xs:`var(--text-3xs)`,sm:`var(--text-2xs)`,md:`var(--text-xs)`,lg:`var(--text-base)`},ui={xs:`var(--space-1)`,sm:`var(--space-1)`,md:`var(--space-2)`,lg:`var(--space-2)`},di={online:`var(--chart-2)`,away:`var(--chart-3)`,offline:`var(--muted-foreground)`};function fi(e){return e.trim().split(/\s+/).filter(Boolean).slice(0,2).map(e=>e.charAt(0)).join(``).toUpperCase()||`?`}function pi({name:e,src:t,size:n=`md`,status:r,className:i}){let a=ci[n];return(0,D.jsxs)(`span`,{className:O(`flex-center`,i),role:t?void 0:`img`,"aria-label":t?void 0:e||`Avatar`,style:{position:`relative`,flexShrink:0,width:a,height:a,borderRadius:`var(--radius-pill)`,background:`color-mix(in srgb, var(--primary) 16%, var(--background))`,color:`var(--primary)`,fontFamily:`var(--font-sans)`,fontSize:li[n],fontWeight:700,lineHeight:1,letterSpacing:`0.02em`,userSelect:`none`},children:[t?(0,D.jsx)(`img`,{src:t,alt:e,style:{display:`block`,width:`100%`,height:`100%`,objectFit:`cover`,borderRadius:`var(--radius-pill)`}}):(0,D.jsx)(`span`,{"aria-hidden":`true`,children:fi(e)}),r&&(0,D.jsx)(`span`,{"aria-hidden":`true`,style:{position:`absolute`,right:0,bottom:0,boxSizing:`content-box`,width:ui[n],height:ui[n],borderRadius:`var(--radius-pill)`,background:di[r],border:`2px solid var(--background)`}})]})}var mi={xs:{width:`var(--space-3)`,height:`var(--space-3)`,borderWidth:`1px`},sm:{width:`var(--space-4)`,height:`var(--space-4)`,borderWidth:`2px`},md:{width:`var(--space-6)`,height:`var(--space-6)`,borderWidth:`2px`},lg:{width:`var(--space-8)`,height:`var(--space-8)`,borderWidth:`3px`}},hi={position:`absolute`,width:`1px`,height:`1px`,padding:0,margin:`-1px`,overflow:`hidden`,clip:`rect(0 0 0 0)`,whiteSpace:`nowrap`,borderWidth:0};function gi({size:e=`md`,label:t,className:n}){return(0,D.jsxs)(`div`,{role:`status`,"aria-live":`polite`,className:O(`ui-spinner`,`ui-spinner-${e}`,n),children:[(0,D.jsx)(`span`,{"aria-hidden":`true`,style:{display:`inline-block`,boxSizing:`border-box`,borderStyle:`solid`,borderColor:`var(--border)`,borderTopColor:`var(--primary)`,borderRadius:`50%`,animation:`spin 0.8s linear infinite`,...mi[e]}}),t?(0,D.jsx)(`span`,{className:`visually-hidden`,style:hi,children:t}):null]})}function _i({examples:e,tabs:t,filter:n=``,activeTab:r,onTabChange:i}){let a=e.filter(e=>`${e.name} ${e.label}`.toLowerCase().includes(n.toLowerCase()));return(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(`div`,{className:`tabs`,children:t.map(e=>(0,D.jsx)(`button`,{className:e===r?`tab active`:`tab`,onClick:()=>i?.(e),children:e},e))}),(0,D.jsxs)(`div`,{className:`showcase`,children:[(0,D.jsxs)(`div`,{className:`showcase-head`,children:[(0,D.jsx)(`span`,{className:`eyebrow`,children:`Interactive states`}),(0,D.jsx)(`span`,{className:`mono muted`,children:`button.tsx`})]}),(0,D.jsx)(`div`,{className:`button-matrix`,children:a.map(e=>(0,D.jsxs)(`div`,{className:`button-row`,children:[(0,D.jsx)(`span`,{className:`row-label`,children:e.name}),(0,D.jsx)(Zr,{variant:e.variant,children:e.label}),(0,D.jsx)(Zr,{variant:e.variant,className:`hover-state`,children:e.label}),(0,D.jsx)(Zr,{variant:e.variant,className:`icon-only`,"aria-label":`${e.name} icon button`,children:(0,D.jsx)(j,{name:`copy`,size:15})}),(0,D.jsxs)(Zr,{variant:e.variant,className:`loading`,children:[(0,D.jsx)(gi,{size:`xs`}),`Loading`]})]},e.name))}),(0,D.jsxs)(`div`,{className:`showcase-foot`,children:[(0,D.jsx)(`span`,{className:`muted`,children:`Density`}),(0,D.jsxs)(`button`,{className:`density active`,children:[`Compact `,(0,D.jsx)(`span`,{children:`32px`})]}),(0,D.jsxs)(`button`,{className:`density`,children:[`Default `,(0,D.jsx)(`span`,{children:`40px`})]}),(0,D.jsxs)(`span`,{className:`foot-check`,children:[(0,D.jsx)(j,{name:`check`,size:14}),` Keyboard ready`]})]})]})]})}var vi=[`Preview`,`API reference`,`Usage`],yi=[{name:`Primary`,label:`Deploy changes`,variant:`primary`},{name:`Secondary`,label:`View activity`,variant:`secondary`},{name:`Destructive`,label:`Delete project`,variant:`danger`},{name:`Ghost`,label:`Cancel`,variant:`ghost`}],bi=[{name:`Primary`,color:`var(--primary)`,value:`lab(89.9% -47.9 -15.7)`},{name:`Background`,color:`var(--background)`,value:`lab(0% 0 0)`},{name:`Card`,color:`var(--card)`,value:`lab(0.9% 0 0)`},{name:`Destructive`,color:`var(--destructive)`,value:`lab(54.6% 71.7 50.9)`},{name:`Chart 1`,color:`var(--chart-1)`,value:`lab(89.9% -47.9 -15.7)`},{name:`Chart 2`,color:`var(--chart-2)`,value:`lab(67.0% -58.3 19.5)`},{name:`Chart 3`,color:`var(--chart-3)`,value:`lab(72.7% 31.9 97.9)`},{name:`Chart 4`,color:`var(--chart-4)`,value:`lab(52.0% 66.1 -78.2)`}];function xi(){let[e,t]=(0,_.useState)(`Preview`);return(0,D.jsx)(_i,{examples:yi,tabs:vi,activeTab:e,onTabChange:t})}var Si=er,Ci=[`All`,`Navigation`,`Interface`,`System`,`Status`];function wi(){let[e,t]=(0,_.useState)(`All`),[n,r]=(0,_.useState)(``),[i,a]=(0,_.useState)(20),[o,s]=(0,_.useState)(null),{schedule:c}=nr(),l=(0,_.useMemo)(()=>Si.filter(t=>{let r=e===`All`||t.category===e,i=t.name.toLowerCase().includes(n.toLowerCase())||t.pascalName.toLowerCase().includes(n.toLowerCase());return r&&i}),[e,n]),u=e=>{let t=`<${e.pascalName} size={${i}} />`;navigator.clipboard?.writeText(t),s(e.name),c(()=>s(null),2e3)};return(0,D.jsxs)(`div`,{className:`icon-matrix-container`,children:[(0,D.jsxs)(`div`,{className:`icon-matrix-header`,children:[(0,D.jsxs)(`div`,{className:`icon-search-bar`,children:[(0,D.jsx)(j,{name:`search`,size:16}),(0,D.jsx)(`input`,{type:`text`,placeholder:`Search icons (e.g. arrow, check, sparkles)...`,"aria-label":`Search icons`,value:n,onChange:e=>r(e.target.value),className:`icon-search-input`}),n&&(0,D.jsx)(`button`,{className:`icon-clear-btn`,onClick:()=>r(``),children:(0,D.jsx)(j,{name:`close`,size:14})})]}),(0,D.jsxs)(`div`,{className:`icon-size-picker`,children:[(0,D.jsx)(`span`,{className:`mono muted`,children:`Size:`}),[16,20,24].map(e=>(0,D.jsxs)(`button`,{className:`icon-size-btn ${i===e?`active`:``}`,onClick:()=>a(e),children:[e,`px`]},e))]})]}),(0,D.jsx)(`div`,{className:`icon-category-tabs`,children:Ci.map(n=>(0,D.jsxs)(`button`,{className:`icon-cat-btn ${e===n?`active`:``}`,onClick:()=>t(n),children:[n,(0,D.jsx)(`span`,{className:`icon-cat-count`,children:n===`All`?Si.length:Si.filter(e=>e.category===n).length})]},n))}),(0,D.jsx)(`div`,{className:`icon-grid`,children:l.map(e=>{let t=o===e.name;return(0,D.jsxs)(`button`,{className:`icon-tile ${t?`copied`:``}`,onClick:()=>u(e),title:`Click to copy <${e.pascalName} />`,children:[(0,D.jsx)(`div`,{className:`icon-tile-glyph`,children:t?(0,D.jsx)(j,{name:`check`,size:i,className:`accent`}):(0,D.jsx)(e.component,{size:i,strokeWidth:1.8})}),(0,D.jsx)(`span`,{className:`icon-tile-name`,children:e.name}),(0,D.jsx)(`span`,{className:`icon-tile-action`,children:t?`Copied!`:(0,D.jsx)(ur,{children:`Copy`})})]},e.name)})}),l.length===0&&(0,D.jsxs)(`div`,{className:`empty-state`,children:[(0,D.jsx)(`div`,{className:`empty-state-icon`,children:(0,D.jsx)(j,{name:`search`,size:24})}),(0,D.jsx)(`h4`,{style:{margin:`0 0 var(--space-2)`},children:`No icons found`}),(0,D.jsxs)(`p`,{className:`muted`,style:{margin:0,fontSize:`var(--text-xs)`},children:[`No icon matches "`,n,`". You can use any of Lucide's 1,400+ icons directly via`,` `,(0,D.jsx)(`code`,{children:`lucide-react`}),`.`]})]}),(0,D.jsx)(`div`,{className:`icon-matrix-footer`,children:(0,D.jsxs)(`div`,{className:`icon-footer-pill`,children:[(0,D.jsx)(rt,{variant:`outline`,children:`lucide-react`}),(0,D.jsxs)(`span`,{children:[`Over 1,400+ SVG icons available. Fully tree-shaken and styled via `,(0,D.jsx)(`code`,{children:`currentColor`}),`.`]})]})})]})}function Ti(){return(0,D.jsx)(wi,{})}function Ei({tokens:e,onCopy:t}){return(0,D.jsx)(`div`,{className:`color-grid`,children:e.map(e=>(0,D.jsxs)(`div`,{className:`color-card`,children:[(0,D.jsx)(`div`,{className:`swatch`,style:{background:e.color}}),(0,D.jsxs)(`div`,{children:[(0,D.jsx)(`strong`,{children:e.name}),(0,D.jsx)(`span`,{className:`mono`,children:e.value})]}),(0,D.jsx)(`button`,{className:`copy-icon`,onClick:()=>t?.(e.value),"aria-label":`Copy ${e.name} token`,children:(0,D.jsx)(j,{name:`copy`,size:14})})]},e.name))})}var Di=`pnpm add @northstar/ui @northstar/tokens`;function Oi(){navigator.clipboard?.writeText(Di)}function ki(){return(0,D.jsx)(Ei,{tokens:bi,onCopy:Oi})}var Ai=[{token:`--text-hero`,rem:`clamp(2.625rem, 5vw, 4.375rem)`,px:`42→70px`,role:`Display / Hero Title`,sample:`Calm, capable design.`},{token:`--text-2xl`,rem:`1.75rem`,px:`28px`,role:`Section Headlines`,sample:`Structured for AI Uniformity`},{token:`--text-xl`,rem:`1.5625rem`,px:`25px`,role:`Sub-headlines & Major Cards`,sample:`Fast, token-enforced iteration`},{token:`--text-lg`,rem:`1.3125rem`,px:`21px`,role:`Card Titles & Dialog Heads`,sample:`Zero hardcoded pixel values`},{token:`--text-base`,rem:`1rem`,px:`16px`,role:`Lede Copy & Lead Sentences`,sample:`The baseline font size scaled by --root-font-size.`},{token:`--text-md`,rem:`0.875rem`,px:`14px`,role:`Longform Body Text`,sample:`Engineered for dense technical dashboards and documentation.`},{token:`--text-sm`,rem:`0.75rem`,px:`12px`,role:`Form Controls & Descriptions`,sample:`Input labels, table rows, and secondary details.`},{token:`--text-xs`,rem:`0.6875rem`,px:`11px`,role:`Action Buttons & Nav Items`,sample:`Action buttons, status badges, and sidebar navigation.`},{token:`--text-2xs`,rem:`0.625rem`,px:`10px`,role:`Eyebrows & Section Indices`,sample:`METADATA LABELS & CATEGORY EYEBROWS`},{token:`--text-3xs`,rem:`0.5625rem`,px:`9px`,role:`Micro Badges & Mono Tags`,sample:`01 / APPLICATION PATTERNS`}];function ji(){return(0,D.jsxs)(`div`,{className:`stack-lg`,children:[(0,D.jsxs)(`div`,{className:`grid-2`,children:[(0,D.jsxs)(Ze,{children:[(0,D.jsxs)(Qe,{children:[(0,D.jsxs)(`div`,{className:`flex-between`,children:[(0,D.jsx)($e,{children:`Sans-Serif Primary Family`}),(0,D.jsx)(rt,{variant:`primary`,children:`Manrope`})]}),(0,D.jsx)(et,{children:`Modern geometric grotesque optimized for high-density UI and numeral legibility.`})]}),(0,D.jsx)(tt,{children:(0,D.jsxs)(`div`,{style:{fontFamily:`var(--font-sans)`,fontSize:`var(--text-lg)`,fontWeight:600},children:[`ABCDEFGHIJKLMNOPQRSTUVWXYZ`,(0,D.jsx)(`br`,{}),`abcdefghijklmnopqrstuvwxyz`,(0,D.jsx)(`br`,{}),`0123456789 & @ # % $ /`]})})]}),(0,D.jsxs)(Ze,{children:[(0,D.jsxs)(Qe,{children:[(0,D.jsxs)(`div`,{className:`flex-between`,children:[(0,D.jsx)($e,{children:`Monospace Code Family`}),(0,D.jsx)(rt,{variant:`secondary`,children:`DM Mono`})]}),(0,D.jsx)(et,{children:`Tabular numerals and proportional spacing for code blocks, tokens, and telemetry.`})]}),(0,D.jsx)(tt,{children:(0,D.jsxs)(`div`,{className:`mono`,style:{fontSize:`var(--text-md)`,color:`var(--primary)`},children:[`const system = 'northstar'`,(0,D.jsx)(`br`,{}),`latency: 14.2ms | memory: 128MB`,(0,D.jsx)(`br`,{}),`0123456789 ()=>{}[]`]})})]})]}),(0,D.jsxs)(Ze,{children:[(0,D.jsxs)(Qe,{children:[(0,D.jsxs)(`div`,{className:`flex-between`,children:[(0,D.jsx)($e,{children:`Modular Rem-Based Type Scale`}),(0,D.jsxs)(`div`,{className:`row-xs`,children:[(0,D.jsx)(`span`,{className:`mono muted`,style:{fontSize:`var(--text-3xs)`},children:`Root:`}),(0,D.jsx)(ur,{children:`112%`})]})]}),(0,D.jsxs)(et,{children:[`Scales uniformly via `,(0,D.jsx)(`code`,{children:`--root-font-size`}),`. Built on a 9px → 70px responsive rhythm.`]})]}),(0,D.jsx)(tt,{children:(0,D.jsx)(`div`,{className:`stack-md`,children:Ai.map(e=>(0,D.jsxs)(`div`,{style:{display:`grid`,gridTemplateColumns:`160px 80px 1fr`,alignItems:`baseline`,gap:`var(--space-4)`,padding:`var(--space-3) 0`,borderBottom:`1px solid var(--border)`},children:[(0,D.jsxs)(`div`,{children:[(0,D.jsx)(`code`,{style:{fontSize:`var(--text-xs)`,color:`var(--primary)`,fontFamily:`var(--font-mono)`},children:e.token}),(0,D.jsx)(`div`,{style:{fontSize:`var(--text-3xs)`,color:`var(--muted-foreground)`},children:e.role})]}),(0,D.jsx)(`div`,{className:`mono muted`,style:{fontSize:`var(--text-3xs)`},children:e.px}),(0,D.jsx)(`div`,{style:{fontSize:`var(${e.token})`,fontWeight:e.token.includes(`hero`)||e.token.includes(`2xl`)?800:500,lineHeight:1.25,overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`},children:e.sample})]},e.token))})})]})]})}function Mi(){return(0,D.jsx)(ji,{})}function Ni({label:e,hint:t,children:n,readOnlyLabel:r}){return(0,D.jsxs)(`label`,{className:`field`,children:[(0,D.jsxs)(`span`,{children:[e,r&&(0,D.jsx)(`em`,{children:r})]}),n,(0,D.jsx)(`small`,{children:t})]})}function Pi(e){return(0,D.jsx)(`input`,{...e})}function Fi(){let[e,t]=(0,_.useState)(!1);return(0,D.jsxs)(`div`,{className:`forms-grid`,children:[(0,D.jsx)(Ni,{label:`Project name`,hint:`Use a memorable name for your workspace.`,children:(0,D.jsx)(Pi,{defaultValue:`Northstar Console`})}),(0,D.jsx)(Ni,{label:`API key`,readOnlyLabel:`read only`,hint:`Stored securely in your environment.`,children:(0,D.jsxs)(`div`,{className:`input-with-action`,children:[(0,D.jsx)(Pi,{type:e?`text`:`password`,defaultValue:`nsk_live_8f2a1d90`,readOnly:!0}),(0,D.jsx)(`button`,{onClick:()=>t(!e),"aria-label":`Show API key`,children:(0,D.jsx)(j,{name:`eye`,size:16})})]})}),(0,D.jsxs)(`label`,{className:`toggle-field`,children:[(0,D.jsxs)(`span`,{children:[(0,D.jsx)(`b`,{children:`Enable notifications`}),(0,D.jsx)(`small`,{children:`Get updates about deployments and incidents.`})]}),(0,D.jsx)(rr,{defaultChecked:!0,"aria-label":`Toggle notifications`})]}),(0,D.jsxs)(`div`,{className:`toggle-field`,children:[(0,D.jsxs)(`span`,{children:[(0,D.jsx)(`b`,{children:`Primitives in action`}),(0,D.jsx)(`small`,{children:`Spinner, Avatar and Switch — token-driven, theme-aware components/ui primitives.`})]}),(0,D.jsxs)(`span`,{className:`row-md`,children:[(0,D.jsx)(pi,{name:`Mats Tornberg`,size:`sm`,status:`online`}),(0,D.jsx)(pi,{name:`Grace Hopper`,size:`sm`}),(0,D.jsx)(gi,{size:`sm`,label:`Loading session`})]})]}),(0,D.jsxs)(`div`,{className:`toggle-field`,children:[(0,D.jsxs)(`span`,{children:[(0,D.jsx)(`b`,{children:`Tabs primitive`}),(0,D.jsx)(`small`,{children:`Roving tabindex, arrow-key navigation, aria-selected wiring — try the keyboard.`})]}),(0,D.jsxs)(ni,{defaultValue:`preview`,className:`stack-xs`,children:[(0,D.jsxs)(ii,{children:[(0,D.jsx)(ai,{value:`preview`,children:`Preview`}),(0,D.jsx)(ai,{value:`code`,children:`Code`})]}),(0,D.jsx)(oi,{value:`preview`,children:(0,D.jsx)(`small`,{children:`Token-driven preview pane.`})}),(0,D.jsx)(oi,{value:`code`,children:(0,D.jsxs)(`small`,{children:[`import `,`{ Tabs }`,` from components/ui`]})})]})]})]})}var Ii=`pnpm add @northstar/ui @northstar/tokens`,Li=[[`pink`,`import`],[`plain`,` { Button } `],[`pink`,`from`],[`green`,` '@northstar/ui'`],[`plain`,` export function `],[`blue`,`DeployAction`],[`plain`,`() { return ( `],[`plain`,` ) }`]];function Ri(){let[e,t]=(0,_.useState)(!1),{schedule:n}=nr();return(0,D.jsxs)(`div`,{className:`code-card`,children:[(0,D.jsxs)(`div`,{className:`code-head`,children:[(0,D.jsx)(`span`,{className:`mono muted`,children:`button.tsx`}),(0,D.jsxs)(`button`,{className:`copy-button`,onClick:()=>{navigator.clipboard?.writeText(Ii),t(!0),n(()=>t(!1),1600)},children:[(0,D.jsx)(j,{name:e?`check`:`copy`,size:14}),e?`Copied`:`Copy code`]})]}),(0,D.jsx)(`pre`,{children:(0,D.jsx)(`code`,{children:Li.map(([e,t],n)=>e===`plain`?(0,D.jsx)(`span`,{children:t},n):(0,D.jsx)(`span`,{className:e,children:t},n))})})]})}function zi(){return(0,D.jsx)(Ri,{})}function Bi({title:e=`Quiet power, shipped weekly.`,kicker:t=`NORTHSTAR / RELEASE NOTES`}){return(0,D.jsxs)(`div`,{className:`markdown-card`,children:[(0,D.jsxs)(`div`,{className:`markdown-toolbar`,children:[(0,D.jsx)(`span`,{className:`eyebrow`,children:`Preview`}),(0,D.jsx)(`span`,{className:`mono muted`,children:`release-notes.md`})]}),(0,D.jsxs)(`article`,{className:`markdown-body`,children:[(0,D.jsx)(`span`,{className:`md-kicker`,children:t}),(0,D.jsx)(`h3`,{children:e}),(0,D.jsx)(`p`,{children:`Our components help teams move quickly without making the interface feel rushed.`}),(0,D.jsxs)(`div`,{className:`md-callout`,children:[(0,D.jsx)(`span`,{className:`callout-mark`,children:`✦`}),(0,D.jsxs)(`p`,{children:[(0,D.jsx)(`strong`,{children:`New in 0.8.2`}),(0,D.jsx)(`br`,{}),`Button focus rings now respect your theme while keeping a dependable contrast ratio.`]})]}),(0,D.jsx)(`h4`,{children:`What changed`}),(0,D.jsxs)(`ul`,{children:[(0,D.jsxs)(`li`,{children:[`Added `,(0,D.jsx)(`code`,{children:`accent-subtle`}),` surface token`]}),(0,D.jsx)(`li`,{children:`Improved keyboard navigation in menus`}),(0,D.jsx)(`li`,{children:`Reduced layout shift during loading states`})]}),(0,D.jsxs)(`div`,{className:`md-table`,children:[(0,D.jsxs)(`div`,{children:[(0,D.jsx)(`span`,{children:`Token`}),(0,D.jsx)(`span`,{children:`Value`}),(0,D.jsx)(`span`,{children:`Role`})]}),(0,D.jsxs)(`div`,{children:[(0,D.jsx)(`code`,{children:`surface-1`}),(0,D.jsx)(`span`,{children:`#111118`}),(0,D.jsx)(`span`,{children:`Elevated panels`})]}),(0,D.jsxs)(`div`,{children:[(0,D.jsx)(`code`,{children:`accent`}),(0,D.jsx)(`span`,{className:`md-accent`,children:`#A69BFF`}),(0,D.jsx)(`span`,{children:`Interactive focus`})]})]})]})]})}function Vi(){return(0,D.jsx)(Bi,{})}var Hi=[1,2,3,4,5,6,7,8];function Ui({fileName:e=`theme.ts`,language:t=`TypeScript`}){return(0,D.jsxs)(`div`,{className:`editor-card`,children:[(0,D.jsxs)(`div`,{className:`editor-tabs`,children:[(0,D.jsx)(`span`,{className:`editor-dot`}),(0,D.jsx)(`span`,{className:`editor-tab active`,children:e}),(0,D.jsx)(`span`,{className:`editor-tab`,children:`tokens.css`}),(0,D.jsx)(`span`,{className:`editor-actions`,children:`● ● ●`})]}),(0,D.jsxs)(`div`,{className:`editor-body`,children:[(0,D.jsx)(`div`,{className:`line-numbers`,children:Hi.map(e=>(0,D.jsxs)(`span`,{children:[e,(0,D.jsx)(`br`,{})]},e))}),(0,D.jsx)(`pre`,{children:(0,D.jsxs)(`code`,{children:[(0,D.jsx)(`span`,{className:`cm-comment`,children:`// A calm editor for focused work`}),` `,(0,D.jsx)(`span`,{className:`cm-keyword`,children:`export const`}),` `,(0,D.jsx)(`span`,{className:`cm-variable`,children:`theme`}),` = `,`{`,` `,` `,(0,D.jsx)(`span`,{className:`cm-property`,children:`name`}),`: `,(0,D.jsx)(`span`,{className:`cm-string`,children:`'northstar-dark'`}),`,`,` `,` `,(0,D.jsx)(`span`,{className:`cm-property`,children:`colors`}),`: `,`{`,` `,` `,(0,D.jsx)(`span`,{className:`cm-property`,children:`accent`}),`: `,(0,D.jsx)(`span`,{className:`cm-string`,children:`'#a69bff'`}),`,`,` `,` `,(0,D.jsx)(`span`,{className:`cm-property`,children:`keyword`}),`: `,(0,D.jsx)(`span`,{className:`cm-string`,children:`'#e58bff'`}),`,`,` `,` `,(0,D.jsx)(`span`,{className:`cm-property`,children:`comment`}),`: `,(0,D.jsx)(`span`,{className:`cm-string`,children:`'#666572'`}),` `,` `,`}`,` `,`}`]})})]}),(0,D.jsxs)(`div`,{className:`editor-status`,children:[(0,D.jsx)(`span`,{children:`Ln 4, Col 18`}),(0,D.jsxs)(`span`,{children:[t,` · UTF-8`]}),(0,D.jsxs)(`span`,{className:`editor-ready`,children:[(0,D.jsx)(j,{name:`check`,size:12}),` No issues`]})]})]})}function Wi(){return(0,D.jsx)(Ui,{})}function Gi(e){let t=e??window.location.pathname+window.location.search;window.location.href=`/api/auth/login?returnTo=${encodeURIComponent(t)}`}function Ki(){let[e,t]=(0,_.useState)(`loading`),[n,r]=(0,_.useState)(null);return(0,_.useEffect)(()=>{let e=!0;return fetch(`/api/auth/session`).then(e=>e.ok?e.json():{authenticated:!1,user:null}).then(n=>{e&&(n.authenticated&&n.user?(r(n.user),t(`authenticated`)):(r(null),t(`anonymous`)))}).catch(()=>{e&&(r(null),t(`anonymous`))}),()=>{e=!1}},[]),{status:e,user:n,login:Gi,signOut:(0,_.useCallback)(async()=>{try{await fetch(`/api/auth/logout`,{method:`POST`})}catch{}r(null),t(`anonymous`)},[])}}var qi=class extends Error{status;code;constructor(e,t,n){super(n),this.name=`ApiError`,this.status=e,this.code=t}},Ji=``;async function Yi(e,t){let n;try{n=await fetch(`${Ji}${e}`,{...t,headers:{"Content-Type":`application/json`,...t?.headers}})}catch(e){throw new qi(0,`network`,`Could not reach the API (${e instanceof Error?e.message:String(e)}). Is the Go server running?`)}if(n.status===204)return;let r=await n.json().catch(()=>null);if(!n.ok){let e=r?.error;throw new qi(n.status,e?.code??`unknown`,e?.message??n.statusText)}return r}var Xi=Object.prototype.hasOwnProperty;function Zi(e,t){var n,r;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&Zi(e[r],t[r]););return r===-1}if(!n||typeof e==`object`){for(n in r=0,e)if(Xi.call(e,n)&&++r&&!Xi.call(t,n)||!(n in t)||!Zi(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}var Qi=new WeakMap,$i=()=>{},ea=Object,M=e=>e===void 0,N=e=>typeof e==`function`,ta=(e,t)=>({...e,...t}),na=e=>N(e.then),ra={},ia={},aa=`undefined`,oa=typeof window!=aa,sa=typeof document!=aa,ca=oa&&`Deno`in window,la=()=>oa&&typeof window.requestAnimationFrame!=aa,P=(e,t)=>{let n=Qi.get(e);return[()=>!M(t)&&e.get(t)||ra,r=>{if(!M(t)){let i=e.get(t);t in ia||(ia[t]=i),n[5](t,ta(i,r),i||ra)}},n[6],()=>!M(t)&&t in ia?ia[t]:!M(t)&&e.get(t)||ra]},F=!0,ua=()=>F,[da,fa]=oa&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[$i,$i],pa=()=>{let e=sa&&document.visibilityState;return M(e)||e!==`hidden`},ma=e=>(sa&&document.addEventListener(`visibilitychange`,e),da(`focus`,e),()=>{sa&&document.removeEventListener(`visibilitychange`,e),fa(`focus`,e)}),ha=e=>{let t=()=>{F=!0,e()},n=()=>{F=!1};return da(`online`,t),da(`offline`,n),()=>{fa(`online`,t),fa(`offline`,n)}},ga={isOnline:ua,isVisible:pa},_a={initFocus:ma,initReconnect:ha},va=!_.useId,ya=!oa||ca,ba=e=>la()?window.requestAnimationFrame(e):setTimeout(e,1),xa=ya?_.useEffect:_.useLayoutEffect,Sa=typeof navigator<`u`&&navigator.connection,Ca=!ya&&Sa&&([`slow-2g`,`2g`].includes(Sa.effectiveType)||Sa.saveData),wa=new WeakMap,Ta=e=>ea.prototype.toString.call(e),Ea=(e,t)=>e===`[object ${t}]`,Da=0,Oa=e=>{let t=typeof e,n=Ta(e),r=Ea(n,`Date`),i=Ea(n,`RegExp`),a=Ea(n,`Object`),o,s;if(ea(e)===e&&!r&&!i){if(o=wa.get(e),o)return o;if(o=++Da+`~`,wa.set(e,o),Array.isArray(e)){for(o=`@`,s=0;s{if(N(e))try{e=e()}catch{e=``}let t=e;return e=typeof e==`string`?e:(Array.isArray(e)?e.length:e)?Oa(e):``,[e,t]},Aa=0,ja=()=>++Aa;async function Ma(...e){let[t,n,r,i]=e,a=ta({populateCache:!0,throwOnError:!0},typeof i==`boolean`?{revalidate:i}:i||{}),o=a.populateCache,s=a.rollbackOnError,c=a.optimisticData,l=e=>typeof s==`function`?s(e):s!==!1,u=a.throwOnError;if(N(n)){let e=n,r=[],i=t.keys();for(let n of i)!/^\$(inf|sub)\$/.test(n)&&e(t.get(n)._k)&&r.push(n);return Promise.all(r.map(d))}return d(n);async function d(n){let[i]=ka(n);if(!i)return;let[s,d]=P(t,i),[f,p,m,h]=Qi.get(t),g=()=>{let e=f[i];return(N(a.revalidate)?a.revalidate(s().data,n):a.revalidate!==!1)&&(delete m[i],delete h[i],e&&e[0])?e[0](2).then(()=>s().data):s().data};if(e.length<3)return g();let _=r,v,y=!1,b=ja();p[i]=[b,0];let ee=!M(c),te=s(),ne=te.data,re=te._c,x=M(re)?ne:re;if(ee&&(c=N(c)?c(x,ne):c,d({data:c,_c:x})),N(_))try{_=_(x)}catch(e){v=e,y=!0}if(_&&na(_)){if(_=await _.catch(e=>{v=e,y=!0}),b!==p[i][0]){if(y)throw v;return _}y&&ee&&l(v)&&(o=!0,d({data:x,_c:void 0}))}if(o&&(y||(N(o)?d({data:o(_,x),error:void 0,_c:void 0}):d({data:_,error:void 0,_c:void 0}))),p[i][1]=ja(),Promise.resolve(g()).then(()=>{d({_c:void 0})}),y){if(u)throw v;return}return _}}var Na=(e,t)=>{for(let n in e)e[n][0]&&e[n][0](t)},Pa=(e,t)=>{if(!Qi.has(e)){let n=ta(_a,t),r=Object.create(null),i=Ma.bind(void 0,e),a=$i,o=Object.create(null),s=(e,t)=>{let n=o[e]||[];return o[e]=n,n.push(t),()=>{let e=n.indexOf(t);e>=0&&(n[e]=n[n.length-1],n.pop())}},c=(t,n,r)=>{e.set(t,n);let i=o[t];if(i)for(let e of i)e(n,r)},l=t=>{let n=Qi.get(e),[,i,a,s]=n,c=ja();n[8]++;for(let e in a)delete a[e];for(let e in s)delete s[e];for(let e in i)i[e]=[c,c];let l={};for(let t of[...e.keys()]){let n=e.get(t);e.delete(t);let r=o[t];if(r)for(let e of r)e(l,n)}let u=!t||t.revalidate!==!1;for(let e in r){let t=r[e];for(let e=0;e{if(!Qi.has(e)&&(Qi.set(e,[r,Object.create(null),Object.create(null),Object.create(null),i,c,s,l,0]),!ya)){let t=n.initFocus(setTimeout.bind(void 0,Na.bind(void 0,r,0))),i=n.initReconnect(setTimeout.bind(void 0,Na.bind(void 0,r,1)));a=()=>{t&&t(),i&&i(),Qi.delete(e)}}};return u(),[e,i,u,a,l]}let n=Qi.get(e);return[e,n[4],void 0,void 0,n[7]]},Fa=(e,t,n,r,i)=>{let a=n.errorRetryCount,o=i.retryCount,s=~~((Math.random()+.5)*(1<<(o<8?o:8)))*n.errorRetryInterval;!M(a)&&o>a||setTimeout(r,s,i)},I=Zi,[Ia,La,,,Ra]=Pa(new Map),za=ta({onLoadingSlow:$i,onSuccess:$i,onError:$i,onErrorRetry:Fa,onDiscarded:$i,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:Ca?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:Ca?5e3:3e3,compare:I,isPaused:()=>!1,cache:Ia,mutate:La,unload:Ra,fallback:{}},ga),Ba=(e,t)=>{let n=ta(e,t);if(t){let{use:r,fallback:i,cacheData:a}=e,{use:o,fallback:s,cacheData:c}=t;r&&o&&(n.use=r.concat(o)),i&&s&&(n.fallback=ta(i,s)),a&&c&&(n.cacheData=ta(a,c))}return n},Va=(0,_.createContext)({}),Ha=e=>{let{value:t}=e,n=(0,_.useContext)(Va),r=N(t),i=(0,_.useMemo)(()=>r?t(n):t,[r,n,t]),a=(0,_.useMemo)(()=>r?i:Ba(n,i),[r,n,i]),o=i&&i.provider,s=(0,_.useRef)(void 0);o&&!s.current&&(s.current=Pa(o(a.cache||Ia),i));let c=s.current;return c&&(a.cache=c[0],a.mutate=c[1],a.unload=c[4]),xa(()=>{if(c)return c[2]&&c[2](),c[3]},[]),(0,_.createElement)(Va.Provider,ta(e,{value:a}))},Ua=oa&&window.__SWR_DEVTOOLS_USE__,Wa=Ua?window.__SWR_DEVTOOLS_USE__:[],Ga=()=>{Ua&&(window.__SWR_DEVTOOLS_REACT__=_.default)},Ka=e=>N(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],qa=()=>{let e=(0,_.useContext)(Va);return(0,_.useMemo)(()=>ta(za,e),[e])},Ja=Wa.concat(e=>(t,n,r)=>e(t,n&&((...e)=>{let[r]=ka(t),[,,,i]=Qi.get(Ia);if(r.startsWith(`$inf$`))return n(...e);let a=i[r];return M(a)?n(...e):(delete i[r],a)}),r)),Ya=e=>function(...t){let n=qa(),[r,i,a]=Ka(t),o=Ba(n,a),s=e,{use:c}=o,l=(c||[]).concat(Ja);for(let e=l.length;e--;)s=l[e](s);return s(r,i||o.fetcher||null,o)},Xa=(e,t,n)=>{let r=t[e]||(t[e]=[]);return r.push(n),()=>{let e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}};Ga();var Za=_.use||(e=>{switch(e.status){case`pending`:throw e;case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:throw e.status=`pending`,e.then(t=>{e.status=`fulfilled`,e.value=t},t=>{e.status=`rejected`,e.reason=t}),e}}),Qa={dedupe:!0},$a=(e,t,n)=>t?e.get(t)?.has(n)===!0:!1,eo=(e,t,n)=>{if(!t)return;let r=e.get(t);r||(r=new Set,e.set(t,r)),r.add(n)},to=({value:e,getCacheData:t,canCommit:n,setCache:r})=>{let i=e=>{n()&&M(t())&&r(e)};Promise.resolve(e).then(e=>{i({data:e,error:void 0})},e=>{i({error:e})})},no=Promise.resolve(void 0);no.status=`fulfilled`,no.value=void 0;var ro=()=>$i,io=(e,t,n)=>{let{cache:r,compare:i,suspense:a,fallbackData:o,revalidateOnMount:s,revalidateIfStale:c,refreshInterval:l,refreshWhenHidden:u,refreshWhenOffline:d,keepPreviousData:f,strictServerPrefetchWarning:p}=n,[m,h,g,v]=Qi.get(r),[y,b]=ka(e),te=(0,_.useRef)(!1),ne=(0,_.useRef)(!1),re=(0,_.useRef)(y),x=(0,_.useRef)(t),ie=(0,_.useRef)(n),S=()=>ie.current,ae=()=>S().isVisible()&&S().isOnline(),[C,oe,se,ce]=P(r,y),le=(0,_.useRef)({}).current,ue=M(o)?M(n.fallback)?void 0:n.fallback[y]:o,de=n.cacheData,fe=y?de?.[y]:void 0,pe=y?v[y]:void 0,me=M(pe)&&!M(fe),he=me?fe:pe,ge=(e,t)=>{for(let n in le){let r=n;if(r===`data`){if(!i(e[r],t[r])&&(!M(e[r])||!i(T,t[r])))return!1}else if(t[r]!==e[r])return!1}return!0},_e=!te.current,ve=(0,_.useMemo)(()=>{let e=C(),n=ce(),r=e=>{let n=ta(e);return delete n._k,(()=>{if(!y||!t||S().isPaused())return!1;if(_e&&!M(s))return s;let e=M(ue)?n.data:ue;return a&&me&&M(e)?!1:M(e)||c})()?{isValidating:!0,isLoading:!0,...n}:n},i=r(e),o=e===n?i:r(n),l=i;return[()=>{let e=r(C());return ge(e,l)?(l.data=e.data,l.isLoading=e.isLoading,l.isValidating=e.isValidating,l.error=e.error,l):(l=e,e)},()=>o]},[r,y]),ye=(0,ee.useSyncExternalStore)((0,_.useCallback)(e=>se(y,(t,n)=>{ge(n,t)||e()}),[r,y]),ve[0],ve[1]),be=m[y]&&m[y].length>0,xe=ye.data,Se=M(xe)?ue&&na(ue)?Za(ue):ue:xe,Ce=ye.error,we=(0,_.useRef)(Se),Te=(0,_.useRef)(void 0),Ee=Te.current;Ee||(Ee=new WeakMap,Te.current=Ee);let w=(0,_.useRef)(null),T=f?M(xe)?M(we.current)?Se:we.current:xe:Se,De=y&&M(Se),Oe=(0,_.useRef)(null);!ya&&(0,ee.useSyncExternalStore)(ro,()=>(Oe.current=!1,Oe),()=>(Oe.current=!0,Oe));let ke=Oe.current;p&&ke&&!a&&De&&console.warn(`Missing pre-initiated data for serialized key "${y}" during server-side rendering. Data fetching should be initiated on the server and provided to SWR via fallback data. You can set "strictServerPrefetchWarning: false" to disable this warning.`);let Ae=!y||!t||S().isPaused()||be&&!M(Ce)?!1:_e&&!M(s)?s:a&&me&&De?!1:a?!M(Se)&&c:M(Se)||c,je=_e&&Ae,E=M(ye.isValidating)?je:ye.isValidating,Me=M(ye.isLoading)?je:ye.isLoading,Ne=(0,_.useCallback)(async e=>{let t=x.current;if(!y||!t||ne.current||S().isPaused())return!1;let r,a,o=!0,s=e||{},c=!g[y]||!s.dedupe,l=me&&!$a(Ee,de,y)&&!M(he)&&M(C().data),u=()=>va?!ne.current&&y===re.current&&te.current:y===re.current,d={isValidating:!1,isLoading:!1},f=()=>{oe(d)},p=()=>{let e=g[y];e&&e[1]===a&&delete g[y]},_={isValidating:!0};M(C().data)&&(_.isLoading=!0);try{if(c&&(oe(_),n.loadingTimeout&&M(C().data)&&setTimeout(()=>{o&&u()&&S().onLoadingSlow(y,n)},n.loadingTimeout),l&&eo(Ee,de,y),g[y]=[l?he:t(b),ja()],l&&v[y]&&delete v[y]),[r,a]=g[y],r=await r,c&&setTimeout(p,n.dedupingInterval),!g[y]||g[y][1]!==a)return c&&u()&&S().onDiscarded(y),!1;d.error=void 0;let e=h[y];if(!M(e)&&(a<=e[0]||a<=e[1]||e[1]===0))return f(),c&&u()&&S().onDiscarded(y),!1;let s=C().data;d.data=i(s,r)?s:r,c&&u()&&S().onSuccess(r,y,n)}catch(e){p();let t=S(),{shouldRetryOnError:n}=t;t.isPaused()||(d.error=e,c&&u()&&(t.onError(e,y,t),(n===!0||N(n)&&n(e))&&(!S().revalidateOnFocus||!S().revalidateOnReconnect||ae())&&t.onErrorRetry(e,y,t,e=>{let t=m[y];t&&t[0]&&t[0](3,e)},{retryCount:(s.retryCount||0)+1,dedupe:!0})))}return o=!1,f(),!0},[y,r]),Pe=(0,_.useCallback)((...e)=>Ma(r,re.current,...e),[]);if(xa(()=>{let e=w.current;e&&(w.current=null,eo(Ee,e.cacheData,e.key),M(C().data)&&oe({data:e.data,error:void 0,_k:e._k}),v[e.key]&&delete v[e.key])}),xa(()=>{x.current=t,ie.current=n,M(xe)||(we.current=xe)}),xa(()=>{if(t||!me||M(he)||$a(Ee,de,y)||!M(C().data))return;eo(Ee,de,y);let e=h[y];to({value:he,getCacheData:()=>C().data,canCommit:()=>!ne.current&&y===re.current&&h[y]===e,setCache:e=>oe({...e,_k:b})})}),xa(()=>{if(!y)return;let e=Ne.bind(void 0,Qa),t=0;S().revalidateOnFocus&&(t=Date.now()+S().focusThrottleInterval);let n=Xa(y,m,(n,r={})=>{if(n==0){let n=Date.now();S().revalidateOnFocus&&n>t&&ae()&&(t=n+S().focusThrottleInterval,e())}else if(n==1)S().revalidateOnReconnect&&ae()&&e();else if(n==2)return Ne();else if(n==3)return Ne(r);else if(n==4&&(we.current=void 0,r.revalidate))return Ne()});return ne.current=!1,re.current=y,te.current=!0,oe({_k:b}),Ae&&(g[y]||(M(Se)||ya?e():ba(e))),()=>{ne.current=!0,n()}},[y]),xa(()=>{let e;function t(){let t=N(l)?l(C().data):l;t&&e!==-1&&(e=setTimeout(n,t))}function n(){!C().error&&(u||S().isVisible())&&(d||S().isOnline())?Ne(Qa).then(t):t()}return t(),()=>{e&&=(clearTimeout(e),-1)}},[l,u,d,y]),(0,_.useDebugValue)(T),a){if(!va&&ya&&De&&M(he))throw Error(`Fallback data is required when using Suspense in SSR.`);De&&(x.current=t,ie.current=n,ne.current=!1);let e=!M(he)&&De,r;if(e&&me?(r=he&&na(he)?Za(he):he,Se=r,T=r,ya||(w.current={data:r,_k:b,key:y,cacheData:de})):Za(e?Pe(he):no),!M(Ce)&&De)throw Ce;let i=De&&M(r)?Ne(Qa):no;!M(T)&&De&&(i.status=`fulfilled`,i.value=!0),Za(i)}return{mutate:Pe,get data(){return le.data=!0,T},get error(){return le.error=!0,Ce},get isValidating(){return le.isValidating=!0,E},get isLoading(){return le.isLoading=!0,Me}}};ea.defineProperty(Ha,`defaultValue`,{value:za});var ao=Ya(io);function oo(e={}){let t=new URLSearchParams;e.status&&t.set(`status`,e.status),e.limit!==void 0&&t.set(`limit`,String(e.limit)),e.offset!==void 0&&t.set(`offset`,String(e.offset));let n=t.toString();return Yi(`/api/v1/items${n?`?${n}`:``}`)}function so(e){return Yi(`/api/v1/items`,{method:`POST`,body:JSON.stringify(e)})}function co(e,t){return Yi(`/api/v1/items/${e}`,{method:`PATCH`,body:JSON.stringify(t)})}function lo(e){return Yi(`/api/v1/items/${e}`,{method:`DELETE`})}var uo={list:(e={})=>[`items`,`list`,e],detail:e=>[`items`,`detail`,e]};function fo(e){return Array.isArray(e)&&e[0]===`items`}var po={keepPreviousData:!0};function mo(e={}){let{data:t,error:n,isLoading:r,mutate:i}=ao(uo.list(e),()=>oo(e),po);return{items:t,error:n,isLoading:r,refresh:i}}function ho(){let{mutate:e}=qa();return{create:(0,_.useCallback)(async t=>{let n=await so(t);return await e(fo),n},[e]),update:(0,_.useCallback)(async(t,n)=>{let r=await co(t,n);return await e(fo),r},[e]),remove:(0,_.useCallback)(async t=>{await lo(t),await e(fo)},[e])}}var go=[`all`,`active`,`archived`],_o=new Intl.DateTimeFormat(void 0,{dateStyle:`medium`,timeStyle:`short`}),vo={padding:`var(--space-1) var(--space-3)`,fontSize:`var(--text-xs)`};function yo(){let[e,t]=(0,_.useState)(`all`),[n,r]=(0,_.useState)(!1),[i,a]=(0,_.useState)(null),[o,s]=(0,_.useState)(null),{items:c,error:l,isLoading:u,refresh:d}=mo(e===`all`?{}:{status:e}),{update:f,remove:p}=ho(),m=async(e,t)=>{a(e),s(null);try{await t()}catch(e){s(e instanceof qi?e.message:`Unexpected error`)}finally{a(null)}},h=(0,D.jsx)(pr,{children:(0,D.jsxs)(hr,{children:[(0,D.jsx)(gr,{children:`Item`}),(0,D.jsx)(gr,{children:`Status`}),(0,D.jsx)(gr,{children:`Created`}),(0,D.jsx)(gr,{children:`Updated`}),(0,D.jsx)(gr,{children:`Actions`})]})});return(0,D.jsxs)(`div`,{className:`stack-md`,children:[(0,D.jsxs)(`div`,{className:`flex-between`,style:{flexWrap:`wrap`,gap:`var(--space-3)`},children:[(0,D.jsx)(`div`,{className:`row-xs`,children:go.map(n=>(0,D.jsx)(`button`,{className:`button ${e===n?`secondary`:`ghost`}`,style:{...vo,textTransform:`capitalize`},onClick:()=>t(n),children:n},n))}),(0,D.jsxs)(`div`,{className:`row-xs`,children:[(0,D.jsxs)(Zr,{variant:`ghost`,style:vo,onClick:()=>d(),children:[(0,D.jsx)(j,{name:`refresh`,size:13}),` Refresh`]}),(0,D.jsxs)(Zr,{variant:`primary`,style:vo,onClick:()=>r(!0),children:[(0,D.jsx)(j,{name:`plus`,size:13}),` New item`]})]})]}),o&&(0,D.jsxs)(ir,{variant:`destructive`,icon:(0,D.jsx)(j,{name:`warning`,size:18}),children:[(0,D.jsx)(ar,{children:`Action failed`}),(0,D.jsx)(or,{children:o})]}),l&&!c?l instanceof qi&&l.code===`unauthorized`?(0,D.jsxs)(ir,{variant:`warning`,icon:(0,D.jsx)(j,{name:`shield`,size:18}),children:[(0,D.jsx)(ar,{children:`Sign in required`}),(0,D.jsx)(or,{children:`This API requires an authenticated session. Signing in redirects to the configured OIDC issuer and lands back on this page.`}),(0,D.jsx)(`div`,{className:`row-xs`,style:{marginTop:`var(--space-3)`},children:(0,D.jsx)(Zr,{variant:`primary`,onClick:()=>Gi(),children:`Sign in`})})]}):(0,D.jsxs)(ir,{variant:`destructive`,icon:(0,D.jsx)(j,{name:`alert`,size:18}),children:[(0,D.jsx)(ar,{children:`Cannot reach the Go API`}),(0,D.jsx)(or,{children:l.message}),(0,D.jsxs)(or,{children:[`Start it with`,` `,(0,D.jsx)(`code`,{className:`mono`,style:{color:`var(--foreground)`},children:`cd backend && make migrate-up && make run`}),` `,`— SQLite is the default, so no database server is needed, and vite proxies`,` `,(0,D.jsx)(`code`,{className:`mono`,children:`/api`}),` to `,(0,D.jsx)(`code`,{className:`mono`,children:`:8080`}),`.`]}),(0,D.jsx)(`div`,{className:`row-xs`,style:{marginTop:`var(--space-3)`},children:(0,D.jsxs)(Zr,{variant:`secondary`,onClick:()=>d(),children:[(0,D.jsx)(j,{name:`refresh`,size:13}),` Retry`]})})]}):u&&!c?(0,D.jsxs)(fr,{children:[h,(0,D.jsx)(mr,{children:[0,1,2,3].map(e=>(0,D.jsxs)(hr,{children:[(0,D.jsx)(_r,{children:(0,D.jsx)(si,{width:`60%`})}),(0,D.jsx)(_r,{children:(0,D.jsx)(si,{width:64})}),(0,D.jsx)(_r,{children:(0,D.jsx)(si,{width:140})}),(0,D.jsx)(_r,{children:(0,D.jsx)(si,{width:140})}),(0,D.jsx)(_r,{children:(0,D.jsx)(si,{width:120})})]},e))})]}):c&&c.length===0?(0,D.jsxs)(vr,{children:[(0,D.jsx)(yr,{children:(0,D.jsx)(j,{name:`database`,size:24})}),(0,D.jsx)(br,{children:`No items yet`}),(0,D.jsxs)(xr,{children:[`This table reads live from the Go API's database (SQLite by default, Postgres via DATABASE_URL). Create the first item — it POSTs to`,` `,(0,D.jsx)(`code`,{className:`mono`,children:`/api/v1/items`}),` and SWR revalidates the list.`]}),(0,D.jsx)(Sr,{children:(0,D.jsxs)(Zr,{variant:`primary`,onClick:()=>r(!0),children:[(0,D.jsx)(j,{name:`plus`,size:14}),` New item`]})})]}):(0,D.jsxs)(fr,{children:[h,(0,D.jsx)(mr,{children:c?.map(e=>(0,D.jsxs)(hr,{children:[(0,D.jsxs)(_r,{children:[(0,D.jsx)(`div`,{style:{fontWeight:600},children:e.title}),e.description&&(0,D.jsx)(`div`,{className:`mono`,style:{marginTop:`var(--space-1)`,fontSize:`var(--text-2xs)`,color:`var(--muted-foreground)`},children:e.description})]}),(0,D.jsx)(_r,{children:(0,D.jsx)(rt,{variant:e.status===`active`?`positive`:`secondary`,children:e.status})}),(0,D.jsx)(_r,{className:`mono`,style:{color:`var(--muted-foreground)`},children:_o.format(new Date(e.createdAt))}),(0,D.jsx)(_r,{className:`mono`,style:{color:`var(--muted-foreground)`},children:_o.format(new Date(e.updatedAt))}),(0,D.jsx)(_r,{children:i===e.id?(0,D.jsx)(gi,{size:`xs`}):(0,D.jsxs)(`div`,{className:`row-xs`,children:[(0,D.jsx)(`button`,{className:`button ghost`,style:vo,onClick:()=>m(e.id,()=>f(e.id,{status:e.status===`active`?`archived`:`active`})),children:e.status===`active`?`Archive`:`Restore`}),(0,D.jsx)(`button`,{className:`button ghost`,style:{...vo,color:`var(--destructive)`},"aria-label":`Delete ${e.title}`,onClick:()=>m(e.id,()=>p(e.id)),children:(0,D.jsx)(j,{name:`trash`,size:13})})]})})]},e.id))})]}),(0,D.jsxs)(`div`,{className:`flex-between muted`,style:{fontSize:`var(--text-3xs)`,padding:`0 var(--space-2)`},children:[(0,D.jsxs)(`span`,{children:[c?.length??0,` item`,c?.length===1?``:`s`,` · revalidated by SWR (reconnects refetch automatically)`]}),(0,D.jsxs)(`span`,{className:`mono`,children:[`GET /api/v1/items`,e===`all`?``:`?status=${e}`]})]}),(0,D.jsx)(bo,{open:n,onOpenChange:r})]})}function bo({open:e,onOpenChange:t}){let{create:n}=ho(),[r,i]=(0,_.useState)(``),[a,o]=(0,_.useState)(``),[s,c]=(0,_.useState)(!1),[l,u]=(0,_.useState)(null),d=()=>{i(``),o(``),c(!1),u(null)};return(0,D.jsx)(Br,{open:e,onOpenChange:t,children:(0,D.jsx)(Hr,{children:(0,D.jsxs)(`form`,{onSubmit:async e=>{e.preventDefault(),c(!0),u(null);try{await n({title:r,description:a.trim()===``?void 0:a}),d(),t(!1)}catch(e){c(!1),u(e instanceof qi?e.message:`Unexpected error`)}},children:[(0,D.jsxs)(Ur,{children:[(0,D.jsx)(Wr,{children:`New item`}),(0,D.jsxs)(Gr,{children:[`POSTs to `,(0,D.jsx)(`code`,{className:`mono`,children:`/api/v1/items`}),`; the list revalidates through SWR on success.`]})]}),(0,D.jsxs)(`div`,{className:`stack-sm`,children:[(0,D.jsx)(Ni,{label:`Title`,hint:`Required · max 200 characters`,children:(0,D.jsx)(Pi,{value:r,onChange:e=>i(e.target.value),maxLength:200,placeholder:`Ship the api template`,autoFocus:!0})}),(0,D.jsx)(Ni,{label:`Description`,hint:`Optional context shown under the title`,children:(0,D.jsx)(Pi,{value:a,onChange:e=>o(e.target.value),placeholder:`What is this item about?`})}),l&&(0,D.jsx)(ir,{variant:`destructive`,icon:(0,D.jsx)(j,{name:`alert`,size:16}),children:(0,D.jsx)(or,{children:l})})]}),(0,D.jsx)(Kr,{children:(0,D.jsxs)(`div`,{className:`row-sm`,style:{justifyContent:`flex-end`},children:[(0,D.jsx)(Zr,{type:`button`,variant:`ghost`,onClick:()=>t(!1),disabled:s,children:`Cancel`}),(0,D.jsxs)(Zr,{type:`submit`,variant:`primary`,disabled:s||r.trim()===``,children:[s?(0,D.jsx)(gi,{size:`xs`}):(0,D.jsx)(j,{name:`plus`,size:13}),`Create item`]})]})})]})})})}var xo=`/patterns`,So=`/items`,Co=[`Application Patterns`,`Components`,`Foundations`,`Documentation`],wo={"Application Patterns":`Production-grade composites that ship as one drop-in unit.`,Components:`The atoms: buttons, icons, form controls and the primitives behind them.`,Foundations:`The tokens that carry the system — color roles and the type scale.`,Documentation:`Editorial and developer surfaces for docs, changelogs and embedded code.`},To=[{path:xo,group:`Application Patterns`,label:`Application Patterns`,index:`01`,kicker:`PATTERNS & EXAMPLES`,title:`Reusable Application Patterns`,description:`Production-grade, fully functional composable components ready to drop into any project.`,meta:(0,D.jsx)(`span`,{className:`api-pill`,children:`4 Reusable Components`}),page:Xr},{path:`/components/buttons`,group:`Components`,label:`Buttons`,index:`02`,kicker:`COMPONENTS`,title:`Buttons`,description:`Actions with a clear hierarchy and dependable feedback.`,meta:(0,D.jsx)(`span`,{className:`api-pill`,children:`Button · 12 variants`}),page:xi},{path:`/components/icons`,group:`Components`,label:`Icons`,index:`03`,kicker:`COMPONENTS`,title:`Icons (Lucide)`,description:`Crisp, scalable SVG icons powered by Lucide. Tree-shakeable, stroke-matched, and token-aware.`,meta:(0,D.jsx)(`span`,{className:`api-pill`,children:`iconRegistry · 41 curated · lucide 1,400+`}),page:Ti},{path:`/foundations/colors`,group:`Foundations`,label:`Color tokens`,index:`04`,kicker:`FOUNDATIONS`,title:`Color tokens`,description:`Functional color roles in CSS Color 4 lab() keep every surface intentional.`,meta:(0,D.jsx)(`span`,{className:`api-pill`,children:`48 tokens · lab()`}),page:ki},{path:`/foundations/typography`,group:`Foundations`,label:`Typography`,index:`05`,kicker:`FOUNDATIONS`,title:`Typography`,description:`Modular rem-based type scale with dual-family hierarchy (Manrope & DM Mono).`,meta:(0,D.jsx)(`span`,{className:`api-pill`,children:`Type scale · 9→70px`}),page:Mi},{path:`/components/forms`,group:`Components`,label:`Form controls`,index:`06`,kicker:`PRIMITIVES`,title:`Form controls`,description:`Inputs designed for focus, flow, and the occasional messy edge case.`,page:Fi},{path:`/components/code`,group:`Components`,label:`Composable code`,index:`07`,kicker:`CODE`,title:`Composable by default`,description:`Small APIs. Strong defaults. No surprises.`,page:zi},{path:`/docs/markdown`,group:`Documentation`,label:`Markdown rendering`,index:`08`,kicker:`CONTENT`,title:`Markdown rendering`,description:`A readable editorial layer for changelogs, docs, and product notes.`,meta:(0,D.jsx)(`span`,{className:`api-pill`,children:`Markdown · styled`}),page:Vi},{path:`/docs/editor`,group:`Documentation`,label:`CodeMirror theme`,index:`09`,kicker:`DEVELOPER TOOLING`,title:`CodeMirror theme`,description:`A focused editor palette for examples, playgrounds, and embedded code.`,meta:(0,D.jsx)(`span`,{className:`api-pill`,children:`codemirror · dark`}),page:Wi},{path:So,group:`Application Patterns`,label:`Items (live API)`,index:`10`,kicker:`FULLSTACK`,title:`Live data — Go API + SWR`,description:`The Go backend wired end to end: typed api modules, SWR hooks, mutations, and every loading state.`,meta:(0,D.jsx)(`span`,{className:`api-pill`,children:`SWR · /api/v1/items · SQLite/Postgres`}),page:yo}],Eo={"/components/buttons":12,"/components/icons":41};function Do(e){return To.find(t=>t.path===e)}function Oo(e){return To.filter(t=>t.group===e)}var ko=[{label:`Application Patterns`,items:[...Xe.map(e=>({label:e.label,href:`${xo}?pattern=${e.id}`})),...Oo(`Application Patterns`).map(e=>({label:e.label,href:e.path}))]},...Co.filter(e=>e!==`Application Patterns`).map(e=>({label:e,items:Oo(e).map(e=>({label:e.label,href:e.path,count:Eo[e.path]}))}))];function Ao(e){let t=new URLSearchParams(e).get(`pattern`);return Xe.some(e=>e.id===t)?t:`metrics`}function jo(e,t){return e===`/patterns`?`${xo}?pattern=${Ao(t)}`:e}function Mo(){let{status:e,user:t,signOut:n}=Ki(),[r,i]=(0,_.useState)(!1),a=(0,_.useRef)(null);if((0,_.useEffect)(()=>{if(!r)return;let e=e=>{a.current?.contains(e.target)===!1&&i(!1)},t=e=>{e.key===`Escape`&&i(!1)};return document.addEventListener(`pointerdown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`pointerdown`,e),document.removeEventListener(`keydown`,t)}},[r]),e===`loading`)return(0,D.jsx)(`span`,{className:`avatar skeleton-pulse`,"aria-hidden":`true`});if(e===`anonymous`||t===null)return(0,D.jsx)(`button`,{type:`button`,className:`top-signin`,onClick:()=>Gi(),children:`Sign in`});let o=t.name||t.email;return(0,D.jsxs)(`div`,{className:`user-menu`,ref:a,children:[(0,D.jsx)(`button`,{type:`button`,className:`avatar`,onClick:()=>i(e=>!e),"aria-haspopup":`menu`,"aria-expanded":r,"aria-label":o,title:o,children:No(o)}),r&&(0,D.jsxs)(`div`,{className:`user-menu-popover`,role:`menu`,children:[(0,D.jsxs)(`div`,{className:`user-menu-identity`,children:[t.name&&(0,D.jsx)(`b`,{children:t.name}),(0,D.jsx)(`span`,{children:t.email})]}),(0,D.jsxs)(`button`,{type:`button`,role:`menuitem`,className:`user-menu-signout`,onClick:()=>{i(!1),n()},children:[(0,D.jsx)(j,{name:`log-out`,size:14}),`Sign out`]})]})]})}function No(e){return e.trim().split(/\s+/).filter(Boolean).slice(0,2).map(e=>e.charAt(0)).join(``).toUpperCase()}var Po={default:`Default`,compact:`Compact`};function Fo({onMenuToggle:e}){let{theme:t,toggleTheme:n,viewMode:r,setViewMode:i,openSearch:a}=Le();return(0,D.jsxs)(`header`,{className:`topbar`,children:[(0,D.jsx)(`div`,{className:`brand`,children:(0,D.jsxs)(Me,{href:`/`,className:`brand-link`,children:[(0,D.jsx)(`div`,{className:`brand-mark`,children:(0,D.jsx)(`span`,{})}),(0,D.jsx)(`b`,{children:`northstar`}),(0,D.jsx)(`span`,{className:`version`,children:`v0.8.2`})]})}),(0,D.jsxs)(`button`,{type:`button`,className:`top-search`,onClick:a,"aria-label":`Search components, tokens, docs (Press ⌘K)`,children:[(0,D.jsx)(j,{name:`search`,size:16}),(0,D.jsx)(`span`,{className:`top-search-placeholder`,children:`Search components, tokens, docs...`}),(0,D.jsx)(`kbd`,{children:`⌘ K`})]}),(0,D.jsxs)(`nav`,{className:`top-links`,children:[(0,D.jsx)(Me,{href:`/docs/markdown`,children:`Docs`}),(0,D.jsx)(`a`,{href:`#github`,children:`GitHub ↗`}),(0,D.jsx)(`div`,{className:`segmented top-view-mode`,role:`group`,"aria-label":`View mode`,children:Fe.map(e=>(0,D.jsx)(`button`,{type:`button`,className:e===r?`selected`:void 0,"aria-pressed":e===r,title:`Switch to ${Po[e].toLowerCase()} view`,onClick:()=>i(e),children:Po[e]},e))}),(0,D.jsx)(`button`,{type:`button`,className:`icon-button`,onClick:n,"aria-label":`Switch to ${t===`dark`?`light`:`dark`} theme`,children:(0,D.jsx)(j,{name:t===`dark`?`sun`:`moon`,size:17})}),(0,D.jsx)(Mo,{})]}),(0,D.jsx)(`button`,{type:`button`,className:`mobile-menu icon-button`,onClick:e,"aria-label":`Toggle navigation`,children:(0,D.jsx)(j,{name:`menu`})})]})}function Io({groups:e,activeHref:t,onNavigate:n,collapsed:r=!1,onToggleCollapse:i}){return(0,D.jsxs)(`aside`,{className:`sidebar`,children:[(0,D.jsxs)(`div`,{className:`sidebar-heading`,children:[(0,D.jsxs)(`div`,{className:`sidebar-library`,children:[(0,D.jsx)(j,{name:`layers`,size:13}),` Library`]}),(0,D.jsx)(`button`,{type:`button`,className:`sidebar-collapse`,onClick:i,"aria-pressed":r,"aria-label":r?`Expand sidebar`:`Collapse sidebar`,children:r?`⌘+`:`⌘−`})]}),(0,D.jsxs)(`div`,{className:`sidebar-intro`,children:[(0,D.jsx)(`span`,{className:`eyebrow`,children:`Northstar system`}),(0,D.jsx)(`p`,{children:`Principles and primitives for product teams.`})]}),(0,D.jsx)(`nav`,{"aria-label":`Documentation navigation`,onClick:n,children:e.map(e=>(0,D.jsxs)(`div`,{className:`nav-group`,children:[(0,D.jsx)(`span`,{className:`nav-label`,children:e.label}),e.items.map(e=>{let n=e.href===t;return(0,D.jsxs)(Me,{href:e.href,className:n?`nav-item active`:`nav-item`,"aria-current":n?`page`:void 0,children:[(0,D.jsx)(`span`,{className:`nav-glyph`,"aria-hidden":`true`,children:e.count?`◈`:`·`}),(0,D.jsx)(`span`,{children:e.label}),e.count!==void 0&&(0,D.jsx)(`span`,{className:`nav-count`,children:e.count})]},e.label)})]},e.label))}),(0,D.jsxs)(`div`,{className:`sidebar-bottom`,children:[(0,D.jsxs)(`div`,{className:`status-line`,children:[(0,D.jsx)(`span`,{className:`status-dot`}),`All systems operational`]}),(0,D.jsx)(`span`,{className:`mono muted`,children:`Updated 2 min ago`})]})]})}function Lo({index:e,title:t,description:n,meta:r,children:i,id:a,className:o=``}){return(0,D.jsxs)(`section`,{className:`section-block ${o}`.trim(),id:a,children:[(0,D.jsxs)(`div`,{className:`section-heading`,children:[(0,D.jsxs)(`div`,{children:[(0,D.jsx)(`span`,{className:`section-index`,children:e}),(0,D.jsx)(`h2`,{children:t}),(0,D.jsx)(`p`,{children:n})]}),r]}),i]})}function Ro({title:e,links:t,activeHref:n}){return(0,D.jsxs)(`aside`,{className:`right-rail`,children:[(0,D.jsxs)(`div`,{className:`rail-card`,children:[(0,D.jsx)(`span`,{className:`eyebrow`,children:e}),t.map((e,t)=>(0,D.jsxs)(Me,{className:e.href===n?`rail-link active`:`rail-link`,href:e.href,"aria-current":e.href===n?`page`:void 0,children:[(0,D.jsxs)(`span`,{children:[`0`,t+1]}),e.label]},e.label))]}),(0,D.jsxs)(`div`,{className:`rail-card release`,children:[(0,D.jsx)(`div`,{className:`release-icon`,children:(0,D.jsx)(j,{name:`layers`,size:18})}),(0,D.jsx)(`strong`,{children:`Designed to be extended`}),(0,D.jsx)(`p`,{children:`Bring your brand, keep the rhythm. Tokens are portable and components stay unopinionated.`}),(0,D.jsxs)(Me,{className:`text-button`,href:`/docs/markdown`,children:[`Read the docs `,(0,D.jsx)(j,{name:`arrow`,size:14})]})]}),(0,D.jsxs)(`div`,{className:`rail-card`,children:[(0,D.jsx)(`span`,{className:`eyebrow`,children:`Need a hand?`}),(0,D.jsx)(`p`,{className:`rail-copy`,children:`Check the contribution guide or say hello in the community.`}),(0,D.jsxs)(Zr,{variant:`secondary`,className:`full`,children:[`Open community `,(0,D.jsx)(`span`,{children:`↗`})]})]})]})}var zo=[{id:`pat-metrics`,title:`Metrics Dashboard`,description:`Telemetry dashboard with StatCards, time range picker, and progress gauges`,category:`Patterns`,icon:`sparkles`,path:`/patterns`,patternId:`metrics`},{id:`pat-settings`,title:`Settings & Safeguards`,description:`Preferences panel with API keys, toggle switches, and alert banners`,category:`Patterns`,icon:`settings`,path:`/patterns`,patternId:`settings`},{id:`pat-table`,title:`Service Monitor Table`,description:`Real-time service health table with status filtering and search`,category:`Patterns`,icon:`layers`,path:`/patterns`,patternId:`table`},{id:`pat-deploy`,title:`Canary Deployment Flow`,description:`Interactive rollout modal with live progress simulation`,category:`Patterns`,icon:`terminal`,path:`/patterns`,patternId:`deploy`},{id:`pat-items`,title:`Items (live API)`,description:`Full-stack demo: typed api modules, SWR hooks, live Postgres data`,category:`Patterns`,icon:`database`,path:`/items`},{id:`comp-buttons`,title:`Buttons & Action States`,description:`Primary, secondary, destructive, ghost variants with resting, hover, active and focus states`,category:`Components`,icon:`arrow-right`,path:`/components/buttons`},{id:`comp-icons`,title:`Lucide Icons Explorer`,description:`Over 1,400+ tree-shaken SVG icons with search, category filtering and 1-click copy`,category:`Components`,icon:`sparkles`,path:`/components/icons`},{id:`comp-forms`,title:`Form Controls & Inputs`,description:`Accessible text inputs, secret key revealers, and toggle switches`,category:`Components`,icon:`eye`,path:`/components/forms`},{id:`comp-code`,title:`Composable UI Primitives`,description:`Zero-drift Dialog, Sheet, Tabs, Table, Alert, Progress, Switch, and StatCard`,category:`Components`,icon:`code`,path:`/components/code`},{id:`found-colors`,title:`Color Tokens (CSS Color 4 lab())`,description:`Pitch black dark theme and pure white daylight light theme tokens`,category:`Foundations`,icon:`sun`,path:`/foundations/colors`},{id:`found-type`,title:`Typography & Scale`,description:`Modular rem-based 9px to 70px scale with Manrope and DM Mono families`,category:`Foundations`,icon:`file`,path:`/foundations/typography`},{id:`doc-md`,title:`Markdown Editorial Layer`,description:`Changelogs, release notes, and documentation typography`,category:`Documentation`,icon:`file`,path:`/docs/markdown`},{id:`doc-cm`,title:`CodeMirror Editor Theme`,description:`Syntax-highlighted code editor preview with line numbers and token palette`,category:`Documentation`,icon:`terminal`,path:`/docs/editor`}],Bo=`search-palette-listbox`;function Vo({isOpen:e,onClose:t,onSelect:n,initialQuery:r=``}){let[i,a]=(0,_.useState)(r),[o,s]=(0,_.useState)(0),c=(0,_.useRef)(null),l=(0,_.useRef)(null);Dr(e,c),(0,_.useEffect)(()=>{e&&l.current?.focus()},[e,r]);let u=(0,_.useMemo)(()=>{if(!i.trim())return zo;let e=i.toLowerCase();return zo.filter(t=>t.title.toLowerCase().includes(e)||t.description.toLowerCase().includes(e)||t.category.toLowerCase().includes(e))},[i]),d=u.length===0?-1:Math.min(o,u.length-1),f=d>=0?u[d]:void 0;return(0,_.useEffect)(()=>{if(!e)return;let r=e=>{e.key===`Escape`?(e.preventDefault(),t()):e.key===`ArrowDown`?(e.preventDefault(),s(e=>u.length?(e+1)%u.length:0)):e.key===`ArrowUp`?(e.preventDefault(),s(e=>u.length?(e-1+u.length)%u.length:0)):e.key===`Enter`&&f&&(e.preventDefault(),n(f),t())};return window.addEventListener(`keydown`,r),()=>window.removeEventListener(`keydown`,r)},[e,u.length,f,t,n]),e?(0,D.jsx)(`div`,{className:`search-palette-backdrop`,onClick:t,children:(0,D.jsxs)(`div`,{ref:c,role:`dialog`,"aria-modal":`true`,"aria-label":`Search`,tabIndex:-1,className:`search-palette-modal`,onKeyDown:e=>{Er(e,c.current)},onClick:e=>e.stopPropagation(),children:[(0,D.jsxs)(`div`,{className:`search-palette-head`,children:[(0,D.jsx)(j,{name:`search`,size:18,className:`search-palette-icon`}),(0,D.jsx)(`input`,{ref:l,type:`text`,role:`combobox`,"aria-expanded":u.length>0,"aria-controls":Bo,"aria-activedescendant":f?`search-option-${f.id}`:void 0,"aria-label":`Search components, tokens, and docs`,className:`search-palette-input`,placeholder:`Type a command, component, or token...`,value:i,onChange:e=>{a(e.target.value),s(0)}}),i&&(0,D.jsx)(`button`,{type:`button`,className:`icon-button`,onClick:()=>{a(``),s(0)},"aria-label":`Clear search`,children:(0,D.jsx)(j,{name:`close`,size:14})}),(0,D.jsx)(ur,{children:`ESC`})]}),(0,D.jsx)(`div`,{className:`search-palette-body`,children:u.length>0?(0,D.jsx)(`ul`,{id:Bo,role:`listbox`,"aria-label":`Search results`,className:`search-palette-results`,children:u.map((e,r)=>{let i=r===d;return(0,D.jsxs)(`li`,{id:`search-option-${e.id}`,role:`option`,"aria-selected":i,className:`search-palette-item ${i?`selected`:``}`,onClick:()=>{n(e),t()},onMouseEnter:()=>s(r),children:[(0,D.jsx)(`div`,{className:`search-item-glyph`,children:(0,D.jsx)(j,{name:e.icon,size:16})}),(0,D.jsxs)(`div`,{className:`search-item-content`,children:[(0,D.jsxs)(`div`,{className:`search-item-title-row`,children:[(0,D.jsx)(`span`,{className:`search-item-title`,children:e.title}),(0,D.jsx)(rt,{variant:`outline`,children:e.category})]}),(0,D.jsx)(`p`,{className:`search-item-desc`,children:e.description})]}),i&&(0,D.jsx)(`div`,{className:`search-item-action`,children:(0,D.jsx)(ur,{children:`↵`})})]},e.id)})}):(0,D.jsxs)(`div`,{className:`search-palette-empty`,children:[(0,D.jsx)(j,{name:`search`,size:24}),(0,D.jsxs)(`p`,{children:[`No results found for “`,i,`”`]}),(0,D.jsx)(`span`,{children:`Try searching for “Buttons”, “Metrics”, “Tokens”, or “Icons”.`})]})}),(0,D.jsxs)(`div`,{className:`search-palette-footer`,children:[(0,D.jsxs)(`div`,{className:`row-xs`,style:{alignItems:`center`},children:[(0,D.jsx)(ur,{children:`↑`}),(0,D.jsx)(ur,{children:`↓`}),(0,D.jsx)(`span`,{children:`to navigate`})]}),(0,D.jsxs)(`div`,{className:`row-xs`,style:{alignItems:`center`},children:[(0,D.jsx)(ur,{children:`↵`}),(0,D.jsx)(`span`,{children:`to select`})]}),(0,D.jsxs)(`div`,{className:`row-xs`,style:{alignItems:`center`},children:[(0,D.jsx)(ur,{children:`ESC`}),(0,D.jsx)(`span`,{children:`to close`})]})]})]})}):null}function Ho(){return(0,D.jsxs)(`section`,{className:`hero-section`,children:[(0,D.jsxs)(`div`,{className:`hero-copy`,children:[(0,D.jsx)(`span`,{className:`eyebrow accent`,children:`Component library`}),(0,D.jsx)(`h1`,{children:`Build with clarity.`}),(0,D.jsx)(`p`,{children:`A considered set of accessible, composable components for building calm, capable interfaces.`}),(0,D.jsxs)(`div`,{className:`hero-actions`,children:[(0,D.jsxs)(Qr,{variant:`primary`,href:`/components/buttons`,children:[`Explore components `,(0,D.jsx)(j,{name:`arrow`,size:16})]}),(0,D.jsx)(Qr,{variant:`ghost`,href:`/docs/markdown`,children:`Read the principles`})]})]}),(0,D.jsxs)(`div`,{className:`hero-orbit`,"aria-hidden":`true`,children:[(0,D.jsx)(`div`,{className:`orbit orbit-one`}),(0,D.jsx)(`div`,{className:`orbit orbit-two`}),(0,D.jsxs)(`div`,{className:`orbit-core`,children:[(0,D.jsx)(`div`,{className:`brand-mark large`,children:(0,D.jsx)(`span`,{})}),(0,D.jsxs)(`span`,{children:[`system`,(0,D.jsx)(`br`,{}),(0,D.jsx)(`b`,{children:`ready`})]})]}),(0,D.jsxs)(`span`,{className:`orbit-label label-one`,children:[`TOKENS `,(0,D.jsx)(`b`,{children:`48`})]}),(0,D.jsxs)(`span`,{className:`orbit-label label-two`,children:[`A11Y `,(0,D.jsx)(`b`,{children:`AAA`})]}),(0,D.jsxs)(`span`,{className:`orbit-label label-three`,children:[`RUNTIME `,(0,D.jsx)(`b`,{children:`FAST`})]})]})]})}function Uo(){let{status:e,user:t,signOut:n}=Ki();return(0,D.jsxs)(Ze,{className:`stack-xs session-card`,children:[(0,D.jsxs)(Qe,{children:[(0,D.jsx)($e,{children:`Session`}),(0,D.jsx)(et,{children:`OIDC authorization-code flow against users.k6n.net.`})]}),(0,D.jsxs)(tt,{className:`stack-xs`,children:[e===`loading`&&(0,D.jsxs)(`div`,{className:`session-identity`,children:[(0,D.jsx)(`span`,{className:`session-avatar skeleton-pulse`,"aria-hidden":`true`}),(0,D.jsxs)(`span`,{className:`session-lines`,children:[(0,D.jsx)(`span`,{className:`skeleton-pulse`,"aria-hidden":`true`}),(0,D.jsx)(`span`,{className:`skeleton-pulse`,"aria-hidden":`true`})]})]}),e===`anonymous`&&(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(`p`,{className:`session-note`,children:`Not signed in — the API answers 401 until you are.`}),(0,D.jsx)(Zr,{variant:`primary`,onClick:()=>Gi(`/`),children:`Sign in`})]}),e===`authenticated`&&t&&(0,D.jsxs)(D.Fragment,{children:[(0,D.jsxs)(`div`,{className:`session-identity`,children:[(0,D.jsx)(pi,{name:t.name||t.email,size:`md`,status:`online`}),(0,D.jsxs)(`div`,{className:`session-lines`,children:[(0,D.jsx)(`b`,{children:t.name||t.email}),t.name&&t.email&&t.email!==t.name&&(0,D.jsx)(`span`,{children:t.email}),(0,D.jsxs)(`small`,{children:[`sub: `,t.sub]})]})]}),t.roles.length>0&&(0,D.jsx)(`div`,{className:`session-roles`,children:t.roles.map(e=>(0,D.jsx)(rt,{variant:`outline`,children:e},e))}),(0,D.jsx)(Zr,{variant:`secondary`,onClick:()=>void n(),children:`Sign out`})]})]})]})}function Wo(){return(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(Ho,{}),(0,D.jsxs)(`div`,{className:`overview-grid`,children:[(0,D.jsx)(Uo,{}),Co.map(e=>(0,D.jsxs)(Ze,{className:`stack-xs`,children:[(0,D.jsxs)(Qe,{children:[(0,D.jsx)($e,{children:e}),(0,D.jsx)(et,{children:wo[e]})]}),(0,D.jsx)(tt,{children:(0,D.jsx)(`ul`,{className:`overview-links`,children:Oo(e).map(e=>(0,D.jsx)(`li`,{children:(0,D.jsxs)(Me,{href:e.path,children:[e.label,` `,(0,D.jsx)(j,{name:`arrow`,size:13})]})},e.path))})})]},e))]})]})}function Go(){return(0,D.jsx)(`div`,{className:`not-found`,children:(0,D.jsxs)(vr,{children:[(0,D.jsx)(br,{children:`Page not found`}),(0,D.jsx)(xr,{children:`That route does not exist in this design system. Pick a page from the list instead.`}),(0,D.jsx)(`ul`,{className:`overview-links`,children:To.map(e=>(0,D.jsx)(`li`,{children:(0,D.jsx)(Me,{href:e.path,children:e.label})},e.path))})]})})}function Ko({route:e}){let t=e.page;return(0,D.jsx)(Lo,{index:`${e.index} / ${e.kicker}`,title:e.title,description:e.description,meta:e.meta,children:(0,D.jsx)(t,{})})}function L(){let{searchOpen:e,closeSearch:t,sidebarCollapsed:n,toggleSidebar:r}=Le(),[i,a]=w(),o=T(),[s,c]=(0,_.useState)(!1),l=Do(i),u=l?.label??(i===`/`?`Overview`:`Not found`),d=jo(i,o),f=ko.find(e=>e.label===l?.group)?.items??[];return(0,_.useEffect)(()=>{window.scrollTo({top:0})},[i]),(0,D.jsxs)(`div`,{className:`app-shell`,children:[(0,D.jsx)(Fo,{onMenuToggle:()=>c(!s)}),(0,D.jsx)(Vo,{isOpen:e,onClose:t,onSelect:e=>{a(e.patternId?`${e.path}?pattern=${e.patternId}`:e.path)}}),(0,D.jsxs)(`div`,{className:`body-layout ${s?`menu-open`:``} ${n?`sidebar-collapsed`:``}`,children:[(0,D.jsx)(Io,{groups:ko,activeHref:d,onNavigate:()=>c(!1),collapsed:n,onToggleCollapse:r}),(0,D.jsxs)(`main`,{className:`main-content`,children:[(0,D.jsxs)(`div`,{className:`breadcrumbs`,children:[(0,D.jsx)(`span`,{children:l?l.group:`Northstar`}),(0,D.jsx)(`span`,{children:`/`}),(0,D.jsx)(`strong`,{children:u})]}),i===`/`?(0,D.jsx)(Wo,{}):(0,D.jsxs)(`div`,{className:`content-grid`,children:[(0,D.jsx)(`div`,{className:`content-main`,children:(0,D.jsxs)(Pe,{children:[To.map(e=>(0,D.jsx)(E,{path:e.path,children:(0,D.jsx)(Ko,{route:e})},e.path)),(0,D.jsx)(E,{children:(0,D.jsx)(Go,{})})]})}),l&&(0,D.jsx)(Ro,{title:l.group,links:f,activeHref:d})]}),(0,D.jsxs)(`footer`,{children:[(0,D.jsx)(`span`,{children:`northstar design system`}),(0,D.jsx)(`span`,{className:`mono`,children:`made for the long haul · 2025`})]})]})]})]})}var R=class extends _.Component{state={error:null};static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){}render(){let{error:e}=this.state;return e?(0,D.jsxs)(`div`,{style:{padding:`var(--space-6)`,margin:`var(--space-6) auto`,maxWidth:`42rem`,fontFamily:`var(--font-mono)`,fontSize:`var(--text-sm)`,color:`var(--foreground)`,background:`var(--card)`,border:`1px solid var(--destructive)`,borderRadius:`var(--radius-lg)`,whiteSpace:`pre-wrap`},children:[(0,D.jsx)(`strong`,{children:`Something broke while rendering.`}),` `,e.message]}):this.props.children}};(0,v.createRoot)(document.getElementById(`root`)).render((0,D.jsx)(_.StrictMode,{children:(0,D.jsx)(R,{children:(0,D.jsx)(Ye,{children:(0,D.jsx)(L,{})})})}));