(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,692529,e=>{"use strict";var t=e.i(823506),i=e.i(42573),o=e.i(868377),r=e.i(451759);let s=(0,o.createContext)(null);e.s(["CopilotProvider",0,function(e){let n,l,u,c,a=(0,i.c)(10),{children:d}=e,[C,p]=(0,o.useState)(!1),[f,m]=(0,o.useState)(!1),S=(0,o.useRef)(null);a[0]===Symbol.for("react.memo_cache_sentinel")?(n={},a[0]=n):n=a[0];let[b,h]=(0,o.useState)(n),{PUBLIC_INKEEP_COPILOT_APP_ID:P}=(0,r.useRuntimeConfig)(),_=!!P;return _||console.warn("Copilot is not configured."),a[1]===Symbol.for("react.memo_cache_sentinel")?(l=()=>p(!0),a[1]=l):l=a[1],a[2]!==b||a[3]!==_||a[4]!==C||a[5]!==f?(u={isOpen:C,setIsOpen:p,isStreaming:f,setIsStreaming:m,chatFunctionsRef:S,openCopilot:l,dynamicHeaders:b,setDynamicHeaders:h,isCopilotConfigured:_},a[2]=b,a[3]=_,a[4]=C,a[5]=f,a[6]=u):u=a[6],a[7]!==d||a[8]!==u?(c=(0,t.jsx)(s,{value:u,children:d}),a[7]=d,a[8]=u,a[9]=c):c=a[9],c},"useCopilotContext",0,function(){let e=(0,o.use)(s);if(!e)throw Error("useCopilotContext must be used within a <CopilotProvider />");return e}])},743531,e=>{"use strict";var t=e.i(42573),i=e.i(868377),o=e.i(43663);e.s(["useInitialCollapsedSidebar",0,function(){let e,r,s=(0,t.c)(3),{setSidebarOpen:n}=(0,o.useAgentActions)();s[0]!==n?(e=()=>(n({isSidebarSessionOpen:!1}),()=>{n({isSidebarSessionOpen:!0})}),s[0]=n,s[1]=e):e=s[1],s[2]===Symbol.for("react.memo_cache_sentinel")?(r=[],s[2]=r):r=s[2],(0,i.useEffect)(e,r)}])},727625,e=>{"use strict";var t=e.i(823506),i=e.i(42573),o=e.i(528437),r=e.i(692529),s=e.i(743531);e.s(["default",0,e=>{let n,l=(0,i.c)(2),{children:u}=e;return(0,s.useInitialCollapsedSidebar)(),l[0]!==u?(n=(0,t.jsx)(o.ReactFlowProvider,{children:(0,t.jsx)(r.CopilotProvider,{children:u})}),l[0]=u,l[1]=n):n=l[1],n}])}]);