meeting_memory/webui/dist/assets/index-Ds4APFvF.js

556 lines
1.1 MiB
JavaScript
Raw Normal View History

2026-06-24 07:09:26 +00:00
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/syntax-highlight-CQw1bBY6.js","assets/markdown-vendor-BC7Vi29N.js","assets/katex-BSBacQyE.js","assets/katex-wklAmtGL.css","assets/MarkdownTextRenderer-CE8hfq6X.js"])))=>i.map(i=>d[i]);
var PS=Object.defineProperty;var TS=(e,t,n)=>t in e?PS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var $e=(e,t,n)=>TS(e,typeof t!="symbol"?t+"":t,n);import{j as s}from"./markdown-vendor-BC7Vi29N.js";import{r as u,g as RS,R as wm,a as Pa,_ as $l}from"./syntax-highlight-CQw1bBY6.js";import"./katex-BSBacQyE.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const o of a)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(a){const o={};return a.integrity&&(o.integrity=a.integrity),a.referrerPolicy&&(o.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?o.credentials="include":a.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(a){if(a.ep)return;a.ep=!0;const o=n(a);fetch(a.href,o)}})();var Xd={},Vx={exports:{}},In={},Kx={exports:{}},Gx={};/**
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/(function(e){function t(E,F){var X=E.length;E.push(F);e:for(;0<X;){var Q=X-1>>>1,re=E[Q];if(0<a(re,F))E[Q]=F,E[X]=re,X=Q;else break e}}function n(E){return E.length===0?null:E[0]}function r(E){if(E.length===0)return null;var F=E[0],X=E.pop();if(X!==F){E[0]=X;e:for(var Q=0,re=E.length,ue=re>>>1;Q<ue;){var pe=2*(Q+1)-1,ce=E[pe],z=pe+1,q=E[z];if(0>a(ce,X))z<re&&0>a(q,ce)?(E[Q]=q,E[z]=X,Q=z):(E[Q]=ce,E[pe]=X,Q=pe);else if(z<re&&0>a(q,X))E[Q]=q,E[z]=X,Q=z;else break e}}return F}function a(E,F){var X=E.sortIndex-F.sortIndex;return X!==0?X:E.id-F.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,l=i.now();e.unstable_now=function(){return i.now()-l}}var c=[],d=[],p=1,m=null,f=3,h=!1,y=!1,x=!1,b=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(E){for(var F=n(d);F!==null;){if(F.callback===null)r(d);else if(F.startTime<=E)r(d),F.sortIndex=F.expirationTime,t(c,F);else break;F=n(d)}}function k(E){if(x=!1,w(E),!y)if(n(c)!==null)y=!0,W(C);else{var F=n(d);F!==null&&H(k,F.startTime-E)}}function C(E,F){y=!1,x&&(x=!1,v(P),P=-1),h=!0;var X=f;try{for(w(F),m=n(c);m!==null&&(!(m.expirationTime>F)||E&&!T());){var Q=m.callback;if(typeof Q=="function"){m.callback=null,f=m.priorityLevel;var re=Q(m.expirationTime<=F);F=e.unstable_now(),typeof re=="function"?m.callback=re:m===n(c)&&r(c),w(F)}else r(c);m=n(c)}if(m!==null)var ue=!0;else{var pe=n(d);pe!==null&&H(k,pe.startTime-F),ue=!1}return ue}finally{m=null,f=X,h=!1}}var j=!1,N=null,P=-1,L=5,_=-1;function T(){return!(e.unstable_now()-_<L)}function R(){if(N!==null){var E=e.unstable_now();_=E;var F=!0;try{F=N(!0,E)}finally{F?D():(j=!1,N=null)}}else j=!1}var D;if(typeof g=="function")D=function(){g(R)};else if(typeof MessageChannel<"u"){var K=new MessageChannel,G=K.port2;K.port1.onmessage=R,D=function(){G.postMessage(null)}}else D=function(){b(R,0)};function W(E){N=E,j||(j=!0,D())}function H(E,F){P=b(function(){E(e.unstable_now())},F)}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_continueExecution=function(){y||h||(y=!0,W(C))},e.unstable_forceFrameRate=function(E){0>E||125<E?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):L=0<E?Math.floor(1e3/E):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(E){switch(f){case 1:case 2:case 3:var F=3;break;default:F=f}var X=f;f=F;try{return E()}finally{f=X}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(E,F){switch(E){case 1:case 2:case 3:case 4:case 5:break;default:E=3}var X=f;f=E;try{return F()}finally{f=X}},e.unstable_scheduleCallback=function(E,F,X){var Q=e.unstable_now();switch(typeof X=="object"&&X!==null?(X=X.delay,X=typeof X=="number"&&0<X?Q+X:Q):X=Q,E){case 1:var re=-1;break;case 2:re=250;break;case 5:re=1073741823;break;case 4:re=1e4;break;default:re=5e3}return re=X+re,E={id:p++,callback:F,priorityLevel:E,startTime:X,expirationTime:re,sortIndex:-1},X>Q?(E.sortIndex=X,t(d,E),n(c)===null&&E===n(d)&&(x?(v(P),P=-1):x=!0,H(k,X-Q))):(E.sortIndex=re,t(c,E),y||h||(y=!0,W(C))),E},e.unstable_shouldYield=T,e.unstable_wrapCallback=function(E){var F=f;return function(){var X=f;f=F;try{return E.apply(this,arguments)}finally{f=X}}}})(Gx);Kx.exports=Gx;var MS=Kx.exports;/**
* @license React
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var ES=u,En=MS;function ne(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Yx=new Set,di={};function eo(e,t){Yo(e,t),Yo(e+"Capture",t)}function Yo(e,t){for(di[e]=t,e=0;e<t.length;e++)Yx.add(t[e])}var Lr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Jd=Object.prototype.hasOwnProperty,IS=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,oh={},sh={};function LS(e){return Jd.call(sh,e)?!0:Jd.call(oh,e)?!1:IS.test(e)?sh[e]=!0:(oh[e]=!0,!1)}function DS(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function OS(e,t,n,r){if(t===null||typeof t>"u"||DS(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function dn(e,t,n,r,a,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var Xt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Xt[e]=new dn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Xt[t]=new dn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Xt[e]=new dn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Xt[e]=new dn(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Xt[e]=new dn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Xt[e]=new dn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Xt[e]=new dn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Xt[e]=new dn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Xt[e]=new dn(e,5,!1,e.toLowerCase(),null,!1,!1)});var km=/[\-:]([a-z])/g;function Cm(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin
`+Vu+e}var Ku=!1;function Gu(e,t){if(!e||Ku)return"";Ku=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(d){var r=d}Reflect.construct(e,[],t)}else{try{t.call()}catch(d){r=d}e.call(t.prototype)}else{try{throw Error()}catch(d){r=d}e()}}catch(d){if(d&&r&&typeof d.stack=="string"){for(var a=d.stack.split(`
`),o=r.stack.split(`
`),i=a.length-1,l=o.length-1;1<=i&&0<=l&&a[i]!==o[l];)l--;for(;1<=i&&0<=l;i--,l--)if(a[i]!==o[l]){if(i!==1||l!==1)do if(i--,l--,0>l||a[i]!==o[l]){var c=`
`+a[i].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=i&&0<=l);break}}}finally{Ku=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?$s(e):""}function FS(e){switch(e.tag){case 5:return $s(e.type);case 16:return $s("Lazy");case 13:return $s("Suspense");case 19:return $s("SuspenseList");case 0:case 2:case 15:return e=Gu(e.type,!1),e;case 11:return e=Gu(e.type.render,!1),e;case 1:return e=Gu(e.type,!0),e;default:return""}}function np(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case bo:return"Fragment";case yo:return"Portal";case Zd:return"Profiler";case Nm:return"StrictMode";case ep:return"Suspense";case tp:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Xx:return(e.displayName||"Context")+".Consumer";case Qx:return(e._context.displayName||"Context")+".Provider";case jm:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Am:return t=e.displayName||null,t!==null?t:np(e.type)||"Memo";case na:t=e._payload,e=e._init;try{return np(e(t))}catch{}}return null}function zS(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return np(t);case 8:return t===Nm?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function va(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Zx(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function $S(e){var t=Zx(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var a=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(i){r=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function dl(e){e._valueTracker||(e._valueTracker=$S(e))}function ey(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Zx(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function sc(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function rp(e,t){var n=t.checked;return gt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function lh(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=va(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function ty(e,t){t=t.checked,t!=null&&Sm(e,"checked",t,!1)}function ap(e,t){ty(e,t);var n=va(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?op(e,t.type,n):t.hasOwnProperty("defaultValue")&&op(e,t.type,va(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ch(e,t,n){if(t.hasOwnProperty("val
`).replace(QN,"")}function yl(e,t,n){if(t=Mh(t),Mh(e)!==t&&n)throw Error(ne(425))}function fc(){}var yp=null,bp=null;function wp(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var kp=typeof setTimeout=="function"?setTimeout:void 0,XN=typeof clearTimeout=="function"?clearTimeout:void 0,Eh=typeof Promise=="function"?Promise:void 0,JN=typeof queueMicrotask=="function"?queueMicrotask:typeof Eh<"u"?function(e){return Eh.resolve(null).then(e).catch(ZN)}:kp;function ZN(e){setTimeout(function(){throw e})}function id(e,t){var n=t,r=0;do{var a=n.nextSibling;if(e.removeChild(n),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(r===0){e.removeChild(a),gi(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=a}while(n);gi(t)}function pa(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Ih(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var fs=Math.random().toString(36).slice(2),ur="__reactFiber$"+fs,wi="__reactProps$"+fs,Dr="__reactContainer$"+fs,Cp="__reactEvents$"+fs,ej="__reactListeners$"+fs,tj="__reactHandles$"+fs;function Ia(e){var t=e[ur];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Dr]||n[ur]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Ih(e);e!==null;){if(n=e[ur])return n;e=Ih(e)}return t}e=n,n=e.parentNode}return null}function Wi(e){return e=e[ur]||e[Dr],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function So(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(ne(33))}function Zc(e){return e[wi]||null}var Sp=[],No=-1;function Sa(e){return{current:e}}function ot(e){0>No||(e.current=Sp[No],Sp[No]=null,No--)}function tt(e,t){No++,Sp[No]=e.current,e.current=t}var xa={},rn=Sa(xa),bn=Sa(!1),Ha=xa;function Qo(e,t){var n=e.type.contextTypes;if(!n)return xa;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var a={},o;for(o in n)a[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function wn(e){return e=e.childContextTypes,e!=null}function hc(){ot(bn),ot(rn)}function Lh(e,t,n){if(rn.current!==xa)throw Error(ne(168));tt(rn,t),tt(bn,n)}function Hy(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var a in r)if(!(a in t))throw Error(ne(108,zS(e)||"Unknown",a));return gt({},n,r)}function gc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||xa,Ha=rn.current,tt(rn,e),tt(bn,bn.current),!0}function Dh(e,t,n){var r=e.stateNode;if(!r)throw Error(ne(169));n?(e=Hy(e,t,Ha),r.__reactInternalMemoizedMergedChildContext=e,ot(bn),ot(rn),tt(rn,e)):ot(bn),tt(bn,n)}var Tr=null,eu=!1,ld=!1;function Wy(e){Tr===null?Tr=[e]:Tr.push(e)}function nj(e){eu=!0,Wy(e)}function Na(){if(!ld&&Tr!==null){ld=!0;var e=0,t=Ye;try{var n=Tr;for(Ye=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Tr=null,eu=!1}catch(a){throw Tr!==null&&(Tr=Tr.slice(e+1)),hy(Pm,Na),a}finally{Ye=t,ld=!1}}return null}var jo=[],Ao=0,vc=null,xc=0,Fn=[],zn=0,Wa=null,Rr=1,Mr="";function Ma(e,t){jo[Ao++]=xc,jo[Ao++]=vc,vc=e,xc=t}function qy(e,t,n){Fn[zn++]=Rr,Fn[zn++]=Mr,Fn[zn++]=Wa,Wa=e;var r=Rr;e=Mr;var a=32-Jn(r)-1;r&=~(1<<a),n+=1;var o=32-Jn(t)+a;if(30<o){var i=a-a%5;o=(r&(1<<i)-1).toString(32),r>>=i,a-=i,Rr=1<<32-Jn(t)+a|n<<a|r,Mr=o+e}else Rr=1<<o|n<<a|r,Mr=e}function Fm(e){e.return!==null&&(Ma(e,1),qy(e,1,0))}function zm(e){for(;e===vc;)vc=jo[--Ao],jo[Ao]=null,xc=jo[--Ao],jo[Ao]=null;for(;e===Wa;)Wa=Fn[--zn],Fn[zn]=null,Mr=Fn[--zn],Fn[zn]=null,Rr=Fn[--zn],Fn[zn]=null}var Rn=null,Tn=null,ct=!1,Xn=null;function Vy(e,t){var n=$n(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.de
Error generating stack: `+o.message+`
`+o.stack}return{value:e,source:t,stack:a,digest:null}}function md(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Tp(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var dj=typeof WeakMap=="function"?WeakMap:Map;function yb(e,t,n){n=Er(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){jc||(jc=!0,$p=r),Tp(e,t)},n}function bb(e,t,n){n=Er(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var a=t.value;n.payload=function(){return r(a)},n.callback=function(){Tp(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Tp(e,t),typeof r!="function"&&(fa===null?fa=new Set([this]):fa.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function Vh(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new dj;var a=new Set;r.set(t,a)}else a=r.get(t),a===void 0&&(a=new Set,r.set(t,a));a.has(n)||(a.add(n),e=Nj.bind(null,e,t,n),t.then(e,e))}function Kh(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Gh(e,t,n,r,a){return e.mode&1?(e.flags|=65536,e.lanes=a,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Er(-1,1),t.tag=2,ma(n,t,1))),n.lanes|=1),e)}var pj=Wr.ReactCurrentOwner,yn=!1;function cn(e,t,n,r){t.child=e===null?Yy(t,null,n,r):Jo(t,e.child,n,r)}function Yh(e,t,n,r,a){n=n.render;var o=t.ref;return Fo(t,a),r=Qm(e,t,n,r,o,a),n=Xm(),e!==null&&!yn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Fr(e,t,a)):(ct&&n&&Fm(t),t.flags|=1,cn(e,t,r,a),t.child)}function Qh(e,t,n,r,a){if(e===null){var o=n.type;return typeof o=="function"&&!lf(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,wb(e,t,o,r,a)):(e=Ql(n.type,null,r,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&a)){var i=o.memoizedProps;if(n=n.compare,n=n!==null?n:xi,n(i,r)&&e.ref===t.ref)return Fr(e,t,a)}return t.flags|=1,e=ga(o,r),e.ref=t.ref,e.return=t,t.child=e}function wb(e,t,n,r,a){if(e!==null){var o=e.memoizedProps;if(xi(o,r)&&e.ref===t.ref)if(yn=!1,t.pendingProps=r=o,(e.lanes&a)!==0)e.flags&131072&&(yn=!0);else return t.lanes=e.lanes,Fr(e,t,a)}return Rp(e,t,n,r,a)}function kb(e,t,n){var r=t.pendingProps,a=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},tt(To,An),An|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,tt(To,An),An|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,tt(To,An),An|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,tt(To,An),An|=r;return cn(e,t,a,n),t.child}function Cb(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Rp(e,t,n,r,a){var o=wn(n)?Ha:rn.current;return o=Qo(t,o),Fo(t,a),n=Qm(e,t,n,r,o,a),r=Xm(),e!==null&&!yn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Fr(e,t,a)):(ct&&r&&Fm(t),t.flags|=1,cn(e,t,n,a),t.child)}function Xh(e,t,n,r,a){if(wn(n)){var o=!0;gc(t)}else o=!1;if(Fo(t,a),t.stateNode===null)Kl(e,t),xb(t,n,r),Pp(t,n,r,a),r=!0;else if(e===null){var i=t.stateNode,l=t.memoizedProps;i.props=l;var c=i.context,d=n.contextType;typeof d=="object"&&d!==null?d=Hn(d):(d=wn(n)?Ha:rn.current,d=Qo(t,d));var p=n.getDerivedStateFromProps,m=typeof p=="function"||typeof i.getSnapshotBeforeUpdate=="function";m||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(l!==r||c!==d)&&qh(t,i,r,d),ra=!1;var f=t.memoizedState;i.state=f,wc(t,r,i,a),c=t.memoizedState,l!==r||f!==c||bn.current||ra?(typeof p=="function"&&(_p(t,n,p,r),c=t.memoizedState),(l=ra||Wh(t,n,l,r,f,c,d))?(m||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Oj=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Kb=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var Fj={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const zj=u.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:a="",children:o,iconNode:i,...l},c)=>u.createElement("svg",{ref:c,...Fj,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Kb("lucide",a),...l},[...i.map(([d,p])=>u.createElement(d,p)),...Array.isArray(o)?o:[o]]));/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const oe=(e,t)=>{const n=u.forwardRef(({className:r,...a},o)=>u.createElement(zj,{ref:o,iconNode:t,className:Kb(`lucide-${Oj(e)}`,r),...a}));return n.displayName=`${e}`,n};/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Gb=oe("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const $j=oe("ArchiveRestore",[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h2",key:"tvwodi"}],["path",{d:"M20 8v11a2 2 0 0 1-2 2h-2",key:"1gkqxj"}],["path",{d:"m9 15 3-3 3 3",key:"1pd0qc"}],["path",{d:"M12 12v9",key:"192myk"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Yb=oe("Archive",[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Uj=oe("ArrowDown",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Bj=oe("ArrowUpDown",[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Hj=oe("ArrowUp",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ri=oe("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Qb=oe("Bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Ga=oe("Brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Wj=oe("CalendarClock",[["path",{d:"M21 7.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.5",key:"1osxxc"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M3 10h5",key:"r794hk"}],["path",{d:"M17.5 17.5 16 16.3V14",key:"akvzfd"}],["circle",{cx:"16",cy:"16",r:"6",key:"qoo3c4"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const jt=oe("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const rr=oe("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const mf=oe("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const xr=oe("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const qj=oe("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ja=oe("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const dg=oe("CircleArrowUp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 12-4-4-4 4",key:"177agl"}],["path",{d:"M12 16V8",key:"1sbj14"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Xb=oe("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Jb=oe("CircleDashed",[["path",{d:"M10.1 2.182a10 10 0 0 1 3.8 0",key:"5ilxe3"}],["path",{d:"M13.9 21.818a10 10 0 0 1-3.8 0",key:"11zvb9"}],["path",{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7",key:"1iw5b2"}],["path",{d:"M2.182 13.9a10 10 0 0 1 0-3.8",key:"c0bmvh"}],["path",{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69",key:"1ruxm7"}],["path",{d:"M21.818 10.1a10 10 0 0 1 0 3.8",key:"qkgqxc"}],["path",{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69",key:"1mcia2"}],["path",{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7",key:"1fvljs"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ff=oe("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Vj=oe("CirclePause",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"10",x2:"10",y1:"15",y2:"9",key:"c1nkhi"}],["line",{x1:"14",x2:"14",y1:"15",y2:"9",key:"h65svq"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Tc=oe("CirclePlay",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polygon",{points:"10 8 16 12 10 16 10 8",key:"1cimsy"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Kj=oe("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Gj=oe("Clock3",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16.5 12",key:"1aq6pp"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const po=oe("Cloud",[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Zb=oe("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Yj=oe("CornerDownRight",[["polyline",{points:"15 10 20 15 15 20",key:"1q7qjw"}],["path",{d:"M4 4v7a4 4 0 0 0 4 4h12",key:"z08zvw"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const mo=oe("Cpu",[["rect",{width:"16",height:"16",x:"4",y:"4",rx:"2",key:"14l7u7"}],["rect",{width:"6",height:"6",x:"9",y:"9",rx:"1",key:"5aljv4"}],["path",{d:"M15 2v2",key:"13l42r"}],["path",{d:"M15 20v2",key:"15mkzm"}],["path",{d:"M2 15h2",key:"1gxd5l"}],["path",{d:"M2 9h2",key:"1bbxkp"}],["path",{d:"M20 15h2",key:"19e6y8"}],["path",{d:"M20 9h2",key:"19tzq7"}],["path",{d:"M9 2v2",key:"165o2o"}],["path",{d:"M9 20v2",key:"i2bqo8"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Rc=oe("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"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ew=oe("Earth",[["path",{d:"M21.54 15H17a2 2 0 0 0-2 2v4.54",key:"1djwo0"}],["path",{d:"M7 3.34V5a3 3 0 0 0 3 3a2 2 0 0 1 2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2c0-1.1.9-2 2-2h3.17",key:"1tzkfa"}],["path",{d:"M11 21.95V18a2 2 0 0 0-2-2a2 2 0 0 1-2-2v-1a2 2 0 0 0-2-2H2.05",key:"14pb5j"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const tw=oe("Ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const nw=oe("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const rw=oe("EyeOff",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const aw=oe("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Xl=oe("FileImage",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"10",cy:"12",r:"2",key:"737tya"}],["path",{d:"m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22",key:"wt3hpn"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Qj=oe("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Xj=oe("File",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ai=oe("Folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Jj=oe("Gem",[["path",{d:"M6 3h12l4 6-10 13L2 9Z",key:"1pcd5k"}],["path",{d:"M11 3 8 9l4 13 4-13-3-6",key:"1fcu3u"}],["path",{d:"M2 9h20",key:"16fsjt"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Zj=oe("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"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const e2=oe("Grid3x3",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const t2=oe("GripVertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const pg=oe("Hand",[["path",{d:"M18 11V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2",key:"1fvzgz"}],["path",{d:"M14 10V4a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2",key:"1kc0my"}],["path",{d:"M10 10.5V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2v8",key:"10h0bg"}],["path",{d:"M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15",key:"1s1gnw"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const n2=oe("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const hf=oe("Hexagon",[["path",{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z",key:"yt0hxn"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const r2=oe("History",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Vi=oe("Image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const mg=oe("KeyRound",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const _i=oe("Layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const a2=oe("ListTodo",[["rect",{x:"3",y:"5",width:"6",height:"6",rx:"1",key:"1defrl"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const o2=oe("ListTree",[["path",{d:"M21 12h-8",key:"1bmf0i"}],["path",{d:"M21 6H8",key:"1pqkrb"}],["path",{d:"M21 18h-8",key:"1tm79t"}],["path",{d:"M3 6v4c0 1.1.9 2 2 2h3",key:"1ywdgy"}],["path",{d:"M3 10v6c0 1.1.9 2 2 2h3",key:"2wc746"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const vt=oe("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const s2=oe("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ow=oe("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const gf=oe("Mic",[["path",{d:"M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z",key:"131961"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["line",{x1:"12",x2:"12",y1:"19",y2:"22",key:"x3vr5v"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const vf=oe("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const i2=oe("Orbit",[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["circle",{cx:"19",cy:"5",r:"2",key:"mhkx31"}],["circle",{cx:"5",cy:"19",r:"2",key:"v8kfzx"}],["path",{d:"M10.4 21.9a10 10 0 0 0 9.941-15.416",key:"eohfx2"}],["path",{d:"M13.5 2.1a10 10 0 0 0-9.841 15.416",key:"19pvbm"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const l2=oe("Palette",[["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z",key:"12rzf8"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const c2=oe("PanelLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const hs=oe("Pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const u2=oe("PinOff",[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89",key:"znwnzq"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11",key:"c9qhm2"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const d2=oe("Pin",[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z",key:"1nkz8b"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Ir=oe("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const p2=oe("RefreshCcw",[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Ki=oe("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const m2=oe("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const It=oe("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ns=oe("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const f2=oe("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const h2=oe("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const sw=oe("SlidersHorizontal",[["line",{x1:"21",x2:"14",y1:"4",y2:"4",key:"obuewd"}],["line",{x1:"10",x2:"3",y1:"4",y2:"4",key:"1q6298"}],["line",{x1:"21",x2:"12",y1:"12",y2:"12",key:"1iu8h1"}],["line",{x1:"8",x2:"3",y1:"12",y2:"12",key:"ntss68"}],["line",{x1:"21",x2:"16",y1:"20",y2:"20",key:"14d8ph"}],["line",{x1:"12",x2:"3",y1:"20",y2:"20",key:"m0wm8r"}],["line",{x1:"14",x2:"14",y1:"2",y2:"6",key:"14e1ph"}],["line",{x1:"8",x2:"8",y1:"10",y2:"14",key:"1i6ji0"}],["line",{x1:"16",x2:"16",y1:"18",y2:"22",key:"1lctlv"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const $o=oe("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const xf=oe("SquarePen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const g2=oe("SquarePlay",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"m9 8 6 4-6 4Z",key:"f1r3lt"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Wp=oe("Square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const iw=oe("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const v2=oe("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"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Mc=oe("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const zr=oe("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const qp=oe("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const x2=oe("Triangle",[["path",{d:"M13.73 4a2 2 0 0 0-3.46 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"14u9p9"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const y2=oe("Undo2",[["path",{d:"M9 14 4 9l5-5",key:"102s5s"}],["path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11",key:"f3b9sd"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const b2=oe("Waves",[["path",{d:"M2 6c.6.5 1.2 1 2.5 1C7 7 7 5 9.5 5c2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"knzxuh"}],["path",{d:"M2 12c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"2jd2cc"}],["path",{d:"M2 18c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"rd2r6e"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const lw=oe("Wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const vr=oe("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const fg=oe("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"}]]),je=e=>typeof e=="string",Ds=()=>{let e,t;const n=new Promise((r,a)=>{e=r,t=a});return n.resolve=e,n.reject=t,n},hg=e=>e==null?"":String(e),w2=(e,t,n)=>{e.forEach(r=>{t[r]&&(n[r]=t[r])})},k2=/###/g,gg=e=>e&&e.includes("###")?e.replace(k2,"."):e,vg=e=>!e||je(e),oi=(e,t,n)=>{const r=je(t)?t.split("."):t;let a=0;for(;a<r.length-1;){if(vg(e))return{};const o=gg(r[a]);!e[o]&&n&&(e[o]=new n),Object.prototype.hasOwnProperty.call(e,o)?e=e[o]:e={},++a}return vg(e)?{}:{obj:e,k:gg(r[a])}},xg=(e,t,n)=>{const{obj:r,k:a}=oi(e,t,Object);if(r!==void 0||t.length===1){r[a]=n;return}let o=t[t.length-1],i=t.slice(0,t.length-1),l=oi(e,i,Object);for(;l.obj===void 0&&i.length;)o=`${i[i.length-1]}.${o}`,i=i.slice(0,i.length-1),l=oi(e,i,Object),l!=null&&l.obj&&typeof l.obj[`${l.k}.${o}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${o}`]=n},C2=(e,t,n,r)=>{const{obj:a,k:o}=oi(e,t,Object);a[o]=a[o]||[],a[o].push(n)},Ec=(e,t)=>{const{obj:n,k:r}=oi(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},S2=(e,t,n)=>{const r=Ec(e,n);return r!==void 0?r:Ec(t,n)},cw=(e,t,n)=>{for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?je(e[r])||e[r]instanceof String||je(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):cw(e[r],t[r],n):e[r]=t[r]);return e},Ar=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),N2={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},j2=e=>je(e)?e.replace(/[&<>"'\/]/g,t=>N2[t]):e;class A2{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const _2=[" ",",","?","!",";"],P2=new A2(20),T2=(e,t,n)=>{t=t||"",n=n||"";const r=_2.filter(i=>!t.includes(i)&&!n.includes(i));if(r.length===0)return!0;const a=P2.getRegExp(`(${r.map(i=>i==="?"?"\\?":i).join("|")})`);let o=!a.test(e);if(!o){const i=e.indexOf(n);i>0&&!a.test(e.substring(0,i))&&(o=!0)}return o},Vp=(e,t,n=".")=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;const r=t.split(n);let a=e;for(let o=0;o<r.length;){if(!a||typeof a!="object")return;let i,l="";for(let c=o;c<r.length;++c)if(c!==o&&(l+=n),l+=r[c],i=a[l],i!==void 0){if(["string","number","boolean"].includes(typeof i)&&c<r.length-1)continue;o+=c-o+1;break}a=i}return a},Pi=e=>e==null?void 0:e.replace(/_/g,"-"),R2={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){var n,r;(r=(n=console==null?void 0:console[e])==null?void 0:n.apply)==null||r.call(n,console,t)}};class Ic{constructor(t,n={}){this.init(t,n)}init(t,n={}){this.prefix=n.prefix||"i18next:",this.logger=t||R2,this.options=n,this.debug=n.debug}log(...t){return this.forward(t,"log","",!0)}warn(...t){return this.forward(t,"warn","",!0)}error(...t){return this.forward(t,"error","")}deprecate(...t){return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,a){return a&&!this.debug?null:(t=t.map(o=>je(o)?o.replace(/[\r\n\x00-\x1F\x7F]/g," "):o),je(t[0])&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new Ic(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new Ic(this.logger,t)}}var pr=new Ic;class du{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const a=this.observers[r].get(n)||0;this.observers[r].set(n,a+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}once(t,n){const r=(...a)=>{n(...a),this.off(t,r)};return this.on(t,r),this}emit(t,...n){this.observers[t]&&Array.from(this.observers[t].entries()).forEach(([a,o])=>{for(let i=0;i<o;i++)a(...n)}),
* @license React
* use-sync-external-store-shim.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var rs=u;function eA(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var tA=typeof Object.is=="function"?Object.is:eA,nA=rs.useState,rA=rs.useEffect,aA=rs.useLayoutEffect,oA=rs.useDebugValue;function sA(e,t){var n=t(),r=nA({inst:{value:n,getSnapshot:t}}),a=r[0].inst,o=r[1];return aA(function(){a.value=n,a.getSnapshot=t,bd(a)&&o({inst:a})},[e,n,t]),rA(function(){return bd(a)&&o({inst:a}),e(function(){bd(a)&&o({inst:a})})},[e]),oA(n),n}function bd(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!tA(e,n)}catch{return!0}}function iA(e,t){return t()}var lA=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?iA:sA;hw.useSyncExternalStore=rs.useSyncExternalStore!==void 0?rs.useSyncExternalStore:lA;fw.exports=hw;var cA=fw.exports;const uA=(e,t)=>{if(Ya(t))return t;if(B2(t)&&Ya(t.defaultValue))return t.defaultValue;if(typeof e=="function")return"";if(Array.isArray(e)){const n=e[e.length-1];return typeof n=="function"?"":n}return e},dA={t:uA,ready:!1},pA=()=>()=>{},se=(e,t={})=>{var L,_,T;const{i18n:n}=t,{i18n:r,defaultNS:a}=u.useContext(J2)||{},o=n||r||Q2();o&&!o.reportNamespaces&&(o.reportNamespaces=new Z2),o||Kp(o,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const i=u.useMemo(()=>{var R;return{...G2(),...(R=o==null?void 0:o.options)==null?void 0:R.react,...t}},[o,t]),{useSuspense:l,keyPrefix:c}=i,d=e||a||((L=o==null?void 0:o.options)==null?void 0:L.defaultNS),p=Ya(d)?[d]:d||["translation"],m=u.useMemo(()=>p,p);(T=(_=o==null?void 0:o.reportNamespaces)==null?void 0:_.addUsedNamespaces)==null||T.call(_,m);const f=u.useRef(0),h=u.useCallback(R=>{if(!o)return pA;const{bindI18n:D,bindI18nStore:K}=i,G=()=>{f.current+=1,R()};return D&&o.on(D,G),K&&o.store.on(K,G),()=>{D&&D.split(" ").forEach(W=>o.off(W,G)),K&&K.split(" ").forEach(W=>o.store.off(W,G))}},[o,i]),y=u.useRef(),x=u.useCallback(()=>{if(!o)return dA;const R=!!(o.isInitialized||o.initializedStoreOnce)&&m.every(E=>U2(E,o,i)),D=t.lng||o.language,K=f.current,G=y.current;if(G&&G.ready===R&&G.lng===D&&G.keyPrefix===c&&G.revision===K)return G;const H={t:o.getFixedT(D,i.nsMode==="fallback"?m:m[0],c),ready:R,lng:D,keyPrefix:c,revision:K};return y.current=H,H},[o,m,c,i,t.lng]),[b,v]=u.useState(0),{t:g,ready:w}=cA.useSyncExternalStore(h,x,x);u.useEffect(()=>{if(o&&!w&&!l){const R=()=>v(D=>D+1);t.lng?_g(o,t.lng,m,R):Gp(o,m,R)}},[o,t.lng,m,w,l,b]);const k=o||{},C=u.useRef(null),j=u.useRef(),N=R=>{const D=Object.getOwnPropertyDescriptors(R);D.__original&&delete D.__original;const K=Object.create(Object.getPrototypeOf(R),D);if(!Object.prototype.hasOwnProperty.call(K,"__original"))try{Object.defineProperty(K,"__original",{value:R,writable:!1,enumerable:!1,configurable:!1})}catch{}return K},P=u.useMemo(()=>{const R=k,D=R==null?void 0:R.language;let K=R;R&&(C.current&&C.current.__original===R?j.current!==D?(K=N(R),C.current=K,j.current=D):K=C.current:(K=N(R),C.current=K,j.current=D));const G=!w&&!l?(...H)=>(Kp(o,"USE_T_BEFORE_READY","useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t."),g(...H)):g,W=[G,K,w];return W.t=G,W.i18n=K,W.ready=w,W},[g,k,w,k.resolvedLanguage,k.language,k.languages]);if(o&&l&&!w)throw new Promise(R=>{const D=()=>R();t.lng?_g(o,t.lng,m,D):Gp(o,m,D)});return P};function mA(e,t){const n=u.createContext(t),r=o=>{const{children:i,...l}=o,c=u.useMemo(()=>l,Object.values(l));return s.jsx(n.Provider,{value:c,children:i})};r.displayName=e+"Provider";function a(o){const i=u.useContext(n);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${o}\` must be used within \`${e}\``)}return[r,a]}function Aa(e,t=[]){let n=[];function r(o,i){const l=u.createContext(i),c=n.length;n=[...n,i];const d=m=>{var v;const{scope:f,children:h,...y}=m,x=((v=f==null?void 0:f[e])==null?void 0:v[c])||l,b=u.useMemo(()=>y,Object.values(y));return s.jsx(x.Provider,{value:b,children:h})};d.displayName=o+"Provider";function p(m,f){var x;const h=((x=f==null?void 0:f[e])==null?void 0:x[c])||l,y=u.useContext(h);if(y)return
.`.concat(KA,` {
overflow: hidden `).concat(r,`;
padding-right: `).concat(l,"px ").concat(r,`;
}
body[`).concat(Bo,`] {
overflow: hidden `).concat(r,`;
overscroll-behavior: contain;
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
padding-left: `.concat(a,`px;
padding-top: `).concat(o,`px;
padding-right: `).concat(i,`px;
margin-left:0;
margin-top:0;
margin-right: `).concat(l,"px ").concat(r,`;
`),n==="padding"&&"padding-right: ".concat(l,"px ").concat(r,";")].filter(Boolean).join(""),`
}
.`).concat(Jl,` {
right: `).concat(l,"px ").concat(r,`;
}
.`).concat(Zl,` {
margin-right: `).concat(l,"px ").concat(r,`;
}
.`).concat(Jl," .").concat(Jl,` {
right: 0 `).concat(r,`;
}
.`).concat(Zl," .").concat(Zl,` {
margin-right: 0 `).concat(r,`;
}
body[`).concat(Bo,`] {
`).concat(GA,": ").concat(l,`px;
}
`)},Fg=function(){var e=parseInt(document.body.getAttribute(Bo)||"0",10);return isFinite(e)?e:0},m_=function(){u.useEffect(function(){return document.body.setAttribute(Bo,(Fg()+1).toString()),function(){var e=Fg()-1;e<=0?document.body.removeAttribute(Bo):document.body.setAttribute(Bo,e.toString())}},[])},f_=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,a=r===void 0?"margin":r;m_();var o=u.useMemo(function(){return u_(a)},[a]);return u.createElement(d_,{styles:p_(o,!t,a,n?"":"!important")})},Xp=!1;if(typeof window<"u")try{var _l=Object.defineProperty({},"passive",{get:function(){return Xp=!0,!0}});window.addEventListener("test",_l,_l),window.removeEventListener("test",_l,_l)}catch{Xp=!1}var fo=Xp?{passive:!1}:!1,h_=function(e){return e.tagName==="TEXTAREA"},Nw=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!h_(e)&&n[t]==="visible")},g_=function(e){return Nw(e,"overflowY")},v_=function(e){return Nw(e,"overflowX")},zg=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var a=jw(e,r);if(a){var o=Aw(e,r),i=o[1],l=o[2];if(i>l)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},x_=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},y_=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},jw=function(e,t){return e==="v"?g_(t):v_(t)},Aw=function(e,t){return e==="v"?x_(t):y_(t)},b_=function(e,t){return e==="h"&&t==="rtl"?-1:1},w_=function(e,t,n,r,a){var o=b_(e,window.getComputedStyle(t).direction),i=o*r,l=n.target,c=t.contains(l),d=!1,p=i>0,m=0,f=0;do{if(!l)break;var h=Aw(e,l),y=h[0],x=h[1],b=h[2],v=x-b-o*y;(y||v)&&jw(e,l)&&(m+=v,f+=y);var g=l.parentNode;l=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&l!==document.body||c&&(t.contains(l)||t===l));return(p&&Math.abs(m)<1||!p&&Math.abs(f)<1)&&(d=!0),d},Pl=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},$g=function(e){return[e.deltaX,e.deltaY]},Ug=function(e){return e&&"current"in e?e.current:e},k_=function(e,t){return e[0]===t[0]&&e[1]===t[1]},C_=function(e){return`
.block-interactivity-`.concat(e,` {pointer-events: none;}
.allow-interactivity-`).concat(e,` {pointer-events: all;}
`)},S_=0,ho=[];function N_(e){var t=u.useRef([]),n=u.useRef([0,0]),r=u.useRef(),a=u.useState(S_++)[0],o=u.useState(Sw)[0],i=u.useRef(e);u.useEffect(function(){i.current=e},[e]),u.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var x=VA([e.lockRef.current],(e.shards||[]).map(Ug),!0).filter(Boolean);return x.forEach(function(b){return b.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),x.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var l=u.useCallback(function(x,b){if("touches"in x&&x.touches.length===2||x.type==="wheel"&&x.ctrlKey)return!i.current.allowPinchZoom;var v=Pl(x),g=n.current,w="deltaX"in x?x.deltaX:g[0]-v[0],k="deltaY"in x?x.deltaY:g[1]-v[1],C,j=x.target,N=Math.abs(w)>Math.abs(k)?"h":"v";if("touches"in x&&N==="h"&&j.type==="range")return!1;var P=window.getSelection(),L=P&&P.anchorNode,_=L?L===j||L.contains(j):!1;if(_)return!1;var T=zg(N,j);if(!T)return!0;if(T?C=N:(C=N==="v"?"h":"v",T=zg(N,j)),!T)return!1;if(!r.current&&"changedTouches"in x&&(w||k)&&(r.current=C),!C)return!0;var R=r.current||C;return w_(R,b,x,R==="h"?w:k)},[]),c=u.useCallback(function(x){var b=x;if(!(!ho.length||ho[ho.length-1]!==o)){var v="deltaY"in b?$g(b):Pl(b),g=t.current.filter(function(C){return C.name===b.type&&(C.target===b.target||b.target===C.shadowParent)&&k_(C.delta,v)})[0];if(g&&g.should){b.cancelable&&b.preventDefault();return}if(!g){var w=(i.current.shards||[]).map(Ug).filter(Boolean).filter(function(C){return C.contains(b.target)}),k=w.length>0?l(b,w[0]):!i.current.noIsolation;k&&b.cancelable&&b.preventDefault()}}},[]),d=u.useCallback(function(x,b,v,g){var w={name:x,delta:b,target:v,should:g,shadowParent:j_(v)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(k){return k!==w})},1)},[]),p=u.useCallback(function(x){n.current=Pl(x),r.current=void 0},[]),m=u.useCallback(function(x){d(x.type,$g(x),x.target,l(x,e.lockRef.current))},[]),f=u.useCallback(function(x){d(x.type,Pl(x),x.target,l(x,e.lockRef.current))},[]);u.useEffect(function(){return ho.push(o),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:f}),document.addEventListener("wheel",c,fo),document.addEventListener("touchmove",c,fo),document.addEventListener("touchstart",p,fo),function(){ho=ho.filter(function(x){return x!==o}),document.removeEventListener("wheel",c,fo),document.removeEventListener("touchmove",c,fo),document.removeEventListener("touchstart",p,fo)}},[]);var h=e.removeScrollBar,y=e.inert;return u.createElement(u.Fragment,null,y?u.createElement(o,{styles:C_(a)}):null,h?u.createElement(f_,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function j_(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const A_=t_(Cw,N_);var bf=u.forwardRef(function(e,t){return u.createElement(hu,dr({},e,{ref:t,sideCar:A_}))});bf.classNames=hu.classNames;var __=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},go=new WeakMap,Tl=new WeakMap,Rl={},Ad=0,_w=function(e){return e&&(e.host||_w(e.parentNode))},P_=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=_w(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},T_=function(e,t,n,r){var a=P_(t,Array.isArray(e)?e:[e]);Rl[n]||(Rl[n]=new WeakMap);var o=Rl[n],i=[],l=new Set,c=new Set(a),d=function(m){!m||l.has(m)||(l.add(m),d(m.parentNode))};a.forEach(d);var p=function(m){!m||c.has(m)||Array.prototype.forEach.call(m.children,function(f){if(l.has(f))p(f);else try{var h=f.getAttribute(r),y=h!==null&&h!=="false",x=(go.get(f)||0)+1,b=(o.get(f)||0)+1;go.set(f,x),o.set(f,b),i.push(f),x===1&&y&&Tl.set(f,!0),b===1&&f.setAttribute(n,"true"),y||f.setAttribute(r,"true")}catch(v){console.error("aria-hidden: cannot operate on ",f,v)}})};return p(t),l.clear(),Ad++,function(){i.forEach(function(m){v
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return u.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},q_="DialogDescriptionWarning",V_=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Vw(q_).contentName}}.`;return u.useEffect(()=>{var o;const a=(o=e.current)==null?void 0:o.getAttribute("aria-describedby");t&&a&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},vu=Mw,K_=Iw,xu=Dw,gs=Ow,vs=Fw,xs=$w,Gi=Bw,Yi=Ww,G_=Symbol("radix.slottable");function Y_(e){const t=({children:n})=>s.jsx(s.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=G_,t}var Kw="AlertDialog",[Q_]=Aa(Kw,[Rw]),qr=Rw(),Gw=e=>{const{__scopeAlertDialog:t,...n}=e,r=qr(t);return s.jsx(vu,{...r,...n,modal:!0})};Gw.displayName=Kw;var X_="AlertDialogTrigger",J_=u.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,a=qr(n);return s.jsx(K_,{...a,...r,ref:t})});J_.displayName=X_;var Z_="AlertDialogPortal",Yw=e=>{const{__scopeAlertDialog:t,...n}=e,r=qr(t);return s.jsx(xu,{...r,...n})};Yw.displayName=Z_;var eP="AlertDialogOverlay",Qw=u.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,a=qr(n);return s.jsx(gs,{...a,...r,ref:t})});Qw.displayName=eP;var Ho="AlertDialogContent",[tP,nP]=Q_(Ho),rP=Y_("AlertDialogContent"),Xw=u.forwardRef((e,t)=>{const{__scopeAlertDialog:n,children:r,...a}=e,o=qr(n),i=u.useRef(null),l=At(t,i),c=u.useRef(null);return s.jsx(H_,{contentName:Ho,titleName:Jw,docsSlug:"alert-dialog",children:s.jsx(tP,{scope:n,cancelRef:c,children:s.jsxs(vs,{role:"alertdialog",...o,...a,ref:l,onOpenAutoFocus:_e(a.onOpenAutoFocus,d=>{var p;d.preventDefault(),(p=c.current)==null||p.focus({preventScroll:!0})}),onPointerDownOutside:d=>d.preventDefault(),onInteractOutside:d=>d.preventDefault(),children:[s.jsx(rP,{children:r}),s.jsx(oP,{contentRef:i})]})})})});Xw.displayName=Ho;var Jw="AlertDialogTitle",Zw=u.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,a=qr(n);return s.jsx(xs,{...a,...r,ref:t})});Zw.displayName=Jw;var e0="AlertDialogDescription",t0=u.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,a=qr(n);return s.jsx(Gi,{...a,...r,ref:t})});t0.displayName=e0;var aP="AlertDialogAction",n0=u.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,a=qr(n);return s.jsx(Yi,{...a,...r,ref:t})});n0.displayName=aP;var r0="AlertDialogCancel",a0=u.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:a}=nP(r0,n),o=qr(n),i=At(t,a);return s.jsx(Yi,{...o,...r,ref:i})});a0.displayName=r0;var oP=({contentRef:e})=>{const t=`\`${Ho}\` requires a description for the component to be accessible for screen reader users.
You can add a description to the \`${Ho}\` by passing a \`${e0}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${Ho}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return u.useEffect(()=>{var r;document.getElementById((r=e.current)==null?void 0:r.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},sP=Gw,iP=Yw,o0=Qw,s0=Xw,i0=n0,l0=a0,c0=Zw,u0=t0;function d0(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=d0(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function p0(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=d0(e))&&(r&&(r+=" "),r+=t);return r}const Sf="-",lP=e=>{const t=uP(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{const l=i.split(Sf);return l[0]===""&&l.length!==1&&l.shift(),m0(l,t)||cP(i)},getConflictingClassGroupIds:(i,l)=>{const c=n[i]||[];return l&&r[i]?[...c,...r[i]]:c}}},m0=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),a=r?m0(e.slice(1),r):void 0;if(a)return a;if(t.validators.length===0)return;const o=e.join(Sf);return(i=t.validators.find(({validator:l})=>l(o)))==null?void 0:i.classGroupId},Bg=/^\[(.+)\]$/,cP=e=>{if(Bg.test(e)){const t=Bg.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},uP=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return pP(Object.entries(e.classGroups),n).forEach(([o,i])=>{Jp(i,r,o,t)}),r},Jp=(e,t,n,r)=>{e.forEach(a=>{if(typeof a=="string"){const o=a===""?t:Hg(t,a);o.classGroupId=n;return}if(typeof a=="function"){if(dP(a)){Jp(a(r),t,n,r);return}t.validators.push({validator:a,classGroupId:n});return}Object.entries(a).forEach(([o,i])=>{Jp(i,Hg(t,o),n,r)})})},Hg=(e,t)=>{let n=e;return t.split(Sf).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},dP=e=>e.isThemeGetter,pP=(e,t)=>t?e.map(([n,r])=>{const a=r.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([i,l])=>[t+i,l])):o);return[n,a]}):e,mP=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const a=(o,i)=>{n.set(o,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(o){let i=n.get(o);if(i!==void 0)return i;if((i=r.get(o))!==void 0)return a(o,i),i},set(o,i){n.has(o)?n.set(o,i):a(o,i)}}},f0="!",fP=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,a=t[0],o=t.length,i=l=>{const c=[];let d=0,p=0,m;for(let b=0;b<l.length;b++){let v=l[b];if(d===0){if(v===a&&(r||l.slice(b,b+o)===t)){c.push(l.slice(p,b)),p=b+o;continue}if(v==="/"){m=b;continue}}v==="["?d++:v==="]"&&d--}const f=c.length===0?l:l.substring(p),h=f.startsWith(f0),y=h?f.substring(1):f,x=m&&m>p?m-p:void 0;return{modifiers:c,hasImportantModifier:h,baseClassName:y,maybePostfixModifierPosition:x}};return n?l=>n({className:l,parseClassName:i}):i},hP=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},gP=e=>({cache:mP(e.cacheSize),parseClassName:fP(e),...lP(e)}),vP=/\s+/,xP=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:a}=t,o=[],i=e.trim().split(vP);let l="";for(let c=i.length-1;c>=0;c-=1){const d=i[c],{modifiers:p,hasImportantModifier:m,baseClassName:f,maybePostfixModifierPosition:h}=n(d);let y=!!h,x=r(y?f.substring(0,h):f);if(!x){if(!y){l=d+(l.length>0?" "+l:l);continue}if(x=r(f),!x){l=d+(l.length>0?" "+l:l);continue}y=!1}const b=hP(p).join(":"),v=m?b+f0:b,g=v+x;if(o.includes(g))continue;o.push(g);const w=a(x,y);for(let k=0;k<w.length;++k){const C=w[k];o.push(v+C)}l=d+(l.length>0?" "+l:l)}return l};function yP(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=h0(t))&&(r&&(r+=" "),r+=n);return r}const h0=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=h0(e[r]))&&(n&&(n+=" "),n+=t);return n};function bP(e,...t){let n,r,a,o=i;function i(c){const d=t.reduce((p,m)=>m(p),e());return n=gP(d),r=n.cache.get,a=n.cache.set,o=l,l(c)}function l(c){const d=r(c);if(d)return d;c
`);return s.jsx("pre",{className:A("m-0 overflow-x-auto p-4 font-mono text-sm leading-[1.6] text-foreground/90",n?"whitespace-pre":"whitespace-pre-wrap",t==="default"?"bg-zinc-100 dark:bg-zinc-800":"bg-transparent",t==="none"&&"p-3 text-[13px] leading-[1.55]",a),"data-testid":r,children:s.jsx("code",{className:"text-inherit",children:n?i.map((l,c)=>s.jsxs("span",{className:"flex min-w-max",children:[s.jsx("span",{className:"w-10 shrink-0 select-none pr-4 text-right text-muted-foreground/60",children:c+1}),s.jsx("span",{className:"whitespace-pre",children:o(l||" ")}),c<i.length-1?`
`:null]},c)):o(e)})})}function D4(e,t){const n=e==null?void 0:e.trim().toLowerCase();return!!(n&&T4.has(n)||C4(t))}function O4({language:e,code:t,className:n,chrome:r="default",highlight:a=!0,showLineNumbers:o=!1,wrapLongLines:i=!0}){const{t:l}=se(),[c,d]=u.useState(!1),p=w4()==="dark",m=r==="default",f=D4(e,t),h=u.useCallback(()=>{navigator.clipboard&&navigator.clipboard.writeText(f?S4(t):t).then(()=>{d(!0),setTimeout(()=>d(!1),1500)})},[t,f]);return s.jsxs("div",{className:A("not-prose overflow-hidden",m&&"rounded-lg border",m&&(p?"border-white/10":"border-black/10"),n),children:[m?s.jsxs("div",{className:A("flex items-center justify-between px-4 pb-1.5 pt-2 text-xs font-medium",p?"bg-zinc-800 text-zinc-300":"bg-zinc-100 text-zinc-600"),children:[s.jsx("span",{className:"lowercase font-mono",children:e||l("code.fallbackLanguage")}),s.jsxs("button",{type:"button",onClick:h,className:A("inline-flex items-center gap-1 rounded px-1.5 py-0.5 font-mono transition-colors",p?"text-zinc-400 hover:bg-zinc-700 hover:text-zinc-200":"text-zinc-500 hover:bg-zinc-200 hover:text-zinc-700"),"aria-label":l("code.copyAria"),children:[c?s.jsx(jt,{className:"h-3.5 w-3.5"}):s.jsx(Zb,{className:"h-3.5 w-3.5"}),s.jsx("span",{children:l(c?"code.copied":"code.copy")})]})]}):null,f?s.jsx($d,{code:t,chrome:r,showLineNumbers:o,testId:"ansi-code",renderText:L4}):a?s.jsx(u.Suspense,{fallback:s.jsx($d,{code:t,chrome:r,showLineNumbers:o,testId:"plain-code-fallback"}),children:s.jsx(E4,{language:e,code:t,isDark:p,chrome:r,showLineNumbers:o,wrapLongLines:i})}):s.jsx($d,{code:t,chrome:r,showLineNumbers:o,testId:"plain-code-fallback"})]})}function Jf({path:e,tooltipPath:t,display:n="name",active:r=!1,className:a,textClassName:o,previewPath:i,onOpen:l,testId:c="inline-file-path"}){const{directory:d,name:p}=sC(e),m=z4(e),f=n==="path"?e.replace(/\\/g,"/"):p,h=t||e,y=i||t||e,x=!!l,b=g=>{l&&(g.preventDefault(),g.stopPropagation(),l(y))},v=g=>{g.key!=="Enter"&&g.key!==" "||b(g)};return s.jsx(Eu,{delayDuration:500,skipDelayDuration:100,children:s.jsxs(Li,{children:[s.jsx(Di,{asChild:!0,children:s.jsx("span",{className:A("not-prose inline-flex max-w-full align-baseline leading-[inherit]",a),children:s.jsxs("span",{"data-testid":c,"aria-label":h,role:x?"button":void 0,tabIndex:x?0:void 0,onClick:x?b:void 0,onKeyDown:x?v:void 0,className:A("inline-flex max-w-full items-baseline gap-[0.28em] font-medium leading-[inherit]","text-sky-600 transition-colors hover:text-sky-700","dark:text-sky-300 dark:hover:text-sky-200",x&&["cursor-pointer rounded-[5px]","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-sky-400/45"]),children:[s.jsx($4,{kind:m}),s.jsx("span",{"data-sheen-text":r?f:void 0,className:A("min-w-0 max-w-full truncate",r&&"streaming-text-sheen file-reference-sheen",o),children:n==="path"&&d?s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"text-muted-foreground/65",children:d}),s.jsx("span",{className:"font-semibold text-sky-700 dark:text-sky-200",children:p})]}):f})]})})}),s.jsx(is,{side:"top",align:"center",sideOffset:8,collisionPadding:12,className:A("max-w-[min(38rem,calc(100vw-2rem))] rounded-[10px]","border-border/60 bg-popover/95 px-2.5 py-1.5","break-all font-mono text-[11px] leading-snug text-popover-foreground","shadow-lg backdrop-blur"),children:h})]})})}function k6(e){const t=e.trim();if(!t||t.includes(`
`)||/^[a-z][a-z0-9+.-]*:\/\//i.test(t)||F4(t)||!/[\\/]/.test(t)&&!/^(dockerfile|makefile|readme|package-lock\.json)$/i.test(t))return!1;const n=t.replace(/\\/g,"/"),r=n.split("/").filter(Boolean).pop()??n;return!r||r==="."||r===".."?!1:/^(dockerfile|makefile|readme|package-lock\.json)$/i.test(r)?!0:/\.[a-z0-9][a-z0-9_-]{0,12}$/i.test(r)}function F4(e){return/[*?[\]{}]/.test(e.trim())}function sC(e){const t=e.replace(/\\/g,"/"),n=t.lastIndexOf("/");return n<0?{directory:"",name:e}:{directory:t.slice(0,n+1),name:t.slice(n+1)||t}}function z4(e){const t=e.toLowerCase(),n=t.split(/[\\/]/).pop()??t,r=n.includes(".")?n.split(".").pop()??"":"";if(n==="dockerfile")return"default";switch(r){case"py":case"pyi":return"python";case"jsx":case"tsx":return"react";case"js":case"mjs":case"cjs":return"javascript";case"ts":case"mts":case"cts":return"typescript";case"html":case"htm":return"html";case"css":case"scss":case"sass":return"css";case"json":case"jsonl":return"json";case"md":case"mdx":return"markdown";case"ipynb":return"notebook";default:return"default"}}function $4({kind:e}){if(e==="python")return s.jsxs("svg",{"aria-hidden":!0,className:"h-[1em] w-[1em] shrink-0 translate-y-[0.12em]",viewBox:"0 0 24 24",children:[s.jsx("path",{d:"M11.9 2.3c-3 0-4.5.8-4.5 2.3v2.1h4.8v.8H5.5C4 7.5 3 8.8 3 10.8v2.1c0 1.8 1.1 3 2.7 3h1.6v-2.3c0-1.7 1.4-3.1 3.1-3.1h4.2c1.3 0 2.3-1 2.3-2.3V4.6c0-1.4-1.5-2.3-4.6-2.3h-.4Z",fill:"#3776AB"}),s.jsx("path",{d:"M12.1 21.7c3 0 4.5-.8 4.5-2.3v-2.1h-4.8v-.8h6.7c1.5 0 2.5-1.3 2.5-3.3v-2.1c0-1.8-1.1-3-2.7-3h-1.6v2.3c0 1.7-1.4 3.1-3.1 3.1H9.4c-1.3 0-2.3 1-2.3 2.3v3.6c0 1.4 1.5 2.3 4.6 2.3h.4Z",fill:"#FFD43B"}),s.jsx("circle",{cx:"9",cy:"5.1",r:"0.8",fill:"#fff"}),s.jsx("circle",{cx:"15",cy:"18.9",r:"0.8",fill:"#5C3B00",opacity:"0.85"})]});if(e==="react")return s.jsxs("svg",{"aria-hidden":!0,className:"h-[0.92em] w-[0.92em] shrink-0 translate-y-[0.11em] text-sky-500 dark:text-sky-300",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("circle",{cx:"12",cy:"12",r:"1.9",fill:"currentColor",stroke:"none"}),s.jsx("ellipse",{cx:"12",cy:"12",rx:"9",ry:"3.7"}),s.jsx("ellipse",{cx:"12",cy:"12",rx:"9",ry:"3.7",transform:"rotate(60 12 12)"}),s.jsx("ellipse",{cx:"12",cy:"12",rx:"9",ry:"3.7",transform:"rotate(120 12 12)"})]});if(e==="default")return s.jsxs("svg",{"aria-hidden":!0,className:"h-[0.92em] w-[0.92em] shrink-0 translate-y-[0.11em] text-sky-500 dark:text-sky-300",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.9",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("path",{d:"M14 2H7a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V7z"}),s.jsx("path",{d:"M14 2v5h5"})]});const t=U4(e);return s.jsxs("svg",{"aria-hidden":!0,className:"h-[0.96em] w-[0.96em] shrink-0 translate-y-[0.12em] text-sky-500 dark:text-sky-300",viewBox:"0 0 24 24",fill:"none",children:[s.jsx("path",{d:"M7 3.5h6.6L18 7.9V19a1.5 1.5 0 0 1-1.5 1.5h-9A1.5 1.5 0 0 1 6 19V5a1.5 1.5 0 0 1 1.5-1.5Z",fill:"currentColor",opacity:"0.12"}),s.jsx("path",{d:"M13.5 3.75V8h4.25M7 3.5h6.6L18 7.9V19a1.5 1.5 0 0 1-1.5 1.5h-9A1.5 1.5 0 0 1 6 19V5a1.5 1.5 0 0 1 1.5-1.5Z",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round"}),s.jsx("text",{x:"12",y:"15.7",textAnchor:"middle",fill:"currentColor",fontSize:t.length>1?"5.8":"7.2",fontWeight:"800",letterSpacing:"-0.2",children:t})]})}function U4(e){switch(e){case"css":return"#";case"html":return"H";case"javascript":return"JS";case"json":return"{}";case"markdown":return"M";case"notebook":return"N";case"python":return"PY";case"typescript":return"TS";default:return""}}function B4(){return typeof window>"u"||typeof window.matchMedia!="function"?!1:window.matchMedia("(hover: hover) and (pointer: fine)").matches}function H4({sessionKey:e,path:t,token:n,desktopWidth:r=544,isClosing:a=!1,onResizeStart:o,onClose:i}){const{t:l}=se(),[c,d]=u.useState({status:"loading"}),[p,m]=u.useState(!1),[f,h]=u.useState(B4);u.useEffect(()=>{const j=window.requestAnimationFrame(()=>m(!0));return()=>window.canc
`).trim();return n?n.length>320?`${n.slice(0,317)}...`:n:`Prompt ${t+1}`}function hm(e,t){if(!e||!t)return;const n=ui(e,t);n&&e.scrollTo({top:Math.max(0,Zf(e,n)-16),behavior:"smooth"})}function ui(e,t){const n=e.querySelectorAll("[data-user-prompt-id]");return Array.from(n).find(r=>r.dataset.userPromptId===t)??null}function Zf(e,t){const n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return n.top!==0||r.top!==0?r.top-n.top+e.scrollTop:t.offsetTop}function V4({messages:e,onJumpToPrompt:t}){const{i18n:n,t:r}=se(),a=u.useMemo(()=>iC(e),[e]),[o,i]=u.useState(!1),[l,c]=u.useState(""),d=u.useMemo(()=>{const m=l.trim().toLocaleLowerCase();return m?a.filter(f=>`${f.label}
${f.preview}`.toLocaleLowerCase().includes(m)):a},[a,l]);if(a.length===0)return null;const p=m=>{i(!1),t(m)};return s.jsxs(s.Fragment,{children:[s.jsx(fe,{type:"button",variant:"ghost",size:"icon",className:A("host-no-drag h-8 w-8 rounded-full text-muted-foreground/80","hover:bg-accent/40 hover:text-foreground"),"aria-label":r("thread.promptNavigator.open"),onClick:()=>i(!0),children:s.jsx(o2,{className:"h-4 w-4"})}),s.jsx(Vf,{open:o,onOpenChange:i,children:s.jsxs(_u,{side:"right","aria-describedby":void 0,className:"w-[min(92vw,24rem)] gap-0 p-0 sm:max-w-[24rem]",children:[s.jsxs("div",{className:"border-b px-5 pb-4 pt-5",children:[s.jsx(Pu,{className:"text-base font-medium",children:r("thread.promptNavigator.title")}),s.jsxs("div",{className:"relative mt-4",children:[s.jsx(It,{"aria-hidden":!0,className:"pointer-events-none absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground"}),s.jsx("input",{value:l,onChange:m=>c(m.target.value),"aria-label":r("thread.promptNavigator.search"),placeholder:r("thread.promptNavigator.search"),className:A("h-10 w-full rounded-full border border-border bg-background pl-9 pr-3 text-sm","outline-none transition focus:border-ring focus:ring-2 focus:ring-ring/20")})]})]}),s.jsx("div",{className:"min-h-0 flex-1 overflow-y-auto px-2 py-2",children:d.length>0?s.jsx("div",{className:"space-y-1",children:d.map(m=>s.jsx(K4,{locale:n.resolvedLanguage||n.language,prompt:m,onJump:p},m.id))}):s.jsx("div",{className:"px-3 py-10 text-center text-sm text-muted-foreground",children:r("thread.promptNavigator.noResults")})})]})})]})}function K4({locale:e,onJump:t,prompt:n}){const{t:r}=se(),a=Ur(n.createdAt,e);return s.jsxs("button",{type:"button",className:A("w-full rounded-xl px-3 py-3 text-left transition","hover:bg-accent focus-visible:bg-accent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/30"),"aria-label":r("thread.promptNavigator.jumpTo",{label:n.label}),onClick:()=>t(n.id),children:[s.jsx("div",{className:"max-h-20 overflow-hidden whitespace-pre-wrap break-words text-sm leading-5 text-foreground",children:n.preview}),a?s.jsx("div",{className:"mt-1 text-[10px] leading-4 text-muted-foreground/75",children:a}):null]})}const G4=3e3;function Y4(e,t,n){const[r,a]=u.useState([]),[o,i]=u.useState(!1),[l,c]=u.useState(!1),[d,p]=u.useState(()=>Date.now());return u.useEffect(()=>{if(!e)return;let m=!1,f=!1;const h=async(b=!1)=>{b&&(i(!0),c(!1),a([]));try{const v=await b1(t,n);if(m)return;a(v.jobs),c(!1),f=!0}catch{!m&&!f&&c(!0)}finally{!m&&b&&i(!1)}};h(!0);const y=window.setInterval(()=>void h(!1),G4),x=()=>{document.visibilityState!=="hidden"&&h(!1)};return window.addEventListener("focus",x),document.addEventListener("visibilitychange",x),()=>{m=!0,window.clearInterval(y),window.removeEventListener("focus",x),document.removeEventListener("visibilitychange",x)}},[e,n,t]),u.useEffect(()=>{if(!e)return;p(Date.now());const m=window.setInterval(()=>p(Date.now()),1e3);return()=>window.clearInterval(m)},[e]),{jobs:r,loading:o,loadFailed:l,now:d}}const Q4=[[60,"second"],[60,"minute"],[24,"hour"],[7,"day"],[4.345,"week"],[12,"month"],[Number.POSITIVE_INFINITY,"year"]];function X4({sessionKey:e,token:t,title:n}){const{t:r}=se("common"),[a,o]=u.useState(!1),{jobs:i,loading:l,loadFailed:c,now:d}=Y4(a,t,e),p=l?s.jsxs("div",{className:"flex items-center gap-2 rounded-[16px] bg-muted/45 px-3 py-3 text-[12.5px] text-muted-foreground",children:[s.jsx(p2,{className:"h-3.5 w-3.5 animate-spin"}),r("thread.sessionInfo.loading")]}):c?s.jsxs("div",{className:"flex items-center gap-2 rounded-[16px] bg-destructive/10 px-3 py-3 text-[12.5px] text-destructive",children:[s.jsx(ja,{className:"h-3.5 w-3.5"}),r("thread.sessionInfo.loadFailed")]}):i.length?s.jsx("div",{className:"space-y-1.5",children:i.map(m=>s.jsx(J4,{job:m,now:d},m.id))}):s.jsx("div",{className:"rounded-[16px] bg-muted/35 px-3 py-3 text-[12.5px] leading-relaxed text-muted-foreground",children:r("thread.sessionInfo.empty")});return s.jsxs(mn,{modal:!1,open:a,onOpenChange:o,children:[s.jsx(fn,{asChild:!0,children:s.jsx(fe,{variant
---
${r}`:r||n}function bF(e){return{name:e.name,display_name:e.display_name,category:e.category,entry_point:e.entry_point,logo_url:e.logo_url??null,brand_color:e.brand_color??null}}function wF(e){return{name:e.name,display_name:e.display_name,category:e.category,transport:e.transport,status:e.status,configured:e.configured,logo_url:e.logo_url??null,brand_color:e.brand_color??null}}function kF(){return s.jsxs("span",{className:"run-pulse-icon relative flex h-4 w-4 shrink-0 items-center justify-center","aria-hidden":!0,children:[s.jsx("span",{className:"run-pulse-icon__ring"}),s.jsx("span",{className:"run-pulse-icon__dot"})]})}function CF({startedAt:e,goalState:t}){var Q,re;const{t:n}=se(),[r,a]=u.useState(!1),o=e!=null,i=mF(t,n),l=!!(i!=null&&i.trim()),c=o||l,[d,p]=u.useState(c),[m,f]=u.useState(!1),[,h]=u.useState(0),y=u.useRef(null),x=u.useRef(null),b=u.useRef(null),v=u.useRef(null),[g,w]=u.useState(280);c&&(v.current={startedAt:e,goalState:t,stripLabel:i}),u.useEffect(()=>{if(c){p(!0),f(!1);return}if(a(!1),!d)return;f(!0);const ue=window.setTimeout(()=>{p(!1),f(!1)},180);return()=>window.clearTimeout(ue)},[c,d]),u.useEffect(()=>{if(e==null)return;const ue=window.setInterval(()=>h(pe=>pe+1),1e3);return()=>window.clearInterval(ue)},[e]);const k=c?{startedAt:e,goalState:t,stripLabel:i}:v.current,C=(k==null?void 0:k.startedAt)??null,j=k==null?void 0:k.goalState,N=(k==null?void 0:k.stripLabel)??null,P=C!=null,L=!!(N!=null&&N.trim()),_=((Q=j==null?void 0:j.objective)==null?void 0:Q.trim())??"",T=((re=j==null?void 0:j.ui_summary)==null?void 0:re.trim())??"",R=!!(c&&(j!=null&&j.active)&&(_||T)),D=_||T?yF(T,_):"";if(u.useLayoutEffect(()=>{if(!r)return;function ue(){const z=y.current;if(!z)return;const q=z.getBoundingClientRect().top;w(xF(q))}ue(),Ou();const pe=typeof ResizeObserver<"u"?new ResizeObserver(()=>ue()):null;y.current&&pe&&pe.observe(y.current);const ce=window.visualViewport;return ce==null||ce.addEventListener("resize",ue),ce==null||ce.addEventListener("scroll",ue),window.addEventListener("resize",ue),window.addEventListener("scroll",ue,!0),()=>{pe==null||pe.disconnect(),ce==null||ce.removeEventListener("resize",ue),ce==null||ce.removeEventListener("scroll",ue),window.removeEventListener("resize",ue),window.removeEventListener("scroll",ue,!0)}},[r]),u.useEffect(()=>{if(!r)return;function ue(ce){var q,O;const z=ce.target;z&&((q=x.current)!=null&&q.contains(z)||(O=b.current)!=null&&O.contains(z)||a(!1))}function pe(ce){ce.key==="Escape"&&a(!1)}return window.addEventListener("mousedown",ue),window.addEventListener("keydown",pe),()=>{window.removeEventListener("mousedown",ue),window.removeEventListener("keydown",pe)}},[r]),!d||!k)return null;const K=C!=null?Math.max(0,Math.floor(Date.now()/1e3-C)):0,G=Math.floor(K/60),W=K%60,H=G>0?`${G}:${W.toString().padStart(2,"0")}`:`${W}s`,E=P?n("thread.composer.runRuntimeTitle",{elapsed:H}):null,X=[E,L?N:null].filter(Boolean).join(" · ");return s.jsxs("div",{ref:y,className:"composer-status-strip relative z-30","data-state":m?"exit":"enter",children:[r&&R&&D?s.jsxs("div",{ref:x,id:"nanobot-goal-panel-root",role:"dialog","aria-modal":"false","aria-labelledby":"nanobot-goal-panel-title",tabIndex:-1,className:A("absolute bottom-[calc(100%+8px)] left-3 right-3 z-[50] flex max-w-none flex-col overflow-hidden","rounded-2xl border border-black/[0.08] bg-card shadow-[0_12px_40px_rgba(15,23,42,0.14)]","backdrop-blur-sm dark:border-white/[0.1] dark:shadow-[0_16px_48px_rgba(0,0,0,0.45)]"),style:{maxHeight:`${Math.round(g)}px`},children:[s.jsxs("div",{className:"flex shrink-0 items-center justify-between gap-2 border-b border-black/[0.06] px-3 py-2 dark:border-white/[0.08]",children:[s.jsx("h2",{id:"nanobot-goal-panel-title",className:"min-w-0 truncate text-[13px] font-semibold tracking-tight text-foreground",children:n("thread.composer.goalStateSheetTitle")}),s.jsx("button",{type:"button",className:A("inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-full","text-muted-foreground transition-colors hover:bg-muted/65 hover:text-foreground","focus-visible:outline-none focus-visible:
${tc(S.file.size)}`,children:[s.jsx(ri,{className:"h-4 w-4 shrink-0 text-sky-600 dark:text-sky-300"}),s.jsx("span",{className:"max-w-[16rem] truncate",children:S.file.name}),s.jsx(vr,{className:"h-3.5 w-3.5 shrink-0 text-muted-foreground"})]},S.id))}):null,s.jsx(CF,{startedAt:x,goalState:b}),s.jsxs("div",{className:"relative",children:[Nn?s.jsx(AF,{segments:gn,isHero:V,className:B}):null,s.jsx("textarea",{ref:ie,value:R,onChange:S=>{D(S.target.value),H(!1),Q(!1),ce(S.target.selectionStart??S.target.value.length)},onInput:jr,onKeyDown:io,onKeyUp:S=>ce(S.currentTarget.selectionStart??S.currentTarget.value.length),onSelect:S=>ce(S.currentTarget.selectionStart??S.currentTarget.value.length),onClick:S=>ce(S.currentTarget.selectionStart??S.currentTarget.value.length),onPaste:kr,rows:1,placeholder:Ve,disabled:t,"aria-label":T("thread.composer.inputAria"),className:A(B,"relative z-10 caret-foreground placeholder:text-muted-foreground/70","focus:outline-none focus-visible:outline-none","disabled:cursor-not-allowed",Nn&&"text-transparent selection:bg-primary/20")})]}),K?s.jsx("div",{role:"alert",className:A("mx-3 mb-1 rounded-md border border-destructive/40 bg-destructive/8 px-2.5 py-1","text-[11.5px] font-medium text-destructive"),children:K}):null,s.jsxs("div",{className:A("flex flex-wrap items-center justify-between gap-y-2",V?A("gap-x-1.5 px-3 sm:px-4",De?"pb-1.5":"pb-3.5"):"gap-x-2 px-2.5 pb-2 sm:px-3"),children:[s.jsxs("div",{className:A("flex min-w-0 flex-1 basis-[8rem] items-center",V?"gap-1.5":"gap-2"),children:[s.jsx("input",{ref:me,type:"file",accept:VO,multiple:!0,hidden:!0,onChange:Gr}),s.jsx(fe,{type:"button",size:"icon",variant:"ghost",disabled:sr,"aria-label":"Attach files",onClick:()=>{var S;return(S=me.current)==null?void 0:S.click()},className:A("rounded-full text-muted-foreground hover:text-foreground",V?"h-8 w-8 border border-border/55 bg-card shadow-[0_2px_8px_rgba(15,23,42,0.05)] hover:bg-card":"h-9 w-9 border border-border/55 bg-card shadow-[0_2px_8px_rgba(15,23,42,0.05)] hover:bg-card"),children:s.jsx(Ir,{className:A(V?"h-[18px] w-[18px]":"h-4 w-4")})}),Oe.isRecording?s.jsx(tF,{ariaLabel:Yr,className:"mx-1 flex-1",elapsedLabel:Oe.elapsedLabel,isHero:V,levels:Oe.levels}):v?s.jsxs(s.Fragment,{children:[s.jsx(fO,{scope:v,disabled:t||k,canUseFullAccess:(w==null?void 0:w.can_use_full_access)!==!1,isHero:V,onChange:j}),s.jsx(hO,{knowledgeBases:N,selectedKnowledgeBaseId:P,disabled:t,onChange:L})]}):null]}),s.jsxs("div",{className:A("ml-auto flex min-w-0 shrink-0 items-center",V?"gap-1.5":"gap-2"),children:[a&&!Oe.isRecording?s.jsx(jF,{label:a,provider:o,providerLabel:i,needsSetup:l,isHero:V,onClick:l?c:void 0}):null,Ue?s.jsx(Eu,{delayDuration:220,skipDelayDuration:80,children:s.jsxs(Li,{children:[s.jsx(Di,{asChild:!0,children:s.jsx(fe,{type:"button",size:"icon",variant:"ghost",disabled:Oe.buttonDisabled,"aria-label":js,"aria-keyshortcuts":KO,title:bt,onPointerDown:Oe.beginPress,onPointerUp:Oe.endPress,onPointerCancel:Oe.endPress,onClick:Oe.handleClick,className:A("rounded-full border border-transparent text-muted-foreground hover:bg-muted/65 hover:text-foreground",V?"h-8 w-8":"h-9 w-9",Oe.isRecording&&"bg-red-500 text-white shadow-[0_8px_20px_rgba(239,68,68,0.22)] hover:bg-red-500 hover:text-white"),children:Oe.state==="transcribing"?s.jsx(vt,{className:A("h-4 w-4","animate-spin")}):Oe.isRecording?s.jsx(Wp,{className:A("h-3.5 w-3.5"),fill:"currentColor"}):s.jsx(gf,{className:A("h-4 w-4")})})}),s.jsxs(is,{side:"top",align:"center",className:"flex items-center gap-2 rounded-full border border-border/70 bg-background px-3 py-1.5 text-[13px] font-medium text-foreground shadow-[0_8px_24px_rgba(15,23,42,0.13)] dark:border-white/10 dark:bg-neutral-900 dark:text-white",children:[s.jsx("span",{children:bt}),Oe.state==="idle"?s.jsx("kbd",{className:"rounded-full bg-muted px-2 py-0.5 font-sans text-[12px] font-semibold leading-none text-muted-foreground dark:bg-white/10 dark:text-white/80",children:xe}):null]})]})}):null,s.jsx(fe,{type:On||l?"button":"submit",size:"icon",disabled:On?t:!Vt&&!Je,"aria-label":On?T("thread.com
${t}`}function XF(e,t,n){if(t<=1)return n?34:Ud;const r=Math.log2(e+1)/Math.log2(t+1),a=Ud+(HF-Ud)*r;return Math.round(n?a+4:a)}function xm(e,t,n){return Math.max(t,Math.min(n,e))}function TC({attachment:e,className:t,inline:n=!1,variant:r="default"}){const{t:a}=se(),[o,i]=u.useState(!1),l=typeof e.url=="string"&&e.url.length>0,c=JF(e,a);if(e.kind==="image"&&l&&!o)return s.jsx(ax,{attachment:e,className:t,inline:n,variant:r,children:s.jsx("a",{href:e.url,target:"_blank",rel:"noreferrer noopener",className:"block bg-muted/20","aria-label":e.name?`Open ${e.name}`:a("lightbox.open",{defaultValue:"Open image"}),children:s.jsx("img",{src:e.url,alt:e.name??"",loading:"lazy",decoding:"async",draggable:!1,onError:()=>i(!0),className:A("block h-auto max-w-full bg-background object-contain",r==="compact"?"max-h-40":"max-h-[34rem]")})})});if(e.kind==="video"&&l)return s.jsx(ax,{attachment:e,className:t,inline:n,variant:r,children:s.jsx("video",{src:e.url,controls:!0,preload:"auto",className:A("block w-full bg-black",r==="compact"?"max-h-40":"max-h-[26rem]"),"aria-label":e.name?`${a("message.videoAttachment",{defaultValue:"Video attachment"})}: ${e.name}`:a("message.videoAttachment",{defaultValue:"Video attachment"})})});const d=e.kind==="video"?g2:e.kind==="image"?Vi:Xj,p=s.jsxs(s.Fragment,{children:[s.jsx(d,{className:"h-4 w-4 flex-none","aria-hidden":!0}),s.jsx("span",{className:"min-w-0 truncate",children:e.name??c})]});return l&&!o?s.jsx("a",{href:e.url,download:e.name??c,title:e.name??void 0,"aria-label":c,className:A("flex max-w-[18rem] items-center gap-2 rounded-[14px]","border border-border/60 bg-muted/40 px-3 py-2 text-xs text-muted-foreground","transition-colors hover:bg-muted/55 hover:text-foreground",r==="compact"&&"max-w-[14rem] rounded-xl px-2.5 py-1.5 text-[11.5px]",t),children:p}):s.jsxs("div",{className:A("flex max-w-[18rem] items-center gap-2 rounded-[14px]","border border-border/60 bg-muted/35 px-3 py-2 text-xs text-muted-foreground",r==="compact"&&"max-w-[14rem] rounded-xl px-2.5 py-1.5 text-[11.5px]",t),title:e.name??void 0,"aria-label":c,children:[p,s.jsx("span",{className:"sr-only",children:a("message.attachmentUnavailable",{defaultValue:"Attachment unavailable"})})]})}function ax({attachment:e,children:t,className:n,inline:r=!1,variant:a="default"}){const o=A("not-prose my-3 block w-fit max-w-full overflow-hidden rounded-[14px]","border border-border/60 bg-muted/40",e.kind==="image"&&"bg-background/85",e.kind==="video"?"w-[min(100%,32rem)]":"",a==="compact"&&"my-1 rounded-xl shadow-none",a==="compact"&&e.kind==="video"&&"w-[min(100%,20rem)]",n),i="block max-w-full",l=r?s.jsx("span",{className:i,children:t}):s.jsx("div",{className:i,children:t});return r?s.jsx("span",{className:o,children:l}):s.jsx("figure",{className:o,children:l})}function JF(e,t){return e.kind==="video"?t("message.videoAttachment",{defaultValue:"Video attachment"}):e.kind==="image"?t("message.imageAttachment",{defaultValue:"Image attachment"}):t("message.fileAttachment",{defaultValue:"File attachment"})}function ZF({images:e,index:t,onIndexChange:n,onOpenChange:r}){const{t:a}=se(),o=t!==null,i=e.length,l=t!==null?e[t]:null,c=u.useCallback(f=>{if(t===null||i<=1)return;const h=(t+f+i)%i;n(h)},[t,n,i]);u.useEffect(()=>{if(!o)return;const f=h=>{h.key==="ArrowLeft"?(h.preventDefault(),c(-1)):h.key==="ArrowRight"?(h.preventDefault(),c(1)):h.key==="Home"?(h.preventDefault(),n(0)):h.key==="End"&&(h.preventDefault(),n(i-1))};return window.addEventListener("keydown",f),()=>window.removeEventListener("keydown",f)},[c,n,o,i]);const d=u.useMemo(()=>{if(t===null||i<=1)return[];const f=e[(t-1+i)%i],h=e[(t+1)%i];return[f,h].filter(y=>y&&y.url)},[e,t,i]);if(!l||!l.url)return null;const p=i>1,m=p?`${t+1} / ${i}`:null;return s.jsx(vu,{open:o,onOpenChange:r,children:s.jsxs(xu,{children:[s.jsx(gs,{className:A("fixed inset-0 z-50 bg-black/80 backdrop-blur-sm","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","motion-reduce:data-[state=open]:animate-none motion-reduce:data-[state=closed]:
`)).split(`
`).map(o=>o.trim()).filter(Boolean),r=d$(n[0]||"command"),a=p$(r,92);return n.length<=1?a:`${a} · script, ${n.length} lines`}function u$(e){return e.replace(/\b((?:[A-Z0-9_]*)(?:API[_-]?KEY|TOKEN|SECRET|PASSWORD|PASS|AUTH)(?:[A-Z0-9_]*))=(?:"[^"]*"|'[^']*'|[^\s]+)/gi,"$1=••••").replace(/\b(Bearer)\s+[A-Za-z0-9._~+/=-]+/gi,"$1 ••••").replace(/(--(?:api-?key|token|secret|password)(?:=|\s+))(?:"[^"]*"|'[^']*'|[^\s]+)/gi,"$1••••").replace(/([?&](?:api_?key|token|secret|password)=)[^&\s]+/gi,"$1••••")}function d$(e){return e.replace(/\/Users\/[^/\s"']+/g,"~").replace(/\/private\/tmp\/[^\s"']+/g,"/tmp/…").replace(/\/var\/folders\/[^\s"']+/g,"/var/folders/…")}function p$(e,t){if(e.length<=t)return e;const n=Math.ceil((t-1)*.62),r=Math.floor((t-1)*.38);return`${e.slice(0,n)}${e.slice(-r)}`}function m$(e,t){var a;const n=[],r=e.trim();if(r)try{HC(JSON.parse(r),n)}catch{n.push(r.replace(/^["']|["']$/g,""))}n.push(t);for(const o of n){const i=hx(o);if(i)return i;const l=(a=o.match(/https?:\/\/[^\s"'<>),]+/i))==null?void 0:a[0];if(l){const c=hx(l);if(c)return c}}return null}function HC(e,t){if(typeof e=="string"){t.push(e);return}if(!e||typeof e!="object")return;if(Array.isArray(e)){for(const r of e.slice(0,6))HC(r,t);return}const n=e;for(const r of["url","uri","href","link"])typeof n[r]=="string"&&t.push(n[r])}function hx(e){try{const t=new URL(e);return t.protocol!=="http:"&&t.protocol!=="https:"||f$(t.hostname)?null:t}catch{return null}}function f$(e){const t=e.replace(/^\[|\]$/g,"").toLowerCase();if(!t||t==="localhost"||t.endsWith(".local")||!t.includes(".")&&!t.includes(":"))return!0;const n=/^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/.exec(t);if(n){const[,r,a]=n,o=Number(r),i=Number(a);return o===0||o===10||o===127||o===100&&i>=64&&i<=127||o===169&&i===254||o===172&&i>=16&&i<=31||o===192&&i===168}return t==="::1"||t.startsWith("fc")||t.startsWith("fd")||t.startsWith("fe80:")}function WC(e){return e.replace(/^www\./i,"").toLowerCase()}function h$(e){const t=WC(e.hostname),n=e.pathname&&e.pathname!=="/"?e.pathname:"";return`${t}${n}`}function gx(e,t){const n=e.trim();if(!n)return t;try{const r=JSON.parse(n),a=ZC(r);if(a)return a}catch{}return n.replace(/^["']|["']$/g,"")}const g$=new Set(["run_cli_app","cli_anything_run"]),vx={running:1,done:2,error:3},xx={running:1,done:2,error:3},Uu=/^mcp_([a-z0-9_-]+?)_(.+)$/i;function v$(e){return/^(run_cli_app|cli_anything_run)\(/.test(e.trim())}function x$(e){return Uu.test(e.trim().split("(",1)[0]??"")}function y$(e){return/^(write_file|edit_file|apply_patch)\(/.test(e.trim())}function qC(e,t="running"){const n=/^(run_cli_app|cli_anything_run)\((.*)\)$/.exec(e.trim());if(!n)return null;const r=n[2].trim();let a={};if(r)try{a=JSON.parse(r)}catch{return{key:e,name:"cli",args:[r],json:!1,status:t}}return QC(a,{key:e,status:t})}function VC(e){var r;const n=((r=e.function)==null?void 0:r.arguments)??e.arguments;if(typeof n!="string")return n??{};if(!n.trim())return{};try{return JSON.parse(n)}catch{return{args:[n]}}}function KC(e){return e==="error"?"error":e==="end"?"done":"running"}function GC(e){const t=e.error;if(typeof t=="string")return t;if(t&&typeof t=="object")return JSON.stringify(t)}function YC(e){var t,n;return typeof((t=e.function)==null?void 0:t.name)=="string"?String((n=e.function)==null?void 0:n.name):typeof e.name=="string"?e.name:""}function QC(e,t){if(!e||typeof e!="object"||Array.isArray(e))return{key:t.key,name:"cli",args:[],json:!1,status:t.status,error:t.error};const n=e,r=typeof n.name=="string"&&n.name.trim()?n.name.trim():"cli",o=(Array.isArray(n.args)?n.args:[]).filter(i=>typeof i=="string");return{key:t.key,name:r,args:o,json:n.json===!0||n.json==="true",workingDir:typeof n.working_dir=="string"?n.working_dir:void 0,status:t.status,error:t.error}}function XC(e){const t=YC(e);if(!g$.has(t))return null;const n=VC(e),r=e.call_id?`call:${e.call_id}`:`${t}:${JSON.stringify(n)}`;return QC(n,{key:r,status:KC(e.phase),error:GC(e)})}function b$(e){const t=new Map;for(const n of e.toolEvents??[]){const r=XC(n);if(!r)continue;const a=l
`).trim(),r=n.split(`
`);let a="";r.length>0&&r[0].startsWith("[Subagent")&&(a=r[0].trim());const o=n.toLowerCase();let i=`
result:
`,l=o.indexOf(i);if(l===-1&&(i=`
result:`,l=o.indexOf(i)),l===-1)return a||n;let c=n.slice(l+i.length).replace(/^\s+/,"");const p=c.toLowerCase().indexOf("summarize this naturally");p!==-1&&(c=c.slice(0,p).trimEnd());let m=c.trim();return t>0&&m.length>t&&(m=`${m.slice(0,t-1).trimEnd()}`),a&&m?`${a}
${m}`:a||m||n}function T8(e){return e.map(t=>{if(t.role!=="assistant"||typeof t.content!="string"||!t.content.includes("[Subagent"))return t;const n=P8(t.content);return n===t.content?t:{...t,content:n}})}function ea(e){return T8(A8(e))}function oS(e,t){return e.role===t.role&&(e.kind??"")===(t.kind??"")&&e.content===t.content}function Ex(e){var t;return e.kind==="trace"||e.role!=="user"&&e.role!=="assistant"||e.role==="assistant"&&!e.content.trim()&&!((t=e.media)!=null&&t.length)?null:{role:e.role,kind:e.kind,content:e.content}}function R8(e,t){const n=e.map(Ex).filter(o=>o!==null);if(n.length===0)return!0;const r=t.map(Ex).filter(o=>o!==null);let a=0;for(const o of n){let i=!1;for(;a<r.length;){const l=r[a];if(a+=1,oS(o,l)){i=!0;break}}if(!i)return!1}return!0}function zl(e,t){return e.length===0?!1:t.length===0||!R8(e,t)?!0:t.length>=e.length?!1:t.every((n,r)=>oS(e[r],n))}const Ix=544,sS=360,M8=860,E8=420,I8=320;function Lx(e,t){return Math.min(Math.max(e,sS),t)}function Dx(e){return Math.max(sS,Math.min(M8,e-E8))}function L8(e){if(!e)return null;const t=e.trim();return t?(t.split("/").pop()??t)||t:null}function D8(e){if(!e)return null;const t=e.agent.model_preset||"default";return e.model_presets.find(n=>n.name===t)??e.model_presets.find(n=>n.active)??null}function O8(e,t){const n=D8(e),r=(n==null?void 0:n.provider)||(e==null?void 0:e.agent.provider)||null;return r==="auto"?(e==null?void 0:e.agent.resolved_provider)||um(t)||null:r||um(t)}function F8(e,t){const n=e||(t==null?void 0:t.agent.model)||null,r=L8(n),a=O8(t,n),o=a?t==null?void 0:t.providers.find(l=>l.name===a):null,i=!!(t&&(!n||!a||!o||!o.configured));return{label:r,provider:a,providerLabel:a?Mo((t==null?void 0:t.providers)??[],a):null,needsSetup:i}}const Vd=["thread.empty.greetings.workOn","thread.empty.greetings.start","thread.empty.greetings.build","thread.empty.greetings.tackle"];function Ox(){const e=Math.floor(Math.random()*Vd.length);return Vd[e]??Vd[0]}function Fx({token:e,eventName:t,fetchPayload:n,isPayload:r,selectItems:a}){const[o,i]=u.useState([]),l=u.useCallback(async c=>{try{const d=await n(e);c!=null&&c()||i(a(d))}catch{c!=null&&c()||i([])}},[n,a,e]);return u.useEffect(()=>{let c=!1;l(()=>c);const d=()=>{document.visibilityState!=="hidden"&&l()},p=m=>{const f=m.detail;if(r(f)){i(a(f));return}l()};return window.addEventListener("focus",d),document.addEventListener("visibilitychange",d),window.addEventListener(t,p),()=>{c=!0,window.removeEventListener("focus",d),document.removeEventListener("visibilitychange",d),window.removeEventListener(t,p)}},[t,r,l,a]),o}function z8({session:e,title:t,onToggleSidebar:n,onCreateChat:r,onForkChat:a,onTurnEnd:o,theme:i="light",onToggleTheme:l=()=>{},hideSidebarToggleForHostChrome:c=!1,hostChromeTitleInset:d=!1,hideThemeButton:p=!1,hideHeader:m=!1,workspaceScope:f=null,workspaceDefaultScope:h=null,workspaceControls:y=null,workspaceScopeDisabled:x=!1,workspaceError:b=null,onWorkspaceScopeChange:v,knowledgeBases:g=[],selectedKnowledgeBaseId:w=null,onKnowledgeBaseChange:k,settingsSnapshot:C=null,onOpenModelSettings:j}){const{t:N}=se(),P=(e==null?void 0:e.chatId)??null,L=(e==null?void 0:e.key)??null,{messages:_,loading:T,loadingOlder:R,loadOlder:D,hasMoreBefore:K,userMessageOffset:G,hasPendingToolCalls:W,refresh:H,version:E,forkBoundaryMessageCount:F}=j8(L),{client:X,modelName:Q,token:re}=wr(),[ue,pe]=u.useState(!1),[ce,z]=u.useState([]),q=Fx({token:re,eventName:L1,fetchPayload:jL,isPayload:P3,selectItems:T3}),O=Fx({token:re,eventName:F1,fetchPayload:w1,isPayload:I3,selectItems:L3}),[te,ie]=u.useState(C),[ve,me]=u.useState(Ox),[Z,ke]=u.useState(0),[ye,be]=u.useState(0),[Ie,Pe]=u.useState(null),[Le,Te]=u.useState(!1),[J,ee]=u.useState(Ix),V=u.useRef(null),xe=u.useRef(Ix),Se=u.useRef(null),De=u.useRef(null),Ve=u.useRef(null),he=u.useRef(new Map),Xe=u.useRef(null),dt=u.useRef(!1),xt=u.useRef(new Map),Ot=u.useRef(new Set),qn=u.useRef(new Map),Ke=u.useRef(null),Ft=u.useMemo(()=>P?he.current.get(P)??_:_,[P,_]),He=u.useCallback(()=>{o==null||o()},[o]),{messages:Re,isStreaming:kr,runStartedAt:or,goalState:Qe,send:Ge,transc