@alook/app 0.0.95 → 0.0.96

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.
Files changed (53) hide show
  1. package/bundled/email-worker/index.js +4 -1
  2. package/bundled/web/.open-next/.build/durable-objects/queue.js +5 -5
  3. package/bundled/web/.open-next/assets/BUILD_ID +1 -1
  4. package/bundled/web/.open-next/assets/_next/static/chunks/{0vqupowkyys-x.js → 051._099hez6h.js} +1 -1
  5. package/bundled/web/.open-next/assets/_next/static/chunks/{0or7hzjnkrmfa.js → 07mm2xbk2l5.8.js} +1 -1
  6. package/bundled/web/.open-next/assets/_next/static/chunks/{0jtn3_q6lnard.js → 0dhez0ocwb1sn.js} +1 -1
  7. package/bundled/web/.open-next/assets/_next/static/chunks/{0p7.1dbgrzig5.js → 0slwbsjlzqxt6.js} +1 -1
  8. package/bundled/web/.open-next/cache/{KbGff8S318-K3Q1SxAl1j → vRKVEITxr39O9Q-RYSK4T}/_global-error.cache +1 -1
  9. package/bundled/web/.open-next/cache/{KbGff8S318-K3Q1SxAl1j → vRKVEITxr39O9Q-RYSK4T}/_not-found.cache +1 -1
  10. package/bundled/web/.open-next/cache/{KbGff8S318-K3Q1SxAl1j → vRKVEITxr39O9Q-RYSK4T}/privacy.cache +1 -1
  11. package/bundled/web/.open-next/cache/{KbGff8S318-K3Q1SxAl1j → vRKVEITxr39O9Q-RYSK4T}/sitemap.xml.cache +1 -1
  12. package/bundled/web/.open-next/cloudflare/cache-assets-manifest.sql +1 -1
  13. package/bundled/web/.open-next/cloudflare/init.js +1 -1
  14. package/bundled/web/.open-next/dynamodb-provider/dynamodb-cache.json +1 -1
  15. package/bundled/web/.open-next/middleware/handler.mjs +3 -3
  16. package/bundled/web/.open-next/server-functions/default/src/web/.next/BUILD_ID +1 -1
  17. package/bundled/web/.open-next/server-functions/default/src/web/.next/build-manifest.json +3 -3
  18. package/bundled/web/.open-next/server-functions/default/src/web/.next/prerender-manifest.json +3 -3
  19. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/[id]/activity/page_client-reference-manifest.js +1 -1
  20. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/[id]/chat/[convId]/page_client-reference-manifest.js +1 -1
  21. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/[id]/chat/page_client-reference-manifest.js +1 -1
  22. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/[id]/email/page_client-reference-manifest.js +1 -1
  23. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/[id]/files/page_client-reference-manifest.js +1 -1
  24. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/[id]/meetings/page_client-reference-manifest.js +1 -1
  25. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/[id]/page_client-reference-manifest.js +1 -1
  26. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/new/page_client-reference-manifest.js +1 -1
  27. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/page_client-reference-manifest.js +1 -1
  28. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/calendar/page_client-reference-manifest.js +1 -1
  29. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/flags/page_client-reference-manifest.js +1 -1
  30. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/help/email-setup/page_client-reference-manifest.js +1 -1
  31. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/home/page_client-reference-manifest.js +1 -1
  32. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/issues/page_client-reference-manifest.js +1 -1
  33. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/runtimes/page_client-reference-manifest.js +1 -1
  34. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/settings/page_client-reference-manifest.js +1 -1
  35. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/threads/[traceId]/page_client-reference-manifest.js +1 -1
  36. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/threads/page_client-reference-manifest.js +1 -1
  37. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/unread/page_client-reference-manifest.js +1 -1
  38. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/page/react-loadable-manifest.json +1 -1
  39. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/page_client-reference-manifest.js +1 -1
  40. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_02.xen~._.js +1 -1
  41. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/src_web_src_0~23g-y._.js +1 -1
  42. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/middleware-build-manifest.js +3 -3
  43. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/middleware-manifest.json +5 -5
  44. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/server-reference-manifest.js +1 -1
  45. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/server-reference-manifest.json +1 -1
  46. package/bundled/web/.open-next/server-functions/default/src/web/handler.mjs +4 -4
  47. package/bundled/web/.open-next/server-functions/default/src/web/handler.mjs.meta.json +43 -43
  48. package/bundled/web/.open-next/server-functions/default/src/web/index.mjs +3 -3
  49. package/package.json +1 -1
  50. /package/bundled/web/.open-next/assets/_next/static/{KbGff8S318-K3Q1SxAl1j → vRKVEITxr39O9Q-RYSK4T}/_buildManifest.js +0 -0
  51. /package/bundled/web/.open-next/assets/_next/static/{KbGff8S318-K3Q1SxAl1j → vRKVEITxr39O9Q-RYSK4T}/_clientMiddlewareManifest.js +0 -0
  52. /package/bundled/web/.open-next/assets/_next/static/{KbGff8S318-K3Q1SxAl1j → vRKVEITxr39O9Q-RYSK4T}/_ssgManifest.js +0 -0
  53. /package/bundled/web/.open-next/cache/{KbGff8S318-K3Q1SxAl1j → vRKVEITxr39O9Q-RYSK4T}/robots.txt.cache +0 -0
