var e=Object.defineProperty,t=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),n=(t,n)=>{let r={};for(var i in t)e(r,i,{get:t[i],enumerable:!0});return n||e(r,Symbol.toStringTag,{value:`Module`}),r};(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),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var r=t((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.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.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`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function ee(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function te(e,t){return ee(e.type,t,e.props)}function ne(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function re(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var ie=/\/+/g;function ae(e,t){return typeof e==`object`&&e&&e.key!=null?re(``+e.key):t.toString(36)}function E(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(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 oe(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,oe(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+ae(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(ie,`$&/`)+`/`),oe(o,r,i,``,function(e){return e})):o!=null&&(ne(o)&&(o=te(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(ie,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u{t.exports=r()})),a=t((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 x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,S||(S=!0,ne());else{var t=n(l);t!==null&&ae(x,t.startTime-e)}}var S=!1,C=-1,w=5,T=-1;function ee(){return g?!0:!(e.unstable_now()-Tt&&ee());){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&&ae(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?ne():S=!1}}}var ne;if(typeof y==`function`)ne=function(){y(te)};else if(typeof MessageChannel<`u`){var re=new MessageChannel,ie=re.port2;re.port1.onmessage=te,ne=function(){ie.postMessage(null)}}else ne=function(){_(te,0)};function ae(t,n){C=_(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(C),C=-1):h=!0,ae(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,ne()))),r},e.unstable_shouldYield=ee,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),o=t(((e,t)=>{t.exports=a()})),s=t((e=>{var t=i();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=s()})),l=t((e=>{var t=o(),n=i(),r=c();function a(e){var t=`https://react.dev/errors/`+e;if(1de||(e.current=ue[de],ue[de]=null,de--)}function j(e,t){de++,ue[de]=e.current,e.current=t}var fe=k(null),M=k(null),pe=k(null),me=k(null);function he(e,t){switch(j(pe,t),j(M,e),j(fe,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Vd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Vd(t),e=Hd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}A(fe),j(fe,e)}function ge(){A(fe),A(M),A(pe)}function _e(e){e.memoizedState!==null&&j(me,e);var t=fe.current,n=Hd(t,e.type);t!==n&&(j(M,e),j(fe,n))}function ve(e){M.current===e&&(A(fe),A(M)),me.current===e&&(A(me),Qf._currentValue=le)}var ye,be;function xe(e){if(ye===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);ye=t&&t[1]||``,be=-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{Se=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?xe(n):``}function we(e,t){switch(e.tag){case 26:case 27:case 5:return xe(e.type);case 16:return xe(`Lazy`);case 13:return e.child!==t&&t!==null?xe(`Suspense Fallback`):xe(`Suspense`);case 19:return xe(`SuspenseList`);case 0:case 15:return Ce(e.type,!1);case 11:return Ce(e.type.render,!1);case 1:return Ce(e.type,!0);case 31:return xe(`Activity`);default:return``}}function Te(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 Ee=Object.prototype.hasOwnProperty,De=t.unstable_scheduleCallback,Oe=t.unstable_cancelCallback,ke=t.unstable_shouldYield,Ae=t.unstable_requestPaint,je=t.unstable_now,Me=t.unstable_getCurrentPriorityLevel,Ne=t.unstable_ImmediatePriority,Pe=t.unstable_UserBlockingPriority,Fe=t.unstable_NormalPriority,Ie=t.unstable_LowPriority,Le=t.unstable_IdlePriority,Re=t.log,ze=t.unstable_setDisableYieldValue,Be=null,Ve=null;function He(e){if(typeof Re==`function`&&ze(e),Ve&&typeof Ve.setStrictMode==`function`)try{Ve.setStrictMode(Be,e)}catch{}}var Ue=Math.clz32?Math.clz32:Ke,We=Math.log,Ge=Math.LN2;function Ke(e){return e>>>=0,e===0?32:31-(We(e)/Ge|0)|0}var qe=256,Je=262144,Ye=4194304;function Xe(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ze(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=Xe(n))):i=Xe(o):i=Xe(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Xe(n))):i=Xe(o)):i=Xe(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 Qe(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function $e(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function et(){var e=Ye;return Ye<<=1,!(Ye&62914560)&&(Ye=4194304),e}function tt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function nt(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function rt(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),dn=!1;if(un)try{var fn={};Object.defineProperty(fn,`passive`,{get:function(){dn=!0}}),window.addEventListener(`test`,fn,fn),window.removeEventListener(`test`,fn,fn)}catch{dn=!1}var pn=null,mn=null,hn=null;function gn(){if(hn)return hn;var e,t=mn,n=t.length,r,i=`value`in pn?pn.value:pn.textContent,a=i.length;for(e=0;e=Jn),Zn=` `,Qn=!1;function $n(e,t){switch(e){case`keyup`:return Kn.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 tr=!1;function nr(e,t){switch(e){case`compositionend`:return er(t);case`keypress`:return t.which===32?(Qn=!0,Zn):null;case`textInput`:return e=t.data,e===Zn&&Qn?null:e;default:return null}}function rr(e,t){if(tr)return e===`compositionend`||!qn&&$n(e,t)?(e=gn(),hn=mn=pn=null,tr=!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=Cr(n)}}function Tr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Tr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Er(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=zt(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=zt(e.document)}return t}function Dr(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 Or=un&&`documentMode`in document&&11>=document.documentMode,kr=null,Ar=null,jr=null,Mr=!1;function Nr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Mr||kr==null||kr!==zt(r)||(r=kr,`selectionStart`in r&&Dr(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}),jr&&Sr(jr,r)||(jr=r,r=Ed(Ar,`onSelect`),0>=o,i-=o,Ti=1<<32-Ue(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),V&&Di(i,h),l;if(d===null){for(;hg?(_=h,h=null):_=h.sibling;var y=p(i,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(i,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(i,h),V&&Di(i,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(i,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return V&&Di(i,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,i,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(i,e)}),V&&Di(i,g),u}function b(e,r,o,c){if(typeof o==`object`&&o&&o.type===y&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case _:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===y){if(r.tag===7){n(e,r.sibling),c=i(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===ne&&Ta(l)===r.type){n(e,r.sibling),c=i(r,o.props),Ma(c,o),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}o.type===y?(c=fi(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=di(o.type,o.key,o.props,null,e.mode,c),Ma(c,o),c.return=e,e=c)}return s(e);case v: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=i(r,o.children||[]),c.return=e,e=c;break a}else{n(e,r);break}else t(e,r);r=r.sibling}c=hi(o,e.mode,c),c.return=e,e=c}return s(e);case ne:return o=Ta(o),b(e,r,o,c)}if(ce(o))return h(e,r,o,c);if(E(o)){if(l=E(o),typeof l!=`function`)throw Error(a(150));return o=l.call(o),g(e,r,o,c)}if(typeof o.then==`function`)return b(e,r,ja(o),c);if(o.$$typeof===C)return b(e,r,ea(e,o),c);Na(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=i(r,o),c.return=e,e=c):(n(e,r),c=pi(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Aa=0;var i=b(e,t,n,r);return ka=null,i}catch(t){if(t===ya||t===xa)throw t;var a=si(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Fa=Pa(!0),Ia=Pa(!1),La=!1;function Ra(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function za(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 Ba(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Va(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,K&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=ii(e),ri(e,null,n),t}return ei(e,r,t,n),ii(e)}function Ha(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,N(e,n)}}function Ua(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 Wa=!1;function Ga(){if(Wa){var e=ua;if(e!==null)throw e}}function Ka(e,t,n,r){Wa=!1;var i=e.updateQueue;La=!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?(Y&f)===f:(r&f)===f){f!==0&&f===la&&(Wa=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var m=e,g=s;f=t;var _=n;switch(g.tag){case 1:if(m=g.payload,typeof m==`function`){d=m.call(_,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=g.payload,f=typeof m==`function`?m.call(_,d,f):m,f==null)break a;d=h({},d,f);break a;case 2:La=!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),Gl|=o,e.lanes=o,e.memoizedState=d}}function qa(e,t){if(typeof e!=`function`)throw Error(a(191,e));e.call(t)}function Ja(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;ea?a:8;var o=D.T,s={};D.T=s,Ns(e,!1,t,n);try{var c=i(),l=D.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Ms(e,t,pa(c,r),pu(e)):Ms(e,t,r,pu(e))}catch(n){Ms(e,t,{then:function(){},status:`rejected`,reason:n},pu())}finally{O.p=a,o!==null&&s.types!==null&&(o.types=s.types),D.T=o}}function Ss(){}function Cs(e,t,n,r){if(e.tag!==5)throw Error(a(476));var i=ws(e).queue;xs(e,i,t,le,n===null?Ss:function(){return Ts(e),n(r)})}function ws(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:le,baseState:le,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Po,lastRenderedState:le},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Po,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Ts(e){var t=ws(e);t.next===null&&(t=e.alternate.memoizedState),Ms(e,t.next.queue,{},pu())}function Es(){return $i(Qf)}function Ds(){return ko().memoizedState}function Os(){return ko().memoizedState}function ks(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=pu();e=Ba(n);var r=Va(t,e,n);r!==null&&(hu(r,t,n),Ha(r,t,n)),t={cache:aa()},e.payload=t;return}t=t.return}}function As(e,t,n){var r=pu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Ps(e)?Fs(t,n):(n=ti(e,t,n,r),n!==null&&(hu(n,e,r),Is(n,t,r)))}function js(e,t,n){Ms(e,t,n,pu())}function Ms(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ps(e))Fs(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,xr(s,o))return ei(e,t,i,0),q===null&&$r(),!1}catch{}if(n=ti(e,t,i,r),n!==null)return hu(n,e,r),Is(n,t,r),!0}return!1}function Ns(e,t,n,r){if(r={lane:2,revertLane:dd(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Ps(e)){if(t)throw Error(a(479))}else t=ti(e,n,r,2),t!==null&&hu(t,e,2)}function Ps(e){var t=e.alternate;return e===U||t!==null&&t===U}function Fs(e,t){po=fo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Is(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,N(e,n)}}var Ls={readContext:$i,use:Mo,useCallback:yo,useContext:yo,useEffect:yo,useImperativeHandle:yo,useLayoutEffect:yo,useInsertionEffect:yo,useMemo:yo,useReducer:yo,useRef:yo,useState:yo,useDebugValue:yo,useDeferredValue:yo,useTransition:yo,useSyncExternalStore:yo,useId:yo,useHostTransitionStatus:yo,useFormState:yo,useActionState:yo,useOptimistic:yo,useMemoCache:yo,useCacheRefresh:yo};Ls.useEffectEvent=yo;var Rs={readContext:$i,use:Mo,useCallback:function(e,t){return Oo().memoizedState=[e,t===void 0?null:t],e},useContext:$i,useEffect:cs,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),os(4194308,4,ms.bind(null,t,e),n)},useLayoutEffect:function(e,t){return os(4194308,4,e,t)},useInsertionEffect:function(e,t){os(4,2,e,t)},useMemo:function(e,t){var n=Oo();t=t===void 0?null:t;var r=e();if(mo){He(!0);try{e()}finally{He(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Oo();if(n!==void 0){var i=n(t);if(mo){He(!0);try{n(t)}finally{He(!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=As.bind(null,U,e),[r.memoizedState,e]},useRef:function(e){var t=Oo();return e={current:e},t.memoizedState=e},useState:function(e){e=Wo(e);var t=e.queue,n=js.bind(null,U,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:gs,useDeferredValue:function(e,t){return ys(Oo(),e,t)},useTransition:function(){var e=Wo(!1);return e=xs.bind(null,U,e.queue,!0,!1),Oo().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=U,i=Oo();if(V){if(n===void 0)throw Error(a(407));n=n()}else{if(n=t(),q===null)throw Error(a(349));Y&127||zo(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,cs(Vo.bind(null,r,o,e),[e]),r.flags|=2048,is(9,{destroy:void 0},Bo.bind(null,r,o,n,t),null),n},useId:function(){var e=Oo(),t=q.identifierPrefix;if(V){var n=Ei,r=Ti;n=(r&~(1<<32-Ue(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=ho++,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(i,{is:r.is}):s.createElement(i)}}o[dt]=t,o[ft]=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(Pd(o,i,r),i){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&Mc(t)}}return G(t),Nc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Mc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(a(166));if(e=pe.current,zi(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,i=Mi,i!==null)switch(i.tag){case 27:case 5:r=i.memoizedProps}e[dt]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Md(e.nodeValue,n)),e||Ii(t,!0)}else e=Bd(e).createTextNode(r),e[dt]=t,t.stateNode=e}return G(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=zi(t),n!==null){if(e===null){if(!r)throw Error(a(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(a(557));e[dt]=t}else Bi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;G(t),e=!1}else n=Vi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(oo(t),t):(oo(t),null);if(t.flags&128)throw Error(a(558))}return G(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=zi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(a(318));if(i=t.memoizedState,i=i===null?null:i.dehydrated,!i)throw Error(a(317));i[dt]=t}else Bi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;G(t),i=!1}else i=Vi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(oo(t),t):(oo(t),null)}return oo(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,i=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(i=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==i&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Fc(t,t.updateQueue),G(t),null);case 4:return ge(),e===null&&Sd(t.stateNode.containerInfo),G(t),null;case 10:return qi(t.type),G(t),null;case 19:if(A(so),r=t.memoizedState,r===null)return G(t),null;if(i=(t.flags&128)!=0,o=r.rendering,o===null)if(i)Ic(r,!1);else{if(Wl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=co(e),o!==null){for(t.flags|=128,Ic(r,!1),e=o.updateQueue,t.updateQueue=e,Fc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)ui(n,e),n=n.sibling;return j(so,so.current&1|2),V&&Di(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&je()>tu&&(t.flags|=128,i=!0,Ic(r,!1),t.lanes=4194304)}else{if(!i)if(e=co(o),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Fc(t,e),Ic(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!V)return G(t),null}else 2*je()-r.renderingStartTime>tu&&n!==536870912&&(t.flags|=128,i=!0,Ic(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)}return r.tail===null?(G(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=je(),e.sibling=null,n=so.current,j(so,i?n&1|2:n&1),V&&Di(t,r.treeForkCount),e);case 22:case 23:return oo(t),$a(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(G(t),t.subtreeFlags&6&&(t.flags|=8192)):G(t),n=t.updateQueue,n!==null&&Fc(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&&A(ha),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),qi(H),G(t),null;case 25:return null;case 30:return null}throw Error(a(156,t.tag))}function Rc(e,t){switch(Ai(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return qi(H),ge(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ve(t),null;case 31:if(t.memoizedState!==null){if(oo(t),t.alternate===null)throw Error(a(340));Bi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(oo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(a(340));Bi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return A(so),null;case 4:return ge(),null;case 10:return qi(t.type),null;case 22:case 23:return oo(t),$a(),e!==null&&A(ha),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return qi(H),null;case 25:return null;default:return null}}function zc(e,t){switch(Ai(t),t.tag){case 3:qi(H),ge();break;case 26:case 27:case 5:ve(t);break;case 4:ge();break;case 31:t.memoizedState!==null&&oo(t);break;case 13:oo(t);break;case 19:A(so);break;case 10:qi(t.type);break;case 22:case 23:oo(t),$a(),e!==null&&A(ha);break;case 24:qi(H)}}function Bc(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 Vc(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 Hc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Ja(t,n)}catch(t){Z(e,e.return,t)}}}function Uc(e,t,n){n.props=Gs(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Z(e,t,n)}}function Wc(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: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 Gc(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 Kc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){Z(e,e.return,t)}}function qc(e,t,n){try{var r=e.stateNode;Fd(r,e.type,n,t),r[ft]=t}catch(t){Z(e,e.return,t)}}function Jc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Zd(e.type)||e.tag===4}function Yc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Jc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Zd(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Xc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=en));else if(r!==4&&(r===27&&Zd(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Xc(e,t,n),e=e.sibling;e!==null;)Xc(e,t,n),e=e.sibling}function Zc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&Zd(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Zc(e,t,n),e=e.sibling;e!==null;)Zc(e,t,n),e=e.sibling}function Qc(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Pd(t,r,n),t[dt]=e,t[ft]=n}catch(t){Z(e,e.return,t)}}var $c=!1,el=!1,tl=!1,nl=typeof WeakSet==`function`?WeakSet:Set,rl=null;function il(e,t){if(e=e.containerInfo,Rd=sp,e=Er(e),Dr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||i!==0&&f.nodeType!==3||(c=s+i),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===i&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(zd={focusedElem:e,selectionRange:n},sp=!1,rl=t;rl!==null;)if(t=rl,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,rl=e;else for(;rl!==null;){switch(t=rl,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n title`))),Pd(o,r,n),o[dt]=e,St(o),r=o;break a;case`link`:var s=Vf(`link`,`href`,i).get(r+(n.href||``));if(s){for(var c=0;cg&&(o=g,g=h,h=o);var _=wr(s,h),v=wr(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,D.T=null,n=lu,lu=null;var o=au,s=su;if(iu=0,ou=au=null,su=0,K&6)throw Error(a(331));var c=K;if(K|=4,Pl(o.current),El(o,o.current,s,n),K=c,id(0,!1),Ve&&typeof Ve.onPostCommitFiberRoot==`function`)try{Ve.onPostCommitFiberRoot(Be,o)}catch{}return!0}finally{O.p=i,D.T=r,Vu(e,t)}}function Wu(e,t,n){t=_i(n,t),t=Zs(e.stateNode,t,2),e=Va(e,t,2),e!==null&&(nt(e,2),rd(e))}function Z(e,t,n){if(e.tag===3)Wu(e,e,n);else for(;t!==null;){if(t.tag===3){Wu(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(ru===null||!ru.has(r))){e=_i(n,e),n=Qs(2),r=Va(t,n,2),r!==null&&($s(n,r,t,e),nt(r,2),rd(r));break}}t=t.return}}function Gu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Rl;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)||(Hl=!0,i.add(n),e=Ku.bind(null,e,t,n),t.then(e,e))}function Ku(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,q===e&&(Y&n)===n&&(Wl===4||Wl===3&&(Y&62914560)===Y&&300>je()-$l?!(K&2)&&Su(e,0):ql|=n,Yl===Y&&(Yl=0)),rd(e)}function qu(e,t){t===0&&(t=et()),e=ni(e,t),e!==null&&(nt(e,t),rd(e))}function Ju(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),qu(e,n)}function Yu(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(a(314))}r!==null&&r.delete(t),qu(e,n)}function Xu(e,t){return De(e,t)}var Zu=null,Qu=null,$u=!1,ed=!1,td=!1,nd=0;function rd(e){e!==Qu&&e.next===null&&(Qu===null?Zu=Qu=e:Qu=Qu.next=e),ed=!0,$u||($u=!0,ud())}function id(e,t){if(!td&&ed){td=!0;do for(var n=!1,r=Zu;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-Ue(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,ld(r,a))}else a=Y,a=Ze(r,r===q?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||Qe(r,a)||(n=!0,ld(r,a));r=r.next}while(n);td=!1}}function ad(){od()}function od(){ed=$u=!1;var e=0;nd!==0&&Gd()&&(e=nd);for(var t=je(),n=null,r=Zu;r!==null;){var i=r.next,a=sd(r,t);a===0?(r.next=null,n===null?Zu=i:n.next=i,i===null&&(Qu=n)):(n=r,(e!==0||a&3)&&(ed=!0)),r=i}iu!==0&&iu!==5||id(e,!1),nd!==0&&(nd=0)}function sd(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&&Id(d)&&(c=c.responseEnd,o+=u*(c`u`?null:document;function xf(e,t,n){var r=bf;if(r&&typeof t==`string`&&t){var i=Bt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),hf.has(i)||(hf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Pd(t,`link`,e),St(t),r.head.appendChild(t)))}}function Sf(e){_f.D(e),xf(`dns-prefetch`,e,null)}function Cf(e,t){_f.C(e,t),xf(`preconnect`,e,t)}function wf(e,t,n){_f.L(e,t,n);var r=bf;if(r&&e&&t){var i=`link[rel="preload"][as="`+Bt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Bt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Bt(n.imageSizes)+`"]`)):i+=`[href="`+Bt(e)+`"]`;var a=i;switch(t){case`style`:a=Af(e);break;case`script`:a=Pf(e)}mf.has(a)||(e=h({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),mf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(jf(a))||t===`script`&&r.querySelector(Ff(a))||(t=r.createElement(`link`),Pd(t,`link`,e),St(t),r.head.appendChild(t)))}}function Tf(e,t){_f.m(e,t);var n=bf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Bt(r)+`"][href="`+Bt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Pf(e)}if(!mf.has(a)&&(e=h({rel:`modulepreload`,href:e},t),mf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Ff(a)))return}r=n.createElement(`link`),Pd(r,`link`,e),St(r),n.head.appendChild(r)}}}function Ef(e,t,n){_f.S(e,t,n);var r=bf;if(r&&e){var i=F(r).hoistableStyles,a=Af(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(jf(a)))s.loading=5;else{e=h({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=mf.get(a))&&Rf(e,n);var c=o=r.createElement(`link`);St(c),Pd(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,Lf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Df(e,t){_f.X(e,t);var n=bf;if(n&&e){var r=F(n).hoistableScripts,i=Pf(e),a=r.get(i);a||(a=n.querySelector(Ff(i)),a||(e=h({src:e,async:!0},t),(t=mf.get(i))&&zf(e,t),a=n.createElement(`script`),St(a),Pd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Of(e,t){_f.M(e,t);var n=bf;if(n&&e){var r=F(n).hoistableScripts,i=Pf(e),a=r.get(i);a||(a=n.querySelector(Ff(i)),a||(e=h({src:e,async:!0,type:`module`},t),(t=mf.get(i))&&zf(e,t),a=n.createElement(`script`),St(a),Pd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function kf(e,t,n,r){var i=(i=pe.current)?gf(i):null;if(!i)throw Error(a(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Af(n.href),n=F(i).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,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=Af(n.href);var o=F(i).hoistableStyles,s=o.get(e);if(s||(i=i.ownerDocument||i,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=i.querySelector(jf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),mf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},mf.set(e,n),o||Nf(i,e,n,s.state))),t&&r===null)throw Error(a(528,``));return s}if(t&&r!==null)throw Error(a(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Pf(n),n=F(i).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(a(444,e))}}function Af(e){return`href="`+Bt(e)+`"`}function jf(e){return`link[rel="stylesheet"][`+e+`]`}function Mf(e){return h({},e,{"data-precedence":e.precedence,precedence:null})}function Nf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Pd(t,`link`,n),St(t),e.head.appendChild(t))}function Pf(e){return`[src="`+Bt(e)+`"]`}function Ff(e){return`script[async]`+e}function If(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Bt(n.href)+`"]`);if(r)return t.instance=r,St(r),r;var i=h({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),St(r),Pd(r,`style`,i),Lf(r,n.precedence,e),t.instance=r;case`stylesheet`:i=Af(n.href);var o=e.querySelector(jf(i));if(o)return t.state.loading|=4,t.instance=o,St(o),o;r=Mf(n),(i=mf.get(i))&&Rf(r,i),o=(e.ownerDocument||e).createElement(`link`),St(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Pd(o,`link`,r),t.state.loading|=4,Lf(o,n.precedence,e),t.instance=o;case`script`:return o=Pf(n.src),(i=e.querySelector(Ff(o)))?(t.instance=i,St(i),i):(r=n,(i=mf.get(o))&&(r=h({},n),zf(r,i)),e=e.ownerDocument||e,i=e.createElement(`script`),St(i),Pd(i,`link`,r),e.head.appendChild(i),t.instance=i);case`void`:return null;default:throw Error(a(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Lf(r,n.precedence,e));return t.instance}function Lf(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 Uf(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 Wf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Gf(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=Af(r.href),a=t.querySelector(jf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Jf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,St(a);return}a=t.ownerDocument||t,r=Mf(r),(i=mf.get(i))&&Rf(r,i),a=a.createElement(`link`),St(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Pd(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=Jf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var Kf=0;function qf(e,t){return e.stylesheets&&e.count===0&&Xf(e,e.stylesheets),0Kf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Jf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Xf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Yf=null;function Xf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Yf=new Map,t.forEach(Zf,e),Yf=null,Jf.call(e))}function Zf(e,t){if(!(t.state.loading&4)){var n=Yf.get(e);if(n)var r=n.get(null);else{n=new Map,Yf.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=l()})),d=i(),f=u(),p=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),m=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),h=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),g=e=>{let t=h(e);return t.charAt(0).toUpperCase()+t.slice(1)},_={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`},v=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},y=(0,d.createContext)({}),b=()=>(0,d.useContext)(y),x=(0,d.forwardRef)(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:r,className:i=``,children:a,iconNode:o,...s},c)=>{let{size:l=24,strokeWidth:u=2,absoluteStrokeWidth:f=!1,color:m=`currentColor`,className:h=``}=b()??{},g=r??f?Number(n??u)*24/Number(t??l):n??u;return(0,d.createElement)(`svg`,{ref:c,..._,width:t??l??_.width,height:t??l??_.height,stroke:e??m,strokeWidth:g,className:p(`lucide`,h,i),...!a&&!v(s)&&{"aria-hidden":`true`},...s},[...o.map(([e,t])=>(0,d.createElement)(e,t)),...Array.isArray(a)?a:[a]])}),S=(e,t)=>{let n=(0,d.forwardRef)(({className:n,...r},i)=>(0,d.createElement)(x,{ref:i,iconNode:t,className:p(`lucide-${m(g(e))}`,`lucide-${e}`,n),...r}));return n.displayName=g(e),n},C=S(`activity`,[[`path`,{d:`M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2`,key:`169zse`}]]),w=S(`brain`,[[`path`,{d:`M12 18V5`,key:`adv99a`}],[`path`,{d:`M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4`,key:`1e3is1`}],[`path`,{d:`M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5`,key:`1gqd8o`}],[`path`,{d:`M17.997 5.125a4 4 0 0 1 2.526 5.77`,key:`iwvgf7`}],[`path`,{d:`M18 18a4 4 0 0 0 2-7.464`,key:`efp6ie`}],[`path`,{d:`M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517`,key:`1gq6am`}],[`path`,{d:`M6 18a4 4 0 0 1-2-7.464`,key:`k1g0md`}],[`path`,{d:`M6.003 5.125a4 4 0 0 0-2.526 5.77`,key:`q97ue3`}]]),T=S(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]),ee=S(`chevron-right`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]),te=S(`circle-check`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),ne=S(`clock`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}]]),re=S(`cpu`,[[`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`}]]),ie=S(`crosshair`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`22`,x2:`18`,y1:`12`,y2:`12`,key:`l9bcsi`}],[`line`,{x1:`6`,x2:`2`,y1:`12`,y2:`12`,key:`13hhkx`}],[`line`,{x1:`12`,x2:`12`,y1:`6`,y2:`2`,key:`10w3f3`}],[`line`,{x1:`12`,x2:`12`,y1:`22`,y2:`18`,key:`15g9kq`}]]),ae=S(`database`,[[`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`}]]),E=S(`file-text`,[[`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`}]]),oe=S(`folder-tree`,[[`path`,{d:`M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z`,key:`hod4my`}],[`path`,{d:`M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.9a1 1 0 0 1-.88-.55l-.42-.85a1 1 0 0 0-.92-.6H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z`,key:`w4yl2u`}],[`path`,{d:`M3 5a2 2 0 0 0 2 2h3`,key:`f2jnh7`}],[`path`,{d:`M3 3v13a2 2 0 0 0 2 2h3`,key:`k8epm1`}]]),se=S(`funnel`,[[`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`}]]),ce=S(`globe`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20`,key:`13o1zl`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}]]),D=S(`hammer`,[[`path`,{d:`m15 12-9.373 9.373a1 1 0 0 1-3.001-3L12 9`,key:`1hayfq`}],[`path`,{d:`m18 15 4-4`,key:`16gjal`}],[`path`,{d:`m21.5 11.5-1.914-1.914A2 2 0 0 1 19 8.172v-.344a2 2 0 0 0-.586-1.414l-1.657-1.657A6 6 0 0 0 12.516 3H9l1.243 1.243A6 6 0 0 1 12 8.485V10l2 2h1.172a2 2 0 0 1 1.414.586L18.5 14.5`,key:`15ts47`}]]),O=S(`house`,[[`path`,{d:`M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8`,key:`5wwlr5`}],[`path`,{d:`M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z`,key:`r6nss1`}]]),le=S(`maximize`,[[`path`,{d:`M8 3H5a2 2 0 0 0-2 2v3`,key:`1dcmit`}],[`path`,{d:`M21 8V5a2 2 0 0 0-2-2h-3`,key:`1e4gt3`}],[`path`,{d:`M3 16v3a2 2 0 0 0 2 2h3`,key:`wsl5sc`}],[`path`,{d:`M16 21h3a2 2 0 0 0 2-2v-3`,key:`18trek`}]]),ue=S(`search`,[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]),de=S(`settings`,[[`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`}]]),k=S(`star`,[[`path`,{d:`M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z`,key:`r04s7s`}]]),A=S(`target`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`circle`,{cx:`12`,cy:`12`,r:`6`,key:`1vlfrh`}],[`circle`,{cx:`12`,cy:`12`,r:`2`,key:`1c9p78`}]]),j=S(`wrench`,[[`path`,{d:`M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z`,key:`1ngwbx`}]]),fe=S(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),M=S(`zap`,[[`path`,{d:`M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z`,key:`1xq2db`}]]),pe=S(`zoom-in`,[[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}],[`line`,{x1:`21`,x2:`16.65`,y1:`21`,y2:`16.65`,key:`13gj7c`}],[`line`,{x1:`11`,x2:`11`,y1:`8`,y2:`14`,key:`1vmskp`}],[`line`,{x1:`8`,x2:`14`,y1:`11`,y2:`11`,key:`durymu`}]]),me=S(`zoom-out`,[[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}],[`line`,{x1:`21`,x2:`16.65`,y1:`21`,y2:`16.65`,key:`13gj7c`}],[`line`,{x1:`8`,x2:`14`,y1:`11`,y2:`11`,key:`durymu`}]]);function he(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t{let n=Array(e.length+t.length);for(let t=0;t({classGroupId:e,validator:t}),ye=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),be=`-`,xe=[],Se=`arbitrary..`,Ce=e=>{let t=Ee(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return Te(e);let n=e.split(be);return we(n,n[0]===``&&n.length>1?1:0,t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?_e(i,t):t:i||xe}return n[e]||xe}}},we=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=we(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(be):e.slice(t).join(be),s=a.length;for(let e=0;ee.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?Se+r:void 0})(),Ee=e=>{let{theme:t,classGroups:n}=e;return De(n,t)},De=(e,t)=>{let n=ye();for(let r in e){let i=e[r];Oe(i,n,r,t)}return n},Oe=(e,t,n,r)=>{let i=e.length;for(let a=0;a{if(typeof e==`string`){Ae(e,t,n);return}if(typeof e==`function`){je(e,t,n,r);return}Me(e,t,n,r)},Ae=(e,t,n)=>{let r=e===``?t:Ne(t,e);r.classGroupId=n},je=(e,t,n,r)=>{if(Pe(e)){Oe(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(ve(n,e))},Me=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e{let n=e,r=t.split(be),i=r.length;for(let e=0;e`isThemeGetter`in e&&e.isThemeGetter===!0,Fe=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},Ie=`!`,Le=`:`,Re=[],ze=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),Be=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;si?a-i:void 0;return ze(t,l,c,u)};if(t){let e=t+Le,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):ze(Re,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},Ve=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},He=e=>({cache:Fe(e.cacheSize),parseClassName:Be(e),sortModifiers:Ve(e),...Ce(e)}),Ue=/\s+/,We=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a}=t,o=[],s=e.trim().split(Ue),c=``;for(let e=s.length-1;e>=0;--e){let t=s[e],{isExternal:l,modifiers:u,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:p}=n(t);if(l){c=t+(c.length>0?` `+c:c);continue}let m=!!p,h=r(m?f.substring(0,p):f);if(!h){if(!m){c=t+(c.length>0?` `+c:c);continue}if(h=r(f),!h){c=t+(c.length>0?` `+c:c);continue}m=!1}let g=u.length===0?``:u.length===1?u[0]:a(u).join(`:`),_=d?g+Ie:g,v=_+h;if(o.indexOf(v)>-1)continue;o.push(v);let y=i(h,m);for(let e=0;e0?` `+c:c)}return c},Ge=(...e)=>{let t=0,n,r,i=``;for(;t{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r{let n,r,i,a,o=o=>(n=He(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=We(e,n);return i(e,a),a};return a=o,(...e)=>a(Ge(...e))},Je=[],Ye=e=>{let t=t=>t[e]||Je;return t.isThemeGetter=!0,t},Xe=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ze=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Qe=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,$e=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,et=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,tt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,nt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,rt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,it=e=>Qe.test(e),N=e=>!!e&&!Number.isNaN(Number(e)),at=e=>!!e&&Number.isInteger(Number(e)),ot=e=>e.endsWith(`%`)&&N(e.slice(0,-1)),st=e=>$e.test(e),ct=()=>!0,lt=e=>et.test(e)&&!tt.test(e),ut=()=>!1,dt=e=>nt.test(e),ft=e=>rt.test(e),pt=e=>!P(e)&&!F(e),mt=e=>kt(e,Nt,ut),P=e=>Xe.test(e),ht=e=>kt(e,Pt,lt),gt=e=>kt(e,Ft,N),_t=e=>kt(e,Lt,ct),vt=e=>kt(e,It,ut),yt=e=>kt(e,jt,ut),bt=e=>kt(e,Mt,ft),xt=e=>kt(e,Rt,dt),F=e=>Ze.test(e),St=e=>At(e,Pt),Ct=e=>At(e,It),wt=e=>At(e,jt),Tt=e=>At(e,Nt),Et=e=>At(e,Mt),Dt=e=>At(e,Rt,!0),Ot=e=>At(e,Lt,!0),kt=(e,t,n)=>{let r=Xe.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},At=(e,t,n=!1)=>{let r=Ze.exec(e);return r?r[1]?t(r[1]):n:!1},jt=e=>e===`position`||e===`percentage`,Mt=e=>e===`image`||e===`url`,Nt=e=>e===`length`||e===`size`||e===`bg-size`,Pt=e=>e===`length`,Ft=e=>e===`number`,It=e=>e===`family-name`,Lt=e=>e===`number`||e===`weight`,Rt=e=>e===`shadow`,zt=qe(()=>{let e=Ye(`color`),t=Ye(`font`),n=Ye(`text`),r=Ye(`font-weight`),i=Ye(`tracking`),a=Ye(`leading`),o=Ye(`breakpoint`),s=Ye(`container`),c=Ye(`spacing`),l=Ye(`radius`),u=Ye(`shadow`),d=Ye(`inset-shadow`),f=Ye(`text-shadow`),p=Ye(`drop-shadow`),m=Ye(`blur`),h=Ye(`perspective`),g=Ye(`aspect`),_=Ye(`ease`),v=Ye(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),F,P],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[F,P,c],T=()=>[it,`full`,`auto`,...w()],ee=()=>[at,`none`,`subgrid`,F,P],te=()=>[`auto`,{span:[`full`,at,F,P]},at,F,P],ne=()=>[at,`auto`,F,P],re=()=>[`auto`,`min`,`max`,`fr`,F,P],ie=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],ae=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],E=()=>[`auto`,...w()],oe=()=>[it,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],se=()=>[it,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],ce=()=>[it,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],D=()=>[e,F,P],O=()=>[...b(),wt,yt,{position:[F,P]}],le=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],ue=()=>[`auto`,`cover`,`contain`,Tt,mt,{size:[F,P]}],de=()=>[ot,St,ht],k=()=>[``,`none`,`full`,l,F,P],A=()=>[``,N,St,ht],j=()=>[`solid`,`dashed`,`dotted`,`double`],fe=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],M=()=>[N,ot,wt,yt],pe=()=>[``,`none`,m,F,P],me=()=>[`none`,N,F,P],he=()=>[`none`,N,F,P],ge=()=>[N,F,P],_e=()=>[it,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[st],breakpoint:[st],color:[ct],container:[st],"drop-shadow":[st],ease:[`in`,`out`,`in-out`],font:[pt],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[st],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[st],shadow:[st],spacing:[`px`,N],text:[st],"text-shadow":[st],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,it,P,F,g]}],container:[`container`],columns:[{columns:[N,P,F,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[at,`auto`,F,P]}],basis:[{basis:[it,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[N,it,`auto`,`initial`,`none`,P]}],grow:[{grow:[``,N,F,P]}],shrink:[{shrink:[``,N,F,P]}],order:[{order:[at,`first`,`last`,`none`,F,P]}],"grid-cols":[{"grid-cols":ee()}],"col-start-end":[{col:te()}],"col-start":[{"col-start":ne()}],"col-end":[{"col-end":ne()}],"grid-rows":[{"grid-rows":ee()}],"row-start-end":[{row:te()}],"row-start":[{"row-start":ne()}],"row-end":[{"row-end":ne()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":re()}],"auto-rows":[{"auto-rows":re()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...ie(),`normal`]}],"justify-items":[{"justify-items":[...ae(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...ae()]}],"align-content":[{content:[`normal`,...ie()]}],"align-items":[{items:[...ae(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...ae(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":ie()}],"place-items":[{"place-items":[...ae(),`baseline`]}],"place-self":[{"place-self":[`auto`,...ae()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:E()}],mx:[{mx:E()}],my:[{my:E()}],ms:[{ms:E()}],me:[{me:E()}],mbs:[{mbs:E()}],mbe:[{mbe:E()}],mt:[{mt:E()}],mr:[{mr:E()}],mb:[{mb:E()}],ml:[{ml:E()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:oe()}],"inline-size":[{inline:[`auto`,...se()]}],"min-inline-size":[{"min-inline":[`auto`,...se()]}],"max-inline-size":[{"max-inline":[`none`,...se()]}],"block-size":[{block:[`auto`,...ce()]}],"min-block-size":[{"min-block":[`auto`,...ce()]}],"max-block-size":[{"max-block":[`none`,...ce()]}],w:[{w:[s,`screen`,...oe()]}],"min-w":[{"min-w":[s,`screen`,`none`,...oe()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...oe()]}],h:[{h:[`screen`,`lh`,...oe()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...oe()]}],"max-h":[{"max-h":[`screen`,`lh`,...oe()]}],"font-size":[{text:[`base`,n,St,ht]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,Ot,_t]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,ot,P]}],"font-family":[{font:[Ct,vt,t]}],"font-features":[{"font-features":[P]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,F,P]}],"line-clamp":[{"line-clamp":[N,`none`,F,gt]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":[`none`,F,P]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,F,P]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:D()}],"text-color":[{text:D()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...j(),`wavy`]}],"text-decoration-thickness":[{decoration:[N,`from-font`,`auto`,F,ht]}],"text-decoration-color":[{decoration:D()}],"underline-offset":[{"underline-offset":[N,`auto`,F,P]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,F,P]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,F,P]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:O()}],"bg-repeat":[{bg:le()}],"bg-size":[{bg:ue()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},at,F,P],radial:[``,F,P],conic:[at,F,P]},Et,bt]}],"bg-color":[{bg:D()}],"gradient-from-pos":[{from:de()}],"gradient-via-pos":[{via:de()}],"gradient-to-pos":[{to:de()}],"gradient-from":[{from:D()}],"gradient-via":[{via:D()}],"gradient-to":[{to:D()}],rounded:[{rounded:k()}],"rounded-s":[{"rounded-s":k()}],"rounded-e":[{"rounded-e":k()}],"rounded-t":[{"rounded-t":k()}],"rounded-r":[{"rounded-r":k()}],"rounded-b":[{"rounded-b":k()}],"rounded-l":[{"rounded-l":k()}],"rounded-ss":[{"rounded-ss":k()}],"rounded-se":[{"rounded-se":k()}],"rounded-ee":[{"rounded-ee":k()}],"rounded-es":[{"rounded-es":k()}],"rounded-tl":[{"rounded-tl":k()}],"rounded-tr":[{"rounded-tr":k()}],"rounded-br":[{"rounded-br":k()}],"rounded-bl":[{"rounded-bl":k()}],"border-w":[{border:A()}],"border-w-x":[{"border-x":A()}],"border-w-y":[{"border-y":A()}],"border-w-s":[{"border-s":A()}],"border-w-e":[{"border-e":A()}],"border-w-bs":[{"border-bs":A()}],"border-w-be":[{"border-be":A()}],"border-w-t":[{"border-t":A()}],"border-w-r":[{"border-r":A()}],"border-w-b":[{"border-b":A()}],"border-w-l":[{"border-l":A()}],"divide-x":[{"divide-x":A()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":A()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...j(),`hidden`,`none`]}],"divide-style":[{divide:[...j(),`hidden`,`none`]}],"border-color":[{border:D()}],"border-color-x":[{"border-x":D()}],"border-color-y":[{"border-y":D()}],"border-color-s":[{"border-s":D()}],"border-color-e":[{"border-e":D()}],"border-color-bs":[{"border-bs":D()}],"border-color-be":[{"border-be":D()}],"border-color-t":[{"border-t":D()}],"border-color-r":[{"border-r":D()}],"border-color-b":[{"border-b":D()}],"border-color-l":[{"border-l":D()}],"divide-color":[{divide:D()}],"outline-style":[{outline:[...j(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[N,F,P]}],"outline-w":[{outline:[``,N,St,ht]}],"outline-color":[{outline:D()}],shadow:[{shadow:[``,`none`,u,Dt,xt]}],"shadow-color":[{shadow:D()}],"inset-shadow":[{"inset-shadow":[`none`,d,Dt,xt]}],"inset-shadow-color":[{"inset-shadow":D()}],"ring-w":[{ring:A()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:D()}],"ring-offset-w":[{"ring-offset":[N,ht]}],"ring-offset-color":[{"ring-offset":D()}],"inset-ring-w":[{"inset-ring":A()}],"inset-ring-color":[{"inset-ring":D()}],"text-shadow":[{"text-shadow":[`none`,f,Dt,xt]}],"text-shadow-color":[{"text-shadow":D()}],opacity:[{opacity:[N,F,P]}],"mix-blend":[{"mix-blend":[...fe(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":fe()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[N]}],"mask-image-linear-from-pos":[{"mask-linear-from":M()}],"mask-image-linear-to-pos":[{"mask-linear-to":M()}],"mask-image-linear-from-color":[{"mask-linear-from":D()}],"mask-image-linear-to-color":[{"mask-linear-to":D()}],"mask-image-t-from-pos":[{"mask-t-from":M()}],"mask-image-t-to-pos":[{"mask-t-to":M()}],"mask-image-t-from-color":[{"mask-t-from":D()}],"mask-image-t-to-color":[{"mask-t-to":D()}],"mask-image-r-from-pos":[{"mask-r-from":M()}],"mask-image-r-to-pos":[{"mask-r-to":M()}],"mask-image-r-from-color":[{"mask-r-from":D()}],"mask-image-r-to-color":[{"mask-r-to":D()}],"mask-image-b-from-pos":[{"mask-b-from":M()}],"mask-image-b-to-pos":[{"mask-b-to":M()}],"mask-image-b-from-color":[{"mask-b-from":D()}],"mask-image-b-to-color":[{"mask-b-to":D()}],"mask-image-l-from-pos":[{"mask-l-from":M()}],"mask-image-l-to-pos":[{"mask-l-to":M()}],"mask-image-l-from-color":[{"mask-l-from":D()}],"mask-image-l-to-color":[{"mask-l-to":D()}],"mask-image-x-from-pos":[{"mask-x-from":M()}],"mask-image-x-to-pos":[{"mask-x-to":M()}],"mask-image-x-from-color":[{"mask-x-from":D()}],"mask-image-x-to-color":[{"mask-x-to":D()}],"mask-image-y-from-pos":[{"mask-y-from":M()}],"mask-image-y-to-pos":[{"mask-y-to":M()}],"mask-image-y-from-color":[{"mask-y-from":D()}],"mask-image-y-to-color":[{"mask-y-to":D()}],"mask-image-radial":[{"mask-radial":[F,P]}],"mask-image-radial-from-pos":[{"mask-radial-from":M()}],"mask-image-radial-to-pos":[{"mask-radial-to":M()}],"mask-image-radial-from-color":[{"mask-radial-from":D()}],"mask-image-radial-to-color":[{"mask-radial-to":D()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[N]}],"mask-image-conic-from-pos":[{"mask-conic-from":M()}],"mask-image-conic-to-pos":[{"mask-conic-to":M()}],"mask-image-conic-from-color":[{"mask-conic-from":D()}],"mask-image-conic-to-color":[{"mask-conic-to":D()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:O()}],"mask-repeat":[{mask:le()}],"mask-size":[{mask:ue()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,F,P]}],filter:[{filter:[``,`none`,F,P]}],blur:[{blur:pe()}],brightness:[{brightness:[N,F,P]}],contrast:[{contrast:[N,F,P]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,Dt,xt]}],"drop-shadow-color":[{"drop-shadow":D()}],grayscale:[{grayscale:[``,N,F,P]}],"hue-rotate":[{"hue-rotate":[N,F,P]}],invert:[{invert:[``,N,F,P]}],saturate:[{saturate:[N,F,P]}],sepia:[{sepia:[``,N,F,P]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,F,P]}],"backdrop-blur":[{"backdrop-blur":pe()}],"backdrop-brightness":[{"backdrop-brightness":[N,F,P]}],"backdrop-contrast":[{"backdrop-contrast":[N,F,P]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,N,F,P]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[N,F,P]}],"backdrop-invert":[{"backdrop-invert":[``,N,F,P]}],"backdrop-opacity":[{"backdrop-opacity":[N,F,P]}],"backdrop-saturate":[{"backdrop-saturate":[N,F,P]}],"backdrop-sepia":[{"backdrop-sepia":[``,N,F,P]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,F,P]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[N,`initial`,F,P]}],ease:[{ease:[`linear`,`initial`,_,F,P]}],delay:[{delay:[N,F,P]}],animate:[{animate:[`none`,v,F,P]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,F,P]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:me()}],"rotate-x":[{"rotate-x":me()}],"rotate-y":[{"rotate-y":me()}],"rotate-z":[{"rotate-z":me()}],scale:[{scale:he()}],"scale-x":[{"scale-x":he()}],"scale-y":[{"scale-y":he()}],"scale-z":[{"scale-z":he()}],"scale-3d":[`scale-3d`],skew:[{skew:ge()}],"skew-x":[{"skew-x":ge()}],"skew-y":[{"skew-y":ge()}],transform:[{transform:[F,P,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:_e()}],"translate-x":[{"translate-x":_e()}],"translate-y":[{"translate-y":_e()}],"translate-z":[{"translate-z":_e()}],"translate-none":[`translate-none`],accent:[{accent:D()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:D()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,F,P]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,F,P]}],fill:[{fill:[`none`,...D()]}],"stroke-w":[{stroke:[N,St,ht,gt]}],stroke:[{stroke:[`none`,...D()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`right`,`left`],"inset-y":[`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`mr`,`ml`],my:[`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-r`,`border-w-l`],"border-w-y":[`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-r`,`border-color-l`],"border-color-y":[`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function I(...e){return zt(ge(e))}var Bt=t((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})),L=t(((e,t)=>{t.exports=Bt()}))(),Vt=[{id:`dashboard`,label:`Dashboard`,icon:O},{id:`requirements`,label:`需求库`,icon:A},{id:`capabilities`,label:`能力库`,icon:re},{id:`tools`,label:`工具库`,icon:j},{id:`knowledge`,label:`知识库`,icon:E}];function Ht({activeTab:e,onTabChange:t}){return(0,L.jsxs)(`nav`,{className:`sticky top-0 z-50 h-[60px] bg-white/95 backdrop-blur-md border-b border-slate-100 shadow-sm flex items-center justify-between px-6`,children:[(0,L.jsxs)(`div`,{className:`flex items-center gap-8`,children:[(0,L.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,L.jsx)(`div`,{className:`w-9 h-9 bg-indigo-600 rounded-xl shadow-lg shadow-indigo-100 flex items-center justify-center text-white font-black`,children:`K`}),(0,L.jsx)(`span`,{className:`font-black text-lg tracking-tight text-slate-900`,children:`制作知识库`})]}),(0,L.jsx)(`div`,{className:`flex items-center gap-1 h-full pt-1`,children:Vt.map(n=>{let r=e===n.id,i=n.icon;return(0,L.jsxs)(`button`,{onClick:()=>t(n.id),className:I(`relative px-4 h-[59px] flex items-center gap-2 text-sm transition-colors`,r?`text-indigo-600 font-bold`:`text-slate-500 hover:text-slate-700 font-medium`),children:[(0,L.jsx)(i,{size:16}),n.label,r&&(0,L.jsx)(`div`,{className:`absolute bottom-0 left-0 w-full h-[2px] bg-indigo-600 rounded-t-full`})]},n.id)})})]}),(0,L.jsxs)(`div`,{className:`flex items-center gap-4`,children:[(0,L.jsxs)(`div`,{className:`relative`,children:[(0,L.jsx)(ue,{size:16,className:`absolute left-3 top-1/2 -translate-y-1/2 text-slate-400`}),(0,L.jsx)(`input`,{type:`text`,placeholder:`Search KnowHub...`,className:`bg-slate-50 border border-transparent rounded-xl py-2 pl-10 pr-4 w-64 text-sm focus:outline-none focus:ring-2 focus:ring-indigo-500/20 focus:bg-white focus:border-indigo-100 transition-all text-slate-700 placeholder:text-slate-400`})]}),(0,L.jsx)(`button`,{className:`h-8 w-8 flex items-center justify-center rounded-xl bg-slate-50 border border-slate-100 text-slate-400 hover:text-indigo-600 transition-colors`,children:(0,L.jsx)(de,{size:16})})]})]})}function Ut({children:e}){let[t,n]=(0,d.useState)(`dashboard`);return(0,L.jsxs)(`div`,{className:`min-h-screen bg-slate-50 flex flex-col`,children:[(0,L.jsx)(Ht,{activeTab:t,onTabChange:n}),(0,L.jsx)(`main`,{className:`flex-1 w-full max-w-[1600px] mx-auto p-6`,children:e(t)})]})}function Wt({node:e,onSelect:t,selectedId:n,level:r}){let[i,a]=(0,d.useState)(!0),o=e.children&&e.children.length>0,s=e.total_posts_count||0,c=e.node_status??0,l=0;l=s<10?0:s<50?1:s<100?2:s<300?3:s<800?4:5;let u={0:[{bg:`bg-slate-100`,border:`border-slate-200`,text:`text-slate-900`},{bg:`bg-slate-200`,border:`border-slate-300`,text:`text-slate-900`},{bg:`bg-slate-300`,border:`border-slate-400`,text:`text-slate-900`},{bg:`bg-slate-400`,border:`border-slate-500`,text:`text-slate-900`},{bg:`bg-slate-500`,border:`border-slate-600`,text:`text-white`},{bg:`bg-slate-600`,border:`border-slate-700`,text:`text-white`}],1:[{bg:`bg-blue-100`,border:`border-blue-200`,text:`text-blue-900`},{bg:`bg-blue-300`,border:`border-blue-400`,text:`text-blue-900`},{bg:`bg-blue-500`,border:`border-blue-600`,text:`text-white`},{bg:`bg-blue-600`,border:`border-blue-700`,text:`text-white`},{bg:`bg-blue-700`,border:`border-blue-800`,text:`text-white`},{bg:`bg-blue-900`,border:`border-blue-950`,text:`text-white`}],2:[{bg:`bg-green-100`,border:`border-green-200`,text:`text-green-900`},{bg:`bg-green-300`,border:`border-green-400`,text:`text-green-900`},{bg:`bg-green-500`,border:`border-green-600`,text:`text-white`},{bg:`bg-green-600`,border:`border-green-700`,text:`text-white`},{bg:`bg-green-700`,border:`border-green-800`,text:`text-white`},{bg:`bg-green-900`,border:`border-green-950`,text:`text-white`}],3:[{bg:`bg-cyan-100`,border:`border-cyan-200`,text:`text-cyan-900`},{bg:`bg-cyan-300`,border:`border-cyan-400`,text:`text-cyan-900`},{bg:`bg-cyan-500`,border:`border-cyan-600`,text:`text-white`},{bg:`bg-cyan-600`,border:`border-cyan-700`,text:`text-white`},{bg:`bg-cyan-700`,border:`border-cyan-800`,text:`text-white`},{bg:`bg-cyan-900`,border:`border-cyan-950`,text:`text-white`}]}[c][l],f=u.bg,p=u.border,m=u.text;return o&&(m=I(m,`font-extrabold`)),(0,L.jsxs)(`div`,{className:`flex flex-row items-start`,children:[(0,L.jsxs)(`div`,{className:I(`flex items-center px-3 py-1.5 rounded-md border shadow-[0_1px_2px_rgba(0,0,0,0.05)] cursor-pointer whitespace-nowrap transition-colors z-10 h-[34px]`,f,p,n===e.id?`ring-2 ring-indigo-500 ring-offset-1 border-indigo-400`:`hover:brightness-95`),onClick:()=>t(e),children:[(0,L.jsx)(`span`,{className:I(`text-xs font-bold mr-3`,m),children:e.name||`Root`}),e.id&&(0,L.jsx)(`span`,{className:`text-[10px] opacity-60 mr-2 font-mono`,children:e.id}),(0,L.jsxs)(`div`,{className:`flex text-[9px] bg-white/70 rounded px-1 group shadow-sm items-center`,children:[(0,L.jsx)(`span`,{className:`px-1 text-slate-500 font-medium`,children:e.total_element_count||0}),(0,L.jsxs)(`span`,{className:`px-1 font-bold text-slate-800 border-l border-white/50 pl-1`,children:[e.total_posts_count||0,` ▶`]})]}),o&&(0,L.jsx)(`button`,{className:`ml-2 px-1 text-slate-400 hover:text-slate-700 focus:outline-none transition-transform`,onClick:e=>{e.stopPropagation(),a(!i)},children:i?(0,L.jsx)(T,{size:14,className:`opacity-70`}):(0,L.jsx)(ee,{size:14,className:`opacity-70`})})]}),i&&o&&(0,L.jsxs)(`div`,{className:`flex flex-col relative ml-8`,children:[(0,L.jsx)(`div`,{className:`absolute -left-8 top-[17px] w-8 h-px bg-slate-300`}),e.children.map((e,i)=>(0,L.jsx)(`div`,{className:I(`relative pl-8 pb-3 flex items-start`,`before:absolute before:left-0 before:top-[17px] before:w-8 before:h-px before:bg-slate-300`,`after:absolute after:left-0 after:w-px after:bg-slate-300`,`first:after:top-[17px] first:after:bottom-0`,`last:after:top-0 last:after:bottom-[calc(100%-17px)]`,`[&:not(:first-child):not(:last-child)]:after:top-0 [&:not(:first-child):not(:last-child)]:after:bottom-0`,`first:last:after:hidden`),children:(0,L.jsx)(Wt,{node:e,onSelect:t,selectedId:n,level:r+1})},e.id||e.path||i))]})]})}function Gt({data:e,onSelect:t,selectedId:n}){let[r,i]=(0,d.useState)(1);return!e||!e.children?(0,L.jsxs)(`div`,{className:`bg-white rounded-3xl border border-slate-100 shadow-sm p-6 flex flex-col items-center justify-center min-h-[400px] text-slate-400`,children:[(0,L.jsx)(`div`,{className:`w-8 h-8 border-4 border-indigo-200 border-t-indigo-600 rounded-full animate-spin mb-4`}),`加载树形结构中... (请确保已重跑 python server.py)`]}):(0,L.jsxs)(`div`,{className:`bg-white rounded-3xl border border-slate-100 shadow-sm p-0 overflow-hidden flex flex-col h-[calc(100vh-160px)] min-h-[500px] relative`,children:[(0,L.jsxs)(`div`,{className:`absolute top-4 right-4 z-50 flex gap-2 bg-white/90 backdrop-blur p-1.5 rounded-lg shadow-sm border border-slate-200`,children:[(0,L.jsx)(`button`,{onClick:()=>i(e=>Math.min(e+.15,3)),className:`p-1.5 hover:bg-slate-100 rounded text-slate-600 transition-colors`,title:`放大`,children:(0,L.jsx)(pe,{size:18})}),(0,L.jsx)(`button`,{onClick:()=>i(e=>Math.max(e-.15,.3)),className:`p-1.5 hover:bg-slate-100 rounded text-slate-600 transition-colors`,title:`缩小`,children:(0,L.jsx)(me,{size:18})}),(0,L.jsx)(`button`,{onClick:()=>i(1),className:`p-1.5 hover:bg-slate-100 rounded text-slate-600 transition-colors`,title:`重置比例`,children:(0,L.jsx)(le,{size:18})})]}),(0,L.jsx)(`div`,{className:`flex-1 w-full h-full overflow-x-auto overflow-y-auto bg-slate-50/30 p-8 custom-scrollbar`,children:(0,L.jsx)(`div`,{className:`flex flex-col gap-8 select-none min-w-max pb-8 origin-top-left transition-all duration-200`,style:{zoom:r},children:(()=>{let r=[`形式`,`实质`,`意图`],i={形式:[],实质:[],意图:[]};return e.children.forEach(e=>{let t=e.source_type;t&&i[t]?i[t].push(e):(t===`形式`||t===`实质`||t===`意图`)&&(i[t]=[e])}),r.map(e=>{let r=i[e]||[];if(r.length===0)return null;let a={bg:`bg-slate-50`,border:`border-slate-500`,text:`text-slate-800`};return e===`形式`?a={bg:`bg-[#E3F2FD]`,border:`border-[#2196F3]`,text:`text-slate-800`}:e===`实质`?a={bg:`bg-[#FFF3E0]`,border:`border-[#FF9800]`,text:`text-slate-800`}:e===`意图`&&(a={bg:`bg-[#F1F8E9]`,border:`border-[#8BC34A]`,text:`text-slate-800`}),(0,L.jsxs)(`div`,{className:`flex flex-col`,children:[(0,L.jsxs)(`div`,{className:I(`px-4 py-3 border-l-[6px] text-sm font-bold w-full mb-4`,a.bg,a.border,a.text),children:[e,` 维度`]}),(0,L.jsx)(`div`,{className:`flex flex-col gap-6 pl-4`,children:r.map((e,r)=>(0,L.jsx)(Wt,{node:e,onSelect:t,selectedId:n,level:1},e.id||r))})]},e)})})()})})]})}function Kt(e,t){return function(){return e.apply(t,arguments)}}var{toString:qt}=Object.prototype,{getPrototypeOf:Jt}=Object,{iterator:Yt,toStringTag:Xt}=Symbol,Zt=(e=>t=>{let n=qt.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Qt=e=>(e=e.toLowerCase(),t=>Zt(t)===e),$t=e=>t=>typeof t===e,{isArray:en}=Array,tn=$t(`undefined`);function nn(e){return e!==null&&!tn(e)&&e.constructor!==null&&!tn(e.constructor)&&sn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var rn=Qt(`ArrayBuffer`);function an(e){let t;return t=typeof ArrayBuffer<`u`&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&rn(e.buffer),t}var on=$t(`string`),sn=$t(`function`),cn=$t(`number`),ln=e=>typeof e==`object`&&!!e,un=e=>e===!0||e===!1,dn=e=>{if(Zt(e)!==`object`)return!1;let t=Jt(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Xt in e)&&!(Yt in e)},fn=e=>{if(!ln(e)||nn(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},pn=Qt(`Date`),mn=Qt(`File`),hn=e=>!!(e&&e.uri!==void 0),gn=e=>e&&e.getParts!==void 0,_n=Qt(`Blob`),vn=Qt(`FileList`),yn=e=>ln(e)&&sn(e.pipe);function bn(){return typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{}}var xn=bn(),Sn=xn.FormData===void 0?void 0:xn.FormData,Cn=e=>{let t;return e&&(Sn&&e instanceof Sn||sn(e.append)&&((t=Zt(e))===`formdata`||t===`object`&&sn(e.toString)&&e.toString()===`[object FormData]`))},wn=Qt(`URLSearchParams`),[Tn,En,Dn,On]=[`ReadableStream`,`Request`,`Response`,`Headers`].map(Qt),kn=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``);function An(e,t,{allOwnKeys:n=!1}={}){if(e==null)return;let r,i;if(typeof e!=`object`&&(e=[e]),en(e))for(r=0,i=e.length;r0;)if(i=n[r],t===i.toLowerCase())return i;return null}var Mn=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:global,Nn=e=>!tn(e)&&e!==Mn;function Pn(){let{caseless:e,skipUndefined:t}=Nn(this)&&this||{},n={},r=(r,i)=>{if(i===`__proto__`||i===`constructor`||i===`prototype`)return;let a=e&&jn(n,i)||i;dn(n[a])&&dn(r)?n[a]=Pn(n[a],r):dn(r)?n[a]=Pn({},r):en(r)?n[a]=r.slice():(!t||!tn(r))&&(n[a]=r)};for(let e=0,t=arguments.length;e(An(t,(t,r)=>{n&&sn(t)?Object.defineProperty(e,r,{value:Kt(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,r,{value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),In=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Ln=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,`constructor`,{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,`super`,{value:t.prototype}),n&&Object.assign(e.prototype,n)},Rn=(e,t,n,r)=>{let i,a,o,s={};if(t||={},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)o=i[a],(!r||r(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=n!==!1&&Jt(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},zn=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;let r=e.indexOf(t,n);return r!==-1&&r===n},Bn=e=>{if(!e)return null;if(en(e))return e;let t=e.length;if(!cn(t))return null;let n=Array(t);for(;t-- >0;)n[t]=e[t];return n},Vn=(e=>t=>e&&t instanceof e)(typeof Uint8Array<`u`&&Jt(Uint8Array)),Hn=(e,t)=>{let n=(e&&e[Yt]).call(e),r;for(;(r=n.next())&&!r.done;){let n=r.value;t.call(e,n[0],n[1])}},Un=(e,t)=>{let n,r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Wn=Qt(`HTMLFormElement`),Gn=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),Kn=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),qn=Qt(`RegExp`),Jn=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),r={};An(n,(n,i)=>{let a;(a=t(n,i,e))!==!1&&(r[i]=a||n)}),Object.defineProperties(e,r)},Yn=e=>{Jn(e,(t,n)=>{if(sn(e)&&[`arguments`,`caller`,`callee`].indexOf(n)!==-1)return!1;let r=e[n];if(sn(r)){if(t.enumerable=!1,`writable`in t){t.writable=!1;return}t.set||=()=>{throw Error(`Can not rewrite read-only method '`+n+`'`)}}})},Xn=(e,t)=>{let n={},r=e=>{e.forEach(e=>{n[e]=!0})};return en(e)?r(e):r(String(e).split(t)),n},Zn=()=>{},Qn=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function $n(e){return!!(e&&sn(e.append)&&e[Xt]===`FormData`&&e[Yt])}var er=e=>{let t=Array(10),n=(e,r)=>{if(ln(e)){if(t.indexOf(e)>=0)return;if(nn(e))return e;if(!(`toJSON`in e)){t[r]=e;let i=en(e)?[]:{};return An(e,(e,t)=>{let a=n(e,r+1);!tn(a)&&(i[t]=a)}),t[r]=void 0,i}}return e};return n(e,0)},tr=Qt(`AsyncFunction`),nr=e=>e&&(ln(e)||sn(e))&&sn(e.then)&&sn(e.catch),rr=((e,t)=>e?setImmediate:t?((e,t)=>(Mn.addEventListener(`message`,({source:n,data:r})=>{n===Mn&&r===e&&t.length&&t.shift()()},!1),n=>{t.push(n),Mn.postMessage(e,`*`)}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate==`function`,sn(Mn.postMessage)),R={isArray:en,isArrayBuffer:rn,isBuffer:nn,isFormData:Cn,isArrayBufferView:an,isString:on,isNumber:cn,isBoolean:un,isObject:ln,isPlainObject:dn,isEmptyObject:fn,isReadableStream:Tn,isRequest:En,isResponse:Dn,isHeaders:On,isUndefined:tn,isDate:pn,isFile:mn,isReactNativeBlob:hn,isReactNative:gn,isBlob:_n,isRegExp:qn,isFunction:sn,isStream:yn,isURLSearchParams:wn,isTypedArray:Vn,isFileList:vn,forEach:An,merge:Pn,extend:Fn,trim:kn,stripBOM:In,inherits:Ln,toFlatObject:Rn,kindOf:Zt,kindOfTest:Qt,endsWith:zn,toArray:Bn,forEachEntry:Hn,matchAll:Un,isHTMLForm:Wn,hasOwnProperty:Kn,hasOwnProp:Kn,reduceDescriptors:Jn,freezeMethods:Yn,toObjectSet:Xn,toCamelCase:Gn,noop:Zn,toFiniteNumber:Qn,findKey:jn,global:Mn,isContextDefined:Nn,isSpecCompliantForm:$n,toJSONObject:er,isAsyncFn:tr,isThenable:nr,setImmediate:rr,asap:typeof queueMicrotask<`u`?queueMicrotask.bind(Mn):typeof process<`u`&&process.nextTick||rr,isIterable:e=>e!=null&&sn(e[Yt])},z=class e extends Error{static from(t,n,r,i,a,o){let s=new e(t.message,n||t.code,r,i,a);return s.cause=t,s.name=t.name,t.status!=null&&s.status==null&&(s.status=t.status),o&&Object.assign(s,o),s}constructor(e,t,n,r,i){super(e),Object.defineProperty(this,`message`,{value:e,enumerable:!0,writable:!0,configurable:!0}),this.name=`AxiosError`,this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:R.toJSONObject(this.config),code:this.code,status:this.status}}};z.ERR_BAD_OPTION_VALUE=`ERR_BAD_OPTION_VALUE`,z.ERR_BAD_OPTION=`ERR_BAD_OPTION`,z.ECONNABORTED=`ECONNABORTED`,z.ETIMEDOUT=`ETIMEDOUT`,z.ERR_NETWORK=`ERR_NETWORK`,z.ERR_FR_TOO_MANY_REDIRECTS=`ERR_FR_TOO_MANY_REDIRECTS`,z.ERR_DEPRECATED=`ERR_DEPRECATED`,z.ERR_BAD_RESPONSE=`ERR_BAD_RESPONSE`,z.ERR_BAD_REQUEST=`ERR_BAD_REQUEST`,z.ERR_CANCELED=`ERR_CANCELED`,z.ERR_NOT_SUPPORT=`ERR_NOT_SUPPORT`,z.ERR_INVALID_URL=`ERR_INVALID_URL`;function ir(e){return R.isPlainObject(e)||R.isArray(e)}function ar(e){return R.endsWith(e,`[]`)?e.slice(0,-2):e}function or(e,t,n){return e?e.concat(t).map(function(e,t){return e=ar(e),!n&&t?`[`+e+`]`:e}).join(n?`.`:``):t}function sr(e){return R.isArray(e)&&!e.some(ir)}var cr=R.toFlatObject(R,{},null,function(e){return/^is[A-Z]/.test(e)});function lr(e,t,n){if(!R.isObject(e))throw TypeError(`target must be an object`);t||=new FormData,n=R.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!R.isUndefined(t[e])});let r=n.metaTokens,i=n.visitor||l,a=n.dots,o=n.indexes,s=(n.Blob||typeof Blob<`u`&&Blob)&&R.isSpecCompliantForm(t);if(!R.isFunction(i))throw TypeError(`visitor must be a function`);function c(e){if(e===null)return``;if(R.isDate(e))return e.toISOString();if(R.isBoolean(e))return e.toString();if(!s&&R.isBlob(e))throw new z(`Blob is not supported. Use a Buffer instead.`);return R.isArrayBuffer(e)||R.isTypedArray(e)?s&&typeof Blob==`function`?new Blob([e]):Buffer.from(e):e}function l(e,n,i){let s=e;if(R.isReactNative(t)&&R.isReactNativeBlob(e))return t.append(or(i,n,a),c(e)),!1;if(e&&!i&&typeof e==`object`){if(R.endsWith(n,`{}`))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(R.isArray(e)&&sr(e)||(R.isFileList(e)||R.endsWith(n,`[]`))&&(s=R.toArray(e)))return n=ar(n),s.forEach(function(e,r){!(R.isUndefined(e)||e===null)&&t.append(o===!0?or([n],r,a):o===null?n:n+`[]`,c(e))}),!1}return ir(e)?!0:(t.append(or(i,n,a),c(e)),!1)}let u=[],d=Object.assign(cr,{defaultVisitor:l,convertValue:c,isVisitable:ir});function f(e,n){if(!R.isUndefined(e)){if(u.indexOf(e)!==-1)throw Error(`Circular reference detected in `+n.join(`.`));u.push(e),R.forEach(e,function(e,r){(!(R.isUndefined(e)||e===null)&&i.call(t,e,R.isString(r)?r.trim():r,n,d))===!0&&f(e,n?n.concat(r):[r])}),u.pop()}}if(!R.isObject(e))throw TypeError(`data must be an object`);return f(e),t}function ur(e){let t={"!":`%21`,"'":`%27`,"(":`%28`,")":`%29`,"~":`%7E`,"%20":`+`,"%00":`\0`};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function dr(e,t){this._pairs=[],e&&lr(e,this,t)}var fr=dr.prototype;fr.append=function(e,t){this._pairs.push([e,t])},fr.toString=function(e){let t=e?function(t){return e.call(this,t,ur)}:ur;return this._pairs.map(function(e){return t(e[0])+`=`+t(e[1])},``).join(`&`)};function pr(e){return encodeURIComponent(e).replace(/%3A/gi,`:`).replace(/%24/g,`$`).replace(/%2C/gi,`,`).replace(/%20/g,`+`)}function mr(e,t,n){if(!t)return e;let r=n&&n.encode||pr,i=R.isFunction(n)?{serialize:n}:n,a=i&&i.serialize,o;if(o=a?a(t,i):R.isURLSearchParams(t)?t.toString():new dr(t,i).toString(r),o){let t=e.indexOf(`#`);t!==-1&&(e=e.slice(0,t)),e+=(e.indexOf(`?`)===-1?`?`:`&`)+o}return e}var hr=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&=[]}forEach(e){R.forEach(this.handlers,function(t){t!==null&&e(t)})}},gr={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},_r={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<`u`?URLSearchParams:dr,FormData:typeof FormData<`u`?FormData:null,Blob:typeof Blob<`u`?Blob:null},protocols:[`http`,`https`,`file`,`blob`,`url`,`data`]},vr=n({hasBrowserEnv:()=>yr,hasStandardBrowserEnv:()=>xr,hasStandardBrowserWebWorkerEnv:()=>Sr,navigator:()=>br,origin:()=>Cr}),yr=typeof window<`u`&&typeof document<`u`,br=typeof navigator==`object`&&navigator||void 0,xr=yr&&(!br||[`ReactNative`,`NativeScript`,`NS`].indexOf(br.product)<0),Sr=typeof WorkerGlobalScope<`u`&&self instanceof WorkerGlobalScope&&typeof self.importScripts==`function`,Cr=yr&&window.location.href||`http://localhost`,wr={...vr,..._r};function Tr(e,t){return lr(e,new wr.classes.URLSearchParams,{visitor:function(e,t,n,r){return wr.isNode&&R.isBuffer(e)?(this.append(t,e.toString(`base64`)),!1):r.defaultVisitor.apply(this,arguments)},...t})}function Er(e){return R.matchAll(/\w+|\[(\w*)]/g,e).map(e=>e[0]===`[]`?``:e[1]||e[0])}function Dr(e){let t={},n=Object.keys(e),r,i=n.length,a;for(r=0;r=e.length;return a=!a&&R.isArray(r)?r.length:a,s?(R.hasOwnProp(r,a)?r[a]=[r[a],n]:r[a]=n,!o):((!r[a]||!R.isObject(r[a]))&&(r[a]=[]),t(e,n,r[a],i)&&R.isArray(r[a])&&(r[a]=Dr(r[a])),!o)}if(R.isFormData(e)&&R.isFunction(e.entries)){let n={};return R.forEachEntry(e,(e,r)=>{t(Er(e),r,n,0)}),n}return null}function kr(e,t,n){if(R.isString(e))try{return(t||JSON.parse)(e),R.trim(e)}catch(e){if(e.name!==`SyntaxError`)throw e}return(n||JSON.stringify)(e)}var Ar={transitional:gr,adapter:[`xhr`,`http`,`fetch`],transformRequest:[function(e,t){let n=t.getContentType()||``,r=n.indexOf(`application/json`)>-1,i=R.isObject(e);if(i&&R.isHTMLForm(e)&&(e=new FormData(e)),R.isFormData(e))return r?JSON.stringify(Or(e)):e;if(R.isArrayBuffer(e)||R.isBuffer(e)||R.isStream(e)||R.isFile(e)||R.isBlob(e)||R.isReadableStream(e))return e;if(R.isArrayBufferView(e))return e.buffer;if(R.isURLSearchParams(e))return t.setContentType(`application/x-www-form-urlencoded;charset=utf-8`,!1),e.toString();let a;if(i){if(n.indexOf(`application/x-www-form-urlencoded`)>-1)return Tr(e,this.formSerializer).toString();if((a=R.isFileList(e))||n.indexOf(`multipart/form-data`)>-1){let t=this.env&&this.env.FormData;return lr(a?{"files[]":e}:e,t&&new t,this.formSerializer)}}return i||r?(t.setContentType(`application/json`,!1),kr(e)):e}],transformResponse:[function(e){let t=this.transitional||Ar.transitional,n=t&&t.forcedJSONParsing,r=this.responseType===`json`;if(R.isResponse(e)||R.isReadableStream(e))return e;if(e&&R.isString(e)&&(n&&!this.responseType||r)){let n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e,this.parseReviver)}catch(e){if(n)throw e.name===`SyntaxError`?z.from(e,z.ERR_BAD_RESPONSE,this,null,this.response):e}}return e}],timeout:0,xsrfCookieName:`XSRF-TOKEN`,xsrfHeaderName:`X-XSRF-TOKEN`,maxContentLength:-1,maxBodyLength:-1,env:{FormData:wr.classes.FormData,Blob:wr.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:`application/json, text/plain, */*`,"Content-Type":void 0}}};R.forEach([`delete`,`get`,`head`,`post`,`put`,`patch`],e=>{Ar.headers[e]={}});var jr=R.toObjectSet([`age`,`authorization`,`content-length`,`content-type`,`etag`,`expires`,`from`,`host`,`if-modified-since`,`if-unmodified-since`,`last-modified`,`location`,`max-forwards`,`proxy-authorization`,`referer`,`retry-after`,`user-agent`]),Mr=e=>{let t={},n,r,i;return e&&e.split(` `).forEach(function(e){i=e.indexOf(`:`),n=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim(),!(!n||t[n]&&jr[n])&&(n===`set-cookie`?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+`, `+r:r)}),t},Nr=Symbol(`internals`);function Pr(e){return e&&String(e).trim().toLowerCase()}function Fr(e){return e===!1||e==null?e:R.isArray(e)?e.map(Fr):String(e).replace(/[\r\n]+$/,``)}function Ir(e){let t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}var Lr=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Rr(e,t,n,r,i){if(R.isFunction(r))return r.call(this,t,n);if(i&&(t=n),R.isString(t)){if(R.isString(r))return t.indexOf(r)!==-1;if(R.isRegExp(r))return r.test(t)}}function zr(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}function Br(e,t){let n=R.toCamelCase(` `+t);[`get`,`set`,`has`].forEach(r=>{Object.defineProperty(e,r+n,{value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})})}var Vr=class{constructor(e){e&&this.set(e)}set(e,t,n){let r=this;function i(e,t,n){let i=Pr(t);if(!i)throw Error(`header name must be a non-empty string`);let a=R.findKey(r,i);(!a||r[a]===void 0||n===!0||n===void 0&&r[a]!==!1)&&(r[a||t]=Fr(e))}let a=(e,t)=>R.forEach(e,(e,n)=>i(e,n,t));if(R.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(R.isString(e)&&(e=e.trim())&&!Lr(e))a(Mr(e),t);else if(R.isObject(e)&&R.isIterable(e)){let n={},r,i;for(let t of e){if(!R.isArray(t))throw TypeError(`Object iterator must return a key-value pair`);n[i=t[0]]=(r=n[i])?R.isArray(r)?[...r,t[1]]:[r,t[1]]:t[1]}a(n,t)}else e!=null&&i(t,e,n);return this}get(e,t){if(e=Pr(e),e){let n=R.findKey(this,e);if(n){let e=this[n];if(!t)return e;if(t===!0)return Ir(e);if(R.isFunction(t))return t.call(this,e,n);if(R.isRegExp(t))return t.exec(e);throw TypeError(`parser must be boolean|regexp|function`)}}}has(e,t){if(e=Pr(e),e){let n=R.findKey(this,e);return!!(n&&this[n]!==void 0&&(!t||Rr(this,this[n],n,t)))}return!1}delete(e,t){let n=this,r=!1;function i(e){if(e=Pr(e),e){let i=R.findKey(n,e);i&&(!t||Rr(n,n[i],i,t))&&(delete n[i],r=!0)}}return R.isArray(e)?e.forEach(i):i(e),r}clear(e){let t=Object.keys(this),n=t.length,r=!1;for(;n--;){let i=t[n];(!e||Rr(this,this[i],i,e,!0))&&(delete this[i],r=!0)}return r}normalize(e){let t=this,n={};return R.forEach(this,(r,i)=>{let a=R.findKey(n,i);if(a){t[a]=Fr(r),delete t[i];return}let o=e?zr(i):String(i).trim();o!==i&&delete t[i],t[o]=Fr(r),n[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return R.forEach(this,(n,r)=>{n!=null&&n!==!1&&(t[r]=e&&R.isArray(n)?n.join(`, `):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+`: `+t).join(` `)}getSetCookie(){return this.get(`set-cookie`)||[]}get[Symbol.toStringTag](){return`AxiosHeaders`}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){let t=(this[Nr]=this[Nr]={accessors:{}}).accessors,n=this.prototype;function r(e){let r=Pr(e);t[r]||(Br(n,e),t[r]=!0)}return R.isArray(e)?e.forEach(r):r(e),this}};Vr.accessor([`Content-Type`,`Content-Length`,`Accept`,`Accept-Encoding`,`User-Agent`,`Authorization`]),R.reduceDescriptors(Vr.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),R.freezeMethods(Vr);function Hr(e,t){let n=this||Ar,r=t||n,i=Vr.from(r.headers),a=r.data;return R.forEach(e,function(e){a=e.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function Ur(e){return!!(e&&e.__CANCEL__)}var Wr=class extends z{constructor(e,t,n){super(e??`canceled`,z.ERR_CANCELED,t,n),this.name=`CanceledError`,this.__CANCEL__=!0}};function Gr(e,t,n){let r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new z(`Request failed with status code `+n.status,[z.ERR_BAD_REQUEST,z.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Kr(e){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||``}function qr(e,t){e||=10;let n=Array(e),r=Array(e),i=0,a=0,o;return t=t===void 0?1e3:t,function(s){let c=Date.now(),l=r[a];o||=c,n[i]=s,r[i]=c;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-o{n=r,i=null,a&&=(clearTimeout(a),null),e(...t)};return[(...e)=>{let t=Date.now(),s=t-n;s>=r?o(e,t):(i=e,a||=setTimeout(()=>{a=null,o(i)},r-s))},()=>i&&o(i)]}var Yr=(e,t,n=3)=>{let r=0,i=qr(50,250);return Jr(n=>{let a=n.loaded,o=n.lengthComputable?n.total:void 0,s=a-r,c=i(s),l=a<=o;r=a,e({loaded:a,total:o,progress:o?a/o:void 0,bytes:s,rate:c||void 0,estimated:c&&o&&l?(o-a)/c:void 0,event:n,lengthComputable:o!=null,[t?`download`:`upload`]:!0})},n)},Xr=(e,t)=>{let n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Zr=e=>(...t)=>R.asap(()=>e(...t)),Qr=wr.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,wr.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(wr.origin),wr.navigator&&/(msie|trident)/i.test(wr.navigator.userAgent)):()=>!0,$r=wr.hasStandardBrowserEnv?{write(e,t,n,r,i,a,o){if(typeof document>`u`)return;let s=[`${e}=${encodeURIComponent(t)}`];R.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),R.isString(r)&&s.push(`path=${r}`),R.isString(i)&&s.push(`domain=${i}`),a===!0&&s.push(`secure`),R.isString(o)&&s.push(`SameSite=${o}`),document.cookie=s.join(`; `)},read(e){if(typeof document>`u`)return null;let t=document.cookie.match(RegExp(`(?:^|; )`+e+`=([^;]*)`));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,``,Date.now()-864e5,`/`)}}:{write(){},read(){return null},remove(){}};function ei(e){return typeof e==`string`?/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e):!1}function ti(e,t){return t?e.replace(/\/?\/$/,``)+`/`+t.replace(/^\/+/,``):e}function ni(e,t,n){let r=!ei(t);return e&&(r||n==0)?ti(e,t):t}var ri=e=>e instanceof Vr?{...e}:e;function ii(e,t){t||={};let n={};function r(e,t,n,r){return R.isPlainObject(e)&&R.isPlainObject(t)?R.merge.call({caseless:r},e,t):R.isPlainObject(t)?R.merge({},t):R.isArray(t)?t.slice():t}function i(e,t,n,i){if(!R.isUndefined(t))return r(e,t,n,i);if(!R.isUndefined(e))return r(void 0,e,n,i)}function a(e,t){if(!R.isUndefined(t))return r(void 0,t)}function o(e,t){if(!R.isUndefined(t))return r(void 0,t);if(!R.isUndefined(e))return r(void 0,e)}function s(n,i,a){if(a in t)return r(n,i);if(a in e)return r(void 0,n)}let c={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(e,t,n)=>i(ri(e),ri(t),n,!0)};return R.forEach(Object.keys({...e,...t}),function(r){if(r===`__proto__`||r===`constructor`||r===`prototype`)return;let a=R.hasOwnProp(c,r)?c[r]:i,o=a(e[r],t[r],r);R.isUndefined(o)&&a!==s||(n[r]=o)}),n}var ai=e=>{let t=ii({},e),{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:a,headers:o,auth:s}=t;if(t.headers=o=Vr.from(o),t.url=mr(ni(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&o.set(`Authorization`,`Basic `+btoa((s.username||``)+`:`+(s.password?unescape(encodeURIComponent(s.password)):``))),R.isFormData(n)){if(wr.hasStandardBrowserEnv||wr.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(R.isFunction(n.getHeaders)){let e=n.getHeaders(),t=[`content-type`,`content-length`];Object.entries(e).forEach(([e,n])=>{t.includes(e.toLowerCase())&&o.set(e,n)})}}if(wr.hasStandardBrowserEnv&&(r&&R.isFunction(r)&&(r=r(t)),r||r!==!1&&Qr(t.url))){let e=i&&a&&$r.read(a);e&&o.set(i,e)}return t},oi=typeof XMLHttpRequest<`u`&&function(e){return new Promise(function(t,n){let r=ai(e),i=r.data,a=Vr.from(r.headers).normalize(),{responseType:o,onUploadProgress:s,onDownloadProgress:c}=r,l,u,d,f,p;function m(){f&&f(),p&&p(),r.cancelToken&&r.cancelToken.unsubscribe(l),r.signal&&r.signal.removeEventListener(`abort`,l)}let h=new XMLHttpRequest;h.open(r.method.toUpperCase(),r.url,!0),h.timeout=r.timeout;function g(){if(!h)return;let r=Vr.from(`getAllResponseHeaders`in h&&h.getAllResponseHeaders());Gr(function(e){t(e),m()},function(e){n(e),m()},{data:!o||o===`text`||o===`json`?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:r,config:e,request:h}),h=null}`onloadend`in h?h.onloadend=g:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf(`file:`)===0)||setTimeout(g)},h.onabort=function(){h&&=(n(new z(`Request aborted`,z.ECONNABORTED,e,h)),null)},h.onerror=function(t){let r=new z(t&&t.message?t.message:`Network Error`,z.ERR_NETWORK,e,h);r.event=t||null,n(r),h=null},h.ontimeout=function(){let t=r.timeout?`timeout of `+r.timeout+`ms exceeded`:`timeout exceeded`,i=r.transitional||gr;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new z(t,i.clarifyTimeoutError?z.ETIMEDOUT:z.ECONNABORTED,e,h)),h=null},i===void 0&&a.setContentType(null),`setRequestHeader`in h&&R.forEach(a.toJSON(),function(e,t){h.setRequestHeader(t,e)}),R.isUndefined(r.withCredentials)||(h.withCredentials=!!r.withCredentials),o&&o!==`json`&&(h.responseType=r.responseType),c&&([d,p]=Yr(c,!0),h.addEventListener(`progress`,d)),s&&h.upload&&([u,f]=Yr(s),h.upload.addEventListener(`progress`,u),h.upload.addEventListener(`loadend`,f)),(r.cancelToken||r.signal)&&(l=t=>{h&&=(n(!t||t.type?new Wr(null,e,h):t),h.abort(),null)},r.cancelToken&&r.cancelToken.subscribe(l),r.signal&&(r.signal.aborted?l():r.signal.addEventListener(`abort`,l)));let _=Kr(r.url);if(_&&wr.protocols.indexOf(_)===-1){n(new z(`Unsupported protocol `+_+`:`,z.ERR_BAD_REQUEST,e));return}h.send(i||null)})},si=(e,t)=>{let{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n=new AbortController,r,i=function(e){if(!r){r=!0,o();let t=e instanceof Error?e:this.reason;n.abort(t instanceof z?t:new Wr(t instanceof Error?t.message:t))}},a=t&&setTimeout(()=>{a=null,i(new z(`timeout of ${t}ms exceeded`,z.ETIMEDOUT))},t),o=()=>{e&&=(a&&clearTimeout(a),a=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener(`abort`,i)}),null)};e.forEach(e=>e.addEventListener(`abort`,i));let{signal:s}=n;return s.unsubscribe=()=>R.asap(o),s}},ci=function*(e,t){let n=e.byteLength;if(!t||n{let i=li(e,t),a=0,o,s=e=>{o||(o=!0,r&&r(e))};return new ReadableStream({async pull(e){try{let{done:t,value:r}=await i.next();if(t){s(),e.close();return}let o=r.byteLength;n&&n(a+=o),e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel(e){return s(e),i.return()}},{highWaterMark:2})},fi=64*1024,{isFunction:pi}=R,mi=(({Request:e,Response:t})=>({Request:e,Response:t}))(R.global),{ReadableStream:hi,TextEncoder:gi}=R.global,_i=(e,...t)=>{try{return!!e(...t)}catch{return!1}},vi=e=>{e=R.merge.call({skipUndefined:!0},mi,e);let{fetch:t,Request:n,Response:r}=e,i=t?pi(t):typeof fetch==`function`,a=pi(n),o=pi(r);if(!i)return!1;let s=i&&pi(hi),c=i&&(typeof gi==`function`?(e=>t=>e.encode(t))(new gi):async e=>new Uint8Array(await new n(e).arrayBuffer())),l=a&&s&&_i(()=>{let e=!1,t=new hi,r=new n(wr.origin,{body:t,method:`POST`,get duplex(){return e=!0,`half`}}).headers.has(`Content-Type`);return t.cancel(),e&&!r}),u=o&&s&&_i(()=>R.isReadableStream(new r(``).body)),d={stream:u&&(e=>e.body)};i&&[`text`,`arrayBuffer`,`blob`,`formData`,`stream`].forEach(e=>{!d[e]&&(d[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new z(`Response type '${e}' is not supported`,z.ERR_NOT_SUPPORT,n)})});let f=async e=>{if(e==null)return 0;if(R.isBlob(e))return e.size;if(R.isSpecCompliantForm(e))return(await new n(wr.origin,{method:`POST`,body:e}).arrayBuffer()).byteLength;if(R.isArrayBufferView(e)||R.isArrayBuffer(e))return e.byteLength;if(R.isURLSearchParams(e)&&(e+=``),R.isString(e))return(await c(e)).byteLength},p=async(e,t)=>R.toFiniteNumber(e.getContentLength())??f(t);return async e=>{let{url:i,method:o,data:s,signal:c,cancelToken:f,timeout:m,onDownloadProgress:h,onUploadProgress:g,responseType:_,headers:v,withCredentials:y=`same-origin`,fetchOptions:b}=ai(e),x=t||fetch;_=_?(_+``).toLowerCase():`text`;let S=si([c,f&&f.toAbortSignal()],m),C=null,w=S&&S.unsubscribe&&(()=>{S.unsubscribe()}),T;try{if(g&&l&&o!==`get`&&o!==`head`&&(T=await p(v,s))!==0){let e=new n(i,{method:`POST`,body:s,duplex:`half`}),t;if(R.isFormData(s)&&(t=e.headers.get(`content-type`))&&v.setContentType(t),e.body){let[t,n]=Xr(T,Yr(Zr(g)));s=di(e.body,fi,t,n)}}R.isString(y)||(y=y?`include`:`omit`);let t=a&&`credentials`in n.prototype,c={...b,signal:S,method:o.toUpperCase(),headers:v.normalize().toJSON(),body:s,duplex:`half`,credentials:t?y:void 0};C=a&&new n(i,c);let f=await(a?x(C,b):x(i,c)),m=u&&(_===`stream`||_===`response`);if(u&&(h||m&&w)){let e={};[`status`,`statusText`,`headers`].forEach(t=>{e[t]=f[t]});let t=R.toFiniteNumber(f.headers.get(`content-length`)),[n,i]=h&&Xr(t,Yr(Zr(h),!0))||[];f=new r(di(f.body,fi,n,()=>{i&&i(),w&&w()}),e)}_||=`text`;let ee=await d[R.findKey(d,_)||`text`](f,e);return!m&&w&&w(),await new Promise((t,n)=>{Gr(t,n,{data:ee,headers:Vr.from(f.headers),status:f.status,statusText:f.statusText,config:e,request:C})})}catch(t){throw w&&w(),t&&t.name===`TypeError`&&/Load failed|fetch/i.test(t.message)?Object.assign(new z(`Network Error`,z.ERR_NETWORK,e,C,t&&t.response),{cause:t.cause||t}):z.from(t,t&&t.code,e,C,t&&t.response)}}},yi=new Map,bi=e=>{let t=e&&e.env||{},{fetch:n,Request:r,Response:i}=t,a=[r,i,n],o=a.length,s,c,l=yi;for(;o--;)s=a[o],c=l.get(s),c===void 0&&l.set(s,c=o?new Map:vi(t)),l=c;return c};bi();var xi={http:null,xhr:oi,fetch:{get:bi}};R.forEach(xi,(e,t)=>{if(e){try{Object.defineProperty(e,`name`,{value:t})}catch{}Object.defineProperty(e,`adapterName`,{value:t})}});var Si=e=>`- ${e}`,Ci=e=>R.isFunction(e)||e===null||e===!1;function wi(e,t){e=R.isArray(e)?e:[e];let{length:n}=e,r,i,a={};for(let o=0;o`adapter ${e} `+(t===!1?`is not supported by the environment`:`is not available in the build`));throw new z(`There is no suitable adapter to dispatch the request `+(n?e.length>1?`since : `+e.map(Si).join(` `):` `+Si(e[0]):`as no adapter specified`),`ERR_NOT_SUPPORT`)}return i}var Ti={getAdapter:wi,adapters:xi};function Ei(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Wr(null,e)}function Di(e){return Ei(e),e.headers=Vr.from(e.headers),e.data=Hr.call(e,e.transformRequest),[`post`,`put`,`patch`].indexOf(e.method)!==-1&&e.headers.setContentType(`application/x-www-form-urlencoded`,!1),Ti.getAdapter(e.adapter||Ar.adapter,e)(e).then(function(t){return Ei(e),t.data=Hr.call(e,e.transformResponse,t),t.headers=Vr.from(t.headers),t},function(t){return Ur(t)||(Ei(e),t&&t.response&&(t.response.data=Hr.call(e,e.transformResponse,t.response),t.response.headers=Vr.from(t.response.headers))),Promise.reject(t)})}var Oi=`1.14.0`,ki={};[`object`,`boolean`,`number`,`function`,`string`,`symbol`].forEach((e,t)=>{ki[e]=function(n){return typeof n===e||`a`+(t<1?`n `:` `)+e}});var Ai={};ki.transitional=function(e,t,n){function r(e,t){return`[Axios v`+Oi+`] Transitional option '`+e+`'`+t+(n?`. `+n:``)}return(n,i,a)=>{if(e===!1)throw new z(r(i,` has been removed`+(t?` in `+t:``)),z.ERR_DEPRECATED);return t&&!Ai[i]&&(Ai[i]=!0,console.warn(r(i,` has been deprecated since v`+t+` and will be removed in the near future`))),e?e(n,i,a):!0}},ki.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};function ji(e,t,n){if(typeof e!=`object`)throw new z(`options must be an object`,z.ERR_BAD_OPTION_VALUE);let r=Object.keys(e),i=r.length;for(;i-- >0;){let a=r[i],o=t[a];if(o){let t=e[a],n=t===void 0||o(t,a,e);if(n!==!0)throw new z(`option `+a+` must be `+n,z.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new z(`Unknown option `+a,z.ERR_BAD_OPTION)}}var Mi={assertOptions:ji,validators:ki},B=Mi.validators,V=class{constructor(e){this.defaults=e||{},this.interceptors={request:new hr,response:new hr}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let n=t.stack?t.stack.replace(/^.+\n/,``):``;try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,``))&&(e.stack+=` `+n):e.stack=n}catch{}}throw e}}_request(e,t){typeof e==`string`?(t||={},t.url=e):t=e||{},t=ii(this.defaults,t);let{transitional:n,paramsSerializer:r,headers:i}=t;n!==void 0&&Mi.assertOptions(n,{silentJSONParsing:B.transitional(B.boolean),forcedJSONParsing:B.transitional(B.boolean),clarifyTimeoutError:B.transitional(B.boolean),legacyInterceptorReqResOrdering:B.transitional(B.boolean)},!1),r!=null&&(R.isFunction(r)?t.paramsSerializer={serialize:r}:Mi.assertOptions(r,{encode:B.function,serialize:B.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls===void 0?t.allowAbsoluteUrls=!0:t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls),Mi.assertOptions(t,{baseUrl:B.spelling(`baseURL`),withXsrfToken:B.spelling(`withXSRFToken`)},!0),t.method=(t.method||this.defaults.method||`get`).toLowerCase();let a=i&&R.merge(i.common,i[t.method]);i&&R.forEach([`delete`,`get`,`head`,`post`,`put`,`patch`,`common`],e=>{delete i[e]}),t.headers=Vr.concat(a,i);let o=[],s=!0;this.interceptors.request.forEach(function(e){if(typeof e.runWhen==`function`&&e.runWhen(t)===!1)return;s&&=e.synchronous;let n=t.transitional||gr;n&&n.legacyInterceptorReqResOrdering?o.unshift(e.fulfilled,e.rejected):o.push(e.fulfilled,e.rejected)});let c=[];this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let l,u=0,d;if(!s){let e=[Di.bind(this),void 0];for(e.unshift(...o),e.push(...c),d=e.length,l=Promise.resolve(t);u{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t,r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,i){n.reason||(n.reason=new Wr(e,r,i),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}};function Pi(e){return function(t){return e.apply(null,t)}}function Fi(e){return R.isObject(e)&&e.isAxiosError===!0}var Ii={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Ii).forEach(([e,t])=>{Ii[t]=e});function Li(e){let t=new V(e),n=Kt(V.prototype.request,t);return R.extend(n,V.prototype,t,{allOwnKeys:!0}),R.extend(n,t,null,{allOwnKeys:!0}),n.create=function(t){return Li(ii(e,t))},n}var Ri=Li(Ar);Ri.Axios=V,Ri.CanceledError=Wr,Ri.CancelToken=Ni,Ri.isCancel=Ur,Ri.VERSION=Oi,Ri.toFormData=lr,Ri.AxiosError=z,Ri.Cancel=Ri.CanceledError,Ri.all=function(e){return Promise.all(e)},Ri.spread=Pi,Ri.isAxiosError=Fi,Ri.mergeConfig=ii,Ri.AxiosHeaders=Vr,Ri.formToJSON=e=>Or(R.isHTMLForm(e)?new FormData(e):e),Ri.getAdapter=Ti.getAdapter,Ri.HttpStatusCode=Ii,Ri.default=Ri;var zi=Ri.create({baseURL:`/api`,timeout:1e4}),Bi=new Map,Vi=300*1e3;async function Hi(e,t=!1){if(!t&&Bi.has(e)){let t=Bi.get(e);if(Date.now()-t.timestampHi(`/capability?limit=${e}&offset=${t}`),Wi=async(e=100,t=0)=>Hi(`/requirement?limit=${e}&offset=${t}`),Gi=async(e=100,t=0)=>Hi(`/tool?limit=${e}&offset=${t}`),Ki=async(e=1,t=100,n={})=>{let r=new URLSearchParams({page:e.toString(),page_size:t.toString()});for(let[e,t]of Object.entries(n))t&&r.append(e,t);return Hi(`/knowledge?${r.toString()}`)},qi=async(e,t={})=>{let n=new URLSearchParams({q:e});for(let[e,r]of Object.entries(t))r&&n.append(e,r);return Hi(`/knowledge/search?${n.toString()}`)},Ji=async(e,t=20)=>Hi(`/requirement/search?q=${encodeURIComponent(e)}&top_k=${t}`),Yi=async(e,t=20)=>Hi(`/capability/search?q=${encodeURIComponent(e)}&top_k=${t}`),Xi=async(e,t,n=20)=>{let r=new URLSearchParams({q:e,top_k:n.toString()});return t&&r.append(`status`,t),Hi(`/tool/search?${r.toString()}`)},Zi=async()=>Hi(`/knowledge/meta/tags`);function Qi({title:e,count:t,colorClass:n,borderClass:r,children:i,defaultOpen:a=!0}){let[o,s]=(0,d.useState)(a);return(0,L.jsxs)(`div`,{className:`mt-8 mb-4`,children:[(0,L.jsxs)(`div`,{className:I(`flex items-center gap-3 font-black text-[13px] tracking-wide mb-4 cursor-pointer select-none`,n),onClick:()=>s(!o),children:[(0,L.jsx)(`div`,{className:I(`w-6 h-[2px]`,r)}),e,` (`,t,`)`]}),o&&(0,L.jsx)(`div`,{className:`pl-1 mb-8`,children:i})]})}function $i({data:e,type:t,onDrillDown:n}){let r=A,i=`text-indigo-500`,a=``,o=``;return t===`req`?(r=A,i=`text-indigo-500`,a=e.description||e.id,o=e.status||`未满足`):t===`cap`?(r=w,i=`text-amber-500`,a=e.name||e.id):t===`tool`?(r=j,i=`text-emerald-500`,a=e.name||e.id,o=e.status):t===`know`&&(r=E,i=`text-violet-500`,a=e.task||e.content?.substring(0,40)||e.id),(0,L.jsx)(`div`,{className:`bg-white border border-slate-200 rounded-xl overflow-hidden shadow-sm hover:border-indigo-300 hover:shadow-md transition-all mb-2 w-full text-left`,children:(0,L.jsxs)(`div`,{className:`flex justify-between items-center p-3 cursor-pointer hover:bg-slate-50 transition-colors group`,onClick:()=>n(t,e),children:[(0,L.jsxs)(`div`,{className:`flex items-center gap-2 font-bold text-sm text-slate-800 flex-1 pr-2`,children:[(0,L.jsx)(r,{size:14,className:i}),(0,L.jsx)(`span`,{className:`truncate`,children:a})]}),(0,L.jsxs)(`div`,{className:`flex items-center gap-2 shrink-0`,children:[o&&(0,L.jsx)(`span`,{className:I(`text-[10px] px-2 py-0.5 rounded-full font-bold`,o===`已满足`||o===`已接入`||o===`正常`?`bg-emerald-50 text-emerald-700`:`bg-slate-100 text-slate-500`),children:o}),(0,L.jsx)(ee,{size:14,className:`text-slate-300 group-hover:text-indigo-500 transition-colors`})]})]})})}function ea(){let[e,t]=(0,d.useState)(null),[n,r]=(0,d.useState)(null),[i,a]=(0,d.useState)([]),[o,s]=(0,d.useState)({reqs:[],caps:[],tools:[],know:[]});(0,d.useEffect)(()=>{a(n?[{type:`node`,data:n}]:[])},[n]);let c=(e,t)=>{a(n=>[...n,{type:e,data:t}])},l=e=>{a(t=>t.slice(0,e+1))},[u,f]=(0,d.useState)({totalLeaves:0,reqCoveredNodes:0,reqCoveragePerc:0,toolCoveredNodes:0,toolCoveragePerc:0,verifiedNodes:0,verifiedCoveragePerc:0,weightedCoveragePerc:0,coveredPostsCnt:0,totalPostsCnt:0,toolCoveredPostsCnt:0,toolWeightedCoveragePerc:0,verifiedPostsCnt:0,verifiedWeightedCoveragePerc:0}),[p,m]=(0,d.useState)(`unweighted`),h=e=>{let t=[];return e.forEach(e=>{!e.children||e.children.length===0?t.push(e):t=t.concat(h(e.children))}),t};return(0,d.useEffect)(()=>{async function e(){try{let e=await(await fetch(`/category_tree.json`)).json();t(e);let n=h([e]),[r,i,a]=await Promise.all([Wi(1e3,0),Ui(1e3,0),Gi(1e3,0)]),o={results:[]};try{o=await Ki(1,1e3)}catch(e){console.warn(`knowledge API not available or failed`,e)}let c=r.results||[],l=i.results||[],u=a.results||[];s({reqs:c,caps:l,tools:u,know:o.results||[]});let d={};n.forEach(e=>{d[e.name]=[]});let p={},m=e=>{e.forEach(e=>{p[e.name]=e,e.children&&m(e.children)})};m([e]),c.forEach(e=>{(e.source_nodes||[]).forEach(t=>{let n=typeof t==`object`?t.node_name||t.name:t;n&&p[n]&&h([p[n]]).forEach(t=>{d[t.name]&&d[t.name].push(e)})})}),n.forEach(e=>{let t=d[e.name];if(e.has_requirement=!!(t&&t.length>0),!e.has_requirement)e.node_status=0;else{let n=new Set(t.map(e=>e.id)),r=l.filter(e=>(e.requirements||[]).some(e=>n.has(e)));if(t.filter(e=>l.some(t=>(t.requirements||[]).includes(e.id))).lengthe.id)),n=u.filter(e=>(e.capabilities||[]).some(e=>t.has(e)));n.length===0||n.some(e=>e.status!==`已接入`&&e.status!==`正常`&&e.status!==`已上线`&&e.status!==`active`)?e.node_status=2:e.node_status=3}}}),t({...e});let g=n.filter(e=>e.total_posts_count&&e.total_posts_count>0),_=g.length,v=0,y=0,b=0,x=0,S=0,C=0,w=0;g.forEach(e=>{let t=e.total_posts_count||0;x+=t;let n=d[e.name],r=!1,i=!1;n&&n.length>0&&(v++,S+=t,e.node_status>=2&&(r=!0),e.node_status===3&&(i=!0)),r&&(y++,C+=t),i&&(b++,w+=t)});let T=_>0?v/_*100:0,ee=v>0?y/v*100:0,te=_>0?b/_*100:0,ne=x>0?S/x*100:0,re=S>0?C/S*100:0,ie=x>0?w/x*100:0;f({totalLeaves:_,reqCoveredNodes:v,reqCoveragePerc:Number(T.toFixed(1)),toolCoveredNodes:y,toolCoveragePerc:Number(ee.toFixed(1)),verifiedNodes:b,verifiedCoveragePerc:Number(te.toFixed(1)),weightedCoveragePerc:Number(ne.toFixed(1)),coveredPostsCnt:S,totalPostsCnt:x,toolCoveredPostsCnt:C,toolWeightedCoveragePerc:Number(re.toFixed(1)),verifiedPostsCnt:w,verifiedWeightedCoveragePerc:Number(ie.toFixed(1))})}catch(e){console.error(`Failed to load dashboard stats`,e)}}e()},[]),(0,L.jsxs)(`div`,{className:`space-y-8 animate-in fade-in duration-500`,children:[(0,L.jsxs)(`div`,{className:`bg-white rounded-3xl border border-slate-100 shadow-sm p-6 overflow-hidden`,children:[(0,L.jsx)(`div`,{className:`flex justify-between items-center mb-8`,children:(0,L.jsxs)(`div`,{className:`flex bg-slate-100 p-1 rounded-lg`,children:[(0,L.jsx)(`button`,{className:I(`px-4 py-1.5 text-sm font-bold rounded-md transition-all`,p===`unweighted`?`bg-white text-indigo-700 shadow-sm`:`text-slate-500 hover:text-slate-700`),onClick:()=>m(`unweighted`),children:`无权重 (节点数)`}),(0,L.jsx)(`button`,{className:I(`px-4 py-1.5 text-sm font-bold rounded-md transition-all`,p===`weighted`?`bg-white text-indigo-700 shadow-sm`:`text-slate-500 hover:text-slate-700`),onClick:()=>m(`weighted`),children:`带权重 (帖子数)`})]})}),(0,L.jsx)(`div`,{className:`flex justify-center items-center h-48 py-4`,children:(()=>{let e=p===`unweighted`?[{label:`全局节点`,value:u.totalLeaves,percent:`100%`,color:`bg-blue-400`},{label:`需求覆盖节点`,value:u.reqCoveredNodes,percent:u.reqCoveragePerc+`%`,color:`bg-indigo-400`},{label:`工具覆盖节点`,value:u.toolCoveredNodes,percent:(u.totalLeaves?(u.toolCoveredNodes/u.totalLeaves*100).toFixed(1):0)+`%`,color:`bg-emerald-400`},{label:`已验证节点`,value:u.verifiedNodes,percent:u.verifiedCoveragePerc+`%`,color:`bg-cyan-400`}]:[{label:`全局节点 (帖子)`,value:u.totalPostsCnt,percent:`100%`,color:`bg-blue-400`},{label:`需求覆盖 (帖子)`,value:u.coveredPostsCnt,percent:u.weightedCoveragePerc+`%`,color:`bg-indigo-400`},{label:`工具覆盖 (帖子)`,value:u.toolCoveredPostsCnt,percent:(u.totalPostsCnt?(u.toolCoveredPostsCnt/u.totalPostsCnt*100).toFixed(1):0)+`%`,color:`bg-emerald-400`},{label:`已验证 (帖子)`,value:u.verifiedPostsCnt,percent:u.verifiedWeightedCoveragePerc+`%`,color:`bg-cyan-400`}];return(0,L.jsx)(`div`,{className:`flex w-full max-w-4xl h-full relative`,style:{filter:`drop-shadow(0 4px 6px rgba(0,0,0,0.05))`},children:e.map((t,n)=>{let r=n===0?100:e[n-1].value/Math.max(e[0].value,1)*100,i=t.value/Math.max(e[0].value,1)*100,a=r,o=i,s=`polygon(0 ${50-a/2}%, 100% ${50-o/2}%, 100% ${50+o/2}%, 0 ${50+a/2}%)`;return(0,L.jsxs)(`div`,{className:`flex-1 flex flex-col items-center justify-center relative border-r-2 border-white last:border-r-0`,children:[(0,L.jsx)(`div`,{className:I(`absolute inset-0 transition-all duration-700 opacity-90`,t.color),style:{clipPath:s}}),(0,L.jsxs)(`div`,{className:`z-10 flex flex-col items-center text-slate-900`,children:[(0,L.jsx)(`span`,{className:`text-2xl font-black tracking-tight`,children:t.value}),(0,L.jsx)(`span`,{className:`text-xs font-bold mt-0.5 opacity-90`,children:t.label})]}),n>0&&(0,L.jsxs)(`div`,{className:`absolute top-0 left-0 -translate-x-1/2 -mt-4 text-[11px] font-bold text-slate-500 bg-white px-2 py-0.5 rounded shadow-sm border border-slate-100 z-20`,children:[`转化率 `,t.percent]})]},n)})})})()})]}),(0,L.jsxs)(`div`,{className:`flex flex-col lg:flex-row gap-6`,children:[(0,L.jsx)(`div`,{className:I(`transition-all duration-300 ease-in-out`,n?`w-full xl:w-2/3`:`w-full`),children:(0,L.jsx)(Gt,{data:e,onSelect:r,selectedId:n?.id})}),i.length>0&&(0,L.jsxs)(`div`,{className:`w-full xl:w-1/3 bg-white p-6 rounded-3xl border border-slate-100 shadow-sm sticky top-24 max-h-[calc(100vh-100px)] overflow-y-auto custom-scrollbar`,children:[(0,L.jsx)(`div`,{className:`flex flex-wrap items-center gap-1.5 font-bold text-[13px] text-slate-500 border-b pb-4 mb-4`,children:i.map((e,t)=>{let n=oe,r=`Node`;e.type===`node`&&(n=oe,r=e.data.name||`Root`),e.type===`req`&&(n=A,r=e.data.id.substring(0,8)),e.type===`cap`&&(n=w,r=e.data.name||e.data.id.substring(0,8)),e.type===`tool`&&(n=j,r=e.data.name||e.data.id.substring(0,8)),e.type===`know`&&(n=E,r=e.data.task?e.data.task.substring(0,10)+`...`:e.data.id.substring(0,8));let a=t===i.length-1;return(0,L.jsxs)(`div`,{className:`flex items-center gap-1.5`,children:[(0,L.jsxs)(`div`,{className:I(`flex items-center gap-1 transition-colors bg-slate-50 px-2 py-1 rounded-md border border-slate-100`,a?`text-indigo-700 bg-indigo-50 border-indigo-100 shadow-sm`:`hover:text-indigo-600 cursor-pointer`),onClick:()=>!a&&l(t),children:[(0,L.jsx)(n,{size:14}),(0,L.jsx)(`span`,{className:`max-w-[120px] truncate`,children:r})]}),!a&&(0,L.jsx)(ee,{size:14,className:`text-slate-300`})]},t)})}),(()=>{let e=i[i.length-1],t=e.data,n=[],r=[],a=[],s=[];if(e.type===`node`){let e=t=>{let n=[];return t.forEach(t=>{!t.children||t.children.length===0?n.push(t):n=n.concat(e(t.children))}),n},i=e([t]).map(e=>e.name);n=o.reqs.filter(e=>(e.source_nodes||[]).some(e=>i.includes(typeof e==`object`?e.node_name||e.name:e)));let c=new Set(n.map(e=>e.id));r=o.caps.filter(e=>(e.requirements||[]).some(e=>c.has(e)));let l=new Set(r.map(e=>e.id));a=o.tools.filter(e=>(e.capabilities||[]).some(e=>l.has(e)));let u=new Set(a.map(e=>e.id));s=o.know.filter(e=>{let t=(e.support_capability||[]).some(e=>l.has(e)),n=(e.tools||[]).some(e=>u.has(e));return t||n})}else e.type===`req`?r=o.caps.filter(e=>(e.requirements||[]).includes(t.id)):e.type===`cap`?(n=o.reqs.filter(e=>(t.requirements||[]).includes(e.id)),a=o.tools.filter(e=>(e.capabilities||[]).includes(t.id)),s=o.know.filter(e=>(e.support_capability||[]).includes(t.id))):e.type===`tool`?(r=o.caps.filter(e=>(t.capabilities||[]).includes(e.id)),s=o.know.filter(e=>(e.tools||[]).includes(t.id))):e.type===`know`&&(r=o.caps.filter(e=>(t.support_capability||[]).includes(e.id)),a=o.tools.filter(e=>(t.tools||[]).includes(e.id)));return(0,L.jsxs)(`div`,{className:`space-y-6 pb-8 animate-in fade-in slide-in-from-right-4 duration-300`,children:[(0,L.jsxs)(`div`,{children:[e.type===`node`&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(`h2`,{className:`text-2xl font-black text-slate-800`,children:t.name||`Root`}),(0,L.jsx)(`div`,{className:`text-xs text-slate-400 font-mono mt-1 break-all bg-slate-50 p-2 rounded`,children:t.path||`/`}),t.description&&(0,L.jsxs)(`div`,{className:`bg-indigo-50/50 p-4 rounded-xl border border-indigo-100/50 mt-4`,children:[(0,L.jsx)(`h3`,{className:`font-bold text-indigo-900 mb-2 text-sm`,children:`定义与描述`}),(0,L.jsx)(`p`,{className:`text-indigo-700 text-sm leading-relaxed`,children:t.description})]})]}),e.type===`req`&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(`h2`,{className:`text-xl font-black text-slate-800 leading-snug`,children:`需求定义`}),(0,L.jsx)(`p`,{className:`mt-4 text-indigo-800 text-sm leading-relaxed whitespace-pre-wrap bg-indigo-50/50 p-4 rounded-xl border border-indigo-100/50`,children:t.description}),(0,L.jsxs)(`div`,{className:`mt-4 bg-slate-50 p-3 rounded-xl border border-slate-100`,children:[(0,L.jsx)(`div`,{className:`text-[10px] text-slate-500 mb-1`,children:`追踪 ID`}),(0,L.jsx)(`div`,{className:`font-mono text-slate-700 text-[11px] break-all`,children:t.id})]})]}),e.type===`cap`&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(`h2`,{className:`text-xl font-black text-amber-600`,children:t.name}),(0,L.jsxs)(`div`,{className:`bg-amber-50/50 p-4 rounded-xl mt-4 border border-amber-100/50`,children:[(0,L.jsx)(`h3`,{className:`font-bold text-amber-900 mb-2 text-sm`,children:`能力标准定义`}),(0,L.jsx)(`p`,{className:`text-amber-800 text-sm leading-relaxed`,children:t.description||`暂无描述`})]}),(0,L.jsxs)(`div`,{className:`mt-4 bg-slate-50 p-3 rounded-xl border border-slate-100`,children:[(0,L.jsx)(`div`,{className:`text-[10px] text-slate-500 mb-1`,children:`能力标识 ID`}),(0,L.jsx)(`div`,{className:`font-mono text-slate-700 text-[11px] break-all`,children:t.id})]})]}),e.type===`tool`&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(`h2`,{className:`text-xl font-black text-emerald-600`,children:t.name}),(0,L.jsxs)(`div`,{className:`bg-emerald-50/50 p-4 rounded-xl mt-4 border border-emerald-100/50`,children:[(0,L.jsx)(`h3`,{className:`font-bold text-emerald-900 mb-2 text-sm`,children:`工具介绍`}),(0,L.jsx)(`p`,{className:`text-emerald-800 text-sm leading-relaxed`,children:t.introduction||`暂无介绍`})]}),(0,L.jsxs)(`div`,{className:`mt-4 bg-slate-50 p-3 rounded-xl border border-slate-100`,children:[(0,L.jsx)(`div`,{className:`text-[10px] text-slate-500 mb-1`,children:`执行端 ID`}),(0,L.jsx)(`div`,{className:`font-mono text-slate-700 text-[11px] break-all`,children:t.id})]})]}),e.type===`know`&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(`h2`,{className:`text-xl font-black text-violet-700 leading-snug`,children:t.task}),(0,L.jsxs)(`div`,{className:`bg-violet-50/50 p-4 rounded-xl mt-4 border border-violet-100/50`,children:[(0,L.jsx)(`h3`,{className:`font-bold text-violet-900 mb-2 text-sm`,children:`知识正文`}),(0,L.jsx)(`p`,{className:`text-violet-800 text-sm whitespace-pre-wrap leading-relaxed`,children:t.content})]}),(0,L.jsxs)(`div`,{className:`mt-4 bg-slate-50 p-3 rounded-xl border border-slate-100`,children:[(0,L.jsx)(`div`,{className:`text-[10px] text-slate-500 mb-1`,children:`知识库 ID`}),(0,L.jsx)(`div`,{className:`font-mono text-slate-700 text-[11px] break-all`,children:t.id})]})]})]}),e.type===`node`&&(0,L.jsxs)(`div`,{className:`grid grid-cols-2 gap-3 mt-6`,children:[(0,L.jsxs)(`div`,{className:`bg-slate-50 p-3 rounded-xl border border-slate-100`,children:[(0,L.jsx)(`div`,{className:`text-[10px] text-slate-500 mb-1`,children:`层级分支`}),(0,L.jsxs)(`div`,{className:`font-bold text-slate-800 text-sm`,children:[t.children?.length||0,` 个`]})]}),(0,L.jsxs)(`div`,{className:`bg-slate-50 p-3 rounded-xl border border-slate-100`,children:[(0,L.jsx)(`div`,{className:`text-[10px] text-slate-500 mb-1`,children:`小红书热度`}),(0,L.jsxs)(`div`,{className:`font-bold text-indigo-600 text-sm`,children:[t.total_posts_count||0,` 篇`]})]})]}),(0,L.jsxs)(`div`,{className:`pt-2 mt-6 border-t border-slate-100`,children:[n.length>0&&e.type!==`req`&&(0,L.jsx)(Qi,{title:`基于此的需求`,count:n.length,colorClass:`text-indigo-600`,borderClass:`bg-indigo-600`,children:(0,L.jsx)(`div`,{className:`space-y-1`,children:n.map(e=>(0,L.jsx)($i,{data:e,type:`req`,onDrillDown:c},e.id))})}),n.length===0&&e.type===`node`&&(0,L.jsx)(Qi,{title:`关联需求`,count:0,colorClass:`text-indigo-600`,borderClass:`bg-indigo-600`,children:(0,L.jsx)(`div`,{className:`text-xs text-slate-400 pl-4 border-l-2 border-slate-100`,children:`未检索到任何需求`})}),r.length>0&&e.type!==`cap`&&(0,L.jsx)(Qi,{title:`下属原子能力`,count:r.length,colorClass:`text-amber-700`,borderClass:`bg-amber-700`,children:(0,L.jsx)(`div`,{className:`space-y-1`,children:r.map(e=>(0,L.jsx)($i,{data:e,type:`cap`,onDrillDown:c},e.id))})}),r.length===0&&e.type===`node`&&(0,L.jsx)(Qi,{title:`下属原子能力`,count:0,colorClass:`text-amber-700`,borderClass:`bg-amber-700`,children:(0,L.jsx)(`div`,{className:`text-xs text-slate-400 pl-4 border-l-2 border-slate-100`,children:`能力库为空`})}),a.length>0&&e.type!==`tool`&&(0,L.jsx)(Qi,{title:`相关实现工具`,count:a.length,colorClass:`text-emerald-700`,borderClass:`bg-emerald-700`,children:(0,L.jsx)(`div`,{className:`space-y-1`,children:a.map(e=>(0,L.jsx)($i,{data:e,type:`tool`,onDrillDown:c},e.id))})}),a.length===0&&e.type===`node`&&(0,L.jsx)(Qi,{title:`相关实现工具`,count:0,colorClass:`text-emerald-700`,borderClass:`bg-emerald-700`,children:(0,L.jsx)(`div`,{className:`text-xs text-slate-400 pl-4 border-l-2 border-slate-100`,children:`未发现关联的执行工具`})}),s.length>0&&e.type!==`know`&&(0,L.jsx)(Qi,{title:`相关支撑知识`,count:s.length,colorClass:`text-violet-700`,borderClass:`bg-violet-700`,children:(0,L.jsx)(`div`,{className:`space-y-1`,children:s.map(e=>(0,L.jsx)($i,{data:e,type:`know`,onDrillDown:c},e.id))})}),s.length===0&&e.type===`node`&&(0,L.jsx)(Qi,{title:`相关支撑知识`,count:0,colorClass:`text-violet-700`,borderClass:`bg-violet-700`,children:(0,L.jsx)(`div`,{className:`text-xs text-slate-400 pl-4 border-l-2 border-slate-100`,children:`无相关文档资料`})})]})]})})()]})]})]})}function ta({title:e,value:t,subtext:n,icon:r,iconBgColor:i=`bg-indigo-50`,iconColor:a=`text-indigo-600`,className:o}){return(0,L.jsxs)(`div`,{className:I(`bg-white p-5 rounded-2xl border border-slate-100 shadow-sm hover:shadow-md transition-shadow`,o),children:[(0,L.jsxs)(`div`,{className:`flex justify-between items-start mb-2`,children:[(0,L.jsx)(`h3`,{className:`text-[10px] sm:text-xs font-bold text-slate-500 uppercase tracking-wider`,children:e}),r&&(0,L.jsx)(`div`,{className:I(`p-2 sm:p-2.5 rounded-xl flex items-center justify-center`,i,a),children:(0,L.jsx)(r,{size:18,strokeWidth:2.5})})]}),(0,L.jsxs)(`div`,{className:`flex flex-col`,children:[(0,L.jsx)(`span`,{className:`text-2xl sm:text-3xl font-black text-slate-900`,children:t}),n&&(0,L.jsx)(`span`,{className:`text-xs text-slate-400 mt-1`,children:n})]})]})}var na={requirement:{icon:A,bgColor:`bg-indigo-50 hover:bg-indigo-100`,txColor:`text-indigo-700`},capability:{icon:re,bgColor:`bg-emerald-50 hover:bg-emerald-100`,txColor:`text-emerald-700`},tool:{icon:j,bgColor:`bg-amber-50 hover:bg-amber-100`,txColor:`text-amber-700`},knowledge:{icon:ue,bgColor:`bg-rose-50 hover:bg-rose-100`,txColor:`text-rose-700`},generic:{icon:M,bgColor:`bg-slate-100 hover:bg-slate-200`,txColor:`text-slate-700`}},ra=e=>{let t=e?.toLowerCase();return t===`ready`||t===`approved`||t===`正常`?`bg-emerald-100 text-emerald-700`:t===`in progress`||t===`pending`||t===`部分匹配`?`bg-amber-100 text-amber-700`:t===`error`||t===`未满足`||t===`异常`?`bg-rose-100 text-rose-700`:`bg-slate-100 text-slate-600`};function ia({type:e,label:t,status:n,onClick:r,className:i,count:a}){let o=na[e]||na.generic,s=o.icon;return(0,L.jsxs)(`div`,{className:I(`inline-flex items-center gap-1.5 px-2.5 py-1.5 rounded-lg border border-transparent transition-colors`,o.bgColor,o.txColor,r?`cursor-pointer hover:border-black/5`:``,i),onClick:r,children:[(0,L.jsx)(s,{size:14,className:`opacity-70`}),(0,L.jsx)(`span`,{className:`text-sm font-semibold whitespace-nowrap`,children:t}),a!==void 0&&(0,L.jsx)(`span`,{className:`ml-1 text-[10px] bg-white/60 px-1.5 py-0.5 rounded-full font-bold`,children:a})]})}function H({status:e,className:t}){return e?(0,L.jsx)(`span`,{className:I(`px-2.5 py-1 text-xs font-bold rounded-full whitespace-nowrap`,ra(e),t),children:e}):null}function aa({req:e,allCaps:t,onClose:n}){if(!e)return null;let r=t.filter(t=>(t.requirements||[]).includes(e.id));return(0,L.jsxs)(`div`,{className:`bg-white p-6 rounded-3xl border border-slate-100 shadow-sm sticky top-24 max-h-[calc(100vh-100px)] overflow-y-auto custom-scrollbar`,children:[(0,L.jsxs)(`div`,{className:`flex justify-between items-start mb-6`,children:[(0,L.jsxs)(`div`,{className:`flex items-center gap-2 font-bold text-lg text-slate-900 border-b pb-2 w-full`,children:[(0,L.jsx)(A,{size:24,className:`text-indigo-600`}),`需求详情 (Requirement)`]}),(0,L.jsx)(`button`,{onClick:n,className:`p-1 hover:bg-slate-100 rounded-lg text-slate-400 absolute right-6 top-6`,children:(0,L.jsx)(fe,{size:20})})]}),(0,L.jsxs)(`div`,{className:`space-y-6`,children:[(0,L.jsxs)(`div`,{className:`flex gap-2`,children:[(0,L.jsx)(H,{status:e.status}),(0,L.jsxs)(`span`,{className:`text-[11px] text-slate-400 font-mono self-center break-all`,children:[`ID: `,e.id]})]}),(0,L.jsxs)(`div`,{className:`bg-indigo-50/50 p-5 rounded-2xl border border-indigo-100/50`,children:[(0,L.jsx)(`h3`,{className:`font-bold text-indigo-900 mb-2 text-sm`,children:`业务描述摘要`}),(0,L.jsx)(`p`,{className:`text-indigo-800 text-sm leading-relaxed whitespace-pre-wrap`,children:e.description})]}),e.match_result&&(0,L.jsxs)(`div`,{className:`bg-slate-50 p-5 rounded-2xl border border-slate-100`,children:[(0,L.jsx)(`h3`,{className:`font-bold text-slate-700 mb-2 text-sm`,children:`规则匹配结果`}),(0,L.jsx)(`p`,{className:`text-slate-600 text-sm whitespace-pre-wrap`,children:e.match_result})]}),(0,L.jsxs)(`div`,{className:`pt-4 border-t border-slate-100`,children:[(0,L.jsxs)(`div`,{className:`flex items-center gap-2 font-black text-[13px] tracking-wide mb-4 text-amber-700`,children:[(0,L.jsx)(`div`,{className:`w-6 h-[2px] bg-amber-700`}),`下属原子能力 (`,r.length,`)`]}),(0,L.jsxs)(`div`,{className:`space-y-2 pl-1`,children:[r.map(e=>(0,L.jsxs)(`div`,{className:`bg-white border border-slate-200 p-3 rounded-xl shadow-sm text-left hover:border-amber-300 transition-colors`,children:[(0,L.jsxs)(`div`,{className:`flex items-center gap-2 font-bold text-sm text-slate-800 mb-1`,children:[(0,L.jsx)(w,{size:14,className:`text-amber-500`}),(0,L.jsx)(`span`,{children:e.name})]}),(0,L.jsx)(`div`,{className:`text-xs text-slate-500 line-clamp-2`,children:e.description||`暂无描述`})]},e.id)),r.length===0&&(0,L.jsx)(`div`,{className:`text-xs text-slate-400 pl-4 border-l-2 border-slate-100`,children:`暂无原子能力映射至此需求库。`})]})]})]})]})}function oa(){let[e,t]=(0,d.useState)([]),[n,r]=(0,d.useState)([]),[i,a]=(0,d.useState)(0),[o,s]=(0,d.useState)(null),[c,l]=(0,d.useState)(``),[u,f]=(0,d.useState)(``),[p,m]=(0,d.useState)(`all`),[h,g]=(0,d.useState)(!1);(0,d.useEffect)(()=>{Ui(1e3).then(e=>{r(e.results||[]),a(e.total||e.results?.length||0)})},[]),(0,d.useEffect)(()=>{g(!0),(u.trim()===``?Wi(1e3):Ji(u,30)).then(e=>{t(e.candidates||e.results||[]),g(!1)}).catch(e=>{console.error(e),g(!1)})},[u]);let _=new Set(e.flatMap(e=>e.atomics||[])).size,v=i>0?Math.round(_/i*100):0,y=e=>{e.preventDefault(),f(c)},b=e.filter(e=>!(p!==`all`&&e.status!==p));return(0,L.jsxs)(`div`,{className:`space-y-8 animate-in fade-in duration-500 pb-12`,children:[(0,L.jsxs)(`div`,{children:[(0,L.jsx)(`h1`,{className:`text-2xl font-black text-slate-900 mb-1`,children:`制作需求完备性分析`}),(0,L.jsx)(`p`,{className:`text-slate-500 text-sm`,children:`汇总原子能力与业务需求的映射矩阵。`})]}),(0,L.jsxs)(`div`,{className:`grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6`,children:[(0,L.jsx)(ta,{title:`需求库规模`,value:e.length,subtext:`检索返回总量`,icon:A,iconBgColor:`bg-indigo-50`,iconColor:`text-indigo-600`}),(0,L.jsx)(ta,{title:`已满足数`,value:e.filter(e=>e.status===`已满足`).length,subtext:`核心指标`,icon:te,iconBgColor:`bg-emerald-50`,iconColor:`text-emerald-600`}),(0,L.jsx)(ta,{title:`激活能力数`,value:_,subtext:`涉及的原子能力`,icon:C,iconBgColor:`bg-amber-50`,iconColor:`text-amber-600`}),(0,L.jsx)(ta,{title:`系统覆盖率`,value:`${v}%`,subtext:`能力库利用度`,icon:ie,iconBgColor:`bg-rose-50`,iconColor:`text-rose-600`})]}),(0,L.jsxs)(`div`,{className:`flex flex-col md:flex-row gap-4 justify-between bg-white p-4 rounded-2xl border border-slate-100 shadow-sm`,children:[(0,L.jsxs)(`form`,{onSubmit:y,className:`relative flex-1 max-w-lg`,children:[(0,L.jsx)(ue,{size:16,className:`absolute left-4 top-1/2 -translate-y-1/2 text-slate-400`}),(0,L.jsx)(`input`,{value:c,onChange:e=>l(e.target.value),placeholder:`输入自然语言进行语义检索...`,className:`w-full bg-slate-50 border border-slate-200 text-sm rounded-xl pl-10 pr-4 py-2.5 focus:outline-none focus:ring-2 focus:ring-indigo-500 transition-all font-medium text-slate-700 placeholder:font-normal`}),(0,L.jsx)(`button`,{type:`submit`,className:`absolute right-2 top-1/2 -translate-y-1/2 bg-indigo-600 text-white text-xs px-3 py-1.5 rounded-lg font-bold hover:bg-indigo-700 transition-colors`,children:`检索`})]}),(0,L.jsxs)(`div`,{className:`flex items-center gap-2 text-sm`,children:[(0,L.jsx)(se,{size:16,className:`text-slate-400`}),(0,L.jsxs)(`select`,{value:p,onChange:e=>m(e.target.value),className:`bg-slate-50 border border-slate-200 text-slate-700 text-sm rounded-xl px-3 py-2.5 outline-none focus:ring-2 focus:ring-indigo-500 font-bold`,children:[(0,L.jsx)(`option`,{value:`all`,children:`所有状态`}),(0,L.jsx)(`option`,{value:`已满足`,children:`已满足`}),(0,L.jsx)(`option`,{value:`未满足`,children:`未满足`})]})]})]}),(0,L.jsxs)(`div`,{className:`flex flex-col xl:flex-row gap-6 items-start`,children:[(0,L.jsx)(`div`,{className:I(`transition-all duration-300 ease-in-out`,o?`w-full xl:w-2/3`:`w-full`),children:(0,L.jsxs)(`div`,{className:`bg-white rounded-3xl border border-slate-100 shadow-sm overflow-hidden text-sm relative`,children:[h&&(0,L.jsx)(`div`,{className:`absolute inset-0 bg-white/60 backdrop-blur-[2px] flex items-center justify-center z-10`,children:(0,L.jsx)(`div`,{className:`w-8 h-8 border-4 border-indigo-200 border-t-indigo-600 rounded-full animate-spin`})}),(0,L.jsxs)(`table`,{className:`w-full text-left`,children:[(0,L.jsx)(`thead`,{className:`bg-slate-50/50`,children:(0,L.jsxs)(`tr`,{children:[(0,L.jsx)(`th`,{className:`px-6 py-4 font-bold text-slate-600 w-1/4`,children:`ID追踪`}),(0,L.jsx)(`th`,{className:`px-6 py-4 font-bold text-slate-600 w-2/4`,children:`结构化描述`}),(0,L.jsx)(`th`,{className:`px-6 py-4 font-bold text-slate-600 w-1/4`,children:`状态`})]})}),(0,L.jsxs)(`tbody`,{className:`divide-y divide-slate-50`,children:[b.map(e=>(0,L.jsxs)(`tr`,{className:I(`cursor-pointer transition-colors`,o?.id===e.id?`bg-indigo-50`:`hover:bg-slate-50`),onClick:()=>s(e),children:[(0,L.jsxs)(`td`,{className:`px-6 py-4 text-xs font-mono text-slate-400`,children:[e.id.substring(0,8),`...`,e.score!==void 0&&(0,L.jsxs)(`span`,{className:`ml-2 bg-emerald-100 text-emerald-700 px-1.5 py-0.5 rounded text-[10px] font-bold`,children:[`相似度: `,e.score.toFixed(2)]})]}),(0,L.jsx)(`td`,{className:`px-6 py-4 max-w-sm truncate text-slate-700 font-medium`,children:e.description}),(0,L.jsx)(`td`,{className:`px-6 py-4`,children:(0,L.jsx)(H,{status:e.status})})]},e.id)),b.length===0&&!h&&(0,L.jsx)(`tr`,{children:(0,L.jsx)(`td`,{colSpan:3,className:`px-6 py-12 text-center text-slate-400 font-bold`,children:`无检索结果 / 暂无该状态需求`})})]})]})]})}),o&&(0,L.jsx)(`div`,{className:`w-full xl:w-1/3`,children:(0,L.jsx)(aa,{req:o,allCaps:n,onClose:()=>s(null)})})]})]})}function sa({tool:e}){let[t,n]=(0,d.useState)(!1);return(0,L.jsxs)(`div`,{className:`bg-white border border-slate-200 rounded-xl overflow-hidden mb-3 shadow-sm hover:border-indigo-300 transition-colors`,children:[(0,L.jsxs)(`div`,{className:`flex justify-between items-center p-3 cursor-pointer hover:bg-slate-50 transition-colors`,onClick:()=>n(!t),children:[(0,L.jsxs)(`div`,{className:`flex items-center gap-2 font-bold text-sm text-slate-800`,children:[(0,L.jsx)(j,{size:14,className:`text-indigo-500`}),e.name||e.id]}),(0,L.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,L.jsx)(`span`,{className:I(`text-[10px] px-2 py-0.5 rounded-full font-bold`,e.status===`已接入`||e.status===`正常`?`bg-emerald-100 text-emerald-700`:`bg-slate-100 text-slate-500`),children:e.status||`未接入`}),t?(0,L.jsx)(T,{size:14,className:`text-slate-400`}):(0,L.jsx)(ee,{size:14,className:`text-slate-400`})]})]}),t&&(0,L.jsx)(`div`,{className:`p-4 bg-slate-50 border-t border-slate-100 text-xs text-slate-600 leading-relaxed max-h-48 overflow-y-auto`,children:e.introduction||`暂无详细介绍信息...`})]})}function ca({capability:e,allTools:t,allKnow:n,allReqs:r,onClose:i}){if(!e)return null;let a=t.filter(t=>(e.tools||[]).includes(t.id)),o=r.filter(t=>(e.requirements||[]).includes(t.id)),s=(e,t,r)=>!t||t.length===0?null:(0,L.jsxs)(`div`,{className:`mb-4`,children:[(0,L.jsx)(`h4`,{className:`text-xs font-bold mb-2 ${r}`,children:e}),(0,L.jsx)(`div`,{className:`space-y-2`,children:t.map(e=>{let t=n.find(t=>t.id===e),r=t?t.task||t.content?.substring(0,40):e;return(0,L.jsxs)(`div`,{className:`flex items-center gap-2 text-[12px] text-slate-600 bg-white border border-slate-200 p-2.5 rounded-xl hover:border-indigo-300 transition-colors cursor-pointer`,children:[(0,L.jsx)(E,{size:14,className:`text-slate-400 min-w-4`}),(0,L.jsx)(`span`,{className:`truncate`,children:r})]},e)})})]});return(0,L.jsxs)(`div`,{className:`bg-white p-6 rounded-3xl border border-slate-100 shadow-sm sticky top-24 max-h-[85vh] overflow-y-auto custom-scrollbar`,children:[(0,L.jsxs)(`div`,{className:`flex justify-between items-start mb-6`,children:[(0,L.jsxs)(`div`,{className:`flex items-center gap-2 font-bold text-lg text-slate-900 border-b pb-2 w-full`,children:[(0,L.jsx)(re,{size:24,className:`text-emerald-600`}),e.name]}),(0,L.jsx)(`button`,{onClick:i,className:`p-1 hover:bg-slate-100 rounded-lg text-slate-400 absolute right-6 top-6`,children:(0,L.jsx)(fe,{size:20})})]}),(0,L.jsxs)(`div`,{className:`space-y-6`,children:[(0,L.jsxs)(`div`,{className:`flex gap-2`,children:[(0,L.jsx)(H,{status:e.tools?.length>0?`Ready`:`In Progress`}),(0,L.jsxs)(`span`,{className:`text-sm text-slate-500`,children:[`ID: `,e.id?.substring(0,8),`...`]})]}),(0,L.jsxs)(`div`,{className:`bg-slate-50 p-4 rounded-xl border border-slate-100`,children:[(0,L.jsx)(`h3`,{className:`font-bold text-slate-900 mb-2 text-sm`,children:`描述 (Description)`}),(0,L.jsx)(`p`,{className:`text-slate-600 text-sm leading-relaxed`,children:e.description})]}),(0,L.jsxs)(`div`,{className:`bg-emerald-50/50 p-4 rounded-xl border border-emerald-100/50`,children:[(0,L.jsx)(`h3`,{className:`font-bold text-emerald-900 mb-2 text-sm`,children:`评估标准 (Criterion)`}),(0,L.jsx)(`p`,{className:`text-emerald-700 text-sm leading-relaxed`,children:e.criterion||`暂无详细评估标准`})]}),(0,L.jsxs)(`div`,{className:`pt-4 border-t border-slate-100 mt-4`,children:[(0,L.jsxs)(`h3`,{className:`font-bold text-slate-800 mb-4 text-sm flex items-center gap-2`,children:[(0,L.jsx)(A,{size:16,className:`text-rose-600`}),` 服务业务需求 (`,o.length,`)`]}),o.length===0?(0,L.jsx)(`p`,{className:`text-xs text-slate-400`,children:`目前没有任何业务需求激活此能力。`}):(0,L.jsx)(`div`,{className:`space-y-2`,children:o.map(e=>(0,L.jsxs)(`div`,{className:`bg-white border border-slate-200 p-3 rounded-xl shadow-sm text-left hover:border-rose-300 transition-colors`,children:[(0,L.jsxs)(`div`,{className:`flex items-center justify-between mb-1`,children:[(0,L.jsxs)(`span`,{className:`text-[10px] text-slate-400 font-mono`,children:[`ID: `,e.id.substring(0,6),`...`]}),(0,L.jsx)(H,{status:e.status})]}),(0,L.jsx)(`div`,{className:`text-xs text-slate-600 line-clamp-2`,children:e.description})]},e.id))})]}),(0,L.jsxs)(`div`,{className:`pt-4 border-t border-slate-100 mt-4`,children:[(0,L.jsxs)(`h3`,{className:`font-bold text-slate-800 mb-4 text-sm flex items-center gap-2`,children:[(0,L.jsx)(j,{size:16,className:`text-indigo-600`}),` 关联执行工具 (`,a.length,`)`]}),a.length===0?(0,L.jsx)(`p`,{className:`text-xs text-slate-400`,children:`目前没有任何可用的执行工具支撑此能力。`}):(0,L.jsx)(`div`,{className:`space-y-2`,children:a.map(e=>(0,L.jsx)(sa,{tool:e},e.id))})]}),(0,L.jsxs)(`div`,{className:`pt-4 border-t border-slate-100 mt-4`,children:[(0,L.jsxs)(`h3`,{className:`font-bold text-slate-800 mb-4 text-sm flex items-center gap-2`,children:[(0,L.jsx)(E,{size:16,className:`text-violet-600`}),` 沉淀知识图谱`]}),(0,L.jsxs)(`div`,{className:`bg-slate-50 p-4 rounded-2xl border border-slate-200`,children:[s(`来源关联知识 (Source Knowledge)`,e.source_knowledge,`text-violet-700`),a.map(e=>(e.process_knowledge?.length||0)+(e.case_knowledge?.length||0)+(e.tool_knowledge?.length||0)>0?(0,L.jsxs)(`div`,{className:`mt-5 pt-4 border-t border-slate-200 border-dashed`,children:[(0,L.jsxs)(`div`,{className:`text-[11px] font-black text-slate-400 mb-3 uppercase tracking-wider`,children:[`从工具继承知识: `,e.name||e.id]}),s(`工序知识 (Process)`,e.process_knowledge,`text-emerald-700`),s(`用例知识 (Case)`,e.case_knowledge,`text-amber-700`),s(`工具知识 (Tool)`,e.tool_knowledge,`text-indigo-700`)]},e.id):null),!e.source_knowledge?.length&&a.length===0&&(0,L.jsx)(`p`,{className:`text-xs text-slate-400 my-2`,children:`该能力及下挂工具均暂无专属沉淀知识数据。`})]})]})]})]})}function la(){let[e,t]=(0,d.useState)([]),[n,r]=(0,d.useState)([]),[i,a]=(0,d.useState)([]),[o,s]=(0,d.useState)([]),[c,l]=(0,d.useState)(null),[u,f]=(0,d.useState)(``),[p,m]=(0,d.useState)(``),[h,g]=(0,d.useState)(!1);(0,d.useEffect)(()=>{Promise.all([Gi(1e3),Wi(1e3)]).then(async([e,t])=>{r(e.results||[]),s(t.results||[]);try{a((await Ki(1,1e3)).results||[])}catch(e){console.warn(`knowledge API not available`,e)}}).catch(e=>{console.error(e)})},[]),(0,d.useEffect)(()=>{g(!0),(p.trim()===``?Ui(1e3):Yi(p,30)).then(e=>{t(e.candidates||e.results||[]),g(!1)}).catch(e=>{console.error(e),g(!1)})},[p]);let _=e=>{e.preventDefault(),m(u)},v=e.filter(e=>e.tools?.length>0),y=e.filter(e=>!e.tools||e.tools.length===0);return(0,L.jsxs)(`div`,{className:`space-y-8 animate-in fade-in duration-500 pb-12`,children:[(0,L.jsxs)(`div`,{children:[(0,L.jsx)(`h1`,{className:`text-2xl font-black text-slate-900 mb-1`,children:`制作能力分布分析`}),(0,L.jsx)(`p`,{className:`text-slate-500 text-sm`,children:`原子能力实现深度,基于工具可用性实时探测。`})]}),(0,L.jsxs)(`div`,{className:`grid grid-cols-1 md:grid-cols-3 gap-6`,children:[(0,L.jsx)(ta,{title:`能力检索库`,value:e.length,subtext:`已定义核心能力`,icon:A,iconBgColor:`bg-amber-50`,iconColor:`text-amber-600`}),(0,L.jsx)(ta,{title:`工具链覆盖`,value:e.length>0?`${Math.round(v.length/e.length*100)}%`:`0%`,subtext:`已接通工具能力`,icon:te,iconBgColor:`bg-emerald-50`,iconColor:`text-emerald-600`}),(0,L.jsx)(ta,{title:`响应业务矩阵`,value:new Set(e.flatMap(e=>e.requirements||[])).size,subtext:`关联到特定需求`,icon:D,iconBgColor:`bg-indigo-50`,iconColor:`text-indigo-600`})]}),(0,L.jsx)(`div`,{className:`bg-white p-4 rounded-2xl border border-slate-100 shadow-sm relative`,children:(0,L.jsxs)(`form`,{onSubmit:_,className:`relative flex-1 max-w-xl`,children:[(0,L.jsx)(ue,{size:16,className:`absolute left-4 top-1/2 -translate-y-1/2 text-slate-400`}),(0,L.jsx)(`input`,{value:u,onChange:e=>f(e.target.value),placeholder:`搜索特定能力名称特征或应用语义描述...`,className:`w-full bg-slate-50 border border-slate-200 text-sm rounded-xl pl-10 pr-24 py-2.5 focus:outline-none focus:ring-2 focus:ring-emerald-500 transition-all font-medium text-slate-700 placeholder:font-normal`}),(0,L.jsx)(`button`,{type:`submit`,className:`absolute right-2 top-1/2 -translate-y-1/2 bg-emerald-600 text-white text-xs px-3 py-1.5 rounded-lg font-bold hover:bg-emerald-700 transition-colors`,children:`探索`})]})}),(0,L.jsxs)(`div`,{className:`flex flex-col xl:flex-row gap-6 items-stretch`,children:[(0,L.jsxs)(`div`,{className:I(`transition-all duration-300 ease-in-out relative min-h-[200px]`,c?`w-full xl:w-2/3`:`w-full`),children:[h&&(0,L.jsx)(`div`,{className:`absolute inset-0 bg-white/60 backdrop-blur-[2px] flex items-center justify-center z-10 rounded-2xl`,children:(0,L.jsx)(`div`,{className:`w-8 h-8 border-4 border-emerald-200 border-t-emerald-600 rounded-full animate-spin`})}),(0,L.jsxs)(`div`,{className:I(`grid gap-8`,c?`grid-cols-1`:`grid-cols-1 xl:grid-cols-2`),children:[(0,L.jsxs)(`div`,{children:[(0,L.jsxs)(`h2`,{className:`text-lg font-bold text-slate-800 mb-4 flex items-center gap-2`,children:[(0,L.jsx)(`span`,{className:`w-2 h-2 rounded-full bg-emerald-500`}),`就绪能力 `,v.length>0&&(0,L.jsx)(`span`,{className:`text-emerald-600 text-xs px-2 bg-emerald-100 rounded-full`,children:v.length})]}),(0,L.jsxs)(`div`,{className:`grid grid-cols-1 gap-4`,children:[v.map(e=>(0,L.jsxs)(`div`,{className:I(`bg-white p-5 rounded-2xl border shadow-sm hover:shadow-md transition-all cursor-pointer group`,c?.id===e.id?`border-emerald-400 ring-2 ring-emerald-50`:`border-slate-100 hover:border-emerald-200`),onClick:()=>l(e),children:[(0,L.jsxs)(`div`,{className:`flex justify-between items-start mb-3`,children:[(0,L.jsx)(`h3`,{className:`font-bold text-slate-900 group-hover:text-emerald-700 transition-colors`,children:e.name}),(0,L.jsxs)(`div`,{className:`flex gap-2`,children:[e.score!==void 0&&(0,L.jsxs)(`span`,{className:`bg-amber-100 text-amber-700 px-1.5 py-0.5 rounded text-[10px] font-bold self-start`,children:[`相关度 `,e.score.toFixed(2)]}),(0,L.jsx)(H,{status:`Ready`})]})]}),(0,L.jsx)(`p`,{className:`text-sm text-slate-500 line-clamp-2 mb-4`,children:e.description}),(0,L.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,L.jsx)(ia,{type:`tool`,label:`Tools`,count:e.tools?.length||0}),(0,L.jsx)(ia,{type:`requirement`,label:`Reqs`,count:e.requirements?.length||0})]})]},e.id)),v.length===0&&(0,L.jsx)(`div`,{className:`text-xs text-slate-400 font-bold p-4 text-center border-2 border-dashed border-slate-100 rounded-2xl`,children:`无相关就绪项`})]})]}),(0,L.jsxs)(`div`,{children:[(0,L.jsxs)(`h2`,{className:`text-lg font-bold text-slate-800 mb-4 flex items-center gap-2`,children:[(0,L.jsx)(`span`,{className:`w-2 h-2 rounded-full bg-amber-500`}),`研发中能力 `,y.length>0&&(0,L.jsx)(`span`,{className:`text-amber-600 text-xs px-2 bg-amber-100 rounded-full`,children:y.length})]}),(0,L.jsxs)(`div`,{className:`grid grid-cols-1 gap-4`,children:[y.map(e=>(0,L.jsxs)(`div`,{className:I(`bg-white p-5 rounded-2xl border shadow-sm hover:shadow-md transition-all cursor-pointer group`,c?.id===e.id?`border-amber-400 ring-2 ring-amber-50`:`border-slate-100 hover:border-amber-200`),onClick:()=>l(e),children:[(0,L.jsxs)(`div`,{className:`flex justify-between items-start mb-3`,children:[(0,L.jsx)(`h3`,{className:`font-bold text-slate-900 group-hover:text-amber-700 transition-colors`,children:e.name}),(0,L.jsxs)(`div`,{className:`flex gap-2`,children:[e.score!==void 0&&(0,L.jsxs)(`span`,{className:`bg-amber-100 text-amber-700 px-1.5 py-0.5 rounded text-[10px] font-bold self-start`,children:[`相关度 `,e.score.toFixed(2)]}),(0,L.jsx)(H,{status:`In Progress`})]})]}),(0,L.jsx)(`p`,{className:`text-sm text-slate-500 line-clamp-2 mb-4`,children:e.description}),(0,L.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,L.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:(0,L.jsx)(ia,{type:`requirement`,label:`Reqs`,count:e.requirements?.length||0})}),(0,L.jsxs)(`div`,{className:`text-amber-600 flex items-center gap-1 text-xs font-bold`,children:[(0,L.jsx)(ne,{size:14}),` Awaiting Tools`]})]})]},e.id)),y.length===0&&(0,L.jsx)(`div`,{className:`text-xs text-slate-400 font-bold p-4 text-center border-2 border-dashed border-slate-100 rounded-2xl`,children:`无相关研发中项`})]})]})]})]}),c&&(0,L.jsx)(`div`,{className:`w-full xl:w-1/3`,children:(0,L.jsx)(ca,{capability:c,allTools:n,allKnow:i,allReqs:o,onClose:()=>l(null)})})]})]})}function ua({label:e,content:t}){let[n,r]=(0,d.useState)(!1);return(0,L.jsxs)(`div`,{className:`bg-white border border-slate-200 rounded-xl overflow-hidden shadow-sm hover:border-indigo-300 transition-colors`,children:[(0,L.jsxs)(`div`,{className:`flex items-center gap-2 text-[12px] text-slate-700 font-bold p-2.5 cursor-pointer hover:bg-slate-50 transition-colors`,onClick:()=>r(!n),children:[(0,L.jsx)(E,{size:14,className:`text-slate-400 min-w-4`}),(0,L.jsx)(`span`,{className:`truncate flex-1`,children:e})]}),n&&(0,L.jsx)(`div`,{className:`p-3 bg-slate-50 border-t border-slate-100 text-[11px] text-slate-600 leading-relaxed max-h-48 overflow-y-auto whitespace-pre-wrap`,children:t})]})}function da({tool:e,allKnow:t,allCaps:n,onClose:r}){if(!e)return null;let i=n.filter(t=>(e.capabilities||[]).includes(t.id)||t.id===e.capabilities?.[0]),a=(e,n,r)=>!n||n.length===0?null:(0,L.jsxs)(`div`,{className:`mb-4`,children:[(0,L.jsxs)(`h4`,{className:`text-xs font-bold mb-2 ${r}`,children:[e,` (`,n.length,`)`]}),(0,L.jsx)(`div`,{className:`space-y-2`,children:n.map(e=>{let n=t.find(t=>t.id===e);return(0,L.jsx)(ua,{label:n?n.task||n.content?.substring(0,40):e,content:n?n.content||`暂无详细正文内容`:`未找到相关知识源文件`},e)})})]});return(0,L.jsxs)(`div`,{className:`bg-white p-6 rounded-3xl border border-slate-100 shadow-sm sticky top-24 max-h-[85vh] overflow-y-auto custom-scrollbar`,children:[(0,L.jsxs)(`div`,{className:`flex justify-between items-start mb-6`,children:[(0,L.jsxs)(`div`,{className:`flex items-center gap-2 font-bold text-lg text-slate-900 border-b pb-2 w-full`,children:[(0,L.jsx)(j,{size:24,className:`text-amber-600`}),e.name]}),(0,L.jsx)(`button`,{onClick:r,className:`p-1 hover:bg-slate-100 rounded-lg text-slate-400 absolute right-6 top-6`,children:(0,L.jsx)(fe,{size:20})})]}),(0,L.jsxs)(`div`,{className:`space-y-6`,children:[(0,L.jsxs)(`div`,{className:`flex gap-2 items-center`,children:[(0,L.jsx)(H,{status:e.status}),(0,L.jsxs)(`span`,{className:`text-sm text-slate-500`,children:[`v`,e.version||`1.0`]}),(0,L.jsxs)(`span`,{className:`text-[10px] text-slate-400 font-mono ml-auto`,children:[`ID: `,e.id.substring(0,8)]})]}),(0,L.jsxs)(`div`,{className:`bg-slate-50 p-4 rounded-xl border border-slate-100`,children:[(0,L.jsx)(`h3`,{className:`font-bold text-slate-900 mb-2 text-sm`,children:`介绍 (Introduction)`}),(0,L.jsx)(`p`,{className:`text-slate-600 text-sm leading-relaxed`,children:e.introduction})]}),(0,L.jsxs)(`div`,{className:`pt-4 border-t border-slate-100 mt-4`,children:[(0,L.jsxs)(`h3`,{className:`font-bold text-slate-800 mb-4 text-sm flex items-center gap-2`,children:[(0,L.jsx)(re,{size:16,className:`text-emerald-600`}),` 所支持的原子能力 (`,i.length,`)`]}),i.length===0?(0,L.jsx)(`p`,{className:`text-xs text-slate-400`,children:`尚未绑定到任何原子能力。`}):(0,L.jsx)(`div`,{className:`space-y-2`,children:i.map(e=>(0,L.jsxs)(`div`,{className:`bg-white border border-slate-200 p-3 rounded-xl shadow-sm text-left hover:border-emerald-300 transition-colors`,children:[(0,L.jsx)(`div`,{className:`flex items-center justify-between mb-1`,children:(0,L.jsx)(`span`,{className:`text-sm font-bold text-slate-800`,children:e.name})}),(0,L.jsx)(`div`,{className:`text-xs text-slate-500 line-clamp-2`,children:e.description})]},e.id))})]}),(0,L.jsxs)(`div`,{className:`grid grid-cols-1 gap-4`,children:[(0,L.jsxs)(`div`,{className:`bg-slate-50 p-4 rounded-xl border border-slate-200 border-dashed overflow-hidden`,children:[(0,L.jsx)(`h4`,{className:`text-xs font-bold text-slate-500 uppercase mb-2`,children:`Input Schema`}),(0,L.jsx)(`pre`,{className:`text-[10px] overflow-x-auto text-slate-700 whitespace-pre-wrap`,children:JSON.stringify(e.input,null,2)})]}),(0,L.jsxs)(`div`,{className:`bg-slate-50 p-4 rounded-xl border border-slate-200 border-dashed overflow-hidden`,children:[(0,L.jsx)(`h4`,{className:`text-xs font-bold text-slate-500 uppercase mb-2`,children:`Output Schema`}),(0,L.jsx)(`pre`,{className:`text-[10px] overflow-x-auto text-slate-700 whitespace-pre-wrap`,children:JSON.stringify(e.output,null,2)})]})]}),(0,L.jsxs)(`div`,{className:`pt-4 border-t border-slate-100 mt-4`,children:[(0,L.jsxs)(`h3`,{className:`font-bold text-slate-800 mb-4 text-sm flex items-center gap-2`,children:[(0,L.jsx)(E,{size:16,className:`text-violet-600`}),` 沉淀知识图谱`]}),(0,L.jsxs)(`div`,{className:`bg-slate-50 p-4 rounded-2xl border border-slate-200`,children:[a(`工序知识 (Process)`,e.process_knowledge,`text-emerald-700`),a(`用例知识 (Case)`,e.case_knowledge,`text-amber-700`),a(`工具知识 (Tool)`,e.tool_knowledge,`text-indigo-700`),!e.process_knowledge?.length&&!e.case_knowledge?.length&&!e.tool_knowledge?.length&&(0,L.jsx)(`p`,{className:`text-xs text-slate-400 my-2`,children:`该工具暂未挂载知识点数据。`})]})]})]})]})}function fa(){let[e,t]=(0,d.useState)([]),[n,r]=(0,d.useState)([]),[i,a]=(0,d.useState)([]),[o,s]=(0,d.useState)(null),[c,l]=(0,d.useState)(``),[u,f]=(0,d.useState)(``),[p,m]=(0,d.useState)(`all`),[h,g]=(0,d.useState)(!1);(0,d.useEffect)(()=>{Ui(1e3).then(e=>a(e.results||[])),Ki(1,1e3).then(e=>r(e.results||[])).catch(e=>console.warn(e))},[]),(0,d.useEffect)(()=>{g(!0),(u.trim()===``?Gi(1e3):Xi(u,p===`all`?void 0:p,30)).then(e=>{t(e.candidates||e.results||[]),g(!1)}).catch(e=>{console.error(e),g(!1)})},[u,p]);let _=e=>{e.preventDefault(),f(c)},v=e.filter(e=>!(u.trim()===``&&p!==`all`&&e.status!==p)),y=v.filter(e=>e.status===`已接入`||e.status===`正常`||e.status===`已上线`||e.status===`active`),b=v.length>0?Math.round(y.length/v.length*100):0,x=v.filter(e=>e.case_knowledge&&e.case_knowledge.length>0),S=v.length>0?Math.round(x.length/v.length*100):0;return(0,L.jsxs)(`div`,{className:`space-y-8 animate-in fade-in duration-500 pb-12`,children:[(0,L.jsxs)(`div`,{children:[(0,L.jsx)(`h1`,{className:`text-2xl font-black text-slate-900 mb-1`,children:`工具资源完备性分析`}),(0,L.jsx)(`p`,{className:`text-slate-500 text-sm`,children:`技术执行层资源分布与语义特征检索。`})]}),(0,L.jsxs)(`div`,{className:`grid grid-cols-1 md:grid-cols-3 gap-6`,children:[(0,L.jsx)(ta,{title:`工具检索库`,value:v.length,subtext:`过滤后总计`,icon:j,iconBgColor:`bg-indigo-50`,iconColor:`text-indigo-600`}),(0,L.jsx)(ta,{title:`接口可用率`,value:`${b}%`,subtext:`已接入/总数`,icon:ce,iconBgColor:`bg-blue-50`,iconColor:`text-blue-600`}),(0,L.jsx)(ta,{title:`AI工程成熟度`,value:`${S}%`,subtext:`挂载案例充足评估`,icon:M,iconBgColor:`bg-amber-50`,iconColor:`text-amber-600`})]}),(0,L.jsxs)(`div`,{className:`flex flex-col md:flex-row gap-4 justify-between bg-white p-4 rounded-2xl border border-slate-100 shadow-sm`,children:[(0,L.jsxs)(`form`,{onSubmit:_,className:`relative flex-1 max-w-xl`,children:[(0,L.jsx)(ue,{size:16,className:`absolute left-4 top-1/2 -translate-y-1/2 text-slate-400`}),(0,L.jsx)(`input`,{value:c,onChange:e=>l(e.target.value),placeholder:`搜索特定功能点或参数设计...`,className:`w-full bg-slate-50 border border-slate-200 text-sm rounded-xl pl-10 pr-24 py-2.5 focus:outline-none focus:ring-2 focus:ring-amber-500 transition-all font-medium text-slate-700 placeholder:font-normal`}),(0,L.jsx)(`button`,{type:`submit`,className:`absolute right-2 top-1/2 -translate-y-1/2 bg-amber-600 text-white text-xs px-3 py-1.5 rounded-lg font-bold hover:bg-amber-700 transition-colors`,children:`检索`})]}),(0,L.jsxs)(`div`,{className:`flex items-center gap-2 text-sm`,children:[(0,L.jsx)(se,{size:16,className:`text-slate-400`}),(0,L.jsxs)(`select`,{value:p,onChange:e=>m(e.target.value),className:`bg-slate-50 border border-slate-200 text-slate-700 text-sm rounded-xl px-3 py-2.5 outline-none focus:ring-2 focus:ring-amber-500 font-bold`,children:[(0,L.jsx)(`option`,{value:`all`,children:`所有状态`}),(0,L.jsx)(`option`,{value:`已接入`,children:`已接入`}),(0,L.jsx)(`option`,{value:`待接入`,children:`待接入`})]})]})]}),(0,L.jsxs)(`div`,{className:`flex flex-col xl:flex-row gap-6 items-stretch`,children:[(0,L.jsxs)(`div`,{className:I(`transition-all duration-300 ease-in-out relative min-h-[200px]`,o?`w-full xl:w-2/3`:`w-full`),children:[h&&(0,L.jsx)(`div`,{className:`absolute inset-0 bg-white/60 backdrop-blur-[2px] flex items-center justify-center z-10 rounded-2xl`,children:(0,L.jsx)(`div`,{className:`w-8 h-8 border-4 border-amber-200 border-t-amber-600 rounded-full animate-spin`})}),(0,L.jsxs)(`div`,{className:I(`grid gap-6`,o?`grid-cols-1 xl:grid-cols-2`:`grid-cols-1 md:grid-cols-2 lg:grid-cols-3`),children:[v.map(e=>(0,L.jsxs)(`div`,{className:I(`bg-white p-5 rounded-2xl border transition-all cursor-pointer group flex flex-col shadow-sm hover:shadow-md`,o?.id===e.id?`border-amber-400 ring-2 ring-amber-50`:`border-slate-100 hover:border-amber-200`),onClick:()=>s(e),children:[(0,L.jsxs)(`div`,{className:`flex justify-between items-start mb-2`,children:[(0,L.jsx)(`h3`,{className:`font-bold text-slate-900 group-hover:text-amber-700`,children:e.name}),(0,L.jsxs)(`div`,{className:`flex gap-2`,children:[e.score!==void 0&&(0,L.jsxs)(`span`,{className:`bg-amber-100 text-amber-700 px-1.5 py-0.5 rounded text-[10px] font-bold self-start`,children:[`相似度 `,e.score.toFixed(2)]}),(0,L.jsx)(H,{status:e.status})]})]}),(0,L.jsx)(`p`,{className:`text-sm text-slate-500 line-clamp-3 mb-4 flex-1`,children:e.introduction||`暂无介绍`}),(0,L.jsxs)(`div`,{className:`flex flex-wrap gap-2 mt-auto`,children:[(e.capabilities||[]).slice(0,2).map(e=>(0,L.jsx)(ia,{type:`capability`,label:e},e)),(e.capabilities||[]).length>2&&(0,L.jsxs)(`span`,{className:`text-xs text-slate-400 self-center`,children:[`+`,e.capabilities.length-2]})]})]},e.id)),v.length===0&&!h&&(0,L.jsx)(`div`,{className:`col-span-full py-12 text-center text-slate-400 bg-white border border-slate-100 rounded-3xl font-bold`,children:`无符合条件的检索结果`})]})]}),o&&(0,L.jsx)(`div`,{className:`w-full xl:w-1/3`,children:(0,L.jsx)(da,{tool:o,allKnow:n,allCaps:i,onClose:()=>s(null)})})]})]})}function pa({type:e,data:t}){let[n,r]=(0,d.useState)(!1),i=e===`tool`?j:re,a=e===`tool`?`text-indigo-500`:`text-pink-500`,o=e===`tool`?`bg-indigo-50 text-indigo-700`:`bg-pink-50 text-pink-700`,s=e===`tool`?`执行工具`:`原子能力`;return(0,L.jsxs)(`div`,{className:`bg-white border border-slate-200 rounded-xl overflow-hidden shadow-sm hover:border-slate-300 transition-colors mb-2`,children:[(0,L.jsxs)(`div`,{className:`flex justify-between items-center p-3 cursor-pointer hover:bg-slate-50 transition-colors`,onClick:()=>r(!n),children:[(0,L.jsxs)(`div`,{className:`flex items-center gap-2 font-bold text-sm text-slate-800 line-clamp-1 pr-2`,children:[(0,L.jsx)(i,{size:14,className:a}),(0,L.jsx)(`span`,{className:`truncate`,children:t.name||t.id})]}),(0,L.jsxs)(`div`,{className:`flex items-center gap-2 shrink-0`,children:[(0,L.jsx)(`span`,{className:I(`text-[10px] px-2 py-0.5 rounded-full font-bold`,o),children:s}),n?(0,L.jsx)(T,{size:14,className:`text-slate-400`}):(0,L.jsx)(ee,{size:14,className:`text-slate-400`})]})]}),n&&(0,L.jsx)(`div`,{className:`p-4 bg-slate-50 border-t border-slate-100 text-xs text-slate-600 leading-relaxed max-h-48 overflow-y-auto whitespace-pre-wrap`,children:t.description||t.introduction||`暂无详细介绍信息...`})]})}function ma({obj:e,allTools:t,allCaps:n,allReqs:r,onClose:i}){if(!e)return null;let a=(e.tools||[]).map(e=>t.find(t=>t.id===e)||{id:e,name:e}),o=(e.capabilities||e.support_capability||[]).map(e=>n.find(t=>t.id===e)||{id:e,name:e}),s=(e.tasks||[]).map(e=>r.find(t=>t.id===e)||{id:e,description:e});return(0,L.jsxs)(`div`,{className:`bg-white p-6 rounded-3xl border border-slate-100 shadow-sm sticky top-24 max-h-[85vh] overflow-y-auto custom-scrollbar`,children:[(0,L.jsxs)(`div`,{className:`flex justify-between items-start mb-6`,children:[(0,L.jsxs)(`div`,{className:`flex items-center gap-2 font-bold text-lg text-slate-900 border-b pb-2 w-full`,children:[(0,L.jsx)(ue,{size:24,className:`text-rose-600`}),`知识详情`]}),(0,L.jsx)(`button`,{onClick:i,className:`p-1 hover:bg-slate-100 rounded-lg text-slate-400 absolute right-6 top-6`,children:(0,L.jsx)(fe,{size:20})})]}),(0,L.jsxs)(`div`,{className:`space-y-6`,children:[(0,L.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,L.jsxs)(`span`,{className:`text-sm font-mono text-slate-500 bg-slate-100 px-2 py-1 rounded`,children:[`ID: `,e.id?.substring(0,8),`...`]}),(0,L.jsxs)(`div`,{className:`flex items-center gap-1 text-amber-500 bg-amber-50 px-2 py-1 rounded-lg`,children:[(0,L.jsx)(k,{size:14,className:`fill-current`}),(0,L.jsx)(`span`,{className:`font-bold text-sm`,children:e.score?e.score.toFixed(2):`0.00`})]})]}),(0,L.jsxs)(`div`,{className:`bg-slate-50 p-4 rounded-xl border border-slate-200`,children:[(0,L.jsx)(`h3`,{className:`text-xs font-bold text-slate-500 uppercase mb-2`,children:`任务 (Task)`}),(0,L.jsx)(`p`,{className:`text-slate-800 text-sm font-medium`,children:e.task||`无任务描述`})]}),(0,L.jsxs)(`div`,{className:`bg-rose-50/50 p-4 rounded-xl border border-rose-100/50`,children:[(0,L.jsx)(`h3`,{className:`text-xs font-bold text-rose-800 uppercase mb-2`,children:`正文内容 (Content)`}),(0,L.jsx)(`p`,{className:`text-rose-900 text-sm leading-relaxed whitespace-pre-wrap`,children:e.content||`无内容`})]}),(0,L.jsxs)(`div`,{className:`pt-4 border-t border-slate-100 mt-4`,children:[(0,L.jsxs)(`h3`,{className:`font-bold text-slate-800 mb-4 text-sm flex items-center gap-2`,children:[(0,L.jsx)(re,{size:16,className:`text-pink-600`}),` 支撑能力与工具关联`]}),o.length>0||a.length>0?(0,L.jsxs)(`div`,{className:`space-y-2`,children:[o.map(e=>(0,L.jsx)(pa,{type:`cap`,data:e},e.id)),a.map(e=>(0,L.jsx)(pa,{type:`tool`,data:e},e.id))]}):(0,L.jsx)(`p`,{className:`text-xs text-slate-400`,children:`当前知识卡片未关联到具体的执行工具或能力定义。`}),s.length>0&&(0,L.jsxs)(`div`,{className:`mt-6 pt-4 border-t border-slate-100 break-words`,children:[(0,L.jsx)(`h4`,{className:`text-xs font-bold text-slate-500 uppercase mb-3`,children:`关联应用需求 (Requirements)`}),(0,L.jsx)(`div`,{className:`space-y-2`,children:s.map(e=>(0,L.jsxs)(`div`,{className:`bg-slate-50 border border-slate-200 p-3 rounded-xl hover:border-slate-300 transition-colors`,children:[(0,L.jsx)(`div`,{className:`text-xs text-slate-700 font-medium`,children:e.description||e.id}),e.description&&(0,L.jsxs)(`div`,{className:`text-[10px] text-slate-400 font-mono mt-1`,children:[`ID: `,e.id.substring(0,8),`...`]})]},e.id))})]})]})]})]})}function ha(){let[e,t]=(0,d.useState)([]),[n,r]=(0,d.useState)(null),[i,a]=(0,d.useState)(``),[o,s]=(0,d.useState)([]),[c,l]=(0,d.useState)([]),[u,f]=(0,d.useState)([]),[p,m]=(0,d.useState)(``),[h,g]=(0,d.useState)(``),[_,v]=(0,d.useState)([`approved`,`checked`]),[y,b]=(0,d.useState)(!1),[x,S]=(0,d.useState)({}),[C,w]=(0,d.useState)([]),[T,ee]=(0,d.useState)([]),[te,ne]=(0,d.useState)([]),re=async e=>{b(!0);try{let n={types:(e||o).join(`,`),tags:c.join(`,`),owner:p.trim(),scopes:h.trim(),status:_.join(`,`)};i.trim()?t((await qi(i,n)).results||[]):t((await Ki(1,100,n)).results||[])}catch(e){console.error(e)}finally{b(!1)}};(0,d.useEffect)(()=>{re(),Zi().then(e=>e&&e.tags&&f(e.tags)).catch(console.error),(async()=>{try{let e=(await Ki(1,1e3,{}))?.results||[],t={total:e.length};e.forEach(e=>{(e.types||[]).forEach(e=>{t[e]=(t[e]||0)+1})}),S(t)}catch(e){console.error(`Error fetching stats:`,e)}})(),Gi(1e3).then(e=>w(e.results||[])).catch(console.error),Ui(1e3).then(e=>ee(e.results||[])).catch(console.error),Wi(1e3).then(e=>ne(e.results||[])).catch(console.error)},[]);let ie=()=>{a(``),s([]),l([]),m(``),g(``),v([`approved`,`checked`])},oe=e=>{s(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])},se=e=>{l(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])},ce=e=>{v(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])},D=e=>{let t=e===`ALL`?[]:[e];s(t),a(``),setTimeout(()=>re(t),0)};return(0,L.jsxs)(`div`,{className:`space-y-8 animate-in fade-in duration-500`,children:[(0,L.jsxs)(`div`,{className:`flex justify-between items-start`,children:[(0,L.jsxs)(`div`,{children:[(0,L.jsx)(`h1`,{className:`text-2xl font-black text-slate-900`,children:`知识沉淀库 (K-Data Center)`}),(0,L.jsx)(`p`,{className:`text-slate-500 mt-1 text-sm`,children:`高密度资产管理,支持多维分类穿透。`})]}),(0,L.jsxs)(`div`,{className:`flex items-center gap-2 px-4 py-2 bg-white border border-slate-100 rounded-full shadow-sm text-indigo-700 font-bold text-sm`,children:[(0,L.jsx)(ae,{size:16}),(0,L.jsxs)(`span`,{children:[e.length||5,` 条资产已就绪`]})]})]}),(0,L.jsx)(`div`,{className:`flex gap-4 overflow-x-auto pb-4 custom-scrollbar`,children:[{label:`ALL`,id:`ALL`,count:x.total||0},{label:`工序`,id:`plan`,count:x.plan||0},{label:`用例`,id:`usecase`,count:x.usecase||0},{label:`工具`,id:`tool`,count:x.tool||0},{label:`经验`,id:`strategy`,count:(x.strategy||0)+(x.exp||0)},{label:`定义`,id:`definition`,count:x.definition||0},{label:`USER PROFILE`,id:`user profile`,count:x[`user profile`]||0}].map(e=>{let t=e.id===`ALL`?o.length===0:o.length===1&&o[0]===e.id;return(0,L.jsxs)(`div`,{onClick:()=>D(e.id),className:I(`flex-shrink-0 w-32 p-4 rounded-2xl shadow-sm flex flex-col justify-between relative cursor-pointer outline-none transition-all duration-300 border hover:-translate-y-1 hover:shadow-md`,t?`bg-[#5143e0] text-white border-[#5143e0] ring-2 ring-[#5143e0] ring-offset-2`:`bg-white text-slate-800 border-slate-100 hover:border-[#5143e0]/30`),children:[(0,L.jsx)(`div`,{className:I(`text-[10px] uppercase font-bold mb-2`,t?`text-indigo-200`:`text-slate-400`),children:e.label}),(0,L.jsx)(`div`,{className:`text-3xl font-black`,children:e.count}),(0,L.jsx)(`div`,{className:I(`absolute right-4 bottom-4 w-1.5 h-1.5 rounded-full opacity-80`,t?`bg-white`:`bg-indigo-500`)})]},e.id)})}),(0,L.jsxs)(`div`,{className:`bg-white rounded-2xl border border-slate-100 shadow-sm p-6 space-y-6`,children:[(0,L.jsxs)(`div`,{className:`flex gap-4`,children:[(0,L.jsxs)(`div`,{className:`relative flex-1`,children:[(0,L.jsx)(ue,{className:`absolute left-3.5 top-1/2 -translate-y-1/2 text-slate-400`,size:18}),(0,L.jsx)(`input`,{type:`text`,value:i,onChange:e=>a(e.target.value),onKeyDown:e=>e.key===`Enter`&&re(),placeholder:`输入任务描述进行语义搜索...`,className:`w-full pl-11 pr-4 py-2.5 bg-slate-50 border border-slate-200 rounded-xl focus:bg-white focus:outline-none focus:ring-2 focus:ring-indigo-500/50 text-sm transition-all`})]}),(0,L.jsx)(`button`,{onClick:()=>re(),disabled:y,className:`px-8 py-2.5 bg-indigo-600 text-white text-sm font-bold rounded-xl shadow-md shadow-indigo-200 hover:bg-indigo-700 hover:shadow-lg hover:-translate-y-0.5 transition-all w-28 disabled:opacity-70 disabled:hover:translate-y-0 disabled:hover:shadow-md`,children:y?`搜索中...`:`搜索`}),(0,L.jsx)(`button`,{onClick:ie,className:`px-8 py-2.5 bg-slate-600 text-white text-sm font-bold rounded-xl shadow-md shadow-slate-200 hover:bg-slate-700 hover:shadow-lg hover:-translate-y-0.5 transition-all w-28`,children:`清除`})]}),(0,L.jsxs)(`div`,{className:`grid grid-cols-1 md:grid-cols-5 gap-6 pt-2 border-t border-slate-100/60 mt-4`,children:[(0,L.jsxs)(`div`,{children:[(0,L.jsx)(`h4`,{className:`text-xs font-bold text-slate-800 mb-3 uppercase tracking-wide`,children:`类型 (Types)`}),(0,L.jsx)(`div`,{className:`space-y-2.5`,children:[`strategy`,`tool`,`user profile`,`usecase`,`definition`,`plan`].map(e=>(0,L.jsxs)(`label`,{className:`flex items-center gap-2.5 text-sm text-slate-600 cursor-pointer group`,children:[(0,L.jsx)(`input`,{type:`checkbox`,checked:o.includes(e),onChange:()=>oe(e),className:`w-4 h-4 rounded text-indigo-600 border-slate-300 focus:ring-indigo-500 cursor-pointer`}),(0,L.jsx)(`span`,{className:`capitalize group-hover:text-slate-900 transition-colors`,children:e})]},e))})]}),(0,L.jsxs)(`div`,{children:[(0,L.jsx)(`h4`,{className:`text-xs font-bold text-slate-800 mb-3 uppercase tracking-wide`,children:`Tags`}),(0,L.jsx)(`div`,{className:`space-y-2.5 max-h-[150px] overflow-y-auto custom-scrollbar pr-2`,children:u.length>0?u.map(e=>(0,L.jsxs)(`label`,{className:`flex items-center gap-2.5 text-sm text-slate-600 cursor-pointer group`,children:[(0,L.jsx)(`input`,{type:`checkbox`,checked:c.includes(e),onChange:()=>se(e),className:`w-4 h-4 rounded text-indigo-600 border-slate-300 focus:ring-indigo-500 cursor-pointer`}),(0,L.jsx)(`span`,{className:`capitalize group-hover:text-slate-900 transition-colors line-clamp-1`,title:e,children:e})]},e)):(0,L.jsx)(`span`,{className:`text-xs text-slate-400 bg-slate-50 px-2 py-1 rounded`,children:`无可用标签`})})]}),(0,L.jsxs)(`div`,{children:[(0,L.jsx)(`h4`,{className:`text-xs font-bold text-slate-800 mb-3 uppercase tracking-wide`,children:`Owner`}),(0,L.jsx)(`input`,{type:`text`,value:p,onChange:e=>m(e.target.value),placeholder:`输入 owner`,className:`w-full px-3 py-2 bg-slate-50 border border-slate-200 rounded-lg text-sm focus:bg-white focus:outline-none focus:ring-2 focus:ring-indigo-500/50 transition-all placeholder:text-slate-400`})]}),(0,L.jsxs)(`div`,{children:[(0,L.jsx)(`h4`,{className:`text-xs font-bold text-slate-800 mb-3 uppercase tracking-wide`,children:`Scopes`}),(0,L.jsx)(`input`,{type:`text`,value:h,onChange:e=>g(e.target.value),placeholder:`输入 scope`,className:`w-full px-3 py-2 bg-slate-50 border border-slate-200 rounded-lg text-sm focus:bg-white focus:outline-none focus:ring-2 focus:ring-indigo-500/50 transition-all placeholder:text-slate-400`})]}),(0,L.jsxs)(`div`,{children:[(0,L.jsx)(`h4`,{className:`text-xs font-bold text-slate-800 mb-3 uppercase tracking-wide`,children:`Status`}),(0,L.jsx)(`div`,{className:`space-y-2.5`,children:[`approved`,`checked`,`rejected`,`pending`].map(e=>(0,L.jsxs)(`label`,{className:`flex items-center gap-2.5 text-sm text-slate-600 cursor-pointer group`,children:[(0,L.jsx)(`input`,{type:`checkbox`,checked:_.includes(e),onChange:()=>ce(e),className:`w-4 h-4 rounded text-indigo-600 border-slate-300 focus:ring-indigo-500 cursor-pointer`}),(0,L.jsx)(`span`,{className:`capitalize group-hover:text-slate-900 transition-colors`,children:e})]},e))})]})]}),(0,L.jsx)(`div`,{className:`pt-2`,children:(0,L.jsx)(`button`,{onClick:()=>re(),className:`px-6 py-2 bg-[#444f60] text-white text-sm font-bold rounded-lg hover:bg-[#2c3441] shadow-md shadow-slate-200 hover:-translate-y-0.5 hover:shadow-lg transition-all`,children:`应用筛选`})})]}),(0,L.jsxs)(`div`,{className:`flex flex-col lg:flex-row gap-6 items-stretch`,children:[(0,L.jsx)(`div`,{className:I(`transition-all duration-300 ease-in-out`,n?`w-full lg:w-2/3`:`w-full`),children:(0,L.jsxs)(`div`,{className:I(`grid gap-6`,n?`grid-cols-1`:`grid-cols-1 md:grid-cols-2`),children:[e.map((e,t)=>(0,L.jsxs)(`div`,{className:I(`bg-white p-5 rounded-2xl border shadow-sm transition-all cursor-pointer group flex flex-col hover:shadow-md`,n?.id===e.id?`border-rose-400 ring-2 ring-rose-50`:`border-slate-100 hover:border-rose-200`),onClick:()=>r(e),children:[(0,L.jsxs)(`div`,{className:`flex items-start gap-4 mb-4`,children:[(0,L.jsx)(`div`,{className:`w-10 h-10 rounded-xl bg-rose-50 text-rose-600 flex items-center justify-center shrink-0`,children:(0,L.jsx)(E,{size:20})}),(0,L.jsx)(`div`,{children:(0,L.jsx)(`h3`,{className:`font-bold text-slate-900 line-clamp-2 group-hover:text-rose-700 transition-colors text-sm`,children:e.task||`(无任务描述)`})})]}),(0,L.jsx)(`p`,{className:`text-xs text-slate-500 line-clamp-3 mb-4 flex-1 whitespace-pre-wrap`,children:e.content}),(0,L.jsxs)(`div`,{className:`flex items-center justify-between mt-auto`,children:[(0,L.jsxs)(`div`,{className:`flex items-center gap-1 text-amber-500 font-bold text-xs`,children:[(0,L.jsx)(k,{size:12,className:`fill-current`}),` `,e.score||`N/A`]}),(0,L.jsx)(`span`,{className:`text-[10px] text-slate-400 font-mono`,children:e.id?.substring(0,8)})]})]},e.id||t)),e.length===0&&(0,L.jsx)(`div`,{className:`col-span-full py-12 text-center text-slate-400 bg-white border border-slate-100 rounded-3xl`,children:`暂无数据`})]})}),n&&(0,L.jsx)(`div`,{className:`w-full lg:w-1/3`,children:(0,L.jsx)(ma,{obj:n,allTools:C,allCaps:T,allReqs:te,onClose:()=>r(null)})})]})]})}function ga(){return(0,L.jsx)(Ut,{children:e=>{switch(e){case`dashboard`:return(0,L.jsx)(ea,{});case`requirements`:return(0,L.jsx)(oa,{});case`capabilities`:return(0,L.jsx)(la,{});case`tools`:return(0,L.jsx)(fa,{});case`knowledge`:return(0,L.jsx)(ha,{});default:return(0,L.jsx)(ea,{})}}})}(0,f.createRoot)(document.getElementById(`root`)).render((0,L.jsx)(d.StrictMode,{children:(0,L.jsx)(ga,{})}));