1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39164,47813],{556:(e,t,r)=>{"use strict";r.d(t,{I:()=>i,g:()=>n});var s=r(67211),a=r(16699);let n=(0,s.v)()((0,a.Zr)(e=>({selectedModel:"",setSelectedModel:t=>{console.log("\uD83D\uDD27 ModelStore: Setting selected model to:",t),e({selectedModel:t})}}),{name:"rgo-model-selection-v3",partialize:e=>({selectedModel:e.selectedModel})})),i=e=>e.split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")},903:(e,t,r)=>{"use strict";r.d(t,{Skeleton:()=>l});var s=r(78542),a=r(52936),n=r.n(a),i=r(72409);function l(e){let{className:t,...r}=e;return(0,s.jsxs)("div",{...r,className:"jsx-eb6ee9c20e93c131 "+(r&&null!=r.className&&r.className||(0,i.cn)("relative overflow-hidden rounded-2xl","bg-gradient-to-r from-primary/10 via-primary/5 to-primary/10","background-animate",t)||""),children:[(0,s.jsx)("div",{className:"jsx-eb6ee9c20e93c131 shimmer-wrapper",children:(0,s.jsx)("div",{className:"jsx-eb6ee9c20e93c131 shimmer"})}),(0,s.jsx)(n(),{id:"eb6ee9c20e93c131",children:".background-animate.jsx-eb6ee9c20e93c131{background-size:200%200%;animation:gradientAnimation 1s ease infinite}@keyframes gradientAnimation{0%{background-position:0%50%}50%{background-position:100%50%}100%{background-position:0%50%}}.shimmer-wrapper.jsx-eb6ee9c20e93c131{position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden}.shimmer.jsx-eb6ee9c20e93c131{width:50%;height:100%;background:linear-gradient(90deg,rgba(255,255,255,0)0%,rgba(255,255,255,.3)50%,rgba(255,255,255,0)100%);animation:shimmerAnimation 1s infinite;position:absolute;top:0;transform:translatex(-300%)}@keyframes shimmerAnimation{to{transform:translatex(300%)}}"})]})}r(18558)},2965:(e,t,r)=>{"use strict";r.d(t,{$4:()=>h,TD:()=>o,WU:()=>i,bO:()=>d,c9:()=>u,q5:()=>c,vt:()=>n,x4:()=>l});var s=r(40570);let a="https://api.rationalgo.ai/v1",n=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};try{let t=await (0,s.getAccessTokenAsync)();if(!t)throw Error("You must be logged in to get agents");let r=new URLSearchParams;e.page&&e.page>1&&r.append("page",e.page.toString()),e.limit&&r.append("limit",e.limit.toString()),e.search&&r.append("search",e.search),e.sort_by&&r.append("sort_by",e.sort_by),e.sort_order&&r.append("sort_order",e.sort_order),void 0!==e.has_default&&r.append("has_default",e.has_default.toString()),void 0!==e.has_mcp_tools&&r.append("has_mcp_tools",e.has_mcp_tools.toString()),void 0!==e.has_rgo_base_tools&&r.append("has_rgo_base_tools",e.has_rgo_base_tools.toString()),e.tools&&r.append("tools",e.tools);let n="".concat(a,"/agents").concat(r.toString()?"?".concat(r.toString()):""),i=await fetch(n,{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(t)}});if(!i.ok){let e=await i.json().catch(()=>({message:"Unknown error"}));throw Error(e.message||"HTTP ".concat(i.status,": ").concat(i.statusText))}return await i.json()}catch(e){throw console.error("Error fetching agents:",e),e}},i=async e=>{try{let t=await (0,s.getAccessTokenAsync)();if(!t)throw Error("You must be logged in to get agent details");let r=await fetch("".concat(a,"/agents/").concat(e),{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(t)}});if(!r.ok){let e=await r.json().catch(()=>({message:"Unknown error"}));throw Error(e.message||"HTTP ".concat(r.status,": ").concat(r.statusText))}return await r.json()}catch(e){throw console.error("Error fetching agent:",e),e}},l=async(e,t)=>{try{let r=await (0,s.getAccessTokenAsync)();if(!r)throw Error("You must be logged in to update an agent");let n=await fetch("".concat(a,"/agents/").concat(e),{method:"PUT",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(r)},body:JSON.stringify(t)});if(!n.ok){let e=await n.json().catch(()=>({message:"Unknown error"}));throw Error(e.message||"HTTP ".concat(n.status,": {response.statusText}"))}return await n.json()}catch(e){throw console.error("Error updating agent:",e),e}},o=async e=>{try{let t=await (0,s.getAccessTokenAsync)();if(!t)throw Error("You must be logged in to get agent versions");let r=await fetch("".concat(a,"/agents/").concat(e,"/versions"),{headers:{Authorization:"Bearer ".concat(t)}});if(!r.ok){let e=await r.json().catch(()=>({message:"Unknown error"}));throw Error(e.message||"HTTP ".concat(r.status,": ").concat(r.statusText))}return await r.json()}catch(e){throw console.error("Error fetching agent versions:",e),e}},c=async(e,t)=>{try{let r=await (0,s.getAccessTokenAsync)();if(!r)throw Error("You must be logged in to create agent version");let n=await fetch("".concat(a,"/agents/").concat(e,"/versions"),{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(r)},body:JSON.stringify(t)});if(!n.ok){let e=await n.json().catch(()=>({message:"Unknown error"}));throw Error(e.message||"HTTP ".concat(n.status,": ").concat(n.statusText))}return await n.json()}catch(e){throw console.error("Error creating agent version:",e),e}},d=async(e,t)=>{try{let r=await (0,s.getAccessTokenAsync)();if(!r)throw Error("You must be logged in to activate agent version");let n=await fetch("".concat(a,"/agents/").concat(e,"/versions/").concat(t,"/activate"),{method:"PUT",headers:{Authorization:"Bearer ".concat(r)}});if(!n.ok){let e=await n.json().catch(()=>({message:"Unknown error"}));throw Error(e.message||"HTTP ".concat(n.status,": ").concat(n.statusText))}}catch(e){throw console.error("Error activating agent version:",e),e}},u=async(e,t)=>{try{let r=await (0,s.getAccessTokenAsync)();if(!r)throw Error("You must be logged in to get agent version");let n=await fetch("".concat(a,"/agents/").concat(e,"/versions/").concat(t),{headers:{Authorization:"Bearer ".concat(r)}});if(!n.ok){let e=await n.json().catch(()=>({message:"Unknown error"}));throw Error(e.message||"HTTP ".concat(n.status,": ").concat(n.statusText))}return await n.json()}catch(e){throw console.error("Error fetching agent version:",e),e}},h=async(e,t,r)=>{try{let n=await (0,s.getAccessTokenAsync)();if(!n)throw Error("You must be logged in to update version details");let i=await fetch("".concat(a,"/agents/").concat(e,"/versions/").concat(t,"/detail
1s"),{method:"PUT",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(n)},body:JSON.stringify(r)});if(!i.ok){let e=await i.json().catch(()=>({message:"Unknown error"}));throw Error(e.message||"HTTP ".concat(i.status,": ").concat(i.statusText))}return await i.json()}catch(e){throw console.error("Error updating version details:",e),e}}},20738:(e,t,r)=>{"use strict";r.d(t,{o:()=>a});var s=r(18558);function a(e,t){let[r,a]=(0,s.useState)(e);return(0,s.useEffect)(()=>{let r=setTimeout(()=>a(e),t);return()=>clearTimeout(r)},[e,t]),r}},23581:()=>{},26835:(e,t,r)=>{"use strict";r.d(t,{Bc:()=>i,ZI:()=>c,k$:()=>o,m_:()=>l});var s=r(78542);r(18558);var a=r(49734),n=r(72409);function i(e){let{delayDuration:t=0,...r}=e;return(0,s.jsx)(a.Kq,{"data-slot":"tooltip-provider",delayDuration:t,...r})}function l(e){let{...t}=e;return(0,s.jsx)(i,{children:(0,s.jsx)(a.bL,{"data-slot":"tooltip",...t})})}function o(e){let{...t}=e;return(0,s.jsx)(a.l9,{"data-slot":"tooltip-trigger",...t})}function c(e){let{className:t,sideOffset:r=0,children:i,...l}=e;return(0,s.jsx)(a.ZL,{children:(0,s.jsxs)(a.UC,{"data-slot":"tooltip-content",sideOffset:r,className:(0,n.cn)("bg-primary text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-xl px-2.5 py-1 text-xs text-balance",t),...l,children:[i,(0,s.jsx)(a.i3,{className:"bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}},27471:(e,t,r)=>{"use strict";r.d(t,{HS:()=>i,K1:()=>l,e1:()=>c,qe:()=>o,r$:()=>d,xi:()=>u});var s=r(67211),a=r(16699);let n=(0,s.v)()((0,a.Zr)((e,t)=>({selectedAgentId:void 0,hasInitialized:!1,setSelectedAgent:t=>{e({selectedAgentId:t})},initializeFromAgents:(r,s,a)=>{let n;if(!t().hasInitialized){if(s)n=s;else if(1){let e=new URLSearchParams(window.location.search).get("agent_id");e&&(n=e)}if(!n){let e=t().selectedAgentId;if(e&&r.some(t=>t.agent_id===e))n=e;else if(r.length>0){let e=r.find(e=>{var t;return null==(t=e.metadata)?void 0:t.is_rgo_default});n=e?e.agent_id:r[0].agent_id}}n&&e({selectedAgentId:n}),n&&a&&a(n),e({hasInitialized:!0})}},autoSelectAgent:(t,r,s)=>{if(0===t.length||s)return;let a=t.find(e=>{var t;return null==(t=e.metadata)?void 0:t.is_rgo_default})||t[0];a&&(r?r(a.agent_id):e({selectedAgentId:a.agent_id}))},clearSelection:()=>{e({selectedAgentId:void 0,hasInitialized:!1})},getCurrentAgent:e=>{let{selectedAgentId:r}=t();return r&&e.find(e=>e.agent_id===r)||null},isRgoAgent:e=>{var r;let{selectedAgentId:s}=t(),a=s?e.find(e=>e.agent_id===s):null;return(null==a||null==(r=a.metadata)?void 0:r.is_rgo_default)||void 0===s}}),{name:"agent-selection-storage",partialize:e=>({selectedAgentId:e.selectedAgentId})})),i=()=>n(e=>e.selectedAgentId),l=()=>n(e=>e.setSelectedAgent),o=()=>n(e=>e.initializeFromAgents),c=()=>n(e=>e.getCurrentAgent),d=()=>n(e=>e.isRgoAgent),u=()=>{let e=n();return{selectedAgentId:e.selectedAgentId,hasInitialized:e.hasInitialized,setSelectedAgent:e.setSelectedAgent,initializeFromAgents:e.initializeFromAgents,autoSelectAgent:e.autoSelectAgent,clearSelection:e.clearSelection,getCurrentAgent:e.getCurrentAgent,isRgoAgent:e.isRgoAgent}}},28109:(e,t,r)=>{"use strict";r.d(t,{EK:()=>i,py:()=>l});var s=r(67211),a=r(16699);let n=(0,s.v)()((0,a.Zr)(e=>({godModeEnabled:!0,setGodModeEnabled:t=>{e({godModeEnabled:t})},toggleGodMode:()=>{e(e=>({godModeEnabled:!e.godModeEnabled}))}}),{name:"god-mode-storage",partialize:e=>({godModeEnabled:e.godModeEnabled})})),i=()=>n(e=>e.godModeEnabled),l=()=>n(e=>e.toggleGodMode)},30725:(e,t,r)=>{"use strict";r.d(t,{DJ:()=>j}),r(21537),r(65514),r(25251),r(88003);var s=r(18558),a=r(15253),n=r(90350),i=r(15419),l=r(27471),o=r(67211),c=r(16699);let d=(0,o.v)()((0,c.Zr)(e=>({selectedMode:null,setSelectedMode:t=>{e({selectedMode:t})}}),{name:"rgo-modes-storage",partialize:e=>({selectedMode:e.selectedMode})}));var u=r(28109),h=r(58168),m=r(63960),g=r(39164),p=r(35284),f=r(57570),x=r(47155),v=r(17807);let b="pendingAgentPrompt";function j(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{redirectOnError:r="/dashboard",requireAuth:o=!0,onAuthRequired:c,agentLimit:j=50,enableAutoSubmit:y=!0,logPrefix:w="[AgentStartInput]",preferredAgent:_="rgo_default"}=t,k=(0,a.useRouter)(),{user:N,isLoading:E}=(0,p.A)(),{data:A}=(0,f.u4)({enabled:!!N}
1),[S,M]=(0,s.useState)(""),[T,C]=(0,s.useState)(!1),[R,z]=(0,s.useState)(!1),[F,I]=(0,s.useState)(!1),L=(0,s.useRef)(null),P=(0,s.useRef)(null),B=(0,s.useRef)(null),{selectedAgentId:D,setSelectedAgent:q,initializeFromAgents:O}=(0,l.xi)(),{selectedMode:U,setSelectedMode:V}=function(){let e=d();return{selectedMode:e.selectedMode,setSelectedMode:e.setSelectedMode}}(),H=(0,u.EK)(),G=(0,h.v9)(),K=(0,m.Le)(),{startAgent:Q,isStarting:W,agentLimitData:Y,showAgentLimitBanner:J,setShowAgentLimitBanner:Z,clearAgentLimitData:$}=(0,i.Wb)(r),{data:X,isLoading:ee}=(0,g._F)({limit:j,sort_by:"name",sort_order:"asc"}),et=Array.isArray(null==X?void 0:X.agents)?X.agents:[],er=et.find(e=>{var t;return(null==(t=e.metadata)?void 0:t.is_rgo_default)===!0}),es=D?et.find(e=>e.agent_id===D):null,ea=ee||!D||D===(null==er?void 0:er.agent_id)||(null==es||null==(e=es.metadata)?void 0:e.is_rgo_default)===!0;(0,s.useEffect)(()=>{var e,t;if(0===et.length)return;if("app_builder_default"===_){let e=et.find(e=>{var t;return(null==(t=e.metadata)?void 0:t.is_app_builder_default)===!0});e&&D!==e.agent_id&&q(e.agent_id);return}let r=D?et.find(e=>e.agent_id===D):void 0;if((null==r||null==(e=r.metadata)?void 0:e.is_app_builder_default)===!0){let e=et.find(e=>{var t;return(null==(t=e.metadata)?void 0:t.is_rgo_default)===!0});q(null!=(t=null==e?void 0:e.agent_id)?t:void 0);return}O(et,void 0,q)},[et,O,q,_,D]),(0,s.useEffect)(()=>{let e="/projects/".concat("prefetch-project","/thread/").concat("prefetch-thread");k.prefetch(e),P.current=e},[k]),(0,s.useEffect)(()=>(!S.trim()||T||R||(B.current&&clearTimeout(B.current),B.current=setTimeout(()=>{let e="/projects/".concat("prefetch-project","/thread/").concat("prefetch-thread");P.current!==e&&(k.prefetch(e),P.current=e)},300)),()=>
1{B.current&&clearTimeout(B.current)}),[S,T,R,k]),(0,s.useEffect)(()=>{if(!y)return;let e=setTimeout(()=>{let e=localStorage.getItem(b);e&&(M(e),I(!0))},200);return()=>clearTimeout(e)},[y]);let en=(0,m.ns)(),ei=(0,m.Rz)(),el=(0,s.useRef)(!1);(0,s.useEffect)(()=>{if(!y||"rgo_default"!==_&&"app_builder_default"!==_||!en||el.current)return;el.current=!0;let{prompt:e,fileIds:t,fileNames:r}=en;ei(null),e&&M(e),t.length>0&&queueMicrotask(()=>{var e;let s=t.map((e,t)=>{var s,a;return{fileId:e,name:null!=(s=r[t])?s:"attachment-".concat(t+1),path:"/workspace/uploads/".concat(null!=(a=r[t])?a:"attachment-".concat(t+1)),size:0,type:"application/octet-stream",status:"ready"}});null==(e=L.current)||e.hydrateUploadedFiles(s)}),(e||t.length>0)&&I(!0)},[en,_,y]);let eo=(0,n.Sw)(async(e,t)=>{var r,s;let a=(null==(r=L.current)?void 0:r.getUploadedFileIds())||[];if(!e.trim()&&!a.length||T||R||W)return;if(o&&!N&&!E){localStorage.setItem(b,e.trim()),null==c||c(e.trim());return}if(N&&A&&!f.rh.canRun(A)){console.log("".concat(w," Blocked submit: out of credits (can_run=false)")),x.s.getState().openPricingModal({isAlert:!0,alertTitle:"You ran out of credits",alertSubtitle:"Upgrade your plan to get more credits and continue using the AI assistant."});return}C(!0),z(!0),localStorage.removeItem(b),"app_builder_default"===_&&(0,v.rN)({message_length:e.trim().length}),console.log("".concat(w," Starting agent with:"),{prompt:e.substring(0,100),promptLength:e.length,model_name:null==t?void 0:t.model_name,agent_id:D,fileIds:a.length});let n="app_builder_default"===_?"app_builder":void 0;K("app_builder_default"===_?"app_builder":"agent"),await Q({message:e,fileIds:a.length>0?a:void 0,modelName:null==t?void 0:t.model_name,agentId:D||void 0,godMode:"app_builder"!==n&&H,memoryMode:"app_builder"===n||G,projectMode:n})||(null==(s=L.current)||s.clearPendingFiles(),C(!1),z(!1))},1200);return(0,s.useEffect)(()=>{if(F&&S&&!T&&!R&&N){let e=setTimeout(()=>{eo(S),I(!1)},500);return()=>clearTimeout(e)}},[F,S,T,R,eo,N]),{inputValue:S,setInputValue:M,isSubmitting:T,isRedirecting:R,isOptimisticStarting:W,chatInputRef:L,selectedAgentId:D,setSelectedAgent:q,agents:et,isLoadingAgents:ee,selectedAgent:es,isRgoAgent:ea,selectedMode:U,setSelectedMode:V,agentLimitData:Y,showAgentLimitBanner:J,setShowAgentLimitBanner:Z,clearAgentLimitData:$,handleSubmit:eo,prefetchedRouteRef:P,prefetchTimeoutRef:B}}},31294:(e,t,r)=>{"use strict";r.d(t,{fy:()=>u,xE:()=>f});var s=r(18558),a=r(15253),n=r(39164),i=r(54163),l=r(67211),o=r(16699);let c=(0,l.v)()((0,o.lt)((0,o.Zr)((e,t)=>({currentVersion:null,compareVersion:null,versions:[],isViewingVersion:!1,isComparingVersions:!1,hasUnsavedChanges:!1,isLoading:!1,error:null,setCurrentVersion:t=>e({currentVersion:t,isViewingVersion:null!==t}),setCompareVersion:t=>e({compareVersion:t,isComparingVersions:null!==t}),setVersions:t=>e({versions:t}),setIsViewingVersion:t=>e({isViewingVersion:t}),setIsComparingVersions:r=>e({isComparingVersions:r,compareVersion:r?t().compareVersion:null}),setHasUnsavedChanges:t=>e({hasUnsavedChanges:t}),setIsLoading:t=>e({isLoading:t}),setError:t=>e({error:t}),clearVersionState:()=>e({currentVersion:null,compareVersion:null,versions:[],isViewingVersion:!1,isComparingVersions:!1,hasUnsavedChanges:!1,isLoading:!1,error:null}),isViewingOldVersion:e=>{let r=t();return r.isViewingVersion&&null!==r.currentVersion&&r.currentVersion.version_id!==e}}),{name:"agent-version-store",partialize:e=>({hasUnsavedChanges:e.hasUnsavedChanges})}),{name:"agent-version-store"}));function d(e){return e&&Array.isArray(e)?e.map(e=>e&&"object"==typeof e?{name:e.name||"Unnamed MCP",type:e.type||e.customType||"sse",customType:e.customType||e.type||"sse",config:e.config||{},enabledTools:e.enabledTools||e.enabled_tools||[]}:{name:"Unknown MCP",type:"sse",customType:"sse",config:{},enabledTools:[]}):[]}function u(e){let{agentId:t}=e,r=(0,a.useSearchParams)().get("version"),{data:l,isLoading:o,error:u}=(0,n.fJ)(t),h=r||(null==l?void 0:l.current_version_id),m=r||(null==l?void 0:l.current_version_id)||"",{data:g,isLoading:p,error:f}=(0,i.Jh)(t,h?m:null),{setCurrentVersion:x,clearVersionState:v}=c(),b=(0,s.useMemo)(()=>{var e,t,r,s,a,n,i;return g?"version_id"in g?{version_id:g.version_id,agent_id:g.agent_id,version_number:g.version_number,version_name:g.version_name,system_prompt:g.system_prompt||"",model:g.model,configured_m
1cps:Array.isArray(g.configured_mcps)?g.configured_mcps:[],custom_mcps:d(g.custom_mcps),rgo_base_tools:g.rgo_base_tools&&"object"==typeof g.rgo_base_tools?g.rgo_base_tools:{},is_active:null==(e=g.is_active)||e,created_at:g.created_at,updated_at:g.updated_at||g.created_at,created_by:g.created_by,change_description:g.change_description}:{version_id:(null==(t=g.versionId)?void 0:t.value)||g.versionId,agent_id:(null==(r=g.agentId)?void 0:r.value)||g.agentId,version_number:(null==(s=g.versionNumber)?void 0:s.value)||g.versionNumber,version_name:g.versionName,system_prompt:g.systemPrompt||"",model:g.model,configured_mcps:Array.isArray(g.configuredMcps)?g.configuredMcps:[],custom_mcps:d(g.customMcps),rgo_base_tools:g.rgo_base_tools||(null==(a=g.toolConfiguration)?void 0:a.tools)||{},is_active:null==(i=g.isActive)||i,created_at:g.createdAt instanceof Date?g.createdAt.toISOString():g.createdAt,updated_at:(g.updatedAt instanceof Date?g.updatedAt.toISOString():g.updatedAt)||g.created_at,created_by:(null==(n=g.createdBy)?void 0:n.value)||g.createdBy,change_description:g.changeDescription}:null},[g]),j=(0,s.useMemo)(()=>!!(r&&r!==(null==l?void 0:l.current_version_id)),[r,null==l?void 0:l.current_version_id]);return(0,s.useEffect)(()=>(b?x({version_id:b.version_id,agent_id:b.agent_id,version_number:b.version_number,version_name:b.version_name,system_prompt:b.system_prompt,model:b.model,configured_mcps:b.configured_mcps,custom_mcps:b.custom_mcps,rgo_base_tools:b.rgo_base_tools,is_active:b.is_active,created_at:b.created_at,updated_at:b.updated_at,created_by:b.created_by,change_description:b.change_description}):r||v(),()=>{v()}),[b,r,x,v]),{agent:l,versionData:b,isViewingOldVersion:j,isLoading:o||!!h&&p,error:u}}var h=r(556),m=r(57570),g=r(35284);let p=e=>!!e&&"free"!==e&&"none"!==e,f=()=>{var e,t,r;let{user:a,isLoading:n}=(0,g.A)(),{data:i,isLoading:l}=(0,m.u4)({enabled:!!a&&!n}),{selectedModel:o,setSelectedModel:c}=(0,h.g)(),d=(0,s.useRef)(null),u=(0,s.useMemo)(()=>{var e;return p(null==i||null==(e=i.subscription)?void 0:e.tier_key)},[null==i||null==(e=i.subscription)?void 0:e.tier_key]),f=(0,s.useMemo)(()=>(null==i?void 0:i.models)?i.models.map(e=>({id:e.id,label:e.name,requiresSubscription:!e.allowed,priority:e.priority||0,recommended:e.recommended||!1,capabilities:e.capabilities||[],contextWindow:e.context_window||128e3})).sort((e,t)=>e.requiresSubscription!==t.requiresSubscription?e.requiresSubscription?1:-1:e.priority!==t.priority?t.priority-e.priority:e.label.localeCompare(t.label)):[],[null==i?void 0:i.models]),x=(0,s.useMemo)(()=>f.filter(e=>!e.requiresSubscription),[f]);(0,s.useEffect)(()=>{if(!l&&x.length&&(!o||!x.some(e=>e.id===o))){let t=(e=>{let t=e.find(e=>"rgo/basic"===e.id);if(t)return t.id;let r=e.find(e=>"rgo/power"===e.id);return r?r.id:e.length>0?e[0].id:""})(x);if(t&&t!==o){var e;console.log("\uD83D\uDD27 useModelSelection: Setting default model:",t,"(tier:",null==i||null==(e=i.subscription)?void 0:e.tier_key,")"),c(t)}}},[o,x,l,c,null==i||null==(t=i.subscription)?void 0:t.tier_key]),(0,s.useEffect)(()=>{var e;if(l||!f.length)return;let t=null==i||null==(e=i.subscription)?void 0:e.tier_key,r="free"===d.current||"none"===d.current,s=p(t);r&&s&&null!==d.current&&f.find(e=>"rgo/power"===e.id&&!e.requiresSubscription)&&(console.log("\uD83D\uDE80 useModelSelection: Upgraded to paid tier! Switching to rgo/power"),c("rgo/power")),d.current=t||null},[null==i||null==(r=i.subscription)?void 0:r.tier_key,f,l,c]);let v=(0,s.useCallback)(e=>{x.find(t=>t.id===e)&&(console.log("\uD83D\uDD27 useModelSelection: Changing model to:",e),c(e))},[x,c]),b=(0,s.useCallback)(e=>{let t=f.find(t=>t.id===e);return!!t&&!t.requiresSubscription},[f]),j=(0,s.useCallback)(e=>{let t=f.find(t=>t.id===e);return(null==t?void 0:t.requiresSubscription)||!1},[f]),y=(0,s.useCallback)(e=>e,[]),w=(0,s.useCallback)(()=>{},[]),_=(0,s.useCallback)(e=>{},[]),k=(0,s.useCallback)((e,t)=>{},[]),N=(0,s.useCallback)(e=>{},[]);return{selectedModel:o,setSelectedModel:v,availableModels:x,allModels:f,isLoading:l,modelsData:(null==i?void 0:i.subscription)?{models:i.models,tier:i.subscription.tier_key}:void 0,subscriptionStatus:u?"active":"no_subscription",canAccessModel:b,isSubscriptionRequired:j,handleModelChange:v,customModels:[],addCustomModel:_,updateCustomModel:k,removeCustomModel:N,getActualModelId:y,refreshCustomModels:w}};r(64909)},32802:(e,t,r)=>{Promise.resolve().then(r.bind(r,82074))},34298:(e,t,r)=>{"use strict";r.d(t,{p:()=>n});var s=r(78542);r(18558);var a=r(72409);function n(e){let{className:t,type:r,...n}=e;return(0,s.jsx)("input",{type:r,"data-slot":"input",className:(0,a.cn)("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground flex h-9 w-full min-w-0 rounded-lg border bg-card px-2.5 py-1 text-sm shadow-xs transition-[color,border-color,box-shadow] outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium file:px-2.5 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50","focus:outline-none focus:border-gold focus:shadow-[0_0_0_3px_color-mix(in_srgb,var(--gold)_20%,transparent)]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive","aria-invalid:focus:border-destructive aria-invalid:focus:shadow-[0_0_0_3px_rgba(186,26,26,0.15)]",t),...n})}},39164:(e,t,r)=>{"use strict";r.d(t,{Ae:()=>h,_F:()=>d,fJ:()=>u,tM:()=>m});var s=r(14333),a=r(68432),n=r(87107);r(36987);var i=r(85836),l=r(2965),o=r(18558);let c={limit:50,sort_by:"name",sort_order:"asc"},d=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,r=(0,s.jE)(),n=(0,o.useMemo)(()=>{let t={limit:c.limit,sort_by:c.sort_by,sort_order:c.sort_order};return void 0!==e.limit&&(t.limit=e.limit),void 0!==e.sort_by&&(t.sort_by=e.sort_by),void 0!==e.sort_order&&(t.sort_order=e.sort_order),void 0!==e.page&&e.page>1&&(t.page=e.page),e.search&&(t.search=e.search),void 0!==e.has_default&&(t.has_default=e.has_default),void 0!==e.has_mcp_tools&&(t.has_mcp_tools=e.has_mcp_tools),void 0!==e.has_rgo_base_tools&&(t.has_rgo_base_tools=e.has_rgo_base_tools),e.tools&&(t.tools=e.tools),t},[e]),d=(0,o.useMemo)(()=>{let e,t=r.getQueryData(i._.list(n));if(t)return t;let s=r.getQueriesData({queryKey:i._.lists()}),a=0;for(let[t,r]of s)(null==r?void 0:r.agents)&&r.agents.length>a&&(a=r.agents.length,e=r);let l=n.search||void 0!==n.has_default||void 0!==n.has_mcp_tools||void 0!==n.has_rgo_base_tools||n.tools,o=void 0!==n.page&&n.page>1;if(e&&!l&&!o)return e},[r,n]);return(0,a.I)({queryKey:i._.list(n),queryFn:()=>(0,l.vt)(n),staleTime:3e5,gcTime:6e5,enabled:!0,placeholderData:d,...t})},u=(e,t)=>
1(0,a.I)({queryKey:i._.detail(e),queryFn:()=>(0,l.WU)(e),enabled:!!e,staleTime:3e5,gcTime:6e5,refetchOnMount:"always",refetchOnWindowFocus:!0,...t}),h=()=>{let e=(0,s.jE)();return(0,n.n)({mutationFn:e=>{let{agentId:t,...r}=e;return(0,l.x4)(t,r)},onSuccess:(t,r)=>{e.setQueryData(i._.detail(r.agentId),t),e.invalidateQueries({queryKey:i._.detail(r.agentId)}),e.invalidateQueries({queryKey:i._.lists()})}})},m=e=>{let t=(0,s.jE)();return(0,o.useMemo)(()=>{if(!e)return;let r=t.getQueryData(i._.detail(e));if(r)return r;for(let[r,s]of t.getQueriesData({queryKey:i._.lists()}))if(null==s?void 0:s.agents){let t=s.agents.find(t=>t.agent_id===e);if(t)return t}},[e,t])}},54163:(e,t,r)=>{"use strict";r.d(t,{Ic:()=>h,J$:()=>m,Jh:()=>d,aA:()=>c,bW:()=>u});var s=r(68432),a=r(14333),n=r(87107),i=r(36987),l=r(85836),o=r(2965);let c=(e,t)=>(0,s.I)({queryKey:l.R.list(e),queryFn:()=>(0,o.TD)(e).then(e=>e.sort((e,t)=>t.version_number-e.version_number)),enabled:!!e,staleTime:3e4,refetchOnMount:"always",refetchOnWindowFocus:!0,...t}),d=(e,t,r)=>(0,s.I)({queryKey:l.R.detail(e,t),queryFn:()=>(0,o.c9)(e,t),enabled:!!e&&!!t,staleTime:3e4,refetchOnMount:"always",refetchOnWindowFocus:!0,...r}),u=()=>{let e=(0,a.jE)();return(0,n.n)({mutationFn:async e=>{let{agentId:t,data:r}=e;return(0,o.q5)(t,r)},onSuccess:(t,r)=>{let{agentId:s}=r;e.invalidateQueries({queryKey:l.R.list(s)}),e.invalidateQueries({queryKey:["agents","detail",s]}),(null==t?void 0:t.version_id)&&e.invalidateQueries({queryKey:l.R.detail(s,t.version_id)})},onError:e=>{i.o.error(e.message||"Failed to create version")}})},h=()=>{let e=(0,a.jE)();return(0,n.n)({mutationFn:async e=>{let{agentId:t,versionId:r}=e;return(0,o.bO)(t,r)},onSuccess:(t,r)=>{let{agentId:s}=r;e.invalidateQueries({queryKey:l.R.list(s)}),e.invalidateQueries({queryKey:["agents","detail",s]}),e.invalidateQueries({queryKey:["agents"]}),i.o.success("Version activated successfully")},onError:e=>{i.o.error(e.message||"Failed to activate version")}})},m=()=>{let e=(0,a.jE)();return(0,n.n)({mutationFn:async e=>{let{agentId:t,versionId:r,data:s}=e;return(0,o.$4)(t,r,s)},onSuccess:(t,r)=>{let{agentId:s,versionId:a}=r;e.invalidateQueries({queryKey:l.R.list(s)}),e.invalidateQueries({queryKey:l.R.detail(s,a)}),e.invalidateQueries({queryKey:["agents","detail",s]}),e.invalidateQueries({queryKey:["agents"]}),i.o.success("Version details updated successfully")},onError:e=>{i.o.error(e.message||"Failed to update version details")}})}},56383:(e,t,r)=>{"use strict";r.d(t,{a:()=>a});var s=r(18558);function a(){let[e,t]=s.useState(void 0);return s.useEffect(()=>{let e=window.matchMedia("(max-width: ".concat(1023,"px)")),r=()=>{t(window.innerWidth<1024)};return e.addEventListener("change",r),t(window.innerWidth<1024),()=>e.removeEventListener("change",r)},[]),!!e}},58168:(e,t,r)=>{"use strict";r.d(t,{gf:()=>l,v9:()=>i});var s=r(67211),a=r(16699);let n=(0,s.v)()((0,a.Zr)(e=>({memoryModeEnabled:!1,setMemoryModeEnabled:t=>{e({memoryModeEnabled:t})},toggleMemoryMode:()=>{e(e=>({memoryModeEnabled:!e.memoryModeEnabled}))}}),{name:"memory-mode-storage",partialize:e=>({memoryModeEnabled:e.memoryModeEnabled})})),i=()=>n(e=>e.memoryModeEnabled),l=()=>n(e=>e.toggleMemoryMode)},59243:(e,t,r)=>{"use strict";r.d(t,{V:()=>u});var s=r(78542),a=r(18558),n=r(15253),i=r(26643),l=r(35284),o=r(47358);let c=(0,a.lazy)(()=>r.e(99611).then(r.bind(r,99611))),d=()=>(0,s.jsx)(o.LC,{className:"bg-background/40 backdrop-blur-md"});function u(e){let{open:t,onOpenChange:r}=e,u=(0,i.c)("auth"),h=(0,n.useRouter)(),{user:m,isLoading:g}=(0,l.A)();return(0,a.useEffect)(()=>{t&&m&&!g&&(r(!1),h.push("/dashboard"))},[m,g,t,r,h]),(0,s.jsxs)(o.lG,{open:t,onOpenChange:r,children:[(0,s.jsx)(d,{}),(0,s.jsxs)(o.Cf,{className:"sm:max-w-md p-0 gap-0 rounded-xl bg-background border border-border",children:[(0,s.jsxs)(o.c7,{className:"px-6 pt-6 pb-4 border-b border-border gap-0.5",children:[(0,s.jsx)(o.L3,{children:u("signInToContinue")}),(0,s.jsx)(o.rr,{children:u("signInOrCreateAccountToTalk")})]}),(0,s.jsxs)("div",{className:"p-6 space-y-4",children:[(0,s.jsx)(a.Suspense,{fallback:(0,s.jsx)("div",{className:"h-11 bg-muted/20 rounded-lg animate-pulse"}),children:(0,s.jsx)(c,{returnUrl:"/dashboard"})}),(0,s.jsxs)("p",{className:"text-center text-xs text-muted-foreground leading-relaxed pt-2",children:[u("byContinuingYouAgreeSimple")," ",(0,s.jsx)("a",{href:"https://rationalgo.ai/legal?tab=terms",target:"_blank",rel:"noopener noreferrer",className:"text-muted-foreground hover:text-foreground underline underline-offset-2 transition-colors",children:u("termsOfService")})," ",u("and")," ",(0,s.jsx)("a",{href:"https://rationalgo.ai/legal?tab=privacy",target:"_blank",rel:"noopener noreferrer",className:"text-muted-foreground hover:text-foreground underline underline-offset-2 transition-colors",children:u("privacyPolicy")})]})]})]})]})}},63261:(e,t,r)=>{"use strict";r.d(t,{S:()=>_});var s=r(78542);r(23581);var a=r(18558),n=r(72409),i=r(60333),l=r(43728),o=r.n(l),c=r(35284),d=r(55536),u=r(25837);function h(e){let{page:t}=e,{user:r}=(0,c.A)();return(0,s.jsx)("div",{className:"navwrap",children:(0,s.jsxs)("nav",{className:"nav","aria-label":"Main",children:[(0,s.jsxs)(o(),{className:"brand",href:"/","aria-label":"RationalGo home",children:[(0,s.jsx)("img",{className:"wm wm-k",src:"/landing/logo-black.webp",alt:"RationalGo",width:2e3,height:417}),(0,s.jsx)("img",{className:"wm wm-w",src:"/landing/logo-white.webp",alt:"","aria-hidden":"true",width:2e3,height:417})]}),(0,s.jsxs)("div",{className:"links",children:[(0,s.jsxs)("div",{className:"menu",children:[d.C.nav.links.map(e=>{let r="home"===t&&"/"===e.href;return(0,s.jsx)(o(),{href:e.href,className:[r?"cur":"","/careers"===e.href?"hides":""].filter(
1Boolean).join(" ")||void 0,"aria-current":r?"page":void 0,children:e.name},e.id)}),(0,s.jsx)(o(),{href:"/pricing",onClick:e=>{if("home"!==t)return;let r=document.getElementById("pricing");r&&(e.preventDefault(),r.scrollIntoView({behavior:"smooth",block:"start"}))},className:"pricing"===t?"cur":void 0,"aria-current":"pricing"===t?"page":void 0,children:"Pricing"})]}),r?(0,s.jsx)(o(),{className:"candy sm",href:"/dashboard",children:"Dashboard"}):(0,s.jsx)(o(),{className:"candy sm",href:"/auth",onClick:()=>(0,u.mL)(),suppressHydrationWarning:!0,children:"Get started"})]})]})})}function m(e){let{refs:t,fx:r}=e;return(0,s.jsx)("section",{className:r?"close fx":"close",ref:t.close,children:(0,s.jsxs)("div",{className:"close-layer",ref:t.layer,children:[(0,s.jsxs)("div",{className:"wrap",children:[(0,s.jsxs)("div",{className:"cta",ref:t.cta,children:[(0,s.jsx)("div",{className:"rgo-wave rv",children:(0,s.jsx)("img",{src:"/landing/rgosi.webp",alt:"RationalGoâs friendly super agent, waving"})}),(0,s.jsx)("h2",{className:"rv",children:"What company are we building?"}),(0,s.jsx)("p",{className:"sub rv",children:"Start with an idea. RationalGo, your AI cofounder, builds the product, finds your first customers, and runs your social media."}),(0,s.jsxs)("div",{className:"btns rv",children:[(0,s.jsx)(o(),{className:"candy",href:"/auth",onClick:()=>(0,u.mL)(),children:"Get started free"}),(0,s.jsxs)("a",{className:"ghost",href:"https://discord.gg/eBavDkhUMT",target:"_blank",rel:"noopener noreferrer",children:[(0,s.jsx)(i.m,{id:"i-discord"}),"Join the Discord"]})]}),(0,s.jsxs)("p",{className:"aside rv",children:["New to building with AI? Read the"," ",(0,s.jsx)(o(),{href:"/build-with-ai/vibe-coding-complete-guide",children:"vibe coding guide â"})]})]}),(0,s.jsxs)("div",{className:"strip",ref:t.strip,children:[(0,s.jsxs)("span",{children:[(0,s.jsx)("b",{children:"free to start"})," \xb7 no code"]}),(0,s.jsxs)("span",{children:[(0,s.jsx)("b",{children:"build â customers â social"})," in one workspace"]}),(0,s.jsxs)("span",{children:["docs, slides & research ",(0,s.jsx)("b",{children:"built in"})]})]})]}),(0,s.jsx)("span",{className:"watermark","aria-hidden":"true",ref:t.mark,children:"rationalgo"})]})})}var g=r(58061),p=r(38415),f=r(56173);let x=[{value:"light",label:"Light"},{value:"dark",label:"Dark"},{value:"system",label:"System"}];function v(){let{theme:e,setTheme:t}=(0,g.D)(),{locale:r,setLanguage:n,availableLanguages:l}=(0,f.o)(),[c,u]=(0,a.useState)(!1);return(0,a.useEffect)(()=>u(!0),[]),(0,s.jsx)("footer",{className:"sitefoot",children:(0,s.jsxs)("div",{className:"wrap",children:[(0,s.jsxs)("div",{className:"sf-grid",children:[(0,s.jsxs)("div",{className:"sf-brand",children:[(0,s.jsx)(o(),{href:"/","aria-label":"RationalGo home",children:(0,s.jsx)("svg",{className:"sf-mark","aria-hidden":"true",children:(0,s.jsx)("use",{href:"#logo"})})}),(0,s.jsx)("p",{children:p.jg}),(0,s.jsxs)("div",{className:"sf-social",children:[(0,s.jsx)("a",{href:"https://discord.gg/eBavDkhUMT","aria-label":"Discord",target:"_blank",rel:"noopener noreferrer",children:(0,s.jsx)("svg",{viewBox:"0 0 24 24","aria-hidden":"true",children:(0,s.jsx)("path",{fill:"currentColor",d:"M19.3 5.3A16.6 16.6 0 0 0 15.2 4l-.5 1a15.4 15.4 0 0 0-4.6 0L9.6 4a16.5 16.5 0 0 0-4.1 1.3C2.9 9.2 2.2 13 2.6 16.8a16.7 16.7 0 0 0 5 2.5l1.1-1.7a10.8 10.8 0 0 1-1.7-.8l.4-.3a11.9 11.9 0 0 0 10.2 0l.4.3c-.5.3-1.1.6-1.7.8l1.1 1.7a16.6 16.6 0 0 0 5-2.5c.5-4.4-.8-8.2-3.1-11.5zM9.3 14.5c-1 0-1.8-.9-1.8-2s.8-2 1.8-2 1.8.9 1.8 2-.8 2-1.8 2zm5.4 0c-1 0-1.8-.9-1.8-2s.8-2 1.8-2 1.8.9 1.8 2-.8 2-1.8 2z"})})}),(0,s.jsx)("a",{href:"https://www.linkedin.com/company/rationalgo/","aria-label":"LinkedIn",target:"_blank",rel:"noopener noreferrer",children:(0,s.jsx)("svg",{viewBox:"0 0 24 24","aria-hidden":"true",children:(0,s.jsx)("path",{fill:"currentColor",d:"M4 3h16a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1zm1.8 7.2V18h2.6v-7.8zM7.1 6a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3zm3.2 4.2V18h2.6v-4.1c0-1.1.2-2.1 1.5-2.1s1.3 1.2 1.3 2.2v4h2.6v-4.5c0-2.2-.5-3.9-3.1-3.9-1.2 0-2 .7-2.4 1.3v-1.1z"})})})]})]}),d.C.footerLinks.map(e=>(0,s.jsxs)("nav",{"aria-label":e.title,children:[(0,s.jsx)("h4",{children:e.title}),(0,p.O4)(e.links).map((e,t)=>{var r;return(0,s.jsxs)("div",{style:{display:"contents"},children:[e.group&&(0,s.jsx)("h5",{children:e.group}),e.links.map(e=>(0,s.jsx)(o(),{href:e.url,...(0,p.AC)(e.url)?{target:"_blank",rel:"noopener noreferrer"}:{},children:e.title},e.id))]},null!=(r=e.group)?r:t)}
1)]},e.title))]}),(0,s.jsxs)("div",{className:"sf-bottom",children:[(0,s.jsxs)("div",{className:"sf-copy",children:[(0,s.jsxs)("span",{children:["\xa9 ",new Date().getFullYear()," RationalGo Inc."]}),(0,s.jsxs)("span",{children:["Built with"," ",(0,s.jsx)("svg",{className:"sf-heart",viewBox:"0 0 24 24","aria-label":"love",role:"img",children:(0,s.jsx)("path",{fill:"currentColor",d:"M12 20.5s-7.5-4.6-9.2-9.3C1.6 7.8 3.8 4.5 7.2 4.5c2 0 3.6 1.1 4.8 2.8 1.2-1.7 2.8-2.8 4.8-2.8 3.4 0 5.6 3.3 4.4 6.7-1.7 4.7-9.2 9.3-9.2 9.3z"})})," ","from India"]})]}),(0,s.jsxs)("div",{className:"sf-prefs",children:[(0,s.jsxs)("label",{className:"sf-sel",children:[(0,s.jsxs)("svg",{className:"ico sun",viewBox:"0 0 24 24","aria-hidden":"true",children:[(0,s.jsx)("circle",{cx:"12",cy:"12",r:"4.2"}),(0,s.jsx)("path",{d:"M12 2.5v2.2M12 19.3v2.2M4.6 4.6l1.6 1.6M17.8 17.8l1.6 1.6M2.5 12h2.2M19.3 12h2.2M4.6 19.4l1.6-1.6M17.8 6.2l1.6-1.6"})]}),(0,s.jsx)("span",{className:"sr-only",children:"Theme"}),(0,s.jsx)("select",{value:c&&e||"system",onChange:e=>t(e.target.value),children:x.map(e=>(0,s.jsx)("option",{value:e.value,children:e.label},e.value))}),(0,s.jsx)("svg",{className:"ico chev",viewBox:"0 0 24 24","aria-hidden":"true",children:(0,s.jsx)("path",{d:"M7 10l5 5 5-5"})})]}),(0,s.jsx)("span",{className:"sf-div"}),(0,s.jsxs)("label",{className:"sf-sel",children:[(0,s.jsx)(i.m,{id:"i-globe"}),(0,s.jsx)("span",{className:"sr-only",children:"Language"}),(0,s.jsx)("select",{value:r,onChange:e=>n(e.target.value),children:l.map(e=>(0,s.jsx)("option",{value:e,children:e.toUpperCase()},e))}),(0,s.jsx)("svg",{className:"ico chev",viewBox:"0 0 24 24","aria-hidden":"true",children:(0,s.jsx)("path",{d:"M7 10l5 5 5-5"})})]})]})]})]})})}var b=r(87472);let j=()=>document.documentElement.classList.contains("dark"),y=()=>{var e,t,r;return null!=(r=null==(e=(t=window).matchMedia)?void 0:e.call(t,"(prefers-reduced-motion: reduce)").matches)&&r},w=()=>window.innerWidth>900&&window.matchMedia("(pointer: fine)").matches&&!y();function _(e){let{page:t,children:r}=e,l=(0,a.useRef)(null),o=(0,a.useRef)(null),c={close:(0,a.useRef)(null),layer:(0,a.useRef)(null),cta:(0,a.useRef)(null),mark:(0,a.useRef)(null),strip:(0,a.useRef)(null)},[d,u]=(0,a.useState)(!1),[g,p]=(0,a.useState)(!1),[f,x]=(0,a.useState)(!1),[_,k]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{let e=l.current;if(!e||y()||!("IntersectionObserver"in window))return;let r=window.innerHeight,s=[];e.querySelectorAll(".rv").forEach(e=>{e.getBoundingClientRect().top>.92*r?s.push(e):e.setAttribute("data-in","")});let a=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting&&(e.target.setAttribute("data-in",""),a.unobserve(e.target))})},{rootMargin:"0px 0px -8% 0px"});return s.forEach(e=>a.observe(e)),x(!0),console.debug("[landing] reveal armed: ".concat(s.length," sections below the fold (").concat(t,")")),()=>a.disconnect()},[t]),(0,a.useEffect)(()=>{let e=l.current,{close:t,layer:r,cta:s,mark:a,strip:n}=c;if(!e||!o.current||!t.current||!r.current||!s.current||!a.current||!n.current)return;p(w());let i=function(e){let t=!1,r=0,s=-1,a=null,n=()=>{s=-1};addEventListener("resize",n);let i=null;return e.desktop()&&"IntersectionObserver"in window&&e.entering.length&&(i=new IntersectionObserver(t=>t.forEach(t=>{if(!t.isIntersecting)return;null==i||i.unobserve(t.target);let r=e.entering.indexOf(t.target);t.target.animate([{opacity:0,filter:"blur(10px)",transform:"translate3d(0,44px,0)"},{opacity:1,filter:"blur(0px)",transform:"translate3d(0,0,0)"}],{duration:1400,delay:r%3*110,fill:"backwards",easing:"cubic-bezier(.2,.65,.3,1)"})}),{rootMargin:"0px 0px -12% 0px"}),e.entering.forEach(e=>{e.getBoundingClientRect().top>.9*innerHeight&&(null==i||i.observe(e))})),r=requestAnimationFrame(function n(){if(t)return;r=requestAnimationFrame(n);let i=scrollY;if(i===s)return;s=i;let l=document.documentElement.scrollHeight-innerHeight;e.progressEl.style.transform="scaleX(".concat(l>0?(i/l).toFixed(4):0,")"),function(){let t=e.closeEl.getBoundingClientRect(),r=t.top<64&&t.bottom>64;if(r!==a&&(a=r,e.onDark(r)),e.root.style.setProperty("--rg-veil",(1-Math.max(0,Math.min(1,(innerHeight-t.top)/(.45*innerHeight)))).toFixed(3)),!e.desktop()){e.layerEl.style.transform=e.markEl.style.transform=e.ctaEl.style.transform="";return}let s=Math.max(0,innerHeight-e.closeEl.offsetHeight),n=.45*Math.max(0,Math.min(innerHeight,t.top-s));e.layerEl.style.transform="translate3d(0,".concat((-n).toFixed(1),"px,0)");let i=1-Math.pow(1-Math.max(0,Math.min(1,(innerHeight-t.top)/(.8*innerHeight))),2);e.ctaEl.style.transform="translate3d(0,".concat(((1-i)*70).toFixed(1),"px,0)");let l=Math.max(0,Math.min(1,(innerHeight-e.stripEl.getBoundingClientRect().top)/(.6*innerHeight)));e.markEl.style.transform="translate3d(0,".concat(((1-l)*90).toFixed(1),"px,0)")}()}),()=>{t=!0,cancelAnimationFrame(r),removeEventListener("resize",n),null==i||i.disconnect(),e.root.style.removeProperty("--rg-veil")}}({root:e,progressEl:o.current,closeEl:t.current,layerEl:r.current,ctaEl:s.current,markEl:a.current,stripEl:n.current,entering:Array.from(e.querySelectorAll(".zeroband h3, .zeroband .zbar, .zeroband .zband-note")),desktop:w,onDark:u}),d=null;if(!y())try{(d=(0,b.u)(r.current,1,{isDark:j}))&&k(!0)}catch(e){console.warn("[landing] closing dot field unavailable",e)}return()=>{i(),null==d||d.destroy()}},[]),(0,s.jsxs)("div",{ref:l,className:(0,n.cn)("rgl",d&&"ondark",g&&"mx",f&&"js"),children:[(0,s.jsx)(i.Q,{}),(0,s.jsx)(h,{page:t}),(0,s.jsx)("main",{children:r}),(0,s.jsx)(m,{refs:c,fx:_}),(0,s.jsx)(v,{}),(0,s.jsx)("div",{className:"motion-progress",ref:o,"aria-hidden":"true"})]})}},67805:(e,t,r)=>{"use strict";
1r.d(t,{BackgroundAALChecker:()=>a});var s=r(78542);function a(e){let{children:t,redirectTo:r,enabled:a}=e;return(0,s.jsx)(s.Fragment,{children:t})}},75703:(e,t,r)=>{"use strict";r.d(t,{j2:()=>a,pd:()=>n});var s=r(18558);let a=["Build a booking app for my yoga studio, then find my first 50 students","Turn my meal-prep idea into a landing page with a waitlist","Build a CRM for my agency, then email 100 clinics that need a new website","Launch a job board for nurses and get hospitals to post roles","Find 30 freight forwarders for ChinaâUS shipping and ask for quotes","Start a kidswear store and find mom bloggers to partner with","My app is live. Find 20 creators who could promote it"];function n(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{paused:r=!1,examples:n=a}=t,[i,l]=s.useState(0),o=null!=(e=n[i%n.length])?e:"";return s.useEffect(()=>{if(r||n.length<2)return;let e=setTimeout(()=>{l(e=>(e+1)%n.length)},Math.max(4500,50*o.length+2500));return()=>clearTimeout(e)},[i,r,n,o]),o}},82074:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>ee});var s=r(78542),a=r(67805),n=r(63261),i=r(18558),l=r(72409),o=r(52996),c=r.n(o),d=r(47664),u=r.n(d);let h="".concat(c().variable," ").concat(u().variable);var m=r(35284),g=r(30725),p=r(31294),f=r(57570),x=r(90350),v=r(25837),b=r(17807),j=r(59243),y=r(75703),w=r(60333);let _="Tell RationalGo your ideaâ¦",k=[_,...y.j2.map(e=>"e.g. ".concat(e.charAt(0).toLowerCase()).concat(e.slice(1)))],N=(0,i.lazy)(()=>r.e(16860).then(r.bind(r,16860)).then(e=>({default:e.AgentRunLimitBanner}))),E=(0,i.memo)((0,i.forwardRef)(function(e,t){let{user:r}=(0,m.A)(),a=(0,x.al)(),[n,l]=(0,i.useState)(!1),o=(0,i.useRef)(null),{selectedModel:c,getActualModelId:d}=(0,p.xE)(),{inputValue:u,setInputValue:h,handleSubmit:y,isSubmitting:E,isRedirecting:A,agentLimitData:S,showAgentLimitBanner:M,setShowAgentLimitBanner:T,clearAgentLimitData:C}=(0,g.DJ)({redirectOnError:"/",requireAuth:!0,onAuthRequired:()=>{(0,v.mL)(),l(!0)},enableAutoSubmit:!1,logPrefix:"[LandingHero]",preferredAgent:"app_builder_default"}),R=E||A,{data:z,isLoading:F}=(0,f.u4)({enabled:!!r}),I=(0,i.useRef)(!1);(0,i.useEffect)(()=>{z&&!F&&!I.current&&(f.rh.canRun(z)||(I.current=!0,(0,b.eh)()))},[z,F]);let[L,P]=(0,i.useState)(!1),B=(0,i.useRef)(0),D=u.length>0;(0,i.useEffect)(()=>{var e,t;let r=o.current;if(!r||L||D||(null==(e=(t=window).matchMedia)?void 0:e.call(t,"(prefers-reduced-motion: reduce)").matches))return;let s=[],a=()=>{B.current=(B.current+1)%k.length;let e=k[B.current];for(let t=1;t<=e.length;t++)s.push(setTimeout(()=>r.setAttribute("placeholder",e.slice(0,t)),28*t));s.push(setTimeout(a,Math.max(4200,28*e.length+2500)))};return s.push(setTimeout(a,4200)),()=>s.forEach(clearTimeout)},[L,D]);let q=()=>{var e,t;
1if(R)return;let s=u.trim();if(!s)return void(r?null==(t=o.current)||t.focus():((0,v.mL)(),l(!0)));(0,b.Kw)({message_length:s.length});let a=c?null==(e=d(c))?void 0:e.trim():void 0;console.debug("[LandingHero] idea submitted (".concat(s.length," chars, signed ").concat(r?"in":"out",", model ").concat(a||"default",")")),y(s,a?{model_name:a}:void 0)};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("form",{ref:t,className:"givebox load d2",autoComplete:"off",onSubmit:e=>{e.preventDefault(),q()},children:(0,s.jsxs)("div",{className:"gb-cmd",children:[(0,s.jsx)("label",{htmlFor:"landing-idea",className:"sr-only",children:"Tell RationalGo your idea"}),(0,s.jsx)("textarea",{id:"landing-idea",ref:o,name:"idea",rows:3,value:u,placeholder:_,onChange:e=>h(e.target.value),onKeyDown:e=>{!a&&("Enter"!==e.key||e.shiftKey||e.nativeEvent.isComposing||(e.preventDefault(),q()))},onFocus:e=>{e.currentTarget.setAttribute("placeholder",k[B.current]),P(!0)},onBlur:()=>P(!1),disabled:R}),(0,s.jsx)("div",{className:"gb-bar",children:(0,s.jsxs)("button",{type:"submit",className:"gb-go",disabled:R,children:[R?"Startingâ¦":"Start building"," ",(0,s.jsx)(w.m,{id:"i-arrow"})]})})]})}),(0,s.jsxs)("div",{className:"gb-note load d2",children:[(0,s.jsx)("b",{children:"build â customers â social"})," in one workspace \xb7 free to start"]}),(0,s.jsx)(j.V,{open:n,onOpenChange:l}),S&&(0,s.jsx)(i.Suspense,{fallback:null,children:(0,s.jsx)(N,{open:M&&!!S,onOpenChange:e=>{T(e),e||C()},runningCount:S.runningCount,runningThreadIds:S.runningThreadIds})})]})}));function A(e){let{cls:t,style:r,z:a,edge:n=0,children:i}=e,l=Array.from({length:n},(e,n)=>(0,s.jsx)("div",{className:"pc ".concat(t," edge"),style:{...r,"--z":"".concat(a-(n+1)*3,"px")}},"e".concat(n)));return(0,s.jsxs)(s.Fragment,{children:[l,(0,s.jsx)("div",{className:"pc ".concat(t),style:{...r,"--z":"".concat(a,"px")},children:i})]})}let S={1:[(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("b",{children:"240"})," owners found"]}),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("b",{children:"212"})," emails found"]}),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"ok",children:"â"})," ",(0,s.jsx)("b",{children:"212"})," emailed \xb7 ",(0,s.jsx)("b",{children:"19"})," replies"]})],2:[(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("b",{children:"12"})," posts this week"]}),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("b",{children:"3"})," carousels"]}),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"ok",children:"â"})," scheduled MonâSun"]})]};function M(e,t){return S[e][t>=2?Math.min(2,t-2):0]}let T=(()=>{let e=function(e){return()=>{e|=0;let t=Math.imul((e=e+0x6d2b79f5|0)^e>>>15,1|e);return(((t=t+Math.imul(t^t>>>7,61|t)^t)^t>>>14)>>>0)/0x100000000}}(0x135288a),t=[],r=(r,s)=>{let a=s?2:r%4,n,i,l=1,o=1,c="var(--rg-sage)",d=1;0===a?(n=72+12*e(),i=114,l=.6,o=.2,c="var(--rg-muted2)",d=1.1):1===a?(n=48+10*e(),i=66,l=.6,o=.2,c="var(--rg-muted2)",d=1.1):(n=34*e(),i=2,d=.35),s&&(c="#0a84ff");let u=e()*Math.PI*2,h=n*Math.cos(u),m=n*Math.sin(u);t.push({key:"".concat(s?"p":"d").concat(r),partner:s,style:{"--x":"".concat(h.toFixed(1),"px"),"--y":"".concat(m.toFixed(1),"px"),"--x2":"".concat(h.toFixed(1),"px"),"--y2":"".concat(m.toFixed(1),"px"),"--x3":"".concat((h*d).toFixed(1),"px"),"--y3":"".concat((m*d).toFixed(1),"px"),"--ze":"".concat(i,"px"),"--o1":l,"--o2":o,"--pc":c,"--pd":"-".concat((2.9*e()).toFixed(2),"s")}})};for(let e=0;e<30;e++)r(e,!1);for(let e=0;e<6;e++)r(e,!0);return t})(),C=["#d62976","#1877f2","#0a66c2"],R=[["⥠128","#d14f86"],["+2 orders","var(--rg-sage)"],["â» 14 shares","#1877f2"],["⥠64","#d14f86"],["+9 follows","var(--rg-sage)"],["saved 31\xd7","#0a66c2"],["⥠212","#d14f86"],["+1 order","var(--rg-sage)"],["⥠47","#d14f86"],["â» 6 shares","#1877f2"]],z=e=>({x:-66+e%4*44,y:-44+44*Math.floor(e/4)});function F(e){let{stage:t,step:r}=e;return(0,s.jsxs)("div",{className:"iso","aria-hidden":"true",children:[(0,s.jsx)(A,{cls:"pad",z:-18,edge:3,children:(0,s.jsxs)("span",{className:"stamp",children:[(0,s.jsx)("svg",{className:"mk",children:(0,s.jsx)("use",{href:"#logo"})}),(0,s.jsx)("b",{children:"rational"}),"GO"]})}),(0,s.jsx)(A,{cls:"gA k1 slab a1",style:{"--w":"150px"},z:0,edge:2,children:(0,s.jsx)("svg",{children:(0,s.jsx)("use",{href:"#px-bulb"})})}),(0,s.jsxs)(A,{cls:"gA k2 slab a2",style:{"--w":"150px"},z:36,edge:2,children:[(0,s.jsx)("i",{className:"nv"}),(0,s.jsx)("b",{}),(0,s.jsx)("b",{className:"s"}),(0,s.jsx)("span",{className:"hero-img"}),(0,s.jsx)("u",{})]}),(0,s.jsxs)(A,{cls:"gA k3 slab a3",style:{"--w":"150px"},z:72,edge:2,children:[(0,s.jsx)("i",{className:"bub l"}),(0,s.jsx)("i",{className:"bub r"}),(0,s.jsx)("i",{className:"bub l w"}),(0,s.jsx)("i",{className:"bub g"})]}),(0,s.jsx)(A,{cls:"gA k4 a4",style:{"--w":"150px"},z:76}),(0,s.jsx)(A,{cls:"bb lab gA k1",style:{"--x":"88px","--y":"88px"},z:0,children:(0,s.jsx)("b",{children:"the idea"})}),(0,s.jsx)(A,{cls:"bb lab gA k2",style:{"--x":"88px","--y":"88px"},z:36,children:(0,s.jsx)("b",{children:"website"})}),(0,s.jsxs)(A,{cls:"bb lab gA k3",style:{"--x":"88px","--y":"88px"},z:72,children:[(0,s.jsx)("b",{children:"dashboard"})," + mobile view"]}),(0,s.jsxs)(A,{cls:"bb lab gA k4",style:{"--x":"70px","--y":"70px"},z:118,children:[(0,s.jsx)("span",{className:"ok",children:"â"})," ",(0,s.jsx)("b",{children:"live"})," \xb7 1st client booked"]}),(0,s.jsx)(A,{cls:"gB k1 basin",style:{"--w":"96px"},z:0}),(0,s.jsx)(A,{cls:"gB k1 sring b3",style:{"--w":"84px","--rw":"15px"},z:18,edge:2}),(0,s.jsx)(A,{cls:"gB k1 sring b2",style:{"--w":"128px","--rw":"18px","--d":".08s"},z:64,edge:2}),(0,s.jsx)(A,{cls:"gB k1 sring b1",style:{"--w":"176px","--rw":"20px","--d":".16s"},z:112,edge:2}),(0,s.jsx)(A,{cls:"bb lab gB k1",style:{"--x":"70px","--y":"70px","--d":".2s"},z:112,children:"US coffee shops"}),(0,s.jsx)(A,{cls:"bb lab gB k1",style:{"--x":"52px","--y":"52px","--d":".28s"},z:64,children:"owner-run, 1â3 locations"}),(0,s.jsx)(A,{cls:"bb lab gB k1",style:{"--x":"36px","--y":"36px","--d":".36s"},z:18,children:"email found"}),(0,s.jsx)(A,{cls:"bb lab gB k2",style:{"--x":"-8px","--y":"74px"},z:-4,children:M(1,1===t?r:0)}),T.map(e=>(0,s.jsx)(A,{cls:e.partner?"dotp partner":"dotp",style:e.style,z:0},e.key)),(0,s.jsx)(A,{cls:"gC k1 cal",style:{"--w":"194px","--h":"150px"},z:0,edge:2}),(0,s.jsx)(A,{cls:"scan",z:3}),Array.from({length:12},(e,t)=>{let{x:r,y:a}=z(t),n={"--x":"".concat(r,"px"),"--y":"".concat(a,"px"),"--i":t,"--pc":C[t%C.length]};return(0,s.jsxs)(i.Fragment,{children:[(0,s.jsx)(A,{cls:"tile gC k2",style:n,z:4,edge:1}),(1===t||6===t||9===t)&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(A,{cls:"cst gC k3",style:n,z:11}),(0,s.jsx)(A,{cls:"cst gC k3",style:n,z:18})]})]},"t".concat(t))}),R.map((e,t)=>{let[r,a]=e,{x:n,y:i}=z((5*t+2)%12);return(0,s.jsx)(A,{cls:"hrt",style:{"--x":"".concat(n,"px"),"--y":"".concat(i,"px"),"--hc":a,"--hd":"".concat((.26*t).toFixed(2),"s")},z:0,children:r},"h".concat(t))}),(0,s.jsx)(A,{cls:"bb lab gC k2",style:{"--x":"100px","--y":"82px"},z:4,children:M(2,2===t?r:0)}),(0,s.jsxs)(A,{cls:"bb lab gC k1",style:{"--x":"52px","--y":"-100px"},z:4,children:[(0,s.jsx)("b",{children:"brand kit"})," ",(0,s.jsx)("i",{className:"sw",style:{background:"#f4b6a6"}}),(0,s.jsx)("i",{className:"sw",style:{background:"#f7dc8c"}}),(0,s.jsx)("i",{className:"sw",style:{background:"#9fd4c0"}}),(0,s.jsx)("i",{className:"sw",style:{background:"#2d4a6b"}})]})]})}var I=r(87472);let L=[{headline:"Build the product.",tab:(0,s.jsxs)(s.Fragment,{children:["Build",(0,s.jsx)("span",{className:"lng",children:"\xa0the product"})]}),example:(0,s.jsxs)(s.Fragment,{children:["A dietitianâs website and client dashboard: ",(0,s.jsx)("b",{children:"live"})]})},{headline:"Get customers.",tab:(0,s.jsx)(s.Fragment,{children:"Get customers"}),example:(0,s.jsxs)(s.Fragment,{children:["A scheduling app for caf\xe9s: ",(0,s.jsx)("b",{children:"212 owners emailed, 19 replied"})]})},{headline:"Grow on social.",tab:(0,s.jsx)(s.Fragment,{children:"Grow on social"}),example:(0,s.jsxs)(s.Fragment,{children:["A kidswear brand: ",(0,s.jsx)("b",{children:"12 posts scheduled for the week"})]})}],P=()=>{var e,t,r;return null!=(r=null==(e=(t=window).matchMedia)?void 0:e.call(t,"(prefers-reduced-motion: reduce)").matches)&&r},B=()=>document.documentElement.classList.contains("dark");function D(){let e=(0,i.useRef)(null),t=(0,i.useRef)(null),a=(0,i.useRef)(null),n=(0,i.useRef)(null),o=(0,i.useRef)(null),d=(0,i.useRef)(null),m=(0,i.useRef)(null),[g,p]=(0,i.useState)(0),[f,x]=(0,i.useState)(0),[v,b]=(0,i.useState)(!0),[j,y]=(0,i.useState)(!0),[w,_]=(0,i.useState)(!1),[k,N]=(0,i.useState)(!1),A=(0,i.useRef)(null),S=(0,i.useRef)(null),M=(0,i.useRef)({stage:0,step:0}),T=(0,i.useRef)([]);(0,i.useEffect)(()=>{var e;M.current={stage:g,step:f},null==(e=A.current)||e.setState(g,f)},[g,f]);let C=(0,i.useCallback)(function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(T.current.forEach(clearTimeout),T.current=[],p(e),x(0),!t&&d.current&&S.current){let e=d.current.getBoundingClientRect();S.current.ripple(e.left+e.width/2,e.top+.6*e.height)}let r=P();for(let e=1;e<=4;e++)T.current.push(setTimeout(()=>x(e),r?0:450+(e-1)*900))},[]);(0,i.useEffect)(()=>(C(0,!0),()=>T.current.forEach(clearTimeout)),[C]),(0,i.useEffect)(()=>
1{if(!v||P())return;let e=setInterval(()=>C((M.current.stage+1)%L.length),8600);return()=>clearInterval(e)},[v,C,g]),(0,i.useEffect)(()=>{let e=!1,t=setTimeout(()=>{e||y(!1)},4500);return(async()=>{try{let[t,{RoomEnvironment:s},{RoundedBoxGeometry:a},{mountCore3d:n}]=await Promise.all([r.e(9707).then(r.bind(r,31134)),Promise.all([r.e(9707),r.e(77644)]).then(r.bind(r,77644)),Promise.all([r.e(9707),r.e(79216)]).then(r.bind(r,79216)),r.e(35418).then(r.bind(r,35418))]);if(e||!m.current||!o.current)return;let i=n({THREE:t,RoomEnvironment:s,RoundedBoxGeometry:a,host:m.current,sceneEl:o.current,fonts:{sans:c().style.fontFamily,mono:u().style.fontFamily},reduced:P(),isDark:B,onReady:()=>{e||_(!0)}});if(!i)return void y(!1);A.current=i,i.setState(M.current.stage,M.current.step),console.debug("[LandingHero] 3D core mounted")}catch(t){console.warn("[LandingHero] 3D core unavailable; showing the CSS scene.",t),e||y(!1)}})(),()=>{var r;e=!0,clearTimeout(t),null==(r=A.current)||r.destroy(),A.current=null}},[]),(0,i.useEffect)(()=>{var r;let s=e.current;if(!s||P())return;let i=null;try{i=(0,I.u)(s,0,{isDark:B,quietEls:()=>[t.current,a.current,n.current]})}catch(e){console.warn("[LandingHero] dot field unavailable",e)}if(!i)return;S.current=i,N(!0);let l=!0;null==(r=document.fonts)||r.ready.then(()=>{l&&(null==i||i.measureQuiet())});let o=()=>null==i?void 0:i.measureQuiet();return window.addEventListener("resize",o),()=>{l=!1,window.removeEventListener("resize",o),null==i||i.destroy(),S.current=null}},[]);let R=Array.from({length:f},(e,t)=>"s".concat(t+1));return(0,s.jsxs)("section",{className:(0,l.cn)("hero",k&&"has-field"),ref:e,children:[(0,s.jsx)("div",{className:"dither l"}),(0,s.jsx)("div",{className:"dither r"}),(0,s.jsxs)("div",{className:"wrap",children:[(0,s.jsxs)("div",{className:"hero-copy",children:[(0,s.jsx)("h1",{className:"hero-h1 load d1",ref:t,children:L.map((e,t)=>(0,s.jsxs)(i.Fragment,{children:[t>0&&" ",(0,s.jsx)("span",{className:(0,l.cn)("hl",t===g&&"on"),children:e.headline})]},e.headline))}),(0,s.jsx)(E,{ref:a})]}),(0,s.jsx)("div",{className:"scene load d4",ref:o,children:(0,s.jsxs)("div",{className:"hcell mid",children:[(0,s.jsx)("div",{className:(0,l.cn)("stages",!v&&"paused"),role:"group","aria-label":"Choose a stage",ref:n,children:L.map((e,t)=>(0,s.jsxs)("button",{type:"button","aria-pressed":t===g,onClick:()=>{b(!1),C(t)},children:[(0,s.jsx)("b",{children:t+1}),e.tab]},e.headline))}),(0,s.jsxs)("div",{ref:d,className:(0,l.cn)("stage3d",h,j&&"wait",w&&"gl",...R),"data-stage":g,children:[(0,s.jsx)("div",{className:"core3d",ref:m}),(0,s.jsx)(F,{stage:g,step:f})]}),(0,s.jsxs)("div",{className:"hcli",children:[(0,s.jsx)("span",{className:"ex",children:"example"})," ",L[g].example]})]})})]})]})}var q=r(43728),O=r.n(q);let U=[{name:"Build my app",tagline:"from an idea to a live product",color:"#3c6be0",steps:[{title:"Shapes the idea",body:"Checks thereâs demand, names it and sets your offer and price.",visualClass:"v-idea",visual:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("svg",{className:"bulb","aria-hidden":"true",children:(0,s.jsx)("use",{href:"#px-bulb"})}),(0,s.jsxs)("ul",{className:"ck",children:[(0,s.jsxs)("li",{children:["People want this ",(0,s.jsx)("b",{children:"â"})]}),(0,s.jsxs)("li",{children:["Name: ",(0,s.jsx)("b",{children:"Nourish by Maya"})]}),(0,s.jsxs)("li",{children:["Offer: ",(0,s.jsx)("b",{children:"30-day coaching"})]})]})]})},{title:"Builds your website & app",body:"Pages, a client dashboard and sign-ups, with a database wired in.",visualClass:"v-build",visual:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"mini-web",children:[(0,s.jsxs)("span",{className:"dots",children:[(0,s.jsx)("i",{}),(0,s.jsx)("i",{}),(0,s.jsx)("i",{})]}),(0,s.jsx)("b",{className:"bar w1"}),(0,s.jsx)("b",{className:"bar w2"}),(0,s.jsx)("b",{className:"img"}),(0,s.jsx)("b",{className:"btn"})]}),(0,s.jsxs)("div",{className:"mini-phone",children:[(0,s.jsx)("b",{className:"bar w3"}),(0,s.jsx)("b",{className:"card"}),(0,s.jsx)("b",{className:"card"}),(0,s.jsx)("b",{className:"btn"})]})]})},{title:"Goes live & keeps improving",body:"Your own .com, open to customers, and changes whenever you ask.",visualClass:"v-live",visual:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"url",children:[(0,s.jsx)("i",{className:"live"}),"nourishbymaya.com"]}),(0,s.jsx)("div",{className:"toast",children:"+ new client sign-up"}),(0,s.jsxs)("div",{className:"chat",children:[(0,s.jsx)("span",{className:"me",children:"make the button bigger"}),(0,s.jsx)("span",{className:"ok",children:"â done"})]})]})}]}
1,{name:"Get customers",tagline:"the first hundred are the hardest",color:"#2f8f5b",steps:[{title:"Finds the right people",body:"Describes your ideal customer, then finds them with names and emails.",visualClass:"v-find",visual:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"who",children:[(0,s.jsx)("i",{}),"coffee-shop owners \xb7 US"]}),(0,s.jsxs)("ul",{className:"people",children:[(0,s.jsxs)("li",{children:[(0,s.jsx)("i",{style:{background:"#f4b6a6"}}),"Sam \xb7 Blue Door Coffee",(0,s.jsx)("b",{children:"â email"})]}),(0,s.jsxs)("li",{children:[(0,s.jsx)("i",{style:{background:"#9fd4c0"}}),"Ana \xb7 Rubyâs Roastery",(0,s.jsx)("b",{children:"â email"})]}),(0,s.jsxs)("li",{children:[(0,s.jsx)("i",{style:{background:"#f7dc8c"}}),"Chris \xb7 Little Owl Caf\xe9",(0,s.jsx)("b",{children:"â email"})]})]})]})},{title:"Writes & sends the emails",body:"Personal emails in your voice, sent from your own inbox.",visualClass:"v-email",visual:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"mail",children:[(0,s.jsx)("span",{className:"to",children:"To: sam@bluedoorâ¦"}),(0,s.jsx)("b",{className:"subj",children:"Save 5 hours a week on shifts"}),(0,s.jsx)("b",{className:"bar w1"}),(0,s.jsx)("b",{className:"bar w2"}),(0,s.jsx)("b",{className:"bar w3"})]}),(0,s.jsxs)("div",{className:"sent",children:["Sent from your Gmail \xb7 ",(0,s.jsx)("b",{children:"212"})]})]})},{title:"Follows up & tracks replies",body:"Follows up with people who havenât replied, and keeps track of every answer.",visualClass:"v-reply",visual:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"fu",children:"Follow-up 2 sent"}),(0,s.jsx)("div",{className:"rep",children:"âSounds great. Tue 10am?â"}),(0,s.jsxs)("div",{className:"cal",children:[(0,s.jsx)("i",{}),"Replied \xb7 added to your list"]})]})}]},{name:"Grow on social",tagline:"a presence that doesnât eat your week",color:"#d14f86",steps:[{title:"Creates your brand book",body:"Logo, colors, fonts and a voice, so every post looks and sounds like you.",visualClass:"v-brand",visual:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"logo",children:"P&P"}),(0,s.jsxs)("div",{className:"sw",children:[(0,s.jsx)("i",{style:{background:"#f4b6a6"}}),(0,s.jsx)("i",{style:{background:"#f7dc8c"}}),(0,s.jsx)("i",{style:{background:"#9fd4c0"}}),(0,s.jsx)("i",{style:{background:"#2d4a6b"}})]}),(0,s.jsxs)("div",{className:"type",children:[(0,s.jsx)("b",{children:"Aa"}),(0,s.jsx)("span",{children:"playful"}),(0,s.jsx)("span",{children:"warm"})]})]})},{title:"Makes posts & carousels",body:"Images, carousels and captions for Instagram, Facebook and LinkedIn, scheduled all week.",visualClass:"v-posts",visual:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"post p1",children:(0,s.jsx)("i",{className:"dot",style:{background:"#d62976"}})}),(0,s.jsx)("div",{className:"post p2",children:(0,s.jsx)("i",{className:"dot",style:{background:"#1877f2"}})}),(0,s.jsx)("div",{className:"post p3",children:(0,s.jsx)("i",{className:"dot",style:{background:"#0a66c2"}})})]})},{title:"Replies & tracks results",body:"Answers comments and shows you whatâs working, week by week.",visualClass:"v-track",visual:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"cm",children:[(0,s.jsx)("span",{className:"q",children:"âLove this! What sizes?â"}),(0,s.jsx)("span",{className:"a",children:"2T to 5T, in stock â"})]}),(0,s.jsxs)("div",{className:"bars",children:[(0,s.jsx)("i",{}),(0,s.jsx)("i",{}),(0,s.jsx)("i",{}),(0,s.jsx)("i",{}),(0,s.jsx)("i",{}),(0,s.jsx)("b",{children:"+38% reach"})]})]})}]}],V=()=>{var e,t,r;return null!=(r=null==(e=(t=window).matchMedia)?void 0:e.call(t,"(prefers-reduced-motion: reduce)").matches)&&r};function H(){let e=(0,i.useRef)(null),[t,r]=(0,i.useState)(0),[a,n]=(0,i.useState)(!1),[o,c]=(0,i.useState)(3),[d,u]=(0,i.useState)(["done","done"]),[h,m]=(0,i.useState)(!1),g=(0,i.useRef)([]),p=()=>{g.current.forEach(clearTimeout),g.current=[]},f=(0,i.useCallback)(()=>{if(p(),V()){c(3),u(["done","done"]);return}c(0),u(["",""]);let e=150;for(let t=0;t<3;t++)g.current.push(setTimeout(()=>c(t+1),e)),t<2&&(g.current.push(setTimeout(()=>u(e=>e.map((e,r)=>
1r===t?"run":e)),e+1300)),g.current.push(setTimeout(()=>u(e=>e.map((e,r)=>r===t?"done":e)),e+1750))),e+=1800;g.current.push(setTimeout(()=>r(e=>(e+1)%U.length),e+2600))},[]);return(0,i.useEffect)(()=>(m(!0),p),[]),(0,i.useEffect)(()=>{let t=e.current;if(!t||!("IntersectionObserver"in window))return;let r=new IntersectionObserver(e=>n(e[0].isIntersecting),{rootMargin:"-35% 0px -35% 0px",threshold:0});return r.observe(t),()=>r.disconnect()},[]),(0,i.useEffect)(()=>{a?f():V()||(p(),c(0),u(["",""]))},[a,t,f]),(0,s.jsx)("section",{className:"roles flows flows-tabbed",id:"what",ref:e,children:(0,s.jsxs)("div",{className:"wrap",children:[(0,s.jsx)("div",{className:"seclab rv",children:"what RationalGo does \xb7 three jobs \xb7 each one start to finish"}),(0,s.jsxs)("div",{className:"flows-top",children:[(0,s.jsxs)("div",{className:"flows-head rv",children:[(0,s.jsx)("h2",{children:"Three jobs, done start to finish."}),(0,s.jsx)("p",{children:"You bring the idea. RationalGo takes each job from the first step to the result, and you can watch every step happen."})]}),(0,s.jsx)("div",{className:"flow-tabs",role:"tablist","aria-label":"Pick a job",children:U.map((e,a)=>(0,s.jsxs)("button",{type:"button",role:"tab",id:"job-tab-".concat(a),"aria-selected":a===t,"aria-controls":"job-panel-".concat(a),style:{"--c":e.color},onClick:()=>r(a),children:[(0,s.jsx)("b",{children:a+1}),e.name]},e.name))})]}),U.map((e,r)=>(0,s.jsxs)("div",{className:(0,l.cn)("flow rv",h&&"flow-anim",r===t&&"cur"),style:{"--c":e.color},role:"tabpanel",id:"job-panel-".concat(r),"aria-labelledby":"job-tab-".concat(r),children:[(0,s.jsxs)("div",{className:"pcat",children:[(0,s.jsxs)("h3",{children:[e.name," ",(0,s.jsx)("span",{className:"n",children:r+1})]}),(0,s.jsx)("p",{children:e.tagline})]}),(0,s.jsx)("div",{className:"flow-row",children:e.steps.map((e,a)=>(0,s.jsx)(G,{step:e,index:a,on:r===t&&(!h||o>a),conn:a<2?r===t?d[a]:"":null},e.title))})]},e.name)),(0,s.jsxs)("div",{className:"morewrap rv",children:[(0,s.jsx)("p",{children:"plus a built-in helper for docs, slides, PDFs and research"}),(0,s.jsxs)(O(),{className:"ghost",href:"/showcase",children:["See apps built with RationalGo ",(0,s.jsx)(w.m,{id:"i-ne"})]})]})]})})}function G(e){let{step:t,index:r,on:a,conn:n}=e;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("article",{className:(0,l.cn)("fbox",a&&"on"),children:[(0,s.jsx)("div",{className:(0,l.cn)("fvis",t.visualClass),children:t.visual}),(0,s.jsxs)("span",{className:"step",children:["step ",r+1]}),(0,s.jsx)("h4",{children:t.title}),(0,s.jsx)("p",{children:t.body})]}),null!==n&&(0,s.jsx)("div",{className:(0,l.cn)("fconn",n),"aria-hidden":"true",children:(0,s.jsx)("i",{})})]})}var K=r(62447),Q=r(64836),W=r(76841);let Y=[{title:"Web developer",does:"builds your website and app",cost:"$6,000",icon:"i-code",color:"#3c6be0"},{title:"Sales freelancer",does:"finds customers and emails them",cost:"$3,000",icon:"i-users",color:"#2f8f5b"},{title:"Social media manager",does:"posts and replies every day",cost:"$1,500",icon:"i-cal",color:"#d14f86"}],J=K.WZ.filter(e=>!e.hidden&&(0,W.J6)(e.price)>0).sort((e,t)=>(0,W.J6)(e.price)-(0,W.J6)(t.price))[0];function Z(){let e=(0,Q.I)().currency,[t,r]=(0,i.useState)(!1);(0,i.useEffect)(()=>r(!0),[]);let a=J?(0,W.Ck)(J.price,t?e:"USD"):null,n=(0,i.useRef)(null),[o,c]=(0,i.useState)(!1),[d,u]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{var e,t;let r=n.current;if(!r||(null==(e=(t=window).matchMedia)?void 0:e.call(t,"(prefers-reduced-motion: reduce)").matches)||!("IntersectionObserver"in window))return;c(!0);let s=new IntersectionObserver(e=>{e[0].isIntersecting&&(u(!0),s.disconnect())},{threshold:.5});return s.observe(r),()=>s.disconnect()},[]),(0,s.jsx)("section",{className:"team",children:(0,s.jsxs)("div",{className:"wrap",children:[(0,s.jsx)("div",{className:"seclab rv",children:"no team yet? start anyway"}),(0,s.jsxs)("div",{className:"team-head rv",children:[(0,s.jsxs)("h2",{children:["Your first three hires",a?", for ".concat(a," a month."):"."]}),(0,s.jsx)("p",{children:"A developer, a sales person and a social media manager: the first people every founder needs, and canât yet afford. RationalGo does their first jobs, so you can see if your idea works before you hire anyone."})]}),(0,s.jsxs)("div",{className:(0,l.cn)("hires rv",o&&"armed",d&&"go"),ref:n,children:[Y.map(e=>(0,s.jsxs)("article",{className:"hire",style:{"--c":e.color},children:[(0,s.jsx)("span",{className:"hi-ic",children:(0,s.jsx)(w.m,{id:e.icon})}),(0,s.jsx)("h4",{children:e.title}),(0,s.jsx)("p",{children:e.does}),(0,s.jsxs)("div",{className:"cost",children:[(0,s.jsx)("s",{children:e.cost}),(0,s.jsx)("span",{children:"/month"})]})]},e.title)),(0,s.jsx)("div",{className:"eq","aria-hidden":"true",children:"="}),(0,s.jsxs)("article",{className:"hire rgo",children:[(0,s.jsx)("span",{className:"av",children:(0,s.jsx)("img",{src:"/landing/rgosi.webp",alt:"RationalGo"})}),(0,s.jsx)("h4",{children:"RationalGo"}),(0,s.jsx)("p",{children:"does all three jobs"}),a&&(0,s.jsxs)("div",{className:"cost",children:[(0,s.jsx)("b",{children:a}),(0,s.jsx)("span",{children:"/month"})]}),(0,s.jsx)(O(),{className:"candy sm",href:"/pricing",onClick:e=>{let t=document.getElementById("pricing");t&&(e.preventDefault(),t.scrollIntoView({behavior:"smooth",block:"start"}))},children:"See plans"})]})]}),(0,s.jsx)("p",{className:"team-note rv",children:"typical US freelance rates, for illustration"})]})})}function $(){return(0,s.jsx)("section",{className:"zeroband",children:(0,s.jsxs)("div",{className:"wrap",children:[(0,s.jsx)("h3",{className:"rv",children:"0 lines of code."}),(0,s.jsxs)("div",{className:"zbar rv",children:[(0,s.jsx)("span",{children:"your idea"}),(0,s.jsx)("span",{className:"ps",children:"+"}),(0,s.jsx)("b",{children:"RationalGo"}),(0,s.jsx)("span",{className:"ps",children:"="}),(0,s.jsx)("span",{children:"a business people can use"})]}),(0,s.jsx)("div",{className:"zband-note rv",children:"⢠you write the idea â we write the code, the copy and the posts"})]})})}var X=r(40821);
1function ee(){return(0,s.jsx)(a.BackgroundAALChecker,{children:(0,s.jsxs)(n.S,{page:"home",children:[(0,s.jsx)(D,{}),(0,s.jsx)(H,{}),(0,s.jsx)(Z,{}),(0,s.jsx)(X.c,{design:"guided",headingLevel:"h2",returnUrl:"/#pricing"}),(0,s.jsx)($,{})]})})}},85836:(e,t,r)=>{"use strict";r.d(t,{R:()=>n,_:()=>a});let s=["agents"],a={all:s,lists:()=>[...s,"list"],list:e=>[...s,"list",e],details:()=>[...s,"detail"],detail:e=>[...s,"detail",e]},n={all:["versions"],lists:()=>[...n.all,"list"],list:e=>[...n.lists(),e],details:()=>[...n.all,"detail"],detail:(e,t)=>[...n.details(),e,t]}},87472:(e,t,r)=>{"use strict";function s(e,t,r){let s=document.createElement("canvas");s.className="dotfield",s.setAttribute("aria-hidden","true");let a=s.getContext("webgl",{alpha:!0,antialias:!1,depth:!1,premultipliedAlpha:!0});if(!a)return null;let n=(e,t)=>{let r=a.createShader(e);if(a.shaderSource(r,t),a.compileShader(r),!a.getShaderParameter(r,a.COMPILE_STATUS))throw Error(a.getShaderInfoLog(r)||"shader compile failed");return r},i=a.createProgram();a.attachShader(i,n(a.VERTEX_SHADER,"\nprecision highp float;\nattribute vec3 aP;\nuniform vec2 uSize; uniform float uTime, uDpr, uMode;\nuniform vec3 uPtr; uniform vec3 uTrail[16]; uniform vec4 uRip; uniform vec4 uQuiet[3];\nvarying float vA; varying float vH; varying float vK;\nfloat seg(vec2 p, vec2 a, vec2 b){ vec2 ab=b-a; float t=clamp(dot(p-a,ab)/max(dot(ab,ab),.001),0.,1.); return length(p-a-t*ab); }\nvoid main(){\n vec2 p = aP.xy; float t = uTime; float hot = 0.;\n if (uMode > .5) {\n p.x += sin(aP.y*.012 - t*.5)*3.; p.y += sin(aP.x*.009 + t*.42)*3.;\n vec2 aw = p - uPtr.xy; float d = length(aw); float pr = exp(-pow(d/150.,2.))*uPtr.z;\n p += aw/max(d,1.)*pr*20.; hot = max(hot, pr*.9);\n }\n float w = .5 + .3*sin(p.x*.011 + p.y*.008 - t*.7) + .2*sin(-p.x*.007 + p.y*.013 - t*.45);\n float a = .035 + .26*pow(w, 1.8);\n float rip = 0.;\n if (uRip.w > 0.) {\n float age = t - uRip.z; float R = age*560.; float d = length(p - uRip.xy);\n rip = exp(-pow((d-R)/60.,2.))*max(0., 1. - age/1.9);\n p += (p - uRip.xy)/max(d,1.)*rip*6.;\n }\n for (int i=0;i<15;i++){\n float life = min(uTrail[i].z, uTrail[i+1].z);\n if (life > 0.) { float d = seg(p, uTrail[i].xy, uTrail[i+1].xy); hot = max(hot, exp(-pow(d/(uMode>.5?70.:26.),2.))*life); }\n }\n float q = 1.;\n for (int i=0;i<3;i++){ vec4 r = uQuiet[i]; if (r.z > 0.) { vec2 o = max(abs(p - r.xy) - r.zw, 0.); q = min(q, mix(.12, 1., smoothstep(0., 110., length(o)))); } }\n float edge = smoothstep(0., 110., p.y)*(1. - smoothstep(uSize.y - 150., uSize.y, p.y));\n if (uMode < .5) edge *= .45 + .55*smoothstep(0., uSize.x*.34, abs(p.x - uSize.x*.5));\n vA = (a*q + rip*.5 + hot*.55)*edge*step(.1, aP.z);\n vH = clamp(max(hot, rip), 0., 1.);\n vK = mod(floor(aP.z*31.), 3.);\n gl_Position = vec4(p.x/uSize.x*2. - 1., 1. - p.y/uSize.y*2., 0., 1.);\n gl_PointSize = (uMode > .5 ? 2.6 : 2.4)*uDpr + rip*1.6*uDpr + hot*1.2*uDpr;\n}")),a.attachShader(i,n(a.FRAGMENT_SHADER,"\nprecision mediump float;\nuniform vec3 uInk, uHot; varying float vA; varying float vH; varying float vK;\nvoid main(){\n vec2 c = gl_PointCoord - .5; float m = 1.;\n if (vK < .5) m = step(length(c), .5);\n else if (vK > 1.5) m = max(step(abs(c.x), .14)*step(abs(c.y), .5), step(abs(c.y), .14)*step(abs(c.x), .5));\n float a = vA*m; gl_FragColor = vec4(mix(uInk, uHot, vH)*a, a);\n}")),a.linkProgram(i),a.useProgram(i),e.prepend(s);let l=e=>a.getUniformLocation(i,e),o={size:l("uSize"),time:l("uTime"),dpr:l("uDpr"),mode:l("uMode"),ptr:l("uPtr"),trail:l("uTrail"),rip:l("uRip"),quiet:l("uQuiet"),ink:l("uInk"),hot:l("uHot")},c=a.createBuffer(),d=a.getAttribLocation(i,"aP");a.enable(a.BLEND),a.blendFunc(a.ONE,a.ONE_MINUS_SRC_ALPHA);let u=0,h=0,m=0,g=1,p=[],f=[0,0,0],x=0,v=[0,0,-10,0],b=new Float32Array(12),j=!1,y=!1,w=0,_=performance.now(),k=()=>{var t;let s=e.getBoundingClientRect();b.fill(0),((null==(t=r.quietEls)?void 0:t.call(r))||[]).slice(0,3).forEach((e,t)=>{if(!e)return;let r=e.getBoundingClientRect();r.width&&b.set([r.left-s.left+r.width/2,r.top-s.top+r.height/2,r.width/2,r.height/2],4*t)})},N=()=>{g=Math.min(devicePixelRatio||1,2);let t=e.clientWidth,r=e.clientHeight;if(!t||!r)return;h=t,m=r,s.width=Math.round(h*g),s.height=Math.round(m*g);let n=[];for(let e=6.5;e<m;e+=13)for(let t=6.5;t<h;t+=13)n.push(t+(Math.random()-.5)*3,e+(Math.random()-.5)*3,Math.random());a.bindBuffer(a.ARRAY_BUFFER,c),a.bufferData(a.ARRAY_BUFFER,new Float32Array(n),a.STATIC_DRAW),a.enableVertexAttribArray(d),a.vertexAttribPointer(d,3,a.FLOAT,!1,0,0),u=n.length/3,k()},E=t=>{if("mouse"!==t.pointerType)return;let r=e.getBoundingClientRect(),s=t.clientX-r.left,a=t.clientY-r.top;f=[s,a,1];let n=p[p.length-1];(!n||Math.hypot(n[0]-s,n[1]-a)>6)&&p.push([s,a,performance.now()])},A=()=>{f[2]=0};e.addEventListener("pointermove",E),e.addEventListener("pointerleave",A);let S=new ResizeObserver(N);S.observe(e);let M=new IntersectionObserver(e=>{j=e[0].isIntersecting});M.observe(e),N();let T=e=>
1{y||(w=requestAnimationFrame(T),j&&!document.hidden&&(e=>{a.viewport(0,0,s.width,s.height),a.clearColor(0,0,0,0),a.clear(a.COLOR_BUFFER_BIT);let n=1===t||r.isDark();a.uniform2f(o.size,h,m),a.uniform1f(o.time,e),a.uniform1f(o.dpr,g),a.uniform1f(o.mode,t),x+=(!!f[2]-x)*.08,a.uniform3f(o.ptr,f[0],f[1],x);let i=new Float32Array(48),l=performance.now();(p=p.filter(e=>l-e[2]<700)).slice(-16).forEach((e,t,r)=>i.set([e[0],e[1],1-(l-e[2])/700],(16-r.length+t)*3)),a.uniform3fv(o.trail,i),a.uniform4fv(o.rip,v),a.uniform4fv(o.quiet,b),n?a.uniform3f(o.ink,.86,.88,.86):a.uniform3f(o.ink,.1,.11,.1),n?a.uniform3f(o.hot,.68,.95,.81):a.uniform3f(o.hot,.24,.6,.45),a.drawArrays(a.POINTS,0,u)})((e-_)/1e3))};return w=requestAnimationFrame(T),{ripple(t,r){let s=e.getBoundingClientRect();v=[t-s.left,r-s.top,(performance.now()-_)/1e3,1]},measureQuiet:k,destroy(){var t;y||(y=!0,cancelAnimationFrame(w),S.disconnect(),M.disconnect(),e.removeEventListener("pointermove",E),e.removeEventListener("pointerleave",A),a.deleteBuffer(c),a.deleteProgram(i),null==(t=a.getExtension("WEBGL_lose_context"))||t.loseContext(),s.remove())}}}r.d(t,{u:()=>s})},90350:(e,t,r)=>{"use strict";r.d(t,{al:()=>n.a,Sw:()=>i,Ub:()=>a,y3:()=>l});var s=r(18558);function a(e){let[t,r]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{let s=window.matchMedia(e);s.matches!==t&&r(s.matches);let a=()=>r(s.matches);return s.addEventListener("change",a),()=>s.removeEventListener("change",a)},[t,e]),t}var n=r(56383);function i(e,t){let r=(0,s.useRef)(e),a=(0,s.useRef)(0),n=(0,s.useRef)(!1),i=(0,s.useRef)(null);return(0,s.useEffect)(()=>{r.current=e},[e]),(0,s.useEffect)(()=>()=>{i.current&&clearTimeout(i.current)},[]),(0,s.useCallback)(async function(){for(var e=arguments.length,s=Array(e),l=0;l<e;l++)s[l]=arguments[l];let o=Date.now();if(!n.current&&!(o-a.current<t)){a.current=o,n.current=!0;try{return await r.current(...s)}finally{let e=Math.max(0,t-(Date.now()-o));i.current&&clearTimeout(i.current),i.current=setTimeout(()=>{n.current=!1,i.current=null},e)}}},[t])}function l(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:12e4,{isActive:t}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{idleTimeout:t=12e4,pauseOnHidden:r=!0,pauseOnIdle:a=!0}
1=e,[n,i]=(0,s.useState)(!0),[l,o]=(0,s.useState)(!0),[c,d]=(0,s.useState)(0),u=(0,s.useRef)(Date.now());(0,s.useRef)(null);let h=(0,s.useRef)(null),m=(0,s.useRef)(!0),g=(0,s.useRef)(0),p=(0,s.useCallback)(()=>{u.current=Date.now(),m.current||(m.current=!0,o(!0)),0!==g.current&&(g.current=0,d(0))},[]);return(0,s.useEffect)(()=>{if("undefined"==typeof document)return;let e=()=>{let e=!document.hidden;i(e),e&&p()};return document.addEventListener("visibilitychange",e),i(!document.hidden),()=>{document.removeEventListener("visibilitychange",e)}},[p]),(0,s.useEffect)(()=>{let e=["mousedown","mousemove","keydown","scroll","touchstart","click","wheel"],t=0,r=()=>{let e=Date.now();e-t<1e3||(t=e,p())};return e.forEach(e=>{window.addEventListener(e,r,{passive:!0})}),()=>{e.forEach(e=>{window.removeEventListener(e,r)})}},[p]),(0,s.useEffect)(()=>{if(!a)return;let e=()=>{let e=Date.now()-u.current;g.current=e,d(e),e>=t&&m.current&&(m.current=!1,o(!1))};return h.current=setInterval(e,1e4),e(),()=>{h.current&&clearInterval(h.current)}},[t,a]),{isActive:(!r||n)&&(!a||l),isTabVisible:n,isUserActive:l,timeSinceLastActivity:c,resetIdleTimer:p}}({idleTimeout:e});return t}r(20738),r(25251)},92919:(e,t,r)=>{"use strict";r.d(t,{w:()=>i});var s=r(78542);r(18558);var a=r(2667),n=r(72409);function i(e){let{className:t,orientation:r="horizontal",decorative:i=!0,...l}=e;return(0,s.jsx)(a.b,{"data-slot":"separator",decorative:i,orientation:r,className:(0,n.cn)("bg-hairline shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",t),...l})}}},e=>{e.O(0,[70378,34135,38794,64899,60054,44126,12050,73857,95457,78728,43728,263,58014,55297,81097,8236,74008,41598,46204,26643,23590,74206,52666,18100,6387,65578,24134,95312,42412,19227,70288,38335,31357,94491,83970,25094,59970,40821,77092,23434,60186,44290,43250,77358],()=>e(e.s=32802)),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.