@codeyam-editor/codeyam-editor 0.1.9 → 0.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,21 @@
1
+ import{j as e}from"./markdown-C9tbsVHX.js";import{b as d}from"./react-nrLBr15I.js";import{C,a as ie,u as Hs,_ as zs,b as Gs}from"./useServerIdentity-CVuHTzjg.js";import{P as qs,c as $s,L as w,C as st,S as at,M as ot,f as Vs,T as nt,e as Ws,a as le,b as rt,d as Us,g as L,N as ee,h as Js,i as it,j as lt,k as ce,l as te,m as ct,n as _t,Q as H,D as dt,o as Ks,p as Qs,s as Ys,F as pt,q as mt,E as ut,r as Xs,R as _e,t as Zs,u as xt,v as E,X as se,w as k,I as gt,x as bt,y as vt,z as ht,A as V,B as ae,G as ft,H as We,J as St,K as yt,O as jt,U as Pt,V as Ct,W as ea,Y as ta,Z as sa,_ as aa,$ as oa,a0 as na,a1 as ra,a2 as ia,a3 as la,a4 as ca,a5 as _a,a6 as da,a7 as pa,a8 as ma,a9 as ua,aa as xa,ab as ga,ac as ba,ad as va,ae as ha,af as fa,ag as Sa,ah as ya,ai as ja,aj as Pa,ak as Ca,al as wa,am as Na,an as ka,ao as Ta,ap as Ra,aq as Da,ar as Ea,as as Ma,at as Ba,au as Oa,av as Aa,aw as Ia,ax as La,ay as Fa,az as Ha,aA as za,aB as Ga,aC as qa,aD as $a,aE as Va,aF as Wa,aG as Ua,aH as Ja,aI as Ka,aJ as Qa,aK as Ya,aL as Xa,aM as Za,aN as eo,aO as to,aP as so,aQ as ao,aR as oo,aS as no,aT as ro,aU as io,aV as lo,aW as co,aX as _o,aY as po,aZ as mo,a_ as uo,a$ as xo,b0 as go,b1 as bo,b2 as vo,b3 as ho,b4 as fo,b5 as So,b6 as yo,b7 as jo,b8 as Po,b9 as Co,ba as wo,bb as No,bc as ko,bd as wt,be as To,bf as Ro,bg as Do,bh as Eo,bi as Mo,bj as Bo,bk as Oo,bl as Ao,bm as Io,bn as Lo,bo as Fo,bp as Ho,bq as zo,br as Go,bs as qo,bt as $o,bu as Vo,bv as Wo,bw as Uo,bx as Jo,by as Ko,bz as Qo,bA as Yo,bB as Xo,bC as Zo,bD as en,bE as tn,bF as sn,bG as an,bH as on,bI as nn,bJ as rn,bK as ln,bL as cn,bM as _n,bN as dn,bO as pn,bP as mn,bQ as un,bR as xn,bS as gn,bT as bn,bU as vn,bV as hn,bW as fn,bX as Sn,bY as yn,bZ as jn,b_ as Pn,b$ as Cn,c0 as wn,c1 as Nn,c2 as kn,c3 as Tn,c4 as Rn,c5 as Dn,c6 as En,c7 as Mn,c8 as Bn,c9 as On,ca as An,cb as In,cc as Ln,cd as Fn,ce as Hn,cf as zn,cg as Gn,ch as qn,ci as $n,cj as Vn,ck as Wn,cl as Un,cm as Jn,cn as Kn,co as Qn,cp as Yn,cq as Xn,cr as Zn,cs as er,ct as tr,cu as sr,cv as ar,cw as or,cx as nr,cy as rr,cz as ir,cA as lr,cB as cr,cC as _r,cD as dr,cE as pr,cF as mr,cG as ur,cH as xr,cI as gr,cJ as br,cK as vr,cL as hr,cM as fr,cN as Sr,cO as yr,cP as jr,cQ as Pr,cR as Cr,cS as wr,cT as Nr,cU as kr,cV as Tr,cW as Rr,cX as Dr,cY as Er,cZ as Mr,c_ as Br,c$ as Or,d0 as Ar,d1 as Ir,d2 as Lr,d3 as Fr,d4 as Hr,d5 as zr,d6 as Gr,d7 as qr,d8 as $r,d9 as Vr,da as Wr,db as Ur,dc as Jr,dd as Kr,de as Qr,df as Yr,dg as Xr,dh as Zr,di as ei,dj as ti,dk as si,dl as ai,dm as oi,dn as ni,dp as ri,dq as ii,dr as li,ds as ci,dt as _i,du as di,dv as pi,dw as mi,dx as ui,dy as xi,dz as gi,dA as bi,dB as vi,dC as hi,dD as fi,dE as Si,dF as yi,dG as ji,dH as Pi,dI as Ci,dJ as wi,dK as Ni,dL as ki,dM as Ti,dN as Ri,dO as Di,dP as Ei,dQ as Mi,dR as Bi,dS as Oi,dT as Ai,dU as Ii,dV as Li,dW as Fi,dX as Hi,dY as zi,dZ as Gi,d_ as qi,d$ as $i,e0 as Vi,e1 as Wi,e2 as Ui,e3 as Ji,e4 as Ki,e5 as Qi,e6 as Yi,e7 as Xi,e8 as Zi,e9 as el,ea as tl,eb as sl,ec as al,ed as ol,ee as nl,ef as rl,eg as il,eh as ll,ei as cl,ej as _l,ek as dl,el as pl,em as ml,en as ul,eo as xl,ep as gl,eq as bl,er as vl,es as hl,et as fl,eu as Sl,ev as yl,ew as jl,ex as Pl,ey as Cl,ez as wl,eA as Nl,eB as kl,eC as Tl,eD as Rl,eE as Dl,eF as El,eG as Ml,eH as Bl,eI as Ol,eJ as Al,eK as Il,eL as Ll,eM as Fl,eN as Hl,eO as zl,eP as Gl,eQ as ql,eR as $l,eS as Vl,eT as Wl,eU as Ul,eV as Jl,eW as Kl,eX as Ql,eY as Yl,eZ as Xl,e_ as Zl,e$ as ec,f0 as tc,f1 as sc,f2 as ac,f3 as oc,f4 as nc,f5 as rc,f6 as ic,f7 as lc,f8 as cc,f9 as _c,fa as dc,fb as pc,fc as mc,fd as uc,fe as xc,ff as gc,fg as bc,fh as vc,fi as hc,fj as fc,fk as Sc,fl as yc,fm as jc,fn as Pc,fo as Cc,fp as wc,fq as Nc,fr as kc,fs as Tc,ft as Rc,fu as Dc,fv as Ec,fw as Mc,fx as Bc,fy as Oc,fz as Ac,fA as Ic,fB as Lc,fC as Fc,fD as Hc,fE as zc,fF as Gc,fG as qc,fH as $c,fI as Vc,fJ as Wc,fK as Uc,fL as Jc,fM as Kc,fN as Qc,fO as Yc,fP as Xc,fQ as Zc,fR as e_,fS as t_,fT as s_,fU as a_,fV as o_,fW as n_,fX as r_,fY as i_,fZ as l_,f_ as c_,f$ as __,g0 as d_,g1 as p_,g2 as m_,g3 as u_,g4 as x_,g5 as g_,g6 as b_,g7 as v_,g8 as h_,g9 as f_,ga as S_,gb as y_,gc as j_,gd as P_,ge as C_,gf as w_,gg as N_,gh as k_,gi as T_,gj as R_,gk as D_,gl as E_,gm as M_,gn as B_,go as O_,gp as A_,gq as I_,gr as L_,gs as F_,gt as H_,gu as z_,gv as G_,gw as q_,gx as $_,gy as V_,gz as W_,gA as U_,gB as J_,gC as K_,gD as Q_,gE as Y_,gF as X_,gG as Z_,gH as ed,gI as td,gJ as sd,gK as ad,gL as od,gM as nd,gN as rd,gO as id,gP as ld,gQ as cd,gR as _d,gS as dd,gT as pd,gU as md,gV as ud,gW as xd,gX as gd,gY as bd,gZ as vd,g_ as hd,g$ as fd,h0 as Sd,h1 as yd,h2 as jd,h3 as Pd,h4 as Cd,h5 as wd,h6 as Nd,h7 as kd,h8 as Td,h9 as Rd,ha as Dd,hb as Ed,hc as Md,hd as Bd,he as Od,hf as Ad,hg as Id,hh as Ld,hi as Fd,hj as Hd,hk as zd,hl as Gd,hm as qd,hn as $d,ho as Vd,hp as Wd,hq as Ud,hr as Jd,hs as Kd,ht as Qd,hu as Yd,hv as Xd,hw as Zd,hx as ep,hy as tp,hz as sp,hA as ap,hB as op,hC as np,hD as rp,hE as ip,hF as lp,hG as cp,hH as _p,hI as dp,hJ as pp,hK as mp,hL as up,hM as xp,hN as gp,hO as bp,hP as vp,hQ as hp,hR as fp,hS as Sp,hT as yp,hU as jp,hV as Pp,hW as Cp,hX as wp,hY as Np,hZ as kp,h_ as Tp,h$ as Rp,i0 as Dp,i1 as Ep,i2 as Mp,i3 as Bp,i4 as Op,i5 as Ap,i6 as Ip,i7 as Lp,i8 as Fp,i9 as Hp,ia as zp,ib as Gp,ic as qp,id as $p,ie as Vp,ig as Wp,ih as Up,ii as Jp,ij as Kp,ik as Qp,il as Yp,im as Xp,io as Zp,ip as em,iq as tm,ir as sm,is as am,it as om,iu as nm,iv as rm,iw as im,ix as lm,iy as cm,iz as _m,iA as dm,iB as pm,iC as mm,iD as um,iE as xm,iF as gm,iG as bm,iH as vm,iI as hm,iJ as fm,iK as Sm,iL as ym,iM as jm,iN as Pm,iO as Cm,iP as wm,iQ as Nm,iR as km,iS as Tm,iT as Rm,iU as Dm,iV as Em,iW as Mm,iX as Bm,iY as Om,iZ as Am,i_ as Im,i$ as Lm,j0 as Fm,j1 as Hm,j2 as zm,j3 as Gm,j4 as qm,j5 as $m,j6 as Vm,j7 as Wm,j8 as Um,j9 as Jm,ja as Km,jb as Qm,jc as Ym,jd as Xm,je as Zm,jf as eu,jg as tu,jh as su,ji as au,jj as ou,jk as nu,jl as ru,jm as iu,jn as lu,jo as cu,jp as _u,jq as du,jr as pu,js as mu,jt as uu,ju as xu,jv as gu,jw as bu,jx as vu,jy as hu,jz as fu,jA as Su,jB as yu,jC as ju,jD as Pu,jE as Cu,jF as wu,jG as Nu,jH as ku,jI as Tu,jJ as Ru,jK as Du,jL as Eu,jM as Mu,jN as Bu,jO as Ou,jP as Au,jQ as Iu,jR as Lu,jS as Fu,jT as Hu,jU as zu,jV as Gu,jW as qu,jX as $u,jY as Vu,jZ as Wu,j_ as Uu,j$ as Ju,k0 as Ku,k1 as Qu,k2 as Yu,k3 as Xu,k4 as Zu,k5 as ex,k6 as tx,k7 as sx,k8 as ax,k9 as ox,ka as nx,kb as rx,kc as ix,kd as lx,ke as cx,kf as _x,kg as dx,kh as px,ki as mx,kj as ux,kk as xx,kl as gx,km as bx,kn as vx,ko as hx,kp as fx,kq as Sx,kr as yx,ks as jx,kt as Px,ku as Cx,kv as wx,kw as Nx,kx,ky as Tx,kz as Rx,kA as Dx,kB as Ex,kC as Mx,kD as Bx,kE as Ox,kF as Ax,kG as Ix,kH as Lx,kI as Fx,kJ as Hx,kK as zx,kL as Gx,kM as qx,kN as $x,kO as Vx,kP as Wx,kQ as Ux,kR as Jx,kS as Kx,kT as Qx,kU as Yx,kV as Xx,kW as Zx,kX as eg,kY as tg,kZ as sg,k_ as ag,k$ as og,l0 as ng,l1 as rg,l2 as ig,l3 as lg,l4 as cg,l5 as _g,l6 as dg,l7 as pg,l8 as mg,l9 as ug,la as xg,lb as gg,lc as bg,ld as vg,le as hg,lf as fg,lg as Sg,lh as yg,li as jg,lj as Pg,lk as Cg,ll as wg,lm as Ng,ln as kg,lo as Tg,lp as Rg,lq as Dg,lr as Eg,ls as Mg,lt as Bg,lu as Og,lv as Ag,lw as Ig,lx as Lg,ly as Fg,lz as Hg,lA as zg,lB as Gg,lC as qg,lD as $g,lE as Vg,lF as Wg,lG as Ug,lH as Jg,lI as Kg,lJ as Qg,lK as Yg,lL as Xg,lM as Zg,lN as eb,lO as tb,lP as sb,lQ as ab,lR as ob,lS as nb,lT as rb,lU as ib,lV as lb,lW as cb,lX as _b,lY as db,lZ as pb,l_ as mb,l$ as ub,m0 as xb,m1 as gb,m2 as bb,m3 as vb,m4 as hb,m5 as fb,m6 as Sb,m7 as yb,m8 as jb,m9 as Pb,ma as Cb,mb as wb,mc as Nb,md as kb,me as Tb,mf as Rb,mg as Db,mh as Eb,mi as Mb,mj as Bb,mk as Ob,ml as Ab,mm as Ib,mn as Lb,mo as Fb,mp as Hb,mq as zb,mr as Gb,ms as qb,mt as $b,mu as Vb,mv as Wb,mw as Ub,mx as Jb,my as Kb,mz as Qb,mA as Yb,mB as Xb,mC as Zb,mD as ev,mE as tv,mF as sv,mG as av,mH as ov,mI as nv,mJ as rv,mK as iv,mL as lv,mM as cv,mN as _v,mO as dv,mP as pv,mQ as mv,mR as uv,mS as xv,mT as gv,mU as bv,mV as vv,mW as hv,mX as fv,mY as Sv,mZ as yv,m_ as jv,m$ as Pv,n0 as Cv,n1 as wv,n2 as Nv,n3 as kv,n4 as Tv,n5 as Rv,n6 as Dv,n7 as Ev,n8 as Mv,n9 as Bv,na as Ov,nb as Av,nc as Iv,nd as Lv,ne as Fv,nf as Hv,ng as zv,nh as Gv,ni as qv,nj as $v,nk as Vv,nl as Wv,nm as Uv,nn as Jv,no as Kv,np as Qv,nq as Yv,nr as Xv,ns as Zv,nt as eh,nu as th,nv as sh,nw as ah,nx as oh,ny as nh,nz as rh,nA as ih,nB as lh,nC as ch,nD as _h,nE as dh,nF as ph,nG as mh,nH as uh,nI as xh,nJ as gh,nK as bh,nL as vh,nM as hh,nN as fh,nO as Sh,nP as yh,nQ as jh,nR as Ph,nS as Ch,nT as wh,nU as Nh,nV as kh,nW as Th,nX as Rh,nY as Dh,nZ as Eh,n_ as Mh,n$ as Bh,o0 as Oh,o1 as Ah,o2 as Ih,o3 as Lh,o4 as Fh,o5 as Hh,o6 as zh,o7 as Gh,o8 as qh,o9 as $h,oa as Vh,ob as Wh,oc as Uh,od as Jh,oe as Kh,of as Qh,og as Yh,oh as Xh,oi as Zh,oj as ef,ok as tf,ol as sf,om as af,on as of,oo as nf,op as rf,oq as lf,or as cf,os as _f,ot as df,ou as pf,ov as mf,ow as uf,ox as xf,oy as gf,oz as bf,oA as vf,oB as hf,oC as ff,oD as Sf,oE as yf,oF as jf,oG as Pf,oH as Cf,oI as wf,oJ as Nf,oK as kf,oL as Tf,oM as Rf,oN as Df,oO as Ef,oP as Mf,oQ as Bf,oR as Of,oS as Af,oT as If,oU as Lf,oV as Ff,oW as Hf,oX as zf,oY as Gf,oZ as qf,o_ as $f,o$ as Vf,p0 as Wf,p1 as Uf,p2 as Jf,p3 as Kf,p4 as Qf,p5 as Yf,p6 as Xf,p7 as Zf,p8 as e0,p9 as t0,pa as s0,pb as a0,pc as o0,pd as n0,pe as r0,pf as i0,pg as l0,ph as c0,pi as _0,pj as d0,pk as p0,pl as m0,pm as u0,pn as x0,po as g0,pp as b0,pq as v0,pr as h0,ps as f0,pt as S0,pu as y0,pv as j0,pw as P0,px as C0,py as w0,pz as N0,pA as k0,pB as T0,pC as R0,pD as D0,pE as E0,pF as M0,pG as B0,pH as O0,pI as A0,pJ as I0,pK as L0,pL as F0,pM as H0,pN as z0,pO as G0,pP as q0,pQ as $0,pR as V0,pS as W0,pT as U0,pU as J0,pV as K0,pW as Q0,pX as Y0,pY as X0,pZ as Z0,p_ as eS,p$ as tS,q0 as sS,q1 as aS,q2 as oS,q3 as nS,q4 as rS,q5 as iS,q6 as lS,q7 as cS,q8 as _S,q9 as dS,qa as pS,qb as mS,qc as uS,qd as xS,qe as gS,qf as bS,qg as vS,qh as hS,qi as fS,qj as SS,qk as yS,ql as jS,qm as PS,qn as CS,qo as wS,qp as NS,qq as kS,qr as TS,qs as RS,qt as DS,qu as ES,qv as MS,qw as BS,qx as OS,qy as AS,qz as IS,qA as LS,qB as FS,qC as HS,qD as zS,qE as GS,qF as qS,qG as $S,qH as VS,qI as WS,qJ as US,qK as JS,qL as KS,qM as QS,qN as YS,qO as XS,qP as ZS,qQ as ey,qR as ty,qS as sy,qT as ay,qU as oy,qV as ny,qW as ry,qX as iy,qY as ly,qZ as cy,q_ as _y,q$ as dy,r0 as py,r1 as my,r2 as uy,r3 as xy,r4 as gy,r5 as by,r6 as vy,r7 as hy,r8 as fy,r9 as Sy,ra as yy,rb as jy,rc as Py,rd as Cy,re as wy,rf as Ny,rg as ky,rh as Ty,ri as Ry,rj as Dy,rk as Ey,rl as My,rm as By,rn as Oy,ro as Ay,rp as Iy,rq as Ly,rr as Fy,rs as Hy,rt as zy,ru as Gy,rv as qy,rw as $y,rx as Vy,ry as Wy,rz as Uy,rA as Jy,rB as Ky,rC as Qy,rD as Yy,rE as Xy,rF as Zy,rG as ej,rH as tj,rI as sj,rJ as aj,rK as oj,rL as nj,rM as rj,rN as ij,rO as lj,rP as cj,rQ as _j,rR as dj,rS as pj,rT as mj,rU as uj,rV as xj,rW as gj,rX as bj,rY as vj,rZ as hj,r_ as fj,r$ as Sj,s0 as yj,s1 as jj,s2 as Pj,s3 as Cj,s4 as wj,s5 as Nj,s6 as kj,s7 as Tj,s8 as Rj,s9 as Dj,sa as Ej,sb as Mj,sc as Bj,sd as Oj,se as Aj,sf as Ij,sg as Lj,sh as Fj,si as Hj,sj as zj,sk as Gj,sl as qj,sm as $j,sn as Vj,so as Wj,sp as Uj,sq as Jj,sr as Kj,ss as Qj,st as Yj,su as Xj,sv as Zj,sw as eP,sx as tP,sy as sP,sz as aP,sA as oP,sB as nP,sC as rP,sD as iP,sE as lP,sF as cP,sG as _P,sH as dP,sI as pP,sJ as mP,sK as uP,sL as xP,sM as gP,sN as bP,sO as vP,sP as hP,sQ as fP,sR as SP,sS as yP,sT as jP,sU as PP,sV as CP,sW as wP,sX as NP,sY as kP,sZ as TP,s_ as RP,s$ as DP,t0 as EP,t1 as MP,t2 as BP,t3 as OP,t4 as AP,t5 as IP,t6 as LP,t7 as FP,t8 as HP,t9 as zP,ta as GP,tb as qP,tc as $P,td as VP,te as WP,tf as UP,tg as JP,th as KP,ti as QP,tj as YP,tk as XP,tl as ZP,tm as eC,tn as tC,to as sC,tp as aC,tq as oC,tr as nC,ts as rC,tt as iC,tu as lC,tv as cC,tw as _C,tx as dC,ty as pC,tz as mC,tA as uC,tB as xC,tC as gC,tD as bC,tE as vC,tF as hC,tG as fC,tH as SC,tI as yC,tJ as jC,tK as PC,tL as CC,tM as wC,tN as NC,tO as kC,tP as TC,tQ as RC,tR as DC,tS as EC,tT as MC,tU as BC,tV as OC,tW as AC,tX as IC,tY as LC,tZ as FC,t_ as HC,t$ as zC,u0 as GC,u1 as X}from"./EditorShell-CPV5vhjo.js";import{u as qC,A as J,S as Nt,M as kt,f as $C,a as Tt,F as Rt,b as Dt,c as VC,p as Ue,e as U,d as Et,g as Mt,h as Bt,i as WC,j as UC,k as JC,C as KC,l as QC,R as YC,m as XC,n as ZC,E as ew,o as tw,q as sw,r as aw,s as ow,T as nw,t as rw,v as iw,w as lw,x as cw,D as _w,y as dw,z as pw,B as mw,G as uw,H as xw,I as gw,J as bw,K as vw,L as hw,N as fw,O as Sw,P as yw,Q as jw,U as Pw,V as Cw,W as ww,X as Nw,Y as kw,Z as Tw,_ as Rw,$ as Dw,a0 as Ew,a1 as Mw,a2 as Bw,a3 as Ow,a4 as Aw,a5 as Iw,a6 as Lw,a7 as Fw,a8 as Hw,a9 as zw,aa as Gw,ab as qw,ac as $w,ad as Vw,ae as Ww,af as Uw,ag as Jw,ah as Kw,ai as Qw,aj as Yw,ak as Xw,al as Zw,am as eN,an as tN,ao as sN,ap as aN,aq as oN,ar as nN,as as rN,at as iN,au as lN,av as cN,aw as _N,ax as dN,ay as pN,az as mN,aA as uN,aB as xN,aC as gN,aD as bN,aE as vN,aF as hN,aG as fN,aH as SN,aI as yN,aJ as jN,aK as PN,aL as CN,aM as wN,aN as NN,aO as kN,aP as TN,aQ as RN,aR as DN,aS as EN,aT as MN,aU as BN,aV as ON,aW as AN,aX as IN,aY as LN,aZ as FN,a_ as HN,a$ as zN,b0 as GN,b1 as qN,b2 as $N,b3 as VN,b4 as WN,b5 as UN,b6 as JN,b7 as KN,b8 as QN,b9 as YN,ba as XN,bb as ZN,bc as ek,bd as tk,be as sk,bf as ak,bg as ok,bh as nk,bi as rk,bj as ik,bk as lk,bl as ck,bm as _k,bn as dk,bo as pk,bp as mk,bq as uk,br as xk,bs as gk}from"./ScenarioDataPanel-DHAHyraq.js";import{V as bk,S as vk,P as hk,a as fk,B as Sk,b as yk,c as jk,d as Pk,e as Ck,_ as wk,f as Nk,g as kk,h as Tk}from"./StepsSimulator-CymGgfbu.js";import{M as Ot,_ as Rk}from"./Markdown-Chgdf3PW.js";import{p as Dk}from"./index-sW8wcg7v.js";import{S as At,B as F,M as O,a as W,t as B,I as Ek,D as Mk,b as Bk,c as Ok,d as Ak,e as Ik,f as Lk,g as Fk,h as Hk,i as zk,j as Gk,k as qk,C as $k,l as Vk,_ as Wk,m as Uk,n as Jk,o as Kk,p as Qk,q as Yk,r as Xk,s as Zk,u as eT,v as tT,w as sT,x as aT,y as oT,z as nT}from"./ContainerInspector-DiN91foX.js";import{O as rT,a as iT,P as lT,C as cT,b as _T,c as dT,d as pT,e as mT,f as uT,g as xT,R as gT,T as bT,h as vT,i as hT,j as fT,k as ST,l as yT,m as jT,_ as PT,n as CT,o as wT,p as NT}from"./ProjectLauncherScreen-E0NYYiwy.js";import{S as kT,_ as TT}from"./ScenarioDataPanelFullPage-CHIWip3n.js";import"./useEvents-S3Qk1Y_d.js";import"./xterm--24IGk-x.js";const RT=Object.freeze(Object.defineProperty({__proto__:null,get ScenarioRenderer(){return Ns}},Symbol.toStringTag,{value:"Module"}));function It({previewOrigin:t="https://vm-2.preview.fleet.codeyam.com"}){return e.jsx("div",{style:{position:"relative",width:"100%",height:420,background:"#1e1e1e"},children:e.jsx(qs,{previewOrigin:t,onRecheck:()=>{}})})}const DT=Object.freeze(Object.defineProperty({__proto__:null,PreviewSignInNoticeShowcase:It},Symbol.toStringTag,{value:"Module"}));function de({files:t}){if(t.length===0)return null;const{added:s,modified:a,deleted:o}=$s(t);return e.jsxs("span",{className:"text-xs text-[var(--text-muted)]",children:[s>0&&e.jsxs("span",{className:"text-[var(--accent-green)]",children:["+",s," "]}),a>0&&e.jsxs("span",{className:"text-[var(--accent-orange)]",children:["~",a," "]}),o>0&&e.jsxs("span",{className:"text-[var(--accent-red)]",children:["-",o," "]}),"file",t.length!==1?"s":""]})}const ET=Object.freeze(Object.defineProperty({__proto__:null,FileChangeSummary:de},Symbol.toStringTag,{value:"Module"}));function pe({entry:t}){return e.jsxs("div",{className:"mt-3 pt-3",style:{borderTop:"1px solid var(--border-default)"},children:[t.userRequest&&e.jsx(w,{label:"Request",children:e.jsx(st,{children:t.userRequest})}),e.jsx(w,{label:"Description",children:e.jsx(Ot,{variant:"compact",children:t.description})}),t.scenarioScreenshots.length>0&&e.jsx(w,{label:"Scenarios",children:e.jsx(at,{screenshots:t.scenarioScreenshots})}),t.modifiedFiles.length>0&&e.jsx(w,{label:"Modified Files",children:e.jsx(ot,{files:t.modifiedFiles})}),t.commitSha&&e.jsxs("p",{className:"text-xs",style:{color:"var(--text-dim)"},children:["Commit: ",e.jsx("span",{className:"font-mono",children:t.commitSha.slice(0,7)}),t.commitMessage&&` — ${t.commitMessage}`]})]})}const MT=Object.freeze(Object.defineProperty({__proto__:null,JournalEntryDetails:pe},Symbol.toStringTag,{value:"Module"}));function me({entry:t}){const[s,a]=d.useState(!1);return e.jsxs("div",{className:"rounded-lg border p-4",style:{borderColor:"var(--border-default)",background:"var(--bg-surface)"},children:[e.jsxs("button",{onClick:()=>a(!s),className:"flex w-full items-start gap-3 text-left",children:[e.jsxs("div",{className:"flex-1",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(ue,{type:t.type}),e.jsx("h3",{className:"text-sm font-medium",style:{color:"var(--text-secondary)"},children:t.title})]}),e.jsxs("div",{className:"mt-1 flex items-center gap-3",children:[e.jsx("span",{className:"text-xs",style:{color:"var(--text-dim)"},children:Vs(t.timestamp)}),t.testResults&&e.jsx(nt,{total:t.testResults.total,passed:t.testResults.passed,failed:t.testResults.failed}),e.jsx(de,{files:t.modifiedFiles})]})]}),e.jsx("span",{className:"text-xs mt-1",style:{color:"var(--text-dim)"},children:s?"▼":"▶"})]}),s&&e.jsx(pe,{entry:t})]})}function ue({type:t}){return e.jsx("span",{className:`text-xs font-medium ${Ws(t)}`,children:t})}const BT=Object.freeze(Object.defineProperty({__proto__:null,EntryTypeBadge:ue,JournalEntryCard:me},Symbol.toStringTag,{value:"Module"}));function Lt({entries:t,total:s,hasMore:a,loading:o,loadingMore:n,error:r,onLoadMore:i}){if(o)return e.jsx("div",{className:"py-12 text-center text-[var(--text-muted)]",children:"Loading journal..."});if(r)return e.jsx("div",{className:"py-12",children:e.jsx(C,{text:`Failed to load journal: ${r}`,className:"text-sm text-[var(--accent-red)]",rowClassName:"justify-center"})});if(t.length===0)return e.jsxs("div",{className:"py-12 text-center text-[var(--text-dim)]",children:[e.jsx("p",{children:"No journal entries yet."}),e.jsx("p",{className:"mt-2 text-sm text-[var(--text-dim)]",children:"Journal entries capture what was requested, what changed, and the state of tests and scenarios."})]});const c=Math.max(s,t.length);return e.jsxs("div",{className:"overflow-y-auto px-6 py-4",style:{maxHeight:"calc(100vh - 110px)"},children:[e.jsxs("p",{className:"mb-4 text-sm text-[var(--text-muted)]",children:[t.length," of ",c," journal entr",c===1?"y":"ies"]}),e.jsx("div",{className:"flex flex-col gap-3",children:t.map(_=>e.jsx(me,{entry:_},_.timestamp))}),a?e.jsx("div",{className:"mt-4 flex justify-center",children:e.jsx("button",{type:"button",onClick:i,disabled:n,className:"rounded border border-[var(--border)] px-3 py-1 text-sm text-[var(--text-muted)] hover:bg-[var(--bg-subtle)] disabled:opacity-50",children:n?"Loading...":"Load older entries"})}):null]})}const OT=Object.freeze(Object.defineProperty({__proto__:null,JournalView:Lt},Symbol.toStringTag,{value:"Module"})),xe=[{key:"api-key",term:"API key",aka:["secret key","access token"],category:"Security",body:`**What is it?** A long secret your app uses to identify itself to another service.
2
+
3
+ **Why?** Any time your app talks to a paid or protected outside service.
4
+
5
+ **The catch?** Anyone who has it can act as you — keep it out of public code.`},{key:"database",term:"Database",aka:["db","data store"],category:"Infrastructure",body:`**What is it?** Where your app keeps information that has to stick around.
6
+
7
+ **Why?** As soon as your app must remember anything between visits.
8
+
9
+ **The catch?** The data is precious — you'll want backups.`},{key:"domain",term:"Domain",aka:["domain name","custom domain"],category:"Infrastructure",body:`**What is it?** The human-friendly name people type to find your app, like \`myapp.com\`.
10
+
11
+ **Why?** For a memorable, professional address. You can skip it at first.
12
+
13
+ **The catch?** Rented yearly, usually $10–$20 — you don't own it forever.`},{key:"hosting",term:"Hosting",aka:["web hosting","host"],category:"Infrastructure",body:`**What is it?** Renting a computer that stays on all the time so others can reach your app.
14
+
15
+ **Why?** The moment anyone other than you needs to use it.
16
+
17
+ **The catch?** Often free or a few dollars; costs grow with traffic.`},{key:"ssl-https",term:"SSL / HTTPS",aka:["HTTPS","the padlock","SSL certificate"],category:"Security",body:`**What is it?** The padlock by a web address — it encrypts the connection.
18
+
19
+ **Why?** Always, for anything on the public internet.
20
+
21
+ **The catch?** Almost none — most hosts set it up free and automatically.`}];function ge(t){const s=new Map(t.map(a=>[a.key,a]));return{concepts:t,byKey:a=>s.get(a)}}function Ft(){return e.jsx(le.Provider,{value:ge(xe),children:e.jsx("div",{className:"learn-screen",style:{maxWidth:520,padding:24,fontSize:15,lineHeight:1.7},children:e.jsxs("p",{style:{color:"var(--text-secondary, #b6bdcc)"},children:["To put your app online you'll set up"," ",e.jsx(L,{k:"hosting",children:"hosting"})," and point a"," ",e.jsx(L,{k:"domain",children:"domain"})," at it. Your host turns on"," ",e.jsx(L,{k:"ssl-https",children:"HTTPS"})," automatically, and if your app saves anything you'll add a"," ",e.jsx(L,{k:"database",children:"database"})," and an"," ",e.jsx(L,{k:"api-key",children:"API key"})," or two. Tap any underlined word to learn what it means."]})})})}function Ht(){return e.jsx(le.Provider,{value:ge(xe),children:e.jsx(Us,{onBack:()=>{}})})}const AT=[{key:"run-locally",name:"Run it locally",desc:"Start the app on your own machine.",icon:"terminal",status:"available"},{key:"hosting",name:"Hosting & going live",desc:"Put your app online with a link.",icon:"cloud",status:"next"},{key:"real-data",name:"Real data",desc:"Read and write real, saved information.",icon:"database",status:"available"},{key:"accounts",name:"Accounts & sign-in",desc:"Let people log in safely.",icon:"lock",status:"available"}];function zt(){return e.jsx(le.Provider,{value:ge(xe),children:e.jsx(rt,{topics:AT,onBack:()=>{},onOpenHosting:()=>{},onOpenTopic:()=>{},onOpenConcepts:()=>{}})})}const IT=Object.freeze(Object.defineProperty({__proto__:null,ConceptTermShowcase:Ft,ConceptsGlossaryScreenShowcase:Ht,LearnSetupConceptsNudgeShowcase:zt},Symbol.toStringTag,{value:"Module"}));function Gt({apps:t,selected:s,onChange:a}){return t.length===0?null:e.jsxs("div",{className:"flex gap-1",children:[t.map(o=>e.jsx(ee,{href:Js(o.dir),onNavigate:()=>a(o.dir),className:`rounded-md px-3 py-1 text-sm ${s===o.dir?"bg-[var(--bg-input)] text-[var(--text-primary)]":"text-[var(--text-muted)] hover:text-[var(--text-secondary)]"}`,children:o.name},o.dir)),e.jsx(ee,{href:Dk("home"),onNavigate:()=>a(null),className:`rounded-md px-3 py-1 text-sm ${s===null?"bg-[var(--bg-input)] text-[var(--text-primary)]":"text-[var(--text-muted)] hover:text-[var(--text-secondary)]"}`,children:"All"})]})}const LT=Object.freeze(Object.defineProperty({__proto__:null,AppSelector:Gt},Symbol.toStringTag,{value:"Module"}));function qt(){return e.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-slate-500 space-y-4 px-10 text-center",children:[e.jsx("div",{className:"text-lg font-medium text-slate-400",children:"Ready to build"}),e.jsx("p",{className:"max-w-md",children:"Your first session will start automatically. You can queue changes or wait for the project to initialize."})]})}const FT=Object.freeze(Object.defineProperty({__proto__:null,BuildTabReadyToBuildPlaceholder:qt},Symbol.toStringTag,{value:"Module"}));function K(){return qC(()=>!0,!0),null}const HT=Object.freeze(Object.defineProperty({__proto__:null,ReadyAgentRegistrar:K},Symbol.toStringTag,{value:"Module"}));function $t({silentMs:t,providerLabel:s}){const[a,o]=d.useState(!1);return a?null:e.jsxs(J,{children:[e.jsx(K,{}),e.jsx(it,{silentMs:t,onDismiss:()=>o(!0),providerLabel:s})]})}const zT=Object.freeze(Object.defineProperty({__proto__:null,StuckTurnBannerAgentReadyShowcase:$t},Symbol.toStringTag,{value:"Module"}));function Vt({step:t,label:s,providerLabel:a}){const[o,n]=d.useState(!1);return o?e.jsx("div",{className:"bg-black px-4 py-3 text-xs text-[#666]",children:"Banner dismissed — the terminal is unobstructed. The backend re-arms its one-shot latch on the next output or keystroke, so a later off-gate stop raises it again."}):e.jsxs(J,{children:[e.jsx(K,{}),e.jsx(lt,{step:t,label:s,onDismiss:()=>n(!0),providerLabel:a})]})}const GT=Object.freeze(Object.defineProperty({__proto__:null,TurnEndedOffGateBannerAgentReadyShowcase:Vt},Symbol.toStringTag,{value:"Module"}));function Wt({settings:t,providerLabel:s}){const[a,o]=d.useState(t);return e.jsx(ce,{settings:a,onChange:o,providerLabel:s})}const qT=Object.freeze(Object.defineProperty({__proto__:null,NotificationSettingsControlsShowcase:Wt},Symbol.toStringTag,{value:"Module"})),$T=Object.freeze(Object.defineProperty({__proto__:null,EditorShellPreviewPane:te},Symbol.toStringTag,{value:"Module"})),VT={http_request:"#3fb950",db_query:"#D7FF63",process_output:"#6e7681",health_check:"#d29922",hook_execution:"#bc8cff",error:"#f85149",scenario_switch:"#d29922"};function WT(t){const s=VT[t.type]??"#6e7681";switch(t.type){case"http_request":{const a=t.status??"";return{label:"HTTP",detail:`${t.method} ${t.url} ${a} ${t.durationMs}ms`,badge:t.mocked?"MOCKED":"LIVE",color:s}}case"db_query":return{label:"DB",detail:`${t.query} (${t.durationMs}ms)`,badge:t.mocked?"MOCKED":"LIVE",color:s};case"process_output":return{label:"Process",detail:`[${t.stream}] ${t.line}`,color:s};case"health_check":return{label:"Health",detail:t.healthy?"healthy":"unhealthy",color:s};case"hook_execution":return{label:"Hook",detail:`${t.hook} exit=${t.exitCode} ${t.durationMs}ms`,color:s};case"error":return{label:"Error",detail:`${t.source}: ${t.message}`,color:s};case"scenario_switch":return{label:"Scenario",detail:`${t.from??"(none)"} → ${t.to}`,color:s}}}function be({event:t}){const{label:s,detail:a,badge:o,color:n}=WT(t);return e.jsxs("div",{className:"my-1 rounded-md bg-[var(--bg-surface)] px-3 py-2 font-mono text-sm",style:{borderLeft:`3px solid ${n}`},children:[e.jsx("span",{className:"mr-2 font-semibold",children:s}),e.jsx("span",{className:"text-[var(--text-secondary)]",children:a}),o&&e.jsx("span",{className:`ml-2 text-xs ${o==="MOCKED"?"text-[var(--accent-green)]":"text-[var(--text-muted)]"}`,children:o})]})}const UT=Object.freeze(Object.defineProperty({__proto__:null,EventCard:be},Symbol.toStringTag,{value:"Module"}));function Ut({events:t}){return t.length===0?e.jsx("div",{className:"py-12 text-center text-[var(--text-dim)]",children:"Waiting for events..."}):e.jsx("div",{className:"overflow-y-auto px-6 py-2",style:{maxHeight:"calc(100vh - 110px)"},children:t.map(s=>e.jsx(be,{event:s},s.id))})}const JT=Object.freeze(Object.defineProperty({__proto__:null,EventStream:Ut},Symbol.toStringTag,{value:"Module"}));function ve({passed:t,failed:s,total:a}){return s>0?e.jsxs("span",{className:"rounded bg-[var(--accent-red)]/20 px-2 py-0.5 text-xs text-[var(--accent-red)]",children:[s," failed"]}):t===a&&a>0?e.jsxs("span",{className:"rounded bg-[var(--accent-green)]/20 px-2 py-0.5 text-xs text-[var(--accent-green)]",children:[t," passed"]}):e.jsxs("span",{className:"text-xs text-[var(--text-dim)]",children:["(",a,")"]})}const KT=Object.freeze(Object.defineProperty({__proto__:null,StatusBadge:ve},Symbol.toStringTag,{value:"Module"}));function he({group:t}){const[s,a]=d.useState(!0),o=t.tests.filter(i=>i.status==="passed").length,n=t.tests.filter(i=>i.status==="failed").length,r=t.tests.length;return e.jsxs("div",{className:"mb-4",children:[e.jsxs("button",{onClick:()=>a(!s),className:"flex w-full items-center gap-2 text-left text-sm font-medium text-[var(--text-secondary)] hover:text-[var(--text-primary)]",children:[e.jsx("span",{className:"text-[var(--text-dim)]",children:s?"▼":"▶"}),e.jsx("span",{children:t.feature}),e.jsx(ve,{passed:o,failed:n,total:r})]}),s&&e.jsx("div",{className:"ml-5 mt-1 border-l border-[var(--border-default)] pl-3",children:t.tests.map((i,c)=>e.jsx(ct,{test:i},c))})]})}const QT=Object.freeze(Object.defineProperty({__proto__:null,FeatureGroupView:he},Symbol.toStringTag,{value:"Module"}));function Jt({filters:t,active:s,onChange:a}){return e.jsx("div",{className:"flex gap-2 border-b px-6 py-3",style:{borderColor:"var(--border-default)"},children:t.map(o=>e.jsx("button",{onClick:()=>a(o),className:"rounded-md border px-3 py-1 text-sm",style:o===s?{borderColor:"var(--accent-active)",background:"var(--accent-active)",color:"var(--bg-nav)"}:{borderColor:"var(--border-default)",background:"var(--bg-surface)",color:"var(--text-secondary)"},children:o},o))})}const YT=Object.freeze(Object.defineProperty({__proto__:null,FilterBar:Jt},Symbol.toStringTag,{value:"Module"}));function fe({group:t,onPreviewScenario:s}){const[a,o]=d.useState(!0);return e.jsxs("div",{className:"mb-6",children:[e.jsxs("button",{onClick:()=>o(!a),className:"flex w-full items-center gap-2 text-left text-sm font-medium text-[var(--text-secondary)] hover:text-[var(--text-primary)]",children:[e.jsx("span",{className:"text-[var(--text-dim)]",children:a?"▼":"▶"}),e.jsx("span",{className:"font-mono",children:t.route}),e.jsxs("span",{className:"text-[var(--text-dim)]",children:["(",t.scenarios.length,")"]})]}),a&&e.jsx("div",{className:"mt-2 grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3",children:t.scenarios.map(n=>e.jsx(_t,{scenario:n,onPreview:s?()=>s(n.slug):void 0},n.slug))})]})}const XT=Object.freeze(Object.defineProperty({__proto__:null,RouteGroupView:fe},Symbol.toStringTag,{value:"Module"}));function Kt({onAssetsSaved:t}){return e.jsx(H,{title:"Add your design files",subtitle:"Drop in anything: brand assets, mockups, references. Tell us briefly what each one shows.",children:e.jsx(dt,{onAssetsSaved:t})})}const ZT=Object.freeze(Object.defineProperty({__proto__:null,DesignAddAssetsStep:Kt},Symbol.toStringTag,{value:"Module"}));function Q({label:t,description:s,selected:a,onClick:o,multi:n}){return e.jsxs("button",{onClick:o,style:{display:"flex",alignItems:"center",gap:"var(--spacing-md, 12px)",width:"100%",textAlign:"left",padding:"var(--spacing-sm, 8px) var(--spacing-md, 12px)",background:"var(--bg-input)",border:a?"1.5px solid var(--accent-active)":"1px solid var(--border-default)",borderRadius:8,cursor:"pointer",transition:"border-color 0.15s"},children:[e.jsx(Se,{selected:a,multi:n}),e.jsxs("div",{children:[e.jsx("span",{style:{fontSize:"var(--text-sm, 14px)",fontWeight:500,color:"var(--text-primary)"},children:t}),s&&e.jsx("span",{style:{display:"block",fontSize:"var(--text-xs, 12px)",color:"var(--text-muted)",marginTop:2},children:s})]})]})}function Se({selected:t,multi:s}){return e.jsx("span",{style:{width:16,height:16,borderRadius:s?3:"50%",border:t?"none":"1.5px solid var(--text-dim)",background:t?"var(--accent-active)":"transparent",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"},children:t&&e.jsx("span",{style:{color:"#000",fontSize:11,fontWeight:700,lineHeight:1},children:"✓"})})}const eR=Object.freeze(Object.defineProperty({__proto__:null,QuestionnaireOptionCard:Q,QuestionnaireOptionIndicator:Se},Symbol.toStringTag,{value:"Module"})),tR=[{id:"files",label:"I have design files and/or a design system",description:"Add screenshots, mockups, brand guides — anything that defines the look you want."},{id:"chat",label:"I need help on this, can we chat about it?",description:"After setup we'll generate mockups against curated moodboards and you pick a direction."},{id:"skip",label:"I'm not too worried about design, can we start building?",description:"Skip design for now. You can revisit it any time."}];function Qt({selected:t,onSelect:s}){return e.jsx(H,{title:"How should we approach design?",subtitle:"Pick whichever feels right — you can always change direction later.",children:e.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"var(--spacing-sm, 8px)"},children:tR.map(a=>e.jsx(Q,{label:a.label,description:a.description,selected:t===a.id,onClick:()=>s(a.id)},a.id))})})}const sR=Object.freeze(Object.defineProperty({__proto__:null,QuestionnaireDesignApproachStep:Qt},Symbol.toStringTag,{value:"Module"}));function Yt({providerLabel:t}){const[s,a]=d.useState(()=>Ks());d.useEffect(()=>{Qs()},[]);const o=r=>{a(r),Ys(r)},n=()=>{o({...s,systemNotification:!0}),typeof Notification<"u"&&Notification.permission==="default"&&Notification.requestPermission()};return e.jsx(H,{title:`Want to be notified when ${t} finishes?`,subtitle:"Building can take a while. Turn on a sound or a system notification and we'll ping you when the agent stops or pauses — so you can step away while it works.",children:e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"var(--spacing-md, 12px)"},children:[e.jsx("button",{onClick:n,className:"text-left px-3 py-2 rounded cursor-pointer transition-colors",style:{background:s.systemNotification?"var(--bg-input)":"var(--accent-green, #16a34a)",color:s.systemNotification?"var(--text-primary)":"#fff",fontSize:"var(--text-sm, 14px)",fontWeight:600,border:"1px solid var(--border-default)"},children:s.systemNotification?"System notifications enabled":"Enable notifications"}),e.jsx("div",{className:"flex flex-col gap-3 rounded p-3",style:{background:"var(--bg-surface)",border:"1px solid var(--border-default)"},children:e.jsx(ce,{settings:s,onChange:o,providerLabel:t})}),e.jsx("p",{style:{fontSize:"var(--text-xs, 12px)",color:"var(--text-dim)"},children:'This is optional — you can skip it and change it any time from the "Notifications" control in the footer.'})]})})}const aR=Object.freeze(Object.defineProperty({__proto__:null,QuestionnaireNotificationsStep:Yt},Symbol.toStringTag,{value:"Module"})),Je=[{id:"Desktop",label:"Desktop",description:"Standard desktop browser viewport"},{id:"Tablet",label:"Tablet",description:"Tablet-sized portrait viewport"},{id:"Mobile",label:"Mobile",description:"Phone-sized portrait viewport"}];function Xt({selected:t,onSelect:s,variant:a="panel"}){return a==="inline"?e.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:"var(--spacing-sm, 10px)",marginTop:"var(--spacing-xl, 28px)"},children:[e.jsx("span",{style:{fontSize:"var(--text-xs, 13px)",color:"var(--text-dim)"},children:"Where will it primarily be viewed?"}),e.jsx("div",{style:{display:"flex",flexWrap:"wrap",justifyContent:"center",gap:"var(--spacing-sm, 8px)"},children:Je.map(o=>e.jsx("button",{type:"button",onClick:()=>s(o.id),"aria-pressed":t===o.id,style:{padding:"var(--spacing-sm, 8px) var(--spacing-md, 14px)",background:"var(--bg-input)",border:t===o.id?"1px solid var(--text-primary)":"1px solid transparent",borderRadius:999,cursor:"pointer",fontSize:"var(--text-xs, 12px)",color:t===o.id?"var(--text-primary)":"var(--text-muted)",transition:"border-color 0.15s, color 0.15s"},children:o.label},o.id))})]}):e.jsx("div",{style:{marginTop:"var(--spacing-xl, 32px)"},children:e.jsx(H,{title:"Where will this web app primarily be viewed?",subtitle:"This sets the default viewport for every scenario captured in your project.",children:e.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"var(--spacing-sm, 8px)"},children:Je.map(o=>e.jsx(Q,{label:o.label,description:o.description,selected:t===o.id,onClick:()=>s(o.id)},o.id))})})})}const oR=Object.freeze(Object.defineProperty({__proto__:null,QuestionnaireDeviceSelector:Xt},Symbol.toStringTag,{value:"Module"}));function Zt({currentStep:t,stepLabels:s,onStepClick:a}){return e.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"var(--spacing-xs, 4px)",paddingTop:"var(--spacing-lg, 24px)"},children:s.map((o,n)=>{const r=n+1,i=r===t,c=r<t;return e.jsx("button",{onClick:()=>{c&&a(r)},style:{background:"none",border:"none",cursor:c?"pointer":"default",padding:"var(--spacing-xs, 4px) 0",fontSize:"var(--text-sm, 14px)",color:i?"var(--text-primary)":c?"var(--text-secondary)":"var(--text-dim)",fontWeight:i?500:400,textAlign:"left",transition:"color 0.15s"},children:o},r)})})}const nR=Object.freeze(Object.defineProperty({__proto__:null,QuestionnaireStepNav:Zt},Symbol.toStringTag,{value:"Module"}));function ye({fileName:t,dirPath:s}){return e.jsxs("div",{className:"flex items-center gap-3 rounded-md px-3 py-2 text-left bg-[var(--bg-card)] border border-[var(--border-subtle)] hover:border-[var(--border-default)] transition",children:[e.jsx("span",{className:"text-xs text-[var(--text-secondary)]",children:t}),e.jsxs("span",{className:"font-mono text-[10px] text-[var(--text-dim)]",children:[s,"/"]})]})}const rR=Object.freeze(Object.defineProperty({__proto__:null,RouteImportRow:ye},Symbol.toStringTag,{value:"Module"}));function es({slug:t,name:s,url:a,componentName:o,props:n,mocks:r,seed:i,localStorage:c,dimensions:_}){const[u,x]=d.useState(!1),m=Object.keys((r==null?void 0:r.http)??{}).length,l=Object.keys((r==null?void 0:r.db)??{}).length,g=Object.keys(c??{});return e.jsxs("div",{className:"space-y-3 text-sm",children:[e.jsx("h3",{className:"font-medium text-[var(--text-secondary)]",children:s}),a&&e.jsx(w,{label:"URL",children:e.jsx("span",{className:"font-mono text-xs text-[var(--text-muted)]",children:a})}),o&&e.jsx(w,{label:"Component",children:e.jsx("span",{className:"font-mono text-xs text-[var(--accent-blue)]",children:o})}),n&&e.jsx(w,{label:"Props",children:e.jsx("pre",{className:"max-h-32 overflow-auto rounded bg-[var(--bg-input)] p-2 font-mono text-xs text-[var(--text-muted)]",children:JSON.stringify(n,null,2)})}),m>0&&e.jsxs(w,{label:"Mocks",children:[t?e.jsxs("button",{type:"button",onClick:()=>x(!0),className:"text-xs text-[var(--accent-blue)] hover:underline bg-transparent border-none cursor-pointer p-0",children:[m," HTTP mock",m!==1?"s":""," →"]}):e.jsxs("span",{className:"text-xs text-[var(--text-muted)]",children:[m," HTTP mock",m!==1?"s":""]}),l>0&&e.jsxs("span",{className:"ml-2 text-xs text-[var(--text-muted)]",children:[l," DB mock",l!==1?"s":""]})]}),i&&e.jsx(w,{label:"Seed",children:i.command&&e.jsx("span",{className:"font-mono text-xs text-[var(--text-muted)]",children:i.command})}),g.length>0&&e.jsx(w,{label:"localStorage",children:g.map(b=>e.jsxs("p",{className:"font-mono text-xs text-[var(--text-muted)]",children:[b,": ",c[b]]},b))}),_.length>0&&e.jsx(w,{label:"Dimensions",children:e.jsx("div",{className:"flex gap-1",children:_.map(b=>e.jsx("span",{className:"rounded bg-[var(--bg-input)] px-1.5 py-0.5 text-xs text-[var(--text-muted)]",children:b},b))})}),u&&t&&e.jsx(Nt,{slug:t,scenarioName:s,initialSection:"mocks",onClose:()=>x(!1)})]})}const iR=Object.freeze(Object.defineProperty({__proto__:null,ScenarioDetailPanel:es},Symbol.toStringTag,{value:"Module"}));function je({value:t,onChange:s=()=>{},parseError:a,onParseError:o=()=>{}}){return d.useEffect(()=>{if(t.trim()===""){o(null);return}try{JSON.parse(t),o(null)}catch(n){o(n instanceof Error?n.message:"Invalid JSON")}},[t,o]),e.jsxs("div",{className:"space-y-1",children:[e.jsx("label",{className:"text-xs text-[var(--text-muted)]",children:"Body (JSON)"}),e.jsx("textarea",{value:t,onChange:n=>s(n.target.value),rows:8,spellCheck:!1,className:`w-full rounded border bg-[var(--bg-surface)] px-2 py-1 text-xs font-mono resize-y ${a?"border-red-500":"border-[var(--border-default)]"}`}),a&&e.jsx(C,{text:a,className:"text-xs text-red-400 font-mono"})]})}const lR=Object.freeze(Object.defineProperty({__proto__:null,MockBodyJsonTextarea:je},Symbol.toStringTag,{value:"Module"}));function Pe({initialStatus:t,initialBody:s,initialHeaders:a,onSave:o,onCancel:n}){const r=d.useMemo(()=>{if(s==null)return"";try{return JSON.stringify(s,null,2)}catch{return""}},[s]),[i,c]=d.useState(t),[_,u]=d.useState(r),[x,m]=d.useState(null),[l,g]=d.useState(()=>Object.entries(a).map(([v,S])=>({name:v,value:S}))),[b,f]=d.useState(!0),y=x!==null||b;function h(){const v=_.trim()===""?null:JSON.parse(_),S={};for(const j of l)j.name.trim()&&(S[j.name.trim()]=j.value);o({status:i,body:v,headers:S})}return e.jsxs("div",{className:"mt-2 border border-[var(--border-subtle)] rounded bg-[var(--bg-input)] p-3 space-y-3",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("label",{className:"text-xs text-[var(--text-muted)]",children:"Status"}),e.jsx("input",{type:"number",value:i,onChange:v=>{f(!1),c(Number(v.target.value))},className:"w-20 rounded border border-[var(--border-default)] bg-[var(--bg-surface)] px-2 py-1 text-xs font-mono"})]}),e.jsx(kt,{headers:l,onChange:v=>{f(!1),g(v)}}),e.jsx(je,{value:_,parseError:x,onChange:v=>{f(!1),u(v)},onParseError:m}),e.jsxs("div",{className:"flex justify-end gap-2",children:[e.jsx("button",{type:"button",onClick:n,className:"px-3 py-1 text-xs rounded border border-[var(--border-default)] bg-transparent text-[var(--text-muted)] hover:text-[var(--text-primary)] cursor-pointer",children:"Cancel"}),e.jsx("button",{type:"button",onClick:h,disabled:y,className:"px-3 py-1 text-xs rounded border border-[var(--accent-blue)] bg-[var(--accent-blue)]/10 text-[var(--accent-blue)] hover:bg-[var(--accent-blue)]/20 disabled:opacity-40 disabled:cursor-not-allowed cursor-pointer",children:"Save"})]})]})}const cR=Object.freeze(Object.defineProperty({__proto__:null,MockBodyEditor:Pe},Symbol.toStringTag,{value:"Module"}));function Ce({entry:t,scenarioHasDefaultFallback:s,editing:a,onToggleEdit:o,onPromoteDefaultToScenario:n,onRemove:r,onPassthrough:i,onCaptureLive:c}){const[_,u]=d.useState(!1),[x,m]=d.useState(null);async function l(){u(!0),m(null);try{await c()}catch(b){m(b instanceof Error?b.message:"Capture failed")}finally{u(!1)}}const g="px-2 py-0.5 rounded border border-[var(--border-default)] bg-transparent text-[var(--text-muted)] hover:text-[var(--text-primary)] cursor-pointer text-[10px]";return e.jsxs("div",{className:"flex flex-wrap gap-1 pt-1",children:[t.source==="scenario"&&e.jsxs(e.Fragment,{children:[e.jsx("button",{onClick:o,className:g,children:a?"Close":"Edit"}),s&&e.jsx("button",{onClick:r,className:g,title:"Revert to default",children:"Revert to default"}),e.jsx("button",{onClick:i,className:g,children:"Mark passthrough"})]}),t.source==="default"&&e.jsxs(e.Fragment,{children:[e.jsx("button",{onClick:n,className:"px-2 py-0.5 rounded border border-emerald-500/50 bg-emerald-500/10 text-emerald-300 hover:bg-emerald-500/20 cursor-pointer text-[10px]",title:"Copy default body into this scenario",children:"Promote to scenario"}),e.jsx("button",{onClick:i,className:g,children:"Mark passthrough"})]}),t.source==="catalog-only"&&e.jsxs(e.Fragment,{children:[e.jsx("button",{onClick:l,disabled:_,className:"px-2 py-0.5 rounded border border-[#D7FF63]/50 bg-[#D7FF63]/10 text-[#D7FF63] hover:bg-[#D7FF63]/20 disabled:opacity-50 disabled:cursor-wait cursor-pointer text-[10px]",title:"Write last-observed body as this scenario's mock",children:_?"Capturing…":"Capture from live"}),x&&e.jsx(C,{text:x,className:"text-red-400 text-[10px]"})]}),t.source==="passthrough"&&e.jsx("button",{onClick:r,className:g,children:"Undo passthrough"})]})}const _R=Object.freeze(Object.defineProperty({__proto__:null,MockPanelRowActions:Ce},Symbol.toStringTag,{value:"Module"})),Ke={GET:"text-emerald-400 border-emerald-400/40",POST:"text-[#D7FF63] border-[#D7FF63]/40",PUT:"text-amber-400 border-amber-400/40",PATCH:"text-purple-400 border-purple-400/40",DELETE:"text-red-400 border-red-400/40"};function we({entry:t}){const s=Ke[t.method]??Ke.GET,a=t.status??t.lastObservedStatus,o=t.lastObservedMs?$C(t.lastObservedMs,Date.now()):null;return e.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[e.jsx("span",{className:`px-1.5 py-0.5 rounded border font-mono ${s}`,children:t.method}),e.jsx("span",{className:"font-mono text-[var(--text-primary)] break-all",children:t.pathPattern}),e.jsx(Tt,{source:t.source}),a!==void 0&&e.jsx("span",{className:"px-1.5 py-0.5 rounded border border-[var(--border-default)] text-[var(--text-muted)] font-mono",children:a}),t.observedCount>0&&e.jsxs("span",{className:"ml-auto text-[var(--text-dim)]",children:[t.observedCount,"× ",o?`· ${o}`:""]})]})}const dR=Object.freeze(Object.defineProperty({__proto__:null,MockPanelRowHeader:we},Symbol.toStringTag,{value:"Module"}));function Ne({entry:t,scenarioHasDefaultFallback:s,onSave:a,onRemove:o,onPassthrough:n,onCaptureLive:r}){const[i,c]=d.useState(!1),_=`${t.method} ${t.pathPattern}`;return e.jsxs("div",{className:"border border-[var(--border-subtle)] rounded p-2 text-xs space-y-1",children:[e.jsx(we,{entry:t}),t.variants.length>1&&e.jsxs("div",{className:"text-[10px] text-[var(--text-dim)] font-mono",children:["variants: ",t.variants.filter(u=>u!==_).join(", ")]}),e.jsx(Ce,{entry:t,scenarioHasDefaultFallback:s,editing:i,onToggleEdit:()=>c(u=>!u),onPromoteDefaultToScenario:()=>a({routeKey:_,status:t.status??200,body:t.body,headers:t.headers??{}}),onRemove:()=>o(_),onPassthrough:()=>n(_),onCaptureLive:()=>r(t.method,t.pathPattern)}),i&&e.jsx(Pe,{initialStatus:t.status??200,initialBody:t.body,initialHeaders:t.headers??{},onCancel:()=>c(!1),onSave:async u=>{await a({routeKey:_,...u}),c(!1)}})]})}const pR=Object.freeze(Object.defineProperty({__proto__:null,MockPanelRow:Ne},Symbol.toStringTag,{value:"Module"})),G=async()=>{};function ts({label:t,entries:s,defaultEndpointKeys:a=[],onSave:o=G,onRemove:n=G,onPassthrough:r=G,onCaptureLive:i=G}){if(s.length===0)return null;const c=a instanceof Set?a:new Set(a);return e.jsxs("section",{className:"space-y-2",children:[e.jsxs("h3",{className:"text-[10px] font-semibold uppercase tracking-wide text-[var(--text-dim)]",children:[t," (",s.length,")"]}),e.jsx("div",{className:"space-y-2",children:s.map(_=>e.jsx(Ne,{entry:_,scenarioHasDefaultFallback:c.has(`${_.method} ${_.pathPattern}`),onSave:o,onRemove:n,onPassthrough:r,onCaptureLive:i},`${_.method} ${_.pathPattern}`))})]})}const mR=Object.freeze(Object.defineProperty({__proto__:null,MockPanelGroup:ts},Symbol.toStringTag,{value:"Module"}));function ss({scenarioName:t,defaultSlug:s,onClose:a}){return e.jsxs("header",{className:"sticky top-0 z-10 flex items-center justify-between gap-2 border-b border-[var(--border-subtle)] bg-[var(--bg-deep)] px-4 py-3",children:[e.jsxs("div",{children:[e.jsxs("h2",{className:"text-sm font-medium text-[var(--text-primary)]",children:["Mocks for ",t]}),s&&e.jsxs("p",{className:"text-xs text-[var(--text-dim)]",children:["Defaults inherited from ",e.jsx("span",{className:"font-mono",children:s})]})]}),e.jsx("button",{onClick:a,className:"rounded border border-[var(--border-default)] bg-transparent px-2 py-1 text-xs text-[var(--text-muted)] hover:text-[var(--text-primary)] cursor-pointer",children:"Close"})]})}const uR=Object.freeze(Object.defineProperty({__proto__:null,MockPanelHeader:ss},Symbol.toStringTag,{value:"Module"}));function as({total:t,passed:s,failed:a,discovered:o}){if(t===0&&(o??0)>0)return e.jsxs("span",{className:"text-[var(--text-dim)]",children:[o," ",o===1?"test":"tests"," (not run)"]});if(t===0)return e.jsx("span",{className:"text-[var(--text-dim)]",children:"No tests"});const n=(o??t)>t?(o??t)-t:0;return n>0?e.jsxs("span",{children:[e.jsxs("span",{className:"text-[var(--accent-green)]",children:[s," passed"]}),a>0&&e.jsxs("span",{className:"text-[var(--accent-red)]",children:[" · ",a," failed"]}),e.jsxs("span",{className:"text-[var(--text-dim)]",children:[" · ",n," not run"]})]}):a>0?e.jsxs("span",{className:"text-[var(--accent-red)]",children:[s,"/",t," passed"]}):e.jsxs("span",{className:"text-[var(--accent-green)]",children:[s,"/",t," passed"]})}const xR=Object.freeze(Object.defineProperty({__proto__:null,TestSummary:as},Symbol.toStringTag,{value:"Module"}));function os({title:t}){return e.jsx("div",{className:"flex h-full items-center justify-center",style:{color:"var(--text-dim)"},children:e.jsxs("p",{className:"text-sm",children:[t," — coming soon"]})})}const gR=Object.freeze(Object.defineProperty({__proto__:null,PlaceholderPane:os},Symbol.toStringTag,{value:"Module"}));function ns({paths:t}){return e.jsxs(J,{children:[e.jsx(K,{}),e.jsx(pt,{paths:t,onClose:()=>{}})]})}const bR=Object.freeze(Object.defineProperty({__proto__:null,FileDropConfirmModalAgentReadyShowcase:ns},Symbol.toStringTag,{value:"Module"})),vR="the confirm modal (no live session)";function rs({sessions:t=["Plan chat","Build terminal"],claimedBy:s=null}){const[a,o]=d.useState(s);return e.jsx(Rt,{fallbackUpload:()=>o(null),children:e.jsxs("div",{className:"p-6",children:[e.jsxs("div",{className:"mb-5 flex items-center gap-3",children:[e.jsx(Dt,{}),e.jsxs("span",{className:"text-xs text-[var(--text-dim)]","data-testid":"attach-routing-target",children:["Attaches into: ",a??vR]})]}),e.jsx("div",{className:"flex gap-3",children:t.map(n=>e.jsx(hR,{name:n,active:a===n,onClaimed:o},n))})]})})}function hR({name:t,active:s,onClaimed:a}){const{registerFileSink:o}=VC(),n=d.useCallback(()=>{o(()=>!0),a(t)},[o,a,t]);return e.jsxs("button",{type:"button",onClick:n,className:"rounded-lg border px-4 py-3 text-left text-sm cursor-pointer",style:{background:s?"var(--bg-card)":"transparent",borderColor:s?"var(--accent-active)":"var(--border-subtle)",color:s?"var(--accent-active)":"var(--text-dim)"},children:["Focus ",t]})}const fR=Object.freeze(Object.defineProperty({__proto__:null,AttachFileButtonRoutingShowcase:rs},Symbol.toStringTag,{value:"Module"}));function is({groups:t,loading:s,error:a,totalScenarios:o,onPreviewScenario:n}){return s?e.jsx("div",{className:"py-12 text-center text-[var(--text-muted)]",children:"Loading scenarios..."}):a?e.jsx("div",{className:"py-12",children:e.jsx(C,{text:`Failed to load scenarios: ${a}`,className:"text-sm text-[var(--accent-red)]",rowClassName:"justify-center"})}):t.length===0?e.jsxs("div",{className:"py-12 text-center text-[var(--text-dim)]",children:[e.jsx("p",{children:"No scenarios defined yet."}),e.jsx("p",{className:"mt-2 text-sm text-[var(--text-dim)]",children:"Create scenario JSON files in .codeyam/scenarios/"})]}):e.jsxs("div",{className:"overflow-y-auto px-6 py-4",style:{maxHeight:"calc(100vh - 110px)"},children:[e.jsxs("p",{className:"mb-4 text-sm text-[var(--text-muted)]",children:[o," scenarios across ",t.length," routes"]}),t.map(r=>e.jsx(fe,{group:r,onPreviewScenario:n},r.route))]})}const SR=Object.freeze(Object.defineProperty({__proto__:null,ScenariosView:is},Symbol.toStringTag,{value:"Module"}));function ls({groups:t,loading:s,error:a,cached:o,totalTests:n,passedTests:r,coverage:i,onRefresh:c}){return s?e.jsx("div",{className:"py-12 text-center text-[var(--text-muted)]",children:"Loading tests..."}):a?e.jsx("div",{className:"py-12",children:e.jsx(C,{text:`Failed to load tests: ${a}`,className:"text-sm text-[var(--accent-red)]",rowClassName:"justify-center"})}):t.length===0?e.jsx("div",{className:"py-12 text-center text-[var(--text-dim)]",children:"No tests found"}):e.jsxs("div",{className:"overflow-y-auto px-6 py-4",style:{maxHeight:"calc(100vh - 110px)"},children:[e.jsxs("div",{className:"mb-4 flex items-center gap-3 text-sm text-[var(--text-muted)]",children:[e.jsxs("span",{children:[r,"/",n," passed across ",t.length," features"]}),e.jsx(mt,{coverage:i,testId:"tests-view-coverage",className:"rounded bg-[var(--bg-input)] px-2 py-0.5 text-xs font-medium text-[var(--text-secondary)]"}),o&&e.jsx("span",{className:"rounded bg-[var(--bg-input)] px-2 py-0.5 text-xs text-[var(--text-muted)]",children:"cached"}),e.jsx("button",{onClick:c,disabled:s,className:"rounded bg-[var(--bg-input)] px-2 py-0.5 text-xs text-[var(--text-muted)] hover:bg-[var(--bg-surface)] hover:text-[var(--text-secondary)] disabled:opacity-50",children:s?"Running...":"Run Tests"})]}),t.map(_=>e.jsx(he,{group:_},_.feature))]})}const yR=Object.freeze(Object.defineProperty({__proto__:null,TestsView:ls},Symbol.toStringTag,{value:"Module"}));function cs({onClick:t,isOpen:s,disabled:a}){return e.jsx("button",{type:"button",onClick:t,disabled:a,"aria-expanded":s,"aria-haspopup":"dialog",className:`flex items-center h-7 px-2 rounded text-[11px] font-mono tracking-wide cursor-pointer transition-colors ${a?"text-gray-500 bg-[#2d2d2d] cursor-not-allowed":s?"text-white bg-[#555]":"text-gray-300 bg-[#3a3a3a] hover:bg-[#444]"}`,title:"Edit scenario data",children:"EDIT DATA"})}const jR=Object.freeze(Object.defineProperty({__proto__:null,EditDataButton:cs},Symbol.toStringTag,{value:"Module"}));function ke(t){return`${t.method} ${t.pathPattern}`}function PR({slug:t,onApplied:s}){const[a,o]=d.useState({kind:"idle"}),n=d.useCallback(async r=>{o({kind:"submitting"});try{const c=await(await fetch(`/api/scenarios/${encodeURIComponent(t)}/data/describe`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({prompt:r})})).json();c.success?(s(),o({kind:"applied",message:c.message??"Changes applied. Review the table and click Save."})):o({kind:"error",message:c.error??"AI rewrite failed."})}catch(i){o({kind:"error",message:i instanceof Error?i.message:"Network error"})}},[t,s]);return{status:a,submit:n}}function CR(t,s){d.useEffect(()=>{function a(n){t.current&&!t.current.contains(n.target)&&s()}function o(n){n.key==="Escape"&&s()}return document.addEventListener("mousedown",a),document.addEventListener("keydown",o),()=>{document.removeEventListener("mousedown",a),document.removeEventListener("keydown",o)}},[t,s])}function wR({props:t,seedTabs:s,mockEntries:a}){const[o,n]=d.useState(null),[r,i]=d.useState(null),[c,_]=d.useState(null),u=d.useMemo(()=>{const l=[];return t&&Object.keys(t).length>0&&l.push({kind:"props",label:"Props",tabs:[]}),s.length>0&&l.push({kind:"seed",label:"Seed Data",tabs:s.map(g=>({id:g.dataKey,label:g.label}))}),a.length>0&&l.push({kind:"mock",label:"Mock Data",tabs:a.map(g=>({id:ke(g),label:`${g.method} ${g.pathPattern}`}))}),l},[t,s,a]);d.useEffect(()=>{if(o!==null||u.length===0)return;const l=u[0];n(l.kind),l.kind==="seed"&&l.tabs[0]?i(l.tabs[0].id):l.kind==="mock"&&l.tabs[0]&&_(l.tabs[0].id)},[o,u]);const x=u.find(l=>l.kind===o)??null;function m(l){var g,b,f,y;if(n(l),l==="seed"&&!r){const h=(b=(g=u.find(v=>v.kind==="seed"))==null?void 0:g.tabs[0])==null?void 0:b.id;h&&i(h)}if(l==="mock"&&!c){const h=(y=(f=u.find(v=>v.kind==="mock"))==null?void 0:f.tabs[0])==null?void 0:y.id;h&&_(h)}}return{sections:u,activeSection:x,section:o,activeSeedKey:r,activeMockKey:c,selectSection:m,selectSeedKey:i,selectMockKey:_}}function NR(t){const[s,a]=d.useState(null);return d.useEffect(()=>{var i;const o=(i=t.current)==null?void 0:i.closest("[data-preview-pane='true']");if(!o)return;const n=()=>a(o.getBoundingClientRect().width);n();const r=new ResizeObserver(n);return r.observe(o),()=>r.disconnect()},[t]),s}function Te(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}function kR(t){return Array.isArray(t)&&t.length>0&&t.every(Te)}function oe(t,s,a){if(Te(t)){for(const[o,n]of Object.entries(t)){const r=s?`${s}.${o}`:o;oe(n,r,a)}return}if(kR(t)){t.forEach((o,n)=>oe(o,`${s}[${n}]`,a));return}a.push({path:s,value:t})}function Qe(t){if(!Te(t))return[];const s=[];return oe(t,"",s),s}function TR(t){return t===null?"null":t===void 0?"":typeof t=="object"?JSON.stringify(t):String(t)}function RR({slug:t,initialProps:s,onCellEdited:a}){const[o,n]=d.useState(()=>Qe(s)),[r,i]=d.useState(null),[c,_]=d.useState(""),[u,x]=d.useState(""),m=d.useRef(null);d.useEffect(()=>{n(Qe(s)),i(null)},[s]);function l(h){const v=o.find(D=>D.path===h);i(h);const S=v==null?void 0:v.value,j=S==null?"":typeof S=="object"?JSON.stringify(S):String(S);_(j),x(j)}function g(h){if(_(h),m.current&&clearTimeout(m.current),!r)return;const v=r;m.current=setTimeout(()=>{y(v,h)},600)}function b(){r&&(m.current&&clearTimeout(m.current),y(r,c),i(null))}function f(){if(m.current&&clearTimeout(m.current),!!r){if(c!==u){const h=o.map(v=>v.path===r?{...v,value:Ue(u)}:v);n(h),fetch(`/api/scenarios/${encodeURIComponent(t)}/data`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:`props.${r}`,value:u})}).then(()=>{U(),a&&a()}).catch(()=>{})}i(null)}}async function y(h,v){const S=o.map(j=>j.path===h?{...j,value:Ue(v)}:j);n(S);try{await fetch(`/api/scenarios/${encodeURIComponent(t)}/data`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:`props.${h}`,value:v})}),U(),a&&a()}catch{}}return{rows:o,editingPath:r,editValue:c,handleEditPath:l,handleEditValueChange:g,handleSave:b,handleCancelEdit:f}}function Re({path:t,value:s,onValueChange:a,onSave:o,onCancel:n}){return e.jsxs("div",{className:"border-t border-[var(--border-default)] bg-[var(--bg-deep)] px-3 py-2",children:[e.jsx("div",{className:"flex items-center gap-2 mb-1.5",children:e.jsxs("span",{className:"text-[10px] text-[var(--text-muted)]",children:["Editing"," ",e.jsx("strong",{className:"text-[var(--text-secondary)] font-mono",children:t})]})}),e.jsx("textarea",{value:s,onChange:r=>a(r.target.value),className:"w-full px-2 py-1.5 text-[11px] bg-[var(--bg-card)] text-[var(--text-primary)] border border-[var(--border-default)] rounded outline-none focus:border-[var(--accent-active)]/50 resize-y min-h-[60px] max-h-[200px] font-mono",autoFocus:!0,rows:s.length>100?4:2,onKeyDown:r=>{r.key==="Escape"&&n(),r.key==="Enter"&&(r.metaKey||r.ctrlKey)&&o()}}),e.jsxs("div",{className:"flex items-center gap-2 mt-1.5",children:[e.jsx("button",{onClick:o,className:"px-3 py-1 text-[10px] font-medium text-[var(--bg-deep)] bg-[var(--accent-active)] rounded cursor-pointer border-none hover:bg-[var(--accent-active)]/80 transition-colors",children:"Save"}),e.jsx("button",{onClick:n,className:"px-3 py-1 text-[10px] text-[var(--text-muted)] hover:text-[var(--text-primary)] bg-transparent border-none cursor-pointer",children:"Cancel"}),e.jsxs("span",{className:"text-[9px] text-[var(--text-dim)] ml-auto",children:["⌘","+Enter to save, Esc to cancel"]})]})]})}const DR=Object.freeze(Object.defineProperty({__proto__:null,ScenarioDataPanelPropsEditor:Re},Symbol.toStringTag,{value:"Module"}));function De({slug:t,props:s,onCellEdited:a}){const{rows:o,editingPath:n,editValue:r,handleEditPath:i,handleEditValueChange:c,handleSave:_,handleCancelEdit:u}=RR({slug:t,initialProps:s,onCellEdited:a});return o.length===0?e.jsx("p",{className:"p-4 text-xs text-[var(--text-dim)] italic",children:"This scenario has no props to edit."}):e.jsxs("div",{className:"flex flex-col h-full min-h-0",children:[e.jsx("div",{className:"flex-1 min-h-0 overflow-auto",children:e.jsxs("table",{className:"w-full text-[11px] border-separate border-spacing-0",children:[e.jsx("thead",{className:"bg-[var(--bg-card)] sticky top-0 z-10",children:e.jsxs("tr",{children:[e.jsx("th",{className:"text-left font-medium text-[var(--text-secondary)] px-3 py-2 border-b border-[var(--border-default)] w-1/3",children:"Key"}),e.jsx("th",{className:"text-left font-medium text-[var(--text-secondary)] px-3 py-2 border-b border-[var(--border-default)]",children:"Value"})]})}),e.jsx("tbody",{children:o.map(x=>e.jsxs("tr",{className:"hover:bg-[var(--bg-card)]",children:[e.jsx("td",{className:"px-3 py-1.5 border-b border-[var(--border-subtle)] font-mono text-[var(--text-secondary)] align-top",children:x.path}),e.jsx("td",{className:"px-3 py-1.5 border-b border-[var(--border-subtle)] cursor-text text-[var(--text-primary)] align-top",onClick:()=>i(x.path),children:TR(x.value)})]},x.path))})]})}),n&&e.jsx(Re,{path:n,value:r,onValueChange:c,onSave:_,onCancel:u})]})}const ER=Object.freeze(Object.defineProperty({__proto__:null,ScenarioDataPanelMainProps:De},Symbol.toStringTag,{value:"Module"}));function Ee({slug:t,section:s,hasAnything:a,loading:o,seedError:n,mocksError:r,draftError:i,props:c,selectedSeedTab:_,filteredSeedRows:u,selectedMock:x,onSeedCellEdit:m,onMockSave:l}){return e.jsxs("div",{className:"min-h-0 flex-1 flex flex-col bg-[var(--bg-deep)] overflow-hidden",children:[n&&e.jsx(C,{text:`Seed error: ${n}`,className:"text-xs text-red-400",rowClassName:"p-3"}),r&&e.jsx(C,{text:`Mocks error: ${r}`,className:"text-xs text-red-400",rowClassName:"p-3"}),i&&e.jsx(C,{text:`Draft error: ${i}`,className:"text-xs text-red-400",rowClassName:"p-3"}),o&&!a&&e.jsx("p",{className:"p-4 text-xs text-[var(--text-dim)]",children:"Loading scenario data…"}),!o&&!a&&e.jsx("p",{className:"p-4 text-xs text-[var(--text-dim)] italic",children:"This scenario has no data, mocks, or props to edit."}),s==="props"&&e.jsx(De,{slug:t,props:c,onCellEdited:m}),s==="seed"&&_&&e.jsx(Et,{slug:t,tab:_,initialRows:u,onCellEdited:m}),s==="mock"&&x&&e.jsx("div",{className:"flex-1 min-h-0 overflow-auto p-3",children:x.source==="scenario"||x.source==="default"||x.source==="shared"?e.jsx(Mt,{entry:x,routeKey:ke(x),scenarioSlug:t,onSave:l}):e.jsx(Bt,{entry:x})})]})}const MR=Object.freeze(Object.defineProperty({__proto__:null,EditDataPopoverBody:Ee},Symbol.toStringTag,{value:"Module"}));function Me({status:t,onSubmit:s}){const[a,o]=d.useState(""),n=t.kind==="submitting";function r(){const i=a.trim();!i||n||(s(i),o(""))}return e.jsxs("div",{className:"shrink-0 border-t border-[var(--border-default)] bg-[var(--bg-deep)] px-4 py-3",children:[e.jsxs("div",{className:"flex items-end gap-2",children:[e.jsx("textarea",{value:a,onChange:i=>o(i.target.value),placeholder:"Describe Changes",rows:2,disabled:n,className:"flex-1 px-3 py-2 text-[12px] bg-[var(--bg-card)] text-[var(--text-primary)] border border-[var(--border-default)] rounded outline-none focus:border-[var(--accent-active)]/50 resize-none min-h-[44px] disabled:opacity-50",onKeyDown:i=>{i.key==="Enter"&&(i.metaKey||i.ctrlKey)&&(i.preventDefault(),r())}}),e.jsx("button",{type:"button",onClick:r,disabled:n||!a.trim(),className:"px-3 py-2 text-[11px] font-medium text-[var(--bg-deep)] bg-[var(--accent-active)] rounded cursor-pointer border-none hover:bg-[var(--accent-active)]/80 disabled:opacity-50 disabled:cursor-not-allowed transition-colors h-fit",children:n?"Applying…":"Submit"})]}),t.kind==="applied"&&e.jsx("p",{className:"text-[10px] text-[var(--accent-active)] mt-1.5",children:t.message}),t.kind==="error"&&e.jsx(C,{text:t.message,className:"text-[10px] text-red-400",rowClassName:"mt-1.5"})]})}const BR=Object.freeze(Object.defineProperty({__proto__:null,EditDataPopoverDescribeInput:Me},Symbol.toStringTag,{value:"Module"}));function Be({isDirty:t,saving:s,cancelling:a,onSave:o,onCancel:n,onClose:r}){const i=s||a;return e.jsxs(e.Fragment,{children:[t&&e.jsxs(e.Fragment,{children:[e.jsx("button",{type:"button",onClick:o,disabled:i,className:"px-2 py-0.5 text-[10px] font-medium text-[var(--bg-deep)] bg-[var(--accent-active)] rounded cursor-pointer border-none hover:bg-[var(--accent-active)]/80 disabled:opacity-50",children:s?"Saving…":"Save"}),e.jsx("button",{type:"button",onClick:n,disabled:i,className:"px-2 py-0.5 text-[10px] text-[var(--text-muted)] hover:text-[var(--text-primary)] bg-transparent border border-[var(--border-default)] rounded cursor-pointer disabled:opacity-50",children:a?"Cancelling…":"Cancel"})]}),e.jsx("button",{type:"button",onClick:r,"aria-label":"Close",className:"text-[var(--text-muted)] hover:text-[var(--text-primary)] text-sm bg-transparent border-none cursor-pointer px-1 leading-none",children:"✕"})]})}const OR=Object.freeze(Object.defineProperty({__proto__:null,EditDataPopoverSaveCancelClose:Be},Symbol.toStringTag,{value:"Module"}));function Oe({value:t,disabled:s,onChange:a}){return e.jsx("input",{type:"search",value:t,onChange:o=>a(o.target.value),placeholder:"Search…",disabled:s,className:"text-[10px] bg-[var(--bg-card)] text-[var(--text-primary)] border border-[var(--border-default)] rounded px-2 py-0.5 outline-none focus:border-[var(--accent-active)]/50 disabled:opacity-40 w-36"})}const AR=Object.freeze(Object.defineProperty({__proto__:null,EditDataPopoverSearchInput:Oe},Symbol.toStringTag,{value:"Module"}));function Ae({sections:t,section:s,activeSection:a,onSelect:o}){return t.length>1?e.jsx("select",{value:s??"",onChange:n=>o(n.target.value),className:"text-[9px] font-semibold tracking-wider uppercase text-[var(--text-primary)] bg-[var(--bg-card)] border border-[var(--border-default)] rounded px-1.5 py-0.5 cursor-pointer outline-none",children:t.map(n=>e.jsx("option",{value:n.kind,children:n.label},n.kind))}):a?e.jsx("span",{className:"text-[9px] font-semibold tracking-wider uppercase text-[var(--text-primary)] px-1.5 py-0.5",children:a.label}):null}const IR=Object.freeze(Object.defineProperty({__proto__:null,EditDataPopoverSectionSelector:Ae},Symbol.toStringTag,{value:"Module"}));function Ie({tabs:t,activeId:s,onSelect:a}){return e.jsx("div",{className:"flex items-center gap-0.5 overflow-x-auto min-w-0",children:t.map(o=>{const n=o.id===s;return e.jsx("button",{type:"button",onClick:()=>a(o.id),className:`px-1.5 py-0.5 text-[9px] font-medium tracking-wide uppercase rounded whitespace-nowrap cursor-pointer transition-colors ${n?"text-[var(--accent-active)] bg-[var(--accent-active)]/10":"text-[var(--text-muted)] hover:text-[var(--text-primary)]"}`,children:o.label},o.id)})})}const LR=Object.freeze(Object.defineProperty({__proto__:null,EditDataPopoverTabStrip:Ie},Symbol.toStringTag,{value:"Module"}));function Le({sections:t,section:s,activeSection:a,activeTabId:o,onSelectSection:n,onSelectTab:r,search:i,searchDisabled:c,onSearchChange:_,isDirty:u,saving:x,cancelling:m,onSave:l,onCancel:g,onClose:b}){return e.jsxs("header",{className:"shrink-0 flex items-center justify-between gap-3 px-3 py-1.5 border-b border-[var(--border-subtle)]",children:[e.jsxs("div",{className:"flex items-center gap-1.5 min-w-0 flex-1",children:[e.jsx(Ae,{sections:t,section:s,activeSection:a,onSelect:n}),e.jsx("span",{className:"text-[var(--text-dim)] text-[10px]",children:"/"}),e.jsx(Ie,{tabs:(a==null?void 0:a.tabs)??[],activeId:o,onSelect:r})]}),e.jsxs("div",{className:"flex items-center gap-1.5 shrink-0",children:[e.jsx(Oe,{value:i,disabled:c,onChange:_}),e.jsx(Be,{isDirty:u,saving:x,cancelling:m,onSave:l,onCancel:g,onClose:b})]})]})}const FR=Object.freeze(Object.defineProperty({__proto__:null,EditDataPopoverHeader:Le},Symbol.toStringTag,{value:"Module"}));function Fe({popoverRef:t,paneWidth:s}){return e.jsx("div",{"aria-hidden":"true",onMouseDown:a=>{const o=t.current;if(!o)return;a.preventDefault();const n=o.getBoundingClientRect(),r=a.clientX,i=a.clientY,c=n.width,_=n.height,u=n.right,x=l=>{const g=l.clientX-r,b=l.clientY-i,f=420,y=280,h=s?Math.max(f,s-16):c+1e3,v=Math.max(f,Math.min(h,c-g)),S=Math.max(y,_+b);o.style.width=`${v}px`,o.style.height=`${S}px`,o.style.right=`${o.parentElement.getBoundingClientRect().right-u}px`},m=()=>{window.removeEventListener("mousemove",x),window.removeEventListener("mouseup",m)};window.addEventListener("mousemove",x),window.addEventListener("mouseup",m)},className:"absolute bottom-0 left-0 w-3 h-3 z-50",style:{cursor:"nesw-resize"}})}const HR=Object.freeze(Object.defineProperty({__proto__:null,EditDataPopoverResizeHandleLeft:Fe},Symbol.toStringTag,{value:"Module"}));function _s({slug:t,scenarioName:s,onClose:a}){const o=d.useRef(null),n=WC({slug:t,onPreviewReload:U}),r=NR(o),{data:i,tableTabs:c,props:_,loading:u,error:x}=UC(t),{entries:m,loading:l,error:g,upsertScoped:b}=JC(t),{sections:f,activeSection:y,section:h,activeSeedKey:v,activeMockKey:S,selectSection:j,selectSeedKey:D,selectMockKey:M}=wR({props:_,seedTabs:c,mockEntries:m}),[T,R]=d.useState(""),N=h==="seed"?c.find(P=>P.dataKey===v)??null:null,ks=h==="mock"?m.find(P=>ke(P)===S)??null:null,Y=N&&i?i[N.dataKey]??[]:[],Ts=d.useMemo(()=>{if(!T.trim())return Y;const P=T.toLowerCase();return Y.filter(Ls=>Object.values(Ls).some(Fs=>String(Fs??"").toLowerCase().includes(P)))},[Y,T]),z=d.useCallback(()=>{n.markDirty(),U()},[n]),Rs=d.useCallback(async P=>{await b(P),z()},[b,z]),$e=d.useCallback(()=>{n.confirmIfDirty("Discard unsaved changes to this scenario?")&&a()},[n,a]);CR(o,$e);const Ds=d.useCallback(async()=>{await n.save(),n.error||a()},[n,a]),Ve=PR({slug:t,onApplied:z}),Es=h==="seed"?v:h==="mock"?S:null;function Ms(P){h==="seed"&&D(P),h==="mock"&&M(P)}function Bs(P){P!==null&&(j(P),R(""))}const Os=s??t,As=f.length>0,Is=u||l;return e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"fixed inset-0 z-30 bg-black/30 pointer-events-none","aria-hidden":"true"}),e.jsxs("div",{ref:o,role:"dialog","aria-label":`Edit data for ${Os}`,style:{resize:"both",maxWidth:r?`${Math.max(420,r-16)}px`:"calc(100vw - 2rem)"},className:"absolute right-0 top-full mt-1 z-40 flex flex-col rounded-lg border border-[var(--border-default)] bg-[var(--bg-deep)] shadow-2xl overflow-hidden w-[640px] max-h-[calc(100vh-6rem)] min-w-[420px] min-h-[200px]",children:[e.jsx(Le,{sections:f,section:h,activeSection:y,activeTabId:Es,onSelectSection:Bs,onSelectTab:Ms,search:T,searchDisabled:h!=="seed",onSearchChange:R,isDirty:n.isDirty,saving:n.saving,cancelling:n.cancelling,onSave:Ds,onCancel:()=>void n.cancel(),onClose:$e}),e.jsx(Ee,{slug:t,section:h,hasAnything:As,loading:Is,seedError:x,mocksError:g,draftError:n.error,props:_,selectedSeedTab:N,filteredSeedRows:Ts,selectedMock:ks,onSeedCellEdit:z,onMockSave:Rs}),e.jsx(Me,{status:Ve.status,onSubmit:Ve.submit}),e.jsx(Fe,{popoverRef:o,paneWidth:r})]})]})}const zR=Object.freeze(Object.defineProperty({__proto__:null,EditDataPopover:_s},Symbol.toStringTag,{value:"Module"}));function ds({tabs:t,active:s,onChange:a}){return e.jsx("div",{className:"flex gap-0",children:t.map(o=>e.jsx("button",{onClick:()=>a(o.key),className:`px-3 py-2 text-sm transition-colors border-b-2 ${s===o.key?"font-medium":"border-transparent hover:text-[var(--text-primary)]"}`,style:s===o.key?{color:"var(--accent-active)",borderBottomColor:"var(--accent-active)"}:{color:"var(--text-muted)"},children:o.label},o.key))})}const GR=Object.freeze(Object.defineProperty({__proto__:null,ViewTabs:ds},Symbol.toStringTag,{value:"Module"}));function ps({items:t,maxVisible:s=6,showAll:a=!1,onSelect:o,onOpenAll:n}){const r=a?t:t.slice(0,s),i=t.length-r.length;return e.jsxs("div",{className:"exdoor",children:[e.jsxs("button",{type:"button",className:"exhead",onClick:n,children:[e.jsx("div",{className:"dic",children:e.jsx(ut,{size:20})}),e.jsxs("div",{className:"grow",children:[e.jsx("div",{className:"dname",children:"Explore your app"}),e.jsx("div",{className:"ddesc",children:"Every page of your app. Click one to see it live."})]}),e.jsx("span",{className:"open",children:"Open all →"})]}),e.jsxs("div",{className:"rail",children:[r.length===0?e.jsx("div",{className:"railempty",children:"No pages registered yet — they'll appear here as you build."}):r.map(c=>e.jsxs("button",{type:"button",className:"pcard",onClick:()=>o(c),children:[e.jsx("div",{className:"pthumb",children:c.screenshotPath?e.jsx("img",{className:"pshot",src:Xs(c.screenshotPath,c.screenshotCb??void 0),alt:`${c.name} preview`,loading:"lazy"}):e.jsx("div",{className:"pnopreview",children:"No preview"})}),e.jsx("div",{className:"pname",children:c.name})]},c.key)),i>0?e.jsx("div",{className:"allcard",children:e.jsxs("button",{type:"button",className:"alltile",onClick:n,children:[e.jsxs("span",{className:"n",children:["+",i]}),e.jsx("span",{className:"l",children:i===1?"page":"pages"})]})}):null]})]})}const qR=Object.freeze(Object.defineProperty({__proto__:null,ExploreRail:ps},Symbol.toStringTag,{value:"Module"}));function ms({text:t,title:s,testId:a,children:o,className:n="",writer:r}){return e.jsxs("div",{role:"alert","data-testid":a,className:`rounded-md border border-[var(--accent-danger)] bg-[var(--accent-danger)]/10 p-3 ${n}`,children:[e.jsxs("div",{className:"flex items-start justify-between gap-3",children:[s?e.jsx("div",{className:"text-xs font-medium text-[var(--text-danger)]",children:s}):e.jsx("span",{}),e.jsx(ie,{variant:"subtle",text:t,label:"Copy",writer:r})]}),e.jsx("div",{className:"mt-2",children:o??e.jsx("pre",{className:"whitespace-pre-wrap break-words font-mono text-xs text-[var(--text-secondary)]",children:t})})]})}const $R=Object.freeze(Object.defineProperty({__proto__:null,CopyableErrorBlock:ms},Symbol.toStringTag,{value:"Module"}));function us({restartCount:t}){return e.jsx("div",{className:"absolute inset-0 bg-white/90 dark:bg-gray-900/90 backdrop-blur-sm flex flex-col items-center justify-center z-50 animate-in fade-in duration-300",children:e.jsxs("div",{className:"flex flex-col items-center space-y-4 text-center max-w-md p-6",children:[e.jsx(_e,{restartCount:t}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("h3",{className:"text-lg font-semibold text-gray-900 dark:text-gray-100",children:"Dev Server Restarting"}),e.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-400",children:"The Live Preview server crashed unexpectedly. CodeYam is automatically recovering it..."})]}),t>2&&e.jsx("div",{className:"pt-2",children:e.jsx("p",{className:"text-xs text-amber-600 dark:text-amber-400 font-medium",children:"Recovery is taking longer than usual..."})})]})})}const VR=Object.freeze(Object.defineProperty({__proto__:null,DevServerRestartingOverlay:us},Symbol.toStringTag,{value:"Module"}));function xs(){return e.jsx("div",{className:"absolute inset-0 bg-white/90 dark:bg-gray-900/90 backdrop-blur-sm flex flex-col items-center justify-center z-50 animate-in fade-in duration-300",children:e.jsxs("div",{className:"flex flex-col items-center space-y-4 text-center max-w-md p-6",children:[e.jsx(_e,{restartCount:0}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("h3",{className:"text-lg font-semibold text-gray-900 dark:text-gray-100",children:"Starting Dev Server"}),e.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-400",children:"Waiting for the development server to start..."})]})]})})}const WR=Object.freeze(Object.defineProperty({__proto__:null,DevServerStartingOverlay:xs},Symbol.toStringTag,{value:"Module"}));function gs(){return e.jsx("div",{className:"absolute inset-0 bg-white/90 dark:bg-gray-900/90 backdrop-blur-sm flex flex-col items-center justify-center z-50 animate-in fade-in duration-300",children:e.jsxs("div",{className:"flex flex-col items-center space-y-4 text-center max-w-md p-6",children:[e.jsx("div",{className:"w-12 h-12 rounded-full bg-gray-200 dark:bg-gray-700 flex items-center justify-center",children:e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:"w-6 h-6 text-gray-500 dark:text-gray-400","aria-hidden":"true",children:[e.jsx("rect",{x:"6",y:"5",width:"4",height:"14",rx:"1"}),e.jsx("rect",{x:"14",y:"5",width:"4",height:"14",rx:"1"})]})}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("h3",{className:"text-lg font-semibold text-gray-900 dark:text-gray-100",children:"Dev Server Not Running"}),e.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-400",children:"Starting automatically…"})]})]})})}const UR=Object.freeze(Object.defineProperty({__proto__:null,DevServerStoppedOverlay:gs},Symbol.toStringTag,{value:"Module"}));function bs({title:t,count:s,children:a}){return e.jsxs("div",{className:"mt-5",children:[e.jsxs("div",{className:"mb-3 flex items-center justify-between gap-4",children:[e.jsx("p",{className:"text-xs font-semibold uppercase tracking-[0.18em] text-[var(--text-dim)]",children:t}),e.jsxs("p",{className:"text-xs text-[var(--text-dim)]",children:[s," total"]})]}),a]})}const JR=Object.freeze(Object.defineProperty({__proto__:null,RouteEntitySection:bs},Symbol.toStringTag,{value:"Module"}));function He(){return e.jsx("div",{className:"rounded-xl border border-dashed border-[var(--border-default)] px-4 py-5 text-sm text-[var(--text-dim)]",children:"No direct imports were found for this route file."})}const KR=Object.freeze(Object.defineProperty({__proto__:null,RouteImportEmptyState:He},Symbol.toStringTag,{value:"Module"}));function vs({directImports:t}){return t.length===0?e.jsx(He,{}):e.jsx("div",{className:"grid grid-cols-1 gap-1",children:t.map(s=>{const{fileName:a,dirPath:o}=Zs(s);return e.jsx(ye,{fileName:a,dirPath:o},s)})})}const QR=Object.freeze(Object.defineProperty({__proto__:null,RouteImportList:vs},Symbol.toStringTag,{value:"Module"}));function hs({routeEntity:t}){return e.jsxs("div",{className:"rounded-xl border border-[var(--border-default)] bg-[var(--bg-elevated)] px-4 py-4",children:[e.jsx("p",{className:"text-xs font-semibold uppercase tracking-[0.18em] text-[var(--text-dim)]",children:"Route"}),e.jsx("p",{className:"mt-2 text-lg font-semibold text-[var(--text-primary)]",children:t.displayName}),e.jsx("p",{className:"mt-1 font-mono text-xs text-[var(--accent-blue)]",children:t.route}),t.pageFilePath?e.jsx("p",{className:"mt-3 text-sm text-[var(--text-muted)]",children:t.pageFilePath}):e.jsx("p",{className:"mt-3 text-sm text-[var(--text-dim)]",children:"No source file is linked to this route yet."})]})}const YR=Object.freeze(Object.defineProperty({__proto__:null,RouteSummaryCard:hs},Symbol.toStringTag,{value:"Module"}));function fs({tabs:t,activeTable:s,onSelectTable:a,onClose:o}){return e.jsxs("div",{className:"flex items-center gap-1.5 px-2 py-1.5 bg-[var(--bg-card)] border-b border-[var(--border-default)] flex-wrap",children:[t.map(n=>e.jsx(ze,{tab:n,isActive:s===n.dataKey,onClick:()=>a(n.dataKey)},n.dataKey)),e.jsx("div",{className:"flex-1"}),e.jsx("button",{onClick:o,className:"w-5 h-5 flex items-center justify-center text-[var(--text-dim)] hover:text-[var(--text-primary)] bg-[var(--bg-input)] hover:bg-[var(--border-default)] rounded-full border-none cursor-pointer text-xs transition-colors",title:"Close",children:"×"})]})}function ze({tab:t,isActive:s,onClick:a}){const o=t.category==="datastore"?s?"text-[var(--accent-active)] bg-[var(--accent-active)]/15 border-[var(--accent-active)]/40":"text-[var(--accent-active)]/60 bg-transparent border-transparent hover:text-[var(--accent-active)]/80":t.category==="mock-api"?s?"text-[#D7FF63] bg-[#D7FF63]/15 border-[#D7FF63]/40":"text-[#D7FF63]/60 bg-transparent border-transparent hover:text-[#D7FF63]/80":s?"text-[var(--text-primary)] bg-[var(--border-default)] border-[var(--border-default)]":"text-[var(--text-dim)] bg-transparent border-transparent hover:text-[var(--text-secondary)]";return e.jsx("button",{onClick:a,className:`px-2.5 py-0.5 text-[10px] font-semibold uppercase tracking-wider rounded cursor-pointer border transition-colors ${o}`,children:t.label})}const XR=Object.freeze(Object.defineProperty({__proto__:null,DataViewerTabBar:fs,DataViewerTabButton:ze},Symbol.toStringTag,{value:"Module"}));function Ss({featureName:t,onClose:s}){return e.jsx("div",{className:"absolute inset-0 z-10 flex items-center justify-center",style:{background:"rgba(30, 30, 30, 0.90)"},children:e.jsx(xt,{featureName:t,onClose:s})})}const ZR=Object.freeze(Object.defineProperty({__proto__:null,SendTranscriptOverlay:Ss},Symbol.toStringTag,{value:"Module"}));function ne(){return e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:16,padding:16,background:"#0d1117",color:"#c9d1d9",fontFamily:"'SF Mono', Menlo, monospace",fontSize:13},children:[e.jsx(At,{title:"Section Header Example"}),e.jsxs("div",{style:{display:"flex",gap:8},children:[e.jsx(F,{color:"#238636",children:"ACTIVE"}),e.jsx(F,{color:"#d29922",children:"WARNING"}),e.jsx(F,{color:"#da3633",children:"ERROR"}),e.jsx(F,{color:"#D7FF63",children:"INFO"})]}),e.jsxs("div",{style:{display:"flex",gap:12},children:[e.jsx(O,{method:"GET"}),e.jsx(O,{method:"POST"}),e.jsx(O,{method:"PUT"}),e.jsx(O,{method:"DELETE"}),e.jsx(O,{method:"PATCH"})]}),e.jsx(W,{color:"#238636",children:"Success status message"}),e.jsx(W,{color:"#d29922",children:"Warning status message"}),e.jsx(W,{color:"#8b949e",children:"Neutral status message"})]})}const e1=Object.freeze(Object.defineProperty({__proto__:null,InspectorPrimitivesShowcase:ne},Symbol.toStringTag,{value:"Module"})),t1=[{type:"http_request",id:"evt-1",timestampMs:Date.now(),method:"GET",url:"/api/tasks",status:200,durationMs:2,mocked:!0},{type:"http_request",id:"evt-2",timestampMs:Date.now(),method:"POST",url:"/api/users/register",status:201,durationMs:145,mocked:!1}];function re({events:t}){const s=t??t1;return e.jsx("div",{style:{background:"#0d1117",padding:16},children:e.jsxs("table",{style:{width:"100%",borderCollapse:"collapse",fontSize:12,fontFamily:"'SF Mono', Menlo, monospace",color:"#c9d1d9"},children:[e.jsx("thead",{children:e.jsxs("tr",{style:{borderBottom:"1px solid #30363d"},children:[e.jsx("th",{style:B,children:"Time"}),e.jsx("th",{style:B,children:"Method"}),e.jsx("th",{style:{...B,textAlign:"left"},children:"URL"}),e.jsx("th",{style:B,children:"Status"}),e.jsx("th",{style:B,children:"Duration"}),e.jsx("th",{style:B,children:"Source"})]})}),e.jsx("tbody",{children:s.map(a=>e.jsx(Ek,{event:a},a.id))})]})})}const s1=Object.freeze(Object.defineProperty({__proto__:null,InspectorTrafficRowShowcase:re},Symbol.toStringTag,{value:"Module"}));function ys(){return e.jsx("div",{"aria-hidden":"true",className:"pointer-events-none absolute inset-0",style:{background:"repeating-linear-gradient(45deg, transparent 0 24px, rgba(255,255,255,0.025) 24px 48px)"}})}const a1=Object.freeze(Object.defineProperty({__proto__:null,StaleDbStripeOverlay:ys},Symbol.toStringTag,{value:"Module"}));function Ge({error:t}){return e.jsx("div",{"data-codeyam-scenario-error":"seed",className:"flex min-h-screen items-center justify-center bg-[var(--bg-deep)] text-[var(--accent-red)]",children:e.jsxs("div",{className:"text-center",children:[e.jsx("p",{className:"text-lg",children:"Seed Error"}),e.jsx(C,{text:t,copyText:`Seed Error: ${t}`,className:"text-sm text-[var(--accent-red)]",rowClassName:"mt-2 justify-center"}),e.jsx("p",{className:"mt-2 text-xs text-[var(--text-muted)]",children:"The database state shown may not match this scenario."})]})})}const o1=Object.freeze(Object.defineProperty({__proto__:null,ScenarioSeedErrorView:Ge},Symbol.toStringTag,{value:"Module"}));function js(){const{projectDir:t,inContainer:s,loaded:a}=Hs();return!a||t===null?null:e.jsxs("p",{className:"text-xs",style:{color:"var(--text-dim)"},children:[KC,e.jsx("code",{children:t}),QC(s)]})}const n1=Object.freeze(Object.defineProperty({__proto__:null,ConnectionIdentityLine:js},Symbol.toStringTag,{value:"Module"}));function qe({name:t,url:s}){return e.jsx("div",{className:"flex min-h-screen items-center justify-center bg-[var(--bg-deep)] text-[var(--text-muted)]",children:e.jsxs("div",{className:"max-w-md text-center",children:[e.jsx("p",{className:"text-lg",children:t}),e.jsx("p",{className:"mt-2 text-sm",children:"This is an application scenario — it renders on its own app route, not the component preview path."}),s?e.jsxs("p",{className:"mt-3 text-sm",children:["Open it at"," ",e.jsx("a",{href:s,className:"underline text-[var(--accent-blue,#6ab0ff)]",children:s})," ","(its seed and mocks are already active)."]}):e.jsx("p",{className:"mt-3 text-sm",children:"Activate the scenario, then navigate the preview to its app route to see it."})]})})}const r1=Object.freeze(Object.defineProperty({__proto__:null,ScenarioRendererAppDeadEnd:qe},Symbol.toStringTag,{value:"Module"})),Ye={singular:"item",plural:"items",pluralCap:"Items",field:"name",fields:"name, description, image",fieldsTitleCase:"Name, description, and image",currentCount:0,exampleSuggestions:["Add user accounts","Track saves per item","Remember people's preferences"]},i1={supabaseProject:"your-app",connectedOn:"today",describedOn:"today"};function l1(t){return[{title:`A ${t.singular} table`,caption:`${t.fieldsTitleCase}, ready to edit.`,where:"database"},{title:`Saved ${t.plural} tied to each person`,caption:"Their list is remembered between visits and devices.",where:"database"},{title:`An admin screen to add & edit ${t.plural}`,caption:"A simple form, no code, changes go live instantly.",where:"/admin"},{title:`Your current ${t.plural} copied in`,caption:`The ${t.currentCount} ${t.plural} already in your app become real, editable data.`,where:"migration"}]}function c1(t){return`Store ${t.plural} (${t.fields}) and which ${t.plural} each person saved. Let me add and edit ${t.plural} from an admin screen.`}function I({tone:t,icon:s,title:a,subtitle:o,children:n}){return e.jsxs("div",{className:`rd-zone rd-z-${t}`,children:[e.jsxs("div",{className:"rd-zhd",children:[e.jsx("div",{className:"rd-zn",children:s}),e.jsxs("div",{className:"rd-ztext",children:[e.jsx("div",{className:"rd-zt",children:a}),e.jsx("div",{className:"rd-zs",children:o})]})]}),n]})}const _1=Object.freeze(Object.defineProperty({__proto__:null,RealDataZone:I},Symbol.toStringTag,{value:"Module"}));function Ps({entity:t,connection:s,onPlan:a}){const[o,n]=d.useState(new Set),[r,i]=d.useState(!1),c=l1(t),_=c1(t),u=m=>{n(l=>{const g=new Set(l);return g.has(m)?g.delete(m):g.add(m),g})},x=()=>{r||(i(!0),a==null||a())};return e.jsxs("div",{className:"rd-content",children:[e.jsxs("div",{className:"rd-shead",children:[e.jsx("div",{className:"rd-badge",children:e.jsx(E,{size:25})}),e.jsxs("div",{children:[e.jsx("h1",{className:"rd-title",children:"Use real data"}),e.jsxs("div",{className:"rd-via",children:["powered by ",e.jsx("b",{children:"Supabase"})," · a secure database used by modern apps"]}),e.jsxs("p",{className:"rd-lead",children:["Move your ",t.plural," out of the code and into a database, so you (or a teammate) can add and edit them without a developer, and so each person's saved list is remembered for good."]})]})]}),e.jsxs(I,{tone:"learn",icon:e.jsx(gt,{size:16}),title:"Understand it first",subtitle:"No jargon — here's what a database actually does for you.",children:[e.jsxs("p",{children:["A database is just a ",e.jsx("b",{children:"labelled place your app remembers things"})," — like a spreadsheet it can read and write instantly. Today your"," ",t.plural," are typed into the code, so changing one means changing the app."]}),e.jsxs("p",{children:["Move them into a database and a ",t.singular," becomes"," ",e.jsx("b",{children:"data you can edit"})," from a simple screen. Update a ",t.field," ","once and it changes everywhere, instantly."]}),e.jsxs("div",{className:"rd-ba",children:[e.jsxs("div",{className:"rd-bx2 rd-now",children:[e.jsx("div",{className:"rd-batag",children:"Now · in the code"}),e.jsxs("div",{className:"rd-baln",children:[e.jsx(se,{size:13}),"A developer edits ",t.plural]}),e.jsxs("div",{className:"rd-baln",children:[e.jsx(se,{size:13}),"Saves reset on refresh"]})]}),e.jsx("div",{className:"rd-arrowmid",children:"→"}),e.jsxs("div",{className:"rd-bx2 rd-next",children:[e.jsx("div",{className:"rd-batag",children:"After · in a database"}),e.jsxs("div",{className:"rd-baln",children:[e.jsx(k,{size:13}),"You edit ",t.plural," yourself"]}),e.jsxs("div",{className:"rd-baln",children:[e.jsx(k,{size:13}),"Saves last forever"]})]})]})]}),e.jsxs(I,{tone:"tell",icon:e.jsx(bt,{size:16}),title:"Tell CodeYam what to remember",subtitle:"Describe it in plain words. This is the instruction it follows.",children:[e.jsxs("div",{className:"rd-field",children:[e.jsx("span",{className:"rd-edit",children:"Edit"}),_]}),e.jsx("div",{className:"rd-examples",children:t.exampleSuggestions.map((m,l)=>e.jsxs("button",{type:"button",className:"rd-ex"+(o.has(l)?" added":""),onClick:()=>u(l),children:[e.jsx("span",{className:"rd-plus",children:o.has(l)?"✓":"+"}),m]},m))})]}),e.jsx(I,{tone:"build",icon:e.jsx(vt,{size:16}),title:"What CodeYam will build",subtitle:`${c.length} changes, each previewable before it ships.`,children:e.jsx("div",{className:"rd-builds",children:c.map(m=>e.jsxs("div",{className:"rd-bitem",children:[e.jsx("div",{className:"rd-bx",children:e.jsx(k,{size:13})}),e.jsxs("div",{className:"rd-bmain",children:[e.jsx("b",{children:m.title}),e.jsx("span",{children:m.caption})]}),e.jsx("span",{className:"rd-where",children:m.where})]},m.title))})}),e.jsx(I,{tone:"track",icon:e.jsx(ht,{size:16}),title:"Track what's done",subtitle:"So you always know where you left off, even weeks later.",children:e.jsxs("div",{className:"rd-tl",children:[e.jsxs("div",{className:"rd-te",children:[e.jsxs("div",{className:"rd-tdot",children:[e.jsx("div",{className:"rd-nd done",children:e.jsx(k,{size:12})}),e.jsx("div",{className:"rd-tline"})]}),e.jsxs("div",{className:"rd-tc",children:[e.jsxs("div",{className:"rd-tt",children:["Connected a Supabase project"," ",e.jsx("span",{className:"rd-when",children:s.connectedOn})]}),e.jsxs("div",{className:"rd-td",children:['Project "',s.supabaseProject,`" linked. CodeYam holds the keys — you don't manage servers.`]})]})]}),e.jsxs("div",{className:"rd-te",children:[e.jsxs("div",{className:"rd-tdot",children:[e.jsx("div",{className:"rd-nd done",children:e.jsx(k,{size:12})}),e.jsx("div",{className:"rd-tline"})]}),e.jsxs("div",{className:"rd-tc",children:[e.jsxs("div",{className:"rd-tt",children:["Described what to store"," ",e.jsx("span",{className:"rd-when",children:s.describedOn})]}),e.jsxs("div",{className:"rd-td",children:[t.pluralCap," and per-person saved lists. You can refine this above anytime."]})]})]}),e.jsxs("div",{className:"rd-te is-todo",children:[e.jsx("div",{className:"rd-tdot",children:e.jsx("div",{className:"rd-nd now",children:"3"})}),e.jsxs("div",{className:"rd-tc",children:[e.jsxs("div",{className:"rd-tt",children:["Plan & build the ",c.length," changes"]}),e.jsx("div",{className:"rd-td",children:"Next step. Nothing is built or charged until you do this."})]})]})]})}),e.jsxs("div",{className:"rd-foot",children:[e.jsx("button",{type:"button",className:"rd-cta"+(r?" done":""),onClick:x,disabled:r,children:r?"Added to your plans ✓":e.jsxs(e.Fragment,{children:["Plan these ",c.length," changes"," ",e.jsx("span",{className:"rd-ar",children:"→"})]})}),e.jsxs("div",{className:"rd-fnote",children:["They'll land in your ",e.jsx("b",{children:"Plan"})," tab. Your live app keeps working on its current data until they ship."]})]})]})}const d1=Object.freeze(Object.defineProperty({__proto__:null,RealDataConnected:Ps},Symbol.toStringTag,{value:"Module"})),p1=1800;function Cs({entity:t,onConnect:s}){const[a,o]=d.useState(!1),n=()=>{a||(o(!0),window.setTimeout(s,p1))};return e.jsxs("div",{className:"rd-content",children:[e.jsxs("div",{className:"rd-shead",children:[e.jsx("div",{className:"rd-badge",children:e.jsx(E,{size:25})}),e.jsxs("div",{children:[e.jsxs("h1",{className:"rd-title",children:["Use real data ",e.jsx("span",{className:"rd-pill",children:"Not set up"})]}),e.jsxs("div",{className:"rd-via",children:["powered by ",e.jsx("b",{children:"Supabase"})]}),e.jsxs("p",{className:"rd-lead",children:["Right now your ",t.plural," live inside the code, and anything people save resets when they leave. To remember things for good, your app needs a database. CodeYam uses Supabase."]})]})]}),e.jsxs("div",{className:"rd-explain",children:[e.jsxs("div",{className:"rd-eh",children:[e.jsx("span",{className:"rd-q",children:"?"}),"New to Supabase? Here's the short version"]}),e.jsxs("div",{className:"rd-lede",children:[e.jsx("b",{children:"Supabase is your app's memory."})," It's a database — a secure, organised place your app stores everything it needs to remember: your"," ",t.plural,", who saved what, people's profiles. Think of a smart filing cabinet your app can read from and write to in an instant."]}),e.jsxs("div",{className:"rd-erows",children:[e.jsxs("div",{className:"rd-erow",children:[e.jsx("div",{className:"rd-en",children:e.jsx(E,{size:16})}),e.jsxs("div",{className:"rd-et",children:[e.jsx("b",{children:"It remembers everything"}),e.jsxs("span",{children:["Your ",t.plural,", saved lists, and profiles are kept safe"," ",e.jsx("em",{children:"even after everyone closes the app"}),", instead of resetting."]})]})]}),e.jsxs("div",{className:"rd-erow",children:[e.jsx("div",{className:"rd-en",children:e.jsx(V,{size:16})}),e.jsxs("div",{className:"rd-et",children:[e.jsx("b",{children:"It keeps data private"}),e.jsxs("span",{children:["Built-in rules decide who can see what, so"," ",e.jsx("em",{children:"one person can't read another's"})," saved ",t.plural," or details."]})]})]}),e.jsxs("div",{className:"rd-erow",children:[e.jsx("div",{className:"rd-en",children:e.jsx(ae,{size:16})}),e.jsxs("div",{className:"rd-et",children:[e.jsx("b",{children:"It's yours to edit"}),e.jsxs("span",{children:["Change a ",t.singular," in a simple screen and it updates"," ",e.jsx("em",{children:"everywhere, instantly"}),", with no developer involved."]})]})]})]}),e.jsxs("div",{className:"rd-why",children:[e.jsxs("div",{className:"rd-wh",children:[e.jsx(ft,{size:15}),"Why CodeYam picks Supabase for you"]}),[{lead:"Free to start, no card needed.",rest:"A generous free tier covers a new app comfortably. You only pay if it grows popular, and you'll see it coming."},{lead:"Built on standard Postgres.",rest:"Your core data lives in a standard Postgres database, so it's portable and easy to export — moving it elsewhere is straightforward. (Auth, file storage, and row-level security are Supabase-specific.)"},{lead:"Little for you to manage.",rest:`No servers to run or patch, and paid tiers keep automatic daily backups. One caveat on the free tier: ${We("supabase.free").value} — so keep your own export and plan to upgrade before launch.`}].map(r=>e.jsxs("div",{className:"rd-whyrow",children:[e.jsx("span",{className:"rd-wc",children:e.jsx(k,{size:11})}),e.jsxs("p",{children:[e.jsx("b",{children:r.lead})," ",r.rest]})]},r.lead))]})]}),e.jsxs("div",{className:"rd-connect",children:[e.jsx("div",{className:"rd-ct",children:"Connect or create your Supabase project"}),e.jsx("div",{className:"rd-cd",children:"A new window opens on Supabase. If you already have an account, sign in. If not, you'll make one — it's free and takes a few minutes. CodeYam links to it and holds the keys, so you never touch a server."}),e.jsx("button",{type:"button",className:"rd-cbtn",onClick:n,disabled:a,children:a?e.jsxs(e.Fragment,{children:[e.jsx(St,{size:16}),"Opening Supabase…"]}):e.jsxs(e.Fragment,{children:[e.jsx(yt,{size:16}),"Connect Supabase"]})}),e.jsxs("div",{className:"rd-reassure",children:[e.jsxs("span",{children:[e.jsx(k,{size:13}),"Free to start, no card needed"]}),e.jsxs("span",{children:[e.jsx(k,{size:13}),"Takes about 3 minutes"]}),e.jsxs("span",{children:[e.jsx(k,{size:13}),"Disconnect any time"]})]})]}),e.jsx("div",{className:"rd-uplabel",children:"Then, once you're connected"}),e.jsxs("div",{className:"rd-locked",children:[e.jsxs("div",{className:"rd-lrow",children:[e.jsx("div",{className:"rd-ln",children:e.jsx(jt,{size:15})}),e.jsxs("div",{className:"rd-lt",children:[e.jsx("b",{children:"Tell us what to remember"}),e.jsxs("span",{children:['A sentence in plain language, like "store ',t.plural,' and which ones each person saved."']})]}),e.jsx("span",{className:"rd-lk",children:e.jsx(V,{size:15})})]}),e.jsxs("div",{className:"rd-lrow",children:[e.jsx("div",{className:"rd-ln",children:e.jsx(ae,{size:15})}),e.jsxs("div",{className:"rd-lt",children:[e.jsx("b",{children:"CodeYam builds your data & admin screen"}),e.jsxs("span",{children:["A ",t.singular," table, saved lists, and a simple screen to add or edit ",t.plural," — each a plan you preview before it ships."]})]}),e.jsx("span",{className:"rd-lk",children:e.jsx(V,{size:15})})]})]}),e.jsx("div",{className:"rd-uplabel",children:"Common questions"}),e.jsx(Pt,{items:[{q:"What happens to my data if I stop paying or leave?",a:`Your data is in standard Postgres, so you can export it at any time and take it with you. On Supabase's free tier, ${We("supabase.free").value}, so keep your own export and don't rely on it for anything you can't lose. Paid tiers add automatic daily backups, and because the core is Postgres, moving to another host later is straightforward.`},{q:"Is my data really safe on the free tier?",a:"It's secure, but the free tier is meant for building and trying things, not for production data you can't afford to lose. Free projects pause when idle and have no automatic backups, so upgrade to a paid tier (or keep regular exports) before real people depend on it."}]}),e.jsx(Ct,{assistKey:"real-data",topicName:"Use real data"})]})}const m1=Object.freeze(Object.defineProperty({__proto__:null,RealDataNotConnected:Cs},Symbol.toStringTag,{value:"Module"})),u1={AppleGlyph:Sx,ArrowRightIcon:fx,GoogleGlyph:hx,GraduationIcon:vx,MagicLinkIcon:bx,PaperPlaneIcon:gx,PersonIcon:xx,WarningTriangleIcon:ux,ChatIcon:bt,CheckGlyph:k,ClockIcon:ht,CubeIcon:vt,InfoCircleIcon:gt,LinkIcon:yt,ListLinesIcon:jt,ScreenIcon:ae,ShieldCheckIcon:ft,SpinnerIcon:St,XCircleIcon:se,SetupStepper:mx,SetupStep:px,SetupAccountRow:dx,MethodChips:_x,EditableField:cx,ExampleChips:lx,BuildList:ix,ControlNote:rx,SetupPlanFooter:nx,AccountsConnected:ox,EmailsConnected:ax,PaymentsConnected:sx,ModeBar:tx,RealDataConnected:Ps,RealDataNotConnected:Cs,RealDataZone:I,RealSetupFlow:ex,SetupNotConnected:Zu,DesignAssetDropLabel:Xu,PendingFileCard:Yu,PendingFileList:Qu,SaveAssetsButton:Ku,AssetSaveErrorMessage:Ju,AssetSaveSuccessMessage:Uu,ProviderAuthGate:Wu,ProviderAuthenticateCta:oN,GatedAgentChat:aN,ProviderAuthModal:sN,ClaudeOAuthFlow:tN,ApiKeyFlow:eN,AppServiceCredentialModal:Vu,DetectedServiceRow:$u,ServiceRow:qu,ApiKeyField:Gu,ProviderLogo:zu,G:Hu,ExternalServicesScreenConnected:Fu,ConnectionIdentityLine:js,PreviewForwardPortNotice:Lu,AppCard:Iu,AppDetail:Au,AppOverview:Ou,BuildTab:Bu,BuildTabLayout:Mu,BuildTabPane:Eu,BuildTabPaneLayout:Du,BuildTabRecoveryPanel:Ru,BuildTabSessionContent:Tu,BuildTabStartupError:ku,BuildTabReadyToBuildPlaceholder:qt,BuildTabTerminalSession:Nu,AppSelector:Gt,AppTypeBadge:wu,BreadcrumbNav:Cu,EntityBreadcrumb:Pu,BuildingPreviewOverlay:ju,ConnectionBadge:Vk,DebugModeButton:yu,DebugModal:Su,DebugModalElementPreview:fu,DebugModalInfoPanel:hu,DebugOverlay:vu,DebugAncestryList:bu,DebugAncestrySection:gu,DebugPropsChips:xu,DebugFreezePill:uu,OpenInEditorErrorToast:mu,CyLogo:pu,DeviceIcon:du,EditorNavBar:_u,DesktopTitleBar:cu,IdleBanner:lu,BlockedBanner:iu,StuckTurnBanner:it,StuckTurnBannerAgentReadyShowcase:$t,TurnEndedOffGateBanner:lt,TurnEndedOffGateBannerAgentReadyShowcase:Vt,NotificationSettingsControlsShowcase:Wt,EditorSessionRecoveryActionButton:ru,EditorSessionRecoveryDialog:nu,EditorSessionRecoveryHeader:ou,EditorSessionRecovery:au,EditorSessionRecoverySummaryRow:su,EditorSessionRecoverySummary:tu,EditorShellHomeTabContent:eu,EditorShellBuildLayer:Zm,EditorShellLayout:Xm,EditorShellLeftPane:Ym,EditorShellPlanLayer:Qm,EditorShellPreviewPane:te,EditorShellTabLayer:Km,MobilePaneSwitcher:Jm,GearIcon:Um,EventCard:be,EventStream:Ut,EntryTypeBadge:ue,CollapsibleMarkdown:st,FeatureNameButton:Wm,FeatureGroupView:he,FileChangeSummary:de,FileStatusIndicator:Vm,HistoryTab:$m,HistoryEntryCard:qm,HistoryDigest:Gm,HistoryDigestStatRow:zm,HistoryRangeSelector:Hm,DigestHeader:Fm,CommitOnlyHistoryRow:Lm,NotificationSettingsPopover:Im,NotificationSettingsControls:ce,NotificationSetupBanner:Am,DebugNotificationsButton:Om,IdleTriggerCheckbox:Bm,JournalEntryCard:me,JournalEntryDetails:pe,JournalView:Lt,ReviewsTab:Mm,ReviewDetailCard:Em,ScenarioComparisonRow:Dm,CapturePane:Rm,ReviewFindingRow:Tm,LearnSetupScreen:rt,LibrariesCatalogScreen:km,LibraryGroupSection:Nm,LibraryRow:wm,AddTopicForm:Cm,SetupAddTopicRow:Pm,SetupTopicRouter:jm,ExternalServicesScreen:ym,ProvisionWithBrokerCta:Sm,HostingScreen:fm,RunLocallyScreen:hm,WiredProviderBanner:vm,StoreAccountsScreen:bm,ExtensionAssetsScreen:gm,PermissionsJustificationScreen:xm,PermissionRow:um,ExtensionPrivacyPolicyScreen:mm,OAuthVerificationScreen:pm,SinglePurposeListingScreen:dm,ManifestVersioningScreen:_m,SubmitReviewScreen:cm,ExtensionDistributionScreen:lm,StagingPreviewScreen:im,StagingEnvironmentScreen:rm,PreReleaseScreen:nm,RealDataScreen:om,DeployTargetScreen:am,DatabaseBackupsScreen:sm,SecretsScreen:tm,ApiAuthScreen:em,CorsOriginsScreen:Zp,BackgroundJobsScreen:Xp,LoggingMonitoringScreen:Yp,AccountsScreen:Qp,EmailsScreen:Kp,PaymentsScreen:Jp,AnalyticsMonitoringScreen:Up,LegalScreen:Wp,DataSafetyScreen:Vp,PublishScreen:$p,CustomDomainScreen:qp,FormsScreen:Gp,AnalyticsSeoScreen:zp,RedirectsNotFoundScreen:Hp,PerformanceImagesScreen:Fp,CommentsSearchScreen:Lp,PublishRegistryScreen:Ip,VersioningChangelogScreen:Ap,InstallDocsScreen:Op,ReleaseBuildsScreen:Bp,ShellCompletionsScreen:Mp,CliUxScreen:Ep,SupplyChainScreen:Dp,ExamplesScreen:Rp,ApiDocsScreen:Tp,BackendApiDocsScreen:kp,SemverPolicyScreen:Np,ReadmeLicenseScreen:wp,ChangelogCiScreen:Cp,DevAccountsScreen:Pp,StoreAssetsScreen:jp,StoreListingScreen:yp,TestingDistributionScreen:Sp,PushNotificationsScreen:fp,CrashReportingScreen:hp,InAppPurchasesScreen:vp,AppPrivacyScreen:bp,AppReviewScreen:gp,LabeledSection:w,FilterBar:Jt,LeftPanel:xp,ModifiedFilesList:ot,NavLink:ee,Markdown:Ot,NewProjectQuestionnaire:up,NewProjectQuestionnaireInner:mp,DesignAddAssetsStep:Kt,OnboardingShell:pp,OnboardingPromptStep:dp,OnboardingTypeChips:_p,OnboardingStackPicker:cp,StackPickerCollapsed:lp,StackPickerResults:ip,NotificationSoundSelect:rp,OnboardingListItem:np,OnboardingDropzone:op,OnboardingDesignAssetsStep:ap,OnboardingNotificationsStep:sp,QuestionnaireDesignApproachStep:Qt,QuestionnaireNotificationsStep:Yt,QuestionnaireDesignChatStep:tp,QuestionnaireDesignChatLaunchPanel:ep,MockupArchivedRoundView:Zd,MockupCard:Xd,MockupCardPreviewSlot:Yd,MockupCardFeedback:Qd,MockupFeedbackCommentBox:Kd,MockupFeedbackRatingSlider:Jd,MockupGridGeneratingOverlay:Ud,MockupGridInfoBanner:Wd,MockupGridIterateButton:Vd,MockupPlaceholderCard:$d,MockupRoundPager:qd,DesignExplorationView:Gd,DesignRoundPreviewPane:zd,QuestionnaireIntroBanner:Hd,QuestionnaireDeviceSelector:Xt,QuestionnaireNavButtons:Fd,QuestionnaireOptionCard:Q,PanelDivider:Ld,PromptDropdownPanel:Id,PreviewCanvas:Ad,PreviewEmptyState:Od,PreviewFrame:Bd,BackendResultsPanelView:Md,PlanPreviewPanelView:Ed,PlanPreviewEmptyState:Dd,PlanPreviewHeader:Rd,ProjectSetupPreviewView:Td,ProjectSetupPreviewPane:kd,StartBuildingConfirmModal:Nd,ResetBuildConfirmModal:wd,ProjectSetupHeader:Cd,ProjectSetupDescriptionCard:Pd,ProjectSetupDesignCard:jd,ProjectSetupChosenMockup:yd,ProjectSetupDesignAssetList:Sd,ProjectLauncher:jT,ProjectRow:yT,ProjectRowActions:ST,ProjectScanForm:fT,ProjectCreateForm:hT,ProjectBootstrapBanner:vT,Thumbnail:bT,RunningBadge:gT,CurrentBadge:xT,ProjectLauncherHeader:uT,ProjectLauncherLoading:mT,ProjectLauncherError:pT,ProjectLauncherEmpty:dT,ProjectOpenError:_T,CreateProjectModal:cT,ProjectLauncherScreen:lT,OpenSourceProjectsSection:iT,OpenSourceProjectRow:rT,ProjectSetupProgressList:fd,ProjectSetupProgressRow:hd,LiveIframeHealthPill:vd,PreviewPanel:te,BuildLogsModal:bd,SimulatorLauncherControls:gd,SimulatorPreviewFrame:()=>d.createElement(Px,{currentWidth:390,currentHeight:844,isFilled:!1,scale:.6,pollMs:6e4}),SimulatorNotBootedPrompt:()=>d.createElement(jx,{pollMs:6e4}),NoBootedSimulatorPlaceholder:xd,DeviceFrameImage:()=>d.createElement(yx,{src:"/api/screenshots/app-overview-single-app--desktop.png",currentWidth:390,currentHeight:844,isFilled:!1,scale:1}),SimulatorFrameNotice:ud,NativeMirrorNotice:md,QuestionnaireStepNav:Zt,QuestionnaireStepPanel:H,AppDetailContent:pd,AppDetailContentError:dd,AppDetailContentLoading:_d,AppDetailHeader:cd,AppCapabilitiesPanel:ld,AppStackPanel:id,AppStackPanelSummary:rd,AppStackPanelBody:nd,AppStackCapabilitiesSlot:od,CapabilityRow:ad,AppTestSummary:sd,LayoutChainCard:td,LayoutChainSection:ed,RouteDependencyCard:Z_,RouteDependencyCardHeader:X_,RouteDependencyEmptyState:Y_,RouteDependencyList:Q_,RouteDependencyScenarioStrip:K_,RouteEntityDetail:J_,RouteEntityDetailContent:U_,RouteFunctionCard:W_,RouteFunctionEmptyState:V_,RouteFunctionList:$_,RouteEntityDetailHeader:q_,RouteEntityTabs:G_,RouteGroupView:fe,RouteImportRow:ye,RouteList:z_,UnsurfacedPagesSection:H_,UnsurfacedPagesSectionHeader:F_,UnsurfacedPageGroup:L_,UnsurfacedPageRow:I_,UnsurfacedPageRowSummary:A_,UnsurfacedPageInvestigateButton:O_,RouteListCardThumbnail:B_,RouteScenarioList:M_,ScenarioCard:_t,ScenarioRow:E_,ScenarioDetailPanel:es,MockBodyEditor:Pe,MockBodyHeadersEditor:kt,MockBodyJsonTextarea:je,MockPanelGroup:ts,MockPanelHeader:ss,MockPanelRow:Ne,MockPanelRowActions:Ce,MockPanelRowHeader:we,MockSourceBadge:Tt,RepeatPassMarker:D_,ScenarioThumbnailGrid:at,StatusBadge:ve,StepIndicatorBar:R_,StepIndicatorDropdownItem:T_,TabPane:k_,TestItem:ct,TestGroupHeader:N_,TestGroupList:w_,TestGroupRow:C_,TestResultsBadge:nt,TestSummary:as,TestStatusIcon:P_,ThumbnailStrip:j_,CollapseToggleButton:y_,DimensionInput:S_,EditorShell:f_,EntityDetail:h_,EntityDetailContent:v_,EntityDetailHeader:b_,EntityRefCard:g_,EntityRefList:x_,FillPreviewButton:u_,OpenInNewTabButton:m_,PlaceholderPane:os,SettingsTab:p_,CheckInToggleRow:d_,WorkflowSettingsSection:__,HardeningAutoAction:c_,SegmentedPicker:l_,PlanTab:i_,PlanTabHeader:r_,PlanNextChangeButton:n_,PlanAuthoringChat:o_,DescribePane:a_,PrototypePane:s_,PrototypeAgentChat:t_,StartPrototypingButton:e_,FinishAndFormalizeButton:Zc,PrototypeBuildingInProgressBanner:Xc,PlanChatLaunchCaption:Yc,PlanExpandedHeader:Qc,PlanRow:Kc,PlanRowClaimBadge:Jc,PlanRowDependencyEntry:Uc,PlanRowEditButton:Wc,PlanRowEditChatButton:Vc,PlanRowExpandedBody:$c,PlanRowExpandedChat:qc,PlanRowExpandedDependencies:Gc,PlanRowExpandedEdit:zc,PlanRowExpandedView:Hc,PlanRunButton:Fc,PlanRunBlockedModal:Lc,PlanRunForeignClaimModal:Ic,PlanRunDependenciesModal:Ac,QueuedChangesSection:Oc,InFlightSection:Bc,InFlightPlanRow:Mc,CommitQueueSection:Ec,CommitQueueRow:Dc,CommitQueuePriorityChip:Rc,CommitQueueReleaseButton:Tc,CommitQueueSaveBar:kc,CommitQueueRowIdentity:Nc,SortablePlanRow:wc,RecentPlansSection:Cc,CompletedPlanRow:Pc,CompletedPlanExpandedBody:jc,TabScrollPanel:yc,BuildActivityModal:Sc,BuildActivityMenu:fc,BuildActivityCard:hc,BuildActivityModalHeading:vc,BuildActivityPlanList:bc,FeatureCompleteActions:gc,BuildChatLaunchPanel:xc,BuildChatAgentChat:uc,StartChatButton:mc,BuildActivityReopenBar:pc,BuildChatPane:dc,ActivityDoneButton:_c,GlobalFileDropOverlay:cc,GlobalFileDropToast:lc,FileDropConfirmModal:pt,FileDropConfirmModalAgentReadyShowcase:ns,AttachFileButton:Dt,AttachFileButtonRoutingShowcase:rs,SelectPlanModal:ic,PlanCompleteDialog:rc,PlanCompleteTransition:nc,ScenarioRenderer:Ns,ScenariosView:is,TerminalEmulator:oc,RawTerminalModal:ac,RawTerminalEmulator:sc,SetupTerminalPane:tc,SetupTerminalHeader:ec,SetupBrowserPane:Zl,SetupBrowserHeader:Xl,TerminalDropOverlay:Zw,TerminalDropToast:Xw,TerminalDisconnectOverlay:Yw,MobileTerminalCommandMenu:Yl,MobileTerminalCommandMenuPanel:Ql,TerminalConnectingHint:Qw,TerminalReconnectingBanner:Kw,TerminalFailedBanner:Jw,TerminalServerStoppedBanner:Uw,TestsView:ls,NavigationBar:Kl,PagePill:Jl,PagePickerDropdown:Ul,StatesDropdown:Wl,CreateStatePlaceholderModal:Vl,StatesPillButton:$l,EditDataButton:cs,EditDataPopover:_s,EditDataPopoverBody:Ee,EditDataPopoverDescribeInput:Me,EditDataPopoverHeader:Le,EditDataPopoverResizeHandleLeft:Fe,EditDataPopoverSaveCancelClose:Be,EditDataPopoverSearchInput:Oe,EditDataPopoverSectionSelector:Ae,EditDataPopoverTabStrip:Ie,ScenarioDataPanelMainProps:De,ScenarioDataPanelPropsEditor:Re,ViewportPresetButton:ql,PagePickerTabButton:Gl,PagePickerEmptyMessage:zl,PagePickerScenarioThumbnail:Hl,PagePickerRouteSection:Fl,StatesDropdownRow:Ll,ComponentGlyph:Il,DropdownChevron:Al,PageGlyph:Ol,ViewTabs:ds,SessionResultsPanel:Bl,SessionResultsPanelHeader:Ml,MinimizedSessionResults:El,BackendResultsPage:Dl,BackendResultsHeader:Rl,BuildProgressDetail:Tl,BuildFileRow:kl,FunctionChangeRow:Nl,BackendConnectionStatusBadge:wl,BehaviorGallery:Cl,ChangeCard:Pl,WaysToTestList:jl,BehaviorGroup:yl,BehaviorItem:Sl,BehaviorEvidenceDrawer:fl,RerunSection:hl,BehaviorExampleTable:vl,BehaviorGalleryEmptyState:bl,RunEvidenceLine:gl,NarrativeTestStatusIcon:xl,CoverageBadge:mt,CoverageBar:ul,CoverageWarningsBanner:ml,CoverageSectionHeader:pl,OrphanedFileRow:dl,CoverageDetailsModal:_l,CoverageFileDrilldown:cl,CoverageDetailsEntriesSection:ll,CoverageDetailsEntryRow:il,CoverageDetailsOrphanedSection:rl,CoverageDetailsDirectoriesSection:nl,CoverageDetailsDirectoryGroup:ol,CoverageDetailsDirectoryFileRow:al,CoverageLineRow:sl,AppCardFooter:tl,RunTestsButton:el,TestBar:Zi,AppCardHeader:Xi,AppCardScenarioStrip:Yi,AppOverviewEmptyState:Qi,AppOverviewEmptyStateBuildingPanel:Ki,AppOverviewEmptyStateNoAppPanel:Ji,OpenBuildTabButton:Ui,AppOverviewGrid:Wi,AppOverviewHeader:Vi,HomeBuildStatusSection:$i,ExploreRail:ps,CopyButton:ie,CopyableErrorBlock:ms,CopyableErrorText:C,CrashLogFooter:qi,CrashLogFooterMessage:Gi,CrashLogHeader:zi,CrashLogViewer:Hi,DevServerCrashLog:Fi,DevServerRestartingOverlay:us,DevServerStartingOverlay:xs,DevServerStoppedOverlay:gs,PreviewUnhealthyOverlay:Li,ClientRoutingAdvisory:Ii,PreviewErrorOverlay:Ai,PreviewErrorOverlayHeader:Oi,PreviewErrorOverlayFooter:Bi,PreviewErrorList:Mi,PreviewErrorRow:Ei,PreviewErrorBadge:Di,BuildSpinner:Ri,BuildShaBadge:Ti,RestartSpinner:_e,RouteEntitySection:bs,RouteImportEmptyState:He,RouteImportList:vs,RouteListCard:ki,RouteListEmptyState:Ni,RouteListSection:wi,RouteListSectionHeader:Ci,RouteScenarioEmptyState:Pi,RouteSummaryCard:hs,BuildingDoor:ji,PlanRunBlockedTooltip:yi,AnimatedEllipsis:Si,BuildingCardActive:fi,BuildingCardIdle:hi,BuildingCardThumbnail:vi,BuildingStepLine:bi,BuildResetLink:gi,ExploreSectionHeading:xi,RouteKindToggle:ui,RouteSearchField:mi,RouteViewControls:pi,RouteListCardHeading:di,RouteGroupDisclosure:_i,ExternalServicesListBar:ci,ExternalServicesSummary:li,ExternalServicesSuggestionChips:ii,SearchIcon:ri,HomeHeader:ni,HomeSectionHeading:oi,HomeBuildingSection:ai,HomeQueuedPlansSection:si,HomeTestingSection:ti,HomeTestingSectionControls:ei,ManualTestRow:Zr,ManualTestDeleteConfirmModal:Xr,HomeExploreTabs:Yr,SafeScreenshot:Qr,ScenarioRowMeta:Kr,ScenarioRowOverrideBadge:Jr,ScenarioRowThumbnail:Ur,SidebarGroupOverrideHeader:Ww,SidebarInheritedSection:Vw,DataViewerCategoryBadge:$w,DataViewerCellEditor:qw,DataViewerTabBar:fs,DataViewerTable:Gw,ScenarioDataPanel:Nt,ScenarioDataPanelCloseButton:zw,ScenarioDataPanelEditChatButton:Hw,ScenarioDataPanelEmptyState:Fw,ScenarioDataPanelFullPage:kT,ScenarioDataPanelHeader:Lw,ScenarioDataPanelInspectButton:Iw,ScenarioDataPanelMainMock:Aw,ScenarioDataPanelMainMockEditable:Mt,ScenarioDataPanelMainMockHeader:Ow,ScenarioDataPanelMainMockReadOnly:Bt,ScenarioDataPanelMainTable:Et,ScenarioDataPanelOpenInNewButton:Bw,ScenarioDataPanelMockDataBadge:Mw,ScenarioDataPanelMockDataStrip:Ew,ScenarioDataPanelSidebar:Dw,SaveScopeChoiceRow:Rw,SaveScopeModal:Tw,SidebarMockEntryRow:kw,MockSharedSlugBadge:Nw,ScenarioDraftBar:ww,JsonBodyActions:Cw,JsonTreeAddKeyInput:Pw,JsonTreeArrayNode:jw,JsonTreeEditor:yw,JsonTreeNode:Sw,JsonTreeNodeLine:fw,JsonTreeObjectNode:hw,JsonTreePrimitiveEditor:vw,JsonTreePrimitiveNode:bw,ScenarioRenameForm:Wr,ScenarioRowActions:Vr,MiniAgentChat:gw,MiniAgentLaunchOverlay:xw,EnvelopeIcon:$r,SendTranscriptModal:xt,SendTranscriptOverlay:Ss,ContainerInspector:$k,InspectorScenarioSection:qk,InspectorRouteTable:Gk,InspectorTrafficSection:zk,InspectorExplainerSection:Hk,InspectorExplainerResult:Fk,InspectorPrimitivesShowcase:ne,InspectorTrafficRowShowcase:re,InspectorTrafficDetail:Lk,InspectorTrafficFilterBar:Ik,InspectorTrafficTable:Ak,InspectorTrafficUrlChips:Ok,InspectorUrlGlossary:Bk,InspectorPrimitives:ne,InspectorTrafficRow:re,StepsSimulator:Ck,StepsSimulatorStepList:Pk,StepsSimulatorVariableControl:jk,StepsSimulatorInstructionsPanel:yk,SeedErrorBanner:qr,SeedLoadingOverlay:Gr,PreviewLoadingSpinner:zr,StaleDbStripeOverlay:ys,ScenarioSeedErrorView:Ge,InspectModeRibbon:Hr,IframeClickThroughErrorCard:Fr,InspectResultCard:Lr,InspectResultCardBackdrop:Ir,InspectResultCardBody:Ar,InspectResultCardHeader:Or,InspectResultCardMatchButton:Br,InspectResultCardMatchList:Mr,SkeletonBar:Er,PreviewWaitingPlaceholder:Dr,AgentInputProvider:J,Alts:Rr,AskBox:Tr,Badge:F,BellIcon:kr,BoxIcon:Nr,CardIcon:wr,ChartIcon:Cr,Check:Pr,ChevronLeftIcon:jr,ChevronRightIcon:yr,Chips:Sr,CloseIcon:fr,CloudIcon:hr,DatabaseIcon:E,DocIcon:vr,EmbeddedPreviewPlaceholder:br,EmptyTabCopy:gr,ExploreIcon:ut,Faq:xr,GlobeIcon:ur,HSHeader:mr,HostingConnectStep:pr,HostingDeployStep:dr,HostingRealDeployStep:_r,HostingLiveStep:cr,HostingOverviewConnected:lr,HostingOverviewGuided:ir,Journey:rr,LightbulbIcon:nr,LockIcon:V,MailIcon:or,OpenInNewTabIcon:ar,PlansIcon:sr,ProviderMark:tr,QuestionnaireOptionIndicator:Se,Reasons:er,RefreshCycleIcon:Zn,RefreshPreviewButton:Xn,ReqList:Yn,RocketIcon:Qn,SetupIcon:Kn,SimulatedSetupOverview:Jn,SimulatedSetupScreen:Un,StatusBox:W,StoreAlternativesNote:Wn,TeachSetupScreen:Vn,TerminalCopiedToast:$n,TerminalIcon:qn,ThumbDownIcon:Gn,ThumbUpIcon:zn,VercelMark:Hn,ActiveScenarioOverlay:Fn,Alternatives:Ln,FactFreshness:In,ProviderCard:An,TopicFaq:Pt,FaqSection:On,ChangelogSection:Bn,ApplicationGroups:Mn,BranchRows:Sk,BrowserStateButton:uw,BrowserStateTab:mw,CheckList:En,CollapsedImpactedScenarios:Dn,ColorPalettePicker:Rn,ColorSwatchEditor:Tn,ComponentGroups:kn,CostCallout:Nn,DataViewerCell:pw,DataViewerColumnHeader:dw,DataViewerRow:_w,DataViewerTabButton:ze,DesignAssetDropZone:dt,DesignAssetsView:wn,DesignChatPreviewPane:Cn,DetailSection:Mk,DevServerFailedPanel:Pn,FilesList:jn,FlowBar:yn,FontOptionRow:Sn,FontPicker:fn,FunctionsList:hn,HomeLanding:vn,MethodBadge:O,MockupCardFooter:bn,MockupCardThemeToggleButton:gn,MockupCustomizeColorsPanel:xn,MockupCustomizeFontsPanel:un,MockupCustomizePreviewArea:mn,MockupCustomizeToolbar:pn,MockupCustomizeView:dn,MockupColumnsToggle:_n,ColumnsButton:cn,MockupGrid:ln,PagerArrowButton:rn,PanelBody:fk,PanelHeader:hk,PlanClaimSyncBanner:nn,PreviewPortMismatchCard:on,QueuedChangesBody:an,RecentPlansBody:sn,ReqItem:tn,RunLocallyCommandRow:en,ScenarioRendererAppDeadEnd:qe,ScenarioThumbnail:Zo,ScenarioThumbnailStrip:Xo,Section:Yo,SectionHeader:At,ServerStalenessBanner:Qo,UpdateAvailableBanner:Ko,SetupGoalAssist:Jo,SetupGoalAssistList:Ct,SetupCompleteCta:Uo,SetupDetailHeader:Wo,SetupFlowBar:Vo,SetupSubCrumb:$o,SetupTopicPlaceholder:qo,SidebarGroup:cw,SimulatedConnect:Go,SimulatedProvision:zo,SimulatedReady:Ho,StatusIndicator:Fo,StatusPill:Lo,StepRow:vk,StoreCard:Io,TerminalServerErrorBanner:lw,UserPrompt:Ao,VariableField:bk,ConceptTerm:Ft,ConceptsGlossaryScreen:Ht,LearnSetupConceptsNudge:zt,MockupGridEmptyState:Oo,TerminalEdgeUnreachableBanner:iw,TerminalSessionStaleBanner:rw,TerminalSessionDiedBanner:nw,WebFallbackNotice:Bo,PreviewSignInNotice:It,NonWebAppDetail:Mo,ScenarioTypeSection:Eo,ScenarioImpactSection:Do,ReviewCard:Ro,SetupExternalLink:To,SetupJourney:wt,SetupSplit:ko,SetupStack:No,SetupOrbit:wo,SetupBars:Co,SetupEmblem:Po,SetupChannels:jo,SetupTopicPage:yo,GridColumnsIcon:So,GridDensityControl:fo,HomeExploreSection:ho,LivePageScenariosModal:vo,RouteListTabs:bo,ComponentSurfaceReasonNote:go,ScenarioGalleryModal:xo,FullScreenIcon:uo,ChooseAssetsButton:mo,AssetPickerMenu:po,PendingFileCountLine:_o,PlanRowSkeleton:co,PlanRowSkeletonList:lo,ExternalServicesAskCard:io,ExternalServicesSortToolbar:ro,ExternalServiceGroupList:no,ExternalServicesEmptyState:oo,ChangeDescriptionInput:ao,PlanRowTag:so,PlanSectionStatus:to,PlanRowControls:eo,PlanRowIdentity:Za,InFlightPlanRowMeta:Xa,PlanSectionHeader:Ya,PlanAuthorAvatar:Qa,PlanRowDragHandle:Ka,PlanRowTitleWithAge:Ja,PlanDisclosureChevron:Ua,PlanModeBadge:Wa,PlanRowBlockedChip:Va,CopyPathButton:$a,PreviewDedicatedOriginNotice:qa,ErrorNotice:ow,ErrorNoticeHeader:aw,ErrorNoticeNextAction:sw,ErrorNoticeDiagnostics:tw,ErrorNoticeActions:ew,PreviewWaitingOverlay:Ga,MiniAgentLaunchFailed:ZC,MiniAgentLaunchRetryingHint:XC,AssetPickerMenuItem:za,PlanRowDeleteButton:Ha,PlanDeleteConfirmModal:Fa,PlanDeleteConfirmHeader:La,PlanDeleteDependentsWarning:Ia,PlanDeleteConfirmActions:Aa,NavTabDot:Oa,AgentHtmlPreviewPane:Ba,AgentHtmlPaneHeader:Ma,AgentHtmlLintWarnings:Ea,AgentHtmlEmptyState:Da,FeatureCompleteSummary:Ra,FeatureCompleteBanner:Ta,NotSurePrompt:ka,FeatureCompleteBannerSection:Na,ManualTestSurfaceControl:wa,ManualTestRangeControl:Ca,ManualTestRangeOption:Pa,ManualTestRangeOptions:ja,ManualTestRangeCommitRow:ya,ManualTestRangeCommitList:Sa,ManualTestRangeCustomField:fa,ManualTestRangeHint:ha,ManualTestRangeActions:va,ManualTestAdHocNote:ba,ManualTestSteps:ga,ManualTestCountLine:xa,ManualTestCompletedGroup:ua,ManualTestsChat:ma,FeatureCompleteSecondary:pa,RecoveryActions:YC,ExternalServicesChatDock:da,BrokerNote:_a,ManualTestAskChatButton:ca,DesignRoundEmptyState:la,CommitQueueRowDetails:ia,ManualTestDeleteConfirmHeader:ra,ManualTestDeleteReceiptWarning:na,ManualTestDeleteConfirmActions:oa,ManualTestDeleteButton:aa,ManualTestBarrierTag:sa,FilePickerProvider:Rt,ScrollFadeRegion:ta,BuildTabLaunchError:ea};function x1({traceWindow:t}){const[s,a]=d.useState(!1),[o,n]=d.useState([]),[r,i]=d.useState(!1),[c,_]=d.useState(!1),[u,x]=d.useState(null);d.useEffect(()=>{if(!s||o.length>0||c||u)return;let l=!0;async function g(){i(!0),x(null);try{const b=await fetch(`/api/events/window?from=${t.from}&to=${t.to}`);if(!l)return;if(!b.ok)throw new Error(`HTTP ${b.status}`);const f=await b.json();f.evicted?_(!0):n(f.events||[])}catch(b){l&&x(b instanceof Error?b.message:String(b))}finally{l&&i(!1)}}return g(),()=>{l=!1}},[s,t.from,t.to,o.length,c,u]);const m=()=>{a(l=>!s)};return e.jsxs("div",{className:"mt-2","data-testid":"behavior-trace-section",children:[e.jsxs("button",{onClick:m,className:"flex items-center gap-x-1.5 text-[10px] font-semibold uppercase tracking-wide text-[var(--text-muted)] hover:text-[var(--text-primary)] transition-colors focus:outline-none","aria-expanded":s,"data-testid":"trace-toggle-btn",children:[e.jsx("svg",{className:`w-3 h-3 transition-transform ${s?"rotate-90":""}`,fill:"none",stroke:"currentColor",strokeWidth:"2",viewBox:"0 0 24 24",children:e.jsx("path",{d:"M9 5l7 7-7 7",strokeLinecap:"round",strokeLinejoin:"round"})}),e.jsx("span",{children:"Trace"})]}),s&&e.jsxs("div",{className:"mt-1 ml-4","data-testid":"trace-content",children:[r&&e.jsxs("p",{className:"text-[11px] text-[var(--text-dim)] m-0 animate-pulse",children:["Loading trace window ",t.from,"..",t.to,"…"]}),u&&e.jsx(C,{testId:"trace-error",text:`Could not load trace: ${u}`,className:"text-[11px] text-red-600"}),c&&e.jsx("p",{className:"text-[11px] text-[var(--text-secondary)] italic m-0","data-testid":"trace-evicted",children:"Trace no longer available — re-run to capture a fresh one."}),!r&&!u&&!c&&o.length===0&&e.jsx("p",{className:"text-[11px] text-[var(--text-dim)] italic m-0","data-testid":"trace-empty",children:"No intercepted calls captured during this run."}),!r&&!u&&!c&&o.length>0&&e.jsx("div",{className:"max-h-60 overflow-y-auto border border-[var(--border-muted)] rounded bg-[var(--bg-secondary)] p-2 space-y-1.5 font-mono text-[10px] leading-relaxed text-[var(--text-secondary)] shadow-inner","data-testid":"trace-events-list",children:o.map((l,g)=>{const b=l.seq!==void 0?`#${l.seq}`:"";return l.type==="http_request"?e.jsxs("div",{className:"flex flex-wrap items-baseline gap-x-1.5","data-testid":"trace-event-http",children:[e.jsx("span",{className:"text-emerald-600 font-bold",children:"[HTTP]"}),e.jsx("span",{className:"text-[var(--text-muted)] text-[9px]",children:b}),e.jsx("span",{className:"font-semibold text-[var(--text-primary)]",children:l.method}),e.jsx("span",{className:"break-all text-[var(--text-secondary)]",children:l.url}),l.status!==void 0&&e.jsxs("span",{className:`font-semibold ${l.status>=400?"text-red-600":"text-emerald-600"}`,children:["→ ",l.status]}),l.durationMs!==void 0&&e.jsxs("span",{className:"text-[var(--text-dim)]",children:["(",l.durationMs,"ms)"]}),l.mocked&&e.jsx("span",{className:"px-1 py-0.2 bg-purple-100 text-purple-700 text-[8px] rounded font-sans uppercase font-bold tracking-wider",children:"Mocked"})]},g):l.type==="db_query"?e.jsxs("div",{className:"flex flex-wrap items-baseline gap-x-1.5","data-testid":"trace-event-db",children:[e.jsx("span",{className:"text-blue-600 font-bold",children:"[SQL]"}),e.jsx("span",{className:"text-[var(--text-muted)] text-[9px]",children:b}),e.jsx("span",{className:"italic break-all text-[var(--text-secondary)]",children:l.query}),l.durationMs!==void 0&&e.jsxs("span",{className:"text-[var(--text-dim)]",children:["(",l.durationMs,"ms)"]})]},g):l.type==="error"?e.jsxs("div",{className:"flex flex-wrap items-baseline gap-x-1.5","data-testid":"trace-event-error",children:[e.jsx("span",{className:"text-red-600 font-bold",children:"[ERROR]"}),e.jsx("span",{className:"text-[var(--text-muted)] text-[9px]",children:b}),l.source&&e.jsxs("span",{className:"text-red-700 font-semibold",children:[l.source,":"]}),e.jsx("span",{className:"text-red-600 break-all",children:l.message}),e.jsx(ie,{variant:"icon",text:l.source?`${l.source}: ${l.message??""}`:l.message??""})]},g):l.type==="process_output"?e.jsxs("div",{className:"flex flex-wrap items-baseline gap-x-1.5","data-testid":"trace-event-process",children:[e.jsx("span",{className:"text-amber-600 font-bold",children:"[PROC]"}),e.jsx("span",{className:"text-[var(--text-muted)] text-[9px]",children:b}),l.source&&e.jsxs("span",{className:"text-amber-700 font-semibold",children:[l.source,":"]}),e.jsx("span",{className:"text-[var(--text-secondary)] break-all",children:l.output})]},g):l.type==="scenario_switch"?e.jsxs("div",{className:"flex flex-wrap items-baseline gap-x-1.5","data-testid":"trace-event-scenario",children:[e.jsx("span",{className:"text-purple-600 font-bold",children:"[SCENARIO]"}),e.jsx("span",{className:"text-[var(--text-muted)] text-[9px]",children:b}),e.jsxs("span",{className:"text-[var(--text-secondary)] font-semibold",children:["Active Slug: ",l.scenarioSlug]})]},g):l.type==="hook_execution"?e.jsxs("div",{className:"flex flex-wrap items-baseline gap-x-1.5","data-testid":"trace-event-hook",children:[e.jsx("span",{className:"text-indigo-600 font-bold",children:"[HOOK]"}),e.jsx("span",{className:"text-[var(--text-muted)] text-[9px]",children:b}),e.jsx("span",{className:"font-semibold text-[var(--text-primary)]",children:l.hookName}),l.exitCode!==void 0&&e.jsxs("span",{className:`font-semibold ${l.exitCode!==0?"text-red-600":"text-emerald-600"}`,children:["exit ",l.exitCode]}),l.durationMs!==void 0&&e.jsxs("span",{className:"text-[var(--text-dim)]",children:["(",l.durationMs,"ms)"]})]},g):e.jsxs("div",{className:"flex flex-wrap items-baseline gap-x-1.5","data-testid":"trace-event-generic",children:[e.jsxs("span",{className:"text-gray-500 font-bold",children:["[",l.type.toUpperCase(),"]"]}),e.jsx("span",{className:"text-[var(--text-muted)] text-[9px]",children:b}),e.jsx("span",{className:"text-[var(--text-secondary)] break-all",children:JSON.stringify(l)})]},g)})})]})]})}const g1=Object.freeze(Object.defineProperty({__proto__:null,BehaviorTraceSection:x1},Symbol.toStringTag,{value:"Module"}));function b1(t,s=()=>{}){const a={};for(const o of Object.values(t))for(const[n,r]of Object.entries(o))if(!(n==="default"||!v1(n))&&typeof r=="function"){if(Object.prototype.hasOwnProperty.call(a,n)){s(n);continue}a[n]=r}return a}function v1(t){return/^[A-Z]/.test(t)}const h1=Object.assign({"../components/AccountsRealConnect.tsx":GC,"../components/AccountsScreen.tsx":zC,"../components/ActiveScenarioOverlay.tsx":HC,"../components/ActivityDoneButton.tsx":FC,"../components/AddTopicForm.tsx":LC,"../components/AgentHtmlEmptyState.tsx":IC,"../components/AgentHtmlLintWarnings.tsx":AC,"../components/AgentHtmlPaneHeader.tsx":OC,"../components/AgentHtmlPreviewPane.tsx":BC,"../components/AnalyticsMonitoringScreen.tsx":MC,"../components/AnalyticsSeoScreen.tsx":EC,"../components/AnimatedEllipsis.tsx":DC,"../components/ApiAuthScreen.tsx":RC,"../components/ApiDocsScreen.tsx":TC,"../components/ApiKeyField.tsx":kC,"../components/AppCapabilitiesPanel.tsx":NC,"../components/AppCard.tsx":wC,"../components/AppCardFooter.tsx":CC,"../components/AppCardHeader.tsx":PC,"../components/AppCardScenarioStrip.tsx":jC,"../components/AppDetail.tsx":yC,"../components/AppDetailContent.tsx":SC,"../components/AppDetailContentError.tsx":fC,"../components/AppDetailContentLoading.tsx":hC,"../components/AppDetailHeader.tsx":vC,"../components/AppOverview.tsx":bC,"../components/AppOverviewEmptyState.tsx":gC,"../components/AppOverviewEmptyStateBuildingPanel.tsx":xC,"../components/AppOverviewEmptyStateNoAppPanel.tsx":uC,"../components/AppOverviewGrid.tsx":mC,"../components/AppOverviewHeader.tsx":pC,"../components/AppPrivacyScreen.tsx":dC,"../components/AppReviewScreen.tsx":_C,"../components/AppSelector.tsx":LT,"../components/AppServiceCredentialModal.tsx":cC,"../components/AppStackCapabilitiesSlot.tsx":lC,"../components/AppStackPanel.tsx":iC,"../components/AppStackPanelBody.tsx":rC,"../components/AppStackPanelSummary.tsx":nC,"../components/AppTestSummary.tsx":oC,"../components/AppTypeBadge.tsx":aC,"../components/AssetPickerMenu.tsx":sC,"../components/AssetPickerMenuItem.tsx":tC,"../components/AssetSaveErrorMessage.tsx":eC,"../components/AssetSaveSuccessMessage.tsx":ZP,"../components/AttachFileButton.tsx":gk,"../components/AttachFileButtonRoutingShowcase.tsx":fR,"../components/BackendApiDocsScreen.tsx":XP,"../components/BackendConnectionStatusBadge.tsx":YP,"../components/BackendResultsHeader.tsx":QP,"../components/BackendResultsPage.tsx":KP,"../components/BackendResultsPanelView.tsx":JP,"../components/BackgroundJobsScreen.tsx":UP,"../components/BehaviorEvidenceDrawer.tsx":WP,"../components/BehaviorExampleTable.tsx":VP,"../components/BehaviorGallery.tsx":$P,"../components/BehaviorGalleryEmptyState.tsx":qP,"../components/BehaviorGroup.tsx":GP,"../components/BehaviorItem.tsx":zP,"../components/BehaviorTraceSection.tsx":g1,"../components/BlockedBanner.tsx":HP,"../components/BreadcrumbNav.tsx":FP,"../components/BrowserStateTab.tsx":xk,"../components/BuildActivityCard.tsx":LP,"../components/BuildActivityMenu.tsx":IP,"../components/BuildActivityModal.tsx":AP,"../components/BuildActivityModalHeading.tsx":OP,"../components/BuildActivityPlanList.tsx":BP,"../components/BuildActivityReopenBar.tsx":MP,"../components/BuildChatAgentChat.tsx":EP,"../components/BuildChatLaunchPanel.tsx":DP,"../components/BuildChatPane.tsx":RP,"../components/BuildFileRow.tsx":TP,"../components/BuildLogsModal.tsx":kP,"../components/BuildProgressDetail.tsx":NP,"../components/BuildResetLink.tsx":wP,"../components/BuildShaBadge.tsx":CP,"../components/BuildSpinner.tsx":PP,"../components/BuildTab.tsx":jP,"../components/BuildTabLaunchError.tsx":yP,"../components/BuildTabLayout.tsx":SP,"../components/BuildTabPane.tsx":fP,"../components/BuildTabPaneLayout.tsx":hP,"../components/BuildTabReadyToBuildPlaceholder.tsx":FT,"../components/BuildTabRecoveryPanel.tsx":vP,"../components/BuildTabSessionContent.tsx":bP,"../components/BuildTabStartupError.tsx":gP,"../components/BuildTabTerminalSession.tsx":xP,"../components/BuildingCardActive.tsx":uP,"../components/BuildingCardIdle.tsx":mP,"../components/BuildingCardThumbnail.tsx":pP,"../components/BuildingDoor.tsx":dP,"../components/BuildingPreviewOverlay.tsx":_P,"../components/BuildingStepLine.tsx":cP,"../components/ChangeCard.tsx":lP,"../components/ChangeDescriptionInput.tsx":iP,"../components/ChangelogCiScreen.tsx":rP,"../components/CheckInToggleRow.tsx":nP,"../components/ChooseAssetsButton.tsx":oP,"../components/CliUxScreen.tsx":aP,"../components/ClientRoutingAdvisory.tsx":sP,"../components/CollapseToggleButton.tsx":tP,"../components/CollapsibleMarkdown.tsx":eP,"../components/ColorPalettePicker.tsx":Zj,"../components/ColorSwatchEditor.tsx":Xj,"../components/CommentsSearchScreen.tsx":Yj,"../components/CommitOnlyHistoryRow.tsx":Qj,"../components/CommitQueuePriorityChip.tsx":Kj,"../components/CommitQueueReleaseButton.tsx":Jj,"../components/CommitQueueRow.tsx":Uj,"../components/CommitQueueRowDetails.tsx":Wj,"../components/CommitQueueRowIdentity.tsx":Vj,"../components/CommitQueueSaveBar.tsx":$j,"../components/CommitQueueSection.tsx":qj,"../components/CompletedPlanExpandedBody.tsx":Gj,"../components/CompletedPlanRow.tsx":zj,"../components/ComponentSurfaceReasonNote.tsx":Hj,"../components/ConceptShowcase.tsx":IT,"../components/ConceptTerm.tsx":Fj,"../components/ConceptsContext.tsx":Lj,"../components/ConceptsGlossaryScreen.tsx":Ij,"../components/ConnectionBadge.tsx":nT,"../components/ConnectionIdentityLine.tsx":n1,"../components/ContainerInspector.tsx":oT,"../components/CopyButton.tsx":Gs,"../components/CopyPathButton.tsx":Aj,"../components/CopyableErrorBlock.tsx":$R,"../components/CopyableErrorText.tsx":zs,"../components/CorsOriginsScreen.tsx":Oj,"../components/CoverageBadge.tsx":Bj,"../components/CoverageBar.tsx":Mj,"../components/CoverageDetailsDirectoriesSection.tsx":Ej,"../components/CoverageDetailsDirectoryFileRow.tsx":Dj,"../components/CoverageDetailsDirectoryGroup.tsx":Rj,"../components/CoverageDetailsEntriesSection.tsx":Tj,"../components/CoverageDetailsEntryRow.tsx":kj,"../components/CoverageDetailsModal.tsx":Nj,"../components/CoverageDetailsOrphanedSection.tsx":wj,"../components/CoverageFileDrilldown.tsx":Cj,"../components/CoverageLineRow.tsx":Pj,"../components/CoverageSectionHeader.tsx":jj,"../components/CoverageWarningsBanner.tsx":yj,"../components/CrashLogFooter.tsx":Sj,"../components/CrashLogFooterMessage.tsx":fj,"../components/CrashLogHeader.tsx":hj,"../components/CrashLogViewer.tsx":vj,"../components/CrashReportingScreen.tsx":bj,"../components/CreateProjectModal.tsx":NT,"../components/CreateStatePlaceholderModal.tsx":gj,"../components/CustomDomainScreen.tsx":xj,"../components/CyLogo.tsx":uj,"../components/DataSafetyScreen.tsx":mj,"../components/DataViewerCategoryBadge.tsx":uk,"../components/DataViewerCellEditor.tsx":mk,"../components/DataViewerTabBar.tsx":XR,"../components/DataViewerTable.tsx":pk,"../components/DatabaseBackupsScreen.tsx":pj,"../components/DebugAncestryList.tsx":dj,"../components/DebugAncestrySection.tsx":_j,"../components/DebugFreezePill.tsx":cj,"../components/DebugModal.tsx":lj,"../components/DebugModalElementPreview.tsx":ij,"../components/DebugModalInfoPanel.tsx":rj,"../components/DebugModeButton.tsx":nj,"../components/DebugNotificationsButton.tsx":oj,"../components/DebugOverlay.tsx":aj,"../components/DebugPropsChips.tsx":sj,"../components/DeployTargetScreen.tsx":tj,"../components/DescribePane.tsx":ej,"../components/DesignAddAssetsStep.tsx":ZT,"../components/DesignAssetDropLabel.tsx":Zy,"../components/DesignAssetDropZone.tsx":Xy,"../components/DesignAssetsView.tsx":Yy,"../components/DesignChatPreviewPane.tsx":Qy,"../components/DesignExplorationView.tsx":Ky,"../components/DesignRoundEmptyState.tsx":Jy,"../components/DesignRoundPreviewPane.tsx":Uy,"../components/DesktopTitleBar.tsx":Wy,"../components/DetectedServiceRow.tsx":Vy,"../components/DevAccountsScreen.tsx":$y,"../components/DevServerCrashLog.tsx":qy,"../components/DevServerFailedPanel.tsx":Gy,"../components/DevServerRestartingOverlay.tsx":VR,"../components/DevServerStartingOverlay.tsx":WR,"../components/DevServerStoppedOverlay.tsx":UR,"../components/DeviceFrameImage.tsx":zy,"../components/DeviceIcon.tsx":Hy,"../components/DimensionInput.tsx":Fy,"../components/EditDataButton.tsx":jR,"../components/EditDataPopover.tsx":zR,"../components/EditDataPopoverBody.tsx":MR,"../components/EditDataPopoverDescribeInput.tsx":BR,"../components/EditDataPopoverHeader.tsx":FR,"../components/EditDataPopoverResizeHandleLeft.tsx":HR,"../components/EditDataPopoverSaveCancelClose.tsx":OR,"../components/EditDataPopoverSearchInput.tsx":AR,"../components/EditDataPopoverSectionSelector.tsx":IR,"../components/EditDataPopoverTabStrip.tsx":LR,"../components/EditorNavBar.tsx":Ly,"../components/EditorSessionRecovery.tsx":Iy,"../components/EditorSessionRecoveryActionButton.tsx":Ay,"../components/EditorSessionRecoveryDialog.tsx":Oy,"../components/EditorSessionRecoveryHeader.tsx":By,"../components/EditorSessionRecoverySummary.tsx":My,"../components/EditorSessionRecoverySummaryRow.tsx":Ey,"../components/EditorShell.tsx":Dy,"../components/EditorShellBuildLayer.tsx":Ry,"../components/EditorShellHomeTabContent.tsx":Ty,"../components/EditorShellLayout.tsx":ky,"../components/EditorShellLeftPane.tsx":Ny,"../components/EditorShellPlanLayer.tsx":wy,"../components/EditorShellPreviewPane.tsx":$T,"../components/EditorShellTabLayer.tsx":Cy,"../components/EmailsScreen.tsx":Py,"../components/EntityBreadcrumb.tsx":jy,"../components/EntityDetail.tsx":yy,"../components/EntityDetailContent.tsx":Sy,"../components/EntityDetailHeader.tsx":fy,"../components/EntityRefCard.tsx":hy,"../components/EntityRefList.tsx":vy,"../components/EnvelopeIcon.tsx":by,"../components/ErrorNotice.tsx":dk,"../components/ErrorNoticeActions.tsx":_k,"../components/ErrorNoticeDiagnostics.tsx":ck,"../components/ErrorNoticeHeader.tsx":lk,"../components/ErrorNoticeNextAction.tsx":ik,"../components/EventCard.tsx":UT,"../components/EventStream.tsx":JT,"../components/ExamplesScreen.tsx":gy,"../components/ExploreRail.tsx":qR,"../components/ExploreSectionHeading.tsx":xy,"../components/ExtensionAssetsScreen.tsx":uy,"../components/ExtensionDistributionScreen.tsx":my,"../components/ExtensionPrivacyPolicyScreen.tsx":py,"../components/ExternalServiceGroupList.tsx":dy,"../components/ExternalServicesAskCard.tsx":_y,"../components/ExternalServicesChatDock.tsx":cy,"../components/ExternalServicesEmptyState.tsx":ly,"../components/ExternalServicesListBar.tsx":iy,"../components/ExternalServicesScreen.tsx":ry,"../components/ExternalServicesScreenConnected.tsx":ny,"../components/ExternalServicesSortToolbar.tsx":oy,"../components/ExternalServicesSuggestionChips.tsx":ay,"../components/ExternalServicesSummary.tsx":sy,"../components/FactFreshness.tsx":ty,"../components/FeatureCompleteActions.tsx":ey,"../components/FeatureCompleteBanner.tsx":ZS,"../components/FeatureCompleteBannerSection.tsx":XS,"../components/FeatureCompleteSecondary.tsx":YS,"../components/FeatureCompleteSummary.tsx":QS,"../components/FeatureGroupView.tsx":QT,"../components/FeatureNameButton.tsx":KS,"../components/FileChangeSummary.tsx":ET,"../components/FileDropConfirmModal.tsx":JS,"../components/FileDropConfirmModalAgentReadyShowcase.tsx":bR,"../components/FileStatusIndicator.tsx":US,"../components/FillPreviewButton.tsx":WS,"../components/FilterBar.tsx":YT,"../components/FinishAndFormalizeButton.tsx":VS,"../components/FontPicker.tsx":$S,"../components/FormsScreen.tsx":qS,"../components/FullScreenIcon.tsx":GS,"../components/FunctionChangeRow.tsx":zS,"../components/GatedAgentChat.tsx":rk,"../components/GearIcon.tsx":HS,"../components/GlobalFileDropOverlay.tsx":FS,"../components/GlobalFileDropToast.tsx":LS,"../components/GridColumnsIcon.tsx":IS,"../components/GridDensityControl.tsx":AS,"../components/HardeningAutoAction.tsx":OS,"../components/HistoryDigest.tsx":BS,"../components/HistoryDigestStatRow.tsx":MS,"../components/HistoryEntryCard.tsx":ES,"../components/HistoryRangeSelector.tsx":DS,"../components/HistoryTab.tsx":RS,"../components/HomeBuildStatusSection.tsx":TS,"../components/HomeBuildingSection.tsx":kS,"../components/HomeExploreSection.tsx":NS,"../components/HomeExploreTabs.tsx":wS,"../components/HomeHeader.tsx":CS,"../components/HomeLanding.tsx":PS,"../components/HomeQueuedPlansSection.tsx":jS,"../components/HomeScreenIcons.tsx":yS,"../components/HomeSectionHeading.tsx":SS,"../components/HomeTestingSection.tsx":fS,"../components/HomeTestingSectionControls.tsx":hS,"../components/HostingConnectStep.tsx":vS,"../components/HostingDeployStep.tsx":bS,"../components/HostingLiveStep.tsx":gS,"../components/HostingOverviewConnected.tsx":xS,"../components/HostingOverviewGuided.tsx":uS,"../components/HostingRealDeployStep.tsx":mS,"../components/HostingScreen.tsx":pS,"../components/HostingScreenChrome.tsx":dS,"../components/HostingScreenParts.tsx":_S,"../components/IdleBanner.tsx":cS,"../components/IdleTriggerCheckbox.tsx":lS,"../components/IframeClickThroughErrorCard.tsx":iS,"../components/InAppPurchasesScreen.tsx":rS,"../components/InFlightPlanRow.tsx":nS,"../components/InFlightPlanRowMeta.tsx":oS,"../components/InFlightSection.tsx":aS,"../components/InspectModeRibbon.tsx":sS,"../components/InspectResultCard.tsx":tS,"../components/InspectResultCardBackdrop.tsx":eS,"../components/InspectResultCardBody.tsx":Z0,"../components/InspectResultCardHeader.tsx":X0,"../components/InspectResultCardMatchButton.tsx":Y0,"../components/InspectResultCardMatchList.tsx":Q0,"../components/InspectorExplainerResult.tsx":aT,"../components/InspectorExplainerSection.tsx":sT,"../components/InspectorPrimitives.tsx":tT,"../components/InspectorPrimitivesShowcase.tsx":e1,"../components/InspectorRouteTable.tsx":eT,"../components/InspectorScenarioSection.tsx":Zk,"../components/InspectorTrafficDetail.tsx":Xk,"../components/InspectorTrafficFilterBar.tsx":Yk,"../components/InspectorTrafficRow.tsx":Qk,"../components/InspectorTrafficRowShowcase.tsx":s1,"../components/InspectorTrafficSection.tsx":Kk,"../components/InspectorTrafficTable.tsx":Jk,"../components/InspectorTrafficUrlChips.tsx":Uk,"../components/InspectorUrlGlossary.tsx":Wk,"../components/InstallDocsScreen.tsx":K0,"../components/JournalEntryCard.tsx":BT,"../components/JournalEntryDetails.tsx":MT,"../components/JournalView.tsx":OT,"../components/JsonBodyActions.tsx":nk,"../components/JsonTreeAddKeyInput.tsx":ok,"../components/JsonTreeArrayNode.tsx":ak,"../components/JsonTreeEditor.tsx":sk,"../components/JsonTreeNode.tsx":tk,"../components/JsonTreeNodeLine.tsx":ek,"../components/JsonTreeObjectNode.tsx":ZN,"../components/JsonTreePrimitiveEditor.tsx":XN,"../components/JsonTreePrimitiveNode.tsx":YN,"../components/LabeledSection.tsx":J0,"../components/LayoutChainCard.tsx":U0,"../components/LayoutChainSection.tsx":W0,"../components/LearnSetupScreen.tsx":V0,"../components/LeftPanel.tsx":$0,"../components/LegalScreen.tsx":q0,"../components/LibrariesCatalogScreen.tsx":G0,"../components/LibraryGroupSection.tsx":z0,"../components/LibraryRow.tsx":H0,"../components/LiveIframeHealthPill.tsx":F0,"../components/LivePageScenariosModal.tsx":L0,"../components/LoggingMonitoringScreen.tsx":I0,"../components/ManifestVersioningScreen.tsx":A0,"../components/ManualTestAdHocNote.tsx":O0,"../components/ManualTestAskChatButton.tsx":B0,"../components/ManualTestBarrierTag.tsx":M0,"../components/ManualTestCompletedGroup.tsx":E0,"../components/ManualTestCountLine.tsx":D0,"../components/ManualTestDeleteButton.tsx":R0,"../components/ManualTestDeleteConfirmActions.tsx":T0,"../components/ManualTestDeleteConfirmHeader.tsx":k0,"../components/ManualTestDeleteConfirmModal.tsx":N0,"../components/ManualTestDeleteReceiptWarning.tsx":w0,"../components/ManualTestHelpChat.tsx":C0,"../components/ManualTestRangeActions.tsx":P0,"../components/ManualTestRangeCommitList.tsx":j0,"../components/ManualTestRangeCommitRow.tsx":y0,"../components/ManualTestRangeControl.tsx":S0,"../components/ManualTestRangeCustomField.tsx":f0,"../components/ManualTestRangeHint.tsx":h0,"../components/ManualTestRangeOption.tsx":v0,"../components/ManualTestRangeOptions.tsx":b0,"../components/ManualTestRow.tsx":g0,"../components/ManualTestSteps.tsx":x0,"../components/ManualTestSurfaceControl.tsx":u0,"../components/ManualTestsChat.tsx":m0,"../components/Markdown.tsx":Rk,"../components/MiniAgentChat.tsx":QN,"../components/MiniAgentLaunchFailed.tsx":KN,"../components/MiniAgentLaunchOverlay.tsx":JN,"../components/MiniAgentLaunchRetryingHint.tsx":UN,"../components/MinimizedSessionResults.tsx":p0,"../components/MobilePaneSwitcher.tsx":d0,"../components/MobileSetupParts.tsx":_0,"../components/MobileTerminalCommandMenu.tsx":c0,"../components/MockBodyEditor.tsx":cR,"../components/MockBodyHeadersEditor.tsx":WN,"../components/MockBodyJsonTextarea.tsx":lR,"../components/MockPanelGroup.tsx":mR,"../components/MockPanelHeader.tsx":uR,"../components/MockPanelRow.tsx":pR,"../components/MockPanelRowActions.tsx":_R,"../components/MockPanelRowHeader.tsx":dR,"../components/MockSharedSlugBadge.tsx":VN,"../components/MockSourceBadge.tsx":$N,"../components/MockupArchivedRoundView.tsx":l0,"../components/MockupCard.tsx":i0,"../components/MockupCardFeedback.tsx":r0,"../components/MockupCardFooter.tsx":n0,"../components/MockupCardPreviewSlot.tsx":o0,"../components/MockupCardThemeToggleButton.tsx":a0,"../components/MockupColumnsToggle.tsx":s0,"../components/MockupCustomizeColorsPanel.tsx":t0,"../components/MockupCustomizeErrorBanner.tsx":e0,"../components/MockupCustomizeFontsPanel.tsx":Zf,"../components/MockupCustomizePanelSectionHeading.tsx":Xf,"../components/MockupCustomizePreviewArea.tsx":Yf,"../components/MockupCustomizeToolbar.tsx":Qf,"../components/MockupCustomizeView.tsx":Kf,"../components/MockupFeedbackCommentBox.tsx":Jf,"../components/MockupFeedbackRatingSlider.tsx":Uf,"../components/MockupFeedbackThumbIcons.tsx":Wf,"../components/MockupGrid.tsx":Vf,"../components/MockupGridEmptyState.tsx":$f,"../components/MockupGridGeneratingOverlay.tsx":qf,"../components/MockupGridInfoBanner.tsx":Gf,"../components/MockupGridIterateButton.tsx":zf,"../components/MockupPlaceholderCard.tsx":Hf,"../components/MockupRoundPager.tsx":Ff,"../components/MockupSkeletonOverlay.tsx":Lf,"../components/ModifiedFilesList.tsx":If,"../components/NarrativeTestStatusIcon.tsx":Af,"../components/NativeMirrorNotice.tsx":Of,"../components/NavLink.tsx":Bf,"../components/NavTabDot.tsx":Mf,"../components/NavigationBar.tsx":Ef,"../components/NewProjectQuestionnaire.tsx":Df,"../components/NoBootedSimulatorPlaceholder.tsx":Rf,"../components/NonWebAppDetail.tsx":Tf,"../components/NotSurePrompt.tsx":kf,"../components/NotificationSettingsControls.tsx":Nf,"../components/NotificationSettingsControlsShowcase.tsx":qT,"../components/NotificationSettingsPopover.tsx":wf,"../components/NotificationSetupBanner.tsx":Cf,"../components/NotificationSoundSelect.tsx":Pf,"../components/OAuthVerificationScreen.tsx":jf,"../components/OnboardingDesignAssetsStep.tsx":yf,"../components/OnboardingDropzone.tsx":Sf,"../components/OnboardingListItem.tsx":ff,"../components/OnboardingNotificationsStep.tsx":hf,"../components/OnboardingPromptStep.tsx":vf,"../components/OnboardingShell.tsx":bf,"../components/OnboardingStackPicker.tsx":gf,"../components/OnboardingTypeChips.tsx":xf,"../components/OpenBuildTabButton.tsx":uf,"../components/OpenInEditorErrorToast.tsx":mf,"../components/OpenInNewTabButton.tsx":pf,"../components/OpenSourceProjectsSection.tsx":wT,"../components/OrphanedFileRow.tsx":df,"../components/PagePickerDropdown.tsx":_f,"../components/PagePickerEmptyMessage.tsx":cf,"../components/PagePickerRouteSection.tsx":lf,"../components/PagePickerScenarioThumbnail.tsx":rf,"../components/PagePickerTabButton.tsx":nf,"../components/PagePill.tsx":of,"../components/PagePillIcons.tsx":af,"../components/PanelDivider.tsx":sf,"../components/PaymentsScreen.tsx":tf,"../components/PendingFileCard.tsx":ef,"../components/PendingFileCountLine.tsx":Zh,"../components/PendingFileList.tsx":Xh,"../components/PerformanceImagesScreen.tsx":Yh,"../components/PermissionsJustificationScreen.tsx":Qh,"../components/PlaceholderPane.tsx":gR,"../components/PlanAuthorAvatar.tsx":Kh,"../components/PlanAuthoringChat.tsx":Jh,"../components/PlanChatLaunchCaption.tsx":Uh,"../components/PlanClaimSyncBanner.tsx":Wh,"../components/PlanCompleteDialog.tsx":Vh,"../components/PlanCompleteTransition.tsx":$h,"../components/PlanDeleteConfirmActions.tsx":qh,"../components/PlanDeleteConfirmHeader.tsx":Gh,"../components/PlanDeleteConfirmModal.tsx":zh,"../components/PlanDeleteDependentsWarning.tsx":Hh,"../components/PlanDisclosureChevron.tsx":Fh,"../components/PlanExpandedHeader.tsx":Lh,"../components/PlanModeBadge.tsx":Ih,"../components/PlanNextChangeButton.tsx":Ah,"../components/PlanPreviewEmptyState.tsx":Oh,"../components/PlanPreviewHeader.tsx":Bh,"../components/PlanPreviewPanelView.tsx":Mh,"../components/PlanRow.tsx":Eh,"../components/PlanRowBlockedChip.tsx":Dh,"../components/PlanRowClaimBadge.tsx":Rh,"../components/PlanRowControls.tsx":Th,"../components/PlanRowDeleteButton.tsx":kh,"../components/PlanRowDependencyEntry.tsx":Nh,"../components/PlanRowDragHandle.tsx":wh,"../components/PlanRowEditButton.tsx":Ch,"../components/PlanRowEditChatButton.tsx":Ph,"../components/PlanRowExpandedBody.tsx":jh,"../components/PlanRowExpandedChat.tsx":yh,"../components/PlanRowExpandedDependencies.tsx":Sh,"../components/PlanRowExpandedEdit.tsx":fh,"../components/PlanRowExpandedView.tsx":hh,"../components/PlanRowIdentity.tsx":vh,"../components/PlanRowSkeleton.tsx":bh,"../components/PlanRowTag.tsx":gh,"../components/PlanRowTitleWithAge.tsx":xh,"../components/PlanRunBlockedModal.tsx":uh,"../components/PlanRunBlockedTooltip.tsx":mh,"../components/PlanRunButton.tsx":ph,"../components/PlanRunDependenciesModal.tsx":dh,"../components/PlanRunForeignClaimModal.tsx":_h,"../components/PlanSectionHeader.tsx":ch,"../components/PlanSectionStatus.tsx":lh,"../components/PlanTab.tsx":ih,"../components/PlanTabHeader.tsx":rh,"../components/PreReleaseScreen.tsx":nh,"../components/PreviewCanvas.tsx":oh,"../components/PreviewDedicatedOriginNotice.tsx":ah,"../components/PreviewEmptyState.tsx":sh,"../components/PreviewErrorBadge.tsx":th,"../components/PreviewErrorList.tsx":eh,"../components/PreviewErrorOverlay.tsx":Zv,"../components/PreviewErrorOverlayFooter.tsx":Xv,"../components/PreviewErrorOverlayHeader.tsx":Yv,"../components/PreviewErrorRow.tsx":Qv,"../components/PreviewForwardPortNotice.tsx":Kv,"../components/PreviewFrame.tsx":Jv,"../components/PreviewLoadingSpinner.tsx":Uv,"../components/PreviewPanel.tsx":Wv,"../components/PreviewPortMismatchCard.tsx":Vv,"../components/PreviewSignInNotice.tsx":$v,"../components/PreviewSignInNoticeShowcase.tsx":DT,"../components/PreviewUnhealthyOverlay.tsx":qv,"../components/PreviewWaitingOverlay.tsx":Gv,"../components/PreviewWaitingPlaceholder.tsx":zv,"../components/ProjectLauncher.tsx":CT,"../components/ProjectLauncherScreen.tsx":PT,"../components/ProjectSetupChosenMockup.tsx":Hv,"../components/ProjectSetupDescriptionCard.tsx":Fv,"../components/ProjectSetupDesignAssetList.tsx":Lv,"../components/ProjectSetupDesignCard.tsx":Iv,"../components/ProjectSetupHeader.tsx":Av,"../components/ProjectSetupPreviewPane.tsx":Ov,"../components/ProjectSetupPreviewView.tsx":Bv,"../components/ProjectSetupProgressList.tsx":Mv,"../components/ProjectSetupProgressRow.tsx":Ev,"../components/PromptDropdownPanel.tsx":Dv,"../components/PrototypeAgentChat.tsx":Rv,"../components/PrototypeBuildingInProgressBanner.tsx":Tv,"../components/PrototypePane.tsx":kv,"../components/ProviderAuthGate.tsx":Nv,"../components/ProviderAuthModal.tsx":qN,"../components/ProviderAuthenticateCta.tsx":GN,"../components/ProviderLogo.tsx":wv,"../components/ProvisionWithBrokerCta.tsx":Cv,"../components/PublishRegistryScreen.tsx":Pv,"../components/PublishScreen.tsx":jv,"../components/PushNotificationsScreen.tsx":yv,"../components/QuestionnaireDesignApproachStep.tsx":sR,"../components/QuestionnaireDesignChatLaunchPanel.tsx":Sv,"../components/QuestionnaireDesignChatStep.tsx":fv,"../components/QuestionnaireDeviceSelector.tsx":oR,"../components/QuestionnaireIntroBanner.tsx":hv,"../components/QuestionnaireNavButtons.tsx":vv,"../components/QuestionnaireNotificationsStep.tsx":aR,"../components/QuestionnaireOptionCard.tsx":eR,"../components/QuestionnaireStepNav.tsx":nR,"../components/QuestionnaireStepPanel.tsx":bv,"../components/QueuedChangesSection.tsx":gv,"../components/RawTerminalEmulator.tsx":xv,"../components/RawTerminalModal.tsx":uv,"../components/ReadmeLicenseScreen.tsx":mv,"../components/ReadyAgentRegistrar.tsx":HT,"../components/RealDataConnected.tsx":d1,"../components/RealDataNotConnected.tsx":m1,"../components/RealDataScreen.tsx":pv,"../components/RealDataZone.tsx":_1,"../components/RealSetupFlow.tsx":dv,"../components/RecentPlansSection.tsx":_v,"../components/RedirectsNotFoundScreen.tsx":cv,"../components/RefreshPreviewButton.tsx":lv,"../components/ReleaseBuildsScreen.tsx":iv,"../components/RepeatPassMarker.tsx":rv,"../components/RerunSection.tsx":nv,"../components/ResetBuildConfirmModal.tsx":ov,"../components/RestartSpinner.tsx":av,"../components/ReviewCard.tsx":sv,"../components/ReviewDetailCard.tsx":tv,"../components/ReviewFindingRow.tsx":ev,"../components/ReviewsTab.tsx":Zb,"../components/RouteDependencyCard.tsx":Xb,"../components/RouteDependencyCardHeader.tsx":Yb,"../components/RouteDependencyEmptyState.tsx":Qb,"../components/RouteDependencyList.tsx":Kb,"../components/RouteDependencyScenarioStrip.tsx":Jb,"../components/RouteEntityDetail.tsx":Ub,"../components/RouteEntityDetailContent.tsx":Wb,"../components/RouteEntityDetailHeader.tsx":Vb,"../components/RouteEntitySection.tsx":JR,"../components/RouteEntityTabs.tsx":$b,"../components/RouteFunctionCard.tsx":qb,"../components/RouteFunctionEmptyState.tsx":Gb,"../components/RouteFunctionList.tsx":zb,"../components/RouteGroupDisclosure.tsx":Hb,"../components/RouteGroupView.tsx":XT,"../components/RouteImportEmptyState.tsx":KR,"../components/RouteImportList.tsx":QR,"../components/RouteImportRow.tsx":rR,"../components/RouteKindToggle.tsx":Fb,"../components/RouteList.tsx":Lb,"../components/RouteListCard.tsx":Ib,"../components/RouteListCardHeading.tsx":Ab,"../components/RouteListCardThumbnail.tsx":Ob,"../components/RouteListEmptyState.tsx":Bb,"../components/RouteListSection.tsx":Mb,"../components/RouteListSectionHeader.tsx":Eb,"../components/RouteListTabs.tsx":Db,"../components/RouteScenarioEmptyState.tsx":Rb,"../components/RouteScenarioList.tsx":Tb,"../components/RouteSearchField.tsx":kb,"../components/RouteSummaryCard.tsx":YR,"../components/RouteViewControls.tsx":Nb,"../components/RunEvidenceLine.tsx":wb,"../components/RunLocallyCommandRow.tsx":Cb,"../components/RunLocallyScreen.tsx":Pb,"../components/RunTestsButton.tsx":jb,"../components/SafeScreenshot.tsx":yb,"../components/SaveAssetsButton.tsx":Sb,"../components/SaveScopeChoiceRow.tsx":zN,"../components/SaveScopeModal.tsx":HN,"../components/ScenarioCard.tsx":fb,"../components/ScenarioComparisonRow.tsx":hb,"../components/ScenarioDataPanel.tsx":FN,"../components/ScenarioDataPanelCloseButton.tsx":LN,"../components/ScenarioDataPanelEditChatButton.tsx":IN,"../components/ScenarioDataPanelEmptyState.tsx":AN,"../components/ScenarioDataPanelFullPage.tsx":TT,"../components/ScenarioDataPanelHeader.tsx":ON,"../components/ScenarioDataPanelInspectButton.tsx":BN,"../components/ScenarioDataPanelMainMock.tsx":MN,"../components/ScenarioDataPanelMainMockEditable.tsx":EN,"../components/ScenarioDataPanelMainMockHeader.tsx":DN,"../components/ScenarioDataPanelMainMockReadOnly.tsx":RN,"../components/ScenarioDataPanelMainProps.tsx":ER,"../components/ScenarioDataPanelMainTable.tsx":TN,"../components/ScenarioDataPanelMockDataBadge.tsx":kN,"../components/ScenarioDataPanelMockDataStrip.tsx":NN,"../components/ScenarioDataPanelOpenInNewButton.tsx":wN,"../components/ScenarioDataPanelPropsEditor.tsx":DR,"../components/ScenarioDataPanelSidebar.tsx":CN,"../components/ScenarioDetailPanel.tsx":iR,"../components/ScenarioDraftBar.tsx":PN,"../components/ScenarioGalleryModal.tsx":vb,"../components/ScenarioImpactSection.tsx":bb,"../components/ScenarioRenameForm.tsx":gb,"../components/ScenarioRenderer.tsx":RT,"../components/ScenarioRendererAppDeadEnd.tsx":r1,"../components/ScenarioRow.tsx":xb,"../components/ScenarioRowActions.tsx":ub,"../components/ScenarioRowMeta.tsx":mb,"../components/ScenarioRowOverrideBadge.tsx":pb,"../components/ScenarioRowThumbnail.tsx":db,"../components/ScenarioSeedErrorView.tsx":o1,"../components/ScenarioThumbnailGrid.tsx":_b,"../components/ScenarioTypeSection.tsx":cb,"../components/ScenariosView.tsx":SR,"../components/ScrollFadeRegion.tsx":lb,"../components/SearchIcon.tsx":ib,"../components/SecretsScreen.tsx":rb,"../components/SeedErrorBanner.tsx":nb,"../components/SeedLoadingOverlay.tsx":ob,"../components/SegmentedPicker.tsx":ab,"../components/SelectPlanModal.tsx":sb,"../components/SemverPolicyScreen.tsx":tb,"../components/SendTranscriptModal.tsx":eb,"../components/SendTranscriptOverlay.tsx":ZR,"../components/ServerStalenessBanner.tsx":Zg,"../components/ServiceRow.tsx":Xg,"../components/SessionResultsPanel.tsx":Yg,"../components/SessionResultsPanelHeader.tsx":Qg,"../components/SettingsTab.tsx":Kg,"../components/SetupAddTopicRow.tsx":Jg,"../components/SetupBrowserHeader.tsx":Ug,"../components/SetupBrowserPane.tsx":Wg,"../components/SetupDetailChrome.tsx":Vg,"../components/SetupDetailParts.tsx":$g,"../components/SetupGoalAssist.tsx":qg,"../components/SetupGoalAssistList.tsx":Gg,"../components/SetupIllustrations.tsx":zg,"../components/SetupJourney.tsx":Hg,"../components/SetupNotConnected.tsx":Fg,"../components/SetupStepper.tsx":Lg,"../components/SetupTerminalHeader.tsx":Ig,"../components/SetupTerminalPane.tsx":Ag,"../components/SetupTopicPage.tsx":Og,"../components/SetupTopicRouter.tsx":Bg,"../components/ShellCompletionsScreen.tsx":Mg,"../components/SidebarGroupOverrideHeader.tsx":jN,"../components/SidebarInheritedSection.tsx":yN,"../components/SidebarMockEntryRow.tsx":SN,"../components/SimulatedSetupFlow.tsx":Eg,"../components/SimulatedSetupOverview.tsx":Dg,"../components/SimulatedSetupScreen.tsx":Rg,"../components/SimulatorFrameNotice.tsx":Tg,"../components/SimulatorLauncherControls.tsx":kg,"../components/SimulatorNotBootedPrompt.tsx":Ng,"../components/SimulatorPreviewFrame.tsx":wg,"../components/SinglePurposeListingScreen.tsx":Cg,"../components/SkeletonBar.tsx":Pg,"../components/SkeletonShimmerKeyframes.tsx":jg,"../components/SortablePlanRow.tsx":yg,"../components/StackPickerCollapsed.tsx":Sg,"../components/StackPickerResults.tsx":fg,"../components/StagingEnvironmentScreen.tsx":hg,"../components/StagingPreviewScreen.tsx":vg,"../components/StaleDbStripeOverlay.tsx":a1,"../components/StartBuildingConfirmModal.tsx":bg,"../components/StartChatButton.tsx":gg,"../components/StartPrototypingButton.tsx":xg,"../components/StatesDropdown.tsx":ug,"../components/StatesDropdownRow.tsx":mg,"../components/StatesPillButton.tsx":pg,"../components/StatusBadge.tsx":KT,"../components/StepIndicatorBar.tsx":dg,"../components/StepIndicatorDropdownItem.tsx":_g,"../components/StepsSimulator.tsx":Tk,"../components/StepsSimulatorInstructionsPanel.tsx":kk,"../components/StepsSimulatorStepList.tsx":Nk,"../components/StepsSimulatorVariableControl.tsx":wk,"../components/StoreAccountsScreen.tsx":cg,"../components/StoreAssetsScreen.tsx":lg,"../components/StoreListingScreen.tsx":ig,"../components/StuckTurnBanner.tsx":rg,"../components/StuckTurnBannerAgentReadyShowcase.tsx":zT,"../components/SubmitReviewScreen.tsx":ng,"../components/SupplyChainScreen.tsx":og,"../components/TabPane.tsx":ag,"../components/TabScrollPanel.tsx":sg,"../components/TeachSetupScreen.tsx":tg,"../components/TerminalConnectingHint.tsx":fN,"../components/TerminalCopiedToast.tsx":eg,"../components/TerminalDisconnectOverlay.tsx":hN,"../components/TerminalDropOverlay.tsx":vN,"../components/TerminalDropToast.tsx":bN,"../components/TerminalEdgeUnreachableBanner.tsx":gN,"../components/TerminalEmulator.tsx":Zx,"../components/TerminalFailedBanner.tsx":xN,"../components/TerminalReconnectingBanner.tsx":uN,"../components/TerminalServerErrorBanner.tsx":mN,"../components/TerminalServerStoppedBanner.tsx":pN,"../components/TerminalSessionDiedBanner.tsx":dN,"../components/TerminalSessionStaleBanner.tsx":_N,"../components/TestBar.tsx":Xx,"../components/TestGroupHeader.tsx":Yx,"../components/TestGroupList.tsx":Qx,"../components/TestGroupRow.tsx":Kx,"../components/TestItem.tsx":Jx,"../components/TestResultsBadge.tsx":Ux,"../components/TestStatusIcon.tsx":Wx,"../components/TestSummary.tsx":xR,"../components/TestingDistributionScreen.tsx":Vx,"../components/TestsView.tsx":yR,"../components/ThumbnailStrip.tsx":$x,"../components/TurnEndedOffGateBanner.tsx":qx,"../components/TurnEndedOffGateBannerAgentReadyShowcase.tsx":GT,"../components/UnsurfacedPageGroup.tsx":Gx,"../components/UnsurfacedPageInvestigateButton.tsx":zx,"../components/UnsurfacedPageRow.tsx":Hx,"../components/UnsurfacedPageRowSummary.tsx":Fx,"../components/UnsurfacedPagesSection.tsx":Lx,"../components/UnsurfacedPagesSectionHeader.tsx":Ix,"../components/UpdateAvailableBanner.tsx":Ax,"../components/VersioningChangelogScreen.tsx":Ox,"../components/ViewTabs.tsx":GR,"../components/ViewportPresetButton.tsx":Bx,"../components/WaysToTestList.tsx":Mx,"../components/WebFallbackNotice.tsx":Ex,"../components/WiredProviderBanner.tsx":Dx,"../components/WorkflowSettingsSection.tsx":Rx,"../components/authFlows/ApiKeyFlow.tsx":cN,"../components/authFlows/ClaudeOAuthFlow.tsx":lN,"../components/authFlows/RecoveryActions.tsx":iN,"../components/externalServicesIcons.tsx":Tx,"../components/realDataIcons.tsx":kx,"../components/setupFlowParts.tsx":Nx,"../components/setupIcons.tsx":wx,"../components/setupTopicIllustration.tsx":Cx,"../context/AgentInputContext.tsx":rN,"../context/FilePickerContext.tsx":nN});let q=null;function f1(){if(q)return q;const t=[];return q=b1(h1,s=>t.push(s)),t.length>0&&console.warn("[scenario] auto-component index found duplicate export names:",Array.from(new Set(t)).sort().join(", ")),q}function S1(t){return f1()[t]??null}function y1(t,s){const{structural:a,fixtureProps:o}=s;if(!a&&!o)return t;const n=r=>{const i=o?{...o,...r}:r,c=e.jsx(t,{...i});return a?j1(a,c):c};return n.displayName=`ScenarioComponent(${t.displayName||t.name||"Anonymous"})`,n}function j1(t,s){const a="w-full text-[10px] border-collapse table-fixed";switch(t){case"tr":return e.jsx("table",{className:a,children:e.jsx("tbody",{children:s})});case"td":return e.jsx("table",{className:a,children:e.jsx("tbody",{children:e.jsx("tr",{children:s})})});case"th":return e.jsx("table",{className:a,children:e.jsx("thead",{children:e.jsx("tr",{children:s})})});case"li":return e.jsx("ul",{children:s});case"anchored":return e.jsx("div",{className:"relative ml-64 mt-24 inline-block",children:s})}}const p=()=>{},$={key:"real-data",Icon:E,title:"Real data",crumbLabel:"Real data",meta:"Foundation · about 10 minutes",leads:[{text:"Right now your app runs on sample data. Connecting real data lets it remember what people create."},{text:"We'll set up a managed database — no servers to run yourself.",dim:!0}],recommendLabel:"Recommended for your app",recommended:{initial:"S",color:"#3ecf8e",name:"Supabase",bestFit:!0,description:"A managed Postgres database with auth and storage built in.",reasons:[{lead:"No setup.",rest:"Provisioned and ready in under a minute."},{lead:"Generous free tier.",rest:"Plenty for getting started."}],chips:["Postgres","Free tier","Auth included"]},alternatives:[{initial:"N",color:"#000",name:"Neon",description:"Serverless Postgres with branching."}],ctaLabel:"Set up real data with Supabase",ctaNote:"You can change providers later — nothing is locked in.",faq:[{q:"Will this cost me anything?",a:"No — the free tier covers everything you need to start."}],flowLabels:["Connect","Provision","Ready"],connect:{heading:"Connect your database",sub:"Sign in to provision a managed Postgres instance.",grants:["Create a new database","Store your app's data securely"],continueLabel:"Continue with Supabase",reassure:"We never see your password — sign-in happens on Supabase."},provisionTitle:"Setting up your database…",provisionDesc:"This usually takes under a minute. You can keep working.",provisionSteps:["Creating your project","Provisioning Postgres","Wiring up your app","Running the first migration"],ready:{title:"Real data is live 🎉",desc:"Your app now reads and writes to a real database.",resultLabel:"Your database",resultValue:"app-db.supabase.co",donePill:"Real data is now set up"}},P1={key:"privacy-legal",Icon:E,title:"Privacy & legal",crumbLabel:"Privacy & legal",meta:"Foundation · about 5 minutes",leads:[{text:"A few small things keep you on the right side of privacy law and app-store rules."}],sections:[{heading:"What you need",body:"Most apps need a privacy policy and clear terms of use.",bullets:[{lead:"Privacy policy:",text:"explains what data you collect."},{lead:"Terms of use:",text:"sets the rules for using your app."}]}],optionsLabel:"Generators we like",options:[{initial:"T",color:"#6366f1",name:"Termly",description:"Free privacy-policy and terms generator.",reasons:[],chips:["Free","Fast"]}],faq:[{q:"Do I really need a privacy policy?",a:"If you collect any personal data, yes — and app stores require one."}],doneLabel:"Mark privacy & legal as handled",doneNote:"You can revisit this anytime."},Xe={monogram:"YA",name:"Your app",detail:"you@your-app.com · acct_1Q8…7fED"},C1={accent:"blue",badge:"●",title:"Let people sign in",providerName:"Supabase",connectColor:"lime",lead:"Right now everyone using your app is anonymous, so anything they save vanishes when they close the tab. Give people their own account and their saved items follow them on any device.",explainerHeading:"New to accounts? Here's the short version",lede:"An account is how your app knows who someone is — each person gets a private space they can reach from any device by signing in.",explainerRows:[{icon:"•",title:"Everything stays tied to them",desc:"Their saved items and profile are remembered even after they close the app."},{icon:"•",title:"It follows them across devices",desc:"Sign in on a phone, see the same data on a laptop."},{icon:"•",title:"It keeps private things private",desc:"Accounts let you say only this person can see their data."}],whyHeading:"Why CodeYam picks Supabase for you",whyRows:[{lead:"Free to start, no card needed.",rest:"A generous free tier covers a new app comfortably."},{lead:"Security handled for you.",rest:"Passwords and social sign-in are managed by Supabase."}],connectTitle:"Connect or create your Supabase project",connectDesc:"A new window opens on Supabase. Sign in or make a free account — CodeYam links to it and holds the keys.",connectButtonLabel:"Connect Supabase",reassure:["Free to start, no card needed","Takes about 3 minutes","Disconnect any time"],altToggleLabel:"Supabase not for you? See other options",alternatives:[{monogram:"C",color:"linear-gradient(140deg,#6c47ff,#4b2fcc)",name:"Clerk",desc:"Polished sign-in screens and user management out of the box."}],lockedLabel:"Then, once you're connected",lockedSteps:[{icon:"•",title:"Choose how people sign in",desc:"Google, Apple, email, magic link — pick as many as you like."},{icon:"•",title:"CodeYam builds your sign-in screens",desc:"Each a plan you preview before it ships."}]},w1={DataViewerRow:{structural:"tr"},DataViewerColumnHeader:{structural:"th"},DataViewerCell:{structural:"td"},PlanRunBlockedTooltip:{structural:"anchored"},RouteListTabs:{fixtureProps:{onSelectRoute:p,onSelectScenario:p}},HostingDeployStep:{fixtureProps:{onDone:p}},HostingScreen:{fixtureProps:{connector:{provider:"vercel"},onBack:p,onComplete:p}},HostingLiveStep:{fixtureProps:{onFinish:p}},HostingRealDeployStep:{fixtureProps:{provider:"vercel",credential:"demo-token",onDone:p,onRetry:p}},HistoryRangeSelector:{fixtureProps:{onChange:p}},NotificationSettingsControls:{fixtureProps:{onChange:p}},AppServiceCredentialModal:{fixtureProps:{onStored:p,onClose:p}},SetupCompleteCta:{fixtureProps:{onComplete:p,onRevert:p,onBack:p}},DetectedServiceRow:{fixtureProps:{onDismiss:p,onAddCredential:p}},DigestHeader:{fixtureProps:{onCopy:p}},SimulatedSetupOverview:{fixtureProps:{config:$,onBack:p,onSetup:p}},SimulatedSetupScreen:{fixtureProps:{config:$,onBack:p,onComplete:p}},SimulatedProvision:{fixtureProps:{config:$,onDone:p}},TeachSetupScreen:{fixtureProps:{config:P1,onBack:p,onComplete:p}},MobileTerminalCommandMenu:{fixtureProps:{defaultOpen:!0,currentFeature:"Mobile Commands Menu"}},MobileTerminalCommandMenuPanel:{fixtureProps:{defaultOpen:!0,currentFeature:"Mobile Commands Menu"}},RealDataScreen:{fixtureProps:{onBack:p,onComplete:p}},RealSetupFlow:{fixtureProps:{config:$,provider:"supabase",onBack:p,onComplete:p}},AccountsScreen:{fixtureProps:{onBack:p,onComplete:p}},EmailsScreen:{fixtureProps:{onBack:p,onComplete:p}},PaymentsScreen:{fixtureProps:{onBack:p,onComplete:p}},AccountsConnected:{fixtureProps:{app:X,startedOn:"June 14",onComplete:p}},EmailsConnected:{fixtureProps:{app:X,verifiedAddress:"hello@your-app.com",account:Xe,onComplete:p}},PaymentsConnected:{fixtureProps:{app:X,account:Xe,onComplete:p}},RealDataConnected:{fixtureProps:{entity:Ye,connection:i1,onPlan:p}},RealDataNotConnected:{fixtureProps:{entity:Ye,onConnect:p}},SetupNotConnected:{fixtureProps:{config:C1,onConnect:p}},SetupPlanFooter:{fixtureProps:{onPlan:p}},ProjectLauncher:{fixtureProps:{onOpen:p,onStop:p,onScan:p,onClone:p}},ProjectRow:{fixtureProps:{onOpen:p,onStop:p}},ProjectRowActions:{fixtureProps:{onOpen:p,onStop:p}},ProjectScanForm:{fixtureProps:{onScan:p}},ProjectCreateForm:{fixtureProps:{onCreate:p}},CreateProjectModal:{fixtureProps:{onCreate:p,onClose:p}},ProjectLauncherEmpty:{fixtureProps:{onCreateFirst:p,onScan:p}},OpenSourceProjectsSection:{fixtureProps:{onClone:p}},OpenSourceProjectRow:{fixtureProps:{onClone:p}},SetupTopicPage:{fixtureProps:{icon:d.createElement(E,{size:26}),title:"Use real data",crumbLabel:"Real data",meta:"Foundation · about 10 minutes",assistKey:"real-data",onBack:p,lead:"Right now your app's information lives inside the code, so anything people enter disappears when they reload. A real database gives your app a memory.",illustration:d.createElement(wt,{nodes:[{emoji:"📝",label:"In the code",sub:"Resets on refresh"},{emoji:"🗄️",label:"A real database",sub:"Your app's memory",lime:!0},{emoji:"♾️",label:"Saved for good",sub:"Remembered everywhere"}]}),chatPrompt:"Help me set up real data for my app.",faqs:[{q:"What is a database, really?",a:"A labelled place your app remembers things — like a spreadsheet it can read from and write to instantly."}]}}};function N1(t){const s={};for(const[a,o]of Object.entries(t))s[a]=A(o);return s}const k1=new Set(["div","span","p","strong","em","code","pre","h1","h2","h3","h4","h5","h6","ul","ol","li","a","br","hr","img","section","header","footer","nav","article","button"]);function A(t){if(t==="__noop__")return()=>{};if(t==null||typeof t!="object")return t;if(Array.isArray(t))return t.map(A);if(t.__type==="noop")return()=>{};if(t.__type==="undefined")return;if(t.__type==="Ref")return{current:null};if(t.__type==="Date"&&typeof t.value=="string")return new Date(t.value);if(t.__type==="Set"&&Array.isArray(t.values))return new Set(t.values.map(A));if(t.__type==="ReactNode"){if(typeof t.text=="string")return t.text;if(typeof t.element=="string"){if(!k1.has(t.element))return null;const a=t.children!=null?A(t.children):void 0;return d.createElement(t.element,t.props||null,a)}}if(t.__type==="Map"&&typeof t.entries=="object"&&t.entries!==null){const a=new Map;for(const[o,n]of Object.entries(t.entries))a.set(o,A(n));return a}const s={};for(const[a,o]of Object.entries(t))s[a]=A(o);return s}const Ze=200;function et(t){const s=t.trim().replace(/\s+/g," ");return s.length<=Ze?s:`${s.slice(0,Ze)}…`}function T1(t,s,a,o){if(!a){const n=o.trim()?`: ${et(o)}`:" (empty response body)";return{ok:!1,scenario:null,error:`HTTP ${s} from ${t}${n}`}}if(!o.trim())return{ok:!1,scenario:null,error:`HTTP ${s} from ${t} returned an empty response body (expected JSON)`};try{return{ok:!0,scenario:JSON.parse(o),error:null}}catch{return{ok:!1,scenario:null,error:`HTTP ${s} from ${t} returned a body that is not valid JSON: ${et(o)}`}}}function R1(t){if(!t||typeof t!="object")return!1;const s=t,a=s.http?Object.keys(s.http).length:0,o=s.db?Object.keys(s.db).length:0;return a>0||o>0}function D1(t){if(!t||typeof t!="object")return null;const s=t.http;return!s||typeof s!="object"||Object.keys(s).length===0?null:s}const E1=new Set(["EditorShell"]),tt=new Map;function M1(t){if(!t)return null;const s=u1[t]??S1(t);if(!s)return null;const a=w1[t];if(!a)return s;const o=tt.get(t);if(o)return o;const n=y1(s,a);return tt.set(t,n),n}function Z(t){return{Component:null,props:{},name:"",loading:!1,error:t,needsRouter:!1,displayHints:null,seed:null,scenarioType:null,hasMocks:!1,httpMocks:null,url:null}}function B1(t){const[s,a]=d.useState({Component:null,props:{},name:"",loading:!0,error:null,needsRouter:!1,displayHints:null,seed:null,scenarioType:null,hasMocks:!1,httpMocks:null,url:null});return d.useEffect(()=>{let o=!1;a(r=>({...r,loading:!0,error:null}));const n=`/api/scenarios/${encodeURIComponent(t)}`;return fetch(n).then(async r=>{const i=await r.text();return T1(n,r.status,r.ok,i)}).then(r=>{if(o)return;if(!r.ok){a(Z(r.error));return}const i=r.scenario;if(i.error){a(Z(i.error));return}const c=M1(i.componentName),_=i.scenarioType==="application"||i.scenarioType==="component"?i.scenarioType:null,u=i.seed??null,x=R1(i.mocks),m=D1(i.mocks),l=typeof i.url=="string"?i.url:null;if(!c&&i.componentName){a({Component:null,props:{},name:i.name??"",loading:!1,error:`Component "${i.componentName}" not found in registry`,needsRouter:!1,displayHints:null,seed:u,scenarioType:_,hasMocks:x,httpMocks:m,url:l});return}a({Component:c,props:N1(i.props??{}),name:i.name??"",loading:!1,error:null,needsRouter:E1.has(i.componentName??""),displayHints:i.displayHints??null,seed:u,scenarioType:_,hasMocks:x,httpMocks:m,url:l})}).catch(r=>{o||a(Z(r.message))}),()=>{o=!0}},[t]),s}function O1(t){const s=t.indexOf(" ");return s>0&&s<8?{method:t.slice(0,s).toUpperCase(),pathname:t.slice(s+1)}:{method:"GET",pathname:t}}function A1(t){return typeof t=="string"?t:t instanceof URL?t.href:t instanceof Request?t.url:String(t)}function I1(t){if(typeof t=="string")try{return new URL(t,"http://localhost").pathname}catch{return t}if(t instanceof URL)return t.pathname;if(t instanceof Request)try{return new URL(t.url,"http://localhost").pathname}catch{return t.url}return String(t)}function ws(t,s){return s!=null&&s.method?s.method.toUpperCase():t instanceof Request?t.method.toUpperCase():"GET"}function L1(t){const s=window.fetch,a=Object.entries(t).map(([o,n])=>({...O1(o),response:n}));return window.fetch=function(n,r){const i=I1(n),c=ws(n,r);for(const _ of a)if(_.method===c&&_.pathname===i){const u=_.response.status??200,x=new Headers(_.response.headers??{});x.has("Content-Type")||x.set("Content-Type","application/json");const m=_.response.body!==void 0?JSON.stringify(_.response.body):null;return Promise.resolve(new Response(m,{status:u,headers:x}))}return s.call(window,n,r)},()=>{window.fetch=s}}const F1=new Set(["/api/editor-activate-scenario","/api/editor-deactivate-scenario"]);function H1(t){const s=typeof window<"u"?window.location.origin:"http://localhost";try{const a=new URL(t,s);return a.origin!==s?null:a.pathname}catch{return null}}function z1(t,s){const a=t.toUpperCase();if(a==="GET"||a==="HEAD")return!1;const o=H1(s);return!(o===null||!o.startsWith("/api/")||F1.has(o))}function G1(){const t=window.fetch;return window.fetch=function(a,o){const n=ws(a,o),r=A1(a);return z1(n,r)?(console.warn(`[scenario] suppressed ${n} ${r} — a mounted component scenario is a fixture and must not mutate real project state`),Promise.resolve(new Response(JSON.stringify({suppressedByScenarioWriteGuard:!0,reason:"A component scenario is a fixture; mutating requests are suppressed while it is mounted.",method:n,url:r}),{status:200,headers:{"Content-Type":"application/json"}}))):t.call(window,a,o)},()=>{window.fetch=t}}function Ns({slug:t}){const{Component:s,props:a,name:o,loading:n,error:r,needsRouter:i,displayHints:c,seed:_,scenarioType:u,hasMocks:x,httpMocks:m,url:l}=B1(t),[g,b]=d.useState(!1),[f,y]=d.useState(null);if(d.useEffect(()=>{if(n)return;let D=!1;b(!1),y(null);const M=u==="component"?G1():null,T=m?L1(m):null;return u==="component"&&_==null&&!x?(b(!0),()=>{D=!0,T&&T(),M&&M()}):(fetch("/api/editor-activate-scenario",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({slug:t})}).then(async R=>{const N=await R.json().catch(()=>null);D||(N&&(N.seedError||N.success===!1)&&(_!=null?y(N.seedError||N.error||"scenario activation failed"):console.warn("[scenario] activation returned failure for no-seed scenario; ignoring",N)),b(!0))}).catch(R=>{D||(_!=null?y(R instanceof Error?R.message:String(R)):console.warn("[scenario] activation request failed for no-seed scenario; ignoring",R),b(!0))}),()=>{D=!0,T&&T(),M&&M(),fetch("/api/editor-deactivate-scenario",{method:"POST"}).catch(()=>{})})},[t,n,_,u,x,m]),n||!g)return e.jsx("div",{className:"flex min-h-screen items-center justify-center bg-[var(--bg-deep)] text-[var(--text-muted)]",children:"Loading scenario..."});if(f)return e.jsx(Ge,{error:f});if(r)return e.jsx("div",{"data-codeyam-scenario-error":"scenario",className:"flex min-h-screen items-center justify-center bg-[var(--bg-deep)] text-[var(--accent-red)]",children:e.jsxs("div",{className:"text-center",children:[e.jsx("p",{className:"text-lg",children:"Scenario Error"}),e.jsx(C,{text:r,copyText:`Scenario Error: ${r}`,className:"text-sm text-[var(--accent-red)]",rowClassName:"mt-2 justify-center"})]})});if(!s)return u==="application"?e.jsx(qe,{name:o,url:l}):e.jsx("div",{className:"flex min-h-screen items-center justify-center bg-[var(--bg-deep)] text-[var(--text-muted)]",children:e.jsxs("div",{className:"text-center",children:[e.jsx("p",{className:"text-lg",children:o}),e.jsx("p",{className:"mt-2 text-sm",children:"No component specified for this scenario"})]})});const h=e.jsx(s,{...a});if(i)return h;const v=c==null?void 0:c.height,S={...c!=null&&c.maxWidth?{maxWidth:c.maxWidth}:{},...v?{height:v,display:"flex",flexDirection:"column"}:{}},j=c!=null&&c.anchor?"w-full relative":"w-full";return e.jsx("div",{className:"flex min-h-screen items-center justify-center bg-[var(--bg-deep)] p-4",children:e.jsx("div",{className:j,style:Object.keys(S).length>0?S:void 0,children:h})})}export{Ns as ScenarioRenderer};