{"version":3,"file":"BeziInterface.DOQ9RYOU.mjs","names":["React.useState","React.useRef","React.useMemo","React.useCallback","p","_Fragment","React.useContext","React.Fragment"],"sources":["https:/framerusercontent.com/modules/XL4lmObzPBHtdv2Kxot5/c8mSwc5GCaMkJJjnYBkF/BeziInterface.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * Bezi Hero — static recreation of the workspace UI with a typewriter\n * animation in the right-hand Thread panel. As new lines appear, older\n * content is pushed up and clipped at the top of the panel.\n */// ---------- tokens ----------\nexport const tokens={bgSurface0:\"#1F1D1C\",bgSurface1:\"#2C2B2A\",bgSurface2:\"#363433\",bgSurface3:\"#423F3C\",bgSurface4:\"#4C4845\",bgSurface:\"#222222\",bgInput:\"#1F1F1F\",border:\"#2E2E2E\",borderSoft:\"#262626\",textPrimary:\"#ECECEC\",textSecondary:\"#9A9A9A\",textMuted:\"#6E6E6E\",accentPurple:\"#A99CFF\",accentPurpleBg:\"rgba(169, 156, 255, 0.12)\",// In-app system-card palette (mirrors packages/styled-ui base.css).\n// t-secondary / t-tertiary are white alphas; turquoise is the skill accent.\ntextTertiary:\"rgba(255, 255, 255, 0.6)\",turquoise:\"#40D1B4\",// Destructive red — mirrors the app's --destructive-color. Used for the\n// \"previous\" state of a tool-approval row (e.g. the old path in a rename).\ndestructive:\"#E5484D\",// In-prompt chip accents, mirroring the app's MentionPill (packages/\n// styled-ui theme-colors): @/# mentions use blueberry, / skills turquoise.\n// The only visual difference between the two chips is this color; both sit\n// on a 20%-alpha wash of the same hue.\nblueberry:\"#96A8EA\",mentionChipBg:\"rgba(150, 168, 234, 0.2)\",skillChipBg:\"rgba(64, 209, 180, 0.2)\",// White-alpha scale — use these instead of raw rgba(255,255,255,x) literals.\nwhiteAlpha04:\"rgba(255,255,255,0.04)\",whiteAlpha06:\"rgba(255,255,255,0.06)\",whiteAlpha08:\"rgba(255,255,255,0.08)\",whiteAlpha10:\"rgba(255,255,255,0.1)\",whiteAlpha12:\"rgba(255,255,255,0.12)\",whiteAlpha15:\"rgba(255,255,255,0.15)\",whiteAlpha20:\"rgba(255,255,255,0.2)\",whiteAlpha30:\"rgba(255,255,255,0.3)\",whiteAlpha40:\"rgba(255,255,255,0.4)\",whiteAlpha50:\"rgba(255,255,255,0.5)\",whiteAlpha55:\"rgba(255,255,255,0.55)\",whiteAlpha60:\"rgba(255,255,255,0.6)\",whiteAlpha70:\"rgba(255,255,255,0.7)\",whiteAlpha75:\"rgba(255,255,255,0.75)\",whiteAlpha80:\"rgba(255,255,255,0.8)\",whiteAlpha85:\"rgba(255,255,255,0.85)\",// Dark-alpha (surface-0 ink) — used for the mode menu's selected-row border.\ndarkAlpha49:\"rgba(24,23,22,0.49)\",// Plain white/black for knobs + toggle-off track.\nwhite:\"#fff\",toggleOff:\"#444\",// Brand + demo avatar colors (workspace logo gradient, member pile, cards).\nbrand:{orange:\"#ff7a59\",pink:\"#ff5577\",purple:\"#7c5cff\",green:\"#3cc988\"},avatars:[\"#ff7a59\",\"#7c5cff\",\"#3cc988\"],// Figma input/prompt tokens\ngray700:\"#393735\",gray650:\"#423F3C\",gray800:\"#2C2B2A\",gray600:\"#4C4845\",agentLight:\"#B9B8D6\",agentDark:\"#474773\",planLight:\"#FAF5F3\",planDark:\"#D6C3B8\",toggleOn:\"#F6F6F6\",// Mode palettes — bg + icon color per state. See:\n// figma.com/design/52JhNbSLyS2O4jcSXm7ffe/Bezi-Design-System?node-id=109-35169\nmodes:{Ask:{Default:{bg:\"#BED6B8\",icon:\"#376146\"},Hover:{bg:\"#99BB9B\",icon:\"#2A4A35\"},Active:{bg:\"#84AA88\",icon:\"#233D2C\"},Sent:{bg:\"#BED6B8\",icon:\"#376146\"}},Plan:{Default:{bg:\"#D6C3B8\",icon:\"#4A3A38\"},Hover:{bg:\"#B29C93\",icon:\"#302625\"},Active:{bg:\"#8F7A73\",icon:\"#241C1B\"},Sent:{bg:\"#D6C3B8\",icon:\"#4A3A38\"}},Agent:{Default:{bg:\"#B9B8D6\",icon:\"#474773\"},Hover:{bg:\"#A6A5C9\",icon:\"#363657\"},Active:{bg:\"#9291BA\",icon:\"#26263D\"},Sent:{bg:\"#B9B8D6\",icon:\"#474773\"}}},disabled:{bg:\"rgba(255,255,255,0.1)\",icon:\"#9A9A9A\"},// Scrollbar palette — lighter than the surface so the thumb stands out on dark.\nscrollbar:{thumb:\"rgba(255,255,255,0.18)\",thumbHover:\"rgba(255,255,255,0.3)\",track:\"transparent\"},// Diff palette — added/removed line backgrounds and gutter symbols.\ndiff:{addedBg:\"rgba(60, 201, 136, 0.12)\",addedText:\"#5DD49C\",removedBg:\"rgba(233, 112, 112, 0.14)\",removedText:\"#E97070\"},// Canvas floating-control pill — a light pill over the dark editor, matching\n// the app's DiffControls. Greens/reds are darker here so they read on light.\npill:{bg:\"#E8E7E4\",text:\"#1F1D1C\",add:\"#157347\",remove:\"#C0392B\",btnBg:\"rgba(24,23,22,0.06)\"},// Mascot palette.\nmascot:{body:\"#D6D5D2\",eye:\"#181716\"},// Unity viewport window — chrome, tab bar, viewport backgrounds, and the\n// transport-control palette (per state). Placeholder tab hues match the\n// per-tab viewport look so solid-color stand-ins blend in.\nunity:{windowBg:\"#141414\",viewportBg:\"#1a1a1a\",tabBar:\"#3c3c3c\",tabText:\"#c4c4c4\",sceneGradient:\"linear-gradient(to bottom, #2c2b2a, #1f1d1c)\",gridBg:\"linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px)\",tabHue:{Scene:\"#2c2b2a\",Game:\"#1a1a1a\",Animation:\"#1a1a1a\",Animator:\"#1a1a1a\"},ctrl:{Default:{bg:\"#2a2a2a\",icon:\"#C4C4C4\"},Hover:{bg:\"#3a3a3a\",icon:\"#E0E0E0\"},Active:{bg:\"#1b3d6e\",icon:\"#5ea8e8\"},ActiveHover:{bg:\"#254d84\",icon:\"#7abcf0\"},Disabled:{bg:\"#1e1e1e\",icon:\"#454545\"}}},radiusButton:4,radiusOuter:8,radiusPage:16,radiusPill:999,fontUI:\"'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif\",// Mono families — fontMono for diffs/code, fontMonoUI for card metadata labels.\nfontMono:\"'Fragment Mono', 'JetBrains Mono', ui-monospace, monospace\",fontMonoUI:\"'Roboto Mono', ui-monospace, SFMono-Regular, Menlo, monospace\",// Icon size scale. sm/md/lg cover the UI; send + card are one-off sizes.\niconSize:{sm:11,md:14,lg:16,send:20,card:24},// Structural dimensions for the window + panels (px unless noted).\nlayout:{windowAspect:\"1103 / 693\",maxWidth:1200,// Fixed window height — the window keeps a consistent vertical size as\n// it's horizontally compressed (it reflows rather than scaling down).\nwindowHeight:640,topBarHeight:37,sidebarWidth:198,threadWidth:355,// Narrower thread used once the window drops below threadCompactBreakpoint,\n// so the center page keeps a usable minimum width.\nthreadWidthCompact:320,unityWidth:380,// Responsive breakpoints, measured on the window box's OWN width (not the\n// viewport) so the layout reflows correctly however the component is embedded.\n// Below sidebarOverlayBreakpoint the sidebar detaches from the flow and opens\n// as an overlay drawer instead of docking inline.\nsidebarOverlayBreakpoint:800,// Below this the thread panel switches to its compact width.\nthreadCompactBreakpoint:900,// Below this the thread goes full-screen (covering the page) and is\n// shown/hidden via the top-right expand/minimize button.\nthreadFullscreenBreakpoint:640},// Box-shadow presets — reference instead of inlining shadow strings.\nshadow:{panel:\"0 8px 24px -8px rgba(0,0,0,0.4)\",input:\"0 0 16px rgba(0,0,0,0.5)\",menu:\"0 0 32px rgba(0,0,0,0.5)\",pill:\"0 6px 16px -4px rgba(0,0,0,0.5)\",unityWindow:\"0 10px 24px -4px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.04) inset\",window:\"0 20px 24px -16px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.02) inset\"},// Gradient presets.\ngradient:{// AccountCard cover: a soft accent-purple top light fading into surface-1.\naccountCover:\"radial-gradient(ellipse 90% 70% at 50% -20%, rgba(169,156,255,0.18), transparent 60%), linear-gradient(180deg, rgba(44,43,42,0) 0%, rgba(44,43,42,1) 100%)\"},// Type scale — spread into styles: `...tokens.type.Body1`\ntype:{Badge:{fontSize:8,lineHeight:\"12px\"},Caption:{fontSize:10,lineHeight:\"14px\"},Body2:{fontSize:11,lineHeight:\"16px\"},Body1:{fontSize:12,lineHeight:\"16px\"},Header5:{fontSize:13,lineHeight:1.4},Header4:{fontSize:14,lineHeight:\"24px\"},Header3:{fontSize:16,lineHeight:1.3},Header2:{fontSize:20,lineHeight:1.3},Header1:{fontSize:36,lineHeight:1.1}}};const svgWrap=(children,{size,color,stroke})=>/*#__PURE__*/_jsx(\"svg\",{width:size,height:size,viewBox:\"0 0 24 24\",fill:\"none\",stroke:color,strokeWidth:stroke,strokeLinecap:\"round\",strokeLinejoin:\"round\",style:{width:size,height:size,flexShrink:0},children:children});const stroked=d=>p=>svgWrap(/*#__PURE__*/_jsx(\"path\",{d:d}),p);// Fill-based icon on the shared 24x24 grid. Use for solid glyphs (e.g. transport\n// controls) where `color` drives the fill instead of the stroke.\nconst filled=render=>({size,color})=>/*#__PURE__*/_jsx(\"svg\",{width:size,height:size,viewBox:\"0 0 24 24\",fill:\"none\",style:{width:size,height:size,flexShrink:0},children:render(color)});// Single fill path on the shared 24x24 grid — the common case for solid glyphs.\n// Pass evenOdd for paths that carve holes with the even-odd fill rule.\nconst filledPath=(d,evenOdd=false)=>filled(color=>evenOdd?/*#__PURE__*/_jsx(\"path\",{fillRule:\"evenodd\",clipRule:\"evenodd\",d:d,fill:color}):/*#__PURE__*/_jsx(\"path\",{d:d,fill:color}));const icons={doc:stroked(\"M14 3H6a2 2 0 00-2 2v14a2 2 0 002 2h12a2 2 0 002-2V9zM14 3v6h6\"),plus:stroked(\"M12.5 11.4951H19.0049V12.4951H12.5V19H11.5V12.4951H5.00488V11.4951H11.5V5H12.5V11.4951Z\"),chevDown:stroked(\"M6 9l6 6 6-6\"),chevRight:stroked(\"M9 6l6 6-6 6\"),sparkle:stroked(\"M12 3l1.5 4.5L18 9l-4.5 1.5L12 15l-1.5-4.5L6 9l4.5-1.5L12 3z\"),send:stroked(\"M5 12l14-7-7 14-2-5-5-2z\"),paperclip:stroked(\"M21 12.5L12.5 21a5.5 5.5 0 01-7.78-7.78l9-9a3.5 3.5 0 014.95 4.95L9.83 17.97a1.5 1.5 0 01-2.12-2.12l8.49-8.48\"),sliders:stroked(\"M4 6h13M4 12h9M4 18h16M19 4v4M15 10v4M9 16v4\"),mic:stroked(\"M12 1a3 3 0 00-3 3v8a3 3 0 006 0V4a3 3 0 00-3-3zM19 10v2a7 7 0 01-14 0v-2M12 19v4\"),arrowUp:stroked(\"M12 19V5M5 12l7-7 7 7\"),user:stroked(\"M16 21v-2a4 4 0 00-4-4H6a4 4 0 00-4 4v2M9 11a4 4 0 100-8 4 4 0 000 8z\"),settings:stroked(\"M12 15a3 3 0 100-6 3 3 0 000 6zM19.4 15a1.7 1.7 0 00.34 1.87l.06.06a2 2 0 11-2.83 2.83l-.06-.06a1.7 1.7 0 00-1.87-.34 1.7 1.7 0 00-1 1.55V21a2 2 0 11-4 0v-.09a1.7 1.7 0 00-1.11-1.55 1.7 1.7 0 00-1.87.34l-.06.06A2 2 0 114.07 16.93l.06-.06A1.7 1.7 0 004.47 15a1.7 1.7 0 00-1.55-1H3a2 2 0 110-4h.09A1.7 1.7 0 004.6 9a1.7 1.7 0 00-.34-1.87l-.06-.06A2 2 0 117.04 4.24l.06.06A1.7 1.7 0 008.97 4.6 1.7 1.7 0 009.97 3.05V3a2 2 0 114 0v.09a1.7 1.7 0 001 1.55 1.7 1.7 0 001.87-.34l.06-.06a2 2 0 112.83 2.83l-.06.06a1.7 1.7 0 00-.34 1.87V9a1.7 1.7 0 001.55 1H21a2 2 0 110 4h-.09a1.7 1.7 0 00-1.55 1z\"),sidebar:filled(color=>/*#__PURE__*/_jsx(_Fragment,{children:/*#__PURE__*/_jsx(\"path\",{d:\"M20 19V20L4 19.9893V18.9893L20 19ZM21 18V6C21 5.44772 20.5523 5 20 5L4 4.98926C3.48232 4.98926 3.05621 5.38259 3.00488 5.88672L3 5.98926V17.9893C3 18.5415 3.44772 18.9893 4 18.9893V19.9893L3.7959 19.9785C2.85435 19.8831 2.1062 19.1349 2.01074 18.1934L2 17.9893V5.98926C2 4.88469 2.89543 3.98926 4 3.98926L20 4C21.1046 4 22 4.89543 22 6V18L21.9893 18.2041C21.8938 19.1457 21.1457 19.8938 20.2041 19.9893L20 20V19C20.5523 19 21 18.5523 21 18Z\",fill:color})})),panel:stroked(\"M4 4h16v16H4zM15 4v16\"),refresh:stroked(\"M23 4v6h-6M1 20v-6h6M3.51 9a9 9 0 0114.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0020.49 15\"),moreH:stroked(\"M5 12h.01M12 12h.01M19 12h.01\"),expand:stroked(\"M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7\"),pin:stroked(\"M16 3l5 5-3 1-4 4 1 5-2 1-4-4-5 5-1-1 5-5-4-4 1-2 5 1 4-4 1-3z\"),code:stroked(\"M9 8l-4 4 4 4M15 8l4 4-4 4\"),imageAlt:stroked(\"M4 5a1 1 0 011-1h14a1 1 0 011 1v14a1 1 0 01-1 1H5a1 1 0 01-1-1V5zM4 15l4-4 4 4 3-3 5 5\"),// Filled glyph (outer @ ring + inner counter), so it renders at a normal\n// weight. Stroking this outline would trace every contour's edges and read\n// as a heavy, doubled @ — hence filledPath with even-odd for the hollow ring.\natSymbol:filledPath(\"M12 2C17.5228 2 22 6.47715 22 12V13.25C22 15.0449 20.5449 16.5 18.75 16.5C17.3947 16.5 16.2338 15.6702 15.7461 14.4912C14.9396 15.7016 13.5636 16.5 12 16.5C9.51472 16.5 7.5 14.4853 7.5 12C7.5 9.51472 9.51472 7.5 12 7.5C13.4138 7.5 14.675 8.15219 15.5 9.17188V8H16.5V13.25C16.5 14.4926 17.5074 15.5 18.75 15.5C19.9926 15.5 21 14.4926 21 13.25V12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21C14.1381 21 16.1006 20.2547 17.6445 19.0098L17.959 19.3994L18.2725 19.7891C16.5572 21.172 14.3745 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2ZM12 8.5C10.067 8.5 8.5 10.067 8.5 12C8.5 13.933 10.067 15.5 12 15.5C13.933 15.5 15.5 13.933 15.5 12C15.5 10.067 13.933 8.5 12 8.5Z\",true),undo:stroked(\"M15 10C17.2091 10 19 11.7909 19 14C19 16.2092 17.2091 18 15 18H13V19H15C17.7614 19 20 16.7614 20 14C20 11.2386 17.7614 9.00003 15 9.00003L5.91406 8.9215L9 5.83556L8.29297 5.12853L4 9.4215L8.29297 13.7145L9 13.0074L5.91406 9.9215L15 10Z\"),// Transport controls (fill-based glyphs, shared 24x24 grid).\nplay:filled(c=>/*#__PURE__*/_jsx(\"path\",{d:\"M5 3L21 12L5 21V3Z\",fill:c})),pause:filled(c=>/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"rect\",{x:\"5.5\",y:\"3.5\",width:\"4.5\",height:\"17\",rx:\"1\",fill:c}),/*#__PURE__*/_jsx(\"rect\",{x:\"14\",y:\"3.5\",width:\"4.5\",height:\"17\",rx:\"1\",fill:c})]})),step:filled(c=>/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"path\",{d:\"M4 3L16 12L4 21V3Z\",fill:c}),/*#__PURE__*/_jsx(\"rect\",{x:\"17.5\",y:\"3.5\",width:\"3.5\",height:\"17\",rx:\"1\",fill:c})]})),page:filledPath(\"M18 2C19.1046 2 20 2.89543 20 4V20C20 21.1046 19.1046 22 18 22H6C4.89543 22 4 21.1046 4 20V4C4 2.89543 4.89543 2 6 2H18ZM7.5 14C7.22386 14 7 14.2239 7 14.5C7 14.7761 7.22386 15 7.5 15H12.75C13.0261 15 13.25 14.7761 13.25 14.5C13.25 14.2239 13.0261 14 12.75 14H7.5ZM7.5 11C7.22386 11 7 11.2239 7 11.5C7 11.7761 7.22386 12 7.5 12H16.5C16.7761 12 17 11.7761 17 11.5C17 11.2239 16.7761 11 16.5 11H7.5ZM7.5 8C7.22386 8 7 8.22386 7 8.5C7 8.77614 7.22386 9 7.5 9H16.5C16.7761 9 17 8.77614 17 8.5C17 8.22386 16.7761 8 16.5 8H7.5Z\"),folder:filled(color=>/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"path\",{d:\"M21 4C21.5 4 22 4.5 22 5V20C22 20.5 21.5 21 21 21H3.00001C2.50001 21 2.00001 20.5 2.00001 20V10C2.00001 9.44772 2 9.5 2.00004 9H13L13.8389 4.80371C13.9324 4.33649 14.3429 4.00022 14.8193 4H21Z\",fill:color}),/*#__PURE__*/_jsx(\"path\",{d:\"M12.5 6L12.1133 8H3H2V7C2 6.5 2.5 6 3 6H12.5Z\",fill:color})]})),unity:filled(color=>/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"path\",{d:\"M11.875 22L19.9168 17.3333L16.8334 15.5416L13.6667 17.375C13.5417 17.4583 13.4167 17.375 13.4167 17.2083V12.875C13.4167 12.75 13.5 12.625 13.5834 12.5833L17.3334 10.4166C17.4584 10.3333 17.5834 10.4166 17.5834 10.5833V14.25L20.6667 16.0416V6.6666L11.875 11.7916V22Z\",fill:color}),/*#__PURE__*/_jsx(\"path\",{d:\"M12.6251 2V5.58334L15.7917 7.41671C15.9167 7.49999 15.9167 7.66671 15.7917 7.70839L12.0417 9.87508C11.9167 9.95836 11.7917 9.91672 11.7084 9.87508L7.95835 7.70839C7.83335 7.66671 7.83335 7.45839 7.95835 7.41671L11.125 5.58334V2L3 6.6667L11.875 11.7916L20.6667 6.6666L12.6251 2Z\",fill:color}),/*#__PURE__*/_jsx(\"path\",{d:\"M10.0417 17.375L6.87498 15.5416L3.79164 17.3333L11.875 22V11.7916L3 6.6667V16L6.08334 14.2083V10.5416C6.08334 10.4166 6.25002 10.3333 6.33334 10.3749L10.0834 12.5416C10.2084 12.625 10.25 12.7083 10.25 12.8333V17.1666C10.2917 17.3333 10.1667 17.4583 10.0417 17.375Z\",fill:color})]})),minimizeWindowRight:filled(color=>/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"path\",{d:\"M20 19V20L4 19.9893V18.9893L20 19ZM21 18V6C21 5.44772 20.5523 5 20 5L4 4.98926C3.48232 4.98926 3.05621 5.38259 3.00488 5.88672L3 5.98926V17.9893C3 18.5415 3.44772 18.9893 4 18.9893V19.9893L3.7959 19.9785C2.85435 19.8831 2.1062 19.1349 2.01074 18.1934L2 17.9893V5.98926C2 4.88469 2.89543 3.98926 4 3.98926L20 4C21.1046 4 22 4.89543 22 6V18L21.9893 18.2041C21.8938 19.1457 21.1457 19.8938 20.2041 19.9893L20 20V19C20.5523 19 21 18.5523 21 18Z\",fill:color}),/*#__PURE__*/_jsx(\"rect\",{x:\"14\",y:\"6\",width:\"6\",height:\"12\",rx:\"1\",fill:color})]})),minimizeWindowLeft:filled(color=>/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"path\",{d:\"M20 19V20L4 19.9893V18.9893L20 19ZM21 18V6C21 5.44772 20.5523 5 20 5L4 4.98926C3.48232 4.98926 3.05621 5.38259 3.00488 5.88672L3 5.98926V17.9893C3 18.5415 3.44772 18.9893 4 18.9893V19.9893L3.7959 19.9785C2.85435 19.8831 2.1062 19.1349 2.01074 18.1934L2 17.9893V5.98926C2 4.88469 2.89543 3.98926 4 3.98926L20 4C21.1046 4 22 4.89543 22 6V18L21.9893 18.2041C21.8938 19.1457 21.1457 19.8938 20.2041 19.9893L20 20V19C20.5523 19 21 18.5523 21 18Z\",fill:color}),/*#__PURE__*/_jsx(\"rect\",{x:\"4\",y:\"6\",width:\"6\",height:\"12\",rx:\"1\",fill:color})]})),expandWindow:filled(color=>/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"path\",{d:\"M20 19V20H4V19H20ZM21 18V6C21 5.44772 20.5523 5 20 5H4C3.48232 5 3.05621 5.39333 3.00488 5.89746L3 6V18C3 18.5523 3.44772 19 4 19V20L3.7959 19.9893C2.85435 19.8938 2.1062 19.1457 2.01074 18.2041L2 18V6C2 4.89543 2.89543 4 4 4H20C21.1046 4 22 4.89543 22 6V18L21.9893 18.2041C21.8938 19.1457 21.1457 19.8938 20.2041 19.9893L20 20V19C20.5523 19 21 18.5523 21 18Z\",fill:color}),/*#__PURE__*/_jsx(\"rect\",{x:\"4\",y:\"6\",width:\"16\",height:\"12\",rx:\"1\",fill:color})]})),planningMode:filled(color=>/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"rect\",{x:\"4\",y:\"7\",width:\"2\",height:\"2\",rx:\"0.5\",fill:color}),/*#__PURE__*/_jsx(\"rect\",{x:\"4\",y:\"11\",width:\"2\",height:\"2\",rx:\"0.5\",fill:color}),/*#__PURE__*/_jsx(\"rect\",{x:\"4\",y:\"15\",width:\"2\",height:\"2\",rx:\"0.5\",fill:color}),/*#__PURE__*/_jsx(\"rect\",{x:\"8\",y:\"7\",width:\"12\",height:\"2\",rx:\"0.5\",fill:color}),/*#__PURE__*/_jsx(\"rect\",{x:\"8\",y:\"11\",width:\"9\",height:\"2\",rx:\"0.5\",fill:color}),/*#__PURE__*/_jsx(\"rect\",{x:\"8\",y:\"15\",width:\"11\",height:\"2\",rx:\"0.5\",fill:color})]})),askMode:filledPath(\"M21 6.40966V18C14.0305 15.6295 12 19 12 19C12 19 9.96951 15.6294 3 18V6.40966C3 6.40966 7.94003 3.02524 12 6.74477C16.0597 3.02511 21 6.40966 21 6.40966Z\"),arrowUpFilled:filledPath(\"M11 19V7.41405L6.34276 12.0713C5.95221 12.4615 5.31913 12.4617 4.9287 12.0713C4.53828 11.6808 4.53847 11.0478 4.9287 10.6572L11.293 4.29295C11.6835 3.90243 12.3165 3.90243 12.707 4.29295L19.0713 10.6572C19.4615 11.0478 19.4617 11.6808 19.0713 12.0713C18.6809 12.4617 18.0478 12.4615 17.6572 12.0713L13 7.41405V19C13 19.5523 12.5523 20 12 20C11.4477 20 11 19.5523 11 19Z\"),agent:filledPath(\"M20.5 13.7454H20L20 11.3371C20 10.5125 19.6839 9.72165 19.1213 9.13855C18.5588 8.55545 17.7957 8.22792 17 8.22792H13V5.86773C13.5119 5.56144 13.8669 5.03605 13.9696 4.43262C14.0722 3.82927 13.9121 3.20972 13.5321 2.74044C13.1521 2.27107 12.5912 2 12 2C11.4088 2 10.8479 2.27107 10.4679 2.74044C10.0879 3.20972 9.92775 3.82925 10.0304 4.43262C10.1331 5.03605 10.4881 5.56144 11 5.86773V8.22792H7.00003C6.20441 8.22792 5.44128 8.55552 4.87864 9.13855C4.31601 9.72158 3.99997 10.5124 3.99997 11.3371L3.99997 13.7454H3.49998C2.96412 13.7454 2.46888 14.0417 2.20092 14.5227C1.93303 15.0037 1.93303 15.5962 2.20092 16.0772C2.46888 16.5582 2.96412 16.8545 3.49998 16.8545H3.99997V17.8908C3.99997 18.7154 4.31607 19.5063 4.87865 20.0894C5.44122 20.6725 6.20434 21 7.00003 21H17C17.7956 21 18.5587 20.6724 19.1214 20.0894C19.684 19.5063 20 18.7155 20 17.8908V16.8545H20.5C21.0359 16.8545 21.5311 16.5582 21.7991 16.0772C22.067 15.5962 22.067 15.0037 21.7991 14.5227C21.5311 14.0417 21.0359 13.7454 20.5 13.7454ZM10.0001 15.3C10.0001 15.7122 9.84205 16.1077 9.56072 16.3991C9.27948 16.6907 8.8979 16.8545 8.5001 16.8545C8.10231 16.8545 7.72073 16.6907 7.43949 16.3991C7.15817 16.1077 7.00011 15.7122 7.00011 15.3C7.00011 14.8877 7.15816 14.4922 7.43949 14.2008C7.72073 13.9092 8.10231 13.7454 8.5001 13.7454C8.8979 13.7454 9.27948 13.9092 9.56072 14.2008C9.84203 14.4922 10.0001 14.8877 10.0001 15.3ZM17 15.3C17 15.7122 16.842 16.1077 16.5607 16.3991C16.2794 16.6907 15.8979 16.8545 15.5001 16.8545C15.1023 16.8545 14.7207 16.6907 14.4394 16.3991C14.1581 16.1077 14.0001 15.7122 14.0001 15.3C14.0001 14.8877 14.1581 14.4922 14.4394 14.2008C14.7207 13.9092 15.1023 13.7454 15.5001 13.7454C15.8979 13.7454 16.2794 13.9092 16.5607 14.2008C16.842 14.4922 17 14.8877 17 15.3Z\"),edit:({size,color})=>/*#__PURE__*/_jsxs(\"svg\",{width:size,height:size,viewBox:\"0 0 24 24\",xmlns:\"http://www.w3.org/2000/svg\",style:{width:size,height:size,flexShrink:0,color},id:\"icon\",children:[/*#__PURE__*/_jsx(\"path\",{fillRule:\"evenodd\",clipRule:\"evenodd\",d:\"M17.4645 3.49996L7.97097 13.4935L7 17.2695C6.88631 17.7116 7.2884 18.1137 7.73052 18L11.5065 17.029L21 7.0355C21.1953 6.84023 21.1953 6.52365 21 6.32839L18.1716 3.49996C17.9763 3.3047 17.6597 3.3047 17.4645 3.49996ZM18.1716 8.44971L11.1529 15.9684L9.03163 13.8471L16.0503 6.32839L18.1716 8.44971ZM10.1227 16.3523L8.64766 14.8773L8.13708 16.8629L10.1227 16.3523ZM19.9393 6.68194L18.8787 7.7426L16.7574 5.62128L17.818 4.56062L19.9393 6.68194Z\",fill:\"currentColor\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M4 6.5C4 6.22386 4.22386 6 4.5 6L8.53163 5.99996C8.80777 5.99996 9.03163 5.7761 9.03163 5.49996C9.03163 5.22382 8.80777 4.99996 8.53163 4.99996L4.5 5C3.67157 5 3 5.67157 3 6.5L3 19.4998C3 20.3282 3.67157 20.9998 4.5 20.9998L19.5 20.9998C20.3284 20.9998 21 20.3282 21 19.4998V14.5C21 14.2239 20.7761 14 20.5 14C20.2239 14 20 14.2239 20 14.5V19.4998C20 19.7759 19.7761 19.9998 19.5 19.9998L4.5 19.9998C4.22386 19.9998 4 19.776 4 19.4998L4 6.5Z\",fill:\"currentColor\"})]}),externalLink:filledPath(\"M13 4.5C13 4.22386 13.2239 4 13.5 4H19.5C19.7761 4 20 4.22386 20 4.5V10.5C20 10.7761 19.7761 11 19.5 11C19.2239 11 19 10.7761 19 10.5V5.70711L11.8536 12.8536C11.6583 13.0488 11.3417 13.0488 11.1464 12.8536C10.9512 12.6583 10.9512 12.3417 11.1464 12.1464L18.2929 5H13.5C13.2239 5 13 4.77614 13 4.5ZM5 7C4.44772 7 4 7.44772 4 8V19C4 19.5523 4.44772 20 5 20H16C16.5523 20 17 19.5523 17 19V13.5C17 13.2239 17.2239 13 17.5 13C17.7761 13 18 13.2239 18 13.5V19C18 20.1046 17.1046 21 16 21H5C3.89543 21 3 20.1046 3 19V8C3 6.89543 3.89543 6 5 6H10.5C10.7761 6 11 6.22386 11 6.5C11 6.77614 10.7761 7 10.5 7H5Z\",true),hashCube:({size,color})=>/*#__PURE__*/_jsx(\"svg\",{width:size,height:size,viewBox:\"0 0 24 24\",xmlns:\"http://www.w3.org/2000/svg\",style:{width:size,height:size,flexShrink:0},children:/*#__PURE__*/_jsx(\"path\",{d:\"M10 3v18M15 3v18M3 9h18M3 15h18\",stroke:color,strokeWidth:1.6,strokeLinecap:\"round\",fill:\"none\"})}),prefab:filledPath(\"M21 16.7803L13.0332 21.0225V11.2432L21 7V16.7803ZM11 11.2207V21L3 16.7803V7L11 11.2207ZM20 5.5L11.918 9.52539L4 5.5L11.918 2L20 5.5Z\"),rules:filled(color=>/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"path\",{d:\"M3 18H14V19C14 20.1046 14.8954 21 16 21H5C3.89543 21 3 20.1046 3 19V18Z\",fill:color}),/*#__PURE__*/_jsx(\"path\",{d:\"M15 17H6V5C6 3.89543 6.89543 3 8 3H19C17.8954 3 17 3.89543 17 5V19C17 19.5523 16.5523 20 16 20C15.4477 20 15 19.5523 15 19V17Z\",fill:color}),/*#__PURE__*/_jsx(\"path\",{d:\"M18 5V6H20V5C20 4.44772 19.5523 4 19 4C18.4477 4 18 4.44772 18 5Z\",fill:color})]})),home:filledPath(\"M10.7832 3.93305C11.5011 3.38267 12.4989 3.38267 13.2168 3.93305L20.2168 9.29926C20.7105 9.67775 21 10.2651 21 10.8872V19.9995C21 20.5517 20.5523 20.9995 20 20.9995H4C3.44772 20.9995 3 20.5517 3 19.9995V10.8872C3 10.2651 3.28952 9.67775 3.7832 9.29926L10.7832 3.93305ZM6.5 15.9995C5.67173 15.9995 5.00026 16.6713 5 17.4995C5 18.3279 5.67157 18.9995 6.5 18.9995H17.5C18.3284 18.9995 19 18.3279 19 17.4995C18.9997 16.6713 18.3283 15.9995 17.5 15.9995H6.5Z\"),check:stroked(\"M5 12.5l4 4 10-10\"),close:stroked(\"M6 6l12 12M18 6L6 18\"),// Decided-state glyphs for the tool-approval card: a ringed check (accepted)\n// and a ringed X (denied), mirroring the app's ToolApproval outcome icons.\ncheckCircle:stroked(\"M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0ZM8.5 12l2.5 2.5 4.5-5\"),deniedCircle:stroked(\"M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0ZM9.5 9.5l5 5M14.5 9.5l-5 5\"),// Workspace-type chip glyphs (private = lock, shared = team).\nlock:filledPath(\"M12 2a5 5 0 00-5 5v3H6a2 2 0 00-2 2v7a2 2 0 002 2h12a2 2 0 002-2v-7a2 2 0 00-2-2h-1V7a5 5 0 00-5-5zm3 8H9V7a3 3 0 016 0v3z\"),team:filledPath(\"M9 11a3.5 3.5 0 100-7 3.5 3.5 0 000 7zm7 0a3 3 0 100-6 3 3 0 000 6zM9 12.5c-3 0-6 1.5-6 4.5V19h12v-2c0-3-3-4.5-6-4.5zm7 0c-.6 0-1.2.05-1.75.15C15.7 13.6 16.5 15 16.5 17v2H21v-2c0-3-2.5-4.5-5-4.5z\"),// Skill accent glyph (turquoise puzzle piece).\npuzzle:filledPath(\"M10.5 3a2 2 0 012 2v.5a1 1 0 001 1h1.5a1.5 1.5 0 011.5 1.5V9.5a1 1 0 001 1h.5a2 2 0 110 4h-.5a1 1 0 00-1 1v1.5a1.5 1.5 0 01-1.5 1.5H6.5A1.5 1.5 0 015 17.5V14a1 1 0 00-1-1h-.5a2 2 0 110-4H4a1 1 0 001-1V6.5A1.5 1.5 0 016.5 5H8a1 1 0 001-1V5a2 2 0 011.5-2z\"),// Composite MCP connector glyph.\nmcp:({size,color})=>/*#__PURE__*/_jsx(\"svg\",{width:size,height:size,viewBox:\"0 0 16 16\",xmlns:\"http://www.w3.org/2000/svg\",style:{width:size,height:size,flexShrink:0},children:/*#__PURE__*/_jsx(\"path\",{d:\"M7.51074 13.0214C7.51074 12.7208 7.63025 12.4321 7.84277 12.2196L12.8125 7.24987C13.3816 6.68086 13.3816 5.75845 12.8125 5.18932L12.7842 5.16002C12.215 4.5911 11.2926 4.59117 10.7236 5.16002L6.57324 9.31041C6.38362 9.50004 6.07643 9.49989 5.88672 9.31041C5.69702 9.12072 5.69703 8.81359 5.88672 8.62389L10.0361 4.4735C10.6052 3.90447 10.6052 2.98101 10.0361 2.41198C9.46714 1.84336 8.54459 1.84317 7.97559 2.41198L2.48047 7.90807C2.29078 8.09777 1.98266 8.09776 1.79297 7.90807C1.60352 7.71849 1.60369 7.41123 1.79297 7.22155L7.28906 1.72545C8.23757 0.777145 9.77526 0.776979 10.7236 1.72545C11.2862 2.28803 11.5121 3.05765 11.4072 3.78893C12.1387 3.68397 12.909 3.91078 13.4717 4.4735L13.5 4.50182C14.4484 5.45025 14.4483 6.98795 13.5 7.93639L8.5293 12.9071C8.49914 12.9374 8.48242 12.9786 8.48242 13.0214C8.48243 13.0641 8.49913 13.1053 8.5293 13.1356L9.5498 14.1561C9.73949 14.3458 9.73951 14.6539 9.5498 14.8436C9.36013 15.0329 9.05287 15.0331 8.86328 14.8436L7.84277 13.8231C7.63026 13.6106 7.51075 13.3219 7.51074 13.0214ZM8.66309 3.09948C8.8528 2.91 9.15999 2.90985 9.34961 3.09948C9.53923 3.2891 9.53909 3.59629 9.34961 3.786L5.28516 7.85045C4.71613 8.41948 4.71609 9.34285 5.28516 9.91198C5.8542 10.4808 6.77671 10.4806 7.3457 9.91198L11.4102 5.84752C11.5998 5.65783 11.908 5.65783 12.0977 5.84752C12.287 6.03717 12.287 6.34444 12.0977 6.53405L8.0332 10.5985C7.08482 11.5469 5.54713 11.5468 4.59863 10.5985C3.65025 9.65001 3.6502 8.11236 4.59863 7.16393L8.66309 3.09948Z\",fill:color})}),copy:({size,color,stroke})=>svgWrap(/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"rect\",{x:\"9\",y:\"9\",width:\"11\",height:\"11\",rx:\"2\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M5 15H4a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h9a1 1 0 0 1 1 1v1\"})]}),{size,color,stroke})};export const Icon=({name,size=tokens.iconSize.md,color=tokens.textSecondary,stroke=1.5})=>{const C=icons[name];if(!C)return null;return /*#__PURE__*/_jsx(C,{size:size,color:color,stroke:stroke});};// ---------- shared style helpers + hooks ----------\n// Single-line truncation with an ellipsis — spread into a style object.\nconst ellipsis={overflow:\"hidden\",textOverflow:\"ellipsis\",whiteSpace:\"nowrap\"};// Multi-line clamp to `lines` rows (WebKit line-clamp) — spread into a style.\nconst clamp=lines=>({display:\"-webkit-box\",WebkitLineClamp:lines,WebkitBoxOrient:\"vertical\",overflow:\"hidden\"});// Hover state + the mouse handlers to bind it. Spread the returned props onto\n// the element: `const [hovered, hoverProps] = useHover()` … `<div {...hoverProps}>`.\nfunction useHover(){const[hovered,setHovered]=React.useState(false);return[hovered,{onMouseEnter:()=>setHovered(true),onMouseLeave:()=>setHovered(false)}];}// Measure an element's width via ResizeObserver. Returns a ref to attach and\n// the element's current content width in px (0 until the first measurement).\n// Used to drive layout breakpoints off the window box's own width rather than\n// the viewport, so the component reflows the same way however it's embedded.\nexport function useElementWidth(){const elementRef=React.useRef(null);const[width,setWidth]=React.useState(0);React.useEffect(()=>{const element=elementRef.current;if(!element)return;const update=()=>setWidth(element.clientWidth);update();const resizeObserver=new ResizeObserver(update);resizeObserver.observe(element);return()=>resizeObserver.disconnect();},[]);return[elementRef,width];}export function UniformStage({stageWidth,stageHeight,minScale=.25,maxScale=2,align=\"center\",width=0,height=0,style,children}){const[measureRef,measuredWidth]=useElementWidth();const scale=React.useMemo(()=>{const availableWidth=measuredWidth>0?measuredWidth:stageWidth;const computedScale=availableWidth/stageWidth;return Math.min(maxScale,Math.max(minScale,computedScale));},[maxScale,measuredWidth,minScale,stageWidth]);const scaledHeight=stageHeight*scale;const resolvedWidth=style?.width??(typeof width===\"number\"&&width>0?width:\"100%\");const resolvedHeight=style?.height??(typeof height===\"number\"&&height>0?height:scaledHeight);return /*#__PURE__*/_jsxs(\"div\",{ref:measureRef,style:{position:\"relative\",width:resolvedWidth,height:resolvedHeight,minHeight:scaledHeight,overflow:\"visible\",...style},children:[/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",top:0,left:align===\"center\"?\"50%\":0,width:stageWidth,height:stageHeight,transform:align===\"center\"?`translateX(-50%) scale(${scale})`:`scale(${scale})`,transformOrigin:align===\"center\"?\"top center\":\"top left\"},children:children}),/*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:scaledHeight}})]});}// ---------- scroll-into-view hook ----------\n// Reports whether the attached element has entered the viewport. Wrappers use\n// this to drive Hero's `autoStart` so a demo begins its turn when scrolled into\n// view rather than on first paint. Defaults to fire once (`once`) — the whole\n// point is a one-shot \"begin\" cue, so it latches true and stops observing. Falls\n// back to true where IntersectionObserver is unavailable (SSR / Framer's static\n// thumbnail render) so generation is never permanently blocked.\nexport function useInView(options){const{threshold=.35,once=true}=options??{};const ref=React.useRef(null);const[inView,setInView]=React.useState(false);React.useEffect(()=>{const node=ref.current;if(!node)return;if(typeof window===\"undefined\"||typeof IntersectionObserver===\"undefined\"){setInView(true);return;}const observer=new IntersectionObserver(entries=>{for(const entry of entries){if(entry.isIntersecting){setInView(true);if(once)observer.disconnect();}else if(!once){setInView(false);}}},{threshold});observer.observe(node);return()=>observer.disconnect();},[threshold,once]);return[ref,inView];}// ---------- typewriter hook ----------\nfunction useTypewriter(text,opts={}){const{speed=28,startDelay=400,enabled=true}=opts;const[out,setOut]=React.useState(\"\");const[done,setDone]=React.useState(false);React.useEffect(()=>{if(!enabled){setOut(text);setDone(true);return;}setOut(\"\");setDone(false);let i=0;let raf;const start=setTimeout(()=>{const tick=()=>{i+=1;setOut(text.slice(0,i));if(i>=text.length){setDone(true);return;}raf=window.setTimeout(tick,speed);};tick();},startDelay);return()=>{clearTimeout(start);if(raf)clearTimeout(raf);};},[text,speed,startDelay,enabled]);return{out,done};}// ---------- top bar ----------\nexport const TopBar=({sidebarOpen=true,onToggleSidebar,threadOpen=true,onToggleThread,showToggles=true})=>{const[hovered,hoverProps]=useHover();const[threadHovered,threadHoverProps]=useHover();return /*#__PURE__*/_jsxs(\"div\",{style:{height:tokens.layout.topBarHeight,background:tokens.bgSurface1,borderBottom:`1px solid ${tokens.bgSurface0}`,display:\"flex\",alignItems:\"center\",justifyContent:\"space-between\",padding:\"0 14px\",flexShrink:0},children:[/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",gap:6,alignItems:\"center\"},children:showToggles&&/*#__PURE__*/_jsx(\"div\",{...onToggleSidebar?hoverProps:{},onClick:onToggleSidebar,title:sidebarOpen?\"Hide sidebar\":\"Show sidebar\",style:{display:\"flex\",alignItems:\"center\",justifyContent:\"center\",width:24,height:24,borderRadius:tokens.radiusButton,background:hovered?tokens.whiteAlpha08:\"transparent\",cursor:onToggleSidebar?\"pointer\":\"default\",transition:\"background 120ms ease\"},children:/*#__PURE__*/_jsx(Icon,{name:sidebarOpen?\"minimizeWindowLeft\":\"sidebar\",size:tokens.iconSize.lg,color:hovered?tokens.textPrimary:tokens.textSecondary})})}),/*#__PURE__*/_jsx(\"div\",{style:{fontFamily:tokens.fontUI,...tokens.type.Body1,color:tokens.textSecondary,fontWeight:500},children:\"Bezi\"}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",gap:10,alignItems:\"center\"},children:[showToggles&&/*#__PURE__*/_jsx(\"div\",{...onToggleThread?threadHoverProps:{},onClick:onToggleThread,title:onToggleThread?threadOpen?\"Hide thread\":\"Show thread\":undefined,style:{display:\"flex\",alignItems:\"center\",justifyContent:\"center\",width:24,height:24,borderRadius:tokens.radiusButton,background:onToggleThread&&threadHovered?tokens.whiteAlpha08:\"transparent\",cursor:onToggleThread?\"pointer\":\"default\",transition:\"background 120ms ease\"},children:/*#__PURE__*/_jsx(Icon,{name:onToggleThread&&threadOpen?\"expandWindow\":\"minimizeWindowRight\",size:tokens.iconSize.lg,color:onToggleThread&&threadHovered?tokens.textPrimary:tokens.textSecondary})}),/*#__PURE__*/_jsx(Icon,{name:\"settings\",size:tokens.iconSize.md})]})]});};// Workspace icon shown in the sidebar header. Set to an image URL to swap the\n// gradient square for a picture; leave empty (\"\") to keep the gradient.\nconst WORKSPACE_ICON_IMAGE=\"https://framerusercontent.com/images/QnX1RPELy0Nfy3bUmQZ6HznsEI.png?width=104&height=104\";// Member avatars shown in the pile on the home AccountCard. Add a `src` to any\n// entry to swap its color for an image.\nconst MEMBER_AVATARS=[{color:tokens.avatars[0],src:\"https://framerusercontent.com/images/yFrIBZTaS5mKQ0IddyRwXOjxuw.png?width=104&height=104\"},{color:tokens.avatars[1],src:\"https://framerusercontent.com/images/g2iVn1912mf5HTo0I6G55PK45E.png?width=104&height=104\"},{color:tokens.avatars[2],src:\"https://framerusercontent.com/images/cYfeqaDCHPb8vxf7Pg71yRI8Dk.png?width=104&height=104\"}];// ---------- sidebar ----------\nconst SectionDivider=()=>/*#__PURE__*/_jsx(\"div\",{style:{height:1,background:tokens.borderSoft,margin:\"4px 12px\"}});const SidebarSection=({label,children})=>/*#__PURE__*/_jsxs(\"div\",{style:{margin:\"0 4px\"},children:[label&&/*#__PURE__*/_jsx(\"div\",{style:{...tokens.type.Caption,color:tokens.textSecondary,fontWeight:500,padding:\"4px 12px\",letterSpacing:.2},children:label}),children]});const SidebarItem=({icon,label,active=false,onClick})=>{const[hovered,setHovered]=React.useState(false);const interactive=!!onClick;const bg=active?tokens.bgSurface3:hovered&&interactive?tokens.bgSurface2:\"transparent\";return /*#__PURE__*/_jsxs(\"div\",{onClick:onClick,onMouseEnter:interactive?()=>setHovered(true):undefined,onMouseLeave:interactive?()=>setHovered(false):undefined,style:{display:\"flex\",alignItems:\"center\",gap:8,padding:\"6px 6px\",margin:\"0px 4px 2px 4px\",borderRadius:6,background:bg,cursor:interactive?\"pointer\":\"default\",minWidth:0},children:[/*#__PURE__*/_jsx(Icon,{name:icon,size:tokens.iconSize.md}),/*#__PURE__*/_jsx(\"span\",{style:{...tokens.type.Body1,color:tokens.textPrimary,fontFamily:tokens.fontUI,flex:1,minWidth:0,...ellipsis},children:label})]});};const Toggle=({on})=>/*#__PURE__*/_jsx(\"div\",{style:{width:22,height:12,borderRadius:999,background:on?tokens.toggleOn:tokens.toggleOff,position:\"relative\",transition:\"background 0.2s\"},children:/*#__PURE__*/_jsx(\"div\",{style:{width:8,height:8,borderRadius:999,background:tokens.white,position:\"absolute\",top:2,left:on?12:2,transition:\"left 0.2s\"}})});const ConnectionRow=({label,on,icon=\"unity\"})=>/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",justifyContent:\"space-between\",padding:\"5px 12px\",margin:\"0 6px\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",gap:8},children:[/*#__PURE__*/_jsx(Icon,{name:icon,size:tokens.iconSize.md}),/*#__PURE__*/_jsx(\"span\",{style:{...tokens.type.Body1,color:tokens.textPrimary,fontFamily:tokens.fontUI},children:label})]}),/*#__PURE__*/_jsx(Toggle,{on:on})]});// Built-in (placeholder) connections. A wrapper that injects its own content\n// bundle supplies its own connections; this list backs Hero when standalone and\n// the demos that still live in this file.\nconst CONNECTIONS=[{label:\"Sample Project\",icon:\"unity\",on:true},{label:\"Assets\",icon:\"folder\",on:false}];const EMPTY_RUNTIME_CONTENT={pageContent:{},connections:[]};const BeziContentContext=/*#__PURE__*/React.createContext(EMPTY_RUNTIME_CONTENT);const useBeziContent=()=>React.useContext(BeziContentContext);const PAGES_DB=[{label:\"Overview\",icon:\"page\",body:[\"# Overview\",\"\",\"Placeholder page for previewing the standalone Hero engine. Real\",\"page content is supplied per demo through the injected content\",\"bundle (see each Bezi wrapper's own `content` prop).\"].join(\"\\n\")},{label:\"Notes\",icon:\"folder\"}];// Page content, demo scripts, plan pages, and viewport media are all derived\n// from the active content bundle inside Hero (see deriveDemoMaps /\n// derivePageContent). The deep-tree readers get page content + connections via\n// <BeziContentContext>.\nconst Sidebar=({plans,onSelectPlan,activePage,onSelectPage,pages=[],workspaceName=\"DragonCore\",connections=[],lockInteractions=false,showConnections=false,floating=false})=>/*#__PURE__*/_jsxs(\"div\",{style:{width:tokens.layout.sidebarWidth,background:tokens.bgSurface1,display:\"flex\",flexDirection:\"column\",flexShrink:0,paddingTop:10,...floating?{border:`1px solid ${tokens.border}`,borderRadius:tokens.radiusOuter,boxShadow:tokens.shadow.panel,overflow:\"hidden\"}:{borderRight:`1px solid ${tokens.borderSoft}`}},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",gap:8,padding:\"8px 8px\",margin:\"0 6px 2px 6px\",borderRadius:6,border:`2px solid ${tokens.bgSurface2}`,background:tokens.bgSurface1},children:[WORKSPACE_ICON_IMAGE?/*#__PURE__*/_jsx(\"img\",{src:WORKSPACE_ICON_IMAGE,alt:\"\",style:{width:16,height:16,borderRadius:4,objectFit:\"cover\",flexShrink:0}}):/*#__PURE__*/_jsx(\"div\",{style:{width:16,height:16,borderRadius:4,flexShrink:0,background:`linear-gradient(135deg, ${tokens.brand.orange}, ${tokens.brand.pink})`}}),/*#__PURE__*/_jsx(\"span\",{style:{...tokens.type.Caption,color:tokens.textSecondary,fontFamily:tokens.fontUI,flex:1},children:workspaceName}),/*#__PURE__*/_jsx(Icon,{name:\"chevDown\",size:tokens.iconSize.sm})]}),/*#__PURE__*/_jsxs(SidebarSection,{children:[/*#__PURE__*/_jsx(SidebarItem,{icon:\"home\",label:\"Home\",active:activePage===null,onClick:lockInteractions?undefined:()=>onSelectPage(null)}),/*#__PURE__*/_jsx(SidebarItem,{icon:\"rules\",label:\"Your Rules\"})]}),/*#__PURE__*/_jsx(SectionDivider,{}),/*#__PURE__*/_jsx(SidebarSection,{label:\"Plans\",children:plans.map(key=>/*#__PURE__*/_jsx(SidebarItem,{icon:\"planningMode\",label:key,active:activePage===key,// Locked: no plan is selectable — every item renders inert\n        // (no onClick). The active plan stays visually selected via\n        // `active`, it just can't be clicked.\n        onClick:lockInteractions?undefined:()=>onSelectPlan(key)},key))}),/*#__PURE__*/_jsx(SectionDivider,{}),/*#__PURE__*/_jsx(SidebarSection,{label:\"Pages\",children:pages.map(page=>/*#__PURE__*/_jsx(SidebarItem,{icon:page.icon,label:page.label,active:page.icon===\"page\"&&activePage===page.label,// Folders are static grouping labels — no content, not\n        // openable (no onClick means SidebarItem renders inert).\n        // When locked, pages are inert too.\n        onClick:page.icon===\"page\"&&!lockInteractions?()=>onSelectPage(page.label):undefined},page.label))}),/*#__PURE__*/_jsx(\"div\",{style:{flex:1}}),showConnections&&/*#__PURE__*/_jsxs(\"div\",{style:{borderTop:`1px solid ${tokens.borderSoft}`,padding:\"8px 0\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",alignItems:\"center\",padding:\"4px 12px\"},children:/*#__PURE__*/_jsx(\"span\",{style:{...tokens.type.Caption,color:tokens.textSecondary,fontWeight:500,letterSpacing:.2},children:\"Connections\"})}),connections.map(conn=>/*#__PURE__*/_jsx(ConnectionRow,{label:conn.label,on:conn.on,icon:conn.icon},conn.label))]})]});// ---------- main content ----------\n// ---------- workspace type chip ----------\n// Mirrors the in-app WorkspaceTypeChip: white-alpha fill + outline, 16px glyph\n// (lock = private, team = shared) and a terse label.\nconst WorkspaceTypeChip=({variant=\"shared\"})=>{const isShared=variant===\"shared\";return /*#__PURE__*/_jsxs(\"div\",{style:{display:\"inline-flex\",alignItems:\"center\",gap:4,padding:4,borderRadius:tokens.radiusButton,background:tokens.whiteAlpha20,outline:`1px solid ${tokens.whiteAlpha40}`,...tokens.type.Body2,color:tokens.textPrimary,fontFamily:tokens.fontUI},children:[/*#__PURE__*/_jsx(Icon,{name:isShared?\"team\":\"lock\",size:tokens.iconSize.lg,color:tokens.textPrimary}),isShared?\"Shared\":\"Private\"]});};// Overlapping member avatars — mirrors the in-app StyledComponentPile shown on\n// the AccountCard's bottom row.\n// A single avatar bubble: renders the image when the AvatarRef has a `src`,\n// otherwise the solid fallback color. Shared by the member pile and the recent\n// cards so both read from the same avatar database.\nconst Avatar=({avatar,style})=>/*#__PURE__*/_jsx(\"div\",{style:{width:20,height:20,borderRadius:tokens.radiusPill,background:avatar.color,border:`2px solid ${tokens.bgSurface1}`,overflow:\"hidden\",flexShrink:0,...style},children:avatar.src&&/*#__PURE__*/_jsx(\"img\",{src:avatar.src,alt:\"\",style:{width:\"100%\",height:\"100%\",objectFit:\"cover\"}})});const MemberPile=({avatars,extra})=>/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\"},children:[avatars.map((avatar,i)=>/*#__PURE__*/_jsx(Avatar,{avatar:avatar,style:{marginLeft:i===0?0:-8}},i)),extra?/*#__PURE__*/_jsxs(\"div\",{style:{width:20,height:20,borderRadius:tokens.radiusPill,background:tokens.bgSurface3,border:`2px solid ${tokens.bgSurface1}`,marginLeft:-8,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",...tokens.type.Badge,color:tokens.textSecondary,fontFamily:tokens.fontUI},children:[\"+\",extra]}):null]});// Cover image for the home banner (AccountCard). Leave empty to keep the\n// gradient-only cover; paste a public/Framer-hosted URL to show a photo behind\n// the gradient. See the media note in the CONTENT section for how to get a URL.\nconst HOME_COVER_IMAGE=\"https://framerusercontent.com/images/3u7PElXhddKFJ8fIt81mfqJpEc.png?width=1921&height=1018\";// Account header card — aligned with the in-app AccountCard: rounded-2xl\n// surface-1 shell, a cover gradient, a top header band (workspace-type chip +\n// Edit), and a bottom row pinning the workspace title against a member pile.\nconst AccountCard=({workspaceName=\"DragonCore\"})=>/*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",width:\"100%\",height:240,borderRadius:tokens.radiusPage,background:tokens.bgSurface1,overflow:\"hidden\",flexShrink:0},children:[HOME_COVER_IMAGE&&/*#__PURE__*/_jsx(\"img\",{src:HOME_COVER_IMAGE,alt:\"\",style:{position:\"absolute\",inset:0,width:\"100%\",height:\"100%\",objectFit:\"cover\",pointerEvents:\"none\"}}),/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",inset:0,background:tokens.gradient.accountCover,pointerEvents:\"none\"}}),/*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",display:\"flex\",flexDirection:\"column\",height:\"100%\",justifyContent:\"space-between\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",alignItems:\"center\",justifyContent:\"space-between\",padding:\"12px 16px\"},children:/*#__PURE__*/_jsx(WorkspaceTypeChip,{variant:\"shared\"})}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",justifyContent:\"space-between\",gap:12,padding:\"0 16px 16px 16px\"},children:[/*#__PURE__*/_jsx(\"h1\",{style:{...tokens.type.Header2,fontWeight:600,color:tokens.textPrimary,margin:0,fontFamily:tokens.fontUI,letterSpacing:-.3,minWidth:0,...ellipsis},children:workspaceName}),/*#__PURE__*/_jsx(MemberPile,{avatars:MEMBER_AVATARS,extra:3})]})]})]});// Artifact card — aligned with the in-app ArtifactCard: a surface-2 mono header\n// (icon + \"Page\"/\"Plan\"), a surface-1 body holding the title + description, and\n// a footer row with the author avatar + timestamp. Hover lifts each region one\n// surface step (header 2→3, body 1→2), matching the app's group-hover.\nconst RecentCard=({type=\"page\",title,description,updatedAgo,avatar=MEMBER_AVATARS[0],onClick})=>{const[hovered,hoverProps]=useHover();const isPlan=type===\"plan\";return /*#__PURE__*/_jsxs(\"div\",{onClick:onClick,...hoverProps,style:{flex:1,minWidth:0,height:160,display:\"flex\",flexDirection:\"column\",borderRadius:tokens.radiusOuter,overflow:\"hidden\",cursor:onClick?\"pointer\":\"default\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",gap:4,padding:\"8px 12px\",background:hovered?tokens.bgSurface3:tokens.bgSurface2,transition:\"background 150ms ease\"},children:[/*#__PURE__*/_jsx(Icon,{name:isPlan?\"planningMode\":\"page\",size:tokens.iconSize.lg,color:hovered?tokens.textPrimary:tokens.textSecondary}),/*#__PURE__*/_jsx(\"span\",{style:{...tokens.type.Body1,fontFamily:tokens.fontMonoUI,color:hovered?tokens.textPrimary:tokens.textSecondary,transition:\"color 150ms ease\"},children:isPlan?\"Plan\":\"Page\"})]}),/*#__PURE__*/_jsxs(\"div\",{style:{flex:1,display:\"flex\",flexDirection:\"column\",gap:8,padding:\"12px 16px\",background:hovered?tokens.bgSurface2:tokens.bgSurface1,transition:\"background 150ms ease\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{...tokens.type.Header5,fontWeight:500,color:tokens.textPrimary,fontFamily:tokens.fontUI,...clamp(3),wordBreak:\"break-word\"},children:title}),description?/*#__PURE__*/_jsx(\"div\",{style:{...tokens.type.Body1,color:hovered?tokens.textPrimary:tokens.textSecondary,fontFamily:tokens.fontUI,...clamp(2),flex:1,transition:\"color 150ms ease\"},children:description}):/*#__PURE__*/_jsx(\"div\",{style:{flex:1}}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",gap:8},children:[/*#__PURE__*/_jsx(Avatar,{avatar:avatar}),/*#__PURE__*/_jsx(\"span\",{style:{...tokens.type.Body2,color:hovered?tokens.textPrimary:tokens.textTertiary,fontFamily:tokens.fontUI,transition:\"color 150ms ease\"},children:updatedAgo})]})]})]});};// Settings navigation card — aligned with the in-app SettingsNavigationCard as\n// used on the home page: `height=\"xs\"` (80px) HorizontalLayout — a 52px\n// ConnectionLogo on the left, with the mono connection-count metadata + title\n// stacked to its right. The whole card is the click target and lifts\n// surface-1→surface-2 on hover.\nconst SETTINGS_CARD_HEIGHT=68;const SettingsNavigationCard=({icon,title,metadata,onClick})=>{const[hovered,hoverProps]=useHover();return /*#__PURE__*/_jsxs(\"div\",{onClick:onClick,...hoverProps,style:{flex:1,minWidth:0,height:SETTINGS_CARD_HEIGHT,display:\"flex\",alignItems:\"center\",gap:16,padding:16,borderRadius:tokens.radiusOuter,background:hovered?tokens.bgSurface2:tokens.bgSurface1,transition:\"background 150ms ease\",cursor:onClick?\"pointer\":\"default\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{width:36,height:36,borderRadius:tokens.radiusOuter,background:tokens.bgSurface1,border:`1px solid ${tokens.whiteAlpha20}`,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",flexShrink:0},children:/*#__PURE__*/_jsx(Icon,{name:icon,size:tokens.iconSize.card,color:tokens.textPrimary})}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",justifyContent:\"center\",gap:2,minWidth:0,flex:1},children:[/*#__PURE__*/_jsx(\"span\",{style:{...tokens.type.Body2,fontFamily:tokens.fontMonoUI,color:tokens.textTertiary},children:metadata}),/*#__PURE__*/_jsx(\"span\",{style:{...tokens.type.Header5,fontWeight:500,color:tokens.textPrimary,fontFamily:tokens.fontUI,...ellipsis},children:title})]})]});};// Skill card — aligned with the in-app SkillCard: surface-1 shell, a turquoise\n// 24px glyph, a title + clamped description, and a secondary CTA button\n// (white-alpha fill) whose label reflects the install state.\nconst SkillCard=({title,description,state=\"not-installed\",onClick})=>{const[hovered,setHovered]=React.useState(false);const[pressed,setPressed]=React.useState(false);const ctaLabel=state===\"installing\"?\"Installing…\":state===\"installed\"?\"Try in thread\":\"Install\";const ctaBg=pressed?tokens.whiteAlpha20:hovered?tokens.whiteAlpha15:tokens.whiteAlpha10;return /*#__PURE__*/_jsxs(\"div\",{style:{flex:1,minWidth:0,height:168,display:\"flex\",flexDirection:\"column\",gap:8,padding:16,borderRadius:tokens.radiusOuter,background:tokens.bgSurface1},children:[/*#__PURE__*/_jsxs(\"div\",{style:{flex:1,minHeight:0,display:\"flex\",flexDirection:\"column\",alignItems:\"flex-start\",gap:12},children:[/*#__PURE__*/_jsx(\"div\",{style:{width:24,height:24,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",flexShrink:0},children:/*#__PURE__*/_jsx(Icon,{name:\"agent\",size:tokens.iconSize.card,color:tokens.turquoise})}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:4,minWidth:0},children:[/*#__PURE__*/_jsx(\"span\",{style:{...tokens.type.Header5,fontWeight:500,color:tokens.textPrimary,fontFamily:tokens.fontUI},children:title}),/*#__PURE__*/_jsx(\"span\",{style:{...tokens.type.Body1,color:tokens.textSecondary,fontFamily:tokens.fontUI,...clamp(2)},children:description})]})]}),/*#__PURE__*/_jsx(\"div\",{children:/*#__PURE__*/_jsx(\"button\",{onClick:onClick,onMouseEnter:()=>setHovered(true),onMouseLeave:()=>{setHovered(false);setPressed(false);},onMouseDown:()=>setPressed(true),onMouseUp:()=>setPressed(false),style:{height:32,padding:\"0 8px\",borderRadius:tokens.radiusButton,border:\"none\",background:ctaBg,color:tokens.textSecondary,...tokens.type.Body1,fontFamily:tokens.fontUI,cursor:\"default\",whiteSpace:\"nowrap\",transition:\"background 120ms ease\"},children:ctaLabel})})]});};// Section label above each home-page card row.\nconst SectionLabel=({children})=>/*#__PURE__*/_jsx(\"div\",{style:{...tokens.type.Header5,color:tokens.textPrimary,fontFamily:tokens.fontUI,fontWeight:500,marginBottom:12},children:children});const MainArea=({onSelectPage,workspaceName=\"DragonCore\"})=>/*#__PURE__*/_jsxs(\"div\",{style:{flex:1,background:tokens.bgSurface0,padding:\"24px 26px\",display:\"flex\",flexDirection:\"column\",gap:24,overflowY:\"auto\",overflowX:\"hidden\",minWidth:0},children:[/*#__PURE__*/_jsx(AccountCard,{workspaceName:workspaceName}),/*#__PURE__*/_jsxs(\"div\",{children:[/*#__PURE__*/_jsx(SectionLabel,{children:\"Connections\"}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:16},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",gap:16},children:[/*#__PURE__*/_jsx(SettingsNavigationCard,{icon:\"unity\",title:\"Unity Project\",metadata:\"2 Connected\"}),/*#__PURE__*/_jsx(SettingsNavigationCard,{icon:\"folder\",title:\"Local Folders\",metadata:\"1 Connected\"})]}),/*#__PURE__*/_jsx(SettingsNavigationCard,{icon:\"mcp\",title:\"MCPs\",metadata:\"4 Connected\"})]})]}),/*#__PURE__*/_jsxs(\"div\",{children:[/*#__PURE__*/_jsx(SectionLabel,{children:\"Recently updated\"}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",gap:16},children:[/*#__PURE__*/_jsx(RecentCard,{type:\"page\",title:\"Dragon Movement Spec\",updatedAgo:\"30m ago\",avatar:MEMBER_AVATARS[0],onClick:()=>onSelectPage(\"Dragon Movement Spec\")}),/*#__PURE__*/_jsx(RecentCard,{type:\"page\",title:\"To-do List\",updatedAgo:\"2h ago\",avatar:MEMBER_AVATARS[1],onClick:()=>onSelectPage(\"To-do List\")})]})]})]});// ---------- thread panel ----------\n// Shared top-bar styling used by both the thread header and the canvas tab bar,\n// so the two stay aligned (same height, padding, border, button radius/fill).\nconst topBarStyle={display:\"flex\",alignItems:\"center\",background:tokens.bgSurface2,padding:\"10px 10px\",borderBottom:`1px solid ${tokens.borderSoft}`,flexShrink:0};const topBarButtonBase={display:\"flex\",alignItems:\"center\",gap:6,padding:\"4px 10px\",borderRadius:tokens.radiusButton,border:0,...tokens.type.Body2,fontFamily:tokens.fontUI,transition:\"background 120ms ease, color 120ms ease\"};function InteractiveButton({children,icon,selected=false,onClick,colors,fontFamily}){const[hovered,hoverProps]=useHover();const defaultPalette={default:{bg:tokens.bgSurface3,text:tokens.textSecondary},hover:{bg:tokens.bgSurface4,text:tokens.textPrimary},selected:{bg:tokens.bgSurface4,text:tokens.textPrimary}};const palette=selected?colors?.selected??defaultPalette.selected:hovered?colors?.hover??defaultPalette.hover:colors?.default??defaultPalette.default;const iconOnly=!children;return /*#__PURE__*/_jsxs(\"div\",{onClick:onClick,...hoverProps,style:{...topBarButtonBase,padding:iconOnly?5:topBarButtonBase.padding,justifyContent:iconOnly?\"center\":\"flex-start\",background:palette.bg,color:palette.text,cursor:onClick?\"pointer\":\"default\",fontFamily:fontFamily??topBarButtonBase.fontFamily},children:[icon&&/*#__PURE__*/_jsx(Icon,{name:icon,size:tokens.iconSize.md,color:palette.text}),children]});}function NonInteractiveButton({children,icon,iconRight,bg,color,style}){const resolvedColor=color??tokens.textSecondary;const resolvedBg=bg??tokens.bgSurface3;const iconOnly=!children&&!iconRight;return /*#__PURE__*/_jsxs(\"div\",{style:{...topBarButtonBase,padding:iconOnly?5:topBarButtonBase.padding,justifyContent:iconOnly?\"center\":\"flex-start\",background:resolvedBg,color:resolvedColor,cursor:\"default\",pointerEvents:\"none\",...style},children:[icon&&/*#__PURE__*/_jsx(Icon,{name:icon,size:tokens.iconSize.md,color:resolvedColor}),children,iconRight&&/*#__PURE__*/_jsx(Icon,{name:iconRight,size:tokens.iconSize.md,color:resolvedColor})]});}const ThreadHeader=()=>/*#__PURE__*/_jsxs(\"div\",{style:{...topBarStyle,justifyContent:\"space-between\"},children:[/*#__PURE__*/_jsx(NonInteractiveButton,{icon:\"plus\",children:\"New Thread\"}),/*#__PURE__*/_jsx(NonInteractiveButton,{iconRight:\"chevDown\",children:\"Thread Name\"})]});// Inline @mention / /skill chip inside a prompt, matching the app's MentionPill\n// (packages/styled-ui). Mentions (@ / #) use the blueberry accent, skills (/)\n// use turquoise; nothing else differs. The sigil is part of the label, and the\n// chip inherits the surrounding text size so it sits flush within the prose.\nconst PromptChip=({label,variant,accent})=>/*#__PURE__*/_jsx(\"span\",{style:{display:\"inline-flex\",alignItems:\"center\",background:variant===\"skill\"?tokens.skillChipBg:accent?`${accent}2E`:tokens.mentionChipBg,color:variant===\"skill\"?tokens.turquoise:accent??tokens.blueberry,borderRadius:6,padding:\"1px 3px\",fontWeight:500,fontFamily:tokens.fontUI,whiteSpace:\"nowrap\"},children:label});// A prompt token is a sigil (@ mention, # project, / skill) at a word boundary\n// followed by a name — e.g. `@Dragon.prefab`, `#DemoScene`, `/prototype-this`.\n// The lookbehind keeps a sigil from matching mid-word (URLs, `and/or`, emails).\nconst PROMPT_TOKEN=RegExp(\"(?<=^|\\\\s)([@#/][A-Za-z0-9][\\\\w.-]*)\",\"g\");const CHIP_SHAPE=/^([@#/])[A-Za-z0-9][\\w.-]*$/;// Render a prompt string, swapping @mention / /skill tokens for styled chips\n// while leaving the surrounding prose untouched. Splitting on a capturing group\n// interleaves the matched tokens back into the array, so chips render inline\n// wherever they appear — start, middle, or end of the message. Authoring: just\n// type the sigil-prefixed token in a script's `user` string.\nconst renderPromptText=(text,accent)=>text.split(PROMPT_TOKEN).map((part,index)=>{const match=CHIP_SHAPE.exec(part);if(!match)return /*#__PURE__*/_jsx(React.Fragment,{children:part},index);return /*#__PURE__*/_jsx(PromptChip,{label:part,variant:match[1]===\"/\"?\"skill\":\"mention\",accent:accent},index);});export const UserMessage=({text,mode=\"Agent\",animateIn=false})=>{const bannerPalette=tokens.modes[mode].Sent;return /*#__PURE__*/_jsxs(\"div\",{style:{background:tokens.bgSurface3,borderRadius:8,overflow:\"hidden\",display:\"flex\",flexDirection:\"column\",animation:animateIn?\"bezi-slide-up 360ms cubic-bezier(0.22, 1, 0.36, 1)\":undefined},children:[/*#__PURE__*/_jsx(\"div\",{style:{background:bannerPalette.bg,height:28,display:\"flex\",alignItems:\"center\",justifyContent:\"space-between\",padding:\"8px 12px\"},children:/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",gap:8},children:[/*#__PURE__*/_jsx(Icon,{name:MODE_ICON[mode],size:tokens.iconSize.md,color:bannerPalette.icon,stroke:2}),/*#__PURE__*/_jsxs(\"span\",{style:{...tokens.type.Caption,color:bannerPalette.icon,fontFamily:tokens.fontUI},children:[\"Made in \",mode,\" Mode\"]})]})}),/*#__PURE__*/_jsx(\"div\",{style:{padding:\"16px 8px\"},children:/*#__PURE__*/_jsx(\"div\",{style:{...tokens.type.Body1,color:tokens.textPrimary,fontFamily:tokens.fontUI},children:renderPromptText(text,tokens.modes[mode].Default.bg)})}),/*#__PURE__*/_jsxs(\"div\",{style:{borderTop:`1px solid ${tokens.whiteAlpha10}`,padding:\"8px\",display:\"flex\",justifyContent:\"flex-end\",gap:8},children:[/*#__PURE__*/_jsx(NonInteractiveButton,{icon:\"undo\",bg:tokens.whiteAlpha10,color:tokens.whiteAlpha60,style:{height:20,padding:\"2px 4px\",borderRadius:4},children:\"Restore\"}),/*#__PURE__*/_jsx(NonInteractiveButton,{icon:\"edit\",bg:tokens.whiteAlpha10,color:tokens.whiteAlpha60,style:{height:20,padding:\"2px 4px\",borderRadius:4},children:\"Edit\"})]})]});};// True when a block is a script/action that actually has diff lines to show.\nconst isDiffBlock=block=>(block.kind===\"script\"||block.kind===\"action\")&&!!block.diff&&block.diff.length>0;// Map a diff-carrying block to the CanvasDoc the center canvas renders.\nconst blockToCanvasDoc=block=>({name:block.kind===\"script\"?block.filename:block.title,added:block.added,removed:block.removed,diff:block.diff});// Per-mode icon shown in the banner and the Agent/mode pill.\nconst MODE_ICON={Ask:\"askMode\",Plan:\"planningMode\",Agent:\"agent\"};// Default pins when a script doesn't specify its own.\nconst DEFAULT_PINS=[{icon:\"atSymbol\"},{icon:\"pin\"},{icon:\"code\",label:\"Script Name\",dashed:true}];// Sample diffs for the script/action block demos.\nconst SAMPLE_PLAYER_DIFF=[{kind:\" \",text:\"using UnityEngine;\"},{kind:\" \",text:\"\"},{kind:\" \",text:\"public class PlayerController : MonoBehaviour {\"},{kind:\"-\",text:\"    public float speed = 3f;\"},{kind:\"+\",text:\"    [SerializeField] private float moveSpeed = 5f;\"},{kind:\"+\",text:\"    [SerializeField] private float jumpForce = 7f;\"},{kind:\"+\",text:\"    private Rigidbody rb;\"},{kind:\" \",text:\"\"},{kind:\"+\",text:\"    void Awake() {\"},{kind:\"+\",text:\"        rb = GetComponent<Rigidbody>();\"},{kind:\"+\",text:\"    }\"},{kind:\"+\",text:\"\"},{kind:\" \",text:\"    void Update() {\"},{kind:\"-\",text:'        var x = Input.GetAxis(\"Horizontal\");'},{kind:\"-\",text:'        var z = Input.GetAxis(\"Vertical\");'},{kind:\"-\",text:\"        transform.Translate(new Vector3(x, 0, z) * speed * Time.deltaTime);\"},{kind:\"+\",text:'        float h = Input.GetAxis(\"Horizontal\");'},{kind:\"+\",text:'        float v = Input.GetAxis(\"Vertical\");'},{kind:\"+\",text:\"        Vector3 move = new Vector3(h, 0f, v) * moveSpeed;\"},{kind:\"+\",text:\"        rb.MovePosition(rb.position + move * Time.deltaTime);\"},{kind:\"+\",text:\"\"},{kind:\"+\",text:\"        if (Input.GetKeyDown(KeyCode.Space)) {\"},{kind:\"+\",text:\"            rb.AddForce(Vector3.up * jumpForce, ForceMode.Impulse);\"},{kind:\"+\",text:\"        }\"},{kind:\" \",text:\"    }\"},{kind:\" \",text:\"}\"}];const SAMPLE_CAMERA_DIFF=[{kind:\"+\",text:\"using UnityEngine;\"},{kind:\"+\",text:\"\"},{kind:\"+\",text:\"public class CameraController : MonoBehaviour {\"},{kind:\"+\",text:\"    [SerializeField] private Transform target;\"},{kind:\"+\",text:\"    [SerializeField] private float smoothSpeed = 5f;\"},{kind:\"+\",text:\"    [SerializeField] private Vector3 offset = new Vector3(0, 5f, -8f);\"},{kind:\"+\",text:\"\"},{kind:\"+\",text:\"    void LateUpdate() {\"},{kind:\"+\",text:\"        Vector3 desired = target.position + offset;\"},{kind:\"+\",text:\"        transform.position = Vector3.Lerp(transform.position, desired, smoothSpeed * Time.deltaTime);\"},{kind:\"+\",text:\"        transform.LookAt(target);\"},{kind:\"+\",text:\"    }\"},{kind:\"+\",text:\"}\"}];const SAMPLE_GAMEMANAGER_DIFF=[{kind:\" \",text:\"public class GameManager : MonoBehaviour {\"},{kind:\"-\",text:\"    public static GameManager instance;\"},{kind:\"+\",text:\"    public static GameManager Instance { get; private set; }\"},{kind:\" \",text:\"\"},{kind:\"-\",text:\"    void Start() {\"},{kind:\"-\",text:\"        instance.Init();\"},{kind:\"-\",text:\"    }\"},{kind:\"+\",text:\"    void Awake() {\"},{kind:\"+\",text:\"        if (Instance != null && Instance != this) {\"},{kind:\"+\",text:\"            Destroy(gameObject);\"},{kind:\"+\",text:\"            return;\"},{kind:\"+\",text:\"        }\"},{kind:\"+\",text:\"        Instance = this;\"},{kind:\"+\",text:\"    }\"},{kind:\" \",text:\"}\"}];// SCRIPTS (and PLAN_PAGES / UNITY_MEDIA / DEFAULT_SCRIPT_KEY) are derived from\n// the single DEMOS content model — see the \"CONTENT — demos\" section below.\n// The SAMPLE_*_DIFF consts above are referenced by DEMOS.\n// Fallback duration of Game playback (outro + interactive replay) when the tab\n// has no real <video> (color placeholder) — there's no onEnded to wait on, so\n// we auto-stop after this.\nconst GAME_OUTRO_MS=2600;// When a real clip IS present, playback ends on the video's own onEnded/onError;\n// this is only a safety cap so a clip that never signals can't wedge playback.\n// Keep it comfortably longer than any real Game clip.\nconst GAME_VIDEO_SAFETY_MS=3e4;// Delay between surfacing the Unity window (Game tab) and starting playback, so\n// the window settles in front before the game view begins playing.\nconst GAME_OUTRO_PLAY_DELAY_MS=450;// Safety cap for a demo's intro clip: normally the video's own onEnded/onError\n// hands off to the thread, but if neither fires (slow load, unsupported source)\n// we hand off anyway after this so the demo never stalls on the intro.\nconst INTRO_MAX_MS=2e4;const fadeInStyle={animation:\"bezi-fade-in 280ms ease-out both\"};// Bezi mascot — a round face with two black \"tombstone\" eyes that periodically\n// dart side to side and blink. Two stacked SVG groups so the two animations can\n// run on independent cycles and compose cleanly.\nconst Mascot=({size=16})=>/*#__PURE__*/_jsxs(\"svg\",{width:size,height:size,viewBox:\"0 0 24 24\",xmlns:\"http://www.w3.org/2000/svg\",style:{flexShrink:0},children:[/*#__PURE__*/_jsx(\"circle\",{cx:\"12\",cy:\"12\",r:\"11\",fill:tokens.mascot.body}),/*#__PURE__*/_jsx(\"g\",{className:\"bezi-eyes-look\",children:/*#__PURE__*/_jsxs(\"g\",{className:\"bezi-eyes-blink\",children:[/*#__PURE__*/_jsx(\"path\",{d:\"M6.25 15.5 V10.5 A2.5 2.5 0 0 1 10.75 10 V15.5 Z\",fill:tokens.mascot.eye}),/*#__PURE__*/_jsx(\"path\",{d:\"M12.75 15.5 V10.5 A2.5 2.5 0 0 1 17.25 10 V15.5 Z\",fill:tokens.mascot.eye})]})})]});// Indeterminate ring spinner — used in the tool-approval header while an\n// approved MCP tool is \"executing\" (mirrors the app's Spinner).\nconst Spinner=({size=18})=>/*#__PURE__*/_jsxs(\"svg\",{width:size,height:size,viewBox:\"0 0 24 24\",fill:\"none\",style:{flexShrink:0,animation:\"bezi-spin 0.8s linear infinite\",transformOrigin:\"center\"},children:[/*#__PURE__*/_jsx(\"circle\",{cx:\"12\",cy:\"12\",r:\"9\",stroke:tokens.whiteAlpha20,strokeWidth:\"3\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M12 3a9 9 0 0 1 9 9\",stroke:tokens.white,strokeWidth:\"3\",strokeLinecap:\"round\"})]});const diffIconBtn={display:\"inline-flex\",alignItems:\"center\",justifyContent:\"center\",width:24,height:24,borderRadius:4,background:tokens.whiteAlpha08,border:\"none\",cursor:\"default\",padding:0,flexShrink:0};// Shared base for the tool-approval footer buttons (Accept / Deny). Both are\n// filled; the two variants differ only in fill + text color, and each shifts its\n// fill on hover / press, mirroring the app's StyledLabelButton (xs) primary and\n// secondary variants (bg-primary/white-70/white-50 and bg-secondary/hovered/active).\nconst approvalBtnBase={...tokens.type.Body2,fontFamily:tokens.fontUI,fontWeight:600,lineHeight:\"20px\",padding:\"2px 12px\",borderRadius:4,border:\"none\",cursor:\"pointer\"};// Per-variant fills keyed by interaction state (default / hover / pressed), plus\n// the text color. `pressed` is the \"selected\"/active state.\nconst APPROVAL_BTN_COLORS={primary:{default:tokens.white,hover:tokens.whiteAlpha70,pressed:tokens.whiteAlpha50,text:\"#000000\"},secondary:{default:tokens.whiteAlpha10,hover:tokens.whiteAlpha20,pressed:tokens.whiteAlpha15,text:tokens.textPrimary}};const ApprovalButton=({variant,onPress,children})=>{const[hovered,setHovered]=React.useState(false);const[pressed,setPressed]=React.useState(false);const colors=APPROVAL_BTN_COLORS[variant];const background=pressed?colors.pressed:hovered?colors.hover:colors.default;return /*#__PURE__*/_jsx(\"button\",{onClick:e=>{e.stopPropagation();onPress?.();},onMouseEnter:()=>setHovered(true),onMouseLeave:()=>{setHovered(false);setPressed(false);},onMouseDown:()=>setPressed(true),onMouseUp:()=>setPressed(false),style:{...approvalBtnBase,background,color:colors.text,transition:\"background 120ms ease\"},children:children});};// Unified diff body with old/new line-number gutters, mirroring the app's\n// Monaco diff editor (renderSideBySide: false). Line numbers are tracked across\n// the map: added lines advance only the new column, removed only the old.\nconst gutterCell={width:32,textAlign:\"right\",paddingRight:8,color:tokens.textMuted,opacity:.7,flexShrink:0,userSelect:\"none\"};// Left inset for diff rows so line numbers aren't jammed against the edge. The\n// row background still reaches the container edge (padding is inside the box).\nconst DIFF_PAD_LEFT=4;const DiffBody=({lines})=>{let oldNo=0;let newNo=0;return /*#__PURE__*/_jsx(\"div\",{style:{fontFamily:tokens.fontMono,fontSize:11,lineHeight:\"18px\"},children:lines.map((line,i)=>{// Collapsed-region marker: a git-style hunk separator. Jump the\n// gutter counters to where the next hunk resumes, then render a\n// muted divider showing the range instead of a code row.\nif(line.kind===\"gap\"){if(line.oldStart!=null)oldNo=line.oldStart-1;if(line.newStart!=null)newNo=line.newStart-1;const range=line.oldStart!=null&&line.newStart!=null?`@@ -${line.oldStart} +${line.newStart} @@`:\"\";return /*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",paddingLeft:DIFF_PAD_LEFT,background:tokens.bgSurface2,color:tokens.textMuted,userSelect:\"none\"},children:[/*#__PURE__*/_jsx(\"span\",{style:{width:64,textAlign:\"center\",flexShrink:0},children:\"⋯\"}),/*#__PURE__*/_jsx(\"span\",{children:range})]},i);}const isAdd=line.kind===\"+\";const isRem=line.kind===\"-\";if(isAdd)newNo+=1;else if(isRem)oldNo+=1;else{oldNo+=1;newNo+=1;}const bg=isAdd?tokens.diff.addedBg:isRem?tokens.diff.removedBg:\"transparent\";const symColor=isAdd?tokens.diff.addedText:isRem?tokens.diff.removedText:tokens.textMuted;// Pull the line's leading indentation out into padding so wrapped\n// rows hang at the same indent as the line they belong to, rather\n// than resetting to column 0. `ch` matches the monospace grid.\nconst indentLength=line.text.length-line.text.trimStart().length;const lineBody=line.text.slice(indentLength);return /*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",// Top-align so the gutters + symbol stay on the\n// first row when a long line wraps to several rows.\nalignItems:\"flex-start\",background:bg,// Left breathing room; the background still bleeds to\n// the edge since padding sits inside the row box.\npaddingLeft:DIFF_PAD_LEFT,paddingRight:16,color:isAdd||isRem?tokens.textPrimary:tokens.textSecondary},children:[/*#__PURE__*/_jsx(\"span\",{style:gutterCell,children:isAdd?\"\":oldNo}),/*#__PURE__*/_jsx(\"span\",{style:gutterCell,children:isRem?\"\":newNo}),/*#__PURE__*/_jsx(\"span\",{style:{width:18,textAlign:\"center\",color:symColor,flexShrink:0,userSelect:\"none\"},children:line.kind===\" \"?\"\":line.kind}),/*#__PURE__*/_jsx(\"span\",{style:{flex:1,minWidth:0,paddingLeft:`${indentLength}ch`,whiteSpace:\"pre-wrap\",overflowWrap:\"anywhere\"},children:lineBody})]},i);})});};// The +added / -removed mono counts shown on action/script cards and the canvas\n// pill. Colors are overridable so the light canvas pill can use its own palette.\nconst DiffCounts=({added,removed,addColor=tokens.diff.addedText,removeColor=tokens.diff.removedText})=>/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsxs(\"span\",{style:{...tokens.type.Body1,color:addColor,fontFamily:tokens.fontMono},children:[\"+\",added]}),/*#__PURE__*/_jsxs(\"span\",{style:{...tokens.type.Body1,color:removeColor,fontFamily:tokens.fontMono,marginRight:4},children:[\"-\",removed]})]});// Delay before a live-revealed clarify block auto-selects Bezi's suggested\n// option, so the selection reads as a deliberate beat rather than snapping in.\nconst CLARIFY_SELECT_MS=900;// The option rows of a `clarify` block. Split out because it needs its own\n// state: when revealed live (`complete=false`) it starts unselected and\n// auto-selects `selected` after a beat; a static/past turn (`complete=true`)\n// renders already selected.\nconst ClarifyOptions=({question,options,selected,complete})=>{const[sel,setSel]=React.useState(complete&&selected!=null?selected:null);React.useEffect(()=>{if(complete){setSel(selected??null);return;}if(selected==null)return;const t=setTimeout(()=>setSel(selected),CLARIFY_SELECT_MS);return()=>clearTimeout(t);},[complete,selected]);const labels=[\"A\",\"B\",\"C\",\"D\",\"E\",\"F\"];return /*#__PURE__*/_jsxs(\"div\",{style:{border:`1px solid ${tokens.whiteAlpha10}`,borderRadius:tokens.radiusOuter,padding:14,display:\"flex\",flexDirection:\"column\",gap:12},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",gap:7},children:[/*#__PURE__*/_jsxs(\"svg\",{width:\"15\",height:\"15\",viewBox:\"0 0 16 16\",fill:\"none\",children:[/*#__PURE__*/_jsx(\"circle\",{cx:\"8\",cy:\"8\",r:\"6.4\",stroke:tokens.textTertiary,strokeWidth:\"1.1\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M6.2 6.3c0-1 .8-1.7 1.85-1.7 1 0 1.8.6 1.8 1.55 0 .8-.5 1.2-1.15 1.55-.6.32-.9.6-.9 1.2v.25\",stroke:tokens.textTertiary,strokeWidth:\"1.1\",strokeLinecap:\"round\"}),/*#__PURE__*/_jsx(\"circle\",{cx:\"7.8\",cy:\"11.2\",r:\"0.72\",fill:tokens.textTertiary})]}),/*#__PURE__*/_jsx(\"span\",{style:{...tokens.type.Body1,fontWeight:600,color:tokens.textSecondary,fontFamily:tokens.fontUI},children:\"Clarifying Questions\"})]}),/*#__PURE__*/_jsxs(\"div\",{style:{...tokens.type.Header5,color:tokens.textPrimary,fontFamily:tokens.fontUI},children:[\"1. \",question]}),/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:6},children:options.map((option,i)=>{const isSelected=sel===i;return /*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",gap:10,padding:\"8px 10px\",borderRadius:tokens.radiusOuter,background:isSelected?tokens.bgSurface4:tokens.bgSurface2,// Outline each option so the choices read as\n// distinct rows; the selected one brightens.\nborder:`1px solid ${isSelected?tokens.whiteAlpha30:tokens.whiteAlpha10}`,transition:\"background 0.18s ease, border-color 0.18s ease\"},children:[/*#__PURE__*/_jsx(\"span\",{style:{width:22,height:22,flex:\"none\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",borderRadius:tokens.radiusButton+2,...tokens.type.Body2,fontWeight:600,fontFamily:tokens.fontUI,background:isSelected?tokens.white:tokens.whiteAlpha10,color:isSelected?\"#000\":tokens.whiteAlpha80,transition:\"background 0.18s ease, color 0.18s ease\"},children:labels[i]}),/*#__PURE__*/_jsx(\"span\",{style:{flex:1,...tokens.type.Header5,color:isSelected?tokens.textPrimary:tokens.whiteAlpha80,fontFamily:tokens.fontUI},children:option}),/*#__PURE__*/_jsx(\"span\",{style:{flex:\"none\",color:isSelected?tokens.textPrimary:tokens.whiteAlpha40,transition:\"color 0.18s ease\"},children:/*#__PURE__*/_jsxs(\"svg\",{width:\"16\",height:\"16\",viewBox:\"0 0 16 16\",fill:\"none\",children:[/*#__PURE__*/_jsx(\"circle\",{cx:\"8\",cy:\"8\",r:\"6.4\",stroke:\"currentColor\",strokeWidth:\"1.4\"}),isSelected&&/*#__PURE__*/_jsx(\"circle\",{cx:\"8\",cy:\"8\",r:\"3.4\",fill:\"currentColor\"})]})})]},option);})})]});};// Cadence at which a live-revealed steps block checks its rows off.\nconst STEPS_REVEAL_MS=650;// One glyph for a steps row — mirrors the Agent execution-log icons.\nconst StepGlyph=({kind,color})=>{if(kind===\"cube\")return /*#__PURE__*/_jsx(\"svg\",{width:\"14\",height:\"14\",viewBox:\"0 0 16 16\",fill:\"none\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M8 1.6l5.4 3.1v6.6L8 14.4l-5.4-3.1V4.7L8 1.6zM8 1.6v6.4m0 0l5.4-3.2M8 8L2.6 4.8\",stroke:color,strokeWidth:\"1.2\",strokeLinejoin:\"round\",strokeLinecap:\"round\"})});if(kind===\"components\")return /*#__PURE__*/_jsxs(\"svg\",{width:\"14\",height:\"14\",viewBox:\"0 0 16 16\",fill:\"none\",children:[/*#__PURE__*/_jsx(\"rect\",{x:\"2.2\",y:\"2.2\",width:\"5\",height:\"5\",rx:\"1\",stroke:color,strokeWidth:\"1.2\"}),/*#__PURE__*/_jsx(\"rect\",{x:\"8.8\",y:\"2.2\",width:\"5\",height:\"5\",rx:\"1\",stroke:color,strokeWidth:\"1.2\"}),/*#__PURE__*/_jsx(\"rect\",{x:\"2.2\",y:\"8.8\",width:\"5\",height:\"5\",rx:\"1\",stroke:color,strokeWidth:\"1.2\"}),/*#__PURE__*/_jsx(\"rect\",{x:\"8.8\",y:\"8.8\",width:\"5\",height:\"5\",rx:\"1\",stroke:color,strokeWidth:\"1.2\"})]});return /*#__PURE__*/_jsx(\"svg\",{width:\"14\",height:\"14\",viewBox:\"0 0 16 16\",fill:\"none\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M6.7 4.7L3.4 8l3.3 3.3-.7.7L2 8l4-4 .7.7zM14 8l-4 4-.7-.7L12.6 8 9.3 4.7l.7-.7 4 4z\",fill:color})});};// The Agent-mode execution log — a task header over step rows. Split out for\n// its own state: revealed live (`complete=false`) the rows check off one at a\n// time; a static/past turn (`complete=true`) renders every row done.\nconst StepsCard=({task,steps,complete})=>{const[done,setDone]=React.useState(complete?steps.length:0);React.useEffect(()=>{if(complete)return;let i=0;let timer;const tick=()=>{i+=1;setDone(i);if(i<steps.length)timer=setTimeout(tick,STEPS_REVEAL_MS);};timer=setTimeout(tick,STEPS_REVEAL_MS);return()=>clearTimeout(timer);// eslint-disable-next-line react-hooks/exhaustive-deps\n},[]);const finished=done>=steps.length;return /*#__PURE__*/_jsxs(\"div\",{style:{border:`1px solid ${tokens.border}`,borderRadius:tokens.radiusOuter,overflow:\"hidden\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",gap:8,padding:\"9px 12px\",background:tokens.gray700},children:[/*#__PURE__*/_jsx(Icon,{name:\"agent\",size:tokens.iconSize.lg,color:tokens.textPrimary}),/*#__PURE__*/_jsx(\"span\",{style:{flex:1,...tokens.type.Body1,fontWeight:600,color:tokens.textPrimary,fontFamily:tokens.fontUI,...ellipsis},children:task}),finished?/*#__PURE__*/_jsxs(\"span\",{style:{display:\"inline-flex\",alignItems:\"center\",gap:5,...tokens.type.Body2,fontFamily:tokens.fontMono,color:tokens.diff.addedText},children:[\"+\",steps.length,/*#__PURE__*/_jsx(Icon,{name:\"check\",size:tokens.iconSize.md,color:tokens.diff.addedText})]}):/*#__PURE__*/_jsx(\"span\",{style:{...tokens.type.Body2,color:tokens.textMuted,fontFamily:tokens.fontUI},children:\"Working…\"})]}),/*#__PURE__*/_jsx(\"div\",{style:{background:tokens.bgSurface0,padding:\"6px 12px 8px\"},children:steps.map((step,i)=>{const isDone=i<done;const isActive=i===done&&!finished;if(!isDone&&!isActive)return /*#__PURE__*/_jsx(\"div\",{style:{height:0}},step.label);return /*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",gap:9,padding:\"7px 0\",borderTop:i===0?\"none\":`1px solid ${tokens.bgSurface3}`,opacity:isActive?.85:1},children:[/*#__PURE__*/_jsx(\"span\",{style:{width:14,height:14,flex:\"none\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\"},children:isDone?/*#__PURE__*/_jsx(Icon,{name:\"check\",size:tokens.iconSize.md,color:tokens.diff.addedText}):/*#__PURE__*/_jsx(\"span\",{style:{width:13,height:13,borderRadius:\"50%\",border:`1.6px solid ${tokens.whiteAlpha20}`,borderTopColor:tokens.agentLight,animation:\"bezi-spin 0.7s linear infinite\"}})}),step.icon&&/*#__PURE__*/_jsx(\"span\",{style:{flex:\"none\",display:\"flex\",alignItems:\"center\",color:tokens.textMuted},children:/*#__PURE__*/_jsx(StepGlyph,{kind:step.icon,color:tokens.textMuted})}),/*#__PURE__*/_jsx(\"span\",{style:{...tokens.type.Header5,fontWeight:600,color:tokens.textPrimary,fontFamily:tokens.fontUI},children:step.label}),step.detail&&/*#__PURE__*/_jsx(\"span\",{style:{...tokens.type.Body1,color:tokens.textMuted,fontFamily:tokens.fontMono,...ellipsis},children:step.detail})]},step.label);})})]});};const AgentBlockView=({block,displayText,complete=false,animate=true,onSelectPage,onOpenAllScripts,approvalState,onApprovalDecision})=>{// Only apply the fade-in animation when the block is being revealed live.\n// Past/static turns mount with `animate=false` so blocks just appear at\n// their final state — otherwise the response would briefly flash to empty\n// each time a streaming turn is archived as a past turn.\nconst fade=animate?fadeInStyle:undefined;// Page-content lookup for `page` blocks — from the active content bundle.\nconst{pageContent}=useBeziContent();switch(block.kind){case\"status\":{const label=complete&&block.doneText?block.doneText:block.text;return /*#__PURE__*/_jsx(\"div\",{style:fade,children:/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",gap:8,...tokens.type.Body2,color:tokens.textSecondary,fontFamily:tokens.fontUI},children:[!complete&&/*#__PURE__*/_jsx(Mascot,{size:20}),label]})});}case\"heading\":return /*#__PURE__*/_jsx(\"div\",{style:{...tokens.type.Header4,fontWeight:600,color:tokens.textPrimary,fontFamily:tokens.fontUI,marginTop:2,...fade},children:block.text});case\"paragraph\":return /*#__PURE__*/_jsx(\"div\",{style:{...tokens.type.Body1,color:block.muted?tokens.textMuted:tokens.textPrimary,fontFamily:tokens.fontUI,...block.typewriter?{}:fade},children:displayText!=null?renderInline(displayText):block.richText??renderInline(block.text)});case\"list\":return /*#__PURE__*/_jsx(\"ul\",{style:{margin:\"6px 0 0\",paddingLeft:18,...tokens.type.Body1,color:block.muted?tokens.textMuted:tokens.textPrimary,fontFamily:tokens.fontUI,...fade},children:block.items.map((item,i)=>/*#__PURE__*/_jsx(\"li\",{children:renderInline(item)},i))});case\"stepHeading\":return /*#__PURE__*/_jsxs(\"div\",{style:{...tokens.type.Body1,color:block.muted?tokens.textMuted:tokens.textPrimary,fontFamily:tokens.fontUI,marginTop:2,...fade},children:[/*#__PURE__*/_jsxs(\"span\",{style:{fontWeight:700},children:[\"Step \",block.step]}),/*#__PURE__*/_jsxs(\"span\",{children:[\" - \",block.title]})]});case\"page\":{// Only open if the referenced page has content in the active\n// bundle — keeps the card inert for titles with no real page.\nconst opensPage=block.title in pageContent;return /*#__PURE__*/_jsxs(\"div\",{onClick:opensPage?()=>onSelectPage?.(block.title):undefined,style:{display:\"flex\",alignItems:\"center\",justifyContent:\"space-between\",gap:8,background:tokens.bgSurface3,border:`1px solid ${tokens.borderSoft}`,borderRadius:8,padding:\"10px 12px\",cursor:opensPage?\"pointer\":\"default\",opacity:block.muted?.5:1,...fade},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",gap:10,minWidth:0},children:[/*#__PURE__*/_jsx(Icon,{name:\"page\",size:tokens.iconSize.lg,color:tokens.textPrimary}),/*#__PURE__*/_jsx(\"span\",{style:{...tokens.type.Body1,color:tokens.textPrimary,fontWeight:600,fontFamily:tokens.fontUI,...ellipsis},children:block.title}),block.edited&&/*#__PURE__*/_jsx(\"span\",{style:{...tokens.type.Body1,color:tokens.textMuted,fontFamily:tokens.fontUI,flexShrink:0},children:\"(Edited)\"})]}),/*#__PURE__*/_jsx(Icon,{name:\"externalLink\",size:tokens.iconSize.lg,color:tokens.textSecondary})]});}case\"script\":case\"action\":{const label=block.kind===\"script\"?block.filename:block.title;// Compact launcher — matches the app, where the thread card opens\n// the full diff in the center canvas rather than showing it inline.\nconst openCanvas=isDiffBlock(block)?()=>onOpenAllScripts?.(blockToCanvasDoc(block)):undefined;return /*#__PURE__*/_jsxs(\"div\",{onClick:openCanvas,style:{background:tokens.bgSurface3,border:`1px solid ${tokens.borderSoft}`,borderRadius:8,opacity:block.muted?.5:1,display:\"flex\",alignItems:\"center\",justifyContent:\"space-between\",gap:8,padding:\"8px 8px 8px 12px\",cursor:openCanvas?\"pointer\":\"default\",...fade},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",gap:10,minWidth:0},children:[/*#__PURE__*/_jsx(Icon,{name:\"hashCube\",size:tokens.iconSize.lg,color:tokens.textPrimary}),/*#__PURE__*/_jsx(\"span\",{style:{...tokens.type.Body1,color:tokens.textPrimary,fontWeight:600,fontFamily:tokens.fontUI,...ellipsis},children:label})]}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",gap:6,flexShrink:0},children:[/*#__PURE__*/_jsx(DiffCounts,{added:block.added,removed:block.removed}),/*#__PURE__*/_jsx(\"button\",{style:diffIconBtn,onClick:e=>e.stopPropagation(),children:/*#__PURE__*/_jsx(Icon,{name:\"check\",size:tokens.iconSize.md,color:tokens.textPrimary})}),/*#__PURE__*/_jsx(\"button\",{style:diffIconBtn,onClick:e=>e.stopPropagation(),children:/*#__PURE__*/_jsx(Icon,{name:\"undo\",size:tokens.iconSize.md,color:tokens.textPrimary})})]})]});}case\"actions\":{return /*#__PURE__*/_jsxs(\"div\",{style:{background:tokens.bgSurface0,border:`1px solid ${tokens.borderSoft}`,borderRadius:tokens.radiusOuter,overflow:\"hidden\",opacity:block.muted?.5:1,...fade},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",justifyContent:\"space-between\",gap:8,background:tokens.gray700,padding:\"8px 8px 8px 12px\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",gap:8,minWidth:0},children:[/*#__PURE__*/_jsx(Icon,{name:\"agent\",size:tokens.iconSize.lg,color:tokens.textPrimary}),/*#__PURE__*/_jsx(\"span\",{style:{...tokens.type.Body1,color:tokens.textPrimary,fontWeight:600,fontFamily:tokens.fontUI,...ellipsis},children:block.title})]}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",gap:6,flexShrink:0},children:[/*#__PURE__*/_jsxs(\"span\",{style:{...tokens.type.Body1,color:tokens.textPrimary,fontFamily:tokens.fontMono,marginRight:2},children:[\"+\",block.count]}),/*#__PURE__*/_jsx(\"button\",{style:diffIconBtn,onClick:e=>e.stopPropagation(),children:/*#__PURE__*/_jsx(Icon,{name:\"check\",size:tokens.iconSize.md,color:tokens.textPrimary})}),/*#__PURE__*/_jsx(\"button\",{style:diffIconBtn,onClick:e=>e.stopPropagation(),children:/*#__PURE__*/_jsx(Icon,{name:\"undo\",size:tokens.iconSize.md,color:tokens.textPrimary})})]})]}),/*#__PURE__*/_jsx(\"div\",{className:\"bezi-scroll\",style:{display:\"flex\",flexDirection:\"column\",gap:8,padding:\"8px 16px 8px 8px\",maxHeight:160,overflowY:\"auto\"},children:block.tools.map((tool,toolIndex)=>/*#__PURE__*/_jsxs(React.Fragment,{children:[toolIndex>0&&/*#__PURE__*/_jsx(\"div\",{style:{height:1,background:tokens.whiteAlpha20}}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",gap:8,padding:4,minWidth:0},children:[/*#__PURE__*/_jsx(Icon,{name:\"prefab\",size:tokens.iconSize.lg,color:tokens.textPrimary}),/*#__PURE__*/_jsx(\"span\",{style:{...tokens.type.Body1,color:tokens.textPrimary,fontWeight:600,fontFamily:tokens.fontUI,...ellipsis},children:tool.title})]}),/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",flexDirection:\"column\",paddingLeft:24},children:tool.properties.map((property,propertyIndex)=>/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",gap:16,minHeight:24,padding:4},children:[/*#__PURE__*/_jsx(\"span\",{style:{...tokens.type.Body1,color:tokens.textTertiary,fontFamily:tokens.fontUI,// Size to the label's\n        // content and never\n        // shrink, so the value\n        // span (flex: 1) always\n        // fills the exact\n        // remaining width and\n        // right-aligns to a\n        // single, consistent\n        // edge. A fixed width\n        // here fought the\n        // value's flex-grow and\n        // made the right edge\n        // wander.\n        flexShrink:0,// Preserve leading\n        // spaces that indent\n        // labels into a tree;\n        // nowrap alone still\n        // collapses whitespace\n        // runs.\n        whiteSpace:\"pre\"},children:property.label}),typeof property.value===\"boolean\"?/*#__PURE__*/_jsx(\"span\",{style:{width:18,height:18,borderRadius:2,border:`1px solid ${tokens.whiteAlpha20}`,display:\"inline-flex\",alignItems:\"center\",justifyContent:\"center\",flexShrink:0,// Push to the\n        // right edge so\n        // the toggle lines\n        // up with the\n        // right-aligned\n        // text values.\n        marginLeft:\"auto\",background:property.value?tokens.toggleOn:\"transparent\"},children:property.value&&/*#__PURE__*/_jsx(Icon,{name:\"check\",size:12,color:tokens.bgSurface0})}):/*#__PURE__*/_jsx(\"span\",{style:{...tokens.type.Body1,color:tokens.textTertiary,fontFamily:tokens.fontUI,textAlign:\"right\",// Fill the row's\n        // remaining width\n        // so textAlign:\n        // right lands the\n        // value flush to\n        // the right edge\n        // (minWidth:0 lets\n        // it truncate).\n        flex:1,minWidth:0,...ellipsis},children:property.value})]},propertyIndex))})]})]},toolIndex))})]});}case\"image\":{return /*#__PURE__*/_jsxs(\"figure\",{style:{margin:0,display:\"flex\",flexDirection:\"column\",gap:6,opacity:block.muted?.5:1,...fade},children:[/*#__PURE__*/_jsx(\"img\",{src:block.src,alt:block.alt??\"\",style:{display:\"block\",width:\"100%\",maxWidth:block.maxWidth??\"100%\",height:block.height??\"auto\",objectFit:block.height?\"cover\":undefined,borderRadius:tokens.radiusOuter,border:`1px solid ${tokens.whiteAlpha15}`}}),block.caption&&/*#__PURE__*/_jsx(\"figcaption\",{style:{...tokens.type.Body2,color:tokens.textMuted,fontFamily:tokens.fontUI},children:block.caption})]});}case\"approval\":{// Decision state drives the whole card shape. `pending` shows the\n// full card (mascot header + content + Accept/Deny). Once decided the\n// card collapses to a single header row with an outcome icon and an\n// \"Allowed\"/\"Denied\" trailing label — mirroring the app's\n// ToolApproval, which re-renders decided approvals with `open={false}`.\nconst state=approvalState??\"accepted\";const pending=state===\"pending\";const isExecuting=state===\"executing\";if(!pending){return /*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",justifyContent:\"space-between\",gap:8,background:tokens.bgSurface0,// Lighter outline than borderSoft so the card reads\n// against the same-toned thread background.\nborder:`1px solid ${tokens.whiteAlpha15}`,borderRadius:tokens.radiusOuter,padding:8,opacity:block.muted?.5:1,minWidth:0,...fade},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",gap:8,minWidth:0},children:[isExecuting?/*#__PURE__*/_jsx(Spinner,{size:22}):/*#__PURE__*/_jsx(Icon,{name:state===\"denied\"?\"deniedCircle\":\"checkCircle\",size:22,color:tokens.textSecondary}),/*#__PURE__*/_jsx(\"span\",{style:{...tokens.type.Body1,color:state===\"denied\"?tokens.textSecondary:tokens.textPrimary,fontWeight:600,fontFamily:tokens.fontUI,minWidth:0,...ellipsis},children:block.title})]}),!isExecuting&&/*#__PURE__*/_jsx(\"span\",{style:{...tokens.type.Body2,color:tokens.textMuted,fontFamily:tokens.fontUI,flexShrink:0},children:state===\"denied\"?\"Denied\":\"Allowed\"})]});}return /*#__PURE__*/_jsxs(\"div\",{style:{background:tokens.bgSurface0,// Lighter outline than borderSoft so the card reads\n// against the same-toned thread background.\nborder:`1px solid ${tokens.whiteAlpha15}`,borderRadius:tokens.radiusOuter,overflow:\"hidden\",opacity:block.muted?.5:1,...fade},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",gap:8,padding:8,borderBottom:`1px solid ${tokens.borderSoft}`,minWidth:0},children:[/*#__PURE__*/_jsx(Mascot,{size:22}),/*#__PURE__*/_jsx(\"span\",{style:{...tokens.type.Body1,color:tokens.textPrimary,fontWeight:600,fontFamily:tokens.fontUI,minWidth:0,...ellipsis},children:block.title})]}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:4,background:tokens.bgSurface1,padding:8},children:[block.toolName&&/*#__PURE__*/_jsx(\"span\",{style:{...tokens.type.Body2,color:tokens.textPrimary,fontWeight:600,fontFamily:tokens.fontUI},children:block.toolName}),block.description&&/*#__PURE__*/_jsx(\"span\",{style:{...tokens.type.Body2,color:tokens.textSecondary,fontFamily:tokens.fontUI,marginBottom:2},children:block.description}),/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",alignItems:\"start\",justifyContent:\"space-between\",flexDirection:\"column\",gap:4,padding:8,borderRadius:tokens.radiusButton,background:tokens.bgSurface2},children:block.rows.map((row,rowIndex)=>/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",justifyContent:\"space-between\",gap:4,...tokens.type.Body2,color:row.previous?tokens.destructive:tokens.textSecondary,fontFamily:tokens.fontUI},children:[/*#__PURE__*/_jsxs(\"span\",{style:{flexShrink:0},children:[row.label,\":\"]}),/*#__PURE__*/_jsx(\"span\",{style:{flex:1,minWidth:0,textAlign:\"right\",...ellipsis},children:row.value})]},rowIndex))})]}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",justifyContent:\"flex-end\",gap:8,background:tokens.bgSurface2,padding:8},children:[/*#__PURE__*/_jsx(ApprovalButton,{variant:\"secondary\",onPress:()=>onApprovalDecision?.(\"denied\"),children:\"Deny\"}),/*#__PURE__*/_jsx(ApprovalButton,{variant:\"primary\",onPress:()=>onApprovalDecision?.(\"accepted\"),children:\"Accept\"})]})]});}case\"clarify\":return /*#__PURE__*/_jsx(\"div\",{style:{opacity:block.muted?.5:1,...fade},children:/*#__PURE__*/_jsx(ClarifyOptions,{question:block.question,options:block.options,selected:block.selected,complete:complete})});case\"steps\":return /*#__PURE__*/_jsx(\"div\",{style:{opacity:block.muted?.5:1,...fade},children:/*#__PURE__*/_jsx(StepsCard,{task:block.task,steps:block.steps,complete:complete})});case\"completeTodo\":return null;case\"unityView\":case\"unityFinale\":return null;}};// Delay before revealing the next block, in ms.\nconst BLOCK_DELAY_MS=300;const FIRST_BLOCK_DELAY_MS=100;const POST_TYPEWRITER_DELAY_MS=300;// Hold on a status block (with mascot animating) before advancing, so the\n// \"Exploring\" → \"Explored\" transition is visible instead of flashing past.\nconst STATUS_HOLD_MS=2500;// How long an approved tool \"runs\" (spinner in the approval header) before the\n// card settles to its accepted state.\nconst APPROVAL_EXECUTE_MS=1500;export const AgentResponse=({blocks,streaming=false,initialRevealed,onUpdate,onDone,onSelectPage,onOpenScript,onAddScript,onCompleteTodo,onUnityView,onUnityFinale})=>{// Live block sequence. Starts as the scripted `blocks`, but a tool-approval\n// decision can append branch blocks (deny → message + a regenerated\n// approval; approve → message), so the thread continues based on the choice.\nconst[seq,setSeq]=React.useState(blocks);// `revealed` is the count of fully-shown blocks. The block at index\n// `revealed` (if any) is the one currently animating in (typing, etc).\nconst[revealed,setRevealed]=React.useState(initialRevealed??(streaming?0:blocks.length));// True while an approved tool is \"running\" — the header shows a spinner for\n// APPROVAL_EXECUTE_MS before the card settles to its accepted state.\nconst[executing,setExecuting]=React.useState(false);const current=revealed<seq.length?seq[revealed]:undefined;// True while the currently-revealing block is an approval that hasn't\n// settled yet (awaiting a click, or running its post-accept spinner) — the\n// auto-advance timer holds here until it resolves.\nconst awaitingApproval=!!streaming&&current?.kind===\"approval\"&&!current.decided;// Stamp the decision onto the approval and splice its branch continuation in\n// right after it, so revealing flows into the chosen path.\nconst settleApproval=React.useCallback(decision=>{setSeq(prior=>{const block=prior[revealed];if(!block||block.kind!==\"approval\")return prior;const decidedBlock={...block,decided:decision};const followups=decision===\"accepted\"?[// Image first, then the response types in below it.\n...block.approveImage?[{kind:\"image\",...block.approveImage}]:[],...block.approveResponse?[{kind:\"paragraph\",text:block.approveResponse,typewriter:true}]:[]]:[...block.denyResponse?[{kind:\"paragraph\",text:block.denyResponse,typewriter:true}]:[],// Regenerate a fresh (undecided) copy of the same\n// approval so the user can approve on a later attempt.\n{...block,decided:undefined}];return[...prior.slice(0,revealed),decidedBlock,...followups,...prior.slice(revealed+1)];});setRevealed(r=>r+1);},[revealed]);const decideApproval=React.useCallback(decision=>{// Deny settles immediately; accept shows the running spinner first.\nif(decision===\"denied\"){settleApproval(\"denied\");return;}setExecuting(true);setTimeout(()=>{setExecuting(false);settleApproval(\"accepted\");},APPROVAL_EXECUTE_MS);},[settleApproval]);const isLiveTyping=!!streaming&&current?.kind===\"paragraph\"&&current.typewriter;const tw=useTypewriter(isLiveTyping&&current?.kind===\"paragraph\"?current.text:\"\",{speed:12,startDelay:0,enabled:isLiveTyping});// Advance to the next block. Typewriter blocks wait for `tw.done`,\n// everything else waits for a fixed delay.\nReact.useEffect(()=>{if(!streaming)return;if(revealed>=seq.length)return;// Pause on a tool-approval block until the user presses Accept/Deny.\nif(awaitingApproval)return;if(isLiveTyping){if(tw.done){const t=setTimeout(()=>setRevealed(r=>r+1),POST_TYPEWRITER_DELAY_MS);return()=>clearTimeout(t);}return;}const delay=current?.kind===\"status\"?STATUS_HOLD_MS:revealed===0?FIRST_BLOCK_DELAY_MS:BLOCK_DELAY_MS;const t=setTimeout(()=>setRevealed(r=>r+1),delay);return()=>clearTimeout(t);},[streaming,revealed,isLiveTyping,tw.done,seq.length,awaitingApproval]);// Auto-scroll on every visible change.\nReact.useEffect(()=>{onUpdate?.();},[revealed,tw.out,onUpdate]);const openAllScripts=React.useCallback(focusDoc=>{const docs=seq.filter(isDiffBlock).map(blockToCanvasDoc);if(docs.length===0)return;onOpenScript?.(docs,focusDoc.name);},[seq,onOpenScript]);// Fire the side-effect for the block being revealed live: auto-open the\n// canvas for diffs, check a to-do, or drive the Unity view/finale. A block\n// has exactly one kind, so these are mutually exclusive. Past turns\n// (streaming=false) skip this — their diffs open only when clicked.\nReact.useEffect(()=>{if(!streaming||revealed>=seq.length)return;const block=seq[revealed];if(!block)return;if(isDiffBlock(block))onAddScript?.(blockToCanvasDoc(block));else if(block.kind===\"completeTodo\")onCompleteTodo?.(block.todoIndex);else if(block.kind===\"unityView\")onUnityView?.(block.tab,block.phase);else if(block.kind===\"unityFinale\")onUnityFinale?.();},[streaming,revealed,seq,onAddScript,onCompleteTodo,onUnityView,onUnityFinale]);// Final block reached — the response is fully rendered. Fire onDone exactly\n// once per streaming response. `onDone` (handleAgentDone) changes identity\n// whenever Hero re-renders — its callback deps include inline-arrow props\n// like onAutoComplete — so without this guard the effect re-runs while\n// `revealed` is still at the end and archives the turn more than once,\n// duplicating the whole turn (message + response) in the thread.\nconst doneFiredRef=React.useRef(false);React.useEffect(()=>{if(streaming&&revealed>=seq.length&&!doneFiredRef.current){doneFiredRef.current=true;// Hand back the final (possibly branched) sequence so the turn is\n// archived with its full history, not just the scripted prefix.\nonDone?.(seq);}},[streaming,revealed,seq,onDone]);// While streaming, always include the block currently being revealed so\n// its in-progress state (mascot for status, typing for paragraphs, etc.)\n// is visible. For static turns, render the whole script at once.\nconst visibleCount=streaming?Math.min(revealed+1,seq.length):seq.length;return /*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:10},children:seq.slice(0,visibleCount).map((block,i)=>{const typing=isLiveTyping&&i===revealed;// Past turns (non-streaming) render every block as complete.\n// Streaming turns mark blocks complete once revealing has\n// moved past their index.\nconst complete=!streaming||i<revealed;// Approval blocks: the stamped decision wins; otherwise the\n// current block is \"executing\" (post-accept spinner) or\n// \"pending\", and anything else is \"accepted\" (static/past turns).\nconst approvalState=block.kind===\"approval\"?block.decided??(i===revealed?executing?\"executing\":streaming?\"pending\":\"accepted\":\"accepted\"):undefined;return /*#__PURE__*/_jsx(AgentBlockView,{block:block,displayText:typing?tw.out:undefined,complete:complete,animate:streaming,onSelectPage:onSelectPage,onOpenAllScripts:openAllScripts,approvalState:approvalState,onApprovalDecision:block.kind===\"approval\"&&streaming&&i===revealed&&!block.decided&&!executing?decideApproval:undefined},i);})});};const PinChip=({icon,label,selected=false,onClick,tint})=>{const[hovered,setHovered]=React.useState(false);const isInteractive=!!onClick;const filled=selected||hovered;const textColor=selected?tint??tokens.textPrimary:tokens.textSecondary;// A faint wash of the tint (mode color) behind the selected chip; falls back\n// to the neutral fill when untinted. `${tint}26` = the hex color at ~15% alpha.\nconst fillBg=selected&&tint?`${tint}26`:filled?tokens.whiteAlpha10:\"transparent\";return /*#__PURE__*/_jsxs(\"div\",{onClick:onClick,onMouseEnter:isInteractive?()=>setHovered(true):undefined,onMouseLeave:isInteractive?()=>setHovered(false):undefined,style:{display:\"inline-flex\",alignItems:\"center\",justifyContent:\"center\",gap:4,height:24,padding:label?\"4px 8px\":\"4px 4px\",borderRadius:58,background:fillBg,border:selected?\"1px solid transparent\":`1px dashed ${tokens.whiteAlpha20}`,color:textColor,...tokens.type.Body2,fontFamily:tokens.fontUI,boxSizing:\"border-box\",cursor:isInteractive?\"pointer\":\"default\",transition:\"background 120ms ease, border-color 120ms ease, color 120ms ease\"},children:[/*#__PURE__*/_jsx(Icon,{name:icon,size:tokens.iconSize.sm,color:textColor,stroke:1.8}),label]});};const MODES_ORDER=[\"Agent\",\"Plan\",\"Ask\"];const ModePicker=({mode,onModeChange})=>{const[open,setOpen]=React.useState(false);const[hovered,setHovered]=React.useState(false);const[hoveredRow,setHoveredRow]=React.useState(null);const palette=hovered?tokens.modes[mode].Hover:tokens.modes[mode].Default;return /*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\"},children:[open&&/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"div\",{onClick:()=>setOpen(false),style:{position:\"fixed\",inset:0,zIndex:98}}),/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",bottom:\"calc(100% + 4px)\",left:0,width:160,background:tokens.bgSurface0,borderRadius:8,padding:\"4px 0\",zIndex:99,boxShadow:tokens.shadow.menu,display:\"flex\",flexDirection:\"column\",gap:2},children:MODES_ORDER.map(m=>{const mPalette=tokens.modes[m].Default;const isSelected=m===mode;const isRowHovered=hoveredRow===m&&!isSelected;const rowBorder=isSelected?tokens.darkAlpha49:tokens.whiteAlpha60;const rowTextColor=isSelected?mPalette.icon:tokens.whiteAlpha60;const rowBg=isSelected?mPalette.bg:isRowHovered?tokens.bgSurface2:\"transparent\";return /*#__PURE__*/_jsx(\"div\",{style:{height:26,display:\"flex\",alignItems:\"center\",padding:\"0 4px\"},children:/*#__PURE__*/_jsx(\"div\",{onClick:()=>{onModeChange?.(m);setOpen(false);},onMouseEnter:()=>setHoveredRow(m),onMouseLeave:()=>setHoveredRow(null),style:{flex:1,height:26,display:\"flex\",alignItems:\"center\",justifyContent:\"space-between\",padding:\"0 8px\",borderRadius:6,background:rowBg,cursor:\"pointer\",gap:4,transition:\"background 120ms ease\"},children:/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",gap:4},children:[/*#__PURE__*/_jsx(Icon,{name:MODE_ICON[m],size:tokens.iconSize.sm,color:rowTextColor,stroke:2}),/*#__PURE__*/_jsxs(\"span\",{style:{...tokens.type.Body2,color:rowTextColor,fontFamily:tokens.fontUI},children:[m,\" Mode\"]})]})})},m);})})]}),/*#__PURE__*/_jsxs(\"div\",{onClick:()=>setOpen(v=>!v),onMouseEnter:()=>setHovered(true),onMouseLeave:()=>setHovered(false),style:{background:palette.bg,height:24,display:\"inline-flex\",alignItems:\"center\",gap:4,padding:\"2px 4px 2px 8px\",borderRadius:16,cursor:\"pointer\",transition:\"background 120ms ease\"},children:[/*#__PURE__*/_jsx(Icon,{name:MODE_ICON[mode],size:tokens.iconSize.md,color:palette.icon,stroke:2}),/*#__PURE__*/_jsx(\"span\",{style:{...tokens.type.Body2,fontWeight:600,color:palette.icon,fontFamily:tokens.fontUI},children:mode}),/*#__PURE__*/_jsx(Icon,{name:\"chevDown\",size:tokens.iconSize.sm,color:palette.icon,stroke:2})]})]});};const SendButton=({mode=\"Agent\",state=\"Default\",onClick,onMouseEnter,onMouseLeave,onMouseDown,onMouseUp})=>{const palette=state===\"Disabled\"?tokens.disabled:tokens.modes[mode][state];const isStop=state===\"Sent\";const interactive=state!==\"Disabled\"&&state!==\"Sent\";return /*#__PURE__*/_jsx(\"div\",{onClick:interactive?onClick:undefined,onMouseEnter:onMouseEnter,onMouseLeave:onMouseLeave,onMouseDown:onMouseDown,onMouseUp:onMouseUp,style:{width:28,height:28,borderRadius:tokens.radiusPill,background:palette.bg,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",cursor:state===\"Disabled\"?\"default\":\"pointer\",transition:\"background 160ms ease\"},children:isStop?/*#__PURE__*/_jsx(\"div\",{style:{width:10,height:10,borderRadius:2,background:palette.icon}}):/*#__PURE__*/_jsx(Icon,{name:\"arrowUpFilled\",size:tokens.iconSize.send,color:palette.icon})});};const ThreadInput=({typedText,caretVisible,showPlaceholder,mode=\"Agent\",sendState,editable=false,projectName,projectEngine,pins=[],contextPct=0,onValueChange,onSubmit,onModeChange})=>{const textareaRef=React.useRef(null);// Auto-focus the textarea when it becomes editable. preventScroll keeps the\n// focus from scrolling the page/ancestors to bring the textarea into view —\n// switching between the bezi and game views must not move page scroll.\nReact.useEffect(()=>{if(editable)textareaRef.current?.focus({preventScroll:true});},[editable]);const[hovered,setHovered]=React.useState(false);const[pressed,setPressed]=React.useState(false);const[selectedPins,setSelectedPins]=React.useState(()=>new Set(pins.reduce((acc,pin,i)=>{if(!pin.dashed)acc.push(i);return acc;},[])));React.useEffect(()=>{setSelectedPins(new Set(pins.reduce((acc,pin,i)=>{if(!pin.dashed)acc.push(i);return acc;},[])));},[pins]);// Interactive states only matter when the button isn't already disabled/sent.\nconst interactiveState=sendState===\"Disabled\"||sendState===\"Sent\"?sendState:pressed?\"Active\":hovered?\"Hover\":\"Default\";return /*#__PURE__*/_jsxs(\"div\",{style:{margin:\"0px 12px 12px 12px\",background:tokens.gray700,borderRadius:8,borderTop:`1px solid ${tokens.whiteAlpha15}`,padding:8,display:\"flex\",flexDirection:\"column\",gap:8,flexShrink:0,boxShadow:tokens.shadow.input},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{background:tokens.gray650,borderTopLeftRadius:12,borderTopRightRadius:12,display:\"flex\",flexDirection:\"column\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",justifyContent:\"space-between\",padding:4},children:[projectName&&/*#__PURE__*/_jsxs(\"div\",{style:{display:\"inline-flex\",alignItems:\"center\",gap:5,height:24,padding:\"3px 8px\",borderRadius:58,background:tokens.whiteAlpha10,boxSizing:\"border-box\"},children:[/*#__PURE__*/_jsx(Icon,{name:\"hashCube\",size:tokens.iconSize.sm,color:tokens.whiteAlpha70,stroke:1.6}),projectEngine&&/*#__PURE__*/_jsx(Icon,{name:projectEngine,size:tokens.iconSize.sm,color:tokens.whiteAlpha70}),/*#__PURE__*/_jsx(\"div\",{style:{width:7,height:7,borderRadius:999,background:tokens.brand.green,flexShrink:0}}),/*#__PURE__*/_jsx(\"span\",{style:{...tokens.type.Body2,color:tokens.textPrimary,fontFamily:tokens.fontUI,fontWeight:500},children:projectName})]}),/*#__PURE__*/_jsx(\"div\",{style:{width:26,height:26,borderRadius:999,background:tokens.whiteAlpha10,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",flexShrink:0},children:/*#__PURE__*/_jsx(Icon,{name:\"atSymbol\",size:tokens.iconSize.md,color:tokens.whiteAlpha70,stroke:1.8})})]}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",padding:\"0px 4px 4px 4px\",gap:4},children:[/*#__PURE__*/_jsx(PinChip,{icon:\"pin\",selected:true,tint:mode?tokens.modes[mode].Default.bg:undefined}),pins.map((pin,i)=>/*#__PURE__*/_jsx(PinChip,{icon:pin.icon,label:pin.label,selected:selectedPins.has(i),onClick:()=>setSelectedPins(prev=>{const next=new Set(prev);if(next.has(i))next.delete(i);else next.add(i);return next;})},i))]})]}),/*#__PURE__*/_jsx(\"div\",{className:\"bezi-scroll\",style:{background:tokens.gray800,borderBottomLeftRadius:16,borderBottomRightRadius:16,maxHeight:160,overflowY:\"auto\"},children:/*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",padding:\"12px 8px\",minHeight:48},children:[editable?/*#__PURE__*/_jsx(\"textarea\",{ref:textareaRef,className:\"bezi-input\",value:typedText,onChange:e=>onValueChange?.(e.target.value),onKeyDown:e=>{if(e.key===\"Enter\"&&!e.shiftKey){e.preventDefault();onSubmit?.();}},placeholder:\"Ask me about your project...\",rows:1,style:{display:\"block\",width:\"100%\",boxSizing:\"border-box\",margin:0,padding:\"4px 80px 4px 8px\",...tokens.type.Body1,fontFamily:tokens.fontUI,color:tokens.whiteAlpha85,background:\"transparent\",border:\"none\",outline:\"none\",resize:\"none\",overflow:\"hidden\",verticalAlign:\"top\",whiteSpace:\"pre-wrap\",wordBreak:\"break-word\"}}):/*#__PURE__*/_jsxs(\"div\",{style:{padding:\"4px 80px 4px 8px\",...tokens.type.Body1,fontFamily:tokens.fontUI,color:showPlaceholder?tokens.whiteAlpha50:tokens.whiteAlpha85,whiteSpace:\"pre-wrap\",wordBreak:\"break-word\"},children:[showPlaceholder?\"Ask me about your project...\":renderPromptText(typedText,tokens.modes[mode].Default.bg),!showPlaceholder&&caretVisible&&/*#__PURE__*/_jsx(\"span\",{style:{display:\"inline-block\",width:7,height:14,background:tokens.whiteAlpha85,marginLeft:2,verticalAlign:-2,animation:\"bezi-caret 1s steps(1) infinite\"}})]}),/*#__PURE__*/_jsxs(\"div\",{style:{position:\"absolute\",right:8,bottom:8,display:\"flex\",alignItems:\"center\",gap:8},children:[/*#__PURE__*/_jsx(\"div\",{style:{width:32,height:32,display:\"flex\",alignItems:\"center\",justifyContent:\"center\"},children:/*#__PURE__*/_jsx(Icon,{name:\"plus\",size:tokens.iconSize.lg,color:tokens.whiteAlpha40,stroke:1.8})}),/*#__PURE__*/_jsx(SendButton,{mode:mode,state:interactiveState,onClick:onSubmit,onMouseEnter:()=>setHovered(true),onMouseLeave:()=>{setHovered(false);setPressed(false);},onMouseDown:()=>setPressed(true),onMouseUp:()=>setPressed(false)})]})]})})]}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",justifyContent:\"space-between\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",gap:8},children:[/*#__PURE__*/_jsx(ModePicker,{mode:mode,onModeChange:onModeChange}),/*#__PURE__*/_jsxs(\"div\",{style:{background:tokens.whiteAlpha10,height:24,display:\"inline-flex\",alignItems:\"center\",gap:4,padding:\"2px 8px 2px 8px\",borderRadius:16},children:[/*#__PURE__*/_jsx(\"span\",{style:{...tokens.type.Body2,color:tokens.whiteAlpha80,fontFamily:tokens.fontUI},children:\"Core\"}),/*#__PURE__*/_jsx(Icon,{name:\"chevDown\",size:tokens.iconSize.sm,color:tokens.whiteAlpha80,stroke:2})]})]}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",gap:4,padding:\"2px 4px\"},children:[/*#__PURE__*/_jsxs(\"span\",{style:{...tokens.type.Body2,color:contextPct>0?tokens.whiteAlpha60:tokens.whiteAlpha30,fontFamily:tokens.fontMono,transition:\"color 400ms ease\"},children:[contextPct,\"%\"]}),/*#__PURE__*/_jsxs(\"svg\",{width:14,height:14,viewBox:\"0 0 14 14\",style:{transform:\"rotate(-90deg)\",flexShrink:0},children:[/*#__PURE__*/_jsx(\"circle\",{cx:7,cy:7,r:6.3,fill:\"none\",stroke:contextPct>0?tokens.whiteAlpha12:tokens.whiteAlpha30,strokeWidth:1.4,style:{transition:\"stroke 400ms ease\"}}),contextPct>0&&/*#__PURE__*/_jsx(\"circle\",{cx:7,cy:7,r:6.3,fill:\"none\",stroke:tokens.whiteAlpha55,strokeWidth:1.4,strokeLinecap:\"round\",strokeDasharray:2*Math.PI*6.3,strokeDashoffset:2*Math.PI*6.3*(1-contextPct/100),style:{transition:\"stroke-dashoffset 400ms ease\"}})]})]})]})]});};// Default agent response for user-submitted prompts.\nconst FOLLOWUP_AGENT=[{kind:\"paragraph\",text:\"To keep building with Bezi, download the app.\",richText:/*#__PURE__*/_jsxs(_Fragment,{children:[\"To keep building with Bezi, \",/*#__PURE__*/_jsx(\"a\",{href:\"https://bezi.com/pricing\",target:\"_blank\",rel:\"noreferrer\",style:{color:tokens.textPrimary,textDecoration:\"underline\",textUnderlineOffset:2},children:\"download the app\"}),\".\"]}),typewriter:true}];// Distance from the thread header bottom to the top of a newly submitted user\n// message after the slide-up animation lands.\nconst MESSAGE_TOP_OFFSET=14;// Chrome above the last-turn wrapper that the min-height has to account for:\n// the scroller content's top padding (12) plus the pin offset (16). The\n// wrapper's `min-height: viewportHeight - LAST_TURN_CHROME` ensures the user\n// message can pin to MESSAGE_TOP_OFFSET *and* there's nothing to scroll past.\nconst LAST_TURN_CHROME=24;// Slack (px) the user's scroll position may drift from the agent's tail before\n// sticky autoscroll disengages. Also the window within which returning to the\n// tail re-engages it.\nconst STICK_THRESHOLD=24;const ThreadPanel=({script,mode=\"Agent\",active=true,hidden=false,width=tokens.layout.threadWidth,fullscreen=false,startAtApproval=false,startAtResponse=false,responseStartIndex=0,autoStart=true,showHeader=true,margin,planName,onSelectPage,onOpenScript,onAddScript,onModeChange,onCompleteTodo,onAutoComplete,onUnityView,onUnityFinale})=>{// Resolve the thread's project connection from the active content bundle's\n// connections. Prefer the script's projectKey; fall back to the first\n// connected (on: true) entry.\nconst{connections}=useBeziContent();const projectConnection=connections.find(c=>c.label===script.projectKey&&c.on)??connections.find(c=>c.on);// Index of the first tool-approval block, and whether we should open the\n// panel already parked on it (see startAtApproval). When there's no\n// approval block the flag is a no-op and the panel plays from the top.\nconst approvalIndex=React.useMemo(()=>script.agent.findIndex(block=>block.kind===\"approval\"),[script]);const openMidThread=startAtApproval&&approvalIndex>=0;// Open pinned at the response start: mount the user message + response but\n// stream from block 0, staying scroll-gated (autoStart). Approval mode wins\n// if both are set. See BeziHeroToolApproval's \"Response\" start mode.\nconst openAtResponse=startAtResponse&&!openMidThread;// Either mid-turn open pre-mounts the user message + agent blocks and starts\n// in the agent phase, skipping the composer typing/submit phases.\nconst preloadTurn=openMidThread||openAtResponse;// Completed turns (rendered statically, no animation).\nconst[past,setPast]=React.useState([]);// Phase of the *current* in-flight turn. Opening mid-thread jumps straight\n// to the agent phase (the user message + response are already in the thread).\nconst[phase,setPhase]=React.useState(preloadTurn?\"agent\":\"typing\");// True until the initial auto-demo finishes — input is non-editable then.\nconst[isAuto,setIsAuto]=React.useState(true);// Don't start the auto-animation until this panel has been shown at least\n// once AND generation has been cued (autoStart). A mid-thread open is already\n// past that point, so it ignores autoStart. Once true it stays true — a\n// later autoStart=false (e.g. scrolling back out) won't rewind an in-flight\n// turn; scroll-gating is a one-shot \"begin\" cue.\nconst[hasBeenActive,setHasBeenActive]=React.useState(active&&autoStart||openMidThread);React.useEffect(()=>{if(active&&autoStart)setHasBeenActive(true);},[active,autoStart]);// Ref so canvas-opening callbacks can check visibility without stale closure.\nconst activeRef=React.useRef(active);React.useEffect(()=>{activeRef.current=active;},[active]);// Controlled input value (typewriter writes to this in auto mode).\nconst[inputValue,setInputValue]=React.useState(\"\");// User message and agent blocks for the current in-flight turn (set on\n// submit, or pre-filled here when opening mid-thread).\nconst[pendingUser,setPendingUser]=React.useState(preloadTurn?script.user:\"\");const[pendingAgent,setPendingAgent]=React.useState(preloadTurn?script.agent:[]);// Mode the in-flight turn was submitted in, frozen at submit time so a later\n// mode change doesn't retint an already-sent message's banner.\nconst[pendingMode,setPendingMode]=React.useState(mode);const[agentDone,setAgentDone]=React.useState(false);const[displayContextPct,setDisplayContextPct]=React.useState(0);const scrollRef=React.useRef(null);const lastTurnRef=React.useRef(null);const agentEndRef=React.useRef(null);// Sticky autoscroll: while the user is pinned to the agent's tail we follow\n// it as it types; once they scroll away we hand control back to them until\n// they return to the tail. Autoscroll only ever moves *toward* the tail, so\n// its own scrolls keep the position near the bottom and never disengage the\n// stick — stickiness is derived purely from scroll position, no flags.\nconst stickToTailRef=React.useRef(true);// The only measurement we need: the scroller's visible height. We size the\n// last turn's wrapper to fill it so the user message naturally pins to the\n// top and there's no extra scrollable slack below.\nconst inputWrapRef=React.useRef(null);const[viewportHeight,setViewportHeight]=React.useState(0);const[inputHeight,setInputHeight]=React.useState(0);React.useEffect(()=>{const scrollEl=scrollRef.current;if(!scrollEl)return;const inputEl=inputWrapRef.current;const update=()=>{setViewportHeight(scrollEl.clientHeight);if(inputEl)setInputHeight(inputEl.clientHeight);};update();const ro=new ResizeObserver(update);ro.observe(scrollEl);if(inputEl)ro.observe(inputEl);return()=>ro.disconnect();},[]);const lastTurnMinHeight=Math.max(0,viewportHeight-LAST_TURN_CHROME);// Empty-state height, held constant as the composer grows so the greeting\n// stays vertically locked instead of drifting up. The scroll viewport\n// shrinks by exactly the input's growth, so we add that growth back —\n// measured against the input's resting (minimum) height.\nconst inputMinHeightRef=React.useRef(Number.POSITIVE_INFINITY);if(inputHeight>0)inputMinHeightRef.current=Math.min(inputMinHeightRef.current,inputHeight);const inputGrowth=Number.isFinite(inputMinHeightRef.current)?Math.max(0,inputHeight-inputMinHeightRef.current):0;const emptyStateMinHeight=Math.max(0,lastTurnMinHeight+inputGrowth);// Auto-typewriter for the initial scripted user message.\nconst{out,done}=useTypewriter(script.user,{speed:32,startDelay:600,enabled:isAuto&&phase===\"typing\"&&hasBeenActive});// Mirror typewriter output into the input value while auto-typing. Gated on\n// hasBeenActive so the input stays empty during the intro clip — before\n// typing begins the typewriter reports the full text (its disabled path),\n// and mirroring that would flash the whole prompt, then delete + retype.\nReact.useEffect(()=>{if(isAuto&&phase===\"typing\"&&hasBeenActive)setInputValue(out);},[isAuto,phase,hasBeenActive,out]);// Auto submit: when scripted typing completes, advance through submit → agent.\nReact.useEffect(()=>{if(!hasBeenActive)return;if(isAuto&&phase===\"typing\"&&done){const t=setTimeout(()=>{setPendingUser(script.user);setPendingAgent(script.agent);setPendingMode(mode);setInputValue(\"\");setPhase(\"submitted\");},500);return()=>clearTimeout(t);}if(phase===\"submitted\"){const t=setTimeout(()=>setPhase(\"agent\"),700);return()=>clearTimeout(t);}},[hasBeenActive,isAuto,phase,done,script,mode]);// Keep the agent's tail edge in view as it types, but never scroll past it\n// into the bottom spacer (which only exists to allow the user message to be\n// pinned to the top of the viewport on submit).\nconst scrollAgentIntoView=React.useCallback(()=>{// Hands off while the user is reading elsewhere in the response.\nif(!stickToTailRef.current)return;const tail=agentEndRef.current;const scroller=scrollRef.current;if(!tail||!scroller)return;const tailRect=tail.getBoundingClientRect();const scrollerRect=scroller.getBoundingClientRect();// Adjust the scroller's own scrollTop rather than calling\n// scrollIntoView, which would also scroll ancestor scrollers (the host\n// page) and let thread scrolling leak into the embedding document.\nif(tailRect.bottom>scrollerRect.bottom){scroller.scrollTop+=tailRect.bottom-scrollerRect.bottom;}},[]);// Re-derive stickiness from scroll position: pinned only while the tail sits\n// at (or below) the viewport bottom. Autoscroll keeps it pinned; scrolling\n// up past the threshold disengages; returning to the tail re-engages.\nconst syncStickToTail=React.useCallback(()=>{// The submit-time smooth scroll runs before the agent renders; keep\n// following the tail until then.\nif(phase===\"submitted\")return;const tail=agentEndRef.current;const scroller=scrollRef.current;if(!tail||!scroller)return;const tailRect=tail.getBoundingClientRect();const scrollerRect=scroller.getBoundingClientRect();stickToTailRef.current=tailRect.bottom<=scrollerRect.bottom+STICK_THRESHOLD;},[phase]);// Disengage the instant the user scrolls up, before the next token can snap\n// them back. Wheel/touch are unambiguously user-initiated, unlike scroll.\nconst handleUserScrollUp=React.useCallback(()=>{stickToTailRef.current=false;},[]);const handleWheel=React.useCallback(event=>{if(event.deltaY<0)handleUserScrollUp();},[handleUserScrollUp]);React.useLayoutEffect(()=>{if(phase===\"submitted\"){// A fresh turn always follows the tail until the user scrolls away.\nstickToTailRef.current=true;// Push prior turns out of view and land the new user message at the\n// top. Scroll the thread's own scroller (not scrollIntoView, which\n// also scrolls ancestor scrollers / the host page) so the motion\n// stays contained inside the panel.\nconst scroller=scrollRef.current;const turn=lastTurnRef.current;if(scroller&&turn){const turnRect=turn.getBoundingClientRect();const scrollerRect=scroller.getBoundingClientRect();const delta=turnRect.top-scrollerRect.top-MESSAGE_TOP_OFFSET;scroller.scrollTo({top:scroller.scrollTop+delta,behavior:\"smooth\"});}}},[phase]);// Submit handler used by user-driven turns and after auto archive.\nconst handleSubmit=React.useCallback(()=>{const trimmed=inputValue.trim();if(!trimmed)return;setPendingUser(trimmed);setPendingAgent(FOLLOWUP_AGENT);setPendingMode(mode);setInputValue(\"\");setAgentDone(false);setDisplayContextPct(0);setPhase(\"submitted\");},[inputValue,mode]);// When the agent finishes, archive the turn and reset for the next prompt.\n// `finalAgent` is the response's final (possibly branch-extended) block list\n// — archive that so a tool-approval branch is preserved, not the script prefix.\nconst handleAgentDone=React.useCallback(finalAgent=>{setAgentDone(true);if(script.contextPct!==undefined)setDisplayContextPct(script.contextPct);// Capture whether this is the auto-turn completing while the panel is\n// visible. If so, notify Hero so it knows not to reset on next visit.\nconst completingAutoTurnWhileVisible=isAuto&&activeRef.current;const archivedAgent=finalAgent??pendingAgent;const t=setTimeout(()=>{setPast(p=>[...p,{user:pendingUser,agent:archivedAgent,mode:pendingMode}]);setPendingUser(\"\");setPendingAgent([]);setPhase(\"typing\");setAgentDone(false);setIsAuto(false);if(completingAutoTurnWhileVisible)onAutoComplete?.();},600);return()=>clearTimeout(t);},[pendingUser,pendingAgent,pendingMode,isAuto,onAutoComplete,script.contextPct]);const editable=!isAuto&&phase===\"typing\";const showPlaceholder=phase!==\"typing\"||inputValue.length===0;const caretVisible=isAuto&&phase===\"typing\";const messageInThread=phase!==\"typing\";const sendState=phase===\"typing\"?inputValue.trim().length===0?\"Disabled\":\"Default\":agentDone?\"Disabled\":\"Sent\";return /*#__PURE__*/_jsxs(\"div\",{style:{background:tokens.bgSurface1,border:`1px solid ${tokens.borderSoft}`,borderRadius:tokens.radiusOuter,overflow:\"hidden\",display:hidden?\"none\":\"flex\",flexDirection:\"column\",boxShadow:tokens.shadow.panel,// Full-screen: cover the content area with a uniform 4px inset.\n// Docked: fixed width sitting in the flow.\n...fullscreen?{position:\"absolute\",inset:4,zIndex:30}:{width,margin:margin??\"4px 4px 4px 0\",flexShrink:0}},children:[showHeader&&/*#__PURE__*/_jsx(ThreadHeader,{}),/*#__PURE__*/_jsx(\"div\",{ref:scrollRef,className:\"bezi-scroll\",onScroll:syncStickToTail,onWheel:handleWheel,onTouchMove:handleUserScrollUp,style:{flex:1,minHeight:0,overflowY:\"auto\",display:\"flex\",flexDirection:\"column\",justifyContent:\"flex-start\"},children:/*#__PURE__*/_jsx(\"div\",{style:{padding:16,display:\"flex\",flexDirection:\"column\",gap:14},children:(()=>{// Unified turn list: archived turns first, then the\n// in-flight turn (if any). The last entry's wrapper\n// gets `min-height` so it fills the viewport — that\n// gives the user message room to pin to the top *and*\n// prevents scrolling past it, without a separate\n// measured spacer.\nconst turns=[...past.map(t=>({...t,pending:false})),...messageInThread?[{user:pendingUser,agent:pendingAgent,mode:pendingMode,pending:true}]:[]];// Empty state: a fresh thread with nothing in it yet.\n// Center a prompt in the visible area (min-height fills\n// the viewport just like the last-turn wrapper does).\nif(turns.length===0){return /*#__PURE__*/_jsx(\"div\",{style:{minHeight:emptyStateMinHeight>0?emptyStateMinHeight:undefined,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",textAlign:\"center\"},children:/*#__PURE__*/_jsx(\"span\",{style:{...tokens.type.Header3,fontWeight:600,color:tokens.textSecondary,fontFamily:tokens.fontUI},children:\"What do you want to build?\"})});}return turns.map((turn,i)=>{const isLast=i===turns.length-1;return /*#__PURE__*/_jsxs(\"div\",{ref:isLast?lastTurnRef:undefined,style:{scrollMarginTop:MESSAGE_TOP_OFFSET,display:\"flex\",flexDirection:\"column\",gap:14,flexShrink:0,minHeight:isLast&&lastTurnMinHeight>0?lastTurnMinHeight:undefined},children:[/*#__PURE__*/_jsx(UserMessage,{text:turn.user,mode:turn.mode,animateIn:turn.pending}),turn.pending?// hasBeenActive holds the streaming\n// response until the turn is cued: for a\n// from-top turn phase only reaches \"agent\"\n// after that anyway, but openAtResponse\n// starts in \"agent\", so this is what keeps\n// its response scroll-gated (user message\n// shows alone until scrolled into view).\nphase===\"agent\"&&hasBeenActive&&/*#__PURE__*/_jsx(AgentResponse,{blocks:turn.agent,streaming:true,initialRevealed:openMidThread?approvalIndex:openAtResponse?responseStartIndex:undefined,onUpdate:scrollAgentIntoView,onDone:handleAgentDone,onSelectPage:onSelectPage,onOpenScript:onOpenScript,onAddScript:activeRef.current?onAddScript:undefined,onCompleteTodo:onCompleteTodo,onUnityView:activeRef.current?onUnityView:undefined,onUnityFinale:activeRef.current?onUnityFinale:undefined}):/*#__PURE__*/_jsx(AgentResponse,{blocks:turn.agent,onSelectPage:onSelectPage,onOpenScript:onOpenScript}),turn.pending&&/*#__PURE__*/_jsx(\"div\",{ref:agentEndRef})]},i);});})()})}),/*#__PURE__*/_jsx(\"div\",{ref:inputWrapRef,style:{flexShrink:0},children:/*#__PURE__*/_jsx(ThreadInput,{typedText:inputValue,caretVisible:caretVisible,showPlaceholder:showPlaceholder,mode:mode,sendState:sendState,editable:editable,projectName:projectConnection?.label,projectEngine:projectConnection?.icon,pins:script.pins??[],contextPct:displayContextPct,onValueChange:setInputValue,onSubmit:handleSubmit,onModeChange:onModeChange})})]});};// ---------- markdown ----------\n// Minimal block-level markdown renderer for page content. Headings map onto\n// the shared type scale (# → Header1 … #### → Header4). Supports unordered and\n// ordered lists, fenced code blocks, and inline **bold** / *italic* / `code`.\n//\n// `colorOverride` forces the emphasis color on **bold** / `code` spans (which\n// otherwise pin themselves to textPrimary). Callers that render into a state\n// with its own text color — e.g. a crossed-out plan todo — pass it so the\n// inline tokens gray out along with the surrounding text instead of staying\n// bright.\nconst renderInline=(text,colorOverride)=>{const emphasisColor=colorOverride??tokens.textPrimary;// Order matters: match **bold** before *italic* so the greedy bold token\n// wins over the single-asterisk italic token.\nconst inlineToken=/(\\*\\*[^*]+\\*\\*|\\*[^*]+\\*|_[^_]+_|`[^`]+`)/g;const nodes=[];let lastIndex=0;let key=0;let match;while((match=inlineToken.exec(text))!==null){if(match.index>lastIndex)nodes.push(text.slice(lastIndex,match.index));const token=match[0];if(token.startsWith(\"**\")){nodes.push(/*#__PURE__*/_jsx(\"strong\",{style:{fontWeight:600,color:emphasisColor},children:token.slice(2,-2)},key++));}else if(token.startsWith(\"*\")||token.startsWith(\"_\")){nodes.push(/*#__PURE__*/_jsx(\"em\",{style:{fontStyle:\"italic\"},children:token.slice(1,-1)},key++));}else{nodes.push(/*#__PURE__*/_jsx(\"code\",{style:{fontFamily:tokens.fontMono,fontSize:12,background:tokens.bgSurface2,padding:\"1px 5px\",borderRadius:4,color:emphasisColor},children:token.slice(1,-1)},key++));}lastIndex=match.index+token.length;}if(lastIndex<text.length)nodes.push(text.slice(lastIndex));return nodes;};const MD_HEADING_TYPE={1:tokens.type.Header1,2:tokens.type.Header2,3:tokens.type.Header3,4:tokens.type.Header4};const mdBodyStyle={fontSize:12,lineHeight:\"20px\",color:tokens.textSecondary,fontFamily:tokens.fontUI,// Break long words/URLs instead of letting them force the page wider.\noverflowWrap:\"break-word\",minWidth:0};const Markdown=({source})=>{const lines=source.replace(/\\r\\n/g,\"\\n\").split(\"\\n\");const blocks=[];let lineIndex=0;let key=0;const isHeading=line=>/^#{1,4}\\s+/.test(line);const isBullet=line=>/^\\s*[-*]\\s+/.test(line);const isOrdered=line=>/^\\s*\\d+\\.\\s+/.test(line);const isFence=line=>line.trim().startsWith(\"```\");while(lineIndex<lines.length){const line=lines[lineIndex];// Fenced code block\nif(isFence(line)){lineIndex+=1;const codeLines=[];while(lineIndex<lines.length&&!isFence(lines[lineIndex])){codeLines.push(lines[lineIndex]);lineIndex+=1;}lineIndex+=1// closing fence\n;blocks.push(/*#__PURE__*/_jsx(\"pre\",{style:{margin:0,minWidth:0,fontFamily:tokens.fontMono,fontSize:12,lineHeight:\"18px\",color:tokens.textSecondary,background:tokens.bgSurface1,border:`1px solid ${tokens.borderSoft}`,borderRadius:8,padding:\"10px 12px\",// Wrap long lines instead of scrolling/forcing width, so\n// page content can never widen the layout.\nwhiteSpace:\"pre-wrap\",overflowWrap:\"anywhere\"},children:codeLines.join(\"\\n\")},key++));continue;}// Heading\nconst heading=/^(#{1,4})\\s+(.*)$/.exec(line);if(heading){const level=heading[1].length;blocks.push(/*#__PURE__*/_jsx(\"div\",{style:{...MD_HEADING_TYPE[level],fontWeight:600,color:tokens.textPrimary,fontFamily:tokens.fontUI,letterSpacing:level===1?-.5:0,marginTop:level===1?0:10},children:renderInline(heading[2])},key++));lineIndex+=1;continue;}// Unordered / ordered list\nif(isBullet(line)||isOrdered(line)){const ordered=isOrdered(line);const matcher=ordered?isOrdered:isBullet;const strip=ordered?/^\\s*\\d+\\.\\s+/:/^\\s*[-*]\\s+/;const items=[];while(lineIndex<lines.length&&matcher(lines[lineIndex])){items.push(lines[lineIndex].replace(strip,\"\"));lineIndex+=1;}// Task list (GitHub-style checkboxes): a bullet list whose every\n// item begins with `[ ]` or `[x]`. Rendered as static checkbox rows\n// matching the plan checklist — the marker sets the checked state\n// (pages aren't interactive, unlike a plan's toggleable todos).\nconst taskMarker=/^\\[([ xX])\\]\\s+/;if(!ordered&&items.length>0&&items.every(item=>taskMarker.test(item))){blocks.push(/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:4},children:items.map((item,n)=>{const checked=taskMarker.exec(item)[1].toLowerCase()===\"x\";const text=item.replace(taskMarker,\"\");return /*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"flex-start\",gap:8,userSelect:\"none\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{width:14,height:14,marginTop:2,borderRadius:3,border:`1.5px solid ${checked?tokens.planLight:tokens.border}`,background:checked?tokens.planLight:\"transparent\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",flexShrink:0},children:checked&&/*#__PURE__*/_jsx(Icon,{name:\"check\",size:tokens.iconSize.sm,color:tokens.bgSurface0})}),/*#__PURE__*/_jsx(\"span\",{style:{...mdBodyStyle,color:checked?tokens.textMuted:tokens.textSecondary,textDecoration:checked?\"line-through\":\"none\"},children:renderInline(text,checked?tokens.textMuted:undefined)})]},n);})},key++));continue;}const listStyle={margin:0,paddingLeft:22,...mdBodyStyle};const listItems=items.map((item,n)=>/*#__PURE__*/_jsx(\"li\",{style:{marginBottom:4},children:renderInline(item)},n));blocks.push(ordered?/*#__PURE__*/_jsx(\"ol\",{style:listStyle,children:listItems},key++):/*#__PURE__*/_jsx(\"ul\",{style:listStyle,children:listItems},key++));continue;}// Blank line\nif(line.trim()===\"\"){lineIndex+=1;continue;}// Paragraph — gather consecutive plain lines\nconst paragraph=[];while(lineIndex<lines.length&&lines[lineIndex].trim()!==\"\"&&!isHeading(lines[lineIndex])&&!isBullet(lines[lineIndex])&&!isOrdered(lines[lineIndex])&&!isFence(lines[lineIndex])){paragraph.push(lines[lineIndex]);lineIndex+=1;}blocks.push(/*#__PURE__*/_jsx(\"div\",{style:mdBodyStyle,children:renderInline(paragraph.join(\" \"))},key++));}return /*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:12},children:blocks});};const PageView=({source})=>/*#__PURE__*/_jsx(\"div\",{className:\"bezi-scroll\",style:{flex:1,background:tokens.bgSurface0,overflowY:\"auto\",// Never scroll or grow horizontally — content wraps instead.\n    overflowX:\"hidden\",minWidth:0},children:/*#__PURE__*/_jsx(\"div\",{style:{maxWidth:720,minWidth:0,margin:\"0 auto\",padding:\"24px 26px\"},children:/*#__PURE__*/_jsx(Markdown,{source:source})})});function parsePlanSegments(source){const lines=source.split(\"\\n\");const result=[];let mdLines=[];let todoIndex=0;for(const line of lines){if(/^- \\[[ x]\\] /.test(line)){if(mdLines.length>0){result.push({type:\"md\",text:mdLines.join(\"\\n\")});mdLines=[];}result.push({type:\"todo\",text:line.replace(/^- \\[[ x]\\] /,\"\"),index:todoIndex++});}else{mdLines.push(line);}}if(mdLines.length>0){result.push({type:\"md\",text:mdLines.join(\"\\n\")});}return result;}const PlanView=({source,checkedTodos=[],onToggleTodo})=>{const segments=React.useMemo(()=>parsePlanSegments(source),[source]);const totalTodos=segments.filter(s=>s.type===\"todo\").length;const allComplete=totalTodos>0&&checkedTodos.length>=totalTodos;return /*#__PURE__*/_jsx(\"div\",{className:\"bezi-scroll\",style:{flex:1,background:\"transparent\",overflowY:\"auto\",minWidth:0},children:/*#__PURE__*/_jsx(\"div\",{style:{maxWidth:720,margin:\"0 auto\",padding:\"24px 26px\"},children:/*#__PURE__*/_jsxs(\"div\",{style:{background:\"transparent\",border:`1px solid ${tokens.bgSurface2}`,borderRadius:tokens.radiusPage,overflow:\"hidden\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",gap:8,padding:\"20px 20px 10px 20px\"},children:[/*#__PURE__*/_jsx(Icon,{name:\"planningMode\",size:tokens.iconSize.send,color:tokens.planLight}),/*#__PURE__*/_jsx(\"span\",{style:{...tokens.type.Body1,color:tokens.planLight,fontFamily:tokens.fontUI},children:\"Plan\"})]}),/*#__PURE__*/_jsx(\"div\",{style:{height:1,background:tokens.bgSurface2,margin:\"0 20px\"}}),/*#__PURE__*/_jsx(\"div\",{style:{padding:\"24px 24px 40px\"},children:segments.map((seg,i)=>{if(seg.type===\"md\"){return /*#__PURE__*/_jsx(Markdown,{source:seg.text},i);}const checked=checkedTodos.includes(seg.index);return /*#__PURE__*/_jsxs(\"div\",{onClick:()=>onToggleTodo?.(seg.index),style:{display:\"flex\",alignItems:\"flex-start\",gap:8,margin:\"4px 0\",cursor:\"pointer\",userSelect:\"none\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{width:14,height:14,marginTop:2,borderRadius:3,border:`1.5px solid ${checked?tokens.planLight:tokens.border}`,background:checked?tokens.planLight:\"transparent\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",flexShrink:0,transition:\"all 0.15s ease\"},children:checked&&/*#__PURE__*/_jsx(Icon,{name:\"check\",size:tokens.iconSize.sm,color:tokens.bgSurface0})}),/*#__PURE__*/_jsx(\"span\",{style:{...tokens.type.Body1,color:checked?tokens.textMuted:tokens.textSecondary,fontFamily:tokens.fontUI,textDecoration:checked?\"line-through\":\"none\",transition:\"color 0.15s ease, text-decoration 0.15s ease\"},children:renderInline(seg.text,checked?tokens.textMuted:undefined)})]},i);})})]})})});};// ---------- canvas ----------\n// Center-area canvas for script viewing, mirroring the app's SidekickCanvas:\n// a tab bar (close + file tab) over a unified diff editor, with a floating\n// control pill (added/removed counts + Keep/Undo) and a copy button. The tab\n// bar reuses the thread's shared topBarStyle/topBarButton so the two align.\nconst CanvasPillButton=({icon})=>/*#__PURE__*/_jsx(\"div\",{style:{display:\"inline-flex\",alignItems:\"center\",justifyContent:\"center\",width:22,height:22,// Card-style rounding, not the pill/badge radius.\n    borderRadius:tokens.radiusButton,background:tokens.pill.btnBg,color:tokens.pill.text,cursor:\"default\"},children:/*#__PURE__*/_jsx(Icon,{name:icon,size:tokens.iconSize.md,color:tokens.pill.text,stroke:2})});const CanvasView=({tabs,activeTab,onSelectTab,onClose})=>{const doc=tabs[activeTab];if(!doc)return null;return /*#__PURE__*/_jsx(\"div\",{style:{flex:1,minWidth:0,display:\"flex\",padding:5},children:/*#__PURE__*/_jsxs(\"div\",{style:{flex:1,minWidth:0,position:\"relative\",display:\"flex\",flexDirection:\"column\",background:tokens.bgSurface2,borderRadius:tokens.radiusOuter,boxShadow:tokens.shadow.panel,overflow:\"hidden\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{...topBarStyle,gap:8},children:[/*#__PURE__*/_jsx(InteractiveButton,{icon:\"close\",onClick:onClose}),/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",gap:4,overflowX:\"auto\",flex:1,minWidth:0},className:\"bezi-scroll\",children:tabs.map((tab,i)=>{const isActive=i===activeTab;return /*#__PURE__*/_jsx(InteractiveButton,{onClick:()=>onSelectTab(i),selected:isActive,fontFamily:tokens.fontMono,children:/*#__PURE__*/_jsx(\"div\",{style:{flexShrink:0,whiteSpace:\"nowrap\"},children:tab.name})},i);})})]}),/*#__PURE__*/_jsx(\"div\",{className:\"bezi-scroll\",style:{flex:1,minHeight:0,overflow:\"auto\",background:tokens.bgSurface1,padding:\"8px 0 80px\"},children:/*#__PURE__*/_jsx(DiffBody,{lines:doc.diff})}),/*#__PURE__*/_jsxs(\"div\",{style:{position:\"absolute\",bottom:20,right:20,display:\"flex\",alignItems:\"center\",gap:8},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",gap:8,height:40,padding:\"0 14px 0 14px\",borderRadius:tokens.radiusPill,background:tokens.pill.bg,boxShadow:tokens.shadow.pill},children:[/*#__PURE__*/_jsx(DiffCounts,{added:doc.added,removed:doc.removed,addColor:tokens.pill.add,removeColor:tokens.pill.remove}),/*#__PURE__*/_jsx(CanvasPillButton,{icon:\"check\"}),/*#__PURE__*/_jsx(CanvasPillButton,{icon:\"close\"})]}),/*#__PURE__*/_jsx(\"button\",{style:{width:40,height:40,borderRadius:tokens.radiusPill,background:tokens.pill.bg,border:\"none\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",cursor:\"default\",boxShadow:tokens.shadow.pill},children:/*#__PURE__*/_jsx(Icon,{name:\"copy\",size:tokens.iconSize.lg,color:tokens.pill.text})})]})]})});};const UNITY_TABS=[\"Scene\",\"Game\",\"Animation\",\"Animator\"];// Tabs to omit from the viewport tab bar. The tab, its type, and any media\n// stay defined above — this only controls what's shown. Remove \"Animation\"\n// from this list to bring the Animation tab back.\nconst HIDDEN_UNITY_TABS=[\"Animation\"];const VISIBLE_UNITY_TABS=UNITY_TABS.filter(tab=>!HIDDEN_UNITY_TABS.includes(tab));// ============================================================================\n// CONTENT — demos\n// ----------------------------------------------------------------------------\n// One entry per demo. Each key is the demo's display name AND its single source\n// of truth: it names the sidebar Plan, the plan page, the thread, and the\n// viewport media. To add a demo, add ONE entry to DEMOS below; SCRIPTS,\n// PLAN_PAGES, and UNITY_MEDIA derive from it automatically (see below).\n//\n// A demo bundles:\n//   plan   — planning doc (markdown) shown in the center when the plan opens.\n//   script — the thread: scripted user message + ordered agent blocks. Block\n//            order IS the storyboard (text, script/action cards, unityView\n//            triggers, completeTodo, unityFinale — all play in array order).\n//   media  — optional per-tab Unity viewport media. Omit to fall back to\n//            solid-color still stand-ins (DEFAULT_UNITY_CONTENT).\n// ============================================================================\n// Image-only viewport tab: before === after, a solid-color stand-in captioned\n// with `label`. Swap in real media later by giving before/after a `src`.\nexport const still=(tab,label=tab)=>({before:{color:tokens.unity.tabHue[tab],label},after:{color:tokens.unity.tabHue[tab],label}});// Shared Game-view still — the same resting frame across every prompt, used for\n// both the before and after states. Per-demo intro/result clips play over it;\n// this is what shows whenever nothing is playing. (Applied to every demo's Game\n// tab in the UNITY_MEDIA derivation below, so a demo can't drift from it.)\nexport const GAME_STILL={src:\"https://framerusercontent.com/images/ewTkV3Bk9hvyWsA8podSp3URw.png?width=2530&height=1462\",color:tokens.unity.tabHue.Game,label:\"Game\"};// Shared fallback content for demos without explicit media — every tab a still.\nconst DEFAULT_UNITY_CONTENT={Scene:still(\"Scene\"),Game:{before:GAME_STILL,after:GAME_STILL},Animation:still(\"Animation\"),Animator:still(\"Animator\")};const DEMOS={// Neutral placeholder demo for the standalone engine. Each wrapper injects\n// its own content bundle via Hero's `content` prop; this is only what a bare\n// <Hero /> renders. The SAMPLE_*_DIFF consts above back it.\n\"Sample Plan\":{plan:[\"# Sample Plan\",\"\",\"A neutral placeholder plan for previewing the Bezi Hero engine on\",\"its own.\",\"\",\"## To-dos\",\"\",\"- [ ] Refactor the player controller\",\"- [ ] Add a follow camera\",\"- [ ] Wire up the game manager\"].join(\"\\n\"),script:{user:\"Set up the basics for my prototype. /prototype-this\",projectKey:\"Sample Project\",contextPct:20,pins:[{icon:\"planningMode\",label:\"Sample Plan\"},{icon:\"prefab\",label:\"Player.prefab\",dashed:true}],agent:[{kind:\"status\",text:\"Exploring \\xb7 Scripts, Prefabs\",doneText:\"Explored \\xb7 Scripts, Prefabs\"},{kind:\"paragraph\",text:\"Here's a quick pass at the basics.\",typewriter:true},{kind:\"heading\",text:\"Prototyping the basics\"},{kind:\"stepHeading\",step:1,title:\"Player controller\"},{kind:\"script\",filename:\"PlayerController.cs\",added:20,removed:3,diff:SAMPLE_PLAYER_DIFF},{kind:\"completeTodo\",todoIndex:0},{kind:\"stepHeading\",step:2,title:\"Follow camera\"},{kind:\"script\",filename:\"CameraController.cs\",added:13,removed:0,diff:SAMPLE_CAMERA_DIFF},{kind:\"completeTodo\",todoIndex:1},{kind:\"stepHeading\",step:3,title:\"Game manager\"},{kind:\"script\",filename:\"GameManager.cs\",added:8,removed:5,diff:SAMPLE_GAMEMANAGER_DIFF},{kind:\"completeTodo\",todoIndex:2},{kind:\"paragraph\",text:\"That's the skeleton in place.\"}]}}};const deriveDemoMaps=demos=>{const scripts={};const planPages={};const hiddenScriptKeys=new Set;const unityMedia={};for(const[key,demo]of Object.entries(demos)){scripts[key]=demo.script;planPages[key]=demo.plan;// Hidden from the sidebar Plans list unless it's the active thread\n// (e.g. the tool-approval showcase surfaced by BeziHeroToolApproval).\nif(demo.hiddenByDefault)hiddenScriptKeys.add(key);if(demo.media){// Force every Game tab's resting still to the shared GAME_STILL for\n// both before and after — identical across all prompts — while\n// keeping any per-demo intro/result clips (introVideo/video).\nunityMedia[key]={...demo.media,Game:{...demo.media.Game,before:GAME_STILL,after:GAME_STILL}};}}// Demos that open with a viewport intro: the first tab whose media declares\n// an `introVideo`. Selecting such a plan (fresh) plays that clip first.\nconst demoIntro={};for(const[key,media]of Object.entries(unityMedia)){const introTab=UNITY_TABS.find(tab=>media[tab]?.introVideo);if(introTab)demoIntro[key]=introTab;}return{scripts,planPages,hiddenScriptKeys,unityMedia,demoIntro};};// Page label → markdown body, for the `page`-block open check + the page view.\nconst derivePageContent=pages=>Object.fromEntries(pages.filter(page=>page.icon===\"page\").map(page=>[page.label,page.body]));// The built-in (placeholder) bundle — the demos + pages authored in this file.\n// Also backs Hero when it isn't given a `content` prop.\nconst BUILTIN_CONTENT={workspaceName:\"Sample Project\",connections:CONNECTIONS,demos:DEMOS,pages:PAGES_DB};// Module-level lookups for the built-in bundle — back the exported keys below\n// and Hero's own Framer \"Default Plan\" control. Per-instance content is derived\n// inside Hero from its active bundle instead.\nconst BUILTIN_DEMO_MAPS=deriveDemoMaps(DEMOS);const SCRIPTS=BUILTIN_DEMO_MAPS.scripts;const HIDDEN_SCRIPT_KEYS=BUILTIN_DEMO_MAPS.hiddenScriptKeys;// Key of the first thread flagged hiddenByDefault — the tool-approval thread\n// surfaced by the cropped BeziHeroToolApproval component.\nexport const APPROVAL_SCRIPT_KEY=Object.keys(SCRIPTS).find(key=>HIDDEN_SCRIPT_KEYS.has(key))??Object.keys(SCRIPTS)[0];// Default plan for the built-in bundle. Exported so wrapper components can reuse\n// it without hardcoding a key that could drift from the demos.\nexport const DEFAULT_SCRIPT_KEY=\"Sample Plan\";const UNITY_CTRL_PALETTE=tokens.unity.ctrl;const UnityCtrlButton=({state=\"Default\",children,onClick,keepIconGray=false})=>{const[hovered,hoverProps]=useHover();const resolvedState=state===\"Disabled\"?\"Disabled\":state===\"Active\"?hovered?\"ActiveHover\":\"Active\":hovered?\"Hover\":\"Default\";const palette=UNITY_CTRL_PALETTE[resolvedState];// When keepIconGray is set, the icon always uses the default/hover grays\n// regardless of active state — only the background reflects the active color.\nconst iconColor=keepIconGray&&resolvedState!==\"Disabled\"?hovered?UNITY_CTRL_PALETTE.Hover.icon:UNITY_CTRL_PALETTE.Default.icon:palette.icon;return /*#__PURE__*/_jsx(\"div\",{onClick:state!==\"Disabled\"?onClick:undefined,...hoverProps,style:{width:32,height:20,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",background:palette.bg,borderRadius:3,cursor:state===\"Disabled\"?\"default\":\"pointer\",transition:\"background 120ms ease\",flexShrink:0},children:children(iconColor)});};const UnityTabIcon=({tab})=>{const tabIconColor=tokens.textSecondary;switch(tab){case\"Scene\":return /*#__PURE__*/_jsx(\"svg\",{width:\"14\",height:\"14\",viewBox:\"0 0 14 14\",fill:\"none\",style:{flexShrink:0},children:/*#__PURE__*/_jsx(\"path\",{fillRule:\"evenodd\",clipRule:\"evenodd\",d:\"M4.5 3.5H5.5V4.5H7.5V2.5H8.5V4.5H10.5V3.5H11.5V4.5H12.5V5.5H11.5V7.5H13.5V8.5H11.5V10.5H12.5V11.5H11.5V12.5H10.5V11.5H8.5V13.5H7.5V11.5H5.5V12.5H4.5V11.5H3.5V10.5H4.5V8.5H2.5V7.5H4.5V5.5H3.5V4.5H4.5V3.5ZM7.5 5.5H5.5V7.5H7.5V5.5ZM7.5 8.5H5.5V10.5H7.5V8.5ZM8.5 7.5V5.5H10.5V7.5H8.5ZM8.5 10.5V8.5H10.5V10.5H8.5Z\",fill:tabIconColor})});case\"Game\":return /*#__PURE__*/_jsx(\"svg\",{width:\"14\",height:\"14\",viewBox:\"0 0 14 14\",fill:\"none\",style:{flexShrink:0},children:/*#__PURE__*/_jsx(\"path\",{fillRule:\"evenodd\",clipRule:\"evenodd\",transform:\"translate(7 7) scale(0.85) translate(-8 -8.5)\",d:\"M4.5 5H11.5C13.433 5 15 6.567 15 8.5C15 10.1569 14 12 11.5 12C10.9441 12 10.5427 11.8455 10.2958 11.7082C10.0848 11.5909 9.9014 11.429 9.69485 11.3041C9.46309 11.164 9.15813 11 9 11H7C6.84187 11 6.53691 11.164 6.30515 11.3041C6.0986 11.429 5.91518 11.5909 5.70421 11.7082C5.45734 11.8455 5.05593 12 4.5 12C2 12 1 10.1569 1 8.5C1 6.567 2.567 5 4.5 5ZM10 10H9.5V9H10V8.5H11V9H11.5V10H11V10.5H10V10ZM12 8.5V8H11.5V7H12V6.5H13V7H13.5V8H13V8.5H12ZM5 7H4V8H3V9H4V10H5V9H6V8H5V7Z\",fill:tabIconColor})});case\"Animation\":return /*#__PURE__*/_jsx(\"svg\",{width:\"14\",height:\"14\",viewBox:\"0 0 14 14\",fill:\"none\",style:{flexShrink:0},children:/*#__PURE__*/_jsx(\"path\",{fillRule:\"evenodd\",clipRule:\"evenodd\",transform:\"translate(-1 -1)\",d:\"M2 8C2 4.68629 4.68629 2 8 2C11.3137 2 14 4.68629 14 8C14 11.3137 11.3137 14 8 14C4.68629 14 2 11.3137 2 8ZM7 8.5L7.5 9C7.5 9 8.10959 9.00964 8.5 9C10.0738 8.96114 12.5 8.5 12.5 8.5V7.5H8.5V3.5H7.5C7.5 3.5 7.03886 5.92623 7 7.5C6.99036 7.89041 7 8.5 7 8.5Z\",fill:tabIconColor})});case\"Animator\":return /*#__PURE__*/_jsxs(\"svg\",{width:\"14\",height:\"14\",viewBox:\"0 0 14 14\",fill:\"none\",style:{flexShrink:0},children:[/*#__PURE__*/_jsx(\"path\",{d:\"M2.97363 11.291V12.5476H4.47363V11.7937C4.47363 10.5282 4.59863 9.65739 5.72363 9.02908C5.34863 8.90342 4.84863 8.6521 4.47363 8.27487C3.5628 8.96264 2.97363 10.0577 2.97363 11.291Z\",fill:tabIconColor}),/*#__PURE__*/_jsx(\"path\",{d:\"M4.47363 3.5H2.97363C2.97363 6.55363 5.43607 9.02908 8.47363 9.02908H9.97363V10.537L12.9736 8.27512L9.97363 6.01322V7.52115H8.47363C6.26449 7.52115 4.47363 5.72082 4.47363 3.5Z\",fill:tabIconColor})]});}};// Blocks right-click \"Save image/video as…\", drag-to-desktop, PiP, and text\n// selection so the game-view media can't be pulled out of the component. Spread\n// as props on the <img>/<video>; the style disables pointer interaction (which\n// also suppresses the native context menu) and the attributes are belt-and-\n// suspenders in case a wrapper re-enables pointer events.\nconst mediaGuardProps={draggable:false,onContextMenu:event=>event.preventDefault()};const mediaGuardStyle={pointerEvents:\"none\",userSelect:\"none\",WebkitUserSelect:\"none\"};// A real <video> whose play/pause follows the `playing` flag. When `playing`\n// goes false (paused/stopped) the element is paused in place; when it turns\n// true again playback resumes from the current position.\n//\n// Playback is gated on readiness: play() only fires once the clip can actually\n// play through (onCanPlay). This is what stops a cold first view from starting\n// mid-buffer and skipping its opening — the previous version called play()\n// immediately, so on an uncached clip the browser played from whatever had\n// decoded so far. The parent also keys this element on `src` (see MediaFrame),\n// so each distinct clip mounts a fresh <video> starting at currentTime 0 rather\n// than inheriting a stale position from a reused node.\nconst VideoFrame=({src,playing,style,onEnded,onError,onPlaying})=>{const ref=React.useRef(null);// Whether the clip has buffered enough to start. Because the element is\n// keyed on `src` upstream it remounts per clip, so this starts false for\n// every new source without an explicit reset.\nconst[canPlay,setCanPlay]=React.useState(false);React.useEffect(()=>{const el=ref.current;if(!el)return;if(playing&&canPlay){void el.play().catch(()=>{});}else if(!playing){el.pause();}},[playing,canPlay]);return /*#__PURE__*/_jsx(\"video\",{ref:ref,src:src,muted:true,playsInline:true,preload:\"auto\",disablePictureInPicture:true,controlsList:\"nodownload\",onCanPlay:()=>setCanPlay(true),onEnded:onEnded,onError:onError,onPlaying:onPlaying,...mediaGuardProps,style:{...style,objectFit:\"cover\",...mediaGuardStyle}});};// Renders a single media reference. When `src` is present it draws the real\n// asset (<video> for video refs, otherwise <img>); until then it draws a solid\n// color stand-in captioned with `label`, plus a \"▶ video\" affordance for videos.\nconst MediaFrame=({media,isVideo=false,playing=false,onVideoEnded,onVideoError,onVideoPlaying})=>{const baseStyle={position:\"absolute\",inset:0,width:\"100%\",height:\"100%\"};if(media?.src){return isVideo?// Key on src so each distinct clip mounts a fresh <video> (fresh\n// buffer + currentTime 0) instead of reusing the node and inheriting\n// the prior clip's position/state.\n/*#__PURE__*/_jsx(VideoFrame,{src:media.src,playing:playing,style:baseStyle,onEnded:onVideoEnded,onError:onVideoError,onPlaying:onVideoPlaying},media.src):/*#__PURE__*/_jsx(\"img\",{src:media.src,alt:media.label??\"\",...mediaGuardProps,style:{...baseStyle,objectFit:\"cover\",...mediaGuardStyle}});}// Placeholder panel.\nreturn /*#__PURE__*/_jsxs(\"div\",{style:{...baseStyle,background:media?.color??tokens.unity.viewportBg,display:\"flex\",flexDirection:\"column\",alignItems:\"center\",justifyContent:\"center\",gap:8},children:[isVideo&&/*#__PURE__*/_jsx(\"div\",{style:{fontSize:13,color:tokens.whiteAlpha75,fontFamily:tokens.fontUI},children:playing?\"▶ playing\":\"▶ video\"}),media?.label&&/*#__PURE__*/_jsx(\"div\",{style:{fontSize:11,color:tokens.whiteAlpha50,fontFamily:tokens.fontUI,letterSpacing:.3},children:media.label})]});};const UnityWindow=({content,activeTab,onSelectTab,runningPhase,locked,finaleActive,playState,onPlayStateChange,onVideoEnded,onVideoPlaying})=>{const[hoveredTab,setHoveredTab]=React.useState(null);const tabMedia=content[activeTab];const contentStyle=activeTab===\"Scene\"?{background:tokens.unity.sceneGradient}:activeTab===\"Game\"?{background:tokens.unity.viewportBg}:{background:tokens.unity.viewportBg,backgroundImage:tokens.unity.gridBg,backgroundSize:\"20px 20px\"};// Resolve which media to show in the viewport, and whether it's a video.\nconst resolveFrame=()=>{if(locked&&runningPhase){const driven=content[runningPhase.tab];if(runningPhase.phase===\"intro\"){// Intro clip; fall back to the before still if none is set.\nif(driven?.introVideo)return{media:driven.introVideo,isVideo:true};return{media:driven?.before,isVideo:false};}if(runningPhase.phase===\"video\"){// Fall back to the after image when a tab has no video.\nif(driven?.video)return{media:driven.video,isVideo:true};return{media:driven?.after??driven?.before,isVideo:false};}const frame=runningPhase.phase;return{media:driven?.[frame]??driven?.before,isVideo:false};}// Unlocked: the Game tab shows its video while playing/paused.\nif(activeTab===\"Game\"&&playState!==\"stopped\"&&tabMedia?.video){return{media:tabMedia.video,isVideo:true};}// Otherwise show the active tab's after image only.\nreturn{media:tabMedia?.after??tabMedia?.before,isVideo:false};};const frame=resolveFrame();const videoPlaying=frame.isVideo&&(finaleActive||playState===\"playing\"||locked&&!!runningPhase);// Whether the current tab supports interactive playback once unlocked.\nconst canPlay=activeTab===\"Game\"&&!!tabMedia?.video;// Whether the Game tab has playable media, regardless of the active tab —\n// play can be pressed from anywhere and will jump to the Game tab.\nconst gameHasVideo=!!content[\"Game\"]?.video;const interactive=!locked&&!finaleActive;// Play: Active whenever in play mode (playing OR paused); Disabled when the\n// Game tab has no interactive playback once unlocked; Default otherwise.\nconst playBtnState=playState!==\"stopped\"?\"Active\":interactive&&!gameHasVideo?\"Disabled\":\"Default\";// Pause: Active when paused, Default otherwise. Only disabled when the Game\n// tab has no playable media — never affected by which tab is active.\nconst pauseBtnState=playState===\"paused\"?\"Active\":interactive&&!gameHasVideo?\"Disabled\":\"Default\";// Step: Default from the start; only disabled when the Game tab has no\n// playable media. Not affected by which tab is active.\nconst skipBtnState=interactive&&!gameHasVideo?\"Disabled\":\"Default\";// Interactive Game-tab play-through: when the user presses play, the clip\n// runs and auto-stops. A real clip stops on its own onEnded (handled in\n// Hero); this timer is the placeholder duration when there's no clip, or a\n// long safety cap when there is (onEnded should stop it first). Pausing\n// freezes the remaining time; resuming continues; stopping resets the clock.\n// The finale has its own sequencer in Hero, so this only runs while interactive.\n//\n// Keyed off the *Game* clip, not the active tab's media: pressing play always\n// jumps to Game, so the clock must reflect what actually plays. Using the\n// active tab meant returning on the Scene tab (no video) reset the clock to\n// the short placeholder duration, cutting the real clip off early on the\n// first press.\nconst playDuration=content[\"Game\"]?.video?.src?GAME_VIDEO_SAFETY_MS:GAME_OUTRO_MS;const remainingRef=React.useRef(GAME_OUTRO_MS);const startRef=React.useRef(0);const playTimerRef=React.useRef(null);React.useEffect(()=>{const clearTimer=()=>{if(playTimerRef.current){clearTimeout(playTimerRef.current);playTimerRef.current=null;}};if(!interactive||!canPlay){clearTimer();remainingRef.current=playDuration;return;}if(playState===\"playing\"){clearTimer();startRef.current=Date.now();playTimerRef.current=setTimeout(()=>{remainingRef.current=playDuration;onPlayStateChange(\"stopped\");},remainingRef.current);return clearTimer;}if(playState===\"paused\"){clearTimer();const elapsed=Date.now()-startRef.current;remainingRef.current=Math.max(0,remainingRef.current-elapsed);return;}// stopped — reset the clock.\nclearTimer();remainingRef.current=playDuration;},[playState,interactive,canPlay,onPlayStateChange,playDuration]);return /*#__PURE__*/_jsxs(\"div\",{style:{background:tokens.unity.windowBg,border:`1px solid ${tokens.whiteAlpha15}`,borderRadius:tokens.radiusOuter,overflow:\"hidden\",display:\"flex\",flexDirection:\"column\",boxShadow:tokens.shadow.unityWindow},children:[/*#__PURE__*/_jsxs(\"div\",{style:{height:26,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",flexShrink:0,gap:4},children:[/*#__PURE__*/_jsx(UnityCtrlButton,{state:playBtnState,keepIconGray:true,onClick:interactive&&gameHasVideo?()=>{if(playState===\"playing\"){onPlayStateChange(\"stopped\");return;}// Pressing play from any tab jumps to Game.\nif(activeTab!==\"Game\"){onSelectTab(\"Game\");}onPlayStateChange(\"playing\");}:undefined,children:iconColor=>/*#__PURE__*/_jsx(Icon,{name:\"play\",size:tokens.iconSize.md,color:iconColor})}),/*#__PURE__*/_jsx(UnityCtrlButton,{state:pauseBtnState,keepIconGray:true,onClick:interactive&&gameHasVideo?()=>{if(activeTab!==\"Game\")onSelectTab(\"Game\");onPlayStateChange(playState===\"playing\"?\"paused\":playState===\"paused\"?\"playing\":playState);}:undefined,children:iconColor=>/*#__PURE__*/_jsx(Icon,{name:\"pause\",size:tokens.iconSize.md,color:iconColor})}),/*#__PURE__*/_jsx(UnityCtrlButton,{state:skipBtnState,keepIconGray:true,onClick:interactive&&gameHasVideo?()=>{if(activeTab!==\"Game\")onSelectTab(\"Game\");onPlayStateChange(playState===\"playing\"?\"paused\":playState);}:undefined,children:iconColor=>/*#__PURE__*/_jsx(Icon,{name:\"step\",size:tokens.iconSize.lg,color:iconColor})})]}),/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",alignItems:\"flex-start\",padding:\"0 2px\",flexShrink:0,borderBottom:`2px solid ${tokens.unity.tabBar}`},children:VISIBLE_UNITY_TABS.map(tab=>{const isActive=activeTab===tab;// Tabs are inert while the thread is running (locked) or\n// while in play mode (playing or paused).\nconst tabsDisabled=locked||playState!==\"stopped\";const isHovered=!tabsDisabled&&hoveredTab===tab&&!isActive;const tabBg=isActive?tokens.unity.tabBar:isHovered?tokens.whiteAlpha06:\"transparent\";return /*#__PURE__*/_jsxs(\"div\",{onClick:tabsDisabled?undefined:()=>onSelectTab(tab),onMouseEnter:tabsDisabled?undefined:()=>setHoveredTab(tab),onMouseLeave:tabsDisabled?undefined:()=>setHoveredTab(null),style:{display:\"flex\",alignItems:\"center\",gap:4,padding:\"4px 14px 4px 8px\",borderRadius:\"4px 4px 0 0\",background:tabBg,cursor:tabsDisabled?\"default\":\"pointer\",transition:\"background 120ms ease\"},children:[/*#__PURE__*/_jsx(UnityTabIcon,{tab:tab}),/*#__PURE__*/_jsx(\"span\",{style:{fontSize:12,lineHeight:\"normal\",color:tokens.unity.tabText,fontFamily:tokens.fontUI,whiteSpace:\"nowrap\"},children:tab})]},tab);})}),/*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",height:230,flexShrink:0,overflow:\"hidden\",...contentStyle},children:/*#__PURE__*/_jsx(MediaFrame,{media:frame.media,isVideo:frame.isVideo,playing:videoPlaying,onVideoEnded:onVideoEnded,onVideoError:onVideoEnded,onVideoPlaying:onVideoPlaying})})]});};// Shared keyframes + scrollbar/mascot classes used across the thread, page, and\n// mascot. Rendered once per top-level component (Hero and BeziHeroToolApproval) so\n// each renders identically whether or not the full app chrome is present.\nconst GlobalStyles=()=>/*#__PURE__*/_jsx(\"style\",{children:`\n        /* Reserve the host page's scrollbar gutter so a scrollbar appearing\n           (e.g. when plan content changes height) doesn't shrink the available\n           width. Without this the window — sized width:100% + aspect-ratio —\n           rescales whenever the host scrollbar toggles. */\n        html { scrollbar-gutter: stable; }\n        @keyframes bezi-caret { 50% { opacity: 0; } }\n        @keyframes bezi-spin { to { transform: rotate(360deg); } }\n        @keyframes bezi-slide-up {\n            from { opacity: 0; transform: translateY(36px); }\n            to { opacity: 1; transform: translateY(0); }\n        }\n        @keyframes bezi-fade-in {\n            from { opacity: 0; transform: translateY(8px); }\n            to { opacity: 1; transform: translateY(0); }\n        }\n        /* Canvas drawer: slides in from the right over the page on open,\n           and back out to the right on close. */\n        @keyframes bezi-canvas-in {\n            from { transform: translateX(100%); }\n            to { transform: translateX(0); }\n        }\n        @keyframes bezi-canvas-out {\n            from { transform: translateX(0); }\n            to { transform: translateX(100%); }\n        }\n        /* Sidebar: the rail slides in from the left on open, and back\n           out to the left on close. */\n        @keyframes bezi-sidebar-in {\n            from { transform: translateX(-110%); opacity: 0; }\n            to { transform: translateX(0); opacity: 1; }\n        }\n        @keyframes bezi-sidebar-out {\n            from { transform: translateX(0); opacity: 1; }\n            to { transform: translateX(-110%); opacity: 0; }\n        }\n        /* Mascot: eyes dart side to side at idle, with periodic blinks\n           running on an independent timeline so the two compose. */\n        @keyframes bezi-eyes-look {\n            0%, 22%   { transform: translateX(0); }\n            30%, 42%  { transform: translateX(2.5px); }\n            50%, 60%  { transform: translateX(0); }\n            68%, 80%  { transform: translateX(-3px); }\n            88%, 100% { transform: translateX(0); }\n        }\n        @keyframes bezi-eyes-blink {\n            0%, 86%   { transform: scaleY(1); }\n            90%       { transform: scaleY(0.08); }\n            94%, 100% { transform: scaleY(1); }\n        }\n        .bezi-eyes-look {\n            animation: bezi-eyes-look 3.5s ease-in-out infinite;\n            transform-box: fill-box;\n            transform-origin: center;\n        }\n        .bezi-eyes-blink {\n            animation: bezi-eyes-blink 2.8s ease-in-out infinite;\n            transform-box: fill-box;\n            transform-origin: center;\n        }\n        .bezi-input::placeholder {\n            color: ${tokens.whiteAlpha50};\n            font-style: normal;\n            opacity: 1;\n        }\n        .bezi-scroll {\n            scrollbar-width: thin;\n            scrollbar-color: ${tokens.scrollbar.thumb} ${tokens.scrollbar.track};\n            /* Keep wheel/touch scrolling inside the panel instead of\n               chaining to the host page when a boundary is reached. */\n            overscroll-behavior: contain;\n        }\n        .bezi-scroll::-webkit-scrollbar { width: 8px; height: 8px; }\n        .bezi-scroll::-webkit-scrollbar-track { background: ${tokens.scrollbar.track}; }\n        .bezi-scroll::-webkit-scrollbar-thumb {\n            background: ${tokens.scrollbar.thumb};\n            border-radius: 999px;\n        }\n        .bezi-scroll::-webkit-scrollbar-thumb:hover {\n            background: ${tokens.scrollbar.thumbHover};\n        }\n    `});export default function Hero({defaultScript=DEFAULT_SCRIPT_KEY,mode=\"Agent\",width=\"100%\",height=\"100%\",showFrame=false,frameColor=tokens.bgSurface0,frameRadius=24,screenBase=false,screenBaseColor=tokens.bgSurface0,inactiveOpacity=.8,sidebarBreakpoint=tokens.layout.sidebarOverlayBreakpoint,canvasReopen=\"lockFlow\",bare=false,showGameWindow=true,windowShadow,lockInteractions=false,startActiveAtApproval=false,startActiveAtResponse=false,responseStartIndex=0,autoStart=true,content}){// Active content bundle: the wrapper-injected one, or the built-in default\n// when Hero is used standalone.\nconst activeContent=content??BUILTIN_CONTENT;const workspaceName=activeContent.workspaceName;// Per-instance lookups derived from the active bundle (see deriveDemoMaps).\nconst{scripts,planPages,hiddenScriptKeys,unityMedia,demoIntro}=React.useMemo(()=>deriveDemoMaps(activeContent.demos),[activeContent]);const pageContent=React.useMemo(()=>derivePageContent(activeContent.pages),[activeContent]);// Page content + connections the deep-tree readers consume via context.\nconst runtimeContent=React.useMemo(()=>({pageContent,connections:activeContent.connections}),[pageContent,activeContent]);// Sidebar Plans list — every thread in the active bundle except those hidden\n// by default. A hidden thread still renders when it's the active/default one\n// (e.g. BeziHeroToolApproval's cropped tool-approval thread).\nconst scriptKeys=React.useMemo(()=>Object.keys(scripts).filter(key=>!hiddenScriptKeys.has(key)),[scripts,hiddenScriptKeys]);// Sidebar Pages list — the bundle's non-hidden pages, in order.\nconst pageList=React.useMemo(()=>activeContent.pages.filter(page=>!page.hiddenByDefault),[activeContent]);const initialKey=defaultScript in scripts?defaultScript:Object.keys(scripts)[0];// Thread panels to render: the sidebar-visible ones, plus the active thread\n// even when it's hidden from the sidebar (e.g. the tool-approval thread when\n// it's set as the default), so it still runs.\nconst renderedScriptKeys=React.useMemo(()=>scriptKeys.includes(initialKey)?scriptKeys:[...scriptKeys,initialKey],[scriptKeys,initialKey]);const[activeScript,setActiveScript]=React.useState(initialKey);const[currentMode,setCurrentMode]=React.useState(mode);React.useEffect(()=>{setCurrentMode(mode);},[mode]);const[frontWindow,setFrontWindow]=React.useState(\"bezi\");// True while a demo's intro clip is playing in the Unity window. It gates the\n// thread's auto-start (the prompt only begins once the intro hands off) — so\n// it's initialized from the starting plan to avoid the thread racing ahead on\n// first paint. See the thread-reset effect and finishIntro below.\nconst[introActive,setIntroActive]=React.useState(()=>initialKey in demoIntro);const introTimerRef=React.useRef(null);// Which page is open in the main area; null shows the Home view. Plans and\n// pages share this slot — a plan opens its planning doc (PLAN_PAGES). Start\n// on the default plan's page so the middle and thread open in sync.\nconst[activePage,setActivePage]=React.useState(initialKey);const activePageSource=activePage?pageContent[activePage]??planPages[activePage]:undefined;// All script docs open in the canvas as tabs. Takes priority over the\n// page/Home view when non-empty. New scripts accumulate as additional tabs.\nconst[canvasTabs,setCanvasTabs]=React.useState([]);const[activeCanvasTab,setActiveCanvasTab]=React.useState(0);// True while the canvas is playing its slide-out animation. We keep the\n// tabs mounted during the exit and clear them only in handleCanvasAnimEnd,\n// so the close is animated too.\nconst[canvasClosing,setCanvasClosing]=React.useState(false);// \"followPlan\" only: set when the user closes the canvas themselves, so\n// auto-surfaced scripts stop reopening it until they open one manually. Reset\n// on a manual open or when a fresh plan starts a new thread.\nconst[canvasDismissed,setCanvasDismissed]=React.useState(false);// Checked todo indices per plan — preserved for completed threads.\nconst[checkedTodosMap,setCheckedTodosMap]=React.useState({});// Scripts whose auto-sequence fully completed while visible. Used to decide\n// whether returning to a thread should reset it or preserve its state.\nconst[completedScripts,setCompletedScripts]=React.useState(new Set);// Per-script reset generation — bump to remount (replay) a thread.\nconst[resetCounts,setResetCounts]=React.useState({});// ----- Responsive layout (breakpoints measured on the window box's width) -----\nconst[windowRef,windowWidth]=useElementWidth();// Below the breakpoint the sidebar detaches from the flow and opens as an\n// overlay drawer. Guard on windowWidth > 0 so the first (unmeasured) paint\n// doesn't briefly treat the window as collapsed.\nconst sidebarOverlay=windowWidth>0&&windowWidth<sidebarBreakpoint;// User-controlled visibility of the sidebar. Docked layouts default open;\n// overlay layouts default closed. Flipping modes resets to that default,\n// while a toggle within a mode sticks.\nconst[sidebarOpen,setSidebarOpen]=React.useState(true);// True while the sidebar plays its slide-out. Kept mounted until the\n// animation ends (mirrors canvasClosing) so closing is animated too.\nconst[sidebarClosing,setSidebarClosing]=React.useState(false);// The docked sidebar is present by default on start, so its first paint\n// must not play the slide-in. This flips true the first time the user\n// re-opens it, at which point the entrance animation is wanted again.\nconst[dockedSidebarShouldAnimate,setDockedSidebarShouldAnimate]=React.useState(false);React.useEffect(()=>{setSidebarOpen(!sidebarOverlay);setSidebarClosing(false);},[sidebarOverlay]);// Opening is immediate; closing begins the slide-out and the actual\n// unmount happens on animation end, so both directions are animated.\nconst toggleSidebar=React.useCallback(()=>{if(sidebarOpen&&!sidebarClosing){setSidebarClosing(true);}else{setSidebarClosing(false);setSidebarOpen(true);setDockedSidebarShouldAnimate(true);}},[sidebarOpen,sidebarClosing]);const closeSidebar=React.useCallback(()=>{if(sidebarOpen)setSidebarClosing(true);},[sidebarOpen]);const handleSidebarAnimEnd=React.useCallback(()=>{if(sidebarClosing){setSidebarOpen(false);setSidebarClosing(false);}},[sidebarClosing]);// Narrow the thread once the window gets tight so the center page stays usable.\nconst threadWidth=windowWidth>0&&windowWidth<tokens.layout.threadCompactBreakpoint?tokens.layout.threadWidthCompact:tokens.layout.threadWidth;// At the narrowest breakpoint the thread goes full-screen (covering the\n// page) and is shown/hidden by the top-right expand/minimize button.\nconst threadFullscreen=windowWidth>0&&windowWidth<tokens.layout.threadFullscreenBreakpoint;const[threadOpen,setThreadOpen]=React.useState(true);// Entering full-screen shows the thread by default; a manual toggle sticks\n// while in that mode.\nReact.useEffect(()=>{setThreadOpen(true);},[threadFullscreen]);// Sidebar shared by the docked and overlay presentations. In overlay mode a\n// nav selection also dismisses the drawer, and it renders as a floating card.\nconst renderSidebar=overlay=>/*#__PURE__*/_jsx(Sidebar,{plans:scriptKeys,onSelectPlan:key=>{handleSelectPlan(key);if(overlay)closeSidebar();},activePage:activePage,onSelectPage:page=>{handleSelectPage(page);if(overlay)closeSidebar();},pages:pageList,workspaceName:workspaceName,connections:activeContent.connections,lockInteractions:lockInteractions,floating:overlay});// ----- UnityView driven state (single source of truth above the window) -----\n// Controlled active tab.\nconst[unityTab,setUnityTab]=React.useState(\"Scene\");// The current driven frame while the thread runs; null once unlocked.\nconst[unityPhase,setUnityPhase]=React.useState(null);// True while the active thread is running — tabs + controls are locked.\nconst[unityLocked,setUnityLocked]=React.useState(true);// Lifted play state so the Game finale can drive it.\nconst[unityPlayState,setUnityPlayState]=React.useState(\"stopped\");// True while the Game outro is auto-playing.\nconst[unityFinale,setUnityFinale]=React.useState(false);// Media for the active thread, with a shared fallback.\nconst unityContent=unityMedia[activeScript]??DEFAULT_UNITY_CONTENT;// Timer handle for the placeholder finale duration.\nconst outroTimerRef=React.useRef(null);// Timer handle for the delay before playback starts once surfaced.\nconst outroPlayTimerRef=React.useRef(null);// Tracks the last window the user explicitly clicked to the front. The Game\n// outro surfaces the Unity window programmatically (not via this), so when a\n// thread finishes we fall back to the bezi window — unless the user chose to\n// stay on the game view themselves.\nconst userChoseGameViewRef=React.useRef(false);// Drive the shared viewport from a live unityView trigger (active thread only).\nconst handleUnityView=React.useCallback((scriptKey,tab,phase)=>{if(scriptKey!==activeScript)return;setUnityTab(tab);setUnityPhase({tab,phase});setUnityPlayState(phase===\"video\"?\"playing\":\"stopped\");},[activeScript]);// Finish the Game outro: stop playback, drop the driven phase, and unlock\n// interaction on the resting (after) image. Driven by the clip's onEnded\n// (see handleVideoEnded) or the safety timer. Safe to call more than once.\nconst finishOutro=React.useCallback(()=>{if(outroTimerRef.current){clearTimeout(outroTimerRef.current);outroTimerRef.current=null;}setUnityPlayState(\"stopped\");setUnityPhase(null);setUnityFinale(false);setUnityLocked(false);// Thread's done — the whole response, game outro included, has played.\n// Hand focus back to the bezi window unless the user deliberately\n// switched to (or stayed on) the game view while it ran.\nif(!userChoseGameViewRef.current)setFrontWindow(\"bezi\");},[]);// End-of-thread Game outro: switch to Game, play the clip through, then\n// return controls to default and unlock interaction on the after image.\nconst startGameOutro=React.useCallback(()=>{// Response is complete — surface the Unity viewport before playback.\n// This surfacing is automatic, so clear any prior user window choice;\n// only a click during the outro counts as choosing the game view.\nuserChoseGameViewRef.current=false;setFrontWindow(\"unity\");setUnityTab(\"Game\");setUnityFinale(true);setUnityPhase({tab:\"Game\",phase:\"video\"});// Hold on the surfaced Game view briefly, then start playback so the\n// window settles in front before the game view begins playing.\nif(outroPlayTimerRef.current)clearTimeout(outroPlayTimerRef.current);if(outroTimerRef.current)clearTimeout(outroTimerRef.current);// A real clip ends on its own onEnded (finishOutro); the timer is the\n// short placeholder duration when there's no clip, or a long safety cap\n// when there is (onEnded should fire first).\nconst hasClip=!!unityMedia[activeScript]?.Game?.video?.src;outroPlayTimerRef.current=setTimeout(()=>{setUnityPlayState(\"playing\");outroTimerRef.current=setTimeout(finishOutro,hasClip?GAME_VIDEO_SAFETY_MS:GAME_OUTRO_MS);},GAME_OUTRO_PLAY_DELAY_MS);},[activeScript,finishOutro]);const handleUnityFinale=React.useCallback(scriptKey=>{if(scriptKey!==activeScript)return;startGameOutro();},[activeScript,startGameOutro]);React.useEffect(()=>()=>{if(outroTimerRef.current)clearTimeout(outroTimerRef.current);if(outroPlayTimerRef.current)clearTimeout(outroPlayTimerRef.current);if(introTimerRef.current)clearTimeout(introTimerRef.current);},[]);// End a demo's intro clip: stop playback, drop back to the neutral locked\n// start-state, surface the bezi window, and release the thread hold so the\n// prompt begins typing. Safe to call more than once (the timer/onEnded/\n// onError can all race) — it clears its own timer and no-ops thereafter.\nconst finishIntro=React.useCallback(()=>{if(introTimerRef.current){clearTimeout(introTimerRef.current);introTimerRef.current=null;}setUnityTab(\"Scene\");setUnityPhase(null);setUnityPlayState(\"stopped\");setFrontWindow(\"bezi\");setIntroActive(false);},[]);// The viewport video ended (or failed to load). Route to the right handler:\n// the intro hands off to the thread, the outro finishes and unlocks, and an\n// interactive replay just stops (returning to the resting still).\nconst handleVideoEnded=React.useCallback(()=>{if(introActive)finishIntro();else if(unityFinale)finishOutro();else if(unityPlayState===\"playing\")setUnityPlayState(\"stopped\");},[introActive,unityFinale,unityPlayState,finishIntro,finishOutro]);// Playback actually started. Re-arm the intro safety cap from here so its\n// budget covers real playback, not the cold-load latency before it: the\n// reset effect arms an initial timer (protecting the never-plays case), and\n// this resets it to a full INTRO_MAX_MS once the clip is genuinely running.\nconst handleVideoPlaying=React.useCallback(()=>{if(!introActive)return;if(introTimerRef.current)clearTimeout(introTimerRef.current);introTimerRef.current=setTimeout(finishIntro,INTRO_MAX_MS);},[introActive,finishIntro]);// Reset / restore UnityView state on thread switch or reset only. We\n// intentionally exclude completedScripts from the deps: a thread marks\n// itself complete ~600ms after its finale block while the outro is still\n// playing, and re-running this effect then would clobber the in-flight\n// finale. The finale sequencer unlocks on its own when it finishes.\nReact.useEffect(()=>{if(outroTimerRef.current)clearTimeout(outroTimerRef.current);if(outroPlayTimerRef.current)clearTimeout(outroPlayTimerRef.current);if(introTimerRef.current)clearTimeout(introTimerRef.current);const introTab=demoIntro[activeScript];if(completedScripts.has(activeScript)){// Revisiting an already-completed thread: restore the unlocked,\n// after-image end-state without replaying the finale (or intro).\nsetIntroActive(false);setUnityTab(\"Scene\");setUnityPhase(null);setUnityPlayState(\"stopped\");setUnityFinale(false);setUnityLocked(false);}else if(introTab){// Fresh thread with a viewport intro: surface the Unity window and\n// play the intro clip. handleVideoEnded (or the safety timer) hands\n// off to the thread, which is held from auto-starting until then.\nsetIntroActive(true);setFrontWindow(\"unity\");setUnityTab(introTab);setUnityPhase({tab:introTab,phase:\"intro\"});setUnityPlayState(\"playing\");setUnityFinale(false);setUnityLocked(true);introTimerRef.current=setTimeout(finishIntro,INTRO_MAX_MS);}else{// Fresh / reset thread: locked, before-image start-state.\nsetIntroActive(false);setUnityTab(\"Scene\");setUnityPhase(null);setUnityPlayState(\"stopped\");setUnityFinale(false);setUnityLocked(true);}// eslint-disable-next-line react-hooks/exhaustive-deps\n},[activeScript,resetCounts[activeScript]]);// Manual open (clicking a script card in the thread). Always honored, and\n// clears the \"followPlan\" dismissal so auto-surfacing resumes.\nconst openCanvas=React.useCallback((docs,focusName)=>{if(docs.length===0)return;setCanvasDismissed(false);setCanvasClosing(false);setCanvasTabs(docs);const focusIndex=focusName?docs.findIndex(doc=>doc.name===focusName):0;setActiveCanvasTab(focusIndex>=0?focusIndex:0);},[]);// Auto-surface a script the running thread just produced, subject to the\n// configured canvasReopen policy:\n// - \"lockFlow\": always add (the navigation lock lives in handleSelectPlan).\n// - \"followPlan\": add only while this script's own plan is the open page and\n//   the user hasn't dismissed the canvas (navigate away or close it and\n//   auto-surfacing stops until a manual open).\n// - \"manual\": never auto-add; the canvas opens only on a manual card click.\nconst addToCanvas=React.useCallback(doc=>{if(canvasReopen===\"manual\")return;if(canvasReopen===\"followPlan\"){if(activePage!==activeScript)return;if(canvasDismissed)return;}if(canvasTabs.some(t=>t.name===doc.name))return;setCanvasClosing(false);setCanvasTabs([...canvasTabs,doc]);setActiveCanvasTab(canvasTabs.length);},[canvasReopen,activePage,activeScript,canvasDismissed,canvasTabs]);// Trigger the slide-out for all tabs; actual unmount happens on animation end.\nconst requestCloseCanvas=React.useCallback(()=>{if(canvasTabs.length>0)setCanvasClosing(true);},[canvasTabs.length]);// User-initiated close (the canvas close button), as opposed to the\n// programmatic closes on page/plan navigation. Records the dismissal so\n// \"followPlan\" stops auto-reopening until a manual open.\nconst handleUserCloseCanvas=React.useCallback(()=>{setCanvasDismissed(true);requestCloseCanvas();},[requestCloseCanvas]);const handleCanvasAnimEnd=React.useCallback(()=>{if(canvasClosing){setCanvasTabs([]);setActiveCanvasTab(0);setCanvasClosing(false);}},[canvasClosing]);// Fullscreen breakpoint only: the thread stacks over the page and an open\n// script viewer sits on top of it, so the two form a stack rather than\n// sitting side by side. Toggling the thread closed there also tears down any\n// scripts behind it — closing the thread closes everything. (Closing the\n// canvas on its own just slides it away and reveals the thread underneath.)\nconst toggleThreadFullscreen=React.useCallback(()=>{if(threadOpen)requestCloseCanvas();setThreadOpen(open=>!open);},[threadOpen,requestCloseCanvas]);// Lock the sidebar + thread open by leaving their top-bar toggles unwired.\n// Set to false to restore the ability to open/close them.\nconst panelsLocked=true;// Opening a page or Home replaces the canvas, so slide it away.\nconst handleSelectPage=React.useCallback(page=>{// On rails: page navigation is disabled (sidebar pages/Home and\n// in-thread page cards alike).\nif(lockInteractions)return;setActivePage(page);requestCloseCanvas();},[requestCloseCanvas,lockInteractions]);// Selecting a plan: if the thread never fully completed while visible, reset\n// it so it replays. If it did complete, preserve the state and just switch.\n// True while the active thread hasn't finished its auto-sequence. A thread is\n// \"done\" once it lands in completedScripts; until then it's still generating.\nconst activeThreadGenerating=!completedScripts.has(activeScript);const handleSelectPlan=React.useCallback(key=>{// On rails: no plan is selectable (the active one is already shown\n// and stays put).\nif(lockInteractions)return;// \"lockFlow\": don't let the user leave a thread that's still running.\nif(canvasReopen===\"lockFlow\"&&activeThreadGenerating&&key!==activeScript)return;const isFresh=!completedScripts.has(key);// A fresh plan starts a new thread, so clear any prior dismissal —\n// its first script is allowed to open the canvas again under\n// \"followPlan\".\nif(isFresh)setCanvasDismissed(false);if(isFresh){setResetCounts(prev=>({...prev,[key]:(prev[key]??0)+1}));setCheckedTodosMap(prev=>({...prev,[key]:[]}));setCurrentMode(\"Agent\");}// When the fresh plan opens with an intro, set the whole intro\n// viewport state here — in the same render the panel remounts — so\n// the thread is held from auto-starting and the Unity window is\n// already surfaced with the clip (no one-frame focus flash before\n// the reset effect runs). The effect re-applies this and arms the\n// safety timer. Otherwise clear any stale hold.\nconst introTab=isFresh?demoIntro[key]:undefined;if(introTab){setIntroActive(true);setFrontWindow(\"unity\");setUnityTab(introTab);setUnityPhase({tab:introTab,phase:\"intro\"});setUnityPlayState(\"playing\");setUnityFinale(false);setUnityLocked(true);}else{setIntroActive(false);}setActiveScript(key);setActivePage(key);requestCloseCanvas();},[completedScripts,requestCloseCanvas,canvasReopen,activeThreadGenerating,activeScript,lockInteractions]);const handleScriptComplete=React.useCallback(key=>{setCompletedScripts(prev=>new Set([...prev,key]));},[]);const handleCompleteTodo=React.useCallback((key,todoIndex)=>{setCheckedTodosMap(prev=>{const current=prev[key]??[];return current.includes(todoIndex)?prev:{...prev,[key]:[...current,todoIndex]};});},[]);const handleToggleTodo=React.useCallback(todoIndex=>{// On rails: the plan todos are display-only (the auto-run still\n// checks them off via completeTodo, which doesn't go through here).\nif(lockInteractions)return;if(!activePage||!(activePage in planPages))return;setCheckedTodosMap(prev=>{const current=prev[activePage]??[];return{...prev,[activePage]:current.includes(todoIndex)?current.filter(i=>i!==todoIndex):[...current,todoIndex]};});},[activePage,lockInteractions]);return /*#__PURE__*/_jsx(BeziContentContext.Provider,{value:runtimeContent,children:/*#__PURE__*/_jsxs(\"div\",{style:{width,height,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",background:showFrame?frameColor:\"transparent\",borderRadius:showFrame?frameRadius:0,fontFamily:tokens.fontUI},children:[/*#__PURE__*/_jsx(GlobalStyles,{}),/*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",width:\"100%\",maxWidth:tokens.layout.maxWidth,boxSizing:\"border-box\",// `bare` strips the chrome padding (which normally leaves room\n// for the floating game window), so the component's box is\n// just the app window — used when cropping to a corner.\n// When the game window is hidden, the extra bottom/right room\n// it reserved collapses to the same breathing room as the\n// top/left so the window isn't floating in dead space.\npaddingTop:bare?0:40,paddingLeft:bare?0:40,paddingBottom:bare?0:showGameWindow?100:40,paddingRight:bare?0:showGameWindow?140:40},children:[/*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\"},children:[screenBase&&/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",inset:0,background:screenBaseColor,borderRadius:tokens.radiusOuter}}),/*#__PURE__*/_jsxs(\"div\",{ref:windowRef,onMouseDown:()=>{userChoseGameViewRef.current=false;setFrontWindow(\"bezi\");},style:{width:\"100%\",height:tokens.layout.windowHeight,background:tokens.bgSurface0,borderRadius:tokens.radiusOuter,border:`1px solid ${tokens.border}`,boxShadow:windowShadow??tokens.shadow.window,overflow:\"hidden\",display:\"flex\",flexDirection:\"column\",color:tokens.textPrimary,position:\"relative\",zIndex:frontWindow===\"bezi\"?2:1,opacity:frontWindow===\"bezi\"?1:inactiveOpacity,transition:\"opacity 200ms ease\"},children:[/*#__PURE__*/_jsx(TopBar,{sidebarOpen:sidebarOpen,showToggles:!panelsLocked,onToggleSidebar:panelsLocked?undefined:toggleSidebar,threadOpen:threadOpen,onToggleThread:panelsLocked?undefined:threadFullscreen?toggleThreadFullscreen:undefined}),/*#__PURE__*/_jsxs(\"div\",{style:{flex:1,display:\"flex\",minHeight:0,// Positioning context for the overlay sidebar drawer.\nposition:\"relative\"},children:[!sidebarOverlay&&(sidebarOpen||sidebarClosing)&&/*#__PURE__*/_jsx(\"div\",{onAnimationEnd:handleSidebarAnimEnd,style:{display:\"flex\",flexShrink:0,// Present by default on start (no entrance\n// animation); only animate on close and on\n// subsequent user-triggered re-opens.\nanimation:sidebarClosing?\"bezi-sidebar-out 240ms cubic-bezier(0.22, 1, 0.36, 1) both\":dockedSidebarShouldAnimate?\"bezi-sidebar-in 240ms cubic-bezier(0.22, 1, 0.36, 1) both\":\"none\"},children:renderSidebar(false)}),/*#__PURE__*/_jsxs(\"div\",{style:{flex:1,minWidth:0,position:\"relative\",display:\"flex\",overflow:\"hidden\",// At the fullscreen breakpoint the thread covers\n// the content (z 30). When a script is open, lift\n// this region above it so the viewer takes the\n// thread's place while the thread runs behind.\nzIndex:threadFullscreen&&canvasTabs.length>0?31:undefined},children:[activePageSource!==undefined?activePage!==null&&activePage in planPages?/*#__PURE__*/_jsx(PlanView,{source:activePageSource,checkedTodos:checkedTodosMap[activePage??\"\"]??[],onToggleTodo:handleToggleTodo}):/*#__PURE__*/_jsx(PageView,{source:activePageSource}):/*#__PURE__*/_jsx(MainArea,{onSelectPage:handleSelectPage,workspaceName:workspaceName}),canvasTabs.length>0&&/*#__PURE__*/_jsx(\"div\",{onAnimationEnd:handleCanvasAnimEnd,style:{position:\"absolute\",inset:0,display:\"flex\",animation:`${canvasClosing?\"bezi-canvas-out\":\"bezi-canvas-in\"} 260ms cubic-bezier(0.22, 1, 0.36, 1) both`},children:/*#__PURE__*/_jsx(CanvasView,{tabs:canvasTabs,activeTab:activeCanvasTab,onSelectTab:setActiveCanvasTab,onClose:handleUserCloseCanvas})})]}),renderedScriptKeys.map(scriptKey=>/*#__PURE__*/_jsx(ThreadPanel,{script:scripts[scriptKey],mode:currentMode,// Held inactive while this script's intro\n    // clip plays, so the prompt doesn't start\n    // typing until the intro hands off.\n    active:scriptKey===activeScript&&!introActive,hidden:scriptKey!==activeScript||threadFullscreen&&!threadOpen,startAtApproval:startActiveAtApproval&&scriptKey===activeScript,startAtResponse:startActiveAtResponse&&scriptKey===activeScript,responseStartIndex:responseStartIndex,autoStart:autoStart,width:threadWidth,fullscreen:threadFullscreen,onModeChange:setCurrentMode,planName:scriptKey,onSelectPage:handleSelectPage,onOpenScript:openCanvas,onAddScript:addToCanvas,onCompleteTodo:idx=>handleCompleteTodo(scriptKey,idx),onAutoComplete:()=>handleScriptComplete(scriptKey),onUnityView:(tab,phase)=>handleUnityView(scriptKey,tab,phase),onUnityFinale:()=>handleUnityFinale(scriptKey)},`${scriptKey}-${resetCounts[scriptKey]??0}`)),sidebarOverlay&&(sidebarOpen||sidebarClosing)&&/*#__PURE__*/_jsx(\"div\",{onMouseDown:e=>e.stopPropagation(),onAnimationEnd:handleSidebarAnimEnd,style:{position:\"absolute\",top:4,left:4,bottom:4,zIndex:41,display:\"flex\",animation:`${sidebarClosing?\"bezi-sidebar-out\":\"bezi-sidebar-in\"} 240ms cubic-bezier(0.22, 1, 0.36, 1) both`},children:renderSidebar(true)})]})]})]}),showGameWindow&&/*#__PURE__*/_jsxs(\"div\",{onMouseDown:()=>{userChoseGameViewRef.current=true;setFrontWindow(\"unity\");},style:{position:\"absolute\",bottom:40,right:40,width:tokens.layout.unityWidth,zIndex:frontWindow===\"unity\"?2:1,cursor:frontWindow!==\"unity\"?\"pointer\":\"default\",borderRadius:tokens.radiusOuter},children:[screenBase&&/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",inset:0,background:screenBaseColor,borderRadius:tokens.radiusOuter}}),/*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",opacity:frontWindow===\"unity\"?1:inactiveOpacity,transition:\"opacity 200ms ease\"},children:/*#__PURE__*/_jsx(UnityWindow,{content:unityContent,activeTab:unityTab,onSelectTab:setUnityTab,runningPhase:unityPhase,locked:unityLocked,finaleActive:unityFinale,playState:unityPlayState,onPlayStateChange:setUnityPlayState,onVideoEnded:handleVideoEnded,onVideoPlaying:handleVideoPlaying})})]})]})]})});}// The full, ordered list of plan/script keys, derived from SCRIPTS. Exported so\n// wrapper components can populate their own \"Default Plan\" control from the same\n// source of truth instead of maintaining a parallel hardcoded list.\nexport const SCRIPT_KEYS=Object.keys(SCRIPTS);// The subset shown in the full Hero's sidebar + \"Default Plan\" control — every\n// thread except those surfaced only through BeziHeroToolApproval.\nconst VISIBLE_SCRIPT_KEYS=SCRIPT_KEYS.filter(key=>!HIDDEN_SCRIPT_KEYS.has(key));// Backward-compatible named export alias for callers that previously imported\n// HeroUniformScale from this module. This preserves default Hero behavior.\nexport const HeroUniformScale=Hero;addPropertyControls(Hero,{defaultScript:{type:ControlType.Enum,title:\"Default Plan\",defaultValue:DEFAULT_SCRIPT_KEY,options:VISIBLE_SCRIPT_KEYS,optionTitles:VISIBLE_SCRIPT_KEYS},mode:{type:ControlType.Enum,title:\"Mode\",defaultValue:\"Agent\",options:[\"Ask\",\"Plan\",\"Agent\"],optionTitles:[\"Ask\",\"Plan\",\"Agent\"]},showFrame:{type:ControlType.Boolean,title:\"Frame\",defaultValue:false,enabledTitle:\"On\",disabledTitle:\"Off\"},frameColor:{type:ControlType.Color,title:\"Frame Color\",defaultValue:tokens.bgSurface0,hidden:props=>!props.showFrame},frameRadius:{type:ControlType.Number,title:\"Frame Radius\",defaultValue:24,min:0,max:200,step:1,unit:\"px\",hidden:props=>!props.showFrame},screenBase:{type:ControlType.Boolean,title:\"Screen Base\",defaultValue:false,enabledTitle:\"On\",disabledTitle:\"Off\"},screenBaseColor:{type:ControlType.Color,title:\"Screen Base Color\",defaultValue:tokens.bgSurface0,hidden:props=>!props.screenBase},inactiveOpacity:{type:ControlType.Number,title:\"Inactive Opacity\",defaultValue:.8,min:0,max:1,step:.05},sidebarBreakpoint:{type:ControlType.Number,title:\"Sidebar Collapse\",defaultValue:tokens.layout.sidebarOverlayBreakpoint,min:400,max:1200,step:10,unit:\"px\"},canvasReopen:{type:ControlType.Enum,title:\"Canvas Reopen\",defaultValue:\"lockFlow\",options:[\"lockFlow\",\"followPlan\",\"manual\"],optionTitles:[\"Lock during generation\",\"Follow plan (open once)\",\"Manual only\"]}});\nexport const __FramerMetadata__ = {\"exports\":{\"PageDef\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"UniformStage\":{\"type\":\"reactComponent\",\"name\":\"UniformStage\",\"slots\":[\"children\"],\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"Hero\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"AgentBlock\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"Demo\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"HeroUniformScale\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"APPROVAL_SCRIPT_KEY\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"HeroContent\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"UserMessage\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"HeroProps\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"Connection\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"AgentResponse\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"still\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"Icon\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useInView\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"UniformStageProps\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useElementWidth\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"DiffLine\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"Mode\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"SCRIPT_KEYS\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"TopBar\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"GAME_STILL\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"DEFAULT_SCRIPT_KEY\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"tokens\":{\"type\":\"variable\",\"annotations\":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