import{c as v,n as I}from"./index-oE_2MbI2.js";import{u as T}from"./useQuery-B63y3s7J.js";import{u as x}from"./useMutation-DdGCKlze.js";function L(e){try{return JSON.parse(e)}catch{return}}function y(e,s){const t=localStorage.getItem(e),o=t?L(t):void 0,a=typeof s=="function"?s(o):o??s;if(o===void 0||a!==o)try{const n=JSON.stringify(a);localStorage.setItem(e,n)}catch{}return a}function w(e,s){const t=v.c(25),o=I();let a;t[0]!==e?(a=["localStorage",e],t[0]=e,t[1]=a):a=t[1];const n=a;let r,i;t[2]!==s||t[3]!==e?(r=()=>y(e,s),i=()=>y(e,s),t[2]=s,t[3]=e,t[4]=r,t[5]=i):(r=t[4],i=t[5]);let h;t[6]!==n||t[7]!==r||t[8]!==i?(h={queryKey:n,queryFn:r,initialData:i,staleTime:1/0,gcTime:1/0},t[6]=n,t[7]=r,t[8]=i,t[9]=h):h=t[9];const{data:C}=T(h);let l;t[10]!==e?(l=async c=>{const $=JSON.stringify(c);return localStorage.setItem(e,$),c},t[10]=e,t[11]=l):l=t[11];let m;t[12]!==o||t[13]!==n?(m=c=>{o.setQueryData(n,c)},t[12]=o,t[13]=n,t[14]=m):m=t[14];let u;t[15]!==l||t[16]!==m?(u={mutationFn:l,onSuccess:m},t[15]=l,t[16]=m,t[17]=u):u=t[17];const g=x(u);let f;t[18]!==g||t[19]!==o||t[20]!==n?(f=c=>{const $=o.getQueryData(n),O=typeof c=="function"?c($):c;g.mutate(O)},t[18]=g,t[19]=o,t[20]=n,t[21]=f):f=t[21];const S=f,p=C;let d;return t[22]!==S||t[23]!==p?(d=[p,S],t[22]=S,t[23]=p,t[24]=d):d=t[24],d}const F={assistantChatTasks:e=>`mesh:assistant-chat:tasks:${e}`,messages:(e,s)=>`mesh:messages:${e}:${s}`,decoChatOpen:()=>"mesh:decochat:open",chatSelectedModel:e=>`mesh:chat:selectedModel:${e}`,chatSelectedMode:e=>`mesh:chat:selectedMode:${e}`,assistantChatActiveTask:e=>`mesh:assistant-chat:active-task:${e}`,decoChatPanelWidth:()=>"mesh:decochat:panel-width",sidebarOpen:()=>"mesh:sidebar-open",selectedRegistry:e=>`mesh:store:selected-registry:${e}`,orgHomeQuickstart:e=>`mesh:org-home:quickstart:${e}`,storeShowStdio:()=>"mesh:store:show-stdio",preferences:()=>"mesh:user:preferences",pluginConnection:(e,s)=>`mesh:plugin:connection:${e}:${s}`,chatTaskOwnerFilter:e=>`mesh:chat:task-owner-filter:${e}`};export{F as L,w as u};