@@ -1 +1 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,222862,636557,e=>{"use strict";class t extends Error{status;details;constructor(e,t,n){super(e),this.name="ApiError",this.status=t,this.details=n}get isNetworkError(){return 0===this.status}get isRateLimit(){return 429===this.status}get isUnauthorized(){return 401===this.status}}function n(e,t){return"validation error"===e&&t?.length?function(e){let[t,...n]=e.split(":"),r=n.join(":").trim();if(!r)return e;let o=t.trim(),i=o.trim().replace(/[_-]+/g," ").replace(/\b\w/g,e=>e.toUpperCase()),a=r.replace(/^required$/i,"is required"),s=a.toLowerCase().replace(/[_-]+/g," "),l=o.toLowerCase().replace(/[_-]+/g," ");return l&&s.startsWith(`${l} `)&&(a=a.slice(o.length).trimStart()),i?`${i} ${a}`:a}(t[0]):e}async function r(e,r){let o;try{o=await fetch(""+e,{...r,credentials:"include",headers:{"Content-Type":"application/json",...r?.headers}})}catch(e){if(e instanceof TypeError)throw new t("Unable to connect — check your network",0);throw e}if(401===o.status)throw window.location.href="/sign-in",new t("Unauthorized",401);if(!o.ok){let e,r;try{let t=await o.json();e=t.error,r=t.details}catch{}if(429===o.status)throw new t("Please wait a moment before trying again",429);if(o.status>=500)throw new t(n(e,r)||"Something went wrong — please try again",o.status,r);throw new t(n(e,r)||"Something went wrong",o.status,r)}if(204!==o.status)return o.json()}function o(e,t){let n=new URLSearchParams({workspace_id:e,...t});return`?${n.toString()}`}e.s(["ApiError",0,t],636557);let i=async(e,n,i,a)=>{let s;if(!a||0===a.length)return r(`/api/conversations/${e}/messages${o(i)}`,{method:"POST",body:JSON.stringify({content:n})});let l=new FormData;for(let e of(l.append("content",n),a))l.append("file",e);try{s=await fetch(`/api/conversations/${e}/messages${o(i)}`,{method:"POST",credentials:"include",body:l})}catch(e){if(e instanceof TypeError)throw new t("Unable to connect — check your network",0);throw e}if(401===s.status)throw window.location.href="/sign-in",new t("Unauthorized",401);if(!s.ok){let e,n;try{let t=await s.json();e=t.error,n=t.details}catch{}if(429===s.status)throw new t("Please wait a moment before trying again",429);if(s.status>=500)throw new t(e||"Something went wrong — please try again",s.status,n);throw new t(e||"Something went wrong",s.status,n)}return s.json()},a=async(e,n,i,a)=>{let s;if(!a||0===a.length)return r(`/api/conversations/${e}/buffered-messages${o(i)}`,{method:"POST",body:JSON.stringify({content:n})});let l=new FormData;for(let e of(l.append("content",n),a))l.append("file",e);try{s=await fetch(`/api/conversations/${e}/buffered-messages${o(i)}`,{method:"POST",credentials:"include",body:l})}catch(e){if(e instanceof TypeError)throw new t("Unable to connect — check your network",0);throw e}if(401===s.status)throw window.location.href="/sign-in",new t("Unauthorized",401);if(!s.ok){let e,n;try{let t=await s.json();e=t.error,n=t.details}catch{}if(429===s.status)throw new t(e||"Maximum follow-ups reached",429);if(s.status>=500)throw new t(e||"Something went wrong — please try again",s.status,n);throw new t(e||"Something went wrong",s.status,n)}return s.json()},s=async(e,t)=>{let n=new URLSearchParams({workspace_id:t}),r=await fetch(`/api/email/${e}/body?${n}`,{credentials:"include"});if(!r.ok)return{content:"(body not available)",isHtml:!1};let o=r.headers.get("Content-Type")??"";return{content:await r.text(),isHtml:o.includes("text/html")}},l=async(e,n)=>{let r=new FormData;r.append("file",e);let i=await fetch(`/api/email/upload${o(n)}`,{method:"POST",credentials:"include",body:r});if(!i.ok)throw new t(await i.text().catch(()=>"Upload failed"),i.status);return i.json()},c=async(e,n)=>{let i;if(!n.files||0===n.files.length)return r(`/api/issues${o(e)}`,{method:"POST",body:JSON.stringify({agent_id:n.agent_id,title:n.title,description:n.description})});let a=new FormData;for(let e of(n.agent_id&&a.append("agent_id",n.agent_id),a.append("title",n.title),a.append("description",n.description??""),n.files))a.append("file",e);try{i=await fetch(`/api/issues${o(e)}`,{method:"POST",credentials:"include",body:a})}catch(e){if(e instanceof TypeError)throw new t("Unable to connect — check your network",0);throw e}if(401===i.status)throw window.location.href="/sign-in",new t("Unauthorized",401);if(!i.ok){let e,n;try{let t=await i.json();e=t.error,n=t.details}catch{}if(429===i.status)throw new t("Please wait a moment before trying again",429);if(i.status>=500)throw new t(e||"Something went wrong — please try again",i.status,n);throw new t(e||"Something went wrong",i.status,n)}return i.json()},u=async(e,t)=>{let n=new URLSearchParams({workspace_id:t}),r=await fetch(`/api/artifacts/${e}/content?${n}`,{credentials:"include"});return r.ok?r.text():"(content not available)"};e.s(["acceptInvite",0,e=>r(`/api/invite/${e}`,{method:"POST"}),"addWhitelistEmail",0,(e,t,n)=>r(`/api/agents/${e}/whitelist${o(n)}`,{method:"POST",body:JSON.stringify({email:t})}),"approveMeeting",0,(e,t,n)=>r(`/api/agents/${e}/meetings/${t}/approve${o(n)}`,{method:"POST"}),"cancelActiveTask",0,(e,t)=>r(`/api/conversations/${e}/active-task${o(t)}`,{method:"DELETE"}),"chatInit",0,(e,t,n)=>r(`/api/agents/${e}/chat-init${o(t)}`,{method:"POST",body:JSON.stringify({...n?{channel:n}:{}})}),"checkFreshness",0,(e,t)=>{let n={};return e.conversationId&&(n.conversation_id=e.conversationId),e.agentId&&(n.agent_id=e.agentId),e.channel&&(n.channel=e.channel),r(`/api/conversations/check-fresh${o(t,n)}`)},"conversationInit",0,(e,t,n)=>{let i={};return n?.newestMessageId&&(i.newest_message_id=n.newestMessageId),r(`/api/conversations/${e}/init${o(t,i)}`)},"createAgent",0,(e,t)=>r(`/api/agents${o(t)}`,{method:"POST",body:JSON.stringify(e)}),"createAgentLink",0,(e,t)=>r(`/api/agent-links${o(t)}`,{method:"POST",body:JSON.stringify(e)}),"createBufferedMessage",0,a,"createCalendarEvent",0,(e,t)=>r(`/api/calendar${o(t)}`,{method:"POST",body:JSON.stringify(e)}),"createChannelApi",0,(e,t)=>r(`/api/channels${o(e)}`,{method:"POST",body:JSON.stringify({name:t})}),"createConversation",0,(e,t,n)=>r(`/api/conversations${o(t)}`,{method:"POST",body:JSON.stringify({agent_id:e,...n?{channel:n}:{}})}),"createEmailAccount",0,(e,t,n)=>r(`/api/agents/${e}/email-accounts${o(n)}`,{method:"POST",body:JSON.stringify(t)}),"createInvite",0,e=>r(`/api/workspaces/${e}/invites${o(e)}`,{method:"POST"}),"createIssue",0,c,"createMachineToken",0,(e,t)=>r(`/api/machine-tokens${t?o(t):""}`,{method:"POST",body:JSON.stringify({name:e||"default"})}),"createMeeting",0,(e,t,n)=>r(`/api/agents/${e}/meetings${o(t)}`,{method:"POST",body:JSON.stringify(n)}),"deleteAgent",0,(e,t)=>r(`/api/agents/${e}${o(t)}`,{method:"DELETE"}),"deleteAgentLink",0,(e,t)=>r(`/api/agent-links/${e}${o(t)}`,{method:"DELETE"}),"deleteBufferedMessage",0,(e,t,n)=>r(`/api/conversations/${e}/buffered-messages/${t}${o(n)}`,{method:"DELETE"}),"deleteCalendarEvent",0,(e,t,n)=>r(`/api/calendar/${e}${o(t)}`,{method:"DELETE",...n&&n.scope?{headers:{"Content-Type":"application/json"},body:JSON.stringify(n)}:{}}),"deleteChannelApi",0,(e,t)=>r(`/api/channels/${e}${o(t)}`,{method:"DELETE"}),"deleteEmail",0,(e,t)=>r(`/api/email/${e}${o(t)}`,{method:"DELETE"}),"deleteEmailAccount",0,(e,t,n)=>r(`/api/agents/${e}/email-accounts/${t}${o(n)}`,{method:"DELETE"}),"deleteIssue",0,(e,t)=>r(`/api/issues/${t}${o(e)}`,{method:"DELETE"}),"deleteMachine",0,(e,t)=>r(`/api/runtimes/machine${o(t,{daemon_id:e})}`,{method:"DELETE"}),"deleteMeeting",0,(e,t,n)=>r(`/api/agents/${e}/meetings/${t}${o(n)}`,{method:"DELETE"}),"deleteWorkspace",0,(e,t)=>r(`/api/workspaces/${e}${o(e)}`,{method:"DELETE",body:JSON.stringify({confirm_name:t})}),"fetchLatestCliVersion",0,()=>r("/api/cli/latest-version"),"fetchModelOptions",0,()=>r("/api/config/model-options"),"flagMessage",0,(e,t)=>r(`/api/flags${o(e)}`,{method:"POST",body:JSON.stringify({messageId:t})}),"getActiveTask",0,(e,t)=>r(`/api/conversations/${e}/active-task${o(t)}`),"getAgentSkills",0,(e,t)=>r(`/api/agents/${e}/skills${o(t)}`),"getArtifactContent",0,u,"getCalendarEvent",0,(e,t)=>r(`/api/calendar/${e}${o(t)}`),"getEmail",0,(e,t)=>r(`/api/email/${e}${o(t)}`),"getEmailBody",0,s,"getEmailThread",0,(e,t)=>r(`/api/email/${e}/thread${o(t)}`),"getFlaggedCount",0,e=>r(`/api/flags/count${o(e)}`),"getInboxCount",0,(e,t)=>{let n={};return t?.types?.length&&(n.types=t.types.join(",")),r(`/api/inbox/count${o(e,n)}`)},"getInviteInfo",0,e=>r(`/api/invite/${e}`),"getIssue",0,(e,t)=>r(`/api/issues/${t}${o(e)}`),"getMemberMe",0,e=>r(`/api/members/me${o(e)}`),"getMinCliVersion",0,()=>r("/api/config/min-version"),"getTask",0,(e,t)=>r(`/api/tasks/${e}${o(t)}`),"getTaskMessages",0,(e,t,n)=>r(`/api/tasks/${e}/messages${o(t,n?{since:String(n)}:void 0)}`),"getTrace",0,(e,t)=>r(`/api/traces/${e}${o(t)}`),"getWorkspaceOverview",0,e=>r(`/api/workspaces/${e}/overview${o(e)}`),"grantAgentAccess",0,(e,t,n)=>r(`/api/agents/${t}/access${o(e)}`,{method:"POST",body:JSON.stringify({user_id:n})}),"listAgentAccess",0,(e,t)=>r(`/api/agents/${t}/access${o(e)}`),"listAgentActiveTaskCounts",0,e=>r(`/api/agents/active-task-counts${o(e)}`),"listAgentActivity",0,(e,t,n)=>{let i={};return n?.limit&&(i.limit=String(n.limit)),n?.before&&(i.before=n.before),n?.beforeId&&(i.before_id=n.beforeId),n?.status&&(i.status=n.status),n?.type&&(i.type=n.type),r(`/api/agents/${e}/activity${o(t,i)}`)},"listAgentLinks",0,e=>r(`/api/agent-links${o(e)}`),"listAgentPins",0,e=>r(`/api/agents/pins${o(e)}`),"listAgents",0,e=>r(`/api/agents${o(e)}`),"listArtifacts",0,(e,t)=>r(`/api/artifacts${o(t,{conversation_id:e})}`),"listBufferedMessages",0,(e,t)=>r(`/api/conversations/${e}/buffered-messages${o(t)}`),"listCalendarEvents",0,(e,t)=>{let n={};return t?.agentId&&(n.agentId=t.agentId),t?.from&&(n.from=t.from),t?.to&&(n.to=t.to),r(`/api/calendar${o(e,n)}`)},"listChannels",0,e=>r(`/api/channels${o(e)}`),"listEmailAccounts",0,(e,t)=>r(`/api/agents/${e}/email-accounts${o(t)}`),"listEmails",0,(e,t,n,i)=>r(`/api/email${o(t,{agentId:e,...n?{folder:n}:{},...i?{address:i}:{}})}`),"listFlaggedItems",0,(e,t)=>{let n={};return t?.limit&&(n.limit=String(t.limit)),t?.before&&(n.before=t.before),r(`/api/flags${o(e,n)}`)},"listFlaggedMessageIds",0,(e,t)=>r(`/api/flags${o(e,{conversation_id:t,ids_only:"true"})}`),"listInboxItems",0,(e,t)=>{let n={};return t?.limit&&(n.limit=String(t.limit)),t?.before&&(n.before=t.before),t?.types?.length&&(n.types=t.types.join(",")),r(`/api/inbox${o(e,n)}`)},"listInvites",0,e=>r(`/api/workspaces/${e}/invites${o(e)}`),"listIssues",0,(e,t)=>{let n={};return t?.agentId&&(n.agentId=t.agentId),t?.status&&(n.status=t.status),t?.terminal!==void 0&&(n.terminal=String(t.terminal)),r(`/api/issues${o(e,n)}`)},"listMeetings",0,(e,t)=>r(`/api/agents/${e}/meetings${o(t)}`),"listMembers",0,e=>r(`/api/workspaces/${e}/members${o(e)}`),"listMessages",0,(e,t,n)=>{let i={};return n?.limit&&(i.limit=String(n.limit)),n?.before&&(i.before=n.before),n?.beforeId&&(i.before_id=n.beforeId),r(`/api/conversations/${e}/messages${o(t,i)}`)},"listMessagesAroundTask",0,(e,t,n)=>r(`/api/conversations/${e}/messages${o(t,{around_task:n})}`),"listPreviousConversations",0,(e,t,n)=>{let i={exclude:n.exclude,before:n.before};return n.channel&&(i.channel=n.channel),n.limit&&(i.limit=String(n.limit)),r(`/api/agents/${e}/conversations${o(t,i)}`)},"listRuntimes",0,e=>r(`/api/runtimes${o(e)}`),"listTraces",0,(e,t)=>{let n={};return t?.limit&&(n.limit=String(t.limit)),t?.before&&(n.before=t.before),t?.status&&(n.status=t.status),t?.multiAgent&&(n.multiAgent="true"),t?.agentId&&(n.agentId=t.agentId),t?.channel&&(n.channel=t.channel),r(`/api/traces${o(e,n)}`)},"listWhitelist",0,(e,t)=>r(`/api/agents/${e}/whitelist${o(t)}`),"listWorkspaceActiveTasks",0,e=>r(`/api/agents/active-tasks${o(e)}`),"listWorkspaces",0,()=>r("/api/workspaces"),"markAllInboxRead",0,e=>r(`/api/inbox/read-all${o(e)}`,{method:"POST"}),"markInboxRead",0,(e,t)=>r(`/api/inbox/read${o(t)}`,{method:"POST",body:JSON.stringify({conversationId:e})}),"pinAgent",0,(e,t)=>r(`/api/agents/${t}/pin${o(e)}`,{method:"POST"}),"removeMember",0,(e,t)=>r(`/api/workspaces/${e}/members/${t}${o(e)}`,{method:"DELETE"}),"removeWhitelistEmail",0,(e,t,n)=>r(`/api/agents/${e}/whitelist/${t}${o(n)}`,{method:"DELETE"}),"renameChannelApi",0,(e,t,n)=>r(`/api/channels/${e}${o(t)}`,{method:"PATCH",body:JSON.stringify({name:n})}),"reorderAgentPins",0,(e,t)=>r(`/api/agents/pins/reorder${o(e)}`,{method:"PUT",body:JSON.stringify({ordered_agent_ids:t})}),"reorderChannelsApi",0,(e,t)=>r(`/api/channels/reorder${o(e)}`,{method:"PUT",body:JSON.stringify({ordered_channel_ids:t})}),"reorderUnpinnedAgents",0,(e,t)=>r(`/api/agents/sidebar/reorder${o(e)}`,{method:"PUT",body:JSON.stringify({ordered_agent_ids:t})}),"requestWorkspaceBrowse",0,(e,t,n,i)=>r(`/api/agents/${e}/workspace/browse${o(t)}`,{method:"POST",body:JSON.stringify({request_type:n,path:i})}),"retryTask",0,(e,t)=>r(`/api/tasks/${e}/retry${o(t)}`,{method:"POST"}),"revokeAgentAccess",0,(e,t,n,i=!1)=>r(`/api/agents/${t}/access/${n}${o(e)}${i?"&remove_whitelist=true":""}`,{method:"DELETE"}),"revokeInvite",0,(e,t)=>r(`/api/workspaces/${e}/invites/${t}${o(e)}`,{method:"DELETE"}),"sendEmail",0,(e,t,n,i,a,s,l,c)=>r(`/api/email/send${o(a)}`,{method:"POST",body:JSON.stringify({agentId:e,to:t,subject:n,htmlBody:i,attachments:s,...l,customAccountId:c})}),"sendMessage",0,i,"stopMeeting",0,(e,t,n)=>r(`/api/agents/${e}/meetings/${t}/stop${o(n)}`,{method:"POST"}),"syncEmailAccount",0,(e,t,n)=>r(`/api/agents/${e}/email-accounts/${t}/sync${o(n)}`,{method:"POST"}),"triggerRuntimeRescan",0,(e,t)=>r(`/api/runtimes/${e}/rescan${o(t)}`,{method:"POST"}),"triggerRuntimeUpdate",0,(e,t)=>r(`/api/runtimes/${e}/update${o(t)}`,{method:"POST"}),"unflagMessage",0,(e,t)=>r(`/api/flags/${t}${o(e)}`,{method:"DELETE"}),"unpinAgent",0,(e,t)=>r(`/api/agents/${t}/pin${o(e)}`,{method:"DELETE"}),"updateAgent",0,(e,t,n)=>r(`/api/agents/${e}${o(n)}`,{method:"PATCH",body:JSON.stringify(t)}),"updateAgentLink",0,(e,t,n)=>r(`/api/agent-links/${e}${o(n)}`,{method:"PATCH",body:JSON.stringify(t)}),"updateCalendarEvent",0,(e,t,n)=>r(`/api/calendar/${e}${o(n)}`,{method:"PATCH",body:JSON.stringify(t)}),"updateEmailStatus",0,(e,t,n)=>r(`/api/email/${e}${o(t)}`,{method:"PATCH",body:JSON.stringify({status:n})}),"updateIssue",0,(e,t,n)=>r(`/api/issues/${t}${o(e)}`,{method:"PATCH",body:JSON.stringify(n)}),"updateMemberMe",0,(e,t)=>r(`/api/members/me${o(e)}`,{method:"PATCH",body:JSON.stringify({global_instruction:t})}),"updateWorkspace",0,(e,t)=>r(`/api/workspaces/${e}${o(e)}`,{method:"PATCH",body:JSON.stringify(t)}),"uploadEmailAttachment",0,l],222862)},500324,e=>{"use strict";var t=e.i(368075),n=e.i(298699);let r=(0,n.createContext)(null);e.s(["WorkspaceProvider",0,function({workspaceId:e,slug:o,children:i}){return(0,n.useEffect)(()=>{try{localStorage.setItem("lastWorkspace",o)}catch{}},[o]),(0,t.jsx)(r.Provider,{value:{workspaceId:e,slug:o},children:i})},"useWorkspace",0,function(){let e=(0,n.useContext)(r);if(!e)throw Error("useWorkspace must be used within WorkspaceProvider");return e}])},642342,e=>{"use strict";var t=e.i(459119),n=e.i(298699);let r=(0,e.i(613349).isLocalMode)(),o=Number(t.default.env.NEXT_PUBLIC_WS_DO_PORT)||8789,i=Number(t.default.env.NEXT_PUBLIC_WS_RECONNECT_DELAY_MS)||1e3,a=Number(t.default.env.NEXT_PUBLIC_WS_RECONNECT_MAX_DELAY_MS)||3e4;e.s(["useUserWs",0,function(e,t){let s=(0,n.useRef)(null),l=(0,n.useRef)(i),c=(0,n.useRef)(e),u=(0,n.useRef)(t?.onReconnect),d=(0,n.useRef)(null),f=(0,n.useRef)(!1),m=(0,n.useRef)(0),p=(0,n.useRef)(null),g=(0,n.useRef)(null);(0,n.useEffect)(()=>{c.current=e},[e]),(0,n.useEffect)(()=>{u.current=t?.onReconnect},[t?.onReconnect]);let _=(0,n.useRef)(null),h=(0,n.useCallback)(()=>{let e=Math.min(l.current,a);l.current=Math.min(2*e,a),d.current=setTimeout(()=>{_.current?.()},e+500*Math.random())},[]),E=(0,n.useCallback)(async()=>{let e,t,n,a=o;try{let n=await fetch("/api/ws/token");if(!n.ok){console.warn("[ws] token fetch failed:",n.status),h();return}let r=await n.json();e=r.userId,t=r.token,r.wsPort&&(a=r.wsPort)}catch(e){console.warn("[ws] token fetch error:",e),h();return}let d=r?`ws://localhost:${a}/?userId=${e}`:`${location.origin.replace("http","ws")}/api/ws/user?userId=${e}`;try{n=new WebSocket(d)}catch(e){console.warn("[ws] WebSocket creation failed:",e),h();return}s.current=n,n.onopen=()=>{l.current=i,n.send(JSON.stringify({type:"auth",token:t})),f.current&&u.current?.(),f.current=!0,m.current=Date.now(),p.current=setInterval(()=>{n.readyState===WebSocket.OPEN&&n.send("ping")},25e3),g.current=setInterval(()=>{Date.now()-m.current>3e4&&n.close()},5e3)},n.onmessage=e=>{m.current=Date.now();try{let t=JSON.parse(e.data);if("auth.ok"===t.type)return;c.current(t)}catch{}},n.onerror=()=>{},n.onclose=()=>{n===s.current&&(p.current&&(clearInterval(p.current),p.current=null),g.current&&(clearInterval(g.current),g.current=null),h())}},[h]);(0,n.useEffect)(()=>{_.current=E},[E]),(0,n.useEffect)(()=>(E(),()=>{null!==d.current&&(clearTimeout(d.current),d.current=null),p.current&&(clearInterval(p.current),p.current=null),g.current&&(clearInterval(g.current),g.current=null);let e=s.current;s.current=null,e?.close()}),[E])}])},355578,e=>{"use strict";var t=e.i(368075),n=e.i(298699),r=e.i(222862),o=e.i(880932),i=e.i(642342);let a=(0,n.createContext)(null);e.s(["AgentProvider",0,function({workspaceId:e,children:s}){let[l,c]=(0,n.useState)([]),[u,d]=(0,n.useState)([]),[f,m]=(0,n.useState)(!0),[p,g]=(0,n.useState)({}),[_,h]=(0,n.useState)([]),E=(0,n.useRef)(!1),[C,w]=(0,n.useState)([]),[S,y]=(0,n.useState)(new Map),[T,O]=(0,n.useState)(new Map),k=(0,n.useRef)(!1),v=(0,n.useRef)(new Set),b=(0,n.useRef)(!0),M=(0,n.useRef)(!1),$=(0,n.useCallback)(e=>(v.current.add(e),()=>{v.current.delete(e)}),[]),I=(0,n.useRef)(!1),P=(0,n.useCallback)(async()=>{if(!I.current){I.current=!0;try{if(E.current){let t=await (0,r.listWorkspaceActiveTasks)(e);if(!b.current)return;h(t.tasks);let n={};for(let e of t.tasks)n[e.agent_id]=(n[e.agent_id]??0)+1;g(n),E.current=t.tasks.length>0}else{let t=await (0,r.listAgentActiveTaskCounts)(e);if(!b.current)return;if(g(t.counts),Object.values(t.counts).some(e=>e>0)){E.current=!0;let t=await (0,r.listWorkspaceActiveTasks)(e);b.current&&h(t.tasks)}else h([])}}catch{}finally{I.current=!1}}},[e]);(0,n.useEffect)(()=>{b.current=!0,P();let e=setInterval(P,15e3);return()=>{b.current=!1,clearInterval(e)}},[P]);let N=(0,n.useCallback)(async()=>{try{let[t,n,o,i]=await Promise.all([(0,r.listAgents)(e),(0,r.listRuntimes)(e),(0,r.listAgentPins)(e),(0,r.listAgentLinks)(e)]);c(t),d(n),w(i),y(new Map(o.pins.map(e=>[e.agent_id,{created_at:e.created_at,position:e.position}]))),O(new Map(o.sidebar_order.map(e=>[e.agent_id,e.position])))}catch(e){o.toast.error(e instanceof Error?e.message:"Failed to load data")}finally{m(!1),k.current=!0}},[e]),A=(0,n.useCallback)(async()=>{if(!M.current){M.current=!0;try{let t=await (0,r.listRuntimes)(e);d(t)}catch{}finally{M.current=!1}}},[e]);(0,n.useEffect)(()=>{N()},[N]),(0,n.useEffect)(()=>{let e=null,t=setInterval(()=>{"visible"===document.visibilityState&&A()},3e4),n=()=>{"visible"===document.visibilityState&&(e=setTimeout(()=>A(),2e3*Math.random()))};return document.addEventListener("visibilitychange",n),()=>{clearInterval(t),e&&clearTimeout(e),document.removeEventListener("visibilitychange",n)}},[A]);let D=(0,n.useCallback)(t=>{for(let e of v.current)e(t);switch(t.type){case"runtime.registered":if(t.workspaceId!==e)break;N();break;case"runtime.deleted":N();break;case"runtime.status":if(t.workspaceId!==e)break;A();break;case"task.updated":P()}},[N,A,P,e]);(0,i.useUserWs)(D,{onReconnect:A});let R=(0,n.useCallback)(async t=>{try{let n=await (0,r.createAgent)(t,e);return await N(),n}catch(e){return o.toast.error(e instanceof Error?e.message:"Failed to create agent"),null}},[N,e]),x=(0,n.useCallback)(async(t,n)=>{try{return await (0,r.updateAgent)(t,n,e),await N(),!0}catch(e){return o.toast.error(e instanceof Error?e.message:"Failed to update agent"),!1}},[N,e]),L=(0,n.useCallback)(async t=>{try{return await (0,r.deleteAgent)(t,e),await N(),!0}catch(e){return o.toast.error(e instanceof Error?e.message:"Failed to remove agent"),!1}},[N,e]),U=(0,n.useCallback)(async t=>{y(e=>{let n=Math.max(-1,...[...e.values()].map(e=>e.position));return new Map(e).set(t,{created_at:new Date().toISOString(),position:n+1})});try{await (0,r.pinAgent)(e,t)}catch{y(e=>{let n=new Map(e);return n.delete(t),n}),o.toast.error("Failed to pin agent")}},[e]),q=(0,n.useCallback)(async t=>{let n;y(e=>{n=e.get(t);let r=new Map(e);return r.delete(t),r});try{await (0,r.unpinAgent)(e,t)}catch{void 0!==n&&y(e=>new Map(e).set(t,n)),o.toast.error("Failed to unpin agent")}},[e]),W=(0,n.useCallback)(async t=>{let n=new Map(S);y(e=>{let n=new Map(e);return t.forEach((e,t)=>{let r=n.get(e);r&&n.set(e,{...r,position:t})}),n});try{await (0,r.reorderAgentPins)(e,t)}catch{y(n),o.toast.error("Failed to reorder pins")}},[e,S]),F=(0,n.useCallback)(async t=>{let n=new Map(T);O(new Map(t.map((e,t)=>[e,t])));try{await (0,r.reorderUnpinnedAgents)(e,t)}catch{O(n),o.toast.error("Failed to reorder agents")}},[e,T]),j=(0,n.useCallback)(()=>{let e=u.find(e=>"online"===e.status);return e?.id??""},[u]),J=(0,n.useCallback)(async()=>{try{return(await (0,r.createMachineToken)("cli",e)).token}catch(e){return o.toast.error(e instanceof Error?e.message:"Failed to generate token"),null}},[e]),V=(0,n.useCallback)(async t=>{try{return await (0,r.deleteMachine)(t,e),await N(),!0}catch(e){return o.toast.error(e instanceof Error?e.message:"Failed to remove machine"),!1}},[N,e]);return(0,t.jsx)(a.Provider,{value:{workspaceId:e,agents:l,agentLinks:C,runtimes:u,loading:f,activeTaskCounts:p,activeTaskDetails:_,pins:S,reload:N,subscribeWs:$,handleCreateAgent:R,handleUpdateAgent:x,handleDeleteAgent:L,handlePinAgent:U,handleUnpinAgent:q,handleReorderPins:W,unpinnedOrder:T,handleReorderUnpinned:F,getFirstOnlineRuntimeId:j,handleGenerateToken:J,handleDeleteMachine:V},children:s})},"useAgentContext",0,function(){let e=(0,n.useContext)(a);if(!e)throw Error("useAgentContext must be used within AgentProvider");return e},"useAgentContextSafe",0,function(){return(0,n.useContext)(a)}])},980630,e=>{"use strict";let t="browser-notification-enabled",n="browser-notification-events",r=["completed","failed"],o={completed:"Task Completed",failed:"Task Failed"};function i(){return"Notification"in window}function a(){return"true"===localStorage.getItem(t)}function s(){try{let e=localStorage.getItem(n);if(e)return JSON.parse(e)}catch{}return[...r]}async function l(){return!!i()&&("granted"===Notification.permission||"denied"!==Notification.permission&&"granted"===await Notification.requestPermission())}e.s(["NOTIFICATION_EVENTS",0,r,"NOTIFICATION_EVENT_LABELS",0,o,"getNotificationEnabled",0,a,"getNotificationEvents",0,s,"isNotificationSupported",0,i,"requestNotificationPermission",0,l,"sendTaskNotification",0,function(e,t,n){if(!i()||"granted"!==Notification.permission||!a()||!s().includes(e))return;let r=o[e]??`Task ${e}`;new Notification(t?`${t} — ${r}`:r,{body:n??"",icon:"/alook.svg"})},"setNotificationEnabled",0,function(e){localStorage.setItem(t,String(e))},"setNotificationEvents",0,function(e){localStorage.setItem(n,JSON.stringify(e))}])},875494,685835,e=>{"use strict";var t=e.i(368075),n=e.i(298699),r=e.i(222862),o=e.i(355578),i=e.i(500324),a=e.i(980630);let s="inbox-filter-types",l=["user_dm_message","calendar_event","email_notification"],c=["user_dm_message"],u=["user_dm_message"];function d(){try{let e=localStorage.getItem(s);if(!e)return c;let t=JSON.parse(e).filter(e=>l.includes(e));if(0===t.length)return c;for(let e of u)t.includes(e)||t.unshift(e);return t}catch{return c}}e.s(["INBOX_FILTER_LABELS",0,{user_dm_message:"DM",calendar_event:"Calendar",email_notification:"Email"},"INBOX_FILTER_TYPES",0,l,"MANDATORY_INBOX_TYPES",0,u,"getInboxFilterTypes",0,d,"setInboxFilterTypes",0,function(e){let t=[...e];for(let e of u)t.includes(e)||t.unshift(e);localStorage.setItem(s,JSON.stringify(t))}],685835);let f=(0,n.createContext)(null),m={count:0,refresh:()=>{},decrement:()=>{}};e.s(["InboxCountProvider",0,function({children:e}){let{workspaceId:s}=(0,i.useWorkspace)(),{subscribeWs:l,agents:c}=(0,o.useAgentContext)(),[u,m]=(0,n.useState)(0),p=(0,n.useRef)(null),g=(0,n.useRef)(null),_=(0,n.useRef)(c);(0,n.useEffect)(()=>{_.current=c});let h=(0,n.useCallback)(()=>{let e=d();(0,r.getInboxCount)(s,{types:e}).then(e=>{let t=p.current;if(p.current=e.count,m(e.count),null!==t&&e.count>t){let e=g.current?_.current.find(e=>e.id===g.current):void 0;(0,a.sendTaskNotification)("completed",e?.name)}g.current=null}).catch(()=>{})},[s]),E=(0,n.useCallback)(()=>{m(e=>{let t=Math.max(0,e-1);return p.current=t,t})},[]);return(0,n.useEffect)(()=>{h()},[h]),(0,n.useEffect)(()=>l(e=>{"task.updated"===e.type&&("completed"===e.status||"failed"===e.status)&&(g.current=e.agentId,h())}),[l,h]),(0,n.useEffect)(()=>{let e=setInterval(h,6e4);return()=>clearInterval(e)},[h]),(0,t.jsx)(f.Provider,{value:{count:u,refresh:h,decrement:E},children:e})},"useInboxCount",0,function(){return(0,n.useContext)(f)??m}],875494)},192935,e=>{e.v({button:"cloud-code-monster-pet-module__wqv_bq__button","cloud-code-monster-bell-alert":"cloud-code-monster-pet-module__wqv_bq__cloud-code-monster-bell-alert","cloud-code-monster-breathe":"cloud-code-monster-pet-module__wqv_bq__cloud-code-monster-breathe","cloud-code-monster-faint":"cloud-code-monster-pet-module__wqv_bq__cloud-code-monster-faint","cloud-code-monster-footprint":"cloud-code-monster-pet-module__wqv_bq__cloud-code-monster-footprint","cloud-code-monster-keytap":"cloud-code-monster-pet-module__wqv_bq__cloud-code-monster-keytap","cloud-code-monster-left-foot":"cloud-code-monster-pet-module__wqv_bq__cloud-code-monster-left-foot","cloud-code-monster-peek":"cloud-code-monster-pet-module__wqv_bq__cloud-code-monster-peek","cloud-code-monster-phone":"cloud-code-monster-pet-module__wqv_bq__cloud-code-monster-phone","cloud-code-monster-phone-glow":"cloud-code-monster-pet-module__wqv_bq__cloud-code-monster-phone-glow","cloud-code-monster-read":"cloud-code-monster-pet-module__wqv_bq__cloud-code-monster-read","cloud-code-monster-right-foot":"cloud-code-monster-pet-module__wqv_bq__cloud-code-monster-right-foot","cloud-code-monster-shaken":"cloud-code-monster-pet-module__wqv_bq__cloud-code-monster-shaken","cloud-code-monster-shock-pixels":"cloud-code-monster-pet-module__wqv_bq__cloud-code-monster-shock-pixels","cloud-code-monster-sleep":"cloud-code-monster-pet-module__wqv_bq__cloud-code-monster-sleep","cloud-code-monster-sleep-pixels":"cloud-code-monster-pet-module__wqv_bq__cloud-code-monster-sleep-pixels","cloud-code-monster-snack":"cloud-code-monster-pet-module__wqv_bq__cloud-code-monster-snack","cloud-code-monster-startled":"cloud-code-monster-pet-module__wqv_bq__cloud-code-monster-startled","cloud-code-monster-thought":"cloud-code-monster-pet-module__wqv_bq__cloud-code-monster-thought","cloud-code-monster-walk":"cloud-code-monster-pet-module__wqv_bq__cloud-code-monster-walk",footprint:"cloud-code-monster-pet-module__wqv_bq__footprint",footsteps:"cloud-code-monster-pet-module__wqv_bq__footsteps",notificationBell:"cloud-code-monster-pet-module__wqv_bq__notificationBell",notificationBellPixel:"cloud-code-monster-pet-module__wqv_bq__notificationBellPixel",pet:"cloud-code-monster-pet-module__wqv_bq__pet",petLayer:"cloud-code-monster-pet-module__wqv_bq__petLayer"})},105583,e=>{"use strict";var t=e.i(368075),n=e.i(298699),r=e.i(355578),o=e.i(875494),i=e.i(192935),a=e.i(396328),s=e.i(434623),l=e.i(460520);function c(e,t){let n=t?.getBoundingClientRect();return{x:e.clientX-(n?.left??0),y:e.clientY-(n?.top??0)}}var u=e.i(961909),d=e.i(399561);let f=[];function m({boundaryRef:e,initialPosition:p,previewComebackToken:g=0,notificationToken:_=0,peekTargets:h=f}){let E,C,w,[S,y]=(0,n.useState)(null),[T,O]=(0,n.useState)(null),[k,v]=(0,n.useState)(!1),[b,M]=(0,n.useState)(!1),[$,I]=(0,n.useState)(!1),[P,N]=(0,n.useState)(!1),[A,D]=(0,n.useState)(!1),[R,x]=(0,n.useState)(!1),[L,U]=(0,n.useState)(!1),[q,W]=(0,n.useState)(d.CLOUD_CODE_MONSTER_PET_PRESETS[0].id),[F,j]=(0,n.useState)(1),[J,V]=(0,n.useState)("right"),[B,H]=(0,n.useState)([]),K=(0,n.useRef)(0),Y=(0,n.useRef)(null),Z=(0,n.useRef)(1),z=(0,n.useRef)("left"),X=(0,n.useRef)(null),G=(0,n.useRef)([]),Q=(0,n.useRef)(h),{clearAllPetTimers:ee,clearPetTimer:et,setPetTimer:en}=(E=(0,n.useRef)({reaction:null,shake:null,faint:null,autonomousWalk:null,peek:null,peekStop:null,notification:null,walkSettle:null,walkToTargetPeek:null}),C=(0,n.useCallback)(e=>{let t=E.current[e];null!==t&&(window.clearTimeout(t),E.current[e]=null)},[]),w=(0,n.useCallback)((e,t,n)=>{C(e),E.current[e]=window.setTimeout(()=>{E.current[e]=null,t()},n)},[C]),{clearAllPetTimers:(0,n.useCallback)(()=>{for(let e of Object.keys(E.current))C(e)},[C]),clearPetTimer:C,setPetTimer:w});(0,n.useEffect)(()=>{let e=e=>{W(e?(0,d.getCloudCodeMonsterPreset)(e).id:(0,d.readCloudCodeMonsterPetPresetId)())},t=t=>{e(t.detail?.presetId)},n=t=>{t.key===l.CLOUD_CODE_MONSTER_PRESET_STORAGE_KEY&&e(t.newValue)};return e(),window.addEventListener(l.CLOUD_CODE_MONSTER_PRESET_CHANGED_EVENT,t),window.addEventListener("storage",n),()=>{window.removeEventListener(l.CLOUD_CODE_MONSTER_PRESET_CHANGED_EVENT,t),window.removeEventListener("storage",n)}},[]),(0,n.useEffect)(()=>{let e=(0,a.resolveCloudCodeMonsterVisibleState)((0,a.readStoredActivity)());(0,a.writeStoredActivity)(e),y(e);let t=()=>{let e=Date.now();y(t=>{let n="hidden"===document.visibilityState?(0,a.createCloudCodeMonsterHiddenState)(t,e):(0,a.resolveCloudCodeMonsterVisibleState)(t??(0,a.readStoredActivity)(),e);return(0,a.writeStoredActivity)(n),n})};return document.addEventListener("visibilitychange",t),()=>{document.removeEventListener("visibilitychange",t)}},[]),(0,n.useEffect)(()=>{if(g<=0)return;let e=(0,a.resolveCloudCodeMonsterPreviewComebackState)();(0,a.writeStoredActivity)(e),y(e)},[g]),(0,n.useEffect)(()=>{let t=()=>{let t=(0,a.getBounds)(e.current);O(e=>e?(0,a.clampPetPosition)(e,t,l.CLOUD_CODE_MONSTER_SIZE):(0,a.clampPetPosition)(p??{x:t.width-l.CLOUD_CODE_MONSTER_SIZE.width-112,y:Math.min(.48*t.height,t.height-l.CLOUD_CODE_MONSTER_SIZE.height-120)},t,l.CLOUD_CODE_MONSTER_SIZE))};return t(),window.addEventListener("resize",t),"u">typeof ResizeObserver&&e.current&&(X.current=new ResizeObserver(t),X.current.observe(e.current)),()=>{window.removeEventListener("resize",t),X.current?.disconnect(),X.current=null}},[e,p]),(0,n.useEffect)(()=>ee,[ee]);let er=(0,n.useMemo)(()=>S?.activityId?s.CLOUD_CODE_MONSTER_ACTIVITIES.find(e=>e.id===S.activityId):null,[S]),eo=(0,n.useMemo)(()=>(0,d.getCloudCodeMonsterPreset)(q),[q]),ei=k||b,ea=null!==T,es=h.length>0,el=(0,a.shouldCloudCodeMonsterAutoWalk)(S?.activityId??null);(0,n.useEffect)(()=>{Q.current=h},[h]);let{count:ec}=(0,o.useInboxCount)(),[eu,ed]=(0,n.useState)(!1),ef=(0,n.useRef)(null);(0,n.useEffect)(()=>(!(ec>0)||L||k?0===ec&&(null!==ef.current&&(window.clearTimeout(ef.current),ef.current=null),ed(!1)):null===ef.current&&(ef.current=window.setTimeout(()=>{ef.current=null,ed(!0)},300)),()=>{null!==ef.current&&(window.clearTimeout(ef.current),ef.current=null)}),[ec,L,k]);let em=(0,n.useCallback)((e,t)=>{j(t);let n=performance.now();if(n-K.current>=(0,a.getMonsterFootstepIntervalMs)(t)){let r=z.current;z.current="left"===r?"right":"left";let o="left"===r?25:52;H(n=>[...n.slice(-13),{id:Z.current++,x:e.x+o,y:e.y+l.CLOUD_CODE_MONSTER_SIZE.height-7,side:r,intensity:t}]),K.current=n}},[]),ep=function({boundaryRef:e,targetId:t,enabled:r,position:o,setPosition:i,onArrive:s,onStep:c}){let[u,d]=(0,n.useState)(!1),[f,m]=(0,n.useState)(!1),[p,g]=(0,n.useState)("left"),_=(0,n.useRef)(null),h=(0,n.useRef)(!1),E=(0,n.useRef)(r),C=(0,n.useRef)(o);(0,n.useEffect)(()=>{E.current=r},[r]),(0,n.useEffect)(()=>{C.current=o},[o]);let w=(0,n.useCallback)(()=>{null!==_.current&&(window.clearTimeout(_.current),_.current=null)},[]),S=(0,n.useCallback)(()=>{w(),d(!1),m(!1),h.current=!1},[w]);return(0,n.useEffect)(()=>{if(!r||!t||!o)return void S();if(h.current)return;d(!0),m(!1);let n=()=>{_.current=window.setTimeout(()=>{if(_.current=null,!E.current)return void d(!1);let r=function(e,t){if(!e)return null;let n=e.querySelector(`[data-pet-target-id="${t}"]`)??document.querySelector(`[data-pet-target-id="${t}"]`);if(!n)return null;let r=n.getBoundingClientRect(),o=(0,a.getBounds)(e),i=r.right+22,s=r.top+r.height/2-l.CLOUD_CODE_MONSTER_SIZE.height/2;return(0,a.clampPetPosition)({x:i,y:s},o,l.CLOUD_CODE_MONSTER_SIZE)}(e.current,t),o=C.current;if(!r||!o)return void n();if(10>Math.hypot(r.x-o.x,r.y-o.y)){h.current=!0,d(!1),m(!0),g("left"),i(()=>r),s();return}let u=(0,a.createWalkToTargetVelocity)(o,r,3.2);g(u.x>=0?"right":"left");let f=(0,a.clampPetPosition)({x:o.x+u.x,y:o.y+u.y},(0,a.getBounds)(e.current),l.CLOUD_CODE_MONSTER_SIZE);i(()=>f),c(f,1.45),n()},l.CLOUD_CODE_MONSTER_AUTO_WALK_STEP_MS)};return n(),()=>{w()}},[r,t,!!o,e,S,w,s,c,i]),{isWalking:u,isIdlingAtTarget:f,walkDirection:p}}({boundaryRef:e,targetId:eu?"inbox":null,enabled:eu&&!k&&!A&&!R&&!L,position:T,setPosition:O,onArrive:(0,n.useCallback)(()=>{I(!0),j(1),en("walkToTargetPeek",()=>{I(!1);let e=()=>{en("walkToTargetPeek",()=>{I(!0),en("peekStop",()=>{I(!1),e()},l.CLOUD_CODE_MONSTER_PEEK_MS)},l.CLOUD_CODE_MONSTER_PEEK_INTERVAL_MS)};e()},l.CLOUD_CODE_MONSTER_PEEK_MS)},[en]),onStep:em}),eg=ep.isWalking||ep.isIdlingAtTarget,e_=ei||ep.isWalking,eh=(0,n.useRef)(!1);(0,n.useEffect)(()=>{eh.current&&!eg&&(et("walkToTargetPeek"),I(!1)),eh.current=eg},[eg,et]);let eE=(0,r.useAgentContextSafe)(),eC=(eE?.activeTaskDetails.length??0)>0,ew=(0,n.useRef)(null);(0,n.useEffect)(()=>{if(eC&&!eg){if(!ew.current){let e=["coding","thinking","reading"];ew.current=e[Math.floor(Math.random()*e.length)]}let e=ew.current;y(t=>{if(t?.activityId===e)return t;let n={activityId:e,updatedAt:Date.now(),hiddenAt:null};return(0,a.writeStoredActivity)(n),n})}else if(!eC&&ew.current){ew.current=null;let e=(0,a.createCloudCodeMonsterIdleState)();(0,a.writeStoredActivity)(e),y(e)}},[eC,eg]);let eS=(0,n.useCallback)((e,t)=>{let n=z.current;z.current="left"===n?"right":"left";let r="left"===n?25:52;H(o=>[...o.slice(-13),{id:Z.current++,x:e.x+r,y:e.y+l.CLOUD_CODE_MONSTER_SIZE.height-7,side:n,intensity:t}])},[]);(0,n.useEffect)(()=>{if(!ea||!S?.activityId||!el||k||A||R||L||$||eg){M(!1),j(1),Y.current=null;return}M(!0),Y.current??=(0,a.createCloudCodeMonsterWalkVelocity)();let t=()=>{en("autonomousWalk",()=>{let n=(0,a.getBounds)(e.current);j(1.45),O(e=>{let t=Y.current;if(!e||!t)return e;let r=(0,a.reflectCloudCodeMonsterWalk)(e,t,n,l.CLOUD_CODE_MONSTER_SIZE);Y.current=r.velocity,V(r.velocity.x>=0?"right":"left");let o=performance.now();return o-K.current>=(0,a.getMonsterFootstepIntervalMs)(1.45)&&(eS(r.position,1.45),K.current=o),r.position}),t()},l.CLOUD_CODE_MONSTER_AUTO_WALK_STEP_MS)};return en("autonomousWalk",t,l.CLOUD_CODE_MONSTER_AUTO_WALK_STEP_MS),()=>{et("autonomousWalk")}},[S?.activityId,e,L,ea,k,$,eg,A,et,eS,R,el,en]),(0,n.useEffect)(()=>{if(ea&&es&&!k&&!A&&!R&&!L&&!eg)return en("peek",()=>{let t=Q.current,n=t[Math.floor(Math.random()*t.length)]??t[0];if(!n)return;let r=(0,a.getBounds)(e.current),o=(0,a.resolveCloudCodeMonsterPeekPosition)(n,e.current,r);M(!1),Y.current=null,I(!0),j(1),O(o),en("peekStop",()=>{I(!1)},l.CLOUD_CODE_MONSTER_PEEK_MS)},l.CLOUD_CODE_MONSTER_PEEK_INTERVAL_MS+4e3*Math.random()),()=>{et("peek")}},[e,et,L,es,ea,k,eg,A,R,en]);let ey=(0,n.useCallback)(()=>{y(e=>{if(e&&!e.activityId&&null===e.hiddenAt)return e;let t=(0,a.createCloudCodeMonsterIdleState)();return(0,a.writeStoredActivity)(t),t})},[]),eT=(0,n.useCallback)(()=>{M(!1),I(!1),G.current=[],Y.current=null,et("autonomousWalk"),et("peek"),et("peekStop"),et("walkToTargetPeek")},[et]),eO=(0,n.useCallback)(()=>{D(!0),en("reaction",()=>{D(!1)},l.CLOUD_CODE_MONSTER_REACTION_MS)},[en]);(0,n.useEffect)(()=>{_<=0||(eT(),S?.activityId&&ey(),eO(),N(!0),en("notification",()=>{N(!1)},l.CLOUD_CODE_MONSTER_REACTION_MS+1500))},[S?.activityId,_,en,eO,eT,ey]);let ek=(0,n.useCallback)(()=>{L||(S?.activityId&&ey(),x(!0),en("shake",()=>{x(!1)},l.CLOUD_CODE_MONSTER_SHAKE_REACTION_MS))},[S?.activityId,L,en,ey]),ev=(0,n.useCallback)(()=>{et("faint"),et("reaction"),et("shake"),ey(),eT(),D(!1),x(!1),U(!0),j(1),en("faint",()=>{U(!1)},l.CLOUD_CODE_MONSTER_FAINT_MS)},[et,en,eT,ey]),{handlePetClick:eb,handlePointerDown:eM,handlePointerMove:e$,stopDragging:eI}=function({boundaryRef:e,initialPosition:t,position:r,isDragging:o,fainted:i,activityState:s,lastFootstepAtRef:u,violentDragEventsRef:d,setIsDragging:f,setNotificationActive:m,setFainted:p,setWalkDirection:g,setWalkIntensity:_,setPosition:h,clearPetTimer:E,setPetTimer:C,pushFootprint:w,stopTemporaryMotion:S,wakeMonsterToDefault:y,startShockReaction:T,startShakeReaction:O,startFaintReaction:k}){let v=(0,n.useRef)({x:0,y:0}),b=(0,n.useRef)(null),M=(0,n.useRef)(null),$=(0,n.useRef)(null),I=(0,n.useRef)(!1),P=(0,n.useCallback)(()=>{if(S(),m(!1),E("notification"),I.current){I.current=!1;return}o||(s?.activityId&&y(),i&&(p(!1),E("faint")),T())},[s?.activityId,E,i,o,p,m,T,S,y]),N=(0,n.useCallback)(n=>{if(0!==n.button)return;let o=(0,a.getBounds)(e.current),i=r??(0,a.clampPetPosition)(t??{x:o.width-l.CLOUD_CODE_MONSTER_SIZE.width-112,y:.48*o.height},o,l.CLOUD_CODE_MONSTER_SIZE),s=c(n,e.current),d=performance.now();v.current={x:s.x-i.x,y:s.y-i.y},b.current=s,M.current={point:s,time:d},$.current=null,u.current=d,I.current=!1,S(),f(!0),_(1.1),n.currentTarget.setPointerCapture(n.pointerId)},[e,t,u,r,f,_,S]);return{handlePetClick:P,handlePointerDown:N,handlePointerMove:(0,n.useCallback)(t=>{if(!o)return;let n=(0,a.getBounds)(e.current),r=c(t,e.current),s=performance.now(),f=M.current??{point:r,time:s},m=r.x-f.point.x,p=r.y-f.point.y,E={x:m,y:p},C=Math.hypot(m,p),S=Math.max(1,s-f.time),y=(0,a.calculateMonsterWalkIntensity)(C,S),T=(0,a.clampPetPosition)({x:r.x-v.current.x,y:r.y-v.current.y},n,l.CLOUD_CODE_MONSTER_SIZE),P=b.current??r,N=Math.abs(r.x-P.x),A=Math.abs(r.y-P.y);(N>3||A>3)&&(I.current=!0),Math.abs(m)>.5&&g(m>=0?"right":"left");let D=(0,a.hasViolentMonsterDirectionChange)($.current,E);(!i&&(0,a.isViolentMonsterDrag)(C,S,D)&&O(),!i&&(0,a.isMonsterFaintShakeEvent)(C,S,D)&&(d.current=[...d.current.filter(e=>s-e<=l.CLOUD_CODE_MONSTER_FAINT_EVENT_WINDOW_MS),s],(0,a.shouldFaintFromMonsterShake)(d.current,s)))?k():(_(y),h(T),M.current={point:r,time:s},C>.5&&($.current=E),C>1&&s-u.current>=(0,a.getMonsterFootstepIntervalMs)(y)&&(w(T,y),u.current=s))},[e,i,o,u,w,h,g,_,k,O,d]),stopDragging:(0,n.useCallback)(e=>{o&&(f(!1),d.current=[],b.current=null,M.current=null,$.current=null,C("walkSettle",()=>{_(1)},180),e.currentTarget.hasPointerCapture(e.pointerId)&&e.currentTarget.releasePointerCapture(e.pointerId))},[o,f,C,_,d])}}({activityState:S,boundaryRef:e,fainted:L,initialPosition:p,isDragging:k,lastFootstepAtRef:K,position:T,pushFootprint:eS,setFainted:U,setIsDragging:v,setNotificationActive:N,setPetTimer:en,setPosition:O,setWalkDirection:V,setWalkIntensity:j,clearPetTimer:et,startFaintReaction:ev,startShakeReaction:ek,startShockReaction:eO,stopTemporaryMotion:eT,violentDragEventsRef:G,wakeMonsterToDefault:ey});if(!T||!S)return null;let eP=$||L?null:er;return(0,t.jsxs)("div",{className:i.default.petLayer,children:[(0,t.jsx)("div",{className:i.default.footsteps,"aria-hidden":"true",children:B.map(e=>(0,t.jsx)("span",{className:i.default.footprint,"data-side":e.side,onAnimationEnd:()=>{H(t=>t.filter(t=>t.id!==e.id))},style:{"--monster-footprint-x":`${e.x}px`,"--monster-footprint-y":`${e.y}px`,"--monster-footprint-scale":String(Math.min(1.35,Math.max(.75,e.intensity/1.45)))}},e.id))}),(0,t.jsxs)("aside",{"aria-label":`${eo.name} pixel PET: ${L?"fainted":$?"peeking at work":eP?.label??"idle"}`,className:i.default.pet,"data-activity":eP?.id??"idle","data-dragging":k,"data-walking":e_,"data-direction":eg?ep.walkDirection:J,"data-reaction":R?"shake":A?"shock":"none","data-reacting":A,"data-shaken":R,"data-fainted":L,"data-peeking":$,"data-notifying":P,style:{"--cloud-code-monster-pet-x":`${T.x}px`,"--cloud-code-monster-pet-y":`${T.y}px`,"--monster-walk-duration":`${Math.round(360/Math.max(.75,F))}ms`,"--monster-walk-lift":`-${Math.round(2*Math.max(.75,F))}px`,"--monster-walk-intensity":String(F)},children:[P?(0,t.jsx)("span",{className:i.default.notificationBell,"aria-hidden":"true",children:(0,t.jsxs)("svg",{viewBox:"0 0 24 24",className:`${i.default.notificationBellPixel} size-6`,role:"img",shapeRendering:"crispEdges",children:[(0,t.jsx)("rect",{x:"10",y:"2",width:"4",height:"3",fill:"#2b2112"}),(0,t.jsx)("rect",{x:"8",y:"5",width:"8",height:"3",fill:"#2b2112"}),(0,t.jsx)("rect",{x:"6",y:"8",width:"12",height:"8",fill:"#2b2112"}),(0,t.jsx)("rect",{x:"4",y:"16",width:"16",height:"4",fill:"#2b2112"}),(0,t.jsx)("rect",{x:"9",y:"20",width:"6",height:"2",fill:"#2b2112"}),(0,t.jsx)("rect",{x:"10",y:"5",width:"4",height:"2",fill:"#ffe37a"}),(0,t.jsx)("rect",{x:"8",y:"8",width:"8",height:"8",fill:"#f4c84f"}),(0,t.jsx)("rect",{x:"6",y:"16",width:"12",height:"2",fill:"#f4c84f"}),(0,t.jsx)("rect",{x:"9",y:"9",width:"3",height:"7",fill:"#ffe37a"}),(0,t.jsx)("rect",{x:"13",y:"18",width:"3",height:"2",fill:"#c8922f"})]})}):null,(0,t.jsx)("button",{type:"button",className:i.default.button,"data-dragging":k,"data-fainted":L,onClick:eb,onPointerDown:eM,onPointerMove:e$,onPointerUp:eI,onPointerCancel:eI,onLostPointerCapture:eI,"aria-label":`Claude Code pixel monster is ${L?"fainted":$?"peeking at work":eP?.label??"idle"}. Click to ${eP||L||$?"interrupt it":"notice it"}, drag to make it walk.`,children:(0,t.jsx)(u.MonsterSvg,{activityId:eP?.id??null,preset:eo,reacting:A,shaken:R,fainted:L})})]})]})}e.s(["CloudCodeMonsterPet",0,m],626620),e.i(626620),e.s(["CLOUD_CODE_MONSTER_ACTIVITIES",()=>s.CLOUD_CODE_MONSTER_ACTIVITIES,"CLOUD_CODE_MONSTER_ACTIVITY_REFRESH_MS",()=>l.CLOUD_CODE_MONSTER_ACTIVITY_REFRESH_MS,"CLOUD_CODE_MONSTER_AUTOWALK_ACTIVITY_IDS",()=>s.CLOUD_CODE_MONSTER_AUTOWALK_ACTIVITY_IDS,"CLOUD_CODE_MONSTER_FAINT_MIN_EVENTS",()=>l.CLOUD_CODE_MONSTER_FAINT_MIN_EVENTS,"CLOUD_CODE_MONSTER_FAINT_MS",()=>l.CLOUD_CODE_MONSTER_FAINT_MS,"CLOUD_CODE_MONSTER_PET_PRESETS",()=>d.CLOUD_CODE_MONSTER_PET_PRESETS,"CLOUD_CODE_MONSTER_PRESET_CHANGED_EVENT",()=>l.CLOUD_CODE_MONSTER_PRESET_CHANGED_EVENT,"CLOUD_CODE_MONSTER_PRESET_STORAGE_KEY",()=>l.CLOUD_CODE_MONSTER_PRESET_STORAGE_KEY,"CloudCodeMonsterPet",0,m,"CloudCodeMonsterPresetPreview",()=>u.CloudCodeMonsterPresetPreview,"calculateMonsterWalkIntensity",()=>a.calculateMonsterWalkIntensity,"clampPetPosition",()=>a.clampPetPosition,"createCloudCodeMonsterHiddenState",()=>a.createCloudCodeMonsterHiddenState,"createCloudCodeMonsterIdleState",()=>a.createCloudCodeMonsterIdleState,"createCloudCodeMonsterPreviewAwayState",()=>a.createCloudCodeMonsterPreviewAwayState,"createCloudCodeMonsterWalkVelocity",()=>a.createCloudCodeMonsterWalkVelocity,"createWalkToTargetVelocity",()=>a.createWalkToTargetVelocity,"getCloudCodeMonsterExpression",()=>a.getCloudCodeMonsterExpression,"getCloudCodeMonsterPreset",()=>d.getCloudCodeMonsterPreset,"getMonsterFootstepIntervalMs",()=>a.getMonsterFootstepIntervalMs,"hasViolentMonsterDirectionChange",()=>a.hasViolentMonsterDirectionChange,"isMonsterFaintShakeEvent",()=>a.isMonsterFaintShakeEvent,"isViolentMonsterDrag",()=>a.isViolentMonsterDrag,"pickCloudCodeMonsterActivity",()=>a.pickCloudCodeMonsterActivity,"readCloudCodeMonsterPetPresetId",()=>d.readCloudCodeMonsterPetPresetId,"reflectCloudCodeMonsterWalk",()=>a.reflectCloudCodeMonsterWalk,"resolveCloudCodeMonsterActivityState",()=>a.resolveCloudCodeMonsterActivityState,"resolveCloudCodeMonsterPeekPosition",()=>a.resolveCloudCodeMonsterPeekPosition,"resolveCloudCodeMonsterPreviewComebackState",()=>a.resolveCloudCodeMonsterPreviewComebackState,"resolveCloudCodeMonsterVisibleState",()=>a.resolveCloudCodeMonsterVisibleState,"shouldCloudCodeMonsterAutoWalk",()=>a.shouldCloudCodeMonsterAutoWalk,"shouldFaintFromMonsterShake",()=>a.shouldFaintFromMonsterShake,"shouldRefreshCloudCodeMonsterActivity",()=>a.shouldRefreshCloudCodeMonsterActivity,"writeCloudCodeMonsterPetPresetId",()=>d.writeCloudCodeMonsterPetPresetId],105583)},928210,e=>{e.n(e.i(105583))},631822,e=>{e.v(t=>Promise.all(["static/chunks/0wjp8xrzix2_f.js"].map(t=>e.l(t))).then(()=>t(70725)))}]);
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,222862,636557,e=>{"use strict";class t extends Error{status;details;constructor(e,t,n){super(e),this.name="ApiError",this.status=t,this.details=n}get isNetworkError(){return 0===this.status}get isRateLimit(){return 429===this.status}get isUnauthorized(){return 401===this.status}}function n(e,t){return"validation error"===e&&t?.length?function(e){let[t,...n]=e.split(":"),r=n.join(":").trim();if(!r)return e;let o=t.trim(),i=o.trim().replace(/[_-]+/g," ").replace(/\b\w/g,e=>e.toUpperCase()),a=r.replace(/^required$/i,"is required"),s=a.toLowerCase().replace(/[_-]+/g," "),l=o.toLowerCase().replace(/[_-]+/g," ");return l&&s.startsWith(`${l} `)&&(a=a.slice(o.length).trimStart()),i?`${i} ${a}`:a}(t[0]):e}async function r(e,r){let o;try{o=await fetch(""+e,{...r,credentials:"include",headers:{"Content-Type":"application/json",...r?.headers}})}catch(e){if(e instanceof TypeError)throw new t("Unable to connect — check your network",0);throw e}if(401===o.status)throw window.location.href="/sign-in",new t("Unauthorized",401);if(!o.ok){let e,r;try{let t=await o.json();e=t.error,r=t.details}catch{}if(429===o.status)throw new t("Please wait a moment before trying again",429);if(o.status>=500)throw new t(n(e,r)||"Something went wrong — please try again",o.status,r);throw new t(n(e,r)||"Something went wrong",o.status,r)}if(204!==o.status)return o.json()}function o(e,t){let n=new URLSearchParams({workspace_id:e,...t});return`?${n.toString()}`}e.s(["ApiError",0,t],636557);let i=async(e,n,i,a)=>{let s;if(!a||0===a.length)return r(`/api/conversations/${e}/messages${o(i)}`,{method:"POST",body:JSON.stringify({content:n})});let l=new FormData;for(let e of(l.append("content",n),a))l.append("file",e);try{s=await fetch(`/api/conversations/${e}/messages${o(i)}`,{method:"POST",credentials:"include",body:l})}catch(e){if(e instanceof TypeError)throw new t("Unable to connect — check your network",0);throw e}if(401===s.status)throw window.location.href="/sign-in",new t("Unauthorized",401);if(!s.ok){let e,n;try{let t=await s.json();e=t.error,n=t.details}catch{}if(429===s.status)throw new t("Please wait a moment before trying again",429);if(s.status>=500)throw new t(e||"Something went wrong — please try again",s.status,n);throw new t(e||"Something went wrong",s.status,n)}return s.json()},a=async(e,n,i,a)=>{let s;if(!a||0===a.length)return r(`/api/conversations/${e}/buffered-messages${o(i)}`,{method:"POST",body:JSON.stringify({content:n})});let l=new FormData;for(let e of(l.append("content",n),a))l.append("file",e);try{s=await fetch(`/api/conversations/${e}/buffered-messages${o(i)}`,{method:"POST",credentials:"include",body:l})}catch(e){if(e instanceof TypeError)throw new t("Unable to connect — check your network",0);throw e}if(401===s.status)throw window.location.href="/sign-in",new t("Unauthorized",401);if(!s.ok){let e,n;try{let t=await s.json();e=t.error,n=t.details}catch{}if(429===s.status)throw new t(e||"Maximum follow-ups reached",429);if(s.status>=500)throw new t(e||"Something went wrong — please try again",s.status,n);throw new t(e||"Something went wrong",s.status,n)}return s.json()},s=async(e,t)=>{let n=new URLSearchParams({workspace_id:t}),r=await fetch(`/api/email/${e}/body?${n}`,{credentials:"include"});if(!r.ok)return{content:"(body not available)",isHtml:!1};let o=r.headers.get("Content-Type")??"";return{content:await r.text(),isHtml:o.includes("text/html")}},l=async(e,n)=>{let r=new FormData;r.append("file",e);let i=await fetch(`/api/email/upload${o(n)}`,{method:"POST",credentials:"include",body:r});if(!i.ok)throw new t(await i.text().catch(()=>"Upload failed"),i.status);return i.json()},c=async(e,n)=>{let i;if(!n.files||0===n.files.length)return r(`/api/issues${o(e)}`,{method:"POST",body:JSON.stringify({agent_id:n.agent_id,title:n.title,description:n.description})});let a=new FormData;for(let e of(n.agent_id&&a.append("agent_id",n.agent_id),a.append("title",n.title),a.append("description",n.description??""),n.files))a.append("file",e);try{i=await fetch(`/api/issues${o(e)}`,{method:"POST",credentials:"include",body:a})}catch(e){if(e instanceof TypeError)throw new t("Unable to connect — check your network",0);throw e}if(401===i.status)throw window.location.href="/sign-in",new t("Unauthorized",401);if(!i.ok){let e,n;try{let t=await i.json();e=t.error,n=t.details}catch{}if(429===i.status)throw new t("Please wait a moment before trying again",429);if(i.status>=500)throw new t(e||"Something went wrong — please try again",i.status,n);throw new t(e||"Something went wrong",i.status,n)}return i.json()},u=async(e,t)=>{let n=new URLSearchParams({workspace_id:t}),r=await fetch(`/api/artifacts/${e}/content?${n}`,{credentials:"include"});return r.ok?r.text():"(content not available)"};e.s(["acceptInvite",0,e=>r(`/api/invite/${e}`,{method:"POST"}),"addWhitelistEmail",0,(e,t,n)=>r(`/api/agents/${e}/whitelist${o(n)}`,{method:"POST",body:JSON.stringify({email:t})}),"approveMeeting",0,(e,t,n)=>r(`/api/agents/${e}/meetings/${t}/approve${o(n)}`,{method:"POST"}),"cancelActiveTask",0,(e,t)=>r(`/api/conversations/${e}/active-task${o(t)}`,{method:"DELETE"}),"chatInit",0,(e,t,n)=>r(`/api/agents/${e}/chat-init${o(t)}`,{method:"POST",body:JSON.stringify({...n?{channel:n}:{}})}),"checkFreshness",0,(e,t)=>{let n={};return e.conversationId&&(n.conversation_id=e.conversationId),e.agentId&&(n.agent_id=e.agentId),e.channel&&(n.channel=e.channel),r(`/api/conversations/check-fresh${o(t,n)}`)},"conversationInit",0,(e,t,n)=>{let i={};return n?.newestMessageId&&(i.newest_message_id=n.newestMessageId),r(`/api/conversations/${e}/init${o(t,i)}`)},"createAgent",0,(e,t)=>r(`/api/agents${o(t)}`,{method:"POST",body:JSON.stringify(e)}),"createAgentLink",0,(e,t)=>r(`/api/agent-links${o(t)}`,{method:"POST",body:JSON.stringify(e)}),"createBufferedMessage",0,a,"createCalendarEvent",0,(e,t)=>r(`/api/calendar${o(t)}`,{method:"POST",body:JSON.stringify(e)}),"createChannelApi",0,(e,t)=>r(`/api/channels${o(e)}`,{method:"POST",body:JSON.stringify({name:t})}),"createConversation",0,(e,t,n)=>r(`/api/conversations${o(t)}`,{method:"POST",body:JSON.stringify({agent_id:e,...n?{channel:n}:{}})}),"createEmailAccount",0,(e,t,n)=>r(`/api/agents/${e}/email-accounts${o(n)}`,{method:"POST",body:JSON.stringify(t)}),"createInvite",0,e=>r(`/api/workspaces/${e}/invites${o(e)}`,{method:"POST"}),"createIssue",0,c,"createMachineToken",0,(e,t)=>r(`/api/machine-tokens${t?o(t):""}`,{method:"POST",body:JSON.stringify({name:e||"default"})}),"createMeeting",0,(e,t,n)=>r(`/api/agents/${e}/meetings${o(t)}`,{method:"POST",body:JSON.stringify(n)}),"deleteAgent",0,(e,t)=>r(`/api/agents/${e}${o(t)}`,{method:"DELETE"}),"deleteAgentLink",0,(e,t)=>r(`/api/agent-links/${e}${o(t)}`,{method:"DELETE"}),"deleteBufferedMessage",0,(e,t,n)=>r(`/api/conversations/${e}/buffered-messages/${t}${o(n)}`,{method:"DELETE"}),"deleteCalendarEvent",0,(e,t,n)=>r(`/api/calendar/${e}${o(t)}`,{method:"DELETE",...n&&n.scope?{headers:{"Content-Type":"application/json"},body:JSON.stringify(n)}:{}}),"deleteChannelApi",0,(e,t)=>r(`/api/channels/${e}${o(t)}`,{method:"DELETE"}),"deleteEmail",0,(e,t)=>r(`/api/email/${e}${o(t)}`,{method:"DELETE"}),"deleteEmailAccount",0,(e,t,n)=>r(`/api/agents/${e}/email-accounts/${t}${o(n)}`,{method:"DELETE"}),"deleteIssue",0,(e,t)=>r(`/api/issues/${t}${o(e)}`,{method:"DELETE"}),"deleteMachine",0,(e,t)=>r(`/api/runtimes/machine${o(t,{daemon_id:e})}`,{method:"DELETE"}),"deleteMeeting",0,(e,t,n)=>r(`/api/agents/${e}/meetings/${t}${o(n)}`,{method:"DELETE"}),"deleteWorkspace",0,(e,t)=>r(`/api/workspaces/${e}${o(e)}`,{method:"DELETE",body:JSON.stringify({confirm_name:t})}),"fetchLatestCliVersion",0,()=>r("/api/cli/latest-version"),"fetchModelOptions",0,()=>r("/api/config/model-options"),"flagMessage",0,(e,t)=>r(`/api/flags${o(e)}`,{method:"POST",body:JSON.stringify({messageId:t})}),"getActiveTask",0,(e,t)=>r(`/api/conversations/${e}/active-task${o(t)}`),"getAgentSkills",0,(e,t)=>r(`/api/agents/${e}/skills${o(t)}`),"getArtifactContent",0,u,"getCalendarEvent",0,(e,t)=>r(`/api/calendar/${e}${o(t)}`),"getEmail",0,(e,t)=>r(`/api/email/${e}${o(t)}`),"getEmailBody",0,s,"getEmailThread",0,(e,t)=>r(`/api/email/${e}/thread${o(t)}`),"getFlaggedCount",0,e=>r(`/api/flags/count${o(e)}`),"getInboxCount",0,(e,t)=>{let n={};return t?.types?.length&&(n.types=t.types.join(",")),r(`/api/inbox/count${o(e,n)}`)},"getInviteInfo",0,e=>r(`/api/invite/${e}`),"getIssue",0,(e,t)=>r(`/api/issues/${t}${o(e)}`),"getMemberMe",0,e=>r(`/api/members/me${o(e)}`),"getMinCliVersion",0,()=>r("/api/config/min-version"),"getTask",0,(e,t)=>r(`/api/tasks/${e}${o(t)}`),"getTaskMessages",0,(e,t,n)=>r(`/api/tasks/${e}/messages${o(t,n?{since:String(n)}:void 0)}`),"getTrace",0,(e,t)=>r(`/api/traces/${e}${o(t)}`),"getWorkspaceOverview",0,e=>r(`/api/workspaces/${e}/overview${o(e)}`),"grantAgentAccess",0,(e,t,n)=>r(`/api/agents/${t}/access${o(e)}`,{method:"POST",body:JSON.stringify({user_id:n})}),"listAgentAccess",0,(e,t)=>r(`/api/agents/${t}/access${o(e)}`),"listAgentActiveTaskCounts",0,e=>r(`/api/agents/active-task-counts${o(e)}`),"listAgentActivity",0,(e,t,n)=>{let i={};return n?.limit&&(i.limit=String(n.limit)),n?.before&&(i.before=n.before),n?.beforeId&&(i.before_id=n.beforeId),n?.status&&(i.status=n.status),n?.type&&(i.type=n.type),r(`/api/agents/${e}/activity${o(t,i)}`)},"listAgentLinks",0,e=>r(`/api/agent-links${o(e)}`),"listAgentPins",0,e=>r(`/api/agents/pins${o(e)}`),"listAgents",0,e=>r(`/api/agents${o(e)}`),"listArtifacts",0,(e,t)=>r(`/api/artifacts${o(t,{conversation_id:e})}`),"listBufferedMessages",0,(e,t)=>r(`/api/conversations/${e}/buffered-messages${o(t)}`),"listCalendarEvents",0,(e,t)=>{let n={};return t?.agentId&&(n.agentId=t.agentId),t?.from&&(n.from=t.from),t?.to&&(n.to=t.to),r(`/api/calendar${o(e,n)}`)},"listChannels",0,e=>r(`/api/channels${o(e)}`),"listEmailAccounts",0,(e,t)=>r(`/api/agents/${e}/email-accounts${o(t)}`),"listEmails",0,(e,t,n,i)=>r(`/api/email${o(t,{agentId:e,...n?{folder:n}:{},...i?{address:i}:{}})}`),"listFlaggedItems",0,(e,t)=>{let n={};return t?.limit&&(n.limit=String(t.limit)),t?.before&&(n.before=t.before),r(`/api/flags${o(e,n)}`)},"listFlaggedMessageIds",0,(e,t)=>r(`/api/flags${o(e,{conversation_id:t,ids_only:"true"})}`),"listInboxItems",0,(e,t)=>{let n={};return t?.limit&&(n.limit=String(t.limit)),t?.before&&(n.before=t.before),t?.types?.length&&(n.types=t.types.join(",")),r(`/api/inbox${o(e,n)}`)},"listInvites",0,e=>r(`/api/workspaces/${e}/invites${o(e)}`),"listIssues",0,(e,t)=>{let n={};return t?.agentId&&(n.agentId=t.agentId),t?.status&&(n.status=t.status),t?.terminal!==void 0&&(n.terminal=String(t.terminal)),r(`/api/issues${o(e,n)}`)},"listMeetings",0,(e,t)=>r(`/api/agents/${e}/meetings${o(t)}`),"listMembers",0,e=>r(`/api/workspaces/${e}/members${o(e)}`),"listMessages",0,(e,t,n)=>{let i={};return n?.limit&&(i.limit=String(n.limit)),n?.before&&(i.before=n.before),n?.beforeId&&(i.before_id=n.beforeId),r(`/api/conversations/${e}/messages${o(t,i)}`)},"listMessagesAroundTask",0,(e,t,n)=>r(`/api/conversations/${e}/messages${o(t,{around_task:n})}`),"listPreviousConversations",0,(e,t,n)=>{let i={exclude:n.exclude,before:n.before};return n.channel&&(i.channel=n.channel),n.limit&&(i.limit=String(n.limit)),r(`/api/agents/${e}/conversations${o(t,i)}`)},"listRuntimes",0,e=>r(`/api/runtimes${o(e)}`),"listTraces",0,(e,t)=>{let n={};return t?.limit&&(n.limit=String(t.limit)),t?.before&&(n.before=t.before),t?.status&&(n.status=t.status),t?.multiAgent&&(n.multiAgent="true"),t?.agentId&&(n.agentId=t.agentId),t?.channel&&(n.channel=t.channel),r(`/api/traces${o(e,n)}`)},"listWhitelist",0,(e,t)=>r(`/api/agents/${e}/whitelist${o(t)}`),"listWorkspaceActiveTasks",0,e=>r(`/api/agents/active-tasks${o(e)}`),"listWorkspaces",0,()=>r("/api/workspaces"),"markAllInboxRead",0,e=>r(`/api/inbox/read-all${o(e)}`,{method:"POST"}),"markInboxRead",0,(e,t)=>r(`/api/inbox/read${o(t)}`,{method:"POST",body:JSON.stringify({conversationId:e})}),"pinAgent",0,(e,t)=>r(`/api/agents/${t}/pin${o(e)}`,{method:"POST"}),"removeMember",0,(e,t)=>r(`/api/workspaces/${e}/members/${t}${o(e)}`,{method:"DELETE"}),"removeWhitelistEmail",0,(e,t,n)=>r(`/api/agents/${e}/whitelist/${t}${o(n)}`,{method:"DELETE"}),"renameChannelApi",0,(e,t,n)=>r(`/api/channels/${e}${o(t)}`,{method:"PATCH",body:JSON.stringify({name:n})}),"reorderAgentPins",0,(e,t)=>r(`/api/agents/pins/reorder${o(e)}`,{method:"PUT",body:JSON.stringify({ordered_agent_ids:t})}),"reorderChannelsApi",0,(e,t)=>r(`/api/channels/reorder${o(e)}`,{method:"PUT",body:JSON.stringify({ordered_channel_ids:t})}),"reorderUnpinnedAgents",0,(e,t)=>r(`/api/agents/sidebar/reorder${o(e)}`,{method:"PUT",body:JSON.stringify({ordered_agent_ids:t})}),"requestWorkspaceBrowse",0,(e,t,n,i)=>r(`/api/agents/${e}/workspace/browse${o(t)}`,{method:"POST",body:JSON.stringify({request_type:n,path:i})}),"retryTask",0,(e,t)=>r(`/api/tasks/${e}/retry${o(t)}`,{method:"POST"}),"revokeAgentAccess",0,(e,t,n,i=!1)=>r(`/api/agents/${t}/access/${n}${o(e)}${i?"&remove_whitelist=true":""}`,{method:"DELETE"}),"revokeInvite",0,(e,t)=>r(`/api/workspaces/${e}/invites/${t}${o(e)}`,{method:"DELETE"}),"sendEmail",0,(e,t,n,i,a,s,l,c)=>r(`/api/email/send${o(a)}`,{method:"POST",body:JSON.stringify({agentId:e,to:t,subject:n,htmlBody:i,attachments:s,...l,customAccountId:c})}),"sendMessage",0,i,"stopMeeting",0,(e,t,n)=>r(`/api/agents/${e}/meetings/${t}/stop${o(n)}`,{method:"POST"}),"syncEmailAccount",0,(e,t,n)=>r(`/api/agents/${e}/email-accounts/${t}/sync${o(n)}`,{method:"POST"}),"triggerRuntimeRescan",0,(e,t)=>r(`/api/runtimes/${e}/rescan${o(t)}`,{method:"POST"}),"triggerRuntimeUpdate",0,(e,t)=>r(`/api/runtimes/${e}/update${o(t)}`,{method:"POST"}),"unflagMessage",0,(e,t)=>r(`/api/flags/${t}${o(e)}`,{method:"DELETE"}),"unpinAgent",0,(e,t)=>r(`/api/agents/${t}/pin${o(e)}`,{method:"DELETE"}),"updateAgent",0,(e,t,n)=>r(`/api/agents/${e}${o(n)}`,{method:"PATCH",body:JSON.stringify(t)}),"updateAgentLink",0,(e,t,n)=>r(`/api/agent-links/${e}${o(n)}`,{method:"PATCH",body:JSON.stringify(t)}),"updateCalendarEvent",0,(e,t,n)=>r(`/api/calendar/${e}${o(n)}`,{method:"PATCH",body:JSON.stringify(t)}),"updateEmailStatus",0,(e,t,n)=>r(`/api/email/${e}${o(t)}`,{method:"PATCH",body:JSON.stringify({status:n})}),"updateIssue",0,(e,t,n)=>r(`/api/issues/${t}${o(e)}`,{method:"PATCH",body:JSON.stringify(n)}),"updateMemberMe",0,(e,t)=>r(`/api/members/me${o(e)}`,{method:"PATCH",body:JSON.stringify({global_instruction:t})}),"updateWorkspace",0,(e,t)=>r(`/api/workspaces/${e}${o(e)}`,{method:"PATCH",body:JSON.stringify(t)}),"uploadEmailAttachment",0,l],222862)},500324,e=>{"use strict";var t=e.i(368075),n=e.i(298699);let r=(0,n.createContext)(null);e.s(["WorkspaceProvider",0,function({workspaceId:e,slug:o,children:i}){return(0,n.useEffect)(()=>{try{localStorage.setItem("lastWorkspace",o)}catch{}},[o]),(0,t.jsx)(r.Provider,{value:{workspaceId:e,slug:o},children:i})},"useWorkspace",0,function(){let e=(0,n.useContext)(r);if(!e)throw Error("useWorkspace must be used within WorkspaceProvider");return e}])},642342,e=>{"use strict";var t=e.i(459119),n=e.i(298699);let r=(0,e.i(613349).isLocalMode)(),o=Number(t.default.env.NEXT_PUBLIC_WS_DO_PORT)||8789,i=Number(t.default.env.NEXT_PUBLIC_WS_RECONNECT_DELAY_MS)||1e3,a=Number(t.default.env.NEXT_PUBLIC_WS_RECONNECT_MAX_DELAY_MS)||3e4;e.s(["useUserWs",0,function(e,t){let s=(0,n.useRef)(null),l=(0,n.useRef)(i),c=(0,n.useRef)(e),u=(0,n.useRef)(t?.onReconnect),d=(0,n.useRef)(null),f=(0,n.useRef)(!1),m=(0,n.useRef)(0),p=(0,n.useRef)(null),g=(0,n.useRef)(null);(0,n.useEffect)(()=>{c.current=e},[e]),(0,n.useEffect)(()=>{u.current=t?.onReconnect},[t?.onReconnect]);let _=(0,n.useRef)(null),h=(0,n.useCallback)(()=>{let e=Math.min(l.current,a);l.current=Math.min(2*e,a),d.current=setTimeout(()=>{_.current?.()},e+500*Math.random())},[]),E=(0,n.useCallback)(async()=>{let e,t,n,a=o;try{let n=await fetch("/api/ws/token");if(!n.ok){console.warn("[ws] token fetch failed:",n.status),h();return}let r=await n.json();e=r.userId,t=r.token,r.wsPort&&(a=r.wsPort)}catch(e){console.warn("[ws] token fetch error:",e),h();return}let d=r?`ws://localhost:${a}/?userId=${e}`:`${location.origin.replace("http","ws")}/api/ws/user?userId=${e}`;try{n=new WebSocket(d)}catch(e){console.warn("[ws] WebSocket creation failed:",e),h();return}s.current=n,n.onopen=()=>{l.current=i,n.send(JSON.stringify({type:"auth",token:t})),f.current&&u.current?.(),f.current=!0,m.current=Date.now(),p.current=setInterval(()=>{n.readyState===WebSocket.OPEN&&n.send("ping")},25e3),g.current=setInterval(()=>{Date.now()-m.current>3e4&&n.close()},5e3)},n.onmessage=e=>{m.current=Date.now();try{let t=JSON.parse(e.data);if("auth.ok"===t.type)return;c.current(t)}catch{}},n.onerror=()=>{},n.onclose=()=>{n===s.current&&(p.current&&(clearInterval(p.current),p.current=null),g.current&&(clearInterval(g.current),g.current=null),h())}},[h]);(0,n.useEffect)(()=>{_.current=E},[E]),(0,n.useEffect)(()=>(E(),()=>{null!==d.current&&(clearTimeout(d.current),d.current=null),p.current&&(clearInterval(p.current),p.current=null),g.current&&(clearInterval(g.current),g.current=null);let e=s.current;s.current=null,e?.close()}),[E])}])},355578,e=>{"use strict";var t=e.i(368075),n=e.i(298699),r=e.i(222862),o=e.i(880932),i=e.i(642342);let a=(0,n.createContext)(null);e.s(["AgentProvider",0,function({workspaceId:e,children:s}){let[l,c]=(0,n.useState)([]),[u,d]=(0,n.useState)([]),[f,m]=(0,n.useState)(!0),[p,g]=(0,n.useState)({}),[_,h]=(0,n.useState)([]),E=(0,n.useRef)(!1),[C,w]=(0,n.useState)([]),[S,y]=(0,n.useState)(new Map),[T,k]=(0,n.useState)(new Map),O=(0,n.useRef)(!1),v=(0,n.useRef)(new Set),b=(0,n.useRef)(!0),M=(0,n.useRef)(!1),$=(0,n.useCallback)(e=>(v.current.add(e),()=>{v.current.delete(e)}),[]),I=(0,n.useRef)(!1),P=(0,n.useCallback)(async()=>{if(!I.current){I.current=!0;try{if(E.current){let t=await (0,r.listWorkspaceActiveTasks)(e);if(!b.current)return;h(t.tasks);let n={};for(let e of t.tasks)n[e.agent_id]=(n[e.agent_id]??0)+1;g(n),E.current=t.tasks.length>0}else{let t=await (0,r.listAgentActiveTaskCounts)(e);if(!b.current)return;if(g(t.counts),Object.values(t.counts).some(e=>e>0)){E.current=!0;let t=await (0,r.listWorkspaceActiveTasks)(e);b.current&&h(t.tasks)}else h([])}}catch{}finally{I.current=!1}}},[e]);(0,n.useEffect)(()=>{b.current=!0,P();let e=setInterval(P,15e3);return()=>{b.current=!1,clearInterval(e)}},[P]);let N=(0,n.useCallback)(async()=>{try{let[t,n,o,i]=await Promise.all([(0,r.listAgents)(e),(0,r.listRuntimes)(e),(0,r.listAgentPins)(e),(0,r.listAgentLinks)(e)]);c(t),d(n),w(i),y(new Map(o.pins.map(e=>[e.agent_id,{created_at:e.created_at,position:e.position}]))),k(new Map(o.sidebar_order.map(e=>[e.agent_id,e.position])))}catch(e){o.toast.error(e instanceof Error?e.message:"Failed to load data")}finally{m(!1),O.current=!0}},[e]),A=(0,n.useCallback)(async()=>{if(!M.current){M.current=!0;try{let t=await (0,r.listRuntimes)(e);d(t)}catch{}finally{M.current=!1}}},[e]);(0,n.useEffect)(()=>{N()},[N]),(0,n.useEffect)(()=>{let e=null,t=setInterval(()=>{"visible"===document.visibilityState&&A()},3e4),n=()=>{"visible"===document.visibilityState&&(e=setTimeout(()=>A(),2e3*Math.random()))};return document.addEventListener("visibilitychange",n),()=>{clearInterval(t),e&&clearTimeout(e),document.removeEventListener("visibilitychange",n)}},[A]);let D=(0,n.useCallback)(t=>{for(let e of v.current)e(t);switch(t.type){case"runtime.registered":if(t.workspaceId!==e)break;N();break;case"runtime.deleted":N();break;case"runtime.status":if(t.workspaceId!==e)break;A();break;case"task.updated":P()}},[N,A,P,e]);(0,i.useUserWs)(D,{onReconnect:A});let R=(0,n.useCallback)(async t=>{try{let n=await (0,r.createAgent)(t,e);return await N(),n}catch(e){return o.toast.error(e instanceof Error?e.message:"Failed to create agent"),null}},[N,e]),x=(0,n.useCallback)(async(t,n)=>{try{return await (0,r.updateAgent)(t,n,e),await N(),!0}catch(e){return o.toast.error(e instanceof Error?e.message:"Failed to update agent"),!1}},[N,e]),L=(0,n.useCallback)(async t=>{try{return await (0,r.deleteAgent)(t,e),await N(),!0}catch(e){return o.toast.error(e instanceof Error?e.message:"Failed to remove agent"),!1}},[N,e]),U=(0,n.useCallback)(async t=>{y(e=>{let n=Math.max(-1,...[...e.values()].map(e=>e.position));return new Map(e).set(t,{created_at:new Date().toISOString(),position:n+1})});try{await (0,r.pinAgent)(e,t)}catch{y(e=>{let n=new Map(e);return n.delete(t),n}),o.toast.error("Failed to pin agent")}},[e]),q=(0,n.useCallback)(async t=>{let n;y(e=>{n=e.get(t);let r=new Map(e);return r.delete(t),r});try{await (0,r.unpinAgent)(e,t)}catch{void 0!==n&&y(e=>new Map(e).set(t,n)),o.toast.error("Failed to unpin agent")}},[e]),W=(0,n.useCallback)(async t=>{let n=new Map(S);y(e=>{let n=new Map(e);return t.forEach((e,t)=>{let r=n.get(e);r&&n.set(e,{...r,position:t})}),n});try{await (0,r.reorderAgentPins)(e,t)}catch{y(n),o.toast.error("Failed to reorder pins")}},[e,S]),F=(0,n.useCallback)(async t=>{let n=new Map(T);k(new Map(t.map((e,t)=>[e,t])));try{await (0,r.reorderUnpinnedAgents)(e,t)}catch{k(n),o.toast.error("Failed to reorder agents")}},[e,T]),j=(0,n.useCallback)(()=>{let e=u.find(e=>"online"===e.status);return e?.id??""},[u]),J=(0,n.useCallback)(async()=>{try{return(await (0,r.createMachineToken)("cli",e)).token}catch(e){return o.toast.error(e instanceof Error?e.message:"Failed to generate token"),null}},[e]),V=(0,n.useCallback)(async t=>{try{return await (0,r.deleteMachine)(t,e),await N(),!0}catch(e){return o.toast.error(e instanceof Error?e.message:"Failed to remove machine"),!1}},[N,e]);return(0,t.jsx)(a.Provider,{value:{workspaceId:e,agents:l,agentLinks:C,runtimes:u,loading:f,activeTaskCounts:p,activeTaskDetails:_,pins:S,reload:N,subscribeWs:$,handleCreateAgent:R,handleUpdateAgent:x,handleDeleteAgent:L,handlePinAgent:U,handleUnpinAgent:q,handleReorderPins:W,unpinnedOrder:T,handleReorderUnpinned:F,getFirstOnlineRuntimeId:j,handleGenerateToken:J,handleDeleteMachine:V},children:s})},"useAgentContext",0,function(){let e=(0,n.useContext)(a);if(!e)throw Error("useAgentContext must be used within AgentProvider");return e},"useAgentContextSafe",0,function(){return(0,n.useContext)(a)}])},980630,e=>{"use strict";let t="browser-notification-enabled",n="browser-notification-events",r=["completed","failed"],o={completed:"Task Completed",failed:"Task Failed"};function i(){return"Notification"in window}function a(){return"true"===localStorage.getItem(t)}function s(){try{let e=localStorage.getItem(n);if(e)return JSON.parse(e)}catch{}return[...r]}async function l(){return!!i()&&("granted"===Notification.permission||"denied"!==Notification.permission&&"granted"===await Notification.requestPermission())}e.s(["NOTIFICATION_EVENTS",0,r,"NOTIFICATION_EVENT_LABELS",0,o,"getNotificationEnabled",0,a,"getNotificationEvents",0,s,"isNotificationSupported",0,i,"requestNotificationPermission",0,l,"sendTaskNotification",0,function(e,t,n){if(!i()||"granted"!==Notification.permission||!a()||!s().includes(e))return;let r=o[e]??`Task ${e}`;new Notification(t?`${t} — ${r}`:r,{body:n??"",icon:"/alook.svg"})},"setNotificationEnabled",0,function(e){localStorage.setItem(t,String(e))},"setNotificationEvents",0,function(e){localStorage.setItem(n,JSON.stringify(e))}])},875494,685835,e=>{"use strict";var t=e.i(368075),n=e.i(298699),r=e.i(222862),o=e.i(355578),i=e.i(500324),a=e.i(980630);let s="inbox-filter-types",l=["user_dm_message","calendar_event","email_notification"],c=["user_dm_message"],u=["user_dm_message"];function d(){try{let e=localStorage.getItem(s);if(!e)return c;let t=JSON.parse(e).filter(e=>l.includes(e));if(0===t.length)return c;for(let e of u)t.includes(e)||t.unshift(e);return t}catch{return c}}e.s(["INBOX_FILTER_LABELS",0,{user_dm_message:"DM",calendar_event:"Calendar",email_notification:"Email"},"INBOX_FILTER_TYPES",0,l,"MANDATORY_INBOX_TYPES",0,u,"getInboxFilterTypes",0,d,"setInboxFilterTypes",0,function(e){let t=[...e];for(let e of u)t.includes(e)||t.unshift(e);localStorage.setItem(s,JSON.stringify(t))}],685835);let f=(0,n.createContext)(null),m={count:0,notificationToken:0,refresh:()=>{},decrement:()=>{}};e.s(["InboxCountProvider",0,function({children:e}){let{workspaceId:s}=(0,i.useWorkspace)(),{subscribeWs:l,agents:c}=(0,o.useAgentContext)(),[u,m]=(0,n.useState)(0),[p,g]=(0,n.useState)(0),_=(0,n.useRef)(null),h=(0,n.useRef)(null),E=(0,n.useRef)(c);(0,n.useEffect)(()=>{E.current=c});let C=(0,n.useCallback)(()=>{let e=d();(0,r.getInboxCount)(s,{types:e}).then(e=>{let t=_.current;if(_.current=e.count,m(e.count),null!==t&&e.count>t){g(e=>e+1);let e=h.current?E.current.find(e=>e.id===h.current):void 0;(0,a.sendTaskNotification)("completed",e?.name)}h.current=null}).catch(()=>{})},[s]),w=(0,n.useCallback)(()=>{m(e=>{let t=Math.max(0,e-1);return _.current=t,t})},[]);return(0,n.useEffect)(()=>{C()},[C]),(0,n.useEffect)(()=>l(e=>{"task.updated"===e.type&&("completed"===e.status||"failed"===e.status)&&(h.current=e.agentId,C())}),[l,C]),(0,n.useEffect)(()=>{let e=setInterval(C,6e4);return()=>clearInterval(e)},[C]),(0,t.jsx)(f.Provider,{value:{count:u,notificationToken:p,refresh:C,decrement:w},children:e})},"useInboxCount",0,function(){return(0,n.useContext)(f)??m}],875494)},192935,e=>{e.v({button:"cloud-code-monster-pet-module__wqv_bq__button","cloud-code-monster-bell-alert":"cloud-code-monster-pet-module__wqv_bq__cloud-code-monster-bell-alert","cloud-code-monster-breathe":"cloud-code-monster-pet-module__wqv_bq__cloud-code-monster-breathe","cloud-code-monster-faint":"cloud-code-monster-pet-module__wqv_bq__cloud-code-monster-faint","cloud-code-monster-footprint":"cloud-code-monster-pet-module__wqv_bq__cloud-code-monster-footprint","cloud-code-monster-keytap":"cloud-code-monster-pet-module__wqv_bq__cloud-code-monster-keytap","cloud-code-monster-left-foot":"cloud-code-monster-pet-module__wqv_bq__cloud-code-monster-left-foot","cloud-code-monster-peek":"cloud-code-monster-pet-module__wqv_bq__cloud-code-monster-peek","cloud-code-monster-phone":"cloud-code-monster-pet-module__wqv_bq__cloud-code-monster-phone","cloud-code-monster-phone-glow":"cloud-code-monster-pet-module__wqv_bq__cloud-code-monster-phone-glow","cloud-code-monster-read":"cloud-code-monster-pet-module__wqv_bq__cloud-code-monster-read","cloud-code-monster-right-foot":"cloud-code-monster-pet-module__wqv_bq__cloud-code-monster-right-foot","cloud-code-monster-shaken":"cloud-code-monster-pet-module__wqv_bq__cloud-code-monster-shaken","cloud-code-monster-shock-pixels":"cloud-code-monster-pet-module__wqv_bq__cloud-code-monster-shock-pixels","cloud-code-monster-sleep":"cloud-code-monster-pet-module__wqv_bq__cloud-code-monster-sleep","cloud-code-monster-sleep-pixels":"cloud-code-monster-pet-module__wqv_bq__cloud-code-monster-sleep-pixels","cloud-code-monster-snack":"cloud-code-monster-pet-module__wqv_bq__cloud-code-monster-snack","cloud-code-monster-startled":"cloud-code-monster-pet-module__wqv_bq__cloud-code-monster-startled","cloud-code-monster-thought":"cloud-code-monster-pet-module__wqv_bq__cloud-code-monster-thought","cloud-code-monster-walk":"cloud-code-monster-pet-module__wqv_bq__cloud-code-monster-walk",footprint:"cloud-code-monster-pet-module__wqv_bq__footprint",footsteps:"cloud-code-monster-pet-module__wqv_bq__footsteps",notificationBell:"cloud-code-monster-pet-module__wqv_bq__notificationBell",notificationBellPixel:"cloud-code-monster-pet-module__wqv_bq__notificationBellPixel",pet:"cloud-code-monster-pet-module__wqv_bq__pet",petLayer:"cloud-code-monster-pet-module__wqv_bq__petLayer"})},105583,e=>{"use strict";var t=e.i(368075),n=e.i(298699),r=e.i(355578),o=e.i(875494),i=e.i(192935),a=e.i(396328),s=e.i(434623),l=e.i(460520);function c(e,t){let n=t?.getBoundingClientRect();return{x:e.clientX-(n?.left??0),y:e.clientY-(n?.top??0)}}var u=e.i(961909),d=e.i(399561);let f=[];function m({boundaryRef:e,initialPosition:p,previewComebackToken:g=0,notificationToken:_=0,peekTargets:h=f}){let E,C,w,[S,y]=(0,n.useState)(null),[T,k]=(0,n.useState)(null),[O,v]=(0,n.useState)(!1),[b,M]=(0,n.useState)(!1),[$,I]=(0,n.useState)(!1),[P,N]=(0,n.useState)(!1),[A,D]=(0,n.useState)(!1),[R,x]=(0,n.useState)(!1),[L,U]=(0,n.useState)(!1),[q,W]=(0,n.useState)(d.CLOUD_CODE_MONSTER_PET_PRESETS[0].id),[F,j]=(0,n.useState)(1),[J,V]=(0,n.useState)("right"),[B,H]=(0,n.useState)([]),K=(0,n.useRef)(0),Y=(0,n.useRef)(null),Z=(0,n.useRef)(1),z=(0,n.useRef)("left"),X=(0,n.useRef)(null),G=(0,n.useRef)([]),Q=(0,n.useRef)(h),{clearAllPetTimers:ee,clearPetTimer:et,setPetTimer:en}=(E=(0,n.useRef)({reaction:null,shake:null,faint:null,autonomousWalk:null,peek:null,peekStop:null,notification:null,walkSettle:null,walkToTargetPeek:null}),C=(0,n.useCallback)(e=>{let t=E.current[e];null!==t&&(window.clearTimeout(t),E.current[e]=null)},[]),w=(0,n.useCallback)((e,t,n)=>{C(e),E.current[e]=window.setTimeout(()=>{E.current[e]=null,t()},n)},[C]),{clearAllPetTimers:(0,n.useCallback)(()=>{for(let e of Object.keys(E.current))C(e)},[C]),clearPetTimer:C,setPetTimer:w});(0,n.useEffect)(()=>{let e=e=>{W(e?(0,d.getCloudCodeMonsterPreset)(e).id:(0,d.readCloudCodeMonsterPetPresetId)())},t=t=>{e(t.detail?.presetId)},n=t=>{t.key===l.CLOUD_CODE_MONSTER_PRESET_STORAGE_KEY&&e(t.newValue)};return e(),window.addEventListener(l.CLOUD_CODE_MONSTER_PRESET_CHANGED_EVENT,t),window.addEventListener("storage",n),()=>{window.removeEventListener(l.CLOUD_CODE_MONSTER_PRESET_CHANGED_EVENT,t),window.removeEventListener("storage",n)}},[]),(0,n.useEffect)(()=>{let e=(0,a.resolveCloudCodeMonsterVisibleState)((0,a.readStoredActivity)());(0,a.writeStoredActivity)(e),y(e);let t=()=>{let e=Date.now();y(t=>{let n="hidden"===document.visibilityState?(0,a.createCloudCodeMonsterHiddenState)(t,e):(0,a.resolveCloudCodeMonsterVisibleState)(t??(0,a.readStoredActivity)(),e);return(0,a.writeStoredActivity)(n),n})};return document.addEventListener("visibilitychange",t),()=>{document.removeEventListener("visibilitychange",t)}},[]),(0,n.useEffect)(()=>{if(g<=0)return;let e=(0,a.resolveCloudCodeMonsterPreviewComebackState)();(0,a.writeStoredActivity)(e),y(e)},[g]),(0,n.useEffect)(()=>{let t=()=>{let t=(0,a.getBounds)(e.current);k(e=>e?(0,a.clampPetPosition)(e,t,l.CLOUD_CODE_MONSTER_SIZE):(0,a.clampPetPosition)(p??{x:t.width-l.CLOUD_CODE_MONSTER_SIZE.width-112,y:Math.min(.48*t.height,t.height-l.CLOUD_CODE_MONSTER_SIZE.height-120)},t,l.CLOUD_CODE_MONSTER_SIZE))};return t(),window.addEventListener("resize",t),"u">typeof ResizeObserver&&e.current&&(X.current=new ResizeObserver(t),X.current.observe(e.current)),()=>{window.removeEventListener("resize",t),X.current?.disconnect(),X.current=null}},[e,p]),(0,n.useEffect)(()=>ee,[ee]);let er=(0,n.useMemo)(()=>S?.activityId?s.CLOUD_CODE_MONSTER_ACTIVITIES.find(e=>e.id===S.activityId):null,[S]),eo=(0,n.useMemo)(()=>(0,d.getCloudCodeMonsterPreset)(q),[q]),ei=O||b,ea=null!==T,es=h.length>0,el=(0,a.shouldCloudCodeMonsterAutoWalk)(S?.activityId??null);(0,n.useEffect)(()=>{Q.current=h},[h]);let{count:ec}=(0,o.useInboxCount)(),[eu,ed]=(0,n.useState)(!1),ef=(0,n.useRef)(null);(0,n.useEffect)(()=>(!(ec>0)||L||O?0===ec&&(null!==ef.current&&(window.clearTimeout(ef.current),ef.current=null),ed(!1)):null===ef.current&&(ef.current=window.setTimeout(()=>{ef.current=null,ed(!0)},300)),()=>{null!==ef.current&&(window.clearTimeout(ef.current),ef.current=null)}),[ec,L,O]);let em=(0,n.useCallback)((e,t)=>{j(t);let n=performance.now();if(n-K.current>=(0,a.getMonsterFootstepIntervalMs)(t)){let r=z.current;z.current="left"===r?"right":"left";let o="left"===r?25:52;H(n=>[...n.slice(-13),{id:Z.current++,x:e.x+o,y:e.y+l.CLOUD_CODE_MONSTER_SIZE.height-7,side:r,intensity:t}]),K.current=n}},[]),ep=function({boundaryRef:e,targetId:t,enabled:r,position:o,setPosition:i,onArrive:s,onStep:c}){let[u,d]=(0,n.useState)(!1),[f,m]=(0,n.useState)(!1),[p,g]=(0,n.useState)("left"),_=(0,n.useRef)(null),h=(0,n.useRef)(!1),E=(0,n.useRef)(r),C=(0,n.useRef)(o);(0,n.useEffect)(()=>{E.current=r},[r]),(0,n.useEffect)(()=>{C.current=o},[o]);let w=(0,n.useCallback)(()=>{null!==_.current&&(window.clearTimeout(_.current),_.current=null)},[]),S=(0,n.useCallback)(()=>{w(),d(!1),m(!1),h.current=!1},[w]);return(0,n.useEffect)(()=>{if(!r||!t||!o)return void S();if(h.current)return;d(!0),m(!1);let n=()=>{_.current=window.setTimeout(()=>{if(_.current=null,!E.current)return void d(!1);let r=function(e,t){if(!e)return null;let n=e.querySelector(`[data-pet-target-id="${t}"]`)??document.querySelector(`[data-pet-target-id="${t}"]`);if(!n)return null;let r=n.getBoundingClientRect(),o=(0,a.getBounds)(e),i=r.right+22,s=r.top+r.height/2-l.CLOUD_CODE_MONSTER_SIZE.height/2;return(0,a.clampPetPosition)({x:i,y:s},o,l.CLOUD_CODE_MONSTER_SIZE)}(e.current,t),o=C.current;if(!r||!o)return void n();if(10>Math.hypot(r.x-o.x,r.y-o.y)){h.current=!0,d(!1),m(!0),g("left"),i(()=>r),s();return}let u=(0,a.createWalkToTargetVelocity)(o,r,3.2);g(u.x>=0?"right":"left");let f=(0,a.clampPetPosition)({x:o.x+u.x,y:o.y+u.y},(0,a.getBounds)(e.current),l.CLOUD_CODE_MONSTER_SIZE);i(()=>f),c(f,1.45),n()},l.CLOUD_CODE_MONSTER_AUTO_WALK_STEP_MS)};return n(),()=>{w()}},[r,t,!!o,e,S,w,s,c,i]),{isWalking:u,isIdlingAtTarget:f,walkDirection:p}}({boundaryRef:e,targetId:eu?"inbox":null,enabled:eu&&!O&&!A&&!R&&!L,position:T,setPosition:k,onArrive:(0,n.useCallback)(()=>{I(!0),j(1),en("walkToTargetPeek",()=>{I(!1);let e=()=>{en("walkToTargetPeek",()=>{I(!0),en("peekStop",()=>{I(!1),e()},l.CLOUD_CODE_MONSTER_PEEK_MS)},l.CLOUD_CODE_MONSTER_PEEK_INTERVAL_MS)};e()},l.CLOUD_CODE_MONSTER_PEEK_MS)},[en]),onStep:em}),eg=ep.isWalking||ep.isIdlingAtTarget,e_=ei||ep.isWalking,eh=(0,n.useRef)(!1);(0,n.useEffect)(()=>{eh.current&&!eg&&(et("walkToTargetPeek"),I(!1)),eh.current=eg},[eg,et]);let eE=(0,r.useAgentContextSafe)(),eC=(eE?.activeTaskDetails.length??0)>0,ew=(0,n.useRef)(null);(0,n.useEffect)(()=>{if(eC&&!eg){if(!ew.current){let e=["coding","thinking","reading"];ew.current=e[Math.floor(Math.random()*e.length)]}let e=ew.current;y(t=>{if(t?.activityId===e)return t;let n={activityId:e,updatedAt:Date.now(),hiddenAt:null};return(0,a.writeStoredActivity)(n),n})}else if(!eC&&ew.current){ew.current=null;let e=(0,a.createCloudCodeMonsterIdleState)();(0,a.writeStoredActivity)(e),y(e)}},[eC,eg]);let eS=(0,n.useCallback)((e,t)=>{let n=z.current;z.current="left"===n?"right":"left";let r="left"===n?25:52;H(o=>[...o.slice(-13),{id:Z.current++,x:e.x+r,y:e.y+l.CLOUD_CODE_MONSTER_SIZE.height-7,side:n,intensity:t}])},[]);(0,n.useEffect)(()=>{if(!ea||!S?.activityId||!el||O||A||R||L||$||eg){M(!1),j(1),Y.current=null;return}M(!0),Y.current??=(0,a.createCloudCodeMonsterWalkVelocity)();let t=()=>{en("autonomousWalk",()=>{let n=(0,a.getBounds)(e.current);j(1.45),k(e=>{let t=Y.current;if(!e||!t)return e;let r=(0,a.reflectCloudCodeMonsterWalk)(e,t,n,l.CLOUD_CODE_MONSTER_SIZE);Y.current=r.velocity,V(r.velocity.x>=0?"right":"left");let o=performance.now();return o-K.current>=(0,a.getMonsterFootstepIntervalMs)(1.45)&&(eS(r.position,1.45),K.current=o),r.position}),t()},l.CLOUD_CODE_MONSTER_AUTO_WALK_STEP_MS)};return en("autonomousWalk",t,l.CLOUD_CODE_MONSTER_AUTO_WALK_STEP_MS),()=>{et("autonomousWalk")}},[S?.activityId,e,L,ea,O,$,eg,A,et,eS,R,el,en]),(0,n.useEffect)(()=>{if(ea&&es&&!O&&!A&&!R&&!L&&!eg)return en("peek",()=>{let t=Q.current,n=t[Math.floor(Math.random()*t.length)]??t[0];if(!n)return;let r=(0,a.getBounds)(e.current),o=(0,a.resolveCloudCodeMonsterPeekPosition)(n,e.current,r);M(!1),Y.current=null,I(!0),j(1),k(o),en("peekStop",()=>{I(!1)},l.CLOUD_CODE_MONSTER_PEEK_MS)},l.CLOUD_CODE_MONSTER_PEEK_INTERVAL_MS+4e3*Math.random()),()=>{et("peek")}},[e,et,L,es,ea,O,eg,A,R,en]);let ey=(0,n.useCallback)(()=>{y(e=>{if(e&&!e.activityId&&null===e.hiddenAt)return e;let t=(0,a.createCloudCodeMonsterIdleState)();return(0,a.writeStoredActivity)(t),t})},[]),eT=(0,n.useCallback)(()=>{M(!1),I(!1),G.current=[],Y.current=null,et("autonomousWalk"),et("peek"),et("peekStop"),et("walkToTargetPeek")},[et]),ek=(0,n.useCallback)(()=>{D(!0),en("reaction",()=>{D(!1)},l.CLOUD_CODE_MONSTER_REACTION_MS)},[en]);(0,n.useEffect)(()=>{_<=0||(eT(),S?.activityId&&ey(),ek(),N(!0),en("notification",()=>{N(!1)},l.CLOUD_CODE_MONSTER_REACTION_MS+1500))},[S?.activityId,_,en,ek,eT,ey]);let eO=(0,n.useCallback)(()=>{L||(S?.activityId&&ey(),x(!0),en("shake",()=>{x(!1)},l.CLOUD_CODE_MONSTER_SHAKE_REACTION_MS))},[S?.activityId,L,en,ey]),ev=(0,n.useCallback)(()=>{et("faint"),et("reaction"),et("shake"),ey(),eT(),D(!1),x(!1),U(!0),j(1),en("faint",()=>{U(!1)},l.CLOUD_CODE_MONSTER_FAINT_MS)},[et,en,eT,ey]),{handlePetClick:eb,handlePointerDown:eM,handlePointerMove:e$,stopDragging:eI}=function({boundaryRef:e,initialPosition:t,position:r,isDragging:o,fainted:i,activityState:s,lastFootstepAtRef:u,violentDragEventsRef:d,setIsDragging:f,setNotificationActive:m,setFainted:p,setWalkDirection:g,setWalkIntensity:_,setPosition:h,clearPetTimer:E,setPetTimer:C,pushFootprint:w,stopTemporaryMotion:S,wakeMonsterToDefault:y,startShockReaction:T,startShakeReaction:k,startFaintReaction:O}){let v=(0,n.useRef)({x:0,y:0}),b=(0,n.useRef)(null),M=(0,n.useRef)(null),$=(0,n.useRef)(null),I=(0,n.useRef)(!1),P=(0,n.useCallback)(()=>{if(S(),m(!1),E("notification"),I.current){I.current=!1;return}o||(s?.activityId&&y(),i&&(p(!1),E("faint")),T())},[s?.activityId,E,i,o,p,m,T,S,y]),N=(0,n.useCallback)(n=>{if(0!==n.button)return;let o=(0,a.getBounds)(e.current),i=r??(0,a.clampPetPosition)(t??{x:o.width-l.CLOUD_CODE_MONSTER_SIZE.width-112,y:.48*o.height},o,l.CLOUD_CODE_MONSTER_SIZE),s=c(n,e.current),d=performance.now();v.current={x:s.x-i.x,y:s.y-i.y},b.current=s,M.current={point:s,time:d},$.current=null,u.current=d,I.current=!1,S(),f(!0),_(1.1),n.currentTarget.setPointerCapture(n.pointerId)},[e,t,u,r,f,_,S]);return{handlePetClick:P,handlePointerDown:N,handlePointerMove:(0,n.useCallback)(t=>{if(!o)return;let n=(0,a.getBounds)(e.current),r=c(t,e.current),s=performance.now(),f=M.current??{point:r,time:s},m=r.x-f.point.x,p=r.y-f.point.y,E={x:m,y:p},C=Math.hypot(m,p),S=Math.max(1,s-f.time),y=(0,a.calculateMonsterWalkIntensity)(C,S),T=(0,a.clampPetPosition)({x:r.x-v.current.x,y:r.y-v.current.y},n,l.CLOUD_CODE_MONSTER_SIZE),P=b.current??r,N=Math.abs(r.x-P.x),A=Math.abs(r.y-P.y);(N>3||A>3)&&(I.current=!0),Math.abs(m)>.5&&g(m>=0?"right":"left");let D=(0,a.hasViolentMonsterDirectionChange)($.current,E);(!i&&(0,a.isViolentMonsterDrag)(C,S,D)&&k(),!i&&(0,a.isMonsterFaintShakeEvent)(C,S,D)&&(d.current=[...d.current.filter(e=>s-e<=l.CLOUD_CODE_MONSTER_FAINT_EVENT_WINDOW_MS),s],(0,a.shouldFaintFromMonsterShake)(d.current,s)))?O():(_(y),h(T),M.current={point:r,time:s},C>.5&&($.current=E),C>1&&s-u.current>=(0,a.getMonsterFootstepIntervalMs)(y)&&(w(T,y),u.current=s))},[e,i,o,u,w,h,g,_,O,k,d]),stopDragging:(0,n.useCallback)(e=>{o&&(f(!1),d.current=[],b.current=null,M.current=null,$.current=null,C("walkSettle",()=>{_(1)},180),e.currentTarget.hasPointerCapture(e.pointerId)&&e.currentTarget.releasePointerCapture(e.pointerId))},[o,f,C,_,d])}}({activityState:S,boundaryRef:e,fainted:L,initialPosition:p,isDragging:O,lastFootstepAtRef:K,position:T,pushFootprint:eS,setFainted:U,setIsDragging:v,setNotificationActive:N,setPetTimer:en,setPosition:k,setWalkDirection:V,setWalkIntensity:j,clearPetTimer:et,startFaintReaction:ev,startShakeReaction:eO,startShockReaction:ek,stopTemporaryMotion:eT,violentDragEventsRef:G,wakeMonsterToDefault:ey});if(!T||!S)return null;let eP=$||L?null:er;return(0,t.jsxs)("div",{className:i.default.petLayer,children:[(0,t.jsx)("div",{className:i.default.footsteps,"aria-hidden":"true",children:B.map(e=>(0,t.jsx)("span",{className:i.default.footprint,"data-side":e.side,onAnimationEnd:()=>{H(t=>t.filter(t=>t.id!==e.id))},style:{"--monster-footprint-x":`${e.x}px`,"--monster-footprint-y":`${e.y}px`,"--monster-footprint-scale":String(Math.min(1.35,Math.max(.75,e.intensity/1.45)))}},e.id))}),(0,t.jsxs)("aside",{"aria-label":`${eo.name} pixel PET: ${L?"fainted":$?"peeking at work":eP?.label??"idle"}`,className:i.default.pet,"data-activity":eP?.id??"idle","data-dragging":O,"data-walking":e_,"data-direction":eg?ep.walkDirection:J,"data-reaction":R?"shake":A?"shock":"none","data-reacting":A,"data-shaken":R,"data-fainted":L,"data-peeking":$,"data-notifying":P,style:{"--cloud-code-monster-pet-x":`${T.x}px`,"--cloud-code-monster-pet-y":`${T.y}px`,"--monster-walk-duration":`${Math.round(360/Math.max(.75,F))}ms`,"--monster-walk-lift":`-${Math.round(2*Math.max(.75,F))}px`,"--monster-walk-intensity":String(F)},children:[P?(0,t.jsx)("span",{className:i.default.notificationBell,"aria-hidden":"true",children:(0,t.jsxs)("svg",{viewBox:"0 0 24 24",className:`${i.default.notificationBellPixel} size-6`,role:"img",shapeRendering:"crispEdges",children:[(0,t.jsx)("rect",{x:"10",y:"2",width:"4",height:"3",fill:"#2b2112"}),(0,t.jsx)("rect",{x:"8",y:"5",width:"8",height:"3",fill:"#2b2112"}),(0,t.jsx)("rect",{x:"6",y:"8",width:"12",height:"8",fill:"#2b2112"}),(0,t.jsx)("rect",{x:"4",y:"16",width:"16",height:"4",fill:"#2b2112"}),(0,t.jsx)("rect",{x:"9",y:"20",width:"6",height:"2",fill:"#2b2112"}),(0,t.jsx)("rect",{x:"10",y:"5",width:"4",height:"2",fill:"#ffe37a"}),(0,t.jsx)("rect",{x:"8",y:"8",width:"8",height:"8",fill:"#f4c84f"}),(0,t.jsx)("rect",{x:"6",y:"16",width:"12",height:"2",fill:"#f4c84f"}),(0,t.jsx)("rect",{x:"9",y:"9",width:"3",height:"7",fill:"#ffe37a"}),(0,t.jsx)("rect",{x:"13",y:"18",width:"3",height:"2",fill:"#c8922f"})]})}):null,(0,t.jsx)("button",{type:"button",className:i.default.button,"data-dragging":O,"data-fainted":L,onClick:eb,onPointerDown:eM,onPointerMove:e$,onPointerUp:eI,onPointerCancel:eI,onLostPointerCapture:eI,"aria-label":`Claude Code pixel monster is ${L?"fainted":$?"peeking at work":eP?.label??"idle"}. Click to ${eP||L||$?"interrupt it":"notice it"}, drag to make it walk.`,children:(0,t.jsx)(u.MonsterSvg,{activityId:eP?.id??null,preset:eo,reacting:A,shaken:R,fainted:L})})]})]})}e.s(["CloudCodeMonsterPet",0,m],626620),e.i(626620),e.s(["CLOUD_CODE_MONSTER_ACTIVITIES",()=>s.CLOUD_CODE_MONSTER_ACTIVITIES,"CLOUD_CODE_MONSTER_ACTIVITY_REFRESH_MS",()=>l.CLOUD_CODE_MONSTER_ACTIVITY_REFRESH_MS,"CLOUD_CODE_MONSTER_AUTOWALK_ACTIVITY_IDS",()=>s.CLOUD_CODE_MONSTER_AUTOWALK_ACTIVITY_IDS,"CLOUD_CODE_MONSTER_FAINT_MIN_EVENTS",()=>l.CLOUD_CODE_MONSTER_FAINT_MIN_EVENTS,"CLOUD_CODE_MONSTER_FAINT_MS",()=>l.CLOUD_CODE_MONSTER_FAINT_MS,"CLOUD_CODE_MONSTER_PET_PRESETS",()=>d.CLOUD_CODE_MONSTER_PET_PRESETS,"CLOUD_CODE_MONSTER_PRESET_CHANGED_EVENT",()=>l.CLOUD_CODE_MONSTER_PRESET_CHANGED_EVENT,"CLOUD_CODE_MONSTER_PRESET_STORAGE_KEY",()=>l.CLOUD_CODE_MONSTER_PRESET_STORAGE_KEY,"CloudCodeMonsterPet",0,m,"CloudCodeMonsterPresetPreview",()=>u.CloudCodeMonsterPresetPreview,"calculateMonsterWalkIntensity",()=>a.calculateMonsterWalkIntensity,"clampPetPosition",()=>a.clampPetPosition,"createCloudCodeMonsterHiddenState",()=>a.createCloudCodeMonsterHiddenState,"createCloudCodeMonsterIdleState",()=>a.createCloudCodeMonsterIdleState,"createCloudCodeMonsterPreviewAwayState",()=>a.createCloudCodeMonsterPreviewAwayState,"createCloudCodeMonsterWalkVelocity",()=>a.createCloudCodeMonsterWalkVelocity,"createWalkToTargetVelocity",()=>a.createWalkToTargetVelocity,"getCloudCodeMonsterExpression",()=>a.getCloudCodeMonsterExpression,"getCloudCodeMonsterPreset",()=>d.getCloudCodeMonsterPreset,"getMonsterFootstepIntervalMs",()=>a.getMonsterFootstepIntervalMs,"hasViolentMonsterDirectionChange",()=>a.hasViolentMonsterDirectionChange,"isMonsterFaintShakeEvent",()=>a.isMonsterFaintShakeEvent,"isViolentMonsterDrag",()=>a.isViolentMonsterDrag,"pickCloudCodeMonsterActivity",()=>a.pickCloudCodeMonsterActivity,"readCloudCodeMonsterPetPresetId",()=>d.readCloudCodeMonsterPetPresetId,"reflectCloudCodeMonsterWalk",()=>a.reflectCloudCodeMonsterWalk,"resolveCloudCodeMonsterActivityState",()=>a.resolveCloudCodeMonsterActivityState,"resolveCloudCodeMonsterPeekPosition",()=>a.resolveCloudCodeMonsterPeekPosition,"resolveCloudCodeMonsterPreviewComebackState",()=>a.resolveCloudCodeMonsterPreviewComebackState,"resolveCloudCodeMonsterVisibleState",()=>a.resolveCloudCodeMonsterVisibleState,"shouldCloudCodeMonsterAutoWalk",()=>a.shouldCloudCodeMonsterAutoWalk,"shouldFaintFromMonsterShake",()=>a.shouldFaintFromMonsterShake,"shouldRefreshCloudCodeMonsterActivity",()=>a.shouldRefreshCloudCodeMonsterActivity,"writeCloudCodeMonsterPetPresetId",()=>d.writeCloudCodeMonsterPetPresetId],105583)},928210,e=>{e.n(e.i(105583))},631822,e=>{e.v(t=>Promise.all(["static/chunks/0wjp8xrzix2_f.js"].map(t=>e.l(t))).then(()=>t(70725)))}]);
@@ -1 +1 @@
1
- {"type":"app","meta":{"status":500,"headers":{"x-nextjs-stale-time":"300","x-nextjs-prerender":"1","x-next-cache-tags":"_N_T_/layout,_N_T_/_global-error/layout,_N_T_/_global-error/page,_N_T_/_global-error"},"segmentPaths":["/_tree","/_full","/__PAGE__","/_index","/_head"]},"html":"<!DOCTYPE html><html id=\"__next_error__\"><head><meta charSet=\"utf-8\"/><meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"/><link rel=\"preload\" as=\"script\" fetchPriority=\"low\" href=\"/_next/static/chunks/0fus_woghk6f3.js\"/><script src=\"/_next/static/chunks/0r3jwl2u7dg7i.js\" async=\"\"></script><script src=\"/_next/static/chunks/0dx03klusrev7.js\" async=\"\"></script><script src=\"/_next/static/chunks/0qene6wqb57fm.js\" async=\"\"></script><script src=\"/_next/static/chunks/0qwvs4yod0mnt.js\" async=\"\"></script><script src=\"/_next/static/chunks/turbopack-0qm2.fmm~fnpy.js\" async=\"\"></script><script src=\"/_next/static/chunks/11to4eul..x_r.js\" async=\"\"></script><script src=\"/_next/static/chunks/0i03b5ztjvdxj.js\" async=\"\"></script><meta name=\"next-size-adjust\" content=\"\"/><title>500: This page couldn’t load</title><style>:root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }</style><script src=\"/_next/static/chunks/03~yq9q893hmn.js\" noModule=\"\"></script></head><body><div hidden=\"\"><!--$--><!--/$--></div><div style=\"font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;display:flex;align-items:center;justify-content:center\"><div style=\"margin-top:-32px;max-width:325px;padding:32px 28px;text-align:left\"><svg width=\"32\" height=\"32\" viewBox=\"-0.2 -1.5 32 32\" fill=\"none\" style=\"margin-bottom:24px\"><path d=\"M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z\" fill=\"var(--next-error-title)\"></path></svg><h1 style=\"font-size:24px;font-weight:500;letter-spacing:-0.02em;line-height:32px;margin:0 0 12px 0;color:var(--next-error-title)\">This page couldn’t load</h1><p style=\"font-size:14px;font-weight:400;line-height:21px;margin:0 0 20px 0;color:var(--next-error-message)\">A server error occurred. Reload to try again.</p><form style=\"margin:0\"><button type=\"submit\" style=\"display:inline-flex;align-items:center;justify-content:center;height:32px;padding:0 12px;font-size:14px;font-weight:500;line-height:20px;border-radius:6px;cursor:pointer;color:var(--next-error-btn-text);background:var(--next-error-btn-bg);border:var(--next-error-btn-border)\">Reload</button></form></div></div><!--$--><!--/$--><script src=\"/_next/static/chunks/0fus_woghk6f3.js\" id=\"_R_\" async=\"\"></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,\"1:\\\"$Sreact.fragment\\\"\\n2:I[790577,[\\\"/_next/static/chunks/11to4eul..x_r.js\\\",\\\"/_next/static/chunks/0i03b5ztjvdxj.js\\\"],\\\"default\\\"]\\n3:I[355427,[\\\"/_next/static/chunks/11to4eul..x_r.js\\\",\\\"/_next/static/chunks/0i03b5ztjvdxj.js\\\"],\\\"default\\\"]\\n4:I[429253,[\\\"/_next/static/chunks/11to4eul..x_r.js\\\",\\\"/_next/static/chunks/0i03b5ztjvdxj.js\\\"],\\\"OutletBoundary\\\"]\\n5:\\\"$Sreact.suspense\\\"\\n8:I[429253,[\\\"/_next/static/chunks/11to4eul..x_r.js\\\",\\\"/_next/static/chunks/0i03b5ztjvdxj.js\\\"],\\\"ViewportBoundary\\\"]\\na:I[429253,[\\\"/_next/static/chunks/11to4eul..x_r.js\\\",\\\"/_next/static/chunks/0i03b5ztjvdxj.js\\\"],\\\"MetadataBoundary\\\"]\\nc:I[613133,[\\\"/_next/static/chunks/11to4eul..x_r.js\\\",\\\"/_next/static/chunks/0i03b5ztjvdxj.js\\\"],\\\"default\\\",1]\\n\"])</script><script>self.__next_f.push([1,\"0:{\\\"P\\\":null,\\\"c\\\":[\\\"\\\",\\\"_global-error\\\"],\\\"q\\\":\\\"\\\",\\\"i\\\":false,\\\"f\\\":[[[\\\"\\\",{\\\"children\\\":[\\\"__PAGE__\\\",{}]}],[[\\\"$\\\",\\\"$1\\\",\\\"c\\\",{\\\"children\\\":[null,[\\\"$\\\",\\\"$L2\\\",null,{\\\"parallelRouterKey\\\":\\\"children\\\",\\\"error\\\":\\\"$undefined\\\",\\\"errorStyles\\\":\\\"$undefined\\\",\\\"errorScripts\\\":\\\"$undefined\\\",\\\"template\\\":[\\\"$\\\",\\\"$L3\\\",null,{}],\\\"templateStyles\\\":\\\"$undefined\\\",\\\"templateScripts\\\":\\\"$undefined\\\",\\\"notFound\\\":\\\"$undefined\\\",\\\"forbidden\\\":\\\"$undefined\\\",\\\"unauthorized\\\":\\\"$undefined\\\"}]]}],{\\\"children\\\":[[\\\"$\\\",\\\"$1\\\",\\\"c\\\",{\\\"children\\\":[[\\\"$\\\",\\\"html\\\",null,{\\\"id\\\":\\\"__next_error__\\\",\\\"children\\\":[[\\\"$\\\",\\\"head\\\",null,{\\\"children\\\":[[\\\"$\\\",\\\"title\\\",null,{\\\"children\\\":\\\"500: This page couldn’t load\\\"}],[\\\"$\\\",\\\"style\\\",null,{\\\"dangerouslySetInnerHTML\\\":{\\\"__html\\\":\\\":root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }\\\"}}]]}],[\\\"$\\\",\\\"body\\\",null,{\\\"children\\\":[\\\"$\\\",\\\"div\\\",null,{\\\"style\\\":{\\\"fontFamily\\\":\\\"system-ui,\\\\\\\"Segoe UI\\\\\\\",Roboto,Helvetica,Arial,sans-serif,\\\\\\\"Apple Color Emoji\\\\\\\",\\\\\\\"Segoe UI Emoji\\\\\\\"\\\",\\\"height\\\":\\\"100vh\\\",\\\"display\\\":\\\"flex\\\",\\\"alignItems\\\":\\\"center\\\",\\\"justifyContent\\\":\\\"center\\\"},\\\"children\\\":[\\\"$\\\",\\\"div\\\",null,{\\\"style\\\":{\\\"marginTop\\\":\\\"-32px\\\",\\\"maxWidth\\\":\\\"325px\\\",\\\"padding\\\":\\\"32px 28px\\\",\\\"textAlign\\\":\\\"left\\\"},\\\"children\\\":[[\\\"$\\\",\\\"svg\\\",null,{\\\"width\\\":\\\"32\\\",\\\"height\\\":\\\"32\\\",\\\"viewBox\\\":\\\"-0.2 -1.5 32 32\\\",\\\"fill\\\":\\\"none\\\",\\\"style\\\":{\\\"marginBottom\\\":\\\"24px\\\"},\\\"children\\\":[\\\"$\\\",\\\"path\\\",null,{\\\"d\\\":\\\"M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z\\\",\\\"fill\\\":\\\"var(--next-error-title)\\\"}]}],[\\\"$\\\",\\\"h1\\\",null,{\\\"style\\\":{\\\"fontSize\\\":\\\"24px\\\",\\\"fontWeight\\\":500,\\\"letterSpacing\\\":\\\"-0.02em\\\",\\\"lineHeight\\\":\\\"32px\\\",\\\"margin\\\":\\\"0 0 12px 0\\\",\\\"color\\\":\\\"var(--next-error-title)\\\"},\\\"children\\\":\\\"This page couldn’t load\\\"}],[\\\"$\\\",\\\"p\\\",null,{\\\"style\\\":{\\\"fontSize\\\":\\\"14px\\\",\\\"fontWeight\\\":400,\\\"lineHeight\\\":\\\"21px\\\",\\\"margin\\\":\\\"0 0 20px 0\\\",\\\"color\\\":\\\"var(--next-error-message)\\\"},\\\"children\\\":\\\"A server error occurred. Reload to try again.\\\"}],[\\\"$\\\",\\\"form\\\",null,{\\\"style\\\":{\\\"margin\\\":0},\\\"children\\\":[\\\"$\\\",\\\"button\\\",null,{\\\"type\\\":\\\"submit\\\",\\\"style\\\":{\\\"display\\\":\\\"inline-flex\\\",\\\"alignItems\\\":\\\"center\\\",\\\"justifyContent\\\":\\\"center\\\",\\\"height\\\":\\\"32px\\\",\\\"padding\\\":\\\"0 12px\\\",\\\"fontSize\\\":\\\"14px\\\",\\\"fontWeight\\\":500,\\\"lineHeight\\\":\\\"20px\\\",\\\"borderRadius\\\":\\\"6px\\\",\\\"cursor\\\":\\\"pointer\\\",\\\"color\\\":\\\"var(--next-error-btn-text)\\\",\\\"background\\\":\\\"var(--next-error-btn-bg)\\\",\\\"border\\\":\\\"var(--next-error-btn-border)\\\"},\\\"children\\\":\\\"Reload\\\"}]}]]}]}]}]]}],null,[\\\"$\\\",\\\"$L4\\\",null,{\\\"children\\\":[\\\"$\\\",\\\"$5\\\",null,{\\\"name\\\":\\\"Next.MetadataOutlet\\\",\\\"children\\\":\\\"$@6\\\"}]}]]}],{},null,false,null]},null,false,\\\"$@7\\\"],[\\\"$\\\",\\\"$1\\\",\\\"h\\\",{\\\"children\\\":[null,[\\\"$\\\",\\\"$L8\\\",null,{\\\"children\\\":\\\"$L9\\\"}],[\\\"$\\\",\\\"div\\\",null,{\\\"hidden\\\":true,\\\"children\\\":[\\\"$\\\",\\\"$La\\\",null,{\\\"children\\\":[\\\"$\\\",\\\"$5\\\",null,{\\\"name\\\":\\\"Next.Metadata\\\",\\\"children\\\":\\\"$Lb\\\"}]}]}],[\\\"$\\\",\\\"meta\\\",null,{\\\"name\\\":\\\"next-size-adjust\\\",\\\"content\\\":\\\"\\\"}]]}],false]],\\\"m\\\":\\\"$undefined\\\",\\\"G\\\":[\\\"$c\\\",[]],\\\"S\\\":true,\\\"h\\\":null,\\\"s\\\":\\\"$undefined\\\",\\\"l\\\":\\\"$undefined\\\",\\\"p\\\":\\\"$undefined\\\",\\\"d\\\":\\\"$undefined\\\",\\\"b\\\":\\\"KbGff8S318-K3Q1SxAl1j\\\"}\\n\"])</script><script>self.__next_f.push([1,\"d:[]\\n7:\\\"$Wd\\\"\\n\"])</script><script>self.__next_f.push([1,\"9:[[\\\"$\\\",\\\"meta\\\",\\\"0\\\",{\\\"charSet\\\":\\\"utf-8\\\"}],[\\\"$\\\",\\\"meta\\\",\\\"1\\\",{\\\"name\\\":\\\"viewport\\\",\\\"content\\\":\\\"width=device-width, initial-scale=1\\\"}]]\\n\"])</script><script>self.__next_f.push([1,\"6:null\\nb:[]\\n\"])</script></body></html>","rsc":"1:\"$Sreact.fragment\"\n2:I[790577,[\"/_next/static/chunks/11to4eul..x_r.js\",\"/_next/static/chunks/0i03b5ztjvdxj.js\"],\"default\"]\n3:I[355427,[\"/_next/static/chunks/11to4eul..x_r.js\",\"/_next/static/chunks/0i03b5ztjvdxj.js\"],\"default\"]\n4:I[429253,[\"/_next/static/chunks/11to4eul..x_r.js\",\"/_next/static/chunks/0i03b5ztjvdxj.js\"],\"OutletBoundary\"]\n5:\"$Sreact.suspense\"\n8:I[429253,[\"/_next/static/chunks/11to4eul..x_r.js\",\"/_next/static/chunks/0i03b5ztjvdxj.js\"],\"ViewportBoundary\"]\na:I[429253,[\"/_next/static/chunks/11to4eul..x_r.js\",\"/_next/static/chunks/0i03b5ztjvdxj.js\"],\"MetadataBoundary\"]\nc:I[613133,[\"/_next/static/chunks/11to4eul..x_r.js\",\"/_next/static/chunks/0i03b5ztjvdxj.js\"],\"default\",1]\n0:{\"P\":null,\"c\":[\"\",\"_global-error\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"__PAGE__\",{}]}],[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"html\",null,{\"id\":\"__next_error__\",\"children\":[[\"$\",\"head\",null,{\"children\":[[\"$\",\"title\",null,{\"children\":\"500: This page couldn’t load\"}],[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\":root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }\"}}]]}],[\"$\",\"body\",null,{\"children\":[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"display\":\"flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"style\":{\"marginTop\":\"-32px\",\"maxWidth\":\"325px\",\"padding\":\"32px 28px\",\"textAlign\":\"left\"},\"children\":[[\"$\",\"svg\",null,{\"width\":\"32\",\"height\":\"32\",\"viewBox\":\"-0.2 -1.5 32 32\",\"fill\":\"none\",\"style\":{\"marginBottom\":\"24px\"},\"children\":[\"$\",\"path\",null,{\"d\":\"M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z\",\"fill\":\"var(--next-error-title)\"}]}],[\"$\",\"h1\",null,{\"style\":{\"fontSize\":\"24px\",\"fontWeight\":500,\"letterSpacing\":\"-0.02em\",\"lineHeight\":\"32px\",\"margin\":\"0 0 12px 0\",\"color\":\"var(--next-error-title)\"},\"children\":\"This page couldn’t load\"}],[\"$\",\"p\",null,{\"style\":{\"fontSize\":\"14px\",\"fontWeight\":400,\"lineHeight\":\"21px\",\"margin\":\"0 0 20px 0\",\"color\":\"var(--next-error-message)\"},\"children\":\"A server error occurred. Reload to try again.\"}],[\"$\",\"form\",null,{\"style\":{\"margin\":0},\"children\":[\"$\",\"button\",null,{\"type\":\"submit\",\"style\":{\"display\":\"inline-flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\",\"height\":\"32px\",\"padding\":\"0 12px\",\"fontSize\":\"14px\",\"fontWeight\":500,\"lineHeight\":\"20px\",\"borderRadius\":\"6px\",\"cursor\":\"pointer\",\"color\":\"var(--next-error-btn-text)\",\"background\":\"var(--next-error-btn-bg)\",\"border\":\"var(--next-error-btn-border)\"},\"children\":\"Reload\"}]}]]}]}]}]]}],null,[\"$\",\"$L4\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@6\"}]}]]}],{},null,false,null]},null,false,\"$@7\"],[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$L8\",null,{\"children\":\"$L9\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$La\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Lb\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$c\",[]],\"S\":true,\"h\":null,\"s\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"KbGff8S318-K3Q1SxAl1j\"}\nd:[]\n7:\"$Wd\"\n9:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n6:null\nb:[]\n","segmentData":{"/_tree":"0:{\"tree\":{\"name\":\"\",\"param\":null,\"prefetchHints\":0,\"slots\":{\"children\":{\"name\":\"__PAGE__\",\"param\":null,\"prefetchHints\":0,\"slots\":null}}},\"staleTime\":300,\"buildId\":\"KbGff8S318-K3Q1SxAl1j\"}\n","/_full":"1:\"$Sreact.fragment\"\n2:I[790577,[\"/_next/static/chunks/11to4eul..x_r.js\",\"/_next/static/chunks/0i03b5ztjvdxj.js\"],\"default\"]\n3:I[355427,[\"/_next/static/chunks/11to4eul..x_r.js\",\"/_next/static/chunks/0i03b5ztjvdxj.js\"],\"default\"]\n4:I[429253,[\"/_next/static/chunks/11to4eul..x_r.js\",\"/_next/static/chunks/0i03b5ztjvdxj.js\"],\"OutletBoundary\"]\n5:\"$Sreact.suspense\"\n8:I[429253,[\"/_next/static/chunks/11to4eul..x_r.js\",\"/_next/static/chunks/0i03b5ztjvdxj.js\"],\"ViewportBoundary\"]\na:I[429253,[\"/_next/static/chunks/11to4eul..x_r.js\",\"/_next/static/chunks/0i03b5ztjvdxj.js\"],\"MetadataBoundary\"]\nc:I[613133,[\"/_next/static/chunks/11to4eul..x_r.js\",\"/_next/static/chunks/0i03b5ztjvdxj.js\"],\"default\",1]\n0:{\"P\":null,\"c\":[\"\",\"_global-error\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"__PAGE__\",{}]}],[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"html\",null,{\"id\":\"__next_error__\",\"children\":[[\"$\",\"head\",null,{\"children\":[[\"$\",\"title\",null,{\"children\":\"500: This page couldn’t load\"}],[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\":root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }\"}}]]}],[\"$\",\"body\",null,{\"children\":[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"display\":\"flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"style\":{\"marginTop\":\"-32px\",\"maxWidth\":\"325px\",\"padding\":\"32px 28px\",\"textAlign\":\"left\"},\"children\":[[\"$\",\"svg\",null,{\"width\":\"32\",\"height\":\"32\",\"viewBox\":\"-0.2 -1.5 32 32\",\"fill\":\"none\",\"style\":{\"marginBottom\":\"24px\"},\"children\":[\"$\",\"path\",null,{\"d\":\"M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z\",\"fill\":\"var(--next-error-title)\"}]}],[\"$\",\"h1\",null,{\"style\":{\"fontSize\":\"24px\",\"fontWeight\":500,\"letterSpacing\":\"-0.02em\",\"lineHeight\":\"32px\",\"margin\":\"0 0 12px 0\",\"color\":\"var(--next-error-title)\"},\"children\":\"This page couldn’t load\"}],[\"$\",\"p\",null,{\"style\":{\"fontSize\":\"14px\",\"fontWeight\":400,\"lineHeight\":\"21px\",\"margin\":\"0 0 20px 0\",\"color\":\"var(--next-error-message)\"},\"children\":\"A server error occurred. Reload to try again.\"}],[\"$\",\"form\",null,{\"style\":{\"margin\":0},\"children\":[\"$\",\"button\",null,{\"type\":\"submit\",\"style\":{\"display\":\"inline-flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\",\"height\":\"32px\",\"padding\":\"0 12px\",\"fontSize\":\"14px\",\"fontWeight\":500,\"lineHeight\":\"20px\",\"borderRadius\":\"6px\",\"cursor\":\"pointer\",\"color\":\"var(--next-error-btn-text)\",\"background\":\"var(--next-error-btn-bg)\",\"border\":\"var(--next-error-btn-border)\"},\"children\":\"Reload\"}]}]]}]}]}]]}],null,[\"$\",\"$L4\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@6\"}]}]]}],{},null,false,null]},null,false,\"$@7\"],[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$L8\",null,{\"children\":\"$L9\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$La\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Lb\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$c\",[]],\"S\":true,\"h\":null,\"s\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"KbGff8S318-K3Q1SxAl1j\"}\nd:[]\n7:\"$Wd\"\n9:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n6:null\nb:[]\n","/__PAGE__":"1:\"$Sreact.fragment\"\n2:I[429253,[\"/_next/static/chunks/11to4eul..x_r.js\",\"/_next/static/chunks/0i03b5ztjvdxj.js\"],\"OutletBoundary\"]\n3:\"$Sreact.suspense\"\n0:{\"rsc\":[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"html\",null,{\"id\":\"__next_error__\",\"children\":[[\"$\",\"head\",null,{\"children\":[[\"$\",\"title\",null,{\"children\":\"500: This page couldn’t load\"}],[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\":root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }\"}}]]}],[\"$\",\"body\",null,{\"children\":[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"display\":\"flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"style\":{\"marginTop\":\"-32px\",\"maxWidth\":\"325px\",\"padding\":\"32px 28px\",\"textAlign\":\"left\"},\"children\":[[\"$\",\"svg\",null,{\"width\":\"32\",\"height\":\"32\",\"viewBox\":\"-0.2 -1.5 32 32\",\"fill\":\"none\",\"style\":{\"marginBottom\":\"24px\"},\"children\":[\"$\",\"path\",null,{\"d\":\"M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z\",\"fill\":\"var(--next-error-title)\"}]}],[\"$\",\"h1\",null,{\"style\":{\"fontSize\":\"24px\",\"fontWeight\":500,\"letterSpacing\":\"-0.02em\",\"lineHeight\":\"32px\",\"margin\":\"0 0 12px 0\",\"color\":\"var(--next-error-title)\"},\"children\":\"This page couldn’t load\"}],[\"$\",\"p\",null,{\"style\":{\"fontSize\":\"14px\",\"fontWeight\":400,\"lineHeight\":\"21px\",\"margin\":\"0 0 20px 0\",\"color\":\"var(--next-error-message)\"},\"children\":\"A server error occurred. Reload to try again.\"}],[\"$\",\"form\",null,{\"style\":{\"margin\":0},\"children\":[\"$\",\"button\",null,{\"type\":\"submit\",\"style\":{\"display\":\"inline-flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\",\"height\":\"32px\",\"padding\":\"0 12px\",\"fontSize\":\"14px\",\"fontWeight\":500,\"lineHeight\":\"20px\",\"borderRadius\":\"6px\",\"cursor\":\"pointer\",\"color\":\"var(--next-error-btn-text)\",\"background\":\"var(--next-error-btn-bg)\",\"border\":\"var(--next-error-btn-border)\"},\"children\":\"Reload\"}]}]]}]}]}]]}],null,[\"$\",\"$L2\",null,{\"children\":[\"$\",\"$3\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@4\"}]}]]}],\"isPartial\":false,\"staleTime\":300,\"varyParams\":null,\"buildId\":\"KbGff8S318-K3Q1SxAl1j\"}\n4:null\n","/_index":"1:\"$Sreact.fragment\"\n2:I[790577,[\"/_next/static/chunks/11to4eul..x_r.js\",\"/_next/static/chunks/0i03b5ztjvdxj.js\"],\"default\"]\n3:I[355427,[\"/_next/static/chunks/11to4eul..x_r.js\",\"/_next/static/chunks/0i03b5ztjvdxj.js\"],\"default\"]\n4:[]\n0:{\"rsc\":[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"template\":[\"$\",\"$L3\",null,{}]}]]}],\"isPartial\":false,\"staleTime\":300,\"varyParams\":\"$W4\",\"buildId\":\"KbGff8S318-K3Q1SxAl1j\"}\n","/_head":"1:\"$Sreact.fragment\"\n2:I[429253,[\"/_next/static/chunks/11to4eul..x_r.js\",\"/_next/static/chunks/0i03b5ztjvdxj.js\"],\"ViewportBoundary\"]\n3:I[429253,[\"/_next/static/chunks/11to4eul..x_r.js\",\"/_next/static/chunks/0i03b5ztjvdxj.js\"],\"MetadataBoundary\"]\n4:\"$Sreact.suspense\"\n0:{\"rsc\":[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$L2\",null,{\"children\":[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$L3\",null,{\"children\":[\"$\",\"$4\",null,{\"name\":\"Next.Metadata\",\"children\":[]}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],\"isPartial\":false,\"staleTime\":300,\"varyParams\":null,\"buildId\":\"KbGff8S318-K3Q1SxAl1j\"}\n"}}
1
+ {"type":"app","meta":{"status":500,"headers":{"x-nextjs-stale-time":"300","x-nextjs-prerender":"1","x-next-cache-tags":"_N_T_/layout,_N_T_/_global-error/layout,_N_T_/_global-error/page,_N_T_/_global-error"},"segmentPaths":["/_tree","/_full","/__PAGE__","/_index","/_head"]},"html":"<!DOCTYPE html><html id=\"__next_error__\"><head><meta charSet=\"utf-8\"/><meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"/><link rel=\"preload\" as=\"script\" fetchPriority=\"low\" href=\"/_next/static/chunks/0fus_woghk6f3.js\"/><script src=\"/_next/static/chunks/0r3jwl2u7dg7i.js\" async=\"\"></script><script src=\"/_next/static/chunks/0dx03klusrev7.js\" async=\"\"></script><script src=\"/_next/static/chunks/0qene6wqb57fm.js\" async=\"\"></script><script src=\"/_next/static/chunks/0qwvs4yod0mnt.js\" async=\"\"></script><script src=\"/_next/static/chunks/turbopack-0qm2.fmm~fnpy.js\" async=\"\"></script><script src=\"/_next/static/chunks/11to4eul..x_r.js\" async=\"\"></script><script src=\"/_next/static/chunks/0i03b5ztjvdxj.js\" async=\"\"></script><meta name=\"next-size-adjust\" content=\"\"/><title>500: This page couldn’t load</title><style>:root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }</style><script src=\"/_next/static/chunks/03~yq9q893hmn.js\" noModule=\"\"></script></head><body><div hidden=\"\"><!--$--><!--/$--></div><div style=\"font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;display:flex;align-items:center;justify-content:center\"><div style=\"margin-top:-32px;max-width:325px;padding:32px 28px;text-align:left\"><svg width=\"32\" height=\"32\" viewBox=\"-0.2 -1.5 32 32\" fill=\"none\" style=\"margin-bottom:24px\"><path d=\"M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z\" fill=\"var(--next-error-title)\"></path></svg><h1 style=\"font-size:24px;font-weight:500;letter-spacing:-0.02em;line-height:32px;margin:0 0 12px 0;color:var(--next-error-title)\">This page couldn’t load</h1><p style=\"font-size:14px;font-weight:400;line-height:21px;margin:0 0 20px 0;color:var(--next-error-message)\">A server error occurred. Reload to try again.</p><form style=\"margin:0\"><button type=\"submit\" style=\"display:inline-flex;align-items:center;justify-content:center;height:32px;padding:0 12px;font-size:14px;font-weight:500;line-height:20px;border-radius:6px;cursor:pointer;color:var(--next-error-btn-text);background:var(--next-error-btn-bg);border:var(--next-error-btn-border)\">Reload</button></form></div></div><!--$--><!--/$--><script src=\"/_next/static/chunks/0fus_woghk6f3.js\" id=\"_R_\" async=\"\"></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,\"1:\\\"$Sreact.fragment\\\"\\n2:I[790577,[\\\"/_next/static/chunks/11to4eul..x_r.js\\\",\\\"/_next/static/chunks/0i03b5ztjvdxj.js\\\"],\\\"default\\\"]\\n3:I[355427,[\\\"/_next/static/chunks/11to4eul..x_r.js\\\",\\\"/_next/static/chunks/0i03b5ztjvdxj.js\\\"],\\\"default\\\"]\\n4:I[429253,[\\\"/_next/static/chunks/11to4eul..x_r.js\\\",\\\"/_next/static/chunks/0i03b5ztjvdxj.js\\\"],\\\"OutletBoundary\\\"]\\n5:\\\"$Sreact.suspense\\\"\\n8:I[429253,[\\\"/_next/static/chunks/11to4eul..x_r.js\\\",\\\"/_next/static/chunks/0i03b5ztjvdxj.js\\\"],\\\"ViewportBoundary\\\"]\\na:I[429253,[\\\"/_next/static/chunks/11to4eul..x_r.js\\\",\\\"/_next/static/chunks/0i03b5ztjvdxj.js\\\"],\\\"MetadataBoundary\\\"]\\nc:I[613133,[\\\"/_next/static/chunks/11to4eul..x_r.js\\\",\\\"/_next/static/chunks/0i03b5ztjvdxj.js\\\"],\\\"default\\\",1]\\n\"])</script><script>self.__next_f.push([1,\"0:{\\\"P\\\":null,\\\"c\\\":[\\\"\\\",\\\"_global-error\\\"],\\\"q\\\":\\\"\\\",\\\"i\\\":false,\\\"f\\\":[[[\\\"\\\",{\\\"children\\\":[\\\"__PAGE__\\\",{}]}],[[\\\"$\\\",\\\"$1\\\",\\\"c\\\",{\\\"children\\\":[null,[\\\"$\\\",\\\"$L2\\\",null,{\\\"parallelRouterKey\\\":\\\"children\\\",\\\"error\\\":\\\"$undefined\\\",\\\"errorStyles\\\":\\\"$undefined\\\",\\\"errorScripts\\\":\\\"$undefined\\\",\\\"template\\\":[\\\"$\\\",\\\"$L3\\\",null,{}],\\\"templateStyles\\\":\\\"$undefined\\\",\\\"templateScripts\\\":\\\"$undefined\\\",\\\"notFound\\\":\\\"$undefined\\\",\\\"forbidden\\\":\\\"$undefined\\\",\\\"unauthorized\\\":\\\"$undefined\\\"}]]}],{\\\"children\\\":[[\\\"$\\\",\\\"$1\\\",\\\"c\\\",{\\\"children\\\":[[\\\"$\\\",\\\"html\\\",null,{\\\"id\\\":\\\"__next_error__\\\",\\\"children\\\":[[\\\"$\\\",\\\"head\\\",null,{\\\"children\\\":[[\\\"$\\\",\\\"title\\\",null,{\\\"children\\\":\\\"500: This page couldn’t load\\\"}],[\\\"$\\\",\\\"style\\\",null,{\\\"dangerouslySetInnerHTML\\\":{\\\"__html\\\":\\\":root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }\\\"}}]]}],[\\\"$\\\",\\\"body\\\",null,{\\\"children\\\":[\\\"$\\\",\\\"div\\\",null,{\\\"style\\\":{\\\"fontFamily\\\":\\\"system-ui,\\\\\\\"Segoe UI\\\\\\\",Roboto,Helvetica,Arial,sans-serif,\\\\\\\"Apple Color Emoji\\\\\\\",\\\\\\\"Segoe UI Emoji\\\\\\\"\\\",\\\"height\\\":\\\"100vh\\\",\\\"display\\\":\\\"flex\\\",\\\"alignItems\\\":\\\"center\\\",\\\"justifyContent\\\":\\\"center\\\"},\\\"children\\\":[\\\"$\\\",\\\"div\\\",null,{\\\"style\\\":{\\\"marginTop\\\":\\\"-32px\\\",\\\"maxWidth\\\":\\\"325px\\\",\\\"padding\\\":\\\"32px 28px\\\",\\\"textAlign\\\":\\\"left\\\"},\\\"children\\\":[[\\\"$\\\",\\\"svg\\\",null,{\\\"width\\\":\\\"32\\\",\\\"height\\\":\\\"32\\\",\\\"viewBox\\\":\\\"-0.2 -1.5 32 32\\\",\\\"fill\\\":\\\"none\\\",\\\"style\\\":{\\\"marginBottom\\\":\\\"24px\\\"},\\\"children\\\":[\\\"$\\\",\\\"path\\\",null,{\\\"d\\\":\\\"M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z\\\",\\\"fill\\\":\\\"var(--next-error-title)\\\"}]}],[\\\"$\\\",\\\"h1\\\",null,{\\\"style\\\":{\\\"fontSize\\\":\\\"24px\\\",\\\"fontWeight\\\":500,\\\"letterSpacing\\\":\\\"-0.02em\\\",\\\"lineHeight\\\":\\\"32px\\\",\\\"margin\\\":\\\"0 0 12px 0\\\",\\\"color\\\":\\\"var(--next-error-title)\\\"},\\\"children\\\":\\\"This page couldn’t load\\\"}],[\\\"$\\\",\\\"p\\\",null,{\\\"style\\\":{\\\"fontSize\\\":\\\"14px\\\",\\\"fontWeight\\\":400,\\\"lineHeight\\\":\\\"21px\\\",\\\"margin\\\":\\\"0 0 20px 0\\\",\\\"color\\\":\\\"var(--next-error-message)\\\"},\\\"children\\\":\\\"A server error occurred. Reload to try again.\\\"}],[\\\"$\\\",\\\"form\\\",null,{\\\"style\\\":{\\\"margin\\\":0},\\\"children\\\":[\\\"$\\\",\\\"button\\\",null,{\\\"type\\\":\\\"submit\\\",\\\"style\\\":{\\\"display\\\":\\\"inline-flex\\\",\\\"alignItems\\\":\\\"center\\\",\\\"justifyContent\\\":\\\"center\\\",\\\"height\\\":\\\"32px\\\",\\\"padding\\\":\\\"0 12px\\\",\\\"fontSize\\\":\\\"14px\\\",\\\"fontWeight\\\":500,\\\"lineHeight\\\":\\\"20px\\\",\\\"borderRadius\\\":\\\"6px\\\",\\\"cursor\\\":\\\"pointer\\\",\\\"color\\\":\\\"var(--next-error-btn-text)\\\",\\\"background\\\":\\\"var(--next-error-btn-bg)\\\",\\\"border\\\":\\\"var(--next-error-btn-border)\\\"},\\\"children\\\":\\\"Reload\\\"}]}]]}]}]}]]}],null,[\\\"$\\\",\\\"$L4\\\",null,{\\\"children\\\":[\\\"$\\\",\\\"$5\\\",null,{\\\"name\\\":\\\"Next.MetadataOutlet\\\",\\\"children\\\":\\\"$@6\\\"}]}]]}],{},null,false,null]},null,false,\\\"$@7\\\"],[\\\"$\\\",\\\"$1\\\",\\\"h\\\",{\\\"children\\\":[null,[\\\"$\\\",\\\"$L8\\\",null,{\\\"children\\\":\\\"$L9\\\"}],[\\\"$\\\",\\\"div\\\",null,{\\\"hidden\\\":true,\\\"children\\\":[\\\"$\\\",\\\"$La\\\",null,{\\\"children\\\":[\\\"$\\\",\\\"$5\\\",null,{\\\"name\\\":\\\"Next.Metadata\\\",\\\"children\\\":\\\"$Lb\\\"}]}]}],[\\\"$\\\",\\\"meta\\\",null,{\\\"name\\\":\\\"next-size-adjust\\\",\\\"content\\\":\\\"\\\"}]]}],false]],\\\"m\\\":\\\"$undefined\\\",\\\"G\\\":[\\\"$c\\\",[]],\\\"S\\\":true,\\\"h\\\":null,\\\"s\\\":\\\"$undefined\\\",\\\"l\\\":\\\"$undefined\\\",\\\"p\\\":\\\"$undefined\\\",\\\"d\\\":\\\"$undefined\\\",\\\"b\\\":\\\"vRKVEITxr39O9Q-RYSK4T\\\"}\\n\"])</script><script>self.__next_f.push([1,\"d:[]\\n7:\\\"$Wd\\\"\\n\"])</script><script>self.__next_f.push([1,\"9:[[\\\"$\\\",\\\"meta\\\",\\\"0\\\",{\\\"charSet\\\":\\\"utf-8\\\"}],[\\\"$\\\",\\\"meta\\\",\\\"1\\\",{\\\"name\\\":\\\"viewport\\\",\\\"content\\\":\\\"width=device-width, initial-scale=1\\\"}]]\\n\"])</script><script>self.__next_f.push([1,\"6:null\\nb:[]\\n\"])</script></body></html>","rsc":"1:\"$Sreact.fragment\"\n2:I[790577,[\"/_next/static/chunks/11to4eul..x_r.js\",\"/_next/static/chunks/0i03b5ztjvdxj.js\"],\"default\"]\n3:I[355427,[\"/_next/static/chunks/11to4eul..x_r.js\",\"/_next/static/chunks/0i03b5ztjvdxj.js\"],\"default\"]\n4:I[429253,[\"/_next/static/chunks/11to4eul..x_r.js\",\"/_next/static/chunks/0i03b5ztjvdxj.js\"],\"OutletBoundary\"]\n5:\"$Sreact.suspense\"\n8:I[429253,[\"/_next/static/chunks/11to4eul..x_r.js\",\"/_next/static/chunks/0i03b5ztjvdxj.js\"],\"ViewportBoundary\"]\na:I[429253,[\"/_next/static/chunks/11to4eul..x_r.js\",\"/_next/static/chunks/0i03b5ztjvdxj.js\"],\"MetadataBoundary\"]\nc:I[613133,[\"/_next/static/chunks/11to4eul..x_r.js\",\"/_next/static/chunks/0i03b5ztjvdxj.js\"],\"default\",1]\n0:{\"P\":null,\"c\":[\"\",\"_global-error\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"__PAGE__\",{}]}],[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"html\",null,{\"id\":\"__next_error__\",\"children\":[[\"$\",\"head\",null,{\"children\":[[\"$\",\"title\",null,{\"children\":\"500: This page couldn’t load\"}],[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\":root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }\"}}]]}],[\"$\",\"body\",null,{\"children\":[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"display\":\"flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"style\":{\"marginTop\":\"-32px\",\"maxWidth\":\"325px\",\"padding\":\"32px 28px\",\"textAlign\":\"left\"},\"children\":[[\"$\",\"svg\",null,{\"width\":\"32\",\"height\":\"32\",\"viewBox\":\"-0.2 -1.5 32 32\",\"fill\":\"none\",\"style\":{\"marginBottom\":\"24px\"},\"children\":[\"$\",\"path\",null,{\"d\":\"M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z\",\"fill\":\"var(--next-error-title)\"}]}],[\"$\",\"h1\",null,{\"style\":{\"fontSize\":\"24px\",\"fontWeight\":500,\"letterSpacing\":\"-0.02em\",\"lineHeight\":\"32px\",\"margin\":\"0 0 12px 0\",\"color\":\"var(--next-error-title)\"},\"children\":\"This page couldn’t load\"}],[\"$\",\"p\",null,{\"style\":{\"fontSize\":\"14px\",\"fontWeight\":400,\"lineHeight\":\"21px\",\"margin\":\"0 0 20px 0\",\"color\":\"var(--next-error-message)\"},\"children\":\"A server error occurred. Reload to try again.\"}],[\"$\",\"form\",null,{\"style\":{\"margin\":0},\"children\":[\"$\",\"button\",null,{\"type\":\"submit\",\"style\":{\"display\":\"inline-flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\",\"height\":\"32px\",\"padding\":\"0 12px\",\"fontSize\":\"14px\",\"fontWeight\":500,\"lineHeight\":\"20px\",\"borderRadius\":\"6px\",\"cursor\":\"pointer\",\"color\":\"var(--next-error-btn-text)\",\"background\":\"var(--next-error-btn-bg)\",\"border\":\"var(--next-error-btn-border)\"},\"children\":\"Reload\"}]}]]}]}]}]]}],null,[\"$\",\"$L4\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@6\"}]}]]}],{},null,false,null]},null,false,\"$@7\"],[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$L8\",null,{\"children\":\"$L9\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$La\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Lb\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$c\",[]],\"S\":true,\"h\":null,\"s\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"vRKVEITxr39O9Q-RYSK4T\"}\nd:[]\n7:\"$Wd\"\n9:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n6:null\nb:[]\n","segmentData":{"/_tree":"0:{\"tree\":{\"name\":\"\",\"param\":null,\"prefetchHints\":0,\"slots\":{\"children\":{\"name\":\"__PAGE__\",\"param\":null,\"prefetchHints\":0,\"slots\":null}}},\"staleTime\":300,\"buildId\":\"vRKVEITxr39O9Q-RYSK4T\"}\n","/_full":"1:\"$Sreact.fragment\"\n2:I[790577,[\"/_next/static/chunks/11to4eul..x_r.js\",\"/_next/static/chunks/0i03b5ztjvdxj.js\"],\"default\"]\n3:I[355427,[\"/_next/static/chunks/11to4eul..x_r.js\",\"/_next/static/chunks/0i03b5ztjvdxj.js\"],\"default\"]\n4:I[429253,[\"/_next/static/chunks/11to4eul..x_r.js\",\"/_next/static/chunks/0i03b5ztjvdxj.js\"],\"OutletBoundary\"]\n5:\"$Sreact.suspense\"\n8:I[429253,[\"/_next/static/chunks/11to4eul..x_r.js\",\"/_next/static/chunks/0i03b5ztjvdxj.js\"],\"ViewportBoundary\"]\na:I[429253,[\"/_next/static/chunks/11to4eul..x_r.js\",\"/_next/static/chunks/0i03b5ztjvdxj.js\"],\"MetadataBoundary\"]\nc:I[613133,[\"/_next/static/chunks/11to4eul..x_r.js\",\"/_next/static/chunks/0i03b5ztjvdxj.js\"],\"default\",1]\n0:{\"P\":null,\"c\":[\"\",\"_global-error\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"__PAGE__\",{}]}],[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"html\",null,{\"id\":\"__next_error__\",\"children\":[[\"$\",\"head\",null,{\"children\":[[\"$\",\"title\",null,{\"children\":\"500: This page couldn’t load\"}],[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\":root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }\"}}]]}],[\"$\",\"body\",null,{\"children\":[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"display\":\"flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"style\":{\"marginTop\":\"-32px\",\"maxWidth\":\"325px\",\"padding\":\"32px 28px\",\"textAlign\":\"left\"},\"children\":[[\"$\",\"svg\",null,{\"width\":\"32\",\"height\":\"32\",\"viewBox\":\"-0.2 -1.5 32 32\",\"fill\":\"none\",\"style\":{\"marginBottom\":\"24px\"},\"children\":[\"$\",\"path\",null,{\"d\":\"M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z\",\"fill\":\"var(--next-error-title)\"}]}],[\"$\",\"h1\",null,{\"style\":{\"fontSize\":\"24px\",\"fontWeight\":500,\"letterSpacing\":\"-0.02em\",\"lineHeight\":\"32px\",\"margin\":\"0 0 12px 0\",\"color\":\"var(--next-error-title)\"},\"children\":\"This page couldn’t load\"}],[\"$\",\"p\",null,{\"style\":{\"fontSize\":\"14px\",\"fontWeight\":400,\"lineHeight\":\"21px\",\"margin\":\"0 0 20px 0\",\"color\":\"var(--next-error-message)\"},\"children\":\"A server error occurred. Reload to try again.\"}],[\"$\",\"form\",null,{\"style\":{\"margin\":0},\"children\":[\"$\",\"button\",null,{\"type\":\"submit\",\"style\":{\"display\":\"inline-flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\",\"height\":\"32px\",\"padding\":\"0 12px\",\"fontSize\":\"14px\",\"fontWeight\":500,\"lineHeight\":\"20px\",\"borderRadius\":\"6px\",\"cursor\":\"pointer\",\"color\":\"var(--next-error-btn-text)\",\"background\":\"var(--next-error-btn-bg)\",\"border\":\"var(--next-error-btn-border)\"},\"children\":\"Reload\"}]}]]}]}]}]]}],null,[\"$\",\"$L4\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@6\"}]}]]}],{},null,false,null]},null,false,\"$@7\"],[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$L8\",null,{\"children\":\"$L9\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$La\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Lb\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$c\",[]],\"S\":true,\"h\":null,\"s\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"vRKVEITxr39O9Q-RYSK4T\"}\nd:[]\n7:\"$Wd\"\n9:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n6:null\nb:[]\n","/__PAGE__":"1:\"$Sreact.fragment\"\n2:I[429253,[\"/_next/static/chunks/11to4eul..x_r.js\",\"/_next/static/chunks/0i03b5ztjvdxj.js\"],\"OutletBoundary\"]\n3:\"$Sreact.suspense\"\n0:{\"rsc\":[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"html\",null,{\"id\":\"__next_error__\",\"children\":[[\"$\",\"head\",null,{\"children\":[[\"$\",\"title\",null,{\"children\":\"500: This page couldn’t load\"}],[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\":root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }\"}}]]}],[\"$\",\"body\",null,{\"children\":[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"display\":\"flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"style\":{\"marginTop\":\"-32px\",\"maxWidth\":\"325px\",\"padding\":\"32px 28px\",\"textAlign\":\"left\"},\"children\":[[\"$\",\"svg\",null,{\"width\":\"32\",\"height\":\"32\",\"viewBox\":\"-0.2 -1.5 32 32\",\"fill\":\"none\",\"style\":{\"marginBottom\":\"24px\"},\"children\":[\"$\",\"path\",null,{\"d\":\"M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z\",\"fill\":\"var(--next-error-title)\"}]}],[\"$\",\"h1\",null,{\"style\":{\"fontSize\":\"24px\",\"fontWeight\":500,\"letterSpacing\":\"-0.02em\",\"lineHeight\":\"32px\",\"margin\":\"0 0 12px 0\",\"color\":\"var(--next-error-title)\"},\"children\":\"This page couldn’t load\"}],[\"$\",\"p\",null,{\"style\":{\"fontSize\":\"14px\",\"fontWeight\":400,\"lineHeight\":\"21px\",\"margin\":\"0 0 20px 0\",\"color\":\"var(--next-error-message)\"},\"children\":\"A server error occurred. Reload to try again.\"}],[\"$\",\"form\",null,{\"style\":{\"margin\":0},\"children\":[\"$\",\"button\",null,{\"type\":\"submit\",\"style\":{\"display\":\"inline-flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\",\"height\":\"32px\",\"padding\":\"0 12px\",\"fontSize\":\"14px\",\"fontWeight\":500,\"lineHeight\":\"20px\",\"borderRadius\":\"6px\",\"cursor\":\"pointer\",\"color\":\"var(--next-error-btn-text)\",\"background\":\"var(--next-error-btn-bg)\",\"border\":\"var(--next-error-btn-border)\"},\"children\":\"Reload\"}]}]]}]}]}]]}],null,[\"$\",\"$L2\",null,{\"children\":[\"$\",\"$3\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@4\"}]}]]}],\"isPartial\":false,\"staleTime\":300,\"varyParams\":null,\"buildId\":\"vRKVEITxr39O9Q-RYSK4T\"}\n4:null\n","/_index":"1:\"$Sreact.fragment\"\n2:I[790577,[\"/_next/static/chunks/11to4eul..x_r.js\",\"/_next/static/chunks/0i03b5ztjvdxj.js\"],\"default\"]\n3:I[355427,[\"/_next/static/chunks/11to4eul..x_r.js\",\"/_next/static/chunks/0i03b5ztjvdxj.js\"],\"default\"]\n4:[]\n0:{\"rsc\":[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"template\":[\"$\",\"$L3\",null,{}]}]]}],\"isPartial\":false,\"staleTime\":300,\"varyParams\":\"$W4\",\"buildId\":\"vRKVEITxr39O9Q-RYSK4T\"}\n","/_head":"1:\"$Sreact.fragment\"\n2:I[429253,[\"/_next/static/chunks/11to4eul..x_r.js\",\"/_next/static/chunks/0i03b5ztjvdxj.js\"],\"ViewportBoundary\"]\n3:I[429253,[\"/_next/static/chunks/11to4eul..x_r.js\",\"/_next/static/chunks/0i03b5ztjvdxj.js\"],\"MetadataBoundary\"]\n4:\"$Sreact.suspense\"\n0:{\"rsc\":[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$L2\",null,{\"children\":[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$L3\",null,{\"children\":[\"$\",\"$4\",null,{\"name\":\"Next.Metadata\",\"children\":[]}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],\"isPartial\":false,\"staleTime\":300,\"varyParams\":null,\"buildId\":\"vRKVEITxr39O9Q-RYSK4T\"}\n"}}