opencami 1.2.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/dist/client/assets/_sessionKey-CaDTbjXx.js +97 -0
- package/dist/client/assets/{agents-BiadNAEz.js → agents-CGtqdyBi.js} +2 -2
- package/dist/client/assets/{agents-screen-C5TPJbry.js → agents-screen-DzIMcmHe.js} +1 -1
- package/dist/client/assets/button-BcnCTjUT.js +1 -0
- package/dist/client/assets/{connect-DlVsi-ya.js → connect-B8sfEQyb.js} +1 -1
- package/dist/client/assets/{file-explorer-screen-B0hwrjdF.js → file-explorer-screen-hjggspl-.js} +1 -1
- package/dist/client/assets/{files-dkr2U72N.js → files-BHXmS1J5.js} +2 -2
- package/dist/client/assets/{index-D1Et4XlM.js → index-BfhiL2JN.js} +1 -1
- package/dist/client/assets/{index-CwoJpeG1.js → index-CxJ4zG_W.js} +1 -1
- package/dist/client/assets/{keyboard-shortcuts-dialog-zdnAmDiH.js → keyboard-shortcuts-dialog-DEknElTu.js} +1 -1
- package/dist/client/assets/{main-DOBfHXDF.js → main-BlX7CS2-.js} +3 -3
- package/dist/client/assets/{opencami-logo-Bxp_4d3X.js → opencami-logo-5KynvViW.js} +1 -1
- package/dist/client/assets/{react-DD8SkMJn.js → react-ONC2UaeC.js} +1 -1
- package/dist/client/assets/{search-dialog-Ck1AQreu.js → search-dialog-40gW31ca.js} +1 -1
- package/dist/client/assets/{session-export-dialog-Bh3zH4nZ.js → session-export-dialog-DSRWU2YO.js} +1 -1
- package/dist/client/assets/settings-dialog-AsvYzSBc.js +1 -0
- package/dist/client/assets/styles-BGTCU8mq.css +1 -0
- package/dist/client/assets/{switch-BoGcWcnr.js → switch-dAvZcYA-.js} +1 -1
- package/dist/client/assets/{use-file-explorer-state-B5JLNsSa.js → use-file-explorer-state-C6lX-h0n.js} +1 -1
- package/dist/client/assets/{useButton-csSB2uQJ.js → useButton-DhneLsMA.js} +1 -1
- package/dist/server/assets/{_sessionKey-DQwkBUS7.js → _sessionKey-ZF1_Jqbt.js} +206 -29
- package/dist/server/assets/{_tanstack-start-manifest_v-cW8K1Mnv.js → _tanstack-start-manifest_v-C2FijMus.js} +1 -1
- package/dist/server/assets/{index-BwD7ufHE.js → index-CTTNe_Sf.js} +1 -1
- package/dist/server/assets/{router-5qObg5aX.js → router-D5D0udHV.js} +33 -25
- package/dist/server/assets/{search-dialog-BE2ZBkj0.js → search-dialog-C8Oy-FBs.js} +2 -2
- package/dist/server/assets/settings-dialog-CQFuAt9B.js +820 -0
- package/dist/server/server.js +2 -2
- package/package.json +1 -1
- package/dist/client/assets/_sessionKey-xUqdePGW.js +0 -97
- package/dist/client/assets/button-seqh98ae.js +0 -1
- package/dist/client/assets/settings-dialog-CvUsgnnZ.js +0 -1
- package/dist/client/assets/styles-DogPvrGY.css +0 -1
- package/dist/server/assets/settings-dialog-BBQcU55J.js +0 -731
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/connect-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/connect-B8sfEQyb.js","assets/index-CxJ4zG_W.js","assets/button-BcnCTjUT.js","assets/react-ONC2UaeC.js","assets/_sessionKey-CaDTbjXx.js","assets/useButton-DhneLsMA.js","assets/use-file-explorer-state-C6lX-h0n.js","assets/opencami-logo-5KynvViW.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
function x0(a,i){for(var s=0;s<i.length;s++){const r=i[s];if(typeof r!="string"&&!Array.isArray(r)){for(const c in r)if(c!=="default"&&!(c in a)){const f=Object.getOwnPropertyDescriptor(r,c);f&&Object.defineProperty(a,c,f.get?f:{enumerable:!0,get:()=>r[c]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}function z0(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var sc={exports:{}},Li={};var Im;function D0(){if(Im)return Li;Im=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function s(r,c,f){var m=null;if(f!==void 0&&(m=""+f),c.key!==void 0&&(m=""+c.key),"key"in c){f={};for(var d in c)d!=="key"&&(f[d]=c[d])}else f=c;return c=f.ref,{$$typeof:a,type:r,key:m,ref:c!==void 0?c:null,props:f}}return Li.Fragment=i,Li.jsx=s,Li.jsxs=s,Li}var ty;function U0(){return ty||(ty=1,sc.exports=D0()),sc.exports}var F=U0(),uc={exports:{}},ot={};var ey;function L0(){if(ey)return ot;ey=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),m=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),_=Symbol.iterator;function O(A){return A===null||typeof A!="object"?null:(A=_&&A[_]||A["@@iterator"],typeof A=="function"?A:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},R=Object.assign,C={};function B(A,Y,P){this.props=A,this.context=Y,this.refs=C,this.updater=P||x}B.prototype.isReactComponent={},B.prototype.setState=function(A,Y){if(typeof A!="object"&&typeof A!="function"&&A!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,A,Y,"setState")},B.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function K(){}K.prototype=B.prototype;function Q(A,Y,P){this.props=A,this.context=Y,this.refs=C,this.updater=P||x}var G=Q.prototype=new K;G.constructor=Q,R(G,B.prototype),G.isPureReactComponent=!0;var $=Array.isArray;function W(){}var X={H:null,A:null,T:null,S:null},V=Object.prototype.hasOwnProperty;function k(A,Y,P){var J=P.ref;return{$$typeof:a,type:A,key:Y,ref:J!==void 0?J:null,props:P}}function ct(A,Y){return k(A.type,Y,A.props)}function st(A){return typeof A=="object"&&A!==null&&A.$$typeof===a}function it(A){var Y={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(P){return Y[P]})}var St=/\/+/g;function rt(A,Y){return typeof A=="object"&&A!==null&&A.key!=null?it(""+A.key):Y.toString(36)}function Vt(A){switch(A.status){case"fulfilled":return A.value;case"rejected":throw A.reason;default:switch(typeof A.status=="string"?A.then(W,W):(A.status="pending",A.then(function(Y){A.status==="pending"&&(A.status="fulfilled",A.value=Y)},function(Y){A.status==="pending"&&(A.status="rejected",A.reason=Y)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function N(A,Y,P,J,ut){var dt=typeof A;(dt==="undefined"||dt==="boolean")&&(A=null);var pt=!1;if(A===null)pt=!0;else switch(dt){case"bigint":case"string":case"number":pt=!0;break;case"object":switch(A.$$typeof){case a:case i:pt=!0;break;case S:return pt=A._init,N(pt(A._payload),Y,P,J,ut)}}if(pt)return ut=ut(A),pt=J===""?"."+rt(A,0):J,$(ut)?(P="",pt!=null&&(P=pt.replace(St,"$&/")+"/"),N(ut,Y,P,"",function(ke){return ke})):ut!=null&&(st(ut)&&(ut=ct(ut,P+(ut.key==null||A&&A.key===ut.key?"":(""+ut.key).replace(St,"$&/")+"/")+pt)),Y.push(ut)),1;pt=0;var Xt=J===""?".":J+":";if($(A))for(var Lt=0;Lt<A.length;Lt++)J=A[Lt],dt=Xt+rt(J,Lt),pt+=N(J,Y,P,dt,ut);else if(Lt=O(A),typeof Lt=="function")for(A=Lt.call(A),Lt=0;!(J=A.next()).done;)J=J.value,dt=Xt+rt(J,Lt++),pt+=N(J,Y,P,dt,ut);else if(dt==="object"){if(typeof A.then=="function")return N(Vt(A),Y,P,J,ut);throw Y=String(A),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.")}return pt}function Z(A,Y,P){if(A==null)return A;var J=[],ut=0;return N(A,J,"","",function(dt){return Y.call(P,dt,ut++)}),J}function lt(A){if(A._status===-1){var Y=A._result;Y=Y(),Y.then(function(P){(A._status===0||A._status===-1)&&(A._status=1,A._result=P)},function(P){(A._status===0||A._status===-1)&&(A._status=2,A._result=P)}),A._status===-1&&(A._status=0,A._result=Y)}if(A._status===1)return A._result.default;throw A._result}var Tt=typeof reportError=="function"?reportError:function(A){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof A=="object"&&A!==null&&typeof A.message=="string"?String(A.message):String(A),error:A});if(!window.dispatchEvent(Y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",A);return}console.error(A)},At={map:Z,forEach:function(A,Y,P){Z(A,function(){Y.apply(this,arguments)},P)},count:function(A){var Y=0;return Z(A,function(){Y++}),Y},toArray:function(A){return Z(A,function(Y){return Y})||[]},only:function(A){if(!st(A))throw Error("React.Children.only expected to receive a single React element child.");return A}};return ot.Activity=g,ot.Children=At,ot.Component=B,ot.Fragment=s,ot.Profiler=c,ot.PureComponent=Q,ot.StrictMode=r,ot.Suspense=y,ot.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=X,ot.__COMPILER_RUNTIME={__proto__:null,c:function(A){return X.H.useMemoCache(A)}},ot.cache=function(A){return function(){return A.apply(null,arguments)}},ot.cacheSignal=function(){return null},ot.cloneElement=function(A,Y,P){if(A==null)throw Error("The argument must be a React element, but you passed "+A+".");var J=R({},A.props),ut=A.key;if(Y!=null)for(dt in Y.key!==void 0&&(ut=""+Y.key),Y)!V.call(Y,dt)||dt==="key"||dt==="__self"||dt==="__source"||dt==="ref"&&Y.ref===void 0||(J[dt]=Y[dt]);var dt=arguments.length-2;if(dt===1)J.children=P;else if(1<dt){for(var pt=Array(dt),Xt=0;Xt<dt;Xt++)pt[Xt]=arguments[Xt+2];J.children=pt}return k(A.type,ut,J)},ot.createContext=function(A){return A={$$typeof:m,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null},A.Provider=A,A.Consumer={$$typeof:f,_context:A},A},ot.createElement=function(A,Y,P){var J,ut={},dt=null;if(Y!=null)for(J in Y.key!==void 0&&(dt=""+Y.key),Y)V.call(Y,J)&&J!=="key"&&J!=="__self"&&J!=="__source"&&(ut[J]=Y[J]);var pt=arguments.length-2;if(pt===1)ut.children=P;else if(1<pt){for(var Xt=Array(pt),Lt=0;Lt<pt;Lt++)Xt[Lt]=arguments[Lt+2];ut.children=Xt}if(A&&A.defaultProps)for(J in pt=A.defaultProps,pt)ut[J]===void 0&&(ut[J]=pt[J]);return k(A,dt,ut)},ot.createRef=function(){return{current:null}},ot.forwardRef=function(A){return{$$typeof:d,render:A}},ot.isValidElement=st,ot.lazy=function(A){return{$$typeof:S,_payload:{_status:-1,_result:A},_init:lt}},ot.memo=function(A,Y){return{$$typeof:p,type:A,compare:Y===void 0?null:Y}},ot.startTransition=function(A){var Y=X.T,P={};X.T=P;try{var J=A(),ut=X.S;ut!==null&&ut(P,J),typeof J=="object"&&J!==null&&typeof J.then=="function"&&J.then(W,Tt)}catch(dt){Tt(dt)}finally{Y!==null&&P.types!==null&&(Y.types=P.types),X.T=Y}},ot.unstable_useCacheRefresh=function(){return X.H.useCacheRefresh()},ot.use=function(A){return X.H.use(A)},ot.useActionState=function(A,Y,P){return X.H.useActionState(A,Y,P)},ot.useCallback=function(A,Y){return X.H.useCallback(A,Y)},ot.useContext=function(A){return X.H.useContext(A)},ot.useDebugValue=function(){},ot.useDeferredValue=function(A,Y){return X.H.useDeferredValue(A,Y)},ot.useEffect=function(A,Y){return X.H.useEffect(A,Y)},ot.useEffectEvent=function(A){return X.H.useEffectEvent(A)},ot.useId=function(){return X.H.useId()},ot.useImperativeHandle=function(A,Y,P){return X.H.useImperativeHandle(A,Y,P)},ot.useInsertionEffect=function(A,Y){return X.H.useInsertionEffect(A,Y)},ot.useLayoutEffect=function(A,Y){return X.H.useLayoutEffect(A,Y)},ot.useMemo=function(A,Y){return X.H.useMemo(A,Y)},ot.useOptimistic=function(A,Y){return X.H.useOptimistic(A,Y)},ot.useReducer=function(A,Y,P){return X.H.useReducer(A,Y,P)},ot.useRef=function(A){return X.H.useRef(A)},ot.useState=function(A){return X.H.useState(A)},ot.useSyncExternalStore=function(A,Y,P){return X.H.useSyncExternalStore(A,Y,P)},ot.useTransition=function(){return X.H.useTransition()},ot.version="19.2.4",ot}var ny;function ki(){return ny||(ny=1,uc.exports=L0()),uc.exports}var nt=ki();const Nl=z0(nt),N0=x0({__proto__:null,default:Nl},[nt]);var rc={exports:{}},Ni={},oc={exports:{}},cc={};var ay;function j0(){return ay||(ay=1,(function(a){function i(N,Z){var lt=N.length;N.push(Z);t:for(;0<lt;){var Tt=lt-1>>>1,At=N[Tt];if(0<c(At,Z))N[Tt]=Z,N[lt]=At,lt=Tt;else break t}}function s(N){return N.length===0?null:N[0]}function r(N){if(N.length===0)return null;var Z=N[0],lt=N.pop();if(lt!==Z){N[0]=lt;t:for(var Tt=0,At=N.length,A=At>>>1;Tt<A;){var Y=2*(Tt+1)-1,P=N[Y],J=Y+1,ut=N[J];if(0>c(P,lt))J<At&&0>c(ut,P)?(N[Tt]=ut,N[J]=lt,Tt=J):(N[Tt]=P,N[Y]=lt,Tt=Y);else if(J<At&&0>c(ut,lt))N[Tt]=ut,N[J]=lt,Tt=J;else break t}}return Z}function c(N,Z){var lt=N.sortIndex-Z.sortIndex;return lt!==0?lt:N.id-Z.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;a.unstable_now=function(){return f.now()}}else{var m=Date,d=m.now();a.unstable_now=function(){return m.now()-d}}var y=[],p=[],S=1,g=null,_=3,O=!1,x=!1,R=!1,C=!1,B=typeof setTimeout=="function"?setTimeout:null,K=typeof clearTimeout=="function"?clearTimeout:null,Q=typeof setImmediate<"u"?setImmediate:null;function G(N){for(var Z=s(p);Z!==null;){if(Z.callback===null)r(p);else if(Z.startTime<=N)r(p),Z.sortIndex=Z.expirationTime,i(y,Z);else break;Z=s(p)}}function $(N){if(R=!1,G(N),!x)if(s(y)!==null)x=!0,W||(W=!0,it());else{var Z=s(p);Z!==null&&Vt($,Z.startTime-N)}}var W=!1,X=-1,V=5,k=-1;function ct(){return C?!0:!(a.unstable_now()-k<V)}function st(){if(C=!1,W){var N=a.unstable_now();k=N;var Z=!0;try{t:{x=!1,R&&(R=!1,K(X),X=-1),O=!0;var lt=_;try{e:{for(G(N),g=s(y);g!==null&&!(g.expirationTime>N&&ct());){var Tt=g.callback;if(typeof Tt=="function"){g.callback=null,_=g.priorityLevel;var At=Tt(g.expirationTime<=N);if(N=a.unstable_now(),typeof At=="function"){g.callback=At,G(N),Z=!0;break e}g===s(y)&&r(y),G(N)}else r(y);g=s(y)}if(g!==null)Z=!0;else{var A=s(p);A!==null&&Vt($,A.startTime-N),Z=!1}}break t}finally{g=null,_=lt,O=!1}Z=void 0}}finally{Z?it():W=!1}}}var it;if(typeof Q=="function")it=function(){Q(st)};else if(typeof MessageChannel<"u"){var St=new MessageChannel,rt=St.port2;St.port1.onmessage=st,it=function(){rt.postMessage(null)}}else it=function(){B(st,0)};function Vt(N,Z){X=B(function(){N(a.unstable_now())},Z)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(N){N.callback=null},a.unstable_forceFrameRate=function(N){0>N||125<N?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):V=0<N?Math.floor(1e3/N):5},a.unstable_getCurrentPriorityLevel=function(){return _},a.unstable_next=function(N){switch(_){case 1:case 2:case 3:var Z=3;break;default:Z=_}var lt=_;_=Z;try{return N()}finally{_=lt}},a.unstable_requestPaint=function(){C=!0},a.unstable_runWithPriority=function(N,Z){switch(N){case 1:case 2:case 3:case 4:case 5:break;default:N=3}var lt=_;_=N;try{return Z()}finally{_=lt}},a.unstable_scheduleCallback=function(N,Z,lt){var Tt=a.unstable_now();switch(typeof lt=="object"&<!==null?(lt=lt.delay,lt=typeof lt=="number"&&0<lt?Tt+lt:Tt):lt=Tt,N){case 1:var At=-1;break;case 2:At=250;break;case 5:At=1073741823;break;case 4:At=1e4;break;default:At=5e3}return At=lt+At,N={id:S++,callback:Z,priorityLevel:N,startTime:lt,expirationTime:At,sortIndex:-1},lt>Tt?(N.sortIndex=lt,i(p,N),s(y)===null&&N===s(p)&&(R?(K(X),X=-1):R=!0,Vt($,lt-Tt))):(N.sortIndex=At,i(y,N),x||O||(x=!0,W||(W=!0,it()))),N},a.unstable_shouldYield=ct,a.unstable_wrapCallback=function(N){var Z=_;return function(){var lt=_;_=Z;try{return N.apply(this,arguments)}finally{_=lt}}}})(cc)),cc}var ly;function B0(){return ly||(ly=1,oc.exports=j0()),oc.exports}var fc={exports:{}},re={};var iy;function H0(){if(iy)return re;iy=1;var a=ki();function i(y){var p="https://react.dev/errors/"+y;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var S=2;S<arguments.length;S++)p+="&args[]="+encodeURIComponent(arguments[S])}return"Minified React error #"+y+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var r={d:{f:s,r:function(){throw Error(i(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},c=Symbol.for("react.portal");function f(y,p,S){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:g==null?null:""+g,children:y,containerInfo:p,implementation:S}}var m=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(y,p){if(y==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return re.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,re.createPortal=function(y,p){var S=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(i(299));return f(y,p,null,S)},re.flushSync=function(y){var p=m.T,S=r.p;try{if(m.T=null,r.p=2,y)return y()}finally{m.T=p,r.p=S,r.d.f()}},re.preconnect=function(y,p){typeof y=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,r.d.C(y,p))},re.prefetchDNS=function(y){typeof y=="string"&&r.d.D(y)},re.preinit=function(y,p){if(typeof y=="string"&&p&&typeof p.as=="string"){var S=p.as,g=d(S,p.crossOrigin),_=typeof p.integrity=="string"?p.integrity:void 0,O=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;S==="style"?r.d.S(y,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:g,integrity:_,fetchPriority:O}):S==="script"&&r.d.X(y,{crossOrigin:g,integrity:_,fetchPriority:O,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},re.preinitModule=function(y,p){if(typeof y=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var S=d(p.as,p.crossOrigin);r.d.M(y,{crossOrigin:S,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&r.d.M(y)},re.preload=function(y,p){if(typeof y=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var S=p.as,g=d(S,p.crossOrigin);r.d.L(y,S,{crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},re.preloadModule=function(y,p){if(typeof y=="string")if(p){var S=d(p.as,p.crossOrigin);r.d.m(y,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:S,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else r.d.m(y)},re.requestFormReset=function(y){r.d.r(y)},re.unstable_batchedUpdates=function(y,p){return y(p)},re.useFormState=function(y,p,S){return m.H.useFormState(y,p,S)},re.useFormStatus=function(){return m.H.useHostTransitionStatus()},re.version="19.2.4",re}var sy;function $y(){if(sy)return fc.exports;sy=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),fc.exports=H0(),fc.exports}var uy;function q0(){if(uy)return Ni;uy=1;var a=B0(),i=ki(),s=$y();function r(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function f(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(n=e.return),t=e.return;while(t)}return e.tag===3?n:null}function m(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function d(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function y(t){if(f(t)!==t)throw Error(r(188))}function p(t){var e=t.alternate;if(!e){if(e=f(t),e===null)throw Error(r(188));return e!==t?null:t}for(var n=t,l=e;;){var u=n.return;if(u===null)break;var o=u.alternate;if(o===null){if(l=u.return,l!==null){n=l;continue}break}if(u.child===o.child){for(o=u.child;o;){if(o===n)return y(u),t;if(o===l)return y(u),e;o=o.sibling}throw Error(r(188))}if(n.return!==l.return)n=u,l=o;else{for(var h=!1,v=u.child;v;){if(v===n){h=!0,n=u,l=o;break}if(v===l){h=!0,l=u,n=o;break}v=v.sibling}if(!h){for(v=o.child;v;){if(v===n){h=!0,n=o,l=u;break}if(v===l){h=!0,l=o,n=u;break}v=v.sibling}if(!h)throw Error(r(189))}}if(n.alternate!==l)throw Error(r(190))}if(n.tag!==3)throw Error(r(188));return n.stateNode.current===n?t:e}function S(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=S(t),e!==null)return e;t=t.sibling}return null}var g=Object.assign,_=Symbol.for("react.element"),O=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),R=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),B=Symbol.for("react.profiler"),K=Symbol.for("react.consumer"),Q=Symbol.for("react.context"),G=Symbol.for("react.forward_ref"),$=Symbol.for("react.suspense"),W=Symbol.for("react.suspense_list"),X=Symbol.for("react.memo"),V=Symbol.for("react.lazy"),k=Symbol.for("react.activity"),ct=Symbol.for("react.memo_cache_sentinel"),st=Symbol.iterator;function it(t){return t===null||typeof t!="object"?null:(t=st&&t[st]||t["@@iterator"],typeof t=="function"?t:null)}var St=Symbol.for("react.client.reference");function rt(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===St?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case R:return"Fragment";case B:return"Profiler";case C:return"StrictMode";case $:return"Suspense";case W:return"SuspenseList";case k:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case x:return"Portal";case Q:return t.displayName||"Context";case K:return(t._context.displayName||"Context")+".Consumer";case G:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case X:return e=t.displayName||null,e!==null?e:rt(t.type)||"Memo";case V:e=t._payload,t=t._init;try{return rt(t(e))}catch{}}return null}var Vt=Array.isArray,N=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,lt={pending:!1,data:null,method:null,action:null},Tt=[],At=-1;function A(t){return{current:t}}function Y(t){0>At||(t.current=Tt[At],Tt[At]=null,At--)}function P(t,e){At++,Tt[At]=t.current,t.current=e}var J=A(null),ut=A(null),dt=A(null),pt=A(null);function Xt(t,e){switch(P(dt,e),P(ut,t),P(J,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?Em(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=Em(e),t=Rm(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}Y(J),P(J,t)}function Lt(){Y(J),Y(ut),Y(dt)}function ke(t){t.memoizedState!==null&&P(pt,t);var e=J.current,n=Rm(e,t.type);e!==n&&(P(ut,t),P(J,n))}function nn(t){ut.current===t&&(Y(J),Y(ut)),pt.current===t&&(Y(pt),xi._currentValue=lt)}var Ha,ql;function an(t){if(Ha===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);Ha=e&&e[1]||"",ql=-1<n.stack.indexOf(`
|
|
3
3
|
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
4
4
|
`+Ha+t+ql}var qa=!1;function Ya(t,e){if(!t||qa)return"";qa=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(e){var q=function(){throw Error()};if(Object.defineProperty(q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(q,[])}catch(L){var U=L}Reflect.construct(t,[],q)}else{try{q.call()}catch(L){U=L}t.call(q.prototype)}}else{try{throw Error()}catch(L){U=L}(q=t())&&typeof q.catch=="function"&&q.catch(function(){})}}catch(L){if(L&&U&&typeof L.stack=="string")return[L.stack,U.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=l.DetermineComponentFrameRoot(),h=o[0],v=o[1];if(h&&v){var E=h.split(`
|
|
@@ -15,7 +15,7 @@ Error generating stack: `+l.message+`
|
|
|
15
15
|
`)}else{const p=c.indexOf(`
|
|
16
16
|
`);if(p>=0){const S=c.slice(0,p).trim();c=c.slice(p+1),S.length>0&&(m=JSON.parse(S),f=!0)}}}return(async()=>{try{for(;;){const{value:d,done:y}=await r.read();d&&(c+=d);const p=c.lastIndexOf(`
|
|
17
17
|
`);if(p>=0){const S=c.slice(0,p);c=c.slice(p+1);const g=S.split(`
|
|
18
|
-
`).filter(Boolean);for(const _ of g)try{i(JSON.parse(_))}catch(O){s?.(`Invalid JSON line: ${_}`,O)}}if(y)break}}catch(d){s?.("Stream processing error:",d)}})(),i(m)}async function JE({jsonStream:a,onMessage:i,onError:s}){const r=a.getReader(),{value:c,done:f}=await r.read();if(f||!c)throw new Error("Stream ended before first object");const m=JSON.parse(c);return(async()=>{try{for(;;){const{value:d,done:y}=await r.read();if(y)break;if(d)try{i(JSON.parse(d))}catch(p){s?.(`Invalid JSON: ${d}`,p)}}}catch(d){s?.("Stream processing error:",d)}})(),i(m)}function $E(a){const i="/_serverFn/"+a;return Object.assign((...c)=>{const f=ev()?.serverFns?.fetch;return ZE(i,c,f??fetch)},{url:i,serverFnMeta:{id:a},[Uc]:!0})}const WE={key:"$TSS/serverfn",test:a=>typeof a!="function"||!(Uc in a)?!1:!!a[Uc],toSerializable:({serverFnMeta:a})=>({functionId:a.id}),fromSerializable:({functionId:a})=>$E(a)};var Vu=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(a){return this.listeners.add(a),this.onSubscribe(),()=>{this.listeners.delete(a),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},IE={setTimeout:(a,i)=>setTimeout(a,i),clearTimeout:a=>clearTimeout(a),setInterval:(a,i)=>setInterval(a,i),clearInterval:a=>clearInterval(a)},tR=class{#t=IE;#n=!1;setTimeoutProvider(a){this.#t=a}setTimeout(a,i){return this.#t.setTimeout(a,i)}clearTimeout(a){this.#t.clearTimeout(a)}setInterval(a,i){return this.#t.setInterval(a,i)}clearInterval(a){this.#t.clearInterval(a)}},Lc=new tR;function eR(a){setTimeout(a,0)}var Xu=typeof window>"u"||"Deno"in globalThis;function Fe(){}function nR(a,i){return typeof a=="function"?a(i):a}function aR(a){return typeof a=="number"&&a>=0&&a!==1/0}function lR(a,i){return Math.max(a+(i||0)-Date.now(),0)}function Nc(a,i){return typeof a=="function"?a(i):a}function iR(a,i){return typeof a=="function"?a(i):a}function Gy(a,i){const{type:s="all",exact:r,fetchStatus:c,predicate:f,queryKey:m,stale:d}=a;if(m){if(r){if(i.queryHash!==Ic(m,i.options))return!1}else if(!Fi(i.queryKey,m))return!1}if(s!=="all"){const y=i.isActive();if(s==="active"&&!y||s==="inactive"&&y)return!1}return!(typeof d=="boolean"&&i.isStale()!==d||c&&c!==i.state.fetchStatus||f&&!f(i))}function Vy(a,i){const{exact:s,status:r,predicate:c,mutationKey:f}=a;if(f){if(!i.options.mutationKey)return!1;if(s){if(Pi(i.options.mutationKey)!==Pi(f))return!1}else if(!Fi(i.options.mutationKey,f))return!1}return!(r&&i.state.status!==r||c&&!c(i))}function Ic(a,i){return(i?.queryKeyHashFn||Pi)(a)}function Pi(a){return JSON.stringify(a,(i,s)=>jc(s)?Object.keys(s).sort().reduce((r,c)=>(r[c]=s[c],r),{}):s)}function Fi(a,i){return a===i?!0:typeof a!=typeof i?!1:a&&i&&typeof a=="object"&&typeof i=="object"?Object.keys(i).every(s=>Fi(a[s],i[s])):!1}var sR=Object.prototype.hasOwnProperty;function iv(a,i,s=0){if(a===i)return a;if(s>500)return i;const r=Xy(a)&&Xy(i);if(!r&&!(jc(a)&&jc(i)))return i;const f=(r?a:Object.keys(a)).length,m=r?i:Object.keys(i),d=m.length,y=r?new Array(d):{};let p=0;for(let S=0;S<d;S++){const g=r?S:m[S],_=a[g],O=i[g];if(_===O){y[g]=_,(r?S<f:sR.call(a,g))&&p++;continue}if(_===null||O===null||typeof _!="object"||typeof O!="object"){y[g]=O;continue}const x=iv(_,O,s+1);y[g]=x,x===_&&p++}return f===d&&p===f?a:y}function f2(a,i){if(!i||Object.keys(a).length!==Object.keys(i).length)return!1;for(const s in a)if(a[s]!==i[s])return!1;return!0}function Xy(a){return Array.isArray(a)&&a.length===Object.keys(a).length}function jc(a){if(!Ky(a))return!1;const i=a.constructor;if(i===void 0)return!0;const s=i.prototype;return!(!Ky(s)||!s.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(a)!==Object.prototype)}function Ky(a){return Object.prototype.toString.call(a)==="[object Object]"}function uR(a){return new Promise(i=>{Lc.setTimeout(i,a)})}function rR(a,i,s){return typeof s.structuralSharing=="function"?s.structuralSharing(a,i):s.structuralSharing!==!1?iv(a,i):i}function oR(a,i,s=0){const r=[...a,i];return s&&r.length>s?r.slice(1):r}function cR(a,i,s=0){const r=[i,...a];return s&&r.length>s?r.slice(0,-1):r}var tf=Symbol();function sv(a,i){return!a.queryFn&&i?.initialPromise?()=>i.initialPromise:!a.queryFn||a.queryFn===tf?()=>Promise.reject(new Error(`Missing queryFn: '${a.queryHash}'`)):a.queryFn}function h2(a,i){return typeof a=="function"?a(...i):!!a}function fR(a,i,s){let r=!1,c;return Object.defineProperty(a,"signal",{enumerable:!0,get:()=>(c??=i(),r||(r=!0,c.aborted?s():c.addEventListener("abort",s,{once:!0})),c)}),a}var hR=class extends Vu{#t;#n;#e;constructor(){super(),this.#e=a=>{if(!Xu&&window.addEventListener){const i=()=>a();return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}}}onSubscribe(){this.#n||this.setEventListener(this.#e)}onUnsubscribe(){this.hasListeners()||(this.#n?.(),this.#n=void 0)}setEventListener(a){this.#e=a,this.#n?.(),this.#n=a(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()})}setFocused(a){this.#t!==a&&(this.#t=a,this.onFocus())}onFocus(){const a=this.isFocused();this.listeners.forEach(i=>{i(a)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},uv=new hR;function dR(){let a,i;const s=new Promise((c,f)=>{a=c,i=f});s.status="pending",s.catch(()=>{});function r(c){Object.assign(s,c),delete s.resolve,delete s.reject}return s.resolve=c=>{r({status:"fulfilled",value:c}),a(c)},s.reject=c=>{r({status:"rejected",reason:c}),i(c)},s}var mR=eR;function yR(){let a=[],i=0,s=d=>{d()},r=d=>{d()},c=mR;const f=d=>{i?a.push(d):c(()=>{s(d)})},m=()=>{const d=a;a=[],d.length&&c(()=>{r(()=>{d.forEach(y=>{s(y)})})})};return{batch:d=>{let y;i++;try{y=d()}finally{i--,i||m()}return y},batchCalls:d=>(...y)=>{f(()=>{d(...y)})},schedule:f,setNotifyFunction:d=>{s=d},setBatchNotifyFunction:d=>{r=d},setScheduler:d=>{c=d}}}var he=yR(),pR=class extends Vu{#t=!0;#n;#e;constructor(){super(),this.#e=a=>{if(!Xu&&window.addEventListener){const i=()=>a(!0),s=()=>a(!1);return window.addEventListener("online",i,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",s)}}}}onSubscribe(){this.#n||this.setEventListener(this.#e)}onUnsubscribe(){this.hasListeners()||(this.#n?.(),this.#n=void 0)}setEventListener(a){this.#e=a,this.#n?.(),this.#n=a(this.setOnline.bind(this))}setOnline(a){this.#t!==a&&(this.#t=a,this.listeners.forEach(s=>{s(a)}))}isOnline(){return this.#t}},Lu=new pR;function vR(a){return Math.min(1e3*2**a,3e4)}function rv(a){return(a??"online")==="online"?Lu.isOnline():!0}var Bc=class extends Error{constructor(a){super("CancelledError"),this.revert=a?.revert,this.silent=a?.silent}};function ov(a){let i=!1,s=0,r;const c=dR(),f=()=>c.status!=="pending",m=R=>{if(!f()){const C=new Bc(R);_(C),a.onCancel?.(C)}},d=()=>{i=!0},y=()=>{i=!1},p=()=>uv.isFocused()&&(a.networkMode==="always"||Lu.isOnline())&&a.canRun(),S=()=>rv(a.networkMode)&&a.canRun(),g=R=>{f()||(r?.(),c.resolve(R))},_=R=>{f()||(r?.(),c.reject(R))},O=()=>new Promise(R=>{r=C=>{(f()||p())&&R(C)},a.onPause?.()}).then(()=>{r=void 0,f()||a.onContinue?.()}),x=()=>{if(f())return;let R;const C=s===0?a.initialPromise:void 0;try{R=C??a.fn()}catch(B){R=Promise.reject(B)}Promise.resolve(R).then(g).catch(B=>{if(f())return;const K=a.retry??(Xu?0:3),Q=a.retryDelay??vR,G=typeof Q=="function"?Q(s,B):Q,$=K===!0||typeof K=="number"&&s<K||typeof K=="function"&&K(s,B);if(i||!$){_(B);return}s++,a.onFail?.(s,B),uR(G).then(()=>p()?void 0:O()).then(()=>{i?_(B):x()})})};return{promise:c,status:()=>c.status,cancel:m,continue:()=>(r?.(),c),cancelRetry:d,continueRetry:y,canStart:S,start:()=>(S()?x():O().then(x),c)}}var cv=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),aR(this.gcTime)&&(this.#t=Lc.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(a){this.gcTime=Math.max(this.gcTime||0,a??(Xu?1/0:300*1e3))}clearGcTimeout(){this.#t&&(Lc.clearTimeout(this.#t),this.#t=void 0)}},gR=class extends cv{#t;#n;#e;#l;#a;#s;#u;constructor(a){super(),this.#u=!1,this.#s=a.defaultOptions,this.setOptions(a.options),this.observers=[],this.#l=a.client,this.#e=this.#l.getQueryCache(),this.queryKey=a.queryKey,this.queryHash=a.queryHash,this.#t=Py(this.options),this.state=a.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#a?.promise}setOptions(a){if(this.options={...this.#s,...a},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const i=Py(this.options);i.data!==void 0&&(this.setState(Zy(i.data,i.dataUpdatedAt)),this.#t=i)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#e.remove(this)}setData(a,i){const s=rR(this.state.data,a,this.options);return this.#i({data:s,type:"success",dataUpdatedAt:i?.updatedAt,manual:i?.manual}),s}setState(a,i){this.#i({type:"setState",state:a,setStateOptions:i})}cancel(a){const i=this.#a?.promise;return this.#a?.cancel(a),i?i.then(Fe).catch(Fe):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#t)}isActive(){return this.observers.some(a=>iR(a.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===tf||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(a=>Nc(a.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(a=>a.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(a=0){return this.state.data===void 0?!0:a==="static"?!1:this.state.isInvalidated?!0:!lR(this.state.dataUpdatedAt,a)}onFocus(){this.observers.find(i=>i.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(i=>i.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(a){this.observers.includes(a)||(this.observers.push(a),this.clearGcTimeout(),this.#e.notify({type:"observerAdded",query:this,observer:a}))}removeObserver(a){this.observers.includes(a)&&(this.observers=this.observers.filter(i=>i!==a),this.observers.length||(this.#a&&(this.#u?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#e.notify({type:"observerRemoved",query:this,observer:a}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}async fetch(a,i){if(this.state.fetchStatus!=="idle"&&this.#a?.status()!=="rejected"){if(this.state.data!==void 0&&i?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(a&&this.setOptions(a),!this.options.queryFn){const d=this.observers.find(y=>y.options.queryFn);d&&this.setOptions(d.options)}const s=new AbortController,r=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(this.#u=!0,s.signal)})},c=()=>{const d=sv(this.options,i),p=(()=>{const S={client:this.#l,queryKey:this.queryKey,meta:this.meta};return r(S),S})();return this.#u=!1,this.options.persister?this.options.persister(d,p,this):d(p)},m=(()=>{const d={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:this.#l,state:this.state,fetchFn:c};return r(d),d})();this.options.behavior?.onFetch(m,this),this.#n=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==m.fetchOptions?.meta)&&this.#i({type:"fetch",meta:m.fetchOptions?.meta}),this.#a=ov({initialPromise:i?.initialPromise,fn:m.fetchFn,onCancel:d=>{d instanceof Bc&&d.revert&&this.setState({...this.#n,fetchStatus:"idle"}),s.abort()},onFail:(d,y)=>{this.#i({type:"failed",failureCount:d,error:y})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:m.options.retry,retryDelay:m.options.retryDelay,networkMode:m.options.networkMode,canRun:()=>!0});try{const d=await this.#a.start();if(d===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(d),this.#e.config.onSuccess?.(d,this),this.#e.config.onSettled?.(d,this.state.error,this),d}catch(d){if(d instanceof Bc){if(d.silent)return this.#a.promise;if(d.revert){if(this.state.data===void 0)throw d;return this.state.data}}throw this.#i({type:"error",error:d}),this.#e.config.onError?.(d,this),this.#e.config.onSettled?.(this.state.data,d,this),d}finally{this.scheduleGc()}}#i(a){const i=s=>{switch(a.type){case"failed":return{...s,fetchFailureCount:a.failureCount,fetchFailureReason:a.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,...SR(s.data,this.options),fetchMeta:a.meta??null};case"success":const r={...s,...Zy(a.data,a.dataUpdatedAt),dataUpdateCount:s.dataUpdateCount+1,...!a.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#n=a.manual?r:void 0,r;case"error":const c=a.error;return{...s,error:c,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:c,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...a.state}}};this.state=i(this.state),he.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),this.#e.notify({query:this,type:"updated",action:a})})}};function SR(a,i){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:rv(i.networkMode)?"fetching":"paused",...a===void 0&&{error:null,status:"pending"}}}function Zy(a,i){return{data:a,dataUpdatedAt:i??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Py(a){const i=typeof a.initialData=="function"?a.initialData():a.initialData,s=i!==void 0,r=s?typeof a.initialDataUpdatedAt=="function"?a.initialDataUpdatedAt():a.initialDataUpdatedAt:0;return{data:i,dataUpdateCount:0,dataUpdatedAt:s?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}function Fy(a){return{onFetch:(i,s)=>{const r=i.options,c=i.fetchOptions?.meta?.fetchMore?.direction,f=i.state.data?.pages||[],m=i.state.data?.pageParams||[];let d={pages:[],pageParams:[]},y=0;const p=async()=>{let S=!1;const g=x=>{fR(x,()=>i.signal,()=>S=!0)},_=sv(i.options,i.fetchOptions),O=async(x,R,C)=>{if(S)return Promise.reject();if(R==null&&x.pages.length)return Promise.resolve(x);const K=(()=>{const W={client:i.client,queryKey:i.queryKey,pageParam:R,direction:C?"backward":"forward",meta:i.options.meta};return g(W),W})(),Q=await _(K),{maxPages:G}=i.options,$=C?cR:oR;return{pages:$(x.pages,Q,G),pageParams:$(x.pageParams,R,G)}};if(c&&f.length){const x=c==="backward",R=x?bR:ky,C={pages:f,pageParams:m},B=R(r,C);d=await O(C,B,x)}else{const x=a??f.length;do{const R=y===0?m[0]??r.initialPageParam:ky(r,d);if(y>0&&R==null)break;d=await O(d,R),y++}while(y<x)}return d};i.options.persister?i.fetchFn=()=>i.options.persister?.(p,{client:i.client,queryKey:i.queryKey,meta:i.options.meta,signal:i.signal},s):i.fetchFn=p}}}function ky(a,{pages:i,pageParams:s}){const r=i.length-1;return i.length>0?a.getNextPageParam(i[r],i,s[r],s):void 0}function bR(a,{pages:i,pageParams:s}){return i.length>0?a.getPreviousPageParam?.(i[0],i,s[0],s):void 0}var _R=class extends cv{#t;#n;#e;#l;constructor(a){super(),this.#t=a.client,this.mutationId=a.mutationId,this.#e=a.mutationCache,this.#n=[],this.state=a.state||ER(),this.setOptions(a.options),this.scheduleGc()}setOptions(a){this.options=a,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(a){this.#n.includes(a)||(this.#n.push(a),this.clearGcTimeout(),this.#e.notify({type:"observerAdded",mutation:this,observer:a}))}removeObserver(a){this.#n=this.#n.filter(i=>i!==a),this.scheduleGc(),this.#e.notify({type:"observerRemoved",mutation:this,observer:a})}optionalRemove(){this.#n.length||(this.state.status==="pending"?this.scheduleGc():this.#e.remove(this))}continue(){return this.#l?.continue()??this.execute(this.state.variables)}async execute(a){const i=()=>{this.#a({type:"continue"})},s={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#l=ov({fn:()=>this.options.mutationFn?this.options.mutationFn(a,s):Promise.reject(new Error("No mutationFn found")),onFail:(f,m)=>{this.#a({type:"failed",failureCount:f,error:m})},onPause:()=>{this.#a({type:"pause"})},onContinue:i,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#e.canRun(this)});const r=this.state.status==="pending",c=!this.#l.canStart();try{if(r)i();else{this.#a({type:"pending",variables:a,isPaused:c}),this.#e.config.onMutate&&await this.#e.config.onMutate(a,this,s);const m=await this.options.onMutate?.(a,s);m!==this.state.context&&this.#a({type:"pending",context:m,variables:a,isPaused:c})}const f=await this.#l.start();return await this.#e.config.onSuccess?.(f,a,this.state.context,this,s),await this.options.onSuccess?.(f,a,this.state.context,s),await this.#e.config.onSettled?.(f,null,this.state.variables,this.state.context,this,s),await this.options.onSettled?.(f,null,a,this.state.context,s),this.#a({type:"success",data:f}),f}catch(f){try{await this.#e.config.onError?.(f,a,this.state.context,this,s)}catch(m){Promise.reject(m)}try{await this.options.onError?.(f,a,this.state.context,s)}catch(m){Promise.reject(m)}try{await this.#e.config.onSettled?.(void 0,f,this.state.variables,this.state.context,this,s)}catch(m){Promise.reject(m)}try{await this.options.onSettled?.(void 0,f,a,this.state.context,s)}catch(m){Promise.reject(m)}throw this.#a({type:"error",error:f}),f}finally{this.#e.runNext(this)}}#a(a){const i=s=>{switch(a.type){case"failed":return{...s,failureCount:a.failureCount,failureReason:a.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"pending":return{...s,context:a.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:a.isPaused,status:"pending",variables:a.variables,submittedAt:Date.now()};case"success":return{...s,data:a.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:a.error,failureCount:s.failureCount+1,failureReason:a.error,isPaused:!1,status:"error"}}};this.state=i(this.state),he.batch(()=>{this.#n.forEach(s=>{s.onMutationUpdate(a)}),this.#e.notify({mutation:this,type:"updated",action:a})})}};function ER(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var RR=class extends Vu{constructor(a={}){super(),this.config=a,this.#t=new Set,this.#n=new Map,this.#e=0}#t;#n;#e;build(a,i,s){const r=new _R({client:a,mutationCache:this,mutationId:++this.#e,options:a.defaultMutationOptions(i),state:s});return this.add(r),r}add(a){this.#t.add(a);const i=Su(a);if(typeof i=="string"){const s=this.#n.get(i);s?s.push(a):this.#n.set(i,[a])}this.notify({type:"added",mutation:a})}remove(a){if(this.#t.delete(a)){const i=Su(a);if(typeof i=="string"){const s=this.#n.get(i);if(s)if(s.length>1){const r=s.indexOf(a);r!==-1&&s.splice(r,1)}else s[0]===a&&this.#n.delete(i)}}this.notify({type:"removed",mutation:a})}canRun(a){const i=Su(a);if(typeof i=="string"){const r=this.#n.get(i)?.find(c=>c.state.status==="pending");return!r||r===a}else return!0}runNext(a){const i=Su(a);return typeof i=="string"?this.#n.get(i)?.find(r=>r!==a&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){he.batch(()=>{this.#t.forEach(a=>{this.notify({type:"removed",mutation:a})}),this.#t.clear(),this.#n.clear()})}getAll(){return Array.from(this.#t)}find(a){const i={exact:!0,...a};return this.getAll().find(s=>Vy(i,s))}findAll(a={}){return this.getAll().filter(i=>Vy(a,i))}notify(a){he.batch(()=>{this.listeners.forEach(i=>{i(a)})})}resumePausedMutations(){const a=this.getAll().filter(i=>i.state.isPaused);return he.batch(()=>Promise.all(a.map(i=>i.continue().catch(Fe))))}};function Su(a){return a.options.scope?.id}var TR=class extends Vu{constructor(a={}){super(),this.config=a,this.#t=new Map}#t;build(a,i,s){const r=i.queryKey,c=i.queryHash??Ic(r,i);let f=this.get(c);return f||(f=new gR({client:a,queryKey:r,queryHash:c,options:a.defaultQueryOptions(i),state:s,defaultOptions:a.getQueryDefaults(r)}),this.add(f)),f}add(a){this.#t.has(a.queryHash)||(this.#t.set(a.queryHash,a),this.notify({type:"added",query:a}))}remove(a){const i=this.#t.get(a.queryHash);i&&(a.destroy(),i===a&&this.#t.delete(a.queryHash),this.notify({type:"removed",query:a}))}clear(){he.batch(()=>{this.getAll().forEach(a=>{this.remove(a)})})}get(a){return this.#t.get(a)}getAll(){return[...this.#t.values()]}find(a){const i={exact:!0,...a};return this.getAll().find(s=>Gy(i,s))}findAll(a={}){const i=this.getAll();return Object.keys(a).length>0?i.filter(s=>Gy(a,s)):i}notify(a){he.batch(()=>{this.listeners.forEach(i=>{i(a)})})}onFocus(){he.batch(()=>{this.getAll().forEach(a=>{a.onFocus()})})}onOnline(){he.batch(()=>{this.getAll().forEach(a=>{a.onOnline()})})}},wR=class{#t;#n;#e;#l;#a;#s;#u;#i;constructor(a={}){this.#t=a.queryCache||new TR,this.#n=a.mutationCache||new RR,this.#e=a.defaultOptions||{},this.#l=new Map,this.#a=new Map,this.#s=0}mount(){this.#s++,this.#s===1&&(this.#u=uv.subscribe(async a=>{a&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#i=Lu.subscribe(async a=>{a&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#s--,this.#s===0&&(this.#u?.(),this.#u=void 0,this.#i?.(),this.#i=void 0)}isFetching(a){return this.#t.findAll({...a,fetchStatus:"fetching"}).length}isMutating(a){return this.#n.findAll({...a,status:"pending"}).length}getQueryData(a){const i=this.defaultQueryOptions({queryKey:a});return this.#t.get(i.queryHash)?.state.data}ensureQueryData(a){const i=this.defaultQueryOptions(a),s=this.#t.build(this,i),r=s.state.data;return r===void 0?this.fetchQuery(a):(a.revalidateIfStale&&s.isStaleByTime(Nc(i.staleTime,s))&&this.prefetchQuery(i),Promise.resolve(r))}getQueriesData(a){return this.#t.findAll(a).map(({queryKey:i,state:s})=>{const r=s.data;return[i,r]})}setQueryData(a,i,s){const r=this.defaultQueryOptions({queryKey:a}),f=this.#t.get(r.queryHash)?.state.data,m=nR(i,f);if(m!==void 0)return this.#t.build(this,r).setData(m,{...s,manual:!0})}setQueriesData(a,i,s){return he.batch(()=>this.#t.findAll(a).map(({queryKey:r})=>[r,this.setQueryData(r,i,s)]))}getQueryState(a){const i=this.defaultQueryOptions({queryKey:a});return this.#t.get(i.queryHash)?.state}removeQueries(a){const i=this.#t;he.batch(()=>{i.findAll(a).forEach(s=>{i.remove(s)})})}resetQueries(a,i){const s=this.#t;return he.batch(()=>(s.findAll(a).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...a},i)))}cancelQueries(a,i={}){const s={revert:!0,...i},r=he.batch(()=>this.#t.findAll(a).map(c=>c.cancel(s)));return Promise.all(r).then(Fe).catch(Fe)}invalidateQueries(a,i={}){return he.batch(()=>(this.#t.findAll(a).forEach(s=>{s.invalidate()}),a?.refetchType==="none"?Promise.resolve():this.refetchQueries({...a,type:a?.refetchType??a?.type??"active"},i)))}refetchQueries(a,i={}){const s={...i,cancelRefetch:i.cancelRefetch??!0},r=he.batch(()=>this.#t.findAll(a).filter(c=>!c.isDisabled()&&!c.isStatic()).map(c=>{let f=c.fetch(void 0,s);return s.throwOnError||(f=f.catch(Fe)),c.state.fetchStatus==="paused"?Promise.resolve():f}));return Promise.all(r).then(Fe)}fetchQuery(a){const i=this.defaultQueryOptions(a);i.retry===void 0&&(i.retry=!1);const s=this.#t.build(this,i);return s.isStaleByTime(Nc(i.staleTime,s))?s.fetch(i):Promise.resolve(s.state.data)}prefetchQuery(a){return this.fetchQuery(a).then(Fe).catch(Fe)}fetchInfiniteQuery(a){return a.behavior=Fy(a.pages),this.fetchQuery(a)}prefetchInfiniteQuery(a){return this.fetchInfiniteQuery(a).then(Fe).catch(Fe)}ensureInfiniteQueryData(a){return a.behavior=Fy(a.pages),this.ensureQueryData(a)}resumePausedMutations(){return Lu.isOnline()?this.#n.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#n}getDefaultOptions(){return this.#e}setDefaultOptions(a){this.#e=a}setQueryDefaults(a,i){this.#l.set(Pi(a),{queryKey:a,defaultOptions:i})}getQueryDefaults(a){const i=[...this.#l.values()],s={};return i.forEach(r=>{Fi(a,r.queryKey)&&Object.assign(s,r.defaultOptions)}),s}setMutationDefaults(a,i){this.#a.set(Pi(a),{mutationKey:a,defaultOptions:i})}getMutationDefaults(a){const i=[...this.#a.values()],s={};return i.forEach(r=>{Fi(a,r.mutationKey)&&Object.assign(s,r.defaultOptions)}),s}defaultQueryOptions(a){if(a._defaulted)return a;const i={...this.#e.queries,...this.getQueryDefaults(a.queryKey),...a,_defaulted:!0};return i.queryHash||(i.queryHash=Ic(i.queryKey,i)),i.refetchOnReconnect===void 0&&(i.refetchOnReconnect=i.networkMode!=="always"),i.throwOnError===void 0&&(i.throwOnError=!!i.suspense),!i.networkMode&&i.persister&&(i.networkMode="offlineFirst"),i.queryFn===tf&&(i.enabled=!1),i}defaultMutationOptions(a){return a?._defaulted?a:{...this.#e.mutations,...a?.mutationKey&&this.getMutationDefaults(a.mutationKey),...a,_defaulted:!0}}clear(){this.#t.clear(),this.#n.clear()}},fv=nt.createContext(void 0),d2=a=>{const i=nt.useContext(fv);if(!i)throw new Error("No QueryClient set, use QueryClientProvider to set one");return i},AR=({client:a,children:i})=>(nt.useEffect(()=>(a.mount(),()=>{a.unmount()}),[a]),F.jsx(fv.Provider,{value:a,children:i}));const OR="/assets/styles-DogPvrGY.css",MR=`
|
|
18
|
+
`).filter(Boolean);for(const _ of g)try{i(JSON.parse(_))}catch(O){s?.(`Invalid JSON line: ${_}`,O)}}if(y)break}}catch(d){s?.("Stream processing error:",d)}})(),i(m)}async function JE({jsonStream:a,onMessage:i,onError:s}){const r=a.getReader(),{value:c,done:f}=await r.read();if(f||!c)throw new Error("Stream ended before first object");const m=JSON.parse(c);return(async()=>{try{for(;;){const{value:d,done:y}=await r.read();if(y)break;if(d)try{i(JSON.parse(d))}catch(p){s?.(`Invalid JSON: ${d}`,p)}}}catch(d){s?.("Stream processing error:",d)}})(),i(m)}function $E(a){const i="/_serverFn/"+a;return Object.assign((...c)=>{const f=ev()?.serverFns?.fetch;return ZE(i,c,f??fetch)},{url:i,serverFnMeta:{id:a},[Uc]:!0})}const WE={key:"$TSS/serverfn",test:a=>typeof a!="function"||!(Uc in a)?!1:!!a[Uc],toSerializable:({serverFnMeta:a})=>({functionId:a.id}),fromSerializable:({functionId:a})=>$E(a)};var Vu=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(a){return this.listeners.add(a),this.onSubscribe(),()=>{this.listeners.delete(a),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},IE={setTimeout:(a,i)=>setTimeout(a,i),clearTimeout:a=>clearTimeout(a),setInterval:(a,i)=>setInterval(a,i),clearInterval:a=>clearInterval(a)},tR=class{#t=IE;#n=!1;setTimeoutProvider(a){this.#t=a}setTimeout(a,i){return this.#t.setTimeout(a,i)}clearTimeout(a){this.#t.clearTimeout(a)}setInterval(a,i){return this.#t.setInterval(a,i)}clearInterval(a){this.#t.clearInterval(a)}},Lc=new tR;function eR(a){setTimeout(a,0)}var Xu=typeof window>"u"||"Deno"in globalThis;function Fe(){}function nR(a,i){return typeof a=="function"?a(i):a}function aR(a){return typeof a=="number"&&a>=0&&a!==1/0}function lR(a,i){return Math.max(a+(i||0)-Date.now(),0)}function Nc(a,i){return typeof a=="function"?a(i):a}function iR(a,i){return typeof a=="function"?a(i):a}function Gy(a,i){const{type:s="all",exact:r,fetchStatus:c,predicate:f,queryKey:m,stale:d}=a;if(m){if(r){if(i.queryHash!==Ic(m,i.options))return!1}else if(!Fi(i.queryKey,m))return!1}if(s!=="all"){const y=i.isActive();if(s==="active"&&!y||s==="inactive"&&y)return!1}return!(typeof d=="boolean"&&i.isStale()!==d||c&&c!==i.state.fetchStatus||f&&!f(i))}function Vy(a,i){const{exact:s,status:r,predicate:c,mutationKey:f}=a;if(f){if(!i.options.mutationKey)return!1;if(s){if(Pi(i.options.mutationKey)!==Pi(f))return!1}else if(!Fi(i.options.mutationKey,f))return!1}return!(r&&i.state.status!==r||c&&!c(i))}function Ic(a,i){return(i?.queryKeyHashFn||Pi)(a)}function Pi(a){return JSON.stringify(a,(i,s)=>jc(s)?Object.keys(s).sort().reduce((r,c)=>(r[c]=s[c],r),{}):s)}function Fi(a,i){return a===i?!0:typeof a!=typeof i?!1:a&&i&&typeof a=="object"&&typeof i=="object"?Object.keys(i).every(s=>Fi(a[s],i[s])):!1}var sR=Object.prototype.hasOwnProperty;function iv(a,i,s=0){if(a===i)return a;if(s>500)return i;const r=Xy(a)&&Xy(i);if(!r&&!(jc(a)&&jc(i)))return i;const f=(r?a:Object.keys(a)).length,m=r?i:Object.keys(i),d=m.length,y=r?new Array(d):{};let p=0;for(let S=0;S<d;S++){const g=r?S:m[S],_=a[g],O=i[g];if(_===O){y[g]=_,(r?S<f:sR.call(a,g))&&p++;continue}if(_===null||O===null||typeof _!="object"||typeof O!="object"){y[g]=O;continue}const x=iv(_,O,s+1);y[g]=x,x===_&&p++}return f===d&&p===f?a:y}function f2(a,i){if(!i||Object.keys(a).length!==Object.keys(i).length)return!1;for(const s in a)if(a[s]!==i[s])return!1;return!0}function Xy(a){return Array.isArray(a)&&a.length===Object.keys(a).length}function jc(a){if(!Ky(a))return!1;const i=a.constructor;if(i===void 0)return!0;const s=i.prototype;return!(!Ky(s)||!s.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(a)!==Object.prototype)}function Ky(a){return Object.prototype.toString.call(a)==="[object Object]"}function uR(a){return new Promise(i=>{Lc.setTimeout(i,a)})}function rR(a,i,s){return typeof s.structuralSharing=="function"?s.structuralSharing(a,i):s.structuralSharing!==!1?iv(a,i):i}function oR(a,i,s=0){const r=[...a,i];return s&&r.length>s?r.slice(1):r}function cR(a,i,s=0){const r=[i,...a];return s&&r.length>s?r.slice(0,-1):r}var tf=Symbol();function sv(a,i){return!a.queryFn&&i?.initialPromise?()=>i.initialPromise:!a.queryFn||a.queryFn===tf?()=>Promise.reject(new Error(`Missing queryFn: '${a.queryHash}'`)):a.queryFn}function h2(a,i){return typeof a=="function"?a(...i):!!a}function fR(a,i,s){let r=!1,c;return Object.defineProperty(a,"signal",{enumerable:!0,get:()=>(c??=i(),r||(r=!0,c.aborted?s():c.addEventListener("abort",s,{once:!0})),c)}),a}var hR=class extends Vu{#t;#n;#e;constructor(){super(),this.#e=a=>{if(!Xu&&window.addEventListener){const i=()=>a();return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}}}onSubscribe(){this.#n||this.setEventListener(this.#e)}onUnsubscribe(){this.hasListeners()||(this.#n?.(),this.#n=void 0)}setEventListener(a){this.#e=a,this.#n?.(),this.#n=a(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()})}setFocused(a){this.#t!==a&&(this.#t=a,this.onFocus())}onFocus(){const a=this.isFocused();this.listeners.forEach(i=>{i(a)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},uv=new hR;function dR(){let a,i;const s=new Promise((c,f)=>{a=c,i=f});s.status="pending",s.catch(()=>{});function r(c){Object.assign(s,c),delete s.resolve,delete s.reject}return s.resolve=c=>{r({status:"fulfilled",value:c}),a(c)},s.reject=c=>{r({status:"rejected",reason:c}),i(c)},s}var mR=eR;function yR(){let a=[],i=0,s=d=>{d()},r=d=>{d()},c=mR;const f=d=>{i?a.push(d):c(()=>{s(d)})},m=()=>{const d=a;a=[],d.length&&c(()=>{r(()=>{d.forEach(y=>{s(y)})})})};return{batch:d=>{let y;i++;try{y=d()}finally{i--,i||m()}return y},batchCalls:d=>(...y)=>{f(()=>{d(...y)})},schedule:f,setNotifyFunction:d=>{s=d},setBatchNotifyFunction:d=>{r=d},setScheduler:d=>{c=d}}}var he=yR(),pR=class extends Vu{#t=!0;#n;#e;constructor(){super(),this.#e=a=>{if(!Xu&&window.addEventListener){const i=()=>a(!0),s=()=>a(!1);return window.addEventListener("online",i,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",s)}}}}onSubscribe(){this.#n||this.setEventListener(this.#e)}onUnsubscribe(){this.hasListeners()||(this.#n?.(),this.#n=void 0)}setEventListener(a){this.#e=a,this.#n?.(),this.#n=a(this.setOnline.bind(this))}setOnline(a){this.#t!==a&&(this.#t=a,this.listeners.forEach(s=>{s(a)}))}isOnline(){return this.#t}},Lu=new pR;function vR(a){return Math.min(1e3*2**a,3e4)}function rv(a){return(a??"online")==="online"?Lu.isOnline():!0}var Bc=class extends Error{constructor(a){super("CancelledError"),this.revert=a?.revert,this.silent=a?.silent}};function ov(a){let i=!1,s=0,r;const c=dR(),f=()=>c.status!=="pending",m=R=>{if(!f()){const C=new Bc(R);_(C),a.onCancel?.(C)}},d=()=>{i=!0},y=()=>{i=!1},p=()=>uv.isFocused()&&(a.networkMode==="always"||Lu.isOnline())&&a.canRun(),S=()=>rv(a.networkMode)&&a.canRun(),g=R=>{f()||(r?.(),c.resolve(R))},_=R=>{f()||(r?.(),c.reject(R))},O=()=>new Promise(R=>{r=C=>{(f()||p())&&R(C)},a.onPause?.()}).then(()=>{r=void 0,f()||a.onContinue?.()}),x=()=>{if(f())return;let R;const C=s===0?a.initialPromise:void 0;try{R=C??a.fn()}catch(B){R=Promise.reject(B)}Promise.resolve(R).then(g).catch(B=>{if(f())return;const K=a.retry??(Xu?0:3),Q=a.retryDelay??vR,G=typeof Q=="function"?Q(s,B):Q,$=K===!0||typeof K=="number"&&s<K||typeof K=="function"&&K(s,B);if(i||!$){_(B);return}s++,a.onFail?.(s,B),uR(G).then(()=>p()?void 0:O()).then(()=>{i?_(B):x()})})};return{promise:c,status:()=>c.status,cancel:m,continue:()=>(r?.(),c),cancelRetry:d,continueRetry:y,canStart:S,start:()=>(S()?x():O().then(x),c)}}var cv=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),aR(this.gcTime)&&(this.#t=Lc.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(a){this.gcTime=Math.max(this.gcTime||0,a??(Xu?1/0:300*1e3))}clearGcTimeout(){this.#t&&(Lc.clearTimeout(this.#t),this.#t=void 0)}},gR=class extends cv{#t;#n;#e;#l;#a;#s;#u;constructor(a){super(),this.#u=!1,this.#s=a.defaultOptions,this.setOptions(a.options),this.observers=[],this.#l=a.client,this.#e=this.#l.getQueryCache(),this.queryKey=a.queryKey,this.queryHash=a.queryHash,this.#t=Py(this.options),this.state=a.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#a?.promise}setOptions(a){if(this.options={...this.#s,...a},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const i=Py(this.options);i.data!==void 0&&(this.setState(Zy(i.data,i.dataUpdatedAt)),this.#t=i)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#e.remove(this)}setData(a,i){const s=rR(this.state.data,a,this.options);return this.#i({data:s,type:"success",dataUpdatedAt:i?.updatedAt,manual:i?.manual}),s}setState(a,i){this.#i({type:"setState",state:a,setStateOptions:i})}cancel(a){const i=this.#a?.promise;return this.#a?.cancel(a),i?i.then(Fe).catch(Fe):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#t)}isActive(){return this.observers.some(a=>iR(a.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===tf||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(a=>Nc(a.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(a=>a.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(a=0){return this.state.data===void 0?!0:a==="static"?!1:this.state.isInvalidated?!0:!lR(this.state.dataUpdatedAt,a)}onFocus(){this.observers.find(i=>i.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(i=>i.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(a){this.observers.includes(a)||(this.observers.push(a),this.clearGcTimeout(),this.#e.notify({type:"observerAdded",query:this,observer:a}))}removeObserver(a){this.observers.includes(a)&&(this.observers=this.observers.filter(i=>i!==a),this.observers.length||(this.#a&&(this.#u?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#e.notify({type:"observerRemoved",query:this,observer:a}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}async fetch(a,i){if(this.state.fetchStatus!=="idle"&&this.#a?.status()!=="rejected"){if(this.state.data!==void 0&&i?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(a&&this.setOptions(a),!this.options.queryFn){const d=this.observers.find(y=>y.options.queryFn);d&&this.setOptions(d.options)}const s=new AbortController,r=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(this.#u=!0,s.signal)})},c=()=>{const d=sv(this.options,i),p=(()=>{const S={client:this.#l,queryKey:this.queryKey,meta:this.meta};return r(S),S})();return this.#u=!1,this.options.persister?this.options.persister(d,p,this):d(p)},m=(()=>{const d={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:this.#l,state:this.state,fetchFn:c};return r(d),d})();this.options.behavior?.onFetch(m,this),this.#n=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==m.fetchOptions?.meta)&&this.#i({type:"fetch",meta:m.fetchOptions?.meta}),this.#a=ov({initialPromise:i?.initialPromise,fn:m.fetchFn,onCancel:d=>{d instanceof Bc&&d.revert&&this.setState({...this.#n,fetchStatus:"idle"}),s.abort()},onFail:(d,y)=>{this.#i({type:"failed",failureCount:d,error:y})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:m.options.retry,retryDelay:m.options.retryDelay,networkMode:m.options.networkMode,canRun:()=>!0});try{const d=await this.#a.start();if(d===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(d),this.#e.config.onSuccess?.(d,this),this.#e.config.onSettled?.(d,this.state.error,this),d}catch(d){if(d instanceof Bc){if(d.silent)return this.#a.promise;if(d.revert){if(this.state.data===void 0)throw d;return this.state.data}}throw this.#i({type:"error",error:d}),this.#e.config.onError?.(d,this),this.#e.config.onSettled?.(this.state.data,d,this),d}finally{this.scheduleGc()}}#i(a){const i=s=>{switch(a.type){case"failed":return{...s,fetchFailureCount:a.failureCount,fetchFailureReason:a.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,...SR(s.data,this.options),fetchMeta:a.meta??null};case"success":const r={...s,...Zy(a.data,a.dataUpdatedAt),dataUpdateCount:s.dataUpdateCount+1,...!a.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#n=a.manual?r:void 0,r;case"error":const c=a.error;return{...s,error:c,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:c,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...a.state}}};this.state=i(this.state),he.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),this.#e.notify({query:this,type:"updated",action:a})})}};function SR(a,i){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:rv(i.networkMode)?"fetching":"paused",...a===void 0&&{error:null,status:"pending"}}}function Zy(a,i){return{data:a,dataUpdatedAt:i??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Py(a){const i=typeof a.initialData=="function"?a.initialData():a.initialData,s=i!==void 0,r=s?typeof a.initialDataUpdatedAt=="function"?a.initialDataUpdatedAt():a.initialDataUpdatedAt:0;return{data:i,dataUpdateCount:0,dataUpdatedAt:s?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}function Fy(a){return{onFetch:(i,s)=>{const r=i.options,c=i.fetchOptions?.meta?.fetchMore?.direction,f=i.state.data?.pages||[],m=i.state.data?.pageParams||[];let d={pages:[],pageParams:[]},y=0;const p=async()=>{let S=!1;const g=x=>{fR(x,()=>i.signal,()=>S=!0)},_=sv(i.options,i.fetchOptions),O=async(x,R,C)=>{if(S)return Promise.reject();if(R==null&&x.pages.length)return Promise.resolve(x);const K=(()=>{const W={client:i.client,queryKey:i.queryKey,pageParam:R,direction:C?"backward":"forward",meta:i.options.meta};return g(W),W})(),Q=await _(K),{maxPages:G}=i.options,$=C?cR:oR;return{pages:$(x.pages,Q,G),pageParams:$(x.pageParams,R,G)}};if(c&&f.length){const x=c==="backward",R=x?bR:ky,C={pages:f,pageParams:m},B=R(r,C);d=await O(C,B,x)}else{const x=a??f.length;do{const R=y===0?m[0]??r.initialPageParam:ky(r,d);if(y>0&&R==null)break;d=await O(d,R),y++}while(y<x)}return d};i.options.persister?i.fetchFn=()=>i.options.persister?.(p,{client:i.client,queryKey:i.queryKey,meta:i.options.meta,signal:i.signal},s):i.fetchFn=p}}}function ky(a,{pages:i,pageParams:s}){const r=i.length-1;return i.length>0?a.getNextPageParam(i[r],i,s[r],s):void 0}function bR(a,{pages:i,pageParams:s}){return i.length>0?a.getPreviousPageParam?.(i[0],i,s[0],s):void 0}var _R=class extends cv{#t;#n;#e;#l;constructor(a){super(),this.#t=a.client,this.mutationId=a.mutationId,this.#e=a.mutationCache,this.#n=[],this.state=a.state||ER(),this.setOptions(a.options),this.scheduleGc()}setOptions(a){this.options=a,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(a){this.#n.includes(a)||(this.#n.push(a),this.clearGcTimeout(),this.#e.notify({type:"observerAdded",mutation:this,observer:a}))}removeObserver(a){this.#n=this.#n.filter(i=>i!==a),this.scheduleGc(),this.#e.notify({type:"observerRemoved",mutation:this,observer:a})}optionalRemove(){this.#n.length||(this.state.status==="pending"?this.scheduleGc():this.#e.remove(this))}continue(){return this.#l?.continue()??this.execute(this.state.variables)}async execute(a){const i=()=>{this.#a({type:"continue"})},s={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#l=ov({fn:()=>this.options.mutationFn?this.options.mutationFn(a,s):Promise.reject(new Error("No mutationFn found")),onFail:(f,m)=>{this.#a({type:"failed",failureCount:f,error:m})},onPause:()=>{this.#a({type:"pause"})},onContinue:i,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#e.canRun(this)});const r=this.state.status==="pending",c=!this.#l.canStart();try{if(r)i();else{this.#a({type:"pending",variables:a,isPaused:c}),this.#e.config.onMutate&&await this.#e.config.onMutate(a,this,s);const m=await this.options.onMutate?.(a,s);m!==this.state.context&&this.#a({type:"pending",context:m,variables:a,isPaused:c})}const f=await this.#l.start();return await this.#e.config.onSuccess?.(f,a,this.state.context,this,s),await this.options.onSuccess?.(f,a,this.state.context,s),await this.#e.config.onSettled?.(f,null,this.state.variables,this.state.context,this,s),await this.options.onSettled?.(f,null,a,this.state.context,s),this.#a({type:"success",data:f}),f}catch(f){try{await this.#e.config.onError?.(f,a,this.state.context,this,s)}catch(m){Promise.reject(m)}try{await this.options.onError?.(f,a,this.state.context,s)}catch(m){Promise.reject(m)}try{await this.#e.config.onSettled?.(void 0,f,this.state.variables,this.state.context,this,s)}catch(m){Promise.reject(m)}try{await this.options.onSettled?.(void 0,f,a,this.state.context,s)}catch(m){Promise.reject(m)}throw this.#a({type:"error",error:f}),f}finally{this.#e.runNext(this)}}#a(a){const i=s=>{switch(a.type){case"failed":return{...s,failureCount:a.failureCount,failureReason:a.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"pending":return{...s,context:a.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:a.isPaused,status:"pending",variables:a.variables,submittedAt:Date.now()};case"success":return{...s,data:a.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:a.error,failureCount:s.failureCount+1,failureReason:a.error,isPaused:!1,status:"error"}}};this.state=i(this.state),he.batch(()=>{this.#n.forEach(s=>{s.onMutationUpdate(a)}),this.#e.notify({mutation:this,type:"updated",action:a})})}};function ER(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var RR=class extends Vu{constructor(a={}){super(),this.config=a,this.#t=new Set,this.#n=new Map,this.#e=0}#t;#n;#e;build(a,i,s){const r=new _R({client:a,mutationCache:this,mutationId:++this.#e,options:a.defaultMutationOptions(i),state:s});return this.add(r),r}add(a){this.#t.add(a);const i=Su(a);if(typeof i=="string"){const s=this.#n.get(i);s?s.push(a):this.#n.set(i,[a])}this.notify({type:"added",mutation:a})}remove(a){if(this.#t.delete(a)){const i=Su(a);if(typeof i=="string"){const s=this.#n.get(i);if(s)if(s.length>1){const r=s.indexOf(a);r!==-1&&s.splice(r,1)}else s[0]===a&&this.#n.delete(i)}}this.notify({type:"removed",mutation:a})}canRun(a){const i=Su(a);if(typeof i=="string"){const r=this.#n.get(i)?.find(c=>c.state.status==="pending");return!r||r===a}else return!0}runNext(a){const i=Su(a);return typeof i=="string"?this.#n.get(i)?.find(r=>r!==a&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){he.batch(()=>{this.#t.forEach(a=>{this.notify({type:"removed",mutation:a})}),this.#t.clear(),this.#n.clear()})}getAll(){return Array.from(this.#t)}find(a){const i={exact:!0,...a};return this.getAll().find(s=>Vy(i,s))}findAll(a={}){return this.getAll().filter(i=>Vy(a,i))}notify(a){he.batch(()=>{this.listeners.forEach(i=>{i(a)})})}resumePausedMutations(){const a=this.getAll().filter(i=>i.state.isPaused);return he.batch(()=>Promise.all(a.map(i=>i.continue().catch(Fe))))}};function Su(a){return a.options.scope?.id}var TR=class extends Vu{constructor(a={}){super(),this.config=a,this.#t=new Map}#t;build(a,i,s){const r=i.queryKey,c=i.queryHash??Ic(r,i);let f=this.get(c);return f||(f=new gR({client:a,queryKey:r,queryHash:c,options:a.defaultQueryOptions(i),state:s,defaultOptions:a.getQueryDefaults(r)}),this.add(f)),f}add(a){this.#t.has(a.queryHash)||(this.#t.set(a.queryHash,a),this.notify({type:"added",query:a}))}remove(a){const i=this.#t.get(a.queryHash);i&&(a.destroy(),i===a&&this.#t.delete(a.queryHash),this.notify({type:"removed",query:a}))}clear(){he.batch(()=>{this.getAll().forEach(a=>{this.remove(a)})})}get(a){return this.#t.get(a)}getAll(){return[...this.#t.values()]}find(a){const i={exact:!0,...a};return this.getAll().find(s=>Gy(i,s))}findAll(a={}){const i=this.getAll();return Object.keys(a).length>0?i.filter(s=>Gy(a,s)):i}notify(a){he.batch(()=>{this.listeners.forEach(i=>{i(a)})})}onFocus(){he.batch(()=>{this.getAll().forEach(a=>{a.onFocus()})})}onOnline(){he.batch(()=>{this.getAll().forEach(a=>{a.onOnline()})})}},wR=class{#t;#n;#e;#l;#a;#s;#u;#i;constructor(a={}){this.#t=a.queryCache||new TR,this.#n=a.mutationCache||new RR,this.#e=a.defaultOptions||{},this.#l=new Map,this.#a=new Map,this.#s=0}mount(){this.#s++,this.#s===1&&(this.#u=uv.subscribe(async a=>{a&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#i=Lu.subscribe(async a=>{a&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#s--,this.#s===0&&(this.#u?.(),this.#u=void 0,this.#i?.(),this.#i=void 0)}isFetching(a){return this.#t.findAll({...a,fetchStatus:"fetching"}).length}isMutating(a){return this.#n.findAll({...a,status:"pending"}).length}getQueryData(a){const i=this.defaultQueryOptions({queryKey:a});return this.#t.get(i.queryHash)?.state.data}ensureQueryData(a){const i=this.defaultQueryOptions(a),s=this.#t.build(this,i),r=s.state.data;return r===void 0?this.fetchQuery(a):(a.revalidateIfStale&&s.isStaleByTime(Nc(i.staleTime,s))&&this.prefetchQuery(i),Promise.resolve(r))}getQueriesData(a){return this.#t.findAll(a).map(({queryKey:i,state:s})=>{const r=s.data;return[i,r]})}setQueryData(a,i,s){const r=this.defaultQueryOptions({queryKey:a}),f=this.#t.get(r.queryHash)?.state.data,m=nR(i,f);if(m!==void 0)return this.#t.build(this,r).setData(m,{...s,manual:!0})}setQueriesData(a,i,s){return he.batch(()=>this.#t.findAll(a).map(({queryKey:r})=>[r,this.setQueryData(r,i,s)]))}getQueryState(a){const i=this.defaultQueryOptions({queryKey:a});return this.#t.get(i.queryHash)?.state}removeQueries(a){const i=this.#t;he.batch(()=>{i.findAll(a).forEach(s=>{i.remove(s)})})}resetQueries(a,i){const s=this.#t;return he.batch(()=>(s.findAll(a).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...a},i)))}cancelQueries(a,i={}){const s={revert:!0,...i},r=he.batch(()=>this.#t.findAll(a).map(c=>c.cancel(s)));return Promise.all(r).then(Fe).catch(Fe)}invalidateQueries(a,i={}){return he.batch(()=>(this.#t.findAll(a).forEach(s=>{s.invalidate()}),a?.refetchType==="none"?Promise.resolve():this.refetchQueries({...a,type:a?.refetchType??a?.type??"active"},i)))}refetchQueries(a,i={}){const s={...i,cancelRefetch:i.cancelRefetch??!0},r=he.batch(()=>this.#t.findAll(a).filter(c=>!c.isDisabled()&&!c.isStatic()).map(c=>{let f=c.fetch(void 0,s);return s.throwOnError||(f=f.catch(Fe)),c.state.fetchStatus==="paused"?Promise.resolve():f}));return Promise.all(r).then(Fe)}fetchQuery(a){const i=this.defaultQueryOptions(a);i.retry===void 0&&(i.retry=!1);const s=this.#t.build(this,i);return s.isStaleByTime(Nc(i.staleTime,s))?s.fetch(i):Promise.resolve(s.state.data)}prefetchQuery(a){return this.fetchQuery(a).then(Fe).catch(Fe)}fetchInfiniteQuery(a){return a.behavior=Fy(a.pages),this.fetchQuery(a)}prefetchInfiniteQuery(a){return this.fetchInfiniteQuery(a).then(Fe).catch(Fe)}ensureInfiniteQueryData(a){return a.behavior=Fy(a.pages),this.ensureQueryData(a)}resumePausedMutations(){return Lu.isOnline()?this.#n.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#n}getDefaultOptions(){return this.#e}setDefaultOptions(a){this.#e=a}setQueryDefaults(a,i){this.#l.set(Pi(a),{queryKey:a,defaultOptions:i})}getQueryDefaults(a){const i=[...this.#l.values()],s={};return i.forEach(r=>{Fi(a,r.queryKey)&&Object.assign(s,r.defaultOptions)}),s}setMutationDefaults(a,i){this.#a.set(Pi(a),{mutationKey:a,defaultOptions:i})}getMutationDefaults(a){const i=[...this.#a.values()],s={};return i.forEach(r=>{Fi(a,r.mutationKey)&&Object.assign(s,r.defaultOptions)}),s}defaultQueryOptions(a){if(a._defaulted)return a;const i={...this.#e.queries,...this.getQueryDefaults(a.queryKey),...a,_defaulted:!0};return i.queryHash||(i.queryHash=Ic(i.queryKey,i)),i.refetchOnReconnect===void 0&&(i.refetchOnReconnect=i.networkMode!=="always"),i.throwOnError===void 0&&(i.throwOnError=!!i.suspense),!i.networkMode&&i.persister&&(i.networkMode="offlineFirst"),i.queryFn===tf&&(i.enabled=!1),i}defaultMutationOptions(a){return a?._defaulted?a:{...this.#e.mutations,...a?.mutationKey&&this.getMutationDefaults(a.mutationKey),...a,_defaulted:!0}}clear(){this.#t.clear(),this.#n.clear()}},fv=nt.createContext(void 0),d2=a=>{const i=nt.useContext(fv);if(!i)throw new Error("No QueryClient set, use QueryClientProvider to set one");return i},AR=({client:a,children:i})=>(nt.useEffect(()=>(a.mount(),()=>{a.unmount()}),[a]),F.jsx(fv.Provider,{value:a,children:i}));const OR="/assets/styles-BGTCU8mq.css",MR=`
|
|
19
19
|
(() => {
|
|
20
20
|
// Skip PWA service worker inside Capacitor native shell — they conflict
|
|
21
21
|
// with the native networking layer and caching.
|
|
@@ -78,4 +78,4 @@ Error generating stack: `+l.message+`
|
|
|
78
78
|
document.documentElement.style.setProperty('--opencami-text-size', value)
|
|
79
79
|
} catch {}
|
|
80
80
|
})()
|
|
81
|
-
`;function zR(){return typeof window<"u"&&(window.location.href="/chat/main"),null}const Ba=vE({notFoundComponent:zR,head:()=>({meta:[{charSet:"utf-8"},{name:"viewport",content:"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, viewport-fit=cover"},{title:"OpenCami"},{name:"description",content:"a fast web client for OpenClaw"},{property:"og:image",content:"/cover.webp"},{property:"og:image:type",content:"image/webp"},{name:"twitter:card",content:"summary_large_image"},{name:"twitter:image",content:"/cover.webp"},{name:"theme-color",content:"#0a0a0a"},{name:"apple-mobile-web-app-capable",content:"yes"},{name:"apple-mobile-web-app-status-bar-style",content:"black-translucent"},{name:"apple-mobile-web-app-title",content:"OpenCami"},{name:"mobile-web-app-capable",content:"yes"}],links:[{rel:"stylesheet",href:OR},{rel:"icon",type:"image/svg+xml",href:"/favicon.svg"},{rel:"apple-touch-icon",href:"/apple-touch-icon-180x180.png"},{rel:"manifest",href:"/manifest.json"}]}),shellComponent:LR,component:UR}),DR=new wR;function UR(){return F.jsx(AR,{client:DR,children:F.jsx(Wp,{})})}function LR({children:a}){return F.jsxs("html",{lang:"en",suppressHydrationWarning:!0,children:[F.jsxs("head",{children:[F.jsx("script",{dangerouslySetInnerHTML:{__html:xR}}),F.jsx("script",{dangerouslySetInnerHTML:{__html:CR}}),F.jsx("script",{dangerouslySetInnerHTML:{__html:MR}}),F.jsx(DE,{})]}),F.jsxs("body",{children:[F.jsx("div",{className:"root",children:a}),F.jsx(UE,{})]})]})}const NR="modulepreload",jR=function(a){return"/"+a},Jy={},Hl=function(i,s,r){let c=Promise.resolve();if(s&&s.length>0){let y=function(p){return Promise.all(p.map(S=>Promise.resolve(S).then(g=>({status:"fulfilled",value:g}),g=>({status:"rejected",reason:g}))))};document.getElementsByTagName("link");const m=document.querySelector("meta[property=csp-nonce]"),d=m?.nonce||m?.getAttribute("nonce");c=y(s.map(p=>{if(p=jR(p),p in Jy)return;Jy[p]=!0;const S=p.endsWith(".css"),g=S?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${g}`))return;const _=document.createElement("link");if(_.rel=S?"stylesheet":NR,S||(_.as="script"),_.crossOrigin="",_.href=p,d&&_.setAttribute("nonce",d),document.head.appendChild(_),S)return new Promise((O,x)=>{_.addEventListener("load",O),_.addEventListener("error",()=>x(new Error(`Unable to preload CSS for ${p}`)))})}))}function f(m){const d=new Event("vite:preloadError",{cancelable:!0});if(d.payload=m,window.dispatchEvent(d),!d.defaultPrevented)throw m}return c.then(m=>{for(const d of m||[])d.status==="rejected"&&f(d.reason);return i().catch(f)})},BR=()=>Hl(()=>import("./new-DLlBm66g.js"),[]),HR=ia("/new")({beforeLoad:function(){throw Gc({to:"/chat/$sessionKey",params:{sessionKey:"new"},replace:!0})},component:Bl(BR,"component")}),qR=()=>Hl(()=>import("./files-
|
|
81
|
+
`;function zR(){return typeof window<"u"&&(window.location.href="/chat/main"),null}const Ba=vE({notFoundComponent:zR,head:()=>({meta:[{charSet:"utf-8"},{name:"viewport",content:"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, viewport-fit=cover"},{title:"OpenCami"},{name:"description",content:"a fast web client for OpenClaw"},{property:"og:image",content:"/cover.webp"},{property:"og:image:type",content:"image/webp"},{name:"twitter:card",content:"summary_large_image"},{name:"twitter:image",content:"/cover.webp"},{name:"theme-color",content:"#0a0a0a"},{name:"apple-mobile-web-app-capable",content:"yes"},{name:"apple-mobile-web-app-status-bar-style",content:"black-translucent"},{name:"apple-mobile-web-app-title",content:"OpenCami"},{name:"mobile-web-app-capable",content:"yes"}],links:[{rel:"stylesheet",href:OR},{rel:"icon",type:"image/svg+xml",href:"/favicon.svg"},{rel:"apple-touch-icon",href:"/apple-touch-icon-180x180.png"},{rel:"manifest",href:"/manifest.json"}]}),shellComponent:LR,component:UR}),DR=new wR;function UR(){return F.jsx(AR,{client:DR,children:F.jsx(Wp,{})})}function LR({children:a}){return F.jsxs("html",{lang:"en",suppressHydrationWarning:!0,children:[F.jsxs("head",{children:[F.jsx("script",{dangerouslySetInnerHTML:{__html:xR}}),F.jsx("script",{dangerouslySetInnerHTML:{__html:CR}}),F.jsx("script",{dangerouslySetInnerHTML:{__html:MR}}),F.jsx(DE,{})]}),F.jsxs("body",{children:[F.jsx("div",{className:"root",children:a}),F.jsx(UE,{})]})]})}const NR="modulepreload",jR=function(a){return"/"+a},Jy={},Hl=function(i,s,r){let c=Promise.resolve();if(s&&s.length>0){let y=function(p){return Promise.all(p.map(S=>Promise.resolve(S).then(g=>({status:"fulfilled",value:g}),g=>({status:"rejected",reason:g}))))};document.getElementsByTagName("link");const m=document.querySelector("meta[property=csp-nonce]"),d=m?.nonce||m?.getAttribute("nonce");c=y(s.map(p=>{if(p=jR(p),p in Jy)return;Jy[p]=!0;const S=p.endsWith(".css"),g=S?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${g}`))return;const _=document.createElement("link");if(_.rel=S?"stylesheet":NR,S||(_.as="script"),_.crossOrigin="",_.href=p,d&&_.setAttribute("nonce",d),document.head.appendChild(_),S)return new Promise((O,x)=>{_.addEventListener("load",O),_.addEventListener("error",()=>x(new Error(`Unable to preload CSS for ${p}`)))})}))}function f(m){const d=new Event("vite:preloadError",{cancelable:!0});if(d.payload=m,window.dispatchEvent(d),!d.defaultPrevented)throw m}return c.then(m=>{for(const d of m||[])d.status==="rejected"&&f(d.reason);return i().catch(f)})},BR=()=>Hl(()=>import("./new-DLlBm66g.js"),[]),HR=ia("/new")({beforeLoad:function(){throw Gc({to:"/chat/$sessionKey",params:{sessionKey:"new"},replace:!0})},component:Bl(BR,"component")}),qR=()=>Hl(()=>import("./files-BHXmS1J5.js"),[]),YR=ia("/files")({component:Bl(qR,"component")}),QR=()=>Hl(()=>import("./connect-B8sfEQyb.js"),__vite__mapDeps([0,1,2,3])),GR=ia("/connect")({component:Bl(QR,"component")}),VR=()=>Hl(()=>import("./agents-CGtqdyBi.js"),[]),XR=ia("/agents")({component:Bl(VR,"component")}),KR=()=>Hl(()=>import("./index-BfhiL2JN.js"),[]),ZR=ia("/")({component:Bl(KR,"component")}),PR=()=>Hl(()=>import("./_sessionKey-CaDTbjXx.js").then(a=>a.$),__vite__mapDeps([4,5,2,6,3,7,1])),FR=ia("/chat/$sessionKey")({component:Bl(PR,"component")}),kR=HR.update({id:"/new",path:"/new",getParentRoute:()=>Ba}),JR=YR.update({id:"/files",path:"/files",getParentRoute:()=>Ba}),$R=GR.update({id:"/connect",path:"/connect",getParentRoute:()=>Ba}),WR=XR.update({id:"/agents",path:"/agents",getParentRoute:()=>Ba}),IR=ZR.update({id:"/",path:"/",getParentRoute:()=>Ba}),t2=FR.update({id:"/chat/$sessionKey",path:"/chat/$sessionKey",getParentRoute:()=>Ba}),e2={IndexRoute:IR,AgentsRoute:WR,ConnectRoute:$R,FilesRoute:JR,NewRoute:kR,ChatSessionKeyRoute:t2},n2=Ba._addFileChildren(e2),a2=()=>wE({routeTree:n2,context:{},scrollRestoration:!0,defaultPreloadStaleTime:0});async function l2(){const a=await a2();let i;return i=[],window.__TSS_START_OPTIONS__={serializationAdapters:i},i.push(WE),a.options.serializationAdapters&&i.push(...a.options.serializationAdapters),a.update({basepath:"",serializationAdapters:i}),a.state.matches.length||await NE(a),a}async function i2(){const a=await l2();return window.$_TSR?.h(),a}let Mc;function s2(){return Mc||(Mc=i2()),F.jsx(K_,{promise:Mc,children:a=>F.jsx(ME,{router:a})})}nt.startTransition(()=>{Q0.hydrateRoot(document,F.jsx(nt.StrictMode,{children:F.jsx(s2,{})}))});export{tE as A,kp as L,ZR as R,Vu as S,Hl as _,lE as a,Nl as b,Wc as c,FR as d,ER as e,Fe as f,z0 as g,Pi as h,h2 as i,F as j,iR as k,Nc as l,Xu as m,he as n,aR as o,dR as p,Lc as q,nt as r,f2 as s,lR as t,d2 as u,uv as v,SR as w,rR as x,N0 as y,$_ as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,j as n}from"./main-
|
|
1
|
+
import{r as t,j as n}from"./main-BlX7CS2-.js";function p({controlled:e,default:s,name:c,state:d="value"}){const{current:a}=t.useRef(e!==void 0),[r,o]=t.useState(s),l=a?e:r,i=t.useCallback(u=>{a||o(u)},[]);return[l,i]}function f({className:e}){return n.jsx("div",{className:e,children:n.jsx("span",{className:"text-xl",children:"🦎"})})}function b({className:e}){return n.jsx("span",{className:e,style:{background:"linear-gradient(90deg, #10b981, #14b8a6, #06b6d4, #8b5cf6, #ec4899)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",fontWeight:600},children:"OpenCami"})}export{f as O,b as a,p as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as u}from"./main-
|
|
1
|
+
import{b as u}from"./main-BlX7CS2-.js";const b=t=>{let e;const n=new Set,o=(s,r)=>{const c=typeof s=="function"?s(e):s;if(!Object.is(c,e)){const g=e;e=r??(typeof c!="object"||c===null)?c:Object.assign({},e,c),n.forEach(f=>f(e,g))}},a=()=>e,i={setState:o,getState:a,getInitialState:()=>l,subscribe:s=>(n.add(s),()=>n.delete(s))},l=e=t(o,a,i);return i},d=(t=>t?b(t):b),I=t=>t;function j(t,e=I){const n=u.useSyncExternalStore(t.subscribe,u.useCallback(()=>e(t.getState()),[t,e]),u.useCallback(()=>e(t.getInitialState()),[t,e]));return u.useDebugValue(n),n}const S=t=>{const e=d(t),n=o=>j(e,o);return Object.assign(n,e),n},O=(t=>t?S(t):S);export{O as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{u as A,r as i,c as L,j as e}from"./main-
|
|
1
|
+
import{u as A,r as i,c as L,j as e}from"./main-BlX7CS2-.js";import{H as C,A as K,V as Q,r as M,c as R}from"./button-BcnCTjUT.js";import{D as z,a as $}from"./use-file-explorer-state-C6lX-h0n.js";import{c as D}from"./_sessionKey-CaDTbjXx.js";import"./useButton-DhneLsMA.js";import"./react-ONC2UaeC.js";import"./opencami-logo-5KynvViW.js";import"./index-CxJ4zG_W.js";function V(t){return Array.isArray(t)?t.map(s=>s?.type==="text"&&typeof s.text=="string"?s.text:"").filter(Boolean).join(" "):""}function E(t){const s=V(t.content);return s||(typeof t.text=="string"?t.text:"")}function B({sessions:t,currentFriendlyId:s,currentSessionKey:d}){const h=A(),[o,n]=i.useState(""),[u,f]=i.useState(!1),[y,c]=i.useState([]),N=i.useCallback(p=>{if(!p.trim()||!s||!d)return[];const k=D.history(s,d),v=h.getQueryData(k);if(!v?.messages)return[];const l=p.toLowerCase(),g=[],m=t.find(a=>a.friendlyId===s),I=m?.label||m?.title||m?.derivedTitle||s;return v.messages.forEach((a,b)=>{const w=E(a);if(!w)return;const r=w.toLowerCase().indexOf(l);r!==-1&&g.push({sessionKey:d,friendlyId:s,sessionTitle:I,messageIndex:b,messageRole:a.role||"unknown",messageText:w,matchStart:r,matchEnd:r+p.length,timestamp:a.timestamp})}),g},[s,d,h,t]),j=i.useCallback(async p=>{if(!p.trim())return c([]),[];f(!0);const k=p.toLowerCase(),v=[];try{return await Promise.all(t.map(async l=>{try{const g=D.history(l.friendlyId,l.key);let m=h.getQueryData(g);if(!m){const a=new URLSearchParams({sessionKey:l.key,friendlyId:l.friendlyId,limit:"200"}),b=await fetch(`/api/history?${a.toString()}`);b.ok&&(m=await b.json(),h.setQueryData(g,m))}if(!m?.messages)return;const I=l.label||l.title||l.derivedTitle||l.friendlyId;m.messages.forEach((a,b)=>{const w=E(a);if(!w)return;const r=w.toLowerCase().indexOf(k);r!==-1&&v.push({sessionKey:l.key,friendlyId:l.friendlyId,sessionTitle:I,messageIndex:b,messageRole:a.role||"unknown",messageText:w,matchStart:r,matchEnd:r+p.length,timestamp:a.timestamp})})}catch{}})),v.sort((l,g)=>(g.timestamp||0)-(l.timestamp||0)),c(v),v}finally{f(!1)}},[t,h]),x=i.useCallback(()=>{n(""),c([])},[]);return{query:o,setQuery:n,isSearching:u,globalResults:y,searchCurrentConversation:N,searchAllSessions:j,clearSearch:x}}function H(t,s){if(!s.trim())return null;const d=t.toLowerCase(),h=s.toLowerCase(),o=d.indexOf(h);if(o===-1)return null;const n=40,u=80;let f=Math.max(0,o-n),y=Math.min(t.length,o+s.length+u);if(f>0){const x=t.indexOf(" ",f);x!==-1&&x<o&&(f=x+1)}if(y<t.length){const x=t.lastIndexOf(" ",y);x>o+s.length&&(y=x)}const c=(f>0?"...":"")+t.slice(f,o),N=t.slice(o,o+s.length),j=t.slice(o+s.length,y)+(y<t.length?"...":"");return{before:c,match:N,after:j}}function q({open:t,onOpenChange:s,sessions:d,currentFriendlyId:h,currentSessionKey:o,mode:n,onJumpToMessage:u}){const f=L(),y=i.useRef(null),[c,N]=i.useState(""),[j,x]=i.useState(0),p=i.useRef(null),{isSearching:k,globalResults:v,searchCurrentConversation:l,searchAllSessions:g,clearSearch:m}=B({sessions:d,currentFriendlyId:h,currentSessionKey:o}),I=i.useMemo(()=>n!=="current"?[]:l(c),[n,c,l]),a=n==="global"?v:I;i.useEffect(()=>{if(n!=="global")return;if(!c.trim()){m();return}const r=setTimeout(()=>{g(c)},300);return()=>clearTimeout(r)},[c,n,g,m]),i.useEffect(()=>{t&&(N(""),x(0),m(),setTimeout(()=>{y.current?.focus()},50))},[t,m]),i.useEffect(()=>{x(0)},[a]),i.useEffect(()=>{if(!p.current)return;const r=p.current.querySelector('[data-selected="true"]');r&&r.scrollIntoView({block:"nearest"})},[j]);const b=i.useCallback(r=>{s(!1),n==="current"&&u?u(r):f({to:"/chat/$sessionKey",params:{sessionKey:r.friendlyId}})},[n,f,u,s]),w=i.useCallback(r=>{switch(r.key){case"ArrowDown":r.preventDefault(),x(S=>Math.min(S+1,a.length-1));break;case"ArrowUp":r.preventDefault(),x(S=>Math.max(S-1,0));break;case"Enter":r.preventDefault(),a[j]&&b(a[j]);break;case"Escape":r.preventDefault(),s(!1);break}},[a,j,b,s]),T=n==="global"?"Search across all conversations...":"Search in this conversation...";return e.jsx(z,{open:t,onOpenChange:s,children:e.jsxs($,{className:"w-[min(600px,92vw)] max-h-[80vh] flex flex-col overflow-hidden",children:[e.jsxs("div",{className:"flex items-center gap-3 p-4 border-b border-primary-200",children:[e.jsx(C,{icon:K,size:20,className:"text-primary-500 shrink-0"}),e.jsx("input",{ref:y,type:"text",value:c,onChange:r=>N(r.target.value),onKeyDown:w,placeholder:T,className:"flex-1 bg-transparent text-primary-900 placeholder:text-primary-400 outline-none text-base"}),c&&e.jsx("button",{type:"button",onClick:()=>{N(""),m()},className:"p-1 hover:bg-primary-200 rounded transition-colors",children:e.jsx(C,{icon:Q,size:16,className:"text-primary-500"})}),k&&e.jsx(C,{icon:M,size:20,className:"text-primary-500 animate-spin"})]}),e.jsx("div",{ref:p,className:"flex-1 overflow-y-auto p-2 min-h-0",children:c.trim()?a.length===0&&!k?e.jsxs("div",{className:"text-center text-primary-500 py-8 text-sm",children:['No results found for "',c,'"']}):e.jsx("div",{className:"flex flex-col gap-1",children:a.map((r,S)=>e.jsx(P,{result:r,query:c,isSelected:S===j,showSessionTitle:n==="global",onClick:()=>b(r),onMouseEnter:()=>x(S)},`${r.friendlyId}-${r.messageIndex}`))}):e.jsx("div",{className:"text-center text-primary-500 py-8 text-sm",children:n==="global"?"Type to search across all your conversations":"Type to search within this conversation"})}),e.jsxs("div",{className:"flex items-center justify-between px-4 py-2 border-t border-primary-200 text-xs text-primary-500",children:[e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx("kbd",{className:"px-1.5 py-0.5 bg-primary-100 rounded text-[10px]",children:"↑"}),e.jsx("kbd",{className:"px-1.5 py-0.5 bg-primary-100 rounded text-[10px]",children:"↓"}),"to navigate"]}),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx("kbd",{className:"px-1.5 py-0.5 bg-primary-100 rounded text-[10px]",children:"Enter"}),"to select"]}),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx("kbd",{className:"px-1.5 py-0.5 bg-primary-100 rounded text-[10px]",children:"Esc"}),"to close"]})]}),a.length>0&&e.jsxs("span",{children:[a.length," result",a.length!==1?"s":""]})]})]})})}function P({result:t,query:s,isSelected:d,showSessionTitle:h,onClick:o,onMouseEnter:n}){const u=H(t.messageText,s),f=t.messageRole==="assistant"?"Assistant":"You";return e.jsxs("button",{type:"button",onClick:o,onMouseEnter:n,"data-selected":d,className:R("w-full text-left px-3 py-2 rounded-lg transition-colors",d?"bg-primary-200":"hover:bg-primary-100"),children:[h&&e.jsx("div",{className:"text-xs font-medium text-primary-600 mb-1 truncate",children:t.sessionTitle}),e.jsx("div",{className:"flex items-center gap-2 mb-0.5",children:e.jsx("span",{className:R("text-[10px] font-medium px-1.5 py-0.5 rounded",t.messageRole==="assistant"?"bg-blue-100 text-blue-700":"bg-green-100 text-green-700"),children:f})}),u&&e.jsxs("div",{className:"text-sm text-primary-700 line-clamp-2",children:[e.jsx("span",{children:u.before}),e.jsx("mark",{className:"bg-yellow-200 text-primary-900 rounded px-0.5",children:u.match}),e.jsx("span",{children:u.after})]})]})}export{q as SearchDialog};
|
package/dist/client/assets/{session-export-dialog-Bh3zH4nZ.js → session-export-dialog-DSRWU2YO.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as m,j as e}from"./main-
|
|
1
|
+
import{r as m,j as e}from"./main-BlX7CS2-.js";import{D as x,a as p,b as h,c as u,d as j}from"./use-file-explorer-state-C6lX-h0n.js";import{B as v}from"./button-BcnCTjUT.js";import"./useButton-DhneLsMA.js";import"./react-ONC2UaeC.js";const f=[{value:"markdown",label:"Markdown (.md)",description:"Nicely formatted with headers and sections"},{value:"json",label:"JSON (.json)",description:"Full data with metadata"},{value:"txt",label:"Plain Text (.txt)",description:"Simple text format"}];function C({open:r,onOpenChange:t,sessionTitle:l,onExport:i,onCancel:o}){const[s,n]=m.useState("markdown"),c=()=>{i(s)};return e.jsx(x,{open:r,onOpenChange:t,children:e.jsx(p,{children:e.jsxs("div",{className:"p-4",children:[e.jsx(h,{className:"mb-1",children:"Export Conversation"}),e.jsxs(u,{className:"mb-4",children:['Export "',l,'" in your preferred format']}),e.jsx("div",{className:"space-y-2 mb-4",children:f.map(a=>e.jsxs("label",{className:"flex items-start gap-3 p-3 rounded-lg border border-primary-200 cursor-pointer hover:bg-primary-100 transition-colors",children:[e.jsx("input",{type:"radio",name:"export-format",value:a.value,checked:s===a.value,onChange:d=>n(d.target.value),className:"mt-1"}),e.jsxs("div",{className:"flex-1",children:[e.jsx("div",{className:"font-medium text-sm text-primary-900",children:a.label}),e.jsx("div",{className:"text-xs text-primary-600",children:a.description})]})]},a.value))}),e.jsxs("div",{className:"flex justify-end gap-2",children:[e.jsx(j,{onClick:o,children:"Cancel"}),e.jsx(v,{onClick:c,children:"Export"})]})]})})})}export{C as SessionExportDialog};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as a,j as e}from"./main-BlX7CS2-.js";import{f as Ee,a as ae,b as Oe,a4 as le,a3 as Ke,c as Q,B as ee,H as J,V as De,ac as He,ad as _e,ae as Be,af as We,ag as Fe,s as Ve,ah as Ye,ai as $e,aj as Ue,ak as Ge,al as qe,o as Je,J as he,am as Xe}from"./button-BcnCTjUT.js";import{C as Re,s as Ze,t as fe,A as Qe,v as et,w as me,x as tt,y as nt,z as at,B as ie,E as st,F as it,G as te,H as oe,I as ot,J as rt,K as lt,L as pe,N as re,O as ct,P as dt,V as ut,Q as ht,R as ft,S as mt,T as pt,D as gt,a as xt,b as bt,c as vt,d as ge}from"./use-file-explorer-state-C6lX-h0n.js";import{S as V}from"./switch-dAvZcYA-.js";import{u as yt}from"./opencami-logo-5KynvViW.js";import{ab as jt,R as St,a$ as xe,m as ke,c as Z,e as ce,a as wt,W as Ct,an as be,l as Tt,g as It,d as ve,n as ye,i as Pt,b0 as Et}from"./useButton-DhneLsMA.js";import{u as Rt,a as kt,g as je}from"./_sessionKey-CaDTbjXx.js";import{d as Mt}from"./index-CxJ4zG_W.js";import"./react-ONC2UaeC.js";function Nt(){const[,n]=a.useState({});return a.useCallback(()=>{n({})},[])}function Se(n){const r=jt(n);let d=parseFloat(r.width)||0,f=parseFloat(r.height)||0;const l=St(n),s=l?n.offsetWidth:d,c=l?n.offsetHeight:f;return(xe(d)!==s||xe(f)!==c)&&(d=s,f=c),{width:d,height:f}}const Me=a.createContext(void 0);function ne(){const n=a.useContext(Me);if(n===void 0)throw new Error(Ee(64));return n}let At=(function(n){return n.activationDirection="data-activation-direction",n.orientation="data-orientation",n})({});const de={tabActivationDirection:n=>({[At.activationDirection]:n})},Lt=a.forwardRef(function(r,d){const{className:f,defaultValue:l=0,onValueChange:s,orientation:c="horizontal",render:T,value:E,...v}=r,I=ke(),y=Object.hasOwn(r,"defaultValue"),m=a.useRef([]),[O,z]=a.useState(()=>new Map),[j,S]=yt({controlled:E,default:l,name:"Tabs",state:"value"}),C=E!==void 0,[g,u]=a.useState(()=>new Map),[R,x]=a.useState("none"),b=Z((i,w)=>{s?.(i,w),!w.isCanceled&&(S(i),x(w.activationDirection))}),p=Z((i,w)=>{z(h=>{if(h.get(i)===w)return h;const P=new Map(h);return P.set(i,w),P})}),N=Z((i,w)=>{z(h=>{if(!h.has(i)||h.get(i)!==w)return h;const P=new Map(h);return P.delete(i),P})}),o=a.useCallback(i=>O.get(i),[O]),k=a.useCallback(i=>{for(const w of g.values())if(i===w?.value)return w?.id},[g]),K=a.useCallback(i=>{if(i===void 0)return null;for(const[w,h]of g.entries())if(h!=null&&i===(h.value??h.index))return w;return null},[g]),A=a.useMemo(()=>({direction:I,getTabElementBySelectedValue:K,getTabIdByPanelValue:k,getTabPanelIdByValue:o,onValueChange:b,orientation:c,registerMountedTabPanel:p,setTabMap:u,unregisterMountedTabPanel:N,tabActivationDirection:R,value:j}),[I,K,k,o,b,c,p,u,N,R,j]),M=a.useMemo(()=>{for(const i of g.values())if(i!=null&&i.value===j)return i},[g,j]),L=a.useMemo(()=>{for(const i of g.values())if(i!=null&&!i.disabled)return i.value},[g]);ce(()=>{if(C||g.size===0)return;const i=M?.disabled,w=M==null&&j!==null;if(y&&i&&j===l||!i&&!w)return;const P=L??null;j!==P&&(S(P),x("none"))},[l,L,y,C,M,x,S,g,j]);const B=ae("div",r,{state:{orientation:c,tabActivationDirection:R},ref:d,props:v,stateAttributesMapping:de});return e.jsx(Me.Provider,{value:A,children:e.jsx(Re,{elementsRef:m,children:B})})}),Ne="data-composite-item-active",Ae=a.createContext(void 0);function Le(){const n=a.useContext(Ae);if(n===void 0)throw new Error(Ee(65));return n}const zt=a.forwardRef(function(r,d){const{className:f,disabled:l=!1,render:s,value:c,id:T,nativeButton:E=!0,...v}=r,{value:I,getTabPanelIdByValue:y,orientation:m}=ne(),{activateOnFocus:O,highlightedTabIndex:z,onTabActivation:j,setHighlightedTabIndex:S,tabsListElement:C}=Le(),g=wt(T),u=a.useMemo(()=>({disabled:l,id:g,value:c}),[l,g,c]),{compositeProps:R,compositeRef:x,index:b}=Ze({metadata:u}),p=c===I,N=a.useRef(!1);ce(()=>{if(N.current){N.current=!1;return}if(!(p&&b>-1&&z!==b))return;const h=C;if(h!=null){const P=Ct(be(h));if(P&&Tt(h,P))return}l||S(b)},[p,b,z,S,l,C]);const{getButtonProps:o,buttonRef:k}=It({disabled:l,native:E,focusableWhenDisabled:!0}),K=y(c),A=a.useRef(!1),M=a.useRef(!1);function L(h){p||l||j(c,ve(ye,h.nativeEvent,void 0,{activationDirection:"none"}))}function _(h){p||(b>-1&&!l&&S(b),!l&&O&&(!A.current||A.current&&M.current)&&j(c,ve(ye,h.nativeEvent,void 0,{activationDirection:"none"})))}function B(h){if(p||l)return;A.current=!0;function P(){A.current=!1,M.current=!1}(!h.button||h.button===0)&&(M.current=!0,be(h.currentTarget).addEventListener("pointerup",P,{once:!0}))}const i=a.useMemo(()=>({disabled:l,active:p,orientation:m}),[l,p,m]);return ae("button",r,{state:i,ref:[d,k,x],props:[R,{role:"tab","aria-controls":K,"aria-selected":p,id:g,onClick:L,onFocus:_,onPointerDown:B,[Ne]:p?"":void 0,onKeyDownCapture(){N.current=!0}},v,o]})}),Ot='!function(){const t=document.currentScript.previousElementSibling;if(!t)return;const e=t.closest(\'[role="tablist"]\');if(!e)return;const i=e.querySelector("[data-active]");if(!i)return;if(0===i.offsetWidth||0===e.offsetWidth)return;let o=0,n=0,h=0,l=0,r=0,f=0;function s(t){const e=getComputedStyle(t);let i=parseFloat(e.width)||0,o=parseFloat(e.height)||0;return(Math.round(i)!==t.offsetWidth||Math.round(o)!==t.offsetHeight)&&(i=t.offsetWidth,o=t.offsetHeight),{width:i,height:o}}if(null!=i&&null!=e){const{width:t,height:c}=s(i),{width:u,height:d}=s(e),a=i.getBoundingClientRect(),g=e.getBoundingClientRect(),p=u>0?g.width/u:1,b=d>0?g.height/d:1;if(Math.abs(p)>Number.EPSILON&&Math.abs(b)>Number.EPSILON){const t=a.left-g.left,i=a.top-g.top;o=t/p+e.scrollLeft-e.clientLeft,h=i/b+e.scrollTop-e.clientTop}else o=i.offsetLeft,h=i.offsetTop;r=t,f=c,n=e.scrollWidth-o-r,l=e.scrollHeight-h-f}function c(e,i){t.style.setProperty(`--active-tab-${e}`,`${i}px`)}c("left",o),c("right",n),c("top",h),c("bottom",l),c("width",r),c("height",f),r>0&&f>0&&t.removeAttribute("hidden")}();';let X=(function(n){return n.activeTabLeft="--active-tab-left",n.activeTabRight="--active-tab-right",n.activeTabTop="--active-tab-top",n.activeTabBottom="--active-tab-bottom",n.activeTabWidth="--active-tab-width",n.activeTabHeight="--active-tab-height",n})({});const Kt={...de,activeTabPosition:()=>null,activeTabSize:()=>null},Dt=a.forwardRef(function(r,d){const{className:f,render:l,renderBeforeHydration:s=!1,...c}=r,{nonce:T}=Rt(),{getTabElementBySelectedValue:E,orientation:v,tabActivationDirection:I,value:y}=ne(),{tabsListElement:m}=Le(),[O,z]=a.useState(!1),{value:j}=ne();Pt(()=>z(!0));const S=Nt();a.useEffect(()=>{if(y!=null&&m!=null&&typeof ResizeObserver<"u"){const L=new ResizeObserver(S);return L.observe(m),()=>{L.disconnect()}}},[y,m,S]);let C=0,g=0,u=0,R=0,x=0,b=0,p=!1;if(y!=null&&m!=null){const L=E(y);if(p=!0,L!=null){const{width:_,height:B}=Se(L),{width:i,height:w}=Se(m),h=L.getBoundingClientRect(),P=m.getBoundingClientRect(),Y=i>0?P.width/i:1,G=w>0?P.height/w:1;if(Math.abs(Y)>Number.EPSILON&&Math.abs(G)>Number.EPSILON){const W=h.left-P.left,U=h.top-P.top;C=W/Y+m.scrollLeft-m.clientLeft,u=U/G+m.scrollTop-m.clientTop}else C=L.offsetLeft,u=L.offsetTop;x=_,b=B,g=m.scrollWidth-C-x,R=m.scrollHeight-u-b}}const N=a.useMemo(()=>p?{left:C,right:g,top:u,bottom:R}:null,[C,g,u,R,p]),o=a.useMemo(()=>p?{width:x,height:b}:null,[x,b,p]),k=a.useMemo(()=>{if(p)return{[X.activeTabLeft]:`${C}px`,[X.activeTabRight]:`${g}px`,[X.activeTabTop]:`${u}px`,[X.activeTabBottom]:`${R}px`,[X.activeTabWidth]:`${x}px`,[X.activeTabHeight]:`${b}px`}},[C,g,u,R,x,b,p]),K=p&&x>0&&b>0,A=a.useMemo(()=>({orientation:v,activeTabPosition:N,activeTabSize:o,tabActivationDirection:I}),[v,N,o,I]),M=ae("span",r,{state:A,ref:d,props:[{role:"presentation",style:k,hidden:!K},c,{suppressHydrationWarning:!0}],stateAttributesMapping:Kt});return j==null?null:e.jsxs(a.Fragment,{children:[M,!O&&s&&e.jsx("script",{nonce:T,dangerouslySetInnerHTML:{__html:Ot},suppressHydrationWarning:!0})]})});function Ht(n){return n==null||n.hasAttribute("disabled")||n.getAttribute("aria-disabled")==="true"}const _t=[];function Bt(n){const{itemSizes:r,cols:d=1,loopFocus:f=!0,dense:l=!1,orientation:s="both",direction:c,highlightedIndex:T,onHighlightedIndexChange:E,rootRef:v,enableHomeAndEndKeys:I=!1,stopEventPropagation:y=!1,disabledIndices:m,modifierKeys:O=_t}=n,[z,j]=a.useState(0),S=d>1,C=a.useRef(null),g=Oe(C,v),u=a.useRef([]),R=a.useRef(!1),x=T??z,b=Z((o,k=!1)=>{if((E??j)(o),k){const K=u.current[o];fe(C.current,K,c,s)}}),p=Z(o=>{if(o.size===0||R.current)return;R.current=!0;const k=Array.from(o.keys()),K=k.find(M=>M?.hasAttribute(Ne))??null,A=K?k.indexOf(K):-1;A!==-1&&b(A),fe(C.current,K,c,s)}),N=a.useMemo(()=>({"aria-orientation":s==="both"?void 0:s,ref:g,onFocus(o){!C.current||!me(o.target)||o.target.setSelectionRange(0,o.target.value.length??0)},onKeyDown(o){const k=I?Qe:et;if(!k.has(o.key)||Wt(o,O)||!C.current)return;const A=c==="rtl",M=A?pe:oe,L={horizontal:M,vertical:te,both:M}[s],_=A?oe:pe,B={horizontal:_,vertical:re,both:_}[s];if(me(o.target)&&!Ht(o.target)){const F=o.target.selectionStart,W=o.target.selectionEnd,U=o.target.value??"";if(F==null||o.shiftKey||F!==W||o.key!==B&&F<U.length||o.key!==L&&F>0)return}let i=x;const w=tt(u,m),h=nt(u,m);if(S){const F=r||Array.from({length:u.current.length},()=>({width:1,height:1})),W=at(F,d,l),U=W.findIndex(t=>t!=null&&!ie(u,t,m)),se=W.reduce((t,H,q)=>H!=null&&!ie(u,H,m)?q:t,-1);i=W[st({current:W.map(t=>t?u.current[t]:null)},{event:o,orientation:s,loopFocus:f,cols:d,disabledIndices:ot([...m||u.current.map((t,H)=>ie(u,H)?H:void 0),void 0],W),minIndex:U,maxIndex:se,prevIndex:it(x>h?w:x,F,W,d,o.key===te?"bl":o.key===oe?"tr":"tl"),rtl:A})]}const P={horizontal:[M],vertical:[te],both:[M,te]}[s],Y={horizontal:[_],vertical:[re],both:[_,re]}[s],G=S?k:{horizontal:I?ft:mt,vertical:I?ut:ht,both:k}[s];I&&(o.key===rt?i=w:o.key===lt&&(i=h)),i===x&&(P.includes(o.key)||Y.includes(o.key))&&(f&&i===h&&P.includes(o.key)?i=w:f&&i===w&&Y.includes(o.key)?i=h:i=ct(u,{startingIndex:i,decrement:Y.includes(o.key),disabledIndices:m})),i!==x&&!dt(u,i)&&(y&&o.stopPropagation(),G.has(o.key)&&o.preventDefault(),b(i,!0),queueMicrotask(()=>{u.current[i]?.focus()}))}}),[d,l,c,m,u,I,x,S,r,f,g,O,b,s,y]);return a.useMemo(()=>({props:N,highlightedIndex:x,onHighlightedIndexChange:b,elementsRef:u,disabledIndices:m,onMapChange:p,relayKeyboardEvent:N.onKeyDown}),[N,x,b,u,m,p])}function Wt(n,r){for(const d of pt.values())if(!r.includes(d)&&n.getModifierState(d))return!0;return!1}function Ft(n){const{render:r,className:d,refs:f=le,props:l=le,state:s=Ke,stateAttributesMapping:c,highlightedIndex:T,onHighlightedIndexChange:E,orientation:v,dense:I,itemSizes:y,loopFocus:m,cols:O,enableHomeAndEndKeys:z,onMapChange:j,stopEventPropagation:S=!0,rootRef:C,disabledIndices:g,modifierKeys:u,highlightItemOnHover:R=!1,tag:x="div",...b}=n,p=ke(),{props:N,highlightedIndex:o,onHighlightedIndexChange:k,elementsRef:K,onMapChange:A,relayKeyboardEvent:M}=Bt({itemSizes:y,cols:O,loopFocus:m,dense:I,orientation:v,highlightedIndex:T,onHighlightedIndexChange:E,rootRef:C,stopEventPropagation:S,enableHomeAndEndKeys:z,direction:p,disabledIndices:g,modifierKeys:u}),L=ae(x,n,{state:s,ref:f,props:[N,...l,b],stateAttributesMapping:c}),_=a.useMemo(()=>({highlightedIndex:o,onHighlightedIndexChange:k,highlightItemOnHover:R,relayKeyboardEvent:M}),[o,k,R,M]);return e.jsx(Et.Provider,{value:_,children:e.jsx(Re,{elementsRef:K,onMapChange:B=>{j?.(B),A(B)},children:L})})}const Vt=a.forwardRef(function(r,d){const{activateOnFocus:f=!1,className:l,loopFocus:s=!0,render:c,...T}=r,{getTabElementBySelectedValue:E,onValueChange:v,orientation:I,value:y,setTabMap:m,tabActivationDirection:O}=ne(),[z,j]=a.useState(0),[S,C]=a.useState(null),g=Yt(y,I,S,E),u=Z((p,N)=>{if(p!==y){const o=g(p);N.activationDirection=o,v(p,N)}}),R=a.useMemo(()=>({orientation:I,tabActivationDirection:O}),[I,O]),x={"aria-orientation":I==="vertical"?"vertical":void 0,role:"tablist"},b=a.useMemo(()=>({activateOnFocus:f,highlightedTabIndex:z,onTabActivation:u,setHighlightedTabIndex:j,tabsListElement:S,value:y}),[f,z,u,j,S,y]);return e.jsx(Ae.Provider,{value:b,children:e.jsx(Ft,{render:c,className:l,state:R,refs:[d,C],props:[x,T],stateAttributesMapping:de,highlightedIndex:z,enableHomeAndEndKeys:!0,loopFocus:s,orientation:I,onHighlightedIndexChange:j,onMapChange:m,disabledIndices:le})})});function we(n,r){const{left:d,top:f}=n.getBoundingClientRect(),{left:l,top:s}=r.getBoundingClientRect(),c=d-l,T=f-s;return{left:c,top:T}}function Yt(n,r,d,f){const[l,s]=a.useState(null);return ce(()=>{if(n==null||d==null){s(null);return}const c=f(n);if(c==null){s(null);return}const{left:T,top:E}=we(c,d);s(r==="horizontal"?T:E)},[r,f,d,n]),a.useCallback(c=>{if(c===n)return"none";if(c==null)return s(null),"none";if(c!=null&&d!=null){const T=f(c);if(T!=null){const{left:E,top:v}=we(T,d);if(l==null)return s(r==="horizontal"?E:v),"none";if(r==="horizontal"){if(E<l)return s(E),"left";if(E>l)return s(E),"right"}else{if(v<l)return s(v),"up";if(v>l)return s(v),"down"}}}return"none"},[f,r,l,d,n])}function Ce({className:n,...r}){return e.jsx(Lt,{className:Q("flex flex-col gap-2 data-[orientation=vertical]:flex-row",n),"data-slot":"tabs",...r})}function Te({variant:n="default",className:r,children:d,...f}){return e.jsxs(Vt,{className:Q("relative z-0 flex w-fit items-center justify-center gap-x-0.5 text-primary-600","data-[orientation=vertical]:flex-col",n==="default"?"p-0.5 text-primary-600/80":"data-[orientation=vertical]:px-1 data-[orientation=horizontal]:py-1",r),"data-slot":"tabs-list",...f,children:[d,e.jsx(Dt,{className:Q("-translate-y-(--active-tab-bottom) absolute bottom-0 left-0 h-(--active-tab-height) w-(--active-tab-width) translate-x-(--active-tab-left) transition-[width,translate] duration-200 ease-in-out",n==="underline"?"data-[orientation=vertical]:-translate-x-px z-10 bg-primary-900 data-[orientation=horizontal]:h-0.5 data-[orientation=vertical]:w-0.5 data-[orientation=horizontal]:translate-y-px":"z-0 rounded-md bg-primary-200"),"data-slot":"tab-indicator"})]})}function Ie({className:n,...r}){return e.jsx(zt,{className:Q('[&_svg]:-mx-0.5 relative z-10 flex h-8 shrink-0 grow cursor-pointer items-center justify-center gap-1.5 whitespace-nowrap rounded-md px-3 text-sm font-medium outline-none transition-[color,background-color,box-shadow] hover:text-primary-900 focus-visible:ring-2 focus-visible:ring-primary-400 data-disabled:pointer-events-none data-[orientation=vertical]:w-full data-[orientation=vertical]:justify-start data-active:text-primary-900 data-disabled:opacity-64 [&_svg:not([class*="size-"])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0',n),"data-slot":"tabs-tab",...r})}function $({title:n,tabId:r,activeTab:d,children:f}){const l=r&&d&&r!==d;return e.jsxs("div",{className:Q("border-b border-primary-200 py-4 last:border-0",l&&"md:hidden"),children:[e.jsx("h3",{className:"mb-3 text-sm font-medium text-primary-900",children:n}),e.jsx("div",{className:"space-y-3",children:f})]})}function D({label:n,description:r,children:d}){return e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex-1 select-none",children:[e.jsx("div",{className:"text-sm text-primary-800",children:n}),r&&e.jsx("div",{className:"text-xs text-primary-500",children:r})]}),e.jsx("div",{className:"flex items-center gap-2",children:d})]})}const ze=[{value:"14px",label:"S"},{value:"16px",label:"M"},{value:"18px",label:"L"},{value:"20px",label:"XL"}];function Pe(n){return ze.some(r=>r.value===n)}function tn({open:n,onOpenChange:r,onClose:d}){const{settings:f,updateSettings:l}=Mt(),{settings:s,updateSettings:c,status:T,testApiKey:E}=kt(),[v,I]=a.useState("appearance"),[y,m]=a.useState(s.llmApiKey),[O,z]=a.useState(!1),[j,S]=a.useState(null),[C,g]=a.useState(()=>{if(typeof window>"u")return"16px";try{const t=localStorage.getItem("opencami-text-size");if(t&&Pe(t))return t}catch{}return"16px"}),[u,R]=a.useState(()=>{if(typeof window>"u")return!0;try{const t=localStorage.getItem("opencami-tts-enabled");return t===null?!0:t==="true"}catch{return!0}}),[x,b]=a.useState(()=>{if(typeof window>"u")return"auto";try{return localStorage.getItem("opencami-tts-provider")||"auto"}catch{return"auto"}}),[p,N]=a.useState(()=>{if(typeof window>"u")return"nova";try{return localStorage.getItem("opencami-tts-voice")||"nova"}catch{return"nova"}}),[o,k]=a.useState(()=>{if(typeof window>"u")return"auto";try{return localStorage.getItem("opencami-stt-provider")||"auto"}catch{return"auto"}}),K=t=>{b(t);try{localStorage.setItem("opencami-tts-provider",t)}catch{}},A=t=>{N(t);try{localStorage.setItem("opencami-tts-voice",t)}catch{}},M=t=>{k(t);try{localStorage.setItem("opencami-stt-provider",t)}catch{}};function L(t){typeof document>"u"||document.documentElement.style.setProperty("--opencami-text-size",t)}const _=t=>{if(Pe(t)){g(t),L(t);try{localStorage.setItem("opencami-text-size",t)}catch{}}},B=t=>{R(t);try{localStorage.setItem("opencami-tts-enabled",String(t))}catch{}window.dispatchEvent(new StorageEvent("storage",{key:"opencami-tts-enabled",newValue:String(t)}))},[i,w]=a.useState(!1),[h,P]=a.useState(()=>{if(typeof window>"u")return!0;try{const t=localStorage.getItem("opencami-personas-enabled");return t===null?!0:t==="true"}catch{return!0}});a.useEffect(()=>{let t=!0;async function H(){try{const q=await fetch("/api/personas");if(!q.ok)return;const ue=await q.json();t&&ue.ok&&w(ue.available)}catch{}}return H(),()=>{t=!1}},[]);const Y=t=>{P(t);try{localStorage.setItem("opencami-personas-enabled",String(t))}catch{}window.dispatchEvent(new StorageEvent("storage",{key:"opencami-personas-enabled",newValue:String(t)}))},G=async()=>{if(y.trim()){z(!0),S(null);try{const t=await E(y.trim());S(t),t.valid&&c({llmApiKey:y.trim()})}finally{z(!1)}}},F=()=>{c({llmApiKey:y.trim()}),S(null)},W=()=>{m(""),c({llmApiKey:""}),S(null)},U=[{value:"system",label:"System",icon:$e},{value:"light",label:"Light",icon:Ue},{value:"dark",label:"Dark",icon:Ge},{value:"chameleon",label:"Chameleon",icon:qe}];function se(t){if(typeof document>"u")return;const H=document.documentElement,q=window.matchMedia("(prefers-color-scheme: dark)");H.classList.remove("light","dark","system","chameleon"),H.classList.add(t),t==="system"&&q.matches&&H.classList.add("dark")}return e.jsx(gt,{open:n,onOpenChange:r,children:e.jsx(xt,{className:"w-[min(720px,92vw)] max-h-[80vh] overflow-hidden",children:e.jsxs("div",{className:"p-4",children:[e.jsxs("div",{className:"flex items-start justify-between",children:[e.jsxs("div",{children:[e.jsx(bt,{className:"mb-1",children:"Settings"}),e.jsx(vt,{className:"hidden",children:"Configure OpenCami"})]}),e.jsx(ge,{render:e.jsx(ee,{size:"icon-sm",variant:"ghost",className:"text-primary-500 hover:bg-primary-100 hover:text-primary-700","aria-label":"Close",children:e.jsx(J,{icon:De,size:20,strokeWidth:1.5})})})]}),e.jsxs("div",{className:"mt-3 flex md:flex-row flex-col md:gap-4 gap-0 md:min-h-[400px]",children:[e.jsx("nav",{className:"hidden md:flex flex-col gap-0.5 min-w-[160px] border-r border-primary-200 pr-3",children:[{id:"connection",label:"Connection",icon:He},{id:"appearance",label:"Appearance",icon:_e},{id:"chat",label:"Chat",icon:Be},{id:"personas",label:"Personas",icon:We},{id:"voice",label:"Voice",icon:Fe},{id:"llm",label:"LLM Features",icon:Ve},{id:"about",label:"About",icon:Ye}].map(t=>e.jsxs("button",{onClick:()=>I(t.id),className:Q("flex items-center gap-2 px-2.5 py-1.5 rounded-md text-sm text-left transition-colors",v===t.id?"bg-primary-100 text-primary-900 font-medium":"text-primary-600 hover:text-primary-900 hover:bg-primary-50"),children:[e.jsx(J,{icon:t.icon,size:16,strokeWidth:1.5}),t.label]},t.id))}),e.jsxs("div",{className:"flex-1 overflow-y-auto md:max-h-[calc(80vh-100px)] max-h-none",children:[e.jsx($,{title:"Connection",tabId:"connection",activeTab:v,children:e.jsx(D,{label:"Status",children:e.jsxs("span",{className:"flex items-center gap-1.5 text-sm text-green-600",children:[e.jsx("span",{className:"size-2 rounded-full bg-green-500"}),"Connected"]})})}),e.jsxs($,{title:"Appearance",tabId:"appearance",activeTab:v,children:[e.jsx(D,{label:"Theme",children:e.jsx(Ce,{value:f.theme,onValueChange:t=>{const H=t;se(H),l({theme:H})},children:e.jsx(Te,{variant:"default",className:"gap-2 *:data-[slot=tab-indicator]:duration-0",children:U.map(t=>e.jsxs(Ie,{value:t.value,children:[e.jsx(J,{icon:t.icon,size:20,strokeWidth:1.5}),e.jsx("span",{children:t.label})]},t.value))})})}),e.jsx(D,{label:"Text Size",description:"Adjust chat and composer text",children:e.jsx(Ce,{value:C,onValueChange:_,children:e.jsx(Te,{variant:"default",className:"gap-2 *:data-[slot=tab-indicator]:duration-0",children:ze.map(t=>e.jsx(Ie,{value:t.value,children:e.jsx("span",{className:"tabular-nums text-xs",children:t.label})},t.value))})})})]}),e.jsxs($,{title:"Chat",tabId:"chat",activeTab:v,children:[e.jsx(D,{label:"Show tool messages",children:e.jsx(V,{checked:f.showToolMessages,onCheckedChange:t=>l({showToolMessages:t})})}),e.jsx(D,{label:"Show reasoning blocks",children:e.jsx(V,{checked:f.showReasoningBlocks,onCheckedChange:t=>l({showReasoningBlocks:t})})}),e.jsx(D,{label:"Show search sources",children:e.jsx(V,{checked:f.showSearchSources,onCheckedChange:t=>l({showSearchSources:t})})}),e.jsx(D,{label:"Agent Manager (Beta)",description:"Show Agent Manager in sidebar for creating and managing agents",children:e.jsx(V,{checked:(()=>{try{return localStorage.getItem("opencami-agent-manager")==="true"}catch{return!1}})(),onCheckedChange:t=>{localStorage.setItem("opencami-agent-manager",String(t)),window.location.reload()}})}),e.jsx(D,{label:"Inline File Preview",description:"Make file paths in messages clickable to preview file contents",children:e.jsx(V,{checked:f.inlineFilePreview,onCheckedChange:t=>l({inlineFilePreview:t})})})]}),e.jsxs($,{title:"Personas",tabId:"personas",activeTab:v,children:[i?e.jsx(D,{label:"Persona Picker",description:"Show persona picker in chat (20 personalities)",children:e.jsx(V,{checked:h,onCheckedChange:Y})}):e.jsx(D,{label:"Persona Picker",description:"Install the Personas skill to unlock 20 AI personalities",children:e.jsx(V,{checked:!1,disabled:!0})}),!i&&e.jsx("div",{className:"pt-1",children:e.jsx("a",{href:"https://www.clawhub.ai/robbyczgw-cla/personas",target:"_blank",rel:"noopener noreferrer",className:"text-xs text-primary-600 hover:text-primary-900 hover:underline",children:"Get it on ClawHub →"})})]}),e.jsxs($,{title:"Text-to-Speech",tabId:"voice",activeTab:v,children:[e.jsx(D,{label:"Voice Playback",description:"Add a 🔊 button to AI messages for text-to-speech",children:e.jsx(V,{checked:u,onCheckedChange:B})}),e.jsx(D,{label:"TTS Provider",description:"Choose which service generates speech",children:e.jsxs("select",{value:x,onChange:t=>K(t.target.value),className:"rounded-md border border-primary-200 bg-surface px-2 py-1 text-sm focus:outline-none focus:ring-2 focus:ring-primary-500",children:[e.jsx("option",{value:"auto",children:"Auto"}),e.jsx("option",{value:"elevenlabs",children:"ElevenLabs"}),e.jsx("option",{value:"openai",children:"OpenAI"}),e.jsx("option",{value:"edge",children:"Edge TTS (free)"})]})}),x==="openai"&&e.jsx(D,{label:"Voice",description:"OpenAI voice selection",children:e.jsx("select",{value:p,onChange:t=>A(t.target.value),className:"rounded-md border border-primary-200 bg-surface px-2 py-1 text-sm focus:outline-none focus:ring-2 focus:ring-primary-500",children:["alloy","echo","fable","onyx","nova","shimmer"].map(t=>e.jsx("option",{value:t,children:t.charAt(0).toUpperCase()+t.slice(1)},t))})})]}),e.jsx($,{title:"Speech-to-Text",tabId:"voice",activeTab:v,children:e.jsx(D,{label:"STT Provider",description:"Choose which service transcribes your voice",children:e.jsxs("select",{value:o,onChange:t=>M(t.target.value),className:"rounded-md border border-primary-200 bg-surface px-2 py-1 text-sm focus:outline-none focus:ring-2 focus:ring-primary-500",children:[e.jsx("option",{value:"auto",children:"Auto"}),e.jsx("option",{value:"elevenlabs",children:"ElevenLabs"}),e.jsx("option",{value:"openai",children:"OpenAI"}),e.jsx("option",{value:"browser",children:"Browser (free)"})]})})}),e.jsxs($,{title:"LLM Features",tabId:"llm",activeTab:v,children:[e.jsxs("div",{className:"text-xs text-primary-500 mb-3",children:["Enhance session titles and follow-up suggestions using an LLM provider.",T.hasEnvKey&&s.llmProvider==="openai"&&e.jsx("span",{className:"block mt-1 text-green-600",children:"✓ Server has OPENAI_API_KEY configured"}),T.hasOpenRouterKey&&s.llmProvider==="openrouter"&&e.jsx("span",{className:"block mt-1 text-green-600",children:"✓ Server has OPENROUTER_API_KEY configured"})]}),e.jsx(D,{label:"Provider",description:"Choose LLM provider for titles & follow-ups",children:e.jsxs("select",{value:s.llmProvider,onChange:t=>{const H=t.target.value;c({llmProvider:H,llmBaseUrl:"",llmModel:""})},className:"px-2 py-1 text-sm rounded-md border border-primary-200 bg-surface focus:outline-none focus:ring-2 focus:ring-primary-500",children:[e.jsx("option",{value:"openai",children:"OpenAI"}),e.jsx("option",{value:"openrouter",children:"OpenRouter"}),e.jsx("option",{value:"ollama",children:"Ollama (local)"}),e.jsx("option",{value:"custom",children:"Custom"})]})}),e.jsx(D,{label:"Smart session titles",description:"Generate concise titles using AI",children:e.jsx(V,{checked:s.useLlmTitles,onCheckedChange:t=>c({useLlmTitles:t}),disabled:!T.isAvailable})}),e.jsx(D,{label:"Smart follow-up suggestions",description:"AI-generated contextual follow-ups",children:e.jsx(V,{checked:s.useLlmFollowUps,onCheckedChange:t=>c({useLlmFollowUps:t}),disabled:!T.isAvailable})}),e.jsxs("div",{className:"mt-2 space-y-2",children:[e.jsxs("div",{children:[e.jsx("div",{className:"text-xs text-primary-500 mb-1",children:"Model"}),e.jsx("input",{type:"text",value:s.llmModel,onChange:t=>c({llmModel:t.target.value}),placeholder:je(s.llmProvider).model||"model-name",className:"w-full px-3 py-1.5 text-sm rounded-md border border-primary-200 bg-surface focus:outline-none focus:ring-2 focus:ring-primary-500"})]}),(s.llmProvider==="custom"||s.llmProvider==="ollama")&&e.jsxs("div",{children:[e.jsx("div",{className:"text-xs text-primary-500 mb-1",children:"Base URL"}),e.jsx("input",{type:"text",value:s.llmBaseUrl,onChange:t=>c({llmBaseUrl:t.target.value}),placeholder:je(s.llmProvider).baseUrl||"https://...",className:"w-full px-3 py-1.5 text-sm rounded-md border border-primary-200 bg-surface focus:outline-none focus:ring-2 focus:ring-primary-500"})]})]}),e.jsxs("div",{className:"mt-4 pt-3 border-t border-primary-100",children:[e.jsx("div",{className:"text-sm text-primary-800 mb-2",children:s.llmProvider==="ollama"?"API Key (optional)":"API Key"}),e.jsx("div",{className:"text-xs text-primary-500 mb-2",children:s.llmProvider==="ollama"?"Not required for local Ollama":T.hasEnvKey&&s.llmProvider==="openai"?"Optional: Override server key with your own":`Required for ${s.llmProvider==="openrouter"?"OpenRouter":"LLM features"} (stored locally)`}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx("input",{type:"password",value:y,onChange:t=>{m(t.target.value),S(null)},placeholder:"sk-...",className:"flex-1 px-3 py-1.5 text-sm rounded-md border border-primary-200 bg-surface focus:outline-none focus:ring-2 focus:ring-primary-500"}),e.jsx(ee,{size:"sm",variant:"outline",onClick:G,disabled:!y.trim()||O,className:"min-w-[60px]",children:O?e.jsx(J,{icon:Je,size:16,className:"animate-spin"}):"Test"})]}),j&&e.jsxs("div",{className:`mt-2 flex items-center gap-1.5 text-xs ${j.valid?"text-green-600":"text-red-600"}`,children:[e.jsx(J,{icon:j.valid?he:Xe,size:14}),j.valid?"API key is valid":j.error||"Invalid API key"]}),s.llmApiKey&&e.jsxs("div",{className:"mt-2 flex items-center justify-between",children:[e.jsxs("span",{className:"text-xs text-green-600 flex items-center gap-1",children:[e.jsx(J,{icon:he,size:14}),"Key saved"]}),e.jsx(ee,{size:"sm",variant:"ghost",onClick:W,className:"text-xs text-red-600 hover:text-red-700 hover:bg-red-50",children:"Clear"})]}),y&&y!==s.llmApiKey&&!j?.valid&&e.jsx(ee,{size:"sm",variant:"outline",onClick:F,className:"mt-2 w-full",children:"Save without testing"})]})]}),e.jsxs($,{title:"About",tabId:"about",activeTab:v,children:[e.jsx("div",{className:"text-sm text-primary-800",children:"OpenCami"}),e.jsxs("div",{className:"flex gap-4 pt-2",children:[e.jsx("a",{href:"https://github.com/robbyczgw-cla/opencami",target:"_blank",rel:"noopener noreferrer",className:"text-sm text-primary-600 hover:text-primary-900 hover:underline",children:"GitHub"}),e.jsx("a",{href:"https://docs.openclaw.ai",target:"_blank",rel:"noopener noreferrer",className:"text-sm text-primary-600 hover:text-primary-900 hover:underline",children:"OpenClaw docs"})]})]})]})]}),e.jsx("div",{className:"mt-4 flex justify-end",children:e.jsx(ge,{onClick:d,children:"Close"})})]})})})}export{tn as SettingsDialog};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import"https://fonts.googleapis.com/css2?family=EB+Garamond:opsz,wght@8..120,400..800&family=JetBrains+Mono:wght@400;500&display=swap";@layer components;@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial}}}@layer theme{:root,:host{--font-sans:-apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue",sans-serif;--font-mono:"JetBrains Mono",monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-100:oklch(93.6% .032 17.717);--color-red-200:oklch(88.5% .062 18.334);--color-red-300:oklch(80.8% .114 19.571);--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-red-700:oklch(50.5% .213 27.518);--color-red-800:oklch(44.4% .177 26.899);--color-red-900:oklch(39.6% .141 25.723);--color-amber-50:oklch(98.7% .022 95.277);--color-amber-400:oklch(82.8% .189 84.429);--color-amber-500:oklch(76.9% .188 70.08);--color-amber-600:oklch(66.6% .179 58.318);--color-yellow-200:oklch(94.5% .129 101.54);--color-yellow-400:oklch(85.2% .199 91.936);--color-yellow-500:oklch(79.5% .184 86.047);--color-yellow-600:oklch(68.1% .162 75.834);--color-green-50:oklch(98.2% .018 155.826);--color-green-100:oklch(96.2% .044 156.743);--color-green-400:oklch(79.2% .209 151.711);--color-green-500:oklch(72.3% .219 149.579);--color-green-600:oklch(62.7% .194 149.214);--color-green-700:oklch(52.7% .154 150.069);--color-emerald-400:oklch(76.5% .177 163.223);--color-emerald-500:oklch(69.6% .17 162.48);--color-emerald-600:oklch(59.6% .145 163.225);--color-cyan-300:oklch(86.5% .127 207.078);--color-cyan-400:oklch(78.9% .154 211.53);--color-cyan-500:oklch(71.5% .143 215.221);--color-blue-100:oklch(93.2% .032 255.585);--color-blue-400:oklch(70.7% .165 254.624);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-blue-700:oklch(48.8% .243 264.376);--color-blue-800:oklch(42.4% .199 265.638);--color-purple-400:oklch(71.4% .203 305.504);--color-purple-500:oklch(62.7% .265 303.9);--color-purple-600:oklch(55.8% .288 302.321);--color-zinc-800:oklch(27.4% .006 286.033);--color-neutral-50:oklch(98.5% 0 0);--color-neutral-100:oklch(97% 0 0);--color-neutral-300:oklch(87% 0 0);--color-neutral-400:oklch(70.8% 0 0);--color-neutral-500:oklch(55.6% 0 0);--color-neutral-700:oklch(37.1% 0 0);--color-neutral-800:oklch(26.9% 0 0);--color-neutral-900:oklch(20.5% 0 0);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-lg:32rem;--container-2xl:42rem;--container-3xl:48rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-3xl:1.875rem;--text-3xl--line-height: 1.2 ;--font-weight-medium:500;--font-weight-semibold:600;--tracking-tight:-.025em;--tracking-wider:.05em;--leading-relaxed:1.625;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--ease-out:cubic-bezier(0,0,.2,1);--ease-in-out:cubic-bezier(.4,0,.2,1);--animate-spin:spin 1s linear infinite;--animate-ping:ping 1s cubic-bezier(0,0,.2,1)infinite;--animate-pulse:pulse 2s cubic-bezier(.4,0,.6,1)infinite;--blur-sm:8px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-surface:var(--color-white);--color-ink:var(--color-black);--color-primary-50:oklch(99.2% .002 80);--color-primary-100:oklch(98.21% 0 89.88);--color-primary-200:oklch(94.61% 0 89.88);--color-primary-300:oklch(95% .004 80);--color-primary-400:oklch(87.5% .005 80);--color-primary-500:oklch(78.5% .006 80);--color-primary-600:oklch(67% .007 80);--color-primary-700:oklch(56% .006 80);--color-primary-800:oklch(45% .005 80);--color-primary-900:oklch(35% .004 80);--color-primary-950:oklch(25% .003 80)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.inset-0{inset:calc(var(--spacing)*0)}.inset-2{inset:calc(var(--spacing)*2)}.inset-y-0{inset-block:calc(var(--spacing)*0)}.-top-1{top:calc(var(--spacing)*-1)}.top-1\/2{top:50%}.top-full{top:100%}.-right-1{right:calc(var(--spacing)*-1)}.right-0{right:calc(var(--spacing)*0)}.right-2{right:calc(var(--spacing)*2)}.right-10{right:calc(var(--spacing)*10)}.bottom-0{bottom:calc(var(--spacing)*0)}.bottom-10{bottom:calc(var(--spacing)*10)}.bottom-full{bottom:100%}.left-0{left:calc(var(--spacing)*0)}.left-1\/2{left:50%}.left-2{left:calc(var(--spacing)*2)}.z-0{z-index:0}.z-10{z-index:10}.z-20{z-index:20}.z-40{z-index:40}.z-50{z-index:50}.col-span-2{grid-column:span 2/span 2}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.-mx-2{margin-inline:calc(var(--spacing)*-2)}.mx-1{margin-inline:calc(var(--spacing)*1)}.mx-auto{margin-inline:auto}.my-1{margin-block:calc(var(--spacing)*1)}.my-3{margin-block:calc(var(--spacing)*3)}.mt-0\.5{margin-top:calc(var(--spacing)*.5)}.mt-1{margin-top:calc(var(--spacing)*1)}.mt-1\.5{margin-top:calc(var(--spacing)*1.5)}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-3{margin-top:calc(var(--spacing)*3)}.mt-4{margin-top:calc(var(--spacing)*4)}.mt-5{margin-top:calc(var(--spacing)*5)}.mt-6{margin-top:calc(var(--spacing)*6)}.mr-1{margin-right:calc(var(--spacing)*1)}.mr-2{margin-right:calc(var(--spacing)*2)}.-mb-4{margin-bottom:calc(var(--spacing)*-4)}.mb-0\.5{margin-bottom:calc(var(--spacing)*.5)}.mb-1{margin-bottom:calc(var(--spacing)*1)}.mb-1\.5{margin-bottom:calc(var(--spacing)*1.5)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-3{margin-bottom:calc(var(--spacing)*3)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.mb-6{margin-bottom:calc(var(--spacing)*6)}.mb-10{margin-bottom:calc(var(--spacing)*10)}.ml-0\.5{margin-left:calc(var(--spacing)*.5)}.ml-1{margin-left:calc(var(--spacing)*1)}.ml-2{margin-left:calc(var(--spacing)*2)}.ml-3{margin-left:calc(var(--spacing)*3)}.ml-4{margin-left:calc(var(--spacing)*4)}.ml-auto{margin-left:auto}.line-clamp-1{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.table{display:table}.aspect-square{aspect-ratio:1}.size-1\.5{width:calc(var(--spacing)*1.5);height:calc(var(--spacing)*1.5)}.size-2{width:calc(var(--spacing)*2);height:calc(var(--spacing)*2)}.size-2\.5{width:calc(var(--spacing)*2.5);height:calc(var(--spacing)*2.5)}.size-3{width:calc(var(--spacing)*3);height:calc(var(--spacing)*3)}.size-4{width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.size-5{width:calc(var(--spacing)*5);height:calc(var(--spacing)*5)}.size-7{width:calc(var(--spacing)*7);height:calc(var(--spacing)*7)}.size-8{width:calc(var(--spacing)*8);height:calc(var(--spacing)*8)}.size-9{width:calc(var(--spacing)*9);height:calc(var(--spacing)*9)}.size-10{width:calc(var(--spacing)*10);height:calc(var(--spacing)*10)}.size-11{width:calc(var(--spacing)*11);height:calc(var(--spacing)*11)}.size-12{width:calc(var(--spacing)*12);height:calc(var(--spacing)*12)}.h-\(--active-tab-height\){height:var(--active-tab-height)}.h-\(--collapsible-panel-height\){height:var(--collapsible-panel-height)}.h-1\.5{height:calc(var(--spacing)*1.5)}.h-2{height:calc(var(--spacing)*2)}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-6{height:calc(var(--spacing)*6)}.h-7{height:calc(var(--spacing)*7)}.h-8{height:calc(var(--spacing)*8)}.h-9{height:calc(var(--spacing)*9)}.h-10{height:calc(var(--spacing)*10)}.h-12{height:calc(var(--spacing)*12)}.h-\[calc\(var\(--thumb-size\)\+2px\)\]{height:calc(var(--thumb-size) + 2px)}.h-auto{height:auto}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-32{max-height:calc(var(--spacing)*32)}.max-h-44{max-height:calc(var(--spacing)*44)}.max-h-56{max-height:calc(var(--spacing)*56)}.max-h-80{max-height:calc(var(--spacing)*80)}.max-h-\[60vh\]{max-height:60vh}.max-h-\[80vh\]{max-height:80vh}.max-h-\[88vh\]{max-height:88vh}.max-h-\[300px\]{max-height:300px}.max-h-\[360px\]{max-height:360px}.max-h-\[calc\(88vh-72px\)\]{max-height:calc(88vh - 72px)}.max-h-none{max-height:none}.min-h-0{min-height:calc(var(--spacing)*0)}.min-h-8{min-height:calc(var(--spacing)*8)}.min-h-\[28px\]{min-height:28px}.min-h-\[36px\]{min-height:36px}.min-h-full{min-height:100%}.min-h-screen{min-height:100vh}.w-\(--active-tab-width\){width:var(--active-tab-width)}.w-1\.5{width:calc(var(--spacing)*1.5)}.w-1\/2{width:50%}.w-2{width:calc(var(--spacing)*2)}.w-4{width:calc(var(--spacing)*4)}.w-5{width:calc(var(--spacing)*5)}.w-6{width:calc(var(--spacing)*6)}.w-7{width:calc(var(--spacing)*7)}.w-8{width:calc(var(--spacing)*8)}.w-12{width:calc(var(--spacing)*12)}.w-16{width:calc(var(--spacing)*16)}.w-20{width:calc(var(--spacing)*20)}.w-\[300px\]{width:300px}.w-\[calc\(var\(--thumb-size\)\*2-2px\)\]{width:calc(var(--thumb-size)*2 - 2px)}.w-\[min\(380px\,90vw\)\]{width:min(380px,90vw)}.w-\[min\(400px\,92vw\)\]{width:min(400px,92vw)}.w-\[min\(420px\,90vw\)\]{width:min(420px,90vw)}.w-\[min\(500px\,92vw\)\]{width:min(500px,92vw)}.w-\[min\(600px\,92vw\)\]{width:min(600px,92vw)}.w-\[min\(720px\,92vw\)\]{width:min(720px,92vw)}.w-\[min\(1000px\,95vw\)\]{width:min(1000px,95vw)}.w-fit{width:fit-content}.w-full{width:100%}.max-w-2xl{max-width:var(--container-2xl)}.max-w-3xl{max-width:var(--container-3xl)}.max-w-\[85\%\]{max-width:85%}.max-w-\[140px\]{max-width:140px}.max-w-\[180px\]{max-width:180px}.max-w-\[200px\]{max-width:200px}.max-w-\[250px\]{max-width:250px}.max-w-\[300px\]{max-width:300px}.max-w-\[900px\]{max-width:900px}.max-w-full{max-width:100%}.max-w-lg{max-width:var(--container-lg)}.min-w-0{min-width:calc(var(--spacing)*0)}.min-w-5{min-width:calc(var(--spacing)*5)}.min-w-\[60px\]{min-width:60px}.min-w-\[80px\]{min-width:80px}.min-w-\[90px\]{min-width:90px}.min-w-\[110px\]{min-width:110px}.min-w-\[140px\]{min-width:140px}.min-w-\[160px\]{min-width:160px}.min-w-\[180px\]{min-width:180px}.min-w-\[190px\]{min-width:190px}.flex-1{flex:1}.flex-shrink-0,.shrink-0{flex-shrink:0}.grow{flex-grow:1}.border-collapse{border-collapse:collapse}.origin-left{transform-origin:0}.origin-top-right{transform-origin:100% 0}.-translate-x-1\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-x-full{--tw-translate-x:-100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-\(--active-tab-left\){--tw-translate-x:var(--active-tab-left);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-0{--tw-translate-x:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-y-\(--active-tab-bottom\){--tw-translate-y:calc(var(--active-tab-bottom)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-y-1\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-0{--tw-translate-y:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-4{--tw-translate-y:calc(var(--spacing)*4);translate:var(--tw-translate-x)var(--tw-translate-y)}.scale-95{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x)var(--tw-scale-y)}.scale-98{--tw-scale-x:98%;--tw-scale-y:98%;--tw-scale-z:98%;scale:var(--tw-scale-x)var(--tw-scale-y)}.scale-100{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x)var(--tw-scale-y)}.rotate-90{rotate:90deg}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.animate-\[shimmer_2s_infinite_linear\]{animation:2s linear infinite shimmer}.animate-\[shimmer_4s_infinite_linear\]{animation:4s linear infinite shimmer}.animate-ping{animation:var(--animate-ping)}.animate-pulse{animation:var(--animate-pulse)}.animate-spin{animation:var(--animate-spin)}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.cursor-text{cursor:text}.cursor-wait{cursor:wait}.touch-manipulation{touch-action:manipulation}.touch-none{touch-action:none}.resize{resize:both}.resize-none{resize:none}.scroll-mt-0{scroll-margin-top:calc(var(--spacing)*0)}.scroll-mt-4{scroll-margin-top:calc(var(--spacing)*4)}.list-decimal{list-style-type:decimal}.list-disc{list-style-type:disc}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-\[auto_1fr\]{grid-template-columns:auto 1fr}.grid-cols-\[auto_1fr_auto_auto\]{grid-template-columns:auto 1fr auto auto}.flex-col{flex-direction:column}.flex-row-reverse{flex-direction:row-reverse}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.gap-0{gap:calc(var(--spacing)*0)}.gap-0\.5{gap:calc(var(--spacing)*.5)}.gap-1{gap:calc(var(--spacing)*1)}.gap-1\.5{gap:calc(var(--spacing)*1.5)}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}.gap-px{gap:1px}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*3)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*3)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*6)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*6)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-10>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*10)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*10)*calc(1 - var(--tw-space-y-reverse)))}.gap-x-0\.5{column-gap:calc(var(--spacing)*.5)}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px*var(--tw-divide-y-reverse));border-bottom-width:calc(1px*calc(1 - var(--tw-divide-y-reverse)))}:where(.divide-primary-100>:not(:last-child)){border-color:var(--color-primary-100)}:where(.divide-primary-200>:not(:last-child)){border-color:var(--color-primary-200)}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-\(--thumb-size\){border-radius:var(--thumb-size)}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-\[12px\]{border-radius:12px}.rounded-\[20px\]{border-radius:20px}.rounded-\[22px\]{border-radius:22px}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-none{border-radius:0}.rounded-sm{border-radius:var(--radius-sm)}.rounded-xl{border-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-l-2{border-left-style:var(--tw-border-style);border-left-width:2px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-none{--tw-border-style:none;border-style:none}.border-current{border-color:currentColor}.border-cyan-500\/10{border-color:#00b7d71a}@supports (color:color-mix(in lab,red,red)){.border-cyan-500\/10{border-color:color-mix(in oklab,var(--color-cyan-500)10%,transparent)}}.border-cyan-500\/20{border-color:#00b7d733}@supports (color:color-mix(in lab,red,red)){.border-cyan-500\/20{border-color:color-mix(in oklab,var(--color-cyan-500)20%,transparent)}}.border-cyan-500\/30{border-color:#00b7d74d}@supports (color:color-mix(in lab,red,red)){.border-cyan-500\/30{border-color:color-mix(in oklab,var(--color-cyan-500)30%,transparent)}}.border-primary-100{border-color:var(--color-primary-100)}.border-primary-200{border-color:var(--color-primary-200)}.border-primary-200\/70{border-color:#edededb3}@supports (color:color-mix(in lab,red,red)){.border-primary-200\/70{border-color:color-mix(in oklab,var(--color-primary-200)70%,transparent)}}.border-primary-200\/80{border-color:#edededcc}@supports (color:color-mix(in lab,red,red)){.border-primary-200\/80{border-color:color-mix(in oklab,var(--color-primary-200)80%,transparent)}}.border-primary-300{border-color:var(--color-primary-300)}.border-primary-400{border-color:var(--color-primary-400)}.border-primary-700{border-color:var(--color-primary-700)}.border-primary-900{border-color:var(--color-primary-900)}.border-red-200{border-color:var(--color-red-200)}.border-red-300{border-color:var(--color-red-300)}.border-transparent{border-color:#0000}.border-white\/10{border-color:#ffffff1a}@supports (color:color-mix(in lab,red,red)){.border-white\/10{border-color:color-mix(in oklab,var(--color-white)10%,transparent)}}.border-t-transparent{border-top-color:#0000}.bg-amber-50{background-color:var(--color-amber-50)}.bg-amber-500\/15{background-color:#f99c0026}@supports (color:color-mix(in lab,red,red)){.bg-amber-500\/15{background-color:color-mix(in oklab,var(--color-amber-500)15%,transparent)}}.bg-black{background-color:var(--color-black)}.bg-black\/40{background-color:#0006}@supports (color:color-mix(in lab,red,red)){.bg-black\/40{background-color:color-mix(in oklab,var(--color-black)40%,transparent)}}.bg-black\/50{background-color:#00000080}@supports (color:color-mix(in lab,red,red)){.bg-black\/50{background-color:color-mix(in oklab,var(--color-black)50%,transparent)}}.bg-blue-100{background-color:var(--color-blue-100)}.bg-blue-500\/10{background-color:#3080ff1a}@supports (color:color-mix(in lab,red,red)){.bg-blue-500\/10{background-color:color-mix(in oklab,var(--color-blue-500)10%,transparent)}}.bg-cyan-500\/5{background-color:#00b7d70d}@supports (color:color-mix(in lab,red,red)){.bg-cyan-500\/5{background-color:color-mix(in oklab,var(--color-cyan-500)5%,transparent)}}.bg-cyan-500\/10{background-color:#00b7d71a}@supports (color:color-mix(in lab,red,red)){.bg-cyan-500\/10{background-color:color-mix(in oklab,var(--color-cyan-500)10%,transparent)}}.bg-cyan-500\/20{background-color:#00b7d733}@supports (color:color-mix(in lab,red,red)){.bg-cyan-500\/20{background-color:color-mix(in oklab,var(--color-cyan-500)20%,transparent)}}.bg-emerald-500{background-color:var(--color-emerald-500)}.bg-green-50{background-color:var(--color-green-50)}.bg-green-100{background-color:var(--color-green-100)}.bg-green-500{background-color:var(--color-green-500)}.bg-green-500\/15{background-color:#00c75826}@supports (color:color-mix(in lab,red,red)){.bg-green-500\/15{background-color:color-mix(in oklab,var(--color-green-500)15%,transparent)}}.bg-ink\/40{background-color:#0006}@supports (color:color-mix(in lab,red,red)){.bg-ink\/40{background-color:color-mix(in oklab,var(--color-ink)40%,transparent)}}.bg-neutral-50{background-color:var(--color-neutral-50)}.bg-neutral-800{background-color:var(--color-neutral-800)}.bg-neutral-900\/95{background-color:#171717f2}@supports (color:color-mix(in lab,red,red)){.bg-neutral-900\/95{background-color:color-mix(in oklab,var(--color-neutral-900)95%,transparent)}}.bg-primary-50{background-color:var(--color-primary-50)}.bg-primary-50\/90{background-color:#fdfcfbe6}@supports (color:color-mix(in lab,red,red)){.bg-primary-50\/90{background-color:color-mix(in oklab,var(--color-primary-50)90%,transparent)}}.bg-primary-100{background-color:var(--color-primary-100)}.bg-primary-100\/70{background-color:#f9f9f9b3}@supports (color:color-mix(in lab,red,red)){.bg-primary-100\/70{background-color:color-mix(in oklab,var(--color-primary-100)70%,transparent)}}.bg-primary-200{background-color:var(--color-primary-200)}.bg-primary-400{background-color:var(--color-primary-400)}.bg-primary-500{background-color:var(--color-primary-500)}.bg-primary-600{background-color:var(--color-primary-600)}.bg-primary-700{background-color:var(--color-primary-700)}.bg-primary-900{background-color:var(--color-primary-900)}.bg-primary-950{background-color:var(--color-primary-950)}.bg-primary-950\/20{background-color:#22212033}@supports (color:color-mix(in lab,red,red)){.bg-primary-950\/20{background-color:color-mix(in oklab,var(--color-primary-950)20%,transparent)}}.bg-purple-500\/10{background-color:#ac4bff1a}@supports (color:color-mix(in lab,red,red)){.bg-purple-500\/10{background-color:color-mix(in oklab,var(--color-purple-500)10%,transparent)}}.bg-red-50{background-color:var(--color-red-50)}.bg-red-100{background-color:var(--color-red-100)}.bg-red-500{background-color:var(--color-red-500)}.bg-red-600{background-color:var(--color-red-600)}.bg-surface{background-color:var(--color-surface)}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-yellow-200{background-color:var(--color-yellow-200)}.bg-yellow-500{background-color:var(--color-yellow-500)}.bg-size-\[200\%_auto\]{background-size:200%}.bg-clip-text{-webkit-background-clip:text;background-clip:text}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.p-0{padding:calc(var(--spacing)*0)}.p-0\.5{padding:calc(var(--spacing)*.5)}.p-1{padding:calc(var(--spacing)*1)}.p-2{padding:calc(var(--spacing)*2)}.p-2\.5{padding:calc(var(--spacing)*2.5)}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.p-5{padding:calc(var(--spacing)*5)}.p-6{padding:calc(var(--spacing)*6)}.p-8{padding:calc(var(--spacing)*8)}.p-px{padding:1px}.px-0{padding-inline:calc(var(--spacing)*0)}.px-0\.5{padding-inline:calc(var(--spacing)*.5)}.px-1{padding-inline:calc(var(--spacing)*1)}.px-1\.5{padding-inline:calc(var(--spacing)*1.5)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-2\.5{padding-inline:calc(var(--spacing)*2.5)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-5{padding-inline:calc(var(--spacing)*5)}.px-6{padding-inline:calc(var(--spacing)*6)}.py-0\.5{padding-block:calc(var(--spacing)*.5)}.py-1{padding-block:calc(var(--spacing)*1)}.py-1\.5{padding-block:calc(var(--spacing)*1.5)}.py-2{padding-block:calc(var(--spacing)*2)}.py-2\.5{padding-block:calc(var(--spacing)*2.5)}.py-3{padding-block:calc(var(--spacing)*3)}.py-4{padding-block:calc(var(--spacing)*4)}.py-8{padding-block:calc(var(--spacing)*8)}.py-10{padding-block:calc(var(--spacing)*10)}.py-16{padding-block:calc(var(--spacing)*16)}.pt-0{padding-top:calc(var(--spacing)*0)}.pt-1{padding-top:calc(var(--spacing)*1)}.pt-2{padding-top:calc(var(--spacing)*2)}.pt-3{padding-top:calc(var(--spacing)*3)}.pt-6{padding-top:calc(var(--spacing)*6)}.pr-0\.5{padding-right:calc(var(--spacing)*.5)}.pr-1{padding-right:calc(var(--spacing)*1)}.pr-2{padding-right:calc(var(--spacing)*2)}.pr-3{padding-right:calc(var(--spacing)*3)}.pb-0\.5{padding-bottom:calc(var(--spacing)*.5)}.pb-1{padding-bottom:calc(var(--spacing)*1)}.pl-1\.5{padding-left:calc(var(--spacing)*1.5)}.pl-2{padding-left:calc(var(--spacing)*2)}.pl-4{padding-left:calc(var(--spacing)*4)}.pl-\[18px\]{padding-left:18px}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.font-mono{font-family:var(--font-mono)}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.leading-none{--tw-leading:1;line-height:1}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.font-\[450\]{--tw-font-weight:450;font-weight:450}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-\[-0\.02em\]{--tw-tracking:-.02em;letter-spacing:-.02em}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.text-balance{text-wrap:balance}.text-pretty{text-wrap:pretty}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.whitespace-pre{white-space:pre}.whitespace-pre-wrap{white-space:pre-wrap}.text-amber-600{color:var(--color-amber-600)}.text-black{color:var(--color-black)}.text-blue-500{color:var(--color-blue-500)}.text-blue-600{color:var(--color-blue-600)}.text-blue-700{color:var(--color-blue-700)}.text-cyan-300{color:var(--color-cyan-300)}.text-cyan-400{color:var(--color-cyan-400)}.text-cyan-500\/70{color:#00b7d7b3}@supports (color:color-mix(in lab,red,red)){.text-cyan-500\/70{color:color-mix(in oklab,var(--color-cyan-500)70%,transparent)}}.text-emerald-600{color:var(--color-emerald-600)}.text-green-600{color:var(--color-green-600)}.text-green-600\/80{color:#00a544cc}@supports (color:color-mix(in lab,red,red)){.text-green-600\/80{color:color-mix(in oklab,var(--color-green-600)80%,transparent)}}.text-green-700{color:var(--color-green-700)}.text-neutral-300{color:var(--color-neutral-300)}.text-primary-50{color:var(--color-primary-50)}.text-primary-100{color:var(--color-primary-100)}.text-primary-300{color:var(--color-primary-300)}.text-primary-400{color:var(--color-primary-400)}.text-primary-500{color:var(--color-primary-500)}.text-primary-500\/70{color:#bbb9b5b3}@supports (color:color-mix(in lab,red,red)){.text-primary-500\/70{color:color-mix(in oklab,var(--color-primary-500)70%,transparent)}}.text-primary-500\/75{color:#bbb9b5bf}@supports (color:color-mix(in lab,red,red)){.text-primary-500\/75{color:color-mix(in oklab,var(--color-primary-500)75%,transparent)}}.text-primary-500\/80{color:#bbb9b5cc}@supports (color:color-mix(in lab,red,red)){.text-primary-500\/80{color:color-mix(in oklab,var(--color-primary-500)80%,transparent)}}.text-primary-600{color:var(--color-primary-600)}.text-primary-600\/80{color:#979590cc}@supports (color:color-mix(in lab,red,red)){.text-primary-600\/80{color:color-mix(in oklab,var(--color-primary-600)80%,transparent)}}.text-primary-700{color:var(--color-primary-700)}.text-primary-700\/80{color:#767471cc}@supports (color:color-mix(in lab,red,red)){.text-primary-700\/80{color:color-mix(in oklab,var(--color-primary-700)80%,transparent)}}.text-primary-800{color:var(--color-primary-800)}.text-primary-900{color:var(--color-primary-900)}.text-primary-950{color:var(--color-primary-950)}.text-purple-600{color:var(--color-purple-600)}.text-red-500{color:var(--color-red-500)}.text-red-600{color:var(--color-red-600)}.text-red-600\/80{color:#e40014cc}@supports (color:color-mix(in lab,red,red)){.text-red-600\/80{color:color-mix(in oklab,var(--color-red-600)80%,transparent)}}.text-red-700{color:var(--color-red-700)}.text-transparent{color:#0000}.text-white{color:var(--color-white)}.text-yellow-600{color:var(--color-yellow-600)}.uppercase{text-transform:uppercase}.italic{font-style:italic}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}.underline{text-decoration-line:underline}.decoration-primary-300{-webkit-text-decoration-color:var(--color-primary-300);text-decoration-color:var(--color-primary-300)}.underline-offset-4{text-underline-offset:4px}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-75{opacity:.75}.opacity-100{opacity:1}.shadow-sm\/5{--tw-shadow-alpha:5%;--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,oklab(0% 0 0/.05)),0 1px 2px -1px var(--tw-shadow-color,oklab(0% 0 0/.05));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-2xs{--tw-shadow:0 1px var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\[0px_12px_32px_0px_rgba\(0\,0\,0\,0\.05\)\]{--tw-shadow:0px 12px 32px 0px var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-none{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a),0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-2{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-surface{--tw-ring-color:var(--color-surface)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.outline-black{outline-color:var(--color-black)}.outline-ink\/10{outline-color:#0000001a}@supports (color:color-mix(in lab,red,red)){.outline-ink\/10{outline-color:color-mix(in oklab,var(--color-ink)10%,transparent)}}.outline-primary-900\/10{outline-color:#3c3a381a}@supports (color:color-mix(in lab,red,red)){.outline-primary-900\/10{outline-color:color-mix(in oklab,var(--color-primary-900)10%,transparent)}}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[background-color\,box-shadow\]{transition-property:background-color,box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[color\,background-color\,box-shadow\]{transition-property:color,background-color,box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[width\,translate\]{transition-property:width,translate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-0{--tw-duration:0s;transition-duration:0s}.duration-100{--tw-duration:.1s;transition-duration:.1s}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-500{--tw-duration:.5s;transition-duration:.5s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.will-change-transform{will-change:transform}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.\[--thumb-size\:--spacing\(5\)\]{--thumb-size:calc(var(--spacing)*5)}.\[transition\:translate_\.15s\,border-radius_\.15s\,scale_\.1s_\.1s\,transform-origin_\.15s\]{transition:translate .15s,border-radius .15s,scale .1s .1s,transform-origin .15s}.group-focus-within\:opacity-100:is(:where(.group):focus-within *){opacity:1}@media(hover:hover){.group-hover\:pointer-events-auto:is(:where(.group):hover *){pointer-events:auto}.group-hover\:h-2:is(:where(.group):hover *){height:calc(var(--spacing)*2)}.group-hover\:translate-x-0\.5:is(:where(.group):hover *){--tw-translate-x:calc(var(--spacing)*.5);translate:var(--tw-translate-x)var(--tw-translate-y)}.group-hover\:scale-100:is(:where(.group):hover *){--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x)var(--tw-scale-y)}.group-hover\:text-primary-600:is(:where(.group):hover *){color:var(--color-primary-600)}.group-hover\:opacity-100:is(:where(.group):hover *),.group-hover\/scroll-area\:opacity-100:is(:where(.group\/scroll-area):hover *){opacity:1}}.group-data-panel-open\:rotate-90:is(:where(.group)[data-panel-open] *){rotate:90deg}.group-data-panel-open\:rotate-180:is(:where(.group)[data-panel-open] *){rotate:180deg}.marker\:text-primary-400 ::marker{color:var(--color-primary-400)}.marker\:text-primary-400::marker{color:var(--color-primary-400)}.marker\:text-primary-400 ::-webkit-details-marker{color:var(--color-primary-400)}.marker\:text-primary-400::-webkit-details-marker{color:var(--color-primary-400)}.marker\:text-primary-500 ::marker{color:var(--color-primary-500)}.marker\:text-primary-500::marker{color:var(--color-primary-500)}.marker\:text-primary-500 ::-webkit-details-marker{color:var(--color-primary-500)}.marker\:text-primary-500::-webkit-details-marker{color:var(--color-primary-500)}.selection\:bg-blue-800\/50 ::selection{background-color:#193cb880}@supports (color:color-mix(in lab,red,red)){.selection\:bg-blue-800\/50 ::selection{background-color:color-mix(in oklab,var(--color-blue-800)50%,transparent)}}.selection\:bg-blue-800\/50::selection{background-color:#193cb880}@supports (color:color-mix(in lab,red,red)){.selection\:bg-blue-800\/50::selection{background-color:color-mix(in oklab,var(--color-blue-800)50%,transparent)}}.placeholder\:text-primary-400::placeholder{color:var(--color-primary-400)}.placeholder\:text-primary-500::placeholder{color:var(--color-primary-500)}.last\:border-0:last-child{border-style:var(--tw-border-style);border-width:0}.last\:border-b-0:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}@media(hover:hover){.hover\:border-primary-300:hover{border-color:var(--color-primary-300)}.hover\:bg-cyan-500\/5:hover{background-color:#00b7d70d}@supports (color:color-mix(in lab,red,red)){.hover\:bg-cyan-500\/5:hover{background-color:color-mix(in oklab,var(--color-cyan-500)5%,transparent)}}.hover\:bg-cyan-500\/20:hover{background-color:#00b7d733}@supports (color:color-mix(in lab,red,red)){.hover\:bg-cyan-500\/20:hover{background-color:color-mix(in oklab,var(--color-cyan-500)20%,transparent)}}.hover\:bg-neutral-800\/80:hover{background-color:#262626cc}@supports (color:color-mix(in lab,red,red)){.hover\:bg-neutral-800\/80:hover{background-color:color-mix(in oklab,var(--color-neutral-800)80%,transparent)}}.hover\:bg-primary-50:hover{background-color:var(--color-primary-50)}.hover\:bg-primary-50\/50:hover{background-color:#fdfcfb80}@supports (color:color-mix(in lab,red,red)){.hover\:bg-primary-50\/50:hover{background-color:color-mix(in oklab,var(--color-primary-50)50%,transparent)}}.hover\:bg-primary-100:hover{background-color:var(--color-primary-100)}.hover\:bg-primary-200:hover{background-color:var(--color-primary-200)}.hover\:bg-primary-900:hover{background-color:var(--color-primary-900)}.hover\:bg-red-50:hover{background-color:var(--color-red-50)}.hover\:bg-red-50\/80:hover{background-color:#fef2f2cc}@supports (color:color-mix(in lab,red,red)){.hover\:bg-red-50\/80:hover{background-color:color-mix(in oklab,var(--color-red-50)80%,transparent)}}.hover\:bg-red-200:hover{background-color:var(--color-red-200)}.hover\:bg-red-700:hover{background-color:var(--color-red-700)}.hover\:bg-transparent:hover{background-color:#0000}.hover\:text-primary-600:hover{color:var(--color-primary-600)}.hover\:text-primary-700:hover{color:var(--color-primary-700)}.hover\:text-primary-800:hover{color:var(--color-primary-800)}.hover\:text-primary-900:hover{color:var(--color-primary-900)}.hover\:text-primary-950:hover{color:var(--color-primary-950)}.hover\:text-red-600:hover{color:var(--color-red-600)}.hover\:text-red-700:hover{color:var(--color-red-700)}.hover\:underline:hover{text-decoration-line:underline}.hover\:decoration-primary-500:hover{-webkit-text-decoration-color:var(--color-primary-500);text-decoration-color:var(--color-primary-500)}.hover\:decoration-primary-600:hover{-webkit-text-decoration-color:var(--color-primary-600);text-decoration-color:var(--color-primary-600)}}.focus\:border-primary-300:focus{border-color:var(--color-primary-300)}.focus\:border-primary-400:focus{border-color:var(--color-primary-400)}.focus\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\:ring-primary-500:focus{--tw-ring-color:var(--color-primary-500)}.focus\:ring-primary-500\/20:focus{--tw-ring-color:#bbb9b533}@supports (color:color-mix(in lab,red,red)){.focus\:ring-primary-500\/20:focus{--tw-ring-color:color-mix(in oklab,var(--color-primary-500)20%,transparent)}}.focus\:ring-offset-1:focus{--tw-ring-offset-width:1px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.focus-visible\:bg-primary-100:focus-visible{background-color:var(--color-primary-100)}.focus-visible\:text-primary-900:focus-visible{color:var(--color-primary-900)}.focus-visible\:ring-0:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(0px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-primary-300:focus-visible{--tw-ring-color:var(--color-primary-300)}.focus-visible\:ring-primary-400:focus-visible{--tw-ring-color:var(--color-primary-400)}.focus-visible\:ring-primary-950:focus-visible{--tw-ring-color:var(--color-primary-950)}.focus-visible\:ring-red-300:focus-visible{--tw-ring-color:var(--color-red-300)}.focus-visible\:ring-offset-1:focus-visible{--tw-ring-offset-width:1px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus-visible\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}@media(hover:hover){.disabled\:hover\:border-primary-200:disabled:hover{border-color:var(--color-primary-200)}.disabled\:hover\:bg-primary-50:disabled:hover{background-color:var(--color-primary-50)}}:where(:is([role=switch]:active,[data-slot=label]:active)) .in-\[\[role\=switch\]\:active\,\[data-slot\=label\]\:active\]\:rounded-\[var\(--thumb-size\)\/calc\(var\(--thumb-size\)\*1\.1\)\]{border-radius:var(--thumb-size)/calc(var(--thumb-size)*1.1)}:where(:is([role=switch]:active,[data-slot=label]:active)) .in-\[\[role\=switch\]\:active\,\[data-slot\=label\]\:active\]\:not-data-disabled\:scale-x-110:not([data-disabled]){--tw-scale-x:110%;scale:var(--tw-scale-x)var(--tw-scale-y)}.aria-expanded\:bg-primary-200[aria-expanded=true]{background-color:var(--color-primary-200)}.aria-expanded\:opacity-100[aria-expanded=true]{opacity:1}.data-active\:text-primary-900[data-active]{color:var(--color-primary-900)}.data-checked\:origin-\[var\(--thumb-size\)_50\%\][data-checked]{transform-origin:var(--thumb-size)50%}.data-checked\:translate-x-\[calc\(var\(--thumb-size\)-4px\)\][data-checked]{--tw-translate-x:calc(var(--thumb-size) - 4px);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-checked\:bg-primary-900[data-checked]{background-color:var(--color-primary-900)}.data-disabled\:pointer-events-none[data-disabled]{pointer-events:none}.data-disabled\:opacity-64[data-disabled]{opacity:.64}.data-ending-style\:h-0[data-ending-style]{height:calc(var(--spacing)*0)}.data-highlighted\:bg-primary-100[data-highlighted]{background-color:var(--color-primary-100)}.data-highlighted\:bg-red-50\/80[data-highlighted]{background-color:#fef2f2cc}@supports (color:color-mix(in lab,red,red)){.data-highlighted\:bg-red-50\/80[data-highlighted]{background-color:color-mix(in oklab,var(--color-red-50)80%,transparent)}}.data-hovering\:opacity-100[data-hovering]{opacity:1}.data-panel-open\:text-primary-700[data-panel-open]{color:var(--color-primary-700)}.data-scrolling\:opacity-100[data-scrolling]{opacity:1}.data-starting-style\:h-0[data-starting-style]{height:calc(var(--spacing)*0)}.data-unchecked\:bg-primary-200[data-unchecked]{background-color:var(--color-primary-200)}.data-\[orientation\=horizontal\]\:h-0\.5[data-orientation=horizontal]{height:calc(var(--spacing)*.5)}.data-\[orientation\=horizontal\]\:translate-y-px[data-orientation=horizontal]{--tw-translate-y:1px;translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[orientation\=horizontal\]\:py-1[data-orientation=horizontal]{padding-block:calc(var(--spacing)*1)}.data-\[orientation\=vertical\]\:w-0\.5[data-orientation=vertical]{width:calc(var(--spacing)*.5)}.data-\[orientation\=vertical\]\:w-full[data-orientation=vertical]{width:100%}.data-\[orientation\=vertical\]\:-translate-x-px[data-orientation=vertical]{--tw-translate-x:-1px;translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[orientation\=vertical\]\:flex-col[data-orientation=vertical]{flex-direction:column}.data-\[orientation\=vertical\]\:flex-row[data-orientation=vertical]{flex-direction:row}.data-\[orientation\=vertical\]\:justify-start[data-orientation=vertical]{justify-content:flex-start}.data-\[orientation\=vertical\]\:px-1[data-orientation=vertical]{padding-inline:calc(var(--spacing)*1)}:is(.\*\:data-\[slot\=tab-indicator\]\:duration-0>*)[data-slot=tab-indicator]{--tw-duration:0s;transition-duration:0s}.data-\[state\=closed\]\:scale-95[data-state=closed]{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x)var(--tw-scale-y)}.data-\[state\=closed\]\:opacity-0[data-state=closed]{opacity:0}.data-\[state\=open\]\:scale-100[data-state=open]{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x)var(--tw-scale-y)}.data-\[state\=open\]\:opacity-100[data-state=open]{opacity:1}@media(min-width:40rem){.sm\:col-span-1{grid-column:span 1/span 1}.sm\:flex{display:flex}.sm\:max-w-\[768px\]{max-width:768px}.sm\:min-w-\[400px\]{min-width:400px}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\:\[--thumb-size\:--spacing\(4\)\]{--thumb-size:calc(var(--spacing)*4)}}@media(min-width:48rem){.md\:right-5{right:calc(var(--spacing)*5)}.md\:left-5{left:calc(var(--spacing)*5)}.md\:flex{display:flex}.md\:hidden{display:none}.md\:inline{display:inline}.md\:max-h-\[calc\(80vh-100px\)\]{max-height:calc(80vh - 100px)}.md\:min-h-\[400px\]{min-height:400px}.md\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:gap-4{gap:calc(var(--spacing)*4)}:where(.md\:space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*6)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*6)*calc(1 - var(--tw-space-y-reverse)))}.md\:px-5{padding-inline:calc(var(--spacing)*5)}.md\:pb-3{padding-bottom:calc(var(--spacing)*3)}}@media(min-width:64rem){.lg\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}}@media(min-width:80rem){.xl\:grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}}.dark\:border-neutral-700:where(.dark,.dark *){border-color:var(--color-neutral-700)}.dark\:border-primary-700:where(.dark,.dark *){border-color:var(--color-primary-700)}.dark\:border-red-800:where(.dark,.dark *){border-color:var(--color-red-800)}.dark\:bg-neutral-700:where(.dark,.dark *){background-color:var(--color-neutral-700)}.dark\:bg-neutral-800:where(.dark,.dark *){background-color:var(--color-neutral-800)}.dark\:bg-neutral-900:where(.dark,.dark *){background-color:var(--color-neutral-900)}.dark\:bg-primary-700:where(.dark,.dark *){background-color:var(--color-primary-700)}.dark\:bg-red-900\/20:where(.dark,.dark *){background-color:#82181a33}@supports (color:color-mix(in lab,red,red)){.dark\:bg-red-900\/20:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-red-900)20%,transparent)}}.dark\:bg-surface\/40:where(.dark,.dark *){background-color:#fff6}@supports (color:color-mix(in lab,red,red)){.dark\:bg-surface\/40:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-surface)40%,transparent)}}.dark\:bg-zinc-800:where(.dark,.dark *){background-color:var(--color-zinc-800)}.dark\:text-amber-400:where(.dark,.dark *){color:var(--color-amber-400)}.dark\:text-blue-400:where(.dark,.dark *){color:var(--color-blue-400)}.dark\:text-emerald-400:where(.dark,.dark *){color:var(--color-emerald-400)}.dark\:text-green-400:where(.dark,.dark *){color:var(--color-green-400)}.dark\:text-neutral-100:where(.dark,.dark *){color:var(--color-neutral-100)}.dark\:text-neutral-300:where(.dark,.dark *){color:var(--color-neutral-300)}.dark\:text-neutral-400:where(.dark,.dark *){color:var(--color-neutral-400)}.dark\:text-neutral-500:where(.dark,.dark *){color:var(--color-neutral-500)}.dark\:text-primary-300:where(.dark,.dark *){color:var(--color-primary-300)}.dark\:text-primary-400:where(.dark,.dark *){color:var(--color-primary-400)}.dark\:text-purple-400:where(.dark,.dark *){color:var(--color-purple-400)}.dark\:text-red-400:where(.dark,.dark *){color:var(--color-red-400)}.dark\:text-white:where(.dark,.dark *){color:var(--color-white)}.dark\:text-yellow-400:where(.dark,.dark *){color:var(--color-yellow-400)}@media(hover:hover){.dark\:hover\:bg-neutral-800:where(.dark,.dark *):hover{background-color:var(--color-neutral-800)}}.\[\&_svg\]\:pointer-events-none svg{pointer-events:none}.\[\&_svg\]\:-mx-0\.5 svg{margin-inline:calc(var(--spacing)*-.5)}.\[\&_svg\]\:size-5 svg{width:calc(var(--spacing)*5);height:calc(var(--spacing)*5)}.\[\&_svg\]\:shrink-0 svg{flex-shrink:0}.\[\&_svg\:not\(\[class\*\=\"size-\"\]\)\]\:size-4 svg:not([class*=size-]){width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.\[\&\:hover\:not\(\:has\(button\:hover\)\)\]\:bg-primary-200:hover:not(:has(button:hover)){background-color:var(--color-primary-200)}.\[\&\>pre\]\:overflow-x-auto>pre{overflow-x:auto}.\[\&\>pre\]\:px-3>pre{padding-inline:calc(var(--spacing)*3)}.\[\&\>pre\]\:py-2>pre{padding-block:calc(var(--spacing)*2)}.\[\&\>pre\]\:py-3>pre{padding-block:calc(var(--spacing)*3)}.\[\&\>pre\]\:whitespace-pre>pre{white-space:pre}.\[\&\[hidden\]\:not\(\[hidden\=\"until-found\"\]\)\]\:hidden[hidden]:not([hidden=until-found]){display:none}}.root{isolation:isolate}html{padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom);padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right)}.safe-area-top{padding-top:env(safe-area-inset-top)}:root{--opencami-text-size:16px}.opencami-text-size{font-size:var(--opencami-text-size)}.dark{color-scheme:dark;--color-primary-50:oklch(12.44% 0 89.88);--color-primary-100:oklch(15.84% 0 89.88);--color-primary-200:oklch(20.78% 0 89.88);--color-primary-300:oklch(30% .006 80);--color-primary-400:oklch(40% .006 80);--color-primary-500:oklch(52% .006 80);--color-primary-600:oklch(65% .006 80);--color-primary-700:oklch(73% .006 80);--color-primary-800:oklch(83% .005 80);--color-primary-900:oklch(89.5% .004 80);--color-primary-950:oklch(94.5% .003 80);--color-surface:var(--color-black);--color-ink:var(--color-white)}.light,.system{color-scheme:light}@media(prefers-color-scheme:dark){.system{color-scheme:dark;--color-primary-50:oklch(12.44% 0 89.88);--color-primary-100:oklch(15.84% 0 89.88);--color-primary-200:oklch(20.78% 0 89.88);--color-primary-300:oklch(30% .006 80);--color-primary-400:oklch(40% .006 80);--color-primary-500:oklch(52% .006 80);--color-primary-600:oklch(65% .006 80);--color-primary-700:oklch(73% .006 80);--color-primary-800:oklch(83% .005 80);--color-primary-900:oklch(89.5% .004 80);--color-primary-950:oklch(94.5% .003 80);--color-surface:var(--color-black);--color-ink:var(--color-white);--color-surface-deep:oklch(18% 0 0)}}.chameleon{color-scheme:light;--color-primary-50:oklch(97.5% .012 155);--color-primary-100:oklch(95.5% .018 155);--color-primary-200:oklch(91.5% .025 155);--color-primary-300:oklch(86% .035 160);--color-primary-400:oklch(75% .045 165);--color-primary-500:oklch(62% .055 168);--color-primary-600:oklch(50% .055 168);--color-primary-700:oklch(42% .045 165);--color-primary-800:oklch(35% .035 160);--color-primary-900:oklch(28% .025 155);--color-primary-950:oklch(22% .018 155);--color-surface:oklch(98% .008 155);--color-ink:oklch(25% .025 155)}html,body{margin:calc(var(--spacing)*0);font-family:var(--font-sans);letter-spacing:-.15px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;overscroll-behavior:none}.font-sans{letter-spacing:-.15px}.inline-code{background:var(--color-primary-100);border:1px solid var(--color-primary-200);color:var(--color-primary-900);white-space:nowrap;border-radius:.5rem;padding:.1rem .4rem;font-family:JetBrains Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:.95em}.code-block .shiki{margin:0;background:0 0!important}.code-block .shiki code{font-size:.875rem;line-height:1.5;display:block}code{font-family:JetBrains Mono,Menlo,Monaco,Consolas,Courier New,monospace}@keyframes shimmer{0%{background-position:200%}to{background-position:-200%}}@keyframes stream-fade-in{0%{opacity:.4}to{opacity:1}}.stream-fade-in{animation:.25s ease-out stream-fade-in}@media(prefers-reduced-motion:reduce){.stream-fade-in{animation:none}*{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@keyframes spin{to{transform:rotate(360deg)}}@keyframes ping{75%,to{opacity:0;transform:scale(2)}}@keyframes pulse{50%{opacity:.5}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as i,a as he,j as V}from"./main-
|
|
1
|
+
import{r as i,a as he,j as V}from"./main-BlX7CS2-.js";import{f as X,a6 as c,a3 as w,b as ve,a7 as pe,a as G,c as H}from"./button-BcnCTjUT.js";import{u as be}from"./opencami-logo-5KynvViW.js";import{c as M,e as x,a as K,b1 as ge,g as xe,b2 as ke,X as ye,d as Ce,n as Ie}from"./useButton-DhneLsMA.js";const Q=i.createContext(void 0);function Ve(){const e=i.useContext(Q);if(e===void 0)throw new Error(X(63));return e}let Y=(function(e){return e.disabled="data-disabled",e.valid="data-valid",e.invalid="data-invalid",e.touched="data-touched",e.dirty="data-dirty",e.filled="data-filled",e.focused="data-focused",e})({});const Re={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},Ee={valid(e){return e===null?null:e?{[Y.valid]:""}:{[Y.invalid]:""}}};let J=(function(e){return e.checked="data-checked",e.unchecked="data-unchecked",e.disabled="data-disabled",e.readonly="data-readonly",e.required="data-required",e.valid="data-valid",e.invalid="data-invalid",e.touched="data-touched",e.dirty="data-dirty",e.filled="data-filled",e.focused="data-focused",e})({});const W={...Ee,checked(e){return e?{[J.checked]:""}:{[J.unchecked]:""}}};function Pe(e,t){return{...e,state:{...e.state,valid:!t&&e.state.valid}}}const we=i.createContext({formRef:{current:{fields:new Map}},errors:{},clearErrors:c,validationMode:"onSubmit",submitAttemptedRef:{current:!1}});function Z(){return i.useContext(we)}const Me=i.createContext({invalid:void 0,name:void 0,validityData:{state:Re,errors:[],error:"",value:"",initialValue:null},setValidityData:c,disabled:void 0,touched:!1,setTouched:c,dirty:!1,setDirty:c,filled:!1,setFilled:c,focused:!1,setFocused:c,validate:()=>null,validationMode:"onSubmit",validationDebounceTime:0,shouldValidateOnChange:()=>!1,state:{disabled:!1,valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},markedDirtyRef:{current:!1},validation:{getValidationProps:(e=w)=>e,getInputValidationProps:(e=w)=>e,inputRef:{current:null},commit:async()=>{}}});function T(e=!0){const t=i.useContext(Me);if(t.setValidityData===c&&!e)throw new Error(X(28));return t}function Te(e){const{enabled:t=!0,value:a,id:n,name:f,controlRef:s,commit:d}=e,{formRef:r}=Z(),{invalid:k,markedDirtyRef:y,validityData:C,setValidityData:p}=T(),o=M(e.getValue);x(()=>{if(!t)return;let u=a;u===void 0&&(u=o()),C.initialValue===null&&u!==null&&p(b=>({...b,initialValue:u}))},[t,p,a,C.initialValue,o]),x(()=>{!t||!n||r.current.fields.set(n,{getValue:o,name:f,controlRef:s,validityData:Pe(C,k),validate(u=!0){let b=a;b===void 0&&(b=o()),y.current=!0,u?he.flushSync(()=>d(b)):d(b)}})},[d,s,t,r,o,n,k,y,f,C,a]),x(()=>{const u=r.current.fields;return()=>{n&&u.delete(n)}},[r,n])}const ze=i.createContext({controlId:void 0,setControlId:c,labelId:void 0,setLabelId:c,messageIds:[],setMessageIds:c,getDescriptionProps:e=>e});function $(){return i.useContext(ze)}function Se(e={}){const{id:t,implicit:a=!1,controlRef:n}=e,{controlId:f,setControlId:s}=$(),d=K(t);return x(()=>{if(!(!a&&!t||s===c)){if(a){const r=n?.current;ge(r)&&r.closest("label")!=null?s(t??null):s(f??d)}else t&&s(t);return()=>{t&&s(void 0)}}},[t,n,f,s,a,d]),f??d}function _e(e,t){const a=i.useRef(e),n=M(t);x(()=>{a.current!==e&&n(a.current)},[e,n]),x(()=>{a.current=e},[e])}const Be=i.forwardRef(function(t,a){const{checked:n,className:f,defaultChecked:s,id:d,inputRef:r,name:k,nativeButton:y=!1,onCheckedChange:C,readOnly:p=!1,required:o=!1,disabled:u=!1,render:b,uncheckedValue:z,value:E,...A}=t,{clearErrors:ee}=Z(),{state:S,setTouched:te,setDirty:ae,validityData:ne,setFilled:P,setFocused:_,shouldValidateOnChange:ie,validationMode:se,disabled:le,name:de,validation:m}=T(),{labelId:re}=$(),h=le||u,g=de??k,B=M(C),I=i.useRef(null),L=ve(I,r,m.inputRef),R=i.useRef(null),j=K(),F=Se({id:d,implicit:!1,controlRef:R}),O=y?void 0:F,[l,N]=be({controlled:n,default:!!s,name:"Switch",state:"checked"});Te({id:j,commit:m.commit,value:l,controlRef:R,name:g,getValue:()=>l}),x(()=>{I.current&&P(I.current.checked)},[I,P]),_e(l,()=>{ee(g),ae(l!==ne.initialValue),P(l),ie()?m.commit(l):m.commit(l,!0)});const{getButtonProps:oe,buttonRef:ce}=xe({disabled:h,native:y}),ue={id:y?F:j,role:"switch","aria-checked":l,"aria-readonly":p||void 0,"aria-required":o||void 0,"aria-labelledby":re,onFocus(){h||_(!0)},onBlur(){const v=I.current;!v||h||(te(!0),_(!1),se==="onBlur"&&m.commit(v.checked))},onClick(v){p||h||(v.preventDefault(),I?.current?.click())}},fe=i.useMemo(()=>pe({checked:l,disabled:h,id:O,name:g,required:o,style:g?ke:ye,tabIndex:-1,type:"checkbox","aria-hidden":!0,ref:L,onChange(v){if(v.nativeEvent.defaultPrevented)return;const D=v.target.checked,U=Ce(Ie,v.nativeEvent);B?.(D,U),!U.isCanceled&&N(D)},onFocus(){R.current?.focus()}},m.getInputValidationProps,E!==void 0?{value:E}:w),[l,h,L,O,g,B,o,N,m,E]),q=i.useMemo(()=>({...S,checked:l,disabled:h,readOnly:p,required:o}),[S,l,h,p,o]),me=G("span",t,{state:q,ref:[a,R,ce],props:[ue,m.getValidationProps,A,oe],stateAttributesMapping:W});return V.jsxs(Q.Provider,{value:q,children:[me,!l&&g&&z!==void 0&&V.jsx("input",{type:"hidden",name:g,value:z}),V.jsx("input",{...fe})]})}),Le=i.forwardRef(function(t,a){const{render:n,className:f,...s}=t,{state:d}=T(),r=Ve(),k={...d,...r};return G("span",t,{state:k,ref:a,stateAttributesMapping:W,props:s})});function qe({className:e,...t}){return V.jsx(Be,{className:H("inline-flex h-[calc(var(--thumb-size)+2px)] w-[calc(var(--thumb-size)*2-2px)] shrink-0 items-center rounded-full p-px outline-none transition-[background-color,box-shadow] duration-200 [--thumb-size:--spacing(5)] focus-visible:ring-2 focus-visible:ring-primary-950 focus-visible:ring-offset-1 focus-visible:ring-offset-background data-checked:bg-primary-900 data-unchecked:bg-primary-200 data-disabled:opacity-64 sm:[--thumb-size:--spacing(4)]",e),"data-slot":"switch",...t,children:V.jsx(Le,{className:H("pointer-events-none block aspect-square h-full origin-left in-[[role=switch]:active,[data-slot=label]:active]:not-data-disabled:scale-x-110 in-[[role=switch]:active,[data-slot=label]:active]:rounded-[var(--thumb-size)/calc(var(--thumb-size)*1.1)] rounded-(--thumb-size) bg-primary-50 shadow-sm/5 will-change-transform [transition:translate_.15s,border-radius_.15s,scale_.1s_.1s,transform-origin_.15s] data-checked:origin-[var(--thumb-size)_50%] data-checked:translate-x-[calc(var(--thumb-size)-4px)]"),"data-slot":"switch-thumb"})})}export{qe as S};
|