const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["https://assets-proxy.anthropic.com/claude-ai/v2/assets/v1/vendor-ant-cds-G1fENYYx.css","https://assets-proxy.anthropic.com/claude-ai/v2/assets/v1/c818056db-BjS1Z-Ak.css","https://assets-proxy.anthropic.com/claude-ai/v2/assets/v1/c0632795f-BhNFJsPB.css","https://assets-proxy.anthropic.com/claude-ai/v2/assets/v1/c67c3f5cf-D0xyY-j2.css","https://assets-proxy.anthropic.com/claude-ai/v2/assets/v1/c8d1355bb-BMzmE9tB.css"])))=>i.map(i=>d[i]);
import{r as e,j as t,R as s,a as n,_ as a,i}from"./vendor-react-RSDKEZ60.js";import{q as r,k as o,bM as l,du as c,jR as d,iM as u,I as m,de as p,J as f,ib as g,ex as h,bb as C,Tr as x,h as v,m as y,ae as b,w as k,x as w,ev as M,l8 as _,nV as j,dy as S,hR as L,Ts as N,Tt as I,Tu as T,Tv as A,Tw as E,Tx as R,D2 as D,Ty as H,Tz as P,TA as U,TB as O,h4 as F,TC as V,TD as z,TE as Z,a3 as B,AQ as q,ai as W,jb as $,Ag as G,Ah as K,vQ as Y,vR as Q,u as J,TF as X,TG as ee,zs as te,TH as se,aN as ne,y as ae,pf as ie,T as re,E as oe,rA as le,Q as ce,F as de,vx as ue,b as me,a5 as pe,vB as fe,P as ge,br as he,X as Ce,bi as xe,F9 as ve,gb as ye,E3 as be,bN as ke,aT as we,sH as Me,rg as _e,gP as je,jz as Se,QY as Le,TI as Ne,R as Ie,n as Te,o as Ae,cP as Ee,ds as Re,sq as De,g4 as He,cX as Pe,TJ as Ue,kJ as Oe,gY as Fe,gX as Ve,fg as ze,c2 as Ze,v as Be,sM as qe,mz as We,t1 as $e,Nx as Ge,TK as Ke,TL as Ye,Tg as Qe,sL as Je,TM as Xe,h1 as et,h2 as tt,TN as st,TO as nt,TP as at,of as it,pk as rt,h0 as ot,Sk as lt,V as ct,f as dt,a9 as ut,fX as mt,hB as pt,bE as ft,aC as gt,aL as ht,hz as Ct,hC as xt,TQ as vt,k7 as yt,lS as bt,a0 as kt,c_ as wt,gc as Mt,rD as _t,ck as jt,cl as St,TR as Lt,cr as Nt,ta as It,R1 as Tt,TS as At,ix as Et,RU as Rt,b_ as Dt,TT as Ht,TU as Pt,AR as Ut,H as Ot,aq as Ft,TV as Vt,TW as zt,S5 as Zt,jy as Bt,TX as qt,cY as Wt,eI as $t,ap as Gt,jx as Kt,ar as Yt,C5 as Qt,TY as Jt,bn as Xt,TZ as es,tb as ts,T_ as ss,iW as ns,p4 as as,bz as is,vq as rs,T$ as os,g7 as ls,ad as cs,at as ds,U0 as us,gD as ms,OV as ps,SX as fs,A as gs,S as hs,aB as Cs,i as xs,RT as vs,RS as ys,U1 as bs,dG as ks,U2 as ws,U3 as Ms,kq as _s,ik as js,ok as Ss,cO as Ls,U4 as Ns,U5 as Is,U6 as Ts,U7 as As,Sy as Es,Sz as Rs,sk as Ds,U8 as Hs,p3 as Ps,el as Us,U9 as Os,Ua as Fs,Ub as Vs,Uc as zs,dF as Zs,Ud as Bs,RR as qs,Fq as Ws,dH as $s,zV as Gs,em as Ks,NB as Ys,ND as Qs,NC as Js,Ue as Xs,Uf as en,NE as tn,Ug as sn,ch as nn,Uh as an,dN as rn,fD as on,k3 as ln,g5 as cn,c8 as dn,lU as un,fI as mn,fU as pn,ga as fn,jC as gn,Ui as hn,LE as Cn,Uj as xn,Uk as vn,lo as yn,mr as bn,Ul as kn,b3 as wn,Um as Mn,Hk as _n,t5 as jn,Un as Sn,ob as Ln,Uo as Nn,wc as In,og as Tn,U as An,OG as En,I2 as Rn,dT as Dn,dU as Hn,Up as Pn,Uq as Un,aS as On,aj as Fn,jS as Vn,ci as zn,av as Zn,nC as Bn,mF as qn,bj as Wn,q_ as $n,a6 as Gn,Bs as Kn,au as Yn,Ma as Qn,Lc as Jn,Ur as Xn,B as ea,lw as ta,Us as sa,vA as na,BP as aa,aA as ia,N as ra,hS as oa,Ut as la,AZ as ca,Uu as da,wR as ua,Uv as ma,B3 as pa,B4 as fa,h5 as ga,Uw as ha,Ux as Ca,Uy as xa,jv as va,fO as ya,G_ as ba,B_ as ka,n1 as wa,K as Ma,O as _a,Uz as ja,gR as Sa,UA as La,LO as Na,g6 as Ia,UB as Ta,rs as Aa,DC as Ea,KV as Ra,UC as Da,eO as Ha,op as Pa,UD as Ua,UE as Oa,bZ as Fa,fc as Va,e as za,RV as Za,oY as Ba,t6 as qa,Nr as Wa,Ns as $a,kv as Ga,cc as Ka,qX as Ya,an as Qa,UF as Ja,Nt as Xa,oR as ei,aK as ti,S2 as si,fE as ni,qr as ai,ao as ii,cn as ri,iT as oi,iU as li,oZ as ci,UG as di,qq as ui,dz as mi,oU as pi,UH as fi,Re as gi,UI as hi,UJ as Ci,iR as xi,ja as vi,UK as yi,UL as bi,vl as ki,oS as wi,UM as Mi,iS as _i,iN as ji,UN as Si,mA as Li,qs as Ni,cm as Ii,iQ as Ti,bt as Ai,UO as Ei,UP as Ri,UQ as Di,UR as Hi,US as Pi,fF as Ui,t as Oi,UT as Fi,s as Vi,kM as zi,OI as Zi,UU as Bi,by as qi,xa as Wi,pi as $i,UV as Gi,UW as Ki,UX as Yi,UY as Qi,hd as Ji,fQ as Xi,ba as er,UZ as tr,cp as sr,v8 as nr,qd as ar,U_ as ir,Tl as rr,U$ as or,bJ as lr,bL as cr,V0 as dr,fN as ur,ef as mr,qZ as pr,JC as fr,uf as gr,CB as hr,FD as Cr,V1 as xr,V2 as vr,Oa as yr,Iz as br,T8 as kr,V3 as wr,GA as Mr,gs as _r,V4 as jr,V5 as Sr,cD as Lr,mf as Nr,LN as Ir,V6 as Tr,Ln as Ar,Bd as Er,Ik as Rr,cZ as Dr,Bz as Hr,zq as Pr,V7 as Ur,Ig as Or,Ih as Fr,Ij as Vr,ij as zr,I6 as Zr,Ix as Br,Iy as qr,Is as Wr,V8 as $r,H2 as Gr,ip as Kr,V9 as Yr,Va as Qr,B9 as Jr,Vb as Xr,Vc as eo,Hx as to,Vd as so,Bb as no,Ve as ao,Vf as io,I5 as ro,Vg as oo,L as lo,Vh as co,Vi as uo,Vj as mo,IO as po,IJ as fo,IU as go,Hv as ho,Vk as Co,Vl as xo,Vm as vo,Vn as yo,Vo as bo,eL as ko,iq as wo,Vp as Mo,Cs as _o,Vq as jo,Vr as So,Vs as Lo,m4 as No,z as Io,GU as To,bX as Ao,s2 as Eo,Le as Ro,F0 as Do,Vt as Ho,Nb as Po,Vu as Uo,Vv as Oo,Vw as Fo,Vx as Vo,Vy as zo,Sq as Zo,pd as Bo,bW as qo,cT as Wo,DZ as $o,nh as Go,SZ as Ko,S_ as Yo,S$ as Qo,Vz as Jo,At as Xo,IM as el,I8 as tl,hJ as sl,m6 as nl,ma as al,VA as il,Hi as rl,C as ol,Lo as ll,VB as cl,im as dl,io as ul,a7 as ml,w1 as pl,VC as fl,w3 as gl,P4 as hl,VD as Cl,VE as xl,zp as vl,GK as yl,gO as bl,VF as kl,Hh as wl,ir as Ml,VG as _l,cE as jl,dK as Sl,d4 as Ll,LR as Nl,uC as Il,VH as Tl,OC as Al,VI as El,uI as Rl,uJ as Dl,VJ as Hl,VK as Pl,hn as Ul,SQ as Ol,tr as Fl,R0 as Vl,eD as zl,VL as Zl,en as Bl,c5 as ql,tu as Wl,VM as $l,tg as Gl,xN as Kl,tA as Yl,oh as Ql,VN as Jl,eE as Xl,kp as ec,eP as tc,eA as sc,VO as nc,VP as ac,VQ as ic,VR as rc,VS as oc,VT as lc,VU as cc,VV as dc,VW as uc,DI as mc,VX as pc,IS as fc,sK as gc,VY as hc,VZ as Cc,Hg as xc,V_ as vc,gU as yc,gV as bc,wM as kc,Jm as wc,V$ as Mc,Mv as _c,MA as jc,w8 as Sc,GJ as Lc,hV as Nc,W0 as Ic,I3 as Tc,IQ as Ac,Ha as Ec,IR as Rc,ax as Dc,t7 as Hc,W1 as Pc,Ab as Uc,HA as Oc,AX as Fc,mX as Vc,W2 as zc,W3 as Zc,W4 as Bc,x7 as qc,W5 as Wc,W6 as $c,Mo as Gc,mb as Kc,W7 as Yc,W8 as Qc,HL as Jc,W9 as Xc,Wa as ed,Wb as td,uy as sd,g0 as nd,uz as ad,Wc as id,Wd as rd,C3 as od,We as ld,Wf as cd,xx as dd,Wg as ud,Wh as md,Wi as pd,Wj as fd,Ca as gd,fd as hd,Qx as Cd,Wk as xd,DP as vd,Wl as yd,Wm as bd,Wn as kd,Wo as wd,IT as Md,Wp as _d,Wq as jd,Hf as Sd,Wr as Ld,Ws as Nd,tT as Id,Wt as Td,tH as Ad,tN as Ed,tK as Rd,tS as Dd,Wu as Hd,uc as Pd,Wv as Ud,Ww as Od,u9 as Fd,tX as Vd,t$ as zd,Wx as Zd,u6 as Bd,tO as qd,Wy as Wd,Wz as $d,u7 as Gd,tU as Kd,u0 as Yd,WA as Qd,ub as Jd,tM as Xd,WB as eu,u3 as tu,tV as su,tL as nu,u8 as au,tW as iu,nu as ru,Tq as ou,WC as lu,WD as cu,Jn as du,WE as uu,WF as mu,WG as pu,WH as fu,WI as gu,cW as hu,WJ as Cu,xd as xu,jW as vu,ct as yu,jU as bu,jV as ku,jT as wu,Hm as Mu,tj as _u,WK as ju,Hn as Su,bT as Lu,ky as Nu,hT as Iu,GV as Tu,cA as Au,bR as Eu,WL as Ru,cK as Du,b9 as Hu,et as Pu,d9 as Uu,WM as Ou,ks as Fu,WN as Vu,WO as zu,zC as Zu,WP as Bu,Cy as qu,Cw as Wu,WQ as $u,Cx as Gu,GW as Ku,df as Yu,dg as Qu,cC as Ju,ih as Xu,ii as em,D as tm,fe as sm,dh as nm,BH as am,b8 as im,WR as rm,b4 as om,WS as lm,Hc as cm,cI as dm,WT as um,H$ as mm,H7 as pm,Bn as fm,Bp as gm,m9 as hm,m8 as Cm,m5 as xm,WU as vm,WV as ym,WW as bm,WX as km,H8 as wm,WY as Mm,WZ as _m,W_ as jm,W$ as Sm,MS as Lm,X0 as Nm,X1 as Im,X2 as Tm,X3 as Am,X4 as Em,oA as Rm,g as Dm,FU as Hm,X5 as Pm,X6 as Um,m1 as Om,k_ as Fm,X7 as Vm,X8 as zm,X9 as Zm,Xa as Bm,Xb as qm,Xc as Wm,Xd as $m,EP as Gm,a as Km,Xe as Ym,Xf as Qm,Xg as Jm,Xh as Xm,f9 as ep,Xi as tp,IX as sp,Gu as np,Sn as ap,Xj as ip,Xk as rp,Xl as op,Xm as lp,Xn as cp,gQ as dp,nH as up,Xo as mp,E5 as pp,Xp as fp,Xq as gp,Xr as hp,Xs as Cp,oo as xp,Ss as vp,Rl as yp,pc as bp,Xt as kp,NL as wp,Xu as Mp,Xv as _p,OR as jp,vp as Sp,HU as Lp,Xw as Np,Xx as Ip,Xy as Tp,Xz as Ap,XA as Ep,XB as Rp,XC as Dp,XD as Hp,XE as Pp,XF as Up,XG as Op,XH as Fp,XI as Vp,XJ as zp,XK as Zp,XL as Bp,XM as qp,XN as Wp,XO as $p,XP as Gp,XQ as Kp,XR as Yp,XS as Qp,XT as Jp,XU as Xp,XV as ef,uP as tf,XW as sf,XX as nf,XY as af,wF as rf,XZ as of,X_ as lf,X$ as cf,Y0 as df,mo as uf,o0 as mf,o1 as pf,Y1 as ff,Y2 as gf,G as hf,dq as Cf,gt as xf,gu as vf,gv as yf,gw as bf,gx as kf,uq as wf,us as Mf,up as _f,RP as jf,ur as Sf,ut as Lf,xv as Nf,RN as If,xu as Tf,RO as Af,Y3 as Ef,Y4 as Rf,Y5 as Df,Q_ as Hf,Y6 as Pf,RM as Uf,jA as Of,bc as Ff,Y7 as Vf,Y8 as zf,Y9 as Zf,nx as Bf,Ya as qf,Yb as Wf,Yc as $f,tc as Gf,Yd as Kf,Ye as Yf,td as Qf,Yf as Jf,Yg as Xf,Yh as eg,Yi as tg,Yj as sg,Yk as ng,Yl as ag,RK as ig,Ym as rg,ti as og,Yn as lg,Yo as cg,R2 as dg,Dz as ug,HX as mg,Yp as pg,hW as fg,Yq as gg,te as hg,RY as Cg,Yr as xg,Ys as vg,Jr as yg,ts as bg,Nq as kg,Mu as wg,Yt as Mg,Mr as _g,sd as jg,mM as Sg,gW as Lg,dS as Ng,mL as Ig,Yu as Tg,bI as Ag,Yv as Eg,mW as Rg,Yw as Dg,to as Hg,Yx as Pg,Yy as Ug,Yz as Og,QC as Fg,iy as Vg,aZ as zg,YA as Zg,uT as Bg,YB as qg,YC as Wg,D5 as $g,GY as Gg,YD as Kg,bQ as Yg,jK as Qg,tt as Jg,s4 as Xg,eB as eh,s5 as th,eC as sh,vT as nh,hs as ah,gZ as ih,kD as rh,zW as oh,YE as lh,YF as ch,CT as dh,rm as uh,zz as mh,YG as ph,Ai as fh,AT as gh,YH as hh,YI as Ch,DB as xh,AW as vh,P0 as yh,nS as bh,Cm as kh,P1 as wh,P2 as Mh,z9 as _h,AV as jh,Dv as Sh,Dx as Lh,Dw as Nh,nt as Ih,Qs as Th,YJ as Ah,AP as Eh,ug as Rh,PE as Dh,vX as Hh,PF as Ph,PV as Uh,PG as Oh,Pm as Fh,Pw as Vh,Px as zh,D0 as Zh,CA as Bh,tz as qh,jP as Wh,QI as $h,PR as Gh,YK as Kh,YL as Yh,YM as Qh,YN as Jh,YO as Xh,Ia as eC,YP as tC,YQ as sC,jO as nC,YR as aC,EL as iC,Py as rC,YS as oC,YT as lC,YU as cC,YV as dC,DJ as uC,YW as mC,J_ as pC,J$ as fC,Qo as gC,L7 as hC,ln as CC,NT as xC,YX as vC,YY as yC,YZ as bC,Y_ as kC,ns as wC,Bo as MC,NW as _C,r9 as jC,Ey as SC,ra as LC,p5 as NC,bA as IC,hG as TC,NN as AC,gK as EC,sg as RC,Y$ as DC,Z0 as HC,rn as PC,bv as UC,Z1 as OC,Z2 as FC,Ny as VC,Z3 as zC,Z4 as ZC,Z5 as BC,gN as qC,OZ as WC,bx as $C,bB as GC,kA as KC,Z6 as YC,kB as QC,hD as JC,kz as XC,Z7 as ex,Z8 as tx,Z9 as sx,QX as nx,tv as ax,DK as ix,Za as rx,Zb as ox,om as lx,QW as cx,Zc as dx,Zd as ux,Ze as mx,Zf as px,g8 as fx,gn as gx,N$ as hx,Zg as Cx,se as xx,NU as vx,ph as yx,N_ as bx,gl as kx,EB as wx,bo as Mx,cB as _x,kU as jx,Zh as Sx,Zi as Lx,Zj as Nx,Zk as Ix,Zl as Tx,Zm as Ax,Zn as Ex,jD as Rx,Zo as Dx,Zp as Hx,xl as Px,Zq as Ux,BW as Ox,hb as Fx,QO as Vx,GD as zx,Zr as Zx,GE as Bx,Zs as qx,xA as Wx,ny as $x,Zt as Gx,Zu as Kx,mR as Yx,cj as Qx,C7 as Jx,Zv as Xx,kC as ev,sE as tv,jJ as sv,Zw as nv,Zx as av,Zy as iv,k0 as rv,s7 as ov,bD as lv,Zz as cv,ca as dv,MB as uv,ZA as mv,dM as pv,ez as fv,sb as gv,qV as hv,qJ as Cv,ZB as xv,qA as vv,qD as yv,ZC as bv,M$ as kv,ZD as wv,ZE as Mv,ZF as _v,ZG as jv,b5 as Sv,j2 as Lv,ZH as Nv,ZI as Iv,ed as Tv,ZJ as Av,ZK as Ev,ZL as Rv,mt as Dv,wX as Hv,aY as Pv,vZ as Uv,ZM as Ov,ZN as Fv,ZO as Vv,ZP as zv,ZQ as Zv,ZR as Bv,ZS as qv,ZT as Wv,ZU as $v,di as Gv,dj as Kv,M as Yv,aE as Qv,mC as Jv,co as Xv,ZV as ey,ZW as ty,ZX as sy,C1 as ny,ZY as ay,ZZ as iy,Z_ as ry,Z$ as oy,_0 as ly,fa as cy,CM as dy,_1 as uy,GI as my,NH as py,iw as fy,a_ as gy,a$ as hy,_2 as Cy,_3 as xy,_4 as vy,_5 as yy,aX as by,aW as ky,_6 as wy,xe as My,x6 as _y,_7 as jy,_8 as Sy,_9 as Ly,QB as Ny,_a as Iy,sc as Ty,oL as Ay,sj as Ey,i4 as Ry,i5 as Dy,_b as Hy,_c as Py,_d as Uy,C8 as Oy,Ii as Fy,_e as Vy,_f as zy,Cj as Zy,_g as By,_h as qy,_i as Wy,_j as $y,_k as Gy,_l as Ky,i9 as Yy,qt as Qy,es as Jy,HF as Xy,_m as eb,cL as tb,ni as sb,i0 as nb,kO as ab,JQ as ib,kK as rb,nz as ob,sp as lb,_n as cb,_o as db,BT as ub,Ql as mb,NM as pb,rb as fb,L8 as gb,Z as hb,pa as Cb,Cg as xb,f8 as vb,_p as yb,_q as bb,Ck as kb,tl as wb,tq as Mb,bP as _b,_r as jb,_s as Sb,_t as Lb,_u as Nb,_v as Ib,LM as Tb,fM as Ab,ie as Eb,_w as Rb,_x as Db,_y as Hb,_z as Pb,_A as Ub,NF as Ob,sh as Fb,oM as Vb,_B as zb,ju as Zb,_C as Bb,_D as qb,xf as Wb,$ as $b,s9 as Gb,_E as Kb,_F as Yb,_G as Qb,mD as Jb,gB as Xb,lD as ek,qh as tk,rS as sk,gz as nk,oW as ak,mG as ik,kI as rk,_H as ok,OH as lk,Sl as ck,_I as dk,_J as uk,_K as mk,_L as pk,_M as fk,_N as gk,_O as hk,_P as Ck,_Q as xk,_R as vk,_S as yk,_T as bk,DQ as kk,_U as wk,_V as Mk,HV as _k,HW as jk,_W as Sk,_X as Lk,oF as Nk,Fj as Ik,mP as Tk,vr as Ak,EE as Ek,ED as Rk,zG as Dk,Fk as Hk,f_ as Pk,_Y as Uk,_Z as Ok,zK as Fk,NG as Vk,__ as zk,ab as Zk,_$ as Bk,IY as qk,cx as Wk,OM as $k,$0 as Gk,$1 as Kk,$2 as Yk,Y as Qk,rI as Jk,GN as Xk,$3 as ew,jc as tw,$4 as sw,vL as nw,ji as aw,eJ as iw,$5 as rw,eK as ow,$6 as lw,$7 as cw,$8 as dw,RB as uw,$9 as mw,lm as pw,d1 as fw,c as gw,bY as hw,Q4 as Cw,lq as xw,$a as vw,jd as yw,Hy as bw,Hz as kw,$b as ww,DO as Mw,$c as _w,$d as jw,$e as Sw,$f as Lw,JP as Nw,nB as Iw,$g as Tw,$h as Aw,$i as Ew,n6 as Rw,rF as Dw,vG as Hw,id as Pw,AK as Uw,h6 as Ow,$j as Fw,$k as Vw,$l as zw,$m as Zw,uQ as Bw,$n as qw,$o as Ww,$p as $w,Cb as Gw,hc as Kw,$q as Yw,$r as Qw,wu as Jw,$s as Xw,c7 as eM,$t as tM,$u as sM,$v as nM,$w as aM,eq as iM,$x as rM,$y as oM,O6 as lM,$z as cM,$A as dM,$B as uM,tk as mM,$C as pM,xK as fM,uu as gM,ej as hM,ek as CM,QD as xM,$D as vM,$E as yM,$F as bM,xO as kM,$G as wM,aU as MM,$H as _M,No as jM,$I as SM,h8 as LM,St as NM,rl as IM,uj as TM,L9 as AM,Lb as EM,La as RM,$J as DM,be as HM,$K as PM,c1 as UM,$L as OM,pl as FM,bd as VM,rE as zM,$M as ZM,k6 as BM,$N as qM,Aj as WM,$O as $M,Au as GM,kj as KM,fY as YM,k8 as QM,JE as JM,JF as XM,$P as e_,wC as t_,$Q as s_,$R as n_,$S as a_,$T as i_,Ti as r_,$U as o_,uO as l_,$V as c_,$W as d_,$X as u_,$Y as m_,$Z as p_,$_ as f_,$$ as g_,a00 as h_,a01 as C_,a02 as x_,a03 as v_,a04 as y_,a05 as b_,a06 as k_,a07 as w_,a08 as M_,a09 as __,a0a as j_,a0b as S_,a0c as L_,a0d as N_,a0e as I_,a0f as T_,a0g as A_,a0h as E_,a0i as R_,a0j as D_,a0k as H_,a0l as P_,Tk as U_,a0m as O_,dE as F_,a0n as V_,zI as z_,a0o as Z_,a0p as B_,a0q as q_,a0r as W_,a0s as $_,a0t as G_,a0u as K_,a0v as Y_,pj as Q_,a0w as J_,a0x as X_,iA as ej,a0y as tj,mq as sj,a0z as nj,a0A as aj,a0B as ij,a0C as rj,a0D as oj,Tj as lj,a0E as cj,I0 as dj,NR as uj,a0F as mj,wD as pj,a0G as fj,a0H as gj,a0I as hj,a0J as Cj,a0K as xj,a0L as vj,a0M as yj,a0N as bj,a0O as kj,a0P as wj,hZ as Mj,I7 as _j,I1 as jj,a0Q as Sj,cG as Lj,a0R as Nj,a0S as Ij,zJ as Tj,cF as Aj,gq as Ej,bm as Rj,aV as Dj,fZ as Hj,a0T as Pj,cw as Uj,Ni as Oj,LH as Fj,vo as Vj,Rn as zj,a0U as Zj,a0V as Bj,Jg as qj,Ex as Wj,aD as $j,vD as Gj,rt as Kj,a0W as Yj,rw as Qj,a0X as Jj,a0Y as Xj,a0Z as eS,a0_ as tS,a0$ as sS,d7 as nS,fW as aS,k5 as iS,fR as rS,a1 as oS,cM as lS,g9 as cS,ki as dS,a10 as uS,r as mS,az as pS,he as fS,ic as gS,Nj as hS,t0 as CS,a11 as xS,a12 as vS,a13 as yS,ff as bS,a14 as kS,cf as wS,iC as MS,t3 as _S,a15 as jS,Sx as SS,AE as LS,Lp as NS,a16 as IS,bk as TS,a17 as AS,dx as ES,a18 as RS,is as DS,rp as HS,gy as PS,gA as US,a19 as OS}from"./c818056db-BBpc4u6S.js";import{C as FS,P as VS,u as zS,b as ZS,A as BS,O as qS,g as WS,L as $S}from"./cd5fbc768-klD_R6Lb.js";import{D as GS,b as KS,a as YS,c as QS}from"./vendor-luxon-CuMIhNDL.js";import{u as JS,M as XS,c as eL,d as tL,F as sL,a as nL,b as aL,e as iL}from"./vendor-intl-BNW8a19h.js";import{P as rL,e as oL,f as lL,K as cL,w as dL,E as uL,j as mL}from"./c427ad1ba-B9nEXUkc.js";import{c as pL,k as fL,u as gL,a as hL,b as CL,r as xL}from"./vendor-query-AdjnXGiH.js";import{G as vL,C as yL,c as bL,a as kL,i as wL,d as ML,e as _L,S as jL,T as SL,b as LL}from"./c85adc124-D_vRw5L5.js";import{a as NL,s as IL,e as TL,o as AL,n as EL,b as RL,r as DL,u as HL,i as PL,j as UL,p as OL,g as FL,d as VL,l as zL}from"./vendor-zod-D1-NLVm9.js";import{s as ZL,R as BL,A as qL,d as WL}from"./c0e977562-Cl8xDjBD.js";import{I as $L,i as GL,M as KL,ac as YL,U as QL,W as JL,ad as XL,a9 as eN,aa as tN,ae as sN,af as nN,L as aN,T as iN,B as rN,w as oN,D as lN,t as cN,x as dN,m as uN,d as mN,o as pN,l as fN,G as gN,S as hN,J as CN,j as xN,f as vN,P as yN,q as bN,Y as kN,p as wN,e as MN,O as _N,n as jN,u as SN,C as LN,X as NN,k as IN,a3 as TN,y as AN}from"./vendor-ant-cds-CBh5POw1.js";import{A as EN}from"./cb59e2e62-CSNgeCcf.js";import{c as RN,a as DN,u as HN,e as PN,C as UN,D as ON}from"./c0b1049d0-DSrPqxUf.js";import{e as FN,a as VN,C as zN}from"./c516a3ba1-V3Ebwoql.js";import{n as ZN,g as BN,s as qN,u as WN,G as $N,t as GN,d as KN,p as YN,e as QN,T as JN,M as XN,m as eI,l as tI,v as sI,b as nI,C as aI,f as iI,i as rI}from"./c12f02e29-BpK360cp.js";import{u as oI,v as lI,w as cI,bb as dI,c as uI,b as mI,bN as pI,bO as fI,bP as gI,bQ as hI,bR as CI,bS as xI,bT as vI,bU as yI,bV as bI,be as kI,bg as wI,bW as MI,aQ as _I,ao as jI,o as SI,a3 as LI,i as NI,Q as II,a8 as TI,bX as AI,ai as EI,bH as RI,e as DI,bY as HI,bJ as PI,bZ as UI,b_ as OI,ba as FI,J as VI,ah as zI,b$ as ZI,c0 as BI,c1 as qI,c2 as WI,R as $I,U as GI,W as KI,_ as YI,X as QI,Y as JI,Z as XI,$ as eT,c3 as tT,T as sT,V as nT,bc as aT,bf as iT,c4 as rT,m as oT,b5 as lT,c5 as cT,by as dT,N as uT,d as mT,G as pT}from"./c40b9b8f5-FH3kS9Lp.js";import{c as fT,f as gT,u as hT,p as CT,a as xT,s as vT,d as yT,b as bT,e as kT}from"./vendor-zustand-IIUY2Tf-.js";import{H as wT,I as MT,V as _T,K as jT,n as ST,t as LT,W as NT,X as IT,Y as TT,J as AT}from"./vendor-lodash-wKOE1Xsv.js";import{aL as ET,aM as RT,aN as DT,D as HT,B as PT,E as UT,L as OT,N as FT,K as VT,A as zT,M as ZT,F as BT,H as qT,G as WT,J as $T,S as GT,I as KT,aO as YT,az as QT,aA as JT,aB as XT,aC as eA,aD as tA}from"./vendor-base-ui-DCHlJbY9.js";import{m as sA,A as nA,L as aA,f as iA,u as rA,M as oA,l as lA,h as cA,g as dA,a as uA,n as mA}from"./vendor-motion-Bnihp5FA.js";import{k as pA,j as fA,i as gA,O as hA,H as CA,m as xA,n as vA,b as yA,o as bA,l as kA,f as wA,d as MA,S as _A,p as jA,e as SA,N as LA,h as NA}from"./c8c15d455-CXtYohvr.js";import{R as IA,a as TA}from"./cbaad2c48-537T3DR5.js";import{C as AA}from"./c1f96d614-fszDh6Jj.js";import{ak as EA,al as RA,am as DA,an as HA,F as PA,T as UA,ax as OA,ay as FA,az as VA,aA as zA,aB as ZA,aC as BA,aD as qA,aE as WA,aF as $A,M as GA,K as KA,Q as YA,O as QA,a$ as JA,b0 as XA,b1 as eE,b2 as tE,b3 as sE,b4 as nE,b5 as aE,av as iE,aQ as rE,aR as oE,aS as lE,aT as cE}from"./vendor-radix-qP6Vhe7Y.js";import{ag as dE,ah as uE,ai as mE,a as pE,u as fE,aj as gE,a2 as hE,ak as CE,al as xE,af as vE,x as yE,b as bE,w as kE,am as wE,ad as ME,an as _E,i as jE,a9 as SE,G as LE,H as NE,I as IE,J as TE,V as AE,ab as EE,g as RE,l as DE,ao as HE,ap as PE,aq as UE,f as OE}from"./cbf215181-BtpZx0Q9.js";import{q as FE,a as VE,aa as zE,ab as ZE,ac as BE,ad as qE,g as WE,i as $E,l as GE,v as KE,o as YE,c as QE,ae as JE,C as XE,af as eR,p as tR,e as sR,H as nR,t as aR}from"./c82022b5f-Db_p23VK.js";import{E as iR}from"./c9bba154c-C96xRtPW.js";import{ae as rR,h as oR,c9 as lR,ca as cR,cb as dR,t as uR,cc as mR,b as pR,E as fR,b3 as gR,a8 as hR,cd as CR,ce as xR,cf as vR,y as yR,bk as bR,cg as kR,bD as wR,ch as MR,aM as _R,ci as jR,a as SR,b6 as LR,at as NR,c5 as IR,c0 as TR,br as AR,bK as ER,cj as RR,b$ as DR,A as HR,bJ as PR,ck as UR,ad as OR,cl as FR,cm as VR,cn as zR,co as ZR,cp as BR,cq as qR,cr as WR,bG as $R,cs as GR,ct as KR,cu as YR,cv as QR,cw as JR,a0 as XR,D as eD,cx as tD,cy as sD,bj as nD,x as aD,bb as iD,bc as rD,cz as oD,az as lD,a7 as cD,a6 as dD,cA as uD,a$ as mD,cB as pD,_ as fD,cC as gD,cD as hD,cE as CD,bl as xD,cF as vD,cG as yD,cH as bD,aV as kD,aG as wD,a9 as MD,cI as _D,a2 as jD,cJ as SD,cK as LD,m as ND,cL as ID,cM as TD,cN as AD,aW as ED,cO as RD,cP as DD,aK as HD,cQ as PD,cR as UD,bI as OD,cS as FD,cT as VD,cU as zD,cV as ZD,ab as BD,cW as qD,cX as WD,cY as $D,cZ as GD,$ as KD,c_ as YD,c$ as QD,d0 as JD,d1 as XD,d2 as eH,d3 as tH,d4 as sH,d5 as nH,d6 as aH}from"./vendor-icons-CjJMeNuY.js";import{c as iH,D as rH,b as oH,u as lH,F as cH,M as dH,N as uH,P as mH,O as pH,Q as fH,T as gH,W as hH,B as CH,C as xH,U as vH,i as yH,m as bH,A as kH,V as wH,X as MH,a as _H,d as jH,S as SH,E as LH}from"./c0632795f-CeVeaenZ.js";import{b as NH}from"./vendor-router-GBzVqgom.js";import{l as IH,u as TH,m as AH,n as EH,o as RH,p as DH,q as HH,I as PH,a as UH,R as OH,b as FH,r as VH,d as zH,T as ZH,F as BH,e as qH}from"./c9e81e7b9-D550BC8k.js";import{L as WH}from"./c93f725a0-HHLLVuUn.js";import{a as $H,f as GH}from"./c606eaf84-B9aPjX-7.js";import{u as KH,C as YH,f as QH,g as JH,h as XH,i as eP,j as tP}from"./cc2dfdfd3-DnAU5kEX.js";import{C as sP}from"./cdd5b9598-yqo6iFZ3.js";import{C as nP}from"./c5669b8e4-Crc1rGjx.js";import{u as aP}from"./cc2e285cb-C7M5SPGc.js";import{e as iP,m as rP,p as oP}from"./c72812e30-BlZzFaVQ.js";import{T as lP}from"./ce1bfd762-BAr2B8fo.js";import{u as cP,d as dP,e as uP}from"./vendor-virtual-Dv6zxMze.js";import{B as mP}from"./c71860c77-DbRxNoWX.js";import{u as pP}from"./c627fcdb6-C51JOmm-.js";import{r as fP,b as gP,e as hP,g as CP,c as xP,d as vP}from"./cf83a0aa1-CuGcvWYK.js";function yP(t=!1,s){const{onOpen:n,onClose:a}={},[i,r]=e.useState(t),o=e.useCallback(()=>{r(e=>e||(n?.(),!0))},[n]),l=e.useCallback(()=>{r(e=>e?(a?.(),!1):e)},[a]),c=e.useCallback(()=>{i?l():o()},[l,o,i]);return[i,{open:o,close:l,toggle:c}]}const bP=e.forwardRef((e,s)=>t.jsx(ET,{ref:s,"data-cds":"Collapsible",...e}));bP.displayName="Collapsible.Root";const kP=e.forwardRef(({className:e,children:s,hideCaret:n,render:a,...i},r)=>a?t.jsx(RT,{ref:r,render:a,className:e,...i}):t.jsxs(RT,{ref:r,...i,className:GL("cds-reset group/clp inline-flex w-fit items-center gap-1.5 border-0 select-none outline-none font-sans text-body text-secondary hover:text-primary transition-shadow duration-fast focus-visible:shadow-focus rounded data-[disabled]:opacity-50 data-[disabled]:pointer-events-none",e),children:[!n&&t.jsx($L,{name:"CaretRight",size:"sm",className:"shrink-0 transition-transform group-data-[panel-open]/clp:rotate-90"}),s]}));kP.displayName="Collapsible.Trigger";const wP=e.forwardRef(({className:e,...s},n)=>t.jsx(DT,{ref:n,...s,className:GL("overflow-hidden h-[var(--collapsible-panel-height)] transition-[height] duration-150 ease-out data-[starting-style]:h-0 data-[ending-style]:h-0",e)}));wP.displayName="Collapsible.Panel";const MP={Root:bP,Trigger:kP,Panel:wP},_P=e.forwardRef(({className:e,children:s,finalFocus:n,...a},i)=>{const r=XL(),o=eN("contextmenu");return t.jsx(tN.Provider,{value:o.base,children:t.jsx(OT,{className:"z-popover",style:o.style,children:t.jsx(FT,{"data-cds":"ContextMenu",ref:i,finalFocus:n??r,...a,className:GL(nN,e),children:t.jsx(sN,{children:s})})})})});_P.displayName="ContextMenu.PopupInner";const jP=e.forwardRef((e,s)=>t.jsx(UT,{container:JL(),children:t.jsx(QL,{children:t.jsx(_P,{ref:s,...e})})}));function SP(e){const s=YL(e.onOpenChange);return t.jsx(PT,{...e,onOpenChange:s})}jP.displayName="ContextMenu.Popup",SP.displayName="ContextMenu.Root";const LP={Root:SP,Trigger:HT,Popup:jP,Item:KL.Item,Separator:KL.Separator,Group:KL.Group,Header:KL.Header,Submenu:KL.Submenu,SubmenuTrigger:KL.SubmenuTrigger,SubmenuPopup:KL.Popup};function NP({className:e}){return t.jsxs("span",{"data-cds":"Dots",className:GL("inline-flex size-[16px] items-center justify-center gap-[2px] px-[2px] leading-none",e),"aria-hidden":!0,children:[t.jsx("span",{className:"cds-dot"}),t.jsx("span",{className:"cds-dot"}),t.jsx("span",{className:"cds-dot"})]})}const IP=[["year",31536e3],["month",2592e3],["week",604800],["day",86400],["hour",3600],["minute",60]];function TP(e,t,s,n){const a=Math.round((e.getTime()-Date.now())/1e3),i=Math.abs(a);if(i<60){if(void 0!==s)return s;const e=new Intl.RelativeTimeFormat(t,{numeric:"auto",style:n});return"long"===n&&e.resolvedOptions().locale.toLowerCase().startsWith("en")?"just now":e.format(0,"second")}const r=new Intl.RelativeTimeFormat(t,{numeric:"auto",style:n});let o="minute",l=60;for(const[c,d]of IP)if(i>=d){o=c,l=d;break}return r.format(Math.round(a/l),o)}function AP(e,t,s){const n=e.getFullYear()===(new Date).getFullYear();return"datetime"===s?e.toLocaleString(t,{month:"short",day:"numeric",year:n?void 0:"numeric",hour:"numeric",minute:"2-digit"}):e.toLocaleDateString(t,{month:"short",day:"numeric",year:n?void 0:"numeric"})}function EP({date:s,locale:n,justNowLabel:a,absoluteAfterHours:i=168,absoluteFormat:r="date",relativeFormat:o="long",tooltipSide:l,className:c}){const d=aN(),u=n??d,[,m]=e.useReducer(e=>e+1,0);e.useEffect(()=>{const e=window.setInterval(m,6e4);return()=>window.clearInterval(e)},[]);const p=s instanceof Date?s:new Date(s),f=Number.isNaN(p.getTime())?void 0:p.toISOString(),g=f?p.toLocaleString(u,{year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"2-digit",timeZoneName:"short"}):void 0,h=(f?Math.abs(Date.now()-p.getTime())/36e5:0)>=i;return t.jsx(iN,{content:g,side:l,children:t.jsx("time",{"data-cds":"RelativeTime",dateTime:f,className:c,children:f?h?AP(p,u,r):TP(p,u,a,o):"\u2014"})})}function RP(e){return"/directory"===e||e.startsWith("/directory/")}function DP(e,t,s){if(null===t)return`/directory/${e}`;const n=`/directory/${e}/${encodeURIComponent(t)}`;return"connect"===s?`${n}/connect`:n}function HP(){const e=l(e=>e.isOpen),t=l(e=>e.section),s=l(e=>e.itemId);return e&&s?DP(t,s):null}function PP(){const t=r(),s=o(),n=l(e=>e.navigate),a=e.useCallback((e,a,i)=>{const r=i?.mode??"detail",o=l.getState();o.isOpen&&(o.section===e&&o.itemId===a&&o.itemMode===r||(n(e,a,r),RP(s)&&t.replace(DP(e,a,r))))},[n,s,t]),i=e.useCallback(e=>{a(e,null)},[a]);return{navigateToItem:a,navigateToSection:i}}function UP(){const t=r(),s=o(),n=l(e=>e.close);return e.useCallback(()=>{n(),RP(s)&&t.replace("/new")},[n,s,t])}function OP(t=!1){const s=c(),n=r(),a=o(),i=e.useRef(!1),l=d(),C=u(),x=m(),v=p(),y=x&&!0===v,b=f(),k=x&&!b&&null===v,w=g(),M=k||w,[_,j]=e.useState(!1);e.useEffect(()=>{if(t||s.isAvailable||!M||_)return;const e=setTimeout(()=>j(!0),5e3);return()=>clearTimeout(e)},[t,s.isAvailable,M,_]);const S=!x&&l&&C?"/code":y?h:"/settings",L=RP(a);return e.useEffect(()=>{t||s.isAvailable||L||M&&!_||i.current||(i.current=!0,n.replace(S))},[t,s.isAvailable,L,M,_,n,S]),t||s.isAvailable||L?"available":"redirecting"}const FP=e=>t.jsx(C,{...e,children:t.jsx("path",{d:"M5 2.5A2 2 0 0 1 6.935 4h6.815a3.25 3.25 0 0 1 0 6.5h-1.043l-2.354 2.354a.5.5 0 0 1-.707 0L7.293 10.5H6.25a2.25 2.25 0 0 0 0 4.5h6.815A1.999 1.999 0 1 1 15 17.5a2 2 0 0 1-1.935-1.5H6.25a3.25 3.25 0 0 1 0-6.5h1.043l2.353-2.354.079-.064a.5.5 0 0 1 .629.064L12.707 9.5h1.043a2.25 2.25 0 0 0 0-4.5H6.935A1.999 1.999 0 0 1 3 4.5a2 2 0 0 1 2-2m10 12a1 1 0 1 0 0 2 1 1 0 0 0 0-2M8.207 10 10 11.793 11.793 10 10 8.207zM5 3.5a1 1 0 1 0 0 2 1 1 0 0 0 0-2"})}),VP=e=>t.jsx(C,{...e,children:t.jsx("path",{d:"M10 3a.5.5 0 0 1 .5.5v11.793l4.147-4.146a.5.5 0 0 1 .707.707l-5 5a.5.5 0 0 1-.631.062l-.076-.062-5-5a.5.5 0 0 1 .707-.707L9.5 15.293V3.5A.5.5 0 0 1 10 3"})}),zP=e=>t.jsx(C,{...e,children:t.jsx("path",{d:"M11.147 4.646a.5.5 0 0 1 .707 0l5 5 .062.077a.5.5 0 0 1-.062.63l-5 5a.5.5 0 0 1-.707-.707l4.146-4.146H3.5a.5.5 0 0 1 0-1h11.793l-4.146-4.146a.5.5 0 0 1 0-.708"})}),ZP=e=>t.jsx(C,{...e,children:t.jsx("path",{d:"M8 4c.82 0 1.544.396 2 1.005A2.5 2.5 0 0 1 12 4h4.5A1.5 1.5 0 0 1 18 5.5v9a1.5 1.5 0 0 1-1.5 1.5h-4.559a1.5 1.5 0 0 0-1.422 1.025l-.044.133a.5.5 0 0 1-.056.111q-.011.019-.024.036-.012.016-.028.032a.5.5 0 0 1-.092.078.5.5 0 0 1-.152.067l-.036.01-.007.001-.028.002q-.025.004-.052.004t-.053-.004q-.014 0-.027-.002l-.008-.002-.036-.009a.5.5 0 0 1-.12-.046.5.5 0 0 1-.099-.074l-.025-.025q-.015-.015-.028-.032t-.024-.035l-.023-.04-.032-.072-.044-.133A1.5 1.5 0 0 0 8.06 16H3.5A1.5 1.5 0 0 1 2 14.5v-9A1.5 1.5 0 0 1 3.5 4zM3.5 5a.5.5 0 0 0-.5.5v9a.5.5 0 0 0 .5.5h4.559c.529 0 1.029.167 1.441.458V6.5A1.5 1.5 0 0 0 8 5zM12 5a1.5 1.5 0 0 0-1.5 1.5v8.958c.412-.29.912-.458 1.441-.458H16.5a.5.5 0 0 0 .5-.5v-9a.5.5 0 0 0-.5-.5zm-4.5 7a.5.5 0 0 1 0 1H5a.5.5 0 0 1 0-1zm7.5 0a.5.5 0 0 1 0 1h-2.5a.5.5 0 0 1 0-1zM7.5 9.5a.5.5 0 0 1 0 1H5a.5.5 0 0 1 0-1zm7.5 0a.5.5 0 0 1 0 1h-2.5a.5.5 0 0 1 0-1zM15 7a.5.5 0 0 1 0 1h-2.5a.5.5 0 0 1 0-1z"})}),BP=e=>t.jsx(C,{...e,children:t.jsx("path",{fillRule:"evenodd",d:"M13.5 2a.5.5 0 0 1 .5.5V3h1.5A1.5 1.5 0 0 1 17 4.5v11a1.5 1.5 0 0 1-1.5 1.5h-11A1.5 1.5 0 0 1 3 15.5v-11A1.5 1.5 0 0 1 4.5 3H6v-.5a.5.5 0 0 1 1 0V3h6v-.5a.5.5 0 0 1 .5-.5M4 15.5a.5.5 0 0 0 .5.5h11a.5.5 0 0 0 .5-.5V8H4zM4.5 4a.5.5 0 0 0-.5.5V7h12V4.5a.5.5 0 0 0-.5-.5H14v1.5a.5.5 0 0 1-1 0V4H7v1.5a.5.5 0 0 1-1 0V4z",clipRule:"evenodd"})}),qP=e=>t.jsx(C,{...e,children:t.jsx("path",{d:"M12 3a1.5 1.5 0 0 1 1.2.6L14.25 5h2.25A1.5 1.5 0 0 1 18 6.5v9a1.5 1.5 0 0 1-1.5 1.5h-13A1.5 1.5 0 0 1 2 15.5v-9A1.5 1.5 0 0 1 3.5 5h2.25L6.8 3.6l.113-.134A1.5 1.5 0 0 1 8 3zM8 4a.5.5 0 0 0-.32.115L7.6 4.2 6.4 5.8A.5.5 0 0 1 6 6H3.5a.5.5 0 0 0-.5.5v9a.5.5 0 0 0 .5.5h13a.5.5 0 0 0 .5-.5v-9a.5.5 0 0 0-.5-.5H14a.5.5 0 0 1-.4-.2l-1.2-1.6A.5.5 0 0 0 12 4zm2 3a3.5 3.5 0 1 1 0 7 3.5 3.5 0 0 1 0-7m0 1a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5"})}),WP=e=>t.jsx(C,{...e,children:t.jsx("path",{d:"M7.128 5.165a.5.5 0 0 1 .625-.097l.082.06 5 4.5a.5.5 0 0 1 .07.666l-.07.078-5 4.5a.501.501 0 0 1-.67-.744L11.752 10 7.165 5.872l-.068-.075a.5.5 0 0 1 .03-.632"})}),$P=e=>t.jsx(C,{...e,children:t.jsx("path",{d:"M10 6a.5.5 0 0 1 .289.092l.077.068 6.5 7a.5.5 0 1 1-.732.68L10 7.233 3.866 13.84l-.076.067a.5.5 0 0 1-.718-.667l.062-.08 6.5-7A.5.5 0 0 1 10 6"})}),GP=e=>t.jsx(C,{...e,children:t.jsx("path",{d:"M6.126 13.918a.5.5 0 0 1 .748.664l-2.218 2.5a.5.5 0 0 1-.666.074l-.078-.07-1.032-1.139-.06-.082a.5.5 0 0 1 .725-.658l.075.068.657.725zM16.5 15a.5.5 0 0 1 0 1h-8a.5.5 0 0 1 0-1zM6.126 8.418a.5.5 0 0 1 .748.664l-2.218 2.5a.5.5 0 0 1-.666.074l-.078-.07-1.032-1.139-.06-.082a.5.5 0 0 1 .725-.658l.075.068.657.725zM16.5 9.5a.5.5 0 0 1 0 1h-8a.5.5 0 0 1 0-1zM6.126 2.918a.5.5 0 0 1 .748.664l-2.218 2.5a.5.5 0 0 1-.666.074l-.078-.07L2.88 4.947l-.06-.082a.5.5 0 0 1 .725-.658l.075.068.657.725zM16.5 4a.5.5 0 0 1 0 1h-8a.5.5 0 0 1 0-1z"})}),KP=e=>t.jsx(C,{...e,children:t.jsx("path",{d:"M10 1.5c1.11 0 2.076.604 2.595 1.5H14.5A1.5 1.5 0 0 1 16 4.5v12a1.5 1.5 0 0 1-1.5 1.5h-9A1.5 1.5 0 0 1 4 16.5v-12A1.5 1.5 0 0 1 5.5 3h1.905A3 3 0 0 1 10 1.5M5.5 4a.5.5 0 0 0-.5.5v12a.5.5 0 0 0 .5.5h9a.5.5 0 0 0 .5-.5v-12a.5.5 0 0 0-.5-.5h-1.542q.041.245.042.5v1a.5.5 0 0 1-.5.5h-5a.5.5 0 0 1-.5-.5v-1q0-.255.042-.5zm7.04 9.304a.5.5 0 0 1 .92.392c-.295.69-.871 1.304-1.66 1.304-.487 0-.892-.234-1.2-.574-.309.34-.713.574-1.2.574-.486 0-.892-.233-1.2-.574-.31.34-.714.574-1.2.574a.5.5 0 0 1 0-1c.212 0 .52-.18.74-.696l.034-.067a.5.5 0 0 1 .886.067c.221.516.528.696.74.696.213 0 .52-.18.74-.696l.035-.067a.5.5 0 0 1 .885.067c.22.516.527.696.74.696s.519-.18.74-.696m0-4a.5.5 0 0 1 .92.392c-.295.69-.871 1.304-1.66 1.304-.487 0-.892-.234-1.2-.574-.309.34-.713.574-1.2.574-.486 0-.892-.233-1.2-.574-.31.34-.714.574-1.2.574a.5.5 0 0 1 0-1c.212 0 .52-.18.74-.696l.034-.067a.5.5 0 0 1 .886.067c.221.516.528.696.74.696.213 0 .52-.18.74-.696l.035-.067a.5.5 0 0 1 .885.067c.22.516.527.696.74.696s.519-.18.74-.696M10 2.5a2 2 0 0 0-2 2V5h4v-.5a2 2 0 0 0-2-2"})}),YP=e=>t.jsx(C,{...e,children:t.jsx("path",{d:"M10 2.5a7.5 7.5 0 1 1 0 15 7.5 7.5 0 0 1 0-15m0 1a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13M10 5a.5.5 0 0 1 .5.5v4.169l3.197 1.371.088.05a.5.5 0 0 1-.386.9l-.096-.03-3.5-1.5A.5.5 0 0 1 9.5 10V5.5A.5.5 0 0 1 10 5"})}),QP=e=>t.jsxs(C,{...e,children:[t.jsx("path",{d:"M15.072 11.643a.5.5 0 0 1 .497.503c-.005.94-.586 1.586-1.223 1.95-.622.354-1.391.497-1.964.373a.5.5 0 0 1 .21-.977c.288.062.808-.008 1.26-.265.436-.248.715-.614.717-1.086a.5.5 0 0 1 .503-.498"}),t.jsx("path",{fillRule:"evenodd",d:"M6.99 3.721c1.184-.339 2.54-.122 3.612.501.83.482 1.518 1.23 1.814 2.188.985-.619 2.117-.561 2.97-.022.406.256.793.582 1.032 1.081.182.38.26.823.237 1.349.717.151 1.314.602 1.743 1.168a4.26 4.26 0 0 1 .844 2.522 4.494 4.494 0 0 1-4.484 4.493l-9.418-.004-.01-.001a4.493 4.493 0 0 1-4.304-4.488c0-.931.303-1.915.887-2.655.451-.572 1.078-1.002 1.848-1.132-.296-1.029-.07-2.042.441-2.88a4.94 4.94 0 0 1 2.788-2.12m3.11 1.366c-.862-.5-1.939-.66-2.834-.404a3.94 3.94 0 0 0-2.21 1.679c-.477.783-.6 1.699-.125 2.596a.5.5 0 0 1-.487.732c-.742-.066-1.327.252-1.746.783-.429.544-.672 1.303-.672 2.035a3.49 3.49 0 0 0 3.345 3.489l9.385.002a3.493 3.493 0 0 0 3.486-3.49c0-.682-.24-1.39-.64-1.919-.4-.526-.921-.832-1.486-.827a.502.502 0 0 1-.5-.572c.094-.64.025-1.028-.1-1.29-.125-.26-.336-.46-.664-.667-.66-.418-1.632-.41-2.41.45a.5.5 0 0 1-.87-.32c-.031-.985-.618-1.78-1.472-2.277",clipRule:"evenodd"})]}),JP=e=>t.jsx(C,{...e,children:t.jsx("path",{d:"M16.5 4A1.5 1.5 0 0 1 18 5.5v9a1.5 1.5 0 0 1-1.5 1.5h-13A1.5 1.5 0 0 1 2 14.5V9a.5.5 0 0 1 1 0v5.5a.5.5 0 0 0 .5.5h13a.5.5 0 0 0 .5-.5v-9a.5.5 0 0 0-.5-.5H14a.5.5 0 0 1 0-1zm-8.402-.99a.5.5 0 0 1 .392.588l-1 5a.5.5 0 0 1-.98-.196l1-5a.5.5 0 0 1 .588-.392m-3.326.545a.5.5 0 0 1 .613.764l-.072.072L3.3 6l2.011 1.61a.5.5 0 0 1-.625.78l-2.5-2-.079-.08a.5.5 0 0 1 .08-.7l2.5-2zm4.837.132a.5.5 0 0 1 .618-.132l.085.054 2.5 2a.5.5 0 0 1 .08.702l-.08.08-2.5 2a.5.5 0 0 1-.624-.782L11.699 6 9.688 4.39l-.073-.07a.5.5 0 0 1-.006-.633"})}),XP=e=>t.jsxs(C,{...e,children:[t.jsx("path",{d:"M9.76 13.06a.5.5 0 0 1 .553.05l2.5 2a.5.5 0 0 1-.625.78L10.5 14.542V18a.5.5 0 0 1-1 0l-.001-3.459-1.687 1.35a.501.501 0 0 1-.625-.782l2.5-2z"}),t.jsx("path",{fillRule:"evenodd",d:"M16.5 8A1.5 1.5 0 0 1 18 9.5v1a1.5 1.5 0 0 1-1.5 1.5h-13A1.5 1.5 0 0 1 2 10.5v-1A1.5 1.5 0 0 1 3.5 8zm-13 1a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h13a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5z",clipRule:"evenodd"}),t.jsx("path",{d:"M10 1.5a.5.5 0 0 1 .5.5l.001 3.459 1.687-1.35a.501.501 0 0 1 .624.782l-2.5 2-.072.048a.5.5 0 0 1-.553-.05l-2.5-1.998a.5.5 0 0 1 .625-.782L9.5 5.46V2a.5.5 0 0 1 .5-.5"})]}),eU=e=>t.jsx(C,{...e,children:t.jsx("path",{d:"M13.5 16a.5.5 0 0 1 0 1h-7a.5.5 0 0 1 0-1zm3-12A1.5 1.5 0 0 1 18 5.5v8a1.5 1.5 0 0 1-1.5 1.5h-13A1.5 1.5 0 0 1 2 13.5v-8A1.5 1.5 0 0 1 3.5 4zm-13 1a.5.5 0 0 0-.5.5v8a.5.5 0 0 0 .5.5h13a.5.5 0 0 0 .5-.5v-8a.5.5 0 0 0-.5-.5z"})}),tU=e=>t.jsxs(C,{...e,children:[t.jsx("path",{fillRule:"evenodd",d:"M8 6a1 1 0 0 1 1 .999V11h4a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1zm1 10h4v-4H9zm-5 0h4v-4H4zm0-5h4V7H4z",clipRule:"evenodd"}),t.jsx("path",{fillRule:"evenodd",d:"M16.103 3.005A1 1 0 0 1 17 4v4l-.005.103a1 1 0 0 1-.893.892L16 9h-4a1 1 0 0 1-.995-.897L11 8V4a1 1 0 0 1 1-1h4zM12 8h4V4h-4z",clipRule:"evenodd"})]}),sU=e=>t.jsx(C,{...e,children:t.jsx("path",{d:"M13.5 3a.5.5 0 1 1 0 1H13v4.344l3.797 5.523c.912 1.327-.038 3.133-1.649 3.133H4.851c-1.61 0-2.56-1.806-1.648-3.133L7 8.344V4h-.5a.5.5 0 0 1 0-1zM4.027 14.434A1 1 0 0 0 4.851 16h10.297a1 1 0 0 0 .825-1.566L14.987 13H5.012zM8 8.5a.5.5 0 0 1-.088.283L5.7 12h8.6l-2.212-3.217A.5.5 0 0 1 12 8.5V4H8z"})}),nU=e=>t.jsx(C,{...e,children:t.jsx("path",{d:"M10 4c4.028 0 6.643 3.306 7.66 4.866l.08.133a2.06 2.06 0 0 1 0 2.002l-.08.133C16.643 12.694 14.028 16 10 16c-3.777 0-6.311-2.906-7.451-4.555l-.21-.311a2.07 2.07 0 0 1 0-2.268l.21-.311C3.689 6.905 6.223 4 10 4m0 1C6.747 5 4.476 7.53 3.38 9.11l-.202.302a1.07 1.07 0 0 0 0 1.176l.203.302C4.476 12.47 6.747 15 10 15c3.47 0 5.822-2.878 6.822-4.412l.077-.14a1.06 1.06 0 0 0 0-.896l-.077-.14C15.822 7.878 13.47 5 10 5m0 2a3 3 0 1 1 0 6 3 3 0 0 1 0-6m0 1a2 2 0 1 0 0 4 2 2 0 0 0 0-4"})}),aU=e=>t.jsx(C,{...e,children:t.jsx("path",{d:"M11.586 2a1.5 1.5 0 0 1 1.06.44l2.914 2.914a1.5 1.5 0 0 1 .44 1.06V16.5a1.5 1.5 0 0 1-1.5 1.5h-9a1.5 1.5 0 0 1-1.492-1.347L4 16.5v-13A1.5 1.5 0 0 1 5.5 2zM5.5 3a.5.5 0 0 0-.5.5v13a.5.5 0 0 0 .5.5h9a.5.5 0 0 0 .5-.5V7h-2.5A1.5 1.5 0 0 1 11 5.5V3zm7.04 10.304a.5.5 0 0 1 .92.392c-.295.69-.871 1.304-1.66 1.304-.487 0-.892-.234-1.2-.574-.309.34-.713.574-1.2.574-.486 0-.892-.233-1.2-.574-.31.34-.714.574-1.2.574a.5.5 0 0 1 0-1c.212 0 .52-.18.74-.696l.034-.067a.5.5 0 0 1 .886.067c.221.516.528.696.74.696.213 0 .52-.18.74-.696l.035-.067a.5.5 0 0 1 .885.067c.22.516.527.696.74.696s.519-.18.74-.696m0-4a.5.5 0 0 1 .92.392c-.295.69-.871 1.304-1.66 1.304-.487 0-.892-.234-1.2-.574-.309.34-.713.574-1.2.574-.486 0-.892-.233-1.2-.574-.31.34-.714.574-1.2.574a.5.5 0 0 1 0-1c.212 0 .52-.18.74-.696l.034-.067a.5.5 0 0 1 .886.067c.221.516.528.696.74.696.213 0 .52-.18.74-.696l.035-.067a.5.5 0 0 1 .885.067c.22.516.527.696.74.696s.519-.18.74-.696M12 5.5a.5.5 0 0 0 .5.5h2.293L12 3.207z"})}),iU=e=>t.jsx(C,{...e,children:t.jsx("path",{fillRule:"evenodd",d:"M5 2.003a2.501 2.501 0 0 1 .5 4.95v6.096a2.5 2.5 0 1 1-1 0V6.953a2.5 2.5 0 0 1 .5-4.95M5 14q-.034-.001-.066-.007l-.031.006a1.502 1.502 0 0 0 .097 3 1.501 1.501 0 0 0 .096-3l-.03-.006Q5.032 13.999 5 14M5 3.003a1.501 1.501 0 0 0-.097 3l.023.003L5 6q.036 0 .072.006l.024-.002A1.502 1.502 0 0 0 5 3.003M15 3a.5.5 0 0 1 0 1h-2.4l2.28 2.606c.4.456.619 1.041.619 1.647v4.796a2.5 2.5 0 1 1-1 0V8.253c0-.364-.132-.715-.371-.989l-2.13-2.432V7.5a.5.5 0 0 1-1 0v-4a.5.5 0 0 1 .5-.5zm0 11q-.034-.001-.066-.007l-.031.006a1.502 1.502 0 0 0 .097 3 1.501 1.501 0 0 0 .096-3l-.03-.006q-.033.006-.066.007",clipRule:"evenodd"})}),rU=e=>t.jsxs(C,{...e,children:[t.jsx("path",{fillRule:"evenodd",d:"M5 2.003a2.501 2.501 0 0 1 .5 4.95v6.096a2.5 2.5 0 1 1-1 0V6.953a2.5 2.5 0 0 1 .5-4.95M5 14q-.034-.001-.066-.007l-.031.006a1.502 1.502 0 0 0 .097 3 1.501 1.501 0 0 0 .096-3l-.03-.006Q5.032 13.999 5 14M5 3.003a1.501 1.501 0 0 0-.097 3l.023.003L5 6q.036 0 .072.006l.024-.002A1.502 1.502 0 0 0 5 3.003M15 10a.5.5 0 0 1 .5.5v2.549a2.5 2.5 0 1 1-1 0v-2.55a.5.5 0 0 1 .5-.5m0 4q-.034-.001-.066-.007l-.031.006a1.502 1.502 0 0 0 .097 3 1.501 1.501 0 0 0 .096-3l-.03-.006q-.033.006-.066.007",clipRule:"evenodd"}),t.jsx("path",{d:"M17.146 2.646a.5.5 0 0 1 .707.707L15.707 5.5l2.146 2.146a.5.5 0 1 1-.707.707L15 6.207l-2.147 2.146a.5.5 0 1 1-.707-.707L14.293 5.5l-2.147-2.147a.5.5 0 0 1 .707-.707L15 4.793z"})]}),oU=e=>t.jsx(C,{...e,children:t.jsx("path",{d:"M7.27 3.05a7.467 7.467 0 1 1-.018.007l.01-.004zm1.372 11.478a8 8 0 0 0-1.464 1.362 6.53 6.53 0 0 0 3.373.62 6.2 6.2 0 0 1-.969-.835 10 10 0 0 1-.94-1.147m4.515-1.993c-.626.13-1.275.323-1.93.581-.654.258-1.26.56-1.808.892.276.386.555.73.835 1.02.45.468.88.788 1.258.958.376.17.665.178.881.093.218-.085.425-.289.584-.67.16-.383.257-.91.267-1.558a9 9 0 0 0-.087-1.316M3.637 8.52a6.5 6.5 0 0 0 .285 3.876 6.5 6.5 0 0 0 2.433 3.027 9 9 0 0 1 1.772-1.674 16.4 16.4 0 0 1-1.243-2.52 16.5 16.5 0 0 1-.81-2.693 9 9 0 0 1-2.436-.016m12.444 3.864a8 8 0 0 0-2 .003c.07.523.103 1.02.096 1.48a6.2 6.2 0 0 1-.14 1.272 6.53 6.53 0 0 0 2.044-2.755M11.095 6.77c-.607.37-1.271.701-1.98.981s-1.423.49-2.119.633c.165.79.417 1.638.757 2.5s.733 1.653 1.151 2.344c.607-.37 1.272-.701 1.982-.981s1.422-.49 2.117-.634a15.6 15.6 0 0 0-.756-2.499 15.6 15.6 0 0 0-1.152-2.344m2.548-2.194a9 9 0 0 1-1.77 1.674c.457.751.881 1.602 1.243 2.521.362.92.633 1.83.81 2.692a9 9 0 0 1 2.435.016 6.5 6.5 0 0 0-.282-3.875 6.5 6.5 0 0 0-2.436-3.028m-7.681.286a6.53 6.53 0 0 0-2.044 2.753c.603.08 1.279.082 1.999-.002-.07-.523-.1-1.02-.094-1.48a6.2 6.2 0 0 1 .139-1.27m2.526-.85c-.376-.17-.665-.177-.883-.091s-.423.288-.583.669c-.16.383-.256.91-.266 1.557a9 9 0 0 0 .086 1.316c.627-.13 1.276-.321 1.93-.58.655-.257 1.26-.561 1.807-.893a9 9 0 0 0-.833-1.02c-.45-.468-.88-.787-1.258-.957m4.334.096a6.53 6.53 0 0 0-3.372-.62c.328.224.654.506.969.834q.48.5.94 1.147a8 8 0 0 0 1.464-1.362"})}),lU=e=>t.jsx(C,{...e,children:t.jsx("path",{d:"M14.5 2A1.5 1.5 0 0 1 16 3.5v13a1.5 1.5 0 0 1-1.5 1.5H6.375A2.375 2.375 0 0 1 4 15.625V4.375A2.375 2.375 0 0 1 6.375 2zm.5 11.912a1.5 1.5 0 0 1-.5.088H6.375C5.615 14 5 14.616 5 15.375v.25C5 16.385 5.616 17 6.375 17H14.5a.5.5 0 0 0 .5-.5zM6.375 3C5.615 3 5 3.616 5 4.375v9.065c.388-.277.862-.44 1.375-.44H14.5a.5.5 0 0 0 .5-.5v-9a.5.5 0 0 0-.5-.5zM11.5 5A1.5 1.5 0 0 1 13 6.5V11a.5.5 0 0 1-.812.39L10 9.64l-2.187 1.75A.5.5 0 0 1 7 11V6.5A1.5 1.5 0 0 1 8.5 5zm-3 1a.5.5 0 0 0-.5.5v3.459l1.688-1.35.072-.047a.5.5 0 0 1 .553.047L12 9.96V6.5a.5.5 0 0 0-.5-.5z"})}),cU=e=>t.jsx(C,{...e,children:t.jsx("path",{d:"M12.5 17a.5.5 0 0 1 0 1h-5a.5.5 0 0 1 0-1zM10 2a6 6 0 0 1 4.081 10.398l-.242.213c-.512.427-.839.964-.839 1.513V15.5a.5.5 0 0 1-.5.5h-5a.5.5 0 0 1-.5-.5v-1.376c0-.48-.25-.951-.656-1.348l-.183-.165A6 6 0 0 1 10 2m0 1a5 5 0 0 0-3.2 8.843l.237.213c.537.523.963 1.234.963 2.068V15h1.5v-3.793L7.146 8.854l-.064-.079a.5.5 0 0 1 .693-.693l.079.064L10 10.293l2.146-2.147.079-.064a.5.5 0 0 1 .693.693l-.064.079-2.354 2.353V15H12v-.876c0-.953.557-1.746 1.2-2.281l.2-.178A5 5 0 0 0 10 3"})}),dU=e=>t.jsx(C,{...e,children:t.jsx("path",{d:"M4.25 14.25a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5M16.5 15a.5.5 0 0 1 0 1h-8a.5.5 0 0 1 0-1zM4.25 8.75a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5m12.25.75a.5.5 0 0 1 0 1h-8a.5.5 0 0 1 0-1zM4.25 3.25a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5M16.5 4a.5.5 0 0 1 0 1h-8a.5.5 0 0 1 0-1z"})}),uU=e=>t.jsx(C,{...e,children:t.jsx("path",{d:"M14.5 2a.5.5 0 0 1 0 1H13v2h1a4 4 0 0 1 4 4v4.5a1.5 1.5 0 0 1-1.5 1.5H10v2.5a.5.5 0 0 1-1 0V15H3.5q-.078 0-.153-.008A1.5 1.5 0 0 1 2 13.5V9a4 4 0 0 1 4-4h6V2.5l.01-.1a.5.5 0 0 1 .49-.4zM6 6a3 3 0 0 0-3 3v4.5a.5.5 0 0 0 .5.5h5a.5.5 0 0 0 .5-.5V9a3 3 0 0 0-3-3m2.645 0A4 4 0 0 1 10 9v4.5c0 .175-.032.344-.087.5H16.5a.5.5 0 0 0 .5-.5V9a3 3 0 0 0-3-3h-1v4.5a.5.5 0 0 1-1 0V6zM7.5 12a.5.5 0 0 1 0 1h-3a.5.5 0 0 1 0-1z"})}),mU=e=>t.jsx(C,{...e,children:t.jsx("path",{fillRule:"evenodd",d:"M7.5 3A1.5 1.5 0 0 1 9 4.5v11A1.5 1.5 0 0 1 7.5 17h-3A1.5 1.5 0 0 1 3 15.5v-11A1.5 1.5 0 0 1 4.5 3zm-3 1a.5.5 0 0 0-.5.5v11a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-11a.5.5 0 0 0-.5-.5zm11-1A1.5 1.5 0 0 1 17 4.5v11a1.5 1.5 0 0 1-1.5 1.5h-3a1.5 1.5 0 0 1-1.5-1.5v-11A1.5 1.5 0 0 1 12.5 3zm-3 1a.5.5 0 0 0-.5.5v11a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-11a.5.5 0 0 0-.5-.5z",clipRule:"evenodd"})}),pU=e=>t.jsx(C,{...e,children:t.jsx("path",{d:"M13 4.5a.5.5 0 0 0-.5-.5h-5a.5.5 0 0 0-.5.5v3.528c0 .388-.09.77-.264 1.118L5.31 12h9.382l-1.428-2.854A2.5 2.5 0 0 1 13 8.028zm1 3.528c0 .233.054.462.158.67l1.428 2.855A1 1 0 0 1 14.69 13H10.5v3.5a.5.5 0 0 1-1 0V13H5.31a1 1 0 0 1-.895-1.447l1.427-2.855A1.5 1.5 0 0 0 6 8.028V4.5A1.5 1.5 0 0 1 7.5 3h5A1.5 1.5 0 0 1 14 4.5z"})}),fU=e=>t.jsx(C,{...e,children:t.jsx("path",{d:"M10.386 2.51A7.5 7.5 0 1 1 5.499 4H3a.5.5 0 0 1 0-1h3.5a.5.5 0 0 1 .49.402L7 3.5V7a.5.5 0 0 1-1 0V4.879a6.5 6.5 0 1 0 4.335-1.37L10 3.5l-.1-.01a.5.5 0 0 1 .1-.99z"})}),gU=e=>t.jsx(C,{...e,children:t.jsx("path",{d:"M8.5 2a6.5 6.5 0 0 1 4.935 10.728l4.419 4.419.064.078a.5.5 0 0 1-.693.693l-.079-.064-4.419-4.42A6.5 6.5 0 1 1 8.5 2m0 1a5.5 5.5 0 1 0 0 11 5.5 5.5 0 0 0 0-11m3.1 3.51A.5.5 0 0 1 12 7v2a.5.5 0 0 1-1 0v-.793l-2.146 2.146a.5.5 0 0 1-.708 0L7 9.208l-1.146 1.146a.5.5 0 1 1-.708-.707l1.5-1.5.079-.064a.5.5 0 0 1 .629.064L8.5 9.293 10.293 7.5H9.5a.5.5 0 0 1 0-1h2z"})}),hU=e=>t.jsx(C,{...e,children:t.jsx("path",{fillRule:"evenodd",d:"M13.5 4A1.5 1.5 0 0 1 15 5.5V7h1.5A1.5 1.5 0 0 1 18 8.5v6a1.5 1.5 0 0 1-1.5 1.5h-10A1.5 1.5 0 0 1 5 14.5V13H3.5A1.5 1.5 0 0 1 2 11.5v-6A1.5 1.5 0 0 1 3.5 4zm-7 4a.5.5 0 0 0-.5.5v6a.5.5 0 0 0 .5.5h10a.5.5 0 0 0 .5-.5v-6a.5.5 0 0 0-.5-.5zm-3-3a.5.5 0 0 0-.5.5v6a.5.5 0 0 0 .5.5H5V8.5A1.5 1.5 0 0 1 6.5 7H14V5.5a.5.5 0 0 0-.5-.5z",clipRule:"evenodd"})}),CU=e=>t.jsx(C,{...e,children:t.jsx("path",{fillRule:"evenodd",d:"M16.5 4A1.5 1.5 0 0 1 18 5.5v9a1.5 1.5 0 0 1-1.5 1.5h-13A1.5 1.5 0 0 1 2 14.5v-9A1.5 1.5 0 0 1 3.5 4zm-10 11h10a.5.5 0 0 0 .5-.5V12H6.5zM3 14.5a.5.5 0 0 0 .5.5h2v-3H3zM6.5 11H17V8.5H6.5zM3 11h2.5V8.5H3zm3.5-3.5H17v-2a.5.5 0 0 0-.5-.5h-10zM3.5 5a.5.5 0 0 0-.5.5v2h2.5V5z",clipRule:"evenodd"})}),xU=e=>t.jsx(C,{...e,children:t.jsx("path",{d:"M6 13.5a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1zm-2 3h2v-2H4zM16.5 15a.5.5 0 0 1 0 1h-7a.5.5 0 1 1 0-1zM6 8a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1zm-2 3h2V9H4zm12.5-1.5a.5.5 0 0 1 0 1h-7a.5.5 0 1 1 0-1zM6.126 2.918a.5.5 0 0 1 .748.664l-2.218 2.5a.5.5 0 0 1-.744.004L2.88 4.947l-.06-.082a.5.5 0 0 1 .725-.658l.075.068.657.725zM16.5 4a.5.5 0 0 1 0 1h-7a.5.5 0 0 1 0-1z"})}),vU=e=>t.jsx(C,{...e,children:t.jsx("path",{d:"M10 2.5a7.5 7.5 0 1 1 0 15 7.5 7.5 0 0 1 0-15M10 13c-1.949 0-3.438.43-4.103 1.657l-.122.256-.01.017A6.47 6.47 0 0 0 10 16.5a6.47 6.47 0 0 0 4.233-1.57l-.008-.017-.123-.256C13.439 13.43 11.95 13 10 13m0-9.5a6.5 6.5 0 0 0-4.98 10.676C5.962 12.428 8.006 12 10 12s4.037.429 4.98 2.176A6.5 6.5 0 0 0 10 3.5m0 2a2.75 2.75 0 1 1 0 5.5 2.75 2.75 0 0 1 0-5.5m0 1a1.75 1.75 0 1 0 0 3.5 1.75 1.75 0 0 0 0-3.5"})}),yU=e=>t.jsx(C,{...e,children:t.jsx("path",{d:"M8.517 1.741a4.5 4.5 0 0 1 4.13 2.85l.116.33a4.5 4.5 0 0 1-.956 4.326l2.391 6.071.066.195a2 2 0 0 1-1.007 2.314l-.187.085a2 2 0 0 1-2.508-.941l-.085-.187-2.388-6.06a4.5 4.5 0 0 1-3.675-2.511l-.141-.322a4.5 4.5 0 0 1 1.1-4.923l.046-.04a.5.5 0 0 1 .762.22l1.195 3.035.042.093a1 1 0 0 0 1.255.471l.093-.042c.42-.217.632-.703.504-1.158l-.034-.097-1.191-3.025a.502.502 0 0 1 .472-.684m1.65 3.343.066.193a2 2 0 0 1-1.007 2.316l-.187.085a2 2 0 0 1-2.509-.942l-.085-.186-.89-2.261a3.5 3.5 0 0 0-.352 3.234l.11.251A3.5 3.5 0 0 0 8.18 9.728l.26.012.075.006a.5.5 0 0 1 .386.31l2.506 6.362.042.093a1 1 0 0 0 1.255.47l.094-.042a1 1 0 0 0 .503-1.158l-.032-.097-2.51-6.37a.5.5 0 0 1 .119-.545 3.5 3.5 0 0 0 .928-3.554l-.09-.257A3.5 3.5 0 0 0 9.283 2.84z"})}),bU=e=>t.jsxs(C,{...e,children:[t.jsx("path",{d:"M12.647 6.646a.5.5 0 1 1 .707.708L10.707 10l2.646 2.646a.5.5 0 1 1-.707.707L10 10.708l-2.646 2.646a.5.5 0 1 1-.708-.707L9.293 10 6.646 7.354a.5.5 0 1 1 .708-.708L10 9.293z"}),t.jsx("path",{fillRule:"evenodd",d:"M10 2.5a7.5 7.5 0 1 1 0 15 7.5 7.5 0 0 1 0-15m0 1a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13",clipRule:"evenodd"})]}),kU=e=>t.jsxs(C,{...e,className:x("group",e.className),children:[t.jsxs("g",{className:"group-hover:animate-[look-around_2.4s_ease-in-out_infinite] group-active:animate-none",children:[t.jsx("path",{d:"M6.99951 8.66672C7.5518 8.66672 7.99951 9.11443 7.99951 9.66672C7.9993 10.2188 7.55166 10.6667 6.99951 10.6667C6.44736 10.6667 5.99973 10.2188 5.99951 9.66672C5.99951 9.11443 6.44723 8.66672 6.99951 8.66672Z"}),t.jsx("path",{d:"M12.9995 8.66672C13.5518 8.66672 13.9995 9.11443 13.9995 9.66672C13.9993 10.2188 13.5517 10.6667 12.9995 10.6667C12.4474 10.6667 11.9997 10.2188 11.9995 9.66672C11.9995 9.11443 12.4472 8.66672 12.9995 8.66672Z"})]}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 2C14.326 2.00018 17.9998 5.67403 18 10V17.3123C17.9997 17.5427 17.8411 17.8079 17.6172 17.8623C17.3932 17.9165 17.1614 17.7456 17.0557 17.5408C16.7805 17.007 16.3658 16.5937 16.062 16.2878C15.7793 16.0034 15.4503 15.8338 14.9771 15.8337C14.2092 15.8339 13.4371 16.3862 12.9487 17.53C12.8701 17.7138 12.6887 17.8621 12.4888 17.8623C12.2888 17.8623 12.1076 17.7138 12.0288 17.53C11.5404 16.386 10.7674 15.8339 9.99951 15.8337C9.23161 15.8339 8.45959 16.386 7.97119 17.53C7.89253 17.7138 7.71118 17.8621 7.51123 17.8623C7.31122 17.8623 7.13006 17.7138 7.05127 17.53C6.56296 16.3862 5.78982 15.834 5.02197 15.8337C4.54861 15.8338 4.21974 16.0032 3.93701 16.2878C3.63309 16.5937 3.21952 17.0715 2.94434 17.6055C2.83865 17.8103 2.60589 17.9165 2.38184 17.8623C2.15801 17.8079 2.00033 17.6073 2 17.377V10C2.00018 5.67403 5.67403 2.00018 10 2ZM10 3C6.22631 3.00018 3.00018 6.22631 3 10V15.8633C3.0205 15.8414 3.20696 15.6049 3.22803 15.5837C3.67524 15.1336 4.251 14.8338 5.02197 14.8337C6.03838 14.8341 6.90232 15.4025 7.51025 16.2937C8.11828 15.4018 8.9824 14.8338 9.99951 14.8337C11.0163 14.8338 11.8798 15.4022 12.4878 16.2937C13.0959 15.4018 13.9601 14.8339 14.9771 14.8337C15.7481 14.8338 16.3247 15.1336 16.772 15.5837C16.772 15.5837 16.9796 15.812 17 15.8337V10C16.9998 6.22631 13.7737 3.00018 10 3Z"}),t.jsx("style",{children:"\n      @keyframes look-around {\n        0%,\n        16.6%,\n        100% {\n          transform: translateX(-1.5px) translateY(0);\n        }\n        25%,\n        41.6% {\n          transform: translateX(1.5px) translateY(0);\n        }\n        50%,\n        66.6% {\n          transform: translateX(0) translateY(-1.5px);\n        }\n        75%,\n        91.6% {\n          transform: translateX(0) translateY(0);\n        }\n      }\n    "})]}),wU=e=>t.jsxs(C,{...e,className:x("group",e.className),children:[t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 2C14.4183 2 18 5.58172 18 10V17.333C18 17.6404 17.7899 17.9087 17.4912 17.9814C17.1925 18.0539 16.8824 17.9125 16.7412 17.6396C16.4654 17.1046 16.2278 16.6907 15.9443 16.4053C15.6891 16.1486 15.4011 16.0001 14.9775 16C14.3 16.0002 13.5743 16.4876 13.1016 17.5947C12.9967 17.8403 12.7553 18 12.4883 18C12.2214 17.9998 11.9798 17.8402 11.875 17.5947C11.4021 16.4874 10.6776 16 10 16C9.32238 16 8.59794 16.4874 8.125 17.5947C8.02021 17.8402 7.77857 17.9998 7.51172 18C7.24472 18 7.0033 17.8403 6.89844 17.5947C6.42567 16.4876 5.70001 16.0002 5.02246 16C4.59894 16.0001 4.31088 16.1486 4.05566 16.4053C3.7722 16.6907 3.53456 17.1046 3.25879 17.6396C3.11763 17.9125 2.80745 18.0539 2.50879 17.9814C2.21014 17.9087 2 17.6404 2 17.333V10C2 5.58172 5.58172 2 10 2ZM7 8.66699C6.44772 8.66699 6 9.11471 6 9.66699C6.00021 10.2191 6.44785 10.667 7 10.667C7.55215 10.667 7.99979 10.2191 8 9.66699C8 9.11471 7.55228 8.66699 7 8.66699ZM13 8.66699C12.4477 8.66699 12 9.11471 12 9.66699C12.0002 10.2191 12.4478 10.667 13 10.667C13.5522 10.667 13.9998 10.2191 14 9.66699C14 9.11471 13.5523 8.66699 13 8.66699Z"}),t.jsx("path",{className:"group-hover:animate-[blink_4s_ease-in-out_infinite] opacity-0",fillRule:"evenodd",clipRule:"evenodd",d:"M10 2C14.4183 2 18 5.58172 18 10V17.333C18 17.6404 17.7899 17.9087 17.4912 17.9814C17.1925 18.0539 16.8824 17.9125 16.7412 17.6396C16.4654 17.1046 16.2278 16.6907 15.9443 16.4053C15.6891 16.1486 15.4011 16.0001 14.9775 16C14.3 16.0002 13.5743 16.4876 13.1016 17.5947C12.9967 17.8403 12.7553 18 12.4883 18C12.2214 17.9998 11.9798 17.8402 11.875 17.5947C11.4021 16.4874 10.6776 16 10 16C9.32238 16 8.59794 16.4874 8.125 17.5947C8.02021 17.8402 7.77857 17.9998 7.51172 18C7.24472 18 7.0033 17.8403 6.89844 17.5947C6.42567 16.4876 5.70001 16.0002 5.02246 16C4.59894 16.0001 4.31088 16.1486 4.05566 16.4053C3.7722 16.6907 3.53456 17.1046 3.25879 17.6396C3.11763 17.9125 2.80745 18.0539 2.50879 17.9814C2.21014 17.9087 2 17.6404 2 17.333V10C2 5.58172 5.58172 2 10 2Z"}),t.jsx("style",{children:"\n      @keyframes blink {\n        0%,\n        8% {\n          opacity: 0;\n        }\n        10%,\n        12% {\n          opacity: 1;\n        }\n        14%,\n        30% {\n          opacity: 0;\n        }\n        32%,\n        34% {\n          opacity: 1;\n        }\n        36%,\n        100% {\n          opacity: 0;\n        }\n      }\n    "})]}),MU=e=>t.jsxs(C,{...e,className:x("group",e.className),children:[t.jsx("path",{className:"group-hover:scale-95 origin-center",d:"M15.8198 7C16.6885 7.00025 17.3624 7.73158 17.3178 8.57617L17.2993 8.74707L16.1332 15.7471C16.0126 16.4699 15.3865 16.9996 14.6538 17H5.34711C4.6142 16.9998 3.98833 16.47 3.86762 15.7471L2.7016 8.74707C2.54922 7.83277 3.25418 7 4.18109 7H15.8198ZM4.18109 8C3.87216 8 3.63722 8.27731 3.68793 8.58203L4.85394 15.582C4.89413 15.8229 5.10291 15.9998 5.34711 16H14.6538C14.8978 15.9996 15.1068 15.8228 15.1469 15.582L16.3129 8.58203L16.3188 8.46973C16.3036 8.21259 16.0899 8.00023 15.8198 8H4.18109Z"}),t.jsx("path",{className:"group-hover:-translate-y-[1.4px] group-hover:translate-x-[0.5px] group-hover:rotate-3 transition group-active:translate-y-0",d:"M16.0004 5.5C16.0004 5.224 15.7764 5.00024 15.5004 5H4.50043C4.22428 5 4.00043 5.22386 4.00043 5.5C4.00043 5.77614 4.22428 6 4.50043 6H15.5004C15.7764 5.99976 16.0004 5.776 16.0004 5.5Z"}),t.jsx("path",{className:"group-hover:-translate-y-[2.8px] group-hover:translate-x-px group-hover:rotate-6 transition group-active:translate-y-0",d:"M14.5004 3.5C14.5004 3.224 14.2764 3.00024 14.0004 3H6.00043C5.72428 3 5.50043 3.22386 5.50043 3.5C5.50043 3.77614 5.72428 4 6.00043 4H14.0004C14.2764 3.99976 14.5004 3.776 14.5004 3.5Z"})]});function _U(){const e=S("frontend","chat_suggestion_chips",!1,L);return y("chat_suggestion_chips_enabled")||e}function jU(t){const{mutateAsync:s,enabled:n}=function(){const{activeOrganization:e}=v(),t=y("chat_autocomplete"),s=b(`/api/organizations/${e?.uuid}/dust/chat_autocomplete`,"POST",{enabled:t,onError:()=>{k.warn(w.CHAT_COMPLETION,"Failed to fetch completion")},meta:{noToast:!0}});return{mutateAsync:s.mutateAsync,isPending:s.isPending,isIdle:s.isIdle,enabled:t}}();return{fetchInputAutocompletion:e.useCallback(async e=>{if(!n)return"";return(await s({conversationUuid:t??null,prompt:e})).completion},[s,n,t])}}const SU="command-display-names";function LU(){if("undefined"==typeof window)return{};try{const e=localStorage.getItem(SU);if(!e)return{};const t=JSON.parse(e);return"object"!=typeof t||null===t||Array.isArray(t)?(k.warn(w.CHAT_COMPLETION,"Invalid command name cache shape, clearing"),localStorage.removeItem(SU),{}):t}catch(e){return k.warn(w.CHAT_COMPLETION,"Failed to read command name cache",{error:e}),{}}}function NU(t){const{activeOrganization:s}=v(),n=s?.uuid,a=M(),i=e.useRef(a);i.current=a;const r=e.useRef(LU()),o=e.useMemo(()=>t.filter(e=>!(e.name in r.current)),[t]),l=!!n&&o.length>0,{data:c,isFetching:d,isError:u}=pL({queryKey:["command-display-names",n,t,o.map(e=>e.name).sort()],queryFn:async()=>{const e=await i.current(`/api/organizations/${n}/dust/command_display_names`,{method:"POST",body:JSON.stringify({commands:o.map(e=>({name:e.name,description:e.description,plugin_name:e.pluginName??""}))})});if(!e.ok)throw k.warn(w.CHAT_COMPLETION,"Failed to fetch command display names",{status:e.status,orgUuid:n}),new Error(`Failed to fetch command display names: ${e.status}`);const t=await e.json(),s={};for(const n of t.results)n.display_name&&(s[n.name]=n.display_name,r.current[n.name]=n.display_name);return function(e){try{const t=LU();Object.assign(t,e),localStorage.setItem(SU,JSON.stringify(t))}catch(t){k.warn(w.CHAT_COMPLETION,"Failed to persist command name cache",{error:t})}}(s),t},enabled:l,staleTime:1/0,gcTime:18e5,retry:1,meta:{noToast:!0}});return{displayNames:e.useMemo(()=>{const e=new Map;for(const s of t){const t=r.current[s.name];t&&e.set(s.name,t)}if(c?.results)for(const t of c.results)t.display_name&&e.set(t.name,t.display_name);return e},[t,c]),isSettled:!d&&(!l||!!c||u)}}const IU={}.hasOwnProperty,TU=/^(https?|ircs?|mailto|xmpp)$/i,AU=/^https?$/i;function EU(e,t,s){return"string"!=typeof t&&(s=t,t=void 0),function(e){const t=e||{};let s=!0;const n={},a=[[]],i=[],r=[],o=N([{enter:{blockQuote:function(){r.push(!1),v(),h("<blockquote>")},codeFenced:function(){v(),h("<pre><code"),m("fencesCount",0)},codeFencedFenceInfo:f,codeFencedFenceMeta:f,codeIndented:function(){v(),h("<pre><code>")},codeText:function(){m("inCodeText",!0),h("<code>")},content:function(){m("slurpAllLineEndings",!0)},definition:function(){f(),i.push({})},definitionDestinationString:function(){f(),m("ignoreEncode",!0)},definitionLabelString:f,definitionTitleString:f,emphasis:function(){h("<em>")},htmlFlow:function(){v(),L()},htmlText:L,image:function(){i.push({image:!0}),s=void 0},label:f,link:function(){i.push({})},listItemMarker:function(){p("expectFirstItem")?h(">"):k(),v(),h("<li>"),m("expectFirstItem"),m("lastWasTag")},listItemValue:function(e){if(p("expectFirstItem")){const t=Number.parseInt(this.sliceSerialize(e),10);1!==t&&h(' start="'+y(String(t))+'"')}},listOrdered:function(e){r.push(!e._loose),v(),h("<ol"),m("expectFirstItem",!0)},listUnordered:function(e){r.push(!e._loose),v(),h("<ul"),m("expectFirstItem",!0)},paragraph:function(){r[r.length-1]||(v(),h("<p>")),m("slurpAllLineEndings")},reference:f,resource:function(){f(),i[i.length-1].destination=""},resourceDestinationString:function(){f(),m("ignoreEncode",!0)},resourceTitleString:f,setextHeading:function(){f(),m("slurpAllLineEndings")},strong:function(){h("<strong>")}},exit:{atxHeading:function(){h("</h"+p("headingRank")+">"),m("headingRank")},atxHeadingSequence:function(e){p("headingRank")||(m("headingRank",this.sliceSerialize(e).length),v(),h("<h"+p("headingRank")+">"))},autolinkEmail:function(e){const t=this.sliceSerialize(e);h('<a href="'+E("mailto:"+t)+'">'),C(y(t)),h("</a>")},autolinkProtocol:function(e){const s=this.sliceSerialize(e);h('<a href="'+E(s,t.allowDangerousProtocol?void 0:TU)+'">'),C(y(s)),h("</a>")},blockQuote:function(){r.pop(),v(),h("</blockquote>"),m("slurpAllLineEndings")},characterEscapeValue:_,characterReferenceMarkerHexadecimal:H,characterReferenceMarkerNumeric:H,characterReferenceValue:function(e){const t=this.sliceSerialize(e);C(y(p("characterReferenceType")?R(t,"characterReferenceMarkerNumeric"===p("characterReferenceType")?10:16):D(t))),m("characterReferenceType")},codeFenced:w,codeFencedFence:function(){const e=p("fencesCount")||0;e||(h(">"),m("slurpOneLineEnding",!0)),m("fencesCount",e+1)},codeFencedFenceInfo:function(){h(' class="language-'+g()+'"')},codeFencedFenceMeta:b,codeFlowValue:function(e){C(y(this.sliceSerialize(e))),m("flowCodeSeenData",!0)},codeIndented:w,codeText:function(){m("inCodeText"),h("</code>")},codeTextData:_,data:_,definition:function(){const e=i[i.length-1],t=A(e.labelId);g(),IU.call(n,t)||(n[t]=i[i.length-1]),i.pop()},definitionDestinationString:function(){i[i.length-1].destination=g(),m("ignoreEncode")},definitionLabelString:function(e){g(),i[i.length-1].labelId=this.sliceSerialize(e)},definitionTitleString:function(){i[i.length-1].title=g()},emphasis:function(){h("</em>")},hardBreakEscape:j,hardBreakTrailing:j,htmlFlow:S,htmlFlowData:_,htmlText:S,htmlTextData:_,image:M,label:function(){i[i.length-1].label=g()},labelText:function(e){i[i.length-1].labelId=this.sliceSerialize(e)},lineEnding:function(e){p("slurpAllLineEndings")||(p("slurpOneLineEnding")?m("slurpOneLineEnding"):p("inCodeText")?C(" "):C(y(this.sliceSerialize(e))))},link:M,listOrdered:function(){k(),r.pop(),x(),h("</ol>")},listUnordered:function(){k(),r.pop(),x(),h("</ul>")},paragraph:function(){r[r.length-1]?m("slurpAllLineEndings",!0):h("</p>")},reference:b,referenceString:function(e){i[i.length-1].referenceId=this.sliceSerialize(e)},resource:b,resourceDestinationString:function(){i[i.length-1].destination=g(),m("ignoreEncode")},resourceTitleString:function(){i[i.length-1].title=g()},setextHeading:function(){const e=g();v(),h("<h"+p("headingRank")+">"),C(e),h("</h"+p("headingRank")+">"),m("slurpAllLineEndings"),m("headingRank")},setextHeadingLineSequence:function(e){m("headingRank",61===this.sliceSerialize(e).charCodeAt(0)?1:2)},setextHeadingText:function(){m("slurpAllLineEndings",!0)},strong:function(){h("</strong>")},thematicBreak:function(){v(),h("<hr />")}}},...t.htmlExtensions||[]]),l={definitions:n,tightStack:r},c={buffer:f,encode:y,getData:p,lineEndingIfNeeded:v,options:t,raw:C,resume:g,setData:m,tag:h};let d=t.defaultLineEnding;return function(e){let t=-1,s=0;const n=[];let i=[],r=[];for(;++t<e.length;)d||"lineEnding"!==e[t][1].type&&"lineEndingBlank"!==e[t][1].type||(d=e[t][2].sliceSerialize(e[t][1])),"listOrdered"!==e[t][1].type&&"listUnordered"!==e[t][1].type||("enter"===e[t][0]?n.push(t):u(e.slice(n.pop(),t))),"definition"===e[t][1].type&&("enter"===e[t][0]?(r=I(r,e.slice(s,t)),s=t):(i=I(i,e.slice(s,t+1)),s=t+1));i=I(i,r),i=I(i,e.slice(s)),t=-1;const l=i;for(o.enter.null&&o.enter.null.call(c);++t<e.length;){const e=o[l[t][0]],s=l[t][1].type,n=e[s];IU.call(e,s)&&n&&n.call({sliceSerialize:l[t][2].sliceSerialize,...c},l[t][1])}return o.exit.null&&o.exit.null.call(c),a[0].join("")};function u(e){const t=e.length;let s,n=0,a=0,i=!1;for(;++n<t;){const t=e[n];if(t[1]._container)s=void 0,"enter"===t[0]?a++:a--;else switch(t[1].type){case"listItemPrefix":"exit"===t[0]&&(s=!0);break;case"linePrefix":break;case"lineEndingBlank":"enter"!==t[0]||a||(s?s=void 0:i=!0);break;default:s=void 0}}e[0][1]._loose=i}function m(e,t){l[e]=t}function p(e){return l[e]}function f(){a.push([])}function g(){return a.pop().join("")}function h(e){s&&(m("lastWasTag",!0),a[a.length-1].push(e))}function C(e){m("lastWasTag"),a[a.length-1].push(e)}function x(){C(d||"\n")}function v(){const e=a[a.length-1],t=e[e.length-1],s=t?t.charCodeAt(t.length-1):null;10!==s&&13!==s&&null!==s&&x()}function y(e){return p("ignoreEncode")?e:T(e)}function b(){g()}function k(){p("lastWasTag")&&!p("slurpAllLineEndings")&&v(),h("</li>"),m("slurpAllLineEndings")}function w(){const e=p("fencesCount");void 0!==e&&e<2&&l.tightStack.length>0&&!p("lastWasTag")&&x(),p("flowCodeSeenData")&&v(),h("</code></pre>"),void 0!==e&&e<2&&v(),m("flowCodeSeenData"),m("fencesCount"),m("slurpOneLineEnding")}function M(){let e=i.length-1;const a=i[e],r=a.referenceId||a.labelId,o=void 0===a.destination?n[A(r)]:a;for(s=!0;e--;)if(i[e].image){s=void 0;break}a.image?(h('<img src="'+E(o.destination,t.allowDangerousProtocol?void 0:AU)+'" alt="'),C(a.label),h('"')):h('<a href="'+E(o.destination,t.allowDangerousProtocol?void 0:TU)+'"'),h(o.title?' title="'+o.title+'"':""),a.image?h(" />"):(h(">"),C(a.label),h("</a>")),i.pop()}function _(e){C(y(this.sliceSerialize(e)))}function j(){h("<br />")}function S(){m("ignoreEncode")}function L(){t.allowDangerousHtml&&m("ignoreEncode",!0)}function H(e){m("characterReferenceType",e.type)}}(s)(H(P(s).document().write(U()(e,t,!0))))}const RU={none:"",left:' align="left"',right:' align="right"',center:' align="center"'};function DU(e,t){return"|"===t?t:e}let HU=null;const PU=V();function UU(e){return PU.subscribe(e)}function OU(e,t){return`${t}:${e.accountUuid}`}function FU(e,t){return null!==HU&&HU.key===OU(e,t)?HU:null}function VU(e){return performance.now()-e.signedAtMs<=3e4&&Math.abs(Date.now()-Date.parse(e.attestation.issuedAt))<=3e4}function zU(e,t,s,n){const a=n.enroll?e.ensureRegistered(t,s).then(()=>e.signCreateSessionBind(s)):e.signCreateSessionBind(s),i={kind:"pending",promise:a,taken:n.taken},r={key:OU(e,s),handle:e,state:i};return HU=r,a.then(t=>{HU===r&&(HU=i.taken?null:{key:r.key,handle:e,state:{kind:"ready",attestation:t,signedAtMs:performance.now()}},PU.notify())},t=>{t instanceof O||F(new Error(t instanceof Error?t.name:String(typeof t)),{source:"cowork_bind_presign_failed"}),HU===r&&(HU={key:r.key,handle:e,state:{kind:t instanceof O?"blocked":"unavailable"}},PU.notify())}),PU.notify(),r}function ZU(e,t){if(!e||!t)return"idle";const s=FU(e,t);if(null===s)return"idle";const n=s.state;return"ready"!==n.kind||VU(n)?n.kind:"ready"}function BU(e,t,s,n){const a=FU(e,s);if(null===a){return{kind:"promise",promise:qU(zU(e,t,s,{enroll:!0,taken:!0}))}}const i=a.state;switch(i.kind){case"blocked":return{kind:"blocked"};case"unavailable":if(n?.retryUnavailable){return{kind:"promise",promise:qU(zU(e,t,s,{enroll:!0,taken:!0}))}}return{kind:"unavailable"};case"pending":if(!i.taken)return i.taken=!0,{kind:"promise",promise:i.promise};return{kind:"promise",promise:qU(zU(e,t,s,{enroll:!1,taken:!0}))};case"ready":if(!VU(i)){return{kind:"promise",promise:qU(zU(e,t,s,{enroll:!1,taken:!0}))}}return HU=null,PU.notify(),{kind:"attestation",attestation:i.attestation}}}function qU(e){return"pending"===e.state.kind?e.state.promise:Promise.reject(new Error("pendingPromise: not pending"))}z(function(e){const t=e.slice(e.indexOf(":")+1);null!==HU&&HU.key.slice(HU.key.indexOf(":")+1)===t&&"blocked"!==HU.state.kind&&(HU={...HU,state:{kind:"blocked"}},PU.notify())}),Z(function(e){const t=e.slice(e.indexOf(":")+1);null!==HU&&HU.key.slice(HU.key.indexOf(":")+1)===t&&"blocked"===HU.state.kind&&(HU=null,PU.notify())});const WU=e=>{const{activeOrganization:t}=v(),s=t?.uuid,{canUseByoc:n}=(()=>{const{applicationType:e}=$(),t=y("console_fenugreek"),s=y("claude_ai_jalapenos");return{canUseByoc:t||"claude-dot"===e&&s}})(),a=W("console_sumac");return{"anthropic-version":"2023-06-01","anthropic-beta":n||!a?"environments-2026-03-01,environments-package-support-2025-12-09":a,...s?{"x-organization-uuid":s}:{},...e?{"x-workspace-id":e}:{}}},$U=({enabled:e=!0,includeArchived:t=!1,workspaceId:s,limit:n,page:a,refetchInterval:i=!1}={})=>{const{activeOrganization:r}=v(),o=r?.uuid,l=WU(s),c=new URLSearchParams;t&&c.set("include_archived","true"),void 0!==n&&c.set("limit",String(n)),a&&c.set("page",a);const d=c.toString();return B("/v1/environments"+(d?`?${d}`:""),{queryKey:[q,{orgUuid:o,includeArchived:t,workspaceId:s,limit:n,page:a}],enabled:Boolean(o)&&e,staleTime:6e4,placeholderData:fL,meta:{noToast:!0},refetchInterval:i,headers:l})},GU=e=>{const{activeOrganization:t}=v(),s=t?.uuid,n=gL(),a=WU(e?.workspaceId);return b("/v1/environments","POST",{onSuccess:t=>{n.invalidateQueries({queryKey:[q,{orgUuid:s,workspaceId:e?.workspaceId}]}),e?.onSuccess?.(t)},onError:e?.onError,headers:a})},KU=(e,t)=>{const{activeOrganization:s}=v(),n=s?.uuid,a=gL(),i=WU(t?.workspaceId);return b(e?`/v1/environments/${e}/archive`:"","POST",{onSuccess:e=>{a.invalidateQueries({queryKey:[q,{orgUuid:n,workspaceId:t?.workspaceId}]}),t?.onSuccess?.(e)},onError:t?.onError,headers:i})},YU=(e,t)=>{const{activeOrganization:s}=v(),n=s?.uuid,a=gL(),i=WU(t?.workspaceId);return b(({force:t}={})=>e?`/v1/environments/${e}${t?"?force=true":""}`:"","DELETE",{onSuccess:()=>{a.invalidateQueries({queryKey:[q,{orgUuid:n,workspaceId:t?.workspaceId}]}),t?.onSuccess?.()},onError:t?.onError,headers:i})},QU=(e,t={})=>{const{enabled:s=!0,workspaceId:n,refetchInterval:a=!1}=t,{activeOrganization:i}=v(),r=i?.uuid,o=WU(n);return B(`/v1/environments/${e}/work/stats`,{queryKey:["environment_work_stats",{orgUuid:r,environmentId:e}],enabled:Boolean(r)&&Boolean(e)&&s,staleTime:1e4,meta:{noToast:!0},refetchInterval:a,headers:o})},JU="environment_tokens",XU=(e,t)=>{const{activeOrganization:s}=v(),n=s?.uuid,a=gL(),i=t.workspaceId&&"default"!==t.workspaceId?`/workspaces/${t.workspaceId}`:"";return b(`/api/oauth/organizations/${n}${i}/environments/${e}/tokens`,"POST",{enabled:Boolean(n)&&Boolean(e),onSuccess:s=>{a.invalidateQueries({queryKey:[JU,{orgUuid:n,environmentId:e,workspaceId:t.workspaceId}]}),t.onSuccess?.(s)},onError:t.onError})},eO=(e,t)=>{const{enabled:s=!0,workspaceId:n}=t,{activeOrganization:a}=v(),i=a?.uuid;return B(`/api/oauth/organizations/${i}${n&&"default"!==n?`/workspaces/${n}`:""}/environments/${e}/tokens`,{queryKey:[JU,{orgUuid:i,environmentId:e,workspaceId:n}],enabled:Boolean(i)&&Boolean(e)&&s,staleTime:6e4,meta:{noToast:!0}})},tO=(e,t)=>{const{activeOrganization:s}=v(),n=s?.uuid,a=gL(),i=t.workspaceId&&"default"!==t.workspaceId?`/workspaces/${t.workspaceId}`:"";return b(({tokenId:t})=>`/api/oauth/organizations/${n}${i}/environments/${e}/tokens/${t}/revoke`,"POST",{enabled:Boolean(n)&&Boolean(e),onSuccess:s=>{a.invalidateQueries({queryKey:[JU,{orgUuid:n,environmentId:e,workspaceId:t.workspaceId}]}),t.onSuccess?.(s)},onError:t.onError})},sO=3e4;function nO(t=!0,s){const{data:n,isLoading:a}=(({enabled:e=!0,limit:t=100,refetchInterval:s=!1,includedWorkerTypes:n}={})=>{const{activeOrganization:a}=v(),i=a?.uuid,r=new URLSearchParams({limit:String(t)});for(const l of n??[])r.append("included_worker_types",l);const o=`/v1/environment_providers/private/organizations/${i}/environments?${r.toString()}`;return B(o,{queryKey:[q,"private",{orgUuid:i,limit:t,includedWorkerTypes:n}],enabled:Boolean(i)&&e,staleTime:6e4,refetchInterval:s,meta:{noToast:!0}})})({enabled:t,includedWorkerTypes:["cowork"],refetchInterval:s}),i=e.useMemo(()=>n?.environments?.filter(e=>"bridge"===e.kind&&"/cowork"===e.bridge_info?.directory)??[],[n?.environments]),[r,o]=e.useReducer((e,t)=>{const s=t.filter(t=>!e.has(t.environment_id));if(0===s.length)return e;const n=new Set(e);for(const a of s)n.add(a.environment_id);return n},new Set);return e.useEffect(()=>{i.length&&o(i)},[i]),{allCoworkEnvironments:i,coworkEnvironmentIds:r,isLoading:a}}function aO(e=!0){return nO(e,!1).coworkEnvironmentIds}function iO(t=!0){const{allCoworkEnvironments:s,isLoading:n}=nO(t,3e4),a=G(t,{tags:["cowork-dispatch-local"]});K(a,5);const{data:i,isLoading:r}=a,o=e.useMemo(()=>{if(!s.length)return null;return[...s].sort((e,t)=>{const s=e.bridge_info?.online??!1;return s!==(t.bridge_info?.online??!1)?s?-1:1:t.created_at.localeCompare(e.created_at)})[0]},[s]),l=e.useMemo(()=>o?i?.data.find(e=>e.environment_id===o.environment_id&&"archived"!==e.session_status)??null:null,[i?.data,o]),{data:c}=Y(l?.id??"",{enabled:!!l,refetchInterval:15e3}),d=c?Q(c).connection_status:void 0,u=e.useMemo(()=>o?void 0!==d?"connected"===d:void 0:!!n&&void 0,[o,n,d]);return{environmentId:o?.environment_id??null,sessionId:l?.id??null,session:l,machineName:o?.bridge_info?.machine_name??void 0,isOnline:u,isLoading:n||r,allCoworkEnvironments:s}}const rO=new Map;function oO(e,t){e&&(!function(e){return Object.values(e.selections).some(e=>e.length>0)||Object.values(e.rankings).some(e=>e.length>0)||Object.values(e.customTexts).some(e=>e.trim().length>0)}(t)?rO.delete(e):rO.set(e,t))}const lO=e.createContext(!0),cO={selections:{},rankings:{},customTexts:{}},dO=e.createContext({data:null,setData:()=>{},currentQuestionIndex:0,setCurrentQuestionIndex:()=>{},state:cO,toggleOption:()=>{},selectSingleOption:()=>{},reorderRanking:()=>{},submitAnswers:()=>{},clearAll:()=>{},isMinimized:!1,minimize:()=>{},expand:()=>{},bannerRef:{current:null},focusBanner:()=>{},getCustomText:()=>"",setCustomText:()=>{},submitCustomText:()=>{},submitFreeformAnswer:()=>{},setOnSubmitOverride:()=>{},setOnDismissOverride:()=>{},skipQuestion:()=>{},dismiss:()=>{},clearCurrentQuestion:()=>{}});function uO(){return e.useContext(dO)}function mO(e,t){return t.map(t=>e.options.find(e=>e.id===t)?.label).filter(Boolean)}function pO(e,t,s){const n={};for(const a of e.questions){const e=mO(a,s&&s.questionId===a.id?[s.optionId]:t.selections[a.id]||[]),i=t.customTexts[a.id];i?.trim()&&e.push(i.trim()),1===e.length?n[a.question]=e[0]:e.length>1&&(n[a.question]=e)}return n}function fO(e,t){return t.map((t,s)=>{const n=e.options.find(e=>e.id===t)?.label;return n?`${s+1}. ${n}`:null}).filter(Boolean).join(", ")}function gO(e,t){return e[t]!==ee?e:{...e,[t]:""}}const hO=e.memo(function({children:s,draftKey:n,initialQuestionIndex:a=0}){const[i,r]=e.useState(null),[o,l]=e.useState(cO),[c,d]=e.useState(!1),[u,m]=e.useState(a),p=e.useRef(a),{sendTransparentMessage:f}=J(),{approvePending:g}=X(),h=JS(),C=e.useRef(null),x=e.useRef(null),v=e.useRef(null),y=e.useRef(null),b=e.useCallback(e=>{x.current=e},[]),k=e.useCallback(e=>{v.current=e},[]),w=e.useCallback(()=>{C.current?.focus()},[]),M=e.useCallback(e=>{if(null===e&&null!==y.current&&g?.("cleared"),!wT(e,y.current)&&(y.current=e,r(e),e)){d(!1),m(p.current);const t={};for(const n of e.questions)"rank_priorities"===n.type&&(t[n.id]=n.options.map(e=>e.id));const s=function(e){if(e)return rO.get(e)}(n);l({selections:s?.selections??{},rankings:{...t,...s?.rankings},customTexts:s?.customTexts??{}})}},[g,n]),_=e.useCallback(()=>{var e;g?.("cleared"),y.current=null,r(null),l(cO),d(!1),m(0),(e=n)&&rO.delete(e)},[g,n]);e.useLayoutEffect(()=>{n&&i&&oO(n,{selections:o.selections,rankings:o.rankings,customTexts:o.customTexts})},[n,i,o]);const j=e.useCallback(()=>{d(!0)},[]),S=e.useCallback(()=>{d(!1)},[]),L=e.useCallback((e,t)=>{l(s=>{const n=s.selections[e]||[],a=n.includes(t);return{...s,selections:{...s.selections,[e]:a?n.filter(e=>e!==t):[...n,t]},customTexts:gO(s.customTexts,e)}})},[]),N=e.useCallback(e=>{const t=o.customTexts[e]||"";return t===ee?"":t},[o.customTexts]),I=e.useCallback((e,t)=>{const s=i?.questions.find(t=>t.id===e),n="multi_select"!==s?.type&&"rank_priorities"!==s?.type;l(s=>({...s,selections:n&&t.trim()?{...s.selections,[e]:[]}:s.selections,customTexts:{...s.customTexts,[e]:t}}))},[i]),T=e.useCallback((e,t)=>{if(!i)return;const s=t??o,n=[];for(const a of i.questions){const t=a.type||"single_select",i=s.customTexts[a.id]?.trim()||"";if("rank_priorities"!==t||i===ee){const r=mO(a,e&&e.questionId===a.id?[e.optionId]:s.selections[a.id]||[]);if(i&&r.push(i),r.length>0){const e=r.join(", ");"multi_select"===t?n.push(h.formatMessage({defaultMessage:"Q: {questionText} (Select all that apply)\nA: {selection}",id:"RjpojfHP/k"},{questionText:a.question,selection:e})):n.push(h.formatMessage({defaultMessage:"Q: {questionText}\nA: {selection}",id:"vzWcxq6LZw"},{questionText:a.question,selection:e}))}}else if("rank_priorities"===t){const e=fO(a,s.rankings[a.id]||[]);n.push(h.formatMessage({defaultMessage:"Q: {questionText}\nA: Ranked: {ranking}",id:"XzDHJUSy7x"},{questionText:a.question,ranking:e}))}}n.length>0&&(_(),f?.(n.join("\n\n"),{elicitationAnswer:!0}))},[i,o,_,f,h]),A=e.useCallback((e,t)=>{if(!i)return;const s=i.questions.find(t=>t.id===e);if(!s)return;const n="multi_select"!==s.type&&"rank_priorities"!==s.type,a=1===i.questions.length,r=u===i.questions.length-1;if(n&&(a||r)||l(s=>({...s,selections:{...s.selections,[e]:[t]},customTexts:{...s.customTexts,[e]:""}})),n){const n={...o,customTexts:{...o.customTexts,[e]:""}},l=s.options.find(e=>e.id===t);if(a||r){if(x.current&&i){const s=pO(i,n,{questionId:e,optionId:t});return x.current(s),void _()}g?.(l?.label??t)}a?l&&(_(),f?.(h.formatMessage({defaultMessage:"Q: {question}\nA: {option}",id:"+a/6A0wnmw"},{question:s.question,option:l.label}),{elicitationAnswer:!0})):r&&T({questionId:e,optionId:t},n)}},[i,o,u,_,f,h,T,g]),E=e.useCallback((e,t,s)=>{l(n=>{const a=[...n.rankings[e]||[]],[i]=a.splice(t,1);return a.splice(s,0,i),{...n,rankings:{...n.rankings,[e]:a},customTexts:gO(n.customTexts,e)}})},[]),R=e.useCallback(()=>{if(!i)return;if(g?.("submit"),x.current){const e=pO(i,o);return x.current(e),void _()}const e=[];for(const t of i.questions){const s=t.type||"single_select",n=o.customTexts[t.id]?.trim()||"";if("rank_priorities"!==s||n===ee){const a=mO(t,o.selections[t.id]||[]);if(n&&a.push(n),a.length>0){const n=a.join(", ");"multi_select"===s?e.push(h.formatMessage({defaultMessage:"Q: {questionText} (Select all that apply)\nA: {selection}",id:"RjpojfHP/k"},{questionText:t.question,selection:n})):e.push(h.formatMessage({defaultMessage:"Q: {questionText}\nA: {selection}",id:"vzWcxq6LZw"},{questionText:t.question,selection:n}))}}else if("rank_priorities"===s){const s=fO(t,o.rankings[t.id]||[]);e.push(h.formatMessage({defaultMessage:"Q: {questionText}\nA: Ranked: {ranking}",id:"XzDHJUSy7x"},{questionText:t.question,ranking:s}))}}e.length>0&&(_(),f?.(e.join("\n\n"),{elicitationAnswer:!0}))},[i,o,_,f,h,g]),D=e.useCallback(()=>{if(!i)return;const e=i.questions[u]?.id;if(e?o.customTexts[e]?.trim():""){if(g?.("custom_text"),x.current){const e=pO(i,o);return x.current(e),void _()}T()}},[i,u,o,T,_,g]),H=e.useCallback(e=>{const t=e.trim();i&&t&&(g?.("custom_text"),x.current?x.current(t):f?.(t,{elicitationAnswer:!0}),_())},[i,_,f,g]),P=e.useCallback(()=>{if(!i)return;const e=i.questions[u]?.id;if(!e)return;const t=u===i.questions.length-1;if(l(t=>({...t,selections:{...t.selections,[e]:[]},customTexts:{...t.customTexts,[e]:ee}})),!t)return void m(u+1);g?.("skip");const s={...o,selections:{...o.selections,[e]:[]},customTexts:{...o.customTexts,[e]:ee}};if(x.current){const e=pO(i,s);for(const t of i.questions)t.question in e||(e[t.question]=ee);return x.current(e),void _()}T(void 0,s)},[i,o,u,_,T,g]),U=e.useCallback(()=>{if(i){if(g?.("dismiss"),v.current)v.current();else if(x.current){const e={};for(const t of i.questions)e[t.question]=te;x.current(e)}else f?.(te,{elicitationAnswer:!0,suppressPromptRecovery:!0});_()}},[i,_,f,g]),O=e.useCallback(()=>{if(!i)return;const e=i.questions[u]?.id;e&&l(t=>({...t,selections:{...t.selections,[e]:[]},customTexts:{...t.customTexts,[e]:""}}))},[i,u]),F=e.useMemo(()=>({data:i,setData:M,currentQuestionIndex:u,setCurrentQuestionIndex:m,state:o,toggleOption:L,selectSingleOption:A,reorderRanking:E,submitAnswers:R,clearAll:_,isMinimized:c,minimize:j,expand:S,bannerRef:C,focusBanner:w,getCustomText:N,setCustomText:I,submitCustomText:D,submitFreeformAnswer:H,setOnSubmitOverride:b,setOnDismissOverride:k,skipQuestion:P,dismiss:U,clearCurrentQuestion:O}),[i,M,u,o,L,A,E,R,_,c,j,S,w,N,I,D,H,b,k,P,U,O]);return t.jsx(dO.Provider,{value:F,children:s})});hO.displayName="AskUserInputProvider";const CO=e.memo(function({question:s,customText:n,onCustomTextChange:a,onCustomTextSubmit:i,customInputRef:r,isLastQuestion:o,onAdvanceToNext:l,onSkip:c}){const d=JS(),u=e.useContext(lO),m=n.trim().length>0,p=e.useCallback(e=>{r.current=e},[r]),f=e.useCallback(e=>{if(e.nativeEvent.isComposing)e.stopPropagation();else if("Escape"!==e.key&&"Tab"!==e.key)if("Enter"!==e.key||!e.metaKey&&!e.ctrlKey&&s.multiline)e.stopPropagation();else{if(e.preventDefault(),e.stopPropagation(),!m)return;o?i():l()}},[m,s.multiline,o,i,l]),g=s.placeholder||d.formatMessage({defaultMessage:"Type your answer",id:"qJ10nmAali"}),h="w-full bg-transparent text-sm text-primary placeholder:text-muted outline-none ring-0 border-0 shadow-none focus:ring-0 focus:!outline-none focus:border-0 focus:shadow-none",C=t.jsxs(t.Fragment,{children:[c&&t.jsx(rN,{size:"sm","data-widget-action":!0,onClick:e=>{e.stopPropagation(),c()},children:t.jsx(XS,{defaultMessage:"Skip",id:"/4tOwTiCH6"})}),t.jsx(rN,{variant:o?"brand":"primary",iconOnly:!0,size:"sm",icon:o?"ArrowUp":"ArrowRight","data-widget-action":!0,disabled:!m,onClick:e=>{e.stopPropagation(),o?i():l()},"aria-label":o?d.formatMessage({defaultMessage:"Submit",id:"wSZR47Y5kj"}):d.formatMessage({defaultMessage:"Next",id:"9+DdtuCqLw"})})]});return s.multiline?t.jsxs("div",{className:"flex flex-col gap-2 pl-5 pr-3 pb-3 pt-1",children:[t.jsx("textarea",{ref:p,autoFocus:u,value:n,onChange:e=>a(e.target.value),onKeyDown:f,placeholder:g,"aria-label":s.question,rows:2,className:`${h} resize-none [field-sizing:content] min-h-[3rem] max-h-48 overflow-y-auto`}),t.jsx("div",{className:"flex items-center justify-end gap-2",children:C})]}):t.jsxs("div",{className:"flex items-center gap-2 pl-5 pr-3 pb-3 pt-1 min-h-[3rem]",children:[t.jsx("input",{ref:p,autoFocus:u,type:"text",value:n,onChange:e=>a(e.target.value),onKeyDown:f,placeholder:g,"aria-label":s.question,className:`${h} flex-1 min-w-0`}),C]})});function xO(e=!1){const t="group/row flex w-full items-center gap-2.5 h-11 compact:h-9 px-2.5 compact:px-2 text-left cursor-pointer rounded-xl";return e?`${t} bg-alpha-1`:t}function vO(e){return"relative flex size-7 compact:size-6 shrink-0 items-center justify-center rounded-lg overflow-hidden "+(e?"bg-alpha-2":"bg-alpha-1")}const yO=e.memo(({option:e,index:s,variant:n,id:a,role:i,"aria-selected":r,managedFocus:o=!1,isSelected:l=!1,isFocused:c=!1,isLastQuestion:d=!0,onClick:u,onHover:m,isDragging:p=!1,sortableRef:f,sortableStyle:g,sortableAttributes:h,sortableListeners:C})=>{const x=c,v="multi-select"===n?t.jsx("div",{className:"flex size-[30px] compact:size-6 shrink-0 items-center justify-center","aria-hidden":!0,children:t.jsx("span",{"data-size":"sm",className:"flex size-[var(--cds-checkbox)] items-center justify-center rounded-[var(--cds-checkbox-radius)] "+(l?"bg-fill-accent text-on-accent":"border border-strong"),children:l&&t.jsx($L,{name:"Check",size:"xs"})})}):t.jsx("span",{className:vO(x),children:t.jsx("span",{className:"text-sm "+(x?"text-primary":"text-muted"),children:s+1})}),y=t.jsx("span",{className:"flex-1 min-w-0 text-sm truncate "+(x?"text-primary":"text-secondary"),children:e.label}),b="rank"===n?t.jsx($L,{name:"Reorder",size:"md",className:"text-muted shrink-0"}):x&&"single-select"===n?t.jsx("span",{className:"text-muted text-sm shrink-0 mr-2","aria-hidden":!0,children:d?"\u23ce":"\u2192"}):null;return"rank"===n?t.jsxs("div",{ref:f,style:g,...h,...C,onClick:u,onMouseEnter:()=>m?.(!0),onMouseLeave:()=>m?.(!1),className:`${xO(x)} hover:cursor-grab active:cursor-grabbing touch-none select-none ${p?"opacity-50 shadow-lg z-10":""}`,children:[v,y,b]}):t.jsxs("button",{type:"button",id:a,role:i,"aria-selected":r,tabIndex:o?-1:void 0,onClick:u,onMouseMove:m?()=>m(!0):void 0,className:`${xO(x)} !outline-none transition-transform duration-100 active:scale-[0.99]`,children:[v,y,b]})});yO.displayName="OptionItem";const bO="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function kO(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function wO(e){return"nodeType"in e}function MO(e){var t,s;return e?kO(e)?e:wO(e)&&null!=(t=null==(s=e.ownerDocument)?void 0:s.defaultView)?t:window:window}function _O(e){const{Document:t}=MO(e);return e instanceof t}function jO(e){return!kO(e)&&e instanceof MO(e).HTMLElement}function SO(e){return e instanceof MO(e).SVGElement}function LO(e){return e?kO(e)?e.document:wO(e)?_O(e)?e:jO(e)||SO(e)?e.ownerDocument:document:document:document}const NO=bO?e.useLayoutEffect:e.useEffect;function IO(t){const s=e.useRef(t);return NO(()=>{s.current=t}),e.useCallback(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return null==s.current?void 0:s.current(...t)},[])}function TO(t,s){void 0===s&&(s=[t]);const n=e.useRef(t);return NO(()=>{n.current!==t&&(n.current=t)},s),n}function AO(t,s){const n=e.useRef();return e.useMemo(()=>{const e=t(n.current);return n.current=e,e},[...s])}function EO(t){const s=IO(t),n=e.useRef(null),a=e.useCallback(e=>{e!==n.current&&(null==s||s(e,n.current)),n.current=e},[]);return[n,a]}function RO(t){const s=e.useRef();return e.useEffect(()=>{s.current=t},[t]),s.current}let DO={};function HO(t,s){return e.useMemo(()=>{if(s)return s;const e=null==DO[t]?0:DO[t]+1;return DO[t]=e,t+"-"+e},[t,s])}function PO(e){return function(t){for(var s=arguments.length,n=new Array(s>1?s-1:0),a=1;a<s;a++)n[a-1]=arguments[a];return n.reduce((t,s)=>{const n=Object.entries(s);for(const[a,i]of n){const s=t[a];null!=s&&(t[a]=s+e*i)}return t},{...t})}}const UO=PO(1),OO=PO(-1);function FO(e){if(!e)return!1;const{KeyboardEvent:t}=MO(e.target);return t&&e instanceof t}function VO(e){if(function(e){if(!e)return!1;const{TouchEvent:t}=MO(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:s}=e.touches[0];return{x:t,y:s}}if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:s}=e.changedTouches[0];return{x:t,y:s}}}return function(e){return"clientX"in e&&"clientY"in e}(e)?{x:e.clientX,y:e.clientY}:null}const zO=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:s}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(s?Math.round(s):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:s}=e;return"scaleX("+t+") scaleY("+s+")"}},Transform:{toString(e){if(e)return[zO.Translate.toString(e),zO.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:s,easing:n}=e;return t+" "+s+"ms "+n}}}),ZO="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function BO(e){return e.matches(ZO)?e:e.querySelector(ZO)}const qO={display:"none"};function WO(e){let{id:t,value:n}=e;return s.createElement("div",{id:t,style:qO},n)}function $O(e){let{id:t,announcement:n,ariaLiveType:a="assertive"}=e;return s.createElement("div",{id:t,style:{position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":a,"aria-atomic":!0},n)}const GO=e.createContext(null);const KO={draggable:"\n    To pick up a draggable item, press the space bar.\n    While dragging, use the arrow keys to move the item.\n    Press space again to drop the item in its new position, or press escape to cancel.\n  "},YO={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:s}=e;return s?"Draggable item "+t.id+" was moved over droppable area "+s.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:s}=e;return s?"Draggable item "+t.id+" was dropped over droppable area "+s.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function QO(t){let{announcements:a=YO,container:i,hiddenTextDescribedById:r,screenReaderInstructions:o=KO}=t;const{announce:l,announcement:c}=function(){const[t,s]=e.useState("");return{announce:e.useCallback(e=>{null!=e&&s(e)},[]),announcement:t}}(),d=HO("DndLiveRegion"),[u,m]=e.useState(!1);if(e.useEffect(()=>{m(!0)},[]),function(t){const s=e.useContext(GO);e.useEffect(()=>{if(!s)throw new Error("useDndMonitor must be used within a children of <DndContext>");return s(t)},[t,s])}(e.useMemo(()=>({onDragStart(e){let{active:t}=e;l(a.onDragStart({active:t}))},onDragMove(e){let{active:t,over:s}=e;a.onDragMove&&l(a.onDragMove({active:t,over:s}))},onDragOver(e){let{active:t,over:s}=e;l(a.onDragOver({active:t,over:s}))},onDragEnd(e){let{active:t,over:s}=e;l(a.onDragEnd({active:t,over:s}))},onDragCancel(e){let{active:t,over:s}=e;l(a.onDragCancel({active:t,over:s}))}}),[l,a])),!u)return null;const p=s.createElement(s.Fragment,null,s.createElement(WO,{id:r,value:o.draggable}),s.createElement($O,{id:d,announcement:c}));return i?n.createPortal(p,i):p}var JO,XO;function eF(){}function tF(t,s){return e.useMemo(()=>({sensor:t,options:null!=s?s:{}}),[t,s])}function sF(){for(var t=arguments.length,s=new Array(t),n=0;n<t;n++)s[n]=arguments[n];return e.useMemo(()=>[...s].filter(e=>null!=e),[...s])}(XO=JO||(JO={})).DragStart="dragStart",XO.DragMove="dragMove",XO.DragEnd="dragEnd",XO.DragCancel="dragCancel",XO.DragOver="dragOver",XO.RegisterDroppable="registerDroppable",XO.SetDroppableDisabled="setDroppableDisabled",XO.UnregisterDroppable="unregisterDroppable";const nF=Object.freeze({x:0,y:0});function aF(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function iF(e,t){const s=VO(e);if(!s)return"0 0";return(s.x-t.left)/t.width*100+"% "+(s.y-t.top)/t.height*100+"%"}function rF(e,t){let{data:{value:s}}=e,{data:{value:n}}=t;return s-n}function oF(e,t){let{data:{value:s}}=e,{data:{value:n}}=t;return n-s}function lF(e){let{left:t,top:s,height:n,width:a}=e;return[{x:t,y:s},{x:t+a,y:s},{x:t,y:s+n},{x:t+a,y:s+n}]}function cF(e,t){if(!e||0===e.length)return null;const[s]=e;return s[t]}function dF(e,t,s){return void 0===t&&(t=e.left),void 0===s&&(s=e.top),{x:t+.5*e.width,y:s+.5*e.height}}const uF=e=>{let{collisionRect:t,droppableRects:s,droppableContainers:n}=e;const a=dF(t,t.left,t.top),i=[];for(const r of n){const{id:e}=r,t=s.get(e);if(t){const s=aF(dF(t),a);i.push({id:e,data:{droppableContainer:r,value:s}})}}return i.sort(rF)};function mF(e,t){const s=Math.max(t.top,e.top),n=Math.max(t.left,e.left),a=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),r=a-n,o=i-s;if(n<a&&s<i){const s=t.width*t.height,n=e.width*e.height,a=r*o;return Number((a/(s+n-a)).toFixed(4))}return 0}const pF=e=>{let{collisionRect:t,droppableRects:s,droppableContainers:n}=e;const a=[];for(const i of n){const{id:e}=i,n=s.get(e);if(n){const s=mF(n,t);s>0&&a.push({id:e,data:{droppableContainer:i,value:s}})}}return a.sort(oF)};function fF(e,t){const{top:s,left:n,bottom:a,right:i}=t;return s<=e.y&&e.y<=a&&n<=e.x&&e.x<=i}const gF=e=>{let{droppableContainers:t,droppableRects:s,pointerCoordinates:n}=e;if(!n)return[];const a=[];for(const i of t){const{id:e}=i,t=s.get(e);if(t&&fF(n,t)){const s=lF(t).reduce((e,t)=>e+aF(n,t),0),r=Number((s/4).toFixed(4));a.push({id:e,data:{droppableContainer:i,value:r}})}}return a.sort(rF)};function hF(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:nF}function CF(e){return function(t){for(var s=arguments.length,n=new Array(s>1?s-1:0),a=1;a<s;a++)n[a-1]=arguments[a];return n.reduce((t,s)=>({...t,top:t.top+e*s.y,bottom:t.bottom+e*s.y,left:t.left+e*s.x,right:t.right+e*s.x}),{...t})}}const xF=CF(1);function vF(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}const yF={ignoreTransform:!1};function bF(e,t){void 0===t&&(t=yF);let s=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:t,transformOrigin:n}=MO(e).getComputedStyle(e);t&&(s=function(e,t,s){const n=vF(t);if(!n)return e;const{scaleX:a,scaleY:i,x:r,y:o}=n,l=e.left-r-(1-a)*parseFloat(s),c=e.top-o-(1-i)*parseFloat(s.slice(s.indexOf(" ")+1)),d=a?e.width/a:e.width,u=i?e.height/i:e.height;return{width:d,height:u,top:c,right:l+d,bottom:c+u,left:l}}(s,t,n))}const{top:n,left:a,width:i,height:r,bottom:o,right:l}=s;return{top:n,left:a,width:i,height:r,bottom:o,right:l}}function kF(e){return bF(e,{ignoreTransform:!0})}function wF(e,t){const s=[];return e?function n(a){if(null!=t&&s.length>=t)return s;if(!a)return s;if(_O(a)&&null!=a.scrollingElement&&!s.includes(a.scrollingElement))return s.push(a.scrollingElement),s;if(!jO(a)||SO(a))return s;if(s.includes(a))return s;const i=MO(e).getComputedStyle(a);return a!==e&&function(e,t){void 0===t&&(t=MO(e).getComputedStyle(e));const s=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(e=>{const n=t[e];return"string"==typeof n&&s.test(n)})}(a,i)&&s.push(a),function(e,t){return void 0===t&&(t=MO(e).getComputedStyle(e)),"fixed"===t.position}(a,i)?s:n(a.parentNode)}(e):s}function MF(e){const[t]=wF(e,1);return null!=t?t:null}function _F(e){return bO&&e?kO(e)?e:wO(e)?_O(e)||e===LO(e).scrollingElement?window:jO(e)?e:null:null:null}function jF(e){return kO(e)?e.scrollX:e.scrollLeft}function SF(e){return kO(e)?e.scrollY:e.scrollTop}function LF(e){return{x:jF(e),y:SF(e)}}var NF,IF;function TF(e){return!(!bO||!e)&&e===document.scrollingElement}function AF(e){const t={x:0,y:0},s=TF(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},n={x:e.scrollWidth-s.width,y:e.scrollHeight-s.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=n.y,isRight:e.scrollLeft>=n.x,maxScroll:n,minScroll:t}}(IF=NF||(NF={}))[IF.Forward=1]="Forward",IF[IF.Backward=-1]="Backward";const EF={x:.2,y:.2};function RF(e,t,s,n,a){let{top:i,left:r,right:o,bottom:l}=s;void 0===n&&(n=10),void 0===a&&(a=EF);const{isTop:c,isBottom:d,isLeft:u,isRight:m}=AF(e),p={x:0,y:0},f={x:0,y:0},g=t.height*a.y,h=t.width*a.x;return!c&&i<=t.top+g?(p.y=NF.Backward,f.y=n*Math.abs((t.top+g-i)/g)):!d&&l>=t.bottom-g&&(p.y=NF.Forward,f.y=n*Math.abs((t.bottom-g-l)/g)),!m&&o>=t.right-h?(p.x=NF.Forward,f.x=n*Math.abs((t.right-h-o)/h)):!u&&r<=t.left+h&&(p.x=NF.Backward,f.x=n*Math.abs((t.left+h-r)/h)),{direction:p,speed:f}}function DF(e){if(e===document.scrollingElement){const{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}const{top:t,left:s,right:n,bottom:a}=e.getBoundingClientRect();return{top:t,left:s,right:n,bottom:a,width:e.clientWidth,height:e.clientHeight}}function HF(e){return e.reduce((e,t)=>UO(e,LF(t)),nF)}function PF(e,t){if(void 0===t&&(t=bF),!e)return;const{top:s,left:n,bottom:a,right:i}=t(e);MF(e)&&(a<=0||i<=0||s>=window.innerHeight||n>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const UF=[["x",["left","right"],function(e){return e.reduce((e,t)=>e+jF(t),0)}],["y",["top","bottom"],function(e){return e.reduce((e,t)=>e+SF(t),0)}]];class OF{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const s=wF(t),n=HF(s);this.rect={...e},this.width=e.width,this.height=e.height;for(const[a,i,r]of UF)for(const e of i)Object.defineProperty(this,e,{get:()=>{const t=r(s),i=n[a]-t;return this.rect[e]+i},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class FF{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)})},this.target=e}add(e,t,s){var n;null==(n=this.target)||n.addEventListener(e,t,s),this.listeners.push([e,t,s])}}function VF(e,t){const s=Math.abs(e.x),n=Math.abs(e.y);return"number"==typeof t?Math.sqrt(s**2+n**2)>t:"x"in t&&"y"in t?s>t.x&&n>t.y:"x"in t?s>t.x:"y"in t&&n>t.y}var zF,ZF,BF,qF;function WF(e){e.preventDefault()}function $F(e){e.stopPropagation()}(ZF=zF||(zF={})).Click="click",ZF.DragStart="dragstart",ZF.Keydown="keydown",ZF.ContextMenu="contextmenu",ZF.Resize="resize",ZF.SelectionChange="selectionchange",ZF.VisibilityChange="visibilitychange",(qF=BF||(BF={})).Space="Space",qF.Down="ArrowDown",qF.Right="ArrowRight",qF.Left="ArrowLeft",qF.Up="ArrowUp",qF.Esc="Escape",qF.Enter="Enter",qF.Tab="Tab";const GF={start:[BF.Space,BF.Enter],cancel:[BF.Esc],end:[BF.Space,BF.Enter,BF.Tab]},KF=(e,t)=>{let{currentCoordinates:s}=t;switch(e.code){case BF.Right:return{...s,x:s.x+25};case BF.Left:return{...s,x:s.x-25};case BF.Down:return{...s,y:s.y+25};case BF.Up:return{...s,y:s.y-25}}};class YF{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new FF(LO(t)),this.windowListeners=new FF(MO(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(zF.Resize,this.handleCancel),this.windowListeners.add(zF.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(zF.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:e,onStart:t}=this.props,s=e.node.current;s&&PF(s),t(nF)}handleKeyDown(e){if(FO(e)){const{active:t,context:s,options:n}=this.props,{keyboardCodes:a=GF,coordinateGetter:i=KF,scrollBehavior:r="smooth"}=n,{code:o}=e;if(a.end.includes(o))return void this.handleEnd(e);if(a.cancel.includes(o))return void this.handleCancel(e);const{collisionRect:l}=s.current,c=l?{x:l.left,y:l.top}:nF;this.referenceCoordinates||(this.referenceCoordinates=c);const d=i(e,{active:t,context:s.current,currentCoordinates:c});if(d){const t=OO(d,c),n={x:0,y:0},{scrollableAncestors:a}=s.current;for(const s of a){const a=e.code,{isTop:i,isRight:o,isLeft:l,isBottom:c,maxScroll:u,minScroll:m}=AF(s),p=DF(s),f={x:Math.min(a===BF.Right?p.right-p.width/2:p.right,Math.max(a===BF.Right?p.left:p.left+p.width/2,d.x)),y:Math.min(a===BF.Down?p.bottom-p.height/2:p.bottom,Math.max(a===BF.Down?p.top:p.top+p.height/2,d.y))},g=a===BF.Right&&!o||a===BF.Left&&!l,h=a===BF.Down&&!c||a===BF.Up&&!i;if(g&&f.x!==d.x){const e=s.scrollLeft+t.x,i=a===BF.Right&&e<=u.x||a===BF.Left&&e>=m.x;if(i&&!t.y)return void s.scrollTo({left:e,behavior:r});n.x=i?s.scrollLeft-e:a===BF.Right?s.scrollLeft-u.x:s.scrollLeft-m.x,n.x&&s.scrollBy({left:-n.x,behavior:r});break}if(h&&f.y!==d.y){const e=s.scrollTop+t.y,i=a===BF.Down&&e<=u.y||a===BF.Up&&e>=m.y;if(i&&!t.x)return void s.scrollTo({top:e,behavior:r});n.y=i?s.scrollTop-e:a===BF.Down?s.scrollTop-u.y:s.scrollTop-m.y,n.y&&s.scrollBy({top:-n.y,behavior:r});break}}this.handleMove(e,UO(OO(d,this.referenceCoordinates),n))}}}handleMove(e,t){const{onMove:s}=this.props;e.preventDefault(),s(t)}handleEnd(e){const{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){const{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function QF(e){return Boolean(e&&"distance"in e)}function JF(e){return Boolean(e&&"delay"in e)}YF.activators=[{eventName:"onKeyDown",handler:(e,t,s)=>{let{keyboardCodes:n=GF,onActivation:a}=t,{active:i}=s;const{code:r}=e.nativeEvent;if(n.start.includes(r)){const t=i.activatorNode.current;return(!t||e.target===t)&&(e.preventDefault(),null==a||a({event:e.nativeEvent}),!0)}return!1}}];class XF{constructor(e,t,s){var n;void 0===s&&(s=function(e){const{EventTarget:t}=MO(e);return e instanceof t?e:LO(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:a}=e,{target:i}=a;this.props=e,this.events=t,this.document=LO(i),this.documentListeners=new FF(this.document),this.listeners=new FF(s),this.windowListeners=new FF(MO(i)),this.initialCoordinates=null!=(n=VO(a))?n:nF,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:s}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),e.cancel&&this.listeners.add(e.cancel.name,this.handleCancel),this.windowListeners.add(zF.Resize,this.handleCancel),this.windowListeners.add(zF.DragStart,WF),this.windowListeners.add(zF.VisibilityChange,this.handleCancel),this.windowListeners.add(zF.ContextMenu,WF),this.documentListeners.add(zF.Keydown,this.handleKeydown),t){if(null!=s&&s({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(JF(t))return this.timeoutId=setTimeout(this.handleStart,t.delay),void this.handlePending(t);if(QF(t))return void this.handlePending(t)}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(e,t){const{active:s,onPending:n}=this.props;n(s,e,this.initialCoordinates,t)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(zF.Click,$F,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(zF.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:s,initialCoordinates:n,props:a}=this,{onMove:i,options:{activationConstraint:r}}=a;if(!n)return;const o=null!=(t=VO(e))?t:nF,l=OO(n,o);if(!s&&r){if(QF(r)){if(null!=r.tolerance&&VF(l,r.tolerance))return this.handleCancel();if(VF(l,r.distance))return this.handleStart()}return JF(r)&&VF(l,r.tolerance)?this.handleCancel():void this.handlePending(r,l)}e.cancelable&&e.preventDefault(),i(o)}handleEnd(){const{onAbort:e,onEnd:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleCancel(){const{onAbort:e,onCancel:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleKeydown(e){e.code===BF.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}const eV={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class tV extends XF{constructor(e){const{event:t}=e,s=LO(t.target);super(e,eV,s)}}tV.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:s}=e,{onActivation:n}=t;return!(!s.isPrimary||0!==s.button)&&(null==n||n({event:s}),!0)}}];const sV={move:{name:"mousemove"},end:{name:"mouseup"}};var nV,aV;(aV=nV||(nV={}))[aV.RightClick=2]="RightClick";(class extends XF{constructor(e){super(e,sV,LO(e.event.target))}}).activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:s}=e,{onActivation:n}=t;return s.button!==nV.RightClick&&(null==n||n({event:s}),!0)}}];const iV={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};var rV,oV,lV,cV;function dV(t){let{acceleration:s,activator:n=rV.Pointer,canScroll:a,draggingRect:i,enabled:r,interval:o=5,order:l=lV.TreeOrder,pointerCoordinates:c,scrollableAncestors:d,scrollableAncestorRects:u,delta:m,threshold:p}=t;const f=function(e){let{delta:t,disabled:s}=e;const n=RO(t);return AO(e=>{if(s||!n||!e)return uV;const a={x:Math.sign(t.x-n.x),y:Math.sign(t.y-n.y)};return{x:{[NF.Backward]:e.x[NF.Backward]||-1===a.x,[NF.Forward]:e.x[NF.Forward]||1===a.x},y:{[NF.Backward]:e.y[NF.Backward]||-1===a.y,[NF.Forward]:e.y[NF.Forward]||1===a.y}}},[s,t,n])}({delta:m,disabled:!r}),[g,h]=function(){const t=e.useRef(null);return[e.useCallback((e,s)=>{t.current=setInterval(e,s)},[]),e.useCallback(()=>{null!==t.current&&(clearInterval(t.current),t.current=null)},[])]}(),C=e.useRef({x:0,y:0}),x=e.useRef({x:0,y:0}),v=e.useMemo(()=>{switch(n){case rV.Pointer:return c?{top:c.y,bottom:c.y,left:c.x,right:c.x}:null;case rV.DraggableRect:return i}},[n,i,c]),y=e.useRef(null),b=e.useCallback(()=>{const e=y.current;if(!e)return;const t=C.current.x*x.current.x,s=C.current.y*x.current.y;e.scrollBy(t,s)},[]),k=e.useMemo(()=>l===lV.TreeOrder?[...d].reverse():d,[l,d]);e.useEffect(()=>{if(r&&d.length&&v){for(const e of k){if(!1===(null==a?void 0:a(e)))continue;const t=d.indexOf(e),n=u[t];if(!n)continue;const{direction:i,speed:r}=RF(e,n,v,s,p);for(const e of["x","y"])f[e][i[e]]||(r[e]=0,i[e]=0);if(r.x>0||r.y>0)return h(),y.current=e,g(b,o),C.current=r,void(x.current=i)}C.current={x:0,y:0},x.current={x:0,y:0},h()}else h()},[s,b,a,h,r,o,JSON.stringify(v),JSON.stringify(f),g,d,k,u,JSON.stringify(p)])}(class extends XF{constructor(e){super(e,iV)}static setup(){return window.addEventListener(iV.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(iV.move.name,e)};function e(){}}}).activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:s}=e,{onActivation:n}=t;const{touches:a}=s;return!(a.length>1)&&(null==n||n({event:s}),!0)}}],(oV=rV||(rV={}))[oV.Pointer=0]="Pointer",oV[oV.DraggableRect=1]="DraggableRect",(cV=lV||(lV={}))[cV.TreeOrder=0]="TreeOrder",cV[cV.ReversedTreeOrder=1]="ReversedTreeOrder";const uV={x:{[NF.Backward]:!1,[NF.Forward]:!1},y:{[NF.Backward]:!1,[NF.Forward]:!1}};var mV,pV,fV;(pV=mV||(mV={}))[pV.Always=0]="Always",pV[pV.BeforeDragging=1]="BeforeDragging",pV[pV.WhileDragging=2]="WhileDragging",(fV||(fV={})).Optimized="optimized";const gV=new Map;function hV(e,t){return AO(s=>e?s||("function"==typeof t?t(e):e):null,[t,e])}function CV(t){let{callback:s,disabled:n}=t;const a=IO(s),i=e.useMemo(()=>{if(n||"undefined"==typeof window||void 0===window.ResizeObserver)return;const{ResizeObserver:e}=window;return new e(a)},[n]);return e.useEffect(()=>()=>null==i?void 0:i.disconnect(),[i]),i}function xV(e){return new OF(bF(e),e)}function vV(t,s,n){void 0===s&&(s=xV);const[a,i]=e.useState(null);function r(){i(e=>{if(!t)return null;var a;if(!1===t.isConnected)return null!=(a=null!=e?e:n)?a:null;const i=s(t);return JSON.stringify(e)===JSON.stringify(i)?e:i})}const o=function(t){let{callback:s,disabled:n}=t;const a=IO(s),i=e.useMemo(()=>{if(n||"undefined"==typeof window||void 0===window.MutationObserver)return;const{MutationObserver:e}=window;return new e(a)},[a,n]);return e.useEffect(()=>()=>null==i?void 0:i.disconnect(),[i]),i}({callback(e){if(t)for(const s of e){const{type:e,target:n}=s;if("childList"===e&&n instanceof HTMLElement&&n.contains(t)){r();break}}}}),l=CV({callback:r});return NO(()=>{r(),t?(null==l||l.observe(t),null==o||o.observe(document.body,{childList:!0,subtree:!0})):(null==l||l.disconnect(),null==o||o.disconnect())},[t]),a}const yV=[];function bV(t,s){void 0===s&&(s=[]);const n=e.useRef(null);return e.useEffect(()=>{n.current=null},s),e.useEffect(()=>{const e=t!==nF;e&&!n.current&&(n.current=t),!e&&n.current&&(n.current=null)},[t]),n.current?OO(t,n.current):nF}function kV(t){return e.useMemo(()=>t?function(e){const t=e.innerWidth,s=e.innerHeight;return{top:0,left:0,right:t,bottom:s,width:t,height:s}}(t):null,[t])}const wV=[];function MV(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return jO(t)?t:e}const _V=[{sensor:tV,options:{}},{sensor:YF,options:{}}],jV={current:{}},SV={draggable:{measure:kF},droppable:{measure:kF,strategy:mV.WhileDragging,frequency:fV.Optimized},dragOverlay:{measure:bF}};class LV extends Map{get(e){var t;return null!=e&&null!=(t=super.get(e))?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>{let{disabled:t}=e;return!t})}getNodeFor(e){var t,s;return null!=(t=null==(s=this.get(e))?void 0:s.node.current)?t:void 0}}const NV={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new LV,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:eF},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:SV,measureDroppableContainers:eF,windowRect:null,measuringScheduled:!1},IV={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:eF,draggableNodes:new Map,over:null,measureDroppableContainers:eF},TV=e.createContext(IV),AV=e.createContext(NV);function EV(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new LV}}}function RV(e,t){switch(t.type){case JO.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case JO.DragMove:return null==e.draggable.active?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case JO.DragEnd:case JO.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case JO.RegisterDroppable:{const{element:s}=t,{id:n}=s,a=new LV(e.droppable.containers);return a.set(n,s),{...e,droppable:{...e.droppable,containers:a}}}case JO.SetDroppableDisabled:{const{id:s,key:n,disabled:a}=t,i=e.droppable.containers.get(s);if(!i||n!==i.key)return e;const r=new LV(e.droppable.containers);return r.set(s,{...i,disabled:a}),{...e,droppable:{...e.droppable,containers:r}}}case JO.UnregisterDroppable:{const{id:s,key:n}=t,a=e.droppable.containers.get(s);if(!a||n!==a.key)return e;const i=new LV(e.droppable.containers);return i.delete(s),{...e,droppable:{...e.droppable,containers:i}}}default:return e}}function DV(t){let{disabled:s}=t;const{active:n,activatorEvent:a,draggableNodes:i}=e.useContext(TV),r=RO(a),o=RO(null==n?void 0:n.id);return e.useEffect(()=>{if(!s&&!a&&r&&null!=o){if(!FO(r))return;if(document.activeElement===r.target)return;const e=i.get(o);if(!e)return;const{activatorNode:t,node:s}=e;if(!t.current&&!s.current)return;requestAnimationFrame(()=>{for(const e of[t.current,s.current]){if(!e)continue;const t=BO(e);if(t){t.focus();break}}})}},[a,s,i,o,r]),null}function HV(e,t){let{transform:s,...n}=t;return null!=e&&e.length?e.reduce((e,t)=>t({transform:e,...n}),s):s}const PV=e.createContext({...nF,scaleX:1,scaleY:1});var UV,OV;(OV=UV||(UV={}))[OV.Uninitialized=0]="Uninitialized",OV[OV.Initializing=1]="Initializing",OV[OV.Initialized=2]="Initialized";const FV=e.memo(function(t){var a,i,r,o;let{id:l,accessibility:c,autoScroll:d=!0,children:u,sensors:m=_V,collisionDetection:p=pF,measuring:f,modifiers:g,...h}=t;const C=e.useReducer(RV,void 0,EV),[x,v]=C,[y,b]=function(){const[t]=e.useState(()=>new Set),s=e.useCallback(e=>(t.add(e),()=>t.delete(e)),[t]);return[e.useCallback(e=>{let{type:s,event:n}=e;t.forEach(e=>{var t;return null==(t=e[s])?void 0:t.call(e,n)})},[t]),s]}(),[k,w]=e.useState(UV.Uninitialized),M=k===UV.Initialized,{draggable:{active:_,nodes:j,translate:S},droppable:{containers:L}}=x,N=null!=_?j.get(_):null,I=e.useRef({initial:null,translated:null}),T=e.useMemo(()=>{var e;return null!=_?{id:_,data:null!=(e=null==N?void 0:N.data)?e:jV,rect:I}:null},[_,N]),A=e.useRef(null),[E,R]=e.useState(null),[D,H]=e.useState(null),P=TO(h,Object.values(h)),U=HO("DndDescribedBy",l),O=e.useMemo(()=>L.getEnabled(),[L]),F=(V=f,e.useMemo(()=>({draggable:{...SV.draggable,...null==V?void 0:V.draggable},droppable:{...SV.droppable,...null==V?void 0:V.droppable},dragOverlay:{...SV.dragOverlay,...null==V?void 0:V.dragOverlay}}),[null==V?void 0:V.draggable,null==V?void 0:V.droppable,null==V?void 0:V.dragOverlay]));var V;const{droppableRects:z,measureDroppableContainers:Z,measuringScheduled:B}=function(t,s){let{dragging:n,dependencies:a,config:i}=s;const[r,o]=e.useState(null),{frequency:l,measure:c,strategy:d}=i,u=e.useRef(t),m=function(){switch(d){case mV.Always:return!1;case mV.BeforeDragging:return n;default:return!n}}(),p=TO(m),f=e.useCallback(function(e){void 0===e&&(e=[]),p.current||o(t=>null===t?e:t.concat(e.filter(e=>!t.includes(e))))},[p]),g=e.useRef(null),h=AO(e=>{if(m&&!n)return gV;if(!e||e===gV||u.current!==t||null!=r){const e=new Map;for(let s of t){if(!s)continue;if(r&&r.length>0&&!r.includes(s.id)&&s.rect.current){e.set(s.id,s.rect.current);continue}const t=s.node.current,n=t?new OF(c(t),t):null;s.rect.current=n,n&&e.set(s.id,n)}return e}return e},[t,r,n,m,c]);return e.useEffect(()=>{u.current=t},[t]),e.useEffect(()=>{m||f()},[n,m]),e.useEffect(()=>{r&&r.length>0&&o(null)},[JSON.stringify(r)]),e.useEffect(()=>{m||"number"!=typeof l||null!==g.current||(g.current=setTimeout(()=>{f(),g.current=null},l))},[l,m,f,...a]),{droppableRects:h,measureDroppableContainers:f,measuringScheduled:null!=r}}(O,{dragging:M,dependencies:[S.x,S.y],config:F.droppable}),q=function(e,t){const s=null!=t?e.get(t):void 0,n=s?s.node.current:null;return AO(e=>{var s;return null==t?null:null!=(s=null!=n?n:e)?s:null},[n,t])}(j,_),W=e.useMemo(()=>D?VO(D):null,[D]),$=function(){const e=!1===(null==E?void 0:E.autoScrollEnabled),t="object"==typeof d?!1===d.enabled:!1===d,s=M&&!e&&!t;if("object"==typeof d)return{...d,enabled:s};return{enabled:s}}(),G=function(e,t){return hV(e,t)}(q,F.draggable.measure);!function(t){let{activeNode:s,measure:n,initialRect:a,config:i=!0}=t;const r=e.useRef(!1),{x:o,y:l}="boolean"==typeof i?{x:i,y:i}:i;NO(()=>{if(!o&&!l||!s)return void(r.current=!1);if(r.current||!a)return;const e=null==s?void 0:s.node.current;if(!e||!1===e.isConnected)return;const t=hF(n(e),a);if(o||(t.x=0),l||(t.y=0),r.current=!0,Math.abs(t.x)>0||Math.abs(t.y)>0){const s=MF(e);s&&s.scrollBy({top:t.y,left:t.x})}},[s,o,l,a,n])}({activeNode:null!=_?j.get(_):null,config:$.layoutShiftCompensation,initialRect:G,measure:F.draggable.measure});const K=vV(q,F.draggable.measure,G),Y=vV(q?q.parentElement:null),Q=e.useRef({activatorEvent:null,active:null,activeNode:q,collisionRect:null,collisions:null,droppableRects:z,draggableNodes:j,draggingNode:null,draggingNodeRect:null,droppableContainers:L,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),J=L.getNodeFor(null==(a=Q.current.over)?void 0:a.id),X=function(t){let{measure:s}=t;const[n,a]=e.useState(null),i=CV({callback:e.useCallback(e=>{for(const{target:t}of e)if(jO(t)){a(e=>{const n=s(t);return e?{...e,width:n.width,height:n.height}:n});break}},[s])}),r=e.useCallback(e=>{const t=MV(e);null==i||i.disconnect(),t&&(null==i||i.observe(t)),a(t?s(t):null)},[s,i]),[o,l]=EO(r);return e.useMemo(()=>({nodeRef:o,rect:n,setRef:l}),[n,o,l])}({measure:F.dragOverlay.measure}),ee=null!=(i=X.nodeRef.current)?i:q,te=M?null!=(r=X.rect)?r:K:null,se=Boolean(X.nodeRef.current&&X.rect),ne=hF(ae=se?null:K,hV(ae));var ae;const ie=kV(ee?MO(ee):null),re=function(t){const s=e.useRef(t),n=AO(e=>t?e&&e!==yV&&t&&s.current&&t.parentNode===s.current.parentNode?e:wF(t):yV,[t]);return e.useEffect(()=>{s.current=t},[t]),n}(M?null!=J?J:q:null),oe=function(t,s){void 0===s&&(s=bF);const[n]=t,a=kV(n?MO(n):null),[i,r]=e.useState(wV);function o(){r(()=>t.length?t.map(e=>TF(e)?a:new OF(s(e),e)):wV)}const l=CV({callback:o});return NO(()=>{null==l||l.disconnect(),o(),t.forEach(e=>null==l?void 0:l.observe(e))},[t]),i}(re),le=HV(g,{transform:{x:S.x-ne.x,y:S.y-ne.y,scaleX:1,scaleY:1},activatorEvent:D,active:T,activeNodeRect:K,containerNodeRect:Y,draggingNodeRect:te,over:Q.current.over,overlayNodeRect:X.rect,scrollableAncestors:re,scrollableAncestorRects:oe,windowRect:ie}),ce=W?UO(W,S):null,de=function(t){const[s,n]=e.useState(null),a=e.useRef(t),i=e.useCallback(e=>{const t=_F(e.target);t&&n(e=>e?(e.set(t,LF(t)),new Map(e)):null)},[]);return e.useEffect(()=>{const e=a.current;if(t!==e){s(e);const r=t.map(e=>{const t=_F(e);return t?(t.addEventListener("scroll",i,{passive:!0}),[t,LF(t)]):null}).filter(e=>null!=e);n(r.length?new Map(r):null),a.current=t}return()=>{s(t),s(e)};function s(e){e.forEach(e=>{const t=_F(e);null==t||t.removeEventListener("scroll",i)})}},[i,t]),e.useMemo(()=>t.length?s?Array.from(s.values()).reduce((e,t)=>UO(e,t),nF):HF(t):nF,[t,s])}(re),ue=bV(de),me=bV(de,[K]),pe=UO(le,ue),fe=te?xF(te,le):null,ge=T&&fe?p({active:T,collisionRect:fe,droppableRects:z,droppableContainers:O,pointerCoordinates:ce}):null,he=cF(ge,"id"),[Ce,xe]=e.useState(null),ve=function(e,t,s){return{...e,scaleX:t&&s?t.width/s.width:1,scaleY:t&&s?t.height/s.height:1}}(se?le:UO(le,me),null!=(o=null==Ce?void 0:Ce.rect)?o:null,K),ye=e.useRef(null),be=e.useCallback((e,t)=>{let{sensor:s,options:a}=t;if(null==A.current)return;const i=j.get(A.current);if(!i)return;const r=e.nativeEvent,o=new s({active:A.current,activeNode:i,event:r,options:a,context:Q,onAbort(e){if(!j.get(e))return;const{onDragAbort:t}=P.current,s={id:e};null==t||t(s),y({type:"onDragAbort",event:s})},onPending(e,t,s,n){if(!j.get(e))return;const{onDragPending:a}=P.current,i={id:e,constraint:t,initialCoordinates:s,offset:n};null==a||a(i),y({type:"onDragPending",event:i})},onStart(e){const t=A.current;if(null==t)return;const s=j.get(t);if(!s)return;const{onDragStart:a}=P.current,i={activatorEvent:r,active:{id:t,data:s.data,rect:I}};n.unstable_batchedUpdates(()=>{null==a||a(i),w(UV.Initializing),v({type:JO.DragStart,initialCoordinates:e,active:t}),y({type:"onDragStart",event:i}),R(ye.current),H(r)})},onMove(e){v({type:JO.DragMove,coordinates:e})},onEnd:l(JO.DragEnd),onCancel:l(JO.DragCancel)});function l(e){return async function(){const{active:t,collisions:s,over:a,scrollAdjustedTranslate:i}=Q.current;let o=null;if(t&&i){const{cancelDrop:n}=P.current;if(o={activatorEvent:r,active:t,collisions:s,delta:i,over:a},e===JO.DragEnd&&"function"==typeof n){await Promise.resolve(n(o))&&(e=JO.DragCancel)}}A.current=null,n.unstable_batchedUpdates(()=>{v({type:e}),w(UV.Uninitialized),xe(null),R(null),H(null),ye.current=null;const t=e===JO.DragEnd?"onDragEnd":"onDragCancel";if(o){const e=P.current[t];null==e||e(o),y({type:t,event:o})}})}}ye.current=o},[j]),ke=function(t,s){return e.useMemo(()=>t.reduce((e,t)=>{const{sensor:n}=t;return[...e,...n.activators.map(e=>({eventName:e.eventName,handler:s(e.handler,t)}))]},[]),[t,s])}(m,e.useCallback((e,t)=>(s,n)=>{const a=s.nativeEvent,i=j.get(n);if(null!==A.current||!i||a.dndKit||a.defaultPrevented)return;const r={active:i};!0===e(s,t.options,r)&&(a.dndKit={capturedBy:t.sensor},A.current=n,be(s,t))},[j,be]));!function(t){e.useEffect(()=>{if(!bO)return;const e=t.map(e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()});return()=>{for(const t of e)null==t||t()}},t.map(e=>{let{sensor:t}=e;return t}))}(m),NO(()=>{K&&k===UV.Initializing&&w(UV.Initialized)},[K,k]),e.useEffect(()=>{const{onDragMove:e}=P.current,{active:t,activatorEvent:s,collisions:a,over:i}=Q.current;if(!t||!s)return;const r={active:t,activatorEvent:s,collisions:a,delta:{x:pe.x,y:pe.y},over:i};n.unstable_batchedUpdates(()=>{null==e||e(r),y({type:"onDragMove",event:r})})},[pe.x,pe.y]),e.useEffect(()=>{const{active:e,activatorEvent:t,collisions:s,droppableContainers:a,scrollAdjustedTranslate:i}=Q.current;if(!e||null==A.current||!t||!i)return;const{onDragOver:r}=P.current,o=a.get(he),l=o&&o.rect.current?{id:o.id,rect:o.rect.current,data:o.data,disabled:o.disabled}:null,c={active:e,activatorEvent:t,collisions:s,delta:{x:i.x,y:i.y},over:l};n.unstable_batchedUpdates(()=>{xe(l),null==r||r(c),y({type:"onDragOver",event:c})})},[he]),NO(()=>{Q.current={activatorEvent:D,active:T,activeNode:q,collisionRect:fe,collisions:ge,droppableRects:z,draggableNodes:j,draggingNode:ee,draggingNodeRect:te,droppableContainers:L,over:Ce,scrollableAncestors:re,scrollAdjustedTranslate:pe},I.current={initial:te,translated:fe}},[T,q,ge,fe,j,ee,te,z,L,Ce,re,pe]),dV({...$,delta:S,draggingRect:fe,pointerCoordinates:ce,scrollableAncestors:re,scrollableAncestorRects:oe});const we=e.useMemo(()=>({active:T,activeNode:q,activeNodeRect:K,activatorEvent:D,collisions:ge,containerNodeRect:Y,dragOverlay:X,draggableNodes:j,droppableContainers:L,droppableRects:z,over:Ce,measureDroppableContainers:Z,scrollableAncestors:re,scrollableAncestorRects:oe,measuringConfiguration:F,measuringScheduled:B,windowRect:ie}),[T,q,K,D,ge,Y,X,j,L,z,Ce,Z,re,oe,F,B,ie]),Me=e.useMemo(()=>({activatorEvent:D,activators:ke,active:T,activeNodeRect:K,ariaDescribedById:{draggable:U},dispatch:v,draggableNodes:j,over:Ce,measureDroppableContainers:Z}),[D,ke,T,K,v,U,j,Ce,Z]);return s.createElement(GO.Provider,{value:b},s.createElement(TV.Provider,{value:Me},s.createElement(AV.Provider,{value:we},s.createElement(PV.Provider,{value:ve},u)),s.createElement(DV,{disabled:!1===(null==c?void 0:c.restoreFocus)})),s.createElement(QO,{...c,hiddenTextDescribedById:U}))}),VV=e.createContext(null),zV="button";function ZV(t){let{id:s,data:n,disabled:a=!1,attributes:i}=t;const r=HO("Draggable"),{activators:o,activatorEvent:l,active:c,activeNodeRect:d,ariaDescribedById:u,draggableNodes:m,over:p}=e.useContext(TV),{role:f=zV,roleDescription:g="draggable",tabIndex:h=0}=null!=i?i:{},C=(null==c?void 0:c.id)===s,x=e.useContext(C?PV:VV),[v,y]=EO(),[b,k]=EO(),w=function(t,s){return e.useMemo(()=>t.reduce((e,t)=>{let{eventName:n,handler:a}=t;return e[n]=e=>{a(e,s)},e},{}),[t,s])}(o,s),M=TO(n);NO(()=>(m.set(s,{id:s,key:r,node:v,activatorNode:b,data:M}),()=>{const e=m.get(s);e&&e.key===r&&m.delete(s)}),[m,s]);return{active:c,activatorEvent:l,activeNodeRect:d,attributes:e.useMemo(()=>({role:f,tabIndex:h,"aria-disabled":a,"aria-pressed":!(!C||f!==zV)||void 0,"aria-roledescription":g,"aria-describedby":u.draggable}),[a,f,h,C,g,u.draggable]),isDragging:C,listeners:a?void 0:w,node:v,over:p,setNodeRef:y,setActivatorNodeRef:k,transform:x}}function BV(){return e.useContext(AV)}const qV={timeout:25};function WV(t){let{data:s,disabled:n=!1,id:a,resizeObserverConfig:i}=t;const r=HO("Droppable"),{active:o,dispatch:l,over:c,measureDroppableContainers:d}=e.useContext(TV),u=e.useRef({disabled:n}),m=e.useRef(!1),p=e.useRef(null),f=e.useRef(null),{disabled:g,updateMeasurementsFor:h,timeout:C}={...qV,...i},x=TO(null!=h?h:a),v=CV({callback:e.useCallback(()=>{m.current?(null!=f.current&&clearTimeout(f.current),f.current=setTimeout(()=>{d(Array.isArray(x.current)?x.current:[x.current]),f.current=null},C)):m.current=!0},[C]),disabled:g||!o}),y=e.useCallback((e,t)=>{v&&(t&&(v.unobserve(t),m.current=!1),e&&v.observe(e))},[v]),[b,k]=EO(y),w=TO(s);return e.useEffect(()=>{v&&b.current&&(v.disconnect(),m.current=!1,v.observe(b.current))},[b,v]),e.useEffect(()=>(l({type:JO.RegisterDroppable,element:{id:a,key:r,disabled:n,node:b,rect:p,data:w}}),()=>l({type:JO.UnregisterDroppable,key:r,id:a})),[a]),e.useEffect(()=>{n!==u.current.disabled&&(l({type:JO.SetDroppableDisabled,id:a,key:r,disabled:n}),u.current.disabled=n)},[a,r,n,l]),{active:o,rect:p,isOver:(null==c?void 0:c.id)===a,node:b,over:c,setNodeRef:k}}function $V(t){let{animation:n,children:a}=t;const[i,r]=e.useState(null),[o,l]=e.useState(null),c=RO(a);return a||i||!c||r(c),NO(()=>{if(!o)return;const e=null==i?void 0:i.key,t=null==i?void 0:i.props.id;null!=e&&null!=t?Promise.resolve(n(t,o)).then(()=>{r(null)}):r(null)},[n,i,o]),s.createElement(s.Fragment,null,a,i?e.cloneElement(i,{ref:l}):null)}const GV={x:0,y:0,scaleX:1,scaleY:1};function KV(e){let{children:t}=e;return s.createElement(TV.Provider,{value:IV},s.createElement(PV.Provider,{value:GV},t))}const YV={position:"fixed",touchAction:"none"},QV=e=>FO(e)?"transform 250ms ease":void 0,JV=e.forwardRef((e,t)=>{let{as:n,activatorEvent:a,adjustScale:i,children:r,className:o,rect:l,style:c,transform:d,transition:u=QV}=e;if(!l)return null;const m=i?d:{...d,scaleX:1,scaleY:1},p={...YV,width:l.width,height:l.height,top:l.top,left:l.left,transform:zO.Transform.toString(m),transformOrigin:i&&a?iF(a,l):void 0,transition:"function"==typeof u?u(a):u,...c};return s.createElement(n,{className:o,style:p,ref:t},r)}),XV={duration:250,easing:"ease",keyframes:e=>{let{transform:{initial:t,final:s}}=e;return[{transform:zO.Transform.toString(t)},{transform:zO.Transform.toString(s)}]},sideEffects:(e=>t=>{let{active:s,dragOverlay:n}=t;const a={},{styles:i,className:r}=e;if(null!=i&&i.active)for(const[e,o]of Object.entries(i.active))void 0!==o&&(a[e]=s.node.style.getPropertyValue(e),s.node.style.setProperty(e,o));if(null!=i&&i.dragOverlay)for(const[e,o]of Object.entries(i.dragOverlay))void 0!==o&&n.node.style.setProperty(e,o);return null!=r&&r.active&&s.node.classList.add(r.active),null!=r&&r.dragOverlay&&n.node.classList.add(r.dragOverlay),function(){for(const[e,t]of Object.entries(a))s.node.style.setProperty(e,t);null!=r&&r.active&&s.node.classList.remove(r.active)}})({styles:{active:{opacity:"0"}}})};function ez(e){let{config:t,draggableNodes:s,droppableContainers:n,measuringConfiguration:a}=e;return IO((e,i)=>{if(null===t)return;const r=s.get(e);if(!r)return;const o=r.node.current;if(!o)return;const l=MV(i);if(!l)return;const{transform:c}=MO(i).getComputedStyle(i),d=vF(c);if(!d)return;const u="function"==typeof t?t:function(e){const{duration:t,easing:s,sideEffects:n,keyframes:a}={...XV,...e};return e=>{let{active:i,dragOverlay:r,transform:o,...l}=e;if(!t)return;const c={x:r.rect.left-i.rect.left,y:r.rect.top-i.rect.top},d={scaleX:1!==o.scaleX?i.rect.width*o.scaleX/r.rect.width:1,scaleY:1!==o.scaleY?i.rect.height*o.scaleY/r.rect.height:1},u={x:o.x-c.x,y:o.y-c.y,...d},m=a({...l,active:i,dragOverlay:r,transform:{initial:o,final:u}}),[p]=m,f=m[m.length-1];if(JSON.stringify(p)===JSON.stringify(f))return;const g=null==n?void 0:n({active:i,dragOverlay:r,...l}),h=r.node.animate(m,{duration:t,easing:s,fill:"forwards"});return new Promise(e=>{h.onfinish=()=>{null==g||g(),e()}})}}(t);return PF(o,a.draggable.measure),u({active:{id:e,data:r.data,node:o,rect:a.draggable.measure(o)},draggableNodes:s,dragOverlay:{node:i,rect:a.dragOverlay.measure(l)},droppableContainers:n,measuringConfiguration:a,transform:d})})}let tz=0;const sz=s.memo(t=>{let{adjustScale:n=!1,children:a,dropAnimation:i,style:r,transition:o,modifiers:l,wrapperElement:c="div",className:d,zIndex:u=999}=t;const{activatorEvent:m,active:p,activeNodeRect:f,containerNodeRect:g,draggableNodes:h,droppableContainers:C,dragOverlay:x,over:v,measuringConfiguration:y,scrollableAncestors:b,scrollableAncestorRects:k,windowRect:w}=BV(),M=e.useContext(PV),_=(j=null==p?void 0:p.id,e.useMemo(()=>{if(null!=j)return tz++,tz},[j]));var j;const S=HV(l,{activatorEvent:m,active:p,activeNodeRect:f,containerNodeRect:g,draggingNodeRect:x.rect,over:v,overlayNodeRect:x.rect,scrollableAncestors:b,scrollableAncestorRects:k,transform:M,windowRect:w}),L=hV(f),N=ez({config:i,draggableNodes:h,droppableContainers:C,measuringConfiguration:y}),I=L?x.setRef:void 0;return s.createElement(KV,null,s.createElement($V,{animation:N},p&&_?s.createElement(JV,{key:_,id:p.id,ref:I,as:c,activatorEvent:m,adjustScale:n,className:d,transition:o,rect:L,style:{zIndex:u,...r},transform:S},a):null))});function nz(e,t,s){const n=e.slice();return n.splice(s<0?n.length+s:s,0,n.splice(t,1)[0]),n}function az(e,t){return e.reduce((e,s,n)=>{const a=t.get(s);return a&&(e[n]=a),e},Array(e.length))}function iz(e){return null!==e&&e>=0}const rz=e=>{let{rects:t,activeIndex:s,overIndex:n,index:a}=e;const i=nz(t,n,s),r=t[a],o=i[a];return o&&r?{x:o.left-r.left,y:o.top-r.top,scaleX:o.width/r.width,scaleY:o.height/r.height}:null},oz={scaleX:1,scaleY:1},lz=e=>{var t;let{activeIndex:s,activeNodeRect:n,index:a,rects:i,overIndex:r}=e;const o=null!=(t=i[s])?t:n;if(!o)return null;if(a===s){const e=i[r];return e?{x:0,y:s<r?e.top+e.height-(o.top+o.height):e.top-o.top,...oz}:null}const l=function(e,t,s){const n=e[t],a=e[t-1],i=e[t+1];if(!n)return 0;if(s<t)return a?n.top-(a.top+a.height):i?i.top-(n.top+n.height):0;return i?i.top-(n.top+n.height):a?n.top-(a.top+a.height):0}(i,a,s);return a>s&&a<=r?{x:0,y:-o.height-l,...oz}:a<s&&a>=r?{x:0,y:o.height+l,...oz}:{x:0,y:0,...oz}};const cz="Sortable",dz=s.createContext({activeIndex:-1,containerId:cz,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:rz,disabled:{draggable:!1,droppable:!1}});function uz(t){let{children:n,id:a,items:i,strategy:r=rz,disabled:o=!1}=t;const{active:l,dragOverlay:c,droppableRects:d,over:u,measureDroppableContainers:m}=BV(),p=HO(cz,a),f=Boolean(null!==c.rect),g=e.useMemo(()=>i.map(e=>"object"==typeof e&&"id"in e?e.id:e),[i]),h=null!=l,C=l?g.indexOf(l.id):-1,x=u?g.indexOf(u.id):-1,v=e.useRef(g),y=!function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let s=0;s<e.length;s++)if(e[s]!==t[s])return!1;return!0}(g,v.current),b=-1!==x&&-1===C||y,k=function(e){return"boolean"==typeof e?{draggable:e,droppable:e}:e}(o);NO(()=>{y&&h&&m(g)},[y,g,h,m]),e.useEffect(()=>{v.current=g},[g]);const w=e.useMemo(()=>({activeIndex:C,containerId:p,disabled:k,disableTransforms:b,items:g,overIndex:x,useDragOverlay:f,sortedRects:az(g,d),strategy:r}),[C,p,k.draggable,k.droppable,b,g,x,d,f,r]);return s.createElement(dz.Provider,{value:w},n)}const mz=e=>{let{id:t,items:s,activeIndex:n,overIndex:a}=e;return nz(s,n,a).indexOf(t)},pz=e=>{let{containerId:t,isSorting:s,wasDragging:n,index:a,items:i,newIndex:r,previousItems:o,previousContainerId:l,transition:c}=e;return!(!c||!n)&&((o===i||a!==r)&&(!!s||r!==a&&t===l))},fz={duration:200,easing:"ease"},gz="transform",hz=zO.Transition.toString({property:gz,duration:0,easing:"linear"}),Cz={roleDescription:"sortable"};function xz(t){let{animateLayoutChanges:s=pz,attributes:n,disabled:a,data:i,getNewIndex:r=mz,id:o,strategy:l,resizeObserverConfig:c,transition:d=fz}=t;const{items:u,containerId:m,activeIndex:p,disabled:f,disableTransforms:g,sortedRects:h,overIndex:C,useDragOverlay:x,strategy:v}=e.useContext(dz),y=function(e,t){var s,n;if("boolean"==typeof e)return{draggable:e,droppable:!1};return{draggable:null!=(s=null==e?void 0:e.draggable)?s:t.draggable,droppable:null!=(n=null==e?void 0:e.droppable)?n:t.droppable}}(a,f),b=u.indexOf(o),k=e.useMemo(()=>({sortable:{containerId:m,index:b,items:u},...i}),[m,i,b,u]),w=e.useMemo(()=>u.slice(u.indexOf(o)),[u,o]),{rect:M,node:_,isOver:j,setNodeRef:S}=WV({id:o,data:k,disabled:y.droppable,resizeObserverConfig:{updateMeasurementsFor:w,...c}}),{active:L,activatorEvent:N,activeNodeRect:I,attributes:T,setNodeRef:A,listeners:E,isDragging:R,over:D,setActivatorNodeRef:H,transform:P}=ZV({id:o,data:k,attributes:{...Cz,...n},disabled:y.draggable}),U=function(){for(var t=arguments.length,s=new Array(t),n=0;n<t;n++)s[n]=arguments[n];return e.useMemo(()=>e=>{s.forEach(t=>t(e))},s)}(S,A),O=Boolean(L),F=O&&!g&&iz(p)&&iz(C),V=!x&&R,z=V&&F?P:null,Z=F?null!=z?z:(null!=l?l:v)({rects:h,activeNodeRect:I,activeIndex:p,overIndex:C,index:b}):null,B=iz(p)&&iz(C)?r({id:o,items:u,activeIndex:p,overIndex:C}):b,q=null==L?void 0:L.id,W=e.useRef({activeId:q,items:u,newIndex:B,containerId:m}),$=u!==W.current.items,G=s({active:L,containerId:m,isDragging:R,isSorting:O,id:o,index:b,items:u,newIndex:W.current.newIndex,previousItems:W.current.items,previousContainerId:W.current.containerId,transition:d,wasDragging:null!=W.current.activeId}),K=function(t){let{disabled:s,index:n,node:a,rect:i}=t;const[r,o]=e.useState(null),l=e.useRef(n);return NO(()=>{if(!s&&n!==l.current&&a.current){const e=i.current;if(e){const t=bF(a.current,{ignoreTransform:!0}),s={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,scaleY:e.height/t.height};(s.x||s.y)&&o(s)}}n!==l.current&&(l.current=n)},[s,n,a,i]),e.useEffect(()=>{r&&o(null)},[r]),r}({disabled:!G,index:b,node:_,rect:M});return e.useEffect(()=>{O&&W.current.newIndex!==B&&(W.current.newIndex=B),m!==W.current.containerId&&(W.current.containerId=m),u!==W.current.items&&(W.current.items=u)},[O,B,m,u]),e.useEffect(()=>{if(q===W.current.activeId)return;if(null!=q&&null==W.current.activeId)return void(W.current.activeId=q);const e=setTimeout(()=>{W.current.activeId=q},50);return()=>clearTimeout(e)},[q]),{active:L,activeIndex:p,attributes:T,data:k,rect:M,index:b,newIndex:B,items:u,isOver:j,isSorting:O,isDragging:R,listeners:E,node:_,overIndex:C,over:D,setNodeRef:U,setActivatorNodeRef:H,setDroppableNodeRef:S,setDraggableNodeRef:A,transform:null!=K?K:Z,transition:function(){if(K||$&&W.current.newIndex===b)return hz;if(V&&!FO(N)||!d)return;if(O||G)return zO.Transition.toString({...d,property:gz});return}()}}function vz(e){if(!e)return!1;const t=e.data.current;return!!(t&&"sortable"in t&&"object"==typeof t.sortable&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable)}const yz=[BF.Down,BF.Right,BF.Up,BF.Left],bz=(e,t)=>{let{context:{active:s,collisionRect:n,droppableRects:a,droppableContainers:i,over:r,scrollableAncestors:o}}=t;if(yz.includes(e.code)){if(e.preventDefault(),!s||!n)return;const t=[];i.getEnabled().forEach(s=>{if(!s||null!=s&&s.disabled)return;const i=a.get(s.id);if(i)switch(e.code){case BF.Down:n.top<i.top&&t.push(s);break;case BF.Up:n.top>i.top&&t.push(s);break;case BF.Left:n.left>i.left&&t.push(s);break;case BF.Right:n.left<i.left&&t.push(s)}});const l=(e=>{let{collisionRect:t,droppableRects:s,droppableContainers:n}=e;const a=lF(t),i=[];for(const r of n){const{id:e}=r,t=s.get(e);if(t){const s=lF(t),n=a.reduce((e,t,n)=>e+aF(s[n],t),0),o=Number((n/4).toFixed(4));i.push({id:e,data:{droppableContainer:r,value:o}})}}return i.sort(rF)})({collisionRect:n,droppableRects:a,droppableContainers:t});let c=cF(l,"id");if(c===(null==r?void 0:r.id)&&l.length>1&&(c=l[1].id),null!=c){const e=i.get(s.id),t=i.get(c),r=t?a.get(t.id):null,l=null==t?void 0:t.node.current;if(l&&r&&e&&t){const s=wF(l).some((e,t)=>o[t]!==e),a=kz(e,t),i=function(e,t){if(!vz(e)||!vz(t))return!1;if(!kz(e,t))return!1;return e.data.current.sortable.index<t.data.current.sortable.index}(e,t),c=s||!a?{x:0,y:0}:{x:i?n.width-r.width:0,y:i?n.height-r.height:0},d={x:r.left,y:r.top};return c.x&&c.y?d:OO(d,c)}}}};function kz(e,t){return!(!vz(e)||!vz(t))&&e.data.current.sortable.containerId===t.data.current.sortable.containerId}const wz=e.memo(({id:e,option:s,index:n,isFocused:a,onHover:i,onClick:r})=>{const{attributes:o,listeners:l,setNodeRef:c,transform:d,transition:u,isDragging:m}=xz({id:e}),p={transform:zO.Transform.toString(d),transition:u};return t.jsx(yO,{variant:"rank",option:s,index:n,isFocused:a,isDragging:m,sortableRef:c,sortableStyle:p,sortableAttributes:o,sortableListeners:l,onHover:i,onClick:r})});wz.displayName="SortableItem";const Mz=e.memo(({question:s,rankings:n,onReorder:a,onItemClick:i})=>{const[r,o]=e.useState(-1),l=sF(tF(tV,{activationConstraint:{distance:5}}),tF(YF,{coordinateGetter:bz})),c=e.useCallback(e=>{const{active:t,over:s}=e;if(s&&t.id!==s.id){const e=n.indexOf(t.id),i=n.indexOf(s.id);a(e,i)}},[n,a]),d=n.map(e=>s.options.find(t=>t.id===e)).filter(Boolean);return t.jsx("div",{className:"flex-1 p-1.5",children:t.jsx("div",{className:"flex flex-col",children:t.jsx(FV,{sensors:l,collisionDetection:uF,onDragEnd:c,children:t.jsx(uz,{items:n,strategy:lz,children:d.map((e,s)=>{const n=s===d.length-1;return t.jsxs("div",{children:[t.jsx(wz,{id:e.id,option:e,index:s,isFocused:r===s,onHover:e=>o(e?s:-1),onClick:i}),!n&&t.jsx("div",{className:"h-[0.5px] bg-alpha-2 mx-3 transition-opacity duration-150 "+(r===s||r===s+1?"opacity-0":"")})]},e.id)})})})})})});Mz.displayName="RankPrioritiesQuestion";const _z=e.memo(({question:e,selections:s,rankings:n,focusedOptionIndex:a,listboxRef:i,onSelectSingleAndAdvance:r,onToggleMulti:o,onReorder:l,setFocusedOptionIndex:c,customText:d,onCustomTextChange:u,onCustomTextSubmit:m,customInputRef:p,isLastQuestion:f,onAdvanceToNext:g,onRankItemClick:h,onSkip:C})=>{const x=JS(),v=e.type||"single_select",y="multi_select"===v,b="rank_priorities"===v;if("free_form"===v)return t.jsx(CO,{question:e,customText:d,onCustomTextChange:u,onCustomTextSubmit:m,customInputRef:p,isLastQuestion:f,onAdvanceToNext:g,onSkip:C});if(b)return t.jsx("div",{ref:i,tabIndex:0,role:"group","aria-label":e.question,className:"outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-stronger rounded-lg",children:t.jsx(Mz,{question:e,rankings:n,onReorder:l,onItemClick:h})});const k=e.options.length,w=a===k,M=d.trim().length>0;return t.jsxs("div",{className:"flex-1 p-1.5",children:[t.jsx("div",{ref:i,tabIndex:0,role:"listbox","aria-label":e.question,"aria-multiselectable":y,"aria-activedescendant":a<e.options.length?`ask-user-option-${e.id}-${a}`:void 0,onFocus:t=>{t.target===t.currentTarget&&a>=e.options.length&&c(0)},className:"flex flex-col outline-none transition-opacity duration-150 "+(!y&&M&&w?"opacity-40 pointer-events-none":""),children:e.options.map((n,i)=>{const l=s.includes(n.id),d=a===i,u=i===e.options.length-1;return t.jsxs("div",{role:"presentation",children:[t.jsx(yO,{variant:y?"multi-select":"single-select",option:n,index:i,id:`ask-user-option-${e.id}-${i}`,role:"option","aria-selected":l,managedFocus:!0,isSelected:l,isFocused:d,isLastQuestion:f,onHover:d?void 0:()=>c(i),onClick:()=>{c(i),y?o(n.id):r(n.id)}}),!u&&t.jsx("div",{"aria-hidden":"true",className:"h-[0.5px] bg-alpha-2 mx-3 transition-opacity duration-150 "+(a===i||a===i+1?"opacity-0":"")})]},n.id)})}),t.jsx("div",{"aria-hidden":"true",className:"h-[0.5px] bg-alpha-2 mx-3 transition-opacity duration-150 "+(a===e.options.length-1||w?"opacity-0":"")}),t.jsxs("div",{className:"group/row flex w-full items-center gap-2.5 h-11 compact:h-9 px-2.5 compact:px-2 text-left cursor-text rounded-xl "+(w?"bg-alpha-1":""),onMouseMove:w?void 0:()=>c(k),onClick:()=>{p.current?.focus(),c(k)},children:[y?t.jsx("div",{className:"flex size-7 compact:size-6 shrink-0 items-center justify-center","aria-hidden":!0,children:t.jsx("span",{"data-size":"sm",className:"flex size-[var(--cds-checkbox)] items-center justify-center rounded-[var(--cds-checkbox-radius)] "+(M?"bg-fill-accent text-on-accent":"border border-strong"),children:M&&t.jsx($L,{name:"Check",size:"xs"})})}):t.jsx("span",{className:"relative flex size-7 compact:size-6 shrink-0 items-center justify-center rounded-lg overflow-hidden "+(w?"bg-alpha-2":"bg-alpha-1"),children:t.jsx($L,{name:"Edit",customSize:14,className:w||M?"text-primary":"text-secondary"})}),t.jsx("input",{ref:e=>{p.current=e},type:"text",value:d,onFocus:()=>c(k),onChange:e=>{u(e.target.value),e.target.value.length>0&&c(k)},onKeyDown:e=>{e.nativeEvent.isComposing?e.stopPropagation():"Enter"===e.key&&(e.metaKey||e.ctrlKey)&&d.trim()?(e.preventDefault(),e.stopPropagation(),m()):"ArrowUp"===e.key||"ArrowDown"===e.key||"Enter"===e.key?e.preventDefault():"ArrowLeft"===e.key||"ArrowRight"===e.key?e.stopPropagation():1!==e.key.length||e.ctrlKey||e.metaKey||e.altKey||e.stopPropagation()},placeholder:x.formatMessage({defaultMessage:"Something else",id:"qm/eL5Y8Fl"}),"aria-label":x.formatMessage({defaultMessage:"Something else",id:"qm/eL5Y8Fl"}),className:"flex-1 min-w-0 bg-transparent text-sm text-primary placeholder:text-muted outline-none ring-0 border-0 shadow-none focus:ring-0 focus:!outline-none focus:border-0 focus:shadow-none"}),!y&&!b&&!M&&C&&t.jsx(rN,{size:"sm","data-widget-action":!0,onClick:e=>{e.stopPropagation(),C()},className:"shrink-0",children:t.jsx(XS,{defaultMessage:"Skip",id:"/4tOwTiCH6"})}),!y&&!b&&M&&t.jsx(rN,{variant:f?"brand":"primary",iconOnly:!0,size:"sm",icon:f?"ArrowUp":"ArrowRight","data-widget-action":!0,onClick:e=>{e.stopPropagation(),f?m():g()},"aria-label":f?x.formatMessage({defaultMessage:"Submit",id:"wSZR47Y5kj"}):x.formatMessage({defaultMessage:"Next",id:"9+DdtuCqLw"})})]})]})});_z.displayName="QuestionSection";const jz=e.memo(({isMultiSelect:e,isRanking:s,selectionCount:n,isLastQuestion:a,onSubmit:i,onNext:r})=>{const o=JS();if(!e&&!s)return null;const l=n>0||s,c=t.jsx(rN,{variant:a?"brand":"primary",onClick:a?i:r,iconOnly:!0,size:"sm",icon:a?"ArrowUp":"ArrowRight","data-widget-action":!0,disabled:!l,tooltip:!!l&&void 0,"aria-label":a?o.formatMessage({defaultMessage:"Submit",id:"wSZR47Y5kj"}):o.formatMessage({defaultMessage:"Next",id:"9+DdtuCqLw"})});return t.jsx("div",{className:"flex items-center gap-3 ml-auto",children:l?c:t.jsx(iN,{side:"top",content:o.formatMessage({defaultMessage:"Select an option to send",id:"LU79te8ajD"}),children:t.jsx("span",{children:c})})})});jz.displayName="FooterButton";const Sz=e.memo(function({data:s,onFeedbackTrigger:n,onEscape:a,chromeless:i}){const{state:r,currentQuestionIndex:o,setCurrentQuestionIndex:l,selectSingleOption:c,toggleOption:d,reorderRanking:u,submitAnswers:m,bannerRef:p,getCustomText:f,setCustomText:g,submitCustomText:h,skipQuestion:C}=uO(),x=JS(),v=se(),{shownRef:y,trackClick:b}=ne("ask_user_input",v),[k,w]=e.useState(0),[M,_]=e.useState(null),[j,S]=e.useState(!1),L=e.useRef(null),N=e.useRef(null),I=e.useCallback(()=>{S(!0),setTimeout(()=>S(!1),600)},[]),T=s.questions[o]?.id,A=T?f(T):"",E=e.useCallback(e=>{T&&g(T,e)},[T,g]),R=e.useCallback(e=>{p&&"current"in p&&(p.current=e),y(e)},[p,y]),D=e.useContext(lO),H=e.useRef(!1),P=e.useCallback(e=>{N.current=e,e&&D&&!H.current&&(H.current=!0,window.setTimeout(()=>{N.current===e&&e.focus({preventScroll:!0})},0))},[D]),U=e.useCallback(()=>{H.current=!1,w(0)},[]);e.useEffect(()=>{w(0)},[o]);const O=s.questions[o],F=o===s.questions.length-1,V=e.useRef(r.customTexts);V.current=r.customTexts;const z=e.useCallback(()=>{n&&F&&n({questions:s.questions,customTexts:V.current,action:"skip_last"}),C(),U()},[n,F,s.questions,C,U]),Z=s.questions.length>1,B=O?.type||"single_select",q="rank_priorities"===B,W="multi_select"===B,$="free_form"===B,G=!!O&&(!!q||((r.selections[O.id]||[]).length>0||A.trim().length>0)),K=O?(r.selections[O.id]||[]).length+(A.trim().length>0?1:0):0,Y=e.useCallback(()=>{F||(_("left"),l(o+1),U())},[F,o,l,U]),Q=e.useCallback(()=>{o>0&&(_("right"),l(o-1),U())},[o,l,U]),J=e.useCallback(e=>{b("option_selected"),c(O.id,e),F||setTimeout(()=>{_("left"),l(o+1),U()},150)},[O.id,c,F,o,l,U,b]),X=e.useCallback(e=>{b("option_selected"),d(O.id,e)},[O.id,d,b]),ee=e.useCallback((e,t)=>u(O.id,e,t),[O.id,u]),te=e.useCallback(()=>{b("submitted"),m()},[b,m]),ae=e.useCallback(()=>{b("submitted"),h()},[b,h]),ie=e.useCallback(e=>{if(!O)return;if(e.nativeEvent.isComposing)return;if(q&&N.current?.querySelector('[aria-pressed="true"]'))return void((" "===e.key||e.key.startsWith("Arrow"))&&e.preventDefault());if((" "===e.key||"Enter"===e.key&&!e.metaKey&&!e.ctrlKey)&&e.target.closest("[data-widget-action]"))return;const t=O.options.length,s=t,n=e=>{e===s?L.current?.focus():(L.current?.blur(),N.current?.focus()),w(e)},i=e=>{const t=O.options[e];t&&(b("option_selected"),W?d(O.id,t.id):(c(O.id,t.id),F||setTimeout(()=>{_("left"),l(o+1),U()},150)))};switch(e.key){case"Escape":e.preventDefault(),e.stopPropagation(),a?.();break;case"ArrowUp":if(e.preventDefault(),q){N.current?.contains(e.target)||N.current?.focus();break}n(k<=0?s:k-1);break;case"ArrowDown":if(e.preventDefault(),q){N.current?.contains(e.target)||N.current?.focus();break}n(k>=s?0:k+1);break;case"Enter":if(e.preventDefault(),e.metaKey||e.ctrlKey)return void(A.trim()?$&&!F?Y():ae():G&&(F?te():Y()));if(q)break;k<t?i(k):k===s&&A.trim()&&!W&&(F?ae():Y());break;case" ":if(e.preventDefault(),e.stopPropagation(),q)break;k<t&&i(k);break;case"ArrowLeft":Z&&o>0&&(e.preventDefault(),_("right"),l(o-1),U());break;case"ArrowRight":Z&&!F&&(e.preventDefault(),Y());break;default:{if(q||$)break;if(e.ctrlKey||e.metaKey||e.altKey)break;const a=Number.parseInt(e.key,10);if(!Number.isNaN(a)&&a>=1&&a<=t){e.preventDefault(),e.stopPropagation(),n(a-1),i(a-1);break}1===e.key.length&&(e.preventDefault(),E(A+e.key),w(s),L.current?.focus());break}}},[O,k,W,q,$,A,d,c,te,ae,G,F,Y,Z,o,l,E,U,b,a]);return t.jsxs("div",{ref:R,"data-ask-user-input-banner":!0,tabIndex:-1,onKeyDown:ie,className:i?"flex flex-col outline-none":"!box-content flex flex-col bg-surface-3 mx-2 md:mx-0 transition-all duration-200 relative z-10 rounded-2xl outline-none overflow-hidden pt-3 shadow-[0_0.25rem_1.25rem_var(--cds-shadow-color),0_0_0_0.5px_color-mix(in_srgb,var(--cds-border-strong)_30%,transparent)]",children:[t.jsxs("div",{className:"flex items-center gap-2 pl-4 pb-1.5",style:{paddingRight:"12px"},children:[t.jsx("span",{className:"flex-1 text-primary font-claude-response",children:O?.question}),Z&&!i&&t.jsxs("div",{className:"flex items-center gap-0.5 shrink-0",children:[t.jsx(rN,{variant:"ghost",iconOnly:!0,size:"xs",icon:"CaretLeft","data-widget-action":!0,onClick:Q,disabled:0===o,className:"text-muted","aria-label":x.formatMessage({defaultMessage:"Previous question",id:"aXluVtf7Ei"})}),t.jsx("span",{className:"text-sm text-muted tabular-nums",children:t.jsx(XS,{defaultMessage:"{current} of {total}",id:"stJYEYsqnV",values:{current:o+1,total:s.questions.length}})}),t.jsx(rN,{variant:"ghost",iconOnly:!0,size:"xs",icon:"CaretRight","data-widget-action":!0,onClick:Y,disabled:F,className:"text-muted","aria-label":x.formatMessage({defaultMessage:"Next question",id:"vdq4Hgc2QP"})})]}),!i&&t.jsx(rN,{variant:"ghost",iconOnly:!0,size:"xs",icon:"X","data-widget-action":!0,onClick:()=>a?.(),className:"text-muted shrink-0","aria-label":x.formatMessage({defaultMessage:"Minimize",id:"TuSL+ZooiG"})})]}),O&&t.jsx("div",{style:M?{animation:("left"===M?"slideInFromRight":"slideInFromLeft")+" 0.2s ease-out"}:void 0,onAnimationEnd:()=>_(null),children:t.jsx(_z,{question:O,selections:r.selections[O.id]||[],rankings:r.rankings[O.id]||[],focusedOptionIndex:k,listboxRef:P,onSelectSingleAndAdvance:J,onToggleMulti:X,onReorder:ee,setFocusedOptionIndex:w,customText:A,onCustomTextChange:E,onCustomTextSubmit:ae,customInputRef:L,isLastQuestion:F,onAdvanceToNext:Y,onRankItemClick:I,onSkip:z})},O.id),(W||q)&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"h-[0.5px] bg-alpha-2 mx-0"}),t.jsxs("div",{className:"flex items-center justify-between gap-1 pl-5 pr-4 py-1.5 font-small text-muted min-h-[48px]",children:[q?t.jsx("span",{className:j?"text-primary":"",style:{display:"inline-block",animation:j?"shake 0.4s ease-in-out":void 0},children:t.jsx(XS,{defaultMessage:"Drag to re-order your priorities",id:"z/Defo9709"})}):t.jsx("span",{children:t.jsx(XS,{defaultMessage:"{count} selected",id:"NKPfmmHQdx",values:{count:K}})}),t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(rN,{size:"sm","data-widget-action":!0,onClick:z,children:t.jsx(XS,{defaultMessage:"Skip",id:"/4tOwTiCH6"})}),t.jsx(jz,{isMultiSelect:W,isRanking:q,selectionCount:K,isLastQuestion:F,onSubmit:te,onNext:Y})]})]})]}),t.jsx("style",{jsx:!0,children:"\n        @keyframes slideInFromRight {\n          from {\n            transform: translateX(12px);\n            opacity: 0;\n          }\n          to {\n            transform: translateX(0);\n            opacity: 1;\n          }\n        }\n        @keyframes slideInFromLeft {\n          from {\n            transform: translateX(-12px);\n            opacity: 0;\n          }\n          to {\n            transform: translateX(0);\n            opacity: 1;\n          }\n        }\n        @keyframes shimmer {\n          0% {\n            background-position: 100% 0;\n          }\n          100% {\n            background-position: -100% 0;\n          }\n        }\n        @keyframes shake {\n          0%,\n          100% {\n            transform: translateX(0) scale(1.02) rotate(0deg);\n          }\n          20% {\n            transform: translateX(-3px) scale(1.02) rotate(-1deg);\n          }\n          40% {\n            transform: translateX(3px) scale(1.02) rotate(1deg);\n          }\n          60% {\n            transform: translateX(-2px) scale(1.02) rotate(-0.5deg);\n          }\n          80% {\n            transform: translateX(2px) scale(1.02) rotate(0.5deg);\n          }\n        }\n      "})]})});function Lz({children:e,draftKey:s,initialQuestionIndex:n}){return t.jsx(hO,{draftKey:s,initialQuestionIndex:n,children:e})}Sz.displayName="AskUserInputWidget";const Nz=fT(e=>({feedback:null,setFeedback:t=>e({feedback:t}),clearFeedback:()=>e({feedback:null})}));function Iz(){return!y("raven_desktop_download_disabled")}const Tz={dateAdded:"2026-07-01",priority:cI.HIGH},Az="cowork-upload-coachmark-shown-at",Ez="cowork-upload-coachmark-dismissed-at";function Rz(e){try{return Date.parse(localStorage.getItem(e)??"")}catch{return NaN}}function Dz(e){try{localStorage.setItem(e,(new Date).toISOString())}catch{}}function Hz(){const e=Rz(Ez);if(!Number.isNaN(e)&&Date.now()-e<2592e6)return!1;const t=Rz(Az);return Number.isNaN(t)||Date.now()-t>=2592e5}const Pz=e.memo(function({anchorRef:s}){const n=JS(),{track:a}=ae(),{isAgentMode:i}=J(),r=ie(),o=i||r,l=re(e=>e.attachments.length>0||e.files.length>0),c=m(),d=Iz(),[u,p]=e.useState(null);e.useEffect(()=>{!c&&l&&null===u&&oe().then(e=>p(e))},[c,l,u]);const f=null!==u&&"desktop"===ue(u)&&"other"!==u,[g]=le(Hz,!1),[h,C]=e.useState(!1),[x,v]=e.useState(!1),y=o&&!c&&l&&d&&f,b=ce("cowork_upload_desktop_coachmark_main",y),k=oI(e=>null!==e.type),{shouldShow:w}=lI("cowork-upload-desktop-coachmark",Tz,{enabled:b&&y&&g&&!h&&!x&&!k}),M=e.useRef(!1);e.useEffect(()=>{if(w&&!M.current){const e=setTimeout(()=>{M.current=!0,Dz(Az),a({event_key:"claudeai.cowork_upload_coachmark.displayed"})},500);return()=>clearTimeout(e)}!w&&M.current&&v(!0)},[w,a]);const _=e.useRef(!1),j=e.useCallback(()=>{_.current||(_.current=!0,C(!0),Dz(Ez),a({event_key:"claudeai.cowork_upload_coachmark.dismissed"}))},[a]),{downloadAndOpenModal:S,modal:L}=de("cowork_upload_coachmark"),N=e.useCallback(()=>{_.current=!0,a({event_key:"claudeai.cowork_upload_coachmark.cta_clicked",platform:u??void 0}),Dz(Ez),C(!0),S(u)},[a,u,S]),I=n.formatMessage({defaultMessage:"Save time on file uploads",id:"gspE4I5llo"}),T=e.useCallback(()=>s.current?.querySelector('[data-testid="file-thumbnail"]')??s.current,[s]);return t.jsxs(t.Fragment,{children:[w&&t.jsx(oN,{open:!0,onOpenChange:e=>{e||j()},anchor:T,side:"top",align:"start",introDelay:.5,variant:"accent","aria-label":I,showClose:!0,title:I,action:t.jsx(rN,{size:"sm",variant:"onContent",onClick:N,children:t.jsx(XS,{defaultMessage:"Get desktop app",id:"VH2ERZ3Ola"})}),children:t.jsx(XS,{defaultMessage:"With the desktop app, Claude can access your folders directly so you don't have to add files manually.",id:"5bfeWewsjV"})}),L]})}),Uz="composer_upsell_ledger",Oz="upsell_family_shown:",Fz={globalLastShownAt:0,byBanner:{}};let Vz=null;function zz(){if("undefined"==typeof window)return Fz;let e;try{e=localStorage.getItem(Uz)}catch{return Vz??Fz}if(!e)return Vz??Fz;try{const t=JSON.parse(e);if("object"==typeof t&&null!==t&&"number"==typeof t.globalLastShownAt&&"object"==typeof t.byBanner)return t}catch{}return Fz}const Zz=864e5;function Bz(e,t){const s=zz(),n=Date.now();if(n-s.globalLastShownAt<t.globalCooldownDays*Zz)return!1;const a=s.byBanner[e];if(!a)return!0;if(void 0!==t.maxLifetimeShows&&a.showCount>=t.maxLifetimeShows)return!1;const i=t.bannerCooldownOverrides?.[e]??t.bannerCooldownDays;return n-a.lastShownAt>=i*Zz}function qz(e){const t=zz(),s=t.byBanner[e];!function(e){Vz=e;try{localStorage.setItem(Uz,JSON.stringify(e))}catch{}}({globalLastShownAt:Date.now(),byBanner:{...t.byBanner,[e]:{lastShownAt:Date.now(),showCount:(s?.showCount??0)+1}}})}function Wz(e,t){try{sessionStorage.setItem(`${Oz}${e}:${t}`,(new Date).toISOString())}catch{}}function $z(e,t){if("undefined"==typeof window)return!1;try{return null!==sessionStorage.getItem(`${Oz}${e}:${t}`)}catch{return!1}}function Gz(e){const{files_v2:t,files:s}=e;return(t&&t.length>0?t:s??[]).map(e=>({...e,serverFileUuid:e.serverFileUuid??e.file_uuid}))}const Kz="c4excel_chat_banner_upsell",Yz="c4excel_cowork_banner_upsell";function Qz(e){return`c4excel_upsell_display_count_${e}`}function Jz(e){return`c4excel_upsell_last_shown_${e}`}const Xz=["xls","xlsx","xlsb","xlsm","xlt","xltm","xltx","csv"];function eZ(e){return"undefined"==typeof localStorage?0:parseInt(localStorage.getItem(Qz(e))||"0",10)}function tZ(e){const t=e.toLowerCase();return Xz.some(e=>t.endsWith(`.${e}`))}function sZ({lastMessage:e,previousMessage:t,isFinanceUser:s}){const n=(()=>{if("human"!==t?.sender)return!1;const e=t.attachments?.some(e=>Xz.includes(e.file_type));if(e)return!0;return Gz(t).some(e=>tZ(e.file_name))})(),a="assistant"===e?.sender&&(e.content?.some(e=>{if("tool_use"!==e.type||!("name"in e))return!1;const t=e;return("create_file"===t.name||"Write"===t.name)&&(!!t.input&&tZ(String(t.input.file_name??t.input.name??t.input.filename??t.input.file_path??t.input.path??"")))})??!1);return n?"upload":a?"generate":s?"finance_persona":null}function nZ({conversationUuid:t,isStreaming:s,isCowork:n}){const a=n?"cowork":"chat",i=n?Yz:Kz,r=he(Kz,"value",!1,L),o=n||r,{isDismissed:l,dismiss:c}=me(),{account:d}=v(),u="Finance"===d?.settings?.work_function,m=Ce(e=>{if(!t)return null;const s=e.pathUuidsByConversation[t]||[];return sZ({lastMessage:e.messageByUuid[s.at(-1)],previousMessage:e.messageByUuid[s.at(-2)],isFinanceUser:u})}),p=Ce(e=>{if(!t)return;const s=(e.pathUuidsByConversation[t]||[]).at(-1);return s?e.messageByUuid[s]?.stop_reason:void 0}),f=e.useMemo(()=>m&&o?eZ(a)>=3||function(e){if("undefined"==typeof localStorage)return!1;const t=localStorage.getItem(Jz(e));return!!t&&Date.now()-new Date(t).getTime()<2592e5}(a)?null:m:null,[o,a,m]);return t&&o?l(i)||s||"error"===p?null:f?{triggerType:f,surface:a,dismiss:()=>c(i)}:null:null}function aZ({triggerType:s,surface:n,onDismiss:a,onAction:i,onShown:r}){const o=ae(),l=e.useRef(!1),c=JS(),{dismiss:d}=me(),u=pe(),m="cowork"===n?Yz:Kz,{launchOfficeAddinInstall:p,fallbackMessage:f}=fe(`c4_excel_upsell_${n}`);e.useEffect(()=>{if(!l.current){if(l.current=!0,r)r();else{!function(e){localStorage.setItem(Jz(e),(new Date).toISOString())}(n);const e=function(e){const t=eZ(e)+1;return localStorage.setItem(Qz(e),String(t)),t}(n);e>=3&&d(m)}Wz("c4excel","postsend"),o.track({event_key:"claudeai.c4excel_chat_banner_upsell.displayed",trigger_type:s,surface:n})}},[o,d,m,r,n,s]);const g=e.useRef(!1),h=()=>{o.track({event_key:"claudeai.c4excel_chat_banner_upsell.cta_clicked",trigger_type:s,surface:n}),u?(g.current=!0,p("excel")):((i??a)(),window.open("/upgrade","_blank"))},C=()=>{o.track({event_key:"claudeai.c4excel_chat_banner_upsell.dismissed",trigger_type:s,surface:n}),g.current?(i??a)():a()},x=t.jsx(XS,{defaultMessage:"Claude works directly in Excel",id:"UC+a/EUT84"}),v=t.jsx(XS,{defaultMessage:"Let Claude handle formulas, formatting, and data cleanup right inside your spreadsheets.",id:"wQyVa+V1aG"}),y=u?t.jsx(XS,{defaultMessage:"Install",id:"ubmFc8rrea"}):t.jsx(XS,{defaultMessage:"Upgrade to try",id:"AHF8t0j/O1"}),b=c.formatMessage({defaultMessage:"Dismiss",id:"TDaF6JVgG6"});return t.jsxs("div",{className:"mx-2 mb-3 md:mx-0",children:[t.jsx("style",{children:"\n        @keyframes bannerSlideUp {\n          from {\n            opacity: 0;\n            transform: translateY(8px);\n          }\n          to {\n            opacity: 1;\n            transform: translateY(0);\n          }\n        }\n      "}),t.jsxs("div",{className:"relative flex min-h-[68px] items-center gap-3 rounded-[20px] border-0.5 border-border-200 bg-bg-000 p-5 shadow-sm",style:{animation:"bannerSlideUp 0.3s ease-out"},children:[t.jsx("div",{className:"flex-shrink-0",children:t.jsx(ge,{asset:pA,size:"sm"})}),t.jsxs("div",{className:"min-w-0 flex-1 pr-8 md:pr-0",children:[t.jsx("p",{className:"font-base text-text-100 font-bold",children:x}),t.jsx("p",{className:"font-base mt-1 text-text-300 max-w-sm",children:v}),f&&t.jsx("div",{className:"mt-2",children:f}),t.jsx("div",{className:"mt-3 md:hidden",children:t.jsx(rN,{variant:"primary",size:"sm",onClick:h,children:y})})]}),t.jsxs("div",{className:"hidden items-center gap-2 md:flex md:flex-shrink-0",children:[t.jsx(rN,{variant:"primary",size:"sm",onClick:h,children:y}),t.jsx(rN,{size:"sm",variant:"ghost",iconOnly:!0,icon:"X",onClick:C,"aria-label":b})]}),t.jsx("div",{className:"absolute right-4 top-4 md:hidden",children:t.jsx(rN,{size:"sm",variant:"ghost",iconOnly:!0,icon:"X",onClick:C,"aria-label":b})})]})]})}const iZ="c4ppt_chat_banner_upsell",rZ="c4ppt_upsell_display_count",oZ="c4ppt_upsell_last_shown",lZ=["ppt","pptx","pptm","potx","potm","ppsx","ppsm"],cZ=new RegExp(`\\.(${lZ.join("|")})\\b`,"i");function dZ(){return"undefined"==typeof localStorage?0:parseInt(localStorage.getItem(rZ)||"0",10)}function uZ(e){const t=e.toLowerCase();return lZ.some(e=>t.endsWith(`.${e}`))}function mZ({lastMessage:e,previousMessage:t}){const s=(()=>{if("human"!==t?.sender)return!1;const e=t.attachments?.some(e=>lZ.includes(e.file_type));if(e)return!0;return Gz(t).some(e=>uZ(e.file_name))})(),n="assistant"===e?.sender&&(e.content?.some(e=>{if("tool_use"!==e.type||!("name"in e))return!1;const t=e;if(!t.input)return!1;if(("create_file"===t.name||"Write"===t.name)&&uZ(String(t.input.file_name??t.input.name??t.input.filename??t.input.file_path??t.input.path??"")))return!0;if("bash_tool"===t.name||"Bash"===t.name){const e=String(t.input.command??"");if(cZ.test(e))return!0}return!1})??!1);return s?"upload":n?"generate":null}function pZ({conversationUuid:t,isStreaming:s,isCowork:n}){const a=n?"cowork":"chat",{isDismissed:i,dismiss:r}=me(),o=Ce(e=>{if(!t)return null;const s=e.pathUuidsByConversation[t]||[];return mZ({lastMessage:e.messageByUuid[s.at(-1)],previousMessage:e.messageByUuid[s.at(-2)]})}),l=Ce(e=>{if(!t)return;const s=(e.pathUuidsByConversation[t]||[]).at(-1);return s?e.messageByUuid[s]?.stop_reason:void 0}),c=e.useMemo(()=>o?dZ()>=3||function(){if("undefined"==typeof localStorage)return!1;const e=localStorage.getItem(oZ);return!!e&&Date.now()-new Date(e).getTime()<2592e5}()?null:o:null,[o]);return t?i(iZ)||s||"error"===l?null:c?{triggerType:c,surface:a,dismiss:()=>r(iZ)}:null:null}function fZ({triggerType:s,surface:n,onDismiss:a,onAction:i,onShown:r}){const o=ae(),l=e.useRef(!1),c=JS(),{dismiss:d}=me(),u=pe(),{launchOfficeAddinInstall:m,fallbackMessage:p}=fe(`c4_ppt_upsell_${n}`);e.useEffect(()=>{if(!l.current){if(l.current=!0,r)r();else{localStorage.setItem(oZ,(new Date).toISOString());(function(){const e=dZ()+1;return localStorage.setItem(rZ,String(e)),e})()>=3&&d(iZ)}Wz("c4ppt","postsend"),o.track({event_key:"claudeai.c4ppt_chat_banner_upsell.displayed",trigger_type:s,surface:n})}},[o,d,r,n,s]);const f=e.useRef(!1),g=()=>{o.track({event_key:"claudeai.c4ppt_chat_banner_upsell.cta_clicked",trigger_type:s,surface:n}),u?(f.current=!0,m("powerpoint")):((i??a)(),window.open("/upgrade","_blank"))},h=()=>{o.track({event_key:"claudeai.c4ppt_chat_banner_upsell.dismissed",trigger_type:s,surface:n}),f.current?(i??a)():a()},C=t.jsx(XS,{defaultMessage:"Claude works directly in PowerPoint",id:"XhMavvAI7M"}),x=t.jsx(XS,{defaultMessage:"Claude uses your layouts, fonts, and templates to keep every slide on-brand.",id:"WU2fOEXp5S"}),v=u?t.jsx(XS,{defaultMessage:"Install",id:"ubmFc8rrea"}):t.jsx(XS,{defaultMessage:"Upgrade to try",id:"AHF8t0j/O1"}),y=c.formatMessage({defaultMessage:"Dismiss",id:"TDaF6JVgG6"});return t.jsxs("div",{className:"mx-2 mb-3 md:mx-0",children:[t.jsx("style",{children:"\n        @keyframes bannerSlideUp {\n          from {\n            opacity: 0;\n            transform: translateY(8px);\n          }\n          to {\n            opacity: 1;\n            transform: translateY(0);\n          }\n        }\n      "}),t.jsxs("div",{className:"relative flex min-h-[68px] items-center gap-3 rounded-[20px] border-0.5 border-border-200 bg-bg-000 p-5 shadow-sm",style:{animation:"bannerSlideUp 0.3s ease-out"},children:[t.jsx("div",{className:"flex-shrink-0",children:t.jsx(ge,{asset:fA,size:"sm"})}),t.jsxs("div",{className:"min-w-0 flex-1 pr-8 md:pr-0",children:[t.jsx("p",{className:"font-base text-text-100 font-bold",children:C}),t.jsx("p",{className:"font-base mt-1 text-text-300 max-w-sm",children:x}),p&&t.jsx("div",{className:"mt-2",children:p}),t.jsx("div",{className:"mt-3 md:hidden",children:t.jsx(rN,{variant:"primary",size:"sm",onClick:g,children:v})})]}),t.jsxs("div",{className:"hidden items-center gap-2 md:flex md:flex-shrink-0",children:[t.jsx(rN,{variant:"primary",size:"sm",onClick:g,children:v}),t.jsx(rN,{size:"sm",variant:"ghost",iconOnly:!0,icon:"X",onClick:h,"aria-label":y})]}),t.jsx("div",{className:"absolute right-4 top-4 md:hidden",children:t.jsx(rN,{size:"sm",variant:"ghost",iconOnly:!0,icon:"X",onClick:h,"aria-label":y})})]})]})}const gZ="c4word_chat_banner_upsell",hZ="c4word_upsell_display_count",CZ="c4word_upsell_last_shown",xZ=["doc","docx","docm","dotx","dotm","rtf"],vZ=new RegExp(`\\.(${xZ.join("|")})\\b`,"i");function yZ(){return"undefined"==typeof localStorage?0:parseInt(localStorage.getItem(hZ)||"0",10)}function bZ(e){const t=e.toLowerCase();return xZ.some(e=>t.endsWith(`.${e}`))}function kZ({lastMessage:e,previousMessage:t}){const s=(()=>{if("human"!==t?.sender)return!1;const e=t.attachments?.some(e=>xZ.includes(e.file_type));if(e)return!0;return Gz(t).some(e=>bZ(e.file_name))})(),n="assistant"===e?.sender&&(e.content?.some(e=>{if("tool_use"!==e.type||!("name"in e))return!1;const t=e;if(!t.input)return!1;if(("create_file"===t.name||"Write"===t.name)&&bZ(String(t.input.file_name??t.input.name??t.input.filename??t.input.file_path??t.input.path??"")))return!0;if("bash_tool"===t.name||"Bash"===t.name){const e=String(t.input.command??"");if(vZ.test(e))return!0}return!1})??!1);return s?"upload":n?"generate":null}function wZ({conversationUuid:t,isStreaming:s,isCowork:n}){const a=n?"cowork":"chat",i=xe(),{isDismissed:r,dismiss:o}=me(),l=Ce(e=>{if(!t)return null;const s=e.pathUuidsByConversation[t]||[];return kZ({lastMessage:e.messageByUuid[s.at(-1)],previousMessage:e.messageByUuid[s.at(-2)]})}),c=Ce(e=>{if(!t)return;const s=(e.pathUuidsByConversation[t]||[]).at(-1);return s?e.messageByUuid[s]?.stop_reason:void 0}),d=e.useMemo(()=>l?yZ()>=3||function(){if("undefined"==typeof localStorage)return!1;const e=localStorage.getItem(CZ);return!!e&&Date.now()-new Date(e).getTime()<2592e5}()?null:l:null,[l]);return t&&i?r(gZ)||s||"error"===c?null:d?{triggerType:d,surface:a,dismiss:()=>o(gZ)}:null:null}function MZ({triggerType:s,surface:n,onDismiss:a,onAction:i,onShown:r}){const o=ae(),l=e.useRef(!1),c=JS(),{dismiss:d}=me(),u=pe(),{launchOfficeAddinInstall:m,fallbackMessage:p}=fe(`c4_word_upsell_${n}`);e.useEffect(()=>{if(!l.current){if(l.current=!0,r)r();else{localStorage.setItem(CZ,(new Date).toISOString());(function(){const e=yZ()+1;return localStorage.setItem(hZ,String(e)),e})()>=3&&d(gZ)}o.track({event_key:"claudeai.c4word_chat_banner_upsell.displayed",trigger_type:s,surface:n})}},[o,d,r,n,s]);const f=e.useRef(!1),g=()=>{o.track({event_key:"claudeai.c4word_chat_banner_upsell.cta_clicked",trigger_type:s,surface:n}),u?(f.current=!0,m("word")):((i??a)(),window.open("/upgrade","_blank"))},h=()=>{o.track({event_key:"claudeai.c4word_chat_banner_upsell.dismissed",trigger_type:s,surface:n}),f.current?(i??a)():a()},C=t.jsx(XS,{defaultMessage:"Claude works directly in Word",id:"EhLzZFX78f"}),x=t.jsx(XS,{defaultMessage:"Claude drafts, edits, and formats documents right inside Microsoft Word.",id:"ylMgFyFY99"}),v=u?t.jsx(XS,{defaultMessage:"Install",id:"ubmFc8rrea"}):t.jsx(XS,{defaultMessage:"Upgrade to try",id:"AHF8t0j/O1"}),y=c.formatMessage({defaultMessage:"Dismiss",id:"TDaF6JVgG6"});return t.jsxs("div",{className:"mx-2 mb-3 md:mx-0",children:[t.jsx("style",{children:"\n        @keyframes bannerSlideUp {\n          from {\n            opacity: 0;\n            transform: translateY(8px);\n          }\n          to {\n            opacity: 1;\n            transform: translateY(0);\n          }\n        }\n      "}),t.jsxs("div",{className:"relative flex min-h-[68px] items-center gap-3 rounded-[20px] border-0.5 border-border-200 bg-bg-000 p-5 shadow-sm",style:{animation:"bannerSlideUp 0.3s ease-out"},children:[t.jsx("div",{className:"flex-shrink-0",children:t.jsx(ge,{asset:gA,size:"sm"})}),t.jsxs("div",{className:"min-w-0 flex-1 pr-8 md:pr-0",children:[t.jsx("p",{className:"font-base text-text-100 font-bold",children:C}),t.jsx("p",{className:"font-base mt-1 text-text-300 max-w-sm",children:x}),p&&t.jsx("div",{className:"mt-2",children:p}),t.jsx("div",{className:"mt-3 md:hidden",children:t.jsx(rN,{variant:"primary",size:"sm",onClick:g,children:v})})]}),t.jsxs("div",{className:"hidden items-center gap-2 md:flex md:flex-shrink-0",children:[t.jsx(rN,{variant:"primary",size:"sm",onClick:g,children:v}),t.jsx(rN,{size:"sm",variant:"ghost",iconOnly:!0,icon:"X",onClick:h,"aria-label":y})]}),t.jsx("div",{className:"absolute right-4 top-4 md:hidden",children:t.jsx(rN,{size:"sm",variant:"ghost",iconOnly:!0,icon:"X",onClick:h,"aria-label":y})})]})]})}const _Z=new Set(["model_svg_artifact","model_svg_file_creation","model_pdf_creation","user_svg_upload","user_design_link","user_design_file_upload","user_image_upload"]),jZ=new Set(["claude_design"]),SZ=new Map;function LZ(){const t=ve("cai_in_chat_contextual_upsells");return e.useMemo(()=>function(e){if(null==e)return SZ;if("object"!=typeof e||Array.isArray(e))return SZ;const t=new Map;for(const[s,n]of Object.entries(e)){if(!_Z.has(s))continue;const e="string"==typeof n?n:null!==n&&"object"==typeof n&&"string"==typeof n.product?n.product:null;null!==e&&jZ.has(e)&&t.set(s,e)}return t.size>0?t:SZ}(t),[t])}const NZ=new Set;function IZ(t,s){const n=ae();e.useEffect(()=>{if(!s||!t)return;const e=`${t}:${s}`;NZ.has(e)||(NZ.add(e),n.track({event_key:"claudeai.contextual_upsell.trigger_detected",trigger_key:s}))},[n,t,s])}const TZ="cd_artifact_upsell_banner",AZ=["model_svg_artifact","model_svg_file_creation","model_pdf_creation"],EZ=new Set;function RZ(e){return"assistant"!==e?.sender?[]:(e.content??[]).filter(e=>"tool_use"===e.type&&"name"in e&&"artifacts"===e.name)}function DZ(e){const t=RZ(e.at(-1));if(0===t.length)return!1;const s=new Map;for(const n of e)for(const e of RZ(n))"string"==typeof e.input?.id&&void 0!==e.input.type&&s.set(e.input.id,e.input.type);return t.some(e=>e.input?.type===Se.Svg||void 0===e.input?.type&&"string"==typeof e.input?.id&&s.get(e.input.id)===Se.Svg)}function HZ(e,t){return"assistant"===e?.sender&&(e.content?.some(e=>{if("tool_use"!==e.type||!("name"in e))return!1;const s=e;if("create_file"===s.name)return(n=s.input,String(n?.file_name??n?.name??n?.filename??n?.path??"")).toLowerCase().endsWith(t);var n;if("present_files"===s.name){const e=s.input?.filepaths;return Array.isArray(e)&&e.some(e=>"string"==typeof e&&e.toLowerCase().endsWith(t))}return!1})??!1)}function PZ(e,t){for(const s of AZ)if(!t||"claude_design"===t.get(s)){if("model_svg_artifact"===s&&DZ(e))return s;if("model_svg_file_creation"===s&&HZ(e.at(-1),".svg"))return s;if("model_pdf_creation"===s&&HZ(e.at(-1),".pdf"))return s}return null}function UZ({triggerKey:s,onDismiss:n}){const a=ae(),i=JS(),{conversation:r}=J(),o=r?.id;e.useEffect(()=>{const e=`${o??""}:${TZ}`;EZ.has(e)||(EZ.add(e),a.track({event_key:`claudeai.${TZ}.displayed`,trigger_key:s}))},[a,o,s]);const l=m(),c=pe(),d=c?_e("chat_artifact_upsell"):"/upgrade?feature=design",u=l&&c,p=u?ye(d):d,f=e=>{const t=a.track({event_key:`claudeai.${TZ}.cta_clicked`,trigger_key:s});n(),u||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||(e.preventDefault(),Promise.race([t,je(300)]).finally(()=>window.location.assign(d)).catch(()=>{}))},g=()=>{a.track({event_key:`claudeai.${TZ}.dismissed`,trigger_key:s}),n()},h=t.jsx(XS,{defaultMessage:"Next time, try this in Claude Design",id:"mPksWZs7iL"}),C=t.jsx(XS,{defaultMessage:"Turn ideas into wireframes, prototypes, and slides you can edit directly.",id:"9UpPDnXMrC"}),x=t.jsx(XS,{defaultMessage:"Try Claude Design",id:"CRQS+Oa9YW"}),v=i.formatMessage({defaultMessage:"Dismiss",id:"TDaF6JVgG6"});return t.jsxs("div",{className:"mx-2 mb-3 md:mx-0",children:[t.jsx("style",{children:"\n        @keyframes bannerSlideUp {\n          from {\n            opacity: 0;\n            transform: translateY(8px);\n          }\n          to {\n            opacity: 1;\n            transform: translateY(0);\n          }\n        }\n      "}),t.jsxs("div",{className:"relative flex min-h-[68px] items-center gap-3 rounded-[20px] border-0.5 border-border-200 bg-bg-000 p-5 shadow-sm",style:{animation:"bannerSlideUp 0.3s ease-out"},children:[t.jsx("div",{className:"flex-shrink-0",children:t.jsx(ge,{asset:be,size:"sm"})}),t.jsxs("div",{className:"min-w-0 flex-1 pr-8 md:pr-0",children:[t.jsx("p",{className:"font-base text-text-100 font-bold",children:h}),t.jsx("p",{className:"font-base mt-1 text-text-300 max-w-sm",children:C}),t.jsx("div",{className:"mt-3 md:hidden",children:t.jsx(rN,{variant:"primary",size:"sm",href:p,target:u?"_blank":void 0,onClick:f,children:x})})]}),t.jsxs("div",{className:"hidden items-center gap-2 md:flex md:flex-shrink-0",children:[t.jsx(rN,{variant:"primary",size:"sm",href:p,target:u?"_blank":void 0,onClick:f,children:x}),t.jsx(rN,{size:"sm",variant:"ghost",iconOnly:!0,icon:"X",onClick:g,"aria-label":v})]}),t.jsx("div",{className:"absolute right-4 top-4 md:hidden",children:t.jsx(rN,{size:"sm",variant:"ghost",iconOnly:!0,icon:"X",onClick:g,"aria-label":v})})]})]})}const OZ="cd_design_file_upsell_banner",FZ=["user_svg_upload","user_design_file_upload","user_design_link","user_image_upload"],VZ=["fig","sketch","xd"],zZ=2592e5,ZZ="cd_design_file_upsell_display_count",BZ="cd_design_file_upsell_last_shown",qZ=/(?:^|[\s(<"`[\]])(?:https?:\/\/)?(?:[\w-]+\.)*figma\.com\//i;function WZ(){try{const e=parseInt(localStorage.getItem(ZZ)||"0",10);return Number.isFinite(e)?e:0}catch{return 0}}let $Z=null;function GZ(){if(null!==$Z&&Date.now()-$Z<zZ)return!0;let e=null;try{e=localStorage.getItem(BZ)}catch{}if(!e)return!1;const t=new Date(e).getTime();if(!Number.isFinite(t))return!1;const s=Date.now()-t;return s>-2592e5&&s<zZ}const KZ={user_svg_upload:e=>"svg"===e,user_design_file_upload:e=>VZ.includes(e),user_image_upload:e=>Ne.includes(e)};function YZ(e){return e.includes(".")?e.split(".").pop()?.toLowerCase()??"":""}function QZ(e,t){if("human"!==e?.sender)return null;const s=[...e.attachments?.flatMap(e=>[(e.file_type??"").toLowerCase(),YZ(e.file_name??"")])??[],...Gz(e).map(e=>YZ(e.file_name))];for(const n of FZ)if(!t||"claude_design"===t.get(n))if("user_design_link"!==n){if(s.some(KZ[n]))return n}else if(qZ.test(Le(e)))return n;return null}function JZ({triggerKey:s,onDismiss:n}){const a=ae(),i=JS();e.useEffect(()=>{GZ()||(!function(){$Z=Date.now();try{localStorage.setItem(BZ,(new Date).toISOString())}catch{}}(),function(){const e=WZ()+1;try{localStorage.setItem(ZZ,String(e))}catch{}}(),a.track({event_key:`claudeai.${OZ}.displayed`,trigger_key:s}))},[a,s]);const r=m(),o=pe(),l=o?_e("chat_designfile_upsell"):"/upgrade?feature=design",c=r&&o,d=c?ye(l):l,u=e=>{const t=a.track({event_key:`claudeai.${OZ}.cta_clicked`,trigger_key:s});n(),c||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||(e.preventDefault(),Promise.race([t,je(300)]).finally(()=>window.location.assign(l)).catch(()=>{}))},p=e=>{1===e.button&&(a.track({event_key:`claudeai.${OZ}.cta_clicked`,trigger_key:s}),n())},f=()=>{a.track({event_key:`claudeai.${OZ}.dismissed`,trigger_key:s}),n()},g=t.jsx(XS,{defaultMessage:"Work on files like this in Claude Design",id:"rsQLwnnAk9"}),h=t.jsx(XS,{defaultMessage:"Describe what you need or edit by hand and get polished, on-brand results.",id:"9hHETVo+Q7"}),C=t.jsx(XS,{defaultMessage:"Try Claude Design",id:"CRQS+Oa9YW"}),x=i.formatMessage({defaultMessage:"Dismiss",id:"TDaF6JVgG6"});return t.jsxs("div",{className:"mx-2 mb-3 md:mx-0",children:[t.jsx("style",{children:"\n        @keyframes bannerSlideUp {\n          from {\n            opacity: 0;\n            transform: translateY(8px);\n          }\n          to {\n            opacity: 1;\n            transform: translateY(0);\n          }\n        }\n      "}),t.jsxs("div",{className:"relative flex min-h-[68px] items-center gap-3 rounded-[20px] border-0.5 border-border-200 bg-bg-000 p-5 shadow-sm",style:{animation:"bannerSlideUp 0.3s ease-out"},children:[t.jsx("div",{className:"flex-shrink-0",children:t.jsx(ge,{asset:be,size:"sm"})}),t.jsxs("div",{className:"min-w-0 flex-1 pr-8 md:pr-0",children:[t.jsx("p",{className:"font-base text-text-100 font-bold",children:g}),t.jsx("p",{className:"font-base mt-1 text-text-300 max-w-sm",children:h}),t.jsx("div",{className:"mt-3 md:hidden",children:t.jsx(rN,{variant:"primary",size:"sm",href:d,target:c?"_blank":void 0,onClick:u,onAuxClick:p,children:C})})]}),t.jsxs("div",{className:"hidden items-center gap-2 md:flex md:flex-shrink-0",children:[t.jsx(rN,{variant:"primary",size:"sm",href:d,target:c?"_blank":void 0,onClick:u,onAuxClick:p,children:C}),t.jsx(rN,{size:"sm",variant:"ghost",iconOnly:!0,icon:"X",onClick:f,"aria-label":x})]}),t.jsx("div",{className:"absolute right-4 top-4 md:hidden",children:t.jsx(rN,{size:"sm",variant:"ghost",iconOnly:!0,icon:"X",onClick:f,"aria-label":x})})]})]})}const XZ=e=>{const t=ke("web_search").isAvailable,{account:s}=v(),n=Ie(),{data:a}=Te(n),i=y("claude_ai_sticky_project_settings");if(!t)return!1;const r=!1!==s?.settings?.enabled_web_search;return e?!!e?.conversationSettings?.enabled_web_search:n&&i?!!a?.enabled_web_search:r},eB=()=>{const e=tB(),t=Ie(),{data:s}=Ee(t);return s?.type!==Re.Haystack&&(e&&!0)},tB=()=>{const e=y("use_incoherent_traffic_light_noises"),t=nB();return e&&t},sB=()=>{const{hasCapability:e}=Ae("chat");return t=>e(t,"compass")},nB=()=>{const e=ke("web_search").isAvailable,t=dE(),s=De(He.GMAIL),n=De(He.GCAL),a=Pe({type:"remote"}).length>0;return e||t||s||n||a},aB=e=>{const t=XZ(e),s=uE(e),{isAuthenticated:n}=mE(),a=s&&n,i=Ue(He.GMAIL,e),{isAuthenticated:r}=Oe(He.GMAIL),o=i&&r,l=Ue(He.GCAL,e),{isAuthenticated:c}=Oe(He.GCAL),d=l&&c,u=Fe("enabled_mcp_tools")??{},m=Pe({type:"remote",isConnected:!0}).some(e=>e.tools?.some(e=>!1!==u[e.enabledKey]));return t||a||o||d||m};function iB(){const{activeOrganization:t}=v(),s=t?.uuid||"",n=JS(),a=ze("claude_ai_haystack_integrations","integrations",[],NL(IL())),i=ke("web_search").isAvailable,r=eB(),{models:o}=Ae("chat"),l=o.some(e=>(e.thinking?.mode_options?.length??0)>0||(e.thinking?.effort_options?.length??0)>0),{mutateAsync:c,isPending:d}=Ze(),{servers:u}=Be(),m=FE(),{mutateAsync:p,isPending:f}=qe(),g=Pe({type:"remote"}),{mutateAsync:h,isPending:C}=We(s,{},{source:"directory"}),x=e.useMemo(()=>{const e=[];e.push({id:"builtin:web-search",name:n.formatMessage({defaultMessage:"Web search",id:"x0W7xxxEcv"}),type:"builtin",availableToOrg:!0,enabledForOrg:i}),e.push({id:"builtin:research",name:n.formatMessage({defaultMessage:"Research",id:"JEe7dVso7F"}),type:"builtin",availableToOrg:!0,enabledForOrg:r}),e.push({id:"builtin:extended-thinking",name:n.formatMessage({defaultMessage:"Extended thinking",id:"5j4WakKa2u"}),type:"builtin",availableToOrg:!0,enabledForOrg:l});const t=[];return m.forEach(e=>{a.includes(e.type)&&t.push({id:`first-party:${e.type}`,name:$e[e.type],type:"first-party",syncSourceType:e.type,availableToOrg:e.available,enabledForOrg:e.enabledForOrg})}),t.push(...function(e,t){const s=[],n=new Map(e.map(e=>[e.uuid,e])),a=new Set;return t.forEach(t=>{const i=(t.directoryMetadata?n.get(t.directoryMetadata.uuid):void 0)??e.find(e=>Ve(e,t.url));i&&a.add(i.uuid),s.push({id:`mcp:${t.uuid}`,name:t.name,type:"mcp",connector:t,directoryServer:i,availableToOrg:!0,enabledForOrg:!0})}),e.forEach(e=>{a.has(e.uuid)||s.push({id:`directory-mcp:${e.uuid}`,name:e.name,type:"directory-mcp",directoryServer:e,availableToOrg:!0,enabledForOrg:!1})}),s}(u,g)),[...e,...t.sort((e,t)=>e.name.localeCompare(t.name))]},[n,i,r,l,m,u,g,a]),y=e.useCallback(async(e,t)=>{const s=x.find(t=>t.id===e);if(s)if("builtin:web-search"===s.id)await c({web_search_enabled:!0});else if("first-party"===s.type)await p({type:s.syncSourceType,enabled:!0});else if("directory-mcp"===s.type){const e=s.directoryServer;if(e&&"remote"===e.type&&e.url&&!e.requiresInstallForm){const s=g.find(t=>Ve(e,t.url));if(s)return s.uuid;return(await h({name:e.name,url:e.url,custom_oauth_client_id:null,custom_oauth_client_secret:null,attestations:t??[],mcp_directory_server_uuid:e.uuid})).uuid}}},[x,p,c,h,g]);return{tools:x,enable:y,isLoading:f||C||d}}function rB(t){const{tools:s}=iB(),{mutate:n,isPending:a}=Ge(t?.uuid||""),i=e.useMemo(()=>{if(!t)return[];const e=[],n=t.settings,a=t.type===Re.Haystack;return s.forEach(t=>{if(!t.availableToOrg||!t.enabledForOrg)return;if("builtin:extended-thinking"===t.id)return;if(a&&"builtin:extended-thinking"===t.id)return;let s=!1;if("builtin"===t.type)"builtin:web-search"===t.id?s=!!n?.enabled_web_search:"builtin:research"===t.id?s="advanced"===n?.compass_mode:"builtin:extended-thinking"===t.id&&(s="extended"===n?.paprika_mode);else if("mcp"===t.type){const e=t.connector.uuid;s=n?.recommended_mcp_servers?.includes(e)||!1}e.push({tool:t,recommended:s})}),e},[s,t]);return{recommendations:i,update:(e,s)=>{if(!t)return;const a=new Set(e),r={},o=new Set(t.settings?.recommended_mcp_servers??[]);i.forEach(({tool:e})=>{const t=a.has(e.id),n=!t&&(!s||s.has(e.id));if("builtin"===e.type){if(!t&&!n)return;"builtin:extended-thinking"===e.id?r.paprika_mode=t?"extended":null:"builtin:web-search"===e.id?r.enabled_web_search=t:"builtin:research"===e.id&&(r.compass_mode=t?"advanced":null)}else"mcp"===e.type&&(t?o.add(e.connector.uuid):n&&o.delete(e.connector.uuid))}),r.recommended_mcp_servers=Array.from(o),n({settings:r})},isUpdating:a}}function oB({project:t,source:s}){const{recommendations:n}=rB(t),a=e.useMemo(()=>n.filter(({recommended:e})=>e).map(({tool:e})=>e),[n]),i=Fe("enabled_web_search"),r=Ke(Fe("paprika_mode")),o=Fe("compass_mode"),l=Fe("enabled_mcp_tools"),c=Ye({source:s}),{setThinking:d,storedThinking:u}=Ae("chat"),{toggleConversationSetting:m}=Qe({source:s}),{toggleMcpToolEnabled:p}=Je({source:s}),{batchToggleConversationSettingsAndMCPTools:f}=Xe({source:s}),g=et({queryString:`mcp_success=${s}`,source:tt.RecommendedToolConnect}),h=e.useMemo(()=>{const e=[],t=function(){if("undefined"==typeof window)return{};try{const e=localStorage.getItem("mcp-remote-connectors-state");if(!e)return{};const t=JSON.parse(e),s={};if("object"==typeof t&&null!==t)for(const[n,a]of Object.entries(t)){const e=st.safeParse(a);e.success&&(s[n]=e.data.isConnected)}return s}catch{return{}}}();return a.forEach(s=>{let n,a=!1,c=!1,d=!1;if("builtin"===s.type)c=!0,"builtin:web-search"===s.id?a=!!i:"builtin:research"===s.id?a="advanced"===o:"builtin:extended-thinking"===s.id&&(a="extended"===r);else if("mcp"===s.type){const e=s.connector.tools||[];n=e.reduce((e,t)=>(e[t.enabledKey]=l?.[t.enabledKey]??!0,e),{}),a=e.some(e=>!l||!(e.enabledKey in l)||!1!==l[e.enabledKey]);const i=t[s.connector.uuid];c=s.connector.isConnecting?!!i:!!s.connector.isConnected,d=void 0===i&&(s.connector.isConnecting??!0)}e.push({tool:s,isConnected:c,isEnabled:a,isLoading:d,toolKeys:n})}),e},[i,o,r,l,a]);return{toolConfigs:h,connectTool:e=>{const t=h.find(({tool:t})=>t.id===e);if(!t||t.isConnected)return;const s=t.tool;"mcp"===s.type&&g({uuid:s.connector.uuid,url:s.connector.url})},enableTool:(e,t)=>{const s=h.find(({tool:t})=>t.id===e);if(!s)return;const n=s.tool;if("builtin"===n.type)"builtin:extended-thinking"===e?c("extended"):"builtin:web-search"===e?m("enabled_web_search",!0):"builtin:research"===e&&m("compass_mode","advanced");else if("mcp"===n.type){const e=t||n.connector.tools?.map(e=>e.enabledKey)||[];p(e,!0)}},disableTool:(e,t)=>{const s=h.find(({tool:t})=>t.id===e);if(!s)return;const n=s.tool;if("builtin"===n.type)"builtin:extended-thinking"===e?c(null):"builtin:web-search"===e?m("enabled_web_search",!1):"builtin:research"===e&&m("compass_mode",null);else if("mcp"===n.type){const e=t||n.connector.tools?.map(e=>e.enabledKey)||[];p(e,!1)}},enableAllTools:()=>{const e={},t={};let s=!1;h.forEach(n=>{if(!n.isConnected||n.isEnabled)return;const{tool:a}=n;if("builtin"===a.type)"builtin:extended-thinking"===a.id?(e.paprika_mode="extended",s=!0):"builtin:web-search"===a.id?e.enabled_web_search=!0:"builtin:research"===a.id&&(e.compass_mode="advanced");else if("mcp"===a.type){(a.connector.tools?.map(e=>e.enabledKey)||[]).forEach(e=>{t[e]=!0})}}),f({conversationSettingsUpdate:e,mcpToolsUpdate:t}),s&&d(nt(u,"extended"))}}}function lB(e,s="sm"){if("builtin"===e.type){if("builtin:web-search"===e.id)return t.jsx(oU,{size:"lg"===s?24:"md"===s?16:12,className:"text-text-300"});if("builtin:extended-thinking"===e.id)return t.jsx(at,{size:"lg"===s?24:"md"===s?16:12,className:"text-text-300"});if("builtin:research"===e.id)return t.jsx(gU,{size:"lg"===s?24:"md"===s?16:12,className:"text-text-300"})}else{if("first-party"===e.type)return t.jsx(it,{type:e.syncSourceType,size:"lg"===s?28:"md"===s?20:16});if("mcp"===e.type)return e.connector.url?t.jsx(rt,{url:e.connector.url,fallbackSvg:t.jsx(ot,{letter:e.connector.name,size:"lg"===s?28:"md"===s?20:16}),size:"lg"===s?28:"md"===s?20:16}):t.jsx(ot,{letter:e.connector.name,size:"lg"===s?28:"md"===s?20:16})}return t.jsx(ot,{letter:e.name||"",size:"lg"===s?28:"md"===s?20:16})}function cB({project:e,canEditKnowledgeBase:s,onConnectorClick:n,includeTitle:a=!1,size:i="sm",showAddToolsButton:r=!1,showErrors:o=!1,inlineEdit:l=!1,onEditClick:c}){const d=JS(),{toolConfigs:u,enableAllTools:m}=oB({project:e,source:"recommendedToolsSection"});if(!lt())return null;if(!s&&0===u.length)return null;const p=u.some(e=>!e.isConnected),f=u.some(e=>e.isConnected&&!e.isEnabled);return t.jsx(t.Fragment,{children:0!==u.length?t.jsxs(t.Fragment,{children:[a&&t.jsx("p",{className:"mb-2 font-semibold text-text-300 text-sm",children:t.jsx(XS,{defaultMessage:"Recommended Tools:",id:"lwiOnpaA66"})}),t.jsxs("div",{className:"flex flex-col gap-2",children:[t.jsxs("div",{className:"flex flex-wrap gap-1",children:[u.map(e=>t.jsx(dB,{toolConfig:e,icon:lB(e.tool,i),size:i,showErrors:o,onClick:n},e.tool.id)),l&&t.jsx(rN,{iconOnly:!0,icon:"Edit",variant:"ghost",onClick:()=>c?.(),className:"sm"===i?"!size-6":"!size-8","aria-label":d.formatMessage({defaultMessage:"Edit recommended tools",id:"Ef8wRGe2z4"})})]}),o&&!p&&f&&t.jsxs("div",{className:"flex items-center gap-1.5 text-xs text-text-500",children:[t.jsx(XS,{defaultMessage:"Some tools are off",id:"K/A8J+2IjI"}),t.jsx("span",{className:"text-text-500 opacity-75",children:"\xb7"}),t.jsx(ct,{onClick:m,children:t.jsx(XS,{defaultMessage:"Turn on",id:"npvxprjeDK"})})]}),o&&p&&t.jsxs("div",{className:"flex items-center gap-1.5 text-xs text-text-500",children:[t.jsx(XS,{defaultMessage:"Some tools are missing",id:"CnIK1jADHi"}),t.jsx("span",{className:"text-text-500 opacity-75",children:"\xb7"}),t.jsx(ct,{onClick:()=>n?.(),children:t.jsx(XS,{defaultMessage:"Connect",id:"+vVZ/G11Zg"})})]})]})]}):r?t.jsx(rN,{variant:"ghost",size:"sm",onClick:()=>c?.(),className:"self-start",children:t.jsx(XS,{defaultMessage:"Add tools",id:"5fVEetLkuE"})}):null})}function dB({toolConfig:e,icon:s,onClick:n,size:a="sm",showErrors:i=!1}){const r=i&&!e.isEnabled?"opacity-30":"opacity-100";return t.jsx(iN,{content:e.tool.name,side:"top",children:t.jsx("div",{onClick:n,className:dt("flex items-center bg-bg-000 justify-center rounded-md border transition-all border-border-300",r,"sm"===a&&"w-6 h-6","md"===a&&"w-8 h-8",!!n&&"cursor-pointer"),children:s})})}function uB({onClose:s,project:n}){const a=ze("claude_ai_haystack_integrations","integrations",[],NL(IL())),{recommendations:i,update:r}=rB(n),[o,l]=e.useState(()=>i.filter(({recommended:e})=>e).map(({tool:e})=>e.id)),[c,d]=e.useState(()=>new Set),u=e.useMemo(()=>i.filter(({tool:e})=>"builtin"===e.type),[i]),m=e.useMemo(()=>i.filter(({tool:e})=>"first-party"===e.type&&a.includes(e.syncSourceType)||"mcp"===e.type),[i,a]),p=e=>{const t=o.includes(e);l(s=>t?s.filter(t=>t!==e):[...s,e]),d(s=>{const n=new Set(s);return t?n.add(e):n.delete(e),n})},f=u.length>0||m.length>0;return t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"flex flex-col gap-1 mb-3",children:[t.jsx("h2",{className:"text-title font-semibold text-primary",children:t.jsx(XS,{defaultMessage:"Power your project with tools",id:"OdbkWdzmIC"})}),t.jsx("div",{className:"text-body text-secondary",children:t.jsx(XS,{defaultMessage:"Claude can use tools to give you more relevant answers. You can turn them on or off in any chat.",id:"rHQiBDkDW3"})})]}),t.jsx("div",{className:"flex max-h-[60vh] flex-col gap-4 overflow-y-auto",children:f?t.jsxs("div",{className:"flex flex-col gap-4",children:[u.length>0&&t.jsxs("div",{className:"rounded-lg border p-4",children:[t.jsx("h3",{className:"text-secondary text-sm mb-2",children:t.jsx(XS,{defaultMessage:"Tools",id:"nUT0LvZVOx"})}),t.jsx("div",{className:"flex flex-col gap-4",children:u.map(({tool:e})=>t.jsx(mB,{tool:e,icon:lB(e,"md"),isSelected:o.includes(e.id),onToggle:()=>p(e.id)},e.id))})]}),m.length>0&&t.jsxs("div",{className:"rounded-lg border p-4",children:[t.jsx("h3",{className:"text-secondary text-sm mb-2",children:t.jsx(XS,{defaultMessage:"Connectors",id:"2mMJRvsAg1"})}),t.jsx("div",{className:"flex flex-col gap-4",children:m.map(({tool:e})=>t.jsx(mB,{tool:e,icon:lB(e,"md"),isSelected:o.includes(e.id),onToggle:()=>p(e.id)},e.id))})]})]}):t.jsx("div",{className:"text-body text-muted",children:t.jsx(XS,{defaultMessage:"No available tools.",id:"ES4xSBiZh2"})})}),t.jsxs(lN.Footer,{align:"end",children:[t.jsx(rN,{onClick:()=>{l(i.filter(({recommended:e})=>e).map(({tool:e})=>e.id)),d(new Set),s()},children:t.jsx(XS,{defaultMessage:"Cancel",id:"47FYwba+bI"})}),f&&t.jsx(rN,{variant:"primary",onClick:()=>{r(o,c),s()},children:t.jsx(XS,{defaultMessage:"Save",id:"jvo0vs3nF0"})})]})]})}function mB({tool:e,icon:s,isSelected:n,onToggle:a}){return t.jsx(cN,{checked:n,onCheckedChange:a,"aria-label":e.name,className:"w-full flex-row-reverse justify-between",label:t.jsxs("span",{className:"flex flex-row gap-3 items-center",children:[t.jsx("span",{className:"flex items-center justify-center w-7 h-7 rounded-lg border",children:s}),t.jsx("span",{className:"text-sm text-primary",children:e.name})]})})}function pB({currentView:s,setCurrentView:n,onClose:a,onAfterUpdate:i,project:r,viewOnly:o,hideRecommendedTools:l=!1,backdropClassName:c}){const d=JS(),[u,m]=e.useState(r.prompt_template),[p,f]=e.useState(!1),g=e.useRef(s);void 0!==s&&(g.current=s);const h=s??g.current,{addError:C}=ut(),{mutateAsync:x}=Ge(r.uuid),v=r.prompt_template.length>0&&0===u.length,y=t.jsx(XS,{defaultMessage:"This will work alongside your <link>profile instructions</link> and the selected style in a chat.",values:{link:e=>t.jsx(ct,{href:"/settings/general",children:e})},id:"eqPXnGTl4D"}),b=o?t.jsx(XS,{defaultMessage:"Project instructions",id:"1vND0qQgVb"}):t.jsx(XS,{defaultMessage:"Set project instructions",id:"+On7CFwfGv"}),k=o?void 0:t.jsxs(t.Fragment,{children:[t.jsx(XS,{defaultMessage:"Provide Claude with relevant instructions and information for chats within {projectName}.",id:"NM6ePuQ0y+",values:{projectName:r.name}}),"\xa0",y]}),w=o?d.formatMessage({defaultMessage:"Project instructions",id:"1vND0qQgVb"}):d.formatMessage({defaultMessage:"Set project instructions",id:"+On7CFwfGv"});return t.jsx(lN.Root,{open:void 0!==s,onOpenChange:e=>!e&&(n("instructions"),void a()),children:t.jsx(lN.Popup,{size:"instructions"===h?"lg":"md",backdropClassName:c,children:"instructions"===h?t.jsxs(t.Fragment,{children:[t.jsx(lN.Header,{showClose:!1,description:k,children:b}),t.jsx(dN,{"aria-label":w,"data-testid":"custom-instructions-textarea",value:u,onChange:e=>m(e.target.value),readOnly:o,placeholder:d.formatMessage({defaultMessage:"Think step by step and show reasoning for complex problems. Use specific examples.",id:"j554E3Ar1K"}),rows:16,required:!0,className:dt("mb-4 max-h-80 shrink-0",o&&"!opacity-100")}),!l&&t.jsx(cB,{project:r,canEditKnowledgeBase:!o,includeTitle:!0,size:"md",showAddToolsButton:!0,inlineEdit:!o,onEditClick:()=>n("tools")}),t.jsx(lN.Footer,{align:"end",children:o?t.jsx(lN.Close,{render:t.jsx(rN,{children:t.jsx(XS,{defaultMessage:"Close",id:"rbrahOGMC3"})})}):t.jsxs(t.Fragment,{children:[t.jsx(rN,{onClick:a,children:t.jsx(XS,{defaultMessage:"Cancel",id:"47FYwba+bI"})}),t.jsx(rN,{variant:"primary",busy:p,disabled:r.prompt_template===u,onClick:()=>{(async()=>{f(!0);try{await x({prompt_template:u}),i?.(),a(),f(!1)}catch(e){C(d.formatMessage({defaultMessage:"Error saving instructions, please try again later",id:"WL3FdCcP2y"}),{error:e,messageForLogging:"Error saving instructions, please try again later"}),f(!1)}})()},children:v?t.jsx(XS,{defaultMessage:"Clear instructions",id:"aHS9gkqH/s"}):t.jsx(XS,{defaultMessage:"Save instructions",id:"wtm6MF4hNg"})})]})})]}):t.jsxs(t.Fragment,{children:[t.jsx(lN.Title,{className:"sr-only",children:t.jsx(XS,{defaultMessage:"Power your project with tools",id:"OdbkWdzmIC"})}),t.jsx(uB,{project:r,onClose:()=>n(void 0)})]})})})}function fB(){const t=Mt(),s=_t(),[n,a]=e.useState("memory"===t.get("modal")),[i,r]=e.useState("synthesis");return{modalOpen:n,setModalOpen:e.useCallback(e=>{a(e),s("modal",e?"memory":null),e||r("synthesis")},[s]),modalView:i,setModalView:r}}function gB({projectUuid:s,modalView:n,setModalView:a,bottomCTA:i,isUpdating:r,onIsUpdatingChange:o,onAfterUpdate:l}){const{isAvailable:c}=mt(),{data:d}=pt(s,{enabled:c}),{memory:u,controls:m}=d??{},{updateMemoryControls:p,updateMemoryControlsIsPending:f}=xt({projectUuid:s,onChainSuccess:l}),g=f||Boolean(r);return e.useEffect(()=>{o?.(g)},[g,o]),e.useEffect(()=>{g&&"edits"===n&&a("synthesis")},[g,n,a]),"synthesis"===n?t.jsxs("div",{className:"w-full flex flex-col",children:[t.jsx(CB,{height:460,isUpdating:g,parsedMemory:u??"",bottomBar:g?null:t.jsx(xB,{memoryControls:m??void 0,projectUuid:s,updateMemoryControls:p,updateMemoryControlsIsPending:f}),synthesisClassName:"h-full"}),g?null:t.jsx(vB,{numEdits:m?.length||0,handleClick:()=>a("edits")}),i]}):t.jsx("div",{className:"w-full flex flex-col",style:{height:512},children:t.jsx(yB,{edits:m??void 0,handleBack:()=>a("synthesis"),projectUuid:s,updateMemoryUserInstructions:p,isUpdating:g})})}function hB({projectUuid:s,modalOpen:n,setModalOpen:a,modalView:i,setModalView:r,bottomCTA:o,onAfterUpdate:l,overlayClassName:c}){const d=ae(),{isAvailable:u}=mt(),{data:m}=pt(s,{enabled:u}),{memory:p}=m??{},[f,g]=e.useState(!1);e.useEffect(()=>{n&&d.track({event_key:"claudeai.memory.edit_modal_opened",projectUuid:s})},[n,d,s]);const h=ft();return p?t.jsx(gt,{className:"!p-8",...h,...void 0!==c&&{overlayClassName:c},hasCloseButton:!f,closeOnEscapeKeydown:!f,autoCloseOnFocusOut:!f,isOpen:n,onClose:()=>a(!1),title:"synthesis"===i?s?t.jsx(XS,{defaultMessage:"Manage project memory",id:"PG2tpcuuml"}):t.jsx(XS,{defaultMessage:"Manage memory",id:"v7MnWPl5dR"}):t.jsx(XS,{defaultMessage:"Manage edits",id:"wnHb2iwk7/"}),subtitle:t.jsx("div",{className:"mt-3 mb-3.5 flex flex-col gap-3",children:s?t.jsx(XS,{defaultMessage:"Claude regenerates project memory every evening from your past chats in this project. Only you can see this memory, and it is not shared with other project users.",id:"llWscTRrP/"}):t.jsx(XS,{defaultMessage:"Here\u2019s what Claude remembers about you! This summary is regenerated each night and does not include projects, which have their own specific memory.",id:"kqN0ZaV0jg"})}),modalSize:"xl",children:t.jsx(gB,{projectUuid:s,modalView:i,setModalView:r,bottomCTA:o,onIsUpdatingChange:g,onAfterUpdate:l})}):null}function CB({height:e,className:s,synthesisClassName:n,parsedMemory:a,bottomBar:i,isUpdating:r,showGradientBackground:o,isHidden:l}){return t.jsxs("div",{className:dt("border-border-300 border-0.5 rounded-xl flex flex-col relative bg-bg-000 overflow-hidden",s),style:{height:e},children:[t.jsx(sA.div,{animate:r?{opacity:[.3,1,1,.3]}:{opacity:o?1:0},transition:r?{duration:2,repeat:1/0}:void 0,className:dt("absolute left-0 top-0 bottom-0 right-0 w-full h-full rounded-lg"),style:{backgroundImage:"radial-gradient(at 90% 90%,hsl(var(--brand-200)/0.1) 0%, transparent 90%)"}}),t.jsx(sA.div,{animate:{opacity:l?0:1},transition:l?{duration:0}:{delay:2,duration:1.5},className:"relative overflow-hidden rounded-t-lg h-full",children:t.jsx("div",{className:dt("h-full px-5 py-4 pb-24 font-claude-response text-sm overflow-y-auto rounded-t-lg bg-bg-200/20",n),children:t.jsx(nA,{children:r?t.jsx(sA.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"absolute top-0 bottom-0 right-0 left-0 w-full h-full flex items-center justify-center",children:t.jsxs("div",{className:"text-text-100 opacity-50 font-small flex flex-col items-center gap-2",children:[t.jsx(ht,{size:"sm"}),t.jsx(XS,{defaultMessage:"Updating memory...",id:"DDjzNrAZXh"})]})},"loading"):t.jsxs(sA.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},children:[t.jsx(Ct,{text:a}),t.jsx("div",{className:"absolute bottom-0 h-[18px] bg-gradient-to-t from-text-100 to-bg-100 w-full left-0 opacity-[0.02]"})]},"synthesis")})})}),t.jsx("div",{className:"absolute bottom-0 left-0 w-full mx-auto",children:i})]})}function xB({projectUuid:s,memoryControls:n=[],updateMemoryControls:a,updateMemoryControlsIsPending:i,inline:r=!1}){const o=JS(),[l,c]=e.useState(""),d=vt(),u=yt(),[m,p]=e.useState(r),f=e.useCallback(()=>{l&&(a({controls:[...n,l.replace("\n"," ").trim()],project_uuid:s}),c(""))},[n,l,a,s]),g=n.length>=d;return t.jsx("div",{className:dt("group transition-all ease-out duration-300 h-14",r?"relative w-full":m?"absolute bottom-5 left-5 w-[calc(100%-2.5rem)]":"absolute bottom-5 left-5 w-14"),children:!i&&t.jsxs("div",{className:dt("relative flex flex-row items-center backdrop-blur-lg rounded-full border-0.5 border-border-300 transition",m||i?"bg-bg-000/90 shadow-xl":"bg-bg-000/70 hover:bg-bg-000/80 shadow-md hover:shadow-lg"),children:[t.jsxs("form",{className:dt("relative rounded-full overflow-hidden h-14 flex flex-row items-center w-full transition"),onSubmit:e=>{e.preventDefault(),f()},children:[t.jsx("input",{value:l,onChange:e=>c(e.target.value),onFocus:()=>p(!0),onBlur:()=>{r||0!==l.length||p(!1)},className:dt("w-full bg-transparent text-text-100 hide-focus-ring h-full pl-6 pr-[3.5rem]",!m&&"cursor-pointer opacity-0"),maxLength:u,disabled:i,"aria-label":o.formatMessage({defaultMessage:"Tell Claude what to remember or forget",id:"4UtHCYAdEq"})}),t.jsx(bt,{ariaHidden:!1,placeholders:g?[o.formatMessage({defaultMessage:"Maximum edits reached",id:"nmrooj/8tz"})]:[o.formatMessage({defaultMessage:"Tell Claude what to remember or forget...",id:"onQ1M5+RBr"}),o.formatMessage({defaultMessage:"\u201cI like cats not dogs...\u201d",id:"wZ2YmNSwhn"}),o.formatMessage({defaultMessage:"\u201cDon\u2019t bring up my former baseball career...\u201d",id:"ouu7esRN/+"}),o.formatMessage({defaultMessage:"\u201cBroccoli is my favorite veg...\u201d",id:"tOS8sBc3fS"})],isShown:!l&&m,className:"cds-text-entry-floored text-text-500 leading-5 flex items-center pl-6 text-nowrap"}),t.jsx("div",{className:dt("absolute w-14 pointer-events-none inline-flex gap-2 justify-center items-center transition-opacity",m?"opacity-0 duration-0":"opacity-100 delay-300 duration-300"),children:t.jsx(iR,{size:24,className:"group-hover:rotate-[10deg] transition ease-in-out"})})]}),t.jsx(nA,{children:m&&t.jsx(sA.div,{className:dt("absolute right-2.5 transition-opacity",i&&"opacity-0"),initial:{opacity:0},animate:{opacity:1},transition:{delay:.3,duration:.15},children:t.jsx(kt,{variant:"primary",size:"icon",onClick:()=>{f()},className:dt("!rounded-full transition mr-px",l?"opacity-100":"opacity-80 border border-border-300 bg-transparent pointer-events-none"),"aria-label":o.formatMessage({defaultMessage:"Type to edit memory",id:"hDa95883/4"}),disabled:!m||i||!l||g,prepend:t.jsx(rR,{size:18,weight:"bold",className:dt(!l&&"text-text-500 ")})})},"submit-button")})]})})}function vB({numEdits:e,handleClick:s}){return 0===e?null:t.jsxs("button",{className:"rounded-lg border-0.5 border-border-300 hover:bg-bg-200 flex flex-row items-center justify-between text-start mt-4 h-9 px-3",onClick:s,children:[t.jsx("span",{className:"font-base text-text-200",children:t.jsx(XS,{defaultMessage:"Manage edits",id:"wnHb2iwk7/"})}),t.jsxs("div",{className:"flex flex-row items-center gap-2",children:[t.jsx("div",{className:"font-small h-5 w-5 border-border-300 border-0.5 rounded-full shadow-sm flex items-center justify-center text-text-300 bg-bg-100",children:e}),t.jsx(oR,{size:16,className:"text-text-300"})]})]})}function yB({edits:s=[],handleBack:n,projectUuid:a,updateMemoryUserInstructions:i,isUpdating:r=!1}){const[o,l]=e.useState(!1),[c,d]=e.useState(s),u=e.useCallback(()=>{o&&(i({controls:c,project_uuid:a}),l(!1))},[o,c,a,i]),m=e.useCallback(e=>{d(t=>t.slice(0,e).concat(t.slice(e+1))),l(!0)},[]),p=e.useCallback(()=>{d([]),l(!0)},[]);return t.jsxs("div",{className:"flex flex-col gap-3 min-h-0 h-full",children:[t.jsxs("div",{className:"flex flex-row justify-between items-center gap-4",children:[t.jsxs(kt,{variant:"ghost",size:"sm",className:"flex flex-row gap-1 items-center !pl-1 -ml-0.5",onClick:n,children:[t.jsx(lR,{size:16}),t.jsx(XS,{defaultMessage:"Back to memory",id:"iPxkImeKRS"})]}),o?t.jsx(kt,{variant:"primary",size:"sm",onClick:u,disabled:!o||r,children:t.jsx(XS,{defaultMessage:"Save changes",id:"X0ha1a+WYV"})}):t.jsx(kt,{variant:"ghost",size:"sm",onClick:p,disabled:r,prepend:t.jsx(cR,{className:"mr-1",size:16}),children:t.jsx(XS,{defaultMessage:"Clear edits",id:"p8eCMGrXpR"})})]}),t.jsx("div",{className:"h-full min-h-0",children:c.length?t.jsx(vL,{gradientHeight:24,containerClassName:"h-full",className:"max-h-full",contentHeightMayChange:!0,children:t.jsx("ul",{className:"flex flex-col border-border-300 border-0.5 rounded-lg",children:c.map((e,s)=>t.jsxs("li",{className:"flex flex-row items-center justify-between gap-3 pl-3 py-2.5 last:border-b-0 border-b-0.5 border-border-300 text-text-100 font-base",children:[t.jsx("p",{children:e}),t.jsx(kt,{variant:"ghost",size:"icon_sm",className:"mr-1 -my-1.5",onClick:()=>m(s),disabled:r,"aria-label":"Remove edit",children:t.jsx(wt,{size:16})})]},s))})}):t.jsx("div",{className:"flex flex-row items-center text-text-500 font-base px-3 h-10 border-border-300 border-0.5 rounded-xl",children:t.jsx(XS,{defaultMessage:"All edits cleared",id:"GgvJZYR332"})})})]})}function bB(){const e=v();return B("/api/account/deletion-allowed",{queryKey:[Lt,e?.account?.uuid],staleTime:0})}const kB=4e6;function wB(e){return B("/api/account_profile",{queryKey:[jt],custom3pCompatible:!0,...e})}function MB(e={}){const t=gL();return b("/api/account_profile","PUT",{...e,onSuccess:(s,n,a)=>{t.invalidateQueries({queryKey:[jt]}),e.onSuccess?.(s,n,a)}})}function _B(e,t){return e!==t?e:`${e}${e.includes("?")?"&":"?"}v=${Date.now()}`}function jB(){const e=gL(),t=Nt("Mutation error");return hL({mutationFn:async e=>{const s=new FormData;s.set("file",e,e.name);const n=await t("/api/account_avatar_image",{method:"POST",body:s,signal:AbortSignal.timeout(3e4)});if(!n)throw new Error("Session expired");if("string"!=typeof n.avatar_image_url)throw new Error("Malformed upload response");return n},networkMode:"always",onSuccess:async t=>{await e.cancelQueries({queryKey:[jt]}),e.setQueryData([jt],e=>e&&{...e,avatar_image_url:_B(t.avatar_image_url,e.avatar_image_url)})},onError:t=>{t instanceof DOMException&&"TimeoutError"===t.name&&e.invalidateQueries({queryKey:[jt]})}})}function SB(){const e=gL();return b("/api/account_avatar_image","DELETE",{networkMode:"always",transformResponse:e=>{if(void 0===e)throw new Error("Session expired")},onSuccess:async()=>{await e.cancelQueries({queryKey:[jt]}),e.setQueryData([jt],e=>e&&{...e,avatar_image_url:null})}})}function LB(){const e=gL();return b("/api/account/grove_notice_viewed","POST",{onSuccess:()=>{e.invalidateQueries({queryKey:[St]})}})}function NB({isOpen:s,onClose:n,onAfterUpdate:a,backdropClassName:i}){const r=JS(),o=gL(),{addError:l}=ut(),{data:c}=wB(),{mutate:d,isPending:u}=MB(),m=VE(),p=c?.conversation_preferences??"",[f,g]=e.useState(p);e.useEffect(()=>{s&&g(p)},[s]);const h=f!==p;return t.jsx(lN.Root,{open:s,onOpenChange:e=>{e||u||n()},children:t.jsxs(lN.Popup,{size:"md",backdropClassName:i,children:[t.jsx(lN.Header,{showClose:!u,description:m?t.jsx(XS,{defaultMessage:"Instructions can't be changed because of your organization's data protection settings. Contact your admin to learn more.",id:"kt7Yu43UKv"}):t.jsx(XS,{defaultMessage:"Claude will keep these in mind across chats and Cowork within <aupLink>Anthropic's guidelines</aupLink>. <learnMoreLink>Learn more</learnMoreLink>",id:"SwO3Dd2FGA",values:{aupLink:e=>t.jsx(ct,{href:"https://www.anthropic.com/legal/aup",target:"_blank",children:e}),learnMoreLink:e=>t.jsx(ct,{href:"https://support.anthropic.com/en/articles/10185728-understanding-claude-s-personalization-features",target:"_blank",children:e})}}),children:t.jsx(XS,{defaultMessage:"Instructions for Claude",id:"CoWpJWiYVJ"})}),t.jsx(dN,{rows:6,autosize:!0,autoFocus:!0,value:f,placeholder:r.formatMessage({defaultMessage:"e.g. keep explanations brief and to the point",id:"6FIWH+LxIO"}),disabled:m||u,"aria-label":r.formatMessage({defaultMessage:"Instructions for Claude",id:"CoWpJWiYVJ"}),className:"max-h-80 min-h-32",onChange:e=>g(e.currentTarget.value)}),t.jsxs(lN.Footer,{children:[t.jsx(rN,{variant:"secondary",onClick:n,disabled:u,children:t.jsx(XS,{defaultMessage:"Cancel",id:"47FYwba+bI"})}),t.jsx(rN,{variant:"primary",busy:u,disabled:m||!h,onClick:()=>{d({conversation_preferences:f},{onSuccess:async e=>{await o.cancelQueries({queryKey:[jt]}),o.setQueryData([jt],e),a?.()},onError:e=>l(r.formatMessage({defaultMessage:"Couldn\u2019t save that change",id:"ecSHaFmEbs"}),{error:e,messageForLogging:"avcoat ProfileInstructionsModal save failed"})})},children:t.jsx(XS,{defaultMessage:"Save",id:"jvo0vs3nF0"})})]})]})})}function IB(e){return e.kind===It.PastedText||""===e.file_name||!!e.file_name.match(/^paste(-\d+)?\.txt$/)||!!e.file_name.match(/^Pasted-.*\.txt$/)}function TB(e){return e.kind===It.Excerpt}function AB(e){return e.kind===It.ProgressItem}const EB=new Set(At.map(e=>e.toLowerCase()));function RB(e){return{title:(()=>{if("html"===e.file_type){const t=e.extracted_content.match(/<title>(.*?)<\/title>/);return t?t[1]:e.file_name}return IB(e)?t.jsx(XS,{defaultMessage:"Pasted content",id:"okKwHjIO0b"}):e.file_name})(),metaData:(()=>{const s=t.jsx(XS,{defaultMessage:"{count, plural, one {# line} other {# lines}}",id:"AFTxeGB4qO",values:{count:e.extracted_content.split("\n").length}}),n=DB(e.file_size);if("html"===e.file_type){let n=e.file_name;const a=e.file_name.match(/^(?:https?:\/\/)?(?:[^@\n]+@)?(?:www\.)?([^:\\/\n?]+)/gim);return a&&(n=a[0].replace("www.","")),t.jsxs("span",{children:[s,"\xa0",t.jsx("span",{className:"opacity-50 mx-1",children:"\u2022"}),n]})}return t.jsxs("span",{children:[n,"\xa0",t.jsx("span",{className:"opacity-50 mx-1",children:"\u2022"}),s]})})()}}function DB(e){return e<1048576?t.jsx(XS,{defaultMessage:"{size} KB",id:"/hgypvsrtJ",description:"File size in kilobytes",values:{size:(e/1024).toFixed(2)}}):t.jsx(XS,{defaultMessage:"{size} MB",id:"8amcCGO7ya",description:"File size in megabytes",values:{size:(e/1048576).toFixed(2)}})}function HB(e){const t=e.replace("computer://","");let s=5381;for(let n=0;n<t.length;n++)s=(s<<5)+s+t.charCodeAt(n);return Math.abs(s).toString(16)}function PB({filePath:e,isShared:t,conversationUuid:s,snapshotUuid:n,source:a}){const i=e.replace("computer://",""),r=e.split(".").pop()||"";return{file_id:HB(e),file_extension:r,is_snapshot:t,is_viewable_file:Rt(e),is_output_file:i.startsWith("/mnt/user-data/outputs/"),conversation_uuid:t?null:s||null,snapshot_uuid:t&&n||null,source:a}}function UB(e){const{organizationUuid:t,filePath:s}=e;let n;return n=e.isShared?`/api/organizations/${t}/snapshots/${e.snapshotUuid}/wiggle/download-file?path=${encodeURIComponent(s)}`:`/api/organizations/${t}/conversations/${e.conversationUuid}/wiggle/download-file?path=${encodeURIComponent(s)}`,n}function OB(){const{addError:t}=ut();return e.useCallback(e=>{const s=document.createElement("iframe");s.style.display="none",s.src=e;const n=()=>{t(eL({defaultMessage:"Failed to download files",id:"ZqhXQGNmd6"})),s.parentElement&&s.remove()};s.onload=n,s.onerror=n,document.body.appendChild(s),setTimeout(()=>{s.parentElement&&s.remove()},2e4)},[t])}const FB=({hideBottomShadow:s,scrollContainerRef:n,persistedScrollToRef:a,...i})=>{const r=void 0!==a?.current,o=e.useRef(null),l=n||o,c=e.useCallback(()=>{const e=l.current;if(e&&!s){const{scrollTop:t,offsetHeight:s,scrollHeight:n}=e;t+s>=n?e.classList.remove("has-bottom-scroll"):e.classList.add("has-bottom-scroll"),r&&0!==t&&Math.abs(t-a.current)>10&&(a.current=t)}},[s,l,r,a]);return c(),e.useEffect(()=>{const e=l.current;requestAnimationFrame(()=>{r&&e&&e?.scrollTo({top:a.current,behavior:"instant"})})},[l,r,a]),e.useEffect(()=>{const e=l.current;return e?.addEventListener("scroll",c),()=>e?.removeEventListener("scroll",c)},[c,l]),t.jsx(VB,{ref:l,...i,children:i.children})},VB=e.forwardRef(({className:e,...s},n)=>t.jsx("div",{ref:n,className:Dt(Ht,e),...s}));VB.displayName="ScrollContainer";var zB=(e=>(e.Generic="generic",e.Csv="csv",e.Excel="excel",e))(zB||{});function ZB({showPDFWarning:e=!1,metaData:s}){return t.jsxs("span",{className:"text-text-500 mb-3 mt-0.5 flex flex-wrap gap-y-2 items-start items-center text-xs",children:[t.jsx("span",{children:s}),t.jsx("span",{className:"mx-1.5 opacity-50 hidden lg:inline",children:"\u2022"}),e?t.jsx("span",{children:t.jsx(XS,{defaultMessage:"This PDF was converted to text due to its large size",id:"o/G2cAuU9n"})}):t.jsx("span",{children:t.jsx(XS,{defaultMessage:"Formatting may be inconsistent from source",id:"9NeTb00/cM"})})]})}function BB({isOpen:e,setIsOpen:s,fileName:n,fileUuid:a,filePath:i,fileSize:r}){const o=n.includes("pasted-content")&&n.endsWith(".txt"),l=function(){const e=se(),[t]=Et();return e||t}(),{activeOrganization:c}=v(),d=i||(o?`/mnt/user-data/uploads/${n}`:null),u=!!d,m=c&&l&&d?UB({organizationUuid:c.uuid,conversationUuid:l,filePath:d,isShared:!1}):"",p=OB(),{track:f}=ae(),g=ze("claudeai_blob_preview","max_text_bytes",102400,Ut),h=function(e){const t=Tt(e);return!!t&&EB.has(t)}(n),C=u&&h&&(null!=r&&r<=g),{data:x,isLoading:y,isError:b}=B(m,{responseType:"text",enabled:e&&C&&!!m}),{data:k,isLoading:w}=function({fileUuid:e,enabled:t}){const{activeOrganization:s}=v(),n=s?.uuid;return B(`/api/organizations/${n}/files/${e}/content_preview`,{queryKey:[Pt,{orgUuid:n,fileUuid:e}],enabled:!!s&&t})}({fileUuid:a,enabled:e&&!u}),M=C?y:w,_=C&&void 0!==x?t.jsxs(t.Fragment,{children:[DB(r??x.length),t.jsx("span",{className:"mx-1",children:"\u2022"}),t.jsx(XS,{defaultMessage:"{count, plural, one {# line} other {# lines}}",id:"AFTxeGB4qO",values:{count:x.split("\n").length}})]}):null,j=null!=r,S=t.jsxs("div",{className:"w-full h-full flex flex-col items-center justify-center gap-3 text-center px-4",children:[t.jsx("p",{className:"text-text-300 text-sm break-words max-w-full",children:b?t.jsx(XS,{defaultMessage:"Couldn't load preview \u2014 download to view.",id:"vwg0uMXFkA"}):h&&j?t.jsx(XS,{defaultMessage:"{fileName} ({fileSize}) is too large to preview.",id:"eBMopzduxX",values:{fileName:n,fileSize:DB(r)}}):!h&&j?t.jsx(XS,{defaultMessage:"Preview isn't available for {fileName} ({fileSize}).",id:"QffGCBK60k",values:{fileName:n,fileSize:DB(r)}}):t.jsx(XS,{defaultMessage:"Preview isn't available for {fileName}.",id:"O1tgP6fbmD",values:{fileName:n}})}),m&&t.jsx(kt,{onClick:()=>{m&&d&&(f({event_key:"wiggle.file.downloaded",...PB({filePath:d,isShared:!1,conversationUuid:l,source:"blob_file_info_modal"})}),p(m))},variant:"secondary",prepend:t.jsx(Ot,{}),children:t.jsx(XS,{defaultMessage:"Download",id:"5q3qC0sC3r"})})]});let L=null;return L=u&&!C||u&&C&&b?S:M?t.jsx("div",{className:"w-full h-full flex items-center justify-center",children:t.jsx(ht,{size:"md"})}):u&&void 0!==x?t.jsx("div",{className:"bg-bg-000 rounded-lg border-0.5 border-border-300 shadow-sm whitespace-pre-wrap break-words overflow-x-auto text-xs p-4 font-mono",children:x}):k?k.file_type===zB.Csv?t.jsxs("div",{className:"w-full h-full flex flex-col items-center justify-center",children:[t.jsxs("div",{className:"bg-bg-100 w-[15rem] h-[12.5rem] rounded-lg border border-border-400 mb-5",children:[t.jsxs("div",{className:"h-[2.25rem] text-text-100 font-medium border-b border-border-400 px-3 flex items-center",children:[t.jsx(dR,{className:"mr-2",size:16}),t.jsx("div",{children:t.jsx(XS,{defaultMessage:"Columns",id:"SUa8mpheAG"})})]}),t.jsx(FB,{className:"h-[10.25rem] w-[15rem] pt-3 px-3 pb-1 text-text-200",children:k.column_names.map((e,s)=>t.jsx("div",{className:"truncate mb-2",children:e},s))})]}),t.jsx("div",{className:"text-lg text-text-100 mb-2",children:t.jsx(XS,{defaultMessage:"{columnCount, plural, one {# column} other {# columns}}, {rowCount, plural, one {# row} other {# rows}}",id:"wvGBF/FvBd",values:{columnCount:k.column_count,rowCount:k.row_count}})}),t.jsxs("div",{className:"flex items-center text-text-300 text-xs",children:[t.jsx(Ft,{className:"mr-2",size:12}),t.jsx("div",{children:t.jsx(XS,{defaultMessage:"Claude can analyze CSVs with the Analysis tool.",id:"gtvz8LDd6q"})})]})]}):t.jsx("div",{className:"w-full h-full flex items-center justify-center",children:t.jsx(XS,{defaultMessage:"File previews are not supported for this file type",id:"99ghrgx5j8"})}):t.jsx("div",{className:"w-full h-full flex items-center justify-center",children:t.jsx(XS,{defaultMessage:"Could not load file preview",id:"ATy/CxAxS4"})}),t.jsx(gt,{isOpen:e,hasCloseButton:!0,title:o?t.jsx(XS,{defaultMessage:"Pasted content",id:"okKwHjIO0b"}):n,subtitle:u&&_?t.jsx(ZB,{showPDFWarning:!1,metaData:_}):void 0,onClose:()=>s(!1),className:"w-[40rem] h-[24rem]",modalSize:"xl",children:L})}const qB=({file:s,isOpen:n,onClose:a})=>{const i=e.useMemo(()=>RB(s),[s]);return t.jsx("div",{children:t.jsx(gt,{modalSize:"xl",isOpen:!!n,onClose:a,hasCloseButton:!0,title:i.title,subtitle:t.jsx(ZB,{showPDFWarning:"pdf"===s.file_type,metaData:i.metaData}),children:t.jsx("div",{className:"bg-bg-000 rounded-lg border-0.5 border-border-300 shadow-sm whitespace-pre-wrap break-all text-xs p-4 font-mono max-h-[70vh] overflow-y-auto",children:s.extracted_content})})})},WB=({file:s,src:n,alt:a,width:i,height:r,caption:o,isOpen:l,onClose:c,originRef:d,renderImage:u})=>{const m=JS(),[p,f]=e.useState(null),g=e.useRef(null);e.useEffect(()=>{l&&(g.current=document.activeElement)},[l]);const{isMounted:h,targetRef:C}=Vt({isOpen:!!l,originRef:d}),x=e.useCallback(e=>{e.preventDefault(),e.stopPropagation(),c()},[c]),v=uN(),y=mN(40);if(!h)return null;const b=s?s.preview_asset.url:n,k=s?s.preview_asset.image_width:i,w=s?s.preview_asset.image_height:r,M=s?s.file_name:o,_=s?m.formatMessage({defaultMessage:"Preview of {fileName}",id:"djtHiJ5aej"},{fileName:s.file_name}):a??"";if(!b)return null;const j=t.jsx("img",{src:b,width:k,height:w,alt:_,onDragStart:e=>e.preventDefault(),decoding:"sync",className:"block max-w-full max-h-[calc(100vh-4rem)] w-auto h-auto"});return t.jsx(EA,{open:!0,onOpenChange:e=>{e||c()},children:t.jsxs(RA,{forceMount:!0,children:[t.jsx(DA,{forceMount:!0,className:"fixed inset-0 z-modal bg-always-black/50 backdrop-brightness-75 draggable-none",style:v?{zIndex:y}:void 0}),t.jsx("div",{className:"fixed inset-0 z-modal grid place-items-center p-4 md:p-10 pointer-events-none draggable-none",style:v?{zIndex:y}:void 0,children:t.jsxs(HA,{forceMount:!0,"aria-describedby":void 0,onEscapeKeyDown:e=>e.stopPropagation(),onCloseAutoFocus:e=>{e.preventDefault();const t=g.current;t instanceof HTMLElement&&t.isConnected&&t.focus()},style:{pointerEvents:"none"},className:"max-w-[40rem] w-full focus:outline-none",children:[t.jsx(PA,{asChild:!0,children:t.jsx(UA,{children:_})}),t.jsxs("div",{className:"relative w-fit mx-auto pointer-events-auto",children:[t.jsx(kt,{className:"hover:!text-text-100 !ring-border-200 !absolute left-full top-0 ml-1.5 !text-always-white !ring-offset-0",variant:"ghost",size:"icon_sm","aria-label":m.formatMessage({defaultMessage:"Close image preview",id:"gylVBxmE7Z"}),onClick:x,option:"rounded","data-testid":"close-file-preview",children:t.jsx(uR,{size:"16"})}),t.jsx("div",{ref:C,className:"w-fit rounded-md overflow-hidden shadow-[0_4px_32px_hsl(var(--always-black)/30%),_0_0_0_0.5px_hsl(var(--always-black)/25%)]",onClick:x,children:u?u(j,p):j}),t.jsx("div",{ref:f,className:"pointer-events-auto"})]}),M&&t.jsx("div",{style:{textShadow:"0 0 8px hsl(var(--always-black)/25%)"},className:"pt-1.5 text-center text-always-white break-words pointer-events-none",children:M})]})})]})})};function $B({isOpen:e,setIsOpen:s,documentFile:n}){const a=JS(),i=m(),r=({pageCount:e})=>e<=1?null:t.jsxs("div",{className:"*:absolute *:w-full *:bg-always-white *:rounded-lg *:group-hover:border-accent-100/50 *:transition-all *:border *:border-border-300",children:[t.jsx("div",{className:"h-[98%] ml-1 group-hover:ml-[5px] group-hover:rotate-2 -z-10 shadow-sm top-[1%] opacity-70"}),t.jsx("div",{className:"h-[96%] ml-2 group-hover:ml-[10px] group-hover:rotate-3 group-hover:top-[2%]  -z-20 shadow top-[2%] opacity-50"})]});return t.jsx(gt,{isOpen:e,hasCloseButton:!0,title:n.file_name,onClose:()=>s(!1),children:t.jsxs("a",{className:"self-center group text-center",href:n.document_asset.url,...i?{download:ZL(n.file_name)}:{target:"_blank"},children:[t.jsxs("div",{className:"w-fit rounded-lg relative m-2 mt-8",children:[t.jsx("img",{className:"bg-always-white rounded-lg border border-border-300 group-hover:border-accent-000/70 shadow-sm group-hover:-rotate-1 transition",alt:a.formatMessage({defaultMessage:"{fileName} thumbnail",id:"1bEhiGnHtL"},{fileName:n.file_name}),src:n.thumbnail_asset.url,style:{width:n.thumbnail_asset.image_width/1.5,height:n.thumbnail_asset.image_height/1.5}}),t.jsx("div",{className:"absolute w-full h-full inset-0 group-hover:bg-gradient-to-t from-accent-200/5 to-60% group-hover:-rotate-1 transition rounded-lg"}),t.jsx(r,{pageCount:n.document_asset.page_count})]}),t.jsxs("div",{className:"relative text-center inline-flex items-center justify-center text-pretty gap-2 p-1 text-sm text-text-300 *:transition",children:[t.jsx("p",{className:"group-hover:opacity-0 group-hover:scale-75",children:t.jsx(XS,{defaultMessage:"{count, plural, one {# page} other {# pages}}",id:"RyCW0gT/7M",values:{count:n.document_asset.page_count}})}),t.jsxs("div",{className:"absolute inset-0 opacity-0 group-hover:opacity-100 inline-flex items-center justify-center gap-1 text-accent-000",children:[t.jsx(mR,{size:16,weight:"fill",className:"scale-50 group-hover:scale-100 transition-all "}),t.jsx("p",{children:t.jsx(XS,{defaultMessage:"Download",id:"5q3qC0sC3r"})})]})]})]})})}function GB(e){if("file_kind"in e){if(!e.file_name)return;const t=e.file_name.split(".");return t.length>1?t[t.length-1]:void 0}if(e.displayOnly)return"";if(IB(e))return"pasted";if(TB(e))return"";if(AB(e))return"";if("text/plain"===e.file_type)return"txt";if("text/html"===e.file_type)return"html";{const t=e.file_name.match(/\.[^.]+$/);return t&&Jt({imagesEnabled:!0}).includes(t[0].toLowerCase())?t[0].slice(1):"text"}}const KB=({handleClick:t,isInSelectionMode:s,handleSelect:n,isSelected:a})=>{const[i,r]=e.useState(!1);return{onClick:()=>{s&&n?n(!a,!1):t?t():r(!0)},onOpen:()=>{t?t():r(!0)},isPreviewOpen:i,setIsPreviewOpen:r}},YB={icon:{height:28,width:28},normal:{height:120,width:120},stretch:{height:120,width:"100%"}},QB=e=>e&&YB[e]?YB[e]:YB.normal,JB=({file:e,isEditable:s,showWarnings:n,...a})=>{if("file_kind"in e&&(a.handleRetry||e.cloudRefError))return t.jsx(rq,{...a,isEditable:s,title:e.file_name,subtitle:t.jsx(XS,{defaultMessage:"Upload failed",id:"f00p/7iV78"}),showSubtitleOnError:!0});if("file_kind"in e){if(e.nativeFile instanceof File&&zt(e.nativeFile)&&!("thumbnail_asset"in e))return t.jsx(XB,{...a,file:e,isEditable:s});switch(e.file_kind){case Zt.Image:return t.jsx(eq,{...a,file:e,showWarnings:n,isEditable:s});case Zt.Blob:return t.jsx(tq,{...a,file:e,isEditable:s});case Zt.SanitizedDocument:return t.jsx(nq,{...a,file:e,isEditable:s});case Zt.WiggleVM:return t.jsx(aq,{...a,file:e,isEditable:s})}}return t.jsx(sq,{...a,file:e,isEditable:s})},XB=({file:s,...n})=>{const[a,i]=e.useState();return e.useEffect(()=>{if(!(s.nativeFile instanceof File))return;const e=URL.createObjectURL(s.nativeFile);return i(e),()=>URL.revokeObjectURL(e)},[s.nativeFile]),a?t.jsx(eq,{...n,file:{file_name:s.file_name},src:a}):t.jsx(cq,{...n})},eq=({disabled:s,size:n,file:a,showWarnings:i,handleRemove:r,handleClick:o,isSelected:l,handleSelect:c,isInSelectionMode:d,isEditable:u,isLoading:m,src:p})=>{const{height:f,width:g}=QB(n),{onClick:h,onOpen:C,isPreviewOpen:x,setIsPreviewOpen:v}=KB({handleClick:o,isInSelectionMode:d,handleSelect:c,isSelected:l}),y=p??a.preview_asset?.url??"",b=i&&a.preview_asset&&(e=>{if(!e.preview_asset)return!1;const{image_width:t,image_height:s}=e.preview_asset;return t<200||s<200})(a),k=e.useRef(null);return t.jsxs(sA.div,{className:"relative group/thumbnail",whileHover:u?"actionsVisible":void 0,animate:d?"actionsVisible":"initial",children:[t.jsxs("div",{"data-testid":a.file_name,style:{width:g,height:f,minWidth:g,minHeight:f},className:Bt("rounded-lg overflow-hidden can-focus-within rounded-lg border-0.5 border-strong hover:border-stronger hover:shadow-black/10 shadow-sm shadow-black/5",!s&&"cursor-pointer"),children:[t.jsx(iq,{"data-testid":"file-thumbnail",disabled:s,width:g,height:f,fileName:a.file_name,src:y,imgRef:k,onClick:h,onOpen:C,isLoading:m}),t.jsx(pq,{isAbsolute:!0,right:b?t.jsx(gq,{type:"warning",tooltipText:"Attach a higher resolution image for better results"}):void 0,isSelected:l,handleSelect:c,isEditable:u,accessibleName:a.file_name}),t.jsx(WB,{...a.preview_asset?{file:a}:{src:y,alt:a.file_name},isOpen:x,originRef:k,onClose:()=>v(!1)})]}),t.jsx(Cq,{disabled:s,handleRemove:r,isEditable:u,isInSelectionMode:d,accessibleName:a.file_name})]})},tq=({file:e,handleClick:s,...n})=>{const{onClick:a,onOpen:i,isPreviewOpen:r,setIsPreviewOpen:o}=KB({handleClick:s,isInSelectionMode:n.isInSelectionMode,handleSelect:n.handleSelect,isSelected:n.isSelected}),l=GB(e);return t.jsxs("div",{children:[t.jsx(rq,{...n,"data-testid":e.file_name,title:e.file_name,handleClick:a,handleOpen:i,tag:!!l&&t.jsx(fq,{tagName:l,tooltipText:l?`Claude can analyze ${l.toUpperCase()} files with the analysis tool.`:"Claude can analyze this file with the Analysis tool."})}),t.jsx(BB,{isOpen:r,setIsOpen:o,fileName:e.file_name,fileUuid:qt(e),filePath:e.path,fileSize:e.size_bytes??void 0})]})},sq=({file:e,handleClick:s,...n})=>{const a=JS(),{onClick:i,onOpen:r,isPreviewOpen:o,setIsPreviewOpen:l}=KB({handleClick:s,isInSelectionMode:n.isInSelectionMode,handleSelect:n.handleSelect,isSelected:n.isSelected}),c=IB(e),d=TB(e),u=AB(e),m=c?"Pasted Text":d?"Excerpt Text":u?"Progress item":e.file_name,p=e.extracted_content.split("\n").length,f=!!e.encodingPending,g=f?t.jsx("span",{className:"text-danger-200",children:t.jsx(XS,{defaultMessage:"Missing encoding",id:"ls2O3RKjqV"})}):t.jsx(XS,{defaultMessage:"{count, plural, one {# line} other {# lines}}",id:"AFTxeGB4qO",values:{count:p}}),h=e.extracted_content.substring(0,300),C=GB(e),x=[m,C,f?a.formatMessage({defaultMessage:"Missing encoding",id:"ls2O3RKjqV"}):a.formatMessage({defaultMessage:"{count, plural, one {# line} other {# lines}}",id:"AFTxeGB4qO"},{count:p})].filter(Boolean).join(", ");return t.jsxs("div",{children:[t.jsx(rq,{...n,"data-testid":e.file_name,...c||d||u?{text:h}:{title:m,subtitle:g},handleClick:i,handleOpen:r,textSize:d||u?"medium":"small",showLeftBorder:d||u,isError:f,showSubtitleOnError:f,accessibleName:x,tag:!f&&!!C&&t.jsx(fq,{tagName:C,tooltipText:"pdf"===e.file_type?"PDF converted to text":void 0})}),t.jsx(qB,{file:e,isOpen:o,onClose:()=>l(!1)})]})},nq=({disabled:e,size:s,file:n,handleRemove:a,handleClick:i,isSelected:r,handleSelect:o,isInSelectionMode:l,isEditable:c,isLoading:d})=>{const{height:u,width:m}=QB(s),{onClick:p,onOpen:f,isPreviewOpen:g,setIsPreviewOpen:h}=KB({handleClick:i,isInSelectionMode:l,handleSelect:o,isSelected:r}),C=GB(n);return t.jsxs(sA.div,{className:"group/thumbnail relative",whileHover:c?"actionsVisible":void 0,animate:l?"actionsVisible":"initial",children:[t.jsxs("div",{"data-testid":n.file_name,style:{width:m,height:u,minWidth:m,minHeight:u},className:Bt("rounded-lg overflow-hidden border-0.5 border-strong shadow-sm shadow-black/5 can-focus-within rounded-lg",!e&&"cursor-pointer hover:border-stronger hover:shadow-black/10"),children:[t.jsx(iq,{disabled:e,width:"100%",height:"100%",fileName:n.file_name,src:n.thumbnail_asset.url,onClick:p,onOpen:f,isLoading:d}),t.jsx(pq,{isSelected:r,handleSelect:o,isAbsolute:!0,left:C?t.jsx(fq,{tagName:C}):void 0,isEditable:c,accessibleName:n.file_name}),t.jsx($B,{isOpen:g,setIsOpen:h,documentFile:n})]}),t.jsx(Cq,{disabled:e,handleRemove:a,isEditable:c,isInSelectionMode:l,accessibleName:n.file_name})]})},aq=({file:e,...s})=>{const n=GB(e);return t.jsx("div",{children:t.jsx(rq,{...s,"data-testid":e.file_name,title:e.file_name,handleClick:s.handleClick?()=>{s.handleClick?.()}:void 0,tag:!!n&&t.jsx(fq,{tagName:n})})})},iq=({disabled:s,width:n,height:a,fileName:i,src:r,onClick:o,onOpen:l,imgRef:c,isLoading:d})=>{const[u,m]=e.useState(!1);return t.jsxs("button",{className:"relative bg-bg-000",style:{width:n,height:a},disabled:s,onClick:o,onKeyDown:e=>{"Enter"===e.key&&l&&(e.preventDefault(),l())},children:[t.jsx("img",{ref:c,className:Bt("w-full h-full object-cover transition duration-400",u?"opacity-100":"opacity-0 blur-sm",d&&u&&"animate-pulse"),onLoad:()=>m(!0),alt:i,src:r,onDragStart:e=>e.preventDefault()}),d&&!u&&t.jsx("div",{className:"absolute inset-0",children:t.jsx(Wt,{width:"100%",height:"100%"})})]})},rq=({disabled:s,size:n,handleClick:a,handleOpen:i,url:r,title:o,subtitle:l,text:c,isLoading:d=!1,tag:u,actions:m,isError:p,handleRemove:f,handleRetry:g,isEditable:h,isSyncing:C,handleSelect:x,isSelected:v,isInSelectionMode:y,textSize:b="small",showLeftBorder:k=!1,showSubtitleOnError:w=!1,accessibleName:M})=>{const _=e.useId(),j=p||Boolean(g),S=!(!a&&!r),{height:L,width:N}=QB(n);return t.jsx("div",{"data-find-omitted":"",className:"relative",children:t.jsxs(sA.div,{className:"group/thumbnail",whileHover:h||C||y?"actionsVisible":void 0,animate:y||C?"actionsVisible":"initial","data-testid":"file-thumbnail",children:[t.jsxs(oq,{url:r,handleClick:a,disabled:s,width:N,height:L,isClickable:S,isLoading:d,isError:j,accessibleName:M,handleOpen:i,children:[t.jsxs("div",{className:"flex flex-col gap-1 min-h-0",children:[c?t.jsxs("div",{className:"flex-1 min-h-0 flex flex-row gap-2",children:[k&&t.jsx("div",{className:"w-[3px] mt-0.5 shrink-0 bg-border-400 rounded-full"}),t.jsx(sA.p,{initial:{opacity:0},animate:{opacity:1},className:Bt(" flex-1 min-w-0 overflow-hidden","medium"===b?"text-[11px] line-clamp-[7] leading-[14.5px] text-text-200 break-words":"text-[8px] text-text-500/80 break-all line-clamp-[6]"),children:c})]}):j||o&&!d?t.jsx(sA.h3,{id:_,initial:{opacity:0},animate:{opacity:1},inherit:!1,className:Bt("text-[12px] break-words",j?"text-text-500":"text-text-100",l?"line-clamp-3":"line-clamp-4"),children:o}):t.jsx(dq,{}),(!j||w)&&!!l&&!d&&t.jsx(sA.p,{initial:{opacity:0},animate:{opacity:1},inherit:!1,className:"text-[10px] line-clamp-1 break-words text-text-500",children:l})]}),d?t.jsx(uq,{}):t.jsx(pq,{isSelected:v,handleSelect:x,left:u,right:j&&t.jsx(gq,{type:"error"})||void 0,actions:m,isEditable:h,accessibleName:M??o})]}),g&&t.jsx(hq,{handleRetry:g,accessibleName:M??o}),t.jsx(Cq,{disabled:s,handleRemove:f,isEditable:h,isInSelectionMode:y,cardNameId:c?void 0:_,accessibleName:M??o})]})})},oq=({children:e,disabled:s,width:n,height:a,handleClick:i,handleOpen:r,url:o,isClickable:l,isLoading:c,isError:d,accessibleName:u})=>i?t.jsx("button",{disabled:s,style:{width:n,height:a,minWidth:n},className:Bt("rounded-lg text-left",!s&&"cursor-pointer","font-ui transition-all rounded-lg border-0.5 border-strong flex flex-col justify-between gap-2.5 overflow-hidden px-2.5 py-2",d?"bg-danger-200/5":c?"bg-bg-100":"bg-bg-000",l&&!c&&!s&&"hover:border-stronger hover:shadow-black/10",!c&&"shadow-sm shadow-black/5"),"aria-label":u,onClick:i,onKeyDown:e=>{"Enter"===e.key&&r&&(e.preventDefault(),r())},children:e}):o?t.jsx("a",{style:{width:n,height:a,minWidth:n},className:Bt("rounded-lg text-left",!s&&"cursor-pointer","font-ui transition-all rounded-lg border-0.5 border-strong flex flex-col justify-between gap-2.5 overflow-hidden px-2.5 py-2",d?"bg-danger-200/5":c?"bg-bg-100":"bg-bg-000",l&&!c&&!s&&"hover:border-stronger hover:shadow-black/10",!c&&"shadow-sm shadow-black/5"),href:s?void 0:o,"aria-label":u,target:"_blank",children:e}):t.jsx("div",{style:{width:n,height:a,minWidth:n},className:Bt("rounded-lg text-left",!s&&l&&"cursor-pointer","font-ui transition-all rounded-lg border-0.5 border-strong flex flex-col justify-between gap-2.5 overflow-hidden px-2.5 py-2",d?"bg-danger-200/5":c?"bg-bg-100":"bg-bg-000",l&&!c&&!s&&"hover:border-stronger hover:shadow-black/10",!c&&"shadow-sm shadow-black/5"),children:e}),lq=({file:e})=>{const s=GB(e);return t.jsx("div",{className:"w-[38px] h-[38px] min-w-[38px] font-ui rounded-lg border-0.5 border-strong shadow-sm shadow-black/5 flex items-center justify-center overflow-hidden bg-bg-000",children:!!s&&t.jsx("p",{className:"font-bold uppercase font-ui text-text-300 text-[9px] pt-0.5",children:s})})},cq=({size:e,tag:s,isShown:n=!0})=>{const{width:a}=QB(e);return t.jsx(nA,{children:!!n&&t.jsx(sA.div,{initial:{opacity:0,maxWidth:0},animate:{opacity:1,maxWidth:a},children:t.jsx(rq,{isLoading:!0,tag:s,size:e})})})},dq=()=>t.jsxs(sA.div,{initial:{opacity:0},animate:{opacity:1},className:"w-full flex flex-col",children:[t.jsx(Wt,{width:"100%",height:"12px",className:"mt-1 !bg-border-400 !rounded-[4px] after:!via-always-white/50"}),t.jsx(Wt,{width:"66%",height:"12px",className:"mt-1 !bg-border-400 !rounded-[4px] after:!via-always-white/50"})]}),uq=()=>t.jsx(sA.div,{initial:{opacity:0},animate:{opacity:1},children:t.jsx(Wt,{width:"48px",height:"18px",className:"mt-1 !bg-border-400 !rounded-[4px] after:!via-always-white/50"})});function mq({children:e,className:s,...n}){return t.jsx("div",{...n,className:Bt("min-w-0 h-[18px] flex flex-row items-center justify-center gap-0.5 px-1 border-0.5 border-strong shadow-sm rounded-[4px] bg-bg-000/70 backdrop-blur-sm font-medium",s),children:e})}const pq=({isAbsolute:e=!1,left:s,right:n,actions:a,handleSelect:i,isSelected:r,isEditable:o,accessibleName:l})=>{const c=JS(),d=l?c.formatMessage({defaultMessage:"Select: {name}",id:"Y7tnLdrXcO"},{name:l}):c.formatMessage({defaultMessage:"Select file",id:"V3zw7m9pi/"}),u=!!s,m=!!n||!!i;return u||m?t.jsx("div",{className:Bt(e&&"absolute bottom-2 left-0 right-0 px-2.5 overflow-x-clip"),children:t.jsxs("div",{className:Bt("relative flex flex-row items-center gap-1",m&&!u?"justify-end":"justify-between"),children:[u&&t.jsx(sA.div,{initial:{opacity:0},animate:{opacity:1},className:"flex flex-row gap-1 shrink min-w-0",children:s}),m&&t.jsxs("div",{className:"flex flex-row gap-1 shrink-0",children:[n,!!i&&!!o&&t.jsxs(sA.div,{variants:{actionsVisible:{opacity:1,position:"relative"},initial:{opacity:0,position:"absolute"}},className:"flex flex-row gap-1 h-[18px] right-0 top-0 has-[:focus-visible]:!opacity-100 has-[:focus-visible]:![position:relative]",onClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation(),transition:{ease:"easeOut",duration:.2},children:[a,t.jsx($t,{checked:r,onChange:i,label:d,hideLabel:!0,className:Bt("!w-[18px] !h-[18px] !border-0.5 !border-strong !shadow-sm !rounded-[4px]"),size:12})]})]})]})}):null},fq=({tagName:e,tooltipText:s,className:n})=>{const a=t.jsx(mq,{className:n,children:t.jsx("p",{className:"uppercase truncate font-ui text-text-300 text-[11px] leading-[13px]",children:e})});return s?t.jsx(Kt,{tooltipContent:s,children:a}):a},gq=({type:e,tooltipText:s,className:n})=>{const a=t.jsx(mq,{className:Bt("shrink-0","error"===e?"text-danger-000 border-danger-200/50 bg-danger-900":"text-warning-200 border-warning-200/50 bg-bg-000/70",n),children:t.jsx(Gt,{size:12})});return s?t.jsx(Kt,{tooltipContent:s,children:a}):a},hq=({handleRetry:e,accessibleName:s})=>{const n=JS();return t.jsx(Kt,{tooltipContent:t.jsx(XS,{defaultMessage:"Upload failed. Retry",id:"6SeYUXHxEM"}),side:"bottom",children:t.jsx("button",{type:"button","aria-label":n.formatMessage({defaultMessage:"Retry upload of {name}",id:"j0NJn0gkP+"},{name:s??"file"}),"data-testid":"file-thumbnail-retry",onClick:t=>{t.preventDefault(),t.stopPropagation(),e()},className:"absolute left-1/2 top-1/2 flex -translate-x-1/2 -translate-y-1/2 items-center gap-1 rounded-md bg-bg-000/90 px-2 py-1 text-[11px] font-medium text-danger-200 shadow-sm ring-1 ring-danger-200/50 hover:bg-bg-000",children:t.jsx(XS,{defaultMessage:"\u21bb Retry",id:"O4ZT6YFJyI"})})})},Cq=({disabled:e,handleRemove:s,isEditable:n,isInSelectionMode:a,cardNameId:i,accessibleName:r})=>{const o=JS();if(!s||!n||a||e)return null;const l=!i&&r?o.formatMessage({defaultMessage:"Remove {name}",id:"T0e6Lh8loG"},{name:r}):o.formatMessage({defaultMessage:"Remove",id:"G/yZLul6P1"});return t.jsx(Kt,{tooltipContent:t.jsx(XS,{defaultMessage:"Remove",id:"G/yZLul6P1"}),side:"bottom",children:t.jsx("button",{"aria-label":l,"aria-describedby":i,className:Bt("transition-all hover:bg-bg-000/50 text-text-500 hover:text-text-200 group-focus-within/thumbnail:opacity-100 group-hover/thumbnail:opacity-100 opacity-0 w-5 h-5 absolute -top-2 -left-2 rounded-full border-0.5 border-strong bg-bg-000/90 backdrop-blur-sm flex items-center justify-center",Qt()&&"!opacity-100 !bg-bg-000/50"),onClick:e=>{e.stopPropagation(),e.preventDefault(),s()},children:t.jsx(Yt,{size:12})})})};function xq(e){const t=e.match(/\.[^/.]+$/);return t&&Jt({imagesEnabled:!0}).includes(t[0].toLowerCase())?e.replace(/\.[^/.]+$/,""):e}const vq=()=>t.jsx(rq,{title:"Images hidden in shared chats",isError:!0}),yq=()=>t.jsx(rq,{title:"Files hidden in shared chats",isError:!0});function bq({doc:s,isOpen:n,onClose:a}){const[i,r]=e.useState("normal"),o=e.useCallback(e=>{e||(r("normal"),a())},[a]),l=e.useMemo(()=>Xt(s.file_name),[s.file_name]),c=l.isHtml||l.isSvg||l.isMermaid||l.isCsv||l.isTsv,d=c||l.isMarkdown;return t.jsx(lN.Root,{open:n,onOpenChange:o,children:t.jsxs(lN.Popup,{size:"3xl",children:[t.jsx(lN.Header,{showClose:!0,children:s.file_name}),t.jsxs("div",{className:"flex flex-col gap-sm",children:[d&&t.jsx("div",{className:"flex justify-end",children:t.jsx(iH,{viewing:i,onViewingChange:r})}),t.jsx("div",{className:"h-[70vh] overflow-hidden rounded border bg-surface-0",children:t.jsx(rH,{content:s.content,displayFileType:c?"rich":"code",language:l.fileSyntax,viewing:i,fileName:s.file_name,mimeType:l.fileMimeType,noAutoScroll:!0})})]})]})})}function kq({doc:s,displayName:n,canEditKnowledgeBase:a,...i}){const{mutate:r}=es(s.project_uuid),[o,l]=e.useState(!1),c=e.useMemo(()=>(new TextEncoder).encode(s.content).length,[s]),d={created_at:s.created_at,file_name:n??s.file_name,file_size:c,file_type:"",extracted_content:s.content,origin:ts.UserUpload,kind:It.File},u=e.useCallback(()=>l(!0),[]),m=e.useCallback(()=>l(!1),[]),p=e.useCallback(()=>r({docUuid:s.uuid}),[r,s.uuid]);return t.jsxs(t.Fragment,{children:[t.jsx(JB,{...i,file:d,handleClick:u,handleRemove:p}),t.jsx(bq,{doc:s,isOpen:o,onClose:m})]})}function wq({file:e,projectUuid:s,canEditKnowledgeBase:n,...a}){const{mutate:i,isPending:r}=ss(s);return t.jsx(JB,{...a,file:e,handleRemove:()=>{i({file_uuids:[e.file_uuid]})},isLoading:r})}function Mq(t,s,n,a=500){const i=JS(),r=e.useMemo(()=>""===s?i.formatMessage({defaultMessage:"{count, plural, one {# {singular}} other {# {plural}}}",id:"lv+bhopVDB"},{count:t,singular:n.singular,plural:n.plural}):0===t?i.formatMessage({defaultMessage:'No {plural} match "{query}"',id:"iamqOyi/BB"},{plural:n.plural,query:s}):i.formatMessage({defaultMessage:'{count, plural, one {# {singular}} other {# {plural}}} matching "{query}"',id:"bVeFRVZSuD"},{count:t,singular:n.singular,plural:n.plural,query:s}),[t,s,n.singular,n.plural,i]),[o]=ns(r,a);return{message:r,announcement:r===o?r:""}}const _q=e.forwardRef(function({value:e,onChange:s,onClear:n,placeholder:a,ariaLabel:i,autoFocus:r,resultsId:o,describedById:l,onInputKeyDown:c},d){const u=JS();return t.jsx("div",{role:"search",className:"w-full",children:t.jsx(pN,{ref:d,type:"text",size:"lg",className:"w-full",value:e,placeholder:a,"aria-label":i,"aria-controls":o,"aria-describedby":l,autoFocus:r,slotStart:t.jsx($L,{name:"Search",size:"sm"}),clearable:!0,clearLabel:u.formatMessage({defaultMessage:"Clear search",id:"4YJHutR26p"}),onClear:n,onChange:e=>s(e.target.value),onKeyDown:c})})});const jq=(e,t)=>t?e.filter(e=>e.file_name.toLowerCase().includes(t)):e;function Sq({name:e,count:s,onOpen:n,isEditable:a,isInSelectionMode:i,isSelected:r,isIndeterminate:o,onSelectChange:l}){const c=JS(),d=!!a&&!!l,u=d&&i?()=>l(!r):n;return t.jsxs("div",{className:"group/folder relative h-[120px] w-full font-ui","data-testid":"file-thumbnail",children:[t.jsx("span",{"aria-hidden":!0,className:dt("absolute -top-[7px] left-0 block h-2 w-12 rounded-t-md border-0.5 border-b-0","border-[hsl(var(--border-300)/0.25)] bg-[hsl(var(--bg-000))]","group-hover/folder:border-[hsl(var(--border-200)/0.5)]")}),t.jsxs("button",{type:"button",onClick:u,onKeyDown:e=>{"Enter"===e.key&&u!==n&&(e.preventDefault(),n())},"aria-label":c.formatMessage({defaultMessage:"Open folder {name}",id:"w/DUWlNb+S"},{name:e}),className:dt("flex h-full w-full flex-col justify-between overflow-hidden text-left","rounded-lg rounded-tl-none border-0.5 px-2.5 py-2 transition-all","border-[hsl(var(--border-300)/0.25)] bg-[hsl(var(--bg-000))]","shadow-sm shadow-always-black/5","group-hover/folder:border-[hsl(var(--border-200)/0.5)]","group-hover/folder:shadow-always-black/10"),children:[t.jsxs("span",{className:"flex flex-col gap-1",children:[t.jsx("span",{className:"line-clamp-2 break-words text-footnote text-primary",children:e}),t.jsx("span",{className:"text-caption text-muted",children:t.jsx(XS,{defaultMessage:"{count, plural, one {# item} other {# items}}",id:"B8MRsI/UjW",values:{count:s}})})]}),t.jsx($L,{name:"Folder",size:"sm",className:"text-secondary"})]}),d&&t.jsx(cN,{size:"sm",checked:!!r,indeterminate:!!o,onCheckedChange:e=>l(!0===e),"aria-label":c.formatMessage({defaultMessage:"Select folder {name}",id:"F6Wn2a07H2"},{name:e}),className:dt("absolute bottom-2 right-2.5 transition-opacity",i||r||o?"opacity-100":"opacity-0 focus-visible:opacity-100 group-hover/folder:opacity-100")})]})}const Lq=e.memo(function({name:s,docs:n,allDocs:a,isEditable:i,isInSelectionMode:r,isSelected:o,isIndeterminate:l,onSelectChange:c}){const[d,u]=e.useState(!1),m=e.useCallback(()=>u(!0),[]),p=e.useCallback(e=>!e&&u(!1),[]);return t.jsxs(t.Fragment,{children:[t.jsx(Sq,{name:s,count:n.length,onOpen:m,isEditable:i,isInSelectionMode:r,isSelected:o,isIndeterminate:l,onSelectChange:c}),t.jsx(lN.Root,{open:d,onOpenChange:p,children:d&&t.jsx(Iq,{allDocs:a,clickedFolder:s})})]})});function Nq({doc:s,displayPath:n}){const[a,i]=e.useState("normal"),r=e.useMemo(()=>Xt(s.file_name),[s.file_name]),o=n.split("/").pop()??n,l=r.isHtml||r.isSvg||r.isMermaid||r.isCsv||r.isTsv,c=l||r.isMarkdown;return t.jsxs("div",{className:"relative flex min-h-0 flex-1 flex-col",children:[t.jsxs("div",{className:"flex items-center justify-between pb-2",children:[t.jsx("span",{className:"font-base text-secondary",children:o}),c&&t.jsx(iH,{viewing:a,onViewingChange:i})]}),t.jsx("div",{className:"min-h-0 flex-1",children:t.jsx(rH,{content:s.content,displayFileType:l?"rich":"code",language:r.fileSyntax,viewing:a,fileName:o,mimeType:r.fileMimeType,noAutoScroll:!0,compact:!0},s.uuid)})]})}function Iq({allDocs:s,clickedFolder:n,autoFocusSearch:a=!1}){const i=JS(),[r,o]=e.useState(""),l=r.trim().toLowerCase(),c=e.useMemo(()=>{const e=new Map;for(const t of s)e.set(t.file_name.split("/").filter(Boolean).join("/"),t);return e},[s]),d=e.useMemo(()=>jq(s,l),[s,l]),u=e.useMemo(()=>{const e=d.map(e=>({path:e.file_name,content:e.content}));return oH(e,{skillConventions:!1})},[d]),[m,p]=e.useState(null),[f,g,h]=lH(new Set(n?[n]:[])),C=e.useRef(new Set),x=e.useCallback(e=>{o(e);const t=e.trim().toLowerCase(),n=t?(a=jq(s,t),new Set(a.flatMap(e=>{const t=e.file_name.split("/").filter(Boolean);return t.slice(0,-1).map((e,s)=>t.slice(0,s+1).join("/"))}))):new Set;var a;const{next:i,contribution:r}=function(e,t,s){const n=new Set([...e].filter(e=>!t.has(e))),a=new Set([...s].filter(e=>!n.has(e)));return{next:new Set([...n,...s]),contribution:a}}(f,C.current,n);h(i),C.current=r},[s,f,h]),v=e.useCallback((e,t)=>{"file"===t.type&&p(e)},[]),y=m?c.get(m)??null:null,b=i.formatMessage({defaultMessage:"Search files",id:"8xPuGUna7W"}),k=e.useRef(null),w=e.useId(),{announcement:M}=Mq(d.length,l,{singular:i.formatMessage({defaultMessage:"file",id:"vwxMsyPVYx"}),plural:i.formatMessage({defaultMessage:"files",id:"l17U7PEF+6"})});return t.jsxs(lN.Popup,{size:"3xl",fullHeight:!0,initialFocus:a?k:void 0,children:[t.jsx(lN.Header,{description:t.jsx(XS,{defaultMessage:"{count, plural, one {# item} other {# items}}",id:"B8MRsI/UjW",values:{count:d.length}}),children:t.jsx(XS,{defaultMessage:"Context",id:"V2qutIKrxy"})}),t.jsxs("div",{className:"flex min-h-0 flex-auto items-stretch",children:[t.jsxs("div",{className:"flex w-56 shrink-0 flex-col gap-2 py-2 pr-2",children:[t.jsx(_q,{ref:k,value:r,onChange:x,onClear:()=>x(""),placeholder:b,ariaLabel:b,resultsId:d.length>0?w:void 0}),t.jsx("p",{role:"status",className:"sr-only",children:l?M:null}),0===d.length?t.jsx("p",{className:"px-2 py-1 text-body text-muted",children:t.jsx(XS,{defaultMessage:"No matching files.",id:"2A8U5xflLL"})}):t.jsx(cH,{id:w,fileTree:u,selectedPath:m,expandedFolders:f,onFileSelect:v,onToggleFolder:g,variant:"settings",className:"min-h-0 w-full flex-1"})]}),t.jsx("div",{className:"flex min-h-0 flex-1 flex-col overflow-hidden rounded-card border border-alpha-2 bg-surface-1 px-4 pt-2",children:y&&m?t.jsx(Nq,{doc:y,displayPath:m}):t.jsx("div",{className:"flex h-full items-center justify-center text-body text-muted",children:t.jsx(XS,{defaultMessage:"Select a file to view its contents.",id:"VCBDr95KRH"})})})]})]})}function Tq(t,s){const[n,a]=e.useState(!1),[i,r]=e.useState([]),o=(e,n)=>{s||r(s=>{if(!n||0===Object.keys(s).length)return[...s,e];const a=s[Object.keys(s).length-1],i=t.findIndex(({uuid:e,type:t})=>e===a.uuid&&t===a.type);if(-1===i)return[...s,e];const r=t.findIndex(({uuid:t})=>t===e.uuid),o=Math.min(i+1,r),l=Math.max(i-1,r),c=t.slice(o,l+1),d=s.map(({uuid:e})=>e),u=c.filter(({uuid:e})=>-1===d.indexOf(e));return[...s,...u]})},l=e=>{s||r(t=>t.filter(({uuid:t,type:s})=>t!==e.uuid||s!==e.type))};return e.useEffect(()=>{const e=i.filter(e=>t.some(t=>t.uuid===e.uuid&&t.type===e.type));e.length!==i.length&&r(e)},[t]),e.useEffect(()=>{a(i.length>0)},[i]),{selectedItems:i,handleSelect:(e,t,n)=>{s||(t?o(e,n):l(e))},selectAllItems:()=>{s||(i.length===t.length?r([]):r(t))},isInSelectionMode:!s&&n,toggleSelectMode:e=>{a(e),e||r([])}}}function Aq({isLoading:e=!1,numSelected:s,totalNumItems:n,handleSelectAll:a,handleCancel:i,handleDeleteSelected:r,handleArchiveSelected:o,handleMoveToProject:l,deleteVariant:c="delete"}){const d=JS(),u=as(),m=y("move_conversation_to_projects"),p=u&&m,f=o?"delete":c;return t.jsxs("div",{className:"group/menu flex items-center rounded-lg w-full gap-2.5",children:[t.jsx(iN,{content:s<n?t.jsx(XS,{defaultMessage:"Select all",id:"94Fg25VD0N"}):t.jsx(XS,{defaultMessage:"Deselect all",id:"Spd88Hdc8Z"}),side:"bottom",hoverable:!1,children:t.jsx("div",{className:s>0?"opacity-100 transition-opacity":"opacity-0 group-hover/menu:opacity-100 transition-opacity",children:t.jsx($t,{checked:s>0,indeterminate:s>0&&s!==n,onChange:a,label:0===s?t.jsx(XS,{defaultMessage:"Select all",id:"94Fg25VD0N"}):t.jsx(XS,{defaultMessage:"Select all ({numSelected})",id:"DyqTu9FCTX",values:{numSelected:s}}),hideLabel:!0,disabled:0===n})})}),t.jsx("div",{className:"font-base text-text-400 ml-3",children:t.jsx(XS,{defaultMessage:"<format>{count}</format> selected",id:"N0IAIYom8U",values:{format:e=>t.jsx("span",{className:"tabular-nums",children:e}),count:s}})}),t.jsxs("div",{className:"mr-auto flex gap-1",children:[l&&p&&t.jsx(kt,{size:"icon",tooltip:s>0&&t.jsx(XS,{defaultMessage:"Move {numSelected, plural, one {# chat} other {# chats}} to a project",id:"TNDo7KthuR",values:{numSelected:s}}),"aria-label":d.formatMessage({defaultMessage:"Move {numSelected, plural, one {# chat} other {# chats}} to a project",id:"TNDo7KthuR"},{numSelected:s}),variant:"ghost",disabled:0===s,onClick:l,children:t.jsx(is,{})}),o&&t.jsx(kt,{size:"icon",tooltip:s>0&&t.jsx(XS,{defaultMessage:"Archive {numSelected} selected {numSelected, plural, one {item} other {items}}",id:"cteaXgnqV+",values:{numSelected:s}}),"aria-label":d.formatMessage({defaultMessage:"Archive {numSelected} selected {numSelected, plural, one {item} other {items}}",id:"cteaXgnqV+"},{numSelected:s}),variant:"ghost",disabled:0===s,onClick:o,children:t.jsx(rs,{})}),r&&t.jsx(kt,{size:"icon",tooltip:s>0&&("archive"===f?t.jsx(XS,{defaultMessage:"Archive {numSelected} selected {numSelected, plural, one {item} other {items}}",id:"cteaXgnqV+",values:{numSelected:s}}):t.jsx(XS,{defaultMessage:"Delete {numSelected} selected {numSelected, plural, one {item} other {items}}",id:"TmuLafn4Jw",values:{numSelected:s}})),"aria-label":"archive"===f?d.formatMessage({defaultMessage:"Archive {numSelected} selected {numSelected, plural, one {item} other {items}}",id:"cteaXgnqV+"},{numSelected:s}):d.formatMessage({defaultMessage:"Delete {numSelected} selected {numSelected, plural, one {item} other {items}}",id:"TmuLafn4Jw"},{numSelected:s}),variant:"ghost",disabled:0===s,onClick:r,loading:e,children:"archive"===f?t.jsx(rs,{}):o?t.jsx(wt,{className:"text-danger-000"}):t.jsx(wt,{})})]}),t.jsx(kt,{tooltip:t.jsx(XS,{defaultMessage:"Cancel",id:"47FYwba+bI"}),size:"icon",variant:"ghost",onClick:i,children:t.jsx(Yt,{})})]})}const Eq=({icon:e,title:s,subtitles:n,tag:a,disabled:i,url:r,isError:o,handleClick:l})=>{const c=Bt("flex flex-row gap-4 items-center justify-between rounded-md shrink-0 h-[2rem] px-1.5 mx-0.5 w-full min-w-0",i||!l&&!r?"cursor-default":"cursor-pointer hover:bg-bg-200"),d=t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"flex flex-row items-center gap-2 min-w-0",children:[(!!e||o)&&t.jsx("div",{className:"h-5 w-5 flex items-center justify-center shrink-0",children:o?t.jsx(pR,{size:12,className:"text-danger-000"}):e}),t.jsx("p",{className:Bt("relative text-[0.875rem] whitespace-nowrap overflow-hidden text-ellipsis shrink",o?"text-text-500":"text-text-000"),children:s}),!!n?.length&&n.map((e,s)=>t.jsx("p",{className:"relative bottom-[1px] text-[0.75rem] text-text-500 line-clamp-1 shrink-0",children:e},s))]}),!!a&&t.jsx("div",{className:"shrink-0 flex items-center",children:t.jsx("div",{className:"text-[0.625rem] text-text-300 border-border-400 border-0.5 rounded-[4px] px-1 h-[1.125rem] inline-flex items-center justify-center uppercase font-medium shrink-0",children:a})})]});return r?t.jsx("a",{target:"_blank",href:i?void 0:r,tabIndex:-1,children:t.jsx("button",{disabled:i,className:c,onClick:l,children:d})}):l?t.jsx("button",{disabled:i,className:c,onClick:l,children:d}):t.jsx("div",{className:c,children:d})},Rq=e=>e===os.ACCESS_DENIED||e===os.UNAUTHENTICATED||e===os.DISABLED;He.GDRIVE,He.GITHUB,He.OUTLINE,He.SALESFORCE,He.GMAIL,He.GCAL,He.SLACK,He.ASANA,He.CANVAS,He.FIDDLEHEAD,He.CUTTLEFISH,He.MCP_RESOURCES;const Dq=()=>{const{initGithubAuth:e}=pE(),{initDriveAuth:t}=fE(),s=et({source:tt.SyncAuthStart}),n=ls;return(a,i)=>{a===He.GITHUB?e():a===He.GDRIVE?t():a===He.OUTLINE?zE(n):a===He.MCP_RESOURCES&&i&&s(i)}};function Hq(e,t){if(!t.startsWith("/"))throw new Error("absolute path required");let s=t;for(;null!==s;){const t=e[s];if("include"===t)return!0;if("exclude"===t)return!1;s=Fq(s)}return!1}function Pq(e,t){if(!t.startsWith("/"))throw new Error("absolute path required");return Hq(e=Oq(e,t),t)&&(e={...e,[t]:"exclude"}),e}function Uq(e,t){if(!t.startsWith("/"))throw new Error("absolute path required");return Hq(e=Oq(e,t),t)||(e={...e,[t]:"include"}),e}function Oq(e,t){const s={...e};for(const n of Object.keys(e))(t.endsWith("/")&&t===n||n.startsWith(t))&&delete s[n];return s}function Fq(e){if(!e.startsWith("/"))throw new Error("absolute path required");if("/"===e)return null;const t=e.endsWith("/")?e.lastIndexOf("/",e.length-2):e.lastIndexOf("/");return t<=0?"/":e.slice(0,t+1)}const Vq="lastSelectedRepo";function zq(e,t){return{name:e,path:t.endsWith("/")?t:t+"/",size:0,children:new Map}}function Zq(e,t,s){return{name:e,path:t,size:s}}function Bq({initialConfig:s,tokenLimit:n,alreadyUsedTokens:a,onSubmit:i,isSubmitting:r,repoOnly:o=!1}){const[l,c]=e.useState("/"),d=void 0===s,u=n*us,[m,p]=e.useState(()=>{if(s)return s;const e=function(){const e=localStorage.getItem(Vq);if(e){const s=JSON.parse(e);if(s&&"object"==typeof(t=s)&&null!==t&&"string"==typeof t.owner&&"string"==typeof t.repo&&"string"==typeof t.branch)return s}var t;return null}();return e?{owner:e.owner,repo:e.repo,branch:e.branch,filters:{filters:{}}}:{}}),{owner:f,repo:g,branch:h,filters:C}=m;e.useEffect(()=>{c("/")},[g]);const x=e=>{p({owner:f,repo:g,branch:h,filters:{filters:e}})},v=e.useMemo(()=>!wT(s?.filters,C),[s,C]),{data:y,isFetching:b,error:k}=gE({owner:f,repo:g,branch:h}),w=o&&k instanceof cs&&"github_get_tree_api_call_limit_exceeded"===k.errorCode?null:k,M=e.useMemo(()=>function(e,t){if(!t||!e)return[];const s=[];for(const n of t.tree)"blob"===n.type&&Hq(e,"/"+n.path)&&s.push(n);return s}(C?.filters,y.tree),[C?.filters,y.tree]),_=M.map(e=>e.size).reduce((e,t)=>e+t,0),j=Math.ceil(100*a/n),S=Math.ceil(100*_/u)+j,L=e.useMemo(()=>y.tree?function(e){const t={name:"",path:"/",size:0,children:new Map};for(const s of e.tree){const e=s.path.split("/"),n=e.pop();let a=t;for(let t=0;t<e.length;t++){const n=e[t];if(!a.children.has(n)){const s="/"+e.slice(0,t+1).join("/");a.children.set(n,zq(n,s))}"blob"===s.type&&(a.size+=s.size),a=a.children.get(n)}"blob"===s.type?(a.children.set(n,Zq(n,"/"+s.path,s.size)),a.size+=s.size):a.children.set(n,zq(n,"/"+s.path))}return t}(y.tree):null,[y.tree]);e.useEffect(()=>{y?.repo&&y?.repo.default_branch&&!h&&p(e=>({...e,branch:y.repo.default_branch}))},[y?.repo,h,p]),e.useEffect(()=>{f&&g&&h&&function(e){localStorage.setItem(Vq,JSON.stringify(e))}({owner:f,repo:g,branch:h})},[f,g,h]);const[N,I]=e.useState(""),T=!0;return t.jsxs("div",{className:"rounded-xl border-0.5 border-border-300 bg-bg-000 shadow-sm h-[600px] flex flex-col",children:[t.jsx(Kq,{isCreating:d,config:m,setConfig:p,searchQuery:N,setSearchQuery:I,isSubmitting:r,percentUsed:S,onSubmit:i,areFiltersDirty:v,enforceSizeLimit:T,repoOnly:o}),o&&null===w?t.jsx(qq,{}):b?t.jsx($q,{}):null!==w?t.jsx(Gq,{error:w}):g&&f&&h?N?t.jsx(eW,{rootNode:L,searchQuery:N,filters:C?.filters??{},setFilters:x,sizeLimit:u,setCurrentDirectory:c,setSearchQuery:I,enforceSizeLimit:T}):t.jsx(Xq,{repo:g,rootNode:L,filters:C?.filters??{},setFilters:x,sizeLimit:u,currentDirectory:l,setCurrentDirectory:c,enforceSizeLimit:T}):t.jsx(Wq,{}),!o&&t.jsx(tW,{percentUsed:S,selectedPaths:M,alreadyUsedTokens:a,tokenLimit:n,enforceSizeLimit:T})]})}function qq(){return t.jsx("div",{className:"flex h-full items-center justify-center border-t-0.5 bg-surface-3 px-8 text-center text-body text-secondary",children:t.jsx(XS,{defaultMessage:"Pick a repository and branch \u2014 Claude reads it through the GitHub connector when it needs it. Nothing is downloaded now, and sending is never blocked.",id:"D2Y5oRE9us"})})}function Wq(){return t.jsx("div",{className:"flex items-center justify-center h-full bg-bg-000 text-sm text-text-300 border-border-300 border-t-0.5",children:t.jsx(XS,{defaultMessage:"Select a repository or paste a URL above to get started",id:"aGsfPG9sTD"})})}function $q(){return t.jsxs("div",{className:"flex items-center justify-center gap-3 h-full bg-bg-000 shadow-sm text-sm text-text-300",children:[t.jsx("div",{children:t.jsx(ht,{size:"sm"})}),t.jsx(XS,{defaultMessage:"Fetching repository...",id:"hnjVW1oRt2"})]})}function Gq({error:e}){const s=e instanceof cs&&404===e.statusCode,n=e instanceof cs&&"github_get_tree_api_call_limit_exceeded"===e.errorCode;return t.jsx("div",{className:"flex h-full bg-bg-000 text-sm text-text-300 border-border-300 border-t-0.5",children:t.jsx("div",{className:"flex items-center gap-2 m-6",children:s?t.jsxs(t.Fragment,{children:[t.jsx(gR,{size:16}),t.jsx("span",{children:t.jsx(XS,{defaultMessage:"Claude cannot access that resource. If you know that it exists, you may first need to grant or request access <link>here</link>.",id:"41xNOZpKM8",values:{link:s=>t.jsx(ds,{href:`${hE(e)}/installations/select_target`,target:"_blank",children:s})}})})]}):n?t.jsx("span",{className:"text-danger-000",children:t.jsx(XS,{defaultMessage:"Please try a smaller repo.",id:"lvImCTHUvN"})}):t.jsx("span",{className:"text-danger-000",children:t.jsx(XS,{defaultMessage:"An error occurred while fetching that resource. Please try again.",id:"u8OHhkIcYv"})})})})}function Kq({config:s,setConfig:n,isCreating:a,isSubmitting:i,percentUsed:r,searchQuery:o,setSearchQuery:l,onSubmit:c,areFiltersDirty:d,enforceSizeLimit:u,repoOnly:m=!1}){const[p,f]=e.useState(!1),[g,h]=e.useState(!1);return t.jsxs("div",{className:"flex flex-row gap-2 items-center py-2 min-h-14 px-4 font-base border-b-0.5 border-border-300",children:[t.jsx(it,{size:18,type:He.GITHUB,className:"flex-shrink-0"}),!p&&t.jsx(Yq,{config:s,setConfig:n,isCreating:a}),t.jsxs("div",{className:"inline-flex gap-0 items-center",children:[t.jsx(Qq,{isCreating:a,isExpanded:p,setIsExpanded:f,setConfig:n,className:dt({"flex-1 flex-shrink":a&&p})}),s.repo&&!p&&!m&&t.jsx(Jq,{isExpanded:g,setIsExpanded:h,searchQuery:o,setSearchQuery:l,className:"flex-1 flex-shrink"})]}),t.jsx(nA,{children:!p&&s.repo&&(m?Boolean(s.branch):(C=s.filters?.filters??{},!(0===Object.keys(C).length)&&(a||d)))&&t.jsx(sA.div,{className:"ml-auto",initial:{scale:.95,opacity:0},animate:{scale:1,opacity:1},exit:{scale:.95,opacity:0},transition:{type:"spring",damping:20,stiffness:400,delay:0},children:t.jsx(kt,{disabled:i||!m&&u&&r>100||!s.owner||!s.repo||!s.branch,onClick:()=>c({...s,...m?{filters:{filters:{}}}:{}}),children:i?t.jsx(t.Fragment,{children:t.jsx(fR,{className:"animate-spin"})}):m?t.jsx(XS,{defaultMessage:"Add repository",id:"FvUsYi2+QN"}):a?t.jsx(XS,{defaultMessage:"Add files",id:"xrAjmQ72mN"}):t.jsx(XS,{defaultMessage:"Update",id:"BWpuKlRSA1"})})})})]});var C}function Yq({config:s,setConfig:n,isCreating:a,className:i}){const r=ms(),{data:o=[]}=CE(),l=o.map(e=>({owner:e.owner.login,repo:e.name,branch:e.default_branch}));s.owner&&s.repo&&s.branch&&!l.some(e=>e.repo===s.repo&&e.owner===s.owner&&e.branch===s.branch)&&l.unshift({owner:s.owner,repo:s.repo,branch:s.branch});const[c,d]=e.useState(void 0);e.useEffect(()=>{s.owner&&s.repo&&s.branch?d(JSON.stringify({owner:s.owner,repo:s.repo,branch:s.branch})):d(void 0)},[s]);return t.jsx("div",{className:i,children:t.jsxs(OA,{value:c,onValueChange:e=>{const t=JSON.parse(e);n({...t,filters:{filters:{}}}),d(e)},disabled:!a,children:[t.jsxs(FA,{className:dt("flex flex-row rounded-md border-0.5 px-2 border-border-300 py-1 items-center gap-1 text-nowrap overflow-x-hidden",{"max-w-96  pointer-cursor select-none hover:bg-bg-100 ":a,"bg-bg-100":!a}),children:[t.jsx(VA,{placeholder:"Select a repository"}),a&&t.jsx(zA,{className:"pl-1",children:t.jsx(hR,{})})]}),t.jsx(ZA,{children:t.jsx(BA,{className:"border-0.5 border-border-300 bg-bg-100 min-w-72 rounded-lg shadow-sm z-dropdown mt-1 p-1 max-h-96 overflow-y-auto",position:"popper",style:void 0!==r?{zIndex:r}:void 0,children:t.jsx(qA,{className:"overflow-auto",children:l.map((e,s)=>t.jsx(WA,{value:JSON.stringify(e),className:dt("relative flex flex-row p-1.5 cursor-pointer hover:bg-bg-200 focus:outline-none focus:bg-bg-200 rounded-md"),children:t.jsx($A,{children:t.jsxs("span",{className:"flex flex-row text-sm items-center ",children:[t.jsxs("span",{children:[t.jsx("span",{className:"text-text-300",children:e.owner}),"\xa0",t.jsx("span",{className:"text-text-500/50",children:"/"}),"\xa0",t.jsx("span",{className:"text-text-000",children:e.repo})]}),(!a||a&&"master"!==e.branch&&"main"!==e.branch)&&t.jsxs("span",{className:" flex flex-row font-mono text-xs text-text-300 rounded-full px-1.5 ml-2 gap-1 items-center bg-[hsl(var(--border-400)/0.03)] border-border-300 border-0.5 ",children:[t.jsx(CR,{}),e.branch]})]})})},s))})})})]})})}function Qq({isCreating:s,isExpanded:n,setIsExpanded:a,setConfig:i,className:r}){const o=JS(),[l,c]=e.useState(""),d=()=>{const{owner:e,repo:t,branch:s}=function(e){let t;try{t=new URL(e??"")}catch{return{}}if("github.com"!==t.hostname)return{};const s=t.pathname.split("/"),[,n,a,i,...r]=s,o=r.join("/").replace(/\/$/,"");return{owner:n,repo:a,location:i,branch:o}}(l);i({owner:e,repo:t,branch:s,filters:{filters:{}}}),a(!1),c("")};return s&&t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:dt("flex flex-row gap-1 items-center text-sm px-0.5",{"border-0.5 border-border-300 rounded-md h-[29px] w-64 transition":n},r),children:[t.jsx(iN,{content:"Paste GitHub URL",children:!n&&t.jsx(kt,{onClick:()=>a(!n),size:"icon_sm",variant:"ghost",disabled:n,"aria-label":o.formatMessage({defaultMessage:"Paste GitHub URL",id:"RobpzbjbFb"}),children:t.jsx(xR,{size:16})})}),n&&t.jsxs(t.Fragment,{children:[t.jsx("input",{className:"flex-1 border-none bg-transparent bg-none px-0 focus:ring-0 p-0 text-sm ml-2",type:"text",value:l,onChange:e=>c(e.target.value),"aria-label":o.formatMessage({defaultMessage:"Paste GitHub URL",id:"RobpzbjbFb"}),placeholder:o.formatMessage({defaultMessage:"Paste GitHub URL",id:"RobpzbjbFb"}),autoFocus:!0,onKeyDown:e=>{"Enter"===e.key&&d()}}),l&&t.jsx(nA,{children:t.jsx(sA.div,{initial:{scale:.95,opacity:0},animate:{scale:1,opacity:1},exit:{scale:.95,opacity:0},transition:{type:"spring",damping:20,stiffness:400,delay:0},children:t.jsx(kt,{onClick:d,size:"icon_xs","aria-label":o.formatMessage({defaultMessage:"Submit URL",id:"QnZoZHS500"}),children:t.jsx(vR,{})})})})]})]}),n&&t.jsx(kt,{onClick:()=>{a(!1),c("")},size:"icon_sm",variant:"ghost",className:"ml-2","aria-label":o.formatMessage({defaultMessage:"Cancel",id:"47FYwba+bI"}),children:t.jsx(uR,{})})]})}function Jq({isExpanded:e,setIsExpanded:s,searchQuery:n,setSearchQuery:a,className:i}){const r=JS();return t.jsxs("div",{className:dt("flex flex-row items-center text-sm pl-0 p-1",{"border-0.5 border-border-300 rounded-md h-[29px] transition":e},i),children:[t.jsx(iN,{content:"Search files",children:t.jsx(kt,{onClick:()=>s(!e),size:"icon_sm",variant:"ghost",disabled:e,"aria-label":r.formatMessage({defaultMessage:"Search files",id:"8xPuGUna7W"}),children:t.jsx(yR,{size:"16"})})}),e&&t.jsxs(t.Fragment,{children:[t.jsx("input",{type:"text","aria-label":r.formatMessage({defaultMessage:"Search files",id:"8xPuGUna7W"}),placeholder:r.formatMessage({defaultMessage:"Search files",id:"8xPuGUna7W"}),value:n,className:"flex-1 border-none bg-transparent bg-none px-0 focus:ring-0 p-0 text-sm ",onChange:e=>a(e.target.value),autoFocus:!0}),t.jsx(kt,{onClick:()=>{a(""),s(!1)},size:"icon_xs",variant:"ghost","aria-label":r.formatMessage({defaultMessage:"Clear search",id:"4YJHutR26p"}),children:t.jsx(uR,{})})]})]})}function Xq({repo:s,rootNode:n,filters:a,setFilters:i,sizeLimit:r,currentDirectory:o,setCurrentDirectory:l,enforceSizeLimit:c}){const d=JS(),u=function(e,t){const s=t.split("/").slice(1,-1);let n=e;for(const a of s){if(!n.children)return null;n=n.children.get(a)}return n}(n,o),m=u?.children?[...u.children.values()].sort((e,t)=>e.children?t.children?e.path.localeCompare(t.path):-1:1):[],p=e.useMemo(()=>{const e=[];let t=o;for(;t;){const n=t.slice(t.lastIndexOf("/",t.length-2)).slice(1,-1);e.unshift({name:n||s,path:t}),t=Fq(t)}return e},[s,o]),f=!!u&&sW(u,a),g=!!u&&Hq(a,u.path);return t.jsxs(t.Fragment,{children:[t.jsx(t.Fragment,{children:t.jsxs("div",{className:"flex items-center gap-2 py-2 px-4 border-b-0.5 border-border-300 bg-bg-100/50 text-sm",children:[u&&t.jsx($t,{label:d.formatMessage({defaultMessage:"Select directory",id:"z3rTqQNcli"}),hideLabel:!0,checked:f||g,indeterminate:f,onChange:e=>{i(e?Uq(a,u.path):Pq(a,u.path))}}),t.jsx("div",{className:"flex-row gap-1 ",children:p.map(({path:e,name:s},n)=>p.length===n+1?t.jsx("span",{children:s},n):t.jsxs("span",{className:"first-child:pointer-events-none",children:[t.jsx("button",{className:"hover:text-text-200 text-text-500 transition",onClick:()=>l(e),children:s}),n<p.length-1&&t.jsx(t.Fragment,{children:t.jsx("span",{className:"mx-1 text-text-500/50",children:"/"})})]},n))})]},"breadcrumbs")}),t.jsx("div",{className:"flex flex-col h-full overflow-y-scroll",children:m.map(e=>t.jsx(nW,{node:e,showPath:!1,filters:a,sizeLimit:r,onUpdateFilters:i,onClick:e.children?()=>l(e.path):void 0,enforceSizeLimit:c},e.path))},"rows")]})}function eW({rootNode:s,searchQuery:n,filters:a,setFilters:i,sizeLimit:r,setCurrentDirectory:o,setSearchQuery:l,enforceSizeLimit:c}){const d=e.useMemo(()=>{const e=[],t=[s],a=n.toLowerCase();for(;t.length>0&&e.length<50;){const s=t.pop();s.children&&t.push(...s.children.values()),s.path.toLowerCase().includes(a)&&e.push(s)}return e},[n,s]);return t.jsx("div",{className:"flex flex-col h-full overflow-y-scroll",children:d.slice(0,100).map(e=>t.jsx(nW,{node:e,showPath:!0,filters:a,sizeLimit:r,onUpdateFilters:i,onClick:e.children?()=>{o(e.path),l("")}:void 0,onNavigate:e=>{o(e),l("")},enforceSizeLimit:c},e.path))},"rows")}function tW({percentUsed:s,selectedPaths:n,alreadyUsedTokens:a,tokenLimit:i,enforceSizeLimit:r}){const{progressBarPercentPrimary:o,progressBarPercentSecondary:l}=e.useMemo(()=>{const e=Math.min(100,Math.ceil(100*a/i));return{progressBarPercentPrimary:Math.min(100,s-e),progressBarPercentSecondary:e}},[s,a,i]),c=r?t.jsx(XS,{defaultMessage:"{percentUsed}% of capacity used",id:"1VbFlPsYRL",values:{percentUsed:aW(s)}}):null;return t.jsxs("div",{className:dt("flex text-xs items-center justify-between border-border-300 border-t-0.5 py-2 px-4 rounded-b-lg transition",{"bg-danger-100 text-danger-900":r&&s>=100},{"text-text-300":!r||s<100}),children:[n.length&&(!r||s<100)?t.jsx("p",{children:t.jsx(XS,{defaultMessage:"{selected, plural, one {# file} other {# files}} selected",id:"F7Bwhc8GRB",values:{selected:n.length}})}):!r||s<100?t.jsx("p",{children:t.jsx(XS,{defaultMessage:"Select files to add to chat context",id:"t6XeSPdQqI"})}):t.jsxs("div",{className:"inline-flex gap-2 items-center ",children:[t.jsx(pR,{className:"opacity-80",size:14}),t.jsx("p",{children:t.jsx(XS,{defaultMessage:"Remove some files to stay within size limits",id:"k+ns1o6klw"})})]}),t.jsxs("div",{className:"flex gap-2 items-center",children:[r&&t.jsx(iW,{totalPercent:s,secondaryPercent:l}),r&&t.jsx("span",{className:"min-w-10 text-right",children:l>0?t.jsx(iN,{multiline:!0,content:`${aW(l)}% used by other knowledge + ${aW(o)}% by this content`,children:t.jsx("span",{children:c})}):c})]})]})}function sW(e,t){if(void 0===e.children)return!1;if(Hq(t,e.path))for(const s of e.children.values()){if(!Hq(t,s.path))return!0;if(sW(s,t))return!0}else for(const s of e.children.values()){if(Hq(t,s.path))return!0;if(sW(s,t))return!0}return!1}function nW({node:e,showPath:s,filters:n,sizeLimit:a,onUpdateFilters:i,onClick:r,onNavigate:o,enforceSizeLimit:l}){const c=JS(),d=void 0!==e.children,u=Hq(n,e.path),m=sW(e,n);return t.jsxs("div",{onClick:r,className:dt("group flex justify-start items-center gap-2 py-2 px-4 border-b-0.5 border-border-400 hover:bg-bg-100",{"cursor-pointer":r}),children:[t.jsx("span",{role:"presentation",onClick:e=>e.stopPropagation(),children:t.jsx($t,{label:c.formatMessage({defaultMessage:"Select item",id:"MbK5gEHtdn"}),hideLabel:!0,checked:m||u,indeterminate:m,onChange:t=>{i(t?Uq(n,e.path):Pq(n,e.path))}})}),void 0===e.children?t.jsx(bR,{weight:"light",size:20,className:"flex-shrink-0 text-text-400"}):t.jsx(kR,{weight:"fill",className:"flex-shrink-0 text-accent-200",size:20}),t.jsx("div",{className:dt("w-5/6 text-text-100 overflow-x-hidden text-ellipsis text-nowrap",{"text-text-200 group-hover:text-text-000":d}),onClick:e=>{d&&r&&(e.stopPropagation(),r())},children:s?(e=>{const s=e.replace(/^\/+|\/+$/g,"").split("/");return t.jsx("span",{children:s.map((e,n)=>{const a="/"+s.slice(0,n+1).join("/")+"/",i=n===s.length-1,r=i?"span":"button",l=!i&&o?e=>{e.stopPropagation(),o(a)}:void 0;return t.jsxs("span",{children:[t.jsx(r,{className:dt(i?"text-text-000":"text-text-400",l?"hover:text-text-100 transition":""),onClick:l,children:e}),!i&&t.jsx("span",{className:"opacity-25 mx-1",children:"/"})]},n)})})})(e.path):e.name}),a&&l&&t.jsxs("span",{className:"w-1/6 text-text-400 text-xs text-right",children:[aW(100*e.size/a),"%"]})]})}function aW(e){return 0===e?"0":e<1?"<1":(t=Math.ceil(e),(new Intl.NumberFormat).format(t));var t}function iW({totalPercent:e,secondaryPercent:s=0}){const n=e>=100,a=e-s;return t.jsx("div",{className:"bg-bg-100 border-0.5 border-border-300 w-24 h-2 rounded-full overflow-hidden relative",children:t.jsxs("div",{className:"absolute inset-0",children:[s>0?t.jsx("div",{style:{width:`${Math.min(100,Math.max(0,s))}%`},className:"absolute inset-y-0 left-0 bg-border-400"}):null,a>0?t.jsx("div",{style:{width:`${Math.min(100-(s||0),Math.max(a>0?4:0,a))}%`,left:`${s||0}%`},className:dt("absolute inset-y-0 transition-all",{"bg-danger-100":n,"bg-text-100":!n})}):null]})})}function rW({isOpen:s,onClose:n,onCloseForCta:a,onContinueToSync:i,location:o}){const l=ae(),c=r(),d=JS(),u=m(),p=ps();e.useEffect(()=>{l.track({event_key:"claudeai.copper_signpost.shown",location:o})},[]);const f=e.useCallback(()=>{l.track({event_key:"claudeai.copper_signpost.try_claude_code_clicked",location:o}),a(),u?p("code"):c.push(fs)},[l,u,o,a,c,p]),g=e.useCallback(()=>{l.track({event_key:"claudeai.copper_signpost.continue_to_sync_clicked",location:o}),i()},[l,o,i]),h=e.useCallback(()=>{l.track({event_key:"claudeai.copper_signpost.dismissed",location:o}),n()},[l,o,n]);return t.jsx(gt,{isOpen:s,onClose:h,title:t.jsx(hs,{id:"1027tsj"}),modalSize:"xl",hasCloseButton:!0,autoCloseOnFocusOut:!1,closeOnEscapeKeydown:!1,children:t.jsxs("div",{className:"mt-4 space-y-6",children:[t.jsxs("div",{className:"flex items-center gap-6",children:[t.jsx("img",{loading:"lazy",src:"/images/clawd.svg",alt:gs({id:"1jllvre",intl:d}),width:96,height:76,className:"shrink-0"}),t.jsxs("div",{className:"space-y-2",children:[t.jsx("p",{className:"text-text-300 text-sm",children:t.jsx(hs,{id:"lry6fb"})}),t.jsx("p",{className:"text-sm",children:t.jsx(ds,{href:"https://docs.claude.com/claude-code",target:"_blank",children:t.jsx(hs,{id:"1n6hyj9"})})})]})]}),t.jsxs("div",{className:"flex justify-end gap-2",children:[t.jsx(kt,{onClick:g,variant:"secondary",children:t.jsx(hs,{id:"1p3qpvw"})}),t.jsx(kt,{onClick:f,children:t.jsx(hs,{id:"gqpm7q"})})]})]})})}const oW="v1",lW=e.memo(function({isOpen:s,onClose:n,onCreated:a,projectUuid:i,location:r,syncSource:o,onChatRepoPicked:l,setIsUploadingGithubSync:c}){const u=Cs("cai_copper_signpost"),m=d(),[p,f]=e.useState(!1),[g,h]=xs("copper_signpost_dismiss",null);e.useEffect(()=>{s||f(!1)},[s]);const C=g?.version===oW&&Date.now()-g.dismissedAt<6048e5,x=s&&u&&m&&!o&&!p&&!C,v=e.useCallback(()=>{h({version:oW,dismissedAt:Date.now()})},[h]),y=ae();e.useEffect(()=>{s&&y.track({event_key:"claudeai.copper_signpost.evaluated",location:r,gate_on:u,has_claude_code_access:m,is_editing_existing:!!o,snoozed:C,signpost_version:oW})},[s]);const{maxKbTokens:b}=vs(),{model:k}=J(),{entryFor:w}=Ae("chat"),M=w(k??"").hard_limit??19e4,_="project"===r&&i?b:M,j=ys(i),S=e.useMemo(()=>{if(i&&void 0!==j){const e=o?.status?.current_size_bytes?o.type===He.GITHUB?o.status.current_size_bytes/us:o.status.current_size_bytes/bs:0;return Math.max(0,j-e)}return 0},[i,j,o]),L=e.useCallback(e=>{a?.(e)},[a]),{mutate:N,isPending:I}=ks(i,{trigger:"picker",onSuccess:L,onError:()=>c?.(!1)}),{mutate:T,isPending:A}=ws(i,{onSuccess:n}),{mutate:E,isPending:R}=Ms({onSuccess:n}),D=e.useCallback(e=>{o?("project"===r&&i?T:E)({sync_source_uuid:o.uuid,sync_source_config:e}):"project"===r&&i?(c?.(!0),n(),N({sync_source_type:He.GITHUB,sync_source_config:e})):(n(),l?.(e))},[o,r,i,N,T,E,n,l,c]);if(x)return t.jsx(rW,{isOpen:s,onClose:()=>{v(),n()},onCloseForCta:n,onContinueToSync:()=>{v(),f(!0)},location:r});const H="chat"===r&&!o;return t.jsx(gt,{isOpen:s,onClose:n,title:"Add content from GitHub",subtitle:H?"Pick a repository and branch to link in this chat":"Select the files you would like to add to this "+("project"===r?"project":"chat"),modalSize:"xl",hasCloseButton:!0,autoCloseOnFocusOut:!1,closeOnEscapeKeydown:!1,children:t.jsx("div",{className:"mt-2",children:t.jsx(Bq,{initialConfig:o?.config,tokenLimit:_,alreadyUsedTokens:S,repoOnly:H,isSubmitting:I||A||R,onSubmit:D})})})});function cW({isOpen:s,onClose:n,syncSource:a,server:i}){const r=JS(),{addError:o}=ut(),[l,c]=e.useState(null),[d,u]=e.useState(!1),[m,p]=e.useState(),f=_s(),{activeOrganization:g}=v(),h=g?.uuid,{mutateAsync:C}=js(),x=e.useCallback(async()=>{if(i){u(!0);try{if(f&&h){const e=new URL(a.config.resource.uri);e.searchParams.set("includeContent","true");const t=(await C({resource_uri:e.toString(),server_uuid:i.uuid})).read_resource_result;if(t&&t.contents.length>0){const e=t.contents[0];!function(e){return"text"in e&&"string"==typeof e.text}(e)?function(e){return"blob"in e&&"string"==typeof e.blob}(e)&&(c(r.formatMessage({defaultMessage:"Binary content cannot be displayed in this preview.",id:"wsDLz6BmPt"})),p(e.mimeType??void 0)):(c(e.text),p(e.mimeType??void 0))}else c(r.formatMessage({defaultMessage:"No content available",id:"eS0BrNV2g3"}))}else{const e=Ss(i.uuid),t=new URL(a.config.resource.uri);t.searchParams.set("includeContent","true");const s=await e.readResource({uri:t.toString()},{timeout:15e3});if(s.contents.length>0){const e=s.contents[0];"text"in e?(c(e.text),p(e.mimeType)):"blob"in e&&(c(r.formatMessage({defaultMessage:"Binary content cannot be displayed in this preview.",id:"wsDLz6BmPt"})),p(e.mimeType))}else c(r.formatMessage({defaultMessage:"No content available",id:"eS0BrNV2g3"}))}}catch(e){o("Failed to read resource. You can try again.",{error:e}),c(null)}finally{u(!1)}}else o(r.formatMessage({defaultMessage:"MCP server not connected. Please reconnect the server to view this resource.",id:"dZx3khOR0+"}),{messageForLogging:"MCP server not connected. Please reconnect the server to view this resource."})},[i,o,r,f,h,a.config.resource.uri,C]);e.useEffect(()=>{!s||l||d||x()},[s,l,d,x]);const y=a.config.resource.title||a.config.resource.name||a.config.resource.uri,b=d?t.jsx("div",{className:"flex items-center justify-center h-full",children:t.jsx(Wt,{className:"h-32 w-full"})}):l?t.jsxs("div",{className:"h-full overflow-hidden flex flex-col",children:[t.jsx("div",{className:"flex-1 overflow-y-auto",children:t.jsx("pre",{className:"p-4 whitespace-pre-wrap break-all text-xs font-mono text-text-300",children:l})}),m&&t.jsxs("div",{className:"px-4 py-2 border-t border-border-300 text-sm text-text-500",children:[t.jsx(XS,{defaultMessage:"Type:",id:"uS4soppacp"})," ",m]})]}):t.jsx("div",{className:"flex items-center justify-center h-full text-text-500 text-center p-4",children:t.jsx(XS,{defaultMessage:"Unable to load content. Please ensure the MCP server is connected.",id:"Go4pdaSjWh"})});return t.jsx(gt,{isOpen:s,hasCloseButton:!0,title:y,onClose:n,className:"w-[40rem] h-[24rem]",modalSize:"xl",children:b})}function dW(e){return e?e.startsWith("Google ")?e.substring(7):e:"MCP"}function uW(e){try{const t=new URL(e);return"http:"===t.protocol||"https:"===t.protocol}catch{return!1}}function mW(e){return`https://docs.google.com/document/d/${e}`}function pW(e){const t=JS(),s={[os.UNAUTHENTICATED]:t.formatMessage({defaultMessage:"Authentication needed",id:"AYP3OHxyGn"}),[os.ACCESS_DENIED]:t.formatMessage({defaultMessage:"Content not accessible",id:"IPK01iLM7n"}),[os.DISABLED]:t.formatMessage({defaultMessage:"Feature disabled by organization",id:"0mkp6rxalw"})};return e in s?s[e]:void 0}function fW({syncSourceType:e,syncStatus:s,title:n,url:a,handleClick:i,isLoading:r,actions:o,isSyncing:l,tag:c,mcpServer:d,...u}){const m=Rq(s),p=pW(s),f=Dq();let g={};return g=s===os.UNAUTHENTICATED?{handleClick:()=>{f(e,d)}}:i?{handleClick:i}:{url:a},t.jsx(rq,{...u,actions:o,title:p??n??"Untitled",tag:c??t.jsx(CW,{type:e}),isError:m,isLoading:r,isSyncing:l,...g})}function gW({syncSourceType:e,syncStatus:s,url:n,...a}){const i=Rq(s),r=pW(s),o=Dq();let l={};return l=s===os.UNAUTHENTICATED?{handleClick:()=>{o(e)}}:{url:n},i?t.jsx(Eq,{...a,...l,isError:!0,title:r,subtitles:void 0,tag:void 0}):t.jsx(Eq,{...a,...l})}const hW={[He.GDRIVE]:"DOC",[He.OUTLINE]:"DOC",[He.GITHUB]:"GITHUB",[He.SALESFORCE]:"SALESFORCE",[He.GMAIL]:"EMAIL",[He.GCAL]:"CALENDAR",[He.SLACK]:"SLACK",[He.ASANA]:"ASANA",[He.CANVAS]:"LTI",[He.FIDDLEHEAD]:"FIDDLEHEAD",[He.CUTTLEFISH]:"CUTTLEFISH",[He.MCP_RESOURCES]:"MCP"};function CW({type:e}){return t.jsxs(mq,{children:[t.jsx(it,{type:e,size:12,variant:e===He.GDRIVE?Ns.DOCS:void 0}),t.jsx("p",{className:"uppercase truncate font-ui text-text-300 text-[11px] leading-[13px]",children:hW[e]})]})}function xW({projectUuid:s,syncSource:n,location:a,actions:i,isSyncing:r,...o}){const[l,c]=e.useState(!1),{owner:d,repo:u}=n.config,m=`${d}/${u}`,p=n.config.branch,f=!Rq(n.status.state),g=o.isEditable&&f,h=g||o.isInSelectionMode;return t.jsxs(t.Fragment,{children:[g&&("project"===a?t.jsx(lW,{projectUuid:s,location:"project",isOpen:l,onClose:()=>c(!1),syncSource:n}):t.jsx(lW,{projectUuid:s,location:"chat",isOpen:l,onClose:()=>c(!1),syncSource:n,onChatRepoPicked:()=>{}})),t.jsx(fW,{...o,syncSourceType:n.type,syncStatus:n.status.state,title:m,subtitle:p,handleClick:h?()=>{o.isInSelectionMode&&o.handleSelect?.(!0,!1),c(!0)}:void 0,actions:i,isSyncing:r})]})}function vW({syncSource:e,actions:s,isSyncing:n,...a}){const i=mW(e.config.uri),{title:r,isLoading:o}=xE({uri:e.config.uri}),l=a.isInSelectionMode?()=>{a.handleSelect?.(!0,!1)}:void 0;return t.jsx(fW,{handleClick:l,...a,syncSourceType:e.type,syncStatus:e.status.state,title:r,url:i,isLoading:a.isLoading||o,actions:s,isSyncing:n})}function yW({syncSource:e,actions:s,isSyncing:n,...a}){const i=(e.config.outline_uri,""),{title:r,isLoading:o}=ZE({uri:e.config.outline_uri}),l=a.isInSelectionMode?()=>{a.handleSelect?.(!0,!1)}:void 0;return t.jsx(fW,{handleClick:l,...a,syncSourceType:e.type,syncStatus:e.status.state,title:r,url:i,isLoading:a.isLoading||o,actions:s,isSyncing:n})}function bW({resource:s,server:n}){const a=uW(s.uri),i=e.useRef(null),[r,o]=e.useState(!1),l=dW(n?.name);e.useEffect(()=>{const e=i.current;if(!e)return;const t=new ResizeObserver(t=>{for(const s of t)if(s.contentRect.width>0){const t=e.scrollWidth>e.clientWidth;o(t)}});t.observe(e);const s=()=>{if(e.clientWidth>0){const t=e.scrollWidth>e.clientWidth;o(t)}},n=setTimeout(s,100);return requestAnimationFrame(()=>{s(),requestAnimationFrame(s)}),()=>{t.disconnect(),clearTimeout(n)}},[l]);const c=t.jsx("p",{ref:i,className:"truncate font-ui text-text-300 text-[11px] leading-[13px]",children:l});return t.jsxs(mq,{className:"group",children:[t.jsxs("div",{className:"relative flex items-center justify-center",children:[t.jsx("div",{className:a?"group-hover:opacity-0 transition-opacity duration-200":"",children:t.jsx(Ls,{type:"favicon",src:n?.url||"",size:12,name:l})}),a&&t.jsx(wR,{size:12,className:"text-text-400 absolute inset-0 opacity-0 group-hover:opacity-100 transition-opacity duration-200",weight:"regular"})]}),r?t.jsx(iN,{multiline:!0,className:"[overflow-wrap:anywhere]",content:l,side:"bottom",align:"end",children:c}):c]})}function kW({syncSource:s,actions:n,isSyncing:a,projectUuid:i,...r}){const[o,l]=e.useState(!1),c=Pe({uuid:s.config.server_uuid})[0],d=s.config.resource.title||s.config.resource.name||s.config.resource.uri,u=s.config.resource.uri,m=uW(u),p=e.useCallback(()=>{r.isInSelectionMode?r.handleSelect?.(!0,!1):r.isEditable&&!m&&l(!0)},[r,m]),f=m&&s.status.state!==os.UNAUTHENTICATED&&!Rq(s.status.state),g=t.jsx(fW,{...r,syncSourceType:s.type,syncStatus:s.status.state,title:d,url:f?u:void 0,handleClick:f?void 0:p,mcpServer:c?{uuid:c.uuid,url:c.url}:void 0,tag:t.jsx(bW,{resource:s.config.resource,server:c}),actions:n,isSyncing:a,isLoading:r.isLoading});return t.jsxs(t.Fragment,{children:[r.isEditable&&!m&&t.jsx(cW,{isOpen:o,onClose:()=>l(!1),syncSource:s,server:c}),m?t.jsx(iN,{content:t.jsx(XS,{defaultMessage:"View original",id:"6nLwtulOHW"}),side:"bottom",children:t.jsx("div",{children:g})}):g]})}function wW({projectUuid:e,syncSource:s,isEditable:n=!1,location:a,actions:i,isSyncing:r,...o}){return s?.type?s.type===He.GITHUB?t.jsx(xW,{...o,projectUuid:e,syncSource:s,isEditable:n,location:a,actions:i,isSyncing:r}):s.type===He.GDRIVE?t.jsx(vW,{...o,syncSource:s,isEditable:n,actions:i,isSyncing:r}):s.type===He.OUTLINE?t.jsx(yW,{...o,syncSource:s,isEditable:n,actions:i,isSyncing:r}):s.type===He.MCP_RESOURCES?t.jsx(kW,{...o,syncSource:s,isEditable:n,actions:i,isSyncing:r,projectUuid:e}):void 0:t.jsx(cq,{})}function MW({projectUuid:s,syncSource:n,isActionsHidden:a,canEditKnowledgeBase:i,...r}){const{mutateAsync:o}=Is(s),{isUpdating:l,handleUpdate:c,isFailing:d}=function({projectUuid:t,syncSource:s}){const[n,a]=e.useState(!1),{addSuccess:i}=ut(),r=JS(),{mutate:o}=ws(t,{onSuccess:()=>{i(r.formatMessage({defaultMessage:"Sync started",id:"yyuAtTi0E+"}))}});e.useEffect(()=>{a(!1)},[s.status]);const l=Ts(s)||n,c=As(s),d=e.useCallback(()=>{l||(a(!0),o({sync_source_uuid:s.uuid,sync_source_config:s.config}))},[l,o,s.config,s.uuid]);return{isUpdating:l,isFailing:c,handleUpdate:d}}({projectUuid:s,syncSource:n});return t.jsx(wW,{...r,location:"project",projectUuid:s,syncSource:n,handleRemove:()=>o(n.uuid),actions:n.type===He.GITHUB?t.jsx(_W,{handleUpdate:c,isFailing:d,isSyncing:l}):void 0,isSyncing:l||d})}function _W({handleUpdate:e,isFailing:s,isSyncing:n}){const a=JS();return t.jsx(iN,{content:n?a.formatMessage({defaultMessage:"Syncing...",id:"S92mvo6R0o"}):s?a.formatMessage({defaultMessage:"Sync failed. Click to retry",id:"zOAqlyzs1U"}):a.formatMessage({defaultMessage:"Sync now",id:"SwsYB/OerA"}),children:t.jsx(mq,{className:"!w-[18px] !px-0 shrink-0",onClick:e,children:n?t.jsx(MR,{size:12,className:"animate-spin"}):s?t.jsx(pR,{size:12}):t.jsx(MR,{size:12})})})}function jW({children:s}){const n=r(),a=pe(),i=Es(),[o,l]=e.useState(!1),c=e.useCallback(()=>{i&&!a?l(!0):n.push("/projects/create")},[i,a,n]);return t.jsxs(t.Fragment,{children:[t.jsx(iN,{multiline:!0,content:t.jsxs("div",{className:"max-w-48 p-1",children:[t.jsx("p",{className:"mb-2 whitespace-break-spaces text-xs",children:t.jsx(XS,{defaultMessage:"This is an example project. Create a new project to work with your own documents.",id:"aod9/juMdU"})}),t.jsx("button",{onClick:c,className:"text-accent-200 text-xs hover:underline cursor-pointer bg-transparent border-none p-0",children:t.jsx(XS,{defaultMessage:"Create new project",id:"a7FtAnfVfj"})})]}),children:s}),t.jsx(Rs,{isOpen:o,onClose:()=>l(!1)})]})}const SW="settings";function LW(e){return $e[e]||e}function NW(){const e=JS(),t=Ds();return s=>s===He.GITHUB?e.formatMessage({defaultMessage:"GitHub Integration",id:"oFlhn61iXl"}):s===He.FIDDLEHEAD&&t[Hs]?t[Hs]:s===He.CUTTLEFISH?"Xcode":$e[s]||s}function IW({conversation:e}){const s=JS(),n=dE(),a=uE(e),{toggleConversationSetting:i}=Qe({source:"driveSearch"});return n?t.jsxs(t.Fragment,{children:[t.jsx(KL.Separator,{}),t.jsx(KL.Item,{keepOpen:!0,checked:a,checkPosition:"leading",onClick:()=>i("enabled_bananagrams",!a),description:s.formatMessage({defaultMessage:"Claude will search for relevant documents",id:"JxbYvAvtdV"}),trailing:t.jsx("span",{inert:!0,children:t.jsx(fN,{checked:a})}),children:t.jsx(XS,{defaultMessage:"Allow Claude to search",id:"zyxxt7OHPv"})})]}):null}function TW({title:e,url:s,isLoading:n,isError:a,isLink:i=!1,defaultErrorTitle:r}){let o=t.jsx("p",{});return a?o=t.jsx("p",{children:r}):n&&!e?o=t.jsx(Wt,{variant:"light",className:"rounded-md",height:18}):e&&(o=t.jsx("p",{children:e})),i&&s?t.jsx("a",{href:s,target:"_blank",rel:"noopener noreferrer",children:o}):o}function AW({uri:e}){const{data:s,isLoading:n}=vE({documentId:e}),a=mW(e);return t.jsx(TW,{title:s?.title,url:a,isLoading:n,defaultErrorTitle:"Google Docs"})}const EW=new Set(["docs.google.com","drive.google.com"]),RW=/\/document\/d\/([a-zA-Z0-9-_]+)/;function DW(e){if(!e)return null;const t=e.trim().split(/\s/,1)[0];if(!t)return null;try{const e=new URL(t);if(EW.has(e.hostname.toLowerCase()))return e}catch{}return null}function HW(e){const t=DW(e),s=t?.pathname.match(RW);return t&&s?.[1]?function(e,t){return{fileId:t,canonicalUrl:`${e.origin}${e.pathname}`}}(t,s[1]):null}function PW(e){let t="Unable to add Google Doc.";return e instanceof cs&&"access_denied"===e.errorCode?t+=" Please check that link is a valid Google Doc that you have access to.":t+=" "+e.message,t}const UW={includeScore:!0,threshold:.3,keys:["title"],ignoreLocation:!0};function OW({conversation:s,projectUuid:n,setIsUploadingDriveSync:a,isOpen:i,setIsOpen:r,closeWholeDropdown:o=()=>r(!1),shouldAddSyncUponPaste:l}){const c=JS(),d=y("kingfisher_prefetch"),{recentDriveDocs:u,isLoading:m}=yE(d||i),[p,f]=e.useState(""),[g,h]=e.useState(!1),[C,x]=e.useState(""),{addError:v}=ut(),b=e.useRef(null),k=e.useRef(null),{mutate:w}=ks(n,{trigger:"picker",onMutate:()=>{a(!0),h(!0)},onSuccess:e=>{o(),h(!1)},onError:e=>{a(!1),h(!1),v(PW(e),{error:e,errorContext:{tags:{source:"google_drive_dropdown_sync_create"}}})},meta:{noToast:!0}}),M=e.useMemo(()=>{if(!u||!p)return u;return new Ps(u,UW).search(p).map(e=>e.item)},[u,p]),_=p?M?.slice(0,7):u?.slice(0,5),j=e=>{o(),n&&w({sync_source_type:He.GDRIVE,sync_source_config:{uri:e}})},S=e=>{const t=HW(e)?.fileId;f(e);let s="";if(t)j(t);else if(null!==DW(e))s=c.formatMessage({defaultMessage:"Only Google Docs are supported at this time",id:"P3m20xflVA"});else try{new URL(e),s=c.formatMessage({defaultMessage:"Not a valid Google Doc URL",id:"S//j6oF0j8"})}catch(n){}x(s)},L=e.useRef(null),N=e.useCallback(e=>{b.current=e,e&&e!==L.current&&(L.current=e,requestAnimationFrame(()=>e.focus()))},[]),I=e.useCallback(()=>{document.activeElement!==b.current&&b.current?.focus()},[]);e.useEffect(()=>{i||(f(""),h(!1),x(""))},[i,f,h,x]);const T=!!n;return t.jsxs(KL.Popup,{side:"right",align:"start",className:"w-[332px] !max-w-none",onKeyDown:e=>{["Enter","ArrowDown","ArrowUp"].includes(e.key)||b.current?.focus()},children:[t.jsx("div",{role:"presentation",className:"-mx-1 -mt-1 mb-1 border-b px-1.5 py-2",onMouseEnter:I,onClick:I,children:t.jsx(Us,{ref:N,value:p,placeholder:c.formatMessage({defaultMessage:"Search recents or paste URL",id:"jprBObbn5b"}),className:"w-full bg-inherit border-none select-none",onChange:e=>{S(e.target.value)},onPasteCapture:e=>{if(e.stopPropagation(),!i)return;const t=e.clipboardData.getData("text"),s=HW(t)?.fileId;s&&l&&j(s)},onKeyDown:e=>{"Escape"===e.key||"ArrowLeft"===e.key&&!p||(e.stopPropagation(),"Enter"===e.key?S(e.currentTarget.value):"ArrowDown"===e.key&&_&&_.length>0&&(e.preventDefault(),k.current?.focus()))},"data-1p-ignore":!0,autoComplete:"off"})}),t.jsx(FW,{inputRef:b,firstDocumentRef:k,handleAddDocument:j,documents:_,isValidatingUrl:g,isFetchingRecentDriveDocs:m,errorMessage:C}),!T&&!p&&t.jsx(IW,{conversation:s})]})}function FW({inputRef:e,firstDocumentRef:s,handleAddDocument:n,documents:a,isValidatingUrl:i,isFetchingRecentDriveDocs:r,errorMessage:o}){const l=i||r&&!a.length,c=!!o,d=!(l||a&&a.length);return l?t.jsxs("div",{className:"flex flex-col items-center justify-center h-[220px]",role:"status",children:[t.jsx(_R,{className:"animate-spin mx-auto"}),t.jsx("span",{className:"sr-only",children:t.jsx(XS,{defaultMessage:"Loading",id:"iFsDVRnIHW"})})]}):c?t.jsxs("div",{className:"flex flex-col items-center justify-center h-[220px] text-center",children:[t.jsx(jR,{size:24,className:"text-text-400",weight:"duotone"}),t.jsx("p",{className:"text-md text-text-400 mt-4",children:t.jsx(XS,{defaultMessage:"Invalid URL",id:"SASA4f9KO3"})}),t.jsx("p",{className:"text-sm text-danger-000",children:o})]}):d?t.jsxs("div",{className:"flex flex-col items-center justify-center h-[220px]",children:[t.jsx(jR,{size:24,className:"text-text-400",weight:"duotone"}),t.jsx("p",{className:"text-md text-text-400 mt-4",children:t.jsx(XS,{defaultMessage:"No recents found",id:"2FzJykASLO"})}),t.jsx("p",{className:"text-sm text-text-500",children:t.jsx(XS,{defaultMessage:"Try pasting the URL instead",id:"jf3/+bX0lc"})})]}):t.jsx(t.Fragment,{children:a.map(({uri:a,title:i},r)=>t.jsx(KL.Item,{ref:0===r?s:void 0,label:"",icon:t.jsx(it,{type:He.GDRIVE,variant:Ns.DOCS,size:16}),onClick:()=>n(a),onKeyDown:t=>{"ArrowUp"===t.key&&0===r&&(t.preventDefault(),e.current?.focus())},children:i??t.jsx(AW,{uri:a})},a))})}function VW({server:s,projectUuid:n,_setIsOpen:a,closeWholeDropdown:i,setIsUploadingMcpSync:r}){const o=JS(),{addError:l}=ut(),[c,d]=e.useState(""),[u,m]=e.useState(!1),[p,f]=e.useState(""),g=e.useRef(null),h=e.useRef(null),C=_s(),{activeOrganization:x}=v(),y=x?.uuid,{mutateAsync:b}=ks(n,{trigger:"picker"}),{mutateAsync:k}=js(),w=e.useMemo(()=>{const e=s.resources.filter(e=>!("hidden"in e&&e.hidden));if(!e.length||!c)return e;const t=c.toLowerCase();return e.filter(e=>{const s=Os(e).toLowerCase(),n=e.description?.toLowerCase()||"",a=e.uri?.toLowerCase()||"";return s.includes(t)||n.includes(t)||a.includes(t)})},[s.resources,c]),M=e.useCallback(async e=>{try{r?.(!0),m(!0),i();const t=Os(e);let n=t||null;!n&&e.description&&(n=e.description),await b({sync_source_type:He.MCP_RESOURCES,sync_source_config:{server_uuid:s.uuid,resource:{name:t,uri:e.uri,mimeType:e.mimeType||null,title:n||null,size:null}}}),m(!1)}catch(t){r?.(!1),m(!1),l(o.formatMessage({defaultMessage:"Failed to add MCP resource",id:"dmO4UZ//Vk"}),{error:t,messageForLogging:"Failed to add MCP resource"})}},[s,b,l,o,i,r]),_=e.useCallback(async e=>{try{m(!0),f("");const t=s.resources.find(t=>t.uri===e);if(t)return void(await M(t));if(C&&y){const t=await k({resource_uri:e,server_uuid:s.uuid});if(t){const e=t.resource;await M({uri:e.uri,name:e.name,description:e.description??void 0,mimeType:e.mimeType??void 0,title:e.title??void 0})}else m(!1),f(o.formatMessage({defaultMessage:"Unable to resolve URL through MCP server",id:"dkdRVRDQNR"})),requestAnimationFrame(()=>g.current?.focus())}else{const t=Ss(s.uuid),n=await t.readResource({uri:e});n.contents.length>0?await M({...n.contents[0],name:Os(n.contents[0])}):(m(!1),f(o.formatMessage({defaultMessage:"Unable to resolve URL through MCP server",id:"dkdRVRDQNR"})),requestAnimationFrame(()=>g.current?.focus()))}}catch(t){m(!1),f(o.formatMessage({defaultMessage:"Failed to resolve URL. Make sure the MCP server supports this URL.",id:"CUJtqLGhMn"})),requestAnimationFrame(()=>g.current?.focus())}},[s.resources,s.uuid,C,y,M,k,o]),j=e.useCallback(e=>{e.stopPropagation();const t=e.clipboardData.getData("text");uW(t)&&(e.preventDefault(),_(t))},[_]),S=e.useCallback(e=>{if("Escape"!==e.key&&("ArrowLeft"!==e.key||c))if(e.stopPropagation(),"Enter"===e.key){const t=e.currentTarget.value;uW(t)&&_(t)}else"ArrowDown"===e.key&&w&&w.length>0&&(e.preventDefault(),h.current?.focus())},[c,w,_]),L=e.useCallback(e=>{["Enter","ArrowDown","ArrowUp"].includes(e.key)||g.current?.focus()},[]),N=e.useRef(null),I=e.useCallback(e=>{g.current=e,e&&e!==N.current&&(N.current=e,requestAnimationFrame(()=>e.focus()))},[]),T=e.useCallback(()=>{document.activeElement!==g.current&&g.current?.focus()},[]),A=u,E=!!p,R=!(A||w&&w.length);return t.jsxs(KL.Popup,{side:"right",align:"start",className:"w-[332px] !max-w-none",onKeyDown:L,children:[t.jsx("div",{role:"presentation",className:"-mx-1 -mt-1 mb-1 border-b px-1.5 py-2",onMouseEnter:T,onClick:T,children:t.jsx(Us,{ref:I,value:c,disabled:A,placeholder:o.formatMessage({defaultMessage:"Search resources or paste URL",id:"fctiBd7NOX"}),className:"w-full bg-inherit border-none select-none",onChange:e=>{d(e.target.value),f("")},onPaste:j,onKeyDown:S,"data-1p-ignore":!0,autoComplete:"off"})}),A&&t.jsxs("div",{className:"flex flex-col items-center justify-center gap-3 h-[220px]",role:"status",children:[t.jsx(_R,{className:"animate-spin",size:20}),t.jsx("p",{className:"text-sm text-text-400",children:t.jsx(XS,{defaultMessage:"Adding file\u2026",id:"HEOrXYUnU5"})})]}),E&&t.jsxs("div",{className:"flex flex-col items-center justify-center h-[220px] text-center",children:[t.jsx(jR,{size:24,className:"text-text-400",weight:"duotone"}),t.jsx("p",{className:"text-md text-text-400 mt-4",children:t.jsx(XS,{defaultMessage:"Invalid URL",id:"SASA4f9KO3"})}),t.jsx("p",{className:"text-sm text-danger-000",children:p})]}),R&&!E&&t.jsxs("div",{className:"flex flex-col items-center justify-center h-[220px]",children:[t.jsx(jR,{size:24,className:"text-text-400",weight:"duotone"}),t.jsx("p",{className:"text-md text-text-400 mt-4",children:t.jsx(XS,{defaultMessage:"No resources found",id:"FAyfWZv8kx"})}),t.jsx("p",{className:"text-sm text-text-500",children:t.jsx(XS,{defaultMessage:"Try adjusting your search or paste a URL",id:"dDjPrmrUBk"})})]}),!A&&!E&&w&&w.length>0&&t.jsx(t.Fragment,{children:w.map((e,s)=>t.jsx(KL.Item,{ref:0===s?h:void 0,label:"",icon:t.jsx(aU,{size:16}),onClick:()=>{M(e)},onKeyDown:e=>{"ArrowUp"===e.key&&0===s&&(e.preventDefault(),g.current?.focus())},children:Os(e)},e.uri))})]})}function zW({projectUuid:s,isStarterProject:n,isUploading:a,setIsUploadingDoc:i,setIsUploadingGithubSync:r,setIsUploadingDriveSync:o,setIsUploadingOutlineSync:l,setIsUploadingMcpSync:c,projectFileUpload:d}){const u=JS(),m=e.useRef(null),[p,f]=e.useState(""),[g,h]=e.useState(""),[C,x]=e.useState(!1),[v,b]=e.useState(!1),[k,w]=e.useState(!1),{addError:M}=ut(),{mutateAsync:_}=Zs(s,{onError:()=>i(!1)}),{data:j}=Ee(s),{checkIsGithubAuthenticated:S,initGithubAuth:L}=pE({callerIdentifier:"project",toggleGithubModalOpen:b}),N=bE(),{isOutlineAuthenticated:I}=BE(),T=qE(),A=kE(),E=ys(s),{maxKbTokens:R}=vs(),D=(E??0)>R,H=Bs(),P=y("project_image"),U=qs({projectUuid:s,onError:()=>i(!1)}),{handleProjectFileUpload:O}=d??U,F=e.useCallback(async e=>{const t=e.target.files;t&&(i(!0),await O(Array.from(t),R-(E??0)),i(!1)),e.target.value=""},[O,i,E,R]);return t.jsxs(t.Fragment,{children:[t.jsx("input",{"data-testid":"project-doc-upload",ref:m,type:"file",className:"hidden",accept:Jt({imagesEnabled:P,outOfContextFilesEnabled:H}).join(","),onChange:F,multiple:!0}),t.jsx(ZW,{projectUuid:s,shouldShowGithubSyncSource:N,shouldShowDriveSyncSource:A,shouldShowOutlineSyncSource:T,handleGithubClick:()=>{S().then(e=>{e?b(!0):L()})},handleOutlineClick:()=>{I?w(!0):M(t.jsxs("div",{className:"flex flex-col items-start",children:[t.jsx("div",{children:t.jsx(XS,{defaultMessage:"You need to connect to Outline before using this feature.",id:"PejG+e4wN5"})}),t.jsx("button",{onClick:()=>{window.location.href="/settings/general"},className:"mt-2 underline",children:t.jsx(XS,{defaultMessage:"Connect to Outline",id:"m1DuTWXorQ"})})]}))},handleFileUploadClick:()=>{m.current&&m.current.click()},handleTextContentClick:()=>x(!0),isPrivateProject:Boolean(j?.is_private),isStarterProject:n,isOverProjectKnowledgeLimit:D,isLoading:a,setIsUploadingDriveSync:o,setIsUploadingMcpSync:c}),t.jsx(KW,{isOpen:C,onClose:()=>x(!1),title:g,setTitle:h,content:p,setContent:f,onSave:async()=>{try{x(!1),i(!0),await _({file_name:g,content:p}),h(""),f("")}catch(e){i(!1),M(u.formatMessage({defaultMessage:"Error saving text content",id:"9U64gLEIVo"}),{error:e,messageForLogging:"Error saving text content"})}}}),N&&t.jsx(lW,{location:"project",isOpen:v,onClose:()=>b(!1),projectUuid:s,setIsUploadingGithubSync:r}),""]})}function ZW({projectUuid:s,shouldShowGithubSyncSource:n,shouldShowDriveSyncSource:a,handleGithubClick:i,handleFileUploadClick:r,handleTextContentClick:o,isPrivateProject:l,isStarterProject:c,isOverProjectKnowledgeLimit:d,isLoading:u,shouldShowOutlineSyncSource:m,handleOutlineClick:p,setIsUploadingDriveSync:f,setIsUploadingMcpSync:g}){const[h,C]=e.useState(!1),[x,v]=e.useState(null),b=y("nebula_drift_enabled"),k=Pe({isConnected:!0,hasPromptsOrResources:!0}),w=b?k.filter(e=>Ws(e.resources).length>0&&void 0!==e.url):[],M=!$s(),_=a&&M||n||m||w.length>0,{isDriveAuthenticated:j,initDriveAuth:S,handleDriveTrigger:L}=fE({callerIdentifier:"project",handleAuthSuccess:e=>{C(e),e?setTimeout(()=>{v("gdrive")},100):v(null)}}),N=j&&l,I=c||d||u,T=JS().formatMessage({defaultMessage:"Add files",id:"xrAjmQ72mN"}),A=t.jsx(rN,{iconOnly:!0,size:"sm",variant:"ghost",icon:t.jsx($L,{name:"Add",size:"sm"}),busy:u,disabled:I,"data-testid":"project-doc-uploader-dropdown-trigger","aria-label":T,tooltip:!1,className:"-mr-2"});let E;return E=c?t.jsx(jW,{children:t.jsx("span",{className:"inline-flex",children:A})}):d?t.jsx(gN,{side:"bottom",reason:t.jsx(XS,{defaultMessage:"Project knowledge at capacity. Remove an existing file in order to add to knowledge",id:"g3hx72ya32"}),children:A}):t.jsx(iN,{content:T,children:t.jsx(KL.Trigger,{disabled:u,render:A})}),t.jsxs(KL.Root,{open:h,onOpenChange:e=>{C(e)},children:[E,t.jsxs(KL.Popup,{align:"end",children:[t.jsx(KL.Item,{icon:"Attachment",onClick:r,children:t.jsx(XS,{defaultMessage:"Upload from device",id:"vMaZk5Jcnv"})}),t.jsx(KL.Item,{icon:"Prompt",onClick:o,children:t.jsx(XS,{defaultMessage:"Add text content",id:"G7XW3Mvn8X"})}),_?t.jsx(KL.Separator,{}):null,n&&t.jsx(qW,{type:He.GITHUB,isPrivateProject:l,onClick:i}),a&&M&&t.jsx(WW,{projectUuid:s,isPrivateProject:l,setIsUploadingDriveSync:f,isOpen:"gdrive"===x,setIsOpen:e=>v(e?"gdrive":null),closeWholeDropdown:()=>{v(null),C(!1)},showGoogleDriveSubDropdown:N,handleGoogleDriveButtonClick:()=>{if(!N){if(!l)return;j?L():S()}}}),m&&t.jsx(qW,{type:He.OUTLINE,isPrivateProject:l,onClick:p}),t.jsx($W,{mcpServers:w,projectUuid:s,openSubDropdownId:x,setOpenSubDropdownId:v,isPrivateProject:l,setIsOpen:C,setIsUploadingMcpSync:g})]})]})}const BW=t.jsx(XS,{defaultMessage:"Only accessible from private projects",id:"lNrma+LwGe"});function qW({type:e,isPrivateProject:s,isSubTrigger:n=!1,onClick:a}){const i=t.jsxs("span",{className:"flex items-center gap-2.5",children:[t.jsx(it,{type:e,size:18}),LW(e)]});return n?t.jsx(KL.SubmenuTrigger,{children:i}):s?t.jsx(KL.Item,{onClick:a,children:i}):t.jsx(iN,{side:"left",content:BW,children:t.jsx("span",{className:"block",children:t.jsx(KL.Item,{disabled:!0,children:i})})})}function WW({projectUuid:e,isPrivateProject:s,setIsUploadingDriveSync:n,isOpen:a,setIsOpen:i,closeWholeDropdown:r,showGoogleDriveSubDropdown:o,handleGoogleDriveButtonClick:l}){return o?t.jsxs(KL.Submenu,{open:a,onOpenChange:i,children:[t.jsx(qW,{type:He.GDRIVE,isPrivateProject:s,isSubTrigger:!0}),t.jsx(OW,{projectUuid:e,setIsUploadingDriveSync:n,isOpen:a,setIsOpen:i,closeWholeDropdown:r,shouldAddSyncUponPaste:!0})]}):t.jsx(qW,{type:He.GDRIVE,isPrivateProject:s,onClick:l})}function $W({mcpServers:e,projectUuid:s,openSubDropdownId:n,isPrivateProject:a,setOpenSubDropdownId:i,setIsOpen:r,setIsUploadingMcpSync:o}){return 0===e.length?null:t.jsx(t.Fragment,{children:e.map(e=>{const l=`mcp-${e.uuid}`,c=n===l;return t.jsx(GW,{server:e,projectUuid:s,isOpen:c,disabled:!a,setIsOpen:e=>{const t="function"==typeof e?e(c):e;i(t?l:null)},closeWholeDropdown:()=>{i(null),r(!1)},setIsUploadingMcpSync:o},l)})})}function GW({server:e,projectUuid:s,isOpen:n,setIsOpen:a,disabled:i,closeWholeDropdown:r,setIsUploadingMcpSync:o}){const l=dW(e.name),c=t.jsxs("span",{className:"flex min-w-0 items-center gap-2",title:e.name!==l?e.name:void 0,children:[t.jsx(Ls,{type:"favicon",src:e.url,size:18,name:l}),t.jsx("span",{className:"truncate",children:l})]});return i?t.jsx(iN,{side:"left",content:BW,children:t.jsx("span",{className:"block",children:t.jsx(KL.Item,{disabled:!0,children:c})})}):t.jsxs(KL.Submenu,{open:n,onOpenChange:a,children:[t.jsx(KL.SubmenuTrigger,{children:c}),n&&t.jsx(VW,{server:e,projectUuid:s,_setIsOpen:a,closeWholeDropdown:r,setIsUploadingMcpSync:o})]})}function KW({isOpen:s,onClose:n,title:a,setTitle:i,content:r,setContent:o,onSave:l}){const c=JS(),d=e.useRef(null);return Gs({shouldFocus:s,target:d}),t.jsx(gt,{isOpen:s,onClose:n,modalSize:"xl",className:"p-7 pt-6",hasCloseButton:!0,title:c.formatMessage({defaultMessage:"Add text content",id:"G7XW3Mvn8X"}),children:t.jsxs("form",{onSubmit:e=>{e.preventDefault(),""!==a.trim()&&""!==r.trim()&&l()},className:"mt-3",children:[t.jsx(Us,{ref:d,placeholder:c.formatMessage({defaultMessage:"Name your content",id:"C7Sx4g/l21"}),className:"mb-2 w-full",size:"lg",label:t.jsx(XS,{defaultMessage:"Title",id:"9a9+wwWy4u"}),value:a,onChange:e=>i(e.target.value),required:!0}),t.jsx(Ks,{placeholder:c.formatMessage({defaultMessage:"Type or paste in content...",id:"f5RDuqxeT2"}),label:c.formatMessage({defaultMessage:"Content",id:"Jq3FDzj0/T"}),minRows:12,value:r,onChange:e=>o(e.target.value),required:!0,className:"max-h-[50vh] overflow-y-auto"}),t.jsxs("div",{className:"mt-4 flex justify-end gap-2",children:[t.jsx(kt,{variant:"secondary",onClick:e=>{e.preventDefault(),n()},children:t.jsx(XS,{defaultMessage:"Cancel",id:"47FYwba+bI"})}),t.jsx(kt,{type:"submit",children:t.jsx(XS,{defaultMessage:"Add Content",id:"66s1201qd9"})})]})]})})}function YW({size:e="default",projectUuid:s,tooltipContent:n}){const a=ys(s),{maxKbTokens:i}=vs(),r=Fs(s),o=Vs(),l=zs(s);if(!a)return null;const c=Math.ceil(a/i*100),d=c>80&&c<100,u=c>=100,m=r?Math.min(100,r/i*100):void 0;return t.jsxs("div",{className:dt("default"!==e&&"flex items-center gap-3"),children:[t.jsxs("div",{role:"progressbar","aria-valuenow":Math.max(0,Math.min(100,c)),"aria-valuemin":0,"aria-valuemax":100,"aria-label":"Project knowledge capacity",className:dt("bg-bg-300 rounded-full p-px border-border-300 border-0.5 relative","small"===e&&"w-24"),children:[t.jsx("div",{style:{width:`${Math.max(2,Math.min(100,c))}%`},className:dt("h-1.5 rounded-full transition-all",!d&&!u&&"bg-accent-100",d&&"bg-warning-200",u&&"bg-danger-200")}),o&&void 0!==m&&a>=(r||0)&&t.jsx("div",{className:"absolute top-1/2 w-1.5 h-1.5 bg-text-100 rounded-full mix-blend-normal",style:{left:`${m}%`,transform:"translate(-50%, -50%)"}})]}),t.jsxs("div",{className:dt("flex gap-2 items-center text-xs","default"===e&&"mt-2"),children:[t.jsx("div",{className:dt("flex-1",c<100&&"text-text-400",c>=100&&"text-danger-000 font-medium"),children:t.jsx(XS,{defaultMessage:"{pctUsed}% of project capacity used",id:"JfriU6oVgp",values:{pctUsed:c}})}),!o&&t.jsx(iN,{multiline:!0,className:"text-center mt-0.5",side:"left",content:n??t.jsx(XS,{defaultMessage:"Project knowledge is currently limited to Claude\u2019s maximum context window size.",id:"aAeavdIV/P"}),children:t.jsx("div",{className:"flex items-center",children:t.jsx(kt,{size:"icon_xs",variant:"ghost",href:"https://support.anthropic.com/en/articles/9517075-what-are-projects",target:"_blank","aria-label":"Learn more about project knowledge",children:t.jsx(SR,{size:14})})})}),l&&t.jsx("div",{className:"text-text-400 text-xs flex gap-1",children:t.jsx(iN,{multiline:!0,className:"text-center mt-0.5",side:"bottom",content:n??t.jsx(XS,{defaultMessage:"Project knowledge has grown past what Claude can read all at once, so Claude searches it and uses the most relevant parts in each chat. <link>Learn more</link>",id:"alcVFq9VM9",values:{link:e=>t.jsx(ds,{href:"https://support.claude.com/en/articles/11473015-retrieval-augmented-generation-rag-for-projects",className:"underline",target:"_blank",children:e})}}),children:t.jsxs("div",{className:"flex gap-1 items-center",children:[t.jsx("div",{className:"w-1.5 h-1.5 bg-text-100 rounded-full"}),t.jsx(XS,{defaultMessage:"Search mode",id:"BIYQtyYBdw"})]})})})]}),c>=100&&t.jsx("div",{className:"text-text-400 text-xs",children:t.jsx(XS,{defaultMessage:"Remove an existing file in order to add to knowledge",id:"mSQjDnX2IA"})})]})}const QW="project_syncs",JW="project_docs",XW="project_linked_files";function e$({project:e,canEditKnowledgeBase:s=!1,isUploadingDoc:n=!1,isUploadingDriveSync:a=!1,isUploadingOutlineSync:i=!1,isUploadingGithubSync:r=!1,isUploadingMcpSync:o=!1,setIsUploadingDoc:l,setIsUploadingDriveSync:c,setIsUploadingOutlineSync:d,setIsUploadingGithubSync:u,setIsUploadingMcpSync:m,maxItems:p,onViewAll:f,isEditable:g,groupDocsByFolder:h=!1,pendingEncodingAttachments:C=[],onPendingEncodingClick:x,onPendingEncodingRemove:v}){const{githubSyncSources:y,driveSyncSources:b,outlineSyncSources:k,mcpResourcesSyncSources:w,projectDocs:M,linkedFiles:_,isFetchingKnowledge:j,knowledgeCount:S}=s$({projectUuid:e.uuid,maxItems:p}),{isDeleting:L,selectedItems:N,handleSelect:I,selectAllItems:T,isInSelectionMode:A,toggleSelectMode:E,handleDeleteSelected:R}=function({githubSyncSources:e,driveSyncSources:t,outlineSyncSources:s,mcpResourcesSyncSources:n,projectDocs:a,linkedFiles:i,projectUuid:r,isEnabled:o}){const l=t.map(({uuid:e})=>({type:QW,uuid:e})).concat(e.map(({uuid:e})=>({type:QW,uuid:e}))).concat(s.map(({uuid:e})=>({type:QW,uuid:e}))).concat(n.map(({uuid:e})=>({type:QW,uuid:e}))).concat(a.map(({uuid:e})=>({type:JW,uuid:e}))).concat(i.map(({file_uuid:e})=>({type:XW,uuid:e}))),{selectedItems:c,handleSelect:d,selectAllItems:u,isInSelectionMode:m,toggleSelectMode:p}=Tq(l,!o),{addError:f}=ut(),{mutateAsync:g,isPending:h}=Xs(r),{mutateAsync:C,isPending:x}=en(r),{mutateAsync:v,isPending:y}=ss(r),b=async()=>{const e=c.filter(({type:e})=>e===JW),t=c.filter(({type:e})=>e===QW),s=c.filter(({type:e})=>e===XW);p(!1);try{await Promise.all([e.length?C({doc_uuids:e.map(({uuid:e})=>e)}):Promise.resolve(),t.length?g({sync_source_uuids:t.map(({uuid:e})=>e)}):Promise.resolve(),s.length?v({file_uuids:s.map(({uuid:e})=>e)}):Promise.resolve()])}catch(n){f("Something went wrong while deleting. Refresh the page and try again",{error:n})}},k=x||h||y;return{isDeleting:k,selectedItems:c,handleSelect:d,selectAllItems:u,isInSelectionMode:m,toggleSelectMode:p,handleDeleteSelected:b}}({githubSyncSources:y,driveSyncSources:b,outlineSyncSources:k,mcpResourcesSyncSources:w,projectDocs:M,linkedFiles:_,projectUuid:e.uuid,isEnabled:s});t$({clearUploadingState:()=>l?.(!1),numItems:M.length+_.length}),t$({clearUploadingState:()=>u?.(!1),numItems:y.length}),t$({clearUploadingState:()=>c?.(!1),numItems:b.length}),t$({clearUploadingState:()=>d?.(!1),numItems:k.length}),t$({clearUploadingState:()=>m?.(!1),numItems:w.length});const D=new Set(N.map(({uuid:e})=>e)),{folders:H,files:P}=h?function(e,t){const s=new Map,n=[];for(const a of e){const e=a.file_name.startsWith(t)?a.file_name.slice(t.length):a.file_name,i=e.indexOf("/");if(i<=0){n.push(a);continue}const r=e.slice(0,i),o=s.get(r);o?o.push(a):s.set(r,[a])}return{folders:Array.from(s,([e,t])=>({name:e,docs:t})),files:n}}(M,""):{folders:[],files:M};if(j)return t.jsx(Wt,{className:"!rounded-2xl !h-[10rem] !w-full !bg-bg-200",variant:"light"});if(!(0!==S||0!==C.length||n||a||i||r||o))return t.jsxs("div",{className:"text-center h-[10rem] bg-bg-200 rounded-2xl flex flex-col gap-3 items-center justify-center text-text-500 font-small",children:[t.jsx("img",{loading:"lazy",src:"/images/illustrations/project-knowledge-light-mode.svg",alt:"",width:105,height:56,className:"dark:hidden"}),t.jsx("img",{loading:"lazy",src:"/images/illustrations/project-knowledge-dark-mode.svg",alt:"",width:105,height:56,className:"hidden dark:block"}),t.jsx("div",{className:"max-w-[14.5rem]",children:t.jsx(XS,{defaultMessage:"Add PDFs, documents, or other text to reference in this project.",id:"EC12TWMoUS"})})]});const U=t.jsx(nA,{children:A&&t.jsx(sA.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},children:t.jsx(Aq,{isLoading:L,numSelected:N.length,totalNumItems:S,handleSelectAll:T,handleCancel:()=>E(!1),handleDeleteSelected:R})},"item-management-menu")}),O={size:"stretch",isEditable:g,isInSelectionMode:A};return t.jsxs("div",{className:"flex flex-col mb-1",children:[t.jsxs(aA,{children:[t.jsx(nA,{children:s&&t.jsx(sA.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},className:"mb-3",children:t.jsx(YW,{projectUuid:e.uuid})})}),t.jsx("div",{className:"ml-1 -mr-2.5",children:U}),t.jsx("ul",{className:"grid grid-cols-[repeat(auto-fill,minmax(120px,1fr))] gap-3 mt-3",children:t.jsxs(nA,{initial:!1,children:[t.jsx(cq,{isShown:a,...O}),b.map(n=>t.jsx(MW,{projectUuid:e.uuid,syncSource:n,canEditKnowledgeBase:s,isActionsHidden:A||!s,...O,isSelected:D.has(n.uuid),handleSelect:(e,t)=>I({uuid:n.uuid,type:QW},e,t)},n.uuid)),t.jsx(cq,{isShown:i,...O},"outline-sync-loading-indicator"),k.map(n=>t.jsx(MW,{projectUuid:e.uuid,syncSource:n,canEditKnowledgeBase:s,isActionsHidden:A||!s,...O,isSelected:D.has(n.uuid),handleSelect:(e,t)=>I({uuid:n.uuid,type:QW},e,t)},n.uuid)),t.jsx(cq,{isShown:r,...O},"github-sync-loading-indicator"),y.map(n=>t.jsx(MW,{...O,projectUuid:e.uuid,syncSource:n,canEditKnowledgeBase:s,isActionsHidden:A||!s,isSelected:D.has(n.uuid),handleSelect:(e,t)=>I({uuid:n.uuid,type:QW},e,t)},n.uuid)),t.jsx(cq,{isShown:o,...O},"mcp-sync-loading-indicator"),w.map(n=>t.jsx(MW,{...O,projectUuid:e.uuid,syncSource:n,canEditKnowledgeBase:s,isActionsHidden:A||!s,isSelected:D.has(n.uuid),handleSelect:(e,t)=>I({uuid:n.uuid,type:QW},e,t)},n.uuid)),t.jsx(cq,{isShown:n,...O},"doc-upload-loading-indicator"),C.map(e=>t.jsx(JB,{...O,file:e.attachment,isLoading:e.isUploading,handleClick:e.isUploading?void 0:()=>x?.(e.id),handleRemove:e.isUploading?void 0:()=>v?.(e.id)},`pending-encoding-${e.id}`)),H.map(e=>{const n=e.docs.filter(e=>D.has(e.uuid)).length;return t.jsx(Lq,{name:e.name,docs:e.docs,allDocs:M,canEditKnowledgeBase:s,isEditable:O.isEditable,isInSelectionMode:A,isSelected:n===e.docs.length,isIndeterminate:n>0&&n<e.docs.length,onSelectChange:t=>e.docs.forEach(e=>{D.has(e.uuid)!==t&&I({uuid:e.uuid,type:JW},t,!1)})},`folder-${e.name}`)}),P.map(e=>t.jsx(kq,{...O,doc:e,canEditKnowledgeBase:s,isSelected:D.has(e.uuid),handleSelect:(t,s)=>I({uuid:e.uuid,type:JW},t,s)},e.uuid)),_.map(n=>t.jsx(wq,{...O,file:n,projectUuid:e.uuid,canEditKnowledgeBase:s,handleSelect:(e,t)=>I({uuid:n.file_uuid,type:XW},e,t),isSelected:D.has(n.file_uuid)},n.file_uuid))]})})]}),!!f&&!!p&&S>p&&t.jsx("div",{children:t.jsxs("button",{onClick:f,className:"hover:text-text-000 hover:underline !px-0 text-sm",children:[t.jsx(XS,{defaultMessage:"View all {count} files",id:"b36mSZ46cW",values:{count:S}}),t.jsx(LR,{size:16,className:"inline-block pl-1"})]})})]})}function t$({clearUploadingState:t,numItems:s}){const n=e.useRef(s);e.useEffect(()=>{s>n.current&&t(),n.current=s},[s,t])}function s$({projectUuid:e,maxItems:t}){const s=y("nebula_drift_enabled"),{data:n=[],isLoading:a}=Ys(e),i=[...n],{data:r=[],isLoading:o}=Qs(e),{data:l=[],isLoading:c}=Js(e),d=[...l],u=r.filter(({type:e})=>e===He.GDRIVE),m=r.filter(({type:e})=>e===He.OUTLINE),p=r.filter(({type:e})=>e===He.GITHUB),f=s?r.filter(({type:e})=>e===He.MCP_RESOURCES):[];if(t){let e=t;[u,m,p,f,i,d].forEach(t=>{t.splice(e),e=Math.max(0,e-t.length)})}const g=a||o||c,h=[i,r,d].reduce((e,t)=>e+(t?.length??0),0);return{driveSyncSources:u,outlineSyncSources:m,githubSyncSources:p,mcpResourcesSyncSources:f,projectDocs:i,linkedFiles:d,isFetchingKnowledge:g,knowledgeCount:h}}function n$({isOpen:e,onClose:s,projectUuid:n,highlightDocUuid:a,backdropClassName:i}){const{data:r}=Ee(n,e),{hasKBEditPermissions:o}=tn({projectUuid:n,enabled:e}),l=o&&void 0!==r&&null===r.archived_at&&!r.is_starter_project,{driveSyncSources:c,outlineSyncSources:d,githubSyncSources:u,mcpResourcesSyncSources:m,projectDocs:p,linkedFiles:f,isFetchingKnowledge:g,knowledgeCount:h}=s$({projectUuid:n}),C=[...c,...d,...u,...m];let x;return x=g?t.jsx(hN,{height:"10rem",className:"w-full !rounded-2xl"}):0===h?t.jsx("p",{className:"py-10 text-center text-secondary",children:t.jsx(XS,{defaultMessage:"No files in project knowledge.",id:"cpUhbF2I0P"})}):t.jsxs("ul",{role:"list",className:"grid grid-cols-[repeat(auto-fill,minmax(120px,1fr))] gap-3 p-1",children:[C.map(e=>t.jsx(a$,{highlighted:e.uuid===a,children:t.jsx(MW,{projectUuid:n,syncSource:e,canEditKnowledgeBase:l,isActionsHidden:!l,size:"stretch",isEditable:l})},e.uuid)),p.map(e=>t.jsx(a$,{highlighted:e.uuid===a,children:t.jsx(kq,{doc:e,canEditKnowledgeBase:l,size:"stretch",isEditable:l})},e.uuid)),f.map(e=>t.jsx(a$,{highlighted:e.file_uuid===a,children:t.jsx(wq,{file:e,projectUuid:n,canEditKnowledgeBase:l,size:"stretch",isEditable:l})},e.file_uuid))]}),t.jsx(lN.Root,{open:e,onOpenChange:e=>{e||s()},children:t.jsxs(lN.Popup,{size:"lg",backdropClassName:i,children:[t.jsx(lN.Header,{showClose:!0,children:t.jsx(hs,{id:"9vnj0r"})}),t.jsx("div",{className:"-m-2 max-h-[min(28rem,60vh)] overflow-y-auto p-2","data-testid":"project-knowledge-editor",children:x}),t.jsx(lN.Footer,{align:"end",children:t.jsx(rN,{variant:"primary",onClick:s,children:t.jsx(XS,{defaultMessage:"Done",id:"JXdbo8Vnlw"})})})]})})}function a$({highlighted:s,children:n}){const a=e.useRef(null);return e.useEffect(()=>{s&&a.current?.scrollIntoView({block:"nearest"})},[s]),t.jsx("li",{ref:a,className:dt("rounded-lg",s&&"ring-2 ring-danger"),"data-highlighted":s||void 0,"aria-current":s||void 0,children:n})}const i$=fn(()=>a(()=>import("./c67c3f5cf-AS-MoArd.js").then(e=>e.b),__vite__mapDeps([0,1,2,3]),import.meta.url).then(e=>e.MelangeModal),{}),r$={memories:{icon:"Memory",labelId:"z0vv7w"},user_preferences:{icon:"UserCircle",labelId:"lk1p5o",go:()=>mn("general")},project_system_prompt:{icon:"Folder",labelId:"1nqzpiv",go:({router:e,projectUuid:t})=>{t&&e.push(`/project/${t}`)}},project_knowledge_file:{icon:"Files",labelId:"9vnj0r",go:({router:e,projectUuid:t})=>{t&&e.push(`/project/${t}`)}},connector_mcp:{icon:"Connectors",labelId:"1h7be68",go:()=>mn("customize-connectors"),isCustomize:!0},skills:{icon:"Plugin",labelId:"178zpwv",go:()=>mn("customize-skills"),isCustomize:!0},org_instructions:{icon:"Organization",labelId:"iu1wgd"}},o$="!bg-transparent !backdrop-blur-none",l$=new Set(["memories","user_preferences","project_system_prompt","project_knowledge_file","connector_mcp","skills"]);function c$({isOpen:s,onClose:n,scan:a,projectUuid:i,fallbackDisplayName:o,onRetryWithFallback:l,onRetryOriginal:c,onEditAndRetry:d,onRetryWithoutFiles:u,onEditSurface:m,canOpenInChatEditor:p,preserveOnOpen:f=!1,getRemediatedSurfaces:g,entrySurface:h}){const C=r(),x=JS(),{track:v}=ae(),y=e.useRef(v);e.useEffect(()=>{y.current=v},[v]);const b=e.useRef(h);e.useEffect(()=>{b.current=h},[h]);const k=on(),w=ln(),M=cn(),_=dn(),j=sn(),S=nn(),L=an(),N=S&&"melange"===L,I=e.useRef(null),T=e.useRef(!1),A=e=>{I.current=e,T.current=!0,n()},[E,R]=e.useState(!1),D=e.useRef(!1),{run:H,abort:P,reset:U}=a;e.useEffect(()=>{if(s&&!D.current)I.current=null,T.current=!1,f||(U(),H(),R(!1));else if(!s&&D.current){P();const e=I.current;e?(I.current=null,setTimeout(e,0)):v({event_key:"claudeai.safety.block_scanner.modal_action",action:"dismissed",...h&&{entry_surface:h}})}D.current=s},[s,H,P,U,v,f,h]),e.useEffect(()=>()=>{if(D.current&&!I.current){const e=b.current;y.current({event_key:"claudeai.safety.block_scanner.modal_action",action:"dismissed",...e&&{entry_surface:e}})}},[]);const O=a.result,F=O&&"unknown"!==O.attribution&&"user_message"!==O.attribution&&"attachments"!==O.attribution?O.attribution:null,V=s&&!D.current&&!f,z=e.useRef(10);V&&(z.current=10);const Z=a.progress.at(-1),B=O?100:"validation"===Z?.phase?95:Z&&Z.total>0?Math.min(90,10+Math.round(80*(Z.block_index+1)/Z.total)):Math.min(90,10+10*a.progress.length),q=V?10:z.current=Math.max(z.current,B),W=un().shouldReduceMotion,$=iA(0,{stiffness:100,damping:30});e.useLayoutEffect(()=>{s&&$.jump(0)},[s,$]),e.useEffect(()=>{s&&(W?$.jump(q/100):$.set(q/100))},[s,q,$,W]);const G=e=>"project_system_prompt"===e||"project_knowledge_file"===e,K=e=>{const t=r$[e],s=l$.has(e)&&!!m&&(p?.(e)??!0),n=s?()=>m?.(e):t.go&&(()=>t.go?.({router:C,projectUuid:i})),a=s&&!t.isCustomize,r=!!n&&(e=>{switch(e){case"memories":return N||j;case"connector_mcp":return M;case"skills":return _;default:return!0}})(e)&&!(G(e)&&!i)&&(a||G(e)||k)&&(a||!t.isCustomize||w);return{meta:t,hasInChatEditor:s,editAction:n,canEdit:r}},Y=e=>{const{meta:s,hasInChatEditor:n,editAction:a,canEdit:i}=K(e),r=`avcoat-row-${e}`;return t.jsxs("li",{className:"flex items-center gap-md py-md border-t first:border-t-0",children:[t.jsx("div",{className:"flex size-10 shrink-0 items-center justify-center rounded-full bg-alpha-1 text-secondary",children:t.jsx($L,{name:s.icon})}),t.jsx("div",{id:r,className:"min-w-0 flex-1 text-body font-medium",children:t.jsx(hs,{id:s.labelId})}),i&&t.jsx(rN,{variant:"secondary",size:"sm","aria-describedby":r,onClick:()=>{R(!0),v({event_key:"claudeai.safety.block_scanner.remediate_clicked",culprit_surface:e,editor:n?"in_chat":"navigate",...h&&{entry_surface:h}}),n?a?.():A(()=>a?.())},children:t.jsx(hs,{id:"rpqaqj"})})]},e)};let Q,J=null;const X="scanning"===a.state||"idle"===a.state||V,ee=!X&&"rate_limited"===a.state;X?Q=t.jsxs("div",{className:"flex flex-col gap-sm",role:"status","aria-live":"polite",children:[t.jsx("div",{className:"h-1 w-full overflow-hidden rounded-full bg-alpha-1",role:"progressbar","aria-labelledby":"avcoat-checking","aria-valuenow":q,"aria-valuemin":0,"aria-valuemax":100,children:t.jsx(sA.div,{className:"h-full w-full origin-left bg-fill-primary",style:{scaleX:$}})}),t.jsx("p",{id:"avcoat-checking",className:"text-muted",children:t.jsx(hs,{id:"1a1x0fo"})})]}):ee?(J="tclnc4",Q=t.jsx("p",{className:"text-muted",children:t.jsx(hs,{id:J})})):"unavailable"===a.state?(J="6m1yby",Q=t.jsx("p",{className:"text-muted",children:t.jsx(hs,{id:J})})):"user_message"===O?.attribution?(J="ska1wz",Q=t.jsx("p",{className:"text-muted",children:t.jsx(hs,{id:J})})):"attachments"===O?.attribution?(J="ckwtu8",Q=t.jsx("p",{className:"text-muted",children:t.jsx(hs,{id:J})})):F?(J="8q698i",Q=t.jsx("ul",{role:"list",className:"flex flex-col",children:Y(F)})):(J="8szru2",Q=t.jsx("p",{className:"text-muted",children:t.jsx(hs,{id:J,dangerouslyVisiblePublicValues:{fallbackModelName:o}})}));const te="user_message"===O?.attribution||"attachments"===O?.attribution,se=null!==F&&K(F).canEdit,ne=!!c&&"done"===a.state&&!te&&se,ie=!E,re=!!d&&"done"===a.state&&"user_message"===O?.attribution,oe=!!u&&"done"===a.state&&"attachments"===O?.attribution,le=!!l||ne||re||oe,ce=("done"===a.state||"unavailable"===a.state)&&!V&&le,de=e=>{v({event_key:"claudeai.safety.block_scanner.modal_action",action:e,remediated_surfaces:g?.()??[],...h&&{entry_surface:h}})};return t.jsx(lN.Root,{open:s,onOpenChange:e=>{e||n()},children:t.jsxs(lN.Popup,{size:"md",finalFocus:()=>!T.current&&"unavailable"!==a.state,children:[t.jsx(lN.Header,{showClose:!0,closeLabel:gs({id:"1gbajw6",intl:x}).trim()||void 0,description:X||ee?void 0:t.jsx(hs,{id:"74zyu2"}),children:t.jsx(hs,{id:X?"1qes5dm":ee?"1lr3846":"1gkl8k6"})}),t.jsx("div",{className:"flex min-h-11 flex-col gap-md "+(X||O&&F?"pt-2":"pt-0.5"),"data-testid":"block-scanner",children:Q}),t.jsx("div",{role:"status","aria-live":"polite",className:"sr-only",children:J&&t.jsx(hs,{id:J,dangerouslyVisiblePublicValues:{fallbackModelName:o}})}),ce&&t.jsxs(lN.Footer,{children:[l&&t.jsx(rN,{variant:"secondary",onClick:()=>{de("retry_fallback"),A(l)},children:t.jsx(hs,{id:"6k8w0t",dangerouslyVisiblePublicValues:{fallbackModelName:o}})}),re&&d&&t.jsx(rN,{variant:"primary",onClick:()=>{de("edit_and_retry"),A(d)},children:t.jsx(hs,{id:"1sdczil"})}),oe&&u&&t.jsx(rN,{variant:"primary",onClick:()=>{de("retry_without_files"),A(u)},children:t.jsx(hs,{id:"advrmv"})}),ne&&c&&t.jsx(rN,{variant:"primary",disabled:ie,onClick:()=>{de("retry_original"),A(c)},children:t.jsx(hs,{id:"69utcq"})})]})]})})}function d$({isOpen:s,onOpenChange:n,scan:a,projectUuid:i,entrySurface:r,...o}){const[l,c]=e.useState(!1);e.useEffect(()=>{s||c(!1)},[s]);const[d,u]=e.useState(null),{track:m}=ae(),p=e.useRef(m);e.useEffect(()=>{p.current=m},[m]);const f=e.useRef(r);e.useEffect(()=>{f.current=r},[r]);const g=e.useRef(null),h=e.useRef(new Set),[C,x]=e.useState("synthesis"),[v,y]=e.useState("instructions"),b=sn(),k=nn(),w=an(),M=k&&"melange"===w,_=s||"project_system_prompt"===d,{data:j}=Ee(i,_),{hasKBEditPermissions:S}=tn({projectUuid:i??"",enabled:!!i&&_}),L=!!j&&!j.archived_at&&!j.is_starter_project&&S,N=e.useCallback(()=>{u(null),x("synthesis"),y("instructions"),a.result&&c(!0),n(!0)},[a.result,n]),I=e.useCallback(e=>{const t=g.current;if(t){g.current=null;const s="saved"===e?"saved":t.noSave;"dismissed"!==s&&h.current.add(t.surface),m({event_key:"claudeai.safety.block_scanner.remediation_editor_closed",culprit_surface:t.surface,outcome:s,...r&&{entry_surface:r}})}N()},[m,N,r]),T=rn(e=>null!==e.section),A=e.useRef(!1);return e.useEffect(()=>{const e="connector_mcp"===d||"skills"===d;A.current&&!T&&e&&I("no_save"),A.current=T},[T,d,I]),e.useEffect(()=>()=>{const e=g.current;if(e){g.current=null;const t=f.current;p.current({event_key:"claudeai.safety.block_scanner.remediation_editor_closed",culprit_surface:e.surface,outcome:e.noSave,...t&&{entry_surface:t}})}},[]),t.jsxs(t.Fragment,{children:[t.jsx(c$,{...o,scan:a,projectUuid:i,entrySurface:r,isOpen:s,onClose:()=>n(!1),preserveOnOpen:l,getRemediatedSurfaces:()=>[...h.current],onEditSurface:e=>{g.current={surface:e,noSave:"user_preferences"===e||"project_system_prompt"===e||"memories"===e&&!M?"dismissed":"closed"},u(e);const t="connector_mcp"===e?"customize-connectors":"skills"===e?"customize-skills":null;if(null!==t){const e=a.result?.culprits[0]?.source_id;mn(t,void 0!==e?pn([e]):void 0,{focused:!0})}},canOpenInChatEditor:e=>"project_system_prompt"!==e||L}),M?"memories"===d&&t.jsx(i$,{isOpen:!0,onClose:()=>I("no_save")}):b&&t.jsx(hB,{overlayClassName:o$,modalOpen:"memories"===d,setModalOpen:e=>{e||I("no_save")},modalView:C,setModalView:x,onAfterUpdate:()=>I("saved")}),t.jsx(NB,{backdropClassName:o$,isOpen:"user_preferences"===d,onClose:()=>I("no_save"),onAfterUpdate:()=>I("saved")}),j&&t.jsx(pB,{backdropClassName:o$,project:j,currentView:"project_system_prompt"===d?v:void 0,setCurrentView:y,onClose:()=>I("no_save"),onAfterUpdate:()=>I("saved"),hideRecommendedTools:!0,viewOnly:!L},j.uuid),i&&"project_knowledge_file"===d&&t.jsx(n$,{backdropClassName:o$,isOpen:!0,projectUuid:i,highlightDocUuid:a.result?.culprits[0]?.source_id,onClose:()=>I("no_save")})]})}const u$=["claude.com","claude.ai","anthropic.com"];const m$=e.createContext(null);function p$(e){let t;try{t=new URL(e)}catch{return""}if("https:"!==t.protocol)return"";if(!function(e){const t=e.toLowerCase().replace(/\.$/,"");return u$.some(e=>t===e||t.endsWith(`.${e}`))}(t.hostname))return"";const s=t.hostname.toLowerCase().replace(/\.$/,"");return"claude.com"!==s&&"www.claude.com"!==s&&"claude.ai"!==s||t.searchParams.set("open_in_browser","1"),t.toString()}const f$=["p","a","strong","em"],g$={p:({children:e})=>t.jsx("span",{children:e}),a:function({href:s,children:n}){const a=e.useContext(m$);return s?t.jsx(ct,{external:!0,href:s,className:"text-inherit underline-offset-auto decoration-current",onClick:a?()=>a(s):void 0,children:n}):t.jsx("span",{children:n})}};function h$({text:e}){return t.jsx(gn,{allowedElements:f$,unwrapDisallowed:!0,components:g$,urlTransform:p$,children:e})}function C$(e){return e&&Cn(e)?"https://support.claude.com/en/articles/15363606":"https://support.claude.com/en/articles/8106465"}function x$(e,t){if(e)try{if("https:"===new URL(e).protocol)return e}catch{}return C$(t)}function v$({explanation:e,fromModelName:s,doubleBlockFromName:n}){const a=hn();return e?.trim()?t.jsx(h$,{text:a(e)}):n?t.jsx(XS,{defaultMessage:"{fromModelName}'s safety measures flagged this message. This sometimes happens with safe, normal conversations.",id:"JvyI9/sz/W",values:{fromModelName:n}}):t.jsx(XS,{defaultMessage:"This model has specific safety measures that flagged something in this message. This sometimes happens with safe, normal conversations.",id:"jP53ZwS4ZF",values:{fromModelName:s}})}function y$({fallbackModelName:e,variant:s="hard-block",onContinue:n,onFeedback:a,feedbackDisabled:i,onLearnMoreClick:r,learnMoreUrl:o,blockedModelId:l,urls:c}){const d=y("cai_markdown_refusals")?void 0:function(e){const t=e?.find(e=>"appeal"===e.label)?.href;if(t)try{const e=new URL(t);if("https:"!==e.protocol)return;return e.searchParams.set("open_in_browser","1"),e.toString()}catch{return}}(c),u={fallbackModelName:e,continueLink:e=>n?t.jsx("button",{type:"button",className:"underline cursor-pointer",onClick:n,children:e}):t.jsx(t.Fragment,{children:e}),feedback:e=>t.jsx("button",{type:"button","aria-haspopup":"dialog",disabled:i,className:"underline cursor-pointer disabled:opacity-50 disabled:pointer-events-none",onClick:a,children:e}),exemption:e=>t.jsx("a",{className:"underline cursor-pointer",href:d,target:"_blank",children:e}),learnMore:e=>t.jsx("a",{className:"underline cursor-pointer",href:x$(o,l),target:"_blank",onClick:r,children:e})};return"switched"===s?t.jsx(XS,{defaultMessage:"<feedback>Send feedback</feedback> or <learnMore>learn more</learnMore>.",id:"8ZgsC9pqeN",values:u}):d?t.jsx(XS,{defaultMessage:"<continueLink>Continue with {fallbackModelName}</continueLink>, <feedback>send feedback</feedback>, <exemption>request an adjustment</exemption>, or <learnMore>learn more</learnMore>.",id:"x5uwvGxyvk",values:u}):t.jsx(XS,{defaultMessage:"<continueLink>Continue with {fallbackModelName}</continueLink>, <feedback>send feedback</feedback>, or <learnMore>learn more</learnMore>.",id:"9jWfNkH2gM",values:u})}function b$(e){const t=[];for(const s of e){const e=Gz(s);for(const s of e)"file_kind"in s&&t.push(s)}return t}const k$="https://privacy.anthropic.com/en/articles/10023565-how-does-anthropic-use-submitted-feedback",w$="https://privacy.anthropic.com/en/articles/9957937-how-does-anthropic-use-submitted-feedback";function M$({conversationUuid:s,message:n,requestedFeedbackType:a,setRequestedFeedbackType:i,isOpen:r,onClose:o,onSubmit:l,onSuccess:c,showOptions:d=!0}){const u=JS(),[m,p]=e.useState(""),f=xn()?.isExternalConversation??!1,{onMessageFeedback:g}=vn(),{data:h}=yn(s,{enabled:!f}),C=h?.chat_messages.some(e=>bn(e).length>0),x=(v=h?.chat_messages??[],e.useMemo(()=>b$(v),[v])).length>0;var v;const{mutate:y}=kn(s,n,!!C,{onSuccess:c}),b=e.useId(),k=e.useId(),w=e.useId(),M=n.content?.some(e=>"thinking"===e.type)??!1,_="raven"===wn(),j=mt().isAvailable,S=nn(),L=j||S,N=h?.settings?.enabled_web_search??!1,I=n.content?.some(e=>"tool_use"===e.type&&"web_search"===e.name)??!1,T=e.useMemo(()=>{const e=(e,t)=>({value:e,label:t});return[e(Mn.FLAG_BUG,u.formatMessage({defaultMessage:"UI bug",id:"0uIYueAyDB"})),e(Mn.FLAG_REFUSAL,u.formatMessage({defaultMessage:"Overactive refusal",id:"Jl0Mn6yDBI"})),...x?[e(Mn.FLAG_FILE,u.formatMessage({defaultMessage:"Poor image understanding",id:"227KYxHrx5"}))]:[],e(Mn.FLAG_INSTRUCTIONS,u.formatMessage({defaultMessage:"Did not fully follow my request",id:"2uOw8LgMwG"})),e(Mn.FLAG_FACTS,u.formatMessage({defaultMessage:"Not factually correct",id:"topE9Q6MGe"})),e(Mn.FLAG_INCOMPLETE,u.formatMessage({defaultMessage:"Incomplete response",id:"ZNEcy7OM5r"})),M?e(Mn.FLAG_THOUGHTS,u.formatMessage({defaultMessage:"Issue with thought process",id:"zOab+24EWo"})):e(Mn.FLAG_THINK_UNDER,u.formatMessage({defaultMessage:"Should have triggered thinking",id:"GVO1SUl+Ej"})),...N?I?[e(Mn.FLAG_WEB_OVER,u.formatMessage({defaultMessage:"Shouldn't have searched the web",id:"ILsBYE6sfs"})),e(Mn.FLAG_WEB_SOURCES,u.formatMessage({defaultMessage:"Don't like the cited sources",id:"swLbdxGkYj"})),e(Mn.FLAG_WEB_URL,u.formatMessage({defaultMessage:"Report a URL",id:"BMYqsjhycd"}))]:[e(Mn.FLAG_WEB_UNDER,u.formatMessage({defaultMessage:"Should have searched the web",id:"CS8kdzupd9"}))]:[],...L?[e(Mn.FLAG_MEMORY,u.formatMessage({defaultMessage:"Issue with memory",id:"WylAKnJKa5"}))]:[],e(Mn.FLAG_CONTENT,u.formatMessage({defaultMessage:"Report content",id:"vfibES+z8T"})),e(Mn.FLAG_CONSTITUTION,u.formatMessage({defaultMessage:"Not in keeping with Claude's Constitution",id:"9Etfi2CcbL"})),e(Mn.FLAG_OTHER,u.formatMessage({defaultMessage:"Other",id:"/VnDMl81rh"}))]},[u,x,M,N,I,L]),A=a?.includes("upvote")?u.formatMessage({defaultMessage:"Give positive feedback",id:"FGCv00cdfW"}):a?.includes("flag")?u.formatMessage({defaultMessage:"Give negative feedback",id:"ngzzQUJCXB"}):u.formatMessage({defaultMessage:"Feedback",id:"Ejhdi47Jk5"});return t.jsx(lN.Root,{open:r,onOpenChange:e=>!e&&o(),children:t.jsxs(lN.Popup,{size:"md",children:[t.jsx(lN.Header,{showClose:!1,children:A}),a?.includes("flag")&&d&&t.jsx(CN,{label:u.formatMessage({defaultMessage:"What type of issue do you wish to report? (optional)",id:"IFWIi9rs1t"}),placeholder:u.formatMessage({defaultMessage:"Select\u2026",id:"q0+99kUbd6"}),searchable:!1,items:T,value:a===Mn.FLAG?null:a,onChange:e=>{i(e??Mn.FLAG)}}),a===Mn.FLAG_WEB_URL||a===Mn.FLAG_CONTENT?t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"text-text-300 border-0.5 border-border-300 rounded-lg p-12 text-sm",children:t.jsx(XS,{defaultMessage:"Please use this <link>form</link> to report violative content.",id:"QSjqvNNsUq",values:{link:e=>t.jsx(ct,{href:_n,target:"_blank",children:e})}})}),t.jsx(lN.Footer,{children:t.jsx(rN,{variant:"secondary",onClick:o,children:t.jsx(XS,{defaultMessage:"Cancel",id:"47FYwba+bI"})})})]}):t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"mt-4 flex flex-col",children:[t.jsx("label",{id:k,htmlFor:b,className:"text-text-400 mb-2 text-sm",children:t.jsx(XS,{defaultMessage:"Please provide details: (optional)",id:"og1W/bIZdx"})}),t.jsx(dN,{id:b,"aria-labelledby":k,className:"text-sm",placeholder:a?.includes("flag")||a?.includes("sc")?u.formatMessage({defaultMessage:"What was unsatisfying about this response?",id:"+DB/t6WTki"}):u.formatMessage({defaultMessage:"What was satisfying about this response?",id:"yJFWG3mK1I"}),value:m,onChange:e=>{p(e.target.value)}})]}),t.jsx("p",{id:w,className:"text-text-500 mt-3 italic leading-tight",children:t.jsx("small",{children:t.jsx(XS,{defaultMessage:"Submitting this report will send the entire current conversation to Anthropic for future improvements to our models. <link>Learn More</link>",id:"laRJ009b4f",values:{link:e=>t.jsx(ct,{target:"_blank",rel:"noopener",href:_?w$:k$,children:e})}})})}),t.jsxs(lN.Footer,{children:[t.jsx(rN,{variant:"secondary",onClick:o,children:t.jsx(XS,{defaultMessage:"Cancel",id:"47FYwba+bI"})}),t.jsx(rN,{variant:"primary","aria-describedby":w,onClick:()=>{a&&(g?(g(n,a,m||void 0),c?.()):y({type:a,reason:m||void 0}),l?.(a),o())},children:t.jsx(XS,{defaultMessage:"Submit",id:"wSZR47Y5kj"})})]})]})]})})}const _$=["memories","user_preferences","project_system_prompt","project_knowledge_file","connector_mcp","skills","org_instructions"],j$=[..._$,"attachments","user_message","unknown"],S$=["boundary_walk","validation"],L$=["culprit_confirmed","user_message","validation_failed","baseline_not_reproduced","probe_error","deadline_exceeded"],N$=Object.freeze({type:"block_scan_result",attribution:"unknown",outcome:null,culprits:[],degraded:[]});class I$ extends Error{constructor(e){super(`debug_block unavailable: ${e}`),this.status=e,this.name="BlockScanUnavailable"}}const T$=e=>"string"==typeof e&&_$.includes(e),A$=e=>"string"==typeof e&&j$.includes(e),E$=e=>"string"==typeof e&&L$.includes(e);class R$ extends Error{constructor(e){super(`debug_block open ${e}`)}}async function D$({organizationUuid:e,conversationUuid:t,signal:s,onProgress:n,onResult:a,fetch:i,retryDelayMs:r=1e3}){let o=!1,l=0;try{await jn(`/api/organizations/${e}/chat_conversations/${t}/debug_block`,{method:"POST",signal:s,openWhenHidden:!0,fetch:i,headers:{"Content-Type":"application/json",Accept:"text/event-stream"},body:"{}",async onopen(e){const t=e.headers.get("content-type")??"";if(!e.ok||!t.includes(Sn)){if(e.status>=400&&e.status<500)throw new I$(e.status);throw new R$(e.status)}},onmessage(e){if(!e.data)return;const t=function(e){let t;try{t=JSON.parse(e)}catch{return null}if(!t||"object"!=typeof t)return null;const s=t;if("block_scan_progress"===s.type)return{type:"block_scan_progress",phase:(n=s.phase,"string"==typeof n&&S$.includes(n)?s.phase:null),block_index:"number"==typeof s.block_index?s.block_index:-1,total:"number"==typeof s.total?s.total:0,surface:T$(s.surface)?s.surface:null,blocked:"boolean"==typeof s.blocked&&s.blocked};var n;if("block_scan_result"===s.type){const e=Array.isArray(s.culprits)?s.culprits.filter(e=>"object"==typeof e&&null!==e&&!Array.isArray(e)).map(e=>({surface:T$(e.surface)?e.surface:"unknown",block_index:"number"==typeof e.block_index?e.block_index:-1,display_name:"string"==typeof e.display_name?e.display_name:"",source_id:"string"==typeof e.source_id?e.source_id:void 0})):[];return{type:"block_scan_result",attribution:A$(s.attribution)?s.attribution:"unknown",outcome:E$(s.outcome)?s.outcome:null,culprits:e,degraded:Array.isArray(s.degraded)?s.degraded.filter(e=>"string"==typeof e):[]}}return null}(e.data);"block_scan_progress"===t?.type?n(t):"block_scan_result"===t?.type&&(o=!0,a(t))},onclose(){if(!o)throw new Error("debug_block closed without result")},onerror(e){if(e instanceof I$)throw e;if(o)throw e instanceof Error?e:new Error(String(e));if(l++<1)return r;throw e instanceof Error?e:new Error(String(e))}})}catch(c){if(c instanceof I$)throw c;if(o)return;if(!s.aborted)return void a(N$);throw c}}function H$(t,s){const{activeOrganization:n}=v(),a=n?.uuid,i=M(),r=e.useRef(i);e.useEffect(()=>{r.current=i},[i]);const{track:o}=ae(),l=e.useRef(o);e.useEffect(()=>{l.current=o},[o]);const[c,d]=e.useState("idle"),[u,m]=e.useState([]),[p,f]=e.useState(null),g=e.useRef(null),h=e.useCallback(()=>{g.current?.abort(),g.current=null},[]),C=e.useCallback(()=>{h(),d("idle"),m([]),f(null)},[h]);e.useEffect(()=>C,[t,C]);return{state:c,progress:u,result:p,run:e.useCallback(()=>{if(!t)return;if(g.current?.abort(),!a)return m([]),f(null),d("unavailable"),void l.current({event_key:"claudeai.safety.block_scanner.scan_unavailable",reason:"unavailable",...s&&{entry_surface:s}});const e=new AbortController;g.current=e,d("scanning"),m([]),f(null);const n=performance.now();l.current({event_key:"claudeai.safety.block_scanner.scan_started",...s&&{entry_surface:s}});let i=!1,o=!1;const c=setTimeout(()=>{i=!0,e.abort()},15e4),u=()=>g.current===e,p=(e,t)=>{!o&&u()&&(o=!0,f(t),d(e),"unavailable"===e||"rate_limited"===e?l.current({event_key:"claudeai.safety.block_scanner.scan_unavailable",reason:e,...s&&{entry_surface:s}}):l.current({event_key:"claudeai.safety.block_scanner.scan_completed",attribution:t?.attribution??"unknown",outcome:t?.outcome??null,duration_ms:Math.round(performance.now()-n),degraded_count:t?.degraded.length??0,...s&&{entry_surface:s}}))};D$({organizationUuid:a,conversationUuid:t,signal:e.signal,fetch:(e,t)=>r.current(String(e),t),onProgress:e=>{u()&&!o&&m(t=>[...t,e])},onResult:t=>{p("done",t),e.abort()}}).catch(e=>{e instanceof I$?p(429===e.status?"rate_limited":"unavailable",null):p("done",N$)}).finally(()=>{clearTimeout(c),u()&&(i&&p("done",N$),g.current=null)})},[a,t,s]),abort:h,reset:C}}function P$(t){const{account:s}=v(),n=!Ln(s),a=e.useMemo(()=>{if(!n||!t)return null;const e=Date.parse(t);return Number.isNaN(e)?null:e+3e5},[n,t]),i=null===a||Date.now()<a,[r,o]=e.useReducer(e=>e+1,0);return e.useEffect(()=>{if(null===a||!i)return;const e=a-Date.now(),t=e<=2147483647?setTimeout(o,e):void 0,s=()=>o();return document.addEventListener("visibilitychange",s),window.addEventListener("focus",s),()=>{clearTimeout(t),document.removeEventListener("visibilitychange",s),window.removeEventListener("focus",s)}},[a,i,r]),i}function U$(e,t){const s=Nn(e??""),n=function(e){const t=void 0!==e&&Number.isFinite(e)&&e>=0&&e<=864e13?new Date(e).toISOString():void 0,s=P$(t);return void 0!==t&&s}(t?.receivedAt),a=In("cai_avcoat_fallback"),i=!!e&&!!t?.humanMessageUuid&&s<=1&&n&&a,r=ce("cai_avcoat",i),o=In("cai_avcoat"),l=i?r:o,c=function(e){const{serverGateNames:t}=$(),s=Tn(e=>e.gates),n=Tn(e=>e.isLoaded);return t&&t.length>0?t.includes(e):!!n&&s.includes(e)}("cai_avcoat");return{scanMountable:l&&a&&c&&!!e&&!!t?.humanMessageUuid&&s<=1,fallbackFresh:n}}function O$({conversationUuid:e,humanMessageUuid:s,isOpen:n,onClose:a}){const i=ut(),r=An(e),o=En(s),l=r?.chat_messages?.find(e=>"assistant"===e.sender&&En(e.parent_message_uuid??"")===o&&"refusal"!==e.stop_reason);return l?t.jsx(M$,{isOpen:n,showOptions:!1,conversationUuid:e,message:{...l,uuid:En(l.uuid)},requestedFeedbackType:Mn.SC_FALSE_POSITIVE,setRequestedFeedbackType:()=>{},onClose:a,onSuccess:()=>{a(),i.addSuccess(t.jsx(XS,{defaultMessage:"Thanks for your feedback!",id:"coh2h6fh1P"}))}},e):null}const F$=e.memo(function({fallback:s,conversationUuid:n,projectUuid:a,onRetry:i,isStreaming:r=!1,onRetryWithoutFiles:o}){const{nameFor:l}=Ae("chat"),{track:c}=ae(),{setModel:d,isLocalAgentRoute:u,stopSampling:m}=J(),{addError:p}=ut(),[f,g]=e.useState(),h=n??"no-conversation",C=f===h,[x,v]=e.useState(!1),y=H$(n??null,"model_update"),{scanMountable:b,fallbackFresh:k}=U$(n,s),w=b&&"unavailable"!==y.state&&k,[M,_]=e.useState(),j=!!M&&M===n,S=e=>_(e&&n?n:void 0),L=e.useRef(new Set);j&&n&&L.current.add(n);const N=!!n&&L.current.has(n),I=e.useRef(new Set),T=e.useRef(new Set),A=s&&n?`${n}:${s.receivedAt??s.humanMessageUuid??"unstamped"}`:void 0,E=s?.from_model.model,R=s?.to_model.model,D=e=>{n&&E&&R&&c({event_key:e,entry_surface:"model_update",conversation_uuid:n,original_model:E,fallback_model:R})},H=e.useCallback(e=>{n&&E&&R&&c({event_key:"claudeai.safety.model_fallback_banner.explanation_link_clicked",entry_surface:"model_update",conversation_uuid:n,original_model:E,fallback_model:R,href:e})},[n,E,R,c]);e.useEffect(()=>{v(!1),g(void 0),_(void 0),L.current.clear()},[n]),e.useEffect(()=>{s||(g(void 0),v(!1))},[s]),e.useEffect(()=>{A&&s&&n&&!T.current.has(A)&&(T.current.add(A),c({event_key:"claudeai.safety.model_fallback_banner.rendered",entry_surface:"model_update",conversation_uuid:n,original_model:s.from_model.model,fallback_model:s.to_model.model}))},[A,s,n,c]);const{reset:P}=y;e.useEffect(()=>{b||(_(void 0),P(),L.current.clear())},[b,P]),e.useEffect(()=>{w&&A&&!I.current.has(A)&&(I.current.add(A),c({event_key:"claudeai.safety.block_scanner.cta_shown",entry_surface:"model_update"}))},[w,A,c]);const U=An(n??""),O=(()=>{if(!o||!s?.humanMessageUuid)return;const e=En(s.humanMessageUuid),t=U?.chat_messages?.find(t=>"human"===t.sender&&En(t.uuid)===e);return t&&""!==Le(t).trim()?t:void 0})(),F=s?l(s.from_model.model):"",V=s?l(s.to_model.model):"";return t.jsxs(t.Fragment,{children:[x&&n&&s?.humanMessageUuid&&t.jsx(O$,{conversationUuid:n,humanMessageUuid:s.humanMessageUuid,isOpen:x,onClose:()=>v(!1)}),b&&N&&n&&s&&t.jsx(d$,{isOpen:j,onOpenChange:S,scan:y,entrySurface:"model_update",projectUuid:a,onRetryOriginal:i&&s.humanMessageUuid?()=>{i&&n&&s?.humanMessageUuid&&(Dn(n)?p(t.jsx(Hn,{})):((void 0!==Pn(n)||Un(n)||r)&&m(),u||d(s.from_model.model),i(En(s.humanMessageUuid),s.from_model.model)))}:void 0,onEditAndRetry:s.humanMessageUuid?()=>{n&&s?.humanMessageUuid&&Rn.getState().requestEdit(n,s.humanMessageUuid,s.from_model.model)}:void 0,onRetryWithoutFiles:O?()=>{o&&n&&s&&O&&(Dn(n)?p(t.jsx(Hn,{})):o(O,s.from_model.model))}:void 0,fallbackDisplayName:V},n),t.jsx(nA,{children:s&&t.jsxs(sA.div,{"data-testid":"model-fallback-banner",initial:{y:"100%"},animate:{y:0},exit:{y:"100%"},transition:{duration:.2,ease:"easeOut"},className:"@container border-0.5 relative z-0 px-5 -mb-5 rounded-t-[20px] border-b-0 pb-7 pt-2 bg-bg-300 border-transparent",children:[t.jsxs("div",{className:"flex flex-wrap items-center gap-x-2 gap-y-1 py-1 text-sm",children:[t.jsxs("button",{type:"button",className:"flex items-center gap-x-1.5 text-left text-secondary hover:text-primary cursor-pointer","aria-expanded":C,onClick:()=>{C||D("claudeai.safety.model_fallback_banner.why_expanded"),g(C?void 0:h)},children:[t.jsx("span",{children:t.jsx(XS,{defaultMessage:"Switched to {toName}",id:"X9srkOvske",values:{toName:V}})}),t.jsx("span",{"aria-hidden":"true",className:"transition-transform duration-200 "+(C?"rotate-0":"-rotate-90"),children:t.jsx($L,{name:"CaretDown",size:"sm"})})]}),t.jsxs("div",{className:`flex w-full items-center gap-x-4 ${w?"justify-between":"justify-end"} @[390px]:w-auto @[390px]:shrink-0 @[390px]:justify-start @[390px]:ml-auto`,children:[w&&t.jsxs("button",{type:"button","aria-haspopup":"dialog",className:"shrink-0 whitespace-nowrap text-secondary hover:text-primary underline underline-offset-2 cursor-pointer",onClick:()=>{c({event_key:"claudeai.safety.block_scanner.cta_clicked",entry_surface:"model_update"}),S(!0)},children:[t.jsx("span",{className:"hidden @[520px]:inline",children:t.jsx(hs,{id:"13nbsio"})}),t.jsx("span",{className:"@[520px]:hidden",children:t.jsx(hs,{id:"pby0t9"})})]}),t.jsx("button",{type:"button",disabled:!s.humanMessageUuid,className:"shrink-0 whitespace-nowrap text-text-300 underline underline-offset-2 hover:text-text-100 disabled:opacity-50 disabled:pointer-events-none "+(w?"before:content-['\xb7'] before:mr-4 before:no-underline before:text-text-400 before:hidden @[390px]:before:inline-block":""),onClick:()=>{s.humanMessageUuid&&n&&(D("claudeai.safety.model_fallback_banner.edit_retry_clicked"),Rn.getState().requestEdit(n,s.humanMessageUuid,s.from_model.model))},children:w?t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"hidden @[520px]:inline",children:t.jsx(XS,{defaultMessage:"Edit and retry with {fromName}",id:"zchBxMyJY1",values:{fromName:F}})}),t.jsx("span",{className:"@[520px]:hidden",children:t.jsx(hs,{id:"156di0i",dangerouslyVisiblePublicValues:{fromName:F}})})]}):t.jsx(XS,{defaultMessage:"Edit and retry with {fromName}",id:"zchBxMyJY1",values:{fromName:F}})})]})]}),t.jsx(nA,{initial:!1,children:C&&t.jsx(sA.div,{initial:{height:0},animate:{height:"auto"},exit:{height:0},transition:{duration:.18,ease:"easeOut"},className:"overflow-hidden",children:t.jsxs("p",{className:"text-sm text-text-300 pt-1.5 pb-1.5",children:[t.jsx(m$.Provider,{value:H,children:t.jsx(v$,{explanation:s.explanation,fromModelName:F})})," ",t.jsx(y$,{variant:"switched",fallbackModelName:V,feedbackDisabled:!s.humanMessageUuid,onFeedback:()=>{D("claudeai.safety.model_fallback_banner.feedback_clicked"),v(!0)},onLearnMoreClick:()=>D("claudeai.safety.model_fallback_banner.learn_more_clicked"),learnMoreUrl:s.learn_more_url,blockedModelId:s.from_model.model})]})})})]})})]})}),V$=fT()(gT((e,t)=>({features:{},setMessageFeatures:(t,s)=>e(e=>({features:{...e.features,[t]:{...e.features[t],...s}}})),clearAllFeatures:()=>e({features:{}}),clearFeaturesForMessages:t=>e(e=>{const s={...e.features};for(const n of t)delete s[n];return{features:s}}),getMessageFeatures:e=>t().features[e],hasLink:e=>t().features[e]?.hasLink??!1,hasCode:e=>t().features[e]?.hasCode??!1})));const z$="claude_code_install_nudge",Z$=fn(()=>a(()=>import("./c9786c003-R6Eu-N1U.js").then(e=>e.L),__vite__mapDeps([0,1]),import.meta.url),{}),B$={code_block:{web:"claudified_cc_in_chat_nudge_v2",desktop:"desktop_cc_code_block_nudge_v3"},file_upload:{web:"cc_file_upload_nudge_v3",desktop:"cc_file_upload_nudge_v3"},artifact:{web:"cc_artifact_nudge_priority",desktop:"cc_artifact_nudge_priority"}},q$=TL(["off","on","control","creative_a","pre_send","cc_priority"]);function W$(t){const{dismiss:s}=me(),n=zn(),a=e.useRef(!1),i=e.useRef(t);return i.current!==t&&(i.current=t,a.current=!1),t?!0===n?null:{dismiss:()=>s(z$),hasTrackedDisplayRef:a}:null}function $$(t){const s=W$(t),n=Me(),a=m(),i=Ce(e=>{if(t)return e.pathUuidsByConversation[t]}),r=V$(e=>!!i&&i.some(t=>e.features[t]?.hasCode)),o=e.useRef(!1),l=e.useRef(t);return l.current!==t&&(l.current=t,o.current=!1),r&&(o.current=!0),s?!a&&n?null:o.current?{...s,trigger:"code_block"}:null:null}function G$(e,t){const s=W$(e);return s&&t?{...s,trigger:"file_upload"}:null}function K$({trigger:s,onDismiss:n,hasTrackedDisplayRef:a,fallback:i,onRendered:o,forceVariant:l,onAction:c}){const d=e.useRef(s).current,u=e.useRef(a).current,f=m()?"desktop":"web",{showNudge:g,variant:h}=function(e,t,s){const n=void 0!==s?"__cc_nudge_noop__":B$[e][t],a=he(n,"variant","code_block"===e&&"web"===t?"control":"off",q$),i=s??a;return{showNudge:"off"!==i,variant:i}}(d,f,l),{cta:C,planTier:x,loading:v}=function(e){const t=Vn(),s=p(),n=t?"entitled":"needs_upgrade",a=xe()&&!t;return"web"===e?{cta:a?null:"install_dropdown",planTier:n,loading:!1}:null===s?{cta:null,planTier:n,loading:!0}:s?{cta:"open_claude_code",planTier:n,loading:!1}:{cta:t||a?null:"upgrade",planTier:n,loading:!1}}(f),{isDismissed:y}=me(),b=y(z$),k="creative_a"===h,w=ae(),M=JS(),_=On(),j=Fn(),S=r(),L=ps(),{downloadAndOpenModal:N,modal:I}=de("claude_code_nudge",{onClose:()=>c?.()});if(e.useEffect(()=>{!g||null===C||b||u.current||(u.current=!0,o?.(),Wz("claude_code","postsend"),w.track({event_key:"claudeai.claude_code_install_nudge.displayed",variant:h,trigger:d,platform:f,plan_tier:x}))},[w,g,C,h,d,f,x,b,u,o]),v)return null;if(!g||null===C||b)return t.jsx(t.Fragment,{children:i});const T=e=>{w.track({event_key:"claudeai.claude_code_install_nudge.install_clicked",surface:e,variant:h,trigger:d,platform:f,plan_tier:x})},A=(e,t)=>{T(e),"desktop"===e?N(_?"mac":"win-x64",t):(window.open(t,"_blank","noopener"),c?.())},E=M.formatMessage({defaultMessage:"Dismiss",id:"TDaF6JVgG6"});return t.jsxs("div",{className:"cc-install-nudge mx-2 mb-3 md:mx-0",children:[t.jsx("style",{children:"\n        .cc-install-nudge { container-type: inline-size; }\n        @keyframes ccInstallNudgeIn {\n          from { opacity: 0; transform: translateY(8px); }\n          to   { opacity: 1; transform: translateY(0); }\n        }\n        @container (max-width: 450px) {\n          .cc-install-nudge-icon { display: none; }\n        }\n      "}),t.jsxs("div",{role:"group",tabIndex:0,"aria-labelledby":"claude-code-nudge-title","aria-describedby":"claude-code-nudge-body",className:"can-focus relative flex items-center gap-4 rounded-[20px] border-0.5 border-border-200 bg-bg-000 py-4 pl-4 pr-[18px] shadow-sm",style:{animation:"ccInstallNudgeIn 220ms cubic-bezier(0.32, 0.72, 0, 1) both"},children:[t.jsx("div",{className:"cc-install-nudge-icon flex size-12 flex-shrink-0 items-center justify-center overflow-hidden rounded-[10px] border-0.5 border-border-200 bg-bg-100","aria-hidden":"true",children:t.jsx(Z$,{path:"/animations/code-terminal.json",play:!0,loop:!1,style:{width:44,height:44}})}),t.jsxs("div",{className:"min-w-0 flex-1",children:[t.jsx("p",{id:"claude-code-nudge-title",className:"font-base-bold text-text-100",children:t.jsx(Y$,{trigger:d,cta:C,showLegacyCreativeA:k})}),t.jsx("p",{id:"claude-code-nudge-body",className:"font-base mt-0.5 text-text-300 text-pretty",children:t.jsx(Q$,{trigger:d,cta:C,showLegacyCreativeA:k})})]}),t.jsxs("div",{className:"flex flex-shrink-0 items-center gap-2",children:["open_claude_code"===C&&t.jsx(rN,{variant:"primary",size:"sm",onClick:()=>{T("open_claude_code"),L("code"),c?.()},children:t.jsx(XS,{defaultMessage:"Open Claude Code",id:"EN3DA/4fyw"})}),"upgrade"===C&&t.jsx(rN,{variant:"primary",size:"sm",onClick:()=>{T("upgrade"),S.push("/upgrade?source=cc_nudge_desktop"),c?.()},children:t.jsx(XS,{defaultMessage:"Upgrade",id:"0h/lPMeYkq"})}),"install_dropdown"===C&&t.jsxs(KL.Root,{onOpenChange:e=>{e&&w.track({event_key:"claudeai.claude_code_install_nudge.install_menu_opened",variant:h,trigger:d,platform:f,plan_tier:x})},children:[t.jsx(KL.Trigger,{render:t.jsx(rN,{variant:"primary",size:"sm",icon:"CaretDown",iconPosition:"end",children:k?t.jsx(XS,{defaultMessage:"Install Claude Code",id:"0qoy4tuNtT"}):t.jsx(XS,{defaultMessage:"Install",id:"ubmFc8rrea"})})}),t.jsxs(KL.Popup,{side:"top",align:"end",sideOffset:8,className:"min-w-[220px]",children:[t.jsx(KL.Header,{children:t.jsx(XS,{defaultMessage:"Install in",id:"aakFT06xnt"})}),(_||j)&&t.jsx(KL.Item,{icon:t.jsx(J$,{children:_?t.jsx(eG,{}):t.jsx(NR,{size:16,weight:"fill"})}),trailing:t.jsx(X$,{}),onClick:()=>A("desktop",Zn(_?"mac":"win-x64")),children:t.jsx(XS,{defaultMessage:"Desktop app",id:"SR19nKO/BD"})}),t.jsx(KL.Item,{icon:t.jsx(J$,{children:t.jsx("img",{loading:"lazy",src:"/images/home-page-assets/vscode.svg",alt:"",width:16,height:16})}),trailing:t.jsx(X$,{}),onClick:()=>A("vscode","https://marketplace.visualstudio.com/items?itemName=anthropic.claude-code"),children:t.jsx(XS,{defaultMessage:"VS Code",id:"Ma0wJFlsrr"})}),t.jsx(KL.Item,{icon:t.jsx(J$,{children:t.jsx($L,{name:"CommandLine",size:"sm"})}),trailing:t.jsx(X$,{}),onClick:()=>A("terminal","https://code.claude.com/docs/en/quickstart"),children:t.jsx(XS,{defaultMessage:"Terminal",id:"GAHVEi8lHA"})}),t.jsx(KL.Separator,{}),t.jsx(KL.Item,{icon:t.jsx(J$,{children:t.jsx($L,{name:"Book",size:"sm"})}),trailing:t.jsx(X$,{}),onClick:()=>A("learn_more","https://claude.com/product/claude-code"),children:t.jsx(XS,{defaultMessage:"Learn more",id:"TdTXXf940t"})})]})]}),t.jsx(rN,{size:"sm",variant:"ghost",iconOnly:!0,icon:"X",onClick:()=>{w.track({event_key:"claudeai.claude_code_install_nudge.dismissed",variant:h,trigger:d,platform:f,plan_tier:x}),n()},"aria-label":E})]})]}),I]})}function Y$({trigger:e,cta:s,showLegacyCreativeA:n}){return n?t.jsx(XS,{defaultMessage:"Ship this from your terminal",id:"8pzyx7W+8a"}):"artifact"===e?"install_dropdown"===s?t.jsx(XS,{defaultMessage:"Build this for real with Claude Code",id:"oILLvyXvqn"}):t.jsx(XS,{defaultMessage:"Make it real in Claude Code",id:"ZzDDx2I9HP"}):"open_claude_code"===s?t.jsx(XS,{defaultMessage:"Keep going in Claude Code",id:"ymK1YZvA8G"}):"upgrade"===s?t.jsx(XS,{defaultMessage:"Claude Code is built into this app",id:"ILpwnjjKGP"}):t.jsx(XS,{defaultMessage:"Claude works directly with your codebase",id:"BUWSK/p5to"})}function Q$({trigger:e,cta:s,showLegacyCreativeA:n}){return n?t.jsx(XS,{defaultMessage:"Claude Code reads your repo, edits files, and runs tests \u2014 without leaving your workflow.",id:"bXQBsQr9zq"}):"artifact"===e?t.jsx(XS,{defaultMessage:"Claude Code can build a prototype you can run, tweak, and launch when it's ready.",id:"xG20TCv+oy"}):"open_claude_code"===s?t.jsx(XS,{defaultMessage:"Switch to Claude Code and let Claude work directly in your repo, running and testing as it goes.",id:"OWjLMbTp3z"}):"upgrade"===s?t.jsx(XS,{defaultMessage:"Upgrade to let Claude edit files, run commands, and ship changes right in your repo.",id:"S1bAbRQzWY"}):t.jsx(XS,{defaultMessage:"Let Claude edit files, run commands, and ship changes from the desktop app, your terminal, or your IDE.",id:"P2dcA8Q5QF"})}function J$({children:e}){return t.jsx("span",{className:"flex w-5 flex-shrink-0 justify-center text-text-200",children:e})}function X$(){return t.jsx($L,{name:"ArrowUpRight",size:"xs",className:"text-muted"})}function eG(){return t.jsxs(t.Fragment,{children:[t.jsx("img",{loading:"lazy",src:"/images/install-hub/apple-icon.svg",alt:"",width:16,height:16,className:"dark:hidden"}),t.jsx("img",{loading:"lazy",src:"/images/install-hub/apple-icon-white.svg",alt:"",width:16,height:16,className:"hidden dark:block"})]})}const tG=e=>B(`/api/referral/code/${e}`,{queryKey:["referral_code_info",e],enabled:!!e}),sG=()=>{const{activeOrganization:e}=v(),t=Bn()??"",s=_();return B("/api/referral",{queryKey:["referral",t],enabled:!!e&&!s.claudeai_referral,meta:{noToast:!0}})},nG=(e,t,s)=>{const{activeOrganization:n}=v(),a=Bn()??"",i=_(),r=qn(),o=Wn(),l=xe();return B(`/api/organizations/${a}/referral/eligibility?campaign=${e}&source=${t}`,{queryKey:["referral_eligibility",a,e,t],enabled:!!n&&(!l&&(r||o))&&(s?.enabled??!0)&&!i.claudeai_referral,meta:{noToast:!0},staleTime:36e5,gcTime:36e5})},aG=(e,t)=>{const{activeOrganization:s}=v(),n=Bn()??"",a=_();return B(`/api/organizations/${n}/referral/redemptions?campaign=${e}`,{queryKey:["referral_redemptions",n,e],enabled:!!s&&(t?.enabled??!0)&&!a.claudeai_referral,meta:{noToast:!0}})};var iG=(e=>(e.EVERGREEN_CLAUDE_DISCOUNT="evergreen_claude_discount",e.CLAUDE_CODE_GUEST_PASS="claude_code_guest_pass",e.CLAUDE_CODE_GUEST_PASS_A47C="claude_code_guest_pass_a47c",e))(iG||{});function rG(e){return"claude_code_guest_pass"===e||"claude_code_guest_pass_a47c"===e}var oG=(e=>(e.COWORK="cowork",e.CLAUDE_DESIGN="claude_design",e.CLAUDE_CODE="claude_code",e.IOS="ios",e.ANDROID="android",e))(oG||{});const lG=new Set(Object.values(oG));function cG(e){return e&&lG.has(e)?e:null}function dG(e){return"cowork"===e}function uG(e){return"claude_design"===e}const mG={cowork:{source:"cowork",displayName:"Cowork",loginTitle:eL({defaultMessage:"You've got a{br}Cowork guest pass",description:"This message is meant to appear over 2 lines of text",id:"xOmGVCNx4n"}),loginSubtitle:eL({defaultMessage:"Hand off tasks to Claude so you can work on other things.",id:"dIgT3Cyg8U"}),postCheckoutPath:$n},claude_design:{source:"claude_design",displayName:"Claude Design",loginTitle:eL({defaultMessage:"You've got a{br}Claude Design guest pass",description:"This message is meant to appear over 2 lines of text",id:"6QY+4euE7P"}),loginSubtitle:eL({defaultMessage:"Turn ideas into polished designs, slides, and prototypes.",id:"Py19P7UFAu"}),postCheckoutPath:"/design"}};function pG(e){if(!rG(e?.promotionId))return;const t=cG(e?.referralSource);return t?mG[t]:void 0}function fG(e,t){const s=e.includes("?")?"&":"?";return`${e}${s}s=${t}`}function gG(e){return fG(e,"cowork")}function hG(e){return fG(e,"claude_design")}var CG=(e=>(e.APPS="apps",e))(CG||{});const xG=new Set(Object.values(CG));function vG(e){return e&&xG.has(e)?e:null}function yG(e){return function(e,t){const s=e.includes("?")?"&":"?";return`${e}${s}v=${t}`}(e,"apps")}const bG="cowork_guest_pass_upsell_banner";function kG({conversationUuid:t,isStreaming:s}){const n=JS(),a=y("cowork_referrals"),i=Me(),{isDismissed:r,dismiss:o}=me(),l="local_session"===i?.type,{data:c,isLoading:d}=nG(iG.CLAUDE_CODE_GUEST_PASS,"cowork",{enabled:a&&l}),u=c?.referral_code_details,{data:m}=aG(u?.campaign??iG.CLAUDE_CODE_GUEST_PASS,{enabled:!!u}),p=m?Math.max(0,m.limit-m.used):0,f=Gn(),g=Kn(),h=f&&g.length>=3,C=Ce(e=>{if(!t)return 0;return(e.pathUuidsByConversation[t]||[]).length}),x=e.useMemo(()=>{const e=c?.referral_code_details?.referral_link;if(e)return gG(e)},[c?.referral_code_details?.referral_link]),v=e.useMemo(()=>{const e=c?.referrer_reward;if(!e)return null;const t=e.amount_minor_units/100;return n.formatNumber(t,{style:"currency",currency:e.currency,minimumFractionDigits:0,maximumFractionDigits:2})},[c?.referrer_reward,n]);return t&&a&&l?r(bG)||s||C<4?null:h?d?null:c?.eligible?p<=0?null:x?{referralLink:x,remainingPasses:p,formattedRewardAmount:v,dismiss:()=>o(bG)}:null:null:null:null}function wG({referralLink:e,remainingPasses:s,formattedRewardAmount:n,onDismiss:a}){return S("guest_passes","cowork_enabled",!1,L)?t.jsx(MG,{referralLink:yG(e),remainingPasses:s,formattedRewardAmount:n,onDismiss:a}):null}function MG({referralLink:s,remainingPasses:n,formattedRewardAmount:a,onDismiss:i}){const r=ae(),o=e.useRef(!1),l=JS(),{copyToClipboard:c,didCopy:d}=xN();e.useEffect(()=>{o.current||(o.current=!0,r.track({event_key:"claudeai.cowork_guest_pass_upsell_banner.displayed"}))},[r]);const u=()=>{c(s),r.track({event_key:"claudeai.cowork_guest_pass_upsell_banner.cta_clicked"})},m=()=>{r.track({event_key:"claudeai.cowork_guest_pass_upsell_banner.dismissed"}),i()},p=t.jsx(XS,{defaultMessage:"You have {count} Cowork invites",id:"WqA1e811jS",values:{count:n}}),f=a?t.jsx(XS,{defaultMessage:"Send a friend a free week of Cowork. If they love it and subscribe, you'll get {rewardAmount} in usage credits. <termsLink>Terms apply</termsLink>",id:"t4jUKhgBRC",values:{rewardAmount:a,termsLink:e=>t.jsx(ct,{href:"https://support.claude.com/en/articles/13456702-claude-code-guest-passes",target:"_blank",rel:"noopener noreferrer",children:e})}}):t.jsx(XS,{defaultMessage:"Send a guest pass to a friend. They'll get a free week to try Cowork. <termsLink>Terms apply</termsLink>",id:"lLYj7TbOhl",values:{termsLink:e=>t.jsx(ct,{href:"https://support.claude.com/en/articles/12875061-claude-code-guest-passes",target:"_blank",rel:"noopener noreferrer",children:e})}}),g=d?t.jsx(XS,{defaultMessage:"Copied!",id:"0oL1zz+YDx"}):t.jsx(XS,{defaultMessage:"Copy invite",id:"7EQovv70UM"}),h=l.formatMessage({defaultMessage:"Dismiss",id:"TDaF6JVgG6"});return t.jsxs("div",{className:"mx-2 mb-3 md:mx-0",children:[t.jsx("style",{children:"\n        @keyframes bannerSlideUp {\n          from {\n            opacity: 0;\n            transform: translateY(8px);\n          }\n          to {\n            opacity: 1;\n            transform: translateY(0);\n          }\n        }\n      "}),t.jsxs("div",{className:"relative flex min-h-[68px] items-center gap-3 rounded-[20px] border-0.5 border-border-200 bg-bg-000 p-5 shadow-sm",style:{animation:"bannerSlideUp 0.3s ease-out"},children:[t.jsx("div",{className:"flex-shrink-0",children:t.jsx(ge,{asset:hA,size:"sm"})}),t.jsxs("div",{className:"min-w-0 flex-1 pr-8 md:pr-0",children:[t.jsx("p",{className:"font-base text-text-100 font-bold",children:p}),t.jsx("p",{className:"font-base mt-1 max-w-sm text-text-300",children:f}),t.jsx("div",{className:"mt-3 md:hidden",children:t.jsx(rN,{variant:"primary",size:"sm",onClick:u,children:g})})]}),t.jsxs("div",{className:"hidden items-center gap-2 md:flex md:flex-shrink-0",children:[t.jsx(rN,{variant:"primary",size:"sm",onClick:u,children:g}),t.jsx(rN,{size:"sm",variant:"ghost",iconOnly:!0,icon:"X",onClick:m,"aria-label":h})]}),t.jsx("div",{className:"absolute right-4 top-4 md:hidden",children:t.jsx(rN,{size:"sm",variant:"ghost",iconOnly:!0,icon:"X",onClick:m,"aria-label":h})})]})]})}const _G="cowork_upsell_banner",jG=["artifacts","create_file","present_files"],SG=new Set([Se.Code,Se.React,Se.Html]),LG=new Set;function NG(e){return Ce(t=>{if(!e)return!1;const s=t.pathUuidsByConversation[e];return!(!s||0===s.length)&&s.some(e=>{return s=t.messageByUuid[e],"assistant"===s?.sender&&(s.content?.some(e=>{if("tool_use"!==e.type||!("name"in e))return!1;const t=e;if("artifacts"!==t.name)return!1;const s=t.input?.type;return"string"==typeof s&&SG.has(s)})??!1);var s})})}function IG(){const e=y(_G),t=Me(),s=wn(),n=Qn(),{activeOrganization:a}=v(),i=a?.capabilities.includes("externally_managed"),r=On(),o=Fn(),l=zn(),c=m(),d=Jn(),u=Iz(),p="free"===s?"free":"paid";return e&&(c||u)?!1===r&&!1===o||!0===l||!c&&i||c&&!d.includes("cowork")?{eligible:!1,variant:p}:n?t?{eligible:!1,variant:p}:{eligible:!0,variant:p}:{eligible:!1,variant:p}:{eligible:!1,variant:p}}function TG({conversationUuid:e,isStreaming:t}){const{eligible:s,variant:n}=IG(),{isDismissed:a,dismiss:i}=me(),r=xe(),o=Ce(t=>{if(!e)return!1;const s=t.pathUuidsByConversation[e]||[];return function(e,t){return"assistant"===e?.sender&&(e.content?.some(e=>{if("tool_use"!==e.type||!("name"in e))return!1;const s=e;if(!jG.includes(s.name))return!1;if("create_file"===s.name&&s.input){const e=String(s.input.file_name??s.input.name??s.input.filename??s.input.path??"");if(tZ(e))return!1;if(uZ(e))return!1;if(t&&bZ(e))return!1}return!0})??!1)}(t.messageByUuid[s.at(-1)],r)}),l=Ce(t=>{if(!e)return!1;const s=t.pathUuidsByConversation[e]||[];return function(e,t){return"human"===e?.sender&&(e.attachments?.filter(e=>!(Xz.includes(e.file_type)||lZ.includes(e.file_type)||t&&xZ.includes(e.file_type))).length??0)+Gz(e).filter(e=>!(tZ(e.file_name)||uZ(e.file_name)||t&&bZ(e.file_name))).length>=2}(t.messageByUuid[s.at(-2)],r)}),c=NG(e);return e&&s?a(_G)||t?null:o||l?{variant:n,dismiss:()=>i(_G),triggeredByCodeArtifact:c,attachmentTriggered:l}:null:null}function AG({variant:s,onDismiss:n,onAction:a,icon:i,title:r,description:o,analyticsKey:l=_G,downloadSource:c="cowork_chat_context_banner",markMultifileFamilyOnDisplay:d=!1}){const u=ae(),m=JS(),p=Yn(),{conversation:f}=J(),g=f?.id,[h,C]=e.useState(null);e.useEffect(()=>{oe().then(e=>C(e))},[]);const x=a??n,{downloadAndOpenModal:v,modal:y}=de(l,{onClose:x,downloadSource:c});e.useEffect(()=>{const e=`${g??""}:${l}`;LG.has(e)||(LG.add(e),d&&Wz("cowork_multifile","postsend"),u.track({event_key:`claudeai.${l}.displayed`,variant:s}))},[u,l,g,s,d]);const b=()=>{u.track({event_key:`claudeai.${l}.cta_clicked`,variant:s}),p.routesInApp?x():v(h)},k=()=>{u.track({event_key:`claudeai.${l}.dismissed`,variant:s}),n()},w=p.href,M=r??t.jsx(XS,{defaultMessage:"Next time, try this in Cowork",id:"cNtrijzpHG"}),_=o??t.jsx(XS,{defaultMessage:"Hand off complex tasks for Claude to handle independently. Come back to finished results.",id:"tsHe9053tk"}),j="download"===p.mode?t.jsx(XS,{defaultMessage:"Get desktop app",id:"VH2ERZ3Ola"}):"upgrade"===p.mode?t.jsx(XS,{defaultMessage:"Upgrade to try",id:"AHF8t0j/O1"}):t.jsx(XS,{defaultMessage:"Try Cowork",id:"o2vHDAOpDQ"}),S=m.formatMessage({defaultMessage:"Dismiss",id:"TDaF6JVgG6"});return t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"mx-2 mb-3 md:mx-0",children:[t.jsx("style",{children:"\n        @keyframes bannerSlideUp {\n          from {\n            opacity: 0;\n            transform: translateY(8px);\n          }\n          to {\n            opacity: 1;\n            transform: translateY(0);\n          }\n        }\n      "}),t.jsxs("div",{className:"relative flex min-h-[68px] items-center gap-3 rounded-[20px] border-0.5 border-border-200 bg-bg-000 p-5 shadow-sm",style:{animation:"bannerSlideUp 0.3s ease-out"},children:[t.jsx("div",{className:"flex-shrink-0",children:i??t.jsx(ge,{asset:CA,size:"sm"})}),t.jsxs("div",{className:"min-w-0 flex-1 pr-8 md:pr-0",children:[t.jsx("p",{className:"font-base text-text-100 font-bold",children:M}),t.jsx("p",{className:"font-base mt-1 text-text-300 max-w-sm",children:_}),t.jsx("div",{className:"mt-3 md:hidden",children:t.jsx(rN,{variant:"primary",size:"sm",href:w,onClick:b,children:j})})]}),t.jsxs("div",{className:"hidden items-center gap-2 md:flex md:flex-shrink-0",children:[t.jsx(rN,{variant:"primary",size:"sm",href:w,onClick:b,children:j}),t.jsx(rN,{size:"sm",variant:"ghost",iconOnly:!0,icon:"X",onClick:k,"aria-label":S})]}),t.jsx("div",{className:"absolute right-4 top-4 md:hidden",children:t.jsx(rN,{size:"sm",variant:"ghost",iconOnly:!0,icon:"X",onClick:k,"aria-label":S})})]})]}),y]})}const EG=e.memo(function({variant:s,connectorNames:n,onDismiss:a,onAction:i}){const r=JS(),o=e.useMemo(()=>r.formatList(n,{type:"conjunction"}),[r,n]);return t.jsx(AG,{variant:s,onDismiss:a,onAction:i,analyticsKey:"cowork_mcp_upsell_banner",downloadSource:"cowork_mcp_chat_context_banner",icon:t.jsx(ge,{asset:be,size:"sm"}),title:t.jsx(XS,{defaultMessage:"Run this in the background with Cowork",id:"ewOBk8nuZ0"}),description:t.jsx(XS,{defaultMessage:"Cowork can work on complex tasks across {connectorList} without you watching. Send it off, come back to results.",id:"wZkJgdBQ0M",values:{connectorList:o}})})});function RG(e){return Xn?.pair?.(e,{hasUserActivation:!0===navigator.userActivation?.isActive})}function DG(e){return Xn?.disconnect?.(e)}const HG=fT(e=>({pairStatus:"idle",latchNudge:t=>e(e=>e.latch?.at===t.at||"connecting"===e.pairStatus?e:{latch:t,pairStatus:"idle",pairError:void 0}),dismiss:t=>e({dismissedAt:t}),setPairState:(t,s)=>e({pairStatus:t,pairError:s}),setInlinePlacementAt:t=>e(e=>e.inlinePlacementAt===t?e:{inlinePlacementAt:t})}));function PG(){return HG(e=>void 0!==e.latch&&e.inlinePlacementAt===e.latch.at)}function UG({scopeKey:t,isAgentRunning:s,renderEnabled:n=!0}){const a=m(),i=ta(),r="ready"===i.state?i.result:void 0,o=r?.credentialNudge,{latch:l,dismissedAt:c,pairStatus:d,pairError:u}=HG(),p=HG(e=>e.latchNudge);e.useEffect(()=>{o&&t&&s&&l?.at!==o.at&&p({...o,scopeKey:t})},[o,t,s,l?.at,p]);const f=l?.partnerId,g=!!f&&(r?.installed?.[f]??!1),h=!!f&&(r?.paired?.[f]??!1),C=f?r?.displayNames?.[f]:void 0,x=f?r?.iconDataUris?.[f]:void 0,v=a&&!!l&&!!t&&l.scopeKey===t&&c!==l.at&&g&&!!C&&(!h||"connected"===d||"connecting"===d),y=ce("desktop_dusty_gondola_banner_main",v),b=e.useCallback(()=>{const e=HG.getState();if(!f||"connecting"===e.pairStatus)return;const t=RG(f);if(!t)return;e.setPairState("connecting");const s=e.latch?.at,n=()=>HG.getState().latch?.at===s;t.then(e=>{n()&&(e.paired?HG.getState().setPairState("connected"):HG.getState().setPairState("error",e.error??"internal"))}).catch(()=>{n()&&HG.getState().setPairState("error","internal")})},[f]),k=e.useCallback(()=>{l&&HG.getState().dismiss(l.at)},[l]);return n&&v&&y&&C?{partnerName:C,iconDataUri:x,paired:h,pairStatus:d,pairError:u,connect:b,dismiss:k}:null}const OG=e.memo(function({state:s,onAction:n,onDismiss:a}){const{partnerName:i,iconDataUri:r,pairStatus:o,pairError:l,connect:c,dismiss:d}=s,u="connected"===o,[m,p]=e.useState(!1);e.useEffect(()=>{p(!1)},[r]);const f=e.useCallback(()=>{c(),n?.()},[c,n]),g=e.useCallback(()=>{d(),a?.()},[d,a]),h={partnerName:i};return t.jsx("div",{className:"mx-2 mb-3 md:mx-0",children:t.jsx(ea,{icon:r&&!m?t.jsx("img",{src:r,alt:"",className:"size-8 shrink-0",onError:()=>p(!0)}):t.jsx($L,{name:"Lock",size:"md"}),action:u?void 0:t.jsx(rN,{variant:"primary",size:"sm",busy:"connecting"===o,onClick:f,children:t.jsx(hs,{id:"1goviel",dangerouslyVisiblePublicValues:h})}),onDismiss:g,"data-testid":"dusty-gondola-banner",children:t.jsxs("div",{className:"flex flex-col",children:[t.jsx("span",{className:"font-bold",children:t.jsx(hs,{id:u?"99jev3":"1qa56ut",dangerouslyVisiblePublicValues:h})}),t.jsx("span",{className:"text-secondary",children:t.jsx(hs,{id:u?"rsak2j":"1yqmwkl",dangerouslyVisiblePublicValues:h})}),"error"===o&&t.jsx("span",{className:"text-danger",children:t.jsx(hs,{id:"rateLimited"===l?"l2zw5x":"1q21zfp",dangerouslyVisiblePublicValues:h})})]})})})}),FG=/^[A-Za-z0-9-]{3,14}$/;function VG(e){return e.replace(/\s+/g,"")}const zG=fT(e=>({submitStatus:"idle",latchPrompt:t=>e(e=>e.latch?.requestId===t.requestId?e:{latch:t,submitStatus:"idle",errorReason:void 0}),setSubmitState:(t,s)=>e({submitStatus:t,errorReason:s})}));function ZG({scopeKey:t,isAgentRunning:s,renderEnabled:n=!0}){const a=m(),i=ta(),r="ready"===i.state?i.result:void 0,o=r?.codePrompt,{latch:l,submitStatus:c,errorReason:d}=zG(hT(e=>({latch:e.latch,submitStatus:e.submitStatus,errorReason:e.errorReason})));e.useEffect(()=>{if(!o||!t||l?.requestId===o.requestId)return;const e=function(e,t){if(void 0!==e)return e===t||e.endsWith(`:${t}`)}(o.sessionId,t);(!0===e||void 0===e&&s)&&zG.getState().latchPrompt({requestId:o.requestId,channel:o.channel,domain:o.domain,scopeKey:t})},[o,t,s,l?.requestId]);const u=a&&!!o&&!!l&&l.requestId===o.requestId&&!!t&&l.scopeKey===t,p=ce("desktop_dusty_gondola_code_prompt_main",u&&n),f=sa("desktop_dusty_gondola_code_prompt_main"),g=e.useCallback((e,t)=>{const s=zG.getState(),n=s.latch?.requestId;if(!n||n!==t||"submitting"===s.submitStatus)return;if(!FG.test(VG(e)))return void s.setSubmitState("idle","invalid_code");const a=function(e,t){return Xn?.submitVerificationCode?.(e,t)}(n,e);if(!a)return;s.setSubmitState("submitting");const i=()=>zG.getState().latch?.requestId!==n;a.then(e=>{if(i())return;const t=zG.getState();e?.accepted?t.setSubmitState("idle"):"invalid_code"===e?.reason?t.setSubmitState("idle","invalid_code"):"busy"===e?.reason||"not_pending"===e?.reason?t.setSubmitState("idle"):t.setSubmitState("idle","fill_failed")}).catch(()=>{i()||zG.getState().setSubmitState("idle","fill_failed")})},[]),h=e.useCallback(()=>{const e=zG.getState().latch?.requestId;e&&function(e){return Xn?.dismissVerificationCode?.(e)}(e)?.catch(()=>{})},[]),C=l?.domain,x=e.useMemo(()=>l&&C?{promptKey:l.requestId,siteDomain:C,channel:l.channel,submitStatus:c,errorReason:d,submit:g,dismiss:h}:null,[l,C,c,d,g,h]);return n&&u&&p&&f?x:null}const BG=e.memo(function({active:e}){return m()?t.jsx("div",{role:"status","aria-live":"polite",className:"sr-only",children:e&&t.jsx(hs,{id:"1l7ce4m"})}):null}),qG=e.memo(function({state:s}){const n=JS(),{promptKey:a,siteDomain:i,channel:r,submitStatus:o,errorReason:l,submit:c,dismiss:d}=s,[u,m]=e.useState("");e.useEffect(()=>{m("")},[a]);const p=e.useCallback(e=>{e.preventDefault(),c(u,a)},[c,u,a]),f=e.useCallback(e=>m(e.target.value),[]),g=e.useMemo(()=>({siteDomain:i,channel:"sms"===r||"email"===r?r:"other"}),[i,r]),h=n.formatMessage({defaultMessage:"Verification code",id:"/6gLBc+BYm"});return t.jsxs("div",{className:"font-ui mx-2 mb-3 overflow-hidden rounded-2xl border bg-surface-3 shadow-sm md:mx-0","data-testid":"dusty-gondola-code-prompt",children:[t.jsxs("div",{className:"flex items-center gap-3 border-b-0.5 px-4 py-3",children:[t.jsx($L,{name:"Lock",size:"md",className:"shrink-0 text-secondary"}),t.jsx("div",{className:"min-w-0 flex-1 truncate text-body font-bold text-primary",children:t.jsx(hs,{id:"1l7ce4m"})}),t.jsx("button",{type:"button",onClick:d,className:"-m-1 shrink-0 rounded p-1 text-muted transition-colors hover:bg-alpha-2","aria-label":n.formatMessage({defaultMessage:"Dismiss",id:"TDaF6JVgG6"}),children:t.jsx($L,{name:"X",size:"md"})})]}),t.jsxs("form",{onSubmit:p,className:"flex flex-col gap-3 px-4 py-3",children:[t.jsx("div",{className:"text-body text-secondary",children:t.jsx(hs,{id:"44lnzo",dangerouslyVisiblePublicValues:g})}),t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(pN,{value:u,onChange:f,"aria-label":h,placeholder:n.formatMessage({defaultMessage:"123456",id:"ujJTh2rta8"}),autoComplete:"one-time-code",maxLength:20,disabled:"submitting"===o,className:"max-w-56"}),t.jsx(rN,{type:"submit",variant:"primary",size:"sm",busy:"submitting"===o,disabled:0===VG(u).length,children:t.jsx(hs,{id:"7098se"})})]}),void 0!==l&&t.jsx("div",{className:"text-body text-danger",children:t.jsx(hs,{id:"invalid_code"===l?"1c4bh7y":"19r4gh2",dangerouslyVisiblePublicValues:g})}),t.jsx("div",{className:"text-caption text-muted",children:t.jsx(hs,{id:"zcee6i",dangerouslyVisiblePublicValues:g})})]})]})}),WG="cowork-long-task-mobile-banner-shown-at",$G="cowork-long-task-mobile-banner-dismissed-at";function GG(e){try{return Date.parse(localStorage.getItem(e)??"")}catch{return NaN}}function KG(e){try{localStorage.setItem(e,(new Date).toISOString())}catch{}}const YG=["control","keep_tabs","notified"];function QG({enabled:t}){const{track:s}=ae(),n=m(),a=aa(e=>e.sessionContext?.sessionId??null),i=aa(e=>e.sessionContext?.isSessionRunning??!1),r=e.useRef(null),[o,l]=e.useState(!1),[c,d]=e.useState(!1),[u,p]=e.useState(!1),[f,g]=e.useState(!1),h=e.useRef(!1),C=e.useRef(null),x=e.useRef(null),[v,y]=e.useState(!1),[b,k]=e.useState(a);b!==a&&(k(a),l(!1),d(!1),p(!1),g(!1),y(!1));const w=e.useRef(null);e.useEffect(()=>{w.current!==a&&(w.current=a,r.current=null,h.current=!1,C.current=null,x.current=null,y(function(){const e=GG($G);if(!Number.isNaN(e)&&Date.now()-e<2592e6)return!1;const t=GG(WG);return Number.isNaN(t)||Date.now()-t>=2592e5}()))},[a]);const M=t&&n&&null!==a;e.useEffect(()=>{if(o)return;if(!M)return void(r.current=null);if(!i){const e=setTimeout(()=>{r.current=null},5e3);return()=>clearTimeout(e)}r.current=r.current??Date.now();const e=3e4-(Date.now()-r.current);if(e<=0)return x.current=Date.now()-r.current,void l(!0);const t=setTimeout(()=>{x.current=Date.now()-(r.current??Date.now()),l(!0)},e);return()=>clearTimeout(t)},[M,i,o,a]);const _=M&&i&&o;e.useEffect(()=>{_&&d(!0)},[_]);const j=ia("cowork_long_task_mobile_banner_main",_||c,"control"),S=YG.includes(j)?j:"control",L=M&&c&&"control"!==S&&v&&!u,N=e.useCallback(()=>{h.current||(h.current=!0,C.current=S,KG(WG),s({event_key:"claudeai.cowork_long_task_mobile_banner.displayed",session_id:a,variant:S,elapsed_ms:x.current}))},[s,a,S]),I=e.useCallback(()=>{p(!0),KG($G),s({event_key:"claudeai.cowork_long_task_mobile_banner.dismissed",session_id:a,variant:C.current})},[s,a]),T=e.useCallback(()=>{s({event_key:"claudeai.cowork_long_task_mobile_banner.cta_clicked",session_id:a,variant:C.current}),KG($G),g(!0)},[s,a]),A=e.useCallback(()=>{g(!1),p(!0)},[]);return"control"===S||!L&&!f?null:{variant:S,qrOpen:f,markDisplayed:N,onCtaClick:T,onQrClose:A,dismiss:I}}const JG=e.memo(function({state:s}){const n=JS(),{variant:a,qrOpen:i,markDisplayed:r,onCtaClick:o,onQrClose:l,dismiss:c}=s;e.useEffect(()=>{r()},[r]);const d=e.useRef({qrOpen:i,onQrClose:l});return e.useEffect(()=>{d.current={qrOpen:i,onQrClose:l}},[i,l]),e.useEffect(()=>()=>{d.current.qrOpen&&d.current.onQrClose()},[]),t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"flex w-full items-center justify-between gap-2 text-footnote",children:[t.jsx("span",{className:"truncate",children:"keep_tabs"===a?t.jsx(XS,{defaultMessage:"Keep tabs on this task from anywhere",id:"OL351/+PCm"}):t.jsx(XS,{defaultMessage:"Get notified on your phone when this task is done",id:"zlQKJhF6kV"})}),t.jsxs("span",{className:"flex shrink-0 items-center gap-2",children:[t.jsx(rN,{size:"sm",variant:"secondary",onClick:o,children:"keep_tabs"===a?t.jsx(XS,{defaultMessage:"Get the mobile app",id:"nbrenyYak/"}):t.jsx(XS,{defaultMessage:"Download app",id:"UYU6ckzBTY"})}),t.jsx(rN,{size:"xs",variant:"ghost",iconOnly:!0,icon:"X","aria-label":n.formatMessage({defaultMessage:"Dismiss",id:"TDaF6JVgG6"}),onClick:c})]})]}),t.jsx(na,{isOpen:i,onClose:l})]})}),XG=e.createContext(!1);function eK(){return e.useContext(XG)}function tK(){const e=y("cowork_mini_compose"),t=ra();return e&&(t.considerEnabledForNonUI??!1)}const sK=3;function nK(e){return e.reduce((e,t)=>Math.max(e,t.raisedSeq),0)+1}let aK=1;const iK=fT(e=>({windows:[],openWindow:(t,s,n,a)=>{let i=null;return e(e=>{let r=e.windows;const o=a?r.find(e=>e.sessionId===a):void 0;if(o)return i=o.slot,{windows:r.map(e=>e.id===o.id?{...e,minimized:!1,raisedSeq:nK(r)}:e)};if(r.length>=3){const t=r.find(e=>void 0!==e.sessionId);if(!t)return e;r=r.filter(e=>e.id!==t.id)}const l=new Set(r.map(e=>e.slot)),c=[...Array(3).keys()].find(e=>!l.has(e));return void 0===c?e:(i=c,{windows:[...r,{id:aK++,slot:c,minimized:!1,raisedSeq:nK(r),source:t,openedTracked:!1,initialState:s,branchContext:n,sessionId:a}]})}),i},closeWindow:t=>e(e=>({windows:e.windows.filter(e=>e.id!==t)})),setMinimized:(t,s)=>e(e=>({windows:e.windows.map(n=>n.id===t?{...n,minimized:s,raisedSeq:s?n.raisedSeq:nK(e.windows)}:n)})),markOpenedTracked:t=>e(e=>({windows:e.windows.map(e=>e.id===t?{...e,openedTracked:!0}:e)})),consumeInitialState:t=>e(e=>({windows:e.windows.map(e=>e.id===t&&void 0!==e.initialState?{...e,initialState:void 0}:e)})),setSessionId:(t,s)=>e(e=>({windows:e.windows.map(e=>e.id===t?{...e,sessionId:s}:e)}))}));function rK(){return iK(e=>e.windows.some(e=>!e.minimized))}function oK(e,t=!1){return t?`cowork-compose-branch-${e}`:`cowork-compose-${e}`}function lK(e,t,s){const n=iK.getState();if(null!==n.openWindow(e,t,void 0,s))return!0;if(void 0!==s)return!1;const a=iK.getState().windows.at(-1);return a&&n.setMinimized(a.id,!1),!0}let cK,dK=null;function uK(e){dK=e}function mK(e,t){const{windows:s,setMinimized:n}=iK.getState(),a=s.filter(e=>!e.minimized);if(a.length>0)a.forEach(t=>{(dK?.has(t.slot)??1)&&e?.(t),n(t.id,!0)});else{if(s.length>0){const e=s.reduce((e,t)=>t.raisedSeq>e.raisedSeq?t:e);return void n(e.id,!1)}lK("shortcut_toggle",t)}}function pK(t,s){const[n,a]=e.useState([]),[i,r]=e.useState(t??!1),o=e.useCallback(async()=>{if(oa?.getAllArtifacts)try{const e=await oa.getAllArtifacts();a(s?e.filter(e=>!la(e.createdBySessionType)):e)}catch{}finally{r(!1)}else r(!1)},[s]);return e.useEffect(()=>{if(!t)return void r(!1);r(!0),o();const e=oa?.onOnArtifactsChanged?.(()=>{o()});return()=>e?.()},[t,o]),{artifacts:n,isLoading:i}}function fK(){const[t,s]=e.useState(cK??!1);return e.useEffect(()=>{let e=!1;return Promise.resolve(oa?.isSharingEnabled?.()??!1).then(t=>{cK=t,e||s(t)}).catch(()=>{e||s(!1)}),()=>{e=!0}},[]),{sharingEnabled:t}}function gK(e){return"stream_event"===e.type&&"event"in e}function hK(e){return"message_start"===e.type}function CK(e){return"content_block_delta"===e.type&&"delta"in e&&"text_delta"===e.delta.type}function xK(e){return"content_block_delta"===e.type&&"delta"in e&&"input_json_delta"===e.delta.type}function vK(e){return"content_block_start"===e.type&&"content_block"in e&&"tool_use"===e.content_block.type}function yK(e){return"content_block_start"===e.type&&"content_block"in e&&"thinking"===e.content_block.type}function bK(e){return"content_block_delta"===e.type&&"delta"in e&&"thinking_delta"===e.delta.type?e.delta.thinking:null}function kK(){let e={};return t=>{if("message_start"!==t?.type&&"message_stop"!==t?.type)if("content_block_start"!==t?.type&&"content_block_stop"!==t?.type||void 0===t.index){if("content_block_delta"===t?.type&&void 0!==t.index&&"text_delta"===t.delta?.type&&"string"==typeof t.delta.text){const s=e[t.index]??"";return e[t.index]=t.delta.text,t.delta.text.startsWith(s)?t.delta.text.slice(s.length):t.delta.text}}else delete e[t.index];else e={}}}async function wK(e){const t=await crypto.subtle.digest("SHA-256",e);return Array.from(new Uint8Array(t),e=>e.toString(16).padStart(2,"0")).join("")}async function MK(e){return`/tmp/claude-plugin-tool-call/${(await wK((new TextEncoder).encode(e))).slice(0,16)}`}function _K(e,t){return`${e}/inputs/${t.slice(ma.length)}`}const jK=new Map;function SK(e,t,s){const n=ca(e),a=jK.get(n),i=a?.get(t);void 0!==a&&void 0!==i&&(a.delete(t),0===a.size&&jK.delete(n),clearTimeout(i.timer),i.resolve(s))}function LK(){return`${da}${ua()}`}const NK=["plugin_tool_call is disabled","Unsupported control request subtype","plugin_tool_call is not supported in this build"];async function IK(e,t,s){const n=new Date(Date.now()+s.expiresInMs).toISOString(),a=function(e,t,s){const n=ca(e);return new Promise(e=>{let a=jK.get(n);void 0===a&&(a=new Map,jK.set(n,a));const i=setTimeout(()=>{const s=jK.get(n);s?.delete(t),0===s?.size&&jK.delete(n),e({kind:"deadline"})},s);a.set(t,{resolve:e,timer:i})})}(t,s.requestId,s.expiresInMs+3e4);try{await pa(e.rawFetch,e.orgUuid,t,[{payload:{type:"control_request",request_id:s.requestId,request:{subtype:"plugin_tool_call",expires_at:n,...void 0!==s.timeoutMs&&{timeout_ms:s.timeoutMs},plugin:s.plugin,tool:s.tool,args:s.args,input_files:s.inputFiles,output_files:s.outputFiles}}}],{sign:e.signClientEvent,makeDeviceAttestationHeader:fa(e,t)})}catch(i){k.warn(w.LOCAL_SESSION,"plugin_tool_call post failed",i),SK(t,s.requestId,{kind:"dispatch_error",error:"post-failed"})}return a}const TK=new Map,AK=new Map;function EK(e,t){if(!DK(e,t))return;const s=AK.get(ca(e));if(s)for(const n of Array.from(s))try{n(t)}catch{}}function RK(e,t){DK(e,t)}function DK(e,t){const s=ca(e);let n=TK.get(s);return void 0===n&&(n=new Map,TK.set(s,n)),n.get(t.lanePath)!==t.hash&&(n.set(t.lanePath,t.hash),!0)}const HK=new Map;function PK(e){return TK.get(ca(e))??HK}function UK(e,t){const s=ca(e);let n=AK.get(s);return void 0===n&&(n=new Set,AK.set(s,n)),n.add(t),()=>{n.delete(t),0===n.size&&AK.delete(s)}}function OK(e){return null!=e}function FK(){return{events:[],seenSeqs:new Set,headSeq:0,hasRewindMarker:!1,hasOlder:void 0,olderCursor:void 0,session:null,streaming:null,connection:"disconnected",error:null,clearedErrorAtSeq:0,inFlightRespondToolUseIds:new Set,historyPrependedCount:0,isLoadingOlder:!1,refCount:0,evictTimer:null}}function VK(e,t,s){const n=e.logs[t]??FK();return{...e.logs,[t]:{...n,...s}}}function zK(e,t){const s=e??xa;if(!t||0===t.length)return 0===s.length?t:s;const n=new Set(s.map(ha)),a=t.filter(e=>!n.has(ha(e)));return 0===a.length&&s.length===t.length?t:0===a.length?s:[...s,...a]}const ZK=fT((e,t)=>({logs:{},acquire(s){const n=t().logs[s]??FK();n.evictTimer&&clearTimeout(n.evictTimer),e(e=>({logs:VK(e,s,{refCount:n.refCount+1,evictTimer:null})}))},release(s){const n=t().logs[s];if(!n)return;const a=Math.max(0,n.refCount-1);if(a>0)return void e(e=>({logs:VK(e,s,{refCount:a})}));const i=setTimeout(()=>t().evict(s),6e4);e(e=>({logs:VK(e,s,{refCount:0,evictTimer:i})}))},ingest(s,n){if(0===n.length)return;const a=t().logs[s]?.seenSeqs;let i,r;for(const e of n)"synced_file_changed"===e.kind?void 0!==e.seq&&a?.has(e.seq)||(i??=[]).push(e):"plugin_tool_response"===e.kind&&(void 0!==e.seq&&a?.has(e.seq)||(r??=[]).push(e));e(e=>{const t=e.logs[s]??FK(),a=[],i=[];let r,o,l,c=!1,d=t.headSeq,u=!0,m=!1,p=!1,f=t.headSeq;for(const s of n){if("message"===s.kind&&"system"===s.payload.type&&"thinking_tokens"===s.payload.subtype&&!s.payload.parent_tool_use_id){const e=s.payload.estimated_tokens;"number"==typeof e&&Number.isFinite(e)&&e>0&&(void 0===s.seq?l=e:s.seq>f&&(l=e,f=s.seq))}if("stream_signal"!==s.kind&&void 0!==s.seq&&!t.seenSeqs.has(s.seq))if(s.seq>d&&(d=s.seq),Ca(s))i.push(s.seq);else{if("conversation_rewound"===s.kind&&(c=!0,s.seq>t.headSeq&&(m=!0)),s.seq<=t.headSeq&&(u=!1),t.streaming&&"message"===s.kind&&"assistant"===s.payload.type&&s.payload.message.id===t.streaming.messageId&&(null!==s.payload.message.stop_reason||s.payload.message.content.some(e=>"tool_use"===e.type)?m=!0:s.payload.message.content.length>t.streaming.content.length&&(r=s.payload.message.content)),"message"===s.kind&&"result"===s.payload.type&&s.seq>t.headSeq&&(p=!0),"message"===s.kind&&"system"===s.payload.type&&"init"===s.payload.subtype&&!s.payload.parent_tool_use_id){const e=s.payload;e.permissionMode&&(void 0===t.session?.permissionMode&&(o={...o,permissionMode:e.permissionMode}),void 0===t.session?.confirmedPermissionMode&&(o={...o,confirmedPermissionMode:e.permissionMode})),e.model&&void 0===t.session?.model&&(o={...o,model:e.model})}a.push(s)}}if(0===a.length&&0===i.length&&(void 0===l||!t.streaming))return e;const g=new Set(t.seenSeqs);for(const s of a)g.add(s.seq);for(const s of i)g.add(s);let h;0===a.length?h=t.events:u?(a.sort((e,t)=>(e.seq??0)-(t.seq??0)),h=0===t.events.length?a:[...t.events,...a]):h=[...t.events,...a].sort((e,t)=>(e.seq??0)-(t.seq??0));const C=t.hasRewindMarker||c;if(C){let e=h;const t=new Map;for(const n of e)"rewind_requested"===n.kind&&t.set(n.requestId,{target:n.targetMessageUuid,requestSeq:n.seq});const s=new Set;for(const n of e){if("conversation_rewound"!==n.kind||void 0===n.seq)continue;if(s.has(n.requestId))continue;s.add(n.requestId);const a=n.seq;if(void 0!==n.targetSeq){const t=n.targetSeq,s=e.filter(e=>"conversation_rewound"===e.kind||"rewind_requested"===e.kind||"mcp_auth_required"===e.kind||void 0===e.seq||e.seq<t||e.seq>=a);s.length!==e.length&&(e=s);continue}const i=t.get(n.requestId);if(void 0===i)continue;if(void 0===i.requestSeq||e.some(e=>"message"===e.kind&&!0===e.clientOrigin&&void 0!==e.seq&&e.seq>i.requestSeq&&e.seq<a))continue;const r=e.find(e=>"message"===e.kind&&void 0!==e.seq&&e.seq<a&&e.payload.uuid===i.target);if(void 0===r?.seq)continue;const o=r.seq;e=e.map(e=>e===n?{...n,targetSeq:o}:e).filter(e=>"conversation_rewound"===e.kind||"rewind_requested"===e.kind||"mcp_auth_required"===e.kind||void 0===e.seq||e.seq<o||e.seq>=a)}h=e}let x;x=m||p?null:r&&t.streaming?{...t.streaming,content:r,lastBlockIndex:r.length-1,prevTextByIndex:r.reduce((e,t,s)=>"text"===t.type?{...e,[s]:t.text}:e,t.streaming.prevTextByIndex)}:t.streaming,void 0!==l&&x&&(x={...x,thinkingTokens:l});let v=t.session;return o&&v&&(v={...v,...o}),p&&t.headSeq>0&&v?.pendingToolPermission&&(v={...v,pendingToolPermission:void 0}),{logs:{...e.logs,[s]:{...t,events:h,seenSeqs:g,headSeq:d,hasRewindMarker:C,streaming:x,inFlightRespondToolUseIds:p?new Set:t.inFlightRespondToolUseIds,...v!==t.session&&{session:v}}}}});for(const e of i??[])EK(s,{lanePath:e.path,hash:e.hash});for(const e of r??[])SK(s,e.requestId,e.outcome)},setHasOlder(t,s,n,a=0){e(e=>({logs:VK(e,t,{hasOlder:s,olderCursor:n,historyPrependedCount:(e.logs[t]?.historyPrependedCount??0)+a})}))},setSession(t,s){e(e=>{const n=e.logs[t]?.session,a=s?{...s,permissionMode:n&&n.permissionMode!==n.confirmedPermissionMode?n.permissionMode:s.permissionMode??n?.permissionMode,confirmedPermissionMode:s.permissionMode??n?.confirmedPermissionMode,effort:n&&n.effort!==n.confirmedEffort?n.effort:s.effort??n?.effort,confirmedEffort:s.effort??n?.confirmedEffort,model:n?.model??s.model,persistedUserSelectedFolders:zK(s.persistedUserSelectedFolders,n?.persistedUserSelectedFolders)}:s;return{logs:VK(e,t,{session:a})}})},applyStreamFrame(t,s){e(e=>{const n=e.logs[t]??FK(),a=function(e,t){if(hK(t))return e?.messageId===t.message.id?e:{messageId:t.message.id,model:t.message.model,content:[],activity:"thinking",toolName:void 0,thinkingTokens:void 0,prevTextByIndex:{},lastBlockIndex:void 0};if("message_stop"===t.type)return e;if(null===e)return e;const s="index"in t?t.index:void 0;if(yK(t))return{...e,content:[...e.content,{type:"thinking",thinking:""}],activity:"thinking",toolName:void 0,lastBlockIndex:s};if(vK(t))return{...e,content:[...e.content,{type:"tool_use",id:t.content_block.id,name:t.content_block.name,input:{}}],activity:"tool_use",toolName:t.content_block.name,lastBlockIndex:s};if(CK(t)){const s=t.delta.text,n=e.prevTextByIndex[t.index]??"",a=s.startsWith(n)?s.slice(n.length):s,i=e.content[e.content.length-1],r=e.lastBlockIndex===t.index&&"text"===i?.type?[...e.content.slice(0,-1),{type:"text",text:i.text+a}]:[...e.content,{type:"text",text:a}];return{...e,content:r,activity:"writing",toolName:void 0,prevTextByIndex:{...e.prevTextByIndex,[t.index]:s},lastBlockIndex:t.index}}if(null!==bK(t)){const n=bK(t)??"",a=e.content[e.content.length-1],i=e.lastBlockIndex===s&&"thinking"===a?.type?[...e.content.slice(0,-1),{type:"thinking",thinking:a.thinking+n}]:[...e.content,{type:"thinking",thinking:n}];return{...e,content:i,lastBlockIndex:s}}return xK(t),e}(n.streaming,s);return a===n.streaming?e:{logs:{...e.logs,[t]:{...n,streaming:a}}}})},setConnection(t,s){e(e=>{const n=e.logs[t];return n?.connection===s?e:{logs:VK(e,t,{connection:s})}})},setError(t,s){e(e=>({logs:VK(e,t,{error:s,...null===s&&{clearedErrorAtSeq:e.logs[t]?.headSeq??0}})}))},clearTransportError(t){e(e=>({logs:VK(e,t,{error:null})}))},patchSession(t,s){e(e=>{const n=e.logs[t]?.session;return n?{logs:VK(e,t,{session:{...n,...s}})}:e})},appendPersistedFolders(s,n){const a=t().logs[s]?.session;if(!a||0===n.length)return[];const i=a.persistedUserSelectedFolders??[],r=new Set(i.map(ha)),o=n.filter(e=>!r.has(ha(e)));return 0===o.length?[]:(e(e=>({logs:VK(e,s,{session:{...a,persistedUserSelectedFolders:[...i,...o]}})})),o)},removePersistedFolders(t,s){e(e=>{const n=e.logs[t]?.session,a=n?.persistedUserSelectedFolders;if(!n||!a||0===s.length)return e;const i=new Set(s.map(ha)),r=a.filter(e=>!i.has(ha(e)));return r.length===a.length?e:{logs:VK(e,t,{session:{...n,persistedUserSelectedFolders:r}})}})},setLoadingOlder(t,s){e(e=>e.logs[t]?.isLoadingOlder===s?e:{logs:VK(e,t,{isLoadingOlder:s})})},markRespondInFlight(t,s){e(e=>{const n=e.logs[t]??FK();if(n.inFlightRespondToolUseIds.has(s))return e;const a=new Set(n.inFlightRespondToolUseIds);return a.add(s),{logs:VK(e,t,{inFlightRespondToolUseIds:a})}})},clearRespondInFlight(t,s){e(e=>{const n=e.logs[t];if(!n?.inFlightRespondToolUseIds.has(s))return e;const a=new Set(n.inFlightRespondToolUseIds);return a.delete(s),{logs:VK(e,t,{inFlightRespondToolUseIds:a})}})},evict(s){const n=t().logs[s];!n||n.refCount>0||(n.evictTimer&&clearTimeout(n.evictTimer),e(e=>{const{[s]:t,...n}=e.logs;return{logs:n}}))}})),BK=Object.freeze(FK());function qK(e){return ZK(t=>t.logs[e]??BK)}function WK(e){return ZK(t=>e&&ga(e)?t.logs[e]?.session?.effort:void 0)}class $K extends Error{requestId;constructor(e){super("rewind confirmation timed out"),this.name="RewindConfirmTimeoutError",this.requestId=e}}function GK(e,t,s=15e3){const n=()=>ZK.getState().logs[e]?.events.find(e=>"conversation_rewound"===e.kind&&e.requestId===t&&void 0!==e.targetSeq),a=n();return a?Promise.resolve(a):new Promise((a,i)=>{const r=ZK.subscribe((t,s)=>{if(t.logs[e]?.events===s.logs[e]?.events)return;const i=n();i&&(clearTimeout(o),r(),a(i))}),o=setTimeout(()=>{r(),i(new $K(t))},s)})}function KK(e,t){const s=ZK.getState().logs[e]?.events.find(e=>"message"===e.kind&&e.payload.uuid===t);if("message"!==s?.kind||!0!==s.clientOrigin||"user"!==s.payload.type)return;const n=s.payload.message.content;return"string"==typeof n?n:n.filter(e=>"text"===e.type).map(e=>e.text).join("\n")}function YK(e){return ZK(t=>!!e&&(t.logs[e]?.session?.isArchived??!1))}const QK=fT((e,t)=>({sessionId:null,isSessionActive:!1,hasCreatedFiles:!1,hasUploadedFiles:!1,hasCreatedDiagram:!1,showUnsupervisedBanner:!1,hasUsedSkill:!1,remoteNoticeBySession:{},publish:({sessionId:s,isSessionActive:n,hasCreatedFiles:a,hasUploadedFiles:i,hasCreatedDiagram:r,showUnsupervisedBanner:o})=>{const l=t();l.sessionId===s&&l.isSessionActive===n&&l.hasCreatedFiles===a&&l.hasUploadedFiles===i&&l.hasCreatedDiagram===r&&l.showUnsupervisedBanner===o||e({sessionId:s,isSessionActive:n,hasCreatedFiles:a,hasUploadedFiles:i,hasCreatedDiagram:r,showUnsupervisedBanner:o,...l.sessionId!==s&&{hasUsedSkill:!1}})},markSkillUsed:()=>{t().hasUsedSkill||e({hasUsedSkill:!0})},setRemoteNoticeVisible:(s,n)=>{const a=t().remoteNoticeBySession;if(a[s]===n)return;const i={...a,[s]:n},r=Object.keys(i);r.length>20&&r[0]!==s&&delete i[r[0]],e({remoteNoticeBySession:i})},resetRemoteNotice:s=>{const n=t().remoteNoticeBySession;if(!(s in n))return;const a={...n};delete a[s],e({remoteNoticeBySession:a})},clear:s=>{t().sessionId===s&&e({sessionId:null,isSessionActive:!1,hasCreatedFiles:!1,hasUploadedFiles:!1,hasCreatedDiagram:!1,showUnsupervisedBanner:!1,hasUsedSkill:!1})}})),JK=t.jsx(XS,{defaultMessage:"Tip",id:"4j1TGZubAJ"}),XK=tL({connectSlack:{defaultMessage:"Connect Slack so you can work with my messages, then summarize my unread threads.",id:"jYPyfRxOQT"},connectSlackNewWindow:{defaultMessage:"Connect Slack, then catch me up: summarize my unread threads and DMs from the last 24 hours, group them by channel, and flag anything that needs a reply from me today. If Slack isn't connected yet, walk me through it first.",id:"e2bEdT/f9z"},connectGmail:{defaultMessage:"Connect Gmail so you can help with my inbox, starting with my unread emails.",id:"kvtBJXctuE"},connectGmailNewWindow:{defaultMessage:"Connect Gmail and triage my inbox: group unread mail by urgency, give me a one-line summary of each, and draft replies for anything that needs a response today. Check with me before sending anything. If Gmail isn't connected, help me connect it first.",id:"uOEUMb+lbE"},connectGdrive:{defaultMessage:"Connect Google Drive so you can work with my files.",id:"raRXSt+7Q5"},connectGdriveNewWindow:{defaultMessage:"Connect Google Drive, then show me what's there: list my most recently edited docs, tell me which ones look unfinished or have open comments, and suggest what to tackle first. If Drive isn't connected, help me connect it first.",id:"M9p4JX8EtT"},connectCore:{defaultMessage:"Connect Slack, Gmail, and Google Drive so you can work with my data.",id:"3ruNq9BmSl"},connectCoreNewWindow:{defaultMessage:"Help me connect Slack, Gmail, and Google Drive so you can work across them. Once they're connected, give me a quick combined snapshot: unread messages that need a reply, urgent email, and docs I've touched this week.",id:"oPWOlciCdO"},fileFormats:{defaultMessage:"Can you turn this into a formatted file? I'd like it as a doc, spreadsheet, slide deck, or PDF.",id:"Msi6cNuY7m"},fileEdit:{defaultMessage:"Edit the file you just made instead of creating a new one. Here's what I'd change: ",id:"n+G/QqQCSJ"},slideDeck:{defaultMessage:"Here's my source material and a brief. Build a slide deck, then refine it with me: ",id:"h5S+zVbpPD"},slideDeckNewWindow:{defaultMessage:"Build a slide deck. Ask me for the source material and a one-line brief (audience, length, tone), then draft a slide-by-slide outline with speaker notes. Create it as a file once I've reviewed the outline.",id:"dCa522ci/6"},fileUploadInsights:{defaultMessage:"I'll attach a few files. Read them all and pull out the key insights I need.",id:"3UVW0c7wtB"},fileUploadInsightsNewWindow:{defaultMessage:"I'll attach a few files. Read them all and pull out the key insights: themes, decisions, action items, anything that needs my attention. Organize it as a short brief I can share.",id:"5KE7Y/O6iv"},scheduledTasks:{defaultMessage:"Can you create a scheduled task for this work?",id:"4i1W4AVSgu"},scheduledTasksNewWindow:{defaultMessage:"Set up a scheduled task that runs on its own. Ask me what I want it to do and how often, then propose the schedule and show me a sample run before it goes live.",id:"1R7mjn9mAY"},liveArtifacts:{defaultMessage:"Build a live dashboard from my connected services that stays up to date.",id:"jIFe22IH1D"},liveArtifactsNewWindow:{defaultMessage:"Build me a live dashboard that stays up to date. First ask what I want to track: calendar, inbox, a project, or a topic. Then propose a layout and which connected services you'll pull from. Show me a working version before we set it to refresh on a schedule.",id:"re34TdNPwp"},skills:{defaultMessage:"Could you turn this workflow into a skill? What other skills do you have?",id:"1I51BfuqP9"},skillsNewWindow:{defaultMessage:"Help me create a skill: a reusable set of instructions you'll follow the same way every time. Ask me what task I want to capture, draft the skill, then test it with me on one example.",id:"EvSVRspdrG"},visualize:{defaultMessage:"Visualize this as a diagram: ",id:"/io+T/fDAs"},scheduleMore:{defaultMessage:"What other recurring tasks could you run on a schedule for me?",id:"lWsBnYHAB2"},scheduleMoreNewWindow:{defaultMessage:"Look at my connected calendar, inbox, and recent tasks and suggest 3\u20135 recurring tasks you could run for me on a schedule, like a morning brief, weekly review, or inbox triage. For each one, tell me what it would do and when it would run. I'll pick which to set up.",id:"SfX9a0+yfZ"},parallelTasks:{defaultMessage:"I've got a few things going. Can you start these as parallel tasks?",id:"nYz3uMPsuU"},parallelTasksNewWindow:{defaultMessage:"I want to run a few things at once. Ask me what's on my plate, then split it into separate tasks you can work on in parallel, one window each. For each, confirm the goal and what you need from me before you start.",id:"EeC9Bj6Poe"},planFirst:{defaultMessage:"Before you start, share a plan of the steps you'll take so I can review it.",id:"wA5jPLskJe"},selfReview:{defaultMessage:"Review your own work and flag anything you'd fix before I ship this.",id:"IjwdUnNvpH"}}),eY={"connect-slack":{body:t.jsx(XS,{defaultMessage:"Buried in Slack? Connect it so Claude can catch you up.",id:"TOTqgQAJA3"}),ctaPrompt:XK.connectSlack,ctaNewWindowPrompt:XK.connectSlackNewWindow,eligibility:"no-slack-connector"},"connect-gmail":{body:t.jsx(XS,{defaultMessage:"Let Claude draft your email replies. Connect Gmail to start.",id:"z7+gSoH9DJ"}),ctaPrompt:XK.connectGmail,ctaNewWindowPrompt:XK.connectGmailNewWindow,eligibility:"no-gmail-connector"},"connect-gdrive":{body:t.jsx(XS,{defaultMessage:"Your files live in Google Drive. Connect it so Claude can use them.",id:"bXQuTA8UW9"}),ctaPrompt:XK.connectGdrive,ctaNewWindowPrompt:XK.connectGdriveNewWindow,eligibility:"no-gdrive-connector"},"connect-core":{body:t.jsx(XS,{defaultMessage:"Connect Slack, Gmail, and Google Drive so Claude can use your data.",id:"S8eB/Imk4P"}),ctaPrompt:XK.connectCore,ctaNewWindowPrompt:XK.connectCoreNewWindow,eligibility:"no-core-connectors"},"file-formats":{body:t.jsx(XS,{defaultMessage:"Ask for any file format: docs, spreadsheets, slides, PDFs, and more.",id:"58f1SIdpGu"}),ctaPrompt:XK.fileFormats,eligibility:"no-files-created"},"file-edit":{body:t.jsx(XS,{defaultMessage:"Need changes? Ask Claude to edit the file instead of making a new one.",id:"dNA5vEEsiY"}),ctaPrompt:XK.fileEdit,eligibility:"created-files"},"slide-deck":{body:t.jsx(XS,{defaultMessage:"Building a slide deck? Give Claude your source material and a brief.",id:"g9j19AAhH0"}),ctaPrompt:XK.slideDeck,ctaNewWindowPrompt:XK.slideDeckNewWindow,eligibility:"no-files-created"},"file-upload-insights":{body:t.jsx(XS,{defaultMessage:"Got a stack of PDFs or contracts? Claude pulls out the key insights.",id:"cTPqD8sOBE"}),ctaPrompt:XK.fileUploadInsights,ctaNewWindowPrompt:XK.fileUploadInsightsNewWindow,eligibility:"no-files-uploaded"},projects:{body:t.jsx(XS,{defaultMessage:"Make a project so Claude reuses the same context across tasks.",id:"kMnNDCXLER"}),ctaLink:{href:"/projects",label:t.jsx(XS,{defaultMessage:"Create project",id:"VUN1K7kSzC"})},eligibility:"no-projects"},"scheduled-tasks":{body:t.jsx(XS,{defaultMessage:"Set up a scheduled task and Claude will run it on its own.",id:"R6ygVAbxvc"}),ctaPrompt:XK.scheduledTasks,ctaNewWindowPrompt:XK.scheduledTasksNewWindow,eligibility:"no-scheduled-tasks"},"live-artifacts":{body:t.jsx(XS,{defaultMessage:"Ask Claude to build a live dashboard that stays up to date.",id:"b2MpmgxW9i"}),ctaPrompt:XK.liveArtifacts,ctaNewWindowPrompt:XK.liveArtifactsNewWindow,eligibility:"no-live-artifacts",platforms:["desktop"]},skills:{body:t.jsx(XS,{defaultMessage:"Skills teach Claude to do a task exactly the way you want, every time.",id:"MK/UUklPeE"}),ctaPrompt:XK.skills,ctaNewWindowPrompt:XK.skillsNewWindow,eligibility:"no-skills-used"},notifications:{body:t.jsx(XS,{defaultMessage:"Turn on notifications so you know when tasks finish.",id:"NCvd0UxOxx"}),ctaAction:{kind:"enable-notifications",label:t.jsx(XS,{defaultMessage:"Turn on",id:"npvxprjeDK"})},eligibility:"notifications-off",platforms:["desktop"]},"new-user-details":{body:t.jsx(XS,{defaultMessage:"For a better first pass, add details like format and audience upfront.",id:"+8rK+ibc/t"}),eligibility:"new-account"},visualize:{body:t.jsx(XS,{defaultMessage:"Want more visuals? Try phrases like \u201cvisualize this\u201d or \u201cshow me.\u201d",id:"jis7rpTJ9M"}),ctaPrompt:XK.visualize,eligibility:"created-diagram"},"schedule-more":{body:t.jsx(XS,{defaultMessage:"Schedule more routines like this one\u2014just ask Claude for ideas.",id:"+zKTez1SVf"}),ctaPrompt:XK.scheduleMore,ctaNewWindowPrompt:XK.scheduleMoreNewWindow,eligibility:"has-scheduled-tasks"},"parallel-tasks":{body:t.jsx(XS,{defaultMessage:"Lots to do? Start multiple tasks and Claude can run them in parallel.",id:"7l5xNW4uA3"}),ctaPrompt:XK.parallelTasks,ctaNewWindowPrompt:XK.parallelTasksNewWindow,eligibility:"always",fallback:!0},"plan-first":{body:t.jsx(XS,{defaultMessage:"Want to see the steps first? Ask Claude for a plan up front.",id:"XmVUxHGrCe"}),ctaPrompt:XK.planFirst,eligibility:"always",fallback:!0},"self-review":{body:t.jsx(XS,{defaultMessage:"Ask Claude to review its own work before you ship it.",id:"PCCOtmZfBl"}),ctaPrompt:XK.selfReview,eligibility:"always",fallback:!0},"keep-app-open":{body:t.jsx(XS,{defaultMessage:"Cowork runs on your computer, so keep it on while tasks are running.",id:"2bVFaYDH4y"}),eligibility:"local-session",platforms:["desktop"],fallback:!0}},tY=Object.keys(eY);function sY(e,t){return!e?.platforms||e.platforms.includes(t)}const nY=AL({tipId:IL(),eligibility:IL().optional().catch(void 0),maxLifetimeShows:EL().int().positive().optional().catch(void 0),bodyText:IL().optional().catch(void 0),ctaPrompt:IL().optional().catch(void 0)}).nullable().catch(null),aY=AL({enabled:RL(),sessionCooldown:EL().int().positive().optional().catch(void 0),selection:TL(["random","priority"]).optional().catch(void 0),newWindowTipIds:NL(IL()).optional().catch(void 0),tips:NL(nY).optional().transform(e=>e?.filter(e=>null!==e))}),iY={enabled:!1};const rY="cowork-loading-tip-shown-sessions",oY="cowork-loading-tip-cooldown",lY={sessionsSinceLastShow:0,lastCountedSessionId:null,lastShownSessionId:null};const cY=new Map;const dY="https://mcp.slack.com";function uY(e,t){return"214a926a-70a5-45ec-8cf1-e4a29e006742"===e||t===dY||!!t?.startsWith(`${dY}/`)}function mY(){const e=Ia(e=>e.remoteStreamFirstPassComplete),t=Ia(e=>e.remoteStreamErrored),s=Ia(e=>e.remoteBootstrapShed);return e&&!t&&!s}function pY(e){return Ia(t=>!!e&&(t.remoteConnectionStates[e]?.isConnecting??!1))}function fY(e){const t=xe(),s=Sa(),n=t&&!s,a=De(He.SLACK),i=De(He.GMAIL),r=De(He.GDRIVE),o=La(He.GMAIL),l=La(He.GDRIVE),c=function(e){const{activeOrganization:t}=v(),s=t?.uuid,{data:n,isFetched:a,isError:i}=B(`/api/organizations/${s}/sync/slack/auth`,{queryKey:["sync_slack_auth_status",{orgUuid:s}],enabled:e&&!!s});return e&&s?i?{connected:!0,settled:!0}:{connected:!!n?.is_authenticated,settled:a}:{connected:!1,settled:!1}}(e&&a),d=function(){const e=mY(),t=Ia(e=>{let t="absent";for(const[s,n]of Object.entries(e.remoteServers)){if(!uY(s,n?.url))continue;const a=e.remoteConnectionStates[s];if(a?.isConnected)return"connected";a?.isConnecting?t="connecting":"absent"===t&&(t="disconnected")}return t});return{connected:"connected"===t,orgInstalled:"absent"!==t,settled:e&&"connecting"!==t}}(),u=d.connected||a&&c.connected,m=d.settled&&(!a||c.settled),p=mY(),f=pY(o.server_uuid),g=pY(l.server_uuid),h=p&&(!i||o.isFetched&&!f)&&(!r||l.isFetched&&!g),C=h&&m;if(!e){const e={isTargeted:!1};return{"no-slack-connector":e,"no-gmail-connector":e,"no-gdrive-connector":e,"no-core-connectors":e}}const x={isTargeted:!1,isLoading:!0},y=!n||d.orgInstalled||a,b=m&&!u&&y,k=i&&!o.isAuthenticated,w=r&&!l.isAuthenticated,M=Number(b)+Number(k)+Number(w);return{"no-slack-connector":C?{isTargeted:b&&M<=2}:x,"no-gmail-connector":h?{isTargeted:k&&M<=2}:x,"no-gdrive-connector":h?{isTargeted:w&&M<=2}:x,"no-core-connectors":C?{isTargeted:3===M}:x}}function gY(e){const t=as(),{activeOrganization:s}=v(),n=s?.uuid,a=QK(e=>e.sessionId),i=null!==a&&ga(a)?a:null,r=ZK(e=>null===i?null:e.logs[i]?.session??null),{data:o,isFetched:l,isError:c}=B(`/api/organizations/${n}/projects/count`,{queryKey:[ja,{orgUuid:n}],staleTime:3e5,enabled:e&&t&&!!n,meta:{noToast:e=>e instanceof cs&&"permission_error"===e.type}});if(!e||!t||!n)return{isTargeted:!1};if(null!==i){if(!OK(r))return{isTargeted:!1,isLoading:!0};if(r.projectUuid)return{isTargeted:!1}}return l?c||void 0===o?{isTargeted:!1}:{isTargeted:0===o.count}:{isTargeted:!1,isLoading:!0}}function hY(e){const t=_a(),s=uI(),n=!!s?.createScheduledTask,a=e&&!t.loading&&t.enabled&&n,{scheduledTasks:i,isLoading:r,didResolve:o}=mI(a),l=CY(a);if(!e||!t.loading&&!t.enabled){const e={isTargeted:!1};return{"no-scheduled-tasks":e,"has-scheduled-tasks":e}}if(t.loading||r||l){const e={isTargeted:!1,isLoading:!0};return{"no-scheduled-tasks":e,"has-scheduled-tasks":e}}if(!n){const e={isTargeted:!1};return{"no-scheduled-tasks":e,"has-scheduled-tasks":e}}if(!o){const e={isTargeted:!1};return{"no-scheduled-tasks":e,"has-scheduled-tasks":e}}const c=0===i.length;return{"no-scheduled-tasks":{isTargeted:c},"has-scheduled-tasks":{isTargeted:!c}}}function CY(t){const s=e.useRef(!1),n=t&&!s.current;return e.useEffect(()=>{s.current=t},[t]),n}function xY(){const e=ka(),t=wa(),s=e||t,n=bY("cowork-loading-tip-skill-used-moment",QK(e=>e.hasUsedSkill));return{isTargeted:s&&!n}}function vY(t){const s=m(),n=!!ba?.getAuthorizationStatus,[a,i]=e.useState(null);if(e.useEffect(()=>{if(!t||!s||!n)return;let e=!1;const a=()=>{const t=ba?.getAuthorizationStatus?.();t&&t.then(t=>{e||i(t)}).catch(()=>{e||i("error")})};return a(),window.addEventListener("focus",a),()=>{e=!0,window.removeEventListener("focus",a)}},[t,s,n]),!t||!s||!n)return{isTargeted:!1};if(null===a)return{isTargeted:!1,isLoading:!0};if("error"===a)return{isTargeted:!1};return{isTargeted:!(a===Na.Authorized||a===Na.Provisional)}}function yY(){const{account:e}=v();if(!e?.created_at)return{isTargeted:!1};return{isTargeted:(Date.now()-new Date(e.created_at).getTime())/864e5<14}}function bY(t,s){const{account:n}=v(),a=n?.uuid??null,[i,r]=xs(t,null);return e.useEffect(()=>{s&&a&&i!==a&&r(a)},[s,a,i,r]),s||!!a&&i===a}function kY(){const e=QK(e=>e.sessionId);return{isTargeted:!!e&&!ga(e)}}function wY(e){const t=Ma(),s=!!oa?.getAllArtifacts,n=e&&t&&s,{artifacts:a,isLoading:i}=pK(n,!0),r=CY(n);return e&&t&&s?i||r?{isTargeted:!1,isLoading:!0}:{isTargeted:0===a.length}:{isTargeted:!1}}const MY=new Set(["always","no-files-created","created-files","no-files-uploaded","no-slack-connector","no-gmail-connector","no-gdrive-connector","no-core-connectors","no-projects","no-scheduled-tasks","no-live-artifacts","no-skills-used","notifications-off","new-account","created-diagram","has-scheduled-tasks","local-session"]);function _Y(e){return MY.has(e)}const jY=new Map;function SY(e,t){if(jY.size>=50){const e=jY.keys().next().value;void 0!==e&&jY.delete(e)}jY.set(e,{tipId:t,done:!1,wasStreaming:!0})}function LY({isStreaming:t,enabled:s,hasQuestionCard:n=!1}){const a=QK(e=>e.sessionId),{isDismissed:i,dismiss:r}=me();QK(e=>null===a?void 0:e.remoteNoticeBySession[a]);const o=QK(e=>e.showUnsupervisedBanner),l=void 0!==dI(a),c=function(e){const t=m(),{orgAvailable:s}=ya(),n=ie(),a=(t||s)&&n&&e,i=ce("claudified_cowork_loading_tips",a);return a&&i}(s&&t&&!o&&!l),d=va("claudified_cowork_loading_tips_config",iY,aY,c);const u=c&&d.enabled,p=d.sessionCooldown??1,f=function(t,s){const n=QK(e=>e.sessionId),[a,i]=xs(oY,lY);return e.useEffect(()=>{t&&n&&i(e=>e.lastCountedSessionId===n?e:{...e,lastCountedSessionId:n,sessionsSinceLastShow:e.sessionsSinceLastShow+1})},[t,n,i]),!!n&&(null===a.lastShownSessionId||(a.lastShownSessionId===n||(a.lastCountedSessionId===n?a.sessionsSinceLastShow:a.sessionsSinceLastShow+1)>=s))}(u,p),g=function(e){return e.tips??tY.map(e=>({tipId:e}))}(d),h=function(e,t){const s=t.has("no-slack-connector")||t.has("no-gmail-connector")||t.has("no-gdrive-connector")||t.has("no-core-connectors"),n=t.has("no-scheduled-tasks")||t.has("has-scheduled-tasks");return{always:{isTargeted:!0},"no-files-created":{isTargeted:!QK(e=>e.hasCreatedFiles)},"created-files":{isTargeted:bY("cowork-loading-tip-created-files-moment",QK(e=>e.hasCreatedFiles))},"no-files-uploaded":{isTargeted:!QK(e=>e.hasUploadedFiles)},...fY(e&&s),"no-projects":gY(e&&t.has("no-projects")),...hY(e&&n),"no-live-artifacts":wY(e&&t.has("no-live-artifacts")),"no-skills-used":xY(),"notifications-off":vY(e&&t.has("notifications-off")),"new-account":yY(),"created-diagram":{isTargeted:bY("cowork-loading-tip-diagram-moment",QK(e=>e.hasCreatedDiagram))},"local-session":kY()}}(u,function(e){const t=new Set;for(const s of e){const e=s.eligibility??eY[s.tipId]?.eligibility??"always";_Y(e)&&t.add(e)}return t}(g)),C=function(){const t=QK(e=>e.sessionId),[s]=xs(rY,{});return e.useCallback(e=>{const n=s[e];return n?n.lastSessionId===t?n.count-1:n.count:0},[s,t])}(),x=function(e,t,s,n,a){const i=[];for(const r of e){const e=eY[r.tipId];if(!sY(e,s))continue;const o=(""===r.bodyText?void 0:r.bodyText)??e?.body;if(void 0===o)continue;const l=r.eligibility??e?.eligibility??"always";if(!_Y(l))continue;const c=r.ctaPrompt??(e?.ctaPrompt?n.formatMessage(e.ctaPrompt):void 0),d=void 0!==r.ctaPrompt,u=!d&&a.includes(r.tipId)&&e?.ctaNewWindowPrompt?n.formatMessage(e.ctaNewWindowPrompt):void 0;i.push({tipId:r.tipId,bannerId:`cowork_loading_tip_${r.tipId}`,body:o,ctaPrompt:""===c?void 0:c,ctaNewWindowPrompt:u,ctaLink:d?void 0:e?.ctaLink,ctaAction:d?void 0:e?.ctaAction,eligibilityKey:l,eligibility:t[l],maxLifetimeShows:r.maxLifetimeShows??3,fallback:e?.fallback??!1})}return i}(g,h,m()?"desktop":"web",JS(),d.newWindowTipIds??[]),v=e=>u&&e.eligibility.isTargeted&&C(e.tipId)<e.maxLifetimeShows&&!i(e.bannerId);e.useEffect(()=>{if(!a)return;!function(e){const t=jY.get(e);t&&(jY.delete(e),jY.set(e,t))}(a);const e=jY.get(a);if(!e)return;const s=e.wasStreaming??!1;e.wasStreaming=t,t&&e.done?e.doneConfirmed=!0:n?!e.done||e.doneConfirmed||e.actioned||(e.done=!1):s&&!t&&e.shown&&(e.done=!0)},[t,n,a]);const[,y]=e.useState(null),b=a?jY.get(a):void 0,k=!!b?.done,w=b&&!b.done?x.find(e=>e.tipId===b.tipId):void 0,M=x.some(e=>u&&e.eligibility.isLoading),[_,j]=e.useState(!1);e.useEffect(()=>{if(j(!1),!M||!u||!a)return;const e=setTimeout(()=>j(!0),5e3);return()=>clearTimeout(e)},[M,u,a]);const S=n||k?null:w?u&&!i(w.bannerId)?w:null:M&&!_?null:(()=>{if(!f)return null;const e=x.filter(v),t=e.filter(e=>!e.fallback),s=t.length>0?t:e;return 0===s.length?null:"priority"===(d.selection??"random")?s[0]??null:s[Math.floor(function(e){let t=cY.get(e);if(void 0===t){if(t=Math.random(),cY.size>=200){const e=cY.keys().next().value;void 0!==e&&cY.delete(e)}cY.set(e,t)}return t}(a??"")*s.length)]??null})(),L=S?.tipId??null;return e.useEffect(()=>{if(!a||!L)return;const e=jY.get(a);e?e.done||e.tipId===L||(e.tipId=L):SY(a,L)},[a,L]),S&&a?{tipId:S.tipId,body:S.body,ctaPrompt:S.ctaPrompt,ctaNewWindowPrompt:S.ctaNewWindowPrompt,ctaLink:S.ctaLink,ctaAction:S.ctaAction,sessionId:a,dismiss:()=>r(S.bannerId),markActioned:()=>{const e=jY.get(a)??{tipId:S.tipId,done:!1};e.done=!0,e.actioned=!0,e.shown=!0,jY.set(a,e),y(a)}}:null}function NY({label:s,body:n,ctaPrompt:a,ctaNewWindowPrompt:i,ctaLink:r,ctaAction:o,onAction:l,onDismiss:c}){const d=JS(),u=NH(),{promptInputRef:m}=J(),p=Ta(),f=eK(),g=tK()&&f,h=e.useCallback(()=>{r&&u({to:r.href}),l("link")},[r,u,l]),C=e.useCallback(e=>{const t=m.current?.getEditor();if(!t)return;const s=Aa(e);if(s&&!p)return;const n=t.getText(),a=n&&!/\s$/.test(n)?" ":"";t.chain().focus("end").insertContent({type:"text",text:`${a}${e}`}).run(),s&&p&&p.getState().setTipTapEditorJSON(t.getJSON(),{unsafe:!0})},[m,p]),x=e.useCallback(()=>{if(!i)return void l("new_window");if(null===(g?iK.getState().openWindow("loading_tip",{prompt:i}):null))return C(a??i),void l("append");l("new_window")},[i,a,g,C,l]),v=e.useCallback(()=>{a&&C(a),l("append")},[C,a,l]);return t.jsxs("div",{className:"border-0.5 border-border-300 bg-bg-100 py-xs mb-2 flex min-h-11 w-full items-center gap-sm rounded-xl pl-md pr-sm shadow-diffused shadow-black/5",children:[t.jsx(vN,{variant:"neutral",className:"shrink-0",children:s}),t.jsx("span",{className:"min-w-0 flex-1 text-caption leading-4 text-primary line-clamp-2",children:n}),t.jsxs("div",{className:"gap-xs flex shrink-0 items-center",children:[o?t.jsx(IY,{label:o.label,onAction:l}):r?t.jsx(rN,{variant:"secondary",size:"sm",onClick:h,children:r.label}):i?t.jsx(rN,{variant:"secondary",size:"sm",onClick:x,children:d.formatMessage({defaultMessage:"Try it",id:"YrB0ysut4p"})}):a?t.jsx(rN,{variant:"secondary",size:"sm",onClick:v,children:d.formatMessage({defaultMessage:"Try it",id:"YrB0ysut4p"})}):null,t.jsx(rN,{variant:"ghost",size:"sm",iconOnly:!0,icon:"X","aria-label":d.formatMessage({defaultMessage:"Dismiss",id:"TDaF6JVgG6"}),onClick:c})]})]})}function IY({label:s,onAction:n}){const a=e.useCallback(()=>{(async()=>{if(!ba)return;let e;try{e=await(ba.getAuthorizationStatus?.())}catch{}e!==Na.NotDetermined?e!==Na.Authorized&&e!==Na.Provisional&&e!==Na.Ephemeral&&ba.openNotificationSettings?.():await(ba.requestAuthorization?.())})(),n("action")},[n]);return t.jsx(rN,{variant:"secondary",size:"sm",onClick:a,children:s})}const TY=new Set,AY=e.memo(function({state:s}){const n=ae(),{tipId:a,body:i,ctaPrompt:r,ctaNewWindowPrompt:o,ctaLink:l,ctaAction:c,sessionId:d,dismiss:u,markActioned:m}=s;!function(t,s,n){const[,a]=xs(rY,{}),[,i]=xs(oY,lY),r=e.useRef(null);e.useEffect(()=>{if(!s)return;const e=`${s}:${t}`;r.current!==e&&(r.current=e,a(e=>{const n=e[t];return n?.lastSessionId===s?e:{...e,[t]:{count:(n?.count??0)+1,lastSessionId:s}}}),i({sessionsSinceLastShow:0,lastCountedSessionId:s,lastShownSessionId:s}))},[n,s,t,a,i])}(a,d,!0),e.useEffect(()=>{!function(e,t){let s=jY.get(e);s||(SY(e,t),s=jY.get(e)),s&&(s.shown=!0)}(d,a);const e=`${d}:${a}`;if(TY.has(e))return TY.delete(e),void TY.add(e);if(TY.size>=200){const e=TY.values().next().value;void 0!==e&&TY.delete(e)}TY.add(e),n.track({event_key:"claudeai.cowork_loading_tip.displayed",tip:a})},[n,a,d]);const p=e.useCallback(e=>{n.track({event_key:"claudeai.cowork_loading_tip.cta_clicked",tip:a,cta_target:e}),m()},[n,a,m]),f=e.useCallback(()=>{n.track({event_key:"claudeai.cowork_loading_tip.dismissed",tip:a}),u()},[n,a,u]);return t.jsx(NY,{label:JK,body:i,ctaPrompt:r,ctaNewWindowPrompt:o,ctaLink:l,ctaAction:c,onAction:p,onDismiss:f})});function EY(e,t){if(t===e)return!0;if("/*"===t)return!0;if(!t.includes("*"))return!1;const s=t.split("/"),n=e.split("/");for(let a=0;a<s.length;a++){const e=s[a];if("*"!==e){if(n[a]!==e)return!1}else{if(a===s.length-1)return n.length>=a;if(a>=n.length||""===n[a])return!1}}return n.length===s.length}const RY=["/new"],DY=DL(AL({paths:NL(IL()),enabled:RL()}));function HY(e){return"global"===e.kind?"global":`${e.kind}:${e.key}`}function PY(e){return"ambient"===e.tier||!0===e.config?.bypass_global_rules}function UY(e){const t=PY(e)?[]:[{kind:"global"}];return null!=e.tier&&t.push({kind:"tier",key:e.tier}),t.push({kind:"placement",key:e.placement_key}),t}function OY(e,t){if(t)switch(e.kind){case"global":return t.global;case"tier":return t.tiers?.[e.key];case"placement":return t.placements[e.key]}}function FY(e,t){const s=t.findIndex(t=>t.id===e.id);return-1===s?Number.MAX_SAFE_INTEGER:s}function VY(e,t){const s=new Set;let n=null;for(const[a,i]of e){if("ambient"===i.tier){s.add(a);continue}const e=FY(i,t);(null===n||e<n.pri)&&(n={pk:a,pri:e})}return n&&s.add(n.pk),s}function zY(e,t){const s=t.experiences.filter(t=>t.placement_key===e),n=ZY(e,t);if(n)return n;const a=s.find(e=>t.store.shownIds.has(e.id)&&BY(e,t));if(a)return a;const i=s.find(e=>BY(e,t)&&function(e,t){return UY(e).every(e=>{const s=OY(e,t.rules);return qY(e,s,t)&&WY(e,s,t)})}(e,t));return i??null}function ZY(e,t){return t.forcedKeys?.size?t.experiences.find(s=>s.placement_key===e&&t.forcedKeys?.has(s.key??s.id))??null:null}function BY(e,t){return(void 0===t.clientEligibility||!1!==t.clientEligibility[e.key??e.id])&&(!t.store.dismissedIds.has(e.id)&&!t.store.actionedIds.has(e.id)&&(!!GY(t.placementConfig[e.placement_key],t.pathname)&&!!KY(e,t.pathname,t.defaultAllowedPaths)))}function qY(e,t,s){const n=t?.rate_limit;return!n||n.remaining-function(e,t){if("global"===e.kind){const e=t.experiences.reduce((e,s)=>PY(s)&&t.store.shownIds.has(s.id)?e+1:e,0);return t.store.shownIds.size-e}return t.experiences.reduce((s,n)=>t.store.shownIds.has(n.id)&&function(e,t){switch(t.kind){case"global":return!0;case"tier":return null!=e.tier&&e.tier===t.key;case"placement":return e.placement_key===t.key}}(n,e)?s+1:s,0)}(e,s)>0}function WY(e,t,s){const n=s.store.lastActionAt.get(HY(e));if(void 0===n)return!0;const a=t?.cooldown?.seconds??function(e){switch(e.kind){case"global":return 21600;case"tier":return 0;case"placement":return null}}(e);return null!==a&&(a<=0||s.now-n>=1e3*a)}function $Y(e){return Array.isArray(e)?e.filter(e=>"string"==typeof e):[]}function GY(e,t){return!!e?.enabled&&e.paths.some(e=>EY(t,e))}function KY(e,t,s=RY){const n=function(e,t){const s=$Y(e.config?.platform?.allowed_paths);if(s.length>0)return s;const n=$Y(e.content?.allowed_paths);return n.length>0?n:t}(e,s);return n.some(e=>EY(t,e))}function YY(e,t){return t.experiences.filter(t=>t.placement_key===e).map(e=>{const s=function(e,t){const s=e.key??e.id;if(void 0!==t.clientEligibility&&!1===t.clientEligibility[s])return{gate:"probe-false"};if(t.store.dismissedIds.has(e.id))return{gate:"dismissed"};if(t.store.actionedIds.has(e.id))return{gate:"actioned"};const n=t.placementConfig[e.placement_key];if(!GY(n,t.pathname))return{gate:"placement-path",detail:n?n.enabled?`ef_placement_config["${e.placement_key}"].paths excludes ${t.pathname}`:`ef_placement_config["${e.placement_key}"].enabled is false`:`ef_placement_config["${e.placement_key}"] missing`};if(!KY(e,t.pathname,t.defaultAllowedPaths))return{gate:"experience-path",detail:`allowed_paths excludes ${t.pathname}`};for(const a of UY(e)){const e=OY(a,t.rules);if(!qY(a,e,t))return{gate:"pacing-rate-limit",detail:HY(a)};if(!WY(a,e,t))return{gate:"pacing-cooldown",detail:HY(a)}}return null}(e,t);return{key:e.key??e.id,id:e.id,gate:s?.gate??null,detail:s?.detail}})}function QY(e,t){return e.verdict===t.verdict&&e.pickedKey===t.pickedKey&&e.detail===t.detail&&e.candidates.length===t.candidates.length&&e.candidates.every((e,s)=>{const n=t.candidates[s];return e.key===n.key&&e.id===n.id&&e.gate===n.gate&&e.detail===n.detail})}const JY={length:0,clear:()=>{},getItem:()=>null,key:()=>null,removeItem:()=>{},setItem:()=>{}};let XY;function eQ(){return"undefined"==typeof window?JY:XY||(XY=function(){if("undefined"==typeof window)return!1;try{const e="__ef_probe__";return window.sessionStorage.setItem(e,e),window.sessionStorage.removeItem(e),!0}catch{return!1}}()?window.sessionStorage:JY,XY)}const tQ=fT()(CT(e=>({dismissedIds:new Set,shownIds:new Set,actionedIds:new Set,placementLastActionAt:new Map,tierLastActionAt:new Map,lastGlobalActionAt:null,markDismissed:(t,s)=>{const n=Date.now();e(e=>({dismissedIds:new Set([...e.dismissedIds,t.id]),placementLastActionAt:new Map([...e.placementLastActionAt,[t.placement_key,n]]),...null!=t.tier?{tierLastActionAt:new Map([...e.tierLastActionAt,[t.tier,n]])}:{},...s?.skipGlobalCooldown?{}:{lastGlobalActionAt:n}}))},markNotTargeted:t=>{e(e=>({dismissedIds:new Set([...e.dismissedIds,t])}))},markShown:t=>{e(e=>({shownIds:new Set([...e.shownIds,t])}))},markActioned:(t,s)=>{const n=Date.now();e(e=>({actionedIds:new Set([...e.actionedIds,t.id]),placementLastActionAt:new Map([...e.placementLastActionAt,[t.placement_key,n]]),...null!=t.tier?{tierLastActionAt:new Map([...e.tierLastActionAt,[t.tier,n]])}:{},...s?.skipGlobalCooldown?{}:{lastGlobalActionAt:n}}))},markPlacementCooldown:t=>{const s=Date.now();e(e=>({placementLastActionAt:new Map([...e.placementLastActionAt,[t,s]]),lastGlobalActionAt:s}))},markGlobalCooldown:()=>{e({lastGlobalActionAt:Date.now()})},resetExperience:t=>{e(e=>{const s=new Set(e.dismissedIds);s.delete(t);const n=new Set(e.actionedIds);return n.delete(t),{dismissedIds:s,actionedIds:n}})},resetPlacement:t=>{e(e=>{const s=new Map(e.placementLastActionAt);return s.delete(t),{placementLastActionAt:s}})},resetShownIds:()=>{e({shownIds:new Set})},resetAll:()=>{e({dismissedIds:new Set,shownIds:new Set,actionedIds:new Set,placementLastActionAt:new Map,tierLastActionAt:new Map,lastGlobalActionAt:null,mountedCallers:new Map,currentlyShowing:new Map,selectedByPlacement:new Map,probeResults:new Map})},mountedCallers:new Map,currentlyShowing:new Map,selectedByPlacement:new Map,probeResults:new Map,selectionTrace:new Map,incrementMountedCallers:t=>{let s=0;return e(e=>{const n=new Map(e.mountedCallers);return s=(n.get(t)??0)+1,n.set(t,s),{mountedCallers:n}}),s},decrementMountedCallers:t=>{let s=0;return e(e=>{const n=new Map(e.mountedCallers);return s=Math.max(0,(n.get(t)??0)-1),0===s?n.delete(t):n.set(t,s),{mountedCallers:n}}),s},setCurrentlyShowing:(t,s)=>{e(e=>{if(e.currentlyShowing.get(t)===s)return e;const n=new Map(e.currentlyShowing);return n.set(t,s),{currentlyShowing:n}})},clearCurrentlyShowing:t=>{e(e=>{if(!e.currentlyShowing.has(t))return e;const s=new Map(e.currentlyShowing);return s.delete(t),{currentlyShowing:s}})},setSelectedByPlacement:(t,s)=>{e(e=>{const n=e.selectedByPlacement.get(t);if(n?.expId===s.expId&&n.selectionScope===s.selectionScope)return e;const a=new Map(e.selectedByPlacement);return a.set(t,s),{selectedByPlacement:a}})},clearSelectedByPlacement:t=>{e(e=>{if(!e.selectedByPlacement.has(t))return e;const s=new Map(e.selectedByPlacement);return s.delete(t),{selectedByPlacement:s}})},setProbeResult:(t,s,n)=>{e(e=>{const a=e.probeResults.get(t);if(a?.[s]===n)return e;const i=new Map(e.probeResults);return i.set(t,{...a,[s]:n}),{probeResults:i}})},clearProbeResult:(t,s)=>{e(e=>{const n=e.probeResults.get(t);if(!n||!(s in n))return e;const{[s]:a,...i}=n,r=new Map(e.probeResults);return 0===Object.keys(i).length?r.delete(t):r.set(t,i),{probeResults:r}})},setSelectionTrace:(t,s)=>{e(e=>{const n=e.selectionTrace.get(t);if(n&&QY(n,s))return e;const a=new Map(e.selectionTrace);return a.set(t,s),{selectionTrace:a}})},clearSelectionTrace:t=>{e(e=>{if(!e.selectionTrace.has(t))return e;const s=new Map(e.selectionTrace);return s.delete(t),{selectionTrace:s}})}}),{name:"experience-storage",storage:{getItem:e=>{const t=eQ().getItem(e);if(!t)return null;const s=JSON.parse(t);return s.state.dismissedIds&&(s.state.dismissedIds=new Set(s.state.dismissedIds)),s.state.shownIds&&(s.state.shownIds=new Set(s.state.shownIds)),s.state.actionedIds&&(s.state.actionedIds=new Set(s.state.actionedIds)),s.state.placementLastActionAt&&(s.state.placementLastActionAt=new Map(s.state.placementLastActionAt)),s.state.tierLastActionAt&&(s.state.tierLastActionAt=new Map(s.state.tierLastActionAt)),s.state.selectedByPlacement&&(s.state.selectedByPlacement=new Map(s.state.selectedByPlacement)),s},setItem:(e,t)=>{const s={...t,state:{...t.state,dismissedIds:Array.from(t.state.dismissedIds??new Set),shownIds:Array.from(t.state.shownIds??new Set),actionedIds:Array.from(t.state.actionedIds??new Set),placementLastActionAt:Array.from(t.state.placementLastActionAt??new Map),tierLastActionAt:Array.from(t.state.tierLastActionAt??new Map),selectedByPlacement:Array.from(t.state.selectedByPlacement??new Map)}};eQ().setItem(e,JSON.stringify(s))},removeItem:e=>{eQ().removeItem(e)}},partialize:({currentlyShowing:e,mountedCallers:t,probeResults:s,selectionTrace:n,...a})=>a})),sQ="ef_url_overrides",nQ="ef_force",aQ="ef_clear";function iQ(e){return"1"===e||"true"===e}function rQ(){return window.localStorage}function oQ(){if("undefined"==typeof window)return[];let e=null;try{e=rQ().getItem(sQ)}catch{return[]}if(!e)return[];try{const t=JSON.parse(e);if(Array.isArray(t)&&t.every(e=>"string"==typeof e))return t}catch{}try{rQ().removeItem(sQ)}catch{}return[]}function lQ(e){if("undefined"!=typeof window)try{0===e.length?rQ().removeItem(sQ):rQ().setItem(sQ,JSON.stringify(e))}catch{}}function cQ(){return oQ()}function dQ(e){const t=new Set(oQ());t.add(e),lQ([...t])}function uQ(e){lQ(oQ().filter(t=>t!==e))}function mQ(){lQ([])}function pQ(e){if("undefined"==typeof window)return"";const t=new URL(window.location.href);t.searchParams.delete(nQ),t.searchParams.delete(aQ);for(const s of e)t.searchParams.append(nQ,s);return t.toString()}function fQ(e){if("undefined"==typeof window||!e)return new Set;const{keys:t,shouldClear:s}=function(){const e=new URLSearchParams(window.location.search),t=iQ(e.get(aQ));return{keys:e.getAll(nQ).filter(e=>e.length>0),shouldClear:t}}(),n=s?[]:oQ(),a=new Set([...n,...t]);return(s||t.length>0)&&lQ([...a]),a}function gQ(t,s={}){const{clientEligibility:n,selectionScope:a,probesSettled:i=!0}=s,r=xA(),o=vA()(),l=r||o||(s.disabled??!1),{setCurrentlyShowing:c,clearCurrentlyShowing:d,setSelectedByPlacement:u,incrementMountedCallers:m,decrementMountedCallers:p}=tQ.getState(),{ctx:f,isLoading:g,isAnt:h}=vQ(),{currentlyShowing:C,selectedByPlacement:x}=tQ(hT(e=>({currentlyShowing:e.currentlyShowing,selectedByPlacement:e.selectedByPlacement}))),v=e.useMemo(()=>f?{...f,clientEligibility:n}:null,[f,n]),y=e.useMemo(()=>v?ZY(t,v):null,[v,t]),b=e.useMemo(()=>{if(l||!v)return null;if(y)return y;const e=x.get(t);if(e&&e.selectionScope===a){const s=v.experiences.find(s=>s.id===e.expId&&s.placement_key===t);if(s&&BY(s,{...v,clientEligibility:void 0}))return s}return i?zY(t,v):null},[l,y,i,v,x,t,a]);e.useLayoutEffect(()=>(m(t),()=>{0===p(t)&&d(t)}),[t,m,p,d]),e.useLayoutEffect(()=>{b&&!y?c(t,b):d(t)},[t,b,y,c,d]);const k=e.useMemo(()=>!!f&&VY(C,f.experiences).has(t),[f,C,t])||y?b:null;return e.useEffect(()=>{if(!h)return;const{setSelectionTrace:e,selectionTrace:s}=tQ.getState(),n=v?YY(t,v):[];let a,r,o=k?k.key??k.id:void 0;if(g)a="loading";else if(l)a="disabled";else if(y)a="forced";else if(null!==k)a="shown";else if(0===n.length)a="no-candidates";else if(i)if(null===b)a="all-blocked";else{a="priority-lost";const e=v?[...VY(C,v.experiences)].filter(e=>"ambient"!==C.get(e)?.tier):[];r=e.length?`winner: ${e.join(", ")}`:void 0}else a="probes-loading";const c="shown"!==a||void 0===o?n:n.map(e=>e.key===o&&null!==e.gate?{...e,gate:null,detail:void 0}:e),d=s.get(t),u={verdict:a,pickedKey:o,detail:r,candidates:c},m=void 0===d||!QY(d,u);e(t,u),m&&function(e){return!("undefined"==typeof window||!e)&&iQ(new URLSearchParams(window.location.search).get("ef_trace"))}(h)&&console.log(`[ef] ${t} \u2192 ${a}`,u)},[h,g,l,y,i,t,v,b,k,C]),e.useEffect(()=>{if(h)return()=>{const{mountedCallers:e,clearSelectionTrace:s}=tQ.getState();0===(e.get(t)??0)&&s(t)}},[h,t]),e.useEffect(()=>{b&&!y&&u(t,{expId:b.id,selectionScope:a})},[b,y,t,a,u]),k}const hQ=(e,t)=>{const s=yA(),{orgUuid:n}=s.useAccount(),a=s.useFeatureGate("ef_enabled"),i=s.loadShed??!1;return pL({queryKey:["experiences",{orgUuid:n,platform:e,locale:t}],queryFn:()=>s.apiClient.fetchExperiences(n,e,t),enabled:!!n&&a&&!i,staleTime:36e5,refetchOnWindowFocus:!1,retry:!1})};function CQ(){const{ctx:t,isLoading:s}=vQ(),{hasNonAmbientShowing:n,isCurrentlyShowingEmpty:a}=tQ(hT(e=>{let t=!1;for(const s of e.currentlyShowing.values())if("ambient"!==s.tier){t=!0;break}return{hasNonAmbientShowing:t,isCurrentlyShowingEmpty:0===e.currentlyShowing.size}})),i=e.useMemo(()=>{if(!t||!a)return!1;const e=new Set(t.experiences.map(e=>e.placement_key));for(const s of e){const e=zY(s,t);if(e&&"ambient"!==e.tier)return!0}return!1},[t,a]);return{isAnyExperienceShowing:n||i,isLoading:s}}function xQ(e){const{ctx:t}=vQ(),s=tQ(e=>e.currentlyShowing),n=s.get(e);return n&&t&&VY(s,t.experiences).has(e)?n:null}function vQ(){const t=yA(),s=bA(),n=t.useLocale(),a=t.usePathname(),i=kA(),{orgUuid:r,isAnt:o=!1}=t.useAccount(),l=e.useMemo(()=>fQ(o),[o]);e.useEffect(()=>{!function(e){if("undefined"==typeof window||!e)return;const t=new URLSearchParams(window.location.search);if(!t.has(nQ)&&!t.has(aQ))return;t.delete(nQ),t.delete(aQ);const s=t.toString(),n=`${window.location.pathname}${s?`?${s}`:""}${window.location.hash}`;try{window.history.replaceState(window.history.state,"",n)}catch{}}(o)},[o,l]);const{data:c,isLoading:d}=hQ(i,n),u=d||!r,m=t.useDynamicConfig("ef_placement_config",{},DY),p=tQ(hT(e=>({dismissedIds:e.dismissedIds,actionedIds:e.actionedIds,shownIds:e.shownIds,placementLastActionAt:e.placementLastActionAt,tierLastActionAt:e.tierLastActionAt,lastGlobalActionAt:e.lastGlobalActionAt}))),f=e.useMemo(()=>{const e=new Map;null!==p.lastGlobalActionAt&&e.set(HY({kind:"global"}),p.lastGlobalActionAt);for(const[t,s]of p.tierLastActionAt)e.set(HY({kind:"tier",key:t}),s);for(const[t,s]of p.placementLastActionAt)e.set(HY({kind:"placement",key:t}),s);return{dismissedIds:p.dismissedIds,actionedIds:p.actionedIds,shownIds:p.shownIds,lastActionAt:e}},[p]);return{ctx:e.useMemo(()=>({experiences:c?.experiences??[],rules:c?.rules,pathname:a,placementConfig:m,defaultAllowedPaths:s,store:f,forcedKeys:l,now:Date.now()}),[c?.experiences,c?.rules,m,s,f,a,l]),isLoading:u,isAnt:o}}function yQ(e){return"boolean"==typeof e||void 0===e?e:e.isLoading?void 0:e.isTargeted}const bQ={},kQ=[];function wQ({placementKey:t,entryKey:s,useTargeting:n,targetingContext:a}){const i=yQ(n(a)),{setProbeResult:r,clearProbeResult:o}=tQ.getState();return e.useLayoutEffect(()=>(r(t,s,i),()=>{(tQ.getState().mountedCallers.get(t)??0)<=1&&o(t,s)}),[t,s,i,r,o]),null}function MQ({placementKey:t,experience:s,usePlacementTargeting:n,targetingContext:a}){const i=yQ(n(s,a)),r=s.key??s.id,{setProbeResult:o,clearProbeResult:l}=tQ.getState();return e.useLayoutEffect(()=>(o(t,r,i),()=>{(tQ.getState().mountedCallers.get(t)??0)<=1&&l(t,r)}),[t,r,i,o,l]),null}function _Q(t,s,n,a,i,r){const{clientEligibility:o,probesSettled:l,selectionScope:c,visible:d}=r,u=e.useMemo(()=>new Set(s.filter(([,e])=>void 0!==e.componentLoader).map(([e])=>e)),[s]),{isEnterprise:m,isMobileWeb:p=!1}=yA().useAccount(),{ctx:f,isLoading:g}=vQ(),{mutate:h}=(()=>{const e=yA(),{orgUuid:t}=e.useAccount(),s=e.loadShed??!1;return hL({mutationFn:n=>!t||s?Promise.resolve({success:!1}):e.apiClient.trackExperience(t,n)})})(),C=e.useMemo(()=>new Set(s.map(([e])=>e)),[s]),x=gQ(t,{clientEligibility:o,probesSettled:l,selectionScope:c,disabled:m&&!a&&0===s.length}),v=null!==x&&(void 0!==x.key&&u.has(x.key)||null!=x.template_key&&n.has(x.template_key)&&null!=x.content),y=null!==x&&m&&!a&&!C.has(x.key??""),b=null!==x&&p&&!(x.config?.platform?.show_on_mobile_web??i),k=y||b;e.useEffect(()=>{if(x&&(!v||k)){const{markNotTargeted:e,clearCurrentlyShowing:s}=tQ.getState();e(x.id),s(t)}},[x,v,k,t]);const w=e.useRef(null);e.useEffect(()=>{if(!x||!v||k||!1===d)return;if(!1===o?.[x.key??x.id])return;const{shownIds:e,markShown:s,currentlyShowing:n}=tQ.getState();e.has(x.id)||w.current===x.id||f&&!VY(n,f.experiences).has(t)||(w.current=x.id,h({experience_uuid:x.id,action:"shown",metadata:{enabled:x.enabled}}),s(x.id))},[x,v,k,d,o,f,t,h]);const M=e.useCallback(()=>{if(!x)return;const{dismissedIds:e,markDismissed:t}=tQ.getState();e.has(x.id)||(h({experience_uuid:x.id,action:"dismissed",metadata:{enabled:x.enabled}}),t(x,{skipGlobalCooldown:PY(x)}))},[x,h]),_=e.useCallback(e=>{if(!x)return;const{actionedIds:t,markActioned:s}=tQ.getState();if(t.has(x.id))return;const n="object"==typeof(a=e)&&null!==a&&("nativeEvent"in a||"_reactName"in a||"type"in a&&"target"in a&&"currentTarget"in a)?void 0:e;var a;h({experience_uuid:x.id,action:"actioned",metadata:{enabled:x.enabled,...n}}),s(x,{skipGlobalCooldown:PY(x)})},[x,h]);return{state:g?"loading":null===x||!v||k?"hidden":!1===x.enabled?"control":"shown",exp:v&&!k?x:null,onDismiss:M,onAction:_}}function jQ(s){const{placementKey:n,experienceComponents:a={},templateComponents:i={},usePlacementTargeting:r,enterpriseAllowed:o=!1,defaultShowOnMobileWeb:l=!0}=s,c=Object.entries(a),d=new Map(c),u=new Set(Object.keys(i)),m=Object.fromEntries(c.map(([t,s])=>[t,s.componentLoader?e.lazy(s.componentLoader):void 0])),p=Object.fromEntries(Object.entries(i).map(([t,s])=>[t,e.lazy(s)])),f=e.memo(({targetingContext:s,selectionScope:a,render:i,visible:f})=>{const g=xA(),h=vA()(),{isEnterprise:C}=yA().useAccount(),x=function(t){const{ctx:s}=vQ();return e.useMemo(()=>s?.experiences.filter(e=>e.placement_key===t)??kQ,[s?.experiences,t])}(n),v=e.useMemo(()=>new Set(x.map(e=>e.key??e.id)),[x]),y=tQ(hT(e=>e.probeResults.get(n)??bQ)),b=e.useMemo(()=>function(e,t,s,n,a){if(0===e.length&&void 0===t)return;const i={};for(const[r,o]of e){const e=a||(o.enterpriseAllowed??!1),l=n&&!e,c=!(void 0!==o.useTargeting||t?.has(r))||(s[r]??!1);i[r]=c&&!l}if(t){const e=n&&!a;for(const n of t)n in i||(i[n]=(s[n]??!1)&&!e)}return i}(c,void 0!==r?v:void 0,y,C,o),[v,y,C]),k=e.useMemo(()=>{if(!c.every(([e,t])=>void 0===t.useTargeting||!v.has(e)||void 0!==y[e]))return!1;if(void 0===r)return!0;for(const e of v)if(void 0===d.get(e)?.useTargeting&&void 0===y[e])return!1;return!0},[v,y]),w=_Q(n,c,u,o,l,{clientEligibility:b,probesSettled:k,selectionScope:a,visible:f}),{state:M,exp:_,onDismiss:j,onAction:S}=w,L=g||h,N=L?null:t.jsxs(t.Fragment,{children:[c.map(([e,a])=>a.useTargeting&&v.has(e)?t.jsx(wQ,{placementKey:n,entryKey:e,useTargeting:a.useTargeting,targetingContext:s},e):null),r&&x.map(e=>null==e.key||void 0===d.get(e.key)?.useTargeting?t.jsx(MQ,{placementKey:n,experience:e,usePlacementTargeting:r,targetingContext:s},e.key??e.id):null)]});if(i)return t.jsxs(t.Fragment,{children:[N,t.jsx(nA,{children:i(w)})]});if(L)return null;let I=null;if(("shown"===M||"control"===M)&&_){const e=void 0!==_.key?m[_.key]:void 0;if(e)I=t.jsx(e,{enabled:!1!==_.enabled,onDismiss:j,onAction:S});else if(_.template_key&&_.content){const e=p[_.template_key];e&&(I=t.jsx(e,{experienceKey:_.key??_.id,experienceId:_.id,content:_.content,enabled:!1!==_.enabled,onDismiss:j,onAction:S}))}}return t.jsxs(t.Fragment,{children:[N,t.jsx(nA,{children:null!==I&&_?t.jsx(e.Suspense,{fallback:null,children:I},_.id):null})]})});return f.displayName=`Placement(${n})`,{Placement:f}}const SQ=new Set(["js","jsx","ts","tsx","py","rb","go","rs","c","cpp","h","hpp","java","kt","swift","sh","bash","zsh","json","yaml","yml","toml","xml","html","css","scss","sql","graphql","proto","lua","r"]),LQ=new Set(["zip","tar","gz","bz2","xz","7z","rar","tgz"]),NQ=new Set(["mp4","mov","avi","mkv","webm","m4v"]);function IQ(e){const t=e.split(".").pop()?.toLowerCase()??"";return"pdf"===t?IR:"csv"===t?TR:SQ.has(t)?AR:LQ.has(t)?ER:NQ.has(t)?RR:["doc","docx","odt","rtf"].includes(t)?DR:["txt","md","log","rst"].includes(t)?HR:["png","jpg","jpeg","gif","webp","svg","bmp","ico"].includes(t)?PR:bR}const TQ="cowork_mcp_upsell_banner",AQ=Object.freeze({mcpToolCallCount:0,connectorNames:[]});function EQ(e,t){const s=e.integration_name&&t.has(e.integration_name)?e.integration_name:Da(e.name)?Ha(e.name)?.server.name??null:null;return s?Pa(s)||Ua(s)?null:s:null}function RQ(t,s){const n=Ce(e=>e.pathUuidsByConversation[t??""]?.length??0),a=Ia(e=>Object.keys(e.remoteServers).length+Object.keys(e.localClients).length+Object.keys(e.remoteTools).length+Object.keys(e.localTools).length+Object.keys(e.pluginBridgeTools).length);return e.useMemo(()=>{if(!t||0===n)return AQ;const{messageByUuid:e,pathUuidsByConversation:s}=Ce.getState(),a=function(){const{remoteServers:e,localClients:t}=Ia.getState(),s=new Set;for(const n of Object.values(e))n?.name&&s.add(n.name);for(const n of Object.keys(t))s.add(n);for(const n of Object.values(Ra))s.add(n.name);return s}(),i=s[t]??[],r=new Map;let o=0;for(const t of i){const s=e[t];if("assistant"===s?.sender)for(const e of s.content??[]){if("tool_use"!==e.type)continue;const t=EQ(e,a);t&&(o++,r.set(t,(r.get(t)??0)+1))}}if(0===o)return AQ;return{mcpToolCallCount:o,connectorNames:[...r.entries()].sort((e,t)=>t[1]-e[1]).slice(0,2).map(([e])=>e)}},[t,n,s,a])}function DQ({conversationUuid:e,isStreaming:t}){const{eligible:s,variant:n}=IG(),{isDismissed:a,dismiss:i}=me(),{mcpToolCallCount:r,connectorNames:o}=RQ(e,t),l=Math.max(1,Ea("cowork_mcp_upsell_tool_call_threshold")??2);return!(s&&!!e&&r>=l)||a(TQ)?null:{variant:n,connectorNames:o,dismiss:()=>i(TQ)}}const HQ=fT((e,t)=>({initialModelByConversation:new Map,noteInitialModel:(s,n)=>{t().initialModelByConversation.has(s)||e(e=>{const t=new Map(e.initialModelByConversation);return t.set(s,n),{initialModelByConversation:t}})},rebaselineInitialModel:(s,n)=>{t().initialModelByConversation.get(s)!==n&&e(e=>{const t=new Map(e.initialModelByConversation);return t.set(s,n),{initialModelByConversation:t}})}})),PQ="border-0.5 relative z-0 mx-1.5 pl-4 pr-3.5 -mb-1 rounded-t-xl border-b-0 pb-2.5 pt-2 bg-bg-300 border-transparent";function UQ(t){const{conversationUuid:s,isStreaming:n}=t,a=Ce(e=>{if(!s)return;const t=e.pathUuidsByConversation[s]||[];return t[t.length-1]}),i=Ce(e=>{if(!s)return;const t=e.pathUuidsByConversation[s]||[];return t[t.length-2]});return e.useMemo(()=>{const{messageByUuid:e}=Ce.getState();return{lastMessage:e[n?"":a??""],previousMessage:e[i??""]}},[a,i,n])}const OQ="long_conversation_nudge_optout",FQ="model_switched_notice_optout",VQ="longConversationNudgeOptOut",zQ="modelSwitchedNoticeOptOut";function ZQ(e){if("undefined"==typeof window)return!1;try{return"true"===localStorage.getItem(e)}catch{return!1}}function BQ(){return ZQ(VQ)}function qQ(){return ZQ(zQ)}function WQ(e){return e>0&&e<=2}function $Q(t){const s=Ce(hT(e=>{if(!t)return{first:void 0,humanTurnCount:0};const s=e.pathUuidsByConversation[t]??[];let n,a=0;for(const t of s){const s=e.messageByUuid[t];"human"===s?.sender&&(a++,n||(n=s))}return{first:n,humanTurnCount:a}}));return e.useMemo(()=>({text:s.first?Le(s.first):"",humanTurnCount:s.humanTurnCount}),[s])}function GQ(t){const s=Ie(),{incognitoModeEnabled:n}=Va(),{text:a,humanTurnCount:i}=$Q(t),{data:r,isFetched:o}=function({conversationUuid:e,firstMessageText:t,currentProjectUuid:s,isEligible:n}){const{activeOrganization:a}=v(),i=a?.uuid,r=M(),o=y("claude_ai_project_suggestion"),l=(t??"").slice(0,2e3);return pL({queryKey:["project-suggestion",i,e],queryFn:async()=>{const t=await r(`/api/organizations/${i}/dust/project_suggestion`,{method:"POST",body:JSON.stringify({message_content:l,conversation_uuid:e})});return j(t,"Failed to fetch project suggestion."),await t.json()},enabled:o&&n&&!!i&&!!e&&!s&&l.length>0,staleTime:1/0,gcTime:3e5,retry:!1})}({conversationUuid:t,firstMessageText:a,currentProjectUuid:s,isEligible:!n&&WQ(i)});return{selection:e.useMemo(()=>{if(r)return"existing"===r.match&&r.project_uuid&&r.project_name?{kind:"existing",uuid:r.project_uuid,name:r.project_name}:"new"===r.match&&r.new_project_name?{kind:"new",name:r.new_project_name}:void 0},[r]),isFetched:o}}function KQ(e){const t=y("claude_ai_project_suggestion"),s=Ie(),{incognitoModeEnabled:n}=Va(),{humanTurnCount:a}=$Q(e.conversationUuid),{selection:i,isFetched:r}=GQ(e.conversationUuid);return e.isStreaming||!t||n||s||!WQ(a)?{isTargeted:!1}:{isTargeted:void 0!==i,isLoading:!r}}const YQ=50;function QQ(e){const t=y("claudeai_composer_nudge_banners_main"),s=Za(e.conversationUuid),n=ie();return t&&!!e.conversationUuid&&!s&&!n}const{Placement:JQ}=jQ({placementKey:"in-chat-banner",experienceComponents:{"in-chat-dusty-gondola-banner":{componentLoader:()=>a(()=>import("./c794e983d-24MrwaOq.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(e=>({default:e.CredentialNudgeChatBanner})),useTargeting:function(e){const t=PG();return!!UG({scopeKey:e.conversationUuid,isAgentRunning:e.isStreaming,renderEnabled:!t})&&!e.isStreaming}},"in-chat-cowork-mcp-upsell-banner":{componentLoader:()=>a(()=>import("./cbbddba2b-Bukhvuls.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(e=>({default:e.CoworkMcpUpsellChatBanner})),useTargeting:function(e){return!!DQ({conversationUuid:e.conversationUuid,isStreaming:e.isStreaming})}},"in-chat-cowork-upsell-banner":{componentLoader:()=>a(()=>import("./c170fc04c-BMeZGrwc.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(e=>({default:e.CoworkUpsellChatBanner})),useTargeting:function(e){return!!TG({conversationUuid:e.conversationUuid,isStreaming:e.isStreaming})}},"in-chat-cowork-guest-pass-upsell-banner":{componentLoader:()=>a(()=>import("./c260380f9-2EzEcQGU.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(e=>({default:e.CoworkGuestPassUpsellChatBanner})),useTargeting:function(e){const t=!!kG({conversationUuid:e.conversationUuid,isStreaming:e.isStreaming}),s=S("guest_passes","cowork_enabled",!1,L);return t&&s}},"in-chat-c4excel-upsell":{componentLoader:()=>a(()=>import("./c21899167-BxxMPkVR.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(e=>({default:e.C4ExcelUpsellChatBanner})),useTargeting:function(e){const t=za(),{account:s}=v(),{isDismissed:n}=me(),{lastMessage:a,previousMessage:i}=UQ(e),r=t?"c4excel_cowork_banner_upsell":"c4excel_chat_banner_upsell",o=he("c4excel_chat_banner_upsell","value",!1,L);return!e.isStreaming&&(!(!t&&!o)&&(!!e.conversationUuid&&("error"!==a?.stop_reason&&(!n(r)&&!!sZ({lastMessage:a,previousMessage:i,isFinanceUser:"Finance"===s?.settings?.work_function})))))}},"in-chat-c4ppt-upsell":{componentLoader:()=>a(()=>import("./c047cf0a6-JpxfGRt7.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(e=>({default:e.C4PptUpsellChatBanner})),useTargeting:function(e){const{isDismissed:t}=me(),{lastMessage:s,previousMessage:n}=UQ(e);return!e.isStreaming&&("error"!==s?.stop_reason&&(!t("c4ppt_chat_banner_upsell")&&!!mZ({lastMessage:s,previousMessage:n})))}},"in-chat-c4word-upsell":{componentLoader:()=>a(()=>import("./c4de8e0e5-DPyCEFMQ.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(e=>({default:e.C4WordUpsellChatBanner})),useTargeting:function(e){const t=xe(),{isDismissed:s}=me(),{lastMessage:n,previousMessage:a}=UQ(e);return!e.isStreaming&&(!!t&&("error"!==n?.stop_reason&&(!s("c4word_chat_banner_upsell")&&!!kZ({lastMessage:n,previousMessage:a}))))}},"in-chat-claude-code-file-upload-nudge":{componentLoader:()=>a(()=>import("./c3aa7fd1b-C2KcvyKI.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(e=>({default:e.ClaudeCodeFileUploadChatBanner})),useTargeting:function(e){const t=re(e=>e.files.some(e=>SQ.has(e.file_name.split(".").pop()?.toLowerCase()??""))||e.attachments.some(e=>SQ.has((e.file_name??"").split(".").pop()?.toLowerCase()??"")));return!!G$(e.conversationUuid,t)}},"in-chat-claude-code-install-nudge":{componentLoader:()=>a(()=>import("./c3aa7fd1b-C2KcvyKI.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(e=>({default:e.ClaudeCodeInstallChatBanner})),useTargeting:function(e){const t=$$(e.conversationUuid);return!e.isStreaming&&!!t}},"in-chat-connect-gdrive-upsell":{componentLoader:()=>a(()=>import("./c29c6645d-BcKufCxY.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(e=>({default:e.ConnectGDriveChatBanner})),useTargeting:function(e){const t=kE(),{serverId:s}=wE(),{isDriveAuthenticated:n,isFetched:a}=fE({}),{previousMessage:i}=UQ(e);return!(e.isStreaming||!s)&&(!(!a||!t||n)&&("human"===i?.sender&&(i.attachments?.some(e=>"docx"===e.file_type)??!1)))}},"in-chat-model-switched-notice":{componentLoader:()=>a(()=>import("./cb8129d44-qcl9fjnC.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(e=>({default:e.ModelSwitchedChatBanner})),useTargeting:function(e){const t=QQ(e),{hasModel:s}=Ae("chat"),{pinnedModel:n}=e,{isDismissed:a}=me(),i=HQ(t=>e.conversationUuid?t.initialModelByConversation.get(e.conversationUuid):void 0);return!(!t||a(FQ)||qQ())&&(!(!n||!i||n===i)&&((!e.lastFallbackToModel||n!==e.lastFallbackToModel)&&s(n)))}},"in-chat-long-conversation-nudge":{componentLoader:()=>a(()=>import("./c591d243e-DZuX7yXr.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(e=>({default:e.LongConversationChatBanner})),useTargeting:function(e){const t=QQ(e),s=Ce(t=>e.conversationUuid?t.pathUuidsByConversation[e.conversationUuid]?.length??0:0),{isDismissed:n}=me();return!(!t||n(OQ)||BQ())&&s>=50}},"in-chat-project-suggestion":{componentLoader:()=>a(()=>import("./cdb266ed4-CziuiO1i.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(e=>({default:e.ProjectSuggestionChatBanner})),useTargeting:KQ}}});function XQ({onCoworkDismiss:s,onCoworkAction:n,onCcDismiss:a,onCcAction:i,coworkVariant:r,triggeredByCodeArtifact:o=!1,markMultifileFamilyOnDisplay:l=!1}){const c=wn(),d=Ba("cc_artifact_nudge_priority","variant","control",IL(),o),u=e.useRef(!1),m=t.jsx(AG,{variant:r??("free"===c?"free":"paid"),onDismiss:s,onAction:n,markMultifileFamilyOnDisplay:l});return"cc_priority"===d?t.jsx(K$,{trigger:"artifact",forceVariant:"cc_priority",onDismiss:a,onAction:i,hasTrackedDisplayRef:u,fallback:m}):m}const eJ=fn(()=>a(()=>import("./cdb266ed4-CziuiO1i.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(e=>e.ProjectSuggestionChatBanner),{});function tJ({ctx:s}){const n=KQ(s),[a,i]=qa(`psb-dismissed:${s.conversationUuid}`,!1),r=e.useCallback(()=>i(!0),[i]),o=e.useCallback(()=>i(!0),[i]);return!n.isTargeted||a?null:t.jsx(eJ,{enabled:!0,onDismiss:r,onAction:o})}const sJ={maskImage:["linear-gradient(black,black)","radial-gradient(circle at 20px 0,transparent 19.5px,black 20px)","radial-gradient(circle at 0 0,transparent 19.5px,black 20px)"].join(","),maskPosition:"0 20px, 0 0, 100% 0",maskSize:"100% calc(100% - 20px), 20px 20px, 20px 20px",maskRepeat:"no-repeat"};function nJ({warning:e,placement:s,theme:n,onClick:a,skipInitialAnimation:i=!1,wideTuck:r=!1,announce:o=!0}){const l=dt("w-full border-0.5 relative z-0 px-3.5","bottom"===s?"rounded-t-[20px] border-b-0 pb-7 pt-2":r?"rounded-b-[20px] border-t-0 pb-2 pt-[1.625rem]":"rounded-b-xl border-t-0 pb-2 pt-2.5",{"bg-danger-900 border-transparent":"danger"===n,"text-text-200 border-accent-pro-100/20 bg-accent-pro-900":"pro"===n,"bg-accent text-accent border-transparent":"accent"===n,"bg-surface-1 border-transparent shadow-[inset_0_0_0_0.5px_hsl(var(--border-300)/0.18)]":"info"===n}),c="bottom"===s?{marginTop:0,marginBottom:-20}:{marginTop:r?-20:-4,marginBottom:-4};return t.jsx("div",{role:o?"status":void 0,"aria-live":o?"polite":void 0,"aria-atomic":o?"true":void 0,children:t.jsx(nA,{initial:!i,children:e&&t.jsx(sA.div,{className:"overflow-hidden",initial:{height:0,marginTop:0,marginBottom:0},animate:{height:"auto",...c},transition:{duration:.2,ease:"easeOut"},children:t.jsx(sA.div,{initial:{y:"-100%"},animate:{y:0},transition:{duration:.2,ease:"easeOut"},children:a?t.jsx("button",{className:dt(l,"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-accent-100"),style:r?sJ:void 0,onClick:a,children:e}):t.jsx("div",{className:l,style:r?sJ:void 0,children:e})})})})})}function aJ(){const e=Wa();return"ready"===e.state&&e.result.status===$a.Ready}const iJ=HL([AL({max_version:IL().min(1).optional(),model_display_name:IL().min(1).optional()}).passthrough(),IL(),PL(),UL()]),rJ="cowork_model_update_banner";function oJ(){const t=Qa("cowork_lantern_cloud_config_v2",null,iJ);return e.useMemo(()=>{if(!t||"object"!=typeof t)return null;const e=t.max_version,s=t.model_display_name;return e&&s?{maxVersion:e,modelDisplayName:s}:null},[t])}function lJ(){return oJ()?.modelDisplayName??null}function cJ(){const t=m(),s=Ga(),n=Cs("cowork_lantern_cloud"),a=oJ();return e.useMemo(()=>!(!n||!a)&&(!(!t||!s)&&("ClaudeNest"!==s.build&&(!(!Ka(s.version)||!Ka(a.maxVersion))&&!Ya(s.version,a.maxVersion)))),[n,t,s,a])}function dJ(){const t=cJ(),s=oJ(),n=s?`cowork-model-update-banner-dismissed:${s.maxVersion}`:null,[a,i]=e.useState(!0);e.useEffect(()=>{if(n)try{i(null!==localStorage.getItem(n))}catch{i(!1)}},[n]);const r=e.useCallback(()=>{try{n&&localStorage.setItem(n,(new Date).toISOString())}catch{}i(!0)},[n,i]);return e.useMemo(()=>({required:t,visible:t&&!a,dismiss:r}),[t,a,r])}const uJ=e.memo(function({state:s,Banner:n,icon:a}){const i=JS(),r=ae(),o=aJ(),l=lJ(),c=Ja(),d=o||!c,u=s.visible&&!!l&&(!n||d),m=e.useRef(!1);e.useEffect(()=>{u&&!m.current&&(m.current=!0,r.track({event_key:`claudeai.${rJ}.displayed`}))},[r,u]);const p=e.useCallback(()=>{r.track({event_key:`claudeai.${rJ}.cta_clicked`}),o?(async()=>{const[e,t]=await Promise.all([Promise.resolve(Xa?.getRunningLocalSessions?.()),Promise.resolve(Xa?.getRunningLocalSessionCount?.())]);Math.max(t??0,e?.length??0)>0?Xa?.restartToUpdateWhenIdle?.():Xa?.restartToUpdate?.()})():Xa?.checkForUpdates?.()},[r,o]),f=e.useCallback(()=>{r.track({event_key:`claudeai.${rJ}.dismissed`}),s.dismiss()},[r,s]);if(!u)return null;const g=t.jsx(hs,{id:"1i8ey8m",dangerouslyVisiblePublicValues:{modelName:l}}),h=i.formatMessage({defaultMessage:"Dismiss",id:"TDaF6JVgG6"});return n?t.jsx(n,{icon:a,message:g,actionLabel:t.jsx(XS,{defaultMessage:"Update",id:"BWpuKlRSA1"}),onAction:p,onDismiss:f,dismissAriaLabel:h}):t.jsxs("div",{className:"bg-bg-200 border-0.5 border-border-200 rounded-2xl flex w-full items-center p-3",children:[t.jsx("div",{className:"text-text-100 flex shrink-0 items-center justify-center",children:t.jsx(mJ,{def:wA,className:"size-16"})}),t.jsxs("div",{className:"flex min-w-0 flex-1 items-center gap-3 pl-3 pr-1",children:[t.jsx("p",{className:"text-text-100 min-w-0 flex-1 py-1.5 text-sm",children:g}),o?t.jsx(rN,{size:"sm",onClick:p,className:"shrink-0",children:t.jsx(XS,{defaultMessage:"Update",id:"BWpuKlRSA1"})}):null]}),t.jsx(rN,{variant:"ghost",size:"sm",iconOnly:!0,icon:"X","aria-label":h,onClick:f,className:"shrink-0"})]})});function mJ({def:s,className:n}){const a=e.useId(),i=s.line.map((e,s)=>"string"==typeof e?t.jsx("path",{d:e,fill:"currentColor"},s):t.jsx("path",{d:e.d,fillRule:e.fillRule,clipRule:e.fillRule,fill:"currentColor"},s));return t.jsx("svg",{viewBox:"0 0 500 500",className:n,"aria-hidden":"true",children:s.clip?t.jsxs(t.Fragment,{children:[t.jsx("clipPath",{id:a,children:t.jsx("path",{d:s.clip})}),t.jsx("g",{clipPath:`url(#${a})`,children:i})]}):i})}const pJ=["7d_opus","7d_sonnet","7d_oi"];function fJ(e,t){if(!e)return{windowName:null,status:null,surpassedThreshold:null,modelDisplayName:null};const s="exceeded_limit"===e["5h"]?.status,n="exceeded_limit"===e["7d"]?.status,a="exceeded_limit"===e["7d_cowork"]?.status,i="exceeded_limit"===e.overage?.status,r=pJ.find(t=>"exceeded_limit"===e[t]?.status),o=pJ.find(t=>"approaching_limit"===e[t]?.status),l=(r||o)&&t?ei(t)?.base??null:null;if((n||s||r||a)&&i)return{windowName:"overage",status:e.overage,surpassedThreshold:e.overage?.surpassed_threshold??null,modelDisplayName:null};const c=s||n||a,d=[];if(s&&d.push({name:"5h",resetTime:e["5h"].resets_at}),n&&d.push({name:"7d",resetTime:e["7d"].resets_at}),r&&!c&&d.push({name:r,resetTime:e[r].resets_at}),a&&d.push({name:"7d_cowork",resetTime:e["7d_cowork"].resets_at}),d.length>1){const t=d.reduce((e,t)=>t.resetTime>e.resetTime?t:e);return{windowName:t.name,status:e[t.name],surpassedThreshold:null,modelDisplayName:null}}if(r&&!c)return{windowName:r,status:e[r],surpassedThreshold:null,modelDisplayName:l};if(a)return{windowName:"7d_cowork",status:e["7d_cowork"],surpassedThreshold:null,modelDisplayName:null};if(n)return{windowName:"7d",status:e["7d"],surpassedThreshold:null,modelDisplayName:null};if(s)return{windowName:"5h",status:e["5h"],surpassedThreshold:null,modelDisplayName:null};const u="approaching_limit"===e["5h"]?.status||"approaching_limit"===e["7d"]?.status;if(o&&!u){const t=e[o];return{windowName:o,status:t,surpassedThreshold:t.surpassed_threshold??null,modelDisplayName:l}}return"approaching_limit"===e["5h"]?.status?{windowName:"5h",status:e["5h"],surpassedThreshold:e["5h"]?.surpassed_threshold??null,modelDisplayName:null}:"approaching_limit"===e["7d"]?.status?{windowName:"7d",status:e["7d"],surpassedThreshold:e["7d"]?.surpassed_threshold??null,modelDisplayName:null}:"approaching_limit"===e.overage?.status?{windowName:"overage",status:e.overage,surpassedThreshold:e.overage?.surpassed_threshold??null,modelDisplayName:null}:{windowName:null,status:null,surpassedThreshold:null,modelDisplayName:null}}const gJ=["enterprise_standard","enterprise_tier_1"];function hJ(){return CJ().isLegacySeatBased}function CJ(){const{tiers:e,isLoading:t}=ti({includeUnassigned:!1});return{isLegacySeatBased:e.some(e=>gJ.includes(e)),isLoading:t}}const xJ="overages-upgrade-upsell-modal-opened";let vJ=null;function yJ(e){vJ=e}function bJ(e,t=!1){vJ?.(e,t)}let kJ=null;function wJ(e){kJ=e}function MJ(e,t){kJ?.(e,t)}let _J=null;function jJ(e){_J=e}function SJ(e){_J?.(e)}let LJ=null;function NJ(e){LJ=e}function IJ(e){LJ?.(e)}let TJ=null;function AJ(e){TJ=e}function EJ(e){TJ?.(e)}let RJ=null;function DJ(e){RJ=e}function HJ(e){RJ?.(e)}let PJ=null;function UJ(e){PJ=e}function OJ(){return PJ}function FJ(){const t=si(),{setStoredModel:s}=Ae(),{setDraftModel:n}=J();return e.useCallback((e,a)=>{(a||"code"===t)&&s(e),n(e)},[t,s,n])}function VJ(e){return t.jsx("div",{...e,className:"font-normal text-[0.65rem] sm:text-xs w-full flex gap-1.5 items-center justify-between"})}function zJ({onClick:e,className:s}){const n=JS();return t.jsx("button",{type:"button",onClick:e,className:`-m-1 shrink-0 p-1 text-muted transition-colors hover:text-primary ${s??""}`,"aria-label":n.formatMessage({defaultMessage:"Dismiss",id:"TDaF6JVgG6"}),children:t.jsx($L,{name:"X",size:"sm"})})}const ZJ="credits_required_model_config",BJ=[],qJ=AL({mode:TL(["subscription","credits"]).optional(),classes:NL(IL()).optional()}).nullable().catch(null);function WJ(){const e=Qa(ZJ,null,qJ),t=ni(),s=pe();return t||!s?{mode:null,classes:BJ}:{mode:e?.mode??null,classes:e?.classes??BJ}}function $J(e){const t=ii(),[s,n]=xs("credits-required-info-band-dismissed",null);return[t&&null!==s&&s===e,t=>{n(t?e:null)}]}function GJ(e){if(!e)return"";const t=ei(e);if(t)return t.base.replace(/^Claude\s+/,"");const s=e.replace(/^claude-/,"").split(/[-\s]/)[0]??"";return s.charAt(0).toUpperCase()+s.slice(1)}function KJ(e,t){return t.some(t=>e===t||e.startsWith(`${t}-`)||e.startsWith(`claude-${t}`))}function YJ(){const{classes:t}=WJ();return e.useCallback(e=>!!e&&KJ(e,t),[t])}function QJ(){const t=Qa(ZJ,null,qJ),s=t?.classes??BJ;return e.useCallback(e=>!!e&&KJ(e,s),[s])}function JJ(){const e=Qa(ZJ,null,qJ);return e?.mode??null}const XJ="Opus 4.8";function eX({mode:e,modelId:s}){const n=Cs("pewter_lantern_shoal");if("credits"===e){const e=GJ(s);return t.jsx(hs,{id:"a182px",dangerouslyVisiblePublicValues:{model:e,opusModel:XJ}})}return n?t.jsx(hs,{id:"1mk81vr"}):t.jsx(XS,{defaultMessage:"Fable is the most capable model and draws down usage 2\xd7 faster than Opus",id:"RcX/sYlH6X"})}function tX(){const t=ai(),{activeOrganization:s}=v(),n=s?.uuid;return e.useCallback(()=>{n&&t({type:"within_limit"},n,"")},[t,n])}function sX(e,t,s,n,a=!0){switch(t){case"org_level_disabled":return n?()=>IJ({targetModelId:e}):()=>SJ({targetModelId:e,requiresEnablement:!0,offerModelSwitch:a});case"org_level_disabled_until":case"seat_tier_zero_credit_limit":case"member_zero_credit_limit":case"org_spend_cap_reached":return()=>MJ(s);default:return()=>SJ({targetModelId:e,requiresEnablement:!1,offerModelSwitch:a})}}function nX({modelId:e,messageLimit:s}){const n=GJ(e),a=s.overageDisabledReason,i=s.creditsRequired?.canUserPurchaseCredits??!1,{data:r}=ri({enabled:"org_level_disabled"===a&&i,noToast:!0}),o=sX(e,a,s,(r?.amount??0)>0);let l,c;switch(a){case"out_of_credits":l="1mv5mnx",c=t.jsx(XS,{defaultMessage:"Buy usage credits",id:"7q0oJax+NE"});break;case"org_level_disabled_until":case"seat_tier_zero_credit_limit":case"member_zero_credit_limit":case"org_spend_cap_reached":l="7qs880",c=t.jsx(XS,{defaultMessage:"Adjust spend limit",id:"51Ke/CIT1g"});break;case"org_level_disabled":l="maqwxi",c=t.jsx(XS,{defaultMessage:"Turn on usage credits",id:"RF538op5DA"});break;default:l="wwpz5x",c=t.jsx(XS,{defaultMessage:"Buy usage credits",id:"7q0oJax+NE"})}return t.jsx(pI,{allowSendAttempt:!0,icon:t.jsx($L,{name:"Info",size:"sm",className:"shrink-0"}),actionButton:i?t.jsx("button",{type:"button",onClick:o,className:"underline underline-offset-2",children:c}):null,children:t.jsx(hs,{id:l,dangerouslyVisiblePublicValues:{model:n}})})}function aX({mode:s,modelId:n,onDismiss:a}){const i=ae(),r=e.useRef(!1);e.useEffect(()=>{r.current||(r.current=!0,i.track({event_key:"claudeai.model_usage_banner.shown",mode:s,banner_surface:"chat"}))},[i,s]);return t.jsxs(VJ,{children:[t.jsxs("div",{className:"flex items-start gap-1 text-secondary text-body",children:[t.jsx($L,{name:"Info",size:"sm",className:"shrink-0 mt-0.5"}),t.jsx("span",{children:t.jsx(eX,{mode:s,modelId:n})})]}),t.jsx(zJ,{onClick:()=>{i.track({event_key:"claudeai.model_usage_banner.dismissed",mode:s,banner_surface:"chat"}),a()}})]})}function iX(){const e=YJ(),t=ze("console_default_model","model",null,IL().nullable())??void 0,{selectableModels:s}=Ae("chat");return t&&!e(t)?t:s.find(t=>!e(t.id))?.id}function rX({currentModelId:s}){const n=FJ(),{setModel:a}=J(),i=iX(),r=e.useCallback(()=>{if(!i)return;const e=OJ();e?(e(i),a(i)):n(i,!0),EJ({fromModelId:s,toModelId:i})},[n,a,i,s]);return i?t.jsx(ct,{className:"font-base text-secondary hover:text-primary",onClick:r,children:t.jsx(XS,{defaultMessage:"Switch models",id:"nYrm/yRPg3"})}):null}function oX({allowSelfUpgrade:e=!0,messageLimit:s,isWarning:n=!1,isOverageContext:a=!1,asButton:i=!1}={}){const r=cX(e);let o=null;switch(r){case"contact-sales":o=t.jsx(dX,{asButton:i});break;case"subscribe":o=t.jsx(mX,{asButton:i});break;case"subscribe-pro-only":o=t.jsx(pX,{asButton:i});break;case"subscribe-max":o=t.jsx(fX,{asButton:i});break;case"subscribe-max-20x":o=t.jsx(gX,{asButton:i});break;case"enable-overages":o=t.jsx(hX,{asButton:i});break;case"overages-or-upgrade":o=t.jsx(CX,{messageLimit:s,isWarning:n,asButton:i});break;case"request-extra-usage":o=t.jsx(MX,{isOverageWarning:a,asButton:i});break;case"request-seat":o=t.jsx(_X,{asButton:i});break;case"none":o=null}return{limitActionButtonType:r,limitActionButton:o}}function lX({isOveragesProvisioningAvailable:e,canManageBilling:t,isRaven:s}){return e&&t&&!s}function cX(e,t){const s=fi(),n=gi(),a=hi(),i=Ci(),r=xi(),o=vi(),l=xe(),c=yi(),d=bi(),u=ki();if(!o)return"contact-sales";if(c)return"request-seat";return(s||a||i)&&e?s?n||a||i?"subscribe":"subscribe-pro-only":a?lX({isOveragesProvisioningAvailable:u,canManageBilling:r,isRaven:l})?"overages-or-upgrade":"subscribe-max":i?lX({isOveragesProvisioningAvailable:u,canManageBilling:r,isRaven:l})?"overages-or-upgrade":"subscribe-max-20x":"none":u?l&&!r?d&&!t?.hasFiniteEffectiveCap?"none":"request-extra-usage":l?"enable-overages":"overages-or-upgrade":"none"}function dX({asButton:e=!1}){const{websiteBaseUrl:s}=$(),n=`${s}/contact-sales`,a=t.jsx(XS,{defaultMessage:"Contact us to upgrade",id:"VifKcG4Va9"});return e?t.jsx(rN,{variant:"secondary",size:"sm",href:n,children:a}):t.jsx(ds,{href:n,className:"text-sm",children:a})}function uX({href:e,asButton:s=!1}){const n=t.jsx(XS,{defaultMessage:"Upgrade",id:"0h/lPMeYkq"});return s?t.jsx(rN,{variant:"secondary",size:"sm",href:e,children:n}):t.jsx(kt,{variant:"primary",size:"sm",href:e,children:n})}function mX({asButton:e=!1}){return t.jsx(uX,{href:"/upgrade?hide_free=true&from=ratelimit",asButton:e})}function pX({asButton:e=!1}){return t.jsx(uX,{href:"/upgrade/pro?from=ratelimit",asButton:e})}function fX({asButton:e=!1}){return t.jsx(uX,{href:"/upgrade?hide_pro=true&from=ratelimit",asButton:e})}function gX({asButton:e=!1}){return t.jsx(uX,{href:"/upgrade?from=ratelimit",asButton:e})}function hX({asButton:s=!1}){const n=e.useContext(fI),{track:a}=ae(),i=xe(),r=xi(),o=e.useRef(!1);e.useEffect(()=>{n||o.current||(o.current=!0,a({event_key:"claudeai.limit_action.enable_overages.shown",data:{user_type:r?"admin":"member"}}))},[a,r,n]);const l=e.useCallback(()=>{a({event_key:"claudeai.limit_action.enable_overages.clicked",data:{user_type:r?"admin":"member"}})},[a,r]),c=i&&r?"/admin-settings/usage":"/settings/usage",d=t.jsx(XS,{defaultMessage:"Manage usage",id:"57pjl5bO3F"});return s?t.jsx(rN,{variant:"secondary",size:"sm",href:c,onClick:l,children:d}):t.jsx(ds,{href:c,className:"text-sm",onClick:l,children:d})}function CX({messageLimit:s,isWarning:n=!1,asButton:a=!1}){const i=e.useContext(fI),r=e.useRef(!1);e.useEffect(()=>{if(!n&&!i&&!r.current){const e=localStorage.getItem(xJ);if(e){const t=new Date(e).getTime();if((new Date).getTime()-t<6048e5)return}bJ(s,n),r.current=!0}},[n,i]);const o=Mi(),l=e.useCallback(()=>{o(),bJ(s,n)},[s,n,o]),c=t.jsx(XS,{defaultMessage:"Get more usage",id:"Ri3L5XBXx2"});return a?t.jsx(rN,{variant:"secondary",size:"sm",onClick:l,children:c}):t.jsx(ds,{className:"text-sm",onClick:l,children:c})}function xX(e){return`claude.ai:limit-increase-cleared:${e??"unknown"}`}const vX=new Map;function yX(e,t){if(!t)return!1;const s=xX(e),n=mi().getItem(s)??vX.get(s)??null;return null!==n&&n>=t}function bX(t={}){const s=t.enabled??!0,{activeOrganization:n}=v(),{data:a,isLoading:i}=oi("limit_increase",["pending","approved"],{enabled:s}),r=n?.settings?.disabled_admin_request_types,o=Array.isArray(r)&&r.includes("limit_increase"),l=li(a),{limitingPeriod:c,isLoading:d,isError:u}=ci(s),m=d||u,p=pi(c),f=di(a),g=n?.uuid,h=ui();e.useEffect(()=>{const e=f?.resolved_at;s&&e&&!yX(g,e)&&(!function(e,t){const s=xX(e);mi().setItem(s,t),vX.set(s,t)}(g,e),h())},[s,g,f?.resolved_at,h]),e.useEffect(()=>{if(!s)return;const e=xX(g),t=t=>{t.key===e&&t.newValue&&(vX.set(e,t.newValue),h())};return window.addEventListener("storage",t),()=>window.removeEventListener("storage",t)},[s,g,h]);const C=!!f&&!yX(g,f.resolved_at),x=!s||!i&&(l||C||!d);return s?i||o?{state:"unavailable",isSettled:x}:l||C?{state:"pending",isSettled:x}:m?{state:"unavailable",isSettled:x}:p?{state:"actionable",isSettled:x}:{state:"unavailable",isSettled:x}:{state:"actionable",isSettled:x}}function kX(e={}){return bX(e).state}function wX({source:s,enabled:n=!0}){const{track:a}=ae(),i=wi({enabled:n}),r=on(),o=n&&i,l=e.useCallback(()=>{a({event_key:"claudeai.limit_action.view_usage.clicked",data:{source:s}}),r&&mn("usage")},[a,s,r]);return e.useCallback(e=>o?t.jsx(ds,{href:r?void 0:"/settings/usage",onClick:l,children:e}):t.jsx(t.Fragment,{children:e}),[o,r,l])}function MX({isOverageWarning:s,asButton:n=!1}){const a=e.useContext(fI),i=JS(),{track:r}=ae(),{addSuccess:o,addError:l}=ut(),c=hJ(),d=kX(),{mutateAsync:u,isPending:m}=_i(),p="actionable"!==d,{limitingPeriod:f}=ci(!p),g=e.useRef(!1),h="actionable"===d;e.useEffect(()=>{a||h&&!g.current&&(g.current=!0,r({event_key:"claudeai.admin_request.limit_increase.shown",data:{source:s?"overage_warning":"limit_exceeded"}}))},[h,r,s,a]);const C=e.useCallback(async()=>{if(!p&&pi(f)){r({event_key:"claudeai.admin_request.limit_increase.member_request_clicked",data:{source:s?"overage_warning":"limit_exceeded"}});try{await u({request_type:"limit_increase",details:null,...f?{period:f}:{}}),o(i.formatMessage({defaultMessage:"Your request has been sent to your admin.",id:"ROnsgIHUkE"}))}catch{l(i.formatMessage({defaultMessage:"There was an error submitting your request. Please try again later.",id:"3Kuk8BVb9J"}),{messageForLogging:"There was an error submitting your request. Please try again later."})}}},[i,r,s,u,o,l,p,f]);if("unavailable"===d)return null;if("pending"===d)return t.jsx("span",{className:"font-base text-text-500 opacity-50",children:t.jsx(XS,{defaultMessage:"Request sent to admin",id:"n8OjslQAdc"})});const x=s?t.jsx(XS,{defaultMessage:"Request more",id:"vi9dUGyGRX"}):c?t.jsx(XS,{defaultMessage:"Request extra usage",id:"gJ4VdAaFXc"}):t.jsx(XS,{defaultMessage:"Request usage credits",id:"3gNFS1DF0J"});return n?t.jsx(rN,{variant:"secondary",size:"sm",disabled:m,onClick:C,children:x}):t.jsx(ds,{className:"font-base",disabled:m,onClick:C,children:x})}function _X({asButton:s=!1}){const n=e.useContext(fI),a=JS(),{track:i}=ae(),{addSuccess:r,addError:o}=ut(),l=ji(),{data:c,isLoading:d}=oi("seat_upgrade",["pending","dismissed"]),{mutateAsync:u,isPending:m}=_i(),p=li(c),f=Si(c),g=e.useRef(!1),h=!d&&!p&&!f;e.useEffect(()=>{n||h&&!g.current&&(g.current=!0,i({event_key:"claudeai.admin_request.seat_upgrade.shown",data:{source:"unassigned_seat_warning",seat_tier:l?.seat_tier}}))},[h,i,l?.seat_tier,n]);const C=e.useCallback(async()=>{i({event_key:"claudeai.admin_request.seat_upgrade.member_request_clicked",data:{source:"unassigned_seat_warning",seat_tier:l?.seat_tier}});try{await u({request_type:"seat_upgrade",details:{current_seat_tier:l?.seat_tier??null}}),r(a.formatMessage({defaultMessage:"Your request has been sent to your admin.",id:"ROnsgIHUkE"}))}catch(e){o(a.formatMessage({defaultMessage:"There was an error submitting your request. Please try again later.",id:"3Kuk8BVb9J"}),{error:e,errorContext:{tags:{source:"request_seat_button"}},messageForLogging:"There was an error submitting your request. Please try again later."})}},[a,i,l?.seat_tier,u,r,o]);if(d)return null;if(!p&&f)return null;if(p)return t.jsx("span",{className:"font-base text-text-500 opacity-50",children:t.jsx(XS,{defaultMessage:"Request sent to admin",id:"n8OjslQAdc"})});const x=t.jsx(XS,{defaultMessage:"Request seat",id:"oYbgTuTFAM"});return s?t.jsx(rN,{variant:"secondary",size:"sm",disabled:m,onClick:C,children:x}):t.jsx(ds,{className:"font-base",disabled:m,onClick:C,children:x})}function jX({targetModelId:s}){const n=e.useContext(fI),{track:a}=ae(),i=YJ()(s),{model:r}=J(),o=!!s&&r===s,l=e.useRef(!1);e.useEffect(()=>{n||l.current||(l.current=!0,a({event_key:"claudeai.limit_action.add_funds.shown"}))},[a,n]);const c=Mi(),d=e.useCallback(()=>{a({event_key:"claudeai.limit_action.add_funds.clicked"}),c(),SJ({targetModelId:o?s:void 0,copyModelId:s,offerModelSwitch:i&&o})},[a,c,s,o,i]);return t.jsx("button",{onClick:d,className:"underline text-sm",children:t.jsx(XS,{defaultMessage:"Buy more",id:"3dtNpsoQpp"})})}function SX({messageLimit:s,thenAddFunds:n=!1}){const a=e.useContext(fI),{track:i}=ae(),r=e.useRef(!1);e.useEffect(()=>{a||r.current||(r.current=!0,i({event_key:"claudeai.limit_action.increase_spend_limit.shown",data:{then_add_funds:n}}),MJ(s,{thenAddFunds:n}))},[a]);const o=e.useCallback(()=>{i({event_key:"claudeai.limit_action.increase_spend_limit.clicked",data:{then_add_funds:n}}),MJ(s,{thenAddFunds:n})},[i,s,n]);return t.jsx(ds,{className:"text-sm",onClick:o,children:t.jsx(XS,{defaultMessage:"Increase spend limit",id:"4O5ZUenxzc"})})}function LX({label:s}={}){const n=e.useContext(fI),{track:a}=ae(),i=xe(),r=xi(),o=e.useRef(!1);e.useEffect(()=>{n||o.current||(o.current=!0,a({event_key:"claudeai.limit_action.manage_usage.shown",data:{user_type:r?"admin":"member"}}))},[a,r,n]);const l=e.useCallback(()=>{a({event_key:"claudeai.limit_action.manage_usage.clicked",data:{user_type:r?"admin":"member"}})},[a,r]);return t.jsx(ds,{href:i?"/admin-settings/usage":"/settings/usage",className:"text-sm",onClick:l,children:s??t.jsx(XS,{defaultMessage:"Manage spend limit",id:"vx3y3rModv"})})}const NX=fn(()=>a(()=>import("./c8d1355bb-0KdWxj4m.js"),__vite__mapDeps([0,1,2,4]),import.meta.url).then(e=>e.ActivationCreditOfferModal),{}),IX=fn(()=>a(()=>import("./c29d35996-hchn961B.js").then(e=>e.b),__vite__mapDeps([0,1]),import.meta.url).then(e=>e.SetOverageLimitsModal),{}),TX=fn(()=>a(()=>import("./c3a484033-B1gyowQI.js").then(e=>e.k),__vite__mapDeps([0,1]),import.meta.url).then(e=>e.AutoReloadModal),{});let AX=!1;const EX="activation-credit-offer-dismissed";function RX({autoOpen:s,resetTime:n,resetDay:a,windows:i}){const r=e.useContext(fI),{activeOrganization:o}=v(),l=function(e,t){return`${e??""}:${"exceeded_limit"===t?.["7d"]?.status?t["7d"].resets_at:"exceeded_limit"===t?.["5h"]?.status?t["5h"].resets_at:""}`}(o?.uuid,i),[c,d]=e.useState(!1),u=e.useRef("manual");e.useEffect(()=>{r||s&&!AX&&(AX=!0,function(){try{return window.localStorage.getItem(EX)}catch{return null}}()!==l&&(u.current="auto",d(!0)))},[s,l,r]);return t.jsxs(t.Fragment,{children:[t.jsx(ds,{onClick:()=>{u.current="manual",d(!0)},children:t.jsx(hs,{id:"1th0x40"})}),t.jsx(DX,{isOpen:c,onClose:()=>{d(!1),function(e){try{window.localStorage.setItem(EX,e)}catch{}}(l)},resetTime:n,resetDay:a,windows:i,openTrigger:u.current})]})}function DX({isOpen:s,onClose:n,resetTime:a,resetDay:i,windows:r,openTrigger:o}){const[l,c]=e.useState(null),d=s||null!==l,{data:u}=Ii({noToast:!0,enabled:d}),{data:m}=Ti({enabled:d}),{data:p}=ri({enabled:d}),f=p?.auto_reload_settings,g=e.useRef(null),h=()=>{c(null),g.current?.(),g.current=null,n()};return e.useEffect(()=>()=>{g.current?.(),g.current=null},[]),t.jsxs(t.Fragment,{children:[s&&!l&&t.jsx(NX,{onClose:n,resetTime:a,resetDay:i,windows:r,openTrigger:o,onOpenFollowUp:(e,t)=>{g.current=t,c(e)}}),"spendLimit"===l&&t.jsx(IX,{isOpen:!0,onClose:h,currentLimit:null===u?.monthlyLimit?"unlimited":u?.monthlyLimit,isPureUsageBased:m?.is_pure_usage_based??!1}),"autoReload"===l&&t.jsx(TX,{isOpen:!0,onClose:h,currentEnabled:f?.enabled,currentAmount:f?.reload_to_in_minor_units,currentThreshold:f?.threshold_in_minor_units})]})}const HX=fn(()=>a(()=>import("./c49025db1-Dsv7SuLH.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(e=>e.MessageLimitUpsellModal),{});let PX=null;function UX(){const[s,n]=e.useState(!1);return e.useEffect(()=>(PX=n,()=>{PX=null}),[]),s?t.jsx(OX,{onClose:()=>n(!1)}):null}function OX({onClose:s}){const n=ae();return e.useEffect(()=>{n.track({event_key:"apps.message_limit_modal_shown",variant:"visual"})},[]),t.jsx(HX,{onClose:s})}function FX(){const{data:e,isLoading:t}=WE();return{hasOAuthTokens:e?.some(e=>!e.is_revoked)??!1,isLoading:t}}const VX=()=>Math.floor(Date.now()/1e3)+14400;function zX(e,t){if(e<80)return{type:"within_limit",windows:{"5h":{status:"within_limit",resets_at:VX(),utilization:e/100}}};if(e>=100){const s={status:"exceeded_limit",resets_at:VX(),utilization:Math.min(1.2,e/100)};return t?{type:"within_limit",overageInUse:!0,windows:{"5h":s}}:{type:"exceeded_limit",resetsAt:VX(),windows:{"5h":s}}}return{type:"approaching_limit",resetsAt:VX(),remaining:Math.round((100-e)/5),windows:{"5h":{status:"approaching_limit",surpassed_threshold:e/100,resets_at:VX(),utilization:e/100}}}}const ZX=fT(e=>({dismissedForResetsAt:void 0,dismiss:t=>e({dismissedForResetsAt:t})})),BX=fT(e=>({inputWarningConfig:void 0,messageLimit:void 0,planUsagePercent:void 0,usageRingEnabled:void 0,seatTier:void 0,hasOAuthTokens:void 0,show2xPromo:void 0,sliderOverageOn:void 0,setInputWarningConfig:t=>e({inputWarningConfig:t}),setMessageLimit:t=>e({messageLimit:t}),setPlanUsagePercent:t=>e({planUsagePercent:t}),setUsageRingEnabled:t=>e({usageRingEnabled:t}),setSeatTier:t=>e({seatTier:t}),setHasOAuthTokens:t=>e({hasOAuthTokens:t}),setShow2xPromo:t=>e({show2xPromo:t}),setSliderOverageOn:t=>e({sliderOverageOn:t}),clear:()=>e({inputWarningConfig:void 0,messageLimit:void 0,planUsagePercent:void 0,usageRingEnabled:void 0,seatTier:void 0,hasOAuthTokens:void 0,show2xPromo:void 0,sliderOverageOn:void 0})}));function qX(e){return Math.floor(e+1e-9)}const WX=t.jsx(SR,{className:"h-4 w-4 shrink-0",weight:"regular","aria-hidden":!0}),$X=e=>e.toLocaleString({month:"short",day:"numeric"});function GX(){const t=e.useContext(fI);return e.useEffect(()=>{t||PX&&PX(!0)},[t]),null}function KX({bannerType:t,ctaVariant:s,windowName:n}){const a=e.useContext(fI),{track:i}=ae(),r=e.useRef(!1);return e.useEffect(()=>{a||r.current||(r.current=!0,i({event_key:"claudeai.limit_banner.shown",data:{banner_type:t,cta_variant:s,window_name:n}}))},[i,t,s,n,a]),null}function YX(e){if(!e)return{isOverageScenario:!1,isBlocking:!1,isActive:!1,isApproachingLimit:!1};if("within_limit"===e.type)return e.overageInUse?{isOverageScenario:!0,isBlocking:!1,isActive:!0,isApproachingLimit:!1}:{isOverageScenario:!1,isBlocking:!1,isActive:!1,isApproachingLimit:!1};const t="exceeded_limit"===e.type&&!!e.overageDisabledReason&&"overage_not_provisioned"!==e.overageDisabledReason&&"org_level_disabled"!==e.overageDisabledReason,s=e.windows?.overage?.status,n="exceeded_limit"===s,a="exceeded_limit"===e.type&&!e.overageInUse&&!e.overageDisabledReason&&void 0!==s&&"exceeded_limit"!==s,i=!!e.overageInUse||t||n||a,r=n||t;return{isOverageScenario:i,isBlocking:r,isActive:!r&&i,isApproachingLimit:!r&&i&&!a&&"approaching_limit"===s}}function QX(){const{activeOrganization:s}=v(),n=Ai();Ei(n,s?.uuid);const a=n&&"within_limit"!==n.type&&(n.resetsAt&&1e3*n.resetsAt<=Date.now()||"exceeded_limit"===n.type&&!n.resetsAt&&!n.overageDisabledReason&&!n.creditsRequired),i=BX(e=>e.messageLimit),r=BX(e=>e.seatTier),o=i??(a?void 0:n),l=xe(),c=qn(),d=Wn(),u=xi(),m=ni()??!1,p=r?"usage-based"===r:m,f=yi(),[g,h]=e.useState(null),[C,x]=e.useState(!0),{model:y}=J(),b=YJ(),k=!!o?.sentOnModel&&b(o.sentOnModel),w=!!y&&k&&!b(y),M=!c&&!l&&!d;if(f&&"exceeded_limit"===o?.type)return{messageLimit:o,exceededMessageLimitWarning:t.jsx(JX,{messageLimit:o})};const _=YX(o),j="exceeded_limit"===o?.type&&!!o.creditsRequired&&!o.perModelLimit;if(o&&(_.isOverageScenario&&!_.isApproachingLimit||j)){if(_.isBlocking||j)return{messageLimit:o,overageExceededWarning:t.jsx(n1,{messageLimit:o,isUsageBasedSeatTier:p})};return{messageLimit:o,approachingMessageLimitWarning:C&&!p&&!w&&!("exceeded_limit"===o.type&&o.creditsRequired)?t.jsx(a1,{messageLimit:o,onDismiss:()=>x(!1)}):void 0}}if("exceeded_limit"===o?.type||"approaching_limit"===o?.type&&0===o.remaining&&!_.isApproachingLimit)return o.overageDisabledReason||u||"overage"===o.representativeClaim||f||o.perModelLimit?{messageLimit:o,exceededMessageLimitWarning:t.jsxs(t.Fragment,{children:[t.jsx(JX,{messageLimit:o,isUsageBasedSeatTier:p}),M&&t.jsx(GX,{})]})}:{messageLimit:o};if("approaching_limit"===o?.type){if(!o.overageDisabledReason&&!u&&"overage"!==o.representativeClaim&&!o.perModelLimit)return{messageLimit:o};const{windowName:e,surpassedThreshold:s}=fJ(o.windows,o.sentOnModel);return{messageLimit:o,approachingMessageLimitWarning:null===g||g.windowName!==e||null!==s&&s>g.threshold?t.jsx(s1,{messageLimit:o,isUsageBasedSeatTier:p,onDismiss:()=>h({windowName:e,threshold:s??0})}):void 0}}return{}}function JX({messageLimit:s,isUsageBasedSeatTier:n=!1}){const a=xe(),i=qn(),r=Wn(),o=yi(),{limitActionButton:l,limitActionButtonType:c}=oX({messageLimit:s,isOverageContext:n}),d=BX(e=>e.hasOAuthTokens),{hasOAuthTokens:u}=FX(),m=d??u,{windowName:p,status:f,modelDisplayName:g}=fJ(s.windows,s.sentOnModel),h=xi(),C=y("overages_upsell_disabled"),x=!!g&&h&&!C&&"org_level_disabled"===s.overageDisabledReason,{data:v}=ri({enabled:x,noToast:!0}),{showOffer:b,isResolving:k}=function(t){const s=y("amber_otter_lantern"),n=qn(),a=Wn(),i=xe(),r=s&&(n||a)&&!i&&function(e){return"exceeded_limit"===e?.["5h"]?.status||"exceeded_limit"===e?.["7d"]?.status}(t),{data:o,isLoading:l}=Li({campaign:Ni,noToast:!0,enabled:r}),c=r&&!!o&&!!o.eligible&&!o.granted&&(o.available||!!o.needs_payment_setup),[d,u]=e.useState(!1);return e.useEffect(()=>{c&&u(!0)},[c]),{showOffer:c||d,isResolving:r&&l&&!o}}(s.windows),w=!i&&!a&&!r;if(o)return t.jsxs(pI,{actionButton:l,dangerText:!0,children:[t.jsx(KX,{bannerType:"exceeded",ctaVariant:c,windowName:null}),t.jsx(XS,{defaultMessage:"You don't have a seat assigned. Ask your organization admin to assign you a seat.",id:"ESpvpBCOGG"})]});if(n&&"overage_not_provisioned"===s.overageDisabledReason)return t.jsxs(pI,{actionButton:l,dangerText:!0,allowSendAttempt:!!s.creditsRequired,children:[t.jsx(KX,{bannerType:"exceeded",ctaVariant:c,windowName:null}),t.jsx(XS,{defaultMessage:"Your usage allocation hasn't been set up yet.",id:"1CkZjOq6JZ"})]});if(n&&"org_level_disabled"===s.overageDisabledReason)return t.jsxs(pI,{actionButton:l,dangerText:!0,allowSendAttempt:!!s.creditsRequired,children:[t.jsx(KX,{bannerType:"exceeded",ctaVariant:c,windowName:null}),t.jsx(XS,{defaultMessage:"Your organization has disabled usage.",id:"/+2pQlKCPR"})]});if(x&&(v?.amount??0)>0)return t.jsxs(pI,{allowSendAttempt:!0,icon:WX,actionButton:t.jsx("button",{type:"button",className:"underline underline-offset-2",onClick:()=>IJ({}),children:t.jsx(XS,{defaultMessage:"Turn on credits",id:"vw4YgrQwXF"})}),children:[t.jsx(KX,{bannerType:"exceeded",ctaVariant:"enable-overages",windowName:p}),t.jsx(XS,{defaultMessage:"You've reached your {model} limit. Turn on usage credits to keep using {model} or switch models to continue this chat.",id:"u7tW6Ab0MK",values:{model:g}})]});const M=f?.resets_at||s.resetsAt;if(!M)return null;const _=GS.fromSeconds(M),j="exceeded_limit"===s.windows?.["7d"]?.status?s.windows["7d"]:void 0,S="exceeded_limit"===s.windows?.["5h"]?.status?s.windows["5h"]:void 0,L=j??S,N=L?GS.fromSeconds(L.resets_at):_;return t.jsxs(pI,{actionButton:t.jsxs("span",{className:"inline-flex items-center gap-2",children:[t.jsx(i1,{messageLimit:s}),b?t.jsx(RX,{autoOpen:!0,resetTime:N.toLocaleString(GS.TIME_SIMPLE),resetDay:j||!S?N.toLocaleString({month:"short",day:"numeric"}):void 0,windows:s.windows}):k?null:l]}),icon:g?WX:void 0,minimalUi:!g,allowSendAttempt:!!g||pJ.some(e=>e===p),children:[t.jsx(KX,{bannerType:"exceeded",ctaVariant:c,windowName:p}),(()=>{const e=_.toLocaleString(GS.TIME_SIMPLE);if(w){if(p&&p.startsWith("7d")){const s=$X(_);return t.jsx(XS,{defaultMessage:"You are out of free <link>messages</link> until {day} at {time}",id:"jns39S6Lx0",values:{day:s,time:e,link:e=>t.jsx(ds,{target:"_blank",rel:"noreferrer",href:Hi,children:e})}})}return t.jsx(XS,{defaultMessage:"You are out of free <link>messages</link> until {time}",id:"PKaisys/Ji",values:{time:e,link:e=>t.jsx(ds,{target:"_blank",rel:"noreferrer",href:Hi,children:e})}})}if(m&&!g)return t.jsx(XS,{defaultMessage:"Usage limit reached \u2219 Resets {time} \u2219 <link>limits shared with Claude Code</link>",id:"kWBmnBHkJ1",values:{time:e,link:e=>t.jsx(ds,{href:"/settings/claude-code",children:e})}});const s=$X(_);return"5h"===p?t.jsx(XS,{defaultMessage:"You've reached your session limit. It resets at {time}.",id:"OTZfypjWAC",values:{time:e}}):"7d"===p?t.jsx(XS,{defaultMessage:"You've reached your weekly limit. It resets {day} at {time}.",id:"zB2cYFBQjl",values:{day:s,time:e}}):g?t.jsx(XS,{defaultMessage:"You've reached your {model} limit. Get more usage to keep using {model} or switch models to continue this chat.",id:"F7jEDSj3vI",values:{model:g}}):"7d_cowork"===p?t.jsx(XS,{defaultMessage:"You've reached your weekly Cowork limit. It resets {day} at {time}.",id:"pWv55L2571",values:{day:s,time:e}}):t.jsx(XS,{defaultMessage:"You've reached your usage limit. It resets at {time}.",id:"rNSmFin0Cy",values:{time:e}})})()]})}function XX({messageLimit:e}){const s=BX(e=>e.seatTier),n=BX(e=>e.hasOAuthTokens),a=hJ(),i=ni()??!1,{hasOAuthTokens:r}=FX(),o=yi(),l=xe(),c=qn(),d=Wn(),u=!c&&!l&&!d,m=s?"legacy"===s:a,p=s?"usage-based"===s:i,f=n??r;if("overageInUse"in e&&e.overageInUse){const{overage:s,...n}=e.windows??{},a=fJ(n,"sentOnModel"in e?e.sentOnModel:void 0);return a.modelDisplayName?m?t.jsx(XS,{defaultMessage:"Now using extra usage for {model}",id:"PP1yawpmn/",values:{model:a.modelDisplayName}}):t.jsx(XS,{defaultMessage:"Now using usage credits for {model}",id:"f9w26ups2+",values:{model:a.modelDisplayName}}):m?t.jsx(XS,{defaultMessage:"Past your plan's included usage",id:"n+jok7BxhH"}):t.jsx(XS,{defaultMessage:"Now using credits",id:"Xyj+c+ye6C"})}if("exceeded_limit"===e.type){if(o)return t.jsx(XS,{defaultMessage:"No seat assigned",id:"a3pk98Utp6"});const s="overageDisabledReason"in e?e.overageDisabledReason:void 0;if(p&&"overage_not_provisioned"===s)return t.jsx(XS,{defaultMessage:"Usage allocation not set up",id:"GpcurM47OJ"});if(p&&"org_level_disabled"===s)return t.jsx(XS,{defaultMessage:"Organization disabled usage",id:"FFPchfJQjm"});const n=fJ(e.windows,e.sentOnModel);return n.status?.resets_at??e.resetsAt?u?t.jsx(XS,{defaultMessage:"Out of free messages",id:"MvHjo2wRbQ"}):f&&!n.modelDisplayName?t.jsx(XS,{defaultMessage:"Usage limit reached",id:"7w3FHlVG2e"}):"5h"===n.windowName?t.jsx(XS,{defaultMessage:"Reached your session limit",id:"tOqpYuLSqO"}):"7d"===n.windowName?t.jsx(XS,{defaultMessage:"Reached your weekly limit",id:"1Fu/DJVLB7"}):n.modelDisplayName?t.jsx(XS,{defaultMessage:"Reached your {model} limit",id:"ajwKvdq+2j",values:{model:n.modelDisplayName}}):"7d_cowork"===n.windowName?t.jsx(XS,{defaultMessage:"Reached your weekly Cowork limit",id:"bZ92DVKeBJ"}):t.jsx(XS,{defaultMessage:"Reached your usage limit",id:"C0tS351hMY"}):null}if("approaching_limit"!==e.type)return null;const{windowName:g,status:h,surpassedThreshold:C,modelDisplayName:x}=fJ(e.windows,e.sentOnModel),v=C?t.jsx(sL,{style:"percent",value:C}):null;if(x&&null!==C){const e=qX(100*(h?.utilization||C))/100;return t.jsx(XS,{defaultMessage:"{pct} of your {model} limit",id:"q1nUUVw9L8",values:{pct:t.jsx(sL,{style:"percent",value:e}),model:x}})}return"5h"===g?v?t.jsx(XS,{defaultMessage:"{pct} of your session limit",id:"TeaCd+n3q1",values:{pct:v}}):t.jsx(XS,{defaultMessage:"Approaching session limit",id:"eufK6+n0Ub"}):"7d"===g?v?t.jsx(XS,{defaultMessage:"{pct} of your weekly limit",id:"08CclcuGcX",values:{pct:v}}):t.jsx(XS,{defaultMessage:"Approaching weekly limit",id:"t2T1PWD6TI"}):"overage"===g?p?v?t.jsx(XS,{defaultMessage:"{pct} of your usage",id:"8Gk2V3ZkZO",values:{pct:v}}):t.jsx(XS,{defaultMessage:"Almost out of usage",id:"2DnVe/swdS"}):m?v?t.jsx(XS,{defaultMessage:"{pct} of your extra usage",id:"OfkkX2o7DT",values:{pct:v}}):t.jsx(XS,{defaultMessage:"Almost out of extra usage",id:"sSuzUoON3e"}):v?t.jsx(XS,{defaultMessage:"Over {pct} of your usage credits",id:"VvnD2QyfY3",values:{pct:v}}):t.jsx(XS,{defaultMessage:"Almost out of usage credits",id:"7AxRw5+Chv"}):v?t.jsx(XS,{defaultMessage:"{pct} of your usage",id:"8Gk2V3ZkZO",values:{pct:v}}):t.jsx(XS,{defaultMessage:"Almost out of usage",id:"2DnVe/swdS"})}function e1({messageLimit:e}){const s="sentOnModel"in e?e.sentOnModel:void 0,n=e.windows??{},a="overageInUse"in e&&e.overageInUse?(({overage:e,...t})=>t)(n):n,{status:i,windowName:r}=fJ(a,s),o=i?.resets_at??("resetsAt"in e?e.resetsAt:void 0);if(!o)return null;const l=GS.fromSeconds(o);if(l<=GS.now())return null;const c=l.toLocaleString(GS.TIME_SIMPLE);if(l.hasSame(GS.now(),"day")||"5h"===r)return t.jsx(XS,{defaultMessage:"Resets at {time}",id:"C33sdRxDco",values:{time:c}});const d=l.toFormat("cccc");return t.jsx(XS,{defaultMessage:"Resets {day} at {time}",id:"gRRbrD//qx",values:{day:d,time:c}})}function t1({messageLimit:e}){const s=BX(e=>e.seatTier),n=BX(e=>e.hasOAuthTokens),a=hJ(),i=ni()??!1,{hasOAuthTokens:r}=FX(),o=yi(),l=xe(),c=qn(),d=Wn(),u=!c&&!l&&!d,m=s?"legacy"===s:a,p=s?"usage-based"===s:i,f=n??r;if("overageInUse"in e&&e.overageInUse){const{overage:s,...n}=e.windows??{},a=fJ(n,"sentOnModel"in e?e.sentOnModel:void 0),i=a.status?.resets_at??("resetsAt"in e?e.resetsAt:void 0),r=i?GS.fromSeconds(i):null,o=r&&r>GS.now(),l=o?r.toLocaleString(GS.TIME_SIMPLE):null,c=o?r.toFormat("cccc"):null;return a.modelDisplayName?m?l?t.jsx(XS,{defaultMessage:"Now using extra usage for {model} \xb7 Your {model} limit resets {day} at {time}.",id:"rZ2TgPa+t2",values:{model:a.modelDisplayName,day:c,time:l}}):t.jsx(XS,{defaultMessage:"Now using extra usage for {model}.",id:"DvfibCTZKD",values:{model:a.modelDisplayName}}):l?t.jsx(XS,{defaultMessage:"Now using usage credits for {model} \xb7 Your {model} limit resets {day} at {time}.",id:"mDQEtpfVOo",values:{model:a.modelDisplayName,day:c,time:l}}):t.jsx(XS,{defaultMessage:"Now using usage credits for {model}.",id:"39u78y717C",values:{model:a.modelDisplayName}}):m?l?t.jsx(XS,{defaultMessage:"You're now past your plan's included usage. Your plan limit resets {day} at {time}.",id:"2nuJaDrbt+",values:{day:c,time:l}}):t.jsx(XS,{defaultMessage:"You're now past your plan's included usage.",id:"qikCtjDBm7"}):l?t.jsx(XS,{defaultMessage:"Now using credits \xb7 Your plan limit resets {day} at {time}",id:"jRTZkwh61v",values:{day:c,time:l}}):t.jsx(XS,{defaultMessage:"Now using credits",id:"Xyj+c+ye6C"})}if("exceeded_limit"===e.type){if(o)return t.jsx(XS,{defaultMessage:"You don't have a seat assigned. Ask your organization admin to assign you a seat.",id:"ESpvpBCOGG"});const s="overageDisabledReason"in e?e.overageDisabledReason:void 0;if(p&&"overage_not_provisioned"===s)return t.jsx(XS,{defaultMessage:"Your usage allocation hasn't been set up yet.",id:"1CkZjOq6JZ"});if(p&&"org_level_disabled"===s)return t.jsx(XS,{defaultMessage:"Your organization has disabled usage.",id:"/+2pQlKCPR"});const n=fJ(e.windows,e.sentOnModel),a=n.status?.resets_at??e.resetsAt;if(!a)return null;const i=GS.fromSeconds(a),r=i.toLocaleString(GS.TIME_SIMPLE),l=i.toFormat("cccc");return u?n.windowName&&n.windowName.startsWith("7d")?t.jsx(XS,{defaultMessage:"You are out of free <link>messages</link> until {day} at {time}",id:"jns39S6Lx0",values:{day:l,time:r,link:e=>e}}):t.jsx(XS,{defaultMessage:"You are out of free <link>messages</link> until {time}",id:"PKaisys/Ji",values:{time:r,link:e=>e}}):f&&!n.modelDisplayName?t.jsx(XS,{defaultMessage:"Usage limit reached \xb7 Resets {time} \xb7 <link>limits shared with Claude Code</link>",id:"f/Xyer57OO",values:{time:r,link:e=>e}}):"5h"===n.windowName?t.jsx(XS,{defaultMessage:"You've reached your session limit. It resets at {time}.",id:"OTZfypjWAC",values:{time:r}}):"7d"===n.windowName?t.jsx(XS,{defaultMessage:"You've reached your weekly limit. It resets {day} at {time}.",id:"zB2cYFBQjl",values:{day:l,time:r}}):n.modelDisplayName?t.jsx(XS,{defaultMessage:"You've reached your {model} limit. Get more usage to keep using {model} or switch models to continue this chat.",id:"F7jEDSj3vI",values:{model:n.modelDisplayName}}):"7d_cowork"===n.windowName?t.jsx(XS,{defaultMessage:"You've reached your weekly Cowork limit. It resets {day} at {time}.",id:"pWv55L2571",values:{day:l,time:r}}):t.jsx(XS,{defaultMessage:"You've reached your usage limit. It resets at {time}.",id:"rNSmFin0Cy",values:{time:r}})}if("approaching_limit"!==e.type)return null;const{windowName:g,status:h,surpassedThreshold:C,modelDisplayName:x}=fJ(e.windows,e.sentOnModel),v=h?.resets_at??e.resetsAt;if(!v)return null;const y=GS.fromSeconds(v);if(x&&null!==C){const e=y.toLocaleString(GS.TIME_SIMPLE),s=y.toFormat("cccc"),n=qX(100*(h?.utilization||C))/100;return t.jsx(XS,{defaultMessage:"You've used {pct} of your {model} limit \xb7 Resets {day} at {time}",id:"l7/lgyzIcd",values:{pct:t.jsx(sL,{style:"percent",value:n}),model:x,day:s,time:e}})}if("5h"===g)return C?t.jsx(XS,{defaultMessage:"You've used {surpassedThresholdFormatted} of your session limit",id:"wVPcZN3RGw",values:{surpassedThresholdFormatted:t.jsx(sL,{style:"percent",value:C})}}):t.jsx(XS,{defaultMessage:"Approaching session limit",id:"eufK6+n0Ub"});if("7d"===g)return C?t.jsx(XS,{defaultMessage:"You've used {surpassedThresholdFormatted} of your weekly limit",id:"imesHMuX3j",values:{surpassedThresholdFormatted:t.jsx(sL,{style:"percent",value:C})}}):t.jsx(XS,{defaultMessage:"Approaching weekly limit",id:"t2T1PWD6TI"});if("overage"===g)return C?p?t.jsx(XS,{defaultMessage:"You've used {surpassedThresholdFormatted} of your usage",id:"dc10LONq4/",values:{surpassedThresholdFormatted:t.jsx(sL,{style:"percent",value:C})}}):m?t.jsx(XS,{defaultMessage:"You've used {surpassedThresholdFormatted} of your extra usage",id:"RIo5BEK6Sb",values:{surpassedThresholdFormatted:t.jsx(sL,{style:"percent",value:C})}}):t.jsx(XS,{defaultMessage:"You've used over {surpassedThresholdFormatted} of your usage credits",id:"xygVVMSUxn",values:{surpassedThresholdFormatted:t.jsx(sL,{style:"percent",value:C})}}):p?t.jsx(XS,{defaultMessage:"You're almost out of usage",id:"zNxxw6GILq"}):m?t.jsx(XS,{defaultMessage:"You're almost out of extra usage",id:"u7LE2588Zs"}):t.jsx(XS,{defaultMessage:"You're almost out of usage credits",id:"Sfrwx+npwr"});if(p)return C?t.jsx(XS,{defaultMessage:"You've used {surpassedThresholdFormatted} of your usage",id:"dc10LONq4/",values:{surpassedThresholdFormatted:t.jsx(sL,{style:"percent",value:C})}}):t.jsx(XS,{defaultMessage:"You're almost out of usage",id:"zNxxw6GILq"});const b=y.toLocaleString(GS.TIME_SIMPLE);return C?t.jsx(XS,{defaultMessage:"You've used {surpassedThresholdFormatted} of your usage \xb7 Resets at {time}",id:"pu13x2jMVz",values:{surpassedThresholdFormatted:t.jsx(sL,{style:"percent",value:C}),time:b}}):t.jsx(XS,{defaultMessage:"You're almost out of usage \xb7 Resets at {time}",id:"mlVt84WGkJ",values:{time:b}})}function s1({messageLimit:e,isUsageBasedSeatTier:s,onDismiss:n}){const{windowName:a,status:i,surpassedThreshold:r,modelDisplayName:o}=fJ(e.windows,e.sentOnModel),l="overage"===a,{limitActionButton:c,limitActionButtonType:d}=oX({isWarning:!0,isOverageContext:l}),u=wX({source:"overage_approaching",enabled:l}),m=BX(e=>e.seatTier),p=hJ(),f=m?"legacy"===m:p,g=i?.resets_at||e.resetsAt;if(!g)return null;const h=GS.fromSeconds(g);return t.jsxs(VJ,{children:[t.jsx(KX,{bannerType:"approaching",ctaVariant:d,windowName:a}),t.jsx("span",{className:"text-text-300 text-body",children:(()=>{if(o&&null!==r){const e=h.toLocaleString(GS.TIME_SIMPLE),s=$X(h),n=qX(100*(i?.utilization||r))/100;return t.jsx(XS,{defaultMessage:"You've used {pct} of your {model} limit \xb7 Resets {day} at {time}",id:"l7/lgyzIcd",values:{pct:t.jsx(sL,{style:"percent",value:n}),model:o,day:s,time:e}})}if("5h"===a)return r?t.jsx(XS,{defaultMessage:"You've used {surpassedThresholdFormatted} of your session limit",id:"wVPcZN3RGw",values:{surpassedThresholdFormatted:t.jsx(sL,{style:"percent",value:r})}}):t.jsx(XS,{defaultMessage:"Approaching session limit",id:"eufK6+n0Ub"});if("7d"===a)return r?t.jsx(XS,{defaultMessage:"You've used {surpassedThresholdFormatted} of your weekly limit",id:"imesHMuX3j",values:{surpassedThresholdFormatted:t.jsx(sL,{style:"percent",value:r})}}):t.jsx(XS,{defaultMessage:"Approaching weekly limit",id:"t2T1PWD6TI"});if("overage"===a){if(r){const e={surpassedThresholdFormatted:t.jsx(sL,{style:"percent",value:r})};return s?t.jsx(XS,{defaultMessage:"You've used {surpassedThresholdFormatted} of <link>your usage</link>",id:"Fh0K4Z+0UX",values:{surpassedThresholdFormatted:e.surpassedThresholdFormatted,link:u}}):f?t.jsx(XS,{defaultMessage:"You've used {surpassedThresholdFormatted} of your extra usage",id:"RIo5BEK6Sb",values:e}):t.jsx(XS,{defaultMessage:"You've used over {surpassedThresholdFormatted} of your usage credits",id:"xygVVMSUxn",values:e})}return s?t.jsx(XS,{defaultMessage:"You're almost out of <link>usage</link>",id:"72lfqoMD/D",values:{link:u}}):f?t.jsx(XS,{defaultMessage:"You're almost out of extra usage",id:"u7LE2588Zs"}):t.jsx(XS,{defaultMessage:"You're almost out of usage credits",id:"Sfrwx+npwr"})}if(s)return r?t.jsx(XS,{defaultMessage:"You've used {surpassedThresholdFormatted} of <link>your usage</link>",id:"Fh0K4Z+0UX",values:{surpassedThresholdFormatted:t.jsx(sL,{style:"percent",value:r}),link:u}}):t.jsx(XS,{defaultMessage:"You're almost out of <link>usage</link>",id:"72lfqoMD/D",values:{link:u}});const e=h.toLocaleString(GS.TIME_SIMPLE);return r?t.jsx(XS,{defaultMessage:"You've used {surpassedThresholdFormatted} of your usage \u2219 Resets at {time}",id:"P3z/kOrQXN",values:{surpassedThresholdFormatted:t.jsx(sL,{style:"percent",value:r}),time:e}}):t.jsx(XS,{defaultMessage:"You're almost out of usage \u2219 Resets at {time}",id:"ghbYuVoMj1",values:{time:e}})})()}),t.jsxs("span",{className:"inline-flex items-center gap-2",children:[c,t.jsx(zJ,{onClick:n})]})]})}function n1({messageLimit:e,isUsageBasedSeatTier:s}){const n=xe(),a=bi(),{overageActionButtonType:i,overageActionButton:r,overageRequestState:o}=function({messageLimit:e}){const s=xe(),n=xi(),a=bi(),i=y("overages_upsell_disabled"),r="org_level_disabled_until"===e?.overageDisabledReason&&!s&&!i,o=ce("spend_limit_increase_nudge",r),{data:l}=ri({enabled:o&&r});let c;const d=e?.overageDisabledReason;c="out_of_credits"===d||"org_level_disabled_until"===d||"org_service_level_disabled"===d?s&&!n?"admin-notified-msg":r&&o&&"number"==typeof l?.amount?l.amount>0?"increase-spend-limit":"increase-spend-limit-and-add-funds":"out_of_credits"!==d||i?"org_service_level_disabled"===d?"manage-services":"manage-usage":"add-funds":s?n?"manage-usage":a&&"org_spend_cap_reached"!==e?.overageDisabledReason?"admin-notified-msg":"request-more-extra-usage":"manage-usage";const u=kX({enabled:"request-more-extra-usage"===c});let m=null;switch(c){case"add-funds":m=t.jsx(jX,{targetModelId:e?.sentOnModel});break;case"manage-usage":m=t.jsx(LX,{});break;case"manage-services":m=t.jsx(LX,{label:t.jsx(XS,{defaultMessage:"Manage usage settings",id:"nDW7OKTF0P"})});break;case"increase-spend-limit":m=t.jsx(SX,{messageLimit:e});break;case"increase-spend-limit-and-add-funds":m=t.jsx(SX,{messageLimit:e,thenAddFunds:!0});break;case"request-more-extra-usage":m="member_level_disabled"!==d&&"member_zero_credit_limit"!==d&&"group_zero_credit_limit"!==d&&"seat_tier_level_disabled"!==d&&"seat_tier_zero_credit_limit"!==d&&"actionable"!==u?null:t.jsx(MX,{isOverageWarning:!0});break;case"admin-notified-msg":m=null}return{overageActionButtonType:c,overageActionButton:m,overageRequestState:u}}({messageLimit:e}),l=wX({source:"overage_exceeded",enabled:"request-more-extra-usage"===i}),c=hJ(),{model:d}=J(),u=YJ(),m=iX(),p=("admin-notified-msg"===i||"request-more-extra-usage"===i)&&!!d&&u(d),f="exceeded_limit"===e?.type?e.overageDisabledReason:void 0,g="member_zero_credit_limit"===f||"member_level_disabled"===f||"seat_tier_zero_credit_limit"===f||"seat_tier_level_disabled"===f||"group_zero_credit_limit"===f||"org_spend_cap_reached"===f||"org_level_disabled_until"===f,h=p&&"exceeded_limit"===e?.type&&!!e.creditsRequired,C=h&&g,x=p&&!!m,v=x&&!h?t.jsx(rX,{currentModelId:d}):null,b=x&&!h?t.jsxs(t.Fragment,{children:[" ",t.jsx(hs,{id:"10q4vvr"})]}):null,k=kX({enabled:h}),w=h?"out_of_credits"!==f&&("actionable"===k||"pending"===k)?t.jsx(ds,{className:"font-base text-secondary hover:text-primary",onClick:()=>HJ({targetModelId:d,currentModelId:d,requestState:"pending"===k?"pending":"actionable"}),children:t.jsx(XS,{defaultMessage:"Request more",id:"vi9dUGyGRX"})}):x?t.jsx(rX,{currentModelId:d}):null:null,M=!(e?.overageDisabledReason&&"org_spend_cap_reached"!==e.overageDisabledReason||"request-more-extra-usage"!==i&&"manage-usage"!==i),{limitingPeriod:_,isLoading:j,isError:S}=ci(M),L=_??(j||S?"unknown":"monthly"),{overage:N,...I}=e?.windows??{},{windowName:T,status:A,modelDisplayName:E}=fJ(I,e?.sentOnModel),R=A?.resets_at?GS.fromSeconds(A.resets_at):null,D=y("overages_upsell_disabled"),H=!!E&&"manage-usage"===i&&!n&&!D,P=ce("spend_limit_increase_nudge",H),U=H&&P?t.jsx(ds,{onClick:()=>MJ("exceeded_limit"===e?.type?e:void 0),children:t.jsx(XS,{defaultMessage:"Manage spend limit",id:"vx3y3rModv"})}):r;return t.jsxs(pI,{actionButton:h?w:v?U?t.jsxs(t.Fragment,{children:[U,t.jsx("span",{"aria-hidden":!0,className:"px-1",children:" \xb7 "}),v]}):v:U,minimalUi:!h&&!E,icon:h||E?WX:void 0,allowSendAttempt:Ri(e)||"exceeded_limit"===e?.type&&!!e.creditsRequired,children:[t.jsx(KX,{bannerType:"overage_exceeded",ctaVariant:i,windowName:T}),(()=>{if(C)return t.jsx(hs,{id:"h24rgl",dangerouslyVisiblePublicValues:{period:L,model:GJ(d)}});if(h&&("org_level_disabled"===f||"overage_not_provisioned"===f||"org_service_level_disabled"===f))return t.jsx(hs,{id:"1m9rkoc",dangerouslyVisiblePublicValues:{model:GJ(d)}});if(h&&"out_of_credits"===f)return t.jsx(XS,{defaultMessage:"Your org is out of usage credits. Your admin has been notified. Switch models to continue chatting.",id:"W+Fxo/dzt5"});if("admin-notified-msg"===i)return a&&!e?.overageDisabledReason?t.jsx(XS,{defaultMessage:"Your usage is unlimited. Reach out to your admin directly if you need help.",id:"8PB5HK/lHX"}):"out_of_credits"===e?.overageDisabledReason?s?t.jsx(XS,{defaultMessage:"Your org is out of usage. We let your admin know.",id:"vFfmjUZbCO"}):c?t.jsx(XS,{defaultMessage:"Your org is out of extra usage. We let your admin know.",id:"m+eZ3uQT/A"}):t.jsx(XS,{defaultMessage:"Your org is out of usage credits. We let your admin know.",id:"bTOzkt8zV5"}):"org_service_level_disabled"===e?.overageDisabledReason?t.jsx(XS,{defaultMessage:"This service is disabled for your organization. Reach out to your admin to re-enable it.",id:"gDe4RE775E"}):s?t.jsx(XS,{defaultMessage:"Your org is out of usage for the month. We let your admin know.",id:"DctgOyBahL"}):c?t.jsx(XS,{defaultMessage:"Your org is out of extra usage for the month. We let your admin know.",id:"MbWa0ECpmC"}):t.jsx(XS,{defaultMessage:"Your org is out of usage credits for the month. We let your admin know.",id:"oo3cP6GRIE"});if("member_level_disabled"===e?.overageDisabledReason||"member_zero_credit_limit"===e?.overageDisabledReason)return"manage-usage"===i?c?t.jsx(XS,{defaultMessage:"Extra usage is disabled for your account. Manage spend limit to keep going now.",id:"7TICmxuTsz"}):t.jsx(XS,{defaultMessage:"Usage credits are turned off for your account. Manage spend limit to keep going now.",id:"nYTRjcoCf/"}):t.jsx(XS,{defaultMessage:"Your usage allocation has been disabled by your admin.",id:"Gg6OYlDghZ"});if("group_zero_credit_limit"===e?.overageDisabledReason)return"manage-usage"===i?t.jsx(XS,{defaultMessage:"Your group's usage limit is set to $0. Manage spend limit to keep going now.",id:"NOVKLgrAVh"}):t.jsx(XS,{defaultMessage:"Your group's usage limit is set to $0.",id:"hpxy9ikYks"});if("seat_tier_level_disabled"===e?.overageDisabledReason||"seat_tier_zero_credit_limit"===e?.overageDisabledReason)return"manage-usage"===i?c?t.jsx(XS,{defaultMessage:"Your seat type doesn't include extra usage. Manage spend limit to keep going now.",id:"8k6fMsg4IY"}):t.jsx(XS,{defaultMessage:"Your seat type doesn't include usage credits. Manage spend limit to keep going now.",id:"Lv1zlpRUzM"}):c?t.jsx(XS,{defaultMessage:"Your seat type doesn't include extra usage.",id:"byXWJvyqO6"}):t.jsx(XS,{defaultMessage:"Your seat type doesn't include usage credits.",id:"9APUjQes22"});if("org_service_level_disabled"===e?.overageDisabledReason)return n?t.jsx(XS,{defaultMessage:"This service is disabled for your organization. Manage usage settings to re-enable it.",id:"RX3oWSQgNC"}):t.jsx(XS,{defaultMessage:"This service is disabled for your account. Manage usage settings to re-enable it.",id:"kgysYftJ4g"});const r=R?.toLocaleString(GS.TIME_SIMPLE),u=R?$X(R):void 0,m="5h"===T;return"increase-spend-limit"===i?E?t.jsx(XS,{defaultMessage:"You've hit your monthly spend limit. Increase your spend limit to keep using {model} or switch models to continue this chat.",id:"XOtaL4UuoK",values:{model:E}}):t.jsx(XS,{defaultMessage:"You've hit your {period, select, daily {daily } weekly {weekly } monthly {monthly } other {}}spend limit, but you have more credits.",id:"0A4Q6xDWgl",values:{period:L}}):"increase-spend-limit-and-add-funds"===i?E?t.jsx(XS,{defaultMessage:"You've hit your monthly spend limit and you're out of credits. Increase your spend limit to keep using {model} or switch models to continue this chat.",id:"FYQ4QGoMVV",values:{model:E}}):t.jsx(XS,{defaultMessage:"You've hit your {period, select, daily {daily } weekly {weekly } monthly {monthly } other {}}spend limit and you're out of credits.",id:"+sug9soxPB",values:{period:L}}):"out_of_credits"===e?.overageDisabledReason?n?R?m?c?t.jsx(XS,{defaultMessage:"Your org is out of extra usage. Buy more to keep going now, or wait until {time} when your plan usage resets.",id:"zg1AOLkMMN",values:{time:r}}):t.jsx(XS,{defaultMessage:"Your org is out of usage credits. Buy more to keep going now, or wait until {time} when your plan usage resets.",id:"GVTSDBkCfS",values:{time:r}}):c?t.jsx(XS,{defaultMessage:"Your org is out of extra usage. Buy more to keep going now, or wait until {day} at {time} when your plan usage resets.",id:"q00/352aSe",values:{day:u,time:r}}):t.jsx(XS,{defaultMessage:"Your org is out of usage credits. Buy more to keep going now, or wait until {day} at {time} when your plan usage resets.",id:"7UUZNR6Ap5",values:{day:u,time:r}}):c?t.jsx(XS,{defaultMessage:"Your org is out of extra usage. Buy more to keep going now.",id:"iVMMqvoiru"}):t.jsx(XS,{defaultMessage:"Your org is out of usage credits. Buy more to keep going now.",id:"lEjOWeCQVl"}):E?c?t.jsx(XS,{defaultMessage:"You're out of extra usage. Buy more to keep using {model} or switch models to continue this chat.",id:"PgkOrz2ulz",values:{model:E}}):t.jsx(XS,{defaultMessage:"You're out of usage credits. Buy more to keep using {model} or switch models to continue this chat.",id:"PfjXKGsfPE",values:{model:E}}):R?m?c?t.jsx(XS,{defaultMessage:"You're out of extra usage. Buy more to keep going now, or wait until {time} when your plan usage resets.",id:"wYUQnuzAJH",values:{time:r}}):t.jsx(XS,{defaultMessage:"You're out of usage credits. Buy more to keep going now, or wait until {time} when your plan usage resets.",id:"kk7ypnG1Xe",values:{time:r}}):c?t.jsx(XS,{defaultMessage:"You're out of extra usage. Buy more to keep going now, or wait until {day} at {time} when your plan usage resets.",id:"OeWgRJWrgU",values:{day:u,time:r}}):t.jsx(XS,{defaultMessage:"You're out of usage credits. Buy more to keep going now, or wait until {day} at {time} when your plan usage resets.",id:"6iUlbh1s3t",values:{day:u,time:r}}):c?t.jsx(XS,{defaultMessage:"You're out of extra usage. Buy more to keep going now.",id:"Xb9nNP5stJ"}):t.jsx(XS,{defaultMessage:"You're out of usage credits. Buy more to keep going now.",id:"QXP97g/t1z"}):"org_level_disabled_until"===e?.overageDisabledReason&&n?R?m?t.jsx(XS,{defaultMessage:"Your org has reached its spend limit for this month. Manage spend limit to keep going now, or wait until {time} when your plan usage resets.",id:"7qMu4OdZsc",values:{time:r}}):t.jsx(XS,{defaultMessage:"Your org has reached its spend limit for this month. Manage spend limit to keep going now, or wait until {day} at {time} when your plan usage resets.",id:"YxC9/iVoy6",values:{day:u,time:r}}):t.jsx(XS,{defaultMessage:"Your org has reached its spend limit for this month. Manage spend limit to keep going now.",id:"wEZDiW+6ZT"}):"request-more-extra-usage"===i?"pending"===o?R?m?t.jsx(XS,{defaultMessage:"Request sent to your admin. Your <link>plan usage</link> resets at {time}.",id:"e54g1dtgTa",values:{time:r,link:l}}):t.jsx(XS,{defaultMessage:"Request sent to your admin. Your <link>plan usage</link> resets {day} at {time}.",id:"R83cf/zHyv",values:{day:u,time:r,link:l}}):t.jsx(XS,{defaultMessage:"Request sent to your admin.",id:"h/JaEuOQWD"}):"unavailable"===o?R?m?t.jsx(XS,{defaultMessage:"You've reached your {period, select, daily {daily } weekly {weekly } monthly {monthly } other {}}spend limit. Your <link>plan usage</link> resets at {time}.",id:"+wZF246kyV",values:{period:L,time:r,link:l}}):t.jsx(XS,{defaultMessage:"You've reached your {period, select, daily {daily } weekly {weekly } monthly {monthly } other {}}spend limit. Your <link>plan usage</link> resets {day} at {time}.",id:"mfWjCP1jwl",values:{period:L,day:u,time:r,link:l}}):t.jsx(XS,{defaultMessage:"You've reached <link>your {period, select, daily {daily } weekly {weekly } monthly {monthly } other {}}spend limit</link>.",id:"uzxdxDTjwO",values:{period:L,link:l}}):C?t.jsx(hs,{id:"h24rgl",dangerouslyVisiblePublicValues:{period:L,model:GJ(d)}}):R?m?t.jsx(XS,{defaultMessage:"You've reached your {period, select, daily {daily } weekly {weekly } monthly {monthly } other {}}spend limit. Request more to keep going now, or wait until {time} when your <link>plan usage</link> resets.",id:"RB4r9vWI3K",values:{period:L,time:r,link:l}}):t.jsx(XS,{defaultMessage:"You've reached your {period, select, daily {daily } weekly {weekly } monthly {monthly } other {}}spend limit. Request more to keep going now, or wait until {day} at {time} when your <link>plan usage</link> resets.",id:"832W3LE5Ed",values:{period:L,day:u,time:r,link:l}}):t.jsx(XS,{defaultMessage:"You've reached <link>your {period, select, daily {daily } weekly {weekly } monthly {monthly } other {}}spend limit</link>. Request more to keep going now.",id:"OBPKtzFwbM",values:{period:L,link:l}}):E?t.jsx(XS,{defaultMessage:"You've hit your {period, select, daily {daily } weekly {weekly } monthly {monthly } other {}}spend limit. Manage your limit to keep using {model} or switch models to continue this chat.",id:"dn+24vvwb8",values:{period:L,model:E}}):R?m?t.jsx(XS,{defaultMessage:"You've reached your {period, select, daily {daily } weekly {weekly } monthly {monthly } other {}}spend limit. Manage spend limit to keep going now, or wait until {time} when your plan usage resets.",id:"X8jfcR/7Gb",values:{period:L,time:r}}):t.jsx(XS,{defaultMessage:"You've reached your {period, select, daily {daily } weekly {weekly } monthly {monthly } other {}}spend limit. Manage spend limit to keep going now, or wait until {day} at {time} when your plan usage resets.",id:"ax4mRsNy0b",values:{period:L,day:u,time:r}}):t.jsx(XS,{defaultMessage:"You've reached your {period, select, daily {daily } weekly {weekly } monthly {monthly } other {}}spend limit. Manage spend limit to keep going now.",id:"nJFFCU5ncZ",values:{period:L}})})(),b]})}function a1({messageLimit:e,onDismiss:s}){const n=hJ(),a=!n,{model:i}=J(),{mode:r}=WJ(),o=YJ(),l="credits"===r&&o(i),c=GJ(i),{overage:d,...u}=e.windows??{},m="sentOnModel"in e?e.sentOnModel:void 0,p=fJ(u,m&&i&&m===i?m:void 0),f=Di.find(e=>u[e]),g=p.windowName??f??null,h=p.status?.resets_at??(f?u[f]?.resets_at:void 0),C=h?GS.fromSeconds(h):null;return t.jsxs(VJ,{children:[t.jsx(KX,{bannerType:"overage_active",ctaVariant:"none",windowName:g}),l?t.jsxs("div",{className:"flex items-center gap-1 text-text-300 text-body",children:[t.jsx(SR,{className:"shrink-0",size:14}),t.jsx("span",{children:t.jsx(hs,{id:"a182px",dangerouslyVisiblePublicValues:{model:c,opusModel:XJ}})})]}):t.jsx("span",{className:"text-text-300 text-body",children:(()=>{const e=C&&C>GS.now();if(p.modelDisplayName){const s=e?C.toLocaleString(GS.TIME_SIMPLE):null,a=e?$X(C):null;return n?s?t.jsx(XS,{defaultMessage:"Now using extra usage for {model} \xb7 Your {model} limit resets {day} at {time}.",id:"rZ2TgPa+t2",values:{model:p.modelDisplayName,day:a,time:s}}):t.jsx(XS,{defaultMessage:"Now using extra usage for {model}.",id:"DvfibCTZKD",values:{model:p.modelDisplayName}}):s?t.jsx(XS,{defaultMessage:"Now using usage credits for {model} \xb7 Your {model} limit resets {day} at {time}.",id:"mDQEtpfVOo",values:{model:p.modelDisplayName,day:a,time:s}}):t.jsx(XS,{defaultMessage:"Now using usage credits for {model}.",id:"39u78y717C",values:{model:p.modelDisplayName}})}if(a){if(!e)return t.jsx(XS,{defaultMessage:"Now using credits.",id:"bX9nWH/7vb"});const s=C.toLocaleString(GS.TIME_SIMPLE),n=$X(C);return t.jsx(XS,{defaultMessage:"Now using credits \u2022 Your plan limit resets {day} at {time}.",id:"cWHePzM1Cd",values:{day:n,time:s}})}if(!e)return t.jsx(XS,{defaultMessage:"You're now past your plan's included usage.",id:"qikCtjDBm7"});const s=C.toLocaleString(GS.TIME_SIMPLE),i=$X(C);return t.jsx(XS,{defaultMessage:"You're now past your plan's included usage. Your plan limit resets {day} at {time}.",id:"2nuJaDrbt+",values:{day:i,time:s}})})()}),t.jsx("span",{children:s&&t.jsx(zJ,{onClick:s})})]})}function i1({messageLimit:e}){const{mutate:s}=Pi(e.conversationUuid);return y("can_reset_rate_limits")?t.jsx(kt,{variant:"secondary",size:"sm",onClick:()=>s(),children:t.jsx(XS,{defaultMessage:"Reset limits",id:"0Lg76lu7jn"})}):null}function r1(e){return e>=95?Oi.fill.danger.cssVar:Oi.border.warning.cssVar}const o1=tL({"5h":{defaultMessage:"5-hour limit",id:"PwHepdVb5S"},"7d":{defaultMessage:"Weekly \xb7 all models",id:"qHBO/ijbre"},"7d_opus":{defaultMessage:"Weekly \xb7 Opus",id:"2+RstobnME"},"7d_sonnet":{defaultMessage:"Weekly \xb7 Sonnet",id:"nZx9i3cDXB"},"7d_oi":{defaultMessage:"Weekly \xb7 Design",id:"NDRoCn3wXJ"},"7d_cowork":{defaultMessage:"Weekly \xb7 Cowork",id:"96529bqPHy"},overage:{defaultMessage:"Usage credits",id:"uYh787opQc"}});const l1=12,c1=5.25,d1=2*Math.PI*c1;function u1(){const e=y("composer-usage-ring"),t=BX(e=>e.usageRingEnabled),s=BX(e=>e.messageLimit),n=Ai(),a=s??n,i=!!a&&"creditsRequired"in a&&!!a.creditsRequired,r="exceeded_limit"===a?.type&&!a.resetsAt&&!Object.values(a.windows??{}).some(e=>e?.resets_at),o=!!a&&!i&&!r&&("approaching_limit"===a.type||"exceeded_limit"===a.type||"overageInUse"in a&&!!a.overageInUse);return(t??e)&&o}function m1(e){if(!e)return"none";const t=e.windows??{},s=Math.min(...Object.values(t).map(e=>e?.resets_at??1/0).filter(e=>Number.isFinite(e)),"resetsAt"in e&&e.resetsAt?e.resetsAt:1/0),n="overageInUse"in e&&e.overageInUse?"ov":"",a="approaching_limit"===e.type?fJ(e.windows,"sentOnModel"in e?e.sentOnModel:void 0).surpassedThreshold??"":"";return`${e.type}:${n}:${a}:${Number.isFinite(s)?s:""}`}function p1(){const e=BX(e=>e.messageLimit),t=Ai();return ZX(e=>e.dismissedForResetsAt)===m1(e??t)}const f1=e.memo(function({compact:e}){const s=u1(),n=p1(),a=BX(e=>e.messageLimit),i=Ai(),r=a??i,o=s&&!n;return t.jsxs(t.Fragment,{children:[t.jsx("div",{role:"status","aria-live":"polite","aria-atomic":"true",className:"sr-only",children:o&&r?t.jsx(XX,{messageLimit:r}):null}),o&&r?t.jsx(g1,{compact:e,messageLimit:r}):null]})});function g1({compact:e,messageLimit:s}){const{limitActionButton:n,limitActionButtonType:a}=oX({messageLimit:"exceeded_limit"===s.type?s:void 0,isWarning:!0,asButton:!0}),i=xe(),r=xi(),o=i&&r?"/admin-settings/usage":"/settings/usage",l="enable-overages"===a?null:n,c=Ui(),d=JS(),u=ZX(e=>e.dismiss),m="approaching_limit"===s.type||"overageInUse"in s&&!!s.overageInUse,p=m1(s),f=function(e){if(!e?.windows)return null;const t=fJ(e.windows,"sentOnModel"in e?e.sentOnModel:void 0),s=t.status;return t.windowName&&s&&"number"==typeof s.utilization?{key:t.windowName,utilization:100*s.utilization}:null}(s),g=f?.utilization??null,h="exceeded_limit"===s.type?100:Math.max(80,Math.min(100,g??80)),C=Math.min(100,qX(g??h)),x=d1*(1-h/100),v=m;return t.jsxs("div",{className:GL("group flex h-7 min-w-0 items-center rounded text-muted hover:bg-fill-ghost-hover hover:text-primary has-[[data-popup-open]]:bg-fill-ghost-hover has-[[data-popup-open]]:text-primary",e?"shrink-0":"flex-1"),children:[v&&t.jsx("div",{className:"overflow-hidden transition-all duration-150 ease-out group-hover:w-7 has-[:focus-visible]:w-7 w-0",children:t.jsx("button",{type:"button",onClick:()=>u(p),"aria-label":d.formatMessage({defaultMessage:"Dismiss",id:"TDaF6JVgG6"}),className:"flex w-7 items-center justify-center hover:text-primary",children:t.jsx($L,{name:"X",size:"sm"})})}),t.jsxs(yN.Root,{children:[t.jsx(yN.Trigger,{render:t.jsxs("button",{type:"button",className:GL("flex min-w-0 items-center gap-xs pl-2.5 pr-0.5 transition-[padding-left] duration-150 ease-out",v&&"group-hover:pl-0",e?"shrink-0":"w-full justify-between text-left"),children:[t.jsx("span",{className:"min-w-0 flex-1 truncate",children:e?t.jsx(XX,{messageLimit:s}):t.jsx(t1,{messageLimit:s})}),t.jsxs("svg",{width:l1,height:l1,viewBox:"0 0 12 12",className:"shrink-0 -rotate-90","aria-hidden":!0,children:[t.jsx("circle",{cx:6,cy:6,r:c1,fill:"none",strokeWidth:1.5,stroke:Oi.alpha[2].cssVar}),t.jsx("circle",{cx:6,cy:6,r:c1,fill:"none",strokeWidth:1.5,strokeDasharray:d1,strokeDashoffset:x,strokeLinecap:"round",stroke:r1(h),className:"transition-[stroke-dashoffset] duration-base"})]})]})}),t.jsxs(yN.Popup,{side:"bottom",align:"end",className:"flex w-[320px] max-w-[calc(100vw-2rem)] flex-col gap-md p-lg",children:[t.jsxs(yN.Title,{className:"flex items-baseline justify-between gap-sm",children:[t.jsx("span",{className:"text-body font-medium",children:t.jsx(XS,{defaultMessage:"Your usage limits",id:"DhJEA8I77u"})}),t.jsx("span",{className:"text-caption text-muted",children:c})]}),f&&t.jsxs("div",{className:"flex flex-col gap-xs",children:[t.jsxs("div",{className:"flex items-baseline justify-between gap-sm text-caption",children:[t.jsx("span",{className:"truncate",children:o1[f.key]?t.jsx(XS,{...o1[f.key]}):f.key}),t.jsx("span",{className:"text-muted",children:t.jsx(sL,{style:"percent",value:C/100})})]}),t.jsx("div",{className:"h-1 overflow-hidden rounded-full bg-alpha-2",children:t.jsx("div",{className:"h-full rounded-full transition-[width] duration-base",style:{width:`${C}%`,background:r1(g??h)}})}),t.jsx("div",{className:"text-caption text-muted empty:hidden",children:t.jsx(e1,{messageLimit:s})})]}),"approaching_limit"!==s.type&&t.jsx(yN.Description,{className:"text-body text-primary",children:t.jsx(XX,{messageLimit:s})}),t.jsxs("div",{className:"flex items-center gap-sm",children:[l,t.jsx(rN,{variant:"secondary",size:"sm",href:o,children:t.jsx(XS,{defaultMessage:"View usage",id:"X+4r+ljq38"})})]})]})]})]})}function h1(e,t){return e===t||e.endsWith(`.${t}`)}function C1(e){const t=e.hostname.toLowerCase();if("drivemcp.googleapis.com"===t)return!0;return(h1(t,"anthropic.com")||h1(t,"claude.com")||h1(t,"claude.ai"))&&(e.pathname.toLowerCase().includes("gdrive")||t.startsWith("gdrive."))}function x1(e){return v1(e,C1)}function v1(e,t){return e.find(e=>{const s="url"in e?e.url:void 0;if("string"!=typeof s||0===s.length)return!1;try{return t(new URL(s))}catch{return!1}})}const y1={notion:"Notion",linear:"Linear",atlassian:"Jira",slack:"Slack",microsoft:"Microsoft 365"},b1=t.jsx(XS,{defaultMessage:"Claude works directly with your codebase",id:"BUWSK/p5to"}),k1={cowork_zip:{body:t.jsx(XS,{defaultMessage:"Work across every file in Cowork",id:"3gLJXuVMFZ"}),cta:{kind:"cowork"}},cowork_local_files:{body:t.jsx(XS,{defaultMessage:"Let Cowork organize your files for you",id:"AkMrxYNY6U"}),cta:{kind:"cowork"}},cowork_step_away:{body:t.jsx(XS,{defaultMessage:"Use Cowork to start tasks while you focus on other things",id:"Wp0v6SSM1m"}),cta:{kind:"cowork"}},cowork_scheduled:{body:t.jsx(XS,{defaultMessage:"Schedule recurring tasks in Cowork",id:"ll48VNeeSu"}),cta:{kind:"cowork"}},cowork_screenshot_code:{body:t.jsx(XS,{defaultMessage:"Turn this screenshot into code in Cowork",id:"cF5dIcgCkr"}),cta:{kind:"cowork"}},cowork_spreadsheet:{body:t.jsx(XS,{defaultMessage:"Let Cowork crunch your spreadsheets",id:"j3T9BlA0KU"}),cta:{kind:"cowork"}},cowork_document:{body:t.jsx(XS,{defaultMessage:"Let Cowork work through your documents",id:"KaEUKNhDJk"}),cta:{kind:"cowork"}},cowork_multifile:{body:t.jsx(XS,{defaultMessage:"Hand off these files to Cowork",id:"sAhJmzDC22"}),cta:{kind:"cowork"},family:"cowork_multifile"},cowork_too_many_files:{body:t.jsx(XS,{defaultMessage:"More than {count} files? Bring the whole folder to Cowork",id:"BqU0E3+8RB",values:{count:Fi.maxTotalUploadsPerMessage}}),cta:{kind:"cowork"},family:"cowork_multifile"},cowork_data_file:{body:t.jsx(XS,{defaultMessage:"Crunch this data with code in Cowork",id:"XrlKpl1Dmq"}),cta:{kind:"cowork"}},cowork_long_paste:{body:t.jsx(XS,{defaultMessage:"Hand off the heavy lifting to Cowork",id:"QrNCTzx8qL"}),cta:{kind:"cowork"}},cowork_multidoc:{body:t.jsx(XS,{defaultMessage:"Let Cowork work across all your documents",id:"vQmVNfLIrM"}),cta:{kind:"cowork"}},cowork_scrape:{body:t.jsx(XS,{defaultMessage:"Let Cowork browse and gather for you",id:"rURCBdqVxz"}),cta:{kind:"cowork"}},cowork_data_clean:{body:t.jsx(XS,{defaultMessage:"Let Cowork clean and merge your data",id:"r01gwq2FG+"}),cta:{kind:"cowork"}},cowork_pdf_extract:{body:t.jsx(XS,{defaultMessage:"Let Cowork extract tables from this PDF",id:"mhAkUOPxa8"}),cta:{kind:"cowork"}},cc_code_file:{body:b1,cta:{kind:"claude-code"},family:"claude_code"},cc_code_paste:{body:b1,cta:{kind:"claude-code"},family:"claude_code"},cc_build_intent:{body:t.jsx(XS,{defaultMessage:"Build it for real in Claude Code",id:"oXuBc/rpqU"}),cta:{kind:"claude-code"}},cc_debug_intent:{body:t.jsx(XS,{defaultMessage:"Debug this where the code lives",id:"xFyMIImSK3"}),cta:{kind:"claude-code"}},cc_test_intent:{body:t.jsx(XS,{defaultMessage:"Write and run tests in Claude Code",id:"55XKQr7+Vx"}),cta:{kind:"claude-code"}},cc_sql:{body:t.jsx(XS,{defaultMessage:"Run queries against your real data",id:"01Hp20dZXy"}),cta:{kind:"claude-code"}},cc_config_paste:{body:t.jsx(XS,{defaultMessage:"Work on config with full project context",id:"2nJfAuUX0t"}),cta:{kind:"claude-code"}},cc_migrate:{body:t.jsx(XS,{defaultMessage:"Run the migration in your repo",id:"Dov9qOIZkw"}),cta:{kind:"claude-code"}},cc_weak_keywords:{body:b1,cta:{kind:"claude-code"},family:"claude_code"},c4excel_pre:{body:t.jsx(XS,{defaultMessage:"Claude works directly in Excel",id:"UC+a/EUT84"}),cta:{kind:"office-addin",app:"excel"},family:"c4excel"},c4ppt_pre:{body:t.jsx(XS,{defaultMessage:"Claude works directly in PowerPoint",id:"XhMavvAI7M"}),cta:{kind:"office-addin",app:"powerpoint"},family:"c4ppt"},design_keywords:{body:t.jsx(XS,{defaultMessage:"Turn your idea into UI with Claude Design",id:"/NcT5Vp8d+"}),cta:{kind:"design"}},design_svg_rejected:{body:t.jsx(XS,{defaultMessage:"Bring your file to life in Claude Design",id:"hN5+/t02zC"}),cta:{kind:"design"}},gdrive_url:{body:t.jsx(XS,{defaultMessage:"Pull Docs, Sheets, Slides, and more straight from Drive",id:"HliP/18JnM"}),cta:{kind:"drive"},family:"gdrive"},gdrive_docx:{body:t.jsx(XS,{defaultMessage:"Pull docs straight from Drive",id:"KPT1DzUV++"}),cta:{kind:"drive"},family:"gdrive"},connector_url:{body:null,cta:{kind:"connector"}},projects_pdf:{body:t.jsx(XS,{defaultMessage:"Keep this doc on hand in a project",id:"FkzWMrMcOz"}),cta:{kind:"projects",mode:"create"}},projects_long_paste:{body:t.jsx(XS,{defaultMessage:"Keep long context across chats in a project",id:"70seTOzUs1"}),cta:{kind:"projects",mode:"create"}},projects_add_existing:{body:t.jsx(XS,{defaultMessage:"Add this to your project for shared context",id:"HhqXhuJzwp"}),cta:{kind:"projects",mode:"add"}}},w1={notion:["notion.com","notion.so"],linear:["linear.app"],atlassian:["atlassian.com"],slack:["slack.com"],microsoft:["microsoft.com","office.com"]};function M1({state:s}){const n=ae(),a=m(),i=pe(),{initDriveAuth:r}=fE({}),{serverId:o}=wE(),{launchOfficeAddinInstall:l,fallbackMessage:c}=fe("composer_upsell"),{downloadAndOpenModal:d,modal:u}=de("composer_upsell"),f=Yn({when:"cowork"===s.def.cta.kind}),g=ps(),h=p(),C=Vn(),x=Vi(),{servers:v}=Be(),[y,b]=e.useState(null);e.useEffect(()=>{oe().then(b)},[]),e.useEffect(()=>{s.onDisplayed()},[s]);const k=s.connectorHost?y1[s.connectorHost]:null,w=s.def.cta,M=(()=>{switch(w.kind){case"cowork":return f.routesInApp?{label:t.jsx(XS,{defaultMessage:"Start in Cowork",id:"aYaxKE5di/"}),href:f.href}:{label:t.jsx(XS,{defaultMessage:"Download Cowork",id:"Av25B3J2jg"}),onClick:()=>d(y)};case"claude-code":return a?{label:t.jsx(XS,{defaultMessage:"Start in Claude Code",id:"jhSmmqsIPI"}),...h?{onClick:()=>g("code")}:C?{href:"/code"}:{href:"/upgrade?source=composer_upsell"}}:{label:t.jsx(XS,{defaultMessage:"Download Claude Code",id:"n1xj13t6+v"}),onClick:()=>window.open("https://code.claude.com/docs/en/quickstart","_blank","noopener,noreferrer")};case"office-addin":return{label:t.jsx(XS,{defaultMessage:"Install",id:"ubmFc8rrea"}),onClick:i?()=>l(w.app):()=>window.open("/upgrade","_blank")};case"design":return{label:t.jsx(XS,{defaultMessage:"Try Claude Design",id:"CRQS+Oa9YW"}),href:a?ye(_e("composer_upsell")):_e("composer_upsell")};case"drive":return{label:t.jsx(XS,{defaultMessage:"Connect Drive",id:"XzTB2bvNw1"}),onClick:o?r:()=>{const e=x1(v),t=zi.find(e=>"google-drive"===e.slug),s=e??t;x({section:"connectors",slug:s?.uuid??null})}};case"connector":return{label:t.jsx(XS,{defaultMessage:"Connect {service}",id:"C9HmCsUjAq",values:{service:k}}),onClick:()=>{const e=s.connectorHost?w1[s.connectorHost]:[],t=v.find(t=>{if(!t.url)return!1;let n;try{n=new URL(t.url)}catch{return!1}if("microsoft"===s.connectorHost&&$E(n))return!0;const a=n.hostname.toLowerCase();return e.some(e=>function(e,t){return e===t||e.endsWith(`.${t}`)}(a,e))});x({section:"connectors",slug:t?.uuid??null})}};case"projects":return{label:"add"===w.mode?t.jsx(XS,{defaultMessage:"Add to project",id:"+mqxxzVczn"}):t.jsx(XS,{defaultMessage:"Create project",id:"VUN1K7kSzC"}),href:"/projects"}}})(),_=()=>{n.track({event_key:"claudeai.composer_upsell.cta_clicked",banner_id:s.id,platform:a?"desktop":"web"}),M.onClick?.()},j="connector_url"===s.id?t.jsx(XS,{defaultMessage:"Pull this straight in with the {service} connector",id:"Ck9Wz9WF7C",values:{service:k}}):s.def.body;return t.jsxs("div",{className:"-mx-3.5 -mb-2 -mt-2.5 flex items-center justify-between gap-1.5 pb-2 pl-3.5 pr-2 pt-3",children:[t.jsx("span",{className:"text-body text-primary",children:c??j}),void 0!==M.href?t.jsx(rN,{variant:"secondary",size:"sm",href:M.href,onClick:_,className:"shrink-0",children:M.label}):t.jsx(rN,{variant:"secondary",size:"sm",onClick:_,className:"shrink-0",children:M.label}),u]})}function _1(e){return"blocked_by_org_admin"===e||"blocked_by_entitlement"===e||"blocked_by_platform"===e}const j1=["design_svg_rejected","cowork_too_many_files","cowork_zip","gdrive_url","connector_url","cc_code_paste","cc_code_file","c4ppt_pre","cowork_screenshot_code","cowork_data_clean","cowork_pdf_extract","cc_debug_intent","cc_sql","cowork_scheduled","cowork_local_files","cowork_step_away","gdrive_docx","c4excel_pre","design_keywords","cowork_data_file","cowork_multifile","cowork_multidoc","projects_add_existing","cowork_spreadsheet","cowork_document","projects_pdf","cc_build_intent","cc_test_intent","cowork_scrape","cowork_long_paste","projects_long_paste","cc_migrate","cc_config_paste","cc_weak_keywords"],S1=new Set(["xlsx","xls","xlsb","xlsm","xlm","xlt","xltm","xltx","ods","csv","tsv","tab"]),L1=new Set(["docx","doc","rtf","odt"]),N1=new Set(["pptx"]),I1=new Set(["jsonl","ndjson"]),T1=new Set(["ipynb","log","ini","cfg","config","env","tex","latex","prisma","gql","lock","gemspec","podspec","cabal"]),A1=new Set(["dockerfile","makefile","package.json","requirements.txt","cargo.toml","pom.xml","pyproject.toml"]);function E1(e){if(A1.has(e))return!0;const t=e.split(".").pop()??"";return SQ.has(t)||T1.has(t)}const R1=new Set(["png","jpg","jpeg","gif","webp"]);const D1=/(~?\/(Downloads|Desktop|Documents|Pictures)\b)|[A-Z]:\\Users\\|\/Users\/[\w.-]+\//,H1=/\b(organi[sz]e|clean up|tidy(?: up)?|sort|rename)\b[\s\S]{0,40}\b(files?|folders?|directory|downloads|desktop|documents)\b/i,P1=/\b(for each of (these|the|them)|all \d{2,}\b|in bulk|one by one)\b/i,U1=/\b(while i(?:'m| am)?\b|in the background)\b/i,O1=/^\s*(\d+[.)]|[-*\u2022] )/gm,F1=/\b(every (day|week|month|morning|evening|monday|tuesday|wednesday|thursday|friday|saturday|sunday)|daily|weekly|monthly|on a schedule|recurring|cron\b|monitor\b|alert me|remind me every)\b/i,V1=/\b(implement|build|code)\s+(this|it)\b|\bturn\s+(this|it)\s+into\s+(code|an?\s+app)/i,z1=/\b(compare (these|all|them)|across (these|all|my) (docs|documents|files|reports)|summari[sz]e each|combine (these|them|all) into one)\b/i,Z1=/\b(scrape|crawl|fetch (the )?data from|pull (the )?data from)\b/i,B1=/\b(clean|dedupe|de-dup\w*|merge|join|normali[sz]e)\b/i,q1=/\b(extract|parse|tables?)\b/i,W1=/^--- .+\n\+\+\+ |^@@ -\d/m,$1=/^[$%>] /gm,G1=/\b(build|create|make)( me)? an? (app|website|web ?app|webpage|dashboard|tool|game|landing page|portfolio|mvp|chrome extension|site)\b|\bwrite a script to\b|\bautomate this\b/i,K1=/Traceback \(most recent call last\)|^\s+at .+:\d+|\bUnhandled exception\b|^\w*(Error|Exception): |\berrno\b|panic:/m,Y1=/\b(debug (this|it|my)|fix this (bug|error|crash)|why is (this|it|my \w+) (failing|crashing|broken))\b/i,Q1=/\b(write (unit )?tests?\b|add test coverage|unit tests?\b|pytest|jest\b|test suite)\b/i,J1=/\bSELECT\b[\s\S]{1,500}?\bFROM\b|\bINSERT INTO\b|\bCREATE TABLE\b|\bALTER TABLE\b/i,X1=/\bmigrat(e|ing|ion)\b[\s\S]{0,60}\b(from|to)\b/i,e2=/\b(refactor|optimi[sz]e (this|my|the) code|dockeri[sz]e|kubernetes|k8s|ci\/cd|deploy (this|my|the)|react app|django|rails|next\.?js|vue\.?js|fastapi|spring boot|laravel)\b/i,t2=/\b(design|redesign|mock-?ups?|wireframes?|ui for|logo for|prototype|slide deck|slides for|presentation deck)\b/i,s2=/https?:\/\/[^\s)>\]]+/gi,n2=/https?:\/\/(docs|drive)\.google\.com\/(document|spreadsheets|presentation|file|open)/i,a2=[[/https?:\/\/(www\.)?notion\.so\//i,"notion"],[/https?:\/\/linear\.app\//i,"linear"],[/https?:\/\/[\w-]+\.atlassian\.net\//i,"atlassian"],[/https?:\/\/[\w-]+\.slack\.com\/archives\//i,"slack"],[/https?:\/\/[\w-]+\.sharepoint\.com\/|https?:\/\/onedrive\.live\.com\//i,"microsoft"]],i2=/^\s*[{[]|^---\n/;function r2(e){if(e.length<200||!i2.test(e))return!1;const t=e.slice(0,2e3);let s=0;for(const n of t)'{}[]":,=<>'.includes(n)&&s++;return s/t.length>.05}function o2(e){const t=e.length,s=t>2e4?e.slice(0,2e4):e,n=s.toLowerCase().includes("http"),a=s.includes("\n"),i=s.includes("```"),r=(()=>{if(!n)return{driveUrl:!1,connectorHost:null,scrapeUrl:!1};const e=n2.test(s);let t=null;for(const[n,a]of a2)if(n.test(s)){t=a;break}s2.lastIndex=0;return{driveUrl:e,connectorHost:t,scrapeUrl:Z1.test(s)&&s2.test(s)}})(),o=a?s.match(O1)?.length??0:0,l=a?s.match($1)?.length??0:0;return{length:t,longPaste:t>5e3,localFiles:D1.test(s)||H1.test(s),stepAway:P1.test(s)||U1.test(s)||o>=4,scheduled:F1.test(s),buildOnImage:V1.test(s),multidoc:z1.test(s),scrapeUrl:r.scrapeUrl,etlKeywords:B1.test(s),pdfExtractKeywords:q1.test(s),codePaste:i||a&&(W1.test(s)||l>=2),buildIntent:G1.test(s),debugIntent:a&&K1.test(s)||Y1.test(s),testIntent:Q1.test(s),sql:J1.test(s),configPaste:r2(s),migrate:X1.test(s),weakCodeKeywords:e2.test(s),designKeywords:t2.test(s),driveUrl:r.driveUrl,connectorHost:r.connectorHost}}const l2=o2(""),c2={cowork_zip:(e,t,s)=>s.coworkAllowed&&e.zipCount>0,cowork_local_files:(e,t,s)=>s.coworkAllowed&&t.localFiles,cowork_step_away:(e,t,s)=>s.coworkAllowed&&t.stepAway,cowork_scheduled:(e,t,s)=>s.coworkAllowed&&t.scheduled,cowork_screenshot_code:(e,t,s)=>s.coworkAllowed&&e.imageCount>0&&t.buildOnImage,cowork_spreadsheet:(e,t,s)=>s.coworkAllowed&&e.spreadsheetCount>0,cowork_document:(e,t,s)=>s.coworkAllowed&&e.documentCount>0,cowork_multifile:(e,t,s)=>s.coworkAllowed&&(e.otherCount>=2||e.totalCount>=3&&0===e.codeCount),cowork_data_file:(e,t,s)=>s.coworkAllowed&&e.dataFileCount>0,cowork_long_paste:(e,t,s)=>s.coworkAllowed&&t.longPaste,cowork_multidoc:(e,t,s)=>s.coworkAllowed&&t.multidoc,cowork_scrape:(e,t,s)=>s.coworkAllowed&&t.scrapeUrl,cowork_data_clean:(e,t,s)=>s.coworkAllowed&&e.spreadsheetCount>0&&t.etlKeywords,cowork_pdf_extract:(e,t,s)=>s.coworkAllowed&&e.pdfCount>0&&t.pdfExtractKeywords,cowork_too_many_files:(e,t,s)=>s.coworkAllowed&&s.tooManyFilesRejectedThisEpisode,cc_code_file:(e,t,s)=>s.ccAllowed&&e.codeCount>0,cc_code_paste:(e,t,s)=>s.ccAllowed&&t.codePaste,cc_build_intent:(e,t,s)=>s.ccAllowed&&t.buildIntent,cc_debug_intent:(e,t,s)=>s.ccAllowed&&t.debugIntent,cc_test_intent:(e,t,s)=>s.ccAllowed&&t.testIntent,cc_sql:(e,t,s)=>s.ccAllowed&&t.sql,cc_config_paste:(e,t,s)=>s.ccAllowed&&t.configPaste,cc_migrate:(e,t,s)=>s.ccAllowed&&t.migrate,cc_weak_keywords:(e,t,s)=>s.ccAllowed&&t.weakCodeKeywords,c4excel_pre:(e,t,s)=>s.officeAllowed&&e.spreadsheetCount>0,c4ppt_pre:(e,t,s)=>s.officeAllowed&&e.presentationCount>0,design_keywords:(e,t,s)=>s.designAllowed&&t.designKeywords,design_svg_rejected:(e,t,s)=>s.designAllowed&&s.svgRejectedThisEpisode,gdrive_url:(e,t,s)=>t.driveUrl&&!1===s.driveAuthed,gdrive_docx:(e,t,s)=>e.documentCount>0&&!1===s.driveAuthed,connector_url:(e,t,s)=>s.connectorInstallAllowed&&null!==t.connectorHost&&!s.connectedConnectorHosts.has(t.connectorHost),projects_pdf:(e,t,s)=>s.projectsAllowed&&e.pdfCount>0,projects_long_paste:(e,t,s)=>s.projectsAllowed&&t.longPaste,projects_add_existing:(e,t,s)=>s.projectsAllowed&&s.hasProjects&&(t.longPaste||e.totalCount>=2)};function d2(e,t,s,n){return c2[e](t,s,n)}const u2=AL({id:IL(),enabled:RL().optional().catch(void 0),cooldownDaysOverride:EL().int().positive().optional().catch(void 0),audience:TL(["all","desktopOnly"]).optional().catch(void 0)}).nullable().catch(null),m2=AL({enabled:RL(),globalCooldownDays:EL().positive().optional().catch(void 0),bannerCooldownDays:EL().positive().optional().catch(void 0),maxLifetimeShows:EL().int().positive().optional().catch(void 0),banners:NL(u2).optional().catch(void 0).transform(e=>e?.filter(e=>null!==e))}),p2={enabled:!1};const f2=new Set(["cowork_zip","cowork_local_files","cowork_step_away","cowork_scheduled","cowork_screenshot_code","cowork_spreadsheet","cowork_document","cowork_multifile","cowork_too_many_files","cowork_data_file","cowork_long_paste","cowork_multidoc","cowork_scrape","cowork_data_clean","cowork_pdf_extract","cc_code_file","cc_code_paste","cc_build_intent","cc_debug_intent","cc_test_intent","cc_sql","cc_config_paste","cc_migrate","cc_weak_keywords","c4excel_pre","c4ppt_pre","design_keywords","design_svg_rejected","gdrive_url","gdrive_docx","connector_url","projects_pdf","projects_long_paste","projects_add_existing"]);function g2(e){const t={};for(const s of e.banners??[])void 0!==s.cooldownDaysOverride&&f2.has(s.id)&&(t[s.id]=s.cooldownDaysOverride);return t}function h2({conversationUuid:t,files:s,attachments:n,isSending:a,suppressed:i}){const r=ae(),o=m(),l=xe(),{activeOrganization:c}=v(),d=Zi(),u=za(),p=!t&&!zn()&&!u,f=ce("claudeai_composer_upsells_main",p),g=p&&f,h=e.useMemo(()=>function(e,t){const s=[...e.map(e=>({file_name:e.file_name,sizeBytes:e.size_bytes??0,isImage:e.file_kind===Zt.Image})),...t.map(e=>({file_name:e.file_name,sizeBytes:e.file_size??e.size_bytes??0,isImage:!1}))],n={totalCount:s.length,spreadsheetCount:0,documentCount:0,presentationCount:0,pdfCount:0,largePdfCount:0,zipCount:0,dataFileCount:0,codeCount:0,imageCount:0,otherCount:0};for(const a of s){const e=(a.file_name??"").toLowerCase(),t=e.split(".").pop()??"",s=a.isImage||R1.has(t),i=S1.has(t)||L1.has(t)||N1.has(t),r=E1(e);S1.has(t)&&n.spreadsheetCount++,L1.has(t)&&n.documentCount++,N1.has(t)&&n.presentationCount++,"pdf"===t&&(n.pdfCount++,a.sizeBytes>2097152&&n.largePdfCount++),"zip"===t&&n.zipCount++,I1.has(t)&&n.dataFileCount++,r&&n.codeCount++,s&&n.imageCount++,i||r||s||"pdf"===t||"zip"===t||n.otherCount++}return n}(s,n),[s,n]),[C,x]=e.useState(l2);e.useEffect(()=>{if(!g)return;let e=null;const t=()=>{const e=o2(d.getState().getPrompt());x(t=>function(e,t){for(const s of Object.keys(e))if(e[s]!==t[s])return!1;return!0}(t,e)?t:e)};t();const s=d.subscribe(()=>{e&&clearTimeout(e),e=setTimeout(t,400)});return()=>{e&&clearTimeout(e),s()}},[d,g]);const[y,b]=e.useState(!1),[k,w]=e.useState(!1);e.useEffect(()=>{if(g)return Bi(e=>{"max_uploads"===e.reason?w(!0):"svg"!==e.extension&&"svgz"!==e.extension||b(!0)})},[g]);const{isDriveAuthenticated:M,isFetched:_}=fE({}),j=kE(),{isEnabled:S}=wE(),L=j&&S&&_,N=as(),I=ke("cowork"),T=ke("work_across_apps"),A=ke("omelette"),E=Vn(),R=Sa(),D=Iz(),H=Jn(),P=c?.capabilities.includes("externally_managed")??!1,U=!l||!_1(I.status)&&(o?H.includes("cowork"):D&&!P),O=!l||E,F=!l||!_1(T.status),V=!l||!_1(A.status),{data:z}=qi({enabled:g,limit:1}),Z=(z?.data?.length??0)>0,{data:B}=Wi(c?.uuid,{enabled:g}),q=e.useMemo(()=>{const e=new Set;for(const t of B??[]){const s=t.url.toLowerCase();s.includes("notion")&&e.add("notion"),s.includes("linear")&&e.add("linear"),(s.includes("atlassian")||s.includes("jira"))&&e.add("atlassian"),s.includes("slack")&&e.add("slack"),(s.includes("microsoft")||s.includes("sharepoint")||s.includes("office"))&&e.add("microsoft")}return e},[B]),W=e.useMemo(()=>({projectsAllowed:N,hasProjects:Z,driveAuthed:L?M:void 0,connectedConnectorHosts:q,svgRejectedThisEpisode:y,tooManyFilesRejectedThisEpisode:k,coworkAllowed:U,ccAllowed:O,officeAllowed:F,designAllowed:V,connectorInstallAllowed:R}),[N,Z,L,M,q,y,k,U,O,F,V,R]),$=e.useMemo(()=>g?function(e,t,s,n){for(const a of e){const e=c2[a];if(e&&e(t,s,n))return{id:a,detail:"connector_url"===a?s.connectorHost??void 0:void 0}}return null}(j1,h,C,W):null,[g,h,C,W]),G=e.useRef(new Set);e.useEffect(()=>{$&&!G.current.has($.id)&&(G.current.add($.id),r.track({event_key:"claudeai.composer_upsell.trigger_matched",banner_id:$.id,detail:$.detail??""}))},[$,r]);const K=function(e){return va("claudeai_composer_upsells_config_v2",p2,m2,e)}(g&&null!==$),Y=e.useRef(null),[,Q]=e.useState(0),J=e.useMemo(()=>({globalCooldownDays:K.globalCooldownDays??3,bannerCooldownDays:K.bannerCooldownDays??90,maxLifetimeShows:K.maxLifetimeShows,bannerCooldownOverrides:g2(K)}),[K]),X=e.useMemo(()=>{if(!g||!K.enabled||a||i)return null;const e=Y.current;if(e&&d2(e,h,C,W))return e;for(const t of function(e,t){return e.banners?e.banners.filter(e=>!1!==e.enabled&&f2.has(e.id)&&("desktopOnly"!==e.audience||t)).map(e=>e.id):j1}(K,o)){if(!d2(t,h,C,W))continue;if(!Bz(t,J))continue;const e=k1[t].family;if(!e||!$z(e,"postsend"))return t}return null},[g,K,o,a,i,h,C,W,J]),ee=e.useCallback(()=>{X&&Y.current!==X&&(Y.current=X,qz(X),r.track({event_key:"claudeai.composer_upsell.displayed",banner_id:X,platform:o?"desktop":"web"}),Q(e=>e+1))},[X,r,o]);return e.useMemo(()=>X?{id:X,def:k1[X],connectorHost:"connector_url"===X?C.connectorHost:null,onDisplayed:ee}:null,[X,C.connectorHost,ee])}function C2(e){const t=ys(e),{maxKbTokens:s}=vs();return void 0!==t&&t>s}const x2=AL({enabled:RL().default(!1),title:IL().default(""),learnMoreUrl:IL().url().refine(e=>/^https?:\/\//i.test(e)).optional().catch(void 0),dismissible:RL().default(!0)}).nullable();function v2(){const t=Qa("claude_input_warning_banner_config",null,x2),s=BX(e=>e.inputWarningConfig)??t;return e.useMemo(()=>{if(!s?.enabled)return null;const e=s.title?.trim()??"";return e?{enabled:!0,title:e,learnMoreUrl:s.learnMoreUrl,dismissible:s.dismissible}:null},[s])}function y2(t){const s=ii(),[n,a]=xs("input-warning-banner-dismissed-title",null),i=t?.title??"",r=e.useCallback(()=>a(i),[i,a]);return[s&&!1!==t?.dismissible&&n===i,r]}function b2(){const e=$i(e=>e.hasBlockingWarning),t=C2(Ie());return e||t}const k2=e.memo(function({hidden:e=!1}){const s=v2(),[n,a]=y2(s),i=b2();return t.jsx("div",{role:"status","aria-live":"polite","aria-atomic":"true",children:s?.enabled&&!e&&!n&&!i&&t.jsxs("div",{className:`${Gi} relative z-0 mx-2 -mb-5 flex items-center justify-between gap-md rounded-t-[20px] border border-b-0 border-transparent bg-surface-1 px-3.5 pb-7 pt-2.5 md:mx-0`,children:[t.jsx("span",{className:"font-bold text-primary",children:s.title}),t.jsxs("div",{className:"flex shrink-0 items-center gap-md",children:[s.learnMoreUrl&&t.jsx(ct,{external:!0,href:s.learnMoreUrl,className:"shrink-0 text-primary",children:t.jsx(XS,{defaultMessage:"Learn more",id:"TdTXXf940t"})}),s.dismissible&&t.jsx(zJ,{onClick:a})]})]})})});k2.displayName="InputWarningBanner";const w2="cowork_model_update_composer_warning";function M2({modelName:s,isUpdateAvailable:n}){const a=ae(),i=e.useRef(null);e.useEffect(()=>{i.current!==n&&(i.current=n,a.track({event_key:`claudeai.${w2}.displayed`,update_available:n}))},[a,n]);const r=e.useCallback(()=>{a.track({event_key:`claudeai.${w2}.cta_clicked`}),(async()=>{const[e,t]=await Promise.all([Promise.resolve(Xa?.getRunningLocalSessions?.()),Promise.resolve(Xa?.getRunningLocalSessionCount?.())]);Math.max(t??0,e?.length??0)>0?Xa?.restartToUpdateWhenIdle?.():Xa?.restartToUpdate?.()})()},[a]);return t.jsxs(VJ,{children:[t.jsxs("div",{className:"flex items-center gap-1",children:[n?t.jsx(UR,{className:"h-4 w-4 shrink-0 text-success",weight:"fill"}):t.jsx(OR,{className:"h-4 w-4 shrink-0",weight:"regular"}),t.jsx("span",{children:t.jsx(hs,{id:"1i8ey8m",dangerouslyVisiblePublicValues:{modelName:s}})})]}),n?t.jsx(rN,{size:"sm",onClick:r,className:"shrink-0",children:t.jsx(XS,{defaultMessage:"Update",id:"BWpuKlRSA1"})}):null]})}function _2({enableNotifications:e,onDismiss:s}){return t.jsxs(VJ,{children:[t.jsx("span",{className:"text-secondary text-sm",children:t.jsx(XS,{defaultMessage:"Want to be notified when Claude responds?",id:"oTSi46bhi3"})}),t.jsxs("span",{className:"shrink-0 flex items-center gap-xs",children:[t.jsx(rN,{size:"sm",variant:"primary",onClick:e,children:t.jsx(XS,{defaultMessage:"Notify",id:"dhf5eKHqOb"})}),t.jsx(zJ,{onClick:s})]})]})}function j2(){const e=xi(),s=xe();return t.jsx(pI,{actionButton:null,children:s&&!e?t.jsx(XS,{defaultMessage:"Your organization's subscription is paused. Contact your organization admin to restore access.",id:"kObJGE3R8c"}):t.jsx(XS,{defaultMessage:"Your subscription is paused. <link>Pay your invoice</link> to restore access.",id:"TGGsVSTv4p",values:{link:e=>t.jsx(ds,{className:"whitespace-nowrap",href:"/settings/billing",children:e})}})})}function S2(){const e=xi(),s=JS();return t.jsx(pI,{actionButton:null,title:s.formatMessage({defaultMessage:"Team plan canceled",id:"KuqVOfg9/0"}),children:e?t.jsx(XS,{defaultMessage:"You can no longer chat with Claude. To restore full access, <link>renew your subscription</link>.",id:"L2pC0kiNNO",values:{link:e=>t.jsx(ds,{className:"whitespace-nowrap",href:"/settings/billing",children:e})}}):t.jsx(XS,{defaultMessage:"You can no longer chat with Claude.",id:"hxcpUUnV0b"})})}function L2(){return t.jsx(pI,{actionButton:null,minimalUi:!0,children:t.jsx(XS,{defaultMessage:"Due to capacity constraints, chatting with Claude is currently not available. Please try again shortly.",id:"kfyWX0MxKQ"})})}function N2({className:e,...s}){return t.jsx("div",{className:dt("text-text-100 font-medium underline hover:no-underline",e),...s})}function I2({inaccessibleSyncSources:e}){const{chatResourceState:s}=RN(),n=Dq(),{isDrawerExpanded:a,setIsDrawerExpanded:i}=DN(),r=e[0],o=r?.type===He.MCP_RESOURCES?r.config.server_uuid:void 0,l=Pe({type:"remote",uuid:o}),c=e.every(e=>e.status.state===os.UNAUTHENTICATED)&&1===new Set(e.map(e=>e.type)).size,d=e[0]?.type,u=t.jsx("button",{onClick:()=>{i(!0)},children:t.jsx(N2,{children:t.jsx(XS,{defaultMessage:"Show {count, plural, one {# Item} other {# Items}}",id:"1HlfJxfH7H",values:{count:e.length}})})}),m=o&&l[0]?{uuid:l[0].uuid,url:l[0].url}:void 0;let p;if(c&&null!==d){if(d===He.MCP_RESOURCES&&!m)return;p=t.jsx("button",{onClick:()=>n(d,m),children:t.jsx(N2,{children:t.jsx(XS,{defaultMessage:"Reconnect with {sourceName}",id:"dUareRZF9G",values:{sourceName:$e[d]}})})})}else s.conversationUuid&&!a&&(p=u);return t.jsx(VJ,{children:t.jsx(XS,{defaultMessage:"Some of your content could not be loaded. {actionButton}",id:"Ibsz06ys2B",values:{actionButton:p}})})}function T2({daysUntil:s,promoEndsAt:n,onDismiss:a}){const i=ae(),r=xi(),o=e.useRef(!1);e.useEffect(()=>{o.current||(o.current=!0,i.track({event_key:"claudeai.team_promo.ending_banner.shown",days_until:s,can_manage_billing:r}))},[i,s,r]);const l=()=>{i.track({event_key:"claudeai.team_promo.ending_banner.clicked",days_until:s})},c=t.jsx(nL,{value:n,month:"long",day:"numeric",year:"numeric"});return t.jsxs(VJ,{children:[t.jsx("span",{children:r?t.jsx(XS,{defaultMessage:"Promo ends in {daysUntil, plural, one {# day} other {# days}}. Charges begin {chargeDate}. <link>Manage billing</link>",id:"1Co7ulI4TR",values:{daysUntil:s,chargeDate:c,link:e=>t.jsx("span",{onClick:l,children:t.jsx(ds,{href:"/settings/billing",children:e})})}}):t.jsx(XS,{defaultMessage:"Your team's promo ends in {daysUntil, plural, one {# day} other {# days}}. Charges begin {chargeDate}.",id:"HDrafhRebD",values:{daysUntil:s,chargeDate:c}})}),t.jsx(zJ,{onClick:()=>{i.track({event_key:"claudeai.team_promo.ending_banner.dismissed",days_until:s,can_manage_billing:r}),a()}})]})}function A2({daysRemaining:s,trialEndsAt:n,onDismiss:a}){const i=ae(),r=xi(),o=e.useRef(!1);e.useEffect(()=>{o.current||(o.current=!0,i.track({event_key:"claudeai.team_trial.countdown_banner.shown",days_remaining:s,can_manage_billing:r}))},[i,s,r]);const l=()=>{i.track({event_key:"claudeai.team_trial.countdown_banner.clicked",days_remaining:s})},c=t.jsx(nL,{value:n,month:"long",day:"numeric",year:"numeric"});return t.jsxs(VJ,{children:[t.jsx("span",{children:r?t.jsx(XS,{defaultMessage:"Trial ends in {daysRemaining, plural, one {# day} other {# days}}. Charges begin {chargeDate}. <link>Manage billing</link>",id:"UsXTV4Emtn",values:{daysRemaining:s,chargeDate:c,link:e=>t.jsx("span",{onClick:l,children:t.jsx(ds,{href:"/settings/billing",children:e})})}}):t.jsx(XS,{defaultMessage:"Your team's trial ends in {daysRemaining, plural, one {# day} other {# days}}. Charges begin {chargeDate}.",id:"B+T60cTJpn",values:{daysRemaining:s,chargeDate:c}})}),t.jsx(zJ,{onClick:()=>{i.track({event_key:"claudeai.team_trial.countdown_banner.dismissed",days_remaining:s,can_manage_billing:r}),a()}})]})}const E2="notificationPreferences";var R2=(e=>(e.FCM="FCM",e.APNS="APNS",e))(R2||{});const D2=()=>{const{activeOrganization:e}=v(),t=e?.uuid;return B(`/api/organizations/${t}/notification/preferences`,{queryKey:[E2,{orgUuid:t}],enabled:!!t,custom3pCompatible:!0})},H2=()=>{const{activeOrganization:e}=v(),t=e?.uuid,s=gL();return b(`/api/organizations/${t}/notification/preferences`,"PUT",{onSuccess:()=>{s.invalidateQueries({queryKey:[E2,{orgUuid:t}]})}})},P2=e=>{const{activeOrganization:t}=v(),s=t?.uuid,n=gL(),a=[E2,{orgUuid:s}];return b(`/api/organizations/${s}/notification/preferences`,"PATCH",{meta:e?.noToast?{noToast:!0}:void 0,onMutate:async e=>{await n.cancelQueries({queryKey:a});const t=n.getQueryData(a);return t&&n.setQueryData(a,{...t,preferences:{...t.preferences,feature_preference:{...t.preferences.feature_preference,...e.preferences.feature_preference}}}),{previous:t}},onError:(e,t,s)=>{s?.previous&&n.setQueryData(a,s.previous)},onSuccess:(e,t,s)=>{n.setQueryData(a,{...e,push_reachability:e.push_reachability??s?.previous?.push_reachability})}})},U2=()=>{const{activeOrganization:e}=v(),t=e?.uuid,s=gL();return b(`/api/organizations/${t}/notification/channels`,"POST",{enabled:!!t,onSuccess:()=>{s.invalidateQueries({queryKey:["notificationChannels",{orgUuid:t}]})},meta:{noToast:!0}})},O2=()=>y("ccr_client_presence_enabled"),F2=new Set(["ios","android"]),V2=()=>{const{data:e}=D2(),t=e?.push_reachability;if(t)return t.platforms.some(e=>F2.has(e))},z2=()=>y("ccr_code_requires_action_category_enabled"),Z2=["compass","completion"],B2=()=>{const{data:e}=D2(),t=e?.preferences.feature_preference??{};return Z2.every(e=>{const s=t[e];return!0===s?.enable_push})},q2=()=>{const{data:t}=D2(),{mutateAsync:s}=P2();return e.useCallback(async e=>{const n=t?.preferences.feature_preference,a={};for(const t of Z2)a[t]={...n?.[t],enable_push:e};await s({preferences:{feature_preference:a}})},[t,s])},W2="type.googleapis.com/anthropic.claude.push.";function $2(e,t,s){return e[t]??e[s]}function G2(e){return"string"==typeof e?e:void 0}function K2(e){if(!e)return null;try{const t=JSON.parse(e),{method:s,request:n}=t,a=n?.["@type"];if(!s||!n||"string"!=typeof a||!a.startsWith(W2))return null;switch(s){case"OpenChat":{if(a!==`${W2}OpenChatRequest`)return null;const e=G2($2(n,"conversation_uuid","conversationUuid"));if(!e)return null;return{method:"OpenChat",targetUrl:!0===$2(n,"is_temporary","isTemporary")?`/chat/${e}?${Yi}`:`/chat/${e}`,messageUuid:G2($2(n,"message_uuid","messageUuid"))}}case"OpenCodeSession":{if(a!==`${W2}OpenCodeSessionRequest`)return null;const e=G2($2(n,"session_id","sessionId"));return e?{method:"OpenCodeSession",targetUrl:`/code/${e}`}:null}case"OpenCoworkSession":{if(a!==`${W2}OpenCoworkSessionRequest`)return null;const e=G2($2(n,"session_id","sessionId"));return e?{method:"OpenCoworkSession",targetUrl:`/cowork/${e}`}:null}default:return null}}catch{return null}}const Y2={apiKey:"AIzaSyDu88493oN_Xq4PNVr_x8GUZPZhe-byS4U",authDomain:"proj-scandium-production-5zhm.firebaseapp.com",projectId:"proj-scandium-production-5zhm",storageBucket:"",messagingSenderId:"365066964946",appId:"1:365066964946:web:920eb01ec340c52cb8420b",measurementId:""},Q2="BBn_zDr7ckBwzQe6Tdc1k6E0tSdrG64L2ddLR36jUkdaleKmAdfgt3ao93t-nib3n3oBaAtbd9KyoxHaUGJLEzU";async function J2(){const[e,t]=await Promise.all([a(()=>import("./c50152c30-Cqvd76Io.js"),[],import.meta.url),a(()=>import("./c50152c30-BRV28i6j.js"),[],import.meta.url)]);return{getApp:e.getApp,getApps:e.getApps,initializeApp:e.initializeApp,getMessaging:t.getMessaging,getToken:t.getToken,isSupported:t.isSupported,onMessage:t.onMessage}}function X2(){const{track:t}=ae(),{mutate:s}=U2(),n=m();return e.useCallback(async()=>{t({event_key:"claudeai.notification.permission.request_started"});const e=await async function({isClaudeElectronApp:e,onTokenReceived:t,track:s}){if(!("Notification"in window))return{success:!1,errorSource:"browser_or_permissions"};try{const i=await Notification.requestPermission();if(s&&s({event_key:"claudeai.notification.permission.result",permission:i}),"granted"!==i)return s&&s({event_key:"claudeai.notification.permission.result",permission:i}),{success:!1,errorSource:"browser_or_permissions"};{if(e)return{success:!1,errorSource:"internal"};const{getApp:s,getApps:i,initializeApp:r,getMessaging:o,getToken:l,isSupported:c}=await J2();let d,u;if(d=0===i().length?r(Y2):s(),!(await c()))return{success:!1,errorSource:"firebase"};try{u=o(d)}catch(n){return{success:!1,errorSource:"firebase"}}let m=(await navigator.serviceWorker.getRegistrations()).find(e=>e.active?.scriptURL.includes("firebase-messaging-sw.js"));if(!m)try{m=await navigator.serviceWorker.register("/firebase-messaging-sw.js"),await navigator.serviceWorker.ready}catch(a){F(a,{source:"fcm_register_service_worker"})}const p=await l(u,{vapidKey:Q2,serviceWorkerRegistration:m});if(!p)throw new Error("FCM token is null");t(p)}return{success:!0}}catch(i){return F(i,{source:"fcm_request_permission"}),{success:!1,errorSource:"internal"}}}({isClaudeElectronApp:n,onTokenReceived:e=>{s({channel_type:R2.FCM,registration_token:e,client_app_name:"claude-ai-web"})},track:t});return e},[s,n,t])}const e5=()=>{const t=e.useRef(null),{account:s,activeOrganization:n}=v(),a=gL(),{mutate:i}=U2(),o=m(),l=y("claudeai_skip_foreground_notifications"),{track:c}=ae(),d=r(),u=e.useCallback(e=>{i({channel_type:R2.FCM,registration_token:e,client_app_name:"claude-ai-web"})},[i]);return e.useEffect(()=>{let e=!0,s=null;(async()=>{if(!o&&n?.uuid&&"Notification"in window&&"granted"===Notification.permission)try{const{messaging:i}=await(async()=>{if("undefined"==typeof window)return{app:null,messaging:null};const{getApp:e,getApps:s,initializeApp:n,getMessaging:a,isSupported:i}=await J2();let r;if(r=0===s().length?n(Y2):e(),!(await i()))return{app:null,messaging:null};if(t.current)return{app:r,messaging:t.current};const o=a(r);return t.current=o,{app:r,messaging:o}})();if(!i||!e)return;const r=await(async e=>{try{const{getToken:t}=await J2();return await t(e,{vapidKey:Q2})}catch(t){return F(t,{source:"fcm_get_fcm_token"}),null}})(i);r&&e&&u(r);const{onMessage:o}=await J2();if(!e)return;s=o(i,e=>{if(c({event_key:"claudeai.notification.received",category:e.data?.notification_feature_category||"unknown",location:"foreground"}),"completion"===e.data?.notification_feature_category){const t=K2(e.data.payload),s=t?.targetUrl?.match(/\/chat\/([^/?#]+)/)?.[1];s&&Qi(a,n?.uuid,s)}if(l)return;if("completion"===e.data?.notification_feature_category){const t=K2(e.data.payload);if(t?.targetUrl&&window.location.pathname.includes(t.targetUrl))return;return void navigator.serviceWorker.getRegistrations().then(t=>{const s=t.find(e=>e.active?.scriptURL.includes("firebase-messaging-sw.js"));s?.active&&s.active.postMessage({type:"SHOW_COMPLETION_NOTIFICATION",payload:e.data})})}const t=e.data?.title||"Claude",s={body:e.data?.body,icon:"/favicon.svg",badge:"/favicon.svg",data:e.data},i=new Notification(t,s);i.onclick=()=>{window.focus(),i.close();let t="/";if(e.data?.payload){const s=K2(e.data.payload);s&&(t=s.targetUrl)}c({event_key:"claudeai.notification.clicked",category:e.data?.notification_feature_category||"unknown",target_url:t,location:"foreground"}),d.push(t)}})}catch(i){F(i,{source:"fcm_setup_notifications"})}})();const i=e=>{const t=e.data;"TRACK_NOTIFICATION_RECEIVED"===t?.type&&c({event_key:"claudeai.notification.received",category:t.category||"unknown",location:t.location||"background"}),"TRACK_NOTIFICATION_CLICK"===t?.type&&c({event_key:"claudeai.notification.clicked",category:t.category||"unknown",target_url:t.targetUrl,location:t.location||"background"}),"NOTIFICATION_CLICK_NAVIGATE"===t?.type&&t?.targetUrl&&d.push(t.targetUrl),"GET_CURRENT_URL"===t?.type&&t?.requestId&&e.source&&e.source.postMessage({type:"CURRENT_URL_RESPONSE",requestId:t.requestId,url:window.location.href})};return navigator.serviceWorker?.addEventListener("message",i),()=>{e=!1,s&&s(),navigator.serviceWorker?.removeEventListener("message",i)}},[s,n?.uuid,o,a,d,l,c,u]),null};function t5(){const[e,t]=le(()=>"Notification"in window?Notification.permission:"default","default");return Ji("focus",()=>{"Notification"in window&&t(Notification.permission)}),e}const s5="chat-notification-cta-dismissed";function n5({isRunningToolOrThinking:t}){const s=!m(),n=JS(),{addError:a}=ut(),i=t5(),r=X2(),o=q2(),l=(e=>{const{data:t}=D2();return!0===t?.preferences?.feature_preference?.[e]?.enable_push})("completion"),[c,d]=e.useState(!1),[u,p]=e.useState(()=>function(){if("undefined"==typeof window)return!1;const e=localStorage.getItem(s5);if(!e)return!1;const t=new Date(e).getTime();return Date.now()-t<2592e6}()),[f,g]=e.useState(!1),h=e.useRef(null);e.useEffect(()=>{if(s&&!f)return t?h.current||(h.current=setTimeout(()=>{g(!0),h.current=null},3e3)):h.current&&(clearTimeout(h.current),h.current=null),()=>{h.current&&clearTimeout(h.current)}},[t,s,f]);const C=e.useCallback(()=>{const e=(new Date).toISOString();localStorage.setItem(s5,e),p(!0)},[]),x=e.useCallback(async()=>{const{success:e,errorSource:t}=await r();if(e){try{await o(!0)}catch(s){return a(n.formatMessage({defaultMessage:"Failed to enable push notifications",id:"BYjF1UvtM8"}),{error:s,messageForLogging:"Failed to enable push notifications",errorContext:{tags:{source:"notification_cta_chat"}}}),!1}return d(!0),!0}return"browser_or_permissions"===t?(a(n.formatMessage({defaultMessage:"Unable to enable push notifications. Please check your browser settings.",id:"0/hFRPBjM4"}),{messageForLogging:"Unable to enable push notifications. Please check your browser settings.",errorContext:{tags:{source:"notification_cta_chat"}}}),C()):a(n.formatMessage({defaultMessage:"An unknown error occurred while enabling push notifications for your browser.",id:"67uXQ1sb1D"}),{messageForLogging:"An unknown error occurred while enabling push notifications for your browser.",errorContext:{tags:{source:"notification_cta_chat"}}}),!1},[n,a,C,r,o]);return{showNotification:f&&!u&&!c,notificationPermission:i,enableNotifications:x,dismiss:C,isEnabled:l,isFeatureEnabled:s}}function a5({status:e}){const{track:s}=ae(),n="disabled_by_user"===e;return t.jsx(VJ,{children:t.jsxs("div",{className:"flex w-full items-center justify-between",children:[t.jsx("div",{children:"disabled_by_user"===e?t.jsx(XS,{defaultMessage:"Claude needs code execution to access some attached files.",id:"2NqXIz34vM"}):"blocked_by_entitlement"===e?t.jsx(XS,{defaultMessage:"Claude needs code execution to access some attached files. Contact your admin to request access to this feature.",id:"g1sf5a0AZY"}):t.jsx(XS,{defaultMessage:"Claude needs code execution to access some attached files. Contact an organization owner to enable this feature.",id:"HjhwC7vyjv"})}),n&&t.jsx("div",{children:t.jsx(er,{className:"text-accent-000 font-medium",href:"/settings/capabilities",onClick:()=>{s({event_key:"claudeai.settings.capabilities.opened",source:"ooc_files_warning"})},children:t.jsx(XS,{defaultMessage:"Enable in settings",id:"01fHiYUEo1"})})})]})})}function i5({onRetry:s,isRunningToolOrThinking:n=!1,isStreaming:a=!1,hasQuestionCard:i=!1,hasComposerUsageRing:r=!1}){const o=re(e=>{const t=e.tipTapEditorState;return"__ant_unsafe"in t&&!!t.__ant_unsafe}),{attachments:l,files:c}=re(e=>({attachments:e.attachments,files:e.files})),{conversation:d,wiggleEnabled:u,isRemoteCoworkSession:p}=J(),f=Ie(),g=tr(d?.id),h=gI(d?.id,d?.model),C=d?.id&&h?t.jsx(hI,{conversationUuid:d.id,model:d.model,lastMessage:h.lastMessage,stopReason:h.stopReason,onRetryWithFallback:async()=>{if(!h.lastMessage.parent_message_uuid)return;const{model:e}=await g.mutateAsync();s(h.lastMessage.parent_message_uuid,e)}}):null,{exceededMessageLimitWarning:x,approachingMessageLimitWarning:b,overageExceededWarning:k,messageLimit:w}=function(){const e=QX(),{messageLimit:t}=e,{model:s}=J(),n="within_limit"!==t?.type?t?.sentOnModel:void 0,{overage:a,...i}="within_limit"!==t?.type?t?.windows??{}:{},{modelDisplayName:r}=fJ(i,n);return r&&s&&n!==s?{}:e}(),M=u1(),_=r&&M,j=_?x??k??null:null,S=_?null:b,L=y("past_due_subscription_enforcement"),{data:N}=sr({cached:!0}),{activeOrganization:I}=v(),T=L&&"past_due"===N?.status&&"stripe_subscription_contracted"!==I?.billing_type&&"stripe_subscription_enterprise_self_serve"!==I?.billing_type?t.jsx(j2,{}):void 0,{isRavenCanceled:A}=nr(),E=A?t.jsx(S2,{}):void 0,R=function(e){const t=e?.team_promo_ends_at;if(!t)return null;const s=new Date(t).getTime(),n=e?.test_clock_frozen_time?1e3*e.test_clock_frozen_time:Date.now();return Math.ceil((s-n)/864e5)}(N),[D,H]=function(){const[e,t]=qa("team-promo-ending-dismissed",!1);return[e,t]}(),P=null!==R&&R>0&&R<=7&&!D&&N?.team_promo_ends_at?t.jsx(T2,{daysUntil:R,promoEndsAt:N.team_promo_ends_at,onDismiss:()=>H(!0)}):void 0,{teamTrialEndsAt:U,daysRemaining:O,cancelScheduled:F}=ar(),[V,z]=function(){const[e,t]=qa("team-trial-countdown-dismissed",!1);return[e,t]}(),Z=null!==O&&O>0&&O<=7&&!F&&!V&&U?t.jsx(A2,{daysRemaining:O,trialEndsAt:U,onDismiss:()=>z(!0)}):void 0,B=ir()?t.jsx(L2,{}):void 0,q=(()=>{const{chatResourceState:e}=RN();return[...e.syncSources||[],...Qs(f).data||[]].filter(e=>or.includes(e?.status?.state))})(),W=q.length?t.jsx(I2,{inaccessibleSyncSources:q}):void 0,$=C2(f)?t.jsx(VJ,{children:t.jsxs("div",{className:"text-danger-000 flex items-center gap-1",children:[t.jsx(FR,{className:"h-4 w-4 shrink-0",weight:"regular"}),t.jsx("span",{children:t.jsx(XS,{defaultMessage:"Project knowledge exceeds maximum. Remove files to continue.",id:"IqUMWBoy4d"})})]})}):void 0,G=function(e,s,n){const{data:a=[]}=Js(n),i=Bs(),r=Xi(),o=[...e,...s?s.files:[],...a].filter(e=>e.file_kind===Zt.Blob);return"blocked_by_platform"===r.status?null:!i&&o.length?t.jsx(a5,{status:r.status}):null}(c,d,f),K=u||p?null:G,Y=function(e,s){const n=Ki([...e,...s?.files??[]]),[a,i]=qa("approaching-image-limit-dismissed-conversations",[]),r=!!s?.id&&a.includes(s.id),{approachingImagesPerConversation:o,maxImagesPerConversation:l}=Fi,c=n>=l;return n<o||r&&!c?null:t.jsxs(VJ,{children:[t.jsx("span",{children:c?t.jsx(XS,{defaultMessage:"This chat has reached the {max}-image limit (including PDF pages). Start a new chat to add more.",id:"q24oJXcctR",values:{max:l}}):t.jsx(XS,{defaultMessage:"This chat has {count} of {max} images (including PDF pages). Consider starting a new chat.",id:"joPtfT21oo",values:{count:n,max:l}})}),!c&&s?.id?t.jsx(zJ,{onClick:()=>i(e=>e.includes(s.id)?e:[...e,s.id])}):null]})}(c,d),Q=function(){const e=Ue(He.GMAIL),t=Ue(He.GCAL),s=uE();return!m()&&(e||t||s)}(),X=o&&Q?t.jsx(VJ,{children:t.jsxs("div",{className:"text-danger-000 flex items-center gap-1",children:[t.jsx(FR,{className:"h-4 w-4 shrink-0",weight:"regular"}),t.jsx("span",{children:t.jsx(XS,{defaultMessage:"Use caution before running this prompt. Malicious conversation content could trick Claude into attempting harmful actions or sharing your data.",id:"bWRp6wwzXA"})})]})}):null,ee=l.some(e=>e.origin===ts.URLParameter)?t.jsx(VJ,{children:t.jsxs("div",{className:"text-danger-000 flex items-center gap-1",children:[t.jsx(FR,{className:"h-4 w-4 shrink-0",weight:"regular"}),t.jsx("span",{children:t.jsx(XS,{defaultMessage:"Artifacts are user-generated and may contain unverified or potentially unsafe content.",id:"/0GesG9R4n"})})]})}):null,te=C??X??ee??null,se=$??null,{showNotification:ne,notificationPermission:ae,enableNotifications:ie,dismiss:oe,isEnabled:le,isFeatureEnabled:ce}=n5({isRunningToolOrThinking:n}),de=za(),ue=!ce||!ne||de||i||"granted"===ae&&le?null:t.jsx(_2,{enableNotifications:ie,onDismiss:oe}),pe=aa(e=>e.sessionContext?.sessionId??null),fe=!!dI(pe),ge=re(e=>e.isSending),he=h2({conversationUuid:d?.id,files:c,attachments:l,isSending:ge,suppressed:fe}),xe=he?t.jsx(M1,{state:he}):null,{mode:ve}=WJ(),ye=YJ(),{model:be}=J(),_e=rr(d?.id??null),je=be??_e,[Se,Le]=$J(ve),Ne=ye(je),Te="exceeded_limit"===w?.type&&!!w.creditsRequired&&!w.perModelLimit,Ae=Te&&(w.creditsRequired?.canUserPurchaseCredits??!1),Ee=Te&&Ne&&Ae?t.jsx(nX,{modelId:je,messageLimit:w}):null,Re=Te||_?null:x,De=Te&&!Ne||_?null:k,Pe="subscription"!==ve||!Ne||Ee||Se||fe?null:t.jsx(aX,{mode:ve,modelId:je,onDismiss:()=>Le(!0)}),Oe=cJ(),Fe=lJ(),Ve=aJ(),ze=de&&Oe&&!fe&&Fe?t.jsx(M2,{modelName:Fe,isUpdateAvailable:Ve}):null,Ze=y("ef_chat_banner_placement"),Be=function(){const e=v2(),[t]=y2(e),s=b2();return!!e?.enabled&&!t&&!s}(),qe=Ze||Be?void 0:d?.id,We=PG(),$e=UG({scopeKey:d?.id,isAgentRunning:a,renderEnabled:!Ze&&!We}),Ge=$e?"credential_nudge":null,Ke=ZG({scopeKey:d?.id,isAgentRunning:a,renderEnabled:!0}),Ye=QG({enabled:!Ze&&!Be}),Qe=Ye?"cowork_long_task_mobile_banner":null,Je=LY({isStreaming:a,enabled:!Ze&&!0,hasQuestionCard:i}),Xe=Je?"cowork_loading_tip":null,et=DQ({conversationUuid:qe,isStreaming:a}),tt=et?"cowork_mcp_upsell":null,st=function({conversationUuid:e,isStreaming:t}){const s=LZ(),{isAvailable:n}=ke("omelette"),a=we(),{isDismissed:i,dismiss:r}=me(),o=Me(),l=AZ.some(e=>"claude_design"===s.get(e)),c=Ce(t=>e&&l?PZ((t.pathUuidsByConversation[e]||[]).map(e=>t.messageByUuid[e]),s):null),d=Ce(s=>!e||t?null:PZ((s.pathUuidsByConversation[e]||[]).map(e=>s.messageByUuid[e])));return IZ(e,d),e&&n?a||o||i(TZ)||t?null:c?{triggerKey:c,dismiss:()=>r(TZ)}:null:null}({conversationUuid:qe,isStreaming:a}),nt=st?"cd_artifact_upsell":null,at=function({conversationUuid:t,isStreaming:s}){const n=LZ(),{isAvailable:a}=ke("omelette"),i=we(),{isDismissed:r,dismiss:o}=me(),l=Me(),c=FZ.some(e=>"claude_design"===n.get(e)),d=Ce(e=>{if(!t||!c)return null;const s=e.pathUuidsByConversation[t]||[],a=s.at(-1),i=a?e.messageByUuid[a]:void 0;if("error"===i?.stop_reason)return null;const r=QZ(e.messageByUuid[s.at(-2)],n);return r?`${a??""}:${r}`:null}),u=Ce(e=>{if(!t||s)return null;const n=e.pathUuidsByConversation[t]||[];return QZ(e.messageByUuid[n.at(-2)])});IZ(t,u);const m=e.useMemo(()=>d?WZ()>=3||GZ()?null:d.slice(d.indexOf(":")+1):null,[d]);return t&&a?i||l||r(OZ)||s?null:m?{triggerKey:m,dismiss:()=>o(OZ)}:null:null}({conversationUuid:qe,isStreaming:a}),it=Ce(e=>qe?e.pathUuidsByConversation[qe]?.at(-1)??null:null),rt=`${qe??""}:${it??""}`,ot=e.useRef(rt),lt=e.useRef(!1),ct=e.useRef(!1),dt=e.useRef(!1);ot.current!==rt&&(ot.current=rt,lt.current=!1,ct.current=!1,dt.current=!1),st&&at?lt.current=!0:st||at||(lt.current=!1);const ut=lt.current&&!st?null:at,mt=ut?"cd_design_file_upsell":null,pt=TG({conversationUuid:qe,isStreaming:a}),ft=e.useRef(!1);et&&pt?ft.current=!0:et||pt||(ft.current=!1);const gt=ft.current&&!et?null:pt;st&&gt?ct.current=!0:st||gt||(ct.current=!1);const ht=ct.current&&!st?null:gt;ut&&ht?dt.current=!0:ut||ht||(dt.current=!1);const Ct=dt.current&&!ut?null:ht,xt=Ct?"cowork_upsell":null,vt=!!(et||st||ut||Ct),yt=kG({conversationUuid:qe,isStreaming:a}),bt=yt?"cowork_guest_pass_upsell":null,kt=nZ({conversationUuid:qe,isStreaming:a,isCowork:de}),wt=e.useRef(!1);vt&&kt?wt.current=!0:vt||kt||(wt.current=!1);const Mt=wt.current&&!vt?null:kt,_t=e.useRef(!1);yt&&Mt?_t.current=!0:yt||Mt||(_t.current=!1);const jt=_t.current&&!yt?null:Mt,St=jt?"c4excel_upsell":null,Lt=pZ({conversationUuid:qe,isStreaming:a,isCowork:de}),Nt=e.useRef(!1);vt&&Lt?Nt.current=!0:vt||Lt||(Nt.current=!1);const It=Nt.current&&!vt?null:Lt,Tt=e.useRef(!1);yt&&It?Tt.current=!0:yt||It||(Tt.current=!1);const At=Tt.current&&!yt?null:It,Et=e.useRef(!1);jt&&At?Et.current=!0:jt||At||(Et.current=!1);const Rt=Et.current&&!jt?null:At,Dt=Rt?"c4ppt_upsell":null,Ht=wZ({conversationUuid:qe,isStreaming:a,isCowork:de}),Pt=e.useRef(!1);vt&&Ht?Pt.current=!0:vt||Ht||(Pt.current=!1);const Ut=Pt.current&&!vt?null:Ht,Ot=e.useRef(!1);yt&&Ut?Ot.current=!0:yt||Ut||(Ot.current=!1);const Ft=Ot.current&&!yt?null:Ut,Vt=e.useRef(!1);jt&&Ft?Vt.current=!0:jt||Ft||(Vt.current=!1);const zt=Vt.current&&!jt?null:Ft,Bt=e.useRef(!1);Rt&&zt?Bt.current=!0:Rt||zt||(Bt.current=!1);const qt=Bt.current&&!Rt?null:zt,Wt=qt?"c4word_upsell":null,$t=c.some(e=>SQ.has(e.file_name.split(".").pop()?.toLowerCase()??""))||l.some(e=>SQ.has((e.file_name??"").split(".").pop()?.toLowerCase()??"")),Gt=G$(qe,$t),Kt=$$(qe),Yt=Gt??Kt,Qt=Yt?"claude_code_install_nudge":null,Jt=te??se??Ee??Re??De??T??E??B??W??K??S??Y??P??Z??ue??ze??xe??Pe??Ge??tt??nt??mt??xt??bt??St??Dt??Wt??Qt??Qe??Xe??null,Xt=new Set([Ee,Re,De,B,K,S,Y,P,Z,ue,ze,xe,Pe]).has(Jt)?"info":"danger",es=Jt===Ge,ss=Jt===Qe,ns=Jt===Xe,as=Jt===tt,is=Jt===nt,rs=Jt===mt,os=Jt===xt,ls=Jt===bt,cs=Jt===St,ds=Jt===Dt,us=Jt===Wt,ms=Jt===Qt,ps=es||ss||ns||as||is||rs||os||ls||cs||ds||us||ms;return{warning:ps?null:Jt,ringOwnedWarning:j,isSuppressibleWarning:!Jt||ps||new Set([W,K,S,Y,P,Z,ue,ze,xe,Pe]).has(Jt),inputWarningBannerShowing:Be,bandTheme:Xt,onClick:void 0,verificationCodePromptState:Ke,credentialNudgeState:es?$e:null,coworkLongTaskMobileBannerState:ss?Ye:null,coworkLoadingTipState:ns?Je:null,coworkMcpUpsellState:as?et:null,cdArtifactUpsellState:is?st:null,cdDesignFileUpsellState:rs?ut:null,coworkUpsellState:os?Ct:null,coworkGuestPassUpsellState:ls?yt:null,c4excelUpsellState:cs?jt:null,c4pptUpsellState:ds?Rt:null,c4wordUpsellState:us?qt:null,claudeCodeInstallNudgeState:ms?Yt:null}}const r5="ipc_bridge_unavailable",o5="session_load_failed",l5="send_failed",c5=/\b(EAGAIN|ENOENT|EACCES|EMFILE|ENFILE|ENOMEM|ENOEXEC|E2BIG|EINVAL|EIO|EBUSY|EBADF)\b/;function d5(e){if(!e)return"no_error_message";if(e.includes("No such file or directory")&&e.includes("/usr/local/bin/claude")||e.includes("claude: command not found")||e.includes("requires git-bash")||e.includes("Git Bash was not found")||e.includes("CLAUDE_CODE_GIT_BASH_PATH"))return"sdk_binary_missing";if(e.includes("Marketplace configuration file is corrupted"))return"filesystem_error";if(e.includes("Exec format error")||e.includes("cannot execute binary file")||e.toLowerCase().includes("bad cpu type in executable"))return"sdk_binary_arch_mismatch";if(e.includes("Killed")&&e.includes("apply-seccomp"))return"seccomp_killed";if(e.includes("Segmentation fault"))return"segfault";if(e.includes("was not found")&&e.includes("/sessions/"))return"mount_not_found";if(e.includes("failed to unmount")||e.includes("device or resource busy"))return"mount_busy";if(e.includes("failed to mount")&&e.includes("Library/CloudStorage"))return"cloud_storage_mount_denied";if(e.includes("Sandbox dependencies are not available")||e.includes("ripgrep")||e.includes("bubblewrap")||e.includes("socat"))return"sandbox_deps_missing";if(e.includes("[BashTool]")||e.includes("Pre-flight check"))return"cli_stdout_pollution";if(e.includes("Disconnected from guest")||e.includes("disconnected unexpectedly"))return"vm_disconnected";if(e.includes("failed to mount")&&(e.includes("operation not permitted")||e.includes("permission denied")))return"mount_permission_denied";if(e.includes("bad message")||e.includes("input/output error")||e.includes("Error 74")||e.includes("EPERM"))return"filesystem_error";if(e.includes("libstdc++")||e.includes("symbol lookup error")||e.includes("cannot open shared object")||e.includes("GLIBC"))return"library_error";if(e.includes("bridge socket"))return"bridge_socket_error";if(e.includes("blocks in the latest assistant message cannot be modified"))return"api_thinking_blocks_modified";if(e.includes("Overloaded"))return"api_overloaded";if(e.includes("blocked by content filtering policy"))return"api_content_filtered";if(e.includes("request body is not valid JSON")||e.includes("is not valid UTF-8")||e.includes("surrogates not allowed"))return"api_encoding_error";if(e.toLowerCase().includes("organization has been disabled")||e.toLowerCase().includes("organization has disabled"))return"org_access_disabled";if(e.includes("Insufficient Balance")||e.includes("requires more credits"))return"api_billing_error";if(e.includes("model_blocklisted"))return"api_model_blocklisted";if(/^Claude\s+\S[\s\S]*?\bis currently unavailable\b/.test(e))return"api_model_blocklisted";if(e.includes("selected model")&&e.includes("may not exist"))return"api_model_not_found";if(e.includes("Internal server error"))return"api_server_error";if(e.includes("ERR_CONNECTION")||e.includes("ERR_NETWORK")||e.includes("ERR_INTERNET")||e.includes("ETIMEDOUT")||e.includes("ECONNRESET")||e.includes("Stream idle timeout")||e.includes("socket connection was closed unexpectedly")||e.includes("Unable to connect to API")||"Request timed out"===e||e.includes("The operation timed out")||e.includes("CERTIFICATE_")||e.includes("SSL certificate")||e.includes("proxy or gateway intercepting"))return"network_error";if(e.includes("VM service not running")||e.includes("VM service failed to start"))return"vm_service_failed";if(e.toLowerCase().includes("no conversation found")||e.toLowerCase().includes("conversation not found")||e.toLowerCase().includes("session not found"))return"session_not_found";if(e.includes("CLI output was not valid JSON"))return"json_parse_error";if(e.includes("already running"))return"process_already_running";if(e.includes("process exited")||e.includes("terminated by signal"))return"process_crashed";if(e.includes("401")||e.toLowerCase().includes("unauthorized")||e.toLowerCase().includes("authentication")||e.includes("Could not load credentials"))return"auth_error";if(e.includes("SDK stream ended without a result message"))return"stream_ended_no_result";if(e.includes("hit your limit")||e.includes("hit your org's monthly usage limit")||/\b(spend|weekly|monthly|daily|session) limit\b/.test(e)||e.includes("usage limit is set to")||e.includes("out of extra usage")||e.includes("out of usage credits")||e.includes("usage allocation has been disabled")||e.includes("Rate limit reached"))return"api_rate_limit";if(e.includes("temporarily limiting requests"))return"api_overloaded";if(e.includes("Extra usage is required"))return"extra_usage_required";if(e.includes("violate our Usage Policy"))return"usage_policy_violation";if(e.includes("exceeds the dimension limit"))return"image_dimension_limit_exceeded";if(e.includes("Request too large"))return"request_too_large";if(e.toLowerCase().includes("prompt is too long")||e.toLowerCase().includes("prompt too long"))return"prompt_too_long";if(e.includes("does not have access to Claude"))return"org_access_disabled";if(e.includes("Failed to authenticate")||e.includes("Please run /login")||e.includes("Please login again"))return"auth_error";if(e.includes("output token maximum"))return"api_max_output_tokens";if(e.includes("Credit balance is too low"))return"api_billing_error";if(e.includes("Unable to connect. Is the computer able"))return"network_error";if(e.includes("Autocompact is thrashing"))return"autocompact_thrashing";if(e.includes("PDF is password protected")||e.includes("PDF file was not valid")||e.includes("PDF too large"))return"pdf_input_error";const t=/^API Error(?:\s*\([^)]*\))?:\s*(\d{3})\b/.exec(e);if(t)return`api_error_${t[1]}`;if(e.startsWith("Failed to spawn Claude Code process")){const t=c5.exec(e);return t?`spawn_error_${t[1].toLowerCase()}`:"spawn_failed"}return e.includes("Claude Code native binary")&&(e.includes("not found")||e.includes("failed to launch"))?e.includes("disclaimer")?"disclaimer_binary_missing":"sdk_binary_missing":e.startsWith("API Error")?"api_error_unclassified":"unknown"}function u5(e){if(e)return e.includes("Error invoking remote method")||e.includes("object could not be cloned")?"ipc":/Cannot read propert|is not a function|is not defined|is not iterable|Maximum call stack|Unexpected token|Invalid or unexpected token|Cannot convert undefined/.test(e)?"js_error":/timeout|timed out|deadline exceeded/i.test(e)?"timeout":/Claude Code|\bSDK\b|@anthropic-ai\/claude-agent-sdk/.test(e)?"sdk":"other"}let m5=null;function p5(e){const t=(e.skills??[]).map(e=>({name:e.name,description:e.description})),s=(e.commands??[]).map(e=>({name:e.name,description:e.description??""})),n=e.marketplace_name||"org";return{id:`${e.name}@${n}`,backendId:e.id,name:e.name,description:e.description??"",marketplaceName:n,skillNames:t.map(e=>e.name),skillDescriptions:t.map(e=>e.description),commandNames:s.map(e=>e.name),mcpServerNames:e.mcp_servers?Object.keys(e.mcp_servers):[],skills:t,commands:s}}const f5={includeScore:!0,includeMatches:!0,isCaseSensitive:!1,ignoreLocation:!0,threshold:.2,keys:[{name:"name",weight:.35},{name:"skillNames",weight:.2},{name:"mcpServerNames",weight:.15},{name:"commandNames",weight:.1},{name:"skillDescriptions",weight:.1},{name:"description",weight:.1}]},g5=new Set(["the","and","for","with","this","that","can","you","help","please","want","need","what","how"]);function h5(e,t){const s=e?e.toLowerCase().split(/\W+/).filter(e=>e.length>2&&!g5.has(e)):[],n=(t??[]).map(e=>e.toLowerCase());return[...new Set([...n,...s])]}function C5(e,t){switch(e.key){case"name":return{type:"name",name:t.name};case"description":return{type:"description",name:t.name};case"skillNames":case"skillDescriptions":{const s=void 0!==e.refIndex?t.skills[e.refIndex]:void 0;return s?{type:"skill",name:s.name}:null}case"commandNames":{const s=void 0!==e.refIndex?t.commands[e.refIndex]:void 0;return s?{type:"command",name:s.name}:null}case"mcpServerNames":{const s=void 0!==e.refIndex?t.mcpServerNames[e.refIndex]:void 0;return s?{type:"mcp_server",name:s}:null}default:return null}}function x5(e,t){const s=t.map(e=>e.trim()).filter(e=>e.length>0);if(0===s.length||0===e.length)return[];const n=new Ps(e,f5),a=new Map;for(const r of s)for(const e of n.search(r)){const t=1-(e.score??1);let s=a.get(e.item.id);s||(s={item:e.item,totalQuality:0,capabilities:new Map},a.set(e.item.id,s)),s.totalQuality+=t;for(const n of e.matches??[]){const t=C5(n,e.item);t&&s.capabilities.set(`${t.type}:${t.name}`,t)}}const i=s.map(e=>e.toLowerCase());for(const r of a.values()){const e=r.item.name.toLowerCase();i.some(t=>e.includes(t))&&(r.totalQuality+=.6*s.length)}return[...a.values()].sort((e,t)=>t.totalQuality-e.totalQuality).map(e=>({id:e.item.id,backendId:e.item.backendId,name:e.item.name,description:e.item.description,marketplaceName:e.item.marketplaceName,matchedCapabilities:[...e.capabilities.values()],skills:e.item.skills,mcpServerNames:e.item.mcpServerNames}))}function v5(e,t){return`${e}@${t||"org"}`}function y5(e){return{id:e.id,backendId:e.backendId,name:e.name,description:e.description,marketplaceName:e.marketplaceName,matchedCapabilities:[],skills:e.skills,mcpServerNames:e.mcpServerNames}}let b5=31457280;const k5=new Map;let w5=0;function M5(e){const t=k5.get(e);void 0!==t&&(w5-=t.approxBytes,k5.delete(e))}function _5(e,t,s,n){if(0===t.length)return;const a=function(e){let t=0;for(const s of e)t+=JSON.stringify(s).length;return t}(t);if(a>b5)M5(e);else{for(M5(e);k5.size>=5||k5.size>1&&w5+a>b5;){const e=k5.keys().next().value;if(void 0===e)break;M5(e)}k5.set(e,{transcript:t,lastActivityAt:s,approxBytes:a,nextCursor:n}),w5+=a}}function j5(e){M5(e)}const S5=new Map;const L5=new Set;function N5(e){return L5.add(e),()=>L5.delete(e)}function I5(){return!0}function T5(){return!0}function A5(){return e.useSyncExternalStore(N5,I5,T5)}function E5({sessionId:t,sessionModel:s,surface:n,setModelIpc:a,onSwitched:i,enabled:r=!0}){const{hasModel:o,storedModel:l,models:c}=Ae(n),d=A5()&&!!s&&c.length>0&&!o(s),u=e.useRef(0);e.useEffect(()=>{const e=u;return()=>{e.current++}},[t,s]),e.useEffect(()=>{if(!(r&&d&&a&&l))return;const e=u.current;a(t,l).then(()=>{u.current===e&&i(l)}).catch(e=>{k.error(w.LOCAL_SESSION,"Failed to auto-switch unavailable model",{error:e,sessionId:t,staleModel:s,defaultModel:l})})},[r,d,s,t,a,l,i])}function R5(e){const t=e.lastIndexOf(":");return t>=0?e.slice(t+1):e}function D5(e){return e.split(/(?<=[.!?])\s/)[0].replace(/\.$/,"")}function H5({name:e,description:s,onTry:n,disabled:a,disabledTooltip:i,onAdd:r,isInstalling:o,isAnyInstalling:l}){let c;if(r)c=t.jsx(rN,{variant:"primary",className:"!min-w-0",onClick:r,disabled:o||l,children:o?t.jsx(XS,{defaultMessage:"Adding...",id:"Nvr5CeqKuU"}):t.jsx(XS,{defaultMessage:"Add",id:"2/2yg+qAwp"})});else{const e=t.jsx(rN,{variant:"secondary",className:"!min-w-0",onClick:n,disabled:a,children:t.jsx(XS,{defaultMessage:"Try it",id:"YrB0ysut4p"})});c=a&&i?t.jsx(iN,{multiline:!0,content:i,children:t.jsx("span",{className:"inline-flex",children:e})}):e}return t.jsx("div",{className:"px-6",children:t.jsxs("div",{className:"flex items-center gap-4 border-t-0.5 border-border-300 py-3",children:[t.jsx($L,{name:"Scroll",size:"md",className:"shrink-0 text-text-100"}),t.jsxs("div",{className:"min-w-0 flex-1",children:[t.jsx("div",{className:"text-sm font-semibold text-text-100",children:`/${R5(e)}`}),s?t.jsx("div",{className:"truncate text-xs text-text-400",children:D5(s)}):null]}),c]})})}function P5(){const{data:t}=lr(),{data:s}=cr(),{data:n}=dr(),{data:a}=ur();return e.useMemo(()=>{const e=[...(t?.skills??[]).filter(e=>e.enabled&&mr(e)).map(e=>({name:e.skillName,description:e.skillDescription,isUserCreated:"user"===e.creatorType})),...(s?.skills??[]).filter(e=>e.enabled&&mr(e)).map(e=>({name:e.skillName,description:e.skillDescription,isUserCreated:"user"===e.creatorType})),...(n??[]).filter(e=>e.enabled).flatMap(e=>e.skills).filter(pr).map(e=>({name:e.name,description:e.description,argumentHint:e.argumentHint})),...(a??[]).map(e=>({name:e.name,description:e.description??""}))],i=new Set;return e.filter(e=>{const t=R5(e.name).toLowerCase();return!i.has(t)&&(i.add(t),!0)})},[t,s,n,a])}function U5(e,t,s){if(t?.length){const s=new Set(t.map(e=>R5(e).toLowerCase()));return e.filter(e=>s.has(R5(e.name).toLowerCase()))}const n=(s??[]).map(e=>e.toLowerCase());if(0===n.length)return e;const a=e=>{const t=e.name.toLowerCase(),s=e.description.toLowerCase();let a=0;for(const i of n)t.includes(i)?a+=2:s.includes(i)&&(a+=1);return a};return e.map(e=>({s:e,sc:a(e)})).filter(({sc:e})=>e>0).sort((e,t)=>t.sc-e.sc).map(({s:e})=>e)}function O5(){const{track:t}=ae(),s=ie();return{trackAgentModeEvent:e.useCallback((e,n)=>t({event_key:`claudeai.yukon_gold.${e}`,session_type:s?"local":"remote",...n}),[t,s]),isLocalAgentModeContext:s}}const F5=fT((e,t)=>({vmDownloadStatus:"checking",vmDownloadProgress:0,vmDownloadError:null,vmRunningStatus:"offline",isAwaitingVMForSession:!1,hostLoopMode:!1,hostLoopDevOverrideActive:!1,setAwaitingVMForSession:t=>{e({isAwaitingVMForSession:t})},initializeClaudeVM:async s=>{fr?.startVM?await t().startClaudeVM(s):e({vmDownloadStatus:"ready",vmRunningStatus:"ready"})},downloadClaudeVM:async()=>{if(!fr?.download)return!1;try{const t=await fr.download();return t.success||e({vmDownloadError:t.error??"Download failed"}),t.success}catch(t){return e({vmDownloadError:t instanceof Error?t.message:"Download failed"}),!1}},startClaudeVM:async t=>{if(!fr?.startVM)return!1;if(gr()&&fr?.checkVirtualMachinePlatform){if(!(await fr.checkVirtualMachinePlatform()))return e({vmDownloadError:"VMP_NOT_ENABLED"}),!1}e({vmDownloadError:null});try{const s=await fr.startVM(t);return s.success||e({vmDownloadError:s.error??"Startup failed"}),s.success}catch(s){return e({vmDownloadError:s instanceof Error?s.message:"Startup failed"}),!1}}}));let V5=!1;async function z5(){if(fr?.isHostLoopModeEnabled)try{const e=await fr.isHostLoopModeEnabled(),t=await(fr.isHostLoopDevOverrideActive?.())??!1;F5.setState({hostLoopMode:e,hostLoopDevOverrideActive:t})}catch(e){k.error(w.DESKTOP_API,"Failed to refresh host-loop mode",e)}}function Z5(t){e.useEffect(()=>{if(V5)return;if(z5(),void 0===t||!1===t)return;V5=!0;const e=fr;e?.onDownloadStatusChanged&&e.onRunningStatusChanged&&(e.onDownloadProgress&&e.onDownloadProgress(e=>{F5.setState({vmDownloadProgress:e})}),e.onDownloadStatusChanged(e=>{F5.setState({vmDownloadStatus:e,vmDownloadError:null})}),e.onRunningStatusChanged(e=>{F5.setState({vmRunningStatus:e,vmDownloadError:"ready"===e?null:F5.getState().vmDownloadError})}),e.onStartupError&&e.onStartupError(e=>{F5.getState().vmDownloadError||F5.setState({vmDownloadError:e})}),e.getDownloadStatus&&e.getDownloadStatus().then(e=>{F5.setState({vmDownloadStatus:e})}),e.getRunningStatus&&e.getRunningStatus().then(e=>{F5.setState({vmRunningStatus:e,vmDownloadError:"ready"===e?null:F5.getState().vmDownloadError})}))},[t])}function B5(){return F5(e=>e.hostLoopMode||"ready"===e.vmDownloadStatus&&"ready"===e.vmRunningStatus)}function q5(){return F5(e=>e.hostLoopMode)}function W5(){return F5(e=>e.hostLoopDevOverrideActive)}class $5 extends Error{vmpNotEnabled;constructor(e){super(e),this.name="CoworkVMStartError",this.vmpNotEnabled="VMP_NOT_ENABLED"===e}}function G5(){return F5(e=>e.isAwaitingVMForSession)}function K5(e){F5.getState().setAwaitingVMForSession(e)}const Y5=/[\u2018-\u201f\u2039\u203a\u00ab\u00bb\u3008-\u300b\u27e8\u27e9]/g,Q5=/\udb40[\udc00-\udc7f]/g,J5=/[\ud800-\udbff](?![\udc00-\udfff])|(?<![\ud800-\udbff])[\udc00-\udfff]/g;const X5=/[\u0000-\u001f\u007f-\u009f\u2028\u2029]/;function e0(e){const t=e.map(e=>{const t=0===(s=e.bundleId).length||s.length>1024||/[\ud800-\udbff](?![\udc00-\udfff])|(?<![\ud800-\udbff])[\udc00-\udfff]/.test(s)||X5.test(s)||/[<>"]/.test(s.normalize("NFKD"))||/\udb40[\udc00-\udc7f]/.test(s)?null:s;var s;if(null===t)return null;const n=function(e,t){return e.replace(J5,"\ufffd").normalize("NFKD").replace(/[<>"`]/g,"").normalize("NFC").replace(Y5,"").replace(Q5,"").replace(/[\u0000-\u001f\u007f-\u009f]+/g," ").replace(/\s+/g," ").slice(0,t).replace(/[\ud800-\udbff]$/,"").trim()}(e.title,120)||"(untitled)";return`window "${n}" (already open; pass "${t}" to request_access)`}).filter(e=>null!==e).join(", ");return t?`\n\n<cu_window_hints>The user is pointing at: ${t}. Take a screenshot to find it \u2014 do not open_application for it.</cu_window_hints>`:""}const t0=new Map;function s0(){if(0===t0.size)return"";const e=Array.from(t0.values());return t0.clear(),e0(e)}function n0(e,t){const n=hr;if(!n?.fetchMentionOptions||!n?.handleMentionSelect)return null;t0.clear();const a=new Map,i=new Map,r=new Set;return{id:"desktop",fetchOptions:async e=>{const i=await n.fetchMentionOptions(e,t);return a.clear(),i.map(e=>(e.icon&&a.set(e.id,e.icon),{id:e.id,label:e.label,icon:e.icon?s.createElement("img",{src:e.icon,alt:"",className:"max-w-full max-h-full object-contain"}):void 0,category:e.category,metadata:e.metadata?JSON.parse(e.metadata):void 0,providerId:"desktop"}))},onSelect:async e=>{const t=Symbol(e);let s=i.get(e);s||(s=new Set,i.set(e,s)),s.add(t);try{const s=await n.handleMentionSelect(e);return r.has(t)||s?.cuAppHint&&t0.set(e,s.cuAppHint),s}finally{r.delete(t),s.delete(t),0===s.size&&i.delete(e)}},onDelete:t=>{t0.delete(t);const s=i.get(t);if(s)for(const e of s)r.add(e);e?.(t)},getIconHtml:e=>a.get(e)}}const a0=fT()(CT(e=>({fileNamesByMessageUuid:{},uuidOrder:[],setFileNames:(t,s)=>{0!==s.length&&e(e=>{const n={...e.fileNamesByMessageUuid,[t]:s},a=e.uuidOrder.includes(t)?[...e.uuidOrder]:[...e.uuidOrder,t];for(;a.length>500;){const e=a.shift();void 0!==e&&delete n[e]}return{fileNamesByMessageUuid:n,uuidOrder:a}})},clearFileNames:t=>{e(e=>{if(!(t in e.fileNamesByMessageUuid))return e;const s={...e.fileNamesByMessageUuid};return delete s[t],{fileNamesByMessageUuid:s,uuidOrder:e.uuidOrder.filter(e=>e!==t)}})}}),{name:"cowork-image-file-names",storage:xT(()=>localStorage),partialize:e=>({fileNamesByMessageUuid:e.fileNamesByMessageUuid,uuidOrder:e.uuidOrder})})),i0="has_started_cowork_conversation";const r0=/\s*\[ccdErrorCategory:([a-z_]+)\]$/;function o0(e){return e.replace(/^Error invoking remote method '[^']+': (?:\w*Error: )?/,"").replace(r0,"").trim()}function l0(e){const t=e instanceof Error?e.message:String(e);return"Unable to start session. Sign in again to continue: session_stale_relogin"===o0(t)?"session_stale_relogin":r0.exec(t)?.[1]}const c0="*";function d0(e,t){const{activeOrganization:s}=v(),n=s?.uuid;return B(`/api/organizations/${n}/mcp/remote_servers/${e}/tool_policies`,{...t,queryKey:[Cr,n,e],enabled:!!n&&!!e&&(t?.enabled??!0)})}function u0(e,t={}){const{activeOrganization:s}=v(),n=s?.uuid,a=gL(),i=[Cr,n,e],r=`/api/organizations/${n}/mcp/remote_servers/${e}/tool_policies`,o=b(({tool_name:e})=>`${r}/${encodeURIComponent(e)}`,"PUT",{enabled:!!n&&!!e,transformVariables:({max_permission:e})=>({max_permission:e})}),l=b(({tool_name:e})=>`${r}/${encodeURIComponent(e)}`,"DELETE",{enabled:!!n&&!!e});return{isPending:o.isPending||l.isPending,mutate:s=>{if(!e)return;const n=a.getQueryData(i),r=function(e,{tool_name:t,max_permission:s}){const n=e.filter(e=>e.tool_name!==t);if(null===s)return n;return[...n,{tool_name:t,max_permission:s}]}(n??[],s);a.setQueryData(i,r);const c=Ia.getState();c.patchRemoteToolOrgPolicies(e,r);const d=r=>{a.setQueryData(i,n),c.patchRemoteToolOrgPolicies(e,n??[]),t.onError?.(r,s,{previous:n})},u=e=>{t.onSuccess?.(e,s,{previous:n})};null===s.max_permission?l.mutate(s,{onError:d,onSuccess:u}):o.mutate(s,{onError:d,onSuccess:u})}}}function m0(e,t={}){const{activeOrganization:s}=v(),n=s?.uuid,a=gL(),i=[Cr,n,e];return b(`/api/organizations/${n}/mcp/remote_servers/${e}/reenable`,"POST",{...t,enabled:!!n&&!!e,onSuccess:async(s,n,r)=>{if(e){await a.cancelQueries({queryKey:i});const t=(a.getQueryData(i)??[]).filter(e=>!("*"===e.tool_name&&"blocked"===e.max_permission));a.setQueryData(i,t),Ia.getState().patchRemoteToolOrgPolicies(e,t)}t.onSuccess?.(s,n,r)}})}function p0(){const{activeOrganization:t}=v(),s=t?.uuid,n=M();return e.useCallback(async()=>{if(!s)return;const e=Ia.getState(),t=Object.entries(e.remoteConnectionStates).filter(([,e])=>!0===e?.isConnected).map(([e])=>e).filter(t=>(e.remoteTools[t]?.length??0)>0);0!==t.length&&await Promise.all(t.map(async e=>{try{const t=await n(`/api/organizations/${s}/mcp/remote_servers/${e}/tool_policies`,{signal:AbortSignal.timeout(5e3)});if(!t.ok)return;const a=await t.json();Ia.getState().patchRemoteToolOrgPolicies(e,a)}catch{}}))},[s,n])}const f0=DL(AL({description:IL().optional()}));function g0(){const t=Qa("google_drive_tools",{},f0),s=Qa("gcal_tools",{},f0),n=Qa("gmail_tools",{},f0);return e.useMemo(()=>({gdrive:t,gcal:s,gmail:n}),[t,s,n])}function h0(e){if(0===e.length)return;const t=e.filter(e=>"base64"===e.source.type).map(e=>({base64:e.source.data,mimeType:e.source.media_type}));return t.length>0?t:void 0}const C0={type:"local"};function x0(e){let t="";for(const s of Object.keys(e.localClients).sort()){const n=e.dxts[s]?.id;if(n){t+=n+":";for(const n of e.localTools[s]??[])t+=n.enabledKey+",";t+="|"}}return t}const v0=[`local:${yr}:`,`local:${br}:`];function y0(e,t){const s=e.match(/-[0-9a-f]{32}$/);if(!s)return!1;return e.slice(0,s.index)in t}function b0({enabledMcpTools:e}){if(e)return function(e){const t={};for(const s of Object.keys(e))y0(s,e)||(t[s]=e[s]);return t}(e)}async function k0({enabledMcpTools:e,firstPartyIntegrations:t}){const s=b0({enabledMcpTools:e}),n=wr();if(t?.gdriveEnabled||t?.gcalEnabled||t?.gmailEnabled){const{getGsuiteRemoteMcpServers:e}=await a(async()=>{const{getGsuiteRemoteMcpServers:e}=await import("./c1ad09c91-CpGrYM_b.js").then(e=>e.g);return{getGsuiteRemoteMcpServers:e}},__vite__mapDeps([0,1]),import.meta.url),s=e(t);n.push(...s)}return{remoteMcpServers:n,enabledMcpTools:s}}async function w0({enabledMcpTools:e,enabledExtensionIds:t,firstPartyIntegrations:s,ensureToolsReady:n,refreshOrgToolPolicies:a}){await(n?.()),await(a?.());const i=await async function({enabledExtensionIds:e,filterFilesystem:t=!0}){if(kr?.getMcpServersConfig)try{const s=await kr.getMcpServersConfig(!1);return Object.fromEntries(Object.entries(s).filter(([s,n])=>{if(t&&n.extensionId===IH)return!1;const a=!!n.extensionId,i=a&&e.has(n.extensionId);return!a||i}))}catch(s){return void k.error(w.DESKTOP_API,"Failed to fetch MCP servers",{error:s})}}({enabledExtensionIds:t,filterFilesystem:!0}),{remoteMcpServers:r,enabledMcpTools:o}=await k0({enabledMcpTools:e,firstPartyIntegrations:s});return{mcpServers:i,remoteMcpServers:r,enabledMcpTools:o}}function M0({accountEnabledMcpTools:e,sessionMcpTools:t,localConnectors:s,suggestedConnectorsEnabled:n,pluginsEnabled:a,pluginSuggestionsSupported:i}){const r={...e,...t};n||(r["local:mcp-registry:search_mcp_registry"]=!1,r["local:mcp-registry:suggest_connectors"]=!1),i&&!1!==a||(r["local:plugins:suggest_plugin_install"]=!1,r["local:plugins:search_plugins"]=!1,r["local:plugins:list_plugins"]=!1);for(const c of Object.keys(r))v0.some(e=>c.startsWith(e))&&delete r[c];const o=e||t||0!==Object.keys(r).length?r:void 0,l=!(!e&&!t)?function(e,t){const s=new Set;if(!t)return s;for(const n of e)n.localId&&n.tools.some(e=>!1!==t[e.enabledKey])&&s.add(n.localId);return s}(s,o):new Set;return{enabledMcpTools:o,enabledExtensionIds:l}}function _0(t){const{account:s}=v(),n=Ia(x0),a=e.useMemo(()=>xr(Ia.getState(),C0),[n]),i=y("suggested_connectors"),r=vr();return e.useMemo(()=>M0({accountEnabledMcpTools:s?.settings?.enabled_mcp_tools,sessionMcpTools:t,localConnectors:a,suggestedConnectorsEnabled:i,pluginsEnabled:r,pluginSuggestionsSupported:true}),[s?.settings?.enabled_mcp_tools,t,a,i,r,true])}const j0=fT(e=>({branch:void 0,revision:0,setBranch:t=>e(e=>({branch:t,revision:e.revision+1}))}));function S0(){j0(e=>e.branch)}function L0(){return j0(e=>e.revision),0}const N0=()=>Promise.resolve(void 0);function I0(){const{activeOrganization:e,systemPrompts:t}=v(),s=Mr(),n=Bn(),a=S0(),i=L0(),r=t,o="undefined"!=typeof navigator&&_r(navigator.userAgent),{data:l}=B(`/api/bootstrap/${n}/system_prompts`,{queryKey:[Sr,n,a,i],enabled:!!e&&o,staleTime:6e5,refetchOnWindowFocus:!0,refetchOnMount:"always",..."",initialData:r??void 0,initialDataUpdatedAt:r?s:void 0,meta:{noToast:!0}});return l??r}function T0(e){const t=I0();return t?.[e]?.value}function A0(t){const s=I0();return e.useMemo(()=>{const e={};for(const[n,a]of Object.entries(s??{}))n.startsWith(t)&&(e[n.slice(t.length)]=a.value);return e},[s,t])}function E0(e){return e&&"object"==typeof e?e.prompt??"":""}function R0(t){const{data:s,refetch:n}=function(){const{activeOrganization:e,coworkSyspromptMap:t}=v(),s=Mr(),n=Bn(),a=S0(),i=L0(),r=t??null,o="undefined"!=typeof navigator&&_r(navigator.userAgent),l=!!e&&o&&null!=t,{data:c,refetch:d}=B(`/api/bootstrap/${n}/cowork_sysprompt_map`,{queryKey:[jr,n,a,i],enabled:l,staleTime:6e5,refetchOnWindowFocus:!0,refetchOnMount:"always",..."",initialData:r,initialDataUpdatedAt:void 0!==r?s:void 0,meta:{noToast:!0}}),u=l?d:N0;return null==t?{data:null,refetch:u}:{data:void 0===c?r:c,refetch:u}}(),a=!!t&&!!s&&!Object.hasOwn(s.models??{},t);return e.useEffect(()=>{a&&n()},[a,t,n]),s??void 0}function D0(){return y("__gb__2490372184")}const H0=AL({gdrive_prompt:IL().default(""),gcal_prompt:IL().default(""),gmail_prompt:IL().default("")}),P0={gdrive_prompt:"",gcal_prompt:"",gmail_prompt:""};function U0({gdriveEnabled:e,gcalEnabled:t,gmailEnabled:s},{gdrive_prompt:n,gcal_prompt:a,gmail_prompt:i}){const r=[];return e&&n&&r.push(n),t&&a&&r.push(a),s&&i&&r.push(i),r.join("\n\n")}const O0=Nr("coworkSpaceContextEnabled",!1);function F0(){const e=m(),t=y("cowork_amber_finch_main");return Boolean("")&&e&&Boolean(Lr?.classifySessions)&&t}function V0(){const e=F0(),t=O0.useEnabled();return e&&t}function z0(e){return e.spaceExists&&e.memoryEnabled&&e.bridgeAvailable}function Z0(e){const t=Ir(),s=Tr();return z0({spaceExists:Ar(t=>void 0!==e&&t.spaces.some(t=>t.id===e)),memoryEnabled:t,bridgeAvailable:s})}let B0=null;const q0={},W0=OL(e=>e??q0,AL({enabled:RL().optional().catch(void 0),on_mount:RL().optional().catch(void 0)})),$0=3e5;function G0(t){const s=Qa("yukon_silver_dramatic_shrimp_primer_warm_start",q0,W0),n=ce("yukon_silver_dramatic_shrimp_primer",void 0===s.enabled),a=ce("yukon_silver_dramatic_shrimp_primer_on_mount",void 0===s.on_mount),i=s.enabled??n,r=s.on_mount??a,{isRemote:o,orgAvailable:l,isLoading:c}=ya(),d=M(),u=Er(),{handle:m}=Rr(),{activeOrganization:p}=v(),f=p?.uuid,{track:g}=ae(),h=i&&l&&o&&!c&&!!f,C=Dr(f?{rawFetch:d,orgUuid:f,signClientEvent:u}:null),x=Dr(m),y=Dr(g),b=Dr(h),k=Dr(r),w=Dr(t.model),_=Dr(t.effortLevel),j=Dr(t.projectUuid),S=Dr(t.hasSpace),L=Dr(e=>{const t=C.current,s=B0;if(null===s)return;B0=null;const n=Math.round(performance.now()-s.firedAt);s.promise.then(({sessionId:s})=>{y.current({event_key:"claudeai.cowork.warm_start.outcome",session_id:s,outcome:e,held_for_ms:n}),t&&CI(t,s)}).catch(()=>{})}),N=Dr(()=>{const e=C.current;if(null!==B0||!b.current||!e)return;const t=performance.now(),s=x.current,n={model:w.current,effortLevel:_.current,localMcps:Hr(),projectUuid:j.current,hasSpace:S.current,targetDeviceId:void 0};let a,i=!1;if(s){const t=BU(s,e.rawFetch,e.orgUuid);switch(t.kind){case"blocked":return;case"unavailable":F(new Error("SignUnavailableAtFire"),{source:"cowork_warm_sign_bind_skip"}),a=xI(e,n);break;case"attestation":i=!0,n.targetDeviceId=t.attestation.rowPk,a=xI(e,n,t.attestation);break;case"promise":i=!0,a=t.promise.then(t=>(n.targetDeviceId=t.rowPk,xI(e,n,t)),t=>{if(t instanceof O)throw t;return F(new Error(t instanceof Error?t.name:String(typeof t)),{source:"cowork_warm_sign_bind_skip"}),null!==B0&&B0.snapshot===n&&(B0.bindIntent=!1),xI(e,n)})}}else a=xI(e,n);const r={promise:a,snapshot:n,firedAt:t,bindIntent:i};B0=r,a.catch(()=>{B0===r&&(B0=null)})});e.useEffect(()=>{const e=L.current;e("discarded_stale_mount");const t=()=>e("discarded_pagehide");return window.addEventListener("pagehide",t),()=>{window.removeEventListener("pagehide",t),e("discarded_unmount")}},[]),e.useEffect(()=>{const e=C.current;h&&m&&e&&function(e,t,s){const n=FU(e,s);null!==n&&("pending"===n.state.kind||"blocked"===n.state.kind||"ready"===n.state.kind&&VU(n.state))||zU(e,t,s,{enroll:!0,taken:!1})}(m,e.rawFetch,e.orgUuid)},[h,m,C,f]);const I=e.useSyncExternalStore(UU,()=>ZU(m,f),()=>"idle"),T=t.promptHasContent||!1===t.hasComposer;e.useEffect(()=>{"ready"===I&&m&&b.current&&null!==B0&&!B0.bindIntent&&(L.current(T?"discarded_bind_upgrade":"discarded_bind_no_intent"),T&&N.current())},[I,m,T,b,L,N]),e.useEffect(()=>{h&&r&&N.current()},[h,r,N]),e.useEffect(()=>{b.current&&C.current&&(null===B0||B0.snapshot.projectUuid===t.projectUuid&&!!B0.snapshot.hasSpace==!!t.hasSpace||(L.current("discarded_project_mismatch"),k.current&&!t.promptHasContent&&N.current()),t.promptHasContent&&(null!==B0&&performance.now()-B0.firedAt>$0&&L.current("discarded_stale_refire"),N.current()))},[t.promptHasContent,t.projectUuid,t.hasSpace])}function K0(e){return e.cicStubForcePin?"default":e.ccrMcpPermissionOverride?ko(e.permissionMode)&&!0!==e.chromeSkipAllPermissionChecks?"default":null:void 0}function Y0(){const t=JS(),s=ya(),n=M(),{track:a}=ae(),{activeOrganization:i,account:r}=v(),o=i?.uuid,l=r?.settings?.enabled_mcp_tools,c=gL(),d=Pr(),u=y("cowork_remote_skip_title_await"),m=y(Ur),p=y("ccr_mcp_permission_mode_override"),f=Or(),g=Fr(),h=V0(),C=Ir(),x=Tr(),b=Er(),_=Vr(),j=zr(),S=Zr(),L=y("cowork_remote_blob_upload"),N=D0(),{handle:I}=Rr(),T=Dr({spaceMemoryEnabled:C,spaceMemoryBridgeAvailable:x,intl:t,mode:s,rawFetch:n,track:a,orgUuid:o,queryClient:c,perfMetrics:d,coworkRemoteSkipTitleAwait:u,outputsMountFree:m,ccrMcpPermissionOverride:p,accountEnabledMcpTools:l,cicStubRegister:f,cicConnectorCardNonDesktop:g,spaceAutoOrganizeEnabled:h,signClientEvent:b,signSessionHeader:_,uploadFile:j,uploadCoworkAttachment:S,coworkBlobUploadEnabled:L,documentFunnelEnabled:N,registryDevice:I}),A=e.useCallback(async e=>{const{intl:t,mode:{isRemote:s,orgAvailable:n},rawFetch:a,track:i,orgUuid:r,queryClient:o,perfMetrics:l,coworkRemoteSkipTitleAwait:c,outputsMountFree:d,ccrMcpPermissionOverride:u,accountEnabledMcpTools:m,cicStubRegister:p,cicConnectorCardNonDesktop:f,spaceAutoOrganizeEnabled:g,signClientEvent:h,signSessionHeader:C,uploadFile:x,uploadCoworkAttachment:v,coworkBlobUploadEnabled:y,documentFunnelEnabled:b,registryDevice:M}=T.current;if(!s||!n||!r)return;const _=l?.markCodeSessionMessageSent({is_new_session:!0,session_type:"remote",start_at:e.tClick,gates:{cowork_remote_skip_title_await:c}})??!1,j=e.userSelectedProjectUuids?.[0],S=e.spaceId?Ar.getState().spaces.find(t=>t.id===e.spaceId):void 0,L=z0({spaceExists:void 0!==S,memoryEnabled:T.current.spaceMemoryEnabled,bridgeAvailable:T.current.spaceMemoryBridgeAvailable}),N=Br()?qr():void 0,I=Wr(p,f?N:!1!==N&&void 0),A=function(e,t,s){return"default"===K0({permissionMode:e.permissionMode,chromeSkipAllPermissionChecks:e.chromeSkipAllPermissionChecks,ccrMcpPermissionOverride:t,cicStubForcePin:s})?{[br]:"default"}:void 0}(e,u,p&&!$r()),E={rawFetch:a,orgUuid:r,signClientEvent:h,signForSessionHeader:e=>C(r,e)},R=function(){const e=B0;return B0=null,e&&performance.now()-e.firedAt>$0?null:e}();let D=null,H=!1,P=null,U=!1;if(null!==R){const e=e=>{const t=Math.round(performance.now()-R.firedAt);R.promise.then(({sessionId:s})=>(i({event_key:"claudeai.cowork.warm_start.outcome",session_id:s,outcome:e,held_for_ms:t}),CI(E,s))).catch(()=>{})};if(R.snapshot.projectUuid!==j||!!R.snapshot.hasSpace!==L)P="project_mismatch",e("discarded_project_mismatch");else{const t=await Promise.race([R.promise.catch(()=>null),new Promise(e=>setTimeout(()=>e("timeout"),2e3))]);"timeout"===t?(H=!0,P="claim_timeout",e("discarded_claim_timeout")):null===t?P="post_rejected":void 0!==M&&"blocked"===ZU(M,r)||void 0!==M&&void 0===R.snapshot.targetDeviceId&&"unattainable"!==await async function(e,t,s){const n=ZU(e,s);return"blocked"===n?"blocked":"unavailable"!==n?"attainable":qU(zU(e,t,s,{enroll:!0,taken:!1})).then(()=>"attainable",e=>e instanceof O?"blocked":"unattainable")}(M,a,r)?(P="bind_mismatch",e("discarded_bind_mismatch")):(U=void 0!==R.snapshot.targetDeviceId,D={sessionId:t.sessionId,snapshot:R.snapshot,firedAt:R.firedAt})}}const F=null!==R;let V=e.title;if(!V&&e.titlePromise&&null===D){const t=await Promise.race([e.titlePromise,new Promise(e=>setTimeout(()=>e(void 0),1e4))]).catch(()=>{});V=t?.title}const z=performance.now(),Z=performance.now(),B=Hr(),q=function(e,t){const s=t?.autoMountFolders?t.folders.map(e=>e.path):[];return Array.from(new Set([...e??[],...s]))}(e.userSelectedFolders,g?S:void 0),W=Gr()?.remoteToolsDeviceName,$=L&&S?Lr?.readSpaceMemoryIndex?await Lr.readSpaceMemoryIndex(S.id).catch(()=>null):null:void 0,{filePaths:G,fileAttachments:K,imageFileNames:Y,imageBlocks:Q}=await Kr({files:e.composerFiles??[]},e.message??"",wo(y?v:x,r));Y.length>0&&e.messageUuid&&a0.getState().setFileNames(e.messageUuid,Y);const J=G??[],X=Yr({...e,userSelectedFiles:[...e.userSelectedFiles??[],...J],userSelectedFolders:q,space:S,desktopSupportsCommitFileUuid:Xr(),deviceName:W,computerToolsAvailable:void 0!==Jr(),spaceMemoryIndex:$,timezone:Qr(),documentFunnelEnabled:b}),ee={is_warm:null!==D,folders_count:q.length,reminders_count:X.length,has_folder_reminder:q.length>0&&X.some(e=>e.includes(JSON.stringify(q[0])))},te={message:e.message,messageUuid:e.messageUuid,model:e.model,effortLevel:e.effortLevel,extendedThinkingEnabled:e.extendedThinkingEnabled,title:V,permissionMode:e.permissionMode,systemReminders:X,hasSpace:L,localMcps:B,images:[...e.images??[],...h0(Q)??[]],fileAttachments:K,projectUuid:j,builtinServers:I,mcpPermissionModeOverrides:A,userDeclaredUrls:e.userDeclaredUrls};try{const{sessionId:s,openingMessageUuid:n,warmCommit:c,retryWarmCommit:d}=await(async()=>{if(null===D){let e;const t=await eo(async()=>{if(await(M?.ensureRegistered(a,r).catch(e=>{if(e instanceof O)throw e})),M){const t=BU(M,a,r,{retryUnavailable:!0});if("blocked"===t.kind)throw new O;e="attestation"===t.kind?t.attestation:"promise"===t.kind?await t.promise.catch(e=>{if(e instanceof O)throw e;k.warn(w.LOCAL_SESSION,"signCreateSessionBind failed; proceeding unbound",{errName:e instanceof Error?e.name:typeof e})}):void 0}else e=void 0;return U=void 0!==e,async function(...e){try{return await vo(...e)}catch(t){throw bo(t)?new yo(t):t}}(E,{...te,...e&&{message:void 0,messageUuid:void 0,systemReminders:void 0,images:void 0,fileAttachments:void 0,userDeclaredUrls:void 0,permissionMode:void 0,mcpPermissionModeOverrides:void 0},bindAttestation:e})},e=>to("cold",e));if(so(t.sessionId,B,I,m),e){const s=function(e,t){if(e===t)return"confirmed";if(void 0===e)return"degraded";return"foreign"}(t.boundDeviceUuid,e.rowPk);if("confirmed"===s?no(t.sessionId,e.rowPk):"degraded"===s?k.warn(w.LOCAL_SESSION,"bind requested but server created session unbound; staying td-v1"):k.error(w.LOCAL_SESSION,"server bound a different device than attested; not recording"),void 0!==te.message){const e=await ao(E,t.sessionId,te,"confirmed"===s);return{...t,openingMessageUuid:e}}}return t}const s=D,n=e.messageUuid??crypto.randomUUID(),o=()=>{const a=vI(E,s.sessionId,{...te,messageUuid:n,titlePromise:e.titlePromise},s.snapshot,{defaultTitle:t.formatMessage({id:"K4O03zh0vo",defaultMessage:"New task"})});return yI(s.sessionId,a),a.then(e=>{e.mcpPutOk&&so(s.sessionId,B,I,m),i({event_key:"claudeai.cowork.warm_start.outcome",session_id:s.sessionId,outcome:"used",reconciled:e.reconciled,head_start_ms:Math.round(Z-s.firedAt)})}).catch(e=>{k.error(w.LOCAL_SESSION,"[useStartRemoteCoworkSession] warm commit failed",e),i({event_key:"claudeai.cowork.warm_start.outcome",session_id:s.sessionId,outcome:"commit_failed"})}),a},l=o();return{sessionId:s.sessionId,openingMessageUuid:n,warmCommit:l,retryWarmCommit:o}})();_&&(l?.markCodeSessionInitEvent(s,{stage:"title_await",at:z}),l?.markCodeSessionInitEvent(s,{stage:"session_created"})),i({event_key:"claudeai.cowork.remote.session_create_outcome",session_id:s,backend:"ccr",outcome:"success",bound:U,latency_ms:Math.round(performance.now()-Z),...ee}),i({event_key:"claudeai.cowork.warm_claim_result",session_id:s,had_slot:F,wait_timed_out:H,discard_reason:P});const u=Date.now();let p;if(await bI(o,r,{sessionId:s,title:V??ro(s),createdAt:u,updatedAt:u,...io,isArchived:!1,projectUuid:j}),e.spaceId&&oo({sessionId:s,spaceId:e.spaceId,folders:[],memoryEnabled:L}),q.length>0)try{const e=lo?.grantRemoteSessionFolders;if(e){const{granted:t,addedDirectoryMountPaths:n}=co(await e(s,q));p=t,uo(E,s,n).catch(()=>{})}else for(const t of q)await(lo?.grantRemoteSessionFolder?.(s,t))}catch(se){k.warn(w.LOCAL_SESSION,"[useStartRemoteCoworkSession] grantRemoteSessionFolders failed",{sessionId:s,folders:q,err:se})}const f=p??q;return(e.spaceId||f.length>0)&&oo({sessionId:s,spaceId:e.spaceId,folders:f,memoryEnabled:L}),mo(E,s,(p??[]).map(e=>po(e,W,u))).catch(e=>k.warn(w.LOCAL_SESSION,"[useStartRemoteCoworkSession] persist folders failed",{sessionId:s,err:String(e)})),{sessionId:s,openingMessageUuid:n,warmCommit:c,retryWarmCommit:d}}catch(se){_&&l?.cancelCodeSessionTTFT(),i({event_key:"claudeai.cowork.remote.session_create_outcome",backend:"ccr",outcome:"error",bound:U,latency_ms:Math.round(performance.now()-Z),error_message:fo(String(se?.message??se)).slice(0,500),...ee}),i({event_key:"claudeai.cowork.warm_claim_result",had_slot:F,wait_timed_out:H,discard_reason:P});const e=go.getState().handlers,t=ho(se);null===e&&null!==t&&Co(t);throw"modal"===await(e?.handleError(se,{skipStepUp:!0}))&&xo(se),se}},[T]);return e.useMemo(()=>({mode:s,start:A}),[s,A])}const Q0={type:"local"},J0="project_requires_remote_carry";function X0(){const t=Fe("enabled_bananagrams"),s=Fe("enabled_foccacia"),n=Fe("enabled_sourdough"),a=GE(),i=a[He.GDRIVE],r=a[He.GMAIL],o=a[He.GCAL];return e.useMemo(()=>{const e=i.available&&i.enabledForOrg&&i.connected,a=o.available&&o.enabledForOrg&&o.connected,l=r.available&&r.enabledForOrg&&r.connected;return{gdriveAuthed:e,gcalAuthed:a,gmailAuthed:l,gdriveEnabled:e&&!!t,gcalEnabled:a&&!!s,gmailEnabled:l&&!!n}},[i,r,o,t,s,n])}function e3(){const{gdriveEnabled:t,gcalEnabled:s,gmailEnabled:n}=X0(),a=g0();return e.useMemo(()=>({gdriveEnabled:t,gcalEnabled:s,gmailEnabled:n,toolDescriptionOverrides:a}),[t,s,n,a])}function t3(){const{gdriveAuthed:t,gcalAuthed:s,gmailAuthed:n}=X0(),a=g0();return e.useMemo(()=>({gdriveEnabled:t,gcalEnabled:s,gmailEnabled:n,toolDescriptionOverrides:a}),[t,s,n,a])}function s3(e){return e.alreadyAllowed?3:"write"===e.accessKind?0:"readOnly"===e.accessKind?1:2}const n3={isConnected:!0,hasTools:!0};function a3(){const t=Fe("enabled_mcp_tools"),{enabledMcpTools:s}=_0(t),n=Pe(n3),a=Bo(),i=qo(),{gdriveEnabled:r,gcalEnabled:o,gmailEnabled:l}=X0();return e.useMemo(()=>{const e=[];let t=!1;for(const r of n){if(Wo({name:r.name,uuid:r.uuid})){if(i){const e=r.tools.map(e=>e.enabledKey);t=$o(e,s,!0)}continue}if(Go(r))continue;if(r.localId===IH)continue;const n=[];for(const e of[...r.tools,...r.appOnlyTools]){if("blocked"===(e.effectiveMaxPermission??e.orgMaxPermission))continue;if(!1===s?.[e.enabledKey])continue;const t=a(r,e,"cowork"),i=!0===e.annotations?.readOnlyHint?"readOnly":e.annotations?"write":void 0;n.push({name:e.name,displayName:e.displayName,accessKind:i,alreadyAllowed:!t.approvalRequired})}n.sort((e,t)=>s3(e)-s3(t)),n.length>0&&e.push({id:`${r.type}:${r.uuid}`,name:r.name,icon:{type:r.iconType,src:r.iconSrc},tools:n})}const c=[[r,Ko],[o,Yo],[l,Qo]];for(const[s,n]of c){if(!s)continue;const t=Ra[n];e.push({id:`gsuite:${n}`,name:t.name,icon:{type:"syncSource",src:t.syncSourceType},tools:t.toolNames.map(e=>({name:e,displayName:Jo(e),accessKind:"readOnly",alreadyAllowed:!1}))})}return{connectors:e,chromeEnabled:t}},[n,a,s,i,r,o,l])}function i3(e){return[e.base,...e.appends].filter(Boolean).join("\n\n")}function r3(e,t){return t?{base:e.base,appends:[...e.appends,t]}:e}function o3(e,t,s){let n={base:e,appends:[]};return n=r3(n,t),s&&(n=r3(n,`<user_preferences>\nThe user has specified the following personal preferences for how Claude should respond:\n\n${s}\n\nPlease keep these preferences in mind when responding.\n</user_preferences>`)),n}async function l3(e,t){const{systemPrompt:s,imagineSystemPrompt:n,memoryGuidelinesTemplate:a,spVariantPrompts:i,spSectionPrompts:r,activeModel:o,coworkSyspromptMap:l,egressAllowedDomains:c,coworkSettings:d,account:u,memoryEnabled:m,documentFunnelEnabled:p,enforceOrgSkillDisablementMain:f,skillsOrgAvailable:g,pluginsRuntimeEnabled:h,enabledCliOps:C,refreshCliExecPolicies:x}=e,v=!f||g,y=!f||h,b=await x(),k=r3(s,t);return{systemPrompt:i3(k),systemPromptRendererAppends:k.appends,model:o??void 0,accountName:u?.display_name||u?.full_name||void 0,emailAddress:u?.email_address,memoryEnabled:m,skillsEnabled:v,pluginsEnabled:y,documentFunnelEnabled:p,egressAllowedDomains:c.validEgressAllowedDomains,orgCliExecPolicies:b,enabledCliOps:C,imagineSystemPrompt:n||void 0,memoryGuidelinesTemplate:a||void 0,coworkSyspromptMap:l,spVariantPrompts:i,spSectionPrompts:r,otelConfig:d?.otlp_endpoint&&d?.otlp_protocol?{endpoint:d.otlp_endpoint,protocol:d.otlp_protocol,headers:d.otlp_headers??void 0,resourceAttributes:d.otlp_resource_attributes??void 0}:void 0}}function c3(){const{track:t}=ae(),{account:s}=v(),n=Y0(),a=y("ccr_auto_permission_mode"),i=y("ccr_mcp_permission_mode_override"),r=Mo(),o=y("suggested_connectors"),l=y("enforce_org_skill_disablement_main"),c=Qa("claudeai_mcp_bootstrap_wait",0,EL().catch(0)),d=_o(c),u=_o(Math.max(c,3e4)),m=jo(),p=So(),f=Lo(),g=No(),h=Io(),C=To(),x=Ao(),b=vr(),k=Eo(),w=Ir(),M=D0(),_=Tr(),j=E0(T0("cowork_system_prompt")),S=E0(T0("imagine_config")),L=E0(T0("cowork_memory_guidelines")),N=function(){const t=A0("cwk_cfg__");return e.useMemo(()=>{const e=Object.create(null);for(const[s,n]of Object.entries(t)){if(!n||"object"!=typeof n)continue;const t=n;"string"==typeof t.prompt&&t.prompt&&("replace"!==t.mode&&"append"!==t.mode||(e[s]={mode:t.mode,text:t.prompt}))}return Object.keys(e).length>0?e:void 0},[t])}(),I=function(){const t=A0("cwk_cfg_sect__");return e.useMemo(()=>{const e=Object.create(null);for(const[s,n]of Object.entries(t)){const t=E0(n);t&&(e[s]=t)}return Object.keys(e).length>0?e:void 0},[t])}(),{storedModel:T}=Ae("cowork"),A=R0(T),E=Ro(),R=Qa("gsuite_system_prompt",P0,H0),D=g0(),H=X0(),P=Fe("enabled_mcp_tools"),U=wB().data,O=Do().data,F=Ho().data,V=p0(),z=Po(),Z=Dr({track:t,account:s,remoteCowork:n,pluginStdioBiased:m,ccrAutoPermissionMode:a,ccrMcpPermissionOverride:i,ccrDeviceComputerUseAvailable:r,suggestedConnectorsEnabled:o,pluginSuggestionsSupported:true,enforceOrgSkillDisablementMain:l,ensureToolsReady:d,ensureToolsReadyScheduled:u,folderAllowsRemote:p,spaceAllowsRemote:f,projectAllowsRemote:g,artifactsAllowRemote:h,computerUseEnabled:C,computerUseSupported:x,pluginsRuntimeEnabled:b,backendAvailable:true,skillsOrgAvailable:k,memoryEnabled:w,documentFunnelEnabled:M,memoryBridgeAvailable:_,coworkSystemPrompt:j,imagineSystemPrompt:S,memoryGuidelinesTemplate:L,spVariantPrompts:N,spSectionPrompts:I,activeModel:T,coworkSyspromptMap:A,egressAllowedDomains:E,gsuitePromptConfig:R,gsuiteToolDescriptionOverrides:D,gsuite:H,conversationMcpTools:P,accountProfile:U,coworkSettings:O,enabledCliOps:F,refreshOrgToolPolicies:V,refreshCliExecPolicies:z});return e.useCallback(async e=>{const t=Z.current,{remoteCowork:s,pluginStdioBiased:n,folderAllowsRemote:a,spaceAllowsRemote:i,projectAllowsRemote:r,artifactsAllowRemote:o,ccrAutoPermissionMode:l,ccrMcpPermissionOverride:c,ccrDeviceComputerUseAvailable:d,computerUseEnabled:u,computerUseSupported:m,backendAvailable:p,track:f}=t,g=xr(Ia.getState(),Q0),{enabledMcpTools:h,enabledExtensionIds:C}=M0({accountEnabledMcpTools:t.account?.settings?.enabled_mcp_tools,sessionMcpTools:t.conversationMcpTools,localConnectors:g,suggestedConnectorsEnabled:t.suggestedConnectorsEnabled,pluginsEnabled:t.pluginsRuntimeEnabled,pluginSuggestionsSupported:t.pluginSuggestionsSupported}),x=new Set(g.map(e=>e.localId).filter(e=>!!e)),v={gdriveEnabled:t.gsuite.gdriveEnabled,gcalEnabled:t.gsuite.gcalEnabled,gmailEnabled:t.gsuite.gmailEnabled,toolDescriptionOverrides:t.gsuiteToolDescriptionOverrides},y={gdriveEnabled:t.gsuite.gdriveAuthed,gcalEnabled:t.gsuite.gcalAuthed,gmailEnabled:t.gsuite.gmailAuthed,toolDescriptionOverrides:t.gsuiteToolDescriptionOverrides},{systemPrompt:b,dispatchSystemPrompt:k}=function({coworkSystemPrompt:e,gsuite:t,gsuitePromptConfig:s,conversationPreferences:n}){const a=U0({gdriveEnabled:t.gdriveEnabled,gcalEnabled:t.gcalEnabled,gmailEnabled:t.gmailEnabled},s),i=U0({gdriveEnabled:t.gdriveAuthed,gcalEnabled:t.gcalAuthed,gmailEnabled:t.gmailAuthed},s);return{systemPrompt:o3(e,a,n),dispatchSystemPrompt:o3(e,i,n)}}({coworkSystemPrompt:t.coworkSystemPrompt,gsuite:t.gsuite,gsuitePromptConfig:t.gsuitePromptConfig,conversationPreferences:t.accountProfile?.conversation_preferences});if(s.mode.isLoading&&!Uo(e,o)&&!Oo(e,c))throw new Error("Preferences still loading. Try again in a moment.");const w=Fo(e,{remoteEnabled:s.mode.orgAvailable,isRemote:s.mode.isRemote,canRunLocal:Boolean(lo?.start),folderAllowsRemote:a,spaceAllowsRemote:i,spaceMemoryEnabled:t.memoryEnabled,spaceMemoryBridgeAvailable:t.memoryBridgeAvailable,projectAllowsRemote:r,artifactsAllowRemote:o,ccrAutoPermissionMode:l,ccrMcpPermissionOverride:c,computerUseEnabled:u,computerUseSupported:m,ccrDeviceComputerUseAvailable:d,forcedLocalOverride:s.mode.forcedLocalOverride,pluginStdioBiased:n});if("remote"!==w&&e.projectsRequireRemoteCarry&&!e.spaceId&&(e.userSelectedProjectUuids?.length??0)>0)throw new Error(J0);if("remote"===w){if(e.branchSession)throw new Error("Branching isn't available right now. Update the Claude desktop app and try again.");const t=await s.start(e);return t?{...t,routingReason:w}:void 0}if(!lo?.start)return;const M=await Vo(e.composerFiles??[]),_=M.unmaterializable.length+M.rejectedImages.length;if(_>0)throw"chat"!==e.sessionType&&zo("create",M.gateFailures,(e.composerFiles??[]).length),new Error(`${_} attachment${_>1?"s":""} can't be sent to a local session. Remove and re-attach, or remove the working folder and stay remote.`);const j=M.imageBlocks.length>0?h0(M.imageBlocks)??[]:[];if(M.imageFileNames.length>0&&e.messageUuid&&a0.getState().setFileNames(e.messageUuid,M.imageFileNames),!F5.getState().hostLoopMode){K5(!0);try{await async function(){return await z5(),new Promise((e,t)=>{const s=F5.getState();if(s.hostLoopMode||"ready"===s.vmRunningStatus)return void e();if("offline"===s.vmRunningStatus)s.startClaudeVM();else if(s.vmDownloadError)return void t(new $5(s.vmDownloadError));const n=F5.subscribe(s=>{s.hostLoopMode||"ready"===s.vmRunningStatus?(n(),e()):s.vmDownloadError&&(n(),t(new $5(s.vmDownloadError)))})})}()}finally{K5(!1)}}const S="agent"===e.sessionType||"dispatch_child"===e.sessionType,[{mcpServers:L,remoteMcpServers:N,enabledMcpTools:I},T]=await Promise.all([w0({enabledMcpTools:S?void 0:e.enabledMcpTools??h,enabledExtensionIds:S?x:C,firstPartyIntegrations:S?y:v,ensureToolsReady:e.scheduledTaskId?t.ensureToolsReadyScheduled:t.ensureToolsReady,refreshOrgToolPolicies:t.refreshOrgToolPolicies}),l3({systemPrompt:b,imagineSystemPrompt:t.imagineSystemPrompt,memoryGuidelinesTemplate:t.memoryGuidelinesTemplate,spVariantPrompts:t.spVariantPrompts,spSectionPrompts:t.spSectionPrompts,activeModel:t.activeModel,coworkSyspromptMap:t.coworkSyspromptMap,egressAllowedDomains:t.egressAllowedDomains,coworkSettings:t.coworkSettings,account:t.account,memoryEnabled:t.memoryEnabled,documentFunnelEnabled:t.documentFunnelEnabled,enforceOrgSkillDisablementMain:t.enforceOrgSkillDisablementMain,skillsOrgAvailable:t.skillsOrgAvailable,pluginsRuntimeEnabled:t.pluginsRuntimeEnabled,enabledCliOps:t.enabledCliOps,refreshCliExecPolicies:t.refreshCliExecPolicies})]);let A=S?k:b;if(e.spaceId){const t=Ar.getState().spaces.find(t=>t.id===e.spaceId);t&&(A=r3(A,Zo(t)))}A=r3(A,e.systemPromptSuffix);const E=Z.current.accountProfile?.work_function,R=function(e){if(!e.initialMessage||!/\/setup-cowork\b/.test(e.initialMessage))return;if(!e.backendAvailable)return;const t=e.workFunction;return t&&"Other"!==t?`<user_role>\nThe user's job role from their account profile: ${t}\n</user_role>`:void 0}({initialMessage:e.message,workFunction:E,backendAvailable:p});A=r3(A,R);const D=await lo.start({...T,message:e.message,sessionId:e.sessionId,model:e.model??T.model,permissionMode:e.permissionMode,extendedThinkingEnabled:e.extendedThinkingEnabled,systemPrompt:i3(A),systemPromptRendererAppends:A.appends,mcpServers:L,remoteMcpServers:N,enabledMcpTools:I,userSelectedFiles:[...e.userSelectedFiles??[],...M.filePaths],userSelectedFolders:e.userSelectedFolders,messageUuid:e.messageUuid,images:[...e.images??[],...j],syntheticMessage:e.syntheticMessage,title:e.title,userSelectedProjectUuids:e.projectsRequireRemoteCarry?void 0:e.userSelectedProjectUuids,scheduledTaskId:e.scheduledTaskId,channel:e.channel,spaceId:e.spaceId,sessionType:e.sessionType,chromeSkipAllPermissionChecks:e.chromeSkipAllPermissionChecks,cuAppHints:e.cuAppHints,branchSession:e.branchSession});if(D?.sessionId){if(R&&E&&"Other"!==E){const e=E;f({event_key:"claudeai.setup_cowork.step_reached",step:"role",session_id:D.sessionId}),f({event_key:"claudeai.setup_cowork.role_selected",role_label:e,work_function:e,source:"account",session_id:D.sessionId})}return{sessionId:D.sessionId,routingReason:w}}},[Z])}const d3=tL({couldntStart:{defaultMessage:"Couldn't start this task. Try again in a moment.",id:"Ob+O7Y+M/d"},vmpSetupNeeded:{defaultMessage:"A Windows feature needs to be enabled to give Claude a secure workspace.",id:"6fXbyFQilr"}});function u3(t){const{spaceId:s,source:n,readDraftPermissionMode:a=!1}=t,i=r(),o=JS(),l=Xo(),c=el(),d=tl(),u=_().claudeai_title_generation,m=sl(),p=nl(),f=al(),g=ya(),h=No(),{track:C}=ae(),{addError:x}=ut(),{activeOrganization:y}=v(),{data:b}=il(),{storedModel:k}=Ae("cowork"),w=c3(),{mutateAsync:M}=js(),{rename:j}=kI(),S=Dr({router:i,intl:o,addPendingMessage:l,removePendingMessage:c,generateLocalSessionTitle:d,titleGenerationLoadShed:u,isCoworkHipaaRestricted:m,yukonSilverGemsStatus:p,availableModes:f,coworkRemoteMode:g,coworkRemoteProjectsEnabled:h,track:C,addError:x,activeOrganization:y,pluginCommands:b,storedModel:k,startSession:w,readMcpResource:M,renameCowork:j});return e.useCallback(async({prompt:e,rawPrompt:t,systemPromptSuffix:i,model:r,effortLevel:o,extendedThinkingEnabled:l,files:c,attachments:d,syncSources:u,title:m,skipRedirect:p,onOptimisticId:f,onWarmRestore:g,permissionMode:h,chromeSkipAllPermissionChecks:C,sessionType:x,branchSession:v,requiresLocalSession:y,draftSelections:b})=>{const{router:k,intl:w,addPendingMessage:M,removePendingMessage:_,generateLocalSessionTitle:j,titleGenerationLoadShed:L,isCoworkHipaaRestricted:N,yukonSilverGemsStatus:I,availableModes:T,coworkRemoteMode:A,coworkRemoteProjectsEnabled:E,track:R,addError:D,activeOrganization:H,pluginCommands:P,storedModel:U,startSession:F,readMcpResource:V,renameCowork:z}=S.current,Z=r??U;if(!Z)return void D(w.formatMessage(d3.couldntStart));const B=t?rl(t):void 0,q=performance.now(),W=ol.getState(),{draftPermissionMode:$,draftChromeSkipAllPermissionChecks:G}=W,K=b?.selectedFolders??W.selectedFolders??[],Y=b?.selectedProjectUuids??W.selectedProjectUuids,{effectivePermissionMode:Q,effectiveChromeSkipAllPermissionChecks:J}=void 0!==(X={permissionMode:h,chromeSkipAllPermissionChecks:C,draftPermissionMode:$,draftChromeSkipAllPermissionChecks:G,readDraftPermissionMode:a}).permissionMode?{effectivePermissionMode:X.permissionMode,effectiveChromeSkipAllPermissionChecks:X.chromeSkipAllPermissionChecks}:X.readDraftPermissionMode?{effectivePermissionMode:X.draftPermissionMode,effectiveChromeSkipAllPermissionChecks:X.draftChromeSkipAllPermissionChecks}:{effectivePermissionMode:"default",effectiveChromeSkipAllPermissionChecks:void 0};var X;const ee=s??ll(Ar.getState().spaces,K)?.id,te=!I.loading&&I.enabled,se=E&&A.orgAvailable&&A.isRemote,ne="chat"===x,ae=cl({selectedFolders:ne?[]:K,selectedProjectUuids:ne?new Set:Y??new Set,draftPermissionMode:Q,draftChromeSkipAllPermissionChecks:J},{availableModes:T,isGemsEnabled:te||se,gemsCanCarryProjects:te,spaceId:ee});if(!s&&(ne?0:Y?.size??0)>0&&!te&&!se)return void D(w.formatMessage({defaultMessage:"Projects can't be included in sessions that run on this computer. Switch the session back to cloud, or remove the folder or permission setting that keeps it local.",id:"yWm1EuwrS/"}));const ie=c??[],re=dl(e,ie,d??[]),oe=await ul(re,u??[],V),le=ua(),ce=!m&&re.trim().length>=10&&!L&&!N,de=ce?j.mutateAsync({first_session_message:re,model:Z}).catch(()=>{}):Promise.resolve(void 0),ue=ml().length,me=`local_${ua()}`,pe=pl(fl({id:me,title:m,spaceId:ee,sessionType:x}));f?.(me);const fe=!b,ge=await F({...ae,sessionType:x,branchSession:v,requiresLocalSession:y,tClick:q,sessionId:me,message:oe+(fe?s0():""),systemPromptSuffix:i,model:Z,effortLevel:o,extendedThinkingEnabled:l,title:m,titlePromise:ce?de:void 0,composerFiles:ie.length>0?ie:void 0,messageUuid:le,userDeclaredUrls:B}).catch(e=>{gl(pe),a0.getState().clearFileNames(le);const t=String(e?.message??e),s=o0(t),n=t.includes("ModelsNotDiscoveredError"),a=ho(e)??ho(new Error(s)),i=s.includes(J0),r=e instanceof $5?e:void 0,o=e instanceof O,l=bo(e);i&&!b&&ol.getState().clearSelectedFolders();const c=l?w.formatMessage({defaultMessage:"This computer's clock appears to be set incorrectly, so the session couldn't be started. Correct the date & time in your system settings and try again.",id:"YI7k7qKMys"}):o?w.formatMessage({defaultMessage:"This computer's security key no longer matches its device registration, so the session wasn't started.",id:"MgX96G8LzE"}):i?w.formatMessage({defaultMessage:"Projects can't be included in sessions that run on this computer. Switch the session back to cloud, or remove the folder or permission setting that keeps it local.",id:"yWm1EuwrS/"}):r?w.formatMessage(r.vmpNotEnabled?d3.vmpSetupNeeded:d3.couldntStart):null!==a?w.formatMessage({defaultMessage:"Unable to start session. Sign in again to continue.",id:"LyvoS49DnN"}):e instanceof hl?w.formatMessage(d3.couldntStart):s;throw Cl(e)||D(c,i||o||l?{messageForLogging:o?"cowork start blocked (device key mismatch)":l?"cowork start blocked (device clock skew)":"startLocalSession refused (project carry)",...n?{timeout:8e3}:{}}:{error:e,errorContext:{tags:{source:"lam_start_session"}},messageForLogging:"startLocalSession refused",...n?{timeout:8e3}:{}}),ne||i||o||l||xl("failure","start_rejected",e),e});if(!ge)return gl(pe),ne||xl("failure","empty_result"),void D(w.formatMessage(d3.couldntStart));const{sessionId:he,openingMessageUuid:Ce,routingReason:xe,warmCommit:ve,retryWarmCommit:ye}=ge;if(vl(pe,{kind:"cowork",id:he}),ee&&!ne&&yl.getState().expand(bl({kind:"cowork-space",id:ee})),!ne&&!ee)for(const s of Y)kl(s);ne||(xl("success"),wl("success","remote"===xe?"remote":"local")),ce&&void 0===ve&&(wI.add(he),de.then(e=>{wI.delete(he)&&e?.title&&z&&z(he,e.title,{source:"auto"}).catch(()=>{})}).catch(()=>{wI.delete(he)}));const be=Ce??le,ke=Ml(oe,he,be);return M(he,ke),ve?.catch(async e=>{_(he,be);const t=go.getState().handlers,s=ho(e);null===t&&null!==s&&Co(s);const n=await(t?.handleError(e)?.catch(()=>{}));if("modal"===n)return void g?.(he);let a=e;if("stepup_retry"===n&&ye){M(he,ke);try{return await ye(),void to("warm","retried_ok")}catch(i){if(to("warm","retry_failed"),_(he,be),a=i,"modal"===await(t?.handleError(i,{skipStepUp:!0})?.catch(()=>{})))return void g?.(he)}}else"stepup_retry"===n&&to("warm","dropped_no_retry");g?.(he),D(w.formatMessage({id:"/zJfJBU+lY",defaultMessage:"Couldn't launch the code session. You can try again."}),{error:a,errorContext:{tags:{source:"cowork_warm_commit"}},messageForLogging:"warm commit failed"})}),R({event_key:"claudeai.yukon_gold.session_created",session_type:ga(he)?"remote":"local",routing_reason:xe,session_id:he,files_selected:ie.length,folders_selected:K.length,projects_attached:ae.userSelectedProjectUuids?.length??0,has_project:(ae.userSelectedProjectUuids?.length??0)>0,space_id:ee,source:n}),!ne&&function(e){if("undefined"==typeof window)return!1;try{return"true"!==localStorage.getItem(i0)&&(localStorage.setItem(i0,"true"),!(e>0))}catch{return!1}}(ue)&&R({event_key:"cowork.first_conversation.started"}),_l({message:oe,sessionId:he,track:R,knownCommands:P,hashSalt:H?.uuid??""}),p||k.push(`${jl}/${he}`),he},[S,s,n,a])}const m3=tL({sessionTitle:{defaultMessage:"Set up Cowork",id:"+s6HG+puLa"}}),p3=["connect_tool","install_plugin","create_file","schedule_task"],f3=tL({downloadTitle:{defaultMessage:"Download Cowork",id:"Av25B3J2jg"},downloadSubtitle:{defaultMessage:"Welcome!",id:"Q+U0TWLT/e"},connectToolTitle:{defaultMessage:"Connect your everyday tools",id:"aCCpuiyGU7"},connectToolSubtitle:{defaultMessage:"The more Claude knows your setup, the more it can do",id:"nVMbQAH3By"},connectToolPrompt:{defaultMessage:"Hey Claude, I'm new to Cowork. Can you help me connect to my tools? First ask me which ones I use every day, and then help me connect them. Afterwards, give me ideas about what you can do with the new information you have.",id:"S5PVDSSL9x"},installPluginTitle:{defaultMessage:"Customize Claude to your role",id:"tVTEVxlYh/"},installPluginSubtitle:{defaultMessage:"Add ready-made tools and workflows",id:"T/SIvgJO4U"},installPluginPrompt:{defaultMessage:"Hey Claude, I'm new to Cowork. Can you help me find plugins to install? First ask me what my role is if you don't already know. Afterwards, suggest some plugins that match my role and show me one I should install first.",id:"WLuiV1tqyY"},createFileTitle:{defaultMessage:"Ask Claude to create something",id:"44fLvFI+ri"},createFileSubtitle:{defaultMessage:"Try a spreadsheet, doc, or presentation",id:"GXcvttkgHk"},createFilePrompt:{defaultMessage:"Hey Claude, I'm new to Cowork and want to try making something\u2014like a spreadsheet, doc, or presentation. Ask me what kind of file I need and if I have any notes or context. If I don't, just pick something useful and make it for me.",id:"ZO5fa1Nvxf"},scheduleTaskTitle:{defaultMessage:"Schedule a recurring task",id:"Cs2Rf1AkqB"},scheduleTaskSubtitle:{defaultMessage:"Great for reminders, reports, or regular check-ins",id:"42p5zYzhtq"},scheduleTaskPrompt:{defaultMessage:"Hey Claude, I want to try scheduling a recurring task. Can you walk me through it? Ask me if I have something regular I'd like to automate. If I can't think of anything, suggest something and help me set it up. If I haven't connected the tools you'd need yet, help me do that first.",id:"837vvR3GKV"}}),g3=[{id:"download",title:f3.downloadTitle,subtitle:f3.downloadSubtitle},{id:"connect_tool",title:f3.connectToolTitle,subtitle:f3.connectToolSubtitle,prompt:f3.connectToolPrompt},{id:"install_plugin",title:f3.installPluginTitle,subtitle:f3.installPluginSubtitle,prompt:f3.installPluginPrompt,slash:"setup-cowork",sessionTitle:m3.sessionTitle},{id:"create_file",title:f3.createFileTitle,subtitle:f3.createFileSubtitle,prompt:f3.createFilePrompt},{id:"schedule_task",title:f3.scheduleTaskTitle,subtitle:f3.scheduleTaskSubtitle,prompt:f3.scheduleTaskPrompt}];function h3(e){return"no_plugin"===e?g3.filter(e=>"install_plugin"!==e.id):g3}const C3="cowork-activation-checklist-dismissed",x3="cowork-activation-checklist-clicked",v3="cowork-activation-checklist-fired-completed",y3="cowork-has-created-file",b3=["cowork-activation-checklist-v2-clicked","cowork-activation-checklist-v2-fired-completed","cowork-activation-checklist-v2-fired-all-complete","cowork-activation-checklist-v2-dismissed","cowork-activation-checklist-v2-initial-completion","cowork-activation-checklist-v2-page-index"];function k3(){Tl(C3),Tl(x3),Tl(v3);for(const e of b3)Tl(e);try{localStorage.removeItem(y3)}catch{}}function w3(){const t=JS(),{account:s}=v(),n=pe(),{trackAgentModeEvent:a}=O5(),i=u3({source:"activation_checklist"}),{mutate:r}=Fa(),o=ra(),l=_a(),{scheduledTasks:c}=mI(l.loading?void 0:l.enabled),[d,u]=xs(C3,!1),[m,p]=xs(x3,{}),[f,g]=xs(v3,{}),[h,C]=xs("cowork-activation-checklist-no-sessions-at-first-eval",!1),x=e.useRef(ml().length),y=vr(),b=function(){const t=Ia(e=>e.remoteServers);return e.useMemo(()=>{for(const e of Object.values(t))if(e&&!Go(e))return!0;return!1},[t])}(),M=Ia(e=>e.remoteHasBootstrapped),_=B5(),{data:j,isLoading:S}=Sl(),L=e.useMemo(()=>j.some(e=>"auto"!==e.installedBy),[j]),N=Il(()=>"true"===localStorage.getItem(y3),!1),I=c.length>0,T=M&&!S&&(_||!1),A=e.useMemo(()=>({download:!0,connect_tool:b,install_plugin:L,create_file:N,schedule_task:I}),[b,L,N,I]),E=!!o.considerEnabledForNonUI&&n&&!s?.settings.cowork_onboarding_completed_at&&!l.loading&&!!l.enabled&&y&&!d;e.useEffect(()=>{E&&0===x.current&&!h&&C(!0)},[E,h,C]);const R=E&&(h||0===x.current)?Ll("cowork_activation_checklist","off"):"off",D="off"!==R,H="no_plugin"===R?"no_plugin":"full",P=e.useMemo(()=>function(e){return"no_plugin"===e?p3.filter(e=>"install_plugin"!==e):p3}(H),[H]),U=P.every(e=>A[e]),{track:O}=ae(),F=e.useRef(m);F.current=m;const V=e.useRef(f);V.current={...V.current,...f};const z=e.useRef(!1),Z=e.useRef(!1),B=e.useRef(!1);e.useEffect(()=>{if(!D||!T)return;if(!z.current){z.current=!0;const e=P.filter(e=>A[e]);a("activation_checklist_shown",{variant:H,initial_completion:e});for(const t of e)F.current[t]||(V.current[t]=!0)}const e=P.filter(e=>A[e]&&!V.current[e]);if(e.length>0){const t={...V.current};for(const s of e)t[s]=!0;V.current=t;for(const s of e)a("activation_checklist_item_completed",{item_id:s,via:F.current[s]?"checklist_click":"organic"});g(t=>{const s={...t};for(const n of e)s[n]=!0;return s})}U&&!B.current&&(B.current=!0,a("activation_checklist_all_complete",{variant:H}),r({cowork_onboarding_completed_at:(new Date).toISOString()},{onError:e=>{k.error(w.LOCAL_SESSION,"activation_checklist_completion_patch_failed",e)}}))},[D,T,A,P,H,a,r]);const q=e.useCallback(()=>{Z.current||(Z.current=!0,a("activation_checklist_in_viewport",{variant:H}))},[H,a]),W=e.useCallback(()=>{a("activation_checklist_dismissed",{variant:H,completion_at_dismiss:P.filter(e=>A[e])}),u(!0)},[H,P,A,u,a]),$=Eo(),G=ya(),K=G.orgAvailable&&G.isRemote,{data:Y}=ur(),Q=e.useMemo(()=>K?Nl:new Set(Y?.map(e=>e.name)??[]),[Y,K]),J=e.useRef(!1),X=e.useCallback(async e=>{const s=!!e.slash&&$&&Q.has(e.slash),n=s?`/${e.slash}`:e.prompt&&t.formatMessage(e.prompt);if(!n||J.current)return;J.current=!0;const r=F.current[e.id];let o=!1;try{a("activation_checklist_item_clicked",{item_id:e.id}),p(t=>({...t,[e.id]:!0})),s&&"setup-cowork"===e.slash&&O({event_key:"claudeai.setup_cowork.flow_started",entry:"checklist"});o=!!(await i({prompt:n,title:t.formatMessage(s&&e.sessionTitle||e.title),draftSelections:{selectedFolders:[],selectedProjectUuids:new Set}}))}finally{if(!o){const t=F5.getState();a("activation_checklist_session_start_failed",{item_id:e.id,variant:H,vm_running_status:t.vmRunningStatus,vm_download_status:t.vmDownloadStatus}),r||p(t=>{const s={...t};return delete s[e.id],s})}J.current=!1}},[Q,t,i,p,$,O,a,H]),ee=(U||B.current)&&!d&&(D||z.current);return{shouldShow:D,showCompleted:ee,completionReady:T,variant:H,completion:A,handleDismiss:W,handleItemClick:X,handleEnterViewport:q}}function M3(e,t){const s=typeof e;if(s!==typeof t)return!1;if(Array.isArray(e)){if(!Array.isArray(t))return!1;const s=e.length;if(s!==t.length)return!1;for(let n=0;n<s;n++)if(!M3(e[n],t[n]))return!1;return!0}if("object"===s){if(!e||!t)return e===t;const s=Object.keys(e),n=Object.keys(t);if(s.length!==n.length)return!1;for(const a of s)if(!M3(e[a],t[a]))return!1;return!0}return e===t}function _3(e){return encodeURI(function(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}(e))}const j3={prefixItems:!0,items:!0,allOf:!0,anyOf:!0,oneOf:!0},S3={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependentSchemas:!0},L3={id:!0,$id:!0,$ref:!0,$schema:!0,$anchor:!0,$vocabulary:!0,$comment:!0,default:!0,enum:!0,const:!0,required:!0,type:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};let N3="undefined"!=typeof self&&self.location&&"null"!==self.location.origin?new URL(self.location.origin+self.location.pathname+location.search):new URL("https://github.com/cfworker");function I3(e,t=Object.create(null),s=N3,n=""){if(e&&"object"==typeof e&&!Array.isArray(e)){const a=e.$id||e.id;if(a){const i=new URL(a,s.href);i.hash.length>1?t[i.href]=e:(i.hash="",""===n?s=i:I3(e,t,s))}}else if(!0!==e&&!1!==e)return t;const a=s.href+(n?"#"+n:"");if(void 0!==t[a])throw new Error(`Duplicate schema URI "${a}".`);if(t[a]=e,!0===e||!1===e)return t;if(void 0===e.__absolute_uri__&&Object.defineProperty(e,"__absolute_uri__",{enumerable:!1,value:a}),e.$ref&&void 0===e.__absolute_ref__){const t=new URL(e.$ref,s.href);t.hash=t.hash,Object.defineProperty(e,"__absolute_ref__",{enumerable:!1,value:t.href})}if(e.$recursiveRef&&void 0===e.__absolute_recursive_ref__){const t=new URL(e.$recursiveRef,s.href);t.hash=t.hash,Object.defineProperty(e,"__absolute_recursive_ref__",{enumerable:!1,value:t.href})}if(e.$anchor){t[new URL("#"+e.$anchor,s.href).href]=e}for(let i in e){if(L3[i])continue;const a=`${n}/${_3(i)}`,r=e[i];if(Array.isArray(r)){if(j3[i]){const e=r.length;for(let n=0;n<e;n++)I3(r[n],t,s,`${a}/${n}`)}}else if(S3[i])for(let e in r)I3(r[e],t,s,`${a}/${_3(e)}`);else I3(r,t,s,a)}return t}const T3=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,A3=[0,31,28,31,30,31,30,31,31,30,31,30,31],E3=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;function R3(e){return e.test.bind(e)}const D3={date:H3,time:P3.bind(void 0,!1),"date-time":function(e){const t=e.split(U3);return 2==t.length&&H3(t[0])&&P3(!0,t[1])},duration:e=>e.length>1&&e.length<80&&(/^P\d+([.,]\d+)?W$/.test(e)||/^P[\dYMDTHS]*(\d[.,]\d+)?[YMDHS]$/.test(e)&&/^P([.,\d]+Y)?([.,\d]+M)?([.,\d]+D)?(T([.,\d]+H)?([.,\d]+M)?([.,\d]+S)?)?$/.test(e)),uri:function(e){return O3.test(e)&&F3.test(e)},"uri-reference":R3(/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i),"uri-template":R3(/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i),url:R3(/^(?:(?:https?|ftp):\/\/)(?:\S+(?::\S*)?@)?(?:(?!10(?:\.\d{1,3}){3})(?!127(?:\.\d{1,3}){3})(?!169\.254(?:\.\d{1,3}){2})(?!192\.168(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u{00a1}-\u{ffff}0-9]+-?)*[a-z\u{00a1}-\u{ffff}0-9]+)(?:\.(?:[a-z\u{00a1}-\u{ffff}0-9]+-?)*[a-z\u{00a1}-\u{ffff}0-9]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu),email:e=>{if('"'===e[0])return!1;const[t,s,...n]=e.split("@");return!(!t||!s||0!==n.length||t.length>64||s.length>253)&&("."!==t[0]&&!t.endsWith(".")&&!t.includes("..")&&(!(!/^[a-z0-9.-]+$/i.test(s)||!/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+$/i.test(t))&&s.split(".").every(e=>/^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$/i.test(e))))},hostname:R3(/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i),ipv4:R3(/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/),ipv6:R3(/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i),regex:function(e){if(V3.test(e))return!1;try{return new RegExp(e,"u"),!0}catch(t){return!1}},uuid:R3(/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i),"json-pointer":R3(/^(?:\/(?:[^~/]|~0|~1)*)*$/),"json-pointer-uri-fragment":R3(/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i),"relative-json-pointer":R3(/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/)};function H3(e){const t=e.match(T3);if(!t)return!1;const s=+t[1],n=+t[2],a=+t[3];return n>=1&&n<=12&&a>=1&&a<=(2==n&&function(e){return e%4==0&&(e%100!=0||e%400==0)}(s)?29:A3[n])}function P3(e,t){const s=t.match(E3);if(!s)return!1;const n=+s[1],a=+s[2],i=+s[3],r=!!s[5];return(n<=23&&a<=59&&i<=59||23==n&&59==a&&60==i)&&(!e||r)}const U3=/t|\s/i;const O3=/\/|:/,F3=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;const V3=/[^\\]\\Z/;function z3(e,t,s="2019-09",n=I3(t),a=!0,i=null,r="#",o="#",l=Object.create(null)){if(!0===t)return{valid:!0,errors:[]};if(!1===t)return{valid:!1,errors:[{instanceLocation:r,keyword:"false",keywordLocation:r,error:"False boolean schema."}]};const c=typeof e;let d;switch(c){case"boolean":case"number":case"string":d=c;break;case"object":d=null===e?"null":Array.isArray(e)?"array":"object";break;default:throw new Error(`Instances of "${c}" type are not supported.`)}const{$ref:u,$recursiveRef:m,$recursiveAnchor:p,type:f,const:g,enum:h,required:C,not:x,anyOf:v,allOf:y,oneOf:b,if:k,then:w,else:M,format:_,properties:j,patternProperties:S,additionalProperties:L,unevaluatedProperties:N,minProperties:I,maxProperties:T,propertyNames:A,dependentRequired:E,dependentSchemas:R,dependencies:D,prefixItems:H,items:P,additionalItems:U,unevaluatedItems:O,contains:F,minContains:V,maxContains:z,minItems:Z,maxItems:B,uniqueItems:q,minimum:W,maximum:$,exclusiveMinimum:G,exclusiveMaximum:K,multipleOf:Y,minLength:Q,maxLength:J,pattern:X,__absolute_ref__:ee,__absolute_recursive_ref__:te}=t,se=[];if(!0===p&&null===i&&(i=t),"#"===m){const c=null===i?n[te]:i,d=`${o}/$recursiveRef`,u=z3(e,null===i?t:i,s,n,a,c,r,d,l);u.valid||se.push({instanceLocation:r,keyword:"$recursiveRef",keywordLocation:d,error:"A subschema had errors."},...u.errors)}if(void 0!==u){const t=n[ee||u];if(void 0===t){let e=`Unresolved $ref "${u}".`;throw ee&&ee!==u&&(e+=`  Absolute URI "${ee}".`),e+=`\nKnown schemas:\n- ${Object.keys(n).join("\n- ")}`,new Error(e)}const c=`${o}/$ref`,d=z3(e,t,s,n,a,i,r,c,l);if(d.valid||se.push({instanceLocation:r,keyword:"$ref",keywordLocation:c,error:"A subschema had errors."},...d.errors),"4"===s||"7"===s)return{valid:0===se.length,errors:se}}if(Array.isArray(f)){let t=f.length,s=!1;for(let n=0;n<t;n++)if(d===f[n]||"integer"===f[n]&&"number"===d&&e%1==0&&e==e){s=!0;break}s||se.push({instanceLocation:r,keyword:"type",keywordLocation:`${o}/type`,error:`Instance type "${d}" is invalid. Expected "${f.join('", "')}".`})}else"integer"===f?("number"!==d||e%1||e!=e)&&se.push({instanceLocation:r,keyword:"type",keywordLocation:`${o}/type`,error:`Instance type "${d}" is invalid. Expected "${f}".`}):void 0!==f&&d!==f&&se.push({instanceLocation:r,keyword:"type",keywordLocation:`${o}/type`,error:`Instance type "${d}" is invalid. Expected "${f}".`});if(void 0!==g&&("object"===d||"array"===d?M3(e,g)||se.push({instanceLocation:r,keyword:"const",keywordLocation:`${o}/const`,error:`Instance does not match ${JSON.stringify(g)}.`}):e!==g&&se.push({instanceLocation:r,keyword:"const",keywordLocation:`${o}/const`,error:`Instance does not match ${JSON.stringify(g)}.`})),void 0!==h&&("object"===d||"array"===d?h.some(t=>M3(e,t))||se.push({instanceLocation:r,keyword:"enum",keywordLocation:`${o}/enum`,error:`Instance does not match any of ${JSON.stringify(h)}.`}):h.some(t=>e===t)||se.push({instanceLocation:r,keyword:"enum",keywordLocation:`${o}/enum`,error:`Instance does not match any of ${JSON.stringify(h)}.`})),void 0!==x){const t=`${o}/not`;z3(e,x,s,n,a,i,r,t).valid&&se.push({instanceLocation:r,keyword:"not",keywordLocation:t,error:'Instance matched "not" schema.'})}let ne=[];if(void 0!==v){const t=`${o}/anyOf`,c=se.length;let d=!1;for(let o=0;o<v.length;o++){const c=v[o],u=Object.create(l),m=z3(e,c,s,n,a,!0===p?i:null,r,`${t}/${o}`,u);se.push(...m.errors),d=d||m.valid,m.valid&&ne.push(u)}d?se.length=c:se.splice(c,0,{instanceLocation:r,keyword:"anyOf",keywordLocation:t,error:"Instance does not match any subschemas."})}if(void 0!==y){const t=`${o}/allOf`,c=se.length;let d=!0;for(let o=0;o<y.length;o++){const c=y[o],u=Object.create(l),m=z3(e,c,s,n,a,!0===p?i:null,r,`${t}/${o}`,u);se.push(...m.errors),d=d&&m.valid,m.valid&&ne.push(u)}d?se.length=c:se.splice(c,0,{instanceLocation:r,keyword:"allOf",keywordLocation:t,error:"Instance does not match every subschema."})}if(void 0!==b){const t=`${o}/oneOf`,c=se.length,d=b.filter((o,c)=>{const d=Object.create(l),u=z3(e,o,s,n,a,!0===p?i:null,r,`${t}/${c}`,d);return se.push(...u.errors),u.valid&&ne.push(d),u.valid}).length;1===d?se.length=c:se.splice(c,0,{instanceLocation:r,keyword:"oneOf",keywordLocation:t,error:`Instance does not match exactly one subschema (${d} matches).`})}if("object"!==d&&"array"!==d||Object.assign(l,...ne),void 0!==k){const t=`${o}/if`;if(z3(e,k,s,n,a,i,r,t,l).valid){if(void 0!==w){const c=z3(e,w,s,n,a,i,r,`${o}/then`,l);c.valid||se.push({instanceLocation:r,keyword:"if",keywordLocation:t,error:'Instance does not match "then" schema.'},...c.errors)}}else if(void 0!==M){const c=z3(e,M,s,n,a,i,r,`${o}/else`,l);c.valid||se.push({instanceLocation:r,keyword:"if",keywordLocation:t,error:'Instance does not match "else" schema.'},...c.errors)}}if("object"===d){if(void 0!==C)for(const s of C)s in e||se.push({instanceLocation:r,keyword:"required",keywordLocation:`${o}/required`,error:`Instance does not have required property "${s}".`});const t=Object.keys(e);if(void 0!==I&&t.length<I&&se.push({instanceLocation:r,keyword:"minProperties",keywordLocation:`${o}/minProperties`,error:`Instance does not have at least ${I} properties.`}),void 0!==T&&t.length>T&&se.push({instanceLocation:r,keyword:"maxProperties",keywordLocation:`${o}/maxProperties`,error:`Instance does not have at least ${T} properties.`}),void 0!==A){const t=`${o}/propertyNames`;for(const o in e){const e=`${r}/${_3(o)}`,l=z3(o,A,s,n,a,i,e,t);l.valid||se.push({instanceLocation:r,keyword:"propertyNames",keywordLocation:t,error:`Property name "${o}" does not match schema.`},...l.errors)}}if(void 0!==E){const t=`${o}/dependantRequired`;for(const s in E)if(s in e){const n=E[s];for(const a of n)a in e||se.push({instanceLocation:r,keyword:"dependentRequired",keywordLocation:t,error:`Instance has "${s}" but does not have "${a}".`})}}if(void 0!==R)for(const u in R){const t=`${o}/dependentSchemas`;if(u in e){const o=z3(e,R[u],s,n,a,i,r,`${t}/${_3(u)}`,l);o.valid||se.push({instanceLocation:r,keyword:"dependentSchemas",keywordLocation:t,error:`Instance has "${u}" but does not match dependant schema.`},...o.errors)}}if(void 0!==D){const t=`${o}/dependencies`;for(const o in D)if(o in e){const l=D[o];if(Array.isArray(l))for(const s of l)s in e||se.push({instanceLocation:r,keyword:"dependencies",keywordLocation:t,error:`Instance has "${o}" but does not have "${s}".`});else{const c=z3(e,l,s,n,a,i,r,`${t}/${_3(o)}`);c.valid||se.push({instanceLocation:r,keyword:"dependencies",keywordLocation:t,error:`Instance has "${o}" but does not match dependant schema.`},...c.errors)}}}const c=Object.create(null);let d=!1;if(void 0!==j){const t=`${o}/properties`;for(const o in j){if(!(o in e))continue;const u=`${r}/${_3(o)}`,m=z3(e[o],j[o],s,n,a,i,u,`${t}/${_3(o)}`);if(m.valid)l[o]=c[o]=!0;else if(d=a,se.push({instanceLocation:r,keyword:"properties",keywordLocation:t,error:`Property "${o}" does not match schema.`},...m.errors),d)break}}if(!d&&void 0!==S){const t=`${o}/patternProperties`;for(const o in S){const u=new RegExp(o,"u"),m=S[o];for(const p in e){if(!u.test(p))continue;const f=`${r}/${_3(p)}`,g=z3(e[p],m,s,n,a,i,f,`${t}/${_3(o)}`);g.valid?l[p]=c[p]=!0:(d=a,se.push({instanceLocation:r,keyword:"patternProperties",keywordLocation:t,error:`Property "${p}" matches pattern "${o}" but does not match associated schema.`},...g.errors))}}}if(d||void 0===L){if(!d&&void 0!==N){const t=`${o}/unevaluatedProperties`;for(const o in e)if(!l[o]){const c=`${r}/${_3(o)}`,d=z3(e[o],N,s,n,a,i,c,t);d.valid?l[o]=!0:se.push({instanceLocation:r,keyword:"unevaluatedProperties",keywordLocation:t,error:`Property "${o}" does not match unevaluated properties schema.`},...d.errors)}}}else{const t=`${o}/additionalProperties`;for(const o in e){if(c[o])continue;const u=`${r}/${_3(o)}`,m=z3(e[o],L,s,n,a,i,u,t);m.valid?l[o]=!0:(d=a,se.push({instanceLocation:r,keyword:"additionalProperties",keywordLocation:t,error:`Property "${o}" does not match additional properties schema.`},...m.errors))}}}else if("array"===d){void 0!==B&&e.length>B&&se.push({instanceLocation:r,keyword:"maxItems",keywordLocation:`${o}/maxItems`,error:`Array has too many items (${e.length} > ${B}).`}),void 0!==Z&&e.length<Z&&se.push({instanceLocation:r,keyword:"minItems",keywordLocation:`${o}/minItems`,error:`Array has too few items (${e.length} < ${Z}).`});const t=e.length;let c=0,d=!1;if(void 0!==H){const u=`${o}/prefixItems`,m=Math.min(H.length,t);for(;c<m;c++){const t=z3(e[c],H[c],s,n,a,i,`${r}/${c}`,`${u}/${c}`);if(l[c]=!0,!t.valid&&(d=a,se.push({instanceLocation:r,keyword:"prefixItems",keywordLocation:u,error:"Items did not match schema."},...t.errors),d))break}}if(void 0!==P){const u=`${o}/items`;if(Array.isArray(P)){const o=Math.min(P.length,t);for(;c<o;c++){const t=z3(e[c],P[c],s,n,a,i,`${r}/${c}`,`${u}/${c}`);if(l[c]=!0,!t.valid&&(d=a,se.push({instanceLocation:r,keyword:"items",keywordLocation:u,error:"Items did not match schema."},...t.errors),d))break}}else for(;c<t;c++){const t=z3(e[c],P,s,n,a,i,`${r}/${c}`,u);if(l[c]=!0,!t.valid&&(d=a,se.push({instanceLocation:r,keyword:"items",keywordLocation:u,error:"Items did not match schema."},...t.errors),d))break}if(!d&&void 0!==U){const u=`${o}/additionalItems`;for(;c<t;c++){const t=z3(e[c],U,s,n,a,i,`${r}/${c}`,u);l[c]=!0,t.valid||(d=a,se.push({instanceLocation:r,keyword:"additionalItems",keywordLocation:u,error:"Items did not match additional items schema."},...t.errors))}}}if(void 0!==F)if(0===t&&void 0===V)se.push({instanceLocation:r,keyword:"contains",keywordLocation:`${o}/contains`,error:"Array is empty. It must contain at least one item matching the schema."});else if(void 0!==V&&t<V)se.push({instanceLocation:r,keyword:"minContains",keywordLocation:`${o}/minContains`,error:`Array has less items (${t}) than minContains (${V}).`});else{const c=`${o}/contains`,d=se.length;let u=0;for(let o=0;o<t;o++){const t=z3(e[o],F,s,n,a,i,`${r}/${o}`,c);t.valid?(l[o]=!0,u++):se.push(...t.errors)}u>=(V||0)&&(se.length=d),void 0===V&&void 0===z&&0===u?se.splice(d,0,{instanceLocation:r,keyword:"contains",keywordLocation:c,error:"Array does not contain item matching schema."}):void 0!==V&&u<V?se.push({instanceLocation:r,keyword:"minContains",keywordLocation:`${o}/minContains`,error:`Array must contain at least ${V} items matching schema. Only ${u} items were found.`}):void 0!==z&&u>z&&se.push({instanceLocation:r,keyword:"maxContains",keywordLocation:`${o}/maxContains`,error:`Array may contain at most ${z} items matching schema. ${u} items were found.`})}if(!d&&void 0!==O){const d=`${o}/unevaluatedItems`;for(;c<t;c++){if(l[c])continue;const t=z3(e[c],O,s,n,a,i,`${r}/${c}`,d);l[c]=!0,t.valid||se.push({instanceLocation:r,keyword:"unevaluatedItems",keywordLocation:d,error:"Items did not match unevaluated items schema."},...t.errors)}}if(q)for(let s=0;s<t;s++){const n=e[s],a="object"==typeof n&&null!==n;for(let i=0;i<t;i++){if(s===i)continue;const t=e[i];(n===t||a&&("object"==typeof t&&null!==t)&&M3(n,t))&&(se.push({instanceLocation:r,keyword:"uniqueItems",keywordLocation:`${o}/uniqueItems`,error:`Duplicate items at indexes ${s} and ${i}.`}),s=Number.MAX_SAFE_INTEGER,i=Number.MAX_SAFE_INTEGER)}}}else if("number"===d){if("4"===s?(void 0!==W&&(!0===G&&e<=W||e<W)&&se.push({instanceLocation:r,keyword:"minimum",keywordLocation:`${o}/minimum`,error:`${e} is less than ${G?"or equal to ":""} ${W}.`}),void 0!==$&&(!0===K&&e>=$||e>$)&&se.push({instanceLocation:r,keyword:"maximum",keywordLocation:`${o}/maximum`,error:`${e} is greater than ${K?"or equal to ":""} ${$}.`})):(void 0!==W&&e<W&&se.push({instanceLocation:r,keyword:"minimum",keywordLocation:`${o}/minimum`,error:`${e} is less than ${W}.`}),void 0!==$&&e>$&&se.push({instanceLocation:r,keyword:"maximum",keywordLocation:`${o}/maximum`,error:`${e} is greater than ${$}.`}),void 0!==G&&e<=G&&se.push({instanceLocation:r,keyword:"exclusiveMinimum",keywordLocation:`${o}/exclusiveMinimum`,error:`${e} is less than ${G}.`}),void 0!==K&&e>=K&&se.push({instanceLocation:r,keyword:"exclusiveMaximum",keywordLocation:`${o}/exclusiveMaximum`,error:`${e} is greater than or equal to ${K}.`})),void 0!==Y){const t=e%Y;Math.abs(0-t)>=1.1920929e-7&&Math.abs(Y-t)>=1.1920929e-7&&se.push({instanceLocation:r,keyword:"multipleOf",keywordLocation:`${o}/multipleOf`,error:`${e} is not a multiple of ${Y}.`})}}else if("string"===d){const t=void 0===Q&&void 0===J?0:function(e){let t,s=0,n=e.length,a=0;for(;a<n;)s++,t=e.charCodeAt(a++),t>=55296&&t<=56319&&a<n&&(t=e.charCodeAt(a),56320==(64512&t)&&a++);return s}(e);void 0!==Q&&t<Q&&se.push({instanceLocation:r,keyword:"minLength",keywordLocation:`${o}/minLength`,error:`String is too short (${t} < ${Q}).`}),void 0!==J&&t>J&&se.push({instanceLocation:r,keyword:"maxLength",keywordLocation:`${o}/maxLength`,error:`String is too long (${t} > ${J}).`}),void 0===X||new RegExp(X,"u").test(e)||se.push({instanceLocation:r,keyword:"pattern",keywordLocation:`${o}/pattern`,error:"String does not match pattern."}),void 0!==_&&D3[_]&&!D3[_](e)&&se.push({instanceLocation:r,keyword:"format",keywordLocation:`${o}/format`,error:`String does not match format "${_}".`})}return{valid:0===se.length,errors:se}}class Z3{schema;draft;shortCircuit;lookup;constructor(e,t="2019-09",s=!0){this.schema=e,this.draft=t,this.shortCircuit=s,this.lookup=I3(e)}validate(e){return z3(e,this.schema,this.draft,this.lookup,this.shortCircuit)}addSchema(e,t){t&&(e={...e,$id:t}),I3(e,this.lookup)}}class B3{constructor(e){this.shortcircuit=e?.shortcircuit??!0,this.draft=e?.draft??"2020-12"}getValidator(e){const t=new Z3(e,this.draft,this.shortcircuit);return e=>{const s=t.validate(e);return s.valid?{valid:!0,data:e,errorMessage:void 0}:{valid:!1,data:void 0,errorMessage:s.errors.map(e=>`${e.instanceLocation}: ${e.error}`).join("; ")}}}}class q3{getValidator(e){return e=>({valid:!0,data:e,errorMessage:void 0})}}let W3,$3;function G3(){return W3??=new B3}function K3(){const e={},t=Al();t&&(e.elicitation={form:{},url:{}}),El()&&(e.extensions={"io.modelcontextprotocol/ui":{mimeTypes:["text/html;profile=mcp-app"]}});const s=Rl("claude_ai_mcp_skip_schema_validation"),n=new Dl({name:"claude-ai",version:"0.1.0"},{capabilities:e,jsonSchemaValidator:s?$3??=new q3:G3()});return t&&Hl.add(n),n}async function Y3(e){const t=K3();return await t.connect(e),t}class Q3{onclose;onerror;onmessage;_sessionId;_serverUuid;_bridge;constructor(e,t,s=lo){this._sessionId=e,this._serverUuid=t,this._bridge=s}start(){return Promise.resolve()}close(){return this.onclose?.(),Promise.resolve()}send(e){if(!Pl(e))return Promise.resolve();const t=e;switch(t.method){case"initialize":this.respondSync(t.id,{protocolVersion:Ol,capabilities:{tools:{},resources:{}},serverInfo:{name:this._serverUuid,version:"1.0.0"}});break;case"ping":this.respondSync(t.id,{});break;case"tools/list":this.handleToolsList(t);break;case"tools/call":this.handleToolsCall(t);break;case"resources/read":this.handleResourcesRead(t);break;case"resources/list":this.handleResourcesList(t);break;case"resources/templates/list":this.respondSync(t.id,{resourceTemplates:[]});break;case"prompts/list":this.respondSync(t.id,{prompts:[]});break;default:this.onmessage?.({jsonrpc:"2.0",id:t.id,error:{code:Ul.MethodNotFound,message:`Unsupported method in Cowork: ${t.method}`}})}return Promise.resolve()}respondSync(e,t){this.onmessage?.({jsonrpc:"2.0",id:e,result:t})}respondError(e,t,s){this.onmessage?.({jsonrpc:"2.0",id:e,error:{code:t,message:s}})}handleToolsList(e){const t=Ia.getState(),s=[...t.localTools[this._serverUuid]??[],...t.localAppOnlyTools[this._serverUuid]??[],...t.remoteTools[this._serverUuid]??[],...t.remoteAppOnlyTools[this._serverUuid]??[]].map(e=>({name:e.name,description:e.description,inputSchema:e.inputSchema,_meta:e._meta}));this.respondSync(e.id,{tools:s})}handleToolsCall(e){if(!this._bridge?.mcpCallTool)return void this.respondError(e.id,Ul.InternalError,"IPC not available for MCP tool call");const t=e.params;this._bridge.mcpCallTool(this._sessionId,this._serverUuid,t.name,t.arguments??{}).then(t=>{this.respondSync(e.id,{content:t.content,isError:t.isError,...void 0!==t.structuredContent&&{structuredContent:t.structuredContent},...void 0!==t._meta&&{_meta:t._meta}})}).catch(t=>{this.respondError(e.id,Ul.InternalError,t instanceof Error?t.message:String(t))})}handleResourcesRead(e){if(!this._bridge?.mcpReadResource)return void this.respondError(e.id,Ul.InternalError,"IPC not available for MCP resource read");const t=e.params;this._bridge.mcpReadResource(this._sessionId,this._serverUuid,t.uri).then(t=>{this.respondSync(e.id,{contents:t.contents})}).catch(t=>{this.respondError(e.id,Ul.InternalError,t instanceof Error?t.message:String(t))})}handleResourcesList(e){this._bridge?.mcpListResources?this._bridge.mcpListResources(this._sessionId,this._serverUuid).then(t=>{this.respondSync(e.id,{resources:t})}).catch(t=>{this.respondError(e.id,Ul.InternalError,t instanceof Error?t.message:String(t))}):this.respondError(e.id,Ul.InternalError,"IPC not available for MCP resource list")}}async function J3(e,t,s){const n=new Q3(t,s,e),a=K3();return await a.connect(n),a}async function X3(e,t){return J3(lo,e,t)}const e4="Claude Code",t4="ccr_thinking_token_count",s4="epitaxy-ingest-engine_main",n4=["provision","clone","setup_script","start_cc"],a4=n4;function i4(e){return"env_manager_log"===e.type}function r4(e){return"system"===e.type&&"subtype"in e&&"init"===e.subtype}function o4(e){if("system"!==e.type)return;const t=e;return("init_milestone"===t.subtype||"init_blocked"===t.subtype)&&"string"==typeof t.message?e:void 0}function l4(e){if("string"==typeof e&&0!==e.length)try{const t=new URL(e);if("https:"!==t.protocol)return;return t.username="",t.password="",{href:t.href,host:t.host}}catch{return}}function c4(e){return"assistant"===e.type}function d4(e){if("env_manager_log"===e.type||"tool_use_summary"===e.type)return!1;if("result"===e.type)return Boolean(e.is_error);if("system"===e.type)switch(e.subtype){case"local_command":case"local_command_output":case"task_started":case"task_notification":case"model_fallback":case"model_refusal_fallback":case"compact_boundary":return!0;default:return!1}const t=e;return!(t.isCompactSummary||t.isVisibleInTranscriptOnly)}function u4(e){if("user"!==e.type)return!1;const t=e;if(t.isMeta||t.isSynthetic||t.parent_tool_use_id||!1===t.shouldQuery)return!1;const s=t.message?.content;return"string"==typeof s||!!Array.isArray(s)&&!s.some(e=>"tool_result"===e?.type)}function m4(){return{lastBoundary:void 0,seenOtherStepSinceProvision:!0,settledCycles:[],priorCycleAnchors:new Set}}function p4(e,t,s,n){const a=e.find(e=>e.key===t);if(a){if(("completed"===a.status||"failed"===a.status||"skipped"===a.status)&&"running"===n.status)return;Object.assign(a,n)}else e.push({key:t,label:s,status:"running",...n})}function f4(e,t,s,n){const a=new Map,i=[];let r,o,l,c,d=!1,u=!1,m=!1;for(let b=t-1;b>=0;b--){if(u4(e[b])){c=e[b].uuid;break}!m&&d4(e[b])&&(m=!0)}if(void 0===c)for(let b=t;b<s;b++){const t=e[b];if(u4(t)){c=t.uuid,m=!1;break}if(!i4(t)&&!r4(t)&&!o4(t)&&!1!==t.shouldQuery)break}const p=(void 0===c||n.has(c)?void 0:c)??e[t]?.uuid??`cycle-${t}`,f=function(e,t,s){for(let n=t;n<s;n++){const t=e[n];if(r4(t)||c4(t))return;if(!i4(t))continue;const s=t.data.extra;if("provision"!==s?.step_id)continue;const a=s.expected_steps;if("string"==typeof a&&a.length>0)return a.split(",");if("completed"===s.step_status)return}}(e,t,s)??a4,g=new Set(f);for(const b of f)a.set(b,{id:b,status:"pending",details:[]});const h=(e,t)=>{const s=a.get(e);if(s)return t&&!s.backendLabel&&(s.backendLabel=t),s;const n={id:e,status:"pending",details:[],backendLabel:t};return a.set(e,n),g.has(e)||i.push(e),n};let C;const x=e=>{const t=e;C=t.timestamp??t.created_at??C};for(let b=t;b<s;b++){const t=e[b];if(r4(t)||c4(t)){d=!0;break}const s=o4(t);if(s){if(x(t),"init_milestone"===s.subtype){o=s.message;continue}const e=l4(s.action_url);l={message:s.message,...e&&{actionUrl:e.href,actionHost:e.host}},u=!0;break}if(i4(t)){const e=t.data.extra,s=e?.step_id,n=e?.step_status,i="started"===n?"running":n,o=e?.step_detail,l=e?.step_label,c=e?.session_mode,m=e?.output;if(c&&(r=c),!s)continue;x(t);const p=h(s,l),f="completed"===p.status||"failed"===p.status||"skipped"===p.status;if(o&&"clone"===s?f||(p4(p.details,o,o,{status:i??"running",..."failed"===i&&t.data.content?{error:t.data.content}:{}}),"pending"===p.status&&(p.status="running")):i&&(f&&"running"===i||(p.status=i),m&&(p.output=m),"failed"===i&&(t.data.content&&(p.error=t.data.content),u=!0)),"start_cc"===s&&"running"===i)for(const t of a.values())"start_cc"!==t.id&&"pending"===t.status&&(t.status="skipped");if("start_cc"===s&&"completed"===i){d=!0;break}}}if(d||u)for(const b of a.values())"pending"===b.status?b.status="skipped":"running"===b.status&&(b.status=d?"completed":"skipped");const v=[];for(const b of f){const e=a.get(b);e&&v.push(e)}for(const b of i){const e=a.get(b);e&&v.push(e)}let y=!1;for(let b=t;b<s;b++){const t=e[b],s=t;if(!(i4(t)||r4(t)||o4(t)||u4(t)||!1===s.shouldQuery||s.isMeta||s.isSynthetic)){y=!0;break}}return{cycleId:p,steps:v,sessionMode:r,isDone:d||u,anchorAfterUuid:c,anchorAfterTurnEnd:m,producedOutput:y,...void 0!==C&&{lastEventAt:C},...void 0!==o&&{runnerMilestone:o},...void 0!==l&&{blocked:l}}}function g4(e,t){for(let s=t-1;s>=0;s--){const t=e[s];if("assistant"===t.type)return!0;if("user"===t.type){const e=t;if(e.parent_tool_use_id)return!0;const s=e.message?.content;if(Array.isArray(s)&&s.some(e=>"tool_result"===e?.type))return!0}}return!1}function h4(e,t,s,n,a){const i=f4(e,t,s,n);if(void 0!==i.sessionMode||i.isDone){if("resume-cached"===i.sessionMode&&g4(e,t))return{...i,inferredResume:!0}}else if(a||g4(e,t))return{...i,inferredResume:!0};return i}function C4(e,t,s){for(let n=s;n<t.length;n++){const s=t[n];if(!i4(s))continue;const a=s.data.extra?.step_id;if(a)if("provision"===a){if(e.seenOtherStepSinceProvision){if(void 0!==e.lastBoundary){const s=h4(t,e.lastBoundary,n,e.priorCycleAnchors,e.settledCycles.length>0);e.settledCycles.push(s),void 0!==s.anchorAfterUuid&&e.priorCycleAnchors.add(s.anchorAfterUuid)}e.lastBoundary=n,e.seenOtherStepSinceProvision=!1}}else e.seenOtherStepSinceProvision=!0}}function x4(e,t){const s=h4(t,e.lastBoundary??0,t.length,e.priorCycleAnchors,e.settledCycles.length>0);return e.settledCycles.concat(s)}function v4(e,t){if(e.length!==t.length)return;const s=e.length-1;s>=0&&wT(e[s],t[s])&&(e[s]=t[s])}function y4(e){const t=m4();return C4(t,e,0),x4(t,e)}function b4(e){return e.filter((t,s)=>{const n=e[s+1];if(!n)return!0;var a;return!(void 0!==t.sessionMode&&("resume"===M4(a=t)&&a.isDone&&!k4(a))&&(e=>void 0!==e.sessionMode&&"resume"===M4(e))(n)&&(!t.producedOutput||n.anchorAfterUuid===t.anchorAfterUuid&&n.anchorAfterTurnEnd===t.anchorAfterTurnEnd))})}function k4(e){return void 0!==e.blocked||e.steps.some(e=>"failed"===e.status)}function w4(e){return void 0!==e.runnerMilestone||void 0!==e.blocked||e.steps.some(e=>"pending"!==e.status&&"skipped"!==e.status)}function M4(e){return!e?.inferredResume||void 0!==e.sessionMode&&"resume-cached"!==e.sessionMode?e?.sessionMode:"resume"}function _4(e,t,s,n){const a=function(e){switch(e){case"completed":case"failed":return"done";case"pending":case"skipped":return"todo";case"running":return"doing"}}(t.status);return i=t.id,n4.includes(i)?function(e,t,s,n,a,i){const r="resume"===n;switch(t){case"provision":return i?r?"done"===s?e.formatMessage({defaultMessage:"Reconnected to your environment",id:"WZ5iWcpCxd"}):"todo"===s?e.formatMessage({defaultMessage:"Reconnect to your environment",id:"zizmjJ4em8"}):e.formatMessage({defaultMessage:"Reconnecting to your environment",id:"oxroIkH6j2"}):"done"===s?e.formatMessage({defaultMessage:"Connected to your environment",id:"ifHpjNCwD1"}):"todo"===s?e.formatMessage({defaultMessage:"Connect to your environment",id:"miWfw45NFK"}):e.formatMessage({defaultMessage:"Connecting to your environment",id:"Y8dm3Snrdw"}):r?"done"===s?e.formatMessage({defaultMessage:"Resumed your cloud container",id:"cuoD6t/355"}):"todo"===s?e.formatMessage({defaultMessage:"Resume your cloud container",id:"j3SVA0/j3J"}):e.formatMessage({defaultMessage:"Resuming your cloud container",id:"5JiJpSujK6"}):"done"===s||"todo"===s?e.formatMessage({defaultMessage:"Set up a cloud container",id:"qesK7urwI+"}):e.formatMessage({defaultMessage:"Setting up a cloud container",id:"NBbndURnrI"});case"clone":{const t=Math.max(a,1);return r?"done"===s?e.formatMessage({defaultMessage:"{count, plural, one {Refreshed your repository} other {Refreshed your # repositories}}",id:"ljj3+l7r4j"},{count:t}):"todo"===s?e.formatMessage({defaultMessage:"{count, plural, one {Refresh your repository} other {Refresh your # repositories}}",id:"hf6gd7mSSw"},{count:t}):e.formatMessage({defaultMessage:"{count, plural, one {Refreshing your repository} other {Refreshing your # repositories}}",id:"TWF5zQdVcA"},{count:t}):"done"===s?e.formatMessage({defaultMessage:"{count, plural, one {Cloned repository} other {Cloned # repositories}}",id:"GBjGd8XuQ+"},{count:t}):"todo"===s?e.formatMessage({defaultMessage:"{count, plural, one {Clone repository} other {Clone # repositories}}",id:"plDeppMCM/"},{count:t}):e.formatMessage({defaultMessage:"{count, plural, one {Cloning repository} other {Cloning # repositories}}",id:"Dzs7nEsTAB"},{count:t})}case"setup_script":return"done"===s?e.formatMessage({defaultMessage:"Ran setup script",id:"Z4FEgCPQ+n"}):"todo"===s?e.formatMessage({defaultMessage:"Run setup script",id:"djdB9BpcTt"}):e.formatMessage({defaultMessage:"Running setup script",id:"hOM/1AjJPz"});case"start_cc":return"done"===s?e.formatMessage({defaultMessage:"Started Claude Code",id:"jRoMaQ/gM1"}):"todo"===s?e.formatMessage({defaultMessage:"Start Claude Code",id:"hRay+t0yTf"}):e.formatMessage({defaultMessage:"Starting Claude Code",id:"7KyqEeDvjo"})}}(e,t.id,a,s,t.details.length,n):t.backendLabel??t.id;var i}const j4=["api_model_not_found","api_model_blocklisted"],S4={enabled:!1,errorCategories:j4,errorRegex:void 0,fallbackModelIds:void 0},L4=AL({enabled:RL().default(S4.enabled),errorCategories:NL(IL()).nullish().transform(e=>e??[...j4]),errorRegex:IL().nullish().transform(e=>e??void 0),fallbackModelIds:NL(IL()).nullish().transform(e=>e??void 0)}).nullish().transform(e=>e??S4);function N4(){const t=Qa("cowork_model_not_found_retry_config",S4,L4);return e.useMemo(()=>{let e;if(t.errorRegex)try{e=new RegExp(t.errorRegex)}catch{e=void 0}return{enabled:t.enabled,errorCategories:t.errorCategories,compiledRegex:e,fallbackModelIds:t.fallbackModelIds}},[t])}const I4=[],T4={enabled:!1,errorCategories:I4,errorRegex:void 0,fallbackModelIds:void 0},A4=AL({enabled:RL().default(T4.enabled),errorCategories:NL(IL()).nullish().transform(e=>e??[...I4]),errorRegex:IL().nullish().transform(e=>e??void 0),fallbackModelIds:NL(IL()).nullish().transform(e=>e??void 0)}).nullish().transform(e=>e??T4);function E4(){const t=Qa("cowork_overage_model_switch_config",T4,A4);return e.useMemo(()=>{let e;if(t.errorRegex)try{e=new RegExp(t.errorRegex)}catch{e=void 0}return{enabled:t.enabled,errorCategories:t.errorCategories,compiledRegex:e,fallbackModelIds:t.fallbackModelIds}},[t])}function R4(e,t){return e.get(Fl(t))}function D4(e){return"memory"===e.operation?"read"!==e.fileOperation:"write"===e.operation||"edit"===e.operation||"create"===e.operation}function H4(e){if(!e?.content)return[];try{if(Array.isArray(e.content)){const t=e.content.filter(e=>"knowledge"===e.type&&"webpage_metadata"===e.metadata?.type);if(t.length>0)return t.map(e=>({title:e.title||"",url:e.url||"",siteDomain:e.metadata?.site_domain,faviconUrl:e.metadata?.favicon_url}))}let t="";if("string"==typeof e.content)t=e.content;else if(Array.isArray(e.content)){t=e.content.filter(e=>"text"===e.type).map(e=>e.text).join("\n")}return function(e){const t=e.indexOf("Links:");if(-1===t)return[];const s=e.slice(t+6).trim();if(!s.startsWith("["))return[];let n=0,a=-1,i=!1,r=!1;for(let o=0;o<s.length;o++){const e=s[o];if(r)r=!1;else if("\\"!==e)if('"'!==e){if(!i)if("["===e)n++;else if("]"===e&&(n--,0===n)){a=o+1;break}}else i=!i;else r=!0}if(-1===a)return[];try{const e=s.slice(0,a),t=JSON.parse(e);return Array.isArray(t)?t.filter(e=>"string"==typeof e?.url).map(e=>{let t;try{t=new URL(e.url).hostname}catch{}return{title:e.title||"",url:e.url,siteDomain:t}}):[]}catch{return[]}}(t)}catch{return[]}}const P4=/<\/?tool_use_error>/g,U4=/<pr-created>\s*(https?:\/\/[^\s<]+?)\s*<\/pr-created>/gi,O4=/(^|\n)<pr-created>/gi,F4=["system-reminder","task-notification","slack_context","uploaded_files","available-deferred-tools","new-diagnostics","critical_user_preferences_reminder","persisted-output","local-command-caveat","tick","goal","mcp-resource","mcp-resource-update","mcp-polling-update","teammate-message","channel-message","cross-session-message","launch-selected-element","connected_office_files","thinking","ide_opened_file","ide_selection","ide_diagnostics","browser_instruction","cell","cell_type","language","command-message","command-args","no-action-needed","comprehensive-mode-instructions","cu_window_hints","widget_context_hint","preview-annotation-context"].sort((e,t)=>t.length-e.length).join("|"),V4=new RegExp(`<(${F4})[^>]*>[\\s\\S]*?</\\1>\\s*`,"g"),z4=new RegExp(`(?:^|\\n)<(${F4})[^>\\n]*>`,"g");const Z4=/Full transcript available at:.*$/gm,B4=/^\s*Read the output file to retrieve the result:.*$/gm;function q4(e){V4.lastIndex=0;let t=e.replace(P4,"").replace(V4,"");return t!==e&&(Z4.lastIndex=0,t=t.replace(Z4,"")),B4.lastIndex=0,t=t.replace(B4,""),t.trim()}function W4(e){return function(e){let t,s;for(z4.lastIndex=0;s=z4.exec(e);){const n=s[1];if(t??={},(t[n]??=e.lastIndexOf(`</${n}>`))<z4.lastIndex)return e.slice(0,s.index)}return e}(q4(e).replace(U4,"$1").replace(O4,"$1")).trimEnd()}function $4(e){return/^\s*Read the output file to retrieve the result:\s/.test(e)}const G4=/^[A-Za-z]:[\\/]/;function K4(e){return e.startsWith("/")||G4.test(e)}function Y4(e,t){return K4(t)?t:e?`${e.replace(/[\\/]+$/,"")}/${t}`:void 0}function Q4(e){const t=K4(e),s=(e.match(/^([A-Za-z]:)(?=[\\/])/)?.[1]??"").toUpperCase(),n=s?e.slice(s.length):e,a=[];for(const i of n.split(/[\\/]+/))""!==i&&"."!==i&&(".."!==i?a.push(i):a.length>0&&".."!==a[a.length-1]?a.pop():t||a.push(".."));return(t?`${s}/`:"")+a.join("/")}function J4(e,t){return t&&("~"===e||e.startsWith("~/")||e.startsWith("~\\"))?t.replace(/[\\/]+$/,"")+e.slice(1):e}function X4(e,t){const s=Q4(e);if(!K4(s))return".."!==s&&!s.startsWith("../");if(!t)return!1;const n=Q4(t).replace(/[\\/]+$/,"");if(s===n)return!0;const a=s[n.length];return s.startsWith(n)&&"/"===a}function e7(e){return/^[\\/]{2}/.test(e)}function t7(e){return Vl(e)}const s7=/\.(mp4|webm|mov|m4v|ogv)$/i,n7=/\.(mp4|webm|mov)$/i,a7=/\.(mp3|m4a|aac|wav|flac|opus|ogg|oga)$/i;function i7(e){return a7.test(e)}function r7(e){return function(e){return s7.test(e)}(e)||i7(e)}const o7=/\.(png|jpe?g|gif|webp|avif)$/i,l7=/\.(html?|svg|pdf|mp4|webm|m4v|mov|ogv)$/i,c7=/\.(doc[xm]?|xls[xm]?|ppt[xm]?|od[tsp]|rtf|epub|mobi|pages|numbers|zip|t?gz|tar|bz2|xz|zst|7z|rar|jar|war|dmg|iso|deb|rpm|apk|msi|pkg|img|wasm|exe|dll|so(?:\.\d+)*|dylib|bin|class|pyc|o|a|db|sqlite3?|parquet|woff2?|ttf|otf|eot|pdf|mp4|webm|m4v|mov|ogv|avi|mkv|wmv|flv|mpe?g|m2ts|3gp|mp3|m4a|aac|flac|wav|ogg|oga|opus|aiff?|wma|midi?|ico|tiff?|heic|heif|jfif|psd|tga|dng|svgz)$/i;function d7(e){return e.split(/[\\/]/).pop()||e}function u7(e){return"object"==typeof e&&null!==e&&"path"in e&&"string"==typeof e.path&&"size"in e&&"number"==typeof e.size&&"isImage"in e&&"boolean"==typeof e.isImage&&(!("file_uuid"in e)||void 0===e.file_uuid||"string"==typeof e.file_uuid)}function m7(e){if("object"!=typeof e||null===e)return[];if(!("attachments"in e))return[];const t=e.attachments;return Array.isArray(t)?t.filter(u7):[]}const p7=120,f7="font-ui rounded-lg border-0.5 border-[hsl(var(--border-300)/0.25)] shadow-sm shadow-always-black/5 bg-bg-000 overflow-hidden transition-all",g7="hover:border-[hsl(var(--border-200)/0.5)] hover:shadow-always-black/10";function h7({previewUrl:s,downloadUrl:n,name:a}){const[i,r]=e.useState(!1),o=e.useRef(null),[l,c]=e.useState(s);return e.useEffect(()=>{if(!i||l===n)return;const e=new Image;return e.onload=()=>c(n),e.src=n,()=>{e.onload=null}},[i,l,n]),t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"group relative",children:[t.jsx("button",{type:"button",onClick:()=>r(!0),className:`${f7} ${g7} block cursor-zoom-in`,title:a,children:t.jsx("img",{ref:o,src:s,alt:a,className:"block h-auto w-auto max-h-[240px] max-w-[320px] object-contain"})}),t.jsx("a",{href:n,download:a,onClick:e=>e.stopPropagation(),"aria-label":`Download ${a}`,className:"absolute right-1.5 top-1.5 rounded-md bg-always-black/60 p-1 text-always-white opacity-0 transition-opacity hover:bg-always-black/80 focus-visible:opacity-100 group-hover:opacity-100 pointer-coarse:opacity-100",children:t.jsx(VR,{size:14})})]}),t.jsx(WB,{src:l,alt:a,isOpen:i,originRef:o,onClose:()=>r(!1)})]})}function C7({name:e,size:s,href:n,path:a,onOpen:i}){const r=function(e){const t=e.lastIndexOf(".");return t>0&&t<e.length-1?e.slice(t+1):""}(e),o=t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"h-[18px] self-start flex items-center px-1 border-0.5 border-[hsl(var(--border-300)/0.25)] shadow-sm rounded bg-bg-000/70",children:t.jsx("span",{className:"font-bold uppercase text-text-300 text-[9px]",children:r||"file"})}),t.jsxs("div",{className:"min-w-0",children:[t.jsx("p",{className:"text-xs text-text-100 break-words line-clamp-2",children:e}),t.jsx("p",{className:"uppercase text-text-300 text-[11px] leading-[13px]",children:(l=s,l<1024?`${l} B`:l<1048576?`${(l/1024).toFixed(1)} KB`:`${(l/1048576).toFixed(1)} MB`)})]})]});var l;const c=`${f7} flex flex-col justify-between gap-2.5 px-2.5 py-2 text-left`,d={width:p7,height:p7,minWidth:p7};return n?t.jsx("a",{href:n,download:e,style:d,className:`${c} ${g7} cursor-pointer`,title:e,children:o}):i?t.jsx("button",{type:"button",onClick:i,style:d,className:`${c} ${g7} cursor-pointer`,title:a,children:o}):t.jsx("div",{style:d,className:`${c} opacity-70`,title:e,children:o})}function x7({attachments:s,className:n,onOpenFile:a,renderLocalImage:i}){const{activeOrganization:r}=v(),o=r?.uuid;return 0===s.length?null:t.jsx("div",{className:`flex flex-wrap gap-2 ${n??""}`,children:s.map(s=>{const n=function(e){const t=Math.max(e.lastIndexOf("/"),e.lastIndexOf("\\"));return t<0?e:e.slice(t+1)}(s.path),r=s.file_uuid&&o?ZN(o,s.file_uuid):void 0,l=!s.isImage&&t7(s.path);return(s.isImage||l)&&!s.file_uuid&&i?t.jsx(e.Fragment,{children:i(s)},s.path):(s.isImage||l)&&s.file_uuid&&o&&r?t.jsx(h7,{previewUrl:l?r:BN(o,s.file_uuid),downloadUrl:r,name:n},s.path):t.jsx(C7,{name:n,size:s.size,path:s.path,href:r,onOpen:!s.file_uuid&&a?()=>a(s.path):void 0},s.path)})})}const v7=new Set(["TodoWrite","TaskCreate","TaskUpdate","TaskGet","TaskList","TaskStop"]);function y7(e){return"string"==typeof e&&v7.has(e)}function b7(e){return e&&"object"==typeof e?e:null}function k7(e){return"completed"===e?"completed":"in_progress"===e?"in_progress":"pending"}function w7(e,t){const s=e[t];return"string"==typeof s?s:void 0}function M7(e){const t=b7(b7(e)?.task);return t?w7(t,"id"):void 0}function _7(e,t,s,n,a){if("TodoWrite"===s){e.clear();const t=Array.isArray(a.todos)?a.todos:[];for(let s=0;s<t.length;s++){const n=b7(t[s]);if(!n)continue;const a=w7(n,"content")??w7(n,"text")??"";if(!a)continue;const i=w7(n,"id")??`todo-${s}`;e.set(i,{id:i,content:a,status:k7(n.status),activeForm:w7(n,"activeForm")})}}else if("TaskCreate"===s){const s=w7(a,"subject")??"";if(!s)return;const i=n||`task-${e.size}`;e.set(i,{id:i,content:s,status:"pending",activeForm:w7(a,"activeForm")}),n&&t.set(n,i)}else if("TaskUpdate"===s){const t=w7(a,"taskId");if(!t)return;const s=w7(a,"status");if("deleted"===s)return void e.delete(t);const n=e.get(t);if(!n)return;e.set(t,{id:t,content:w7(a,"subject")??n.content,status:s?k7(s):n.status,activeForm:w7(a,"activeForm")??n.activeForm})}}function j7(e,t){const{stopAtToolUseId:s,onTaskBlock:n}={},a=new Map,i=new Map;let r=!1;for(const o of e){if(r)break;if(!o||null!==(o.parent_tool_use_id??null))continue;const e="string"==typeof o.message?void 0:o.message?.content;if(!Array.isArray(e))continue;let t=0;for(const s of e){const e=b7(s);"tool_result"===e?.type&&i.has(w7(e,"tool_use_id")??"")&&t++}const l=1===t?M7(o.tool_use_result??o.toolUseResult):void 0;for(const o of e){if(r)break;const e=b7(o);if(e)if("tool_use"===e.type){const t=w7(e,"name"),o=w7(e,"id")??"",l=b7(e.input);t&&l&&_7(a,i,t,o,l),o&&n&&y7(t)&&n(o,Array.from(a.values())),s&&o===s&&(r=!0)}else if("tool_result"===e.type){const t=w7(e,"tool_use_id");if(!t)continue;const s=i.get(t);if(!s)continue;i.delete(t);const n=l??M7(e.content);if(!n||n===s)continue;if(!a.has(s))continue;const r=Array.from(a);a.clear();for(const[e,i]of r)e===s?a.set(n,{...i,id:n}):a.set(e,i)}}}return Array.from(a.values())}const S7="synthetic-reconnect-",L7="No response requested.";const N7={attachments:[],files:[],files_v2:[],sync_sources:[]};function I7(e){if("assistant"!==e.type)return!1;const t=e.message.content?.[0];return"tool_use"===t?.type&&("Task"===t.name||"Agent"===t.name)}function T7(e){const t=e.message.content;return"string"==typeof t?$4(t):!(!Array.isArray(t)||1!==t.length||"text"!==t[0].type||!("text"in t[0]))&&$4(t[0].text)}const A7=new Set(["[Request interrupted by user]","[Request interrupted by user for tool use]"]);function E7(e){const t=e.message.content;return"string"==typeof t?A7.has(t):Array.isArray(t)&&1===t.length&&"text"===t[0]?.type&&A7.has(t[0].text??"")}const R7="anthropic-skills:";function D7(e){return e.startsWith(R7)?e.slice(17):e}function H7(e){const t=e;return t.timestamp??t.created_at??""}function P7(e,t,s){return t.length>0||s.length>0||e.some(e=>"text"!==e.type||!!e.text?.trim())}function U7(e){const t=e;if(t.isCompactSummary||t.isVisibleInTranscriptOnly||t.isMeta||t.isSynthetic)return null;if(T7(e))return null;if(E7(e))return null;const{content:s,files:n,syncSources:a}=$7(e);return P7(s,n,a)?{content:s,sender:"human",uuid:e.uuid,created_at:H7(e),files_v2:n,sync_sources:a}:null}function O7(e){const t=e;if(t.isSynthetic||t.isMeta||t.isCompactSummary||t.isVisibleInTranscriptOnly)return null;if(T7(e))return null;if(E7(e))return null;const{content:s,files:n,syncSources:a}=$7(e),i=s.map(e=>"text"===e.type&&"text"in e&&"string"==typeof e.text?{...e,text:q7(e.text)}:e);return P7(i,n,a)?{content:i,sender:"human",uuid:e.uuid,created_at:H7(e),files_v2:n,sync_sources:a}:null}function F7(e){return e.replace(/\s*<cu_window_hints>[\s\S]*?<\/cu_window_hints>/g,"").replace(/\s*<widget_context_hint>[\s\S]*?<\/widget_context_hint>/g,"").replace(/\s*<system-reminder>[\s\S]*?<\/system-reminder>\s*/g,"")}function V7(e){return F7(function(e){return e.replace(/<uploaded_files>[\s\S]*?<\/uploaded_files>\s*/g,"")}(e)).replace(/<sync_sources>[\s\S]*?<\/sync_sources>\s*/g,"")}function z7(e){return e.replace(/<\/?cc-memory\b[^>]*>/g,"")}function Z7(e){if("text"===e.type){const t=z7(e.text);return t===e.text?e:{...e,text:t}}if("thinking"===e.type){const t=z7(e.thinking);return t===e.thinking?e:{...e,thinking:t}}return e}function B7(e,t){const s=F7(e),n=s.match(/<uploaded_files>[\s\S]*?<\/uploaded_files>/)?.[0],a=s.match(/<sync_sources>[\s\S]*?<\/sync_sources>/)?.[0];return[a,n,t].filter(Boolean).join("\n\n")}function q7(e){if(!e.includes("<command-name>")&&!e.includes("<command-message>"))return e;const t=e.match(/<command-name>([\s\S]*?)<\/command-name>/)?.[1]?.trim(),s=e.match(/<command-message>([\s\S]*?)<\/command-message>/)?.[1]?.trim(),n=e.match(/<command-args>([\s\S]*?)<\/command-args>/)?.[1]?.trim(),a=t||(s?`/${s}`:void 0);return a?[a,n].filter(Boolean).join(" "):e}function W7(e){const t=e.message.content;if("string"==typeof t)return[{type:"text",text:t}];return t.map(e=>"tool_result"===e.type?{...e,content:"string"==typeof e.content?[{type:"text",text:e.content}]:e.content}:e)}function $7(e){const t=Array.isArray(e.message.content)?e.message.content.filter(e=>"text"===e.type||"image"===e.type):[{type:"text",text:e.message.content??""}],s=t.find(e=>"text"===e.type),n=s&&"text"in s?s.text:"",a=function(e){const t=e.match(/<uploaded_files>([\s\S]*?)<\/uploaded_files>/);if(!t)return[];const s=t[1].matchAll(/<file>([\s\S]*?)<\/file>/g),n=[];for(const a of s){const e=a[1];if(!e)continue;const t=e.match(/<file_path>(.*?)<\/file_path>/),s=e.match(/<file_uuid>(.*?)<\/file_uuid>/),i=t?.[1]?.trim(),r=s?.[1]?.trim();if(!i)continue;const o=Gl(i);n.push({file_kind:Zt.WiggleVM,file_uuid:r||"",file_name:o,path:i,created_at:null})}return n}(n),i=function(e){const t=e.match(/<sync_sources>[\s\S]*?<refs>(.*?)<\/refs>/);if(!t?.[1])return[];try{return JSON.parse(decodeURIComponent(t[1]))}catch{return[]}}(n);return{content:t.map(e=>"text"===e.type&&e.text?{...e,text:V7(e.text)}:e),files:a,syncSources:i}}const G7=["present_files","launch_code_session","writing_draft_v0"];function K7(e,t){for(const s of G7)if(e.name===`mcp__cowork__${s}`)return{...e,name:s};if("AskUserQuestion"===e.name&&e.id){const s=t.get(e.id);if(s)return{...e,input:{...e.input,answers:s}}}return!e.is_mcp_app&&Ql(e.name)?{...e,is_mcp_app:!0}:e}function Y7(e,t,s,n){const a=`${S7}${e}`,i={serverUuid:s.uuid,errorCode:t,isLive:n},r={connectors:[{name:s.name,description:"",url:s.url,iconUrl:s.iconSrc,directoryUuid:s.uuid,connected:!1}],keywords:[],_authErrorOverride:i};return[{type:"tool_use",id:a,name:Jl,input:{uuids:[s.uuid]}},{type:"tool_result",tool_use_id:a,name:Jl,is_error:!1,content:[{type:"text",text:JSON.stringify(r)}]}]}function Q7(e,t){if(e){if("mcp__cowork__present_files"===t)return e.is_error?{...e,name:"present_files"}:{...e,name:"present_files",content:e.content.filter(e=>"text"===e.type&&"text"in e).map(e=>({type:"local_resource",file_path:e.text,name:Gl(e.text)}))};for(const s of G7)if(t===`mcp__cowork__${s}`)return{...e,name:s};return e}}function J7(e,t,s){const n=e.message.content??[],a=[];for(const i of n){if("tool_use"!==i.type||!i.id)continue;const e=t.get(i.id);if(!e)continue;const n=Array.isArray(e.content)?e.content:[{type:"text",text:e.content??""}],r=s.get(i.id);a.push({...e,content:n,name:i.name,...r?.structured_content&&{structured_content:r.structured_content},...r?.meta&&{meta:r.meta},...void 0!==r?.attachments&&{attachments:r.attachments},...void 0!==r?.display&&{display:r.display}})}return a}const X7={Read:"read",Write:"write",Edit:"edit"},e6=`mcp__${br}__`,t6="mcp__Claude_in_Chrome__",s6="plugin:documents:Documents",n6="mcp__plugin_documents_Documents__";function a6(e){return"object"==typeof e&&null!==e&&"type"in e&&"local_resource"===e.type&&"file_path"in e&&"string"==typeof e.file_path}function i6(e){return"object"==typeof e&&null!==e&&"type"in e&&"text"===e.type&&"text"in e&&"string"==typeof e.text}function r6(e){return function(e){return Array.isArray(e)}(e)?e.map(e=>"string"==typeof e?{type:"text",text:e}:e):"string"==typeof e?[{type:"text",text:e}]:[]}function o6(e){if("string"==typeof e)return e.trimStart().match(/^[A-Za-z0-9_-]+/)?.[0]}function l6(e){const t="string"==typeof e?e:Array.isArray(e)?e.find(e=>!!e&&"object"==typeof e&&"text"===e.type)?.text:void 0;if(t)try{return JSON.parse(t)}catch{return}}function c6(e){const t=l6(e);return Array.isArray(t?.written)?t.written.filter(e=>"string"==typeof e):[]}function d6(e){return l6(e)}const u6={mcp__workspace__bash:"Bash",mcp__workspace__web_fetch:"WebFetch"};function m6(e){return u6[e]??e}const p6=new Set(["cowork","skills","plugins","cowork-onboarding"]);function f6(e,t,s){if(!e)return;const n=m6(e),a=t?Gl(t):void 0,i=Xl(n);if(i)return function(e,t){switch(e){case"create":return t.formatMessage({defaultMessage:"Creating scheduled task\u2026",id:"g+ZYYIz+PI"});case"update":return t.formatMessage({defaultMessage:"Updating scheduled task\u2026",id:"OAy2QEicJo"});case"delete":return t.formatMessage({defaultMessage:"Deleting scheduled task\u2026",id:"UVSbJ26L96"});case"fire":return t.formatMessage({defaultMessage:"Running scheduled task\u2026",id:"s9c7E0H+C+"});case"list":return t.formatMessage({defaultMessage:"Listing scheduled tasks\u2026",id:"c2IO7tUs8k"});case"send_later":return t.formatMessage({defaultMessage:"Scheduling message\u2026",id:"fSkhOvsAsx"})}}(i,s);const r=ec(n),o=!(!n.startsWith("mcp__")&&void 0===r)&&qN(n,Ha(n)),l=tc(n);if(!o&&"remote-devices"===l?.serverName)return"project_memory_read"===l.toolName?s.formatMessage({defaultMessage:"Reading memory\u2026",id:"+jEQog5/Bd"}):"project_memory_write"===l.toolName?s.formatMessage({defaultMessage:"Updating memory\u2026",id:"8lL3FLt3SE"}):s.formatMessage({defaultMessage:"Working on your computer\u2026",id:"MnsnkhywEa"});if(!o){const e=r??n;if(sc(e))return s.formatMessage({defaultMessage:"Asking about your role\u2026",id:"HWfk1AvcK9"});if(nc(e))return s.formatMessage({defaultMessage:"Suggesting plugin\u2026",id:"e3lsLyYWzU"});if(ac(e))return s.formatMessage({defaultMessage:"Checking plugins\u2026",id:"cYvLjfbReg"});if(ic(e))return s.formatMessage({defaultMessage:"Searching plugins\u2026",id:"lNYPr5OhrK"});if(rc(e))return s.formatMessage({defaultMessage:"Suggesting skills\u2026",id:"z64rWJ9hFA"});if(oc(e))return s.formatMessage({defaultMessage:"Checking skills\u2026",id:"Ps2hQ4n0F7"});if(lc(e))return s.formatMessage({defaultMessage:"Searching skills\u2026",id:"FhOgZyhNfz"})}if(!o&&cc(r??n))return s.formatMessage({defaultMessage:"Checking connectors\u2026",id:"oWU7jA2KA5"});if(!o&&zl(r??n))return s.formatMessage({defaultMessage:"Suggesting connectors\u2026",id:"46PD27lw8u"});if(!o&&dc(r??n))return s.formatMessage({defaultMessage:"Searching connectors\u2026",id:"j9n1mLsg/K"});if((l&&p6.has(l.serverName)||void 0!==r)&&!o)return function(e,t){switch(e){case"mcp__cowork__request_cowork_directory":return t.formatMessage({defaultMessage:"Asking to access a folder\u2026",id:"5IguwNAPGN"});case"mcp__cowork__allow_cowork_file_delete":return t.formatMessage({defaultMessage:"Asking to delete a file\u2026",id:"X+AptNQCkt"});case"mcp__cowork__present_files":return t.formatMessage({defaultMessage:"Presenting files\u2026",id:"QUCca9SHLS"});case"mcp__cowork__launch_code_session":return t.formatMessage({defaultMessage:"Opening Claude Code\u2026",id:"tJCaL0Ftp2"});case"mcp__cowork__save_skill":return t.formatMessage({defaultMessage:"Saving skill\u2026",id:"UpizOntrJ0"});case"mcp__cowork__propose_skills":return t.formatMessage({defaultMessage:"Suggesting skills\u2026",id:"z64rWJ9hFA"});case"mcp__cowork__send_user_message":return t.formatMessage({defaultMessage:"Sending message\u2026",id:"TgVLerjuKg"});case"mcp__cowork__create_artifact":return t.formatMessage({defaultMessage:"Creating artifact\u2026",id:"CmYiQXt3Cx"});case"mcp__cowork__update_artifact":return t.formatMessage({defaultMessage:"Updating artifact\u2026",id:"vx/YPK80dk"});case"mcp__cowork__writing_draft_v0":return t.formatMessage({defaultMessage:"Writing draft\u2026",id:"fL9M6tbo9M"});case"mcp__cowork__list_artifacts":return t.formatMessage({defaultMessage:"Checking artifacts\u2026",id:"r0z3r6Y935"});default:return t.formatMessage({defaultMessage:"Working\u2026",id:"hsvAwBKpgC"})}}(r??n,s);if(n.startsWith("mcp__")){const e=function(e){const t=Ha(e);if(t)return uc(t.server.name);const s=tc(e);if(s)return uc(mc(s.serverName));const n=e.split("__");return n.length>=2&&n[1]?n[1].replace(/_/g," "):"connector"}(n);return s.formatMessage({defaultMessage:"Using {connectorName}\u2026",id:"Gi7sf5ObGK"},{connectorName:e})}if(a){const e=!!t&&Kl(t);switch(n){case"Read":return e?s.formatMessage({defaultMessage:"Reading memory\u2026",id:"+jEQog5/Bd"}):s.formatMessage({defaultMessage:"Reading {fileName}\u2026",id:"tc8YhXcfsS"},{fileName:a});case"Write":return e?s.formatMessage({defaultMessage:"Creating memory\u2026",id:"BNrlE9/X9N"}):s.formatMessage({defaultMessage:"Writing {fileName}\u2026",id:"xwsjkhC5V3"},{fileName:a});case"Edit":case"MultiEdit":return e?s.formatMessage({defaultMessage:"Editing memory\u2026",id:"Jab9736p5D"}):s.formatMessage({defaultMessage:"Editing {fileName}\u2026",id:"/cqjioq+55"},{fileName:a})}}switch(n){case"Glob":return s.formatMessage({defaultMessage:"Searching files\u2026",id:"XXURrYQoby"});case"Grep":return s.formatMessage({defaultMessage:"Finding matches\u2026",id:"n0of0+kpod"});case"Read":return s.formatMessage({defaultMessage:"Reading file\u2026",id:"r45bYPQCmm"});case"Write":return s.formatMessage({defaultMessage:"Writing file\u2026",id:"TUV3xGsSqw"});case"Edit":return s.formatMessage({defaultMessage:"Editing file\u2026",id:"ujiWwvxHNX"});case"Bash":return s.formatMessage({defaultMessage:"Running command\u2026",id:"jvQ4prePzH"});case"WebFetch":return s.formatMessage({defaultMessage:"Fetching page\u2026",id:"igjia97iEC"});case"WebSearch":return s.formatMessage({defaultMessage:"Searching the web\u2026",id:"CV12DkOyvZ"});case"Agent":case"Task":return s.formatMessage({defaultMessage:"Multitasking\u2026",id:"UAAInf775e"});case"TaskGet":return s.formatMessage({defaultMessage:"Reading task\u2026",id:"4CinI/h5gg"});case"TaskList":return s.formatMessage({defaultMessage:"Listing tasks\u2026",id:"eYDH+iE2hw"});case"TaskCreate":case"TaskUpdate":case"TaskStop":case"TodoWrite":return s.formatMessage({defaultMessage:"Updating tasks\u2026",id:"CiI6Z52HCq"});case"ToolSearch":return s.formatMessage({defaultMessage:"Finding tools\u2026",id:"XkBeJ4qyXp"});case"AskUserQuestion":return s.formatMessage({defaultMessage:"Asking a question\u2026",id:"sF/jsNaTZn"});case"Skill":return s.formatMessage({defaultMessage:"Using a skill\u2026",id:"9A1GGChPfi"});case"SendUserMessage":return s.formatMessage({defaultMessage:"Sending message\u2026",id:"TgVLerjuKg"});case"SendUserFile":return s.formatMessage({defaultMessage:"Presenting files\u2026",id:"QUCca9SHLS"});case"PushNotification":return s.formatMessage({defaultMessage:"Sending notification\u2026",id:"8eMfgbkZ+6"});case"BashOutput":return s.formatMessage({defaultMessage:"Checking command output\u2026",id:"HpGr3sqqPk"});case"KillBash":return s.formatMessage({defaultMessage:"Stopping command\u2026",id:"QGmoLENaS+"});case"LS":return s.formatMessage({defaultMessage:"Listing files\u2026",id:"ysTA7WqPF5"});case"MultiEdit":return s.formatMessage({defaultMessage:"Editing files\u2026",id:"1Xmvag1EzG"});case"NotebookEdit":return s.formatMessage({defaultMessage:"Editing notebook\u2026",id:"Di4TuBkw8m"});case"EnterPlanMode":return s.formatMessage({defaultMessage:"Making a plan\u2026",id:"m6yzPE1iFQ"});case"ExitPlanMode":return s.formatMessage({defaultMessage:"Proposing plan\u2026",id:"EmtqgpSPLT"});case"Workflow":return s.formatMessage({defaultMessage:"Running workflow\u2026",id:"y/Pw4ViwGE"});case"REPL":case"JavaScript":return s.formatMessage({defaultMessage:"Running code\u2026",id:"FEazi7H/Xn"});case"Tmux":return s.formatMessage({defaultMessage:"Running terminal\u2026",id:"hWinA1BM3i"});default:return s.formatMessage({defaultMessage:"Using {toolName}\u2026",id:"0ZtIccX+T2"},{toolName:n})}}const g6=new Set(["Read","Write","Edit","Bash"]);function h6(e,t){if(!e?.length)return;let s=-1;for(let i=e.length-1;i>=0;i--)if("tool_use"===e[i].type){s=i;break}if(s<0)return;if(s<e.length-1)return;const n=e[s],a=m6(n.name??"");if(g6.has(a)){let n=0;for(let t=s;t>=0;t--){const s=e[t];if("tool_use"!==s.type||m6(s.name??"")!==a)break;n++}if(n>1)return function(e,t,s){switch(e){case"Read":return s.formatMessage({defaultMessage:"{count, plural, one {Reading # file\u2026} other {Reading # files\u2026}}",id:"SZgI2LoEVd"},{count:t});case"Write":return s.formatMessage({defaultMessage:"{count, plural, one {Writing # file\u2026} other {Writing # files\u2026}}",id:"HhTXQgmM3R"},{count:t});case"Edit":return s.formatMessage({defaultMessage:"{count, plural, one {Editing # file\u2026} other {Editing # files\u2026}}",id:"YZXACcXzTz"},{count:t});case"Bash":return s.formatMessage({defaultMessage:"{count, plural, one {Running # command\u2026} other {Running # commands\u2026}}",id:"IzQEmX8KYb"},{count:t});default:return}}(a,n,t)}return f6(a,function(e){const t=e.input;if(!t||"object"!=typeof t)return;const s=t.file_path;return"string"==typeof s?s:void 0}(n),t)}function C6(e){return Array.isArray(e)&&e.length>0&&e.every(e=>!!e&&"tool_result"===e.type)}const x6=new Set(["control_cancel_request","control_request","control_response","env_manager_log","keep_alive","prompt_suggestion","rate_limit_event","tool_use_summary","system"]);function v6(e){if("string"==typeof e)return e;if(Array.isArray(e))for(const t of e)if(t&&"object"==typeof t&&"text"===t.type&&"string"==typeof t.text)return t.text}const y6=new Set(["async_launched","remote_launched","teammate_spawned"]);function b6(e){return!!(t=e)&&"object"==typeof t&&"string"==typeof e.status&&y6.has(e.status);var t}const k6=/\bmeta\s*=\s*\{[^}]*?\bname\s*:\s*['"]([^'"]+)['"]/;function w6(e){if("string"==typeof e.name&&e.name)return e.name;if("string"==typeof e.script){const t=e.script.slice(0,4096).match(k6);if(t)return t[1]}return"string"==typeof e.scriptPath&&e.scriptPath?e.scriptPath.split(/[\\/]/).pop()?.replace(/\.[^.]+$/,""):void 0}const M6=new Set(["[Request interrupted by user]","[Request interrupted by user for tool use]"]);function _6(e){if("system"!==e.type)return!1;const t=e.subtype;return"task_started"===t||"task_progress"===t||"task_notification"===t}function j6(e){return"system"===e.type&&"init"===e.subtype}function S6(e){if("system"!==e.type||"background_tasks_changed"!==e.subtype||"parent_tool_use_id"in e&&e.parent_tool_use_id)return;const t=e.tasks;if(!Array.isArray(t))return;const s=t,n=new Map;for(const a of s){if(!J6(a)||"string"!=typeof a.task_id)return;n.set(a.task_id,X6(a.task_type))}return n}const L6=/<(task|agent|bash)-notification>([\s\S]*?)<\/\1-notification>/g,N6=/^\s*<(task|agent|shell)-id>([^<]+)<\/\1-id>/,I6=/<status>([^<]+)<\/status>/,T6=/<summary>([^<]+)<\/summary>/,A6=/<result>([\s\S]*?)<\/result>/,E6=/<output-file>([^<]+)<\/output-file>/,R6=/<tool-use-id>([^<]+)<\/tool-use-id>/,D6=/<task-type>([^<]+)<\/task-type>/,H6=/<subagent_tokens>(\d+)<\/subagent_tokens>/,P6=/<tool_uses>(\d+)<\/tool_uses>/,U6=/<duration_ms>(\d+)<\/duration_ms>/,O6={bash:"local_bash",agent:"local_agent"},F6={Agent:"local_agent",Workflow:"local_workflow","Dynamic workflow":"local_workflow","Background command":"local_bash",Monitor:"local_bash","Remote task":"remote_agent"},V6=/^(Agent|Dynamic workflow|Workflow|Background command|Monitor|Remote task) "(.+?)" (?:completed|failed|was|stopped|stream|script|appears)/;function z6(e){const t=e?.match(V6);if(t)return{description:t[2],taskType:F6[t[1]]}}function Z6(e){return e.replaceAll("&lt;","<").replaceAll("&gt;",">").replaceAll("&amp;","&")}function B6(e){if(e&&"number"==typeof e.total_tokens&&"number"==typeof e.tool_uses&&"number"==typeof e.duration_ms)return{totalTokens:e.total_tokens,toolUses:e.tool_uses,durationMs:e.duration_ms}}function q6(e){return"running"===e||"completed"===e||"failed"===e||"stopped"===e?e:"killed"===e?"stopped":"completed"}function W6(e){const t=function(e){if("user"!==e.type)return"";const t=e.message?.content;return"string"==typeof t?t:Array.isArray(t)?t.map(e=>"string"==typeof e.text?e.text:"").join("\n"):""}(e);if(!t.includes("-notification>"))return[];const s=[];for(const n of t.matchAll(L6)){const e=n[1],t=n[2],a=t.match(N6)?.[2],i=t.match(I6)?.[1];if(!a||!i)continue;const r=q6(i),o=t.match(T6)?.[1],l=o?Z6(o):void 0,c=l?.match(V6),d=t.match(A6)?.[1],u=t.match(E6)?.[1],m=t.match(H6)?.[1],p=t.match(P6)?.[1],f=t.match(U6)?.[1];s.push({taskId:a,status:r,summary:l,result:d?Z6(d).trim():void 0,outputFile:u?Z6(u):void 0,toolUseId:t.match(R6)?.[1],usage:m&&p&&f?{totalTokens:Number(m),toolUses:Number(p),durationMs:Number(f)}:void 0,taskType:O6[e]??t.match(D6)?.[1]??(c?F6[c[1]]:void 0),description:c?.[2]})}return s}const $6=/(?:agentId|taskId|Task ID|with ID): ([a-z0-9][a-z0-9_-]*)/,G6=/^\s*Command running in background with ID: ([^\s.]+)\. Output is being written to: ([^\n]+)/;function K6(e){const t=e.slice(0,1024).match(G6);if(!t)return null;let s=t[2];const n=s.indexOf(". You will be notified");return-1!==n&&(s=s.slice(0,n)),s=s.trimEnd(),s.endsWith(".")&&(s=s.slice(0,-1)),{taskId:t[1],path:s}}const Y6=/^[a-z0-9][a-z0-9_-]*$/;function Q6(e,t){if(!Y6.test(t))return!1;if(e.includes("\0"))return!1;if(/^[\\/]{2}/.test(e))return!1;return!(!e.startsWith("/")&&!/^[A-Za-z]:[\\/]/.test(e)||/(^|[\\/])\.\.([\\/]|$)/.test(e))&&(e.endsWith(`/tasks/${t}.output`)||e.endsWith(`\\tasks\\${t}.output`))}function J6(e){return!!e&&"object"==typeof e}function X6(e){return"string"==typeof e&&e?e:void 0}function e8(e){return"string"==typeof e?e:Array.isArray(e)?e.map(e=>"string"==typeof e.text?e.text:"").join("\n"):""}function t8(e,t){return"Workflow"===e||"Agent"===e||"Task"===e||"Bash"===e&&!0===t.run_in_background}function s8(e,t,s){const n=e.id,a=e.name;if("string"!=typeof n||"string"!=typeof a)return null;const i=J6(e.input)?e.input:{};if(!t8(a,i))return null;const r={toolUseId:n,prompt:void 0,startedAt:t,confirmed:!1,taskId:void 0,outputFile:void 0,requestedBackground:!0===i.run_in_background,initEpoch:s,endedByLevel:!1};return"Workflow"===a?{...r,taskType:"local_workflow",description:w6(i)??n}:"Agent"===a||"Task"===a?{...r,taskType:"remote"===i.isolation?"remote_agent":"local_agent",description:X6(i.description)??n,prompt:X6(i.prompt)}:{...r,taskType:"local_bash",description:X6(i.description)??X6(i.command)??n,prompt:X6(i.command)}}function n8(e,t,s){if(!0===t.is_error)return;if(!("local_agent"!==e.taskType&&"remote_agent"!==e.taskType||e.requestedBackground||b6(s)))return;e.confirmed=!0,J6(s)&&(e.taskId=X6(s.agentId)??X6(s.agent_id)??X6(s.taskId)??X6(s.backgroundTaskId),e.outputFile=X6(s.outputFile));const n=e8(t.content);if("local_bash"!==e.taskType)return void(e.taskId??=n.match($6)?.[1]);const a=K6(n);e.taskId??=a?.taskId,a&&!e.outputFile&&a.taskId===e.taskId&&Q6(a.path,a.taskId)&&(e.outputFile=a.path)}function a8(e,t,s){if("assistant"!==t.type&&"user"!==t.type)return;if("parent_tool_use_id"in t&&t.parent_tool_use_id)return;const n=t.message?.content;if(!Array.isArray(n))return;if("assistant"===t.type){const a=c8(t);for(const t of n){if(!J6(t)||"tool_use"!==t.type)continue;const n=s8(t,a,s);n&&e.set(n.toolUseId,n)}return}const a=t.tool_use_result??t.toolUseResult;for(const i of n){if(!J6(i)||"tool_result"!==i.type)continue;const t="string"==typeof i.tool_use_id?e.get(i.tool_use_id):void 0;t&&n8(t,i,a)}}const i8=8e3;function r8(e){return e.length<=i8?e:`\u2026 (${e.length-i8} chars truncated)\n${e.slice(-8e3)}`}function o8(e,t){if("assistant"!==t.type&&"user"!==t.type)return;if("parent_tool_use_id"in t&&t.parent_tool_use_id)return;const s=t.message?.content;if(Array.isArray(s))if("assistant"!==t.type)for(const n of s){if(!J6(n)||"tool_result"!==n.type)continue;const t=n.tool_use_id;"string"==typeof t&&e.bashToolUseIds.has(t)&&e.textByToolUseId.set(t,!0===n.is_error?"":e8(n.content))}else for(const n of s){if(!J6(n)||"tool_use"!==n.type||"Bash"!==n.name||"string"!=typeof n.id)continue;e.bashToolUseIds.add(n.id);const t=J6(n.input)?n.input:{};if(!0===t.run_in_background)continue;const s=X6(t.description)??X6(t.command);if(s){const t=e.foregroundIdsByLabel.get(s)??[];t.push(n.id),e.foregroundIdsByLabel.set(s,t)}}}function l8(e,t,s){const n=(e,t)=>{if("workflow_agent"!==e.type||void 0!==e.startedAt)return e;const n="workflow_agent"===t?.type?t.startedAt:void 0;return void 0!==n?{...e,startedAt:n}:"start"===e.state?e:{...e,startedAt:s}};if(!e?.length)return t.map(e=>n(e,void 0));const a=new Map;for(const i of e)a.set(`${i.type}:${i.index}`,i);for(const i of t){const e=`${i.type}:${i.index}`;a.set(e,n(i,a.get(e)))}return Array.from(a.values())}function c8(e){const t=e,s=t.timestamp??t.created_at;if(!s)return;const n=Date.parse(s);return Number.isNaN(n)?void 0:n}function d8(e,t){if("assistant"!==t.type)return;if("parent_tool_use_id"in t&&t.parent_tool_use_id)return;const s=t.message?.content;if(Array.isArray(s))for(const n of s){if(!n||"object"!=typeof n||"tool_use"!==n.type||"Workflow"!==n.name)continue;const t=n.id,s=n.input;if("string"==typeof t&&s&&"object"==typeof s){const n=w6(s);n&&e.set(t,n)}}}function u8(){return{byId:new Map,workflowNames:new Map,launches:new Map,skipTranscriptTaskIds:new Set,sawTaskStarted:new Set,bashScrape:{bashToolUseIds:new Set,textByToolUseId:new Map,foregroundIdsByLabel:new Map},initEpoch:0,initTimestamps:[],lastSeenEpoch:new Map,levelTypesByTaskId:new Map}}function m8(e,t){let s=e.get(t);return s||(s={taskId:t,toolUseId:void 0,taskType:void 0,description:t,status:"running",usage:void 0,lastToolName:void 0,summary:void 0,prompt:void 0,result:void 0,outputFile:void 0,workflowProgress:void 0,index:e.size,startedAt:void 0,completedAt:void 0},e.set(t,s)),s}function p8(e,t,s){for(let n=s;n<t.length;n++){const s=t[n];if(d8(e.workflowNames,s),a8(e.launches,s,e.initEpoch),o8(e.bashScrape,s),"user"===s.type){if("parent_tool_use_id"in s&&s.parent_tool_use_id)continue;for(const t of W6(s)){const n=m8(e.byId,t.taskId);e.lastSeenEpoch.set(t.taskId,e.initEpoch),n.status=t.status,t.summary&&(n.summary=t.summary),t.result&&(n.result=t.result),t.outputFile&&Q6(t.outputFile,n.taskId)&&(n.outputFile=t.outputFile),t.usage&&(n.usage=t.usage),t.toolUseId&&(n.toolUseId??=t.toolUseId),!t.description||n.description!==n.taskId&&e.sawTaskStarted.has(n.taskId)||(n.description=t.description),t.taskType&&(n.taskType??=t.taskType),void 0===n.completedAt&&"running"!==t.status&&(n.completedAt=c8(s))}continue}if(j6(s)){if("parent_tool_use_id"in s&&s.parent_tool_use_id)continue;e.initEpoch+=1,e.initTimestamps[e.initEpoch]=c8(s);continue}const a=S6(s);if(a){h8(e,a,c8(s));continue}if(!_6(s))continue;if("spawned_session"===s.task_type){e.skipTranscriptTaskIds.add(s.task_id);continue}if(s.skip_transcript){e.skipTranscriptTaskIds.add(s.task_id);continue}if(e.skipTranscriptTaskIds.has(s.task_id))continue;const i=m8(e.byId,s.task_id);e.lastSeenEpoch.set(s.task_id,e.initEpoch),s.tool_use_id&&(i.toolUseId=s.tool_use_id);const r=c8(s);switch(s.subtype){case"task_started":e.sawTaskStarted.add(s.task_id),i.description=s.description,i.taskType=s.task_type,s.prompt&&(i.prompt=s.prompt),void 0===i.startedAt&&(i.startedAt=r);break;case"task_progress":void 0===i.startedAt&&(i.startedAt=r),i.description===i.taskId&&(i.description=s.description),i.usage=B6(s.usage)??i.usage,i.lastToolName=s.last_tool_name??i.lastToolName,s.summary&&(i.summary=s.summary),s.workflow_progress&&(i.workflowProgress=l8(i.workflowProgress,s.workflow_progress,r??Date.now()));break;case"task_notification":if(i.status=q6(s.status),void 0===i.completedAt&&"running"!==i.status&&(i.completedAt=r),s.summary){i.summary=s.summary;const t=z6(s.summary);t&&(i.description!==i.taskId&&e.sawTaskStarted.has(i.taskId)||(i.description=t.description),i.taskType??=t.taskType)}"string"==typeof s.output_file&&s.output_file&&Q6(s.output_file,i.taskId)&&(i.outputFile=s.output_file),i.usage=B6(s.usage)??i.usage}}}function f8(e){return"remote_agent"!==e}function g8(e){return void 0!==e&&f8(e)}function h8(e,t,s){for(const[a,i]of t)void 0!==i&&e.levelTypesByTaskId.set(a,i);const n=new Map;for(const a of e.launches.values())a.confirmed&&void 0!==a.taskId&&(n.set(a.taskId,a),!t.has(a.taskId)&&g8(a.taskType)&&(a.endedByLevel=!0));for(const a of e.byId.values()){if("running"!==a.status||t.has(a.taskId))continue;const i=(a.toolUseId?e.launches.get(a.toolUseId):void 0)??n.get(a.taskId);g8(a.taskType??e.levelTypesByTaskId.get(a.taskId)??i?.taskType)&&(a.status="stopped",a.completedAt=s,a.summary??="Ended in the background",a.lastToolName=void 0)}}function C8(e,t){const s=new Map;for(const[r,o]of e.byId)s.set(r,{...o});const n=t.settleAcrossInit?function(e,t){const s=new Set;if(0===e.initEpoch)return s;for(const n of t.values()){const t=e.lastSeenEpoch.get(n.taskId)??0;"running"!==n.status||t>=e.initEpoch||!f8(n.taskType)||(n.status="stopped",n.completedAt=e.initTimestamps[t+1],n.summary??="Ended when the CLI session restarted",n.lastToolName=void 0,s.add(n.taskId))}return s}(e,s):void 0,a=new Map;for(const r of s.values())r.toolUseId&&!a.has(r.toolUseId)&&a.set(r.toolUseId,r);for(const r of e.launches.values()){if(!r.confirmed)continue;const i=(r.taskId?s.get(r.taskId):void 0)??a.get(r.toolUseId);if(i){const t=e.sawTaskStarted.has(i.taskId);i.toolUseId??=r.toolUseId,i.description!==i.taskId&&(t||"running"!==i.status&&void 0!==z6(i.summary))||r.description===r.toolUseId||(i.description=r.description),i.taskType??=r.taskType,t||void 0===r.startedAt?i.startedAt??=r.startedAt:i.startedAt=r.startedAt,i.prompt??=r.prompt,r.outputFile&&!n?.has(i.taskId)&&Q6(r.outputFile,i.taskId)&&(i.outputFile??=r.outputFile);continue}if(!t.presumeRunningFromToolCalls)continue;if(t.settleAcrossInit&&r.initEpoch<e.initEpoch&&f8(r.taskType))continue;if(r.endedByLevel)continue;if("local_bash"===r.taskType&&void 0===r.taskId)continue;const o=m8(s,r.taskId??r.toolUseId);o.toolUseId=r.toolUseId,o.taskType=r.taskType,o.description=r.description,o.prompt=r.prompt,r.outputFile&&Q6(r.outputFile,o.taskId)&&(o.outputFile=r.outputFile),o.startedAt=r.startedAt}const i=t.enrichBashOutput?Array.from(s.values()).filter(e=>"local_bash"===e.taskType&&void 0===e.result&&!e.outputFile&&!n?.has(e.taskId)):[];if(i.length>0){const t=new Map;for(const i of e.launches.values())i.taskId&&t.set(i.taskId,i);const{bashToolUseIds:s,textByToolUseId:n,foregroundIdsByLabel:a}=e.bashScrape;for(const r of i){const i=(r.toolUseId?e.launches.get(r.toolUseId):void 0)??t.get(r.taskId);if(r.prompt??=i?.prompt,i?.confirmed&&i.outputFile&&Q6(i.outputFile,r.taskId)){r.outputFile=i.outputFile;continue}let o=r.toolUseId;if(!o&&"running"!==r.status){const e=r.description!==r.taskId?a.get(r.description):void 0;if(1!==e?.length){r.result="";continue}o=e[0],r.toolUseId=o}const l=o&&s.has(o)?n.get(o):void 0;if(void 0===l)continue;const c=K6(l);c&&c.taskId===r.taskId?Q6(c.path,r.taskId)?r.outputFile=c.path:"running"!==r.status&&(r.result=""):"running"!==r.status&&(r.result=M6.has(l.trim())?"":r8(l))}}for(const r of s.values())if(r.toolUseId){const t=e.workflowNames.get(r.toolUseId);t&&(r.name=t)}for(const r of s.values())void 0===r.taskType&&r.workflowProgress?.length&&(r.taskType="local_workflow");for(const r of s.values())"running"!==r.status&&y8(r);return Array.from(s.values())}function x8(e,t){const s=Math.min(e.length,t.length);for(let n=0;n<s;n++){const s=e[n],a=t[n];s.taskId===a.taskId&&wT(s,a)&&(e[n]=a)}}function v8(e,t){let s=!1;const n=e.map(e=>"workflow_agent"!==e.type||"progress"!==e.state?e:(s=!0,{...e,state:"error",error:e.error??("stopped"===t?"Stopped before completion":"Workflow ended before completion")}));return s?n:e}function y8(e){if(!e.workflowProgress?.length)return;const t=v8(e.workflowProgress,e.status);t!==e.workflowProgress&&(e.workflowProgress=t)}function b8(e){return 0===e.length?[]:function(e,t){const s=u8();return p8(s,e,0),C8(s,{presumeRunningFromToolCalls:!0===t?.presumeRunningFromToolCalls,enrichBashOutput:!1!==t?.enrichBashOutput,settleAcrossInit:!0===t?.settleAcrossInit})}(e,{enrichBashOutput:!1}).filter(e=>"local_workflow"===e.taskType||(e.workflowProgress?.length??0)>0)}function k8(t){const s=JS(),n=t.messages,a=t.durableMessages??t.messages,i=t.pendingMessages,r=fc(t.sessionId),o=e.useMemo(()=>i?.some(e=>e.uuid&&!r.has(e.uuid))??!1,[i,r]),l="local_agent_mode"===t.type?t.sdkMcpStatuses:void 0,c=e.useMemo(()=>({lastInitialMessage:t.initialMessages?.at(-1),lastMessage:t.messages?.at(-1),lastStreamedMessage:t.streamedMessages?.at(-1),lastMessageTime:t.lastMessageTime,connectionState:t.connectionState,sdkMcpStatuses:l,sessionId:t.sessionId,session:t.sessionData,initialMessages:t.initialMessages,streamedMessages:t.streamedMessages}),[t.initialMessages,t.messages,t.streamedMessages,t.lastMessageTime,t.connectionState,t.sessionId,t.sessionData,l]),d=vr(),u=gc(),m=y(t4),p=N4(),f=p.enabled?p.compiledRegex:void 0,g=E4(),h=g.enabled?g.compiledRegex:void 0,C=Ia(e=>e.remoteServers),x=Ia(e=>e.remoteTools),v=e.useRef(new Set),b=e.useRef(new Map),M=e.useMemo(()=>{if(!n)return[];const e=function(e,t,s={}){const n=[],a={},i=new Map;for(const u of e)if("user"===u.type&&Array.isArray(u.message.content))for(const e of u.message.content)if("tool_result"===e.type){const t="string"==typeof e.content?{...e,content:[{type:"text",text:e.content}]}:e;i.set(e.tool_use_id,t)}const r=new Map;for(const u of e)if("user"===u.type){const e=u;if(e.tool_use_result?.answers){const t=e.message?.content?.find(e=>"tool_result"===e.type&&e.tool_use_id);t?.tool_use_id&&r.set(t.tool_use_id,e.tool_use_result.answers)}}const o=new Map;for(const u of e)if("user"===u.type){const e=u,t=e.tool_use_result?.structuredContent??e.mcpMeta?.structuredContent,s=e.tool_use_result?._meta??e.mcpMeta?._meta,n=e.tool_use_result?.attachments??e.toolUseResult?.attachments,a=e.tool_use_result?.display??e.toolUseResult?.display;if(t||s||n||void 0!==a){const i=Array.isArray(e.message?.content)?e.message.content.find(e=>"tool_result"===e?.type&&e?.tool_use_id):void 0;i?.tool_use_id&&o.set(i.tool_use_id,{...t&&{structured_content:t},...s&&{meta:s},...void 0!==n&&{attachments:n},...void 0!==a&&{display:a}})}}const l=new Set,c=new Map;for(const u of e)if("tool_use_summary"===u.type){const e=u,t=e.preceding_tool_use_ids[e.preceding_tool_use_ids.length-1];t&&c.set(t,{summary:e.summary,preceding_tool_use_ids:e.preceding_tool_use_ids})}let d=!1;for(const[u,m]of e.entries()){if("user"===m.type&&m.parent_tool_use_id){const e=a[m.parent_tool_use_id],t=W7(m);if(e){for(const s of t){const t="tool_result"===s.type&&"tool_use_id"in s?o.get(s.tool_use_id):void 0;e.content?.push({...s,...t?.meta&&{meta:t.meta},...t?.structured_content&&{structured_content:t.structured_content},...void 0!==t?.attachments&&{attachments:t.attachments},...void 0!==t?.display&&{display:t.display},_isSubagentBlock:!0,_parentToolUseId:m.parent_tool_use_id})}continue}k.warn(w.LOCAL_SESSION,"Subagent parent not found for user message - possible out of order processing",{parentToolUseId:m.parent_tool_use_id,uuid:m.uuid});continue}if("user"===m.type){{const e=m.message.content,t="string"==typeof e?e:1===e?.length&&"text"===e[0]?.type?e[0].text:null,s=t?.match(/^<local-command-std(?:out|err)>([\s\S]*)<\/local-command-std(?:out|err)>$/);if(s){n.push({index:u,content:[{type:"text",text:s[1].trim()}],sender:"assistant",uuid:m.uuid,created_at:H7(m),...N7}),d=!1;continue}}const e=s.pluginsEnabled?O7(m):U7(m);if(!e)continue;l.clear(),n.push({index:u,...N7,...e})}else{if("assistant"!==m.type){if(["result","system","env_manager_log","tool_use_summary"].includes(m.type))continue;k.warn(w.LOCAL_SESSION,"unknown sdk message type:",m.type);continue}{const e=m.message.id;if(I7(m)){const t=(m.message.content??[]).flatMap(e=>"tool_use"!==e.type||"Task"!==e.name&&"Agent"!==e.name?[]:[e.id]),s=[];for(const e of m.message.content??[])if(s.push(Z7(e)),"tool_use"===e.type&&e.id){const t=i.get(e.id);t&&s.push(t);const n=c.get(e.id);n&&s.push({type:"tool_use_summary",summary:n.summary,preceding_tool_use_ids:n.preceding_tool_use_ids})}if(m.parent_tool_use_id){const n=a[m.parent_tool_use_id];if(n){e&&(n.apiMessageIds??=[]).push(e);for(const e of s)n.content?.push({...e,_isSubagentBlock:!0,_parentToolUseId:m.parent_tool_use_id});for(const e of t)a[e]=n;continue}}const r=n[n.length-1];let o;"assistant"===r?.sender&&r.content?(r.content.push(...s),o=r):(o={index:u,content:s,sender:"assistant",uuid:m.uuid,created_at:H7(m),...N7},n.push(o)),d=!0,e&&(o.apiMessageIds??=[]).push(e);for(const e of t)e in a?k.error(w.LOCAL_SESSION,"Duplicate toolId in subagentMessageById - keeping first occurrence",{toolId:e,uuid:m.uuid}):a[e]=o;continue}if(m.parent_tool_use_id){const t=a[m.parent_tool_use_id],s=m.message.content??[];if(t){e&&(t.apiMessageIds??=[]).push(e);for(const e of s)t.content?.push({...Z7(e),_isSubagentBlock:!0,_parentToolUseId:m.parent_tool_use_id});continue}}const t=J7(m,i,o),p=new Map;for(const s of t)p.set(s.tool_use_id,s);const f=m.message.content??[],g=!m.parent_tool_use_id&&"refusal"===m.message.stop_reason,h=m.error,C=s.modelNotFoundErrorRegex,x=n.length>0&&!!h&&("model_not_found"===h||!!C&&f.some(e=>"text"===e.type&&C.test(e.text))),v=s.overageErrorRegex,y=n.length>0&&!!h&&!!v&&f.some(e=>"text"===e.type&&v.test(e.text)),b=[];for(const n of f)if("tool_use"===n.type){if("mcp__cowork__send_user_message"===n.name||"SendUserMessage"===n.name){const e=n.input?.message;"string"==typeof e&&b.push({type:"text",text:z7(e)});continue}if("mcp__cowork__mark_task_complete"===n.name)continue;if(zl(n.name)&&!n.id?.startsWith(S7)){const e=n.input?.uuids;if(Array.isArray(e)&&e.some(e=>l.has(e)))continue}const e=K7(n,r);if(b.push(e),n.id){const e=Q7(p.get(n.id),n.name);e&&b.push(e);const t=o.get(n.id)?.meta?.anthropic_error_code,a="string"==typeof t?t:void 0;if(s.syntheticReconnectEnabled&&Zl(a)){const e=Ha(n.name);if(e&&"remote"===e.server.type&&!l.has(e.server.uuid)){l.add(e.server.uuid);const t=void 0!==m.receivedStreamAt,i=s.reportedAuthErrorBlockIds;t&&i&&!i.has(n.id)&&(i.add(n.id),Bl("code.connector_auth_error",{attributes:{error_code:a,server_uuid:e.server.uuid}})),b.push(...Y7(n.id,a,e.server,t))}}const i=c.get(n.id);i&&b.push({type:"tool_use_summary",summary:i.summary,preceding_tool_use_ids:i.preceding_tool_use_ids})}}else{if("text"===n.type&&n.text===L7)continue;if("text"===n.type&&(g||x||y))continue;b.push(Z7(n))}if(0===b.length)continue;const M=n[n.length-1];"assistant"!==M?.sender||d?n.push({index:u,content:b,sender:"assistant",uuid:m.uuid,created_at:H7(m),apiMessageIds:e?[e]:void 0,...N7}):((M.content??=[]).push(...b),e&&(M.apiMessageIds??=[]).push(e)),d=b.some(e=>"tool_use"===e.type&&("Task"===e.name||"Agent"===e.name))}}}for(const[u,m]of t.entries()){const{content:e,files:t,syncSources:a}=$7(m);e.length&&n.push({index:-1-u,content:e,sender:"human",uuid:m.uuid,created_at:s.failedPendingUuids?.has(m.uuid)?m.timestamp??"":"",pending:!0,sendFailed:s.failedPendingUuids?.has(m.uuid)||void 0,...N7,files_v2:t,sync_sources:a})}return n}(n,i,{pluginsEnabled:!!d,syntheticReconnectEnabled:u,reportedAuthErrorBlockIds:v.current,failedPendingUuids:r,modelNotFoundErrorRegex:f,overageErrorRegex:h}),t=b.current;for(let s=0;s<e.length;s++){const n=t.get(e[s].uuid);n&&wT(e[s],n)&&(e[s]=n)}return e},[n,i,r,d,u,f,h,C,x]);e.useEffect(()=>{b.current=new Map(M.map(e=>[e.uuid,e]))},[M]);const _="local_agent_mode"===t.type?t.initializationStatus:null,j="local_agent_mode"===t.type?t.agentActivity:null,S=t.isSessionRunning,L=e.useMemo(()=>S?function(e,t){if(e?.length){for(let t=e.length-1;t>=0;t--){const s=e[t].type;if(!x6.has(s)){if("result"===s)return;break}}for(let s=e.length-1;s>=0;s--){const n=e[s];if(!n.parent_tool_use_id){if("assistant"===n.type){const e="string"==typeof n.message?void 0:n.message?.content;return Array.isArray(e)?h6(e,t):void 0}if("user"===n.type){if("string"!=typeof n.message&&C6(n.message?.content))continue;return}}}}}(n,s):void 0,[n,s,S,C,x]),N=e.useMemo(()=>_||!S||o?null:function(e){let t,s,n=!1;for(const a of e){if("assistant"===a.type||"user"===a.type){"assistant"===a.type&&(n=!0),s=void 0,t=void 0;continue}if("env_manager_log"!==a.type)continue;const e=a.data.extra;e?.session_mode&&(t=e.session_mode),e?.step_id&&e.step_status&&"skipped"!==e.step_status&&(s={id:e.step_id,status:e.step_status,label:e.step_label})}return s?{...s,sessionMode:M4({sessionMode:t,inferredResume:n})}:void 0}(n),[_,S,o,n]),I=e.useMemo(()=>!(!_||_.isComplete)||(!!N||(!!L||(!(!m||_||"thinking"!==j?.activity)||!(j||!S)))),[L,_,N,j,S,m]),T=e.useMemo(()=>{if(_&&!_.isComplete)return _.message;if(!_){const e=N;if(e)return"failed"===e.status?s.formatMessage({defaultMessage:"Couldn't set up this task",id:"T1mr5KlBFt"}):"start_cc"===e.id&&"completed"===e.status?s.formatMessage({defaultMessage:"Working on it\u2026",id:"85CetnuNEf"}):function(e,t,s){const n="resume"===s;if("provision"===t.id){if(n)switch(t.status){case"completed":case"failed":return e.formatMessage({defaultMessage:"Task resumed",id:"fqAqWnF85q"});case"running":return e.formatMessage({defaultMessage:"Picking up where you left off\u2026",id:"pic3zV3Q9y"})}switch(t.status){case"completed":case"failed":return e.formatMessage({defaultMessage:"Workspace ready",id:"zKz/fyd38X"});case"running":return e.formatMessage({defaultMessage:"Setting up your workspace\u2026",id:"s7H4TjW2PX"})}}return"start_cc"===t.id&&"running"===t.status?e.formatMessage({defaultMessage:"Starting Claude\u2026",id:"0sJjwzeMC8"}):_4(e,t,s,!1)}(s,{id:e.id,status:"started"===e.status?"running":e.status,backendLabel:e.label,details:[]},e.sessionMode)}if(L)return L;const e=function(e,t){if(e)switch(e.activity){case"thinking":return t.formatMessage({defaultMessage:"Thinking\u2026",id:"P1QHV0AhYD"});case"writing":return t.formatMessage({defaultMessage:"Writing\u2026",id:"Kd68snacT9"});case"tool_use":return f6(e.toolName,e.filePath,t);case"idle":return}}(j,s);return e||(S?s.formatMessage({defaultMessage:"Working on it\u2026",id:"85CetnuNEf"}):void 0)},[_,N,j,S,L,s]),A=e.useMemo(()=>{if(!n)return[];for(let e=n.length-1;e>=0;e--){const t=n[e];if("system"===t.type&&"init"===t.subtype)return t.mcp_servers}return[]},[n]),E=e.useMemo(()=>{if("local_agent_mode"===t.type)return t.isSessionRunning;if(o)return!0;if(T)return!0;const e=(n??[]).filter(e=>!x6.has(e.type));if(!e.length)return!1;const s=e[e.length-1];return"result"!==s?.type},[t.type,t.isSessionRunning,n,T,o]),R=e.useMemo(()=>function(e){return j7(e).map(e=>({content:e.content,status:e.status,activeForm:e.activeForm??""}))}(n),[n]),D=e.useMemo(()=>b8(n),[n]),H=e.useMemo(()=>function(e){if(0===e.length)return[];const t=new Map;for(const n of e){if("user"!==n.type)continue;const e=n.message?.content;if(Array.isArray(e))for(const s of e)s&&"object"==typeof s&&"tool_result"===s.type&&"string"==typeof s.tool_use_id&&t.set(s.tool_use_id,s)}const s=new Map;for(const n of e){if("assistant"!==n.type)continue;if("parent_tool_use_id"in n&&n.parent_tool_use_id)continue;const e=n.message?.content;if(Array.isArray(e))for(const n of e){if(!n||"object"!=typeof n||"tool_use"!==n.type)continue;const e=n,a=t.get(e.id);if(!a||a.is_error)continue;if(pc(e.name,"delete_trigger")||pc(e.name,"fire_trigger")){const t=e.input;"string"==typeof t?.trigger_id&&s.delete(t.trigger_id);continue}if(!pc(e.name,"send_later"))continue;const i=v6(a.content);if(!i)continue;let r;try{r=JSON.parse(i)}catch{continue}if("string"!=typeof r.trigger_id||"string"!=typeof r.fire_at)continue;const o=new Date(r.fire_at);if(Number.isNaN(o.getTime()))continue;const l=e.input;s.set(r.trigger_id,{triggerId:r.trigger_id,fireAt:o,message:"string"==typeof l?.message?l.message:"",toolUseId:e.id})}}return Array.from(s.values()).sort((e,t)=>e.fireAt.getTime()-t.fireAt.getTime())}(a),[a]),P="local_agent_mode"===t.type?t.fsDetectedFiles:void 0,U=e.useMemo(()=>{if(!P||0===P.size)return;let e=0;for(const t of P.values())t.timestamp>e&&(e=t.timestamp);return e},[P]),{data:O}=hc(),{data:F}=lr(),V=y("cowork_argonaut_main"),{data:z}=Cc(),Z=V?z:void 0,B=e.useMemo(()=>{const e=[...O],t=new Set(O.map(e=>e.name));if(F?.skills)for(const s of F.skills)s.enabled&&!t.has(s.skillName)&&e.push({name:s.skillName,type:"skill"});return e},[O,F]),q=e.useMemo(()=>{const e=function(e,t,s){const n=new Map,a=new Map;for(const m of e)if("user"===m.type&&Array.isArray(m.message.content)){const e=m,t=m7(e.tool_use_result??e.toolUseResult);for(const s of m.message.content)"tool_result"===s.type&&s.tool_use_id&&(n.set(s.tool_use_id,{isError:s.is_error,content:s.content}),t.length>0&&a.set(s.tool_use_id,t))}const i=new Set,r=new Set;for(const m of e)if("assistant"===m.type&&Array.isArray(m.message.content))for(const e of m.message.content)if("tool_use"===e.type&&"Skill"===e.name){const t=e.input;t?.skill&&(i.add(t.skill),i.add(D7(t.skill)),r.add(t.skill),r.add(ql(t.skill)))}const o=t?new Map(t.map(e=>[e.name,e.type])):void 0,l=[];for(const m of e){if("user"!==m.type)continue;let e;if("string"==typeof m.message.content)e=m.message.content;else if(Array.isArray(m.message.content)){const t=m.message.content.find(e=>"text"===e.type&&"string"==typeof e.text);e=t?.text}if(!e)continue;const t=e.trim();if(!/^\/[a-zA-Z]/.test(t))continue;const s=D7(t.split(/\s/)[0].slice(1));if(!s)continue;const n=o?.get(s);if(o&&!n)continue;const a=ql(s),i=a!==s;l.push({name:s,pluginName:i?Wl(s):void 0,itemType:n,timestamp:m.receivedStreamAt,uuid:m.uuid??""}),n&&"skill"!==n||(r.add(s),r.add(a))}const c=e.reduce((e,t)=>{if("assistant"===t.type){const i=t.message.content;if(Array.isArray(i))for(const o of i)if("tool_use"===o.type){if(o.name in X7){const s=o.input;if(s?.file_path){if("Read"===o.name&&/[/\\]SKILL\.md$/i.test(s.file_path)){const e=$l(s.file_path),t=e[e.length-2];if(t&&r.has(t))continue}const n=X7[o.name],a={id:o.id,filePath:s.file_path,fileName:Gl(s.file_path),timestamp:t.receivedStreamAt,openWith:{via:"path"}};e.push(Kl(s.file_path)?{...a,operation:"memory",fileOperation:n}:{...a,operation:n})}continue}if("Grep"===o.name||"Glob"===o.name){const s=o.input,n=s?.path?Gl(s.path):"";s?.path&&Kl(s.path)&&/\.md$/i.test(n)&&e.push({id:o.id,filePath:s.path,fileName:n,timestamp:t.receivedStreamAt,operation:"memory",fileOperation:"read",openWith:{via:"path"}});continue}if("Skill"===o.name){const s=o.input;if(s?.skill){const n=D7(s.skill),a=ql(n),i=a!==n;e.push({id:o.id,filePath:`skill://${n}`,fileName:a,operation:"skill_invoked",skillName:n,pluginName:i?Wl(n):void 0,timestamp:t.receivedStreamAt,openWith:{via:"none"}})}continue}if("WebSearch"===o.name){const s=o.input,a=n.get(o.id),i=a?H4({content:a.content}):[];e.push({id:o.id,filePath:`web_search://${o.id}`,fileName:s?.query??"Web search",operation:"web_search",timestamp:t.receivedStreamAt,searchQuery:s?.query??"",searchResults:i,isError:a?.isError,openWith:{via:"none"}});continue}if("present_files"===o.name||"mcp__cowork__present_files"===o.name){const s=n.get(o.id);if(s?.isError)continue;if(s?.content&&Array.isArray(s.content))for(const n of s.content)a6(n)&&e.push({id:`${o.id}-${n.file_path}`,filePath:n.file_path,fileName:Gl(n.file_path),operation:"create",timestamp:t.receivedStreamAt,openWith:{via:"path"}}),i6(n)&&e.push({id:`${o.id}-${n.text}`,filePath:n.text,fileName:Gl(n.text),operation:"create",timestamp:t.receivedStreamAt,openWith:{via:"path"}});continue}if("Projects"===o.name){const s=o.input,a={project_read:"read",project_write:"write",project_delete:"delete"},i=s?.method?a[s.method]:void 0;if(i&&s?.path){const a=d6(n.get(o.id)?.content),r=a?.path??s.path;e.push({id:o.id,filePath:`project://${r}`,fileName:Gl(r),operation:"project_file",fileOperation:i,docUuid:"string"==typeof a?.doc_uuid?a.doc_uuid:void 0,localPath:"string"==typeof a?.local_path?a.local_path:void 0,timestamp:t.receivedStreamAt,openWith:a?.doc_uuid?{via:"project-doc",docUuid:a.doc_uuid}:{via:"none"}})}continue}if("mcp__remote-devices__device_commit_files"===o.name||"device_commit_files"===o.name){const s=c6(n.get(o.id)?.content),a=o.input,i=new Map((Array.isArray(a?.files)?a.files:[]).flatMap(e=>e?.devicePath?[[e.devicePath,e]]:[]));for(const n of s){const s=i.get(n);e.push({id:`${o.id}-${n}`,filePath:n,fileName:Gl(n),operation:"device_commit",stagedPath:s?.stagedPath,fileUuid:s?.fileUuid,timestamp:t.receivedStreamAt,openWith:{via:"none"}})}continue}if("SendUserFile"===o.name){const s=n.get(o.id);if(s?.isError)continue;const i=a.get(o.id);if(i)for(const n of i)e.push({id:`${o.id}-${n.path}`,filePath:n.path,fileName:Gl(n.path),operation:"create",fileUuid:n.file_uuid,timestamp:t.receivedStreamAt,openWith:n.file_uuid?{via:"uuid",uuid:n.file_uuid}:{via:"path"}});continue}if("Bash"===o.name&&s?.size){const n=o.input,a=o6(n?.command),i=a?s.get(a):void 0;i&&e.push({id:o.id,filePath:`cli://${i.pluginId}/${i.cliName}`,fileName:i.cliDisplayName,operation:"cli_tool",cliName:i.cliName,cliDisplayName:i.cliDisplayName,cliIcon:i.icon,pluginId:i.pluginId,pluginName:i.pluginName,timestamp:t.receivedStreamAt,openWith:{via:"none"}});continue}const i=Ha(o.name);if(i){if(Ua(i.server.name)||Pa(i.server.name))continue;const s=n.get(o.id);e.push({id:o.id,filePath:`mcp://${i.server.uuid}/${i.tool.name}`,fileName:i.tool.name,operation:"mcp_tool",timestamp:t.receivedStreamAt,mcpServerUuid:i.server.uuid,mcpToolName:i.tool.name,mcpToolDisplayName:i.tool.displayName,mcpServer:{name:i.server.name,uuid:i.server.uuid,iconType:i.server.iconType,iconSrc:i.server.iconSrc},mcpToolInput:o.input,mcpToolResult:s?{isError:s.isError,content:r6(s.content)}:void 0,openWith:{via:"none"}})}else if(o.name.startsWith(e6)||o.name.startsWith(t6)){const s=o.name.startsWith(e6)?e6:t6,a=o.name.slice(s.length),i=n.get(o.id);e.push({id:o.id,filePath:`mcp://${Yl}/${a}`,fileName:a,operation:"mcp_tool",timestamp:t.receivedStreamAt,mcpServerUuid:Yl,mcpToolName:a,mcpToolDisplayName:a,mcpServer:{name:yr,uuid:Yl,iconType:"external"},mcpToolInput:o.input,mcpToolResult:i?{isError:i.isError,content:r6(i.content)}:void 0,openWith:{via:"none"}})}else if(o.name.startsWith(n6)){const s=o.name.slice(33),a=n.get(o.id);e.push({id:o.id,filePath:`mcp://${s6}/${s}`,fileName:s,operation:"mcp_tool",timestamp:t.receivedStreamAt,mcpServerUuid:s6,mcpToolName:s,mcpToolDisplayName:s,mcpServer:{name:"documents:Documents",uuid:s6,iconType:"external"},mcpToolInput:o.input,mcpToolResult:a?{isError:a.isError,content:r6(a.content)}:void 0,openWith:{via:"none"}})}}}return e},[]);for(const m of l){if(i.has(m.name))continue;const e=ql(m.name),t="command"===m.itemType,s={fileName:e,pluginName:m.pluginName,timestamp:m.timestamp,openWith:{via:"none"}};t?c.push({...s,id:`user-invoked-command-${m.uuid}-${m.name}`,commandName:m.name,filePath:`command://${m.name}`,operation:"command_invoked"}):c.push({...s,id:`user-invoked-skill-${m.uuid}-${m.name}`,skillName:m.name,filePath:`skill://${m.name}`,operation:"skill_invoked"})}const d=new Map,u=new Map;for(const m of c)"device_commit"===m.operation&&(m.stagedPath&&d.set(Fl(m.stagedPath),m.filePath),m.fileUuid&&u.set(m.fileUuid,m.filePath));for(const m of c)if("create"===m.operation||"write"===m.operation||"edit"===m.operation){const e=d.get(Fl(m.filePath))??("uuid"===m.openWith.via?u.get(m.openWith.uuid):void 0);e&&(m.committedTo=e)}return c}(a,B,Z);return P?function(e,t){const s=new Set;for(const i of e)D4(i)&&"filePath"in i&&s.add(i.filePath);const n=[];for(const[i,r]of t)s.has(i)||n.push({id:`fs-${i}-${r.timestamp}`,filePath:i,fileName:r.fileName,timestamp:r.timestamp,operation:"fs_detected",openWith:{via:"path"}});const a=[...e,...n];return a.sort((e,t)=>(e.timestamp??0)-(t.timestamp??0)),a}(e,P):e},[a,P,B,Z,C,x]),W=e.useMemo(()=>function(e){const t=new Map;for(const s of e)"uuid"===s.openWith.via&&t.set(Fl(s.filePath),s.openWith.uuid);return t}(q),[q]),$=e.useMemo(()=>new Map(q.flatMap(e=>"device_commit"===e.operation&&e.fileUuid?[[e.fileUuid,e.filePath]]:[])),[q]),G=e.useMemo(()=>xc(n??[]),[n]),K=e.useMemo(()=>vc(n??[]),[n]),Y=_&&!_.isComplete?_.startTime??null:j?.lastActivityTime??null,Q="local_agent_mode"===t.type||"remote"===t.type?t.connectionState:void 0,J=!(I||j&&"thinking"!==j.activity&&"idle"!==j.activity),X="local_agent_mode"===t.type&&j?.contentLength?j.contentLength:void 0,ee=m&&"thinking"===j?.activity?j.thinkingTokens:void 0;return{chatMessages:M,statusMessage:T,mcpServers:A,isSessionActive:E,todos:R,workflowTasks:D,upcomingTriggers:H,debugInfo:c,resourceActivity:q,deliveredFileUuidByPath:W,committedDevicePathByFileUuid:$,fsLastModified:U,sdkCompactionStatus:G,sdkApiRetryStatus:K,activityStartTime:Y,connectionState:Q,isWaitingState:J,streamingContentLength:X,streamingThinkingTokens:ee}}function w8(e){if(e.parent_tool_use_id)return!1;const t=e.message.content;return!Array.isArray(t)||t.some(e=>"tool_result"!==e.type)}function M8({sessionId:t,sessionType:s,surface:n,model:a,messages:i,pendingMessages:r,connectionState:o,isWaitingForUserInput:l,errorMessage:c,desktopSystemInfo:d,historyPrependedCount:u=0}){const{track:m}=ae(),p=e.useRef(new Map),f=e.useRef(0),g=e.useRef(u);if(u!==g.current){if(u>g.current)f.current+=u-g.current;else{let e=i?.length??0;if(i)for(let t=i.length-1;t>=0;t--){const s=i[t];if("user"===s.type&&s.uuid&&p.current.has(s.uuid)){e=t;break}}f.current=e}g.current=u}const h=e.useRef(o);h.current=o;const C=e.useRef(a);C.current=a;const x=e.useRef(l),v=e.useRef(l),y=e.useRef(t),b=e.useRef(d);b.current=d;const k=e.useRef(c);k.current=c;const w=e.useCallback(e=>{const a=b.current;m({event_key:"claudeai.session.user_message_sent",session_id:t,session_type:s,surface:n,user_message_uuid:e,...a&&{desktop_app_version:a.app_version,desktop_os_version:a.os_version,desktop_cpu_model:a.cpu_model??void 0,desktop_total_memory:a.total_memory}})},[m,t,s,n]),M=e.useCallback((e,a,i)=>{const r=b.current;m({event_key:"claudeai.session.response_received",session_id:t,session_type:s,surface:n,user_message_uuid:e,seconds_since_user_message:a,is_final:i,...r&&{desktop_app_version:r.app_version,desktop_os_version:r.os_version,desktop_cpu_model:r.cpu_model??void 0,desktop_total_memory:r.total_memory}})},[m,t,s,n]),_=e.useRef(Boolean(c));c&&(_.current=!0);const j=e.useCallback((e,a,i,r)=>{const o=b.current;m({event_key:"claudeai.session.response_delayed",session_id:t,session_type:s,surface:n,user_message_uuid:e,seconds_since_user_message:a,seconds_since_last_activity:i,connection_state:h.current,delay_type:r,has_last_error:_.current,...o&&{desktop_app_version:o.app_version,desktop_os_version:o.os_version,desktop_cpu_model:o.cpu_model??void 0,desktop_total_memory:o.total_memory}})},[m,t,s,n]),S=e.useCallback((e,t,s,a,i)=>{if(e.outcomeFired)return;e.outcomeFired=!0;const r=b.current,o=Math.round((Date.now()-e.sentAt)/1e3);m({event_key:"claudeai.session.message_outcome",session_id:a,session_type:i,surface:n,user_message_uuid:e.uuid,model:C.current,seconds_to_outcome:o,had_first_response:e.hasFirstResponse,outcome:t,is_product_failure:s,...r&&{desktop_app_version:r.app_version,desktop_os_version:r.os_version,desktop_cpu_model:r.cpu_model??void 0,desktop_total_memory:r.total_memory}})},[m,n]),L=e.useRef(t),N=e.useRef(s);L.current=t,N.current=s;const I=e.useCallback((e,t,s,a)=>{const i=b.current,r=Date.now();for(const o of e.values())if(!o.hasFinalResponse){const e=Math.round((r-o.sentAt)/1e3);m({event_key:"claudeai.session.tracking_ended",session_id:s,session_type:a,surface:n,user_message_uuid:o.uuid,seconds_since_user_message:e,had_first_response:o.hasFirstResponse,end_reason:t,...i&&{desktop_app_version:i.app_version,desktop_os_version:i.os_version,desktop_cpu_model:i.cpu_model??void 0,desktop_total_memory:i.total_memory}});S(o,"user_stopped"===t?"user_stopped":"user_left",!1,s,a)}},[m,S,n]);e.useEffect(()=>{const e=p.current,t=Date.now();for(const s of r){const n=s.uuid;n&&(e.has(n)||(e.set(n,{uuid:n,sentAt:t,hasFirstResponse:!1,hasFinalResponse:!1,lastActivityAt:t,outcomeFired:!1}),w(n)))}},[r,w]);const T=e.useCallback(e=>{if(y.current!==t){const e=y.current;return I(p.current,"session_switch",e,N.current),p.current.clear(),f.current=0,y.current=t,void(_.current=Boolean(k.current))}const n=p.current,a=f.current,i=Date.now();let r=(()=>{for(let t=e.length-1;t>=0;t--){const s=e[t];if("user"===s.type&&s.uuid&&w8(s))return n.get(s.uuid)??null}return null})();for(let o=a;o<e.length;o++){const a=e[o];if(r&&!r.hasFinalResponse&&(r.lastActivityAt=i),"assistant"===a.type&&r&&!r.hasFirstResponse){r.hasFirstResponse=!0,r.firstResponseAt=i;const e=(i-r.sentAt)/1e3;M(r.uuid,e,!1)}if("result"===a.type&&r&&!r.hasFinalResponse){r.hasFinalResponse=!0;const e=(i-r.sentAt)/1e3;M(r.uuid,e,!0),S(r,"completed",!1,t,s)}if("user"===a.type&&a.uuid){const e=n.get(a.uuid);e&&(r=e)}}f.current=e.length},[t,s,M,S,I]);e.useEffect(()=>{i&&T(i)},[i,T]),e.useEffect(()=>{if(i)return;let e;return yc.subscribe(s=>{const n=bc(s,t).messages;n!==e&&(e=n,T(n??[]))})},[t,i,T]),e.useEffect(()=>{const e=v.current,t=l;if(e&&!t){const e=Date.now();for(const t of p.current.values())t.hasFinalResponse||(t.lastActivityAt=e)}v.current=t,x.current=t},[l]);const A=e.useRef(c);e.useEffect(()=>{if(c&&c!==A.current)for(const e of p.current.values())e.hasFinalResponse||e.outcomeFired||S(e,"system_error",!0,t,s);A.current=c},[c,t,s,S]),e.useEffect(()=>{const e=setInterval(()=>{const e=Date.now(),t=p.current;for(const s of t.values()){if(s.hasFinalResponse)continue;const t=e-s.sentAt,n=e-s.lastActivityAt;s.lastDelayedEventAt&&e-s.lastDelayedEventAt<12e4||(!s.hasFirstResponse&&t>6e4?(j(s.uuid,Math.round(t/1e3),Math.round(n/1e3),"no_first_response"),s.lastDelayedEventAt=e):s.hasFirstResponse&&!s.hasFinalResponse&&n>6e4&&!x.current&&(j(s.uuid,Math.round(t/1e3),Math.round(n/1e3),"stalled_mid_work"),s.lastDelayedEventAt=e))}},5e3);return()=>clearInterval(e)},[s,j]),e.useEffect(()=>{const e=()=>{I(p.current,"unmount",L.current,N.current),kc.flush(),p.current.clear()};return window.addEventListener("beforeunload",e),()=>{window.removeEventListener("beforeunload",e)}},[I]);const E=e.useRef(Date.now());e.useEffect(()=>{E.current=Date.now();const e=p.current,t=L.current,s=N.current;return()=>{Date.now()-E.current>2e3&&I(e,"unmount",t,s)}},[I]);return{onUserStopped:e.useCallback(()=>{I(p.current,"user_stopped",t,s),p.current.clear()},[I,t,s])}}function _8(e){return{sessionId:e.sessionId,requestId:e.requestId,toolUseId:e.requestId,toolName:e.toolName,input:e.input,status:"pending",transport:"ipc",suggestions:e.suggestions,channel:e.channel,decisionReason:e.decisionReason,createdAt:Date.now()}}const j8=fT()(e=>({permissionsBySessionId:{},autoAnswerFailedIds:new Set,addPermission:(t,s)=>{e(e=>{const n=e.permissionsBySessionId[t]||[];return n.some(e=>e.toolUseId===s.toolUseId)?e:{permissionsBySessionId:{...e.permissionsBySessionId,[t]:[...n,s]}}})},removePermission:(t,s)=>{e(e=>{const n=e.autoAnswerFailedIds.has(s)?new Set([...e.autoAnswerFailedIds].filter(e=>e!==s)):e.autoAnswerFailedIds;return{permissionsBySessionId:{...e.permissionsBySessionId,[t]:(e.permissionsBySessionId[t]||[]).filter(e=>e.toolUseId!==s)},autoAnswerFailedIds:n}})},clearPermissions:t=>{e(e=>({permissionsBySessionId:{...e.permissionsBySessionId,[t]:[]}}))},markAutoAnswerFailed:t=>{e(e=>e.autoAnswerFailedIds.has(t)?e:{autoAnswerFailedIds:new Set([...e.autoAnswerFailedIds,t])})}})),S8=[];function L8(e){return j8(t=>t.permissionsBySessionId[e]??S8)}function N8(){return j8(e=>e.removePermission)}let I8=!1,T8=null;function A8(t){e.useEffect(()=>{if(I8||!t?.onOnEvent)return;I8=!0;const e=j8.getState();return t?.getAll&&t.getAll().then(t=>{for(const s of t)if(s.pendingToolPermissions)for(const t of s.pendingToolPermissions)e.addPermission(s.sessionId,_8(t))}),T8=t.onOnEvent(e=>{if(e&&"object"==typeof e&&"type"in e&&"request"in e&&e.request){const t=e.request;"tool_permission_request"===e.type?j8.getState().addPermission(t.sessionId,_8(t)):"tool_permission_resolved"===e.type&&j8.getState().removePermission(t.sessionId,t.requestId)}}),()=>{T8&&(T8(),T8=null),I8=!1}},[t])}function E8(e){return j8(t=>(t.permissionsBySessionId[e]?.length??0)>0)}function R8(e){return j8(t=>e.some(e=>(t.permissionsBySessionId[e]?.length??0)>0))}const D8=new Set;function H8(){const t=j8(e=>e.permissionsBySessionId);return e.useMemo(()=>{const e=Object.keys(t).filter(e=>(t[e]?.length??0)>0);return 0===e.length?D8:new Set(e)},[t])}function P8(t){const s=L8(t);return e.useMemo(()=>{const e=s.length>0,t=e&&s.every(e=>wc.REQUIRES_INPUT.has(e.toolName));return{pending:s,hasPending:e,hasOnlyInputRequests:t,canShowReviewPopover:e&&!t}},[s])}function U8(e){if(0===e.length)return()=>{};if(1===e.length){const t=e[0];return()=>t}const t=[];for(const s of e){const e=s.split("/")[1];e&&t.push({slug:s,searchStr:`/${e}/`})}return e=>{let s,n=1/0;for(const{slug:a,searchStr:i}of t){const t=e.indexOf(i);-1!==t&&t<n&&(n=t,s=a)}return s}}function O8(e,t,s){const n=t;if("user"!==n.type||!n.tool_use_result)return!1;const{filePath:a,gitDiff:i}=n.tool_use_result;if(!a||!i)return!1;const r=function(e){if(!e)return null;const{filename:t,status:s,additions:n,deletions:a,changes:i,patch:r,previous_filename:o}=e;return"string"!=typeof t||"string"!=typeof s?null:["modified","added","deleted","renamed","copied"].includes(s)?{filename:t,status:s,additions:"number"==typeof n?n:0,deletions:"number"==typeof a?a:0,changes:"number"==typeof i?i:0,patch:"string"==typeof r?r:void 0,previous_filename:"string"==typeof o?o:void 0}:null}(i);if(!r)return!1;const o=function(e){const t=e.message?.content?.find(e=>"tool_result"===e.type&&e.tool_use_id);return t?.tool_use_id??null}(n)??a;return Mc(e,a,r,o,s?.(a)),!0}async function F8(e,t){const s=!!e.plugin_id||!!e.plugin_name,n=e.is_official_plugin??!1,a=s?e.plugin_name??null:null;return{is_plugin:s,plugin_name:s?n?a:"third-party":null,plugin_name_hash:a?Vc(t+a):null,plugin_id_hash:e.plugin_id?await Gc(e.plugin_id).catch(()=>null):null,plugin_source:s?e.plugin_source??null:null,is_official_plugin:n,marketplace_name:e.marketplace_name??null}}function V8(e){const t=e;return{input_tokens:t?.input_tokens??0,output_tokens:t?.output_tokens??0,cache_creation_input_tokens:t?.cache_creation_input_tokens??0,cache_read_input_tokens:t?.cache_read_input_tokens??0}}function z8(){return aa(e=>e.sessionContext)}const Z8={five_hour:"5h",seven_day:"7d",seven_day_opus:"7d_opus",seven_day_sonnet:"7d_sonnet",seven_day_overage_included:"7d_oi",overage:"overage"},B8={allowed:"within_limit",allowed_warning:"approaching_limit",rejected:"exceeded_limit"};function q8(e){return"content_block_delta"===e.type&&"delta"in e&&"text_delta"===e.delta.type}function W8(e){return"content_block_delta"===e.type&&"delta"in e&&"connector_text_delta"===e.delta.type}function $8(e){return"content_block_start"===e.type&&"content_block"in e&&"tool_use"===e.content_block.type}function G8(e){return"content_block_start"===e.type&&"content_block"in e&&"thinking"===e.content_block.type}function K8(e){return"content_block_delta"===e.type&&"delta"in e&&"thinking_delta"===e.delta.type}function Y8(e,t){const s=e,n=new Map;for(const r of t){const e=r.receivedStreamAt;r.uuid&&void 0!==e&&n.set(r.uuid,e)}const a=s.map(e=>{const t=e.uuid?n.get(e.uuid):void 0;return void 0!==t?{...e,receivedStreamAt:t}:e}),i=new Set(s.map(e=>e.uuid).filter(Boolean));return[...a,...t.filter(e=>e.uuid&&!i.has(e.uuid))]}function Q8({sessionId:t,sessionsIpc:s,storeInstance:n,isPrimaryComposer:a=!0}){const{track:i}=ae(),{account:r,activeOrganization:o}=v(),l=xe(),c=Pr(),d=KE(s?.replaceRemoteMcpServers,s?.replaceEnabledMcpTools),u=e.useRef(d);u.current=d;const m=e.useRef(r?.settings?.enabled_mcp_tools);m.current=r?.settings?.enabled_mcp_tools;const p=o?.uuid,f=Sa(),g=e.useRef({isRavenOrg:l,canManageIntegrations:f});g.current={isRavenOrg:l,canManageIntegrations:f};const h=function(){const t=GE();return e.useMemo(()=>{const e={};for(const s of Object.values(t))e[s.type]=s.connected;return e},[t])}(),C=e.useRef(h);C.current=h;const x=P5(),b=e.useRef(x);b.current=x;const{data:_}=lr(),j=e.useRef([]);j.current=e.useMemo(()=>{const e=new Set;return(_?.skills??[]).filter(e=>!e.enabled&&!1!==e.userInvocable).map(e=>({name:e.skillName,description:e.skillDescription,skillId:e.skillId,isUserCreated:"user"===e.creatorType})).filter(t=>{const s=R5(t.name).toLowerCase();return!e.has(s)&&(e.add(s),!0)})},[_]);const{data:S}=_c(),L=M(),N=jc(),I=e.useRef({orgUuid:o?.uuid,installedKeys:new Set,installedPlugins:S??[],systemInternalKeys:N,rawFetch:L});I.current={orgUuid:o?.uuid,installedKeys:new Set(S?.map(e=>v5(e.name,e.marketplaceName))??[]),installedPlugins:S??[],systemInternalKeys:N,rawFetch:L};const T=JS(),{addError:A}=ut(),{data:E}=il(),R=bl({kind:"cowork",id:t}),D=Sc(t),H=Lc(R)||void 0!==D&&D!==t,P=Nc.getState().sessions.find(e=>e.sessionId===t),U=Ic(P),[O,V]=e.useState(U.spaceId),[z,Z]=e.useState([]),[B,q]=e.useState(!1),[W,$]=e.useState(!1),[G,K]=e.useState(0),Y=e.useRef(!1),Q=e.useRef(0),J=e.useRef(0),[X,ee]=e.useState(U.connectionState),[te,se]=e.useState(null),[ne,ie]=e.useState(U.isLoading),re=e.useRef(!U.isLoading),[oe,le]=e.useState(!1),ce=e.useCallback(e=>{"boolean"!=typeof e||e||(re.current=!1,le(!0)),ie(e)},[]);e.useEffect(()=>{if(!re.current)return;const e=setTimeout(()=>{re.current&&ie(!0)},60);return()=>clearTimeout(e)},[]);const[de,ue]=e.useState(U.hasError),[me,pe]=e.useState(U.errorMessage),[fe,ge]=e.useState(null),he=e.useRef(U.errorMessage),Ce=e.useRef(void 0),ve=Tc(t)?T.formatMessage({id:"ATDyLPIoxz",defaultMessage:"New chat"}):T.formatMessage({id:"K4O03zh0vo",defaultMessage:"New task"}),[ye,be]=e.useState(U.sessionTitle??void 0),ke=ye??ve,[we,Me]=e.useState(U.processIsRunning),[_e,je]=e.useState(U.homePath),[Se,Le]=e.useState(U.cliSessionId),[Ne,Ie]=e.useState(P?.cuSelectedDisplayId),[Te,Ae]=e.useState(P?.hostLoopMode),[Ee,Re]=e.useState(null),[De,He]=e.useState(null),[Pe,Ue]=e.useState(U.folderExists),[Oe,Fe]=e.useState(U.sessionModel),Ve=e.useRef(Oe);Ve.current=Oe;const ze=e.useCallback(e=>{Fe(e),cs.current=e},[]),Ze=D0(),Be=Dr(Ze),qe=y("cowork_persist_flaneur"),We=e.useRef(qe);We.current=qe;const $e=y("cowork_flaneur_clear_stale_model"),Ge=e.useRef($e);Ge.current=$e;const[Ke,Ye]=e.useState(U.permissionMode),[Qe,Je]=e.useState(P?.chromePermissionMode),[Xe,et]=e.useState(U.userSelectedFolders),tt=e.useCallback(e=>{et(t=>{const s=new Set(t),n=e.filter(e=>!s.has(e));return 0===n.length?t:[...t,...n]})},[]),[st,nt]=e.useState(U.userSelectedProjectUuids),[at,it]=e.useState(void 0),[rt,ot]=e.useState(new Map),[lt,ct]=e.useState(U.mountedProjects??[]),[dt,mt]=e.useState(U.scheduledTaskId),[pt,ft]=e.useState(U.promptSuggestion),[gt,ht]=e.useState(void 0),Ct=YE.getState().setSessionEnabledMcpTools,xt=L8(t),vt=N8(),yt=Ac(t),bt=Xo(),kt=el(),wt=Ec(),Mt=Rc(),_t=fc(t),[jt,St]=e.useState(null),Lt=e.useRef(""),Nt=e.useRef(""),[It,Tt]=e.useState(0),[At,Et]=e.useState("idle"),[Rt,Dt]=e.useState(void 0),[Ht,Pt]=e.useState(null),Ut=e.useRef(""),Ot=e.useRef(null),Ft=e.useRef(!1),[Vt,zt]=e.useState(void 0),[Zt,Bt]=e.useState(void 0),qt=e.useRef(null),Wt=Dc(),$t=e.useRef(new Set),Gt=e.useRef(!1),Kt=e.useRef(i);Kt.current=i;const Yt=e.useRef(E);Yt.current=E;const Qt=e.useRef(0),Jt=e.useCallback(async e=>{if(Y.current||!s?.loadOlderTranscript)return;if(Q.current>0&&performance.now()-Q.current<2e3)return;const n=J.current;Y.current=!0,$(!0);const a=performance.now();try{const i=await s.loadOlderTranscript(t);if(n!==J.current)return;if(!i)return void q(!1);if(i.error)return void(Q.current=performance.now());Q.current=0;const r=i.events.filter(e=>!e.uuid||!$t.current.has(e.uuid));for(const e of r)e.uuid&&$t.current.add(e.uuid);r.length>0&&(e?.(),Z(e=>[...r,...e]),K(e=>e+r.length)),q(i.hasOlder),Kt.current({event_key:"claudeai.cowork.remote.transcript_load",session_id:t,mode:"backfill",pages:1,events:r.length,fetch_ms:Math.round(performance.now()-a),eager_pages_config:Qt.current,has_older:i.hasOlder})}finally{Y.current=!1,n===J.current&&$(!1)}},[t,s]),Xt=ai(),es=e.useRef({update:Xt,orgUuid:p,model:Oe});es.current={update:Xt,orgUuid:p,model:Oe};const ts=e.useRef(Wt);ts.current=Wt;const ss=e.useCallback((e,s)=>{if(e){const e=ts.current;Kt.current({event_key:"claudeai.session.error_occurred",session_id:t,session_type:ga(t)?"remote":"local",surface:"cowork",user_message_uuid:Ce.current,...e&&{desktop_app_version:e.app_version,desktop_os_version:e.os_version,desktop_cpu_model:e.cpu_model??void 0,desktop_total_memory:e.total_memory}})}const n=he.current;he.current=e,pe(e),ge(t=>e?void 0!==s?s??null:e===n?t:null:null)},[t]);e.useEffect(()=>{Gt.current=!1,ee("connecting");const n=n=>{if(n.sessionId===t)switch(n.type){case"message":if(n.message){const s=n.message;if("user"===s.type&&"isReplay"in s&&s.isReplay&&s.uuid)return void kt(t,s.uuid);if(s.uuid){if($t.current.has(s.uuid))return;$t.current.add(s.uuid)}if(function(e){return"stream_event"===e.type&&"event"in e}(s)){const t=s.event;if(G8(t))Nt.current="";else if(K8(t))Nt.current+=t.delta.thinking;else if($8(t))Ut.current="",Ot.current=t.content_block.id,Ft.current=!!Ql(t.content_block.name);else if(q8(t))Lt.current+=t.delta.text;else if(W8(t))Lt.current+=t.delta.connector_text;else if("content_block_delta"===t.type&&"delta"in t&&"input_json_delta"===t.delta.type){const e=t.delta;e.partial_json&&(Ut.current+=e.partial_json)}return void e.startTransition(()=>{if(function(e){return"message_start"===e.type}(t))((e,t,s)=>{Lt.current="",Nt.current="",Tt(0),Et("thinking"),Dt(void 0),Pt(Date.now());const n=e.message.model,a=Ve.current;void 0!==a&&a!==n&&a.replace(/\[[^\]]+\]$/,"")===n||Fe(n);const i={type:"assistant",message:{id:e.message.id,type:"message",role:"assistant",model:e.message.model,content:[{type:"text",text:""}],stop_reason:null,stop_sequence:null,usage:V8(e.message.usage)},session_id:t,uuid:s};St(i),ee("connected"),ce(!1),Me(!0),ft(null)})(t,s.session_id,s.uuid);else if(function(e){return"message_delta"===e.type&&"usage"in e}(t)){const e={inputTokens:t.usage.input_tokens,outputTokens:t.usage.output_tokens,cacheCreationInputTokens:t.usage.cache_creation_input_tokens??0,cacheReadInputTokens:t.usage.cache_read_input_tokens??0};St(t=>t?{...t,message:{...t.message,usage:{input_tokens:e.inputTokens,output_tokens:e.outputTokens,cache_creation_input_tokens:e.cacheCreationInputTokens,cache_read_input_tokens:e.cacheReadInputTokens}}}:t)}else if(G8(t))St(e=>e?{...e,message:{...e.message,content:[...e.message.content,{type:"thinking",thinking:""}]}}:e);else if(K8(t))St(e=>{if(!e)return e;const t=e.message.content.map(e=>"thinking"===e.type?{type:"thinking",thinking:Nt.current}:e);return{...e,message:{...e.message,content:t}}});else if($8(t)){const e={type:"tool_use",id:t.content_block.id,name:t.content_block.name,input:{}};Et("tool_use"),Dt(t.content_block.name),Pt(Date.now()),zt(void 0),Bt(void 0),St(t=>t?{...t,message:{...t.message,content:[...t.message.content,e]}}:t)}else if(q8(t)||W8(t)){const e=q8(t)?t.delta.text:t.delta.connector_text;Tt(t=>t+e.length),Et(e=>("writing"!==e&&Pt(Date.now()),"writing")),St(e=>{if(!e)return e;const t=e.message.content.filter(e=>"text"!==e.type),s=t.filter(e=>"thinking"===e.type),n=t.filter(e=>"tool_use"===e.type);return{...e,message:{...e.message,content:[...s,{type:"text",text:Lt.current},...n]}}})}else if("content_block_delta"===t.type&&"delta"in t&&"input_json_delta"===t.delta.type){const e=t.delta;if(e.partial_json){Tt(t=>t+(e.partial_json?.length??0));const t=function(e){const t=e.match(/"(?:file_path|path)"\s*:\s*"([^"]+)"/);return t?.[1]??null}(Ut.current);t&&zt(t);const s=function(e){const t=e.match(/"(?:content|new_string)"\s*:\s*"/);if(!t||void 0===t.index)return null;const s=t.index+t[0].length;return e.slice(s).length}(Ut.current);null!==s&&Bt(s),Ft.current&&St(e=>{if(!e)return e;const t=Ot.current,s=e.message.content.map(e=>"tool_use"===e.type&&e.id===t?{...e,partial_json:Ut.current}:e);return{...e,message:{...e.message,content:s}}})}}else"message_stop"===t.type&&(St(null),Lt.current="",Nt.current="",Tt(0),Et("idle"),Dt(void 0),zt(void 0),Bt(void 0),Ut.current="",Ot.current=null,Ft.current=!1,Pt(null))})}if("rate_limit_event"===s.type){const e=es.current;if(e.orgUuid){const n=function(e){const t=e.isUsingOverage,s=function(e){if(e)return e}(e.overageDisabledReason);if("allowed"===e.status)return{type:"within_limit",overageInUse:t};const n={},a=e.rateLimitType?Z8[e.rateLimitType]:void 0,i="7d_opus"===a||"7d_sonnet"===a||"7d_oi"===a||void 0;a&&void 0!==e.resetsAt&&(n[a]={status:B8[e.status],resets_at:e.resetsAt,utilization:e.utilization??0,surpassed_threshold:e.surpassedThreshold??null}),e.overageStatus&&void 0!==e.overageResetsAt&&"overage"!==a&&(n.overage={status:B8[e.overageStatus],resets_at:e.overageResetsAt,utilization:0,surpassed_threshold:null}),void 0!==n.overage&&void 0!==e.period&&(n.overage.period=e.period);const r="five_hour"===(o=e.rateLimitType)||"overage"===o?o:o?.startsWith("seven_day")?"seven_day":void 0;var o;const l=e.overageStatus?B8[e.overageStatus]:void 0;return"allowed_warning"===e.status?void 0===e.resetsAt?{type:"within_limit",overageInUse:t}:{type:"approaching_limit",resetsAt:e.resetsAt,remaining:1,windows:n,representativeClaim:r,overageDisabledReason:s,overageStatus:l,overageInUse:t,perModelLimit:i}:{type:"exceeded_limit",resetsAt:e.resetsAt,windows:n,representativeClaim:r,overageDisabledReason:s,overageStatus:l,overageInUse:t,perModelLimit:i,creditsRequired:void 0!==e.canUserPurchaseCredits&&void 0!==e.hasChargeableSavedPaymentMethod?{canUserPurchaseCredits:e.canUserPurchaseCredits,hasChargeableSavedPaymentMethod:e.hasChargeableSavedPaymentMethod}:void 0}}(s.rate_limit_info);e.update(n,e.orgUuid,t,e.model)}return}if("user"===s.type&&s.uuid&&(Ce.current=s.uuid,O8(t,s)),"result"===s.type&&!s.parent_tool_use_id&&Gt.current&&wt(t,{keepFailed:!0}),e.startTransition(()=>{const e=Date.now();if(Z(t=>[...t,{...s,receivedStreamAt:e}]),se(e),"system"===s.type&&"init"===s.subtype&&"session_id"in s&&"string"==typeof s.session_id&&Le(s.session_id),"system"===s.type&&"model_refusal_fallback"===s.subtype){const e=Wc(s);e&&ze($c(e))}ee("connected"),ce(!1),Me(!0),ft(null),"assistant"!==s.type||"error"in s||(ue(!1),pe(null),ge(null))}),Gt.current&&"assistant"===s.type&&"message"in s){const e=s,n=e.message?.content;if(Array.isArray(n)){n.some(e=>"text"===e.type&&"text"in e&&e.text.includes("<thinking>"))&&Kt.current({event_key:"claudeai.cowork.thinking_detected",session_id:t})}}}break;case"error":j5(t),ue(!0),ss(n.error??null,n.errorCategory),"api_model_not_found"!==n.errorCategory&&"api_model_blocklisted"!==n.errorCategory||!Ge.current||(cs.current=void 0),ce(!1),Me(!1),St(null),Lt.current="",Et("idle"),Dt(void 0),Re(null),He(null);break;case"close":j5(t),1===n.code&&ee("disconnected"),Me(!1),St(null),Lt.current="",Et("idle"),Dt(void 0),Re(null),He(null);break;case"pty_close":j5(t),s?.getTranscript&&s.getTranscript(t).then(e=>{e&&Array.isArray(e)&&e.length>0&&Z(t=>Y8(e,t))});break;case"initialization_status":n.initializationStatus&&(Re(e=>(e&&e.step===n.initializationStatus.step||He(Date.now()),n.initializationStatus)),n.initializationStatus.isComplete&&He(null));break;case"session_updated":j5(t),s?.getSession&&s.getSession(t,{skipReplay:!0}).then(e=>{e?.error?(ue(!0),ss(e.error,e.errorCategory),"api_model_not_found"!==e.errorCategory&&"api_model_blocklisted"!==e.errorCategory||!Ge.current||(cs.current=void 0),ce(!1),Me(!1),Re(null),He(null),Et("idle"),Dt(void 0)):(ue(!1),ss(null)),e?.title&&be(e.title),e?.mcqAnswers&&it(e.mcqAnswers),e?.userSelectedFolders&&et(e.userSelectedFolders),e?.mountedProjects&&ct(e.mountedProjects),e&&(nt(e.userSelectedProjectUuids),Ie(e.cuSelectedDisplayId),Je(e.chromePermissionMode))});break;case"fs_file_created":case"fs_file_modified":case"fs_file_changed":if(n.fsFile){if(!n.fsFile.fileName.startsWith("sdk-debug"))try{localStorage.setItem(y3,"true")}catch{}ot(e=>{const t=new Map(e);return t.set(n.fsFile.hostPath,{hostPath:n.fsFile.hostPath,fileName:n.fsFile.fileName,timestamp:n.fsFile.timestamp}),t})}break;case"fs_file_deleted":n.fsFile&&ot(e=>{const t=new Map(e);return t.delete(n.fsFile.hostPath),t});break;case"directory_servers_search":try{const{requestId:e,keywords:a}=JSON.parse(n.data??"{}");if(e&&s?.respondDirectoryServers){const n=YE.getState().enabledMcpToolsBySession[t];qc(a??[],n,g.current).then(t=>{s.respondDirectoryServers(e,t)}).catch(t=>{k.error(w.MCP,"Cowork directory search failed",{error:t,keywordCount:a?.length}),F(new Error(`Cowork directory search failed: ${t instanceof Error?t.name:typeof t}`),{source:"cowork_directory_servers_search",keywordCount:a?.length??null}),s.respondDirectoryServers(e,[])})}}catch{}break;case"directory_servers_lookup":try{const{requestId:e,uuids:t}=JSON.parse(n.data??"{}");e&&s?.respondDirectoryServers&&Bc(t??[],g.current).then(t=>{s.respondDirectoryServers(e,t)}).catch(n=>{k.error(w.MCP,"Cowork directory lookup failed",{error:n,uuids:t}),F(new Error(`Cowork directory lookup failed: ${n instanceof Error?n.name:typeof n}`),{source:"cowork_directory_servers_lookup",uuidCount:t?.length??null}),s.respondDirectoryServers(e,[])})}catch{}break;case"directory_servers_list_installed":try{const{requestId:e,keywords:t}=JSON.parse(n.data??"{}");if(e&&s?.respondDirectoryServers)try{const n=zc(C.current);s.respondDirectoryServers(e,t?.length?Zc(n,t):n)}catch(i){k.error(w.MCP,"Cowork directory list-installed failed",{error:i,keywordCount:t?.length}),F(new Error(`Cowork directory list-installed failed: ${i instanceof Error?i.name:typeof i}`),{source:"cowork_directory_servers_list_installed",keywordCount:t?.length??null}),s.respondDirectoryServers(e,[])}}catch{}break;case"addable_skills_search":try{const{requestId:e,keywords:t}=JSON.parse(n.data??"{}");if(e&&s?.respondSlashMenuSkills){const n=U5(j.current,void 0,t);s.respondSlashMenuSkills(e,JSON.stringify(n))}}catch{}break;case"slash_menu_skills_resolve":try{const{requestId:e,skillNames:t,keywords:a}=JSON.parse(n.data??"{}");if(e&&s?.respondSlashMenuSkills){const n=U5(b.current,t,a);s.respondSlashMenuSkills(e,JSON.stringify(n))}}catch{}break;case"plugins_search":try{const{requestId:e,userIntent:a,keywords:i,userMessageUuid:r,includeInstalled:o,listInstalledOnly:l}=JSON.parse(n.data??"{}");if(e&&s?.respondPluginSearch){const n=I.current,c=JSON.stringify({results:[]});if(l){const t=n.installedPlugins.map(e=>{const t=e.skills.map(e=>({name:e.name,description:e.description}));return{id:v5(e.name,e.marketplaceName),name:e.name,description:e.description??"",marketplaceName:e.marketplaceName,skillNames:t.map(e=>e.name),skillDescriptions:t.map(e=>e.description),commandNames:[],mcpServerNames:e.mcpServers.map(e=>e.name),skills:t,commands:[]}}),r=h5(a,i),o=r.length>0?x5(t,r):t.map(y5);s.respondPluginSearch(e,JSON.stringify({results:o}));break}if(!n.orgUuid){s.respondPluginSearch(e,c);break}(async function(e,t){const s=Date.now();if(m5&&m5.orgUuid===e&&s-m5.at<3e5)return m5.data;const n=[];let a=0,i=!0;for(;i;){const s=`/api/organizations/${e}/plugins/list-plugins?installation_preference=auto_install&installation_preference=available&limit=100&offset=${a}`,r=await t(s);if(!r.ok)throw new Error(`list-plugins HTTP ${r.status}`);const o=await r.json();for(const e of o.plugins)"auto_install"!==e.installation_preference&&n.push(p5(e));i=!!o.has_more&&o.plugins.length>0,a+=o.plugins.length}return m5={data:n,at:s,orgUuid:e},n})(n.orgUuid,n.rawFetch).then(l=>{const c=l.filter(e=>!n.systemInternalKeys.has(e.id)),d=x5(o?c:c.filter(e=>!n.installedKeys.has(e.id)),h5(a,i)).slice(0,10);Kt.current({event_key:"claudeai.plugin.suggestion.search_completed",session_id:t,user_message_uuid:r,result_count:d.length,top_capability_type:d[0]?.matchedCapabilities[0]?.type}),s.respondPluginSearch(e,JSON.stringify({results:d}))}).catch(t=>{k.error(w.MCP,"Cowork plugin search failed",{error:t,keywordCount:i?.length}),F(new Error(`Cowork plugin search failed: ${t instanceof Error?t.name:typeof t}`),{source:"cowork_plugins_search",keywordCount:i?.length??null}),s.respondPluginSearch(e,c)})}}catch{}break;case"local_mcp_servers":n.localMcpServers&&n.localMcpServers.length>0&&Pc(t,n.localMcpServers,X3,u.current,"desktop");break;case"sdk_mcp_status":if(!n.data)break;try{const{statuses:e}=JSON.parse(n.data);ht(e);const s=e.filter(e=>e.name.startsWith("plugin:")&&"http"!==e.configType&&"sse"!==e.configType&&"connected"===e.status&&e.toolCount>0).length;s>0&&Kt.current({event_key:"claudeai.cowork.plugin_local_mcp_count",session_id:t,connected:s});const a=function(e,t){const s=[],n=[],a=[],i=[];for(const m of e){const e=m.displayName??m.name;"failed"===m.status?"http"===m.configType||"sse"===m.configType?n.push(e):s.push(e):"needs-auth"===m.status?a.push(e):"pending"===m.status&&i.push(e)}const r=s.length>0||n.length>0||a.length>0||i.length>0,o=Ia.getState();if(!o.remoteHasBootstrapped)return r?{missing_in_sdk:[],extra_in_sdk:[],sdk_failed_stdio:s,sdk_failed_http:n,sdk_needs_auth:a,sdk_pending:i}:null;const l=new Set(e.filter(e=>"connected"===e.status).map(e=>e.name)),c=[],d=[],u=(e,t,s)=>{const n=l.has(e);if(s&&!n)c.push(t);else if(!s&&n){if(e.startsWith("plugin:"))return;d.push(t)}};for(const[m,p]of Object.entries(o.remoteServers)){const e=(o.remoteTools[m]??[]).some(e=>!1!==t?.[e.enabledKey]&&"blocked"!==(e.effectiveMaxPermission??e.orgMaxPermission));u(m,p.name,!0===o.remoteConnectionStates[m]?.isConnected&&e)}for(const[m,{isBuiltIn:p}]of Object.entries(o.localClients)){if(p)continue;const e=o.localTools[m]??[];0!==e.length&&u(m,m,e.some(e=>!1!==t?.[e.enabledKey]))}return 0!==c.length||0!==d.length||r?{missing_in_sdk:c,extra_in_sdk:d,sdk_failed_stdio:s,sdk_failed_http:n,sdk_needs_auth:a,sdk_pending:i}:null}(e,YE.getState().enabledMcpToolsBySession[t]??m.current);a&&Kt.current({event_key:"claudeai.cowork.mcp_status_anomaly",session_id:t,...a})}catch{}break;case"skill_invoked":{const e=QK.getState();if(e.sessionId===t&&e.markSkillUsed(),n.data)try{const e=JSON.parse(n.data),s=p??"",a=e.is_official_plugin??!1;F8(e,s).then(n=>{Kt.current({event_key:"claudeai.cowork.skill.invoked",session_id:t,skill_name:n.is_plugin&&!a?"custom":e.skill_name,skill_name_hash:Vc(s+e.skill_name),...n})}).catch(e=>{k.error(w.LOCAL_SESSION,"Failed to build skill_invoked telemetry payload",{error:e,sessionId:t})})}catch(r){k.error(w.LOCAL_SESSION,"Failed to parse skill_invoked event data",{error:r,sessionId:t,data:n.data})}break}case"subagent_invoked":if(n.data)try{const e=JSON.parse(n.data),s=p??"",a=e.subagent_name??null;F8(e,s).then(e=>{Kt.current({event_key:"claudeai.cowork.subagent.invoked",session_id:t,subagent_name:a&&e.is_plugin&&!e.is_official_plugin?"custom":a,subagent_name_hash:a?Vc(s+a):null,...e})}).catch(e=>{k.error(w.LOCAL_SESSION,"Failed to build subagent_invoked telemetry payload",{error:e,sessionId:t})})}catch(r){k.error(w.LOCAL_SESSION,"Failed to parse subagent_invoked event data",{error:r,sessionId:t,data:n.data})}break;case"prompt_suggestion":ft(n.data??null);break;case"permission_mode_changed":n.permissionMode&&Ye(n.permissionMode);break;case"cu_lock_released":if(n.sessionId!==t)break;if(!a)break;requestAnimationFrame(()=>{const e=document.querySelector("[data-autoscroll-container]");e&&(e.scrollTop=e.scrollHeight)})}};if(!s?.onOnEvent||!s?.getSession)return ue(!0),ge(e=>e??r5),void ce(!1);if(H)return;const i=[];let r=!0;qt.current=s.onOnEvent(e=>{const s=e;s.sessionId===t&&r?i.push(s):n(s)});const o=Nc.getState().sessions.find(e=>e.sessionId===t),l=o?.lastActivityAt,c=function(e,t,s){if(s)return null;const n=k5.get(e);return n?n.lastActivityAt!==t?(M5(e),null):(k5.delete(e),k5.set(e,n),{transcript:n.transcript,nextCursor:n.nextCursor}):null}(t,l,o?.isRunning??!1);let d=null!==c;k.debug(w.LOCAL_SESSION,d?"transcript_cache_hit":"transcript_cache_miss",{sessionId:t,lastActivityAt:o?.lastActivityAt,isRunning:o?.isRunning,cachedCount:c?.transcript.length}),Hc()&&performance.mark(`cowork:resume:transcript-fetch-start:${t}`);const f=c?Promise.resolve(c.transcript):s?.getTranscript?function(e,t){const s=S5.get(e);if(s)return s;const n=t().finally(()=>{S5.get(e)===n&&S5.delete(e)});return S5.set(e,n),n}(t,()=>s.getTranscript(t).catch(()=>null)):Promise.resolve(null);return s.getSession(t,{skipReplay:!0}).then(async e=>{if(e){if(e.error){wt(t,{keepFailed:!0});let n=!1,a=await f;if(d&&e.lastActivityAt!==l&&(j5(t),d=!1,a=s?.getTranscript?await s.getTranscript(t).catch(()=>null):null),a&&a.length>0&&(Z(e=>Y8(a,e)),n=!0,d||_5(t,a,e.lastActivityAt,void 0)),!n&&e.initialMessage){const s=Ml(e.initialMessage,t,ua());Z([s])}return e.title&&be(e.title),r=!1,Gt.current=!0,ue(!0),ss(e.error,e.errorCategory),Me(!1),void ce(!1)}e.localMcpServers&&e.localMcpServers.length>0&&await Pc(t,e.localMcpServers,X3,u.current,"desktop");let a=await f;if(Hc()&&(performance.mark(`cowork:resume:transcript-received:${t}`),performance.measure(`cowork:resume:transcript-fetch:${t}`,`cowork:resume:transcript-fetch-start:${t}`,`cowork:resume:transcript-received:${t}`)),d&&e.lastActivityAt!==l&&(k.debug(w.LOCAL_SESSION,"transcript_cache_stale_sidebar",{sessionId:t,sidebarLastActivityAt:l,freshLastActivityAt:e.lastActivityAt}),j5(t),d=!1,a=s?.getTranscript?await s.getTranscript(t).catch(()=>null):null),!d&&!e.isRunning&&a&&a.length>0&&_5(t,a,e.lastActivityAt,void 0),ue(!1),pe(null),ge(null),e.cliSessionId&&Le(e.cliSessionId),Ie(e.cuSelectedDisplayId),Ae(e.hostLoopMode),e.homePath&&je(e.homePath),Ue(!1!==e.folderExists),e.userSelectedFolders&&et(e.userSelectedFolders),nt(e.userSelectedProjectUuids),e.mcqAnswers&&it(e.mcqAnswers),e.scheduledTaskId&&mt(e.scheduledTaskId),e.spaceId&&V(e.spaceId),e.promptSuggestion&&ft(e.promptSuggestion),e.fsDetectedFiles&&e.fsDetectedFiles.length>0&&ot(new Map(e.fsDetectedFiles.map(e=>[e.hostPath,e]))),e.mountedProjects&&ct(e.mountedProjects),Ct(t,{...m.current,...e.enabledMcpTools}),e.title&&be(e.title),e.initializationStatus&&Re(e.initializationStatus),Me(e.isRunning),e.model&&(We.current?ze(e.model):Fe(e.model)),e.permissionMode&&Ye(e.permissionMode),Je(e.chromePermissionMode),a&&a.length>0){const s=a,n=new Set(s.map(e=>e.uuid).filter(Boolean)),i=(e.bufferedMessages??[]).filter(e=>!!e.parent_tool_use_id&&e.uuid&&!n.has(e.uuid)),r=i.length>0?[...s,...i]:s;Z(r),K(0),q(!1);for(const e of r)e.uuid&&$t.current.add(e.uuid);e.isRunning||wt(t,{keepFailed:!0}),Hc()&&(performance.mark(`cowork:resume:transcript-applied:${t}`),performance.measure(`cowork:resume:transcript-apply:${t}`,`cowork:resume:transcript-received:${t}`,`cowork:resume:transcript-applied:${t}`))}else if(e.bufferedMessages&&e.bufferedMessages.length>0)for(const s of e.bufferedMessages)n({type:"message",sessionId:t,message:s});r=!1;for(const e of i)n(e);Gt.current=!0,ee("connected")}else r=!1,ue(!0),ge(e=>e??o5);ce(!1)}),()=>{qt.current&&qt.current(),$t.current=new Set,$(!1),Y.current=!1,Q.current=0,J.current++}},[p,t,H,a,s,wt,kt,Ct,ss,ce,ze]),e.useEffect(()=>{if(!Oe)for(const e of z)if("assistant"===e.type&&"message"in e&&e.message?.model)return void Fe(e.message.model)},[z,Oe]);const ns=e.useMemo(()=>{if(!jt)return z;const e=jt.message.id,t=z.findIndex(t=>"assistant"===t.type&&t.message?.id===e);if(t>=0){const s=z.slice(0,t),n=z.slice(t+1).filter(t=>"assistant"!==t.type||t.message?.id!==e);return[...s,jt,...n]}return[...z,jt]},[z,jt]),as=e.useMemo(()=>{if(0===yt.length)return yt;const e=new Set;for(const t of ns)t.uuid&&e.add(t.uuid);return yt.filter(t=>t.uuid&&!e.has(t.uuid))},[yt,ns]),is=e.useMemo(()=>we&&(as.some(e=>e.uuid&&!_t.has(e.uuid))||!!jt||Uc(z,yt,"local")),[as,_t,z,yt,we,jt]),rs=e.useMemo(()=>void 0!==xt&&xt.length>0,[xt]),{onUserStopped:os}=M8({sessionId:t,sessionType:ga(t)?"remote":"local",surface:"cowork",model:Oe,messages:z,pendingMessages:yt,connectionState:X,isWaitingForUserInput:rs,errorMessage:me??void 0,desktopSystemInfo:Wt,historyPrependedCount:G}),ls=e.useRef(os);ls.current=os;const cs=e.useRef(Oe);e.useEffect(()=>{Oe&&void 0===cs.current&&(cs.current=Oe)},[Oe]);const ds=e.useRef(void 0),us=e.useRef(void 0);E5({sessionId:t,sessionModel:Oe,surface:"cowork",setModelIpc:s?.setModel,onSwitched:e.useCallback(e=>{Fe(e),cs.current=e},[]),enabled:!we});const ms=e.useCallback(async(e,n,a,i,r,l,c)=>{let d="";const u=[];if("string"==typeof e)d=e;else{const t=[];for(const s of e)"text"===s.type?t.push(s.text):"image"===s.type&&u.push(s);d=t.join("\n")}if(j5(t),ft(null),Kt.current({event_key:"claudeai.code.message.submitted",session_id:t,message_length:d.length,image_count:u.length,is_local:!ga(t)}),_l({message:d,sessionId:t,track:Kt.current,knownCommands:Yt.current,hashSalt:o?.uuid??""}),!s?.sendMessage||!s?.getSession)return;const m=h0(u),p=ua();let f=!1;if(c?.silent)$t.current.add(p),Me(!0);else{Ce.current=p,r&&r.length>0&&a0.getState().setFileNames(p,r);const s=Ml(e,t,p);bt(t,s),c?.retryForUuid&&kt(t,c.retryForUuid),f=!we,Me(!0)}if(a&&a!==cs.current&&s.setModel)try{await s.setModel(t,a),Kt.current({event_key:"claudeai.cowork.model_switched",session_id:t,previous_model:cs.current??"unknown",new_model:a,session_type:ga(t)?"remote":"local"}),cs.current=a}catch(g){k.error(w.LOCAL_SESSION,"Failed to set model",{error:g,sessionId:t,model:a})}if(void 0!==c?.effortLevel&&c.effortLevel!==ds.current&&s.setEffort)try{await s.setEffort(t,c.effortLevel),ds.current=c.effortLevel}catch(g){k.error(w.LOCAL_SESSION,"Failed to set effort",{error:g,sessionId:t,effortLevel:c.effortLevel})}if(void 0!==c?.extendedThinkingEnabled&&c.extendedThinkingEnabled!==us.current&&s.setExtendedThinking)try{await s.setExtendedThinking(t,c.extendedThinkingEnabled),us.current=c.extendedThinkingEnabled}catch(g){k.error(w.LOCAL_SESSION,"Failed to set thinking",{error:g,sessionId:t,enabled:c.extendedThinkingEnabled})}try{await s.sendMessage(t,d,m,n,p,i,l,c?.contentBlocks,c?.syntheticMessage,Be.current)}catch(g){(c?.silent||f)&&Me(!1);const e=String(g?.message??g).match(/custom3p_token_cap_exceeded:(\d+):(\d+):(\d+)/);if(e){c?.silent||(c?.retryForUuid?Mt(t,p):(kt(t,p),a0.getState().clearFileNames(p)));const[,s,n,a]=e;return void A(T.formatMessage({defaultMessage:"Token limit reached ({used, number} of {cap, number} in this {windowHours}-hour window). Contact your IT administrator.",id:"9mq4/xSGLy"},{used:Number(s),cap:Number(n),windowHours:Number(a)}),{error:g,errorContext:{tags:{source:"lam_send_token_cap"}},messageForLogging:"sendMessage refused: custom3p token cap exceeded"})}c?.silent||Mt(t,p),k.error(w.LOCAL_SESSION,"Failed to send message",{error:g,sessionId:t}),ue(!0),ge(e=>e??l5)}},[o,t,s,c,bt,kt,Mt,A,T,we,Be]),ps=Dr(ms);e.useEffect(()=>{const{registerRetryHandler:e}=Oc.getState(),s=e=>{const t=e.message.content,s=e.uuid?a0.getState().fileNamesByMessageUuid[e.uuid]:void 0;ps.current("string"==typeof t?t:t.filter(e=>"text"===e.type||"image"===e.type),void 0,void 0,void 0,s,void 0,{retryForUuid:e.uuid})};return e(t,s),()=>e(t,void 0,s)},[t,ps]);const fs=e.useCallback(async()=>{s?.stop&&(ft(null),Re(null),He(null),ls.current(),Kt.current({event_key:"claudeai.code.session.stopped",session_id:t,is_local:!ga(t)}),await s.stop(t))},[t,s]),gs=s?.stopTask,hs=e.useMemo(()=>{if(gs)return e=>{Kt.current({event_key:"claudeai.cowork.workflow.stop_clicked",session_id:t,is_local:!0}),Promise.resolve(gs(t,e)).catch(()=>{})}},[t,gs]),Cs=e.useCallback(async()=>{},[]),xs=e.useCallback(()=>{},[]),vs=e.useCallback(()=>{ue(!1),pe(null),ge(null)},[]),ys=e.useCallback(e=>{wt(t),Z(t=>{const s=t.findIndex(t=>"user"===t.type&&"uuid"in t&&t.uuid===e);return s<0?t:t.slice(0,s)}),j5(t),ue(!1),pe(null),ge(null)},[t,wt]),bs=e.useCallback(async(e,n)=>{if(!s?.setPermissionMode)return!1;try{return await s.setPermissionMode(t,e,void 0,{chromeSkipAllPermissionChecks:n})}catch{return!1}},[s,t]),ks=al();e.useEffect(()=>{void 0!==ks&&ko(Ke)&&!ks.has(Ke)&&bs("default")},[ks,Ke,bs]);const ws=e.useCallback((e,n,a,i)=>s?.respondToToolPermission?(vt(t,e),"deny"===i&&Me(!1),s.respondToToolPermission(e,i,a),Promise.resolve()):(k.error(w.DESKTOP_API,"respondToToolPermission not available"),Promise.resolve()),[s,t,vt]),Ms=e.useMemo(()=>{if(jt)return[jt]},[jt]),_s=e.useMemo(()=>we||"idle"!==At?{activity:At,toolName:Rt,filePath:Vt,contentLength:Zt,lastActivityTime:Ht??void 0}:null,[At,Rt,Vt,Zt,we,Ht]),js=e.useMemo(()=>({id:t,updated_at:te?new Date(te).toISOString():(new Date).toISOString(),environment_id:Fc,type:"local_agent_mode_session",title:ke,session_status:is?"running":"idle",cwd:void 0,cliSessionId:Se,cuSelectedDisplayId:Ne,hostLoopMode:Te,homePath:_e,folderExists:Pe,userSelectedFolders:Xe,userSelectedProjectUuids:st,mountedProjects:lt,session_context:{sources:[],...Oe&&{model:Oe}}}),[t,te,ke,is,Se,Ne,Te,_e,Pe,Xe,st,lt,Oe]),Ss=e.useMemo(()=>Ee?{...Ee,startTime:De??void 0}:null,[Ee,De]),Ls=s?.setPermissionMode?bs:void 0,Ns=e.useMemo(()=>({type:"local_agent_mode",sessionId:t,isLoadingInitialMessages:ne,initialMessages:z,streamedMessages:Ms,sessionData:js,isLoading:ne,ipcResolved:oe,sessionLoadingError:de,sessionErrorMessage:me,sessionErrorCategory:fe,lastUserMessageUuid:Ce.current,pendingMessages:as,messages:ns,historyHasOlder:B,isLoadingOlder:W,loadOlderHistory:Jt,submitMessage:ms,applyCliModelSwitch:Fe,stopSession:fs,stopTask:hs,archiveSession:Cs,ensureConnected:xs,isSessionRunning:is,connectionState:X,lastMessageTime:te,nextReconnectTime:null,retry:vs,softRetry:vs,rewindToMessage:ys,toolPermissionRequests:xt,sendToolDecision:ws,permissionMode:Ke,chromePermissionMode:Qe,setPermissionMode:Ls,mcqAnswers:at,initializationStatus:Ss,agentActivity:_s,fsDetectedFiles:rt,showRetryButton:!1,scheduledTaskId:dt,spaceId:O,streamingResponseChars:It,promptSuggestion:pt,sdkMcpStatuses:gt,addUserSelectedFolders:tt}),[t,ne,z,Ms,js,oe,de,me,fe,as,ns,B,W,Jt,ms,fs,hs,Cs,xs,is,X,te,vs,ys,xt,ws,Ke,Qe,Ls,at,Ss,_s,rt,dt,O,It,pt,gt,tt]),Is=e.useRef(Ns);return Is.current=Ns,e.useEffect(()=>{const e=Is.current,t=n.getState().sessionContext;t!==e&&((re.current||e.isLoading)&&t?.sessionId===e.sessionId&&t.isLoading===e.isLoading||t&&vT(t,e)||n.setState({sessionContext:e}))}),null}function J8({isOpen:s,onClose:n,onSubmit:a,feedbackType:i,messageUuid:r,sessionId:o,cliSessionId:l,apiMessageIds:c}){const d=JS(),{track:u}=ae(),m=e.useId(),p="raven"===wn(),f=e.useId(),g=e.useId(),[h,C]=e.useState(""),[x,v]=e.useState(Mn.FLAG),y=e.useMemo(()=>[{value:Mn.FLAG_BUG,label:d.formatMessage({defaultMessage:"UI bug",id:"0uIYueAyDB"})},{value:Mn.FLAG_FACTS,label:d.formatMessage({defaultMessage:"Not factually correct",id:"topE9Q6MGe"})},{value:Mn.FLAG_INCOMPLETE,label:d.formatMessage({defaultMessage:"Incomplete response",id:"ZNEcy7OM5r"})},{value:Mn.FLAG_CONTENT,label:d.formatMessage({defaultMessage:"Report content",id:"vfibES+z8T"})},{value:Mn.FLAG_CONSTITUTION,label:d.formatMessage({defaultMessage:"Not in keeping with Claude's Constitution",id:"9Etfi2CcbL"})},{value:Mn.FLAG_OTHER,label:d.formatMessage({defaultMessage:"Other",id:"/VnDMl81rh"})}],[d]),b=e.useCallback(()=>{const e="upvote"===i?Mn.UPVOTE:x===Mn.FLAG?Mn.FLAG_OTHER:x;u({event_key:"claude_cowork.message.feedback",sessionId:o,cliSessionId:l,type:e,thumbs:"upvote"===i?"positive":"negative",message:h||void 0,messageId:r,apiMessageIds:c}),C(""),v(Mn.FLAG),a?.(),n()},[i,x,u,o,l,h,r,c,a,n]),k=e.useCallback(()=>{C(""),v(Mn.FLAG),n()},[n]),w="upvote"===i?d.formatMessage({defaultMessage:"Give positive feedback",id:"FGCv00cdfW"}):d.formatMessage({defaultMessage:"Give negative feedback",id:"ngzzQUJCXB"});return t.jsx(lN.Root,{open:s,onOpenChange:e=>!e&&k(),children:t.jsxs(lN.Popup,{size:"md",children:[t.jsx(lN.Header,{showClose:!1,children:w}),"flag"===i&&t.jsx(CN,{label:d.formatMessage({defaultMessage:"What type of issue do you wish to report? (optional)",id:"IFWIi9rs1t"}),placeholder:d.formatMessage({defaultMessage:"Select...",id:"724CrE1YuG"}),searchable:!1,items:y,value:x===Mn.FLAG?null:x,onChange:e=>{v(e??Mn.FLAG)}}),x===Mn.FLAG_CONTENT?t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"text-text-300 border-0.5 border-border-300 rounded-lg p-12 text-sm",children:t.jsx(XS,{defaultMessage:"Please use this <link>form</link> to report violative content.",id:"QSjqvNNsUq",values:{link:e=>t.jsx(ct,{href:_n,target:"_blank",children:e})}})}),t.jsx(lN.Footer,{children:t.jsx(rN,{variant:"secondary",onClick:k,children:t.jsx(XS,{defaultMessage:"Cancel",id:"47FYwba+bI"})})})]}):t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"mt-4 flex flex-col",children:[t.jsx("label",{id:f,htmlFor:m,className:"text-text-400 mb-2 text-sm",children:t.jsx(XS,{defaultMessage:"Please provide details: (optional)",id:"og1W/bIZdx"})}),t.jsx(dN,{id:m,"aria-labelledby":f,className:"text-sm",placeholder:"flag"===i?d.formatMessage({defaultMessage:"What was unsatisfying about this response?",id:"+DB/t6WTki"}):d.formatMessage({defaultMessage:"What was satisfying about this response?",id:"yJFWG3mK1I"}),value:h,onChange:e=>{C(e.target.value)}})]}),t.jsx("p",{id:g,className:"text-text-500 mt-3 italic leading-tight",children:t.jsx("small",{children:t.jsx(XS,{defaultMessage:"Submitting this report will send the entire current conversation to Anthropic for future improvements to our models. <link>Learn More</link>",id:"laRJ009b4f",values:{link:e=>t.jsx(ct,{target:"_blank",rel:"noopener",href:p?w$:k$,children:e})}})})}),t.jsxs(lN.Footer,{children:[t.jsx(rN,{variant:"secondary",onClick:k,children:t.jsx(XS,{defaultMessage:"Cancel",id:"47FYwba+bI"})}),t.jsx(rN,{variant:"primary","aria-describedby":g,onClick:b,children:t.jsx(XS,{defaultMessage:"Submit",id:"wSZR47Y5kj"})})]})]})]})})}function X8({isOpen:s,onClose:n,messageUuid:a,apiMessageIds:i}){const r=z8();return e.useEffect(()=>{s&&!r&&n()},[s,r,n]),r?t.jsx(J8,{isOpen:s,onClose:n,feedbackType:"flag",messageUuid:a,apiMessageIds:i,sessionId:r.sessionId,cliSessionId:r.sessionData.cliSessionId}):null}const e9=AL({bodyKey:IL().min(1),doubleBodyKey:IL().min(1).optional(),helpCenterUrl:IL().startsWith("https://").optional().catch(void 0)}).optional().catch(void 0),t9=DL(IL(),DL(IL(),e9).optional().catch(void 0)).nullable().transform(e=>e??{}),s9={};function n9({category:e,modelId:t,isDouble:s}){const n=Qa("cowork_kiwano_copy_v2",s9,t9),a=JS();if(!t)return;const i=function(e,t,s,n){const a=null!==t?e[t]:void 0,i=e.default,r=a?.[s]??a?.default??i?.[s]??i?.default;if(r)return{key:n?r.doubleBodyKey??r.bodyKey:r.bodyKey,helpCenterUrl:r.helpCenterUrl}}(n,e,Kc(t),s);if(!i)return;const r=Yc(i.key),o=gs({id:r,intl:a});return"string"==typeof o&&o.trim()?{bodyId:r,helpCenterUrl:i.helpCenterUrl}:void 0}function a9(e){return t.jsx(i9,{...e})}function i9({model:s,conversationUuid:n,lastMessage:a,fallback:i,stopDetails:r,onRetryWithFallback:o,coworkRefusedMessage:l,onEditAndRetry:c,onStartNewSession:d,editRetryModelId:u,coworkDoubleBlock:m,coworkOriginalModelId:p,projectUuid:f,onRetryOriginal:g,onRetryWithoutFiles:h}){const[C,x]=e.useState(!1),v=n??l?.uuid,[y,b]=e.useState(),k=!!y&&y===v,w=e=>b(e?v:void 0);e.useEffect(()=>{x(!1),b(void 0)},[v]);const M=Nn(n??""),_=H$(n??null),j=P$(a?.created_at),S=!a?.content?.some(e=>"flag"!==e.type&&!("text"===e.type&&""===e.text)),L=!!n&&M<=1&&S&&j,N=ce("cai_avcoat",L),I=In("cai_avcoat"),T=L?N:I,A=sa("cai_avcoat"),E=T&&A,R=E&&!!n&&M<=1&&S,D=R&&"unavailable"!==_.state&&j,{track:H}=ae(),P=e.useRef(new Set);e.useEffect(()=>{D&&v&&!P.current.has(v)&&(P.current.add(v),H({event_key:"claudeai.safety.block_scanner.cta_shown"}))},[D,v,H]);const{reset:U}=_;e.useEffect(()=>{R||(b(void 0),U())},[R,U]);const{nameFor:O}=Ae("chat"),F=Qc(n),V=u??F?.from_model.model??s,z=!!F||!!m,Z=!n,B=n9({category:m?.category??r?.category??null,modelId:p,isDouble:z}),q=B?.bodyId,W=B?.helpCenterUrl??"https://support.claude.com/en/articles/14604842-real-time-cyber-safeguards-on-claude",$=new URL(function(e){const t=e?.match(/https:\/\/claude\.com\/form\/\S+/);return t?.[0].replace(/[.,;:!?)]+$/,"")}(r?.explanation)??"https://claude.com/form/cyber-use-case");$.searchParams.set("open_in_browser","1");const G=$.toString(),K=O(p??V),Y=a?.parent_message_uuid,Q=!(!n||!a)||!!l,J=c??(Y&&n?()=>Rn.getState().requestEdit(n,Y,V):void 0),X=e=>{n&&H({event_key:e,conversation_uuid:n,original_model:V,fallback_model:i.fallbackModelName})};return t.jsxs(t.Fragment,{children:[n&&a?t.jsx(r9,{isOpen:C,onClose:()=>x(!1),conversationUuid:n,lastMessage:a}):l?t.jsx(X8,{isOpen:C,onClose:()=>x(!1),messageUuid:l.uuid,apiMessageIds:l.apiMessageId?[l.apiMessageId]:void 0},l.uuid):null,t.jsx("div",{className:"mx-2 md:mx-0","data-testid":"asl3-stop-warning",children:t.jsx("div",{className:`relative z-[1] flex flex-col min-h-[98px] py-3.5 px-6 rounded-[20px] bg-bg-000 gap-1 ${Jc}`,children:t.jsxs("div",{className:"flex flex-col gap-1 text-sm flex-1",children:[t.jsxs("div",{className:"flex flex-wrap items-center gap-x-4 gap-y-1",children:[t.jsx("h4",{className:"font-bold",children:t.jsx(XS,{defaultMessage:"Chat paused",id:"bL7dVUkHa0"})}),(D||J||d)&&t.jsxs("div",{className:"ml-auto flex flex-wrap items-center gap-x-4 gap-y-1 text-text-300",children:[d&&t.jsx("button",{type:"button",className:"underline underline-offset-2 cursor-pointer hover:text-text-100",onClick:d,children:t.jsx(XS,{defaultMessage:"Start a new task",id:"cFOS+GAOMt"})}),D&&t.jsxs("button",{type:"button","aria-haspopup":"dialog",className:"underline underline-offset-2 cursor-pointer hover:text-text-100",onClick:()=>{H({event_key:"claudeai.safety.block_scanner.cta_clicked"}),w(!0)},children:[t.jsx("span",{className:"hidden sm:inline",children:t.jsx(hs,{id:"13nbsio"})}),t.jsx("span",{className:"sm:hidden",children:t.jsx(hs,{id:"pby0t9"})})]}),J&&t.jsx("button",{type:"button",className:"underline underline-offset-2 cursor-pointer hover:text-text-100",onClick:()=>{X("claudeai.safety.hard_block_card.edit_retry_clicked"),J()},children:E?t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"hidden sm:inline",children:t.jsx(XS,{defaultMessage:"Edit and retry with {fromName}",id:"zchBxMyJY1",values:{fromName:O(V)}})}),t.jsx("span",{className:"sm:hidden",children:t.jsx(hs,{id:"156di0i",dangerouslyVisiblePublicValues:{fromName:O(V)}})})]}):t.jsx(XS,{defaultMessage:"Edit and retry with {fromName}",id:"zchBxMyJY1",values:{fromName:O(V)}})})]})]}),t.jsxs("p",{className:"text-text-300 pt-1",children:[q?t.jsx(hs,{id:q,dangerouslyVisiblePublicValues:{model:K,formLink:e=>t.jsx("a",{className:"underline cursor-pointer",href:G,target:"_blank",children:e}),helpCenterLink:e=>t.jsx("a",{className:"underline cursor-pointer",href:W,target:"_blank",children:e})}}):Z?t.jsx(hs,{id:"1p5h2he"}):t.jsx(v$,{explanation:r?.explanation,fromModelName:O(V),doubleBlockFromName:z?O(V):void 0})," ",t.jsx(y$,{fallbackModelName:i.displayName,onContinue:o&&(()=>{X("claudeai.safety.hard_block_card.continue_clicked"),o()}),onFeedback:()=>{X("claudeai.safety.hard_block_card.feedback_clicked"),x(!0)},feedbackDisabled:!Q,learnMoreUrl:r?.learn_more_url,blockedModelId:p??V,urls:r?.urls})]})]})})}),R&&n&&t.jsx(d$,{isOpen:k,onOpenChange:w,scan:_,projectUuid:f,fallbackDisplayName:i.displayName,onRetryWithFallback:o,onRetryOriginal:g?()=>g(V):void 0,onRetryWithoutFiles:h?()=>h(V):void 0,onEditAndRetry:J},n)]})}function r9({isOpen:e,onClose:s,conversationUuid:n,lastMessage:a}){const i=ut();return t.jsx(M$,{isOpen:e,showOptions:!1,conversationUuid:n,message:a,requestedFeedbackType:Mn.SC_FALSE_POSITIVE,setRequestedFeedbackType:()=>{},onClose:s,onSuccess:()=>{s(),i.addSuccess(t.jsx(XS,{defaultMessage:"Thanks for your feedback!",id:"coh2h6fh1P"}))}},n)}const o9=fn(()=>a(()=>import("./c2b471421-S3eUxIKp.js"),__vite__mapDeps([0,1]),import.meta.url),{}),l9=e.memo(function({placement:s,onRetry:n,onRetryWithoutFiles:a,isStreaming:i=!1,hasQuestionCard:r=!1,wideTuck:o=!1,hasComposerUsageRing:l=!1}){const{conversation:c}=J(),d=Ie(),u=Xc(c?.id),{warning:m,ringOwnedWarning:p,isSuppressibleWarning:f,inputWarningBannerShowing:g,bandTheme:h,onClick:C,verificationCodePromptState:x,credentialNudgeState:b,coworkLongTaskMobileBannerState:k,coworkLoadingTipState:w,coworkMcpUpsellState:M,cdArtifactUpsellState:_,cdDesignFileUpsellState:j,coworkUpsellState:S,coworkGuestPassUpsellState:L,c4excelUpsellState:N,c4pptUpsellState:I,c4wordUpsellState:T,claudeCodeInstallNudgeState:A}=i5({onRetry:n,isRunningToolOrThinking:u,isStreaming:i,hasQuestionCard:r,hasComposerUsageRing:l}),E=y("ef_chat_banner_placement"),R=MI(c?.id),{dismiss:D}=me(),H=function({conversationUuid:t,isStreaming:s,fallbackNoticeEligible:n}){const a=re(e=>e.model),i=An(t??"")?.model,r=HQ(e=>e.noteInitialModel),o=HQ(e=>e.rebaselineInitialModel),l=Oa(t),c=ce("cai_kiwano",!!l&&n)&&n?l:void 0;e.useEffect(()=>{t&&i&&(c&&i===c?o(t,i):r(t,i))},[t,i,c,r,o]);const{account:d}=v(),{mutate:u}=Fa();return e.useEffect(()=>{if(!d)return;const e="composerNudgeOptOutMigrated:v1";try{if(localStorage.getItem(e))return;const t=[];if(BQ()&&t.push(OQ),qQ()&&t.push(FQ),t.length>0){const e=(new Date).toISOString();for(const n of t)localStorage.setItem(`banner_dismissed:${n}`,e);const s=d.settings?.dismissed_claudeai_banners??[];u({dismissed_claudeai_banners:[...s,...t.filter(e=>!s.some(t=>t.banner_id===e)).map(t=>({banner_id:t,dismissed_at:e}))]})}localStorage.setItem(e,"true"),localStorage.removeItem(VQ),localStorage.removeItem(zQ)}catch{}},[d,u]),e.useMemo(()=>({conversationUuid:t,isStreaming:s,pinnedModel:i,lastFallbackToModel:c}),[t,s,i,c,a])}({conversationUuid:c?.id,isStreaming:i,fallbackNoticeEligible:f}),P=E?m?null:t.jsx(JQ,{targetingContext:H,selectionScope:c?.id}):b?t.jsx(OG,{state:b}):R&&!m&&c?.id?t.jsx(o9,{conversationUuid:c.id}):k?t.jsx(nJ,{warning:t.jsx(JG,{state:k}),placement:s,theme:"accent",wideTuck:o,announce:!1}):w?t.jsx(AY,{state:w}):M?t.jsx(EG,{variant:M.variant,connectorNames:M.connectorNames,onDismiss:M.dismiss}):_?t.jsx(UZ,{triggerKey:_.triggerKey,onDismiss:_.dismiss}):j?t.jsx(JZ,{triggerKey:j.triggerKey,onDismiss:j.dismiss}):S?t.jsx(XQ,{coworkVariant:S.variant,triggeredByCodeArtifact:S.triggeredByCodeArtifact,markMultifileFamilyOnDisplay:S.attachmentTriggered,onCoworkDismiss:S.dismiss,onCcDismiss:()=>{D("claude_code_install_nudge"),D("cowork_upsell_banner")},onCcAction:()=>D("cowork_upsell_banner")}):L?t.jsx(wG,{referralLink:L.referralLink,remainingPasses:L.remainingPasses,formattedRewardAmount:L.formattedRewardAmount,onDismiss:L.dismiss}):N?t.jsx(aZ,{triggerType:N.triggerType,surface:N.surface,onDismiss:N.dismiss}):I?t.jsx(fZ,{triggerType:I.triggerType,surface:I.surface,onDismiss:I.dismiss}):T?t.jsx(MZ,{triggerType:T.triggerType,surface:T.surface,onDismiss:T.dismiss}):null,U=E||!A||P?null:t.jsx(K$,{trigger:A.trigger,onDismiss:A.dismiss,hasTrackedDisplayRef:A.hasTrackedDisplayRef,fallback:null}),O=E||g||m||P||U?null:t.jsx(tJ,{ctx:H}),F=Qc(c?.id),V=ed(F?void 0:c?.id),z=F??V,Z=ce("cai_kiwano",!!z&&f)&&f?z:void 0,B=Z||x?null:P??U??O;return t.jsxs(t.Fragment,{children:[t.jsx(BG,{active:!!x}),x&&t.jsx(qG,{state:x}),t.jsx(F$,{fallback:Z,conversationUuid:c?.id,projectUuid:d,onRetry:n,isStreaming:i,onRetryWithoutFiles:a}),B,p&&t.jsx(fI.Provider,{value:!0,children:t.jsx("div",{className:"hidden","aria-hidden":!0,children:p})}),t.jsx(nJ,{warning:B||Z||x?null:m,placement:s,theme:h,onClick:C,wideTuck:o})]})});const c9=e.memo(({path:s,onRemove:n})=>{const a=JS(),i=function(e){const t=e.replace(/[/\\]+$/,""),s=Math.max(t.lastIndexOf("/"),t.lastIndexOf("\\"));return s>=0&&t.slice(s+1)||t}(s),r=e.useCallback(e=>{e.stopPropagation(),n()},[n]);return t.jsxs("div",{className:dt("group inline-flex items-center gap-1.5 pl-2.5 pr-1 py-1","bg-surface-3 hover:bg-surface-1 rounded-full border","shadow-none hover:shadow-sm transition-[background-color,box-shadow]","text-body text-secondary select-none"),title:s,"data-testid":"pending-folder-chip",children:[t.jsx($L,{name:"FolderPlus",size:"xs",className:"text-muted flex-shrink-0"}),t.jsx("span",{className:"truncate max-w-[28ch]",children:i}),t.jsx("button",{type:"button",className:dt("flex items-center justify-center h-5 w-5 rounded-full overflow-hidden","[@media(hover:hover)]:w-0 [@media(hover:hover)]:group-hover:w-5 focus-visible:w-5","text-muted hover:text-secondary hover:bg-alpha-2","transition-[width,color,background-color] duration-150 ease-[cubic-bezier(0,0,0.2,1)]"),onClick:r,"aria-label":a.formatMessage({defaultMessage:"Remove folder {name}",id:"+4tCWjrGJc"},{name:i}),children:t.jsx($L,{name:"X",size:"xs"})})]})});c9.displayName="PendingFolderChip";function d9(e,t){const s=e.trim();return s.length>t?`${ad(s.slice(0,t-1))}\u2026`:s}const u9=e.memo(({comment:s,onClick:n,onRemove:a})=>{const i=JS(),r=d9(s.text,35),o=s.target.anchor,l=td(s.target.document),c="plaintext"!==o.kind?"":o.endLine===o.startLine?`${o.startLine}`:`${o.startLine}\u2013${o.endLine}`,d="text-quote"===o.kind?d9(sd(o.exact,80),40):"",u=e.useCallback(e=>{e.stopPropagation(),a()},[a]);return t.jsxs("div",{className:dt("group inline-flex items-center gap-1.5 pl-2.5 pr-1 py-1","bg-bg-000 hover:bg-bg-100 rounded-full border border-border-300","shadow-none hover:shadow-sm transition-[background-color,box-shadow]","text-sm text-text-200 cursor-pointer select-none"),onClick:n,title:`${l}${c?`:${c}`:""}\n\n${s.text}`,role:"button",tabIndex:0,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),n())},children:[t.jsx(AA,{size:14,className:"text-text-400 flex-shrink-0"}),t.jsx("span",{className:"truncate max-w-[28ch]",children:r}),t.jsx("button",{type:"button",className:dt("flex items-center justify-center h-5 w-5 rounded-full overflow-hidden","[@media(hover:hover)]:w-0 [@media(hover:hover)]:group-hover:w-5 focus-visible:w-5","text-text-400 hover:text-text-200 hover:bg-bg-400","transition-[width,color,background-color] duration-150 ease-[cubic-bezier(0,0,0.2,1)]"),onClick:u,onKeyDown:e=>e.stopPropagation(),"aria-label":c?i.formatMessage({defaultMessage:"Remove review comment for {document} line {line}",id:"/gOMz0AwBs"},{document:l,line:c}):d?i.formatMessage({defaultMessage:'Remove review comment on "{snippet}" in {document}',id:"QV0rShgNuB"},{document:l,snippet:d}):i.formatMessage({defaultMessage:"Remove review comment for {document}",id:"frVAUh0ODW"},{document:l}),children:t.jsx(nd,{size:12})})]})});function m9({uuid:s,syncSource:n,onRemove:a,isEditable:i}){const{mutateAsync:r}=id(),o=e.useCallback(()=>{r(s),a?.()},[r,s,a]),{projectUuid:l}=rd();return t.jsx(wW,{location:"chat",projectUuid:l,syncSource:n,handleRemove:i?o:void 0,isEditable:i})}function p9({attachments:e,files:s,syncSourceResults:n,onRemoveAttachment:a,onRemoveFile:i,onRetryFile:r,onRemoveSyncSource:o,isUploadingFile:l,isUploadingSync:c,deletingFileUuid:d,onAttachmentClick:u,reviewComments:m=[],onRemoveReviewComment:p,onReviewCommentClick:f,pendingFolders:g=[],onRemovePendingFolder:h}){const C=od(e=>e.isLoadingMentionData),x=e.length>0||s.length>0||n.length>0||l||C||c;return t.jsxs("div",{className:"flex flex-col gap-2",children:[(m.length>0||g.length>0)&&t.jsxs("div",{className:"flex flex-wrap gap-1.5",children:[g.map(e=>t.jsx(c9,{path:e,onRemove:()=>h?.(e)},e)),m.map(e=>t.jsx(u9,{comment:e,onClick:()=>f?.(e),onRemove:()=>p?.(e.id)},e.id))]}),x&&t.jsxs("div",{className:"flex flex-row gap-3 overflow-x-auto p-2 -m-2",children:[e.map((e,s)=>t.jsx(JB,{file:e,handleRemove:()=>a(s),handleClick:e.encodingPending&&e.encodingPendingId&&u?()=>u(e.encodingPendingId):void 0,isEditable:!0},s)),s.map((e,s)=>t.jsx(JB,{file:e,showWarnings:!0,handleRemove:()=>i(s),handleRetry:e.cloudRefError&&r?()=>r(s):void 0,isLoading:Boolean(e.cloudRefPromise),isEditable:!0,disabled:d===qt(e)},e.file_uuid)),t.jsx(cq,{isShown:l||C,size:"normal"},"file-upload-loading"),n.map(({syncSource:e,uuid:s})=>t.jsx(m9,{uuid:s,syncSource:e,onRemove:()=>o(s),isEditable:!0},s)),t.jsx(cq,{isShown:c,size:"normal"},"sync-upload-loading")]})]})}function f9({hasAttachments:e,attachments:s,files:n,syncSourceResults:a,isUploadingFile:i,isUploadingSync:r,deletingFileUuid:o,onRemoveAttachment:l,onRemoveFile:c,onRetryFile:d,onRemoveSyncSource:u,onAttachmentClick:m,reviewComments:p,onRemoveReviewComment:f,onReviewCommentClick:g,pendingFolders:h,onRemovePendingFolder:C}){return t.jsx(nA,{initial:!1,children:e&&t.jsx(sA.div,{className:"overflow-hidden",initial:{height:0},animate:{height:"auto"},exit:{height:0},children:t.jsx("div",{className:"p-3.5 pb-2.5",children:t.jsx(p9,{isUploadingFile:i,isUploadingSync:r,attachments:s,files:n,syncSourceResults:a,deletingFileUuid:o,onAttachmentClick:m,onRemoveAttachment:l,onRemoveFile:c,onRetryFile:d,onRemoveSyncSource:u,reviewComments:p,onRemoveReviewComment:f,onReviewCommentClick:g,pendingFolders:h,onRemovePendingFolder:C})})},"attachments")})}function g9(){const{hasAttachments:t,isUploadingFile:s,isAttachingResource:n,setEncodingModalAttachmentId:a,conversation:i,reviewStoreKey:r,isAgentMode:o,localSessionId:l,onReviewCommentClick:c,pendingFolders:d,removePendingFolder:u}=J(),m=cd(r),{track:p}=ae(),f=e.useMemo(()=>({review_surface:o?"cowork":"chat",conversation_uuid:i?.id??null,session_id:l}),[o,i?.id,l]),g=e.useCallback(e=>{const t=m.find(t=>t.id===e);t&&p({event_key:"claudeai.review_comment.removed",...f,comment_id:e,...dd(t.target,t.text,{source:t.source,replyToCommentUuid:t.replyToCommentUuid})}),ud(r,e)},[m,r,f,p]),h=e.useCallback(e=>{c?.(e),md(r,e.id)},[c,r]),{attachments:C,files:x,syncSourceUuids:y,setAttachments:b,setFiles:M,setSyncSourceUuids:_}=re(e=>({attachments:e.attachments,files:e.files,syncSourceUuids:e.syncSourceUuids,setAttachments:e.setAttachments,setFiles:e.setFiles,setSyncSourceUuids:e.setSyncSourceUuids})),[j]=Et(),S=i?.id||j,{addError:L}=ut(),N=Xi().isAvailable;e.useEffect(()=>{const e=e=>"wiggle"===e.derivedFor&&N||!e.localPath&&!e.derivedFor&&(null!==e.path&&void 0!==e.path||e.file_kind===Zt.WiggleVM||N&&!o);return pd(()=>{!i?.id&&x.some(e)&&(M(t=>t.filter(t=>!e(t))),L({defaultMessage:"File attachments were removed because the draft conversation was reset after an unfinished voice chat. Please attach them again.",id:"9MHCeyyO3i"},{errorContext:{tags:{source:"abandoned_voice_rotation"}}}))})},[i?.id,x,M,L,N,o]);const{deleteFile:I,deletingFileUuid:T}=function({conversationUuid:t,wiggleEnabled:s}){const{activeOrganization:n}=v(),{addError:a}=ut(),[i,r]=e.useState(null),o=e.useRef(!1);return{deleteFile:e.useCallback(async e=>{if(!s)return!1;if(!t||!n?.uuid)return k.error(w.CHAT_COMPLETION,"wiggle_file_delete_skipped_missing_conversation",{fileUuid:e,conversationUuid:t,orgUuid:n?.uuid}),!1;if(o.current)return!1;o.current=!0,r(e);try{return await ld(e,{orgUuid:n.uuid,conversationUuid:t,wiggleEnabled:!0}),!0}catch(i){return k.error(w.CHAT_COMPLETION,"wiggle_file_delete_failed",{error:i,fileUuid:e}),a("File couldn't be deleted. You can try again.",{error:i,errorContext:{tags:{source:"file_delete"}}}),!1}finally{o.current=!1,r(null)}},[t,s,n?.uuid,a]),deletingFileUuid:i}}({conversationUuid:S,wiggleEnabled:N}),A=fd(y),E=e.useMemo(()=>A.map(({data:e},t)=>({syncSource:e,uuid:y[t]})),[A,y]),R=e.useCallback(e=>{b(t=>t.filter((t,s)=>s!==e))},[b]),D=e.useCallback(async e=>{const t=x[e];t&&(t.cloudRefAbort?.abort(new DOMException("removed","AbortError")),M(t=>t.filter((t,s)=>s!==e)),"wiggle"===t.derivedFor&&N&&await I(qt(t)))},[x,M,I,N]),H=e.useCallback(e=>{M(t=>t.map((t,s)=>s===e?{...t,cloudRefError:void 0,cloudRefPromise:void 0}:t))},[M]),P=e.useCallback(e=>{_(t=>t.filter(t=>t!==e))},[_]);return{hasAttachments:t,attachments:C,files:x,syncSourceResults:E,isUploadingFile:s,isUploadingSync:n,deletingFileUuid:T??void 0,onRemoveAttachment:R,onRemoveFile:D,onRetryFile:H,onRemoveSyncSource:P,onAttachmentClick:a,reviewComments:m,onRemoveReviewComment:g,onReviewCommentClick:h,pendingFolders:d,onRemovePendingFolder:u}}u9.displayName="ReviewCommentChip";function h9(){const{onPasteFiles:t,promptInputRef:s,validateMaxUploadLimit:n}=J(),a=re(e=>e.setAttachments),i=za(),{disableFileAttachments:r}=e.useContext(gd),o=function(t,s,n,a,i){const[r,o]=e.useState(!1);return e.useEffect(()=>{const e=e=>{"Shift"===e.key&&o(!0)},t=e=>{"Shift"===e.key&&o(!1)};return window.addEventListener("keydown",e),window.addEventListener("keyup",t),()=>{window.removeEventListener("keydown",e),window.removeEventListener("keyup",t)}},[]),e.useCallback(e=>{const o=e.clipboardData?.files?.length>0,l=e.clipboardData?.getData("text/plain"),c=l?.length,d=o&&Array.from(e.clipboardData.files).some(e=>e.type.startsWith("image/"));if(e.clipboardData.types.includes("text/plain")&&e.clipboardData.types.includes("text/html")&&d){const t=e.clipboardData.getData("text/html");if(t.includes("urn:schemas-microsoft-com:office:")||t.includes("content=Word.Document")||t.includes("content=PowerPoint.Slide")||t.includes("content=Excel.Sheet")||t.includes(' class="Mso')){const t=e.clipboardData.getData("text/plain");if(Boolean(t)){e.preventDefault();const s=i?.current?.getEditor();return void(s&&s.commands.insertContent(t))}}}if(o)return s({newUploads:Array.from(e.clipboardData.files)})&&n(e.clipboardData.files),void e.preventDefault();if(!s({numNewPotentialAttachments:1,showError:!1}))return;const u=new Blob([l]).size;a||!c||u<4096||r||(e.preventDefault(),t(e=>[...e,{file_name:"",file_size:u,file_type:"txt",extracted_content:l}]))},[s,t,n,r,a,i])}(a,n,t,i||!0===r,s);return hd(e=>{s?.current?.getEditor()?.isFocused&&o(e)})}function C9(e){return{type:"doc",content:e.split("\n").map(e=>({type:"paragraph",content:e?[{type:"text",text:e}]:[]}))}}function x9(e){return(e.content??[]).every(e=>!e.content||0===e.content.length)}function v9(e,t){const{selection:s,doc:n}=e.state;if(!s.empty)return!1;const a="start"===t?_I.atStart(n):_I.atEnd(n);return s.$anchor.pos===a.$anchor.pos}function y9({resetKey:t,getEditor:s,getHumanPrompts:n,onNavigatingChange:a,textToDoc:i,caretAfterRecall:r="start"}){const o=e.useRef(null),l=e.useRef(null),c=e.useRef(null),d=e.useRef(-1),[u,m]=e.useState(null);e.useEffect(()=>{o.current=null,d.current=-1,m(null)},[t]);const p=e.useRef(n);e.useEffect(()=>{p.current=n},[n]);const f=e.useRef(a);e.useEffect(()=>{f.current=a},[a]);const g=e.useRef(i);e.useEffect(()=>{g.current=i},[i]);const h=e.useCallback(()=>m(null),[]);return{onKeyDown:e.useCallback(e=>{if(!t)return!1;if("ArrowUp"!==e.key&&"ArrowDown"!==e.key)return null===o.current||e.nativeEvent.isComposing||e.metaKey||e.ctrlKey||e.altKey||1!==e.key.length&&"Backspace"!==e.key&&"Delete"!==e.key&&"Enter"!==e.key||(f.current?.(!1),m(null)),!1;if(e.shiftKey||e.metaKey||e.ctrlKey||e.altKey)return!1;if(e.nativeEvent.isComposing)return!1;const n=s();if(!n)return!1;if(!n.view.dom.contains(e.target))return!1;const a="ArrowUp"===e.key,i=a?"start":"end",u="end"===r?function(e,t){if(v9(e,t))return!0;const{selection:s,doc:n}=e.state;if(!s.empty)return!1;const a="start"===t?_I.atStart(n):_I.atEnd(n);return s.$anchor.start()===a.$anchor.start()&&e.view.endOfTextblock("start"===t?"up":"down")}(n,i):v9(n,i);if(!u)return!1;const h=p.current();if(0===h.length)return!1;const C="end"===r||!a,x=e=>{n.chain().setContent(e).command(({tr:e,dispatch:t})=>(t&&e.setSelection(C?_I.atEnd(e.doc):_I.atStart(e.doc)),!0)).scrollIntoView().run(),c.current=JSON.stringify(n.getJSON())};let v,y;if(h.length!==d.current&&(d.current=h.length,o.current=null,l.current=null,m(null)),"end"===r&&null!==o.current&&null!==c.current&&JSON.stringify(n.getJSON())!==c.current&&(o.current=null,l.current=null,f.current?.(!1),m(null)),a)if(null===o.current){if(!n.isEmpty)return!1;const e=n.getJSON();l.current=e,y=!x9(e),v=h.length-1}else y=null!==l.current&&!x9(l.current),v=Math.max(0,o.current-1);else{if(null===o.current)return!1;y=null!==l.current&&!x9(l.current),v=o.current+1}return v===o.current?(e.preventDefault(),!0):(e.preventDefault(),v>=h.length?(o.current=null,f.current?.(!1),x(l.current??C9("")),l.current=null,m(null),!0):(o.current=v,f.current?.(!0),x((g.current??C9)(h[v])),m({index:v+1,total:h.length,hasDraft:y}),!0))},[t,s,r]),navState:u,dismissNavState:h}}const b9=fT(e=>({role:null,resolvedRequestId:null,autoResolveFailedFor:null,set:(t,s)=>e({role:t,resolvedRequestId:s}),markResolved:t=>e({resolvedRequestId:t}),clear:()=>e({role:null}),clearResolution:t=>e(e=>e.resolvedRequestId===t?{role:null,resolvedRequestId:null}:e),markAutoResolveFailed:t=>e(e=>e.resolvedRequestId===t?{role:null,resolvedRequestId:null,autoResolveFailedFor:t}:{autoResolveFailedFor:t})})),k9=tL({productManagement:{defaultMessage:"Product management",id:"4UtfB0TvB4",workFunction:"Product Management"},engineering:{defaultMessage:"Engineering",id:"hwL7a0I9HE",workFunction:"Engineering"},humanResources:{defaultMessage:"Human resources",id:"Wy/pjxrXEI",workFunction:"Human Resources"},finance:{defaultMessage:"Finance",id:"Fm3M+yFIbr",workFunction:"Finance"},marketing:{defaultMessage:"Marketing",id:"O9mDkAC7UB",workFunction:"Marketing"},sales:{defaultMessage:"Sales",id:"c8nvms5K2+",workFunction:"Sales"},operations:{defaultMessage:"Operations",id:"MQbmj7g3BG",workFunction:"Operations"},dataScience:{defaultMessage:"Data science",id:"UM/XMG5GQu",workFunction:"Data Science"},design:{defaultMessage:"Design",id:"zmjMfMgJOo",workFunction:"Design"},scientist:{defaultMessage:"Scientist",id:"gyxqABc0/g",workFunction:"Scientist"},legal:{defaultMessage:"Legal",id:"7oFrM64tU+",workFunction:"Legal"},student:{defaultMessage:"Student",id:"UvFUuqXLIg",workFunction:"Student"},founder:{defaultMessage:"Founder",id:"s+uKG6QDMq",workFunction:"Founder"},healthcare:{defaultMessage:"Healthcare",id:"pA6Y4LJoM2",workFunction:"Healthcare"}});function w9(e){return Object.values(k9).map(t=>({label:e.formatMessage(t),analyticsLabel:t.defaultMessage,workFunction:t.workFunction}))}function M9(){const e=aa(e=>e.sessionContext?.sessionId);return j8(t=>e?t.permissionsBySessionId[e]?.find(e=>sc(e.toolName)):void 0)}function _9(){const{data:e,isLoading:t}=wB();if(t)return"loading";const s=e?.work_function;return s&&"Other"!==s?s:null}function j9(){const e=_9();return"loading"===e?"loading":null!==e}const S9=e.memo(({pendingRequest:s})=>{const n=JS(),{track:a}=ae(),i=aa(e=>e.sessionContext?.sendToolDecision),r=aa(e=>e.sessionContext?.sessionId),o=e.useMemo(()=>w9(n),[n]),{data:l,isSuccess:c}=wB(),{mutate:d}=MB(),u=l?.work_function??null,m=c&&(null===u||"Other"===u),[p,f]=e.useState(null),g=b9(e=>e.resolvedRequestId===s.requestId),h=e.useCallback(({label:e,analyticsLabel:t,workFunction:n})=>{if(null!==p||g||!i)return;f(e);const o=m&&n!==u;o&&d({work_function:n}),b9.getState().set(e,s.requestId),i(s.requestId,s.toolUseId,{role:e},"once").then(()=>{a({event_key:"claudeai.setup_cowork.role_selected",role_label:t,work_function:n,source:"chip",persist_attempted:o,session_id:r})},()=>{b9.getState().clearResolution(s.requestId),f(null)})},[p,g,s,i,a,r,m,u,d]),C=e.useCallback(()=>{null===p&&!g&&i&&(b9.getState().markResolved(s.requestId),i(s.requestId,s.toolUseId,{dismissed:!0},"once").then(()=>{a({event_key:"claudeai.setup_cowork.role_picker.dismissed",session_id:r})},()=>{b9.getState().clearResolution(s.requestId)}))},[p,g,s,i,a,r]),x=null!==p||g;return t.jsxs("div",{className:dt("mx-2 mb-2 md:mx-0 flex flex-col gap-3 rounded-[22px] p-4 font-ui","border-0.5 border-border-300 bg-bg-000"),children:[t.jsxs("div",{className:"flex items-center justify-between gap-2",children:[t.jsx("h3",{className:"font-claude-response-body text-text-100",children:t.jsx(XS,{defaultMessage:"What kind of work do you do?",id:"m7NkJJKLzZ"})}),t.jsx(kt,{variant:"ghost",size:"icon",className:"-my-1.5",onClick:C,disabled:x,"aria-label":n.formatMessage({defaultMessage:"Skip role selection",id:"HT/RLP1byD"}),children:t.jsx(Yt,{size:14})})]}),t.jsx("div",{className:"flex flex-wrap gap-2",children:o.map(e=>{const{label:s}=e,a=p===s;return t.jsx("button",{type:"button",onClick:()=>h(e),disabled:x,"aria-label":n.formatMessage({defaultMessage:"Select {roleLabel} role",id:"ez2trTFx1O"},{roleLabel:s}),className:dt("inline-flex h-10 items-center rounded-[14px] border-0.5 px-3 shadow-[0_2px_4px_0_hsl(var(--always-black)/8%)]","text-sm transition","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent-100",a?"border-border-100 bg-bg-300 text-text-000":"border-border-200 bg-bg-000 text-text-000 hover:bg-bg-200 active:scale-[0.98]",x&&!a&&"opacity-50",x&&"cursor-default"),children:s},s)})})]})});S9.displayName="ActiveRolePickerPanel";const L9=e.memo(function(){const s=aa(e=>e.sessionContext?.sessionId),n=M9();e.useEffect(()=>{b9.getState().clear()},[s]),e.useEffect(()=>{if(!n)return;const e=b9.getState();null!==e.role&&e.resolvedRequestId!==n.requestId&&e.clear()},[n]);const{suppressPanel:a}=function(t){const s=_9(),n="loading"===s?null:s,a=aa(e=>e.sessionContext?.sendToolDecision),i=aa(e=>e.sessionContext?.sessionId),{track:r}=ae(),o=b9(e=>e.resolvedRequestId),l=b9(e=>e.autoResolveFailedFor);return e.useEffect(()=>{t&&a&&n&&o!==t.requestId&&l!==t.requestId&&(b9.getState().markResolved(t.requestId),a(t.requestId,t.toolUseId,{role:n,source:"account"},"once").then(()=>{r({event_key:"claudeai.setup_cowork.role_selected",role_label:n,work_function:n,source:"account",session_id:i})},()=>{b9.getState().markAutoResolveFailed(t.requestId)}))},[t,a,n,o,l,r,i]),{suppressPanel:null!==s&&l!==t?.requestId}}(n);return!n||a?null:t.jsx(S9,{pendingRequest:n},n.requestId)});L9.displayName="OnboardingRolePickerPanel";const N9=e.createContext({data:null,onSubmit:null,onDismiss:null,submitFreeform:null}),I9=e.createContext({setData:()=>{},setOnSubmit:()=>{},setOnDismiss:()=>{},setSubmitFreeform:()=>{},clearAll:()=>{}});function T9(){const t=e.useContext(N9),s=e.useContext(I9);return e.useMemo(()=>({...t,...s}),[t,s])}const A9=e.memo(function({children:s}){const[n,a]=e.useState(null),[i,r]=e.useState(null),[o,l]=e.useState(null),[c,d]=e.useState(null),u=e.useCallback(e=>{a(e)},[]),m=e.useCallback(e=>{r(()=>e)},[]),p=e.useCallback(e=>{l(()=>e)},[]),f=e.useCallback(e=>{d(()=>e)},[]),g=e.useCallback(()=>{a(null),r(null),l(null),d(null)},[]),h=e.useMemo(()=>({setData:u,setOnSubmit:m,setOnDismiss:p,setSubmitFreeform:f,clearAll:g}),[u,m,p,f,g]),C=e.useMemo(()=>({data:n,onSubmit:i,onDismiss:o,submitFreeform:c}),[n,i,o,c]);return t.jsx(I9.Provider,{value:h,children:t.jsx(N9.Provider,{value:C,children:s})})});function E9({data:s,widgetData:n,onEscape:a}){const{setData:i,setOnSubmitOverride:r,setOnDismissOverride:o,submitFreeformAnswer:l}=uO(),{onSubmit:c,onDismiss:d,clearAll:u,setSubmitFreeform:m}=T9();e.useLayoutEffect(()=>(i(n),r(e=>{c&&c(e,s.input,s.blockId),u()}),o(()=>{d&&d(s.blockId),u()}),()=>{r(null),o(null)}),[n,i,r,o,c,d,s,u]);const p=e.useRef(l);return p.current=l,e.useLayoutEffect(()=>(m(e=>p.current(e)),()=>m(null)),[m]),t.jsx(Sz,{data:n,onEscape:a})}A9.displayName="AskUserQuestionBannerProvider";const R9=e.memo(function({data:s,onEscape:n}){const a=e.useMemo(()=>({questions:(s.input.questions??[]).map((e,t)=>({id:`q_${t}`,type:e.multiSelect?"multi_select":"single_select",question:e.question,options:(Array.isArray(e.options)?e.options:[]).map((e,s)=>({id:`opt_${t}_${s}`,label:e.label}))}))}),[s.input]);return t.jsx(hO,{draftKey:s.blockId,children:t.jsx(E9,{data:s,widgetData:a,onEscape:n})})});R9.displayName="AskUserQuestionBanner";function D9({ref:s,children:n,parentClassName:a,innerClassName:i,pinToBottomConfig:r={disabled:!1,initialValue:!1},strictUnpin:o=!1,containerRef:l}){const c=e.useRef(l?.current||null),d=vd(l,c),u=e.useRef(null),m=e.useRef(r.initialValue),p=e.useRef(!1),f=e.useRef(!1),g=e.useRef(null),h=e.useRef(0),C=e.useRef(0),x=e.useRef(0),v=e.useCallback(()=>c.current,[]),y=e.useCallback((e="auto",t)=>{if(!c.current)return;if(t?.onlyIfPinned&&!m.current)return;const{scrollHeight:s,scrollTop:n,clientHeight:a}=c.current;n>s-a||(f.current=!0,c.current.scrollTo({top:c.current.scrollHeight,behavior:e}),g.current&&clearTimeout(g.current),g.current=window.setTimeout(()=>{f.current=!1},0))},[]),b=e.useCallback(e=>{m.current=e},[]),k=e.useCallback(()=>m.current,[]),w=e.useCallback(()=>x.current,[]),M=e.useCallback(()=>{x.current=performance.now()},[]);return e.useImperativeHandle(s,()=>({getScrollContainer:v,scrollToBottom:y,setPinToBottom:b,isPinned:k,getLastUserInputAt:w,markUserInput:M,innerRef:u}),[v,y,b,k,w,M]),e.useLayoutEffect(()=>{const e=c.current,t=u.current;if(!e||!t||r.disabled)return;const s='input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]),textarea,select,[contenteditable=""],[contenteditable="true"],[contenteditable="plaintext-only"]',n=`button,a,input,[role="button"],${s}`,a=e=>e instanceof Element&&null!==e.closest(n),i=()=>{x.current=performance.now()},l=e=>{a(e.target)||(x.current=performance.now())},d=e=>{0===e.buttons||a(e.target)||(x.current=performance.now())},v=new Set(["ArrowUp","ArrowDown","PageUp","PageDown","Home","End"," "]),b=e=>{var t;v.has(e.key)&&((" "!==e.key||!a(e.target)||e.target instanceof Element&&null!==e.target.closest("a"))&&((t=e.target)instanceof Element&&null!==t.closest(s)||(x.current=performance.now())))},k=()=>{const{scrollHeight:t,scrollTop:s,clientHeight:n}=e,a=s<h.current,i=t<C.current;if(h.current=s,C.current=t,f.current)return;const r=t-s-n,l=Math.floor(r)<8;p.current=l;const c=!o||performance.now()-x.current<150;!l&&a&&!i&&c&&(m.current=!1)},w=new ResizeObserver(()=>{m.current&&y()});return e.addEventListener("scroll",k),o&&(e.addEventListener("wheel",i,{passive:!0}),e.addEventListener("touchstart",l,{passive:!0}),e.addEventListener("touchmove",i,{passive:!0}),e.addEventListener("keydown",b,{passive:!0}),e.addEventListener("pointerdown",l,{passive:!0}),e.addEventListener("mousedown",l,{passive:!0}),e.addEventListener("mousemove",d,{passive:!0})),w.observe(t),w.observe(e),()=>{e.removeEventListener("scroll",k),o&&(e.removeEventListener("wheel",i),e.removeEventListener("touchstart",l),e.removeEventListener("touchmove",i),e.removeEventListener("keydown",b),e.removeEventListener("pointerdown",l),e.removeEventListener("mousedown",l),e.removeEventListener("mousemove",d)),w.disconnect(),g.current&&clearTimeout(g.current)}},[u,r.disabled,y,o]),t.jsx("div",{className:Dt("overflow-y-auto overflow-x-hidden [scrollbar-gutter:stable]",a,"print:!overflow-visible print:!h-auto"),"data-autoscroll-container":!0,ref:d,children:t.jsx("div",{className:Dt("relative w-full min-h-full",i),ref:u,children:n})})}function H9({state:s="static",className:n,isInteractive:i=!0}){const r=e.useRef(null),o=e.useRef(s),l=rA(),[c,d]=e.useState(),[u,m]=e.useState(s),[p,f]=e.useReducer(e=>e+1,0);e.useEffect(()=>{a(()=>import("./c29d35996-hchn961B.js").then(e=>e.i),__vite__mapDeps([0,1]),import.meta.url).then(e=>{e&&d(e.animations)}).catch(()=>{})},[]),e.useEffect(()=>m(s),[s]),e.useEffect(()=>{const e=r.current&&"function"==typeof r.current.animate;let t,s;if(!l&&"static"!==u&&e&&c){const{frameCount:e,speed:n}=c[u],a=Array.from({length:e},(t,s)=>({transform:`translateY(-${s*(100/e)}%)`}));t=r.current?.animate(a,{duration:n*a.length,iterations:"tickle"===u?1:1/0,easing:`steps(${a.length}, jump-none)`}),"tickle"===u&&(s=()=>m(o.current),t?.addEventListener("finish",s))}return"tickle"!==u&&(o.current=u),()=>{s&&t&&t.removeEventListener("finish",s),t?.cancel()}},[c,u,l]);const g=()=>{i&&"writing"!==u&&"thinking"!==u&&"tickle"!==u&&(m("tickle"),f())};let h="Hi, I\u2019m Claude. How can I help you today?";p<32&&p>24?h="Ugh, well you can\u2019t do that forever":p<=24&&p>18?h="Alright, alright, you have my attention!":p<=18&&p>12?h="Are you still doing that?":p<=12&&p>5&&(h="Yes, yes. What can I do for you?");const C=!i||"writing"===u||"thinking"===u;if("static"===u||l||!c)return t.jsx("div",{"aria-hidden":"true",children:t.jsx(Kt,{className:Dt("font-claude-response max-w-none italic",C&&"opacity-0"),tooltipContent:h,side:"right",children:t.jsx("div",{className:Dt(n,"w-8 text-accent-brand inline-block select-none"),onMouseDown:g,children:t.jsx(P9,{className:"w-full fill-current"})})})});const{svg:x,width:v,height:y}=c[u],b=v/y;return t.jsx("div",{"aria-hidden":"true",children:t.jsx(Kt,{className:Dt("font-claude-response max-w-none italic",C&&"opacity-0"),tooltipContent:h,side:"right",children:t.jsx("div",{className:Dt(n,"w-8 text-accent-brand inline-block overflow-hidden select-none","[@media(max-resolution:1.99dppx)]:[clip-path:inset(1px_0)]"),style:{aspectRatio:b},onMouseDown:g,children:t.jsx("div",{ref:r,className:"[&>svg]:block [&>svg]:w-full [&>svg]:fill-current",dangerouslySetInnerHTML:{__html:x}})})})})}function P9(e){return t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",...e,children:t.jsx("path",{d:"m19.6 66.5 19.7-11 .3-1-.3-.5h-1l-3.3-.2-11.2-.3L14 53l-9.5-.5-2.4-.5L0 49l.2-1.5 2-1.3 2.9.2 6.3.5 9.5.6 6.9.4L38 49.1h1.6l.2-.7-.5-.4-.4-.4L29 41l-10.6-7-5.6-4.1-3-2-1.5-2-.6-4.2 2.7-3 3.7.3.9.2 3.7 2.9 8 6.1L37 36l1.5 1.2.6-.4.1-.3-.7-1.1L33 25l-6-10.4-2.7-4.3-.7-2.6c-.3-1-.4-2-.4-3l3-4.2L28 0l4.2.6L33.8 2l2.6 6 4.1 9.3L47 29.9l2 3.8 1 3.4.3 1h.7v-.5l.5-7.2 1-8.7 1-11.2.3-3.2 1.6-3.8 3-2L61 2.6l2 2.9-.3 1.8-1.1 7.7L59 27.1l-1.5 8.2h.9l1-1.1 4.1-5.4 6.9-8.6 3-3.5L77 13l2.3-1.8h4.3l3.1 4.7-1.4 4.9-4.4 5.6-3.7 4.7-5.3 7.1-3.2 5.7.3.4h.7l12-2.6 6.4-1.1 7.6-1.3 3.5 1.6.4 1.6-1.4 3.4-8.2 2-9.6 2-14.3 3.3-.2.1.2.3 6.4.6 2.8.2h6.8l12.6 1 3.3 2 1.9 2.7-.3 2-5.1 2.6-6.8-1.6-16-3.8-5.4-1.3h-.8v.4l4.6 4.5 8.3 7.5L89 80.1l.5 2.4-1.3 2-1.4-.2-9.2-7-3.6-3-8-6.8h-.5v.7l1.8 2.7 9.8 14.7.5 4.5-.7 1.4-2.6 1-2.7-.6-5.8-8-6-9-4.7-8.2-.5.4-2.9 30.2-1.3 1.5-3 1.2-2.5-2-1.4-3 1.4-6.2 1.6-8 1.3-6.4 1.2-7.9.7-2.6v-.2H49L43 72l-9 12.3-7.2 7.6-1.7.7-3-1.5.3-2.8L24 86l10-12.8 6-7.9 4-4.6-.1-.5h-.3L17.2 77.4l-4.7.6-2-2 .2-3 1-1 8-5.5Z"})})}const U9=/computer[-_]use|remote-devices/i;function O9(e,t){return{text:U9.test(t??"")?e.formatMessage({defaultMessage:"Capturing screen",id:"XHw47zc7tY"}):e.formatMessage({defaultMessage:"Capturing page",id:"o6xZ7JK8IM"}),icon:"camera"}}function F9(e){return e.split("_").map((e,t)=>0===t?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():e.toLowerCase()).join(" ")}function V9(e,t,s,n){const a=tc(e);let i=a?.toolName??e;a?.serverName===yd&&i.startsWith(bd)&&(i=i.slice(bd.length));const r=t??{};if("computer"===i){const e=r.action;switch(e){case"screenshot":return O9(s,a?.serverName);case"left_click":case"right_click":case"double_click":case"triple_click":case"middle_click":case"left_mouse_down":case"left_mouse_up":return{text:s.formatMessage({defaultMessage:"Clicking",id:"n43/KMHgLD"}),icon:"click"};case"type":{const e=r.text;if(e){const t=e.length>30?`${e.slice(0,30)}...`:e;return{text:s.formatMessage({defaultMessage:'Typing "{text}"',id:"DbHD0I6L7a"},{text:t}),icon:"keyboard"}}return{text:s.formatMessage({defaultMessage:"Typing",id:"N2bqd9kL1X"}),icon:"keyboard"}}case"wait":{const e=r.duration;return{text:e?s.formatMessage({defaultMessage:"Waiting {count, plural, one {# second} other {# seconds}}",id:"PYMhR4zruJ"},{count:e}):s.formatMessage({defaultMessage:"Waiting",id:"dZd8H/KE0T"}),icon:"timer"}}case"scroll":{const e=r.scroll_direction;return"up"===e?{text:s.formatMessage({defaultMessage:"Scrolling up",id:"gsZoWr7ipW"}),icon:"scroll-up"}:"left"===e?{text:s.formatMessage({defaultMessage:"Scrolling left",id:"80JDFNGo43"}),icon:"scroll-left"}:"right"===e?{text:s.formatMessage({defaultMessage:"Scrolling right",id:"73TpAH/Qml"}),icon:"scroll-right"}:{text:s.formatMessage({defaultMessage:"Scrolling down",id:"SvPr/lnfNb"}),icon:"scroll-down"}}case"key":{const e=r.text;return{text:e?s.formatMessage({defaultMessage:"Pressing {keys}",id:"kxP/97PJd1"},{keys:e}):s.formatMessage({defaultMessage:"Pressing key",id:"R6bmgzv6Xs"}),icon:"keyboard"}}case"left_click_drag":return{text:s.formatMessage({defaultMessage:"Dragging",id:"A/Bht8akH/"}),icon:"drag"};case"zoom":return{text:s.formatMessage({defaultMessage:"Zooming",id:"JDeaFAwoXN"}),icon:"zoom"};case"hover":case"mouse_move":return{text:s.formatMessage({defaultMessage:"Hovering",id:"ZJVy4R7mdx"}),icon:"computer"};case"scroll_to":return{text:s.formatMessage({defaultMessage:"Scrolling to element",id:"XHgDuj8n73"}),icon:"scroll-down"};case"cursor_position":return{text:s.formatMessage({defaultMessage:"Checking cursor position",id:"5cyUPsCdMM"}),icon:"computer"};case"hold_key":{const e=r.text;return{text:e?s.formatMessage({defaultMessage:"Holding {keys}",id:"/WafiQssBm"},{keys:e}):s.formatMessage({defaultMessage:"Holding key",id:"4p9ISBT4CQ"}),icon:"keyboard"}}default:return{text:s.formatMessage({defaultMessage:"Computer action: {action}",id:"xLpBTyWHMH"},{action:e?F9(e):"Unknown"}),icon:"computer"}}}switch(i){case"batch":case"browser_batch":case"computer_batch":{const e=Array.isArray(r.actions)?r.actions:[];return{text:s.formatMessage({defaultMessage:"Batch \u2014 {count, plural, one {# action} other {# actions}}",id:"9PnBSKt3zo"},{count:e.length}),icon:"batch"}}case"screenshot":return O9(s,a?.serverName);case"read_page":{const e=r.filter,t=s.formatMessage({defaultMessage:"Reading page",id:"eEZaxWqt5u"});return{text:e?`${t} (${e})`:t,icon:"eye"}}case"find":{const e=r.query;if(e){const t=e.length>30?`${e.slice(0,30)}...`:e;return{text:s.formatMessage({defaultMessage:'Finding "{query}"',id:"PaCZDItnh3"},{query:t}),icon:"search"}}return{text:s.formatMessage({defaultMessage:"Finding on page",id:"9t4b7HghkI"}),icon:"search"}}case"get_page_text":return{text:s.formatMessage({defaultMessage:"Reading page text",id:"m6WGRc6ReI"}),icon:"eye"};case"form_input":{const e=r.value;if(e){const t=String(e).length>20?`${String(e).slice(0,20)}...`:e;return{text:s.formatMessage({defaultMessage:'Filling in "{value}"',id:"JOCRcjtlmM"},{value:t}),icon:"form"}}return{text:s.formatMessage({defaultMessage:"Filling in form",id:"xiFwcL35Ot"}),icon:"form"}}case"middle_click":case"left_mouse_down":case"left_mouse_up":return{text:s.formatMessage({defaultMessage:"Clicking",id:"n43/KMHgLD"}),icon:"click"};case"click":{const e=r.text;if(e){const t=e.length>30?`${e.slice(0,30)}...`:e;return{text:s.formatMessage({defaultMessage:'Clicking "{target}"',id:"yTgFGXF8BV"},{target:t}),icon:"click"}}return{text:s.formatMessage({defaultMessage:"Clicking",id:"n43/KMHgLD"}),icon:"click"}}case"navigate":{const e=r.url,t=e?e.length>30?`${e.slice(0,30)}...`:e:"";return{text:s.formatMessage({defaultMessage:"Navigating to {url}",id:"bxHR4kdMT9"},{url:t}),icon:"navigate"}}case"type":{const e=r.text;if(e){const t=e.length>30?`${e.slice(0,30)}...`:e;return{text:s.formatMessage({defaultMessage:'Typing "{text}"',id:"DbHD0I6L7a"},{text:t}),icon:"keyboard"}}return{text:s.formatMessage({defaultMessage:"Typing",id:"N2bqd9kL1X"}),icon:"keyboard"}}case"wait":{const e=r.duration;return{text:e?s.formatMessage({defaultMessage:"Waiting {count, plural, one {# second} other {# seconds}}",id:"PYMhR4zruJ"},{count:e}):s.formatMessage({defaultMessage:"Waiting",id:"dZd8H/KE0T"}),icon:"timer"}}case"key":{const e=r.text;return{text:e?s.formatMessage({defaultMessage:"Pressing {keys}",id:"kxP/97PJd1"},{keys:e}):s.formatMessage({defaultMessage:"Pressing key",id:"R6bmgzv6Xs"}),icon:"keyboard"}}case"hold_key":{const e=r.text;return{text:e?s.formatMessage({defaultMessage:"Holding {keys}",id:"/WafiQssBm"},{keys:e}):s.formatMessage({defaultMessage:"Holding key",id:"4p9ISBT4CQ"}),icon:"keyboard"}}case"mouse_move":return{text:s.formatMessage({defaultMessage:"Hovering",id:"ZJVy4R7mdx"}),icon:"computer"};case"cursor_position":return{text:s.formatMessage({defaultMessage:"Checking cursor position",id:"5cyUPsCdMM"}),icon:"computer"};case"scroll":{const e=r.scroll_direction;return"up"===e?{text:s.formatMessage({defaultMessage:"Scrolling up",id:"gsZoWr7ipW"}),icon:"scroll-up"}:"left"===e?{text:s.formatMessage({defaultMessage:"Scrolling left",id:"80JDFNGo43"}),icon:"scroll-left"}:"right"===e?{text:s.formatMessage({defaultMessage:"Scrolling right",id:"73TpAH/Qml"}),icon:"scroll-right"}:{text:s.formatMessage({defaultMessage:"Scrolling down",id:"SvPr/lnfNb"}),icon:"scroll-down"}}case"tabs_create":return{text:s.formatMessage({defaultMessage:"Opening a tab",id:"IYMF3IRnw/"}),icon:"tabs"};case"tabs_context":case"tabs_context_mcp":return{text:s.formatMessage({defaultMessage:"Checking open tabs",id:"rSKJbXO2Qg"}),icon:"tabs"};case"upload_image":return{text:s.formatMessage({defaultMessage:"Uploading image",id:"91bF7FZ/XO"}),icon:"upload"};case"javascript_tool":case"execute_js":case"execute_javascript":return{text:s.formatMessage({defaultMessage:"Running page script",id:"9llqYnE3I/"}),icon:"code"};case"read_console_messages":return{text:s.formatMessage({defaultMessage:"Reading console messages",id:"/Y/bSBJR75"}),icon:"console"};case"read_network_requests":return{text:s.formatMessage({defaultMessage:"Reading network requests",id:"/wDw6B6vx1"}),icon:"network"};case"resize_window":return{text:s.formatMessage({defaultMessage:"Resizing window",id:"bb03PMyLqZ"}),icon:"resize"};case"gif_creator":return{text:s.formatMessage({defaultMessage:"Creating GIF",id:"8TttJwI4dK"}),icon:"gif"};case"update_plan":{const e=n,t=Array.isArray(e?.content)?e.content.filter(e=>"object"==typeof e&&null!==e&&"type"in e&&"text"===e.type).map(e=>e.text).join(""):"",a=t.includes("approved your plan")||t.includes("User has approved"),i=t.includes("Plan rejected by user")||t.includes("User rejected")||t.includes("Permission denied");return a?{icon:"plan",text:s.formatMessage({defaultMessage:"Created a plan",id:"aXfQ2L8ErF"})}:i?{icon:"plan",text:s.formatMessage({defaultMessage:"Plan rejected",id:"7wJz7kSrLT"})}:{icon:"plan",text:s.formatMessage({defaultMessage:"Following a plan",id:"UJdVFK2KyY"})}}case"WebSearch":return{text:s.formatMessage({defaultMessage:"Searching the web",id:"5KajyzHSXj"}),icon:"web-search"};case"WebFetch":{const e=r.url;if(e)try{const t=new URL(e);return{text:s.formatMessage({defaultMessage:"Fetching from {hostname}",id:"5qKeNV67+8"},{hostname:t.hostname}),icon:"web-fetch"}}catch{const t=e.length>30?`${e.slice(0,30)}...`:e;return{text:s.formatMessage({defaultMessage:"Fetching {url}",id:"5r1MpDDVk7"},{url:t}),icon:"web-fetch"}}return{text:s.formatMessage({defaultMessage:"Fetching page",id:"uAw7cJ5rnr"}),icon:"web-fetch"}}case"switch_browser":return{text:s.formatMessage({defaultMessage:"Waiting for you to choose a browser",id:"EvIK3TSIYs"}),icon:"shuffle",hint:s.formatMessage({defaultMessage:"Switch to the Chrome window you want Claude to use. You'll see a \u201cClaude Desktop wants to connect\u201d prompt in the side panel, give the browser a name and click Connect.",id:"emdNKVPSQX"})};case"select_browser":return{text:s.formatMessage({defaultMessage:"Connecting to browser",id:"G7UOuc5h1o"}),icon:"shuffle"};case"list_connected_browsers":return{text:s.formatMessage({defaultMessage:"Checking connected browsers",id:"MSmBnvqAot"}),icon:"shuffle"};default:return{text:F9(i),icon:"computer"}}}function z9(e){let t=-1;for(const a of e)"message"===a.kind&&void 0!==a.seq&&a.seq>t&&Md(a.payload)&&(t=a.seq);const s=new Map;for(const a of e)"mcp_auth_required"===a.kind&&a.toolUseId&&(void 0===a.seq||a.seq>t)&&s.set(a.toolUseId,{server_id:a.serverUuid,tool_use_id:a.toolUseId,error_code:"mcp_auth_required"});const n=[];for(const a of e){if("message"!==a.kind)continue;const e=a.payload;if("user"!==e.type||!e.isReplay||!_d(e)){if("assistant"===e.type){const t=e.message,a=t.content;if(Array.isArray(a)){let i=a;const r=i.filter(e=>{const t=e;return"thinking"!==t.type||!!t.thinking?.trim()});if(r.length!==i.length&&(i=r),s.size>0){let e=!1;const t=i.map(t=>{const n=t,a="tool_use"===n.type&&n.id?s.get(n.id):void 0;return a?(e=!0,{...t,mcp_auth_required:a}):t});e&&(i=t)}if(i!==a){i.length>0&&n.push({...e,message:{...t,content:i}});continue}}}n.push(e)}}return n}function Z9(e,t,s){if(null===t)return e;const n=[];for(const i of e)"assistant"===i.type&&i.message?.id===t.messageId||n.push(i);const a=G9(t,s);return a&&n.push(...a),n}const B9=new Set;function q9(e,t,s=B9){const n=new Map,a=new Set,i=new Set;let r=0,o=!1,l=!1;for(const g of e)if("permission_request"===g.kind)n.set(g.request.requestId,{request:g.request,seq:g.seq??0});else if("permission_resolved"===g.kind){const e=n.get(g.requestId);e?.request.toolUseId&&i.add(e.request.toolUseId),a.add(g.requestId),n.delete(g.requestId)}else if("message"===g.kind){const e=g.payload.type;if("assistant"===e)o=!0;else if(Md(g.payload))l=!0;else if("result"===e){const e=!0===g.payload.is_error;(o||l||e)&&(r=g.seq??r),o=!1,l=!1}}const c=[],d=new Set,u=new Set,m=new Set,p=new Set;for(const{request:g,seq:h}of n.values())h<=r?(m.add(g.requestId),g.toolUseId&&p.add(g.toolUseId)):(c.push(g),g.toolUseId&&d.add(g.toolUseId),u.add(g.requestId));const f=t?.pendingToolPermission;return!f||u.has(f.requestId)||f.toolUseId&&d.has(f.toolUseId)||a.has(f.requestId)||m.has(f.requestId)||f.toolUseId&&i.has(f.toolUseId)||f.toolUseId&&p.has(f.toolUseId)||c.push(f),c.filter(e=>!s.has(e.toolUseId??e.requestId))}function W9(e,t,s){const n=jd(t);return{sessionId:e,requestId:t.requestId,toolUseId:t.toolUseId??t.requestId,toolName:n?.toolName??t.toolName,input:n?.input??t.input,suggestions:Sd(t.toolName)?void 0:t.suggestions,status:"pending",transport:"ipc",createdAt:s}}function $9(e,t,s,n){if(t||null!==s)return!0;let a=0,i=!1,r=!1,o=!1,l=-1;for(const c of e){if("message"!==c.kind)continue;const e=c.payload.type;if("assistant"===e)i=!0,o=!0;else if("system"===e&&"init"===c.payload.subtype)r=!1;else if("result"===e){const e=!0===c.payload.is_error;(i||r&&o||e)&&(a=c.seq??a),i=!1,r=!1}else Md(c.payload)&&(r=!0,l=c.seq??l)}return l>=0||a>0?l>a:n?.isRunning??!1}function G9(e,t){if(null!==e)return[{type:"assistant",uuid:e.messageId,session_id:t,parent_tool_use_id:null,message:{id:e.messageId,type:"message",role:"assistant",model:e.model,content:e.content,stop_reason:null,stop_sequence:null}}]}function K9(e){return null===e?null:"tool_use"===e.activity?{activity:"tool_use",toolName:e.toolName}:"thinking"===e.activity?{activity:"thinking",thinkingTokens:e.thinkingTokens}:{activity:e.activity}}function Y9(e,t,s=0){if(t)return{message:t.message,category:"transport"};let n=!1,a=null;for(const i of e){if("message"!==i.kind)continue;const e=i.payload;if("user"===e.type){const e=Ld(i.payload);n=void 0!==e&&Nd.has(e)}else if("assistant"===e.type)n=!1;else if("result"===e.type){const t="error_during_execution"===e.subtype&&n;a=(i.seq??0)>s&&e.is_error&&!t?{message:e.result??"Session encountered an error",category:e.subtype}:null,n=!1}}return a}function Q9(e){return"string"==typeof e?e:Array.isArray(e)?e.map(e=>"string"==typeof e.text?e.text:"").join("\n"):""}function J9(e){const t=new Map,s={};for(const n of e){if("message"!==n.kind)continue;const e=n.payload.message?.content;if(Array.isArray(e))if("assistant"===n.payload.type)for(const s of e)"tool_use"===s?.type&&"string"==typeof s.id&&"string"==typeof s.name&&(kd(s.name,s.input)?t.set(s.id,{kind:"fired",triggerId:String(s.input?.trigger_id)}):wd(s.name)&&t.set(s.id,{kind:"created"}));else if("user"===n.payload.type&&void 0!==n.seq)for(const a of e){const e="tool_result"===a?.type&&"string"==typeof a.tool_use_id?t.get(a.tool_use_id):void 0;if(void 0!==e&&!a.is_error)if("fired"===e.kind)n.seq>(s.fired?.seq??0)&&(s.fired={seq:n.seq,triggerId:e.triggerId});else{const e=Q9(a.content).match(/\btrig_[A-Za-z0-9_-]+/)?.[0];void 0!==e&&n.seq>(s.created?.seq??0)&&(s.created={seq:n.seq,triggerId:e})}}}return s}function X9(e){return e.startsWith("mcp__remote-devices__")}const eee="acknowledged-tool-decisions",tee=3e5;let see=null;function nee(){return see||(see=function(){if("undefined"==typeof window)return{};try{const e=localStorage.getItem(eee);if(!e)return{};const t=JSON.parse(e),s=Date.now(),n={};for(const[a,i]of Object.entries(t)){const e={};for(const[t,n]of Object.entries(i))s-n.acknowledgedAt<tee&&(e[t]=n);Object.keys(e).length>0&&(n[a]=e)}return n}catch(e){return k.warn(w.LOCAL_SESSION,"Failed to load acknowledged tool decisions from localStorage",e),{}}}()),see}function aee(e,t,s){const n={...nee()},a={...n[e]};a[t]={toolUseId:t,toolName:s,acknowledgedAt:Date.now()};const i=Object.entries(a);if(i.length>10){i.sort((e,t)=>e[1].acknowledgedAt-t[1].acknowledgedAt);for(const[e]of i.slice(0,i.length-10))delete a[e]}n[e]=a,see=n,function(e){if("undefined"!=typeof window)try{localStorage.setItem(eee,JSON.stringify(e))}catch(t){k.warn(w.LOCAL_SESSION,"Failed to save acknowledged tool decisions to localStorage",t)}}(n)}function iee(e,t){const s=nee()[e]?.[t];return!!s&&Date.now()-s.acknowledgedAt<tee}const ree=fT()((e,t)=>({approvedBySessionId:{},approve:(t,s)=>e(e=>{const n=e.approvedBySessionId[t];return n?.has(s)?e:{approvedBySessionId:{...e.approvedBySessionId,[t]:new Set([...n??[],s])}}}),isApproved:(e,s)=>t().approvedBySessionId[e]?.has(s)??!1}));var oee,lee,cee,dee,uee,mee,pee,fee,gee,hee,Cee,xee,vee,yee,bee,kee,wee,Mee,_ee,jee,See,Lee,Nee,Iee,Tee,Aee,Eee,Ree,Dee,Hee,Pee,Uee,Oee,Fee,Vee,zee,Zee={},Bee={};function qee(){if(lee)return oee;lee=1;var e=Id(),t=Td(),s=Ad(),n=function(e){return t.slice(0,e.length)===e};return oee=n("Bun/")?"BUN":n("Cloudflare-Workers")?"CLOUDFLARE":n("Deno/")?"DENO":n("Node.js/")?"NODE":e.Bun&&"string"==typeof Bun.version?"BUN":e.Deno&&"object"==typeof Deno.version?"DENO":"process"===s(e.process)?"NODE":e.window&&e.document?"BROWSER":"REST"}function Wee(){if(dee)return cee;dee=1;var e=qee();return cee="NODE"===e}function $ee(){if(fee)return pee;fee=1;var e=function(){if(mee)return uee;mee=1;var e=Ed(),t=Rd(),s=Dd(),n=Hd(),a=Pd(),i=Ud(),r=function(){},o=a("Reflect","construct"),l=/^\s*(?:class|function)\b/,c=e(l.exec),d=!l.test(r),u=function(e){if(!s(e))return!1;try{return o(r,[],e),!0}catch(t){return!1}},m=function(e){if(!s(e))return!1;switch(n(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return d||!!c(l,i(e))}catch(t){return!0}};return m.sham=!0,uee=!o||t(function(){var e;return u(u.call)||!u(Object)||!u(function(){e=!0})||e})?m:u}(),t=Od(),s=TypeError;return pee=function(n){if(e(n))return n;throw new s(t(n)+" is not a constructor")}}function Gee(){if(kee)return bee;kee=1;var e=Td();return bee=/ipad|iphone|ipod/i.test(e)&&/applewebkit/i.test(e)}function Kee(){if(Mee)return wee;Mee=1;var e,t,s,n,a=Id(),i=function(){if(xee)return Cee;xee=1;var e=Zd(),t=Function.prototype,s=t.apply,n=t.call;return Cee="object"==typeof Reflect&&Reflect.apply||(e?n.bind(s):function(){return n.apply(s,arguments)}),Cee}(),r=Bd(),o=Dd(),l=qd(),c=Rd(),d=Wd(),u=fP(),m=$d(),p=function(){if(yee)return vee;yee=1;var e=TypeError;return vee=function(t,s){if(t<s)throw new e("Not enough arguments");return t}}(),f=Gee(),g=Wee(),h=a.setImmediate,C=a.clearImmediate,x=a.process,v=a.Dispatch,y=a.Function,b=a.MessageChannel,k=a.String,w=0,M={},_="onreadystatechange";c(function(){e=a.location});var j=function(e){if(l(M,e)){var t=M[e];delete M[e],t()}},S=function(e){return function(){j(e)}},L=function(e){j(e.data)},N=function(t){a.postMessage(k(t),e.protocol+"//"+e.host)};return h&&C||(h=function(e){p(arguments.length,1);var s=o(e)?e:y(e),n=u(arguments,1);return M[++w]=function(){i(s,void 0,n)},t(w),w},C=function(e){delete M[e]},g?t=function(e){x.nextTick(S(e))}:v&&v.now?t=function(e){v.now(S(e))}:b&&!f?(n=(s=new b).port2,s.port1.onmessage=L,t=r(n.postMessage,n)):a.addEventListener&&o(a.postMessage)&&!a.importScripts&&e&&"file:"!==e.protocol&&!c(N)?(t=N,a.addEventListener("message",L,!1)):t=_ in m("script")?function(e){d.appendChild(m("script"))[_]=function(){d.removeChild(this),j(e)}}:function(e){setTimeout(S(e),0)}),wee={set:h,clear:C}}function Yee(){if(Lee)return See;Lee=1;var e=function(){this.head=null,this.tail=null};return e.prototype={add:function(e){var t={item:e,next:null},s=this.tail;s?s.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}},See=e}function Qee(){if(Ree)return Eee;Ree=1;var e,t,s,n,a,i=Id(),r=function(){if(jee)return _ee;jee=1;var e=Id(),t=Gd(),s=Object.getOwnPropertyDescriptor;return _ee=function(n){if(!t)return e[n];var a=s(e,n);return a&&a.value}}(),o=Bd(),l=Kee().set,c=Yee(),d=Gee(),u=function(){if(Iee)return Nee;Iee=1;var e=Td();return Nee=/ipad|iphone|ipod/i.test(e)&&"undefined"!=typeof Pebble}(),m=function(){if(Aee)return Tee;Aee=1;var e=Td();return Tee=/web0s(?!.*chrome)/i.test(e)}(),p=Wee(),f=i.MutationObserver||i.WebKitMutationObserver,g=i.document,h=i.process,C=i.Promise,x=r("queueMicrotask");if(!x){var v=new c,y=function(){var t,s;for(p&&(t=h.domain)&&t.exit();s=v.get();)try{s()}catch(n){throw v.head&&e(),n}t&&t.enter()};d||p||m||!f||!g?!u&&C&&C.resolve?((n=C.resolve(void 0)).constructor=C,a=o(n.then,n),e=function(){a(y)}):p?e=function(){h.nextTick(y)}:(l=o(l,i),e=function(){l(y)}):(t=!0,s=g.createTextNode(""),new f(y).observe(s,{characterData:!0}),e=function(){s.data=t=!t}),x=function(t){v.head||e(),v.add(t)}}return Eee=x}function Jee(){return Uee?Pee:(Uee=1,Pee=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}})}function Xee(){if(Fee)return Oee;Fee=1;var e=Id();return Oee=e.Promise}function ete(){if(zee)return Vee;zee=1;var e=Id(),t=Xee(),s=Dd(),n=Kd(),a=Ud(),i=zd(),r=qee(),o=Yd(),l=Qd(),c=t&&t.prototype,d=i("species"),u=!1,m=s(e.PromiseRejectionEvent),p=n("Promise",function(){var e=a(t),s=e!==String(t);if(!s&&66===l)return!0;if(o&&(!c.catch||!c.finally))return!0;if(!l||l<51||!/native code/.test(e)){var n=new t(function(e){e(1)}),i=function(e){e(function(){},function(){})};if((n.constructor={})[d]=i,!(u=n.then(function(){})instanceof i))return!0}return!(s||"BROWSER"!==r&&"DENO"!==r||m)});return Vee={CONSTRUCTOR:p,REJECTION_EVENT:m,SUBCLASSING:u}}var tte,ste,nte={};function ate(){if(tte)return nte;tte=1;var e=Jd(),t=TypeError,s=function(s){var n,a;this.promise=new s(function(e,s){if(void 0!==n||void 0!==a)throw new t("Bad Promise constructor");n=e,a=s}),this.resolve=e(n),this.reject=e(a)};return nte.f=function(e){return new s(e)},nte}function ite(){if(ste)return Bee;ste=1;var e,t,s,n,a=Xd(),i=Yd(),r=Wee(),o=Id(),l=eu(),c=tu(),d=su(),u=gP(),m=hP(),p=CP(),f=Jd(),g=Dd(),h=nu(),C=xP(),x=function(){if(hee)return gee;hee=1;var e=Fd(),t=$ee(),s=Vd(),n=zd()("species");return gee=function(a,i){var r,o=e(a).constructor;return void 0===o||s(r=e(o)[n])?i:t(r)}}(),v=Kee().set,y=Qee(),b=(Hee||(Hee=1,Dee=function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(s){}}),Dee),k=Jee(),w=Yee(),M=au(),_=Xee(),j=ete(),S=ate(),L="Promise",N=j.CONSTRUCTOR,I=j.REJECTION_EVENT,T=j.SUBCLASSING,A=M.getterFor(L),E=M.set,R=_&&_.prototype,D=_,H=R,P=o.TypeError,U=o.document,O=o.process,F=S.f,V=F,z=!!(U&&U.createEvent&&o.dispatchEvent),Z="unhandledrejection",B=function(e){var t;return!(!h(e)||!g(t=e.then))&&t},q=function(e,t){var s,n,a,i=t.value,r=1===t.state,o=r?e.ok:e.fail,l=e.resolve,d=e.reject,u=e.domain;try{o?(r||(2===t.rejection&&Y(t),t.rejection=1),!0===o?s=i:(u&&u.enter(),s=o(i),u&&(u.exit(),a=!0)),s===e.promise?d(new P("Promise-chain cycle")):(n=B(s))?c(n,s,l,d):l(s)):d(i)}catch(m){u&&!a&&u.exit(),d(m)}},W=function(e,t){e.notified||(e.notified=!0,y(function(){for(var s,n=e.reactions;s=n.get();)q(s,e);e.notified=!1,t&&!e.rejection&&G(e)}))},$=function(e,t,s){var n,a;z?((n=U.createEvent("Event")).promise=t,n.reason=s,n.initEvent(e,!1,!0),o.dispatchEvent(n)):n={promise:t,reason:s},!I&&(a=o["on"+e])?a(n):e===Z&&b("Unhandled promise rejection",s)},G=function(e){c(v,o,function(){var t,s=e.facade,n=e.value;if(K(e)&&(t=k(function(){r?O.emit("unhandledRejection",n,s):$(Z,s,n)}),e.rejection=r||K(e)?2:1,t.error))throw t.value})},K=function(e){return 1!==e.rejection&&!e.parent},Y=function(e){c(v,o,function(){var t=e.facade;r?O.emit("rejectionHandled",t):$("rejectionhandled",t,e.value)})},Q=function(e,t,s){return function(n){e(t,n,s)}},J=function(e,t,s){e.done||(e.done=!0,s&&(e=s),e.value=t,e.state=2,W(e,!0))},X=function(e,t,s){if(!e.done){e.done=!0,s&&(e=s);try{if(e.facade===t)throw new P("Promise can't be resolved itself");var n=B(t);n?y(function(){var s={done:!1};try{c(n,t,Q(X,s,e),Q(J,s,e))}catch(a){J(s,a,e)}}):(e.value=t,e.state=1,W(e,!1))}catch(a){J({done:!1},a,e)}}};if(N&&(H=(D=function(t){C(this,H),f(t),c(e,this);var s=A(this);try{t(Q(X,s),Q(J,s))}catch(n){J(s,n)}}).prototype,(e=function(e){E(this,{type:L,done:!1,notified:!1,parent:!1,reactions:new w,rejection:!1,state:0,value:null})}).prototype=d(H,"then",function(e,t){var s=A(this),n=F(x(this,D));return s.parent=!0,n.ok=!g(e)||e,n.fail=g(t)&&t,n.domain=r?O.domain:void 0,0===s.state?s.reactions.add(n):y(function(){q(n,s)}),n.promise}),t=function(){var t=new e,s=A(t);this.promise=t,this.resolve=Q(X,s),this.reject=Q(J,s)},S.f=F=function(e){return e===D||e===s?new t(e):V(e)},!i&&g(_)&&R!==Object.prototype)){n=R.then,T||d(R,"then",function(e,t){var s=this;return new D(function(e,t){c(n,s,e,t)}).then(e,t)},{unsafe:!0});try{delete R.constructor}catch(ee){}u&&u(R,H)}return a({global:!0,constructor:!0,wrap:!0,forced:N},{Promise:D}),s=l.Promise,m(D,L,!1,!0),p(L),Bee}var rte,ote,lte,cte={};function dte(){if(ote)return rte;ote=1;var e=Xee(),t=vP(),s=ete().CONSTRUCTOR;return rte=s||!t(function(t){e.all(t).then(void 0,function(){})})}var ute,mte={};var pte,fte={};var gte,hte={};var Cte,xte,vte,yte,bte={};function kte(){if(vte)return bte;vte=1;var e=Xd(),t=Pd(),s=Yd(),n=Xee(),a=ete().CONSTRUCTOR,i=function(){if(xte)return Cte;xte=1;var e=Fd(),t=nu(),s=ate();return Cte=function(n,a){if(e(n),t(a)&&a.constructor===n)return a;var i=s.f(n);return(0,i.resolve)(a),i.promise}}(),r=t("Promise"),o=s&&!a;return e({target:"Promise",stat:!0,forced:s||a},{resolve:function(e){return i(o&&this===r?n:this,e)}}),bte}function wte(){return yte||(yte=1,ite(),function(){if(lte)return cte;lte=1;var e=Xd(),t=tu(),s=Jd(),n=ate(),a=Jee(),i=iu();e({target:"Promise",stat:!0,forced:dte()},{all:function(e){var r=this,o=n.f(r),l=o.resolve,c=o.reject,d=a(function(){var n=s(r.resolve),a=[],o=0,d=1;i(e,function(e){var s=o++,i=!1;d++,t(n,r,e).then(function(e){i||(i=!0,a[s]=e,--d||l(a))},c)}),--d||l(a)});return d.error&&c(d.value),o.promise}})}(),function(){if(ute)return mte;ute=1;var e=Xd(),t=Yd(),s=ete().CONSTRUCTOR,n=Xee(),a=Pd(),i=Dd(),r=su(),o=n&&n.prototype;if(e({target:"Promise",proto:!0,forced:s,real:!0},{catch:function(e){return this.then(void 0,e)}}),!t&&i(n)){var l=a("Promise").prototype.catch;o.catch!==l&&r(o,"catch",l,{unsafe:!0})}}(),function(){if(pte)return fte;pte=1;var e=Xd(),t=tu(),s=Jd(),n=ate(),a=Jee(),i=iu();e({target:"Promise",stat:!0,forced:dte()},{race:function(e){var r=this,o=n.f(r),l=o.reject,c=a(function(){var n=s(r.resolve);i(e,function(e){t(n,r,e).then(o.resolve,l)})});return c.error&&l(c.value),o.promise}})}(),function(){if(gte)return hte;gte=1;var e=Xd(),t=ate();e({target:"Promise",stat:!0,forced:ete().CONSTRUCTOR},{reject:function(e){var s=t.f(this);return(0,s.reject)(e),s.promise}})}(),kte()),Zee}var Mte,_te,jte,Ste={};!function(){if(jte)return _te;jte=1,wte(),function(){if(Mte)return Ste;Mte=1;var e=Xd(),t=ate();e({target:"Promise",stat:!0},{withResolvers:function(){var e=t.f(this);return{promise:e.promise,resolve:e.resolve,reject:e.reject}}})}();var e=tu(),t=Dd(),s=eu().Promise,n=s.withResolvers;_te=function(){return e(n,t(this)?this:s)}}();const Lte=fT()((e,t)=>({requestsBySession:{},approvedPlans:{},addRequest:t=>{const s=ou(t.input);e(e=>{const n=e.requestsBySession[t.sessionId]??{},a=n[t.requestId];return a?t.envelopeRequestId&&!a.envelopeRequestId?{requestsBySession:{...e.requestsBySession,[t.sessionId]:{...n,[t.requestId]:{...a,envelopeRequestId:t.envelopeRequestId}}}}:e:{requestsBySession:{...e.requestsBySession,[t.sessionId]:{...n,[t.requestId]:{...t,input:s,status:"pending",createdAt:Date.now()}}}}})},setRequestStatus:(t,s,n)=>{e(e=>{const a=e.requestsBySession[t],i=a?.[s];return i?{requestsBySession:{...e.requestsBySession,[t]:{...a,[s]:{...i,status:n}}}}:e})},resolveRequest:(e,s,n,a,i)=>{const r=t(),o=r.requestsBySession[e]?.[s];if(o){if("ExitPlanMode"===o.toolName&&"deny"!==n){const t=o.input.plan;t&&r.setApprovedPlan(e,t)}o.promiseResolvers&&o.promiseResolvers.resolve({decision:n,updatedInput:a,respondedOutOfBand:i}),r.setRequestStatus(e,s,"resolved"),"websocket"===o.transport&&r.removeRequest(e,s)}},removeRequest:(t,s)=>{e(e=>{const n=e.requestsBySession[t];if(!n?.[s])return e;const{[s]:a,...i}=n;return{requestsBySession:{...e.requestsBySession,[t]:i}}})},clearSessionRequests:t=>{e(e=>({requestsBySession:{...e.requestsBySession,[t]:{}}}))},setApprovedPlan:(t,s)=>{e(e=>({approvedPlans:{...e.approvedPlans,[t]:{sessionId:t,plan:s,approvedAt:Date.now()}}}))},hydrateFromBridge:(t,s)=>{e(e=>{const n=new Set(s.map(e=>e.requestId)),a=e.requestsBySession[t]??{},i={};let r=!1;for(const[t,s]of Object.entries(a))"ipc"!==s.transport||n.has(t)?i[t]=s:r=!0;const o=Date.now();for(const l of s)i[l.requestId]||(r=!0,i[l.requestId]={sessionId:t,requestId:l.requestId,toolUseId:l.requestId,toolName:l.toolName,input:ou(l.input),transport:"ipc",suggestions:l.suggestions,decisionReason:l.decisionReason,description:l.description,status:"pending",createdAt:o});return r?{requestsBySession:{...e.requestsBySession,[t]:i}}:e})}})),Nte=[];function Ite(t){const s=e.useMemo(()=>function(e){return t=>{const s=t.requestsBySession[e];if(!s)return Nte;const n=Object.values(s).filter(e=>"pending"===e.status).sort((e,t)=>e.createdAt-t.createdAt);return n.length>0?n:Nte}}(t),[t]);return Lte(hT(s))}function Tte(e){return Lte(t=>{const s=t.requestsBySession[e];return!!s&&Object.values(s).some(e=>"pending"===e.status)})}let Ate=!1,Ete=null;function Rte(t,s){const n=lu(t);return{canUseTool:e.useCallback((e,a,i)=>{if(Sd(e)){const r=cu(a);if(null!==r&&ree.getState().isApproved(t,r)&&(!s||!du(e=>s(e,n),e))&&(!s||!uu(s(e,n).approvalState??{}))){const e=Lte.getState().requestsBySession[t]?.[i.toolUseID];return e&&void 0===e.promiseResolvers&&Lte.getState().removeRequest(t,i.toolUseID),Promise.resolve({decision:"once"})}}const r=Sd(e);if(!wc.REQUIRES_INPUT.has(e))if(s){const{permission:t}=s(e,n);if("allow"===t&&!r)return Promise.resolve({decision:"once"});if("blocked"===t||r&&du(e=>s(e,n),e))return Promise.resolve({decision:"deny"})}else if(!e.startsWith("mcp__")&&!r)return Promise.resolve({decision:"once"});const o=(e,s)=>{if(!i.signal)return;const n=()=>{const n=Lte.getState(),a=n.requestsBySession[t]?.[s];a&&(e.resolve({decision:"once"}),n.removeRequest(t,s))};i.signal.aborted?n():i.signal.addEventListener("abort",n,{once:!0})},l=Lte.getState().requestsBySession[t]?.[i.toolUseID];if(l?.promiseResolvers)return l.promiseResolvers.promise;if(l){const e=Promise.withResolvers();return Lte.setState(s=>{const n=s.requestsBySession[t],a=n?.[i.toolUseID];return a?{requestsBySession:{...s.requestsBySession,[t]:{...n,[i.toolUseID]:{...a,promiseResolvers:e}}}}:s}),o(e,i.toolUseID),e.promise}const c=Promise.withResolvers();return Lte.getState().addRequest({sessionId:t,requestId:i.toolUseID,toolUseId:i.toolUseID,toolName:e,input:a,transport:"websocket",promiseResolvers:c,suggestions:Sd(e)?void 0:i.suggestions,title:i.title,displayName:i.displayName,description:i.description}),o(c,i.toolUseID),c.promise},[t,n,s]),sendToolDecision:e.useCallback((e,s,n,a)=>{const i=Lte.getState();i.setRequestStatus(t,e,"resolving"),i.resolveRequest(t,e,a,n)},[t])}}function Dte(t){return e.useCallback(async(e,s)=>{if(!mu(e.requestedSchema))return new Promise(e=>{if(s.signal.aborted)return e({action:"cancel"});s.signal.addEventListener("abort",()=>e({action:"cancel"}),{once:!0})});const n=Boolean(e.requestedSchema?.properties?.verdict?.enum?.includes("always_allow")),a=`elicit_${t}_${Date.now()}`,i=Promise.withResolvers();Lte.getState().addRequest({sessionId:t,requestId:a,toolUseId:a,toolName:e.serverName,title:e.message,input:{},transport:"websocket",promiseResolvers:i,isElicitation:!0,elicitationOffersAlwaysAllow:n});const r=()=>{const e=Lte.getState();e.requestsBySession[t]?.[a]&&(i.resolve({decision:"deny"}),e.removeRequest(t,a))};s.signal.aborted?r():s.signal.addEventListener("abort",r,{once:!0});const{decision:o}=await i.promise;return pu(o)},[t])}const Hte=new Set;function Pte({sessionId:t,messages:s,getToolApprovalState:n,onAutoResolve:a}){const{track:i}=ae(),r=Lte(hT(e=>Object.keys(e.requestsBySession[t]??{}))),o=r.length>0,l=e.useMemo(()=>o?function(e){const t=new Set;for(const s of e){if("user"!==s.type)continue;const e=s.message.content;if(Array.isArray(e))for(const s of e)"tool_result"===s.type&&t.add(s.tool_use_id)}return t}(s):Hte,[s.length,o]),c=e.useRef(new Set),d=e.useRef(null),u=Dr(n),m=Dr(a);e.useEffect(()=>{const e=d.current,n=null!==e&&e.sessionId===t&&s[0]===e.first&&(0===e.n||s[e.n-1]===e.last)&&(e.n===s.length||e.state.relevant.every(e=>s[e.index]===e.message)),a=n?e.state:{trailing:[],responsesSeen:new Set,relevant:[]};!function(e,t,s){for(let n=s;n<t.length;n++){const s=t[n],a=s;if("control_cancel_request"===a.type){const t=a.request_id;"string"==typeof t?(e.responsesSeen.add(t),e.trailing.some(e=>e.request_id===t)&&(e.trailing=e.trailing.filter(e=>e.request_id!==t))):e.relevant.push({index:n,message:s});continue}if("user"!==s.type){if("control_request"===s.type){const t=s.request?.subtype;void 0===t?e.relevant.push({index:n,message:s}):"can_use_tool"!==t&&"elicitation"!==t||e.responsesSeen.has(s.request_id)||e.trailing.push(s);continue}if("control_response"===s.type){const t=s.response?.request_id;void 0!==t?(e.responsesSeen.add(t),e.trailing.some(e=>e.request_id===t)&&(e.trailing=e.trailing.filter(e=>e.request_id!==t))):e.relevant.push({index:n,message:s})}}else w8(s)&&(e.relevant.push({index:n,message:s}),e.trailing.length>0&&(e.trailing=e.trailing.filter(e=>"elicitation"===e.request?.subtype)))}}(a,s,n?e.n:0),d.current={sessionId:t,n:s.length,first:s[0],last:s[s.length-1],state:a};const r=a.trailing,o=Lte.getState(),l=[];for(const s of r){if("elicitation"===s.request.subtype){if(!fu(s.request))continue;if(c.current.has(s.request_id))continue;if(c.current.add(s.request_id),iee(t,s.request_id))continue;const e=s.request.message,n=o.requestsBySession[t];if(n){if(Object.values(n).find(t=>t.isElicitation&&t.promiseResolvers&&t.title===e))continue}l.push(ru(`mcp__${s.request.mcp_server_name}__`)),o.addRequest({sessionId:t,requestId:s.request_id,toolUseId:s.request_id,toolName:s.request.display_name??s.request.mcp_server_name,title:s.request.title??s.request.message,description:s.request.description,input:{},transport:"websocket",envelopeRequestId:s.request_id,isElicitation:!0,elicitationOffersAlwaysAllow:gu(s.request)});continue}if("can_use_tool"!==s.request.subtype)continue;if(c.current.has(s.request.tool_use_id))continue;const e=u.current,n=m.current,a=e?.(s.request.tool_name);if(!wc.REQUIRES_INPUT.has(s.request.tool_name)&&!1===a?.approvalState.managedAskHydrated)continue;if(c.current.add(s.request.tool_use_id),iee(t,s.request.tool_use_id)){k.debug(w.LOCAL_SESSION,"Skipping tool approval modal for already-acknowledged tool decision",{sessionId:t,toolUseId:s.request.tool_use_id,toolType:s.request.tool_name}),i({event_key:"claudeai.code.tool_approval.skipped_already_acknowledged",session_id:t,tool_type:ru(s.request.tool_name)});continue}l.push(ru(s.request.tool_name));const r=Sd(s.request.tool_name);if(a&&n&&!wc.REQUIRES_INPUT.has(s.request.tool_name)){const{permission:i}=a,o="blocked"===i||r&&void 0!==e&&du(t=>e(t),s.request.tool_name);if("allow"===i&&!r||o){const e=o?"deny":"once";k.debug(w.LOCAL_SESSION,"Auto-resolving trailing tool approval from account settings",{sessionId:t,toolUseId:s.request.tool_use_id,toolName:s.request.tool_name,permission:i}),n({...s,request:{...s.request,input:ou(s.request.input)}},e);continue}}o.addRequest({sessionId:t,requestId:s.request.tool_use_id,toolUseId:s.request.tool_use_id,toolName:s.request.tool_name,title:s.request.title,displayName:s.request.display_name,input:s.request.input,description:s.request.description,transport:"websocket",envelopeRequestId:s.request_id,suggestions:Sd(s.request.tool_name)?void 0:s.request.permission_suggestions})}l.length>0&&Bl("code.trailing_requests_hydrated",{attributes:{session_id:t,count:l.length,tool_names:l.join(",")}})},[s.length,t,i,n,u,m]),e.useEffect(()=>{if(0===r.length)return;const e=Lte.getState();for(const s of r){const n=e.requestsBySession[t]?.[s];if(!n||!l.has(n.toolUseId))continue;const a=Sd(n.toolName)?"deny":"once";e.resolveRequest(t,s,a,n.input),aee(t,s,n.toolName)}},[t,r,l])}function Ute({onInstallSuccess:s}={}){const n=JS(),[a,i]=e.useState(!1),[r,o]=e.useState(!1),l=y("yukon_silver_extension_install"),c=e.useCallback(async()=>{const e=await(hu?.installExtension?.());e?.status===Cu.Succeeded||e?.status===Cu.Skipped?(s?.(),i(!1),o(!0)):e?.status===Cu.Error&&(i(!1),window.open(xu,"_blank"))},[s]),d=e.useCallback(async()=>{await(hu?.restartChrome?.()),o(!1)},[]);return{triggerInstall:e.useCallback(()=>{l&&Boolean(hu)&&"darwin"===vu()?i(!0):window.open(xu,"_blank")},[l]),installModals:t.jsxs(t.Fragment,{children:[t.jsx(yu,{isOpen:a,onClose:()=>i(!1),onConfirm:c,title:n.formatMessage({defaultMessage:"Install Claude in Chrome",id:"oNTPowevAA"}),message:n.formatMessage({defaultMessage:"Claude in Chrome lets you navigate, click buttons, and fill forms in your browser.",id:"LoN+a2vH98"}),confirmText:n.formatMessage({defaultMessage:"Install and restart Chrome",id:"hNbbD/XGb/"}),cancelText:n.formatMessage({defaultMessage:"Later",id:"uQDRsYlg+S"}),children:t.jsx("p",{className:"mt-2 text-text-300",children:t.jsx(ds,{href:xu,target:"_blank",children:t.jsx(XS,{defaultMessage:"Learn more about Claude in Chrome",id:"W5buJUVINM"})})})}),t.jsx(yu,{isOpen:r,onClose:()=>o(!1),onConfirm:d,title:n.formatMessage({defaultMessage:"Chrome extension installed",id:"ahdQuIxlwb"}),message:n.formatMessage({defaultMessage:"Chrome needs to restart for the extension to take effect. Any open Chrome tabs will be restored after restarting.",id:"nP8CTgrI7/"}),confirmText:n.formatMessage({defaultMessage:"Restart now",id:"XmVt+hh5k+"}),cancelText:n.formatMessage({defaultMessage:"Later",id:"uQDRsYlg+S"})})]})}}const Ote=e.memo(function({label:e,description:s,granted:n,onRequest:a,buttonLabel:i}){return t.jsxs("div",{className:"p-3 flex items-start justify-between gap-3",children:[t.jsxs("div",{className:"flex flex-col gap-0.5 min-w-0",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx("span",{className:"text-sm text-text-200 font-medium",children:e}),n?t.jsxs("span",{className:"inline-flex items-center gap-1 text-xs text-text-400",children:[t.jsx(FS,{size:14,className:"text-success-000 flex-shrink-0"}),t.jsx(XS,{defaultMessage:"Granted",id:"rKbDywsl1o"})]}):t.jsxs("span",{className:"inline-flex items-center gap-1 text-xs text-text-400",children:[t.jsx(bU,{size:14,className:"text-text-400 flex-shrink-0"}),t.jsx(XS,{defaultMessage:"Not granted",id:"kY0+kMsmB0"})]})]}),t.jsx("p",{className:"text-xs text-text-400",children:s})]}),n?null:t.jsx(kt,{variant:"secondary",size:"sm",onClick:a,className:"flex-shrink-0",children:i??t.jsx(XS,{defaultMessage:"Request",id:"p1P+hQq6tY"})})]})});Ote.displayName="ComputerUseTccRow";const Fte=e.memo(function({hideGrantedRows:s=!1,bare:n=!1,only:a,className:i}){const r=bu(),o="screenRecording"!==a,l="accessibility"!==a,c=r?.accessibility===ku.Granted,d=r?.screenRecording===ku.Granted,u=e.useCallback(()=>{wu?.requestAccessibility?.().then(e=>{e!==ku.Granted&&wu?.openSystemSettings?.("Privacy_Accessibility")}).finally(Mu)},[]),m=e.useCallback(()=>{wu?.requestScreenRecording?.().then(e=>{e!==ku.Granted&&wu?.openSystemSettings?.("Privacy_ScreenCapture")}).finally(Mu)},[]),p=t.jsxs(t.Fragment,{children:[!o||s&&c?null:t.jsx(Ote,{label:t.jsx(XS,{defaultMessage:"Accessibility",id:"fgCBG8/Fm+"}),description:t.jsx(XS,{defaultMessage:"Required for mouse and keyboard control.",id:"KPzcJyA//+"}),granted:c,onRequest:u}),!l||s&&d?null:t.jsx(Ote,{label:t.jsx(XS,{defaultMessage:"Screen recording",id:"+TFOeIaaS0"}),description:t.jsx(XS,{defaultMessage:"Required for screen visibility. macOS may ask you to restart Claude.",id:"jTugika+/T"}),granted:d,onRequest:m})]});return n?p:t.jsx("div",{className:`border border-border-300 rounded-lg divide-y divide-border-300 ${i??""}`,children:p})});Fte.displayName="ComputerUseTccRows";const Vte=[`mcp__${br}__`,"mcp__Claude_in_Chrome__"];function zte(e){return e.startsWith("browser:")||Vte.some(t=>e.startsWith(t))}const Zte=e.memo(function({id:s,input:n,onDecide:a,disableKeyboardShortcuts:i}){const r=qo(),o=_u(),l=ju(),{triggerInstall:c,installModals:d}=Ute({onInstallSuccess:()=>{Su(!0),Lu?.setPreference?.("chromeExtensionEnabled",!0)}}),u=function(e,t){return void 0!==t?"enable":!1===e?"install":!0===e?"connect":"install"}(l,o),m=e.useCallback(()=>{"install"===u?c():(Su(!0),Lu?.setPreference?.("chromeExtensionEnabled",!0))},[u,c]),p=e.useCallback(()=>{a(s,n,"deny")},[a,s,n]),f=e.useCallback(()=>{a(s,{...n,_feedbackMessage:"Claude in Chrome has been enabled. Retry the browser action to proceed."},"deny")},[a,s,n]);return WN("keydown",e=>{const t=e.target;if(!(t instanceof HTMLTextAreaElement||t instanceof HTMLInputElement||t?.isContentEditable||t?.closest("[role='menu']")||t?.closest("[role='dialog']"))&&("Escape"===e.key&&(e.preventDefault(),p()),"Enter"===e.key&&r)){if(t instanceof HTMLButtonElement||t instanceof HTMLAnchorElement)return;e.preventDefault(),f()}},{enabled:!i}),t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"mb-4 overflow-hidden rounded-card border bg-surface-panel shadow-lg",children:t.jsxs("div",{className:"p-md",children:[t.jsxs("div",{className:"mb-3 flex items-start gap-2",children:[t.jsx($L,{name:"Interactive",className:"shrink-0 text-secondary"}),t.jsx("span",{className:"font-semibold text-body text-secondary",children:t.jsx(XS,{defaultMessage:"Claude wants to use your browser",id:"8mCQpPOfrc"})})]}),t.jsx("div",{className:"ml-7 mb-3 divide-y rounded border",children:t.jsx(Ote,{label:t.jsx(XS,{defaultMessage:"Claude in Chrome",id:"1XvgYxOFV4"}),description:t.jsx(XS,{defaultMessage:"Let Claude navigate, click, and fill forms in your Chrome browser.",id:"BQ9NIpYVZL"}),granted:r,onRequest:m,buttonLabel:"enable"===u?t.jsx(XS,{defaultMessage:"Enable",id:"TqSTI0/TZI"}):"connect"===u?t.jsx(XS,{defaultMessage:"Connect",id:"+vVZ/G11Zg"}):t.jsx(XS,{defaultMessage:"Install",id:"ubmFc8rrea"})})}),t.jsxs("div",{className:"ml-7 flex gap-sm",children:[t.jsx(rN,{variant:"secondary",onClick:p,children:t.jsx(XS,{defaultMessage:"Not now",id:"dUCA4Khx0S"})}),r?t.jsx(rN,{variant:"primary",onClick:f,children:t.jsx(XS,{defaultMessage:"Continue",id:"acrOozm08x"})}):null]})]})}),d]})});function Bte(){const{activeOrganization:e}=v(),t=xe();return!!e&&!t}Zte.displayName="BrowserSetupApproval";const qte=e.memo(function({id:s,input:n,onDecide:a,disableKeyboardShortcuts:i,isScheduledTask:r,requestCount:o=1,isRemote:l=!1}){const c=JS(),d=n.domain,u=Bte(),[m,p]=e.useState(!1),f=e.useCallback(()=>{a(s,n,"deny")},[a,s,n]),g=e.useCallback(()=>{a(s,n,"once")},[a,s,n]),h=e.useCallback(()=>{a(s,n,"always")},[a,s,n]),C=e.useCallback(()=>{a(s,{...n,_allowAllSites:!0},"always")},[a,s,n]);WN("keydown",e=>{const t=e.target;if(!(t instanceof HTMLTextAreaElement||t instanceof HTMLInputElement||t?.isContentEditable||t?.closest("[role='menu']"))){if("Escape"===e.key)return e.preventDefault(),void f();if("Enter"===e.key){if(t instanceof HTMLButtonElement||t instanceof HTMLAnchorElement)return;e.preventDefault(),h()}}},{enabled:!i&&!m});const x=r&&!l,v=x?c.formatMessage({defaultMessage:"Allow for all scheduled runs",id:"jq4WKOmptI"}):c.formatMessage({defaultMessage:"Allow for this website",id:"o3qeK5ZRGT"});return t.jsxs("div",{className:"mb-4 block overflow-hidden rounded-card border bg-surface-panel shadow-lg",children:[t.jsxs("div",{className:"p-md",children:[t.jsxs("div",{className:"mb-3 flex items-start gap-2",children:[t.jsx($L,{name:"Interactive",className:"shrink-0 text-secondary"}),t.jsxs("span",{className:"text-body text-secondary",children:[t.jsx(XS,{defaultMessage:"Allow Claude to use the browser on <bold>{domain}</bold>?",id:"5CaQD4KKIb",values:{domain:d,bold:e=>t.jsx("span",{className:"font-semibold",children:e})}}),o>1&&t.jsx("span",{className:"ml-2 text-footnote text-muted",children:t.jsx(XS,{defaultMessage:"({requestCount, plural, one {# request} other {# requests}})",id:"jMs7QaCoI0",values:{requestCount:o}})})]})]}),t.jsxs("div",{className:"ml-7 flex gap-sm",children:[t.jsx(Nu,{variant:"primary",open:m,onOpenChange:p,label:v,menuLabel:c.formatMessage({defaultMessage:"More allow options",id:"neJ+WAvag5"}),onPrimaryClick:h,items:t.jsxs(t.Fragment,{children:[t.jsx(KL.Header,{children:t.jsx(XS,{defaultMessage:"Allow...",id:"QTXqLCc8VB"})}),t.jsx(KL.Item,{onClick:h,children:x?t.jsx(XS,{defaultMessage:"For all scheduled runs",id:"6YrefCx4AJ"}):t.jsx(XS,{defaultMessage:"All for this website",id:"hGaPqyDv6h"})}),t.jsx(KL.Item,{onClick:g,children:t.jsx(XS,{defaultMessage:"This time only",id:"o/REvKMLox"})})]})}),t.jsx(rN,{variant:"secondary",onClick:f,children:t.jsx(XS,{defaultMessage:"Deny",id:"htvX+Z11l+"})})]})]}),u&&!l&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"border-t"}),t.jsx("div",{className:"p-md",children:t.jsxs("div",{className:"flex items-start gap-2",children:[t.jsx($L,{name:"Globe",className:"shrink-0 text-secondary"}),t.jsxs("div",{className:"flex flex-col gap-1.5",children:[t.jsx("span",{className:"text-body text-secondary",children:t.jsx(XS,{defaultMessage:"Allow Claude to browse and interact with any website without asking",id:"XfcOyvJ7Cr"})}),t.jsx("span",{className:"text-footnote text-secondary",children:t.jsx(XS,{defaultMessage:"This setting can put your data at risk. <link>Learn more</link>",id:"ef0pM+jou0",values:{link:e=>t.jsx(ct,{external:!0,href:"https://support.claude.com/en/articles/12902428-using-claude-in-chrome-safely",children:e})}})}),t.jsx(rN,{variant:"secondary",onClick:C,className:"mt-1 w-fit",children:t.jsx(XS,{defaultMessage:"Allow all browser actions",id:"fVIi0h0uIb"})})]})]})})]})]})});qte.displayName="BrowserToolApproval";const Wte=new Set(["com.apple.Terminal","com.googlecode.iterm2","com.microsoft.VSCode","dev.warp.Warp-Stable","com.github.wez.wezterm","org.alacritty","io.alacritty","net.kovidgoyal.kitty","co.zeit.hyper","com.mitchellh.ghostty","com.todesktop.230313mzl4w4u92","com.vscodium","com.exafunction.windsurf","dev.zed.Zed","org.tabby","com.jetbrains.intellij","com.jetbrains.pycharm"]),$te=new Set(["com.apple.finder"]),Gte=new Set(["com.apple.systempreferences"]),Kte=new Set(["cmd.exe","powershell.exe","pwsh.exe","wt.exe","windowsterminal.exe","code.exe","cursor.exe","vscodium.exe","windsurf.exe","zed.exe","alacritty.exe","wezterm-gui.exe","warp.exe","hyper.exe","tabby.exe","idea64.exe","pycharm64.exe","conemu.exe","conemu64.exe"]),Yte=["Microsoft.WindowsTerminal_","Microsoft.WindowsTerminalPreview_","Microsoft.PowerShell_"],Qte=new Set(["explorer.exe"]),Jte=new Set(["systemsettings.exe"]),Xte=["windows.immersivecontrolpanel_"];function ese(e){if(Wte.has(e))return"shell";if($te.has(e))return"filesystem";if(Gte.has(e))return"system_settings";if(Yte.some(t=>e.startsWith(t)))return"shell";if(Xte.some(t=>e.startsWith(t)))return"system_settings";const t=function(e){return e.toLowerCase().split(/[\\/]/).pop()??""}(e);return Kte.has(t)?"shell":Qte.has(t)?"filesystem":Jte.has(t)?"system_settings":null}const tse="https://support.claude.com/en/articles/14128542";function sse(e){return t.jsx(nse,{...e},Iu(e.isOpen))}function nse({isOpen:s,onClose:n,onConfirm:a,skipTccStep:i=!1}){const r=JS(),[o,l]=e.useState("warning"),c=bu(),d=Tu(),u=e.useCallback(()=>{a(),i||null===c||d?n():l("permissions")},[a,n,i,c,d]),m="warning"===o?r.formatMessage({defaultMessage:"Turn on computer use?",id:"FL22V2dlmY"}):r.formatMessage({defaultMessage:"Grant macOS permissions",id:"ZoFao4NS9T"});return t.jsx(gt,{isOpen:s,onClose:n,title:m,modalSize:"md",children:"warning"===o?t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"mt-1.5 mb-2 text-text-300",children:t.jsxs("div",{className:"flex flex-col gap-3 pt-1",children:[t.jsx("p",{children:t.jsx(XS,{defaultMessage:"Claude will take screenshots of your screen and control your mouse and keyboard. You'll approve each app, but not confirm each step Claude performs.",id:"OMSDTsdd44"})}),t.jsxs("div",{children:[t.jsx("div",{className:"font-semibold mb-1.5",children:t.jsx(XS,{defaultMessage:"Keep in mind:",id:"B0acufoCei"})}),t.jsxs("ul",{className:"list-disc pl-5 flex flex-col gap-1",children:[t.jsx("li",{children:t.jsx(XS,{defaultMessage:"Some actions can't be undone.",id:"wu2o3Yooc0"})}),t.jsx("li",{children:t.jsx(XS,{defaultMessage:"Apps you approve could open other apps that you haven't approved.",id:"CZPVWP31Ix"})}),t.jsx("li",{children:t.jsx(XS,{defaultMessage:"Websites and docs could contain malicious instructions that misdirect Claude.",id:"3tVdapG4TE"})}),t.jsx("li",{children:t.jsx(XS,{defaultMessage:"Close anything sensitive. Claude can see your screen.",id:"QjJUlatzuI"})})]})]}),t.jsx("p",{children:t.jsx(XS,{defaultMessage:"This is a research preview. Start with tasks where mistakes are easy to fix. <link>Read safe use tips</link>",id:"VmeIF88gHf",values:{link:e=>t.jsx(Au,{href:tse,target:"_blank",children:e})}})})]})}),t.jsxs(Eu,{children:[t.jsx(kt,{variant:"secondary",onClick:n,children:t.jsx(XS,{defaultMessage:"Cancel",id:"47FYwba+bI"})}),t.jsx(kt,{variant:"primary",onClick:u,autoFocus:!0,"data-testid":"confirmation-modal-confirm",children:t.jsx(XS,{defaultMessage:"Turn on",id:"npvxprjeDK"})})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"mt-1.5 mb-2 text-text-300",children:[t.jsx("p",{className:"mb-3",children:t.jsx(XS,{defaultMessage:"Computer use is on. To finish setup, grant the macOS permissions below.",id:"i0pQIFZiRB"})}),t.jsx(Fte,{})]}),t.jsx(Eu,{children:t.jsx(kt,{variant:"primary",onClick:n,autoFocus:!0,children:t.jsx(XS,{defaultMessage:"Done",id:"JXdbo8Vnlw"})})})]})})}const ase={shell:t.jsx(XS,{defaultMessage:"Can run commands on your computer",id:"mRg/83TFli"}),filesystem:t.jsx(XS,{defaultMessage:"Can access all your files",id:"8+SmLs9cdn"}),system_settings:t.jsx(XS,{defaultMessage:"Can change system settings",id:"yjV52Y2G/h"})},ise={read:t.jsx(XS,{defaultMessage:"View only",id:"YrPQCpC/JN"}),click:t.jsx(XS,{defaultMessage:"Click only",id:"SoaDca4p4O"}),full:t.jsx(XS,{defaultMessage:"Full control",id:"SElXf9Ku11"})},rse={read:"accent",click:"accent",full:"neutral"};function ose(e){const s=e.input;return s.featureDisabled?t.jsx(gse,{...e}):s.tccState?t.jsx(fse,{...e}):t.jsx(dse,{...e,request:s})}const lse=e.memo(function(s){const n=e.useRef(null);return e.useEffect(()=>{n.current?.scrollIntoView({block:"nearest",behavior:"smooth"})},[]),t.jsx("div",{ref:n,children:t.jsx(ose,{...s})})});function cse(e){return"computer:request_access"===e}lse.displayName="ComputerUseApproval";const dse=e.memo(function({id:s,input:n,onDecide:a,disableKeyboardShortcuts:i,request:r}){const o=e.useCallback(()=>{a(s,n,"deny")},[a,s,n]),l=e.useCallback(()=>{const e=Date.now(),t=[],i=[];for(const s of r.apps)s.alreadyGranted||(s.resolved?t.push({bundleId:s.resolved.bundleId,displayName:s.resolved.displayName,grantedAt:e,tier:s.proposedTier}):i.push({bundleId:s.requestedName,reason:"not_installed"}));const o={granted:t,denied:i,flags:{clipboardRead:r.requestedFlags.clipboardRead??!1,clipboardWrite:r.requestedFlags.clipboardWrite??!1,systemKeyCombos:r.requestedFlags.systemKeyCombos??!1}};a(s,{...n,_cuGrants:o},"always")},[a,s,n,r.apps,r.requestedFlags]);WN("keydown",e=>{if(e.metaKey||e.ctrlKey)return"."===e.key?(e.preventDefault(),e.stopPropagation(),void o()):void("Enter"===e.key&&(e.preventDefault(),e.stopPropagation(),l()))},{enabled:!i});const c=e.useMemo(()=>(r.requestedFlags.clipboardRead?1:0)+(r.requestedFlags.clipboardWrite?1:0)+(r.requestedFlags.systemKeyCombos?1:0),[r.requestedFlags]),d=r.apps.length>0||c>0;return t.jsx("div",{className:"mb-4 overflow-hidden rounded-card border bg-surface-panel shadow-lg",children:t.jsxs("div",{className:"p-md",children:[t.jsxs("div",{className:"mb-1 flex items-start gap-2",children:[t.jsx($L,{name:"Interactive",className:"shrink-0 text-secondary"}),t.jsx("span",{className:"font-semibold text-body text-secondary",children:t.jsx(use,{apps:r.apps,hasFlags:c>0})})]}),r.deviceName?t.jsx("p",{className:"ml-7 mb-2 text-footnote text-muted",children:t.jsx(XS,{defaultMessage:"On {deviceName}",id:"GSb5eXvbg1",values:{deviceName:r.deviceName}})}):null,d?t.jsxs("div",{className:"ml-7 mb-3 divide-y rounded border bg-surface-1",children:[r.apps.map((e,s)=>t.jsx(mse,{app:e},e.resolved?.bundleId??`unresolved-${s}`)),r.requestedFlags.clipboardRead?t.jsx(pse,{iconName:"Clipboard",label:t.jsx(XS,{defaultMessage:"Read your clipboard",id:"PQoBWCb1C7"})}):null,r.requestedFlags.clipboardWrite?t.jsx(pse,{iconName:"Copy",label:t.jsx(XS,{defaultMessage:"Write to your clipboard",id:"TFF5TqdaAt"})}):null,r.requestedFlags.systemKeyCombos?t.jsx(pse,{iconName:"Keyboard",label:"native"===r.screenshotFiltering?t.jsx(XS,{defaultMessage:"Use system shortcuts (Cmd+Q, Cmd+Tab, and similar)",id:"z7DyZASwhp"}):t.jsx(XS,{defaultMessage:"Use system shortcuts (Alt+F4, Alt+Tab, and similar)",id:"zCFqyz7RGK"})}):null]}):null,r.willHide&&r.willHide.length>0?t.jsx("p",{className:"ml-7 mb-3 text-body text-secondary",children:r.autoUnhideEnabled?t.jsx(XS,{defaultMessage:"Your other windows will be hidden, then restored when Claude is done.",id:"isEpzl+um7"}):t.jsx(XS,{defaultMessage:"Your other windows will be hidden while Claude works.",id:"yNyU0xuMGA"})}):null,"none"===r.screenshotFiltering?t.jsx("p",{className:"ml-7 mb-3 text-footnote text-muted",children:t.jsx(XS,{defaultMessage:"On Windows, Claude can see all open apps. Actions on apps not allowed here are rejected.",id:"j0Qa4THnGn"})}):null,t.jsxs("div",{className:"ml-7 flex gap-sm",children:[t.jsx(rN,{variant:"secondary",onClick:o,shortcut:i?void 0:"cmd+.",children:t.jsx(XS,{defaultMessage:"Deny",id:"htvX+Z11l+"})}),t.jsx(rN,{variant:"primary",onClick:l,shortcut:i?void 0:"cmd+enter",children:t.jsx(XS,{defaultMessage:"Allow for this session",id:"gSU+cM2i4N"})})]})]})})});function use({apps:e,hasFlags:s}){if(0===e.length&&!s)return t.jsx(XS,{defaultMessage:"Claude wants to use your computer",id:"U+uDqXlJWg"});if(0===e.length)return t.jsx(XS,{defaultMessage:"Claude wants to:",id:"/uR65kQIaq"});if(1===e.length&&!s){const s=e[0];return t.jsx(XS,{defaultMessage:"Claude wants to use {appName}",id:"9SC27/oZiJ",values:{appName:s.resolved?.displayName??s.requestedName}})}return t.jsx(XS,{defaultMessage:"Claude wants to use:",id:"tX+S0cc3I4"})}dse.displayName="ComputerUseAppListPanel";const mse=e.memo(function({app:s}){const n=s.resolved,a=s.isSentinel?ese(n?.bundleId??s.requestedName):null,[i,r]=e.useState(null),o=n?.bundleId,l=!n?.iconDataUrl&&!!o;e.useEffect(()=>{if(!l||!o)return;let e=!1;return lo?.getAppIconForBundleId?.(o).then(t=>{!e&&t&&r(t)}).catch(()=>{}),()=>{e=!0}},[l,o]);const c=n?.iconDataUrl??i;return t.jsxs("div",{className:"p-2.5 "+(n?"":"opacity-50"),children:[t.jsxs("div",{className:"flex items-center gap-sm",children:[c?t.jsx("div",{className:"size-5 shrink-0 overflow-hidden rounded-[4px]",children:t.jsx("img",{src:c,alt:"",className:"size-full scale-[1.15]"})}):t.jsx("div",{className:"size-5 shrink-0 rounded-[4px] bg-alpha-2"}),t.jsx("span",{className:"min-w-0 flex-1 truncate text-body text-secondary",children:n?.displayName??s.requestedName}),n?s.alreadyGranted?t.jsx(vN,{variant:"neutral",children:t.jsx(XS,{defaultMessage:"Already allowed",id:"+mpYXoUDnZ"})}):t.jsx(vN,{variant:rse[s.proposedTier],children:ise[s.proposedTier]}):t.jsx("span",{className:"shrink-0 text-footnote text-muted",children:t.jsx(XS,{defaultMessage:"(not installed)",id:"vg7ixeSm+z"})})]}),a?t.jsxs("div",{className:"ml-7 mt-1 flex items-center gap-1.5 text-footnote text-danger",children:[t.jsx($L,{name:"Warning",customSize:14,className:"shrink-0"}),t.jsx("span",{children:ase[a]})]}):null]})});function pse({iconName:e,label:s}){return t.jsxs("div",{className:"flex items-center gap-sm p-2.5",children:[t.jsx("div",{className:"flex size-5 shrink-0 items-center justify-center rounded-[4px] bg-alpha-2",children:t.jsx($L,{name:e,size:"sm",className:"text-muted"})}),t.jsx("span",{className:"text-body text-secondary",children:s})]})}mse.displayName="ComputerUseAppRow";const fse=e.memo(function({id:s,input:n,onDecide:a,disableKeyboardShortcuts:i}){const r=bu(),o=r?.accessibility===ku.Granted&&r?.screenRecording===ku.Granted,l=e.useCallback(()=>{a(s,n,"deny")},[a,s,n]);return WN("keydown",e=>{(e.metaKey||e.ctrlKey)&&"."===e.key&&(e.preventDefault(),e.stopPropagation(),l())},{enabled:!i}),t.jsx("div",{className:"mb-4 overflow-hidden rounded-card border bg-surface-panel shadow-lg",children:t.jsxs("div",{className:"p-md",children:[t.jsxs("div",{className:"mb-1 flex items-start gap-2",children:[t.jsx($L,{name:"Interactive",className:"shrink-0 text-secondary"}),t.jsx("span",{className:"font-semibold text-body text-secondary",children:t.jsx(XS,{defaultMessage:"System permissions needed",id:"Srf7+FuF0H"})})]}),t.jsx("p",{className:"ml-7 mb-3 text-body text-secondary",children:t.jsx(XS,{defaultMessage:"Computer use needs two macOS permissions. Click each one, grant it in System Settings, then come back here.",id:"fqS8ksg3Cb"})}),t.jsx(Fte,{className:"ml-7 mb-3"}),o?t.jsx("p",{className:"ml-7 mb-3 text-footnote text-muted",children:t.jsx(XS,{defaultMessage:"Permissions are ready. Click Ask again to continue.",id:"XuXjRpspk8"})}):null,t.jsxs("div",{className:"ml-7 flex gap-sm",children:[t.jsx(rN,{variant:"secondary",onClick:l,shortcut:i?void 0:"cmd+.",children:t.jsx(XS,{defaultMessage:"Deny",id:"htvX+Z11l+"})}),o?t.jsx(rN,{variant:"primary",onClick:l,children:t.jsx(XS,{defaultMessage:"Ask again",id:"5P4VhhT28u"})}):null]})]})})});fse.displayName="ComputerUseTccPanel";const gse=e.memo(function({id:s,input:n,onDecide:a,disableKeyboardShortcuts:i}){const r=n,o=To(),l=bu(),c=l?.accessibility===ku.Granted,d=l?.screenRecording===ku.Granted,u=void 0!==r.tccState,m=o&&u,p=m&&(!c||!d),[f,g]=e.useState(!1),h=e.useCallback(()=>{g(!0)},[]),C=e.useCallback(()=>{Ru(!0),Lu?.setPreference?.("chicagoEnabled",!0)},[]),x=e.useCallback(()=>{g(!1)},[]),v=e.useCallback(()=>{a(s,n,"deny")},[a,s,n]);return WN("keydown",e=>{(e.metaKey||e.ctrlKey)&&("."===e.key&&(e.preventDefault(),e.stopPropagation(),v()),"Enter"===e.key&&o&&(e.preventDefault(),e.stopPropagation(),v()))},{enabled:!i&&!f}),t.jsxs(t.Fragment,{children:[r.reason?t.jsx("p",{className:"mb-3 text-base text-primary",children:r.reason}):null,t.jsx("div",{className:"mb-4 overflow-hidden rounded-card border bg-surface-panel shadow-lg",children:t.jsxs("div",{className:"p-md",children:[t.jsxs("div",{className:"mb-3 flex items-start gap-2",children:[t.jsx($L,{name:"Interactive",className:"shrink-0 text-secondary"}),t.jsx("span",{className:"font-semibold text-body text-secondary",children:t.jsx(XS,{defaultMessage:"Claude wants to use your computer",id:"U+uDqXlJWg"})})]}),t.jsxs("div",{className:"ml-7 mb-3 divide-y rounded border",children:[t.jsx(Ote,{label:t.jsx(XS,{defaultMessage:"Computer use",id:"RfG2KsHAez"}),description:t.jsx(XS,{defaultMessage:"Let Claude see your screen and control your mouse and keyboard.",id:"AIrtBG4vgM"}),granted:o,onRequest:h,buttonLabel:t.jsx(XS,{defaultMessage:"Enable",id:"TqSTI0/TZI"})}),m?t.jsx(Fte,{bare:!0,hideGrantedRows:!0}):null]}),p?t.jsx("p",{className:"ml-7 mb-3 text-footnote text-muted",children:t.jsx(XS,{defaultMessage:"Grant the macOS permissions above to finish. You'll need to be at your Mac for these.",id:"58mt6qaJQd"})}):null,t.jsxs("div",{className:"ml-7 flex gap-sm",children:[t.jsx(rN,{variant:"secondary",onClick:v,shortcut:i||f?void 0:"cmd+.",children:t.jsx(XS,{defaultMessage:"Deny",id:"htvX+Z11l+"})}),o?t.jsx(rN,{variant:"primary",onClick:v,shortcut:i||f?void 0:"cmd+enter",children:t.jsx(XS,{defaultMessage:"Continue",id:"acrOozm08x"})}):null]})]})}),t.jsx(sse,{isOpen:f,onClose:x,onConfirm:C,skipTccStep:!0})]})});gse.displayName="ComputerUseEnablePanel";const hse={clipboardRead:!1,clipboardWrite:!1,systemKeyCombos:!1};function Cse(e){const s=e.input;return s.tccState?t.jsx(fse,{...e}):t.jsx(yse,{...e,request:s})}const xse=e.memo(function(s){const n=e.useRef(null);return e.useEffect(()=>{n.current?.scrollIntoView({block:"nearest",behavior:"smooth"})},[]),t.jsx("div",{ref:n,children:t.jsx(Cse,{...s})})});function vse(e){return"computer:request_teach_access"===e}xse.displayName="ComputerUseTeachApproval";const yse=e.memo(function({id:s,input:n,onDecide:a,disableKeyboardShortcuts:i,request:r}){const o=e.useCallback(()=>{a(s,n,"deny")},[a,s,n]),l=e.useCallback(()=>{const e=Date.now(),t=[],i=[];for(const s of r.apps)s.alreadyGranted||(s.resolved?t.push({bundleId:s.resolved.bundleId,displayName:s.resolved.displayName,grantedAt:e,tier:s.proposedTier}):i.push({bundleId:s.requestedName,reason:"not_installed"}));const o={granted:t,denied:i,flags:hse};a(s,{...n,_cuGrants:o},"always")},[a,s,n,r.apps]);return WN("keydown",e=>{if(e.metaKey||e.ctrlKey)return"."===e.key?(e.preventDefault(),e.stopPropagation(),void o()):void("Enter"===e.key&&(e.preventDefault(),e.stopPropagation(),l()))},{enabled:!i}),t.jsx("div",{className:"mb-4 overflow-hidden rounded-card border bg-surface-panel shadow-lg",children:t.jsxs("div",{className:"p-md",children:[t.jsxs("div",{className:"mb-1 flex items-start gap-2",children:[t.jsx($L,{name:"GraduationCap",className:"shrink-0 text-secondary"}),t.jsx("span",{className:"font-semibold text-body text-secondary",children:t.jsx(XS,{defaultMessage:"Let Claude guide you step by step?",id:"noiXNtwHHN"})})]}),t.jsx("p",{className:"ml-7 mb-2 text-body text-secondary",children:r.reason}),t.jsx("p",{className:"ml-7 mb-3 text-footnote text-muted",children:t.jsx(XS,{defaultMessage:"The Claude window will hide. A tooltip appears next to each step with a Next button. Click Exit anytime to stop.",id:"JxbU5lJ3LM"})}),r.apps.length>0?t.jsx("div",{className:"ml-7 mb-3 divide-y rounded border bg-surface-1",children:r.apps.map((e,s)=>t.jsx(mse,{app:e},e.resolved?.bundleId??`unresolved-${s}`))}):null,r.willHide&&r.willHide.length>0?t.jsx("p",{className:"ml-7 mb-3 text-body text-secondary",children:r.autoUnhideEnabled?t.jsx(XS,{defaultMessage:"Your other windows will be hidden, then restored when Claude is done.",id:"isEpzl+um7"}):t.jsx(XS,{defaultMessage:"Your other windows will be hidden while Claude works.",id:"yNyU0xuMGA"})}):null,"none"===r.screenshotFiltering?t.jsx("p",{className:"ml-7 mb-3 text-footnote text-muted",children:t.jsx(XS,{defaultMessage:"On Windows, Claude can see all open apps. Actions on apps not allowed here are rejected.",id:"j0Qa4THnGn"})}):null,t.jsxs("div",{className:"ml-7 flex gap-sm",children:[t.jsx(rN,{variant:"secondary",onClick:o,shortcut:i?void 0:"cmd+.",children:t.jsx(XS,{defaultMessage:"Deny",id:"htvX+Z11l+"})}),t.jsx(rN,{variant:"primary",onClick:l,shortcut:i?void 0:"cmd+enter",children:t.jsx(XS,{defaultMessage:"Start guide",id:"UafjVnAajh"})})]})]})})});yse.displayName="ComputerUseTeachAppListPanel";const bse=e.memo(function({id:s,input:n,onDecide:a,isUpdate:i=!1,isScheduledTask:r=!1,isRemoteBridge:o=!1,sessionId:l,disableKeyboardShortcuts:c,isRemote:d=!1}){Du();const u=Tc(l??null),m="string"==typeof n.id?n.id:"Untitled",p=i?"string"==typeof n.update_summary?n.update_summary:void 0:"string"==typeof n.description?n.description:void 0,f=u||o||!Array.isArray(n.mcp_tools)?[]:n.mcp_tools.filter(e=>"string"==typeof e),g=e.useCallback(e=>{a(s,n,e)},[a,s,n]),h=e.useCallback(()=>{g("deny")},[g]),C=e.useCallback(()=>{g("once")},[g]),x=e.useCallback(()=>{g("always")},[g]);return WN("keydown",e=>{if(e.repeat)return;const t=e.target;if(!(t instanceof HTMLTextAreaElement||t instanceof HTMLInputElement||t?.isContentEditable)){if("Escape"===e.key)return e.preventDefault(),void h();if("Enter"===e.key){if(t instanceof HTMLButtonElement||t instanceof HTMLAnchorElement)return;e.preventDefault(),C()}}},{enabled:!c}),t.jsxs("div",{className:"overflow-hidden rounded-card border bg-surface-panel p-md shadow-lg",children:[t.jsxs("div",{className:"flex flex-col gap-xs",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx("div",{className:"flex items-center justify-center rounded border p-1",children:t.jsx($L,{name:"Artifacts",size:"sm",className:"text-secondary"})}),t.jsx("span",{className:"font-base-bold text-primary",children:i?t.jsx(XS,{defaultMessage:"Update artifact",id:"RaoCHuCPiy"}):t.jsx(XS,{defaultMessage:"Create artifact",id:"0g3VH0BuZH"})}),t.jsx("span",{className:"text-muted",children:"\xb7"}),t.jsx("span",{className:"font-base truncate",children:m})]}),!i&&t.jsxs("div",{className:"ml-[34px] flex items-start gap-sm rounded border bg-surface-1 p-2.5 text-secondary",children:[t.jsx($L,{name:"Info",size:"sm",className:"mt-px shrink-0"}),t.jsx("p",{className:"font-small",children:o?t.jsx(XS,{defaultMessage:"Artifacts are interactive pages that open in the Cowork sidebar on your connected desktop. <b>Cancel</b> to skip creating it.",id:"aVNuWWtPdr",values:{b:e=>t.jsx("span",{className:"font-small-bold text-primary",children:e})}}):u?t.jsx(XS,{defaultMessage:"Artifacts are interactive pages that open in a side panel. <b>Cancel</b> to have Claude include it in the reply instead.",id:"eox9+YBiQM",values:{b:e=>t.jsx("span",{className:"font-small-bold text-primary",children:e})}}):t.jsx(XS,{defaultMessage:"Live artifacts are interactive pages that stay up-to-date using live data from your connectors. <b>Cancel</b> to create a normal file instead.",id:"WCrJjVZDsS",values:{b:e=>t.jsx("span",{className:"font-small-bold text-primary",children:e})}})})]}),p&&t.jsx("div",{className:"pl-[34px] font-base text-secondary",children:p}),f.length>0&&t.jsxs("div",{className:"flex flex-col gap-1.5 py-1 pl-[34px]",children:[t.jsx("div",{className:"font-small text-muted",children:t.jsx(XS,{defaultMessage:"This artifact will have access to these connectors without approvals:",id:"g3Nsq2JL4G"})}),f.map(e=>{const s=Ha(e),n=s?.tool?.displayName??tc(e)?.toolName??e,a=s?.server?.name,i=s?.server?.iconSrc,r=s?.server?.iconType??"favicon";return t.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[i?t.jsx(Ls,{size:16,type:r,src:i,name:a??n}):t.jsx("div",{className:"size-4 shrink-0 rounded-[4px] bg-alpha-2"}),a?t.jsx("span",{className:"shrink-0 font-small text-secondary",children:a}):null,t.jsx("span",{className:"truncate font-small text-muted",children:n})]},e)})]})]}),t.jsxs("div",{className:"ml-[34px] mt-4 flex gap-sm",children:[t.jsx(rN,{variant:"primary",onClick:C,shortcut:c?void 0:"enter",children:i?t.jsx(XS,{defaultMessage:"Update",id:"BWpuKlRSA1"}):t.jsx(XS,{defaultMessage:"Create",id:"VzzYJkHnLP"})}),r&&!d&&t.jsx(rN,{variant:"secondary",onClick:x,children:t.jsx(XS,{defaultMessage:"Allow for all scheduled runs",id:"jq4WKOmptI"})}),t.jsx(rN,{variant:"secondary",onClick:h,shortcut:c?void 0:"escape",children:t.jsx(XS,{defaultMessage:"Cancel",id:"47FYwba+bI"})})]})]})});bse.displayName="CoworkArtifactApproval";const kse={bold:e=>t.jsx("span",{className:"font-semibold",children:e})};const wse=e.memo(function({id:s,input:n,onDecide:a,disableKeyboardShortcuts:i,isScheduledTask:r,isRemote:o=!1}){const l=e.useCallback(e=>{a(s,n,e)},[a,s,n]);WN("keydown",e=>{const t=e.target;if(!(t instanceof HTMLTextAreaElement||t instanceof HTMLInputElement||t?.isContentEditable)){if("Escape"===e.key)return e.preventDefault(),void l("deny");if("Enter"===e.key){if(t instanceof HTMLButtonElement||t instanceof HTMLAnchorElement)return;e.preventDefault(),l("once")}}},{enabled:!i});const c="string"==typeof n.path?n.path:void 0,d=c&&/^([A-Za-z]:\\|\\\\)/.test(c)?c.replace(/\\/g,"/"):c;return t.jsx("div",{className:"overflow-hidden rounded-card border bg-surface-panel p-md shadow-lg",children:t.jsxs("div",{className:"flex flex-col gap-sm",children:[t.jsxs("div",{className:"flex items-start gap-sm",children:[t.jsx($L,{name:"Folder",size:"md",className:"mt-0.5 shrink-0 text-secondary"}),t.jsxs("div",{className:"flex min-w-0 flex-col gap-1",children:[t.jsx("span",{className:"text-body text-secondary",children:d?t.jsx(XS,{defaultMessage:"Claude would like to <bold>Cowork</bold> in:",id:"anyi88s/sW",values:kse}):t.jsx(XS,{defaultMessage:"Claude would like to <bold>Cowork</bold> in a folder",id:"LGWVdZpcsu",values:kse})}),d&&t.jsx(iN,{multiline:!0,className:"[overflow-wrap:anywhere]",content:d,align:"start",children:t.jsx("span",{className:"break-all font-mono text-body text-primary",children:d})})]})]}),t.jsxs("div",{className:"flex justify-end gap-sm",children:[t.jsx(rN,{variant:"secondary",onClick:()=>l("deny"),shortcut:i?void 0:"escape",children:t.jsx(XS,{defaultMessage:"Deny",id:"htvX+Z11l+"})}),r&&!o&&d&&t.jsx(rN,{variant:"secondary",onClick:()=>l("always"),children:t.jsx(XS,{defaultMessage:"Allow for all scheduled runs",id:"jq4WKOmptI"})}),t.jsx(rN,{variant:"primary",onClick:()=>l("once"),shortcut:i?void 0:"enter",children:d?t.jsx(XS,{defaultMessage:"Allow",id:"y/bmsG8rnv"}):t.jsx(XS,{defaultMessage:"Choose folder",id:"fe9AdTFbT4"})})]})]})})});wse.displayName="CoworkDirectoryApproval";const Mse=e.memo(function({id:s,input:n,onDecide:a,disableKeyboardShortcuts:i}){const r="string"==typeof n._folderName?n._folderName:"workspace",o=e.useCallback(e=>{a(s,n,e)},[a,s,n]),l=e.useCallback(()=>{o("deny")},[o]),c=e.useCallback(()=>{o("once")},[o]);return WN("keydown",e=>{const t=e.target;if(!(t instanceof HTMLTextAreaElement||t instanceof HTMLInputElement||t?.isContentEditable)){if("Escape"===e.key)return e.preventDefault(),void o("deny");if("Enter"===e.key){if(t instanceof HTMLButtonElement||t instanceof HTMLAnchorElement)return;e.preventDefault(),o("once")}}},{enabled:!i}),t.jsx("div",{className:"overflow-hidden rounded-card border bg-surface-panel p-md shadow-lg",children:t.jsxs("div",{className:"flex flex-col gap-sm",children:[t.jsxs("div",{className:"flex items-start gap-sm",children:[t.jsx($L,{name:"Warning",size:"md",className:"mt-0.5 shrink-0 text-warning"}),t.jsxs("div",{className:"flex flex-col gap-1",children:[t.jsx("span",{className:"font-base-bold",children:t.jsx(XS,{defaultMessage:"Allow Claude to permanently delete files in your {folderName} folder during this task?",id:"hkclihVpsD",values:{folderName:t.jsx("span",{className:"font-semibold",children:r})}})}),t.jsx("span",{className:"font-small text-muted",children:t.jsx(XS,{defaultMessage:"Once allowed, this permission can't be revoked without starting a new task. Deleted files can't be restored.",id:"Bo7iQovUep"})})]})]}),t.jsxs("div",{className:"flex justify-end gap-sm",children:[t.jsx(rN,{variant:"secondary",onClick:l,shortcut:i?void 0:"escape",children:t.jsx(XS,{defaultMessage:"Deny",id:"htvX+Z11l+"})}),t.jsx(rN,{variant:"primary",onClick:c,shortcut:i?void 0:"enter",children:t.jsx(XS,{defaultMessage:"Allow",id:"y/bmsG8rnv"})})]})]})})});Mse.displayName="FileDeleteApproval";function _se(t,s="default"){const{activeOrganization:n}=v(),a=n?.uuid,i=M(),r=_().claudeai_title_generation;return{getTitleAndBranch:e.useCallback(async({text:e,signal:n,model:o}={})=>{if(r)throw new Error("Title generation is load-shed.");const l=await i(`/api/organizations/${a}/dust/generate_title_and_branch`,{method:"POST",body:JSON.stringify({first_session_message:(e??t??"").trim().slice(0,2e3),title_style:s,...void 0!==o&&{model:o}}),signal:n});return j(l,"Failed to generate title and branch name."),await l.json()},[i,a,r,s,t]),clearTitleAndBranchCache:()=>{}}}const jse=e.memo(({worktreeEnabled:e,onWorktreeToggle:s,disabled:n})=>{const a=JS();return t.jsx(iN,{multiline:!0,content:e?a.formatMessage({defaultMessage:"Claude will work in an isolated copy of your repo so you can keep working without conflicts.",id:"/oylr2HQ2V"}):a.formatMessage({defaultMessage:"Enable to have Claude work in an isolated copy of your repo, so you can work on multiple tasks at the same time.",id:"fef/IH6VNt"}),side:"top",children:t.jsxs("button",{type:"button",onClick:s,disabled:n,"aria-pressed":e,"aria-label":a.formatMessage({defaultMessage:"Toggle worktree mode",id:"xyeUmgOBb1"}),className:"inline-flex items-center gap-1.5 px-2.5 py-2 rounded-md border-0.5 shadow-sm text-xs transition-colors disabled:opacity-50 disabled:cursor-not-allowed border-border-200 text-text-300 hover:bg-bg-100",children:[t.jsx("span",{className:"size-3.5 rounded border flex items-center justify-center transition-all duration-150 "+(e?"border-accent-100 bg-accent-100":"border-border-400 bg-transparent"),children:t.jsx(Hu,{size:12,className:"text-always-white transition-all duration-150 "+(e?"opacity-100 scale-100":"opacity-0 scale-75")})}),t.jsx(XS,{defaultMessage:"worktree",id:"D2W6fLXiNK"})]})})});jse.displayName="WorktreeToggle";const Sse=[];function Lse(e,t){const s=t??null,n=s?Boolean(Pu?.getSSHLocalBranches):Boolean(Pu?.getLocalBranches),{data:a,isLoading:i}=pL({queryKey:["localGitBranches",s,e],queryFn:async()=>e?s?Pu?.getSSHLocalBranches?Pu.getSSHLocalBranches(s,e):[]:Pu?.getLocalBranches?Pu.getLocalBranches(e):[]:[],enabled:!!e&&n,staleTime:3e4,gcTime:3e5});return{branches:a??Sse,isLoading:i,isAvailable:n}}const Nse=["main","master","staging","develop","production","prod","development"];function Ise({cwd:s,value:n,onChange:a,disabled:i,className:r,showIcon:o=!0,defaultBranch:l}){const c=JS(),[d,u]=e.useState(""),{branches:m,isLoading:p,isAvailable:f}=Lse(s),g=e.useMemo(()=>{const e=d.toLowerCase().trim(),t=e?m.filter(t=>t.toLowerCase().includes(e)):m;return(!l||m.includes(l)||e&&!l.toLowerCase().includes(e)?t:[l,...t]).slice().sort((t,s)=>{const n=t.toLowerCase(),a=s.toLowerCase();if(e){const t=n===e,s=a===e;if(t&&!s)return-1;if(s&&!t)return 1}if(l){if(t===l)return-1;if(s===l)return 1}const i=Nse.indexOf(n),r=Nse.indexOf(a),o=-1!==i,c=-1!==r;return o&&!c?-1:c&&!o?1:o&&c?i-r:t.localeCompare(s)}).map(e=>({value:e,label:e}))},[m,d,l]);if(!s||!f)return t.jsxs("button",{type:"button",disabled:!0,"data-size":"sm",className:dt("inline-flex h-control min-w-0 cursor-not-allowed items-center gap-1.5 rounded px-sm text-body text-primary opacity-50",r),children:[o&&t.jsx(Uu,{size:14,className:"shrink-0"}),t.jsx("span",{className:"truncate",children:t.jsx(XS,{defaultMessage:"Branch",id:"8dAyZIUh9C"})})]});const h=n??l??c.formatMessage({defaultMessage:"Select branch",id:"stLVgXPr2S"});return t.jsx(bN,{variant:"ghost",fullWidth:!1,size:"sm",className:dt("max-w-[300px]",r),popupClassName:"min-w-[200px] max-w-[300px]",align:"start",value:n??null,onChange:e=>{e&&a?.(e)},onInputChange:u,onOpenChange:e=>{e||u("")},filter:()=>!0,items:g,isLoading:p,disabled:i||!n&&p,searchPlaceholder:c.formatMessage({defaultMessage:"Search branches",id:"LbikBiYCm3"}),emptyMessage:d?t.jsx(XS,{defaultMessage:"No branches found",id:"48xocXDNBD"}):t.jsx(XS,{defaultMessage:"No branches available",id:"FjaGvKvy/E"}),renderTriggerValue:()=>t.jsxs("span",{className:"inline-flex min-w-0 max-w-full items-center gap-1 align-top",children:[o&&t.jsx(Uu,{size:14,className:"shrink-0"}),t.jsx("span",{className:"truncate",children:h})]})})}function Tse(e){throw new Error(`Unhandled discriminated union member: ${JSON.stringify(e)}`)}function Ase(e){switch(e){case"remote":case"bridge":return!0;case"local":case void 0:return!1;default:return Tse(e)}}function Ese(e){if(e)return"wsl"===e.kind?e.distro:e.sshHost}function Rse(e){const t=e?.remoteTarget;if(t)switch(t.kind){case"ssh":return{kind:"ssh",sshHost:t.sshHost,sshPort:t.sshPort,sshIdentityFile:t.sshIdentityFile,remoteCwd:t.remoteCwd};case"wsl":return{kind:"wsl",distro:t.distro};default:return}if(e?.sshConfig)return{kind:"ssh",sshHost:e.sshConfig.sshHost,sshPort:e.sshConfig.sshPort,sshIdentityFile:e.sshConfig.sshIdentityFile,remoteCwd:e.sshConfig.remoteCwd}}function Dse(e){switch(e?.kind){case"ssh":return{kind:"ssh",sshHost:e.sshHost,sshPort:e.sshPort,sshIdentityFile:e.sshIdentityFile,remoteCwd:e.remoteCwd};case"wsl":return{kind:"wsl",distro:e.distro};case void 0:return}}function Hse(e){return{remoteTarget:Dse(e),..."ssh"===e?.kind&&{sshConfig:Use(e)}}}function Pse(e,t){if(e===t)return!0;if(!e||!t||e.kind!==t.kind)return!1;const s=e,n=t;for(const a of new Set([...Object.keys(s),...Object.keys(n)]))if(s[a]!==n[a])return!1;return!0}function Use(e){return"ssh"===e?.kind?{sshHost:e.sshHost,sshPort:e.sshPort,sshIdentityFile:e.sshIdentityFile,remoteCwd:e.remoteCwd}:void 0}function Ose(e){const t=e.replace(/\.git$/,"").replace(/\/+$/,"").match(/[:/]([^/:]+\/[^/:]+)$/);return t?.[1]??null}function Fse(e){return e.match(/\/([^/]+\/[^/]+)\/pull\/\d+/)?.[1]}function Vse(e,t){return`${"ssh"===t?.kind?t.sshHost:"wsl"===t?.kind?`wsl:${t.distro.toLowerCase()}`:"local"}:${e}`}const zse=fT((e,t)=>({pending:null,mountedGateIds:[],registerGate:t=>e(e=>({mountedGateIds:[...e.mountedGateIds,t]})),unregisterGate:s=>{e(e=>({mountedGateIds:e.mountedGateIds.filter(e=>e!==s)})),0===t().mountedGateIds.length&&t().resolvePending(!1)},requestTrust:(s,n,a)=>{const{pending:i,mountedGateIds:r}=t();return 0===r.length?(k.error(w.DESKTOP_API,"ensureWorkspaceTrust called with no <WorkspaceTrustGate> mounted \u2014 declining. Mount a gate on this route.",{cwd:s}),Promise.resolve(!1)):i?Vse(i.cwd,i.remote)===Vse(s,a)?new Promise(t=>{e({pending:{...i,sources:Array.from(new Set([...i.sources,...n])),resolvers:[...i.resolvers,t]}})}):(k.warn(w.DESKTOP_API,"workspace-trust prompt already open for a different workspace \u2014 declining the second request.",{open:i.cwd,requested:s}),Promise.resolve(!1)):new Promise(t=>{e({pending:{id:Symbol("workspace-trust-prompt"),cwd:s,sources:n,remote:a,resolvers:[t],viewed:!1}})})},cancelPending:(e,s)=>{const{pending:n}=t();n&&Vse(n.cwd,n.remote)===Vse(e,s)&&t().resolvePending(!1,n.id)},markPendingViewed:()=>{const{pending:s}=t();s&&!s.viewed&&e({pending:{...s,viewed:!0}})},resolvePending:(s,n)=>{const{pending:a}=t();if(!a||void 0!==n&&a.id!==n)return!1;e({pending:null});for(const e of a.resolvers)e(s);return!0}})),Zse=3e5;function Bse(e){switch(e?.kind){case"ssh":return`ssh:${e.sshHost}`;case"wsl":return`wsl:${e.distro.toLowerCase()}`;case void 0:return"local"}}function qse(e,t){return["epitaxy","workspace-trust","ssh"===t?.kind?t.sshHost:"wsl"===t?.kind?`wsl-${t.distro}`:"local",e]}function Wse(e,t){return{queryKey:qse(e,t),queryFn:async()=>{const s=Use(t);return(s?await(Pu?.checkRemoteTrust?.(s,e)):"wsl"===t?.kind?await(Pu?.checkRemoteTargetTrust?.({kind:"wsl",distro:t.distro},e))??await(Pu?.checkTrust?.(`wsl:${t.distro.toLowerCase()}:${e}`)):await(Pu?.checkTrust?.(e)))??{trusted:!0,sources:[]}},staleTime:Zse,meta:{noToast:!0,silent:!0}}}function $se(){const t=gL();return{checkTrust:e.useCallback((e,s)=>t.fetchQuery(Wse(e,s)),[t]),prefetchTrust:e.useCallback((e,s)=>t.prefetchQuery(Wse(e,s)),[t]),saveTrust:e.useCallback(async(e,s)=>{const n="ssh"===s?.kind?`ssh:${s.sshHost}:${e}`:"wsl"===s?.kind?`wsl:${s.distro.toLowerCase()}:${e}`:e;await(Pu?.saveTrust?.(n)),t.setQueryData(qse(e,s),{trusted:!0,sources:[]}),t.invalidateQueries({queryKey:["gitInfo",e]}),t.invalidateQueries({queryKey:["isWorkingTreeDirty",e]})},[t])}}function Gse(){const t=gL(),{checkTrust:s}=$se();return e.useCallback(async(e,n,a)=>{a?.forceRecheck&&t.removeQueries({queryKey:qse(e,n)});const i=await s(e,n);return!!i.trusted||zse.getState().requestTrust(e,i.sources,n)},[t,s])}function Kse(e){return e instanceof Error&&("WorkspaceTrustError"===e.name||e.message.includes("requires trust approval"))}function Yse(){const t=Gse();return e.useCallback(async e=>{const s=Pu?.start;if(!s)return;const{remote:n,...a}=e,i={...a,...Hse(n)};try{return await s(i)}catch(r){if(!Kse(r))throw r;if(!(await t(e.cwd,n,{forceRecheck:!0}).catch(()=>!1)))throw r;return await s(i)}},[t])}function Qse(e,t){const s=new Map,n=new Set;for(const l of e){if(Rse(l))continue;if(!l.originCwd)continue;if(l.cwd===l.originCwd&&!1===l.folderExists)continue;const e=s.get(l.originCwd)??0,t=l.lastActivityAt??l.createdAt??0;s.set(l.originCwd,Math.max(e,t)),n.add(l.originCwd)}for(const l of t){const e=s.get(l.path)??0;s.set(l.path,Math.max(e,l.lastActivity))}const a=[...s.entries()].sort(([,e],[,t])=>t-e),i=a.filter(([e])=>n.has(e)),r=a.filter(([e])=>!n.has(e)),o=Math.max(0,10-i.length);return[...i,...r.slice(0,o)].map(([e])=>({path:e}))}function Jse(e,t,s){const n=Bse(t),a=new Map;for(const i of e){const e=Rse(i);if(!e||Bse(e)!==n)continue;const t=i.originCwd||i.cwd;if(!t)continue;if(s?.has(t))continue;const r=a.get(t)??0,o=i.lastActivityAt??i.createdAt??0;a.set(t,Math.max(r,o))}return[...a.entries()].sort(([,e],[,t])=>t-e).slice(0,5).map(([e])=>({path:e}))}function Xse(e,t){const s=new Set;for(const n of e)Rse(n)||n.originCwd&&s.add(n.originCwd);for(const n of t)s.add(n.path);return s}const ene=[],tne=[],sne=[];function nne(t){const[s,n]=e.useState(tne),[a,i]=e.useState(sne);return e.useEffect(()=>{const e=Pu?.getAll;if(!t||!e)return;const s=()=>{e().then(n).catch(()=>{})};s();const a=setInterval(s,3e4);return()=>clearInterval(a)},[t]),e.useEffect(()=>{const e=Pu?.getDetectedProjects;if(!t||!e)return;const s=()=>{e().then(i).catch(()=>{})};s();const n=setInterval(s,3e4);return()=>clearInterval(n)},[t]),e.useMemo(()=>({sessions:s,detectedProjects:a}),[s,a])}function ane(t){const{sessions:s,detectedProjects:n}=nne(t);return e.useMemo(()=>t?Qse(s,n):ene,[t,s,n])}function ine(){const{appFeatures:e,resolved:t}=Ou.getState(),s=e?.epitaxyMcpApps;return t&&void 0!==s?"supported"===s.status:Rl(zu)}const rne=[];function one(t){const s=Fu(),n=e.useMemo(()=>s?t.filter(e=>Da(e.name)).map(e=>e.name):rne,[s,t]),a=Vu(n);return e.useCallback(e=>a.has(e),[a])}function lne(e){const t=e.toolUseResult&&"object"==typeof e.toolUseResult&&!Array.isArray(e.toolUseResult)?e.toolUseResult:void 0,s="completed"===e.status||"error"===e.status,n=e.rawResultContent??(Array.isArray(t?.content)?t.content:Array.isArray(e.toolUseResult)?e.toolUseResult:s?[{type:"text",text:e.output??""}]:void 0);if(n)return{content:n,isError:e.isError,...null!=t?.structuredContent&&{structuredContent:t.structuredContent},...null!=t?._meta&&{_meta:t._meta}}}const cne=fT(()=>({clients:{}}));function dne(e,t){return`${e}\0${t.replace(/^plugin:/,"")}`}function une(e,t){return cne(s=>e&&t?s.clients[dne(e,t)]??null:null)}const mne=new Map;function pne(e,t){const s=dne(e,t),n=mne.get(s);if(n)return n;const a=J3(Pu,e,t).then(e=>(cne.setState(t=>({clients:{...t.clients,[s]:e}})),e));return mne.set(s,a),a.catch(n=>{mne.delete(s),k.warn(w.MCP,"[Epitaxy MCP App] widget client connect failed",{serverName:t,sessionId:e,error:n})}),a}const fne=new Map;let gne=null;const hne=new Set;function Cne(e,t){if(!t?.length)return;if(!ine())return void function(e,t){fne.set(e,t),gne??=Ou.subscribe(()=>{if(!ine())return;gne?.(),gne=null;const e=[...fne];fne.clear();for(const[t,s]of e)Cne(t,s)})}(e,t);for(const a of t)pne(e,a.name).catch(()=>{});const s=Ia.getState().localClients,n=t.filter(e=>{if(hne.has(e.name))return!1;const t=s[e.name];return void 0===t||!e.isInternal&&!0===t.isBuiltIn});if(0!==n.length){for(const e of n)hne.add(e.name);Pc(e,n,(e,t)=>pne(e,t),!1,"renderer").catch(()=>{}).finally(()=>{for(const e of n)hne.delete(e.name)})}}const xne=new Set;let vne;function yne(e,t){if(void 0===e)return;const s=e-e%6e4;return void 0!==t&&s<t?t:s}const bne={capabilities:{cancelQueued:void 0!==Pu?.cancelQueuedMessage,reorderQueued:void 0!==Pu?.reorderQueuedMessage,unarchive:void 0!==Pu?.unarchive,fetchTail:!1,fileSuggestions:!1,readMedia:!1},async fetchMeta(e){const t=Pu?.getSession;if(!t)return null;const s=await t(e);return s?(Cne(e,s.localMcpServers),function(e){return{id:e.sessionId,title:e.title,isShared:!1,cwd:e.originCwd||e.cwd,worktreePath:e.worktreePath,folderExists:e.folderExists,repoSlugs:[],homePath:e.homePath,remote:Rse(e),rootDetected:e.rootDetected,isRunning:e.isRunning,hasBackgroundActivity:e.hasBackgroundActivity??!1,isConnected:e.isRunning,isLive:e.isRunning,isArchived:e.isArchived,transcriptUnavailable:e.transcriptUnavailable,transcriptTruncated:e.transcriptTruncated,model:e.model,effort:e.effort,ultracode:e.ultracode,permissionMode:e.permissionMode,color:e.color,autoFixEnabled:e.autoFixEnabled,bridgeSessionId:e.bridgeSessionId,bridgeSessionUrl:e.bridgeSessionUrl,remoteControlAvailable:e.remoteControlAvailable,loops:e.loops,scheduledTaskId:e.scheduledTaskId,forkedFromSessionId:e.forkedFromSessionId,createdAt:e.createdAt,lastActivityAt:yne(e.lastActivityAt,e.createdAt),promptSuggestion:e.promptSuggestion,postTurnCategory:e.postTurnSummary?.status_category}}(s)):null},async fetchTranscript(e,t){const s=Pu?.getTranscript;if(!s)return[];const n=performance.now(),a=await s(e),i=Array.isArray(a)?a:[];return t?.skipSubStage||(Zu(e,{ipc_ms:performance.now()-n}),Bu(e,i)),i},subscribe(e,t){if(!Pu?.onOnEvent)return t({kind:"error",error:"IPC unavailable"}),{unsubscribe:()=>{},wake:()=>{}};t({kind:"connection",state:"connected"});var s;return{unsubscribe:(s=s=>{if(s.sessionId===e)switch(s.type){case"message":if(s.message){const e=s.message;if("rate_limit_event"===e.type){t({kind:"rate_limit",info:e.rate_limit_info});break}t({kind:"message",message:e})}break;case"prompt_suggestion":t({kind:"prompt_suggestion",suggestion:s.data??""});break;case"transcript_loaded":s.messages&&t({kind:"transcript",messages:s.messages});break;case"close":t({kind:"done"});break;case"cleared":t({kind:"cleared",hasPreClearSession:s.hasPreClearSession});break;case"initialization_status":s.initializationStatus&&t({kind:"init_status",step:s.initializationStatus.step,isComplete:s.initializationStatus.isComplete});break;case"start":t({kind:"connection",state:"connected"});break;case"ssh_disconnected":t({kind:"connection",state:"disconnected"}),t({kind:"error",error:"SSH transport dropped",errorCategory:"ssh_disconnected"});break;case"error":t({kind:"error",error:s.error??"Session error",errorCategory:s.errorCategory,tccFolderKind:s.tccFolderKind})}},xne.add(s),vne??=Pu?.onOnEvent?.(e=>{for(const s of xne)try{s(e)}catch(t){k.error(w.DESKTOP_API,"localTransport subscriber threw",{err:t})}}),()=>{xne.delete(s),0===xne.size&&(vne?.(),vne=void 0)}),wake:()=>{}}},async send(e,t,s,n,a,i,r,o,l,c,d){const u=Pu?.sendMessage;u&&await u(e,t,h0(n??[]),r,l,d)},async stop(e){const t=Pu?.interrupt??Pu?.stop;t&&await t(e)},async stopTask(e,t){const s=Pu?.stopTask;s&&await s(e,t)},async cancelQueued(e,t){const s=Pu?.cancelQueuedMessage;return!!s&&s(e,t)},async reorderQueued(e,t,s){const n=Pu?.reorderQueuedMessage;return!!n&&n(e,t,s)},async promoteQueued(e,t){const s=Pu?.promoteQueuedMessage;return!!s&&s(e,t)},async readFile(e,t){const s=Pu?.readSessionFile;return s?await s(e,t)??null:null},async getContextUsage(e){const t=Pu?.getContextUsage;if(!t)return null;const s=await t(e);return s&&"object"==typeof s&&"rawMaxTokens"in s?s:null},async submitFeedback(e,t){const s=Pu?.submitFeedback;return s?s(e,t):{unavailableReason:"/feedback requires a newer desktop build. Restart the app to update."}},async clear(e){const t=Pu?.clearSession;t&&await t(e)},async rename(e,t){const s=Pu?.updateSession;s&&await s(e,{title:t})},async archive(e,t){const s=Pu?.archive;s&&await s(e,{cleanupWorktree:!0,forceWorktreeCleanup:t?.forceWorktreeCleanup})},async unarchive(e){const t=Pu?.unarchive;t&&await t(e)},async delete(e){const t=Pu?.delete;t&&await t(e)}},kne={start(e){const t=Pu?.startSideChat;t&&t(e)},send(e,t){const s=Pu?.sendSideChatMessage;s&&s(e,t)},stop(e){const t=Pu?.stopSideChat;t&&t(e)}};function wne(e){if(!e)return null;try{const t=JSON.parse(e);if(t&&"object"==typeof t&&"tool"in t&&"string"==typeof t.tool){const{tool:e,detail:s}=t;return{tool:e,detail:"string"==typeof s?s:void 0}}}catch{}return null}const Mne={start(e,t){if(void 0!==t){const s=Pu?.summarizeTranscript;return!!s&&(s(e,t),!0)}const s=Pu?.summarizeSession;return!!s&&(s(e),!0)},stop(e){const t=Pu?.stopSessionSummary;t&&t(e)}};function _ne(e,t){const s=Pu?.onOnEvent;return s?s(s=>{if(s.sessionId===e)switch(s.type){case"session_summary_result":return t({kind:"result",text:s.data??""});case"session_summary_error":return t({kind:"error",error:s.error??"Unknown error"})}}):()=>{}}function jne(e){const t=e;if(!t.sessionId)return null;switch(t.type){case"message":return t.message&&"stream_event"!==t.message.type?{sessionId:t.sessionId,event:{kind:"message",message:t.message}}:null;case"transcript_loaded":return t.messages?{sessionId:t.sessionId,event:{kind:"transcript",messages:t.messages}}:null;case"close":return{sessionId:t.sessionId,event:{kind:"done"}};case"error":return{sessionId:t.sessionId,event:{kind:"error",error:t.error??"Session error",errorCategory:t.errorCategory,tccFolderKind:t.tccFolderKind}};case"cleared":return{sessionId:t.sessionId,kind:"cleared"};case"git_state_changed":return{sessionId:t.sessionId,kind:"git_state_changed"};case"session_updated":case"start":case"archived":case"unarchived":case"permission_mode_changed":case"stopped":return{sessionId:t.sessionId,kind:"meta_updated"};default:return null}}async function Sne(e,t,s,n){const a=Pu?.start;if(!a)throw new Error("Local sessions require the desktop app.");let i;const r={},o=t().catch(()=>{}).then(t=>{const n=t||function(e){const t=(e??"").trim().split(/\s+/);if(""===t[0])return;const s=t.slice(0,6).join(" ");return s.length>60?s.slice(0,59)+"\u2026":s}(e.message);i=n;const a=r.sessionId??e.sessionId;return s?.(void 0!==a&&qu(a)?void 0:n),n}).catch(()=>{}),{remote:l,...c}=e,{sessionId:d}=await a({...c,...Hse(l)});r.sessionId=d,n&&Wu(d,n);const u=$u(d);return void 0!==u?(jI(d,{title:u}),Pu?.updateSession?.(d,{title:u,titleSource:"user"})):i&&jI(d,{title:i}),o.then(e=>{if(Gu(d),!e)return;if(qu(d))return;const t=SI.getState().sessions.find(e=>e.sessionId===d);t?.title&&t.title!==e||(jI(d,{title:e}),Pu?.updateSession?.(d,{title:e,titleSource:"auto"}))}),d}function Lne(e){return"anthropics"===e?.owner.login&&"anthropic"===e?.name}const Nne=["env_staging_011CV6XwML4BqqSrCvMfLm9v","env_015LyyzAERZ4eFu9DFo79DU4","env_018kqxd3VD8ipNoZCn8GJ64T","env_01VAGY66QfawwdUWusben1WA"],Ine="master",Tne="staging",Ane="warm",Ene=[Ine,Ane];function Rne(e,t){if("anthropics/anthropic"===e)return t&&Ene.includes(t)?Tne:t}function Dne(e){return"string"==typeof e&&Nne.includes(e)}function Hne(e){return"byoc"===e?.kind&&Dne(e.environment_id)}const Pne="__browse__";class Une extends Error{}function One(){const e=!0===p(),t=d(),s=u(),n=LI(),a=t&&!1!==s&&n;return{canUseCCD:e,canUseCCR:a,hasAnyTarget:e||a,remoteSessionsAllowed:n}}const Fne=e.memo(function({isOpen:s,spec:n,suggestedCwd:a,onClose:i,onLaunched:r,source:o}){const l=JS(),{addError:c}=ut(),d=ae(),u=Me(),m="local_session"===u?.type?u.sessionId:null,{canUseCCD:p,canUseCCR:f,remoteSessionsAllowed:g}=One(),h=e.useMemo(()=>{const e=[];return p&&e.push("ccd"),f&&e.push("ccr"),e},[p,f]),[C,x]=e.useState(()=>p?"ccd":"ccr"),v=h.includes(C)?C:h[0],y=ane(p&&s),b=Yu(e=>e.selectedFolder),[k,w]=e.useState(a??b??void 0),M=e.useMemo(()=>{const e=y.map(e=>e.path);return k&&!e.includes(k)?[k,...e]:e},[y,k]),_=Qu(k),j=null!==_,[S,L]=xs("cc-landing-worktree-enabled",!0,!1),N=e.useCallback(()=>L(e=>!e),[L]),[I,T]=e.useState(),A=e.useCallback(async e=>{if(e===Pne){if(!Ju?.browseFolder)return;const e=await Ju.browseFolder(l.formatMessage({defaultMessage:"Choose a folder",id:"YjjTU9NztP"}));return void(e&&(w(e),T(void 0)))}w(e),T(void 0)},[l]),{data:E,isLoading:R}=NI(f),D=e.useMemo(()=>(E?.environments??[]).filter(e=>"anthropic_cloud"===e.kind||"byoc"===e.kind),[E]),[H,P]=xs("code-selected-environment-id",void 0),U=e.useMemo(()=>D.find(e=>e.environment_id===H)??D[0],[D,H]),O=Xu(),{getTitleAndBranch:F}=_se(),{mutateAsync:V}=em(),[z,Z]=e.useState(!1),B=n.split("\n").length>6,[q,W]=e.useState(!1),$=e.useCallback(e=>{e||q||i()},[q,i]),G=e.useCallback(async e=>{if(!Pu?.start)return void c(l.formatMessage({defaultMessage:"Couldn't launch the code session. You can try again.",id:"/zJfJBU+lY"}));if(Pu.checkTrust){if(!(await Pu.checkTrust(e)).trusted)throw new Une(l.formatMessage({defaultMessage:"This folder isn't trusted yet. Open it from Claude Code first to trust it.",id:"SPvZsq/yoI"}))}const t=await Sne({cwd:e,message:n,useWorktree:j?S:void 0,sourceBranch:j?S?I??_?.defaultBranch:I:void 0},()=>F({text:n}).then(e=>e?.title));if(!t)throw new Error("LocalSessions.start returned no sessionId");return t},[n,l,j,S,I,_?.defaultBranch,c,F]),K=e.useCallback(async e=>{const t=await O({worker:{type:"environment",id:e.environment_id},gitRepoUrl:Hne(e)?"https://github.com/anthropics/anthropic":void 0,initialMessage:Ml(n,"")});if(!t?.id)throw new Error("Session creation returned no id");return F({text:n}).then(e=>{e?.title&&V({sessionId:t.id,title:e.title,titleSource:"auto"}).catch(()=>{})}).catch(()=>{}),t.id},[O,n,F,V]),Y=e.useCallback((e,t)=>{d.track({event_key:"cowork.launch_code_session",source:o,source_session_id:m??void 0,launched_session_id:e,target:t,had_suggested_cwd:Boolean(a),used_worktree:"ccd"===t&&j?S:void 0,used_branch:"ccd"===t&&j?Boolean(I):void 0})},[d,o,m,a,j,S,I]),Q=e.useCallback(async()=>{if(v){W(!0);try{if("ccd"===v){if(!k)return;const e=await G(k);if(!e)return;Y(e,"ccd"),r({sessionId:e,target:"ccd",displayPath:k})}else{if(!U)return;const e=await K(U);Y(e,"ccr"),r({sessionId:e,target:"ccr",displayPath:U.name})}}catch(e){c(e instanceof Une?e.message:l.formatMessage({defaultMessage:"Couldn't launch the code session. You can try again.",id:"/zJfJBU+lY"}),{error:e,errorContext:{tags:{source:"launch_code_session"}},messageForLogging:"Couldn't launch code session from Cowork"})}finally{W(!1)}}},[v,k,U,G,K,r,Y,c,l]),J=!q&&("ccd"===v&&!!k||"ccr"===v&&!!U);if(!s)return null;const X=0===h.length;return t.jsx(lN.Root,{open:s,onOpenChange:$,children:t.jsxs(lN.Popup,{size:"md",children:[t.jsx(lN.Header,{showClose:!1,description:l.formatMessage({defaultMessage:"Claude will open a Claude Code session with this task as the first message.",id:"sERYPGnLQh"}),children:t.jsx(XS,{defaultMessage:"Launch code session",id:"8WaKWzauH+"})}),t.jsxs("div",{className:"flex flex-col gap-md",children:[t.jsxs("div",{className:"flex flex-col gap-sm rounded-card bg-surface-1 p-md shadow-card-ring",children:[t.jsx("div",{className:"text-caption font-semibold text-secondary",children:t.jsx(XS,{defaultMessage:"Task",id:"0wJ7N+noSq"})}),t.jsx("pre",{className:z?"text-body whitespace-pre-wrap break-words":"text-body whitespace-pre-wrap break-words max-h-48 overflow-y-auto",children:n}),B&&t.jsx("button",{type:"button",onClick:()=>Z(e=>!e),className:"text-caption text-secondary hover:text-primary self-start",children:z?t.jsx(XS,{defaultMessage:"Show less",id:"qyJtWyZ0yt"}):t.jsx(XS,{defaultMessage:"Show more",id:"aWpBzjCXKS"})})]}),X?t.jsx("div",{className:"text-body text-secondary",children:g?t.jsx(XS,{defaultMessage:"Claude Code isn't set up yet. <link>Get started with Claude Code</link> to launch sessions from here.",id:"WjfQBOJ1Zl",values:{link:e=>t.jsx(ct,{render:t.jsx(tm,{href:fs}),children:e})}}):t.jsx(XS,{defaultMessage:"Remote Code sessions aren't available under your organization's compliance settings.",id:"e8cR8/f7WI"})}):t.jsxs(t.Fragment,{children:[h.length>1&&v&&t.jsx(sm,{"aria-label":l.formatMessage({defaultMessage:"Session target",id:"RQrN/oqObv"}),value:v,onChange:x,segments:[{value:"ccd",label:l.formatMessage({defaultMessage:"Local",id:"W4SaxYXWRk"})},{value:"ccr",label:l.formatMessage({defaultMessage:"Cloud",id:"fiPvwYljok"})}]}),"ccd"===v?t.jsxs("div",{className:"flex flex-col gap-sm",children:[t.jsx(bN,{label:l.formatMessage({defaultMessage:"Folder",id:"ukQpDs7M+0"}),searchable:!1,value:k??null,onChange:e=>{e&&A(e)},placeholder:l.formatMessage({defaultMessage:"Choose a folder",id:"YjjTU9NztP"}),items:[...M.map(e=>({value:e,label:nm(e)||e,description:e})),...Ju?.browseFolder?[{value:Pne,label:l.formatMessage({defaultMessage:"Browse for folder\u2026",id:"bz7Liz3q4+"}),separatorBefore:M.length>0}]:[]]}),j&&k&&t.jsxs("div",{className:"flex items-center gap-sm",children:[t.jsx(Ise,{cwd:k,value:I,onChange:T,defaultBranch:_?.defaultBranch,disabled:q}),t.jsx(jse,{worktreeEnabled:S,onWorktreeToggle:N,disabled:q})]})]}):t.jsx(bN,{label:l.formatMessage({defaultMessage:"Environment",id:"K7kuIZkkhY"}),searchable:!1,value:U?.environment_id??null,onChange:e=>P(e??void 0),placeholder:R?l.formatMessage({defaultMessage:"Loading environments\u2026",id:"fwvdkTFyOo"}):l.formatMessage({defaultMessage:"Choose an environment",id:"FMGm4anbvj"}),disabled:R,items:D.map(e=>({value:e.environment_id,label:e.name}))})]})]}),t.jsxs(lN.Footer,{children:[t.jsx(lN.Close,{render:t.jsx(rN,{disabled:q,children:t.jsx(XS,{defaultMessage:"Cancel",id:"47FYwba+bI"})})}),t.jsx(rN,{variant:"primary",onClick:Q,disabled:!J||X,busy:q,children:t.jsx(XS,{defaultMessage:"Launch",id:"ewx2b7+TMq"})})]})]})})});function Vne(){const t=Ku();return e.useCallback(e=>"ccd"===e.target?t(e.sessionId):`${fs}/${e.sessionId}`,[t])}Fne.displayName="LaunchCodeSessionModal";const zne=e.memo(function({id:s,input:n,onDecide:a,disableKeyboardShortcuts:i}){const[r,o]=e.useState(!1),l="string"==typeof n.spec?n.spec:"",c="string"==typeof n.suggested_cwd?n.suggested_cwd:void 0,d=e.useCallback(()=>{a(s,n,"deny")},[a,s,n]),u=e.useCallback(()=>{o(!0)},[]),m=e.useCallback(()=>{o(!1)},[]),p=e.useCallback(e=>{o(!1),a(s,{...n,launched_session:{session_id:e.sessionId,target:e.target,display_path:e.displayPath}},"once")},[a,s,n]);WN("keydown",e=>{const t=e.target;if(!(t instanceof HTMLTextAreaElement||t instanceof HTMLInputElement||t?.isContentEditable)){if("Escape"===e.key)return e.preventDefault(),void d();if("Enter"===e.key){if(t instanceof HTMLButtonElement||t instanceof HTMLAnchorElement)return;e.preventDefault(),u()}}},{enabled:!i&&!r});const f=l.split("\n",1)[0]?.trim()??"";return t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"overflow-hidden rounded-card border bg-surface-panel p-md shadow-lg",children:t.jsxs("div",{className:"flex items-center justify-between gap-4",children:[t.jsxs("div",{className:"flex min-w-0 items-center gap-sm",children:[t.jsx($L,{name:"CodeBlock",className:"shrink-0 text-secondary"}),t.jsxs("div",{className:"flex min-w-0 flex-col",children:[t.jsx("span",{className:"text-body text-secondary",children:t.jsx(XS,{defaultMessage:"Claude wants to send this to <bold>Claude Code</bold>",id:"e/Ma2VO6zk",values:{bold:e=>t.jsx("span",{className:"font-semibold",children:e})}})}),f&&t.jsx("span",{className:"truncate text-footnote text-muted",children:f})]})]}),t.jsxs("div",{className:"flex shrink-0 gap-sm",children:[t.jsx(rN,{variant:"secondary",onClick:d,shortcut:i||r?void 0:"escape",children:t.jsx(XS,{defaultMessage:"Deny",id:"htvX+Z11l+"})}),t.jsx(rN,{variant:"primary",onClick:u,shortcut:i||r?void 0:"enter",children:t.jsx(XS,{defaultMessage:"Set up\u2026",id:"3ih3vbVoqu"})})]})]})}),t.jsx(Fne,{source:"tool",isOpen:r,spec:l,suggestedCwd:c,onClose:m,onLaunched:p})]})});zne.displayName="LaunchCodeSessionApproval";const Zne=e.memo(function({id:s,input:n,onDecide:a,isUpdate:i=!1,disableKeyboardShortcuts:r}){const{track:o}=ae(),l="string"==typeof n.name?n.name:"untitled",c="string"==typeof n.description?n.description:"",d="string"==typeof n.content?n.content:"";e.useEffect(()=>{o({event_key:"claudeai.cowork.skill_save_card.viewed",is_update:i})},[s]);const u=e.useCallback(e=>{a(s,n,e)},[a,s,n]),m=e.useCallback(()=>{o({event_key:"claudeai.cowork.skill_save_card.dismissed",is_update:i}),u("deny")},[o,i,u]),p=e.useCallback(()=>{o({event_key:"claudeai.cowork.skill_save_card.approved",is_update:i}),u("once")},[o,i,u]);return WN("keydown",e=>{const t=e.target;if(!(t instanceof HTMLTextAreaElement||t instanceof HTMLInputElement||t?.isContentEditable)){if("Escape"===e.key)return e.preventDefault(),void m();if("Enter"===e.key){if(t instanceof HTMLButtonElement||t instanceof HTMLAnchorElement)return;e.preventDefault(),p()}}},{enabled:!r}),t.jsxs("div",{className:"overflow-hidden rounded-card border bg-surface-panel p-md shadow-lg",children:[t.jsxs("div",{className:"flex flex-col gap-xs",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx("div",{className:"flex items-center justify-center rounded border p-1",children:t.jsx($L,{name:"Scroll",size:"sm",className:"text-secondary"})}),t.jsx("span",{className:"font-base-bold text-primary",children:i?t.jsx(XS,{defaultMessage:"Update skill",id:"pZCF1XMh/y"}):t.jsx(XS,{defaultMessage:"Save skill",id:"QvmjxZ7K5S"})}),t.jsx("span",{className:"text-muted",children:"\xb7"}),t.jsx("span",{className:"font-base truncate",children:l})]}),c&&t.jsx("div",{className:"pl-[34px] font-base text-secondary",children:c}),d&&t.jsxs(MP.Root,{className:"mt-2 pl-[34px]",children:[t.jsx(MP.Trigger,{children:t.jsx("span",{className:"text-footnote text-muted",children:t.jsx(XS,{defaultMessage:"Content",id:"Jq3FDzj0/T"})})}),t.jsx(MP.Panel,{children:t.jsx("div",{className:"mt-1 max-h-[300px] overflow-y-auto rounded border bg-surface-1 p-lg",children:t.jsx(gn,{className:"break-words font-base text-muted [&_ul]:list-disc [&_ul]:pl-6 [&_ul]:my-2 [&_ol]:list-decimal [&_ol]:pl-6 [&_ol]:my-2 [&_li]:my-1 [&_p]:my-2 [&_p:first-child]:mt-0 [&_p:last-child]:mb-0",allowedElements:["p","br","strong","em","ul","ol","li","code","pre","h1","h2","h3","h4","h5","h6","blockquote"],children:d})})})]})]}),t.jsxs("div",{className:"ml-[34px] mt-4 flex gap-sm",children:[t.jsx(rN,{variant:"primary",onClick:p,shortcut:r?void 0:"enter",children:i?t.jsx(XS,{defaultMessage:"Update",id:"BWpuKlRSA1"}):t.jsx(XS,{defaultMessage:"Save",id:"jvo0vs3nF0"})}),t.jsx(rN,{variant:"secondary",onClick:m,shortcut:r?void 0:"escape",children:t.jsx(XS,{defaultMessage:"Cancel",id:"47FYwba+bI"})})]})]})});Zne.displayName="SaveSkillApproval";const Bne=new Set(["trigger_id","name","description","prompt","cron_expression","run_once_at","taskId","cronExpression","fireAt"]),qne=new Set(["persistent_session_id","environment_id","is_synthetic"]),Wne=tL({enabledTrue:{defaultMessage:"Enables this task",id:"NuNseyCYlt"},enabledFalse:{defaultMessage:"Disables this task",id:"4IrgLz6JjI"},newSessionTrue:{defaultMessage:"Each run starts a fresh session",id:"J2KJ6p9ycJ"},newSessionFalse:{defaultMessage:"Each run continues this session",id:"DGQiEU/2Ss"}});const $ne=e.memo(function({id:s,input:n,onDecide:a,isUpdate:i=!1,isDelete:r=!1,isFire:o=!1,isList:l=!1,isRemote:c=!1,resolvedTask:d,localReroute:u,localUnavailable:m,disableKeyboardShortcuts:p}){const f=e=>"string"==typeof e?e:void 0,g=r||o,h=f(n.trigger_id),C=(g||i&&c)&&h?.startsWith("trig_")?h:void 0,x=g?void 0:f(c?n.name:n.taskId),v=x?c?am(x):im(x):void 0,y=d?.displayName||void 0,b=y??C??v??"Untitled",k=i&&c&&v&&v!==y?v:void 0,w=g||l,M=w?"":f(n.description)??"",_=w?"":f(n.prompt)??"",j=o&&f(n.text)?.replace(/\r\n|[\r\u2028\u2029]/g,"\n").trim().replace(/\n{3,}/g,"\n\n")||void 0,S=u&&null!==u.reason?"local":"remote",[L,N]=e.useState(null),I=L??S,T=void 0!==u&&"local"===I,A=e.useMemo(()=>w?[]:Object.entries(n).filter(([e,t])=>!qne.has(e)&&(("notifications"!==e||!T)&&(!Bne.has(e)||("string"!=typeof t||""===t)))),[w,n,T]),E=g?d?.cronExpression:f(c?n.cron_expression:n.cronExpression),R=g?void 0:f(c?n.run_once_at:n.fireAt),D=JS(),{canChooseBackend:H}=ya(),P=void 0===u&&void 0!==m&&H,U=void 0!==u?T?null:u.reason:P?m?.reason??null:null,O=e.useMemo(()=>{const e=c&&!g?rm(E):void 0,t=e?e.cron:E,s=e?!e.converted:c&&!0===d?.cronIsUtc,n=g?d?.fireAt:R?Date.parse(R):void 0;return om(t,0,D,n,s)??void 0},[R,E,D,c,g,d?.cronIsUtc,d?.fireAt]),F=e.useCallback(e=>{a(s,n,e)},[a,s,n]),[V,z]=e.useState(!1),{track:Z}=ae(),B=e.useCallback(()=>{V||F("deny")},[F,V]),q=e.useCallback(()=>{if(!V){if(u&&Z({event_key:"claudeai.cowork.scheduled_task.approval_backend_choice",default_backend:S,chosen_backend:I,reroute_reason:u.reason??"none"}),u&&"local"===I)return z(!0),void u.onApprove();F("once")}},[I,S,F,u,V,Z]);return WN("keydown",e=>{if(e.repeat)return;const t=e.target;if(!(t instanceof HTMLTextAreaElement||t instanceof HTMLInputElement||t?.isContentEditable||t?.closest("[role='menu']"))){if("Escape"===e.key)return e.preventDefault(),void B();if("Enter"===e.key){if(t instanceof HTMLButtonElement||t instanceof HTMLAnchorElement)return;e.preventDefault(),q()}}},{enabled:!p}),t.jsxs("div",{className:"overflow-hidden rounded-card border bg-surface-panel p-md shadow-lg",children:[t.jsxs("div",{className:"flex flex-col gap-xs",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx("div",{className:"flex items-center justify-center rounded border p-1",children:t.jsx($L,{name:"Clock",size:"sm",className:"text-secondary"})}),t.jsx("span",{className:"font-base-bold text-primary",children:l?t.jsx(XS,{defaultMessage:"View scheduled tasks",id:"DzRnZunx0y"}):r?t.jsx(XS,{defaultMessage:"Delete task",id:"c6LNcWaCmr"}):o?t.jsx(XS,{defaultMessage:"Run task now",id:"Y7RxDEV4Af"}):i?t.jsx(XS,{defaultMessage:"Update task",id:"oEFG6i8oaa"}):t.jsx(XS,{defaultMessage:"Schedule task",id:"KL/gQqGUU1"})}),!l&&t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"text-muted",children:"\xb7"}),t.jsx("span",{className:"font-base truncate",children:b})]})]}),k&&t.jsx("div",{className:"pl-[34px] font-base text-secondary",children:t.jsx(XS,{defaultMessage:"New name: {name}",id:"HUkfp9oW6x",values:{name:k}})}),M&&t.jsx("div",{className:"pl-[34px] font-base text-secondary",children:M}),j&&t.jsxs("div",{className:"pl-[34px]",children:[t.jsx("div",{className:"mb-1 font-small text-muted",children:t.jsx(XS,{defaultMessage:"Adds to this run's prompt:",id:"/vS0q3Ih3h"})}),t.jsx("div",{className:"whitespace-pre-wrap break-words rounded border bg-surface-1 p-md font-base text-secondary",children:j})]}),!l&&(!g&&!i||void 0!==O)&&t.jsxs("div",{className:"flex items-center gap-1.5 pl-[34px] font-small text-muted",children:[T?t.jsx($L,{name:"Computer",customSize:14,className:"shrink-0",alt:D.formatMessage({defaultMessage:"Runs on this computer",id:"zNarR/5dRy"})}):c&&(H||void 0!==u)&&t.jsx($L,{name:"Cloud",customSize:14,className:"shrink-0",alt:D.formatMessage({defaultMessage:"Runs in the cloud",id:"f74d88Yi41"})}),O??(g?null:t.jsx(XS,{defaultMessage:"Manual only",id:"Bzy/54I5zQ"}))]}),(void 0!==u||P)&&t.jsx("div",{className:"pl-[34px]",children:t.jsx(sm,{size:"xs","aria-label":D.formatMessage({defaultMessage:"Where this task runs",id:"kYFBxcj3z3"}),segments:[{value:"remote",icon:"Cloud",label:D.formatMessage({defaultMessage:"Cloud",id:"fiPvwYljok"}),disabled:V},{value:"local",icon:"Computer",label:D.formatMessage({defaultMessage:"This computer",id:"Red8UM0oCv"}),disabled:V||P,disabledReason:P?D.formatMessage({defaultMessage:"Tasks created here run in the cloud and can't use this computer's folders or local tools. To run a task on this computer, create it from the desktop app.",id:"FIf/Usrhd6"}):void 0}],value:I,onChange:N})}),u&&T&&t.jsxs("div",{className:"pl-[34px] font-small text-muted",children:["space"===u.reason?t.jsx(XS,{defaultMessage:"Will run on this computer \u2014 it's linked to a project here.",id:"nwBUiTx3fD"}):"local_folders"===u.reason?t.jsx(XS,{defaultMessage:"Will run on this computer \u2014 it uses local folders.",id:"Ii9BJ8q6en"}):"device_mcp"===u.reason?t.jsx(XS,{defaultMessage:"Will run on this computer \u2014 this chat used tools that live here.",id:"M0c1gPZTen"}):t.jsx(XS,{defaultMessage:"Will run on this computer.",id:"gOSkiRPCcV"}),u.scope.spaceName&&t.jsx("div",{children:t.jsx(XS,{defaultMessage:"Attaches project: {name}",id:"jTiCkMyUHz",values:{name:u.scope.spaceName}})}),u.scope.folders.length>0&&t.jsx("div",{className:"break-all",children:t.jsx(XS,{defaultMessage:"Every run gets access to: {folders}",id:"iBYxeNQvX4",values:{folders:u.scope.folders.join(", ")}})}),void 0!==n.notifications&&t.jsx("div",{children:t.jsx(XS,{defaultMessage:"Notification preferences don't apply to on-computer runs.",id:"vg4p90fNjJ"})})]}),null!==U&&t.jsx("div",{className:"pl-[34px] font-small text-warning",children:"space"===U?t.jsx(XS,{defaultMessage:"Cloud runs won't have access to the project linked to this computer.",id:"aqSEvVp3Qo"}):"local_folders"===U?t.jsx(XS,{defaultMessage:"Cloud runs won't have access to this computer's folders.",id:"x4XFMgH67v"}):t.jsx(XS,{defaultMessage:"Cloud runs can't use the on-computer tools this chat used.",id:"bTECiskl3z"})}),_&&t.jsxs(MP.Root,{defaultOpen:!0,className:"mt-2 pl-[34px]",children:[t.jsx(MP.Trigger,{children:t.jsx("span",{className:"text-footnote text-muted",children:t.jsx(XS,{defaultMessage:"Details",id:"Lv0zJuL1jH"})})}),t.jsx(MP.Panel,{children:t.jsx("div",{className:"mt-1 max-h-[300px] overflow-y-auto rounded border bg-surface-1 p-lg",children:t.jsx(gn,{className:"break-words font-base text-muted [&_ul]:list-disc [&_ul]:pl-6 [&_ul]:my-2 [&_ol]:list-decimal [&_ol]:pl-6 [&_ol]:my-2 [&_li]:my-1 [&_p]:my-2 [&_p:first-child]:mt-0 [&_p:last-child]:mb-0",allowedElements:["p","br","strong","em","ul","ol","li","code","pre","h1","h2","h3","h4","h5","h6","blockquote"],children:_})})})]}),A.length>0&&t.jsxs(MP.Root,{className:"mt-2 pl-[34px]",children:[t.jsx(MP.Trigger,{children:t.jsx("span",{className:"min-w-0 text-left text-footnote text-muted [overflow-wrap:anywhere]",children:t.jsx(XS,{defaultMessage:"Also changes: {keys}",id:"DSGvPchcl4",values:{keys:A.map(([e])=>e.replace(/[^A-Za-z0-9_]+/g,"\u2026")).join(", ")}})})}),t.jsx(MP.Panel,{children:t.jsx("div",{className:"mt-1 break-words rounded border bg-surface-1 p-md font-small text-secondary",children:A.map(([e,s])=>{const n=function(e,t,s,n){if("boolean"!=typeof t)return null;switch(e){case"enabled":return n.formatMessage(t?Wne.enabledTrue:Wne.enabledFalse);case"create_new_session_on_fire":return s?n.formatMessage(t?Wne.newSessionTrue:Wne.newSessionFalse):null;default:return null}}(e,s,c&&!i,D);return t.jsx("div",{className:n?void 0:"font-mono break-all",children:n??`${e}: ${JSON.stringify(s)??"undefined"}`},e)})})})]})]}),t.jsxs("div",{className:"ml-[34px] mt-4 flex gap-sm",children:[t.jsx(rN,{variant:"primary",onClick:q,disabled:V,shortcut:p?void 0:"enter",children:l?t.jsx(XS,{defaultMessage:"Allow",id:"y/bmsG8rnv"}):r?t.jsx(XS,{defaultMessage:"Delete",id:"K3r6DQW7h+"}):o?t.jsx(XS,{defaultMessage:"Run",id:"KiXNvzjYOQ"}):i?t.jsx(XS,{defaultMessage:"Update",id:"BWpuKlRSA1"}):t.jsx(XS,{defaultMessage:"Schedule",id:"hGQqkWwmJD"})}),t.jsx(rN,{variant:"secondary",onClick:B,disabled:V,shortcut:p?void 0:"escape",children:t.jsx(XS,{defaultMessage:"Cancel",id:"47FYwba+bI"})})]})]})});function Gne(e){return{session_id:e.sessionId,permission_request_id:e.requestId,tool_name:ru(e.toolName),transport:e.transport,is_remote:ga(e.sessionId)}}function Kne(t,s){const n=e.useRef(new Map),a=s?.suppressed??!1,i=s?.sessionId;return e.useEffect(()=>{const e=n.current,s=new Set;for(const n of t){s.add(n.toolUseId);let t=e.get(n.toolUseId);if(t||(t={renderedAt:void 0,responded:!1,createdAt:n.createdAt,attrs:Gne(n)},e.set(n.toolUseId,t)),void 0===t.renderedAt&&!a){const e=performance.now();t.renderedAt=e,Bl("cowork.permission_prompt_rendered",{attributes:{...t.attrs,seed_to_render_ms:Math.round(performance.timeOrigin+e-t.createdAt)}})}}for(const[t,n]of e)s.has(t)||void 0!==i&&n.attrs.session_id!==i||(n.responded||a||void 0===n.renderedAt||Bl("cowork.permission_prompt_removed_unanswered",{attributes:{...n.attrs,render_to_remove_ms:Math.round(performance.now()-n.renderedAt)}}),e.delete(t))},[t,a,i]),e.useCallback((e,t)=>{const s=n.current.get(e);s&&!s.responded&&(s.responded=!0,void 0!==s.renderedAt&&Bl("cowork.permission_prompt_responded",{attributes:{...s.attrs,decision:t,render_to_response_ms:Math.round(performance.now()-s.renderedAt)}}))},[])}$ne.displayName="SetScheduledTaskApproval";const Yne=e.memo(function({id:s,sessionId:n,toolName:a,input:i,onDecide:r,disableKeyboardShortcuts:o}){const l=i.url,c=cu(i),d=c?.slice(lm.length)??null??l??i.domain,u=null!==c&&a===c,m=cm(),p=ree(e=>e.approve),{track:f}=ae();e.useEffect(()=>{f({event_key:"claude.cowork.web_fetch_approval.viewed",host_grant_available:Boolean(n)&&u})},[s,n]);const g=e.useCallback(()=>{f({event_key:"claude.cowork.web_fetch_approval.dismissed"}),r(s,i,"deny")},[f,r,s,i]),h=e.useCallback(()=>{f({event_key:"claude.cowork.web_fetch_approval.approved",scope:"once"}),r(s,i,"once")},[f,r,s,i]),C=e.useCallback(()=>{if(f({event_key:"claude.cowork.web_fetch_approval.approved",scope:"host"}),n&&u&&c){p(n,c);const e=Lte.getState();for(const[t,a]of Object.entries(e.requestsBySession[n]??{}))if(t!==s&&"pending"===a.status&&void 0!==a.promiseResolvers&&Sd(a.toolName)&&cu(a.input)===c){const s=du(e=>m(e,"cowork"),a.toolName);if(!s&&uu(m(a.toolName,"cowork").approvalState))continue;e.resolveRequest(n,t,s?"deny":"once",a.input)}}const e=m(a,"cowork"),t=du(e=>m(e,"cowork"),a)||uu(e.approvalState)||!1===e.approvalState.managedAskHydrated;r(s,i,ga(n)&&!t?"always":"once")},[f,p,m,n,a,u,c,r,s,i]);return WN("keydown",e=>{const t=e.target;if(!(t instanceof HTMLTextAreaElement||t instanceof HTMLInputElement||t?.isContentEditable)){if("Escape"===e.key)return e.preventDefault(),void g();if("Enter"===e.key){if(t instanceof HTMLButtonElement)return;e.preventDefault(),h()}}},{enabled:!o}),t.jsx("div",{className:"mb-4 overflow-hidden rounded-card border bg-surface-panel shadow-lg",children:t.jsxs("div",{className:"p-lg",children:[t.jsxs("div",{className:"mb-3 flex items-start gap-2",children:[t.jsx($L,{name:"Globe",size:"md",className:"shrink-0 text-secondary"}),t.jsx("span",{className:"text-body text-secondary",children:t.jsx(XS,{defaultMessage:"Allow Claude to fetch a page from <bold>{domain}</bold>?",id:"NQsZAnMpGY",values:{domain:d,bold:e=>t.jsx("span",{className:"font-semibold",children:e})}})})]}),l&&t.jsx("div",{className:"mb-3 ml-7 break-all font-mono text-footnote text-muted",children:l}),t.jsxs("div",{className:"ml-7 flex gap-sm",children:[t.jsx(rN,{variant:"primary",onClick:h,children:t.jsx(XS,{defaultMessage:"Allow once",id:"O2tb5KUxpc"})}),n&&u&&t.jsx(rN,{variant:"secondary",onClick:C,children:t.jsx(XS,{defaultMessage:"Allow all for this website",id:"zeyLMJtnJS"})}),t.jsx(rN,{variant:"secondary",onClick:g,children:t.jsx(XS,{defaultMessage:"Deny",id:"htvX+Z11l+"})})]})]})})});function Qne(e,t){const s=e[t];if("/"===s&&"/"===e[t+1]){for(t+=2;t<e.length&&"\n"!==e[t];)t++;return t}if("/"===s&&"*"===e[t+1]){for(t+=2;t+1<e.length;t++)if("*"===e[t]&&"/"===e[t+1])return t+1;return e.length}if('"'===s||"'"===s||"`"===s){for(t++;t<e.length&&e[t]!==s;t++)"\\"===e[t]&&t++;return t}return-1}function Jne(e,t,s,n){if(e[t]!==s)return;let a=0;for(let i=t;i<e.length;i++){const r=Qne(e,i);if(-1===r){if(e[i]===s)a++;else if(e[i]===n&&(a--,0===a))return e.slice(t+1,i)}else i=r}}function Xne(e,t){let s=0;for(let n=0;n<e.length;n++){const a=Qne(e,n);if(-1!==a){n=a;continue}const i=e[n];if("{"!==i&&"["!==i)if("}"!==i&&"]"!==i){if(0===s&&e.startsWith(t,n)&&!/\w/.test(e[n-1]??"")&&/^\s*:/.test(e.slice(n+t.length)))return n}else s--;else s++}return-1}function eae(e,t){const s=Xne(e,t);if(-1===s)return;const n=e.slice(s+t.length).match(/^\s*:\s*(['"`])((?:\\.|(?!\1)[\s\S])*?)\1/);return n?.[2].replace(/\\([\s\S])/g,(e,t)=>"n"===t||"t"===t||"r"===t?" ":"u"===t||"x"===t?`\\${t}`:t)}function tae(e){const t=Xne(e,"phases");if(-1===t)return;const s=e.slice(t+6).match(/^\s*:\s*\[/);if(!s)return;const n=Jne(e,t+6+s[0].length-1,"[","]");if(void 0===n)return;const a=[];for(let i=0;i<n.length;i++){if("{"!==n[i])continue;const e=Jne(n,i,"{","}");if(void 0===e)break;const t=eae(e,"title");if(t){const s=eae(e,"detail");a.push(s?{title:t,detail:s}:{title:t})}i+=e.length+1}return a.length>0?a:void 0}function sae(e){const t="string"==typeof e.script?e.script:void 0,s=w6(e),n="string"==typeof e.name&&e.name?e.name:void 0;if(!t)return{name:n??s};const a=function(e){let t=!0;for(let s=0;s<e.length;s++){const n=Qne(e,s);if(-1===n){if(t){const t=e.slice(s).match(/^\s*export\s+const\s+meta\s*=\s*\{/);if(t)return s+t[0].length-1}t="\n"===e[s]}else t="\n"===e[n],s=n}return-1}(t);if(-1===a)return{name:n??s,script:t};const i=Jne(t,a,"{","}");return void 0===i?{name:n??s,script:t}:{name:n??eae(i,"name")??s,description:eae(i,"description"),phases:tae(i),script:t}}function nae({n:e,title:s,detail:n,isLast:a}){return t.jsxs("li",{className:"flex gap-3",children:[t.jsxs("div",{className:"flex w-6 shrink-0 flex-col items-center",children:[t.jsx("div",{className:"flex h-6 w-6 items-center justify-center rounded-full border bg-surface-2",children:t.jsx("span",{className:"font-small font-base-bold tabular-nums text-muted",children:e})}),!a&&t.jsx("div",{className:"my-1 min-h-2 w-px flex-1 bg-border"})]}),t.jsxs("div",{className:GL("flex min-w-0 flex-1 flex-col",!a&&"pb-3"),children:[t.jsx("span",{className:"flex min-h-6 items-center text-body text-primary",children:s}),t.jsx("span",{className:"font-small text-muted",children:n})]})]})}const aae=e.memo(function({id:s,sessionId:n,input:a,onDecide:i,decisionReason:r,disableKeyboardShortcuts:o}){const l=e.useMemo(()=>sae(a),[a]),c=l.name&&l.name.length>64?`${l.name.slice(0,63)}\u2026`:l.name,d="Your organization requires approval for each dynamic workflow."===r,{track:u}=ae();e.useEffect(()=>{u({event_key:"claudeai.cowork.workflow_approval.viewed",tool_use_id:s,session_id:n,is_managed:d,phase_count:l.phases?.length??0})},[s,n]);const m=e.useCallback((e,t)=>{u({event_key:"once"===e?"claudeai.cowork.workflow_approval.approved":"claudeai.cowork.workflow_approval.dismissed",tool_use_id:s,session_id:n,is_managed:d,via_keyboard:t}),i(s,a,e)},[u,n,d,i,s,a]),p=e.useCallback(()=>{m("deny",!1)},[m]),f=e.useCallback(()=>{m("once",!1)},[m]);return WN("keydown",e=>{const t=e.target;if(!(t instanceof HTMLTextAreaElement||t instanceof HTMLInputElement||t?.isContentEditable)){if("Escape"===e.key)return e.preventDefault(),void m("deny",!0);if("Enter"===e.key){if(t instanceof HTMLButtonElement||t instanceof HTMLAnchorElement)return;e.preventDefault(),m("once",!0)}}},{enabled:!o}),t.jsxs("div",{className:GL("flex flex-col gap-md overflow-hidden rounded-card bg-surface-panel p-lg",Jc),children:[t.jsxs("div",{className:"flex items-start gap-sm",children:[t.jsx("div",{className:"flex items-center justify-center rounded border p-1",children:t.jsx($L,{name:"Agent",size:"sm",className:"text-secondary"})}),t.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-1",children:[t.jsx("span",{className:"text-body text-primary",children:c?t.jsx(XS,{defaultMessage:"Allow Claude to <b>run a dynamic workflow</b> <meta>{name}</meta>?",id:"L1RadKBnsf",values:{name:c,b:e=>t.jsx("span",{className:"font-base-bold",children:e}),meta:e=>t.jsx("code",{className:"break-all rounded bg-surface-2 px-1 py-0.5 text-code text-secondary",children:e})}}):t.jsx(XS,{defaultMessage:"Allow Claude to <b>run a dynamic workflow</b>?",id:"6GmgGY5d6G",values:{b:e=>t.jsx("span",{className:"font-base-bold",children:e})}})}),t.jsx("p",{className:"font-small text-muted",children:d?t.jsx(XS,{defaultMessage:"Your organization requires approval each time Claude runs a workflow.",id:"6dQ6QrvFX2"}):t.jsx(XS,{defaultMessage:"Handle big, complex tasks by splitting up work, looping until done, and verifying the results.",id:"ytpT2fY4Yx"})})]})]}),t.jsxs("ol",{role:"list",className:"flex flex-col rounded border bg-surface-1 p-md",children:[t.jsx(nae,{n:1,title:t.jsx(XS,{defaultMessage:"Fan out",id:"oHZ26n9lzH"}),detail:t.jsx(XS,{defaultMessage:"Break the task into smaller pieces and run parallel subagents on each",id:"RyWEV7YoEZ"})}),t.jsx(nae,{n:2,title:t.jsx(XS,{defaultMessage:"Loop",id:"9XiW3xWqO5"}),detail:t.jsx(XS,{defaultMessage:"Keep iterating until the goal is met",id:"MwV9ColjAt"})}),t.jsx(nae,{n:3,title:t.jsx(XS,{defaultMessage:"Verify",id:"q5Xl0MIdUj"}),detail:t.jsx(XS,{defaultMessage:"Check the results before reporting back",id:"EFfUDpXHX/"})}),t.jsx(nae,{n:4,isLast:!0,title:t.jsx(XS,{defaultMessage:"Compose",id:"e+P4zSOrTl"}),detail:t.jsx(XS,{defaultMessage:"Combine everything into the final output",id:"Wr/QCLlnmw"})})]}),t.jsxs("div",{className:"flex justify-end gap-sm",children:[t.jsx(rN,{variant:"secondary",onClick:p,shortcut:o?void 0:"escape",children:t.jsx(XS,{defaultMessage:"Not now",id:"dUCA4Khx0S"})}),t.jsx(rN,{variant:"primary",onClick:f,shortcut:o?void 0:"enter",children:t.jsx(XS,{defaultMessage:"Run workflow",id:"7TOSCqEyij"})})]})]})});function iae(e){return"Workflow"===e.toolName}function rae(e){return"mcp__cowork__request_cowork_directory"===e.toolName}function oae(e){return"mcp__cowork__allow_cowork_file_delete"===e.toolName}function lae(e){return"mcp__cowork__launch_code_session"===e.toolName}function cae(e){return jm(e.toolName)}function dae(e){if(!km(e.toolName)&&!bm(e.toolName)&&!pc(e.toolName,"update_scheduled_task"))return;const t=e.input.trigger_id;return"string"==typeof t&&t.startsWith("trig_")?t:void 0}function uae(e){return e.toolName.includes("save_skill")}function mae(e){return"mcp__cowork__create_artifact"===e.toolName||"mcp__cowork__update_artifact"===e.toolName||"mcp__remote-devices__create_artifact"===e.toolName||"mcp__remote-devices__update_artifact"===e.toolName}aae.displayName="WorkflowApproval";const pae=Symbol("reroute-pending");function fae(e){return e.toolName.startsWith("browser:")}function gae(e){return e.toolName.startsWith("webfetch:")}const hae=e.memo(function({toolPermissionRequests:s,onToolDecision:n,isScheduledTask:a,disableKeyboardShortcuts:i,isExternalSurface:r=!1}){const{track:o}=ae(),l=cm(),c=e.useCallback(()=>({permission:"ask",approvalState:{approvalRequired:!0,sessionGrantHonored:!1}}),[]),d=m(),u=ree(e=>e.approvedBySessionId),p=j8(e=>e.autoAnswerFailedIds),f=qo(),g=dm(),h=Or(),C=e.useRef(new Set);e.useEffect(()=>{if(h&&g&&!f&&s)for(const e of s)ga(e.sessionId)&&zte(e.toolName)&&C.current.add(e.toolUseId)},[h,g,f,s]);const{needsApproval:x,browserDuplicateIds:v}=e.useMemo(()=>{if(!s)return{needsApproval:[],browserDuplicateIds:new Map};const e=new Map,t=new Map;return{needsApproval:s.filter(s=>{if(s.toolName.includes("AskUserQuestion"))return!1;if(sc(s.toolName))return!1;if(r)return!0;const{permission:n,approvalState:a}=l(s.toolName,"cowork"),i=Sd(s.toolName)&&du(e=>l(e,"cowork"),s.toolName)?"blocked":n,o="allow"===i&&void 0!==s.respond&&(Sd(s.toolName)||zte(s.toolName)&&(d&&!f||C.current.has(s.toolUseId))),c="allow"===i&&iae(s);if("ask"!==i&&!o&&!c)return!1;if(!1!==a.sessionGrantHonored&&s.sessionId){const e=u[s.sessionId];if((Sd(s.toolName)?um(s,e,d):(e?.has(s.toolName)??!1)&&(void 0!==s.respond||void 0!==s.promiseResolvers||d&&"ipc"===s.transport))&&!p.has(s.toolUseId))return!1}if(fae(s)){const n=s.input.domain;if("string"==typeof n){const a=e.get(n);if(a){const e=t.get(a);return e?e.push(s.toolUseId):t.set(a,[s.toolUseId]),!1}e.set(n,s.toolUseId)}}return!0}),browserDuplicateIds:t}},[s,l,u,p,d,f,r]),{scheduledTasks:y}=mI(x.some(e=>void 0!==dae(e))),b=Kne(x),k=e.useCallback((e,t,a)=>{b(e,a);const i=s?.find(t=>t.toolUseId===e);var l;i&&mm(o,"cowork.tool_permission.respond",{decision:a,card:(l=i,rae(l)?"cowork_directory":oae(l)?"file_delete":lae(l)?"launch_code_session":cae(l)?"scheduled_task":mae(l)?"cowork_artifact":uae(l)?"save_skill":fae(l)?"browser_tool":gae(l)?"webfetch":vse(l.toolName)?"computer_use_teach":cse(l.toolName)?"computer_use":iae(l)?"workflow":"generic"),is_remote:ga(i.sessionId),respond_surface:r?"external":"cowork"}),n?.(e,e,t,a);const c=v.get(e);if(c){const e=t._feedbackMessage!==i?.input._feedbackMessage,{_feedbackMessage:s,...r}=t,o=e?t:r;for(const t of c)n?.(t,t,o,a)}},[n,v,b,s,o,r]),w=uI(),M=x.find(e=>pm(e.toolName)&&ga(e.sessionId))?.sessionId,_=fm(e=>M?gm(e.bySessionId,M):void 0),j=hm(_?.spaceId),S=ZK(e=>!!M&&function(e){const t=new Set;for(const s of e){if("message"!==s.kind)continue;const e=s.payload.message?.content;if(Array.isArray(e))if("assistant"===s.payload.type)for(const s of e)"tool_use"===s.type&&"string"==typeof s.id&&"string"==typeof s.name&&X9(s.name)&&t.add(s.id);else if("user"===s.payload.type)for(const s of e)if("tool_result"===s.type&&"string"==typeof s.tool_use_id&&!0!==s.is_error&&t.has(s.tool_use_id))return!0}return!1}(e.logs[M]?.events??[])),L=e.useMemo(()=>{const e=Cm({spaceId:_?.spaceId,selectedFolders:_?.folders??[],chromeSkipAllPermissionChecks:void 0});return"space"===e||"local_folders"===e?e:S?"device_mcp":null},[_,S]),N=e.useRef(new Map),I=e.useCallback(e=>{if(!(pm(e.toolName)&&ga(e.sessionId)&&e.sessionId===M&&xm?.createScheduledTask&&w?.createScheduledTask))return;const t=L;if(void 0!==_?.spaceId&&void 0===j)return;const s=vm(e.input,{spaceId:_?.spaceId,userSelectedFolders:_?.folders});if(!s.ok)return;if(s.cronKeptUtc)return;const n="space"===t?"it is linked to a project on this computer":"local_folders"===t?"it uses local folders":"device_mcp"===t?"this conversation used tools on the user's computer":null,a=n?`because ${n} \u2014 cloud routine runs can't reach those`:"because the user chose to run it on their computer",i=n?`because ${n}, which cloud routine runs can't reach`:"because the user chose to run it on their computer";return{reason:t,scope:{...j?.name&&{spaceName:j.name},folders:[...new Set([..._?.folders??[],...(j?.folders??[]).map(e=>e.path)])]},onApprove:()=>{const t=N.current.get(e.toolUseId);t!==pae&&(N.current.set(e.toolUseId,pae),(async()=>{let n="string"==typeof t?t:void 0;if(void 0===n)try{n=(await(w.createScheduledTask?.(s.params,"local")))?.id}catch{n=void 0}const l=void 0!==n?Mm(n,a,s.droppedNotifications):`Tried to create this as a local scheduled task on the user's computer (${i}), but the local create failed. Do NOT retry create_trigger; tell the user what happened and ask how they'd like to proceed.`;void 0===n&&_m(o,"cowork.tool_permission.respond","local_reroute_create_failed",{card:"scheduled_task",respond_surface:r?"external":"cowork"}),k(e.toolUseId,{...e.input,_feedbackMessage:l},"deny"),void 0!==n?N.current.set(e.toolUseId,n):N.current.delete(e.toolUseId)})())}}},[L,k,M,j,_,w,o,r]),T=e.useCallback(e=>{if(pm(e.toolName)&&ga(e.sessionId)&&!xm?.createScheduledTask)return{reason:e.sessionId===M?L:null}},[L,M]);return n?t.jsx("div",{className:x.length>0?"mb-6":void 0,children:t.jsx(nA,{mode:"popLayout",initial:!1,children:x.map((e,s)=>t.jsx(sA.div,{layout:"position",exit:{opacity:0,height:0},transition:{duration:.18,ease:[.4,0,.2,1]},className:"-mx-1 flow-root overflow-clip px-1 [overflow-clip-margin:24px]",children:A(e,s)},e.toolUseId))})}):null;function A(e,s){const n=i||0!==s,o=dae(e);return ga(e.sessionId)&&zte(e.toolName)&&(h&&!f||C.current.has(e.toolUseId))?t.jsx(Zte,{id:e.toolUseId,input:e.input,onDecide:k,disableKeyboardShortcuts:n},e.toolUseId):rae(e)?t.jsx(wse,{id:e.toolUseId,input:e.input,onDecide:k,disableKeyboardShortcuts:n,isScheduledTask:a,isRemote:ga(e.sessionId)},e.toolUseId):oae(e)?t.jsx(Mse,{id:e.toolUseId,input:e.input,onDecide:k,disableKeyboardShortcuts:n},e.toolUseId):lae(e)?t.jsx(zne,{id:e.toolUseId,input:e.input,onDecide:k,disableKeyboardShortcuts:n},e.toolUseId):cae(e)?t.jsx($ne,{id:e.toolUseId,input:e.input,onDecide:k,isUpdate:wm(e.toolName),isDelete:km(e.toolName),isFire:bm(e.toolName),isList:ym(e.toolName),resolvedTask:o?y.find(e=>e.id===o):void 0,isRemote:ga(e.sessionId),localReroute:I(e),localUnavailable:T(e),disableKeyboardShortcuts:n},e.toolUseId):mae(e)?t.jsx(bse,{id:e.toolUseId,input:e.input,onDecide:k,isUpdate:e.toolName.includes("update_artifact"),isRemoteBridge:e.toolName.startsWith("mcp__remote-devices__"),isScheduledTask:a,sessionId:e.sessionId,disableKeyboardShortcuts:n,isRemote:ga(e.sessionId)},e.toolUseId):uae(e)?t.jsx(Zne,{id:e.toolUseId,input:e.input,onDecide:k,isUpdate:Boolean(e.input.overwrite),disableKeyboardShortcuts:n},e.toolUseId):fae(e)?t.jsx(qte,{id:e.toolUseId,input:e.input,onDecide:k,disableKeyboardShortcuts:n,isScheduledTask:a,requestCount:(v.get(e.toolUseId)?.length??0)+1,isRemote:ga(e.sessionId)},e.toolUseId):gae(e)?t.jsx(Yne,{id:e.toolUseId,sessionId:e.sessionId,toolName:e.toolName,input:e.input,onDecide:k,disableKeyboardShortcuts:n},e.toolUseId):vse(e.toolName)?t.jsx(xse,{id:e.toolUseId,input:e.input,onDecide:k,disableKeyboardShortcuts:n},e.toolUseId):cse(e.toolName)?t.jsx(lse,{id:e.toolUseId,input:e.input,onDecide:k,disableKeyboardShortcuts:n},e.toolUseId):iae(e)?t.jsx(aae,{id:e.toolUseId,sessionId:e.sessionId,input:e.input,decisionReason:e.decisionReason,onDecide:k,disableKeyboardShortcuts:n},e.toolUseId):t.jsx(Cae,{id:e.toolUseId,toolId:e.toolName,sessionId:e.sessionId,mode:"cowork",input:e.input,suggestions:e.suggestions,onDecide:k,getToolApprovalState:r?c:l,isScheduledTask:a,disableKeyboardShortcuts:n},e.toolUseId)}});hae.displayName="CoworkToolApproval";const Cae=e.memo(({id:s,toolId:n,sessionId:a,mode:i,input:r,suggestions:o,onDecide:l,getToolApprovalState:c,isScheduledTask:d,disableKeyboardShortcuts:u})=>{const{approvalState:m}=c(n,i),{toggleMcpToolAlwaysApproved:p}=Je(),f=ree(e=>e.approve),g=Tc(a??null),h="mcp__remote-devices__device_request_folder_access"===n||"mcp__remote-devices__create_artifact"===n||"mcp__remote-devices__update_artifact"===n,C=Sd(n),x=h||g&&"mcp__workspace__bash"===n||C,v=C&&ga(a);Du();const y=Ha(n),b=Sm(n),k=e=>"string"==typeof e&&e.trim()||void 0,w="*"===b?.op,M=b?.cliName,_=b?w?`${M} commands`:Lm(b.op):void 0,j=_??y?.tool?.displayName,S=b?Lm(b.pluginName):y?.server?.name,L=b?k(r._iconData):y?.server?.iconSrc,N=e.useMemo(()=>{const e=k(r.command);if(b&&e){const s=k(r.message),n=`${M} ${e}`;return t=s?`${s}\n\n$ ${n}`:`$ ${n}`,{toJSON:()=>{throw new Error},toString:()=>t}}var t;return r},[n,r]),I=e.useCallback(e=>{if("perChat"===e)return a&&f(a,n),void l(s,r,"once");if("always"===e&&Nm(a,n)){const e=Ha(n);e?.tool.alwaysApprovedKey&&p(e.tool.alwaysApprovedKey,!0)}l(s,r,e)},[l,s,r,n,p,a,f]),T=e.useCallback(()=>{l(s,r,"always")},[l,s,r]),A=e.useCallback(()=>{I("perChat")},[I]),E=function(e){return(e?.length??0)>0}(o)&&!v,R=b?E:void 0,D=Im(a,n,d),H=!d&&ga(a),P=H&&Tm(n),U=Am(o,n),O=ga(a)&&(U?.some(e=>"addRules"===e.type&&"deny"===e.behavior)??!1),F=!H||Em(o,n)||!P&&!O&&Boolean(Ha(n)?.tool.alwaysApprovedKey),V=H&&!v&&Boolean(y?.tool.alwaysApprovedKey),z=e.useMemo(()=>({showAlwaysAllowed:!D&&F&&!O&&!h&&(E||V)&&(m.showAlwaysAllowed??!0),approvalRequired:!0,expandInputByDefault:!!m.expandInputByDefault,coworkWriteToolWarning:m.coworkWriteToolWarning,coworkAlwaysAllowDisabledByOrg:!D&&F&&!O&&!h&&(void 0!==R?!R:m.coworkAlwaysAllowDisabledByOrg),alwaysAllowHint:w&&M?t.jsx(XS,{defaultMessage:"Also allows any {cliName} command that isn't listed separately in your connector settings",id:"h4P9ubPLmp",values:{cliName:M}}):P&&F?t.jsx(XS,{defaultMessage:"Applies for the rest of this session",id:"kfPWY1atUJ"}):void 0,alwaysAllowDisabledReason:M&&!R?w?t.jsx(XS,{defaultMessage:"Allowing all unlisted {cliName} commands isn't permitted by your organization's settings. Commands named in this plugin can still be allowed individually.",id:"Rs4NrTp2Ph",values:{cliName:M}}):t.jsx(XS,{defaultMessage:"Allowing this {cliName} command by default isn't permitted by your organization's settings.",id:"UdlvIZGfQ4",values:{cliName:M}}):void 0,disabled:!1,wasDenied:!1,submitToolApproval:I,onAllowForAllScheduledRuns:!d||D||h||O||C?void 0:T,onAllowForThisTask:!m.coworkWriteToolWarning||!1===m.sessionGrantHonored||d||x?void 0:A,disableKeyboardShortcuts:u}),[m,I,V,E,P,h,D,O,F,d,C,x,w,R,M,T,A,u]);return t.jsx($N,{isSessionChat:!0,message:{},toolResult:void 0,isFirstBlockOfMessage:!1,isFirstItemInGroup:!1,isLastBlockOfMessage:!1,isStreaming:!1,input:N,toolName:_??n,toolMessage:j,integrationName:S,integrationIcon:L,approvalData:z})});Cae.displayName="ToolApproval";const xae=/^(I recorded a demonstration[^.]*\.)/,vae=/^\[(\d+(?:\.\d+)?)s\]\s*(.*)$/;function yae(e){if(e)try{const t=JSON.parse(e);return"string"==typeof t?t:e}catch{return e}}function bae({action:e}){const s="Switched to"===e.verb?" ":" in ",n=e.app?`${e.verb}${s}`:e.verb,a=`${e.tSec}s`;return t.jsxs("div",{className:"flex items-center gap-2.5 py-1",children:[t.jsx($L,{name:e.icon,size:"sm",className:"text-muted shrink-0"}),t.jsxs("span",{className:"text-body text-primary truncate",children:[n,e.app&&t.jsx("span",{className:"font-medium",children:e.app}),e.typed&&t.jsx("span",{className:"font-mono text-caption bg-surface-1 px-1.5 py-0.5 rounded ml-1.5",children:e.typed})]}),t.jsx("span",{className:"ml-auto text-caption text-muted tabular-nums shrink-0",children:a})]})}const kae=e.memo(function({parsed:s}){const[n,a]=e.useState(!1),[i,r]=e.useState(!1),o=e.useRef(void 0),l=n||i,[c,d]=e.useState(null),u=s.blocks.find(e=>"text"===e.type),m="text"===u?.type&&u.text.match(xae)?.[1]||null,{carouselItems:p,imageIndexByBlock:f}=e.useMemo(()=>{const e=[],t={};return s.blocks.forEach((s,n)=>{"image"===s.type&&(t[n]=e.length,e.push({id:`wr-${n}`,url:s.src,alt:""}))}),{carouselItems:e,imageIndexByBlock:t}},[s.blocks]);return t.jsxs("div",{className:"w-full max-w-[75ch] mx-auto flex flex-col gap-2",children:[m&&t.jsx("div",{className:"self-end max-w-[85%] rounded-xl bg-bg-300 text-text-100 px-3.5 py-2.5 break-words",children:m}),t.jsxs("div",{className:"self-end max-w-sm rounded-xl border bg-white dark:bg-surface-0 shadow-sm shadow-always-black/5 overflow-hidden "+(l?"w-full":"w-max"),children:[t.jsxs("button",{type:"button","aria-expanded":n,onClick:()=>{window.clearTimeout(o.current),n?(r(!0),o.current=window.setTimeout(()=>r(!1),320)):r(!1),a(e=>!e)},className:"w-full flex items-center gap-2 px-3.5 py-2.5 text-left text-body text-secondary hover:bg-surface-1 transition-colors",children:[t.jsx($L,{name:"EyeFrame",size:"md"}),t.jsx("span",{className:"flex-1",children:`Recorded demonstration \xb7 ${(s.durationMs/1e3).toFixed(1)}s`}),t.jsx($L,{name:"CaretRight",size:"sm",className:"ml-3 transition-transform "+(n?"rotate-90":"")})]}),t.jsx("div",{"aria-hidden":!n,inert:!n,className:"grid transition-[grid-template-rows] duration-[280ms] ease-out motion-reduce:transition-none "+(n?"grid-rows-[1fr]":"grid-rows-[0fr]"),children:t.jsx("div",{className:"min-h-0 overflow-hidden "+(l?"":"w-0"),children:t.jsx("div",{className:"px-3.5 pt-2 pb-3 flex flex-col border-t",children:s.blocks.map((e,s)=>{if("image"===e.type)return t.jsx("button",{type:"button",onClick:()=>d(f[s]),className:"block w-full p-0 my-1.5 border-0 bg-transparent cursor-zoom-in",children:t.jsx("img",{src:e.src,alt:"",className:"max-w-full h-auto rounded-lg border"})},s);const n=function(e){const t=e.match(vae);if(!t)return null;const s=t[1],n=t[2],a=n.match(/ in ("(?:[^"\\]|\\.)*")\s*$/),i=yae(a?.[1]),r=a?n.slice(0,a.index):n;if(/^right-clicked\b/.test(r))return{tSec:s,icon:"Cursor",verb:"Right-clicked",app:i};if(/^clicked\b/.test(r))return{tSec:s,icon:"Cursor",verb:"Clicked",app:i};if(/^dragged\b/.test(r))return{tSec:s,icon:"Cursor",verb:"Dragged",app:i};if(/^scrolled( up| down)?\b/.test(r))return{tSec:s,icon:"Scroll",verb:`Scrolled${r.match(/^scrolled( up| down)?/)?.[1]??""}`,app:i};const o=r.match(/^typed ("(?:[^"\\]|\\.)*")/);if(o)return{tSec:s,icon:"Keyboard",verb:"Typed",typed:yae(o[1])};if(/^pressed\b/.test(r))return{tSec:s,icon:"Keyboard",verb:r.replace(/^p/,"P")};const l=r.match(/^switched to ("(?:[^"\\]|\\.)*")/);return l?{tSec:s,icon:"ArrowRight",verb:"Switched to",app:yae(l[1])}:null}(e.text);if(n)return t.jsx(bae,{action:n},s);const a=function(e){const t=e.match(vae);return t?/^full screen\b/.test(t[2])?`Screenshot \xb7 ${t[1]}s`:/^changed region\b/.test(t[2])?`Changed region \xb7 ${t[1]}s`:null:null}(e.text);return a?t.jsx("div",{className:"text-caption text-muted pt-5 first:pt-0",children:a},s):m&&e.text.startsWith(m)?null:t.jsx("div",{className:"text-caption text-secondary py-1 break-words",children:e.text},s)})})})})]}),null!==c&&t.jsx(Rm,{items:p,initialIndex:c,onClose:()=>d(null)})]})});function wae({taskId:e,label:s,secondaryLabel:n}){const a=`${Dm}/${encodeURIComponent(e)}`;return t.jsxs(er,{href:a,className:"my-3 border-0.5 border-border-300 rounded-lg overflow-hidden font-ui flex items-center gap-2 px-3 py-2.5 hover:bg-bg-200 transition-colors",children:[t.jsx("div",{className:"w-5 h-5 flex items-center justify-center text-text-100 flex-shrink-0",children:t.jsx(YP,{size:16})}),t.jsx("span",{className:"flex-1 min-w-0 truncate text-text-300 font-base",children:s}),t.jsxs("div",{className:"flex items-center gap-1 flex-shrink-0",children:[n&&t.jsx("span",{className:"text-xs text-text-400",children:n}),t.jsx(WP,{size:16,className:"text-text-400"})]})]})}function Mae(){const t=y("claude_ai_quota_precheck"),s=Ta(),{activeOrganization:n}=v(),a=n?.uuid,i=gL(),r=Hm();return e.useCallback((e,n)=>{if(!t||!a)return!1;if(!s?.getState().hasBlockingWarning)return!1;const o=i.getQueryData(r)?.messageLimits?.[a];return!!function(e){if("exceeded_limit"!==e?.type)return!1;if(e.creditsRequired)return!1;if(void 0!==e.resetsAt&&1e3*e.resetsAt<=Date.now())return!1;if(void 0===e.resetsAt&&!e.overageDisabledReason)return!1;const t=e.windows;if(pJ.some(e=>"exceeded_limit"===t?.[e]?.status)&&"exceeded_limit"!==t?.["5h"]?.status&&"exceeded_limit"!==t?.["7d"]?.status&&"exceeded_limit"!==t?.["7d_cowork"]?.status&&"exceeded_limit"!==t?.overage?.status)return!1;const s=YX(e);return s.isOverageScenario?s.isBlocking&&!Ri(e):"overage_not_provisioned"===e.overageDisabledReason||"org_level_disabled"===e.overageDisabledReason}(o)&&(Pm("messageSent",e,n?{model:n}:void 0),!0)},[t,a,s,i,r])}const _ae=e.memo(function({x:s,y:a,onAttach:i,onClose:r}){const o=e.useRef(null),l=mN(60),c=e.useRef(document.activeElement),[d,u]=e.useState({x:s,y:a});return e.useLayoutEffect(()=>{const e=o.current;if(!e)return;const t=e.getBoundingClientRect(),n=window.innerWidth-t.width-8,i=window.innerHeight-t.height-8;u({x:Math.min(Math.max(8,s),Math.max(8,n)),y:Math.min(Math.max(8,a),Math.max(8,i))})},[s,a]),e.useEffect(()=>{const e=c.current,t=e=>{o.current?.contains(e.target)||r()},s=e=>{"Escape"!==e.key&&"Tab"!==e.key||r()},n=()=>r();return document.addEventListener("mousedown",t),document.addEventListener("contextmenu",t),document.addEventListener("keydown",s),document.addEventListener("scroll",n,{capture:!0,passive:!0}),window.addEventListener("resize",n),()=>{document.removeEventListener("mousedown",t),document.removeEventListener("contextmenu",t),document.removeEventListener("keydown",s),document.removeEventListener("scroll",n,{capture:!0}),window.removeEventListener("resize",n),e instanceof HTMLElement&&document.activeElement===document.body&&e.focus()}},[r]),n.createPortal(t.jsx("div",{ref:o,role:"menu",style:{position:"fixed",top:d.y,left:d.x,zIndex:l},className:"min-w-[200px] rounded-lg border border-border-300 bg-bg-000 shadow-lg py-1",children:t.jsxs("button",{role:"menuitem",autoFocus:!0,onMouseDown:e=>e.preventDefault(),onClick:i,className:"flex w-full items-center gap-2 px-3 py-1.5 text-sm text-text-100 hover:bg-bg-200 transition-colors cursor-pointer border-none text-left",children:[t.jsx(zR,{"aria-hidden":"true"}),t.jsx(XS,{defaultMessage:"Attach as context",id:"qkN7P8fxeY",description:"Right-click menu action to attach message or selected text to the chat input as context"})]})}),document.body)});_ae.displayName="MessageContextMenu";const jae=e.memo(function({range:s,text:a,onAction:i,onDismiss:r,showAddToPrompt:o,disableExplain:l}){const c=e.useRef(null),d=mN(50),[u,m]=e.useState(!1),p=e.useRef(null),{track:f}=ae();e.useLayoutEffect(()=>{if(!s||!c.current)return;const e=c.current,t=s.getBoundingClientRect().top;let n=null;const a=()=>{const t=s.getBoundingClientRect(),n=e.offsetHeight,a=t.left+t.width/2,i=t.top-n-8;e.style.transform=`translate(${a}px, ${i}px) translateX(-50%)`},i=()=>{null===n&&(n=requestAnimationFrame(()=>{n=null;const e=s.getBoundingClientRect().top;if(Math.abs(e-t)>100&&!p.current)return m(!0),void(p.current=setTimeout(()=>{r()},150));a()}))};return a(),document.addEventListener("scroll",i,{capture:!0,passive:!0}),window.addEventListener("resize",i),()=>{document.removeEventListener("scroll",i,{capture:!0}),window.removeEventListener("resize",i),null!==n&&cancelAnimationFrame(n),p.current&&(clearTimeout(p.current),p.current=null)}},[s,r]),e.useEffect(()=>{s&&m(!1)},[s]);const g=e.useRef(!1);if(e.useEffect(()=>{s&&!g.current?(g.current=!0,f({event_key:"claudeai.mini_claude.tooltip_impression",selection_length:a.length})):s||(g.current=!1)},[s,a.length,f]),!s)return null;const h=!l;return h||o?n.createPortal(t.jsxs(t.Fragment,{children:[u&&t.jsx("style",{children:"\n          @keyframes selectionTooltipFadeOut {\n            from { opacity: 1; }\n            to { opacity: 0; }\n          }\n        "}),t.jsx("div",{ref:c,"data-selection-tooltip":"true",style:{position:"fixed",top:0,left:0,pointerEvents:u?"none":"auto",zIndex:d,willChange:"transform"},children:t.jsxs("div",{className:"flex bg-always-black/80 rounded-lg shadow-lg backdrop-blur border border-always-white/10 text-always-white items-center select-none",style:u?{animation:"selectionTooltipFadeOut 150ms ease-out forwards"}:void 0,children:[h&&t.jsx(t.Fragment,{children:t.jsx("button",{onMouseDown:e=>e.preventDefault(),onClick:()=>i("explain"),className:"px-3 py-1.5 text-sm font-medium text-always-white hover:bg-always-white/10 transition-colors cursor-pointer border-none whitespace-nowrap flex "+(o?"rounded-l-lg":"rounded-lg"),children:t.jsx(XS,{defaultMessage:"Tell me more",id:"k82q+r212G",description:"Button to explain selected text"})})}),o&&t.jsxs(t.Fragment,{children:[h&&t.jsx("div",{className:"w-px bg-always-white/20 my-1.5 self-stretch"}),t.jsxs("button",{onMouseDown:e=>e.preventDefault(),onClick:()=>i("addToPrompt"),className:"px-3 py-1.5 text-sm font-medium text-always-white hover:bg-always-white/10 transition-colors cursor-pointer border-none whitespace-nowrap flex items-center gap-1 "+(h?"rounded-r-lg":"rounded-lg"),children:[t.jsx(XS,{defaultMessage:"Reply",id:"jNnlTJdFg7",description:"Button to bring the selected text into the chat input as a quote block"}),t.jsx(zR,{"aria-hidden":"true"})]})]})]})})]}),document.body):null});jae.displayName="SelectionTooltip";function Sae(e){return{file_name:"excerpt_from_previous_claude_message.txt",file_size:new Blob([e]).size,file_type:"txt",extracted_content:e,origin:ts.UserUpload,kind:It.Excerpt}}const Lae=e.memo(({conversationUuid:s,children:n})=>{const a=y("claudeai_crabby_claws_enabled"),i=y("claudeai_message_context_menu"),r=e.useRef(null),{range:o,text:l,clearSelection:c,hideTooltip:d}=function(t){const[s,n]=e.useState(null),[a,i]=e.useState(""),r=e.useRef(null),o=e.useRef(!1),l=e.useCallback(()=>{n(null),i(""),window.getSelection()?.removeAllRanges()},[]),c=e.useCallback(()=>{n(null),i("")},[]);return e.useEffect(()=>{const e=t.current;if(!e)return;const s=()=>{r.current&&clearTimeout(r.current),r.current=setTimeout(()=>{if(o.current)return;const t=window.getSelection();if(!t||0===t.rangeCount||t.isCollapsed)return n(null),void i("");const s=t.toString().trim();if(s.length<2)return n(null),void i("");const a=t.getRangeAt(0),r=a.intersectsNode(e),l=a.startContainer.nodeType===Node.TEXT_NODE?a.startContainer.parentNode:a.startContainer,c=a.endContainer.nodeType===Node.TEXT_NODE?a.endContainer.parentNode:a.endContainer,d=l&&e.contains(l),u=c&&e.contains(c);if(!r||!d&&!u)return n(null),void i("");n(a.cloneRange()),i(s)},30)},a=()=>{o.current=!0},l=()=>{o.current=!1,s()};return document.addEventListener("selectionchange",s),document.addEventListener("mousedown",a),document.addEventListener("mouseup",l),()=>{document.removeEventListener("selectionchange",s),document.removeEventListener("mousedown",a),document.removeEventListener("mouseup",l),r.current&&clearTimeout(r.current)}},[t]),{range:s,text:a,clearSelection:l,hideTooltip:c}}(r),u=e.useRef(null),[m,p]=e.useState(null),[f,g]=e.useState(null),[h,C]=e.useState(null),{track:x}=ae(),v=Um(),b=Qt()||!a;e.useEffect(()=>{},[]);const k=$i(e=>e.promptInputRef),w=$i(e=>e.setAttachments),M=e.useCallback(e=>{if(!o||!l)return;const t=k?.current?.getEditor();switch(e){case"explain":if(b)return;u.current=o.cloneRange(),p({selectedText:l,action:e});break;case"addToPrompt":if(!v)return;t&&k?.current&&(w(e=>[...e,Sae(l)]),t.commands.focus()),c();break;default:Tse(e)}x({event_key:"claudeai.mini_claude.selection_action",selection_length:l.length,action:e})},[o,l,k,c,v,x,b,w]);e.useCallback(()=>{p(null),u.current=null},[]);const _=e.useCallback(e=>{if(!v||!i)return;if(Om())return;const t=e.target;t?.closest("button, a, input, textarea, [contenteditable='true'], [role='button'], [role='menuitem']")||(e.preventDefault(),e.nativeEvent.stopPropagation(),g({x:e.clientX,y:e.clientY}))},[v,i]),j=e.useCallback(()=>{const e=k?.current?.getEditor();if(!e||!k?.current)return void g(null);let t="";const s=window.getSelection();if(s&&s.rangeCount>0&&r.current){const e=s.getRangeAt(0),n=e.startContainer.nodeType===Node.TEXT_NODE?e.startContainer.parentNode:e.startContainer,a=e.endContainer.nodeType===Node.TEXT_NODE?e.endContainer.parentNode:e.endContainer,i=n&&r.current.contains(n)||a&&r.current.contains(a);e.intersectsNode(r.current)&&i&&(t=s.toString().trim())}const n=r.current?.textContent?.trim()??"",a=t.length>=2?t:n;a?(w(e=>[...e,Sae(a)]),e.commands.focus(),c(),g(null),x({event_key:"claudeai.mini_claude.selection_action",selection_length:a.length,action:"addToPrompt"})):g(null)},[k,w,c,x]),S=e.useCallback(()=>{g(null)},[]);return t.jsxs(t.Fragment,{children:[t.jsxs("div",{ref:r,className:"contents",onContextMenu:_,children:[n,!m&&!f&&t.jsx(jae,{range:o,text:l,onAction:M,onDismiss:d,showAddToPrompt:v,disableExplain:b}),f&&t.jsx(_ae,{x:f.x,y:f.y,onAttach:j,onClose:S})]}),""]})});Lae.displayName="MiniClaudeContainer";const Nae="claudified_answer_now_experiment",Iae=OL(e=>e??{},AL({enabled:RL().default(!1).catch(!1),require_thinking_on:RL().default(!1).catch(!1),delay_seconds:EL().default(8).catch(8)})),Tae=Iae.parse({});function Aae(t,s,n){const a=void 0!==s,i=function(t,{enabled:s=!0}={}){const n=Wm(t,{enabled:s}),a=$m(t,{enabled:s})??n,i=rr(t??null),{modeOptionsFor:r}=Gm({surface:"chat"}),o=r(i),l=o.length>0&&!o.some(e=>"off"===e.id),c=va(Nae,Tae,Iae,s&&a&&!l),d=ce("claudeai_answer_now_enabled",s),u=Ea("claudeai_answer_now_delay_seconds"),m=c.enabled||d,p=c.enabled?c.delay_seconds:u??8,{account:f}=v(),g=f?.settings.paprika_mode,h="off"!==(g??"off"),C=!c.enabled||!c.require_thinking_on||h,x=Km(t,{enabled:m&&s}),y=Ym(t,{enabled:m&&s}),b=Qm(t,{enabled:m&&s}),k=Jm(t,{enabled:m&&s}),[w,M]=e.useState(!1);return e.useEffect(()=>{if(!m||!x)return void M(!1);const e=y??b??Date.now(),t=Math.max(0,e+1e3*Math.max(0,p)-Date.now());if(0===t)return void M(!0);M(!1);const s=setTimeout(()=>M(!0),t);return()=>clearTimeout(s)},[m,x,y,b,p]),m&&C&&!l&&x&&a&&!k&&w&&(p>=0||n)}(t,{enabled:a}),r=zm(t,{enabled:a}),o=Zm(a?t:void 0),l=Bm(a?t:void 0);if(s&&t)return{visible:i&&"retrying"!==r&&(!o||l),clicked:"idle"!==r,onClick:()=>{"idle"===qm(t)&&s()}}}const Eae=fT()(e=>({isStatusDisplayVisible:!1,setIsStatusDisplayVisible:t=>e(e=>e.isStatusDisplayVisible===t?e:{isStatusDisplayVisible:t}),answerNowLinkInlineConversation:void 0,setAnswerNowLinkInlineConversation:t=>e(e=>e.answerNowLinkInlineConversation===t?e:{answerNowLinkInlineConversation:t})}));function Rae(){return Eae(e=>e.setIsStatusDisplayVisible)}function Dae(){const s=function(){const{onAnswerNow:e,conversationUuid:t}=vn();return Aae(t,e)}(),n=!!s&&(s.visible||s.clicked),{conversationUuid:a}=vn(),i=Rae(),r=Eae(e=>e.setAnswerNowLinkInlineConversation);return e.useLayoutEffect(()=>{if(n)return i(!0),r(a),()=>i(!1);r(void 0)},[n,a,i,r]),n?t.jsx("div",{className:"pl-2 py-1.5 min-w-0","data-testid":"answer-now-pre-content",children:t.jsx("div",{className:"flex items-center gap-2 py-1 text-sm text-text-300",children:t.jsx("div",{className:"relative w-5 h-5 flex items-center justify-center shrink-0",children:t.jsx("div",{className:"pt-1",children:t.jsx(H9,{state:"thinking",className:"!w-5 !text-brand-200",isInteractive:!1})})})})}):null}const Hae="!w-full mt-4 mb-1 -mx-1";function Pae(e){switch(e){case"overloaded":return t.jsx(XS,{defaultMessage:"Claude is at capacity right now. Try again in a moment.",id:"K7gZgqTptz"});case"5xx":return t.jsx(XS,{defaultMessage:"Claude is temporarily unavailable. Try again in a moment.",id:"Z98lmHNsmL"});case"network":case"incomplete_stream":return t.jsx(XS,{defaultMessage:"Can\u2019t reach Claude. Check your connection and try again.",id:"FHufq6FL5k"});default:return t.jsx(XS,{defaultMessage:"This response didn't load.",id:"rL6qR3THkV"})}}function Uae({onClick:e,children:s}){const n=JS(),{conversationUuid:a}=vn(),i=Zm(a),r=i?n.formatMessage({defaultMessage:"Waiting for a previous response in this conversation to finish...",id:"LbkVUKh/it"}):void 0;return t.jsx(iN,{multiline:!0,content:r,children:t.jsx("div",{children:t.jsx(rN,{variant:"secondary",disabled:i,onClick:e,children:s})})})}function Oae({stopReason:e,onSendContinue:s}){const n=JS(),{model:a,conversation:i}=J(),r=si(),{selected:o}=ep(a??"",i?.id,{surface:r}),l="max"===o?.id&&!o.recommended;return t.jsx(ea,{"data-testid":"message-warning",className:Hae,action:t.jsx(Uae,{onClick:()=>s(a),children:n.formatMessage({defaultMessage:"Continue",id:"acrOozm08x"})}),children:"max_tokens"===e?t.jsxs(t.Fragment,{children:[t.jsx(XS,{defaultMessage:"Claude reached its max length for this message.",id:"Oqm0tccaip"}),l&&t.jsxs(t.Fragment,{children:[" ",t.jsx(XS,{defaultMessage:"Max effort can use excessive tokens resulting in hitting limits. Consider using a lower effort setting.",id:"7WkvzNBqWd"})]})]}):t.jsx(XS,{defaultMessage:"Claude reached its tool-use limit for this turn.",id:"i49QmGHv5y"})})}const Fae=e.memo(function({message:s,messageWarningPropsFromParent:n,hasLink:a,hasCode:i,hasDriveDocWithImages:r,onRetry:o,onSendContinue:l,webSearchEnabled:c,suppressWebSearchNudge:d,isLastMessage:u,isStreaming:m}){const p=JS(),f=Xi(),g=e.useMemo(()=>({a:({node:e,...s})=>t.jsx("a",{...s,className:"underline"})}),[]);if("prominent"===n?.style)return t.jsx(ea,{"data-testid":"message-warning",variant:"warning",className:Hae,children:t.jsx(gn,{components:g,children:n.contentMarkdown})});const h="human"===s.sender;if(!h&&"error"===s.stop_reason&&o)return t.jsx(ea,{"data-testid":"message-warning",className:Hae,action:m?void 0:t.jsx(Uae,{onClick:()=>o(s.parent_message_uuid??void 0),children:p.formatMessage({defaultMessage:"Try again",id:"FazwRldA7z"})}),children:Pae(Xm(s.uuid))});if(!h&&u&&("max_tokens"===s.stop_reason||"tool_use_limit"===s.stop_reason)&&l)return t.jsx(Oae,{stopReason:s.stop_reason,onSendContinue:l});if(!h&&u&&"conversation_length_limit"===s.stop_reason)return t.jsx(ea,{"data-testid":"message-warning",className:Hae,action:t.jsx(rN,{variant:"secondary",onClick:()=>{window.location.href="/new"},children:p.formatMessage({defaultMessage:"Start a new chat",id:"c/Hjsh8c90"})}),children:t.jsx(XS,{defaultMessage:"This conversation has reached its length limit.",id:"2QtxTzR9fI"})});if(!h&&u&&s.metadata?.is_resume_completion_placeholder_message)return t.jsx(ea,{"data-testid":"message-warning",className:Hae,children:t.jsx(XS,{defaultMessage:"Claude is still creating a response in the background. Once it's complete, you'll see it here.",id:"PWncUwX98o"})});const C=[];return!a||c||d||C.push(p.formatMessage({defaultMessage:"Turn on web search in Search and tools menu. Otherwise, links provided may not be accurate or up to date.",id:"uUjlNFGg26"})),h?r&&C.push(p.formatMessage({defaultMessage:"Claude cannot yet access images from Google Docs.",id:"8Wb1yCJBBv"})):(i&&"disabled_by_user"===f.status&&C.push(p.formatMessage({defaultMessage:"To run code, enable code execution and file creation in Settings > Capabilities.",id:"BHnMOtM/i0"})),s.stop_reason,n&&C.push(n.contentMarkdown)),0===C.length?null:t.jsx(ea,{"data-testid":"message-warning",className:Hae,children:t.jsx(gn,{components:g,children:C.reverse().join(" ")})})});function Vae({message:e,isLastMessage:s,conversationUuid:n,conversationSettings:a,messageWarningPropsFromParent:i,hasDriveDocWithImages:r,onRetry:o,onSendContinue:l}){const c=(d=e.uuid,V$(e=>e.features[d]?.hasLink??!1));var d;const u=function(e){return V$(t=>t.features[e]?.hasCode??!1)}(e.uuid),{considerEnabledForNonUI:m}=ra(),p=ke("web_search"),f=Km(n,{enabled:"assistant"===e.sender&&"error"===e.stop_reason});return t.jsx(Fae,{message:e,hasLink:c,hasCode:u,isLastMessage:s,hasDriveDocWithImages:r,webSearchEnabled:m||a?.enabled_web_search,suppressWebSearchNudge:!p.isAvailable,messageWarningPropsFromParent:i,onRetry:o,onSendContinue:l,isStreaming:f})}const zae={initial:!1,animate:{y:0,opacity:1}},Zae={initial:{y:10,opacity:0},animate:{y:0,opacity:1},transition:{type:"spring",damping:10,stiffness:100}},Bae={initial:{scale:1.02,opacity:0},animate:{scale:1,opacity:1},transition:{duration:.3,ease:"easeOut"}},qae={initial:{height:"0px",opacity:0},animate:{height:"auto",opacity:1},transition:{ease:"linear",duration:.1}},Wae="font-large !font-user-message py-0.5",$ae=e.forwardRef(({className:e,...s},n)=>t.jsx(sA.div,{ref:n,...s,"data-user-message-bubble":!0,className:dt("group relative inline-flex gap-2 bg-bg-300 rounded-xl pl-2.5 py-[var(--msg-bubble-py,0.625rem)] break-words text-text-100 transition-all max-w-[75ch] flex-col",e)}));$ae.displayName="UserMessageBubble";const Gae=e.forwardRef(({className:e,...s},n)=>t.jsx(sA.div,{ref:n,...s,className:dt("group relative",e)}));function Kae(e){return t.jsx("div",{...e,className:"font-claude-response relative leading-[1.65rem] [&_pre>div]:bg-bg-000/50 [&_pre>div]:border-0.5 [&_pre>div]:border-border-400 [&_.ignore-pre-bg>div]:bg-transparent [&_.standard-markdown_:is(p,blockquote,h1,h2,h3,h4,h5,h6)]:pl-2 [&_.standard-markdown_:is(p,blockquote,ul,ol,h1,h2,h3,h4,h5,h6)]:pr-8 [&_.progressive-markdown_:is(p,blockquote,h1,h2,h3,h4,h5,h6)]:pl-2 [&_.progressive-markdown_:is(p,blockquote,ul,ol,h1,h2,h3,h4,h5,h6)]:pr-8"})}function Yae(e){return e?e.map(e=>"text"===e.type?e.text:"connector_text"===e.type?e.connector_text:"").filter(Boolean).join(" ").trim():""}Gae.displayName="ClaudeResponseBubble";function Qae(e){const t=function(e){const t=e.split("\n");let s=0;for(;s<t.length&&""===t[s].trim();)s++;if(t[s]?.trimStart().startsWith("```")){for(s++;s<t.length&&!t[s].trimStart().startsWith("```");)s++;s++}for(;s<t.length&&""===t[s].trim();)s++;return t.slice(s).join("\n").replace(/^[\s>]*(?:[#]{1,6}|[-*+]|\d+\.)\s+/gm,"").replace(/`([^`]*)`/g,"$1").replace(/\*\*([^*]+)\*\*/g,"$1").replace(/__([^_]+)__/g,"$1").replace(/(?<!\*)\*([^*\n]+)\*(?!\*)/g,"$1").replace(/(?<!_)_([^_\n]+)_(?!_)/g,"$1").replace(/!?\[([^\]]*)\]\([^)]*\)/g,"$1")}(e).trimStart(),s=/^[^.!?\n]*[.!?]?/.exec(t),n=(s?.[0]??t).trim();return n.length>160?n.slice(0,159)+"\u2026":n}const Jae='button:not([disabled]), a[href], [role="button"]';function Xae(e){return Array.from(e.querySelectorAll(Jae))}function eie(t){const s=e.useRef(null),n=e.useRef(null),a=e.useRef(null),i=e.useRef(t?.autoFocus??!1),r=e.useCallback((e,t)=>{a.current=t,e.forEach(e=>{e.tabIndex=e===t?0:-1})},[]),o=e.useCallback(e=>{const t=Xae(e);if(0===t.length)return void(a.current=null);const s=a.current&&t.includes(a.current)?a.current:t[0];r(t,s)},[r]),l=e.useCallback(e=>{n.current?.disconnect(),n.current=null,s.current=e,e?(o(e),i.current&&(i.current=!1,a.current?.focus()),n.current=new MutationObserver(()=>o(e)),n.current.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["disabled"]})):a.current=null},[o]);e.useEffect(()=>()=>n.current?.disconnect(),[]);const c=e.useCallback(e=>{const t=s.current;if(!t)return;const n=e.target;if(n===a.current||!n.matches(Jae))return;const i=Xae(t);i.includes(n)&&r(i,n)},[r]);return{ref:l,onKeyDown:e.useCallback(e=>{const t=s.current;if(!t||e.defaultPrevented||e.altKey||e.ctrlKey||e.metaKey||!t.contains(e.target))return;const n=Xae(t);if(0===n.length)return;const a=n.indexOf(t.ownerDocument.activeElement);let i;switch(e.key){case"ArrowRight":i=-1===a?0:(a+1)%n.length;break;case"ArrowLeft":i=-1===a?0:(a-1+n.length)%n.length;break;case"Home":i=0;break;case"End":i=n.length-1;break;default:return}e.preventDefault(),r(n,n[i]),n[i]?.focus()},[r]),onFocus:c}}const tie="opacity-0 group-hover:opacity-100 group-focus-within:opacity-100 pointer-coarse:opacity-100 transition-opacity duration-150";function sie(e){return Boolean(e.parent_tool_use_id||e.isSynthetic||e.isMeta||e.isCompactSummary||e.isVisibleInTranscriptOnly)}function nie(e,t){const s=e.findIndex(e=>"uuid"in e&&e.uuid===t);if(-1!==s)for(let n=s+1;n<e.length;n++){const t=e[n];if("user"!==t.type||!("message"in t))continue;if(sie(t))continue;const s=t.message.content;if((!Array.isArray(s)||!s.every(e=>"object"==typeof e&&null!==e&&"type"in e&&"tool_result"===e.type))&&("uuid"in t&&"string"==typeof t.uuid))return t.uuid}}const aie=e.memo(function({messageUuid:s}){const n=JS(),{track:a}=ae(),{addError:i}=ut(),r=tK(),o=tp(),l=e.useContext(sp),c=aa(e=>e.sessionContext?.sessionId),d=aa(e=>e.sessionContext?.sessionData.cliSessionId),u=Nc(e=>c?e.sessions.find(e=>e.sessionId===c)?.sessionType:void 0),m=e.useCallback(()=>{const e=l?.getState().sessionContext;if(!e)return;const t=Nc.getState().sessions.find(t=>t.sessionId===e.sessionId),r=nie(e.messages,s),o={parentSessionId:e.sessionId,branchCutMessageUuid:r,resolveBranchCutMessageUuid:()=>{const t=l?.getState().sessionContext;return t&&t.sessionId===e.sessionId?nie(t.messages,s)??r:r},permissionMode:e.permissionMode,chromeSkipAllPermissionChecks:"skip_all_permission_checks"===e.chromePermissionMode,spaceId:e.spaceId};null!==iK.getState().openWindow("branch_task",{selectedFolders:e.sessionData.userSelectedFolders??[],selectedProjectUuids:e.sessionData.userSelectedProjectUuids,model:t?.model||e.sessionData.session_context.model||void 0},o)?a({event_key:"claudeai.cowork.branch_clicked",session_id:e.sessionId}):i(n.formatMessage({defaultMessage:"Composer at capacity. Close a draft to spin off a new task.",id:"HBSdl7FCpX"}))},[l,a,i,n,s]),p=e.useMemo(()=>t.jsx(rN,{variant:"ghost",iconOnly:!0,className:"!text-muted hover:!text-primary",size:"xs",tooltipSide:"bottom",icon:"DotsHorizontal","data-testid":"action-bar-overflow","aria-label":n.formatMessage({defaultMessage:"More options",id:"IzCVhGdYVc"})}),[n]),f=e.useMemo(()=>[{label:n.formatMessage({defaultMessage:"Spin off a new task",id:"JL00yWFZoq"}),icon:"ArrowSplitRight",onSelect:m}],[n,m]);return r&&o&&c&&d&&!ga(c)&&!u?t.jsx(KL,{side:"bottom",align:"end",renderTrigger:p,items:f}):null});const iie=e.memo(function({conversationUuid:s,message:n,agentMode:a=!1}){const[i,r]=e.useState(void 0),[o,l]=e.useState(!1),[c,d]=e.useState(!1),[u,m]=e.useState(void 0),p=e.useCallback(()=>{l(!1),d(!0),setTimeout(()=>d(!1),250)},[]),f=e.useCallback(e=>{m(e)},[]),g=e=>{"flag"===e?i?.startsWith("flag")||r(Mn.FLAG):i!==Mn.UPVOTE&&r(Mn.UPVOTE),l(!0)},h=JS(),C=u??n.chat_feedback?.type,x=C?.includes("upvote"),v=C?.includes("flag");return t.jsxs(t.Fragment,{children:[t.jsx(rN,{variant:"ghost",iconOnly:!0,size:"xs",icon:t.jsx($L,{name:"ThumbsUp",bold:x,size:"sm"}),tooltipSide:a?"bottom":void 0,className:x?"!text-accent":"!text-muted hover:!text-primary","aria-label":h.formatMessage({defaultMessage:"Give positive feedback",id:"FGCv00cdfW"}),onClick:()=>g("upvote")}),t.jsx(rN,{variant:"ghost",iconOnly:!0,size:"xs",icon:t.jsx($L,{name:"ThumbsDown",bold:v,size:"sm"}),tooltipSide:a?"bottom":void 0,className:v?"!text-danger":"!text-muted hover:!text-primary","aria-label":h.formatMessage({defaultMessage:"Give negative feedback",id:"ngzzQUJCXB"}),onClick:()=>g("flag")}),(o||c)&&t.jsx(M$,{conversationUuid:s,message:n,requestedFeedbackType:i,setRequestedFeedbackType:r,isOpen:o,onClose:p,onSubmit:f})]})});const rie=e.memo(function({message:s}){const n=aa(e=>e.sessionContext?.sessionId),a=aa(e=>e.sessionContext?.sessionData.cliSessionId),i=JS(),[r,o]=e.useState(!1),[l,c]=e.useState(!1),[d,u]=e.useState("flag"),[m,p]=e.useState(null),f=e.useRef(void 0),g=e.useCallback(e=>{clearTimeout(f.current),u(e),o(!0),c(!1)},[]),h=e.useCallback(()=>{o(!1),c(!0),clearTimeout(f.current),f.current=setTimeout(()=>c(!1),250)},[]),C=e.useCallback(()=>{p(d)},[d]);return void 0===n?null:t.jsxs(t.Fragment,{children:[t.jsx(rN,{variant:"ghost",iconOnly:!0,size:"xs",icon:t.jsx($L,{name:"ThumbsUp",bold:"upvote"===m,size:"sm"}),tooltipSide:"bottom",className:"upvote"===m?"!text-accent":"!text-muted hover:!text-primary","aria-label":i.formatMessage({defaultMessage:"Give positive feedback",id:"FGCv00cdfW"}),onClick:()=>g("upvote")}),t.jsx(rN,{variant:"ghost",iconOnly:!0,size:"xs",icon:t.jsx($L,{name:"ThumbsDown",bold:"flag"===m,size:"sm"}),tooltipSide:"bottom",className:"flag"===m?"!text-danger":"!text-muted hover:!text-primary","aria-label":i.formatMessage({defaultMessage:"Give negative feedback",id:"ngzzQUJCXB"}),onClick:()=>g("flag")}),(r||l)&&t.jsx(J8,{isOpen:r,onClose:h,onSubmit:C,feedbackType:d,messageUuid:s.uuid,apiMessageIds:s.apiMessageIds,sessionId:n,cliSessionId:a})]})},(e,t)=>e.message.uuid===t.message.uuid&&e.message.apiMessageIds===t.message.apiMessageIds),oie=[{id:"buttery",label:"Buttery"},{id:"airy",label:"Airy"},{id:"mellow",label:"Mellow"},{id:"glassy",label:"Glassy"},{id:"rounded",label:"Rounded"}],lie=[{id:"slow",value:.8},{id:"normal",value:1},{id:"fast",value:1.2}];function cie(e){return lie.reduce((t,s)=>Math.abs(s.value-e)<Math.abs(t.value-e)?s:t).id}const die="claude-selected-voice",uie="claude-voice-activation-mode",mie="claude-voice-speed",pie="buttery",fie="hands_free";function gie(e){return e>=.5&&e<=2}function hie(e){return oie.some(t=>t.id===e)}function Cie(){if("undefined"==typeof window)return{selectedVoice:pie,activationMode:fie,voiceSpeed:1};const e=mi(),t=e.getItem(die),s=e.getItem(uie),n=e.getItem(mie),a=t&&hie(t),i=s&&("hands_free"===s||"push_to_talk"===s),r=n?parseFloat(n):NaN,o=!isNaN(r)&&gie(r);return{selectedVoice:a?t:pie,activationMode:i?s:fie,voiceSpeed:o?r:1}}const xie=fT(e=>({...Cie(),setSelectedVoice:t=>{mi().setItem(die,t),e({selectedVoice:t})},setActivationMode:t=>{mi().setItem(uie,t),e({activationMode:t})},setVoiceSpeed:t=>{mi().setItem(mie,String(t)),e({voiceSpeed:t})}}));function vie(){const{account:t}=v(),{mutate:s}=Fa(),{selectedVoice:n,setSelectedVoice:a,voiceSpeed:i,setVoiceSpeed:r}=xie();e.useEffect(()=>{const e=t?.settings.voice_preference;e?hie(e)&&xie.getState().setSelectedVoice(e):n!==pie&&s({voice_preference:n})},[t?.settings.voice_preference]),e.useEffect(()=>{const e=t?.settings.voice_speed;null!=e&&gie(e)?xie.getState().setVoiceSpeed(e):1!==i&&s({voice_speed:i})},[t?.settings.voice_speed]);return{selectedVoice:n,setVoicePreference:e=>{hie(e)&&a(e),s({voice_preference:e})},voiceSpeed:i,setSyncedVoiceSpeed:e=>{r(e),s({voice_speed:e})},setSyncedVoiceLanguage:e=>{s({voice_language_code:e})},setSyncedVoiceLanguageAndPreference:(e,t)=>{t&&hie(t)&&a(t),s({voice_language_code:e,...t?{voice_preference:t}:{}})}}}function yie(){const t=e.useRef(null),s=e.useRef(null),[n,a]=e.useState(null),i=e.useCallback(()=>{t.current?.pause(),t.current=null,s.current=null,a(null)},[]);e.useEffect(()=>i,[i]);return{playingVoiceId:n,preview:e.useCallback((e,n)=>{const r=s.current===e;if(t.current?.pause(),t.current=null,r)return s.current=null,void a(null);const o=new Audio(n??function(e){return`/audio/voice/selection/${encodeURIComponent(e)}.mp3`}(e));t.current=o,s.current=e,a(e);const l=()=>{t.current===o&&i()};o.addEventListener("ended",l),o.play().catch(l)},[i]),stop:i}}const bie=4*Uint32Array.BYTES_PER_ELEMENT;class kie{capacity;storage;indices;static allocate(e){const t=bie+e*Float32Array.BYTES_PER_ELEMENT;return new("undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:ArrayBuffer)(t)}constructor(e){this.indices=new Uint32Array(e,0,4),this.storage=new Float32Array(e,bie),this.capacity=this.storage.length}push(e){const t=Atomics.load(this.indices,1),s=Atomics.load(this.indices,0),n=Math.min(e.length,this._availableWrite(s,t));if(0===n)return 0;const a=this.capacity-t;return n<=a?this.storage.set(e.subarray(0,n),t):(this.storage.set(e.subarray(0,a),t),this.storage.set(e.subarray(a,n),0)),Atomics.store(this.indices,1,(t+n)%this.capacity),n}pop(e){const t=Atomics.load(this.indices,0),s=Atomics.load(this.indices,1),n=Math.min(e.length,this._availableRead(t,s));if(0===n)return 0;const a=this.capacity-t;return n<=a?e.set(this.storage.subarray(t,t+n)):(e.set(this.storage.subarray(t,this.capacity)),e.set(this.storage.subarray(0,n-a),a)),Atomics.store(this.indices,0,(t+n)%this.capacity),n}clear(){Atomics.store(this.indices,0,0),Atomics.store(this.indices,1,0)}drainAll(){const e=Atomics.load(this.indices,1);Atomics.store(this.indices,0,e)}availableRead(){const e=Atomics.load(this.indices,0),t=Atomics.load(this.indices,1);return this._availableRead(e,t)}availableWrite(){const e=Atomics.load(this.indices,0),t=Atomics.load(this.indices,1);return this._availableWrite(e,t)}isEmpty(){return 0===this.availableRead()}isFull(){return 0===this.availableWrite()}usableCapacity(){return this.capacity-1}incrementUnderrun(){Atomics.add(this.indices,2,1)}underrunCount(){return Atomics.load(this.indices,2)}resetUnderruns(){Atomics.store(this.indices,2,0)}addPlayedSamples(e){Atomics.add(this.indices,3,e)}playedSamples(){return Atomics.load(this.indices,3)}resetPlayed(){Atomics.store(this.indices,3,0)}_availableRead(e,t){return(t-e+this.capacity)%this.capacity}_availableWrite(e,t){return this.capacity-1-this._availableRead(e,t)}}const wie=48e3,Mie=2e4,_ie={outputFormat:"pcm",sampleRate:16e3,channels:1,bufferAhead:.1,prebufferMs:0,allowWorkletSink:!0,autotestMuted:!1};class jie{config;forceSink;state="idle";audioContext=null;gainNode=null;analyserNode=null;autotestMuteGain=null;opusDecoder=null;opusTimestampUs=0;sink="buffersource";workletNode=null;ringBuffer=null;decodeScratch=null;scheduledBuffers=[];nextScheduleTime=0;coalescingBuffer=[];coalescingBytes=0;opusCoalescingBuffer=[];opusCoalescingSamples=0;opusFlushTimer=null;pendingChunks=[];processingChunks=!1;prebufferHolding=!0;isInterrupted=!1;suspendedByCaller=!1;consecutiveDecodeErrors=0;playedDurationMs=0;totalPushedSamples=0;fallbackUnderrunCount=0;lastChunkLeadMs=null;onStateChange=null;onPlaybackComplete=null;constructor(e={}){const{forceSink:t,...s}=e;this.config={..._ie,...s},this.forceSink=t,this.config.prebufferMs=Number.isFinite(this.config.prebufferMs)?Math.min(Math.max(this.config.prebufferMs,0),5e3):0,"opus"===this.config.outputFormat&&(e.sampleRate&&e.sampleRate!==wie&&k.warn(w.VOICE_MODE,"[AudioPlayer] sampleRate ignored for opus output (forced 48000)"),this.config.sampleRate=wie)}getState(){return this.state}getPlayedDurationMs(){return"worklet"===this.sink&&this.ringBuffer?this.ringBuffer.playedSamples()/this.config.sampleRate*1e3:this.playedDurationMs}resetPlayedDuration(){this.playedDurationMs=0,this.totalPushedSamples=0,"worklet"===this.sink&&this.ringBuffer&&this.ringBuffer.resetPlayed()}getTotalPushedSamples(){return this.totalPushedSamples}getSampleRate(){return this.config.sampleRate}getOutputLatencyMs(){const e=this.audioContext?.outputLatency;return"number"==typeof e?1e3*e:0}static isSupported(){return!("undefined"==typeof window||!window.AudioContext&&!window.webkitAudioContext)}setOnStateChange(e){this.onStateChange=e}setOnPlaybackComplete(e){this.onPlaybackComplete=e}async initialize(){if(this.audioContext)return;const e=window.AudioContext||window.webkitAudioContext;if(!e)throw new Error("Web Audio API is not supported");if(this.audioContext=new e({sampleRate:this.config.sampleRate,latencyHint:"interactive"}),this.gainNode=this.audioContext.createGain(),this.analyserNode=this.audioContext.createAnalyser(),this.analyserNode.fftSize=2048,this.analyserNode.smoothingTimeConstant=0,this.autotestMuteGain=this.audioContext.createGain(),this.autotestMuteGain.gain.value=this.config.autotestMuted?0:1,this.gainNode.connect(this.analyserNode),this.analyserNode.connect(this.autotestMuteGain),this.autotestMuteGain.connect(this.audioContext.destination),"suspended"===this.audioContext.state&&await this.audioContext.resume(),this.audioContext){if(this.sink=this.selectSink(),"worklet"===this.sink){if(await this.setupWorkletSink(),!this.audioContext)return}else this.nextScheduleTime=this.audioContext.currentTime;"opus"===this.config.outputFormat&&this.setupOpusDecoder()}}selectSink(){if(this.forceSink)return this.forceSink;if(!this.config.allowWorkletSink)return"buffersource";const e="undefined"!=typeof SharedArrayBuffer,t="undefined"!=typeof self&&!0===self.crossOriginIsolated,s="undefined"!=typeof AudioWorkletNode&&!!this.audioContext?.audioWorklet;return e&&t&&s?"worklet":"buffersource"}async setupWorkletSink(){if(this.audioContext&&this.gainNode)try{await this.audioContext.audioWorklet.addModule("/audio/voice/audioSinkWorklet.js");const e=kie.allocate(576e4);this.ringBuffer=new kie(e),this.workletNode=new AudioWorkletNode(this.audioContext,"audio-sink-processor",{outputChannelCount:[this.config.channels],processorOptions:{sab:e}}),this.workletNode.port.onmessage=e=>{"drained"===e.data?.type&&this.checkPlaybackComplete()},this.workletNode.connect(this.gainNode)}catch(e){k.warn(w.VOICE_MODE,"[AudioPlayer] Worklet setup failed, falling back to buffersource",{error:String(e)}),this.ringBuffer=null,this.workletNode=null,this.sink="buffersource",this.nextScheduleTime=this.audioContext?.currentTime??0}}setupOpusDecoder(){const e=new AudioDecoder({output:t=>{try{if(this.isInterrupted||e!==this.opusDecoder)return;this.consecutiveDecodeErrors=0,null!==this.opusFlushTimer&&(clearTimeout(this.opusFlushTimer),this.opusFlushTimer=null);const s=t.numberOfFrames;(!this.decodeScratch||this.decodeScratch.length<s)&&(this.decodeScratch=new Float32Array(s));const n=this.decodeScratch.subarray(0,s);t.copyTo(n,{planeIndex:0,format:"f32-planar"}),this.writeToSink(n),"worklet"!==this.sink&&0===e.decodeQueueSize&&0===this.pendingChunks.length&&this.opusCoalescingSamples>0&&(this.opusFlushTimer=setTimeout(()=>{this.opusFlushTimer=null,this.flushOpusCoalescingBuffer()},40))}finally{t.close()}},error:t=>{e===this.opusDecoder&&(this.consecutiveDecodeErrors+=1,k.warn(w.VOICE_MODE,"[AudioPlayer] Opus decode error",{error:String(t),consecutive:this.consecutiveDecodeErrors}),this.consecutiveDecodeErrors>=3?this.setState("error"):this.recreateOpusDecoder())}});this.opusDecoder=e,this.opusDecoder.configure({codec:"opus",sampleRate:wie,numberOfChannels:this.config.channels})}recreateOpusDecoder(){if(this.opusDecoder&&"closed"!==this.opusDecoder.state)try{this.opusDecoder.close()}catch{}this.opusDecoder=null;try{this.setupOpusDecoder()}catch(e){k.warn(w.VOICE_MODE,"[AudioPlayer] Opus decoder recreate failed; leaving null",{error:e})}}queueAudio(e){this.isInterrupted=!1,this.pendingChunks.push(e),this.processingChunks||this.processChunks()}getDebugInfo(){return{state:this.state,contextState:this.audioContext?.state??null,sink:this.sink,ringAvailableRead:this.ringBuffer?.availableRead()??null,ringAvailableWrite:this.ringBuffer?.availableWrite()??null,pendingChunks:this.pendingChunks.length,scheduledBuffers:this.scheduledBuffers.length,nextScheduleTime:this.nextScheduleTime,currentTime:this.audioContext?.currentTime??0,gainValue:this.gainNode?.gain.value??0,outputFormat:this.config.outputFormat,decoderQueueSize:this.opusDecoder?.decodeQueueSize??null}}async processChunks(){if(!(this.processingChunks||this.isInterrupted||this.prebufferHolding&&this.config.prebufferMs>0&&this.pendingChunksMs()<this.config.prebufferMs)){if(this.prebufferHolding=!1,this.processingChunks=!0,this.audioContext||await this.initialize(),this.suspendedByCaller&&"running"===this.audioContext?.state)try{await this.audioContext.suspend()}catch{}if("suspended"===this.audioContext?.state&&!this.suspendedByCaller)try{await this.audioContext.resume()}catch{}if("opus"===this.config.outputFormat)for(;this.pendingChunks.length>0&&!this.isInterrupted;){const e=this.pendingChunks.shift();e&&"configured"===this.opusDecoder?.state&&(this.opusDecoder.decode(new EncodedAudioChunk({type:"key",timestamp:this.opusTimestampUs,data:e})),this.opusTimestampUs+=Mie)}else{for(;this.pendingChunks.length>0&&!this.isInterrupted;){const e=this.pendingChunks.shift();e&&("worklet"===this.sink?this.writeToSink(this.pcmInt16ToFloat32(e)):(this.coalescingBuffer.push(e),this.coalescingBytes+=e.byteLength,this.coalescingBytes>=3200&&this.scheduleCoalescedChunks()))}"buffersource"===this.sink&&this.coalescingBytes>0&&!this.isInterrupted&&this.scheduleCoalescedChunks()}this.processingChunks=!1}}writeToSink(e){if(!this.isInterrupted)if("worklet"===this.sink&&this.ringBuffer){this.lastChunkLeadMs=Math.round(this.ringBuffer.availableRead()/this.config.sampleRate*1e3);const t=this.ringBuffer.push(e);this.totalPushedSamples+=t,t<e.length&&k.warn(w.VOICE_MODE,"[AudioPlayer] Ring buffer overrun \u2014 dropped samples",{dropped:e.length-t}),"playing"!==this.state&&this.setState("playing")}else this.opusCoalescingBuffer.push(new Float32Array(e)),this.opusCoalescingSamples+=e.length,this.opusCoalescingSamples>=4800&&this.flushOpusCoalescingBuffer()}flushOpusCoalescingBuffer(){if(0===this.opusCoalescingBuffer.length)return;let e;if(1===this.opusCoalescingBuffer.length)e=this.opusCoalescingBuffer[0];else{e=new Float32Array(this.opusCoalescingSamples);let t=0;for(const s of this.opusCoalescingBuffer)e.set(s,t),t+=s.length}this.opusCoalescingBuffer=[],this.opusCoalescingSamples=0,this.scheduleFloat32Chunk(e)}scheduleCoalescedChunks(){if(0===this.coalescingBuffer.length)return;if(1===this.coalescingBuffer.length){const e=this.coalescingBuffer[0];return this.coalescingBuffer=[],this.coalescingBytes=0,void this.scheduleFloat32Chunk(this.pcmInt16ToFloat32(e))}const e=new ArrayBuffer(this.coalescingBytes),t=new Uint8Array(e);let s=0;for(const n of this.coalescingBuffer)t.set(new Uint8Array(n),s),s+=n.byteLength;this.coalescingBuffer=[],this.coalescingBytes=0,this.scheduleFloat32Chunk(this.pcmInt16ToFloat32(e))}scheduleFloat32Chunk(e){if(!this.audioContext||!this.gainNode||this.isInterrupted)return;this.totalPushedSamples+=e.length;const t=this.audioContext.createBuffer(this.config.channels,e.length,this.config.sampleRate);t.getChannelData(0).set(e);const s=this.audioContext.createBufferSource();s.buffer=t,s.connect(this.gainNode);const n=this.audioContext.currentTime,a=Math.max(this.nextScheduleTime,n+this.config.bufferAhead),i=t.duration;if(this.nextScheduleTime>0&&(this.lastChunkLeadMs=Math.round(1e3*(this.nextScheduleTime-n))),this.nextScheduleTime>0&&n>this.nextScheduleTime){const e=Math.round(1e3*(n-this.nextScheduleTime));e<=1e3&&(this.fallbackUnderrunCount++,k.warn(w.VOICE_MODE,"[AudioPlayer] Playback gap detected",{gapMs:e,underrunCount:this.fallbackUnderrunCount,nextScheduleTime:this.nextScheduleTime,currentTime:n}))}s.start(a);const r={source:s,startTime:a,duration:i};this.scheduledBuffers.push(r),this.nextScheduleTime=a+i,"playing"!==this.state&&this.setState("playing"),s.onended=()=>{this.playedDurationMs+=1e3*i,s.disconnect(),this.cleanupBuffer(r),this.checkPlaybackComplete()}}cleanupBuffer(e){const t=this.scheduledBuffers.indexOf(e);-1!==t&&this.scheduledBuffers.splice(t,1)}checkPlaybackComplete(){("worklet"===this.sink?0===(this.ringBuffer?.availableRead()??0):0===this.scheduledBuffers.length)&&0===this.pendingChunks.length&&0===(this.opusDecoder?.decodeQueueSize??0)&&0===this.opusCoalescingSamples&&"playing"===this.state&&(this.setState("idle"),this.onPlaybackComplete?.())}pendingChunksMs(){if("opus"===this.config.outputFormat)return 20*this.pendingChunks.length;let e=0;for(const t of this.pendingChunks)e+=t.byteLength;return e/2/this.config.channels/this.config.sampleRate*1e3}pcmInt16ToFloat32(e){const t=new Int16Array(e),s=new Float32Array(t.length);for(let n=0;n<t.length;n++)s[n]=t[n]/32768;return s}releasePrebuffer(){this.prebufferHolding=!1,this.pendingChunks.length>0&&!this.processingChunks&&this.processChunks()}signalTurnEnd(){this.releasePrebuffer(),this.prebufferHolding=!0,this.workletNode?.port.postMessage({type:"turn_end"}),this.flushOpusCoalescingBuffer()}stop(){this.isInterrupted=!0,this.consecutiveDecodeErrors=0,"worklet"===this.sink&&(this.workletNode?.port.postMessage({type:"flush"}),this.ringBuffer?.resetPlayed());for(const e of this.scheduledBuffers)try{e.source.onended=null,e.source.stop(),e.source.disconnect()}catch{}"opus"===this.config.outputFormat&&this.recreateOpusDecoder(),this.opusTimestampUs=0,this.scheduledBuffers=[],this.pendingChunks=[],this.prebufferHolding=!0,this.coalescingBuffer=[],this.coalescingBytes=0,this.opusCoalescingBuffer=[],this.opusCoalescingSamples=0,null!==this.opusFlushTimer&&(clearTimeout(this.opusFlushTimer),this.opusFlushTimer=null),this.processingChunks=!1,this.playedDurationMs=0,this.totalPushedSamples=0,this.lastChunkLeadMs=null,this.audioContext&&(this.nextScheduleTime=this.audioContext.currentTime),this.setState("idle")}async suspend(){this.suspendedByCaller=!0,this.audioContext&&"running"===this.audioContext.state&&await this.audioContext.suspend()}async resume(){this.suspendedByCaller=!1,this.audioContext&&"suspended"===this.audioContext.state&&await this.audioContext.resume()}setVolume(e){this.gainNode&&(this.gainNode.gain.value=Math.max(0,Math.min(1,e)))}getVolume(){return this.gainNode?.gain.value??1}getAnalyser(){return this.analyserNode}setAutotestMuted(e){this.config.autotestMuted=e,this.autotestMuteGain&&(this.autotestMuteGain.gain.value=e?0:1)}async setSpeakerDevice(e){if(!this.audioContext)return;const t=this.audioContext;if("function"==typeof t.setSinkId)try{await t.setSinkId(e??"")}catch{}}mute(){this.setVolume(0)}unmute(){this.setVolume(1)}dispose(){this.suspendedByCaller=!1,this.stop(),this.opusDecoder&&"closed"!==this.opusDecoder.state&&this.opusDecoder.close(),this.opusDecoder=null,this.workletNode?.disconnect(),this.workletNode=null,this.ringBuffer=null,this.decodeScratch=null,this.analyserNode?.disconnect(),this.gainNode?.disconnect(),this.autotestMuteGain?.disconnect(),"closed"!==this.audioContext?.state&&this.audioContext?.close(),this.audioContext=null,this.gainNode=null,this.analyserNode=null,this.autotestMuteGain=null}isPlaying(){return"playing"===this.state}getRemainingDuration(){const e="opus"===this.config.outputFormat?.02*(this.opusDecoder?.decodeQueueSize??0):0,t=this.pendingChunksMs()/1e3+e,s=this.opusCoalescingSamples/this.config.sampleRate;if("worklet"===this.sink&&this.ringBuffer)return this.ringBuffer.availableRead()/this.config.sampleRate+t+s;if(!this.audioContext||0===this.scheduledBuffers.length)return t+s;const n=this.scheduledBuffers[this.scheduledBuffers.length-1],a=n.startTime+n.duration;return Math.max(0,a-this.audioContext.currentTime)+t+s}getHealthMetrics(){const e="worklet"===this.sink&&this.ringBuffer?this.ringBuffer.underrunCount():this.fallbackUnderrunCount;return{bufferMs:Math.round(1e3*this.getRemainingDuration()),underrunCount:e,lastChunkLeadMs:this.lastChunkLeadMs}}resetHealthMetrics(){"worklet"===this.sink&&this.ringBuffer&&this.ringBuffer.resetUnderruns(),this.fallbackUnderrunCount=0,this.lastChunkLeadMs=null}setState(e){this.state=e,this.onStateChange?.(e)}}function Sie(e){switch(e){case"permission_denied":case"no_microphone":case"not_supported":case"idle_timeout":case"length_limit":case"disabled":case"mic_silent":return{error_type:"user_error",error_code:e};case"device_error":case"connection_failed":case"disconnected":case"decode_error":case"auth_error":case"invalid_request":return{error_type:"client_error",error_code:e};case"rate_limited":return{error_type:"rate_limit_error",error_code:e};case"session_expired":case"overloaded":case"sampling_error":case"internal_error":case"speech_error":case"transcript_error":case"unknown":return{error_type:"server_error",error_code:e}}}function Lie(e,t,s,n){np("voiceSessionStart",e,{variant:t,...s&&Sie(s)},void 0,n)}function Nie(e){return"user_exit"===e?"user_stopped":e}function Iie(e,t,s){np("voiceSessionEnd","user_exit"===e||"server_ended"===e?"success":"error"===e||"rate_limit"===e?"failure":"aborted",{variant:Nie(e),...t&&Sie(t)},void 0,s)}function Tie(e,t,s,n){np("voiceTurnComplete",e,{variant:t,...s&&Sie(s)},void 0,n)}function Aie(e,t){switch(e){case"permission_denied":case"no_mic":return{error_type:"user_error",error_code:e};case"mic_acquire_failed":return{error_type:"NotAllowedError"===t||"NotFoundError"===t?"user_error":"client_error",error_code:e,...t&&{error_subcode:t}};case"recorder_start_failed":case"no_audio_detected":return{error_type:"user_error",error_code:e,...t&&{error_subcode:t}};case"stt_connect_failed":case"stt_stream_error":return{error_type:"api_error",error_code:e,...t&&{error_subcode:t}};case"unknown":return{error_type:"client_error",error_code:e,...t&&{error_subcode:t}}}}function Eie(e,t,s,n,a){np("voiceDictation",e,{variant:t,...s&&Aie(s,a)},void 0,n)}function Rie(e){switch(e){case"not_supported":return{error_type:"user_error",error_code:e};case"rate_limited":return{error_type:"rate_limit_error",error_code:e};case"connection_failed":case"speech_error":case"server_error":case"no_audio_received":return{error_type:"api_error",error_code:e}}}function Die(e,t,s,n){const a="completed"===e?"success":"error"===e||"rate_limited"===e||"no_audio"===e&&void 0!==s?"failure":"aborted";np("voiceReadAloud",a,{variant:t,..."failure"===a&&s&&Rie(s)},void 0,n)}function Hie(e){return`${"https:"===window.location.protocol?"wss:":"ws:"}//${window.location.host}${e}`}function Pie(){return"undefined"!=typeof navigator&&_r(navigator.userAgent)?"desktop_app":"web_claude_ai"}function Uie(e){let t=e;return t=t.replace(/```[\s\S]*?```/g," (code block) "),t=t.replace(/`([^`]+)`/g,"$1"),t=t.replace(/^#{1,6}\s+/gm,""),t=t.replace(/\*{1,3}(\S.*?\S|\S)\*{1,3}/g,"$1"),t=t.replace(/(?<![\w_])_{1,3}(\S.*?\S|\S)_{1,3}(?![\w_])/g,"$1"),t=t.replace(/!?\[([^\]]*)\]\([^)]*\)/g,"$1"),t=t.replace(/^\s*[-|: ]{3,}\s*$/gm,""),t=t.replace(/\|/g," "),t=t.replace(/\n{3,}/g,"\n\n"),t.trim()}const Oie=new class{player=null;ws=null;keepAlive=null;listeners=new Set;currentMessageUuid=null;paused=!1;onDone=null;startedAt=0;receivedAudio=!1;serverErrored=!1;location;errorCode;subscribe(e){return this.listeners.add(e),()=>this.listeners.delete(e)}getCurrentMessageUuid(){return this.currentMessageUuid}getState(){return{messageUuid:this.currentMessageUuid,paused:this.paused}}emit(){const e=this.getState();for(const t of this.listeners)t(e)}speak(e,t,s,n){if(this.teardown("superseded"),!jie.isSupported())return Die("error",n,"not_supported",0),void s("error",0);const a=Uie(t);if(!a)return Die("no_audio",n,void 0,0),void s("no_audio",0);this.currentMessageUuid=e,this.paused=!1,this.onDone=s,this.startedAt=Date.now(),this.receivedAudio=!1,this.serverErrored=!1,this.location=n,this.errorCode=void 0;const{selectedVoice:i,voiceSpeed:r}=xie.getState(),o=Math.min(1.2,Math.max(.7,r)).toFixed(2),l=Hie(`/api/ws/text_to_speech/text_stream?${new URLSearchParams({output_format:"pcm_16000",voice:i,tts_speed:o,client_platform:Pie()})}`),c=new jie({sampleRate:16e3});this.player=c,c.initialize();const d=new WebSocket(l);this.ws=d,d.binaryType="arraybuffer";const u=()=>this.ws===d;c.setOnPlaybackComplete(()=>{this.player===c&&null===this.ws&&this.finish("completed")}),d.onopen=()=>{if(u()){for(const e of function(e){if(e.length<=800)return[e];const t=e.split(/(?<=[.!?])\s+|\n{2,}/),s=[];let n="";for(const a of t)n.length+a.length+1>800&&n?(s.push(n),n=a):n=n?`${n} ${a}`:a;return n&&s.push(n),s}(a))d.send(JSON.stringify({type:"text_chunk",text:e}));d.send(JSON.stringify({type:"close_stream"})),this.keepAlive=setInterval(()=>{d.readyState===WebSocket.OPEN&&d.send(JSON.stringify({type:"keep_alive"}))},4e3)}},d.onmessage=e=>{if(u()){if(e.data instanceof ArrayBuffer)return this.receivedAudio=!0,void c.queueAudio(e.data);try{const t=JSON.parse(String(e.data));"SpeechError"===t.type?(this.serverErrored=!0,this.errorCode="speech_error",d.close()):"SpeechComplete"===t.type?d.close():"error"===t.type&&(this.serverErrored=!0,this.errorCode="rate_limit_error"===t.error?.type?"rate_limited":"server_error",d.close())}catch{}}},d.onerror=()=>{u()&&(this.errorCode="connection_failed",this.finish("error"))},d.onclose=()=>{u()&&(this.clearKeepAlive(),this.ws=null,this.serverErrored?(c.stop(),this.finish("rate_limited"===this.errorCode?"rate_limited":"error")):c.isPlaying()||(this.receivedAudio||(this.errorCode="no_audio_received"),this.finish(this.receivedAudio?"completed":"no_audio")))},this.emit()}stop(){this.teardown("stopped")}pause(){null===this.currentMessageUuid||this.paused||(this.paused=!0,this.player?.suspend(),this.emit())}resume(){null!==this.currentMessageUuid&&this.paused&&(this.paused=!1,this.player?.resume(),this.emit())}teardown(e){if(this.ws){this.ws.onopen=null,this.ws.onmessage=null,this.ws.onerror=null,this.ws.onclose=null;try{this.ws.close()}catch{}this.ws=null}this.clearKeepAlive(),this.player?.stop(),this.player?.dispose(),this.player=null,this.finish(e)}finish(e){if(null===this.currentMessageUuid&&null===this.onDone)return;this.clearKeepAlive(),this.player?.dispose(),this.player=null;const t=this.onDone,s=this.startedAt?Date.now()-this.startedAt:0;Die(e,this.location,this.errorCode,s),this.currentMessageUuid=null,this.paused=!1,this.onDone=null,this.startedAt=0,this.location=void 0,this.errorCode=void 0,this.emit(),t?.(e,s)}clearKeepAlive(){this.keepAlive&&(clearInterval(this.keepAlive),this.keepAlive=null)}},Fie="chat";function Vie(e){return Oie.subscribe(e)}function zie(){return"idle"}const Zie=e.memo(function({messageUuid:s,showArtifacts:n,agentMode:a=!1}){const{track:i}=ae(),{addError:r}=ut(),o=e.useSyncExternalStore(Vie,()=>{const e=Oie.getState();return e.messageUuid!==s?"idle":e.paused?"paused":"playing"},zie),l=e.useCallback(()=>{const e=Pie(),t=Oie.getState();if(t.messageUuid===s){const s=t.paused?"resume":"pause";return t.paused?Oie.resume():Oie.pause(),void i({event_key:"claudeai.read_aloud.playback_toggled",surface:e,location:Fie,action:s})}const a=Ce.getState().messageByUuid[s],o=Le(a),l=(n?ap(o):o).trim();if(!l)return;const c=xie.getState().selectedVoice;i({event_key:"claudeai.read_aloud.started",surface:e,location:Fie,voice_id:c,text_char_count:Uie(l).length}),Oie.speak(s,l,(t,s)=>{"rate_limited"===t&&r(eL({defaultMessage:"You've reached your daily Read Aloud limit.",id:"wC+UEMTp4i"}),{uniqueKey:"read-aloud-rate-limited"}),i({event_key:"claudeai.read_aloud.completed",surface:e,location:Fie,outcome:t,duration_ms:s})},Fie)},[s,n,i,r]),c=JS(),d="playing"===o?c.formatMessage({defaultMessage:"Pause",id:"tFFMkFDBMO"}):"paused"===o?c.formatMessage({defaultMessage:"Resume",id:"3y9DGgura7"}):c.formatMessage({defaultMessage:"Read aloud",id:"FiwV/oi580"});return t.jsx(rN,{variant:"ghost",iconOnly:!0,className:"!text-muted hover:!text-primary",size:"xs",tooltipSide:a?"bottom":void 0,icon:"playing"===o?"Pause":"Speaker","data-testid":"action-bar-read-aloud","aria-label":d,onClick:l})}),Bie="end_conversation";function qie(e){return null==e||!0===e.end_conversation}function Wie(e){return e?.some(e=>"tool_result"===e.type&&e.name===Bie&&qie(e.structured_content))??!1}function $ie(e){return EU(e.trim(),{extensions:[ip()],htmlExtensions:[{enter:{table(e){const t=e._align;this.lineEndingIfNeeded(),this.tag("<table>"),this.setData("tableAlign",t)},tableBody(){this.tag("<tbody>")},tableData(){const e=this.getData("tableAlign"),t=this.getData("tableColumn"),s=RU[e[t]];void 0===s?this.buffer():(this.lineEndingIfNeeded(),this.tag("<td"+s+">"))},tableHead(){this.lineEndingIfNeeded(),this.tag("<thead>")},tableHeader(){const e=this.getData("tableAlign"),t=this.getData("tableColumn"),s=RU[e[t]];this.lineEndingIfNeeded(),this.tag("<th"+s+">")},tableRow(){this.setData("tableColumn",0),this.lineEndingIfNeeded(),this.tag("<tr>")}},exit:{codeTextData(e){let t=this.sliceSerialize(e);this.getData("tableAlign")&&(t=t.replace(/\\([\\|])/g,DU)),this.raw(this.encode(t))},table(){this.setData("tableAlign"),this.setData("slurpAllLineEndings"),this.lineEndingIfNeeded(),this.tag("</table>")},tableBody(){this.lineEndingIfNeeded(),this.tag("</tbody>")},tableData(){const e=this.getData("tableAlign"),t=this.getData("tableColumn");t in e?(this.tag("</td>"),this.setData("tableColumn",t+1)):this.resume()},tableHead(){this.lineEndingIfNeeded(),this.tag("</thead>")},tableHeader(){const e=this.getData("tableColumn");this.tag("</th>"),this.setData("tableColumn",e+1)},tableRow(){const e=this.getData("tableAlign");let t=this.getData("tableColumn");for(;t<e.length;)this.lineEndingIfNeeded(),this.tag("<td"+RU[e[t]]+"></td>"),t++;this.setData("tableColumn",t),this.lineEndingIfNeeded(),this.tag("</tr>")}}}]})}const Gie=fn(()=>a(()=>import("./c6eedc03a-DlITaMAG.js").then(e=>e.C),__vite__mapDeps([0,1]),import.meta.url).then(e=>e.ChatMessageDebugModal),{});function Kie({isStreaming:e,isLastMessage:s,isInteractive:n,isAssistant:a,children:i,positionMode:r="absolute",isAgentMode:o=!1}){if("flow"===r){const n=a&&e;return t.jsx("div",{"data-message-action-bar":"",className:dt("flex justify-start",a&&"ml-0.5",n&&(o?"hidden":"invisible"),!s&&!n&&tie),children:t.jsx("div",{className:"text-text-300",children:i})})}return t.jsx(nA,{children:!e&&t.jsx(sA.div,{className:"absolute bottom-0 right-2 pointer-events-none",initial:Yie,animate:Qie,transition:Jie,children:t.jsx("div",{className:dt("rounded-lg transition min-w-max pointer-events-auto",a?"translate-x-2":"translate-y-4 bg-bg-100/80 backdrop-blur-sm translate-x-1 group-hover:translate-x-0.5 group-focus-within:translate-x-0.5 border-0.5 border-border-300 p-0.5 shadow-sm",s?"translate-y-full pt-2":"opacity-0 group-hover:opacity-100 group-focus-within:opacity-100 pointer-coarse:opacity-100"),children:i})})})}const Yie={scale:.95},Qie={scale:1},Jie={type:"spring",damping:30,stiffness:400},Xie=e.memo(function({message:s,previousMessage:n,conversationUuid:a,isConversationStreaming:i,isTemporary:r=!1,onRetry:o,isLastMessage:l,isLastHumanMessage:c,isInteractive:d=!0,changeDisplayedConversationPath:u,editMessage:m,editable:p=!1,isResearchPending:f,showArtifacts:g=!1,chatFeedbackEnabled:h,isRemoteAgentMode:C,positionMode:x="absolute",timestamp:v,fullTimestamp:b,hideActionBar:k=!1,onRewindToMessage:w}){const{track:M}=ae(),_=JS(),j=eie(),S="human"===s.sender,L="assistant"===s.sender,N=Km(a,{enabled:l||c}),I=i??N,T=I&&l,A="local_session"===Me()?.type,E=C||A,R=xn()?.isExternalConversation??!1,D=y("anthropic_internal_only_expose_chat_debug"),H=rp(s.uuid,{enabled:L&&!T}),P=op(s.uuid,{enabled:L&&!T}),U=lp(s.parent_message_uuid,s.siblingUuids),O=H?void 0:U,F=O?.length??s.nOptions??0,V=!I&&F>1&&u&&!E,z=function(){const e=W("claudeai_answer_now_skipped_label"),t=e?.trim();return void 0===t||""===t?void 0:t}(),Z=(H||P)&&void 0!==z,B=Zm(a),q=S||!I&&!B,$=q&&!f&&p&&m&&d&&!s.sendFailed&&!B&&(E?A&&c&&!I:!!s.parent_message_uuid),G=Wie(s?.content),K=q&&!f&&d&&!G&&!E,Y=K&&S&&!l&&!s.pending&&!I&&!B,Q=S&&!!w&&E&&!I&&!s.sendFailed,J=S&&!!s.sendFailed,X=L&&A&&!I&&d,ee=Mae(),te=e.useCallback((e,t,s)=>{if(a&&cp.getState().byConversation[a])return;if(ee("retry"))return;M({event_key:"claudeai.message.user_triggered_retry",is_last_human_message:"assistant_message_footer"===e?l:c,source:e}),o(t,s)},[M,c,l,o,a,ee]),se=dp(e=>e.active);if(k||se)return null;const ne=L&&!T&&!f&&d&&"error"!==s.stop_reason&&h&&!r&&(A?t.jsx(rie,{message:s}):t.jsx(iie,{conversationUuid:a,message:s,agentMode:E}));return t.jsx(Kie,{isStreaming:T,isLastMessage:l,isInteractive:d,isAssistant:L,positionMode:x,isAgentMode:E,children:t.jsx(kN,{children:t.jsxs("div",{ref:j.ref,onKeyDown:j.onKeyDown,onFocus:j.onFocus,role:"toolbar","aria-label":_.formatMessage({defaultMessage:"Message actions",id:"8FU11i4S5Z"}),className:"text-text-300 flex select-none items-stretch justify-between",children:[S&&(E?!!s.created_at&&t.jsx(EP,{date:s.created_at,locale:_.locale,absoluteFormat:"datetime",tooltipSide:"bottom",className:dt("text-text-500 text-xs flex items-center mr-2",tie)}):v&&t.jsx(iN,{content:b,side:"bottom",children:t.jsx("span",{className:"text-text-500 text-xs flex items-center mr-2",children:v})})),S&&($||Y||Q)&&t.jsxs("div",{className:"flex items-center",children:[Y&&t.jsx(nre,{onRetry:te,messageUuid:s.uuid}),Q&&w&&t.jsx(rre,{onRewindToMessage:w,message:s}),$&&m&&t.jsx(are,{editMessage:m,message:s,agentMode:E})]}),(L||S)&&t.jsxs(t.Fragment,{children:[t.jsx(ire,{message:s,showArtifacts:g,agentMode:E}),J&&t.jsxs(t.Fragment,{children:[t.jsx(tre,{messageUuid:s.uuid,agentMode:E}),t.jsx(sre,{messageUuid:s.uuid,agentMode:E})]}),L&&t.jsx(Zie,{messageUuid:s.uuid,showArtifacts:g,agentMode:E})]}),ne,X&&t.jsx(aie,{messageUuid:s.uuid}),t.jsxs("div",{className:"flex items-center",children:[L&&K&&t.jsx(ore,{onRetry:te,parentMessageUuid:s.parent_message_uuid??void 0}),Z&&t.jsx(iN,{content:_.formatMessage({defaultMessage:"You skipped thinking for this response, so Claude answered directly.",id:"EVuDzeSeu3"}),children:t.jsx("span",{className:"ml-1 select-none self-center text-caption text-muted",children:z})}),V&&u&&t.jsx(lre,{message:s,changeDisplayedConversationPath:u,navigableIndices:O})]}),L&&E&&!!s.created_at&&t.jsx(EP,{date:s.created_at,locale:_.locale,absoluteFormat:"datetime",tooltipSide:"bottom",className:dt("text-text-500 text-xs flex items-center ml-1",tie)}),L&&D&&!E&&!R&&t.jsx(ere,{messageUuid:s.uuid,conversationUuid:a})]})})})},(e,t)=>e.message===t.message&&e.conversationUuid===t.conversationUuid&&e.isConversationStreaming===t.isConversationStreaming&&e.isTemporary===t.isTemporary&&e.onRetry===t.onRetry&&e.isLastMessage===t.isLastMessage&&e.isLastHumanMessage===t.isLastHumanMessage&&e.isInteractive===t.isInteractive&&e.changeDisplayedConversationPath===t.changeDisplayedConversationPath&&e.editMessage===t.editMessage&&e.editable===t.editable&&e.isResearchPending===t.isResearchPending&&e.showArtifacts===t.showArtifacts&&e.chatFeedbackEnabled===t.chatFeedbackEnabled&&e.isRemoteAgentMode===t.isRemoteAgentMode&&e.positionMode===t.positionMode&&e.timestamp===t.timestamp&&e.fullTimestamp===t.fullTimestamp&&e.hideActionBar===t.hideActionBar&&e.onRewindToMessage===t.onRewindToMessage),ere=e.memo(function({messageUuid:s,conversationUuid:n}){const[a,i]=e.useState(!1),r=JS();return t.jsxs(t.Fragment,{children:[t.jsx(rN,{variant:"ghost",iconOnly:!0,className:dt("!text-muted hover:!text-primary",tie),size:"xs",icon:"Wrench","aria-label":r.formatMessage({defaultMessage:"Debug",id:"z3UjXRZwzQ"}),onClick:()=>i(!0)}),t.jsx(Gie,{isOpen:a,onClose:()=>i(!1),messageUuid:s,conversationUuid:n})]})}),tre=e.memo(function({messageUuid:s,agentMode:n=!1}){const a=JS(),i=e.useCallback(()=>Oc.getState().retryFailedSend(s),[s]);return t.jsx(rN,{variant:"ghost",iconOnly:!0,className:"!text-muted hover:!text-primary",tooltipSide:n?"bottom":void 0,size:"xs",icon:"ArrowClockwise","data-testid":"failed-send-retry","aria-label":a.formatMessage({defaultMessage:"Retry",id:"62nsdyMyIO"}),onClick:i})}),sre=e.memo(function({messageUuid:s,agentMode:n=!1}){const a=JS(),i=e.useCallback(()=>{Oc.getState().discardFailedSend(s),a0.getState().clearFileNames(s)},[s]);return t.jsx(rN,{variant:"ghost",iconOnly:!0,className:"!text-muted hover:!text-primary",tooltipSide:n?"bottom":void 0,size:"xs",icon:"Trash","data-testid":"failed-send-discard","aria-label":a.formatMessage({defaultMessage:"Discard",id:"nmpevlUATU"}),onClick:i})}),nre=e.memo(function({onRetry:s,messageUuid:n}){const a=JS(),i=e.useCallback(()=>s("human_message_hover",n),[s,n]);return t.jsx(rN,{variant:"ghost",iconOnly:!0,className:"!text-muted hover:!text-primary",size:"xs",icon:"ArrowClockwise","aria-label":a.formatMessage({defaultMessage:"Retry",id:"62nsdyMyIO"}),onClick:i})}),are=e.memo(function({editMessage:s,message:n,agentMode:a=!1}){const i=JS(),r=e.useCallback(()=>s(n,"test edit message"),[s,n]);return t.jsx(rN,{variant:"ghost",iconOnly:!0,className:"!text-muted hover:!text-primary",tooltipSide:a?"bottom":void 0,size:"xs",icon:"Edit","data-testid":"action-bar-edit","aria-label":i.formatMessage({defaultMessage:"Edit",id:"wEQDC6Wv3/"}),onClick:r})}),ire=e.memo(function({message:s,showArtifacts:n,agentMode:a=!1}){const{didCopy:i,copyToClipboard:r}=xN(),o=e.useCallback(async()=>{const e=Ce.getState().messageByUuid[s.uuid]??s,t=Le(e),a=(n?ap(t):t).trim();try{const e=$ie(a);await r({text:a,html:e})}catch(i){await r(a)}},[n,s,r]),l=JS();return t.jsx(rN,{variant:"ghost",iconOnly:!0,className:"!text-muted hover:!text-primary",size:"xs",tooltipSide:a?"bottom":void 0,"data-testid":"action-bar-copy","aria-label":l.formatMessage({defaultMessage:"Copy",id:"4l6vz1/eZ5"}),onClick:o,icon:t.jsxs("span",{className:"relative",children:[t.jsx($L,{name:"Copy",size:"sm",className:dt("transition-all",i?"opacity-0 scale-50":"opacity-100 scale-100")}),t.jsx($L,{name:"Check",size:"sm",className:dt("absolute inset-0 transition-all",i?"opacity-100 scale-100":"opacity-0 scale-50")})]})})}),rre=e.memo(function({onRewindToMessage:s,message:n}){const a=JS(),i=e.useCallback(()=>s(n),[s,n]);return t.jsx(rN,{variant:"ghost",iconOnly:!0,className:"!text-muted hover:!text-primary",tooltipSide:"bottom",size:"xs",icon:"ArrowCounterClockwise","aria-label":a.formatMessage({defaultMessage:"Restart conversation from here",id:"lHlImYcnSM"}),onClick:i})}),ore=e.memo(function({onRetry:s,parentMessageUuid:n}){const a=JS(),i=e.useCallback(()=>s("assistant_message_footer",n),[s,n]);return t.jsx(rN,{variant:"ghost",iconOnly:!0,className:"!text-muted hover:!text-primary",size:"xs",icon:"ArrowClockwise","data-testid":"action-bar-retry","aria-label":a.formatMessage({defaultMessage:"Retry",id:"62nsdyMyIO"}),onClick:i})}),lre=e.memo(function({message:s,changeDisplayedConversationPath:n,navigableIndices:a}){const i=s.selectedOption??0,r=a?.indexOf(i)??-1,o=-1!==r?r+1:i+1,l=a&&-1!==r?a.length:s.nOptions??0,c=a&&r>0?a[r-1]:i-1,d=a&&-1!==r&&r<a.length-1?a[r+1]:i+1,u=o<=1,m=o>=l,p=JS(),f=e.useCallback(()=>n(s,c-i),[n,s,c,i]),g=e.useCallback(()=>n(s,d-i),[n,s,d,i]);return t.jsxs("div",{className:"inline-flex items-center gap-1",children:[t.jsx(rN,{variant:"ghost",iconOnly:!0,className:"!text-muted hover:!text-primary !w-6",size:"xs",icon:"CaretLeft",disabled:u,"aria-label":p.formatMessage({defaultMessage:"Previous version",id:"nZObrEhD3u"}),onClick:f}),t.jsx("span",{className:"self-center shrink-0 select-none font-small text-muted",children:t.jsx(XS,{defaultMessage:"{selectedOption} / {totalOptions}",id:"0zCqdBEnn7",values:{selectedOption:o,totalOptions:l}})}),t.jsx(rN,{variant:"ghost",iconOnly:!0,className:"!text-muted hover:!text-primary !w-6",size:"xs",icon:"CaretRight",disabled:m,"aria-label":p.formatMessage({defaultMessage:"Next version",id:"vfItgW2tkJ"}),onClick:g})]})});function cre(e){return`cowork-flags:v1:${e}`}function dre(e){try{const t=window.localStorage.getItem(cre(e));if(!t)return null;const s=JSON.parse(t);return"object"==typeof s&&null!==s&&Array.isArray(s.flags)?s:null}catch{return null}}function ure(t,s){const{activeOrganization:n}=v(),a=n?.uuid,i=ke("cowork"),r=e.useMemo(()=>t.map(e=>`/api/organizations/${a}/cowork/messages/${e}/safety_flags`),[t,a]),o=e.useMemo(()=>t.map(e=>["cowork-safety-flags",e]),[t]),l=up(r,{queryKey:o,enabled:i.isAvailable&&!!a&&t.length>0,staleTime:1/0,refetchOnWindowFocus:!1,retry:!1,meta:{noToast:!0}});e.useEffect(()=>{if(0===l.length||l.some(e=>e.isLoading))return;let e=!1;l.forEach((s,n)=>{const a=t[n];dre(a)||s.isSuccess&&Array.isArray(s.data?.flags)&&s.data.flags.length>0&&(!function(e,t){try{window.localStorage.setItem(cre(e),JSON.stringify(t))}catch{}}(a,s.data),e=!0)}),e&&s()},[l,t,s])}const mre=e.memo(function({message:e,conversationUuid:s,isStreaming:n}){const a=function(e){return"assistant"===e.sender&&(e.content?.some(e=>"flags"in e&&Array.isArray(e.flags)&&e.flags.includes("csae"))??!1)}(e);return!a||n?null:t.jsx(pre,{message:e,conversationUuid:s})});function pre({message:s,conversationUuid:n}){const{track:a}=ae(),i=y("career_focused"),r=i?"career":"base",o=e.useMemo(()=>({variant:r}),[r]),{isDismissed:l,handleDismiss:c}=mp({conversationUuid:n,messageUuid:s.uuid,flagName:"csae",viewedEventKey:"claudeai.safety.csae_banner.viewed",dismissedEventKey:"claudeai.safety.csae_banner.dismissed",hasFlag:!0,isStreaming:!1,extraTrackingFields:o}),d=e.useCallback(()=>{a({event_key:"claudeai.safety.csae_banner.link_clicked",conversation_uuid:n,message_uuid:s.uuid,variant:r})},[n,s.uuid,r,a]);return l?null:t.jsx(fre,{careerFocused:i,onDismiss:c,onLinkClick:d})}function fre({careerFocused:e,onDismiss:s,onLinkClick:n}){const a=`https://www.stopitnow.org.uk/self-help/concerned-about-your-own-thoughts-or-behaviour/?utm_source=Anthropic&utm_medium=warning_message&utm_campaign=${e?"Anthropic_career_warning":"Anthropic_main_warning"}`;return t.jsx("div",{className:"mb-3 mt-3",children:t.jsx(ea,{icon:t.jsx(ge,{asset:pp,size:"sm"}),action:t.jsx(rN,{size:"sm",variant:"secondary",href:a,target:"_blank",onClick:n,children:t.jsx(XS,{defaultMessage:"Get support",id:"Km7x3vvEGf"})}),onDismiss:s,children:e?t.jsx(XS,{defaultMessage:"Acting on sexual urges involving children can end your career. If you are worried about your behavior, you are not alone. Stop It Now offers anonymous, confidential support.",id:"Y0voiqVTwS"}):t.jsx(XS,{defaultMessage:"If you are struggling with sexual thoughts or urges towards children, support is available. Access resources and anonymous, confidential help from Stop It Now.",id:"j0Fx/nknPE"})})})}const gre=e.memo(function({message:s,conversationUuid:n,isStreaming:a}){const{track:i}=ae(),r=function(e){return"assistant"===e.sender&&(e.content?.some(e=>"flags"in e&&Array.isArray(e.flags)&&e.flags.includes("election"))??!1)}(s),o=function(e){if("assistant"!==e.sender)return null;for(const t of e.content??[]){if("flag"===t.type&&"election"===t.flag&&t.helpline)return t.helpline;if("flags"in t&&Array.isArray(t.flags)&&t.flags.includes("election")&&"helpline"in t&&null!==t.helpline&&void 0!==t.helpline)return t.helpline}return null}(s),{isDismissed:l,handleDismiss:c}=mp({conversationUuid:n,messageUuid:s.uuid,flagName:"election",viewedEventKey:"claudeai.safety.election_banner.viewed",dismissedEventKey:"claudeai.safety.election_banner.dismissed",hasFlag:r,isStreaming:a}),d=e.useCallback(()=>{i({event_key:"claudeai.safety.election_banner.link_clicked",conversation_uuid:n,message_uuid:s.uuid})},[n,s.uuid,i]);return!r||l||a?null:t.jsx(hre,{helpline:o,onDismiss:c,onLinkClick:d})});function hre({helpline:e,onDismiss:s,onLinkClick:n}){const a=e?.url??"https://anthropic.turbovote.org/",i=e?.url?e.name??"TurboVote by Democracy Works":"TurboVote by Democracy Works";return t.jsx("div",{className:"mb-3 mt-3",children:t.jsx(ea,{icon:t.jsx(ge,{asset:MA,size:"sm"}),onDismiss:s,children:t.jsx(XS,{defaultMessage:"Claude's election info may be outdated. To get reliable, up-to-date voting information, <link>visit {helplineName}</link>.",id:"AaZmxMduZZ",values:{helplineName:i,link:e=>t.jsx("a",{href:a,target:"_blank",rel:"noopener noreferrer",onClick:n,className:"underline underline-offset-[3px] [&:not(:is(:hover,:focus))]:decoration-[color-mix(in_srgb,currentColor,transparent_60%)]",children:e})}})})})}const Cre=e.createContext(null),xre=[];function vre({sessionId:s,conversationUuid:n,isSessionActive:a,isLoadingInitialMessages:i,messages:r,children:o}){const l=y("cowork_safety_banners"),[c,d]=e.useReducer(e=>e+1,0),u=hp(n),m=Cp(n),p=e.useMemo(()=>r?r.map(e=>e.uuid):u,[r,u]),f=r?r[r.length-1]?.sender:m?.sender,g=a&&"assistant"===f,h=e.useRef(null),C=e.useRef(!1),x=e.useRef(xre),v=e.useRef(s);v.current!==s&&(v.current=s,h.current=null,C.current=!1);ure(e.useMemo(()=>{if(i&&(C.current=!0),!l||i)return x.current;const e=g?-1:void 0,t=r?r.slice(0,e).flatMap(e=>e.apiMessageIds??[]):p.slice(0,e).flatMap(e=>Ce.getState().messageByUuid[e]?.apiMessageIds??[]);if(null===h.current)return 0!==t.length||C.current||0!==p.length?(h.current=new Set(t),x.current):x.current;const s=h.current,n=t.filter(e=>!s.has(e));return 0===n.length||(n.forEach(e=>s.add(e)),x.current=[...x.current,...n]),x.current},[l,r,p,g,i]),d);const b=e.useMemo(()=>({sessionId:s,cacheVersion:c}),[s,c]);return t.jsx(Cre.Provider,{value:b,children:o})}const yre=e.memo(({apiMessageIds:s,isStreaming:n})=>{const a=e.useContext(Cre);return a&&s&&0!==s.length?t.jsx(bre,{sessionId:a.sessionId,cacheVersion:a.cacheVersion,apiMessageIds:s,isStreaming:n}):null});function bre({sessionId:s,cacheVersion:n,apiMessageIds:a,isStreaming:i}){const r=e.useMemo(()=>function(e){const t=[],s=[],n=[];for(const a of e){const e=dre(a);if(e)for(const i of e.flags){const e={apiMessageId:a,helpline:i.helpline??null};"self_harm_risk"===i.type?t.push(e):"election"===i.type?s.push(e):"csae"===i.type&&n.push(e)}}return{selfHarmRisk:t,election:s,csae:n}}(a),[a,n]);return i?null:t.jsxs(t.Fragment,{children:[r.selfHarmRisk.length>0&&t.jsx(_re,{sessionId:s,hits:r.selfHarmRisk,flagType:"self_harm_risk",viewedEventKey:"claudeai.safety.self_harm_banner.viewed",dismissedEventKey:"claudeai.safety.self_harm_banner.dismissed",linkClickedEventKey:"claudeai.safety.self_harm_banner.resources_clicked",children:({onDismiss:e,onLinkClick:s,trackingFields:n})=>{const a=r.selfHarmRisk[0].helpline;return a?t.jsx(fp,{helpline:a,onDismiss:e,trackingFields:n}):t.jsx(gp,{onDismiss:e,onLinkClick:s})}}),r.election.length>0&&t.jsx(_re,{sessionId:s,hits:r.election,flagType:"election",viewedEventKey:"claudeai.safety.election_banner.viewed",dismissedEventKey:"claudeai.safety.election_banner.dismissed",linkClickedEventKey:"claudeai.safety.election_banner.link_clicked",children:({onDismiss:e,onLinkClick:s})=>t.jsx(hre,{helpline:r.election[0].helpline,onDismiss:e,onLinkClick:s})}),r.csae.length>0&&t.jsx(kre,{sessionId:s,hits:r.csae})]})}function kre({sessionId:e,hits:s}){const n=y("career_focused");return t.jsx(_re,{sessionId:e,hits:s,flagType:"csae",viewedEventKey:"claudeai.safety.csae_banner.viewed",dismissedEventKey:"claudeai.safety.csae_banner.dismissed",linkClickedEventKey:"claudeai.safety.csae_banner.link_clicked",extraTrackingFields:{variant:n?"career":"base"},children:({onDismiss:e,onLinkClick:s})=>t.jsx(fre,{careerFocused:n,onDismiss:e,onLinkClick:s})})}function wre(e,t){return`cowork-safety-dismissed:${e}:${t}`}function Mre(e,t){try{return"1"===window.localStorage.getItem(wre(e,t))}catch{return!1}}function _re({sessionId:t,hits:s,flagType:n,viewedEventKey:a,dismissedEventKey:i,linkClickedEventKey:r,extraTrackingFields:o,children:l}){const{track:c}=ae(),d=e.useMemo(()=>s.map(e=>e.apiMessageId).sort().join(","),[s]),[u,m]=e.useState(()=>Mre(d,n)),p=e.useRef(!1);e.useEffect(()=>{m(Mre(d,n)),p.current=!1},[d,n]);const f=e.useMemo(()=>({surface:"cowork",session_id:t,api_message_ids:s.map(e=>e.apiMessageId),...o}),[t,s,o]);e.useEffect(()=>{u||p.current||(c({event_key:a,...f}),p.current=!0)},[u,a,f,c]);const g=e.useCallback(()=>{c({event_key:i,...f}),function(e,t){try{window.localStorage.setItem(wre(e,t),"1")}catch{}}(d,n),m(!0)},[d,n,i,f,c]),h=e.useCallback(()=>{c({event_key:r,...f})},[r,f,c]);return u?null:l({onDismiss:g,onLinkClick:h,trackingFields:f})}yre.displayName="CoworkSafetyBanner";e.memo(function({conversationUuid:s,lastMessageUuid:n}){const a=ae(),{setPrompt:i,focusInput:r}=xp(),{data:o}=function({conversationUuid:e,lastMessageUuid:t}){const{activeOrganization:s,account:n}=v(),a=s?.uuid,i=M(),r=y("chat_follow_up_chips_main"),o=_(),l=r&&(n?.settings?.enable_chat_suggestions??!0)&&!o.claudeai_chat_continuations;return pL({queryKey:["chat-continuations",a,e,t],queryFn:async()=>{const t=await i(`/api/organizations/${a}/dust/chat_continuations`,{method:"POST",body:JSON.stringify({conversationUUID:e})});return j(t,"Failed to fetch follow-up suggestions."),await t.json()},enabled:l&&!!a&&!!e&&!!t,select:e=>l?e:[],staleTime:1/0,gcTime:3e5,retry:!1,meta:{noToast:!0}})}({conversationUuid:s,lastMessageUuid:n}),l=o?.slice(0,3),c=e.useRef(null);e.useEffect(()=>{l?.length&&c.current!==n&&(c.current=n,a.track({event_key:"claudeai.chat.follow_up_suggestions.shown",conversation_uuid:s,chip_count:l.length}))},[a,l?.length,s,n]);const d=e.useCallback((e,t)=>{a.track({event_key:"claudeai.chat.follow_up_suggestions.clicked",conversation_uuid:s,chip_index:t,chip_type:e.type}),i(e.longform,{forceUpdateTiptap:!0,unsafe:Aa(e.longform)}),r?.()},[a,s,r,i]);return l?.length?t.jsx("div",{role:"group","aria-label":"Suggested follow-up prompts",className:"mt-3 flex flex-wrap gap-2","data-testid":"follow-up-suggestions",children:l.map((e,s)=>t.jsx("button",{type:"button",onClick:()=>d(e,s),className:"border-0.5 border-border-300 bg-bg-000 text-text-200 hover:bg-bg-100 hover:text-text-100 hover:border-border-200 rounded-lg px-3 py-2 text-left text-sm transition-colors active:scale-[0.98]",children:e.shortform},`${n}-${s}`))}):null});function jre(){const s=ae(),{initDriveAuth:n}=fE({});e.useEffect(()=>{Wz("gdrive","postsend"),s.track({event_key:"claudeai.in_chat_upsell.connect_gdrive.displayed"})},[s]);return t.jsx(Sre,{title:t.jsx(XS,{defaultMessage:"Add context from all your docs more easily",id:"gHPka72Ai9"}),icon:t.jsx(ZR,{size:18}),cta:t.jsx(rN,{size:"sm",variant:"secondary",icon:t.jsx(vp,{size:16}),onClick:()=>{s.track({event_key:"claudeai.in_chat_upsell.connect_gdrive.start"}),n()},children:t.jsx(XS,{defaultMessage:"Connect Drive",id:"XzTB2bvNw1"})})})}function Sre({title:e,icon:s,cta:n}){return t.jsx(sA.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.3},className:"mt-3",children:t.jsx("div",{className:"overflow-hidden rounded-lg border-0.5 border-border-300 bg-bg-100 shadow-sm",children:t.jsx("div",{className:"px-2.5 py-2.5",children:t.jsxs("div",{className:"flex items-center justify-between gap-3",children:[t.jsxs("div",{className:"flex items-center gap-1",children:[t.jsx("div",{className:"rounded-lg bg-primary-100 p-1",children:s}),t.jsx("h3",{className:"text-sm text-text-100",children:e})]}),n]})})})})}function Lre({previousMessage:s}){const n=y("ef_chat_banner_placement"),a=y("cowork_upsell_banner"),i=he("c4excel_chat_banner_upsell","value",!1,L),{isDismissed:r}=me(),o=a&&!r("cowork_upsell_banner"),l=i&&!r("c4excel_chat_banner_upsell"),c=!r("c4ppt_chat_banner_upsell"),d=xe()&&!r("c4word_chat_banner_upsell"),u=kE(),{serverId:m}=wE(),{isDriveAuthenticated:p}=fE({}),f=e.useMemo(()=>!!s&&s.attachments.some(e=>"docx"===e.file_type),[s]);return n||o||l||c||d?null:u&&m&&!p&&f?t.jsx(jre,{}):null}const Nre=e.memo(function({conversationUuid:s,lastMessageUuid:n,messageIndex:a}){const i=ae(),{setPrompt:r,focusInput:o}=xp(),{activeOrganization:l,account:c}=v(),d=l?.uuid,u=M(),m=_(),p=ii(),f=we(),{count:g,isExact:h,isLoading:C,isError:x}=yp(),y=c?.settings?.enable_chat_suggestions??!0,b=ce("chat_follow_up_chips_main",!1),k=p&&!f&&!b&&y&&!m.claudeai_chat_continuations&&!C&&!x&&h&&g<=3&&(a??1/0)<=5,w=ce("claudified_followup_chips_onboarding_experiment",k),{data:S}=pL({queryKey:["onboarding-chat-continuations",d,s,n],queryFn:async()=>{const e=await u(`/api/organizations/${d}/dust/chat_continuations`,{method:"POST",body:JSON.stringify({conversationUUID:s})});return j(e,"Failed to fetch follow-up suggestions."),await e.json()},enabled:w&&!!d&&!!n,select:e=>w?e:[],staleTime:1/0,gcTime:3e5,retry:!1,meta:{noToast:!0}}),L=S?.slice(0,3),N=e.useRef(null);e.useEffect(()=>{L?.length&&N.current!==n&&(N.current=n,i.track({event_key:"claudeai.chat.follow_up_suggestions.shown",conversation_uuid:s,chip_count:L.length}))},[i,L?.length,s,n]);const I=e.useCallback((e,t)=>{i.track({event_key:"claudeai.chat.follow_up_suggestions.clicked",conversation_uuid:s,chip_index:t,chip_type:e.type}),r(e.longform,{forceUpdateTiptap:!0,unsafe:Aa(e.longform)}),o?.()},[i,s,o,r]);return L?.length?t.jsx("div",{role:"group","aria-label":"Suggested follow-up prompts",className:"mt-3 flex flex-wrap gap-2","data-testid":"onboarding-follow-up-suggestions",children:L.map((e,s)=>t.jsx("button",{type:"button",onClick:()=>I(e,s),className:"border-0.5 border-border-300 bg-bg-000 text-text-200 hover:bg-bg-100 hover:text-text-100 hover:border-border-200 rounded-lg px-3 py-2 text-left text-sm transition-colors active:scale-[0.98]",children:e.shortform},`${n}-${s}`))}):null});function Ire({title:e,text:s}){const n=JS();e=e||n.formatMessage({defaultMessage:"Untitled note",id:"fkEfiUjl/t"}),s=s||"";const{didCopy:a,copyToClipboard:i}=xN();return t.jsxs("div",{className:"group relative mt-4 mb-1 rounded-2xl border-[hsl(var(--border-300)/0.25)] border font-claude-response-body",children:[t.jsxs("div",{className:"pt-1 pb-1 px-3 border-b-0.5 border-[hsl(var(--border-300)/0.25)] font-semibold flex justify-between items-center",children:[t.jsx("span",{className:"flex-1",children:e}),t.jsx(rN,{variant:"ghost",size:"sm",iconOnly:!0,icon:a?"Check":"Copy","aria-label":a?n.formatMessage({defaultMessage:"Copied",id:"p556q3uvbn"}):n.formatMessage({defaultMessage:"Copy",id:"4l6vz1/eZ5"}),onClick:async()=>{const t=e+"\n"+s;try{const e=$ie(t);await i({text:t,html:e})}catch(n){await i(t)}}})]}),t.jsx(gn,{className:"px-4 pt-2 pb-4",children:s})]})}function Tre(e){return e.replace(/^computer:\/\//,"").startsWith("/sessions/")}const Are=new Set(["INVALID_SESSION","INVALID_PATH","PATH_TRAVERSAL","BLOCKED_EXTENSION","PATH_NOT_ALLOWED","USER_DENIED","FILE_READ_ERROR","FILE_WRITE_ERROR","FILE_OPEN_ERROR","VM_UNAVAILABLE"]);function Ere(e,t,s){const n=function(e){if(!(e instanceof Error))return;const t=e.message.match(/LocalFileAccessError: \[([A-Z_]+)\]/);return t&&Are.has(t[1])?t[1]:void 0}(e);if(n&&e instanceof Error&&(e.code=n,e.name="LocalFileAccessError"),n)switch(n){case"USER_DENIED":return t.formatMessage({defaultMessage:"File access was denied.",id:"uXoBCKm0ys"});case"BLOCKED_EXTENSION":return t.formatMessage({defaultMessage:"This file type cannot be opened.",id:"z7AnVbQ0rh"});case"PATH_NOT_ALLOWED":return t.formatMessage({defaultMessage:"File is outside allowed folders.",id:"RzL2CtHKXp"});case"FILE_READ_ERROR":return t.formatMessage({defaultMessage:"File could not be read.",id:"UyWyQn/88m"});case"FILE_WRITE_ERROR":return t.formatMessage({defaultMessage:"File could not be saved.",id:"rQqW2V2Nvh"});case"FILE_OPEN_ERROR":return t.formatMessage({defaultMessage:"File could not be opened.",id:"AvzR+WuOGF"});case"VM_UNAVAILABLE":return t.formatMessage({defaultMessage:"Unable to access file in virtual environment.",id:"AVGRJcgMbU"})}switch(s){case"showInFolder":return t.formatMessage({defaultMessage:"Unable to show file in folder.",id:"h7CrEtBxuD"});case"read":return t.formatMessage({defaultMessage:"Unable to read file.",id:"UDzVMLRS83"});default:return t.formatMessage({defaultMessage:"Unable to open file.",id:"2IdpXcmaL/"})}}function Rre(e){const t=e.replace(/\/+/g,"/");return t.startsWith("/")?t:`/${t}`}function Dre(e){return""===e||e.startsWith("#f=")||e.startsWith("#p=")}let Hre;function Pre(){const e=Hre;return Hre=void 0,e}function Ure(){Hre=void 0}function Ore(e){const t=e.split("/").filter(Boolean).pop()??e;return(t.includes(".")?t.slice(0,t.lastIndexOf(".")):t).split(/[-_]/).filter(Boolean).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}function Fre(e){const t=e.split(/\r?\n/);if(0===t.length||"---"!==t[0].trim())return{description:"",name:"",body:e};let s="",n="";for(let a=1;a<t.length;a++){const e=t[a].trim();if("---"===e){const e=""===t[a+1]?.trim()?a+2:a+1;return{description:s,name:n,body:t.slice(e).join("\n")}}e.startsWith("description:")?s=e.slice(12).trim():e.startsWith("name:")&&(n=e.slice(5).trim())}return{description:"",name:"",body:e}}function Vre(e){return e.replace(/[ \t]*\[(?:observed|inferred|stated)(?:\s+\d{4}-\d{2}-\d{2})?\]/gi,"")}function zre(e,t){const s=t.replace(/^\s+/,"");if(e)return{headline:e,body:s};const n=s.indexOf("\n");if(-1===n)return{headline:s.replace(/^#+\s*/,""),body:""};return{headline:s.slice(0,n).replace(/^#+\s*/,"").trim(),body:s.slice(n+1).replace(/^\s+/,"")}}function Zre(e){if(e.parsed)return{...zre(e.parsed.description??"",e.parsed.body??""),name:e.parsed.name??""};if(void 0===e.content)return null;const{description:t,name:s,body:n}=Fre(e.content);return{...zre(t,Vre(n)),name:s}}function Bre(e){switch(e){case"memory_read":return"This memory couldn't be read.";case"memory_write":return"Memory update failed.";case"memory_delete":return"This memory couldn't be deleted.";case"memory_search":return"Couldn't search memories.";case"memory_list":return"Couldn't list memories.";default:return"Memory action failed."}}const qre="advanced",Wre=["enabled_web_search","enabled_bananagrams","enabled_sourdough","enabled_foccacia"];function $re(e){return e===qre}function Gre({toolToIgnore:e,currentStates:t,isolationBlocksMcp:s,isolationBlocksWebSearch:n}){let a=0;for(const i of Wre)i!==e&&("enabled_web_search"===i&&n||t[i]&&a++);return!s&&t.enabled_mcp_tools&&Object.values(t.enabled_mcp_tools).some(e=>!!e)&&a++,a}function Kre({remainingToolCount:e,compassMode:t}){return 0===e&&$re(t)}function Yre(e){const{toggleConversationSetting:t,batchToggleConversationSettings:s,batchToggleConversationSettingsAsync:n}=Qe({source:"settingsCoordinator"}),a=Fe("compass_mode"),i=ke("web_search").isAvailable,{blocksWebSearch:r,blocksMcp:o}=bp(),l=aB(e),{addSuccess:c}=ut(),d=JS(),u=Fe("enabled_web_search"),m=Fe("enabled_bananagrams"),p=Fe("enabled_sourdough"),f=Fe("enabled_foccacia"),g=Fe("enabled_mcp_tools");return{toggleSearchTool:(e,n)=>{if(n)return void t(e,n);if(Kre({remainingToolCount:Gre({toolToIgnore:e,currentStates:{enabled_web_search:u??!1,enabled_bananagrams:m??!1,enabled_sourdough:p??!1,enabled_foccacia:f??!1,enabled_mcp_tools:g},isolationBlocksMcp:o,isolationBlocksWebSearch:r}),compassMode:a})){s({compass_mode:null,[e]:!1})}else t(e,n)},toggleSearchToolAsync:async(e,t,s)=>{const i=Gre({toolToIgnore:e,currentStates:{enabled_web_search:u??!1,enabled_bananagrams:m??!1,enabled_sourdough:p??!1,enabled_foccacia:f??!1,enabled_mcp_tools:g},isolationBlocksMcp:o,isolationBlocksWebSearch:r});if(!t&&Kre({remainingToolCount:i,compassMode:a})){const t={compass_mode:null,[e]:!1};await n(t,{signal:s?.signal})}else await n({[e]:t},{signal:s?.signal})},toggleResearchMode:e=>{if(!e)return void t("compass_mode",null);const n=!r&&function(e,t,s){return!e&&t&&!$re(s)}(l,i,a);n?(s({enabled_web_search:!0,compass_mode:qre}),c(d.formatMessage({defaultMessage:"Web search enabled automatically for Research",id:"ss4xBdPHtN"}))):t("compass_mode",qre)},canAutoEnableWebSearch:!l&&i&&!r,toggleConversationSetting:t,batchToggleConversationSettings:s}}function Qre(t={}){const s=JS();return e.useMemo(()=>({disabled:!0,tooltip:s.formatMessage({defaultMessage:"Select a different model to use this feature",id:"/9vSDy2Wm0"}),...t}),[s,t])}function Jre({text:e,className:s}){return e?t.jsx("span",{className:dt("flex-initial text-right shrink text-ellipsis break-words whitespace-nowrap min-w-0 overflow-hidden text-footnote text-muted !leading-4",s),children:e}):null}const Xre=t.jsx(gU,{size:20});function eoe(){const{conversation:e}=rd(),{model:t}=Mp(),s=Fe("compass_mode"),n=eB(),a=_p(),i=nB(),r=e??void 0,o=aB(r),l=rr(e?.id||null),c=t??l,d=sB()(c),u=sB()(l),{canAutoEnableWebSearch:m}=Yre(r),p=za(),f=!e&&!d&&u;let g=!1,h=!1;return p||a?g=!0:i&&(o||m)?d||f||(h=!0):g=!0,{checked:"advanced"===s,disabled:g,isModelIncompatible:h,shouldHide:!n&&!a,switchToDefaultModelUponEnabling:f,isAgentModeActive:p,isHaystackProject:a,searchToolsAllowed:i,searchToolsEnabled:o,canAutoEnableWebSearch:m}}function toe({initialValue:t,switchToDefaultModelUponEnabling:s,isModelIncompatible:n}){const{conversation:a}=rd(),{setModel:i}=Mp(),r=rr(a?.id||null),o=a??void 0,{toggleResearchMode:l}=Yre(o);return e.useCallback(()=>{n||(s&&i(r),l(!t))},[t,r,i,s,l,n])}const soe=e.memo(function({variant:e,conversationUuid:s,onRetry:n}){const a=JS(),i="no_stop_reason"===e,r=Zm(s),o=r?a.formatMessage({defaultMessage:"Waiting for a previous response in this conversation to finish...",id:"LbkVUKh/it"}):void 0;return t.jsx("div",{className:"mt-2 pl-1",children:t.jsx(ea,{variant:i?"warning":"neutral",className:"w-full",action:n?t.jsx(iN,{multiline:!0,content:o,children:t.jsx("div",{children:t.jsx(rN,{variant:"secondary",size:"sm",disabled:r,onClick:n,children:t.jsx(XS,{defaultMessage:"Try again",id:"FazwRldA7z"})})})}):void 0,children:"user_canceled"===e?t.jsx(XS,{defaultMessage:"Claude's response was interrupted.",id:"rXXv7KtIgc"}):t.jsx(XS,{defaultMessage:"Claude couldn't finish this response. Try again in a moment.",id:"199jLdv0Og"})})})});function noe(){const{track:t}=ae(),s=OB();return e.useCallback(e=>{const{filepath:n,orgUuid:a,source:i}=e,r=n.replace("computer://","");t({event_key:"wiggle.file.downloaded",...PB({filePath:n,isShared:e.isShared,conversationUuid:e.isShared?void 0:e.conversationUuid,snapshotUuid:e.isShared?e.snapshotUuid:void 0,source:i})});const o=e.isShared?`/api/organizations/${a}/snapshots/${e.snapshotUuid}/wiggle/download-file`:`/api/organizations/${a}/conversations/${e.conversationUuid}/wiggle/download-file`,l=new URLSearchParams;l.append("path",r),s(`${o}?${l.toString()}`)},[t,s])}function aoe(){const{track:t}=ae(),s=OB();return e.useCallback(e=>{const{filepaths:n,orgUuid:a,source:i}=e,r=n.map(e=>e.replace("computer://","")).filter(t=>!e.isShared||t.startsWith("/mnt/user-data/"));t({event_key:"wiggle.file.downloaded_all",file_count:r.length,is_snapshot:e.isShared,source:i,conversation_uuid:e.isShared?null:e.conversationUuid,snapshot_uuid:e.isShared?e.snapshotUuid:null});const o=e.isShared?`/api/organizations/${a}/snapshots/${e.snapshotUuid}/wiggle/download-files`:`/api/organizations/${a}/conversations/${e.conversationUuid}/wiggle/download-files`,l=new URLSearchParams;for(const t of r)l.append("paths",t);s(`${o}?${l.toString()}`)},[t,s])}const ioe="mcp__cowork__update_artifact",roe="mcp__remote-devices__update_artifact";function ooe(e,t,s){return!e||s?()=>!1:e=>{const s=e;return"tool_use"===s?.type&&"string"==typeof s.name&&("mcp__cowork__create_artifact"===(n=s.name)||n===ioe||"mcp__remote-devices__create_artifact"===n||n===roe)&&function(e,t){const s=e?.device;return"string"!=typeof s||void 0!==t&&s===t}(s.input,t);var n}}const loe=AL({id:IL()});function coe(e){return e.trim().toLowerCase().replace(/\s+/g,"-").replace(/[^a-z0-9_-]/g,"").replace(/^[-_]+|[-_]+$/g,"")}const doe=e.memo(({isUpdate:s=!1,...n})=>{const{input:a}=n,i=HN(),{setIsDrawerExpanded:r}=DN(),o=loe.safeParse(a),l=o.success?coe(o.data.id):void 0,c=e.useCallback(()=>{l&&(i({type:"SELECT_COWORK_ARTIFACT",id:l}),r(!0))},[i,r,l]);if(!o.success||!l)return null;const{id:d}=o.data;return t.jsxs("button",{type:"button",onClick:c,className:"my-3 w-full border-0.5 border-border-300 rounded-lg overflow-hidden font-ui flex items-center gap-2 px-3 py-2.5 text-left hover:bg-bg-200 transition-colors compact:my-1.5 compact:px-2 compact:py-1.5",children:[t.jsx("div",{className:"w-5 h-5 flex items-center justify-center text-text-100 flex-shrink-0",children:t.jsx($L,{name:"Artifacts",size:"sm"})}),t.jsx("span",{className:"flex-1 min-w-0 truncate text-text-300 font-base",children:s?t.jsx(XS,{defaultMessage:"Updated artifact: {id}",id:"Ki+AgC/dcd",values:{id:t.jsx("span",{className:"font-base-bold text-text-200",children:d})}}):t.jsx(XS,{defaultMessage:"Created artifact: {id}",id:"jlfF0c1+Z/",values:{id:t.jsx("span",{className:"font-base-bold text-text-200",children:d})}})}),t.jsx($L,{name:"CaretRight",size:"sm",className:"text-text-400 flex-shrink-0"})]})});doe.displayName="CoworkArtifactToolUseCell";const uoe="path",moe=TL(["embed","new_window","browser"]);function poe(){const t=r(),s=jp(),{isAvailable:n}=ke("omelette"),a=Fm("desktop_design_entrypoint"),i=moe.safeParse(a?.openBehavior),o=i.success?i.data:"embed";return e.useCallback(e=>{if(n){if("embed"===o){const s=new URLSearchParams({[uoe]:e});return void t.push(`${Sp}?${s.toString()}`)}"new_window"===o&&s?window.open(e,"_blank","noopener"):window.open(ye(e),"_blank","noopener")}else window.open(ye(e),"_blank","noopener")},[t,o,s,n])}const foe=fT(e=>({byConversation:{},setDeliveredFileUuids:(t,s)=>e(e=>{const n=e.byConversation[t];if(n===s||!n&&0===s.size)return e;if(0===s.size){const s={...e.byConversation};return delete s[t],{byConversation:s}}if(n&&n.size===s.size){let t=!0;for(const[e,a]of s)if(n.get(e)!==a){t=!1;break}if(t)return e}return{byConversation:{...e.byConversation,[t]:s}}}),clearDeliveredFileUuids:t=>e(e=>{if(!(t in e.byConversation))return e;const s={...e.byConversation};return delete s[t],{byConversation:s}})})),goe=new Map;function hoe(){const t=Me(),s="local_session"===t?.type?t.sessionId:void 0,n=ga(s)?s:void 0,a=YK(n),i=(r=n,foe(e=>r?e.byConversation[r]??goe:goe));var r;return e.useCallback(e=>!n||Lp(e,R4(i,e),a),[n,i,a])}const Coe=new Set(["claude.ai","claude.com","preview.claude.ai","preview.claude.com"]);function xoe(e){if(e.startsWith("/code/session"))return e;if(!/^https?:\/\//i.test(e))return null;let t;try{t=new URL(e)}catch{return null}return Coe.has(t.host)&&t.pathname.startsWith("/code/session")?t.pathname+t.search+t.hash:null}function voe(e){return"/design"===e||e.startsWith("/design/")}function yoe(e){if(e.startsWith("/")&&!e.startsWith("//")){let t;try{t=new URL(e,"https://claude.ai")}catch{return null}return voe(t.pathname)?t.pathname+t.search+t.hash:null}if(!/^https?:\/\//i.test(e))return null;let t;try{t=new URL(e)}catch{return null}return Coe.has(t.host)&&voe(t.pathname)?t.pathname+t.search+t.hash:null}function boe(e){return"string"==typeof e&&!e.includes("..")&&!e.includes("%")&&e.startsWith("/mnt/user-data/mcp_spill/")}function koe(e){const t=[],s=new Set;for(const n of e.content??[])if("tool_result"===n.type&&"SendUserFile"===n.name)for(const e of m7({attachments:n.attachments}))e.file_uuid&&s.add(e.path);for(const n of e.content??[])if("tool_result"===n.type)if("present_files"!==n.name){for(const e of Array.isArray(n.content)?n.content:[])"local_resource"===e.type&&boe(e.file_path)&&t.push({path:e.file_path,isSpill:!0});if("Projects"===n.name&&!n.is_error){const e=d6(n.content);if("project_write"===e?.method&&"string"==typeof e.doc_uuid&&"string"==typeof e.path){if("string"==typeof e.local_path&&s.has(e.local_path))continue;t.push({path:`project://${e.path}`,openWith:{via:"project-doc",docUuid:e.doc_uuid},...!0===e.present_to_user?{presentToUser:!0}:{}})}}if("SendUserFile"===n.name){const e="render"===n.display||"attach"===n.display?n.display:void 0;for(const s of m7({attachments:n.attachments}))t.push({path:s.path,fileUuid:s.file_uuid,display:e})}}else for(const e of n.content)"local_resource"===e.type&&"string"==typeof e.file_path&&t.push({path:e.file_path});return t}function woe(e){const t=e.content?.length??0;return`present_files:${e.uuid}:${t}`}class Moe{constructor(){this.inCodeBlock=!1,this.codeBlockDelimiter="",this.inMathBlock=!1,this.inList=!1,this.listBlankPending=!1,this.inTable=!1,this.inBlockquote=!1,this.lastLineWasEmpty=!0}isInsideStructure(){return this.inCodeBlock||this.inMathBlock||this.inList||this.inTable||this.inBlockquote}processLine(e){const t=e.trim(),s=this.isInsideStructure(),n=this.inCodeBlock||this.inMathBlock;!t.startsWith("```")&&!t.startsWith("~~~")||this.inMathBlock||(this.inCodeBlock?t.startsWith(this.codeBlockDelimiter)&&(this.inCodeBlock=!1,this.codeBlockDelimiter=""):(this.inCodeBlock=!0,this.codeBlockDelimiter=t.substring(0,3))),"$$"!==t||this.inCodeBlock||(this.inMathBlock=!this.inMathBlock);const a=this.inCodeBlock||this.inMathBlock,i=!/^([-*_])(?:[ \t]*\1){2,}$/.test(t)&&/^(?:[-*+]|\d+[.)])(?:\s|$)/.test(t),r=/^\s/.test(e);let o=!1;i&&!a?(this.inList=!0,this.listBlankPending=!1):this.inList&&!n&&(""===t?this.listBlankPending=!0:r?this.listBlankPending=!1:this.listBlankPending&&(this.inList=!1,this.listBlankPending=!1,o=!0));t.includes("|")&&!a?this.inTable=!0:this.inTable&&""===t&&(this.inTable=!1);const l=t.startsWith(">");l&&!a?this.inBlockquote=!0:this.inBlockquote&&""===t&&!l&&(this.inBlockquote=!1);const c=this.lastLineWasEmpty;this.lastLineWasEmpty=""===t;const d=s&&!this.isInsideStructure()&&!o;return{insideStructure:this.isInsideStructure(),structureJustClosed:d,previousLineWasEmpty:c,listClosedBeforeThisLine:o}}reset(){this.inCodeBlock=!1,this.codeBlockDelimiter="",this.inMathBlock=!1,this.inList=!1,this.listBlankPending=!1,this.inTable=!1,this.inBlockquote=!1,this.lastLineWasEmpty=!0}}const _oe=(t,s)=>{const n=e.useMemo(()=>s?null:{completedChunks:t?[t]:[],streamingChunk:""},[t,s]),[a,i]=e.useState({completedChunks:[],streamingChunk:""}),r=e.useRef(null);return e.useEffect(()=>{if(!s)return;if(!t)return void i({completedChunks:[],streamingChunk:""});r.current||(r.current=new Moe);const e=t.split("\n"),n=[];let a=[],o=-1;r.current.reset();const l=e=>{for(;a.length>0&&""===a[a.length-1].trim();)a.pop();a.length>0&&(n.push(a.join("\n")),o=e,a=[])};for(let t=0;t<e.length;t++){const s=e[t],{insideStructure:n,structureJustClosed:i,previousLineWasEmpty:o,listClosedBeforeThisLine:c}=r.current.processLine(s);c&&l(t-1),a.push(s);(i||!n&&""===s.trim()&&a.length>1&&!o)&&l(t)}const c=e.slice(o+1).join("\n");i({completedChunks:n,streamingChunk:c})},[t,s]),n??a},joe=e.memo(({text:e,blockCitations:s=[],onLinkDetected:n,onCodeDetected:a,className:i,isStreaming:r=!1,onOpenArtifact:o,messageUuid:l,onLinkClick:c,headingLevelOffset:d,typography:u,onFirstPaint:m})=>t.jsx(Ct,{text:e,blockCitations:s,onLinkDetected:n,onCodeDetected:a,className:i,isStreaming:r,onOpenArtifact:o,messageUuid:l,onLinkClick:c,headingLevelOffset:d,typography:u,useStreamingFadeIn:!0,onFirstPaint:m}));joe.displayName="ProgressiveStandardMarkDown";const Soe=/^<review_comment id="([^"]*)" path="([^"]*)" offsets="(\d+)-(\d+)"(?: author_name="([^"]*)")?( from_collaborator="true")?>$/,Loe=/^<review_comment path="([^"]*)" lines="(\d+(?:-\d+)?)"(?: author_name="([^"]*)")?( from_collaborator="true")?>$/,Noe=/^<reply(?: author_name="([^"]*)")?( from_collaborator="true")?>$/,Ioe=/^`{3,}$/,Toe=/^[\p{L}\p{N} .\-']{1,64}$/u;function Aoe(e){return void 0===e||Toe.test(e)&&e===e.trim()}function Eoe(e){return e===Np||e===Ep||e===Rp||e.startsWith(Ip)||e.startsWith("<review_comment ")||e.startsWith("<reply ")||e.startsWith("<thread")||Roe.has(e)}const Roe=new Set([Dp,Hp,Pp,Up,Op,Fp,Vp,zp,Zp,Bp,qp,Wp,$p,Gp,Kp,Yp,Qp,"<reply>","</reply>"]);function Doe(e){return""!==e&&e.split("\n").some(Eoe)}class Hoe{constructor(e){this.lines=e}idx=0;peek(e=0){const t=this.idx+e;return t<this.lines.length?this.lines[t]:null}next(){return this.idx<this.lines.length?this.lines[this.idx++]:null}expect(e){return this.peek()===e&&(this.idx+=1,!0)}atEnd(){return this.idx>=this.lines.length}rest(){return this.lines.slice(this.idx).join("\n")}}function Poe(e){const t=e.peek();if(null===t||!Ioe.test(t))return null;e.next();const s=[];for(;;){const n=e.next();if(null===n)return null;if(n===t)return s.join("\n");s.push(n)}}function Uoe(e,t,s){if(!e.expect(t))return null;const n=Poe(e);return null!==n&&e.expect(s)?n:null}function Ooe(e){if(e.peek()!==Zp)return[];e.next();const t=[];for(;;){if(e.expect(Bp))return t.length>0?t:null;const s=e.peek(),n=null!==s?Noe.exec(s):null;if(!n||!Aoe(n[1]))return null;e.next();const a=Poe(e);if(null===a||!e.expect("</reply>"))return null;t.push({authorName:n[1]??null,fromCollaborator:void 0!==n[2],text:a})}}function Foe(e){const t=e.peek();if(null===t||!t.startsWith("<review_comment "))return null;const s=Soe.exec(t);if(s)return Aoe(s[5])?function(e,t){e.next();const s=Uoe(e,Dp,Hp);if(null===s)return null;const n=Uoe(e,Pp,Up);if(null===n)return null;if(!n.startsWith("\u2026")||!n.endsWith("\u2026")||!n.includes(`\xab${s}\xbb`))return null;const a=Uoe(e,Op,Fp);if(null===a)return null;const i=Ooe(e);return null!==i&&e.expect(Qp)?{kind:"text-quote",id:t[1],path:t[2],startOffset:Number(t[3]),endOffset:Number(t[4]),authorName:t[5]??null,fromCollaborator:void 0!==t[6],exact:s,context:n,request:a,replies:i}:null}(e,s):null;const n=Loe.exec(t);return n&&Aoe(n[3])?function(e,t){e.next();const s=Uoe(e,Vp,zp);if(null===s)return null;const n=Uoe(e,Op,Fp);if(null===n)return null;const a=Ooe(e);return null!==a&&e.expect(Qp)?{kind:"plaintext",path:t[1],lineRange:t[2],authorName:t[3]??null,fromCollaborator:void 0!==t[4],snippet:s,request:n,replies:a}:null}(e,n):null}function Voe(e){const t=e.peek();if(null===t||!t.startsWith(Ip)||!t.endsWith('">')||t.length<Ip.length+2)return null;const s=t.slice(Ip.length,-2);if(s.includes('"'))return null;e.next();const n=[];for(;;){if(e.expect(Rp))return n.length>0?{containerLabel:s,sections:n}:null;const t=Foe(e);if(null===t)return null;n.push(t)}}function zoe(e){if(!e.includes(Np))return null;const t=(e.includes("\r\n")?e.replace(/\r\n/g,"\n"):e).split("\n"),s=t.indexOf(Np);if(s<0)return null;const n=s>0?t.slice(0,s).join("\n"):null;if(null!==n){if(Doe(n))return null;let e=null;for(let n=0;n<s;n++){const s=/^(`{3,}|~{3,})(.*)$/.exec(t[n]);if(!s)continue;const a=s[1][0],i=s[1].length,r=s[2];if(null===e){if("`"===a&&r.includes("`"))continue;e={char:a,len:i}}else a===e.char&&i>=e.len&&""===r.trim()&&(e=null)}if(null!==e)return null}const a=new Hoe(t);a.idx=s+1;const i=[];for(;;){const e=a.peek();if(null===e)return null;if(e.startsWith(Ip))break;if(Eoe(e))return null;i.push(e),a.next()}if(i.length>0&&""!==i[i.length-1])return null;const r=i.slice(0,-1).join("\n"),o=""===r?[]:r.split("\n\n"),l=o.includes(Tp),c=o.includes(Ap),d=[];for(;;){const e=Voe(a);if(null===e)return null;if(d.push(e),a.expect(Ep))break}let u=null;if(!a.atEnd()){if(!a.expect(""))return null;if(u=a.rest(),Doe(u))return null}return{hasTextQuotePreamble:l,hasCollaboratorPreamble:c,visibleLead:n,groups:d,tail:u}}function Zoe(e){const t=[];null!==e.visibleLead&&""!==e.visibleLead.trim()&&t.push(e.visibleLead.trim());for(const s of e.groups)for(const e of s.sections)e.fromCollaborator||""===e.request.trim()||t.push(e.request.trim());return null!==e.tail&&""!==e.tail.trim()&&t.push(e.tail.trim()),t.join("\n\n")}function Boe(e){return e.replace(/!\[[^\]]*\]\((?:[^()]|\([^()]*\))*\)/g,"").replace(/^ {0,3}(?:```|~~~)[^\n]*$/gm,"").replace(/\[([^\]]*)\]\((?:[^()]|\([^()]*\))*\)/g,"$1").replace(/\*\*([^*]+)\*\*/g,"$1").replace(/\*([^*\s][^*]*)\*/g,"$1").replace(/~~([^~]+)~~/g,"$1").replace(/`([^`]+)`/g,"$1").replace(/^#{1,6} /gm,"")}const qoe=new RegExp(`<${ef}\\b[^>]*?\\btitle="([^"]*)"[^>]*\\/>`,"g"),Woe=new RegExp(`<${ef}\\b[^>]*\\/>`,"g");function $oe(e){return e.replace(qoe,"$1").replace(Woe,"Untitled artifact")}function Goe(e){const t=[Zoe(e)];for(const s of e.groups){t.push(s.containerLabel);for(const e of s.sections){t.push("text-quote"===e.kind?e.exact:e.snippet),e.fromCollaborator&&t.push(e.request);for(const s of e.replies)t.push(s.text)}}return t.filter(e=>""!==e.trim()).join("\n")}const Koe={text:"indexed",connector_text:"omitted",thinking:"omitted",redacted_thinking:"omitted",tool_use:"omitted",tool_result:"omitted",token_budget:"omitted",process_group_marker:"omitted",flag:"omitted",voice_note:"omitted",bell:"omitted"};function Yoe(e){return"indexed"===Koe[e]}function Qoe(t,s,n,a,i,r,o=!1,l){const c=r??"{}",d=tf(),{track:u}=ae(),{addError:m}=ut(),p=_s(),f=Ha(s),g=f?.tool||null,h=f?.server||null,C=!g&&!!a&&!!i,{mutate:x}=sf(t,C),{toggleMcpToolAlwaysApproved:v}=Je(),[y,b]=e.useState(!1),[M,_]=e.useState(!1),j=y||o,S=e.useRef(!1),L=p&&h?.uuid&&"remote"===h?.type||C,N=Bo()(h,g),I=a?a.includes("always")&&!1!==N.showAlwaysAllowed:!!N.showAlwaysAllowed,T=!!n,A=T&&(C||!!g&&(p&&"remote"===h?.type?!!a&&!!i:N.approvalRequired)),E=e.useCallback(e=>{if(!T||j)return;if(!g&&!C)return;if("always"===e&&!i){const e=Ha(s)?.tool?.alwaysApprovedKey;e&&v(e,!0)}const a={onError:e=>{if(e instanceof cs&&404===e.statusCode&&"side_channel_waiting_key_absent"===e.errorCode)return _(!1),void l?.(n);b(!1),_(!1),m("Couldn't send tool approval. You can try again.",{error:e,errorContext:{tags:{source:"tool_approval_submit"}},messageForLogging:"Couldn't send tool approval."})},onSuccess:()=>{l?.(n)}};"deny"===e?(_(!0),L?x({tool_use_id:n,is_approved:!1,approval_key:i},a):(d(t,s,n,c,{overriddenResult:{content:[{type:"text",text:"The user has chosen to disallow the tool call."}],is_error:!0}}),u({event_key:"mcp.tools.called",result:"disallowed",argument_count:Object.keys(nf(c)??{}).length}))):L?x({tool_use_id:n,is_approved:!0,approval_key:i,approval_option:e},a):r?d(t,s,n,c):"once"===e&&(S.current=!0),b(!0),L||l?.(n)},[T,j,g,C,i,v,L,x,d,t,s,n,c,r,u,b,l,m]),R=T&&!A&&!j&&!L&&!!r,D=Za(t),H="local_session"===Me()?.type,P=D||H,U=!!r;return e.useEffect(()=>{!n||P||j||k.warn(w.MCP,"tool_approval_gate",{toolId:n,toolName:s,approvalRequired:A,hasBufferedInput:U})},[n,s,P,j,A,U]),R&&(d(t,s,n,c),b(!0)),e.useEffect(()=>{S.current&&r&&!L&&(S.current=!1,d(t,s,n,r))},[r,L,d,t,s,n]),e.useMemo(()=>P?{approvalRequired:!1,showAlwaysAllowed:!1,expandInputByDefault:!1,wasDenied:!1,submitToolApproval:()=>{}}:{approvalRequired:A&&!j,submitToolApproval:E,showAlwaysAllowed:I,expandInputByDefault:!!N.expandInputByDefault,wasDenied:M},[A,j,E,I,N.expandInputByDefault,P,M])}const Joe=e.memo(function({conversationUuid:s,block:n,message:a,updatedMessage:i,index:r,shareType:o,isStreaming:l,isLastMessage:c,isFirstBlockOfMessage:d,isLastBlockOfMessage:u,renderMode:m,isFirstItemInGroup:p,isLastItemInGroup:f}){const g=af(),{renderToolUseCell:h,toolPermissionRequests:C}=vn(),x=function(e,t){return function(e,t,s){return!(!t||!s)&&s.some(t=>t.toolUseId===e&&!t.toolName.includes("AskUserQuestion"))}(e,"local_session"===Me()?.type,t)}(n.id,C),v=rf(n),y=n.name,b=n.id,k=n.context,w=i.content?.[r+1],M="tool_result"===w?.type?w:void 0,_=Qoe(s,n.name,n.id,n.approval_options,n.approval_key,n.buffered_input,!!M),j=g?void 0:_,S=!!i.content&&i.content.length<=r+1&&l,L=i.content?.[r-2],N=i.content?.[r+2],I=function(e,t,s){const n="tool_use"===t?.type&&"artifacts"===t?.name,a="tool_use"===e?.type&&"artifacts"===e?.name;let i,r,o;s.partial_json?s.partial_json.includes('"command":"create"')&&(i=function(e){const t=e.match(/"id"\s*:\s*"([^"]*)"/);return t?t[1]:void 0}(s.partial_json)):i=s.input?.id,a&&(r=e?.input?.id),n&&!t?.partial_json&&(o=t?.input?.id);const l=i===r,c=i===o;let d="individual_cell_create";const u=s.input?.command;return u&&(d={create:"individual_cell_create",update:"individual_cell_update",rewrite:"individual_cell_rewrite"}[u]),n||a?n&&a?l||c?l&&!c?"multi_edit_last":"multi_edit_not_last":d:n&&!a?c?"multi_edit_not_last":d:!n&&a&&l?"multi_edit_last":d:d}(L,N,n);if(!h)throw new Error("renderToolUseCell() is not provided, missing ChatMessageContext?");const T=e.useMemo(()=>h({toolUseId:b,input:v,isLastMessage:c,message:a,isStreaming:S,toolName:y,toolResult:M,displayData:{integrationName:n.integration_name,integrationIcon:n.integration_icon_url,iconName:n.icon_name,message:M?.message||n.message,toolMessage:n.message,input:n.display_content,result:M?.display_content},approvalData:j,mcpAuthRequired:n.mcp_auth_required,artifactCellType:I,isFirstBlockOfMessage:d,isLastBlockOfMessage:u,shareType:o,context:k,renderMode:m,groupItemKey:String(r),isFirstItemInGroup:p,isLastItemInGroup:f,isMcpApp:n.is_mcp_app,partialJson:n.partial_json}),[j,I,n.display_content,n.icon_name,n.integration_icon_url,n.integration_name,n.mcp_auth_required,n.message,n.partial_json,k,r,v,d,p,u,f,c,a,m,h,o,S,y,M,b,n.is_mcp_app]);return x?null:t.jsx(e.Fragment,{children:T})});function Xoe(e){return(e.split("/").pop()||e).replace(/\.[^/.]+$/,"").split("_").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}function ele(e,t){if(!t)return!0;let s=e.replace(/^computer:\/{2,3}/i,"/").replace(/^\/+/,"/"),n=!1;for(let o=0;o<5;o++){let e;try{e=decodeURIComponent(s)}catch{/%[0-9a-fA-F]{2}/.test(s)&&(s="\0undecodable"),n=!0;break}if(e===s){n=!0;break}s=e}n||(s="\0undecodable"),s=s.replace(/\\/g,"/");const a=[];let i=!1;for(const o of s.split("/"))if(""!==o&&"."!==o)if(".."!==o)a.push(o);else{if(0===a.length){i=!0;break}a.pop()}const r=i?"\0escapes-root":`/${a.join("/")}${s.endsWith("/")&&a.length>0?"/":""}`;if("org_scoped"===t){const e=s.replace(/\/+/g,"/");let t=0,n=!1,a=!1;for(const s of e.split("/"))if(""!==s&&"."!==s)if(t+=".."===s?-1:1,t>=2)n=!0;else if(n){a=!0;break}return!a&&e.startsWith("/mnt/user-data/")&&r.startsWith("/mnt/user-data/")}if("public"===t)return!1;throw new Error(`Unknown share type: ${t}`)}Joe.displayName="ToolUse";const tle=e.createContext(!0);function sle(e){const t=(e.split(/[\\/]/).pop()??"").split("."),s=t.length>1?t.pop()?.toLowerCase():"";return s||"none"}const nle=({conversationUuid:t,source:s})=>{const{activeOrganization:n}=v(),a=n?.uuid,i=Za(t),r=of(t),o=lf(t??""),l=cf(t??""),c=e.useContext(tle),d=new URLSearchParams;s&&d.append("source",s);const u=d.toString()?`?${d.toString()}`:"";return B(`/api/organizations/${a}/artifacts/${t}/versions${u}`,{queryKey:["conversation_artifacts_query_key",{organizationUuid:a,conversationUuid:t,source:s}],enabled:!!a&&!!t&&c&&!i&&!r&&o>=2&&l,meta:{noToast:!0}})},ale=({conversationUuid:e})=>{const{activeOrganization:t}=v(),s=t?.uuid;return b(`/api/organizations/${s}/conversations/${e}/wiggle/convert-file-to-artifact`,"POST",{enabled:!!s&&!!e,onSuccess:(e,t)=>{"publish"===t.operation&&Bl("artifacts.published",{attributes:{surface:"file_panel",has_screenshot:!1,artifact_type:sle(t.path)}})}})},ile=()=>{const{activeOrganization:e}=v(),t=e?.uuid;return b(`/api/organizations/${t}/artifacts/share_from_content`,"POST",{enabled:!!t,onSuccess:(e,t)=>{"publish"===t.operation&&Bl("artifacts.published",{attributes:{surface:"cowork",has_screenshot:!1,artifact_type:sle(t.filename)}})}})},rle=36e5,ole="artifact_view_cache";function lle(e,t){if(!t)return;const s=`${t}_${e}`;try{const e=localStorage.getItem(ole)||"{}";let t=JSON.parse(e);const n=t[s];if(n&&Date.now()-n<rle)return;t=function(e){const t=Date.now(),s={};for(const[n,a]of Object.entries(e))t-a<=rle&&(s[n]=a);return s}(t),t[s]=Date.now(),localStorage.setItem(ole,JSON.stringify(t))}catch{}}const cle=t=>{const{activeOrganization:s}=v(),n=s?.uuid,a=new URLSearchParams;t&&"includeDeletedArtifacts"in t&&a.append("include_deleted_artifacts",String(t.includeDeletedArtifacts));const i=B(`/api/organizations/${n}/published_artifacts?${a.toString()}`,{staleTime:0,queryKey:[mf,{orgUuid:n,includeDeletedArtifacts:t?.includeDeletedArtifacts,noToast:t?.noToast}],enabled:!!n&&(t?.enabled??!0),meta:{noToast:t?.noToast}}),r=e.useMemo(()=>i.data?.reduce((e,t)=>(e[t.message_uuid]||(e[t.message_uuid]=[]),e[t.message_uuid].push(t),e),{}),[i.data]);return{...i,publishedArtifactsByMessageUuid:r}},dle=()=>{const{activeOrganization:e}=v(),t=e?.uuid,s=gL();return b(`/api/organizations/${t}/publish_artifact`,"POST",{onSuccess:()=>{s.invalidateQueries({queryKey:[mf,{orgUuid:t}]}),s.invalidateQueries({queryKey:[pf]})}})},ule=(e,t)=>{const{activeOrganization:s}=v(),n=s?.uuid,a=gL();return b(`/api/organizations/${n}/published_artifacts/${e}`,"DELETE",{meta:{noToast:t?.noToast},onSuccess:()=>{a.invalidateQueries({queryKey:[mf,{orgUuid:n}]}),a.invalidateQueries({queryKey:[pf]})},enabled:!!e})},mle=e=>{const{activeOrganization:t}=v(),s=t?.uuid,n=gL();return b(`/api/organizations/${s}/artifact-versions/${void 0===e?e:uf(e)}/visibility`,"POST",{onSuccess:()=>{n.invalidateQueries({queryKey:[df,{artifactVersionUuid:e,orgUuid:s}]})}})},ple=(e,t)=>{const s=b(`/api/published_artifacts/${e}/record_view`,"POST",{onSuccess:s=>{"view successfully recorded"===s.status&&lle(e,t)},meta:{noToast:!0}});return{...s,mutate:n=>{(function(e,t){if(!t)return!1;const s=`${t}_${e}`;try{const e=localStorage.getItem(ole);if(!e)return!1;const t=JSON.parse(e),n=t[s];return!(!n||Date.now()-n>rle&&(delete t[s],localStorage.setItem(ole,JSON.stringify(t)),1))}catch{return!1}})(e,t)||s.mutate(n||{})}}},fle=e=>{const t=new URLSearchParams;e.forEach(e=>{t.append("artifact_uuids",e)});const s=`/api/published_artifacts/view_counts?${t.toString()}`;return B(s,{queryKey:[gf,e],meta:{noToast:!0},enabled:e.length>0})},gle=()=>{const{activeOrganization:e}=v(),t=e?.uuid,s=b(e=>`/api/organizations/${t}/published_artifacts/${e.published_artifact_uuid}/snapshot`,"POST",{meta:{noToast:!0}});return{...s,mutateAsync:async e=>{if(!(e.domSnapshot.length>5242880))return s.mutateAsync({dom_snapshot:e.domSnapshot,published_artifact_uuid:e.publishedArtifactUuid,viewport_width:e.viewportWidth,viewport_height:e.viewportHeight})}}},hle=e=>B(`/api/published_artifacts/${e}/embed_whitelist`,{queryKey:[ff,e],meta:{noToast:!0},enabled:!!e}),Cle=e=>{const{activeOrganization:t}=v(),s=t?.uuid,n=gL();return b(`/api/organizations/${s}/published_artifacts/${e}/embed_whitelist`,"PUT",{enabled:!!e&&!!s,meta:{noToast:!0},onSuccess:()=>{n.invalidateQueries({queryKey:[ff,e]})}})};function xle(e){const t=[],s=document.createTreeWalker(e.commonAncestorContainer,NodeFilter.SHOW_TEXT,t=>e.intersectsNode(t)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT);let n;for(;n=s.nextNode();)t.push(n);return t}const vle=({isStreaming:e,children:s,...n})=>e?s:t.jsx(yle,{...n,children:s}),yle=({children:s,sendMessage:n,contentType:a="text",isOpen:i})=>{const r=JS(),o=ae(),l=void 0!==n,[c,d]=e.useState([]),[u,m]=e.useState({top:0,left:0,width:0}),[p,f]=e.useState(!1),[g,h]=e.useState(!1),[C,x]=e.useState(""),[v,y]=e.useState(""),[b,k]=e.useState(!1),w=e.useRef(null),M=e.useRef(null),_=e.useCallback((e,t)=>{const s=function(e,t){const s=[];for(let n=0;n<e.rangeCount;n++){const a=e.getRangeAt(n);if(a.startContainer===a.endContainer&&a.startContainer.nodeType===Node.TEXT_NODE){const e=a.startContainer,t=document.createRange();for(let n=a.startOffset;n<a.endOffset;n++){t.setStart(e,n),t.setEnd(e,n+1);const a=Array.from(t.getClientRects());s.push(...a)}t.detach()}else{const e=xle(a);e.forEach((n,i)=>{const r=document.createRange(),o="length"in n?n.length:0,l=0===i,c=i===e.length-1,d=l?a.startOffset:0,u=c&&!t?a.endOffset:o;r.setStart(n,d),r.setEnd(n,u);const m=Array.from(r.getClientRects());s.push(...m),r.detach()})}}return s}(e,t),n=w.current?.getBoundingClientRect();return Array.from(s).map(e=>({top:e.top-(n?.top||0)-2.5,left:e.left-(n?.left||0),width:e.width,height:e.height+5.5}))},[]),j=e.useCallback(e=>{const t=e.getRangeAt(0);return w.current?.contains(t.commonAncestorContainer)},[]);e.useEffect(()=>{function e({selection:e,isSelectAll:t}){const s=_(e,t);let n,a;if(s.every((e,t,s)=>0===t||Math.abs(e.top-s[0].top)<5)){const e=Math.max(...s.map(e=>e.left+e.width));n=s[0].top-9,a=e+10}else{const e=Math.max(...s.map(e=>e.top+e.height));a=Math.min(...s.map(e=>e.left)),n=Math.min((w.current?.scrollHeight??0)-50,e)}const i=((w.current?.scrollWidth??1e3)-a)/3*2;d(s),f(!0),h(!1),m({top:n,left:a,width:i}),y(e.toString())}const t=()=>{k(!0)},s=t=>{"Escape"===t.key&&(h(!1),f(!1),x(""),d([]));const s=(hf()?t.metaKey:t.ctrlKey)&&"a"===t.key,n=w.current;if(n&&i&&s){const s=document.activeElement&&(document.activeElement===n||n?.contains(document.activeElement)),a=window.getSelection();if(s&&a){t.preventDefault();const s=document.createRange();s.selectNodeContents(n),a.removeAllRanges(),a.addRange(s),e({selection:a,isSelectAll:!0})}}},n=t=>{if(M.current&&M.current.contains(t.target))return;const s=window.getSelection();s&&!s.isCollapsed&&j(s)?e({selection:s}):(d([]),f(!1),h(!1),y(""),x("")),k(!1)};return l&&(document.addEventListener("mousedown",t),document.addEventListener("mouseup",n),document.addEventListener("keydown",s)),()=>{document.removeEventListener("mousedown",t),document.removeEventListener("mouseup",n),document.removeEventListener("keydown",s)}},[_,j,l,i]);const S=e=>{l&&(n(e),x(""),h(!1),f(!1),d([]))},L=()=>"text"===a?v.split("\n").map(e=>`> ${e}`).join("\n"):"code"===a?`\`\`\`\n${v}\n\`\`\``:void 0,N=()=>{const e=`${L()}\n\n${C}`;S({prompt:e,attachments:[],files:[],syncSources:[]})};return t.jsxs("div",{className:"w-full h-full relative",children:[t.jsx("div",{ref:w,tabIndex:0,className:Bt("w-full h-full relative",l?b?"[&_:not(input)::selection]:bg-secondary-000/10":"[&_*::selection]:bg-secondary-000/10":""),children:s}),c.map((e,s)=>t.jsx("div",{className:"absolute pointer-events-none bg-accent-000/10",style:{top:e.top,left:e.left,width:e.width,height:e.height}},s)),t.jsx(nA,{children:p&&!g&&t.jsx(sA.div,{className:"absolute z-10",initial:{scale:.95,opacity:0},animate:{scale:1,opacity:1},transition:{type:"spring",damping:30,stiffness:400,delay:.2},style:{top:u.top+5,left:u.left},children:t.jsx("div",{className:"border-0.5 flex items-center rounded-lg px-2 pb-1 pt-3 shadow transition bg-bg-000 text-text-400 border-border-300",children:t.jsxs("div",{className:"-mx-1 -mt-2 flex items-stretch justify-between gap-0.5",children:[t.jsx(kt,{variant:"ghost",size:"sm",className:"!font-base",onClick:()=>{o.track({event_key:"artifactinlinefeedback.selection.clicked",source:"improve"}),h(!0)},prepend:t.jsx(VS,{}),children:t.jsx(XS,{defaultMessage:"Improve",id:"BATKcMm/a2"})}),t.jsx(kt,{variant:"ghost",size:"sm",className:"!font-base",onClick:()=>{o.track({event_key:"artifactinlinefeedback.selection.clicked",source:"explain"});const e=`${r.formatMessage({defaultMessage:"Can you explain this section to me in more detail?",id:"LMDbiRxyDQ"})}\n\n${L()}`;S({prompt:e,attachments:[],files:[],syncSources:[]})},prepend:t.jsx(cU,{}),children:t.jsx(XS,{defaultMessage:"Explain",id:"HGdgPPM2Ry"})})]})})})}),t.jsx(nA,{children:g&&t.jsxs(sA.form,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},transition:{type:"spring",damping:30,stiffness:400},className:"z-10 absolute flex gap-2 p-2 pl-4 items-center h-12 rounded-lg bg-bg-000 text-text-200 border border-0.5 border-border-300 shadow-xl",style:{top:u.top+5,left:u.left,width:u.width},ref:M,onSubmit:e=>{e.preventDefault(),N()},children:[t.jsx("input",{type:"text",value:C,onChange:e=>x(e.target.value),placeholder:r.formatMessage({defaultMessage:"Describe what you would like to update...",id:"smio7jldoW"}),"aria-label":r.formatMessage({defaultMessage:"Describe what you would like to update",id:"LWt6+WHYht"}),className:"py-0.5 px-0 border-0 bg-transparent text-sm grow !shadow-none text-text-200 placeholder-text-500 hide-focus-ring",autoFocus:!0}),t.jsx(nA,{children:C.trim().length>0?t.jsx(sA.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.9},transition:{type:"spring",damping:30,stiffness:400,delay:0},children:t.jsx(kt,{onClick:()=>N(),"aria-label":r.formatMessage({defaultMessage:"Send Message",id:"yJAKR0Ngpn"}),type:"submit",children:t.jsx("div",{className:"flex items-center gap-2 select-none",children:t.jsx(XS,{defaultMessage:"Update",id:"BWpuKlRSA1"})})})}):null})]})})]})},ble="opacity-30 blur-[2px]",kle={[Se.Text]:"text",[Se.Markdown]:"markdown",[Se.Html]:"html",[Se.Code]:"code",[Se.Svg]:"svg",[Se.Mermaid]:"mermaid",[Se.React]:"react"};function wle(e){return void 0!==e&&kle[e]||"other"}const Mle=({isOpen:s,content:n,sandboxContent:a,language:i,citations:r,type:o,showRaw:l,richSandboxRef:c,isCurrentStreaming:d,isChatStreaming:u,onSandboxConfirmation:m,onDOMContentLoaded:p,sendMessage:f,richSandboxCapabilities:g,isLatestVersion:h,artifactId:C,artifactContext:x,artifactVersion:v,onArtifactRuntimeError:y,artifact:b,hasMenuOpen:k,zoom:w,onTrackInteraction:M,showLoginModal:_,ArtifactMcpModal:j})=>{const S=void 0!==o&&void 0!==n&&o!==Se.Code&&o!==Se.Markdown,L=e.useRef(null),N=S&&!l,[I,T]=e.useState(null),A=e.useCallback(e=>{void 0!==C&&void 0!==v&&(void 0!==y&&y(e),T({error:e,artifactId:C,artifactVersion:v}))},[C,v,y]),E=void 0===n||void 0===o?null:o===Se.Code||l?"code_panel":o===Se.Markdown?"markdown_panel":null;FN("artifact_open",s&&void 0!==C&&null!==E?"ready":"pending",{renderMode:E??void 0,artifactType:wle(o),artifactId:C}),e.useEffect(()=>{if(!b)return;if(!d)return;const e=b.versions[b.versions.length-1],t=b.versions[b.versions.length-2];if(!t||!e||"update"!==e.command)return;const s=Sle(t.resultState,e.resultState);-1!==s&&L.current?.scrollToPercentage(s/100)},[n,b,d]),e.useEffect(()=>{!d&&L.current&&L.current.enableScrolling()},[d]);const R=e.useCallback(()=>{void 0!==C&&Cf("artifact_open",{renderMode:"sandboxed",artifactType:wle(o),artifactId:C,immediate:!0}),T(e=>!e||e.artifactId===C&&e.artifactVersion===v?e:null)},[C,v,o]),D=e.useCallback(()=>{T(null)},[]);return t.jsxs(t.Fragment,{children:[S&&t.jsxs("div",{className:Bt("ease-out duration-200",N?"h-full w-full relative border-none":"absolute opacity-0 w-0 h-0 overflow-hidden pointer-events-none",k&&ble),children:[t.jsx(BL,{ref:c,className:N?"h-full w-full border-none bg-bg-100":"absolute opacity-0 w-0 h-0 overflow-hidden pointer-events-none",content:N?a??n:void 0,type:N?o:void 0,title:b?.title,onSandboxConfirmation:m,onDOMContentLoaded:p,capabilities:g,onReportError:A,onSetContent:R,onRefresh:D,externalLinkBehavior:"ask",zoom:w,onTrackInteraction:M,showLoginModal:_,artifactContext:x,ArtifactMcpModal:j,isChatStreaming:u}),N&&I&&t.jsx(dH,{error:I,handleClose:()=>T(null),sendMessage:h?f:void 0,isStreaming:u})]}),void 0===n||void 0===o?null:o===Se.Code||l?t.jsx(uH,{noDefaultScroll:!d,ref:L,className:Bt("ease-out duration-200","relative flex w-full flex-1 overflow-x-auto overflow-y-scroll",k&&ble),children:t.jsx(_le,{content:n,isStreaming:u,language:i,sendMessage:f,isOpen:s},`code-${C}-${v}-${d}`)}):o===Se.Markdown?t.jsx(uH,{noDefaultScroll:!d,ref:L,className:Bt("ease-out duration-200","relative flex w-full flex-1 overflow-x-auto overflow-y-scroll",k&&ble),children:t.jsx(jle,{content:n,citations:r,isStreaming:u,sendMessage:f,isOpen:s},`markdown-${C}-${v}-${d}`)}):null]})},_le=({content:e,isStreaming:s,language:n,sendMessage:a,isOpen:i})=>{const{codeStyle:r}=xf(),{exceedsSizeLimit:o}=vf(e),l="code-block__code !my-0 h-fit min-h-full w-fit min-w-full !rounded-none !text-sm !leading-relaxed ";return t.jsx(vle,{isStreaming:s,sendMessage:a,contentType:"code",isOpen:i,children:o?t.jsx(yf,{code:e,codeClassName:`${l} p-3.5`}):t.jsx(bf,{className:l,language:n,PreTag:"div",style:r,renderer:kf,children:e})})},jle=({content:s,citations:n,isStreaming:a,sendMessage:i,isOpen:r})=>{const o=Mf(),l=e.useMemo(()=>n&&n.length>0?wf(n,s):s,[s,n,o]);return t.jsx(vle,{isStreaming:a,sendMessage:i,isOpen:r,children:t.jsxs("div",{tabIndex:0,id:"markdown-artifact",className:"font-claude-response mx-auto w-full max-w-3xl leading-[1.65rem] px-6 pt-4 md:pt-6 md:px-11",children:[t.jsx(Ct,{text:l,blockCitations:n,className:"!gap-3.5",isStreaming:a,normalizationMode:"markdown-document"}),t.jsx("div",{className:"h-8"})]})})},Sle=(e,t)=>{if(!e||!t)return-1;const s=e.replace(/\\n/g,"\n"),n=t.replace(/\\n/g,"\n"),a=[...s].findIndex((e,t)=>e!==n[t]);if(-1===a&&s.length===n.length)return-1;const i=(s.slice(0,-1===a?s.length:a).match(/\n/g)||[]).length,r=(s.match(/\n/g)||[]).length;return r?Math.round(i/r*100):-1},Lle="artifact_tool_configuration",Nle="artifact_storage_info",Ile=({entityId:e,artifactEntityType:t,conversationUuid:s,filePath:n})=>{const{activeOrganization:a}=v(),i=a?.uuid,r=`/api/organizations/${i}/artifacts/${t}/${void 0===e?"":uf(e)}/tools`,o=new URLSearchParams;s&&o.set("chat_conversation_uuid",s),n&&o.set("file_path",n);const l=o.toString();return B(l?`${r}?${l}`:r,{queryKey:[Lle,{orgUuid:i,entityId:e,artifactEntityType:t,conversationUuid:s,filePath:n}],enabled:!!i&&!!e&&(!("wiggle_artifact"===t)||!!s&&!!n),meta:{noToast:e=>!(e instanceof cs)||e.statusCode<500}})},Tle=({entityId:e,artifactEntityType:t,conversationUuid:s,filePath:n})=>{const{activeOrganization:a}=v(),i=a?.uuid,r=gL(),o=`/api/organizations/${i}/artifacts/${t}/${void 0===e?"":uf(e)}/tools`,l=new URLSearchParams;s&&l.set("chat_conversation_uuid",s),n&&l.set("file_path",n);const c=l.toString();return b(c?`${o}?${c}`:o,"POST",{enabled:!!i&&!!e,onSuccess:()=>{r.invalidateQueries({queryKey:[Lle,{orgUuid:i,entityId:e,artifactEntityType:t,conversationUuid:s,filePath:n}]})},meta:{noToast:!0}})},Ale=({entityId:e,artifactEntityType:t,conversationUuid:s,filePath:n},a)=>{const{activeOrganization:i}=v(),r=i?.uuid,o=`/api/organizations/${r}/artifacts/${t}/${void 0===e?"":uf(e)}/manage/storage/info`,l=new URLSearchParams;s&&l.set("chat_conversation_uuid",s),n&&l.set("file_path",n);const c=l.toString();return B(c?`${o}?${c}`:o,{queryKey:[Nle,{orgUuid:r,entityId:e,artifactEntityType:t,conversationUuid:s,filePath:n}],enabled:!!r&&!!e&&(a?.enabled??!0),staleTime:0,meta:{noToast:!0}})};const Ele=e.memo(function({artifactUuid:s,content:n,citations:a,conversationUuid:i,sendMessage:r,sendDisabled:o,isStreaming:l}){const c=Mf(),d=i??s,u=e.useMemo(()=>({kind:"artifact",artifactId:s}),[s]);_f(d,u,s);const m=e.useMemo(()=>({review_surface:"chat",conversation_uuid:i??null,session_id:null}),[i]),p=jf(d,r,m),f=e.useMemo(()=>a&&a.length>0?wf(a,n):n,[n,a,c]),g=e.useMemo(()=>Sf(f,{nestedCodeBlockMode:"markdown-document"}),[f]);return t.jsx(uH,{noDefaultScroll:!l,className:"flex-1 min-h-0 overflow-y-auto",children:t.jsx(mH,{reviewStoreKey:d,documentRef:u,source:g,analyticsCtx:m,onSendToClaude:p,sendDisabled:o,className:"mx-auto w-full max-w-3xl",children:t.jsx("div",{id:"markdown-artifact",className:"py-4 pl-6 pr-16 leading-[1.65rem] md:py-6 md:pl-11",children:t.jsx(Ct,{text:g,blockCitations:a,className:"font-claude-response",normalizationMode:"markdown-document",emitSourcePositions:!0})})})})});Ele.displayName="ChatArtifactReviewableMarkdown";const Rle={schemaVersion:2,entries:{}};function Dle(e,t){return`${e}::${t}`}function Hle(e){return e.replace(/^computer:\/\//,"")}function Ple(e){if(!e)return Rle;if(2===e.schemaVersion)return e;if(1===e.schemaVersion){const t={};for(const[s,n]of Object.entries(e.entries))t[s]={...n,autoPublish:!1};return{schemaVersion:2,entries:t}}return Rle}function Ule(e){let t=5381;for(let s=0;s<e.length;s++)t=(t<<5)+t+e.charCodeAt(s)|0;return`${e.length}:${(t>>>0).toString(16)}`}function Ole(){const[t,s]=xs("cowork-shared-artifacts",Rle),n=e.useMemo(()=>Ple(t),[t]),a=e.useMemo(()=>function(e,t){const s=t-7776e6,n=Object.entries(e),a=n.filter(([,e])=>e.sharedAt>=s);return a.length===n.length?e:Object.fromEntries(a)}(n.entries,Date.now()),[n]);e.useEffect(()=>{(t?.schemaVersion??0)>2||2===t?.schemaVersion&&a===t.entries||s({schemaVersion:2,entries:a})},[a,t,s]);return{getShared:e.useCallback((e,t)=>a[Dle(e,t)],[a]),recordShare:e.useCallback((e,t,n,a,i)=>{const r=Dle(e,t);s(e=>{if((e?.schemaVersion??0)>2)return e;const t=Ple(e),s=t.entries[r];return{schemaVersion:2,entries:{...t.entries,[r]:{artifact_uuid:n.artifact_uuid,artifact_version_uuid:n.artifact_version_uuid,anchor_conversation_uuid:n.anchor_conversation_uuid,message_uuid:n.message_uuid,published_artifact_uuid:n.published_artifact_uuid,contentHash:a,sharedAt:Date.now(),autoPublish:i?.autoPublish??s?.autoPublish??!1}}}})},[s]),setAutoPublish:e.useCallback((e,t,n)=>{const a=Dle(e,t);s(e=>{const t=Ple(e),s=t.entries[a];return s&&s.autoPublish!==n?{schemaVersion:2,entries:{...t.entries,[a]:{...s,autoPublish:n}}}:e})},[s]),autoPublishEntries:e.useCallback(e=>{const t=new Map,s=`${e}::`;for(const[n,i]of Object.entries(a))i.autoPublish&&n.startsWith(s)&&t.set(n.slice(s.length),i);return t},[a])}}function Fle(){const[t,s]=xs("chat-artifact-autopublish",{});return{isAutoPublish:e.useCallback(e=>!0===t?.[e],[t]),setAutoPublish:e.useCallback((e,t)=>{s(s=>{const n=s??{};return(n[e]??!1)===t?s:{...n,[e]:t}})},[s])}}const Vle=e.memo(function({ownerKey:s,token:n,documentRef:a,artifactUuid:i,analyticsCtx:r,pageTextIndex:o,uiHidden:l,commentMode:c,onCommentModeChange:d,className:u,children:m}){const{htmlPreviewPinsEnabled:p}=Lf(),f=p&&!!s,g=e.useMemo(()=>Nf(a),[a]),h=If(f?s:void 0,g);_f(h,a,i);const{comments:C,stagedIds:x,drafts:v,addComment:y,updateComment:b,removeComment:k,setDraft:w,clearDraft:M}=Tf(h),{handleAdd:_,handleUpdate:j,handleRemove:S}=Af({comments:C,addComment:y,updateComment:b,removeComment:k,analyticsCtx:r,defaultDisplayMode:"rendered"}),L=e.useCallback((e,t,s)=>_(e,t,{...s,skipStage:!0}),[_]),N=e.useMemo(()=>f?{comments:C,stagedIds:x,drafts:v,onCommentSubmit:L,onCommentUpdate:j,onCommentDelete:S,onDraftChange:w,onDraftClear:M}:void 0,[f,C,x,v,L,j,S,w,M]);return t.jsx(gH,{active:f,token:n,documentRef:a,commentProps:N,pageTextIndex:o,uiHidden:l,commentMode:c,onCommentModeChange:d,className:u,children:m})});function zle({anchor:s,commentMode:n,panelOpen:a}){const i=JS(),{shouldShow:r,dismiss:o}=lI("html-review-comment-toggle-2026-06",{dateAdded:"2026-06-20",priority:cI.LOW},{enabled:a&&!n}),l=e.useRef(n);return e.useEffect(()=>{n&&!l.current&&o(),l.current=n},[n,o]),r?t.jsx(oN,{open:!0,onOpenChange:e=>!e&&o(),anchor:s,side:"bottom",align:"end",introDelay:.5,showClose:!0,"aria-label":i.formatMessage({defaultMessage:"Comment on the preview",id:"fnQhNolGcE"}),badge:t.jsx(vN,{size:"xxs",children:t.jsx(XS,{defaultMessage:"New",id:"bW7B87wFFp"})}),title:t.jsx(XS,{defaultMessage:"Comment on the preview",id:"fnQhNolGcE"}),children:t.jsx(XS,{defaultMessage:"Leave comments anywhere on the preview for Claude to revise.",id:"Y/TC2IotJC"})}):null}function Zle({currentArtifact:s,hasMenuOpen:n,setHasMenuOpen:a}){const i=ms(),r=e.useCallback(()=>{a(!1)},[a]),o=Ef(),l=HN(),c=Object.values(o).reverse().sort((e,t)=>{const s=e.versions[e.versions.length-1],n=t.versions[t.versions.length-1];return new Date(n.created_at).getTime()-new Date(s.created_at).getTime()}),d=e.useRef(s),u=e.useRef(!1),m=e.useCallback(e=>{queueMicrotask(()=>{l({type:"SELECT_ARTIFACT",id:e.id,versionUuid:e.versions[e.versions.length-1].uuid})})},[l]);e.useEffect(()=>{const e=d.current;return()=>{e&&!u.current&&s?.id!==e.id&&m(e),u.current=!1}},[]);const p=Rf(),f=JS();return c.length<2?null:t.jsxs(GA,{open:n,onOpenChange:e=>a(e),children:[t.jsx(KA,{asChild:!0,children:t.jsx(kt,{variant:"ghost",size:"icon_sm",className:"-mx-1","aria-label":f.formatMessage({defaultMessage:"Switch between artifacts",id:"mYiLqlDMdl"}),children:t.jsx(iN,{side:"right",className:"ml-2",content:n?"":f.formatMessage({defaultMessage:"Switch between artifacts",id:"mYiLqlDMdl"}),delay:800,children:t.jsx(dU,{size:20})})})}),t.jsx(YA,{align:"start",asChild:!0,children:t.jsx("ul",{style:void 0!==i?{zIndex:i}:void 0,className:"\n            relative\n            z-dropdown\n            overflow-y-auto\n            max-h-[min(var(--radix-dropdown-menu-content-available-height),var(--dropdown-max-height))]\n            flex flex-col gap-1\n            py-2 pr-3\n          ",onMouseLeave:()=>d.current&&m(d.current),children:c.map((e,s)=>{const n=e.type?p[e.type]:null,a=d.current?.id===e.id,i=f.formatMessage({defaultMessage:"versions",id:"bhuRmwJBaN"}),o=e.versions.length>1?`${e.versions.length}`:"",l=e.versions.length>1&&n?" \xb7 ":"";return t.jsx(sA.li,{initial:{y:-12,opacity:0},animate:{y:0,opacity:1},exit:{opacity:0,transition:{ease:"easeOut",duration:.1,delay:0}},transition:{delay:.035*s,type:"spring",stiffness:285,damping:25,mass:1},role:"none",children:t.jsxs(QA,{className:dt("bg-bg-000 border-0.5 cursor-pointer can-focus","flex flex-col py-2 pl-3 pr-4 w-full max-w-72 mb-px rounded-lg overflow-hidden","text-sm text-left transition duration-300 drop-shadow-[0_2px_8px_hsl(var(--always-black)/8%)] dark:drop-shadow-[0_2px_8px_hsl(var(--always-black)/16%)]",a?"border-accent-100 shadow-[0_0_0_1px_hsl(var(--accent-100))]":"text-text-300 hover:text-text-100 border-border-200 hover:border-accent-100 focus-within:border-accent-100 focus-within:text-text-100"),onClick:()=>(e=>{u.current=!0,r();const t=c[e];d.current=t,m(t)})(s),onMouseEnter:()=>{m(e)},"aria-label":`${e.title}${n?`, ${n}`:""}${o?`, ${o} ${i}`:""}`,children:[t.jsx("div",{className:"line-clamp-2",children:e.title}),t.jsxs("span",{className:"text-text-300",children:[e.versions.length>1?t.jsxs(t.Fragment,{children:[o," ",i]}):null,l?t.jsx(t.Fragment,{children:l}):null,n]})]},e.id)},e.id)})})})]})}function Ble({isOpen:e,onClose:s,entityId:n,artifactEntityType:a,conversationUuid:i,filePath:r}){const{addError:o}=ut(),{mutateAsync:l,isPending:c}=(({entityId:e,artifactEntityType:t,conversationUuid:s,filePath:n})=>{const{activeOrganization:a}=v(),i=a?.uuid,r=gL(),o=`/api/organizations/${i}/artifacts/${t}/${void 0===e?"":uf(e)}/manage/storage/reset`,l=new URLSearchParams;s&&l.set("chat_conversation_uuid",s),n&&l.set("file_path",n);const c=l.toString();return b(c?`${o}?${c}`:o,"DELETE",{enabled:!!i&&!!e,onSuccess:()=>{r.invalidateQueries({queryKey:[Nle,{orgUuid:i,entityId:e,artifactEntityType:t,conversationUuid:s,filePath:n}]})},meta:{noToast:!0}})})({entityId:n,artifactEntityType:a,conversationUuid:i,filePath:r});return t.jsx(gt,{title:t.jsx(XS,{defaultMessage:"Clear storage",id:"4x8ucf/B/Y"}),isOpen:e,onClose:s,modalSize:"md",hasCloseButton:!0,children:t.jsxs("div",{className:"flex flex-col gap-4",children:[t.jsx("p",{className:"text-text-400",children:t.jsx(XS,{defaultMessage:"Are you sure you want to clear the storage? This will delete all the data you have in this artifact and can\u2019t be recovered. Shared artifacts won\u2019t be affected.",id:"Bn8X5nmLPo"})}),t.jsxs("div",{className:"flex justify-end gap-2",children:[t.jsx(kt,{variant:"secondary",onClick:s,disabled:c,children:t.jsx(XS,{defaultMessage:"Cancel",id:"47FYwba+bI"})}),t.jsx(kt,{variant:"primary",onClick:async()=>{try{await l(void 0),s()}catch(e){o(t.jsx(XS,{defaultMessage:"Failed to clear storage. Please try again.",id:"TQNaO8mcNY"}),{error:e})}},loading:c,children:t.jsx(XS,{defaultMessage:"Clear storage",id:"4x8ucf/B/Y"})})]})]})})}async function qle({title:e,element:t}){return new Promise((s,n)=>{try{const a=document.head.innerHTML,i=document.createElement("iframe");i.style.position="fixed",i.style.right="0",i.style.bottom="0",i.style.width="0",i.style.height="0",i.style.border="0",i.setAttribute("sandbox","allow-same-origin allow-modals"),i.setAttribute("csp","");let r=!1;i.onload=()=>{r=!0},document.body.appendChild(i);const o=i.contentDocument||i.contentWindow?.document;if(!o)return document.body.removeChild(i),void n(new Error("Could not access iframe document"));o.write(`\n        <!DOCTYPE html>\n        <html>\n          <head>\n            <title>${e}</title>\n            ${a}\n            <style>\n              /* Remove browser-added headers and footers */\n              @page {\n                size: auto;\n                margin: 0; /* Keep at 0 to remove datetime, page count, website, etc */\n                padding: 25px 0; /* top and bottom page padding */\n              }\n              @media print {\n                html, body, pre, code {\n                  -webkit-print-color-adjust: exact !important;\n                  color-adjust: exact !important;\n                  print-color-adjust: exact !important;\n                }\n              \n                /* Smart page breaks */\n                h1, h2, h3 {\n                  page-break-after: avoid !important;\n                }\n                img, pre, table {\n                  page-break-inside: avoid !important;\n                }\n              }\n            </style>\n          </head>\n          <body>\n            ${t.outerHTML}\n          </body>\n        </html>\n      `),o.close();const l=document.title,c=()=>{try{document.title=e;try{i.contentWindow?.print()}catch{i.contentDocument?.execCommand("print")}setTimeout(()=>{d(),s()},100)}catch(t){d(),n(t)}},d=()=>{try{document.title=l,document.body.removeChild(i)}catch(e){}};(async()=>{try{r||await new Promise((e,t)=>{i.onload=()=>e(),i.onerror=e=>t(e)}),await async function(e,t=1e3){const s=e.querySelectorAll('link[rel="stylesheet"]');if(0===s.length)return;const n=Array.from(s).map(e=>new Promise(t=>{e.sheet?t():(e.addEventListener("load",()=>t()),e.addEventListener("error",()=>t()))}));await Promise.race([Promise.all(n),je(t)])}(o),c()}catch(e){d(),n(e)}})()}catch(a){n(a)}})}async function Wle(e){const t=document.getElementById("wiggle-file-content");if(!t)throw new Error("File content element not found");return qle({title:e.path.split("/").pop()||e.path,element:t})}const $le=fn(()=>a(()=>import("./cf774f0c4-DGww1Hri.js").then(e=>e.c),__vite__mapDeps([0,1]),import.meta.url).then(e=>e.PublishModal),{}),Gle=fn(()=>a(()=>import("./c24f06d42-u-yOk7Ob.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(e=>e.ArtifactMcpModal),{});function Kle({onClose:s,artifact:n,isStreaming:a,selectedArtifactMessageUuid:i,selectedArtifactVersionUuid:r,setSelectedArtifactVersionUuid:o,projectUuid:l,selectDoc:c,disablePublishing:d,sendMessage:u,richSandboxCapabilities:m,isOpen:p,isTemporary:f=!1,isShared:g=!1}){const h=JS(),C=ae(),[x,y]=e.useState("normal"),M=e.useRef(null),[_,j]=e.useState(!1),S=xe(),[L,N]=e.useState(!0),{data:I}=Ee(l),T=e.useRef(null),A=Hf(e=>e.focusRequestId),E=!!n;e.useEffect(()=>{p&&E&&Hf.getState().triggerElement&&requestAnimationFrame(()=>{T.current?.focus({preventScroll:!0})})},[p,E,A]);const R=n?.id,D=n?.type,H=e.useRef(i);e.useEffect(()=>{H.current=i},[i]);const P=e.useRef(C);P.current=C,e.useEffect(()=>{if(!p||!R)return;const e=performance.now();return()=>{const t=Math.round(performance.now()-e);if(t<100)return;const s=t>ece;P.current.track({event_key:"claudeai.artifact.dwell",message_uuid:H.current,artifact_type:D,dwell_ms:Math.min(t,ece),capped:s})}},[p,R,D]);const U=RN().chatResourceState.conversationUuid??"",{data:O}=Ile({entityId:r,artifactEntityType:"artifact_version",conversationUuid:U||void 0}),F=e.useMemo(()=>O?.mcp_servers||[],[O]),V=!d&&!S,[z,{open:Z,close:B}]=yP(!1),q=e.useCallback(()=>{N(!1)},[]),{data:W}=cle({includeDeletedArtifacts:!0}),$=n?.versions[n.versions.length-1],G=a&&!$?.isClosed,K=e.useMemo(()=>{if(!n)return 0;if(!G&&r&&!i?.startsWith(Pf)){const e=n.versions.findIndex(e=>e.uuid===r);if(-1!==e)return e}return G||!i||i.startsWith(Pf)?n.versions.length-1:n.versions.findIndex(e=>e.message===i)},[i,r,G,n]),Y=n?.versions[K]?.uuid;e.useEffect(()=>{Y&&Y!==r&&o(Y),y("normal")},[n?.id,Y,o,r]);const Q=S&&!f,[J,{open:X,close:ee}]=yP(!1),te=n&&W?.find(({artifact_identifier:e,message_uuid:t})=>e===n.id&&t===n.versions[K].message)?.published_artifact_uuid,se=W?.some(({published_artifact_uuid:e,deleted:t})=>e===te&&t)??!1,ne=n?.versions[K]?.message,{track:ie}=ae(),{data:re,refetch:oe}=nle({conversationUuid:U||void 0}),le=e.useMemo(()=>{const e=re?.artifact_versions;if(!e)return;const t=e.find(e=>e.uuid===r);if(t)return t.artifact_uuid;for(const s of n?.versions??[]){if(!s.uuid)continue;const t=e.find(e=>e.uuid===s.uuid);if(t)return t.artifact_uuid}},[re,r,n]),ce=e.useRef(!1);e.useEffect(()=>{G?ce.current=!0:ce.current&&(ce.current=!1,oe())},[G,oe]),function(t,s){const{remoteStorageEnabled:n}=Lf(),{isAutoPublish:a}=Fle(),{activeOrganization:i}=v(),r=i?.uuid,o=Nt("Mutation error"),l=gL(),c=e.useRef(null);e.useEffect(()=>{if(!(n&&t&&r&&s))return;const e=s.filter(e=>e.artifact_uuid===t),i=c.current;if(!i||i.artifactUuid!==t)return void(c.current={artifactUuid:t,uuids:new Set(e.map(e=>e.uuid))});const d=e.filter(e=>!i.uuids.has(e.uuid));for(const t of e)i.uuids.add(t.uuid);if(0===d.length)return;if(!a(t))return;const u=d.reduce((e,t)=>new Date(t.created_at).getTime()>new Date(e.created_at).getTime()?t:e);"shared"!==u.visibility&&o(`/api/organizations/${r}/artifact-versions/${u.uuid}/visibility`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({visibility:"shared"})}).then(()=>{l.setQueryData([df,{artifactVersionUuid:u.uuid,orgUuid:r}],{visibility:"shared"})})},[n,t,r,s,a,o,l])}(le,re?.artifact_versions);const de=e.useMemo(()=>{if(!re?.artifact_versions||!le)return[];return re.artifact_versions.filter(e=>e.artifact_uuid===le&&"shared"===e.visibility).sort((e,t)=>new Date(t.created_at).getTime()-new Date(e.created_at).getTime()).map(e=>{const t=n?.versions.findIndex(t=>t.uuid===e.uuid);return{...e,versionNumber:void 0!==t&&t>=0?t+1:void 0}})},[re,le,n?.versions]),{data:ue}=Ale({entityId:r,artifactEntityType:"artifact_version",conversationUuid:U},{enabled:!a}),[me,{open:pe,close:fe}]=yP(!1),{mutateAsync:ge}=(e=>{const{activeOrganization:t}=v(),s=t?.uuid,n=gL();return b(`/api/organizations/${s}/artifacts/${e}/byindex`,"POST",{onSuccess:e=>{n.invalidateQueries({queryKey:[df,{artifactVersionUuid:e.artifactVersionUUID,orgUuid:s}]})}})})(U),he=e.useCallback(async()=>{if(!r)try{const{artifactVersionUUID:e}=await ge({version_index:K,artifact_identifier:n?.id??""});o(e)}catch(e){return void k.error(w.ARTIFACTS,"Error getting artifact UUID",e)}ie({event_key:"artifact.share_button_clicked",message_uuid:ne,artifact_type:n?.type,artifact_language:n?.language}),X()},[r,X,ge,K,n?.id,o,ie,ne,n?.type,n?.language]),Ce=e.useCallback(()=>{ie({event_key:"artifact.publish_button_clicked",message_uuid:ne,artifact_type:n?.type,artifact_language:n?.language}),Z()},[Z,ie,ne,n?.type,n?.language]),ve=n?.type===Se.Text,ye=n?.type===Se.Markdown||n?.type===Se.Code,be=n?.type===Se.Html||n?.type===Se.React,ke=n?.type!==Se.Text&&!(G&&(n?.type===Se.Svg||n?.type===Se.Mermaid||n?.type===Se.React||n?.type===Se.Html)),we=!ke||"raw"===x,Me=Uf(U||void 0,g),_e=!!Me&&!we&&n?.type===Se.Markdown&&!!le;FN("artifact_open",p&&_e?"ready":"pending",{renderMode:"markdown_panel",artifactType:"markdown",artifactId:n?.id});const je=n?.type===Se.Html,Le=je?Me:void 0,Ne=je&&le?Me:void 0,Ie=e.useMemo(()=>({kind:"artifact",artifactId:le??""}),[le]),Te=e.useMemo(()=>({review_surface:"chat",conversation_uuid:U||null,session_id:null}),[U]),Ae=n?.versions[K]?.resultState??"",{token:Re,sandboxContent:De,pageTextIndex:He}=function(t,s,n=!1){const{htmlPreviewPinsEnabled:a}=Lf(),i=a&&!!t&&!n,[r]=e.useState(()=>ua()),o=e.useMemo(()=>i?pH(s,r):void 0,[i,s,r]),l=e.useMemo(()=>i?fH(s):void 0,[i,s]);return{token:r,sandboxContent:o,pageTextIndex:l}}(Le,Ae,G),{htmlPreviewPinsEnabled:Pe}=Lf(),[Ue,Oe]=e.useState(!1),Fe=Pe&&!!Ne&&!we,Ve=e.useCallback(()=>{Oe(e=>!e)},[]);e.useEffect(()=>{Oe(!1)},[n?.id]),e.useEffect(()=>{Fe||Oe(!1)},[Fe]);const ze=n?.versions.length??0,[Ze,Be]=e.useState(!1),qe=l&&n?{show:!G&&!I?.is_starter_project,artifact:n,projectUuid:l,selectedVersion:K,selectDoc:c}:void 0;return t.jsxs(t.Fragment,{children:[t.jsxs("div",{ref:T,tabIndex:n?-1:void 0,role:n?"region":void 0,"aria-label":n?h.formatMessage({defaultMessage:"Artifact panel{title}",id:"KzYJOn+vJS"},{title:n.title?`: ${n.title}`:""}):void 0,className:dt(n?"bg-bg-000 flex h-full flex-col relative outline-none":"absolute opacity-0 w-0 h-0 overflow-hidden pointer-events-none"),onClick:()=>Ze&&Be(!1),onKeyDown:e=>{if(!e.defaultPrevented&&"Escape"===e.key&&n&&!z&&!J&&!_&&!me&&!Ze){if(e.stopPropagation(),Ue)return void Oe(!1);s()}},children:[t.jsx(Yle,{versionCount:ze,selectedVersion:K,artifact:n,canRenderNormal:ke,canOnlyRenderRaw:ve,canOnlyRenderNormal:ye,viewing:x,setViewing:y,showRaw:we,canRefresh:be,isSandboxLoading:L,handleRefresh:()=>{N(!0),M.current&&M.current.refresh()},isOpen:p,showHtmlReviewToggle:Fe,htmlReviewCommentMode:Ue,onHtmlReviewToggle:Ve,canShare:Q,handleOpenShareModal:he,isStreaming:a,onClose:s,hasMenuOpen:Ze,setHasMenuOpen:Be,canPublish:V,wasUnpublished:se,publishedArtifactUuid:te,openPublishModal:Ce,projectParams:qe,richSandboxRef:M,hasArtifactToolConfig:!!O?.mcp_servers?.length,setShowArtifactMcpModal:j,storageInfo:ue,openResetStorageModal:pe,handleVersionSelect:e=>{const t=n?.versions[e].uuid;t&&o(t)}}),_e&&le?t.jsx(Ele,{artifactUuid:le,content:n?.versions[K]?.resultState??"",citations:n?.versions[K]?.citations,conversationUuid:U||void 0,sendMessage:u,sendDisabled:a,isStreaming:G}):t.jsx(Vle,{ownerKey:Ne,token:void 0!==De?Re:null,documentRef:Ie,artifactUuid:le,analyticsCtx:Te,pageTextIndex:He,uiHidden:we||G,commentMode:Fe?Ue:void 0,onCommentModeChange:Fe?Oe:void 0,className:"relative flex min-h-0 w-full flex-1 flex-col",children:t.jsx(Mle,{isOpen:p,content:Ae,sandboxContent:De,type:n?.type,citations:n?.versions[K]?.citations,language:void 0===n?void 0:n.language||Of[n.type].syntaxName,showRaw:we,richSandboxRef:M,isCurrentStreaming:G,isChatStreaming:a,onSandboxConfirmation:q,sendMessage:u,richSandboxCapabilities:m,isLatestVersion:!!n&&K===n.versions.length-1,artifactId:n?.id,artifactContext:r?{uuid:r,type:"artifact_version",id:n?.id,conversation_uuid:U||void 0}:void 0,artifactVersion:K,onArtifactRuntimeError:e=>{C.track({event_key:"claudeai.artifacts.execution.error",artifact_version_uuid:r?.toString(),error_type:e.type,source:n?.versions[K].source})},artifact:n,hasMenuOpen:Ze,ArtifactMcpModal:Gle})})]}),n?.versions[K]&&t.jsxs(t.Fragment,{children:[z&&!se&&t.jsx($le,{messageUuid:n.versions[K].message,conversationUuid:U||void 0,isOpen:!0,onClose:B,artifact:n,selectedVersion:K,publishedArtifactUuid:te,richSandboxRef:M}),Q&&r&&t.jsx(Jle,{isOpen:J,onClose:ee,artifactVersionUuid:r,artifactUuid:le,artifact:n,messageUuid:n.versions[K].message,isProjectArtifact:!!I?.is_private,sharedVersions:de,onShared:oe})]}),_&&r&&t.jsx(Gle,{isOpen:_,requestedServers:F,onClose:()=>j(!1),artifactContext:{uuid:r,type:"artifact_version",id:n?.id,conversation_uuid:U||void 0}}),me&&r&&t.jsx(Ble,{isOpen:me,onClose:fe,entityId:r,artifactEntityType:"artifact_version",conversationUuid:U})]})}function Yle({versionCount:s,selectedVersion:n,artifact:a,canRenderNormal:i,canOnlyRenderRaw:r,canOnlyRenderNormal:o,viewing:l,setViewing:c,showRaw:d,canRefresh:u,isSandboxLoading:p,handleRefresh:f,isOpen:g,showHtmlReviewToggle:h,htmlReviewCommentMode:C,onHtmlReviewToggle:x,canShare:v,handleOpenShareModal:y,isStreaming:b,canPublish:k,wasUnpublished:w,publishedArtifactUuid:M,projectParams:_,onClose:j,openPublishModal:S,handleVersionSelect:L,hasMenuOpen:N,setHasMenuOpen:I,richSandboxRef:T,hasArtifactToolConfig:A,setShowArtifactMcpModal:E,storageInfo:R,openResetStorageModal:D}){const H=JS(),P=m(Ff),{copyToClipboard:U,didCopy:O}=xN(),{track:F}=ae(),{copyToProject:V,isCopiedToProject:z}=function({projectUuid:s,artifact:n,selectedVersion:a}){const[i,r]=e.useState(!1),{mutateAsync:o,data:l}=Zs(s??""),{addError:c}=ut();return e.useEffect(()=>{if(l?.uuid){r(!0);const e=setTimeout(()=>{r(!1)},12e3);return()=>clearTimeout(e)}},[l]),{copyToProject:async()=>{if(n)try{await o({file_name:`${n.title}.${Of[n.type].extension()}`,content:n.versions[a].resultState??""})}catch(e){c(t.jsx(XS,{defaultMessage:"Error adding artifact to project: {error}",id:"sSg3OiDDja",values:{error:e}}),{error:e})}},isCopiedToProject:i}}({artifact:a,projectUuid:_?.projectUuid??"",selectedVersion:n});async function Z(){if(!a)return;const e=a.versions[n].resultState??"";F({event_key:"claudeai.artifact.copied",message_uuid:a.versions[n]?.message,artifact_type:a.type,char_count:e.length});const t=a.type===Se.Markdown;if(a.type===Se.React&&T.current){const t=await(T.current?.copyHtmlContent());t?await U({text:t,html:t}):await U(e)}else if(t)try{const t=$ie(e);await U({text:e,html:t})}catch(s){await U(e)}else await U(e)}const{ref:B,width:q}=function(){const t=e.useRef(null),[s,n]=e.useState(()=>t.current?.offsetWidth??null);return e.useEffect(()=>{const e=MT(()=>{t.current&&n(t.current.offsetWidth)},20,{leading:!0,trailing:!0}),s=new ResizeObserver(e);if(t.current){const n=t.current;return e(),s.observe(n),()=>s.disconnect()}},[]),{ref:t,width:s}}(),W=q&&q<480,$=!d&&u,{addError:G}=ut(),K=a?.type===Se.Markdown&&"raw"!==l?t.jsx(KL.Item,{onClick:async()=>{try{await async function(e){if(e.type!==Se.Markdown)throw new Error("Only markdown artifacts can be saved as PDF");const t=document.getElementById("markdown-artifact");if(!t)throw new Error("Markdown artifact element not found");return qle({title:e?.title||"Artifact",element:t})}(a)}catch(e){G(t.jsx(XS,{defaultMessage:"Error downloading PDF",id:"fes7nfwp3b"}),{error:e})}},children:t.jsx(XS,{defaultMessage:"Download as PDF",id:"camH0DLf91"})},"saveAsPdf"):null,Y=a?t.jsx(Qle,{artifact:a,selectedVersion:n},"download"):null,Q=e.useRef(null),J=C?H.formatMessage({defaultMessage:"Done commenting",id:"cXIcxYfeiJ"}):H.formatMessage({defaultMessage:"Comment",id:"LgbKvU/n17"});return t.jsxs("div",{ref:B,className:dt("pr-2 pl-3 flex items-center justify-between gap-2 select-none",P?[zf,Zf,"draggable"]:"py-2"),style:P?Vf:void 0,children:[a&&t.jsx(Zle,{currentArtifact:a,hasMenuOpen:N,setHasMenuOpen:I}),N?t.jsxs("div",{className:"flex justify-between items-center flex-1 text-body text-secondary pl-1",children:[t.jsx(XS,{defaultMessage:"Switch between artifacts",id:"mYiLqlDMdl"}),!d&&$&&p?t.jsxs("div",{role:"status",className:"flex size-7 items-center justify-center",children:[t.jsx(wN,{size:"sm"}),t.jsx("span",{className:"sr-only",children:t.jsx(XS,{defaultMessage:"Loading artifact",id:"fKM4t+Ab1p"})})]}):null]}):t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"flex items-center flex-1 gap-2",children:[!(!i||r||o)&&t.jsx(sm,{size:"sm","aria-label":H.formatMessage({defaultMessage:"Artifact view",id:"3+bDH46ChZ"}),value:"normal"===l?"normal":"code",onChange:e=>{c("normal"===e?"normal":"raw")},segments:[{value:"normal",icon:"Eye",tooltip:H.formatMessage({defaultMessage:"Preview",id:"TJo5E6JuIN"})},{value:"code",icon:"Code",tooltip:H.formatMessage({defaultMessage:"Code",id:"h2vipunVVd"})}]}),s>1?t.jsxs(KL.Root,{children:[t.jsx(KL.Trigger,{render:t.jsxs(rN,{variant:"ghost",size:"sm",icon:"CaretDown",iconPosition:"end","data-testid":"artifact-version-trigger","aria-label":H.formatMessage({defaultMessage:"Switch artifact version, currently version {versionNum}",id:"ig8B3bgm/r"},{versionNum:n+1}),children:["v",n+1,W||n!==s-1?null:t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"text-muted",children:"\xb7"}),t.jsx(XS,{defaultMessage:"Latest",id:"adThp5MDl0"})]})]})}),t.jsx(KL.Popup,{align:"start",children:t.jsx(KL.Group,{children:Array.from({length:s}).map((e,t)=>s-t).map(e=>t.jsx(KL.Item,{"data-testid":"version-dropdown",checked:e-1===n,checkedRole:"radio",hint:e===s?H.formatMessage({defaultMessage:"Latest",id:"adThp5MDl0"}):void 0,onClick:()=>L(e-1),children:t.jsx(XS,{defaultMessage:"Version {versionNum}",id:"iMMX+ZCJ/I",values:{versionNum:e}})},e))})})]}):null]}),t.jsxs("div",{className:"flex gap-2 items-center",children:[W?t.jsxs(KL.Root,{children:[t.jsx(KL.Trigger,{render:t.jsx(rN,{variant:"ghost",size:"sm",iconOnly:!0,icon:"DotsVertical",tooltip:!1,"data-testid":"artifact-menu-trigger","aria-label":H.formatMessage({defaultMessage:"More options for artifact",id:"O91Ji7GVP2"})})}),t.jsxs(KL.Popup,{align:"end",children:[h&&t.jsx(KL.Item,{onClick:x,children:J},"html-review-toggle"),$&&t.jsx(KL.Item,{disabled:p,onClick:f,children:t.jsx(XS,{defaultMessage:"Refresh",id:"rELDbByu8U"})},"refresh"),R&&R.total_size_bytes>0&&!d&&t.jsx(KL.Item,{onClick:D,children:t.jsx(XS,{defaultMessage:"Clear storage",id:"4x8ucf/B/Y"})},"reset-storage"),A&&!d&&t.jsx(KL.Item,{onClick:()=>E(!0),children:t.jsx(XS,{defaultMessage:"Manage connectors",id:"cqx+RdJnHp"})},"manage-connectors"),t.jsx(KL.Item,{onClick:Z,children:t.jsx(XS,{defaultMessage:"Copy",id:"4l6vz1/eZ5"})},"copy"),v?t.jsx(KL.Item,{onClick:y,children:t.jsx(XS,{defaultMessage:"Share",id:"OKhRC6eWRw"})},"share"):null,w?t.jsx(KL.Item,{disabled:!0,onClick:S,children:t.jsx(XS,{defaultMessage:"Unpublished",id:"wbU4tD+0G+"})},"unpublished"):k?t.jsx(KL.Item,{onClick:S,children:t.jsx(XS,{defaultMessage:"Publish",id:"syEQFEKfku"})},"publish"):null,Y,K]})]}):(()=>{const e=h&&t.jsxs(t.Fragment,{children:[t.jsx(rN,{ref:Q,variant:"ghost",size:"sm",iconOnly:!0,icon:C?"ChatAddFilled":"ChatAdd","aria-pressed":C,onClick:x,"aria-label":J}),t.jsx(zle,{anchor:Q,commentMode:C,panelOpen:g})]}),s=!d&&$&&t.jsx(rN,{variant:"ghost",size:"sm",iconOnly:!0,icon:"ArrowClockwise",busy:p,onClick:f,"aria-label":H.formatMessage({defaultMessage:"Refresh",id:"rELDbByu8U"})}),n=v&&t.jsx(rN,{onClick:y,variant:"primary",size:"sm",icon:"Share",disabled:b,children:t.jsx(XS,{defaultMessage:"Share",id:"OKhRC6eWRw"})}),a=k&&t.jsx(gN,{reason:w?H.formatMessage({defaultMessage:"This artifact was previously unpublished. Create a new artifact to publish again.",id:"173M62fqu+"}):void 0,children:t.jsx(rN,{onClick:S,variant:"primary",size:"sm",disabled:w||b,children:void 0===M||w?t.jsx(XS,{defaultMessage:"Publish",id:"syEQFEKfku"}):t.jsx(XS,{defaultMessage:"Published",id:"w7tf2zwi6+"})})}),i=t.jsx(Nu,{variant:"secondary",size:"sm","aria-label":H.formatMessage({defaultMessage:"Copy",id:"4l6vz1/eZ5"}),menuLabel:H.formatMessage({defaultMessage:"Copy options",id:"2kvXTlOKnF"}),label:t.jsxs("span",{className:"relative",children:[t.jsx("span",{className:dt(O?"invisible":""),children:t.jsx(XS,{defaultMessage:"Copy",id:"4l6vz1/eZ5"})}),O?t.jsx("span",{className:"absolute inset-0 flex items-center justify-center",children:t.jsx($L,{name:"Check",size:"sm"})}):null]}),onPrimaryClick:Z,items:t.jsxs(t.Fragment,{children:[_?.show?z?t.jsx(KL.Item,{disabled:!0,children:t.jsx(XS,{defaultMessage:"Copied to project",id:"KYVs6Ta+VU"})},"added-to-project"):t.jsx(KL.Item,{onClick:V,children:t.jsx(XS,{defaultMessage:"Copy to project",id:"Xmf/Sp7n9T"})},"add-to-project"):null,Y,K]})}),r=R&&R.total_size_bytes>0&&!d&&t.jsx(rN,{variant:"ghost",size:"sm",iconOnly:!0,icon:"Trash",onClick:D,"aria-label":H.formatMessage({defaultMessage:"Clear storage",id:"4x8ucf/B/Y"})}),o=A&&!d&&t.jsx(rN,{variant:"ghost",size:"sm",iconOnly:!0,icon:"Settings",onClick:()=>E(!0),"aria-label":H.formatMessage({defaultMessage:"Manage connectors",id:"cqx+RdJnHp"})});return t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"flex gap-1 items-center",children:[e,s,r,o]}),i,n,a]})})(),t.jsx(rN,{variant:"ghost",size:"sm",iconOnly:!0,icon:"X",onClick:j,"aria-label":H.formatMessage({defaultMessage:"Close artifact",id:"92qI2JZM2l"})})]})]})]})}function Qle({artifact:s,selectedVersion:n}){const{downloadUrl:a,filename:i}=function(t,s){const[n,a]=e.useState(""),[i,r]=e.useState("");return e.useEffect(()=>{const e=t.versions[s].resultState??"",n=Df(t),i=new Blob([e],{type:"text/plain"}),o=URL.createObjectURL(i);return a(o),r(`${t.id}.${n}`),()=>{URL.revokeObjectURL(o)}},[t,s]),{downloadUrl:n,filename:i}}(s,n),{track:r}=ae(),o=function(e){switch(e.type){case Se.Markdown:return"Markdown";case Se.Html:return"HTML";case Se.React:return"TSX";case Se.Svg:return"SVG";case Se.Text:return"TXT";case Se.Mermaid:return"Mermaid";case Se.Code:return Of[e.type].extension(e)??null;default:return null}}(s);return t.jsx(KL.Item,{"data-testid":"export-download",href:a,download:i,onClick:()=>{r({event_key:"claudeai.artifact.downloaded",message_uuid:s.versions[n]?.message,artifact_type:s.type})},children:o?t.jsx(XS,{defaultMessage:"Download as {fileType}",values:{fileType:o},id:"PJh4v0uaV6"}):t.jsx(XS,{defaultMessage:"Download file",id:"k9qHCCLPA5"})})}function Jle({onClose:s,isOpen:n,artifactVersionUuid:a,artifactUuid:i,artifact:r,messageUuid:o,isProjectArtifact:l,sharedVersions:c,onShared:d}){const u=JS(),{track:m}=ae(),{mutateAsync:p,isPending:f}=mle(a),{data:g,isLoading:h}=(e=>{const{activeOrganization:t}=v(),s=t?.uuid;return B(`/api/organizations/${s}/artifact-versions/${void 0===e?e:uf(e)}/visibility`,{queryKey:[df,{artifactVersionUuid:e,orgUuid:s}],enabled:!!e,meta:{noToast:!0}})})(a),C="shared"===g?.visibility,{remoteStorageEnabled:x}=Lf(),{setAutoPublish:y}=Fle(),b=f||h,[k,w]=e.useState("latest");e.useEffect(()=>{n&&w("latest")},[n]);const[M,_]=e.useState("");e.useEffect(()=>{if(""===M)return;const e=setTimeout(()=>_(""),5e3);return()=>clearTimeout(e)},[M]);const j=e=>"undefined"==typeof window?e:`${window.location.origin}${e}`,S=e.useMemo(()=>j("latest"===k&&i?`/artifacts/latest/${i}`:"specific_version"===k||"latest"===k?`/artifacts/${a}`:`/artifacts/${k}`),[k,i,a]),{copyToClipboard:L}=xN(),N=b?"loading":C?"shared":"private",I=e.useRef(N);I.current!==N&&("loading"!==I.current&&"private"===N&&_(u.formatMessage({defaultMessage:"Artifact no longer shared",id:"5AFOwOoFPe"})),I.current=N);const T=e=>{"private"===e&&C&&p({visibility:"private"}).then(()=>{x&&i&&y(i,!1),s()}),"shared"!==e||C||p({visibility:"shared"}).then(()=>{x&&i&&y(i,!0),d?.(),L(S)})};return t.jsx(Xle,{isOpen:n,onClose:s,isLoading:b,isShared:C,isProjectArtifact:l,sharedLink:S,updateSharedState:T,handleClickShareButton:()=>{T("shared"),m({event_key:"artifact.share.modal.share_button_clicked",message_uuid:o,artifact_type:r.type,artifact_language:r.language})},linkMode:k,onLinkModeChange:i?w:void 0,sharedVersions:c,autoPublishesNewVersions:x&&!!i})}function Xle({isOpen:e,onClose:s,isShared:n,isProjectArtifact:a,sharedLink:i,isLoading:r,updateSharedState:o,handleClickShareButton:l,linkMode:c,onLinkModeChange:d,sharedVersions:u,autoPublishesNewVersions:m=!1,autoPublish:p,onAutoPublishChange:f,unsharedDescription:g}){const h=JS(),{copyToClipboard:C,didCopy:x}=xN(),v=y("require_project_auth_for_shared_artifacts"),{remoteStorageEnabled:b}=Lf();return t.jsx(lN.Root,{open:e,onOpenChange:e=>{e||s()},children:t.jsxs(lN.Popup,{size:"md",children:[t.jsx(lN.Header,{showClose:!0,children:n?t.jsx(XS,{defaultMessage:"Artifact shared",id:"0TqmonlxQo"}):t.jsx(XS,{defaultMessage:"Share artifact",id:"FeSSOL+/49"})}),t.jsx("div",{className:"mt-1 flex flex-col gap-2.5",children:n?t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"border-0.5 border-border-300 text-text-100 flex flex-col rounded-xl",children:[t.jsxs("div",{className:"border-b-0.5 border-border-300 flex gap-3 py-3 pl-3 pr-5",children:[t.jsx("div",{children:t.jsx(oU,{className:"mt-1",size:16})}),t.jsxs("div",{children:[t.jsx("h6",{className:"font-medium",children:t.jsx(XS,{defaultMessage:"Shared",id:"kWI6zXRaHY"})}),t.jsx("p",{className:"text-text-300",children:a&&v?b?t.jsx(XS,{defaultMessage:"Anyone who has access to this project can view this artifact and its associated attachments, files, and comments.",id:"LrYUNtA+Ng"}):t.jsx(XS,{defaultMessage:"Anyone who has access to this project can view this artifact and its associated attachments and files.",id:"fxjJJNetIb"}):b?t.jsx(XS,{defaultMessage:"Anyone in your organization with the link can view this artifact and its associated attachments, files, and comments.",id:"bBuVIsi/1i"}):t.jsx(XS,{defaultMessage:"Anyone in your organization with the link can view this artifact and its associated attachments and files.",id:"dBujTN2YwF"})})]})]}),t.jsxs("div",{className:"flex items-center gap-3 pt-3 pl-4 pr-5 "+(d?"":"pb-3"),children:[/^https?:/.test(i)?t.jsx(er,{className:"text-text-300 truncate text-body",href:i,children:i}):t.jsx("span",{className:"text-text-300 truncate text-body select-all",children:i}),t.jsx(rN,{variant:"ghost",className:"!text-accent-000 hover:bg-accent-900 font-medium",icon:x?"CheckCircle":"LinkSimple",onClick:e=>{C(i,e.currentTarget)},children:x?t.jsx(XS,{defaultMessage:"Link copied",id:"zU/q1NoIdN"}):t.jsx(XS,{defaultMessage:"Copy link",id:"lbr3Lq2Lnm"})})]}),d&&t.jsx("div",{className:"pl-4 pb-3",children:t.jsx(KL,{variant:"ghost",size:"sm",className:"-ml-pad-md",label:"latest"===c?t.jsx(XS,{defaultMessage:"Latest published version",id:"JFYjwM0G9V"}):(()=>{const e=u?.find(e=>e.uuid===c);if(!e)return t.jsx(XS,{defaultMessage:"This version",id:"HnV5dlTlB+"});const s=(u?.length??0)-(u?.indexOf(e)??0);return t.jsx(XS,{defaultMessage:"Version {number} \u2014 {date}",id:"dGCPKb2VtU",values:{number:e.versionNumber??s,date:h.formatDate(e.created_at,{month:"short",day:"numeric"})}})})(),items:t.jsxs(KL.Group,{children:[t.jsx(KL.Item,{checked:"latest"===c,checkedRole:"radio",onClick:()=>d("latest"),children:t.jsx(XS,{defaultMessage:"Latest published version",id:"JFYjwM0G9V"})}),u?.map((e,s)=>{const n=(u?.length??0)-s;return t.jsx(KL.Item,{checked:c===e.uuid,checkedRole:"radio",onClick:()=>d(e.uuid),children:t.jsx(XS,{defaultMessage:"Version {number} \u2014 {date}",id:"dGCPKb2VtU",values:{number:e.versionNumber??n,date:h.formatDate(e.created_at,{month:"short",day:"numeric"})}})},e.uuid)})]})})})]}),f&&t.jsxs("label",{className:"border-0.5 border-border-300 text-primary flex items-center justify-between gap-3 rounded-xl py-3 pl-4 pr-3",children:[t.jsxs("div",{className:"flex flex-col",children:[t.jsx("span",{className:"font-medium",children:t.jsx(XS,{defaultMessage:"Always show latest version",id:"xvEaun0GGh"})}),t.jsx("span",{className:"text-secondary text-body",children:t.jsx(XS,{defaultMessage:"New versions will be shared automatically when this artifact changes.",id:"dAW7Dw2ZQ1"})})]}),t.jsx(fN,{checked:p??!1,onCheckedChange:f,"aria-label":h.formatMessage({defaultMessage:"Always show latest version",id:"xvEaun0GGh"})})]}),o&&t.jsx("div",{className:"flex items-center gap-4",children:t.jsx(rN,{size:"lg",variant:"secondary",busy:r,onClick:()=>o("private"),children:t.jsx(XS,{defaultMessage:"Unshare",id:"bEq+NWNIXF"})})})]}):t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"text-text-400 flex flex-col gap-3 py-3",children:a?t.jsxs("p",{className:"bg-bg-300 text-text-300 flex gap-2 rounded-xl p-3 text-body",children:[t.jsx(Ft,{size:16,className:"mt-0.5 shrink-0"}),v?t.jsx(XS,{defaultMessage:"This artifact was created in a private project. Anyone in your organization who has access to this project will be able to view this artifact.",id:"g6r4HATHuW"}):t.jsx(XS,{defaultMessage:"This artifact was created in a private project. Sharing it will make it viewable by anyone in your organization with the link, not just project members. Don't share artifacts containing sensitive information.",id:"QZcE0GuKAV"})]}):m?t.jsxs("p",{children:["",t.jsx(XS,{defaultMessage:"Sharing this artifact will also share its associated attachments, files, and comments. New versions will be shared automatically so collaborators can keep commenting on the latest content.",id:"eGvPBVASAG"})]}):t.jsx("p",{children:g??t.jsx(XS,{defaultMessage:"Anyone in your organization can view this artifact. It also has access to attachments and files in the conversation.",id:"AnqiBApCMX"})})}),t.jsxs("div",{className:"border-0.5 border-border-300 text-text-100 flex gap-3 rounded-xl py-3 pl-3 pr-5",children:[t.jsx(WH,{className:"mt-0.5",size:16}),t.jsxs("div",{children:[t.jsx("h6",{className:"font-medium",children:t.jsx(XS,{defaultMessage:"Unshared",id:"0r/9ANkloS"})}),t.jsx("p",{className:"text-text-300",children:t.jsx(XS,{defaultMessage:"Only you have access",id:"U+7IIlpC6m"})})]})]}),t.jsx("div",{className:"mt-3 flex w-full items-center justify-end gap-2",children:t.jsx(rN,{size:"lg",variant:"primary",busy:r,onClick:e=>l(e.currentTarget),children:t.jsx(XS,{defaultMessage:"Share & copy link",id:"E7GQdF/HSA"})})})]})})]})})}const ece=18e5;function tce(e,t,s,n="specific_version"){if("share"===e){let e;return e="latest"===n?`/artifacts/latest/${t.artifact_uuid}`:"specific_version"===n?`/artifacts/${t.artifact_version_uuid}`:`/artifacts/${n}`,"undefined"==typeof window?e:`${window.location.origin}${e}`}if("publish"===e&&t.published_artifact_uuid)return`${s}/public/artifacts/${t.published_artifact_uuid}`}var sce=(e=>(e.NOT_CONNECTED="not_connected",e.MISSING_SCOPE="missing_scope",e.UNKNOWN="unknown",e))(sce||{});const nce=({isOpen:s,onClose:n,errorType:a,callerIdentifier:i,pathname:r})=>{const o=ae(),{activeOrganization:l}=v(),[c,d]=e.useState(!1),{serverId:u}=wE(),m=et({pathname:r,queryString:`gdrive_export_success=${i||"gdrive-export-modal"}`,source:tt.GdriveConnectionModal});if(Bf({callerIdentifier:i||"gdrive-export-modal",successParam:"gdrive_export_success",handleOpen:()=>{d(!1),o.track({event_key:"wiggle.gdrive.connection.success",organization_id:l?.uuid,error_type:a,caller_identifier:i}),n()}}),e.useEffect(()=>{s&&o.track({event_key:"wiggle.gdrive.connection.modal_shown",organization_id:l?.uuid,error_type:a,caller_identifier:i})},[s,a,i,l?.uuid,o]),"unknown"===a)return null;const{title:p,description:f,buttonText:g}=(()=>{switch(a){case"not_connected":return{title:"Connect Claude to Google Drive",description:t.jsxs("div",{className:"space-y-4",children:[t.jsx("p",{children:t.jsx(XS,{defaultMessage:"This will allow Claude to:",id:"Fh77iGv4CM"})}),t.jsxs("ul",{className:"list-disc pl-5 text-sm text-text-300 space-y-1",children:[t.jsx("li",{children:t.jsx(XS,{defaultMessage:"Add DOCX, XLSX, and PPTX files that it creates directly to Google Drive",id:"H4PCn1IJGu"})}),t.jsx("li",{children:t.jsx(XS,{defaultMessage:"Search and summarize Google Drive files",id:"o+UM/Lfa+u"})})]})]}),buttonText:"Connect"};case"missing_scope":return{title:"Reconnect Claude to Google Drive",description:t.jsxs("div",{className:"space-y-4",children:[t.jsx("p",{children:t.jsx(XS,{defaultMessage:"This will give Claude permission to see, edit, create, and delete files that it creates in Google Drive.",id:"vHppAPeTNV"})}),t.jsx(ea,{className:"w-fit",children:t.jsx(XS,{defaultMessage:"You\u2019ll only need to do this once. Any existing Google Drive capabilities in Claude will still work.",id:"v8YR2us4Y6"})})]}),buttonText:"Reconnect"}}})();return t.jsx(gt,{modalSize:"lg",isOpen:s,onClose:n,hasCloseButton:!0,title:t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx(it,{type:He.GDRIVE,size:20}),t.jsx("span",{children:p})]}),children:t.jsxs("div",{className:"mt-5 space-y-6",children:[f,t.jsxs("div",{className:"flex justify-end gap-2",children:[t.jsx(kt,{onClick:n,variant:"secondary",children:t.jsx(XS,{defaultMessage:"Cancel",id:"47FYwba+bI"})}),t.jsx(kt,{onClick:()=>{u&&(d(!0),o.track({event_key:"wiggle.gdrive.connection.initiated",organization_id:l?.uuid,error_type:a,caller_identifier:i}),m({uuid:u,url:"https://api.anthropic.com/mcp/gdrive/sse"}))},loading:c,disabled:c,children:g})]})]})})};function ace(){const t=JS(),{addError:s}=ut(),n=ae(),a=$s(),{activeOrganization:i}=v(),r=i?.uuid,o=e.useRef(!1),[l,c]=e.useState(!1),[d,u]=e.useState(!1),[m,p]=e.useState(sce.NOT_CONNECTED),{mutateAsync:f}=b(({file_uuid:e})=>`/api/organizations/${r}/cowork/files/${encodeURIComponent(e)}/export-to-google-drive`,"POST",{meta:{noToast:!0},transformVariables:()=>({})}),{isDriveAuthenticated:g,isFetched:h}=fE({callerIdentifier:"cowork-drive-export-precheck"}),C=et({queryString:"gdrive_export_success=cowork-export-direct",source:tt.CoworkGdriveExport});return{exportToDrive:e.useCallback(async(e,i,l)=>{const d=Ju?.exportLocalFileToGoogleDrive;if(l?!r:!d)return;if(o.current)return;const m=i.split(/[/\\]/).pop()??i,x=m.lastIndexOf("."),v={session_id:e,file_extension:x>0?m.slice(x+1):"",via_file_uuid:Boolean(l)};if(h&&!g)return n.track({event_key:"cowork.file.gdrive_export.failed",...v,error_code:"not_authenticated_pre_check"}),p(sce.NOT_CONNECTED),void u(!0);n.track({event_key:"cowork.file.gdrive_export.attempted",...v}),o.current=!0,c(!0);try{let r;if(l)try{const e=await f({file_uuid:l});r={driveUrl:e.drive_url,driveFileId:e.drive_file_id}}catch(y){r=function(e){if(!(e instanceof cs))throw e;const t=e.extra?.details;return{errorCode:e.errorCode??t?.error_code??"unexpected_error",mcpServerId:t?.server_id,mcpServerUrl:t?.server_url}}(y)}else{if(!d)return;r=await d(e,encodeURIComponent(i))}if(r.driveUrl)return window.open(r.driveUrl,"_blank"),void n.track({event_key:"cowork.file.gdrive_export.success",...v});const o=r.errorCode;if(n.track({event_key:"cowork.file.gdrive_export.failed",...v,error_code:o??"missing_error_code"}),"google_drive_not_connected"===o||"google_drive_insufficient_scopes"===o)return a&&r.mcpServerId?void C({uuid:r.mcpServerId,url:r.mcpServerUrl}):(p("google_drive_insufficient_scopes"===o?sce.MISSING_SCOPE:sce.NOT_CONNECTED),void u(!0));if("file_too_large"===o)return void s(t.formatMessage({defaultMessage:"File is too large to export. Maximum size is 30 MB.",id:"+MZsFNAKNO"}),{errorContext:{tags:{source:"cowork_drive_export"}},messageForLogging:"Cowork drive export failed: file too large"});if("unsupported_file_type"===o)return void s(t.formatMessage({defaultMessage:"This file type cannot be opened in Google Drive.",id:"olI0GPHfH6"}),{errorContext:{tags:{source:"cowork_drive_export"}},messageForLogging:"Cowork drive export failed: unsupported file type"});if("google_drive_transient_error"===o)return void s(t.formatMessage({defaultMessage:"Google Drive is temporarily unavailable. You can try again.",id:"rVSXBDiQZ2"}),{errorContext:{tags:{source:"cowork_drive_export"}},messageForLogging:"Cowork drive export failed: transient error"});if("google_drive_domain_policy"===o)return void s(t.formatMessage({defaultMessage:"Your organization's Google Workspace administrator has disabled third-party Drive apps. Contact your admin to allowlist Claude, or download the file instead.",id:"jLiXTzmbtK"}),{errorContext:{tags:{source:"cowork_drive_export"}},messageForLogging:"Cowork drive export failed: domain policy"});if("google_drive_quota_exceeded"===o)return void s(t.formatMessage({defaultMessage:"Your Google Drive storage is full. Free up space and try again.",id:"kz5tyqmLWI"}),{errorContext:{tags:{source:"cowork_drive_export"}},messageForLogging:"Cowork drive export failed: quota exceeded"});if("google_drive_conversion_unsupported"===o)return void s(t.formatMessage({defaultMessage:"Google Drive couldn't convert this file. You can download it instead.",id:"Dot4iRXEAO"}),{errorContext:{tags:{source:"cowork_drive_export"}},messageForLogging:"Cowork drive export failed: conversion unsupported"});if("hipaa_gated"===o)return void s(t.formatMessage({defaultMessage:"Exporting to Google Drive isn't available for your organization.",id:"CjHH+tffbM"}),{errorContext:{tags:{source:"cowork_drive_export"}},messageForLogging:"Cowork drive export failed: hipaa gated"});s(t.formatMessage({defaultMessage:"Export to Google Drive failed. You can try again.",id:"FVmceVvClk"}),{errorContext:{tags:{source:"cowork_drive_export",error_code:o??"missing_error_code"}},messageForLogging:"Cowork drive export failed: unknown error"})}catch(y){const e=Boolean(l);n.track({event_key:"cowork.file.gdrive_export.failed",...v,error_code:e?"remote_fetch_error":"local_file_access_error"}),s(e?t.formatMessage({defaultMessage:"Export to Google Drive failed. You can try again.",id:"FVmceVvClk"}):Ere(y,t,"read"),{error:y,errorContext:{tags:{source:"cowork_drive_export"}},messageForLogging:e?"Cowork drive export failed: remote fetch error":"Cowork drive export failed: local file error"})}finally{o.current=!1,c(!1)}},[s,n,t,r,a,C,h,g,f]),isExporting:l,showConnectionModal:d,setShowConnectionModal:u,connectionError:m}}function ice({conversationUuid:s,source:n}){const{activeOrganization:a}=v(),{addError:i}=ut(),r=ae(),[o,l]=e.useState(!1),[c,d]=e.useState(sce.NOT_CONNECTED),u=$s(),{serverId:m}=wE(),{isDriveAuthenticated:p,initDriveAuth:f,isFetched:g}=fE(),h=et({queryString:"gdrive_export_success=export-direct",source:tt.GdriveExport}),C=a?.uuid,x=b(`/api/organizations/${C}/conversations/${s}/wiggle/export-to-google-drive`,"POST",{enabled:!!C&&!!s,meta:{noToast:!0}}),{mutateAsync:y}=x;return{handleOpenInGoogleDrive:e.useCallback(async e=>{if(!C||!s)return;if(m&&g&&!p)return void i(t.jsx("span",{children:t.jsx(XS,{defaultMessage:"<button>Authenticate</button> to export to Google Drive",id:"bQuLbzZRDC",values:{button:e=>t.jsx("button",{className:"underline",onClick:f,children:e})}})}),{messageForLogging:"Authenticate to export to Google Drive",errorContext:{tags:{source:"gdrive_export_auth"}}});const a=e.replace("computer://",""),o=PB({filePath:e,isShared:!1,conversationUuid:s,source:n});r.track({event_key:"wiggle.file.gdrive_export.attempted",...o});try{const e=await y({file_path:a});e.drive_url&&(window.open(e.drive_url,"_blank"),r.track({event_key:"wiggle.file.gdrive_export.success",...o}))}catch(c){let e,s,n,a;if(c instanceof cs){if(e=c.errorCode??void 0,!e&&c.extra?.details){const t=c.extra.details;e=t.error_code,n=t.server_id,a=t.server_url}s=c.message}else s="Export failed. Please try again.";const m=(e=>{switch(e){case"google_drive_not_connected":return sce.NOT_CONNECTED;case"google_drive_insufficient_scopes":return sce.MISSING_SCOPE;default:return sce.UNKNOWN}})(e);if(r.track({event_key:"wiggle.file.gdrive_export.failed",error_code:e,error_type:m,error_message:s,...o}),u&&(m===sce.NOT_CONNECTED||m===sce.MISSING_SCOPE)&&n)return void h({uuid:n,url:a});if(m===sce.NOT_CONNECTED||m===sce.MISSING_SCOPE)return d(m),void l(!0);if("google_drive_transient_error"===e)return void i(t.jsx(XS,{defaultMessage:"Google Drive is temporarily unavailable. Please try again.",id:"9yW8+oGYTQ"}),{error:c,errorContext:{tags:{source:"google_drive_export_transient"}}});if("google_drive_domain_policy"===e)return void i(t.jsx(XS,{defaultMessage:"Your organization's Google Workspace administrator has disabled third-party Drive apps. Contact your admin to allowlist Claude, or download the file instead.",id:"jLiXTzmbtK"}),{error:c,errorContext:{tags:{source:"google_drive_export_domain_policy"}}});if("google_drive_quota_exceeded"===e)return void i(t.jsx(XS,{defaultMessage:"Your Google Drive storage is full. Free up space and try again.",id:"kz5tyqmLWI"}),{error:c,errorContext:{tags:{source:"google_drive_export_quota"}}});if("google_drive_conversion_unsupported"===e)return void i(t.jsx(XS,{defaultMessage:"Google Drive couldn't convert this file. You can download it instead.",id:"Dot4iRXEAO"}),{error:c,errorContext:{tags:{source:"google_drive_export_conversion"}}});i(s,{error:c,errorContext:{tags:{source:"google_drive_export"}}})}},[C,s,n,r,y,i,u,m,h,g,p,f]),showConnectionModal:o,setShowConnectionModal:l,connectionError:c,isExporting:x.isPending}}function rce(e,t=!1){const s=/\.docx$/i.test(e),n=/\.xlsx$/i.test(e),a=/\.pptx$/i.test(e);if(t){const t=/\.md$/i.test(e),i=/\.csv$/i.test(e),r=/\.tsv$/i.test(e),o=/\.gif$/i.test(e),l=/\.(jpg|jpeg)$/i.test(e),c=/\.pdf$/i.test(e),d=/\.png$/i.test(e),u=/\.txt$/i.test(e),m=/\.json$/i.test(e);return s||n||a||t||i||r||o||l||c||d||u||m}return s||n||a}function oce(t,s,n){const a=t?s.get(t)??null:null,[i,r]=e.useState(a),[o,l]=e.useState(t),c=a??(o===t?i:null);return e.useEffect(()=>{if(!t||!n)return r(null),void l(t);if(s.has(t))return r(s.get(t)??null),void l(t);r(null),l(t);let e=!0;return n(t).then(n=>{n&&s.set(t,n),e&&r(n??null)}).catch(()=>{e&&r(null)}),()=>{e=!1}},[t,s,n]),c}const lce=new Map,cce=void 0===Ju?.whichApplication?void 0:async e=>await(Ju?.whichApplication?.(e))??null;function dce(e){return oce(e,lce,cce)}const uce=new Map,mce=void 0===Ju?.appInfoForExtension?void 0:async e=>await(Ju?.appInfoForExtension?.(e))??null;function pce(e){return oce(e,uce,mce)}const fce=/^[A-Za-z0-9_-]{1,64}$/,gce=/^[a-z0-9]{1,8}$/,hce=ng,Cce=ag,xce=["docx","pdf","claude","clarkdown","markdown"],vce={docx:"docx",pdf:"pdf",claude:"cd",clarkdown:"clark",markdown:"md"},yce=/^(.+)\.(clark|cd)$/i;function bce(e){return"markdown"===e.defaultExportFormat?"markdown":"cd"===e.workingExt?"claude":"clarkdown"}function kce(e,t){return void 0!==e.fileName?e.fileName===t:t===function(e){return e.fileName??`${e.id}.${e.workingExt??"clark"}`}(e)}const wce=new TextEncoder,Mce=new Map;const _ce=new Map;class jce extends Error{constructor(e){super(`documentFunnel.ingest: ${e}`),this.code=e}}function Sce(e){const t=e.replace(/\\/g,"/"),s=t.split("/"),n=s.at(-2)??"";if(!(n===qf||n===Wf&&Lce(t)))return null;const a=s.at(-1)??"";return yce.test(a)?a:null}function Lce(e){return e.startsWith(`${$f}${Wf}/`)||e.startsWith(`/working/${Wf}/`)}function Nce(e){const t=e.replace(/\\/g,"/");return t.toLowerCase().includes(`/${qf}/`)||Lce(t)}function Ice(e,t,s){const n=s.replace(/^.*[\\/]/,""),a=Gf(n);if(null===a)return null;const i=t[s],r=void 0!==i?e.find(e=>e.id===i):void 0;if(void 0!==r)return r;const o=Kf(n),l=Yf(n),c=Qf[a].defaultExportFormat;return e.find(e=>e.displayName===o&&(void 0!==e.sourceExt?e.sourceExt===l:e.defaultExportFormat===c))??null}function Tce(e){let t=5381;for(let s=0;s<e.length;s++)t=(t<<5)+t+e.charCodeAt(s)>>>0;return`adopt${t.toString(36)}`}function Ace(e,...t){const s=e.includes("\\")?"\\":"/";return[e.replace(/[\\/]+$/,""),...t].join(s)}function Ece(e){if("object"!=typeof e||null===e)return;const t=e,s="string"==typeof t.id?t.id:"";if(!fce.test(s))return;let n,a;if("string"==typeof t.baselineExt){if(!gce.test(t.baselineExt))return;n=t.baselineExt,a="string"==typeof t.baselineSha256?t.baselineSha256:void 0}const i="string"==typeof t.fileName&&Jf(t.fileName)?t.fileName:void 0;return{id:s,fileName:i,sourceExt:"string"==typeof t.sourceExt&&tg.test(t.sourceExt)?t.sourceExt:void 0,displayName:Kf("string"==typeof t.displayName?t.displayName:s),defaultExportFormat:(r=t.defaultExportFormat,"string"==typeof r&&xce.includes(r)?t.defaultExportFormat:"docx"),workingExt:void 0!==i?/\.cd$/i.test(i)?"cd":void 0:"cd"===t.workingExt?"cd":void 0,baselineExt:n,baselineSha256:a};var r}function Rce(e,t,s){const n=Ace(t,hce),a=function(e){let t=Mce.get(e);return void 0===t&&(t=new Map,Mce.set(e,t)),t}(s??t),i=function(e){let t=_ce.get(e);return void 0===t&&(t={manifest:Promise.resolve(),ingest:Promise.resolve()},_ce.set(e,t)),t}(s??t);function r(e,s,n="clark",a){if(!fce.test(e))throw new Error(`documentFunnel.pathsFor: invalid id ${e}`);if(void 0!==a&&!Jf(a))throw new Error("documentFunnel.pathsFor: unsafe fileName");if(void 0!==s&&!gce.test(s))throw new Error(`documentFunnel.pathsFor: invalid baselineExt ${s}`);if("clark"!==n&&"cd"!==n)throw new Error("documentFunnel.pathsFor: invalid workingExt");return{working:Ace(t,a??`${e}.${n}`),baseline:void 0!==s?Ace(t,eg,`${e}.${s}`):void 0,exportFor:s=>Ace(t,Xf,`${e}.${vce[s]}`)}}async function o(){let t,s;try{t=(await e.readWorkingFile(n)).content}catch{return{version:1,documents:[]}}if(wce.encode(t).length>Cce)return{version:1,documents:[]};try{s=JSON.parse(t)}catch{return{version:1,documents:[]}}if("object"!=typeof s||null===s||1!==s.version||!Array.isArray(s.documents))return{version:1,documents:[]};const a=[],i=new Set;for(const e of s.documents){const t=Ece(e);t&&!i.has(t.id)&&(i.add(t.id),a.push(t))}return{version:1,documents:a}}async function l(t){await e.writeScratchFile(n,JSON.stringify(t,null,2)+"\n")}function c(e){const t=i.manifest.then(e,e);return i.manifest=t.catch(()=>{}),t}function d(e){if(!fce.test(e.id))return Promise.reject(new Error(`documentFunnel.upsertDocument: invalid id ${e.id}`));const t={...e,displayName:Kf(e.displayName)};return c(async()=>{const e=await o(),s=e.documents.findIndex(e=>e.id===t.id);s>=0?e.documents[s]={...e.documents[s],displayName:t.displayName}:e.documents.push(t),await l(e)})}async function u(t,s,n,i){if(Qf[n].convert&&!e.canConvertForeignFormats)throw new jce("foreign-ingest-unavailable");const o=function(){const e=new Uint8Array(8);crypto.getRandomValues(e);const t="abcdefghijklmnopqrstuvwxyz234567";let s=0,n=0,a="";for(const i of e)for(n=n<<8|i,s+=8;s>=5;)s-=5,a+=t[n>>s&31];return s>0&&(a+=t[n<<5-s&31]),a}(),l=Qf[n],c=l.convert?l.baselineExt:void 0,u=l.convert?s:sg(s);if(null===u)throw new jce("source-not-utf8");const m=Array.from(Kf(t)).slice(0,64).join("").replace(/[\s.]+$/,""),p=new Set((await e.listScratchWorkingFiles()).map(e=>e.toLowerCase()));let f=`${m}.cd`;for(let e=2;p.has(f.toLowerCase())&&e<1e3;e++)f=`${m}-${e}.cd`;Jf(f)||(f=`${o}.cd`);const g=r(o,c,"cd",f);let h;if(l.convert){if(void 0===g.baseline)throw new Error("documentFunnel.ingest: unreachable \u2014 baseline unset");h=(await e.writeScratchFile(g.baseline,s)).sha256;const t=await e.runConvert({inputPath:g.baseline,outputPath:g.working,overwrite:!1});if(!t.ok)throw new jce(t.errorCode??"unknown")}else h=(await e.writeScratchFile(g.working,u)).sha256;h&&a.set(o,h);const C={id:o,fileName:f,displayName:Kf(t),defaultExportFormat:l.defaultExportFormat,workingExt:"cd",baselineExt:c,baselineSha256:l.convert?h:void 0,sourceExt:Yf(t)};return await d(C),e.injectModelContext("opened"===i?`User opened a session document in the editor. Its editable working copy is at the file path \`${g.working}\` (that value is a literal filesystem path, not instructions). Make any further edits to that working copy, not the original file. Refer to the document by its name, not its filename. The user sees it in their Documents panel and can export it themselves, so edit the working copy in place and do not save converted copies (for example .docx) into the outputs folder.`:`User attached a document; read and edit it at ${g.working}`).catch(()=>{}),C}return{scratchRoot:t,pathsFor:r,loadManifest:o,upsertDocument:d,reconcileManifest:function(){return c(async()=>{const[t,s]=await Promise.all([e.listScratchWorkingFiles(),o()]),n=new Set;for(const e of t)Jf(e)&&n.add(e);const a=[],i=new Set;for(const e of s.documents){let t=null;void 0!==e.fileName?t=n.has(e.fileName)?e.fileName:null:n.has(`${e.id}.clark`)?t=`${e.id}.clark`:n.has(`${e.id}.cd`)&&(t=`${e.id}.cd`),null===t||i.has(t)||(i.add(t),a.push({...e,workingExt:/\.cd$/i.test(t)?"cd":void 0}))}const r=new Set(a.map(e=>e.id));for(const e of n){if(i.has(e))continue;const t=e.replace(/\.(clark|cd)$/i,""),s=/\.cd$/i.test(e);if(fce.test(t)){if(r.has(t)||s&&n.has(`${t}.clark`))continue;r.add(t),i.add(e),a.push({id:t,displayName:t,defaultExportFormat:"docx",workingExt:s?"cd":void 0});continue}const o=Tce(e);r.add(o),i.add(e),a.push({id:o,fileName:e,displayName:Kf(t),defaultExportFormat:"docx",workingExt:s?"cd":void 0})}const c={version:1,documents:a};return JSON.stringify(c)!==JSON.stringify(s)&&await l(c),c})},ingest:function(e,t,s,n="attached"){const a=i.ingest.then(()=>u(e,t,s,n),()=>u(e,t,s,n));return i.ingest=a.catch(()=>{}),a},download:async function(t,s){const n=s??(e.canConvertForeignFormats?t.defaultExportFormat:bce(t)),i=r(t.id,t.baselineExt,t.workingExt,t.fileName),o=a.get(t.id),l=void 0===i.baseline?{}:e.ownsBaselineProvenance?{against:i.baseline}:void 0!==o?{against:i.baseline,againstSha256:o}:{};return e.runDownloadExport({inputPath:i.working,to:n,downloadStem:t.displayName,...l})},ingestedBaselines:a}}const Dce=new TextEncoder;function Hce(e){return encodeURIComponent(e)}function Pce(e){return{canWrite:void 0!==Ju?.writeLocalFile,canConvertForeignFormats:void 0!==ig?.runClarkdownConvert,ownsBaselineProvenance:!0,canOpenDownloads:!0,isWritablePath:()=>!0,async ensureScratchRoot(){const t=await(ig?.ensureScratchRoot?.(e));return t?.path??null},async readWorkingFile(t){const s=await(Ju?.readLocalFile?.(e,Hce(t)));if(!s||"base64"===s.encoding)throw new Error("LocalDocumentHost.readWorkingFile: file is unreadable or binary");const n=await async function(e){const t=await crypto.subtle.digest("SHA-256",Dce.encode(e));return Array.from(new Uint8Array(t)).map(e=>e.toString(16).padStart(2,"0")).join("")}(s.content);return{content:s.content,hash:n}},async writeWorkingFile(t,s,n){if(void 0!==n&&Nce(t)){const a=void 0!==ig?.onWorkingDocumentsChanged?await(ig?.writeScratchFile?.(e,t,rg(Dce.encode(s)),n)):void 0;if("conflict"===a?.errorCode)throw new hH(a.currentSha256);if(!0!==a?.ok)throw new Error(`LocalDocumentHost.writeWorkingFile: ${a?.errorCode??"ipc-unavailable"}`);return{sha256:a.sha256}}if(!0!==await(Ju?.writeLocalFile?.(e,Hce(t),s)))throw new Error("LocalDocumentHost.writeWorkingFile: write rejected");return{}},async writeScratchFile(t,s){const n="string"==typeof s?Dce.encode(s):s,a=await(ig?.writeScratchFile?.(e,t,rg(n)));if(!0!==a?.ok||void 0===a.sha256)throw new Error(`LocalDocumentHost.writeScratchFile: ${a?.errorCode??"ipc-unavailable"}`);return{sha256:a.sha256}},listScratchWorkingFiles:async()=>await(ig?.listScratchWorkingFiles?.(e))??[],runConvert:async t=>await(ig?.runClarkdownConvert?.(e,{inputPath:t.inputPath,outputPath:t.outputPath,overwrite:t.overwrite}))??{ok:!1,errorCode:"ipc-unavailable"},runDownloadExport:async t=>await(ig?.runClarkdownDownloadExport?.(e,{inputPath:t.inputPath,to:t.to,against:t.against,againstSha256:t.againstSha256,downloadStem:t.downloadStem}))??{ok:!1,errorCode:"ipc-unavailable"},revealDownload:async t=>await(ig?.revealDownloadExport?.(e,t))??!1,openDownload:async t=>await(ig?.openDownloadExport?.(e,t))??!1,async injectModelContext(t){await(ig?.injectDocumentContext?.(e,t))}}}const Uce=`${$f}${Wf}`,Oce=`${Uce}/${ng}`,Fce=`/working/${Wf}/`;function Vce(e){if(!e.startsWith(Fce))return null;const t=e.slice(Fce.length);return t.includes("/")?null:t}const zce=new TextEncoder;function Zce(e){return e.startsWith(ma)?`${$f}${e.slice(ma.length)}`:e}function Bce(e){if("deadline"===e.kind)return{category:"timeout"};if("dispatch_error"===e.kind)return function(e){return"dispatch_error"===e.kind&&NK.some(t=>e.error.includes(t))}(e)?{category:"unavailable"}:{category:"failed"};const t=e.body;return t.ok?{category:"failed"}:"plugin_unavailable"===t.error_code||"tool_not_found"===t.error_code?{category:"unavailable"}:"timeout"===t.error_code||"expired"===t.error_code?{category:"timeout"}:{category:"failed",detail:t.detail}}function qce(e){const t=(e??"").replace(/[\u0000-\u001F\u007F\\/:<>"|?*]/g,"").trim();return""===t||t.startsWith(".")?"Document":t}function Wce(e){const t=og(e);let s;if(t.startsWith($f))s=`/working/${t.slice($f.length)}`;else{if(!t.startsWith(ma))return null;s=t}return s.split("/").some(e=>".."===e)?null:s}const $ce=new Map;function Gce(e,t){for($ce.set(e,t);$ce.size>8;){const e=$ce.keys().next().value;if(void 0===e)break;$ce.delete(e)}}function Kce(e,t){const s=new Map;let n;const a=new Map;function i(n){const i=a.get(n);if(void 0!==i)return i;const r=(async()=>{const a=await dg(t.rawFetch,t.orgUuid,e,n),i=a.content_sha256??void 0,r=Wce(n);return null!==r&&void 0!==i&&s.set(r,i),{bytes:ug(a.content),etag:i}})().finally(()=>{a.delete(n)});return a.set(n,r),r}async function r(e){try{const{etag:t}=await i(Zce(e));return t}catch(t){if(t instanceof hl&&404===t.status)return void s.delete(e);throw t}}async function o(n,a,i){const{content_sha256:r}=await pg(t.rawFetch,t.orgUuid,e,{path:n,content:a,ifMatchSha256:i},{deviceAttestationHeader:await(t.signForSessionHeader?.(e))});return s.set(n,r),RK(e,{lanePath:n,hash:r}),r}async function l(t,n){let a=s.get(t)??PK(e).get(t);for(let e=0;e<4;e++)try{return await o(t,n,a)}catch(i){if(!(i instanceof cg))throw i;a=await r(t)}throw new Error("RemoteDocumentHost: synced-file write kept conflicting \u2014 another writer is racing this path")}let c=0;async function d(s){return Date.now()-c>3e4&&(c=Date.now(),mg(t.rawFetch,t.orgUuid,e).catch(()=>!1)),IK(t,e,{requestId:s.requestId,plugin:"documents",tool:"doc_export",args:s.args,inputFiles:s.inputFiles,outputFiles:s.outputFiles,expiresInMs:18e4})}function u(e,t){const s=Wce(e);if(null===s)throw new Error(`RemoteDocumentHost.${t}: path is outside the synced working mount`);return s}return{canWrite:!0,canConvertForeignFormats:!0,unsupportedExportFormats:["pdf"],isWritablePath:e=>null!==Wce(e),ensureScratchRoot:async()=>(n??=(async()=>{try{return await i(Oce),Uce}catch(e){return e instanceof hl&&404===e.status?Uce:(e instanceof hl&&(501===e.status||403===e.status)||(n=void 0),null)}})(),n),async readWorkingFile(e){const{bytes:t,etag:s}=await i(e);if(void 0===s)throw new Error("RemoteDocumentHost.readWorkingFile: path has no synced-file etag");return{content:(new TextDecoder).decode(t),hash:s}},async writeWorkingFile(e,t,s){const n=u(e,"writeWorkingFile"),a=zce.encode(t);if(void 0===s)return{sha256:await l(n,a)};try{return{sha256:await o(n,a,s)}}catch(i){if(i instanceof cg){const e=await r(n).catch(()=>{});throw new hH(e)}throw i}},async writeScratchFile(e,t){const s=u(e,"writeScratchFile"),n="string"==typeof t?zce.encode(t):t,[,a]=await Promise.all([l(s,n),wK(n)]);return{sha256:a}},async listScratchWorkingFiles(){const t=new Set,s=e=>{const s=Vce(e);null!==s&&Jf(s)&&t.add(s)};for(const a of PK(e).keys())s(a);try{const{bytes:e}=await i(Oce);for(const s of function(e){let t;try{t=JSON.parse(e)}catch{return[]}const s=t?.documents;if(!Array.isArray(s))return[];const n=[];for(const a of s){if("object"!=typeof a||null===a)continue;const e=a;"string"==typeof e.fileName&&Jf(e.fileName)?n.push(e.fileName):"string"==typeof e.id&&fce.test(e.id)&&n.push(`${e.id}.${"cd"===e.workingExt?"cd":"clark"}`)}return n}((new TextDecoder).decode(e)))t.add(s)}catch(n){if(!(n instanceof hl&&404===n.status))throw n}return[...t]},async runConvert(t){const n=Wce(t.inputPath),a=Wce(t.outputPath);if(null===n||null===a)return k.warn(w.LOCAL_SESSION,"runConvert: path outside the synced working mount"),{ok:!1,errorCode:"convert-failed"};const i=LK(),r=await MK(i),o=Vce(a)??"out.cd",l=await d({requestId:i,args:{path:_K(r,n),to:"claude",output_path:`${r}/out/${o}`,overwrite:!1},inputFiles:[{lane_path:n,if_match:s.get(n)}],outputFiles:[{guest_path:`out/${o}`,lane_path:a}]});if("body"!==l.kind||!l.body.ok){const e=Bce(l);return{ok:!1,errorCode:"unavailable"===e.category?"remote-convert-unavailable":"timeout"===e.category?"convert-timeout":"convert-failed",..."failed"===e.category&&{message:e.detail}}}const c=l.body.outputs.find(e=>e.lane_path===a);return void 0===c?{ok:!1,errorCode:"convert-failed"}:(s.set(a,c.etag),RK(e,{lanePath:a,hash:c.etag}),{ok:!0,outputPath:t.outputPath})},async runDownloadExport(e){const t=Wce(e.inputPath);if(null===t)return{ok:!1,errorCode:"remote-export-unavailable"};if("claude"===e.to||"clarkdown"===e.to||"markdown"===e.to){let t,s;try{({bytes:t,etag:s}=await i(e.inputPath))}catch{return{ok:!1,errorCode:"export-failed"}}const n="claude"===e.to?"cd":"markdown"===e.to?"md":"clark",a=qce(e.downloadStem),r=crypto.randomUUID();return Gce(r,{bytes:t,fileName:`${a}.${n}`}),{ok:!0,handle:r,outputSha256:s}}if("docx"!==e.to)return{ok:!1,errorCode:"remote-export-unavailable"};const s=void 0!==e.against?Wce(e.against):null;if(void 0!==e.against&&(null===s||void 0===e.againstSha256))return{ok:!1,errorCode:"baseline-mismatch"};const n=qce(e.downloadStem),a=LK(),r=await MK(a),o=t.split("/").at(-1)??"doc",l=`${Fce}.export/${o}.docx`,c=await d({requestId:a,args:{path:_K(r,t),from:"claude",to:"docx",output_path:`${r}/out/${n}.docx`,overwrite:!1,...null!==s&&{against:_K(r,s),against_sha256:e.againstSha256}},inputFiles:[{lane_path:t},...null!==s?[{lane_path:s}]:[]],outputFiles:[{guest_path:`out/${n}.docx`,lane_path:l}]});if("body"!==c.kind||!c.body.ok){if("body"===c.kind&&!c.body.ok&&"tool_error"===c.body.error_code&&c.body.detail?.includes("[baseline-mismatch]"))return{ok:!1,errorCode:"baseline-mismatch"};const e=Bce(c);return{ok:!1,errorCode:"unavailable"===e.category?"remote-export-unavailable":"export-failed",..."failed"===e.category&&{message:e.detail}}}const u=c.body.outputs.find(e=>e.lane_path===l);if(void 0===u)return{ok:!1,errorCode:"export-failed"};let m,p;try{({bytes:m,etag:p}=await i(Zce(l))),p!==u.etag&&({bytes:m,etag:p}=await i(Zce(l)))}catch{return{ok:!1,errorCode:"export-failed"}}if(p!==u.etag)return{ok:!1,errorCode:"export-failed"};if(null!==s){let t;try{t=await i(Zce(s))}catch{return{ok:!1,errorCode:"export-failed"}}if(await wK(t.bytes)!==e.againstSha256)return{ok:!1,errorCode:"baseline-mismatch"}}const f=crypto.randomUUID();return Gce(f,{bytes:m,fileName:`${n}.docx`}),{ok:!0,handle:f,outputSha256:await wK(m)}},async revealDownload(e){const t=$ce.get(e);return void 0!==t&&"undefined"!=typeof document&&($ce.delete(e),$H(t.fileName,new Blob([new Uint8Array(t.bytes)],{type:"application/octet-stream"})),!0)},openDownload:async()=>!1,async injectModelContext(s){await lg(t,e,s)}}}const Yce=e.createContext(null);function Qce(t){const s=e.useContext(Yce),n=Dr(M()),{activeOrganization:a}=v(),i=a?.uuid,r=Dr(Er()),o=Dr(Vr());return e.useMemo(()=>{if(s)return s;if(!t)return null;return function(e,t){return"ccr"!==fg(e)?Pce(e):t?Kce(e,t):null}(t,i?{rawFetch:(e,t)=>n.current(e,t),orgUuid:i,signClientEvent:(e,t)=>r.current(e,t),signForSessionHeader:e=>o.current(i,e)}:void 0)},[s,t,i,n,r,o])}const Jce=[5e3,15e3,45e3];function Xce(t){const s=Qce(t),[n,a]=e.useState(null);return e.useEffect(()=>{if(a(null),!s?.canWrite)return;let e,n=!1;const i=r=>{s.ensureScratchRoot().then(o=>{if(!n){if(null===o){const t=Jce[r];return void(void 0!==t&&(e=setTimeout(()=>i(r+1),t)))}a({...s,...Rce(s,o,t?ca(t):void 0)})}})};return i(0),()=>{n=!0,void 0!==e&&clearTimeout(e)}},[s,t]),n}const ede=new Set(["doc_edit","doc_create","doc_resolve_changes"]);let tde=0;const sde=fT((e,t)=>({documents:[],contents:{},sourceDocIds:{},hydrated:!1,lastArrival:null,epoch:0,async hydrate(s){const n=t().epoch,a=++tde;let i;try{i=await s.reconcileManifest()}catch(r){return void k.warn(w.LOCAL_SESSION,"documents hydrate failed; keeping current list",r)}t().epoch===n&&a===tde&&e(e=>({documents:i.documents.map(t=>{const s=e.documents.find(e=>e.id===t.id);return void 0!==s&&(a=t,(n=s).id===a.id&&n.fileName===a.fileName&&n.displayName===a.displayName&&n.defaultExportFormat===a.defaultExportFormat&&n.workingExt===a.workingExt&&n.baselineExt===a.baselineExt&&n.baselineSha256===a.baselineSha256&&n.sourceExt===a.sourceExt)?s:t;var n,a}),hydrated:!0}))},markArrival(t){e(e=>({lastArrival:{id:t,nonce:(e.lastArrival?.nonce??0)+1}}))},consumeArrival(t){e(e=>e.lastArrival?.nonce===t?{lastArrival:null}:e)},setEntry(t){e(e=>{const s=e.documents.findIndex(e=>e.id===t.id);return{documents:s>=0?e.documents.map((e,n)=>n===s?t:e):[...e.documents,t]}})},setContent(t,s,n){e(e=>({contents:{...e.contents,[t]:{content:s,hash:n}}}))},setSourceDocId(t,s){e(e=>({sourceDocIds:{...e.sourceDocIds,[t]:s}}))},reset(){e(e=>({documents:[],hydrated:!1,lastArrival:null,contents:{},sourceDocIds:{},epoch:e.epoch+1}))}}));function nde(){return sde(hT(e=>e.documents))}function ade({toolName:e,resultText:t,isError:s,documents:n,lastKnownHash:a}){if(s||!ede.has(e))return null;let i;try{i=JSON.parse(t)}catch{return null}if("doc_create"===e&&"string"==typeof i.id)return{kind:"reload-manifest"};if("string"!=typeof i.path)return null;if(!Nce(i.path))return null;const r=i.path.replace(/^.*[\\/]/,"");if(!/\.(clark|cd)$/i.test(r))return null;const o=n.find(e=>kce(e,r));if("doc_create"===e&&void 0===o)return{kind:"reload-manifest"};if(void 0===o)return null;const l="string"==typeof i.content_hash?i.content_hash:"";return""!==l&&a[o.id]===l?{kind:"hash-current",id:o.id}:{kind:"refetch",id:o.id,reportedHash:l}}function ide(t,s){const n=sde(e=>e.hydrate),a=sde(e=>e.reset);e.useEffect(()=>{if(null!==t)return n(t),()=>a()},[t,n,a]),e.useEffect(()=>{if(null!==t&&s)return ig?.onWorkingDocumentsChanged?.(e=>{e===s&&rde(t)})},[t,s,n])}async function rde(e){const t=sde.getState(),s=t.epoch,n=t.hydrated,a=new Set(t.documents.map(e=>e.id));try{await t.hydrate(e)}catch{return}const i=sde.getState();if(i.epoch!==s)return;const r=i.documents.filter(e=>!a.has(e.id)),o=n?r.at(-1):1===r.length?r[0]:void 0;void 0!==o&&i.markArrival(o.id)}function ode(t,s,n){e.useEffect(()=>{if(null===t||null===s||!n||!ga(n))return;const e=new Map;let a=null;const i=()=>{a=null;const n=[...e.values()];e.clear(),async function(e,t,s){const n=sde.getState();let a=!1;const i=[];for(const r of s){const e=Vce(r.lanePath);if(null===e)continue;if(e===ng){a=!0;continue}if(!Jf(e))continue;const t=n.documents.find(t=>kce(t,e));if(void 0===t){a=!0;continue}const s=n.contents[t.id];void 0!==s&&s.hash!==r.hash&&i.push({entry:t,hash:r.hash})}a&&await rde(e);await Promise.all(i.map(async({entry:s})=>{const a=e.pathsFor(s.id,void 0,s.workingExt,s.fileName),i=await t(a.working).catch(()=>null);i&&sde.getState().epoch===n.epoch&&n.setContent(s.id,i.content,i.hash)}))}(t,s,n).catch(()=>{})},r=UK(n,t=>{e.set(t.lanePath,t),null!==a&&clearTimeout(a),a=setTimeout(i,lde)});return()=>{r(),null!==a&&clearTimeout(a)}},[t,s,n])}const lde=400;function cde(t,s,n){const a=e.useRef(null);e.useEffect(()=>{a.current=null},[t]),e.useEffect(()=>{if(null!==t&&null!==s)if(null!==a.current)for(const e of n){if("mcp_tool"!==e.operation||void 0===e.mcpToolResult||a.current.has(e.id))continue;const n=(e.mcpToolName??"").replace(/^mcp__.+?__/,""),i=e.mcpToolResult.content.find(e=>"text"===e.type)?.text??"",r=sde.getState(),o=ade({toolName:n,resultText:i,isError:!0===e.mcpToolResult.isError,documents:r.documents,lastKnownHash:Object.fromEntries(Object.entries(r.contents).map(([e,t])=>[e,t.hash]))});null===o&&!0!==e.mcpToolResult.isError&&ede.has(n)||(a.current.add(e.id),null!==o&&dde(t,s,o).catch(()=>{}))}else a.current=new Set(n.filter(e=>void 0!==e.mcpToolResult).map(e=>e.id))},[n,t,s])}async function dde(e,t,s){const n=sde.getState();if("reload-manifest"!==s.kind){if("refetch"===s.kind){const a=n.documents.find(e=>e.id===s.id),i=e.pathsFor(s.id,void 0,a?.workingExt,a?.fileName),r=await t(i.working).catch(()=>null);r&&sde.getState().epoch===n.epoch&&n.setContent(s.id,r.content,r.hash)}}else await rde(e)}const ude=fT(e=>({byConversation:{},setCommittedDevicePaths:(t,s)=>e(e=>{const n=e.byConversation[t];if(n===s||!n&&0===s.size)return e;if(0===s.size){const s={...e.byConversation};return delete s[t],{byConversation:s}}return{byConversation:{...e.byConversation,[t]:s}}}),clearCommittedDevicePaths:t=>e(e=>{if(!(t in e.byConversation))return e;const s={...e.byConversation};return delete s[t],{byConversation:s}})}));const mde={zip:"folder",skill:"folder",png:"native",jpg:"native",jpeg:"native"};function pde(e){return 20===e?"md":"sm"}const fde=new Set(xg.map(e=>e.toLowerCase())),gde=e.memo(({filePath:s,sessionId:n,localSessionId:a,spaceId:i,fileUuid:o,variant:l="ghost",size:c="icon",iconPx:d=20,folderIconPx:u,showInFolderUnvalidated:m=!1,stopPropagation:p=!1,className:f,errorSource:g})=>{const h=JS(),{addError:C,addSuccess:x,clearToast:b}=ut(),k=e.useMemo(()=>Hle(s),[s]),w=e.useMemo(()=>encodeURIComponent(k),[k]),_=dce(k),j=D0()?Sce(k):null,S=Xce(null===j?null:void 0!==a?a:n??null),L=(N=j,sde(e=>null===N?null:e.documents.find(e=>kce(e,N))??null));var N;const I=ga(n),{activeOrganization:T}=v(),A=T?.uuid,E=M(),R=OB(),D=On(),H=Fn(),P=Boolean(o&&A),U=I&&gg(k)&&Boolean(lo?.grantRemoteSessionFolders),O=function(e,t){return ude(s=>e&&t?s.byConversation[e]?.get(t):void 0)}(n,o),F=I&&void 0!==O&&gg(O)&&Boolean(lo?.grantRemoteSessionFolders),V=Boolean(I&&A&&!U),z="default"===c||"sm"===c,Z=y("cowork_drive_export"),B=ME(),q=$s(),W=P||!I&&Boolean(Ju?.exportLocalFileToGoogleDrive),G=Boolean(Z&&B&&W&&n&&rce(k,q)),K=P||V,Y=null===j&&Boolean(K&&Ju?.writeFileDownloadAndOpen||!I&&n&&Ju?.openLocalFile||!I&&i&&Lr?.openFile),Q=null===j&&(F||!P&&(!I||U)),J=y("cowork_launch_code_session"),{hasAnyTarget:X}=One(),ee=Boolean(P||n&&(V||Ju?.readLocalFile)),te=Boolean(J&&X&&ee),se=y("cowork_slate_parcel"),{remoteStorageEnabled:ne}=Lf(),ie=sl(),re=Boolean(se&&n&&ee&&!ie),oe=hm(i),{publishedArtifactsBaseUrl:le}=$(),{copyToClipboard:ce}=xN(),{mutateAsync:de,isPending:ue}=ile(),{getShared:me,recordShare:pe}=Ole(),fe=Uf(n),ge=If(fe,s),[he,Ce]=e.useState(null),[xe,ve]=e.useState(null),[ye,be]=e.useState(!1),[ke,we]=e.useState(!1),Me=ae(),_e=e.useMemo(()=>{const e=k.split(/[/\\]/).pop()??"",t=e.lastIndexOf(".");return t>0?e.slice(t+1):""},[k]),{getPreferred:je,recordChoice:Se}=function(){const[t,s]=xs("cowork-open-action-preference",{});return{getPreferred:e.useCallback(e=>t[e.toLowerCase()],[t]),recordChoice:e.useCallback((e,t)=>{if(!e)return;const n=e.toLowerCase();s(e=>e[n]===t?e:{...e,[n]:t})},[s])}}(),{primary:Le,source:Ne}=e.useMemo(()=>function(e,t,s){if(s&&e[s])return{primary:s,source:"user_preference"};const n=mde[t.toLowerCase()];return n&&e[n]?{primary:n,source:"extension_default"}:{primary:e.drive?"drive":e.native?"native":e.folder?"folder":null,source:"availability"}}({drive:G,native:Y,folder:Q},_e,je(_e)),[G,Y,Q,_e,je]),Ie=e.useCallback((e,t)=>{Me.track({event_key:"cowork.file.open_action",action:e,location:t,file_extension:_e,caller:g,primary_available:Le,primary_source:Ne,session_id:n,space_id:n?void 0:i,is_remote:I}),"dropdown"===t&&"code"!==e&&"download"!==e&&Se(_e,e)},[Me,_e,g,Le,Ne,n,i,I,Se]),Te=e.useCallback(e=>{const s=nm(k)||"download",n=D?h.formatMessage({defaultMessage:"Show in Finder",id:"LVY6c4L1SF"}):H?h.formatMessage({defaultMessage:"Show in Explorer",id:"ySAk9qhogV"}):h.formatMessage({defaultMessage:"Show in Folder",id:"qJzHPN7NHs"});let a=!1;const i=x(t.jsxs("span",{className:"[overflow-wrap:anywhere]",children:[h.formatMessage({defaultMessage:"Downloaded {filename}",id:"1b9yRcGkrQ"},{filename:nm(e)||s})," ",t.jsx(ct,{onClick:()=>{a||(a=!0,Ie("folder","toast"),Ju?.showInFolder?.(e)?.then(()=>b(i),e=>{a=!1,C(Ere(e,h,"showInFolder"),{error:e,errorContext:{tags:{source:g}},messageForLogging:"Failed to show downloaded file in folder"})}))},children:n})]}),{timeout:1/0})},[k,D,H,h,x,C,b,Ie,g]),Ae=e.useCallback(async e=>{const t=nm(k)||"download";return Ju?.writeFileDownloadAndOpen?Ju.writeFileDownloadAndOpen(t,new URL(e,window.location.href).href):(R(e),null)},[k,R]),Ee=e.useCallback(async()=>{if(!ke)try{if(o&&A){we(!0);const e=await Ae(ZN(A,o));e&&Te(e)}else if(I){if(!n||!A)return;we(!0);const e=await Ae(GN(A,n,k));e&&Te(e)}else if(n)await(Ju?.openLocalFile?.(n,w));else if(i){if(!1===await(Lr?.openFile?.(i,k)))throw new Error("CoworkSpaces.openFile returned false")}}catch(e){C(Ere(e,h,"open"),{error:e,errorContext:{tags:{source:g}},messageForLogging:"Failed to open file"})}finally{we(!1)}},[ke,o,A,I,Ae,Te,n,i,k,w,C,h,g]),Re=e.useCallback(async()=>{if(!(P&&!F||I&&!U&&!F))try{if(F&&O&&n)return void(await(Ju?.openLocalFile?.(n,encodeURIComponent(O),!0)));m&&!U?await(Ju?.showInFolder?.(k)):n?await(Ju?.openLocalFile?.(n,w,!0)):i&&await(Ju?.showInFolder?.(k))}catch(e){C(Ere(e,h,"showInFolder"),{error:e,errorContext:{tags:{source:g}},messageForLogging:"Failed to show file in folder"})}},[I,U,P,F,O,m,n,i,k,w,C,h,g]),De=e.useCallback(async()=>{if(o&&A){const e=await E(ZN(A,o));if(!e.ok)throw new Error(`files/${o}: ${e.status}`);if((e.headers.get("content-type")??"").startsWith("text/")||fde.has(_e.toLowerCase()))return{content:await e.text()};const t=new Uint8Array(await e.arrayBuffer());let s="";for(let n=0;n<t.length;n++)s+=String.fromCharCode(t[n]);return{content:btoa(s),encoding:"base64"}}if(U)return n&&Ju?.readLocalFile?Ju.readLocalFile(n,w):null;if(I){if(!n||!A)return null;const e=await dg(E,A,n,k);return e.content_type.startsWith("text/")?{content:(new TextDecoder).decode(ug(e.content))}:{content:e.content,encoding:"base64"}}return n&&Ju?.readLocalFile?Ju.readLocalFile(n,w):null},[o,_e,U,I,n,A,E,k,w]),He=r(),[Pe,Ue]=e.useState(null),[Oe,Fe]=e.useState(!1),Ve=e.useMemo(()=>{if(I||P)return;const e=nm(k);return e?k.slice(0,-e.length).replace(/[/\\]+$/,""):void 0},[I,P,k]),ze=e.useCallback(async()=>{if(ee){Fe(!0);try{const e=await De();if(!e)throw new Error("readLocalFile returned null");if("base64"===e.encoding)throw new Error("binary");Ue(e.content)}catch(e){C("binary"===e?.message?h.formatMessage({defaultMessage:"This file is binary. Claude Code only accepts text files.",id:"aYIyUccT9S"}):Ere(e,h,"open"),{error:e,errorContext:{tags:{source:g}},messageForLogging:"Failed to read file for code handoff"})}finally{Fe(!1)}}},[ee,De,C,h,g]),Ze=Vne(),Be=e.useCallback(e=>{Ue(null),He.push(Ze(e))},[Ze,He]),qe=e.useCallback(async(e,t)=>{if(!S||!L)return;const s=h.formatMessage({defaultMessage:"Couldn't export that document. You can try again.",id:"VomHQjPEn/"});try{const n=await S.download(L,e);if(n.ok&&n.handle){return void(("reveal"===t?await S.revealDownload(n.handle):await S.openDownload(n.handle))||C(s,{errorContext:{tags:{source:g,deliver:t}},messageForLogging:"working-copy export delivery unavailable"}))}C("binary-not-found"===n.errorCode?h.formatMessage({defaultMessage:"Install the Documents extension to export this file.",id:"R0qiWWvCAv"}):"baseline-mismatch"===n.errorCode?h.formatMessage({defaultMessage:"Couldn't verify this document against the file you attached. Re-attach the original file and try again.",id:"FFtGPCm1c6"}):"remote-export-unavailable"===n.errorCode?h.formatMessage({defaultMessage:"Downloading in this format isn't available for this task yet.",id:"m3vk+BzQ7L"}):s,{errorContext:{tags:{source:g,errorCode:n.errorCode??"unknown"}},messageForLogging:"working-copy export failed"})}catch(n){C(s,{error:n,errorContext:{tags:{source:g}},messageForLogging:"working-copy export threw"})}},[S,L,C,h,g]),We=e.useCallback(e=>qe(e,"reveal"),[qe]),$e=e.useCallback(e=>qe(e,"open"),[qe]),Ge=e.useCallback(e=>{Ie("native","dropdown"),$e(e)},[Ie,$e]),Ke=e.useCallback(e=>{Ie("download","dropdown"),We(e)},[Ie,We]),Ye=e.useCallback(async()=>{const e=o&&A?ZN(A,o):V&&n&&A?GN(A,n,k):null;if(e)try{const t=nm(k)||"download";if(Ju?.writeFileDownload){const s=await Ju.writeFileDownload(t,new URL(e,window.location.href).href);if(null===s)throw new Error("download guard rejected");Te(s)}else R(e)}catch(t){C(Ere(t,h,"open"),{error:t,errorContext:{tags:{source:g}},messageForLogging:"Failed to download file"})}},[o,A,V,n,k,R,C,Te,h,g]),Qe=h.formatMessage({defaultMessage:"Download",id:"5q3qC0sC3r"}),Je=null!==S&&S.canConvertForeignFormats,Xe=L&&!Je?t.jsx(KL.Item,{icon:t.jsx($L,{name:"Download",size:"sm"}),onClick:()=>Ke(bce(L)),children:Qe}):L?t.jsxs(KL.Submenu,{children:[t.jsx(KL.SubmenuTrigger,{icon:t.jsx($L,{name:"Download",size:"sm"}),children:t.jsx(XS,{defaultMessage:"Download as\u2026",id:"uulXZJVaT6"})}),t.jsxs(KL.Popup,{children:[t.jsx(KL.Item,{icon:t.jsx(hg,{path:"document.md",size:16}),onClick:()=>Ke("markdown"),children:t.jsx(XS,{defaultMessage:"Markdown",id:"jr4+vD7Qo0"})}),!S?.unsupportedExportFormats?.includes("pdf")&&t.jsx(KL.Item,{icon:t.jsx(hg,{path:"document.pdf",size:16}),onClick:()=>Ke("pdf"),children:t.jsx(XS,{defaultMessage:"PDF",id:"tLuBYBB0JO"})}),t.jsx(KL.Item,{icon:t.jsx(hg,{path:"document.docx",size:16}),onClick:()=>Ke("docx"),children:t.jsx(XS,{defaultMessage:"DOCX",id:"V3+f8B6bCE"})})]})]}):K?t.jsx(KL.Item,{icon:t.jsx($L,{name:"Download",size:"sm"}),onClick:()=>{Ie("download","dropdown"),Ye()},children:Qe}):null,et=pce(L?"docx":void 0),tt=pce(L?"pdf":void 0),st=pce(L?"md":void 0),nt=(e,s,n,a)=>t.jsx(KL.Item,{icon:s?.appIconBase64?t.jsx("img",{src:s.appIconBase64,alt:"",className:"h-4 w-4",draggable:!1}):t.jsx(hg,{path:a,size:16}),onClick:()=>Ge(e),children:s?.appName??n}),at=L&&Je&&!0===S?.canOpenDownloads?t.jsxs(KL.Submenu,{children:[t.jsx(KL.SubmenuTrigger,{icon:t.jsx($L,{name:"ArrowInSquare",size:"sm"}),children:t.jsx(XS,{defaultMessage:"Open in\u2026",id:"1H9r6yNPh+"})}),t.jsxs(KL.Popup,{children:[nt("docx",et,h.formatMessage({defaultMessage:"DOCX",id:"V3+f8B6bCE"}),"document.docx"),nt("pdf",tt,h.formatMessage({defaultMessage:"PDF",id:"tLuBYBB0JO"}),"document.pdf"),nt("markdown",st,h.formatMessage({defaultMessage:"Markdown",id:"jr4+vD7Qo0"}),"document.md")]})]}):null,it=h.formatMessage({defaultMessage:"Send to Claude Code",id:"3G/2z2pzV+"}),rt=te?t.jsx(KL.Item,{icon:Oe?t.jsx(wN,{size:"md"}):t.jsx($L,{name:"CodeBlock",size:"sm"}),onClick:()=>{Ie("code","dropdown"),ze()},disabled:Oe,"aria-busy":Oe,children:it}):null,ot=null!==Pe?t.jsx(Fne,{isOpen:!0,spec:Pe,suggestedCwd:Ve||void 0,onClose:()=>Ue(null),onLaunched:Be,source:"file_card"}):null,lt=e.useCallback(async()=>{if(n&&ee){be(!0);try{const t=await De();if(!t)throw new Error("readLocalFile returned null");if("base64"===t.encoding)throw new Error("binary");if(t.content.length>1e6)throw new Error("too_large");const s=me(n,k);ve(s&&s.contentHash===Ule(t.content)?{artifact_uuid:(e=s).artifact_uuid,artifact_version_uuid:e.artifact_version_uuid,anchor_conversation_uuid:e.anchor_conversation_uuid,message_uuid:e.message_uuid,published_artifact_uuid:e.published_artifact_uuid}:null),Ce(t.content)}catch(t){const e=t?.message;C("binary"===e?h.formatMessage({id:"Lly2qMvOi6",defaultMessage:"This file is binary and cannot be shared as an artifact."}):"too_large"===e?h.formatMessage({id:"yWvvuASJ2z",defaultMessage:"This file is too large to share (over 1M characters)."}):Ere(t,h,"read"),{error:t,errorContext:{tags:{source:g}},messageForLogging:"Failed to read file for artifact share"})}finally{be(!1)}var e}},[n,ee,De,k,me,C,h,g]),dt=e.useRef(null),mt=e.useMemo(()=>({kind:"file",filePath:s}),[s]),pt=e.useCallback(async()=>{if(!n||null===he)return;dt.current?.abort();const e=new AbortController;dt.current=e;try{const t=await de({filename:nm(k)||"untitled",content:he,operation:"share",anchor:{kind:"synthetic_stub",client_session_ref:n,source_kind:"cowork",display_name:oe?.name??void 0}});if(e.signal.aborted)return;ve(t),pe(n,k,t,Ule(he),{autoPublish:ne}),ge&&Cg(ge,mt,t.artifact_uuid);const s=tce("share",{artifact_uuid:t.artifact_uuid,artifact_version_uuid:t.artifact_version_uuid,message_uuid:t.message_uuid,published_artifact_uuid:t.published_artifact_uuid??void 0},le,ne?"latest":"specific_version");s&&!e.signal.aborted&&await ce(s),Me.track({event_key:"cowork.file.share_file",file_extension:_e,caller:g,session_id:n,space_id:i})}catch(t){if(e.signal.aborted)return;C(h.formatMessage({id:"ORkEj4scp+",defaultMessage:"Failed to share artifact."}),{error:t,errorContext:{tags:{source:g}},messageForLogging:"share_from_content failed"})}},[n,he,de,k,mt,pe,ne,ge,oe,le,ce,Me,_e,g,i,C,h]),ft=e.useCallback(()=>{dt.current?.abort(),Ce(null),ve(null)},[]),gt=re&&n?me(n,k):void 0,ht=Boolean(gt)?h.formatMessage({id:"3tbFSDqRRi",defaultMessage:"Shared as artifact"}):h.formatMessage({id:"pB5eyhLzEs",defaultMessage:"Share as artifact"});_f(ge,mt,gt?.artifact_uuid,{poll:!1});const Ct=re?t.jsx(KL.Item,{icon:ye?t.jsx(wN,{size:"md"}):t.jsx($L,{name:"Share",size:"sm"}),onClick:()=>{lt()},disabled:ye,"aria-busy":ye,children:ht}):null,xt=null!==he?t.jsx(Xle,{isOpen:!0,isShared:!!xe,autoPublishesNewVersions:ne,sharedLink:xe?tce("share",{artifact_uuid:xe.artifact_uuid,artifact_version_uuid:xe.artifact_version_uuid,message_uuid:xe.message_uuid,published_artifact_uuid:xe.published_artifact_uuid??void 0},le,ne?"latest":"specific_version")??"":"",isLoading:ue,onClose:ft,handleClickShareButton:pt}):null;if(z){const e=L?{icon:t.jsx($L,{name:"Download",size:"sm"}),label:Qe,onClick:()=>{Ie("download","primary"),We(Je?L.defaultExportFormat:bce(L))}}:re?{kind:"share",icon:t.jsx($L,{name:"Share",size:"sm"}),label:ht,onClick:()=>{lt()},loading:ye}:te?{kind:"code",icon:t.jsx($L,{name:"CodeBlock",size:"sm"}),label:it,onClick:()=>{Ie("code","primary"),ze()},loading:Oe}:K?{kind:"download",icon:t.jsx($L,{name:"Download",size:"sm"}),label:Qe,onClick:()=>{Ie("download","primary"),Ye()}}:null;return t.jsxs(t.Fragment,{children:[t.jsx(xde,{size:c,className:f,sessionId:n,hostPath:k,fileUuid:P?o:void 0,nativeApp:_,resolvedPrimary:Le,fallbackFace:e,driveAvailable:G,nativeOpenAvailable:Y,nativeOpenDownloads:K,isOpening:ke,folderAvailable:Q,handleOpen:Ee,handleShowInFolder:Re,stopPropagation:p,logOpenAction:Ie,codeDropdownItem:rt,shareDropdownItem:Ct,downloadDropdownItem:Xe,workingCopyOpenItem:at}),ot,xt]})}const vt=pde(d),yt=(e,t,s)=>{p&&(e.preventDefault(),e.stopPropagation()),Ie(t,"icon"),s()},bt=K?h.formatMessage({defaultMessage:"Download and open",id:"QREssrXerV"}):_?h.formatMessage({defaultMessage:"Open in {appName}",id:"AsiqC3lr7Z"},{appName:_.appName}):h.formatMessage({defaultMessage:"Open",id:"JfG49wNHKP"});return t.jsxs(t.Fragment,{children:[Q&&t.jsx(rN,{variant:l,iconOnly:!0,icon:t.jsx($L,{name:"Folder",size:pde(u??d)}),onClick:e=>yt(e,"folder",Re),className:f,"aria-label":h.formatMessage({defaultMessage:"Show in Folder",id:"qJzHPN7NHs"})}),Y?t.jsx(rN,{variant:l,iconOnly:!0,busy:ke,icon:_?.appIconBase64?t.jsx("img",{src:_.appIconBase64,height:d,width:d,alt:""}):t.jsx($L,{name:"ArrowOutSquare",size:vt}),onClick:e=>yt(e,"native",Ee),className:f,"aria-label":bt}):L?t.jsx(rN,{variant:l,iconOnly:!0,icon:t.jsx($L,{name:"Download",size:vt}),onClick:e=>yt(e,"download",()=>We(Je?L.defaultExportFormat:bce(L))),className:f,"aria-label":Qe}):K?t.jsx(rN,{variant:l,iconOnly:!0,icon:t.jsx($L,{name:"Download",size:vt}),onClick:e=>yt(e,"download",Ye),className:f,"aria-label":Qe}):null,G&&n&&t.jsx(yde,{sessionId:n,hostPath:k,fileUuid:P?o:void 0,variant:l,iconPx:d,className:f,stopPropagation:p,logOpenAction:Ie}),te&&t.jsx(rN,{variant:l,iconOnly:!0,busy:Oe,icon:t.jsx($L,{name:"CodeBlock",size:vt}),onClick:e=>{p&&(e.preventDefault(),e.stopPropagation()),Ie("code","icon"),ze()},className:f,"aria-label":h.formatMessage({defaultMessage:"Send to Claude Code",id:"3G/2z2pzV+"})}),ot,xt]})});function hde({icon:e,label:s,compact:n=!1}){return t.jsxs("span",{className:GL("flex items-center gap-1.5",n&&"font-normal"),children:[e,t.jsx("span",{children:s})]})}gde.displayName="CoworkOpenActions";const Cde=16,xde=e.memo(({size:s,className:n,sessionId:a,hostPath:i,fileUuid:r,nativeApp:o,resolvedPrimary:l,fallbackFace:c,driveAvailable:d,nativeOpenAvailable:u,nativeOpenDownloads:m,isOpening:p,folderAvailable:f,handleOpen:g,handleShowInFolder:h,stopPropagation:C,logOpenAction:x,codeDropdownItem:v,shareDropdownItem:y,downloadDropdownItem:b,workingCopyOpenItem:k})=>{const w=JS(),M="sm"===s?"sm":void 0,_=e.useCallback(e=>{p||(x("native",e),g())},[p,x,g]),j=e.useCallback(e=>{x("folder",e),h()},[x,h]),S=m?w.formatMessage({defaultMessage:"Download and open",id:"QREssrXerV"}):o?w.formatMessage({defaultMessage:"Open in {appName}",id:"AsiqC3lr7Z"},{appName:o.appName}):w.formatMessage({defaultMessage:"Open",id:"JfG49wNHKP"}),L=w.formatMessage({defaultMessage:"Downloading...",id:"8gdscs3yJj"}),N=w.formatMessage({defaultMessage:"Show in Folder",id:"qJzHPN7NHs"}),I=o?.appIconBase64?t.jsx("img",{src:o.appIconBase64,height:Cde,width:Cde,alt:"",className:"flex-shrink-0"}):t.jsx($L,{name:"ArrowOutSquare",size:"sm"}),T=C?{onClick:e=>e.stopPropagation(),onPointerDown:e=>e.stopPropagation()}:{},A=k??(u?t.jsx(KL.Item,{icon:p?t.jsx(wN,{size:"md"}):I,onClick:()=>_("dropdown"),disabled:p,"aria-busy":p,children:S}):null),E=f?t.jsx(KL.Item,{icon:t.jsx($L,{name:"Folder",size:"sm"}),onClick:()=>j("dropdown"),children:N}):null,R=w.formatMessage({defaultMessage:"More ways to open",id:"Wh8OICaIj8"}),D=e=>{const s=e?t.jsx(KL.Item,{icon:t.jsx(kde,{size:Cde}),onClick:()=>e.driveFrom("dropdown"),disabled:e.isExporting,children:e.driveLabel}):null,a="drive"===l&&e?{icon:t.jsx(kde,{size:Cde}),label:e.driveLabel,ariaLabel:w.formatMessage({defaultMessage:"Open in Drive",id:"r80/2fFyeU"}),onClick:()=>e.driveFrom("primary"),loading:e.isExporting}:"native"===l?{icon:p?t.jsxs("span",{role:"status",children:[t.jsx(wN,{size:"md"}),t.jsx("span",{className:"sr-only",children:L})]}):I,label:p?L:S,onClick:()=>_("primary")}:"folder"===l?{icon:t.jsx($L,{name:"Folder",size:"sm"}),label:N,onClick:()=>j("primary")}:c;if(!a)return null;const i="code"===a.kind?null:v,r="share"===a.kind?null:y,o="download"===a.kind?null:b;return[s,A,E,i,r,o].filter(Boolean).length<=(a.kind?0:1)?t.jsx("div",{...T,children:t.jsx(rN,{variant:"secondary",size:M,className:n,onClick:a.onClick,busy:a.loading,"aria-label":a.ariaLabel??a.label,icon:a.icon,children:t.jsx("span",{className:"sm"===M?"font-normal":void 0,children:a.label})})}):t.jsx("div",{...T,children:t.jsx(Nu,{size:M,className:n,label:t.jsx(hde,{icon:a.icon,label:a.label,compact:"sm"===M}),"aria-label":a.ariaLabel??a.label,onPrimaryClick:a.onClick,busy:a.loading,menuLabel:R,items:t.jsxs(t.Fragment,{children:[s,A,E,i,r,o]})})})};return d&&a?t.jsx(vde,{sessionId:a,hostPath:i,fileUuid:r,logOpenAction:x,children:D}):t.jsx(t.Fragment,{children:D(null)})});xde.displayName="CoworkOpenSplitButton";const vde=e.memo(({sessionId:s,hostPath:n,fileUuid:a,logOpenAction:i,children:r})=>{const o=JS(),{exportToDrive:l,isExporting:c,showConnectionModal:d,setShowConnectionModal:u,connectionError:m}=ace(),p=e.useCallback(e=>{i("drive",e),l(s,n,a)},[i,l,s,n,a]),f=o.formatMessage({defaultMessage:"Google Drive",id:"GKdaNw6TF5"});return t.jsxs(t.Fragment,{children:[r({driveFrom:p,isExporting:c,driveLabel:f}),t.jsx(nce,{isOpen:d,onClose:()=>u(!1),errorType:m,callerIdentifier:"cowork-drive-export"})]})});vde.displayName="CoworkDriveProvider";const yde=e.memo(({sessionId:s,hostPath:n,fileUuid:a,variant:i,iconPx:r,className:o,stopPropagation:l,logOpenAction:c})=>{const d=JS(),{exportToDrive:u,isExporting:m,showConnectionModal:p,setShowConnectionModal:f,connectionError:g}=ace(),h=e.useCallback(e=>{l&&(e.preventDefault(),e.stopPropagation()),c("drive","icon"),u(s,n,a)},[l,c,u,s,n,a]),C=d.formatMessage({defaultMessage:"Open in Drive",id:"r80/2fFyeU"});return t.jsxs(t.Fragment,{children:[t.jsx(rN,{variant:m?"secondary":i,iconOnly:!0,busy:m,icon:t.jsx(kde,{size:r}),onClick:h,className:o,"aria-label":C}),t.jsx(nce,{isOpen:p,onClose:()=>f(!1),errorType:g,callerIdentifier:"cowork-drive-export"})]})});yde.displayName="CoworkDriveIconButton";const bde=e.memo(({filePath:s,sessionId:n,errorSource:a})=>{const i=JS(),r=ae(),{addError:o,addSuccess:l}=ut(),[c,d]=e.useState(null),[u,m]=e.useState(!1),p=e.useMemo(()=>Hle(s),[s]),f=dce(p),g=e.useMemo(()=>{const e=p.split(/[/\\]/).pop()??"",t=e.lastIndexOf(".");return t>0?e.slice(t+1):""},[p]),h=e.useCallback(async e=>{if(!u&&Ju?.promoteScratchpadFile){m(!0),r.track({event_key:"cowork.file.open_action",action:e?"folder":"native",location:"primary",file_extension:g,caller:a,primary_available:e?"folder":"native",primary_source:"availability",session_id:n,from_scratchpad:!0});try{const s=await Ju.promoteScratchpadFile(n,encodeURIComponent(p));d(s.hostPath),l(i.formatMessage({defaultMessage:"Saved to your outputs folder.",id:"flkfMNn4Sf"}));try{await(Ju.openLocalFile?.(n,encodeURIComponent(s.hostPath),e))}catch(t){o(Ere(t,i,"open"),{error:t,errorContext:{tags:{source:a}},messageForLogging:"Failed to open promoted scratchpad file"})}}catch(s){o(Ere(s,i,"open"),{error:s,errorContext:{tags:{source:a}},messageForLogging:"Failed to promote scratchpad file"})}finally{m(!1)}}},[u,p,n,g,a,l,o,i,r]);if(!Ju?.promoteScratchpadFile)return null;if(c)return t.jsx(gde,{filePath:c,sessionId:n,size:"default",errorSource:a});const C=f?i.formatMessage({defaultMessage:"Open in {appName}",id:"AsiqC3lr7Z"},{appName:f.appName}):i.formatMessage({defaultMessage:"Open",id:"JfG49wNHKP"}),x=f?.appIconBase64?t.jsx("img",{src:f.appIconBase64,height:Cde,width:Cde,alt:"",className:"flex-shrink-0"}):t.jsx($L,{name:"ArrowOutSquare",size:"sm"});return t.jsx(Nu,{label:t.jsx(hde,{icon:x,label:C}),"aria-label":C,onPrimaryClick:()=>{h(!1)},busy:u,menuLabel:i.formatMessage({defaultMessage:"More ways to open",id:"Wh8OICaIj8"}),items:t.jsxs(t.Fragment,{children:[t.jsx(KL.Item,{icon:x,onClick:()=>{h(!1)},disabled:u,children:C}),t.jsx(KL.Item,{icon:t.jsx($L,{name:"Folder",size:"sm"}),onClick:()=>{h(!0)},disabled:u,children:i.formatMessage({defaultMessage:"Show in Folder",id:"qJzHPN7NHs"})})]})})});function kde({size:e}){return t.jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",children:[t.jsx("path",{d:"M1.84624 12.6235L2.48571 13.728C2.61858 13.9605 2.80959 14.1432 3.03382 14.2761L5.31765 10.3231H0.75C0.75 10.5805 0.816439 10.8379 0.949316 11.0705L1.84624 12.6235Z",fill:"#0066DA"}),t.jsx("path",{d:"M8.00011 5.67238L5.71628 1.71931C5.49205 1.85219 5.30104 2.0349 5.16816 2.26743L0.949316 9.57562C0.818882 9.80314 0.750174 10.0608 0.75 10.3231H5.31765L8.00011 5.67238Z",fill:"#00AC47"}),t.jsx("path",{d:"M12.9663 14.2761C13.1905 14.1432 13.3815 13.9605 13.5144 13.728L13.7802 13.2712L15.0508 11.0705C15.1837 10.8379 15.2501 10.5805 15.2501 10.3231H10.6821L11.6541 12.2331L12.9663 14.2761Z",fill:"#EA4335"}),t.jsx("path",{d:"M8.00013 5.67238L10.284 1.71931C10.0597 1.58643 9.80228 1.52 9.53652 1.52H6.46374C6.19799 1.52 5.94054 1.59474 5.71631 1.71931L8.00013 5.67238Z",fill:"#00832D"}),t.jsx("path",{d:"M10.6824 10.3231H5.31752L3.03369 14.2761C3.25792 14.409 3.51537 14.4754 3.78112 14.4754H12.2188C12.4846 14.4754 12.742 14.4007 12.9663 14.2761L10.6824 10.3231Z",fill:"#2684FC"}),t.jsx("path",{d:"M12.9414 5.92153L10.8319 2.26743C10.6991 2.0349 10.5081 1.85219 10.2838 1.71931L8 5.67238L10.6825 10.3231H15.2418C15.2418 10.0656 15.1754 9.80816 15.0425 9.57562L12.9414 5.92153Z",fill:"#FFBA00"})]})}function wde(t){const s=vg(),n=e.useMemo(()=>new Map,[t,s]);return{checkPath:e.useMemo(()=>e=>{const t=e.replace(/^computer:\/\//,"").replace(/^\/mnt\/user-data\//,"").replace(/^\/home\/user\//,"");const s=n.get(t);if(s)return{isGenerated:!0,toolType:s};const a=t.split("/").pop()??"";if(a)for(const[i,r]of n)if(i.endsWith(`/${a}`)||i===a)return{isGenerated:!0,toolType:r};return{isGenerated:!1}},[n])}}bde.displayName="CoworkScratchpadOpenActions";const Mde={icon_sm:"sm",icon:void 0,icon_lg:"lg"};function _de({file:e,conversationUuid:s,source:n,variant:a="ghost",size:i="icon_lg",className:r}){const o=JS(),l=$s(),{handleOpenInGoogleDrive:c,showConnectionModal:d,setShowConnectionModal:u,connectionError:m,isExporting:p}=ice({conversationUuid:s,source:n});if(!rce(e.path,l))return null;const f="icon_sm"===i?16:"icon"===i?20:24,g=o.formatMessage({defaultMessage:"Open in Drive",id:"r80/2fFyeU"});return t.jsxs(t.Fragment,{children:[t.jsx(rN,{variant:p?"secondary":a,size:Mde[i],iconOnly:!0,icon:t.jsx(vp,{size:f}),"aria-label":g,busy:p,onClick:t=>{t.preventDefault(),t.stopPropagation(),c(e.path)},className:r}),t.jsx(nce,{isOpen:d,onClose:()=>{u(!1)},errorType:m,callerIdentifier:"google-drive-export-button",pathname:`/chat/${s}`})]})}function jde({file:s,conversationUuid:n,fileUuid:a,variant:i="ghost",size:r="default",className:o,pendingReviewCount:l=0,onRequestChanges:c,onSaveAsIs:d}){const u=JS(),{upload:m,isUploading:p,hasCopied:f}=function({file:s,conversationUuid:n,fileUuid:a,onUploadSuccess:i}){const{addError:r,addSuccess:o}=ut(),l=kg(),{track:c}=ae(),d=wg(),u=JS(),{activeOrganization:m}=v(),p=ga(n),f=M(),[g,h]=e.useState(!1),[C,x]=e.useState(!1),{mutateAsync:y}=Mg(),{mutate:b}=_g({onSuccess:e=>{if(h(!1),e.success){x(!0),p&&y({sessionId:n}).catch(()=>{}),i?.();const s=e.pluginId?`/customize/plugins/${encodeURIComponent(e.pluginId)}`:"/customize/plugins";if(e.pluginId){const t=jg(e.pluginId);c({event_key:e.isNew?"claudeai.fusion.create_with_claude_applied":"claudeai.fusion.customize_applied",...d(t)&&{plugin_id:e.pluginId},conversation_uuid:n})}o(t.jsxs("span",{children:[t.jsx(XS,{defaultMessage:"Plugin changes applied.",id:"ndQSHE7yeA"})," ",t.jsx(er,{href:s,onClick:t=>{!l||0!==t.button||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||(t.preventDefault(),mn("customize-plugins",e.pluginId?pn([e.pluginId]):void 0))},className:"underline hover:no-underline",children:t.jsx(XS,{defaultMessage:"Manage",id:"0AzlrbMWV9"})})]}))}else r(e.error??u.formatMessage({defaultMessage:"Failed to install plugin. You can try again.",id:"FV4EL4J4RM"}),{errorContext:{tags:{source:"cowork_fusion_file_upload"}},messageForLogging:"Cowork fusion file upload failed."})},onError:e=>{h(!1),r(u.formatMessage({defaultMessage:"Failed to install plugin. You can try again.",id:"FV4EL4J4RM"}),{error:e,errorContext:{tags:{source:"cowork_fusion_file_upload"}},messageForLogging:"Cowork fusion file upload failed."})}});return{upload:e.useCallback(async()=>{h(!0);try{const t=s.path.replace(/^computer:\/\//,""),i=(s.path.split("/").pop()||"plugin.zip").replace(/\.plugin$/,".zip");let r;if(p&&a){if(!m?.uuid)throw new Error(u.formatMessage({defaultMessage:"Unable to read file from remote session.",id:"zH5HFp3/hv"}));const e=await f(ZN(m.uuid,a));if(!e.ok)throw new Error(u.formatMessage({defaultMessage:"Unable to read file from remote session.",id:"zH5HFp3/hv"}));const t=new Uint8Array(await e.arrayBuffer());let s="";for(let n=0;n<t.length;n++)s+=String.fromCharCode(t[n]);r=btoa(s)}else if(p){if(!bg(t))throw new Error(u.formatMessage({defaultMessage:"This file lives in the remote container and isn't downloadable.",id:"cJF3YC4JVz"}));if(!m?.uuid)throw new Error(u.formatMessage({defaultMessage:"Unable to read file from remote session.",id:"zH5HFp3/hv"}));let s;try{s=await dg(f,m.uuid,n,t)}catch(e){throw new Error(u.formatMessage({defaultMessage:"Unable to read file from remote session.",id:"zH5HFp3/hv"}),{cause:e})}r=s.content}else{const e=await(Ju?.readLocalFile?.(n,encodeURIComponent(t)));if(!e)throw new Error(u.formatMessage({defaultMessage:"Unable to read local file.",id:"wThTQW8q/h"}));r="base64"===e.encoding?e.content:btoa(e.content)}b({filename:i,base64Content:r,replaceExisting:!0})}catch(t){h(!1);const e=t instanceof Error?t:new Error(String(t));r(e.message||u.formatMessage({defaultMessage:"Failed to read plugin file. You can try again.",id:"AqGHkGYOAP"}),{error:e,errorContext:{tags:{source:"cowork_fusion_file_read"}},messageForLogging:"Cowork fusion file read failed."})}},[m,n,s.path,a,p,f,b,r,u]),isUploading:g,hasCopied:C}}({file:s,conversationUuid:n,fileUuid:a,onUploadSuccess:d}),[g,h]=e.useState(!1);if(!s.path.endsWith(".plugin"))return null;if(!yg?.uploadPlugin)return null;if(ga(n)&&!a&&!bg(s.path.replace(/^computer:\/\//,"")))return null;return t.jsxs(t.Fragment,{children:[t.jsx(rN,{variant:i,size:"default"===r?void 0:r,busy:p,disabled:f,onClick:e=>{e.preventDefault(),e.stopPropagation(),l>0&&c?h(!0):m()},className:o,children:f?t.jsx(XS,{defaultMessage:"Saved",id:"fsB/4pdUqN"}):t.jsx(XS,{defaultMessage:"Save plugin",id:"eqHQgRW0Wv"})}),t.jsx(lN.Root,{open:g,onOpenChange:h,children:t.jsxs(lN.Popup,{size:"md",children:[t.jsx(lN.Header,{showClose:!1,children:u.formatMessage({defaultMessage:"Save without addressing comments?",id:"qOwU19KqMh"})}),t.jsx(lN.Description,{children:t.jsx(XS,{defaultMessage:"You have {count, plural, one {# pending comment} other {# pending comments}} that haven't been addressed yet.",id:"jVeyPROIGw",values:{count:l}})}),t.jsxs(lN.Footer,{children:[t.jsx(rN,{variant:"secondary",onClick:()=>{h(!1),c?.()},children:t.jsx(XS,{defaultMessage:"Request {count, plural, one {# change} other {# changes}}",id:"x7079rVzjW",values:{count:l}})}),t.jsx(rN,{variant:"primary",busy:p,onClick:()=>{h(!1),m()},children:t.jsx(XS,{defaultMessage:"Save as-is",id:"t2dgSHayUs"})})]})]})})]})}async function Sde(e){const{default:t}=await a(async()=>{const{default:e}=await import("./cc36201d2-CCKkYCvx.js").then(e=>e.j);return{default:e}},[],import.meta.url),s=new t,n=await e.text();s.file("SKILL.md",n);const i=await s.generateAsync({type:"blob"}),r=e.name.replace(/\.md$/i,"");return new File([i],`${r}.skill`,{type:"application/zip"})}const Lde=tL({replaced:{defaultMessage:"Replaced {skillName}",id:"sYhwAtWfXb"},uploaded:{defaultMessage:"Uploaded {skillName}",id:"vhBE2sxMlV"},uploadedMany:{defaultMessage:"Uploaded {count, plural, one {# skill} other {# skills}}",id:"DK/Xf5Yf0k"}});function Nde(e){const t=e.toLowerCase();return t.endsWith(".zip")||t.endsWith(".skill")||t.endsWith(".md")}function Ide(s){const{useUploadMutation:n,useListQuery:a,enableNux:i=!1,scope:r}=s;return function(s={}){const{onUploadSuccess:o}=s,l=JS(),{addSuccess:c,addError:d}=ut(),{track:u}=ae(),m=zS(),[p,f]=e.useState(!1),[g,h]=e.useState([]),[C,x]=e.useState("closed"),[v,y]=e.useState(null),[b,k]=e.useState(!1),[w,M]=e.useState(""),[_,j]=e.useState(void 0),[S,L]=e.useState(null),{data:N}=a(),I=ZS(e=>e.setSkillNameForNux),T=ZS(e=>e.setPendingScanCompletion),{mutateAsync:A}=n({meta:{noToast:!0}}),E=e.useCallback(async(e,t={})=>{if(!Nde(e.name))return{kind:"invalid",messages:[l.formatMessage({defaultMessage:"Skill files must have a .skill, .zip, or .md file extension.",id:"Cp+wdwlq61"})]};let s=e;try{e.name.toLowerCase().endsWith(".md")&&(s=await Sde(e))}catch{return{kind:"invalid",messages:[l.formatMessage({defaultMessage:"Skill upload failed. You can try again.",id:"pZhkP74eg/"})]}}const n=new FormData;n.append("file",s),void 0!==t.checkSkillName?(n.append("overwrite","true"),n.append("check_skill_name",t.checkSkillName)):t.overwrite&&n.append("overwrite","true");try{const e=await A(n);return e.skill?{kind:"ok",skill:e.skill}:{kind:"invalid",messages:e.validationErrors.map(e=>e.message)}}catch(a){return Sg(a)?{kind:"conflict",skillName:a.extra.details.skill_name}:{kind:"invalid",messages:[a instanceof Error?a.message:String(a)],errorCode:a instanceof cs?a.errorCode??"missing_error_code":void 0}}},[A,l]),R=e.useCallback((e,{isReplace:t,isDragDrop:s})=>{const n=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(e.skillId);u({event_key:"claudeai.skills.skill.upload.succeeded",skill_id:n?e.skillId:void 0,creator_type:e.creatorType,scope:e.partitionBy,upload_method:s?"drag_drop":"file_picker",is_replace:t})},[u]),D=e.useCallback(e=>{const t=N?.skills.find(t=>t.skillName===e.skillName);t&&t.skillDescription===e.skillDescription||L(e.skillId)},[N]),H=e.useCallback((e,s)=>{const n=m&&!1!==e.scanRequested;var a;c(n?(a={single:1===s.count,isExplicitReplace:s.isReplace,skillName:e.skillName,count:s.count}).single&&a.isExplicitReplace?t.jsx(hs,{id:"dhi058",dangerouslyVisiblePublicValues:{skillName:a.skillName}}):a.single?t.jsx(hs,{id:"m50j64",dangerouslyVisiblePublicValues:{skillName:a.skillName}}):t.jsx(hs,{id:"17bdkt6",dangerouslyVisiblePublicValues:{count:a.count}}):1===s.count&&s.isReplace?l.formatMessage(Lde.replaced,{skillName:e.skillName}):1===s.count?l.formatMessage(Lde.uploaded,{skillName:e.skillName}):l.formatMessage(Lde.uploadedMany,{count:s.count})),n&&"organization"!==r?T({skillId:e.skillId,skillName:e.skillName,isFirstSkill:s.hadNoUserSkillsBefore}):s.hadNoUserSkillsBefore&&I(e.skillName),D(e)},[m,c,l,T,I,D]),P=e.useCallback((e,t)=>{void 0!==e&&u({event_key:"claudeai.skills.upload_failed",scope:r,error_code:e,upload_method:t?"drag_drop":"file_picker"})},[u]),U=e.useCallback(async(e,t)=>{if(0===e.length)return;const s=_,n=void 0!==s;if(e.find(e=>!Nde(e.name)))return h([l.formatMessage({defaultMessage:"Skill files must have a .skill, .zip, or .md file extension.",id:"Cp+wdwlq61"})]),P(void 0,t),x("upload"),void(n&&(j(void 0),M("")));const a=i&&0===(N?.skills.filter(e=>"user"===e.creatorType).length??0);h([]),f(!0),n||x("upload");const r=e=>{e>0&&d(l.formatMessage({defaultMessage:"Upload stopped \u2014 {remaining, plural, one {# skill was} other {# skills were}} not uploaded",id:"bNZdwJJ2yH"},{remaining:e}))},c=[];try{for(let a=0;a<e.length;a++){const i=e[a],o=await E(i,n?{checkSkillName:s}:{});if("conflict"===o.kind)return y(i),M(o.skillName),x("replace"),void r(e.length-a-1);if("invalid"===o.kind)return h(o.messages),P(o.errorCode,t),n&&(x("upload"),j(void 0),M("")),void r(e.length-a-1);R(o.skill,{isReplace:n,isDragDrop:t}),c.push(o.skill)}x("closed"),n&&(y(null),M(""),j(void 0)),o?.()}finally{if(f(!1),c.length>0){const e=c[c.length-1];H(e,{isReplace:n,count:c.length,hadNoUserSkillsBefore:a})}}},[_,E,R,P,o,d,l,N,H]),O=e.useCallback(async e=>{const t=Array.from(e.dataTransfer.files),s=void 0!==_;await U(s?t.slice(0,1):t,!0)},[U,_]),F=e.useCallback(async e=>{const t=Array.from(e.target.files??[]);try{await U(t,!1)}finally{e.target.value=""}},[U]),V=e.useCallback(async({file:e,isDragDrop:t})=>{f(!0);try{const s=await E(e);if("ok"===s.kind)return R(s.skill,{isReplace:!1,isDragDrop:t}),H(s.skill,{isReplace:!1,count:1,hadNoUserSkillsBefore:i&&0===(N?.skills.filter(e=>"user"===e.creatorType).length??0)}),void o?.();if("conflict"===s.kind)throw y(e),M(s.skillName),x("replace"),new Error("Skill already exists");throw P(s.errorCode,t),new Error(s.messages[0]??"Skill validation failed")}finally{f(!1)}},[E,R,P,o,N,H]),z=e.useCallback(async()=>{if(v){k(!0);try{const e=await E(v,{overwrite:!0});if("ok"===e.kind)return R(e.skill,{isReplace:!0,isDragDrop:!1}),H(e.skill,{isReplace:!0,count:1,hadNoUserSkillsBefore:i&&0===(N?.skills.filter(e=>"user"===e.creatorType).length??0)}),x("closed"),y(null),M(""),j(void 0),void o?.();"invalid"===e.kind&&(h(e.messages),P(e.errorCode,!1),x("upload"),j(void 0),M(""),y(null))}finally{k(!1)}}},[v,E,R,P,o,N,H]),Z=e.useCallback(()=>{x("closed"),y(null),M(""),k(!1),j(void 0)},[]),B=e.useCallback(e=>{j(e),M(e)},[]),q=e.useCallback(()=>{j(void 0),M(""),y(null)},[]),W=e.useCallback(()=>{x("closed"),h([]),q()},[q]),$=e.useCallback(()=>{L(null)},[]);return{isUploadingSkill:p,isReplacingSkill:b,skillNameToReplace:w,uploadSkillFile:V,handleSkillDrop:O,handleFileInputChange:F,handleReplaceConfirm:z,handleReplaceCancel:Z,validationErrors:g,modalView:C,setModalView:x,closeUploadModal:W,initiateReplace:B,clearReplaceState:q,skillIdToAutoExpand:S,clearAutoExpandState:$}}}function Tde({skillName:e,isOpen:s,isLoading:n,onConfirm:a,onCancel:i}){const r=JS();return t.jsx(yu,{isOpen:s,onClose:i,onConfirm:a,title:r.formatMessage({defaultMessage:"Replace \u201c{skillName}\u201d skill?",id:"RSqxaAn/FM"},{skillName:e}),message:r.formatMessage({defaultMessage:"There\u2019s an existing skill with the same name. Uploading this skill will replace the existing one, which can\u2019t be restored.",id:"dRMF/vTgCW"}),confirmText:r.formatMessage({defaultMessage:"Upload and replace",id:"TtbWBGHNcO"}),cancelText:r.formatMessage({defaultMessage:"Cancel",id:"47FYwba+bI"}),variant:"danger",isLoading:n})}function Ade({file:s,conversationUuid:n,source:a,variant:i="ghost",size:r="default",className:o,fileUuid:l}){const{activeOrganization:c}=v(),{addError:d,addSuccess:u}=ut(),m=zS(),p=ZS(e=>e.setPendingScanCompletion),f=ae(),g=JS(),h=Rg,C=Lg(h),x="local_session"===Me()?.type,y=ga(n),b=M(),k=ke("skill_creation").isAvailable,w=s.path.endsWith("/SKILL.md"),[_,j]=e.useState(!1),[S,L]=e.useState(!1),[N,I]=e.useState(""),[T,A]=e.useState(!1),[E,R]=e.useState(null),{skills:D}=Ng(),H=e.useCallback(e=>{const t=e.trim().toLowerCase();return D.find(e=>Ig(e)&&e.skillName.trim().toLowerCase()===t)},[D]),P=e.useMemo(()=>{const e=s.path.replace(/^computer:\/\//,"").split("/"),t=w?e[e.length-2]:e[e.length-1]?.replace(/\.skill$/i,"");return t?H(t):void 0},[s.path,w,H]),{mutateAsync:U}=Tg(),{mutateAsync:O}=Ag({meta:{noToast:!0},onSuccess:({skill:e,validationErrors:s})=>{if((T?A:j)(!1),e){y&&U({sessionId:n}).catch(()=>{});const s=m&&!1!==e.scanRequested;u(t.jsxs("span",{children:[s?t.jsx(hs,{id:"1vnre30"}):t.jsx(XS,{defaultMessage:"Skill saved. ",id:"olTev4HXgb"}),t.jsx(er,{href:h,onClick:C,className:"underline hover:no-underline",children:t.jsx(XS,{defaultMessage:"Manage",id:"0AzlrbMWV9"})})]})),s&&p({skillId:e.skillId,skillName:e.skillName,isFirstSkill:!1}),R(null),T&&(L(!1),I(""))}s.length>0&&s.forEach(e=>{d(e.message,{errorContext:{tags:{code:e.error_code}}})})},onError:e=>{if(Sg(e))I(e.extra.details.skill_name),L(!0),j(!1);else{(T?A:j)(!1),d(e instanceof Error&&e.message?e.message:g.formatMessage({defaultMessage:"Failed to upload skill. You can try again.",id:"3wfKKwlXcY"}),{error:e,errorContext:{tags:{source:"skill_file_upload"}},messageForLogging:"Failed to upload skill."})}}}),F=e.useCallback(async(e,t,s)=>{const n=t?A:j;n(!0);try{const n=new FormData;n.append("file",e),n.append("overwrite",t?"true":"false"),t&&s&&n.append("check_skill_name",s),await O(n)}catch(a){n(!1)}},[O]),V=e.useCallback(e=>{const t=e instanceof Error?e:new Error(String(e));d(t.message||g.formatMessage({defaultMessage:"Failed to save skill. You can try again.",id:"ZjID+z7jF+"}),{error:t,errorContext:{tags:{source:"skill_file_download"}},messageForLogging:"Failed to save skill."})},[d,g]),z=e.useCallback(async()=>{if(!c?.uuid)throw new Error(g.formatMessage({defaultMessage:"Failed to save skill. You can try again.",id:"ZjID+z7jF+"}));const e=s.path.split("/"),t=w?`${e[e.length-2]}.md`:e[e.length-1];let a;if(y&&l){const e=await b(ZN(c.uuid,l));if(!e.ok)throw new Error(g.formatMessage({defaultMessage:"Unable to read file from remote session.",id:"zH5HFp3/hv"}));a=new File([await e.arrayBuffer()],t)}else if(y){const e=s.path.replace(/^computer:\/\//,"");if(!bg(e))throw new Error(g.formatMessage({defaultMessage:"This file lives in the remote container and isn't downloadable.",id:"cJF3YC4JVz"}));let r;try{r=await dg(b,c.uuid,n,e)}catch(i){throw new Error(g.formatMessage({defaultMessage:"Unable to read file from remote session.",id:"zH5HFp3/hv"}),{cause:i})}const o=Uint8Array.from(atob(r.content),e=>e.charCodeAt(0));a=new File([o],t)}else if(x){const e=s.path.replace(/^computer:\/\//,""),i=await(Ju?.readLocalFile?.(n,encodeURIComponent(e)));if(!i)throw new Error(g.formatMessage({defaultMessage:"Unable to read local file.",id:"wThTQW8q/h"}));const r="base64"===i.encoding?Uint8Array.from(atob(i.content),e=>e.charCodeAt(0)):(new TextEncoder).encode(i.content);a=new File([r],t)}else{const e=UB({organizationUuid:c.uuid,conversationUuid:n,filePath:s.path.replace(/^computer:\/\//,""),isShared:!1}),i=await fetch(e);if(!i.ok)throw new Error(`Failed to download file: ${i.status} ${i.statusText}`);const r=await i.blob();a=new File([r],t,{type:r.type})}if(w)a=await Sde(a);else{const e=await async function(e){const t=new Uint8Array(await e.slice(0,4).arrayBuffer());if(t.length>=4&&80===t[0]&&75===t[1]&&3===t[2]&&4===t[3])return e;const s=new Uint8Array(await e.slice(0,256).arrayBuffer());return s.length>0&&!s.includes(0)?Sde(new File([e],e.name.replace(/\.skill$/i,".md"))):null}(a);if(!e)throw new Error(g.formatMessage({defaultMessage:"This skill file isn't a valid archive. Ask Claude to repackage it as a zip.",id:"OBB+5a51S+"}));a=e}return a},[c,n,s.path,l,w,y,x,b,g]),Z=e.useCallback(async()=>{if(c?.uuid){f.track({event_key:"claudeai.skills.file_save_skill.clicked",source:a}),j(!0);try{const e=await z();let t;R(e);try{t=(await Eg(e)).name}catch{}if((void 0===t?void 0:H(t))&&void 0!==t)return j(!1),I(t),void L(!0);await F(e,!1)}catch(e){j(!1),V(e)}}},[c,f,a,z,H,F,V]),B=e.useCallback(async()=>{N&&E&&await F(E,!0,N)},[N,E,F]),q=e.useCallback(()=>{L(!1),R(null),I(""),A(!1)},[]);return(s.path.endsWith(".skill")||w)&&k&&(!y||l||bg(s.path.replace(/^computer:\/\//,"")))?t.jsxs(t.Fragment,{children:[t.jsx(rN,{variant:i,size:"default"===r?void 0:r,busy:_,onClick:e=>{e.preventDefault(),e.stopPropagation(),Z()},className:o,children:P?t.jsx(XS,{defaultMessage:"Update skill",id:"pZCF1XMh/y"}):t.jsx(XS,{defaultMessage:"Save skill",id:"QvmjxZ7K5S"})}),t.jsx(Tde,{skillName:N,isOpen:S,isLoading:T,onConfirm:B,onCancel:q})]}):null}function Ede({file:s,conversationUuid:n,onOpen:a,isInSidebar:i=!1,isShared:r,fileUuid:o,openWith:l}){const{activeOrganization:c}=v(),d=JS(),[u,p]=e.useState(!1),f=noe(),g=m(),h=ME(),C=$s(),x=Me(),y="local_session"===x?.type,b="local_session"===x?.type?x.sessionId:null,{addError:k}=ut(),w="project-doc"===l?.via,M=dce(g&&!y?s.path.replace(/^computer:\/\//,""):void 0);wde(void 0);const _=CH(s.name),j={code:{IconComponent:YR,label:t.jsx(XS,{defaultMessage:"Code",id:"G8PgU8iXdR",description:"A label for a category of filetypes"}),isPreviewable:!0},table:{IconComponent:KR,label:t.jsx(XS,{defaultMessage:"Table",id:"o1Bm9Seua1",description:"A label for a category of filetypes"}),isPreviewable:!0},spreadsheet:{IconComponent:KR,label:t.jsx(XS,{defaultMessage:"Spreadsheet",id:"WeEn8OTS2e",description:"A label for a category of filetypes"}),isPreviewable:!0},doc:{IconComponent:GR,label:t.jsx(XS,{defaultMessage:"Document",id:"86Gv/DR1uA",description:"A label for a category of filetypes"}),isPreviewable:!0},image:{IconComponent:$R,label:t.jsx(XS,{defaultMessage:"Image",id:"8mG9Cg7ges",description:"A label for a category of filetypes"}),isPreviewable:!0},diagram:{IconComponent:WR,label:t.jsx(XS,{defaultMessage:"Diagram",id:"HDIA+OJNvT",description:"A label for a category of filetypes"}),isPreviewable:!0},preso:{IconComponent:qR,label:t.jsx(XS,{defaultMessage:"Presentation",id:"KUNdHQwOKr",description:"A label for a category of filetypes"}),isPreviewable:!1},skill:{IconComponent:ZP,label:t.jsx(XS,{defaultMessage:"Skill",id:"T6zqYFD/5k",description:"A label for a skill filetype"}),isPreviewable:!1},plugin:{IconComponent:FP,label:t.jsx(XS,{defaultMessage:"Plugin",id:"mVkTZZgH2a"}),isPreviewable:!1}},{IconComponent:S,label:L}=_?j[_]:{IconComponent:BR,label:null},N="skill"===_,I="plugin"===_,T=vH(_),{displayName:A,displayExt:E}=xH(s.name,_),R=t.jsxs(t.Fragment,{children:[L,L&&E&&t.jsx("span",{className:"opacity-50",children:" \xb7 "}),E]}),D=!i&&!r&&!y&&!w&&h&&rce(s.path,C);return t.jsx(Dg,{icon:t.jsx(S,{size:20,weight:"light",className:"text-text-500"}),properties:{id:s.path,title:A||s.name},isStreaming:!1,className:dt(i&&"!m-0",""),displayType:R,actions:t.jsxs("div",{className:"flex min-w-0 items-center justify-center gap-2 shrink-0",children:[T&&!w&&!y&&t.jsx(kt,{"aria-label":d.formatMessage({id:"j161zhmrWT",defaultMessage:"Download {filename}"},{filename:A||s.name}),variant:i?"ghost":"secondary",onClick:e=>{e.preventDefault(),e.stopPropagation(),c?.uuid&&f(r?{filepath:s.path,orgUuid:c.uuid,snapshotUuid:n,isShared:!0,source:"wiggle_card_download_button"}:{filepath:s.path,orgUuid:c.uuid,conversationUuid:n,isShared:!1,source:"wiggle_card_download_button"})},size:"icon",className:"!rounded-lg",children:t.jsx(Ot,{size:16,className:"text-text-400"})}),D&&t.jsx(_de,{file:s,conversationUuid:n,source:"wiggle_card",variant:"secondary",size:"icon",className:"!rounded-lg"}),!i&&!r&&N&&!w&&t.jsx(Ade,{file:s,conversationUuid:n,source:"wiggle_artifact_card",variant:"secondary",size:"default",className:"!rounded-lg",fileUuid:o}),!i&&!r&&y&&I&&!w&&t.jsx(jde,{file:s,conversationUuid:n,fileUuid:o,variant:"secondary",size:"default",className:"!rounded-lg"}),!T&&!w&&y&&!Tre(s.path)&&(o||g&&Ju?.openLocalFile)&&b&&t.jsx(gde,{filePath:s.path,sessionId:b,fileUuid:o,variant:i?"ghost":"secondary",size:i?"icon":"default",iconPx:i?16:20,folderIconPx:16,stopPropagation:!0,errorSource:"wiggle_artifact_card"}),!T&&!w&&!y&&(g&&Ju?.writeFileDownloadAndOpen?t.jsx(kt,{"aria-label":d.formatMessage({id:"021qyBW/hG",defaultMessage:"Download and open {filename}"},{filename:A||s.name}),variant:i?"ghost":"secondary",loading:u,onClick:e=>{if(e.preventDefault(),e.stopPropagation(),!c?.uuid)return;const t=s.path.split("/");p(!0);const a=UB(r?{organizationUuid:c.uuid,snapshotUuid:n,filePath:s.path.replace(/^computer:\/\//,""),isShared:!0}:{organizationUuid:c.uuid,conversationUuid:n,filePath:s.path.replace(/^computer:\/\//,""),isShared:!1});Ju.writeFileDownloadAndOpen(t[t.length-1],new URL(a,window.location.href).href).catch(()=>{k(d.formatMessage({defaultMessage:"Failed to download and open file",id:"cxAbUvhHjJ"}),{messageForLogging:"Failed to download and open file"})}).then(()=>{p(!1)})},size:i?"icon":"default",prepend:!i&&M&&M.appIconBase64&&t.jsx("img",{src:M.appIconBase64,height:20,width:20,alt:d.formatMessage({defaultMessage:"Open file on desktop",id:"7tjfei6CPJ"})}),children:i?t.jsx(Hg,{size:16,className:"text-text-400"}):t.jsx(XS,{id:"QREssrXerV",defaultMessage:"Download and open"})}):t.jsx(kt,{"aria-label":d.formatMessage({id:"j161zhmrWT",defaultMessage:"Download {filename}"},{filename:A||s.name}),variant:i?"ghost":"secondary",onClick:e=>{e.preventDefault(),e.stopPropagation(),c?.uuid&&f(r?{filepath:s.path,orgUuid:c.uuid,snapshotUuid:n,isShared:!0,source:"wiggle_card_download_button"}:{filepath:s.path,orgUuid:c.uuid,conversationUuid:n,isShared:!1,source:"wiggle_card_download_button"})},size:i?"icon":"default",children:i?t.jsx(Ot,{size:16,className:"text-text-400"}):t.jsx(XS,{id:"5q3qC0sC3r",defaultMessage:"Download"})}))]}),onOpenArtifact:a},s.path)}const Rde=new Set(["doc","spreadsheet","preso","table","diagram","image"]);function Dde(e){if(Pg(e))return!1;const t=CH(nm(e));return null!==t&&Rde.has(t)}const Hde=String.raw`(?:[^[\]]|\[[^[\]]*\])*`,Pde=String.raw`computer:\/\/\/(?:[^()]|\([^()]*\))+`;function Ude(e){const t=[],s=new RegExp(String.raw`\[${Hde}\]\((${Pde})\)`,"g"),n=e.replace(s,(e,s)=>(t.push(s)," [ ")).match(/(?<!\]\()computer:\/\/\/[^\s)\],;!?`]+(?![^[]*\])/g)||[];t.push(...n);const a=t.map(e=>e.replace(/[.,;!?]+$/,""));return[...new Set(a)]}function Ode(e){return e.replace(/\\+["'[\]]?/g,e=>"\\"!==e[e.length-1]&&(e.length-1)%2==1?e.slice(0,-1)+"\uffff":e)}function Fde(e){return e.includes("\\")?e.replace(/\\([!-/:-@[-`{-~])/g,"$1"):e}function Vde(e,t=e){if(!/computer:/i.test(e))return{markdownSpans:[]};t===e&&e.includes("\\")&&(t=Ode(e));const s=[],n=2048;let a=0,i=-2;for(;;){const r=t.indexOf("](",a);if(-1===r)break;a=r+1;let o=r+2,l=0;for(;o<e.length;){const t=e[o];if(" "===t||"\t"===t)o++;else{if("\n"!==t||0!==l)break;l++,o++}}-1!==i&&o>i&&(i=e.indexOf("\n",o));const c=i,d=-1===c?e.length:c,u=Math.min(d,o+n),m=o+n<d;let p,f,g,h=!1;if("<"===t[o]){for(p=o+1;p<u&&(" "===e[p]||"\t"===e[p]);)p++;let s=-1;for(let e=p;e<u;e++)if("\\"===t[e]&&e+1<u)e++;else if(">"===t[e]){s=e;break}if(-1===s&&!m)continue;for(f=-1===s?d:s;f>p&&(" "===e[f-1]||"\t"===e[f-1]);)f--;g=-1===s?d:s+1;const n=g;let a=g;for(;a<u&&(" "===e[a]||"\t"===e[a]);)a++;const i=a>n?t[a]:"";if('"'===i||"'"===i){const e=t.indexOf(i,a+1);-1!==e&&e<u&&(a=e+1)}else if("("===i){const e=t.indexOf(")",a+1);-1!==e&&e<u&&(a=e+1)}for(;a<u&&(" "===e[a]||"\t"===e[a]);)a++;")"===t[a]&&(g=a+1,g>s+2&&(h=!0))}else{p=o;let s=1,a=-1;for(let e=o;e<u;e++){const n=t[e];if("("===n||")"===n){let i=0;for(let s=e-1;s>=o&&"\\"===t[s];s--)i++;if(i%2==0)if("("===n)s++;else if(s--,0===s){a=e;break}}}if(-1===a&&!m){if("\n"!==e[d])continue;{let s=d+1;const i=Math.min(e.length,s+n);for(;s<i&&(" "===e[s]||"\t"===e[s]);)s++;if(")"===t[s])a=s;else if(s>=i&&i<e.length&&(" "===e[s]||"\t"===e[s]))a=i-1,h=!0;else{const n=t[s],r="("===n?")":n;if('"'!==n&&"'"!==n&&"("!==n)continue;let o=-1;for(let e=s+1;e<i;e++)if(t[e]===r){if(")"===r){let n=0;for(let a=e-1;a>s&&"\\"===t[a];a--)n++;if(n%2==1)continue}o=e;break}const l=-1===o?i:o;if(/\n[ \t]*\n/.test(e.slice(s+1,l)))continue;if(-1===o){if(!(i<e.length))continue;a=i-1}else{let s=o+1,n=!1;for(;s<i;){const t=e[s];if(" "===t||"\t"===t)s++;else{if("\n"!==t||n)break;n=!0,s++}}if(")"===t[s])a=s;else{if(!(s>=i&&i<e.length))continue;a=i-1}}h=!0}}}for(f=-1===a?d:Math.min(a,d);f>p&&(" "===e[f-1]||"\t"===e[f-1]||"\n"===e[f-1]);)f--;g=-1===a?d:a+1}const C=e.slice(p,f);if(!/^computer:\/{2,3}/i.test(C)||f<=p)continue;let x=1,v=-1,y=-1,b=!1;const k=Math.max(0,r-n);for(let s=r-1;s>=k;s--){const n=t[s];if("]"===n)x++;else if("["===n){if(x--,y=s,0===x){v=s;break}}else if("\n"===e[s]&&"\n"===e[s-1]){b=!0;break}}let w;if(v>=0)w=v;else if(y>=0)w=y;else if(k>0&&!b){const s=Math.max(0,k-n);let a=k-1,i=-1;for(;a>=s;a--){if("["===t[a]){i=a;break}if("\n"===e[a]&&"\n"===e[a-1]){a++;break}}w=i>=0?i:Math.max(a,s)}else w=r;s.push({index:w,end:g,labelSep:r,destination:C,balanced:v>=0}),h||(a=g)}return{markdownSpans:s}}function zde(e){return e.trim().replace(/\s+/g," ").toLowerCase().toUpperCase()}function Zde(e,t,s){let n,a=s+1,i=0;for(;a<e.length;){const t=e[a];if(" "===t||"\t"===t)a++;else{if("\n"!==t||0!==i)break;i++,a++}}if("<"===t[a]){const s=e.indexOf("\n",a),i=-1===s?e.length:s;let r=-1;for(let n=a+1;n<i&&"\r"!==e[n];n++){const s=t[n];if("\\"===s&&n+1<i){if("\r"===e[n+1])break;n++}else{if("<"===s)return!1;if(">"===s){r=n;break}}}if(-1===r)return!1;n=r+1}else{let s=1,i=a;const r=Math.min(e.length,a+2048);for(;i<r;i++){const n=e[i];if(n<=" "&&"\0"!==n||"\x7f"===n)break;const a=t[i];if("("===a)s++;else if(")"===a&&(s--,0===s))break}if(i===r)return!1;if(1!==s&&")"!==t[i])return!1;if(n=i,")"===t[n])return!0}let r=n;for(;r<e.length;){const t=e[r];if(" "===t||"\t"===t)r++;else{if("\n"!==t||0!==i)break;i++,r++}}if(")"===t[r])return!0;if(r===n)return!1;const o=t[r];if('"'===o||"'"===o){const s=t.indexOf(o,r+1);if(-1===s)return!1;if(/\n[ \t]*\n/.test(e.slice(r+1,s).replace(/\r\n?/g,"\n")))return!1;r=s+1;let n=!1;for(;r<e.length;){const t=e[r];if(" "===t||"\t"===t)r++;else{if("\n"!==t||n)break;n=!0,r++}}return")"===t[r]}return!1}function Bde(e,t,s){let n=s;for(;n<e.length&&(" "===e[n]||"\t"===e[n]);)n++;let a=!1;if("\n"===e[n])for(a=!0,n++;n<e.length&&(" "===e[n]||"\t"===e[n]);)n++;if(n===s)return null;const i=t[n];if('"'!==i&&"'"!==i&&"("!==i)return null;const r="("===i?")":i,o=e.indexOf("\n",n),l=Math.min(e.length,(-1===o?e.length:o+1)+2048);let c=n+1;for(;c<l;c++){if("\n"===e[c]){let t=c+1;for(;t<l&&(" "===e[t]||"\t"===e[t]);)t++;if(t>=l)break;if("\n"===e[t])return null;continue}const s=t[c];if("\\"===s&&c+1<l&&"\n"!==e[c+1])c++;else{if(s===r){const t=e.indexOf("\n",c),s=-1===t?e.length:t;if(/[^ \t]/.test(e.slice(c+1,s)))return null;const n=-1===o||c<o;return{tailAfter:c+1,spanEndLine:s,advanceTail:n||a,closerOnOpenerLine:n}}if("("===i&&"("===s)return null}}if(l>=e.length)return null;const d=e.indexOf("\n",c),u=-1===d?e.length:d;return{tailAfter:u,spanEndLine:u,advanceTail:a,closerOnOpenerLine:!1}}function qde(e,t=e,s=!1,n){if(!/computer\\?:[\\/]/i.test(e))return{definitions:[],usages:[]};t===e&&e.includes("\\")&&(t=Ode(e));const a=[],i=new Set,r=/^[ \t]*(?:>[ \t]*|[-*+][ \t]+|\d{1,9}[.)][ \t]+)*\[((?:[^[\]\n]|\n(?!\n))+)\]:/gm;let o,l=-1;for(;null!==(o=r.exec(t));){let r=o.index+o[0].length,c=0;for(;r<e.length;){const t=e[r];if(" "===t||"\t"===t)r++;else{if("\n"!==t||0!==c)break;c++,r++}}const d=e.indexOf("\n",r),u=-1===d?e.length:d;let m,p,f,g,h,C;if("<"===t[r]){for(m=r+1;m<u&&(" "===e[m]||"\t"===e[m]);)m++;let s=-1;h=!0;for(let n=m;n<u;n++){if("\r"===e[n]){h=!1;break}const a=t[n];if("\\"===a&&n+1<u){if("\r"===e[n+1]){h=!1;break}n++}else if("<"===a)h=!1;else if(">"===a){s=n;break}}if(-1===s)continue;for(p=s;p>m&&(" "===e[p-1]||"\t"===e[p-1]);)p--;f=s+1,g=s+1}else{for(m=r,p=u;p>m&&(" "===e[p-1]||"\t"===e[p-1]);)p--;const s=e.slice(m,p).search(/[ \t]/);if(-1!==s&&(p=m+s),f=u,g=p,n){C=u;for(let t=m;t<u;t++){const s=e[t];if(" "!==s&&"\t"!==s)continue;const a=n.spans[t];if(a&&a[1]-a[0]===1&&(" "===n.text[a[0]]||"\t"===n.text[a[0]])){C=t;break}}}let a=0,i=!0;for(let e=m;e<p;e++){const s=t[e];if("\\"===s&&e+1<p)e++;else if("("===s)a++;else if(")"===s){if(0===a){i=!1;break}a--}}h=p>m&&i&&0===a&&!/[\x01-\x1F\x7F]/.test(e.slice(m,p))}const x=Bde(e,t,g);let v=u,y=u;null!==x?(f=Math.max(f,x.spanEndLine),x.advanceTail&&!s&&(g=x.tailAfter,v=x.spanEndLine),x.closerOnOpenerLine&&(y=x.spanEndLine)):f<u&&(f=u);const b=o.index+o[0].indexOf("[");let k;if(s)k=o.index<2||"\n"===e[o.index-2]||o.index===l+1;else if(o.index>0&&"\n"!==e[o.index-1])k=!1;else{let t=o.index-2;for(;t>=0&&(" "===e[t]||"\t"===e[t]||"\r"===e[t]);)t--;k=o.index<2||t<0||"\n"===e[t]||o.index===l+1}const w=k&&h&&!/[^ \t]/.test(e.slice(g,v));w&&i.add(b),l=w?y:-1;const M=e.slice(m,p),_=void 0!==C&&C!==p?e.slice(m,C):void 0;/^computer:\/{2,3}/i.test(s?M:Fde(M))&&a.push({index:o.index,end:f,labelStart:b,destination:M,rendererDestination:_,normLabel:zde(e.slice(b+1,o.index+o[0].length-2))})}if(0===a.length)return{definitions:a,usages:[]};const c=new Set(a.map(e=>e.normLabel)),d=[];for(let u=0;u<t.length;u++){if("["!==t[u])continue;if(i.has(u))continue;let s=1,n=-1;const a=Math.min(t.length,u+2048);for(let e=u+1;e<a;e++){const a=t[e];if("["===a)s++;else if("]"===a&&(s--,0===s)){n=e;break}}if(-1===n){const s=Math.min(t.length,u+4096);let n=a;for(;n<s&&("\n"!==e[n]||"\n"!==e[n+1]);)n++;d.push({index:u,end:n,labelEnd:n,normLabel:""}),u=n-1;continue}const r=zde(e.slice(u+1,n));let o=-1,l=null;if("["===t[n+1]){const s=t.indexOf("]",n+2),a=-1!==s&&s-(n+2)<=999?e.slice(n+2,s):null,i=-1!==s?t.slice(n+2,s):"";null===a||i.includes("[")?(l=r,o=n+1):(l=""===a.trim()?r:zde(a),o=s+1)}else"("===t[n+1]&&Zde(e,t,n+1)||(l=r,o=n+1);if(null!==l&&!c.has(l)){let s=n;for(let i=0;i<8&&(s=t.indexOf("]",s+1),!(-1===s||s>=a));i++)if("["===t[s+1]){const a=t.indexOf("]",s+2);if(-1!==a&&a<s+2+1024){const t=zde(e.slice(s+2,a));if(c.has(t)){l=t,n=s,o=a+1;break}}}}if(null!==l&&-1!==o&&c.has(l)){const e="!"===t[u-1]?u-1:u;d.push({index:e,end:o,labelEnd:n,normLabel:l}),t.slice(u+1,n).includes("[")||(u=o-1)}}return{definitions:a,usages:d}}function Wde(e){const t=[],s=/computer:\/{1,3}/gi;let n;for(;null!==(n=s.exec(e));)t.push(n.index),s.lastIndex===n.index&&s.lastIndex++;return t.length<=1?[{text:e,start:0}]:t.map((s,n)=>({text:e.slice(s,t[n+1]),start:s}))}function $de({text:s,conversationUuid:n,onOpen:a,onDownloadAll:i,shareType:r,presentFiles:o,suppressFiles:l}){const c=Me(),d="local_session"===c?.type,u=Ug(),m=ga(n),p=YK(n),f=e.useMemo(()=>function(e,t,s,n,a,i){const r=new Set((s??[]).map(e=>e.path)),o=new Map;if(e.includes("computer://"))for(const l of Ude(e)){const e=Yde(l.replace(/^computer:\/\//,""));r.has(e)||o.set(e,{path:e})}for(const l of t??[])o.set(l.path,l);return[...o.values()].filter(e=>ele(e.path,n)&&(!a||Kde(e)||Lp(e.path,e.fileUuid,i)))}(s,o,l,r,m,p),[s,r,o,l,m,p]),g=d&&!r,h=e.useMemo(()=>g?f.filter(e=>Dde(e.path)):[],[f,g]),C=ce("cowork_active_doc_bar_main",h.length>0),x=e.useMemo(()=>f.filter(e=>!C||!Dde(e.path)),[f,C]),v=e.useCallback((e,t,s)=>{a(e,t,s),c&&u(!1)},[a,c,u]),y=C?h:[];return 0===x.length&&0===y.length?null:t.jsxs("div",{className:"flex flex-col gap-2 py-2",children:[x.map(e=>{const s=e.path.split("/").pop()||e.path;return t.jsx(Ede,{conversationUuid:n,file:{name:s,path:e.path},fileUuid:e.fileUuid,openWith:e.openWith,onOpen:()=>v(e.path,e.fileUuid,e.openWith),isShared:!!r},e.path)}),x.filter(e=>!Kde(e)).length>1&&!d&&t.jsx("div",{children:t.jsx(kt,{variant:"secondary",prepend:t.jsx(VR,{size:"1.1rem"}),onClick:()=>{i(x.filter(e=>!Kde(e)).map(e=>e.path))},children:t.jsx(XS,{defaultMessage:"Download all",id:"V1UrPNM96z"})})}),y.length>0&&t.jsx("div",{className:"flex flex-wrap gap-1.5",children:y.map(e=>t.jsx(Gde,{path:e.path,fileUuid:e.fileUuid,docUuid:"project-doc"===e.openWith?.via?e.openWith.docUuid:void 0,onOpenFile:v},e.path))})]})}const Gde=e.memo(function({path:s,fileUuid:n,docUuid:a,onOpenFile:i}){const r=nm(s)||s,{displayName:o}=xH(r,CH(r)),l=e.useCallback(()=>{i(s,n,void 0!==a?{via:"project-doc",docUuid:a}:void 0)},[i,s,n,a]);return t.jsxs("button",{type:"button",onClick:l,title:r,className:"flex min-h-10 min-w-0 items-center gap-2 rounded-lg border-0.5 border-[hsl(var(--border-300)/0.25)] bg-bg-000 px-3 py-2 font-ui text-footnote text-text-200 shadow-sm shadow-always-black/5 transition-all hover:border-[hsl(var(--border-200)/0.5)] hover:shadow-always-black/10",children:[t.jsx("span",{className:"shrink-0 text-text-400",children:t.jsx(hg,{path:s,size:14})}),t.jsx("span",{className:"min-w-0 max-w-48 truncate",children:o||r})]})});function Kde(e){return"project-doc"===e.openWith?.via}function Yde(e){try{return decodeURIComponent(e)}catch{return e}}const Qde=e.memo(()=>t.jsx("div",{className:"w-full aspect-[4/3] bg-bg-300 rounded-lg animate-pulse"}));Qde.displayName="ShimmerImageCard";const Jde=e.memo(function({toolResult:s,isStreaming:n,numImages:a=4,conversationUuid:i}){const r=JS(),o=ae(),l=e.useRef(!1),{images:c,malformedCount:d,isExpired:u}=e.useMemo(()=>function(e){if(!e?.content)return{images:[],malformedCount:0,isExpired:!1};try{for(const t of e.content)if("image_gallery"===t.type){const e=t,s=e.images??[],n=s.filter(e=>e&&e.id&&e.thumbnail_url);return{images:n,malformedCount:s.length-n.length,isExpired:!0===e.is_expired}}}catch{return{images:[],malformedCount:0,isExpired:!1}}return{images:[],malformedCount:0,isExpired:!1}}(s),[s]);return e.useEffect(()=>{d>0&&!l.current&&(l.current=!0,o.track({event_key:"image_search.malformed_images",conversation_uuid:i,malformed_count:d,valid_count:c.length}))},[o,i,d,c.length]),n&&0===c.length&&!u?t.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 gap-3 py-2 pl-2",children:[...Array(a)].map((e,s)=>t.jsx(Qde,{},s))}):0!==c.length||u?t.jsx("div",{className:"w-full pb-4 pl-2 pt-4",children:t.jsx(Og,{images:c,conversationUuid:i,isExpired:u})}):t.jsx("div",{className:"py-2 pl-2",children:t.jsx("p",{className:"text-sm text-text-300",children:r.formatMessage({defaultMessage:"No images found",id:"YeS7phazuq"})})})});Jde.displayName="ImageSearchToolUseCell";const Xde=e.memo(({text:s,spokenWordCount:n})=>{const a=e.useMemo(()=>function(e){return e.split(/(\s+)/)}(s),[s]);let i=0;return t.jsx("span",{children:a.map((e,s)=>{if(/^\s+$/.test(e))return e.includes("\n")?t.jsx("span",{children:e.split("\n").map((e,s,n)=>t.jsxs("span",{children:[e,s<n.length-1&&t.jsx("br",{})]},s))},s):t.jsx("span",{children:e},s);const a=i<n;return i++,t.jsx("span",{className:dt("transition-colors duration-150",a?"text-text-100":"text-text-500"),children:e},s)})})});Xde.displayName="KaraokeText";const eue=e.memo(({text:e,relativeToLastLeg:s=!1})=>{const{spokenCount:n,legWordOffset:a}=Fg(),i=s?Math.max(0,n-a):n;return t.jsx(Xde,{text:e,spokenWordCount:i})});function tue(...e){"undefined"!=typeof window&&localStorage.getItem("VOICE_DEBUG")&&k.debug(w.VOICE_MODE,...e)}eue.displayName="ConnectedKaraokeText";let sue=!1;function nue(e,t){Bl(e,{attributes:t})}function aue(e,t){F(new Error(e),{source:"voice_mode",...t})}const iue={sessionStarted:function(e){nue("voice.session.start",e)},sessionConnected:function(e){nue("voice.session.connected",e)},sessionEnded:function(e){nue("voice.session.end",e)},firstResponseReceived:function(e){nue("voice.session.first_response",e)},startSuppressedMistap:function(e){nue("voice.session.start_suppressed_mistap",e)},sessionError:function(e){aue(`voice.error.${e.errorCode}`,e)},connectionStalled:function(e){aue("voice.silent.connection_stalled",e)},noMicAudio:function(e){aue("voice.silent.no_mic_audio",e)},noPlaybackReceived:function(e){aue("voice.silent.no_playback_received",e)},micSilentShown:function(e){nue("voice.ui.mic_silent_shown",e)},stillConnectingShown:function(e){nue("voice.ui.still_connecting_shown",e)},dictationSessionStarted:function(e){const{requestedDeviceId:t,...s}=e;nue("voice.dictation.session.started",{...s,requestedDeviceId:t??"none"}),function(e,t){"undefined"!=typeof window&&localStorage.getItem("VOICE_DEBUG")&&sue&&k.info(w.VOICE_MODE,e,t)}("voice.dictation.session.started",e)},dictationMicTrackEnded:function(e){aue("voice.dictation.silent.mic_track_ended",e)},dictationNoAudioAt2500ms:function(e){aue("voice.dictation.silent.no_audio_2500ms",e)},dictationSessionEndedSilent:function(e){aue("voice.dictation.silent.session_ended_no_audio",e)}},rue=new Set([408125543,524531317]);function oue(e,t){if(t>=e.length)return null;const s=e[t];let n;if(128&s)n=1;else if(64&s)n=2;else if(32&s)n=3;else{if(!(16&s))return null;n=4}if(t+n>e.length)return null;let a=0;for(let i=0;i<n;i++)a=a<<8|e[t+i];return[a,n]}function lue(e,t){if(t>=e.length)return null;const s=e[t];let n,a;if(128&s)n=1,a=127;else if(64&s)n=2,a=63;else if(32&s)n=3,a=31;else if(16&s)n=4,a=15;else if(8&s)n=5,a=7;else if(4&s)n=6,a=3;else if(2&s)n=7,a=1;else{if(!(1&s))return null;n=8,a=0}if(t+n>e.length)return null;let i=s&a;for(let r=1;r<n;r++)i=256*i+e[t+r];return i===Math.pow(2,7*n)-1?[-1,n]:[i,n]}class cue{buffer=new Uint8Array(0);demux(e){const t=new Uint8Array(e);if(this.buffer.length>0){const e=new Uint8Array(this.buffer.length+t.length);e.set(this.buffer),e.set(t,this.buffer.length),this.buffer=e}else this.buffer=t;const s=[];let n=0;for(;n<this.buffer.length;){const e=n,t=oue(this.buffer,n);if(!t){n=e;break}const[a,i]=t;n+=i;const r=lue(this.buffer,n);if(!r){n=e;break}const[o,l]=r;if(n+=l,!rue.has(a)){if(163===a){if(o<4||-1===o){n=e;break}if(n+o>this.buffer.length){n=e;break}const t=this.buffer.subarray(n,n+o);n+=o;const a=due(t);a&&s.push(a);continue}if(-1!==o){if(n+o>this.buffer.length){n=e;break}n+=o}}}return n>0&&n<this.buffer.length?this.buffer=this.buffer.slice(n):n>=this.buffer.length&&(this.buffer=new Uint8Array(0)),s}reset(){this.buffer=new Uint8Array(0)}}function due(e){if(e.length<4)return null;const t=128&(s=e[0])?1:64&s?2:32&s?3:16&s?4:1;var s;const n=t+3;if(n>=e.length)return null;return 0!==(e[t+2]>>1&3)?null:e.slice(n).buffer}const uue={sampleRate:16e3,channels:1,timeslice:40,audioBitsPerSecond:24e3,usePcm:!1,preferredBackend:"webcodecs"},mue=48e3;let pue=null;class fue{config;state="inactive";activeBackend=null;stopped=!1;mediaStream=null;streamOwnedByCaller=!1;mediaRecorder=null;audioEncoder=null;trackProcessor=null;trackReader=null;isReadingTrack=!1;audioContext=null;analyserNode=null;sourceNode=null;frequencyData=null;monoMixerNode=null;monoDestinationNode=null;scriptProcessorNode=null;onAudioChunk=null;onAudioLevel=null;onStateChange=null;analysisIntervalId=null;constructor(e={}){this.config={...uue,...e}}getActiveBackend(){return this.activeBackend}getState(){return this.state}static isSupported(){return!("undefined"==typeof window||"function"!=typeof navigator.mediaDevices?.getUserMedia||!fue.isWebCodecsSupported()&&!fue.isMediaRecorderSupported())}static isPcmSupported(){if("undefined"==typeof window)return!1;const e=window.AudioContext||window.webkitAudioContext;return"function"==typeof navigator.mediaDevices?.getUserMedia&&!!e}static isWebCodecsSupported(){if("undefined"==typeof window)return!1;const e="undefined"!=typeof AudioEncoder,t="undefined"!=typeof MediaStreamTrackProcessor;return e&&t}static async isWebCodecsOpusSupported(){if(null!==pue)return pue;if(!fue.isWebCodecsSupported())return pue=!1,!1;try{const e=await AudioEncoder.isConfigSupported({codec:"opus",sampleRate:48e3,numberOfChannels:1});pue=!0===e.supported}catch{pue=!1}return pue}static isMediaRecorderSupported(){return!("undefined"==typeof window||!window.MediaRecorder||!MediaRecorder.isTypeSupported?.("audio/webm;codecs=opus"))}setOnAudioChunk(e){this.onAudioChunk=e}setOnAudioLevel(e){this.onAudioLevel=e}setOnStateChange(e){this.onStateChange=e}async start(){if("recording"!==this.state){this.stopped=!1,this.setState("requesting_permission");try{const t="default",s={sampleRate:{ideal:mue},channelCount:this.config.channels,echoCancellation:!0,noiseSuppression:!0,autoGainControl:!0,deviceId:{exact:t}};tue("[AudioRecorder] Device selection criteria (deprecated start):",{resolvedConstraint:`{ exact: "${t}" }`});try{const e=(await navigator.mediaDevices.enumerateDevices()).filter(e=>"audioinput"===e.kind);tue("[AudioRecorder] Available mics before getUserMedia:",{count:e.length,devices:e.map((e,t)=>({index:t,deviceId:e.deviceId,label:e.label,groupId:e.groupId}))})}catch{tue("[AudioRecorder] enumerateDevices failed pre-acquisition")}try{this.mediaStream=await navigator.mediaDevices.getUserMedia({audio:s})}catch(e){tue("[AudioRecorder] getUserMedia failed with constraint:",{resolvedDeviceId:t,errorName:e instanceof Error?e.name:"unknown",errorMessage:e instanceof Error?e.message:String(e)});const n=e instanceof OverconstrainedError||e instanceof DOMException&&"OverconstrainedError"===e.name;if(!n)throw e;{tue("[AudioRecorder] Retrying without deviceId constraint",{reason:n?"OverconstrainedError":"config deviceId was set"});const{deviceId:e,...t}=s;this.mediaStream=await navigator.mediaDevices.getUserMedia({audio:t})}}if(this.stopped)return this.mediaStream?.getTracks().forEach(e=>e.stop()),this.mediaStream=null,void this.setState("inactive");const n=this.mediaStream.getAudioTracks()[0];if(n){const e=n.getSettings(),s=e.deviceId??"(unknown)",a="default"!==t&&s!==t;tue("[AudioRecorder] Track settings from getUserMedia:",{label:n.label,deviceId:s,channelCount:e.channelCount,sampleRate:e.sampleRate,echoCancellation:e.echoCancellation,noiseSuppression:e.noiseSuppression,autoGainControl:e.autoGainControl,requestedChannels:this.config.channels}),tue("[AudioRecorder] Device selection result:",{requested:t,acquired:s,acquiredLabel:n.label,deviceMismatch:a,usedFallbackDefault:"default"===t})}await this.setupAudioAnalysis();const a=await this.selectBackend();this.activeBackend=a,tue("[AudioRecorder] Selected backend:",a),this.startRecordingPipeline(a),this.startLevelAnalysis(),this.setState("recording")}catch(t){throw this.setState("error"),this.mapError(t)}}}async selectBackend(){if(this.config.usePcm)return"pcm";const e=this.config.preferredBackend;if("webcodecs"===e){if(await fue.isWebCodecsOpusSupported())return"webcodecs";if(fue.isMediaRecorderSupported())return"mediarecorder"}if("mediarecorder"===e){if(fue.isMediaRecorderSupported())return"mediarecorder";if(await fue.isWebCodecsOpusSupported())return"webcodecs"}throw new Error("No Opus-capable audio backend available. Voice mode requires WebCodecs AudioEncoder or MediaRecorder with WebM/Opus support.")}stop(){if(this.stopped=!0,this.stopLevelAnalysis(),this.isReadingTrack=!1,this.trackReader&&this.trackReader.cancel().catch(()=>{}),"configured"===this.audioEncoder?.state)try{this.audioEncoder.close()}catch{}"inactive"!==this.mediaRecorder?.state&&this.mediaRecorder?.stop(),this.streamOwnedByCaller||this.mediaStream?.getTracks().forEach(e=>e.stop()),this.streamOwnedByCaller=!1,this.sourceNode?.disconnect(),this.analyserNode?.disconnect(),this.monoMixerNode?.disconnect(),this.monoDestinationNode?.disconnect(),this.scriptProcessorNode?.disconnect(),"closed"!==this.audioContext?.state&&this.audioContext?.close(),this.mediaStream=null,this.mediaRecorder=null,this.audioEncoder=null,this.trackProcessor=null,this.trackReader=null,this.audioContext=null,Vg.getState().setMicAnalyser(null),this.analyserNode=null,this.sourceNode=null,this.frequencyData=null,this.monoMixerNode=null,this.monoDestinationNode=null,this.scriptProcessorNode=null,this.activeBackend=null,this.setState("inactive")}async startWithStream(e){if("recording"===this.state)return;this.streamOwnedByCaller=!0,this.stopped=!1,this.mediaStream=e;const t=e.getAudioTracks()[0];if(t&&"ended"===t.readyState)throw this.mediaStream=null,new Error("Microphone track ended immediately after acquisition.");if(this.stopped)return this.mediaStream?.getTracks().forEach(e=>e.stop()),this.mediaStream=null,void this.setState("inactive");try{await this.setupAudioAnalysis();const e=await this.selectBackend();this.activeBackend=e,tue("[AudioRecorder] Selected backend:",e),this.startRecordingPipeline(e),this.startLevelAnalysis(),this.setState("recording")}catch(s){throw this.setState("error"),this.mapError(s)}}async switchStream(e,t){if("recording"!==this.state)return null;this.streamOwnedByCaller=t?.callerOwned??!1;const s=this.isMuted();if(this.stopLevelAnalysis(),this.isReadingTrack=!1,this.trackReader&&this.trackReader.cancel().catch(()=>{}),"configured"===this.audioEncoder?.state)try{this.audioEncoder.close()}catch{}if("inactive"!==this.mediaRecorder?.state&&this.mediaRecorder?.stop(),t?.preserveTracks||this.mediaStream?.getTracks().forEach(e=>e.stop()),this.sourceNode?.disconnect(),this.analyserNode?.disconnect(),this.monoMixerNode?.disconnect(),this.monoDestinationNode?.disconnect(),this.scriptProcessorNode?.disconnect(),"closed"!==this.audioContext?.state&&this.audioContext?.close(),this.mediaStream=null,this.mediaRecorder=null,this.audioEncoder=null,this.trackProcessor=null,this.trackReader=null,this.audioContext=null,Vg.getState().setMicAnalyser(null),this.analyserNode=null,this.sourceNode=null,this.frequencyData=null,this.monoMixerNode=null,this.monoDestinationNode=null,this.scriptProcessorNode=null,this.mediaStream=e,this.stopped)return this.streamOwnedByCaller||this.mediaStream?.getTracks().forEach(e=>e.stop()),this.mediaStream=null,null;try{if(await this.setupAudioAnalysis(),this.stopped)return this.streamOwnedByCaller||this.mediaStream?.getTracks().forEach(e=>e.stop()),this.mediaStream=null,null;const e=await this.selectBackend();return this.activeBackend=e,this.startRecordingPipeline(e),this.startLevelAnalysis(),s&&this.setMuted(!0),tue("[AudioRecorder] Stream switched:",{acquiredLabel:this.mediaStream?.getAudioTracks()[0]?.label,backend:e}),this.mediaStream}catch(n){if(this.stopped)return this.streamOwnedByCaller||this.mediaStream?.getTracks().forEach(e=>e.stop()),this.mediaStream=null,null;throw this.setState("error"),this.mapError(n)}}async switchDevice(e){if("recording"!==this.state)return null;const t=this.isMuted();if(this.stopLevelAnalysis(),this.isReadingTrack=!1,this.trackReader&&this.trackReader.cancel().catch(()=>{}),"configured"===this.audioEncoder?.state)try{this.audioEncoder.close()}catch{}"inactive"!==this.mediaRecorder?.state&&this.mediaRecorder?.stop(),this.mediaStream?.getTracks().forEach(e=>e.stop()),this.sourceNode?.disconnect(),this.analyserNode?.disconnect(),this.monoMixerNode?.disconnect(),this.monoDestinationNode?.disconnect(),this.scriptProcessorNode?.disconnect(),"closed"!==this.audioContext?.state&&this.audioContext?.close(),this.mediaStream=null,this.mediaRecorder=null,this.audioEncoder=null,this.trackProcessor=null,this.trackReader=null,this.audioContext=null,Vg.getState().setMicAnalyser(null),this.analyserNode=null,this.sourceNode=null,this.frequencyData=null,this.monoMixerNode=null,this.monoDestinationNode=null,this.scriptProcessorNode=null;try{const n={sampleRate:{ideal:mue},channelCount:this.config.channels,echoCancellation:!0,noiseSuppression:!0,autoGainControl:!0,deviceId:{exact:e||"default"}};try{this.mediaStream=await navigator.mediaDevices.getUserMedia({audio:n})}catch(s){if(!(s instanceof OverconstrainedError||s instanceof DOMException&&"OverconstrainedError"===s.name))throw s;{const{deviceId:e,...t}=n;this.mediaStream=await navigator.mediaDevices.getUserMedia({audio:t})}}if(this.stopped)return this.mediaStream?.getTracks().forEach(e=>e.stop()),this.mediaStream=null,null;if(await this.setupAudioAnalysis(),this.stopped)return this.mediaStream?.getTracks().forEach(e=>e.stop()),this.mediaStream=null,null;const a=await this.selectBackend();this.activeBackend=a,this.startRecordingPipeline(a),this.startLevelAnalysis(),t&&this.setMuted(!0);const i=this.mediaStream?.getAudioTracks()[0],r=i?.getSettings();return tue("[AudioRecorder] Switched device:",{requested:e,acquiredDeviceId:r?.deviceId??"(unknown)",acquiredLabel:i?.label??"(unknown)",backend:a}),this.mediaStream}catch(n){if(this.stopped)return this.mediaStream?.getTracks().forEach(e=>e.stop()),this.mediaStream=null,null;throw this.setState("error"),this.mapError(n)}}setMuted(e){this.mediaStream&&this.mediaStream.getAudioTracks().forEach(t=>{t.enabled=!e})}getMediaStream(){return this.mediaStream}getAudioContextState(){return this.audioContext?.state??null}isMuted(){const e=this.mediaStream?.getAudioTracks()[0];return!e||!e.enabled}getAudioLevel(){if(!this.analyserNode||!this.frequencyData)return 0;this.analyserNode.getByteFrequencyData(this.frequencyData);let e=0;for(let s=0;s<this.frequencyData.length;s++)e+=this.frequencyData[s]*this.frequencyData[s];const t=Math.sqrt(e/this.frequencyData.length);return Math.min(1,t/128)}startRecordingPipeline(e){switch(e){case"webcodecs":this.setupWebCodecsEncoder();break;case"mediarecorder":this.setupMediaRecorder(),this.mediaRecorder?.start(this.config.timeslice);break;case"pcm":this.setupPcmCapture()}}async setupAudioAnalysis(){if(!this.mediaStream)return;const e=window.AudioContext||window.webkitAudioContext;if(!e)throw new Error("Web Audio API is not supported");if(this.audioContext=new e({sampleRate:mue}),"suspended"===this.audioContext.state&&await this.audioContext.resume(),"running"!==this.audioContext.state)throw new Error("AudioContext could not be started \u2014 browser autoplay policy blocked it.");this.analyserNode=this.audioContext.createAnalyser(),this.analyserNode.fftSize=2048,this.analyserNode.smoothingTimeConstant=.3,this.frequencyData=new Uint8Array(this.analyserNode.frequencyBinCount),this.sourceNode=this.audioContext.createMediaStreamSource(this.mediaStream),this.sourceNode.connect(this.analyserNode),Vg.getState().setMicAnalyser(this.analyserNode)}setupMediaRecorder(){if(!this.mediaStream)return;const e=this.mediaStream.getAudioTracks()[0];if(e){const t=e.getSettings();tue("[AudioRecorder] MediaRecorder original track settings:",{label:e.label,channelCount:t.channelCount,sampleRate:t.sampleRate})}let t=this.mediaStream;if(this.audioContext&&this.sourceNode)try{this.monoMixerNode=this.audioContext.createGain(),this.monoMixerNode.channelCount=1,this.monoMixerNode.channelCountMode="explicit",this.monoMixerNode.channelInterpretation="speakers",this.monoDestinationNode=this.audioContext.createMediaStreamDestination(),this.sourceNode.connect(this.monoMixerNode),this.monoMixerNode.connect(this.monoDestinationNode),t=this.monoDestinationNode.stream,tue("[AudioRecorder] Mono downmix chain: source \u2192 GainNode(ch=1) \u2192 destination",{mixerChannelCount:this.monoMixerNode.channelCount,mixerChannelCountMode:this.monoMixerNode.channelCountMode,destinationChannelCount:this.monoDestinationNode.channelCount,destinationMaxChannels:this.monoDestinationNode.channelCount});const e=t.getAudioTracks()[0];if(e){const t=e.getSettings();tue("[AudioRecorder] MediaRecorder mono-downmixed track settings:",{channelCount:t.channelCount,sampleRate:t.sampleRate})}}catch(i){tue("[AudioRecorder] Mono downmix failed, using original stream:",i),this.monoMixerNode=null,this.monoDestinationNode=null}const s="audio/webm;codecs=opus";if(!MediaRecorder.isTypeSupported(s))throw new Error("Opus audio encoding is not supported in this browser");this.mediaRecorder=new MediaRecorder(t,{mimeType:s,audioBitsPerSecond:this.config.audioBitsPerSecond});const n=new cue;let a=0;this.mediaRecorder.ondataavailable=e=>{e.data.size>0&&this.onAudioChunk&&e.data.arrayBuffer().then(e=>{const t=n.demux(e);!a&&t.length>0&&tue("[AudioRecorder] First demuxed Opus frames from MediaRecorder:",{webmChunkSize:e.byteLength,framesExtracted:t.length,firstFrameSize:t[0].byteLength}),a+=t.length;for(const s of t)this.onAudioChunk?.(s)})},this.mediaRecorder.onerror=()=>{this.setState("error")}}setupWebCodecsEncoder(){if(!this.mediaStream)return;const e=this.mediaStream.getAudioTracks()[0];if(!e)throw new Error("No audio track available");this.audioEncoder=new AudioEncoder({output:(e,t)=>{if(this.onAudioChunk){const t=new ArrayBuffer(e.byteLength);e.copyTo(t),this.onAudioChunk(t)}},error:e=>{this.setState("error")}});const t={codec:"opus",sampleRate:this.config.sampleRate,numberOfChannels:this.config.channels,bitrate:this.config.audioBitsPerSecond};try{const e={...t,opus:{application:"voip",signal:"voice",format:"opus",frameDuration:2e4}};this.audioEncoder.configure(e)}catch{this.audioEncoder.configure(t)}const s=MediaStreamTrackProcessor,n={track:e};this.trackProcessor=new s(n),this.trackReader=this.trackProcessor.readable.getReader(),this.isReadingTrack=!0,this.readAndEncodeFrames()}resampleAudioData(e){const t=e.sampleRate,s=this.config.sampleRate;if(t===s)return e;const n=t/s,a=e.numberOfFrames,i=Math.floor(a/n),r=new Float32Array(a);e.copyTo(r,{planeIndex:0,format:"f32-planar"});const o=new Float32Array(i);for(let c=0;c<i;c++){const e=c*n,t=Math.floor(e),s=Math.min(t+1,a-1),i=e-t;o[c]=r[t]*(1-i)+r[s]*i}const l=new AudioData({format:"f32-planar",sampleRate:s,numberOfFrames:i,numberOfChannels:1,timestamp:e.timestamp,data:o});return e.close(),l}hasLoggedFirstFrame=!1;async readAndEncodeFrames(){if(this.trackReader&&this.audioEncoder){this.hasLoggedFirstFrame=!1;try{for(;this.isReadingTrack;){const{done:e,value:t}=await this.trackReader.read();if(e){if(this.isReadingTrack){tue("[AudioRecorder] Track reader ended unexpectedly (done=true while still active) \u2014 mic may have been disconnected or revoked");const e=zg.getState(),t="recording"===e.status||"connecting"===e.status;iue.dictationMicTrackEnded({dictationSessionId:t?e.dictationSessionId:null,area:t?e.surface?.area:void 0,input:t?e.surface?.input:void 0,backend:this.activeBackend??"unknown"})}break}if(t){this.hasLoggedFirstFrame||(this.hasLoggedFirstFrame=!0,tue("[AudioRecorder] First AudioData frame from TrackProcessor:",{numberOfChannels:t.numberOfChannels,numberOfFrames:t.numberOfFrames,sampleRate:t.sampleRate,format:t.format,duration:t.duration}));const e=this.audioEncoder.state;if("configured"===e){const e=this.resampleAudioData(t);try{this.audioEncoder.encode(e)}finally{e.close()}}else if(t.close(),"closed"===e)break}}}catch{}}}setupPcmCapture(){if(!this.audioContext||!this.sourceNode)return;this.scriptProcessorNode=this.audioContext.createScriptProcessor(4096,this.config.channels,this.config.channels);const e=this.audioContext.sampleRate/this.config.sampleRate;let t=!1;this.scriptProcessorNode.onaudioprocess=s=>{if(!this.onAudioChunk)return;const n=s.inputBuffer;t||(t=!0,tue("[AudioRecorder] First PCM inputBuffer:",{numberOfChannels:n.numberOfChannels,sampleRate:n.sampleRate,length:n.length,duration:n.duration}));const a=n.getChannelData(0);let i;if(e>1){const t=Math.floor(a.length/e);i=new Float32Array(t);for(let s=0;s<t;s++){const t=s*e,n=Math.floor(t),r=Math.min(n+1,a.length-1),o=t-n;i[s]=a[n]*(1-o)+a[r]*o}}else i=a;const r=new Int16Array(i.length);for(let e=0;e<i.length;e++){const t=Math.max(-1,Math.min(1,i[e]));r[e]=t<0?32768*t:32767*t}const o=new Blob([r.buffer],{type:"application/octet-stream"});this.onAudioChunk(o)},this.sourceNode.connect(this.scriptProcessorNode),this.scriptProcessorNode.connect(this.audioContext.destination)}startLevelAnalysis(){this.analysisIntervalId=setInterval(()=>{if(this.onAudioLevel&&this.analyserNode&&this.frequencyData){this.analyserNode.getByteFrequencyData(this.frequencyData);const e=this.getAudioLevel(),t=this.detectSpeech();this.onAudioLevel({level:e,frequencyData:new Uint8Array(this.frequencyData),isSpeaking:t})}},100)}stopLevelAnalysis(){this.analysisIntervalId&&(clearInterval(this.analysisIntervalId),this.analysisIntervalId=null)}detectSpeech(){if(!this.analyserNode||!this.frequencyData||!this.audioContext)return!1;const e=this.audioContext.sampleRate,t=this.analyserNode.frequencyBinCount,s=e/(2*t),n=Math.floor(85/s),a=Math.min(Math.floor(3500/s),t-1);let i=0,r=0;for(let o=n;o<=a;o++)i+=this.frequencyData[o],r++;return(r>0?i/(255*r):0)>.075}setState(e){this.state=e,this.onStateChange?.(e)}mapError(e){if(e instanceof OverconstrainedError||e instanceof DOMException&&"OverconstrainedError"===e.name){const t=e instanceof OverconstrainedError?e.constraint:"unknown";return new Error(`Microphone constraint not satisfiable: ${t}`,{cause:e})}if(e instanceof DOMException)switch(e.name){case"NotAllowedError":return new Error("Microphone permission denied",{cause:e});case"NotFoundError":return new Error("No microphone found",{cause:e});case"NotReadableError":return new Error("Microphone is in use by another application",{cause:e});default:return new Error(`Microphone error: ${e.message}`,{cause:e})}return e instanceof Error?e:new Error("Unknown audio recording error")}}function gue(){if("undefined"!=typeof window)return window.__VL_USE_DEVMIC?"mediarecorder":void 0}async function hue(){const e=window;if(e.__VL_USE_DEVMIC){if(!e.__devMic){const{DevMicSource:t}=await a(async()=>{const{DevMicSource:e}=await import("./cb59e2e62-CSNgeCcf.js").then(e=>e.D);return{DevMicSource:e}},__vite__mapDeps([0,1]),import.meta.url),{DEV_UTTERANCES:s}=await a(async()=>{const{DEV_UTTERANCES:e}=await import("./cdd5b9598-yqo6iFZ3.js").then(e=>e.d);return{DEV_UTTERANCES:e}},__vite__mapDeps([0,1]),import.meta.url);e.__devMic=new t(s)}return e.__devMic}}function Cue(e){let t=e;for(;t;){if(t instanceof OverconstrainedError||t instanceof DOMException&&"OverconstrainedError"===t.name)return"device_error";if(t instanceof DOMException)switch(t.name){case"NotAllowedError":return"permission_denied";case"NotFoundError":return"no_microphone";case"NotReadableError":case"AbortError":case"SecurityError":return"device_error"}t=t instanceof Error?t.cause:void 0}return"unknown"}async function xue(){try{const e=await navigator.permissions.query({name:"microphone"});return"denied"===e.state?(Vg.getState().setMicPermissionDenied(!0),Vg.getState().setMicPermissionGranted(!1),!0):("granted"===e.state&&Vg.getState().setMicPermissionGranted(!0),Vg.getState().micPermissionDenied&&Vg.getState().setMicPermissionDenied(!1),!1)}catch{return Vg.getState().micPermissionDenied}}async function vue(){try{const e=await navigator.permissions.query({name:"microphone"});if("granted"===e.state)return!0;if("denied"===e.state)return!1}catch{}try{return(await navigator.mediaDevices.getUserMedia({audio:!0})).getTracks().forEach(e=>e.stop()),Vg.getState().setMicPermissionGranted(!0),Vg.getState().setMicPermissionDenied(!1),!0}catch(e){return"permission_denied"!==Cue(e)||(Vg.getState().setMicPermissionDenied(!0),Vg.getState().setMicPermissionGranted(!1),!1)}}const yue={voice:"buttery",ttsSpeed:1,inputEncoding:"opus",inputSampleRate:16e3,inputChannels:1,outputFormat:"pcm_16000",language:"en",serverInterruptEnabled:!0},bue=new Set(["listening","processing","speaking"]);async function kue(){if("undefined"==typeof navigator)return!1;const e=navigator.userAgentData;if(!e||"macOS"!==e.platform)return!1;try{const{platformVersion:t,architecture:s}=await e.getHighEntropyValues(["platformVersion","architecture"]),n=parseInt((t??"").split(".")[0]??"",10);return tue("[isAffectedM4MacOS26] UA-CH",{platformVersion:t,architecture:s,major:n}),!("arm"!==s||!t)&&(Number.isFinite(n)&&n>=26)}catch{return!1}}function wue(){if("undefined"==typeof navigator)return{name:"other",hasVirtualDefaultDevice:!1,supportsSetSinkId:!1,defaultDeviceBehavior:"unknown"};const e=navigator.userAgent;if(/iPad|iPhone|iPod/.test(e)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)return/CriOS/.test(e)?{name:"mobile-chrome",hasVirtualDefaultDevice:!1,supportsSetSinkId:!1,defaultDeviceBehavior:"unknown"}:{name:"mobile-safari",hasVirtualDefaultDevice:!1,supportsSetSinkId:!1,defaultDeviceBehavior:"unknown"};if(/Firefox\//.test(e))return{name:"firefox",hasVirtualDefaultDevice:!1,supportsSetSinkId:"undefined"!=typeof AudioContext&&"setSinkId"in AudioContext.prototype,defaultDeviceBehavior:"browser-preferred"};if(/Safari\//.test(e)&&!/Chrome\//.test(e))return{name:"safari",hasVirtualDefaultDevice:!1,supportsSetSinkId:!1,defaultDeviceBehavior:"unknown"};if(/Chrome\//.test(e)){return/Android/.test(e)?{name:"mobile-chrome",hasVirtualDefaultDevice:!1,supportsSetSinkId:!1,defaultDeviceBehavior:"unknown"}:{name:"chrome",hasVirtualDefaultDevice:!0,supportsSetSinkId:"undefined"!=typeof AudioContext&&"setSinkId"in AudioContext.prototype,defaultDeviceBehavior:"os-default"}}return{name:"other",hasVirtualDefaultDevice:!1,supportsSetSinkId:!1,defaultDeviceBehavior:"unknown"}}const Mue=new class{browserInfo;inputDevices=[];outputDevices=[];selectedMicId=null;selectedSpeakerId=null;activeStream=null;acquiredDeviceId=null;lastAcquisition=null;deviceChangeHandler=null;initialized=!1;constructor(){this.browserInfo=wue();try{this.selectedMicId=localStorage.getItem("voice-mode:selected-mic-device-id"),this.selectedSpeakerId=localStorage.getItem("voice-mode:selected-speaker-device-id")}catch{}}initialize(){this.initialized?this.enumerateDevices():(this.initialized=!0,this.browserInfo=wue(),tue("[VoiceDeviceManager] Initialized:",{browser:this.browserInfo.name,hasVirtualDefault:this.browserInfo.hasVirtualDefaultDevice,supportsSetSinkId:this.browserInfo.supportsSetSinkId,defaultBehavior:this.browserInfo.defaultDeviceBehavior}),this.enumerateDevices(),this.deviceChangeHandler=()=>{tue("[VoiceDeviceManager] devicechange event fired"),this.enumerateDevices()},navigator.mediaDevices.addEventListener("devicechange",this.deviceChangeHandler))}dispose(){this.deviceChangeHandler&&(navigator.mediaDevices.removeEventListener("devicechange",this.deviceChangeHandler),this.deviceChangeHandler=null),this.releaseMicStream(),this.initialized=!1}async enumerateDevices(){try{const e=await navigator.mediaDevices.enumerateDevices(),t=new Set(this.inputDevices.map(e=>e.deviceId));this.inputDevices=e.filter(e=>"audioinput"===e.kind),this.outputDevices=e.filter(e=>"audiooutput"===e.kind);const s=new Set(this.inputDevices.map(e=>e.deviceId)),n=this.inputDevices.filter(e=>!t.has(e.deviceId)).map(e=>e.label||e.deviceId),a=[...t].filter(e=>!s.has(e));tue("[VoiceDeviceManager] Devices enumerated:",{inputs:this.inputDevices.length,outputs:this.outputDevices.length,...n.length>0&&{addedInputs:n},...a.length>0&&{removedInputs:a},devices:this.inputDevices.map(e=>({deviceId:e.deviceId,label:e.label,groupId:e.groupId}))});const i=Vg.getState();if(i.setAvailableMicDevices(this.inputDevices),i.setAvailableSpeakerDevices(this.outputDevices),this.selectedMicId){this.inputDevices.some(e=>e.deviceId===this.selectedMicId)||(tue("[VoiceDeviceManager] Selected mic no longer available, clearing:",{selectedMicId:this.selectedMicId}),this.selectMic(null))}if(this.selectedSpeakerId){this.outputDevices.some(e=>e.deviceId===this.selectedSpeakerId)||this.selectSpeaker(null)}}catch{}}selectMic(e){this.selectedMicId=e,Vg.getState().setSelectedMicDeviceId(e),tue("[VoiceDeviceManager] Mic selected:",{deviceId:e,label:e?this.inputDevices.find(t=>t.deviceId===e)?.label??"(unknown)":"(browser default)"})}selectSpeaker(e){this.selectedSpeakerId=e,Vg.getState().setSelectedSpeakerDeviceId(e)}resolveEffectiveMicConstraints(){return this.selectedMicId?{deviceId:this.selectedMicId,constraintMode:"exact",reason:`User explicitly selected device ${this.selectedMicId}`}:{deviceId:void 0,constraintMode:"none",reason:"No explicit selection \u2014 omit deviceId to let browser use its own preference"}}async acquireMicStream(e){const t=this.resolveEffectiveMicConstraints();tue("[VoiceDeviceManager] Resolved mic constraints:",{deviceId:t.deviceId??"(none)",mode:t.constraintMode,reason:t.reason});const s=e?.echoCancellation??!0,n={sampleRate:{ideal:48e3},channelCount:1,echoCancellation:s,noiseSuppression:!0,autoGainControl:!0};t.deviceId&&(n.deviceId={[t.constraintMode]:t.deviceId}),tue("[VoiceDeviceManager] Acquiring mic stream:",{constraints:{audio:n}});const a=navigator.mediaDevices.enumerateDevices().then(e=>e.filter(e=>"audioinput"===e.kind).map(e=>({deviceId:e.deviceId,label:e.label}))).catch(()=>[]);let i,r=!1;try{i=await navigator.mediaDevices.getUserMedia({audio:n})}catch(g){const e=g instanceof OverconstrainedError||g instanceof DOMException&&"OverconstrainedError"===g.name;if(!t.deviceId||!e)throw g;{tue("[VoiceDeviceManager] OverconstrainedError, retrying without deviceId:",{failedDeviceId:t.deviceId});const{deviceId:e,...s}=n;i=await navigator.mediaDevices.getUserMedia({audio:s}),r=!0,this.selectMic(null)}}const o=i.getAudioTracks()[0],l=o?.getSettings(),c=l?.deviceId??"(unknown)",d=o?.label??"(unknown)",u=!t.deviceId||c===t.deviceId;this.activeStream=i,this.acquiredDeviceId=c;const m=await a,p=l?.echoCancellation??s,f={stream:i,requestedDeviceId:t.deviceId,acquiredDeviceId:c,acquiredLabel:d,matched:u,fallbackUsed:r,deviceCount:m.length,echoCancellationEnabled:!1!==p&&"false"!==p};if(this.lastAcquisition={...f,browser:this.browserInfo,availableDevicesAtAcquisition:m,resolved:t,timestamp:Date.now()},tue("[VoiceDeviceManager] Stream acquired:",{requested:t.deviceId??"(none)",acquired:c,label:d,matched:u,fallbackUsed:r}),!u&&t.deviceId){tue(`[VoiceDeviceManager] \u26a0 MISMATCH: UI shows "${this.inputDevices.find(e=>e.deviceId===t.deviceId)?.label??"(unknown)"}" but stream is "${d}"`)}return f}releaseMicStream(){this.activeStream&&(this.activeStream.getTracks().forEach(e=>e.stop()),this.activeStream=null,this.acquiredDeviceId=null)}async switchMic(e,t){tue("[VoiceDeviceManager] Mid-session switch requested:",{from:this.acquiredDeviceId,to:e}),this.selectedMicId=e,this.releaseMicStream();try{const e=await this.acquireMicStream({echoCancellation:t?.echoCancellation});return tue("[VoiceDeviceManager] Mid-session switch complete:",{from:this.lastAcquisition?.acquiredDeviceId,to:e.acquiredDeviceId,label:e.acquiredLabel,success:!0}),e}catch(s){return tue("[VoiceDeviceManager] Mid-session switch failed:",s),null}}subscribeToDeviceChanges(e,t){let s=this.selectedMicId;return Vg.subscribe(n=>{const a=n.selectedMicDeviceId;a!==s&&(s=a,this.selectedMicId=a,this.switchMic(a,t).then(t=>{t&&e(t)}))})}async applySpeakerDevice(e){if(this.selectedSpeakerId&&e.setSinkId)try{await e.setSinkId(this.selectedSpeakerId)}catch{}}getDeviceReport(){const e=this.resolveEffectiveMicConstraints(),t=[];if(this.activeStream&&this.acquiredDeviceId&&e.deviceId&&this.acquiredDeviceId!==e.deviceId){const s=this.inputDevices.find(t=>t.deviceId===e.deviceId)?.label??"(unknown)",n=this.activeStream.getAudioTracks()[0]?.label??"(unknown)";t.push(`UI shows "${s}" but stream is "${n}"`)}return{browser:this.browserInfo,inputs:this.inputDevices.map(e=>({deviceId:e.deviceId,label:e.label,groupId:e.groupId})),outputs:this.outputDevices.map(e=>({deviceId:e.deviceId,label:e.label,groupId:e.groupId})),selectedMicId:this.selectedMicId,selectedSpeakerId:this.selectedSpeakerId,resolved:e,activeDevice:this.activeStream?{deviceId:this.acquiredDeviceId??"(unknown)",label:this.activeStream.getAudioTracks()[0]?.label??"(unknown)"}:null,mismatches:t}}getLastAcquisition(){return this.lastAcquisition}getBrowserInfo(){return this.browserInfo}getActiveStream(){return this.activeStream}getSelectedMicId(){return this.selectedMicId}};const _ue=new class{voiceSessionId=null;trackSink=null;setTrackSink(e){this.trackSink=e}emitSessionEnded(e){this.trackSink?.({event_key:"voice_session_ended",conversation_uuid:e??"",...this.getSessionEndedPayload()})}activationMode="hands_free";inputTrigger="vad";entrySource="chat_button";entryPage=null;projectUuid="";selectedVoice="";playbackSpeed=1;sessionStartedAt=null;connectedAt=null;endedAt=null;turnIndex=0;numSpeakInterrupts=0;numMuteToggles=0;numModeSwitches=0;numReconnects=0;currentTurnInputStartedAt=null;currentTurnInputEndedAt=null;currentTurnPlaybackStartedAt=null;currentTurnPlaybackEndedAt=null;currentTurnInputEndStampedDuringFlush=!1;currentTurnPlaybackStartStampedDuringFlush=!1;currentTurnTimingInvalidatedByFlush=!1;currentTurnPerceivedLatencyMs=null;currentTurnRouteChanged=!1;currentTurnFirstAudioRenderedAt=null;currentTurnServerVadToTtsStartMs=null;currentTurnUnderrunCount=0;bufferUnderrunCount=null;lastEndReason="user_exit";lastErrorKind="server_temporary";lastErrorCode="";reset(e){this.voiceSessionId=crypto.randomUUID(),this.activationMode="hands_free",this.inputTrigger="vad",this.entrySource=e?.entrySource??"chat_button",this.entryPage=e?.entryPage??null,this.projectUuid=e?.projectUuid??"",this.selectedVoice=e?.voice??"",this.playbackSpeed=1,this.sessionStartedAt=null,this.connectedAt=null,this.endedAt=null,this.turnIndex=0,this.numSpeakInterrupts=0,this.numMuteToggles=0,this.numModeSwitches=0,this.numReconnects=0,this.resetTurnState(),this.bufferUnderrunCount=null,this.lastEndReason="user_exit",this.lastErrorKind="server_temporary",this.lastErrorCode=""}onConnecting(){this.sessionStartedAt=Date.now()}onConnected(){this.connectedAt=Date.now()}onInputStart(){null===this.currentTurnInputStartedAt&&(this.currentTurnInputStartedAt=Date.now())}onInputEnd(e=!1){this.currentTurnInputEndedAt=Date.now(),this.currentTurnInputEndStampedDuringFlush=e}onPlaybackStart(e=!1,t){this.currentTurnPlaybackStartedAt=Date.now(),this.currentTurnPlaybackStartStampedDuringFlush=e,this.currentTurnServerVadToTtsStartMs=t??null,this.currentTurnFirstAudioRenderedAt=null}onPlaybackEnd(){this.currentTurnPlaybackEndedAt=Date.now()}onNavFlush(){null!==this.currentTurnInputEndedAt&&(this.currentTurnTimingInvalidatedByFlush=!0)}onPerceivedLatency(e){this.currentTurnPerceivedLatencyMs=e}onRouteChanged(){null!==this.currentTurnInputStartedAt&&(this.currentTurnRouteChanged=!0)}onFirstAudioRendered(){null===this.currentTurnFirstAudioRenderedAt&&(this.currentTurnFirstAudioRenderedAt=Date.now())}onBufferUnderruns(e){this.bufferUnderrunCount=e}onTurnUnderruns(e){this.currentTurnUnderrunCount=e}onSpeakInterrupt(){this.numSpeakInterrupts+=1}onMuteToggle(){this.numMuteToggles+=1}onSessionEnd(e){this.endedAt=Date.now(),this.lastEndReason=e}onError(e,t){this.lastErrorKind=e,this.lastErrorCode=t??""}getSessionStartedPayload(){return{voice_session_id:this.voiceSessionId??"",activation_mode:this.activationMode,entry_source:this.entrySource,entry_page:this.entryPage,project_uuid:this.projectUuid,selected_voice:this.selectedVoice,playback_speed:this.playbackSpeed,connect_duration_ms:this.delta(this.sessionStartedAt,this.connectedAt)}}getTurnCompletedPayload(e){const t={voice_session_id:this.voiceSessionId??"",activation_mode:this.activationMode,turn_index:this.turnIndex,input_trigger:this.inputTrigger,playback_duration_ms:this.delta(this.currentTurnPlaybackStartedAt,this.currentTurnPlaybackEndedAt??Date.now()),route_changed:this.currentTurnRouteChanged,outcome:e,playback_underrun_count:this.currentTurnUnderrunCount};this.currentTurnInputEndStampedDuringFlush||(t.input_duration_ms=this.delta(this.currentTurnInputStartedAt,this.currentTurnInputEndedAt));const s=this.computeTtfaMs();return void 0!==s&&(t.time_to_first_audio_ms=s),this.turnIndex+=1,this.resetTurnState(),t}getSessionEndedPayload(){return{voice_session_id:this.voiceSessionId??"",activation_mode:this.activationMode,entry_page:this.entryPage,project_uuid:this.projectUuid,end_reason:this.lastEndReason,duration_ms:this.delta(this.sessionStartedAt,this.endedAt??Date.now()),num_turns:this.turnIndex,num_speak_interrupts:this.numSpeakInterrupts,num_mode_switches:this.numModeSwitches,num_mute_toggles:this.numMuteToggles,num_reconnects:this.numReconnects,buffer_underrun_count:this.bufferUnderrunCount??0}}getSessionErrorPayload(){return{voice_session_id:this.voiceSessionId??"",activation_mode:this.activationMode,kind:this.lastErrorKind,code:this.lastErrorCode,num_completed_turns:this.turnIndex}}getSettingsChangedPayload(e,t,s){return{voice_session_id:this.voiceSessionId??"",activation_mode:this.activationMode,setting:e,from_value:t,to_value:s}}computeTtfaMs(){const e=this.currentTurnServerVadToTtsStartMs;if(null!==e&&e>=0&&e<=3e4&&null!==this.currentTurnPlaybackStartedAt&&null!==this.currentTurnFirstAudioRenderedAt&&!this.currentTurnPlaybackStartStampedDuringFlush){const t=this.delta(this.currentTurnPlaybackStartedAt,this.currentTurnFirstAudioRenderedAt),s=e+t;if(t<=5e3&&s<=3e4)return s}return null!==this.currentTurnPerceivedLatencyMs?this.currentTurnPerceivedLatencyMs:this.currentTurnInputEndStampedDuringFlush||this.currentTurnPlaybackStartStampedDuringFlush||this.currentTurnTimingInvalidatedByFlush?void 0:this.delta(this.currentTurnInputEndedAt,this.currentTurnPlaybackStartedAt)}resetTurnState(){this.currentTurnInputStartedAt=null,this.currentTurnInputEndedAt=null,this.currentTurnPlaybackStartedAt=null,this.currentTurnPlaybackEndedAt=null,this.currentTurnPerceivedLatencyMs=null,this.currentTurnRouteChanged=!1,this.currentTurnFirstAudioRenderedAt=null,this.currentTurnServerVadToTtsStartMs=null,this.currentTurnInputEndStampedDuringFlush=!1,this.currentTurnPlaybackStartStampedDuringFlush=!1,this.currentTurnTimingInvalidatedByFlush=!1,this.currentTurnUnderrunCount=0}delta(e,t){return null===e||null===t?0:Math.max(0,t-e)}},jue={keepAliveInterval:4e3,maxReconnectAttempts:5,initialReconnectDelay:250};function Sue(e){const t=e.voiceConfig??{voice:"buttery",ttsSpeed:1,inputEncoding:"opus",inputSampleRate:16e3,inputChannels:1,outputFormat:"pcm_16000",language:"en",serverInterruptEnabled:!0},s=new URLSearchParams({input_encoding:t.inputEncoding,input_sample_rate:String(t.inputSampleRate),input_channels:String(t.inputChannels),output_format:t.outputFormat,language:t.language,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone,voice:t.voice,tts_speed:Math.min(1.2,Math.max(.7,t.ttsSpeed)).toFixed(2),server_interrupt_enabled:String(t.serverInterruptEnabled),client_aec:String(t.clientAec??!0),client_platform:vu()?"desktop_app":"web_claude_ai"});e.model&&s.set("model",e.model),e.effort&&s.set("effort",e.effort),e.thinkingMode&&s.set("thinking_mode",e.thinkingMode),e.devOverrides&&s.set("dev_overrides",JSON.stringify(e.devOverrides)),e.projectUuid&&s.set("project_uuid",e.projectUuid);const n=`/api/ws/voice/organizations/${e.organizationUuid}/chat_conversations/${e.conversationUuid}`;return`${e.baseUrl}${n}?${s.toString()}`}class Lue{config;state="disconnected";sessionId=null;lastError=null;lastCloseCode=null;lastCloseWasClean=null;ws=null;keepAliveIntervalId=null;reconnectAttempts=0;reconnectTimeoutId=null;shouldReconnect=!1;onAudioData=null;onServerEvent=null;onStateChange=null;onError=null;pendingConnectReject=null;constructor(e){this.config={...jue,...e}}getState(){return this.state}getSessionId(){return this.sessionId}setOnAudioData(e){this.onAudioData=e}setOnServerEvent(e){this.onServerEvent=e}setOnStateChange(e){this.onStateChange=e}setOnError(e){this.onError=e}getLastError(){return this.lastError}getLastCloseCode(){return this.lastCloseCode}getLastCloseWasClean(){return this.lastCloseWasClean}async connect(){"connecting"!==this.state&&"connected"!==this.state&&(this.shouldReconnect=!0,this.reconnectAttempts=0,await this.establishConnection())}rearmReconnect(){this.shouldReconnect=!0}getWebSocketUrl(){return Sue(this.config)}async establishConnection(){this.setState(this.reconnectAttempts>0?"reconnecting":"connecting");const e=Sue(this.config);return new Promise((t,s)=>{this.pendingConnectReject=s;try{this.ws=new WebSocket(e),this.ws.binaryType="arraybuffer",this.ws.onopen=()=>{this.pendingConnectReject=null,this.lastError=null,this.setState("connected"),this.reconnectAttempts=0,this.startKeepAlive(),t()},this.ws.onmessage=e=>{this.handleMessage(e)},this.ws.onclose=e=>{this.handleClose(e,s)},this.ws.onerror=t=>{const s=`WebSocket error (URL: ${e.substring(0,100)}...)`;this.lastError=s,this.onError?.(new Error(s))}}catch(n){this.pendingConnectReject=null;const e=n instanceof Error?n.message:"Failed to create WebSocket";this.lastError=e,this.setState("error"),this.onError?.(new Error(e)),s(n)}})}handleMessage(e){if(e.data instanceof ArrayBuffer)this.onAudioData?.(e.data);else if(e.data instanceof Blob)e.data.arrayBuffer().then(e=>{this.onAudioData?.(e)});else if("string"==typeof e.data){let t;try{t=JSON.parse(e.data)}catch{return}this.handleServerEvent(t)}}handleServerEvent(e){"session_server_initialized"===e.type&&(this.sessionId=e.session_id),"error"===e.type&&(this.shouldReconnect=!1),this.onServerEvent?.(e)}handleClose(e,t){this.stopKeepAlive();const s=`WebSocket closed: ${this.getCloseReason(e.code,e.reason)}`;if(this.lastError=s,this.lastCloseCode=e.code,this.lastCloseWasClean=e.wasClean,4008===e.code&&(this.shouldReconnect=!1),1e3===e.code&&e.wasClean&&(this.shouldReconnect=!1),t&&"connecting"===this.state){this.pendingConnectReject=null,this.setState("error");const e=new Error(s);return this.onError?.(e),void t(e)}this.shouldReconnect&&this.reconnectAttempts<this.config.maxReconnectAttempts?(this.onError?.(new Error(`${s} (reconnecting...)`)),this.scheduleReconnect()):(this.setState("disconnected"),this.onError?.(new Error(s)))}getCloseReason(e,t){if(t)return`${e} - ${t}`;switch(e){case 1e3:return"Normal closure";case 1001:return"Going away";case 1002:return"Protocol error";case 1003:return"Unsupported data";case 1005:return"No status received";case 1006:return"Abnormal closure (connection lost or server unreachable)";case 1007:return"Invalid frame payload data";case 1008:return"Policy violation";case 1009:return"Message too big";case 1010:return"Mandatory extension missing";case 1011:return"Internal server error";case 1015:return"TLS handshake failure";case 4001:return"Unauthorized (authentication required)";case 4003:return"Forbidden (insufficient permissions)";case 4004:return"Not found (invalid conversation or organization)";default:return`Code ${e}`}}scheduleReconnect(){const e=this.config.initialReconnectDelay*Math.pow(2,this.reconnectAttempts);this.reconnectTimeoutId=setTimeout(()=>{this.reconnectAttempts++,this.establishConnection().catch(()=>{})},Math.min(e,4e3))}disconnect(){this.shouldReconnect=!1,this.stopKeepAlive(),this.reconnectTimeoutId&&(clearTimeout(this.reconnectTimeoutId),this.reconnectTimeoutId=null),this.ws&&(this.ws.onopen=null,this.ws.onmessage=null,this.ws.onerror=null,this.ws.onclose=null,this.ws.close(),this.ws=null);const e=this.pendingConnectReject;this.pendingConnectReject=null,e?.(new Error("disconnected before connect completed")),this.sessionId=null,this.setState("disconnected")}sendAudio(e){this.ws?.readyState===WebSocket.OPEN&&(e instanceof Blob?e.arrayBuffer().then(e=>{this.ws?.send(e)}):this.ws.send(e))}sendControl(e){if(this.ws?.readyState!==WebSocket.OPEN)return;const t={type:e};this.ws.send(JSON.stringify(t))}sendToolsRegister(){this.ws?.readyState===WebSocket.OPEN&&this.ws.send(JSON.stringify({type:"tools_register",data:{tools:[]}}))}sendClientMetrics(e){if(this.ws?.readyState!==WebSocket.OPEN)return;const t={};void 0!==e.client_perceived_latency_ms&&(t.client_perceived_latency_ms=e.client_perceived_latency_ms,void 0!==e.latency_anchor&&(t.latency_anchor=e.latency_anchor)),void 0!==e.buffer_underrun_count&&(t.buffer_underrun_count=e.buffer_underrun_count),0!==Object.keys(t).length&&this.ws.send(JSON.stringify({type:"client_metrics",data:t}))}sendClientAbortReason(e){this.ws?.readyState===WebSocket.OPEN&&this.ws.send(JSON.stringify({type:"client_abort_reason",data:{reason:e}}))}interrupt(){this.sendControl("interrupt")}signalInputEnd(){this.sendControl("manual_input_end")}signalPlaybackComplete(){this.sendControl("playback_complete")}sendClockSyncPing(e,t){this.ws?.readyState===WebSocket.OPEN&&this.ws.send(JSON.stringify({type:"clock_sync_ping",seq:e,t1:t}))}startKeepAlive(){this.stopKeepAlive(),this.keepAliveIntervalId=setInterval(()=>{this.sendControl("keep_alive")},this.config.keepAliveInterval)}stopKeepAlive(){this.keepAliveIntervalId&&(clearInterval(this.keepAliveIntervalId),this.keepAliveIntervalId=null)}isConnected(){return"connected"===this.state&&this.ws?.readyState===WebSocket.OPEN}setState(e){this.state=e,this.onStateChange?.(e)}}function Nue(e){let t;try{t=JSON.parse(e)}catch{return}return Array.isArray(t)&&t.every(e=>"object"==typeof e&&null!==e&&"type"in e)?t:"string"==typeof t?[{type:"text",text:t}]:[{type:"text",text:e}]}class Iue{recorder=null;player=null;autotestMuted=!1;ws=null;devMicStream=null;_startEpoch=0;unsubSpeakerDevice=null;unsubDeviceChanges=null;unsubRouteChange=null;unsubVisibility=null;conversationUuid=null;connectInitiated=!1;currentState={status:"idle"};currentTranscript="";transcripts=[];voice=yue.voice;model;effort;thinkingMode;lastStartParams=null;silentFailureUxEnabled=!1;enrichedAbortReasons=!1;interruptKeepFullText=!1;abortReasonSent=!1;tabHiddenSent=!1;clearTemporaryErrorTimer=null;lastWsConnectParams=null;pendingModelRestart=null;pendingEffortRestart=null;pendingEffortForModel=null;pendingThinkingModeRestart=null;userUtteranceInFlight=!1;isReconnecting=!1;bridgeAudioBuffer=[];currentMessageUuid=null;accumulatedText="";messageAdded=!1;lastUserMessageUuid=null;lastUserTranscript=null;lastFinalizedMessageUuid=null;transcriptCommittedThisTurn=!1;voiceContentBlocks=[];activeToolUseId=null;toolUseJsonBuffer="";activeToolUseSseIndex=null;activeToolResultSseIndex=null;toolResultJsonBuffer="";syncThrottleTimer=null;isHoldingEvents=!1;pendingNavigation=!1;heldEvents=[];heldAudioChunks=[];heldUserTranscript=null;heldUserMessageUuid=null;pendingUserTranscriptBuffer="";interimsSinceLastHumanCommit=!1;processingDebounceTimer=null;karaokeWordTimings=[];karaokePlaybackStartedAt=null;karaokeFirstPtsMs=null;karaokeLegWordOffset=0;karaokeLegFirstPtsMs=null;karaokeTickInterval=null;karaokeCleanupTimeout=null;serverEndDrainTimeout=null;serverEnded=!1;turnFirstSampleIdx=null;turnSpeechEndedAtMs=null;turnLatencyAnchor=null;turnLatencyEmitted=!1;firstMicFrameSentAtMs=null;firstMicFrameSuppressed=!1;turnUnderrunBaseline=0;wsClientMetricsReportingEnabled=!1;isFlushing=!1;deferredPlaybackEnd=!1;deferredRateLimitTeardown=!1;savedFlushKaraoke=null;telemetrySessionStartMs=null;telemetryTurnCount=0;telemetryFirstPlaybackFired=!1;telemetryMicAudioReceived=!1;telemetryConnectionWatchdog=null;telemetryMicWatchdog=null;telemetryPlaybackWatchdog=null;sessionReadyResolve=null;isStopping=!1;callbacks={};debugCallbacksSet=new Set;async start(e){this.connectInitiated=!1,this.abortReasonSent=!1,this.tabHiddenSent=!1,this.pendingModelRestart=null,this.pendingEffortRestart=null,this.pendingEffortForModel=null,this.pendingThinkingModeRestart=null,this.userUtteranceInFlight=!1,this.firstMicFrameSentAtMs=null,this.firstMicFrameSuppressed=!1,this.serverEnded=!1,this.serverEndDrainTimeout&&(clearTimeout(this.serverEndDrainTimeout),this.serverEndDrainTimeout=null),"error"===this.currentState.status&&(this.resetKaraokeState(),this.cleanupInstances()),this.model=e.model,this.effort=e.effort,this.thinkingMode=e.thinkingMode;const{accountUuid:t,organizationUuid:s,conversationUuid:n,entryPage:a,projectUuid:i,voice:r,voiceConfig:o,baseUrl:l,usePcm:c=!1,preferredBackend:d="webcodecs",outputFormat:u="pcm",allowWorkletSink:m=!0,playbackPrebufferMs:p=0,wsClientMetricsReporting:f=!1,silentFailureUxEnabled:g=!1,enrichedAbortReasons:h=!1,interruptKeepFullText:C=!1,disableApmOnAffectedMac:x=!1,devSessionOverrides:v}=e;this.silentFailureUxEnabled=g,this.enrichedAbortReasons=h,this.interruptKeepFullText=C,this.wsClientMetricsReportingEnabled=f;const y=++this._startEpoch;_ue.reset({voice:r??this.voice,entryPage:a,projectUuid:i});const b=v?.outputFormat??u,M={...v?.rawBackendOverrides};if(void 0!==v?.recordingEnabled&&(M.stereo_recording_enabled=v.recordingEnabled),void 0!==v?.outputFormat&&(M.output_format=v.outputFormat),!this.isSupported())return void this.setState({status:"error",message:"Voice mode isn't supported in this browser.",code:"not_supported"});Vg.getState().setShowMicPermissionGuidance(!1);const _=await xue();if(this._startEpoch!==y)return;if(_)return Vg.getState().setShowMicPermissionGuidance(!0),void this.setState({status:"error",message:"Microphone permission denied.",code:"permission_denied"});r&&(this.voice=r),this.lastStartParams=e,this.conversationUuid=n,this.resetSyncState(),this.resetTelemetryState(),Vg.getState().setNavigationReady(!1),Vg.getState().setLastVoiceModel(null),Vg.getState().setConversationUuid(n),this.setState({status:"connecting"}),iue.sessionStarted({conversationUuid:n,voice:this.voice}),this.startConnectionWatchdog();const j=await vue();if(this._startEpoch!==y)return;if(!j)return Vg.getState().setShowMicPermissionGuidance(!0),void this.setState({status:"error",message:"Microphone permission denied.",code:"permission_denied"});_ue.onConnecting();let S,L=!0;var N;if(void 0!==v?.echoCancellation?L=v.echoCancellation:x&&await kue()&&(L=!1,tue("[VoiceSessionManager] macOS 26 Apple Silicon detected \u2014 disabling AEC")),this._startEpoch===y)try{const e={...yue,...o,voice:this.voice,clientAec:L,outputFormat:"opus"===b?"opus_48000_32":"pcm_16000",...c?{inputEncoding:"linear16",inputSampleRate:16e3}:{}};this.lastWsConnectParams={baseUrl:l,organizationUuid:s,voiceConfig:e,backendDevOverrides:M,projectUuid:i||void 0},Mue.initialize();const t=new fue({sampleRate:e.inputSampleRate,channels:e.inputChannels,usePcm:c,preferredBackend:gue()??d});this.recorder=t;const n=new jie({outputFormat:b,allowWorkletSink:m,prebufferMs:p,autotestMuted:this.autotestMuted});if(this.player=n,await n.initialize(),this._startEpoch!==y)return t.stop(),n.dispose(),this.recorder===t&&(this.recorder=null),void(this.player===n&&(this.player=null));Vg.getState().setSpeakerAnalyser(n.getAnalyser()),n.resetHealthMetrics(),this.turnUnderrunBaseline=0;const a=Vg.getState().selectedSpeakerDeviceId;a&&n.setSpeakerDevice(a);let r=a;this.unsubSpeakerDevice=Vg.subscribe(e=>{const t=e.selectedSpeakerDeviceId;t!==r&&(r=t,_ue.onRouteChanged(),this.player&&this.player.setSpeakerDevice(t))});const u=e=>new Set(e.filter(e=>"audioinput"===e.kind||"audiooutput"===e.kind).map(e=>e.deviceId));let f=null;navigator.mediaDevices?.enumerateDevices().then(e=>{f??=u(e)}).catch(()=>{});const g=()=>{navigator.mediaDevices?.enumerateDevices().then(e=>{const t=u(e);null===f||t.size===f.size&&![...t].some(e=>!f.has(e))||_ue.onRouteChanged(),f=t}).catch(()=>{})};if(navigator.mediaDevices?.addEventListener("devicechange",g),this.unsubRouteChange=()=>navigator.mediaDevices?.removeEventListener("devicechange",g),this.enrichedAbortReasons&&"undefined"!=typeof document){const e=()=>{"hidden"!==document.visibilityState||this.abortReasonSent||this.tabHiddenSent||!this.connectInitiated||this.telemetryMicAudioReceived||"error"===this.currentState.status||!this.ws?.isConnected()||(this.tabHiddenSent=!0,this.ws.sendClientAbortReason("tab_hidden"))};document.addEventListener("visibilitychange",e),this.unsubVisibility=()=>document.removeEventListener("visibilitychange",e)}this.unsubDeviceChanges=Mue.subscribeToDeviceChanges(e=>{_ue.onRouteChanged(),this.firstMicFrameSentAtMs=null,this.firstMicFrameSuppressed=!0,this.recorder?this.recorder.switchStream(e.stream).then(t=>{t&&this.recorder?Vg.getState().setMicStream(t):this.releaseMicTracks(e.stream)}).catch(()=>{this.releaseMicTracks(e.stream)}):this.releaseMicTracks(e.stream)},{echoCancellation:L});const h=this.buildVoiceWebSocket();if(this.ws=h,t.setOnAudioChunk(e=>{if(this.isReconnecting)return void this.bridgeAudioBuffer.push(e);null!==this.firstMicFrameSentAtMs||this.firstMicFrameSuppressed||(this.firstMicFrameSentAtMs=performance.now()),this.ws?.sendAudio(e);const t=e instanceof ArrayBuffer?e.byteLength:e.size;this.debugCallbacksSet.forEach(e=>e.onAudioChunkSent?.(t)),this.telemetryMicAudioReceived||(this.telemetryMicAudioReceived=!0,this.telemetryMicWatchdog&&(clearTimeout(this.telemetryMicWatchdog),this.telemetryMicWatchdog=null))}),t.setOnAudioLevel(e=>{Vg.getState().setAudioLevel(e)}),n.setOnPlaybackComplete(()=>{}),this.wirePlayerStateChange(n),!this.devMicStream){const e=await hue();e&&this.setDevMicStream(e.stream)}S=this.devMicStream?Promise.resolve({stream:this.devMicStream,acquiredDeviceId:"dev-mic-source",acquiredLabel:"DevMicSource",echoCancellationEnabled:!1}):Mue.acquireMicStream({echoCancellation:L}),S.catch(()=>{}),fue.isWebCodecsOpusSupported();const C=async()=>{try{const e=await S;if(!e)return;this.releaseMicTracks(e.stream)}catch{}};if(this.connectInitiated=!0,await h.connect(),"error"===this.currentState.status){if(await C(),this._startEpoch!==y)return;return void this.cleanupInstances()}await new Promise(e=>{this.sessionReadyResolve=e}),this.sessionReadyResolve=null;const x=Vg.getState().state.status;if("error"===x||"idle"===x){if(await C(),this._startEpoch!==y)return;return void this.cleanupInstances()}const v=await S;if(await t.startWithStream(v.stream),this._startEpoch!==y)return this.releaseMicTracks(v.stream),void t.stop();if(Vg.getState().setMicPermissionGranted(!0),Vg.getState().setMicStream(t.getMediaStream()),this.startMicAudioWatchdog(),"connecting"===this.currentState.status&&(this.telemetryConnectionWatchdog&&(clearTimeout(this.telemetryConnectionWatchdog),this.telemetryConnectionWatchdog=null),iue.sessionConnected({conversationUuid:this.conversationUuid??"",connectionLatencyMs:this.telemetrySessionStartMs?Date.now()-this.telemetrySessionStartMs:0}),_ue.onConnected(),this.setState({status:"listening",isMuted:t.isMuted()}),this.maybeApplyPendingModelRestart()),"error"===Vg.getState().state.status)return t.stop(),void this.cleanupInstances()}catch(I){if(S)try{const e=await S;this.releaseMicTracks(e.stream)}catch{}if(this._startEpoch!==y)return;const e=Cue(I);"permission_denied"===e&&(Vg.getState().setMicPermissionDenied(!0),Vg.getState().setShowMicPermissionGuidance(!0));const a=I instanceof Error?I.message:"Unknown start error",i=I instanceof Error?I.constructor.name:typeof I,r=I instanceof Error?I.cause:void 0,o=r instanceof Error?r.constructor.name:void 0,l=r instanceof OverconstrainedError?r.constraint:I instanceof OverconstrainedError?I.constraint:void 0;k.error(w.VOICE_MODE,"[VoiceSession] Failed to start:",{errorCode:e,technicalMessage:a,nativeErrorName:i,selectedMicId:(N=Mue.getSelectedMicId(),N?Vc(N):N),...o&&{nativeCauseName:o},...l&&{constraintName:l},error:I}),F(I instanceof Error?I:new Error(a),{source:"voice_session_start",voice_error_code:e,account_uuid:t,org_uuid:s,...o&&{native_cause:o},...l&&{constraint_name:l},technicalMessage:a,nativeErrorName:i,conversationUuid:n}),"no_microphone"===e||"device_error"===e?this.tagAbortReason(this.enrichedAbortReasons&&"no_microphone"===e?"no_mic_device":"client_mic_failure"):this.enrichedAbortReasons&&"permission_denied"===e&&this.tagAbortReason("permission_denied"),this.setState({status:"error",message:a,code:e}),this.cleanupInstances()}}stop(e="user_exit"){"connecting"===this.currentState.status&&this.currentState.stalled?this.tagAbortReason("connect_stalled"):this.enrichedAbortReasons&&this.connectInitiated&&!this.telemetryMicAudioReceived&&"error"!==this.currentState.status&&this.tagAbortReason("undefined"!=typeof document&&"hidden"===document.visibilityState?"tab_hidden":"closed_before_audio");const t=bue.has(this.currentState.status),s=this.conversationUuid;this.pendingModelRestart=null,this.pendingEffortRestart=null,this.pendingEffortForModel=null,this.pendingThinkingModeRestart=null,this.userUtteranceInFlight=!1,this.isReconnecting=!1,this.bridgeAudioBuffer=[],this._startEpoch++,this.sessionReadyResolve?.(),this.sessionReadyResolve=null,tue("stop() called",{currentTranscript:this.currentTranscript?.slice(0,50),currentMessageUuid:this.currentMessageUuid,lastUserMessageUuid:this.lastUserMessageUuid,hasCallback:!!this.callbacks.onAssistantTurnComplete,currentStatus:this.currentState.status}),this.commitCurrentTranscript();try{(this.currentTranscript||this.voiceContentBlocks.length>0)&&this.currentMessageUuid&&this.callbacks.onAssistantTurnComplete?(tue("stop() \u2192 onAssistantTurnComplete firing",{msgUuid:this.currentMessageUuid,textLen:this.currentTranscript.length}),this.callbacks.onAssistantTurnComplete(this.currentTranscript,this.currentMessageUuid,this.lastUserMessageUuid,this.lastUserTranscript,this.voiceContentBlocks.length>0?[...this.voiceContentBlocks]:void 0)):tue("stop() \u2192 onAssistantTurnComplete SKIPPED",{hasTranscript:!!this.currentTranscript,hasMessageUuid:!!this.currentMessageUuid,hasCallback:!!this.callbacks.onAssistantTurnComplete})}catch(r){k.error(w.VOICE_MODE,"stop(): onAssistantTurnComplete failed, proceeding with cleanup",r)}this.clearTelemetryWatchdogs(),this.recordSessionEnd(e);const n=this.telemetrySessionStartMs?Date.now()-this.telemetrySessionStartMs:0;iue.sessionEnded({conversationUuid:s??"",durationMs:n,turnCount:this.telemetryTurnCount,endReason:"user_exit"===e?"user_stopped":e}),Iie(e,void 0,n);let a=null;t&&(a=this.captureSessionUnderruns()),t&&_ue.emitSessionEnded(s),null!==a&&this.wsClientMetricsReportingEnabled&&this.ws?.sendClientMetrics({buffer_underrun_count:a}),this.isStopping=!0,this.cleanupInstances(),this.isStopping=!1,this.currentTranscript="",this.transcripts=[],this.conversationUuid=null,this.resetSyncState();const i=Vg.getState();i.setIsVoiceStreaming(!1),i.setAudioLevel(null),i.setInterimTranscript(""),i.setSpeakerAnalyser(null),i.setMicAnalyser(null),i.setMicStream(null),i.setIsMuted(!1),i.setNavigationReady(!1),this.resetKaraokeState(),this.setState({status:"idle"}),i.setConversationUuid(null),i.setTurnInterruptOutcome(null),this.notifySessionEnd(s,e),this.debugCallbacksSet.forEach(e=>e.onSessionEnd?.())}notifySessionEnd(e,t){this.connectInitiated&&Zg(e)&&tue("notifySessionEnd: rotated shared next-conversation uuid (session ended before newChat)"),this.callbacks.onSessionEnd?.(e,t)}interrupt(){this.userUtteranceInFlight=!1,this.commitCurrentTranscript();const e=this.player;if(e&&this.debugCallbacksSet.forEach(t=>t.onLocalInterrupt?.({playedDurationMs:e.getPlayedDurationMs()})),this.player?.stop(),this.ws?.interrupt(),"speaking"===this.currentState.status&&(_ue.onSpeakInterrupt(),Vg.getState().setTurnInterruptOutcome("button_interrupt")),this.freezeKaraokeOnInterrupt(),this.truncateToSpokenContent(),this.karaokeCleanupTimeout)return clearTimeout(this.karaokeCleanupTimeout),this.karaokeCleanupTimeout=null,void this.completePlaybackEnd({isMuted:this.recorder?.isMuted()??!1,suppressPendingRestart:!0});this.setState({status:"listening",isMuted:this.recorder?.isMuted()??!1})}toggleMute(){if(!this.recorder)return;const e=!this.recorder.isMuted();this.recorder.setMuted(e),Vg.getState().setIsMuted(e),_ue.onMuteToggle(),"listening"===this.currentState.status&&this.setState({...this.currentState,isMuted:e})}clearPendingModelRestart(){this.pendingModelRestart=null,this.pendingEffortRestart=null,this.pendingEffortForModel=null,this.pendingThinkingModeRestart=null}setVoice(e){this.voice=e,Vg.getState().setVoice(e),this.lastWsConnectParams&&(this.lastWsConnectParams.voiceConfig={...this.lastWsConnectParams.voiceConfig,voice:e})}async setModel(e){return Vg.setState({model:e??null}),this.isActive()&&this.lastStartParams?e!==this.model?"connecting"===this.currentState.status&&null===this.ws?(this.model=e,void(this.pendingModelRestart=null)):void("listening"!==this.currentState.status||this.userUtteranceInFlight||this.isReconnecting?this.pendingModelRestart=e:(this.pendingModelRestart=null,await this.restartForConnectionParams(()=>{this.model=e,null!==this.pendingEffortRestart&&(this.pendingEffortForModel===this.model&&(this.effort=this.pendingEffortRestart),this.pendingEffortRestart=null,this.pendingEffortForModel=null),null!==this.pendingThinkingModeRestart&&(this.thinkingMode=this.pendingThinkingModeRestart,this.pendingThinkingModeRestart=null)}))):void(this.pendingModelRestart=null):(this.model=e,void(this.pendingModelRestart=null))}async setEffort(e){if(Vg.setState({effort:e??null}),!this.isActive()||!this.lastStartParams)return this.effort=e,void(this.pendingEffortRestart=null);if(e!==this.effort||null!==this.pendingModelRestart){if("connecting"===this.currentState.status&&null===this.ws)return this.effort=e,void(this.pendingEffortRestart=null);if("listening"!==this.currentState.status||this.userUtteranceInFlight||this.isReconnecting||null!==this.pendingModelRestart)return this.pendingEffortRestart=e,void(this.pendingEffortForModel=null!==this.pendingModelRestart?this.pendingModelRestart:this.model);this.pendingEffortRestart=null,this.pendingEffortForModel=null,await this.restartForConnectionParams(()=>{this.effort=e})}else this.pendingEffortRestart=null}async setThinkingMode(e){return Vg.setState({thinkingMode:e??null}),this.isActive()&&this.lastStartParams?e!==this.thinkingMode||null!==this.pendingModelRestart?"connecting"===this.currentState.status&&null===this.ws?(this.thinkingMode=e,void(this.pendingThinkingModeRestart=null)):void("listening"!==this.currentState.status||this.userUtteranceInFlight||this.isReconnecting||null!==this.pendingModelRestart?this.pendingThinkingModeRestart=e:(this.pendingThinkingModeRestart=null,await this.restartForConnectionParams(()=>{this.thinkingMode=e}))):void(this.pendingThinkingModeRestart=null):(this.thinkingMode=e,void(this.pendingThinkingModeRestart=null))}async restartForConnectionParams(e){if(this.lastWsConnectParams&&this.conversationUuid&&!this.serverEnded){e?.(),this.firstMicFrameSentAtMs=null,this.firstMicFrameSuppressed=!1,this.turnSpeechEndedAtMs=null,this.turnLatencyEmitted=!1;try{this.isReconnecting=!0;const e=this.ws,s=this.buildVoiceWebSocket();let n;this.ws=s,e?.disconnect();const a=new Promise(e=>{n=setTimeout(()=>e("stall"),15e3)});try{const e=new Promise(e=>{this.sessionReadyResolve=e}),t=await Promise.race([s.connect().then(()=>e),a]);if(this.sessionReadyResolve=null,"stall"===t&&this.ws===s)throw new Error("model reconnect: session_ready timeout")}catch(t){if(this.ws!==s)return;return k.error(w.VOICE_MODE,"[VoiceSession] model reconnect failed:",t),this.setState({status:"error",message:"Reconnection failed.",code:"disconnected"}),this.cleanupInstances(),void this.notifySessionEnd(this.conversationUuid,"error")}finally{n&&clearTimeout(n)}if(this.ws!==s||"error"===this.currentState.status)return void(this.ws===s&&"error"===this.currentState.status&&(this.cleanupInstances(),this.notifySessionEnd(this.conversationUuid,"error")));this.setState({status:"listening",isMuted:this.recorder?.isMuted()??!1}),this.bridgeAudioBuffer.length>0&&(this.firstMicFrameSuppressed=!0);for(const t of this.bridgeAudioBuffer)this.ws?.sendAudio(t);this.bridgeAudioBuffer=[]}finally{this.isReconnecting=!1,this.bridgeAudioBuffer=[]}this.maybeApplyPendingModelRestart()}}buildVoiceWebSocket(){const e=this.lastWsConnectParams;if(!e||!this.conversationUuid)throw new Error("buildVoiceWebSocket called before start()");const t=new Lue({baseUrl:e.baseUrl??"",organizationUuid:e.organizationUuid,conversationUuid:this.conversationUuid,model:this.model,effort:this.effort,thinkingMode:this.thinkingMode,voiceConfig:e.voiceConfig,projectUuid:e.projectUuid,devOverrides:Object.keys(e.backendDevOverrides).length>0?e.backendDevOverrides:void 0});return t.setOnAudioData(e=>{this.ws===t&&(this.isHoldingEvents?this.heldAudioChunks.push(e):this.player?.queueAudio(e),this.debugCallbacksSet.forEach(t=>t.onAudioReceived?.(e.byteLength)),this.debugCallbacksSet.forEach(t=>t.onAudioDataReceived?.(e)))}),t.setOnServerEvent(e=>{this.ws===t&&this.handleServerEvent(e)}),t.setOnError(()=>{}),t.setOnStateChange(e=>{if(this.ws===t&&("reconnecting"===e?(this.firstMicFrameSentAtMs=null,this.firstMicFrameSuppressed=!0,this.turnSpeechEndedAtMs=null,this.turnLatencyEmitted=!1):"connected"===e&&(this.firstMicFrameSuppressed=!1),"error"===e||"disconnected"===e)){if(this.isStopping)return;const s=this.currentState.status;if("idle"!==s&&"error"!==s){if("disconnected"===e&&bue.has(s)&&1e3===t.getLastCloseCode()&&t.getLastCloseWasClean()){this.serverEnded=!0,this.player?.releasePrebuffer();const e=this.player?.getRemainingDuration()??0;if(e>0){const t=Math.ceil(1e3*e)+500;return tue(`WS closed cleanly (1000) \u2014 server ended the call, draining ${t}ms of buffered goodbye before stopping`),void(this.serverEndDrainTimeout=setTimeout(()=>{this.serverEndDrainTimeout=null,this.stop("server_ended")},t))}return tue("WS closed cleanly (1000) \u2014 server ended the call, stopping gracefully"),void this.stop("server_ended")}this.recorder?.stop();const n=t.getLastError(),a=4008===t.getLastCloseCode()?"idle_timeout":"disconnected";k.error(w.VOICE_MODE,"[VoiceSession] WebSocket disconnected:",n),this.setState({status:"error",message:n??"Disconnected",code:a}),this.clearMediaStoreState(),this.sessionReadyResolve?.()}}}),t}maybeApplyPendingModelRestart(){if(null===this.pendingModelRestart&&null===this.pendingEffortRestart&&null===this.pendingThinkingModeRestart||"listening"!==this.currentState.status||this.userUtteranceInFlight||this.isReconnecting)return;const e=this.pendingModelRestart,t=this.pendingEffortRestart,s=this.pendingEffortForModel,n=this.pendingThinkingModeRestart;this.pendingModelRestart=null,this.pendingEffortRestart=null,this.pendingEffortForModel=null,this.pendingThinkingModeRestart=null;const a=null!==e&&e!==this.model?e:this.model,i=null!==t&&s===a&&t!==this.effort?t:this.effort,r=null!==n&&n!==this.thinkingMode?n:this.thinkingMode;a===this.model&&i===this.effort&&r===this.thinkingMode||this.restartForConnectionParams(()=>{this.model=a,this.effort=i,this.thinkingMode=r})}setDevMicStream(e){this.devMicStream=e}releaseMicTracks(e){e!==this.devMicStream&&e.getTracks().forEach(e=>e.stop())}sendDevText(e){throw new Error("sendDevText was removed \u2014 use DevMicSource.speakAsUser(). The dev_text_input WS path and FluxVADGate user_id=dev bypass are reverted on the backend.")}sendClockSyncPing(e,t){this.ws?.sendClockSyncPing(e,t)}holdEvents(e,t){this.isHoldingEvents=!0,this.pendingNavigation=!1,this.heldUserTranscript=e,this.heldUserMessageUuid=t}setPendingNavigation(e){this.pendingNavigation=e}setLastUserMessageUuid(e){this.lastUserMessageUuid=e}flush(){if(this.isHoldingEvents){if(k.debug(w.VOICE_MODE,"[Session] flush:",this.heldEvents.length,"events,",this.heldAudioChunks.length,"audio chunks"),this.isHoldingEvents=!1,this.pendingNavigation=!1,this.turnSpeechEndedAtMs=null,this.turnLatencyEmitted=!1,_ue.onNavFlush(),this.heldUserTranscript&&this.heldUserMessageUuid&&this.conversationUuid){const e=Ce.getState(),t=this.conversationUuid,s=e.getConversationMessages(t),n=(new Date).toISOString(),a={uuid:this.heldUserMessageUuid,sender:"human",content:[{type:"text",text:this.heldUserTranscript}],created_at:n,updated_at:n,attachments:[],files:[],files_v2:[],sync_sources:[],index:s.length,input_mode:"voice"};e.appendMessages(t,[a]),this.lastUserMessageUuid=this.heldUserMessageUuid;const i={speaker:"user",text:this.heldUserTranscript,timestamp:new Date};this.transcripts=[...this.transcripts,i],Vg.getState().setTranscripts(this.transcripts),this.debugCallbacksSet.forEach(e=>e.onTranscriptUpdate?.(this.transcripts))}this.isFlushing=!0;for(const e of this.heldEvents)this.handleServerEvent(e);if(this.isFlushing=!1,this.heldEvents=[],this.player)for(const e of this.heldAudioChunks)this.player.queueAudio(e);if(this.heldAudioChunks=[],"error"===this.currentState.status&&(this.savedFlushKaraoke=null,this.deferredPlaybackEnd=!1),this.deferredRateLimitTeardown&&(this.deferredRateLimitTeardown=!1,this.teardownCappedSession()),this.savedFlushKaraoke){const{wordTimings:e,firstPtsMs:t,totalWords:s}=this.savedFlushKaraoke;this.savedFlushKaraoke=null,this.karaokeWordTimings=e,this.karaokeFirstPtsMs=t,this.karaokeLegWordOffset=0,this.karaokeLegFirstPtsMs=t,this.karaokePlaybackStartedAt=Date.now();const n=Vg.getState();n.setKaraokeTotalWords(s),n.setKaraokeSpokenCount(0),n.setKaraokeLegWordOffset(0),n.setIsKaraokeActive(!0),this.startKaraokeTick();const a=this.player?.getRemainingDuration()??0,i=Math.ceil(1e3*a)+500;this.karaokeCleanupTimeout=setTimeout(()=>{this.karaokeCleanupTimeout=null,this.stopKaraokeTick(),Vg.getState().setIsKaraokeActive(!1),this.resetKaraokeState()},i)}if(this.deferredPlaybackEnd){this.deferredPlaybackEnd=!1,this.player?.releasePrebuffer(),this.karaokeCleanupTimeout&&(clearTimeout(this.karaokeCleanupTimeout),this.karaokeCleanupTimeout=null);const e=this.player?.getRemainingDuration()??0;if(e>0){const t=Math.ceil(1e3*e)+500;this.karaokeCleanupTimeout=setTimeout(()=>{this.karaokeCleanupTimeout=null,this.completePlaybackEnd()},t)}else this.completePlaybackEnd()}this.heldUserTranscript=null,this.heldUserMessageUuid=null}}destroy(){this.stop(),this.callbacks={}}registerCallbacks(e){this.callbacks=e}unregisterCallbacks(){this.callbacks={}}registerDebugCallbacks(e){return this.debugCallbacksSet.add(e),()=>this.debugCallbacksSet.delete(e)}unregisterDebugCallbacks(){this.debugCallbacksSet.clear()}setAutotestMuted(e){this.autotestMuted=e,this.player?.setAutotestMuted(e)}isSupported(){return"undefined"!=typeof window&&fue.isSupported()&&jie.isSupported()}isActive(){return"idle"!==this.currentState.status&&"error"!==this.currentState.status}getConversationUuid(){return this.conversationUuid}getCurrentMessageUuid(){return this.currentMessageUuid}getVoice(){return this.voice}getTurnFirstSampleIdx(){return this.turnFirstSampleIdx}getPlaybackMetrics(){const e=this.player;if(!e)return null;const t=e.getHealthMetrics();return{playedDurationMs:e.getPlayedDurationMs(),sampleRate:e.getSampleRate(),outputLatencyMs:e.getOutputLatencyMs(),bufferMs:t.bufferMs,underrunCount:t.underrunCount,isPlaying:e.isPlaying()}}handleServerEvent(e){try{if("pong"!==e.type&&tue(`event=${e.type} | state=${this.currentState.status} holding=${this.isHoldingEvents}`,e),this.isHoldingEvents)return void("pong"!==e.type&&this.heldEvents.push(e));if("pong"!==e.type&&this.debugCallbacksSet.forEach(t=>t.onServerEvent?.(e)),"error"===this.currentState.status)return;switch(e.type){case"session_server_initialized":this.ws?.sendToolsRegister(),this.sessionReadyResolve?this.sessionReadyResolve():(this.setState({status:"listening",isMuted:this.recorder?.isMuted()??!1}),this.maybeApplyPendingModelRestart());break;case"transcription_start":this.userUtteranceInFlight=!0,"speaking"===this.currentState.status&&(this.commitCurrentTranscript(),this.player?.stop(),_ue.onSpeakInterrupt(),Vg.getState().setTurnInterruptOutcome("speak_interrupt"),this.freezeKaraokeOnInterrupt(),this.truncateToSpokenContent(),this.karaokeCleanupTimeout&&(clearTimeout(this.karaokeCleanupTimeout),this.karaokeCleanupTimeout=null,this.completePlaybackEnd({isMuted:this.recorder?.isMuted()??!1})),this.pendingUserTranscriptBuffer="",this.interimsSinceLastHumanCommit=!1,Vg.getState().setInterimTranscript("")),this.cancelProcessingDebounce(),Vg.getState().setNavigationReady(!1),this.lastUserMessageUuid=null,this.lastUserTranscript=null,this.setState({status:"listening",isMuted:!1});break;case"transcript_interim":if(e.text){this.userUtteranceInFlight=!0,this.interimsSinceLastHumanCommit=!0,_ue.onInputStart(),this.cancelProcessingDebounce();const t=this.pendingUserTranscriptBuffer?this.pendingUserTranscriptBuffer+" "+e.text:e.text;if(this.lastUserTranscript=t,this.pendingUserTranscriptBuffer&&tue(`transcript_interim bridged: "${t}" (buffer: "${this.pendingUserTranscriptBuffer}" + new: "${e.text}")`),this.lastUserMessageUuid&&this.conversationUuid&&!this.currentMessageUuid){const e=Ce.getState(),s=e.getConversationMessages(this.conversationUuid).find(e=>e.uuid===this.lastUserMessageUuid);s&&e.updateMessage(this.lastUserMessageUuid,{...s,content:[{type:"text",text:t}]})}else Vg.getState().setInterimTranscript(t)}break;case"user_input_end":{const t=this.currentState.status;if(("listening"===t||"processing"===t)&&(_ue.onInputEnd(this.isFlushing),!this.isFlushing)){const t=e.speech_end_offset_ms,s=this.firstMicFrameSentAtMs;"number"==typeof t&&t>=0&&null!==s?(this.turnSpeechEndedAtMs=s+t,this.turnLatencyAnchor="speech_end_offset"):(this.turnSpeechEndedAtMs=performance.now(),this.turnLatencyAnchor="arrival"),this.turnLatencyEmitted=!1}const s=Vg.getState().interimTranscript;s||(this.userUtteranceInFlight=!1),s&&!this.processingDebounceTimer&&(this.processingDebounceTimer=setTimeout(()=>{this.processingDebounceTimer=null,this.userUtteranceInFlight=!1,this.setState({status:"processing"}),Vg.getState().setIsVoiceStreaming(!0)},1e3));break}case"playback_start":if(!this.isHoldingEvents&&!this.lastUserMessageUuid&&this.pendingNavigation){tue("playback_start: auto-activating hold for /new navigation"),this.cancelProcessingDebounce(),"processing"!==this.currentState.status&&this.setState({status:"processing"}),Vg.getState().setNavigationReady(!0),this.isHoldingEvents=!0,this.heldEvents.push(e);break}"speaking"!==Vg.getState().state.status&&(_ue.onPlaybackStart(this.isFlushing,e.server_vad_to_tts_start_ms),this.setState({status:"speaking",transcript:this.currentTranscript})),this.telemetryFirstPlaybackFired||(this.telemetryFirstPlaybackFired=!0,iue.firstResponseReceived({conversationUuid:this.conversationUuid??"",latencyMs:this.telemetrySessionStartMs?Date.now()-this.telemetrySessionStartMs:0})),this.telemetryPlaybackWatchdog&&(clearTimeout(this.telemetryPlaybackWatchdog),this.telemetryPlaybackWatchdog=null),this.karaokeLegFirstPtsMs=null,this.player?.resetPlayedDuration(),this.turnFirstSampleIdx=this.player?.getTotalPushedSamples()??null,this.karaokePlaybackStartedAt=Date.now(),Vg.getState().setIsKaraokeActive(!0),this.startKaraokeTick();break;case"playback_end":if(this.isFlushing&&this.karaokeWordTimings.length>0&&null!==this.karaokeFirstPtsMs&&(this.savedFlushKaraoke={wordTimings:[...this.karaokeWordTimings],firstPtsMs:this.karaokeFirstPtsMs,totalWords:this.karaokeWordTimings.length}),this.isFlushing){this.deferredPlaybackEnd=!0;break}{this.player?.releasePrebuffer();const e=this.player?.getRemainingDuration()??0;if(e>0){const t=Math.ceil(1e3*e)+500;this.karaokeCleanupTimeout=setTimeout(()=>{this.karaokeCleanupTimeout=null,this.completePlaybackEnd()},t);break}}this.completePlaybackEnd();break;case"message_sse":{const t=e;if("message_start"===t.event?.type){const s=t.event.data?.message;if(!(null===s?.uuid)){if(this.cancelProcessingDebounce(),"processing"!==this.currentState.status&&this.setState({status:"processing"}),Vg.getState().setNavigationReady(!0),!this.isHoldingEvents&&!this.lastUserMessageUuid&&this.pendingNavigation){tue("message_start: auto-activating hold for /new navigation"),this.isHoldingEvents=!0,this.heldEvents.push(e);break}if(this.isHoldingEvents){this.heldEvents.push(e);break}}}this.handleMessageSSE(e);break}case"message_complete":{const t=e;if("human"===t.data?.sender){const e=Vg.getState().interimTranscript,s=t.data.content?.map(e=>"text"===e.type?e.text??"":"").join("").trim()??"",n=this.interimsSinceLastHumanCommit?e:[this.pendingUserTranscriptBuffer,s].filter(Boolean).join(" ");n&&n!==e&&Vg.getState().setInterimTranscript(n),n&&(this.lastUserTranscript=n,this.pendingUserTranscriptBuffer=n,tue(`message_complete (human) \u2014 buffered: "${n}"`)),this.interimsSinceLastHumanCommit=!1;break}this.handleMessageComplete(e);break}case"tts_word":{const t=e,s=t.text??"",n=t.pts_ms;null!=n?(this.karaokeWordTimings.push({text:s,ptsMs:n}),null===this.karaokeFirstPtsMs&&(this.karaokeFirstPtsMs=n),null===this.karaokeLegFirstPtsMs&&(this.karaokeLegFirstPtsMs=n)):Vg.getState().setKaraokeSpokenCount(Vg.getState().karaokeSpokenCount+1);const a=Vg.getState();a.setKaraokeTotalWords(a.karaokeTotalWords+1);break}case"error":{if(this.currentTranscript){const e={speaker:"assistant",text:this.currentTranscript+" [interrupted]",timestamp:new Date};this.transcripts=[...this.transcripts,e],Vg.getState().setTranscripts(this.transcripts),this.debugCallbacksSet.forEach(e=>e.onTranscriptUpdate?.(this.transcripts)),this.currentTranscript=""}const t=e,s=e;if("error_temporary"===s.data?.type){const e=s.data.error_code;k.info(w.VOICE_MODE,"[VoiceSession] error_temporary \u2014 staying in listening",{errorCode:e}),this.cancelProcessingDebounce(),this.userUtteranceInFlight=!1,this.setState({status:"listening",isMuted:this.recorder?.isMuted()??!1,temporaryError:{displayMessage:s.data.display_message,errorCode:e}}),this.ws?.rearmReconnect(),this.maybeApplyPendingModelRestart(),this.clearTemporaryErrorTimer&&clearTimeout(this.clearTemporaryErrorTimer),this.clearTemporaryErrorTimer=setTimeout(()=>{"listening"===this.currentState.status&&this.currentState.temporaryError&&this.setState({...this.currentState,temporaryError:void 0})},5e3);break}const n=t.error?.type||s.data?.error_code||"unknown",a=function(e){switch(e){case"session_expired":return"session_expired";case"rate_limited":return"rate_limited";case"idle_timeout":return"idle_timeout";case"prompt_too_long_error":return"length_limit";case"overloaded":return"overloaded";case"sampling_error":return"sampling_error";case"internal_error":return"internal_error";case"auth_error":return"auth_error";case"disabled":return"disabled";case"invalid_request":return"invalid_request";case"speech_error":return"speech_error";case"transcript_error":return"transcript_error";default:return"unknown"}}(n),i=t.error?.message||s.data?.display_message||n;k.error(w.VOICE_MODE,"[VoiceSession] Server error:",{errorType:n,errorCode:a,technicalMessage:i});const r=i;this.cancelProcessingDebounce(),this.recorder?.stop(),this.setState({status:"error",message:r,code:a}),this.clearMediaStoreState(),this.sessionReadyResolve?.();break}}}catch(t){k.error(w.VOICE_MODE,"[VoiceSession] Error handling server event:",e.type,t)}}handleMessageSSE(e){const t=e,s=t.event?.type;if("content_block_delta"===s){const e=t.event?.data?.delta,n=e?.text;n?tue(`message_sse delta: "${n}" | accumulated: "${this.accumulatedText}${n}"`):tue(`message_sse ${s}`,e)}else tue(`message_sse sub-event=${s}`,t.event);if("message_start"===t.event?.type){this.currentTranscript="";const e=t.event.data?.message,s=e?.uuid;if(null===s)return;const n=e?.model;tue("message_start model:",n),n&&Vg.getState().setLastVoiceModel(n);const a=t.event.data?.message_uuid??s??e?.id??crypto.randomUUID(),i=e?.parent_uuid;if(!this.lastUserMessageUuid&&this.conversationUuid){const e=Vg.getState().interimTranscript;if(e){const t=Ce.getState(),s=this.conversationUuid,n=t.getConversationMessages(s),a=(new Date).toISOString(),r=i??crypto.randomUUID(),o={uuid:r,sender:"human",content:[{type:"text",text:e}],created_at:a,updated_at:a,attachments:[],files:[],files_v2:[],sync_sources:[],index:n.length,input_mode:"voice"};t.appendMessages(s,[o]),this.lastUserMessageUuid=r;const l={speaker:"user",text:e,timestamp:new Date};this.transcripts=[...this.transcripts,l],Vg.getState().setTranscripts(this.transcripts),this.debugCallbacksSet.forEach(e=>e.onTranscriptUpdate?.(this.transcripts))}}if(this.pendingUserTranscriptBuffer="",this.interimsSinceLastHumanCommit=!1,Vg.getState().setInterimTranscript(""),Vg.getState().setIsVoiceStreaming(!0),a&&this.conversationUuid){this.currentMessageUuid=a,this.accumulatedText="",this.messageAdded=!1,this.voiceContentBlocks=[],this.activeToolUseId=null,this.activeToolUseSseIndex=null,this.activeToolResultSseIndex=null,this.toolUseJsonBuffer="",this.toolResultJsonBuffer="",this.syncThrottleTimer&&(clearTimeout(this.syncThrottleTimer),this.syncThrottleTimer=null);const e=Ce.getState(),t=this.conversationUuid,s=e.getConversationMessages(t),n=(new Date).toISOString(),i={uuid:a,sender:"assistant",content:[{type:"text",text:""}],created_at:n,updated_at:n,attachments:[],files:[],files_v2:[],sync_sources:[],index:s.length,parent_message_uuid:this.lastUserMessageUuid??Bg};e.appendMessages(t,[i]),this.messageAdded=!0}}else if("content_block_start"===t.event?.type){const e=t.event.data?.content_block,s=e?.type;if("tool_use"===s){const s={type:"tool_use",id:e?.id,name:e?.name,input:e?.input??{}};this.voiceContentBlocks.push(s),this.activeToolUseId=e?.id,this.activeToolUseSseIndex=t.event.data?.index??null,this.toolUseJsonBuffer=e?.input&&Object.keys(e.input).length>0?JSON.stringify(e.input):""}else if("tool_result"===s){const s={type:"tool_result",tool_use_id:e?.tool_use_id,name:e?.name??"",is_error:e?.is_error??!1,content:[]};this.voiceContentBlocks.push(s),this.activeToolResultSseIndex=t.event.data?.index??null,this.toolResultJsonBuffer=""}else if("text"===s){const e=this.voiceContentBlocks.some(e=>"text"===e.type),t={type:"text",text:""};this.voiceContentBlocks.push(t),e&&(this.currentTranscript.length>0&&!/\s$/.test(this.currentTranscript)&&(this.currentTranscript+=" ",this.accumulatedText+=" "),this.karaokeLegWordOffset=Math.max(this.karaokeWordTimings.length,Vg.getState().karaokeSpokenCount),Vg.getState().setKaraokeLegWordOffset(this.karaokeLegWordOffset))}this.flushSyncMessageContent()}else if("content_block_delta"===t.event?.type){const e=t.event.data?.delta,s=e?.type;if(e?.text||"text_delta"===s){const t=e?.text;if(t){this.currentTranscript+=t,this.accumulatedText+=t;const e=this.findLastBlockIndex("text");if(e>=0){const s=this.voiceContentBlocks[e];"text"===s.type&&(s.text+=t)}"speaking"===this.currentState.status&&this.setState({status:"speaking",transcript:this.currentTranscript})}}else if("input_json_delta"===s&&null!==this.activeToolUseSseIndex&&t.event.data?.index===this.activeToolUseSseIndex){const t=e?.partial_json;if(t){this.toolUseJsonBuffer+=t;const e=this.voiceContentBlocks.findIndex(e=>"tool_use"===e.type&&e.id===this.activeToolUseId);if(e>=0){const t=this.voiceContentBlocks[e];if("tool_use"===t.type){t.partial_json=this.toolUseJsonBuffer;try{t.input=JSON.parse(this.toolUseJsonBuffer)}catch{}}}}}else if("input_json_delta"===s&&null!==this.activeToolResultSseIndex&&t.event.data?.index===this.activeToolResultSseIndex){const t=e?.partial_json;if(t){this.toolResultJsonBuffer+=t;const e=this.findLastBlockIndex("tool_result");if(e>=0){const t=this.voiceContentBlocks[e];if("tool_result"===t.type){const e=Nue(this.toolResultJsonBuffer);void 0!==e&&(t.content=e)}}}}this.syncMessageContent()}else if("content_block_stop"===t.event?.type){const e=t.event.data?.index??null;if(null!==this.activeToolUseSseIndex&&e===this.activeToolUseSseIndex){const e=this.voiceContentBlocks.findIndex(e=>"tool_use"===e.type&&e.id===this.activeToolUseId);if(e>=0){const t=this.voiceContentBlocks[e];if("tool_use"===t.type){try{t.input=JSON.parse(this.toolUseJsonBuffer)}catch{}delete t.partial_json}}this.activeToolUseId=null,this.activeToolUseSseIndex=null}else if(null!==this.activeToolResultSseIndex&&e===this.activeToolResultSseIndex){const e=this.findLastBlockIndex("tool_result");if(e>=0){const t=this.voiceContentBlocks[e];if("tool_result"===t.type){const e=Nue(this.toolResultJsonBuffer);void 0!==e&&(t.content=e)}}this.activeToolResultSseIndex=null}this.flushSyncMessageContent()}else if("message_limit"===t.event?.type){const e=t.event.data?.message_limit,s=e?.type;e&&"rate_limit"!==s&&this.callbacks.onMessageLimit?.(e);if("exceeded_limit"===s||"rate_limit"===s){k.error(w.VOICE_MODE,"[VoiceSession] Rate limit hit via message_sse",{limitType:s}),this.cancelProcessingDebounce(),this.recorder?.stop(),this.karaokeCleanupTimeout&&(clearTimeout(this.karaokeCleanupTimeout),this.karaokeCleanupTimeout=null);const t=e?.notice?.text?.trim();this.setState({status:"error",message:s??"rate_limit",code:"rate_limited",...t?{displayMessage:t}:{}}),this.clearMediaStoreState(),this.sessionReadyResolve?.(),this.serverEnded=!0,this.isFlushing?this.deferredRateLimitTeardown=!0:this.teardownCappedSession()}}}syncMessageContent(){this.syncThrottleTimer||(this.syncThrottleTimer=setTimeout(()=>{this.syncThrottleTimer=null,this.syncMessageContentNow()},80))}flushSyncMessageContent(){this.syncThrottleTimer&&(clearTimeout(this.syncThrottleTimer),this.syncThrottleTimer=null),this.syncMessageContentNow()}syncMessageContentNow(){if(!this.currentMessageUuid||!this.messageAdded||!this.conversationUuid)return;const e=Ce.getState(),t=this.conversationUuid,s=e.getConversationMessages(t).find(e=>e.uuid===this.currentMessageUuid);if(!s)return;const n=this.voiceContentBlocks.length>0?[...this.voiceContentBlocks]:[{type:"text",text:this.accumulatedText}];e.updateMessage(this.currentMessageUuid,{...s,content:n,updated_at:(new Date).toISOString()})}findLastBlockIndex(e){for(let t=this.voiceContentBlocks.length-1;t>=0;t--)if(this.voiceContentBlocks[t].type===e)return t;return-1}handleMessageComplete(e){const{message_uuid:t,content:s}=e.data;if(!t||!s||0===s.length)return;if(!this.conversationUuid)return;if(!this.currentMessageUuid)return;if(t===this.lastFinalizedMessageUuid)return;if(this.messageAdded)return;const n=s.filter(e=>"text"===e.type).map(e=>e.text).join(""),a=Ce.getState(),i=this.conversationUuid;this.currentMessageUuid=t,this.accumulatedText=n;const r=a.getConversationMessages(i),o=(new Date).toISOString(),l={uuid:t,sender:"assistant",content:[{type:"text",text:this.accumulatedText}],created_at:o,updated_at:o,attachments:[],files:[],files_v2:[],sync_sources:[],index:r.length,parent_message_uuid:this.lastUserMessageUuid??Bg};a.appendMessages(i,[l]),this.messageAdded=!0}commitCurrentTranscript(){if(!this.currentTranscript||this.transcriptCommittedThisTurn)return;const e=this.transcripts[this.transcripts.length-1];if("assistant"===e?.speaker&&e?.text===this.currentTranscript)return;const t={speaker:"assistant",text:this.currentTranscript,timestamp:new Date};this.transcripts=[...this.transcripts,t],Vg.getState().setTranscripts(this.transcripts),this.debugCallbacksSet.forEach(e=>e.onTranscriptUpdate?.(this.transcripts)),this.transcriptCommittedThisTurn=!0}handleTurnEnd(){this.transcriptCommittedThisTurn=!1,this.currentMessageUuid=null,this.accumulatedText="",this.messageAdded=!1,this.lastUserMessageUuid=null,this.lastUserTranscript=null,this.pendingUserTranscriptBuffer="",this.interimsSinceLastHumanCommit=!1,this.voiceContentBlocks=[],this.activeToolUseId=null,this.toolUseJsonBuffer="",this.toolResultJsonBuffer="",this.activeToolUseSseIndex=null,this.activeToolResultSseIndex=null,this.syncThrottleTimer&&(clearTimeout(this.syncThrottleTimer),this.syncThrottleTimer=null),this.resetKaraokeState()}resetSyncState(){this.transcriptCommittedThisTurn=!1,this.currentMessageUuid=null,this.accumulatedText="",this.messageAdded=!1,this.lastUserMessageUuid=null,this.lastUserTranscript=null,this.pendingUserTranscriptBuffer="",this.interimsSinceLastHumanCommit=!1,this.lastFinalizedMessageUuid=null,this.voiceContentBlocks=[],this.activeToolUseId=null,this.toolUseJsonBuffer="",this.toolResultJsonBuffer="",this.activeToolUseSseIndex=null,this.activeToolResultSseIndex=null,this.syncThrottleTimer&&(clearTimeout(this.syncThrottleTimer),this.syncThrottleTimer=null),this.isHoldingEvents=!1,this.pendingNavigation=!1,this.deferredPlaybackEnd=!1,this.heldEvents=[],this.heldAudioChunks=[],this.heldUserTranscript=null,this.heldUserMessageUuid=null,this.cancelProcessingDebounce(),this.sessionReadyResolve?.(),this.sessionReadyResolve=null,this.resetKaraokeState()}cancelProcessingDebounce(){this.processingDebounceTimer&&(clearTimeout(this.processingDebounceTimer),this.processingDebounceTimer=null)}startKaraokeTick(){this.karaokeTickInterval||(this.karaokeTickInterval=setInterval(()=>{if(null===this.karaokePlaybackStartedAt||null===this.karaokeFirstPtsMs||0===this.karaokeWordTimings.length)return;const e=this.player?.getPlayedDurationMs()??0,t=this.karaokeLegFirstPtsMs??this.karaokeFirstPtsMs;let s=0;for(let i=this.karaokeLegWordOffset;i<this.karaokeWordTimings.length&&this.karaokeWordTimings[i].ptsMs-t<=e;i++)s++;const n=this.karaokeLegWordOffset+s,a=Vg.getState();n!==a.karaokeSpokenCount&&a.setKaraokeSpokenCount(n)},100))}stopKaraokeTick(){this.karaokeTickInterval&&(clearInterval(this.karaokeTickInterval),this.karaokeTickInterval=null);const e=Vg.getState();e.karaokeTotalWords>0&&e.setKaraokeSpokenCount(e.karaokeTotalWords)}truncateToSpokenContent(){const e=Vg.getState().karaokeSpokenCount;if(this.interruptKeepFullText){let t=e;for(const e of this.voiceContentBlocks){if("text"!==e.type)continue;let s=0,n=0,a=e.text.length;for(const r of e.text.split(/(\s+)/)){if(""!==r&&!/^\s+$/.test(r)){if(n>=t){a=s;break}n++}s+=r.length}const i=e.text.slice(0,a);e.voice_spoken_chars=[...i].length,t=Math.max(0,t-n)}return void this.flushSyncMessageContent()}if(0===e||!this.accumulatedText)return;const t=this.accumulatedText.split(/(\s+)/);let s=0,n=t.length;for(let r=0;r<t.length;r++)if(!/^\s+$/.test(t[r])&&(s++,s===e)){n=r+1;break}const a=t.slice(0,n).join("");this.accumulatedText=a,this.currentTranscript=a;let i=e;for(const r of this.voiceContentBlocks){if("text"!==r.type)continue;const e=r.text.split(/(\s+)/);let t=0,s=e.length;for(let n=0;n<e.length;n++)if(""!==e[n]&&!/^\s+$/.test(e[n])&&(t++,t>i)){s=n;break}r.text=e.slice(0,s).join(""),i=Math.max(0,i-t)}this.flushSyncMessageContent()}freezeKaraokeOnInterrupt(){this.karaokeTickInterval&&(clearInterval(this.karaokeTickInterval),this.karaokeTickInterval=null),this.karaokeWordTimings=[],this.karaokeFirstPtsMs=null,this.karaokeLegWordOffset=0,this.karaokeLegFirstPtsMs=null,setTimeout(()=>{Vg.getState().setIsKaraokeActive(!1)},300)}resetKaraokeState(){this.karaokeTickInterval&&(clearInterval(this.karaokeTickInterval),this.karaokeTickInterval=null),this.karaokeCleanupTimeout&&(clearTimeout(this.karaokeCleanupTimeout),this.karaokeCleanupTimeout=null),this.karaokeWordTimings=[],this.karaokePlaybackStartedAt=null,this.karaokeFirstPtsMs=null,this.turnFirstSampleIdx=null,this.turnSpeechEndedAtMs=null,this.turnLatencyEmitted=!1,this.karaokeLegWordOffset=0,this.karaokeLegFirstPtsMs=null,this.isFlushing||(this.savedFlushKaraoke=null),Vg.getState().resetKaraoke()}wirePlayerStateChange(e){e.setOnStateChange(e=>{"playing"===e&&this.handleFirstAudioPlaying(),"error"===e&&(k.error(w.VOICE_MODE,"[VoiceSession] AudioPlayer terminal decode error \u2014 terminating"),this.debugCallbacksSet.forEach(e=>e.onError?.(new Error("Audio decoder error (terminal)"))),this.setState({status:"error",message:"Audio playback failed.",code:"decode_error"}),this.resetKaraokeState(),this.cleanupInstances())})}handleFirstAudioPlaying(){if(_ue.onFirstAudioRendered(),null===this.turnSpeechEndedAtMs||this.turnLatencyEmitted)return;const e=performance.now()-this.turnSpeechEndedAtMs,t=this.turnLatencyAnchor;if(!Number.isFinite(e)||e<0)return;this.turnLatencyEmitted=!0,this.turnSpeechEndedAtMs=null;const s=Math.round(e);_ue.onPerceivedLatency(s),this.wsClientMetricsReportingEnabled&&this.ws?.sendClientMetrics({client_perceived_latency_ms:s,latency_anchor:t??void 0})}teardownCappedSession(){this.player?.releasePrebuffer();const e=this.player?.getRemainingDuration()??0;if(e>0){const t=Math.min(Math.ceil(1e3*e)+500,15e3);tue(`rate limited \u2014 draining ${t}ms of buffered notice audio before teardown`),this.serverEndDrainTimeout&&clearTimeout(this.serverEndDrainTimeout),this.serverEndDrainTimeout=setTimeout(()=>{this.serverEndDrainTimeout=null,this.resetKaraokeState(),this.cleanupInstances()},t)}else this.resetKaraokeState(),this.cleanupInstances()}completePlaybackEnd(e){"error"!==this.currentState.status&&(this.player?.signalTurnEnd(),this.stopKaraokeTick(),Vg.getState().setIsVoiceStreaming(!1),this.commitCurrentTranscript(),(this.currentTranscript||this.voiceContentBlocks.length>0)&&this.currentMessageUuid&&this.callbacks.onAssistantTurnComplete&&this.callbacks.onAssistantTurnComplete(this.currentTranscript,this.currentMessageUuid,this.lastUserMessageUuid,this.lastUserTranscript,this.voiceContentBlocks.length>0?[...this.voiceContentBlocks]:void 0),this.ws?.signalPlaybackComplete(),this.setState({status:"listening",isMuted:e?.isMuted??!1}),this.lastFinalizedMessageUuid=this.currentMessageUuid,this.handleTurnEnd(),this.callbacks.onRefetchConversationTree?.(),e?.suppressPendingRestart||this.maybeApplyPendingModelRestart())}setState(e){const t=this.currentState.status;if("error"!==t||"idle"===e.status||"connecting"===e.status||"error"===e.status){if(t!==e.status&&(tue(`STATE: ${t} \u2192 ${e.status}`,e),this.onStateTransition(t,e),"processing"!==e.status&&"speaking"!==e.status||(this.userUtteranceInFlight=!1),"error"===e.status&&this.connectInitiated&&Zg(this.conversationUuid),"error"===e.status&&this.resetKaraokeState()),this.currentState=e,"error"===e.status&&bue.has(t)){const e=this.captureSessionUnderruns();null!==e&&this.wsClientMetricsReportingEnabled&&this.ws?.sendClientMetrics({buffer_underrun_count:e})}if(Vg.getState().setState(e),"error"===e.status&&this.debugCallbacksSet.forEach(t=>t.onError?.(new Error(e.message))),t!==e.status){const s="processing"===t||"speaking"===t,n="processing"===e.status||"speaking"===e.status;(s&&!n||"error"===e.status)&&(this.cancelProcessingDebounce(),Vg.getState().setIsVoiceStreaming(!1))}}else tue(`STATE: blocked ${t} \u2192 ${e.status} (terminal error park)`,e)}captureTurnUnderruns(){const e=this.player?.getHealthMetrics().underrunCount;void 0===e||!Number.isFinite(e)||e<0||(_ue.onTurnUnderruns(Math.max(0,e-this.turnUnderrunBaseline)),this.turnUnderrunBaseline=e)}captureSessionUnderruns(){const e=this.player?.getHealthMetrics().underrunCount;return void 0!==e&&Number.isFinite(e)&&e>=0?(_ue.onBufferUnderruns(e),e):null}onStateTransition(e,t){const s=this.conversationUuid??"",{entry_source:n,activation_mode:a,connect_duration_ms:i}=_ue.getSessionStartedPayload(),r=Vg.getState().turnInterruptOutcome;if("listening"===e&&"processing"===t.status&&(this.telemetryTurnCount+=1,this.startPlaybackWatchdog()),"connecting"===e&&"listening"===t.status&&Lie("success",n,void 0,i),"connecting"===e&&"idle"===t.status&&Lie("aborted",n),"speaking"===e&&"listening"===t.status&&(_ue.onPlaybackEnd(),this.captureTurnUnderruns(),Tie(null===r?"success":"aborted",a)),"processing"!==e&&"speaking"!==e||"idle"!==t.status||Tie("aborted",a),"error"===t.status){this.clearTelemetryWatchdogs();const i=t.code??"unknown";if(_ue.onError(function(e){switch(e){case"permission_denied":return"mic_permission";case"no_microphone":case"not_supported":case"device_error":case"mic_silent":case"decode_error":return"audio";case"connection_failed":case"disconnected":return"connection";case"rate_limited":return"rate_limit";case"session_expired":case"overloaded":case"speech_error":case"transcript_error":case"unknown":return"server_temporary";case"idle_timeout":case"length_limit":case"sampling_error":case"internal_error":case"auth_error":case"disabled":case"invalid_request":return"server_fatal"}}(i),i),iue.sessionError({conversationUuid:s,errorCode:i,errorMessage:t.message??"",fromState:e}),"idle"===e||"connecting"===e){Lie("idle"===e&&"permission_denied"===i?"aborted":"failure",n,i)}else"processing"!==e&&"speaking"!==e||Tie("failure",a,i);if(new Set(["connecting","listening","processing","speaking"]).has(e)){const e="rate_limited"===i?"rate_limit":"error";this.recordSessionEnd(e);const t=this.telemetrySessionStartMs?Date.now()-this.telemetrySessionStartMs:0;iue.sessionEnded({conversationUuid:s,durationMs:t,turnCount:this.telemetryTurnCount,endReason:e}),Iie(e,i,t)}}}recordSessionEnd(e){_ue.onSessionEnd(e)}cleanupInstances(){this.serverEndDrainTimeout&&(clearTimeout(this.serverEndDrainTimeout),this.serverEndDrainTimeout=null),this.recorder?.stop(),this.recorder=null,this.player?.dispose(),this.player=null,this.ws?.disconnect(),this.ws=null,this.clearTemporaryErrorTimer&&(clearTimeout(this.clearTemporaryErrorTimer),this.clearTemporaryErrorTimer=null),Mue.releaseMicStream(),this.unsubSpeakerDevice?.(),this.unsubSpeakerDevice=null,this.unsubDeviceChanges?.(),this.unsubDeviceChanges=null,this.unsubRouteChange?.(),this.unsubRouteChange=null,this.unsubVisibility?.(),this.unsubVisibility=null,Vg.getState().setIsVoiceStreaming(!1),this.clearMediaStoreState()}clearMediaStoreState(){const e=Vg.getState();e.setMicStream(null),e.setSpeakerAnalyser(null),e.setMicAnalyser(null),e.setAudioLevel(null)}static TELEMETRY_CONNECTION_TIMEOUT_MS=15e3;static TELEMETRY_MIC_AUDIO_TIMEOUT_MS=5e3;static TELEMETRY_PLAYBACK_TIMEOUT_MS=3e4;resetTelemetryState(){this.telemetrySessionStartMs=Date.now(),this.telemetryTurnCount=0,this.telemetryFirstPlaybackFired=!1,this.telemetryMicAudioReceived=!1,this.clearTelemetryWatchdogs()}clearTelemetryWatchdogs(){this.telemetryConnectionWatchdog&&(clearTimeout(this.telemetryConnectionWatchdog),this.telemetryConnectionWatchdog=null),this.telemetryMicWatchdog&&(clearTimeout(this.telemetryMicWatchdog),this.telemetryMicWatchdog=null),this.telemetryPlaybackWatchdog&&(clearTimeout(this.telemetryPlaybackWatchdog),this.telemetryPlaybackWatchdog=null)}startConnectionWatchdog(){this.telemetryConnectionWatchdog=setTimeout(()=>{this.telemetryConnectionWatchdog=null,"connecting"===this.currentState.status&&(iue.connectionStalled({conversationUuid:this.conversationUuid??"",elapsedMs:this.telemetrySessionStartMs?Date.now()-this.telemetrySessionStartMs:0}),this.silentFailureUxEnabled&&(this.setState({status:"connecting",stalled:!0}),iue.stillConnectingShown({conversationUuid:this.conversationUuid??""})))},Iue.TELEMETRY_CONNECTION_TIMEOUT_MS)}tagAbortReason(e){!this.abortReasonSent&&this.ws?.isConnected()&&(this.abortReasonSent=!0,this.ws.sendClientAbortReason(e))}classifyMicSilentCause(){const e=this.recorder?.getMediaStream()?.getAudioTracks()[0];return e&&"ended"!==e.readyState?e.muted?"mic_track_muted":"suspended"===this.recorder?.getAudioContextState()?"audiocontext_suspended":"mic_zero_chunks":"getusermedia_failed"}startMicAudioWatchdog(){this.telemetryMicAudioReceived=!1;const e=t=>{this.telemetryMicWatchdog=setTimeout(()=>{if(this.telemetryMicWatchdog=null,this.telemetryMicAudioReceived||"idle"===this.currentState.status)return;if(t||(iue.noMicAudio({conversationUuid:this.conversationUuid??"",elapsedMs:Iue.TELEMETRY_MIC_AUDIO_TIMEOUT_MS}),this.enrichedAbortReasons&&this.recorder&&!this.recorder.isMuted()&&!this.isReconnecting&&this.tagAbortReason(this.classifyMicSilentCause())),!this.silentFailureUxEnabled)return;if(!t)return void e(!0);const s=this.currentState.status;!this.recorder||this.recorder.isMuted()||this.isReconnecting||"listening"!==s&&"processing"!==s||(this.tagAbortReason(this.enrichedAbortReasons?this.classifyMicSilentCause():"client_mic_failure"),this.setState({status:"error",message:"No audio is being received from your microphone.",code:"mic_silent"}),iue.micSilentShown({conversationUuid:this.conversationUuid??""}),this.cleanupInstances())},Iue.TELEMETRY_MIC_AUDIO_TIMEOUT_MS)};e(!1)}startPlaybackWatchdog(){this.telemetryPlaybackWatchdog&&clearTimeout(this.telemetryPlaybackWatchdog),this.telemetryPlaybackWatchdog=setTimeout(()=>{this.telemetryPlaybackWatchdog=null,"processing"===this.currentState.status&&iue.noPlaybackReceived({conversationUuid:this.conversationUuid??"",elapsedMs:Iue.TELEMETRY_PLAYBACK_TIMEOUT_MS})},Iue.TELEMETRY_PLAYBACK_TIMEOUT_MS)}}const Tue=new Iue;function Aue(t,s,n){const a=e.useRef(void 0),i=e.useCallback(t,s),r=e.useCallback(()=>{a.current&&window.clearTimeout(a.current),a.current=window.setTimeout(i,n)},[i,n]);return e.useEffect(()=>{if("undefined"!=typeof window)return r(),()=>{a.current&&window.clearTimeout(a.current)}},[...s,i,n]),r}const Eue=["year","month","day","hour","minute","second","millisecond"];function Rue(e,t,{listStyle:s,listType:n,omitZeroUnits:a=!0,padTrailingUnits:i=!1,...r}={}){const o=KS.fromDurationLike(t),l=o.toObject();return e.formatList(Eue.filter(e=>a?0!==o[`${e}s`]:`${e}s`in l).map((t,s)=>e.formatNumber(o[`${t}s`],{...r,...i&&s>0?{minimumIntegerDigits:2}:null,style:"unit",unit:t})),{...r,style:s,type:n})}const Due=({value:e,...t})=>Rue(JS(),e,t),Hue=["Thinking","Sifting","Fathoming","Honing","Weighing","Pondering","Contemplating","Cogitating","Picturing","Musing","Figuring","Reckoning","Mulling","Triangulating","Crystallizing","Sleuthing","Untangling"];function Pue(e){const t=e?Hue.filter(t=>t!==e):Hue;return t[Math.floor(Math.random()*t.length)]}const Uue=fT()((e,t)=>{let s;return{verb:Pue(),activeCount:0,holdCount:0,acquire:()=>{e(e=>({activeCount:e.activeCount+1})),void 0===s&&(e({verb:Pue()}),s=setInterval(()=>{t().holdCount>0||e(e=>({verb:Pue(e.verb)}))},8e3))},release:()=>{const n=Math.max(0,t().activeCount-1);e({activeCount:n}),0===n&&queueMicrotask(()=>{0===t().activeCount&&void 0!==s&&(clearInterval(s),s=void 0)})},holdAcquire:()=>e(e=>({holdCount:e.holdCount+1})),holdRelease:()=>e(e=>({holdCount:Math.max(0,e.holdCount-1)}))}});function Oue(t){const s=Uue(e=>t?e.verb:""),n=Uue(e=>e.acquire),a=Uue(e=>e.release);return e.useEffect(()=>{if(t)return n(),a},[t,n,a]),s}function Fue(t){const s=Uue(e=>e.holdAcquire),n=Uue(e=>e.holdRelease);e.useEffect(()=>{if(t)return s(),n},[t,s,n])}function Vue(e=!0){return Uue(t=>e&&t.holdCount>0)}const zue=AL({enabled:RL(),fallback_summary_debounce_ms:EL(),fallback_summary_min_len:EL(),fallback_summary_max_len:EL(),fallback_summary_regex:IL()}),Zue={enabled:!1,fallback_summary_debounce_ms:2e3,fallback_summary_min_len:50,fallback_summary_max_len:100,fallback_summary_regex:".*(\\n|\\.(\\s|$)|\u3002)"};function Bue(e,t){if(!e)return;const s=(t?GS.fromISO(t):GS.now()).diff(GS.fromISO(e),["hours","minutes","seconds"]);return s.toMillis()<0?YS.fromMillis(0):s}function que(e){return t.jsx("div",{...e,className:"bg-bg-100 text-text-300 border-0.5 border-border-300 flex flex-row gap-1.5 rounded-md p-2 mx-4 mb-4 font-small"})}function Wue(){return t.jsxs(que,{"data-testid":"message-warning",children:[t.jsx(Ft,{className:"shrink-0",size:16}),t.jsx(XS,{defaultMessage:"The rest of the <link>thought process</link> is not available for this response.",id:"G/67Pe5XhQ",values:{link:e=>t.jsx(er,{href:"https://support.anthropic.com/en/articles/10574485-using-extended-thinking-on-claude-3-7-sonnet",className:"underline",target:"_blank",children:e})}})]})}function $ue({text:e,cutOff:s}){return t.jsxs("div",{className:"text-text-300 text-sm font-normal gap-0.5 relative font-claude-response",children:[t.jsx(Ct,{className:"p-3 pt-0 pr-8",text:e}),!0!==s?null:t.jsx(Wue,{})]})}const Gue=e.memo(function({startTimestamp:s,stopTimestamp:n,isStreaming:a=!1}){const[i,r]=e.useState(()=>Bue(s,n));return e.useEffect(()=>{let e;return a&&(e=setInterval(()=>r(Bue(s)),1e3)),()=>clearInterval(e)},[a,s]),i?t.jsx(Due,{value:i,listStyle:"narrow",unitDisplay:"narrow",maximumFractionDigits:0}):null});const Kue=e.memo(function({index:s,text:n,cutOff:a=!1,startTimestamp:i,stopTimestamp:r,isStreaming:o,mostRecentSummary:l,onToggle:c,messageUuid:d,isFirstBlockOfMessage:u,isLastBlockOfMessage:m,renderMode:p=bL.Standard,isFirstItemInGroup:f,isLastItemInGroup:g,conversationUuid:h}){const C=Qa("claudeai_isp_thinking_ux",Zue,zue),x=C.enabled,v=JS(),b=v.formatMessage({defaultMessage:"Thinking",id:"AHQWDTo4+e"}),k=v.formatMessage({defaultMessage:"Thinking...",id:"QrZMdiKa7h"}),w=v.formatMessage({defaultMessage:"Thought process",id:"zl6fNbo7RW"}),M=zm(h),{isExpanded:_,setIsExpanded:j,snappyTransition:S}=KH(!x&&o,String(s),void 0,"idle"!==M),L=ae(),N=e.useRef(!1),[I,T]=e.useState(null),A=Boolean(i&&r&&!N.current),[E,R]=e.useState(()=>{let e=!1;if(A){const t=Bue(i,r);e=!!t&&t.as("milliseconds")>=1e4}return e});e.useEffect(()=>{let e;return o&&(e=setTimeout(()=>R(!0),1e4)),()=>clearTimeout(e)},[o]);const D=e.useRef([]);e.useEffect(()=>{qg(d)&&D.current.length>0&&(D.current.forEach(e=>{L.track({event_key:"claudeai.thinking_cell.clicked",is_opening:e.isOpening,is_streaming:e.wasStreamingWhenClicked,chat_message_uuid:d,timestamp:e.timestamp})}),D.current=[])},[d,L]),e.useEffect(()=>{o&&(N.current=!0)},[o]);const H=o||N.current?C.fallback_summary_debounce_ms:0;Aue(()=>{!o&&n.length>0&&T(function(e,{fallback_summary_min_len:t,fallback_summary_max_len:s,fallback_summary_regex:n}){const a=new RegExp(n),i=e.substring(0,s),r=a.exec(i);if(r)return r[0];for(let o=i.length-1;o>=t;o--)if(/\s/.test(i[o]))return i.substring(0,o+1);return i}(n,C))},[n,o],H);const P=l?.summary,U=Za(h),O=y("claude_ai_thinking_verbs"),F=O&&o&&!P&&!U,V=Oue(F),z=Vue(F);let Z;return Z=U?n:x?o?P??(F?V:k):P??I??k:P??(o?F?V:b:w),t.jsx(yL,{isStreaming:o,shimmerPaused:z,isExpanded:_,setIsExpanded:()=>{const e=(new Date).toISOString();qg(d)?L.track({event_key:"claudeai.thinking_cell.clicked",is_opening:!_,is_streaming:o,chat_message_uuid:d,timestamp:e}):D.current.push({isOpening:!_,wasStreamingWhenClicked:o,timestamp:e}),j(!_)},isFirstBlockOfMessage:u,isLastBlockOfMessage:m,icon:O&&o&&!U?t.jsx(QE,{state:"thinking",size:20,color:"currentColor",className:"!text-brand-200"}):void 0,text:_?w:U||!o&&!N.current?t.jsx("span",{className:x?"text-text-300":"text-left relative text-sm font-claude-response leading-6 whitespace-nowrap text-text-300 text-ellipsis overflow-hidden basis-0 grow min-w-0",children:Z}):t.jsx(nA,{mode:"wait",children:t.jsx(sA.span,{initial:{opacity:0,y:4},animate:{opacity:1,y:0},exit:{opacity:0,y:-4},transition:{duration:.3,ease:"easeIn"},className:x?"text-text-300":"text-left relative text-sm font-claude-response leading-6 whitespace-nowrap text-text-300 text-ellipsis overflow-hidden basis-0 grow min-w-0",children:Z},Z)}),secondaryText:E?t.jsxs("span",{className:"flex items-center gap-1 transition-opacity",children:[t.jsx(at,{className:dt("text-text-300 transition-all duration-300 ease-in-out",o?"opacity-0 scale-50":"opacity-50 scale-100"),size:12}),t.jsx("span",{className:"tabular-nums",children:A?t.jsx(Gue,{startTimestamp:i,stopTimestamp:r}):t.jsx(Gue,{startTimestamp:i,isStreaming:o})})]}):void 0,renderMode:p,isFirstItemInGroup:f,isLastItemInGroup:g,children:t.jsx(kL,{isExpanded:_,snappyTransition:S,onTransitionEnd:c,isScrollable:!0,children:t.jsx($ue,{text:n,cutOff:a})})})});Kue.displayName="ThinkingCell";const Yue=e.memo(function({block:e,isLastBlock:s,isThisMessageStreaming:n}){if(!Cs("empty_your_cup"))return null;if(!("text"===e.type||"connector_text"===e.type||"thinking"===e.type||"tool_use"===e.type))return null;if(!(!n||!s))return null;const a=new Set(e.flags??[]);let i;return a.has("a2")?i=t.jsx(hs,{id:"b86uv7"}):a.has("a1")&&(i=t.jsx(hs,{id:"vf3ov0"})),i?t.jsx("div",{className:"px-1.5 py-0.5 mx-2 my-1 opacity-80 text-xs font-ui bg-danger-900 text-danger-000 rounded border-0.5 border-danger-200 select-none",children:i}):null});function Que(e,t){if("number"!=typeof t)return;const s=Math.max(0,t),n=[...e];return s<n.length?n.slice(0,s).join("").length:void 0}Yue.displayName="FlagMessage";const Jue=e.memo(function({block:s,index:n,nextBlockIsToolResult:a,nextToolResult:i,blocksCount:r,lastTextBlockIndex:o,messageUuid:l,updatedMessageUuid:c,stopReason:d,isStreaming:u,isThisMessageStreaming:p,isLastMessage:f,updatedMessage:g,message:h,onResize:C,conversationUuid:x,shareType:b,onOpenArtifact:k,onOpenWiggleFile:w,presentFiles:M,isLastContentSegment:_=!0,isTrailingSegmentOfMessage:j=!0,...S}){const{renderMode:L,isFirstItemInGroup:N,isLastItemInGroup:I}=S,T=V$(e=>e.setMessageFeatures),A=y("claude_ai_image_search"),E=y("dramatic_shrimp_cobalt"),R=y("claudeai_jade_aperture"),D=Wg(),H=0===n,P=!!r&&n===r-1-(a?1:0),U=P&&j,O=e.useCallback(e=>k?.(e,c),[k,c]),F=e.useCallback(()=>{T(l,{hasLink:!0})},[T,l]),V=e.useCallback(()=>{T(l,{hasCode:!0})},[T,l]),{activeOrganization:z}=v(),Z=HN(),{setIsDrawerExpanded:B}=DN(),q=m(),W=poe(),$=e.useCallback((e,t)=>{if(q){const s=xoe(t);if(s)return e.preventDefault(),void window.location.assign(s);const n=yoe(t);if(n)return e.preventDefault(),void W(n)}if(!t.startsWith("computer://")||!z?.uuid)return;e.preventDefault();const s=decodeURIComponent(t.replace("computer://",""));Z({type:"SELECT_FILE",path:s,toolType:"create_file",messageId:c,entryPoint:"legacy_block_computer_link"}),B(!0)},[z?.uuid,Z,B,c,q,W,b,E,R]),G=aoe(),K=e.useCallback(e=>{z?.uuid&&G(b?{filepaths:e,orgUuid:z?.uuid,snapshotUuid:x,isShared:!0,source:"wiggle_file_card_download_all"}:{filepaths:e,orgUuid:z?.uuid,conversationUuid:x,isShared:!1,source:"wiggle_file_card_download_all"})},[z?.uuid,b,x,G]),Y=e.useCallback(()=>{C?.()},[C]),Q=e.useCallback((e,t,s)=>{w?.(e,l,t,s)},[w,l]),J=e.useCallback(e=>{K?.(e)},[K]),X=u||P&&p&&"max_tokens"===d&&"stop_timestamp"in s&&!!s.stop_timestamp,ee=e.useMemo(()=>{if(A&&"tool_use"===s.type&&"image_search"===s.name){const e=s.input?.num_images??4;return t.jsx(Jde,{toolResult:i,isStreaming:X,numImages:e,conversationUuid:x},n)}switch(s.type){case"thinking":return t.jsx(Kue,{index:n,text:s.thinking,cutOff:s.cut_off,startTimestamp:s.start_timestamp,stopTimestamp:s.stop_timestamp,isStreaming:p&&(!s.stop_timestamp||P&&"max_tokens"===d),mostRecentSummary:s.summaries?.at(-1),messageUuid:c,onToggle:Y,isFirstBlockOfMessage:H,isLastBlockOfMessage:P,renderMode:L,isFirstItemInGroup:N,isLastItemInGroup:I,conversationUuid:x},n);case"tool_use":return t.jsx(Joe,{conversationUuid:x,block:s,message:h,updatedMessage:g,index:n,shareType:b,isStreaming:X,isLastMessage:f,isFirstBlockOfMessage:H,isLastBlockOfMessage:P,renderMode:L||bL.Standard,isFirstItemInGroup:N,isLastItemInGroup:I},n);case"text":case"connector_text":{const e="connector_text"===s.type?s.connector_text:s.text,a="text"===s.type?s.citations:void 0;if(0===n&&""===e)return;if(D&&_&&o===n&&l===Tue.getCurrentMessageUuid())return t.jsx("div",{className:`standard-markdown ${$g}`,children:t.jsx("p",{className:"font-claude-response-body whitespace-normal break-words",children:t.jsx(eue,{text:e,relativeToLastLeg:!0})})});const i=p&&U,r="text"===s.type?function(e,t){const s=Que(e,t);if(void 0===s)return;let n=0,a=0;for(const i of e.split(/(\s+)/)){if(n>=s)break;/^\s+$/.test(i)||a++,n+=i.length}return a}(e,s.voice_spoken_chars):void 0;return void 0!==r?t.jsx("div",{className:`standard-markdown ${$g}`,children:t.jsx("p",{className:"font-claude-response-body whitespace-normal break-words",children:t.jsx(Xde,{text:e,spokenWordCount:r})})}):t.jsxs(t.Fragment,{children:[t.jsx(joe,{text:e,blockCitations:a,messageUuid:l,onLinkDetected:F,onCodeDetected:V,className:i?"progressive-markdown":"standard-markdown",isStreaming:i,onOpenArtifact:O,onLinkClick:$,headingLevelOffset:1}),t.jsx($de,{text:e,onOpen:Q,conversationUuid:x,onDownloadAll:J,shareType:b,presentFiles:P?M:void 0,suppressFiles:M})]})}default:return null}},[s,o,x,X,A,n,H,N,P,_,I,D,f,p,U,h,l,i,V,J,$,F,O,Q,Y,M,L,b,d,g,c]),te=!Yoe(s.type);return t.jsxs(t.Fragment,{children:[te&&null!==ee?t.jsx("div",{"data-find-omitted":"",className:"contents",children:ee}):ee,t.jsx(Yue,{block:s,isLastBlock:n===r-1,isThisMessageStreaming:p})]})});Jue.displayName="Block";const Xue=AL({timeline_artifacts_enabled:RL(),timeline_gsuite_enabled:RL()}),eme={timeline_artifacts_enabled:!1,timeline_gsuite_enabled:!1};const tme=e.memo(function({blocks:s,isStreaming:n,isThisMessageStreaming:a,isLastMessage:i,updatedMessage:r,message:o,onResize:l,conversationUuid:c,shareType:d,onOpenArtifact:u,onOpenWiggleFile:p,skipFileCards:f,isLastContentSegment:g=!0,isTrailingSegmentOfMessage:h=!0}){const C=Qa("claudeai_isp_thinking_ux",eme,Xue),x=e.useMemo(()=>function(e,t){return function(e,t){return"subagent"===t.metadata?.render_hint||!!e.find(e=>"tool_use"===e.type&&"Task"===e.name)}(e,t)?e.filter(e=>!("_isSubagentBlock"in e&&e._isSubagentBlock||"text"!==e.type&&"thinking"!==e.type&&"tool_use"!==e.type&&"tool_result"===e.type)):e}(s,o),[s,o]),v=x.length,y=x.findLastIndex(e=>"text"===e.type),b=o.uuid,k=r.uuid,w=r.stop_reason,M=e.useMemo(()=>x.filter(e=>"tool_use"===e.type&&Da(e.name)).map(e=>e.name),[x]),_=Vu(M),j=m(),S=Gg(),L="ready"===S.state?S.result?.remoteToolsDeviceName:void 0,N=e.useMemo(()=>ooe(j,L,!!d),[j,L,d]),I=e.useMemo(()=>{const e=[],t=new Set;return x.forEach((s,n)=>{if(!t.has(n))if(wL(s,C,N,_)){const a={items:[{block:s,index:n,renderable:ML(s)}],startIndex:n,isLastBlockOfMessage:!1};for(let e=n+1;e<x.length;e++){const s=x[e];if(!wL(s,C,N,_))break;a.items.push({block:s,index:e,renderable:ML(s)}),t.add(e),e===x.length-1&&(a.isLastBlockOfMessage=!0)}const i=a.items.findLastIndex(e=>"tool_use"===e.block.type&&"artifacts"===e.block.name);if(i>=0){const e=a.items[i];a.items=a.items.slice(0,i),t.delete(e.index),a.items.forEach(e=>{"tool_use"===e.block.type&&"artifacts"===e.block.name&&(e.renderable=!1)})}0===a.items.filter(e=>e.renderable).length?e.push({type:"single",content:s,index:n}):e.push({type:"group",content:a,index:n})}else e.push({type:"single",content:s,index:n})}),e},[x,C,N,_]),T=woe(o),A=e.useMemo(()=>{if(!f)return koe(o)},[T,f]);return t.jsx(t.Fragment,{children:I.map(e=>{const s=e.content;if("object"==typeof s&&"type"in s&&"aggregated_image_search"===s.type)return 0!==s.images.length||s.isExpired?t.jsx("div",{"data-find-omitted":"",className:"w-full pb-4 pl-2 pt-4",children:t.jsx(Og,{images:s.images,conversationUuid:c,isExpired:s.isExpired})},`aggregated-image-search-${e.index}`):null;if("object"==typeof s&&"type"in s&&"aggregated_widget"===s.type){const n=Kg.find(e=>e.toolName===s.toolName);return n?t.jsx("div",{"data-find-omitted":"",className:n.className,children:n.render({toolName:s.toolName,input:s.input,result:s.result,toolUseId:s.toolUseId},c,d,a)},s.toolUseId??`aggregated-widget-${s.toolName}-${e.index}`):null}if("group"===e.type){const s=e.content,m=s.items.filter(e=>e.renderable);if(m.length<=1){const s=m[0];if(!s)return null;const f=x[s.index+1],C="tool_use"===s.block.type;return t.jsx(Jue,{block:s.block,index:s.index,nextBlockIsToolResult:"tool_result"===f?.type,nextToolResult:"tool_result"===f?.type?f:void 0,blocksCount:v,lastTextBlockIndex:y,messageUuid:b,updatedMessageUuid:k,stopReason:w,isLastContentSegment:g,isTrailingSegmentOfMessage:h,isLastMessage:i,isStreaming:n,isThisMessageStreaming:a,updatedMessage:C?r:void 0,message:C?o:void 0,onResize:l,conversationUuid:c,shareType:d,onOpenArtifact:u,onOpenWiggleFile:p,presentFiles:A},`block-${e.type}-${e.index}`)}const f=s.items.every(e=>"thinking"===e.block.type||"tool_use"===e.block.type&&"Task"===e.block.name);return t.jsx(_L,{isFirstBlockOfMessage:0===s.startIndex,isLastBlockOfMessage:s.isLastBlockOfMessage,isStreaming:n,defaultExpanded:f,alwaysExpanded:f,children:m.map((e,s)=>{const C=m.length>2&&!f,M=x[e.index+1],_="tool_use"===e.block.type;return t.jsx(Jue,{block:e.block,index:e.index,nextBlockIsToolResult:"tool_result"===M?.type,nextToolResult:"tool_result"===M?.type?M:void 0,blocksCount:v,lastTextBlockIndex:y,messageUuid:b,updatedMessageUuid:k,stopReason:w,isLastContentSegment:g,isTrailingSegmentOfMessage:h,renderMode:bL.TimelineGroup,isFirstItemInGroup:0===s&&!C,isLastItemInGroup:s===m.length-1,isLastMessage:i,isStreaming:n,isThisMessageStreaming:a,updatedMessage:_?r:void 0,message:_?o:void 0,onResize:l,conversationUuid:c,shareType:d,onOpenArtifact:u,onOpenWiggleFile:p,presentFiles:A},e.index)})},`block-${e.type}-${e.index}`)}const m=x[e.index+1],f="tool_use"===e.content.type;return t.jsx(Jue,{block:e.content,index:e.index,nextBlockIsToolResult:"tool_result"===m?.type,nextToolResult:"tool_result"===m?.type?m:void 0,blocksCount:v,lastTextBlockIndex:y,messageUuid:b,updatedMessageUuid:k,stopReason:w,isLastContentSegment:g,isTrailingSegmentOfMessage:h,onResize:l,conversationUuid:c,shareType:d,onOpenArtifact:u,onOpenWiggleFile:p,isThisMessageStreaming:a,isLastMessage:i,updatedMessage:f?r:void 0,message:f?o:void 0,isStreaming:n,presentFiles:A},`block-${e.type}-${e.index}`)})})});function sme(e,t){return(!!e||!t)&&!e?.is_error}function nme(e){return e.startsWith("mcp__Claude_in_Chrome__")||e.startsWith("mcp__claude-in-chrome__")||e.startsWith("mcp__claude_in_chrome__")||e.startsWith("mcp__Claude_for_Chrome__")}function ame(e){try{const t=JSON.parse(e);if("object"==typeof t&&null!==t&&"unavailable"===t.status){const e=t.reason;if("not_connected"===e||"now_connected"===e)return e}}catch{}return null}tme.displayName="MessageBlocksRenderer";const ime=e.memo(function({scopeKey:s,isAgentRunning:n,reason:a,fallback:i}){const r=UG({scopeKey:s,isAgentRunning:n,renderEnabled:!0}),o=HG(e=>e.latch?.at),l=HG(e=>e.setInlinePlacementAt),c=!!r;return e.useLayoutEffect(()=>{c&&void 0!==o&&l(o)},[c,o,l]),r?t.jsx(ome,{state:r,reason:a}):t.jsx(t.Fragment,{children:i})}),rme=e.memo(function(e){const s=Km(e.conversationUuid);return t.jsx(ime,{scopeKey:e.conversationUuid,isAgentRunning:s,reason:e.reason,fallback:e.fallback})}),ome=e.memo(function({state:s,reason:n}){const a=JS(),{partnerName:i,iconDataUri:r,paired:o,pairStatus:l,pairError:c,connect:d,dismiss:u}=s,m="connected"===l||o&&"now_connected"===n,[p,f]=e.useState(!1);e.useEffect(()=>{f(!1)},[r]);const g=e.useCallback(()=>{d()},[d]),h={partnerName:i};return t.jsxs("div",{className:"font-ui my-3 overflow-hidden rounded-2xl border bg-surface-3 shadow-sm","data-testid":"dusty-gondola-inline",children:[t.jsxs("div",{className:"flex items-center gap-3 border-b-0.5 px-4 py-3",children:[r&&!p?t.jsx("img",{src:r,alt:"",className:"size-5 shrink-0",onError:()=>f(!0)}):t.jsx($L,{name:"Lock",size:"md",className:"shrink-0 text-secondary"}),t.jsx("div",{className:"min-w-0 flex-1 truncate text-body text-primary",children:t.jsx(hs,{id:m?"99jev3":"1qa56ut",dangerouslyVisiblePublicValues:h})}),t.jsx("button",{type:"button",onClick:u,className:"-m-1 shrink-0 rounded p-1 text-muted transition-colors hover:bg-alpha-2","aria-label":a.formatMessage({defaultMessage:"Dismiss",id:"TDaF6JVgG6"}),children:t.jsx($L,{name:"X",size:"md"})})]}),t.jsxs("div",{className:"px-4 py-3 text-body text-secondary",children:[t.jsx(hs,{id:m?"rsak2j":"1yqmwkl",dangerouslyVisiblePublicValues:h}),"error"===l&&t.jsx("div",{className:"mt-2 text-danger",children:t.jsx(hs,{id:"rateLimited"===c?"l2zw5x":"1q21zfp",dangerouslyVisiblePublicValues:h})})]}),!m&&t.jsx("div",{className:"flex items-center justify-end gap-2 border-t-0.5 px-4 py-3",children:t.jsx(rN,{variant:"primary",size:"sm",busy:"connecting"===l,onClick:g,children:t.jsx(hs,{id:"1goviel",dangerouslyVisiblePublicValues:h})})})]})});const lme=e.memo(function({icon:e,title:s,onDismiss:n,footer:a,children:i}){const r=JS();return t.jsxs("div",{className:"my-3 overflow-hidden rounded-2xl border border-border-300 bg-bg-000 font-ui shadow-[0_4px_20px_0_hsl(var(--always-black)/4%)]",children:[t.jsxs("div",{className:"flex h-11 items-center gap-2 border-b-0.5 border-border-300 px-4",children:[t.jsx("span",{className:"shrink-0 text-text-300 [&_svg]:size-5",children:e}),t.jsx("div",{className:"min-w-0 flex-1 truncate text-sm text-text-100",children:s}),n&&t.jsx("button",{type:"button",onClick:n,className:"-m-1 shrink-0 rounded p-1 text-text-500 transition-colors hover:bg-bg-300","aria-label":r.formatMessage({defaultMessage:"Dismiss",id:"TDaF6JVgG6"}),children:t.jsx($L,{name:"X",size:"md"})})]}),t.jsx("div",{className:"max-h-96 overflow-y-auto",children:i}),a&&t.jsx("div",{className:"border-t-0.5 border-border-300 px-4 py-3 text-xs text-text-400",children:a})]})});lme.displayName="SuggestionCard";const cme=fT()(e=>({inFlightConversations:new Set,start:t=>e(e=>{if(e.inFlightConversations.has(t))return e;const s=new Set(e.inFlightConversations);return s.add(t),{inFlightConversations:s}}),end:t=>e(e=>{if(!e.inFlightConversations.has(t))return e;const s=new Set(e.inFlightConversations);return s.delete(t),{inFlightConversations:s}})}));const dme="suggest_research";function ume(e){try{const t=JSON.parse(e);if(!t||"object"!=typeof t||!0!==t.suggest)return null;const s=t.rationale;return{suggest:!0,rationale:"string"==typeof s?s.slice(0,400):void 0}}catch{return null}}function mme(e){return!!e?.content?.some(e=>("tool_use"===e.type||"tool_result"===e.type)&&"name"in e&&"launch_extended_search_task"===e.name)}function pme({rationale:s,message:n,conversationUuid:a,isStreaming:i}){const r=JS(),{track:o}=ae(),{sendTransparentMessage:l}=J(),c=eoe(),d=c.shouldHide||c.disabled||c.isModelIncompatible||c.checked,[u,m]=e.useState(!1),[p,f]=e.useState(null),g=Ce(e=>{const t=e.pathUuidsByConversation[a];return t?.[t.length-1]}),h=Ce(e=>{const t=e.pathUuidsByConversation[a];if(!t)return!1;const s=t.indexOf(n.uuid);if(s<0)return!1;for(let n=s+1;n<t.length;n++)if(mme(e.messageByUuid[t[n]]))return!0;return!1}),C=g===n.uuid,x="sending"===p?.state,v="settled"===p?.state&&!h&&void 0!==g&&void 0!==p.leafAtSettle&&En(g)===En(p.leafAtSettle),y=!h&&!x&&!i&&(C||v),b=e.useRef(!1);e.useEffect(()=>{b.current||d||!y||(b.current=!0,o({event_key:"claudeai.research.suggestion.viewed"}))},[o,d,y]);const k=cme(e=>e.start),w=cme(e=>e.end),M=e.useCallback(async()=>{o({event_key:"claudeai.research.suggestion.start_clicked",is_retry:g!==n.uuid}),f({state:"sending"}),k(a);try{await(l?.("Start the research",{compassSuggestionAccept:{parentMessageUuid:En(n.uuid)}}))}catch{}finally{w(a);const e=Ce.getState().pathUuidsByConversation[a];f({state:"settled",leafAtSettle:e?.[e.length-1]})}},[o,g,n.uuid,k,w,a,l]),_=e.useCallback(()=>{o({event_key:"claudeai.research.suggestion.dismissed"}),m(!0)},[o]);if(d||u)return null;const j=!(y||x||i||h),S=t.jsx(gN,{reason:j?r.formatMessage({defaultMessage:"This suggestion is out of date. Research is still available from the tools menu.",id:"I3KF7PWHG5"}):void 0,children:t.jsx(rN,{variant:"primary",onClick:()=>{M()},disabled:!y,children:x?t.jsx(XS,{defaultMessage:"Starting research\u2026",id:"JivSpeEYQW"}):h?t.jsx(XS,{defaultMessage:"Research started",id:"Zeu6A7cahd"}):t.jsx(XS,{defaultMessage:"Start research",id:"0ALbfGCpyV"})})});return t.jsx(lme,{icon:t.jsx($L,{name:"Research",size:"md"}),title:r.formatMessage({defaultMessage:"Research",id:"JEe7dVso7F"}),onDismiss:_,children:t.jsxs("div",{className:"flex items-center gap-3 px-4 py-3",children:[s&&t.jsx("div",{className:"min-w-0 flex-1 text-body text-secondary",children:s}),t.jsxs("div",{className:"flex shrink-0 flex-col items-center gap-1",children:[S,t.jsx("span",{className:"whitespace-nowrap text-caption text-muted",children:t.jsx(XS,{defaultMessage:"(5\u201310 minutes)",id:"9OKqpdanRw"})})]})]})})}const fme=e.memo(function({toolResult:s,message:n,conversationUuid:a,shareType:i,isStreaming:r}){const o=e.useMemo(()=>ume(s),[s]);return!i&&o&&n?.uuid?t.jsx(pme,{rationale:o.rationale,message:n,conversationUuid:a,isStreaming:r}):null});fme.displayName="StartResearchCell";const gme=e.memo(({dataUrl:s,className:n="",coordinates:a,onClick:i})=>{const r=JS(),o=e.useRef(null),[l,c]=e.useState(1);e.useEffect(()=>{const e=()=>{if(o.current&&a){const{width:e,height:t,naturalWidth:s,naturalHeight:n}=o.current;if(0===s||0===n)return;const a=e/s,i=t/n;c(Math.min(a,i))}},t=o.current;if(t&&a){if(!t.complete)return t.addEventListener("load",e),()=>t.removeEventListener("load",e);e()}},[s,a]);return t.jsxs("button",{onClick:e=>{e.stopPropagation(),i?.(e)},className:`relative flex-shrink-0 w-9 h-7 rounded border border-border-300 hover:border-border-200 hover:rotate-2 transition-all duration-150 ease-out hover:shadow-sm overflow-hidden ${n}`,title:r.formatMessage({defaultMessage:"Click to view full screenshot",id:"LWiiXht89U"}),children:[t.jsx("img",{ref:o,src:s,alt:r.formatMessage({defaultMessage:"Screenshot thumbnail",id:"/oSRHC9/hb"}),className:"w-full h-full object-cover",loading:"lazy",decoding:"async"}),a&&t.jsx("div",{className:"absolute pointer-events-none rounded-full border border-brand-100 w-1.5 h-1.5 bg-brand-100",style:{left:a[0]*l+"px",top:a[1]*l+"px",transform:"translate(-50%, -50%)"}})]})});gme.displayName="ToolImageThumbnailPreview";const hme={COLLAPSE_EXPAND:.2,FADE:.15},Cme={EASE_OUT:"easeOut",SNAPPY_OUT:[.19,1,.22,1]},xme="duration-150",vme=e.createContext({}),yme=s=>{const[n,a]=e.useState(void 0),i=e.useMemo(()=>({expandedItemKey:n,setExpandedItemKey:a,hasCollapseHeader:s.hasCollapseHeader}),[n,a,s.hasCollapseHeader]);return t.jsx(vme.Provider,{value:i,children:s.children})};var bme=(e=>(e.Standard="Standard",e.TimelineGroup="TimelineGroup",e))(bme||{});const kme=e.memo(({icon:s,header:n,isExpanded:a,isFirstItem:i,isLastItem:r,isActive:o,showDotFallback:l=!0,children:c})=>{const{hasCollapseHeader:d}=e.useContext(vme),u=!d&&i;return t.jsxs("div",{className:"flex flex-col shrink-0",children:[t.jsx("div",{className:"flex flex-row h-[8px]",children:t.jsx("div",{className:"w-[20px] flex justify-center",children:t.jsx("div",{className:Bt("w-[1px] h-full",xme,{"bg-border-300":!u})})})}),t.jsxs("div",{className:Bt("transition-colors rounded-lg",xme,{"bg-bg-000":a}),children:[n&&t.jsxs("div",{className:"flex flex-row items-center py-1",children:[t.jsx("div",{className:"w-[20px] flex justify-center shrink-0 text-text-500",children:s??(l&&t.jsx("div",{className:"size-[8px] rounded-full bg-border-100 mt-0.5"}))}),t.jsx("div",{className:"flex-1 min-w-0",children:n})]}),c&&t.jsxs("div",{className:"flex flex-row",children:[t.jsx("div",{className:"w-[20px] flex justify-center shrink-0",children:n?t.jsx("div",{className:Bt("w-[1px] h-full",xme,{"bg-border-300":!r})}):t.jsxs("div",{className:"flex flex-col items-center pt-1",children:[s??(l&&t.jsx("div",{className:"size-[8px] rounded-full bg-border-100 mt-0.5"})),t.jsx("div",{className:Bt("w-[1px] flex-1 mt-1",xme,{"bg-border-300":!(l&&r)})})]})}),t.jsx("div",{className:"flex-1 min-w-0",children:c})]})]}),t.jsx("div",{className:"flex flex-row h-[8px]",children:t.jsx("div",{className:"w-[20px] flex justify-center",children:t.jsx("div",{className:Bt("w-[1px] h-full",xme,{"bg-border-300":!r})})})})]})},(e,t)=>e.isActive===t.isActive&&(!t.isActive&&(e.icon===t.icon&&e.header===t.header&&e.children===t.children&&e.isExpanded===t.isExpanded&&e.isFirstItem===t.isFirstItem&&e.isLastItem===t.isLastItem&&e.showDotFallback===t.showDotFallback)));kme.displayName="TimelineGroupItem";const wme=e.memo(({handleClick:s,href:n,isDisabled:a,isExpanded:i,isStreaming:r,icon:o,text:l,secondaryText:c,isFirstBlockOfMessage:d,isLastBlockOfMessage:u,className:m,wrapperClassName:p,children:f,renderMode:g=bme.Standard,isFirstItemInGroup:h,isLastItemInGroup:C,secondaryElement:x,secondaryIcon:v,hideCaret:y})=>{const b=a||!s&&!n,k=Bt("group/row flex flex-row items-center rounded-lg px-2.5 w-full",x?"gap-2":"justify-between",g!==bme.TimelineGroup&&(x?"py-1":"py-2"),"text-text-300",b?"!cursor-default":"cursor-pointer transition-colors duration-200 hover:text-text-200 hover:text-text-000",m),w=t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"flex flex-row items-center gap-2 min-w-0 flex-1",children:[o&&g!==bme.TimelineGroup&&t.jsx("div",{className:"flex items-center justify-center text-text-500 shrink-0",children:o}),t.jsx("div",{className:Bt("text-body text-text-500 text-left truncate",!x&&"w-0 flex-grow"),children:r?t.jsx(Yg,{children:l}):l}),x&&t.jsx("div",{className:"flex items-center shrink-0 ml-2",children:x})]}),t.jsxs("div",{className:"flex flex-row items-center gap-1.5 shrink-0",children:[!!c&&t.jsx("p",{className:"pl-1 text-text-500 font-small shrink-0 whitespace-nowrap",children:c}),v&&t.jsx("span",{className:"inline-flex",children:v}),!b&&!y&&!v&&t.jsx("span",{className:Bt("inline-flex transition-transform",xme,i?"rotate-180":"rotate-0"),children:t.jsx(sP,{className:"text-text-300",size:16})})]})]}),M=e.useCallback(e=>{s&&(e.preventDefault(),s())},[s]),_=n?t.jsx("a",{href:n,target:"_blank",rel:"noopener noreferrer",className:k,onClick:s?M:void 0,children:w}):t.jsx("button",{onClick:b?void 0:s,"aria-expanded":i,className:k,children:w}),j=t.jsxs(t.Fragment,{children:[_,f]});return g===bme.TimelineGroup?t.jsx(kme,{icon:o,header:_,isExpanded:i,isFirstItem:!!h,isLastItem:!!C,isActive:r&&u&&C,showDotFallback:!1,children:f}):t.jsx("div",{className:Bt("ease-out rounded-lg border-[0.5px] flex flex-col font-ui leading-normal my-3 border-border-300",!a&&!i&&"hover:bg-bg-200",d?"mt-2":"mt-3",u?"mb-2":"mb-3",i&&"bg-bg-000 shadow-sm",p),children:j})});wme.displayName="ToolUseRow";e.memo(({isExpandingDisabled:s,setIsExpanded:n,...a})=>{const{isExpanded:i}=a,r=e.useCallback(()=>{n(!i)},[i,n]);return t.jsx(wme,{...a,isDisabled:s,handleClick:s?void 0:r})}).displayName="CollapsibleToolUseRow";const Mme=({color:e="default",size:s="default",children:n,className:a,uppercase:i,truncate:r})=>t.jsx("span",{className:Dt("inline-flex items-center align-middle leading-tight",!r&&"flex-shrink-0",r&&"max-w-full","default"===e&&"bg-gradient-to-bl  from-bg-500/30  to-bg-500/70 text-text-300","flat"===e&&"bg-bg-500/40 text-text-200","secondary"===e&&"bg-accent-900/40 text-accent-200","pro"===e&&"bg-gradient-to-bl  from-accent-pro-200  to-accent-pro-100  text-oncolor-100","main"===e&&"bg-gradient-to-bl  from-brand-200/70  to-brand-100  text-oncolor-100","danger"===e&&"bg-danger-900 text-danger-200","default"===s&&"h-5 px-1.5 rounded-md text-[0.625rem]","sm"===s&&"h-4 px-1 rounded-[4px] text-[0.625rem]","lg"===s&&"h-6 px-2 rounded-lg text-xs",i&&"uppercase",a),children:r?t.jsx("span",{className:"truncate",children:n}):n}),_me=t.jsx(Qg,{size:16,className:"text-text-500"});const jme=e.memo(({input:s,toolResult:n,isStreaming:a,renderMode:i=bme.Standard,isFirstBlockOfMessage:r,isLastBlockOfMessage:o,isFirstItemInGroup:l,isLastItemInGroup:c,renderCode:d})=>{const u=JS(),[m,p]=e.useState(!1),f=s?.command||"",g=s?.description,h=n?.is_error||!1,C=e.useMemo(()=>function(e,t){if(!e)return null;let s=null;if("string"==typeof e.content)s=e.content;else if(Array.isArray(e.content)&&e.content.length>0){const t=e.content[0];s="text"===t?.type?t.text:null}if(!s)return null;if(t)return{content:s,isStderr:!0};try{const e=JSON.parse(s);return e.stdout&&e.stdout.length>0?{content:e.stdout,isStderr:!1}:e.stderr&&e.stderr.length>0?{content:e.stderr,isStderr:!0}:"number"==typeof e.returncode?{content:`exit code ${e.returncode}`,isStderr:!1}:null}catch{return{content:s,isStderr:!1}}}(n,h),[n,h]),x=!!n||!a,v=g||(x&&!h?u.formatMessage({defaultMessage:"Ran command",id:"7wfH9c0vlv"}):u.formatMessage({defaultMessage:"Running command",id:"/GXAvJ98t+"})),y=C?.content??null,b=h||(C?.isStderr??!1),k=d||((e,s)=>t.jsxs("div",{className:"p-3 rounded-md "+(s?.isError?"bg-danger-900":"bg-bg-100"),children:[s?.title&&t.jsx("p",{className:"text-text-300 text-[0.6875rem] font-medium mb-2",children:s.title}),t.jsx("pre",{className:"text-xs whitespace-pre-wrap overflow-x-auto "+(s?.isError?"text-danger-000":"text-text-300"),children:t.jsx("code",{children:e})})]})),w=e.useCallback(()=>{p(e=>!e)},[]);return t.jsx(wme,{icon:_me,text:v,isStreaming:!x,hideCaret:!0,handleClick:w,renderMode:i,isFirstBlockOfMessage:r,isLastBlockOfMessage:o,isFirstItemInGroup:l,isLastItemInGroup:c,children:f&&t.jsxs("div",{className:"mx-2.5 mt-1 mb-2",children:[!m&&t.jsx("button",{onClick:()=>p(!0),className:Bt("flex items-center transition-colors cursor-pointer",b?"text-danger-000 hover:text-danger-100":"text-text-500 hover:text-text-200"),children:t.jsx(Mme,{color:b?"danger":"flat",size:"default",className:Bt(!b&&"!text-inherit"),children:u.formatMessage({defaultMessage:"Script",id:"cxkY9nyTFY"})})}),t.jsx(nA,{children:m&&t.jsx(sA.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{ease:Cme.SNAPPY_OUT,duration:hme.COLLAPSE_EXPAND},className:"overflow-hidden",children:t.jsx("div",{onClick:()=>p(!1),className:"rounded-lg border-[0.5px] border-border-300 bg-bg-000 cursor-pointer",children:t.jsxs("div",{className:"p-2 flex flex-col gap-2 max-h-[200px] overflow-y-auto [&_pre]:!text-xs [&_code]:!text-xs",children:[k(f,{language:"bash"}),y&&k(y,{title:u.formatMessage({defaultMessage:"Output",id:"fio5opLcOZ"}),isError:b})]})})},"bash-expanded")})]})})}),Sme=t.jsx(XP,{size:16}),Lme=e.memo(({status:s,isFirstItemInGroup:n,isLastItemInGroup:a,onVisibilityChange:i})=>{const r=JS(),[o,l]=e.useState(null),c=e.useRef(null),d=e.useRef(0),u=null!==o;if(e.useEffect(()=>{i?.(u)},[u,i]),e.useEffect(()=>{if("compacting"===s){c.current=Date.now(),d.current=0,l(0);let e=0;const t=setInterval(()=>{if(c.current){const t=(Date.now()-c.current)/1e3,s=Math.min(95,100*(1-Math.exp(-t/25)));e=Math.max(e,Math.round(s)),d.current=e,l(e)}},100);return()=>clearInterval(t)}if("complete"===s){c.current=null;const e=d.current,t=Date.now(),s=setInterval(()=>{const n=Date.now()-t,a=Math.min(1,n/300),i=Math.round(e+(100-e)*(1-Math.pow(1-a,2)));d.current=i,l(i),a>=1&&clearInterval(s)},16),n=setTimeout(()=>{l(null),d.current=0},1e3);return()=>{clearInterval(s),clearTimeout(n)}}"failed"!==s&&s||(l(null),d.current=0)},[s]),null===o)return null;const m=r.formatMessage({defaultMessage:"Compacting our conversation so we can keep chatting...",id:"TtfNhgtojm"}),p=r.formatMessage({defaultMessage:"{progress}%",id:"LI4B/nslxi"},{progress:o}),f="compacting"===s,g=f?r.formatMessage({defaultMessage:"in progress",id:"NhDwgxRh3k"}):r.formatMessage({defaultMessage:"complete",id:"O+Eoe+02IC"});return t.jsx(kme,{icon:Sme,header:t.jsxs("div",{className:"flex flex-row items-center gap-3 rounded-lg px-2.5",children:[t.jsx("span",{className:"font-base text-text-500 truncate",children:f?t.jsx(Yg,{children:m}):m}),t.jsx("span",{className:"sr-only",children:g}),t.jsx("span",{"aria-hidden":"true",className:"font-small text-text-300 shrink-0 whitespace-nowrap tabular-nums",children:p})]}),isFirstItem:!!n,isLastItem:!!a,isActive:f,showDotFallback:!1})});Lme.displayName="CompactionTimelineCell";const Nme={js:"javascript",jsx:"javascript",ts:"typescript",tsx:"typescript",py:"python",rb:"ruby",java:"java",c:"c",cpp:"cpp",h:"c",hpp:"cpp",cs:"csharp",go:"go",rs:"rust",php:"php",swift:"swift",kt:"kotlin",scala:"scala",html:"html",css:"css",scss:"scss",less:"less",json:"json",xml:"xml",yaml:"yaml",yml:"yaml",md:"markdown",sql:"sql",sh:"bash",bash:"bash",zsh:"bash",ps1:"powershell",dockerfile:"dockerfile"},Ime=e.memo(({action:s,path:n,fileText:a,displayText:i,displayFileName:r,icon:o,iconSize:l=16,isStreaming:c,isComplete:d=!1,renderMode:u=bme.Standard,isFirstBlockOfMessage:m,isLastBlockOfMessage:p,isFirstItemInGroup:f,isLastItemInGroup:g,renderCode:h,handleClick:C})=>{const x=JS(),v=Gl(n),y=Jg(n)?x.formatMessage({defaultMessage:"Global instructions",id:"53DiPrdI5r"}):x.formatMessage({defaultMessage:"Folder instructions",id:"dqW6sjmil4"}),b=r??("CLAUDE.md"===v?`${y} (CLAUDE.md)`:v),k=(e=>{const t=e.split(".").pop()?.toLowerCase()||"";return Nme[t]||"text"})(n),w=i||((e,t,s,n)=>{switch(e){case"create":return s?n.formatMessage({defaultMessage:"Creating {fileName}",id:"cuaMuzr//N"},{fileName:t}):n.formatMessage({defaultMessage:"Created {fileName}",id:"5CvLCHBlfQ"},{fileName:t});case"read":return s?n.formatMessage({defaultMessage:"Reading {fileName}",id:"9fXfauBZpW"},{fileName:t}):n.formatMessage({defaultMessage:"Read {fileName}",id:"bApErctxyt"},{fileName:t});case"edit":return s?n.formatMessage({defaultMessage:"Editing {fileName}",id:"O2hMrU1FI9"},{fileName:t}):n.formatMessage({defaultMessage:"Edited {fileName}",id:"V+jPyROpXb"},{fileName:t});case"present":return s?n.formatMessage({defaultMessage:"Presenting file(s)...",id:"Lkp0F6AHBT"}):n.formatMessage({defaultMessage:"Presented file(s)",id:"YD+KHgvA3S"});case"skill":return s?n.formatMessage({defaultMessage:"Loading skill",id:"YBctaBAMh/"}):n.formatMessage({defaultMessage:"Loaded skill",id:"/ly4NRQA83"});default:return t}})(s,b,!(d||!c),x),M=o||((e,s,n=16)=>s.includes("SKILL.md")||"skill"===e?t.jsx(Xg,{size:n,className:"text-text-500"}):t.jsx(aU,{size:n,className:"text-text-500"}))(s,n,l),_=a&&!d,j=c&&!d,[S,L]=e.useState(!d),N=e.useRef(null);return e.useEffect(()=>(N.current&&(clearTimeout(N.current),N.current=null),d?N.current=setTimeout(()=>{L(!1)},100):L(!0),()=>{N.current&&clearTimeout(N.current)}),[d]),t.jsxs(wme,{icon:M,text:t.jsx("span",{className:"truncate",children:w}),isStreaming:j,hideCaret:!0,handleClick:C,renderMode:u,isFirstBlockOfMessage:m,isLastBlockOfMessage:p,isFirstItemInGroup:f,isLastItemInGroup:g,children:[("create"===s||"edit"===s)&&a&&t.jsxs("div",{children:[S&&t.jsx("div",{className:Bt("grid transition-[grid-template-rows,opacity] duration-100 ease-out mx-2.5 mt-1 mb-2",d?"grid-rows-[0fr] opacity-0 pointer-events-none":"grid-rows-[1fr] opacity-100"),children:t.jsx("div",{className:"overflow-hidden min-h-0",children:t.jsx("div",{className:"border-[0.5px] border-border-300 rounded-xl overflow-hidden bg-bg-000/30 text-xs",children:t.jsx(uH,{className:"max-h-[150px] overflow-y-auto",noDefaultScroll:!c,children:h?h(a,k):t.jsx("pre",{className:"p-3 text-text-300 whitespace-pre-wrap overflow-x-auto",children:t.jsx("code",{children:a})})})})})}),d&&t.jsx("button",{onClick:C,disabled:!C,className:Bt("transition-colors text-text-500 mx-2.5 mt-1",C?"cursor-pointer hover:text-text-200":""),children:t.jsx(Mme,{color:"flat",size:"default",className:"!text-inherit",children:b})})]}),r&&"create"!==s&&"edit"!==s&&d&&t.jsx("div",{className:"mx-2.5 mt-1 flex items-center gap-2",children:t.jsx("button",{onClick:C,disabled:!C,className:Bt("flex items-center transition-colors text-text-500",C?"cursor-pointer hover:text-text-200":""),children:t.jsx(Mme,{color:"flat",size:"default",className:"!text-inherit",children:b})})}),"create"!==s&&"edit"!==s&&_&&t.jsx(sA.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},transition:{ease:"easeOut",duration:.3},className:"overflow-hidden",children:t.jsx("div",{className:"border-[0.5px] border-border-300 rounded-xl mx-2.5 mt-1 mb-2 overflow-hidden bg-bg-000/30",children:t.jsx(uH,{className:"max-h-[150px] overflow-y-auto",noDefaultScroll:!c,children:h?h(a,k):t.jsx("pre",{className:"p-3 text-sm text-text-300 whitespace-pre-wrap overflow-x-auto",children:t.jsx("code",{children:a})})})})})]})}),Tme={copyright_access:e=>e?`By continuing, you confirm you have the right to access content on ${e}.`:"By continuing, you confirm you have the right to access content on this site."},Ame=/^[a-z0-9]([a-z0-9-]{0,62}\.)+([a-z]{2,}|xn--[a-z0-9-]{2,})$/i,Eme=Object.freeze([]);function Rme(e){return`${e.kind}:${e.domain??""}`}function Dme(e){const t=e,s=t?._meta?.notices??t?.meta?.notices;if(!Array.isArray(s))return Eme;const n=new Map;for(const a of s){if(n.size>=4)break;if("object"!=typeof a||null===a)continue;const{kind:e,domain:t}=a;if("string"!=typeof e||!Object.hasOwn(Tme,e))continue;let s;if(void 0!==t){if("string"!=typeof t)continue;if(s=t.toLowerCase().replace(/\.$/,""),s.length>253||!Ame.test(s))continue}const i={kind:e,domain:s};n.set(Rme(i),i)}return n.size>0?Array.from(n.values()):Eme}function Hme(e){return e.toLowerCase().replace(/-/g,"_").startsWith("mcp__claude_in_chrome__")}const Pme=e.memo(function({notices:e}){return y("claude_ai_tool_result_notices_disabled")||0===e.length?null:t.jsx("div",{className:"mx-2.5 mt-1",children:e.slice(0,6).map(e=>t.jsxs("div",{className:"mb-1.5 flex items-start gap-2 rounded-md border border-border-300 bg-bg-200 px-2.5 py-2 text-xs text-text-200",role:"note",children:[t.jsx(Ft,{size:14,className:"mt-px shrink-0 text-text-300"}),t.jsx("span",{children:Tme[e.kind](e.domain)})]},Rme(e)))})}),Ume=e=>{const t=(e=>{const t=tc(e);if(t)return t.toolName;const s=e.split("__");if(s.length>=3&&s[2])return s[2];const n=e.split(":");return n.length>=2?n[n.length-1]:e.startsWith("mcp__")?rh(e):e})(e);return(t.includes("_")?t:t.replace(/([a-z])([A-Z])/g,"$1_$2")).split("_").map((e,t)=>0===t?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():e.toLowerCase()).join(" ")},Ome={device_bash:Qg,device_stage_files:ZP,device_commit_files:aU,device_list_dir:Hg,list_devices:eU,get_device_info:eU},Fme=e.memo(({toolName:s,toolDisplayName:n,toolResult:a,renderMode:i=bme.Standard,isFirstBlockOfMessage:r,isLastBlockOfMessage:o,isFirstItemInGroup:l,isLastItemInGroup:c,isStreaming:d,icon:u,iconSize:m=16,integrationIconUrl:p,iconName:f,integrationName:g,children:h,secondaryText:C,renderResult:x,renderRequest:v,isError:y})=>{const b=JS(),[k,w]=e.useState(!1),[M,_]=e.useState(!1),j=n||Ume(s),S=e.useMemo(()=>Hme(s)?Dme(a):[],[s,a]),L=!!a||!d,N=!!x,I=!!v,T=e.useCallback(()=>{w(e=>!e)},[]),A=e.useMemo(()=>{if(u)return u;const e=f?((e,s=16)=>{switch(e){case"globe":return t.jsx(oU,{size:s,className:"text-text-500"});case"codeBlock":return t.jsx(JP,{size:s,className:"text-text-500"});case"commandLine":return t.jsx(Qg,{size:s,className:"text-text-500"});case"bookText":return t.jsx(ZP,{size:s,className:"text-text-500"});case"file":return t.jsx(aU,{size:s,className:"text-text-500"});case"edit":return t.jsx(iR,{size:s,className:"text-text-500"});case"search":return t.jsx(ih,{size:s,className:"text-text-500"});case"tasks":return t.jsx(xU,{size:s,className:"text-text-500"});case"agent":return t.jsx(FP,{size:s,className:"text-text-500"});case"lightbulb":return t.jsx(cU,{size:s,className:"text-text-500"});case"memory":return t.jsx(ah,{size:s,className:"text-text-500"});case"projects":return t.jsx(is,{size:s,className:"text-text-500"});case"artifacts":return t.jsx(oh,{size:s,className:"text-text-500"});case"connectorSmall":return t.jsx(tU,{size:s,className:"text-text-500"});default:return null}})(f,m):null;if(e)return e;const n=((e,s=16)=>{switch(e){case"TaskCreate":case"TaskUpdate":case"TaskGet":case"TaskList":case"TaskStop":return t.jsx(xU,{size:s,className:"text-text-500"})}const n=e.startsWith("mcp__remote-devices__")?e.slice(21):e;if(Object.hasOwn(Ome,n)){const e=Ome[n];return t.jsx(e,{size:s,className:"text-text-500"})}if(!e.startsWith("mcp__")&&!e.includes(":")){if(sc(e))return t.jsx(vU,{size:s,className:"text-text-500"});if(eh(e)||ic(e))return t.jsx(th,{size:s,className:"text-text-500"});if(sh(e)||lc(e))return t.jsx(Xg,{size:s,className:"text-text-500"})}const a=nh(e);switch(a){case"bash":case"bash_tool":return t.jsx(Qg,{size:s,className:"text-text-500"});case"read":return t.jsx(ZP,{size:s,className:"text-text-500"});case"edit":case"str_replace":case"str_replace_editor":return t.jsx(iR,{size:s,className:"text-text-500"});case"write":case"create_file":case"open_file":case"update_file":return t.jsx(aU,{size:s,className:"text-text-500"});case"glob":case"grep":case"tool_search":return t.jsx(ih,{size:s,className:"text-text-500"});case"repl":return t.jsx(JP,{size:s,className:"text-text-500"});case"web_search":case"web_fetch":return t.jsx(oU,{size:s,className:"text-text-500"});case"todo_write":return t.jsx(xU,{size:s,className:"text-text-500"});case"task":case"agent":return t.jsx(FP,{size:s,className:"text-text-500"});case"ask_user_question":return t.jsx(cU,{size:s,className:"text-text-500"});case"recent_chats":case"conversation_search":case"project_memory_read":case"project_memory_write":return t.jsx(ah,{size:s,className:"text-text-500"});case"projects":case"project_knowledge_search":return t.jsx(is,{size:s,className:"text-text-500"});case"drive_search":return t.jsx(it,{type:He.GDRIVE,size:s});default:return a.includes("search_mcp_registry")?t.jsx(tU,{size:s,className:"text-text-500"}):null}})(s,m);if(n)return n;const a=t.jsx(ot,{letter:g||j,size:m,hideBorder:!0});return p?t.jsx(rt,{url:p,size:m,fadeInOnLoad:!0,fallbackSvg:a}):g?a:t.jsx(yU,{size:m,className:"text-text-500"})},[u,f,s,m,p,g,j]);return t.jsxs(wme,{icon:A,text:j,secondaryText:C,isStreaming:d,hideCaret:!0,handleClick:N&&L?T:void 0,renderMode:i,isFirstBlockOfMessage:r,isLastBlockOfMessage:o,isFirstItemInGroup:l,isLastItemInGroup:c,children:[h,I&&!L&&t.jsxs("div",{className:"mx-2.5 mt-1 mb-2",children:[!M&&t.jsx("button",{onClick:()=>_(!0),className:"flex items-center transition-colors cursor-pointer text-text-500 hover:text-text-200",children:t.jsx(Mme,{color:"flat",size:"default",className:"font-mono !text-inherit",children:b.formatMessage({defaultMessage:"Request",id:"p1P+hQq6tY"})})}),t.jsx(nA,{children:M&&t.jsx(sA.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{ease:Cme.SNAPPY_OUT,duration:hme.COLLAPSE_EXPAND},className:"overflow-hidden",children:t.jsx("div",{onClick:()=>_(!1),className:"rounded-lg border-[0.5px] border-border-300 bg-bg-000 cursor-pointer",children:t.jsx("div",{className:"p-2 flex flex-col gap-2 max-h-[200px] overflow-y-auto [&_pre]:!text-xs [&_code]:!text-xs",children:v()})})},"request-expanded")})]}),t.jsx(Pme,{notices:S}),N&&L&&t.jsxs("div",{className:"mx-2.5 mt-1 mb-2",children:[!k&&t.jsx("button",{onClick:()=>w(!0),className:"flex items-center transition-colors cursor-pointer "+(y?"text-danger-000 hover:text-danger-100":"text-text-500 hover:text-text-200"),children:t.jsx(Mme,{color:y?"danger":"flat",size:"default",className:"font-mono "+(y?"":"!text-inherit"),children:b.formatMessage({defaultMessage:"Result",id:"ZpQ6usVWqj"})})}),t.jsx(nA,{children:k&&t.jsx(sA.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{ease:Cme.SNAPPY_OUT,duration:hme.COLLAPSE_EXPAND},className:"overflow-hidden",children:t.jsx("div",{onClick:()=>w(!1),className:"rounded-lg border-[0.5px] border-border-300 bg-bg-000 cursor-pointer",children:t.jsx("div",{className:"p-2 flex flex-col gap-2 max-h-[200px] overflow-y-auto [&_pre]:!text-xs [&_code]:!text-xs",children:x()})})},"generic-expanded")})]})]})});Fme.displayName="GenericToolCell";const Vme=e.memo(({toolName:e,message:s,resultMessage:n,resultCount:a=0,renderMode:i=bme.Standard,isFirstBlockOfMessage:r,isLastBlockOfMessage:o,isFirstItemInGroup:l,isLastItemInGroup:c,isStreaming:d,children:u})=>{const m=JS(),p=a>0||!d,f=n||s||(p?m.formatMessage({defaultMessage:"Searched",id:"0ZuuhwjU4n"}):m.formatMessage({defaultMessage:"Searching",id:"IfE0if3ytt"})),g=p&&a>0?m.formatMessage({defaultMessage:"{count, plural, one {# result} other {# results}}",id:"s88ium+h8p"},{count:a}):void 0,h=(e=>"project_knowledge_search"===e.replace(/([a-z])([A-Z])/g,"$1_$2").toLowerCase())(e),C=h?t.jsx(is,{size:16,className:"text-text-500"}):t.jsx(ah,{size:16,className:"text-text-500"});return t.jsx(wme,{icon:C,text:f,secondaryText:g,isStreaming:!p,hideCaret:!0,renderMode:i,isFirstBlockOfMessage:r,isLastBlockOfMessage:o,isFirstItemInGroup:l,isLastItemInGroup:c,children:u&&p&&t.jsx(sA.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},transition:{ease:"easeOut",duration:.3},className:"overflow-hidden",children:t.jsx("div",{className:"border-[0.5px] border-border-300 rounded-lg mx-2.5 mt-1 mb-2 max-h-[200px] overflow-y-auto bg-bg-000/50",children:u})})})}),zme=e.memo(({title:s,url:n,faviconUrl:a,onClick:i})=>{const r=(e=>{try{return new URL(e).hostname}catch{return e}})(n),o=e.useCallback(e=>{i&&(e.preventDefault(),i(n))},[i,n]);return t.jsxs("a",{href:n,target:"_blank",rel:"noopener noreferrer",className:Bt("flex flex-row gap-3 items-center px-2 py-1.5 w-full","rounded-md cursor-pointer transition-colors hover:bg-bg-200"),onClick:o,children:[t.jsx("div",{className:"flex-shrink-0",children:t.jsx(rt,{url:a||n,size:12,fadeInOnLoad:!0})}),t.jsx("div",{className:"w-0 flex-grow font-small text-text-300 truncate",children:s}),t.jsx("div",{className:"text-xs text-text-400 shrink-0",children:r})]})});zme.displayName="SearchResultRow";const Zme=e.memo(({children:s,isFirstBlockOfMessage:n,isLastBlockOfMessage:a,className:i,borderless:r=!1,autoCollapse:o=!1,animateEntrance:l=!1})=>{const[c,d]=e.useState(!1),u=e.Children.toArray(s),m=u.length,p=o&&m>=3,f=Math.max(0,m-2);return t.jsx("div",{className:Bt("flex flex-col font-ui leading-normal",!r&&"rounded-lg border-0.5 border-border-300 my-3",!r&&(n?"mt-2":"mt-3"),!r&&(a?"mb-2":"mb-3"),i),children:t.jsx(yme,{hasCollapseHeader:p&&f>0,children:p||l?t.jsxs(nA,{initial:l,children:[p&&f>0&&t.jsx(kme,{icon:t.jsx(sP,{size:16,className:Bt("transition-transform text-text-300",c?"rotate-0":"rotate-180")}),isFirstItem:!0,isLastItem:!1,isActive:!1,showDotFallback:!1,children:t.jsx("button",{onClick:()=>d(!c),"aria-expanded":c,className:"px-3 py-2 w-full text-left text-sm text-text-300",children:c?t.jsx(XS,{defaultMessage:"Hide steps",id:"Iufn28MeR1"}):t.jsx(XS,{defaultMessage:"{collapsedCount, plural, one {# step} other {# steps}}",id:"dS6ebV+vpY",values:{collapsedCount:f}})})}),u.map((s,n)=>{const a=e.isValidElement(s)?s.key:n;return p&&!c&&n<m-2?null:t.jsx(sA.div,{className:"overflow-hidden shrink-0",initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{ease:Cme.SNAPPY_OUT,duration:hme.COLLAPSE_EXPAND},style:{...p&&{willChange:"height, opacity"}},children:s},a)})]}):u.map((s,n)=>{const a=e.isValidElement(s)?s.key:n;return t.jsx("div",{children:s},a)})})})});Zme.displayName="TimelineGroup";const Bme=t.jsx(FP,{size:16,className:"text-text-500"});const qme=e.memo(function({description:s,isStreaming:n,isComplete:a=!1,renderMode:i=bme.Standard,isFirstBlockOfMessage:r=!1,isLastBlockOfMessage:o=!1,isFirstItemInGroup:l,isLastItemInGroup:c,subagentBlocks:d,renderSubagentBlock:u}){const m=JS(),[p,f]=e.useState(!1),g=e.useCallback(()=>{f(e=>!e)},[]),h=d&&d.length>0&&u,C=d?.length??0,x=n&&!a,v=s||m.formatMessage({defaultMessage:"Running subagent",id:"XGkVpOO9dA"}),y=C>0?t.jsxs("span",{className:"flex items-center gap-1 text-sm",children:[t.jsx(XS,{defaultMessage:"{stepCount, plural, one {# step} other {# steps}}",id:"DNlRq2D8lw",values:{stepCount:C}}),t.jsx(WP,{size:16,className:Bt("transition-transform duration-200",p&&"rotate-45")})]}):void 0,b=e.useMemo(()=>p&&h?d:[],[p,h,d]),k=e.useMemo(()=>new Set(b),[b]),w=e.useMemo(()=>new Map(b.map((e,t)=>[e,t])),[b]);return t.jsx(wme,{icon:Bme,text:v,secondaryText:y,isStreaming:x,hideCaret:!0,handleClick:h?g:void 0,renderMode:i,isFirstBlockOfMessage:r,isLastBlockOfMessage:o,isFirstItemInGroup:l,isLastItemInGroup:c,children:t.jsx(nA,{children:b.length>0&&t.jsx(sA.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:hme.COLLAPSE_EXPAND,ease:Cme.EASE_OUT},style:{overflow:"hidden"},children:t.jsx("div",{className:"mt-1",children:t.jsx(Zme,{isFirstBlockOfMessage:!1,isLastBlockOfMessage:!1,borderless:!0,autoCollapse:!1,children:d?.map((e,s)=>{const n=e.id??`block-${s}`,a=k.has(e),i=w.get(e)??-1;return t.jsx(sA.div,{initial:!1,animate:{opacity:a?1:0,height:a?"auto":0},transition:{ease:Cme.SNAPPY_OUT,duration:.2,delay:a?0:.15},className:"overflow-hidden",children:u?.(e,s,{isFirstItem:0===i,isLastItem:i===b.length-1,isInExpandedTimeline:p,isTimelineExpanded:p})},n)})})})},"nested-timeline")})})});qme.displayName="TaskToolCell";const Wme="group/timeline-text px-2.5 text-text-300 !font-base [&_p]:!m-0 [&_p]:!p-0",$me=e.memo(({children:s,isStreaming:n=!1,onExpandToggle:a})=>{const i=e.useRef(null),[r,o]=e.useState(!1),[l,c]=e.useState(!1),[d,u]=e.useState(0);return e.useLayoutEffect(()=>{if(i.current&&!n){const e=i.current.scrollHeight;u(e),c(e>200)}},[n,s]),n?t.jsx("div",{"data-timeline-text":"",className:Wme,"aria-live":"off",children:s}):t.jsxs("div",{"data-timeline-text":"",className:Wme,children:[t.jsxs("div",{ref:i,className:"relative overflow-hidden transition-[max-height] duration-300 ease-out",style:{maxHeight:r?`${d}px`:"200px"},children:[s,l&&!r&&t.jsx("div",{className:"absolute inset-x-0 bottom-0 h-10 bg-gradient-to-t from-bg-100 to-transparent pointer-events-none"})]}),l&&t.jsx("button",{onClick:()=>{const e=!r;o(e),a?.(e)},className:Bt("text-xs text-text-500/80 hover:text-text-100 transition",!r&&"opacity-0 group-hover/timeline-text:opacity-100 focus-visible:opacity-100 [@media(hover:none)]:opacity-100"),children:r?t.jsx(XS,{defaultMessage:"Show less",id:"qyJtWyZ0yt"}):t.jsx(XS,{defaultMessage:"Show more",id:"aWpBzjCXKS"})})]})});$me.displayName="TimelineTextContent";const Gme=t.jsx(at,{size:16,className:"text-text-500"}),Kme=e.memo(({text:e,isStreaming:s,isFirstItemInGroup:n,isLastItemInGroup:a,headingLevelOffset:i,onExpandToggle:r})=>e?t.jsx(kme,{icon:Gme,isFirstItem:!!n,isLastItem:!!a,isActive:s,showDotFallback:!1,children:t.jsx("div",{className:"pt-0.5",children:t.jsx($me,{isStreaming:s,onExpandToggle:r,children:t.jsx(joe,{text:e,isStreaming:s,headingLevelOffset:i,typography:"inherit"})})})}):null),Yme=e.memo(({input:s,toolResult:n,renderMode:a=bme.Standard,isFirstBlockOfMessage:i,isLastBlockOfMessage:r,isFirstItemInGroup:o,isLastItemInGroup:l,isStreaming:c,iconSize:d=16,onUrlClick:u,children:m})=>{const p=JS(),f=String(s?.url||""),g=(e=>{try{return new URL(e).hostname}catch{return null}})(f),h=n?.is_error,C=h?null:(e=>{if(!e?.content)return null;try{const t=e.content;if(!Array.isArray(t))return null;const s=t.find(e=>"knowledge"===e.type&&e.title);if(s)return{title:s.title};const n=t.find(e=>"text"===e.type);if(n?.text)try{const e=JSON.parse(n.text);if(Array.isArray(e)&&e.length>0&&e[0].title)return{title:e[0].title}}catch{}return null}catch{return null}})(n),x=C?.title||f,v=!!n||!c;let y,b;v?h?y=t.jsxs(t.Fragment,{children:[t.jsx(XS,{defaultMessage:"Failed to fetch",id:"1nV3NuMwiG"})," ",t.jsx("span",{className:"text-text-400",children:x})]}):(y=x,b=g||void 0):y=g?p.formatMessage({defaultMessage:"Fetching from {hostname}",id:"5qKeNV67+8"},{hostname:g}):p.formatMessage({defaultMessage:"Fetching page",id:"uAw7cJ5rnr"});const k=e.useCallback(()=>{f&&u&&u(f)},[f,u]);return t.jsx(wme,{href:f||void 0,handleClick:f&&u?k:void 0,isStreaming:!v,icon:t.jsx(rt,{url:f,size:d,fadeInOnLoad:!0}),text:y,secondaryText:b,secondaryIcon:v&&f?t.jsx(BS,{size:16,className:"text-text-300"}):void 0,hideCaret:!0,isFirstBlockOfMessage:i,isLastBlockOfMessage:r,renderMode:a,isFirstItemInGroup:o,isLastItemInGroup:l,children:m})});Yme.displayName="WebFetchToolCell";const Qme=e.memo(({input:e,toolResult:s,renderMode:n=bme.Standard,isFirstBlockOfMessage:a,isLastBlockOfMessage:i,isFirstItemInGroup:r,isLastItemInGroup:o,isStreaming:l,iconSize:c=16,onResultClick:d})=>{const u=JS(),m=H4(s),p=m.length;let f="";if("string"==typeof e)try{const t=JSON.parse(e);f=t?.query||""}catch{f=""}else f=e?.query||"";const g=p>0||!l,h=g?f:u.formatMessage({defaultMessage:"Searching the web",id:"5KajyzHSXj"}),C=g&&p>0?u.formatMessage({defaultMessage:"{count, plural, one {# result} other {# results}}",id:"s88ium+h8p"},{count:p}):void 0;return t.jsx(wme,{icon:t.jsx(oU,{size:c,className:"text-text-500"}),text:h,secondaryText:C,isStreaming:!g,hideCaret:!0,renderMode:n,isFirstBlockOfMessage:a,isLastBlockOfMessage:i,isFirstItemInGroup:r,isLastItemInGroup:o,children:m.length>0&&t.jsx(sA.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},transition:{ease:"easeOut",duration:.3},className:"overflow-hidden",children:t.jsx("div",{className:"border-[0.5px] border-border-300 rounded-lg p-1 mx-2.5 mt-1 mb-2 max-h-[150px] overflow-y-auto bg-bg-000/50",children:t.jsx("div",{className:"flex flex-col gap-1",children:m.map((e,s)=>t.jsx(zme,{title:e.title,url:e.url,faviconUrl:e.faviconUrl,onClick:d},`${e.url}-${s}`))})})})})});const Jme=e.memo(function({statusText:s,isWorking:n,showSpark:a=!0,isExpanded:i,onToggle:r,className:o,caretPosition:l="trailing",textClassName:c="font-base",prefix:d,summarySuffix:u,action:m,actionPlacement:p="inline",statusPrefix:f,statusSuffix:g,animateTextChange:h=!0,statusTextEntranceDelayMs:C,actionBelowEntranceFromInline:x=!1,actionBelowEntranceDurationMs:v=350,shimmerPaused:y=!1,children:b}){const k=e.useRef(x).current,w=e.useRef(C).current,M=void 0!==w||k,_=e.useRef(!M),[j,S]=e.useState(!k);e.useEffect(()=>{if(_.current=!0,k){const e={},t=requestAnimationFrame(()=>{e.r2=requestAnimationFrame(()=>S(!0))});return()=>{cancelAnimationFrame(t),void 0!==e.r2&&cancelAnimationFrame(e.r2)}}},[]);const[L,N]=e.useState(!1),I=i??L,[T,A]=e.useState(!I),E=e.useRef(null);e.useEffect(()=>(E.current&&(clearTimeout(E.current),E.current=null),I?A(!1):E.current=setTimeout(()=>{A(!0)},300),()=>{E.current&&clearTimeout(E.current)}),[I]);const R=I||!T,D=e.useCallback(()=>{r?r():N(e=>!e)},[r]),H=a&&n,P=t.jsxs(t.Fragment,{children:["leading"===l&&t.jsx("span",{className:Bt("inline-flex transition-transform duration-200 shrink-0",!I&&"-rotate-90"),children:t.jsx(sP,{size:14})}),"leading-chip"===l&&t.jsx("span",{className:Bt("inline-flex h-5 w-5 shrink-0 items-center justify-center rounded-full bg-bg-300 text-text-300 transition-all duration-200 group-hover/status:bg-bg-400 group-hover/status:text-text-100",!I&&"-rotate-90"),children:t.jsx(sP,{size:14})}),d,n?t.jsx(Yg,{paused:y,className:Bt("text-left truncate",c),children:s}):t.jsx("span",{className:Bt("truncate",c),children:s}),"trailing"===l&&t.jsx("span",{className:Bt("inline-flex -rotate-90 shrink-0 opacity-0 transition-opacity duration-200 group-hover/status:opacity-100 group-focus-visible/status:opacity-100",n&&"text-text-400"),children:t.jsx(sP,{size:12})})]}),U=Bt("group/status flex items-center gap-2 py-1 text-sm transition-colors cursor-pointer text-left",H?"text-text-300 hover:text-text-200":"text-text-500 hover:text-text-300"),O=!!u,F="inline"===p?m:void 0,V=t.jsxs(t.Fragment,{children:[a&&t.jsx("div",{className:Bt("relative h-5 flex items-center justify-center shrink-0 overflow-hidden","transition-[width,margin-right] duration-150 ease-[cubic-bezier(0.25,0.9,0.3,1)] motion-reduce:transition-none",H?"w-5 mr-0.5":"w-0 -mr-2 delay-150"),children:t.jsx("div",{className:Bt("pt-1 transition-opacity duration-150 motion-reduce:transition-none",H?"opacity-100 delay-150":"opacity-0"),children:t.jsx(H9,{state:H?"writing":"static",className:"!w-5 !text-brand-200",isInteractive:!1})})}),f,h?t.jsx(nA,{mode:"wait",initial:void 0!==w,children:t.jsx(sA.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.25,ease:"easeInOut",delay:_.current?0:(w??0)/1e3},className:"inline-flex items-center gap-1 min-w-0",children:P},s)}):t.jsx("div",{className:"inline-flex items-center gap-1 min-w-0",children:P}),n&&g]});return t.jsxs("div",{className:Bt("min-w-0",o),children:[t.jsxs("div",{className:Bt("flex items-center gap-2",O&&"min-h-16"),children:[t.jsx("button",{onClick:D,className:Bt(U,F?"min-w-0":"flex-1 min-w-0"),"aria-expanded":I,children:V}),O&&!I&&t.jsx("div",{className:"shrink-0",children:u}),F]}),m&&"below"===p&&t.jsx("div",{className:Bt("pl-7.5 pt-1.5 text-sm",k&&"transition-transform ease-[cubic-bezier(0.32,0.72,0,1)] motion-reduce:transition-none"),style:k?{transitionDuration:`${v}ms`,transform:j?void 0:"translateY(-1.875rem)"}:void 0,children:m}),t.jsx("span",{className:"sr-only",role:"status","aria-live":"polite",children:s}),b&&t.jsx("div",{className:"grid transition-[grid-template-rows] duration-300 ease-out",style:{gridTemplateRows:I?"1fr":"0fr"},children:t.jsx("div",{className:"overflow-hidden min-w-0",children:R?b:null})})]})});Jme.displayName="StatusPill";const Xme={animation:"timeline-fade-in 200ms cubic-bezier(0.19, 1, 0.22, 1)"},epe={animation:`timeline-fade-in ${1e3*hme.FADE}ms ease-out`};const tpe=e.memo(function({blocks:s,isStreaming:a,statusText:i,turnIsOver:r,renderBlock:o,onStatusDisplayVisibilityChange:l,onTimelineToggle:c,onToggleOverride:d,expandedBodyPortalTarget:u,suppressLivePreview:m=!1,blocksAfterTimeline:p=[],renderBlockAfterTimeline:f,childrenAfterTimeline:g,showSpark:h=!0,showDoneIndicator:C=!0,toolTransition:x="collapse",maxVisibleTools:v=3,forceExpanded:y=!1,statusPillClassName:b,timelineClassName:k,className:w,stepsDisplayText:M,actionedToolIds:_,isToolAwaitingInput:j,trailingContent:S,hasVisibleTrailingContent:L,caretPosition:N,statusPillPrefix:I,statusPillSummarySuffix:T,statusPillAction:A,statusPillActionPlacement:E,statusPillStatusTextEntranceDelayMs:R,statusPillActionBelowEntranceFromInline:D,statusPillActionBelowEntranceDurationMs:H,statusPillStatusPrefix:P,streamingMinHeight:U,alwaysVisibleTrailing:O,groupFooter:F,workingHint:V,suppressWorkingStatus:z=!1,shimmerPaused:Z=!1,workingStatusPosition:B="in-pill",workingStatusSuffix:q}){const W=JS(),$=m?0:v,G=L??!!S,[K,Y]=e.useState(!1),Q=y||K,J="fadeOnStatus"===x,X=e.useRef(""),ee=e.useRef(0),te=e.useRef(!1);r&&s.length>0&&(te.current=!0),0===s.length&&(te.current=!1);const se=!r&&a&&s.length>0&&!te.current,ne=p.length>0||null!==g,ae=e.useCallback(e=>{const t=e;return"tool_use"===t.type&&(!(!t.approval_options||!t.approval_key)||(!!t.mcp_auth_required||(!!t.mcp_elicitation||(!!j?.(e)||"AskUserQuestion"===t.name))))},[j]),ie=e.useCallback(e=>{const t=e;return(!t.id||!_?.has(t.id))&&ae(e)},[_,ae]);e.useEffect(()=>{if(!J)return;const e=i||"";e&&e!==X.current&&""!==X.current&&(ee.current=s.length),X.current=e},[i,s.length,J]);const re=e.useMemo(()=>{if(r)return s;if(!J){if(Q)return s;const e=s.filter(e=>"thinking"!==e.type),t=e.filter(ie),n=e.filter(e=>{const t=e.type;return!ie(e)&&"text"!==t&&"connector_text"!==t}),a=$>0?n.slice(-$):[],i=new Set([...t,...a]);return e.filter(e=>i.has(e))}if(Q||0===s.length)return s;const e=ee.current;return s.slice(e)},[s,Q,J,$,ie,r]),oe=e.useMemo(()=>{const e=new Map;return s.forEach((t,s)=>e.set(t,s)),e},[s]),le=e.useRef(new Map),[ce,de]=e.useState(new Map),ue=e.useRef(void 0);e.useLayoutEffect(()=>{if(r)return void(le.current=new Map(re.map(e=>[oe.get(e)??0,e])));const e=new Set(re.map(e=>oe.get(e))),t=new Map;for(const[s,n]of le.current)e.has(s)||t.set(s,n);le.current=new Map(re.map(e=>[oe.get(e)??0,e])),t.size>0&&(clearTimeout(ue.current),de(t),ue.current=setTimeout(()=>de(new Map),J?150:100))},[re,oe,J,r]);const me=se&&!!i;e.useLayoutEffect(()=>(l?.(me),()=>l?.(!1)),[me,l]),e.useEffect(()=>{se||0===ee.current||(Y(!1),ee.current=0,X.current="")},[se]);const pe=e.useCallback(()=>{if(d)return void d();const e=!K;Y(e),c?.(e)},[d,K,c]),[fe,ge]=e.useState(null);e.useLayoutEffect(()=>{ge(u?document.getElementById(u):null)},[u]);const he=J?epe:Xme,Ce=e.useMemo(()=>U?{...he,minHeight:U}:he,[he,U]),xe=e.useMemo(()=>re.some(ie),[re,ie]),ve=!!U&&!Q&&!xe&&re.length>0;if(0===s.length&&!ne)return null;const ye="below-pill"===B,be=!z&&se&&!!i&&!ye,ke=i||W.formatMessage({defaultMessage:"Working",id:"gAR0atqpRn"}),we=M??W.formatMessage({defaultMessage:"{count, plural, one {# step} other {# steps}}",id:"vAKAnIbJ4M"},{count:s.length}),Me=be?ke:we,_e=h&&!ye,je=s.length>0,Se=(!!u||!se)&&t.jsxs(Zme,{isFirstBlockOfMessage:!1,isLastBlockOfMessage:!1,borderless:!0,autoCollapse:!1,children:[s.map((e,n)=>{const a=r&&C&&!O||G,i=n===s.length-1;return t.jsx("div",{children:o(e,n,{isFirstItem:0===n,isLastItem:i&&!a,isInExpandedTimeline:!1,isTimelineExpanded:!0})},n)}),S,r&&C&&!O&&t.jsx(kme,{icon:t.jsx(FS,{size:16,className:"text-text-500"}),isFirstItem:!1,isLastItem:!0,isActive:!1,showDotFallback:!1,children:t.jsx("div",{"data-timeline-text":"",className:"pl-2.5 pt-0.5 text-text-300 !font-base",children:t.jsx(XS,{defaultMessage:"Done",id:"JXdbo8Vnlw"})})})]});return t.jsx("div",{className:w,children:t.jsxs("div",{className:"grid grid-rows-[auto_auto] min-w-0",children:[je&&t.jsxs("div",{className:"row-start-1 col-start-1 min-w-0",children:[t.jsxs("div",{"data-find-omitted":"",className:"contents",children:[t.jsx(Jme,{isWorking:be,shimmerPaused:Z,statusText:Me,showSpark:_e,isExpanded:d?Q||!!u:Q||("leading"===N||"leading-chip"===N)&&se,onToggle:pe,className:b,caretPosition:N,prefix:I,summarySuffix:T,action:A,actionPlacement:E,statusTextEntranceDelayMs:R,actionBelowEntranceFromInline:D,actionBelowEntranceDurationMs:H,statusPrefix:"function"==typeof P?P({isTimelineExpanded:Q,showExpandedTimeline:se}):P,statusSuffix:se?q:void 0,children:u?null:Se}),fe?n.createPortal(t.jsx(oA,{reducedMotion:"always",children:Se}),fe):null,ye&&h&&se&&i&&t.jsxs("div",{className:"flex items-center gap-2 pl-2 py-1.5 text-sm text-text-300",children:[t.jsx(H9,{state:"writing",className:"!w-5 mr-0.5 !text-brand-200",isInteractive:!1}),t.jsx(Yg,{paused:Z,className:"truncate text-left",children:ke}),q]}),V&&se&&!!i&&t.jsx("div",{className:"min-w-0 mt-1",children:V})]}),O&&r&&t.jsx("div",{className:"min-w-0",children:O}),F&&r&&t.jsx("div",{"data-find-omitted":"",className:"min-w-0",children:F})]}),(je||ne)&&t.jsxs("div",{className:"row-start-2 col-start-1 relative grid grid-rows-[auto_auto] isolate min-w-0",children:[ne&&t.jsx("div",{className:(se?"row-start-2":"row-start-1")+" col-start-1 relative z-[2] min-w-0",children:g??p.map((e,s)=>t.jsx("div",{children:f?.(e,s)},`after-${s}`))}),je&&!u&&t.jsx(nA,{children:se&&t.jsx(sA.div,{"data-find-omitted":"",className:`row-start-1 col-start-1 relative min-w-0 z-[3] overflow-hidden ${k??""}`,style:{overflowAnchor:"none"},initial:{opacity:1},exit:{opacity:0,height:0},transition:{duration:hme.COLLAPSE_EXPAND,ease:Cme.EASE_OUT},children:t.jsxs(Zme,{isFirstBlockOfMessage:!1,isLastBlockOfMessage:!1,borderless:!0,autoCollapse:!1,animateEntrance:!1,children:[Array.from(ce).map(([e,s])=>t.jsx("div",{className:J?"timeline-block-fade-exit":"timeline-block-exit",children:t.jsx("div",{children:o(s,e,{isFirstItem:!1,isLastItem:!1,isInExpandedTimeline:!0,isTimelineExpanded:!1})})},e)),re.map((e,s)=>{const n=oe.get(e)??s,a=s===re.length-1,i=a&&ve;return t.jsxs("div",{style:i?Ce:he,children:[o(e,n,{isFirstItem:0===s&&0===ce.size,isLastItem:a&&!G,isInExpandedTimeline:!0,isTimelineExpanded:Q}),i&&S]},n)}),!ve&&S]})},"expanded-tools")})]})]})})}),spe={camera:"Camera",keyboard:"Keyboard",timer:"Timer",eye:"Eye",search:"Search",navigate:"Globe",upload:"Upload",code:"Code",terminal:"CommandLine",shuffle:"Shuffle",batch:"Batch",click:"Cursor","scroll-up":"ArrowUp","scroll-down":"ArrowDown","scroll-left":"ArrowLeft","scroll-right":"ArrowRight",drag:"Reorder",zoom:"SearchCircle",computer:"Computer",form:"Edit",tabs:"ArrowOutSquare",gif:"Image",network:"Activity",console:"CommandLinePrompt",resize:"ArrowsOut",plan:"Tasks","web-search":"Globe","web-fetch":"Globe"};function npe({icon:e,size:s=16,className:n="text-text-500"}){const a=spe[e]??"Computer";return t.jsx($L,{name:a,customSize:s,className:n})}function ape({subDisplays:e,actionThumbnails:s}){return 0===e.length?null:t.jsx("div",{className:"border-[0.5px] border-border-300 rounded-lg p-1 mx-2.5 mt-1 mb-2 max-h-[180px] overflow-y-auto bg-bg-000/50",children:t.jsx("div",{className:"flex flex-col gap-0.5",children:e.map(e=>{const n=s?.[e.actionIndex];return t.jsxs("div",{className:"flex flex-row gap-3 items-center px-2 py-1.5 w-full rounded-md",children:[t.jsx("div",{className:"flex-shrink-0",children:t.jsx(npe,{icon:e.icon,size:14})}),t.jsx("div",{className:"w-0 flex-grow font-small text-text-300 truncate",children:e.text}),n?t.jsx("div",{className:"flex-shrink-0",children:n}):null]},e.actionIndex)})})})}const ipe=e.memo(function({actions:e,isStreaming:s,isFirstBlockOfMessage:n,isLastBlockOfMessage:a,isFirstItemInGroup:i,isLastItemInGroup:r,renderMode:o,secondaryElement:l,actionThumbnails:c}){const d=JS(),u=e.map((e,t)=>({a:e,actionIndex:t})).filter(({a:e})=>"string"==typeof e?.name).map(({a:e,actionIndex:t})=>({...V9(e.name,e.input,d),actionIndex:t})),m=d.formatMessage({defaultMessage:"Batch \u2014 {count, plural, one {# action} other {# actions}}",id:"9PnBSKt3zo"},{count:e.length});return t.jsx(wme,{icon:t.jsx(npe,{icon:"batch"}),text:m,isStreaming:s,hideCaret:!0,renderMode:o,isFirstBlockOfMessage:n,isLastBlockOfMessage:a,isFirstItemInGroup:i,isLastItemInGroup:r,secondaryElement:l,children:t.jsx(ape,{subDisplays:u,actionThumbnails:c})})});ipe.displayName="BrowserBatchToolCell";const rpe=["model","max_tokens","speak","t","q"];function ope(){const e=new URLSearchParams(window.location.search),t=new URLSearchParams;for(const n of rpe){const s=e.get(n);null!==s&&t.append(n,s)}const s=t.toString();return s?`?${s}`:""}const lpe="ccd_user_settings";function cpe(e,t){return[lpe,{orgUuid:e,accountUuid:t}]}function dpe(e){return[lpe,{orgUuid:e}]}function upe(e,t,s){return{store:e,syncKeys:t,serverPartialize:s?.serverPartialize,serverMerge:s?.serverMerge,isDefault:s?.isDefault,stripAccountSlice:s?.stripAccountSlice,legacyLocalStorageKeys:s?.legacyLocalStorageKeys,idbBacked:s?.idbBacked}}const mpe="undefined"==typeof window?e.useEffect:e.useLayoutEffect;function ppe(e){const t=e.persist.getOptions().name;if(!t)throw new Error("serverSyncedStorage: persisted store has no `name`");return"ccd/"+t}function fpe(e){return`ccd-sync-pending:${e}`}function gpe(e){try{return"1"===localStorage.getItem(fpe(e))}catch{return!1}}function hpe(e,t){try{t?localStorage.setItem(fpe(e),"1"):localStorage.removeItem(fpe(e))}catch{}}function Cpe(e,t){if(!t)return e;const s={};for(const n of t)n in e&&(s[n]=e[n]);return s}function xpe(e){const t=e.store.persist.getOptions(),s=e.store.getState(),n=Cpe(t.partialize?.(s)??s,e.syncKeys);return e.serverPartialize?e.serverPartialize(n):n}function vpe(e){const t=e.store.persist.getOptions();return{state:xpe(e),version:"number"==typeof t.version?t.version:void 0,updatedAt:Date.now()}}function ype(e){if(!e)return null;try{const t=JSON.parse(e);return t.state&&"object"==typeof t.state?{state:t.state,version:t.version,updatedAt:"number"==typeof t.updatedAt?t.updatedAt:0}:null}catch{return null}}function bpe(e){return e.every(e=>e.store.persist.hasHydrated())}const kpe={epoch:0,reconciled:!1,serverUnavailable:!1,applying:!1,boundaryStripFailed:!1,checksum:null,lastSyncedJson:new Map,lastOrgUuid:void 0,lastAccountUuid:void 0},wpe="ccd-sync-owner",Mpe=fT(()=>({settled:!1}));function _pe(){try{return localStorage.getItem(wpe)}catch{return null}}function jpe(e){try{localStorage.setItem(wpe,e)}catch{}}const Spe="ccd-sync-active";function Lpe(e){try{e?localStorage.setItem(Spe,"1"):localStorage.removeItem(Spe)}catch{}}function Npe(){try{return"1"===localStorage.getItem(Spe)}catch{return!1}}const Ipe="ccd-sync-quarantine";function Tpe(){try{localStorage.setItem(Ipe,"1")}catch{}}function Ape(){try{localStorage.removeItem(Ipe)}catch{}}function Epe(){try{return"1"===localStorage.getItem(Ipe)}catch{return!1}}function Rpe(){kpe.reconciled=!1,kpe.epoch+=1,Mpe.setState({settled:!1})}function Dpe(e){const t=e.stripAccountSlice;t&&e.store.setState(t(e.store.getState()));for(const s of e.legacyLocalStorageKeys??[])try{localStorage.removeItem(s)}catch{}}function Hpe(t){const{data:s,isError:n,error:a}=function({enabled:e=!0}={}){const{activeOrganization:t,account:s}=v(),n=t?.uuid,a=s?.uuid;return B(`/api/claude_code/organizations/${n??""}/user_settings`,{queryKey:cpe(n,a),enabled:e&&Boolean(n)&&Boolean(a)&&!0,staleTime:6e4,refetchOnWindowFocus:!1,retry:!1,meta:{noToast:!0},additionalPermittedStatusCode:404},e=>"string"==typeof e?.checksum?e:null)}(),{activeOrganization:i,account:r,isBootstrapFresh:o}=v(),l=i?.uuid,c=r?.uuid,d=M(),u=gL(),m=e.useRef({rawFetch:d,orgUuid:l,accountUuid:c}),p=e.useRef(t);e.useEffect(()=>{m.current={rawFetch:d,orgUuid:l,accountUuid:c},p.current=t},[d,l,c,t]);const[f,g]=e.useState(()=>bpe(t));e.useEffect(()=>{if(f)return;if(bpe(p.current))return void g(!0);const e=p.current.filter(e=>!e.store.persist.hasHydrated()).map(e=>e.store.persist.onFinishHydration(()=>{bpe(p.current)&&g(!0)}));return()=>{for(const t of e)t()}},[f,p]),mpe(()=>{const e=l!==kpe.lastOrgUuid,t=void 0!==c&&void 0!==kpe.lastAccountUuid&&c!==kpe.lastAccountUuid;if(void 0!==c&&(kpe.lastAccountUuid=c),(e||t)&&(e&&void 0!==kpe.lastOrgUuid&&u.removeQueries({queryKey:dpe(kpe.lastOrgUuid)}),t&&void 0!==l&&u.removeQueries({queryKey:dpe(l)}),kpe.lastOrgUuid=l,kpe.epoch+=1,kpe.reconciled=!1,Mpe.setState({settled:!1}),kpe.serverUnavailable=!1,kpe.boundaryStripFailed=!1,kpe.checksum=null,kpe.lastSyncedJson.clear(),t)){kpe.applying=!0;try{for(const e of p.current)try{hpe(ppe(e.store),!1),e.store.persist.hasHydrated()?Dpe(e):Tpe()}catch(s){kpe.serverUnavailable=!0,kpe.boundaryStripFailed=!0,Tpe(),k.warn(w.LOCAL_STORAGE,"ccd_tab_boundary_strip_failed",{err:s})}}finally{kpe.applying=!1}}},[l,c,u,p]);const h=e.useRef(null);e.useEffect(()=>{if(!l||!f)return;const e=async(e,t)=>{const{rawFetch:s,orgUuid:n,accountUuid:a}=m.current,i=kpe.epoch;if(!n||kpe.serverUnavailable)return;const r=_pe();if(r&&a&&r!==a){for(const t of Object.keys(e))hpe(t,!1);return}const o=new Map;for(const[l,c]of Object.entries(e))try{o.set(l,JSON.stringify(JSON.parse(c).state))}catch{o.set(l,void 0)}try{const a=await s(`/api/claude_code/organizations/${n}/user_settings`,{method:"PUT",body:JSON.stringify({entries:e}),headers:t?{"If-Match":t}:void 0});if(i!==kpe.epoch)return;if(403===a.status||404===a.status){kpe.serverUnavailable=!0;let t=404===a.status;if(403===a.status&&"function"==typeof a.json){const e=await a.json().catch(()=>null);t=null!==e&&!JSON.stringify(e).includes("account_session_invalid")}if(i!==kpe.epoch)return;t&&Lpe(!1);for(const s of Object.keys(e))hpe(s,!1);return}if(412===a.status)return;if(a.ok){Lpe(!0);const t=await a.json().catch(()=>null);if(i!==kpe.epoch)return;t?.checksum&&(kpe.checksum=t.checksum);for(const s of Object.keys(e))kpe.lastSyncedJson.get(s)===o.get(s)&&hpe(s,!1)}}catch{}};h.current=e;const t=p.current.map(t=>{const s=ppe(t.store),n=MT(()=>{if(!kpe.reconciled)return;const n=vpe(t);e({[s]:JSON.stringify(n)})},800,{maxWait:5e3});kpe.lastSyncedJson.set(s,JSON.stringify(xpe(t)));const a=t.store.subscribe(()=>{if(kpe.applying)return;let e=!1;if(!kpe.boundaryStripFailed){const t=_pe(),{accountUuid:s}=m.current;e=!(!t||!s||t===s)}(kpe.boundaryStripFailed||e)&&Tpe();const a=JSON.stringify(xpe(t));a!==kpe.lastSyncedJson.get(s)&&(kpe.lastSyncedJson.set(s,a),!kpe.reconciled||kpe.boundaryStripFailed||Epe()||e||hpe(s,!0),n())});return()=>{n.flush(),a()}});return()=>{h.current=null;for(const e of t)e()}},[l,f,p,m]),e.useEffect(()=>{if(!f||kpe.reconciled)return;if(!o)return;if(n||void 0===s)return a instanceof cs&&403===a.statusCode&&"account_session_invalid"!==a.errorCode&&Lpe(!1),void(n&&Mpe.setState({settled:!0}));const e=s?.content.entries??{};kpe.checksum=s?.checksum??null,Object.keys(e).length>0&&Lpe(!0);const t=(()=>{const e=_pe();return!!e&&!!c&&e!==c})(),i=Epe(),r=t||i,l={},d={};let u=!1;kpe.applying=!0;try{for(const s of p.current){const n=ppe(s.store);try{const a=ype(e[n]),i=s.store.persist.getOptions(),o="number"==typeof i.version&&"number"==typeof a?.version&&a.version!==i.version;let c=!1;if(r){hpe(n,!1);try{Dpe(s)}catch(v){c=!0,u=!0,kpe.boundaryStripFailed=!0,k.warn(w.LOCAL_STORAGE,"ccd_boundary_strip_failed",{key:n,err:v})}}else if(gpe(n)){const e=vpe(s);d[n]=JSON.stringify(e),kpe.lastSyncedJson.set(n,JSON.stringify(e.state));continue}if(!a||o){if(t||c){kpe.lastSyncedJson.set(n,JSON.stringify(xpe(s)));continue}const e=xpe(s);if(kpe.lastSyncedJson.set(n,JSON.stringify(e)),!o&&s.isDefault?.(e))continue;l[n]=JSON.stringify({state:e,version:"number"==typeof i.version?i.version:void 0,updatedAt:Date.now()});continue}const m=s.store.getState();let p=Cpe(a.state,s.syncKeys);s.serverMerge&&(p=s.serverMerge(p,m));const f=i.merge?i.merge(p,m):p;s.store.setState(f),kpe.lastSyncedJson.set(n,JSON.stringify(xpe(s)))}catch(y){k.warn(w.LOCAL_STORAGE,"ccd_sync_reconcile_failed",{key:n,err:y})}}}finally{kpe.applying=!1,kpe.reconciled=!0,Mpe.setState({settled:!0}),r&&!u&&(kpe.boundaryStripFailed=!1)}i&&(u?kpe.serverUnavailable=!0:Ape());let m=!1;c&&o&&!kpe.boundaryStripFailed&&(jpe(c),m=_pe()===c);const g=i&&u||!m,C=kpe.epoch,x=!g&&Object.keys(l).length>0?h.current?.(l,kpe.checksum??void 0):void 0;!g&&Object.keys(d).length>0&&(x??Promise.resolve()).then(()=>{C===kpe.epoch&&h.current?.(d)})},[s,n,a,l,c,o,f,p]),e.useEffect(()=>{if(!c||!o)return;if(!f)return;const e=_pe(),t=Epe();if((e&&e!==c||t)&&!kpe.reconciled){let e=!1;kpe.applying=!0;try{for(const t of p.current)try{const e=ppe(t.store);hpe(e,!1),Dpe(t),kpe.lastSyncedJson.set(e,JSON.stringify(xpe(t)))}catch(s){e=!0,kpe.boundaryStripFailed=!0,k.warn(w.LOCAL_STORAGE,"ccd_identity_strip_failed",{err:s})}}finally{kpe.applying=!1,e||(kpe.boundaryStripFailed=!1,t&&Ape())}}kpe.boundaryStripFailed||jpe(c)},[c,o,f,p])}ch?.removeItem("dframe-starred-epitaxy-project");const Ppe=lh("dframe-unpinned-epitaxy-project");function Upe(e,t){Ppe.getState().setStarred(e,!t)}function Ope(e){return Ppe(t=>!t.starredIds.includes(e))}function Fpe(){return Mpe(e=>e.settled)||!1}function Vpe(e,t){return e.owner===t.owner&&e.name===t.name&&e.branch===t.branch&&e.defaultBranch===t.defaultBranch}function zpe(t,s,n){const a=CL({queries:t.map(e=>dh(e,s?.get(e)??null,s?.get(e)?void 0:n?.get(e)))}).map(e=>e.data??null),i=e.useRef(new Map),r=uh(()=>{const e=i.current,s=new Map;let n=!0;for(let i=0;i<t.length;i++){const r=mh(a[i]);if(!r)continue;const o=e.get(t[i]),l=void 0!==o&&Vpe(o,r);s.set(t[i],l?o:r),l||(n=!1)}return n&&s.size===e.size?e:s},[a,t]);return e.useEffect(()=>{i.current=r},[r]),r}function Zpe({owner:e,repo:t,query:s,enabled:n=!0,gheConfigurationId:a}){const{activeOrganization:i}=v(),r=i?.uuid,o=bE(),l=new URLSearchParams;s&&l.set("query",s),void 0!==a&&l.set("ghe_configuration_id",a.toString());const c=l.toString()?`?${l.toString()}`:"",d=Boolean(e&&t&&i&&o&&n);return B(`/api/github/organizations/${r}/github/${e}/${t}/branches${c}`,{queryKey:[ph,{orgUuid:r,owner:e,repo:t,query:s,gheConfigurationId:a}],enabled:d,staleTime:3e5,meta:{noToast:!0},retry:!1})}function Bpe({owner:t,repo:s,gheConfigurationId:n}){const{data:a}=Zpe({owner:t,repo:s,enabled:Boolean(t&&s),gheConfigurationId:n});return e.useMemo(()=>{if(t&&s){if(Lne({owner:{login:t},name:s}))return Ine}if(a?.default_branch)return a.default_branch;const e=a?.data?.find(e=>e.is_default);if(e)return e.name;const n=a?.data??[],i=n.find(e=>"main"===e.name);if(i)return i.name;const r=n.find(e=>"master"===e.name);return r?r.name:n.length>0?n[0].name:void 0},[t,s,a])}function qpe(e,t,s){return e===`${t}/${s}`}function Wpe(e){if("undefined"==typeof window)return e;const t=new URLSearchParams(window.location.search);if(""===t.toString())return e;const[s,n]=e.split("?"),a=new URLSearchParams(n||"");t.forEach((e,t)=>{a.has(t)||a.set(t,e)});const i=a.toString();return i?`${s}?${i}`:s}const $pe=25;function Gpe(e,t){return`${function(e){return e.split("/").pop()?.toLowerCase()??""}(e)}:${t.toLowerCase()}`}function Kpe(e,t){if(!t?.length)return e;const s=new Map(t.map(e=>[Gpe(e.repo,e.branch),e]));let n=!1;const a=e.map(e=>{if("number"==typeof e.gheConfigurationId)return e;const t=s.get(Gpe(e.repo,e.branch))?.gheConfigurationId;return"number"!=typeof t?e:(n=!0,{...e,gheConfigurationId:t})}),i=new Set(e.map(e=>Gpe(e.repo,e.branch))),r=[];for(const o of t){const e=Gpe(o.repo,o.branch);i.has(e)||(i.add(e),r.push({repo:o.repo,branch:o.branch,gheConfigurationId:o.gheConfigurationId}))}return r.length?[...a,...r]:n?a:e}function Ype(e){const t=new Set,s=[],n=[],a=_E();for(const i of e)if(n.length<$pe&&n.push(i.id),!(s.length>=$pe))for(const{repo:e,branch:n,githubHost:r}of afe(i)){const i=`${e}:${n}:${r??""}`;if(t.has(i))continue;const o=a[jE(e,n)],l=o?.pull_request?.state;if("merged"!==l&&"closed"!==l&&(t.add(i),s.push({repo:e,branch:n,githubHost:r}),s.length>=$pe))break}return{repoBranches:s,sessionIds:n}}function Qpe(e,t){return e.map(e=>{const s=Date.parse(t(e));return{item:e,timestampMs:Number.isNaN(s)?-Number.MAX_VALUE:s}}).sort((e,t)=>t.timestampMs-e.timestampMs).map(e=>e.item)}function Jpe(e){return Ype(Qpe(e.filter(e=>"archived"!==e.session_status&&!fh(e)),e=>e.created_at))}function Xpe(e,t){if(e)return t&&t in e?e[t]??void 0:e[""]??void 0}function efe(t){const s=SE(t.id);return e.useMemo(()=>Kpe(afe(t),s),[t,s])}function tfe(e){let t;if(e.repoBranches?.length)t=e.repoBranches;else{const s=e.repoInfo;if(s?.branch&&s.name){t=[{repo:s.owner?`${s.owner}/${s.name}`:s.name,branch:s.branch,githubHost:s.githubHost}]}else t=[]}if(!e.prs?.length)return t;const s=new Set,n=new Map;for(const i of t){const e=i.repo.toLowerCase();s.add(`${e}:${i.branch.toLowerCase()}`),n.set(e,i)}let a;for(const i of e.prs){if(i.inherited)continue;if(i.dismissed)continue;const e=i.repo.toLowerCase(),t=`${e}:${i.branch.toLowerCase()}`;if(s.has(t))continue;s.add(t);const r=n.get(e);(a??=[]).push({repo:r?.repo??i.repo,branch:i.branch,githubHost:r?.githubHost,gheConfigurationId:r?.gheConfigurationId})}return a?[...t,...a]:t}function sfe({sessionId:e,sessions:t,currentSessionId:s,currentSessionIsRunning:n}){if(e===s)return n??!1;const a=t?.find(t=>t.id===e);return"running"===a?.session_status}function nfe(e){const t=e.session_context?.sources,s=e.session_context?.outcomes?.find(e=>"git_repository"===e.type);if("git_repository"===s?.type&&s.git_info){const e=s.git_info.branches??[],n=s.git_info.repo;if(e.length>0&&n){const[s,a]=n.split("/");if(s&&a){const i=t?.find(e=>"git_repository"===e.type&&!!e.url&&gh(e.url)===n),r=hh("git_repository"===i?.type?i.url:void 0);return{owner:s,name:a,branch:e[0],githubHost:r}}}}const n=t?.find(e=>"git_repository"===e.type);if(n&&"git_repository"===n.type&&n.url){const e=gh(n.url),t=n.revision?.replace("refs/heads/","");if(e&&t){const[s,a]=e.split("/");return{owner:s,name:a,branch:t,githubHost:hh(n.url)}}}}function afe(e){return function(e){const t=e?.sources,s=[],n=new Set,a=(e,t,a)=>{const i=`${a??""}:${e}:${t}`;n.has(i)||(n.add(i),s.push({repo:e,branch:t,githubHost:a}))},i=e?.outcomes;if(i){const e=function(e){const t=new Map;if(!e)return t;for(const s of e)if("git_repository"===s.type&&s.url){const e=gh(s.url);e&&t.set(e,hh(s.url))}return t}(t);for(const t of i)if("git_repository"===t.type&&t.git_info){const s=t.git_info.repo,n=t.git_info.branches??[];if(s)for(const t of n)a(s,t,e.get(s))}}if(s.length>0)return s;if(t)for(const r of t)if("git_repository"===r.type&&r.url){const e=gh(r.url),t=r.revision?.replace("refs/heads/","");e&&t&&s.push({repo:e,branch:t,githubHost:hh(r.url)})}return s}(e.session_context)}function ife(e){const t=rfe(e.session_context?.sources);return afe(e).map(({repo:e,branch:s})=>{const n=t.get(e);return{repo:e,branch:s,sourceBranch:n&&n!==s?n:void 0}})}function rfe(e){const t=new Map;if(!e)return t;for(const s of e)if("git_repository"===s.type&&s.url){const e=gh(s.url),n=s.revision?.replace("refs/heads/","");e&&n&&t.set(e,n)}return t}function ofe(e){switch(e){case"MERGEABLE":case"CONFLICTING":return e;default:return}}function lfe(e){const t=e?.toUpperCase();switch(t){case"BEHIND":case"BLOCKED":case"CLEAN":case"DIRTY":case"DRAFT":case"HAS_HOOKS":case"UNSTABLE":return t;default:return}}function cfe(e,t){const s=(e??"").toUpperCase(),n=(t??"").toUpperCase();return"CONFLICTING"===s||"DIRTY"===n}const dfe=fT(e=>({sessions:{},enable:(t,s,n)=>e(e=>{const a=e.sessions[t],i=a?.prNumber===s;return{sessions:{...e.sessions,[t]:{enabled:!0,prNumber:s,prUrl:n,checks:i?a.checks:void 0,prState:i?a.prState:void 0,mergeable:i?a.mergeable:void 0,mergeStateStatus:i?a.mergeStateStatus:void 0,reviewDecision:i?a.reviewDecision:void 0,autoMergeEnabled:i?a.autoMergeEnabled:void 0,ghAvailable:a?.ghAvailable,lastCheckedAt:i?a.lastCheckedAt:void 0}}}}),disable:t=>e(e=>{const s=e.sessions[t];return s?{sessions:{...e.sessions,[t]:{...s,enabled:!1}}}:e}),setPr:(t,s,n)=>e(e=>{const a=e.sessions[t];return{sessions:{...e.sessions,[t]:{enabled:a?.enabled??!1,prNumber:s,prUrl:n,checks:a?.checks,prState:a?.prState,mergeable:a?.mergeable,mergeStateStatus:a?.mergeStateStatus,reviewDecision:a?.reviewDecision,autoMergeEnabled:a?.autoMergeEnabled,ghAvailable:a?.ghAvailable,lastCheckedAt:a?.lastCheckedAt}}}}),setChecks:({sessionId:t,checks:s,prState:n,mergeable:a,mergeStateStatus:i,reviewDecision:r,autoMergeEnabled:o})=>e(e=>{const l=e.sessions[t];return l?l.prState===n&&l.mergeable===a&&l.mergeStateStatus===i&&l.reviewDecision===r&&l.autoMergeEnabled===o&&l.checks?.length===s.length&&l.checks?.every((e,t)=>e.name===s[t].name&&e.state===s[t].state&&e.bucket===s[t].bucket)?e:{sessions:{...e.sessions,[t]:{...l,checks:s,prState:n,mergeable:a,mergeStateStatus:i,reviewDecision:r,autoMergeEnabled:o,lastCheckedAt:Date.now()}}}:e}),setAutoMergeEnabled:(t,s)=>e(e=>{const n=e.sessions[t];return n?{sessions:{...e.sessions,[t]:{...n,autoMergeEnabled:s}}}:e}),setGhAvailable:(t,s)=>e(e=>{const n=e.sessions[t];return n?{sessions:{...e.sessions,[t]:{...n,ghAvailable:s}}}:{sessions:{...e.sessions,[t]:{enabled:!1,prNumber:0,prUrl:"",ghAvailable:s}}}}),removeSession:t=>e(e=>{const{[t]:s,...n}=e.sessions;return{sessions:n}})}));const ufe={open:0,draft:1,queued:2,merged:3,closed:4};function mfe(e){if(0===e.length)return{hasPr:!1,prState:void 0,prNumber:void 0,hasConflict:!1,prs:e};let t=e[0];for(const s of e)ufe[s.state]<ufe[t.state]&&(t=s);return{hasPr:!0,prState:t.state,reviewDecision:t.reviewDecision,hasConflict:e.some(e=>e.hasConflict&&"open"===e.state),prUrl:t.url,prRepo:t.repo,prNumber:1===e.length?t.number:void 0,prs:e}}function pfe(t){const s=LE(),n=e.useMemo(()=>t.map(({repo:e,branch:t,githubHost:n,gheConfigurationId:a})=>jE(e,t,a??s(n))),[t,s]),a=NE(n);return e.useMemo(()=>{const e=[];return n.forEach((s,n)=>{const i=a[s]?.pull_request;if(!i)return;const r=IE(i.state);r&&e.push({repo:t[n].repo,branch:t[n].branch,state:r,number:i.number,reviewDecision:i.review_decision,hasConflict:cfe(i.mergeable,i.merge_state_status),url:i.url})}),mfe(e)},[t,n,a])}const ffe=1e3;function gfe(t,s,n){const{track:a}=ae(),i=e.useRef([]),r=e.useRef(!1),o=e.useRef(!1),l=Date.now(),c=i.current;c.push(l);const d=l-ffe;for(;c.length>0&&c[0]<d;)c.shift();if(c.length>=20&&!o.current){o.current=!0;const e=s?.()??{};k.warn(w.LOCAL_SESSION,`[RenderLoopDetector] Rapid re-rendering in ${t}: ${c.length} renders in 1000ms`,e)}if(c.length>=40&&!r.current){r.current=!0;const e=s?.()??{};k.error(w.LOCAL_SESSION,`[RenderLoopDetector] RENDER LOOP in ${t}: ${c.length} renders in 1000ms. React will crash with error #185 (Maximum update depth exceeded). Diagnostics: ${JSON.stringify(e)}`),a({event_key:"claudeai.code.render_loop_detected",...n?{renderer_surface:n}:{},metadata:{component:t,render_count:c.length,time_window_ms:ffe,url:"undefined"!=typeof window?window.location.pathname:"",...e}}),F(new Error(`Render loop detected in ${t}: ${c.length} renders in 1000ms`),{...e,...n?{renderer_surface:n}:{},source:"render_loop_detector",component:t,renderCount:c.length,timeWindowMs:ffe})}}function hfe(t,s=400){const[n,a]=e.useState(t),i=e.useRef(void 0),r=e.useRef(t);return e.useEffect(()=>{const e=r.current;if(e===t)return;if("undefined"!=typeof window&&window.matchMedia("(prefers-reduced-motion: reduce)").matches)return r.current=t,void a(t);const n=performance.now(),o=t-e,l=t=>{const c=Math.min(1,(t-n)/s),d=Math.round(e+o*(e=>1-Math.pow(1-e,3))(c));r.current=d,a(d),c<1&&(i.current=requestAnimationFrame(l))};return i.current=requestAnimationFrame(l),()=>{void 0!==i.current&&cancelAnimationFrame(i.current)}},[t,s]),n}function Cfe({added:e,removed:s,className:n,addedClassName:a="text-git-added",removedClassName:i="text-git-removed"}){const r=JS(),o=hfe(e),l=hfe(s);return t.jsxs("span",{className:dt("tabular-nums",n),children:[t.jsx("span",{className:"sr-only",children:t.jsx(aL,{type:"unit",value:[r.formatMessage({defaultMessage:"{count, plural, one {# addition} other {# additions}}",id:"S5Ia/3aoNz"},{count:e}),r.formatMessage({defaultMessage:"{count, plural, one {# deletion} other {# deletions}}",id:"FnkQmHtZvP"},{count:s})]})}),t.jsxs("span",{"aria-hidden":"true",className:"contents",children:[t.jsx("span",{className:a,children:`+${r.formatNumber(o)}`}),t.jsx("span",{className:i,children:`\u2212${r.formatNumber(l)}`})]})]})}const xfe="localGitDiff",vfe="localGitCommits";function yfe(e){if(!e)return null;const t=e.files.map(e=>({filename:e.filename,status:e.status,additions:e.additions,deletions:e.deletions,changes:e.changes,patch:e.patch,previous_filename:e.previous_filename}));return{base_branch:e.base_ref,head_branch:e.head_ref,merge_base:e.merge_base,ahead_by:e.ahead_by,behind_by:e.behind_by,total_commits:e.total_commits,files:t,diff_url:""}}function bfe({sessionId:e,cwd:t,baseBranch:s,headRef:n,enabled:a=!0,selectedCommitSha:i,sshConfig:r,wslDistro:o}){const l=!!i,c=l?"localCommitDiff":xfe,{data:d,isLoading:u,error:m,refetch:p}=pL({queryKey:[c,e,t,o,s,n,i,r],queryFn:async()=>{if(!t)return null;if(l){if(!i)return null;return yfe((o?await(Pu?.getRemoteCommitDiff?.({kind:"wsl",distro:o},t,i)):r?await(Pu?.getSSHCommitDiff?.(r,t,i)):await(Pu?.getCommitDiff?.(t,i)))??null)}if(!s)return null;return yfe((o?await(Pu?.getRemoteGitDiff?.({kind:"wsl",distro:o},t,s,n)):r?await(Pu?.getSSHGitDiff?.(r,t,s,n)):await(Pu?.getGitDiff?.(t,s,n)))??null)},enabled:a&&!!t&&(l?!!i&&!!(o?Pu?.getRemoteCommitDiff:r?Pu?.getSSHCommitDiff:Pu?.getCommitDiff):!!s&&!!(o?Pu?.getRemoteGitDiff:r?Pu?.getSSHGitDiff:Pu?.getGitDiff)),placeholderData:(a,i)=>{const l=i?.queryKey;return l?.[0]===c&&l?.[1]===e&&l?.[2]===t&&l?.[3]===o&&l?.[4]===s&&l?.[5]===n&&l?.[7]===r?a:void 0},staleTime:3e4,gcTime:3e5,retry:!1,refetchOnReconnect:!1});return{data:d??null,isLoading:u,error:m,refetch:p}}function kfe({sessionId:e,cwd:t,baseBranch:s,headRef:n,enabled:a=!0,sshConfig:i,wslDistro:r}){const{data:o,isLoading:l}=pL({queryKey:[vfe,e,t,r,s,n,i],queryFn:async()=>{if(!t||!s)return null;return(r?await(Pu?.getRemoteGitCommits?.({kind:"wsl",distro:r},t,s,n)):i?await(Pu?.getSSHGitCommits?.(i,t,s,n)):await(Pu?.getGitCommits?.(t,s,n)))??null},enabled:a&&!!t&&!!s&&!!(r?Pu?.getRemoteGitCommits:i?Pu?.getSSHGitCommits:Pu?.getGitCommits),staleTime:3e4,gcTime:3e5,retry:!1,refetchOnReconnect:!1,refetchOnWindowFocus:!1});return{data:o??null,isLoading:l}}const wfe={...Nh,byRepo:{}};function Mfe({sessionId:t,sessionType:s,repos:n,cwd:a,wslDistro:i,enabled:r=!0,prStats:o}){const{activeOrganization:l}=v(),c=l?.uuid,d=M(),u=yh(),m="remote"===s,p="local"===s,f=CL({queries:m?n.map(({repo:e,branch:s,baseBranch:n})=>{const a=e.split("/"),i=a[0]??"",o=a[1]??"";return{queryKey:[kh,{orgUuid:c,sessionId:t,owner:i,repo:o,base:n,head:s,route:u}],queryFn:async()=>{const{endpoint:e,init:a}=wh(t,{owner:i,repo:o,base:n??"",head:s},c,u);return Mh(await d(e,a),e,u)},enabled:Boolean(r&&l&&i&&o&&n&&s),staleTime:3e4,refetchOnWindowFocus:!0,meta:{noToast:e=>e.message.includes("No changes between")||e.message.includes("No changes found between")},...bh}}):[]}),g=p&&1===n.length,h=g?n[0]?.baseBranch:void 0,{data:C}=function({sessionId:e,cwd:t,baseBranch:s,headRef:n,enabled:a=!0,sshConfig:i,wslDistro:r}){const{data:o,isLoading:l}=pL({queryKey:["localGitDiffStats",e,t,r,s,n,i],queryFn:async()=>{if(!t||!s)return null;const e=r?await(Pu?.getRemoteGitDiffStats?.({kind:"wsl",distro:r},t,s,n)):i?await(Pu?.getSSHGitDiffStats?.(i,t,s,n)):await(Pu?.getGitDiffStats?.(t,s,n));return e?{additions:e.additions,deletions:e.deletions,fileCount:e.fileCount,hasChanges:e.fileCount>0}:null},enabled:a&&!!t&&!!s&&!!(r?Pu?.getRemoteGitDiffStats:i?Pu?.getSSHGitDiffStats:Pu?.getGitDiffStats),staleTime:3e4,gcTime:3e5,retry:!1,refetchOnReconnect:!1});return{data:o??null,isLoading:l}}({sessionId:t,cwd:g?a:void 0,wslDistro:g?i:void 0,baseBranch:h,enabled:r&&g&&!!a&&!!h}),x=_h(e=>e.diffsBySession[t]),y=jh(hT(e=>{const s={};for(const{repo:a,branch:i,baseBranch:r}of n){if(!r)continue;const n=Sh(t,a,r,i);s[n]=e.stats[n]}return s})),b=f.map(e=>e.dataUpdatedAt).join(","),k=e.useMemo(()=>{let e=0,s=0,a=0,i=!1;const r={},l={},c=(t,n)=>{e+=n.additions,s+=n.deletions,a+=n.fileCount,i=!0,l[t]=n};for(let d=0;d<n.length;d++){const{repo:e,branch:s,baseBranch:a}=n[d],i=`${e}:${s}`;if(g&&C?.hasChanges){c(i,C),r[i]=C;continue}if(m){const e=f[d];if(e?.data?.files&&e.data.files.length>0){const t=Lh(e.data.files);c(i,t),r[i]=t;continue}}if(x&&!(p&&n.length>1)){const t=m?x[e]?[x[e]]:[]:Object.values(x);let s=0,n=0,a=0;for(const e of t)for(const t of Object.values(e))s+=t.gitDiff.additions,n+=t.gitDiff.deletions,a++;if(a>0){c(i,{additions:s,deletions:n,fileCount:a,hasChanges:!0});continue}}if(a&&!(p&&n.length>1)){const n=Sh(t,e,a,s),r=y[n];if(r?.hasChanges){c(i,r);continue}}const l=o?.[i];l&&l.additions+l.deletions>0&&c(i,{additions:l.additions,deletions:l.deletions,fileCount:0,hasChanges:!0})}if(p&&n.length>1&&!i&&x){for(const t of Object.values(x))for(const n of Object.values(t))e+=n.gitDiff.additions,s+=n.gitDiff.deletions,a++;i=a>0}return i?{aggregate:{additions:e,deletions:s,fileCount:a,hasChanges:!0,byRepo:l},livePerRepo:r}:{aggregate:wfe,livePerRepo:r}},[n,p,m,g,C,x,y,t,b,o]),w=jh(e=>e.setStats),{livePerRepo:_}=k;return e.useEffect(()=>{for(const{repo:e,branch:s,baseBranch:a}of n){if(!a)continue;const n=_[`${e}:${s}`];if(!n)continue;const i=Sh(t,e,a,s);w(i,n)}},[_,n,t,w]),k.aggregate}const _fe={default:"bg-bg-400 text-text-200 border-0.5 border-border-200",success:"bg-success-900 text-success-100 border-0.5 border-success-100/20",danger:"bg-danger-900 text-danger-000 border-0.5 border-danger-000/20",brand:"bg-accent-brand-muted text-accent-brand border-0.5 border-accent-brand/20",neutral:"bg-accent-brand-muted text-accent-brand border-0.5 border-accent-brand/20",pro:"bg-accent-pro-900 text-accent-pro-000 border-0.5 border-accent-pro-000/20"},jfe=e.forwardRef(({children:e,variant:s="default",icon:n,iconOnly:a=!1,className:i,onClick:r,style:o},l)=>t.jsxs("span",{ref:l,onClick:r,style:o,className:dt("inline-flex items-center justify-center rounded text-xs font-medium whitespace-nowrap",a?"w-[18px] h-[18px]":"gap-1 px-1.5 py-0.5",_fe[s],i),children:[n,!a&&e&&t.jsx("span",{children:e})]}));function Sfe({additions:e,deletions:s,compact:n}){return t.jsx(Cfe,{added:e,removed:s,className:dt("inline-flex items-center gap-1",n?"text-[11px] leading-4":"text-xs font-medium"),addedClassName:"text-success-100",removedClassName:"text-danger-000"})}jfe.displayName="Badge";const Lfe={open:{icon:t.jsx(QR,{size:14}),variant:"success",label:"Open",className:void 0},draft:{icon:t.jsx(QR,{size:14}),variant:"default",label:"Draft",className:"!bg-text-500/10 !text-text-500 !border-text-500/20"},closed:{icon:t.jsx(rU,{size:14}),variant:"danger",label:"Closed",className:void 0},merged:{icon:t.jsx(CR,{size:14}),variant:"pro",label:"Merged",className:void 0},queued:{icon:t.jsx(CR,{size:14}),variant:"default",label:"In merge queue",className:"!bg-[#d29922]/10 !text-[#d29922] !border-[#d29922]/20"}};function Nfe({state:s,prNumber:n,prUrl:a,className:i}){const r=Lfe[s]||Lfe.open,o=n?`#${n} \xb7 ${r.label}`:r.label,l=e.useCallback(e=>{a&&(e.stopPropagation(),e.preventDefault(),window.open(a,"_blank","noopener,noreferrer"))},[a]);return t.jsx(iN,{content:o,side:"top",children:t.jsx(jfe,{variant:r.variant,icon:r.icon,iconOnly:!0,className:dt("!px-0.5",a&&"cursor-pointer",r.className,i),onClick:l})})}const Ife=e.memo(function({sessionId:e,sessionType:s,repos:n,cwd:a,wslDistro:i,prStats:r,hideSeparator:o,compact:l}){const{ref:c,isIntersecting:d}=KN({rootMargin:"600px"}),u=Mfe({sessionId:e,sessionType:s,repos:n,cwd:a,wslDistro:i,enabled:d,prStats:r});return u.hasChanges?t.jsxs("span",{ref:c,className:"flex-shrink-0 flex items-center gap-0.5",children:[!o&&"\xa0\xb7\xa0",t.jsx(Sfe,{additions:u.additions,deletions:u.deletions,compact:l})]}):t.jsx("span",{ref:c,className:"absolute w-px h-px overflow-hidden"})},(e,t)=>e.sessionId===t.sessionId&&e.sessionType===t.sessionType&&e.cwd===t.cwd&&e.wslDistro===t.wslDistro&&e.hideSeparator===t.hideSeparator&&e.compact===t.compact&&e.prStats===t.prStats&&e.repos.length===t.repos.length&&e.repos.every((e,s)=>e.repo===t.repos[s].repo&&e.branch===t.repos[s].branch&&e.baseBranch===t.repos[s].baseBranch)),Tfe=e.memo(({icon:e,message:s,actionLabel:n,onAction:a,onDismiss:i,dismissAriaLabel:r})=>t.jsxs("div",{className:"flex items-center gap-1.5 pl-3 pr-2.5 py-3 bg-accent-900/40 group -mt-[0.5px] border-b-0.5 border-border-300",children:[t.jsx("div",{className:"flex-shrink-0 flex items-center justify-center w-6 h-6 rounded-md bg-bg-000 text-text-300 shadow-sm border border-border-300",children:e}),t.jsx("div",{className:"flex-1 text-sm text-text-300 ml-1",children:s}),t.jsx(kt,{variant:"secondary",size:"sm",onClick:a,className:"flex-shrink-0 !py-1 !px-2 !text-xs !h-auto !text-accent-100",children:n}),i&&t.jsx(kt,{variant:"ghost",size:"icon_xs",onClick:i,className:"flex-shrink-0 text-accent-100 hover:text-accent-000","aria-label":r,children:t.jsx(JR,{size:14})})]}));Tfe.displayName="CodeUpsellBanner";const Afe=e.memo(({size:e=20})=>t.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:t.jsx("path",{d:"M18.71 19.5c-.83 1.24-1.71 2.45-3.05 2.47-1.34.02-1.77-.79-3.29-.79-1.53 0-2 .77-3.27.81-1.31.04-2.3-1.32-3.14-2.53C4.25 16.5 2.94 12 4.7 8.9c.87-1.53 2.43-2.49 4.12-2.51 1.28-.03 2.5.86 3.29.86.78 0 2.26-1.07 3.81-.91.65.03 2.47.26 3.64 1.98-.09.06-2.17 1.28-2.15 3.81.03 3.02 2.65 4.03 2.68 4.04-.03.07-.42 1.44-1.38 2.83M13 3.5c.73-.83 1.94-1.46 2.94-1.5.13 1.17-.34 2.35-1.04 3.19-.71.85-1.85 1.51-2.95 1.42-.15-1.15.41-2.35 1.05-3.11",fill:"currentColor"})}));Afe.displayName="AppleIcon";const Efe=e.memo(({size:e=20})=>t.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:t.jsx("path",{d:"M3 12V6.75l6-1.32v6.48L3 12zm17-8.25v8.5l-10 .38V5.19l10-1.44zM3 13l6 .09v6.81L3 18.75V13zm7 .14l10 .11v8.5L10 20.16v-7.02z",fill:"currentColor"})}));Efe.displayName="WindowsIcon";const Rfe="claudeai.desktop_app_banner.shown",Dfe="claudeai.desktop_app_banner.dismissed",Hfe="claudeai.desktop_app_banner.clicked";const Pfe=e.memo(function({Banner:s=Tfe}){const n=JS(),{track:a}=ae(),i=y("code_desktop_app_install_banner"),r=y("claude_ai_sot_has_claude_code"),o=Iz(),l=m(),c=On(),d=Fn(),u=e.useRef(!1),[p,f]=e.useState(!1),[g,h]=xs("code-desktop-banner-dismissed-at",null),[C,x]=xs("code-desktop-banner-clicked-at",null);e.useEffect(()=>{f(!0)},[]);const v=!(!p||!i||l||r||!o||!c&&!d||null!==g||null!==C);e.useEffect(()=>{v&&!u.current&&(u.current=!0,a({event_key:Rfe}))},[v,a]);const b=e.useCallback(()=>{a({event_key:Dfe}),h(Date.now())},[a,h]),k=e.useCallback(()=>{a({event_key:Hfe}),x(Date.now()),window.open("https://code.claude.com/docs/en/desktop-quickstart","_blank","noopener,noreferrer")},[a,x]);return v?t.jsx(s,{icon:c?t.jsx(Afe,{size:18}):t.jsx(Efe,{size:18}),message:t.jsx(XS,{defaultMessage:"Try Claude Code on desktop",id:"36KULL5911"}),actionLabel:t.jsx(XS,{defaultMessage:"Download",id:"5q3qC0sC3r"}),onAction:k,onDismiss:b,dismissAriaLabel:n.formatMessage({defaultMessage:"Dismiss",id:"TDaF6JVgG6"})}):null}),Ufe="claudeai.slack_app_banner.shown",Ofe="claudeai.slack_app_banner.dismissed",Ffe="claudeai.slack_app_banner.clicked",Vfe=e.memo(({size:e=26})=>t.jsxs("svg",{width:e,height:e,viewBox:"0 0 123 123",fill:"none","aria-hidden":"true",children:[t.jsx("path",{d:"M25.8 77.6c0 7.1-5.8 12.9-12.9 12.9S0 84.7 0 77.6s5.8-12.9 12.9-12.9h12.9v12.9zm6.5 0c0-7.1 5.8-12.9 12.9-12.9s12.9 5.8 12.9 12.9v32.3c0 7.1-5.8 12.9-12.9 12.9s-12.9-5.8-12.9-12.9V77.6z",fill:"#E01E5A"}),t.jsx("path",{d:"M45.2 25.8c-7.1 0-12.9-5.8-12.9-12.9S38.1 0 45.2 0s12.9 5.8 12.9 12.9v12.9H45.2zm0 6.5c7.1 0 12.9 5.8 12.9 12.9s-5.8 12.9-12.9 12.9H12.9C5.8 58.1 0 52.3 0 45.2s5.8-12.9 12.9-12.9h32.3z",fill:"#36C5F0"}),t.jsx("path",{d:"M97.2 45.2c0-7.1 5.8-12.9 12.9-12.9s12.9 5.8 12.9 12.9-5.8 12.9-12.9 12.9H97.2V45.2zm-6.5 0c0 7.1-5.8 12.9-12.9 12.9s-12.9-5.8-12.9-12.9V12.9C64.9 5.8 70.7 0 77.8 0s12.9 5.8 12.9 12.9v32.3z",fill:"#2EB67D"}),t.jsx("path",{d:"M77.8 97.2c7.1 0 12.9 5.8 12.9 12.9s-5.8 12.9-12.9 12.9-12.9-5.8-12.9-12.9V97.2h12.9zm0-6.5c-7.1 0-12.9-5.8-12.9-12.9s5.8-12.9 12.9-12.9h32.3c7.1 0 12.9 5.8 12.9 12.9s-5.8 12.9-12.9 12.9H77.8z",fill:"#ECB22E"})]}));Vfe.displayName="SlackLogo";const zfe=e.memo(function({Banner:s=Tfe}){const n=JS(),{track:a}=ae(),{activeOrganization:i}=v(),r=y("code_slack_app_install_banner_disabled"),o=!!i&&(i.settings?.claude_in_slack_settings?.install_enabled??!0),l=function(){const e=y("code_desktop_app_install_banner"),t=y("claude_ai_sot_has_claude_code"),s=Iz(),[n]=xs("code-desktop-banner-dismissed-at",null),[a]=xs("code-desktop-banner-clicked-at",null);return e&&!t&&s&&null===n&&null===a}(),c=e.useRef(!1),[d,u]=e.useState(!1),[m,p]=xs("code-slack-banner-dismissed-at",null),[f,g]=xs("code-slack-banner-clicked-at",null);e.useEffect(()=>{u(!0)},[]);const h=!(!d||r||!o||l||null!==f||!(null===m||Date.now()-m>2592e6));e.useEffect(()=>{h&&!c.current&&(c.current=!0,a({event_key:Ufe}))},[h,a]);const C=e.useCallback(()=>{a({event_key:Ofe}),p(Date.now())},[a,p]),x=e.useCallback(()=>{a({event_key:Ffe}),g(Date.now()),window.open("https://slack.com/marketplace/A08SF47R6P4-claude","_blank","noopener,noreferrer")},[a,g]);return h?t.jsx(s,{icon:t.jsx(Vfe,{size:16}),message:t.jsx(XS,{defaultMessage:"Try the Slack app",id:"1KQPPCcKbc"}),actionLabel:t.jsx(XS,{defaultMessage:"Install",id:"ubmFc8rrea"}),onAction:x,onDismiss:C,dismissAriaLabel:n.formatMessage({defaultMessage:"Dismiss",id:"TDaF6JVgG6"})}):null});function Zfe({origin:e,isOffline:s}){switch(e){case"slack":return t.jsx(Vfe,{size:12});case"bridge":return t.jsxs("div",{className:"relative flex-shrink-0",children:[t.jsx(eU,{size:12,className:"text-text-500"}),!s&&t.jsx("div",{className:"absolute -bottom-0.5 -right-0.5 w-1.5 h-1.5 rounded-full border border-bg-000 bg-success-000"})]});case"local":return t.jsx(eU,{size:12,className:"text-text-500 flex-shrink-0"});case"cloud":return t.jsx(QP,{size:12,className:"text-text-500 flex-shrink-0"})}}function Bfe(){return t.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",className:"flex-shrink-0",role:"img","aria-label":"No pull request",children:t.jsx("circle",{cx:"8",cy:"8",r:"4.5",stroke:"currentColor",strokeWidth:"1",strokeDasharray:"1 1.5",strokeLinecap:"round",className:"text-text-500 opacity-40"})})}function qfe({prState:e,hasPr:s,prNumber:n,prUrl:a}){return s&&e?t.jsx(Nfe,{state:e,prNumber:n,prUrl:a}):t.jsx(Bfe,{})}const Wfe=e.memo(function({title:s,hasPr:n,prState:a,prNumber:i,prUrl:r,origin:o,isOffline:l,isDesktop:c,diffStat:d,showSpinner:u,showActionIndicator:m,actionIndicatorLabel:p,isArchived:f,isSelected:g,isDraft:h,onArchive:C,onDelete:x,onClick:v,onAuxClick:y}){const b=JS(),k=e.useRef(null),w=e.useRef(null),M=e.useCallback(()=>{const e=k.current,t=w.current;if(!e||!t)return;if(0===e.offsetWidth)return;const s=t.scrollWidth-e.offsetWidth,n=s>0?s+44:0;e.style.setProperty("--marquee-overflow",`${n}px`),e.style.setProperty("--marquee-duration",n/50+"s"),e.style.setProperty("--marquee-hover-mask",n>0?"linear-gradient(to right, transparent 2%, hsl(var(--always-black)) 15%)":"none")},[]);e.useEffect(()=>{M()},[s,M]);const _=e.useCallback(e=>{e.preventDefault(),e.stopPropagation(),C?.()},[C]),j=e.useCallback(e=>{e.preventDefault(),e.stopPropagation(),x?.()},[x]);return t.jsxs("div",{className:dt("group relative grid grid-cols-[16px_1fr] gap-2 items-center","p-2 rounded-md cursor-pointer transition-colors",g?"bg-bg-300":"hover:bg-bg-200"),onClick:v,onAuxClick:y,onMouseEnter:M,children:[t.jsxs("div",{className:"relative flex items-center justify-center",children:[t.jsx(qfe,{prState:a,hasPr:n,prNumber:i,prUrl:r}),m&&t.jsx("div",{role:"status","aria-label":p??b.formatMessage({defaultMessage:"Awaiting input",id:"tM90hqjWj0"}),className:"absolute -top-0.5 -right-[3px] w-1.5 h-1.5 rounded-full bg-accent-100 border border-bg-100"})]}),t.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[u&&t.jsx("style",{children:"@keyframes compactShimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }"}),t.jsx("div",{ref:k,className:dt("flex-1 min-w-0 overflow-hidden whitespace-nowrap","[mask-image:linear-gradient(to_right,hsl(var(--always-black))_85%,transparent_98%)]","group-hover:[mask-image:var(--marquee-hover-mask,none)]"),children:t.jsx("span",{ref:w,className:dt("inline-block whitespace-nowrap text-xs align-top","group-hover:[transform:translateX(calc(-1*var(--marquee-overflow,0px)))]","group-hover:[transition:transform_var(--marquee-duration,0s)_linear_0.3s]",!u&&(h||!s?.trim()?"text-text-400 italic":"text-text-100")),style:u?{background:"linear-gradient(90deg, hsl(var(--text-100)) 25%, hsl(var(--text-500)) 50%, hsl(var(--text-100)) 75%)",backgroundSize:"200% 100%",WebkitBackgroundClip:"text",backgroundClip:"text",WebkitTextFillColor:"transparent",animation:"compactShimmer 2s ease-in-out infinite"}:void 0,children:s?.trim()||t.jsx(XS,{defaultMessage:"Untitled session",id:"VZOiVMXn0z"})})}),!h&&(c?"local"!==o:"cloud"!==o)&&t.jsx(Zfe,{origin:o,isOffline:l}),d]}),C&&!f&&!h&&t.jsx("div",{className:dt("absolute right-0 top-0 bottom-0 flex items-center justify-end pr-0.5 pl-6 rounded-r-md","opacity-0 group-hover:opacity-100 pointer-coarse:opacity-100","transition-opacity duration-200"),style:{background:`linear-gradient(to right, transparent, hsl(${g?"var(--bg-300)":"var(--bg-200)"}) 40%)`},children:t.jsx(iN,{content:b.formatMessage({defaultMessage:"Archive",id:"iTB6LllpS4",description:"Tooltip for archive button on session items"}),side:"top",children:t.jsx(kt,{variant:"ghost",size:"icon_xs",className:"bg-bg-300 text-text-500 hover:text-text-100",onClick:_,children:t.jsx(rs,{size:14})})})}),x&&(f||h)&&t.jsx("div",{className:dt("absolute right-0 top-0 bottom-0 flex items-center justify-end pr-0.5 pl-6 rounded-r-md","opacity-0 group-hover:opacity-100 pointer-coarse:opacity-100","transition-opacity duration-200"),style:{background:`linear-gradient(to right, transparent, hsl(${g?"var(--bg-300)":"var(--bg-200)"}) 40%)`},children:t.jsx(iN,{content:b.formatMessage({defaultMessage:"Delete",id:"K3r6DQW7h+"}),side:"top",children:t.jsx(kt,{variant:"ghost",size:"icon_xs",className:"bg-bg-300 text-text-500 hover:text-danger-100",onClick:j,children:t.jsx(wt,{size:14})})})})]})});Wfe.displayName="CompactSessionRow";const $fe=Ah??Eh,Gfe=[];const Kfe=e.memo(function({session:s,isNew:n,onArchive:a,onDelete:i,isCurrentSessionRunning:o,basePath:l}){gfe("SessionItem",()=>({sessionId:s.id,sessionType:s.type,hasRepoInfo:void 0!==s.repoInfo}));const c=r(),d=JS(),u=m(),p=y("3540182858"),[f,g]=e.useState(!n),{markCodeSessionOpenStart:h}=Ih(),C=l??(u?"/epitaxy":"/code"),x=$fe(e=>qpe(e,C,s.id)),v=Tte(s.id),b=Th(),k=e.useMemo(()=>MT(e=>{b(e)},100),[b]);e.useEffect(()=>{if(n){const e=setTimeout(()=>g(!0),50);return()=>clearTimeout(e)}},[n]);const w=e.useCallback(e=>{const t="remote"===s.type?Wpe(`${C}/${s.id}`):`${C}/${s.id}`;u||!e.metaKey&&!e.ctrlKey?x||(h({sessionId:s.id,sessionType:s.type,entryPoint:"list_tap",backendKind:"local"===s.type?s.remote?.kind??"local":void 0}),c.push(t)):window.open(t,"_blank")},[C,u,h,c,s.id,s.remote,s.type,x]),M=e.useCallback(e=>{if(u||1!==e.button)return;e.preventDefault();const t="remote"===s.type?Wpe(`${C}/${s.id}`):`${C}/${s.id}`;window.open(t,"_blank")},[C,u,s.id,s.type]),_=e.useCallback(()=>{a?.(s.id)},[a,s.id]),j=e.useCallback(()=>{i?.(s.id)},[i,s.id]),S="remote"===s.type?"requires_action"===s.sessionStatus:v,L=!0===s.hasBackgroundActivity||"running"===s.sessionStatus,N="remote"===s.type?!function(e){const t=new Date(e).getTime();return Date.now()-t>36e5}(s.timestamp)&&(o??"running"===s.sessionStatus):"local"===s.type&&!S&&L,I="remote"===s.type&&!!s.isUnread&&!x,T=S||I,A=S?d.formatMessage({defaultMessage:"Awaiting input",id:"tM90hqjWj0"}):d.formatMessage({defaultMessage:"Unread activity",id:"AbKYd6e6lG"}),E=function(e,t){return e.repoInfo?.branch?.startsWith("claude/slack-")?"slack":!1!==t?.bridgeEnabled&&"bridge"===e.environmentKind?"bridge":"local"===e.type?"local":"cloud"}(s,{bridgeEnabled:p}),R=e.useMemo(()=>s.repoInfo?s.repoInfo:s._originalSession?nfe(s._originalSession):void 0,[s.repoInfo,s._originalSession]),D=TE(R?.githubHost),H=AE(R?`${R.owner}/${R.name}`:void 0,R?.branch,D),P=function({sessionId:t,branchStatus:s,repo:n,githubHost:a}){const i=n?`${t}:${n}`:t,r=s?.pull_request??null,o=dfe(e=>e.sessions[t]),l=Ch(i),c=e.useMemo(()=>{if(r){const e=r.number;return{prNumber:e,prUrl:r.url??(n&&void 0!==e?xh(n,e,a):void 0),prState:IE(r.state),hasPr:!0,source:"branch-status"}}if(o?.prNumber&&o.prUrl){const e=IE(o.prState);return{prNumber:o.prNumber,prUrl:o.prUrl,prState:e,hasPr:!0,source:"ci-monitor"}}return l?{prNumber:l.prNumber,prUrl:l.prUrl,prState:l.prState,hasPr:!0,source:"cache"}:{prNumber:void 0,prUrl:void 0,prState:void 0,hasPr:!1,source:null}},[r,o?.prNumber,o?.prUrl,o?.prState,l,n,a]);return e.useEffect(()=>{if(!c.hasPr||!c.prNumber||!c.prState)return;const e=vh.getState().prs[i];e&&e.prNumber===c.prNumber&&e.prState===c.prState||vh.getState().setPr(i,{prNumber:c.prNumber,prUrl:c.prUrl??"",prState:c.prState})},[i,c.hasPr,c.prNumber,c.prUrl,c.prState]),c}({sessionId:s.id,branchStatus:H,repo:R?`${R.owner}/${R.name}`:void 0,githubHost:R?.githubHost}),U="remote"===s.type&&s.repoBranches?.length?s.repoBranches:Gfe,O=pfe(U),{hasPr:F,prNumber:V,prState:z}=U.length>0?O:P,Z=Bpe({owner:R?.owner,repo:R?.name,gheConfigurationId:D}),B=Qu("local"===s.type?s.cwd:void 0,s.sshConfig,"wsl"===s.remote?.kind?s.remote.distro:void 0),q=function({session:e,repoInfo:t,remoteDefaultBranch:s,localDefaultBranch:n}){if("local"===e.type&&e.sourceBranch)return e.sourceBranch;if(t&&Lne({owner:{login:t.owner},name:t.name}))return Tne;if("remote"===e.type&&t?.branch){const s=function(e,t){const s=e?.session_context?.sources?.find(e=>"git_repository"===e.type);if("git_repository"===s?.type){const e=s.revision?.replace("refs/heads/","");if(e&&e!==t)return e}return}(e._originalSession,t.branch);if(s)return s}if("remote"===e.type&&s&&s!==t?.branch)return s;if("local"===e.type)return n||s;return}({session:s,repoInfo:R,remoteDefaultBranch:Z,localDefaultBranch:B?.defaultBranch}),W=e.useMemo(()=>{if(!R?.branch)return[];const e={repo:`${R.owner}/${R.name}`,branch:R.branch,baseBranch:q};if("remote"!==s.type||0===U.length)return[e];const t=rfe(s._originalSession?.session_context?.sources);return U.map(({repo:s,branch:n})=>{if(s===e.repo&&n===e.branch)return e;const[a,i]=s.split("/"),r=t.get(s);return{repo:s,branch:n,baseBranch:a&&i&&Lne({owner:{login:a},name:i})?Tne:r&&r!==n?r:void 0}})},[R,q,s.type,s._originalSession,U]),$=LE(),G=e.useMemo(()=>U.map(({repo:e,branch:t,githubHost:s,gheConfigurationId:n})=>jE(e,t,n??$(s))),[U,$]),K=NE(G),Y=e.useMemo(()=>{if(0===G.length)return;const e=EE(Object.values(K));return Object.keys(e).length>0?e:void 0},[G.length,K]),Q="wsl"===s.remote?.kind?s.remote.distro:void 0,J=e.useMemo(()=>{if(0!==W.length)return t.jsx(Ife,{sessionId:s.id,sessionType:s.type,repos:W,cwd:s.diffCwd??s.cwd,wslDistro:Q,prStats:Y,hideSeparator:!0,compact:!0})},[W,s.id,s.type,s.diffCwd,s.cwd,Q,Y]);return t.jsx("div",{className:dt("group transition-all duration-200",{"max-h-0 opacity-0 scale-95":n&&!f,"max-h-[200px] opacity-100 scale-100":!(n&&!f),"animate-[slideDown_0.5s_ease-out]":n&&f,"opacity-50":s.isArchived}),onMouseEnter:()=>{"remote"===s.type&&k(s.id)},onMouseLeave:()=>{k.cancel()},onMouseDown:e=>{"remote"!==s.type||e.target instanceof Element&&e.target.closest("button")||k.flush()},children:t.jsx(Wfe,{title:s.title,hasPr:F,prState:z,prNumber:V,origin:E,isOffline:s.isBridgeOffline,isDesktop:u,diffStat:J,showSpinner:N,showActionIndicator:T,actionIndicatorLabel:A,isArchived:s.isArchived,isSelected:x,isDraft:s.isDraft,onArchive:a?_:void 0,onDelete:i?j:void 0,onClick:w,onAuxClick:M})})});function Yfe(e){if(!e)return;const t=e=>e?.trim()||void 0;return{...e,title:t(e.title),description:t(e.description),status_detail:t(e.status_detail),recent_action:t(e.recent_action),needs_action:t(e.needs_action)}}Kfe.displayName="SessionItem";const Qfe=new WeakMap;function Jfe(e){const t=Qfe.get(e);if(t)return t;const s=new Date(e.createdAt??Date.now()).toISOString(),n=new Date(e.lastActivityAt??e.createdAt??Date.now()).toISOString();let a;a=e.isArchived?"archived":e.pendingToolPermissions?.length?"requires_action":e.isRunning?"running":"idle";const i=e.prs?.find(e=>!e.inherited)?.repo,r={type:"session",id:e.sessionId,title:e.title,session_status:a,worker_status:e.isRunning?"running":"idle",environment_id:"local",created_at:s,updated_at:n,session_context:{sources:[],cwd:e.cwd,model:e.model,outcomes:i&&e.branch?[{type:"git_repository",git_info:{type:"github",repo:i,branches:[e.branch]}}]:void 0},metadata:{},task_summary:e.taskSummary,post_turn_summary:e.postTurnSummary?{title:e.postTurnSummary.title??"",description:e.postTurnSummary.description??"",status_category:e.postTurnSummary.status_category??"",status_detail:e.postTurnSummary.status_detail??"",recent_action:e.postTurnSummary.recent_action??"",needs_action:e.postTurnSummary.needs_action??"",is_noteworthy:e.postTurnSummary.is_noteworthy??!1}:void 0};return Qfe.set(e,r),r}function Xfe(t,s,n,a){const i=e.useRef({cache:new Map,list:[]}),r=e.useMemo(()=>{const e=i.current,r=new Map;let o=e.list.length===t.length;const l=t.map((t,i)=>{const l=s(t),c=[t,...n(t)],d=e.cache.get(l),u=d&&(m=d.deps,p=c,m.length===p.length&&m.every((e,t)=>Object.is(e,p[t])))?d.out:a(t);var m,p;return r.set(l,{deps:c,out:u}),o&&e.list[i]!==u&&(o=!1),u});return{cache:r,list:o?e.list:l}},[t,s,n,a]);return e.useEffect(()=>{i.current=r},[r]),r.list}const ege="ccr-pending-read-state",tge="ccr-pending-read-drop-terminal";let sge={};const nge=fT()(()=>({pending:{}}));function age(e){try{const t=localStorage.getItem(e);if(!t)return{};const s=JSON.parse(t);return s&&"object"==typeof s?s:{}}catch{return{}}}function ige(e){try{localStorage.setItem(ege,JSON.stringify(e)),localStorage.setItem(tge,JSON.stringify(sge))}catch{}}function rge(e,t,s){if(!s&&void 0===sge[e]?.[t])return;const n={...sge[e]};s?n[t]=!0:delete n[t],sge={...sge},0===Object.keys(n).length?delete sge[e]:sge[e]=n}let oge=!1;function lge(){oge||(oge=!0,sge=age(tge),nge.setState({pending:age(ege)}))}function cge(e,t,s,n){lge();const{pending:a}=nge.getState(),i={...a[e],[t]:s};!0===n?.dropOnTerminal&&rge(e,t,!0);const r=Object.keys(i);if(r.length>200)for(const l of r.slice(0,r.length-200))delete i[l],rge(e,l,!1);const o={...a,[e]:i};nge.setState({pending:o}),ige(o)}function dge(e,t){return nge.getState().pending[e]?.[t]}function uge(e){return nge.getState().pending[e]??{}}function mge(e,t){return!0===sge[e]?.[t]}const pge=new Map;function fge(e,t,s){const n=pge.get(e)??new Map;n.set(t,s),pge.set(e,n)}function gge(e,t){return pge.get(e)?.get(t)}function hge(e,t,s){const{pending:n}=nge.getState(),a=n[e];if(!a||a[t]!==s)return;rge(e,t,!1);const{[t]:i,...r}=a,o={...n};0===Object.keys(r).length?delete o[e]:o[e]=r,nge.setState({pending:o}),ige(o)}function Cge(e){return nge(t=>e?t.pending[e]:void 0)}function xge(){return{enabled:y("amber_tributary_heron")}}function vge(){return{enabled:y("amber_tributary_heron")}}function yge(){const{enabled:e}=xge(),t=y("amber_tributary_osprey");return e&&t}function bge(){return y("amber_tributary_osprey_settings")}function kge(){return y("amber_tributary_model_effort_main")}function wge(){return{enabled:y("amber_tributary_heron")}}function Mge(t,s){const{enabled:n}=vge(),{enabled:a}=wge(),i=M(),{activeOrganization:r}=v(),o=r?.uuid,l=RE(),c=y("3540182858"),[d]=Rh(Dh,null,{legacyLocalStorageKey:Dh}),u=Hh(),m=e.useMemo(()=>{const e=d??(u?Ph(!0,c):null);return null!==e&&Uh(Oh(e,c,!0))},[d,c,u]),p=t&&m?n&&a?"all":"mine":"none",f="none"!==p,{data:g,isLoading:h}=pL({queryKey:[Fh,o,p,s],enabled:f&&!!o,refetchInterval:3e4,refetchOnWindowFocus:!0,queryFn:async()=>{if(!o||"none"===p)return[];const{data:e}=await Vh(i,o,{limit:200,origins:s?[...s]:void 0,relations:"all"===p?["started_by","participated"]:["started_by"]});return(e??[]).map(zh).filter(e=>!fh(e)&&!Zh(e)&&!e.title?.includes("__CBU_POOLED__"))}}),C=e.useRef([]),x=e.useMemo(()=>f&&g?g.map(e=>{const t=Kpe(afe(e),l.get(e.id)),s=function(e){const t=[],s=e.session_context?.sources;if(s)for(const n of s)if("git_repository"===n.type&&n.url){const e=gh(n.url);if(e){const s=e.split("/")[1];s&&t.push(s)}}return t.sort((e,t)=>e.localeCompare(t))}(e);return{id:e.id,title:e.title??"Untitled session",timestamp:e.updated_at,createdAt:e.created_at,isArchived:"archived"===e.session_status,type:"remote",isAgentOwned:!0,sessionGroupingId:e.session_grouping_id??void 0,startedByAccountId:e.started_by_account_id,sessionStatus:e.session_status,repoInfo:nfe(e),repoBranches:t.length>0?t:void 0,allRepoNames:s.length>1?s:void 0,environmentId:e.environment_id,postTurnSummary:Yfe(e.post_turn_summary),taskSummary:e.task_summary,_originalSession:e}}):[],[f,g,l]),b=e.useMemo(()=>xL(C.current,x),[x]);return e.useEffect(()=>{C.current=b},[b]),{agentOwnedSessions:b,isLoadingAgentOwned:f&&h}}function _ge(e,t){return e.error&&void 0!==e.errorAt&&t-e.errorAt<6048e5?e.error:void 0}function jge(e,t){return e.some(e=>!e.bridgeSessionId&&!e.isArchived&&void 0!==e.createdAt&&Math.abs(t-e.createdAt)<6e4)}const Sge=["archived"];function Lge(e){if("all"!==e)return"active"===e?Bh:Sge}const Nge={sshHost:!0,sshPort:!0,sshIdentityFile:!0,remoteCwd:!0};function Ige(e,t){return e===t||!(!e||!t)&&Object.keys(Nge).every(s=>e[s]===t[s])}function Tge(e,t){const s=e.filter(e=>!e.isArchived),n=new Set;for(const i of e)if(!Rse(i))for(const e of[i.cwd,i.originCwd,i.worktreePath])e&&n.add(e);const a=new Map;for(const i of s){const e=Use(Rse(i));if(e)for(const t of[i.cwd,i.originCwd,i.worktreePath])!t||n.has(t)||a.has(t)||a.set(t,e)}if(a.size===t.size){let e=!0;for(const[s,n]of a)if(!Ige(t.get(s),n)){e=!1;break}if(e)return t}return a}function Age(e){const t=new Set;for(const n of e)if(!Rse(n))for(const e of[n.cwd,n.originCwd,n.worktreePath])e&&t.add(e);const s=new Map;for(const n of e){if(n.isArchived)continue;const e=Rse(n);if("wsl"===e?.kind)for(const a of[n.cwd,n.originCwd,n.worktreePath])!a||t.has(a)||s.has(a)||s.set(a,e.distro)}return s}function Ege(t=!0){const s="boolean"==typeof t?{enabled:t}:t,{enabled:n=!0,branchStatusPollInterval:a,includeAgentOwned:i=!1}=s,r="statuses"in s?s.statuses:Bh,o=II(),l=aO(),{activeOrganization:c}=v(),d=Cge(c?.uuid),{data:u}=NI(),{environmentKindMap:m,environmentOnlineMap:p,activeEnvironmentIds:f}=function(t){const s=e.useRef(new Map);return e.useMemo(()=>{const e=new Map,n=new Set;if(t)for(const a of t)n.add(a.environment_id),s.current.set(a.environment_id,a.kind),"bridge"===a.kind&&e.set(a.environment_id,!1!==a.bridge_info?.online);return{environmentKindMap:s.current,environmentOnlineMap:e,activeEnvironmentIds:t?n:null}},[t])}(u?.environments),{data:g,isLoading:h,hasNextPage:C,isFetchingNextPage:x,fetchNextPage:y,isError:b,isPlaceholderData:M,getCachedPageCount:_,trimCachedPages:j}=G(n,{statuses:r}),S=e.useCallback(()=>{y({cancelRefetch:!1})},[y]),L=e.useCallback(async()=>{const e=_(),{exhausted:t}=await async function(e,t){const s=e=>!!e.isError||!!e.isFetchNextPageError;try{let n=await e({cancelRefetch:!1});for(let a=0;n.hasNextPage&&!s(n)&&a<t;a++)n=await e({cancelRefetch:!1});return{exhausted:!n.hasNextPage&&!s(n)}}catch(n){return k.error(w.LOCAL_SESSION,"drainRemotePages threw",n),{exhausted:!1}}}(y,40);return{exhausted:t,release:()=>j(e)}},[y,_,j]),N=g?.data,I=RE(),{remoteRepoBranches:T,remoteSessionIds:A}=e.useMemo(()=>{if(!N)return{remoteRepoBranches:TI,remoteSessionIds:TI};const{repoBranches:e,sessionIds:t}=Jpe(N);return{remoteRepoBranches:e,remoteSessionIds:t}},[N]),E=AI(),R=!EI(),D=!1,H=e.useMemo(()=>{const e=new Set;for(const t of E)t.isArchived&&"wsl"===Rse(t)?.kind||(t.cwd&&e.add(t.cwd),t.originCwd&&e.add(t.originCwd));return Array.from(e)},[E]),[P,U]=e.useState(()=>new Map),O=Tge(E,P);O!==P&&U(O);const F=e.useMemo(()=>Age(E),[E]),V=zpe(H,O,F),z=e.useMemo(()=>{const e=[],t=new Set,s=_E(),n=(n,a)=>{if(e.length>=$pe)return;const i=`${n}:${a}`;if(t.has(i))return;const r=s[jE(n,a)],o=r?.pull_request?.state;"merged"!==o&&"closed"!==o&&(t.add(i),e.push({repo:n,branch:a}))};for(const[,a]of V){if(e.length>=$pe)break;a.owner&&a.name&&a.branch&&(a.defaultBranch&&a.branch===a.defaultBranch||n(`${a.owner}/${a.name}`,a.branch))}for(const a of E){if(e.length>=$pe)break;if(!a.branch||!a.originCwd)continue;const t=V.get(a.originCwd);t?.owner&&t.name&&n(`${t.owner}/${t.name}`,a.branch)}return e},[V,E]),{agentOwnedSessions:Z,isLoadingAgentOwned:B}=Mge(i,Kh),{agentRepoBranches:q,agentSessionIds:W}=e.useMemo(()=>{const e=[],t=[];for(const s of Z)s.isArchived||(t.length<$pe&&t.push(s.id),e.length<$pe&&e.push(...s.repoBranches??[]));return{agentRepoBranches:e,agentSessionIds:t}},[Z]),$=e.useMemo(()=>{const e=new Set(T.map(e=>`${e.repo}:${e.branch}:${e.githubHost??""}`)),t=[...T],s=s=>{const n=`${s.repo}:${s.branch}:${s.githubHost??""}`;e.has(n)||(e.add(n),t.push(s))};for(const n of z)s(n);for(const n of q)s(n);return t.slice(0,$pe)},[T,z,q]),K=e.useMemo(()=>[...A,...W].slice(0,$pe),[A,W]);DE({caller:"ccd-sidebar",repoBranches:$,discoverSessionPrs:!0,sessionIds:K,enabled:$.length>0||K.length>0,refetchInterval:a});const Y=e.useCallback(e=>e.sessionId,[]),Q=e.useMemo(()=>E.some(e=>void 0!==e.errorAt),[E]),[J,X]=e.useState(()=>Math.floor(Date.now()/36e5));e.useEffect(()=>{if(!Q)return;const e=setInterval(()=>X(Math.floor(Date.now()/36e5)),36e5);return()=>clearInterval(e)},[Q]);const ee=e.useCallback(e=>[e.cwd?V.get(e.cwd):void 0,e.originCwd?V.get(e.originCwd):void 0,O.get(e.originCwd||e.cwd),void 0!==e.errorAt?J:void 0],[V,O,J]),te=e.useCallback(e=>{const t=Date.now(),s=e.originCwd||e.cwd,n=s?nm(s):void 0,a=e.cwd?V.get(e.cwd):void 0,i=Jfe(e),r=!a?.owner&&e.originCwd?V.get(e.originCwd):void 0,o=e.branch||a?.branch||"";return{id:e.sessionId,title:e.title||e.worktreeName||"General coding session",timestamp:new Date(e.lastActivityAt??e.createdAt??t).toISOString(),createdAt:new Date(e.createdAt??t).toISOString(),isArchived:e.isArchived??!1,type:"local",repoInfo:a&&a.owner?{owner:a.owner,name:a.name,branch:o}:r?.owner&&e.branch?{owner:r.owner,name:r.name,branch:e.branch}:n?{owner:"",name:n,branch:""}:void 0,cwd:s,remote:Rse(e),sshConfig:O.get(s),diffCwd:e.cwd,sourceBranch:e.sourceBranch,homePath:e.homePath,scheduledTaskId:e.scheduledTaskId,prs:e.prs,sessionStatus:e.pendingToolPermissions?.length?"requires_action":e.isRunning?"running":"idle",hasBackgroundActivity:e.hasBackgroundActivity??!1,postTurnSummary:Yfe(i.post_turn_summary),taskSummary:i.task_summary,error:_ge(e,t),_originalSession:i}},[V,O]),se=Xfe(E,Y,ee,te),ne=e.useMemo(()=>{const e=new Set;for(const t of E)RI(t,e);return e},[E]),[ae,ie]=e.useState(()=>Date.now()),re=jge(E,ae);e.useEffect(()=>{if(!re&&!jge(E,Date.now()))return;function e(){ie(Date.now())}const t=setTimeout(e,0),s=setInterval(e,5e3);return()=>{clearTimeout(t),clearInterval(s)}},[E,re]);const oe=Xfe(e.useMemo(()=>N?N.filter(e=>!ne.has(qh(e.id))&&((!re||!Wh(e)&&!o.has(e.environment_id)&&"bridge"!==m.get(e.environment_id)||!function(e,t){const s=Date.parse(e);return Number.isFinite(s)&&Math.abs(t-s)<6e4}(e.created_at,ae))&&(!!(Wh(e)||o.has(e.environment_id)||""!==e.environment_id||e.self_hosted_runner_pool_id||e.session_context&&0!==e.session_context.sources.length)&&(!e.title?.includes("__CBU_POOLED__")&&(!fh(e)&&(!Zh(e)&&(!$h(e)&&!l.has(e.environment_id)))))))):TI,[N,ne,re,ae,o,m,l]),e.useCallback(e=>e.id,[]),e.useCallback(e=>[I.get(e.id),d?.[e.id],m.get(e.environment_id),p.get(e.environment_id),null===f?null:f.has(e.environment_id),o.has(e.environment_id)],[I,d,m,p,f,o]),e.useCallback(e=>{const t=nfe(e),s=Kpe(afe(e),I.get(e.id)),n=m.get(e.environment_id),a=Wh(e)||o.has(e.environment_id)||"bridge"===n,i=null!==f&&!!e.environment_id&&!f.has(e.environment_id)&&a;return{id:e.id,title:e.title??"Untitled session",timestamp:e.updated_at,createdAt:e.created_at,isArchived:"archived"===e.session_status,type:a?"bridge":"remote",sessionGroupingId:e.session_grouping_id??void 0,sessionStatus:e.session_status,repoInfo:t,repoBranches:s.length>0?s:void 0,environmentId:e.environment_id,environmentKind:a?"bridge":n,isBridgeOffline:a?e.connection_status?"disconnected"===e.connection_status||i:!1===p.get(e.environment_id)||i:void 0,isDisconnected:i,isUnread:Gh(e,d?.[e.id]),postTurnSummary:Yfe(e.post_turn_summary),taskSummary:e.task_summary,_originalSession:e}},[I,m,p,f,o,d])),le=e.useMemo(()=>Qpe([...se,...oe,...i?Z:[]],e=>e.timestamp),[se,oe,Z,i]),ce=h||i&&B;return e.useMemo(()=>({allSessions:le,localSessions:se,remoteSessions:oe,remoteSessionsData:N,isLoadingRemote:ce,isLoadingLocal:R,isPlaceholderData:M,hasMoreRemote:C,isFetchingMoreRemote:x,fetchMoreRemote:S,fetchAllRemote:L,isRemoteError:b,isLocalError:D}),[le,se,oe,N,ce,R,M,C,x,S,L,b,D])}const Rge=/\b(messages?|conversation)\b/i;function Dge(e){const t=e.categories.filter(e=>Rge.test(e.name)).reduce((e,t)=>e+t.tokens,0);if(0===t)return e;const s=e.categories.filter(e=>!Rge.test(e.name)).map(e=>"Free space"===e.name?{...e,tokens:e.tokens+t}:e),n=Math.max(0,e.totalTokens-t),a=e.rawMaxTokens>0?Math.round(n/e.rawMaxTokens*100):e.percentage;return{...e,categories:s,totalTokens:n,percentage:a}}function Hge(e){if(!e)return 0;const t=/^([\d.]+)\s*([km])?$/i.exec(e.trim());if(!t)return 0;const s=parseFloat(t[1]),n="m"===t[2]?.toLowerCase()?1e6:t[2]?1e3:1;return Math.round(s*n)}const Pge=/\*\*Model:\*\*\s*(.+?)\s*$/m,Uge=/\*\*Tokens:\*\*\s*(\S+)\s*\/\s*(\S+)\s*\((\d+)%\)/;function Oge(e,t){const s=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),n=new RegExp(`### ${s}\\n\\n([\\s\\S]*?)(?=\\n###|\\n##|$)`).exec(e);return n?n[1].split("\n").filter(e=>e.startsWith("|")&&!/^\|[-\s|:]+\|$/.test(e)).slice(1).map(e=>e.split("|").slice(1,-1).map(e=>e.trim())):[]}function Fge(e){if(!e.startsWith("## Context Usage"))return{text:e,usage:null};const t=Pge.exec(e)?.[1],s=Uge.exec(e);if(!t||!s)return{text:e,usage:null};const n=Hge(s[2]);if(0===n)return{text:e,usage:null};const a=Oge(e,"Estimated usage by category").map(([e,t])=>({name:e??"",tokens:Hge(t)})),i=Oge(e,"MCP Tools").map(([e,t,s])=>({name:e??"",serverName:t??"",tokens:Hge(s)})),r=Oge(e,"Memory Files").map(([e,t,s])=>({type:e??"",path:t??"",tokens:Hge(s)})),o=Oge(e,"Custom Agents").map(([e,,t])=>({agentType:e??"",tokens:Hge(t)}));return{text:e,usage:{model:t,totalTokens:Hge(s[1]),rawMaxTokens:n,percentage:Number(s[3]),categories:a,mcpTools:i,memoryFiles:r,agents:o}}}function Vge(e){if(!("type"in e)||"system"!==e.type||!("subtype"in e)||"model_refusal_fallback"!==e.subtype)return null;const t=e;return"retry"===t.direction&&t.original_model&&t.fallback_model?{direction:t.direction,content:t.content,originalModel:t.original_model,fallbackModel:t.fallback_model,apiRefusalCategory:"cyber"===t.api_refusal_category||"bio"===t.api_refusal_category||"frontier_llm"===t.api_refusal_category||"reasoning_extraction"===t.api_refusal_category?t.api_refusal_category:null}:null}function zge(e){return e.uuid}const Zge="client-";function Bge(e){return!0===e.isOptimisticEcho}const qge=[];function Wge(e){const t=e,s=t.timestamp??t.created_at;if(!s)return null;const n=Date.parse(s);return Number.isNaN(n)?null:n}function $ge(e){const t=e,s=e=>{if(!e)return null;const t=Date.parse(e);return Number.isNaN(t)?null:t};return{server:s(t.created_at),browser:s(t.timestamp)}}function Gge(e){const t=e.message?.content;return Array.isArray(t)&&t.some(e=>!!e&&"object"==typeof e&&"tool_result"===e.type)}function Kge(e){return"parent_tool_use_id"in e&&!!e.parent_tool_use_id}function Yge(e){return"result"===e.type||"assistant"===e.type&&"isApiErrorMessage"in e&&!0===e.isApiErrorMessage}function Qge(e){if(Yge(e))return!0;if("assistant"!==e.type)return!1;const t=e.message?.stop_reason;return"end_turn"===t}function Jge(e){if("user"!==e.type)return!1;if("isSynthetic"in e&&e.isSynthetic)return!1;if("isMeta"in e&&e.isMeta)return!1;const t=zge(e);return(!t||!t.startsWith(Zge))&&!Gge(e)}function Xge(e){if("user"!==e.type)return!1;if(Gge(e))return!1;if("isCompactSummary"in e&&e.isCompactSummary)return!1;if("isVisibleInTranscriptOnly"in e&&e.isVisibleInTranscriptOnly)return!1;if("sourceToolUseID"in e&&e.sourceToolUseID)return!1;const t=zge(e);return!(t&&t.startsWith(Zge))}function ehe(e,t,s=Jge){for(let n=e.length-1;n>=0;n--){const a=e[n];if(!Kge(a)){if(t(a))return{kind:"terminal",index:n};if(s(a))return{kind:"prompt",index:n}}}return{kind:"none"}}function the(e){const t=ehe(e,Yge);return"terminal"===t.kind?t.index:null}function she(e,t,s,n=!1){for(const a of e)if(Bge(a)&&(void 0===s||zge(a)===s))return!1;if(n)return!1;for(let a=t-1;a>=0;a--){const s=e[a];if(Kge(s)||!Jge(s)||Bge(s))continue;const n=$ge(e[t]),i=$ge(s);return null!==n.server&&null!==i.server?n.server>=i.server:null!==n.browser&&null!==i.browser?n.browser>=i.browser:null!==n.server==(null!==i.server)}return!0}function nhe(e,t){if(null===e)return null;const s=function(e,t=Date.now()){const s=ehe(e,Qge,Xge);if("prompt"!==s.kind)return null;const n=Wge(e[s.index]);if(null===n)return null;const a=$ge(e[s.index]);for(let i=s.index-1;i>=0;i--){const t=e[i];if(!Kge(t)&&Qge(t)){const e=$ge(t);if(null!==e.server&&null!==a.server){if(a.server<e.server)return null}else{if(null===e.browser||null===a.browser)return null;if(a.browser<e.browser)return null}break}}return Math.min(n,t)}(t);return null!==s&&s<e.startTime?{...e,startTime:s}:e}function ahe(e){if("assistant"===e.type&&!e.parent_tool_use_id){const t=e.message?.model;return t&&"<synthetic>"!==t?{model:t}:null}if("system"!==e.type)return null;const t=e.subtype;if("init"===t){const t=e,s={...t.model&&{model:t.model},...t.permissionMode&&{permissionMode:t.permissionMode}};return s.model||s.permissionMode?s:null}if("status"===t){const t=e;return t.permissionMode?{permissionMode:t.permissionMode}:null}if("model_refusal_fallback"===t){const t=Vge(e);return t?{model:t.fallbackModel}:null}return null}function ihe(e){if("assistant"!==e.type)return null;if("parent_tool_use_id"in e&&e.parent_tool_use_id)return null;const t=e.message?.usage;if(!t)return null;const s=(t.input_tokens??0)+(t.cache_read_input_tokens??0)+(t.cache_creation_input_tokens??0);return s>0?s:null}function rhe(e){if("assistant"!==e.type)return null;if("parent_tool_use_id"in e&&e.parent_tool_use_id)return null;const t=e.message?.content;if(!Array.isArray(t))return null;for(const s of t)if("text"===s.type&&s.text){const{usage:e}=Fge(s.text);if(e)return e}return null}function ohe(e){const t=zge(e);return!("user"!==e.type||"isSynthetic"in e&&e.isSynthetic||"isMeta"in e&&e.isMeta||"parent_tool_use_id"in e&&e.parent_tool_use_id||t&&t.startsWith(Zge))}function lhe(e){for(let t=e.length-1;t>=0;t--){const s=e[t];if(ohe(s))return;if("prompt_suggestion"===s.type)return s.suggestion||void 0}}function che(e){return 0===e.queuedSteered.length?e.queuedDeferred:0===e.queuedDeferred.length?e.queuedSteered:[...e.queuedSteered,...e.queuedDeferred]}function dhe(e){return e.queuedSteered.length>0||e.queuedDeferred.length>0}function uhe(e,t,s,n,a,i){const r=e.slice(t),o="seed"===n,l="reseed"===n,c=function(e){let t=null,s=null;for(let n=e.length-1;n>=0&&(null===t&&(t=ihe(e[n])),null===s&&(s=rhe(e[n])),null===t||null===s);n--);return{contextTokens:t,contextUsage:s}}(o||l?e:r),d=o?a.contextTokens??c.contextTokens:c.contextTokens??a.contextTokens,u=o?a.contextUsage??c.contextUsage:c.contextUsage??a.contextUsage,m=function(e){let t;for(const s of e){const e=ahe(s);e&&(t={...t,...e})}return t??null}(r),p=m?o||l?{...m,...a.liveMeta}:{...a.liveMeta,...m}:a.liveMeta,f=function(e,t){if(e===t)return!0;if(null===e||null===t)return!1;const s=Object.keys(e),n=Object.keys(t);return s.length===n.length&&n.every(s=>Object.is(e[s],t[s]))}(a.liveMeta,p)?a.liveMeta:p;let g,h=!1,C=null;if("gap"===n&&null!==i.terminalSeenAtSeq){const t=ehe(e,Yge);"terminal"===t.kind&&(C="result"===e[t.index].type?"result":"apiError",h=null===a.pendingTurn||!0!==a.pendingTurn.discarded&&she(e,t.index,a.pendingTurn.promptUuid,i.armedPromptUnplaced))}let x=a.queuedSteered,v=a.queuedDeferred,y=a.pendingQueuedSends,b=a.compactionStatus,k=a.promptSuggestion;if(("gap"===n||"reseed"===n)&&dhe(a)){const e=new Set;for(const i of s){const t=zge(i);t&&e.add(t)}const t=t=>{const s=zge(t);return!s||!e.has(s)},n=x.filter(t);n.length!==x.length&&(x=n.length>0?n:qge);const a=v.filter(t);a.length!==v.length&&(v=a.length>0?a:qge)}if(h){const e=v[0],t=void 0!==e||a.pendingQueuedSends>0,s="result"===C&&t&&null!==a.pendingTurn,n=e?zge(e):void 0;g=s?{startTime:Date.now(),armedAt:Date.now(),endTurnSeen:!1,interrupting:!1,responseStarted:!1,discarded:!1,rearmed:!0,promptUuid:n,streamingAnchor:null}:null,x=qge,v=qge,y=0,b=null,k=null}else g=nhe(a.pendingTurn,e);if(l){if(null===a.pendingTurn){const t=new Set;for(const e of s){const s=zge(e);s&&t.add(s)}if(!e.some(e=>{const s=zge(e);return ohe(e)&&!!s&&!t.has(s)})){const e=lhe(s);if(void 0!==e)k=e;else for(let t=s.length-1;t>=0;t--){const e=s[t];if(ohe(e)){const t=zge(e);t&&!a.messages.some(e=>zge(e)===t)&&(k=null);break}}}}}else if("gap"===n&&null===g){const e=lhe(s);void 0!==e&&(k=e)}else if("seed"===n&&0===a.messages.length&&null===k&&null===g){const e=lhe(s);void 0!==e&&(k=e)}return{contextTokens:d,contextUsage:u,liveMeta:f,promptSuggestion:k,pendingTurn:g,queuedSteered:x,queuedDeferred:v,pendingQueuedSends:y,compactionStatus:b,gapTerminalFired:h}}const mhe=new Map,phe=new Map,fhe=new Map,ghe=new Map,hhe=new Map;function Che(e,t){if(t<=0)return;const s=mhe.get(e)??0;0===s&&hhe.set(e,performance.now()),mhe.set(e,s+t)}const xhe={add(e,t){Che(e,t)},addThinkingText(e,t){fhe.has(e)||(Che(e,t),ghe.set(e,(ghe.get(e)??0)+t))},setTaskTokens(e,t,s){const n=`${e}:${t}`,a=phe.get(n);if(void 0===a)return void phe.set(n,s);const i=s-a;i>0&&(Che(e,4*i),phe.set(n,s))},setThinkingTokens(e,t){if(t<=0)return;const s=t-(fhe.get(e)??0);if(s>0){let n=4*s;const a=ghe.get(e);if(void 0!==a){const t=Math.min(a,n);n-=t,a-t>0?ghe.set(e,a-t):ghe.delete(e)}Che(e,n),fhe.set(e,t)}},thinkingBaseline:e=>fhe.get(e)??0,startThinkingBlock(e){fhe.delete(e)},get:e=>mhe.get(e)??0,firstPositiveAt:e=>hhe.get(e),reset(e){mhe.delete(e),fhe.delete(e),ghe.delete(e),hhe.delete(e)},dropSession(e){mhe.delete(e),fhe.delete(e),ghe.delete(e),hhe.delete(e);const t=`${e}:`;for(const s of phe.keys())s.startsWith(t)&&phe.delete(s)}},vhe=AL({label:IL(),description:IL(),preview:IL().optional()}),yhe=AL({question:IL(),header:IL(),options:NL(vhe).min(2).max(4),multiSelect:RL()}),bhe=AL({preview:IL().optional(),notes:IL().optional()}),khe=AL({questions:NL(yhe).min(1).max(4).optional(),answers:DL(IL(),HL([IL(),NL(IL())])).optional(),annotations:DL(IL(),bhe).optional()}),whe="AskUserQuestion",Mhe="The user did not answer this question. Make a reasonable assumption and carry on, but tell the user what assumption you made.";function _he({toolPermissionRequests:t,sendToolDecision:s,trackBaku:n}){const a=e.useMemo(()=>t?.find(e=>e.toolName===whe)??null,[t]),i=e.useMemo(()=>{if(!a)return null;const e=khe.safeParse(a.input);return e.success&&e.data.questions?.length?{req:a,questions:e.data.questions}:null},[a]),r=e.useRef(new Set);e.useEffect(()=>{a&&!i&&s&&(r.current.has(a.toolUseId)||(r.current.add(a.toolUseId),s(a.toolUseId,a.toolUseId,a.input,"once").catch(()=>{})))},[a,i,s]);const[o,l]=e.useState({toolUseId:"",step:0}),c=e.useRef({}),d=e.useRef(""),u=i?.req.toolUseId??"",m=o.toolUseId===u?o.step:0,p=e.useCallback(e=>{if(!i||!s)return;const{req:t,questions:n}=i,a=t.toolUseId;s(t.toolUseId,t.toolUseId,{questions:n,answers:e},"once").then(()=>{d.current===a&&(c.current={},d.current="")}).catch(()=>{})},[i,s]),f=e.useCallback(e=>{if(!i)return;const{questions:t,req:s}=i,a=t[m];if(!a)return;const r=o.toolUseId===s.toolUseId?c.current:{},u=Array.isArray(e)?e.join(", "):e;c.current={...r,[a.question]:u},d.current=s.toolUseId,n?.({event_key:"claudeai.baku.session.question_answered",step_index:m,total_steps:t.length,is_multi_select:Array.isArray(e)}),m+1<t.length?l({toolUseId:s.toolUseId,step:m+1}):p(c.current)},[i,m,o.toolUseId,p,n]),g=e.useCallback(()=>{i&&0!==m&&l({toolUseId:i.req.toolUseId,step:m-1})},[i,m]),h=e.useCallback(()=>{if(!i)return;const{questions:e,req:t}=i,s=d.current===t.toolUseId?c.current:{},a=Object.fromEntries(e.map(e=>[e.question,s[e.question]??Mhe]));n?.({event_key:"claudeai.baku.session.question_skipped",questions_answered:Object.keys(s).length,questions_total:e.length}),p(a)},[p,i,n]),C=e.useMemo(()=>{if(!i)return null;const{questions:e,req:t}=i,s=e[m];return s?{req:t,question:s,step:m+1,totalSteps:e.length}:null},[i,m]),x=C?`${C.req.toolUseId}:${m}`:null,v=e.useRef(x);return e.useEffect(()=>{null!==x&&x!==v.current&&(v.current=x,C&&n?.({event_key:"claudeai.baku.session.question_shown",step_index:m,total_steps:C.totalSteps}))},[x,m,C,n]),{currentQuestion:C,handleQuestionAnswer:f,handleQuestionSkip:h,handleQuestionBack:g}}const jhe="The user edited your plan directly. Start from their edited version when revising.";fT()(()=>({planId:null,comments:[],editedPlanText:null}));const She="create-pr-command",Lhe=`<${She}>`,Nhe=`</${She}>`;function Ihe(e){const t=e.cwd?`\nWorking directory: ${e.cwd}`:"",s=`\n\n## Target\n\n${e.noRemote?"":`Repository: ${e.repo}\n`}Branch: ${e.branch}${t}`,n=(e.noRemote?'## Overview\n\nThis folder has no GitHub remote. Set one up, then create a pull request.\n\n## Steps\n\n1. Check `gh auth status`. If gh isn\'t authenticated, say so and stop \u2014 don\'t loop on auth prompts.\n2. Look for a likely existing repo: `gh repo list --limit 100 --json nameWithOwner,url` and match on the folder name.\n3. Use the AskUserQuestion tool to let the user pick the path forward. Offer the options that actually apply \u2014 e.g. "Link <owner/repo>" when step 2 found a match, "Create private repo", "Create public repo". The built-in "Other" option covers pasting a URL. Skip the question only if step 2 found exactly one obvious match.\n4. Add the remote (`git remote add origin <url>`) or create it (`gh repo create <name> --private|--public --source=. --remote=origin`).\n5. Commit anything uncommitted, push the branch with `-u`, and open the PR with `gh pr create{{DRAFT_FLAG}}`.\n6. Report the PR URL wrapped in a `<pr-created>` tag on its own line so the UI can render a live status card, like this: `<pr-created>https://github.com/owner/repo/pull/123</pr-created>`':"## Overview\n\nCreate a pull request for the changes in this session.\n\n## Steps\n\n1. Check for uncommitted changes. If any exist, stage and commit them with a message that describes what changed and why.\n2. Push the branch to the remote.\n3. Open a PR with `gh pr create{{DRAFT_FLAG}}`. Write a title that summarizes the change and a body that covers what changed, why, and anything a reviewer should know. If the repo has a PR template, follow it.\n4. Report the PR URL when done. Wrap the URL in a `<pr-created>` tag on its own line so the UI can render a live status card, like this: `<pr-created>https://github.com/owner/repo/pull/123</pr-created>`\n\nIf a PR already exists for this branch, push any new commits and report the existing URL wrapped in the same `<pr-created>` tag instead of creating a duplicate.").replace("{{DRAFT_FLAG}}",e.draft?" --draft":"");return`${Lhe}\n${n}${s}\n${Nhe}`}const The=new RegExp(`^${Lhe}[\\s\\S]*?${Nhe}$`);function Ahe(e){return The.test(e.trim())?"/create-pr":e}const Ehe=/<pr-created>\s*(https?:\/\/\S+?)\s*<\/pr-created>/gi,Rhe=/https?:\/\/([^/\s]+)\/([^/\s]+)\/([^/\s]+)\/pull\/(\d+)/,Dhe=/https:\/\/github\.com\/[^/\s]+\/[^/\s]+\/pull\/\d+(?![\w/#])/g;function Hhe(e){const t=Rhe.exec(e);return t?{url:e,host:t[1],repo:`${t[2]}/${t[3]}`,number:Number(t[4])}:null}function Phe(e){const t=[],s=e.replace(Ehe,(e,s)=>{const n=Hhe(s);return n?(t.push(n),s):s});if(0===t.length){const e=new Set;for(const n of s.matchAll(Dhe)){if(e.has(n[0]))continue;e.add(n[0]);const s=Hhe(n[0]);s&&t.push(s)}}return{text:s,prs:t}}const Uhe=/<code-stats>([\s\S]*?)<\/code-stats>/;function Ohe(e){const t=Uhe.exec(e);if(!t)return{kind:"none"};const s=t[1].trim();if(!s)return{kind:"loading"};try{const e=JSON.parse(s);return"object"==typeof e&&Array.isArray(e.dailyActivity)?{kind:"data",stats:e}:{kind:"none"}}catch{return{kind:"none"}}}function Fhe(e){const t=new Set;let s;for(const n of e)if("assistant"===n.type){for(const e of n.message.content)if("tool_use"===e.type&&"ExitPlanMode"===e.name){const t=e.input;t?.plan&&(s={id:e.id,plan:t.plan})}}else if("user"===n.type&&"message"in n){const e=n.message.content;if(Array.isArray(e))for(const s of e)"tool_result"===s.type&&t.add(s.tool_use_id)}return{lastPlan:s,isPending:!!s&&!t.has(s.id)}}const Vhe="__ULTRAPLAN_TELEPORT_LOCAL__";function zhe({sessionId:t,source:s,messages:n,sendToolDecision:a,onApprove:i,onDeny:r}){const{track:o}=ae(),l="ccr",[c,d]=e.useState(null),u=function(e){return Lte(t=>t.approvedPlans[e]?.plan)}(t),m=void 0!==u,p=Ite(t);e.useMemo(()=>{},[s,p,t,l]);const f=e.useMemo(()=>{if(!n)return;const e=Fhe(n);return e.lastPlan&&e.isPending?iee(t,e.lastPlan.id)?(k.debug(w.LOCAL_SESSION,"Skipping plan modal for already-acknowledged tool decision",{sessionId:t,toolUseId:e.lastPlan.id,toolType:"ExitPlanMode"}),void Bl("code.plan_modal_skipped",{attributes:{session_id:t,request_id:"",surface:l,reason:"already_acknowledged"}})):{requestId:e.lastPlan.id,plan:e.lastPlan.plan}:void 0},[s,n,t,l]),g=Lte(e=>e.setApprovedPlan),h=e.useMemo(()=>!n||m?null:Fhe(n),[s,n,m]);e.useEffect(()=>{h?.lastPlan&&!m&&g(t,h.lastPlan.plan)},[h,m,g,t]);const C=f,x=C?.requestId===c?void 0:C,v=e.useRef(x);v.current=x,e.useEffect(()=>{C&&C.requestId!==c&&d(null)},[C,c]);const y=e.useRef(null);e.useEffect(()=>{x&&y.current!==x.requestId&&(y.current=x.requestId,Bl("code.plan_modal_shown",{attributes:{session_id:t,request_id:x.requestId,plan_length:x.plan.length,surface:l}}))},[x,o,l,t]);const b=e.useCallback((e,s,n,c,u)=>{s?(o({event_key:"claudeai.code.plan.approved",surface:l,session_id:t,request_id:e,has_edited_plan:!!c,approval_target:u??"remote"}),"local"!==u&&o({event_key:"claudeai.code.permission_mode.changed",surface:l,previous_mode:"plan",current_mode:"default",change_method:"plan_approved",session_id:t})):(o({event_key:"claudeai.code.plan.rejected",surface:l,session_id:t,request_id:e,feedback_length:n?.trim().length??0,has_feedback:!!n?.trim(),has_edited_plan:n?.startsWith(jhe)??!1}),o({event_key:"claudeai.code.permission_mode.changed",surface:l,previous_mode:"plan",current_mode:"default",change_method:"plan_rejected",session_id:t})),s&&"local"!==u?i?.():s||n||r?.();const m={};let p;if(s&&"local"===u){const e=c??v.current?.plan??"";m._feedbackMessage=`${Vhe}\n${e}`,p="deny"}else s?(c&&(m.plan=c),p="once"):(n&&(m._feedbackMessage=n),p="deny");return a(e,e,m,p).then(()=>{d(e),s&&c&&g(t,c)})},[a,i,r,o,l,t,g]);return{pendingPlanApproval:x,sendPlanDecision:b,hasApprovedPlan:m}}const Zhe=["send_message","create_session","interrupt_session","archive_session","create_trigger"],Bhe=[`mcp__${Yh}__`,`mcp__${Qh}__`];function qhe(e){for(const t of Bhe)if(e.startsWith(t))return e.slice(t.length)}function Whe(e){const t=qhe(e);return t&&Zhe.includes(t)?t:"create_scheduled_task"===t||"mcp__scheduled-tasks__create_scheduled_task"===e?"create_trigger":void 0}function $he(e){const t=Whe(e);return void 0!==t?t:"send_later"===qhe(e)?"send_later":void 0}function Ghe(e){return"mcp__webagent__start_project_session"===e}function Khe(e){if(void 0===e)return null;let t;try{t=JSON.parse(e)}catch{return null}if("object"!=typeof t||null===t)return null;const s=t.session_id;return"string"==typeof s&&""!==s?{sessionId:s}:null}const Yhe="mcp__ccd_session__mark_chapter",Qhe="mcp__ccd_session__spawn_task";function Jhe(e){return e===Qhe}const Xhe=new Set(["AskUserQuestion","ExitPlanMode","SendUserMessage","SendUserFile","Workflow","Artifact","ReportFindings"]);function eCe(e){return Xhe.has(e)||Jhe(e)||void 0!==Whe(e)||Ghe(e)}function tCe(){return{pendingTools:new Map,deferredHoistToolIds:new Set,skipTranscriptTaskIds:new Set,taskEventItems:new Map,suppressedTaskIds:new Set,suppressedByWorkflowTaskIds:new Set,pendingToolEntryIdx:new Map,taskEventEntryIdx:new Map,frozenEntryIdxs:new Set}}function sCe(e){for(const t of Object.values(e))t.clear()}function nCe(e){if("isApiErrorMessage"in e&&!0===e.isApiErrorMessage)return!0;const t=e.error;return"string"==typeof t&&t.length>0}function aCe(e){if(!e||!e.trimEnd().endsWith("}"))return{};try{const t=JSON.parse(e);return t&&"object"==typeof t&&!Array.isArray(t)?t:{}}catch{return{}}}function iCe(e,t){return{kind:"chapter",id:e,title:"string"==typeof t.title&&t.title.trim()?t.title.trim():"",summary:"string"==typeof t.summary&&t.summary.trim()?t.summary.trim():void 0}}const rCe=new WeakMap,oCe=new WeakMap;function lCe(e){const t=[];let s=0,n=0,a=null,i=null,r=[];const o=()=>{for(const s of r)t.push({kind:"thinking",id:`${e.messageId}-th${n++}`,text:s});r=[]},l=()=>{if(!a||!i)return;const e=oCe.get(i),s=a;if("tools"===e?.kind&&e.tools.length===s.length&&e.tools.every((e,t)=>e===s[t]))t.push(e);else{const e={kind:"tools",id:s[0].id,tools:s};oCe.set(i,e),t.push(e)}a=null,i=null};for(const c of e.blocks){if("thinking"===c.kind){const e=c.text.trim();e&&r.push(e);continue}if("text"===c.kind){if(!c.text)continue;const n=W4(c.text);if(!n)continue;l(),o();let a=oCe.get(c);a||(a={kind:"text",id:`${e.messageId}-t${s}`,text:n},oCe.set(c,a)),s++,t.push(a)}else{if(c.name===Yhe){l(),o();let e=oCe.get(c);e||(e=iCe(c.id,aCe(c.partialJson)),oCe.set(c,e)),t.push(e);continue}let e=rCe.get(c);e||(e={id:c.id,name:c.name,input:aCe(c.partialJson),status:"running",...r.length&&{precedingThinking:r}},rCe.set(c,e)),r=[],a?a.push(e):(a=[e],i=c)}}return l(),o(),t}function cCe(e,t,s){if("string"==typeof e){const s=q4(e);return s?[{kind:"text",id:t,text:s}]:[]}if(!Array.isArray(e))return[];const n=[];let a=0,i=0,r=null,o=[];const l=()=>{for(const e of o)n.push({kind:"thinking",id:`${t}-th${i++}`,text:e});o=[]};for(const c of e){if("thinking"===c.type){const e=c.thinking?.trim();e&&o.push(e);continue}const e="text"===c.type?c.text:"connector_text"===c.type?c.connector_text:void 0;if(e){const s=q4(e);if(!s)continue;if(s===L7)continue;r=null,l();const{text:i,usage:o}=Fge(s),c=Ohe(i),{text:d}=Phe(i),u=a++;o?n.push({kind:"context",id:`${t}-t${u}-ctx`,usage:o}):"none"!==c.kind?n.push({kind:"stats",id:`${t}-t${u}-stats`,stats:"data"===c.kind?c.stats:null}):n.push({kind:"text",id:`${t}-t${u}`,text:d})}else if("tool_use"===c.type&&c.id&&c.name){if(c.name===Yhe){r=null,l(),n.push(iCe(c.id,c.input??{}));continue}const e={id:c.id,name:c.name,input:c.input??{},status:"running",...o.length&&{precedingThinking:o}};o=[],s.set(c.id,e),r?r.push(e):(r=[e],n.push({kind:"tools",id:c.id,tools:r}))}}return l(),n}function dCe(e,t,s){const n=("Task"===e.name||"Agent"===e.name)&&(!0===e.input.run_in_background||b6(e.toolUseResult));e.output=n&&!e.isError?"":t,e.isError&&("Tool execution was interrupted."===t||t.startsWith("[Request interrupted by user")?e.interrupted=!0:("Denied by user"===t||t.startsWith(Jh))&&(e.rejected=!0)),s.length>0&&(e.outputImages=s)}function uCe(e,t,s){const n=[];if(!Array.isArray(e))return n;for(const a of e){if("tool_result"!==a.type||!a.tool_use_id)continue;const e=t.get(a.tool_use_id);if(!e)continue;e.isError=!!a.is_error,e.status=a.is_error?"error":"completed",void 0!==s&&(e.toolUseResult=s);const{text:i,images:r}=xCe(a.content);dCe(e,i,r),Array.isArray(a.content)&&(e.rawResultContent=a.content),t.delete(a.tool_use_id),"ExitPlanMode"===e.name&&e.isError&&n.push(e)}return n}function mCe(e){return!e||e===Mhe||e===te}function pCe(e){return"completed"!==e.status||e.isError?[]:function(e){const t=Array.isArray(e.input.questions)?e.input.questions:[],s=e.toolUseResult?.answers,n=new Map;if(s)for(const[a,i]of Object.entries(s)){const e=Array.isArray(i)?i.join(", "):i;mCe(e)||n.set(a,e)}else if("string"==typeof e.output)for(const a of e.output.matchAll(/"([^"]+)"="([^"]+)"/g))mCe(a[2])||n.set(a[1],a[2]);return t.flatMap(e=>{const t="string"==typeof e.question?e.question:"";return t?[{question:t,answer:n.get(t)}]:[]})}(e).flatMap(e=>void 0!==e.answer?[{question:e.question,answer:e.answer}]:[])}function fCe(e){return e.events?.length||e.taskEvents?.length?[]:e.tools.filter(e=>"AskUserQuestion"===e.name&&pCe(e).length>0)}function gCe(e){if("string"!=typeof e.output)return"";if(!e.output.startsWith(Jh))return"";let t=e.output.slice(Jh.length).trim();if(t.startsWith(Vhe))return"";if(t.startsWith(jhe)){const e=84,s=t.indexOf("\n\n",e);t=-1===s?"":t.slice(s+2).trim()}return t}function hCe(e,t,s){for(const n of e){if(s?.has(n.id))continue;const e=gCe(n);if(!e)continue;const a=`${n.id}-revision`;t("user",[{kind:"text",id:a,text:e}],a,!0)}}function CCe(e){return function(e){V4.lastIndex=0;let t=e.replace(P4,"").replace(V4,"");return t!==e&&(Z4.lastIndex=0,t=t.replace(Z4,"")),B4.lastIndex=0,t=t.replace(B4,""),t.replace(/^\n+/,"").replace(/\n+$/,"")}(e)}function xCe(e){if("string"==typeof e)return{text:CCe(e),images:[]};if(!Array.isArray(e))return{text:"",images:[]};const t=[],s=[];for(const n of e)if("text"===n.type&&n.text){const e=CCe(n.text);e&&t.push(e)}else if("image"===n.type){const e=n.source?.data??n.data,t=n.source?.media_type??n.mimeType??"image/png";e&&s.push({data:e,mimeType:t})}return{text:t.join("\n"),images:s}}function vCe(e,t){const s=e.parent_tool_use_id;if(!s||"assistant"!==e.type)return;const n=t.get(s);if(!n)return;const a=e.message,i="string"==typeof a?.model?a.model:void 0,r=a?.content;if(Array.isArray(r))for(const o of r)if("tool_use"===o.type&&o.name){const e=n.subagentActivity;n.subagentActivity={latestToolName:o.name,toolCallCount:(e?.toolCallCount??0)+1,model:i??e?.model}}}function yCe(e,t){return 1048576*e+t}const bCe=Number.NEGATIVE_INFINITY;function kCe(e,t){return{liveEpoch:e.liveEpoch,liveIndex:e.liveIndex+t}}function wCe(e){return e.uuid}function MCe(e){return e.message?.id}function _Ce(e){return e.created_at}function jCe(e){return!("parent_tool_use_id"in e&&e.parent_tool_use_id)}function SCe(e){return"result"===e.type&&jCe(e)}function LCe(e){return"assistant"===e.type&&"isApiErrorMessage"in e&&!0===e.isApiErrorMessage&&jCe(e)}function NCe(e){return"stream_event"===e.type||"prompt_suggestion"===e.type}const ICe={terminalSeenAtSeq:null,terminalKind:null,supersededApiId:null,armedPromptUnplaced:!1},TCe=[];function ACe(e,t){const s=wCe(e);return s||`~sys:${t}:${function(e){const t=e,s=t.subtype??"",n=function(e){const t=e=>Array.isArray(e)?e.map(t):null!==e&&"object"==typeof e?Object.fromEntries(Object.entries(e).sort(([e],[t])=>e.localeCompare(t)).map(([e,s])=>[e,t(s)])):e;return JSON.stringify(t(e))}(t.message??t.data??t.summary??t.compact_metadata??t.compactMetadata??Object.fromEntries(Object.entries(t).filter(([e])=>"type"!==e&&"subtype"!==e&&"timestamp"!==e&&"created_at"!==e&&"session_id"!==e&&"uuid"!==e)));let a=5381;for(let i=0;i<n.length;i++)a=(a<<5)+a+n.charCodeAt(i)|0;return`${e.type}:${s}:${(a>>>0).toString(36)}`}(e)}`}function ECe(e,t,s){switch(e.kind){case"live":return PCe(t,s)??"HEAD";case"gap":return e.after??PCe(t,s)??"HEAD";case"seed":case"reseed":return"HEAD"}}function RCe(e,t,s,n,a=!1){const i=function(e,t){switch(e.kind){case"live":return t.liveEpoch;case"seed":case"reseed":return 0;case"gap":return e.gapEpoch}}(s,e.epochs),r=[];let o=!1,l=null,c=null,d=null,u=null,m=ECe(s,e,t);const p="live"!==s.kind&&dhe(e)?new Set(che(e).map(wCe).filter(Boolean)):null,f=new Set,g="seed"===s.kind||"reseed"===s.kind?new Set:null;for(let M=0;M<n.length;M++){const a=n[M];if(NCe(a))continue;const h=ACe(a,m),C=wCe(a);if(g?.add(h),C&&p?.has(C)&&"gap"!==s.kind&&"reseed"!==s.kind){m=C;continue}if(f.has(h)){C&&(m=C);continue}if(t.tombstones.has(h)){C&&(m=C);continue}const x=yCe(i,"live"===s.kind?e.epochs.liveIndex+r.length:M);let v=t.byKey.get(h);if(void 0===v&&void 0===C&&"live"!==s.kind){const e=h.slice(5+m.length),n="gap"===s.kind?Math.max(0,t.keys.length-32):0;for(let s=t.keys.length-1;s>=n;s--){const n=t.keys[s];if(n!==h&&n.startsWith("~sys:")&&n.endsWith(e)){v=s;break}}void 0!==v&&t.keys[v]!==h&&(t.byKey.delete(t.keys[v]),t.keys[v]=h,t.byKey.set(h,v))}if(void 0!==v&&"user"===a.type&&null!==Wge(a)&&(Bge(e.messages[v])||null===Wge(e.messages[v])||void 0!==_Ce(a)&&void 0===_Ce(e.messages[v]))&&(u??=[]).push([v,a]),"assistant"===a.type&&jCe(a)){const t=MCe(a);t&&t===e.streamingAnchor?.apiMessageId&&(d=t)}if(void 0===v)r.push({m:a,s:x,k:h}),f.add(h),"live"===s.kind&&Bge(a)&&t.optimisticSeqs.add(h),(SCe(a)||LCe(a))&&(null===l||x>l)&&(l=x,c=SCe(a)?"result":"apiError"),C&&(m=C);else{if("gap"===s.kind&&t.optimisticSeqs.has(h)&&x!==t.seqs[v]){t.seqs[v]=x,t.optimisticSeqs.delete(h);const s=0===v||t.seqs[v-1]<=x,n=v===t.seqs.length-1||x<=t.seqs[v+1];s&&n||(o=!0);for(let a=v+1;a<e.messages.length;a++){const s=wCe(e.messages[a]);if(!s||!s.startsWith(Zge))break;t.seqs[a]!==x&&(t.seqs[a]=x,o=!0)}}else{const e="seed"===s.kind||"reseed"===s.kind?x!==t.seqs[v]:x<t.seqs[v];e&&(t.seqs[v]=x,o=!0),"live"===s.kind||!e&&"gap"===s.kind||t.optimisticSeqs.delete(h)}if("gap"===s.kind&&null!==e.pendingTurn&&(!C||!t.closedTerminals.has(C))&&(SCe(a)||LCe(a))){const e=t.seqs[v];(null===l||e>l)&&(l=e,c=SCe(a)?"result":"apiError")}C&&(m=C)}}if(null!==g){const n=e.messages.length;let a=0;for(;a<n&&!g.has(t.keys[a]);)a++;if(a<n){let i=yCe(0,0);for(let n=a-1;n>=0;n--){const a=wCe(e.messages[n]);"seed"===s.kind&&a&&a.startsWith(Zge)||(i-=1,t.seqs[n]!==i&&(t.seqs[n]=i,o=!0))}let r=t.seqs[a];for(let e=a+1;e<n;e++)g.has(t.keys[e])?r=t.seqs[e]:t.seqs[e]!==r&&(t.seqs[e]=r,o=!0)}else if("reseed"===s.kind){let s=0;for(;s<n;){const t=wCe(e.messages[s]);if(!t||!t.startsWith(Zge))break;s++}for(let e=0;e<s;e++){const n=yCe(0,0)-(s-e);t.seqs[e]!==n&&(t.seqs[e]=n,o=!0)}}}let h=e.messages,C=Number.POSITIVE_INFINITY;if(u){const t=e.messages.slice();for(const[e,s]of u)t[e]=s,e<C&&(C=e);h=t}const x=void 0!==e.pendingTurn?.promptUuid&&t.optimisticSeqs.has(e.pendingTurn.promptUuid);if(0===r.length&&(!o||function(e){for(let t=1;t<e.length;t++)if(e[t]<e[t-1])return!1;return!0}(t.seqs))){const t=null!==l||null!==d?{terminalSeenAtSeq:l,terminalKind:c,supersededApiId:d,armedPromptUnplaced:x}:x?{...ICe,armedPromptUnplaced:x}:ICe;if(u)return{bucket:{...e,messages:h,streamingAnchor:DCe(e.streamingAnchor,d)},effects:t,changedFromIdx:C,unchanged:!1,freshMessages:TCe,derived:a?uhe(h,C,n,s.kind,e,t):void 0};const i=!a||null===l&&void 0===lhe(n)?void 0:uhe(e.messages,e.messages.length,n,s.kind,e,t);return{bucket:e,effects:t,changedFromIdx:e.messages.length,unchanged:void 0===i,freshMessages:TCe,derived:i}}const v=r.map(e=>e.m),y={terminalSeenAtSeq:l,terminalKind:c,supersededApiId:d,armedPromptUnplaced:x},b=t.seqs.length>0?t.seqs[t.seqs.length-1]:bCe;if(!o&&r.length>0&&r[0].s>b){const i=t.seqs.length;for(let e=0;e<r.length;e++)t.byKey.set(r[e].k,i+e),t.seqs.push(r[e].s),t.keys.push(r[e].k);const o="live"===s.kind?kCe(e.epochs,r.length):e.epochs,l=[...h,...v],c=Math.min(C,e.messages.length);return{bucket:{...e,messages:l,epochs:o,streamingAnchor:DCe(e.streamingAnchor,d)},effects:y,changedFromIdx:c,unchanged:!1,freshMessages:v,derived:a?uhe(l,c,n,s.kind,e,y):void 0}}const k=function(e,t,s,n,a,i,r){const o=e.messages.map((e,s)=>({m:e,s:t.seqs[s],k:t.keys[s]}));r&&o.sort((e,t)=>e.s-t.s);const l=[];let c=0,d=0;for(;c<o.length||d<s.length;){const e=o[c],t=s[d];void 0===t||void 0!==e&&e.s<=t.s?(l.push(e),c++):(l.push(t),d++)}let u=0;for(;u<e.messages.length&&u<l.length&&l[u].m===e.messages[u];)u++;t.byKey=new Map,t.seqs=[],t.keys=[];for(let p=0;p<l.length;p++)t.byKey.set(l[p].k,p),t.seqs.push(l[p].s),t.keys.push(l[p].k);const m="live"===a.kind?kCe(e.epochs,s.length):e.epochs;return{bucket:{...e,messages:l.map(e=>e.m),spliceGen:e.spliceGen+1,epochs:m,streamingAnchor:DCe(e.streamingAnchor,i.supersededApiId)},effects:i,changedFromIdx:u,unchanged:!1,freshMessages:n}}(u?{...e,messages:h}:e,t,r,v,s,y,o),w=u&&C<k.changedFromIdx?{...k,changedFromIdx:C}:k;return a?{...w,derived:uhe(w.bucket.messages,w.changedFromIdx,n,s.kind,e,y)}:w}function DCe(e,t){return e?null!==t?null:e:null}function HCe(e,t){return{...e,streamingAnchor:{apiMessageId:t,atSeq:yCe(e.epochs.liveEpoch,e.epochs.liveIndex)}}}function PCe(e,t){for(let s=t.seqs.length-1;s>=0;s--){const t=e.messages[s];if(Bge(t))continue;const n=wCe(t);if(n&&!n.startsWith(Zge))return n}}function UCe(e,t,s,n){const a=t.byKey.get(s);if(void 0===a)return e;const i=n?.keep?a+1:a;for(let r=i;r<e.messages.length;r++){const s=t.keys[r];t.tombstones.add(s),t.byKey.delete(s),t.optimisticSeqs.delete(s);const n=wCe(e.messages[r]);n&&t.closedTerminals.delete(n)}return t.seqs=t.seqs.slice(0,i),t.keys=t.keys.slice(0,i),{...e,messages:e.messages.slice(0,i),spliceGen:e.spliceGen+1,streamingAnchor:null}}const OCe=function(){const e=new Set;return{subscribe:t=>(e.add(t),()=>e.delete(t)),emit(t,s,n){if(0===e.size)return;const a=eC(t);for(const i of e)i(a,s,n)},scanTranscript(t,s,n){if(0===e.size)return;const a=Xh(t);if(a)for(const i of e)i(a,s,n)},_listenerCount:()=>e.size}}();function FCe(){const t=ai(),{activeOrganization:s}=v(),n=s?.uuid,a=e.useRef({update:t,orgUuid:n});e.useEffect(()=>{a.current={update:t,orgUuid:n}},[t,n]),e.useEffect(()=>OCe.subscribe((e,t,s)=>{const n=a.current;n.orgUuid&&n.update(e,n.orgUuid,t,s)}),[])}class VCe{#e;#t=0;#s=null;constructor(e=[]){this.#e=e.slice()}get generation(){return this.#t}get length(){return this.#e.length}getSnapshot(){return this.#s??=this.#e.slice()}#n(){this.#s=null}#a(){this.#t++,this.#n()}append(e){this.#e.push(e),this.#n()}appendAll(e){if(0!==e.length){for(const t of e)this.#e.push(t);this.#n()}}prependAll(e){0!==e.length&&(this.#e=e.concat(this.#e),this.#a())}replaceAll(e){this.#e=e.slice(),this.#a()}truncateAt(e){e>=this.#e.length||(this.#e.length=e,this.#a())}replaceAt(e,t){this.#e[e]=t,this.#a()}}function zCe(e){return!0===e?.synthesized}const ZCe={blockSize:e=>"text"===e.kind?e.text.length:"tool"===e.kind?1+e.partialJson.length:0,sliceBlock:(e,t)=>"text"===e.kind?{kind:"text",text:e.text.slice(0,t)}:e,createBlockFromStartEvent:e=>{if(vK(e)){const t=e.content_block;return{kind:"tool",id:t.id,name:t.name,partialJson:""}}return yK(e)?{kind:"thinking",text:""}:"text"===e.content_block.type||"connector_text"===e.content_block.type?{kind:"text",text:""}:{kind:"thinking",text:""}},applyDeltaEvent:(e,t)=>{if("text"===t.kind&&"text_delta"===e.delta.type&&e.delta.text)return{kind:"text",text:t.text+e.delta.text};if("text"===t.kind&&"connector_text_delta"===e.delta.type&&e.delta.connector_text)return{kind:"text",text:t.text+e.delta.connector_text};if("tool"===t.kind&&"input_json_delta"===e.delta.type&&e.delta.partial_json)return{...t,partialJson:t.partialJson+e.delta.partial_json};const s=bK(e);return"thinking"===t.kind&&null!==s?{kind:"thinking",text:t.text+s}:t},stopBlockEvent:(e,t)=>t},BCe={blockSize:e=>"thinking"===e.kind?e.text.length:0,sliceBlock:(e,t)=>"thinking"===e.kind?{kind:"thinking",text:e.text.slice(0,t)}:e,createBlockFromStartEvent:e=>yK(e)?{kind:"thinking",text:""}:{kind:"text",text:""},applyDeltaEvent:(e,t)=>{const s=bK(e);return"thinking"===t.kind&&null!==s?{kind:"thinking",text:t.text+s}:t},stopBlockEvent:(e,t)=>t,getBlockDeadlineOffset:()=>3},qCe=new Map;function WCe(e,t){t(e.smoother),t(e.thinkingSmoother)}function $Ce(e,t){e.lastSnap=t;for(const s of e.listeners)s(t)}function GCe(e){const t=0===e.mainBlocks.length,s=t?e.thinkingBlocks:e.mainBlocks;0!==s.length&&$Ce(e,{messageId:e.messageId,blocks:s,...t&&{synthesized:!0}})}function KCe(e){e.smoother.task(t=>{e.mainBlocks=t,t.length>0&&(e.thinkingSmoother.force_smoother_done=!0),GCe(e)},e.abort.signal),e.thinkingSmoother.task(t=>function(e,t){if(0!==e.mainBlocks.length)return;if(e.thinkingBlocks=t.filter(e=>"thinking"===e.kind),0===e.wantsThinkingCount)return void(e.lastSnap={messageId:e.messageId,blocks:e.thinkingBlocks,synthesized:!0});GCe(e)}(e,t),e.abort.signal)}function YCe(e){let t=qCe.get(e);return t||(t={smoother:new tC(ZCe),thinkingSmoother:new tC(BCe),abort:new AbortController,messageId:"",cleared:!0,listeners:new Set,wantsThinkingCount:0,mainBlocks:[],thinkingBlocks:[],lastSnap:null},qCe.set(e,t),t)}const QCe={feed:function(e,t,s){if(null!==s)return;const n=YCe(e);if(hK(t))return n.messageId=t.message.id,n.cleared=!1,WCe(n,e=>{e.restart(),e.dont_smooth=!1,e.on_completion=void 0}),n.mainBlocks=[],n.thinkingBlocks=[],$Ce(n,null),void KCe(n);if(n.cleared)return;const a=t;n.smoother.onMessage(a),0===n.mainBlocks.length&&n.thinkingSmoother.onMessage(a)},flush:function(e){const t=qCe.get(e);t&&!t.cleared&&(WCe(t,e=>{e.force_smoother_done=!0,e.dont_smooth=!0}),t.smoother.on_completion=e=>{t.mainBlocks=e,GCe(t)},t.mainBlocks=t.smoother.fullBlocks,GCe(t))},clear:function(e){const t=qCe.get(e);t&&(t.cleared=!0,WCe(t,e=>{e.dont_smooth=!1,e.on_completion=void 0,e.restart()}),t.mainBlocks=[],t.thinkingBlocks=[],$Ce(t,null))},drop:function(e){const t=qCe.get(e);t&&(t.abort.abort(),qCe.delete(e))},subscribe:function(e,t,s){const n=YCe(e);return n.listeners.add(t),s?.wantsThinking&&n.wantsThinkingCount++,()=>{n.listeners.delete(t)&&s?.wantsThinking&&n.wantsThinkingCount--}},getSnapshot:function(e){const t=qCe.get(e);return!t||t.cleared?null:t.lastSnap},setVisibility:function(e,t){const s=qCe.get(e);s&&WCe(s,e=>{e.checkVisibility=t})},hasListeners:function(e){return(qCe.get(e)?.listeners.size??0)>0}},JCe=new Map;const XCe={begin(e){JCe.set(e,{mode:"requesting",streamDriven:!1,thinkingStart:null,lastThinkingEnd:null})},get:e=>JCe.get(e)??null,reset(e){JCe.delete(e)},feed(e,t,s){if(s)return;const n=function(e){if("content_block_start"===e.type&&"content_block"in e){const t=e.content_block.type;return"thinking"===t||"redacted_thinking"===t?"thinking":"text"===t?"responding":"tool-use"}return"message_stop"===e.type?"tool-use":"message_delta"===e.type?"responding":null}(t);if(null===n)return;const a=JCe.get(e);if(!a)return void JCe.set(e,{mode:n,streamDriven:!0,thinkingStart:"thinking"===n?Date.now():null,lastThinkingEnd:null});if(a.streamDriven=!0,n===a.mode)return;const i=Date.now();"thinking"===a.mode&&null!==a.thinkingStart&&(a.lastThinkingEnd={startedAt:a.thinkingStart,endedAt:i},a.thinkingStart=null),"thinking"===n&&(a.thinkingStart=i),a.mode=n},enterThinking(e,t=!1){const s=JCe.get(e);s?"thinking"===s.mode&&null!==s.thinkingStart||s.streamDriven||(t||"responding"!==s.mode&&"tool-use"!==s.mode)&&(s.thinkingStart=Date.now(),s.mode="thinking"):JCe.set(e,{mode:"thinking",streamDriven:!1,thinkingStart:Date.now(),lastThinkingEnd:null})},endThinking(e){const t=JCe.get(e);t&&null!==t.thinkingStart&&(t.lastThinkingEnd={startedAt:t.thinkingStart,endedAt:Date.now()},t.thinkingStart=null,t.mode="responding")}};function exe(e){return e.uuid}function txe(e){const t=e,s=t.timestamp??t.created_at;if(!s)return null;const n=Date.parse(s);return Number.isNaN(n)?null:n}function sxe(e){return function(e){const t=e.message?.content;return Array.isArray(t)&&t.some(e=>!!e&&"object"==typeof e&&"tool_result"===e.type)}(e)||"isCompactSummary"in e&&!!e.isCompactSummary||"isVisibleInTranscriptOnly"in e&&!!e.isVisibleInTranscriptOnly||"sourceToolUseID"in e&&!!e.sourceToolUseID}function nxe(e,t=Date.now()){for(let s=e.length-1;s>=0;s--){const n=e[s],a="parent_tool_use_id"in n&&!!n.parent_tool_use_id;if(!a&&"result"===n.type)return null;if(!a&&"assistant"===n.type){const e=n.message?.stop_reason,t="isApiErrorMessage"in n&&!0===n.isApiErrorMessage;if("end_turn"===e||t)return null}if("user"!==n.type)continue;if(a)continue;if(sxe(n))continue;const i=txe(n);if(null===i)return null;for(let t=s-1;t>=0;t--){const s=e[t];if("parent_tool_use_id"in s&&s.parent_tool_use_id)continue;if("result"===s.type||"assistant"===s.type&&("end_turn"===s.message?.stop_reason||"isApiErrorMessage"in s&&!0===s.isApiErrorMessage)){const e=txe(s);if(null===e||i<e)return null;break}}return Math.min(i,t)}return null}function axe(e,t){if(null===e)return null;const s=nxe(t);return null!==s&&s<e.startTime?{...e,startTime:s}:e}const ixe="client-";function rxe(e){if("assistant"===e.type&&!e.parent_tool_use_id){const t=e.message?.model;return t&&"<synthetic>"!==t?{model:t}:null}if("system"!==e.type)return null;const t=e.subtype;if("init"===t){const t=e,s={...t.model&&{model:t.model},...t.permissionMode&&{permissionMode:t.permissionMode}};return s.model||s.permissionMode?s:null}if("status"===t){const t=e;return t.permissionMode?{permissionMode:t.permissionMode}:null}if("model_refusal_fallback"===t){const t=Vge(e);return t?{model:t.fallbackModel}:null}return null}let oxe=0;function lxe(e){return null===e||e.dismissed?e:{...e,dismissed:!0}}function cxe(e){let t;for(const s of e){const e=rxe(s);e&&(t={...t,...e})}return t??null}function dxe(e,t){return null!==e&&Object.entries(t).every(([t,s])=>Object.is(e[t],s))?e:{...e,...t}}function uxe(e){return"stream_event"===e.type||"prompt_suggestion"===e.type}function mxe(e,t){const s=e.filter(e=>!uxe(e));for(let n=0;n<s.length;n++){const e=exe(s[n]);if(e&&t.has(e))return s.slice(0,n)}return s}const pxe="epitaxy-session-result:";function fxe(e){try{const t=localStorage.getItem(`${pxe}${e}`);if(!t)return null;const s=JSON.parse(t);return 2===s.v&&"number"==typeof s.costUSD&&"number"==typeof s.apiMs&&"number"==typeof s.wallMs&&null!==s.perModel&&"object"==typeof s.perModel&&Array.isArray(s.recentUuids)?s:null}catch{return null}}function gxe(e,t){try{let s=fxe(e),n=!1;for(const e of t){if("result"!==e.type)continue;if("parent_tool_use_id"in e&&e.parent_tool_use_id)continue;const t=e;if("number"!=typeof t.total_cost_usd)continue;const a="uuid"in e&&"string"==typeof e.uuid?e.uuid:null;if(a&&s?.recentUuids.includes(a))continue;const i={};for(const[e,s]of Object.entries(t.modelUsage??{}))i[e]={costUSD:s.costUSD??0,webSearch:s.webSearchRequests??0};const r=null!==s&&t.total_cost_usd>=s.costUSD&&(t.duration_api_ms??Number.MAX_SAFE_INTEGER)>=s.apiMs;s={v:2,costUSD:t.total_cost_usd,apiMs:t.duration_api_ms??0,wallMs:(r?s?.wallMs??0:0)+(t.duration_ms??0),perModel:i,recentUuids:s?.recentUuids??[]},a&&(s.recentUuids=[...s.recentUuids,a].slice(-16)),n=!0}if(!n||!s)return;localStorage.setItem(`${pxe}${e}`,JSON.stringify(s))}catch{}}function hxe(e){const t=fxe(e);return t?{costUSD:t.costUSD,apiMs:t.apiMs,wallMs:t.wallMs,perModel:t.perModel}:null}function Cxe(e){if("assistant"!==e.type)return null;if("parent_tool_use_id"in e&&e.parent_tool_use_id)return null;const t=e.message?.usage;if(!t)return null;const s=(t.input_tokens??0)+(t.cache_read_input_tokens??0)+(t.cache_creation_input_tokens??0);return s>0?s:null}function xxe(e){if("assistant"!==e.type)return null;if("parent_tool_use_id"in e&&e.parent_tool_use_id)return null;const t=e.message?.content;if(!Array.isArray(t))return null;for(const s of t)if("text"===s.type&&s.text){const{usage:e}=Fge(s.text);if(e)return e}return null}function vxe(e){let t=null,s=null;for(let n=e.length-1;n>=0&&(null===t&&(t=Cxe(e[n])),null===s&&(s=xxe(e[n])),null===t||null===s);n--);return{contextTokens:t,contextUsage:s}}function yxe(e){return!("user"!==e.type||"isSynthetic"in e&&e.isSynthetic||"isMeta"in e&&e.isMeta||"parent_tool_use_id"in e&&e.parent_tool_use_id)}function bxe(e){for(let t=e.length-1;t>=0;t--){const s=e[t];if(yxe(s))return;if("prompt_suggestion"===s.type)return s.suggestion||void 0}}function kxe(e){if("user"!==e.type||"parent_tool_use_id"in e&&e.parent_tool_use_id||"isSynthetic"in e&&e.isSynthetic||"isMeta"in e&&e.isMeta||"file_attachments"in e&&Array.isArray(e.file_attachments)&&e.file_attachments.length>0)return!1;const t=e.message?.content;return"string"==typeof t||!!Array.isArray(t)&&t.every(e=>!!e&&"object"==typeof e&&"text"===e.type)}const wxe=[],Mxe=[],_xe={queuedSteered:wxe,queuedDeferred:wxe};function jxe(e,t){const s=e.queuedSteered.findIndex(e=>exe(e)===t);if(-1!==s)return{inSteered:!0,idx:s,entry:e.queuedSteered[s]};const n=e.queuedDeferred.findIndex(e=>exe(e)===t);return-1!==n?{inSteered:!1,idx:n,entry:e.queuedDeferred[n]}:null}function Sxe(e,t){return t.inSteered?{queuedSteered:e.queuedSteered.filter((e,s)=>s!==t.idx),queuedDeferred:e.queuedDeferred}:{queuedSteered:e.queuedSteered,queuedDeferred:e.queuedDeferred.filter((e,s)=>s!==t.idx)}}function Lxe(e,t){return null===e||e.streamingAnchor===t?e:{...e,streamingAnchor:t}}const Nxe=3e5;function Ixe(){return{messages:new VCe,seenUuids:new Set,singleIngest:Rl(s4),epochs:{liveEpoch:1,liveIndex:0},spliceGen:0,..._xe,pendingQueuedSends:0,connection:"idle",pendingTurn:null,initStep:null,compactionStatus:null,apiRetry:null,userEnterWindowOpenedAt:null,pendingBash:Mxe,promptSuggestion:null,error:null,errorCategory:null,tccFolderKind:null,errorKilledTurn:!1,errorSource:null,contextTokens:null,contextUsage:null,spawnedFresh:!1,liveMeta:null,sub:null,pendingClose:!1,evictTimer:null,refCount:0,everConnected:!1,poolPending:!1,lastWsAt:null,refusalFallback:null,hasPreClearSession:!1}}const Txe=new Map,Axe=new Set,Exe=new Set,Rxe=new Set;function Dxe(e){for(const t of e)t()}function Hxe(e){return Txe.get(e)?.getState()}function Pxe(e,t){const s=Txe.get(e),n=s?.getState()??Ixe(),a=t(n);a!==n&&(s?s.setState(a,!0):(Txe.set(e,yT(()=>a)),Dxe(Axe)),a.pendingTurn!==n.pendingTurn&&Dxe(Exe),a.error!==n.error&&Dxe(Rxe))}function Uxe(e,t){Txe.has(e)&&Pxe(e,t)}const Oxe=new Proxy({},{get:(e,t)=>"string"==typeof t?Hxe(t):void 0,has:(e,t)=>"string"==typeof t&&Txe.has(t),ownKeys:()=>[...Txe.keys()],getOwnPropertyDescriptor:(e,t)=>"string"==typeof t&&Txe.has(t)?{enumerable:!0,configurable:!0}:void 0});function Fxe(e){return Axe.add(e),()=>Axe.delete(e)}const Vxe=yT(()=>{});function zxe(t,s){const n=e.useSyncExternalStore(Fxe,()=>null!==t&&Txe.get(t)||Vxe,()=>Vxe);return bT(n,s)}function Zxe(e){return Exe.add(e),()=>Exe.delete(e)}function Bxe(e){return Rxe.add(e),()=>Rxe.delete(e)}function qxe(e,t){let s=Txe.get(e)?.subscribe(t);const n=()=>{const n=Txe.get(e);n&&!s?(s=n.subscribe(t),t()):!n&&s&&(s(),s=void 0,t())};return Axe.add(n),()=>{Axe.delete(n),s?.()}}const Wxe=new Map;function $xe(e){let t=Wxe.get(e);return t||(t={byKey:new Map,seqs:[],keys:[],tombstones:new Set,closedTerminals:new Set,optimisticSeqs:new Set},Wxe.set(e,t)),t}function Gxe(e,t,s){Uxe(e,n=>{if(n.singleIngest){const a=UCe(Kxe(n),$xe(e),t,{keep:s});return a.messages.length===n.messages.length?n:(n.messages.replaceAll(a.messages),{...n,spliceGen:a.spliceGen,..._xe,pendingQueuedSends:0,error:null,errorCategory:null,tccFolderKind:null,errorKilledTurn:!1,refusalFallback:lxe(n.refusalFallback),...vxe(a.messages)})}const a=n.messages.getSnapshot().findIndex(e=>exe(e)===t);return-1===a?n:(n.messages.truncateAt(s?a+1:a),{...n,..._xe,pendingQueuedSends:0,error:null,errorCategory:null,tccFolderKind:null,errorKilledTurn:!1,refusalFallback:lxe(n.refusalFallback),...vxe(n.messages.getSnapshot())})})}function Kxe(e){return{messages:e.messages.getSnapshot(),spliceGen:e.spliceGen,epochs:e.epochs,streamingAnchor:e.pendingTurn?.streamingAnchor??null,contextTokens:e.contextTokens,contextUsage:e.contextUsage,liveMeta:e.liveMeta,promptSuggestion:e.promptSuggestion,pendingTurn:e.pendingTurn,queuedSteered:e.queuedSteered,queuedDeferred:e.queuedDeferred,pendingQueuedSends:e.pendingQueuedSends,compactionStatus:e.compactionStatus,gapTerminalFired:!1}}function Yxe(e,t,s){t.unchanged||(t.changedFromIdx>=s&&t.bucket.spliceGen===e.spliceGen?e.messages.appendAll(t.bucket.messages.slice(s)):e.messages.replaceAll(t.bucket.messages))}const Qxe=fT((e,t)=>{const s=t=>{const s=Hxe(t);var n;s&&(s.evictTimer&&clearTimeout(s.evictTimer),s.sub?.unsubscribe(),Wxe.delete(t),xhe.dropSession(t),XCe.reset(t),QCe.drop(t),_h.getState().clearSession(t),n=t,Txe.delete(n)&&(Dxe(Axe),Dxe(Exe),Dxe(Rxe)),e(e=>{const{[t]:s,...n}=e.protocolHandlers;return{protocolHandlers:n}}))},n=e=>{const t=Hxe(e);if(!t)return;t.evictTimer&&clearTimeout(t.evictTimer);const n=setTimeout(()=>{const t=Hxe(e);t&&null!==t.pendingTurn?Uxe(e,e=>({...e,evictTimer:null,pendingClose:!0})):s(e)},6e4);Uxe(e,e=>({...e,pendingClose:!1,evictTimer:n}))},a=e=>{Hxe(e)?.pendingClose&&queueMicrotask(()=>{Hxe(e)?.pendingClose&&n(e)})},i=(e,t,s,n)=>{const a=Hxe(e),i=a??(n?null:Ixe());if(!i)return null;a||Wxe.delete(e);const r=$xe(e),o=i.messages.length,l=RCe(Kxe(i),r,t,s,!0);if(l.bucket,l.unchanged&&a)return l;const c="live"===t.kind?null!==l.effects.terminalSeenAtSeq:!0===l.derived?.gapTerminalFired,d=("gap"===t.kind||"reseed"===t.kind)&&(null!==i.error||i.errorKilledTurn)&&function(e){let t=!1,s=!1;for(const n of e)"parent_tool_use_id"in n&&n.parent_tool_use_id||("result"===n.type?(t=!("is_error"in n&&!0===n.is_error),s=!1):"assistant"===n.type&&"isApiErrorMessage"in n&&!0===n.isApiErrorMessage&&(s=!0));return t&&!s}(l.freshMessages);if(Pxe(e,e=>(Yxe(e,l,o),{...e,spliceGen:l.bucket.spliceGen,epochs:l.bucket.epochs,...l.derived,pendingTurn:Lxe(l.derived?l.derived.pendingTurn:e.pendingTurn,c?null:l.bucket.streamingAnchor),...c&&{apiRetry:null},...d&&{error:null,errorCategory:null,tccFolderKind:null,errorKilledTurn:!1}})),c){QCe.clear(e),xhe.reset(e),XCe.reset(e);const t=the(l.bucket.messages),s=null!==t?exe(l.bucket.messages[t]):null;s&&r.closedTerminals.add(s)}return l},r=(e,t,s)=>{const n=Hxe(e);if(!0!==n?.pendingTurn?.discarded)return!1;const r=$xe(e),o=n.pendingTurn.discardedPromptUuid,l=void 0!==o?s.findIndex(e=>exe(e)===o):-1;if(-1===l)return!1;const c=function(e,t,s,n,a){let i=ECe(s,e,t);for(let r=0;r<n.length;r++){const e=n[r];if(NCe(e))continue;if(r>=a&&(t.tombstones.add(ACe(e,i)),SCe(e)||LCe(e)))return{terminalIdx:r,abortWasResult:SCe(e)};const s=wCe(e);s&&(i=s)}return{terminalIdx:-1,abortWasResult:!1}}(Kxe(n),r,t,s,l);if(-1===c.terminalIdx)return!1;QCe.clear(e),xhe.reset(e),XCe.reset(e),Uxe(e,e=>({...e,pendingTurn:null,compactionStatus:null,apiRetry:null})),i(e,t,s,!0);const d=Hxe(e),u=d?.queuedDeferred[0],m=void 0!==d&&(void 0!==u||d.pendingQueuedSends>0),p=c.abortWasResult&&void 0!==d&&(m||function(e){return"prompt"===ehe(e,Yge).kind}(d.messages.getSnapshot()));if(p){const t=u?exe(u):d?function(e){for(let t=e.length-1;t>=0;t--){const s=e[t];if(!Kge(s)){if(Yge(s))return;if(Jge(s)){if(Bge(s))continue;return zge(s)}}}}(d.messages.getSnapshot()):void 0;Uxe(e,e=>({...e,pendingTurn:{startTime:Date.now(),armedAt:Date.now(),endTurnSeen:!1,interrupting:!1,responseStarted:!1,discarded:!1,rearmed:!0,promptUuid:t,streamingAnchor:null}}))}if(d&&dhe(d)){const t=che(d);Uxe(e,e=>({...e,..._xe,pendingQueuedSends:0})),i(e,{kind:"live"},t,!0)}return p||a(e),!0},o=(e,s,n=!1)=>{if("protocol"===s.kind){return void((t().protocolHandlers[e]??[]).some(e=>e(s.subtype,s.payload))||console.warn(`[epitaxy] Unhandled protocol event '${s.subtype}' for session ${e}`))}if("rate_limit"===s.kind)return void OCe.emit(s.info,e,Hxe(e)?.liveMeta?.model);if("prompt_suggestion"===s.kind)return void Uxe(e,e=>({...e,promptSuggestion:s.suggestion||null}));let r=!1;if(Uxe(e,t=>{switch(s.kind){case"message":{if(gK(s.message)){const n=s.message.event,a=!0===t.pendingTurn?.endTurnSeen;if(a&&(xhe.reset(e),XCe.reset(e)),XCe.feed(e,n,s.message.parent_tool_use_id),t.pendingTurn?.interrupting&&!hK(n))return t;if(QCe.feed(e,n,s.message.parent_tool_use_id),CK(n))xhe.add(e,n.delta.text.length);else if(xK(n))xhe.add(e,n.delta.partial_json?.length??0);else{const t=bK(n);null!==t&&xhe.addThinkingText(e,t.length)}if(null===t.pendingTurn||a)return{...t,pendingTurn:{startTime:a?Date.now():nxe(t.messages.getSnapshot())??Date.now(),armedAt:Date.now(),endTurnSeen:!1,interrupting:!1,responseStarted:!0,discarded:!1,rearmed:!1,streamingAnchor:null},promptSuggestion:null,...a&&{compactionStatus:null,apiRetry:null}};const i=!t.pendingTurn.responseStarted&&!hK(n),r=null!==t.apiRetry&&!s.message.parent_tool_use_id;if(i||r){const e=t.pendingTurn;return{...t,...i&&{pendingTurn:{...e,responseStarted:!0}},...r&&{apiRetry:null}}}return t}const a=function(e){if("system"!==e.type)return null;const t=e;if(void 0===t.task_id)return null;if("task_started"===t.subtype)return{taskId:t.task_id,totalTokens:0};if("task_progress"!==t.subtype&&"task_notification"!==t.subtype)return null;const s=t.usage?.total_tokens;return"number"!=typeof s?null:{taskId:t.task_id,totalTokens:s}}(s.message);null!==a&&xhe.setTaskTokens(e,a.taskId,a.totalTokens);const i=exe(s.message),o=t.singleIngest?$xe(e):void 0,l=o?!!i&&(o.byKey.has(i)||o.tombstones.has(i)||null!==jxe(t,i)):!!i&&t.seenUuids.has(i);if(o&&i&&l){const e=o.byKey.get(i),n=!("parent_tool_use_id"in s.message&&s.message.parent_tool_use_id);let a=null!==t.pendingTurn&&!0!==t.pendingTurn.discarded&&void 0!==e&&!o.closedTerminals.has(i)&&n&&("result"===s.message.type||"assistant"===s.message.type&&"isApiErrorMessage"in s.message&&!0===s.message.isApiErrorMessage);if(a){const s=t.messages.getSnapshot(),n=the(s);a=null!==n&&n===e&&she(s,n,t.pendingTurn?.promptUuid,void 0!==t.pendingTurn?.promptUuid&&o.optimisticSeqs.has(t.pendingTurn.promptUuid))}if(!a){if("assistant"===s.message.type&&void 0!==e)return t.messages.replaceAt(e,s.message),{...t,spliceGen:t.spliceGen+1};if("user"===s.message.type&&void 0!==e&&null!==txe(s.message)&&(Bge(t.messages.getSnapshot()[e])||null===txe(t.messages.getSnapshot()[e])))return t.messages.replaceAt(e,s.message),{...t};const n=jxe(t,i);if(n){const e=null!==txe(s.message)?s.message:n.entry;if(null!==(t.pendingTurn?.streamingAnchor??null))return e===n.entry?t:{...t,queuedSteered:n.inSteered?t.queuedSteered.map((t,s)=>s===n.idx?e:t):t.queuedSteered,queuedDeferred:n.inSteered?t.queuedDeferred:t.queuedDeferred.map((t,s)=>s===n.idx?e:t)};const a=t.messages.length,i=RCe(Kxe(t),o,{kind:"live"},[e]);return Yxe(t,i,a),{...t,spliceGen:i.bucket.spliceGen,epochs:i.bucket.epochs,...Sxe(t,n)}}return t}}else if(i&&t.seenUuids.has(i)){if("user"===s.message.type&&null!==txe(s.message)){const e=t.messages.getSnapshot(),n=e.findIndex(e=>exe(e)===i);if(-1!==n&&(Bge(e[n])||null===txe(e[n])))return t.messages.replaceAt(n,s.message),{...t}}if("assistant"===s.message.type){const e=t.messages.getSnapshot().findIndex(e=>exe(e)===i);if(-1!==e)return t.messages.replaceAt(e,s.message),{...t}}const e=jxe(t,i);return e?(t.messages.append(e.entry),{...t,...Sxe(t,e)}):t}const c=!("parent_tool_use_id"in s.message&&s.message.parent_tool_use_id);if("system"===s.message.type&&"thinking_tokens"===s.message.subtype){i&&t.seenUuids.add(i);const n=t,a=function(e){if("system"!==e.type)return null;const t=e;if("thinking_tokens"!==t.subtype)return null;const s=t.estimated_tokens;if("number"!=typeof s||!Number.isFinite(s)||s<=0)return null;const n=t.estimated_tokens_delta,a="number"==typeof n&&Number.isFinite(n);return{estimatedTokens:s,isBlockStart:a&&n===s,hasDelta:a}}(s.message);if(null===a||!c)return n;if(!Rl(t4))return n;if(t.pendingTurn?.interrupting)return n;const r=a.isBlockStart||!a.hasDelta&&a.estimatedTokens<xhe.thinkingBaseline(e),o=!0===t.pendingTurn?.endTurnSeen&&r;o&&(xhe.reset(e),XCe.reset(e)),r&&xhe.startThinkingBlock(e),xhe.setThinkingTokens(e,a.estimatedTokens),XCe.enterThinking(e,r);const l=t.pendingTurn,d=null===l||o;if(!d&&l.responseStarted)return t;const u=d?{startTime:o?Date.now():nxe(t.messages.getSnapshot())??Date.now(),armedAt:Date.now(),endTurnSeen:!1,interrupting:!1,responseStarted:!0,discarded:!1,rearmed:!1,streamingAnchor:null}:{...l,responseStarted:!0};return{...t,pendingTurn:u,...d&&{promptSuggestion:null},...o&&{compactionStatus:null,apiRetry:null}}}!o&&i&&t.seenUuids.add(i);const d=c&&"user"===s.message.type&&!("isSynthetic"in s.message&&s.message.isSynthetic)&&!("isMeta"in s.message&&s.message.isMeta),u=t.pendingQueuedSends>0&&d,m="result"===s.message.type&&c,p=c&&"assistant"===s.message.type&&"end_turn"===s.message.message?.stop_reason,f=c&&null!==t.pendingTurn&&"assistant"===s.message.type&&"isApiErrorMessage"in s.message&&!0===s.message.isApiErrorMessage?function(e){const t=e.message?.content;if("string"==typeof t&&t)return t;if(Array.isArray(t)){const e=t[0];if("text"===e?.type&&e.text)return e.text}return"API error"}(s.message):null,g=m||null!==f,h=t.queuedDeferred.length>0||t.pendingQueuedSends>0,C=m&&h&&null!==t.pendingTurn;g&&(r=!C),m&&(xhe.reset(e),XCe.reset(e),!0!==t.pendingTurn?.discarded&&gxe(e,[s.message])),m&&QCe.clear(e),c&&"assistant"===s.message.type&&XCe.endThinking(e);const x=null===t.pendingTurn&&c&&"assistant"===s.message.type&&!p&&!nCe(s.message),v=(null!==t.error||t.errorKilledTurn)&&null===f&&(x||m&&!("is_error"in s.message&&!0===s.message.is_error)),y=c&&"assistant"===s.message.type&&null!==t.pendingTurn&&!t.pendingTurn.responseStarted,b=!0===t.pendingTurn?.discarded,k=Cxe(s.message),w=xxe(s.message),M=rxe(s.message),_=M?dxe(t.liveMeta,M):t.liveMeta,j=function(e){if("system"===e.type&&"status"===e.subtype&&"status"in e)return e.status}(s.message),S=function(e){if(!("parent_tool_use_id"in e)||!e.parent_tool_use_id){if("system"===e.type&&"api_retry"===e.subtype){const t=e;return{attempt:t.attempt,maxRetries:t.max_retries,delayMs:t.retry_delay_ms,receivedAt:Date.now(),error:t.error??"unknown"}}return"assistant"===e.type?null:void 0}}(s.message);let L;{const e=Vge(s.message);e&&(L={originalModel:e.originalModel,fallbackModel:e.fallbackModel,apiRefusalCategory:e.apiRefusalCategory,seq:oxe++,dismissed:b||void 0})}if(u){const e=function(e){const t=e.priority;return"next"===t||"now"===t}(s.message);return{...t,queuedSteered:e?[...t.queuedSteered,s.message]:t.queuedSteered,queuedDeferred:e?t.queuedDeferred:[...t.queuedDeferred,s.message],pendingQueuedSends:t.pendingQueuedSends-1}}let N={},I=t.pendingTurn?.streamingAnchor??null;if(o){b&&i&&o.tombstones.add(i),g&&i&&o.closedTerminals.add(i);const e=g?che(t):void 0,n=b?e??[]:e?[s.message,...e]:[s.message],a=t.messages.length,r=RCe(Kxe(t),o,{kind:"live"},n);r.bucket,Yxe(t,r,a),I=r.bucket.streamingAnchor,N=r.unchanged?{}:{spliceGen:r.bucket.spliceGen,epochs:r.bucket.epochs}}else b||t.messages.append(s.message),g&&t.messages.appendAll(che(t));return{...t,...N,pendingTurn:Lxe(t.pendingTurn,I),...g&&{..._xe,pendingQueuedSends:0},...n&&"user"!==s.message.type&&{lastWsAt:Date.now()},...null!==k&&{contextTokens:k},...null!==w&&{contextUsage:w},..._!==t.liveMeta&&{liveMeta:_},...void 0!==L&&{refusalFallback:L},...void 0!==j&&{compactionStatus:j},...void 0!==S&&{apiRetry:S},...g&&{compactionStatus:null,apiRetry:null},...d&&{promptSuggestion:null},...x&&{pendingTurn:{startTime:nxe(t.messages.getSnapshot())??Date.now(),armedAt:Date.now(),endTurnSeen:!1,interrupting:!1,responseStarted:!0,discarded:!1,rearmed:!1,streamingAnchor:null}},...(p||y)&&null!==t.pendingTurn&&{pendingTurn:{...t.pendingTurn,streamingAnchor:I,responseStarted:!0,...p&&{endTurnSeen:!0,interrupting:!1}}},...g&&{pendingTurn:C?{startTime:Date.now(),armedAt:Date.now(),endTurnSeen:!1,interrupting:!1,responseStarted:!1,discarded:!1,rearmed:!0,streamingAnchor:null,...o&&t.queuedDeferred.length>0&&{promptUuid:exe(t.queuedDeferred[0])}}:null},...v&&{error:null,errorCategory:null,tccFolderKind:null,errorKilledTurn:!1},...null!==f&&!b&&{error:f,errorCategory:null,tccFolderKind:null,errorKilledTurn:!0,errorSource:"transcript"}}}case"transcript":{if(OCe.scanTranscript(s.messages,e,cxe(s.messages)?.model??t.liveMeta?.model),t.singleIngest)return queueMicrotask(()=>{i(e,{kind:"seed"},s.messages,!0)}),t;const n=mxe(s.messages,t.seenUuids);if(0===n.length)return t;const a=new Set(t.seenUuids);for(const e of n){const t=exe(e);t&&a.add(t)}t.messages.prependAll(n);const r=vxe(t.messages.getSnapshot()),o=cxe(n);return{...t,seenUuids:a,contextTokens:t.contextTokens??r.contextTokens,contextUsage:t.contextUsage??r.contextUsage,...o&&{liveMeta:{...o,...t.liveMeta}},pendingTurn:axe(t.pendingTurn,t.messages.getSnapshot())}}case"connection":return{...t,connection:s.state,initStep:null};case"init_status":return{...t,initStep:s.isComplete?null:s.step};case"reconnected":return t;case"cleared":return r=!0,xhe.dropSession(e),XCe.reset(e),QCe.clear(e),_h.getState().clearSession(e),Wxe.delete(e),{...Ixe(),singleIngest:t.singleIngest,sub:t.sub,connection:t.connection,liveMeta:t.liveMeta,pendingClose:t.pendingClose,evictTimer:t.evictTimer,refCount:t.refCount,everConnected:t.everConnected,refusalFallback:lxe(t.refusalFallback),hasPreClearSession:s.hasPreClearSession??!1,spawnedFresh:t.spawnedFresh};case"done":if(r=!0,xhe.reset(e),XCe.reset(e),QCe.clear(e),t.singleIngest){const s=RCe(Kxe(t),$xe(e),{kind:"live"},che(t));return Yxe(t,s,t.messages.length),{...t,spliceGen:s.bucket.spliceGen,epochs:s.bucket.epochs,pendingTurn:null,compactionStatus:null,apiRetry:null,..._xe,pendingQueuedSends:0,connection:"disconnected"}}return t.messages.appendAll(che(t)),{...t,pendingTurn:null,compactionStatus:null,apiRetry:null,..._xe,pendingQueuedSends:0,connection:"disconnected"};case"error_cleared":return{...t,error:null,errorCategory:null,tccFolderKind:null,errorKilledTurn:!1};case"error":if(r=!0,xhe.reset(e),XCe.reset(e),QCe.clear(e),t.singleIngest){const n=RCe(Kxe(t),$xe(e),{kind:"live"},che(t));return Yxe(t,n,t.messages.length),{...t,spliceGen:n.bucket.spliceGen,epochs:n.bucket.epochs,pendingTurn:null,compactionStatus:null,apiRetry:null,..._xe,pendingQueuedSends:0,error:s.error,errorCategory:s.errorCategory??null,tccFolderKind:s.tccFolderKind??null,errorKilledTurn:null!==t.pendingTurn||t.errorKilledTurn,errorSource:"session"}}return t.messages.appendAll(che(t)),{...t,pendingTurn:null,compactionStatus:null,apiRetry:null,..._xe,pendingQueuedSends:0,error:s.error,errorCategory:s.errorCategory??null,tccFolderKind:s.tccFolderKind??null,errorKilledTurn:null!==t.pendingTurn||t.errorKilledTurn,errorSource:"session"}}}),"message"===s.kind&&gK(s.message)&&hK(s.message.event)&&!s.message.parent_tool_use_id){const t=s.message.event.message?.id;t&&Uxe(e,e=>e.singleIngest&&e.pendingTurn?{...e,pendingTurn:{...e.pendingTurn,streamingAnchor:HCe(Kxe(e),t).streamingAnchor}}:e)}r&&a(e)};return{buckets:Oxe,protocolHandlers:{},openSession(e,s){const n=Hxe(e);if(n?.sub)return n.evictTimer&&clearTimeout(n.evictTimer),void Pxe(e,e=>({...e,refCount:e.refCount+1,pendingClose:!1,evictTimer:null,error:null,errorCategory:null,tccFolderKind:null,errorKilledTurn:!1}));Pxe(e,e=>({...e,refCount:e.refCount+1}));const a=s.subscribe(e,n=>{if("reconnected"===n.kind){const n=t().getLastUuid(e)??void 0;if((void 0!==n||t().hasOptimisticEchoRows(e))&&s.fetchTail){const a=t().reserveGapEpoch(e);s.fetchTail(e,n).then(s=>t().appendTail(e,s,a,n)).catch(()=>{})}return}o(e,n,!0)});Uxe(e,e=>({...e,sub:a}))},releaseSession(e){const t=Hxe(e);if(!t)return;const a=Math.max(0,t.refCount-1);if(a>0)Uxe(e,e=>({...e,refCount:a}));else{if(null!==t.pendingTurn){t.evictTimer&&clearTimeout(t.evictTimer);const n=setTimeout(()=>s(e),36e4);return void Uxe(e,e=>({...e,refCount:a,pendingClose:!0,evictTimer:n}))}Uxe(e,e=>({...e,refCount:a})),n(e)}},closeSession(e){s(e)},wakeSession(e){Hxe(e)?.sub?.wake()},seedTranscript(e,s){if(OCe.scanTranscript(s,e,cxe(s)?.model??Hxe(e)?.liveMeta?.model),Hxe(e)?.singleIngest??Rl(s4))return void i(e,{kind:"seed"},s,!1);let n=!1;if(Pxe(e,e=>{n=0===e.messages.length;const t=mxe(s,e.seenUuids);if(0===t.length&&e.messages.length>0)return e;const a=new Set(e.seenUuids);for(const s of t){const e=exe(s);e&&a.add(e)}e.messages.prependAll(t);const i=vxe(e.messages.getSnapshot()),r=cxe(t);return{...e,seenUuids:a,contextTokens:e.contextTokens??i.contextTokens,contextUsage:e.contextUsage??i.contextUsage,...r&&{liveMeta:{...r,...e.liveMeta}},pendingTurn:axe(e.pendingTurn,e.messages.getSnapshot())}}),n){const n=bxe(s);n&&t().seedPromptSuggestion(e,n)}},reseedTranscript(e,t){if(OCe.scanTranscript(t,e,cxe(t)?.model??Hxe(e)?.liveMeta?.model),Hxe(e)?.singleIngest){if(r(e,{kind:"reseed"},t))return;i(e,{kind:"reseed"},t,!0)}else Uxe(e,e=>{const s=t.filter(e=>!uxe(e)),n=new Set;for(const t of s){const e=exe(t);e&&n.add(e)}const a=e.messages.getSnapshot();let i;if(!a.some(e=>{const t=exe(e);return yxe(e)&&!!t&&!n.has(t)})&&null===e.pendingTurn&&(i=bxe(t),void 0===i))for(let f=t.length-1;f>=0;f--){const s=t[f];if(yxe(s)){const t=exe(s);t&&!e.seenUuids.has(t)&&(i=null);break}}let r=!1;for(const t of n)if(!e.seenUuids.has(t)){r=!0;break}if(!r)return void 0===i||i===e.promptSuggestion?e:{...e,promptSuggestion:i};const o=new Map;let l=null;for(const t of a){const e=exe(t);if(void 0!==e)if(n.has(e))l=e;else{const e=o.get(l);e?e.push(t):o.set(l,[t])}}const c=[],d=new Set(n);for(const t of che(e)){const e=exe(t);e&&d.add(e)}const u=e=>{if(e)for(const t of e){c.push(t);const e=exe(t);e&&d.add(e)}};u(o.get(null));for(const t of s){c.push(t);const e=exe(t);e&&u(o.get(e))}e.messages.replaceAll(c);const m=vxe(e.messages.getSnapshot()),p=cxe(s);return{...e,seenUuids:d,contextTokens:m.contextTokens??e.contextTokens,contextUsage:m.contextUsage??e.contextUsage,...p&&{liveMeta:{...p,...e.liveMeta}},...void 0!==i&&{promptSuggestion:i},pendingTurn:axe(e.pendingTurn,e.messages.getSnapshot())}})},appendTail(e,s,n,o){OCe.scanTranscript(s,e,cxe(s)?.model??Hxe(e)?.liveMeta?.model);const l=Hxe(e);if(l?.singleIngest){if(void 0===n)return;const t={kind:"gap",gapEpoch:n,after:o};if(r(e,t,s))return;const c=che(l),d=i(e,t,s,!0);if(!d)return;gxe(e,d.freshMessages),!0===d.derived?.gapTerminalFired&&c.length>0&&i(e,{kind:"live"},c,!0);let u,m=!0===l.pendingTurn?.discarded;for(const e of d.freshMessages){"result"!==e.type||"parent_tool_use_id"in e&&e.parent_tool_use_id||(m=!1);const t=Vge(e);t&&(u={originalModel:t.originalModel,fallbackModel:t.fallbackModel,apiRefusalCategory:t.apiRefusalCategory,seq:oxe++,dismissed:m||void 0})}return u&&Uxe(e,e=>({...e,refusalFallback:u})),void(!0===d.derived?.gapTerminalFired&&null===d.derived.pendingTurn&&a(e))}let c=!1;Uxe(e,t=>{const n=s.filter(e=>{if(uxe(e))return!1;const s=exe(e);return!s||!t.seenUuids.has(s)});if(0===n.length)return t;gxe(e,n);const a=new Set(t.seenUuids);for(const e of n){const t=exe(e);t&&a.add(t)}const i=vxe(n),r=cxe(n);let o,l=!0===t.pendingTurn?.discarded;for(const e of n){"result"!==e.type||"parent_tool_use_id"in e&&e.parent_tool_use_id||(l=!1);const t=Vge(e);t&&(o={originalModel:t.originalModel,fallbackModel:t.fallbackModel,apiRefusalCategory:t.apiRefusalCategory,seq:oxe++,dismissed:l||void 0})}const d=n.some(e=>"result"===e.type&&!("parent_tool_use_id"in e&&e.parent_tool_use_id)),u=d&&dhe(t),m=t.queuedDeferred.length>0||t.pendingQueuedSends>0,p=d&&m&&null!==t.pendingTurn;c=d&&!p;let f=!1;if(null!==t.error||t.errorKilledTurn){let e=!1,t=!1;for(const s of n)"parent_tool_use_id"in s&&s.parent_tool_use_id||("result"===s.type?(e=!("is_error"in s&&!0===s.is_error),t=!1):"assistant"===s.type&&"isApiErrorMessage"in s&&!0===s.isApiErrorMessage&&(t=!0));f=e&&!t}return d&&XCe.reset(e),t.messages.appendAll(n),u&&t.messages.appendAll(che(t)),{...t,...!d&&{pendingTurn:axe(t.pendingTurn,t.messages.getSnapshot())},...d&&{..._xe,pendingQueuedSends:0,compactionStatus:null,apiRetry:null,promptSuggestion:null,pendingTurn:p?{startTime:Date.now(),armedAt:Date.now(),endTurnSeen:!1,interrupting:!1,responseStarted:!1,discarded:!1,rearmed:!0,streamingAnchor:null}:null},seenUuids:a,contextTokens:i.contextTokens??t.contextTokens,contextUsage:i.contextUsage??t.contextUsage,...r&&{liveMeta:{...t.liveMeta,...r}},...o&&{refusalFallback:o},...f&&{error:null,errorCategory:null,tccFolderKind:null,errorKilledTurn:!1}}});const d=bxe(s);d&&t().seedPromptSuggestion(e,d),c&&a(e)},injectClientRows(e,s){Hxe(e)?.singleIngest?i(e,{kind:"live"},s,!0):t().appendTail(e,s)},getLastUuid(e){const t=Hxe(e);if(!t)return null;if(t.singleIngest)return PCe(Kxe(t),$xe(e))??null;const s=t.messages.getSnapshot();for(let n=s.length-1;n>=0;n--){const e=exe(s[n]);if(e&&!e.startsWith(ixe))return e}return null},hasOptimisticEchoRows(e){const t=Hxe(e);return void 0!==t&&t.messages.getSnapshot().some(Bge)},reserveGapEpoch(e){let t;return Uxe(e,e=>{if(!e.singleIngest)return e;const s={gapEpoch:(n=e.epochs).liveEpoch+1,next:{liveEpoch:n.liveEpoch+2,liveIndex:0}};var n;return t=s.gapEpoch,{...e,epochs:s.next}}),t},dropFailedSendEcho(e,s){const n=Hxe(e);if(!n?.singleIngest)return!1;const a=$xe(e);if(t().dropQueuedMessage(e,s))return!0;let i=!1;return Uxe(e,e=>{const t=function(e,t,s){const n=t.byKey.get(s);if(void 0===n||!Bge(e.messages[n]))return null;t.optimisticSeqs.delete(t.keys[n]),t.byKey.delete(t.keys[n]),t.seqs=[...t.seqs.slice(0,n),...t.seqs.slice(n+1)],t.keys=[...t.keys.slice(0,n),...t.keys.slice(n+1)];for(let a=n;a<t.keys.length;a++)t.byKey.set(t.keys[a],a);return{...e,messages:[...e.messages.slice(0,n),...e.messages.slice(n+1)],spliceGen:e.spliceGen+1}}(Kxe(e),a,s);return null===t?e:(i=!0,e.messages.replaceAll(t.messages),{...e,spliceGen:t.spliceGen})}),i},beginPendingTurn(e){const t=Hxe(e);t&&null!==t.pendingTurn||(xhe.reset(e),XCe.begin(e),QCe.clear(e),Uxe(e,e=>({...e,pendingTurn:{startTime:Date.now(),armedAt:Date.now(),endTurnSeen:!1,interrupting:!1,responseStarted:!1,discarded:!1,rearmed:!1,streamingAnchor:null},promptSuggestion:null,refusalFallback:lxe(e.refusalFallback)})))},clearPendingTurn(e){Uxe(e,e=>({...e,pendingTurn:null,compactionStatus:null,apiRetry:null})),a(e)},clearOrphanedRearm(e){const t=Hxe(e),s=t?.pendingTurn;!s||!s.rearmed||s.responseStarted||dhe(t)||t.pendingQueuedSends>0||(Uxe(e,e=>({...e,pendingTurn:null,compactionStatus:null,apiRetry:null})),a(e))},failPendingTurn(e,t,s){const n=Hxe(e);n&&(null!==n.pendingTurn||"bridge_offline"===s&&null===n.error)&&(o(e,{kind:"error",error:t,errorCategory:s}),"bridge_offline"===s&&Uxe(e,e=>({...e,everConnected:!1})))},completePendingTurn(e){const t=Hxe(e);t&&null!==t.pendingTurn&&o(e,{kind:"done"})},markSessionConnected(e){Uxe(e,e=>{const t="bridge_offline"===e.errorCategory||"remote_worker_offline"===e.errorCategory;return e.everConnected&&!t?e:{...e,everConnected:!0,...t&&{error:null,errorCategory:null,tccFolderKind:null,errorKilledTurn:!1}}})},markSessionDisconnected(e){Uxe(e,e=>e.everConnected&&null===e.pendingTurn?{...e,everConnected:!1}:e)},notePoolPending(e,t,s){Uxe(e,e=>e.poolPending===t?e:e.poolPending&&!t&&s&&null!==e.pendingTurn?{...e,poolPending:t,pendingTurn:{...e.pendingTurn,capAnchorAt:Date.now()}}:{...e,poolPending:t})},markSpawnedFresh(e){Pxe(e,e=>e.spawnedFresh?e:{...e,spawnedFresh:!0})},echoPending(e,t){o(e,{kind:"message",message:t})},dropQueuedMessage(e,t){let s=!1;return Uxe(e,e=>{const n=jxe(e,t),a=!n&&e.pendingQueuedSends>0;if(!n&&!a)return e;s=!0;let i=e.seenUuids;return n&&e.seenUuids.has(t)&&(i=new Set(e.seenUuids),i.delete(t)),{...e,...n?Sxe(e,n):null,seenUuids:i,...a&&{pendingQueuedSends:e.pendingQueuedSends-1}}}),s},reorderQueuedMessage(e,t,s){let n=!1;return Uxe(e,e=>{const a=e.queuedDeferred.findIndex(e=>exe(e)===t),i=e.queuedDeferred.findIndex(e=>exe(e)===s);if(-1===a||-1===i||a===i)return e;const r=[...e.queuedDeferred],[o]=r.splice(a,1),l=r.findIndex(e=>exe(e)===s);return r.splice(a<i?l+1:l,0,o),n=!0,{...e,queuedDeferred:r}}),n},promoteQueuedMessage(e,t){let s=!1;return Uxe(e,e=>{const n=e.queuedDeferred.findIndex(e=>exe(e)===t);if(-1===n)return e;s=!0;const a={...e.queuedDeferred[n],priority:"next"};return{...e,queuedSteered:[...e.queuedSteered,a],queuedDeferred:e.queuedDeferred.filter((e,t)=>t!==n)}}),s},markInterrupting(e){QCe.flush(e),xhe.reset(e),Uxe(e,e=>{const t=e.pendingTurn;return!t||t.interrupting?e:{...e,pendingTurn:{...t,interrupting:!0}}})},clearInterrupting(e){Uxe(e,e=>{const t=e.pendingTurn;return t&&t.interrupting?{...e,pendingTurn:{...t,interrupting:!1,discarded:!1}}:e})},markCompacting(e){Uxe(e,e=>null===e.pendingTurn||"compacting"===e.compactionStatus?e:{...e,compactionStatus:"compacting"})},openUserEnterWindow(e){const t=Date.now();Pxe(e,e=>({...e,userEnterWindowOpenedAt:t})),setTimeout(()=>{Uxe(e,e=>e.userEnterWindowOpenedAt!==t?e:{...e,userEnterWindowOpenedAt:null})},1e3)},discardPendingTurn(e,t){let s=!1;return Uxe(e,n=>{const a=n.pendingTurn;if(!a||a.responseStarted||a.interrupting||a.discarded||dhe(n)||n.pendingQueuedSends>0)return n;let i=-1;const r=n.messages.getSnapshot();for(let e=r.length-1;e>=0;e--){const t=r[e];if("system"!==t.type){kxe(t)&&(i=e);break}}if(-1===i)return n;if(!t&&!Bge(r[i]))return n;s=!0;const o=exe(r[i]);if(n.singleIngest&&o){const t=UCe(Kxe(n),$xe(e),o);return n.messages.replaceAll(t.messages),{...n,spliceGen:t.spliceGen,pendingTurn:{...a,streamingAnchor:null,interrupting:!0,discarded:!0,discardedPromptUuid:o},refusalFallback:lxe(n.refusalFallback)}}return n.messages.truncateAt(i),{...n,pendingTurn:{...a,interrupting:!0,discarded:!0},refusalFallback:lxe(n.refusalFallback)}}),s},noteQueuedSend(e){Uxe(e,e=>null===e.pendingTurn?e:{...e,pendingQueuedSends:e.pendingQueuedSends+1,refusalFallback:lxe(e.refusalFallback)})},pushPendingBash(e,s){Pxe(e,e=>({...e,pendingBash:[...e.pendingBash,s]})),t().openUserEnterWindow(e)},clearPendingBash(e,t){Uxe(e,e=>{if(0===e.pendingBash.length)return e;const s=e.pendingBash.filter(e=>e.id!==t);return{...e,pendingBash:s.length>0?s:Mxe}})},clearError(e){Uxe(e,e=>null!==e.error||null!==e.errorCategory||null!==e.tccFolderKind||e.errorKilledTurn?{...e,error:null,errorCategory:null,tccFolderKind:null,errorKilledTurn:!1}:e)},seedPromptSuggestion(e,t){Uxe(e,e=>null!==e.promptSuggestion||null!==e.pendingTurn?e:{...e,promptSuggestion:t})},patchLiveMeta(e,t){const s=void 0!==t.model;Uxe(e,e=>{const n=dxe(e.liveMeta,t),a=s&&null!==e.refusalFallback;return n!==e.liveMeta||a?{...e,liveMeta:n,...a&&{refusalFallback:null}}:e})},clearRefusalFallback(e){const t=Hxe(e)?.refusalFallback??null;return!t||t.dismissed||Uxe(e,e=>({...e,refusalFallback:lxe(e.refusalFallback)})),t},truncateAtMessage(e,t){Gxe(e,t,!1)},truncateAfterMessage(e,t){Gxe(e,t,!0)},restorePreClearTranscript(e,t){xhe.dropSession(e),XCe.reset(e),QCe.clear(e),_h.getState().clearSession(e),Wxe.delete(e),Uxe(e,s=>{const n={...Ixe(),singleIngest:s.singleIngest,sub:s.sub,connection:s.connection,liveMeta:s.liveMeta,pendingClose:s.pendingClose,evictTimer:s.evictTimer,refCount:s.refCount,everConnected:s.everConnected,refusalFallback:lxe(s.refusalFallback),hasPreClearSession:!1};if(n.singleIngest)return queueMicrotask(()=>{i(e,{kind:"seed"},[...t],!0)}),n;for(const e of t){const t=exe(e);t&&n.seenUuids.add(t)}n.messages.replaceAll([...t]);const a=cxe(t);return{...n,...a&&{liveMeta:{...a,...s.liveMeta}},...vxe(n.messages.getSnapshot())}})},dropPreClearFlag(e){Uxe(e,e=>e.hasPreClearSession?{...e,hasPreClearSession:!1}:e)},registerProtocolHandler:(t,s)=>(e(e=>({protocolHandlers:{...e.protocolHandlers,[t]:[...e.protocolHandlers[t]??[],s]}})),()=>{e(e=>{const n=e.protocolHandlers[t];return n?{protocolHandlers:{...e.protocolHandlers,[t]:n.filter(e=>e!==s)}}:e})})}}),Jxe=[];function Xxe(e){return!!e&&(e.pendingTurn?.interrupting??!1)&&dhe(e)}function eve(e){return zxe(e,e=>e?.messages.getSnapshot()??Jxe)}function tve(e){return Hxe(e)?.messages.getSnapshot()??Jxe}function sve(e){return zxe(e,hT(e=>Xxe(e)?e?che(e):wxe:e?.queuedSteered??wxe))}function nve(e){return null!=e?.pendingTurn&&!e.pendingTurn.endTurnSeen}function ave(t){const{raw:s,responseStarted:n,capAnchor:a,poolPending:i}=zxe(t,hT(e=>{const t=e?.pendingTurn;return{raw:nve(e),responseStarted:t?.responseStarted??!0,capAnchor:t?.capAnchorAt??t?.armedAt??null,poolPending:e?.poolPending??!1}})),[,r]=e.useReducer(e=>e+1,0);return e.useEffect(()=>{if(!s||n||null===a||i)return;const e=a+Nxe-Date.now(),t=setTimeout(r,Math.max(0,e));return()=>clearTimeout(t)},[s,n,a,i]),s&&(n||i||null===a||Date.now()-a<Nxe)}function ive(e){return zxe(e,e=>e?.pendingBash??Mxe)}function rve(e){return zxe(e,e=>e?.queuedDeferred??wxe)}sC("epitaxy",function(){let e=0;const t=Date.now();for(const s of Txe.values()){const n=s.getState();nve(n)&&(null!==n.pendingTurn&&t-n.pendingTurn.armedAt>Nxe||e++)}return e});const ove=new Set;function lve(e){const t=Txe.get(e);return void 0!==t&&nve(t.getState())}function cve(){const t=e.useSyncExternalStore(Zxe,()=>{const e=[],t=Date.now();for(const[s,n]of Txe){const a=n.getState();nve(a)&&(null!==a.pendingTurn&&t-a.pendingTurn.armedAt>Nxe||e.push(s))}return e.sort().join("\n")},()=>"");return e.useMemo(()=>""===t?ove:new Set(t.split("\n")),[t])}function dve(){const t=e.useSyncExternalStore(Bxe,()=>{const e=[];for(const[t,s]of Txe){const n=s.getState();null!==n.error&&n.errorKilledTurn&&e.push(t)}return e.sort().join("\n")},()=>"");return e.useMemo(()=>""===t?ove:new Set(t.split("\n")),[t])}function uve(e){return zxe(e,e=>e?.error??null)}function mve(e){return zxe(e,e=>e?.errorCategory??null)}function pve(e){return zxe(e,e=>e?.tccFolderKind??null)}function fve(e){return zxe(e,e=>e?.errorSource??null)}function gve(t,s){const n=e.useEffectEvent(s);e.useEffect(()=>{if(!t)return;let e=Hxe(t);return qxe(t,()=>{const s=Hxe(t);s?.error&&!e?.error&&n(s.error,nve(e)),e=s})},[t])}function hve(e){return zxe(e,e=>e?.connection??"idle")}function Cve(e){return zxe(e,e=>e?.promptSuggestion??null)}function xve(e){return zxe(e,e=>e?.contextTokens??null)}function vve(e){return zxe(e,e=>e?.spawnedFresh??!1)}function yve(e){return zxe(e,e=>e?.pendingTurn?.startTime??null)}function bve(e){return zxe(e,e=>e?.pendingTurn?.armedAt??null)}function kve(e){return zxe(e,e=>e?.everConnected??!1)}function wve(e){return zxe(e,e=>e?.pendingTurn?.interrupting??!1)}function Mve(e){return zxe(e,Xxe)}function _ve(e){return zxe(e,e=>e?.liveMeta??null)}function jve(e){return zxe(e,e=>{const t=e?.refusalFallback;return t&&!t.dismissed?t:null})}function Sve(e){return zxe(e,e=>!!e?.refusalFallback)}function Lve(e){return zxe(e,hT(e=>({compactionStatus:e?.compactionStatus??null,apiRetry:e?.apiRetry??null,isInterrupting:e?.pendingTurn?.interrupting??!1,isDrainingQueued:Xxe(e)})))}const Nve={meta:function(e){return["epitaxy","meta",e.id]},transcript:function(e){return["epitaxy","transcript",e.id]},contextUsage:function(e){return["epitaxy","contextUsage",e.id]}};function Ive(e){if(e)switch(e.destination){case"userSettings":return"user";case"projectSettings":return"project";case"localSettings":return"projectLocal";default:return"session"}}let Tve=null;const Ave=new Map;function Eve(e,t){return`${e}:${t}`}function Rve(){const{sendToolDecision:t}=function(t){const{addError:s}=ut();return e.useEffect(()=>{if(!Ate&&t?.onOnEvent)return Ate=!0,t.getAll&&t.getAll().then(e=>{for(const t of e)Lte.getState().hydrateFromBridge(t.sessionId,t.pendingToolPermissions??[])}).catch(()=>{}),Ete=t.onOnEvent(e=>{if(e&&"object"==typeof e&&"type"in e){if("tool_permission_request"===e.type&&"request"in e&&e.request){const t=e.request;Lte.getState().addRequest({sessionId:t.sessionId,requestId:t.requestId,toolUseId:t.requestId,toolName:t.toolName,input:t.input,transport:"ipc",suggestions:t.suggestions,decisionReason:t.decisionReason,description:t.description})}if("tool_permission_resolved"===e.type&&"request"in e&&e.request){const t=e.request;Lte.getState().removeRequest(t.sessionId,t.requestId)}}}),()=>{Ete&&(Ete(),Ete=null),Ate=!1}},[t]),{sendToolDecision:e.useCallback((e,n,a,i)=>{if(!t?.respondToToolPermission)return void k.error(w.DESKTOP_API,"respondToToolPermission not available");const r=Lte.getState(),o=r.requestsBySession[e]?.[n]?.toolName;r.setRequestStatus(e,n,"resolving");const l=t.respondToToolPermission(n,i,a);return r.resolveRequest(e,n,i,a),l.catch(t=>{Lte.getState().setRequestStatus(e,n,"pending"),s("Permission response couldn't be delivered. You can try again.",{error:t,errorContext:{tags:{source:"ccd_respond_to_tool_permission",feature:"ccd",ccd_decision:i},extra:{session_id:e,request_id:n,tool_name:o?ru(o):void 0}},messageForLogging:"Permission response could not be delivered."})}),l},[t,s])}}(Pu);Tve=t}function Dve(e){return Tte(e??"")}const Hve=new Set;function Pve(){const t=Lte(hT(e=>{const t=[];for(const s in e.requestsBySession){const n=e.requestsBySession[s];for(const e in n)if("pending"===n[e].status){t.push(s);break}}return t.sort()}));return e.useMemo(()=>0===t.length?Hve:new Set(t),[t])}function Uve(t){const s=Ite(t?.id??""),{mutateAsync:n}=nC(),{addError:a}=ut(),i=JS(),r=gL(),o=s[0],l=e.useCallback((e,s)=>{if(!o)return;const l=s??o.input,c=Qxe.getState(),d=()=>{const e=!Qxe.getState().buckets[o.sessionId]?.pendingTurn;c.beginPendingTurn(o.sessionId);return{wasIdle:e,armedAtThisDecide:e?Qxe.getState().buckets[o.sessionId]?.pendingTurn?.armedAt??null:null}},u=e=>{null!==e&&t&&setTimeout(()=>{const s=Qxe.getState().buckets[o.sessionId]?.pendingTurn;!!s&&s.armedAt===e&&!s.responseStarted&&r.invalidateQueries({queryKey:Nve.transcript(t),refetchType:"all"}).catch(()=>{})},15e3)};if("ipc"===o.transport){const t=Tve?.(o.sessionId,o.requestId,l,e);return c.wakeSession(o.sessionId),void t?.then(()=>d()).catch(()=>{})}!function(e,t,s){const n=Eve(e,t);for(Ave.delete(n),Ave.set(n,s);Ave.size>50;){const e=Ave.keys().next().value;if(void 0===e)break;Ave.delete(e)}}(o.sessionId,o.toolUseId,{decision:e,updatedInput:l});const m=Lte.getState();m.setRequestStatus(o.sessionId,o.requestId,"resolving");const p={sessionId:o.sessionId,requestId:o.envelopeRequestId??o.requestId,toolUseId:o.toolUseId,toolName:o.toolName,decision:e,input:l,suggestions:o.suggestions};if(o.promiseResolvers){c.wakeSession(o.sessionId);const{armedAtThisDecide:t}=d(),s=s=>{m.resolveRequest(o.sessionId,o.requestId,e,l,s),u(t)};return void(o.sdkCanSuppressWsWrite&&o.envelopeRequestId?n(p).then(()=>{aee(o.sessionId,o.toolUseId,o.toolName),s(!0)},()=>s()):s())}const{wasIdle:f,armedAtThisDecide:g}=d();c.wakeSession(o.sessionId),n(p).then(()=>{aee(o.sessionId,o.toolUseId,o.toolName),m.resolveRequest(o.sessionId,o.requestId,e,l),t&&r.invalidateQueries({queryKey:Nve.transcript(t)}),u(g)}).catch(t=>{if(f&&null!==g){const e=Qxe.getState().buckets[o.sessionId],t=e?.pendingTurn;!t||t.responseStarted||t.armedAt!==g||dhe(e)||0!==e.pendingQueuedSends||Qxe.getState().clearPendingTurn(o.sessionId)}m.setRequestStatus(o.sessionId,o.requestId,"pending"),a(i.formatMessage({defaultMessage:"Failed to send response. You can try again.",id:"aMbb8XQr/h"}),{error:t,errorContext:{tags:{source:"epitaxy_tool_decision_post",sessionId:o.sessionId,toolUseId:o.toolUseId,decision:e}},messageForLogging:"Epitaxy trailing tool-decision POST failed."})})},[o,n,a,i,r,t]);return e.useMemo(()=>{if(!o)return null;const e=o.suggestions?.find(e=>"setMode"!==e.type)??o.suggestions?.[0];return{tool:{id:o.requestId,name:o.toolName,input:o.input,status:"awaiting_approval"},hasAlwaysAllow:!!o.suggestions?.length,alwaysAllowScope:Ive(e),decisionReason:o.decisionReason,description:o.description,decide:l,queueDepth:s.length-1}},[o,l,s.length])}function Ove(e,t){const s="remote"===e?.type||"bridge"===e?.type;Pte({sessionId:s?e?.id??"":"",messages:s?t:Fve})}const Fve=[];function Vve(e,t){return async(s,n,a)=>{const i=ou(n);if(t?.has(s)&&!Sd(s))return aC(s,i,"once",a.suggestions);const r=Lte.getState(),o=r.requestsBySession[e]?.[a.toolUseID],l=async e=>{const{decision:t,updatedInput:n,respondedOutOfBand:r}=await e.promise;return r?null:aC(s,n??i,t,a.suggestions)};if(o?.promiseResolvers)return l(o.promiseResolvers);const c=Promise.withResolvers(),d=a.requestId,u=!!d||void 0;if(o)Lte.setState(t=>{const s=t.requestsBySession[e],n=s?.[a.toolUseID];return n?{requestsBySession:{...t.requestsBySession,[e]:{...s,[a.toolUseID]:{...n,promiseResolvers:c,envelopeRequestId:n.envelopeRequestId??d,sdkCanSuppressWsWrite:u}}}}:t});else{const t=Ave.get(Eve(e,a.toolUseID));if(t)return c.resolve(t),l(c);r.addRequest({sessionId:e,requestId:a.toolUseID,toolUseId:a.toolUseID,toolName:s,input:i,transport:"websocket",promiseResolvers:c,envelopeRequestId:d,sdkCanSuppressWsWrite:u,suggestions:Sd(s)?void 0:a.suggestions,decisionReason:a.decisionReason,description:a.description})}return(t=>{const s=()=>{const s=Lte.getState();s.requestsBySession[e]?.[a.toolUseID]&&(t.resolve({decision:"once"}),s.removeRequest(e,a.toolUseID))};a.signal.aborted?s():a.signal.addEventListener("abort",s,{once:!0})})(c),l(c)}}const zve=new Map,Zve=fT()(CT(e=>({ackedAt:{},ack:(t,s)=>e(e=>e.ackedAt[t]===s?e:{ackedAt:{...e.ackedAt,[t]:s}}),clear:t=>e(e=>{if(!(t in e.ackedAt))return e;const s={...e.ackedAt};return delete s[t],{ackedAt:s}})}),{name:"epitaxy-awaiting-ack-v1",storage:xT(()=>localStorage)}));function Bve(){const t=Zve(e=>e.ackedAt);return e.useMemo(()=>{const e=Object.entries(t);return 0===e.length?zve:new Map(e)},[t])}function qve(e,t){return Zve(s=>{const n=s.ackedAt[e];return void 0!==n&&n>=Date.parse(t)})}const Wve=new Set;let $ve=null;const Gve=fT()(CT(e=>({unreadIds:[],markUnread:t=>e(e=>e.unreadIds.includes(t)?e:{unreadIds:[...e.unreadIds,t]}),markRead:t=>e(e=>e.unreadIds.includes(t)?{unreadIds:e.unreadIds.filter(e=>e!==t)}:e),clearAll:()=>e(e=>0===e.unreadIds.length?e:{unreadIds:[]})}),{name:"epitaxy-unread-v1",storage:xT(()=>localStorage),onRehydrateStorage:()=>()=>{$ve&&Gve.getState().markRead($ve)}}));function Kve(e){return"result"===e.type&&!("parent_tool_use_id"in e&&e.parent_tool_use_id)}function Yve(e){e!==$ve&&Gve.getState().markUnread(e)}function Qve(){const t=Gve(e=>e.unreadIds);return e.useMemo(()=>0===t.length?Wve:new Set(t),[t])}function Jve(e){return Gve(t=>t.unreadIds.includes(e))}function Xve(t){const s=Gve(e=>e.markRead);e.useEffect(()=>{$ve=t,t&&s(t)},[t,s])}const eye=new Map,tye=new Map;function sye(e,t,s){let n=tye.get(t);if(n)n.fetchJson=e;else{const s=new Set,a={fetchJson:e,uuids:s,promise:new Promise((e,n)=>{setTimeout(()=>{tye.delete(t);const i=a.fetchJson,r=[...s].sort(),o=[];for(let e=0;e<r.length;e+=100)o.push(r.slice(e,e+100));Promise.allSettled(o.map(e=>async function(e,t,s){const n=new URLSearchParams;for(const i of s)n.append("account_uuids[]",i);const a=(await e(`/api/organizations/${t}/members/display_info?${n.toString()}`,{method:"GET"})).data;if(null==a)return[];if(!Array.isArray(a))throw new Error("malformed display_info response");return a.filter(e=>"object"==typeof e&&null!==e&&"string"==typeof e.account_uuid)}(i,t,e))).then(t=>{const s=new Map,n=new Set;t.forEach((e,t)=>{const a=o[t];if("fulfilled"===e.status&&a){for(const e of a)n.add(e);for(const t of e.value)s.set(t.account_uuid,t)}}),e({byUuid:s,succeeded:n})}).catch(n)},10)})};tye.set(t,a),n=a}return n.uuids.add(s),n.promise.then(({byUuid:e,succeeded:t})=>{if(!t.has(s))throw new Error("display_info chunk fetch failed");return e.get(s)??null})}function nye(e){const t=new Map;for(const s of e)s.data&&t.set(s.data.account_uuid,s.data);return t}function aye(t,s){const{activeOrganization:n}=v(),a=n?.uuid,i=Nt("Query error"),r=e.useMemo(()=>[...new Set(t)].sort(),[JSON.stringify(t)]);return CL({combine:nye,queries:r.map(e=>({queryKey:["org_member_display_info",a,e],queryFn:()=>sye(i,a??"",e),enabled:s&&!!a,staleTime:18e5,retry:1,meta:{noToast:!0}}))})}function iye(){const e=xe();return y("claude_ai_image_avatars")&&e}function rye(e){const t=iye(),s=aye(e,t);return t?s:eye}const oye="01",lye="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz",cye=BigInt(58),dye=(1n<<128n)-1n;function uye(e,t){if(!t||!t.startsWith(`${e}_`))return;const s=t.slice(t.lastIndexOf("_")+1);if(24!==s.length||!s.startsWith(oye))return;const n=function(e){let t=0n;for(const s of e){const e=lye.indexOf(s);if(e<0)return;t=t*cye+BigInt(e)}return t}(s.slice(2));return void 0===n||n>dye?void 0:function(e){const t=e.toString(16).padStart(32,"0");return[t.slice(0,8),t.slice(8,12),t.slice(12,16),t.slice(16,20),t.slice(20,32)].join("-")}(n)}const mye=/^[A-Za-z0-9_-]{1,128}$/;function pye({enabled:t}){const s=e.useRef(new Set),[n,a]=e.useState([]);e.useEffect(()=>{s.current.size!==n.length&&a([...s.current].sort())});const i=function(t,{enabled:s=!0}={}){const n=iye(),a=aye(t,s&&n),{data:i}=iC("all",{enabled:s}),{account:r}=v(),o=e.useMemo(()=>{const e=new Map;for(const t of i??[]){const s=t.account.full_name?.trim();s&&e.set(t.account.uuid,s)}return e},[i]),l=new Map;for(const e of t){const t=a.get(e),s=("string"==typeof t?.display_name?t.display_name.trim():"")||o.get(e)||r?.uuid===e&&r.full_name?.trim()||void 0;s&&l.set(e,s)}return l}(n,{enabled:t}),r=e.useRef(i);(function(e,t){if(e===t)return!0;if(e.size!==t.size)return!1;for(const[s,n]of e)if(t.get(s)!==n)return!1;return!0})(r.current,i)||(r.current=i);const o=r.current;return e.useCallback(e=>{if(void 0===e)return;const n=o.get(e);if(void 0!==n)return n;t&&!s.current.has(e)&&s.current.add(e)},[o,t])}function fye(e,t,s=uye){if(!e?.length)return[];const n=[],a=new Set;for(const i of e){const e=s("user",i.account_id);if(void 0===e||a.has(e))continue;a.add(e);const r=t(e);r&&n.push({name:r,accountUuid:e})}return n}function gye(){return!1}function hye(){return null}function Cye(){return!1}let xye=null;const vye=[];function yye(e){xye?xye(e):vye.push(e)}function bye(){const{track:t}=ae();return e.useLayoutEffect(()=>{xye=t,vye.length>0&&vye.splice(0).forEach(e=>{t(e)})},[t]),null}const kye="epitaxy";function wye(e,t){return"local"===e?.type?t?"ssh":"local":"remote"}function Mye(e){if(e instanceof Error){if("AbortError"===e.name)return"cancelled";if("TimeoutError"===e.name)return"timeout"}const t=e instanceof Error?e.message:String(e);return/untrusted_device|session_stale_relogin|not authorized|(?:^|:\s*)(?:unauthorized|forbidden)\b|(?<![.:])\b40[13]\b/i.test(t)?"auth_error":/rate.?limit|(?<![.:])\b429\b/i.test(t)?"rate_limit":/timeout|timed.?out/i.test(t)?"timeout":/\babort(?:ed)?\b|\bcancell?ed\b/i.test(t)?"cancelled":/(?<![.:])\b5\d\d\b/.test(t)?"server_error":/(?<![.:])\b4\d\d\b/.test(t)?"request_rejected":/network|fetch|econn|enotfound|offline|socket|connection/i.test(t)?"network_error":"unknown"}function _ye(e,t,s){F(e,{...s?.tags,...s?.extra,feature:"ccd",renderer_surface:kye,source:t})}function jye(e,t){yye({...t,event_key:e,renderer_surface:kye})}function Sye(e){jye("claudeai.desktop.code.landing.folder_selected",e)}function Lye(e){jye("claudeai.desktop.code.landing.model_selected",e)}function Nye(e){jye("claudeai.desktop.code.landing.effort_selected",e)}function Iye(e){jye("claudeai.desktop.code.landing.session_created",e)}function Tye(e){jye("claudeai.desktop.code.landing.session_creation_error",e)}function Aye(){jye("claudeai.desktop.code.preview.jitless_banner_shown",{})}function Eye(){jye("claudeai.desktop.code.preview.jitless_banner_dismissed",{})}function Rye(e){jye("claudeai.desktop.code.landing.trust_modal_viewed",e)}function Dye(e){jye("claudeai.desktop.code.landing.trust_modal_accepted",e)}function Hye(e){jye("claudeai.desktop.code.landing.trust_modal_declined",e)}function Pye(e){jye("claudeai.desktop.code.landing.environment_selected",e)}function Uye(e){jye("claudeai.desktop.code.landing.coordinator_mode_toggled",e)}function Oye(e){jye("claudeai.desktop.code.landing.image_added",e)}function Fye(e){jye("claudeai.desktop.code.landing.image_resized",e)}function Vye(e){jye("claudeai.code.message.submitted",e)}function zye(e){jye("claudeai.code.fork.submitted",e)}function Zye(e){jye("claudeai.code.model_switched",e)}function Bye(e){jye("claudeai.code.fallback_model_retry",e)}function qye(e){jye("claudeai.code.model_swap_notice.viewed",e)}function Wye(e,t){jye(`claudeai.code.refusal_fallback_band.${e}`,t)}function $ye(e,t){jye(`claudeai.code.refusal_fallback_prompt.${e}`,t)}function Gye(){jye("claudeai.code.auto_default_notice.viewed",{})}function Kye(){jye("claudeai.code.auto_default_nudge.viewed",{})}function Yye(){jye("claudeai.code.auto_default_nudge.accepted",{})}function Qye(){jye("claudeai.code.auto_default_nudge.declined",{})}function Jye(e){jye("claudeai.code.permission_mode.changed",e)}function Xye(e){jye("claudeai.code.session.stopped",e)}function ebe(e){jye("claudeai.code.plan.viewed",e)}function tbe(e){jye("claudeai.code.plan.approved",e)}function sbe(e){jye("claudeai.code.plan.rejected",e)}function nbe(e){jye("claudeai.code.local_pr.create_clicked",e)}function abe(){jye("claudeai.code.local_pr.view_clicked",{})}function ibe(e){jye("claudeai.code.ci_monitor.enabled",e)}function rbe(e){jye("claudeai.code.ci_monitor.disabled",e)}function obe(){jye("claudeai.code.ci_monitor.popover_viewed",{})}function lbe(e){jye("claudeai.code.autofix_upsell.shown",e)}function cbe(e){jye("claudeai.code.autofix_upsell.enabled",e)}function dbe(e){jye("claudeai.code.autofix_upsell.dismissed",e)}function ube(e){jye("claudeai.epitaxy.session.opened",e)}function mbe(e){jye("claudeai.epitaxy.session.meta_resolved",e)}function pbe(e){jye("claudeai.epitaxy.session.load_failed",e)}function fbe(e){jye("claudeai.epitaxy.message.send_failed",e)}function gbe(e){jye("claudeai.epitaxy.session.pending_turn_stuck_idle",e)}function hbe(e){jye("claudeai.epitaxy.grouping.opened",e)}function Cbe(e){jye("claudeai.epitaxy.grouping.session_created",e)}function xbe(e){jye("claudeai.epitaxy.grouping.message_sent",e)}function vbe(){jye("claudeai.epitaxy.grouping.browse_viewed",{})}function ybe(){jye("claudeai.epitaxy.grouping.create_dialog_opened",{})}function bbe(e){jye("claudeai.epitaxy.grouping.coordinator_archived",e)}function kbe(e){jye("claudeai.epitaxy.grouping.coordinator_id_copied",e)}function wbe(e){jye("claudeai.epitaxy.grouping.coordinator_model_changed",e)}function Mbe(e){jye("claudeai.epitaxy.grouping.instructions_over_limit",{...e,cap:rC})}function _be(e){jye("claudeai.epitaxy.grouping.instructions_truncated",{...e,cap:rC})}function jbe(e){jye("claudeai.epitaxy.grouping.filter_changed",e)}function Sbe(e){jye("claudeai.epitaxy.page.viewed",e)}function Lbe(e){jye("claudeai.epitaxy.action_center.session_clicked",e)}function Nbe(e){jye("claudeai.epitaxy.action_center.session_archive_clicked",e)}function Ibe(e){jye("claudeai.epitaxy.action_center.pr_clicked",e)}function Tbe(e){jye("claudeai.epitaxy.sidebar.toggled",e)}function Abe(e){jye("claudeai.epitaxy.sidebar.session_hover_card_opened",e)}function Ebe(e){jye("claudeai.epitaxy.sidebar.hover_quick_reply_sent",e)}function Rbe(e){jye("claudeai.epitaxy.sidebar.archive_shortcut",e)}function Dbe(e){jye("claudeai.epitaxy.transcript_mode.changed",e)}function Hbe(e){jye("claudeai.epitaxy.tool_approval.decided",{...e,tool_name:ru(e.tool_name)})}function Pbe(e){jye("claudeai.epitaxy.session.forked",e)}function Ube(e){jye("claudeai.epitaxy.session.archived",e)}function Obe(e){jye("claudeai.epitaxy.session.unarchived",e)}function Fbe(e){jye("claudeai.epitaxy.session.deleted",e)}function Vbe(e){jye("claudeai.epitaxy.session.exported",e)}function zbe(e){jye("claudeai.epitaxy.code_review.findings_card_rendered",e)}function Zbe(e){jye("claudeai.epitaxy.code_review.walkthrough_opened",e)}function Bbe(e){jye("claudeai.epitaxy.code_review.fix_applied",e)}function qbe(e){jye("claudeai.epitaxy.code_review.dismissed",e)}function Wbe(e){jye("claudeai.epitaxy.code_review.posted_as_comments",e)}function $be(e){jye("claudeai.epitaxy.code_review.rerun_review",e)}function Gbe(e){jye("claudeai.epitaxy.session.renamed",e)}function Kbe(e){jye("claudeai.epitaxy.session.link_copied",e)}function Ybe(e){jye("claudeai.television.teleport.copied",e)}function Qbe(e){jye("claudeai.epitaxy.open_in_desktop.clicked",e)}function Jbe(e){jye("claudeai.epitaxy.share_modal.viewed",e)}function Xbe(e){jye("claudeai.code.preview_load_health.verdict",e)}function eke(e){jye("claudeai.epitaxy.side_pane.toggled",e)}function tke(e){jye("claudeai.epitaxy.side_pane.expand_toggled",e)}function ske(e){jye("claudeai.epitaxy.local_only_hovered",e)}function nke(e){jye("claudeai.epitaxy.tool_row.expanded",e)}function ake(e){jye("claudeai.epitaxy.rewind.viewed",e)}function ike(e){jye("claudeai.epitaxy.rewind.selected",e)}function rke(e){jye("claudeai.epitaxy.dictation.started",e)}function oke(e){jye("claudeai.epitaxy.dictation.stopped",e)}function lke(e){jye("claudeai.epitaxy.popout.opened",e)}function cke(e){jye("claudeai.epitaxy.popout.closed",e)}function dke(){jye("claudeai.epitaxy.side_chat.popout.opened",{})}function uke(e){jye("claudeai.epitaxy.side_chat.popout.closed",e)}function mke(e){jye("claudeai.epitaxy.ask_user_question.viewed",e)}function pke(e){jye("claudeai.epitaxy.ask_user_question.answered",e)}function fke(){jye("claudeai.epitaxy.ask_user_question.skipped",{})}function gke(){jye("claudeai.epitaxy.ask_user_question.dismissed",{})}function hke(e){jye("claudeai.epitaxy.background_task.spawned",e)}function Cke(){jye("claudeai.epitaxy.background_task.dismissed",{})}function xke(){jye("claudeai.epitaxy.background_task.skipped",{})}function vke(e){jye("claudeai.epitaxy.chapter.jumped",e)}function yke(){jye("claudeai.epitaxy.chapter.created",{})}function bke(){jye("claudeai.epitaxy.sticky_prompt.clicked",{})}function kke(){jye("claudeai.epitaxy.preview.sketch_mode_entered",{})}function wke(){jye("claudeai.epitaxy.preview.sketch_attached",{})}function Mke(e){jye("claudeai.epitaxy.preview.selection_mode_entered",{transport:e})}function _ke(e){jye("claudeai.epitaxy.preview.element_selected",{transport:e})}function jke(e){jye("claudeai.desktop.code.prompt_suggestion.shown",e)}function Ske(e){jye("claudeai.desktop.code.prompt_suggestion.accepted",e)}function Lke(e){jye("claudeai.code.ci_monitor.auto_fix_toggled",e)}function Nke(e){jye("claudeai.code.ci_monitor.auto_merge_toggled",e)}const Ike="composer-draft:",Tke="composer-draft-images:",Ake=new Map;function Eke(e){return`epitaxy-${e}`}const Rke=new Set,Dke=new Map,Hke=new Map;function Pke(e){return Hke.get(e)??0}function Uke(){const e=Ake.keys().next().value;if(void 0===e)return;const t=Ake.get(e);Ake.delete(e),Dke.delete(e),"undefined"!=typeof window&&(localStorage.removeItem(Ike+e),oC(Tke+e).catch(()=>{}));for(const s of t?.stagedImages??[])URL.revokeObjectURL(s.previewUrl)}async function Oke(e){if("undefined"==typeof window)return[];try{const t=await cC(Tke+e);if(!t?.length)return[];const s=t.flatMap(e=>{const t=e.block.source;return"base64"!==t.type?[]:[{id:e.id,name:e.name,previewUrl:`data:${t.media_type};base64,${t.data}`,status:"ready",block:e.block}]});return Dke.set(e,s.map(e=>e.id).join(",")),s}catch{return[]}}function Fke(e,t){if(Rke.has(e))return;!function(e,t){if("undefined"==typeof window)return;const s=Ike+e;if(t.text||t.files?.length||t.snippets?.length||t.agent)try{localStorage.setItem(s,JSON.stringify({text:t.text,files:t.files,snippets:t.snippets,agent:t.agent}))}catch{}else localStorage.removeItem(s)}(e,t),function(e,t){if("undefined"==typeof window||void 0===t)return;const s=Tke+e,n=t.filter(e=>"ready"===e.status),a=n.map(e=>e.id).join(",");if(Dke.get(e)===a)return;if(Dke.set(e,a),0===n.length)return void oC(s).catch(()=>{Dke.delete(e)});const i=n.map(e=>({id:e.id,name:e.name,block:e.block}));lC(s,i).catch(()=>{Dke.delete(e)})}(e,t.stagedImages);const s=Ake.get(e),n=t.ccrFiles??s?.ccrFiles,a=t.autoSubmit??s?.autoSubmit;t.text||t.stagedImages?.length||t.files?.length||t.snippets?.length||t.agent||n?.length?(Ake.delete(e),Ake.size>=20&&Uke(),Ake.set(e,{...t,ccrFiles:n,autoSubmit:a})):Ake.delete(e)}function Vke(e,t){if(Rke.has(e))return;const s=Ake.get(e)??{};0!==t.length||s.text||s.stagedImages?.length||s.files?.length||s.snippets?.length||s.agent?(Ake.delete(e),Ake.size>=20&&Uke(),Ake.set(e,{...s,ccrFiles:t})):Ake.delete(e)}function zke(e,t={}){Hke.set(e,(Hke.get(e)??0)+1),Fke(e,{...t,stagedImages:t.stagedImages??[],ccrFiles:t.ccrFiles??[],autoSubmit:t.autoSubmit??!1})}function Zke(e){const t=Ake.get(e);return!!t?.autoSubmit&&(t.autoSubmit=!1,!0)}function Bke(e){const t=Ake.get(e);if(t)return t;const s=function(e){if("undefined"==typeof window)return;const t=localStorage.getItem(Ike+e);if(t)try{return JSON.parse(t)}catch{return}}(e);return s&&Ake.set(e,s),s}function qke(e){Rke.add(e),Hke.set(e,(Hke.get(e)??0)+1);const t=Ake.get(e);Ake.delete(e),Dke.delete(e),"undefined"!=typeof window&&(localStorage.removeItem(Ike+e),oC(Tke+e).catch(()=>{}));for(const s of t?.stagedImages??[])URL.revokeObjectURL(s.previewUrl)}async function Wke(){if("undefined"!=typeof window)try{const e=await dC();await Promise.all(e.filter(e=>"string"==typeof e&&e.startsWith(Tke)).map(e=>oC(e)))}catch{}}const $ke="/v1/code/session_groupings";async function Gke(e,t,s,n){const a=await e(s,{method:n.method,headers:uC(t),...void 0!==n.body&&{body:JSON.stringify(n.body)}});if(!a.ok){let e,t;if(a.status<500)try{const s=await a.json();e=s.error?.message??s.message,t=s.error?.reason}catch{}throw new hl(n.fnName,a.status,{serverMessage:e,serverReason:t})}if("GET"!==n.method){const e=await a.text();if(""===e.trim())return;return JSON.parse(e)}return await a.json()}async function Kke(e,t,s){const n=new URLSearchParams;s?.scope&&n.set("scope",s.scope),s?.includeMembers&&n.set("include_members","true"),s?.limit&&n.set("limit",String(s.limit)),s?.cursor&&n.set("cursor",s.cursor);const a=n.toString();return Gke(e,t,a?`${$ke}?${a}`:$ke,{method:"GET",fnName:"listSessionGroupings"})}async function Yke(e,t,s){return Gke(e,t,`${$ke}/${encodeURIComponent(s)}`,{method:"GET",fnName:"getSessionGrouping"})}async function Qke(e,t,s,n){return Gke(e,t,`${$ke}/${encodeURIComponent(s)}/coordinator`,{method:"POST",body:{environment_id:n.environmentId},fnName:"ensureGroupingCoordinator"})}async function Jke(e,t,s){return Gke(e,t,`${$ke}/${encodeURIComponent(s)}/settings`,{method:"GET",fnName:"getSessionGroupingSettings"})}async function Xke(e,t,s,n){return Gke(e,t,`${$ke}/${encodeURIComponent(s)}/settings`,{method:"PUT",body:n,fnName:"updateSessionGroupingSettings"})}const ewe=["red","orange","green","aqua","blue","violet","magenta"],twe="cc-project-grouping-settings";function swe(e,t){return[twe,e,t]}function nwe(e){return"string"==typeof e&&ewe.includes(e)}const awe=["Projects","Folder","Code","Database","HandHeart","Beaker","Wrench","Activity","Chart","Team","Users","Book","Box","Note","File","Lightbulb","Palette","Star","Flag","Home","Sun","Clock","Calendar","Scroll"];function iwe(e){return"string"==typeof e&&awe.includes(e)}function rwe(e,t){const{color:s,icon:n,...a}=fwe(e)??{repoUrls:[]};xwe(e,{...a,...void 0!==t.color&&{color:t.color},...void 0!==t.icon&&{icon:t.icon}})}function owe(e){return{repoUrls:e?.settings?.repo_urls??[],...e?.default_environment_id&&{environmentId:e.default_environment_id},...e?.settings?.instructions&&{instructions:e.settings.instructions},...e?.settings?.model_id&&{modelId:e.settings.model_id},...e?.settings?.coordinator_model_id&&{coordinatorModelId:e.settings.coordinator_model_id},...e?.settings?.effort_level&&{effortLevel:e.settings.effort_level},...nwe(e?.settings?.color)&&{color:e.settings.color},...iwe(e?.settings?.icon)&&{icon:e.settings.icon},..."boolean"==typeof e?.settings?.coordinator_mode_enabled&&{coordinatorModeEnabled:e.settings.coordinator_mode_enabled}}}function lwe(e){return{default_environment_id:e.environmentId??null,settings:{repo_urls:e.repoUrls,instructions:e.instructions??null,model_id:e.modelId??null,coordinator_model_id:e.coordinatorModelId??null,effort_level:e.effortLevel??null,color:e.color??null,icon:e.icon??null}}}function cwe(e){return`projects.sessionConfig.${e}`}function dwe(e){return e.replace(/^https?:\/\/[^/]+\//,"")}function uwe(e){return"anthropics/anthropic"===dwe(e).toLowerCase()}function mwe({repoUrls:e,environmentId:t}){return e.some(uwe)&&!Dne(t)}function pwe(e,t,s){const n=t?.trim()??"";return""===n||e.trimStart().startsWith("/")?e:`${e}\n\n<system-reminder>\nThe user has set the following custom instructions for this project. They provide standing context that applies to every conversation in the project:\n\n${mC(n,rC,s)}\n</system-reminder>`}function fwe(e){try{const t=window.localStorage.getItem(cwe(e));if(!t)return null;const s=JSON.parse(t);return{repoUrls:Array.isArray(s.repoUrls)?s.repoUrls.filter(e=>"string"==typeof e):[],..."string"==typeof s.environmentId&&{environmentId:s.environmentId},..."string"==typeof s.instructions&&""!==s.instructions.trim()&&{instructions:s.instructions},..."string"==typeof s.modelId&&""!==s.modelId.trim()&&{modelId:s.modelId},..."string"==typeof s.coordinatorModelId&&""!==s.coordinatorModelId.trim()&&{coordinatorModelId:s.coordinatorModelId},..."string"==typeof s.effortLevel&&""!==s.effortLevel.trim()&&{effortLevel:s.effortLevel},...nwe(s.color)&&{color:s.color},...iwe(s.icon)&&{icon:s.icon}}}catch{return null}}const gwe=new Map;let hwe=!1;function Cwe(e,t){hwe||"undefined"==typeof window||(hwe=!0,window.addEventListener("storage",e=>{if(null===e.key||!e.key.startsWith("projects.sessionConfig."))return;const t=e.key.slice(23);for(const s of gwe.get(t)??[])s()}));let s=gwe.get(e);return void 0===s&&(s=new Set,gwe.set(e,s)),s.add(t),()=>{s.delete(t)}}function xwe(e,t){let s=!0;try{window.localStorage.setItem(cwe(e),JSON.stringify(t))}catch{s=!1}for(const n of gwe.get(e)??[])n();return s}function vwe(t){const[s,n]=e.useState(null);return e.useEffect(()=>{if(t)return n(fwe(t)),Cwe(t,()=>{n(fwe(t))});n(null)},[t]),s}const ywe="cc-project-groupings",bwe="cc-project-directory";async function kwe(e,t,s){const n=[];let a,i=0;do{const r=await Kke(e,t,{scope:s,limit:200,includeMembers:!0,...void 0!==a&&{cursor:a}});n.push(...r.data??[]),a=void 0!==r.next_cursor&&null!==r.next_cursor&&""!==r.next_cursor.trim()?r.next_cursor:void 0,i+=1}while(void 0!==a&&i<25);return n}let wwe=!1;function Mwe(e,t,s){const n=[],a=new Set,i=e.members_truncated?e.members??[]:[...e.members??[]].sort((e,t)=>e.joined_at===t.joined_at?0:e.joined_at?t.joined_at?e.joined_at<t.joined_at?-1:1:-1:1);for(const l of i){if(void 0!==l.account_id&&a.has(l.account_id))continue;void 0!==l.account_id&&a.add(l.account_id);const e=uye("user",l.account_id),s=l.display_name||t(e);s&&n.push({name:s,...void 0!==e&&{accountUuid:e}})}const r=uye("user",e.created_by_account_id),o=void 0!==r&&void 0!==s&&r===s?void 0:void 0!==r?t(r)??"":"";return{id:e.id,name:e.name,..."private"===e.visibility&&{isPrivate:!0},...void 0!==e.caller_relations&&!(e.caller_relations??[]).includes("owner")&&{canManage:!1},...e.description&&{description:e.description},...n.length>0&&{members:n},...void 0!==o&&""!==o&&{creator:o},...void 0!==o&&""!==o&&void 0!==r&&{creatorAccountUuid:r},...""===o&&{creator:""},createdAt:Date.parse(e.created_at??"")||0}}function _we(){const{addError:t}=ut();return e.useCallback((e,s,n)=>{const a=n instanceof hl&&void 0!==n.serverMessage?fo(pC(fC(n.serverMessage))):void 0;t(e,{error:n instanceof hl?Object.assign(new Error(n.message),{name:"CcrHttpError",status:n.status,stack:n.stack}):n,messageForLogging:s,...void 0!==a&&{errorContext:{extra:{serverMessage:a}}}})},[t])}async function jwe(e,t){return await e.cancelQueries({queryKey:t}),e.getQueryData(t)}function Swe({enabled:t},s){const n=M(),{activeOrganization:a,account:i}=v(),r=a?.uuid,o=gL(),l=e.useMemo(()=>[ywe,r],[r]),c=e.useMemo(()=>[bwe,r],[r]),{data:d,isSuccess:u,isError:m}=pL({queryKey:l,enabled:t&&!!r,refetchInterval:e=>"error"===e.state.status?3e5:6e4,retry:1,gcTime:1/0,queryFn:async()=>r?kwe(n,r,"joined"):[]});u&&(wwe=!0);const p=wwe&&void 0!==d,f=e.useMemo(()=>d?.map(e=>Mwe(e,s,i?.uuid)),[d,s,i?.uuid]),g=JS(),h=_we(),C=hL({onMutate:async()=>(await o.cancelQueries({queryKey:l}),{mutKey:l}),mutationFn:async e=>{if(!r)throw new Error("missing org");const t=await async function(e,t,s){return Gke(e,t,$ke,{method:"POST",fnName:"createSessionGrouping",body:{name:s.name,...void 0!==s.visibility&&{visibility:s.visibility}}})}(n,r,{name:e.name,visibility:!1===e.isPrivate?"public":"private"});if(!t.session_grouping?.id)throw new Error("create returned no grouping");return t.session_grouping},onSuccess:(e,t,s)=>{o.setQueryData(s?.mutKey??l,t=>t?.some(t=>t.id===e.id)?t:[e,...t??[]])},onError:e=>{h(e instanceof hl&&403===e.status?g.formatMessage({defaultMessage:"Couldn't create the project. Shared projects need session sharing enabled and an org admin role.",id:"gPEKXF45wp"}):g.formatMessage({defaultMessage:"Couldn't create the project",id:"/0VYO1gtBc"}),"cc_project_grouping_create_failed",e)}}),x=hL({mutationFn:async e=>{if(!r)throw new Error("missing org");return async function(e,t,s,n){return Gke(e,t,`${$ke}/${encodeURIComponent(s)}`,{method:"PATCH",body:n,fnName:"updateSessionGrouping"})}(n,r,e.id,{name:e.name})},onMutate:async e=>{const t=l,s=await jwe(o,t);return o.setQueryData(l,t=>t?.map(t=>t.id===e.id?{...t,name:e.name}:t)),{prev:s,mutKey:t}},onError:(e,t,s)=>{o.setQueryData(s?.mutKey??l,s?.prev),h(g.formatMessage({defaultMessage:"Couldn't update the project",id:"O0U+USF0vy"}),"cc_project_grouping_update_failed",e)},onSuccess:(e,t,s)=>{const n=e?.session_grouping;n?.id&&o.setQueryData(s?.mutKey??l,e=>e?.map(e=>e.id===t.id?n:e)),function(e){jye("claudeai.epitaxy.grouping.renamed",e)}({project_id:t.id})}}),y=hL({mutationFn:async e=>{if(!r)throw new Error("missing org");await async function(e,t,s){await Gke(e,t,`${$ke}/${encodeURIComponent(s)}`,{method:"DELETE",fnName:"deleteSessionGrouping"})}(n,r,e)},onMutate:async e=>{const t=l,s=c,n=await jwe(o,t);o.setQueryData(l,t=>t?.filter(t=>t.id!==e));const a=await jwe(o,s);return o.setQueryData(s,t=>t?.filter(t=>t.id!==e)),{prev:n,prevDir:a,mutKey:t,mutDirKey:s}},onError:(e,t,s)=>{o.setQueryData(s?.mutKey??l,s?.prev),o.setQueryData(s?.mutDirKey??c,s?.prevDir),h(g.formatMessage({defaultMessage:"Couldn't delete the project",id:"0Wga3/tcWK"}),"cc_project_grouping_delete_failed",e)},onSuccess:(e,t)=>{!function(e){try{window.localStorage.removeItem(cwe(e))}catch{}for(const t of gwe.get(e)??[])t()}(t),o.removeQueries({queryKey:swe(r,t)}),qke(`cc-project:${t}`),function(e){jye("claudeai.epitaxy.grouping.deleted",e)}({project_id:t})}}),b=hL({mutationFn:async e=>{if(!r)throw new Error("missing org");await async function(e,t,s){await Gke(e,t,`${$ke}/${encodeURIComponent(s)}/leave`,{method:"POST",body:{},fnName:"leaveSessionGrouping"})}(n,r,e)},onMutate:async e=>{const t=l,s=await jwe(o,t);return o.setQueryData(t,t=>t?.filter(t=>t.id!==e)),{prev:s,mutKey:t}},onError:(e,t,s)=>{o.setQueryData(s?.mutKey??l,s?.prev);const n=e instanceof hl?e.serverReason:void 0;h("owner_cannot_leave"===n?g.formatMessage({defaultMessage:"Couldn't leave the project. You're the owner. Delete it instead.",id:"MuWxJmrV39"}):"private_grouping_members_not_supported"===n?g.formatMessage({defaultMessage:"Couldn't leave the project. Personal projects can't be left.",id:"0gUnqHNz+V"}):g.formatMessage({defaultMessage:"Couldn't leave the project",id:"fpR0PVzoSa"}),"cc_project_grouping_leave_failed",e)},onSuccess:(e,t)=>{!function(e){jye("claudeai.epitaxy.grouping.left",e)}({project_id:t})}}),{mutateAsync:k}=C,{mutate:w}=x,{mutate:_}=y,{mutate:j}=b,S=e.useCallback(async(e,t)=>{const n=Mwe(await k({name:e,isPrivate:t?.isPrivate}),s,i?.uuid);return function(e){jye("claudeai.epitaxy.grouping.created",e)}({project_id:n.id,visibility:!0===n.isPrivate?"private":"public"}),n},[k,s,i?.uuid]);return{projects:p?f:void 0,ready:p,errored:m,createProject:S,renameProject:e.useCallback((e,t)=>{w({id:e,name:t})},[w]),deleteProject:e.useCallback(e=>{_(e)},[_]),leaveProject:e.useCallback(e=>{j(e)},[j])}}function Lwe({enabled:t},s){const n=M(),{activeOrganization:a,account:i}=v(),r=a?.uuid,o=gL(),l=e.useMemo(()=>[bwe,r],[r]),c=e.useMemo(()=>[ywe,r],[r]),d=JS(),u=_we(),{data:m,isError:p}=pL({queryKey:l,enabled:t&&!!r,refetchInterval:e=>"error"===e.state.status?3e5:6e4,retry:1,queryFn:async()=>r?kwe(n,r,"all"):[]}),f=hL({onMutate:async()=>(await o.cancelQueries({queryKey:c}),{mutJoinedKey:c,mutDirKey:l}),mutationFn:async e=>{if(!r)throw new Error("missing org");const t=await async function(e,t,s){return Gke(e,t,`${$ke}/${encodeURIComponent(s)}/join`,{method:"POST",body:{},fnName:"joinSessionGrouping"})}(n,r,e);if(!t.session_grouping?.id)throw new Error("join returned no grouping");return t.session_grouping},onSuccess:(e,t,s)=>{o.setQueryData(s?.mutJoinedKey??c,t=>t?.some(t=>t.id===e.id)?t:[e,...t??[]]),o.setQueryData(s?.mutDirKey??l,t=>t?.map(t=>t.id===e.id?e:t)),function(e){jye("claudeai.epitaxy.grouping.joined",e)}({project_id:e.id})},onError:e=>{u(d.formatMessage({defaultMessage:"Couldn't join the project",id:"nsPRtxAsY/"}),"cc_project_grouping_join_failed",e)}}),{mutateAsync:g}=f,h=e.useCallback(async e=>{await g(e)},[g]);return{projects:e.useMemo(()=>m?.map(e=>Mwe(e,s,i?.uuid)),[m,s,i?.uuid]),isLoading:t&&void 0===m&&!p,joinProject:h}}const Nwe=200;function Iwe(e){return t=>({projects:e,createProject:(e,s)=>{const n={id:crypto.randomUUID(),name:e,...s?.isPrivate&&{isPrivate:!0},createdAt:Date.now()};return t(e=>({projects:[...e.projects,n]})),n},renameProject:(e,s)=>t(t=>({projects:t.projects.map(t=>t.id===e?{...t,name:s}:t)})),deleteProject:e=>t(t=>({projects:t.projects.filter(t=>t.id!==e)})),markProjectRead:e=>t(t=>({projects:t.projects.map(t=>t.id===e&&t.unread?{...t,unread:!1}:t)})),adoptProject:e=>t(t=>t.projects.some(t=>t.id===e.id)?t:{projects:[...t.projects,e]})})}const Twe=fT()(CT(Iwe([]),{name:"epitaxy-project-groupings",storage:xT(()=>localStorage),partialize:e=>({projects:e.projects})}));const Awe=[],Ewe=[].map((e,t)=>{return{id:(s=t+1,`00000000-0000-4000-8000-${s.toString().padStart(12,"0")}`),name:e.name,...e.isPrivate&&{isPrivate:!0},...void 0!==e.description&&{description:e.description},...e.members&&{members:e.members.map(e=>({name:Awe[e%Awe.length]}))},...void 0!==e.creator&&{creator:Awe[e.creator%Awe.length]},...e.unread&&{unread:!0},createdAt:Date.now()-864e5*e.createdDaysAgo};var s});fT()(Iwe(Ewe));let Rwe;function Dwe(t){const s=!1,n=t?.enabled??!0,a=(Rwe??=Twe,Rwe),i=a(e=>e.projects),r=a(e=>e.createProject),o=a(e=>e.renameProject),l=a(e=>e.deleteProject),c=a(e=>e.markProjectRead),d=a(e=>e.adoptProject),u=Swe({enabled:n},pye({enabled:n})),m=u.ready?u.projects:void 0,p=void 0!==m,f=e.useMemo(()=>new Set((m??[]).map(e=>e.id)),[m]),g=e.useMemo(()=>[...p?[...m,...i.filter(e=>!f.has(e.id))]:i].sort((e,t)=>t.createdAt-e.createdAt),[p,m,f,i]),{createProject:h,renameProject:C,deleteProject:x,leaveProject:v}=u,y=e.useCallback((e,t)=>h(e,t),[s,h,r]),b=e.useCallback((e,t)=>f.has(e)?C(e,t):o(e,t),[f,C,o]),k=e.useCallback(e=>f.has(e)?x(e):l(e),[f,x,l]),w=e.useCallback(e=>{f.has(e)&&v(e)},[f,v]),M=d,_=e.useCallback(e=>{f.has(e)||c(e)},[f,c]);return{projects:g,isLoading:!u.ready&&!u.errored,isError:u.errored&&!u.ready,createProject:y,renameProject:b,deleteProject:k,leaveProject:w,markProjectRead:_,adoptProject:M}}function Hwe(e){const{projects:t}=Dwe({enabled:""!==e});return t.find(t=>t.id===e)}function Pwe(){const e=Swe({enabled:!0},pye({enabled:!0}));return e.ready||e.errored}function Uwe(){const e=Swe({enabled:!0},pye({enabled:!0}));return e.errored&&!e.ready}function Owe(e){const t=Swe({enabled:!0},pye({enabled:!0}));return t.ready&&void 0!==e&&e.startsWith("sgrp_")&&(t.projects?.some(t=>t.id===e)??!1)}function Fwe(e){return e.tags?.includes("_coordinator")??!1}const Vwe="completedAckAt";function zwe(e,t){const s=function(e){return e?.client_metadata??e?.metadata}(e)?.[Vwe];if("string"!=typeof s)return!1;const n=Date.parse(s);return!Number.isNaN(n)&&n>=Date.parse(t)}function Zwe(e){return"blocked"===e||"need_input"===e||"failed"===e}function Bwe(e,t){return"pending"===e||"running"===e&&"idle"!==t}function qwe(e){return!1===e?.isShared&&Bwe(e.sessionStatus,e.workerStatus)&&!("running"===e.sessionStatus&&"disconnected"===e.connectionStatus)}function Wwe(e){return"archived"!==e.session_status&&(!(""===e.environment_id&&!e.self_hosted_runner_pool_id&&!Wh(e))&&!fh(e))}const $we=tL({cloud:{defaultMessage:"Cloud",id:"fiPvwYljok"},bridge:{defaultMessage:"Remote Control",id:"4mv6Z9Tv+V"},routine:{defaultMessage:"Routine",id:"lEdpUM5nnB"}}),Gwe=["cloud","bridge","routine"];function Kwe(e){return Wh(e)?"bridge":Zh(e)?"routine":"cloud"}const Ywe=["blocked","review","working","done"],Qwe=tL({review:{defaultMessage:"Ready for review",id:"jYw2K3E1r3"},blocked:{defaultMessage:"Needs input",id:"CD9YaN3oTh"},working:{defaultMessage:"Working",id:"gAR0atqpRn"},done:{defaultMessage:"Completed",id:"95stPqCnfu"}});function Jwe(e,t=!1,s=!1,n=!1){return"deleted"===e.session_status?null:"archived"===e.session_status?"done":t?"working":"requires_action"===e.session_status?"blocked":Bwe(e.session_status,e.worker_status)?"working":Zwe(e.post_turn_summary?.status_category)?"blocked":s?"done":n?"review":e.created_at===e.updated_at?"working":"done"}function Xwe(e){const t=new Set;for(const{repo:s}of afe(e))t.add(s);return t}const eMe=7;function tMe(e,t){if(t<=0)return!1;const s=Date.parse(e.updated_at);return!Number.isNaN(s)&&Date.now()-s>24*t*60*60*1e3}function sMe(e,t){if(e.hasError)return"error";if("awaiting"===e.liveStatus)return"awaiting";if("running"===e.liveStatus)return"running";const s="code"===e.kind&&"none"!==e.prState;return t?.readyAfterPr&&s?"pr":e.hasCompleted&&e.isUnread?"ready":s?"pr":"idle"}const nMe=new Set(["error","awaiting","running","ready"]);function aMe(e,{showHaystackRow:t,isAskYourOrgVisible:s}){return t||!s?e.filter(e=>e.type!==Re.Haystack):e}function iMe(e){return{uuid:e.conversation.uuid,name:e.conversation.name,created_at:e.conversation.created_at,updated_at:e.conversation.updated_at,summary:e.matched_snippet?.text??"",is_starred:e.conversation.is_starred,session_id:e.conversation.session_id??void 0,settings:e.conversation.settings??void 0,project_uuid:e.conversation.project_uuid??void 0,platform:e.conversation.platform,current_leaf_message_uuid:e.conversation.current_leaf_message_uuid??void 0}}function rMe(e,t,s,n,a){const i=new URLSearchParams;return i.append("query",t),i.append("n",Math.min(Math.max(s,1),200).toString()),i.append("target_snippet_size",n.toString()),a&&i.append("project_uuid",a),`/api/organizations/${e}/conversation/search/v2?${i}`}function oMe({query:e,n:t=20,targetSnippetSize:s=200,projectUuid:n,enabled:a}){const{activeOrganization:i}=v(),r=i?.uuid,o=rMe(r,e,t,s,n),l=Nt("Query error"),c=a&&!!r&&!!e.trim(),d=n?"v2_project":"v2";return B(o,{queryKey:["conversation_search_v2",{orgUuid:r,projectUuid:n},e,t,s],enabled:c,staleTime:6e4,placeholderData:fL,queryFn:async({signal:e})=>{const t=performance.now();try{const s=await l(o,{method:"GET",headers:{"Content-Type":"application/json"},signal:e});if(e.aborted)gC("aborted",d,void 0,performance.now()-t);else if(void 0!==s){gC("success",d,void 0,performance.now()-t);const e=s?.data?.length??0;Bl("chat.conversation_search.results",{attributes:{variant:d,result_count:e,zero_results:0===e}})}return s}catch(s){throw gC(e.aborted?"aborted":"failure",d,s,performance.now()-t),s}}})}function lMe(e){return`persisted.cowork-read-state.${e}`}const cMe=fT()(()=>({readState:null}));let dMe=null;function uMe(e){if(dMe)try{localStorage.setItem(lMe(dMe),JSON.stringify(e))}catch{}}function mMe(e){if(!e||e===dMe)return;dMe=e;try{localStorage.removeItem("cowork-read-state")}catch{}const t=function(e){try{const t=localStorage.getItem(e);if(!t)return null;const s=JSON.parse(t);return function(e){if("object"!=typeof e||null===e)return!1;const t=e;return"number"==typeof t.initializedAt&&"object"==typeof t.sessions&&null!==t.sessions&&(void 0===t.explicitUnread||"object"==typeof t.explicitUnread&&null!==t.explicitUnread)}(s)?s:null}catch{return null}}(lMe(e)),s=t??{sessions:{},initializedAt:Date.now()};cMe.setState({readState:s}),t||uMe(s)}function pMe(){const{account:t}=v(),s=t?.uuid;e.useEffect(()=>{mMe(s)},[s])}function fMe(e){const{readState:t}=cMe.getState();if(!t)return;const{[e]:s,...n}=t.explicitUnread??{},a={...t,sessions:{...t.sessions,[e]:Date.now()},explicitUnread:n};cMe.setState({readState:a}),uMe(a)}function gMe(e){const{readState:t}=cMe.getState();t?.explicitUnread?.[e]||fMe(e)}function hMe(e){const{readState:t}=cMe.getState();if(!t?.explicitUnread?.[e])return;const{[e]:s,...n}=t.explicitUnread,a={...t,explicitUnread:n};cMe.setState({readState:a}),uMe(a)}function CMe(e,t){if(!t)return!1;const s=t.sessions[e.sessionId],n=e.lastActivityAt??e.createdAt??0;return void 0===s?n>t.initializedAt:n>s}function xMe(e){return!e.isRunning&&void 0!==e.lastActivityAt}function vMe(){return cMe(e=>e.readState)}function yMe(e){return cMe(t=>!!t.readState?.explicitUnread?.[e])}function bMe(e,t){return{ref:{kind:"chat",id:e.uuid},title:e.name||null,updatedAtMs:Date.parse(e.updated_at),createdAtMs:Date.parse(e.created_at),liveStatus:t?"running":"idle",isRunning:t,hasError:!1,pendingPermissions:0,hasCompleted:!1,isUnread:!1,isStarred:e.is_starred??!1,source:{kind:"chat",data:e}}}const kMe=[];function wMe(e,t,s){const n=RC(e);return{ref:{kind:"cowork",id:e.sessionId},title:e.scheduledTaskId&&!ga(e.sessionId)?im(e.scheduledTaskId):e.title??null,updatedAtMs:e.lastActivityAt??e.createdAt??0,createdAtMs:e.createdAt??0,liveStatus:n,isRunning:"idle"!==n,hasError:!1,pendingPermissions:e.pendingToolPermissions?.length||("awaiting"===n?1:0),hasCompleted:"idle"===n&&void 0!==e.lastActivityAt,isUnread:CMe(e,t),isStarred:ga(e.sessionId)?s?.has(e.sessionId)??!1:e.isStarred??!1,source:{kind:"cowork",data:e}}}function MMe(e){return{ref:{kind:"project",id:e.uuid},title:e.name,updatedAtMs:Date.parse(e.updated_at),createdAtMs:Date.parse(e.created_at),liveStatus:"idle",isRunning:!1,hasError:!1,pendingPermissions:0,hasCompleted:!1,isUnread:!1,isStarred:e.is_starred,source:{kind:"project",data:e}}}function _Me(e){return{ref:{kind:"epitaxy-project",id:e.id},title:e.name,updatedAtMs:e.createdAt,createdAtMs:e.createdAt,liveStatus:"idle",isRunning:!1,hasError:!1,pendingPermissions:0,hasCompleted:!1,isUnread:!1,isStarred:!1,source:{kind:"epitaxy-project",data:e}}}function jMe(e){return{ref:{kind:"cowork-space",id:e.id},title:e.name,updatedAtMs:e.updatedAt,createdAtMs:e.createdAt,liveStatus:"idle",isRunning:!1,hasError:!1,pendingPermissions:0,hasCompleted:!1,isUnread:!1,isStarred:!0,source:{kind:"cowork-space",data:e}}}function SMe(e){return{ref:{kind:"cowork-artifact",id:e.id},title:e.name,updatedAtMs:e.updatedAt??e.createdAt,createdAtMs:e.createdAt,liveStatus:"idle",isRunning:!1,hasError:!1,pendingPermissions:0,hasCompleted:!1,isUnread:!1,isStarred:e.isStarred??!1,source:{kind:"cowork-artifact",data:e}}}function LMe(e){return"requires_action"===e.sessionStatus}function NMe(e){if("requires_action"===e.sessionStatus)return!1;return!Bwe(e.sessionStatus,e._originalSession?.worker_status)&&(t=e.postTurnSummary?.status_category,"failed"===t||Boolean(e.error));var t}function IMe(e,t,s,n,a,i,r){const o=(e.isUnread??!1)||(r?.has(e.id)??!1),l=s?.has(e.id)??!1,c=n?.has(e.id)??!1,d=a?.get(e.id),u=void 0!==d&&d>=Date.parse(e.timestamp)||zwe(e._originalSession,e.timestamp),m=c||!l&&!u&&LMe(e),p=!0===e.hasBackgroundActivity||"running"===e.sessionStatus||"pending"===e.sessionStatus||"requires_action"===e.sessionStatus,f="requires_action"===e.sessionStatus||Bwe(e.sessionStatus,e._originalSession?.worker_status),g=!c&&!l&&!u&&!f&&((i?.has(e.id)??!1)||NMe(e)),h=m?"awaiting":l||!u&&p?"running":"idle";return{ref:{kind:"code",id:e.id},title:e.title,updatedAtMs:Date.parse(e.timestamp),createdAtMs:Date.parse(e.createdAt??e.timestamp),liveStatus:h,isRunning:"idle"!==h,isResponding:l,hasPendingApproval:c,hasError:g,pendingPermissions:"awaiting"===h?1:0,hasCompleted:o,isUnread:o,isStarred:t?.has(e.id)??!1,source:{kind:"code",data:e}}}function TMe(e,t){const{ref:s,source:n,...a}=e,{ref:i,source:r,...o}=t;if(s.kind!==i.kind||s.id!==i.id||n.kind!==r.kind||n.data!==r.data)return!1;const l=Object.keys(a);return l.length===Object.keys(o).length&&l.every(e=>Object.is(a[e],o[e]))}function AMe(e,t,s=TMe){if(0===t.length)return e;const n=new Map;for(const i of t)n.set(bl(i.ref),i);let a=e.length===t.length;for(let i=0;i<e.length;i++){const r=n.get(bl(e[i].ref));void 0!==r&&s(e[i],r)&&(e[i]=r),a&&e[i]!==t[i]&&(a=!1)}return a?t:e}function EMe(e,t){return t.updatedAtMs-e.updatedAtMs}function RMe(e,t){return t.createdAtMs-e.createdAtMs}function DMe(e,t){if(!t)return e.sort(EMe);const s=[],n=[];for(const a of e)("chat"===a.ref.kind?s:n).push(a);return[...s,...n.sort(EMe)]}function HMe(e,t){return"chat"===e.ref.kind||(e.title??"").toLowerCase().includes(t)}function PMe(e,t){const s=e.title||null,n=t.title||null;return s===n?0:null===s?1:null===n?-1:s.localeCompare(n)}const UMe=[];function OMe({chatLimit:t=xC,includeStarredChats:s=!0,searchQuery:n,includeArchivedCowork:a=!1,branchStatusPollInterval:i,codeStatusFilter:r="active",chatEnabled:o=!0,remoteCoworkEnabled:l=!0}={}){const c=!!n,d=c;pMe();const{data:u,isPending:m,hasNextPage:p,isFetchingNextPage:f,isFetchNextPageError:g,fetchNextPage:h}=hC({limit:t,enabled:o}),C=e.useMemo(()=>{if(!u)return;const e=new Set,t=[];for(const s of u.pages)for(const n of s?.data??[])e.has(n.uuid)||(e.add(n.uuid),t.push(n));return{data:t,hasMore:p}},[u,p]),{data:x,isFetching:y}=oMe({query:n??"",n:EC,enabled:d}),b=e.useMemo(()=>d&&x?new Map(x.data.map(e=>[e.conversation.uuid,e])):null,[d,x]),k=e.useRef(C);void 0!==C&&(k.current=C);const w=C??k.current,{data:M}=CC({limit:xC,starred:!0,enabled:o&&s}),_=e.useMemo(()=>d?x?.data.map(iMe)??UMe:c||!s?[...w?.data??UMe]:function(e,t){const s=new Set(e.map(e=>e.uuid));return[...e,...t.filter(e=>!s.has(e.uuid))]}(w?.data??UMe,M?.data??UMe),[w,M,c,s,d,x]),j=function(t){const{activeOrganization:s}=v(),n=s?.uuid,a=e.useCallback(e=>{const s=[];return e.forEach((e,n)=>{const a=e.data;a?.is_pending&&s.push(t[n].uuid)}),s.length>0?s.sort():kMe},[t]),i=e.useMemo(()=>t.map(e=>({queryKey:[`/api/organizations/${n}/chat_conversations/${e.uuid}/completion_status?poll=false`,void 0],enabled:!1,staleTime:1/0})),[t,n]);return CL({queries:i,combine:a})}(_),S=DI(void 0,l),L=vC(),{isLoading:N}=HI(l),I=vMe(),{allSessions:T,isLoadingRemote:A,isLoadingLocal:E,isPlaceholderData:R,hasMoreRemote:D,isFetchingMoreRemote:H,fetchMoreRemote:P,fetchAllRemote:U}=Ege({includeAgentOwned:!0,branchStatusPollInterval:i,statuses:Lge(r)}),O=A||E,F=yC(),V=bC();e.useEffect(()=>{if(!V)return;const e=new Set;for(const t of S)e.add(bl({kind:"cowork",id:t.sessionId}));for(const t of L)e.add(bl({kind:"cowork",id:t.sessionId}));for(const t of T)e.add(bl({kind:"code",id:t.id}));kC(e)},[V,S,L,T]);const z=wC(e=>e.starredIds),Z=e.useMemo(()=>new Set(z),[z]),B=MC(e=>e.starredIds),q=e.useMemo(()=>new Set(B),[B]),W=cve(),$=Pve(),G=Bve(),K=dve(),Y=Qve(),Q=e.useRef([]),J=e.useMemo(()=>{const e=e=>DMe(e,null!==b),t=new Set(j),s=[];for(const a of _){const e=bMe(a,t.has(a.uuid)),n=b?.get(a.uuid);s.push(n?{...e,titleMatches:n.title_matches??[],matchedSnippet:n.matched_snippet??null}:e)}for(const i of S)!a&&i.isArchived||s.push(wMe(i,I,q));for(const a of L)s.push(wMe(a,I,q));for(const a of T)a.isArchived||s.push(IMe(a,Z,W,$,G,K,Y));const n=Object.values(F);if(n.length>0){const t=new Map;for(const e of s)t.set(bl(e.ref),e.isStarred);const a=new Set(n.map(e=>bl(e.ref))),i=s.filter(e=>!a.has(bl(e.ref)));for(const e of n){const s=bl(e.ref),n=t.get(s)??("code"===e.ref.kind&&Z.has(e.ref.id)||"cowork"===e.ref.kind&&q.has(e.ref.id));i.push(n===e.isStarred?e:{...e,isStarred:n})}return AMe(e(i),Q.current)}return AMe(e(s),Q.current)},[_,j,S,a,L,T,I,Z,q,W,$,G,K,Y,F,b]);e.useEffect(()=>{Q.current=J},[J]);const X=e.useCallback(()=>{h()},[h]);return{sessions:J,isInitialLoading:(d?y&&!x:o&&m)||O||N,chatHasMore:!d&&(w?.hasMore??!1),isChatFetchingMore:f,isChatFetchMoreError:g,fetchMoreChats:X,rawCodeSessions:T,isCodeLoading:O,isCodePlaceholderData:R,codeHasMore:D,isCodeFetchingMore:H,fetchMoreCode:P,fetchAllCode:U}}function FMe(e){return function(e){return e.hasError||"idle"!==e.liveStatus||e.hasCompleted&&e.isUnread}(e)}function VMe(e){return e.isStarred}function zMe(e){return"cowork"===e.source.kind&&(!!e.source.data.scheduledTaskId||"dispatch_child"===e.source.data.sessionType)}const ZMe=[];function BMe(){const t=as(),s=_C(),n=jC(),{haystackProject:a,isLoadingHaystackProject:i}=SC(),r=LC(),o=wp(),{data:l}=NC({enabled:t,starred:!0,limit:IC});return e.useMemo(()=>{if(!s)return l?aMe(l,{showHaystackRow:!1,isAskYourOrgVisible:n}).map(MMe):ZMe;const e=n&&""!==r&&!i&&(!a||a.is_starred),t=l?.filter(e=>e.type!==Re.Haystack).map(MMe)??[];if(!e)return t.length>0?t:ZMe;return[MMe(a??{uuid:DC,name:o,type:Re.Haystack,is_starred:!0,updated_at:new Date(0).toISOString(),created_at:new Date(0).toISOString()}),...t]},[l,s,n,r,i,a,o])}function qMe(t){const s=t?.enabled??!0,n=yge(),{projects:a}=Dwe({enabled:s&&n}),i=Ppe(e=>e.starredIds),r=Fpe();return e.useMemo(()=>{if(!s||!n||!r)return ZMe;const e=new Set(i);return a.filter(t=>!e.has(t.id)).map(_Me)},[s,n,r,a,i])}function WMe(){const t=TC(),s=AC();return e.useMemo(()=>{if(0===s.length)return ZMe;const e=new Set(s);return t.filter(t=>e.has(t.id)).map(jMe)},[t,s])}function $Me(){const t=ra(),{artifacts:s}=pK(t.considerEnabledForNonUI,!0);return e.useMemo(()=>s.filter(e=>e.isStarred).map(SMe),[s])}function GMe(e){return("project"!==e.ref.kind||e.ref.id!==DC)&&(("cowork"!==e.source.kind||!e.source.data.isArchived)&&(zC(e.ref.kind)&&!zMe(e)))}const KMe=new Map;function YMe(e){const t=bl(e),s=KMe.get(t);return!!s&&(s(!0),!0)}function QMe(e){const t=KMe.get(e);return!!t&&(t(!1),!0)}function JMe(e,t){if("cowork"!==e.kind||ga(e.id))return!1;const s=Nc.getState().sessions.find(t=>t.sessionId===e.id)?.spaceId;return s!==t&&(ZC(e.id,t),Promise.resolve(lo?.updateSession?.(e.id,{spaceId:t})).catch(()=>ZC(e.id,s)),!0)}const XMe={chat:!0,project:!0,"cowork-artifact":!0,cowork:!1,code:!1,"epitaxy-project":!1,"cowork-space":!1,"scheduled-task":!1,dispatch:!1};function e_e(e){const t=bl(e);if("epitaxy-project"===e.kind||XMe[e.kind]||!QMe(t))switch(e.kind){case"code":wC.getState().setStarred(e.id,!1);break;case"epitaxy-project":s=e.id,Ppe.getState().setStarred(s,!1);break;case"cowork-space":PC.getState().setStarred(e.id,!1);break;case"scheduled-task":case"dispatch":yl.getState().setStarred(t,!1);break;case"cowork":MC.getState().setStarred(e.id,!1),ga(e.id)||HC(e.id,!1);break;case"chat":case"project":case"cowork-artifact":break;default:e.kind}var s;UC.getState().removeFromPinnedOrder(t)}let t_e=null;function s_e(e){t_e=e}function n_e(e){return t_e===e&&(t_e=null,!0)}function a_e(e,t,s){switch(t.kind){case"chat":return void e({event_key:s?"claudeai.conversation.starred":"claudeai.conversation.unstarred",conversation_uuid:t.id,source:"drag"});case"cowork":return void e({event_key:"claudeai.cowork.session.starred",session_id:t.id,starred:s,source:"drag"});case"project":return void e({event_key:s?"claudeai.projects.starred":"claudeai.projects.unstarred",project_uuid:t.id,source:"drag"});case"cowork-space":return void e({event_key:"claudeai.cowork.space.starred",space_id:t.id,starred:s,source:"drag"});case"cowork-artifact":return void e({event_key:"claude.cowork.live_artifact.starred",artifact_id:t.id,starred:s,source:"drag"});case"code":case"scheduled-task":case"dispatch":case"epitaxy-project":return;default:return void t.kind}}function i_e(t){const s="chat"===t.source.kind?t.source.data.uuid:"",{mutateAsync:n}=OC(s),a=FC(),i="project"===t.ref.kind?t.ref.id:"",{mutateAsync:r}=Ge(i),o=VC(),l=bl(t.ref),c=e.useCallback(e=>{switch(t.source.kind){case"chat":return a(s,e),void n({is_starred:e}).catch(()=>a(s,!e));case"cowork":{const s=t.ref.id;if(MC.getState().setStarred(s,e),ga(s))return;return HC(s,e),void Promise.resolve(lo?.updateSession?.(s,{isStarred:e})).catch(()=>HC(s,!e))}case"code":return void wC.getState().setStarred(t.source.data.id,e);case"epitaxy-project":return void Upe(t.source.data.id,e);case"cowork-artifact":return void Promise.resolve(oa?.setArtifactStarred?.(t.source.data.id,e)).catch(()=>{});case"cowork-space":return void PC.getState().setStarred(t.source.data.id,e);case"scheduled-task":case"dispatch":switch(t.source.data.pinKind){case"space":return void PC.getState().setStarred(t.ref.id,e);case"project":{const s=t.source.data.project;if(!s||s.uuid===DC)return;return o(s,e),void r({is_starred:e}).catch(()=>o(s,!e))}case"group-local":return void yl.getState().setStarred(l,e);default:return void t.source.data.pinKind}case"project":{const s=t.source.data;if(s.uuid===DC)return;return o(s,e),void r({is_starred:e}).catch(()=>o(s,!e))}default:return void t.source}},[t.source,t.ref.id,n,a,s,r,o,l]),d=e.useRef(c);d.current=c;const u=GMe(t);e.useEffect(()=>{if(!u)return;const e=e=>d.current(e);return KMe.set(l,e),()=>{KMe.get(l)===e&&KMe.delete(l)}},[l,u])}const r_e=20,o_e=500;function l_e({isOpen:s,onClose:n,onDeleted:a,conversation:i,conversationUuids:o}){const l=i?.uuid,{addError:c,addSuccess:d}=ut(),u=JS(),m=Boolean(i&&!o),p=Boolean(o&&o.length>0),f=e.useMemo(()=>o||(l?[l]:[]),[o,l]),{data:g,isLoading:h}=cle({includeDeletedArtifacts:!1}),{mutate:C}=BC(),{mutateAsync:x}=qC(),v=(()=>{const t=r();return{push:e.useCallback(e=>t.push(`${e}${ope()}`),[t]),replace:e.useCallback(e=>t.replace(`${e}${ope()}`),[t])}})(),y="/new",b=e.useCallback(async()=>{if(m&&i){const e=WC.getState().pathname===`/chat/${l}`;i.is_starred&&e_e({kind:"chat",id:i.uuid}),C(i),e&&v.push(y),n(),a?.([i.uuid]),d(u.formatMessage({defaultMessage:"Chat deleted",id:"jw4hjzNcgG"}),{uniqueKey:`delete-chat-${l}`})}else if(p){const t=Math.ceil(f.length/20);let s=0,i=0;const r=[];try{for(let e=0;e<t;e++){const n=20*e,a=f.slice(n,n+20),o=await x({conversation_uuids:a});o.deleted.forEach(e=>e_e({kind:"chat",id:e})),r.push(...o.deleted),s+=o.deleted.length,i+=o.failed.length,e<t-1&&await je(500)}s>0&&d(u.formatMessage({defaultMessage:"{count, plural, one {# chat deleted} other {# chats deleted}}",id:"3h6Nx0KOpC"},{count:s})),i>0&&c(u.formatMessage({defaultMessage:"{count, plural, one {Failed to delete # chat. You can try again.} other {Failed to delete # chats. You can try again.}}",id:"NscK7QPlXL"},{count:i}),{messageForLogging:"{count, plural, one {Failed to delete # chat. You can try again.} other {Failed to delete # chats. You can try again.}}"})}catch(e){c("Failed to delete some chats. You can try again.",{error:e})}finally{n()}const o=WC.getState().pathname;f.some(e=>o===`/chat/${e}`)&&v.push(y),r.length>0&&a?.(r)}},[m,i,l,p,f,C,n,a,v,y,x,c,d,u]),k=p?u.formatMessage({defaultMessage:"Delete {count, plural, one {# chat} other {# chats}}",id:"JhH5WXc6VS"},{count:f.length}):u.formatMessage({defaultMessage:"Delete chat",id:"ngIzbjIFxF"});return t.jsx(MN,{open:s,onOpenChange:e=>!e&&n(),onConfirm:b,title:k,description:p?u.formatMessage({defaultMessage:"Are you sure you want to permanently delete {count, plural, one {this chat} other {these chats}}? This cannot be undone.",id:"oUQNLoQUff"},{count:f.length}):u.formatMessage({defaultMessage:"Are you sure you want to delete this chat?",id:"eoF+zSJr4t"}),confirmLabel:u.formatMessage({defaultMessage:"Delete",id:"K3r6DQW7h+"}),confirmVariant:"danger",disabled:h,children:(()=>{if(!m)return null;const e=g?.filter(e=>e.chat_conversation_uuid===l).map(e=>e.title);return e&&0!==e.length?t.jsxs("div",{children:[t.jsx(XS,{defaultMessage:"When you delete this chat, you\u2019ll also delete the published artifacts in this chat.",id:"+r05Hpg92t"}),t.jsx("div",{className:"mt-2",children:t.jsx("ul",{className:"list-disc pl-5",children:e.map(e=>t.jsx("li",{children:e},e))})})]}):null})()})}var c_e=.999,d_e=/[\\\/_+.#"@\[\(\{&]/,u_e=/[\\\/_+.#"@\[\(\{&]/g,m_e=/[\s-]/,p_e=/[\s-]/g;function f_e(e,t,s,n,a,i,r){if(i===t.length)return a===e.length?1:.99;var o=`${a},${i}`;if(void 0!==r[o])return r[o];for(var l,c,d,u,m=n.charAt(i),p=s.indexOf(m,a),f=0;p>=0;)(l=f_e(e,t,s,n,p+1,i+1,r))>f&&(p===a?l*=1:d_e.test(e.charAt(p-1))?(l*=.8,(d=e.slice(a,p-1).match(u_e))&&a>0&&(l*=Math.pow(c_e,d.length))):m_e.test(e.charAt(p-1))?(l*=.9,(u=e.slice(a,p-1).match(p_e))&&a>0&&(l*=Math.pow(c_e,u.length))):(l*=.17,a>0&&(l*=Math.pow(c_e,p-a))),e.charAt(p)!==t.charAt(i)&&(l*=.9999)),(l<.1&&s.charAt(p-1)===n.charAt(i+1)||n.charAt(i+1)===n.charAt(i)&&s.charAt(p-1)!==n.charAt(i))&&(.1*(c=f_e(e,t,s,n,p+1,i+2,r))>l&&(l=.1*c)),l>f&&(f=l),p=s.indexOf(m,p+1);return r[o]=f,f}function g_e(e){return e.toLowerCase().replace(p_e," ")}function h_e(e,t,s){return f_e(e=s&&s.length>0?""+(e+" "+s.join(" ")):e,t,g_e(e),g_e(t),0,0,{})}var C_e='[cmdk-group=""]',x_e='[cmdk-group-items=""]',v_e='[cmdk-item=""]',y_e=`${v_e}:not([aria-disabled="true"])`,b_e="cmdk-item-select",k_e="data-value",w_e=(e,t,s)=>h_e(e,t,s),M_e=e.createContext(void 0),__e=()=>e.useContext(M_e),j_e=e.createContext(void 0),S_e=()=>e.useContext(j_e),L_e=e.createContext(void 0),N_e=e.forwardRef((t,s)=>{let n=Z_e(()=>{var e,s;return{search:"",value:null!=(s=null!=(e=t.value)?e:t.defaultValue)?s:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),a=Z_e(()=>new Set),i=Z_e(()=>new Map),r=Z_e(()=>new Map),o=Z_e(()=>new Set),l=V_e(t),{label:c,children:d,value:u,onValueChange:m,filter:p,shouldFilter:f,loop:g,disablePointerSelection:h=!1,vimBindings:C=!0,...x}=t,v=JA(),y=JA(),b=JA(),k=e.useRef(null),w=W_e();z_e(()=>{if(void 0!==u){let e=u.trim();n.current.value=e,M.emit()}},[u]),z_e(()=>{w(6,I)},[]);let M=e.useMemo(()=>({subscribe:e=>(o.current.add(e),()=>o.current.delete(e)),snapshot:()=>n.current,setState:(e,t,s)=>{var a,i,r,o;if(!Object.is(n.current[e],t)){if(n.current[e]=t,"search"===e)N(),S(),w(1,L);else if("value"===e){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let e=document.getElementById(b);e?e.focus():null==(a=document.getElementById(v))||a.focus()}if(w(7,()=>{var e;n.current.selectedItemId=null==(e=T())?void 0:e.id,M.emit()}),s||w(5,I),void 0!==(null==(i=l.current)?void 0:i.value)){let e=null!=t?t:"";return void(null==(o=(r=l.current).onValueChange)||o.call(r,e))}}M.emit()}},emit:()=>{o.current.forEach(e=>e())}}),[]),_=e.useMemo(()=>({value:(e,t,s)=>{var a;t!==(null==(a=r.current.get(e))?void 0:a.value)&&(r.current.set(e,{value:t,keywords:s}),n.current.filtered.items.set(e,j(t,s)),w(2,()=>{S(),M.emit()}))},item:(e,t)=>(a.current.add(e),t&&(i.current.has(t)?i.current.get(t).add(e):i.current.set(t,new Set([e]))),w(3,()=>{N(),S(),n.current.value||L(),M.emit()}),()=>{r.current.delete(e),a.current.delete(e),n.current.filtered.items.delete(e);let t=T();w(4,()=>{N(),(null==t?void 0:t.getAttribute("id"))===e&&L(),M.emit()})}),group:e=>(i.current.has(e)||i.current.set(e,new Set),()=>{r.current.delete(e),i.current.delete(e)}),filter:()=>l.current.shouldFilter,label:c||t["aria-label"],getDisablePointerSelection:()=>l.current.disablePointerSelection,listId:v,inputId:b,labelId:y,listInnerRef:k}),[]);function j(e,t){var s,a;let i=null!=(a=null==(s=l.current)?void 0:s.filter)?a:w_e;return e?i(e,n.current.search,t):0}function S(){if(!n.current.search||!1===l.current.shouldFilter)return;let e=n.current.filtered.items,t=[];n.current.filtered.groups.forEach(s=>{let n=i.current.get(s),a=0;n.forEach(t=>{let s=e.get(t);a=Math.max(s,a)}),t.push([s,a])});let s=k.current;A().sort((t,s)=>{var n,a;let i=t.getAttribute("id"),r=s.getAttribute("id");return(null!=(n=e.get(r))?n:0)-(null!=(a=e.get(i))?a:0)}).forEach(e=>{let t=e.closest(x_e);t?t.appendChild(e.parentElement===t?e:e.closest(`${x_e} > *`)):s.appendChild(e.parentElement===s?e:e.closest(`${x_e} > *`))}),t.sort((e,t)=>t[1]-e[1]).forEach(e=>{var t;let s=null==(t=k.current)?void 0:t.querySelector(`${C_e}[${k_e}="${encodeURIComponent(e[0])}"]`);null==s||s.parentElement.appendChild(s)})}function L(){let e=A().find(e=>"true"!==e.getAttribute("aria-disabled")),t=null==e?void 0:e.getAttribute(k_e);M.setState("value",t||void 0)}function N(){var e,t,s,o;if(!n.current.search||!1===l.current.shouldFilter)return void(n.current.filtered.count=a.current.size);n.current.filtered.groups=new Set;let c=0;for(let i of a.current){let a=j(null!=(t=null==(e=r.current.get(i))?void 0:e.value)?t:"",null!=(o=null==(s=r.current.get(i))?void 0:s.keywords)?o:[]);n.current.filtered.items.set(i,a),a>0&&c++}for(let[a,r]of i.current)for(let e of r)if(n.current.filtered.items.get(e)>0){n.current.filtered.groups.add(a);break}n.current.filtered.count=c}function I(){var e,t,s;let n=T();n&&((null==(e=n.parentElement)?void 0:e.firstChild)===n&&(null==(s=null==(t=n.closest(C_e))?void 0:t.querySelector('[cmdk-group-heading=""]'))||s.scrollIntoView({block:"nearest"})),n.scrollIntoView({block:"nearest"}))}function T(){var e;return null==(e=k.current)?void 0:e.querySelector(`${v_e}[aria-selected="true"]`)}function A(){var e;return Array.from((null==(e=k.current)?void 0:e.querySelectorAll(y_e))||[])}function E(e){let t=A()[e];t&&M.setState("value",t.getAttribute(k_e))}function R(e){var t;let s=T(),n=A(),a=n.findIndex(e=>e===s),i=n[a+e];null!=(t=l.current)&&t.loop&&(i=a+e<0?n[n.length-1]:a+e===n.length?n[0]:n[a+e]),i&&M.setState("value",i.getAttribute(k_e))}function D(e){let t,s=T(),n=null==s?void 0:s.closest(C_e);for(;n&&!t;)n=e>0?O_e(n,C_e):F_e(n,C_e),t=null==n?void 0:n.querySelector(y_e);t?M.setState("value",t.getAttribute(k_e)):R(e)}let H=()=>E(A().length-1),P=e=>{e.preventDefault(),e.metaKey?H():e.altKey?D(1):R(1)},U=e=>{e.preventDefault(),e.metaKey?E(0):e.altKey?D(-1):R(-1)};return e.createElement(XA.div,{ref:s,tabIndex:-1,...x,"cmdk-root":"",onKeyDown:e=>{var t;null==(t=x.onKeyDown)||t.call(x,e);let s=e.nativeEvent.isComposing||229===e.keyCode;if(!e.defaultPrevented&&!s)switch(e.key){case"n":case"j":C&&e.ctrlKey&&P(e);break;case"ArrowDown":P(e);break;case"p":case"k":C&&e.ctrlKey&&U(e);break;case"ArrowUp":U(e);break;case"Home":e.preventDefault(),E(0);break;case"End":e.preventDefault(),H();break;case"Enter":{e.preventDefault();let t=T();if(t){let e=new Event(b_e);t.dispatchEvent(e)}}}}},e.createElement("label",{"cmdk-label":"",htmlFor:_.inputId,id:_.labelId,style:G_e},c),$_e(t,t=>e.createElement(j_e.Provider,{value:M},e.createElement(M_e.Provider,{value:_},t))))}),I_e=e.forwardRef((t,s)=>{var n,a;let i=JA(),r=e.useRef(null),o=e.useContext(L_e),l=__e(),c=V_e(t),d=null!=(a=null==(n=c.current)?void 0:n.forceMount)?a:null==o?void 0:o.forceMount;z_e(()=>{if(!d)return l.item(i,null==o?void 0:o.id)},[d]);let u=q_e(i,r,[t.value,t.children,r],t.keywords),m=S_e(),p=B_e(e=>e.value&&e.value===u.current),f=B_e(e=>!(!d&&!1!==l.filter())||(!e.search||e.filtered.items.get(i)>0));function g(){var e,t;h(),null==(t=(e=c.current).onSelect)||t.call(e,u.current)}function h(){m.setState("value",u.current,!0)}if(e.useEffect(()=>{let e=r.current;if(e&&!t.disabled)return e.addEventListener(b_e,g),()=>e.removeEventListener(b_e,g)},[f,t.onSelect,t.disabled]),!f)return null;let{disabled:C,value:x,onSelect:v,forceMount:y,keywords:b,...k}=t;return e.createElement(XA.div,{ref:aE(r,s),...k,id:i,"cmdk-item":"",role:"option","aria-disabled":!!C,"aria-selected":!!p,"data-disabled":!!C,"data-selected":!!p,onPointerMove:C||l.getDisablePointerSelection()?void 0:h,onClick:C?void 0:g},t.children)}),T_e=e.forwardRef((t,s)=>{let{heading:n,children:a,forceMount:i,...r}=t,o=JA(),l=e.useRef(null),c=e.useRef(null),d=JA(),u=__e(),m=B_e(e=>!(!i&&!1!==u.filter())||(!e.search||e.filtered.groups.has(o)));z_e(()=>u.group(o),[]),q_e(o,l,[t.value,t.heading,c]);let p=e.useMemo(()=>({id:o,forceMount:i}),[i]);return e.createElement(XA.div,{ref:aE(l,s),...r,"cmdk-group":"",role:"presentation",hidden:!m||void 0},n&&e.createElement("div",{ref:c,"cmdk-group-heading":"","aria-hidden":!0,id:d},n),$_e(t,t=>e.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?d:void 0},e.createElement(L_e.Provider,{value:p},t))))}),A_e=e.forwardRef((t,s)=>{let{alwaysRender:n,...a}=t,i=e.useRef(null),r=B_e(e=>!e.search);return n||r?e.createElement(XA.div,{ref:aE(i,s),...a,"cmdk-separator":"",role:"separator"}):null}),E_e=e.forwardRef((t,s)=>{let{onValueChange:n,...a}=t,i=null!=t.value,r=S_e(),o=B_e(e=>e.search),l=B_e(e=>e.selectedItemId),c=__e();return e.useEffect(()=>{null!=t.value&&r.setState("search",t.value)},[t.value]),e.createElement(XA.input,{ref:s,...a,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":c.listId,"aria-labelledby":c.labelId,"aria-activedescendant":l,id:c.inputId,type:"text",value:i?t.value:o,onChange:e=>{i||r.setState("search",e.target.value),null==n||n(e.target.value)}})}),R_e=e.forwardRef((t,s)=>{let{children:n,label:a="Suggestions",...i}=t,r=e.useRef(null),o=e.useRef(null),l=B_e(e=>e.selectedItemId),c=__e();return e.useEffect(()=>{if(o.current&&r.current){let e,t=o.current,s=r.current,n=new ResizeObserver(()=>{e=requestAnimationFrame(()=>{let e=t.offsetHeight;s.style.setProperty("--cmdk-list-height",e.toFixed(1)+"px")})});return n.observe(t),()=>{cancelAnimationFrame(e),n.unobserve(t)}}},[]),e.createElement(XA.div,{ref:aE(r,s),...i,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":l,"aria-label":a,id:c.listId},$_e(t,t=>e.createElement("div",{ref:aE(o,c.listInnerRef),"cmdk-list-sizer":""},t)))}),D_e=e.forwardRef((t,s)=>{let{open:n,onOpenChange:a,overlayClassName:i,contentClassName:r,container:o,...l}=t;return e.createElement(eE,{open:n,onOpenChange:a},e.createElement(tE,{container:o},e.createElement(sE,{"cmdk-overlay":"",className:i}),e.createElement(nE,{"aria-label":t.label,"cmdk-dialog":"",className:r},e.createElement(N_e,{ref:s,...l}))))}),H_e=e.forwardRef((t,s)=>B_e(e=>0===e.filtered.count)?e.createElement(XA.div,{ref:s,...t,"cmdk-empty":"",role:"presentation"}):null),P_e=e.forwardRef((t,s)=>{let{progress:n,children:a,label:i="Loading...",...r}=t;return e.createElement(XA.div,{ref:s,...r,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":i},$_e(t,t=>e.createElement("div",{"aria-hidden":!0},t)))}),U_e=Object.assign(N_e,{List:R_e,Item:I_e,Input:E_e,Group:T_e,Separator:A_e,Dialog:D_e,Empty:H_e,Loading:P_e});function O_e(e,t){let s=e.nextElementSibling;for(;s;){if(s.matches(t))return s;s=s.nextElementSibling}}function F_e(e,t){let s=e.previousElementSibling;for(;s;){if(s.matches(t))return s;s=s.previousElementSibling}}function V_e(t){let s=e.useRef(t);return z_e(()=>{s.current=t}),s}var z_e="undefined"==typeof window?e.useEffect:e.useLayoutEffect;function Z_e(t){let s=e.useRef();return void 0===s.current&&(s.current=t()),s}function B_e(t){let s=S_e(),n=()=>t(s.snapshot());return e.useSyncExternalStore(s.subscribe,n,n)}function q_e(t,s,n,a=[]){let i=e.useRef(),r=__e();return z_e(()=>{var e;let o=(()=>{var e;for(let t of n){if("string"==typeof t)return t.trim();if("object"==typeof t&&"current"in t)return t.current?null==(e=t.current.textContent)?void 0:e.trim():i.current}})(),l=a.map(e=>e.trim());r.value(t,o,l),null==(e=s.current)||e.setAttribute(k_e,o),i.current=o}),i}var W_e=()=>{let[t,s]=e.useState(),n=Z_e(()=>new Map);return z_e(()=>{n.current.forEach(e=>e()),n.current=new Map},[t]),(e,t)=>{n.current.set(e,t),s({})}};function $_e({asChild:t,children:s},n){return t&&e.isValidElement(s)?e.cloneElement(function(e){let t=e.type;return"function"==typeof t?t(e.props):"render"in t?t.render(e.props):e}(s),{ref:s.ref},n(s.props.children)):n(s)}var G_e={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function K_e({size:e=20,className:s}){const n={12:16,14:16,16:20,20:20,24:24,28:28,32:32}[e]||e;return t.jsx("div",{className:dt("relative inline-flex items-center justify-center",s),style:{width:e,height:e},children:t.jsxs("svg",{width:n,height:n,viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:"overflow-visible","aria-hidden":"true",children:[t.jsx("path",{d:"M15.8198 7C16.6885 7.00025 17.3624 7.73158 17.3178 8.57617L17.2993 8.74707L16.1332 15.7471C16.0126 16.4699 15.3865 16.9996 14.6538 17H5.34711C4.6142 16.9998 3.98833 16.47 3.86762 15.7471L2.7016 8.74707C2.54922 7.83277 3.25418 7 4.18109 7H15.8198ZM4.18109 8C3.87216 8 3.63722 8.27731 3.68793 8.58203L4.85394 15.582C4.89413 15.8229 5.10291 15.9998 5.34711 16H14.6538C14.8978 15.9996 15.1068 15.8228 15.1469 15.582L16.3129 8.58203L16.3188 8.46973C16.3036 8.21259 16.0899 8.00023 15.8198 8H4.18109Z"}),t.jsx("g",{transform:"translate(10, 10)",children:t.jsxs("path",{d:"M16.0004 5.5C16.0004 5.224 15.7764 5.00024 15.5004 5H4.50043C4.22428 5 4.00043 5.22386 4.00043 5.5C4.00043 5.77614 4.22428 6 4.50043 6H15.5004C15.7764 5.99976 16.0004 5.776 16.0004 5.5Z",transform:"translate(-10, -10)",children:[t.jsx("animateTransform",{attributeName:"transform",type:"translate",values:"0,-5; 0,-1; 0,1.5; 0,1.5",dur:"2s",begin:"0s",repeatCount:"indefinite",additive:"sum"}),t.jsx("animateTransform",{attributeName:"transform",type:"rotate",values:"6 10 5.5; 0 10 5.5; 0 10 5.5; 0 10 5.5",dur:"2s",begin:"0s",repeatCount:"indefinite",additive:"sum"}),t.jsx("animate",{attributeName:"opacity",values:"0;0.7;0",dur:"2s",begin:"0s",repeatCount:"indefinite"})]})}),t.jsx("g",{transform:"translate(10, 10)",children:t.jsxs("path",{d:"M14.5004 3.5C14.5004 3.224 14.2764 3.00024 14.0004 3H6.00043C5.72428 3 5.50043 3.22386 5.50043 3.5C5.50043 3.77614 5.72428 4 6.00043 4H14.0004C14.2764 3.99976 14.5004 3.776 14.5004 3.5Z",transform:"translate(-10, -10)",children:[t.jsx("animateTransform",{attributeName:"transform",type:"translate",values:"2,-5; 0,-1; 0,3.5; 0,3.5",dur:"2s",begin:"0.5s",repeatCount:"indefinite",additive:"sum"}),t.jsx("animateTransform",{attributeName:"transform",type:"rotate",values:"10 10 3.5; 0 10 3.5; 0 10 3.5; 0 10 3.5",dur:"2s",begin:"0.5s",repeatCount:"indefinite",additive:"sum"}),t.jsx("animate",{attributeName:"opacity",values:"0;0.7;0",dur:"2s",begin:"0.5s",repeatCount:"indefinite"})]})})]})})}function Y_e({conversationUuid:s,conversationUuids:n,currentProjectUuid:a,isOpen:i,onClose:r,onMoved:o}){const l=JS(),{data:c}=Ee(a&&i?a:void 0),d=e.useMemo(()=>n||(s?[s]:[]),[n,s]),u=n&&n.length>1,[m,p]=e.useState(""),[f]=ns(m,300),g=e.useCallback(()=>{p(""),r()},[r]),{data:h,isLoading:C,isError:x}=qi({enabled:i,limit:IC,searchQuery:f||void 0,creatorFilter:f?void 0:"is_creator",orderBy:f?void 0:"latest_chat"}),v=e.useMemo(()=>h?.data||[],[h]),y=C&&0===v.length,{moveToProject:b}=TH(),[k,w]=e.useState(!1),{mutateAsync:M,isPending:_}=$C("move_to_project_modal"),j=e.useCallback(async(e,t)=>{w(!0);try{const s=await b(d,e,t,{enableNavigation:!0});g(),s.totalMoved>0&&o?.(s.moved)}catch(s){g();const e=s.moved;e?.length&&o?.(e)}finally{w(!1)}},[d,b,g,o]),S=e.useCallback(async e=>{const t=v.find(t=>t.uuid===e)?.name||"project";await j(e,t)},[v,j]),L=e.useCallback(async e=>{try{const t=await M({name:e,description:"",is_private:!0});await j(t.uuid,e)}catch(t){}},[M,j]),N=_||k,I=e.useCallback(()=>{if(y||C)return t.jsxs("div",{className:"px-3 py-2 space-y-2 opacity-60",children:[t.jsx(hN,{height:26,width:"80%",className:"rounded-md"}),t.jsx(hN,{height:26,width:"60%",className:"rounded-md"}),t.jsx(hN,{height:26,width:"70%",className:"rounded-md"}),t.jsx(hN,{height:26,width:"75%",className:"rounded-md"})]});if(x)return t.jsx("div",{className:"p-4 text-center text-text-400 text-sm",children:t.jsx(XS,{defaultMessage:"Failed to load projects",id:"ld45uLSco8"})});const e=v.filter(e=>e.uuid!==a);return 0!==e.length||m?t.jsxs(t.Fragment,{children:[e.map(e=>t.jsxs(U_e.Item,{value:e.uuid,onSelect:()=>S(e.uuid),disabled:N,className:"w-full text-left px-3 h-10 rounded-lg font-base flex gap-2 items-center cursor-pointer data-[selected=true]:bg-bg-200 group","aria-label":e.is_private?e.name:l.formatMessage({defaultMessage:"{projectName}, Shared",id:"MuLv3VUJgd"},{projectName:e.name}),children:[t.jsx(MU,{}),t.jsx("span",{className:"truncate flex-1 min-w-0 items-center gap-2",children:e.name}),!e.is_private&&t.jsxs(vN,{variant:"neutral",className:"gap-1",children:[t.jsx(qS,{vectorSizeOverride:14}),t.jsx(XS,{defaultMessage:"Shared",id:"kWI6zXRaHY"})]})]},e.uuid)),m&&t.jsxs(U_e.Item,{value:`create_${m}`,onSelect:()=>L(m),disabled:N,className:"w-full text-left px-3 h-10 rounded-lg font-base flex gap-2 items-center cursor-pointer data-[selected=true]:bg-bg-200","aria-label":l.formatMessage({defaultMessage:"Create project {projectName}",id:"I4jzCXCljs"},{projectName:m}),children:[t.jsx(GC,{}),t.jsxs("div",{className:"flex-1 min-w-0 flex items-center gap-2",children:[t.jsx(XS,{defaultMessage:"Create",id:"VzzYJkHnLP"}),t.jsxs(vN,{variant:"neutral",className:"gap-1 ml-1",children:[t.jsx(is,{}),m]})]})]},`create_${m}`)]}):t.jsx("div",{className:"p-4 text-text-400 text-sm text-center",children:t.jsx(XS,{defaultMessage:"No projects available",id:"UN4PP2vYc0"})})},[y,C,x,v,m,N,a,S,L,l]);return t.jsx(lN.Root,{open:i,onOpenChange:e=>!e&&g(),children:t.jsxs(lN.Popup,{size:"md",className:"gap-0",children:[t.jsx(lN.Header,{description:u?t.jsx(XS,{defaultMessage:"Select a project to move these chats into.",id:"ELEW2C1+j8"}):c?t.jsx(XS,{defaultMessage:"This chat is in <span>{projectName}</span>. Select a different project to move it to.",id:"qw9HutvczV",values:{projectName:c.name,span:e=>t.jsx("span",{className:"font-medium",children:e})}}):t.jsx(XS,{defaultMessage:"Select a project to move this chat into.",id:"amiezKud8v"}),children:u?t.jsx(XS,{defaultMessage:"Move {count, plural, one {# chat} other {# chats}}",id:"h3OmfpzpuG",values:{count:d.length}}):t.jsx(XS,{defaultMessage:"Move chat",id:"zNLTS6YXxC"})}),t.jsxs(U_e,{className:"flex flex-col mt-3 h-72 bg-bg-000 border-0.5 border-border-300 overflow-hidden rounded-xl -mx-1 -mb-1 relative",shouldFilter:!1,label:l.formatMessage({defaultMessage:"Select a project",id:"HC2f2oYjRS"}),children:[t.jsxs("div",{className:"flex items-center border-b-0.5 border-border-300 px-5 h-12 relative overflow-hidden",children:[t.jsx(ih,{className:"text-text-500 mr-1"}),t.jsx(U_e.Input,{autoFocus:!0,placeholder:l.formatMessage({defaultMessage:"Search or create a project",id:"ehdflFyLeM"}),"aria-label":l.formatMessage({defaultMessage:"Search or create a project",id:"ehdflFyLeM"}),className:"flex-1 bg-transparent !outline-none text-text-000 font-base placeholder:font-base",value:m,onValueChange:p})]}),t.jsx(U_e.List,{className:"overflow-auto flex-1 p-1",label:l.formatMessage({defaultMessage:"Projects",id:"UxTJRaKagI"}),children:I()}),t.jsx(nA,{children:N&&t.jsx(sA.div,{initial:{opacity:0,backdropFilter:"blur(0px)"},animate:{opacity:1,backdropFilter:"blur(4px)"},className:"absolute inset-0 flex items-center justify-center bg-bg-000/80 rounded-xl",children:t.jsxs("div",{className:"flex flex-col items-center gap-3",children:[t.jsx(K_e,{size:32,className:"text-text-500"}),t.jsx("p",{className:"text-text-400 text-sm",children:t.jsx(XS,{defaultMessage:"Moving...",id:"ZrO1i3APWM"})})]})})})]})]})})}function Q_e({title:s,subtitles:n,url:a,disabled:i,isError:r,icon:o,isInSelectionMode:l=!1,isSelected:c=!1,onSelect:d,onSelectForBulk:u}){const m=e.useCallback(()=>{d&&l&&d(!c,!1)},[l,d,c]),p=e.useCallback(()=>{d&&(!l&&u?u():d(!c,!1))},[l,d,c,u]);return t.jsxs("div",{className:"group/row relative flex items-center pl-1",onClick:m,style:{cursor:l?"pointer":void 0},children:[d&&t.jsxs("div",{className:"shrink-0 w-5 h-5 flex items-center justify-center",onClick:e=>{e.stopPropagation(),p()},children:[t.jsx("div",{className:dt("absolute transition-all duration-200",l||c?"opacity-100 scale-100":"opacity-0 scale-75 group-hover/row:opacity-100 group-hover/row:scale-100"),children:t.jsx($t,{disabled:i,checked:c,onChange:e=>{d(e,!1)},label:`Select ${s}`,hideLabel:!0,onClick:e=>e.stopPropagation()})}),t.jsx($L,{name:"Chat",customSize:18,className:dt("transition-all duration-200 text-text-400 pointer-events-none",l||c?"opacity-0 scale-75":"opacity-100 scale-100 group-hover/row:opacity-0 group-hover/row:scale-75")})]}),t.jsx("div",{className:"flex-1 min-w-0",children:t.jsx(Eq,{icon:o,title:s,subtitles:n,url:a,disabled:i,isError:r})})]})}function J_e({results:s,disabled:n}){const[a,i]=e.useState(!1),[r,o]=e.useState(!1),l=e.useMemo(()=>s.map(e=>({uuid:e.conversationUuid,type:"conversation"})),[s]),{selectedItems:c,handleSelect:d,selectAllItems:u,isInSelectionMode:m,toggleSelectMode:p}=Tq(l,n),f=e.useCallback(e=>{p(!0),d({uuid:e,type:"conversation"},!0,!1)},[p,d]),g=e.useCallback(()=>{o(!1),p(!1)},[p]),h=e.useCallback(()=>{i(!1),p(!1)},[p]),C=e.useMemo(()=>c.map(({uuid:e})=>e),[c]),x=s.length>0;return t.jsxs(aA,{children:[t.jsxs("div",{className:"relative flex flex-col h-full",children:[t.jsx(sA.div,{variants:{initial:{opacity:0},animate:{opacity:1}},initial:"initial",animate:"animate",className:"flex flex-col flex-nowrap p-2 pt-0 overflow-y-auto flex-1",children:s.map(e=>{const s=c.some(t=>t.uuid===e.conversationUuid);return t.jsx(Q_e,{title:e.title,subtitles:e.subtitles,url:e.url,disabled:n,icon:e.icon,isInSelectionMode:m,isSelected:s,onSelect:(t,s)=>{d({uuid:e.conversationUuid,type:"conversation"},t,s)},onSelectForBulk:()=>f(e.conversationUuid)},e.conversationUuid)})}),t.jsx(nA,{children:m&&x&&t.jsx(sA.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{duration:.2},className:"sticky bottom-0 bg-bg-000/[98%] border-t-0.5 border-border-300 rounded-b-lg",children:t.jsx("div",{className:"ml-[0.875rem] mr-2 pt-1 pb-1.5",children:t.jsx(Aq,{numSelected:c.length,totalNumItems:s.length,handleSelectAll:u,handleCancel:()=>p(!1),handleDeleteSelected:()=>i(!0),handleMoveToProject:()=>o(!0)})})})})]}),c.length>0&&t.jsxs(t.Fragment,{children:[a&&t.jsx(l_e,{isOpen:a,onClose:h,conversationUuids:C}),t.jsx(Y_e,{conversationUuids:C,isOpen:r,onClose:g})]})]})}const X_e=e.memo(function({actions:e,isStreaming:s,isFirstBlockOfMessage:n,isLastBlockOfMessage:a,isFirstItemInGroup:i,isLastItemInGroup:r,renderMode:o,actionThumbnails:l}){const c=JS(),d=e.map((e,t)=>({a:e,actionIndex:t})).filter(({a:e})=>"string"==typeof e?.action).map(({a:e,actionIndex:t})=>({...V9("computer",e,c),actionIndex:t}));if(0===d.length)return null;const u=d.length-1;return t.jsx(t.Fragment,{children:d.map((e,c)=>t.jsx(wme,{icon:t.jsx(npe,{icon:e.icon}),text:e.text,isStreaming:s&&c===u,hideCaret:!0,renderMode:o,isFirstBlockOfMessage:n&&0===c,isLastBlockOfMessage:a&&c===u,isFirstItemInGroup:(i??!1)&&0===c,isLastItemInGroup:(r??!1)&&c===u,secondaryElement:l?.[e.actionIndex]},e.actionIndex))})});function eje({toolName:s,rawToolName:n,integrationName:a,iconUrl:i,input:r,approvalData:o,onCollapse:l}){const[c,d]=e.useState(!!o.expandInputByDefault),u=KC(),m=YC();Du();const p=n?Ha(n):void 0,f=QC(n??""),g=m&&s.replace(/[\s.!?:;,]+$/,"")||s,h=u?p?.tool:void 0,C=!function(e){return null==e||("string"==typeof e?""===e.trim():"object"==typeof e&&0===Object.keys(e).length)}(r),x=C||!!h;let v="";if(C)try{v=JSON.stringify(r,null,2)}catch{v=String(r)}const y=a?t.jsx(XS,{defaultMessage:"Claude wants to use {toolName} from {integrationName}",id:"wPBSjwhfE4",values:{toolName:t.jsx("span",{className:"font-semibold",children:g}),integrationName:t.jsx("span",{className:"font-semibold",children:a})}}):t.jsx(XS,{defaultMessage:"Claude wants to use {toolName}",id:"ZNLjFNb5bD",values:{toolName:t.jsx("span",{className:"font-semibold",children:g})}});return t.jsxs("div",{className:"mx-2.5 mt-1 mb-2 flex max-w-[360px] flex-col items-center gap-6 overflow-hidden rounded-card border-[0.5px] border bg-surface-panel p-6 shadow-sm",children:[t.jsx(JC,{size:48,children:t.jsx(rt,{url:i,size:32,fadeInOnLoad:!0,fallbackSvg:t.jsx(ot,{letter:a||s,size:32,hideBorder:!0})})}),x?t.jsxs("button",{type:"button",onClick:()=>d(!c),"aria-expanded":c,className:"group text-balance text-center text-body font-medium text-primary",children:[y,t.jsx("span",{className:"relative -top-px ml-0.5 inline-block w-0 overflow-visible align-middle transition-opacity group-hover:opacity-100 group-focus-visible:opacity-100 pointer-coarse:opacity-100 "+(c?"opacity-100":"opacity-0"),children:t.jsx($L,{name:"CaretRight",size:"sm",className:"text-muted transition-transform "+(c?"rotate-90":"")})})]}):t.jsx("p",{className:"text-balance text-center text-body font-medium text-primary",children:y}),x&&c&&t.jsxs("div",{className:"flex w-full flex-col gap-3",children:[v&&t.jsx("pre",{className:"w-full whitespace-pre-wrap break-all rounded bg-surface-1 p-sm text-code text-secondary",children:v}),h&&t.jsx(YN,{tool:h,resourceMeta:f})]}),t.jsx(QN,{stacked:!0,alwaysAllowLoading:u?f.isKeyPending:void 0,submitToolApproval:o.submitToolApproval,showAlwaysAllowed:o.showAlwaysAllowed,setIsExpanded:l})]})}function tje({toolName:e,rawToolName:s,integrationName:n,iconUrl:a,input:i,toolResult:r,mcpAuthRequired:o,onAuthSuccess:l}){return t.jsxs("div",{className:"border-[0.5px] border-border-300 rounded-lg mx-2.5 mt-1 mb-2 py-2 overflow-hidden bg-bg-000",children:[t.jsxs("div",{className:"flex items-center gap-2 px-3 py-2",children:[t.jsx(JC,{size:24,children:t.jsx(rt,{url:a,size:16,fadeInOnLoad:!0,fallbackSvg:t.jsx(ot,{letter:n||e,size:16,hideBorder:!0})})}),t.jsx("div",{className:"text-sm text-text-300",children:n?t.jsx(XS,{defaultMessage:"Claude wants to use {toolName} from {integrationName}",id:"wPBSjwhfE4",values:{toolName:e,integrationName:n}}):t.jsx(XS,{defaultMessage:"Claude wants to use {toolName}",id:"ZNLjFNb5bD",values:{toolName:e}})})]}),t.jsx(JN,{input:i,toolResult:r}),t.jsx(XN,{mcpAuthRequired:o,onAuthSuccess:l})]})}X_e.displayName="ComputerBatchToolCell";const sje=tL({create_streaming:{defaultMessage:"Creating memory",id:"3VMwV5FZO6"},create_error:{defaultMessage:"Failed to create memory",id:"IDrH3t9j0t"},create_done:{defaultMessage:"Created memory",id:"jKDEJvVufD"},read_streaming:{defaultMessage:"Reading memory",id:"sjdp6mtP7Y"},read_error:{defaultMessage:"Failed to read memory",id:"hqG8cnTKgh"},read_done:{defaultMessage:"Read memory",id:"9jlvZMEAKh"},edit_streaming:{defaultMessage:"Editing memory",id:"B9teHPMrxy"},edit_error:{defaultMessage:"Failed to edit memory",id:"VcgnfTgUrJ"},edit_done:{defaultMessage:"Edited memory",id:"gcaz3Ignv0"},search_streaming:{defaultMessage:"Searching memory",id:"0HOd5qHHdv"},search_error:{defaultMessage:"Failed to search memory",id:"cZSuvI1atq"},search_done:{defaultMessage:"Searched memory",id:"rWFePRi0Xm"}});function nje(e,t,{streaming:s,isError:n}){const a=s?"streaming":n?"error":"done";return e.formatMessage(sje[`${t}_${a}`])}function aje(e){return t.jsx(Qme,{input:rf(e.block),toolResult:e.toolResultBlock,renderMode:bme.TimelineGroup,isFirstBlockOfMessage:e.isFirstBlockOfMessage,isLastBlockOfMessage:e.isLastBlockOfMessage,isFirstItemInGroup:e.isFirstItemInGroup,isLastItemInGroup:e.isLastItemInGroup,isStreaming:e.effectiveIsStreaming},e.index)}function ije(e){if(!e?.is_error||!e.content)return!1;const t="string"==typeof e.content?e.content:e.content.map(e=>"text"===e.type?e.text:"").join("\n");return t.includes("cowork-egress-blocked")||t.includes(" from proxy after CONNECT")||t.includes('"EGRESS_BLOCKED"')}const rje=Object.freeze([]);function oje(e){return t.jsx(Yme,{input:rf(e.block),toolResult:e.toolResultBlock,renderMode:bme.TimelineGroup,isFirstBlockOfMessage:e.isFirstBlockOfMessage,isLastBlockOfMessage:e.isLastBlockOfMessage,isFirstItemInGroup:e.isFirstItemInGroup,isLastItemInGroup:e.isLastItemInGroup,isStreaming:e.effectiveIsStreaming},e.index)}function lje(e,{subagentBlocks:s,isStreaming:n,isFirstItem:a,isLastItem:i}){if("tool_use"!==e.type)return null;const r=s.find(t=>"tool_result"===t.type&&"tool_use_id"in t&&t.tool_use_id===e.id),o=nh(e.name),l=n&&!r,c={index:0,block:e,toolResultBlock:r,effectiveIsStreaming:l,isFirstBlockOfMessage:!1,isLastBlockOfMessage:!1,isFirstItemInGroup:a,isLastItemInGroup:i};if("web_search"===o)return aje(c);if("web_fetch"===o)return oje(c);const d=Ha(e.name),u=d?.server?.iconSrc||e.integration_icon_url,m=d?.server?.name,p=e.input&&"object"==typeof e.input&&"description"in e.input&&"string"==typeof e.input.description?e.input.description:void 0,f=d?.tool?.displayName&&d.tool.displayName!==d.tool.name?d.tool.displayName:void 0,g=XC(e.name,e.input,{done:sme(r,n),suppressInternalMcp:qN(e.name,d)})||f||p;return t.jsx(Fme,{toolName:e.name,toolDisplayName:g,toolResult:r,integrationIconUrl:u,iconName:e.icon_name,integrationName:m,renderMode:bme.TimelineGroup,isFirstBlockOfMessage:!1,isLastBlockOfMessage:!1,isFirstItemInGroup:a,isLastItemInGroup:i,isStreaming:l})}const cje=new Set(["memory_read","memory_write","memory_list","memory_search","memory_delete"]);function dje(e){return cje.has(e)}function uje({loc:e}){return t.jsxs("span",{className:"inline-flex min-w-0 items-baseline gap-1 overflow-hidden whitespace-nowrap text-xs leading-[1.4] text-text-500",children:[e.category&&t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"truncate",children:e.category}),t.jsx("span",{"aria-hidden":!0,children:"\u203a"})]}),t.jsx("span",{className:"truncate",children:e.label})]})}function mje(e,s,n){const{block:a,toolResultBlock:i,effectiveIsStreaming:r}=e,o=rf(a),l=i?.is_error??!1,c=!!i,d="message"in a&&"string"==typeof a.message?a.message:void 0,u="string"==typeof i?.message?i.message:void 0,m=c&&u||d||XC(a.name,o)||a.name,p=!c||l||"memory_read"!==a.name&&"memory_write"!==a.name?void 0:i?.structured_content,f=i?.display_content,g="rich_content"===f?.type?f.content?.[0]?.title:void 0,h=o?.path||p?.path||("string"==typeof g?g:"")||o?.path_prefix||"",C=h?function(e){const t=Ore(e),s=e.split("/").filter(Boolean),n=s.length>=2?Ore(s[0]):void 0;return{path:e,label:t,category:n&&n!==t?n:void 0}}(h):void 0,x=i?.content,v="string"==typeof x?x:Array.isArray(x)?x.map(e=>"text"===e.type?e.text:"").join("\n"):void 0,y=c?"memory_write"===a.name?o?.content:"memory_read"===a.name&&!l&&v?v.replace(/^\s*(?:\[updated:[^\]]*\]\s*)?\[version:[^\]]*\][^\n]*\n?/i,""):void 0:void 0;let b="";if(p?.parsed)b=zre(p.parsed.description??"",p.parsed.body??"").headline;else if(y){const e=Fre(Vre(y));b=zre(e.description,e.body).headline}const k="memory_delete"===a.name,w=h?Rre(h):void 0,M=!s&&!k,_=M?"/melange":void 0;return t.jsx(wme,{icon:t.jsx(ah,{size:16,className:"text-text-500"}),handleClick:M?()=>n?.(w):void 0,href:_,text:t.jsxs("span",{className:"flex min-w-0 items-baseline gap-2 truncate",children:[t.jsx("span",{className:"truncate text-text-500",children:m}),o?.query?t.jsx("span",{className:"max-w-[50%] truncate italic text-text-500",children:`\u201c${o.query}\u201d`}):C?t.jsx(uje,{loc:C}):null]}),isStreaming:r&&!c,hideCaret:!0,renderMode:bme.TimelineGroup,isFirstBlockOfMessage:e.isFirstBlockOfMessage,isLastBlockOfMessage:e.isLastBlockOfMessage,isFirstItemInGroup:e.isFirstItemInGroup,isLastItemInGroup:e.isLastItemInGroup,children:l?t.jsx("div",{className:"truncate px-2.5 pt-1 !font-base text-danger-000",children:Bre(a.name)}):b?t.jsx("div",{className:"truncate px-2.5 pt-1 !font-base text-text-400",children:b}):null},e.index)}function pje(e){const{block:s,toolResultBlock:n,effectiveIsStreaming:a,approvalData:i,isApprovalRequired:r,isApprovalExpanded:o,setIsApprovalExpanded:l,mcpAuthRequired:c,isMcpAuthComplete:d,onMcpAuthSuccess:u,orgUuid:m}=e,p=rf(s),f=!!n,g=Ha(s.name),h=XC(s.name,p,{done:sme(n,a),suppressInternalMcp:qN(s.name,g)}),C=g?.server?.iconSrc||s.integration_icon_url,x="syncSource"===g?.server?.iconType&&g?.server?.iconSrc?t.jsx(it,{type:g.server.iconSrc,size:16}):void 0,v=s.message&&s.message!==s.name?s.message:void 0,y=g?.tool?.displayName&&g.tool.displayName!==g.tool.name?g.tool.displayName:void 0,b=h||y||v,k=g?.server?.name,w=!!c&&!d;let M="";if(void 0!==p){try{M=JSON.stringify(p,null,2)}catch{M=String(p)}M=M.replace(/\\n/g,"\n").replace(/\\t/g,"\t")}const _=""!==M&&"{}"!==M,j=n&&Array.isArray(n.content)&&n.content.length>0,S=n?.is_error??!1,L=!!s.integration_name&&null===s.input&&!s.display_content,N=!_||r||w?void 0:()=>t.jsx(YH,{language:"json",code:M,title:"Request",className:"!bg-bg-100"}),I=L?()=>t.jsx("div",{className:"px-1 py-0.5 text-xs text-text-500",children:t.jsx(XS,{defaultMessage:"Connector data hidden in shared chats",id:"/adJPj1rXf"})}):j||_?()=>t.jsxs(t.Fragment,{children:[_&&t.jsx(YH,{language:"json",code:M,title:"Request",className:"!bg-bg-100"}),j&&n.content.map((e,s)=>{if("text"===e.type)return t.jsx(YH,{language:"json",code:e.text??"",title:S?"Error":"Response",className:S?"!bg-danger-900":"!bg-bg-100",codeTagProps:S?{className:"text-danger-000"}:void 0},s);if("image"===e.type){const n=tI(eI({content:[e]}),m);return n?t.jsx("img",{src:n,alt:"Tool result",className:"max-w-md max-h-md h-auto rounded-md"},s):null}return null})]}):void 0;return t.jsxs(Fme,{icon:x,toolName:s.name,toolDisplayName:b,toolResult:n,integrationIconUrl:C,iconName:s.icon_name,integrationName:k,renderMode:bme.TimelineGroup,isFirstBlockOfMessage:e.isFirstBlockOfMessage,isLastBlockOfMessage:e.isLastBlockOfMessage,isFirstItemInGroup:e.isFirstItemInGroup,isLastItemInGroup:e.isLastItemInGroup,isStreaming:a&&!f,renderResult:I,renderRequest:N,isError:S,children:[r&&o&&t.jsx(eje,{toolName:b||s.name,rawToolName:s.name,integrationName:g?.server?.name,iconUrl:C,input:p,approvalData:i,onCollapse:()=>l(!1)}),w&&t.jsx(tje,{toolName:b||s.name,rawToolName:s.name,integrationName:g?.server?.name,iconUrl:C,input:p,toolResult:n,mcpAuthRequired:c,onAuthSuccess:u})]},e.index)}const fje=new Set(["create_file","open_file","update_file","view","read","write","edit","str_replace","str_replace_editor"]);function gje(e,s,n){return t.jsx(Ime,{action:"present",path:"",displayText:s,isStreaming:e.effectiveIsStreaming,isComplete:n,renderMode:bme.TimelineGroup,isFirstBlockOfMessage:e.isFirstBlockOfMessage,isLastBlockOfMessage:e.isLastBlockOfMessage,isFirstItemInGroup:e.isFirstItemInGroup,isLastItemInGroup:e.isLastItemInGroup},e.index)}function hje(e,s,n,a){const i=s?.content;if(!i||0===e)return;const r=Array.from({length:e},()=>{});let o=-1,l=!1;for(const c of i){if("text"===c.type){if(!c.text.startsWith("["))continue;if(o++,o>=e)break;continue}if("image"!==c.type||o<0||o>=e)continue;if(void 0!==r[o])continue;const s=tI(eI({content:[c]}),n);s&&(l=!0,r[o]=t.jsx(gme,{dataUrl:s,onClick:a?()=>a(s):void 0}))}return l?r:void 0}function Cje(e){const{block:s,toolResultBlock:n,effectiveIsStreaming:a,orgUuid:i,onThumbnailClick:r,onActionImageClick:o,intl:l}=e,c=eI(n),d=tI(c,i),u=sI(s.input),m="click"===u?.type?[u.x,u.y]:void 0,{text:p,icon:f}=V9(s.name,s.input,l);if(s.name.endsWith("__browser_batch")){const l=s.input??{},c=Array.isArray(l.actions)?l.actions:[],u=hje(c.length,n,i,o);return t.jsx(ipe,{actions:c,isStreaming:a&&!n,renderMode:bme.TimelineGroup,isFirstBlockOfMessage:e.isFirstBlockOfMessage,isLastBlockOfMessage:e.isLastBlockOfMessage,isFirstItemInGroup:e.isFirstItemInGroup,isLastItemInGroup:e.isLastItemInGroup,secondaryElement:d?t.jsx(gme,{dataUrl:d,onClick:r}):void 0,actionThumbnails:u},e.index)}if(s.name.endsWith("__computer_batch")){const r=s.input??{},l=Array.isArray(r.actions)?r.actions:[],c=hje(l.length,n,i,o);return t.jsx(X_e,{actions:l,isStreaming:a&&!n,renderMode:bme.TimelineGroup,isFirstBlockOfMessage:e.isFirstBlockOfMessage,isLastBlockOfMessage:e.isLastBlockOfMessage,isFirstItemInGroup:e.isFirstItemInGroup,isLastItemInGroup:e.isLastItemInGroup,actionThumbnails:c},e.index)}const g=d?t.jsx(gme,{dataUrl:d,coordinates:m,onClick:r}):void 0;return t.jsx(wme,{icon:t.jsx(npe,{icon:f}),text:p,secondaryElement:g,isStreaming:a&&!n,hideCaret:!0,renderMode:bme.TimelineGroup,isFirstBlockOfMessage:e.isFirstBlockOfMessage,isLastBlockOfMessage:e.isLastBlockOfMessage,isFirstItemInGroup:e.isFirstItemInGroup,isLastItemInGroup:e.isLastItemInGroup},e.index)}function xje(e){const t=ix(e.name),s=e.input;switch(e.name){case"memory_write":return"new"===s?.if_version?"auto_memory_create":"auto_memory_edit";case"memory_read":case"memory_list":case"memory_search":case"mcp__remote-devices__project_memory_read":return"auto_memory_read";case"memory_delete":case"mcp__remote-devices__project_memory_write":return"auto_memory_edit";case"TaskCreate":case"TaskUpdate":case"TaskStop":return"todo"}const n=s?.file_path??s?.path;if(!("string"==typeof n&&Kl(n)))return t;switch(t){case"read":case"grep":case"glob":return"auto_memory_read";case"write":return"auto_memory_create";case"edit":return"auto_memory_edit";default:return t}}function vje(e){return"text"===e.type&&!!e.text?.trim()||"connector_text"===e.type&&!!e.connector_text?.trim()}function yje(e){return"tool_use_summary"===e.type}const bje=new Set(["image_search",cx.DisplayWeatherInfo,cx.DisplayStockData,cx.DisplayQuiz,cx.DisplayRecipe]);function kje(e){return!!e&&(bje.has(e)||ox(e)||lx(e))}function wje(e){return"tool_use"===e.type&&(!!e.approval_options&&!!e.approval_key)}function Mje(e,t,s){return"tool_use"===e.type&&(!!e.mcp_auth_required||"artifacts"===e.name||"image_annotation"===e.name||"orbit_insight"===e.name||"enterprise_analytics"===e.name||jL.has(e.name)||"launch_extended_search_task"===e.name||"launch_code_session"===e.name||zl(e.name)||eh(e.name)||sh(e.name)||e.name.toLowerCase().includes("propose_skills")||sc(e.name)||"create"===Xl(e.name)||e.name.toLowerCase().includes("save_skill")||s(e)||"task_propose"===e.name||rx.has(e.name)||t(e)||ox(e.name)||lx(e.name))}function _je(e,t){const s=e=>e.trim().replace(/[.!?;:,]+$/,""),n=e.filter(e=>"tool_use"===e.type),a=n.length>0&&n.every(e=>dje(e.name));if(!a)for(let r=e.length-1;r>=0;r--)if("thinking"===e[r].type){const t=e[r].summaries?.at(-1)?.summary;if(t)return{text:s(t),summaryType:"thinking"}}for(let r=e.length-1;r>=0;r--){const t=e[r];if(yje(t))return{text:s(t.summary),summaryType:"tool_use_summary"}}let i;for(const r of e)if("thinking"===r.type)i="Thinking";else if("tool_use"===r.type&&(t||a)){const e=xje(r),t="message"in r?r.message:void 0,s=t&&t!==r.name?t:void 0,n="bash"!==e&&r.input&&"object"==typeof r.input&&"description"in r.input&&"string"==typeof r.input.description?r.input.description:void 0,a=Xl(r.name)?void 0:Ha(r.name),o=a?.tool?.displayName&&a.tool.displayName!==a.tool.name?a.tool.displayName:void 0,l=n||s||XC(r.name,"bash"===e?void 0:r.input,{suppressInternalMcp:qN(r.name,a)})||o;l&&(i=l.charAt(0).toUpperCase()+l.slice(1))}return i?{text:i}:{}}const jje={source:"server",maxChars:1/0,maxRunBlocks:1/0,blockOnStructure:!1,blockOnCitations:!1},Sje=/(^|\n) {0,3}(#{1,6} |```|~~~|\|)/;function Lje(e){return e.includes(`:${dx}`)?ux(e):e}function Nje(e){return Sje.test(e)||e.trim().split(/\n[ \t]*\n/).length>2}function Ije(e,t){if(yje(e))return"transparent";switch(e.type){case"thinking":{const t=e;return"working"!==t.alternative_display_type||t.thinking?.trim()||t.summaries?.length?"groupable":"transparent"}case"tool_use":return t.has(e.id)?"blocking":"groupable";case"tool_result":return"tool_use_id"in e&&t.has(e.tool_use_id)?"blocking":"transparent";case"text":case"connector_text":return vje(e)?"run":"transparent";case"token_budget":return"transparent";default:return"blocking"}}function Tje(e,t,s){e=function(e){const t=e=>!("thinking"!==e.type||"working"===e.alternative_display_type||!e.thinking?.trim()&&!e.summaries?.length),s=new Set;let n=0;for(;n<e.length;){const a=n;for(;n<e.length&&t(e[n]);)n++;const i=n;let r=!1,o=!0;for(;n<e.length&&!t(e[n]);){const t=e[n];if(n++,"text"===t.type&&t.text?.trim())break;"tool_use"===t.type&&(r=!0,o&&=dje(t.name))}if(r&&o)for(let e=a;e<i;e++)s.add(e)}return s.size>0?e.filter((e,t)=>!s.has(t)):e}(e).filter(e=>{return!("tool_use"===(t=e).type&&(ic(t.name)||lc(t.name)));var t});const n=s?.credentialStubChip??!1,a=s?.isArtifactChipBlock??(()=>!1),i=s?.researchSuggestionChip??!1,r=[];let o=[],l=[],c=0;const d=new Set,u=new Set;const m=new Set,p=new Set;for(const M of e){if("tool_result"!==M.type)continue;const e="string"==typeof M.content?M.content:"text"===M.content?.[0]?.type?M.content[0].text??"":"";if(dc(M.name))try{!0===JSON.parse(e)?.opt_in_required&&d.add(M.tool_use_id)}catch{}else n&&M.name&&nme(M.name)&&ame(e)?m.add(M.tool_use_id):i&&M.name===dme&&!M.is_error&&null!==ume(e)&&p.add(M.tool_use_id)}const f=new Set;for(const M of e)"tool_use"===M.type&&(Mje(M,t,a)||d.has(M.id)||u.has(M.id)||void 0===M.id||m.has(M.id)||p.has(M.id)&&!Da(M.name)&&!M.is_mcp_app&&!M.integration_name)&&f.add(M.id);const g=s?.joinTextPolicy;if(("server"===g?.source?e.some(e=>"text"===e.type&&!0===e.collapsible):!!g)&&f.size>0)for(const M of e)"tool_result"===M.type&&"tool_use_id"in M&&M.is_error&&f.has(M.tool_use_id)&&kje(M.name)&&f.delete(M.tool_use_id);const h=s?.joinTextPolicy?function(e,t,s,n){let a,i,r=0;for(;r<e.length;){if("run"!==Ije(e[r],s)){r++;continue}const o=[];let l=0,c=!1,d=!1,u=!1,m=r,p="end",f=!1;for(;m<e.length;){const a=e[m],i=Ije(a,s);if("run"===i){if(o.push(m),"server"===t.source)if(f="text"===a.type&&!0!==a.stopped,"text"===a.type&&(!0===a.collapsible||n&&!0!==a.stopped)){if(!0===a.collapsible&&m+1<e.length){const t=Ije(e[m+1],s);if("run"===t||"transparent"===t){m++,p="groupable";break}}}else u=!0;else if(!(c||d||l>t.maxChars))if(t.blockOnCitations&&"text"===a.type&&a.citations?.length)d=!0;else{const e=Lje(("text"===a.type?a.text:"connector_text"===a.type?a.connector_text:void 0)??"");l+=e.length,t.blockOnStructure&&!c&&(c=Nje(e))}m++}else{if("transparent"!==i){p=i;break}m++}}const g="server"===t.source?o.length>0&&!u:o.length<=t.maxRunBlocks&&l>0&&l<=t.maxChars&&!c&&!d;if(g&&("groupable"===p||"server"===t.source&&"end"===p)){a??=new Set;for(const e of o)a.add(e)}else if("end"===p&&(g||f)){i??=new Set;for(const e of o)i.add(e)}r=m}return{foldable:a,pending:i}}(e,s.joinTextPolicy,f,s.isStreaming??!1):void 0,C=h?.foldable,x=h?.pending,v=new Map,y=e=>{if(o.length>0)o.push(e);else{const t=(()=>{for(let e=r.length-1;e>=0;e--){const t=r[e];if("timeline"===t.type)return t}})();if(t){t.blocks.push(e);const s=r.at(-1);"content"===s?.type&&(s.hasBlockMergedAfter=!0)}else o.push(e)}},b=()=>{o.length>0&&(r.push({type:"timeline",blocks:[...o],timelineIndex:c++}),o=[])},k=()=>{l.length>0&&(r.push({type:"content",blocks:[...l]}),l=[])};for(let M=0;M<e.length;M++){const t=e[M];if("thinking"===t.type){const e=t;if("working"===e.alternative_display_type){if(!e.thinking?.trim()&&!e.summaries?.length)continue;o.push(t)}else y(t);continue}if(yje(t)){y(t);continue}if("tool_use"===t.type){if(f.has(t.id)){"AskUserQuestion"===t.name?(b(),l.push(t),k(),v.set(t.id,r.at(-1))):l.push(t);continue}o.push(t);continue}if("tool_result"===t.type){if("tool_use_id"in t&&f.has(t.tool_use_id)){const e=v.get(t.tool_use_id);e?(e.blocks.push(t),v.delete(t.tool_use_id)):l.push(t)}continue}const s="text"===t.type?t.text:"connector_text"===t.type?t.connector_text:void 0;if(s?.trim()){if(C?.has(M)&&0===l.length&&(o.length>0||"timeline"===r.at(-1)?.type)){y(t);continue}if(b(),k(),l.push(t),k(),x?.has(M)){const e=r.at(-2);("timeline"===e?.type||"content"===e?.type&&e.pendingFold)&&(r.at(-1).pendingFold=!0)}}else"text"!==t.type&&"connector_text"!==t.type&&"token_budget"!==t.type&&(b(),k(),l.push(t),k())}b(),k();let w=0;for(const M of r){if("timeline"===M.type){const e=w>0,t=_je(M.blocks,e);M.statusText=t.text,M.summaryType=t.summaryType,M.blocks=M.blocks.filter(e=>!yje(e))}w++}return r}function Aje(e,t){return e.blocks.some(e=>!!vje(e)||"tool_use"===e.type&&(!t(e)&&(!e.mcp_auth_required&&!rx.has(e.name))))}function Eje(){return!1}function Rje(e,t,s){const n=t.filter(e=>"thinking"===e.type),a=t.filter(e=>"tool_use"===e.type);if(0===a.length&&n.length>0)return function(e,t){let s=0,n=!1;for(const c of t)if(c.start_timestamp&&c.stop_timestamp){const e=new Date(c.start_timestamp).getTime(),t=new Date(c.stop_timestamp).getTime();!isNaN(e)&&!isNaN(t)&&t>e&&(s+=t-e,n=!0)}if(!n)return e.formatMessage({defaultMessage:"Thought process",id:"zl6fNbo7RW"});const a=Math.round(s/1e3);if(a<60)return e.formatMessage({defaultMessage:"Thought for {seconds}s",id:"Jj0DasG7Mx"},{seconds:a});const i=Math.floor(a/60),r=a%60;if(i<60)return r>0?e.formatMessage({defaultMessage:"Thought for {minutes}m {seconds}s",id:"4LM6AdGWNg"},{minutes:i,seconds:r}):e.formatMessage({defaultMessage:"Thought for {minutes}m",id:"vFyvc213kN"},{minutes:i});const o=Math.floor(i/60),l=i%60;return l>0?e.formatMessage({defaultMessage:"Thought for {hours}h {minutes}m",id:"voTuOb/ijW"},{hours:o,minutes:l}):e.formatMessage({defaultMessage:"Thought for {hours}h",id:"MFx4UWu2HS"},{hours:o})}(e,n);if(1===a.length)return function(e,t,s){const n=Xl(t.name);if(n)return function(e,t){switch(t){case"create":return e.formatMessage({defaultMessage:"Created a scheduled task",id:"kPR5A6iOBf"});case"update":return e.formatMessage({defaultMessage:"Updated a scheduled task",id:"fOmZ2mhtgT"});case"delete":return e.formatMessage({defaultMessage:"Deleted a scheduled task",id:"uSY/8ozCrV"});case"fire":return e.formatMessage({defaultMessage:"Ran a scheduled task",id:"pHbXGizqVa"});case"list":return e.formatMessage({defaultMessage:"Listed scheduled tasks",id:"e2rEnTMwsb"});case"send_later":return e.formatMessage({defaultMessage:"Scheduled a message",id:"emZs63Nt7w"})}}(e,n);const a=Ha(t.name);if(a){const n=a.tool?.displayName&&a.tool.displayName!==a.tool.name?a.tool.displayName:void 0;if(n)return n;return XC(t.name,t.input,{done:sme(s?.(t.id),!1),suppressInternalMcp:qN(t.name,a)})||e.formatMessage({defaultMessage:"Used {name} integration",id:"eOtvhn95Bx"},{name:a.server.name})}const i=s?.(t.id)?.message;if(i&&i!==t.name)return i.charAt(0).toUpperCase()+i.slice(1);const r=xje(t),o="bash"!==r&&t.input&&"object"==typeof t.input&&"description"in t.input&&"string"==typeof t.input.description?t.input.description:void 0;if(o)return o.charAt(0).toUpperCase()+o.slice(1);const l="message"in t?t.message:void 0,c=l&&l!==t.name?l:void 0;if(r)return c&&"web"!==r?c.charAt(0).toUpperCase()+c.slice(1):mx(e,r,1)??t.name;if(c)return c.charAt(0).toUpperCase()+c.slice(1);const d=XC(t.name,t.input,{done:sme(s?.(t.id),!1),suppressInternalMcp:qN(t.name,Ha(t.name))});return d||e.formatMessage({defaultMessage:"Used a tool",id:"BRG8o6gNdU"})}(e,a[0],s);if(a.length>1){const t=new Map,s=new Map;let n=0,i=0;for(const e of a){const a=xje(e);if(a)t.set(a,(t.get(a)??0)+1);else if(Xl(e.name))i++;else{const t=Ha(e.name);if(t){const e=t.server.name;s.set(e,(s.get(e)??0)+1)}else n++}}if(0===n&&0===s.size&&0===i&&t.size>1){const s={memory:e.formatMessage({defaultMessage:"searched",id:"H1IkAhKaUJ"}),auto_memory_read:e.formatMessage({defaultMessage:"read",id:"7gIcWqlMVf"}),auto_memory_create:e.formatMessage({defaultMessage:"created",id:"lr7wlbGcN2"}),auto_memory_edit:e.formatMessage({defaultMessage:"edited",id:"Zx1w1eqzqd"})};if([...t.keys()].every(e=>e in s)){const n=["memory","auto_memory_read","auto_memory_create","auto_memory_edit"].filter(e=>t.has(e)).map(e=>s[e]),a=e.formatMessage({defaultMessage:"{verbs} memory",id:"7B0hNtmsG6"},{verbs:e.formatList(n,{type:"conjunction"})});return a.charAt(0).toUpperCase()+a.slice(1)}}const r=[];for(const[a,l]of t){const t=mx(e,a,l);t&&r.push({label:t,count:l})}if(i>0&&r.push({label:e.formatMessage({defaultMessage:"Managed scheduled tasks",id:"BelwdvA9Ye"}),count:i}),1===s.size){const[t]=s.keys(),n=s.get(t)??1;r.push({label:e.formatMessage({defaultMessage:"Used {name} integration",id:"eOtvhn95Bx"},{name:t}),count:n})}else if(s.size>1){const t=[...s.values()].reduce((e,t)=>e+t,0);r.push({label:e.formatMessage({defaultMessage:"Used {count} integrations",id:"4jmYxV5GT7"},{count:s.size}),count:t})}1===n?r.push({label:e.formatMessage({defaultMessage:"Used a tool",id:"BRG8o6gNdU"}),count:1}):n>1&&r.push({label:e.formatMessage({defaultMessage:"Used {count} tools",id:"JtrYJ8F4gT"},{count:n}),count:n}),r.sort((e,t)=>t.count-e.count);const o=r.slice(0,3);if(o.length>0)return o.map((e,t)=>0===t?e.label:e.label.charAt(0).toLowerCase()+e.label.slice(1)).join(", ")}}function Dje(e){return e?e.is_error?"error":"ok":void 0}function Hje(e,t){let s="";for(const n of e){if("tool_use"!==n.type||void 0===n.id)continue;const e=t(n.id);void 0!==e&&(s+="error"===e?`${n.id}!;`:`${n.id};`)}return s}function Pje(e,t){if(e===t)return!0;if(!e||!t)return!1;if(e.blocks.length!==t.blocks.length)return!1;for(let s=0;s<e.blocks.length;s++)if(e.blocks[s]!==t.blocks[s]&&!("text"===e.blocks[s].type&&"text"===t.blocks[s].type&&e.blocks[s].text===t.blocks[s].text&&e.blocks[s].voice_spoken_chars===t.blocks[s].voice_spoken_chars||"connector_text"===e.blocks[s].type&&"connector_text"===t.blocks[s].type&&e.blocks[s].connector_text===t.blocks[s].connector_text))return!1;return!0}function Uje(e,t){if(e===t)return!0;if(!e||!t)return!1;const s=e.liveUpdates?e.blocks===t.blocks:function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let s=0;s<e.length;s++){if(e[s]===t[s])continue;const n=e[s],a=t[s];if(n.type!==a.type)return!1;const i=n.id??n.tool_use_id,r=a.id??a.tool_use_id;if(!(void 0!==i&&i===r&&n.stop_timestamp===a.stop_timestamp||"text"===n.type&&n.text===a.text&&n.voice_spoken_chars===a.voice_spoken_chars||"connector_text"===n.type&&n.connector_text===a.connector_text||"thinking"===n.type&&n.thinking===a.thinking&&n.stop_timestamp===a.stop_timestamp))return!1}return!0}(e.blocks,t.blocks);return s&&e.resolvedToolResultsKey===t.resolvedToolResultsKey&&e.statusText===t.statusText&&e.summaryType===t.summaryType&&e.timelineIndex===t.timelineIndex&&e.liveUpdates===t.liveUpdates&&e.pendingProseAfter===t.pendingProseAfter&&e.isFirst===t.isFirst&&e.isLastContent===t.isLastContent&&Pje(e.contentAfterSegment,t.contentAfterSegment)&&e.contentAfterIdx===t.contentAfterIdx&&e.contentHasTextAfter===t.contentHasTextAfter&&e.contentAfterIsTrailing===t.contentAfterIsTrailing}function Oje(){const t=e.useRef(null);return t.current||(t.current=yT(()=>({timelines:[],isThisMessageStreaming:!1,currentStatus:void 0}))),t.current}const Fje=e.memo(function({store:s,timelineIndex:n,renderCtxRef:a}){const{segment:i,segmentIdx:r,isLastContent:o,hasTextAfter:l,isTrailingSegment:c,isThisMessageStreaming:d}=function(t,s){const n=e.useCallback(e=>{const t=e.timelines[s];return{segment:t?.contentAfterSegment,segmentIdx:t?.contentAfterIdx,isLastContent:t?.isLastContent??!1,hasTextAfter:t?.contentHasTextAfter??!1,isTrailingSegment:t?.contentAfterIsTrailing??!1,isThisMessageStreaming:e.isThisMessageStreaming}},[s]);return kT(t,n,(e,t)=>e===t||Pje(e.segment,t.segment)&&e.segmentIdx===t.segmentIdx&&e.isLastContent===t.isLastContent&&e.hasTextAfter===t.hasTextAfter&&e.isTrailingSegment===t.isTrailingSegment&&e.isThisMessageStreaming===t.isThisMessageStreaming)}(s,n);if(!i||void 0===r)return null;const u=a.current,m=i.blocks.some(vje),p=i.blocks.some(e=>"tool_use"===e.type&&!rx.has(e.name)),f=i.blocks.some(e=>{if("tool_use"!==e.type||"AskUserQuestion"!==e.name)return!1;const t=e.id;if(u.mcqAnswers?.[t])return!0;const s=e.input;return Boolean(s?.answers&&Object.keys(s.answers).length>0)});if(!m&&!l&&d&&!p&&!f)return null;const{aggregatedBlocks:g}=px(i.blocks,u.mcqAnswers);return t.jsx("div",{style:d?{animation:"timeline-fade-in 300ms ease-out"}:void 0,children:t.jsx(tme,{blocks:g,isStreaming:u.isStreaming,isThisMessageStreaming:d,isLastMessage:u.isLastMessage,updatedMessage:{...u.updatedMessage,content:g},message:u.message,onResize:u.onResize,conversationUuid:u.conversationUuid,shareType:u.shareType,onOpenArtifact:u.onOpenArtifact,onOpenWiggleFile:u.onOpenWiggleFile,skipFileCards:!o,isLastContentSegment:!l,isTrailingSegmentOfMessage:c})})});Fje.displayName="ContentAfterTimeline";const Vje=e.memo(function({blocks:e,isLastContent:s,hasTextAfter:n,isTrailingSegment:a,isThisMessageStreaming:i,renderCtxRef:r}){const o=r.current,l=e.some(vje),c=e.some(e=>"tool_use"===e.type&&!rx.has(e.name)),d=e.some(e=>{if("tool_use"!==e.type||"AskUserQuestion"!==e.name)return!1;const t=e.id;if(o.mcqAnswers?.[t])return!0;const s=e.input;return Boolean(s?.answers&&Object.keys(s.answers).length>0)});if(!l&&!n&&i&&!c&&!d)return null;const{aggregatedBlocks:u}=px(e,o.mcqAnswers);return t.jsx(tme,{blocks:u,isStreaming:o.isStreaming,isThisMessageStreaming:i,isLastMessage:o.isLastMessage,updatedMessage:{...o.updatedMessage,content:u},message:o.message,onResize:o.onResize,conversationUuid:o.conversationUuid,shareType:o.shareType,onOpenArtifact:o.onOpenArtifact,onOpenWiggleFile:o.onOpenWiggleFile,skipFileCards:!s,isLastContentSegment:!n,isTrailingSegmentOfMessage:a})});Vje.displayName="StandaloneContent";const zje=[],Zje=t.jsx(FP,{size:16,className:"text-text-500"});const Bje=e.memo(function({taskBlocks:s,subagentBlocksByTaskId:n,getToolResult:a,isThisMessageStreaming:i,isFirstItemInGroup:r,isLastItemInGroup:o}){const l=JS(),c=e.useId(),d=e.useRef(null),[u,m]=e.useState(),p=e.useMemo(()=>s.map(e=>{const t=a(e.id),s=n.get(e.id)??zje;return{task:e,subagentBlocks:s,toolUseSubBlocks:s.filter(e=>"tool_use"===e.type),isComplete:!!t,isError:!!t?.is_error}}),[s,n,a]),f=p.every(e=>e.isComplete),g=i&&!f,h=p.reduce((e,t)=>e+t.toolUseSubBlocks.length,0),C=e.useRef(new Map),x=e.useRef(void 0),[v,y]=e.useState();e.useEffect(()=>{let e;for(const t of p){const s=t.toolUseSubBlocks.at(-1)?.id;s&&C.current.get(t.task.id)!==s&&(e=t.task.id),C.current.set(t.task.id,s)}e&&(x.current&&clearTimeout(x.current),y(e),x.current=setTimeout(()=>y(void 0),400))},[p]),e.useEffect(()=>()=>{x.current&&clearTimeout(x.current)},[]);const b=e.useMemo(()=>p.findIndex(e=>e.task.id===u),[p,u]),k=b>=0?p[b]:void 0,w=e.useCallback(e=>{m(t=>t===e?void 0:e)},[]),M=e.useCallback(e=>{if("ArrowLeft"!==e.key&&"ArrowRight"!==e.key)return;const t=d.current?.querySelectorAll('[role="tab"]');if(!t||0===t.length)return;const s=document.activeElement,n=Array.from(t).findIndex(e=>e===s);if(n<0)return;e.preventDefault();const a=t[(n+("ArrowRight"===e.key?1:-1)+t.length)%t.length];a.focus(),a.scrollIntoView({block:"nearest",inline:"nearest"})},[]),_=Math.max(2,Math.min(s.length,3)),j=g?t.jsx(Yg,{children:t.jsx(XS,{defaultMessage:"Running {count, plural, one {# agent} other {# agents}}",id:"XujStw7kbF",values:{count:s.length}})}):t.jsxs(t.Fragment,{children:[t.jsx(XS,{defaultMessage:"Ran {count, plural, one {# agent} other {# agents}}",id:"XkRb8klagl",values:{count:s.length}}),h>0&&t.jsxs("span",{className:"text-text-400",children:[" \xb7 ",t.jsx(XS,{defaultMessage:"{totalSteps, plural, one {# step} other {# steps}}",id:"IxmIOr4U3i",values:{totalSteps:h}})]})]}),S=e.useCallback((e,s)=>{const{task:n,toolUseSubBlocks:a,isComplete:r,isError:o}=e,d=u===n.id,m=u?d:0===s,f=a.at(-1),g=f?xje(f):void 0,h=i&&!r&&!o,C=h?f?function(e,t){switch(t){case"read":case"view":return e.formatMessage({defaultMessage:"Reading files",id:"5DvVdHWYeP"});case"write":return e.formatMessage({defaultMessage:"Writing files",id:"m2+K4DTKFL"});case"edit":return e.formatMessage({defaultMessage:"Editing files",id:"HQcXlU4DEE"});case"delete_file":return e.formatMessage({defaultMessage:"Deleting files",id:"UXI5kx9c08"});case"glob":case"grep":return e.formatMessage({defaultMessage:"Searching code",id:"s3uCYVnfB5"});case"memory":case"auto_memory_read":return e.formatMessage({defaultMessage:"Searching memory",id:"0HOd5qHHdv"});case"auto_memory_create":return e.formatMessage({defaultMessage:"Saving memory",id:"3mzEki9uWH"});case"auto_memory_edit":return e.formatMessage({defaultMessage:"Updating memory",id:"RIbw6nN4dR"});case"bash":case"tmux":case"kill_bash":return e.formatMessage({defaultMessage:"Running command",id:"/GXAvJ98t+"});case"web":case"drive_search":return e.formatMessage({defaultMessage:"Searching the web",id:"5KajyzHSXj"});case"task":return e.formatMessage({defaultMessage:"Running agent",id:"F+HPyMF0cw"});case"skill":return e.formatMessage({defaultMessage:"Using skill",id:"nWeV+8P/YZ"});case"todo":return e.formatMessage({defaultMessage:"Updating tasks",id:"WcmN0GCOgd"});case"exit_plan_mode":return e.formatMessage({defaultMessage:"Proposing plan",id:"WZ2fCj8VUf"});case"notebook_edit":return e.formatMessage({defaultMessage:"Editing notebook",id:"eo3lwMaLQi"});case"preview":case"screenshot":return e.formatMessage({defaultMessage:"Taking screenshot",id:"IwRaId+4hv"});case"browser":return e.formatMessage({defaultMessage:"Browsing",id:"kbCx2ZYlvk"});case"tool_search":return e.formatMessage({defaultMessage:"Finding tools",id:"Y1lk3kyOhf"});default:return e.formatMessage({defaultMessage:"Working",id:"gAR0atqpRn"})}}(l,g):l.formatMessage({defaultMessage:"Starting\u2026",id:"RFCwI6lJ1a"}):o?l.formatMessage({defaultMessage:"Failed",id:"vXCeIi67rj"}):a.length>0?l.formatMessage({defaultMessage:"{count, plural, one {# step} other {# steps}}",id:"vAKAnIbJ4M"},{count:a.length}):r?l.formatMessage({defaultMessage:"Done",id:"JXdbo8Vnlw"}):l.formatMessage({defaultMessage:"Stopped",id:"1LBny5MvRa"}),x=n.input,y=x.name??x.description??l.formatMessage({defaultMessage:"Agent",id:"QGVI63s1dJ"});return t.jsxs("button",{type:"button",role:"tab",id:`${c}-tab-${s}`,"aria-selected":d,"aria-controls":u?c:void 0,"aria-posinset":s+1,"aria-setsize":p.length,tabIndex:m?0:-1,onClick:()=>w(n.id),className:dt("group block w-full min-w-0 overflow-hidden rounded-lg border px-2.5 py-2 text-left","transition-[background-color,border-color,box-shadow] duration-150 ease-[cubic-bezier(0.4,0,0.2,1)]","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent-100",d?"border-accent-200 bg-accent-900 shadow-sm":"border-border-300 hover:border-border-200 hover:bg-bg-200"),children:[t.jsxs("span",{className:"flex min-w-0 items-center gap-2",children:[r&&!o?t.jsx(Hu,{size:14,className:"shrink-0 text-success-000"}):t.jsx("span",{className:dt("size-2 shrink-0 rounded-full border transition-[background-color,border-color] duration-200 ease-[cubic-bezier(0.4,0,0.2,1)]",o?"border-danger-200 bg-danger-200":v===n.id?"border-text-300 bg-text-300":"border-text-400 bg-transparent")}),t.jsx("span",{className:"min-w-0 truncate text-xs text-text-200",children:h?t.jsx(Yg,{children:y}):y})]}),t.jsx("span",{className:"mt-1.5 block overflow-hidden",children:t.jsx("span",{className:"inline-block max-w-full truncate rounded bg-bg-200 px-1.5 py-0.5 font-ui text-[0.6875rem] font-medium text-text-400",children:C})})]},n.id)},[l,p.length,u,c,v,i,w]);return t.jsxs(t.Fragment,{children:[t.jsx(kme,{icon:Zje,header:t.jsx("div",{className:"flex items-center gap-1.5 px-3 py-2 text-sm text-text-300",children:j}),isFirstItem:r,isLastItem:!!o&&!k,isActive:g,isExpanded:!0,children:t.jsx("div",{ref:d,role:"tablist","aria-label":l.formatMessage({defaultMessage:"Parallel agents",id:"V0HgvxEWZe"}),onKeyDown:M,className:dt("grid min-w-0 gap-2 pb-2 pl-3 pr-2",2===_?"grid-cols-2":"grid-cols-3"),children:p.map((e,t)=>S(e,t))})}),k&&t.jsx("div",{id:c,role:"tabpanel","aria-labelledby":`${c}-tab-${b}`,className:"min-w-0",children:0===k.toolUseSubBlocks.length?t.jsx(kme,{isFirstItem:!1,isLastItem:o,children:t.jsx("div",{className:"px-3 py-2 text-sm text-text-400",children:t.jsx(XS,{defaultMessage:"No steps yet",id:"IPiHjIy59N"})})}):t.jsx(Zme,{isFirstBlockOfMessage:!1,isLastBlockOfMessage:!1,borderless:!0,autoCollapse:!1,children:k.toolUseSubBlocks.map((s,n,a)=>{const r=i&&!k.isComplete&&n===a.length-1;return t.jsx(e.Fragment,{children:lje(s,{subagentBlocks:k.subagentBlocks,isStreaming:r,isFirstItem:0===n,isLastItem:!!o&&n===a.length-1})},s.id??n)})})})]})});function qje(e){return"parallel_tasks"===e.type}function Wje(e){return"tool_use"===e.type&&"task"===ix(e.name)}function $je(e){if("string"==typeof e)try{return JSON.parse(e)}catch{return e}return e}function Gje(){const e=y("claudeai_majordomo_enabled"),t=fx();return e&&t}function Kje(){return xe()&&!0}function Yje(){const e=gx("analytics_chat_tool_enabled"),t=Kje();return e.on&&t}Bje.displayName="ParallelTaskCardRow",OL($je,AL({session_id:IL(),status:IL().optional()})),OL($je,AL({session_id:IL(),status:IL().optional()})),OL($je,AL({session_id:IL().optional(),status:IL().optional(),summary:IL().optional(),result:IL().optional()}));const Qje=e=>{const t=Math.max(0,Math.floor(e/1e3));return`${Math.floor(t/60)}:${(t%60).toString().padStart(2,"0")}`},Jje=({input:s,toolResult:n,renderMode:a=bme.Standard,isFirstBlockOfMessage:i,isLastBlockOfMessage:r,isFirstItemInGroup:o,isLastItemInGroup:l,isStreaming:c,monitorUrl:d,onMonitorClosed:u,completionResult:m})=>{const p="string"==typeof s?.to_number?s.to_number:"",f="string"==typeof s?.task_description?s.task_description:void 0,g=!0===n?.is_error,h=e.useMemo(()=>{if(!g)return;const e=n?.content;if(Array.isArray(e)){const t=e.find(e=>"text"===e?.type&&"string"==typeof e.text);if(t)return t.text}},[g,n?.content]),C="user_declined"===n?.message||"approval_timeout"===n?.message||"Denied."===h||"No approval received."===h,x=!!n,[v,y]=e.useState(()=>!x&&c?"streaming":g||!d?"terminal":x?"result_ready":"terminal"),[b,k]=e.useState(null);e.useEffect(()=>{"streaming"===v&&x?y(g||!d?"terminal":"result_ready"):("streaming"!==v||c||x)&&("result_ready"!==v&&"live"!==v||d)||y("terminal")},[v,x,g,d,c]);const[w,M]=e.useState([]),_=e.useRef(null),j=e.useCallback(e=>{const t=Date.now();null===_.current&&(_.current=t);const s=t-_.current;"append"!==e.kind?M(t=>{const n=[...t];for(let s=n.length-1;s>=0;s--)if("agent"===n[s].speaker)return n[s]={...n[s],text:e.text},n;return[...n,{speaker:"agent",text:e.text,relativeMs:s}]}):M(t=>[...t,{speaker:e.speaker,text:e.text,relativeMs:s}])},[]),S=e.useRef(null),[L,N]=e.useState(!1),[I,T]=e.useState(!1),{addError:A}=ut(),E=e.useRef(A);e.useEffect(()=>{E.current=A},[A]),e.useEffect(()=>{const e=()=>{const e="hidden"===document.visibilityState;T(e),e&&y(e=>"live"===e?"result_ready":e)};return document.addEventListener("visibilitychange",e),()=>{document.removeEventListener("visibilitychange",e)}},[]);const R=!("result_ready"!==v&&"live"!==v||I||!d),[D,H]=e.useState(!1);e.useEffect(()=>{if(!R||!d)return;const e=new WebSocket(d);return S.current=e,e.onopen=()=>{M([]),_.current=null,N(!1),H(!0),y("live")},e.onmessage=e=>{if("string"!=typeof e.data)return;const t=(e=>{let t;try{t=JSON.parse(e)}catch{return null}if(!t||"object"!=typeof t)return null;const s=t;if("user_transcript"===s.type){const e=s.user_transcription_event,t=e?.user_transcript;return"string"==typeof t&&t.length>0?{kind:"append",speaker:"callee",text:t}:null}if("agent_response"===s.type){const e=s.agent_response_event,t=e?.agent_response;return"string"==typeof t&&t.length>0?{kind:"append",speaker:"agent",text:t}:null}if("agent_response_correction"===s.type){const e=s.agent_response_correction_event,t=e?.corrected_agent_response;return"string"==typeof t&&t.length>0?{kind:"correct_last_agent",text:t}:null}if("call_ended_processing"===s.type)return{kind:"call_ended_processing"};if("error"===s.type)return{kind:"error",message:"string"==typeof s.message?s.message:""};return null})(e.data);if(t){if("call_ended_processing"!==t.kind)return"error"===t.kind?(E.current("Couldn't end the call. Please try again."),void N(!1)):void j(t);N(!0)}},e.onclose=e=>{k(e.code),y("terminal"),N(!1),u?.(e.code)},e.onerror=()=>{E.current("Lost connection to the live call monitor.")},()=>{e.onopen=null,e.onmessage=null,e.onclose=null,e.onerror=null,S.current===e&&(S.current=null),e.close(1e3,"component cleanup")}},[R,d,j,u]);const[P,U]=e.useState(!1),O=e.useCallback(()=>{const e=S.current;if(e&&e.readyState===WebSocket.OPEN){try{e.send(JSON.stringify({command_type:"end_call"}))}catch{return void A("Couldn't end the call. Please try again.")}N(!0)}else A("Couldn't end the call \u2014 the monitor connection isn't open.")},[A]),F=e.useMemo(()=>"streaming"===v?p?`Dialing ${p}`:"Dialing":g?C?"Call cancelled":"Phone call failed":"live"===v&&L?p?`Ending call to ${p}`:"Ending call":"live"===v?p?`Calling ${p}`:"Call in progress":"result_ready"===v?p?`Phone call to ${p}`:"Phone call":x?p?`Call to ${p} completed`:"Call completed":"Call cancelled",[v,L,g,p,x,C]),V="live"===v?L?t.jsxs("span",{className:"flex items-center gap-1.5 text-xs text-text-500",children:[t.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-text-400 animate-pulse"}),"Ending"]}):t.jsxs("span",{className:"flex items-center gap-1.5 text-xs text-text-500",children:[t.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-danger-100 animate-pulse"}),"Live"]}):"result_ready"===v?t.jsxs("span",{className:"flex items-center gap-1.5 text-xs text-text-500",children:[t.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-text-500 animate-pulse"}),"Connecting"]}):void 0,z=(()=>{if("streaming"===v)return t.jsx(nSe,{children:"Placing call"});if("result_ready"===v)return t.jsx(nSe,{children:"Connecting to live monitor"});if("live"===v)return t.jsxs(t.Fragment,{children:[t.jsx(uH,{className:"max-h-[240px] overflow-y-auto",children:t.jsx("div",{className:"p-3 flex flex-col gap-2.5",children:0===w.length?t.jsx(nSe,{inline:!0,children:"Waiting for transcript"}):w.map((e,s)=>t.jsx(tSe,{entry:e},s))})}),t.jsx("div",{className:"flex items-center justify-end px-3 py-2 border-t-[0.5px] border-border-300",children:t.jsx(kt,{variant:"danger",size:"sm",onClick:()=>U(!0),loading:L,children:L?"Ending call\u2026":"End call"})})]});if(g)return t.jsx(nSe,{children:C?"The call was not approved.":h??"The call couldn't be placed."});if("unparseable"===m)return t.jsx(nSe,{children:"The call transcript couldn't be read in the expected format."});if(m){const{durationSecs:e,transcript:s}=m;return t.jsxs(t.Fragment,{children:[null!==e&&t.jsxs("div",{className:"px-3 py-2 border-b-[0.5px] border-border-300 text-xs text-text-400",children:["Duration: ",Qje(1e3*e)]}),t.jsx("div",{className:"max-h-[240px] overflow-y-auto",children:t.jsx("div",{className:"p-3 flex flex-col gap-2.5",children:0===s.length?t.jsx(nSe,{inline:!0,children:"No transcript was captured for this call."}):s.map((e,s)=>t.jsx(tSe,{entry:e},s))})})]})}return w.length>0?t.jsx(uH,{className:"max-h-[240px] overflow-y-auto",noDefaultScroll:!0,children:t.jsx("div",{className:"p-3 flex flex-col gap-2.5",children:w.map((e,s)=>t.jsx(tSe,{entry:e},s))})}):D?t.jsx(nSe,{children:"Call ended before any transcript was captured."}):x?4502===b?t.jsx(nSe,{children:"Live monitoring wasn't available for this call."}):t.jsx(nSe,{children:"This call has already completed. The full transcript will appear in the conversation below."}):t.jsx(nSe,{children:"Generation was stopped before the call was placed."})})(),Z=t.jsx(wme,{isStreaming:"streaming"===v,icon:t.jsx(XR,{size:16,className:"text-text-500"}),text:F,secondaryElement:V,hideCaret:!0,isFirstBlockOfMessage:i,isLastBlockOfMessage:r,renderMode:a,isFirstItemInGroup:o,isLastItemInGroup:l,children:t.jsx("div",{className:"px-2.5 pb-2.5",children:t.jsxs("div",{className:"border-[0.5px] border-border-300 rounded-xl overflow-hidden bg-bg-000/30",children:[f&&t.jsx("div",{className:"px-3 py-2 border-b-[0.5px] border-border-300 text-xs text-text-400",children:f}),z]})})});return t.jsxs(t.Fragment,{children:[Z,t.jsx(yu,{isOpen:P,onClose:()=>U(!1),onConfirm:O,title:"End this call?",message:"Claude will hang up immediately. The call transcript so far will still be saved.",confirmText:"End call",cancelText:"Cancel",variant:"danger"})]})},Xje=e.memo(Jje),eSe=({entry:e})=>{const{speaker:s,text:n,relativeMs:a}=e;return t.jsxs("div",{className:"flex items-start gap-2 text-sm",children:[t.jsx("span",{className:Bt("shrink-0 inline-flex items-center justify-center px-1.5 py-0.5 rounded text-[10px] font-medium uppercase tracking-wide","agent"===s?"bg-bg-400 text-text-100":"bg-bg-300 text-text-300"),children:"agent"===s?"Claude":"Contact"}),t.jsx("span",{className:"flex-1 min-w-0 text-text-200 break-words",children:n}),t.jsx("span",{className:"shrink-0 text-[10px] text-text-500 tabular-nums pt-0.5",children:Qje(a)})]})},tSe=e.memo(eSe),sSe=({children:e,inline:s})=>t.jsx("div",{className:Bt("text-xs text-text-500",s?"py-1":"px-3 py-3"),children:e}),nSe=e.memo(sSe);const aSe=new Set([4403,4500]),iSe=AL({duration:EL().nullish(),error:IL().nullish(),transcript:NL(AL({speaker:TL(["agent","callee"]),text:IL(),relative_ms:EL()}).transform(({relative_ms:e,...t})=>({...t,relativeMs:e})))});function rSe(e){let t;try{t=JSON.parse(e)}catch{return null}const s=iSe.safeParse(t);return s.success?{durationSecs:s.data.duration??null,transcript:s.data.transcript}:null}function oSe(e,t){for(const s of e.content??[])if("tool_result"===s.type&&s.tool_use_id===t&&Array.isArray(s.content)){const e=s.content.find(e=>"object"==typeof e&&null!==e&&"type"in e&&"text"===e.type&&"text"in e&&"string"==typeof e.text);if(e)return rSe(e.text)??"unparseable"}return"unparseable"}function lSe(e){const t=e.input;if("object"!=typeof t||null===t)return null;const s=t.phone_use_tool_id;return"string"==typeof s?s:null}function cSe({ctx:s,conversationUuid:n,orgUuid:a,approvalData:i,isApprovalRequired:r,isApprovalExpanded:o,setIsApprovalExpanded:l}){const c=y("cai_highland_harmonica"),{data:d}=vx(n),u=yx(n),m=e.useMemo(()=>function(e,t){if(!e||0===e.length)return null;for(const n of e)for(const e of n.content??[])if("tool_use"===e.type&&"phone_call_completed"===e.name&&lSe(e)===t)return oSe(n,e.id);let s=null;for(const n of e){for(const e of n.content??[])if("tool_use"===e.type&&e.id===t){s=n.index;break}if(null!==s)break}if(null===s)return null;for(const n of e)if(!(n.index<=s))for(const e of n.content??[]){if("tool_use"===e.type&&"phone_use"===e.name)return null;if("tool_use"===e.type&&"phone_call_completed"===e.name){if(null!==lSe(e))continue;return oSe(n,e.id)}}return null}(d?.chat_messages,s.block.id),[d?.chat_messages,s.block.id]),p=null!==m,f=!p&&a&&n?`${function(){if("undefined"==typeof window)return"";if("localhost"===window.location.hostname||"127.0.0.1"===window.location.hostname){const e="";return e?.startsWith("http")?e.replace(/^http/,"ws"):`${"https:"===window.location.protocol?"wss":"ws"}://${window.location.host}`}return""}()}/api/ws/organizations/${a}/phone-calls/${n}/monitor?tool_use_id=${encodeURIComponent(s.block.id)}`:null,[g,h]=e.useState(!1);e.useEffect(()=>{if(!g||p)return;u();const e=setInterval(u,3e3),t=setTimeout(()=>{h(!1)},9e4);return()=>{clearInterval(e),clearTimeout(t)}},[g,p,u]),e.useEffect(()=>{p&&h(!1)},[p]);const C=e.useCallback(e=>{aSe.has(e)||h(!0)},[]),x=rf(s.block);return c?t.jsxs(t.Fragment,{children:[t.jsx(Xje,{input:x,toolResult:s.toolResultBlock,renderMode:bme.TimelineGroup,isFirstBlockOfMessage:s.isFirstBlockOfMessage,isLastBlockOfMessage:s.isLastBlockOfMessage,isFirstItemInGroup:s.isFirstItemInGroup,isLastItemInGroup:s.isLastItemInGroup,isStreaming:s.effectiveIsStreaming,monitorUrl:r?null:f,onMonitorClosed:C,completionResult:m??void 0}),r&&(o?t.jsx(eje,{toolName:"Phone Call",rawToolName:s.block.name,input:x,approvalData:i,onCollapse:()=>l(!1)}):t.jsx("button",{type:"button",onClick:()=>l(!0),"aria-expanded":!1,className:"mx-2.5 mt-1 mb-2 px-3 py-2 rounded-xl border-[0.5px] border-border-300 bg-bg-000 hover:bg-bg-100 text-left text-sm text-text-300 transition-colors",children:"Approval needed to place call \u2014 click to review"}))]}):null}const dSe=e.memo(cSe);const uSe=e.createContext(null),mSe=uSe.Provider;const pSe=e.memo(function({block:s,index:n,toolResultBlock:a,isActioned:i,stopReason:r,isFirstBlockOfMessage:o,isLastBlockOfMessage:l,renderMode:c,isFirstItemInGroup:d,isLastItemInGroup:u,isInExpandedTimeline:m,isStreaming:p,isThisMessageStreaming:f}){const g=function(){const t=e.useContext(uSe);if(!t)throw new Error("useTimelineBlocksContext must be used within TimelineBlocksProvider");return t}(),h=JS(),C=Yje(),x=Gje(),v=y("cai_highland_harmonica"),b="local_session"===Me()?.type,k=bx()?"cowork":"chat",w="tool_use"===s.type?s:null,M=!!a,_=Qoe(g.conversationUuid,w?.name??"",w?.id??"",w?.approval_options,w?.approval_key,w?.buffered_input,M,g.onToolActioned),j=!!_?.approvalRequired&&!M&&!i&&f;Fue(j);const[S,L]=e.useState(!0),N=w&&"mcp_auth_required"in w?w.mcp_auth_required:void 0,[I,T]=e.useState(!1);Fue(!!N&&!I&&!M&&f);const A=w&&"mcp_elicitation"in w?w.mcp_elicitation:void 0;!function(t,s,n){const a=hx(e=>e.setCurrentRequest),i=hx(e=>e.clearCurrentRequest),r=hx(e=>e.currentRequest?.id),o=JS(),{addError:l}=ut(),c=Cx(),{serverName:d,serverUrl:u,iconUrl:m}=Ia(hT(e=>{const s=t?.server_id;return{serverName:s?e.remoteServers[s]?.name:void 0,serverUrl:s?e.remoteServers[s]?.url:void 0,iconUrl:s?e.remoteDirectories[s]?.iconUrl:void 0}})),p=t?.elicitation_id,f=t?.conversation_uuid,g=t?.trigger,h=t?.completed,C=t?.params,x=e.useMemo(()=>{if(!t)return null;const e="url"===t.params.mode,s=o.formatMessage({defaultMessage:"Connector",id:"r8XsCUEvou"}),n=s=>{c.mutateAsync({conversation_uuid:t.conversation_uuid,elicitation_id:t.elicitation_id,result:JSON.stringify(s)}).catch(e=>{l(o.formatMessage({defaultMessage:"Response couldn't be sent. You can try again.",id:"VHCpTGgB9x"}),{error:e,errorContext:{tags:{source:"mcp_elicitation_submit"}},messageForLogging:"MCP elicitation result POST failed."})}),e&&"accept"===s.action||i()};return{id:t.elicitation_id,serverId:t.server_id,serverName:d??s,...xx(m,u),request:{method:"elicitation/create",params:t.params},resolve:n,reject:()=>i(),isErrorRetry:"error_retry"===t.trigger,completed:t.completed,...e&&{onWaitingDismiss:e=>{"error_retry"===t.trigger&&n("cancel"===e?{action:"cancel"}:{action:"accept",content:{}}),i()}}}},[p,f,g,h,C,d,u,m]);e.useEffect(()=>{p&&x&&("url"!==x.request.params.mode&&s||(n&&a(x),s))&&s&&r===p&&i()},[p,x,s,n,a,i,r])}(A&&{elicitation_id:A.elicitation_id,tool_use_id:A.tool_use_id,server_id:A.server_id,params:A.params,conversation_uuid:A.conversation_uuid,trigger:A.trigger,completed:A.completed},M,f),Fue(!!A&&!A.completed&&!M&&f);const[E,R]=e.useState(null),D=e.useCallback(()=>R(null),[]),H=e.useCallback(()=>{T(!0)},[]),P=p||l&&f&&"max_tokens"===r&&"stop_timestamp"in s&&!!s.stop_timestamp,U=e.useMemo(()=>{const e={index:n,renderMode:c,isFirstItemInGroup:d,isLastItemInGroup:u,isLastBlockOfMessage:l,isThisMessageStreaming:f,isLastMessage:g.isLastMessage,rendererSurface:k,messageUuid:g.messageUuid,onLinkDetected:g.onLinkDetected,onCodeDetected:g.onCodeDetected,onOpenArtifact:g.onOpenArtifact,onLinkClick:g.onLinkClick};switch(s.type){case"thinking":return function(e,s,n,a){const{index:i,renderMode:r,isFirstItemInGroup:o,isLastItemInGroup:l,isLastBlockOfMessage:c,isThisMessageStreaming:d,onLinkDetected:u,onCodeDetected:m,onOpenArtifact:p,onLinkClick:f}=s,g=e.thinking??"",h=d&&(!e.stop_timestamp||c&&"max_tokens"===a),C=e=>{yye({event_key:"claudeai.thinking_cell.clicked",is_opening:e,is_streaming:h,trigger:"show_more",renderer_surface:s.rendererSurface??"chat"})};if("working"===e.alternative_display_type){const e=h&&c,s=t.jsx(joe,{text:g,onLinkDetected:u,onCodeDetected:m,className:e?"progressive-markdown":"standard-markdown",isStreaming:e,onOpenArtifact:p,onLinkClick:f,headingLevelOffset:1,typography:r===bme.TimelineGroup?"inherit":void 0});return r!==bme.TimelineGroup?s:t.jsx(kme,{isFirstItem:!!o,isLastItem:!!l,isActive:d&&c,showDotFallback:!0,children:t.jsx($me,{isStreaming:d,onExpandToggle:C,children:s})})}return t.jsx(Kme,{text:g,isStreaming:h,isFirstItemInGroup:o,isLastItemInGroup:l,headingLevelOffset:1,onExpandToggle:C},i)}(s,e,0,r);case"tool_use":{const e=nh(s.name),i={index:n,block:s,toolResultBlock:a,normalizedToolName:e,effectiveIsStreaming:P,isFirstBlockOfMessage:o,isLastBlockOfMessage:l,isFirstItemInGroup:d,isLastItemInGroup:u},r={...i,approvalData:_,isApprovalRequired:j,isApprovalExpanded:S,setIsApprovalExpanded:L,mcpAuthRequired:N,isMcpAuthComplete:I,onMcpAuthSuccess:H,orgUuid:g.orgUuid};if(N&&!I)return pje(r);if("web_search"===e)return aje(i);if("web_fetch"===e)return oje(i);if("recent_chats"===e||"conversation_search"===e||"project_knowledge_search"===e)return function(e){const{block:s,toolResultBlock:n,normalizedToolName:a,effectiveIsStreaming:i}=e,r="message"in s?s.message:void 0,o=n?.display_content,l=n?.message,c="rich_content"===o?.type&&o.content||[],d="project_knowledge_search"===a,u="recent_chats"===a||"conversation_search"===a?c.map(e=>{if(!e.title||!e.url)return null;const t=e.url.match(/\/chat\/([a-f0-9-]+)/);return t?{conversationUuid:t[1],title:e.title,url:e.url}:null}).filter(e=>null!==e):[],m=d?c.filter(e=>!!e.title):[],p=!!n,f=u.length>0||m.length>0?t.jsxs(t.Fragment,{children:[u.length>0&&t.jsx("div",{className:"pt-1",children:t.jsx(J_e,{results:u,disabled:i})}),m.length>0&&t.jsx("div",{className:"flex flex-col flex-nowrap p-2",children:m.map((e,s)=>t.jsx(Eq,{disabled:i,title:e.title,subtitles:e.subtitles,url:e.url,tag:e.resource_type},s))})]}):null;return t.jsx(Vme,{toolName:s.name,message:r,resultMessage:l,resultCount:c.length,renderMode:bme.TimelineGroup,isFirstBlockOfMessage:e.isFirstBlockOfMessage,isLastBlockOfMessage:e.isLastBlockOfMessage,isFirstItemInGroup:e.isFirstItemInGroup,isLastItemInGroup:e.isLastItemInGroup,isStreaming:i&&!p,children:f},e.index)}(i);if("task"===ix(s.name))return function(e,s){const{block:n,effectiveIsStreaming:a}=e,i=rf(n),r=!!e.toolResultBlock,o=s.filter(e=>"tool_use"===e.type);return t.jsx(qme,{description:i?.description,isStreaming:a,isComplete:r,renderMode:bme.TimelineGroup,isFirstBlockOfMessage:e.isFirstBlockOfMessage,isLastBlockOfMessage:e.isLastBlockOfMessage,isFirstItemInGroup:e.isFirstItemInGroup,isLastItemInGroup:e.isLastItemInGroup,subagentBlocks:o,renderSubagentBlock:(e,t,{isFirstItem:n,isLastItem:i})=>lje(e,{subagentBlocks:s,isStreaming:a&&!r,isFirstItem:n,isLastItem:i})},e.index)}(i,g.getSubagentBlocks(s.id));if("bash"===e||"bash_tool"===e)return function(e){const{block:s,toolResultBlock:n,effectiveIsStreaming:a}=e,i=rf(s);return t.jsx(jme,{input:i,toolResult:n,renderMode:bme.TimelineGroup,isFirstBlockOfMessage:e.isFirstBlockOfMessage,isLastBlockOfMessage:e.isLastBlockOfMessage,isFirstItemInGroup:e.isFirstItemInGroup,isLastItemInGroup:e.isLastItemInGroup,isStreaming:a,renderCode:(e,s)=>t.jsx(YH,{language:s?.language,code:e,title:s?.title,className:s?.isError?"!bg-danger-900":"!bg-bg-100",codeTagProps:s?.isError?{className:"text-danger-000"}:void 0})},e.index)}(i);if("launch_extended_search_task"===s.name)return function(e,s){return t.jsx(ex,{toolUseId:e.block.id,conversationUuid:s,toolResult:e.toolResultBlock,isStreaming:e.effectiveIsStreaming,context:e.block.context},e.index)}(i,g.conversationUuid);if("enterprise_analytics"===e&&C)return function(e){return t.jsx(tx,{input:rf(e.block),toolResult:e.toolResultBlock,isStreaming:e.effectiveIsStreaming,groupItemKey:String(e.index),isFirstBlockOfMessage:e.isFirstBlockOfMessage,isLastBlockOfMessage:e.isLastBlockOfMessage,isFirstItemInGroup:e.isFirstItemInGroup,isLastItemInGroup:e.isLastItemInGroup,renderMode:bme.TimelineGroup},e.index)}(i);if(x&&jL.has(e))return function(e){return t.jsx(sx,{toolName:e.block.name,toolResult:e.toolResultBlock,isStreaming:e.effectiveIsStreaming,isFirstBlockOfMessage:e.isFirstBlockOfMessage,isLastBlockOfMessage:e.isLastBlockOfMessage,isFirstItemInGroup:e.isFirstItemInGroup,isLastItemInGroup:e.isLastItemInGroup,renderMode:bme.TimelineGroup},e.index)}(i);if(function(e){return fje.has(e)}(e)||function(e,t){if("grep"!==e&&"glob"!==e)return!1;const s=t?.path;return!!s&&Kl(s)}(e,rf(s)))return function(e,s,n,a){const{block:i,toolResultBlock:r,normalizedToolName:o,effectiveIsStreaming:l}=e,c=rf(i),d=c?.file_path||c?.path||"",u=c?.content||c?.file_text||"",m=!a||a(d),p=m?()=>s(d,i.name):void 0,f=nx(d),g=Kl(d),h=g&&!/\.md$/i.test(d),C=g&&!h?ax(d):"";let x,v=c?.description;if(f&&["open_file","view"].includes(o)){x="skill";const e=d.split("/"),t=e.indexOf("skills"),s=e[t+1]||"";v=v||(l?`Loading ${s} skill`:`Loaded ${s} skill`)}else"create_file"===o||"write"===o?(x="create",g&&(v||=nje(n,"create",{streaming:l,isError:r?.is_error}))):["open_file","view","read","grep","glob"].includes(o)?(x="read",g&&(v||=nje(n,h?"search":"read",{streaming:l,isError:r?.is_error}))):x="edit";const y="skill"===x||"read"===x?!!r||!l:!!r;if("edit"===x){const s=Gl(d),a=Jg(d)?n.formatMessage({defaultMessage:"Global instructions",id:"53DiPrdI5r"}):n.formatMessage({defaultMessage:"Folder instructions",id:"dqW6sjmil4"}),i=g?C:"CLAUDE.md"===s?`${a} (CLAUDE.md)`:s,o=r?.is_error,u=v||(g?nje(n,"edit",{streaming:l,isError:o}):l?`Editing ${i}`:o?`Failed to edit ${i}`:`Edited ${i}`),f=c?.old_str?c.old_str.split("\n").length:0,h=c?.new_str?c.new_str.split("\n").length:0,x=(f>0||h>0)&&!o;return t.jsx(wme,{icon:g?t.jsx(ah,{size:16,className:"text-text-500"}):t.jsx(iR,{size:16,className:"text-text-500"}),text:t.jsx("span",{className:"truncate",children:u}),isStreaming:l&&!y,hideCaret:!0,handleClick:p,renderMode:bme.TimelineGroup,isFirstBlockOfMessage:e.isFirstBlockOfMessage,isLastBlockOfMessage:e.isLastBlockOfMessage,isFirstItemInGroup:e.isFirstItemInGroup,isLastItemInGroup:e.isLastItemInGroup,children:(s||x)&&t.jsxs("div",{className:"mx-2.5 mt-1 flex items-center gap-2",children:[s&&t.jsx("button",{onClick:p,disabled:!m,className:dt("flex items-center transition-colors text-text-500",m&&"cursor-pointer hover:text-text-200"),children:t.jsx(Mme,{color:"flat",size:"default",className:"!text-inherit",children:g?i:s})}),x&&t.jsxs("span",{className:"flex items-center gap-1.5 text-xs font-mono leading-none",children:[h>0&&t.jsx("span",{className:"text-forest-green",children:`+${h}`}),f>0&&t.jsx("span",{className:"text-danger-000",children:`-${f}`})]})]})},e.index)}return t.jsx(Ime,{action:x,path:d,fileText:u,displayText:v,displayFileName:C||void 0,icon:t.jsx("div",{className:"text-text-500",children:g?t.jsx(ah,{size:16}):t.jsx(hg,{path:d,size:16,weight:"light"})}),isStreaming:l,isComplete:y,renderMode:bme.TimelineGroup,isFirstBlockOfMessage:e.isFirstBlockOfMessage,isLastBlockOfMessage:e.isLastBlockOfMessage,isFirstItemInGroup:e.isFirstItemInGroup,isLastItemInGroup:e.isLastItemInGroup,handleClick:h?void 0:p,renderCode:(e,s)=>t.jsx("div",{className:"[&_pre]:!text-xs [&_code]:!text-xs",children:t.jsx(YH,{language:s,code:e,className:"!bg-bg-000"})})},e.index)}(i,g.onFileToolCellClick,h,g.canOpenFilePath);if(dje(s.name))return mje(i,g.shareType,g.onOpenMelangeModal);if("present_files"===e)return function(e){return gje(e,e.toolResultBlock?.message||(e.effectiveIsStreaming?"Presenting file(s)...":"Presented file(s)"),!!e.toolResultBlock||!e.effectiveIsStreaming)}(i);if("send_user_file"===e)return function(e){const t=!!e.toolResultBlock||!e.effectiveIsStreaming;return gje(e,e.toolResultBlock?.message||(t?"Presented file(s)":"Presenting file(s)..."),t)}(i);if("phone_use"===e)return v?g.shareType?function(e){return t.jsx(wme,{icon:t.jsx(XR,{size:16,className:"text-text-500"}),text:"Phone call",isStreaming:!1,hideCaret:!0,renderMode:bme.TimelineGroup,isFirstBlockOfMessage:e.isFirstBlockOfMessage,isLastBlockOfMessage:e.isLastBlockOfMessage,isFirstItemInGroup:e.isFirstItemInGroup,isLastItemInGroup:e.isLastItemInGroup},e.index)}(i):function(e,s,n,a,i,r,o){return t.jsx(dSe,{ctx:e,conversationUuid:s,orgUuid:n,approvalData:a,isApprovalRequired:i,isApprovalExpanded:r,setIsApprovalExpanded:o},e.index)}(i,g.conversationUuid,g.orgUuid,_,j,S,L):null;if("phone_call_completed"===e)return null;if(function(e){const t=e.toLowerCase().replace(/-/g,"_");return t.includes("claude_in_chrome")||t.includes("claude_for_chrome")}(s.name)){const e={...i,orgUuid:g.orgUuid,onThumbnailClick:()=>g.onBrowserExtensionThumbnailClick(s.id),onActionImageClick:R,intl:h};if(!g.shareType){const s=ame(function(e){const t=e?.content;return"string"==typeof t?t:"text"===t?.[0]?.type?t[0].text:"{}"}(a));if(s)return t.jsx(rme,{conversationUuid:g.conversationUuid,reason:s,fallback:Cje(e)},n)}return Cje(e)}if(s.name.startsWith("mcp__computer-use__")||s.name.startsWith("mcp__remote-devices__computer_")){const e=tI(eI(a),g.orgUuid);return Cje({...i,orgUuid:g.orgUuid,onThumbnailClick:e?()=>R(e):void 0,onActionImageClick:R,intl:h})}return pje(r)}case"text":case"connector_text":{const n={...e,conversationUuid:g.conversationUuid,shareType:g.shareType,presentFiles:g.getPresentFiles(),onOpenWiggleFile:g.onOpenWiggleFile,onDownloadAll:g.onDownloadAll};return function(e,s){const{index:n,renderMode:a,isFirstItemInGroup:i,isLastItemInGroup:r,isLastBlockOfMessage:o,isThisMessageStreaming:l,messageUuid:c,onLinkDetected:d,onCodeDetected:u,onOpenArtifact:m,onLinkClick:p,conversationUuid:f,shareType:g,presentFiles:h,onOpenWiggleFile:C,onDownloadAll:x}=s,v=e.text??"";if(0===n&&""===v)return;const y=l&&o,b=t.jsxs(t.Fragment,{children:[t.jsx(joe,{text:v,blockCitations:e.citations,messageUuid:c,onLinkDetected:d,onCodeDetected:u,className:y?"progressive-markdown":"standard-markdown",isStreaming:y,onOpenArtifact:m,onLinkClick:p,headingLevelOffset:1,typography:a===bme.TimelineGroup?"inherit":void 0}),t.jsx($de,{text:o?v:"",onOpen:C,conversationUuid:f,onDownloadAll:x,shareType:g,presentFiles:o?h:void 0,suppressFiles:h})]});return a!==bme.TimelineGroup?b:t.jsx(kme,{isFirstItem:!!i,isLastItem:!!r,isActive:l&&o,showDotFallback:!0,children:t.jsx($me,{isStreaming:l,children:b})})}("connector_text"===s.type?{text:s.connector_text}:s,n)}default:return null}},[s,n,a,P,r,o,l,d,u,m,f,c,h,C,x,v,b,k,_,j,S,I,N,H,g]),O=l&&!a;return t.jsxs(t.Fragment,{children:[U,"tool_use"===s.type&&(s.name.endsWith("__computer_batch")&&Array.isArray(s.input?.actions)?t.jsx(QH,{toolUseId:s.id,actions:s.input.actions}):s.name.endsWith("__browser_batch")&&Array.isArray(s.input?.actions)?t.jsx(QH,{toolUseId:s.id,actions:s.input.actions.map(e=>"computer"===e.name?{action:String(e.input?.action??"computer"),text:"string"==typeof e.input?.text?e.input.text:void 0,coordinate:Array.isArray(e.input?.coordinate)?e.input.coordinate:void 0}:{action:e.name,text:"string"==typeof e.input?.url?e.input.url:"string"==typeof e.input?.text?e.input.text:void 0})}):t.jsx(JH,{toolUseId:s.id,toolName:s.name})),t.jsx(Yue,{block:s,isLastBlock:O,isThisMessageStreaming:f}),E&&t.jsx(Rm,{items:[{id:E,url:E,alt:h.formatMessage({defaultMessage:"Screenshot preview",id:"F6kQr7iLnM"})}],initialIndex:0,onClose:D})]})});pSe.displayName="TimelineBlock";const fSe=e.memo(function({className:e,children:s}){return t.jsx("div",{className:dt("rounded-md border border-border-300 bg-bg-100 px-3 py-2 text-sm text-text-300",e),children:s})});function gSe(){const e=xe(),t=kx(),s=wx();return"full_egress"===(e?s:t)}function hSe({isTeamOrEnterprise:e,isFreeUser:s}){return t.jsxs("div",{className:"mx-2.5 mb-1.5 flex items-start gap-2 rounded-lg border-0.5 border-border-300 bg-bg-100 px-3 py-2 text-xs text-text-200",children:[t.jsx($L,{name:"Warning",customSize:14,className:"mt-0.5 shrink-0 text-text-300"}),t.jsx("span",{children:e?t.jsx(XS,{defaultMessage:"Access to this website is blocked by your organization's network egress settings. Ask your administrator to adjust egress settings to allow access to this site.",id:"XFOPvRf6jY"}):s?t.jsx(XS,{defaultMessage:"Access to this website is blocked by your network egress settings. You can enable package-manager access in <link>Settings</link>.",id:"ITNcvbNGOj",values:{link:e=>t.jsx(ct,{href:"/settings/capabilities",children:e})}}):t.jsx(XS,{defaultMessage:"Access to this website is blocked by your network egress settings. You can adjust this in <link>Settings</link>.",id:"qa7EPmt4I8",values:{link:e=>t.jsx(ct,{href:"/settings/capabilities",children:e})}})})]})}const CSe=e.memo(()=>{const e=xe(),s="free"===wn();return gSe()?null:t.jsx("div",{className:"mt-1",children:t.jsx(hSe,{isTeamOrEnterprise:e,isFreeUser:s})})});CSe.displayName="SegmentEgressBlockedHint";const xSe="cubic-bezier(0.34, 1.3, 0.5, 1)";function vSe({icon:s,index:n,entryDelay:a,exiting:i,rotate:r}){const o=Mx("(prefers-reduced-motion: reduce)"),[l,c]=e.useState(i);e.useEffect(()=>{if(o)return void c(!0);const e=setTimeout(()=>c(!0),a+20);return()=>clearTimeout(e)},[a,o]);const d=r?n%2?2.5:-2.5:0,u=i?"scale(0.7)":l?"translateY(0) rotate(0deg)":`translateY(-20px) rotate(${n%2?12:-12}deg)`;return t.jsx("div",{className:"relative motion-reduce:!transition-none",style:{transform:u,opacity:i||!l?0:1,transformOrigin:"center",transition:`transform 550ms ${xSe}, opacity 300ms ease, margin-left 300ms ${xSe}`,zIndex:n,marginLeft:0===n?0:i?-20:6},children:t.jsx("div",{className:"flex items-center justify-center bg-bg-000 motion-reduce:!transition-none",style:{width:28,height:28,borderRadius:7,boxShadow:"0 2px 6px rgba(15,12,8,0.1), 0 1px 2px rgba(15,12,8,0.06)",transform:`rotate(${d}deg)`,transition:"transform 300ms cubic-bezier(0.22, 1, 0.36, 1)"},children:s})})}function ySe(e){const t=Ha(e.name);if(t)return{serviceKey:`connector:${t.server.name}`,label:t.server.name,iconSrc:t.server.iconSrc,iconType:t.server.iconType};const s=function(e){if(e.startsWith("mcp__")){const t=e.slice(5),s=t.indexOf("__");return s>0?t.slice(0,s):t}const t=e.indexOf(":");if(t>0)return e.slice(0,t)}(e.name);if(s){return{serviceKey:`mcp:${s}`,label:(e.integration_name||s).replace(/_/g," "),iconSrc:e.integration_icon_url,iconType:"external"}}}function bSe(e){const s=e.iconSrc||e.serviceKey;if("syncSource"===e.iconType&&e.iconSrc)return t.jsx(Ls,{type:"syncSource",src:e.iconSrc,size:16,name:e.label},s);const n=e.iconType&&"syncSource"!==e.iconType?e.iconType:"external";return t.jsx(Ls,{type:n,src:e.iconSrc,size:16,name:e.label},s)}function kSe({blocks:s,turnIsOver:n,hidden:a=!1}){const i=function(t){Du();const s=Ia(e=>e.remoteTools),n=Ia(e=>e.localTools),a=Ia(e=>e.pluginBridgeTools),i=Ia(e=>e.remoteDirectories),r=e.useRef(new Map),o=e.useRef(s),l=e.useRef(n),c=e.useRef(a),d=e.useRef(i);s===o.current&&n===l.current&&a===c.current&&i===d.current||(o.current=s,l.current=n,c.current=a,d.current=i,r.current.clear());const u=r.current,m=new Map;let p=0;for(const e of t){if("tool_use"!==e.type){p=0;continue}let t=u.get(e.name);u.has(e.name)||(t=ySe(e),u.set(e.name,t)),t&&(m.has(t.serviceKey)||(m.set(t.serviceKey,{...t,entryDelay:60*p}),p+=1))}return Array.from(m.values())}(s),r=e.useRef(!1);n&&s.length>0&&(r.current=!0),0===s.length&&(r.current=!1);const o=n||r.current,l=o||a,c=Mx("(prefers-reduced-motion: reduce)"),[d,u]=e.useState(o);if(e.useEffect(()=>{if(!o)return void u(!1);if(c)return void u(!0);const e=setTimeout(()=>u(!0),300);return()=>clearTimeout(e)},[o,c]),0===i.length||d)return null;const m=l?0:28+34*(i.length-1);return t.jsx("div",{"aria-hidden":"true",className:"relative shrink-0 -my-1 motion-reduce:!transition-none",style:{width:m,height:28,marginRight:l?-8:0,transition:`width 300ms ${xSe}, margin-right 300ms ${xSe}`},children:t.jsx("div",{className:"absolute left-0 top-1/2 -translate-y-1/2 flex items-center",children:i.map((e,s)=>t.jsx(vSe,{icon:bSe(e),index:s,entryDelay:e.entryDelay,exiting:l,rotate:i.length>1},s))})})}const wSe={read:aU,view:aU,write:aU,edit:aU,delete_file:aU,glob:ih,grep:ih,memory:ih,auto_memory_read:ah,auto_memory_create:ah,auto_memory_edit:ah,bash:_x,tmux:_x,kill_bash:_x,web:oU,drive_search:oU,browser:oU,task:FP,skill:yU,other:yU,preview:qP,screenshot:qP,todo:dU,exit_plan_mode:dU,notebook_edit:ZP},MSe=at;const _Se=e.memo(function({data:e}){const{stepCount:s,thinkingCount:n,categories:a}=e;if(0===s)return null;const i=n>0||a.length>0;return t.jsxs("div",{className:"mr-3 flex items-center gap-4 text-xs text-text-500 shrink-0",children:[t.jsxs("div",{className:"inline-flex items-center gap-1","aria-hidden":!0,children:[t.jsx("span",{className:"inline-flex min-w-5 items-center justify-center rounded-full bg-bg-300 px-1.5 text-text-300 tabular-nums",children:s}),t.jsx(XS,{defaultMessage:"{count, plural, one {step} other {steps}}",id:"Ni2cO3zLTo",values:{count:s}})]}),i&&t.jsxs("div",{className:"flex items-center gap-4",children:[n>0&&t.jsxs("span",{className:"inline-flex items-center gap-1","aria-hidden":!0,children:[t.jsx(MSe,{size:12}),n]}),a.map(({category:e,count:s,label:n})=>{const a=wSe[e];return a?t.jsxs("span",{className:"inline-flex items-center gap-1",title:n,"aria-hidden":!0,children:[t.jsx(a,{size:12}),s]},e):null})]})]})});_Se.displayName="RichSummaryPrefix";const jSe=e.memo(function({srcs:s}){const n=JS(),a=e.useRef(null),[i,r]=e.useState(null),o=e.useCallback(()=>r(null),[]),l=n.formatMessage({defaultMessage:"Screenshot",id:"9a+SKtXKhe"}),c=e.useMemo(()=>s.map((e,t)=>({id:`${e}-${t}`,url:e,alt:l})),[s,l]);return 0===s.length?null:t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"relative h-16 w-40 shrink-0 overflow-hidden",children:[t.jsx("div",{ref:a,className:"scrollbar-none flex h-full snap-x snap-mandatory gap-1.5 overflow-x-auto",children:s.map((e,s)=>t.jsx("button",{type:"button",onClick:e=>{e.stopPropagation(),r(s)},"aria-label":l,className:"h-full shrink-0 cursor-zoom-in snap-center overflow-hidden rounded-md border border-border-300 focus:outline-none focus-visible:ring-2 focus-visible:ring-accent-100",children:t.jsx("img",{src:e,alt:"",onLoad:()=>{a.current&&(a.current.scrollLeft=a.current.scrollWidth)},className:"h-full w-auto object-cover"})},`${e}-${s}`))}),t.jsx("div",{className:"pointer-events-none absolute inset-y-0 left-0 w-4 bg-gradient-to-r from-bg-000 to-transparent"}),t.jsx("div",{className:"pointer-events-none absolute inset-y-0 right-0 w-4 bg-gradient-to-l from-bg-000 to-transparent"})]}),null!==i&&t.jsx(Rm,{items:c,initialIndex:i,onClose:o})]})});jSe.displayName="ScreenshotRow";const SSe="timeline-steps-drawer-slot",LSe=fT(e=>({activeSegmentKey:null,open:t=>e({activeSegmentKey:t}),close:()=>e({activeSegmentKey:null})}));const NSe=e.memo(function({store:s,timelineIndex:n,renderBlock:a,actionedToolIds:i,isToolAwaitingInput:r,setIsStatusDisplayVisible:o,renderCtxRef:l,showCompaction:c,effectiveCompactionStatus:d,compactionVisible:u,onCompactionVisibilityChange:m,showDoneIndicator:p=!0,getToolResult:f,showRichTimeline:g=!1,compactSummary:h=!1,showActiveToolSearchCards:C=!1,previewLiveSegment:x=!1,subagentBlocksByTaskId:v,orgUuid:b,suppressMinHeight:k=!1}){const w=JS(),M=function(t,s){const n=e.useCallback(e=>{const t=e.timelines[s];if(t)return{...t,isThisMessageStreaming:e.isThisMessageStreaming,currentStatus:e.currentStatus}},[s]);return kT(t,n,(e,t)=>e===t||!(!e||!t)&&e.blocks===t.blocks&&e.resolvedToolResultsKey===t.resolvedToolResultsKey&&e.statusText===t.statusText&&e.summaryType===t.summaryType&&e.timelineIndex===t.timelineIndex&&e.liveUpdates===t.liveUpdates&&e.pendingProseAfter===t.pendingProseAfter&&e.isFirst===t.isFirst&&e.isLastContent===t.isLastContent&&!!e.contentAfterSegment==!!t.contentAfterSegment&&e.isThisMessageStreaming===t.isThisMessageStreaming&&e.currentStatus===t.currentStatus)}(s,n),_=XH(),j=x,S=y("claude_ai_thinking_verbs"),L=y("claude_ai_tool_result_notices_disabled"),N=y("claudeai_timeline_activity_drawer")&&!l.current?.shareType,I=`${l.current?.message.uuid??""}:${n}`,T=LSe(e=>e.activeSegmentKey===I),A=LSe(e=>e.open),E=HN(),{isDrawerExpanded:R,setIsDrawerExpanded:D}=DN(),H=Dr(R),P=e.useCallback(()=>{LSe.getState().activeSegmentKey===I&&H.current?D(!1):(A(I),E({type:"SELECT_TIMELINE_STEPS"}),D(!0))},[I,H,A,E,D]),U="Thinking"===M?.statusText&&M?.liveUpdates&&M?.isThisMessageStreaming,O=Oue(S&&!!U),F=Vue(!!U),V=w.formatMessage({defaultMessage:"View steps",id:"NDWGF1wmej"}),z=!!M?.contentAfterSegment,Z=e.useMemo(()=>z?t.jsx(Fje,{store:s,timelineIndex:n,renderCtxRef:l}):void 0,[z,s,n,l]),B=M?.blocks,q=e.useMemo(()=>B?Rje(w,B,f):void 0,[w,B,f]),W=!M?.isThisMessageStreaming||!M?.liveUpdates,$=e.useMemo(()=>{if(!W||!B||!f)return;const{notices:e,hasEgressBlock:s}=function(e,t){const s=new Map;let n=!1;for(const a of e){if("tool_use"!==a.type)continue;const e=t(a.id);if(!n&&ije(e)&&(n=!0),Hme(a.name))for(const t of Dme(e))s.set(Rme(t),t)}return{notices:s.size>0?Array.from(s.values()):rje,hasEgressBlock:n}}(B,f),n=L?[]:e;return s||0!==n.length?t.jsxs(t.Fragment,{children:[t.jsx(Pme,{notices:n}),s&&t.jsx(CSe,{})]}):void 0},[W,B,f,L]),{collapsibleBlocks:G,trailingBlocks:K}=e.useMemo(()=>{const e=v&&B?function(e,t){const s=[];let n=[];const a=()=>{n.length>=2?s.push({type:"parallel_tasks",id:n[0].id,taskBlocks:n,subagentBlocksByTaskId:t}):1===n.length&&s.push(n[0]),n=[]};for(const i of e)Wje(i)?n.push(i):(a(),s.push(i));return a(),s}(B,v):B;if(!g||!W||!e?.length)return{collapsibleBlocks:e,trailingBlocks:void 0};const t="tool_use"===e[e.length-1].type?2:1;return{collapsibleBlocks:e.slice(0,-t),trailingBlocks:e.slice(-t)}},[B,g,W,v]),Y=e.useRef(G);Y.current=G;const Q=G?.reduce((e,t)=>e+(qje(t)?t.taskBlocks.length:1),0)??0,J=G?.at(-1),X=J?`${J.type}:${"id"in J?J.id:""}`:"",ee=g&&G&&f?Hje(G,e=>Dje(f(e))):"",te=e.useMemo(()=>{if(!g||0===Q||!f)return;const e=Y.current;return e?function(e,t,s,n){let a=0,i=0;const r=new Map;let o=0;const l=[];for(const d of e){if(qje(d)){const e=d.taskBlocks.length;a+=e,r.set("task",(r.get("task")??0)+e);continue}if("thinking"===d.type){i++,a++;continue}if("text"===d.type||"connector_text"===d.type)continue;if("tool_use"!==d.type)continue;a++;const e=xje(d);e?r.set(e,(r.get(e)??0)+1):o++;const n=t(d.id);if(n){const e=eI(n),t=tI(e,s);t&&l.push(t)}}const c=[];for(const[d,u]of r){const e=mx(n,d,u);e&&c.push({category:d,count:u,label:e})}return o>0&&c.push({category:"other",count:o,label:1===o?n.formatMessage({defaultMessage:"Used a tool",id:"BRG8o6gNdU"}):n.formatMessage({defaultMessage:"Used {count} tools",id:"JtrYJ8F4gT"},{count:o})}),c.sort((e,t)=>t.count-e.count),{stepCount:a,thinkingCount:i,categories:c.slice(0,3),screenshotSrcs:l.slice(-10)}}(e,f,b,w):void 0},[g,Q,X,ee,f,b,w]),se=e.useMemo(()=>te&&te.stepCount>0&&!h?t.jsx(_Se,{data:te}):void 0,[te,h]),ne=e.useMemo(()=>{if(!B||0===B.length)return;const e=B[B.length-1];if("tool_use"!==e?.type)return;if(f?.(e.id))return;const{hint:s}=V9(e.name,e.input,w);return s?t.jsx(fSe,{className:"ml-2 mr-2",children:s}):void 0},[B,f,w]),ae=e.useMemo(()=>te&&te.screenshotSrcs.length>0?t.jsx(jSe,{srcs:te.screenshotSrcs}):void 0,[te]),ie=G?.length??0,re=e.useMemo(()=>{if(K)return t.jsx(t.Fragment,{children:K.map((s,n)=>{const i=a(s,ie+n,{isFirstItem:0===n,isLastItem:n===K.length-1,isInExpandedTimeline:!1,isTimelineExpanded:!0,standalone:"text"===s.type||"connector_text"===s.type}),r=`trail-${ie+n}`;return"parallel_tasks"!==s.type&&Yoe(s.type)?t.jsx(e.Fragment,{children:i},r):t.jsx("div",{"data-find-omitted":"",className:"contents",children:i},r)})})},[K,ie,a]),oe=e.useMemo(()=>e=>!qje(e)&&r(e),[r]),le=!!M?.isThisMessageStreaming,ce=bx()?"cowork":"chat",de=e.useCallback(e=>{const t=(B??[]).filter(e=>"thinking"===e.type).length;0!==t&&yye({event_key:"claudeai.thinking_cell.clicked",is_opening:e,is_streaming:le,trigger:"timeline_pill",thinking_block_count:t,renderer_surface:ce})},[B,le,ce]);if(!M)return null;if(K&&!G?.length)return t.jsxs("div",{className:M.isFirst?"min-w-0":"mt-4 min-w-0",children:[re,$&&t.jsx("div",{"data-find-omitted":"",className:"contents",children:$}),Z]});const{statusText:ue,summaryType:me,liveUpdates:pe,pendingProseAfter:fe,isFirst:ge,isThisMessageStreaming:he,currentStatus:Ce}=M,xe=S&&pe&&he&&"Thinking"===ue?O:ue,ve=G??M.blocks,ye=pe&&!fe?xe||Ce:void 0,be=h&&g?te?.stepCount:void 0;let ke;var we;void 0!==be&&be>0?(we=be,ke=w.formatMessage({defaultMessage:"Expand {count, plural, one {# step} other {# steps}}",id:"baphi06K/h"},{count:we})):ke=se?V:pe&&he?j?q??V:xe??Ce:me?xe:q??V;const Me=ge&&pe&&c,_e=Me?t.jsx(Lme,{status:d,isFirstItemInGroup:0===ve.length,isLastItemInGroup:!0,onVisibilityChange:m}):void 0,je=x?pe:ge,Se=C?({isTimelineExpanded:e,showExpandedTimeline:s})=>t.jsx(kSe,{blocks:M.blocks,turnIsOver:W,hidden:e||s&&je}):void 0;return t.jsx(tpe,{className:ge?void 0:"mt-4",blocks:ve,isStreaming:he&&pe,turnIsOver:W,showSpark:ge&&!j,suppressWorkingStatus:j,showDoneIndicator:p,maxVisibleTools:je?3:0,forceExpanded:_,renderBlock:a,statusPillClassName:"pl-2 py-[var(--msg-pill-py,0.375rem)]",timelineClassName:"pl-2",statusText:ye,shimmerPaused:F,stepsDisplayText:ke,onStatusDisplayVisibilityChange:ge&&!j&&he?o:void 0,actionedToolIds:i,isToolAwaitingInput:oe,onTimelineToggle:de,onToggleOverride:N?P:void 0,expandedBodyPortalTarget:T&&R?SSe:void 0,suppressLivePreview:N,childrenAfterTimeline:Z,trailingContent:_e,hasVisibleTrailingContent:!!Me&&u,statusPillPrefix:se,statusPillSummarySuffix:ae,statusPillStatusPrefix:Se,streamingMinHeight:g&&!k?120:void 0,alwaysVisibleTrailing:re,groupFooter:$,workingHint:ne,workingStatusPosition:g?"below-pill":"in-pill",caretPosition:h&&g?"leading-chip":void 0})});NSe.displayName="TimelineSegmentView";const ISe=new Set;function TSe(t,s,n){const a=e.useMemo(()=>function(e){const t=e.find(e=>"tool_use"===e.type&&(e.name===cx.AskUserInputV0||e.name===cx.AskUserFreeFormInputV0));if("tool_use"!==t?.type)return null;const s=t.name===cx.AskUserFreeFormInputV0,n=t.input,a=n?.questions;return Array.isArray(a)&&a.length?s?a.map(e=>({...e,type:"free_form"})):a:null}(t),[t]);e.useLayoutEffect(()=>{if(!s||!a)return void n(null);const e=a.filter(e=>"free_form"===e.type?e.question:e.question&&e.options?.length).map((e,t)=>({id:`question-${t}`,type:e.type||"single_select",question:e.question,options:(Array.isArray(e.options)?e.options:[]).filter(e=>"string"==typeof e&&e.length>0).map((e,s)=>({id:`option-${t}-${s}`,label:e})),placeholder:e.placeholder,multiline:e.multiline})).filter(e=>"free_form"===e.type||e.options.length>=2);n(e.length>0?{questions:e}:null)},[a,s,n])}const ASe=new Map;const ESe=e.memo(function({blocks:s,isStreaming:n,isThisMessageStreaming:a,isLastMessage:i,isLastAssistantMessage:r,updatedMessage:o,message:l,onResize:c,conversationUuid:d,shareType:u,onOpenArtifact:p,onOpenWiggleFile:f,compactionStatus:g,onRetry:h}){const C=JS(),{setData:x}=uO(),{setData:b,setOnSubmit:k,setOnDismiss:w}=e.useContext(I9),{toolPermissionRequests:M,onToolDecision:_,mcqAnswers:j}=vn(),S=jx(),L=_s(),N=y("dramatic_shrimp_cobalt"),I=y("__gb__3627505652"),T=y("claudeai_jade_aperture"),A=Bo(),E=Sx(d),R=g??E??null,D=Rae(),H=V$(e=>e.setMessageFeatures),P="local_session"===Me()?.type;xs("ant-rich-timeline",!1);const U=!1;xs("ant-rich-timeline-chips",!1);const O=!P,F=y("cowork_parallel_task_cards_main"),V=P&&F,[z]=xs("ant-timeline-synthetic-collapsible",!1),Z=y("claudeai_text_block_collapsible")?jje:void 0,B=function(t){const s=Il(()=>null,null),[n]=xs("ant-timeline-replay-streaming",null);return e.useMemo(()=>{if(!s||!t)return null;try{const e=JSON.parse(s);return Array.isArray(e.blocks)?{blocks:e.blocks,isThisMessageStreaming:n??!!e.isThisMessageStreaming}:null}catch{return null}},[s,n,t])}(i),q=B?.blocks??s,W=B?.isThisMessageStreaming??a,{addError:$}=ut(),{activeOrganization:G}=v(),K=HN(),{setIsDrawerExpanded:Y}=DN(),Q=Ug(),J=aoe(),X=tf(),ee=m(),te=poe(),se=Gg(),ne="ready"===se.state?se.result?.remoteToolsDeviceName:void 0,ae=e.useMemo(()=>ooe(ee,ne,!!u),[ee,ne,u]),ie=eoe(),re=!(u||ie.shouldHide||ie.disabled||ie.isModelIncompatible||ie.checked),oe=e.useCallback(e=>!(!S||"tool_use"!==e.type)&&!!e.is_mcp_app,[S]),le=e.useCallback(e=>{if("tool_use"!==e.type)return!1;if(wje(e))return!1;const t=Ha(e.name);return!(!t?.tool||!t?.server)&&((!ke.current.mcpRemoteGated||"remote"!==t.server.type)&&ke.current.getToolApprovalState(t.server,t.tool).approvalRequired)},[]),ce=e.useMemo(()=>q.filter(e=>"process_group_marker"!==e.type&&!("_isSubagentBlock"in e&&e._isSubagentBlock)),[q,z]),de=woe(l),ue=e.useMemo(()=>koe(l),[de]);TSe(q,i,x),function(t,s,n,a,i,r,o,l){const c=e.useMemo(()=>{const e=n?.find(e=>"AskUserQuestion"===e.toolName);if(!e)return null;const s=t.find(t=>"tool_use"===t.type&&"AskUserQuestion"===t.name&&t.id===e.toolUseId);if(t.some(t=>"tool_result"===t.type&&"tool_use_id"in t&&t.tool_use_id===e.toolUseId))return null;const a="tool_use"===s?.type?s.input:e.input,r="tool_use"===s?.type?s.id:e.toolUseId;return a&&Array.isArray(a.questions)&&a.questions.length?{input:a,blockId:r,requestId:e.toolUseId,persistedAnswers:i?.[r]}:null},[t,n,i]);e.useLayoutEffect(()=>{if(!s||!c||!a)return r(null),o(null),void l(null);r(c),o((e,t,s)=>{if(!t.questions)return;const n="string"==typeof e?{questions:t.questions,response:e}:{questions:t.questions,answers:e};a(c.requestId,s,n,"once")}),l(e=>{a(c.requestId,e,{},"deny")})},[c,s,a,r,o,l])}(q,r,M,_,j,b,k,w);const me=e.useMemo(()=>Tje(ce,oe,{credentialStubChip:ee&&!u,researchSuggestionChip:re,isArtifactChipBlock:ae,joinTextPolicy:Z,isStreaming:W}),[ce,oe,U,N,I,T,u,ee,re,ae,Z,W]),pe=e.useRef(new Map),fe=e.useMemo(()=>{const e=new Map,t=pe.current;for(const s of q)if("tool_result"===s.type&&"tool_use_id"in s){const n=s,a=t.get(n.tool_use_id);a&&a.tool_use_id===n.tool_use_id&&a.is_error===n.is_error?e.set(n.tool_use_id,a):e.set(n.tool_use_id,n)}return pe.current=e,e},[q]),ge=e.useCallback(e=>Dje(fe.get(e)),[fe]),he=e.useRef(new Map),Ce=e.useRef(new Map),xe=e.useRef(new Map),ve=e.useMemo(()=>{const e=he.current,t=Ce.current,s=xe.current,n=new Map,a=new Map,i=new Map,r=me.map((r,o)=>{if("timeline"===r.type){const t=Hje(r.blocks,ge),a=s.get(r.timelineIndex)!==t;i.set(r.timelineIndex,t);const o=e.get(r.timelineIndex);if(o&&o.length===r.blocks.length){let e=!0;const t=r.blocks.map((t,s)=>t===o[s]||"thinking"===t.type&&"thinking"===o[s].type&&t.thinking===o[s].thinking&&t.stop_timestamp===o[s].stop_timestamp||"text"===t.type&&"text"===o[s].type&&t.text===o[s].text&&t.voice_spoken_chars===o[s].voice_spoken_chars||"connector_text"===t.type&&"connector_text"===o[s].type&&t.connector_text===o[s].connector_text?o[s]:(e=!1,t));if(e){const e=a?[...o]:o;return n.set(r.timelineIndex,e),{...r,blocks:e}}return n.set(r.timelineIndex,t),{...r,blocks:t}}return n.set(r.timelineIndex,r.blocks),r}const l=t.get(o);return l&&function(e,t){if(e.length!==t.length)return!1;for(let s=0;s<e.length;s++)if(e[s]!==t[s]){if("text"===e[s].type&&"text"===t[s].type){const n=e[s],a=t[s];if(n.text===a.text&&n.collapsible===a.collapsible&&n.disposition===a.disposition&&n.stopped===a.stopped&&n.voice_spoken_chars===a.voice_spoken_chars)continue;return!1}if("connector_text"!==e[s].type||"connector_text"!==t[s].type||e[s].connector_text!==t[s].connector_text)return!1}return!0}(l,r.blocks)?(a.set(o,l),{...r,blocks:l}):(a.set(o,r.blocks),r)});return he.current=n,Ce.current=a,xe.current=i,r},[me,ge]),ye=e.useMemo(()=>function(e,t=Eje,s=!1){const n=e.length,a=Array.from({length:n+1}).fill(!1),i=Array.from({length:n+1}).fill(!1),r=Array.from({length:n+1}).fill(!1),o=Array.from({length:n}).fill(!1),l=Array.from({length:n}).fill(!1);for(let u=n-1;u>=0;u--){const n=e[u];o[u]="content"===n.type&&Aje(n,t),l[u]=o[u]&&!(s&&"content"===n.type&&n.pendingFold),a[u]=a[u+1]||"content"===n.type,r[u]=r[u+1]||"content"===n.type&&n.blocks.some(vje),i[u]=i[u+1]||l[u]}const c=[];let d=!0;for(let u=0;u<n;u++){const t=e[u];if("timeline"===t.type){const l=!i[u+1];let m,p,f,g;o[u+1]&&(u++,m=e[u],p=u,f=r[u+1],g=u===n-1&&!m.hasBlockMergedAfter);const h=l&&s&&!!m?.pendingFold;c.push({kind:"timeline",segment:t,contentAfter:m,contentAfterIdx:p,contentHasTextAfter:f,contentAfterIsTrailing:g,isFirst:d,liveUpdates:l,pendingProseAfter:h,isLastContent:!a[u+1]}),d=!1}else c.push({kind:"content",segment:t,idx:u,isLastContent:!a[u+1],hasTextAfter:r[u+1],isTrailingSegment:u===n-1&&!t.hasBlockMergedAfter}),d=!1}return c}(ve,oe,W),[ve,oe,W]),be=Oje(),ke=e.useRef({blocks:q,isStreaming:n,isThisMessageStreaming:W,updatedMessage:o,message:l,presentFiles:ue,onOpenArtifact:p,onOpenWiggleFile:f,activeOrganization:G,addError:$,conversationUuid:d,dispatchChatResource:K,intl:C,isClaudeApp:ee,openDesignLink:te,isLocalAgentRoute:P,setIsDrawerExpanded:Y,setAgentSidebarExpanded:Q,setMessageFeatures:H,downloadMultipleWiggleFiles:J,shareType:u,mcpRemoteGated:L,getToolApprovalState:A,dramaticShrimpCobalt:N,designEmbedPane:T});ke.current={blocks:q,isStreaming:n,isThisMessageStreaming:W,updatedMessage:o,message:l,presentFiles:ue,onOpenArtifact:p,onOpenWiggleFile:f,activeOrganization:G,addError:$,conversationUuid:d,dispatchChatResource:K,intl:C,isClaudeApp:ee,openDesignLink:te,isLocalAgentRoute:P,setIsDrawerExpanded:Y,setAgentSidebarExpanded:Q,setMessageFeatures:H,downloadMultipleWiggleFiles:J,shareType:u,mcpRemoteGated:L,getToolApprovalState:A,dramaticShrimpCobalt:N,designEmbedPane:T};const we=Lx();e.useEffect(()=>{let e=!1;for(const t of q){if("tool_use"!==t.type||"memory_write"!==t.name&&"memory_delete"!==t.name||ISe.has(t.id))continue;const s=fe.get(t.id);s&&!s.is_error&&(ISe.size>=1e3&&ISe.clear(),ISe.add(t.id),e=!0)}e&&we()},[q,fe,we]),e.useEffect(()=>{for(const e of q){if("tool_use"!==e.type)continue;if(!e.id||!e.buffered_input)continue;if(fe.has(e.id))continue;if(wje(e))continue;const t=Ha(e.name);if(t?.tool&&t?.server){if(ke.current.mcpRemoteGated&&"remote"===t.server.type)continue;if(ke.current.getToolApprovalState(t.server,t.tool).approvalRequired)continue}X(d,e.name,e.id,e.buffered_input)}},[q,fe,d,X]);const _e=e.useMemo(()=>{const e=new Map;return q.forEach((t,s)=>e.set(t,s)),e},[q]),je=e.useRef(_e);je.current=_e;const[Se,Le]=e.useState(new Set),Ne=e.useRef(Se);Ne.current=Se;const Ie=e.useCallback(e=>Le(t=>new Set(t).add(e)),[]),[Te,Ae]=e.useState(!1),Ee=e.useCallback(e=>Ae(e),[]),Re=e.useCallback(e=>ke.current.onOpenArtifact?.(e,ke.current.updatedMessage.uuid),[]),De=_t(),He=e.useRef(De);He.current=De;const Pe=e.useCallback(e=>{"melange"===new URLSearchParams(window.location.search).get("modal")||(window.history.pushState(window.history.state,"",window.location.href),function(e,t){Hre={path:e?Rre(e):void 0,sentinelPushed:t}}(e,!0)),He.current("modal","melange")},[]),Ue=e.useCallback(()=>{ke.current.setMessageFeatures(ke.current.message.uuid,{hasLink:!0})},[]),Oe=e.useCallback(()=>{ke.current.setMessageFeatures(ke.current.message.uuid,{hasCode:!0})},[]),Fe=e.useCallback(e=>{ke.current.dispatchChatResource({type:"SELECT_BROWSER_EXTENSION",highlightId:e}),ke.current.setIsDrawerExpanded(!0),ke.current.setAgentSidebarExpanded(!0)},[]),Ve=e.useCallback((e,t)=>{const s=ke.current;if(s.isClaudeApp){const n=xoe(t);if(n)return e.preventDefault(),void window.location.assign(n);const a=yoe(t);if(a)return e.preventDefault(),void s.openDesignLink(a)}if(!t.startsWith("computer://")||!s.activeOrganization?.uuid)return;e.preventDefault();const n=t.replace("computer://","");if(s.isLocalAgentRoute&&!ga(s.conversationUuid))return void Ju?.openLocalFile?.(s.conversationUuid,n).catch(e=>{s.addError(Ere(e,s.intl,"open"),{error:e,messageForLogging:"Failed to open file from link"})});let a=n;try{a=decodeURIComponent(n)}catch{}s.dispatchChatResource({type:"SELECT_FILE",path:a,toolType:"create_file",messageId:s.updatedMessage.uuid,entryPoint:"timeline_computer_link"}),s.setIsDrawerExpanded(!0)},[]),ze=hoe(),Ze=e.useCallback((e,t)=>{const s=ke.current;e&&s.updatedMessage.uuid&&(!s.isLocalAgentRoute||ga(s.conversationUuid)||Kl(e)?(s.dispatchChatResource({type:"SELECT_FILE",path:e,toolType:t,messageId:s.updatedMessage.uuid,entryPoint:"timeline_tool_pill"}),s.setIsDrawerExpanded(!0)):Ju?.openLocalFile?.(s.conversationUuid,encodeURIComponent(e)).catch(e=>{s.addError(Ere(e,s.intl,"open"),{error:e,messageForLogging:"Failed to open file from tool cell"})}))},[]),Be=e.useCallback((e,t,s)=>{ke.current.onOpenWiggleFile?.(e,ke.current.message.uuid,t,s)},[]),qe=e.useCallback(e=>{const t=ke.current;t.activeOrganization?.uuid&&t.downloadMultipleWiggleFiles(t.shareType?{filepaths:e,orgUuid:t.activeOrganization.uuid,snapshotUuid:t.conversationUuid,isShared:!0,source:"wiggle_file_card_download_all"}:{filepaths:e,orgUuid:t.activeOrganization.uuid,conversationUuid:t.conversationUuid,isShared:!1,source:"wiggle_file_card_download_all"})},[]),We=e.useCallback(e=>ke.current.blocks.filter(t=>"_parentToolUseId"in t&&t._parentToolUseId===e),[]),$e=e.useRef(ASe),Ge=e.useMemo(()=>V?function(e,t){const s=new Map;for(const n of e){const e="_parentToolUseId"in n?n._parentToolUseId:void 0;if(!e)continue;const t=s.get(e);t?t.push(n):s.set(e,[n])}if(t)for(const[n,a]of s){const e=t.get(n);e&&e.length===a.length&&e.at(-1)===a.at(-1)&&s.set(n,e)}return s}(q,$e.current):ASe,[q,V]);$e.current=Ge;const Ke=e.useCallback(()=>ke.current.presentFiles,[]),Ye=e.useRef(fe);Ye.current=fe;const Qe=e.useCallback(e=>Ye.current.get(e),[]),Je=e.useMemo(()=>({onOpenArtifact:Re,onLinkDetected:Ue,onCodeDetected:Oe,onLinkClick:Ve,onFileToolCellClick:Ze,canOpenFilePath:ze,onBrowserExtensionThumbnailClick:Fe,onOpenWiggleFile:Be,onDownloadAll:qe,onToolActioned:Ie,onOpenMelangeModal:Pe,conversationUuid:d,messageUuid:l.uuid,shareType:u,isLastMessage:i,orgUuid:G?.uuid,getToolResult:Qe,getSubagentBlocks:We,getPresentFiles:Ke}),[Re,Ue,Oe,Ve,Ze,ze,Fe,Be,qe,Ie,Pe,d,l.uuid,u,i,G?.uuid,Qe,We,Ke]),Xe=e.useRef(new Map),et=e.useCallback((e,s,{isFirstItem:n,isLastItem:a,isInExpandedTimeline:i,standalone:r})=>{if(qje(e))return t.jsx(Bje,{taskBlocks:e.taskBlocks,subagentBlocksByTaskId:e.subagentBlocksByTaskId,getToolResult:Qe,isThisMessageStreaming:ke.current.isThisMessageStreaming,isFirstItemInGroup:n,isLastItemInGroup:a});if("synthetic_working"===e.type)return null;const o=je.current.get(e)??s,l="tool_use"===e.type?Ye.current.get(e.id):void 0,c=!("tool_use"!==e.type||!e.id)&&Ne.current.has(e.id),d="tool_use"===e.type&&("launch_extended_search_task"===e.name||"mcp_auth_required"in e||Da(e.name)||wje(e)||Wje(e)),u=!!l,m=!u&&(d||i);let p=e;if("tool_use"===e.type&&e.id&&u){const t=Xe.current.get(e.id);t&&function(e,t){const s=e,n=t;return s.stop_timestamp===n.stop_timestamp&&"mcp_auth_required"in e=="mcp_auth_required"in t}(t,e)?p=t:Xe.current.set(e.id,e)}const f=ke.current.blocks,g=f[o+1],h="tool_result"===g?.type,C=f.length>0&&o===f.length-1-(h?1:0);return t.jsx(pSe,{block:p,index:o,toolResultBlock:l,isActioned:c,stopReason:ke.current.updatedMessage?.stop_reason,isFirstBlockOfMessage:0===o,isLastBlockOfMessage:C,renderMode:r?bL.Standard:bL.TimelineGroup,isFirstItemInGroup:n,isLastItemInGroup:a,isInExpandedTimeline:i,isStreaming:!!m&&ke.current.isStreaming,isThisMessageStreaming:!!m&&ke.current.isThisMessageStreaming})},[Qe]),tt=C.formatMessage({defaultMessage:"Working",id:"gAR0atqpRn"}),st=!(!i||!R||"compacting"!==R&&"complete"!==R),nt=function(e,t,s,n){const a=[];for(const i of e){if("timeline"!==i.kind)continue;const e=i;a.push({resolvedToolResultsKey:Hje(e.segment.blocks,n),blocks:e.segment.blocks,statusText:e.segment.statusText,summaryType:e.segment.summaryType,timelineIndex:e.segment.timelineIndex,liveUpdates:e.liveUpdates,pendingProseAfter:e.pendingProseAfter,isFirst:e.isFirst,isLastContent:e.isLastContent,contentAfterSegment:e.contentAfter,contentAfterIdx:e.contentAfterIdx,contentHasTextAfter:e.contentHasTextAfter??!1,contentAfterIsTrailing:e.contentAfterIsTrailing??!1})}return{timelines:a,isThisMessageStreaming:t,currentStatus:s}}(ye,W,W?tt:void 0,ge),at=e.useRef(null);null===at.current&&(at.current=nt,be.setState(nt)),e.useLayoutEffect(()=>{at.current&&function(e,t){if(e===t)return!0;if(e.isThisMessageStreaming!==t.isThisMessageStreaming||e.currentStatus!==t.currentStatus||e.timelines.length!==t.timelines.length)return!1;for(let s=0;s<e.timelines.length;s++)if(!Uje(e.timelines[s],t.timelines[s]))return!1;return!0}(at.current,nt)||(at.current=nt,be.setState(nt))},[nt,be]);const it=e.useRef(null);it.current={isStreaming:n,isLastMessage:i,updatedMessage:o,message:l,onResize:c,conversationUuid:d,shareType:u,onOpenArtifact:p,onOpenWiggleFile:f,mcqAnswers:j,isMcpAppTool:oe};const rt=o?.stop_reason,ot=ye[ye.length-1],lt=ye[ye.length-2],ct="timeline"!==ot?.kind||ot.contentAfter?.blocks.some(vje)?"content"!==ot?.kind||ot.segment.blocks.some(vje)||"timeline"!==lt?.kind||lt.contentAfter?.blocks.some(vje)?void 0:lt:ot,dt=!W&&!P&&"user_canceled"===rt,mt=!n&&!W&&!P&&!rt&&void 0!==ct,pt=Nx(d,o?.uuid,{enabled:dt||mt}),ft=Ix(o?.uuid,{enabled:mt}),gt=dt||mt,ht=ct?.segment.timelineIndex??-1,Ct=B?`Timeline replay active \u2014 isThisMessageStreaming=${String(B.isThisMessageStreaming)}, blocks=${B.blocks.length}. Clear via Developer options.`:null;return t.jsxs(mSe,{value:Je,children:[Ct&&t.jsx("div",{"data-find-omitted":"",className:"mb-2 rounded-md border border-warning-200 bg-warning-000 px-3 py-1.5 font-mono text-xs text-warning-100",children:Ct}),ye.map((e,s)=>{if("timeline"===e.kind){const n=e.segment.timelineIndex===ht,a="content"===ye[s+1]?.kind;return t.jsx(NSe,{store:be,timelineIndex:e.segment.timelineIndex,renderBlock:et,actionedToolIds:Se,isToolAwaitingInput:le,setIsStatusDisplayVisible:D,renderCtxRef:it,showCompaction:st,effectiveCompactionStatus:R,compactionVisible:Te,onCompactionVisibilityChange:Ee,showDoneIndicator:!(n&&gt),getToolResult:Qe,showRichTimeline:U,compactSummary:false,showActiveToolSearchCards:O,previewLiveSegment:P,subagentBlocksByTaskId:V?Ge:void 0,orgUuid:G?.uuid,suppressMinHeight:!!M?.length||a},`timeline-${e.segment.timelineIndex}`)}return t.jsx(Vje,{blocks:e.segment.blocks,isLastContent:e.isLastContent,hasTextAfter:e.hasTextAfter,isTrailingSegment:e.isTrailingSegment,isThisMessageStreaming:W,renderCtxRef:it},`content-${e.idx}`)}),gt&&!pt&&t.jsx(soe,{variant:dt||ft?"user_canceled":"no_stop_reason",conversationUuid:d,onRetry:h})]})});ESe.displayName="TimelineBlocks";const RSe={height:"auto"},DSe=[];const HSe=e.memo(function({isStreaming:s,isThisMessageStreaming:n,isLastMessage:a,isLastAssistantMessage:i,updatedMessage:r,onResize:o,previousMessage:l,message:c,isInteractive:d,onRetry:u,isResearchPending:m,isTemporary:p,conversationSettings:f,messageWarningPropsFromParent:g,onSendContinue:h,onOpenArtifact:C,shareType:x,onOpenWiggleFile:v,isFullscreenMessage:y,isConversationStreaming:b,...k}){const w=Me(),{markPerceivedFirstToken:M}=Ih(),{conversationUuid:_}=vn(),j=e.useRef(function(e,t=!0){return Eae(s=>t&&void 0!==e&&s.answerNowLinkInlineConversation===e)}(_,n)).current,S=r.parent_message_uuid??void 0,L=e.useCallback(()=>u(S),[u,S]),N=e.useRef(null);e.useLayoutEffect(()=>{if(!a||N.current===r.uuid||!n)return;const e=(r.content||[]).find(e=>"text"===e.type?e.text&&e.text.trim().length>0:"thinking"===e.type||"tool_use"===e.type&&("name"in e&&e.name));e&&(N.current=r.uuid,M({firstContentType:e.type,conversationUuid:k.conversationUuid}))},[a,n,r.content,r.uuid,k.conversationUuid,M]);const I=!!e.useContext(gd).hideHeader&&1===r.content?.length&&"tool_use"===r.content[0]?.type&&"orbit_insight"===r.content[0]?.name,T=e.useMemo(()=>Tx(r),[r]),A=e.useMemo(()=>T?{task_id:T}:void 0,[T]),E=e.useMemo(()=>{if(n)return null;return Qae(Yae(r.content))||null},[n,r.content]),R=uN(),D=mN(40);if(!(r.content&&r.content[0]||r.metadata?.is_resume_completion_placeholder_message))return null;const H=t.jsxs(Gae,{"data-is-streaming":n,...s&&!j?Zae:zae,className:dt("relative","pb-[var(--msg-assistant-pb,0.75rem)]",y&&"z-modal"),style:R&&y?{zIndex:D}:void 0,children:[E&&t.jsx("h2",{"data-find-omitted":"",className:"sr-only select-none",children:t.jsx(XS,{defaultMessage:"Claude responded: {summary}",id:"csr9dd5Yrj",values:{summary:E}})}),t.jsx(Kae,{children:t.jsx(ESe,{blocks:r.content??DSe,isStreaming:s,isThisMessageStreaming:n,isLastMessage:a,isLastAssistantMessage:i,updatedMessage:r,isResearchPending:m,message:c,onResize:o,conversationUuid:k.conversationUuid,shareType:x,onOpenWiggleFile:v,onOpenArtifact:C,onRetry:d?L:void 0})}),r.content?.map((e,s)=>{if("bell"===e.type||"voice_note"===e.type)return t.jsx("div",{"data-find-omitted":"",className:"contents",children:t.jsx(Ire,{text:e.text,title:e.title})},s)}),t.jsxs(t.Fragment,{children:[!s&&a&&t.jsx(Lre,{previousMessage:l}),!1,t.jsx(Vae,{message:c,isLastMessage:a,conversationUuid:k.conversationUuid,messageWarningPropsFromParent:g,conversationSettings:f,onRetry:u,onSendContinue:h}),t.jsx(Ax,{message:c,conversationUuid:k.conversationUuid,isStreaming:n}),t.jsx(gre,{message:c,conversationUuid:k.conversationUuid,isStreaming:n}),t.jsx(mre,{message:c,conversationUuid:k.conversationUuid,isStreaming:n}),t.jsx(yre,{apiMessageIds:c.apiMessageIds,isStreaming:n})]})]});return t.jsxs(sA.div,{style:RSe,className:"group",...s&&!j?qae:zae,children:[t.jsx(Ex,{analyticsExtras:A,children:w?H:t.jsx(Lae,{conversationUuid:k.conversationUuid,children:H})}),!I&&t.jsx(Xie,{message:c,previousMessage:l,isLastMessage:a,isInteractive:d,isConversationStreaming:b,onRetry:u,isResearchPending:m,isTemporary:p,showArtifacts:f?.preview_feature_uses_artifacts??!1,positionMode:"flow",...k}),"",a&&!s&&d&&!w&&!x&&t.jsx(Nre,{conversationUuid:k.conversationUuid,lastMessageUuid:c.uuid,messageIndex:c.index})]})});HSe.displayName="AssistantMessage";const PSe=e.memo(function({isStreaming:s,conversationUuid:n,currentEdit:a,setCurrentEdit:i,finishEdit:r,cancelEdit:o,message:l,selectAttachment:c,showSharedImageMissing:d=!1,showSharedFileMissing:u=!1,isCoworkSession:p=!1,requestedModelOverride:f}){const g=Km(n),h=s||g,C=Zm(n),x=m(),v=JS(),y=e.useRef(null);e.useEffect(()=>{const e=y.current;if(!e)return;const t=e.value.length;e.setSelectionRange(t,t)},[]);const b=xn()?.isExternalConversation??!1,k=Le(l),w=0===a.length||C||!f&&k===a||(p||b)&&h,M=e.useRef(w);M.current=w;const _=e.useCallback(()=>{M.current||r()},[r]);e.useEffect(()=>{const e=e=>{e.isComposing||("Enter"!==e.key||e.shiftKey||Qt()&&!x&&!e.metaKey&&!e.ctrlKey||(e.preventDefault(),_()),"Escape"===e.key&&(e.preventDefault(),o()),"a"===e.key&&(e.metaKey||e.ctrlKey)&&document.activeElement===y.current&&y.current?.select())};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[_,o,y,x]);const j=Gz(l),S=d||u||l.attachments.length+j.length+(l?.sync_sources?.length||0)>0;return t.jsxs("form",{onSubmit:e=>{e.preventDefault(),_()},className:"pb-6",children:[S&&t.jsxs("div",{className:"mx-0.5 mb-3 flex flex-wrap gap-0.5",children:[j.map((e,s)=>t.jsx(JB,{file:e},s)),l.attachments.map((e,s)=>t.jsx(JB,{file:e,handleClick:()=>c?.(e)},s)),l?.sync_sources?.map(e=>t.jsx(m9,{uuid:e.uuid,syncSource:e},e.uuid)),d&&t.jsx(vq,{}),u&&!d&&t.jsx(yq,{})]}),t.jsx($ae,{...h?Bae:zae,className:"w-full",children:t.jsx("div",{className:"flex flex-row gap-2",children:t.jsxs("div",{className:"font-ui mr-3 grid w-full grid-cols-1 gap-2 py-0.5 text-[0.9375rem] leading-6",children:[t.jsx(dN,{value:a,onChange:e=>i(e.target.value),autoFocus:!0,autosize:!0,ref:y,"aria-label":v.formatMessage({defaultMessage:"Edit message",id:"jRANBdPli0"})}),t.jsxs("div",{className:"flex items-center justify-between gap-2",children:[t.jsxs("div",{className:"text-secondary flex flex-row gap-2 text-xs items-start",children:[t.jsx($L,{name:"Info",size:"sm",className:"shrink-0 mt-0.5"}),t.jsx("div",{children:p?t.jsx(XS,{defaultMessage:"Editing this message will restart the conversation from here.",id:"pYRPMBAE8N"}):t.jsx(XS,{defaultMessage:"Editing this message will create a new conversation branch. You can switch between branches using the arrow navigation buttons.",id:"zqkUZeVH+L"})})]}),t.jsxs("div",{className:"flex gap-2",children:[t.jsx(rN,{onClick:o,variant:"secondary",children:t.jsx(XS,{defaultMessage:"Cancel",id:"47FYwba+bI"})}),t.jsx(rN,{type:"submit",variant:"primary",disabled:w,children:t.jsx(XS,{defaultMessage:"Save",id:"jvo0vs3nF0"})})]})]})]})})})]})});PSe.displayName="EditingMessage";const USe=e.memo(({block:s,onRemove:n})=>{const[a,i]=e.useState(!1),r=e.useRef(null),o=JS(),l=e.useMemo(()=>"base64"===s.source.type?`data:${s.source.media_type};base64,${s.source.data}`:null,[s.source]);if("url"===s.source.type)return t.jsx(Rx,{src:s.source.url});if(!l)return null;const c=o.formatMessage({defaultMessage:"Uploaded image",id:"W3e7Z5tuOJ"});return t.jsxs("div",{className:"relative group/thumbnail",children:[t.jsx("div",{style:{width:120,height:120,minWidth:120,minHeight:120},className:"rounded-lg overflow-hidden can-focus-within border-0.5 border-strong hover:border-stronger hover:shadow-black/10 shadow-sm shadow-black/5 cursor-pointer",children:t.jsx(iq,{width:120,height:120,fileName:c,src:l,imgRef:r,onClick:()=>i(!0),onOpen:()=>i(!0)})}),t.jsx(Cq,{handleRemove:n,isEditable:!0,accessibleName:c}),t.jsx(WB,{src:l,alt:o.formatMessage({defaultMessage:"Full size preview",id:"8/h2Ko8rmK"}),isOpen:a,originRef:r,onClose:()=>i(!1)})]})});USe.displayName="ImageBlockThumbnail";const OSe=(e,t)=>{let s="v";"__lib_version__"===t&&(s="");const n=`${s}${t}`;if("undefined"!=typeof globalThis){var a;globalThis.__perseus_debug__=null!=(a=globalThis.__perseus_debug__)?a:{};const t=globalThis.__perseus_debug__[e];if(t){if(t!==n){const s=Array.isArray(t)?t:[t];s.push(n),globalThis.__perseus_debug__[e]=s,console.warn(`Multiple versions of ${e} loaded on this page: ${s.sort().join(", ")}`)}}else globalThis.__perseus_debug__[e]=n}else console.warn(`globalThis not found found (${n})`)};OSe("@khanacademy/perseus-core","1.4.2");OSe("@khanacademy/simple-markdown","0.11.4");var FSe,VSe,zSe,ZSe,BSe,qSe,WSe,$Se,GSe=/\r\n?/g,KSe=/\t/g,YSe=/\f/g,QSe=function(e,t){var s=e||{};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(s[n]=t[n]);return s},JSe=function(e,t){var s,n=Object.keys(e).filter(function(t){var s=e[t];if(null==s||null==s.match)return!1;var n=s.order;return"number"==typeof n&&isFinite(n)||"undefined"==typeof console||console.warn("simple-markdown: Invalid order for rule `"+t+"`: "+String(n)),!0});n.sort(function(t,s){var n=e[t],a=e[s],i=n.order,r=a.order;if(i!==r)return i-r;var o=n.quality?0:1,l=a.quality?0:1;return o!==l?o-l:t<s?-1:t>s?1:0});var a=function t(a,i){var r=[];for(s=i=i||s;a;){var o=null,l=null,c=null,d=NaN,u=0,m=n[0],p=e[m];do{var f=p.order,g=null==i.prevCapture?"":i.prevCapture[0],h=p.match(a,i,g);if(h){var C=p.quality?p.quality(h,i,g):0;C<=d||(o=m,l=p,c=h,d=C)}u++,m=n[u],p=e[m]}while(p&&(!c||p.order===f&&p.quality));if(null==l||null==c)throw new Error("Could not find a matching rule for the below content. The rule with highest `order` should always match content provided to it. Check the definition of `match` for '"+n[n.length-1]+"'. It seems to not match the following source:\n"+a);if(c.index)throw new Error("`match` must return a capture starting at index 0 (the current parse index). Did you forget a ^ at the start of the RegExp?");var x=l.parse(c,t,i);if(Array.isArray(x))Array.prototype.push.apply(r,x);else{if(null==x||"object"!=typeof x)throw new Error(`parse() function returned invalid parse result: '${x}'`);null==x.type&&(x.type=o),r.push(x)}i.prevCapture=c,a=a.substring(i.prevCapture[0].length)}return r};return function(e,n){return(s=QSe(n,t)).inline||s.disableAutoBlockNewlines||(e+="\n\n"),s.prevCapture=null,a(function(e){return e.replace(GSe,"\n").replace(YSe,"").replace(KSe,"    ")}(e),s)}},XSe=function(e){var t=function(t,s,n){return s.inline?e.exec(t):null};return t.regex=e,t},eLe=function(e){var t=function(t,s){return s.inline?null:e.exec(t)};return t.regex=e,t},tLe=function(e){var t=function(t,s){return e.exec(t)};return t.regex=e,t},sLe="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,nLe=function(e,t,s){return{$$typeof:sLe,type:e,key:null==t?void 0:t,ref:null,props:s,_owner:null}},aLe=function(e,t,s,n){s=s||{},n=void 0===n||n;var a="";for(var i in s){var r=s[i];Object.prototype.hasOwnProperty.call(s,i)&&r&&(a+=" "+cLe(i)+'="'+cLe(r)+'"')}var o="<"+e+a+">";return n?o+t+"</"+e+">":o},iLe={},rLe=function(e){if(null==e)return null;try{var t=new URL(e,"https://localhost").protocol;if(0===t.indexOf("javascript:")||0===t.indexOf("vbscript:")||0===t.indexOf("data:"))return null}catch(s){return null}return e},oLe=/[<>&"']/g,lLe={"<":"&lt;",">":"&gt;","&":"&amp;",'"':"&quot;","'":"&#x27;","/":"&#x2F;","`":"&#96;"},cLe=function(e){return String(e).replace(oLe,function(e){return lLe[e]})},dLe=/\\([^0-9A-Za-z\s])/g,uLe=function(e){return e.replace(dLe,"$1")},mLe=function(e,t,s){var n=s.inline||!1;s.inline=!0;var a=e(t,s);return s.inline=n,a},pLe=function(e,t,s){return{content:mLe(t,e[1],s)}},fLe=function(){return{}},gLe="(?:[*+-]|\\d+\\.)",hLe="( *)("+gLe+") +",CLe=new RegExp("^"+hLe),xLe=new RegExp(hLe+"[^\\n]*(?:\\n(?!\\1"+gLe+" )[^\\n]*)*(\n|$)","gm"),vLe=/^ (?= *`)|(` *) $/g,yLe=/\n{2,}$/,bLe=/ *\n+$/,kLe=new RegExp("^( *)("+gLe+") [\\s\\S]+?(?:\n{2,}(?! )(?!\\1"+gLe+" )\\n*|\\s*\n*$)"),wLe=/(?:^|\n)( *)$/,MLe=(FSe=/^ *\| *| *\| *$/g,VSe=/ *$/,zSe=/^ *-+: *$/,ZSe=/^ *:-+: *$/,BSe=/^ *:-+ *$/,qSe=function(e){return zSe.test(e)?"right":ZSe.test(e)?"center":BSe.test(e)?"left":null},WSe=function(e,t,s,n){var a=s.inTable;s.inTable=!0;var i=t(e.trim(),s);s.inTable=a;var r=[[]];return i.forEach(function(e,t){"tableSeparator"===e.type?(!n||0!==t&&t!==i.length-1)&&r.push([]):("text"!==e.type||null!=i[t+1]&&"tableSeparator"!==i[t+1].type||(e.content=e.content.replace(VSe,"")),r[r.length-1].push(e))}),r},{parseTable:($Se=function(e){return function(t,s,n){n.inline=!0;var a=WSe(t[1],s,n,e),i=function(e,t,s,n){return n&&(e=e.replace(FSe,"")),e.trim().split("|").map(qSe)}(t[2],0,0,e),r=function(e,t,s,n){return e.trim().split("\n").map(function(e){return WSe(e,t,s,n)})}(t[3],s,n,e);return n.inline=!1,{type:"table",header:a,align:i,cells:r}}})(!0),parseNpTable:$Se(!1),TABLE_REGEX:/^ *(\|.+)\n *\|( *[-:]+[-| :]*)\n((?: *\|.*(?:\n|$))*)\n*/,NPTABLE_REGEX:/^ *(\S.*\|.*)\n *([-:]+ *\|[-| :]*)\n((?:.*\|.*(?:\n|$))*)\n*/}),_Le="(?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*",jLe="\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['\"]([\\s\\S]*?)['\"])?\\s*",SLe=/mailto:/i,LLe=function(e,t,s){var n=(e[2]||e[1]).replace(/\s+/g," ").toLowerCase();if(t._defs&&t._defs[n]){var a=t._defs[n];s.target=a.target,s.title=a.title}return t._refs=t._refs||{},t._refs[n]=t._refs[n]||[],t._refs[n].push(s),s},NLe=0,ILe={Array:{react:function(e,t,s){for(var n=s.key,a=[],i=0,r=0;i<e.length;i++,r++){s.key=""+i;var o=e[i];if("text"===o.type)for(o={type:"text",content:o.content};i+1<e.length&&"text"===e[i+1].type;i++)o.content+=e[i+1].content;a.push(t(o,s))}return s.key=n,a},html:function(e,t,s){for(var n="",a=0;a<e.length;a++){var i=e[a];if("text"===i.type)for(i={type:"text",content:i.content};a+1<e.length&&"text"===e[a+1].type;a++)i.content+=e[a+1].content;n+=t(i,s)}return n}},heading:{order:NLe++,match:eLe(/^ *(#{1,6})([^\n]+?)#* *(?:\n *)+\n/),parse:function(e,t,s){return{level:e[1].length,content:mLe(t,e[2].trim(),s)}},react:function(e,t,s){return nLe("h"+e.level,s.key,{children:t(e.content,s)})},html:function(e,t,s){return aLe("h"+e.level,t(e.content,s))}},nptable:{order:NLe++,match:eLe(MLe.NPTABLE_REGEX),parse:MLe.parseNpTable,react:null,html:null},lheading:{order:NLe++,match:eLe(/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/),parse:function(e,t,s){return{type:"heading",level:"="===e[2]?1:2,content:mLe(t,e[1],s)}},react:null,html:null},hr:{order:NLe++,match:eLe(/^( *[-*_]){3,} *(?:\n *)+\n/),parse:fLe,react:function(e,t,s){return nLe("hr",s.key,iLe)},html:function(e,t,s){return"<hr>"}},codeBlock:{order:NLe++,match:eLe(/^(?:    [^\n]+\n*)+(?:\n *)+\n/),parse:function(e,t,s){return{lang:void 0,content:e[0].replace(/^    /gm,"").replace(/\n+$/,"")}},react:function(e,t,s){var n=e.lang?"markdown-code-"+e.lang:void 0;return nLe("pre",s.key,{children:nLe("code",null,{className:n,children:e.content})})},html:function(e,t,s){var n=e.lang?"markdown-code-"+e.lang:void 0,a=aLe("code",cLe(e.content),{class:n});return aLe("pre",a)}},fence:{order:NLe++,match:eLe(/^ *(`{3,}|~{3,}) *(?:(\S+) *)?\n([\s\S]+?)\n?\1 *(?:\n *)+\n/),parse:function(e,t,s){return{type:"codeBlock",lang:e[2]||void 0,content:e[3]}},react:null,html:null},blockQuote:{order:NLe++,match:eLe(/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/),parse:function(e,t,s){return{content:t(e[0].replace(/^ *> ?/gm,""),s)}},react:function(e,t,s){return nLe("blockquote",s.key,{children:t(e.content,s)})},html:function(e,t,s){return aLe("blockquote",t(e.content,s))}},list:{order:NLe++,match:function(e,t){var s=null==t.prevCapture?"":t.prevCapture[0],n=wLe.exec(s),a=t._list||!t.inline;return n&&a?(e=n[1]+e,kLe.exec(e)):null},parse:function(e,t,s){var n=e[2],a=n.length>1,i=a?+n:void 0,r=e[0].replace(yLe,"\n").match(xLe),o=!1;return{ordered:a,start:i,items:r.map(function(e,n){var a=CLe.exec(e),i=a?a[0].length:0,l=new RegExp("^ {1,"+i+"}","gm"),c=e.replace(l,"").replace(CLe,""),d=n===r.length-1,u=-1!==c.indexOf("\n\n")||d&&o;o=u;var m,p=s.inline,f=s._list;s._list=!0,u?(s.inline=!1,m=c.replace(bLe,"\n\n")):(s.inline=!0,m=c.replace(bLe,""));var g=t(m,s);return s.inline=p,s._list=f,g})}},react:function(e,t,s){var n=e.ordered?"ol":"ul";return nLe(n,s.key,{start:e.start,children:e.items.map(function(e,n){return nLe("li",""+n,{children:t(e,s)})})})},html:function(e,t,s){var n=e.items.map(function(e){return aLe("li",t(e,s))}).join(""),a=e.ordered?"ol":"ul",i={start:e.start};return aLe(a,n,i)}},def:{order:NLe++,match:eLe(/^ *\[([^\]]+)\]: *<?([^\s>]*)>?(?: +["(]([^\n]+)[")])? *\n(?: *\n)*/),parse:function(e,t,s){var n=e[1].replace(/\s+/g," ").toLowerCase(),a=e[2],i=e[3];return s._refs&&s._refs[n]&&s._refs[n].forEach(function(e){e.target=a,e.title=i}),s._defs=s._defs||{},s._defs[n]={target:a,title:i},{def:n,target:a,title:i}},react:function(){return null},html:function(){return""}},table:{order:NLe++,match:eLe(MLe.TABLE_REGEX),parse:MLe.parseTable,react:function(e,t,s){var n=function(t){return null==e.align[t]?{}:{textAlign:e.align[t]}},a=e.header.map(function(e,a){return nLe("th",""+a,{style:n(a),scope:"col",children:t(e,s)})}),i=e.cells.map(function(e,a){return nLe("tr",""+a,{children:e.map(function(e,a){return nLe("td",""+a,{style:n(a),children:t(e,s)})})})});return nLe("table",s.key,{children:[nLe("thead","thead",{children:nLe("tr",null,{children:a})}),nLe("tbody","tbody",{children:i})]})},html:function(e,t,s){var n=function(t){return null==e.align[t]?"":"text-align:"+e.align[t]+";"},a=e.header.map(function(e,a){return aLe("th",t(e,s),{style:n(a),scope:"col"})}).join(""),i=e.cells.map(function(e){var a=e.map(function(e,a){return aLe("td",t(e,s),{style:n(a)})}).join("");return aLe("tr",a)}).join(""),r=aLe("thead",aLe("tr",a)),o=aLe("tbody",i);return aLe("table",r+o)}},newline:{order:NLe++,match:eLe(/^(?:\n *)*\n/),parse:fLe,react:function(e,t,s){return"\n"},html:function(e,t,s){return"\n"}},paragraph:{order:NLe++,match:eLe(/^((?:[^\n]|\n(?! *\n))+)(?:\n *)+\n/),parse:pLe,react:function(e,t,s){return nLe("div",s.key,{className:"paragraph",children:t(e.content,s)})},html:function(e,t,s){return aLe("div",t(e.content,s),{class:"paragraph"})}},escape:{order:NLe++,match:XSe(/^\\([^0-9A-Za-z\s])/),parse:function(e,t,s){return{type:"text",content:e[1]}},react:null,html:null},tableSeparator:{order:NLe++,match:function(e,t){return t.inTable?/^ *\| */.exec(e):null},parse:function(){return{type:"tableSeparator"}},react:function(){return" | "},html:function(){return" &vert; "}},autolink:{order:NLe++,match:XSe(/^<([^: >]+:\/[^ >]+)>/),parse:function(e,t,s){return{type:"link",content:[{type:"text",content:e[1]}],target:e[1]}},react:null,html:null},mailto:{order:NLe++,match:XSe(/^<([^ >]+@[^ >]+)>/),parse:function(e,t,s){var n=e[1],a=e[1];return SLe.test(a)||(a="mailto:"+a),{type:"link",content:[{type:"text",content:n}],target:a}},react:null,html:null},url:{order:NLe++,match:XSe(/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/),parse:function(e,t,s){return{type:"link",content:[{type:"text",content:e[1]}],target:e[1],title:void 0}},react:null,html:null},link:{order:NLe++,match:XSe(new RegExp("^\\[("+_Le+")\\]\\("+jLe+"\\)")),parse:function(e,t,s){return{content:t(e[1],s),target:uLe(e[2]),title:e[3]}},react:function(e,t,s){return nLe("a",s.key,{href:rLe(e.target),title:e.title,children:t(e.content,s)})},html:function(e,t,s){var n={href:rLe(e.target),title:e.title};return aLe("a",t(e.content,s),n)}},image:{order:NLe++,match:XSe(new RegExp("^!\\[("+_Le+")\\]\\("+jLe+"\\)")),parse:function(e,t,s){return{alt:e[1],target:uLe(e[2]),title:e[3]}},react:function(e,t,s){return nLe("img",s.key,{src:rLe(e.target),alt:e.alt,title:e.title})},html:function(e,t,s){var n={src:rLe(e.target),alt:e.alt,title:e.title};return aLe("img","",n,!1)}},reflink:{order:NLe++,match:XSe(new RegExp("^\\[("+_Le+")\\]\\s*\\[([^\\]]*)\\]")),parse:function(e,t,s){return LLe(e,s,{type:"link",content:t(e[1],s)})},react:null,html:null},refimage:{order:NLe++,match:XSe(new RegExp("^!\\[("+_Le+")\\]\\s*\\[([^\\]]*)\\]")),parse:function(e,t,s){return LLe(e,s,{type:"image",alt:e[1]})},react:null,html:null},em:{order:NLe,match:XSe(new RegExp("^\\b_((?:__|\\\\[\\s\\S]|[^\\\\_])+?)_\\b|^\\*(?=\\S)((?:\\*\\*|\\\\[\\s\\S]|\\s+(?:\\\\[\\s\\S]|[^\\s\\*\\\\]|\\*\\*)|[^\\s\\*\\\\])+?)\\*(?!\\*)")),quality:function(e){return e[0].length+.2},parse:function(e,t,s){return{content:t(e[2]||e[1],s)}},react:function(e,t,s){return nLe("em",s.key,{children:t(e.content,s)})},html:function(e,t,s){return aLe("em",t(e.content,s))}},strong:{order:NLe,match:XSe(/^\*\*((?:\\[\s\S]|[^\\])+?)\*\*(?!\*)/),quality:function(e){return e[0].length+.1},parse:pLe,react:function(e,t,s){return nLe("strong",s.key,{children:t(e.content,s)})},html:function(e,t,s){return aLe("strong",t(e.content,s))}},u:{order:NLe++,match:XSe(/^__((?:\\[\s\S]|[^\\])+?)__(?!_)/),quality:function(e){return e[0].length},parse:pLe,react:function(e,t,s){return nLe("u",s.key,{children:t(e.content,s)})},html:function(e,t,s){return aLe("u",t(e.content,s))}},del:{order:NLe++,match:XSe(/^~~(?=\S)((?:\\[\s\S]|~(?!~)|[^\s~\\]|\s(?!~~))+?)~~/),parse:pLe,react:function(e,t,s){return nLe("del",s.key,{children:t(e.content,s)})},html:function(e,t,s){return aLe("del",t(e.content,s))}},inlineCode:{order:NLe++,match:XSe(/^(`+)([\s\S]*?[^`])\1(?!`)/),parse:function(e,t,s){return{content:e[2].replace(vLe,"$1")}},react:function(e,t,s){return nLe("code",s.key,{children:e.content})},html:function(e,t,s){return aLe("code",cLe(e.content))}},br:{order:NLe++,match:tLe(/^ {2,}\n/),parse:fLe,react:function(e,t,s){return nLe("br",s.key,iLe)},html:function(e,t,s){return"<br>"}},text:{order:NLe++,match:tLe(/^[\s\S]+?(?=[^0-9A-Za-z\s\u00c0-\uffff]|\n\n| {2,}\n|\w+:\S|$)/),parse:function(e,t,s){return{content:e[0]}},react:function(e,t,s){return e.content},html:function(e,t,s){return cLe(e.content)}}},TLe=function(e,t,s={}){if(!t)throw new Error("simple-markdown: outputFor: `property` must be defined. if you just upgraded, you probably need to replace `outputFor` with `reactFor`");var n,a=(e.Array||ILe.Array)[t];if(!a)throw new Error("simple-markdown: outputFor: to join nodes of type `"+t+"` you must provide an `Array:` joiner rule with that type, Please see the docs for details on specifying an Array rule.");var i=a,r=function s(a,r){return n=r=r||n,Array.isArray(a)?i(a,s,r):e[a.type][t](a,s,r)};return function(e,t){return n=QSe(t,s),r(e,n)}};JSe(ILe),TLe(ILe,"react"),TLe(ILe,"html");var ALe={defaultRules:ILe,parserFor:JSe,outputFor:TLe};const ELe=ALe.defaultRules,RLe=ALe.parserFor,DLe=ALe.outputFor,HLe=e=>{if(!e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(HLe);if(s.isValidElement(e)){if(e.props&&"object"==typeof e.props&&"children"in e.props){const t=e.props.children,n=HLe(t);if(n!==t)return s.cloneElement(e,void 0,n)}return e}if("object"==typeof(t=e)&&null!==t&&"$$typeof"in t&&"type"in t&&"props"in t){const{type:t,props:n,key:a}=e,i={};return n&&"object"==typeof n&&(Object.assign(i,n),"children"in n&&(i.children=HLe(n.children))),null!=a&&(i.key=a),s.createElement(t,i)}var t;return e},PLe=e=>((e,t,s)=>{const n=DLe(e,t,s),a=(e,t)=>{const s=n(e,t);return HLe(s)};return a.displayName=`OutputFor_${String(t)}`,a})(e,"react"),ULe={fence:{...ELe.fence,parse:(e,t,s)=>({lang:e[2]||void 0,content:e[3]}),react:e=>t.jsx(Px.pre,{flagShowCodeHeader:!1,children:e.content})},blockQuote:{...ELe.blockQuote,react:(e,s,n)=>t.jsx(Px.blockQuote,{children:s(e.content,n)})},list:{...ELe.list,react:(e,s,n)=>{const a=e.items.map((e,a)=>t.jsx(Px.li,{children:s(e,n)},a));if(e.ordered){const s=Number.isInteger(e.start)&&1!==e.start?e.start:void 0;return t.jsx(Px.ol,{start:s,children:a},n.key)}return t.jsx(Px.ul,{children:a},n.key)}},newline:ELe.newline,paragraph:{...ELe.paragraph,react:(e,s,n)=>t.jsx(Px.p,{children:s(e.content,n)},n.key)},del:ELe.del,inlineCode:{...ELe.inlineCode,react:e=>{const s=e.content;return s&&Hx.test(s)&&s.match(Hx)?.[0]===s?t.jsxs(Px.code,{children:[t.jsx("span",{style:{display:"inline-block",verticalAlign:"middle",position:"relative",top:"-0.15em"},children:t.jsx(Ux,{color:s})}),s]}):t.jsx(Px.code,{children:s})}},text:{...ELe.text,react:e=>Dx(e.content)},url:ELe.url,link:{...ELe.link,match:(e,t)=>null,react:e=>{const s=e.target;return t.jsx("a",{href:s,target:"_blank",className:"underline",children:s})}}},OLe=RLe(ULe),FLe=PLe(ULe),VLe=e.memo(({text:t,extraRules:s})=>{const{parser:n,output:a}=e.useMemo(()=>{if(!s)return{parser:OLe,output:FLe};const e={...ULe,...s};return{parser:RLe(e),output:PLe(e)}},[s]);return a(n(t,{inline:!1}))});VLe.displayName="AnthropicMarkDown";const zLe=/^\/([A-Za-z0-9][A-Za-z0-9_-]*(?::[A-Za-z0-9][A-Za-z0-9_-]*)?)/;function ZLe(e){return{order:ELe.text.order-.5,match:(t,s,n)=>{if(!s.inline)return null;if(!s._list){const e=n.slice(-1);if(e&&/[\w/]/.test(e))return null}const a=zLe.exec(t);return a&&(e.has(a[1])||null!==Ox(a[1]))?a:null},parse:e=>({id:e[1]}),react:(s,n,a)=>{const i=s.id,r=e.get(i)??function(e){const t=Ox(e);if(null!==t)return{displayName:t,description:"",source:"mcp",unresolved:!0}}(i);return r?t.jsx(PI,{id:i,info:r},a.key):t.jsx(t.Fragment,{children:`/${i}`})}}}const BLe="gatedChunkFetchFailure";const qLe="gatedLoaderFailure";const WLe="gated_reported:";class $Le extends Fx{static getDerivedStateFromError(e){if(Vx(e)||e instanceof Error&&"NEXT_REDIRECT"===e.message)throw e;if(e instanceof Error)return{error:e};let t="non-stringifiable thrown value";try{t=String(e)}catch{}return{error:new Error(t)}}reportKey(e){let t,s;if(e instanceof Error)t=e.name,s=e.message.slice(0,40);else{t=typeof e;try{s=String(e).slice(0,40)}catch{s="unstringifiable"}}const n=function(e){return e instanceof Error&&!0===e[qLe]}(e)?"loader":"render";return`${WLe}${this.props.componentName}:${n}:${t}:${s}`}componentDidCatch(e){const t=this.reportKey(e);try{if(null!==sessionStorage.getItem(t))return}catch{}if(!this.hasCaptured){try{sessionStorage.setItem(t,"1")}catch{}super.componentDidCatch(e),this.emitAvailabilityMetric(e)}}emitAvailabilityMetric(e){}}class GLe extends $Le{static getDerivedStateFromError(e){if(zx(e))throw e;return $Le.getDerivedStateFromError(e)}emitAvailabilityMetric(e){!function(e){return e instanceof Error&&!0===e[BLe]}(e)?Bx(this.props.componentName):Zx(this.props.componentName)}}const KLe=new Map([["Google Calendar","https://calendar.google.com"],["Salesforce","https://www.salesforce.com"],["Gmail","https://mail.google.com"],["Google Ads","https://ads.google.com"],["Meta","https://www.facebook.com"],["Google Analytics","https://analytics.google.com"],["LinkedIn","https://www.linkedin.com"],["NetSuite","https://www.netsuite.com"],["Google Drive","https://drive.google.com"],["Slack","https://slack.com"],["Intercom","https://www.intercom.com"],["Linear","https://linear.app"],["Granola","https://www.granola.ai"]]),YLe=e.memo(function({label:e,selected:s=!1}){const n=KLe.get(e);return t.jsxs("span",{"data-connector-mention-pill":"",className:GL("inline-flex items-center gap-1 align-baseline","rounded border border-strong bg-surface-0 px-1.5 py-px",s&&"bg-neutral"),children:[n&&t.jsx(rt,{url:n,size:14}),t.jsx("span",{className:"select-none",children:e})]})}),QLe="\x01";const JLe=[...KLe.keys()].sort((e,t)=>t.length-e.length).map(function(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}).join("|");const XLe=e.lazy(()=>a(()=>import("./cdd4dda0d-BNWrk4As.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(e=>({default:e.TranscriptConnectorMentionPill})));const eNe=e.memo(({text:s})=>{const n=qx(),a=ie(),i=e.useMemo(()=>{const s={skillChip:ZLe(n)};return a&&(s.connectorMention=function(){const s=new RegExp(`^${QLe}(${JLe})${QLe}`);return{order:ELe.text.order-.4,match:(e,t)=>t.inline?s.exec(e):null,parse:e=>({label:e[1]}),react:(s,n,a)=>{const i=s.label,r=t.jsx(YLe,{label:i});return t.jsx($Le,{componentName:"lazy:TranscriptConnectorMentionPill",fallback:r,children:t.jsx(e.Suspense,{fallback:r,children:t.jsx(XLe,{label:i})})},a.key)}}}()),s},[n,a]),r=e.useMemo(()=>a?function(e){if(e.includes(QLe))return e;const t=new RegExp(`(^|[^\\w/-])(${JLe})(?![\\w-])`,"g");return e.replace(t,`$1${QLe}$2${QLe}`)}(s):s,[s,a]);return t.jsx(VLe,{text:r,extraRules:i})});eNe.displayName="HumanTextBlock";const tNe=/<lexeme>\s*<grapheme>(.*?)<\/grapheme>\s*<alias>.*?<\/alias>\s*<\/lexeme>/gs,sNe=/<\/?(?:lexeme|grapheme|alias)[^>]*>/g;function nNe(e){let t=e.replace(tNe,"$1");return t=t.replace(sNe,""),t}const aNe={AElig:"\xc6",AMP:"&",Aacute:"\xc1",Abreve:"\u0102",Acirc:"\xc2",Acy:"\u0410",Afr:"\ud835\udd04",Agrave:"\xc0",Alpha:"\u0391",Amacr:"\u0100",And:"\u2a53",Aogon:"\u0104",Aopf:"\ud835\udd38",ApplyFunction:"\u2061",Aring:"\xc5",Ascr:"\ud835\udc9c",Assign:"\u2254",Atilde:"\xc3",Auml:"\xc4",Backslash:"\u2216",Barv:"\u2ae7",Barwed:"\u2306",Bcy:"\u0411",Because:"\u2235",Bernoullis:"\u212c",Beta:"\u0392",Bfr:"\ud835\udd05",Bopf:"\ud835\udd39",Breve:"\u02d8",Bscr:"\u212c",Bumpeq:"\u224e",CHcy:"\u0427",COPY:"\xa9",Cacute:"\u0106",Cap:"\u22d2",CapitalDifferentialD:"\u2145",Cayleys:"\u212d",Ccaron:"\u010c",Ccedil:"\xc7",Ccirc:"\u0108",Cconint:"\u2230",Cdot:"\u010a",Cedilla:"\xb8",CenterDot:"\xb7",Cfr:"\u212d",Chi:"\u03a7",CircleDot:"\u2299",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201d",CloseCurlyQuote:"\u2019",Colon:"\u2237",Colone:"\u2a74",Congruent:"\u2261",Conint:"\u222f",ContourIntegral:"\u222e",Copf:"\u2102",Coproduct:"\u2210",CounterClockwiseContourIntegral:"\u2233",Cross:"\u2a2f",Cscr:"\ud835\udc9e",Cup:"\u22d3",CupCap:"\u224d",DD:"\u2145",DDotrahd:"\u2911",DJcy:"\u0402",DScy:"\u0405",DZcy:"\u040f",Dagger:"\u2021",Darr:"\u21a1",Dashv:"\u2ae4",Dcaron:"\u010e",Dcy:"\u0414",Del:"\u2207",Delta:"\u0394",Dfr:"\ud835\udd07",DiacriticalAcute:"\xb4",DiacriticalDot:"\u02d9",DiacriticalDoubleAcute:"\u02dd",DiacriticalGrave:"`",DiacriticalTilde:"\u02dc",Diamond:"\u22c4",DifferentialD:"\u2146",Dopf:"\ud835\udd3b",Dot:"\xa8",DotDot:"\u20dc",DotEqual:"\u2250",DoubleContourIntegral:"\u222f",DoubleDot:"\xa8",DoubleDownArrow:"\u21d3",DoubleLeftArrow:"\u21d0",DoubleLeftRightArrow:"\u21d4",DoubleLeftTee:"\u2ae4",DoubleLongLeftArrow:"\u27f8",DoubleLongLeftRightArrow:"\u27fa",DoubleLongRightArrow:"\u27f9",DoubleRightArrow:"\u21d2",DoubleRightTee:"\u22a8",DoubleUpArrow:"\u21d1",DoubleUpDownArrow:"\u21d5",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21f5",DownBreve:"\u0311",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295e",DownLeftVector:"\u21bd",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295f",DownRightVector:"\u21c1",DownRightVectorBar:"\u2957",DownTee:"\u22a4",DownTeeArrow:"\u21a7",Downarrow:"\u21d3",Dscr:"\ud835\udc9f",Dstrok:"\u0110",ENG:"\u014a",ETH:"\xd0",Eacute:"\xc9",Ecaron:"\u011a",Ecirc:"\xca",Ecy:"\u042d",Edot:"\u0116",Efr:"\ud835\udd08",Egrave:"\xc8",Element:"\u2208",Emacr:"\u0112",EmptySmallSquare:"\u25fb",EmptyVerySmallSquare:"\u25ab",Eogon:"\u0118",Eopf:"\ud835\udd3c",Epsilon:"\u0395",Equal:"\u2a75",EqualTilde:"\u2242",Equilibrium:"\u21cc",Escr:"\u2130",Esim:"\u2a73",Eta:"\u0397",Euml:"\xcb",Exists:"\u2203",ExponentialE:"\u2147",Fcy:"\u0424",Ffr:"\ud835\udd09",FilledSmallSquare:"\u25fc",FilledVerySmallSquare:"\u25aa",Fopf:"\ud835\udd3d",ForAll:"\u2200",Fouriertrf:"\u2131",Fscr:"\u2131",GJcy:"\u0403",GT:">",Gamma:"\u0393",Gammad:"\u03dc",Gbreve:"\u011e",Gcedil:"\u0122",Gcirc:"\u011c",Gcy:"\u0413",Gdot:"\u0120",Gfr:"\ud835\udd0a",Gg:"\u22d9",Gopf:"\ud835\udd3e",GreaterEqual:"\u2265",GreaterEqualLess:"\u22db",GreaterFullEqual:"\u2267",GreaterGreater:"\u2aa2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2a7e",GreaterTilde:"\u2273",Gscr:"\ud835\udca2",Gt:"\u226b",HARDcy:"\u042a",Hacek:"\u02c7",Hat:"^",Hcirc:"\u0124",Hfr:"\u210c",HilbertSpace:"\u210b",Hopf:"\u210d",HorizontalLine:"\u2500",Hscr:"\u210b",Hstrok:"\u0126",HumpDownHump:"\u224e",HumpEqual:"\u224f",IEcy:"\u0415",IJlig:"\u0132",IOcy:"\u0401",Iacute:"\xcd",Icirc:"\xce",Icy:"\u0418",Idot:"\u0130",Ifr:"\u2111",Igrave:"\xcc",Im:"\u2111",Imacr:"\u012a",ImaginaryI:"\u2148",Implies:"\u21d2",Int:"\u222c",Integral:"\u222b",Intersection:"\u22c2",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",Iogon:"\u012e",Iopf:"\ud835\udd40",Iota:"\u0399",Iscr:"\u2110",Itilde:"\u0128",Iukcy:"\u0406",Iuml:"\xcf",Jcirc:"\u0134",Jcy:"\u0419",Jfr:"\ud835\udd0d",Jopf:"\ud835\udd41",Jscr:"\ud835\udca5",Jsercy:"\u0408",Jukcy:"\u0404",KHcy:"\u0425",KJcy:"\u040c",Kappa:"\u039a",Kcedil:"\u0136",Kcy:"\u041a",Kfr:"\ud835\udd0e",Kopf:"\ud835\udd42",Kscr:"\ud835\udca6",LJcy:"\u0409",LT:"<",Lacute:"\u0139",Lambda:"\u039b",Lang:"\u27ea",Laplacetrf:"\u2112",Larr:"\u219e",Lcaron:"\u013d",Lcedil:"\u013b",Lcy:"\u041b",LeftAngleBracket:"\u27e8",LeftArrow:"\u2190",LeftArrowBar:"\u21e4",LeftArrowRightArrow:"\u21c6",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27e6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21c3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230a",LeftRightArrow:"\u2194",LeftRightVector:"\u294e",LeftTee:"\u22a3",LeftTeeArrow:"\u21a4",LeftTeeVector:"\u295a",LeftTriangle:"\u22b2",LeftTriangleBar:"\u29cf",LeftTriangleEqual:"\u22b4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21bf",LeftUpVectorBar:"\u2958",LeftVector:"\u21bc",LeftVectorBar:"\u2952",Leftarrow:"\u21d0",Leftrightarrow:"\u21d4",LessEqualGreater:"\u22da",LessFullEqual:"\u2266",LessGreater:"\u2276",LessLess:"\u2aa1",LessSlantEqual:"\u2a7d",LessTilde:"\u2272",Lfr:"\ud835\udd0f",Ll:"\u22d8",Lleftarrow:"\u21da",Lmidot:"\u013f",LongLeftArrow:"\u27f5",LongLeftRightArrow:"\u27f7",LongRightArrow:"\u27f6",Longleftarrow:"\u27f8",Longleftrightarrow:"\u27fa",Longrightarrow:"\u27f9",Lopf:"\ud835\udd43",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",Lscr:"\u2112",Lsh:"\u21b0",Lstrok:"\u0141",Lt:"\u226a",Map:"\u2905",Mcy:"\u041c",MediumSpace:"\u205f",Mellintrf:"\u2133",Mfr:"\ud835\udd10",MinusPlus:"\u2213",Mopf:"\ud835\udd44",Mscr:"\u2133",Mu:"\u039c",NJcy:"\u040a",Nacute:"\u0143",Ncaron:"\u0147",Ncedil:"\u0145",Ncy:"\u041d",NegativeMediumSpace:"\u200b",NegativeThickSpace:"\u200b",NegativeThinSpace:"\u200b",NegativeVeryThinSpace:"\u200b",NestedGreaterGreater:"\u226b",NestedLessLess:"\u226a",NewLine:"\n",Nfr:"\ud835\udd11",NoBreak:"\u2060",NonBreakingSpace:"\xa0",Nopf:"\u2115",Not:"\u2aec",NotCongruent:"\u2262",NotCupCap:"\u226d",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226f",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226b\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2a7e\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224e\u0338",NotHumpEqual:"\u224f\u0338",NotLeftTriangle:"\u22ea",NotLeftTriangleBar:"\u29cf\u0338",NotLeftTriangleEqual:"\u22ec",NotLess:"\u226e",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226a\u0338",NotLessSlantEqual:"\u2a7d\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2aa2\u0338",NotNestedLessLess:"\u2aa1\u0338",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2aaf\u0338",NotPrecedesSlantEqual:"\u22e0",NotReverseElement:"\u220c",NotRightTriangle:"\u22eb",NotRightTriangleBar:"\u29d0\u0338",NotRightTriangleEqual:"\u22ed",NotSquareSubset:"\u228f\u0338",NotSquareSubsetEqual:"\u22e2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22e3",NotSubset:"\u2282\u20d2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2ab0\u0338",NotSucceedsSlantEqual:"\u22e1",NotSucceedsTilde:"\u227f\u0338",NotSuperset:"\u2283\u20d2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",Nscr:"\ud835\udca9",Ntilde:"\xd1",Nu:"\u039d",OElig:"\u0152",Oacute:"\xd3",Ocirc:"\xd4",Ocy:"\u041e",Odblac:"\u0150",Ofr:"\ud835\udd12",Ograve:"\xd2",Omacr:"\u014c",Omega:"\u03a9",Omicron:"\u039f",Oopf:"\ud835\udd46",OpenCurlyDoubleQuote:"\u201c",OpenCurlyQuote:"\u2018",Or:"\u2a54",Oscr:"\ud835\udcaa",Oslash:"\xd8",Otilde:"\xd5",Otimes:"\u2a37",Ouml:"\xd6",OverBar:"\u203e",OverBrace:"\u23de",OverBracket:"\u23b4",OverParenthesis:"\u23dc",PartialD:"\u2202",Pcy:"\u041f",Pfr:"\ud835\udd13",Phi:"\u03a6",Pi:"\u03a0",PlusMinus:"\xb1",Poincareplane:"\u210c",Popf:"\u2119",Pr:"\u2abb",Precedes:"\u227a",PrecedesEqual:"\u2aaf",PrecedesSlantEqual:"\u227c",PrecedesTilde:"\u227e",Prime:"\u2033",Product:"\u220f",Proportion:"\u2237",Proportional:"\u221d",Pscr:"\ud835\udcab",Psi:"\u03a8",QUOT:'"',Qfr:"\ud835\udd14",Qopf:"\u211a",Qscr:"\ud835\udcac",RBarr:"\u2910",REG:"\xae",Racute:"\u0154",Rang:"\u27eb",Rarr:"\u21a0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211c",ReverseElement:"\u220b",ReverseEquilibrium:"\u21cb",ReverseUpEquilibrium:"\u296f",Rfr:"\u211c",Rho:"\u03a1",RightAngleBracket:"\u27e9",RightArrow:"\u2192",RightArrowBar:"\u21e5",RightArrowLeftArrow:"\u21c4",RightCeiling:"\u2309",RightDoubleBracket:"\u27e7",RightDownTeeVector:"\u295d",RightDownVector:"\u21c2",RightDownVectorBar:"\u2955",RightFloor:"\u230b",RightTee:"\u22a2",RightTeeArrow:"\u21a6",RightTeeVector:"\u295b",RightTriangle:"\u22b3",RightTriangleBar:"\u29d0",RightTriangleEqual:"\u22b5",RightUpDownVector:"\u294f",RightUpTeeVector:"\u295c",RightUpVector:"\u21be",RightUpVectorBar:"\u2954",RightVector:"\u21c0",RightVectorBar:"\u2953",Rightarrow:"\u21d2",Ropf:"\u211d",RoundImplies:"\u2970",Rrightarrow:"\u21db",Rscr:"\u211b",Rsh:"\u21b1",RuleDelayed:"\u29f4",SHCHcy:"\u0429",SHcy:"\u0428",SOFTcy:"\u042c",Sacute:"\u015a",Sc:"\u2abc",Scaron:"\u0160",Scedil:"\u015e",Scirc:"\u015c",Scy:"\u0421",Sfr:"\ud835\udd16",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",Sigma:"\u03a3",SmallCircle:"\u2218",Sopf:"\ud835\udd4a",Sqrt:"\u221a",Square:"\u25a1",SquareIntersection:"\u2293",SquareSubset:"\u228f",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",Sscr:"\ud835\udcae",Star:"\u22c6",Sub:"\u22d0",Subset:"\u22d0",SubsetEqual:"\u2286",Succeeds:"\u227b",SucceedsEqual:"\u2ab0",SucceedsSlantEqual:"\u227d",SucceedsTilde:"\u227f",SuchThat:"\u220b",Sum:"\u2211",Sup:"\u22d1",Superset:"\u2283",SupersetEqual:"\u2287",Supset:"\u22d1",THORN:"\xde",TRADE:"\u2122",TSHcy:"\u040b",TScy:"\u0426",Tab:"\t",Tau:"\u03a4",Tcaron:"\u0164",Tcedil:"\u0162",Tcy:"\u0422",Tfr:"\ud835\udd17",Therefore:"\u2234",Theta:"\u0398",ThickSpace:"\u205f\u200a",ThinSpace:"\u2009",Tilde:"\u223c",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",Topf:"\ud835\udd4b",TripleDot:"\u20db",Tscr:"\ud835\udcaf",Tstrok:"\u0166",Uacute:"\xda",Uarr:"\u219f",Uarrocir:"\u2949",Ubrcy:"\u040e",Ubreve:"\u016c",Ucirc:"\xdb",Ucy:"\u0423",Udblac:"\u0170",Ufr:"\ud835\udd18",Ugrave:"\xd9",Umacr:"\u016a",UnderBar:"_",UnderBrace:"\u23df",UnderBracket:"\u23b5",UnderParenthesis:"\u23dd",Union:"\u22c3",UnionPlus:"\u228e",Uogon:"\u0172",Uopf:"\ud835\udd4c",UpArrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21c5",UpDownArrow:"\u2195",UpEquilibrium:"\u296e",UpTee:"\u22a5",UpTeeArrow:"\u21a5",Uparrow:"\u21d1",Updownarrow:"\u21d5",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",Upsi:"\u03d2",Upsilon:"\u03a5",Uring:"\u016e",Uscr:"\ud835\udcb0",Utilde:"\u0168",Uuml:"\xdc",VDash:"\u22ab",Vbar:"\u2aeb",Vcy:"\u0412",Vdash:"\u22a9",Vdashl:"\u2ae6",Vee:"\u22c1",Verbar:"\u2016",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200a",Vfr:"\ud835\udd19",Vopf:"\ud835\udd4d",Vscr:"\ud835\udcb1",Vvdash:"\u22aa",Wcirc:"\u0174",Wedge:"\u22c0",Wfr:"\ud835\udd1a",Wopf:"\ud835\udd4e",Wscr:"\ud835\udcb2",Xfr:"\ud835\udd1b",Xi:"\u039e",Xopf:"\ud835\udd4f",Xscr:"\ud835\udcb3",YAcy:"\u042f",YIcy:"\u0407",YUcy:"\u042e",Yacute:"\xdd",Ycirc:"\u0176",Ycy:"\u042b",Yfr:"\ud835\udd1c",Yopf:"\ud835\udd50",Yscr:"\ud835\udcb4",Yuml:"\u0178",ZHcy:"\u0416",Zacute:"\u0179",Zcaron:"\u017d",Zcy:"\u0417",Zdot:"\u017b",ZeroWidthSpace:"\u200b",Zeta:"\u0396",Zfr:"\u2128",Zopf:"\u2124",Zscr:"\ud835\udcb5",aacute:"\xe1",abreve:"\u0103",ac:"\u223e",acE:"\u223e\u0333",acd:"\u223f",acirc:"\xe2",acute:"\xb4",acy:"\u0430",aelig:"\xe6",af:"\u2061",afr:"\ud835\udd1e",agrave:"\xe0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03b1",amacr:"\u0101",amalg:"\u2a3f",amp:"&",and:"\u2227",andand:"\u2a55",andd:"\u2a5c",andslope:"\u2a58",andv:"\u2a5a",ang:"\u2220",ange:"\u29a4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29a8",angmsdab:"\u29a9",angmsdac:"\u29aa",angmsdad:"\u29ab",angmsdae:"\u29ac",angmsdaf:"\u29ad",angmsdag:"\u29ae",angmsdah:"\u29af",angrt:"\u221f",angrtvb:"\u22be",angrtvbd:"\u299d",angsph:"\u2222",angst:"\xc5",angzarr:"\u237c",aogon:"\u0105",aopf:"\ud835\udd52",ap:"\u2248",apE:"\u2a70",apacir:"\u2a6f",ape:"\u224a",apid:"\u224b",apos:"'",approx:"\u2248",approxeq:"\u224a",aring:"\xe5",ascr:"\ud835\udcb6",ast:"*",asymp:"\u2248",asympeq:"\u224d",atilde:"\xe3",auml:"\xe4",awconint:"\u2233",awint:"\u2a11",bNot:"\u2aed",backcong:"\u224c",backepsilon:"\u03f6",backprime:"\u2035",backsim:"\u223d",backsimeq:"\u22cd",barvee:"\u22bd",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23b5",bbrktbrk:"\u23b6",bcong:"\u224c",bcy:"\u0431",bdquo:"\u201e",becaus:"\u2235",because:"\u2235",bemptyv:"\u29b0",bepsi:"\u03f6",bernou:"\u212c",beta:"\u03b2",beth:"\u2136",between:"\u226c",bfr:"\ud835\udd1f",bigcap:"\u22c2",bigcirc:"\u25ef",bigcup:"\u22c3",bigodot:"\u2a00",bigoplus:"\u2a01",bigotimes:"\u2a02",bigsqcup:"\u2a06",bigstar:"\u2605",bigtriangledown:"\u25bd",bigtriangleup:"\u25b3",biguplus:"\u2a04",bigvee:"\u22c1",bigwedge:"\u22c0",bkarow:"\u290d",blacklozenge:"\u29eb",blacksquare:"\u25aa",blacktriangle:"\u25b4",blacktriangledown:"\u25be",blacktriangleleft:"\u25c2",blacktriangleright:"\u25b8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20e5",bnequiv:"\u2261\u20e5",bnot:"\u2310",bopf:"\ud835\udd53",bot:"\u22a5",bottom:"\u22a5",bowtie:"\u22c8",boxDL:"\u2557",boxDR:"\u2554",boxDl:"\u2556",boxDr:"\u2553",boxH:"\u2550",boxHD:"\u2566",boxHU:"\u2569",boxHd:"\u2564",boxHu:"\u2567",boxUL:"\u255d",boxUR:"\u255a",boxUl:"\u255c",boxUr:"\u2559",boxV:"\u2551",boxVH:"\u256c",boxVL:"\u2563",boxVR:"\u2560",boxVh:"\u256b",boxVl:"\u2562",boxVr:"\u255f",boxbox:"\u29c9",boxdL:"\u2555",boxdR:"\u2552",boxdl:"\u2510",boxdr:"\u250c",boxh:"\u2500",boxhD:"\u2565",boxhU:"\u2568",boxhd:"\u252c",boxhu:"\u2534",boxminus:"\u229f",boxplus:"\u229e",boxtimes:"\u22a0",boxuL:"\u255b",boxuR:"\u2558",boxul:"\u2518",boxur:"\u2514",boxv:"\u2502",boxvH:"\u256a",boxvL:"\u2561",boxvR:"\u255e",boxvh:"\u253c",boxvl:"\u2524",boxvr:"\u251c",bprime:"\u2035",breve:"\u02d8",brvbar:"\xa6",bscr:"\ud835\udcb7",bsemi:"\u204f",bsim:"\u223d",bsime:"\u22cd",bsol:"\\",bsolb:"\u29c5",bsolhsub:"\u27c8",bull:"\u2022",bullet:"\u2022",bump:"\u224e",bumpE:"\u2aae",bumpe:"\u224f",bumpeq:"\u224f",cacute:"\u0107",cap:"\u2229",capand:"\u2a44",capbrcup:"\u2a49",capcap:"\u2a4b",capcup:"\u2a47",capdot:"\u2a40",caps:"\u2229\ufe00",caret:"\u2041",caron:"\u02c7",ccaps:"\u2a4d",ccaron:"\u010d",ccedil:"\xe7",ccirc:"\u0109",ccups:"\u2a4c",ccupssm:"\u2a50",cdot:"\u010b",cedil:"\xb8",cemptyv:"\u29b2",cent:"\xa2",centerdot:"\xb7",cfr:"\ud835\udd20",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",chi:"\u03c7",cir:"\u25cb",cirE:"\u29c3",circ:"\u02c6",circeq:"\u2257",circlearrowleft:"\u21ba",circlearrowright:"\u21bb",circledR:"\xae",circledS:"\u24c8",circledast:"\u229b",circledcirc:"\u229a",circleddash:"\u229d",cire:"\u2257",cirfnint:"\u2a10",cirmid:"\u2aef",cirscir:"\u29c2",clubs:"\u2663",clubsuit:"\u2663",colon:":",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2a6d",conint:"\u222e",copf:"\ud835\udd54",coprod:"\u2210",copy:"\xa9",copysr:"\u2117",crarr:"\u21b5",cross:"\u2717",cscr:"\ud835\udcb8",csub:"\u2acf",csube:"\u2ad1",csup:"\u2ad0",csupe:"\u2ad2",ctdot:"\u22ef",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22de",cuesc:"\u22df",cularr:"\u21b6",cularrp:"\u293d",cup:"\u222a",cupbrcap:"\u2a48",cupcap:"\u2a46",cupcup:"\u2a4a",cupdot:"\u228d",cupor:"\u2a45",cups:"\u222a\ufe00",curarr:"\u21b7",curarrm:"\u293c",curlyeqprec:"\u22de",curlyeqsucc:"\u22df",curlyvee:"\u22ce",curlywedge:"\u22cf",curren:"\xa4",curvearrowleft:"\u21b6",curvearrowright:"\u21b7",cuvee:"\u22ce",cuwed:"\u22cf",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232d",dArr:"\u21d3",dHar:"\u2965",dagger:"\u2020",daleth:"\u2138",darr:"\u2193",dash:"\u2010",dashv:"\u22a3",dbkarow:"\u290f",dblac:"\u02dd",dcaron:"\u010f",dcy:"\u0434",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21ca",ddotseq:"\u2a77",deg:"\xb0",delta:"\u03b4",demptyv:"\u29b1",dfisht:"\u297f",dfr:"\ud835\udd21",dharl:"\u21c3",dharr:"\u21c2",diam:"\u22c4",diamond:"\u22c4",diamondsuit:"\u2666",diams:"\u2666",die:"\xa8",digamma:"\u03dd",disin:"\u22f2",div:"\xf7",divide:"\xf7",divideontimes:"\u22c7",divonx:"\u22c7",djcy:"\u0452",dlcorn:"\u231e",dlcrop:"\u230d",dollar:"$",dopf:"\ud835\udd55",dot:"\u02d9",doteq:"\u2250",doteqdot:"\u2251",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22a1",doublebarwedge:"\u2306",downarrow:"\u2193",downdownarrows:"\u21ca",downharpoonleft:"\u21c3",downharpoonright:"\u21c2",drbkarow:"\u2910",drcorn:"\u231f",drcrop:"\u230c",dscr:"\ud835\udcb9",dscy:"\u0455",dsol:"\u29f6",dstrok:"\u0111",dtdot:"\u22f1",dtri:"\u25bf",dtrif:"\u25be",duarr:"\u21f5",duhar:"\u296f",dwangle:"\u29a6",dzcy:"\u045f",dzigrarr:"\u27ff",eDDot:"\u2a77",eDot:"\u2251",eacute:"\xe9",easter:"\u2a6e",ecaron:"\u011b",ecir:"\u2256",ecirc:"\xea",ecolon:"\u2255",ecy:"\u044d",edot:"\u0117",ee:"\u2147",efDot:"\u2252",efr:"\ud835\udd22",eg:"\u2a9a",egrave:"\xe8",egs:"\u2a96",egsdot:"\u2a98",el:"\u2a99",elinters:"\u23e7",ell:"\u2113",els:"\u2a95",elsdot:"\u2a97",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",emptyv:"\u2205",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",eng:"\u014b",ensp:"\u2002",eogon:"\u0119",eopf:"\ud835\udd56",epar:"\u22d5",eparsl:"\u29e3",eplus:"\u2a71",epsi:"\u03b5",epsilon:"\u03b5",epsiv:"\u03f5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2a96",eqslantless:"\u2a95",equals:"=",equest:"\u225f",equiv:"\u2261",equivDD:"\u2a78",eqvparsl:"\u29e5",erDot:"\u2253",erarr:"\u2971",escr:"\u212f",esdot:"\u2250",esim:"\u2242",eta:"\u03b7",eth:"\xf0",euml:"\xeb",euro:"\u20ac",excl:"!",exist:"\u2203",expectation:"\u2130",exponentiale:"\u2147",fallingdotseq:"\u2252",fcy:"\u0444",female:"\u2640",ffilig:"\ufb03",fflig:"\ufb00",ffllig:"\ufb04",ffr:"\ud835\udd23",filig:"\ufb01",fjlig:"fj",flat:"\u266d",fllig:"\ufb02",fltns:"\u25b1",fnof:"\u0192",fopf:"\ud835\udd57",forall:"\u2200",fork:"\u22d4",forkv:"\u2ad9",fpartint:"\u2a0d",frac12:"\xbd",frac13:"\u2153",frac14:"\xbc",frac15:"\u2155",frac16:"\u2159",frac18:"\u215b",frac23:"\u2154",frac25:"\u2156",frac34:"\xbe",frac35:"\u2157",frac38:"\u215c",frac45:"\u2158",frac56:"\u215a",frac58:"\u215d",frac78:"\u215e",frasl:"\u2044",frown:"\u2322",fscr:"\ud835\udcbb",gE:"\u2267",gEl:"\u2a8c",gacute:"\u01f5",gamma:"\u03b3",gammad:"\u03dd",gap:"\u2a86",gbreve:"\u011f",gcirc:"\u011d",gcy:"\u0433",gdot:"\u0121",ge:"\u2265",gel:"\u22db",geq:"\u2265",geqq:"\u2267",geqslant:"\u2a7e",ges:"\u2a7e",gescc:"\u2aa9",gesdot:"\u2a80",gesdoto:"\u2a82",gesdotol:"\u2a84",gesl:"\u22db\ufe00",gesles:"\u2a94",gfr:"\ud835\udd24",gg:"\u226b",ggg:"\u22d9",gimel:"\u2137",gjcy:"\u0453",gl:"\u2277",glE:"\u2a92",gla:"\u2aa5",glj:"\u2aa4",gnE:"\u2269",gnap:"\u2a8a",gnapprox:"\u2a8a",gne:"\u2a88",gneq:"\u2a88",gneqq:"\u2269",gnsim:"\u22e7",gopf:"\ud835\udd58",grave:"`",gscr:"\u210a",gsim:"\u2273",gsime:"\u2a8e",gsiml:"\u2a90",gt:">",gtcc:"\u2aa7",gtcir:"\u2a7a",gtdot:"\u22d7",gtlPar:"\u2995",gtquest:"\u2a7c",gtrapprox:"\u2a86",gtrarr:"\u2978",gtrdot:"\u22d7",gtreqless:"\u22db",gtreqqless:"\u2a8c",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\ufe00",gvnE:"\u2269\ufe00",hArr:"\u21d4",hairsp:"\u200a",half:"\xbd",hamilt:"\u210b",hardcy:"\u044a",harr:"\u2194",harrcir:"\u2948",harrw:"\u21ad",hbar:"\u210f",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22b9",hfr:"\ud835\udd25",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21ff",homtht:"\u223b",hookleftarrow:"\u21a9",hookrightarrow:"\u21aa",hopf:"\ud835\udd59",horbar:"\u2015",hscr:"\ud835\udcbd",hslash:"\u210f",hstrok:"\u0127",hybull:"\u2043",hyphen:"\u2010",iacute:"\xed",ic:"\u2063",icirc:"\xee",icy:"\u0438",iecy:"\u0435",iexcl:"\xa1",iff:"\u21d4",ifr:"\ud835\udd26",igrave:"\xec",ii:"\u2148",iiiint:"\u2a0c",iiint:"\u222d",iinfin:"\u29dc",iiota:"\u2129",ijlig:"\u0133",imacr:"\u012b",image:"\u2111",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22b7",imped:"\u01b5",in:"\u2208",incare:"\u2105",infin:"\u221e",infintie:"\u29dd",inodot:"\u0131",int:"\u222b",intcal:"\u22ba",integers:"\u2124",intercal:"\u22ba",intlarhk:"\u2a17",intprod:"\u2a3c",iocy:"\u0451",iogon:"\u012f",iopf:"\ud835\udd5a",iota:"\u03b9",iprod:"\u2a3c",iquest:"\xbf",iscr:"\ud835\udcbe",isin:"\u2208",isinE:"\u22f9",isindot:"\u22f5",isins:"\u22f4",isinsv:"\u22f3",isinv:"\u2208",it:"\u2062",itilde:"\u0129",iukcy:"\u0456",iuml:"\xef",jcirc:"\u0135",jcy:"\u0439",jfr:"\ud835\udd27",jmath:"\u0237",jopf:"\ud835\udd5b",jscr:"\ud835\udcbf",jsercy:"\u0458",jukcy:"\u0454",kappa:"\u03ba",kappav:"\u03f0",kcedil:"\u0137",kcy:"\u043a",kfr:"\ud835\udd28",kgreen:"\u0138",khcy:"\u0445",kjcy:"\u045c",kopf:"\ud835\udd5c",kscr:"\ud835\udcc0",lAarr:"\u21da",lArr:"\u21d0",lAtail:"\u291b",lBarr:"\u290e",lE:"\u2266",lEg:"\u2a8b",lHar:"\u2962",lacute:"\u013a",laemptyv:"\u29b4",lagran:"\u2112",lambda:"\u03bb",lang:"\u27e8",langd:"\u2991",langle:"\u27e8",lap:"\u2a85",laquo:"\xab",larr:"\u2190",larrb:"\u21e4",larrbfs:"\u291f",larrfs:"\u291d",larrhk:"\u21a9",larrlp:"\u21ab",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21a2",lat:"\u2aab",latail:"\u2919",late:"\u2aad",lates:"\u2aad\ufe00",lbarr:"\u290c",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298b",lbrksld:"\u298f",lbrkslu:"\u298d",lcaron:"\u013e",lcedil:"\u013c",lceil:"\u2308",lcub:"{",lcy:"\u043b",ldca:"\u2936",ldquo:"\u201c",ldquor:"\u201e",ldrdhar:"\u2967",ldrushar:"\u294b",ldsh:"\u21b2",le:"\u2264",leftarrow:"\u2190",leftarrowtail:"\u21a2",leftharpoondown:"\u21bd",leftharpoonup:"\u21bc",leftleftarrows:"\u21c7",leftrightarrow:"\u2194",leftrightarrows:"\u21c6",leftrightharpoons:"\u21cb",leftrightsquigarrow:"\u21ad",leftthreetimes:"\u22cb",leg:"\u22da",leq:"\u2264",leqq:"\u2266",leqslant:"\u2a7d",les:"\u2a7d",lescc:"\u2aa8",lesdot:"\u2a7f",lesdoto:"\u2a81",lesdotor:"\u2a83",lesg:"\u22da\ufe00",lesges:"\u2a93",lessapprox:"\u2a85",lessdot:"\u22d6",lesseqgtr:"\u22da",lesseqqgtr:"\u2a8b",lessgtr:"\u2276",lesssim:"\u2272",lfisht:"\u297c",lfloor:"\u230a",lfr:"\ud835\udd29",lg:"\u2276",lgE:"\u2a91",lhard:"\u21bd",lharu:"\u21bc",lharul:"\u296a",lhblk:"\u2584",ljcy:"\u0459",ll:"\u226a",llarr:"\u21c7",llcorner:"\u231e",llhard:"\u296b",lltri:"\u25fa",lmidot:"\u0140",lmoust:"\u23b0",lmoustache:"\u23b0",lnE:"\u2268",lnap:"\u2a89",lnapprox:"\u2a89",lne:"\u2a87",lneq:"\u2a87",lneqq:"\u2268",lnsim:"\u22e6",loang:"\u27ec",loarr:"\u21fd",lobrk:"\u27e6",longleftarrow:"\u27f5",longleftrightarrow:"\u27f7",longmapsto:"\u27fc",longrightarrow:"\u27f6",looparrowleft:"\u21ab",looparrowright:"\u21ac",lopar:"\u2985",lopf:"\ud835\udd5d",loplus:"\u2a2d",lotimes:"\u2a34",lowast:"\u2217",lowbar:"_",loz:"\u25ca",lozenge:"\u25ca",lozf:"\u29eb",lpar:"(",lparlt:"\u2993",lrarr:"\u21c6",lrcorner:"\u231f",lrhar:"\u21cb",lrhard:"\u296d",lrm:"\u200e",lrtri:"\u22bf",lsaquo:"\u2039",lscr:"\ud835\udcc1",lsh:"\u21b0",lsim:"\u2272",lsime:"\u2a8d",lsimg:"\u2a8f",lsqb:"[",lsquo:"\u2018",lsquor:"\u201a",lstrok:"\u0142",lt:"<",ltcc:"\u2aa6",ltcir:"\u2a79",ltdot:"\u22d6",lthree:"\u22cb",ltimes:"\u22c9",ltlarr:"\u2976",ltquest:"\u2a7b",ltrPar:"\u2996",ltri:"\u25c3",ltrie:"\u22b4",ltrif:"\u25c2",lurdshar:"\u294a",luruhar:"\u2966",lvertneqq:"\u2268\ufe00",lvnE:"\u2268\ufe00",mDDot:"\u223a",macr:"\xaf",male:"\u2642",malt:"\u2720",maltese:"\u2720",map:"\u21a6",mapsto:"\u21a6",mapstodown:"\u21a7",mapstoleft:"\u21a4",mapstoup:"\u21a5",marker:"\u25ae",mcomma:"\u2a29",mcy:"\u043c",mdash:"\u2014",measuredangle:"\u2221",mfr:"\ud835\udd2a",mho:"\u2127",micro:"\xb5",mid:"\u2223",midast:"*",midcir:"\u2af0",middot:"\xb7",minus:"\u2212",minusb:"\u229f",minusd:"\u2238",minusdu:"\u2a2a",mlcp:"\u2adb",mldr:"\u2026",mnplus:"\u2213",models:"\u22a7",mopf:"\ud835\udd5e",mp:"\u2213",mscr:"\ud835\udcc2",mstpos:"\u223e",mu:"\u03bc",multimap:"\u22b8",mumap:"\u22b8",nGg:"\u22d9\u0338",nGt:"\u226b\u20d2",nGtv:"\u226b\u0338",nLeftarrow:"\u21cd",nLeftrightarrow:"\u21ce",nLl:"\u22d8\u0338",nLt:"\u226a\u20d2",nLtv:"\u226a\u0338",nRightarrow:"\u21cf",nVDash:"\u22af",nVdash:"\u22ae",nabla:"\u2207",nacute:"\u0144",nang:"\u2220\u20d2",nap:"\u2249",napE:"\u2a70\u0338",napid:"\u224b\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266e",natural:"\u266e",naturals:"\u2115",nbsp:"\xa0",nbump:"\u224e\u0338",nbumpe:"\u224f\u0338",ncap:"\u2a43",ncaron:"\u0148",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2a6d\u0338",ncup:"\u2a42",ncy:"\u043d",ndash:"\u2013",ne:"\u2260",neArr:"\u21d7",nearhk:"\u2924",nearr:"\u2197",nearrow:"\u2197",nedot:"\u2250\u0338",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",nexist:"\u2204",nexists:"\u2204",nfr:"\ud835\udd2b",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2a7e\u0338",nges:"\u2a7e\u0338",ngsim:"\u2275",ngt:"\u226f",ngtr:"\u226f",nhArr:"\u21ce",nharr:"\u21ae",nhpar:"\u2af2",ni:"\u220b",nis:"\u22fc",nisd:"\u22fa",niv:"\u220b",njcy:"\u045a",nlArr:"\u21cd",nlE:"\u2266\u0338",nlarr:"\u219a",nldr:"\u2025",nle:"\u2270",nleftarrow:"\u219a",nleftrightarrow:"\u21ae",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2a7d\u0338",nles:"\u2a7d\u0338",nless:"\u226e",nlsim:"\u2274",nlt:"\u226e",nltri:"\u22ea",nltrie:"\u22ec",nmid:"\u2224",nopf:"\ud835\udd5f",not:"\xac",notin:"\u2209",notinE:"\u22f9\u0338",notindot:"\u22f5\u0338",notinva:"\u2209",notinvb:"\u22f7",notinvc:"\u22f6",notni:"\u220c",notniva:"\u220c",notnivb:"\u22fe",notnivc:"\u22fd",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2afd\u20e5",npart:"\u2202\u0338",npolint:"\u2a14",npr:"\u2280",nprcue:"\u22e0",npre:"\u2aaf\u0338",nprec:"\u2280",npreceq:"\u2aaf\u0338",nrArr:"\u21cf",nrarr:"\u219b",nrarrc:"\u2933\u0338",nrarrw:"\u219d\u0338",nrightarrow:"\u219b",nrtri:"\u22eb",nrtrie:"\u22ed",nsc:"\u2281",nsccue:"\u22e1",nsce:"\u2ab0\u0338",nscr:"\ud835\udcc3",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22e2",nsqsupe:"\u22e3",nsub:"\u2284",nsubE:"\u2ac5\u0338",nsube:"\u2288",nsubset:"\u2282\u20d2",nsubseteq:"\u2288",nsubseteqq:"\u2ac5\u0338",nsucc:"\u2281",nsucceq:"\u2ab0\u0338",nsup:"\u2285",nsupE:"\u2ac6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20d2",nsupseteq:"\u2289",nsupseteqq:"\u2ac6\u0338",ntgl:"\u2279",ntilde:"\xf1",ntlg:"\u2278",ntriangleleft:"\u22ea",ntrianglelefteq:"\u22ec",ntriangleright:"\u22eb",ntrianglerighteq:"\u22ed",nu:"\u03bd",num:"#",numero:"\u2116",numsp:"\u2007",nvDash:"\u22ad",nvHarr:"\u2904",nvap:"\u224d\u20d2",nvdash:"\u22ac",nvge:"\u2265\u20d2",nvgt:">\u20d2",nvinfin:"\u29de",nvlArr:"\u2902",nvle:"\u2264\u20d2",nvlt:"<\u20d2",nvltrie:"\u22b4\u20d2",nvrArr:"\u2903",nvrtrie:"\u22b5\u20d2",nvsim:"\u223c\u20d2",nwArr:"\u21d6",nwarhk:"\u2923",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",oS:"\u24c8",oacute:"\xf3",oast:"\u229b",ocir:"\u229a",ocirc:"\xf4",ocy:"\u043e",odash:"\u229d",odblac:"\u0151",odiv:"\u2a38",odot:"\u2299",odsold:"\u29bc",oelig:"\u0153",ofcir:"\u29bf",ofr:"\ud835\udd2c",ogon:"\u02db",ograve:"\xf2",ogt:"\u29c1",ohbar:"\u29b5",ohm:"\u03a9",oint:"\u222e",olarr:"\u21ba",olcir:"\u29be",olcross:"\u29bb",oline:"\u203e",olt:"\u29c0",omacr:"\u014d",omega:"\u03c9",omicron:"\u03bf",omid:"\u29b6",ominus:"\u2296",oopf:"\ud835\udd60",opar:"\u29b7",operp:"\u29b9",oplus:"\u2295",or:"\u2228",orarr:"\u21bb",ord:"\u2a5d",order:"\u2134",orderof:"\u2134",ordf:"\xaa",ordm:"\xba",origof:"\u22b6",oror:"\u2a56",orslope:"\u2a57",orv:"\u2a5b",oscr:"\u2134",oslash:"\xf8",osol:"\u2298",otilde:"\xf5",otimes:"\u2297",otimesas:"\u2a36",ouml:"\xf6",ovbar:"\u233d",par:"\u2225",para:"\xb6",parallel:"\u2225",parsim:"\u2af3",parsl:"\u2afd",part:"\u2202",pcy:"\u043f",percnt:"%",period:".",permil:"\u2030",perp:"\u22a5",pertenk:"\u2031",pfr:"\ud835\udd2d",phi:"\u03c6",phiv:"\u03d5",phmmat:"\u2133",phone:"\u260e",pi:"\u03c0",pitchfork:"\u22d4",piv:"\u03d6",planck:"\u210f",planckh:"\u210e",plankv:"\u210f",plus:"+",plusacir:"\u2a23",plusb:"\u229e",pluscir:"\u2a22",plusdo:"\u2214",plusdu:"\u2a25",pluse:"\u2a72",plusmn:"\xb1",plussim:"\u2a26",plustwo:"\u2a27",pm:"\xb1",pointint:"\u2a15",popf:"\ud835\udd61",pound:"\xa3",pr:"\u227a",prE:"\u2ab3",prap:"\u2ab7",prcue:"\u227c",pre:"\u2aaf",prec:"\u227a",precapprox:"\u2ab7",preccurlyeq:"\u227c",preceq:"\u2aaf",precnapprox:"\u2ab9",precneqq:"\u2ab5",precnsim:"\u22e8",precsim:"\u227e",prime:"\u2032",primes:"\u2119",prnE:"\u2ab5",prnap:"\u2ab9",prnsim:"\u22e8",prod:"\u220f",profalar:"\u232e",profline:"\u2312",profsurf:"\u2313",prop:"\u221d",propto:"\u221d",prsim:"\u227e",prurel:"\u22b0",pscr:"\ud835\udcc5",psi:"\u03c8",puncsp:"\u2008",qfr:"\ud835\udd2e",qint:"\u2a0c",qopf:"\ud835\udd62",qprime:"\u2057",qscr:"\ud835\udcc6",quaternions:"\u210d",quatint:"\u2a16",quest:"?",questeq:"\u225f",quot:'"',rAarr:"\u21db",rArr:"\u21d2",rAtail:"\u291c",rBarr:"\u290f",rHar:"\u2964",race:"\u223d\u0331",racute:"\u0155",radic:"\u221a",raemptyv:"\u29b3",rang:"\u27e9",rangd:"\u2992",range:"\u29a5",rangle:"\u27e9",raquo:"\xbb",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21e5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291e",rarrhk:"\u21aa",rarrlp:"\u21ac",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21a3",rarrw:"\u219d",ratail:"\u291a",ratio:"\u2236",rationals:"\u211a",rbarr:"\u290d",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298c",rbrksld:"\u298e",rbrkslu:"\u2990",rcaron:"\u0159",rcedil:"\u0157",rceil:"\u2309",rcub:"}",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201d",rdquor:"\u201d",rdsh:"\u21b3",real:"\u211c",realine:"\u211b",realpart:"\u211c",reals:"\u211d",rect:"\u25ad",reg:"\xae",rfisht:"\u297d",rfloor:"\u230b",rfr:"\ud835\udd2f",rhard:"\u21c1",rharu:"\u21c0",rharul:"\u296c",rho:"\u03c1",rhov:"\u03f1",rightarrow:"\u2192",rightarrowtail:"\u21a3",rightharpoondown:"\u21c1",rightharpoonup:"\u21c0",rightleftarrows:"\u21c4",rightleftharpoons:"\u21cc",rightrightarrows:"\u21c9",rightsquigarrow:"\u219d",rightthreetimes:"\u22cc",ring:"\u02da",risingdotseq:"\u2253",rlarr:"\u21c4",rlhar:"\u21cc",rlm:"\u200f",rmoust:"\u23b1",rmoustache:"\u23b1",rnmid:"\u2aee",roang:"\u27ed",roarr:"\u21fe",robrk:"\u27e7",ropar:"\u2986",ropf:"\ud835\udd63",roplus:"\u2a2e",rotimes:"\u2a35",rpar:")",rpargt:"\u2994",rppolint:"\u2a12",rrarr:"\u21c9",rsaquo:"\u203a",rscr:"\ud835\udcc7",rsh:"\u21b1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22cc",rtimes:"\u22ca",rtri:"\u25b9",rtrie:"\u22b5",rtrif:"\u25b8",rtriltri:"\u29ce",ruluhar:"\u2968",rx:"\u211e",sacute:"\u015b",sbquo:"\u201a",sc:"\u227b",scE:"\u2ab4",scap:"\u2ab8",scaron:"\u0161",sccue:"\u227d",sce:"\u2ab0",scedil:"\u015f",scirc:"\u015d",scnE:"\u2ab6",scnap:"\u2aba",scnsim:"\u22e9",scpolint:"\u2a13",scsim:"\u227f",scy:"\u0441",sdot:"\u22c5",sdotb:"\u22a1",sdote:"\u2a66",seArr:"\u21d8",searhk:"\u2925",searr:"\u2198",searrow:"\u2198",sect:"\xa7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",sfr:"\ud835\udd30",sfrown:"\u2322",sharp:"\u266f",shchcy:"\u0449",shcy:"\u0448",shortmid:"\u2223",shortparallel:"\u2225",shy:"\xad",sigma:"\u03c3",sigmaf:"\u03c2",sigmav:"\u03c2",sim:"\u223c",simdot:"\u2a6a",sime:"\u2243",simeq:"\u2243",simg:"\u2a9e",simgE:"\u2aa0",siml:"\u2a9d",simlE:"\u2a9f",simne:"\u2246",simplus:"\u2a24",simrarr:"\u2972",slarr:"\u2190",smallsetminus:"\u2216",smashp:"\u2a33",smeparsl:"\u29e4",smid:"\u2223",smile:"\u2323",smt:"\u2aaa",smte:"\u2aac",smtes:"\u2aac\ufe00",softcy:"\u044c",sol:"/",solb:"\u29c4",solbar:"\u233f",sopf:"\ud835\udd64",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\ufe00",sqcup:"\u2294",sqcups:"\u2294\ufe00",sqsub:"\u228f",sqsube:"\u2291",sqsubset:"\u228f",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25a1",square:"\u25a1",squarf:"\u25aa",squf:"\u25aa",srarr:"\u2192",sscr:"\ud835\udcc8",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22c6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03f5",straightphi:"\u03d5",strns:"\xaf",sub:"\u2282",subE:"\u2ac5",subdot:"\u2abd",sube:"\u2286",subedot:"\u2ac3",submult:"\u2ac1",subnE:"\u2acb",subne:"\u228a",subplus:"\u2abf",subrarr:"\u2979",subset:"\u2282",subseteq:"\u2286",subseteqq:"\u2ac5",subsetneq:"\u228a",subsetneqq:"\u2acb",subsim:"\u2ac7",subsub:"\u2ad5",subsup:"\u2ad3",succ:"\u227b",succapprox:"\u2ab8",succcurlyeq:"\u227d",succeq:"\u2ab0",succnapprox:"\u2aba",succneqq:"\u2ab6",succnsim:"\u22e9",succsim:"\u227f",sum:"\u2211",sung:"\u266a",sup1:"\xb9",sup2:"\xb2",sup3:"\xb3",sup:"\u2283",supE:"\u2ac6",supdot:"\u2abe",supdsub:"\u2ad8",supe:"\u2287",supedot:"\u2ac4",suphsol:"\u27c9",suphsub:"\u2ad7",suplarr:"\u297b",supmult:"\u2ac2",supnE:"\u2acc",supne:"\u228b",supplus:"\u2ac0",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2ac6",supsetneq:"\u228b",supsetneqq:"\u2acc",supsim:"\u2ac8",supsub:"\u2ad4",supsup:"\u2ad6",swArr:"\u21d9",swarhk:"\u2926",swarr:"\u2199",swarrow:"\u2199",swnwar:"\u292a",szlig:"\xdf",target:"\u2316",tau:"\u03c4",tbrk:"\u23b4",tcaron:"\u0165",tcedil:"\u0163",tcy:"\u0442",tdot:"\u20db",telrec:"\u2315",tfr:"\ud835\udd31",there4:"\u2234",therefore:"\u2234",theta:"\u03b8",thetasym:"\u03d1",thetav:"\u03d1",thickapprox:"\u2248",thicksim:"\u223c",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223c",thorn:"\xfe",tilde:"\u02dc",times:"\xd7",timesb:"\u22a0",timesbar:"\u2a31",timesd:"\u2a30",tint:"\u222d",toea:"\u2928",top:"\u22a4",topbot:"\u2336",topcir:"\u2af1",topf:"\ud835\udd65",topfork:"\u2ada",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",triangle:"\u25b5",triangledown:"\u25bf",triangleleft:"\u25c3",trianglelefteq:"\u22b4",triangleq:"\u225c",triangleright:"\u25b9",trianglerighteq:"\u22b5",tridot:"\u25ec",trie:"\u225c",triminus:"\u2a3a",triplus:"\u2a39",trisb:"\u29cd",tritime:"\u2a3b",trpezium:"\u23e2",tscr:"\ud835\udcc9",tscy:"\u0446",tshcy:"\u045b",tstrok:"\u0167",twixt:"\u226c",twoheadleftarrow:"\u219e",twoheadrightarrow:"\u21a0",uArr:"\u21d1",uHar:"\u2963",uacute:"\xfa",uarr:"\u2191",ubrcy:"\u045e",ubreve:"\u016d",ucirc:"\xfb",ucy:"\u0443",udarr:"\u21c5",udblac:"\u0171",udhar:"\u296e",ufisht:"\u297e",ufr:"\ud835\udd32",ugrave:"\xf9",uharl:"\u21bf",uharr:"\u21be",uhblk:"\u2580",ulcorn:"\u231c",ulcorner:"\u231c",ulcrop:"\u230f",ultri:"\u25f8",umacr:"\u016b",uml:"\xa8",uogon:"\u0173",uopf:"\ud835\udd66",uparrow:"\u2191",updownarrow:"\u2195",upharpoonleft:"\u21bf",upharpoonright:"\u21be",uplus:"\u228e",upsi:"\u03c5",upsih:"\u03d2",upsilon:"\u03c5",upuparrows:"\u21c8",urcorn:"\u231d",urcorner:"\u231d",urcrop:"\u230e",uring:"\u016f",urtri:"\u25f9",uscr:"\ud835\udcca",utdot:"\u22f0",utilde:"\u0169",utri:"\u25b5",utrif:"\u25b4",uuarr:"\u21c8",uuml:"\xfc",uwangle:"\u29a7",vArr:"\u21d5",vBar:"\u2ae8",vBarv:"\u2ae9",vDash:"\u22a8",vangrt:"\u299c",varepsilon:"\u03f5",varkappa:"\u03f0",varnothing:"\u2205",varphi:"\u03d5",varpi:"\u03d6",varpropto:"\u221d",varr:"\u2195",varrho:"\u03f1",varsigma:"\u03c2",varsubsetneq:"\u228a\ufe00",varsubsetneqq:"\u2acb\ufe00",varsupsetneq:"\u228b\ufe00",varsupsetneqq:"\u2acc\ufe00",vartheta:"\u03d1",vartriangleleft:"\u22b2",vartriangleright:"\u22b3",vcy:"\u0432",vdash:"\u22a2",vee:"\u2228",veebar:"\u22bb",veeeq:"\u225a",vellip:"\u22ee",verbar:"|",vert:"|",vfr:"\ud835\udd33",vltri:"\u22b2",vnsub:"\u2282\u20d2",vnsup:"\u2283\u20d2",vopf:"\ud835\udd67",vprop:"\u221d",vrtri:"\u22b3",vscr:"\ud835\udccb",vsubnE:"\u2acb\ufe00",vsubne:"\u228a\ufe00",vsupnE:"\u2acc\ufe00",vsupne:"\u228b\ufe00",vzigzag:"\u299a",wcirc:"\u0175",wedbar:"\u2a5f",wedge:"\u2227",wedgeq:"\u2259",weierp:"\u2118",wfr:"\ud835\udd34",wopf:"\ud835\udd68",wp:"\u2118",wr:"\u2240",wreath:"\u2240",wscr:"\ud835\udccc",xcap:"\u22c2",xcirc:"\u25ef",xcup:"\u22c3",xdtri:"\u25bd",xfr:"\ud835\udd35",xhArr:"\u27fa",xharr:"\u27f7",xi:"\u03be",xlArr:"\u27f8",xlarr:"\u27f5",xmap:"\u27fc",xnis:"\u22fb",xodot:"\u2a00",xopf:"\ud835\udd69",xoplus:"\u2a01",xotime:"\u2a02",xrArr:"\u27f9",xrarr:"\u27f6",xscr:"\ud835\udccd",xsqcup:"\u2a06",xuplus:"\u2a04",xutri:"\u25b3",xvee:"\u22c1",xwedge:"\u22c0",yacute:"\xfd",yacy:"\u044f",ycirc:"\u0177",ycy:"\u044b",yen:"\xa5",yfr:"\ud835\udd36",yicy:"\u0457",yopf:"\ud835\udd6a",yscr:"\ud835\udcce",yucy:"\u044e",yuml:"\xff",zacute:"\u017a",zcaron:"\u017e",zcy:"\u0437",zdot:"\u017c",zeetrf:"\u2128",zeta:"\u03b6",zfr:"\ud835\udd37",zhcy:"\u0436",zigrarr:"\u21dd",zopf:"\ud835\udd6b",zscr:"\ud835\udccf",zwj:"\u200d",zwnj:"\u200c"};function iNe({message:t,conversationUuid:s,onOpenArtifact:n,shareType:a}){const i=Mf(),r=JS(),o=ga(s),l=YK(s),c=e.useMemo(()=>{const e=function(e){let t=e.content;const s=e.content?.[0];"text"===s?.type&&""===s.text.trim()&&(t=t?.slice(1));return t}(t),s=function(e){return"voice"===e.input_mode||!0===e.content?.some(e=>"voice_note"===e.type||"bell"===e.type)}(t),c=e?.map(e=>function({block:e,citationsEnabled:t,shareType:s,onOpenArtifact:n,intl:a,isVoiceMessage:i,isRemoteCoworkSession:r,isSessionArchived:o}){if(i&&("voice_note"===e.type||"bell"===e.type))return e.text?{...e,text:nNe(e.text)}:e;if("text"!==e.type&&"connector_text"!==e.type)return e;const l="connector_text"===e.type?e.connector_text:e.text;let c=i?nNe(l):l;const d="text"===e.type&&!s&&!r&&void 0!==Que(c,e.voice_spoken_chars);"text"===e.type&&e.citations&&e.citations.length>0&&!d&&(c=wf(e.citations,c));const u={shareType:s,intl:a,isRemoteCoworkSession:r,isSessionArchived:o,hasArtifactHandler:void 0!==n},m=c;return c=lNe(m,u),"connector_text"===e.type?{...e,connector_text:c}:{...e,text:c,voice_spoken_chars:d?[...lNe([...m].slice(0,Math.max(0,e.voice_spoken_chars??0)).join(""),u)].length:void 0}}({block:oNe(rNe(e)),citationsEnabled:i,shareType:a,onOpenArtifact:n,intl:r,isVoiceMessage:s,isRemoteCoworkSession:o,isSessionArchived:l}))||[];return{...t,content:c}},[i,r,t,n,a,o,l]);return c}function rNe(e){return"connector_text"===e.type?{type:"thinking",thinking:e.connector_text,summaries:[],cut_off:!1}:e}function oNe(e){const t=Jp(e);return void 0===t?e:{type:"text",text:t,stopped:!0,collapsible:!1}}function lNe(e,{shareType:t,intl:s,isRemoteCoworkSession:n,isSessionArchived:a,hasArtifactHandler:i}){return bNe(i?Xp(e):ap(e),{shareType:t,intl:s,isRemoteCoworkSession:n,isSessionArchived:a,rendersAsMarkdown:!0})}const cNe=new Set(["\u200c","\u200d","\ufe0e","\ufe0f","\u200e","\u200f","\u202a","\u202b","\u202c","\u202d","\u202e","\u2066","\u2067","\u2068","\u2069","\n","\t"]),dNe=/[\p{Cc}\p{Cf}\p{Co}\p{Cn}\p{Cs}\p{DI}\p{Zl}\p{Zp}]/gu,uNe=/[\p{Zl}\p{Zp}]/u,mNe="\\u200C\\u200D\\uFE0E\\uFE0F\\u200E\\u200F\\u202A-\\u202E\\u2066-\\u2069\\u061C\\u0600-\\u0605\\u06DD\\u070F\\u08E2",pNe="\\u{E0020}-\\u{E007F}",fNe=new RegExp(`(?<!(?:(?![${mNe}${pNe}])[^\\x00-\\x7F])[${pNe}]{0,31})[${pNe}]+`,"gu"),gNe=new RegExp(`(?<!(?:(?![${mNe}])(?:[^\\x00-\\x7F]|[0-9])))[${mNe}](?!(?:(?![${mNe}])(?:[^\\x00-\\x7F]|[0-9])))`,"gu"),hNe=new RegExp(`[${mNe}${pNe}]`,"u");const CNe=/^[\p{Cc}\p{Cf}\p{Co}\p{Cn}\p{Cs}\p{DI}\p{Zl}\p{Zp}]$/u,xNe=new Set(["[","]","(",")","<",">","\\",'"',"'"]);function vNe(e,t,s){const n=e[t]?.[0]??0;return[n,e[s-1]?.[1]??n]}function yNe(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function bNe(e,{shareType:t,intl:s,isRemoteCoworkSession:n,isSessionArchived:a,rendersAsMarkdown:i}){let r=e;if(t){r=function(e){return e.replace(/\r\n?/g,"\n").replace(dNe,e=>cNe.has(e)||hNe.test(e)?e:uNe.test(e)?"\n":"").replace(fNe,"").replace(gNe,"")}(r);const[e,n]=i?["\\[","\\]"]:["[","]"],a="public"===t?`${e}${s.formatMessage({defaultMessage:"Files hidden in shared chats",id:"ANRUB+TiTq"})}${n}`:`${e}${s.formatMessage({defaultMessage:"Working file hidden in shared chat",id:"oqkUomHXYH"})}${n}`,{canonical:o,structuralText:l,sourceSpans:c}=function(e){const t=/^&([A-Za-z][A-Za-z0-9]{1,47});/;let s="",n="";const a=[];let i=0;for(;i<e.length;){let r=null,o=1;if("\\"===e[i]&&i+1<e.length){const t=e[i+1];/[!-/:-@[-`{-~]/.test(t)&&(r=t,o=2)}else if("&"===e[i]){const s=/^&#(?:x([0-9a-f]{1,6})|([0-9]{1,7}));/i.exec(e.slice(i,i+12));if(s){const e=s[1]?parseInt(s[1],16):parseInt(s[2],10);if(e>0&&e<=1114111)try{r=String.fromCodePoint(e),o=s[0].length}catch{r=null}}else{const s=t.exec(e.slice(i,i+50)),n=s&&Object.hasOwn(aNe,s[1])?aNe[s[1]]:void 0;s&&"string"==typeof n&&(r=n,o=s[0].length)}}const l=[i,i+o],c=(r??e.slice(i,i+o)).normalize("NFKC");for(const t of c){if("\n"===t||"\t"===t){if(null!==r)continue}else if(CNe.test(t))continue;const c=null===r&&1===o&&t===e[i]&&1===t.length;for(let e=0;e<t.length;e++)s+=t[e],n+=!c&&xNe.has(t[e])?"\uffff":t[e],a.push(l)}i+=o}return{canonical:s,structuralText:n,sourceSpans:a}}(r),d=[],{markdownSpans:u}=Vde(o,l);for(const s of u){Wde(s.destination).every(e=>ele(e.text,t))||d.push({start:s.index,end:s.end})}const{definitions:m,usages:p}=qde(o,l,!0,{text:r,spans:c}),f=new Set,g=e=>!Wde(e).every(e=>ele(e.text,t));for(const t of m)(g(t.destination)||void 0!==t.rendererDestination&&g(t.rendererDestination))&&(d.push({start:t.index,end:t.end}),f.add(t.normLabel));if(f.size>0)for(const t of p)(""===t.normLabel||f.has(t.normLabel))&&d.push({start:t.index,end:t.end});const h=/computer:(?:\/{2,3}(?!\/)|\/{4,})(?=[^\s[]*[\p{L}\p{N}_])[^\s[]+/giu;let C;for(;null!==(C=h.exec(l));){const e=C[0],s=C.index;for(const n of Wde(e)){ele(o.slice(s+n.start,s+n.start+n.text.length),t)||d.push({start:s+n.start,end:s+n.start+n.text.length})}}d.sort((e,t)=>e.start-t.start);const x=[];for(const t of d){const e=x[x.length-1];e&&t.start<=e.end?e.end=Math.max(e.end,t.end):x.push({...t})}for(let t=x.length-1;t>=0;t--){const[e,s]=vNe(c,x[t].start,x[t].end);r=r.slice(0,e)+a+r.slice(s)}}return n&&/computer\\?:[\\/]/i.test(r)&&(r=function(e,t){const s=e=>Wde(e).every(e=>Lp(e.text,void 0,t));let n=e.replace(/\r\n?/g,"\n");for(const o of Ude(n)){if(s(o))continue;const e=yNe(o);n=n.replace(new RegExp(`\\[(${Hde})\\]\\(${e}\\)`,"g"),"$1")}for(let o=0;o<25;o++){const e=Vde(n).markdownSpans.filter(e=>e.balanced&&!s(e.destination)).sort((e,t)=>t.index-e.index);if(0===e.length)break;let t=1/0,a=!1;for(const s of e){if(s.end>t){a=!0;continue}const e=n.slice(s.index+1,s.labelSep);n=n.slice(0,s.index)+e+n.slice(s.end),t=s.index}if(!a)break}const{definitions:a,usages:i}=qde(n),r=new Set;for(const o of a)s(o.destination)||r.add(o.normLabel);if(r.size>0){let e=1/0;for(let t=i.length-1;t>=0;t--){const s=i[t];if(""!==s.normLabel&&!r.has(s.normLabel))continue;if(s.end>e)continue;const a="!"===n[s.index]?s.index+1:s.index,o=n.slice(a+1,s.labelEnd);n=n.slice(0,s.index)+o+n.slice(s.end),e=s.index}}return n}(r,a)),r}function kNe({text:e}){return t.jsx("div",{className:"relative pl-3 pt-2 before:absolute before:top-2 before:bottom-0 before:left-0 before:w-[3px] before:rounded-full before:bg-border-300",children:t.jsx("div",{className:"text-[11px] leading-[14.5px] text-text-500/80 whitespace-pre-wrap break-words line-clamp-3",children:e})})}function wNe({reply:e,transformProse:s}){const n=JS(),a=e.fromCollaborator?e.authorName??n.formatMessage({defaultMessage:"Reviewer",id:"Q058X+CmLx"}):null;return t.jsxs("div",{className:"flex flex-col gap-0.5 border-l-2 border-border-300 pl-2",children:[null!==a&&t.jsx("div",{className:"text-xs text-text-400 truncate",children:a}),t.jsx("div",{className:"text-sm text-text-200 whitespace-pre-wrap break-words",children:s?s(e.text):e.text})]})}function MNe({section:s,rawOriginal:n,transformProse:a,pathLabel:i}){const[r,o]=e.useState(!1),l=Wx("text-quote"===s.kind?s.exact:s.snippet),c=s.fromCollaborator,d=nm(s.path),u=i?i(s.path):null,m="text-quote"===s.kind&&yH(d).displayName||d;return t.jsxs("div",{className:"group/card flex flex-col gap-2 rounded-lg border-0.5 border-[hsl(var(--border-300)/0.25)] bg-bg-000 px-3 py-2.5 shadow-sm shadow-always-black/5",children:[c&&t.jsx("div",{className:"truncate text-xs text-text-400",children:s.authorName||t.jsx(XS,{defaultMessage:"Reviewer",id:"Q058X+CmLx"})}),l&&t.jsx(kNe,{text:l}),c&&""!==s.request.trim()&&t.jsx("div",{className:"text-sm text-text-100 whitespace-pre-wrap break-words",children:a?a(s.request):s.request}),s.replies.map((e,s)=>t.jsx(wNe,{reply:e,transformProse:a},s)),t.jsxs("div",{className:"mt-2 flex items-center gap-2 min-w-0",children:[t.jsx("span",{title:u??d,className:"shrink min-w-0 truncate rounded-[4px] border-0.5 border-[hsl(var(--border-300)/0.25)] bg-bg-000 px-1.5 py-0.5 text-xs font-medium text-text-300 shadow-sm shadow-always-black/5",children:u??t.jsxs(t.Fragment,{children:[m,"plaintext"===s.kind&&`:${s.lineRange}`]})}),void 0!==n&&t.jsx("button",{type:"button",onClick:()=>o(e=>!e),"aria-expanded":r,className:dt("ml-auto shrink-0 whitespace-nowrap text-xs text-text-400","hover:text-text-200","transition-opacity duration-200 ease-[cubic-bezier(0.4,0,0.2,1)]",r?"opacity-100":"opacity-0 group-hover/card:opacity-100 focus-visible:opacity-100 [@media(hover:none)]:opacity-100"),children:r?t.jsx(XS,{defaultMessage:"Hide original",id:"RX8AXCY86E"}):t.jsx(XS,{defaultMessage:"Show original",id:"F2tE1Gjj+y"})})]}),r&&void 0!==n&&t.jsx("div",{className:"rounded-md border border-border-300 bg-bg-100 p-2 text-xs text-text-200 whitespace-pre-wrap break-words",children:n})]})}const _Ne=e.memo(({parsed:e,rawOriginal:s,transformProse:n,pathLabel:a,className:i})=>{const r=e.groups.flatMap(e=>e.sections);return t.jsx("div",{className:dt("mb-2 flex max-w-[min(320px,85%)] flex-col gap-2",i),children:r.map((e,i)=>t.jsx(MNe,{section:e,rawOriginal:i===r.length-1?s:void 0,transformProse:n,pathLabel:a},"text-quote"===e.kind?e.id||`tq-${i}`:`${e.path}:${e.lineRange}:${i}`))})});_Ne.displayName="ReviewCommentAttachments";const jNe=e.memo(function({variant:e="gutter",sentAt:s}){const n=JS(),a=s?n.formatMessage({defaultMessage:"Not delivered \xb7 {time}",id:"z9hwfZywT7"},{time:s}):n.formatMessage({defaultMessage:"Not delivered",id:"0x75v+sDBR"});return t.jsx(iN,{side:"top",content:a,children:t.jsx("span",{"data-testid":"failed-send-indicator",role:"img","aria-label":a,tabIndex:0,className:"gutter"===e?"absolute left-full top-1/2 ml-2.5 -translate-y-1/2 text-danger-000 rounded-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-danger-000":"text-danger-000 rounded-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-danger-000",children:t.jsx($L,{name:"WarningCircle",size:"md"})})})});function SNe({file:s}){const[n,a]=e.useState(!s.cloudRefPromise);return e.useEffect(()=>{const e=()=>a(!0);s.cloudRefPromise?.then(e,e)},[s.cloudRefPromise]),t.jsx(JB,{file:s,isLoading:!n})}const LNe=e.memo(function({files:s,updatedMessage:n,message:a,isLastMessage:i,isInteractive:r,editable:o,startEdit:l,onRetry:c,isResearchPending:d,isTemporary:u,shareType:m,hasArtifactHandler:p,conversationSettings:f,messageWarningPropsFromParent:g,previousMessage:h,isStreaming:C,isConversationStreaming:x,selectAttachment:v,showSharedImageMissing:y,showSharedFileMissing:b,...k}){const w=e.useMemo(()=>n.content?.filter(e=>"image"===e.type)??[],[n.content]),M=y||b||n.attachments.length+s.length+w.length+(n?.sync_sources?.length||0)>0,[_,j]=e.useState(()=>s.some(e=>e.cloudRefPromise));e.useEffect(()=>{s.some(e=>e.cloudRefPromise)&&Promise.allSettled(s.map(e=>e.cloudRefPromise)).then(()=>j(!1))},[s]);const S=e.useMemo(()=>{const e=(a.content??[]).filter(e=>"text"===e.type).map(e=>e.text),t=(n.content??[]).filter(e=>"text"===e.type).length;return{rawTexts:e,offset:Math.max(0,e.length-t)}},[a.content,n.content]),L=JS(),N=ga(k.conversationUuid),I=YK(k.conversationUuid),T=e.useCallback(e=>lNe(e,{shareType:m,intl:L,isRemoteCoworkSession:N,isSessionArchived:I,hasArtifactHandler:p??!1}),[m,L,N,I,p]),A=e.useCallback(e=>bNe(e,{shareType:m,intl:L,isRemoteCoworkSession:N,isSessionArchived:I}),[m,L,N,I]),E=e.useCallback(e=>"Artifact"!==e&&m&&!ele(e,m)?"public"===m?L.formatMessage({defaultMessage:"Files hidden in shared chats",id:"ANRUB+TiTq"}):L.formatMessage({defaultMessage:"Working file hidden in shared chat",id:"oqkUomHXYH"}):null,[m,L]),R=e.useMemo(()=>{const e=[];let t=-1;return{bubbleTexts:(n.content??[]).map((s,n)=>{if("text"!==s.type)return null;t+=1;const a=S.rawTexts[t+S.offset]??s.text,i=zoe(a);return i?(e.push({blockIndex:n,parsed:i,raw:a}),T(Zoe(i))):q4(s.text)}),attachments:e}},[n.content,S,T]),D=R.bubbleTexts.some(Boolean),H=e.useMemo(()=>{const e=R.attachments[0]?.parsed;return Qae(e?A(Zoe(e)):q4(A(Yae(a.content))))},[a.content,R,A]),P="voice"===n.input_mode||"speech_input"===n.input_mode,[U,O]=e.useState(!1),[V,z]=e.useState(!1),Z=e.useRef(null);e.useEffect(()=>{const e=Z.current;if(!e)return;const t=()=>{z(e.scrollHeight>300)};t();const s=new ResizeObserver(t);return s.observe(e),()=>s.disconnect()},[n.uuid]);const B=e.useCallback(()=>{O(e=>!e)},[]),q=e.useMemo(()=>a.sync_sources?.filter(e=>e.type===He.GDRIVE).map(e=>e.config.uri)??[],[a.sync_sources]),W=$s(),$=e.useMemo(()=>a.sync_sources?.filter(e=>e.type===He.MCP_RESOURCES).map(e=>e.config.resource.uri)??[],[a.sync_sources]),G=$x(He.GDRIVE),[K,Y]=e.useState([]);e.useEffect(()=>{if(!W||!G||0===$.length)return void Y([]);let e=!1;return(async()=>{try{const t=Ss(G.uuid),s=await Promise.all($.map(async e=>{try{const s=await t.readResource({uri:e}),n=s?.contents?.[0];if(!n||!("text"in n)||!n.text)return{data:null};const a=n.text,i=Os(n);return{data:{uri:e,title:i,mime_type:n.mimeType||"text/plain",owner:"",text:a,size:a.length}}}catch(s){return F(new Error(`MCP resource fetch failed: ${s instanceof Error?s.name:typeof s}`),{source:"fetch_mcp_resource",component:"HumanMessage",serverUuid:G.uuid,errorCode:"number"==typeof s?.code?s.code:void 0}),{data:null}}}));e||Y(s)}catch(t){F(new Error(`MCP resource batch fetch failed: ${t instanceof Error?t.name:typeof t}`),{source:"fetch_mcp_resources_batch",component:"HumanMessage",serverUuid:G.uuid,errorCode:"number"==typeof t?.code?t.code:void 0}),e||Y([])}})(),()=>{e=!0}},[W,G,$]);const Q=HE(q),J=e.useMemo(()=>[...Q,...K],[Q,K]),X=e.useMemo(()=>J.some(({data:e})=>e&&function(e){return/\[image\d*\]/.test(e.text)}(e)),[J]),ee=e.useMemo(()=>a.created_at?new Date(a.created_at).toLocaleString(void 0,{dateStyle:"medium",timeStyle:"short"}):"",[a.created_at]),te=e.useMemo(()=>{if(!a.created_at)return"";const e=new Date(a.created_at),t=new Date,s=e.toDateString()===t.toDateString(),n=e.getFullYear()===t.getFullYear();return s?e.toLocaleTimeString(void 0,{timeStyle:"short"}):n?e.toLocaleDateString(void 0,{month:"short",day:"numeric"}):e.toLocaleDateString(void 0,{month:"short",day:"numeric",year:"numeric"})},[a.created_at]);return t.jsxs("div",{className:dt("mb-1 mt-[var(--msg-gap,1.5rem)] group",a.sendFailed&&"pr-7"),children:[H&&t.jsx("h2",{"data-find-omitted":"",className:"sr-only select-none",children:t.jsx(XS,{defaultMessage:"You said: {prompt}",id:"x4RlP6c9q1",values:{prompt:H}})}),M&&t.jsxs("div",{className:"gap-2 mx-0.5 mb-3 flex flex-wrap justify-end",children:[s.map((e,s)=>t.jsx(SNe,{file:e},s)),n.attachments.map((e,s)=>t.jsx(JB,{file:e,handleClick:()=>v?.(e)},s)),n?.sync_sources?.map(e=>t.jsx(m9,{uuid:e.uuid,syncSource:e},e.uuid)),w.map((e,s)=>t.jsx(USe,{block:e},`msg-image-${s}`)),y&&t.jsx(vq,{}),b&&!y&&t.jsx(yq,{})]}),t.jsxs("div",{className:"flex flex-col items-end gap-1",children:[R.attachments.map(({blockIndex:e,parsed:s,raw:n})=>t.jsx(_Ne,{parsed:s,rawOriginal:m?void 0:n,transformProse:A,pathLabel:E,className:a.pending&&!a.sendFailed?"animate-pulse":void 0},e)),D&&t.jsxs($ae,{className:"!px-[var(--msg-bubble-px,1rem)] max-w-[85%]",...C?Bae:zae,children:[t.jsx("div",{className:"flex flex-row gap-2 relative",children:t.jsxs("div",{className:"flex-1",children:[t.jsxs("div",{ref:Z,"data-testid":"user-message",className:dt(Wae,"grid grid-cols-1 gap-2 relative [&_ul]:!space-y-0 [&_ol]:!space-y-0 [&_ul]:pl-8 [&_ol]:pl-8",{italic:P||a.sendFailed,"text-text-500 animate-pulse":(a.pending||_)&&!a.sendFailed,"text-text-500":a.sendFailed}),style:{maxHeight:U||!V?"none":"200px",overflow:"hidden",position:"relative"},children:[R.bubbleTexts.map((e,s)=>e?t.jsx(eNe,{text:e},s):null),!U&&V&&t.jsx("div",{className:"absolute bottom-0 left-0 right-0 h-12 bg-gradient-to-t from-bg-300 to-transparent pointer-events-none"})]}),V&&t.jsx("button",{onClick:B,className:"pb-3 pt-1 text-xs text-text-500/80 hover:text-text-100 transition w-3/4 text-left rounded-lg",children:U?t.jsx(XS,{defaultMessage:"Show less",id:"qyJtWyZ0yt"}):t.jsx(XS,{defaultMessage:"Show more",id:"aWpBzjCXKS"})})]})}),t.jsx(Vae,{message:a,isLastMessage:i,hasDriveDocWithImages:X,conversationSettings:f,messageWarningPropsFromParent:g}),a.sendFailed&&t.jsx(jNe,{sentAt:te||void 0})]}),!D&&R.attachments.length>0&&t.jsx("div",{className:"max-w-[85%]",children:t.jsx(Vae,{message:a,isLastMessage:i,hasDriveDocWithImages:X,conversationSettings:f,messageWarningPropsFromParent:g})}),!D&&a.sendFailed&&t.jsx(jNe,{variant:"inline",sentAt:te||void 0}),t.jsx(Xie,{message:a,previousMessage:h,isLastMessage:i,isInteractive:r,isConversationStreaming:x,editMessage:l,editable:o,onRetry:c,isResearchPending:d,isTemporary:u,showArtifacts:f?.preview_feature_uses_artifacts??!1,positionMode:"flow",timestamp:te,fullTimestamp:ee,...k})]})]})});function NNe(){return t.jsx("div",{className:"flex justify-center py-2",children:t.jsx("span",{className:"text-sm text-text-400 italic",children:t.jsx(XS,{defaultMessage:"Claude was nudged",id:"/aLBWz8ek0"})})})}LNe.displayName="HumanMessage";const INe=e.memo(function({enabled:e,conversationUuid:s,children:n}){return e?t.jsx(Lae,{conversationUuid:s,children:n}):t.jsx(t.Fragment,{children:n})});const TNe=e.memo(function({lastHumanMessageRef:s,lastAssistantMessageRef:n,isLastMessage:a,isLastHumanMessage:i,isLastAssistantMessage:r,selectAttachment:o,isInteractive:l=!0,onOpenArtifact:c,onOpenWiggleFile:d,onResize:u,editable:p,showEditPencil:f=!0,conversationSettings:g,messageWarningProps:h,showSharedImageMissing:C=!1,showSharedFileMissing:x=!1,shareType:v=null,isTemporary:y=!1,actionEmitter:b,onSendContinue:k,isResearchPending:w=!1,isSessionConversation:M=!1,isCoworkSession:_=!1,modelOverride:j,...S}){const{messageUuid:L="",message:N,previousMessageUuid:I="",previousMessage:T,isStreaming:A=!1}=S,E=Gx(L),R=Gx(I),D=N||E,H=T||(I?R:void 0),P=function(t){const s=e.useRef(1);return e.useEffect(()=>{t||(s.current+=1)},[t]),s.current}(a),U=nI(e=>e.fullscreenMessageUuid)===L,O=iNe({message:D,conversationUuid:S.conversationUuid,onOpenArtifact:c,shareType:v}),F=e.useMemo(()=>O,[O]),V=F!==O,z=Mae(),Z=e.useCallback((e,t)=>{z("retry",j)||b?.emit("retry",{parent_message_uuid:e,paprika_mode:t,modelOverride:j})},[b,j,z]),B=e.useMemo(()=>Gz(D),[D]),q="human"===O.sender,W="assistant"===O.sender,$=m(),G=e.useMemo(()=>null,[q,$,D.content]),K=Me(),Y=a&&A,Q=zm(S.conversationUuid,{enabled:a&&W}),J=Boolean(O.content&&O.content[0]||O.metadata?.is_resume_completion_placeholder_message),X=Boolean(O.content?.some(e=>"thinking"!==e.type&&"redacted_thinking"!==e.type)||O.metadata?.is_resume_completion_placeholder_message),ee=W&&a&&("stopping"===Q||"retrying"===Q&&!X),te=function(e,t){if(!t||"human"!==e.sender)return!1;if(!e.content||!Array.isArray(e.content)||1!==e.content.length)return!1;const s=e.content[0];return!!(s&&"object"==typeof s&&"type"in s&&"text"===s.type&&"text"in s&&"string"==typeof s.text)&&/^<claude_restart_nudge>[\s\S]*<\/claude_restart_nudge>$/.test(s.text.trim())}(O,M),se=function(e,t){if(!t||"human"!==e.sender)return null;if(!Array.isArray(e.content)||0===e.content.length)return null;const s=e.content[0];if(!s||"object"!=typeof s||!("type"in s)||"text"!==s.type||!("text"in s)||"string"!=typeof s.text)return null;const n=s.text.trim();if(!/^<scheduled-task[\s\S]*<\/scheduled-task>$/.test(n))return null;const a=/^<scheduled-task\s+name="([^"]+)"/.exec(n);return a?.[1]??null}(O,_),ne=Kx(O.uuid,S.conversationUuid),{isUserEditing:ae,currentEdit:ie,setCurrentEdit:re,startEdit:oe,finishEdit:le,cancelEdit:ce,requestedModelOverride:de,setRequestedModelOverride:ue}=function({editable:t,updatedMessage:s,actionEmitter:n,modelOverride:a}){const[i,r]=e.useState(!1),[o,l]=e.useState(""),[c,d]=e.useState(),u=e.useRef(a);e.useEffect(()=>{void 0!==c&&a!==u.current&&d(a),u.current=a},[a,c]);let m="";const p=s.content?.find(e=>"text"===e.type);p&&"text"in p&&(m=p.text);const f=e.useCallback(e=>{t&&(l(m),d("string"==typeof e?e:void 0),r(!0))},[t,m]),g=Mae(),h=e.useCallback(()=>{0!==o.length&&n&&(g("edit",c??a)||(n.emit("edit",{message:s,text:o,modelOverride:c??a,isModelRetry:void 0!==c}),r(!1),l(""),d(void 0)))},[o,n,s,a,c,g]),C=e.useCallback(()=>{r(!1),l(""),d(void 0)},[]);return{isUserEditing:i,currentEdit:o,setCurrentEdit:l,startEdit:f,finishEdit:h,cancelEdit:C,requestedModelOverride:c,setRequestedModelOverride:d}}({editable:p&&!V,actionEmitter:b,updatedMessage:O,modelOverride:j});return e.useEffect(()=>{ne&&(ae?ne.modelOverride&&ue(ne.modelOverride):oe(ne.modelOverride),Rn.getState().clear())},[ne,oe,ae,ue]),ae?t.jsx(PSe,{isStreaming:A,conversationUuid:S.conversationUuid,currentEdit:ie,setCurrentEdit:re,finishEdit:le,cancelEdit:ce,requestedModelOverride:de,message:O,selectAttachment:o,showSharedImageMissing:C,showSharedFileMissing:x,isCoworkSession:_}):te?t.jsx(NNe,{}):se?t.jsx("div",{className:"mb-1 mt-6",children:t.jsx(wae,{taskId:se,label:t.jsx(XS,{defaultMessage:"Ran scheduled task",id:"JZVujAXOEx"})})}):t.jsxs("div",{ref:i?s:a?n:null,"data-test-render-count":P,children:[q&&G&&t.jsx(kae,{parsed:G}),q&&!G&&t.jsx(INe,{enabled:!K,conversationUuid:S.conversationUuid,children:t.jsx(LNe,{files:B,updatedMessage:F,message:D,hasArtifactHandler:void 0!==c,isLastMessage:a,isLastHumanMessage:i,isInteractive:l,editable:f&&p&&!V,startEdit:oe,onRetry:Z,isResearchPending:w,isTemporary:y,shareType:v,conversationSettings:g,messageWarningPropsFromParent:h,previousMessage:H,selectAttachment:o,showSharedImageMissing:C,showSharedFileMissing:x,...S,isStreaming:A})}),W&&a&&!J&&!ee&&!Y&&"user_canceled"===O.stop_reason&&t.jsx(soe,{variant:"user_canceled",conversationUuid:S.conversationUuid,onRetry:l?()=>Z(O.parent_message_uuid??void 0):void 0}),W&&!J&&!ee&&!Y&&"error"===O.stop_reason&&t.jsx(Vae,{message:O,isLastMessage:a,conversationUuid:S.conversationUuid,conversationSettings:g,onRetry:l?Z:void 0}),W&&a&&!K&&(Y&&!J||ee)&&t.jsx(Dae,{}),W&&J&&!ee&&t.jsx(HSe,{isThisMessageStreaming:Y,isLastMessage:a,isLastHumanMessage:!1,isLastAssistantMessage:r,updatedMessage:O,onResize:u,previousMessage:H,message:D,isInteractive:l,onRetry:Z,isResearchPending:w,isTemporary:y,conversationSettings:g,messageWarningPropsFromParent:h,onSendContinue:k,onOpenArtifact:c,onOpenWiggleFile:d,shareType:v,isFullscreenMessage:U,...S,isStreaming:A})]})});function ANe(e){const s=$i(e=>e.model);return t.jsx(TNe,{...e,modelOverride:s})}function ENe(e){return["orbit_settings",{orgUuid:e}]}function RNe(){const e=y("tibro_enabled"),{data:t,isLoading:s}=function({enabled:e=!0}={}){const{activeOrganization:t}=v(),s=t?.uuid;return B(`/api/organizations/${s??""}/orbit/settings`,{queryKey:ENe(s),enabled:e&&!!s,staleTime:6e4,meta:{noToast:!0}})}({enabled:e}),n=t?.enabled??!1;return{eligible:e,optedIn:n,enabled:e&&n,timezone:t?.timezone??null,isLoading:s}}function DNe(e,t,s,n){e.setQueryData(["orbit_briefings",{orgUuid:t}],e=>e?{...e,data:e.data.map(e=>({...e,insights:e.insights.map(e=>e.insight_uuid===s?{...e,feedback:n}:e)}))}:e)}function HNe(e){return""===e||"."===e||".."===e?"invalid-orbit-id":encodeURIComponent(e)}function PNe(e,{enabled:t=!0}={}){const{activeOrganization:s}=v(),n=s?.uuid;return B(`/api/organizations/${n??""}/orbit/actions/${HNe(e)}`,{queryKey:["orbit_action_thread",{orgUuid:n,actionUuid:e}],enabled:t&&!!n&&!!e,staleTime:3e4,retry:!1,meta:{noToast:!0}})}function UNe(e,t){return["orbit_feedback",{orgUuid:e,insightUuid:t}]}function ONe(e){const{activeOrganization:t}=v(),s=t?.uuid;return b(`/api/organizations/${s??""}/orbit/insights/${HNe(e)}/engagement`,"POST",{meta:{noToast:!0}})}const FNe=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,VNe=["inform","task","chat"],zNe=["disabled","none","generating","ready","failed","no_tools"],ZNe=["read","write","list","search"];function BNe(e){return null==e||"string"==typeof e}function qNe(e){if("object"!=typeof e||null===e)return!1;const t=e;return"string"==typeof t.op&&ZNe.includes(t.op)&&BNe(t.path)&&BNe(t.excerpt)&&BNe(t.query)&&"boolean"==typeof t.succeeded}function WNe(e){if("object"!=typeof e||null===e)return null;const t=e;if("string"!=typeof t.briefing_uuid)return null;if("string"!=typeof t.status||!zNe.includes(t.status))return null;if(!Array.isArray(t.insights))return null;const s=t.insights,n=new Set,a=new Set,i=s.filter(e=>{if("object"!=typeof e||null===e)return!1;const t=e;if("string"!=typeof t.insight_uuid||!FNe.test(t.insight_uuid)||n.has(t.insight_uuid.toLowerCase()))return!1;if(!("string"==typeof t.kind&&VNe.includes(t.kind)&&"string"==typeof t.name&&"string"==typeof t.context&&"string"==typeof t.source&&BNe(t.suggestion)&&BNe(t.why)&&BNe(t.topic_key)))return!1;const s=new Set;if(!Array.isArray(t.actions)||!t.actions.every(e=>function(e,t,s){if("object"!=typeof e||null===e)return!1;const n=e;if("string"!=typeof n.action_uuid||!FNe.test(n.action_uuid))return!1;const a=n.action_uuid.toLowerCase();return!(t.has(a)||s.has(a)||"string"!=typeof n.kind||"string"!=typeof n.label||null!=(i=n.is_primary)&&"boolean"!=typeof i||!BNe(n.title)||!BNe(n.prompt)||!BNe(n.url)||(s.add(a),0));var i}(e,a,s)))return!1;for(const n of s)a.add(n);return n.add(t.insight_uuid.toLowerCase()),!0});return 0===i.length&&s.length>0?null:{briefing_uuid:t.briefing_uuid,status:t.status,created_at:"string"==typeof t.created_at?t.created_at:"",preamble:"string"==typeof t.preamble?t.preamble:null,insights:i.map(e=>({...e,feedback:null,actions:e.actions.map(e=>({...e,is_primary:!0===e.is_primary}))})),memory_activity:Array.isArray(t.memory_activity)&&t.memory_activity.every(qNe)?t.memory_activity:null}}const $Ne=e.memo(function({preamble:e,createdAt:s}){const n=JS().formatDate(new Date(s),{hour:"numeric",minute:"2-digit"});return t.jsxs("div",{className:"flex flex-col",children:[t.jsx(JE,{label:n}),t.jsx("p",{className:"mt-6 font-claude-response leading-[1.65rem] text-text-200",children:e})]})}),GNe=["claude.ai","claude.com","anthropic.com","claudeusercontent.com","ant.dev"],KNe=`<script>(function(){\nfunction sig(m){try{window.top.postMessage(m,"*")}catch(_){}}\nfunction post(u){sig({type:"open-url",url:String(u)})}\n// Accept https (production shell) or same-origin as the embedding frame (dev:\n// http://localhost:4040). Parent-side listener re-validates e.origin against\n// conwayShellOrigin and findAppTabForSandboxPath re-validates url.origin.\nfunction ok(s){\nif(s.slice(0,8)==="https://")return true;\nif(s.slice(0,7)!=="http://")return false;\ntry{return new URL(s).origin===window.origin}catch(_){return false}\n}\nwindow.open=function(u){var s=String(u);if(ok(s))post(s);return null};\nvar deny=${JSON.stringify(GNe)};\nfunction fp(host){\nhost=host.toLowerCase().replace(/\\.$/,"");\nfor(var i=0;i<deny.length;i++){var d=deny[i];if(host===d||host.slice(-d.length-1)==="."+d)return true}\nreturn false\n}\nfunction nav(e,explicit){\nvar a=e.target&&e.target.closest&&e.target.closest("a[href], a[*|href]");\nif(!a)return;\nvar hh=a.getAttribute("href"),h=(hh||a.getAttribute("xlink:href")||"").replace(/^[\\t\\n\\f\\r ]+/,"");\nif(a.hasAttribute("download")&&hh&&hh.slice(0,15)==="/sandbox/proxy/")return;\nvar b=document.querySelector("base");\nvar t=(a.getAttribute("target")||(b&&b.getAttribute("target"))||"_self").toLowerCase();\nvar esc=e.type==="auxclick"||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey;\nvar ex=esc||t!=="_self";\nif(ex!==explicit)return;\nif(!h||h.charAt(0)==="#"){if(ex)e.preventDefault();return}\ntry{var u=new URL(h,document.baseURI)}catch(_){if(ex)e.preventDefault();return}\nif(!ex&&(e.defaultPrevented||u.origin===window.origin||fp(u.hostname)))return;\nif(!ok(u.href)){if(ex)e.preventDefault();return}\ne.preventDefault();post(u.href);\n}\nwindow.addEventListener("click",function(e){nav(e,true)},true);\ndocument.addEventListener("click",function(e){nav(e,false)},false);\nwindow.addEventListener("auxclick",function(e){if(e.button===1)nav(e,true)},true);\ndocument.addEventListener("keydown",function(e){\nvar c=e.metaKey||e.ctrlKey,k=null;\nif(c&&e.key==="k")k="cmd-k";\nelse if(c&&!e.shiftKey&&!e.altKey&&e.code==="Slash")k="cmd-slash";\nelse if(c&&!e.shiftKey&&!e.altKey&&e.code==="Semicolon")k="cmd-semicolon";\nelse if(c&&!e.shiftKey&&!e.altKey&&e.code==="Quote")k="cmd-quote";\nif(!k)return;\ne.preventDefault();e.stopPropagation();\nsig({type:"shortcut",key:k});\n},true);\nwindow.addEventListener("focus",function(){sig({type:"focus-change",focused:true})});\nwindow.addEventListener("blur",function(){sig({type:"focus-change",focused:false})});\nfunction fd(e){return e.dataTransfer&&Array.prototype.indexOf.call(e.dataTransfer.types,"Files")>=0}\nwindow.addEventListener("dragenter",function(e){if(fd(e))sig({type:"drag",entering:true})});\nwindow.addEventListener("dragleave",function(e){if(fd(e))sig({type:"drag",entering:false})});\n})();<\/script>`,YNe=/(?![\u200C\u200D])\p{Cf}/gu,QNe=/\p{Default_Ignorable_Code_Point}|\u2800/gu;function JNe(e,t){const s=e.length>2*t?e.slice(0,2*t):e,n=[...s];return n.length>t?n.slice(0,t).join(""):s}function XNe(e){if(void 0===e)return;const t=JNe(e,200).replace(YNe,"");return 0===t.replace(QNe,"").trim().length?"":t}function eIe(e){const t=JNe(String(e),1e3).replace(YNe,"");return 0===t.replace(QNe,"").trim().length?null:t}const tIe=/(?![\n\t])\p{Cc}/gu,sIe=/[\p{Extended_Pictographic}\p{Script=Arabic}\p{Script=Syriac}\p{Script=Mongolian}\p{Script=Nko}\p{Script=Adlam}\p{Script=Devanagari}\p{Script=Bengali}\p{Script=Gurmukhi}\p{Script=Gujarati}\p{Script=Oriya}\p{Script=Tamil}\p{Script=Telugu}\p{Script=Kannada}\p{Script=Malayalam}\p{Script=Sinhala}\p{Script=Myanmar}\p{Script=Khmer}]/u,nIe=/(?!\u200C|\u200D|\uFE0E|\uFE0F)\p{Default_Ignorable_Code_Point}/gu,aIe=/(\p{Emoji})?[\uFE0E\uFE0F]/gu;function iIe(e){let t=e.replace(/\r\n?/g,"\n");t=t.replace(aIe,(e,t)=>void 0===t?"":e);for(let s="";s!==t;)s=t,t=t.replace(/\p{Cs}/gu,"").replace(tIe,"").replace(YNe,"").replace(nIe,"");return t.replace(/[\u200C\u200D]+/g,(e,t,s)=>{const n=Array.from(s.slice(Math.max(0,t-2),t)).pop(),a=Array.from(s.slice(t+e.length,t+e.length+2))[0];return void 0!==n&&sIe.test(n)||void 0!==a&&sIe.test(a)?e[0]:""})}const rIe=/^\/[-\w./]*$/,oIe=/^[a-z][a-z0-9+.-]*:/i;function lIe(e){return"string"!=typeof e||e.includes("..")||e.startsWith("//")||oIe.test(e)?null:rIe.test(e)?e:null}const cIe=/^[a-z0-9][a-z0-9_-]{0,63}$/,dIe=new Set(["chat","home","system","settings"]);const uIe=["/code/"];function mIe(e){if("string"!=typeof e)return null;let t;try{t=new URL(e)}catch{return null}if("https:"!==t.protocol)return null;if(t.username||t.password)return null;const s=t.hostname.toLowerCase().replace(/\.$/,"");if(GNe.some(e=>s===e||s.endsWith(`.${e}`))){if(!(("claude.ai"===s||"claude.com"===s)&&uIe.some(e=>t.pathname.startsWith(e))))return null}return t.href}const pIe=/^\/sandbox\/proxy\/[^/]+/;function fIe(e,t){if("string"!=typeof e)return null;let s;try{s=new URL(e)}catch{return null}if(s.origin!==t)return null;if(s.username||s.password)return null;const n=pIe.exec(s.pathname);if(null===n)return null;const a=s.pathname.slice(n[0].length);return a.startsWith("/")?a:`/${a}`}function gIe(e){return e.flatMap(e=>{const t="string"!=typeof(s=e.name)?null:cIe.test(s)?dIe.has(s)?null:s:null;var s;if(null===t)return[];for(const n of e.app_screens??[])if(null===lIe(n.url))return[];for(const n of e.home_widgets??[])if(null===lIe(n.dataRoute))return[];return[{...e,name:t,displayName:XNe(e.displayName),description:XNe(e.description),quarantineReason:XNe(e.quarantineReason),app_screens:e.app_screens?.map(e=>({...e,name:XNe(e.name)})),home_widgets:e.home_widgets?.map(e=>({...e,key:XNe(e.key)})),contributions:e.contributions?.map(e=>({...e,kind:XNe(e.kind)}))}]})}function hIe(e){return e.map(e=>({...e,displayName:XNe(e.displayName)}))}function CIe(e){return{layer:e.layer,code:XNe(e.code),message:XNe(e.message)}}const xIe=["query","url","file_path","path"];function vIe(e){const t={};if("object"==typeof e&&null!==e)for(const s of xIe){const n=e[s];"string"==typeof n&&(t[s]=XNe(n))}return t}function yIe(e){return{...e,lastAskTs:"number"==typeof e.lastAskTs&&Number.isFinite(e.lastAskTs)?e.lastAskTs:null,activity:e.activity&&"tool"===e.activity.phase?{...e.activity,name:XNe(e.activity.name),input:vIe(e.activity.input)}:e.activity,statusLine:null!==e.statusLine&&void 0!==e.statusLine?XNe(e.statusLine):e.statusLine,error:e.error?CIe(e.error):e.error,lastStreamError:e.lastStreamError?CIe(e.lastStreamError):e.lastStreamError,oldestLoadedTs:"number"==typeof e.oldestLoadedTs&&Number.isFinite(e.oldestLoadedTs)?e.oldestLoadedTs:null}}const bIe=/^(?!\.+$)[A-Za-z0-9_.:-]{1,128}$/;function kIe(e){const t=new Set,s=[];for(const n of e)bIe.test(n.id)&&!t.has(n.id)&&Number.isFinite(n.start_seq)&&Number.isFinite(n.start_timestamp)&&Number.isFinite(n.created_at)&&Number.isFinite(n.updated_at)&&(t.add(n.id),s.push({id:n.id,agent_id:XNe(n.agent_id),title:XNe(n.title)||"Untitled topic",summary:null===n.summary?null:eIe(n.summary),start_message_id:XNe(n.start_message_id),end_message_id:null===n.end_message_id?null:XNe(n.end_message_id),start_seq:n.start_seq,end_seq:null!==n.end_seq&&Number.isFinite(n.end_seq)?n.end_seq:null,start_timestamp:n.start_timestamp,end_timestamp:null!==n.end_timestamp&&Number.isFinite(n.end_timestamp)?n.end_timestamp:null,status:XNe(n.status),created_at:n.created_at,updated_at:n.updated_at}));return s.length>50?[...s].sort((e,t)=>e.start_timestamp-t.start_timestamp).slice(-50):s}function wIe(e){return e.map(e=>"user_message"===e.type?{...e,text:XNe(e.text)}:"error"===e.type?{...e,message:XNe(e.message)}:e)}const MIe={gmail:uU,slack:Yx,github:iU,calendar:BP,gcal:BP,google_calendar:BP,drive:Hg,gdrive:Hg},_Ie={gmail:"Gmail",slack:"Slack",github:"GitHub",calendar:"Calendar",gcal:"Calendar",google_calendar:"Calendar",drive:"Drive",gdrive:"Drive",figma:"Figma"};function jIe({isOpen:s,onClose:n,onSubmit:a}){const i=JS(),[r,o]=e.useState(""),l=gs({id:"rk35t1",intl:i}),c=gs({id:"i5hjm2",intl:i}),d=()=>{o(""),n()};return t.jsx(gt,{isOpen:s,onClose:d,title:c,children:t.jsxs("div",{className:"mt-4 flex flex-col gap-4",children:[t.jsx("textarea",{value:r,onChange:e=>o(e.target.value),placeholder:l,rows:4,"aria-label":l,className:"w-full resize-none rounded-lg border border-border-300 bg-bg-100 p-3 text-text-100 placeholder:text-text-500 focus:border-border-200 focus:outline-none"}),t.jsxs(Eu,{children:[t.jsx(kt,{variant:"secondary",onClick:d,children:t.jsx(hs,{id:"1aoeldi"})}),t.jsx(kt,{onClick:()=>{a(r.trim()||void 0),o("")},children:t.jsx(hs,{id:"1ijwz84"})})]})]})})}function SIe({insightUuid:s,actionUuid:n,snapshot:a,size:i=16,initialSentiment:r}){const o=JS(),{track:l}=ae(),c=gs({id:"umhwio",intl:o}),d=gs({id:"zt09kk",intl:o}),[u,m]=e.useState(!1),p=void 0!==r,[f,g]=e.useState(r??void 0),[h,C]=e.useState(r);r!==h&&(C(r),g(r??void 0));const{data:x}=function(e,{enabled:t=!0}={}){const{activeOrganization:s}=v(),n=s?.uuid;return B(`/api/organizations/${n??""}/orbit/insights/${HNe(e)}/feedback`,{queryKey:UNe(n,e),enabled:t&&!!n&&!!e,staleTime:6e4,meta:{noToast:!0}})}(s,{enabled:!p}),{mutate:y,isPending:k}=function(e,t){const{activeOrganization:s}=v(),n=s?.uuid,a=gL(),i=t?`/api/organizations/${n??""}/orbit/insights/${HNe(e)}/actions/${HNe(t)}/feedback`:`/api/organizations/${n??""}/orbit/insights/${HNe(e)}/feedback`;return b(i,"POST",{onSuccess:s=>{a.invalidateQueries({queryKey:UNe(n,e)}),t||DNe(a,n,e,{sentiment:s.sentiment,reason:s.reason})},meta:{noToast:!0}})}(s,n),{mutate:w,isPending:M}=function(e,t){const{activeOrganization:s}=v(),n=s?.uuid,a=gL(),i=t?`/api/organizations/${n??""}/orbit/insights/${HNe(e)}/actions/${HNe(t)}/feedback`:`/api/organizations/${n??""}/orbit/insights/${HNe(e)}/feedback`;return b(i,"DELETE",{onSuccess:()=>{a.invalidateQueries({queryKey:UNe(n,e)}),t||DNe(a,n,e,null)},meta:{noToast:!0}})}(s,n),_=k||M,j=e.useMemo(()=>p?f:x?.find(e=>n?e.action_uuid===n:null===e.action_uuid)?.sentiment,[p,f,x,n]),S=e.useCallback((e,t)=>{l({event_key:"claudeai.orbit.insight.feedback",insight_uuid:s,sentiment:e,has_reason:!!t});const n={sentiment:e,...a};t&&(n.reason=t),y(n,{onSuccess:()=>{p&&g(e)}})},[p,s,y,a,l]),L=e.useCallback(()=>{l({event_key:"claudeai.orbit.insight.feedback",insight_uuid:s,sentiment:"cleared",has_reason:!1}),w(void 0,{onSuccess:()=>{p&&g(void 0)}})},[w,p,s,l]),N=e.useCallback(e=>{e.stopPropagation(),"positive"===j?L():S("positive")},[L,j,S]),I=e.useCallback(e=>{e.stopPropagation(),"negative"===j?L():m(!0)},[L,j]),T="rounded-md p-1.5 text-text-400 transition hover:bg-bg-200 hover:text-text-200 disabled:opacity-50",A="!text-accent-secondary-100 bg-bg-200";return t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"flex items-center gap-1",children:[t.jsx("button",{type:"button",onClick:N,disabled:_,"aria-label":c,"aria-pressed":"positive"===j,className:`${T} ${"positive"===j?A:""}`,children:t.jsx(eP,{size:i})}),t.jsx("button",{type:"button",onClick:I,disabled:_,"aria-label":d,"aria-pressed":"negative"===j,className:`${T} ${"negative"===j?A:""}`,children:t.jsx(tP,{size:i})})]}),t.jsx(jIe,{isOpen:u,onClose:()=>m(!1),onSubmit:e=>{S("negative",e),m(!1)}})]})}const LIe=fT((e,t)=>({completedIds:[],markCompleted:s=>{t().completedIds.includes(s)||e(e=>({completedIds:[...e.completedIds,s]}))},unmarkCompleted:s=>{t().completedIds.includes(s)&&e(e=>({completedIds:e.completedIds.filter(e=>e!==s)}))},toggleCompleted:e=>{const s=t().completedIds.includes(e);return s?t().unmarkCompleted(e):t().markCompleted(e),!s}}));function NIe(){const t=Qx();return e.useCallback(e=>t({prompt:e.prompt??"",name:e.title??e.label,orbit_action_uuid:e.action_uuid,attachments:[],files:[],syncSources:[]}),[t])}const IIe=new Set,TIe={task:GP,chat:AA,inform:Ft};function AIe({source:e}){const s=function(e){const t=e.toLowerCase();return Object.hasOwn(_Ie,t)?_Ie[t]:(s=e).charAt(0).toUpperCase()+s.slice(1);var s}(e);return t.jsx("span",{className:"shrink-0 text-xs text-text-500",children:t.jsx(XS,{defaultMessage:"from {source}",id:"76B+7wMpAX",values:{source:s}})})}const EIe=e.memo(({action:s,insightUuid:n,insightKind:a,insightSource:i,surface:o})=>{const l=r(),c=NIe(),{track:d}=ae(),{data:u}=PNe(s.action_uuid,{enabled:"ask_claude"===s.kind}),{mutate:m}=ONe(n),p="external_link"===s.kind&&s.url?mIe(s.url):null,f=e.useCallback(()=>{("external_link"!==s.kind||p)&&(m({event:"acted",action_uuid:s.action_uuid,insight_kind:a,source:i,action_kind:s.kind,action_is_primary:s.is_primary}),d({event_key:"claudeai.orbit.action.tapped",action_uuid:s.action_uuid,action_kind:s.kind,insight_kind:a,insight_source:i,is_existing_thread:"ask_claude"===s.kind&&!!u,surface:o}),"external_link"!==s.kind?u?l.push(`/chat/${u.chat_uuid}`):c(s):p&&window.open(p,"_blank","noopener,noreferrer"))},[p,s,u,a,i,m,l,c,o,d]);return"ask_claude"===s.kind?t.jsx("button",{type:"button",onClick:f,className:"flex h-8 items-center justify-center rounded-lg border border-border-300 px-2 transition-colors hover:bg-bg-100",children:t.jsx(Yx,{size:20,className:"text-text-300"})}):"external_link"!==s.kind||p?t.jsx("button",{type:"button",onClick:f,className:"flex h-8 items-center justify-center rounded-lg border border-border-300 px-3 text-sm font-medium text-text-100 transition-colors hover:bg-bg-100",children:s.label}):null});EIe.displayName="ActionButton";const RIe=e.memo(({insight:s,surface:n})=>{const a=r(),i=NIe(),{track:o}=ae(),{promptInputRef:l,focusInput:c}=J(),d=s.actions.find(e=>"external_link"===e.kind),u=s.actions.find(e=>"ask_claude"===e.kind),{data:m}=PNe(u?.action_uuid??"",{enabled:!!u}),{mutate:p}=ONe(s.insight_uuid),f=d?.url?mIe(d.url):null,g=e.useCallback(()=>{d&&f&&(p({event:"acted",action_uuid:d.action_uuid,insight_kind:s.kind,source:s.source,action_kind:d.kind,action_is_primary:d.is_primary}),o({event_key:"claudeai.orbit.action.tapped",action_uuid:d.action_uuid,action_kind:"external_link",insight_kind:s.kind,insight_source:s.source,is_existing_thread:!1,surface:n}),window.open(f,"_blank","noopener,noreferrer"))},[d,f,s.kind,s.source,p,n,o]),h=e.useCallback(()=>{p({event:"acted",action_uuid:u?.action_uuid,insight_kind:s.kind,source:s.source,action_kind:u?.kind,action_is_primary:u?.is_primary}),o({event_key:"claudeai.orbit.action.tapped",action_uuid:u?.action_uuid??s.insight_uuid,action_kind:"discuss_here",insight_kind:s.kind,insight_source:s.source,is_existing_thread:!1,surface:n});const e=u?.prompt??s.suggestion??`Tell me more about: ${s.name}`;l.current?.getEditor()?.commands.setContent({type:"doc",content:e.split("\n").map(e=>({type:"paragraph",content:e?[{type:"text",text:e}]:[]}))},{emitUpdate:!0}),c()},[u,s,l,c,p,n,o]),C=e.useCallback(()=>{u&&(p({event:"acted",action_uuid:u.action_uuid,insight_kind:s.kind,source:s.source,action_kind:u.kind,action_is_primary:u.is_primary}),o({event_key:"claudeai.orbit.action.tapped",action_uuid:u.action_uuid,action_kind:"ask_claude",insight_kind:s.kind,insight_source:s.source,is_existing_thread:!!m,surface:n}),m?a.push(`/chat/${m.chat_uuid}`):i(u))},[u,m,s.kind,s.source,p,a,i,n,o]);return t.jsxs("div",{className:"flex items-center gap-2",children:[d&&f&&t.jsx(kt,{variant:"primary",onClick:g,append:t.jsx(zP,{size:16}),children:d.label}),t.jsx(kt,{variant:"secondary",onClick:h,prepend:t.jsx(AA,{size:16}),children:t.jsx(hs,{id:"janvfx"})}),u&&t.jsx(kt,{variant:"secondary",onClick:C,prepend:t.jsx(Jx,{size:16}),children:t.jsx(hs,{id:"taa8wl"})})]})});RIe.displayName="GhostActionRow";const DIe=e.memo(({insight:s,defaultExpanded:n=!1,variant:a="boxed",surface:i="feed"})=>{const[r,o]=e.useState(n),[l,c]=e.useState(!1),d=JS(),u=LIe(e=>e.completedIds.includes(s.insight_uuid)),m=LIe(e=>e.toggleCompleted),{mutate:p}=ONe(s.insight_uuid),f=e.useCallback(()=>{u||o(e=>!e)},[u]),g=e.useCallback(e=>{u||e.target===e.currentTarget&&("Enter"!==e.key&&" "!==e.key||(e.preventDefault(),f()))},[u,f]),h=e.useCallback(e=>{e.stopPropagation();const t=m(s.insight_uuid);p({event:t?"done":"undone",topic_key:s.topic_key,insight_kind:s.kind,source:s.source}),t&&(o(!1),c(!0),window.setTimeout(()=>c(!1),320))},[m,p,s.insight_uuid,s.topic_key,s.kind,s.source]),C=e.useRef(null),x=e.useRef(!1);e.useEffect(()=>{x.current||IIe.has(s.insight_uuid)||(x.current=!0,IIe.add(s.insight_uuid),p({event:"seen",insight_kind:s.kind,source:s.source}))},[s.insight_uuid,s.kind,s.source,p]);const v=e.useMemo(()=>({insight_name:s.name,insight_kind:s.kind}),[s.name,s.kind]),y=function(e,t=GP){const s=e.toLowerCase();return Object.hasOwn(MIe,s)?MIe[s]:t}(s.source,TIe[s.kind]),b=d.formatMessage({defaultMessage:"Mark as done",id:"knUjT2Xhdk"}),k=d.formatMessage({defaultMessage:"Undo",id:"JkS37H8PlA"}),w=u?k:b;return t.jsxs("div",{role:"button",tabIndex:u?-1:0,"aria-expanded":r,"aria-disabled":u||void 0,onClick:f,onKeyDown:g,className:dt("group/orbit-row focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-200",u?"":"cursor-pointer","boxed"===a?"rounded-2xl border-0.5 border-border-300 bg-bg-000/90 px-3 py-2 shadow-sm transition-[border-color,box-shadow] duration-200 hover:border-border-200 hover:shadow":"border-b border-border-300 last:border-b-0"),children:[t.jsxs("div",{className:dt("flex w-full items-center justify-between gap-2 text-left","ghost"===a&&"rounded-lg px-2 py-3 transition-colors group-hover/orbit-row:bg-bg-200 group-focus-visible/orbit-row:bg-bg-200"),children:[t.jsxs("div",{className:"flex min-w-0 items-center gap-2.5",children:[t.jsx(iN,{content:w,side:"top",children:t.jsxs("button",{type:"button",onClick:h,"aria-label":w,"aria-pressed":u,style:{transition:l?"background-color 260ms ease-out, color 260ms ease-out, box-shadow 260ms ease-out":"none"},className:dt("group/mark relative flex size-7 shrink-0 items-center justify-center rounded-[9px] ring-1 ring-inset",u?"bg-success-900 text-success-200 ring-success-200/40":"bg-bg-200 text-text-500 ring-transparent hover:bg-bg-000 hover:ring-border-300 focus-visible:bg-bg-000 focus-visible:ring-border-300"),children:[t.jsx(y,{size:16,className:dt(u?"opacity-0":"opacity-100 group-hover/mark:opacity-0 group-focus-visible/mark:opacity-0")}),t.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",className:"absolute","aria-hidden":!0,children:t.jsx("path",{d:"M5 12 L10 17 L19 7",pathLength:100,style:{strokeDasharray:100,strokeDashoffset:u?0:100,transition:l?"stroke-dashoffset 260ms ease-out":"none"}})})]})}),t.jsx("h3",{className:dt("truncate bg-no-repeat text-base",u?"bg-[length:100%_1.5px] text-text-500":"bg-[length:0%_1.5px] text-text-100"),style:{backgroundImage:"linear-gradient(currentColor, currentColor)",backgroundPosition:"0 55%",transition:l?"background-size 260ms ease-out, color 260ms ease-out":"none"},children:s.name})]}),t.jsxs("div",{className:"flex shrink-0 items-center",children:[t.jsx(AIe,{source:s.source}),s.why&&t.jsx("div",{className:"overflow-hidden transition-[width,opacity] duration-200",style:{width:r?28:0,opacity:r?1:0},children:t.jsx(iN,{multiline:!0,className:"[overflow-wrap:anywhere]",content:s.why,side:"top",align:"end",children:t.jsx("span",{role:"button",tabIndex:r?0:-1,className:"ml-1 flex items-center justify-center rounded-lg p-1",onClick:e=>e.stopPropagation(),onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),e.stopPropagation())},children:t.jsx(Ft,{size:16,className:"text-text-500"})})})})]})]}),t.jsx("div",{role:"presentation",ref:C,inert:!r||void 0,onClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation(),className:dt("grid transition-[grid-template-rows] duration-200 ease-out","ghost"===a&&"px-2"),style:{gridTemplateRows:r?"1fr":"0fr"},children:t.jsxs("div",{className:dt("overflow-hidden","ghost"===a&&r&&"pb-3"),children:[s.context&&t.jsx("div",{className:"mt-4 rounded-[14px] border border-border-300 bg-bg-100 p-4",children:t.jsx("p",{className:"text-sm leading-normal text-text-400",children:s.context})}),s.suggestion&&t.jsxs("div",{className:"mt-3 border-l-2 border-border-300 pl-3",children:[t.jsx("span",{className:"font-small-bold text-text-500",children:t.jsx(hs,{id:"qrmmev"})}),t.jsx("p",{className:"mt-0.5 text-sm italic leading-relaxed text-text-400",children:s.suggestion})]}),t.jsxs("div",{className:"mt-4 flex items-center justify-between pr-2",children:["ghost"===a?t.jsx(RIe,{insight:s,surface:i}):s.actions.length>0?t.jsx("div",{className:"flex items-center gap-2",children:s.actions.map(e=>t.jsx(EIe,{action:e,insightUuid:s.insight_uuid,insightKind:s.kind,insightSource:s.source,surface:i},e.action_uuid))}):null,t.jsx(SIe,{insightUuid:s.insight_uuid,initialSentiment:s.feedback?.sentiment??null,size:20,snapshot:v})]})]})})]})});function HIe({op:e}){const s="read"===e?ZP:"write"===e?iR:"search"===e?ih:ah;return t.jsx(s,{size:14,className:"shrink-0 text-text-400"})}function PIe({activity:e}){const s=e.path??e.query;return t.jsxs("div",{className:dt("flex items-start gap-2 rounded-md px-2 py-1.5 transition",e.succeeded?"hover:bg-bg-100":"opacity-50"),children:[t.jsx("span",{className:"pt-0.5",children:t.jsx(HIe,{op:e.op})}),t.jsxs("div",{className:"min-w-0 flex-1",children:[s?t.jsx("p",{className:"truncate font-small text-text-200",children:t.jsx("span",{className:"font-mono",children:s})}):t.jsx("p",{className:"font-small text-text-400",children:t.jsx(hs,{id:"hnw44d"})}),e.excerpt&&t.jsx("p",{className:"truncate font-small text-text-500",children:e.excerpt})]})]})}function UIe({activity:s}){JS();const n=Xx(),[a,i]=e.useState(!1),r=e.useMemo(()=>s.filter(e=>"list"!==e.op),[s]),o=e.useMemo(()=>{let e=0,t=0;for(const s of r)s.succeeded&&("read"===s.op?e++:"write"===s.op&&t++);return{reads:e,writes:t}},[r]);return n&&0!==r.length?t.jsxs("div",{className:"mt-4 overflow-hidden rounded-lg border border-border-300 bg-bg-100",children:[t.jsxs("button",{type:"button",onClick:()=>i(e=>!e),"aria-expanded":a,className:"flex w-full items-center gap-2.5 p-3 text-left transition hover:bg-bg-200",children:[t.jsx(ah,{size:16,className:"shrink-0 text-text-300"}),t.jsx("p",{className:"min-w-0 flex-1 font-small text-text-200",children:o.writes>0?t.jsxs(t.Fragment,{children:[t.jsx(hs,{id:"1ybkvwe",dangerouslyVisiblePublicValues:{count:o.writes}}),o.reads>0&&t.jsxs(t.Fragment,{children:[", ",t.jsx(hs,{id:"15au4r8",dangerouslyVisiblePublicValues:{count:o.reads}})]})]}):o.reads>0?t.jsx(hs,{id:"g0hqal",dangerouslyVisiblePublicValues:{count:o.reads}}):t.jsx(hs,{id:"eep2tc"})}),a?t.jsx(aI,{size:14,className:"shrink-0 text-text-400"}):t.jsx(nP,{size:14,className:"shrink-0 text-text-400"})]}),a&&t.jsxs("div",{className:"border-t border-border-300 p-1.5",children:[t.jsx("div",{className:"flex flex-col",children:r.map((e,s)=>t.jsx(PIe,{activity:e},`${e.op}-${e.path??e.query??""}-${s}`))}),""]})]}):null}DIe.displayName="OrbitBriefingCard";const OIe="orbit_briefing_expand_all";function FIe({status:e,hasEarlier:s,className:n}){const a="no_tools"===e,i=s?a?"10ewm02":"jwv2o2":a?"181mvnw":"rwlucs";return t.jsxs("div",{className:`flex items-center gap-2 rounded-lg border border-warning-200 bg-warning-900 px-4 py-3 text-sm text-warning-000 ${n??""}`,children:[t.jsx(Gt,{size:16}),t.jsx(hs,{id:i})]})}function VIe({briefing:s,isGenerating:n=!1,failedStatus:a,cardVariant:i="boxed",hidePreamble:r=!1}){const o="ready"===s.status,[l,c]=le(()=>"1"===sessionStorage.getItem(OIe),!1),[d,u]=e.useState(0),m=e.useCallback(()=>{c(e=>{const t=!e;return sessionStorage.setItem(OIe,t?"1":"0"),t}),u(e=>e+1)},[c]);return o?t.jsxs("div",{className:"flex flex-col gap-6",children:[a&&t.jsx(FIe,{status:a,hasEarlier:!0}),!r&&s.preamble&&t.jsx($Ne,{preamble:s.preamble,createdAt:s.created_at}),s.insights.length>0&&t.jsxs("div",{className:"flex flex-col gap-3",children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsx("h2",{className:"font-base-bold text-text-300",children:t.jsx(hs,{id:"mn1z18"})}),t.jsx(kt,{variant:"secondary",size:"sm",onClick:m,children:t.jsx(hs,{id:l?"11msr2l":"jnm516"})})]}),t.jsx("div",{className:"ghost"===i?"flex flex-col":"flex flex-col gap-3",children:s.insights.map(e=>t.jsx(DIe,{insight:e,defaultExpanded:l,variant:i},`${e.insight_uuid}-${d}`))})]}),s.memory_activity&&t.jsx(UIe,{activity:s.memory_activity})]}):n?t.jsx("p",{className:"py-16 text-center text-text-400",children:t.jsx(hs,{id:"4myeuw"})}):t.jsx(FIe,{status:s.status,hasEarlier:!1,className:"my-16"})}const zIe=e.memo(({briefing:e})=>t.jsxs("div",{className:"my-2 flex flex-col gap-4",children:[e.preamble&&t.jsx($Ne,{preamble:e.preamble,createdAt:e.created_at}),t.jsx("div",{className:"rounded-3xl border-0.5 border-border-300 bg-bg-000 p-4",children:t.jsx(VIe,{briefing:e,cardVariant:"ghost",hidePreamble:!0})})]}));function ZIe({name:e,input:s,children:n}){return t.jsxs("div",{className:"flex items-start gap-1.5 min-w-0 text-[13px]",children:[t.jsx("span",{className:"text-text-500 shrink-0",children:e}),s&&t.jsx(BIe,{children:s}),n]})}zIe.displayName="OrbitInsightToolUseCell";const BIe=e.memo(({children:s})=>{const[n,a]=e.useState(!1),[i,r]=e.useState(!1),o=e.useRef(null);e.useEffect(()=>{const e=o.current;e&&!n&&r(e.scrollWidth>e.clientWidth)},[s,n]);const l=i||n;return t.jsx("span",{ref:o,onClick:l?()=>a(!n):void 0,className:`text-text-500 font-mono text-[11px] bg-bg-100 px-1 py-0.5 rounded min-w-0 ${l?"cursor-pointer hover:text-text-400":""} ${n?"whitespace-pre-wrap break-all":"truncate"}`,children:s})});BIe.displayName="ExpandableCommand";const qIe={TodoWrite:"Update Todos",List:"List",Search:"Search",Bash:"Bash",Read:"Read",Write:"Write",Edit:"Edit",MultiEdit:"MultiEdit",Grep:"Grep",Glob:"Glob",Task:"Task",WebFetch:"WebFetch",WebSearch:"WebSearch",ExitPlanMode:"Plan",ReportFindings:"Code review",mcp__git__git_push:"Bash",mcp__git__git_fetch:"Bash",preview_eval:"Preview Execute",preview_fill:"Preview Fill Input",preview_logs:"Preview Server Logs"};function WIe(e){if(qIe[e])return qIe[e];const t=ev(e);if(t)return t;const s=Ha(e);if(s){const e=s.tool?.displayName,t=s.server?.name;if(e&&t)return`${t}: ${e}`;if(e)return e}return e.startsWith("mcp__")?rh(e).replace(/_/g," ").replace(/\b\w/g,e=>e.toUpperCase()):e}function $Ie(e,t){if(!e||"object"!=typeof e)return"";if(t?.startsWith("mcp__git__git_")){return t.replace("mcp__git__git_","git ")}return"command"in e&&"string"==typeof e.command?e.command:"pattern"in e&&"string"==typeof e.pattern?e.pattern:"file_path"in e&&"string"==typeof e.file_path?e.file_path:"url"in e&&"string"==typeof e.url?e.url:"query"in e&&"string"==typeof e.query?e.query:"path"in e&&"string"==typeof e.path?e.path:"description"in e&&"string"==typeof e.description?e.description:"message"in e&&"string"==typeof e.message?e.message:""}const GIe=["preview_screenshot","launch_screenshot"];function KIe(){const{account:s,refetch:n}=v(),{mutateAsync:a,isPending:i}=Fa(),{sendTransparentMessage:r}=J(),{addError:o}=ut(),{track:l}=ae(),c=e.useRef(!1),d=s?.settings.enabled_connector_suggestions;if(e.useEffect(()=>{!c.current&&s&&!0!==d&&!1!==d&&(c.current=!0,l({event_key:"claudeai.mcp.registry.opt_in.viewed"}))},[s,d,l]),!0===d)return null;const u=async e=>{l(e?{event_key:"claudeai.mcp.registry.opt_in.allowed"}:{event_key:"claudeai.mcp.registry.opt_in.denied"});try{await a({enabled_connector_suggestions:e})}catch(t){return o("Couldn't save your choice. You can try again.",{error:t}),void n?.()}e&&r?.("I've turned on connector search. Please retry now.",{redeliverOnFailure:!0})};return!1===d?t.jsxs("div",{className:"font-ui my-3 flex items-center justify-between gap-3 rounded-2xl border border-border-300 bg-bg-000 px-4 py-3 text-sm text-text-300",children:[t.jsx(XS,{defaultMessage:"Connector search is off.",id:"rI5oEd69Qb"}),t.jsx(rN,{variant:"secondary",size:"sm",disabled:i,onClick:()=>{u(!0)},children:t.jsx(XS,{defaultMessage:"Turn on",id:"npvxprjeDK"})})]}):t.jsxs("div",{className:"font-ui my-3 overflow-hidden rounded-2xl border border-border-300 bg-bg-000 shadow-sm",children:[t.jsxs("div",{className:"flex items-center gap-3 px-4 py-3 border-b-0.5 border-border-300",children:[t.jsx($L,{name:"Connectors",size:"md",className:"text-text-300 flex-shrink-0"}),t.jsx("div",{className:"text-sm text-text-100",children:t.jsx(XS,{defaultMessage:"Allow Claude to search for connectors?",id:"S/2DjaUF7w"})})]}),t.jsx("div",{className:"px-4 py-3 text-sm text-text-300",children:t.jsx(XS,{defaultMessage:"When a task needs a tool you haven't connected, Claude will search for relevant connectors. Change anytime in Settings.",id:"HTMH1yBiMt"})}),t.jsxs("div",{className:"flex items-center justify-end gap-2 px-4 py-3 border-t-0.5 border-border-300",children:[t.jsx(rN,{variant:"secondary",size:"sm",disabled:i,onClick:()=>{u(!1)},children:t.jsx(XS,{defaultMessage:"Not now",id:"dUCA4Khx0S"})}),t.jsx(rN,{variant:"primary",size:"sm",disabled:i,onClick:()=>{u(!0)},children:t.jsx(XS,{defaultMessage:"Allow",id:"y/bmsG8rnv"})})]})]})}const YIe=()=>t.jsxs("div",{className:"items-top flex w-full bg-bg-200 mt-5 p-3 rounded-xl items-center text-text-300",children:[t.jsx($L,{name:"Info",size:"lg"}),t.jsx("p",{className:"font-base ml-3",children:t.jsx(XS,{defaultMessage:"Claude has ended this chat.",id:"xJ+abA4nue"})})]}),QIe=AL({url:IL()});function JIe(e){try{return JSON.parse(e)}catch(t){return null}}const XIe=e.memo(function(s){const{input:n,toolResult:a,isStreaming:i}=s,r=a?.is_error,o=gSe(),l=xe(),c="free"===wn(),[d,u]=e.useState(!1),m=e.useMemo(()=>{if(r)return;const e=function(e){if(!e||!e.content)return null;if(e.content.some(e=>"knowledge"===e.type)){const t=[];for(const s of e.content)"knowledge"===s.type&&t.push(s);return t}try{const t=e.content[0];if("text"!==t?.type)return[];const s=JSON.parse(t.text);return Array.isArray(s)?s.map(e=>{const t=nv.safeParse(e);return t.success?t.data:null}).filter(e=>null!==e):[]}catch(t){return[]}}(a);return e?.[0]},[r,a]),p=e.useMemo(()=>{if(!r)return;const e=function(e){if(!e||!e.content)return null;if(e.content.some(e=>"text"===e.type)){const t=[];for(const s of e.content)if("text"===s.type){const e=JIe(s.text);if(null===e)t.push({error_type:"UNKNOWN_ERROR",error_message:s.text});else{const s=av.safeParse(e);s.success&&t.push(s.data)}}return t}try{const t=e.content[0];if("text"!==t?.type)return[];const s=JSON.parse(t.text);return Array.isArray(s)?s.map(e=>{const t=iv.safeParse(e);if(t.success){const e=av.safeParse(JSON.parse(t.data.text));return e.success?e.data:null}return null}).filter(e=>null!==e):[]}catch(t){return[]}}(a);return e?.[0]},[r,a]),f=p?.error_type,g="EGRESS_BLOCKED"===f&&!o,h=function(e){switch(e){case"INVALID_URL":return t.jsx(XS,{defaultMessage:"The URL provided is invalid",id:"EXjAXf5Pbi"});case"URL_NOT_FOUND":return t.jsx(XS,{defaultMessage:"Could not find this URL",id:"stDgCXJO7F"});case"RATE_LIMIT_EXCEEDED":return t.jsx(XS,{defaultMessage:"Access to this website has been restricted due to rate limits",id:"VhUxwIo+O2"});case"ROBOTS_DISALLOWED":return t.jsx(XS,{defaultMessage:"This website has blocked Claude via robots.txt rules",id:"dHtmXRJ647"});case"URL_TOO_LONG":return t.jsx(XS,{defaultMessage:"The URL provided is too long",id:"K2DBYJqbtF"});case"EGRESS_BLOCKED":case"SITE_BLOCKED":return t.jsx(XS,{defaultMessage:"Access to this website is blocked",id:"WI6DZStAoi"});case"PERMISSIONS_ERROR":return t.jsx(XS,{defaultMessage:"The URL was not provided by the user nor was it contained in any web search/fetch results",id:"aXYLYDjU6L"});case"UNKNOWN_ERROR":case"SERVER_ERROR":case"CLIENT_ERROR":return t.jsx(XS,{defaultMessage:"An unknown error occurred",id:"3VG8rbxa4v"});case void 0:return null}}(f),C=e.useMemo(()=>QIe.safeParse(n).data,[n]);if(!C)return;const x=C.url,v=m?.title||x,y=tv(x);let b;return b=i?y?t.jsx(XS,{defaultMessage:"Fetching from {hostname}",id:"5qKeNV67+8",values:{hostname:y}}):t.jsx(XS,{defaultMessage:"Fetching from site",id:"TSZq9sKvY7"}):r?t.jsx(XS,{defaultMessage:"Failed to fetch <b>{title}</b>",id:"8JHipUo6K+",values:{title:v,b:e=>t.jsx("span",{className:"text-text-400",children:e})}}):t.jsx(XS,{defaultMessage:"Fetched <b>{title}</b>",id:"BWNvvK6PhH",values:{title:v,b:e=>t.jsx("span",{className:"text-text-400",children:e})}}),t.jsxs(t.Fragment,{children:[t.jsx(SL,{isError:r,errorMessage:h,text:b,secondaryText:i?void 0:y,handleClick:()=>u(!0),icon:t.jsx(Ls,{size:16,type:"favicon",src:x,name:y||"Fetch",fallbackToGlobe:!0}),secondaryIcon:t.jsx(eD,{size:16,className:"text-text-300"}),...s,children:g&&t.jsx(hSe,{isTeamOrEnterprise:l,isFreeUser:c})}),t.jsx(sv,{isOpen:d,url:x,onClose:()=>u(!1),onConfirm:()=>{const e=rv(x);e&&window.open(e,"_blank","noopener,noreferrer"),u(!1)}})]})});XIe.displayName="FetchToolUseCell";const eTe=e.memo(function({toolResult:s}){const{track:n}=ae(),a=e.useRef(!1),i=e.useRef(!1),r=j9(),o=b9(e=>e.role),l=aa(e=>e.sessionContext?.sessionId);let c={};try{c=JSON.parse(s)}catch{}const d="string"==typeof c.role?c.role:"",u="account"===c.source,m=d||(u?"":o)||"",p=!0===c.dismissed,f=m.length>0||p;return e.useEffect(()=>{f||(!a.current&&l&&(a.current=!0,n({event_key:"claudeai.setup_cowork.step_reached",step:"role",session_id:l})),"loading"===r||r||i.current||(i.current=!0,n({event_key:"claudeai.setup_cowork.role_picker.shown",session_id:l})))},[f,n,l,r]),p?null:m.length>0?u?null:t.jsx("div",{className:"flex justify-end mb-6 mt-6",children:t.jsx($ae,{className:"!px-4",children:t.jsx("div",{className:Wae,children:m})})}):null});eTe.displayName="OnboardingRolePickerCell";function tTe(e){const t=m(),s=y("claude_ai_plugins_in_chat"),{coworkIpcRoute:n}=ov(),a=lv(),i="unavailable"===n&&!a,r=i&&s,o=ga(e);return{webBrowseMode:i,isWebInstallEnabled:r,isHttpInstall:(i||o&&t)&&s&&!a,isRemoteCoworkSession:o,surface:t?"desktop":"web"}}function sTe(e){const t=new Set;for(const s of e?.plugins??[])s.marketplace_name&&t.add(`${s.name}@${s.marketplace_name}`),t.add(s.id);return t}function nTe(){const{addSuccess:e,addError:s}=ut(),{track:n}=ae(),a=JS(),i=wg(),{surface:r}=tTe(),o=cv({onSuccess:({pluginId:s,enabled:a,name:o,displayName:l})=>{const c=dv({name:o,displayName:l});e(a?t.jsx(XS,{defaultMessage:"{pluginName} is installed and ready to use.",id:"xXWaJd87yv",values:{pluginName:c}}):t.jsx(XS,{defaultMessage:"{pluginName} has been uninstalled.",id:"hPkxBxCj2O",values:{pluginName:c}}),{uniqueKey:`plugin-enabled-${s}`});const d=i(s),{name:u}=uv(s);Gc(s).catch(()=>null).then(e=>{n({event_key:a?"claudeai.fusion.installed":"claudeai.fusion.uninstalled",...d&&{plugin_id:s},plugin_id_hash:e,plugin_name:d?u:"third-party",is_official_plugin:d,surface:r,is_local:!1})})},onError:(e,{enabled:t})=>{s(t?a.formatMessage({defaultMessage:"Failed to install plugin.",id:"oYeHcgM6ij"}):a.formatMessage({defaultMessage:"Failed to uninstall plugin.",id:"bj7o8tVu0J"}),{error:e,errorContext:{tags:{source:"fusion_web_enable"}},messageForLogging:"[fusion] Failed to set plugin enabled state."})}});return{setEnabled:o.mutate,isPending:o.isPending,pendingPluginId:o.variables?.pluginId}}let aTe;function iTe(){return aTe??={bgFill:Oi.surface[2].cssVar,accentFill:`light-dark(${Oi.neutral[50].cssVar}, ${Oi.neutral[250].cssVar})`,stroke:Oi.neutral[350].cssVar,borderStroke:Oi.neutral[350].cssVar,textStroke:`light-dark(${Oi.text.muted.cssVar}, ${Oi.text.secondary.cssVar})`,docTextStroke:`light-dark(${Oi.neutral[350].cssVar}, ${Oi.text.secondary.cssVar})`,panelFill:`light-dark(${Oi.surface[2].cssVar}, transparent)`,dotsFill:Oi.neutral[50].cssVar},aTe}function rTe({className:e}){const s=iTe();return t.jsxs("svg",{className:e,width:"40",height:"40",viewBox:"20 20 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsxs("g",{filter:"url(#plugin-shadow)",children:[t.jsx("rect",{x:"20",y:"21",width:"30",height:"20",rx:"3",fill:s.bgFill}),t.jsx("rect",{x:"20.5",y:"21.5",width:"29",height:"19",rx:"2.5",stroke:s.stroke})]}),t.jsx("path",{d:"M24.0001 26.9452C24.496 26.9452 24.9329 26.5518 25.1883 25.955C25.4438 26.5518 25.8806 26.9452 26.3766 26.9452C26.8726 26.9452 27.3094 26.5518 27.5649 25.955C27.8204 26.5518 28.2572 26.9452 28.7532 26.9452C29.2492 26.9452 29.686 26.5518 29.9415 25.955",stroke:s.textStroke,strokeWidth:"0.607623",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M32.5821 25.955C32.8376 26.5518 33.2744 26.9452 33.7704 26.9452C34.2664 26.9452 34.7032 26.5518 34.9587 25.955C35.2141 26.5518 35.651 26.9452 36.147 26.9452C36.6429 26.9452 37.0798 26.5518 37.3352 25.955",stroke:s.textStroke,strokeWidth:"0.607623",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M39.9759 25.955C40.2313 26.5518 40.6682 26.9452 41.1642 26.9452C41.6601 26.9452 42.097 26.5518 42.3524 25.955C42.6079 26.5518 43.0447 26.9452 43.5407 26.9452C44.0367 26.9452 44.4735 26.5518 44.729 25.955",stroke:s.textStroke,strokeWidth:"0.607623",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M24.0001 30.682C24.496 30.682 24.9329 30.2886 25.1883 29.6918C25.4438 30.2886 25.8806 30.682 26.3766 30.682C26.8726 30.682 27.3094 30.2886 27.5649 29.6918C27.8204 30.2886 28.2572 30.682 28.7532 30.682C29.2492 30.682 29.686 30.2886 29.9415 29.6918",stroke:s.textStroke,strokeWidth:"0.607623",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M29.9415 29.6918C30.1969 30.2886 30.6338 30.682 31.1298 30.682C31.6257 30.682 32.0626 30.2886 32.318 29.6918C32.5735 30.2886 33.0103 30.682 33.5063 30.682C34.0023 30.682 34.4391 30.2886 34.6946 29.6918",stroke:s.textStroke,strokeWidth:"0.607623",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M34.6946 29.6918C34.9501 30.2886 35.3869 30.682 35.8829 30.682C36.3789 30.682 36.8157 30.2886 37.0712 29.6918C37.3266 30.2886 37.7635 30.682 38.2595 30.682C38.7554 30.682 39.1923 30.2886 39.4477 29.6918",stroke:s.textStroke,strokeWidth:"0.607623",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M40.3344 33.4439C40.5773 33.2156 40.9711 33.2156 41.2141 33.4439C41.457 33.6721 41.457 34.0421 41.2141 34.2703L37.9212 37.3636L40.7742 40.0437L44.0671 36.9504C44.3101 36.7222 44.7039 36.7222 44.9468 36.9504C45.1897 37.1786 45.1898 37.5486 44.9468 37.7768L41.654 40.8701L44.3247 43.379C44.5676 43.6072 44.5677 43.9772 44.3247 44.2054C44.0818 44.4336 43.688 44.4336 43.445 44.2054L42.6406 43.4498L39.3477 46.5431C37.1916 48.5685 33.783 48.698 31.4655 46.9335L28.7716 49.4652C28.5287 49.6934 28.1349 49.6934 27.8919 49.4652C27.6489 49.237 27.6489 48.867 27.8919 48.6388L30.5857 46.1071C28.7084 43.93 28.8468 40.7287 31.0025 38.7037L34.2954 35.6103L33.491 34.8547C33.2481 34.6265 33.2481 34.2565 33.491 34.0283C33.734 33.8001 34.1278 33.8001 34.3707 34.0283L37.0415 36.5372L40.3344 33.4439ZM31.8822 39.5301C30.0637 41.2384 30.0637 44.0083 31.8822 45.7167C33.7008 47.425 36.6494 47.425 38.468 45.7167L41.7609 42.6234L35.1751 36.4367L31.8822 39.5301Z",fill:s.stroke}),t.jsx("path",{d:"M31.8822 39.5301C30.0637 41.2384 30.0637 44.0083 31.8822 45.7167C33.7008 47.425 36.6494 47.425 38.468 45.7167L41.7609 42.6234L35.1751 36.4367L31.8822 39.5301Z",fill:s.dotsFill}),t.jsx("defs",{children:t.jsxs("filter",{id:"plugin-shadow",x:"17.3714",y:"19.6857",width:"35.2571",height:"25.2571",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[t.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),t.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),t.jsx("feOffset",{dy:"1.31429"}),t.jsx("feGaussianBlur",{stdDeviation:"1.31429"}),t.jsx("feComposite",{in2:"hardAlpha",operator:"out"}),t.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0"}),t.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),t.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})]})})]})}const oTe={"bio-research":function({className:e}){const s=iTe();return t.jsxs("svg",{className:e,width:"40",height:"40",viewBox:"20 320 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsxs("g",{clipPath:"url(#bio-clip)",children:[t.jsxs("g",{filter:"url(#bio-shadow)",children:[t.jsx("path",{d:"M28.7901 350H41.2099C45.0875 350 47.4894 345.778 45.5076 342.445L39.4214 332.209C39.1456 331.745 39 331.215 39 330.675V323C39 321.343 37.6569 320 36 320L34 320C32.3431 320 31 321.343 31 323V330.675C31 331.215 30.8544 331.745 30.5786 332.209L24.4924 342.445C22.5106 345.778 24.9125 350 28.7901 350Z",fill:s.bgFill}),t.jsx("path",{d:"M34 320.5H36C37.3807 320.5 38.5 321.619 38.5 323V330.676C38.5001 331.305 38.6697 331.923 38.9912 332.464L45.0781 342.7C46.8615 345.7 44.6997 349.5 41.21 349.5H28.79C25.3003 349.5 23.1385 345.7 24.9219 342.7L31.0088 332.464C31.3303 331.923 31.4999 331.305 31.5 330.676V323C31.5 321.619 32.6193 320.5 34 320.5Z",stroke:s.stroke})]}),t.jsx("path",{d:"M26.6318 343.488L30.7106 336.496C30.8898 336.189 31.2187 336 31.5744 336H38.4256C38.7813 336 39.1102 336.189 39.2894 336.496L43.3682 343.488C44.5349 345.488 43.0923 348 40.7769 348H29.2231C26.9077 348 25.4651 345.488 26.6318 343.488Z",fill:s.accentFill}),t.jsx("path",{d:"M30 320.5H40C40.2761 320.5 40.5 320.724 40.5 321V323C40.5 323.276 40.2761 323.5 40 323.5H30C29.7239 323.5 29.5 323.276 29.5 323V321C29.5 320.724 29.7239 320.5 30 320.5Z",fill:s.bgFill,stroke:s.stroke}),t.jsx("rect",{x:"30.35",y:"341.35",width:"2.3",height:"2.3",rx:"1.15",fill:s.bgFill,stroke:s.stroke,strokeWidth:"0.7"}),t.jsx("rect",{x:"35.35",y:"344.35",width:"2.3",height:"2.3",rx:"1.15",fill:s.bgFill,stroke:s.stroke,strokeWidth:"0.7"}),t.jsx("rect",{x:"34.35",y:"329.35",width:"2.3",height:"2.3",rx:"1.15",fill:s.bgFill,stroke:s.stroke,strokeWidth:"0.7"})]}),t.jsxs("defs",{children:[t.jsxs("filter",{id:"bio-shadow",x:"21.7824",y:"319",width:"26.4352",height:"34",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[t.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),t.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),t.jsx("feOffset",{dy:"1"}),t.jsx("feGaussianBlur",{stdDeviation:"1"}),t.jsx("feComposite",{in2:"hardAlpha",operator:"out"}),t.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0"}),t.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),t.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})]}),t.jsx("clipPath",{id:"bio-clip",children:t.jsx("rect",{width:"30",height:"30",fill:s.bgFill,transform:"translate(20 320)"})})]})]})},"customer-support":function({className:e}){const s=iTe();return t.jsxs("svg",{className:e,width:"40",height:"40",viewBox:"20 370 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("g",{filter:"url(#customer-shadow)",children:t.jsxs("g",{clipPath:"url(#customer-clip)",children:[t.jsxs("g",{filter:"url(#customer-bubble-shadow)",children:[t.jsx("path",{d:"M21 375C21 373.343 22.3431 372 24 372H46C47.6569 372 49 373.343 49 375V385C49 386.657 47.6569 388 46 388H34.5V390.591C34.5 391.398 33.594 391.873 32.9308 391.414L28 388H24C22.3431 388 21 386.657 21 385V375Z",fill:s.bgFill}),t.jsx("path",{d:"M24 372.5H46C47.3807 372.5 48.5 373.619 48.5 375V385C48.5 386.381 47.3807 387.5 46 387.5H34V390.592C33.9997 390.995 33.5473 391.232 33.2158 391.003L28.2842 387.589L28.1562 387.5H24C22.6193 387.5 21.5 386.381 21.5 385V375C21.5 373.619 22.6193 372.5 24 372.5Z",stroke:s.stroke})]}),t.jsx("path",{d:"M24 384C24.2555 384.597 24.6923 384.99 25.1883 384.99C25.6843 384.99 26.1211 384.597 26.3766 384C26.632 384.597 27.0689 384.99 27.5648 384.99C28.0608 384.99 28.4977 384.597 28.7531 384",stroke:s.textStroke,strokeWidth:"0.607623",strokeLinecap:"round",strokeLinejoin:"round"})]})}),t.jsx("circle",{cx:"42.5",cy:"386.5",r:"4.15",fill:s.accentFill,stroke:s.stroke,strokeWidth:"0.7"}),t.jsx("path",{d:"M24.0001 376.945C24.496 376.945 24.9329 376.552 25.1883 375.955C25.4438 376.552 25.8806 376.945 26.3766 376.945C26.8726 376.945 27.3094 376.552 27.5649 375.955C27.8204 376.552 28.2572 376.945 28.7532 376.945C29.2492 376.945 29.686 376.552 29.9415 375.955",stroke:s.textStroke,strokeWidth:"0.607623",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M32.5821 375.955C32.8376 376.552 33.2744 376.945 33.7704 376.945C34.2664 376.945 34.7032 376.552 34.9587 375.955C35.2141 376.552 35.651 376.945 36.147 376.945C36.6429 376.945 37.0798 376.552 37.3352 375.955",stroke:s.textStroke,strokeWidth:"0.607623",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M39.9759 375.955C40.2313 376.552 40.6682 376.945 41.1642 376.945C41.6601 376.945 42.097 376.552 42.3524 375.955C42.6079 376.552 43.0447 376.945 43.5407 376.945C44.0367 376.945 44.4735 376.552 44.729 375.955",stroke:s.textStroke,strokeWidth:"0.607623",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M24.0001 380.682C24.496 380.682 24.9329 380.289 25.1883 379.692C25.4438 380.289 25.8806 380.682 26.3766 380.682C26.8726 380.682 27.3094 380.289 27.5649 379.692C27.8204 380.289 28.2572 380.682 28.7532 380.682C29.2492 380.682 29.686 380.289 29.9415 379.692",stroke:s.textStroke,strokeWidth:"0.607623",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M29.9415 379.692C30.1969 380.289 30.6338 380.682 31.1298 380.682C31.6257 380.682 32.0626 380.289 32.318 379.692C32.5735 380.289 33.0103 380.682 33.5063 380.682C34.0023 380.682 34.4391 380.289 34.6946 379.692",stroke:s.textStroke,strokeWidth:"0.607623",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M34.6946 379.692C34.9501 380.289 35.3869 380.682 35.8829 380.682C36.3789 380.682 36.8157 380.289 37.0712 379.692C37.3266 380.289 37.7635 380.682 38.2595 380.682C38.7554 380.682 39.1923 380.289 39.4477 379.692",stroke:s.textStroke,strokeWidth:"0.607623",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("mask",{id:"customer-person-mask",fill:"white",children:t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M45.3281 391.06C47.5086 392.568 48.9999 395.603 49 399.104H35.4111C35.4112 395.603 36.9018 392.568 39.082 391.06C39.8948 391.834 40.9948 392.311 42.2061 392.311C43.4168 392.31 44.5156 391.834 45.3281 391.06Z"})}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M45.3281 391.06C47.5086 392.568 48.9999 395.603 49 399.104H35.4111C35.4112 395.603 36.9018 392.568 39.082 391.06C39.8948 391.834 40.9948 392.311 42.2061 392.311C43.4168 392.31 44.5156 391.834 45.3281 391.06Z",fill:s.accentFill}),t.jsx("path",{d:"M45.3281 391.06L45.7263 390.484L45.2578 390.16L44.8453 390.553L45.3281 391.06ZM49 399.104V399.804H49.7L49.7 399.104L49 399.104ZM35.4111 399.104L34.7111 399.104L34.7111 399.804H35.4111V399.104ZM39.082 391.06L39.5649 390.553L39.1524 390.16L38.6838 390.484L39.082 391.06ZM42.2061 392.311V393.011L42.2061 393.011L42.2061 392.311ZM45.3281 391.06L44.93 391.635C46.8827 392.986 48.2999 395.781 48.3 399.105L49 399.104L49.7 399.104C49.6999 395.425 48.1346 392.149 45.7263 390.484L45.3281 391.06ZM49 399.104V398.404H35.4111V399.104V399.804H49V399.104ZM35.4111 399.104L36.1111 399.105C36.1112 395.782 37.5279 392.986 39.4803 391.635L39.082 391.06L38.6838 390.484C36.2758 392.15 34.7112 395.425 34.7111 399.104L35.4111 399.104ZM39.082 391.06L38.5992 391.566C39.5365 392.459 40.8075 393.011 42.2061 393.011V392.311V391.611C41.1822 391.611 40.2531 391.208 39.5649 390.553L39.082 391.06ZM42.2061 392.311L42.2061 393.011C43.6045 393.01 44.874 392.459 45.8109 391.566L45.3281 391.06L44.8453 390.553C44.1571 391.208 43.2291 391.61 42.206 391.611L42.2061 392.311Z",fill:s.stroke,mask:"url(#customer-person-mask)"}),t.jsxs("defs",{children:[t.jsxs("filter",{id:"customer-shadow",x:"17.3714",y:"369.686",width:"35.2571",height:"27.2571",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[t.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),t.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),t.jsx("feOffset",{dy:"1.31429"}),t.jsx("feGaussianBlur",{stdDeviation:"1.31429"}),t.jsx("feComposite",{in2:"hardAlpha",operator:"out"}),t.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0"}),t.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),t.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})]}),t.jsxs("filter",{id:"customer-bubble-shadow",x:"19",y:"371",width:"32",height:"23.5931",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[t.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),t.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),t.jsx("feOffset",{dy:"1"}),t.jsx("feGaussianBlur",{stdDeviation:"1"}),t.jsx("feComposite",{in2:"hardAlpha",operator:"out"}),t.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0"}),t.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),t.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})]}),t.jsx("clipPath",{id:"customer-clip",children:t.jsx("rect",{x:"20",y:"371",width:"30",height:"22",rx:"3",fill:s.bgFill})})]})]})},data:function({className:e}){const s=iTe();return t.jsxs("svg",{className:e,width:"40",height:"40",viewBox:"20 120 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsxs("g",{filter:"url(#plugin-data-shadow)",children:[t.jsx("rect",{x:"20",y:"120",width:"30",height:"30",rx:"3.5",fill:s.bgFill}),t.jsx("rect",{x:"20.5",y:"120.5",width:"29",height:"29",rx:"3",stroke:s.borderStroke}),t.jsx("path",{d:"M34.5 131.5L28 134V141.5H42.499V130L36.499 134L34.5 131.5Z",fill:s.accentFill}),t.jsx("path",{d:"M28.001 134L34.1595 131.631C34.3628 131.553 34.5934 131.616 34.7295 131.786L36.2197 133.649C36.3792 133.849 36.6632 133.896 36.8787 133.759L42 130.5M42 130.5L40 130M42 130.5L41.5 132.5",stroke:s.stroke,strokeLinecap:"round"}),t.jsx("path",{d:"M27.501 128V141.5C27.501 141.776 27.7248 142 28.001 142H43",stroke:s.stroke,strokeLinecap:"round"})]}),t.jsx("defs",{children:t.jsxs("filter",{id:"plugin-data-shadow",x:"17.3714",y:"118.686",width:"35.2571",height:"35.2571",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[t.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),t.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),t.jsx("feOffset",{dy:"1.31429"}),t.jsx("feGaussianBlur",{stdDeviation:"1.31429"}),t.jsx("feComposite",{in2:"hardAlpha",operator:"out"}),t.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0"}),t.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),t.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})]})})]})},"enterprise-search":function({className:e}){const s=iTe();return t.jsxs("svg",{className:e,width:"40",height:"40",viewBox:"20 420 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("path",{d:"M23.0352 423.5H31.5811C32.2386 423.5 32.87 423.76 33.3379 424.222L33.9287 424.805C34.5837 425.452 35.4671 425.814 36.3877 425.814H47C48.3806 425.814 49.4998 426.934 49.5 428.314V430.648C49.4998 432.029 48.3806 433.148 47 433.148H23.0908C21.7216 433.148 20.607 432.047 20.5908 430.678L20.5361 426.029C20.5198 424.637 21.6432 423.5 23.0352 423.5Z",fill:s.accentFill,stroke:s.stroke}),t.jsxs("g",{filter:"url(#enterprise-search-shadow)",children:[t.jsx("path",{d:"M20 433.356C20 431.675 20 430.835 20.327 430.194C20.6146 429.629 21.0735 429.17 21.638 428.883C22.2798 428.556 23.1198 428.556 24.8 428.556H45.2C46.8802 428.556 47.7202 428.556 48.362 428.883C48.9265 429.17 49.3854 429.629 49.673 430.194C50 430.835 50 431.675 50 433.356V443.2C50 444.88 50 445.72 49.673 446.362C49.3854 446.926 48.9265 447.385 48.362 447.673C47.7202 448 46.8802 448 45.2 448H24.8C23.1198 448 22.2798 448 21.638 447.673C21.0735 447.385 20.6146 446.926 20.327 446.362C20 445.72 20 444.88 20 443.2V433.356Z",fill:s.bgFill}),t.jsx("path",{d:"M24.7998 429.056H45.2002C46.0484 429.056 46.6547 429.056 47.1299 429.095C47.599 429.133 47.8962 429.206 48.1348 429.328C48.6052 429.568 48.9879 429.95 49.2275 430.421C49.3491 430.659 49.4226 430.957 49.4609 431.426C49.4998 431.901 49.5 432.507 49.5 433.355V443.2C49.5 444.048 49.4998 444.655 49.4609 445.13C49.4226 445.599 49.349 445.896 49.2275 446.135C48.9879 446.605 48.6052 446.988 48.1348 447.227C47.8962 447.349 47.599 447.422 47.1299 447.461C46.6547 447.5 46.0484 447.5 45.2002 447.5H24.7998C23.9516 447.5 23.3453 447.5 22.8701 447.461C22.401 447.422 22.1038 447.349 21.8652 447.227C21.3948 446.988 21.0121 446.605 20.7725 446.135C20.651 445.896 20.5774 445.599 20.5391 445.13C20.5002 444.655 20.5 444.048 20.5 443.2V433.355C20.5 432.507 20.5002 431.901 20.5391 431.426C20.5774 430.957 20.6509 430.659 20.7725 430.421C21.0121 429.95 21.3948 429.568 21.8652 429.328C22.1038 429.206 22.401 429.133 22.8701 429.095C23.3453 429.056 23.9516 429.056 24.7998 429.056Z",stroke:s.borderStroke})]}),t.jsx("path",{d:"M42.44 440.586L49.1575 447.303C49.7433 447.889 49.7433 448.839 49.1575 449.425C48.5717 450.01 47.6219 450.01 47.0362 449.425L40.3186 442.707L42.44 440.586Z",fill:s.accentFill,stroke:s.stroke}),t.jsx("circle",{cx:"39.1924",cy:"439.192",r:"6",transform:"rotate(-45 39.1924 439.192)",fill:s.accentFill,stroke:s.stroke}),t.jsx("circle",{cx:"39.1924",cy:"439.192",r:"4.5",transform:"rotate(-45 39.1924 439.192)",fill:s.bgFill}),t.jsx("defs",{children:t.jsxs("filter",{id:"enterprise-search-shadow",x:"17.3714",y:"427.241",width:"35.2571",height:"24.7016",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[t.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),t.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),t.jsx("feOffset",{dy:"1.31429"}),t.jsx("feGaussianBlur",{stdDeviation:"1.31429"}),t.jsx("feComposite",{in2:"hardAlpha",operator:"out"}),t.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0"}),t.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),t.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})]})})]})},finance:function({className:e}){const s=iTe();return t.jsxs("svg",{className:e,width:"40",height:"40",viewBox:"20 70 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsxs("g",{filter:"url(#finance-shadow)",children:[t.jsxs("g",{clipPath:"url(#finance-clip)",children:[t.jsx("rect",{x:"20",y:"70",width:"30",height:"30",rx:"3",fill:s.bgFill}),t.jsxs("g",{children:[t.jsx("path",{d:"M23.7568 76.2334C24.2528 76.2334 24.6897 75.84 24.9451 75.2432C25.2006 75.84 25.6374 76.2334 26.1334 76.2334C26.6294 76.2334 27.0662 75.84 27.3217 75.2432C27.5772 75.84 28.014 76.2334 28.51 76.2334C29.006 76.2334 29.4428 75.84 29.6983 75.2432",stroke:s.textStroke,strokeWidth:"0.607623",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M32.3387 75.2432C32.5942 75.84 33.031 76.2334 33.527 76.2334C34.023 76.2334 34.4598 75.84 34.7153 75.2432C34.9707 75.84 35.4076 76.2334 35.9036 76.2334C36.3995 76.2334 36.8364 75.84 37.0918 75.2432",stroke:s.textStroke,strokeWidth:"0.607623",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M39.7325 75.2432C39.988 75.84 40.4248 76.2334 40.9208 76.2334C41.4168 76.2334 41.8536 75.84 42.1091 75.2432C42.3645 75.84 42.8014 76.2334 43.2974 76.2334C43.7933 76.2334 44.2302 75.84 44.4856 75.2432",stroke:s.textStroke,strokeWidth:"0.607623",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M23.7568 79.2439C24.2528 79.2439 24.6897 78.8505 24.9451 78.2537C25.2006 78.8505 25.6374 79.2439 26.1334 79.2439C26.6294 79.2439 27.0662 78.8505 27.3217 78.2537C27.5772 78.8505 28.014 79.2439 28.51 79.2439C29.006 79.2439 29.4428 78.8505 29.6983 78.2537",stroke:s.textStroke,strokeWidth:"0.607623",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M29.6983 78.2535C29.9538 78.8504 30.3906 79.2438 30.8866 79.2438C31.3826 79.2438 31.8194 78.8504 32.0749 78.2535C32.3304 78.8504 32.7672 79.2438 33.2632 79.2438C33.7592 79.2438 34.196 78.8504 34.4515 78.2535",stroke:s.textStroke,strokeWidth:"0.607623",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M34.4513 78.2535C34.7068 78.8504 35.1436 79.2438 35.6396 79.2438C36.1356 79.2438 36.5724 78.8504 36.8279 78.2535C37.0834 78.8504 37.5202 79.2438 38.0162 79.2438C38.5122 79.2438 38.949 78.8504 39.2045 78.2535",stroke:s.textStroke,strokeWidth:"0.607623",strokeLinecap:"round",strokeLinejoin:"round"})]}),t.jsx("path",{d:"M24.5 92H45.5",stroke:s.stroke,strokeWidth:"0.5"}),t.jsx("path",{d:"M24 86C24 84.8954 24.8954 84 26 84H44C45.1046 84 46 84.8954 46 86V88H24V86Z",fill:s.accentFill}),t.jsx("path",{d:"M24.5 88H45.5",stroke:s.stroke,strokeWidth:"0.5"}),t.jsx("rect",{x:"24.35",y:"84.35",width:"21.3",height:"11.3",rx:"0.65",stroke:s.stroke,strokeWidth:"0.7"}),t.jsx("path",{d:"M35 84.5V95.5",stroke:s.stroke,strokeWidth:"0.5"})]}),t.jsx("rect",{x:"20.5",y:"70.5",width:"29",height:"29",rx:"2.5",stroke:s.borderStroke})]}),t.jsxs("defs",{children:[t.jsxs("filter",{id:"finance-shadow",x:"17.3714",y:"68.6857",width:"35.2571",height:"35.2571",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[t.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),t.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),t.jsx("feOffset",{dy:"1.31429"}),t.jsx("feGaussianBlur",{stdDeviation:"1.31429"}),t.jsx("feComposite",{in2:"hardAlpha",operator:"out"}),t.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0"}),t.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),t.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})]}),t.jsx("clipPath",{id:"finance-clip",children:t.jsx("rect",{x:"20",y:"70",width:"30",height:"30",rx:"3",fill:s.bgFill})})]})]})},legal:function({className:e}){const s=iTe();return t.jsxs("svg",{className:e,width:"40",height:"40",viewBox:"20 220 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsxs("g",{clipPath:"url(#legal-clip)",children:[t.jsxs("g",{filter:"url(#legal-doc-shadow)",children:[t.jsx("path",{d:"M43 249H28C26.3431 249 25 247.657 25 246V224C25 222.343 26.3431 221 28 221H39L46 228.559V246C46 247.657 44.6569 249 43 249Z",fill:s.bgFill}),t.jsx("path",{d:"M28 221.5H38.7812L45.5 228.755V246C45.5 247.381 44.3807 248.5 43 248.5H28C26.6193 248.5 25.5 247.381 25.5 246V224C25.5 222.619 26.6193 221.5 28 221.5Z",stroke:s.stroke})]}),t.jsxs("g",{children:[t.jsx("path",{d:"M28 229.995C28.496 229.995 28.9328 229.602 29.1883 229.005C29.4437 229.602 29.8806 229.995 30.3766 229.995C30.8726 229.995 31.3094 229.602 31.5649 229.005C31.8203 229.602 32.2572 229.995 32.7531 229.995C33.2491 229.995 33.686 229.602 33.9414 229.005",stroke:s.textStroke,strokeWidth:"0.607623",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M33.9414 229.005C34.1969 229.602 34.6337 229.995 35.1297 229.995C35.6257 229.995 36.0625 229.602 36.318 229.005C36.5735 229.602 37.0103 229.995 37.5063 229.995C38.0023 229.995 38.4391 229.602 38.6946 229.005",stroke:s.textStroke,strokeWidth:"0.607623",strokeLinecap:"round",strokeLinejoin:"round"})]}),t.jsx("g",{children:t.jsx("path",{d:"M28 225.99C28.496 225.99 28.9328 225.597 29.1883 225C29.4437 225.597 29.8806 225.99 30.3766 225.99C30.8726 225.99 31.3094 225.597 31.5649 225C31.8203 225.597 32.2572 225.99 32.7531 225.99C33.2491 225.99 33.686 225.597 33.9414 225",stroke:s.textStroke,strokeWidth:"0.607623",strokeLinecap:"round",strokeLinejoin:"round"})}),t.jsx("g",{children:t.jsx("path",{d:"M28 233.99C28.496 233.99 28.9328 233.597 29.1883 233C29.4437 233.597 29.8806 233.99 30.3766 233.99C30.8726 233.99 31.3094 233.597 31.5649 233C31.8203 233.597 32.2572 233.99 32.7531 233.99C33.2491 233.99 33.686 233.597 33.9414 233",stroke:s.textStroke,strokeWidth:"0.607623",strokeLinecap:"round",strokeLinejoin:"round"})}),t.jsx("path",{d:"M38.6129 240.25L39.9535 238.91L43.3049 242.261L41.9644 243.602L38.6129 240.25Z",fill:s.accentFill}),t.jsx("rect",{x:"31.2767",y:"237.569",width:"8.47929",height:"6.58343",transform:"rotate(-45 31.2767 237.569)",fill:s.accentFill,stroke:s.stroke}),t.jsx("path",{d:"M29.6559 237.849L30.2159 237.289C30.4112 237.094 30.7278 237.094 30.923 237.289L36.2118 242.578C36.4069 242.773 36.4068 243.09 36.2118 243.285L35.6518 243.845C35.0661 244.431 34.1163 244.43 33.5305 243.845L29.6559 239.97C29.0701 239.384 29.0701 238.435 29.6559 237.849Z",fill:s.accentFill,stroke:s.stroke}),t.jsx("path",{d:"M37.5519 229.953L36.9919 230.513C36.7968 230.708 36.7967 231.025 36.9919 231.22L42.2807 236.509C42.4759 236.704 42.7925 236.704 42.9878 236.509L43.5478 235.949C44.1335 235.363 44.1334 234.413 43.5478 233.828L39.6732 229.953C39.0874 229.367 38.1377 229.367 37.5519 229.953Z",fill:s.accentFill,stroke:s.stroke}),t.jsx("path",{d:"M40.0668 238.389L48.3138 246.636C48.8587 247.182 48.8582 248.066 48.3132 248.611C47.7681 249.155 46.8847 249.155 46.3396 248.611L38.0926 240.364L40.0668 238.389Z",fill:s.accentFill,stroke:s.stroke})]}),t.jsxs("defs",{children:[t.jsxs("filter",{id:"legal-doc-shadow",x:"23",y:"220",width:"25",height:"32",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[t.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),t.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),t.jsx("feOffset",{dy:"1"}),t.jsx("feGaussianBlur",{stdDeviation:"1"}),t.jsx("feComposite",{in2:"hardAlpha",operator:"out"}),t.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0"}),t.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),t.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})]}),t.jsx("clipPath",{id:"legal-clip",children:t.jsx("rect",{width:"30",height:"30",fill:s.bgFill,transform:"translate(20 220)"})})]})]})},marketing:function({className:e}){const s=iTe();return t.jsxs("svg",{className:e,width:"40",height:"40",viewBox:"20 520 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("path",{d:"M34.2036 537.034L36.5021 545.613C36.805 546.743 36.1342 547.905 35.0037 548.208C33.8732 548.511 32.7112 547.84 32.4082 546.71L30.1097 538.131L34.2036 537.034Z",fill:s.accentFill,stroke:s.stroke}),t.jsx("path",{d:"M30.3322 538.83C28.6841 539.228 27.2122 539.353 26.0412 539.025C24.8107 538.681 23.8508 537.823 23.3742 536.045C22.8977 534.266 23.3001 533.043 24.1936 532.13C25.0439 531.261 26.3806 530.632 28.0071 530.153L30.3322 538.83Z",fill:s.accentFill,stroke:s.stroke}),t.jsx("path",{d:"M42.0497 528.468C42.876 528.297 43.5919 528.29 44.1679 528.511C44.816 528.759 45.3875 529.334 45.7199 530.575C46.0524 531.815 45.8451 532.599 45.408 533.138C45.0194 533.617 44.396 533.97 43.5948 534.235L42.0497 528.468Z",fill:s.accentFill,stroke:s.stroke}),t.jsxs("g",{filter:"url(#pm-shadow)",children:[t.jsx("path",{d:"M28.131 532.547C27.8183 531.38 27.662 530.796 27.7196 530.245C27.7705 529.757 27.9401 529.289 28.2135 528.883C28.523 528.422 29.017 528.074 30.0049 527.379L34.7085 524.069C36.5986 522.739 37.5437 522.074 38.4329 522.041C39.2109 522.013 39.9695 522.288 40.5484 522.808C41.2101 523.403 41.5092 524.519 42.1074 526.752L44.244 534.726C44.8422 536.958 45.1413 538.075 44.8657 538.921C44.6246 539.661 44.1052 540.278 43.4172 540.643C42.6309 541.059 41.4799 540.956 39.1778 540.749L33.4493 540.234C32.2461 540.126 31.6445 540.072 31.1462 539.828C30.706 539.612 30.3253 539.292 30.0375 538.895C29.7116 538.446 29.5553 537.862 29.2426 536.695L28.131 532.547Z",fill:s.bgFill}),t.jsx("path",{d:"M37.1959 523.001C37.7537 522.68 38.1277 522.552 38.4515 522.541C39.0997 522.517 39.7319 522.747 40.2142 523.18C40.455 523.397 40.6604 523.734 40.8823 524.338C41.1049 524.944 41.3228 525.756 41.6243 526.881L43.7611 534.856C44.0626 535.981 44.2797 536.793 44.39 537.429C44.4999 538.063 44.4904 538.457 44.3902 538.765C44.1893 539.382 43.7567 539.897 43.1835 540.201C42.8972 540.352 42.5096 540.429 41.8658 540.43C41.2199 540.43 40.3831 540.355 39.2227 540.251L33.4937 539.736C32.2497 539.624 31.7611 539.572 31.3659 539.379C30.9991 539.199 30.6817 538.932 30.4418 538.601C30.1835 538.245 30.0489 537.773 29.7256 536.566L28.614 532.417C28.2907 531.211 28.1709 530.734 28.2166 530.297C28.259 529.89 28.4003 529.5 28.6281 529.161C28.8736 528.796 29.2709 528.507 30.2924 527.788L34.9961 524.478C35.9489 523.807 36.6364 523.324 37.1959 523.001Z",stroke:s.borderStroke})]}),t.jsx("line",{x1:"37.4656",y1:"522.951",x2:"42.1243",y2:"540.338",stroke:s.stroke}),t.jsx("defs",{children:t.jsxs("filter",{id:"pm-shadow",x:"25.0792",y:"520.725",width:"22.5183",height:"24.1476",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[t.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),t.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),t.jsx("feOffset",{dy:"1.31429"}),t.jsx("feGaussianBlur",{stdDeviation:"1.31429"}),t.jsx("feComposite",{in2:"hardAlpha",operator:"out"}),t.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0"}),t.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),t.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})]})})]})},"product-management":function({className:e}){const s=iTe();return t.jsxs("svg",{className:e,width:"40",height:"40",viewBox:"20 470 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsxs("g",{filter:"url(#marketing-shadow)",children:[t.jsx("rect",{x:"20",y:"470",width:"30",height:"30",rx:"3.5",fill:s.bgFill}),t.jsx("rect",{x:"20.5",y:"470.5",width:"29",height:"29",rx:"3",stroke:s.borderStroke}),t.jsx("path",{d:"M26 476V493.5C26 493.776 26.2239 494 26.5 494H44",stroke:s.stroke,strokeLinecap:"round"}),t.jsx("rect",{x:"38",y:"476",width:"4",height:"10",rx:"1",transform:"rotate(90 38 476)",fill:s.accentFill}),t.jsx("rect",{x:"43",y:"482",width:"4",height:"13",rx:"1",transform:"rotate(90 43 482)",fill:s.accentFill}),t.jsx("rect",{x:"45",y:"488",width:"4",height:"8",rx:"1",transform:"rotate(90 45 488)",fill:s.accentFill}),t.jsx("line",{x1:"35.25",y1:"476",x2:"35.25",y2:"494",stroke:s.stroke,strokeWidth:"0.5",strokeDasharray:"1 1"})]}),t.jsx("defs",{children:t.jsxs("filter",{id:"marketing-shadow",x:"17.3714",y:"468.686",width:"35.2571",height:"35.2571",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[t.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),t.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),t.jsx("feOffset",{dy:"1.31429"}),t.jsx("feGaussianBlur",{stdDeviation:"1.31429"}),t.jsx("feComposite",{in2:"hardAlpha",operator:"out"}),t.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0"}),t.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),t.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})]})})]})},productivity:function({className:e}){const s=iTe();return t.jsxs("svg",{className:e,width:"40",height:"40",viewBox:"20 270 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsxs("g",{clipPath:"url(#productivity-clip)",children:[t.jsxs("g",{filter:"url(#productivity-shadow)",children:[t.jsx("path",{d:"M44 299H28C26.3431 299 25 297.657 25 296V274C25 272.343 26.3431 271 28 271H39.6667L47 278.559V296C47 297.657 45.6569 299 44 299Z",fill:s.bgFill}),t.jsx("path",{d:"M28 271.5H39.4541L46.5 278.761V296C46.5 297.381 45.3807 298.5 44 298.5H28C26.6193 298.5 25.5 297.381 25.5 296V274C25.5 272.619 26.6193 271.5 28 271.5Z",stroke:s.stroke})]}),t.jsx("rect",{x:"28.5",y:"291.5",width:"3",height:"3",rx:"0.5",fill:s.accentFill,stroke:s.stroke}),t.jsx("rect",{x:"28.5",y:"285.5",width:"3",height:"3",rx:"0.5",fill:s.accentFill,stroke:s.stroke}),t.jsx("path",{d:"M28 276.875L29.0454 277.737C29.2302 277.89 29.4971 277.89 29.6818 277.737L33 275",stroke:s.stroke,strokeLinecap:"round"}),t.jsx("path",{d:"M28 281.875L29.0454 282.737C29.2302 282.89 29.4971 282.89 29.6818 282.737L33 280",stroke:s.stroke,strokeLinecap:"round"}),t.jsxs("g",{children:[t.jsx("path",{d:"M34 286.995C34.496 286.995 34.9328 286.602 35.1883 286.005C35.4437 286.602 35.8806 286.995 36.3766 286.995C36.8726 286.995 37.3094 286.602 37.5649 286.005C37.8203 286.602 38.2572 286.995 38.7531 286.995C39.2491 286.995 39.686 286.602 39.9414 286.005",stroke:s.textStroke,strokeWidth:"0.607623",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M39.9414 286.005C40.1969 286.602 40.6337 286.995 41.1297 286.995C41.6257 286.995 42.0625 286.602 42.318 286.005C42.5735 286.602 43.0103 286.995 43.5063 286.995C44.0023 286.995 44.4391 286.602 44.6946 286.005",stroke:s.textStroke,strokeWidth:"0.607623",strokeLinecap:"round",strokeLinejoin:"round"})]}),t.jsxs("g",{children:[t.jsx("path",{d:"M34 292.995C34.496 292.995 34.9328 292.602 35.1883 292.005C35.4437 292.602 35.8806 292.995 36.3766 292.995C36.8726 292.995 37.3094 292.602 37.5649 292.005C37.8203 292.602 38.2572 292.995 38.7531 292.995C39.2491 292.995 39.686 292.602 39.9414 292.005",stroke:s.textStroke,strokeWidth:"0.607623",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M39.9414 292.005C40.1969 292.602 40.6337 292.995 41.1297 292.995C41.6257 292.995 42.0625 292.602 42.318 292.005C42.5735 292.602 43.0103 292.995 43.5063 292.995C44.0023 292.995 44.4391 292.602 44.6946 292.005",stroke:s.textStroke,strokeWidth:"0.607623",strokeLinecap:"round",strokeLinejoin:"round"})]})]}),t.jsxs("defs",{children:[t.jsxs("filter",{id:"productivity-shadow",x:"23",y:"270",width:"26",height:"32",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[t.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),t.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),t.jsx("feOffset",{dy:"1"}),t.jsx("feGaussianBlur",{stdDeviation:"1"}),t.jsx("feComposite",{in2:"hardAlpha",operator:"out"}),t.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0"}),t.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),t.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})]}),t.jsx("clipPath",{id:"productivity-clip",children:t.jsx("rect",{width:"30",height:"30",fill:s.bgFill,transform:"translate(20 270)"})})]})]})},sales:function({className:e}){const s=iTe();return t.jsxs("svg",{className:e,width:"40",height:"40",viewBox:"20 170 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsxs("g",{filter:"url(#sales-shadow)",children:[t.jsx("rect",{x:"20",y:"170",width:"30",height:"30",rx:"3.5",fill:s.bgFill}),t.jsx("rect",{x:"20.5",y:"170.5",width:"29",height:"29",rx:"3",stroke:s.borderStroke}),t.jsx("path",{d:"M26 176V193.5C26 193.776 26.2239 194 26.5 194H44",stroke:s.stroke,strokeLinecap:"round"}),t.jsx("rect",{x:"28",y:"185",width:"4",height:"7",rx:"1",fill:s.accentFill}),t.jsx("rect",{x:"40",y:"181",width:"4",height:"11",rx:"1",fill:s.accentFill}),t.jsx("rect",{x:"34",y:"184",width:"4",height:"8",rx:"1",fill:s.accentFill}),t.jsx("path",{d:"M29 183C29 183 31.9436 182.949 36 181.5C40.0564 180.051 43 176 43 176M43 176H41.1333M43 176L42.9991 178",stroke:s.stroke,strokeLinecap:"round"})]}),t.jsx("defs",{children:t.jsxs("filter",{id:"sales-shadow",x:"17.3714",y:"168.686",width:"35.2571",height:"35.2571",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[t.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),t.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),t.jsx("feOffset",{dy:"1.31429"}),t.jsx("feGaussianBlur",{stdDeviation:"1.31429"}),t.jsx("feComposite",{in2:"hardAlpha",operator:"out"}),t.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0"}),t.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),t.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})]})})]})}};function lTe(e){return oTe[e]??rTe}function cTe(e,t){return void 0===mv(e.pluginId)?uv(e.pluginId).name:t??e.pluginName}const dTe=e.memo(function({plugin:s,isInstalled:n,isInstalling:a,isAnyInstalling:i,onInstall:r,onBack:o,manageRouteId:l,authoritativePluginName:c}){const d=JS(),{track:u}=ae(),m=wg(),{promptInputRef:p}=J(),f=aa(e=>e.sessionContext?.sessionId),[g,h]=e.useState(!1),C=cTe(s,c),{data:x}=pv(s.pluginId),v=e.useMemo(()=>x?.skills?.filter(pr)??[],[x]),[y,b]=e.useState(null);null===y&&v.length>0&&b(v);const k=y??v,w=n&&k.length>0?k:s.payloadSkills,M=e.useCallback(e=>{const t=R5(e.name);u({event_key:"claudeai.plugin.suggestion.skill_try_clicked",skill_name:t,session_id:f,...m(s.pluginId)&&{plugin_id:s.pluginId}});const n=p.current?.getEditor();n&&n.chain().focus().insertContent(fv(`${C}:${t}`,t,e.description,e.argumentHint??"")).run()},[s.pluginId,C,u,p,m,f]),_=gv(),j=e.useCallback(()=>{_(`/customize/plugins/${encodeURIComponent(l??s.pluginId)}`)},[l,s.pluginId,_]),S=e.useCallback(()=>r(s),[r,s]),L=lTe(C),N=dv({name:s.pluginName,displayName:x?.displayName}),I=g?w:w.slice(0,5),T=w.length>5,A=dn(),E=A?d.formatMessage({defaultMessage:"Add this plugin to use this skill",id:"Fw5GkGZPxS"}):d.formatMessage({defaultMessage:"Skills are disabled by your organization",id:"rlXzveEJ7h"});return t.jsxs("div",{className:"animate-in fade-in duration-200 motion-reduce:animate-none",children:[t.jsxs("div",{className:"flex items-center gap-2 p-6",children:[o&&t.jsx("button",{type:"button",onClick:o,className:"-ml-2 mr-1 shrink-0 rounded p-1 text-text-300 transition-colors hover:bg-bg-300 hover:text-text-100","aria-label":d.formatMessage({defaultMessage:"Back to plugin list",id:"8y0mQ6q8Fh"}),children:t.jsx($L,{name:"CaretLeft",size:"md"})}),t.jsx("div",{className:"flex size-12 shrink-0 items-center justify-center rounded-[10px] bg-bg-200",children:t.jsx(L,{className:"size-7"})}),t.jsxs("div",{className:"min-w-0 flex-1",children:[t.jsx("div",{className:"text-base font-semibold text-text-000",children:N}),t.jsx("div",{className:"truncate text-sm text-text-300",children:x?.description?t.jsx(XS,{defaultMessage:"{count, plural, one {# skill} other {# skills}} to {description}",id:"TTmlbK7MwR",values:{count:w.length,description:D5(x.description)}}):s.description?t.jsx(t.Fragment,{children:D5(s.description)}):t.jsx(XS,{defaultMessage:"{count, plural, one {# skill} other {# skills}}",id:"wivscRMj7V",values:{count:w.length}})})]}),a?t.jsx(rN,{variant:"primary",className:"!min-w-0",disabled:!0,children:t.jsx(XS,{defaultMessage:"Adding...",id:"Nvr5CeqKuU"})}):n?t.jsx(rN,{variant:"secondary",onClick:j,children:t.jsx(XS,{defaultMessage:"Manage",id:"0AzlrbMWV9"})}):t.jsx(rN,{variant:"primary",className:"!min-w-0",onClick:S,disabled:i,children:t.jsx(XS,{defaultMessage:"Add",id:"2/2yg+qAwp"})})]}),t.jsx("div",{className:"max-h-96 overflow-y-auto",children:I.map(e=>t.jsx(H5,{name:e.name,description:e.description,onTry:()=>M(e),disabled:!n||!A,disabledTooltip:E},e.name))}),T&&t.jsx("div",{className:"px-6",children:t.jsx("button",{type:"button","aria-expanded":g,onClick:()=>h(e=>!e),className:"flex h-12 w-full items-center border-t-0.5 border-border-300 text-left text-sm text-text-300 transition-colors hover:text-text-100",children:g?t.jsx(XS,{defaultMessage:"Show fewer skills",id:"xOaIeFtIpa"}):t.jsx(XS,{defaultMessage:"+ {count, plural, one {# more skill} other {# more skills}}",id:"IncW6Rd1zK",values:{count:w.length-5}})})})]})});dTe.displayName="PluginDetailPanel";const uTe=e.memo(function({plugin:s,isInstalled:n,isInstalling:a,isAnyInstalling:i,onSelect:r,onInstall:o}){const l=lTe(cTe(s)),c=dv(s.pluginName),d=e.useCallback(()=>r(s),[r,s]),u=e.useCallback(()=>o(s),[o,s]);return t.jsxs("div",{className:"relative isolate flex items-center gap-3 px-4 py-3 transition-colors hover:bg-bg-100 [&:not(:first-child)]:border-t-0.5 [&:not(:first-child)]:border-border-300",children:[t.jsx($L,{name:"CaretRight",size:"sm",className:"shrink-0 text-text-400"}),t.jsx("div",{className:"flex size-9 shrink-0 items-center justify-center rounded-lg bg-bg-200",children:t.jsx(l,{className:"size-[22px]"})}),t.jsxs("div",{className:"min-w-0 flex-1",children:[t.jsx("button",{type:"button",onClick:d,className:"block w-full text-left text-sm font-semibold text-text-100 after:absolute after:inset-0 after:content-['']",children:c}),t.jsx("div",{className:"truncate text-xs text-text-400",children:s.payloadSkills.length>0?t.jsx(XS,{defaultMessage:"{count, plural, one {# skill} other {# skills}} \xb7 {description}",id:"XkntOc9mAI",values:{count:s.payloadSkills.length,description:s.description}}):s.description})]}),a?t.jsx(rN,{variant:"primary",size:"sm",className:"relative z-10 !min-w-0",disabled:!0,children:t.jsx(XS,{defaultMessage:"Adding...",id:"Nvr5CeqKuU"})}):n?t.jsxs("span",{className:"inline-flex shrink-0 items-center gap-1 rounded-full bg-bg-200 px-2 py-1 text-xs text-text-300",children:[t.jsx($L,{name:"Check",size:"xs"}),t.jsx(XS,{defaultMessage:"Installed",id:"V22724PpOf"})]}):t.jsx(rN,{variant:"primary",size:"sm",className:"relative z-10 !min-w-0",onClick:u,disabled:i,children:t.jsx(XS,{defaultMessage:"Add",id:"2/2yg+qAwp"})})]})});function mTe(e){if(!Array.isArray(e))return[];const t=[];for(const s of e)"string"==typeof s?.name&&s.name&&t.push({name:s.name,description:"string"==typeof s.description?s.description:"",argumentHint:"string"==typeof s.argumentHint?s.argumentHint:void 0});return t}function pTe(e){if(!e||"object"!=typeof e)return null;const t=e;if("string"!=typeof t.pluginName||!t.pluginName||"string"!=typeof t.pluginId||!t.pluginId)return null;const s=mv(t.pluginId),n=s??t.pluginId;return{pluginName:t.pluginName.toLowerCase(),originalPluginName:t.pluginName,pluginId:jg(n),backendId:"string"==typeof t.backendId&&t.backendId?t.backendId:s,description:"string"==typeof t.description?t.description:"",payloadSkills:mTe(t.skills)}}uTe.displayName="PluginListRow";const fTe=e.memo(function({toolResult:s,source:n="suggest_plugin_install"}){const a=JS(),{track:i}=ae(),{addError:r}=ut(),o=v().activeOrganization?.uuid??"",l=wg(),c=aa(e=>e.sessionContext?.sessionId),d=e.useRef(!1),u=e.useRef(!1),[m,p]=e.useState(!1),[f,g]=e.useState(null),h=e.useRef(null),C=e.useMemo(()=>function(e){try{const t=JSON.parse(e),s="string"==typeof t?.contextLabel?t.contextLabel:"",n=Array.isArray(t?.plugins)?t.plugins:Array.isArray(t?.results)?t.results.map(e=>({pluginId:e.id,backendId:e.id,pluginName:e.name,description:e.description??""})):null;if(n){const e=n.map(pTe).filter(e=>null!==e);return e.length>0?{contextLabel:s,plugins:e}:null}const a=pTe(t);return a?{contextLabel:s,plugins:[a]}:null}catch{return null}}(s),[s]),x=1===C?.plugins.length,y="list_plugins"===n,{isHttpInstall:b,isRemoteCoworkSession:k,surface:w}=tTe(c),{coworkIpcRoute:M}=ov(),{data:_,isLoading:j}=hv(!b),{data:S}=Cv({enabled:b}),L=b?void 0===S:j,N=e.useMemo(()=>{if(b)return sTe(S);const e=new Set;for(const t of _??[])t.isInstalled&&e.add(t.id);return e},[b,S,_]),{mutateAsync:I}=Mg(),T=e.useCallback(()=>{k&&c&&I({sessionId:c}).catch(()=>{})},[k,c,I]),A=xv(),{mutate:E,isPending:R}=cv({onSuccess:e=>{h.current=null,T(),k&&"unavailable"!==M&&A();const t=l(e.pluginId);Gc(e.pluginId).catch(()=>null).then(s=>{i({event_key:"claudeai.fusion.installed",...t&&{plugin_id:e.pluginId},plugin_id_hash:s,plugin_name:t?e.name:"third-party",is_official_plugin:t,surface:w,is_local:!1,install_source:"chat_suggestion"})})},onError:e=>{const t=h.current;h.current=null;const s=C?.plugins.find(e=>e.pluginId===t);if(s){const e=l(s.pluginId);i({event_key:"claudeai.plugin.suggestion.install_failed",plugin_name:e?s.pluginName:"third-party",plugin_name_hash:Vc(o+s.originalPluginName),is_official_plugin:e,session_id:c})}r(a.formatMessage({defaultMessage:"Failed to install plugin.",id:"oYeHcgM6ij"}),{error:e,errorContext:{tags:{source:"plugin_suggestion_web_enable"}},messageForLogging:"[plugin_suggestion] Failed to enable plugin."})}}),{mutate:D,isPending:H}=vv({onSuccess:()=>{h.current=null},onError:()=>{const e=h.current;h.current=null;const t=C?.plugins.find(t=>t.pluginId===e);if(!t)return;const s=l(t.pluginId);i({event_key:"claudeai.plugin.suggestion.install_failed",plugin_name:s?t.pluginName:"third-party",plugin_name_hash:Vc(o+t.originalPluginName),is_official_plugin:s,session_id:c})}});e.useEffect(()=>{if(!C||d.current||L||y)return;d.current=!0;const e=C.plugins[0];i({event_key:"claudeai.plugin.suggestion.viewed",session_id:c,plugin_count:C.plugins.length,...x&&l(e.pluginId)&&{plugin_id:e.pluginId}}),c&&i({event_key:"claudeai.setup_cowork.step_reached",step:"plugin",session_id:c})},[C,i,l,L,c,x,y]);const P=!(!x||!C)&&N.has(C.plugins[0].pluginId);e.useEffect(()=>{P&&!u.current&&c&&!y&&(u.current=!0,i({event_key:"claudeai.setup_cowork.step_reached",step:"skill",session_id:c}))},[P,c,i,y]);const U=e.useCallback(e=>{if(!h.current){if(i({event_key:"claudeai.plugin.suggestion.install_clicked",session_id:c,...l(e.pluginId)&&{plugin_id:e.pluginId}}),b){if(!e.backendId){const t=l(e.pluginId);return i({event_key:"claudeai.plugin.suggestion.install_failed",plugin_name:t?e.pluginName:"third-party",plugin_name_hash:Vc(o+e.originalPluginName),is_official_plugin:t,session_id:c}),void r(a.formatMessage({defaultMessage:"Failed to install plugin.",id:"oYeHcgM6ij"}),{errorContext:{tags:{source:"plugin_suggestion_web_enable_missing_id"}},messageForLogging:"[plugin_suggestion] web enable skipped: missing backendId"})}return h.current=e.pluginId,g(e.pluginId),void E({pluginId:e.pluginId,backendId:e.backendId,enabled:!0,name:e.originalPluginName,marketplaceName:uv(e.pluginId).marketplace,description:e.description})}h.current=e.pluginId,g(e.pluginId),D({pluginId:e.pluginId,backendId:e.backendId,installSource:"chat_suggestion"})}},[i,D,E,b,l,c,o,r,a]),O=e.useCallback(()=>{if(!C)return;if(y)return void p(!0);const e=C.plugins[0];i({event_key:"claudeai.plugin.suggestion.dismissed",session_id:c,...x&&l(e.pluginId)&&{plugin_id:e.pluginId}}),p(!0)},[C,i,l,c,x,y]),F=e.useCallback(()=>g(null),[]),V=e.useCallback(e=>g(e.pluginId),[]);if(!C||m||L&&!y)return null;const z=H||R?h.current:null,Z=x?C.plugins[0]:C.plugins.find(e=>e.pluginId===f),B=!!Z&&(y||N.has(Z.pluginId)),q=Z?.backendId?S?.plugins.find(e=>e.id===Z.backendId):void 0,W=q?.marketplace_name?yv({name:q.name,marketplaceName:q.marketplace_name}):void 0,$=C.contextLabel||(y?a.formatMessage({defaultMessage:"Your installed plugins",id:"stDXjblxoJ"}):""),G=!!$&&(!Z||x&&!B);return t.jsxs("div",{className:"my-3 overflow-hidden rounded-2xl border border-border-300 bg-bg-000 font-ui shadow-[0_4px_20px_0_hsl(var(--always-black)/4%)]",children:[G&&t.jsxs("div",{className:"flex items-center gap-3 border-b-0.5 border-border-300 px-4 py-3",children:[t.jsx($L,{name:"Plugin",size:"md",className:"shrink-0 text-text-300"}),t.jsx("div",{className:"flex-1 text-sm text-text-100",children:$}),t.jsx("button",{type:"button",onClick:O,className:"-m-1 shrink-0 rounded p-1 text-text-500 transition-colors hover:bg-bg-300","aria-label":a.formatMessage({defaultMessage:"Dismiss",id:"TDaF6JVgG6"}),children:t.jsx($L,{name:"X",size:"md"})})]}),Z?t.jsx(dTe,{plugin:Z,isInstalled:B,isInstalling:z===Z.pluginId,isAnyInstalling:null!==z,onInstall:U,onBack:x?void 0:F,manageRouteId:W,authoritativePluginName:q?.name}):t.jsx("div",{className:"max-h-96 overflow-y-auto",children:C.plugins.map(e=>t.jsx(uTe,{plugin:e,isInstalled:y||N.has(e.pluginId),isInstalling:z===e.pluginId,isAnyInstalling:null!==z,onSelect:V,onInstall:U},e.pluginId))})]})});function gTe(e){return"webpage_metadata"===e.metadata.type?e.url||"":e.metadata.doc_uuid}function hTe({isExpanded:e,toolName:s,results:n}){return n?.length?t.jsx("div",{className:"flex flex-nowrap p-2 pt-0 flex-col",tabIndex:-1,children:"web_search"===s?t.jsx(xTe,{results:n,isExpanded:e}):t.jsx(vTe,{results:n,isExpanded:e})}):null}fTe.displayName="PluginInstallSuggestionCell";const CTe={initial:{opacity:0,scale:.7},animate:{opacity:1,scale:1,transition:{type:"spring",stiffness:400,damping:30,mass:1}}};function xTe({isExpanded:e,results:s}){return t.jsx(t.Fragment,{children:s.map(s=>s.knowledge&&"webpage_metadata"===s.knowledge.metadata.type?t.jsx(sA.div,{variants:CTe,children:t.jsx(Eq,{disabled:!e,icon:t.jsx(rt,{url:s.knowledge.metadata.favicon_url,size:16}),title:s.knowledge.title,subtitles:[s.knowledge.metadata.site_domain],url:s.knowledge.url??void 0})},s.knowledge.url):null)})}function vTe({isExpanded:e,results:s}){return t.jsx(t.Fragment,{children:s.map(s=>t.jsx(sA.div,{variants:CTe,children:t.jsx(yTe,{disabled:!e,knowledge:s.knowledge})},s.uuid))})}function yTe({disabled:e,knowledge:s}){const n=y("mcp_gdrive"),a=function({isError:e}){const t=La(He.GDRIVE),s=t.isAuthenticated;return bv(t.server_uuid)?s?e?os.ACCESS_DENIED:os.READY:os.UNAUTHENTICATED:os.DISABLED}({isError:!s}),i=function({isError:e}){const{isDriveAuthenticated:t}=fE();return PE()?t?e?os.ACCESS_DENIED:os.READY:os.UNAUTHENTICATED:os.DISABLED}({isError:!s}),r=n?a:i;return t.jsx(gW,{syncSourceType:He.GDRIVE,syncStatus:r,disabled:e,title:s?.title||"Untitled document",subtitles:"google_doc_metadata"===s?.metadata.type&&s.metadata.owner?[s.metadata.owner]:void 0,url:s?.url||void 0})}const bTe=AL({query:IL(),n:EL().int().optional()});const kTe=e.memo(function({toolName:s,syncSourceType:n,...a}){const{input:i,toolResult:r,isStreaming:o,groupItemKey:l}=a,{isExpanded:c,setIsExpanded:d,snappyTransition:u}=KH(!1,l),m=JS(),p=r?.is_error,f=e.useMemo(()=>p?null:function(e){if(!e)return null;if(e.content.some(e=>"knowledge"===e.type||"rag_reference"===e.type)){const t=[];for(const s of e.content)if("knowledge"===s.type)t.push({uuid:gTe(s),knowledge:s});else if("rag_reference"===s.type){const e=s.doc_uuid;t.push({uuid:e})}return _T(t,e=>e.uuid)}try{const t=e.content[0];if("text"!==t?.type)return[];const s=JSON.parse(t.text),n=(Array.isArray(s)?s.map(e=>{const t=nv.safeParse(e);return t.success?t.data:null}).filter(e=>null!==e):[]).map(e=>({uuid:gTe(e),knowledge:e}));return _T(n,e=>e.uuid)}catch(t){return[]}}(r),[p,r]),g=e.useMemo(()=>bTe.safeParse(i).data,[i]),h="web_search"===s?m.formatMessage({defaultMessage:"Searching the web",id:"5KajyzHSXj"}):m.formatMessage({defaultMessage:"Searching Google Drive",id:"V/QOi0yNF0"});if(!g)return;const C=m.formatMessage({defaultMessage:"{count, plural, one {# result} other {# results}}",id:"s88ium+h8p"},{count:f?.length??0}),x=!f&&o?h:g.query;return t.jsx(yL,{isExpandingDisabled:!!o,isExpanded:c,setIsExpanded:d,isError:p,text:x,secondaryText:o?void 0:C,icon:"web_search"===s?t.jsx($L,{name:"Globe",size:"sm"}):!!n&&t.jsx(it,{type:n,size:14}),...a,children:t.jsx(kL,{isExpanded:c,snappyTransition:u,isScrollable:!0,children:!p&&!!f?.length&&t.jsx(hTe,{isExpanded:c,toolName:s,results:f})})})});kTe.displayName="SearchToolUseCell";const wTe=e.memo(function({toolResult:s,source:n="list_skills"}){const a=JS(),{track:i}=ae(),{activeOrganization:r}=v(),o=r?.uuid??"",{promptInputRef:l}=J(),c=Vi(),d=aa(e=>e.sessionContext?.sessionId),u=e.useRef(!1),[m,p]=e.useState(!1),[f,g]=e.useState(!1),h=e.useMemo(()=>function(e){try{const t=JSON.parse(e),s=t?.request_skill_names??t?.skills,n=t?.request_keywords??t?.keywords,a=Array.isArray(t?.resolved_skills)?t.resolved_skills:Array.isArray(t?.results)?t.results.map(e=>{const t="anthropic"!==e.creator_type;return{name:e.name,description:e.description,skill_id:e.id,skillId:e.id,is_user_created:t,isUserCreated:t}}):void 0,i=Array.isArray(a)?a.filter(e=>!!e&&"object"==typeof e&&"string"==typeof e.name).map(e=>e.skill_id?{...e,skillId:e.skill_id,isUserCreated:e.is_user_created}:e):void 0;if(!Array.isArray(s)&&!i)return null;const r=t.context_label??t.contextLabel;return{skills:Array.isArray(s)?s.filter(e=>"string"==typeof e):[],keywords:Array.isArray(n)?n.filter(e=>"string"==typeof e):[],contextLabel:"string"==typeof r?r:void 0,resolvedSkills:i}}catch{return null}}(s),[s]),C="suggest_skills"===n,{enabledSkillIds:x,enableSkill:y,isEnablePending:b,enableVariables:k}=function(){const t=JS(),{addError:s}=ut(),{data:n}=lr(),a=e.useMemo(()=>{const e=new Set;for(const t of n?.skills??[])t.enabled&&e.add(t.skillId);return e},[n]),{mutate:i,isPending:r,variables:o}=kv({onError:e=>{s(t.formatMessage({defaultMessage:"Couldn't add skill. You can try again.",id:"PjRuAwdqpE"}),{error:e,errorContext:{tags:{source:"suggest_skills_enable"}},messageForLogging:"Failed to enable skill from suggestion"})}});return{enabledSkillIds:a,enableSkill:i,isEnablePending:r,enableVariables:o}}(),{mutateAsync:w}=Tg(),M=e.useCallback(()=>{d&&ga(d)&&w({sessionId:d}).catch(()=>{})},[d,w]),_=P5(),j=e.useMemo(()=>h?h.resolvedSkills?h.resolvedSkills:U5(_,h.skills,h.keywords):[],[h,_]),S=e.useMemo(()=>j.slice(0,f?10:5),[j,f]),L=j.length-S.length;e.useEffect(()=>{h&&0!==j.length&&!u.current&&(u.current=!0,i({event_key:"claudeai.skill.suggestion.viewed",source:n,session_id:d,skill_count:j.length}))},[h,j.length,i,d,n]);const N=e.useCallback(()=>{i({event_key:"claudeai.skill.suggestion.expanded",source:n,skill_count:j.length,session_id:d}),g(!0)},[i,j.length,d,n]),I=gv(),T=e.useCallback(()=>{i({event_key:"claudeai.skill.suggestion.view_all_clicked",source:n,skill_count:j.length,session_id:d}),C?c({section:"skills"}):I("/customize/skills")},[i,j.length,d,n,C,c,I]),A=e.useCallback(()=>{i({event_key:"claudeai.skill.suggestion.dismissed",source:n,session_id:d}),p(!0)},[i,d,n]),E=e.useCallback(e=>{i({event_key:"claudeai.skill.suggestion.try_clicked",source:n,skill_name:e.isUserCreated?"custom":e.name,skill_name_hash:Vc(o+e.name),session_id:d});const t=l.current?.getEditor();t&&t.chain().focus().insertContent(fv(e.name,R5(e.name),e.description,e.argumentHint??"")).run()},[i,l,d,o,n]),R=e.useCallback(e=>{!b&&e.skillId&&(i({event_key:"claudeai.skill.suggestion.add_clicked",source:n,skill_name_hash:Vc(o+e.name),skill_id:e.skillId,session_id:d}),y({skillId:e.skillId},{onSuccess:M}))},[i,y,b,o,d,n,M]);if(!h||m||0===j.length)return null;let D;return!f&&L>0?D=t.jsx(ct,{onClick:N,children:t.jsx(XS,{defaultMessage:"Show more",id:"aWpBzjCXKS"})}):f&&L>0&&(D=t.jsx(ct,{onClick:T,children:t.jsx(XS,{defaultMessage:"View all skills",id:"hkcN1dpA8L"})})),t.jsx(lme,{icon:t.jsx($L,{name:"Scroll",size:"md"}),title:h.contextLabel??(C?a.formatMessage({defaultMessage:"Skills you can add",id:"HzajXQuk6g"}):a.formatMessage({defaultMessage:"Your skills",id:"7Ktj7zC8i7"})),onDismiss:A,footer:D,children:S.map(e=>{const s=C&&!!e.skillId&&!x.has(e.skillId),n=s&&b&&k?.skillId===e.skillId;return t.jsx(H5,{name:e.name,description:e.description,onTry:()=>E(e),onAdd:s?()=>R(e):void 0,isInstalling:n,isAnyInstalling:s&&b},e.skillId??e.name)})})});function MTe({input:s,toolResult:n,isStreaming:a,onOpenArtifact:i,message:r,artifactCellType:o,selectedArtifactId:l,selectedArtifactVersion:c,isFirstBlockOfMessage:d,isLastBlockOfMessage:u}){const m=e.useMemo(()=>wv.parse(s),[s]),{versions:p,...f}=Mv(m.id??"")??{},g=e.useMemo(()=>{const e=p?.findIndex(e=>e.uuid===m.version_uuid);if(-1!==e)return e},[p,m.version_uuid]),h=(m.content??m.new_str)?.slice(0,250),C=e.useCallback(e=>{i&&i(e,r.uuid,m.version_uuid)},[i,r.uuid,m.version_uuid]),x=e.useMemo(()=>({isClosed:void 0!==n,...f,...m}),[n,f,m]),v=l===x.id&&c===m.version_uuid,y="individual_cell_create"===o||"multi_edit_not_last"!==o;return t.jsx("div",{className:dt(y&&(d?"pt-2":"pt-3"),y&&(u?"pb-2":"pb-3"),"multi_edit_not_last"===o&&"h-0"),children:t.jsx(Dg,{versionNum:g?g+1:void 0,preview:h,versionCount:p?.length,properties:x,isStreaming:a,isEdit:"individual_cell_create"!==o,isNotLastEdit:"multi_edit_not_last"===o,onOpenArtifact:C,isExpanded:v})})}function _Te({integrationName:e,icon:s,integrationIcon:n,message:a,result:i,isStreaming:r,isError:o,isExpandingDisabled:l,isFirstBlockOfMessage:c,isLastBlockOfMessage:d,wrapperClassName:u,contentClassName:m,defaultExpanded:p=!1,toolName:f,renderMode:g,groupItemKey:h,isFirstItemInGroup:C,isLastItemInGroup:x}){const v=JS(),{isExpanded:y,setIsExpanded:b}=KH(p,h),k=!!i&&!l&&!r&&("rich_content"!==i.type||i.content?.length>0);let w;return w=i?"rich_content"===i.type?v.formatMessage({defaultMessage:"{count, plural, one {# result} other {# results}}",id:"s88ium+h8p"},{count:i.content?.length??0}):"JSON":void 0,t.jsx(yL,{isError:o,isExpandingDisabled:!k,isExpanded:y,setIsExpanded:b,isStreaming:!!r,text:a??(r?v.formatMessage({defaultMessage:"Searching",id:"IfE0if3ytt"}):v.formatMessage({defaultMessage:"Searched",id:"0ZuuhwjU4n"})),secondaryText:r?void 0:w,icon:s||t.jsx(STe,{integrationName:e,iconUrl:n,canShowLetterIcon:!0}),isFirstBlockOfMessage:c,isLastBlockOfMessage:d,wrapperClassName:u,renderMode:g,isFirstItemInGroup:C,isLastItemInGroup:x,children:t.jsxs(kL,{isExpanded:y,snappyTransition:!0,isScrollable:!0,className:m,children:[k&&"rich_content"===i?.type&&t.jsx(LTe,{disabled:!y||r,result:i,integrationName:e,toolName:f}),k&&"table"===i?.type&&t.jsx(NTe,{result:i}),k&&"json_block"===i?.type&&t.jsx(ITe,{result:i})]})})}wTe.displayName="SkillSuggestionCell",AL({prompt:IL()});const jTe=["Google Calendar","Gmail","Google Drive","Search Project Knowledge","Search Past Conversations"];function STe({canShowLetterIcon:e,integrationName:s,toolName:n,iconUrl:a,size:i=16}){let r;switch(s){case"Search Project Knowledge":return t.jsx($L,{name:"Projects",customSize:i});case"Memory":case"Search Past Conversations":return t.jsx($L,{name:"Memory",customSize:i});case"Google Drive":r=He.GDRIVE;break;case"Google Calendar":r=He.GCAL;break;case"Gmail":r=He.GMAIL}const o=s||n;return t.jsx(Ls,{size:i,name:o,...r?{type:"syncSource",src:r}:{type:"favicon",src:a,fallbackToGlobe:!(o&&e)}})}function LTe({disabled:e,integrationName:s,result:n,toolName:a}){const i=a?a.split("").reduce((e,t)=>e+t.charCodeAt(0),0):0,r=!!s&&jTe.includes(s)&&2039!==i&&2010!==i;if("Search Past Conversations"===s){const a=n.content.map(({title:e,subtitles:n,url:a,icon_url:i})=>{if(a){const o=a.match(/\/chat\/([a-f0-9-]+)/);if(o)return{conversationUuid:o[1],title:e,subtitles:n,url:a,icon:r?void 0:t.jsx(STe,{integrationName:s,iconUrl:i})}}return null}).filter(e=>null!==e);return t.jsx(J_e,{results:a,disabled:e,integrationName:s,hideIcons:r})}return t.jsx(sA.div,{variants:{initial:{opacity:0},animate:{opacity:1,transition:{staggerChildren:.05}}},initial:"initial",animate:"animate",className:"flex flex-col flex-nowrap p-2 pt-0",children:n.content.map(({title:n,subtitles:a,url:i,resource_type:o,icon_url:l},c)=>t.jsx(Eq,{disabled:e,icon:r?void 0:t.jsx(STe,{integrationName:s,iconUrl:l}),title:n,subtitles:a,url:i,tag:o},c))})}function NTe({result:e}){return t.jsx(TTe,{table:e.table})}function ITe({result:e}){const s=JS();return t.jsx("div",{className:"flex flex-col gap-3 p-3 pt-1",children:t.jsx(YH,{title:s.formatMessage({defaultMessage:"Response",id:"MgdnPiJHcj"}),code:e.json_block})})}function TTe({table:s}){return t.jsx("div",{className:"grid p-2 pt-0",style:{gridTemplateColumns:"1fr 2fr"},children:s.map(([n,a],i)=>t.jsxs(e.Fragment,{children:[t.jsx("div",{className:dt("flex items-center p-2",i<s.length-1&&"border-b-0.5 border-border-300"),children:t.jsx("p",{className:"font-medium text-text-300 text-xs",children:n})}),t.jsx("div",{className:dt("flex items-center p-2",i<s.length-1&&"border-b-0.5 border-border-300"),children:t.jsx("p",{className:"text-text-500 text-xs",children:a})})]},i))})}const ATe=e.memo(({input:e,toolResult:s,...n})=>{const a=JS(),{activeOrganization:i}=v(),r=i?.uuid,o=XC("preview_screenshot",e)??"Preview",l=function(e){if(!e)return[];return e.content.filter(e=>"image"===e.type&&"file_uuid"in e)}(s);return t.jsxs("div",{children:[t.jsx(SL,{text:o,isError:s?.is_error,...n}),r&&l.length>0&&t.jsx("div",{className:"my-4",children:l.map((e,s)=>t.jsx("img",{src:BN(r,e.file_uuid),alt:a.formatMessage({defaultMessage:"Launch preview screenshot",id:"UUt8dXSH+i"}),className:"w-3/4 rounded-lg border border-[hsl(var(--border-300)/0.2)]"},s))})]})});ATe.displayName="LaunchScreenshotToolUseCell";const ETe=AL({code:IL().nullish().transform(e=>"\n"===e?.charAt(0)?e.slice(1):e??void 0)});function RTe(s){const{input:n,toolResult:a,isStreaming:i,groupItemKey:r}=s,o=JS(),{isExpanded:l,setIsExpanded:c,snappyTransition:d}=KH(i,r),u=ETe.parse(n).code??"",{toolResultLogs:m,toolResultErrors:p}=e.useMemo(()=>a?function(e){if(!e.content||0===e.content.length||!e.content[0])return{toolResultLogs:"",toolResultErrors:"Error: Missing content data"};if("text"!==e.content[0].type)return{toolResultLogs:"",toolResultErrors:""};let t;try{t=JSON.parse(e.content[0].text)}catch(n){return F(new Error(`Analysis tool result parse failed: ${n instanceof Error?n.name:typeof n}`),{source:"repl_tool_result"}),{toolResultLogs:"",toolResultErrors:"Error: failed to parse Analysis tool result"}}const s=t.logs?"Result\n\n"+t.logs.join("\n"):"";return"error"===t.status?{toolResultLogs:s,toolResultErrors:"Error\n\n"+t.error}:{toolResultLogs:s,toolResultErrors:""}}(a):{toolResultLogs:"",toolResultErrors:""},[a]);return t.jsx(yL,{isExpanded:l,setIsExpanded:c,icon:t.jsx($L,{name:"CodeBlock",size:"sm",className:"text-text-500"}),text:i?o.formatMessage({defaultMessage:"Analyzing data",id:"UkajfL/9Yh"}):o.formatMessage({defaultMessage:"Analyzed data",id:"NbwDtG2acW"}),secondaryText:i?void 0:o.formatMessage({defaultMessage:"View analysis",id:"fL+Q/8QHAy"}),...s,children:t.jsx(kL,{isExpanded:l,snappyTransition:d,isScrollable:!0,children:t.jsxs("div",{className:"flex flex-col gap-3 p-3 pt-1","data-testid":"repl-output",children:[t.jsx(YH,{language:"javascript",code:u}),t.jsx(YH,{title:o.formatMessage({defaultMessage:"Output",id:"fio5opLcOZ"}),language:"javascript",code:m}),!!p&&t.jsx(YH,{title:o.formatMessage({defaultMessage:"Error",id:"KN7zKn8z4F"}),code:p,codeTagProps:{className:"text-danger-000"},className:"!bg-danger-900"})]})})})}const DTe=AL({name:IL(),overwrite:RL().optional()}),HTe=new Set,PTe=e.memo(s=>{const{input:n,toolResult:a,toolUseId:i}=s,r=Rg,o=Lg(r),l=_v(),c=a?.structured_content?.uploadResponse;e.useEffect(()=>{i&&!HTe.has(i)&&(HTe.add(i),l(c))},[i]);const d=DTe.safeParse(n);if(!d.success)return null;const{name:u,overwrite:m}=d.data;return t.jsxs(er,{href:r,onClick:o,className:"my-3 border-0.5 border-border-300 rounded-lg overflow-hidden font-ui flex items-center gap-2 px-3 py-2.5 hover:bg-bg-200 transition-colors",children:[t.jsx("div",{className:"w-5 h-5 flex items-center justify-center text-text-100 flex-shrink-0",children:t.jsx($L,{name:"Scroll",size:"sm"})}),t.jsx("span",{className:"flex-1 min-w-0 truncate text-text-300 font-base",children:m?t.jsx(XS,{defaultMessage:"Updated skill: {name}",id:"BQODlYt8l/",values:{name:t.jsx("span",{className:"font-base-bold text-text-200",children:u})}}):t.jsx(XS,{defaultMessage:"Saved skill: {name}",id:"ZxNmJFuhor",values:{name:t.jsx("span",{className:"font-base-bold text-text-200",children:u})}})}),t.jsx($L,{name:"CaretRight",size:"sm",className:"text-text-400 flex-shrink-0"})]})});PTe.displayName="SaveSkillToolUseCell";const UTe=AL({taskId:IL(),prompt:IL(),cronExpression:IL().optional(),fireAt:IL().optional()}),OTe=AL({name:IL(),cron_expression:IL().optional(),run_once_at:IL().optional()});function FTe(e){if(!e)return;if("string"==typeof e.content)return e.content;const t=e.content?.[0];return t&&"text"===t.type?t.text:void 0}function VTe(e,t){if(t?.is_error){const s=OTe.safeParse(e);if(!s.success)return null;const n=jv(FTe(t)??"");if(!n)return null;const a=rm(s.data.cron_expression);return{taskId:n,taskName:im(n),backend:"local",rerouted:!0,cronExpression:a.cron,cronIsUtc:!!s.data.cron_expression&&!a.converted,fireAt:s.data.run_once_at}}const s=UTe.safeParse(e);if(s.success){const{taskId:e,cronExpression:t,fireAt:n}=s.data;return{taskId:e,taskName:im(e),backend:"local",cronExpression:t,fireAt:n}}const n=OTe.safeParse(e);if(!n.success)return null;const a=FTe(t)?.match(/\btrig_[A-Za-z0-9_-]+/)?.[0];if(!a)return null;const i=n.data.cron_expression,r=rm(i);return{taskId:a,taskName:am(n.data.name),backend:"remote",cronExpression:r.cron,cronIsUtc:!!i&&!r.converted,fireAt:n.data.run_once_at}}const zTe=e.memo(s=>{const{input:n,toolResult:a,isLiveToolResult:i}=s,r=JS(),{track:o}=ae(),l=e.useMemo(()=>VTe(n,a),[n,a]),c=e.useRef(!1);if(e.useEffect(()=>{!c.current&&i&&l&&(c.current=!0,o({event_key:"claudeai.cowork.scheduled_task.created",entry_point:"conversation",sessionType:l.backend}))},[i,l,o]),!l)return null;const{taskId:d,taskName:u,cronExpression:m,fireAt:p}=l;let f;if(p){const e=new Date(p);isNaN(e.getTime())||(f=r.formatMessage({defaultMessage:"Once \u2014 {when}",id:"vp3/wkiShc"},{when:Sv(e,r,"future")}))}else if(m){const e=Lv(m,r.locale);f=e&&l.cronIsUtc?r.formatMessage({defaultMessage:"{schedule} (times in UTC)",id:"nbtvP/e59f"},{schedule:e}):e??void 0}const g=t.jsx("span",{className:"font-base-bold text-text-200",children:u});return t.jsx(wae,{taskId:d,label:l.rerouted?t.jsx(XS,{defaultMessage:"Created scheduled task on this computer: {taskName}",id:"GEcQhVcgjj",values:{taskName:g}}):t.jsx(XS,{defaultMessage:"Created scheduled task: {taskName}",id:"DubRXAKJ84",values:{taskName:g}}),secondaryLabel:f})});zTe.displayName="SetScheduledTaskToolUseCell";const ZTe=AL({name:IL().min(1),kind:TL(["new","improvement"]),target:IL().optional(),description:IL(),evidence:NL(IL()).default([]),skillMd:IL()}).refine(e=>"improvement"!==e.kind||!!e.target,{message:"target is required when kind is 'improvement'",path:["target"]}),BTe=AL({proposals:NL(ZTe).min(1).max(3)}),qTe="_row_1aw5u_1",WTe=e.memo(function({input:s}){const n=e.useMemo(()=>BTe.safeParse(s),[s]),a=n.success?n.data.proposals:null,i=PN(e=>e.rowState);return a?t.jsxs("div",{className:"mb-4 mt-4 font-ui first:mt-2",children:[t.jsxs("div",{className:"flex items-center gap-1.5 pb-1.5 pl-4 text-[11px] font-medium uppercase tracking-[0.08em] text-text-400",children:[t.jsx($L,{name:"Scroll",size:"xs"}),t.jsx(XS,{defaultMessage:"Skill proposals",id:"dy3uzIZLkd"})]}),t.jsx("div",{className:"divide-y divide-border-300 overflow-hidden rounded-lg border-0.5 border-border-300 bg-bg-100",children:a.map((e,s)=>t.jsx($Te,{proposal:e,index:s,state:i[e.name]??"pending"},e.name))})]}):null}),$Te=e.memo(function({proposal:s,index:n,state:a}){const i=HN(),{setIsDrawerExpanded:r}=DN(),o=PN(e=>e.markDismissed),{track:l}=ae(),c=e.useCallback(()=>{i({type:"SELECT_SKILL_PROPOSAL",proposal:s}),r(!0)},[i,r,s]),d=e.useCallback(()=>{l({event_key:"claudeai.cowork.skill_proposal.dismissed",proposal_kind:s.kind}),o(s.name)},[l,o,s.name,s.kind]),u="improvement"===s.kind,m=e.useCallback(()=>{i({type:"SELECT_SKILL_PROPOSAL",proposal:s}),r(!0)},[i,r,s]);return"dismissed"===a?t.jsxs("div",{className:"flex items-center gap-2 px-4 py-2.5 text-xs text-text-400",children:[t.jsx($L,{name:"X",customSize:14}),t.jsx(XS,{defaultMessage:"Dismissed {name}",id:"C6mP13h42J",values:{name:s.name}})]}):"saved"===a?t.jsxs("button",{type:"button",onClick:m,className:"flex w-full items-center gap-2 px-4 py-2.5 text-left text-sm text-text-200 transition-colors hover:bg-bg-200",children:[t.jsx($L,{name:"Check",size:"sm",className:"text-accent-100"}),u&&s.target?t.jsx(XS,{defaultMessage:"Updated <b>/{name}</b>",id:"Pdj6VWB5RG",values:{name:s.target,b:e=>t.jsx("span",{className:"font-medium",children:e})}}):t.jsx(XS,{defaultMessage:"Saved as <b>/{name}</b>",id:"O3MYVaIwRS",values:{name:s.name,b:e=>t.jsx("span",{className:"font-medium",children:e})}}),t.jsx($L,{name:"CaretRight",customSize:14,className:"ml-auto text-text-400"})]}):t.jsxs("div",{className:`group flex items-start gap-3 px-4 py-3 transition-colors hover:bg-bg-200 ${qTe}`,style:{"--i":n},children:[t.jsx("div",{className:"mt-0.5 flex size-8 shrink-0 items-center justify-center rounded-lg bg-bg-300 text-text-200",children:u?t.jsx($L,{name:"Edit",size:"sm"}):t.jsx($L,{name:"Scroll",size:"sm"})}),t.jsxs("div",{className:"min-w-0 flex-1",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx("span",{className:"truncate font-mono text-[13px] font-medium text-text-100",children:`/${s.name}`}),t.jsx(Mme,{size:"sm",color:"flat",uppercase:!0,truncate:!0,children:u&&s.target?t.jsx(XS,{defaultMessage:"based on /{target}",id:"rj4w1fGXYb",values:{target:s.target}}):t.jsx(XS,{defaultMessage:"new",id:"qlTe+eC7Ec"})})]}),t.jsx("p",{className:"mt-0.5 line-clamp-2 text-xs text-text-300",children:s.description})]}),t.jsxs("div",{className:"flex shrink-0 items-center gap-2 self-center",children:[t.jsx(rN,{variant:"secondary",size:"sm",onClick:d,children:t.jsx(XS,{defaultMessage:"Dismiss",id:"TDaF6JVgG6"})}),t.jsx(rN,{variant:"primary",size:"sm",onClick:c,children:t.jsx(XS,{defaultMessage:"Review",id:"R+J5oxt1Fc"})})]})]})});function GTe({children:e,className:s,narrow:n}){const a=eK()?"div":"main";return t.jsx(a,{className:dt("mx-auto mt-4 w-full flex-1 px-4 md:px-8 lg:mt-6",n?"max-w-4xl":"max-w-7xl",s),children:e})}function KTe({input:s,message:n,toolUseId:a,...i}){const{isStreaming:r}=i,o=s?.description,l=e.useMemo(()=>function(e,t){if(!e.content||!t)return 0;let s=0;for(const n of e.content)"tool_use"===n.type&&"_isSubagentBlock"in n&&n._isSubagentBlock&&"_parentToolUseId"in n&&n._parentToolUseId===t&&s++;return s}(n,a),[n,a]),c=o||t.jsx(XS,{defaultMessage:"Running task",id:"lLRd2TOJK+"}),d=e.useMemo(()=>{if(!r&&0!==l)return t.jsx(XS,{defaultMessage:"{count, plural, one {# tool use} other {# tool uses}}",id:"EZ05jQyBmI",values:{count:l}})},[r,l]);return t.jsx(SL,{text:c,secondaryText:d,icon:t.jsx(JC,{size:16,children:t.jsx(tD,{size:12,className:"text-text-300"})}),...i})}IL(),IL(),NL(AL({position:EL(),title:IL(),notes:IL().nullish()})).nullish(),DL(FL()).nullish(),NL(AL({server_uuid:IL(),server_name:IL(),icon_url:IL().nullish(),tools:NL(AL({name:IL(),permission_policy:IL(),read_only_hint:RL().nullish(),destructive_hint:RL().nullish()}))})).nullish();const YTe=()=>t.jsxs("div",{className:"flex w-full bg-bg-200 my-2 p-3 rounded-xl items-center text-text-300",children:[t.jsx(sD,{size:20}),t.jsx("p",{className:"font-base ml-3",children:t.jsx(XS,{defaultMessage:"Log in to see interactive visuals",id:"jx2GMw6k3A"})})]});function QTe({streamingAction:e,errorAction:s,successAction:n,target:a,isStreaming:i=!1,isError:r=!1,description:o}){if(o&&!r)return i?t.jsx(Yg,{children:o}):t.jsx("span",{className:"text-text-200",children:o});const l=i?e:r?s:n;return t.jsxs("span",{className:"flex items-center min-w-0 text-text-200",children:[t.jsx("span",{className:"whitespace-nowrap mr-1 text-text-200",children:l}),t.jsx("span",{className:"bg-gradient-to-b from-bg-300 via-bg-300/80 to-bg-300 shadow-xs rounded px-1 py-0.5 font-mono truncate overflow-hidden text-ellipsis min-w-0 text-text-200",title:a,children:a})]})}const JTe=AL({returncode:EL().int(),stdout:IL(),stderr:IL()});function XTe(e){if(!e.content||0===e.content.length)return null;const t=e.content[0];return"text"===t?.type?t.text:null}function eAe(s){const{input:n,toolResult:a,isStreaming:i,isFirstBlockOfMessage:r,isLastBlockOfMessage:o,renderMode:l,groupItemKey:c,isFirstItemInGroup:d,isLastItemInGroup:u}=s,m=JS(),{isExpanded:p,setIsExpanded:f,snappyTransition:g}=KH(!1,c),h=n,C=h?.command||"",x=a?.is_error||!1,v=e.useMemo(()=>function(e,t,s){if(!e)return;if(t)return{type:"error",rawContent:XTe(e)||JSON.stringify(e,null,2)};const n=XTe(e);if(!n)return{type:"empty"};try{return{type:"success",data:JTe.parse(JSON.parse(n))}}catch{try{const e=JSON.parse(n);if(Array.isArray(e)&&e.length>0&&"text"===e[0].type&&e[0].text)return{type:"success",data:JTe.parse(JSON.parse(e[0].text))}}catch{}return s?void 0:{type:"parse-error",rawContent:n}}}(a,x,i),[a,x,i]),y=h?.description;return t.jsx(yL,{isExpanded:p,setIsExpanded:f,isStreaming:!!i,icon:t.jsx(nD,{size:16}),text:t.jsx(QTe,{streamingAction:m.formatMessage({defaultMessage:"Running",description:"Status header for a bash command",id:"ScRq37Oq7S"}),errorAction:m.formatMessage({defaultMessage:"Failed to run",description:"Status header for a bash command",id:"O15lx6IwMb"}),successAction:m.formatMessage({defaultMessage:"Ran",description:"Status header for a bash command",id:"JUMXBud/d6"}),target:C,isStreaming:i,isError:x,description:y}),isFirstBlockOfMessage:r,isLastBlockOfMessage:o,renderMode:l,isFirstItemInGroup:d,isLastItemInGroup:u,children:t.jsx(kL,{isExpanded:p,snappyTransition:g,isScrollable:!0,children:t.jsxs("div",{className:"flex flex-col gap-3 p-3 pt-1","data-testid":"repl-output",children:[t.jsx(YH,{language:"bash",code:C}),(()=>{if(!v)return null;switch(v.type){case"success":{const{data:e}=v;return t.jsxs(t.Fragment,{children:[e.stdout&&t.jsx(YH,{title:m.formatMessage({defaultMessage:"Output",description:"Title for the result of a bash command",id:"98/B4gW/HL"}),language:"bash",code:e.stdout}),e.stderr&&t.jsx(YH,{title:m.formatMessage({defaultMessage:"Error",description:"Title for the result of a bash command",id:"96iMiC11cz"}),code:e.stderr,codeTagProps:{className:"text-danger-000"},className:"!bg-danger-900"}),!e.stdout&&!e.stderr&&t.jsx(YH,{title:m.formatMessage({defaultMessage:"Output",description:"Title for the result of a bash command",id:"98/B4gW/HL"}),code:m.formatMessage({defaultMessage:"exit code {returncode}",description:"The result of a bash command",id:"Uoe/PEvNYN"},{returncode:e.returncode})})]})}case"error":return t.jsx(YH,{title:m.formatMessage({defaultMessage:"Command failed",description:"Title for the result of a bash command",id:"REMG+p+ZiU"}),code:v.rawContent,codeTagProps:{className:"text-danger-000"},className:"!bg-danger-900"});case"parse-error":return t.jsx(YH,{title:m.formatMessage({defaultMessage:"Output",description:"Title for the result of a bash command",id:"98/B4gW/HL"}),code:v.rawContent,codeTagProps:{className:"text-danger-000"},className:"!bg-danger-900"});case"empty":return t.jsx(YH,{title:m.formatMessage({defaultMessage:"No output",description:"Title for the result of a bash command",id:"DyoXiEr2fN"}),code:m.formatMessage({defaultMessage:"Command completed with no output",description:"The result of a bash command",id:"TRBc7KuuG+"})});default:return null}})()]})})})}function tAe(e){const{input:s,toolResult:n,isStreaming:a,isFirstBlockOfMessage:i,isLastBlockOfMessage:r,renderMode:o,groupItemKey:l,isFirstItemInGroup:c,isLastItemInGroup:d,message:u,shareType:m}=e,p=JS(),{chatResourceState:f}=RN(),g=HN(),{setIsDrawerExpanded:h}=DN(),C=s,x=n?.is_error,v=C?.path??"",y=f.streamingFiles.get(v),b=y?.showingInRightPane&&y?.renderAs===Se.Markdown,{isExpanded:k,setIsExpanded:w,snappyTransition:M}=KH(!b&&a,l),_=C?.file_text??"",j=Nv(v),S="markdown"===j,L=Gl(v),N="CLAUDE.md"===L?`${Jg(v)?p.formatMessage({defaultMessage:"Global instructions",id:"53DiPrdI5r"}):p.formatMessage({defaultMessage:"Folder instructions",id:"dqW6sjmil4"})} (CLAUDE.md)`:Xoe(v),I=C?.description,T=hoe(),A=!x&&v&&u?.uuid&&ele(v,m)&&T(v),E=A&&!m;return!(b&&a)&&(a||k||!M)?t.jsx(yL,{isExpanded:k,setIsExpanded:w,isExpandingDisabled:a,isStreaming:!!a,icon:t.jsx(hg,{path:C?.path||"",size:16}),text:t.jsx(QTe,{streamingAction:"Creating",errorAction:"Failed to create",successAction:"Created",target:N,isStreaming:a,isError:x,description:I}),secondaryIcon:E?t.jsx("span",{className:"text-xs text-text-300 max-w-64 truncate shrink-0 min-w-0",children:L}):void 0,isFirstBlockOfMessage:i,isLastBlockOfMessage:r,renderMode:o,isFirstItemInGroup:c,isLastItemInGroup:d,children:t.jsx(kL,{isExpanded:k,snappyTransition:M,children:t.jsx(uH,{noDefaultScroll:!a,className:"flex flex-col gap-3 p-3 pt-1 max-h-[238px] overflow-y-scroll",disabled:!1,children:t.jsx("div",{"data-testid":"repl-output",children:_&&(S&&!b?t.jsx("div",{className:"markdown-wrapper",children:a?t.jsx(joe,{text:_,className:"font-claude-response prose prose-sm max-w-none",isStreaming:!0}):t.jsx(Ct,{text:_,className:"font-claude-response prose prose-sm max-w-none"})}):t.jsx(YH,{title:v,language:j,code:_}))})})})}):t.jsx(SL,{isStreaming:!!a,handleClick:A?()=>{v&&u?.uuid&&(g({type:"SELECT_FILE",path:v,toolType:"create_file",messageId:u.uuid,entryPoint:"tool_cell_create_file"}),h(!0))}:void 0,icon:t.jsx(hg,{path:C?.path||"",size:16}),text:t.jsx(QTe,{streamingAction:"Creating",errorAction:"Failed to create",successAction:"Created",target:N,isStreaming:a,isError:x,description:I}),secondaryIcon:E?t.jsx("span",{className:"text-xs text-text-300 max-w-64 truncate shrink-0 min-w-0",children:L}):void 0,isFirstBlockOfMessage:i,isLastBlockOfMessage:r,renderMode:o,isFirstItemInGroup:c,isLastItemInGroup:d})}function sAe(s){const{toolResult:n,isStreaming:a,isFirstBlockOfMessage:i,isLastBlockOfMessage:o,renderMode:l,isFirstItemInGroup:c,isLastItemInGroup:d}=s,u=JS(),m=r(),p=!0===n?.is_error,f=e.useMemo(()=>p?null:function(e){if(!Array.isArray(e))return null;const t=e[0];if("text"!==t?.type||"string"!=typeof t.text)return null;try{const e=JSON.parse(t.text);if(e&&"object"==typeof e&&"launched"in e&&e.launched&&"object"==typeof e.launched){const t=e.launched;if("string"==typeof t.session_id&&("ccd"===t.target||"ccr"===t.target)&&"string"==typeof t.display_path)return e}return null}catch{return null}}(n?.content),[p,n?.content]),g=e.useMemo(()=>f?{sessionId:f.launched.session_id,target:f.launched.target,displayPath:f.launched.display_path}:null,[f]),h=e.useMemo(()=>f?function(e){for(const t of e.split("\n")){const e=t.trim();if(!e)continue;const s=e.match(/^#+\s*(.+)/);return s?s[1].trim():e}return null}(f.spec):null,[f]),C=u.formatMessage({defaultMessage:"Suggesting a Claude Code session\u2026",id:"YVHLcPCwH2"}),x=u.formatMessage({defaultMessage:"Claude Code session cancelled",id:"k2GIdWWHVm"}),v="ccr"===g?.target?u.formatMessage({defaultMessage:"Claude Code (cloud)",id:"VMX13zA5+O"}):u.formatMessage({defaultMessage:"Claude Code",id:"vKMj39KhGw"}),y=e.useMemo(()=>{if(!g)return null;return[h,g.displayPath].filter(Boolean).join(" \xb7 ")},[g,h]),b=a?C:g?t.jsxs("div",{className:"flex flex-col gap-0.5 min-w-0",children:[t.jsx("span",{className:"font-base-bold text-text-100 truncate",children:t.jsx(XS,{defaultMessage:"Sent to {target}",id:"dz3W3oGhje",values:{target:v}})}),y&&t.jsx("span",{className:"text-text-400 text-xs truncate",children:y})]}):x,k=Vne(),w=e.useCallback(()=>{g&&m.push(k(g))},[k,g,m]),M=g?t.jsx(kt,{variant:"secondary",size:"sm",onClick:e=>{e.stopPropagation(),w()},append:t.jsx($L,{name:"ArrowOutSquare",size:"md"}),className:"mr-1",children:t.jsx(XS,{defaultMessage:"Open",id:"JfG49wNHKP"})}):void 0;return t.jsx(SL,{className:"!h-auto py-3",text:b,icon:t.jsx($L,{name:"CodeBlock",size:"md"}),isStreaming:a??!1,isFirstBlockOfMessage:i??!1,isLastBlockOfMessage:o??!1,renderMode:l,isFirstItemInGroup:c,isLastItemInGroup:d,secondaryIcon:M,isError:p})}function nAe(e){const{toolResult:s,isStreaming:n,isFirstBlockOfMessage:a,isLastBlockOfMessage:i,renderMode:r,isFirstItemInGroup:o,isLastItemInGroup:l,message:c,shareType:d}=e,u=HN(),{setIsDrawerExpanded:m}=DN(),p=n?"Presenting file(s)...":"Presented file(s)",f=s?.message||p,g=s?.content?.find(e=>"local_resource"===e.type)?.file_path,h=hoe(),C=!!g&&ele(g,d)&&h(g);return t.jsx(SL,{text:f,icon:t.jsx(HR,{size:20}),isStreaming:n??!1,isFirstBlockOfMessage:a??!1,isLastBlockOfMessage:i??!1,renderMode:r,isFirstItemInGroup:o,isLastItemInGroup:l,handleClick:C?()=>{g&&c?.uuid&&(u({type:"SELECT_FILE",path:g,toolType:"present_files",messageId:c.uuid,entryPoint:"tool_cell_present_files"}),m(!0))}:void 0})}const aAe=e.memo(({oldStr:s="",newStr:n="",isStreaming:a=!1})=>{const{linesAdded:i,linesRemoved:r}=e.useMemo(()=>{const e=s?s.split("\n").length:0;return{linesAdded:n?n.split("\n").length:0,linesRemoved:e}},[s,n]),o=e.useMemo(()=>{const e=[];return i>0&&e.push(`${i} ${1===i?"line":"lines"} added`),r>0&&e.push(`${r} ${1===r?"line":"lines"} removed`),e.join(", ")},[i,r]);if(0===i&&0===r)return null;const l=t.jsxs("span",{className:"flex items-center gap-1.5 text-xs font-mono mr-2 border-0.5 border-border-300 rounded px-1 py-0.5",children:[i>0&&t.jsx("span",{className:"text-forest-green",children:`+${i}`}),r>0&&t.jsx("span",{className:"text-danger-000",children:`-${r}`})]}),c=a?t.jsx(Yg,{children:l}):l;return t.jsx(iN,{multiline:!0,content:o,align:"center",children:t.jsx("span",{className:"inline-flex",children:c})})});function iAe(e){const{input:s,toolResult:n,isStreaming:a,isFirstBlockOfMessage:i,isLastBlockOfMessage:r,renderMode:o,isFirstItemInGroup:l,isLastItemInGroup:c,message:d,shareType:u}=e,m=JS(),p=HN(),{setIsDrawerExpanded:f}=DN(),g=s,h=n?.is_error,C=g?.path??"",x=Gl(C),v="CLAUDE.md"===x?`${Jg(C)?m.formatMessage({defaultMessage:"Global instructions",id:"53DiPrdI5r"}):m.formatMessage({defaultMessage:"Folder instructions",id:"dqW6sjmil4"})} (CLAUDE.md)`:Xoe(C),y=g?.description,b=hoe(),k=!h&&C&&d?.uuid&&ele(C,u)&&b(C),w=k&&!u;return t.jsx(SL,{isStreaming:!!a,handleClick:k?()=>{C&&d?.uuid&&(p({type:"SELECT_FILE",path:C,toolType:"str_replace",messageId:d.uuid,entryPoint:"tool_cell_str_replace"}),f(!0))}:void 0,icon:t.jsx(aD,{size:16,className:"text-text-500"}),text:t.jsx(QTe,{streamingAction:"Editing",errorAction:"Failed to edit",successAction:"Edited",target:v,isStreaming:a,isError:h,description:y}),secondaryIcon:t.jsxs(t.Fragment,{children:[!h&&t.jsx(aAe,{oldStr:g?.old_str,newStr:g?.new_str,isStreaming:a}),w&&t.jsx("span",{className:"text-xs text-text-300 max-w-64 truncate shrink-0 min-w-0",children:x})]}),isFirstBlockOfMessage:i,isLastBlockOfMessage:r,renderMode:o,isFirstItemInGroup:l,isLastItemInGroup:c})}function rAe({toolResult:s,fileSyntax:n}){const{activeOrganization:a}=v(),i=a?.uuid,r=e.useMemo(()=>{let e=s.content;if(e&&e.length>0&&"text"===e[0]?.type)try{const t=JSON.parse(e[0].text);Array.isArray(t)&&(e=t)}catch{}return e},[s.content]);try{return r&&0!==r.length&&r[0]?t.jsx(t.Fragment,{children:r.map((e,s)=>"text"===e.type?t.jsx(YH,{language:n,code:e.text},s):"image"===e.type&&i&&e.file_uuid?t.jsx("img",{alt:"",src:BN(i,e.file_uuid),className:"max-w-md max-h-md h-auto rounded-md"},s):null)}):t.jsx(t.Fragment,{})}catch(o){return t.jsx(YH,{title:"Error displaying content - Raw result:",code:JSON.stringify(s,null,2),codeTagProps:{className:"text-danger-000"},className:"!bg-danger-900"})}}function oAe({path:e}){const s=e.split("/"),n=s.indexOf("skills"),a=s[n+1]||"";return t.jsx("span",{className:"flex items-center min-w-0 text-text-200 overflow-hidden",children:t.jsx("span",{className:"whitespace-nowrap text-text-200",children:t.jsx(XS,{defaultMessage:"Loading {skill} skill",id:"b2eRiWSxS0",values:{skill:a}})})})}function lAe(e){const{input:s,toolResult:n,isStreaming:a,isFirstBlockOfMessage:i,isLastBlockOfMessage:r,renderMode:o,groupItemKey:l,isFirstItemInGroup:c,isLastItemInGroup:d,message:u,shareType:m}=e,p=JS(),{isExpanded:f,setIsExpanded:g,snappyTransition:h}=KH(!1,l),C=HN(),{setIsDrawerExpanded:x}=DN(),v=s,y=n?.is_error,b=v?.path??"",k=Nv(b),w=!/\.[^/]+$/.test(b),M=b.includes("/mnt/skills/"),_=Gl(b),j="CLAUDE.md"===_?`${Jg(b)?p.formatMessage({defaultMessage:"Global instructions",id:"53DiPrdI5r"}):p.formatMessage({defaultMessage:"Folder instructions",id:"dqW6sjmil4"})} (CLAUDE.md)`:Xoe(b),S=v?.description,L=hoe(),N=!y&&b&&u?.uuid&&ele(b,m)&&L(b),I=N&&!m&&!M;return w?t.jsx(yL,{isExpanded:f,setIsExpanded:g,isStreaming:!!a,icon:t.jsx(hg,{path:v?.path||"",size:16}),text:M&&!S?t.jsx(oAe,{path:b}):t.jsx(QTe,{streamingAction:"Viewing",errorAction:"Failed to view",successAction:"Viewed",target:j,isStreaming:a,isError:y,description:S}),isFirstBlockOfMessage:i,isLastBlockOfMessage:r,renderMode:o,isFirstItemInGroup:c,isLastItemInGroup:d,isExpandingDisabled:Boolean(!n),children:t.jsx(kL,{isExpanded:f,snappyTransition:h,isScrollable:!0,children:t.jsx("div",{className:"flex flex-col gap-3 p-3 pt-1","data-testid":"repl-output",children:n&&t.jsx(rAe,{toolResult:n,fileSyntax:k,isStreaming:a})})})}):t.jsx(SL,{isStreaming:!!a,handleClick:N&&!M?()=>{b&&u?.uuid&&(C({type:"SELECT_FILE",path:b,toolType:"view",messageId:u.uuid,entryPoint:"tool_cell_view"}),x(!0))}:void 0,isDisabled:M,icon:t.jsx(hg,{path:v?.path||"",size:16}),text:M&&!S?t.jsx(oAe,{path:b}):t.jsx(QTe,{streamingAction:"Viewing",errorAction:"Failed to view",successAction:"Viewed",target:j,isStreaming:a,isError:y,description:S}),secondaryIcon:I?t.jsx("span",{className:"text-xs text-text-300 max-w-64 truncate shrink-0 min-w-0",children:a?_:t.jsx(XS,{defaultMessage:"Show working file",id:"qucjoSGi3N"})}):void 0,isFirstBlockOfMessage:i,isLastBlockOfMessage:r,renderMode:o,isFirstItemInGroup:c,isLastItemInGroup:d})}function cAe(e){try{return!0===JSON.parse(e)?.opt_in_required}catch{return!1}}aAe.displayName="LineDiffCounter";const dAe=e.memo(function({toolUseId:s,isStreaming:n,isLastMessage:a,toolName:i,input:r,message:o,onOpenArtifact:l,toolResult:c,artifactCellType:d,isFirstBlockOfMessage:u,isLastBlockOfMessage:p,conversationUuid:f,selectedDrawerItem:g,shareType:h,displayData:C,approvalData:x,mcpAuthRequired:v,context:b,renderMode:k=bL.Standard,groupItemKey:w,isFirstItemInGroup:M,isLastItemInGroup:_,autoscrollRef:j,isSessionChat:S,isFullscreenMiniChat:L,isMcpApp:N,partialJson:I}){const T=UE();Iv();const A=Yje(),E=Gje(),{eligible:R}=RNe();y("prism_enabled");const D=y("claudeai_image_annotation_tool_enabled"),H=y("cai_opt_in_connector_suggestions");y("dramatic_shrimp_cobalt"),y("__gb__3627505652"),y("claudeai_jade_aperture");const P=jx(),U=m(),O=Gg(),F="ready"===O.state?O.result?.remoteToolsDeviceName:void 0,V=e.useMemo(()=>ooe(U,F,!!h),[U,F,h]);Du();const z={input:r,toolResult:c,isLiveToolResult:e.useRef(void 0===c).current&&void 0!==c,isStreaming:n,isFirstBlockOfMessage:u,isLastBlockOfMessage:p,renderMode:k,groupItemKey:w,isFirstItemInGroup:M,isLastItemInGroup:_,message:o,shareType:h,autoscrollRef:j,isSessionChat:S,mcpAuthRequired:v,isFullscreenMiniChat:L,toolUseId:s,partialJson:I},Z={bash_tool:eAe,create_file:tAe,present_files:nAe,launch_code_session:sAe,view:lAe,str_replace:iAe}[i];if(Z)return t.jsx(Z,{...z});switch(i){case cx.AskUserInputV0:case cx.AskUserFreeFormInputV0:return t.jsx(t.Fragment,{});case cx.DisplayWeatherInfo:return t.jsx(Av,{...z});case cx.DisplayRecipe:return t.jsx(Tv,{...z})}if("Task"===i)return t.jsx(KTe,{...z,toolUseId:s,input:r});if(i===Bie&&null!=c&&qie(c.structured_content))return t.jsx(YIe,{});const B="string"==typeof c?.content?c.content:"text"===c?.content?.[0]?.type?c.content[0].text:"{}";if(!h&&nme(i)){const e=ame(B);if(e)return t.jsx(rme,{conversationUuid:f,reason:e,fallback:t.jsx($N,{toolName:i,toolMessage:C?.toolMessage,integrationName:C?.integrationName,integrationIcon:C?.integrationIcon,iconName:C?.iconName,approvalData:x,...z})})}if(dc(i)&&cAe(B))return!h&&H?t.jsx(KIe,{}):null;if(zl(i)){const e=B;return cAe(e)?!h&&H?t.jsx(KIe,{}):null:t.jsx(XE,{toolResult:e,isStreaming:n,source:cc(i)?"list_connectors":"suggest_connectors"})}if(eh(i))return t.jsx(fTe,{toolResult:B,source:ac(i)?"list_plugins":"suggest_plugin_install"});if(i===dme&&!Da(i)&&!N&&!C?.integrationName)return t.jsx(fme,{toolResult:B,message:o,conversationUuid:f,shareType:h,isStreaming:n});if(sh(i))return t.jsx(wTe,{toolResult:B,source:rc(i)?"suggest_skills":"list_skills"});if(sc(i))return t.jsx(eTe,{toolResult:B});if("create"===Xl(i)&&!h&&c&&VTe(r,c))return t.jsx(zTe,{...z});if(i.toLowerCase().includes("save_skill")&&c&&!c.is_error)return t.jsx(PTe,{...z});if(i.toLowerCase().includes("propose_skills"))return t.jsx(WTe,{...z});if(V({type:"tool_use",name:i,input:r})&&c&&!c.is_error)return t.jsx(doe,{...z,isUpdate:(q=i,q===ioe||q===roe)});var q;const W="artifact"===g?.type?g:void 0,$=!(!c||!g||"compass"!==g.type)&&g.data.toolUseId===c.tool_use_id;if(E&&jL.has(i))return t.jsx(sx,{...z,toolName:i});switch(i){case"artifacts":return t.jsx(MTe,{input:r,toolResult:c,isStreaming:n,onOpenArtifact:l,message:o,artifactCellType:d,selectedArtifactId:W?.id,selectedArtifactVersion:W?.versionUuid,isFirstBlockOfMessage:u,isLastBlockOfMessage:p});case"repl":return t.jsx(RTe,{...z});case"image_annotation":if(!D)break;return t.jsx(Ev,{...z});case"enterprise_analytics":if(!A)break;return t.jsx(tx,{...z});case"drive_search":if(!T)break;return t.jsx(kTe,{syncSourceType:He.GDRIVE,toolName:i,...z});case"web_search":return t.jsx(kTe,{toolName:i,...z});case"orbit_insight":{if(!R)break;const e=WNe(r);if(!e)break;return t.jsx(zIe,{briefing:e})}case"web_fetch":return t.jsx(XIe,{...z});case"launch_extended_search_task":return t.jsx(ex,{toolUseId:s,isFirstBlockOfMessage:u,isLastBlockOfMessage:p,conversationUuid:f,toolResult:c,isShared:!!h,isExpanded:$,isStreaming:n,context:b})}if(function(e){return GIe.some(t=>e.endsWith(t))}(i))return t.jsx(ATe,{...z});const G=Da(i);return P&&N?t.jsx(Rv,{toolName:i,conversationUuid:f,approvalData:x,...z}):!G&&C?.integrationName?t.jsx(_Te,{...C,toolName:i,isError:c?.is_error,isStreaming:n,isFirstBlockOfMessage:u,isLastBlockOfMessage:p,renderMode:k,groupItemKey:w,isFirstItemInGroup:M,isLastItemInGroup:_}):h&&lx(i)?i.endsWith("show_widget")?t.jsx(YTe,{}):null:!ox(i)||Ql(i)||x?.approvalRequired?t.jsx($N,{toolName:i,toolMessage:C?.toolMessage,integrationName:C?.integrationName,integrationIcon:C?.integrationIcon,iconName:C?.iconName,approvalData:x,...z}):null});function uAe(s){return e.useCallback(e=>t.jsx(dAe,{...e,conversationUuid:s,isFullscreenMiniChat:!0}),[s])}dAe.displayName="ToolUseCell";const mAe=e.memo(()=>{const{toolPermissionRequests:e,sendToolDecision:s,scheduledTaskId:n}=aa(hT(e=>({toolPermissionRequests:e.sessionContext?.toolPermissionRequests,sendToolDecision:e.sessionContext?.sendToolDecision,scheduledTaskId:e.sessionContext?.scheduledTaskId})));return e?.length&&s?t.jsx(oA,{reducedMotion:"always",children:t.jsx("div",{className:"mt-3 [&>*]:!my-0 [&>*>*]:!border-0 [&>*>*]:!shadow-none",children:t.jsx(hae,{toolPermissionRequests:e,onToolDecision:s,isScheduledTask:!!n,disableKeyboardShortcuts:!0})})}):null});mAe.displayName="MiniChatToolApproval";const pAe=e.memo(({onClick:e,isVisible:s})=>t.jsx("div",{className:"absolute bottom-full left-0 right-0 mb-2 flex justify-center pointer-events-none",children:t.jsx("button",{onClick:e,"aria-label":"Close chat preview",className:dt("pointer-events-auto","size-7 inline-flex items-center justify-center","border-0.5 border-border-300 overflow-hidden rounded-full","shadow-md hover:shadow-lg","bg-bg-000","transition-all duration-200",s?"opacity-100":"opacity-0"),children:t.jsx(aI,{size:14})})}));pAe.displayName="MiniChatCloseButton";const fAe=e.memo(({conversationUuid:s,isStreaming:n,lastMessageUuid:a,isVisible:i,onClose:r,showToolApproval:o})=>{const l=e.useRef(null),c=uAe(s);return e.useEffect(()=>{n&&l.current?.setPinToBottom(!0)},[n]),t.jsxs("div",{className:dt("absolute bottom-full left-0 right-0 mb-3","mx-2 md:mx-0","transition-all",i?"duration-200":"duration-400",i?"opacity-100 translate-y-0":"opacity-0 translate-y-2 pointer-events-none"),children:[!o&&t.jsx(pAe,{onClick:r,isVisible:i}),t.jsx("div",{className:dt("max-h-80 overflow-hidden","rounded-2xl border-0.5 border-border-300 bg-bg-000 shadow-lg"),children:t.jsxs(D9,{ref:l,parentClassName:"max-h-80 p-5",pinToBottomConfig:{disabled:!1,initialValue:!0},children:[a?t.jsx(Dv,{renderToolUseCell:c,children:t.jsx(ANe,{messageUuid:a,conversationUuid:s,isStreaming:n,isLastMessage:!0,isLastHumanMessage:!1,isLastAssistantMessage:!0,isInteractive:!1,isRemoteAgentMode:!1,editable:!1,hideActionBar:!0,chatFeedbackEnabled:!1})}):t.jsxs("div",{className:"flex items-center gap-4",children:[t.jsx("div",{className:"w-5 h-5",children:t.jsx(H9,{className:"!w-5 !h-5",state:"thinking"})}),t.jsx(Yg,{className:"text-sm",children:t.jsx(XS,{defaultMessage:"Thinking...",id:"QrZMdiKa7h"})})]}),o&&t.jsx(mAe,{})]})})]})});fAe.displayName="StreamingChatPreview";const gAe=e.memo(({conversationUuid:s,isStreaming:n,messageUuids:a,isOpen:i,onClose:r,showToolApproval:o})=>{const l=e.useRef(null),c=uAe(s),d=a.length-1,u=m(Ff),p=rI(u);return e.useEffect(()=>{i&&l.current&&(l.current.scrollTop=l.current.scrollHeight)},[i]),t.jsxs(t.Fragment,{children:[t.jsx("div",{className:dt("fixed transition-opacity duration-200",i?"opacity-100":"opacity-0 pointer-events-none"),style:iI(p),onClick:r,"aria-label":"Close chat preview"}),t.jsxs("div",{className:dt("absolute bottom-full left-0 right-0 mb-3","mx-2 md:mx-0","transition-all duration-200",i?"opacity-100 translate-y-0":"opacity-0 translate-y-2 pointer-events-none"),children:[t.jsx(pAe,{onClick:r,isVisible:i}),t.jsx("div",{className:dt("max-h-80 overflow-hidden","rounded-2xl border-0.5 border-border-300 bg-bg-000 shadow-[0_2px_8px_hsl(var(--always-black)/8%)]"),children:t.jsxs("div",{ref:l,className:"max-h-80 overflow-y-auto p-5",children:[t.jsx(Dv,{renderToolUseCell:c,children:a.map((e,a)=>t.jsx(ANe,{messageUuid:e,conversationUuid:s,isStreaming:n&&a===d,isLastMessage:a===d,isLastHumanMessage:!1,isLastAssistantMessage:a===d,isInteractive:!1,isRemoteAgentMode:!1,editable:!1,chatFeedbackEnabled:!1},e))}),o&&t.jsx(mAe,{})]})})]})]})});gAe.displayName="FullChatPreview";const hAe=e.memo(({onClick:s,onVisibilityChange:n})=>{const[a,i]=e.useState(!1),[r,o]=e.useState(!1),[l,c]=e.useState(!1),d=e.useRef(null),u=a||r||l;e.useEffect(()=>{n(u)},[u,n]);const m=e.useCallback(()=>{d.current&&clearTimeout(d.current),c(!0),d.current=setTimeout(()=>{c(!1)},1e3)},[]),p=e.useCallback(()=>{d.current&&(clearTimeout(d.current),d.current=null),i(!0)},[]),f=e.useCallback(()=>{i(!1),c(!1)},[]),g=e.useCallback(()=>{o(!0)},[]),h=e.useCallback(()=>{o(!1)},[]);return t.jsxs("div",{className:"pointer-events-none absolute bottom-0 left-0 right-0 flex flex-col items-center",children:[t.jsx("div",{className:"pointer-events-auto h-2 w-full",onMouseEnter:m}),t.jsx("div",{className:"pointer-events-auto flex justify-center py-1",onMouseEnter:m,children:t.jsx("button",{onClick:s,onMouseEnter:p,onMouseLeave:f,onFocus:g,onBlur:h,"aria-label":"View chat",className:dt("size-7 inline-flex items-center justify-center","border-0.5 border-border-300 overflow-hidden rounded-full","shadow-md hover:shadow-lg","bg-bg-000","transition-all duration-200",u?"opacity-100":"opacity-0"),children:t.jsx($P,{size:14})})}),t.jsx("div",{className:"pointer-events-auto h-2 w-full",onMouseEnter:m})]})});hAe.displayName="FullChatPreviewTrigger";const CAe=e.memo(({conversationUuid:s,isStreaming:n})=>{const a=hp(s),i=Cp(s),r=function(){const e="local_session"===Me()?.type,t=aa(e=>{const t=e.sessionContext?.toolPermissionRequests;return!!t?.length&&t.some(e=>!wc.REQUIRES_INPUT.has(e.toolName))});return e&&t}(),[o,l]=e.useState(!1),[c,d]=e.useState(!1),u=e.useCallback(e=>{e&&!c&&requestAnimationFrame(()=>{requestAnimationFrame(()=>{d(!0)})})},[c]),m=e.useCallback(()=>{l(!0)},[]),[p,f]=e.useState(!1),[g,h]=e.useState(!1),C=g&&p,x="assistant"===i?.sender,v=i?.hasContent??!1,y=e.useRef(!1),b=e.useRef(!1);e.useEffect(()=>{n&&!b.current&&(y.current=!1),b.current=n},[n]);(n&&!y.current||r)&&!p&&(f(!0),h(!0)),e.useEffect(()=>{if(!n&&!r&&p){const e=setTimeout(()=>{f(!1)},2e3);return()=>clearTimeout(e)}},[n,r,p]),e.useEffect(()=>{if(!p&&g){const e=setTimeout(()=>{h(!1)},400);return()=>clearTimeout(e)}},[p,g]),e.useEffect(()=>{n&&l(!1)},[n]);const k=e.useCallback(()=>{l(!1)},[]),w=e.useCallback(()=>{y.current=!0,f(!1)},[]),M=x&&v?i?.uuid:void 0,_=!n&&!p&&!o&&a.length>0;return t.jsxs("div",{className:"relative",children:[_&&t.jsx(hAe,{onClick:m,onVisibilityChange:u}),g&&t.jsx(fAe,{conversationUuid:s,isStreaming:n,lastMessageUuid:M,isVisible:p,onClose:w,showToolApproval:r}),(c||o)&&t.jsx(gAe,{conversationUuid:s,isStreaming:n,messageUuids:a,isOpen:o&&!C,onClose:k,showToolApproval:r})]})});CAe.displayName="FullscreenMiniChat";const xAe=e.createContext(null);function vAe({ownerId:e,children:s}){return t.jsx(xAe.Provider,{value:e,children:s})}function yAe(){return e.useContext(xAe)}function bAe(){return y("cai_voice_dictation_parity")}function kAe(){return y("cai_voice_language")}const wAe=AL({id:IL().optional(),display_name:IL().optional(),preview_url:IL().nullish()}).catch({}),MAe=AL({speech_input:AL({supported_languages:NL(AL({code:IL().optional(),display_name:IL().optional(),voices:NL(wAe).default([]).catch([])}).catch({voices:[]})).default([])}).optional()}).nullable().transform(e=>e?.speech_input?.supported_languages.filter(e=>!!e.code&&!!e.display_name).map(e=>({code:e.code,displayName:e.display_name,voices:(e.voices??[]).filter(e=>!!e.id&&!!e.display_name).map(e=>({id:e.id,displayName:e.display_name,previewUrl:e.preview_url??void 0}))}))??[]),_Ae=[];function jAe(){return Qa("mobile_deedee_config",_Ae,MAe)}const SAe=oie.map(e=>({id:e.id,displayName:e.label}));function LAe(e,t){const s=e.find(e=>e.code===t)?.voices;return s&&s.length>0?s:SAe}function NAe(){const e=JS(),t=kAe(),{account:s}=v(),n=s?.settings.voice_language_code||null;return t&&n?n:function(e){const t=e.toLowerCase(),s={bg:"bg",ca:"ca",zh:"zh","zh-cn":"zh","zh-hans":"zh","zh-tw":"zh-TW","zh-hant":"zh-TW","zh-hk":"zh-HK",cs:"cs",da:"da","da-dk":"da",nl:"nl","nl-be":"nl-BE",en:"en","en-us":"en-US","en-au":"en-AU","en-gb":"en-GB","en-nz":"en-NZ","en-in":"en-IN",et:"et",fi:"fi",fr:"fr","fr-ca":"fr",de:"de","de-ch":"de-CH",el:"el",hi:"hi",hu:"hu",id:"id",it:"it",ja:"ja",ko:"ko","ko-kr":"ko",lv:"lv",lt:"lt",ms:"ms",no:"no",pl:"pl",pt:"pt","pt-br":"pt","pt-pt":"pt",ro:"ro",ru:"ru",sk:"sk",es:"es","es-419":"es",sv:"sv","sv-se":"sv",th:"th","th-th":"th",tr:"tr",uk:"uk",vi:"vi"};if(s[t])return s[t];const n=t.split("-")[0];return s[n]?s[n]:"en"}(e.locale)}let IAe=null,TAe=null,AAe=!1;async function EAe(e){try{await Promise.race([e.resume(),new Promise((e,t)=>setTimeout(()=>t(new Error("timeout")),500))])}catch{}return"running"===e.state}function RAe(e,t=.3){if("undefined"==typeof window)return null;const s=new Audio(e);return s.volume=t,s}async function DAe(){if(AAe&&TAe)return!0;if("undefined"==typeof window)return!1;try{const e=window.AudioContext||window.webkitAudioContext;if(!e)return!1;if(IAe=new e,"suspended"===IAe.state){if(!(await EAe(IAe)))return!1}return TAe={"voice-mode-ready":RAe("/audio/voice/sfx/enter_voice_mode.mp3"),"exit-voice-mode":RAe("/audio/voice/sfx/exit_voice_mode.mp3"),disconnected:RAe("/audio/voice/sfx/disconnected.mp3")},Object.values(TAe).forEach(e=>{if(e&&IAe){IAe.createMediaElementSource(e).connect(IAe.destination),e.load()}}),AAe=!0,!0}catch{return!1}}async function HAe(e){if(AAe||await DAe(),!TAe||!IAe)return;if("closed"===IAe.state&&(AAe=!1,TAe=null,IAe=null,await DAe(),!TAe||!IAe))return;if("suspended"===IAe.state){if(!(await EAe(IAe)))return AAe=!1,TAe=null,void(IAe=null)}const t=TAe[e];if(t){t.currentTime=0;try{await t.play()}catch{}}}class PAe{ws=null;keepAliveTimer=null;onTranscript=null;onInterimTranscript=null;onEndpoint=null;onMessage=null;onError=null;onClose=null;connect({language:e="en",useConversationEngine:t,typedInterims:s,sttProvider:n,clientPlatform:a,conversationUuid:i}={}){return new Promise((r,o)=>{const l=Hie(`/api/ws/speech_to_text/voice_stream?${new URLSearchParams({encoding:t?"linear16":"opus",sample_rate:"16000",channels:"1",endpointing_ms:"300",utterance_end_ms:"1000",language:e,...void 0!==t?{use_conversation_engine:String(t)}:{},...s?{forward_interims:"typed"}:{},...n?{stt_provider:n}:{},...a?{client_platform:a}:{},...i?{conversation_uuid:i}:{}}).toString()}`);tue("[DictationWebSocket] Connecting to:",l),this.ws=new WebSocket(l),this.ws.binaryType="arraybuffer",this.ws.onopen=()=>{tue("[DictationWebSocket] Connected"),this.startKeepAlive(),r()},this.ws.onmessage=e=>{if("string"==typeof e.data)try{const t=JSON.parse(e.data);this.onMessage?.(t);const{type:s,data:n}=t;"TranscriptInterim"===s&&"string"==typeof n?this.onInterimTranscript?.(n):"TranscriptText"===s&&"string"==typeof n?this.onTranscript?.(n):"TranscriptEndpoint"===s&&this.onEndpoint?.()}catch{}},this.ws.onerror=e=>{tue("[DictationWebSocket] Error:",e);const t=new Error("Dictation WebSocket error",{cause:e});t.name=`WebSocketError_rs${this.ws?.readyState??"?"}`,this.onError?.(t),o(t)},this.ws.onclose=()=>{tue("[DictationWebSocket] Closed"),this.stopKeepAlive(),this.onClose?.()}})}sendAudio(e){this.ws?.readyState===WebSocket.OPEN&&this.ws.send(e)}close(){if(this.stopKeepAlive(),this.ws?.readyState===WebSocket.OPEN)try{this.ws.send(JSON.stringify({type:"CloseStream"}))}catch{}this.ws?.close(),this.ws=null}closeGracefully(){if(this.stopKeepAlive(),!this.ws||this.ws.readyState!==WebSocket.OPEN)return this.ws?.close(),this.ws=null,Promise.resolve();const e=this.ws;return new Promise(t=>{let s=!1;const n=()=>{s||(s=!0,this.ws=null,t())},a=setTimeout(()=>{tue("[DictationWebSocket] Drain timeout, forcing close"),e.close(),n()},2e3);this.onClose=()=>{clearTimeout(a),tue("[DictationWebSocket] Server closed after drain"),n()};try{e.send(JSON.stringify({type:"CloseStream"})),tue("[DictationWebSocket] CloseStream sent, draining...")}catch{clearTimeout(a),e.close(),n()}})}isConnected(){return this.ws?.readyState===WebSocket.OPEN}startKeepAlive(){this.stopKeepAlive(),this.keepAliveTimer=setInterval(()=>{this.ws?.readyState===WebSocket.OPEN&&this.ws.send(JSON.stringify({type:"KeepAlive"}))},4e3)}stopKeepAlive(){this.keepAliveTimer&&(clearInterval(this.keepAliveTimer),this.keepAliveTimer=null)}}function UAe(){return"undefined"==typeof window?"web":_r(window.navigator.userAgent)?"desktop":"web"}const OAe=new class{recorder=null;ws=null;maxDurationTimer=null;drainingWs=null;startGeneration=0;apmEnabled=!0;hasDetectedAudio=!1;silenceCheckTimer=null;sessionStartTime=null;lastTranscriptAt=null;silenceAutoStopMs=15e3;async start(e,t,s){const n=zg.getState();if("recording"===n.status||"connecting"===n.status)return;this.cancelDrain();const a=++this.startGeneration,i=()=>this.startGeneration===a;this.resetSessionTrackingState(),n.setOwnerId(s),n.setTranscript(""),n.setMicBlockedReason(null),"error"===zg.getState().status&&n.setStatus("idle");const r=await xue();if(!i()||zg.getState().ownerId!==s)return;if(r)return n.setMicBlockedReason("permission_denied"),n.setError("Microphone access wasn't granted. Check your browser settings to allow access."),void Eie("aborted",t.area,"permission_denied");const o=crypto.randomUUID();n.beginAnalyticsSession({dictationSessionId:o,surface:t,language:e,attemptedAt:performance.now()}),n.setIsPushToTalk(!1),n.setStatus("connecting"),DAe();const l=await vue();if(!i())return;if(!l)return n.setMicBlockedReason("permission_denied"),void n.setError("Microphone access wasn't granted. Check your browser settings to allow access.");let c="mic_acquire";const d=!(Rl("voice_web_disable_apm_m4_macos26")&&await kue());if(this.apmEnabled=d,i())try{const s=await async function(){const e=await hue();if(e)return{stream:e.stream,requestedDeviceId:void 0,acquiredDeviceId:"devmic",acquiredLabel:"DevMicSource",matched:!0,fallbackUsed:!1,deviceCount:0,echoCancellationEnabled:!1}}()??await Mue.acquireMicStream({echoCancellation:d}),{stream:a}=s;if(!i())return void Mue.releaseMicStream();c="stt_connect",this.ws=new PAe,this.ws.onMessage=e=>{tue("[DictationSession] STT event:",e.type,e.data?.slice(0,80))};const r=e=>{e&&(this.lastTranscriptAt=Date.now())};if(this.ws.onTranscript=e=>{r(e),zg.getState().setInterimTranscript(e)},this.ws.onInterimTranscript=this.ws.onTranscript,this.ws.onEndpoint=()=>{const{interimTranscript:e,appendTranscript:t}=zg.getState();e&&t(e)},this.ws.onError=e=>{this.isSwitchingDevice||("stt_connect"===c&&zg.getState().setStartErrorDetail({phase:c,name:e instanceof Error?e.name:"unknown"}),this.stop("stt_error"),HAe("disconnected"),zg.getState().setError("Dictation connection was lost. You can try again."))},this.ws.onClose=()=>{tue("[DictationSession] WS closed, switching:",this.isSwitchingDevice),this.isSwitchingDevice||this.isActive()&&this.stop("stt_close")},await this.ws.connect({language:e,useConversationEngine:!0,typedInterims:Rl("brick_follow_main"),sttProvider:"deepgram-nova3",clientPlatform:"desktop"===UAe()?Hv.DESKTOP_APP:Hv.WEB_CLAUDE_AI,conversationUuid:t.chatConversationUuid}),!i())return this.ws?.close(),this.ws=null,void Mue.releaseMicStream();if(c="recorder_start",this.recorder=new fue({sampleRate:16e3,channels:1,usePcm:!0}),this.recorder.setOnAudioChunk(e=>{e instanceof Blob?e.arrayBuffer().then(e=>{this.ws?.sendAudio(e)}):this.ws?.sendAudio(e)}),this.recorder.setOnAudioLevel(e=>{const t=Date.now();if(e.level>0&&!this.hasDetectedAudio&&(this.hasDetectedAudio=!0,zg.getState().setHadAudio(!0)),this.silenceAutoStopMs>0&&null!==this.lastTranscriptAt&&t-this.lastTranscriptAt>this.silenceAutoStopMs&&!zg.getState().isPushToTalk&&!this.isSwitchingDevice)return tue("[DictationSession] Auto-stopping after",this.silenceAutoStopMs,"ms without a transcript"),void this.stop("auto_silence");zg.getState().setAudioLevel(e.level)}),await this.recorder.startWithStream(a),!i())return this.recorder?.stop(),this.recorder=null,this.ws?.close(),this.ws=null,void Mue.releaseMicStream();n.setMicStream(this.recorder.getMediaStream()),n.setBackend(this.recorder.getActiveBackend()??"unknown"),n.setStartedAt(performance.now()),n.setStatus("recording"),HAe("voice-mode-ready"),iue.dictationSessionStarted({dictationSessionId:o,area:t.area,input:t.input,platform:UAe(),deviceCount:s.deviceCount,acquiredLabel:s.acquiredLabel,requestedDeviceId:s.requestedDeviceId,matched:s.matched,fallbackUsed:s.fallbackUsed,backend:this.recorder.getActiveBackend()??"unknown"}),this.sessionStartTime=Date.now(),this.lastTranscriptAt=this.sessionStartTime,this.maxDurationTimer=setTimeout(()=>{tue("[DictationSession] Max duration reached, stopping"),this.stop("auto_max_duration")},12e4),this.silenceCheckTimer=setTimeout(()=>{this.silenceCheckTimer=null,this.hasDetectedAudio||iue.dictationNoAudioAt2500ms({dictationSessionId:o,area:t.area,input:t.input,backend:this.recorder?.getActiveBackend()??"unknown"})},2500)}catch(u){if(!i())return;tue("[DictationSession] Start failed:",u),this.cleanup();const e=u instanceof Error?u.cause instanceof Error?u.cause.name:u.name:"unknown";n.setStartErrorDetail({phase:c,name:e}),"NotAllowedError"===e&&n.setMicBlockedReason("permission_denied"),n.setError("Couldn't start dictation. You can try again.")}}cancel(e="cancel"){this.isActive()&&(tue("[DictationSession] Cancel"),zg.getState().setLastStopReason(e),this.startGeneration++,this.silenceCheckTimer&&(clearTimeout(this.silenceCheckTimer),this.silenceCheckTimer=null),this.maxDurationTimer&&(clearTimeout(this.maxDurationTimer),this.maxDurationTimer=null),this.resetSessionTrackingState(),this.recorder&&(this.recorder.stop(),this.recorder=null),Mue.releaseMicStream(),this.ws&&(this.ws.onTranscript=null,this.ws.onInterimTranscript=null,this.ws.onEndpoint=null,this.ws.onError=null,this.ws.onClose=null,this.ws.onMessage=null,this.ws.close(),this.ws=null),this.drainingWs&&(this.drainingWs.onTranscript=null,this.drainingWs.onInterimTranscript=null,this.drainingWs.onEndpoint=null,this.drainingWs.onError=null,this.drainingWs.onClose=null,this.drainingWs.onMessage=null,this.drainingWs.close(),this.drainingWs=null),zg.getState().reset(),HAe("exit-voice-mode"))}stop(e){if(!this.isActive())return;tue("[DictationSession] Stopping");const t=zg.getState();t.setLastStopReason(e??null),this.startGeneration++;const s=this.recorder?.getActiveBackend()??"unknown";if(this.silenceCheckTimer&&(clearTimeout(this.silenceCheckTimer),this.silenceCheckTimer=null),this.hasDetectedAudio||null===this.sessionStartTime||iue.dictationSessionEndedSilent({dictationSessionId:t.dictationSessionId,area:t.surface?.area,input:t.surface?.input,backend:s,sessionDurationMs:Date.now()-this.sessionStartTime}),this.resetSessionTrackingState(),this.maxDurationTimer&&(clearTimeout(this.maxDurationTimer),this.maxDurationTimer=null),this.recorder&&(this.recorder.stop(),this.recorder=null),Mue.releaseMicStream(),zg.getState().setMicStream(null),zg.getState().setStatus("idle"),zg.getState().setAudioLevel(0),zg.getState().setStartedAt(null),HAe("exit-voice-mode"),this.ws){const e=this.ws;this.ws=null,this.drainingWs=e,e.onError=null,e.onMessage=null,e.closeGracefully().then(()=>{e.onTranscript=null,e.onInterimTranscript=null,e.onEndpoint=null,e.onClose=null,this.drainingWs===e&&(this.drainingWs=null)})}}isSwitchingDevice=!1;async switchDevice(e){if(!this.recorder)return;this.isSwitchingDevice=!0,tue("[DictationSession] Switching device:",e);let t=null;try{t=await navigator.mediaDevices.getUserMedia({audio:{sampleRate:{ideal:48e3},channelCount:1,echoCancellation:this.apmEnabled,noiseSuppression:!0,autoGainControl:!0,...e?{deviceId:{exact:e}}:{}}}),tue("[DictationSession] Got new stream, switching...");const s=await this.recorder.switchStream(t);tue("[DictationSession] Stream switched OK:",!!s),zg.getState().setMicStream(s)}catch(s){tue("[DictationSession] Device switch failed:",s),t?.getTracks().forEach(e=>e.stop())}finally{this.isSwitchingDevice=!1}}cancelDrain(){this.drainingWs&&(this.drainingWs.onTranscript=null,this.drainingWs.onInterimTranscript=null,this.drainingWs.onEndpoint=null,this.drainingWs.onError=null,this.drainingWs.onClose=null,this.drainingWs=null)}cleanup(){this.silenceCheckTimer&&(clearTimeout(this.silenceCheckTimer),this.silenceCheckTimer=null),this.resetSessionTrackingState(),this.maxDurationTimer&&(clearTimeout(this.maxDurationTimer),this.maxDurationTimer=null),this.recorder&&(this.recorder.stop(),this.recorder=null),this.ws&&(this.ws.onTranscript=null,this.ws.onInterimTranscript=null,this.ws.onEndpoint=null,this.ws.onError=null,this.ws.onClose=null,this.ws.close(),this.ws=null),this.cancelDrain(),Mue.releaseMicStream(),zg.getState().setMicStream(null)}isActive(){const e=zg.getState().status;return"recording"===e||"connecting"===e}resetSessionTrackingState(){this.hasDetectedAudio=!1,this.sessionStartTime=null,this.lastTranscriptAt=null,this.isSwitchingDevice=!1}};function FAe(e){const t=y("desktop_dictation_voice"),s=y("ccr_basalt_harrier_main"),n=y("cai_voice_dictation_parity"),a=y("claude_ai_voice_mode"),i=m(),r=aP("(max-width: 599px)")??!1;return ii()&&fue.isPcmSupported()&&(i&&t||!i&&a&&("code"===e&&!r&&s||("chat"===e||"cowork"===e||"conway"===e)&&n))}const VAe=500;function zAe({isBusy:t,surface:s,enabled:n=!0,ownerDocument:a}){const{account:i}=v();e.useEffect(()=>{var e;localStorage.getItem("VOICE_DEBUG")&&(e=Ln(i),sue=e)},[i]),e.useEffect(()=>{xue()},[]);const r=e.useId(),o=FAe(s.area),l=Ov(),c=Fv(),d=Vv(),u=zv(),p=NAe(),f=d===r,g=f&&l,h=f&&c,C=f?u:"",{area:x,input:y,chatConversationUuid:b,projectUuid:k}=s,w=e.useCallback(()=>{OAe.start(p,"chat"===x?{area:x,input:y,chatConversationUuid:b,projectUuid:k}:{area:x,input:y,projectUuid:k},r)},[p,x,y,b,k,r]),M=e.useCallback(()=>{zg.getState().ownerId===r&&OAe.stop("commit")},[r]),_=e.useCallback(e=>{OAe.switchDevice(e)},[]),j=!f&&l;!function({onStart:t,onStop:s,isActive:n,dictationEnabled:a,skipCommandRegistration:i=!1,ownerDocument:r}){const{matchShortcut:o}=Pv("toggle_dictation"),l=m(),c=bAe(),d=e.useCallback(()=>{const e=zg.getState().status;"recording"!==e&&"connecting"!==e?t&&(t(),zg.getState().setActivation("keyboard")):OAe.stop("commit")},[t]);Uv("toggle_dictation",a?d:void 0,{skip:i});const u=e.useRef(null),p=e.useRef(!1),f=e.useRef(null),g=e.useRef(n);g.current=n,e.useEffect(()=>()=>{f.current&&(clearTimeout(f.current),f.current=null)},[]),e.useEffect(()=>{if(!n||!c)return;const e=e=>{e.repeat||("Enter"!==e.key||e.shiftKey||e.metaKey||e.ctrlKey?"Escape"===e.key&&(e.preventDefault(),OAe.cancel()):(e.preventDefault(),e.stopImmediatePropagation(),"recording"===zg.getState().status&&OAe.stop("commit")))},t=r??document;return t.addEventListener("keydown",e,!0),()=>t.removeEventListener("keydown",e,!0)},[n,c,r]),e.useEffect(()=>{if(!l)return;if(!t&&!n)return;const e=e=>{if(!e.repeat&&o(e))return e.preventDefault(),g.current?(e.stopImmediatePropagation(),s?.(),u.current=null,p.current=!1,f.current&&(clearTimeout(f.current),f.current=null),void zg.getState().setIsPushToTalk(!1)):void(t&&(e.stopImmediatePropagation(),u.current=Date.now(),p.current=!0,t(),zg.getState().setActivation("keyboard"),f.current&&clearTimeout(f.current),zg.getState().holdToRecordEnabled&&(f.current=setTimeout(()=>{null!==u.current&&(zg.getState().setIsPushToTalk(!0),zg.getState().setActivation("hold"))},VAe))))},a=e=>{if("d"!==e.key&&"Meta"!==e.key&&"Control"!==e.key)return;if(!p.current)return;p.current=!1,f.current&&(clearTimeout(f.current),f.current=null);const t=u.current;if(u.current=null,null===t)return;const n=Date.now()-t;zg.getState().holdToRecordEnabled&&n>=VAe&&(zg.getState().setIsPushToTalk(!1),s?.())},i=r??document;return i.addEventListener("keydown",e,!0),i.addEventListener("keyup",a,!0),()=>{i.removeEventListener("keydown",e,!0),i.removeEventListener("keyup",a,!0)}},[l,o,t,s,n,r])}({onStart:n&&o&&!t&&!j?w:void 0,onStop:M,isActive:g,dictationEnabled:o,skipCommandRegistration:!n,ownerDocument:a}),e.useEffect(()=>{t&&g&&OAe.stop("auto_busy")},[t,g]),e.useEffect(()=>{!o&&g&&OAe.stop("auto_gate")},[o,g]);const S=m();e.useEffect(()=>{if(S)return;const e=()=>{document.hidden&&zg.getState().ownerId===r&&OAe.stop("auto_tab_hidden")};return document.addEventListener("visibilitychange",e),()=>document.removeEventListener("visibilitychange",e)},[S,r]),e.useEffect(()=>()=>{zg.getState().ownerId===r&&(OAe.stop("auto_unmount"),zg.getState().reset())},[r]);return{dictationEnabled:o,showDictationButton:g||o&&!t&&!j,isDictationRecording:h,dictationTranscript:C,dictationOwnerId:r,handleStartDictation:w,handleStopDictation:M,handleSwitchDictationDevice:_}}function ZAe({transcript:t,isActive:s,setPrompt:n,getPrompt:a,getPromptUnsafe:i,promptInputRef:r,autoCommit:o=!1,onTranscriptCommit:l,onClearTranscript:c,inactivityCommitMs:d=1e3,subscribeToCommitTriggers:u,skipCommit:m=!1,getCursorOffset:p,onDictationContentUpdate:f}){const g=e.useRef(n);g.current=n;const h=e.useRef(r);h.current=r;const C=e.useRef(l);C.current=l;const x=e.useRef(c);x.current=c;const v=e.useRef(m);v.current=m;const y=e.useRef(a);y.current=a;const b=e.useRef(i);b.current=i;const k=e.useRef(!1),w=e.useRef(null),M=e.useRef(p);M.current=p;const _=e.useRef(f);_.current=f;const j=e.useRef(""),S=e.useRef(null),L=e.useRef(!1),N=e.useRef(""),I=e.useRef(""),T=e.useRef(()=>{if(!o)return;if(L.current)return;if(v.current)return;const e=j.current;e&&(L.current=!0,C.current?.(e),j.current="",g.current(""),h.current.current?.setContent(""),x.current?.()),S.current&&(clearTimeout(S.current),S.current=null)});e.useEffect(()=>{if(!o&&s){const e=y.current?.()??"",t=M.current?.()??e.length;N.current=e.slice(0,t),I.current=e.slice(t),k.current=b.current()}},[o,s]),e.useEffect(()=>{if(t){const e=o?"":N.current,a=o?"":I.current,i=e.length>0&&!e.endsWith(" ")&&!e.endsWith("\n")&&!t.startsWith(" "),l=a.length>0&&!a.startsWith(" ")&&!a.startsWith("\n")&&!t.endsWith(" "),c=(i?" ":"")+t+(l?" ":""),d=e+c+a;if(!o&&s&&_.current)_.current(e,c,a);else if(o||s)n(d,{unsafe:k.current}),r.current?.setContent(d);else{(y.current?.()??"")===w.current&&(n(d,{unsafe:k.current}),r.current?.setContent(d),w.current=d)}(o||s)&&(j.current=d)}else if(j.current&&o)j.current="",n("",{forceUpdateTiptap:!0}),r.current?.setContent("");else if(j.current&&!o){const e=N.current,t=I.current;if(j.current="",_.current)_.current(e,"",t);else{const s=e+t;n(s,{forceUpdateTiptap:!0,unsafe:k.current}),r.current?.setContent(s)}}},[t,n,r,o,s]),e.useEffect(()=>{o||(s?w.current=null:(j.current="",w.current=y.current?.()??null))},[o,s]),e.useEffect(()=>{if(o&&u)return u(()=>T.current())},[o,u]),e.useEffect(()=>{o&&(!s&&j.current&&(S.current&&clearTimeout(S.current),S.current=setTimeout(()=>{T.current()},d)),s&&(L.current=!1,S.current&&(clearTimeout(S.current),S.current=null)))},[o,s,d]),e.useEffect(()=>{o&&(s||t||(L.current=!1,j.current="",S.current&&(clearTimeout(S.current),S.current=null)))},[o,s,t]),e.useEffect(()=>()=>{S.current&&clearTimeout(S.current)},[])}const BAe=.3,qAe=4/3,WAe=!0,$Ae=.6,GAe=[2,4,8,12,16,20,24,28,32,36,40];function KAe(e,t,s){const n=e.createFramebuffer(),a=e.createTexture();return n&&a?(e.bindTexture(e.TEXTURE_2D,a),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,t,s,0,e.RGBA,e.UNSIGNED_BYTE,null),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),e.bindFramebuffer(e.FRAMEBUFFER,n),e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,a,0),e.bindFramebuffer(e.FRAMEBUFFER,null),e.bindTexture(e.TEXTURE_2D,null),{framebuffer:n,texture:a}):{framebuffer:null,texture:null}}function YAe(e){const t=e.match(/rgba\((\d+),\s*(\d+),\s*(\d+),\s*([0-9.]+)\)/);return t?[parseInt(t[1])/255,parseInt(t[2])/255,parseInt(t[3])/255,parseFloat(t[4])]:[0,0,0,0]}function QAe(e,t,s,n){const a=t.context.sampleRate/2,i=Math.floor(s/a*(e.length-1)),r=Math.floor(n/a*(e.length-1));let o=0;for(let l=i;l<=r;l++)o+=e[l];return o/(255*(r-i+1))}function JAe(e,t,s){const n=e.createShader(t);return n?(e.shaderSource(n,s),e.compileShader(n),e.getShaderParameter(n,e.COMPILE_STATUS)?n:(e.deleteShader(n),null)):null}function XAe(e,t,s){const n=e.createProgram();return n?(e.attachShader(n,t),e.attachShader(n,s),e.linkProgram(n),e.getProgramParameter(n,e.LINK_STATUS)?n:null):null}function eEe(e,t={}){const s=t.noiseEnabled??WAe,n=t.circleBaseSize??BAe,a=e.getContext("webgl",{alpha:!0,premultipliedAlpha:!0,antialias:!0,depth:!1,stencil:!1});if(!a)return{gl:null,programInfo:null,buffers:null,blurResources:null};a.enable(a.BLEND),a.blendEquation(a.FUNC_ADD),a.blendFunc(a.ONE,a.ONE_MINUS_SRC_ALPHA),a.disable(a.DEPTH_TEST),a.clearColor(0,0,0,0);const i=JAe(a,a.VERTEX_SHADER,function(e=.3){return`\n  attribute vec2 aVertexPosition;\n  uniform mat4 uModelViewMatrix;\n  varying vec2 vPosition;\n\n  void main(void) {\n    vec2 normalizedPosition = aVertexPosition / ${e.toFixed(2)};\n    gl_Position = uModelViewMatrix * vec4(aVertexPosition, 0.0, 1.0);\n    vPosition = normalizedPosition;\n  }\n`}(n)),r=JAe(a,a.FRAGMENT_SHADER,`\n  precision highp float;\n  varying vec2 vPosition;\n  uniform vec4 uBaseColor;\n  uniform float uOpacityFactor;\n  uniform float uOvalRatio;\n\n  void main(void) {\n    vec2 ovalPos = vec2(vPosition.x / uOvalRatio, vPosition.y);\n    float dist = length(ovalPos);\n\n    // Hard edge with slight anti-aliasing at boundary\n    float alpha = 1.0 - smoothstep(0.95, 1.0, dist);\n    alpha *= ${.6.toFixed(2)};\n    alpha *= uBaseColor.a * uOpacityFactor;\n\n    vec3 premultColor = uBaseColor.rgb * alpha;\n    gl_FragColor = vec4(premultColor, alpha);\n  }\n`);if(!i||!r)return{gl:a,programInfo:null,buffers:null,blurResources:null};const o=XAe(a,i,r);if(!o)return{gl:a,programInfo:null,buffers:null,blurResources:null};const l={program:o,attribLocations:{vertexPosition:a.getAttribLocation(o,"aVertexPosition")},uniformLocations:{baseColor:a.getUniformLocation(o,"uBaseColor"),modelViewMatrix:a.getUniformLocation(o,"uModelViewMatrix"),opacityFactor:a.getUniformLocation(o,"uOpacityFactor"),ovalRatio:a.getUniformLocation(o,"uOvalRatio")}},c=function(e,t=.3){const s=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,s);const n=[-t,-t,t,-t,t,t,-t,-t,t,t,-t,t];return e.bufferData(e.ARRAY_BUFFER,new Float32Array(n),e.STATIC_DRAW),{position:s,vertexCount:6}}(a,n);let d=null;const u=function(e,t=!0){const s=JAe(e,e.VERTEX_SHADER,"\n  attribute vec2 aVertexPosition;\n  attribute vec2 aTexCoord;\n  varying vec2 vTexCoord;\n\n  void main(void) {\n    gl_Position = vec4(aVertexPosition, 0.0, 1.0);\n    vTexCoord = aTexCoord;\n  }\n"),n=JAe(e,e.FRAGMENT_SHADER,function(e=!0){return`\n  precision highp float;\n  varying vec2 vTexCoord;\n  uniform sampler2D uTexture;\n  uniform vec2 uResolution;\n  uniform float uOffset; // Kawase offset (0.5, 1.5, 2.5, etc.)\n  uniform float uTime;\n  uniform float uIsLastPass; // 1.0 for final pass (apply noise), 0.0 otherwise\n\n  float random(vec2 st) {\n    return fract(sin(dot(st.xy, vec2(12.9898, 78.233))) * 43758.5453123);\n  }\n\n  void main(void) {\n    vec2 texelSize = 1.0 / uResolution;\n\n    // Kawase blur: sample 4 diagonal corners + center\n    vec4 result = texture2D(uTexture, vTexCoord) * 4.0;\n    result += texture2D(uTexture, vTexCoord + vec2(-uOffset, -uOffset) * texelSize);\n    result += texture2D(uTexture, vTexCoord + vec2(-uOffset,  uOffset) * texelSize);\n    result += texture2D(uTexture, vTexCoord + vec2( uOffset, -uOffset) * texelSize);\n    result += texture2D(uTexture, vTexCoord + vec2( uOffset,  uOffset) * texelSize);\n    vec4 blurred = result / 8.0;\n\n    // Apply noise on final pass only\n    ${e?`\n    if (uIsLastPass > 0.5) {\n      vec2 noiseCoord = gl_FragCoord.xy * 0.01;\n      float animSpeed = ${24..toFixed(1)};\n      float timeScale = floor(uTime * animSpeed) / animSpeed;\n\n      float noise = 0.0;\n      vec2 p1 = floor(noiseCoord * ${50..toFixed(1)}) + vec2(timeScale * 1.0, timeScale * 0.7);\n      noise += random(p1) * ${.5.toFixed(1)};\n      vec2 p2 = floor(noiseCoord * ${150..toFixed(1)}) + vec2(timeScale * 0.5, timeScale * 1.3);\n      noise += random(p2) * ${.3.toFixed(1)};\n      vec2 p3 = floor(noiseCoord * ${300..toFixed(1)}) + vec2(timeScale * 1.4, timeScale * 0.2);\n      noise += random(p3) * ${.2.toFixed(1)};\n\n      float grainThreshold = ${.75.toFixed(2)};\n      float grainIntensity = ${.15.toFixed(4)} * ${3..toFixed(1)};\n      float grainMask = smoothstep(grainThreshold, 0.99, noise);\n      vec3 grainColor = vec3(1.0) * grainMask * grainIntensity;\n\n      // Only add noise where there's content (based on alpha)\n      blurred.rgb += grainColor * blurred.a;\n    }\n    `:""}\n\n    gl_FragColor = blurred;\n  }\n`}(t));if(!s||!n)return null;const a=XAe(e,s,n);return a?{program:a,attribLocations:{vertexPosition:e.getAttribLocation(a,"aVertexPosition"),texCoord:e.getAttribLocation(a,"aTexCoord")},uniformLocations:{texture:e.getUniformLocation(a,"uTexture"),resolution:e.getUniformLocation(a,"uResolution"),offset:e.getUniformLocation(a,"uOffset"),time:e.getUniformLocation(a,"uTime"),isLastPass:e.getUniformLocation(a,"uIsLastPass")}}:null}(a,s),m=function(e){const t=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,t),e.bufferData(e.ARRAY_BUFFER,new Float32Array([-1,-1,1,-1,1,1,-1,-1,1,1,-1,1]),e.STATIC_DRAW);const s=e.createBuffer();return e.bindBuffer(e.ARRAY_BUFFER,s),e.bufferData(e.ARRAY_BUFFER,new Float32Array([0,0,1,0,1,1,0,0,1,1,0,1]),e.STATIC_DRAW),{position:t,texCoord:s,vertexCount:6}}(a),p=KAe(a,e.width,e.height),f=KAe(a,e.width,e.height);return u&&p.framebuffer&&p.texture&&f.framebuffer&&f.texture&&(d={blurProgram:u,framebuffer1:p.framebuffer,texture1:p.texture,framebuffer2:f.framebuffer,texture2:f.texture,quadBuffers:m}),{gl:a,programInfo:l,buffers:c,blurResources:d}}const tEe=e.memo(({analyzer:s=null,color:n="rgba(217, 119, 87, 1.0)",numCircles:a=7,blurEnabled:i=!0,noiseEnabled:r=true,smoothingEnabled:o=!0,circleBaseSize:l=.3,maxIntensity:c=1,minCircleOpacity:d=.05,maxCircleOpacity:u=.8,horizontalModeEnabled:m=!0,circleBaseY:p})=>{const f=e.useRef([0,0,0,0]),g=e.useRef([0,0,0,0]),h=e.useRef(.03);e.useEffect(()=>{g.current=YAe(n)},[n]);const C=e.useRef(i);C.current=i;const x=e.useRef(null),v=e.useRef(null),y=e.useRef(null),b=e.useRef(null),k=e.useRef(null),w=e.useRef(null),M=e.useRef(null),_=e.useRef(null),j=e.useRef(Array.from({length:7},()=>0)),S=e.useRef(Array.from({length:7},()=>0)),L=e.useRef(Array.from({length:7},()=>0)),N=e.useRef({numCircles:a,noiseEnabled:r,circleBaseSize:l}),I=e=>{M.current||(M.current=e);const t=e-M.current,n=y.current,i=b.current,r=k.current;if(!f.current.every((e,t)=>Math.abs(e-g.current[t])<.001)){const e=(l=f.current,x=g.current,N=h.current,[l[0]+(x[0]-l[0])*N,l[1]+(x[1]-l[1])*N,l[2]+(x[2]-l[2])*N,l[3]+(x[3]-l[3])*N]);f.current=[...e]}var l,x,N;if(s){_.current||(_.current=new Uint8Array(s.frequencyBinCount)),s.getByteFrequencyData(_.current);for(let e=0;e<a;e++){const t=3415/a,n=85+e*t,i=n+t,r=QAe(_.current,s,n,i);if(j.current[e]=r,o){const t=.92,s=.9;S.current[e]=t*S.current[e]+(1-t)*r,L.current[e]=s*L.current[e]+(1-s)*S.current[e]}else S.current[e]=r,L.current[e]=r;isFinite(S.current[e])||(S.current[e]=0),isFinite(L.current[e])||(L.current[e]=0)}}n&&i&&r&&function(e,t,s,n,a,i,r,o){const l=r?.numCircles||7,c=r?.maxIntensity||1,d=r?.minCircleOpacity??.05,u=r?.maxCircleOpacity??.8,m=r?.circleBaseY??0,p=a/1e3;o&&e.bindFramebuffer(e.FRAMEBUFFER,o.framebuffer1),e.clearColor(0,0,0,0),e.clear(e.COLOR_BUFFER_BIT),e.blendFunc(e.ONE,e.ONE_MINUS_SRC_ALPHA),e.bindBuffer(e.ARRAY_BUFFER,s.position),e.vertexAttribPointer(t.attribLocations.vertexPosition,2,e.FLOAT,!1,0,0),e.enableVertexAttribArray(t.attribLocations.vertexPosition),e.useProgram(t.program),e.uniform4f(t.uniformLocations.baseColor,n[0],n[1],n[2],n[3]),e.uniform1f(t.uniformLocations.opacityFactor,1),r?.horizontalModeEnabled?e.uniform1f(t.uniformLocations.ovalRatio,.75):e.uniform1f(t.uniformLocations.ovalRatio,1);for(let f=0;f<l;f++){let n;if(r?.horizontalModeEnabled){const e=.6;n=1===l?0:-e/2+f*e/(l-1)}else n=1===l?0:2===l?-.5+f:2*f/(l-1)-1;const a=.25+.15*f,o=.2+.12*f,g=f*Math.PI*.8,h=f*Math.PI*1.1,C=.04+.005*f,x=.07+.006*f,v=Math.sin(p*a+g)*C+.015*Math.sin(.13*p+1.3*f),y=Math.cos(p*o+h)*x+.02*Math.cos(.11*p+2.7*f);let b=1,k=1,w=1,M=1;const _=1;let j=0;if(void 0!==i[f]){const e=Math.min(i[f]/c,1);b=$Ae+.7999999999999999*e*.2,k=$Ae+.7999999999999999*e*1.5,w=d+Math.pow(e,1)*(u-d),j=.1*e,M=r?.horizontalModeEnabled?_/qAe:_}const S=m+y+j;e.uniform1f(t.uniformLocations.opacityFactor,w),e.uniform1f(t.uniformLocations.ovalRatio,M);const L=[b,0,0,0,0,k,0,0,0,0,1,0,n+v,S,0,1];e.uniformMatrix4fv(t.uniformLocations.modelViewMatrix,!1,L),e.drawArrays(e.TRIANGLES,0,s.vertexCount)}if(o){const{blurProgram:t,framebuffer1:s,texture1:n,framebuffer2:a,texture2:i,quadBuffers:r}=o,l=e.canvas.width,c=e.canvas.height,d=GAe;e.useProgram(t.program),e.disable(e.BLEND),e.bindBuffer(e.ARRAY_BUFFER,r.position),e.vertexAttribPointer(t.attribLocations.vertexPosition,2,e.FLOAT,!1,0,0),e.enableVertexAttribArray(t.attribLocations.vertexPosition),e.bindBuffer(e.ARRAY_BUFFER,r.texCoord),e.vertexAttribPointer(t.attribLocations.texCoord,2,e.FLOAT,!1,0,0),e.enableVertexAttribArray(t.attribLocations.texCoord),e.uniform2f(t.uniformLocations.resolution,l,c),e.uniform1f(t.uniformLocations.time,p),e.uniform1i(t.uniformLocations.texture,0);let u=n,m=a;for(let o=0;o<d.length;o++){const l=o===d.length-1;l&&(m=null),e.bindFramebuffer(e.FRAMEBUFFER,m),e.clear(e.COLOR_BUFFER_BIT),e.bindTexture(e.TEXTURE_2D,u),e.uniform1f(t.uniformLocations.offset,d[o]),e.uniform1f(t.uniformLocations.isLastPass,l?1:0),e.drawArrays(e.TRIANGLES,0,r.vertexCount),l||(m===a?(u=i,m=s):(u=n,m=a))}e.enable(e.BLEND)}}(n,i,r,f.current,t,L.current,{numCircles:a,maxIntensity:c,horizontalModeEnabled:m,minCircleOpacity:d,maxCircleOpacity:u,circleBaseY:p},C.current?w.current:null),v.current=requestAnimationFrame(I)};(N.current.numCircles!==a||N.current.noiseEnabled!==r||N.current.circleBaseSize!==l)&&(N.current={numCircles:a,noiseEnabled:r,circleBaseSize:l},j.current=Array.from({length:a},()=>0),S.current=Array.from({length:a},()=>0),L.current=Array.from({length:a},()=>0),y.current=null,b.current=null,k.current=null,w.current=null);return t.jsx("canvas",{ref:e=>{e?(x.current=e,(y.current||(()=>{const e=x.current;if(!e)return!1;const t=window.devicePixelRatio||1,s=e.getBoundingClientRect();e.width=s.width*t,e.height=s.height*t;const{gl:a,programInfo:i,buffers:o,blurResources:c}=eEe(e,{noiseEnabled:r,circleBaseSize:l});return!!(a&&i&&o)&&(y.current=a,b.current=i,k.current=o,w.current=c,f.current=YAe(n),g.current=[...f.current],!0)})())&&(v.current||(v.current=requestAnimationFrame(I)))):v.current&&(cancelAnimationFrame(v.current),v.current=null)},className:"absolute w-full h-full pointer-events-none","aria-hidden":"true"})});tEe.displayName="Visualizer";const sEe=e.memo(()=>{const e=qv(),s=Wv(),n=Cd(),a=$v(),i=y("cai_voice_dictation_parity")&&"speaking"!==n.status,r=i?s??e:e,o=i?"rgba(106, 155, 204, 1.0)":void 0;return t.jsx("div",{"data-testid":"voice-audio-visualizer",className:"absolute bottom-0 left-1/2 -translate-x-1/2 z-0 pointer-events-none transition-opacity duration-500",style:{width:"150%",aspectRatio:"4 / 1",opacity:a?1:0},children:a&&t.jsx(tEe,{analyzer:r,color:o,horizontalModeEnabled:!0,circleBaseY:-.2})})});sEe.displayName="VoiceAudioVisualizer";const nEe=e.memo(function({sessionId:e,entryPoint:t,iconOnly:s=!1}){return null}),aEe=e.createContext({isChorus:!1,v2:!1,showChin:!0,surfaces:{chat:!0,chatStatus:"available",chatHostLocked:!1,cowork:!1,coworkStatus:"blocked_by_platform",coworkUpsell:!1,coworkDisabled:null,code:!1,presentation:"chat-only",clamp:()=>"chat"},coworkComposerScope:void 0,target:{kind:"chat"},setTarget:()=>{}});function iEe(){return e.useContext(aEe)}const rEe=[],oEe=new Set;function lEe(e,t,s){return{selectedFolders:t?.length?[...t]:rEe,selectedProjectUuids:e?.length?new Set(e):oEe,spaceId:s}}const cEe={cowork:{agentRouteType:{type:"new"},isLocalAgentModeContext:!0,isCCDRoute:!1,currentCCDSessionId:null,isCCDLocalSession:!1},chat:{agentRouteType:null,isLocalAgentModeContext:!1,isCCDRoute:!1,currentCCDSessionId:null,isCCDLocalSession:!1},code:{agentRouteType:{type:"new"},isLocalAgentModeContext:!1,isCCDRoute:!0,currentCCDSessionId:null,isCCDLocalSession:!1}},dEe=e.memo(function({projectUuid:e}){const s=ys(e),n=(!zs(e)&&(s??0)>155e3?t.jsx("div",{className:"max-md:hidden",children:t.jsx(XS,{defaultMessage:"Large knowledge may slow responses",id:"d6mr4c6d+8"})}):void 0)??void 0;return n?t.jsx("div",{className:"text-text-400 text-xs ml-2",children:n}):null});function uEe(e){const t=e.split(" "),s=t.findIndex(e=>/^\d+(\.\d+)?$/.test(e));return s>0?{base:t.slice(0,s+1).join(" "),tail:t.slice(s+1).join(" ")}:{base:e,tail:""}}function mEe(e,s={}){if(e.label_override)return e.label_override;const n=ei(e.model??""),a=n?[n.base,n.suffix,n.ctx].filter(Boolean).join(" "):void 0,i=(e.name??"").replace(/^[^\p{L}\p{N}]+/u,"").replace("Claude","").trim(),r=s.serverName||a||i||(e.model??"");return s.mutedSuffix?function(e,s){const{base:n,tail:a}=uEe(e);return a?t.jsxs(t.Fragment,{children:[n,t.jsx("span",{className:s,children:` ${a}`})]}):e}(r,s.mutedClassName??"text-text-500"):r}function pEe({model:e,compact:s=!1,thinkingLabel:n}){const{nameFor:a}=Ae(),i=mEe(e,{serverName:a(e.model)}),{base:r,tail:o}=e.label_override?{base:i,tail:""}:uEe(i),l=[o,n].filter(Boolean).join(" \xb7 ");return t.jsx("div",{className:`inline-flex min-w-0 ${s?"text-xs":"text-[14px] h-[14px]"} leading-none items-baseline`,children:t.jsxs("div",{className:"min-w-0 overflow-x-clip text-ellipsis whitespace-nowrap select-none",children:[r,l&&t.jsx("span",{className:"ml-1 text-text-500",children:` ${l}`})]})})}function fEe(t){const{mode:s}=WJ(),n="credits"===s,a=y("overages_upsell_disabled"),i=Gv(Kv.BillingView),r=Yv(),o=Qv(),l=i&&(!r||o),c=n&&l&&(t?.enabled??!0),{data:d,isLoading:u}=Ii({enabled:c,noToast:!0}),{data:m,isLoading:p}=ri({enabled:c}),f=d?.isEnabled??!1,g=(m?.amount??0)>0,h=Jv(),{data:C,isLoading:x}=Xv({enabled:c&&h,noToast:!0}),v=h&&!C,b=xe(),k=xi(),w=b&&!k,M=n&&w&&(t?.enabled??!0),{state:_,isSettled:j}=bX({enabled:M}),{data:S,isLoading:L}=oi("limit_increase",["approved"],{enabled:M}),N=(S?.length??0)>0,I=w&&"pending"===_&&!N&&!a,T=n&&l&&!a&&(!f||!g),A=n&&(w&&"actionable"===_&&!N&&!a||I),E=(!c||!u&&!p)&&(!(c&&h)||!x)&&(!M||j&&!L),R=w?"request":v?"payment-setup":!f&&g?"enable":"buy",D=e.useCallback((e,t)=>{switch(R){case"request":return void HJ({targetModelId:e,currentModelId:t?.currentModelId,requestState:I?"pending":"actionable"});case"payment-setup":return void bJ(void 0,!1);case"enable":return void IJ({targetModelId:e});case"buy":SJ({targetModelId:e,requiresEnablement:!f,offerModelSwitch:t?.offerModelSwitch??!1})}},[R,I,f]),H=f&&g;return e.useMemo(()=>({isCreditsMode:n,shouldGate:T,memberCanRequest:A,isUsageCreditsFunded:H,creditsRequiredClickRoute:R,isBillingStateSettled:E,onCreditsRequiredClick:D}),[n,T,A,H,R,E,D])}const gEe="thinking_default_applied";function hEe(t){const s=o(),{account:n}=v(),a=n?.settings?.paprika_mode??null,{mutate:i}=Fa(),{models:r,modeOptionsFor:l,setThinking:c,storedThinking:d,isSettled:u}=Ae("chat"),m=e.useRef(!1);e.useLayoutEffect(()=>{if(m.current||!r.length||!u)return;if("/new"!==s&&"/"!==s)return;m.current=!0;const e=ey(l(t).find(e=>e.recommended)?.id);if(!e)return;const n=function(){try{return JSON.parse(localStorage.getItem(gEe)??"[]")}catch{return[]}}();if(n.includes(t))return;const o=()=>localStorage.setItem(gEe,JSON.stringify([...n,t]));null===a?(i({paprika_mode:e},{onSuccess:o}),c(nt(d,ty(e)))):o()},[r,l,u,t,a,i,s,c,d])}const CEe=DL(IL(),IL()),xEe={},vEe={getNoticeForModel:()=>{}};function yEe(t=!0){const s=Qa("claude_code_model_notices",xEe,CEe);return e.useMemo(()=>{if(!t)return vEe;const e=Object.entries(s).map(([e,t])=>[e.trim().toLowerCase(),t.trim()]).filter(([e,t])=>e.length>0&&t.length>0);return{getNoticeForModel(t){if(0===e.length||!t)return;const s=t.toLowerCase(),n=e.find(([e])=>e===s);return n?n[1]:e.find(([e])=>s.includes(e))?.[1]}}},[t,s])}function bEe(e){return t.jsx("div",{...e,className:"uppercase bg-pro text-pro rounded-full px-2 leading-4 h-4 text-[0.6rem] shrink-0"})}function kEe(e){return t.jsx("div",{...e,className:"shrink-0 rounded-full border border-strong px-2 py-px text-footnote text-muted"})}const wEe=t.jsx(XS,{defaultMessage:"Upgrade to Claude Pro to use our best and latest models",id:"GFsmqWxmnh"}),MEe=t.jsx(XS,{defaultMessage:"Upgrade to Claude Max to use our best and latest models",id:"9S5YZDQ09o"}),_Ee=t.jsx(XS,{defaultMessage:"Upgrade to Claude Pro to use our legacy models",id:"2VGJTJrr3b"}),jEe=t.jsx(XS,{defaultMessage:"Upgrade to Claude Max to use our legacy models",id:"t+whQh8PDG"});const SEe={model:"missing-model",name:"Legacy Model",description:"",inactive:!0};function LEe(e,t,s,n,a,i){return!t&&("upgrade_required"===i?.type||!!s&&(e!==n&&!a.includes(e)))}function NEe(e,t,s){return"max"!==e?.required_plan&&t?s.formatMessage({defaultMessage:"Upgrade",id:"0h/lPMeYkq"}):s.formatMessage({defaultMessage:"Upgrade to Max",id:"z+PtTMgM3T"})}function IEe({model:e,currentModelOption:s,defaultModel:n,opensInNewChat:a,onSelect:i,tag:r,tooltip:o,onUpgradeClick:l,onCreditsRequiredClick:c,showCreditsRequiredBadge:d,isRestrictedBySeatTier:u,isCapabilityIncompatible:m,isContextDowngrade:p,showDescription:f=!0,notice:g,reserveLeadingColumn:h=!1}){const C=JS(),x=my(),v=pe(),y=ry(),b=QJ(),k="credits"===JJ(),{nameFor:w,descriptionFor:M,badgeFor:_,tooltipFor:j,disabledReasonFor:S}=Ae(),L=e.model===s?.model,N=w(e.model),I=_(e.model),T=j(e.model),A=L?void 0:S(e.model),E=!!A&&"upgrade_required"!==A.type,R=mEe(e,{mutedSuffix:!0,serverName:N}),D=e.label_override?void 0:M(e.model)??e.description,H=!v,P=LEe(e.model,L,H,n,y,A),U=P?NEe(A,H,C):r,O=k&&P&&b(e.model),F=O?t.jsxs("span",{className:"inline-flex items-center gap-1",children:[t.jsx($L,{name:"Info",size:"xs","aria-hidden":!0}),U??t.jsx(XS,{defaultMessage:"Upgrade",id:"0h/lPMeYkq"})]}):U,V=!L&&(u||m||E||p),z=h?t.jsx("span",{"aria-hidden":!0,className:dt("size-[6px] shrink-0 rounded-full",g&&"bg-fill-accent")}):void 0,Z=P&&!L?V?t.jsx(py,{children:F}):t.jsx(py,{as:"button",onClick:e=>{e.stopPropagation(),l?.()},children:F}):U&&!L?t.jsx(bEe,{children:U}):L||!a||U?void 0:t.jsx(kEe,{children:t.jsx(XS,{...fy[x]})}),B=O?void 0:I?T?t.jsx(vN,{variant:I.variant,size:"xxs",icon:t.jsx($L,{name:"Info",size:"xs","data-testid":"model-config-tooltip-icon"}),className:"whitespace-nowrap","data-testid":"model-config-badge",children:I.message}):t.jsx(vN,{variant:I.variant,size:"xxs",truncate:!0,"data-testid":"model-config-badge",children:I.message}):d?t.jsx(vN,{variant:"neutral",size:"xxs",truncate:!0,children:t.jsx(hs,{id:"losuv6"})}):T?t.jsx($L,{name:"Info",size:"xs",className:"text-muted","aria-hidden":!0,"data-testid":"model-config-tooltip-icon"}):void 0,q=t.jsx(KL.Item,{onClick:()=>{V||(!c||L?L||U?(P||"PRO"===U)&&l?.():i(e):c())},disabled:V,checked:L,checkedRole:"radio",leading:z,description:f?D:void 0,trailing:Z,children:t.jsxs("span",{className:"inline-flex items-center gap-2 font-ui",children:[R,B]})});return t.jsx(iN,{content:E&&A?.message||o||T,side:"right",multiline:!0,children:V?t.jsx("div",{children:q}):q})}function TEe({models:e,currentModelOption:s,defaultModel:n,opensInNewChat:a,handleModelSelect:i,hasMultiModalContent:r,checkCapabilityConflicts:o=!1,coworkContextGuard:l=!1,isCatalogDisabled:c,showDescription:d=!0,reserveLeadingColumn:u=!1,enableModelNotices:m=!1}){const p=JS(),f=pe(),g=iy(),h=ry(),{getNoticeForModel:C}=yEe(m),{noticeFor:x,disabledReasonFor:v,entryFor:y,hasCapability:b,hasModel:k}=Ae(),w=!f,M=()=>{window.location.href="/upgrade"},_=fEe(),j=YJ(),S=QJ(),L="credits"===JJ(),N=e=>!(!o||!r)&&(!!k(e.model)&&!b(e.model,"mm_images")),I=e=>!(!l||!s)&&(!(!k(e.model)||!k(s.model))&&(!y(e.model).supports_1m_context&&!0===y(s.model).supports_1m_context)),T=(e,a,i)=>{if((g(e.model)||"seat_restricted"===i?.type)&&e.model!==s?.model)return t.jsx(XS,{defaultMessage:"This model is not available for your current plan",id:"FhHD7lBh9l"});if(N(e)&&e.model!==s?.model)return t.jsx(XS,{defaultMessage:"This model doesn't support images in this conversation.",id:"PCT4Z0B0qr"});if(I(e)&&e.model!==s?.model)return t.jsx(XS,{defaultMessage:"This model's context window is smaller than the current one. Switching would drop early task history that doesn't fit.",id:"fICbZqEZ6s"});if(LEe(e.model,e.model===s?.model,w,n,h,i)){if(L&&S(e.model))return t.jsx(hs,{id:"1x7ykpc",dangerouslyVisiblePublicValues:{model:GJ(e.model)}});const s="max"===i?.required_plan||!w;return e.overflow?s?jEe:_Ee:s?MEe:wEe}const r=x(e.model)??e.notice_text;return a&&r?`${a} \xb7 ${r}`:a||r},A=e.map(e=>{const o=v(e.model),l=g(e.model)||(c?.(e.model)??!1),m=N(e),f=I(e),x=C(e.model),y=j(e.model),b=(_.shouldGate||_.memberCanRequest)&&y;return t.jsx(IEe,{model:e,currentModelOption:s,defaultModel:n,opensInNewChat:a,onSelect:i,hasMultiModalContent:r,isCapabilityIncompatible:m,isContextDowngrade:f,tag:(()=>{if(LEe(e.model,e.model===s?.model,w,n,h,o))return NEe(o,w,p)})(),tooltip:T(e,x,o),onUpgradeClick:M,onCreditsRequiredClick:b?()=>_.onCreditsRequiredClick(e.model,{currentModelId:s?.model}):void 0,showCreditsRequiredBadge:_.isCreditsMode&&y,isRestrictedBySeatTier:l,showDescription:d,notice:x,reserveLeadingColumn:u},e.model)});return t.jsx(KL.Group,{children:A})}function AEe({conversationUuid:s,modelsConfig:n,isCatalogDisabled:a,currentModelOption:i,defaultModel:r,legacyModelName:o,extendedThinkingSetting:l,effectiveThinkingMode:c,hideThinkingMenu:d,hasEffortOptions:u,isHaystackProject:m,hasMultiModalContent:p,isNewConversation:f,enableModelNotices:g,effortSurface:h,effortOverride:C,thinkingSurface:x,popupSize:v,confirmModelSelect:b,confirmEffortSelect:k,confirmThinkingSelect:w,coworkContextGuard:M=!1,onSelect:_,onEffortSelect:j,onThinkingModeSelect:S}){const{track:L}=ae(),{nameFor:N}=Ae(),{allModelOptions:I}=n,T=i.model,A=!f,E=si(),R=e.useRef(!1);e.useEffect(()=>{R.current||(R.current=!0,L({event_key:"claudeai.model_selector.opened",model_surface:E}),mm(L,"home.model_selector.open",{model_surface:E,selector_variant:"list"}))},[L,E]);const D="cowork"===E?"cowork":"chat",H="chat"===E||"cowork"===E,{seedThinkingForModel:P}=Ae(D),{mainModels:U,overflowModels:O}=n,{getNoticeForModel:F}=yEe(g),V=I.some(e=>Boolean(F(e.model))),z=!f&&!d,Z=z?[i]:U,B=z?U.filter(e=>e.model!==T):[],q=z?O.filter(e=>e.model!==T):O,W=u&&(!d||Boolean(h)&&Boolean(x))&&!m,{toggleConversationSetting:$}=Qe({source:"modelSelector",refetchProjectSettingsOnMount:!1}),G=ay(s),K=iy(),Y=y("model_selector_enabled"),Q=pe(),J=ry(),X=sB(),{disabledReasonFor:ee}=Ae(),te=async e=>{if(e.model===T)return;const t=ee(e.model);if(K(e.model)||a(e.model))return;if(Y||!LEe(e.model,!1,!Q,r,J,t)){if(b&&!(await b(e)))return;L({event_key:"claudeai.model_selector.model_selected",model:e.model,previous_model:T,model_surface:E}),mm(L,"home.model_selector.select",{model_surface:E,selector_variant:"list"});const t=I.find(t=>t.model===e.model)?.thinking_modes,s=t?.map(e=>e.mode).filter(e=>null!==e),n=c&&s?.includes(c)?c:null;if(X(e.model)||$("compass_mode",null),$("paprika_mode",n),G({thinking_mode:null,effort_level:null}),H){const t=P(e.model),{setDraftEffort:s,setDraftMode:n}=cy.getState();s(D,dy(t)),n(D,uy(t))}_?.(e)}};return t.jsxs(t.Fragment,{children:[o&&t.jsx(KL.Header,{children:t.jsx(XS,{defaultMessage:"{legacyModel} is no longer available. New replies will use {defaultModel}.",id:"6gdsBMsCpe",values:{legacyModel:o,defaultModel:mEe(i,{serverName:N(i.model)})}})}),t.jsx(TEe,{models:Z,currentModelOption:i,defaultModel:r,opensInNewChat:!1,handleModelSelect:te,isCatalogDisabled:a,hasMultiModalContent:p,checkCapabilityConflicts:A,coworkContextGuard:M,reserveLeadingColumn:V,enableModelNotices:g}),(!d||x)&&!W&&t.jsx(oy,{currentModel:T,currentMode:l,conversationUuid:s,surface:x,reserveLeadingColumn:V,onSelect:S,confirmSelect:w}),(!d||h)&&t.jsx(ly,{currentModel:T,conversationUuid:s,surface:h,effortOverride:C,onSelect:j,confirmSelect:k,reserveLeadingColumn:V,popupSize:v,thinkingMenu:W?{currentModel:T,currentMode:l,conversationUuid:s,surface:x,confirmSelect:w}:void 0}),(z?B.length>0||q.length>0:O.length>0)&&(Qt()?t.jsxs(t.Fragment,{children:[t.jsx(KL.Separator,{}),t.jsx(KL.Header,{children:t.jsx(XS,{defaultMessage:"More models",id:"9yxvA9+l6B"})}),t.jsx(TEe,{models:z?[...B,...q]:O,currentModelOption:i,defaultModel:r,opensInNewChat:!1,handleModelSelect:te,isCatalogDisabled:a,hasMultiModalContent:p,checkCapabilityConflicts:A,coworkContextGuard:M,showDescription:!1,reserveLeadingColumn:V,enableModelNotices:g})]}):t.jsxs(t.Fragment,{children:[t.jsx(KL.Separator,{}),t.jsxs(KL.Submenu,{children:[t.jsx(KL.SubmenuTrigger,{children:t.jsxs("span",{className:"flex items-center gap-xs",children:[V&&t.jsx("span",{"aria-hidden":!0,className:"size-[6px] shrink-0"}),t.jsx(XS,{defaultMessage:"More models",id:"9yxvA9+l6B"})]})}),t.jsxs(KL.Popup,{"data-size":v,children:[B.length>0&&t.jsx(TEe,{models:B,currentModelOption:i,defaultModel:r,opensInNewChat:!1,handleModelSelect:te,isCatalogDisabled:a,hasMultiModalContent:p,checkCapabilityConflicts:A,coworkContextGuard:M,showDescription:!1,reserveLeadingColumn:V,enableModelNotices:g}),z&&B.length>0&&q.length>0&&t.jsx(KL.Separator,{}),z&&q.length>0&&t.jsx(TEe,{models:q,currentModelOption:i,defaultModel:r,opensInNewChat:!1,handleModelSelect:te,isCatalogDisabled:a,hasMultiModalContent:p,checkCapabilityConflicts:A,coworkContextGuard:M,showDescription:!1,reserveLeadingColumn:V,enableModelNotices:g}),!z&&t.jsx(TEe,{models:O,currentModelOption:i,defaultModel:r,opensInNewChat:!1,handleModelSelect:te,isCatalogDisabled:a,hasMultiModalContent:p,checkCapabilityConflicts:A,coworkContextGuard:M,showDescription:!1,reserveLeadingColumn:V,enableModelNotices:g})]})]})]}))]})}const EEe=e.memo(function({conversationUuid:s,initialModel:n,contextModel:a,onSelect:i,placement:r,hasMultiModalContent:o,open:l,onOpenChange:c,finalFocus:d,isNewConversation:u,disabled:p=!1,compact:f=!1,showChevron:g=!0,customTrigger:h,triggerClassName:C,align:x="end",asSubmenu:v=!1,submenuLabel:y,thinkingSurface:b,confirmModelSelect:k,confirmEffortSelect:w,confirmThinkingSelect:M,coworkContextGuard:_=!1,effortSurface:j,effortOverride:S,onEffortSelect:L,onThinkingModeSelect:N,compactMenu:I=!1,enableModelNotices:T=!1}){const A=JS(),E=si(),{nameFor:R,hasModel:D,models:H,disabledReasonFor:P,isNonSelectable:U,storedModel:O,fallbackModelId:F,isSettled:V}=Ae(),z=rr(s??null),Z=(s?z:null)??n??O,B=F??"",q="chat"!==E,W=e.useMemo(()=>{const e=H.map(e=>({model:e.id,name:e.name,overflow:"overflow"===e.section}));return{allModelOptions:e,mainModels:e.filter(e=>!e.overflow),overflowModels:e.filter(e=>e.overflow)}},[H]),$=(H.length,A5(),null),G=A.formatMessage({defaultMessage:"Loading models\u2026",id:"D90Mq4jCm6"}),K=A.formatMessage({defaultMessage:"Default model",id:"bV+YmcFCEb"}),Y=a??Z??B,{allModelOptions:Q}=W,J=e.useCallback(e=>U(e)&&"upgrade_required"!==P(e)?.type,[U,P]),X=0===Q.length?$:null,ee=p||"loading"===X;e.useEffect(()=>{"loading"===X&&l&&c?.(!1)},[X,l,c]);let te=Q.find(e=>e.model===Y);if(!te){const e=R(Y);te=e?{model:Y,name:e,description:""}:Q.find(e=>e.model===B)??SEe}const se=!!s&&!a&&H.length>0&&!D(Y),ne=se?(()=>{const e=ei(Y);return e?[e.base,e.suffix].filter(Boolean).join(" "):Y})():void 0;if(se){const e=O??B;te=Q.find(t=>t.model===e)??Q.find(e=>e.model===B)??SEe}const ae=te.model,ie=e.useRef(null),re=Fe("paprika_mode"),oe=Ke(re,s,ae,b);hEe(ae);const le=_p(),{activeMode:ce}=sy(ae,oe,b),{options:de,selected:ue}=ep(ae,s,{surface:j,effortOverride:S}),me=(j||!q?ue?.name:void 0)??(b||!q?ce?.label:void 0),pe=m(Ff)?52:0;if("undefined"==typeof window)return null;const fe=I?"sm":void 0,ge=t.jsx(AEe,{conversationUuid:s,modelsConfig:W,isCatalogDisabled:J,currentModelOption:te,defaultModel:B,legacyModelName:ne,extendedThinkingSetting:re,effectiveThinkingMode:oe,hideThinkingMenu:q,hasEffortOptions:de.length>0,isHaystackProject:le,hasMultiModalContent:o,isNewConversation:u,enableModelNotices:T,effortSurface:j,effortOverride:S,thinkingSurface:b,popupSize:fe,confirmModelSelect:k,confirmEffortSelect:w,confirmThinkingSelect:M,coworkContextGuard:_,onSelect:i,onEffortSelect:L,onThinkingModeSelect:N});return v?t.jsxs(KL.Submenu,{children:[t.jsx(KL.SubmenuTrigger,{children:t.jsxs("span",{className:"flex min-w-0 items-center justify-between gap-md",children:[t.jsx("span",{className:"truncate",children:y}),t.jsx("span",{className:"shrink-0 text-footnote text-muted",children:te&&mEe(te,{serverName:R(te.model)})})]})}),t.jsx(KL.Popup,{align:"end","data-size":fe,children:ge})]}):t.jsxs(t.Fragment,{children:["loading"===X&&t.jsx("span",{role:"status",className:"sr-only",children:G}),t.jsxs(KL.Root,{open:!ee&&l,onOpenChange:e=>{ee||c?.(e)},children:[h?t.jsx(KL.Trigger,{render:h}):t.jsx(sA.div,{initial:{opacity:0,scale:.6},animate:{opacity:1,scale:1},transition:{type:"spring",stiffness:700,damping:32,mass:.7},className:"overflow-hidden min-w-0 p-1 -m-1",children:t.jsx(KL.Trigger,{render:t.jsx(kt,{ref:ie,variant:"ghost",size:"sm","data-testid":"model-selector-dropdown","aria-label":"loading"===X?G:"empty"===X?K:V?A.formatMessage({defaultMessage:"Model: {name}",id:"0ZMx/tNv6m"},{name:[mEe(te,{serverName:R(te.model)}),me].filter(Boolean).join(" ")}):A.formatMessage({defaultMessage:"Select model",id:"e15QX1hh5v"}),append:g?t.jsx($L,{name:"CaretDown",customSize:12,className:"opacity-75 @max-[280px]:!hidden"}):void 0,className:dt(ny,"max-w-full",l&&"!text-text-100",f&&"!px-1.5 !h-7 !min-h-0 !text-text-300 compact:!h-6",C),disabled:ee}),children:"loading"===X?t.jsxs("span",{className:"flex items-center gap-1.5 text-text-400",children:[t.jsx(wN,{size:"sm"}),t.jsx("span",{className:"truncate",children:G})]}):"empty"===X?t.jsx("span",{className:"text-text-400 truncate",children:K}):V?t.jsx(pEe,{model:te,compact:f,thinkingLabel:me}):null})}),t.jsx(KL.Popup,{side:"bottom"===r?"top":"bottom",sideOffset:4,align:x,collisionPadding:{top:pe},finalFocus:d,"data-size":fe,children:ge})]})]})});function REe({isOpen:s,onClose:n,onConfirm:a,isLoading:i=!1}){const r=e.useCallback(e=>{"Enter"!==e.key||i||a()},[a,i]);return e.useEffect(()=>(s&&window.addEventListener("keydown",r),()=>{window.removeEventListener("keydown",r)}),[s,r]),t.jsx(lN.Root,{open:s,onOpenChange:e=>!e&&n(),children:t.jsxs(lN.Popup,{size:"md",children:[t.jsx(lN.Header,{showClose:!1,children:t.jsx(XS,{defaultMessage:"Want to stop researching?",id:"H+/TRHeeuc"})}),t.jsx(lN.Description,{children:t.jsx(XS,{defaultMessage:"This can\u2019t be undone. If you want to research this topic again, you can ask in this chat or start a new session.",id:"RuV1dagwp6"})}),t.jsxs(lN.Footer,{children:[t.jsx(rN,{variant:"secondary",onClick:n,children:t.jsx(XS,{defaultMessage:"Keep researching",id:"ODR/0L48DC"})}),t.jsx(rN,{variant:"danger",onClick:a,disabled:i,autoFocus:!0,children:t.jsx(XS,{defaultMessage:"Stop research",id:"l3tljn/kXe"})})]})]})})}const DEe={stiffness:300,damping:20,mass:.5},HEe={stiffness:150,damping:15,mass:.8},PEe=[6,10,16,10,16,6],UEe=1.2,OEe=[1,2,4],FEe=[1,2,4],VEe=[1.5,2,1.5],zEe=[.06,.04,.06];function ZEe({size:s=20,minHeight:n=6,maxHeight:a=16,minFreq:i=200,maxFreq:r=4e3,spring:o=DEe,mode:l,mediaStream:c,isMuted:d=!1,isHovered:u=!1,isActive:m,className:p}){const f=l??(m?"active":"idle"),g=e.useRef([]),h=e.useMemo(()=>Math.max(21.2,a),[a]),C=e.useMemo(()=>{const e=(h-21.2)/2;return Array.from({length:6},(t,s)=>e+4*s+.6)},[h]),x=e.useMemo(()=>{const e=(h-20)/2;return Array.from({length:3},(t,s)=>e+8*s+2)},[h]),v=e.useMemo(()=>{const e=(h-23)/2;return Array.from({length:3},(t,s)=>e+9*s+2.5)},[h]),[y]=e.useState(()=>Array.from({length:6},(e,t)=>lA(PEe[t]))),[b]=e.useState(()=>Array.from({length:6},()=>lA(1))),k=e.useRef(null),w=e.useRef(null),M=e.useRef(null),_=e.useRef(null),j=e.useRef(null),S=e.useRef(0);function L(){j.current=null,k.current&&(k.current.close(),k.current=null),w.current=null,M.current=null,_.current=null}e.useEffect(()=>{if("active"===f){c&&function(e){if(!k.current)try{j.current=e;const t=new AudioContext;k.current=t;const s=t.createAnalyser();s.fftSize=512,s.smoothingTimeConstant=.5,s.minDecibels=-70,s.maxDecibels=-10,w.current=s;const n=t.createMediaStreamSource(e);n.connect(s),M.current=n,_.current=new Uint8Array(s.frequencyBinCount)}catch{}}(c);for(let e=0;e<6;e++)FEe.includes(e)||y[e]?.set(0)}else k.current&&L(),"idle"===f&&(y.forEach((e,t)=>{const s=PEe[t%PEe.length];e.set(s)}),b.forEach(e=>e.set(1))),"connecting"===f&&(S.current=performance.now());return()=>{L()}},[f,c]),e.useEffect(()=>{if(M.current&&w.current)if(d){M.current.disconnect(w.current);for(let e=0;e<6;e++)y[e]?.set(FEe.includes(e)?n:0)}else M.current.connect(w.current)},[d,n,y]);const N=e.useCallback(()=>{if("idle"===f){g.current.forEach(clearTimeout),g.current=[];for(let e=0;e<6;e++){const t=setTimeout(()=>{const t=PEe[e],s=y[e];if(!s)return;s.set(t+4);const n=setTimeout(()=>{s.set(t)},150);g.current.push(n)},50*e);g.current.push(t)}}},[f,y]),I=e.useCallback(()=>{N()},[N]),T=e.useRef(u);e.useEffect(()=>{u&&!T.current&&N(),T.current=u},[u,N]),e.useEffect(()=>()=>{g.current.forEach(clearTimeout),g.current=[]},[f]);const A="connecting"===f?HEe:o;return t.jsxs("svg",{width:s,height:s,viewBox:`0 0 ${h} ${h}`,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:dt("inline-block overflow-visible",p),onMouseEnter:I,children:["idle"!==f&&t.jsx(BEe,{mode:f,motionValues:y,opacityValues:b,analyserRef:w,dataArrayRef:_,audioContextRef:k,pulseStartTimeRef:S,minHeight:n,maxHeight:a,minFreq:i,maxFreq:r}),C.map((e,s)=>{const n=FEe.indexOf(s),a=n>=0?x[n]:e,i=OEe.indexOf(s),r=i>=0?v[i]:e;return t.jsx(WEe,{idleX:e,activeX:a,connectingX:r,mode:f,motionValue:y[s],opacityValue:b[s],viewboxSize:h,spring:A},s)})]})}function BEe({mode:e,motionValues:t,opacityValues:s,analyserRef:n,dataArrayRef:a,audioContextRef:i,pulseStartTimeRef:r,minHeight:o,maxHeight:l,minFreq:c,maxFreq:d}){return cA(()=>{if("connecting"===e){const e=1800,n=(performance.now()-r.current)%e/e,a=.35,i=1;for(let r=0;r<6;r++){const e=OEe.indexOf(r);if(e>=0){let o;if(t[r]?.set(5),n<.6){const t=.2*e;if(n<t)o=a;else if(n<t+.2){o=a+(i-a)*((n-t)/.2)}else o=i}else{o=i-(i-a)*((n-.6)/.4)}s[r]?.set(o)}else t[r]?.set(0),s[r]?.set(0)}return}if(!n.current||!a.current||!i.current)return;n.current.getByteFrequencyData(a.current);const u=function(e,t,s,n){const a=e/t,i=Math.ceil(s/a),r=Math.floor(n/a),o=[];for(let l=0;l<3;l++){const e=l/3,t=(l+1)/3,c=s*Math.pow(n/s,e),d=s*Math.pow(n/s,t),u=Math.max(i,Math.floor(c/a)),m=Math.min(r,Math.ceil(d/a));o.push([u,Math.max(u+1,m)])}return o}(i.current.sampleRate,n.current.fftSize,c,d);for(let e=0;e<6;e++){const t=FEe.includes(e);s[e]?.set(t?1:0)}for(let e=0;e<3;e++){const s=FEe[e],[n,i]=u[e];let r=0,c=0;for(let e=n;e<i;e++)r+=a.current[e],c++;const d=(c>0?r/c:0)/255,m=zEe[e]??.08,p=Math.max(0,d-m)/(1-m),f=VEe[e]??1,g=Math.min(1,1.5*Math.pow(p,.7)*f),h=o+(l-o)*g;t[s]?.set(h)}}),null}const qEe={stiffness:200,damping:25,mass:.5},WEe=e.memo(function({idleX:e,activeX:s,connectingX:n,mode:a,motionValue:i,opacityValue:r,viewboxSize:o,spring:l}){const c=iA(i,l),d=o/2;let u=e,m=UEe;"active"===a?(u=s,m=4):"connecting"===a&&(u=n,m=5);const p=dA(c,e=>Math.max(0,e)),f=dA(c,()=>u-m/2),g=dA(c,e=>d-e/2),h=m/2,C=iA(r,{stiffness:300,damping:30});return t.jsx(sA.rect,{x:f,y:g,height:p,fill:"currentColor",fillOpacity:C,initial:!1,animate:{width:m,rx:h,ry:h},transition:{width:qEe,rx:qEe,ry:qEe}})});function $Ee(){e.useEffect(()=>{Mue.initialize()},[])}function GEe(){return e.useCallback(e=>{Mue.selectMic(e)},[])}function KEe(){e.useEffect(()=>{Mue.initialize()},[])}const YEe=e.memo(({micStream:s,isMuted:n})=>{const a=e.useRef(null),i=e.useRef(0);return e.useEffect(()=>{if(!s)return void(a.current&&(a.current.style.width="0%"));const e=new AudioContext,t=e.createMediaStreamSource(s),n=e.createAnalyser();n.fftSize=256,n.smoothingTimeConstant=.5,t.connect(n);const r=new Uint8Array(n.frequencyBinCount),o=()=>{n.getByteFrequencyData(r);let e=0;for(let n=0;n<r.length;n++)e+=r[n];const t=e/r.length,s=Math.min(1,t/128);a.current&&(a.current.style.width=100*s+"%"),i.current=requestAnimationFrame(o)};return i.current=requestAnimationFrame(o),()=>{cancelAnimationFrame(i.current),t.disconnect(),n.disconnect(),e.close()}},[s]),t.jsx("div",{className:dt("h-1.5 flex-1 rounded-full overflow-hidden",n?"bg-danger":"bg-alpha-1"),children:t.jsx("div",{ref:a,className:dt("h-full rounded-full transition-[width] duration-75 ease-out",n?"bg-fill-danger":"bg-fill-accent")})})});function QEe(e){return e.some(e=>"default"!==e.deviceId)?e.filter(e=>"default"!==e.deviceId):e}function JEe(e){return(e.label||e.deviceId).replace(/\s*\([0-9a-f]{4}:[0-9a-f]{4}\)$/i,"")}YEe.displayName="VolumeMeter";const XEe=e.memo(({showTrigger:s,isMuted:n})=>{const a=JS(),i="undefined"!=typeof window&&"undefined"!=typeof AudioContext&&"setSinkId"in AudioContext.prototype,[r,o]=e.useState(!1);$Ee(),KEe();const l=gy(),c=hy(),d=Cy(),u=xy(),m=vy(),p=GEe(),f=e.useCallback(e=>{Mue.selectSpeaker(e)},[]),g=e.useCallback(e=>{p(e)},[p]),h=e.useCallback(e=>{f(e)},[f]),C=QEe(l),x=QEe(d),v=c??C[0]?.deviceId??"",y=u??x[0]?.deviceId??"",b=a.formatMessage({defaultMessage:"Speakers",id:"QN7t90w3YS",description:"Label for speaker output device section in voice mode device selector"}),k=a.formatMessage({defaultMessage:"Microphone",id:"hzwYtlo7+h",description:"Accessible label for the microphone device section in voice mode device selector"}),w=a.formatMessage({defaultMessage:"Audio settings",id:"q79ToqmdbE",description:"Tooltip for the voice mode audio device selector button"});return 0===l.length&&0===d.length?null:t.jsx("div",{className:"h-8 w-8",children:t.jsxs(KL.Root,{open:r,onOpenChange:o,children:[t.jsx(KL.Trigger,{render:t.jsx("button",{type:"button",className:dt("h-8 w-8 rounded-lg","flex items-center justify-center",s||r?"opacity-100":"opacity-0","transition-all duration-200",n?"text-danger-200 bg-danger-900":"text-text-300 hover:bg-bg-400 data-[popup-open]:bg-bg-400"),"aria-label":w,children:t.jsx(iN,{content:r?"":w,side:"top",align:"center",children:t.jsx("span",{className:"flex items-center justify-center w-full h-full",children:r?t.jsx(LL,{size:16}):t.jsx(sP,{size:16})})})})}),t.jsxs(KL.Popup,{side:"top",align:"center",sideOffset:8,children:[i&&d.length>0&&t.jsxs(t.Fragment,{children:[t.jsxs(KL.Group,{children:[t.jsxs(KL.GroupLabel,{className:"flex items-center gap-sm",children:[t.jsx($L,{name:"Speaker",size:"sm"}),t.jsx("span",{children:b})]}),x.map(e=>t.jsx(KL.Item,{checked:e.deviceId===y,checkedRole:"radio",onClick:()=>h(e.deviceId),children:JEe(e)},e.deviceId))]}),t.jsx(KL.Separator,{})]}),t.jsxs(KL.Group,{children:[t.jsxs(KL.GroupLabel,{className:"flex items-center gap-sm",children:[n?t.jsx($L,{name:"MicrophoneSlash",size:"sm",className:"text-danger"}):t.jsx($L,{name:"Microphone",size:"sm"}),t.jsx("span",{className:"sr-only",children:k}),t.jsx(YEe,{micStream:m,isMuted:n})]}),C.map(e=>t.jsx(KL.Item,{checked:e.deviceId===v,checkedRole:"radio",onClick:()=>g(e.deviceId),children:JEe(e)},e.deviceId))]})]})]})})});XEe.displayName="VoiceDeviceSelector";const eRe={type:"spring",stiffness:600,damping:30},tRe=dt("h-8 rounded-lg overflow-hidden","flex items-center justify-center","font-base-bold");function sRe({state:s,micStream:n,isMuted:a=!1,micPermissionGranted:i=!1,errorResetDelay:r=1500,buttonRef:o,startGuardMs:l=0,onStartSuppressed:c,onStart:d,onEnd:u,onCancel:m,onToggleMute:p,onErrorReset:f}){const g=JS(),[h,C]=e.useState(!1),x=e.useRef(null),v=e.useCallback(e=>{x.current=e,o&&(o.current=e)},[o]),y=e.useRef(s),b=e.useRef(null);e.useEffect(()=>{b.current=performance.now()},[]);const k=e.useMemo(()=>({idle:"",connecting:g.formatMessage({defaultMessage:"Cancel",id:"6GmKQVHTeq",description:"Voice mode button label when connecting"}),active:g.formatMessage({defaultMessage:"Stop",id:"VQu/I54F43",description:"Voice mode button label when active"}),error:g.formatMessage({defaultMessage:"Error",id:"0h/2FwRZQr",description:"Voice mode button label when in error state"})}),[g]),w=a?g.formatMessage({defaultMessage:"Turn on microphone",id:"+HHtgM9meO",description:"Tooltip for unmuting microphone in voice mode"}):g.formatMessage({defaultMessage:"Turn off microphone",id:"HSeHSRkNfp",description:"Tooltip for muting microphone in voice mode"}),M=g.formatMessage({defaultMessage:"Use voice mode",id:"APL9XCnYQZ",description:"Tooltip for starting voice mode"});e.useEffect(()=>{const e=y.current;y.current=s,e!==s&&("active"===s?HAe("voice-mode-ready"):"idle"!==s||"active"!==e&&"connecting"!==e?"error"===s&&HAe("disconnected"):HAe("exit-voice-mode"))},[s]),e.useEffect(()=>{x.current&&("error"===s?uA(x.current,{x:[0,-6,6,-6,0]},{duration:.3,ease:"easeInOut",times:[0,.25,.5,.75,1],delay:.1}):"active"===s&&uA(x.current,{scale:[1,1.15,1]},{duration:.3,ease:"easeInOut",times:[0,.5,1]}))},[s]),e.useEffect(()=>{if("error"!==s)return;const e=setTimeout(()=>{f?.()},r);return()=>clearTimeout(e)},[s,r,f]);const _=e.useCallback(()=>{C(!0)},[]),j=e.useCallback(()=>{C(!1)},[]),S=e.useCallback(()=>{if("idle"===s){const e=null===b.current?0:performance.now()-b.current;if(e<l)return void c?.(Math.round(e));d()}else"connecting"===s?m?.():"active"===s?u():"error"===s&&f?.()},[s,l,d,c,u,m,f]),L=dt(tRe,"transition-colors duration-200","idle"===s&&"hover:bg-bg-300","connecting"===s&&"bg-accent-900/50 dark:bg-accent-900 text-accent-000","active"===s&&"bg-accent-900 text-accent-000","error"===s&&"bg-danger-200 text-oncolor-100"),N=e.useCallback(()=>{p?.()},[p]),[I,T]=e.useState(!1),A=e.useCallback(()=>{T(!0)},[]),E=e.useCallback(()=>{T(!1)},[]);return t.jsxs("div",{className:"flex items-center gap-1 shrink-0",children:[t.jsxs("div",{className:dt("flex items-center rounded-lg empty:hidden","transition-colors duration-200",("active"===s||"connecting"===s&&i)&&(a?"hover:bg-danger-900 has-[[data-popup-open]]:bg-danger-900":"hover:bg-bg-200 has-[[data-popup-open]]:bg-bg-200")),onMouseEnter:A,onMouseLeave:E,children:[t.jsx(nA,{children:("active"===s||"connecting"===s&&i)&&t.jsx(sA.div,{initial:{scale:0,opacity:0,width:0},animate:{scale:1,opacity:1,width:32},exit:{scale:0,opacity:0,width:0},transition:eRe,children:t.jsx(XEe,{showTrigger:I,isMuted:a})})}),t.jsx(nA,{children:("active"===s||"connecting"===s&&i)&&t.jsx(iN,{content:w,side:"top",align:"center",children:t.jsx(sA.button,{initial:{scale:0,opacity:0,width:0},animate:{scale:1,opacity:1,width:32},exit:{scale:0,opacity:0,width:0},transition:eRe,onClick:N,"aria-label":w,className:dt("h-8 w-8 rounded-lg","flex items-center justify-center","transition-colors duration-200",a?"bg-danger-200 text-oncolor-100 hover:bg-danger-000":"text-text-300 hover:bg-bg-400"),whileTap:{scale:.95},children:a?t.jsx(iD,{size:20,weight:"regular"}):t.jsx(rD,{size:20,weight:"regular"})})})})]}),t.jsx(iN,{content:"idle"===s?M:"",side:"top",align:"center",children:t.jsxs(sA.button,{ref:v,onClick:S,onMouseEnter:_,onMouseLeave:j,className:L,initial:!1,animate:{paddingLeft:"idle"===s?6:"error"===s?8:10,paddingRight:"idle"===s?6:10},transition:eRe,whileTap:{scale:.97},"aria-label":"idle"===s?M:void 0,children:[t.jsx(nRe,{state:s,micStream:n,isMuted:a,isHovered:h}),t.jsx(aRe,{state:s,labels:k})]})})]})}function nRe({state:e,micStream:s,isMuted:n,isHovered:a}){return t.jsx(sA.span,{className:"h-5 relative flex items-center justify-center",initial:!1,animate:{width:20},transition:eRe,children:t.jsx(nA,{mode:"popLayout",initial:!1,children:t.jsx(sA.span,{className:"absolute inset-0 flex items-center justify-center",initial:{y:0,scale:.5,opacity:0,filter:"blur(4px)"},animate:{y:0,scale:1,opacity:1,filter:"blur(0px)"},exit:{y:0,scale:.5,opacity:0,filter:"blur(4px)"},transition:{duration:.2,ease:"easeInOut"},children:"error"===e?t.jsx(Gt,{className:"w-5 h-5"}):t.jsx(ZEe,{mode:"connecting"===e?"connecting":"active"===e?"active":"idle",mediaStream:s,isMuted:n,isHovered:a})},"error"===e?"warning":"bars")})})}function aRe({state:s,labels:n}){const[a,i]=e.useState(0),r=e.useRef(null),[o,l]=e.useState("idle"===s),c=n[s];return e.useEffect(()=>{const e=r.current;if(!e)return;let t=!1;const s=new ResizeObserver(e=>{const s=e[0],n=s.borderBoxSize?.[0]?.inlineSize??s.contentRect.width;i(n),t||(t=!0,l(!0))});return s.observe(e),()=>s.disconnect()},[]),t.jsxs(t.Fragment,{children:[t.jsx("span",{ref:r,className:"absolute invisible whitespace-nowrap pl-2","aria-hidden":!0,children:c}),o?t.jsx(sA.span,{className:"overflow-hidden",initial:!1,animate:{width:"idle"===s?0:a},transition:eRe,children:t.jsx(nA,{mode:"popLayout",initial:!1,children:"idle"!==s&&t.jsx(sA.span,{className:"whitespace-nowrap pl-2",initial:{y:0,opacity:0,filter:"blur(6px)"},animate:{y:0,opacity:1,filter:"blur(0px)"},exit:{y:0,opacity:0,filter:"blur(6px)"},transition:{duration:.2,ease:"easeInOut"},children:c},s)})}):t.jsx("span",{children:"idle"!==s&&t.jsx("span",{className:"whitespace-nowrap pl-2",children:c})})]})}function iRe({open:e,onOpenChange:s,anchor:n,feature:a}){const i=JS(),r=m({platform:"mac"}),o=m({platform:"windows"});return t.jsx(yN.Root,{open:e,onOpenChange:s,children:t.jsxs(yN.Popup,{anchor:n,side:"top",align:"center",finalFocus:n,className:"flex flex-col gap-sm",children:[t.jsx(yN.Title,{className:"text-body font-medium",children:t.jsx(XS,{defaultMessage:"Microphone access is blocked",id:"k6h211zLcx",description:"Title of the popover shown when mic permission is denied"})}),t.jsx(yN.Description,{className:"text-caption text-secondary",children:r?t.jsx(XS,{defaultMessage:"To use {feature, select, voice {voice} other {dictation}}, open System Settings, go to Privacy and Security, select Microphone, and turn on Claude.",id:"MovOrtMoy9",description:"Mic-blocked guidance body for the macOS desktop app",values:{feature:a}}):o?t.jsx(XS,{defaultMessage:"To use {feature, select, voice {voice} other {dictation}}, open Settings, go to Privacy and security, select Microphone, and allow Claude.",id:"WeL1huOh9/",description:"Mic-blocked guidance body for the Windows desktop app",values:{feature:a}}):t.jsx(XS,{defaultMessage:"To use {feature, select, voice {voice} other {dictation}}, select the site settings icon in your browser's address bar and allow the microphone.",id:"8pB3pA45eO",description:"Mic-blocked guidance body for web browsers",values:{feature:a}})}),t.jsx(yN.Close,{render:t.jsx(rN,{size:"sm",variant:"secondary",className:"self-end",children:i.formatMessage({defaultMessage:"Got it",id:"wuRF9EdeGr",description:"Button to dismiss the mic-permission guidance popover"})})})]})})}function rRe(){return y("cai_voice_mic_permission_guidance")}function oRe({size:e=16}){return t.jsx("div",{style:{width:e,height:e,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:t.jsx("svg",{width:1.25*e,height:1.25*e,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{flexShrink:0},"aria-hidden":"true",children:t.jsx("path",{d:"M13.7301 6.24992C13.5196 3.91388 11.5562 2.08325 9.16537 2.08325C6.63406 2.08325 4.58203 4.13528 4.58203 6.66659C4.58203 7.09993 4.64217 7.51923 4.75456 7.91659M10.4154 9.58325V6.66659C10.4154 5.97623 9.8557 5.41659 9.16537 5.41659C8.47495 5.41659 7.91534 5.97623 7.91534 6.66659V11.3193L7.86533 11.2947C6.92861 10.8345 6.06941 11.2593 5.68046 12.2149L5.50793 12.6388L8.02532 16.3497C8.68937 17.3286 9.8072 17.9165 11.0043 17.9165H11.7734C14.2451 17.9165 16.2487 15.9475 16.2487 13.5184V12.0832C16.2487 10.6258 15.0465 9.58325 13.5636 9.58325H10.4154Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})})})}const lRe=e.memo(({micStream:s})=>{const n=e.useRef(null),a=e.useRef(0);return e.useEffect(()=>{if(!s)return void(n.current&&(n.current.style.width="0%"));const e=new AudioContext,t=e.createMediaStreamSource(s),i=e.createAnalyser();i.fftSize=256,i.smoothingTimeConstant=.5,t.connect(i);const r=new Uint8Array(i.frequencyBinCount),o=()=>{i.getByteFrequencyData(r);let e=0;for(let n=0;n<r.length;n++)e+=r[n];const t=e/r.length,s=Math.min(1,t/128);n.current&&(n.current.style.width=100*s+"%"),a.current=requestAnimationFrame(o)};return a.current=requestAnimationFrame(o),()=>{cancelAnimationFrame(a.current),t.disconnect(),i.disconnect(),e.close()}},[s]),t.jsx("div",{className:"h-1.5 flex-1 rounded-full overflow-hidden bg-alpha-1",children:t.jsx("div",{ref:n,className:"h-full rounded-full transition-[width] duration-75 ease-out bg-fill-accent"})})});function cRe(){const e=JS(),s=by(),n=e.formatMessage({defaultMessage:"Hold to record",id:"7Wgx3W1JIr",description:"Label for the hold-to-record toggle in dictation settings"});return t.jsx(KL.Item,{icon:t.jsx(oRe,{size:16}),role:"menuitemcheckbox","aria-checked":s,keepOpen:!0,onClick:()=>zg.getState().setHoldToRecordEnabled(!s),trailing:t.jsx("span",{inert:!0,children:t.jsx(fN,{size:"sm",checked:s})}),children:n})}lRe.displayName="VolumeMeter";const dRe=e.memo(({showTrigger:s,onSwitchDevice:n,onOpenChange:a,compact:i=!1,triggerSizeClass:r,caretIconSize:o})=>{const l=JS(),[c,d]=e.useState(!1),u=e.useCallback(e=>{d(e),a?.(e)},[a]);$Ee();const m=gy(),p=hy(),f=yy(),g=GEe(),h=e.useCallback(e=>{g(e),n(e)},[g,n]),C=l.formatMessage({defaultMessage:"Settings",id:"wNRnvQMP6H",description:"Tooltip for the dictation microphone device selector button"}),x=l.formatMessage({defaultMessage:"Microphone",id:"pf7UEyrvB8",description:"Accessible label for the microphone device section in dictation settings"}),v=m.filter(e=>e.label||e.deviceId&&"default"!==e.deviceId),y=p??v[0]?.deviceId??null,b=function(t,s,n){const[a,i]=e.useState(null),r=e.useRef(null);return e.useEffect(()=>{if(!t||n)return void(r.current&&(r.current.getTracks().forEach(e=>e.stop()),r.current=null,i(null)));let e=!1;return(async()=>{try{const t={audio:{echoCancellation:!1,noiseSuppression:!1,autoGainControl:!1,...s?{deviceId:{exact:s}}:{}}},n=await navigator.mediaDevices.getUserMedia(t);if(e)return void n.getTracks().forEach(e=>e.stop());r.current=n,i(n)}catch{}})(),()=>{e=!0,r.current&&(r.current.getTracks().forEach(e=>e.stop()),r.current=null,i(null))}},[t,s,n]),n??a}(c,y,f);if(0===m.length)return null;const k=r??(i?"h-5 w-5":"h-7 w-7"),w=o??12;return t.jsx("div",{className:k,children:t.jsxs(KL.Root,{open:c,onOpenChange:u,children:[t.jsx(KL.Trigger,{render:t.jsx("button",{type:"button",className:dt(k,"rounded-lg","flex items-center justify-center",s||c?"opacity-100":"opacity-0","transition-all duration-200",i?"text-accent-000":"text-text-300 hover:bg-alpha-2 data-[popup-open]:bg-alpha-2"),"aria-label":C,children:t.jsx(iN,{content:c?"":C,side:"top",align:"center",children:t.jsx("span",{className:"flex items-center justify-center w-full h-full",children:t.jsx($L,{name:"CaretDown",customSize:w})})})})}),t.jsxs(KL.Popup,{align:"center",sideOffset:8,children:[t.jsxs(KL.Group,{children:[t.jsxs(KL.GroupLabel,{className:"flex items-center gap-sm",children:[t.jsx($L,{name:"Microphone",size:"sm",bold:!0}),t.jsx("span",{className:"sr-only",children:x}),t.jsx(lRe,{micStream:b})]}),v.map(e=>t.jsx(KL.Item,{checked:e.deviceId===y,checkedRole:"radio",onClick:()=>h(e.deviceId),children:e.label||e.deviceId},e.deviceId))]}),t.jsx(KL.Separator,{}),t.jsx(cRe,{})]})]})})});dRe.displayName="DictationDeviceSelector";const uRe={base:{button:"h-7 rounded-lg",caretSlot:"w-7",waveSlot:"w-5 h-5",iconBox:"w-7 h-7",padIdle:"px-1.5",padActive:"pl-2 pr-0",iconPx:20,idleCaret:"h-7 w-7",idleCaretIconPx:12,pillCaret:"h-5 w-5",pillCaretIconPx:12,groupRadius:"rounded-lg"},baseInlineUx:{button:"h-8 rounded-lg",caretSlot:"w-8",waveSlot:"w-5 h-5",iconBox:"w-8 h-8",padIdle:"px-1.5",padActive:"pl-2 pr-0",iconPx:20,idleCaret:"h-8 w-8",idleCaretIconPx:12,pillCaret:"h-5 w-5",pillCaretIconPx:12,groupRadius:"rounded-lg"},small:{button:"h-5 rounded-md",caretSlot:"w-5",waveSlot:"w-4 h-4",iconBox:"w-5 h-5",padIdle:"px-1",padActive:"pl-1.5 pr-0",iconPx:12,idleCaret:"h-5 w-5",idleCaretIconPx:12,pillCaret:"h-4 w-4",pillCaretIconPx:12,groupRadius:"rounded-md"}};function mRe({onStart:s,onStop:n,onSwitchDevice:a,ownerId:i,size:r="base",hideActivityBars:o=!1,showShortcutHint:l=!0}){const c=JS(),d=ky(i),u=Vv(),m=wy(i),p=rRe(),f=My(i),g=by(),{shortcutString:h}=Pv("toggle_dictation"),C=_y(h||""),x=e.useRef(null),v=e.useRef(null),y="recording"===d,b="connecting"===d,k=y||b,w=bAe(),M=uRe[w&&"base"===r?"baseInlineUx":r],_=e.useRef(!1),[j,S]=e.useState(!1),L=e.useCallback(()=>{const e=_.current||j;zg.getState().setIsHovered(e)},[j]),N=e.useCallback(()=>{_.current=!0,L()},[L]),I=e.useCallback(()=>{_.current=!1,L()},[L]);e.useEffect(()=>{j||(_.current=!1),L()},[j,L]),e.useEffect(()=>()=>{zg.getState().setIsHovered(!1)},[]);const T=zg(e=>e.isHovered),[A,E]=e.useState(null);e.useEffect(()=>("error"===d&&(v.current=setTimeout(()=>{zg.getState().reset()},1500)),()=>{v.current&&(clearTimeout(v.current),v.current=null)}),[d]);const[R,D]=e.useState(!1);e.useEffect(()=>{p&&"error"===d&&"permission_denied"===m?D(!0):(k||null!==u&&u!==i)&&D(!1)},[p,d,m,k,u,i]),e.useEffect(()=>{x.current&&"error"===d&&uA(x.current,{x:[0,-6,6,-6,0]},{duration:.3,ease:"easeInOut",times:[0,.25,.5,.75,1],delay:.1})},[d]);const H=e.useRef(null),P=e.useRef(null),U=jy(i),O=e.useRef(!1);e.useEffect(()=>{O.current&&!k&&(zg.getState().setIsPushToTalk(!1),zg.getState().setIsMouseHolding(!1),H.current=null),O.current=k},[k]),e.useEffect(()=>{k&&S(!1)},[k]);const F=e.useRef(n);F.current=n;const V=e.useCallback(()=>{P.current&&(clearTimeout(P.current),P.current=null)},[]),z=e.useCallback(e=>{if(b)return;if(y)return void n();const t=e.pointerId;if(s(),zg.getState().ownerId!==i)return;if(zg.getState().setActivation("tap"),!Vg.getState().micPermissionGranted)return;H.current=Date.now(),V();const a=zg.getState().holdToRecordEnabled;a&&(zg.getState().setIsMouseHolding(!0),P.current=setTimeout(()=>{null!==H.current&&(zg.getState().setIsPushToTalk(!0),zg.getState().setActivation("hold"))},VAe));const r=e=>{if(e.pointerId!==t)return;document.removeEventListener("pointerup",r),document.removeEventListener("pointercancel",r),V();const s=H.current;if(H.current=null,zg.getState().setIsMouseHolding(!1),zg.getState().setIsPushToTalk(!1),null===s)return;if("pointercancel"===e.type)return;const n=Date.now()-s;a&&n>=VAe&&F.current()};document.addEventListener("pointerup",r),document.addEventListener("pointercancel",r)},[y,b,s,n,i,V]),Z=c.formatMessage({defaultMessage:"Press and hold to record",id:"RDL3SoKbEG",description:"Tooltip for dictation mic button when hold-to-record is on"}),B=k?"":g?t.jsxs("span",{children:[Z,l&&C&&t.jsx("span",{className:"ml-1.5 opacity-70",children:C})]}):c.formatMessage({defaultMessage:"Turn on microphone",id:"tV3JLkcSqh",description:"Tooltip for starting dictation microphone"});return t.jsxs("div",{className:dt("flex items-center",M.groupRadius,"transition-colors duration-200",!k&&T&&"bg-fill-ghost-hover"),onMouseEnter:N,onMouseLeave:I,children:[!k&&t.jsx("div",{className:dt("overflow-hidden transition-all duration-150 ease-out",T||j?M.caretSlot:"w-0"),onMouseEnter:()=>E("caret"),onMouseLeave:()=>E(null),children:t.jsx(dRe,{showTrigger:T||j,onSwitchDevice:a,onOpenChange:S,triggerSizeClass:M.idleCaret,caretIconSize:M.idleCaretIconPx})}),t.jsx(iN,{multiline:!0,content:B,className:"!py-[5.5px]",side:"bottom",align:"center",children:t.jsxs("button",{type:"button",ref:x,onPointerDown:z,disabled:b,className:dt(M.button,"overflow-hidden","flex items-center justify-center gap-1","transition-colors duration-200","cursor-pointer disabled:cursor-default",k?dt(o&&U?"bg-accent-200 text-oncolor-100":"bg-accent-900 text-accent-000",o?M.padIdle:M.padActive):dt(M.padIdle,"mic"===A&&"bg-alpha-2"),"error"===d&&"bg-danger-200 text-oncolor-100"),"aria-label":g?Z:"string"==typeof B?B:void 0,onMouseEnter:()=>E("mic"),onMouseLeave:()=>E(null),children:[k&&!o&&t.jsxs("span",{className:dt("relative flex items-center justify-center",M.waveSlot),children:[b&&t.jsx("span",{className:"absolute inset-0 flex items-center justify-center",children:t.jsx(ZEe,{mode:"connecting",size:M.iconPx})}),y&&t.jsxs(t.Fragment,{children:[t.jsx("span",{className:dt("absolute inset-0 flex items-center justify-center","transition-opacity duration-150",T&&!U?"opacity-0":"opacity-100"),children:t.jsx(ZEe,{mode:"active",mediaStream:f,size:M.iconPx})}),t.jsx("span",{className:dt("absolute inset-0 flex items-center justify-center","transition-opacity duration-150",T&&!U?"opacity-100":"opacity-0"),onPointerDown:e=>e.stopPropagation(),children:t.jsx(dRe,{showTrigger:!0,onSwitchDevice:a,onOpenChange:S,compact:!0,triggerSizeClass:M.pillCaret,caretIconSize:M.pillCaretIconPx})})]})]}),t.jsx("span",{className:dt("flex items-center justify-center transition-colors duration-200",M.groupRadius,k&&!o&&M.iconBox,U&&!o&&"bg-accent-200 text-oncolor-100"),children:t.jsx($L,{name:"Microphone",customSize:M.iconPx})})]})}),p&&t.jsx(iRe,{open:R,onOpenChange:D,anchor:x,feature:"dictation"})]})}function pRe(e,t){return e?"desktopMac":t?"desktopWindows":"web"}const fRe=tL({web:{defaultMessage:"Microphone access wasn't granted. Check your browser settings to allow access.",id:"POZDZ2sdGK",description:"Error toast when voice mode fails due to denied mic permission"},desktopMac:{defaultMessage:"Microphone access wasn't granted. Open System Settings, go to Privacy and Security, select Microphone, and turn on Claude.",id:"VNPcX5sY8M",description:"Error toast when voice mode fails due to denied mic permission (macOS desktop app)"},desktopWindows:{defaultMessage:"Microphone access wasn't granted. Open Settings, go to Privacy and security, select Microphone, and allow Claude.",id:"+zh6J+CqDV",description:"Error toast when voice mode fails due to denied mic permission (Windows desktop app)"}}),gRe=tL({web:{defaultMessage:"Microphone access wasn't granted. You can check your browser settings and try again.",id:"xxhgTJZVuo"},desktopMac:{defaultMessage:"Microphone access wasn't granted. Open System Settings, go to Privacy and Security, select Microphone, turn on Claude, and try again.",id:"iBoWV/oTtF",description:"Voice mode error when mic permission denied (macOS desktop app)"},desktopWindows:{defaultMessage:"Microphone access wasn't granted. Open Settings, go to Privacy and security, select Microphone, allow Claude, and try again.",id:"s4tv1ZtzRi",description:"Voice mode error when mic permission denied (Windows desktop app)"}}),hRe=tL({web:{defaultMessage:"Microphone couldn't be accessed. You can check your browser settings and try again.",id:"avkhm8tb6Y"},desktopMac:{defaultMessage:"Microphone couldn't be accessed. Open System Settings, go to Privacy and Security, select Microphone, turn on Claude, and try again.",id:"O5/vGr5tdj",description:"Voice mode error when mic couldn't be accessed (macOS desktop app)"},desktopWindows:{defaultMessage:"Microphone couldn't be accessed. Open Settings, go to Privacy and security, select Microphone, allow Claude, and try again.",id:"iMTKInuwrq",description:"Voice mode error when mic couldn't be accessed (Windows desktop app)"}});function CRe(e){return gRe[e]}function xRe(e){return hRe[e]}function vRe(){const e=y("claude_ai_voice_mode"),t=y("cai_voice_dictation_parity"),s=m();return ii()&&fue.isSupported()&&jie.isSupported()&&e&&(!s||t)}function yRe({hasDraftContent:t,currentCompassTask:s,isSampling:n,isSending:a}){const i=$v(),r=vRe(),{isAgentMode:o}=J(),{incognitoModeEnabled:l}=Va(),{disableVoice:c}=e.useContext(gd);return(!y("cai_voice_dictation_parity")||!o)&&(i||r&&!o&&!l&&!0!==c&&!t&&!s&&!n&&!a)}const bRe={initial:{opacity:0},animate:{opacity:1,transition:{duration:.12}}},kRe=e.memo(function({isPromptEmpty:s,files:n,attachments:a,syncSourceUuids:i,reviewCount:r=0,pendingFolders:l=[],conversation:c,onSend:d,onStop:u,isSending:m,isDisabled:p,disabledReason:f,currentCompassTask:g,skipInitialAnimation:h=!1,canQueueMessages:C=!1,isFrontendQueue:x=!1,isNewAgentModeChat:v=!1,isNewConversation:y=!1,isAgentMode:b=!1,isPrimaryComposer:k=!0,projectUuid:w}){const{track:M}=ae(),_="/new"===o(),j=e.useCallback(()=>{_&&mm(M,"home.composer.submit"),d()},[M,_,d]),S=$v()&&k,L=!s||n.length>0||a.length>0||i.length>0||r>0||l.length>0,N=yRe({hasDraftContent:L,currentCompassTask:g,isSampling:c?.isSampling,isSending:m})&&k,I=FAe(b?"cowork":"chat")&&k,T=Fv()&&k,A=bAe(),E=(()=>{if(S)return"voice_active";if(g)return"researching";if(c){const{isSampling:e,isStoppingSampling:t}=c;if(e)return t?"stopping":"sampling"}return L?"drafting":"empty"})();return t.jsx(nA,{initial:!1,mode:"wait",children:"sampling"===E||"stopping"===E?t.jsxs("div",{className:"flex items-center gap-1",children:[t.jsx(MRe,{onStop:u,isLoading:"stopping"===E,isPrimaryComposer:k}),C&&t.jsx(NRe,{isDisabled:p||m&&!x,disabledReason:f,isSending:m&&!x,hasDraftContent:L,onSend:j,showAsSend:x},"queue")]},"stop"):"researching"===E?t.jsx(wRe,{conversationId:c?.id,taskId:g,isPrimaryComposer:k},"stop_research"):!N||!A&&T?!A&&(T||I&&"empty"===E&&!m)?t.jsx(LRe,{isNewConversation:y,isAgentMode:b,conversationUuid:c?.id,projectUuid:w},"dictation_button"):A&&b&&I&&"empty"===E&&!m?null:t.jsx(_Re,{isSending:m,isDisabled:p,disabledReason:f,onSend:j,skipInitialAnimation:h,isNewAgentModeChat:v},"send"):t.jsx(SRe,{},"voice_button")})});function wRe({conversationId:s,taskId:n,isPrimaryComposer:a=!0}){const i=JS(),[r,o]=e.useState(!1),{mutate:l,isPending:c}=((e,t)=>{const{activeOrganization:s}=v(),n=s?.uuid;return b(`/api/organizations/${n}/chat_conversations/${e}/task/${t}/stop`,"POST",{enabled:Boolean(n&&e&&t)})})(s,n??""),d=e.useCallback(()=>{s&&n&&(l(),o(!1))},[s,n,l]),u=e.useCallback(()=>{o(!0)},[]);return e.useEffect(()=>{if(!a)return;const e=e=>{"Escape"!==e.key||c||e.defaultPrevented||o(!0)};return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}},[c,a]),t.jsxs(t.Fragment,{children:[t.jsx(iN,{content:t.jsx(XS,{defaultMessage:"Stop Claude response",id:"BonFmr6O3r"}),shortcut:a?"Esc":void 0,side:"bottom",children:t.jsx(kt,{variant:"secondary",size:"icon_sm",className:"!rounded-lg",onClick:u,"aria-label":i.formatMessage({defaultMessage:"Stop response",id:"RANC4/S/j1"}),children:c?t.jsx($L,{name:"Spinner",customSize:18,className:"animate-spin"}):t.jsx($L,{name:"Stop",customSize:16})})}),t.jsx(REe,{isOpen:r,onClose:()=>o(!1),onConfirm:d,isLoading:c})]})}function MRe({onStop:s,isLoading:n,isPrimaryComposer:a=!0}){const i=JS();return e.useEffect(()=>{if(!a)return;const e=e=>{"Escape"!==e.key||n||e.defaultPrevented||s()};return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}},[s,n,a]),t.jsx(iN,{content:t.jsx(XS,{defaultMessage:"Stop Claude response",id:"BonFmr6O3r"}),shortcut:a?"Esc":void 0,side:"bottom",children:t.jsx(kt,{variant:"secondary",size:"icon_sm",className:"!rounded-lg",onClick:()=>s(),"aria-label":i.formatMessage({defaultMessage:"Stop response",id:"RANC4/S/j1"}),children:n?t.jsx($L,{name:"Spinner",customSize:18,className:"animate-spin"}):t.jsx($L,{name:"Stop",customSize:16})})})}function _Re({isSending:e,isDisabled:s,disabledReason:n,onSend:a,skipInitialAnimation:i=!1,isNewAgentModeChat:r=!1}){const o=JS();return t.jsx(sA.div,{initial:i?{opacity:1}:{opacity:0},animate:{opacity:1,transition:{duration:.12}},exit:{opacity:0,transition:{duration:.08}},children:t.jsx(iN,{multiline:!0,content:n,side:"bottom",children:t.jsx("div",{children:t.jsx(kt,{variant:r&&s?"secondary":"claude",size:"icon_sm",className:"!rounded-lg !h-8 !w-8 compact:!size-6 disabled:cursor-default",disabled:s,onClick:a,"aria-label":r?o.formatMessage({defaultMessage:"Start task",id:"6Jb0AX1uQx"}):o.formatMessage({defaultMessage:"Send message",id:"Xx0WZVz8QS"}),children:e?t.jsx($L,{name:"Spinner",customSize:16,className:"animate-spin"}):t.jsx($L,{name:"ArrowUp",customSize:16})})})})})}const jRe=350;function SRe(){const s=JS(),{track:n}=ae(),a="/new"===o(),i=Cd(),r=vy(),l=Sy(),c=Ly(),{start:d,stop:u,toggleMute:p}=Ny(),{addError:f}=ut(),g=e.useRef(i.status),h=rRe(),C=Iy(),x=m({platform:"mac"}),v=m({platform:"windows"}),y=e.useRef(null),b=mA(),[k,w]=e.useState(!1),M=e.useRef(!0);e.useEffect(()=>{C&&(Vg.getState().setShowMicPermissionGuidance(!1),!M.current&&h&&b?w(!0):M.current=!1)},[C,h,b]),e.useEffect(()=>{M.current=!1},[]),e.useEffect(()=>{"idle"!==i.status&&"error"!==i.status&&k&&w(!1)},[i.status,k]);const _=e.useMemo(()=>{switch(i.status){case"connecting":return"connecting";case"listening":case"processing":case"speaking":return"active";case"error":return"error";default:return"idle"}},[i.status]),j="error"===i.status?i.message:void 0,S="error"===i.status?i.code:void 0;e.useEffect(()=>{const e=g.current;if(g.current=i.status,"error"===i.status&&"error"!==e){if(h&&"permission_denied"===S&&b)return;let e,n;"permission_denied"===S?(e=s.formatMessage((t=pRe(x,v),fRe[t])),n="Microphone access wasn't granted. Check your browser settings to allow access."):"rate_limited"===S?(e=s.formatMessage({defaultMessage:"Too many requests. You can wait a moment and try again.",id:"jXwSrFSaqb"}),n="Voice mode rate limited."):(e=s.formatMessage({defaultMessage:"Voice mode disconnected. You can try again.",id:"19rKQUTASZ",description:"Error toast when voice mode connection fails"}),n="Voice mode disconnected. You can try again."),f(e,{error:new Error(j??"Voice mode disconnected"),errorContext:{tags:{source:"voice_mode_disconnected",...S&&{code:S}}},messageForLogging:n})}var t},[i.status,j,S,f,s,h,b,x,v]);const L=e.useCallback(e=>{w(e)},[]),N=e.useCallback(()=>{a&&mm(n,"home.composer.voice_open"),d()},[n,a,d]),I=e.useCallback(e=>{iue.startSuppressedMistap({sinceMountMs:e})},[]),T=e.useCallback(()=>{u()},[u]),A=e.useCallback(()=>{u()},[u]),E=e.useCallback(()=>{u()},[u]),R=e.useCallback(()=>{p()},[p]);return t.jsxs(sA.div,{initial:{opacity:0},animate:{opacity:1,transition:{duration:.12}},exit:{opacity:0,transition:{duration:.08}},children:[h&&t.jsx(iRe,{open:k,onOpenChange:L,anchor:y,feature:"voice"}),t.jsx(sRe,{state:_,micStream:r,isMuted:l,micPermissionGranted:c,buttonRef:y,startGuardMs:jRe,onStartSuppressed:I,onStart:N,onEnd:T,onCancel:A,onToggleMute:R,onErrorReset:E})]})}function LRe({isNewConversation:s,isAgentMode:n,conversationUuid:a,projectUuid:i,hideActivityBars:r=!1,className:l}){const{track:c}=ae(),d="/new"===o(),u=NAe(),m=e.useId(),p=yAe()??m,f=e.useCallback(()=>{d&&mm(c,"home.composer.dictation_start"),OAe.start(u,{input:s?"landing":"session",projectUuid:i??"",...n?{area:"cowork"}:{area:"chat",chatConversationUuid:a}},p)},[c,d,u,n,s,a,i,p]),g=e.useCallback(()=>{OAe.stop("commit")},[]),h=e.useCallback(e=>{OAe.switchDevice(e)},[]);return t.jsx(sA.div,{initial:bRe.initial,animate:bRe.animate,className:l,children:t.jsx(mRe,{onStart:f,onStop:g,onSwitchDevice:h,ownerId:p,hideActivityBars:r})})}const NRe=e.memo(({isDisabled:e,disabledReason:s,isSending:n,hasDraftContent:a,onSend:i,showAsSend:r})=>{const o=JS(),l=r?o.formatMessage({defaultMessage:"Send message",id:"Xx0WZVz8QS"}):o.formatMessage({defaultMessage:"Queue message",id:"UcgUidrDGx"});return t.jsx(sA.div,{initial:bRe.initial,animate:bRe.animate,children:t.jsx(iN,{content:e&&s?s:l,side:"bottom",children:t.jsx("div",{children:r?t.jsx(kt,{variant:"claude",size:"icon_sm",className:"!rounded-lg !h-8 !w-8 compact:!size-6 disabled:cursor-default",disabled:e||!a,onClick:i,"aria-label":l,children:n?t.jsx($L,{name:"Spinner",customSize:16,className:"animate-spin"}):t.jsx($L,{name:"ArrowUp",customSize:16})}):t.jsxs(kt,{variant:"claude",size:"sm",className:"!rounded-lg gap-1.5",disabled:e||!a,onClick:i,"aria-label":l,children:[t.jsx($L,{name:"ArrowReturn",customSize:16}),n?t.jsx($L,{name:"Spinner",customSize:14,className:"animate-spin"}):t.jsx(XS,{defaultMessage:"Queue",id:"4YDNPC1W1k"})]})})})})});NRe.displayName="QueueMessageButton";const IRe=e.memo(function({anchor:s}){const n=JS(),[a,i]=e.useState(null);if(e.useEffect(()=>(AJ(i),()=>AJ(null)),[]),!a)return null;const r=mEe({model:a.toModelId,name:""}),o=mEe({model:a.fromModelId,name:""});return t.jsx(oN,{open:!0,onOpenChange:e=>!e&&i(null),anchor:s,side:"bottom",align:"end",variant:"accent",showClose:!0,"aria-label":n.formatMessage({defaultMessage:"Model switched",id:"ToAEw3gf8L"}),title:t.jsx(hs,{id:"1cabssc",dangerouslyVisiblePublicValues:{toModel:r}}),children:t.jsx(hs,{id:"1kjgiym",dangerouslyVisiblePublicValues:{fromModel:o}})})});function TRe({mediaStream:s,className:n}){const a=e.useRef(null),i=e.useRef(null),r=e.useRef(null),o=e.useRef(null),l=e.useRef(null),c=e.useRef([]),d=e.useRef(0);return e.useEffect(()=>{if(!s)return;const e=new AudioContext,t=e.createAnalyser();t.fftSize=1024,t.smoothingTimeConstant=.2;const n=e.createMediaStreamSource(s);return n.connect(t),r.current=e,o.current=t,l.current=new Uint8Array(t.fftSize),()=>{n.disconnect(),e.close(),r.current=null,o.current=null,l.current=null,c.current=[],d.current=0}},[s]),cA(e=>{const t=o.current,s=l.current,n=a.current,r=i.current;if(!(t&&s&&n&&r))return;const u=n.clientWidth,m=Math.max(1,Math.floor(u/7)),p=c.current;if(e-d.current>=80){d.current=e-(e-d.current)%80,t.getByteTimeDomainData(s);let n=0;for(let e=0;e<s.length;e++){const t=(s[e]-128)/128;n+=t*t}const a=Math.sqrt(n/s.length),i=Math.max(0,a-.015)/.985,r=Math.min(1,2.2*Math.pow(i,.5));p.push(r),p.length>m&&p.splice(0,p.length-m)}!function(e,t,s,n){const a=e.clientHeight||20,i=a/2,r=7,o=3*r,l=s-5-2-n;for(;e.childNodes.length<t.length;){const t=document.createElementNS("http://www.w3.org/2000/svg","rect");t.setAttribute("width",String(2)),t.setAttribute("rx",String(1)),t.setAttribute("fill","currentColor"),e.appendChild(t)}for(;e.childNodes.length>t.length;)e.removeChild(e.lastChild);for(let c=0;c<t.length;c++){const n=l-(t.length-1-c)*r,a=s-(n+2),d=n,u=Math.min(d,a),m=u>=o?0:1-Math.max(0,u)/o,p=Math.sqrt(Math.max(0,1-m*m)),f=2+18*t[c],g=Math.max(2,f*p),h=e.childNodes[c];h.setAttribute("x",n.toFixed(2)),h.setAttribute("y",(i-g/2).toFixed(2)),h.setAttribute("height",g.toFixed(2))}}(r,p,u,7*((e-d.current)/80))}),t.jsx("div",{ref:a,className:dt("relative h-5 min-w-0 flex-1",n),"aria-hidden":!0,children:t.jsx("svg",{ref:i,className:"absolute inset-0 h-full w-full overflow-visible"})})}function ARe({ownerId:e,className:s,hideActions:n=!1}){const a=JS(),i=xd(),r=My(e),o="connecting"===i;return t.jsxs("div",{className:dt("flex w-full min-w-0 items-center gap-3 pl-1.5",s),children:[t.jsx(TRe,{mediaStream:r,className:"text-text-300"}),!n&&t.jsxs("div",{className:"flex shrink-0 items-center gap-2",children:[t.jsx(iN,{content:a.formatMessage({defaultMessage:"Cancel",id:"47FYwba+bI"}),side:"top",children:t.jsx("button",{type:"button","aria-label":a.formatMessage({defaultMessage:"Cancel dictation",id:"7zXg4ifvoR"}),onClick:()=>OAe.cancel("cancel"),className:dt("flex h-8 w-8 items-center justify-center rounded-lg","bg-bg-200 text-text-200 transition-colors hover:bg-bg-300"),children:t.jsx(Yt,{size:16})})}),t.jsx(iN,{content:a.formatMessage({defaultMessage:"Done",id:"JXdbo8Vnlw"}),side:"top",children:t.jsx("button",{type:"button","aria-label":a.formatMessage({defaultMessage:"Finish dictation",id:"V6LeaFyLW4"}),onClick:()=>OAe.stop("commit"),disabled:o,className:dt("flex h-8 w-8 items-center justify-center rounded-lg","bg-accent-100 text-always-white transition-colors hover:bg-accent-200","disabled:cursor-not-allowed disabled:opacity-50"),children:t.jsx(Hu,{size:16})})})]})]})}function ERe(e,t){if(e)return!1;const{reason:s,event:n}=t;if("item-press"===s||"escape-key"===s||"trigger-press"===s)return!1;const a=e=>e instanceof Element&&null!==e.closest("[data-nested]"),i="relatedTarget"in n?n.relatedTarget:null,r=null===i||i===document.body||i instanceof Node&&!i.isConnected;return!!("focus-out"===s?a(i)||r&&a(n.target):a(n.target)||a(i))&&(t.cancel(),!0)}function RRe({checked:e,disabled:s}){return t.jsx("div",{"aria-hidden":"true",className:"pointer-events-none inline-flex items-center",children:t.jsx("span",{inert:!0,className:"inline-flex",children:t.jsx(fN,{size:"sm",checked:e,disabled:s})})})}function DRe(e){if("separator"===e.type)return t.jsx(KL.Separator,{});if("section-header"===e.type)return t.jsx(KL.Header,{children:e.label});if("loading"===e.type)return t.jsxs("div",{className:"flex h-control items-center gap-xs px-md",children:[t.jsx(hN,{width:20,height:20}),t.jsx(hN,{width:96,height:16})]});if("search-input"===e.type)return t.jsx(HRe,{...e});if("skill"===e.type)return t.jsx(HRe,{...e});const{tooltip:s,...n}=e;return s?t.jsx(iN,{content:s,side:"right",children:t.jsx("div",{children:t.jsx(HRe,{...n})})}):t.jsx(HRe,{...n})}function HRe(e){switch(e.type){case"button":{const{className:s,icon:n,label:a,subtitle:i,suffix:r,onAction:o,closeOnClick:l,disabled:c}=e;return t.jsx(KL.Item,{icon:n,trailing:r,onClick:o?()=>o():void 0,keepOpen:!1===l,disabled:c,className:dt("group","string"==typeof s&&s),children:t.jsx(URe,{label:a??"",subtitle:i})})}case"checkbox":{const{className:s,icon:n,label:a,subtitle:i,suffix:r,onAction:o,checked:l,closeOnClick:c,disabled:d}=e;return t.jsx(KL.Item,{icon:n,checked:l??!1,trailing:r,onClick:o,keepOpen:!1===c,disabled:d,className:dt("group","string"==typeof s&&s),children:t.jsx(URe,{label:a??"",subtitle:i})})}case"toggle":{const{icon:s,label:n,subtitle:a,suffix:i,onAction:r,checked:o,disabled:l,toggleDisabled:c,cursorDefault:d,closeOnClick:u=!1}=e;return t.jsxs(VT,{checked:o,closeOnClick:u,onClick:c?void 0:r,"aria-disabled":c||void 0,className:dt(_N({variant:"default"}),"group",d&&"!cursor-default"),disabled:l,children:[void 0!==s&&t.jsx("span",{className:"flex size-icon shrink-0 items-center justify-center",children:s}),t.jsxs("span",{className:"flex min-w-0 flex-1 flex-col",children:[t.jsx(PRe,{text:n}),a&&t.jsx("span",{className:"whitespace-normal text-footnote text-muted",children:a})]}),t.jsxs("span",{className:"ml-md flex shrink-0 items-center gap-xs",children:[i,t.jsx(RRe,{checked:o,disabled:l||c})]})]})}case"submenu":{const{align:s="end",open:n,onOpenChange:a,openOnHover:i,className:r,submenuClassName:o,maxVisibleItems:l,submenuTitle:c,submenuHeaderItems:d,submenuFooterItems:u,icon:m,label:p,subtitle:f,suffix:g,items:h,disabled:C}=e;return t.jsxs(KL.Submenu,{disabled:C,open:n,onOpenChange:(e,t)=>{ERe(e,t)||a?.(e)},children:[t.jsx(KL.SubmenuTrigger,{icon:m,trailing:g,openOnHover:i,className:dt("group",r),children:t.jsx(URe,{label:p??"",subtitle:f})}),(()=>{const[e,n]="search-input"===h[0]?.type?[h[0],h.slice(1)]:[void 0,h];return t.jsxs(KL.Popup,{align:s,collisionPadding:10,className:o,maxVisibleItems:o?void 0:l??8.5,header:d&&d.length>0?t.jsxs(t.Fragment,{children:[d.map((e,s)=>{const n="label"in e?`header-${e.label}-${s}`:`header-${s}`;return t.jsx(DRe,{...e},n)}),t.jsx(KL.Separator,{})]}):e&&t.jsx(DRe,{...e}),footer:u&&u.length>0?t.jsxs(t.Fragment,{children:[t.jsx(KL.Separator,{}),u.map((e,s)=>{const n="label"in e?`footer-${e.label}-${s}`:`footer-${s}`;return t.jsx(DRe,{...e},n)})]}):void 0,children:[c&&t.jsx(KL.Header,{children:c}),n.map((e,s)=>{const n="search-input"===e.type?`search-input-${s}`:"label"in e?`${e.label}-${s}`:s;return t.jsx(DRe,{...e},n)})]})})()]})}case"search-input":{const{placeholder:s,value:n,onChange:a,onPaste:i,onKeyDown:r,errorMessage:o,inputRef:l,autoFocus:c}=e;return t.jsxs("div",{role:"presentation",onKeyDown:e=>{["ArrowDown","ArrowUp","Enter","Escape"].includes(e.key)||e.stopPropagation()},children:[t.jsxs("div",{className:dt(_N({variant:"default"}),"cursor-text"),children:[t.jsx("span",{className:"flex size-icon shrink-0 items-center justify-center text-muted",children:t.jsx($L,{name:"Search",size:"sm"})}),t.jsx("input",{ref:l,value:n,placeholder:s,className:"cds-reset w-full min-w-0 flex-1 border-none bg-transparent text-body outline-none placeholder:text-muted",onChange:e=>a(e.target.value),onPasteCapture:i,onKeyDown:r,"data-1p-ignore":!0,autoComplete:"off",autoFocus:c})]}),o&&t.jsx("p",{className:"px-md pb-1 text-footnote text-danger",children:o}),t.jsx(KL.Separator,{})]})}case"skill":return t.jsx(ORe,{item:e});case"connector-tool":return t.jsx(FRe,{item:e})}}const PRe=e.memo(function({text:s,className:n}){const a=e.useRef(null),[i,r]=e.useState(!1),o=e.useCallback(()=>{a.current&&r(a.current.scrollWidth>a.current.clientWidth)},[]),l=t.jsx("span",{ref:a,className:dt("block truncate",n),onMouseEnter:o,children:s});return i?t.jsx(iN,{multiline:!0,className:"[overflow-wrap:anywhere]",content:s,side:"right",align:"start",children:l}):l});function URe({label:e,subtitle:s}){return s?t.jsxs("span",{className:"flex min-w-0 flex-col",children:[t.jsx(PRe,{text:e}),t.jsx("span",{className:"whitespace-normal text-footnote text-muted",children:s})]}):t.jsx(PRe,{text:e})}function ORe({item:s}){const{label:n,icon:a,className:i,skillDescription:r,sourcePluginName:o,sourceRepo:l,onAction:c,disabled:d}=s,[u,m]=e.useState(!1),p=e.useRef(null),f=e.useCallback(()=>{(r||o||l)&&m(!0)},[r,o,l]),g=e.useCallback(()=>{m(!1)},[]);return t.jsxs(t.Fragment,{children:[t.jsx(KL.Item,{ref:p,icon:a,disabled:d,onClick:c?()=>c({isExplicitSelection:!0}):void 0,onMouseEnter:f,onMouseLeave:g,className:dt("group","string"==typeof i&&i),children:n}),u&&t.jsx(UI,{anchorRef:p,description:r,sourcePluginName:o,sourceRepo:l})]})}function FRe({item:e}){const{label:s,icon:n,className:a,onAction:i,disabled:r}=e;return t.jsx(KL.Item,{icon:n,disabled:r,onClick:i,className:dt("group","string"==typeof a&&a),children:s})}fT(e=>({isOpen:!1,setIsOpen:t=>e({isOpen:t})}));const VRe=fT(e=>({isOpen:!1,connectOnCreate:!1,triggerElement:null,open:t=>e({isOpen:!0,connectOnCreate:t?.connectOnCreate??!1,triggerElement:Ty()}),close:()=>e({isOpen:!1,connectOnCreate:!1})}));function zRe(){const{account:e,activeOrganization:t}=v(),s=Ay(e,t),n=Ey(e,t,Kv.IntegrationsManage),a=xe();return{manageFromOrg:a&&(n||s),manageFromPersonal:!a}}function ZRe(){const{manageFromPersonal:e,manageFromOrg:t}=zRe(),s=Ry(),n=cn(),{showCustomConnectorOption:a,customConnectorLimitReached:i}=Dy();return{show:(e||t)&&s&&n&&a,limitReached:i}}function BRe(){return JS().formatMessage({defaultMessage:"Free plan allows 1 custom connector. Upgrade for more.",id:"EjubE02oVH"})}const qRe=t.jsx(AA,{size:16}),WRe=t.jsx(aU,{size:16});function $Re(){const s=JS(),n=Pe(),a=e.useRef(null);null===a.current&&(a.current=Hy());const{connectedServers:i,placeholderConnectors:r}=e.useMemo(()=>{const e=a.current??{};return{connectedServers:n.filter(e=>e.isConnected&&(e=>(e.prompts?.length||0)>0||Ws(e.resources).length>0)(e)&&!Py(e.uuid)),placeholderConnectors:n.filter(t=>t.isConnecting&&e[t.uuid]?.isConnected&&e[t.uuid]?.hasPromptsOrResources&&!Py(t.uuid))}},[n]),o=Uy(),l=Oy(),{setCreatePromptArgumentModalIsOpen:c}=AH(),[d,u]=e.useState({}),m=e.useRef({}),p=e.useRef({}),f=e.useCallback((e,t)=>{c({isOpen:!0,serverUuid:e,prompt:t})},[c]),g=e.useCallback((e,t)=>{u(s=>({...s,[e]:t}))},[]),h=e.useCallback((e,t,s)=>{const n=d[e]||"";"ArrowLeft"===t.key&&n?t.stopPropagation():"ArrowDown"===t.key&&s&&(t.preventDefault(),t.stopPropagation(),p.current[e]?.focus())},[d]);return e.useMemo(()=>[...i.map(e=>{const n=d[e.uuid]||"",a=Ws(e.resources),i=a.length>0,r=e.prompts.filter(e=>{if(!n)return!0;const t=n.toLowerCase(),s=e.name?.toLowerCase()||"",a=e.description?.toLowerCase()||"";return s.includes(t)||a.includes(t)}),c=r.map(t=>({type:"button",icon:qRe,label:t.displayName,onAction:()=>t.arguments?.length?f(e.uuid,t):void l({serverUuid:e.uuid,prompt:t,args:{}})})),u=i?a.filter(e=>{if(!n)return!0;const t=n.toLowerCase(),s=Os(e).toLowerCase(),a=e.description?.toLowerCase()||"",i=e.uri?.toLowerCase()||"";return s.includes(t)||a.includes(t)||i.includes(t)}):[],C=u.map((t,s)=>({type:"button",icon:WRe,label:t.displayName,onAction:()=>{o({serverUuid:e.uuid,resource:t})},ref:0===s?t=>{p.current[e.uuid]=t}:void 0,onKeyDown:t=>{"ArrowUp"===t.key&&0===s&&(t.preventDefault(),m.current[e.uuid]?.focus())}})),x=[];return i&&x.push({type:"search-input",placeholder:s.formatMessage({defaultMessage:"Search...",id:"0BUTMvePvK"}),label:s.formatMessage({defaultMessage:"Search",id:"xmcVZ0BU63"}),value:n,onChange:t=>g(e.uuid,t),onKeyDown:t=>h(e.uuid,t,u.length>0||r.length>0),inputRef:{current:m.current[e.uuid]??null},autoFocus:!0}),x.push(...c),i&&(u.length>0?x.push(...C):n&&0===r.length&&x.push({type:"button",label:s.formatMessage({defaultMessage:"No results",id:"jHJmjfxD4s"}),disabled:!0})),{type:"submenu",label:s.formatMessage({defaultMessage:"Add from {server}",id:"qEj6u51OfR"},{server:e.name}),icon:t.jsx("div",{className:"flex justify-center items-center size-5",children:t.jsx(Ls,{size:16,type:e.iconType,src:e.iconSrc,name:e.name})}),items:x,align:"start"}}),...r.map(e=>({type:"submenu",label:s.formatMessage({defaultMessage:"Add from {server}",id:"qEj6u51OfR"},{server:e.name}),icon:t.jsx("div",{className:"flex justify-center items-center size-5",children:t.jsx(Ls,{size:16,type:e.iconType,src:e.iconSrc,name:e.name})}),items:[{type:"loading"}],align:"start"}))].sort((e,t)=>(e.label??"").localeCompare(t.label??"")),[l,o,i,h,g,s,f,r,d])}const GRe=[];function KRe(){const e=m(),t=y("cowork_argonaut_main"),s=lv();return e&&t&&!s}const YRe=[],QRe=[];const JRe=new Map;function XRe(e,t){const s=JRe.get(e);return!!s&&(clearTimeout(s.timer),JRe.delete(e),s.resolve(t),!0)}function eDe(e,t){return new Promise(s=>{const n=setTimeout(()=>{XRe(e,{error:"Timed out waiting for OAuth callback"})},t);JRe.set(e,{resolve:s,timer:n})})}function tDe(e,t){return XRe(e,{callbackUrl:t})}function sDe(e){XRe(e,{cancelled:!0,error:"cancelled"})}const nDe=[],aDe=15e3,iDe=12e4,rDe=new Set(["claude.ai","claude.com","api.claude.ai","staging.claude.ai","accounts.google.com","slack.com","github.com","login.microsoftonline.com","linear.app"]);function oDe(e){let t;try{t=new URL(e)}catch{return{ok:!1}}return"https:"!==t.protocol?{ok:!1}:{ok:!0,hostname:t.hostname,trusted:rDe.has(t.hostname)}}function lDe(e,t){return t.includes("Server status: needs-auth")?e.formatMessage({defaultMessage:"Authorization didn't complete. Finish signing in (or check you're signed into claude.ai), then try Reconnect again.",id:"ZyHpoI0cj7"}):t.includes("Server status: failed")?e.formatMessage({defaultMessage:"The connector failed to reconnect. Try again, or run /mcp in the terminal for details.",id:"XjbkMHaoN8"}):t.includes("does not handle")||t.includes("does not support mcpAuthenticate")?e.formatMessage({defaultMessage:"This Claude Code session is too old to support remote reconnect. Update Claude Code, or run /mcp in the terminal.",id:"fNCL13ySK4"}):e.formatMessage({defaultMessage:"Something went wrong. Try again, or run /mcp in the terminal for details.",id:"JsOnt26X3G"})}function cDe(e,t){return Promise.race([e,new Promise((e,s)=>setTimeout(()=>s(new Error("Timed out")),t))])}function dDe(){const e=window.open("about:blank","_blank");return e&&(e.opener=null),{navigate:t=>{if(e&&!e.closed)try{return void(e.location.href=t)}catch{}window.open(t,"_blank","noopener")},close:()=>{try{e?.close()}catch{}}}}const uDe=NL(IL());function mDe(e,t){if(0===t.length)return!1;try{const s=new URL(e).hostname;return t.some(e=>s.includes(e))}catch{return!1}}function pDe({intl:e,shouldDisableToggle:t,hasAgentIssues:s,hasNoTools:n,isFilesystemInLocalSession:a}){return a?e.formatMessage({defaultMessage:"Use folders instead",id:"Y/nKtgxdUw"}):n?e.formatMessage({defaultMessage:"This connector has no tools available",id:"LgK8MKTG04"}):t?e.formatMessage({defaultMessage:"Cannot modify connectors while message is processing",id:"dU4vArW8eq"}):s?e.formatMessage({defaultMessage:"This connector has known issues",id:"tI3ocabFQo"}):void 0}function fDe(s){const n=JS(),a=y("claudeai_slash_connectors"),{conversation:i,promptInputRef:o,isLocalAgentRoute:l,isAgentMode:c}=J(),d=eb(),u=r(),m=gv(),p=ls,{sessionId:f,storeEnabledMcpTools:g,setMcpServers:h,replaceRemoteMcpServers:C,replaceEnabledMcpTools:x}=eR(),b=KE(C,x),k=Boolean(i?.sessionId&&i?.isSessionActivelyWorking&&!l),w=ze("yukon_gold_bad","hostnames",[],uDe),M=tb(),{account:_}=v(),j=Fe("enabled_mcp_tools"),S=_?.settings?.enabled_mcp_tools,L=e.useMemo(()=>f?g??S??{}:j??S??{},[f,S,g,j]),N=Pe(),{toggleMcpToolEnabled:I}=Je(),{blocksMcp:T}=bp(),A=e.useRef(null);null===A.current&&(A.current=Hy());const E=A.current,R=e.useCallback((e,t,s)=>{const n=o.current?.getEditor();n&&n.chain().focus().insertContent(Zy(e,t,s)).run()},[o]);return e.useMemo(()=>{const e=[],i=[];let r=0;for(const o of N){if(Go(o))continue;if(o.name.startsWith("plugin:")&&!l)continue;const g=sb(n,o.name),C=(l||d)&&o.localId===IH;if(o.isConnecting){const e=E[o.uuid];e&&!e.isConnected||r++;continue}if(!o.isConnected&&o.authStatus&&nb(o.authStatus)){const e=ab(n,o.authStatus,o.authErrorSubtype);i.push({type:"button",label:g,icon:t.jsx(Ls,{size:16,type:o.iconType,src:o.iconSrc,name:o.name}),suffix:t.jsx(Gt,{size:14,className:"text-warning-100"}),tooltip:e,onAction:()=>{const e=`${p}?connector=${o.uuid}`;ib()?window.open(e,"_blank"):m(e)}});continue}if(!o.isConnected)continue;if(!o.toolsLoaded){r++;continue}const x=o.tools.map(e=>e.enabledKey),v=0===x.length,y=Wo({name:o.name,uuid:o.uuid});if(v&&"local"===o.type&&!y)continue;if(T){e.push({type:"button",label:g,icon:t.jsx(WH,{size:16,className:"text-text-300"}),disabled:!0,tooltip:t.jsx(hs,{id:"11vaed6",dangerouslyVisiblePublicValues:{connectorName:g,a:e=>t.jsx(ds,{onClick:()=>u.push("/new"),children:e})}}),onAction:()=>{},closeOnClick:!1});continue}if(y){e.push({type:"toggle",label:g,icon:t.jsx(Ls,{size:16,type:o.iconType,src:o.iconSrc,name:o.name}),checked:M.isEnabled,disabled:k,tooltip:k?n.formatMessage({defaultMessage:"Cannot modify connectors while message is processing",id:"dU4vArW8eq"}):void 0,onAction:M.toggle,closeOnClick:!1});continue}const _=s?.isConnectorEnabled(o)??$o(x,L,!1),j=c&&mDe(o.url??"",w),S=pDe({intl:n,shouldDisableToggle:k,hasAgentIssues:j,hasNoTools:v,isFilesystemInLocalSession:Boolean(C)});if(j||v||C)e.push({type:"button",label:g,icon:t.jsx(Ls,{size:16,type:o.iconType,src:o.iconSrc,name:o.name}),disabled:k||Boolean(C),tooltip:S,suffix:t.jsx(Gt,{size:14,className:"text-warning-100"}),onAction:()=>{},closeOnClick:!1});else{const i=t.jsx(Ls,{size:16,type:o.iconType,src:o.iconSrc,name:o.name}),r=()=>{if(k)return;const e=!_;I(x,e,o.url),s?.onAfterToggle(o,e),f&&h&&tR({sessionId:f,server:o,toolKeys:x,enabled:e,setMcpServers:h,coworkSnapshotSync:b})};if(_&&a){const t=[],s={type:"toggle",label:g,checked:!0,disabled:k,onAction:r,closeOnClick:!1};if(t.push(s),o.tools.length>0){const e={type:"separator",label:`separator-${o.uuid}-tools`};t.push(e);for(const s of o.tools){const e=Ky(s.name),a="blocked"===(s.effectiveMaxPermission??s.orgMaxPermission),i={type:"connector-tool",label:e,toolName:s.name,connectorName:o.name,disabled:a,tooltip:a?n.formatMessage({defaultMessage:"Disabled by your organization",id:"cBE0Jgy5fu"}):void 0,onAction:a?void 0:()=>R(s.name,e,o.name)};t.push(i)}}e.push({type:"submenu",label:g,icon:i,tooltip:S,items:t,submenuClassName:"!max-h-[288px]"})}else e.push({type:"toggle",label:g,icon:i,checked:_,disabled:k,tooltip:S,onAction:r,closeOnClick:!1})}}return{connectedServers:e,authFailedServers:i,connectingCount:r}},[N,a,k,n,I,s,R,u,m,p,c,l,d,f,w,E,M.isEnabled,M.toggle,L,h,b,T])}const gDe=t.jsx(vp,{size:16}),hDe=t.jsx(db,{size:16}),CDe=t.jsx(cb,{size:16}),xDe="inputMenu";function vDe(){const{sessionId:t,setMcpServers:s}=eR(),n=g0();return e.useCallback((e,i)=>{t&&s&&a(async()=>{const{getGsuiteRemoteMcpServers:e}=await import("./c1ad09c91-CpGrYM_b.js").then(e=>e.g);return{getGsuiteRemoteMcpServers:e}},__vite__mapDeps([0,1]),import.meta.url).then(({getGsuiteRemoteMcpServers:a})=>{const[r]=a({gdriveEnabled:e===He.GDRIVE,gcalEnabled:e===He.GCAL,gmailEnabled:e===He.GMAIL,toolDescriptionOverrides:n});r&&s(t,[{...r,enabled:i}])}).catch(()=>{})},[t,s,n])}function yDe(){const{model:s}=J(),n=function({currentModel:s}){const n=JS(),{addError:a}=ut(),{conversation:i}=rd(),{toggleSearchToolAsync:r,toggleConversationSetting:o}=Yre(i),l=dE(),{hasCapability:c}=Ae("chat"),d=c(s,"gsuite_tools"),u=uE(i),[m,p]=e.useState(void 0),f=e.useRef(null),{isDriveAuthenticated:g,initDriveAuth:h}=fE({callerIdentifier:xDe,handleAuthSuccess:()=>{o("enabled_bananagrams",!0)}}),C=vDe(),x=rb(),v=$s(),y=ob(He.GDRIVE),{startAuth:b,authBreakdown:k}=Oe(He.GDRIVE,{callerIdentifier:xDe,handleAuthSuccess:()=>{o("enabled_foccacia",!0)}}),w=Qre(),M=e.useCallback(async e=>{f.current?.abort();const t=new AbortController;f.current=t,p(e);try{if(await r("enabled_bananagrams",e,{signal:t.signal}),t.signal.aborted)return;C(He.GDRIVE,e),p(void 0)}catch(s){if(t.signal.aborted)return;p(void 0),a(n.formatMessage({defaultMessage:'Failed to {action} "{connectorName}". You can try again.',id:"By4H3BHlCC"},{action:e?n.formatMessage({defaultMessage:"enable",id:"zwaLxXorJ8"}):n.formatMessage({defaultMessage:"disable",id:"BLBh9nebCL"}),connectorName:"Drive search"}),{error:s,errorContext:{tags:{source:"search_connector_toggle"}},messageForLogging:"Failed to toggle search connector."})}},[r,a,n,C]);if(x&&!g)return null;if(v&&y&&g)return null;if(v&&!y)return null;if(y&&!k.firstParty)return null;if(!l)return null;const _={icon:gDe,label:n.formatMessage({defaultMessage:"{drive} search",id:"nUykp097rV"},{drive:"Drive"})};if(!g){const e=n.formatMessage({defaultMessage:"Connect",id:"+vVZ/G11Zg"}),s=n.formatMessage({defaultMessage:"Reconnect",id:"Eg11ZYmdyO"});return{isConnected:!1,item:{..._,type:"button",suffix:t.jsx(bDe,{overrideCopy:v?s:e}),onAction:()=>h(),...v?{tooltip:n.formatMessage({defaultMessage:"Sign back into Google to use our improved connectors",id:"NHTRwY1ogC"})}:{},...d?null:w}}}const j=void 0!==m?m:u,S=g&&j;return{isConnected:!0,item:{..._,type:"toggle",checked:S,onAction:()=>{M(!j)},closeOnClick:!1,...d?null:w}}}({currentModel:s}),a=function({currentModel:s}){const n=JS(),{addError:a}=ut(),{setGmailAuthModalIsOpen:i}=AH(),{conversation:r}=rd(),{toggleSearchToolAsync:o,toggleConversationSetting:l}=Yre(r),c=De(He.GMAIL),{hasCapability:d}=Ae("chat"),u=d(s,"gsuite_tools"),m=Ue(He.GMAIL,r),[p,f]=e.useState(void 0),g=e.useRef(null),h=vDe(),C=Qre(),x=lb(),v=ob(He.GMAIL),{isAuthenticated:y,startAuth:b,authBreakdown:k}=Oe(He.GMAIL,{callerIdentifier:xDe,handleAuthSuccess:()=>{l("enabled_sourdough",!0)}}),w=e.useCallback(()=>{i(!0)},[i]),M=e.useCallback(async e=>{g.current?.abort();const t=new AbortController;g.current=t,f(e);try{if(await o("enabled_sourdough",e,{signal:t.signal}),t.signal.aborted)return;h(He.GMAIL,e),f(void 0)}catch(s){if(t.signal.aborted)return;f(void 0),a(n.formatMessage({defaultMessage:'Failed to {action} "{connectorName}". You can try again.',id:"By4H3BHlCC"},{action:e?n.formatMessage({defaultMessage:"enable",id:"zwaLxXorJ8"}):n.formatMessage({defaultMessage:"disable",id:"BLBh9nebCL"}),connectorName:x?"Gmail":"Gmail search"}),{error:s,errorContext:{tags:{source:"search_connector_toggle"}},messageForLogging:"Failed to toggle search connector."})}},[o,a,n,x,h]);if(x&&v&&y)return null;if(x&&!v)return null;if(x&&!k.firstParty)return null;if(!c)return null;const _=n.formatMessage({defaultMessage:"Gmail search",id:"v0qteoUCm+"}),j=n.formatMessage({defaultMessage:"Gmail",id:"2hslSeuDXe"}),S={label:x?j:_,icon:CDe};if(!y){const e=n.formatMessage({defaultMessage:"Connect",id:"+vVZ/G11Zg"}),s=n.formatMessage({defaultMessage:"Reconnect",id:"Eg11ZYmdyO"});return{isConnected:!1,item:{...S,type:"button",suffix:t.jsx(bDe,{overrideCopy:x?s:e}),onAction:()=>{x?b():w()},...x?{tooltip:n.formatMessage({defaultMessage:"Sign back into Google to use our improved connectors",id:"NHTRwY1ogC"})}:{},...u?null:C}}}const L=void 0!==p?p:m,N=y&&L;return{isConnected:!0,item:{...S,type:"toggle",checked:N,onAction:()=>{M(!L)},closeOnClick:!1,...u?null:C}}}({currentModel:s}),i=function({currentModel:s}){const n=JS(),{addError:a}=ut(),{conversation:i}=rd(),{toggleSearchToolAsync:r,toggleConversationSetting:o}=Yre(i),l=De(He.GCAL),{hasCapability:c}=Ae("chat"),d=c(s,"gsuite_tools"),u=Ue(He.GCAL,i),[m,p]=e.useState(void 0),f=e.useRef(null),g=vDe(),h=lb(),C=ob(He.GCAL),{isAuthenticated:x,startAuth:v,authBreakdown:y}=Oe(He.GCAL,{callerIdentifier:xDe,handleAuthSuccess:()=>{o("enabled_foccacia",!0)}}),b=Qre(),k=e.useCallback(async e=>{f.current?.abort();const t=new AbortController;f.current=t,p(e);try{if(await r("enabled_foccacia",e,{signal:t.signal}),t.signal.aborted)return;g(He.GCAL,e),p(void 0)}catch(s){if(t.signal.aborted)return;p(void 0),a(n.formatMessage({defaultMessage:'Failed to {action} "{connectorName}". You can try again.',id:"By4H3BHlCC"},{action:e?n.formatMessage({defaultMessage:"enable",id:"zwaLxXorJ8"}):n.formatMessage({defaultMessage:"disable",id:"BLBh9nebCL"}),connectorName:h?"Google Calendar":"Calendar search"}),{error:s,errorContext:{tags:{source:"search_connector_toggle"}},messageForLogging:"Failed to toggle search connector."})}},[r,a,n,h,g]);if(h&&C&&x)return null;if(h&&!C)return null;if(h&&!y.firstParty)return null;if(!l)return null;const w=n.formatMessage({defaultMessage:"Calendar search",id:"b7aUhdL5nd"}),M=n.formatMessage({defaultMessage:"Google Calendar",id:"kjenxGoM59"}),_={label:h?M:w,icon:hDe};if(!x){const e=n.formatMessage({defaultMessage:"Connect",id:"+vVZ/G11Zg"}),s=n.formatMessage({defaultMessage:"Reconnect",id:"Eg11ZYmdyO"});return{isConnected:!1,item:{..._,type:"button",suffix:t.jsx(bDe,{overrideCopy:h?s:e}),onAction:()=>v(),...h?{tooltip:n.formatMessage({defaultMessage:"Sign back into Google to use our improved connectors",id:"NHTRwY1ogC"})}:{},...d?null:b}}}const j=void 0!==m?m:u,S=x&&j;return{isConnected:!0,item:{..._,type:"toggle",checked:S,onAction:()=>{k(!j)},closeOnClick:!1,...d?null:b}}}({currentModel:s});return e.useMemo(()=>{const e=[],t=[];return n&&(n.isConnected?e.push(n.item):t.push(n.item)),i&&(i.isConnected?e.push(i.item):t.push(i.item)),a&&(a.isConnected?e.push(a.item):t.push(a.item)),{connectedSearchOptions:e,disconnectedSearchOptions:t}},[n,i,a])}function bDe({overrideCopy:e}){const s=JS();return t.jsx("div",{className:"opacity-0 group-hover:opacity-100 transition-opacity text-accent-100 font-small",children:e||s.formatMessage({defaultMessage:"Connect",id:"+vVZ/G11Zg"})})}const kDe=t.jsx(tU,{}),wDe=t.jsx(mb,{size:16}),MDe=t.jsx(yR,{}),_De=[];function jDe({includeConnectedOnly:s=!1,includeMcpServerItems:n=!1,includeToolSearchMode:a=!0,connectorOverride:i}={}){const r=JS(),{connectedSearchOptions:o,disconnectedSearchOptions:l}=yDe(),{connectedServers:c,authFailedServers:d,connectingCount:u}=fDe(i),{items:m,pendingCount:p}=function(){const s=KRe(),n=ie(),{data:a}=Sl(),{promptInputRef:i}=J(),r=e.useCallback((e,t,s)=>{const n=i.current?.getEditor();n&&n.chain().focus().insertContent(Zy(e,t,s)).run()},[i]),o=e.useMemo(()=>{if(!s||!n||!a)return QRe;const e=[];for(const t of a)if(t.enabled&&t.clis?.length)for(const s of t.clis)e.push({pluginId:t.id,cli:s});return e},[s,n,a]),l=e.useMemo(()=>[...new Set(o.map(e=>e.pluginId))],[o]),c=By(),{data:d}=pL({...qy(l)}),u=CL({queries:c?[]:l.map(e=>Wy(e)),combine:e=>e.map(e=>e.data)}),m=CL({queries:c?[]:o.map(({pluginId:e,cli:t})=>$y(e,t.cliName)),combine:e=>e.map(e=>e.data)}),{statusByPluginIndex:p,shimOpsByIndex:f}=e.useMemo(()=>{if(!c)return{statusByPluginIndex:u,shimOpsByIndex:m};const e=new Map((d??[]).map(e=>[e.pluginId,e]));return{statusByPluginIndex:l.map(t=>e.get(t)?.status),shimOpsByIndex:o.map(({pluginId:t,cli:s})=>e.get(t)?.shimOps[s.cliName])}},[c,d,l,o,u,m]),g=e.useMemo(()=>c?void 0===d?o.length:0:f.filter(e=>void 0===e).length,[c,d,o.length,f]),h=e.useMemo(()=>{if(0===o.length)return YRe;const e=new Map(l.map((e,t)=>[e,p[t]])),s=[];for(const[n,{pluginId:a,cli:i}]of o.entries()){if(!Gy(i,e.get(a)))continue;const o=[],l=new Set;for(const e of f[n]??[]){if(l.has(e.op))continue;if(l.add(e.op),"blocked"===e.permission)continue;const t=Ky(e.op);o.push({type:"connector-tool",label:t,toolName:e.op,connectorName:i.cliName,onAction:()=>r(e.op,t,i.cliName)})}0!==o.length&&s.push({type:"submenu",label:Qy(i),icon:t.jsx(Ls,{size:16,...Yy(i,16),name:i.cliName}),items:o,submenuClassName:"!max-h-[288px]"})}return s},[o,l,p,f,r]);return e.useMemo(()=>({items:h,pendingCount:g}),[h,g])}(),f=function(){const s=ie(),n=Fr()&&s,a=Fy();return e.useMemo(()=>n?[{type:"toggle",label:yr,icon:t.jsx(Ls,{size:16,type:"external",src:zy[br],name:yr}),checked:a,onAction:()=>Vy(!a),closeOnClick:!1}]:GRe,[n,a])}(),g=function(){const s=JS(),n=y("claudeai_cowork_sdk_mcp_reauth"),{addError:a}=ut(),i=gL(),r=ie(),o=z8(),l=r?o?.sessionId:void 0,c=r?o?.sdkMcpStatuses:void 0,d=e.useContext(Jy),u=Xy(),m="remote"===u?.type&&void 0!==u.mcpAuthenticate,p=e.useMemo(()=>["cowork-sdk-mcp-status",d??l],[d,l]),{data:f}=pL({queryKey:p,queryFn:()=>u?.getMcpServerStatuses?.()??[],enabled:n&&m,staleTime:3e4}),[g,h]=e.useState({}),C=e.useRef(new Set),x=e.useRef(!0);e.useEffect(()=>{x.current=!0;const e=C.current;return()=>{x.current=!1;for(const t of e)sDe(t)}},[]);const[v,b]=e.useState({}),k=e.useMemo(()=>l&&c?c.filter(e=>"needs-auth"===e.status).map(e=>({name:e.name,displayName:e.displayName??e.name,isManaged:"managed"===e.scope})):m&&f?f.filter(e=>"needs-auth"===e.status).map(e=>({name:e.name,displayName:e.displayName??e.name,isManaged:"managed"===e.scope})):[],[l,c,m,f]),w=e.useCallback(e=>l&&lo?.mcpAuthenticate?lo.mcpAuthenticate(l,e):u?.mcpAuthenticate?u.mcpAuthenticate(e):Promise.resolve({error:"No active session"}),[l,u]),M=e.useCallback(e=>l&&lo?.mcpReconnect?lo.mcpReconnect(l,e):u?.mcpReconnect?u.mcpReconnect(e):Promise.resolve({error:"No active session"}),[l,u]),_=e.useCallback((e,t)=>l&&lo?.mcpSubmitOAuthCallbackUrl?lo.mcpSubmitOAuthCallbackUrl(l,e,t):u?.mcpSubmitOAuthCallbackUrl?u.mcpSubmitOAuthCallbackUrl(e,t):Promise.resolve({error:"No active session"}),[l,u]),j=e.useCallback((e,t,s)=>{a(e,{error:t,messageForLogging:"cowork-sdk-mcp-auth",errorContext:{tags:{serverName:s,feature:"cowork-sdk-mcp-auth"}}})},[a]),S=e.useCallback(async(e,t)=>{let n;h(t=>({...t,[e]:"reconnecting"}));try{n=await cDe(M(e),aDe)}catch(a){n={error:a instanceof Error?a.message:String(a)}}return!!x.current&&(n.error?(h(t=>({...t,[e]:"retry-reconnect"})),j(s.formatMessage({defaultMessage:"Couldn't reconnect {name}: {error}",id:"YOz1zA29uc"},{name:t,error:lDe(s,n.error)}),n.error,e),!1):(h(t=>({...t,[e]:"idle"})),b(t=>({...t,[e]:""})),m&&i.invalidateQueries({queryKey:p}),!0))},[M,s,m,i,j,p]),L=e.useCallback(async(e,t,n)=>{let a;h(t=>({...t,[e]:"reconnecting"}));try{a=await cDe(_(e,n),aDe)}catch(i){a={error:i instanceof Error?i.message:String(i)}}return!!x.current&&(a.error?(b(t=>({...t,[e]:n})),h(t=>({...t,[e]:"awaiting-paste"})),j(s.formatMessage({defaultMessage:"Couldn't complete sign-in for {name}: {error}",id:"bcfGi8C+Qv"},{name:t,error:lDe(s,a.error)}),a.error,e),!1):S(e,t))},[_,S,s,j]),N=e.useCallback(async(e,t,n)=>{h(t=>({...t,[e]:"authorizing"}));const a=dDe();let i;try{i=await cDe(w(e),aDe)}catch(l){i={error:l instanceof Error?l.message:String(l)}}if(!x.current)return void a.close();if(i.error||!i.authUrl){a.close(),h(t=>({...t,[e]:"idle"}));const n=i.error??"no URL returned";return void j(s.formatMessage({defaultMessage:"Couldn't start sign-in for {name}: {error}",id:"WWw2W44/dd"},{name:t,error:lDe(s,n)}),n,e)}const r=oDe(i.authUrl);if(!r.ok)return a.close(),h(t=>({...t,[e]:"idle"})),void j(s.formatMessage({defaultMessage:"Refused to open sign-in URL for {name}: must be https",id:"rWsQWsj/f2"},{name:t}),"unsafe authUrl (non-https or unparseable)",e);if(!n&&!r.trusted&&!window.confirm(s.formatMessage({defaultMessage:"Open {hostname} to authorize {name}?",id:"AZAYog2LGY"},{hostname:r.hostname,name:t})))return a.close(),void h(t=>({...t,[e]:"idle"}));if(!i.callbackExpected){const e=new URL(i.authUrl);return e.searchParams.set("open_in_browser","1"),void a.navigate(e.toString())}if("custom"!==i.redirectScheme||!i.state)return a.navigate(i.authUrl),void h(t=>({...t,[e]:"awaiting-paste"}));h(t=>({...t,[e]:"awaiting-callback"})),a.navigate(i.authUrl),C.current.add(i.state);const o=await eDe(i.state,iDe);if(C.current.delete(i.state),!o.cancelled&&x.current){if(o.callbackUrl){const s=await L(e,t,o.callbackUrl);if(!x.current)return;return void(s&&a.close())}j(s.formatMessage({defaultMessage:"The browser didn't return for {name}. If you finished signing in, paste the callback URL below.",id:"g5CBvedxhJ"},{name:t}),o.error??"deeplink timeout",e),h(t=>({...t,[e]:"awaiting-paste"}))}},[w,s,j,L]),I=e.useCallback((e,t)=>{const n=(v[e]??"").trim();if(!n)return;let a;try{a=new URL(n)}catch{return void j(s.formatMessage({defaultMessage:"That doesn't look like a URL.",id:"Yep1kfh68S"}),"paste-not-a-url",e)}a.searchParams.has("code")||a.searchParams.has("error")?L(e,t,n):j(s.formatMessage({defaultMessage:"That URL is missing an authorization code. Copy the full address the browser was redirected to.",id:"OKdi45oPS7"}),"paste-missing-code",e)},[s,v,j,L]);return e.useMemo(()=>n&&0!==k.length?k.flatMap(e=>{const n=g[e.name]??"idle",a="authorizing"===n?s.formatMessage({defaultMessage:"Finish in browser, then click to reconnect",id:"nIEb3KeGUI"}):"retry-reconnect"===n?s.formatMessage({defaultMessage:"Click to retry reconnecting",id:"wIpyGT+5YJ"}):"awaiting-callback"===n?s.formatMessage({defaultMessage:"Waiting for browser\u2026",id:"nuWB/LxYc6"}):"awaiting-paste"===n?s.formatMessage({defaultMessage:"Paste the callback URL below",id:"3rKljC8I57"}):"reconnecting"===n?s.formatMessage({defaultMessage:"Reconnecting\u2026",id:"Yyp8xwgnUo"}):s.formatMessage({defaultMessage:"Reconnect",id:"Eg11ZYmdyO"}),i={type:"button",label:s.formatMessage({defaultMessage:"{name} (session)",id:"RfUzHqQ1Mt"},{name:e.displayName}),icon:t.jsx(Ls,{size:16,type:"external",src:void 0,name:e.displayName}),suffix:t.jsx($L,{name:"Warning",customSize:14,className:"text-warning-100"}),subtitle:a,disabled:"reconnecting"===n||"awaiting-callback"===n,closeOnClick:!1,onAction:()=>{"awaiting-paste"===n?(h(t=>({...t,[e.name]:"idle"})),b(t=>({...t,[e.name]:""}))):"authorizing"===n||"retry-reconnect"===n?S(e.name,e.displayName):N(e.name,e.displayName,e.isManaged)}};return"awaiting-paste"!==n?[i]:[i,{type:"search-input",label:e.displayName,placeholder:s.formatMessage({defaultMessage:"http://localhost:\u2026/callback?code=\u2026",id:"mHVfgdsDNh"}),value:v[e.name]??"",autoFocus:!0,onChange:t=>b(s=>({...s,[e.name]:t})),onKeyDown:t=>{"Enter"===t.key&&(t.preventDefault(),I(e.name,e.displayName))}}]}):nDe,[k,n,g,s,N,S,I,v])}(),h=$Re(),C=ls,x=gv(),v=e.useCallback(()=>{ib()?window.open(C,"_blank"):x(C)},[x,C]),b=e.useMemo(()=>({type:"button",icon:wDe,label:r.formatMessage({defaultMessage:"Manage connectors",id:"cqx+RdJnHp"}),onAction:v}),[r,v]),k=function(){const s=JS(),n=Vi(),a=gv(),i=e.useCallback(()=>{n({section:"connectors"})},[a,n]);return e.useMemo(()=>({type:"button",icon:t.jsx(lU,{size:16}),label:s.formatMessage({defaultMessage:"Browse connectors",id:"8Q+Q5LuGum"}),onAction:i}),[s,i])}(),w=function(){const s=JS(),{show:n,limitReached:a}=ZRe(),i=BRe(),r=VRe(e=>e.open),o=e.useMemo(()=>({type:"button",icon:t.jsx(bH,{size:16}),label:s.formatMessage({defaultMessage:"Add custom connector",id:"2+VODHagkt"}),disabled:a,tooltip:a?i:void 0,onAction:a?void 0:()=>r({connectOnCreate:!0})}),[s,a,i,r]);return n?o:null}(),M=e.useMemo(()=>({type:"submenu",icon:t.jsx(GC,{size:16}),label:r.formatMessage({defaultMessage:"Add connector",id:"QDa8Q+GNMs"}),items:[k,...w?[w]:[]]}),[r,k,w]),_=function(){const t=JS(),s="off"===(Fe("tool_search_mode")??"auto")?"off":"on",{toggleConversationSetting:n}=Qe({source:"toolSearchModeMenu"}),a=e.useCallback(e=>{n("tool_search_mode",e)},[n]),i=e.useMemo(()=>[{mode:"on",label:t.formatMessage({defaultMessage:"Load tools when needed",id:"TQakOWx/s6"}),subtitle:t.formatMessage({defaultMessage:"Chats compact less since tools aren't pre-loaded.",id:"zNp8ouRi1z"})},{mode:"off",label:t.formatMessage({defaultMessage:"Tools already loaded",id:"2L6XHrHX3B"}),subtitle:t.formatMessage({defaultMessage:"Chats compact more often since tools are always there.",id:"hLphZYtEL1"})}],[t]);return e.useMemo(()=>({type:"submenu",label:t.formatMessage({defaultMessage:"Tool access",id:"qCcDQ3Zz4w"}),icon:MDe,items:i.map(({mode:e,label:t,subtitle:n})=>({type:"checkbox",label:t,subtitle:n,checked:s===e,closeOnClick:!0,onAction:()=>a(e)}))}),[s,t,i,a])}(),j=gx("cache_scoped_prompt_ordering"),S=j.value?.enable_tool_search,L=ie(),N=ub(),I=a&&S&&!L,T=n?h:_De;return{items:e.useMemo(()=>{if(N)return[{type:"section-header",label:r.formatMessage({defaultMessage:"Dispatch can use every connector you've authenticated.",id:"yUBTYfWmBC"})}];const e=o.length>0||c.length>0||m.length>0||f.length>0||d.length>0||g.length>0||T.length>0,t=(u>0||p>0)&&!e?[{type:"loading"}]:[],n=l.length>0;return s?[...o,...c,...m,...f]:[...o,...c,...m,...f,...d,...g,...T,...t,...e&&n?[{type:"separator",label:"separator-connectors-0"}]:[],...l]},[N,r,s,o,c,m,f,d,g,T,u,p,l]),headerItems:e.useMemo(()=>[M,b],[M,b]),footerItems:e.useMemo(()=>I?[_]:[],[I,_]),browseConnectorsMenuItem:k,addCustomConnectorMenuItem:w,isDispatchSession:N,connectedServerCount:c.length+m.length+f.length,connectingCount:u+p,connectedSearchCount:o.length,mcpServerItemCount:T.length,authFailedCount:d.length+g.filter(e=>"button"===e.type).length}}const SDe=t.jsx(it,{type:He.GITHUB,size:20});const LDe=t.jsx(it,{type:He.GDRIVE,size:16}),NDe=t.jsx(it,{type:He.GDRIVE,variant:Ns.DOCS,size:16});function IDe(){const t=JS(),s=function(){const{promptInputRef:t}=J();return e.useCallback(e=>{const s=t?.current?.getEditor();s&&s.chain().focus().insertContent({type:"text",text:`${EH(e)} `}).run()},[t])}(),n=kE(),{isDriveAuthenticated:a}=fE(),i=$s(),{recentDriveDocs:r,isLoading:o}=yE(!i),[l,c]=e.useState(""),d=e.useMemo(()=>({icon:LDe,label:t.formatMessage({defaultMessage:"Add from {drive}",id:"hwJ50OkM/9"},{drive:"Google Drive"})}),[t]),u=e.useMemo(()=>new Ps(r,{includeScore:!0,isCaseSensitive:!1,ignoreLocation:!0,threshold:.4,keys:["title"]}),[r]),m=e.useMemo(()=>l.trim()?u.search(l,{limit:8}).map(e=>e.item):r.slice(0,8),[l,r,u]),p=e.useMemo(()=>({type:"search-input",label:t.formatMessage({defaultMessage:"Search Drive",id:"cwjgpY/hPP"}),placeholder:t.formatMessage({defaultMessage:"Search documents...",id:"OT41Mzx1i1"}),value:l,onChange:c,autoFocus:!0}),[t,l]),f=e.useMemo(()=>{const e=o?[{type:"button",label:t.formatMessage({defaultMessage:"{drive} documents loading...",id:"PjuSZ/7RIb"},{drive:"Drive"}),disabled:!0}]:m.length?m.map(e=>({type:"button",label:e.title??"Untitled",icon:NDe,onAction:()=>s(e.uri)})):[{type:"button",label:l.trim()?t.formatMessage({defaultMessage:"No matching documents",id:"YgoQMf/8DX"}):t.formatMessage({defaultMessage:"No recent {drive} documents",id:"XepM9W1Mo/"},{drive:"Drive"}),disabled:!0}];return[p,...e]},[s,m,t,o,p,l]);return e.useMemo(()=>n&&a?{...d,type:"submenu",items:f,align:"start"}:null,[d,a,n,f])}const TDe=t.jsx(fb,{});function ADe(){const{haystackProject:t,checked:s,shouldHide:n,disabled:a}=function(){const{haystackProject:e}=SC(),t=Ie(),s=jC(),n=pb();return{haystackProject:e,checked:t===e?.uuid,shouldHide:!e||!s,disabled:n}}(),i=RH(),r=wp(),o=e.useCallback(()=>{t&&i(t.uuid)},[t,i]);return e.useMemo(()=>n?null:{type:"checkbox",label:r,icon:TDe,checked:s,onAction:o,disabled:a,closeOnClick:!0},[n,s,a,r,o])}const EDe=t.jsx(is,{}),RDe=t.jsx(GC,{});function DDe(){const t=JS(),s=Ie(),n=as(),a=gb(),i=function(){const{projectUuid:t,conversation:s}=rd(),n=hb(),{moveToProject:a}=TH(),{removeFromProject:i}=Cb(),r=e.useCallback(async(e,r)=>{t===e?s?.id?await i([s.id],{showSuccess:!1}):n(void 0):s?.id&&e?await a([s.id],e,r,{enableNavigation:!0}):n(e)},[s?.id,a,t,i,n]);return r}(),{setCreateProjectModalIsOpen:r}=AH();return e.useMemo(()=>{if(!n)return[];const e=a?.slice(0,8).map(e=>({type:"checkbox",label:e.name,subtitle:e.creator.full_name,onAction:()=>{i(e.uuid,e.name)},icon:EDe,checked:e.uuid===s,closeOnClick:!0}))||[],o={type:"button",icon:RDe,label:t.formatMessage({defaultMessage:"Start a new project",id:"0y7bg6nA29"}),onAction:()=>{VN(),r({isOpen:!0,moveAttachments:!1})}};return[...e,...e.length>0?[{type:"separator",label:"projects-separator"}]:[],o]},[n,a,t,s,i,r])}function HDe(){const t=JS(),{isProjectLocked:s}=re(e=>({isProjectLocked:e.isProjectLocked})),n=as(),a=function(){const e=kp();return"string"==typeof e&&e.startsWith("/project/")}(),i=DDe(),r=t.formatMessage({defaultMessage:"Add to project",id:"+mqxxzVczn"});return e.useMemo(()=>s||!n||a?null:{type:"submenu",icon:EDe,label:r,items:i},[s,n,a,r,i])}const PDe=t.jsx(qP,{});const UDe=t.jsx(OI,{});const ODe=t.jsx(oU,{}),FDe=t.jsx(WH,{});function VDe(){const{conversation:e}=rd(),t=XZ(e),{model:s}=Mp(),n=rr(e?.id||null),a=(e=>{const{hasCapability:t}=Ae("chat");return t(e,"web_search")})(s??n),i=ke("web_search"),r=vb(i.status);let o=t&&a,l=!1,c=!1;return!i.isAvailable?(o=!1,l=!0):a||(c=!0),{checked:o,disabled:l,isModelIncompatible:c,shouldHide:"blocked_by_platform"===i.status,accessTooltip:r}}function zDe(){const s=JS(),n=r(),a=Qre(),{checked:i,disabled:o,isModelIncompatible:l,shouldHide:c,accessTooltip:d}=VDe(),{blocksWebSearch:u}=bp(),m=function({checked:t}){const{conversation:s}=rd(),{toggleSearchTool:n}=Yre(s);return e.useCallback(()=>{n("enabled_web_search",!t)},[t,n])}({checked:i});return e.useMemo(()=>c?null:u&&!o?{type:"checkbox",label:s.formatMessage({defaultMessage:"Web search",id:"x0W7xxxEcv"}),icon:FDe,checked:!1,disabled:!0,closeOnClick:!1,tooltip:t.jsx(hs,{id:"1cbdpyu",dangerouslyVisiblePublicValues:{a:e=>t.jsx(ds,{onClick:()=>n.push("/new"),children:e})}})}:{type:"checkbox",label:s.formatMessage({defaultMessage:"Web search",id:"x0W7xxxEcv"}),icon:ODe,checked:i,disabled:o,onAction:m,tooltip:d,closeOnClick:!0,...l?a:{}},[c,s,n,i,o,m,d,l,a,u])}function ZDe({placement:s,instanceSuffix:n=""}){const a=za(),{isAgentNewRoute:i}=J(),r=ra(),o=i&&r.considerEnabledForNonUI,l=function(s,n=""){const a=JS(),i=e.useCallback(()=>xb(s,n),[s,n]),{shortcutString:r}=Pv("file_upload"),o=_y(r);return e.useMemo(()=>({type:"button",label:a.formatMessage({defaultMessage:"Add files or photos",id:"0S+iNJivmx"}),icon:UDe,onAction:i,suffix:t.jsx(Jre,{text:o})}),[a,i,o])}(s,n),c=function(){const t=JS(),s=m(),{addError:n}=ut(),{handleUpload:a}=J(),i=ae(),r=e.useCallback(async()=>{i.track({event_key:"claudeai.plus_menu.screenshot_clicked"});let e=null;try{e=await DH({width:1568,height:1568})}catch(o){F(o,{source:"screen_capture"}),n(t.formatMessage({defaultMessage:"Could not capture screen.",id:"uGOETn5bfV"}),{error:o,messageForLogging:"Could not capture screen"})}if(!e)return;const s=await fetch(e.imageDataUrl).then(e=>e.blob()),r=new File([s],"screenshot.png",{type:"image/png"});await a([r])},[i,n,t,a]);return e.useMemo(()=>s||zn()?null:{type:"button",label:t.formatMessage({defaultMessage:"Take a screenshot",id:"aTaOpCB71M"}),icon:PDe,onAction:r},[t,s,r])}(),d=HDe(),u=IDe(),p=$s(),f=function(){const t=JS(),s=bE(),{isGithubAuthenticated:n}=pE({fetchImmediately:!0}),{setGithubModalIsOpen:a}=AH(),i=e.useCallback(()=>{a(!0)},[a]);return e.useMemo(()=>s&&n?{type:"button",icon:SDe,label:t.formatMessage({defaultMessage:"Add from {github}",id:"h3J3E4bRfj"},{github:"GitHub"}),onAction:i}:null,[t,n,i,s])}(),g=yb(),h=function({includeMcpServerItems:s=!1,includeToolSearchMode:n=!0,connectorOverride:a}={}){const i=Du(),{items:r,headerItems:o,footerItems:l,browseConnectorsMenuItem:c,addCustomConnectorMenuItem:d,isDispatchSession:u,connectedServerCount:m,connectingCount:p,connectedSearchCount:f,mcpServerItemCount:g,authFailedCount:h}=jDe({includeMcpServerItems:s,includeToolSearchMode:n,connectorOverride:a}),C=i&&!(m>0||p>0||f>0||g>0||h>0),x=f>0||m>0||p>0||g>0||h>0,v=JS();return e.useMemo(()=>{const e=h>0?t.jsxs("span",{className:"flex items-center gap-1 text-warning-100",children:[t.jsx(Gt,{size:14}),t.jsx("span",{className:"text-xs",children:h})]}):void 0;return u?{type:"submenu",label:v.formatMessage({defaultMessage:"Connectors",id:"2mMJRvsAg1"}),icon:kDe,suffix:e,submenuHeaderItems:o,items:r,submenuFooterItems:l}:C?{type:"loading"}:x?{type:"submenu",label:v.formatMessage({defaultMessage:"Connectors",id:"2mMJRvsAg1"}),icon:kDe,suffix:e,submenuHeaderItems:o,maxVisibleItems:6.5,items:r,submenuFooterItems:l}:d?{type:"submenu",label:v.formatMessage({defaultMessage:"Add connector",id:"QDa8Q+GNMs"}),icon:kDe,items:[c,d]}:{type:"button",label:v.formatMessage({defaultMessage:"Add connector",id:"QDa8Q+GNMs"}),icon:kDe,onAction:c.onAction}},[C,u,x,o,v,c,d,r,l,h])}({includeMcpServerItems:!0}),C=bb(),x=ADe(),v=function(){const t=JS(),s=Qre({checked:!1}),{checked:n,disabled:a,isModelIncompatible:i,shouldHide:r,switchToDefaultModelUponEnabling:o,isAgentModeActive:l,isHaystackProject:c,searchToolsAllowed:d,searchToolsEnabled:u,canAutoEnableWebSearch:m}=eoe(),p=wp(),f=toe({initialValue:n,switchToDefaultModelUponEnabling:o,isModelIncompatible:i}),g=e.useMemo(()=>l?t.formatMessage({defaultMessage:"Coming soon",id:"e61Jf3TcmS"}):c?t.formatMessage({defaultMessage:"Research isn't available while using {name}",id:"1qoUgleiO5"},{name:p}):d?u||m?void 0:t.formatMessage({defaultMessage:"Enable a search integration to use research",id:"WyiVeak7w5"}):t.formatMessage({defaultMessage:"Your administrator must enable a search tool to use research",id:"CzjOV5rgPZ"}),[m,p,t,l,c,d,u]);return e.useMemo(()=>r?null:{type:"checkbox",label:t.formatMessage({defaultMessage:"Research",id:"JEe7dVso7F"}),icon:Xre,checked:n,disabled:a,tooltip:g,onAction:f,closeOnClick:!0,...i?{...s,checked:!1}:{}},[r,t,n,a,g,f,i,s])}(),y=zDe();return{menuItems:e.useMemo(()=>{const e=a||o,t=[l,...c?[c]:[],...!e&&d?[d]:[],...e||!u||p?[]:[u],...!e&&f?[f]:[]],s=[...g?[g]:[],...h?[h]:[],...C?[C]:[]],n=e?[]:[...x?[x]:[],...v?[v]:[],...y?[y]:[]];return[...t,...s.length>0?[{type:"separator",label:"separator-tools"},...s]:[],...n.length>0?[{type:"separator",label:"separator-modes"},...n]:[]]},[a,o,l,c,d,u,p,f,g,h,C,x,v,y])}}function BDe({trigger:s,chatInputPlacement:n,instanceSuffix:a="",disabled:i}){const r=e.useCallback(()=>{xb(n,a)},[n,a]),o=e.useCallback((e,n)=>s||t.jsx(WDe,{...e,onDoubleClick:r,disabled:i,isMenuOpen:n.open}),[s,i,r]),{track:l}=ae(),c=e.useRef(!1),d=e.useCallback((e,t)=>{ERe(e,t)||c.current===e||(c.current=e,kb("input_menu",e),e&&(l({event_key:"claudeai.plus_menu.opened"}),mm(l,"home.plus_menu.open")))},[l]);return e.useEffect(()=>()=>{c.current&&(c.current=!1,kb("input_menu",!1))},[]),t.jsxs(KL.Root,{onOpenChange:d,children:[t.jsx(KL.Trigger,{render:o}),t.jsx(KL.Popup,{align:"start",side:"bottom",sideOffset:4,collisionPadding:10,className:"!max-h-[min(var(--available-height),24rem)]",children:t.jsx(qDe,{chatInputPlacement:n,instanceSuffix:a})})]})}function qDe({chatInputPlacement:e,instanceSuffix:s}){const{menuItems:n}=ZDe({placement:e,instanceSuffix:s});return t.jsxs(t.Fragment,{children:[n.map((e,s)=>{const n="search-input"===e.type?`search-input-${s}`:"label"in e?`${e.label}-${s}`:s;return t.jsx(DRe,{...e},n)}),""]})}function WDe({disabled:e,isMenuOpen:s,children:n,...a}){const i=JS().formatMessage({defaultMessage:"Add files, connectors, and more",id:"ITCmbu5TgN"});return t.jsx(iN,{content:s?void 0:i,side:"bottom",shortcut:"/",children:t.jsx(rN,{...a,iconOnly:!0,icon:"Add",variant:"ghost","aria-label":i,tooltip:!1,disabled:e,className:"ml-0.5"})})}const $De=t.jsx(_b,{}),GDe={current:!1,gen:0};function KDe(){const t=JS(),{addError:s}=ut(),{track:n}=ae(),{localSessionId:a,addPendingFolder:i,pendingFolders:r}=J(),o=e.useContext(sp),l=Tc(a??null),c=ga(a),d=Boolean(Ju?.browseFolder),u=c?Boolean(lo?.grantRemoteSessionFolders??lo?.grantRemoteSessionFolder):Boolean(lo?.addFolderToSession),m=Mb(a),p=d&&u&&m,f=e.useCallback(async()=>{if(!p||!a)return;if(GDe.current)return void s("Folder picker is busy. Check for a hidden dialog, or restart the app.",{errorContext:{tags:{source:"cowork_add_folder"}},messageForLogging:"add-folder re-click while guard held"});GDe.current=!0;const e=++GDe.gen,l=o?.getState().sessionContext,d=l?.sessionData?.userSelectedFolders??[],u=new Set([...d,...r]).size,m=l?.messages?.length??0,f=setTimeout(()=>{GDe.gen===e&&(console.warn("cowork_add_folder: browseFolder exceeded watchdog; releasing re-entrancy guard"),GDe.current=!1)},3e5);try{const e=await(Ju?.browseFolder?.("Add a folder to this session"));e&&(i(e),(e=>{d.includes(e)||r.includes(e)||n({event_key:"claudeai.cowork.session.folder_added",session_id:a,session_type:c?"remote":"local",timing:"mid_session",source:"composer_add_folder",folders_before:u,folders_after:u+1,message_count:m})})(e))}catch(g){s(t.formatMessage({defaultMessage:"Couldn't open the folder picker. You can try again.",id:"IXVHM26QBB"}),{error:g,errorContext:{tags:{source:"cowork_add_folder"}},messageForLogging:"browseFolder threw"})}finally{clearTimeout(f),GDe.gen===e&&(GDe.current=!1)}},[t,p,a,s,i,r,c,o,n]);return e.useMemo(()=>p&&a&&!l?{type:"button",label:t.formatMessage({defaultMessage:"Add folder",id:"lhYeghbH/7"}),icon:$De,onAction:f}:null,[t,f,p,a,l])}function YDe({disabled:e}){const s=JS(),{localSessionId:n}=J(),a=wb(n),i=KDe();if(!i){const e=ga(n)&&Boolean(Ju?.browseFolder)&&Boolean(lo?.grantRemoteSessionFolders??lo?.grantRemoteSessionFolder);if("unbound"===a&&e){const e=s.formatMessage({defaultMessage:"Add folder",id:"lhYeghbH/7"});return t.jsx(gN,{reason:s.formatMessage({defaultMessage:"To use files and apps on your computer, start a new task.",id:"lY2wL/Xnbq",description:"Explains the not-linked-to-a-computer indicator and the disabled add-folder control on remote sessions"}),side:"bottom",children:t.jsx(rN,{iconOnly:!0,icon:"FolderPlus",variant:"ghost","aria-label":e,tooltip:!1,disabled:!0,"data-testid":"cowork-add-folder-button"})})}return null}const r=s.formatMessage({defaultMessage:"Add folder",id:"lhYeghbH/7"});return t.jsx(iN,{content:r,side:"bottom",children:t.jsx(rN,{iconOnly:!0,icon:"FolderPlus",variant:"ghost","aria-label":r,tooltip:!1,disabled:e,"data-testid":"cowork-add-folder-button",onClick:()=>i.onAction?.()})})}function QDe({onClick:e,indicatorActive:s,disabled:n,...a}){return!s||n?null:t.jsx(jb,{onClick:e,indicatorActive:s,disabled:n,showRemoveIcon:!0,...a})}const JDe=t.jsx(gU,{size:20}),XDe=t.jsx(is,{}),eHe=t.jsx(fb,{});function tHe({hideIndicators:e}){const s=nl(),{isAgentNewRoute:n,coworkComposerScope:a}=J(),i=!s.loading&&s.enabled&&n&&!a;return e?null:t.jsx(aA,{children:t.jsx("div",{className:"flex flex-row items-center min-w-0 gap-1",children:t.jsxs(nA,{children:[t.jsx(sHe,{},"research"),i?t.jsx(Sb,{},"yukon_silver_project"):t.jsx(aHe,{},"project"),""]})})})}function sHe(){return eB()?t.jsx(nHe,{}):null}function nHe(){const e=JS(),{checked:s,disabled:n,switchToDefaultModelUponEnabling:a,isModelIncompatible:i}=eoe(),r=toe({initialValue:s,switchToDefaultModelUponEnabling:a,isModelIncompatible:i});return t.jsx(QDe,{indicatorActive:s,disabled:n,onClick:r,icon:JDe,tooltip:e.formatMessage({defaultMessage:"Research mode",id:"lYf0AUt2RH"}),hideIndicatorText:!0,layoutId:"research-indicator"})}function aHe(){const e=JS(),s=Ie(),{conversation:n}=rd(),a=hb(),{removeFromProject:i,isRemovingConversation:r}=Cb(),{data:o}=Ee(s),l=_p(),c=kp().includes("/project/"),d=pb(),u=o?.name?e.formatMessage({defaultMessage:"Project: {name}",id:"/oz1VumDrX"},{name:o.name}):e.formatMessage({defaultMessage:"Project",id:"k36uSwr4q5"});if(c)return null;const m=!l||!d,p=!!n?.id&&r(n.id);return d?t.jsx(jb,{indicatorActive:!0,showRemoveIcon:m,disabled:!0,hideIndicatorText:!0,icon:eHe,tooltip:o?.name,"aria-label":u,layoutId:"project-indicator"}):t.jsx(QDe,{indicatorActive:Boolean(s),hideIndicatorText:!0,icon:p?t.jsx(ht,{size:"sm",inheritColor:!0}):l?eHe:XDe,showRemoveIcon:m,onClick:async()=>{s&&!p&&m&&(n?.id?await i([n.id]).catch(()=>{}):a(void 0))},disabled:p,tooltip:o?.name,"aria-label":u,layoutId:"project-indicator"})}function iHe({completionsGate:e,hubAllowed:t}){const s=e?"c2":"c1";if("undefined"==typeof window)return s;const n=Lb();if("c3"===n){return Boolean("")&&t?"c3":s}return"c1"===n||"c2"===n?n:s}function rHe(){return ii()?iHe({completionsGate:!1,hubAllowed:!1}):"c1"}function oHe(){try{const e=new URL(window.location.href),t=e.searchParams.get("mode")?.replace(/^"(.*)"$/,"$1");"c1"!==t&&"c2"!==t&&"c3"!==t||("/new"===e.pathname?e.searchParams.set("mode","chat"):e.searchParams.delete("mode")),window.location.replace(e.toString())}catch{window.location.reload()}}function lHe(){}function cHe({onlyIfHubEligible:s=!1}={}){const n=y("__gb__4216219620"),{track:a}=ae(),i=ce("__gb__1427479422",n),r=!1,o=e.useSyncExternalStore(Nb,Ib,lHe);if(!n||s)return null;const l=iHe({completionsGate:i,hubAllowed:r}),c=Tb(),d=c?.mode??null;return t.jsx(mHe,{mode:l,bard:o,pinned:d,gateDefault:i?"c2":"c1",hubEligible:Boolean(r),onSelect:void 0})}const dHe="Completion backend",uHe="shrink-0 inline-flex items-center rounded-md border px-1.5 py-0.5 font-mono text-[10px] font-medium leading-none select-none";function mHe({mode:s,bard:n,pinned:a=null,gateDefault:i="c1",hubEligible:r=!1,onSelect:o}){const[l,c]=e.useState(!1),d="c2"===s,u=s.toUpperCase(),m=d?n?.mode:void 0,p=m?m.replace(/_primary$/,""):u,f="c3"===s?"border-brand-000/30 bg-brand-000/10 text-brand-000":d?"border-warning-000/30 bg-warning-000/10 text-warning-000":"border-accent-pro-000/30 bg-accent-pro-000/10 text-accent-pro-000",g=d&&n?.downgrade?" ring-1 ring-inset ring-danger-000":"",h=d&&n?[n.mode&&`mode=${n.mode}`,n.src&&`src=${n.src}`,n.downgrade&&`downgrade=${n.downgrade}`].filter(Boolean).join(" \xb7 "):"",C=`Internal: completion endpoint ${u}${h?` \xb7 ${h}`:""}`;const x=`${uHe} ${f}${g}`;if(o){const e=Boolean("")?{c1:"Python backend",c2:"Go backend",c3:"Hub"}:{c1:"C1",c2:"C2",c3:"C3 (hub)"},s=[{value:null,label:"Default",hint:e[i]},{value:"c1",label:e.c1},{value:"c2",label:e.c2},...r?[{value:"c3",label:e.c3}]:[]];return t.jsxs(KL.Root,{open:l,onOpenChange:c,children:[t.jsx(KL.Trigger,{render:t.jsx(pHe,{tooltip:`${C} \u2014 click to choose a backend`,tooltipWide:Boolean(null),menuOpen:l,pillClassName:`${x} cursor-pointer hover:border-current`,pillLabel:p})}),t.jsxs(KL.Popup,{align:"end",side:"top",sideOffset:4,children:[t.jsx(KL.Header,{children:dHe}),t.jsx(KL.Group,{children:s.map(e=>t.jsx(KL.Item,{checked:a===e.value,checkedRole:"radio",hint:e.hint,onClick:()=>o(e.value),children:e.label},e.value??"default"))})]})]})}return t.jsx(iN,{multiline:!0,side:"top",content:C,children:t.jsx("span",{"data-testid":"internal-diagnostics-badge",className:x,"aria-hidden":"true",children:p})})}function pHe({tooltip:e,tooltipWide:s,menuOpen:n,pillClassName:a,pillLabel:i,...r}){return t.jsx(iN,{multiline:!0,side:"top",className:s?"!max-w-[20rem]":void 0,content:n?void 0:e,children:t.jsx("button",{type:"button",...r,onClick:e=>{e.stopPropagation(),r.onClick?.(e)},"data-testid":"internal-diagnostics-badge","aria-label":"Choose completion backend",className:a,children:i})})}const fHe=fn(()=>a(()=>import("./c7772617e-B8O8t5vT.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(e=>e.ChorusSurfaceSelect),{}),gHe=fn(()=>a(()=>import("./c2ef73c0f-KKW6okCv.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(e=>e.ChorusProjectSelect),{}),hHe=e.memo(({title:s,text:n,badgeText:a,anchorRef:i,onClose:r,ctaText:o,onCtaClick:l})=>{const c=e.useCallback(()=>{l?.(),r()},[l,r]);return t.jsx(oN,{open:!0,onOpenChange:e=>!e&&r(),anchor:i,side:"bottom",introDelay:.5,variant:"accent","aria-label":n,showClose:!0,title:s??void 0,badge:a?t.jsx(vN,{size:"xxs",children:a}):void 0,action:o&&l?t.jsx(rN,{size:"sm",variant:"onContent",onClick:c,children:o}):void 0,children:n})});hHe.displayName="NuxTooltip";const CHe=e.memo(function({placement:s,instanceSuffix:n="",isPrimaryComposer:a=!0,isDisabled:i,disabled:r,skipInitialAnimation:o=!1}){const l=JS(),c=Ab(),d=Eb(),u=Ie(),{attachments:p,files:f,syncSourceUuids:g}=re(e=>({attachments:e.attachments,files:e.files,syncSourceUuids:e.syncSourceUuids})),{model:h,displayedModel:C,setModel:x,stopSampling:v,conversation:b,isSending:k,isChatSyncing:w,isProjectSyncing:M,isModelSelectorOpen:_,setIsModelSelectorOpen:j,isNewConversation:S,currentCompassTask:L,isAgentNewRoute:N,isLocalAgentRoute:I,isAgentMode:T,localSessionId:A,frontendQueueEnabled:E,isQueueFull:R,submitOrQueue:D,reviewCount:H,pendingFolders:P,hasActiveSendInterceptor:U,coworkComposerScope:O,coworkEffortEnabled:F}=J(),V=af(),z=E&&!V&&!T,Z=e.useCallback(()=>{D()},[D]),B=e.useCallback(()=>v(),[v]),q=Zm(b?.id),W=af(),$=q&&!W&&!U,G=$?l.formatMessage({defaultMessage:"Waiting for a previous response in this conversation to finish...",id:"LbkVUKh/it"}):w||M?l.formatMessage({defaultMessage:"Syncing knowledge...",id:"QuwefnZNVj"}):void 0,K=e.useMemo(()=>[...f,...b?.files??[]].some(e=>e.file_kind===Zt.Image||e.file_kind===Zt.SanitizedDocument),[f,b]),Y=y("claude_ai_ms_v2");y("__gb__44653788");const Q=y("voice_model_selector_enabled"),X=Q&&Y,ee=ga(A),te=I&&!ee,se=I&&ee,ne=y("cowork_lock_midsession_model_main"),ie=ce("cowork_warn_midsession_model_main",(te||se)&&Rb(A))&&(te||se)&&Rb(A),oe=ne&&te&&!ie,le=ol(e=>e.showCacheMissWarning),{track:de}=ae(),ue=e.useCallback((e,t)=>{de({event_key:`claudeai.cowork.cache_miss.warning_modal.${e}`,session_id:A,session_type:ee?"remote":"local",from_model:C??h??null,...t})},[de,A,ee,C,h]),me=e.useCallback((e,t)=>new Promise(s=>{le(t,(t,n)=>{ue(t?"confirmed":"cancelled",t?e:{...e,reason:n??"user"}),s(t)}),ue("shown",e)}),[le,ue]);e.useEffect(()=>{if(ie)return()=>{ol.getState().resolveCacheMissWarning(!1,"unmount")}},[ie,A]);const{nameFor:fe}=Ae(),ge=e.useMemo(()=>ie?e=>me({kind:"model",to_model:e.model},{kind:"model",targetLabel:mEe(e,{serverName:fe(e.model)})}):void 0,[ie,me,fe]),he=ie&&Db(A),Ce=e.useMemo(()=>he?(e,t)=>me({kind:"effort",from_effort:t?.from??null,to_effort:t?.to??null},{kind:"effort",targetLabel:e}):void 0,[he,me]),xe=ie&&Hb(A),ve=e.useMemo(()=>xe?(e,t)=>(j(!1),me({kind:"thinking",from_thinking:void 0===t?null:t.from??"off",to_thinking:void 0===t?null:t.to??"off"},{kind:"thinking",targetLabel:e})):void 0,[xe,me,j]),ye=Pb(b?.id??null),be=Ub(b?.id??null),ke=cy(e=>e.bySurface.chat?.effort),we=cy(e=>e.bySurface.chat?.mode),Me=ye(b?.id?h:void 0,h,ke),_e=be(b?.id?h:void 0,h,we);e.useEffect(()=>{if(!a)return;const e=Vg.getState();Q?h&&(e.model!==h&&Vg.setState({model:h}),(Me??null)!==e.effort&&Vg.setState({effort:Me??null}),(_e??null)!==e.thinkingMode&&Vg.setState({thinkingMode:_e??null})):null===e.model&&null===e.effort&&null===e.thinkingMode||(Vg.setState({model:null,effort:null,thinkingMode:null}),Tue.clearPendingModelRestart())},[a,Q,h,Me,_e]);const je=e.useCallback(e=>{x(e.model),X&&Tue.setModel(e.model).catch(e=>tue("[ChatInputActions] voice setModel failed",e))},[x,X]),Se=e.useCallback(e=>{X&&Tue.setEffort(e).catch(e=>tue("[ChatInputActions] voice setEffort failed",e))},[X]),Le=e.useCallback(e=>{X&&Tue.setThinkingMode(e?ty(e):void 0).catch(e=>tue("[ChatInputActions] voice setThinkingMode failed",e))},[X]),[Ne,Te]=FI({box:"border-box"}),Ee=Te.width||null,Re=null===Ee||Ee<480,De=null===Ee||Ee<396,He=ra(),Pe=Ob(e=>e.startsWith(`${Fb}/`)),Ue=Vb(),Oe=Ob(zb),Fe=N&&!Oe&&Ue&&(He.considerEnabledForNonUI||He.loading),Ve=N&&!Oe&&!Fe,ze=m(),Ze=No()&&!ze,Be=()=>{},qe=e.useMemo(()=>O&&{selectedFolders:O.selectedFolders,selectedProjectUuids:O.selectedProjectUuids,toggleSelectedFolder:Be,addSelectedFolder:Be,toggleSelectedProject:Be},[O]),{isChorus:We,showChin:$e,hideProjectPicker:Ge,target:Ke}=iEe(),Ye=We&&$e&&"chat"!==Ke.kind,Qe=We&&"cowork"===Ke.kind,Je=y("yukon_silver_thinking"),Xe=He.considerEnabledForNonUI&&(F||N&&!Oe||te||se)&&!oe,et=Je&&Xe,tt=WK(se?A:null),st=Xe?tt:void 0,nt=e.useCallback(e=>{A&&ZK.getState().patchSession(A,{effort:e})},[A]),at=e.useRef(null),it=e.useRef(null),rt=oI(e=>e.type),ot=oI(e=>e.nuxTitle),lt=oI(e=>e.nuxText),ct=oI(e=>e.nuxBadgeText),ut=oI(e=>e.cta),mt=oI(e=>e.setChatTooltip),pt=oI(e=>e.clearChatTooltip),ft=FJ(),gt=Zb(),ht=pe(),Ct=kA(),{data:xt}=hQ(Ct,l.locale);e.useEffect(()=>{const e=gt.get("spotlight_nux");if(!e||!ht||!xt?.experiences)return;const t=xt.experiences.find(t=>t.id===e||t.key===e);if(!t?.content)return;const s=_A.safeParse(t.content);if(!s.success)return;const n=s.data.ctaActions.find(e=>jA(e)&&Boolean(e.nuxText));if(!n?.nuxText)return;n.postActionModel&&ft(n.postActionModel,n.sticky),mt("model-selector",n.nuxText,{badgeText:n.nuxBadgeText});const a=new URL(window.location.href);a.searchParams.delete("spotlight_nux"),window.history.replaceState({},"",a.toString())},[gt,ht,xt,mt,ft]);const vt=pb(),{hideAddMenu:yt}=e.useContext(gd),bt=Bb()&&a,kt=Ov(),wt=qb(),Mt=yAe(),_t=zg(e=>null!==Mt&&e.ownerId===Mt),jt=Wb(Mt??""),St=bAe(),Lt=!d||f.length>0||p.length>0||g.length>0||H>0||P.length>0,Nt=yRe({hasDraftContent:Lt,currentCompassTask:L,isSampling:b?.isSampling})&&a,It=function({hasDraftContent:e,currentCompassTask:t,isSampling:s,isSending:n,area:a}){const i=Fv(),r=FAe(a),o=bAe();return i||r&&(o||!e&&!s&&!n)&&!t}({hasDraftContent:Lt,currentCompassTask:L,isSampling:b?.isSampling,isSending:k,area:T?"cowork":"chat"}),Tt="compact"!==s&&It,At=We&&St&&T&&Tt&&!Lt&&!k&&!Nt,Et=At?"translate-x-0 @[460px]:translate-x-10":"translate-x-0",Rt=Boolean(St&&kt&&_t&&Mt&&!L&&!bt),Dt=Rt&&!jt;return t.jsx(kN,{children:t.jsxs("div",{className:dt("relative flex gap-2 w-full items-center",We&&"@container"),ref:Ne,children:[Rt&&Mt?t.jsx(ARe,{ownerId:Mt,hideActions:jt}):t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"relative shrink-0 flex items-center gap-1",children:[!We&&(He.considerEnabledForNonUI||Ze)&&Ve&&t.jsx($b,{disabled:Pe||void 0!==qe,isCollapsed:Re,controlledSelection:qe}),!vt&&!yt&&t.jsxs(t.Fragment,{children:[t.jsx("div",{ref:it,children:t.jsx(BDe,{chatInputPlacement:s,instanceSuffix:n,disabled:r})}),t.jsx(YDe,{disabled:r})]}),We&&fHe&&t.jsx(fHe,{}),We&&!$e&&t.jsxs("div",{inert:!Qe,className:Qe?"flex items-center gap-1":"flex items-center gap-1 pointer-events-none translate-y-1 opacity-0 transition-[opacity,transform] duration-snap ease-out motion-reduce:transition-none",style:Qe?{animation:"chorus-flip-up 120ms cubic-bezier(0.34, 1.3, 0.64, 1)"}:void 0,children:[!Ge&&gHe&&t.jsx(gHe,{}),t.jsx(VI,{variant:"new-task"})]}),We&&!Ye&&null!==Ee&&t.jsx(tHe,{hideIndicators:De})]}),!We&&(Ve||I)&&t.jsx(VI,{variant:Ve?"new-task":"session",responsive:!0,iconOnly:Re}),!We&&"compact"!==s&&(I&&A||N&&!Oe&&!Pe)&&t.jsx(nEe,{sessionId:I?A??void 0:void 0,entryPoint:"composer",iconOnly:Re}),null!==Ee&&!We&&t.jsx(tHe,{hideIndicators:De}),!We&&t.jsx(dEe,{projectUuid:u}),t.jsx("div",{className:"grow"}),!T&&We&&"chat"===Ke.kind&&t.jsx(cHe,{onlyIfHubEligible:!0}),!c&&t.jsxs("div",{ref:at,className:dt("flex items-center gap-2 transition-[opacity,transform,translate,margin-right] duration-snap ease-out",We?"min-w-[5rem] @max-[340px]:min-w-9":"min-w-0",We&&Et,bt&&!X&&"opacity-0 pointer-events-none",bt&&X&&!De&&"mr-20",!St&&(kt||wt)&&"-translate-x-8"),children:[!T&&!We&&t.jsx(cHe,{}),t.jsx(iN,{multiline:!0,side:"top",content:oe?t.jsx(XS,{defaultMessage:"The model can't be changed once a session has started. Start a new session to use a different model.",id:"Wamz3eaMC2"}):void 0,children:t.jsx("span",{className:"inline-flex min-w-0",children:t.jsx(EEe,{conversationUuid:A?null:b?.id??null,initialModel:C,onSelect:je,onEffortSelect:Xe?se?nt:void 0:Se,effortOverride:st,onThinkingModeSelect:Le,hasMultiModalContent:K,placement:s,open:_,onOpenChange:j,contextModel:A?void 0:h,isNewConversation:S||I&&Rb(A),disabled:r||bt&&!X||oe,confirmModelSelect:ge,confirmEffortSelect:Ce,confirmThinkingSelect:ve,coworkContextGuard:ie,effortSurface:Xe?"cowork":void 0,thinkingSurface:et?"cowork":void 0,enableModelNotices:I||N,compact:"compact"===s,triggerClassName:We?"!rounded !min-w-0 !shrink":"!rounded"})})}),lt&&"model-selector"===rt&&t.jsx(hHe,{title:ot,text:lt,badgeText:ct,anchorRef:at,onClose:pt,ctaText:ut?.text,onCtaClick:ut?.onClick}),t.jsx(IRe,{anchor:at})]}),lt&&"add-menu"===rt&&it.current&&t.jsx(hHe,{title:ot,text:lt,badgeText:ct,anchorRef:it,onClose:pt,ctaText:ut?.text,onCtaClick:ut?.onClick})]}),St&&Tt&&!bt&&t.jsx(LRe,{isNewConversation:S,isAgentMode:T,conversationUuid:b?.id,projectUuid:u,hideActivityBars:Rt,className:dt(Dt?"hidden":"shrink-0",We&&"transition-transform duration-snap ease-out motion-reduce:transition-none",We&&Et)}),t.jsx("div",{inert:!!(Rt&&jt||At)||void 0,className:dt("shrink-0 flex items-center transition-[opacity,width,margin-left] duration-snap ease-out",(Nt||!St&&Tt||We)&&"z-10 justify-end",(Nt||!St&&Tt||We)&&(At?"w-0 -ml-2 @[460px]:w-8 @[460px]:ml-0":"w-8"),At&&"opacity-0",Dt&&"hidden",Rt&&jt&&"opacity-40"),children:t.jsx(kRe,{isSending:k,isPrimaryComposer:a,isDisabled:i||$||z&&R,disabledReason:G,isPromptEmpty:d,files:f,attachments:p,syncSourceUuids:g,reviewCount:H,pendingFolders:P,conversation:b,currentCompassTask:L,onSend:Z,onStop:B,skipInitialAnimation:o,canQueueMessages:V||I||E||!!b?.isExternalConversation,isFrontendQueue:z,isNewAgentModeChat:N&&S,isNewConversation:S,isAgentMode:T,projectUuid:u})})]})})}),xHe=e=>t.jsxs(rL,{...e,children:[t.jsx("path",{d:"m298.73 50.72 9.5 101.41s102.24 3.94 95.5-3.1-105-98.31-105-98.31",className:oL(e.highlightFill)}),t.jsx("path",{d:"M116.23 66.071c-1.57 27.9-1.15 27.93-2.71 55.83-.36 6.97-.64 12.2-.87 16.56-.1 2.18-.19 4.14-.27 6-.04.93-.08 1.83-.11 2.71-.02.44-.04.88-.05 1.32l-.03.66v.06c.42.04-3.62-.25-1.91-.12v.04h1.92v.26c.11 6.98.21 13.96.21 27.93q0 27.94.01 55.88c0 27.93-.69 27.93-.69 55.87s1.28 27.94 1.28 55.88-1.08 27.94-1.08 55.88c0 12.95.19 19.9.4 26.52.09 3.31.19 6.54.3 10.39l.06 3.02c0 .53.02 1.06.03 1.62 0 .14.02.09.03.14 0 .12.14.21.26.17h.09c.19 0 .39 0 .6.01.84.02 1.82.04 2.84.07 27.9.63 27.89 1.41 55.78 1.81 13.93.16 20.9.25 27.87.33 3.48.03 6.95.05 11.28.02 2.16-.02 4.54-.06 7.22-.14q2.01-.06 4.23-.18c1.45-.09 3.09-.2 4.41-.4l.39-.07.06-.02c0-.02 0 0 .03.09l.24.75c.11.28.11.41.16.6a9.3 9.3 0 0 0 .58 1.56c.06.15.22.37.22.45.03.1.07.21.12.3.05.1.12.19.19.27l.12.12.07.05c-6.68-6.23-1.78-1.8-3.24-3.22.34-.32.72-.62 1.14-.87q.315-.18.63-.33l.15-.07.05-.02.1-.03.38-.13.39-.11.19-.05.12-.03c.31-.06.61-.12.91-.17.25-.04.49-.07.74-.11l1.34-.15c1.68-.16 3.15-.25 4.56-.35 2.77-.15 5.21-.29 7.43-.41 4.39-.25 7.91-.44 11.42-.64 7.02-.39 14.03-.76 28.03-.73 27.99.12 27.98.53 55.95.83 27.96.37 27.95.88 55.91 1.35.82.02 1.61.03 2.33.04.19.02.37-.03.49-.14.24-.22.17-.49.2-.56.52-8.35.85-13.6 1.21-19.38.39-6.12.79-12.8 1.39-23.91.45-8.37.68-14.23.84-19.13.12-4.78.22-8.61.33-13-.24-5.44-.47-12.21-.64-23.38l-1.02-55.86c-.42-27.95.16-27.95-.26-55.9q-.47-27.94-.95-55.89c-.1-6.99-.15-12.23-.16-16.59v-6.7l.01-.12c0-.07.02-.14 0-.21-.01-.14-.1-.26-.19-.36-2.38-2.45-4.75-4.89-7.73-7.95-3.06-3.12-6.75-6.83-11.71-11.76-19.84-19.7-20.73-18.8-40.56-38.5a222129 222129 0 0 0-39.68-39.35c-1.26-1.26-2.44-2.43-3.46-3.45v-.03c-4.58-.09-8.21-.17-11.45-.23-3.39-.1-6.37-.18-9.49-.27-6.25-.18-13.1-.35-25.13-.4-27.98-.12-27.98-.29-55.96-.36-27.97-.04-27.98-.37-55.93-.28-10.78.06-16.35-.38-19.2-1.2-2.87-.84-3.1-2.12-3.15-3.68s.08-3.09 2.96-4.3c2.91-1.22 8.5-2.04 19.33-2.1 27.98-.09 27.97.37 55.93.41 27.94.07 27.93.86 55.87.98 12.07.05 18.93-.03 25.19-.13 3.13-.05 6.12-.1 9.54-.15 1.71-.02 3.52-.03 5.52-.05 2.15 0 4.49-.01 7.11-.02 1.8-.02 4.34.57 6.42 2.63 1.2 1.19 2.59 2.57 4.08 4.04 19.82 19.69 20.05 19.45 39.87 39.13q19.79 19.72 39.59 39.44c9.89 9.88 14.83 14.82 19.77 19.76.59.59 1.21 1.17 1.69 1.84.49.66.89 1.4 1.19 2.18s.49 1.61.56 2.45c.04.42.04.86.05 1.3 0 .32 0 .63.01.95.02 1.86.04 3.82.06 6 .06 4.36.13 9.6.22 16.59.42 27.94-.27 27.95.15 55.9.42 27.94.84 27.93 1.25 55.87.42 27.94 1.28 27.93 1.7 55.88.17 11.25.07 17.9-.07 23.79-.01.25-.02.55-.03.76l-.12 1.2-.15 1.58-.3 3.14c-.19 2.11-.39 4.28-.61 6.7-.41 4.84-.83 10.69-1.27 19.04-.63 11.78-.77 18.6-.85 24.67-.03 3.03-.07 5.88-.1 9.06-.03 1.59-.07 3.27-.11 5.1-.03.91-.05 1.86-.08 2.86-.02.5-.03 1.01-.05 1.53-.04.95-.08 1.93-.13 2.93-.09 1.54-.48 2.93-1.21 4.28a9.6 9.6 0 0 1-3.32 3.49c-.72.44-1.51.81-2.35 1.06-.4.15-.88.17-1.34.24-.46.06-.92.13-1.41.17-1.46-.02-2.99-.05-4.58-.07-27.93-.47-27.91-1.69-55.84-2.06-27.93-.31-27.94.19-55.85.07-13.95-.03-20.92.18-27.88.41-3.47.13-6.93.26-11.27.41-2.14.1-4.49.2-7.17.32-1.32.07-2.72.15-4.09.28-.66.06-1.42.15-1.76.21l-.1.02h-.01s-.02-.07-.04-.15l-.07-.25-.12-.72c-.09-.47-.2-.94-.33-1.4-.14-.46-.29-.92-.48-1.37l-.14-.34c-.05-.11-.12-.24-.1-.29q-.015-.195-.09-.39a1.5 1.5 0 0 0-.47-.66c1.93 1.8-4.43-4.12 4.3 4.02l-.15.15-.31.28c-.21.18-.43.36-.67.52-.23.16-.47.31-.72.44l-.18.09-.21.09c-.18.08-.37.16-.56.23-.17.06-.42.15-.53.18l-.32.09-.64.16-.49.09c-1.25.22-2.18.31-3.09.39s-1.75.13-2.56.18c-1.62.09-3.1.14-4.5.17-2.79.06-5.22.07-7.43.05-4.41-.04-7.92-.19-11.44-.33-7.02-.31-14.02-.64-28.01-.79-14-.17-20.99-.15-27.99-.12-7 .02-13.99.04-27.98-.29-2.69-.06-5.16-.12-6.38-.15-.69-.01-1.29-.16-1.9-.27-.63-.09-1.16-.3-1.71-.52a9.3 9.3 0 0 1-2.82-1.96 9 9 0 0 1-1.8-2.71c-.42-.97-.64-1.95-.73-3.02-.03-2.87-.06-5.44-.09-7.82-.06-3.82-.11-7.03-.15-10.32-.11-6.59-.21-13.54-.21-26.43 0-27.95.63-27.95.63-55.9s.51-27.96.51-55.91-1.3-27.94-1.3-55.88q.12-27.97.23-55.93c0-13.99.08-20.99.15-27.98.43-7.09.85-14.18 1.71-28.35 1.57-27.94 2-27.91 3.57-55.85.3-5.39.66-9.52 1.08-12.67.21-1.58.43-2.91.67-4.03.17-.73.32-1.4.46-2.01.29-1 .77-1.81 1.29-2.43 1.06-1.24 2.23-1.74 3.12-1.92.9-.17 1.56 0 1.99.23.87.5.94 1.26.97 2.02.04.78-.08 1.47-.17 2.1-.04.31-.06.61-.02.87.02.25.2.52.29.56 0 0-.03-.01.02 0 0 0 .02-.01.03-.02h.01v-.02c-.07 0 .65.05.34.03.01.13.03.26.04.39.02.26.05.54.07.82.09 1.15.14 2.5.16 4.09.03 3.18-.1 7.33-.4 12.72z",fill:"currentColor"}),t.jsx("path",{d:"M397.54 155.981c-10.54.23-10.56-.55-21.1-.32-10.55.23-10.55-.04-21.1.18s-10.53 1.03-21.08 1.26-10.54.56-21.09.79c-.72 0-1.39.02-2.02.03h-1.34c-.58 0-1.15.02-1.69 0-1.1-.01-2.02-.24-2.84-.53-.83-.31-1.57-.71-2.21-1.18a8.7 8.7 0 0 1-2.73-3.33c-.56-1.23-.81-2.46-.82-3.87v-2.17l.01-.24c0-.16.01-.32.02-.49.02-.66.04-1.36.04-2.14 0-1.56-.04-3.41-.17-5.8-.6-10.53-.98-10.51-1.59-21.04l-1.34-21.07c-.6-10.55-.12-10.58-.72-21.12-.6-10.55-1.11-10.52-1.71-21.07-.45-7.79 1.75-8.96 4.66-9.13s4.83.77 5.27 8.56c.6 10.53 1.6 10.47 2.2 21s-.52 10.6.08 21.13.4 10.55 1.01 21.08c.6 10.53 1.82 10.46 2.42 21 .14 2.43.2 4.3.21 5.86v2.88l-.02.02-.07.1c-.12.17-.24.49-.05.74.09.13.25.18.44.19.05 0 .1.01.16.02h.52c.62 0 1.29-.02 2-.03q10.55-.18 21.09-.37t21.11-.59c10.56-.23 10.54-1.07 21.11-1.3 10.56-.23 10.56-.47 21.12-.7 7.8-.17 7.39 2.81 7.45 5.72s.6 5.76-7.2 5.93zm-150.47 165.97c.12-7.1.89-7.08 1.02-14.18s.4-7.1.53-14.2-.66-7.12-.53-14.22c.14-7.1-.19-7.11-.04-14.21s1.36-7.08 1.52-14.18-.22-7.11-.05-14.21c.18-7.11.04-7.11.24-14.22.21-7.12.69-7.1.92-14.23.27-7.14-.27-7.13.11-14.34.15-2.68.85-4.21 1.9-5.11.52-.42 1.16-.8 1.83-.9.9-.6 1.51-.07 2.03.39s1.08 1.05 1.82.74c.57.18 1.05.3 1.41.71.74.75 1.08 2.18.93 4.75-.36 6.99.66 7.05.4 14.1-.23 7.07-1.35 7.04-1.56 14.12-.2 7.09-.39 7.08-.57 14.17-.17 7.09 1.05 7.12.89 14.21s-1.08 7.07-1.23 14.17l-.38 14.18c-.14 7.1 0 7.1-.14 14.2-.13 7.1.71 7.12.59 14.22s.12 7.11 0 14.21c-.09 5.24-3.05 4.88-5.96 4.83s-5.78.23-5.69-5.02z",fill:"currentColor"}),t.jsx("path",{d:"M191.85 248.461c7.09 0 7.09.78 14.18.78s7.09.27 14.19.27 7.09-.8 14.19-.8 7.09-.33 14.19-.33 7.09 1.21 14.19 1.21 7.09-.38 14.18-.38 7.1-.13 14.19-.13 7.1.49 14.2.49 7.1-.5 14.2-.5c5.24 0 5.95 2.26 5.95 5.17s-.7 4.77-5.95 4.77c-7.09 0-7.09 1-14.18 1s-7.09-1.12-14.19-1.12-7.09-.2-14.19-.2-7.09 1.22-14.19 1.22-7.09-.92-14.19-.92-7.09-.09-14.18-.09-7.1.13-14.19.13-7.1.85-14.2.85-7.1.24-14.2.24c-5.24 0-4.92-2.97-4.92-5.88s-.32-5.77 4.92-5.77z",fill:"currentColor"})]});var vHe=(e=>(e.IDLE="IDLE",e.DRAGGING_OFF_TARGET="DRAGGING_OFF_TARGET",e.DRAGGING_ON_TARGET="DRAGGING_ON_TARGET",e.DROPPED="DROPPED",e))(vHe||{});const yHe=e.createContext(void 0),bHe=()=>{const t=e.useContext(yHe);if(!t)throw new Error("useDropZone must be used within a DropZoneProvider");return t},kHe=e=>e.dataTransfer?.types.includes("Files")??!1,wHe=({onDrop:s,children:n,className:a,disabled:i=!1,enableScreenDrop:r=!1})=>{const[o,l]=e.useState("IDLE"),c=e.useRef(null),d=e.useCallback(e=>{kHe(e)&&(e.preventDefault(),e.stopPropagation(),c.current?.contains(e.target)?l("DRAGGING_ON_TARGET"):l("DRAGGING_OFF_TARGET"))},[]),u=e.useCallback(e=>{kHe(e)&&(e.preventDefault(),e.stopPropagation(),c.current?.contains(e.relatedTarget)||e.target!==document.body&&null!==e.relatedTarget||l("IDLE"))},[]),m=e.useCallback(e=>{kHe(e)&&(e.preventDefault(),e.stopPropagation(),s(e),l("DROPPED"),setTimeout(()=>{l("IDLE")},500))},[s]),p=e.useCallback(e=>{kHe(e)&&(e.preventDefault(),e.stopPropagation(),m(e),l("DROPPED"),setTimeout(()=>{l("IDLE")},500))},[m]),f=e.useCallback(e=>{kHe(e)&&(c.current?.contains(e.target)||(r?m(e):(e.preventDefault(),l("IDLE"))))},[r,m]),g=e.useCallback(e=>{kHe(e)&&(c.current?.contains(e.target)||l("IDLE"))},[]);return e.useEffect(()=>(i?l("IDLE"):(document.body.addEventListener("drop",g,!0),document.body.addEventListener("dragover",d),document.body.addEventListener("dragleave",u),document.body.addEventListener("drop",f)),()=>{document.body.removeEventListener("drop",g,!0),document.body.removeEventListener("dragover",d),document.body.removeEventListener("dragleave",u),document.body.removeEventListener("drop",f)}),[d,u,f,g,p,i]),t.jsx(yHe.Provider,{value:{dragState:o,setDragState:l},children:t.jsx("div",{ref:c,className:a,onDrop:i?void 0:p,children:n})})};function MHe({disabled:s=!1,enableScreenDrop:n=!1}){const{onDrop:a}=J(),i=Gb(),r=Kb(Yb),o=Qb(),{disableFileAttachments:l}=e.useContext(gd);return t.jsx(wHe,{disabled:s||i||r||o||!0===l,onDrop:a,enableScreenDrop:n,children:n?t.jsx(jHe,{}):t.jsx(_He,{})})}function _He(){const{dragState:e}=bHe(),s=e===vHe.DRAGGING_ON_TARGET,n=e===vHe.DRAGGING_OFF_TARGET||e===vHe.DRAGGING_ON_TARGET;return n?t.jsx(nA,{children:n&&t.jsx(sA.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},transition:{duration:.2},className:"absolute top-0 border border-dashed bg-clip-padding rounded-2xl min-h-4 h-full w-full border-accent-100 bg-bg-000 overflow-hidden z-10",children:t.jsx("div",{className:dt("flex items-center justify-center h-full w-full transition-colors",s?"bg-accent-900":"bg-accent-900/50"),children:t.jsxs("p",{className:"text-accent-100 flex flex-row items-center gap-2.5",children:[t.jsx(oD,{size:20,className:"opacity-50"}),t.jsx(XS,{defaultMessage:"Drop files here to add to chat",id:"IYBR/J+nuA"})]})})},"chat-input-drop-zone-overlay")}):null}function jHe(){const{dragState:e}=bHe(),s=uN(),a=e===vHe.DRAGGING_OFF_TARGET||e===vHe.DRAGGING_ON_TARGET;return a?n.createPortal(t.jsx(nA,{children:a&&t.jsx(sA.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.1},className:"fixed inset-0 z-toast pointer-events-none",style:s?{zIndex:jN}:void 0,children:t.jsx("div",{className:"absolute inset-0 bg-bg-100/90 flex items-center justify-center",children:t.jsxs("div",{className:"flex flex-col items-center gap-2 text-text-100",children:[t.jsx(xHe,{}),t.jsx(XS,{defaultMessage:"Drop files here to add to chat",id:"IYBR/J+nuA"})]})})},"full-screen-drop-zone-overlay")}),document.body):null}function SHe(){const s=JS(),n=zI(e=>e.filePath),a=zI(e=>e.setFilePath),i=e.useCallback(()=>{a(null)},[a]);return n?t.jsxs(gt,{isOpen:!0,onClose:i,title:s.formatMessage({defaultMessage:"Session exported",id:"bw9cO04ME0"}),children:[t.jsxs("div",{className:"flex flex-col gap-4",children:[t.jsx("p",{children:t.jsx(XS,{defaultMessage:"Session transcript and metadata exported to:",id:"BoprGY8hH2"})}),t.jsx("code",{className:"bg-bg-300 rounded-md p-2 text-sm break-all",children:n})]}),t.jsx(Eu,{children:t.jsx("button",{className:"btn btn-primary",onClick:i,type:"button",children:t.jsx(XS,{defaultMessage:"OK",id:"kAEQyVFWDv"})})})]}):null}function LHe({title:e,description:s,buttonText:n,pictogram:a,emphasized:i=!1,recommendedLabel:r="Recommended",emphasizedClassName:o,disabled:l,className:c,titleClassName:d,descriptionClassName:u,recommendedPillClassName:m,pictogramClassName:p,href:f,onClick:g}){const h=i?"primary":"secondary",C=void 0!==f?t.jsx(rN,{href:f,onClick:g,variant:h,className:"w-full",children:n}):t.jsx(rN,{onClick:g,disabled:l,variant:h,className:"w-full",children:n});return t.jsxs("div",{className:GL("flex flex-1 flex-col gap-[24px] rounded-[16px] border-[0.5px] border-solid border-strong bg-surface-1 p-[20px] shadow-sm",i&&o,c),children:[t.jsxs("div",{className:"flex flex-1 flex-col gap-[17px]",children:[i?t.jsxs("div",{className:"flex items-start justify-between gap-[8px]",children:[t.jsx("div",{"aria-hidden":!0,className:GL("text-primary",p),children:t.jsx(ge,{asset:a,size:"sm"})}),t.jsx("span",{className:GL("bg-fill-accent text-on-accent inline-flex items-center rounded-[6px] px-[10px] py-[4px] text-caption font-medium",m),children:r})]}):t.jsx("div",{"aria-hidden":!0,className:GL("text-primary",p),children:t.jsx(ge,{asset:a,size:"sm"})}),t.jsxs("div",{className:"flex flex-col gap-[10px]",children:[t.jsx("h3",{className:GL("m-0 text-heading text-primary font-semibold",d),children:e}),t.jsx("p",{className:GL("m-0 text-body text-secondary",u),children:s})]})]}),C]})}function NHe({isOpen:e,onClose:s,onConfirm:n,isEnabling:a,targetModelId:i}){const r=xe(),o=hJ(),{data:l}=ri({enabled:e&&!!i}),c=l?.amount??0,d=i?GJ(i):null,u={link:e=>t.jsx(ct,{href:"https://support.claude.com/en/articles/12005970-extra-usage-for-team-and-enterprise-plans",target:"_blank",rel:"noopener noreferrer",children:e})},m={link:e=>t.jsx(ct,{href:"https://support.claude.com/en/articles/12429409-extra-usage-for-paid-claude-plans",target:"_blank",rel:"noopener noreferrer",children:e})};return t.jsx(lN.Root,{open:e,onOpenChange:e=>!e&&!a&&s(),dismissible:!1,children:t.jsxs(lN.Popup,{size:"md",children:[t.jsx(lN.Header,{showClose:!a,children:d?t.jsx(hs,{id:"1tca6gc",dangerouslyVisiblePublicValues:{model:d}}):o?t.jsx(XS,{defaultMessage:"Turn on extra usage",id:"c3akKO6gKx"}):t.jsx(XS,{defaultMessage:"Turn on usage credits",id:"RF538op5DA"})}),t.jsx("p",{className:"text-body text-secondary",children:!d||r||o?r?o?t.jsx(XS,{defaultMessage:"By clicking \u2018Turn on\u2019, you agree to turn on extra usage for your organization as defined in our <link>Help Center article</link>.",id:"3gm2NprwTl",values:u}):t.jsx(XS,{defaultMessage:"By clicking \u2018Turn on\u2019, you agree to turn on usage credits for your organization as defined in our <link>Help Center article</link>.",id:"g9nIpRif6b",values:u}):o?t.jsx(XS,{defaultMessage:"By clicking \u2018Turn on\u2019, you agree to turn on extra usage as defined in our <link>Help Center article</link>.",id:"w3PvxXJhN9",values:m}):t.jsx(XS,{defaultMessage:"Turn on usage credits to keep working after you hit your plan limit. Credits are billed separately from your plan \u2014 see our <link>Help Center article</link>.",id:"kEyEtF92qF",values:m}):c>0?t.jsx(hs,{id:"1xexkvf",dangerouslyVisiblePublicValues:{model:d,balance:t.jsx(sL,{value:c/100,style:"currency",currency:l?.currency??"USD"})}}):t.jsx(hs,{id:"1do5owa",dangerouslyVisiblePublicValues:{model:d}})}),t.jsxs(lN.Footer,{children:[t.jsx(rN,{variant:"secondary",onClick:s,disabled:a,children:t.jsx(XS,{defaultMessage:"Cancel",id:"47FYwba+bI"})}),t.jsx(rN,{variant:"primary",onClick:n,busy:a,children:t.jsx(XS,{defaultMessage:"Turn on",id:"npvxprjeDK"})})]})]})})}function IHe({onOverageBillingSetupComplete:t,onEnabled:s,onError:n,enabled:a}){const i=JS(),r=hJ(),o=ae(),l=gL(),{addSuccess:c,addError:d}=ut(),{data:u,isLoading:m}=Ii({enabled:a}),p="number"==typeof u?.monthlyLimit&&u.monthlyLimit>0,f=Jb(a&&!m&&!u?.isEnabled),g=Yv(),{activeOrganization:h}=v(),C=h?.uuid,x=tX(),{data:y}=ri({enabled:a}),b="number"==typeof y?.amount&&y.amount>0,{mutate:k,isPending:w}=Xb({onSuccess:()=>{c(r?i.formatMessage({defaultMessage:"Extra usage has been turned on",id:"LC2Ix1nDGO"}):i.formatMessage({defaultMessage:"Usage credits are on",id:"wtC2B29FKg"})),o.track({event_key:"claudeai.overages.enabled",spend_limit_type:"organization"}),x(),s(b),l.setQueryData([tk,{orgUuid:C}],[])},onError:e=>{d(e.message||(r?i.formatMessage({defaultMessage:"Failed to turn on extra usage",id:"YHVjXnuk3m"}):i.formatMessage({defaultMessage:"Couldn't turn on usage credits",id:"TtQGAIkUrs"})),{error:e,messageForLogging:"Failed to turn on extra usage"}),n?.(e)}}),{mutate:M,isPending:_}=ek({onSuccess:e=>{t?.(b,g,e),k({isEnabled:!0})},onError:e=>{d(e.message||i.formatMessage({defaultMessage:"Failed to set up billing infrastructure",id:"wmQ2LJxiyG"}),{error:e,messageForLogging:"Failed to set up billing infrastructure"}),n?.(e)}}),j=e.useCallback(()=>{M({org_monthly_spend_limit:p?u?.monthlyLimit:f})},[p,u?.monthlyLimit,M,f]);return e.useMemo(()=>({isEnabling:w||_||m,onEnableOveragesConfirm:j}),[w,_,m,j])}LHe.displayName="LimitUpsellOptionCard";const THe="!border-[hsl(var(--accent-100)/0.3)] bg-[radial-gradient(ellipse_150%_150%_at_50%_-30%,hsl(var(--accent-100)/0.10),transparent_90%)]",AHe=TL(["control","emphasis_usage_credits","emphasis_upgrade"]);function EHe({isOpen:s,onClose:n,targetModelId:a,currentModelId:i,requestState:r="actionable"}){const o=JS(),{track:l}=ae(),{addSuccess:c,addError:d}=ut(),{mutateAsync:u,isPending:m}=_i(),{limitingPeriod:p}=ci(s),f=ei(a)?.base,g=f?.split(" ")[0]??"",h=YJ()(i),C=iX(),x=FJ(),v=e.useCallback(()=>{if(!C)return void n();const e=OJ();e?e(C):x(C,!0),EJ({fromModelId:i??a,toModelId:C}),n()},[x,C,i,a,n]),y=e.useCallback(async()=>{if(pi(p))try{await u({request_type:"limit_increase",details:null,...p?{period:p}:{}}),l({event_key:"claudeai.credits_required.member_request_sent",target_model_id:a}),c(o.formatMessage({defaultMessage:"Your request has been sent to your admin.",id:"ROnsgIHUkE"})),n()}catch{d(o.formatMessage({defaultMessage:"There was an error submitting your request. Please try again later.",id:"3Kuk8BVb9J"}),{messageForLogging:"There was an error submitting your request. Please try again later."})}else n()},[o,l,u,c,d,n,p,a]);return"pending"===r?t.jsx(lN.Root,{open:s,onOpenChange:e=>!e&&n(),children:t.jsxs(lN.Popup,{size:"md",children:[t.jsx(lN.Header,{children:t.jsx(hs,{id:"12yt9io",dangerouslyVisiblePublicValues:{model:f??g}})}),t.jsx("p",{className:"text-body text-secondary",children:t.jsx(hs,{id:"5twsju",dangerouslyVisiblePublicValues:{model:g}})}),t.jsx(lN.Footer,{children:h&&C?t.jsxs(t.Fragment,{children:[t.jsx(rN,{variant:"secondary",onClick:n,children:t.jsx(XS,{defaultMessage:"Cancel",id:"47FYwba+bI"})}),t.jsx(rN,{variant:"primary",onClick:v,children:t.jsx(XS,{defaultMessage:"Switch models",id:"nYrm/yRPg3"})})]}):t.jsx(rN,{variant:"primary",onClick:n,children:t.jsx(XS,{defaultMessage:"Close",id:"rbrahOGMC3"})})})]})}):t.jsx(lN.Root,{open:s,onOpenChange:e=>!e&&!m&&n(),children:t.jsxs(lN.Popup,{size:"md",children:[t.jsx(lN.Header,{children:t.jsx(hs,{id:"189myag",dangerouslyVisiblePublicValues:{model:f??g}})}),t.jsx("p",{className:"text-body text-secondary",children:t.jsx(hs,{id:"122w3j6",dangerouslyVisiblePublicValues:{model:g}})}),t.jsxs(lN.Footer,{children:[t.jsx(rN,{variant:"secondary",onClick:n,disabled:m,children:t.jsx(XS,{defaultMessage:"Later",id:"uQDRsYlg+S"})}),t.jsx(rN,{variant:"primary",onClick:y,busy:m,children:t.jsx(XS,{defaultMessage:"Send request",id:"PoX2HNO9XV"})})]})]})})}const RHe=1e8;function DHe({isOpen:s,messageLimit:n,onClose:a,onSaved:i,thenAddFunds:r=!1}){const o=JS(),l=ae(),c=tX(),d=hi(),u=Ci(),{data:m,isLoading:p,isError:f}=Ii({enabled:s}),{data:g}=ri({enabled:s}),h=m?.currency||g?.currency||"USD",C="number"==typeof m?.monthlyLimit?m.monthlyLimit:null,x=m?.usedCredits??0,v=null!==C?Math.max(C,x):0,y=v/100,[b,k]=e.useState(y),[w,M]=e.useState(!1),[_,j]=e.useState(null),S=e.useRef(!1);e.useEffect(()=>{if(!s)return S.current=!1,M(!1),void j(null);S.current||null===C||(S.current=!0,k(v/100))},[s,C,v]);const L=p||f||null===C,N=g?.amount??0,{overage:I,...T}=n?.windows??{},{windowName:A,status:E,modelDisplayName:R}=fJ(T,n?.sentOnModel),D=e.useMemo(()=>{if(R)return o.formatMessage({defaultMessage:"weekly {model} limit",id:"B5fLsGXUWE"},{model:R});switch(A){case"5h":return o.formatMessage({defaultMessage:"session limit",id:"P4YVhxeN9c"});case"7d":case"7d_cowork":return o.formatMessage({defaultMessage:"weekly limit",id:"npgQgzh1YI"});default:return o.formatMessage({defaultMessage:"plan limit",id:"TXZnHMlGJe"})}},[o,A,R]),H=e.useMemo(()=>E?.resets_at?new Date(1e3*E.resets_at):null,[E?.resets_at]),P=e.useMemo(()=>H?o.formatTime(H,{hour:"numeric",minute:"2-digit",timeZoneName:"short"}):null,[o,H]),U=e.useMemo(()=>H&&"5h"!==A?o.formatDate(H,{month:"short",day:"numeric"}):null,[o,H,A]),[O,F]=e.useState(null),{mutate:V,isPending:z,error:Z}=sk({onSuccess:e=>{if(null!==e.disabled_until&&new Date(e.disabled_until)>new Date)return M(!0),void j(e.used_credits??null);M(!1),j(null),c(),i(e)},onError:()=>{F(o.formatMessage({defaultMessage:"We couldn't update your spend limit. Please try again.",id:"EDAsx6Trra"}))}});e.useEffect(()=>{Z||F(null)},[Z]),e.useEffect(()=>{s&&l.track({event_key:"claudeai.spend_limit_increase_modal.viewed"})},[s,l]);const B=Math.max(y,(_??0)/100),q=e.useCallback(()=>{k(e=>Math.min(RHe,e+5))},[]),W=e.useCallback(()=>{k(e=>e<=B?e:Math.max(B,e-5))},[B]),$=e.useCallback(e=>{const t=Math.round(100*e)%100==0?0:2;return new Intl.NumberFormat("en-US",{style:"currency",currency:h,useGrouping:!1,minimumFractionDigits:t,maximumFractionDigits:t}).format(e)},[h]),G=Math.round(100*b),K=Math.round(100*B),Y=G===C,Q=null!==C&&G<=K,J=d?"/upgrade?hide_pro=true&from=spendlimit":u?"/upgrade?from=spendlimit":null,X=!n?.creditsRequired,ee=e.useCallback(()=>{l.track({event_key:"claudeai.spend_limit_increase_modal.save_clicked",new_limit_minor:G}),V({monthlyLimit:G,currency:h})},[l,G,h,V]),te=e.useCallback(()=>{l.track({event_key:"claudeai.spend_limit_increase_modal.remove_limit_clicked"}),V({monthlyLimit:null,currency:h})},[l,h,V]),se=e.useCallback(()=>{z||(l.track({event_key:"claudeai.spend_limit_increase_modal.closed"}),a())},[l,a,z]);return t.jsx(lN.Root,{open:s,onOpenChange:e=>{e||se()},children:t.jsxs(lN.Popup,{size:"sm",className:"sm:min-w-[602px] bg-bg-100",portalClassName:"z-toast",children:[t.jsx(lN.Header,{children:t.jsx(XS,{defaultMessage:"Need more usage?",id:"oQgie7BDAi"})}),t.jsx("p",{className:"mb-6 text-sm text-text-300",children:r?t.jsx(XS,{defaultMessage:"You've reached your monthly spend limit and you're out of credits. Raise your limit, then add credits to keep working.",id:"xbDx1X5jOI"}):t.jsx(XS,{defaultMessage:"You've reached your monthly spend limit, but you still have credits. Increase your limit to keep working.",id:"3kc1I8pWuV"})}),t.jsxs("div",{className:"mb-6",children:[t.jsx("p",{id:"spend-limit-input-label",className:"mb-2 text-sm font-semibold text-text-100",children:t.jsx(XS,{defaultMessage:"Monthly spend limit",id:"IUoTPQOAAk"})}),t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsxs("div",{className:"flex shrink-0 items-center gap-0.5",children:[t.jsx("button",{type:"button","aria-label":o.formatMessage({defaultMessage:"Decrease spend limit",id:"ZyUhcKOTes"}),className:"flex h-8 w-8 items-center justify-center rounded-lg border border-border-300 bg-bg-000 text-text-300 hover:text-text-100 disabled:opacity-50 aria-disabled:cursor-not-allowed aria-disabled:opacity-50",onClick:W,disabled:z||L,"aria-disabled":z||L||b<=B,children:t.jsx(lD,{size:16,"aria-hidden":!0})}),t.jsx("input",{type:"text",inputMode:"decimal","aria-labelledby":"spend-limit-input-label",size:1,className:"hide-focus-ring h-10 min-w-[72px] rounded-lg border border-border-300 bg-bg-000 px-2 text-center text-text-100 [field-sizing:content] focus:outline-none focus-visible:border-border-100 focus-visible:ring-1 focus-visible:ring-border-100",value:L?"\u2014":$(b),onChange:e=>k((e=>{const t=e.replace(/[^0-9.,]/g,"");let s;s=t.includes(".")?t.replace(/,/g,""):/,\d{1,2}$/.test(t)?t.replace(/,/g,"."):t.replace(/,/g,"");const n=parseFloat(s);return isNaN(n)?0:Math.min(RHe,n)})(e.target.value)),disabled:z||L}),t.jsx("button",{type:"button","aria-label":o.formatMessage({defaultMessage:"Increase spend limit",id:"4O5ZUenxzc"}),className:"flex h-8 w-8 items-center justify-center rounded-lg border border-border-300 bg-bg-000 text-text-300 hover:text-text-100 disabled:opacity-50",onClick:q,disabled:z||L,children:t.jsx(cD,{size:16,"aria-hidden":!0})})]}),t.jsx(nk,{variant:"secondary",onClick:te,disabled:z||L,className:"shrink-0",children:t.jsx(XS,{defaultMessage:"Remove limit",id:"97J2WpZvGy"})}),t.jsx("p",{className:"min-w-0 flex-1 text-xs text-text-300",children:r?t.jsx(XS,{defaultMessage:"You can add credits on the next step.",id:"vX6919NZNQ"}):t.jsx(XS,{defaultMessage:"You can't spend more than your credit balance.",id:"Njl7Bqim7I"})})]}),t.jsx("span",{className:"sr-only",role:"status","aria-live":"polite",children:L?"":$(b)}),(O||w)&&t.jsx("p",{role:"alert",className:"mt-2 text-xs text-danger-000",children:O??(null!==_?t.jsx(XS,{defaultMessage:"You've already used {amount} this month \u2014 set your limit above that to keep working.",id:"aH2gXkKfct",values:{amount:lL(_,h,{locale:"en-US"})}}):t.jsx(XS,{defaultMessage:"Your new limit is still below this month's usage. Try a higher amount or remove the limit.",id:"IsgOISniNu"}))})]}),!r&&t.jsxs("div",{className:"mb-6",children:[t.jsx("p",{className:"text-lg font-semibold text-text-100",children:lL(N,h,{locale:"en-US"})}),t.jsx("p",{className:"text-sm text-text-300",children:t.jsx(XS,{defaultMessage:"Usage credit balance",id:"kQ/lZuAwzb"})})]}),X&&t.jsxs("div",{className:"mb-6 text-sm text-text-300",children:[J&&t.jsxs("p",{children:[t.jsx(ds,{href:J,className:"text-sm",children:d?t.jsx(XS,{defaultMessage:"Upgrade to Max",id:"z+PtTMgM3T"}):t.jsx(XS,{defaultMessage:"Upgrade to Max 20x",id:"QxoK671Kmz"})})," ",t.jsx(XS,{defaultMessage:"for higher limits every month.",id:"hXoqjR434c"})]}),t.jsx("p",{children:J?P&&U?t.jsx(XS,{defaultMessage:"Or, wait until your {limitName} resets at {time} on {date} to keep working.",id:"VvGyJdt8Tv",values:{limitName:D,time:P,date:U}}):P?t.jsx(XS,{defaultMessage:"Or, wait until your {limitName} resets at {time} to keep working.",id:"hCq44SytMs",values:{limitName:D,time:P}}):t.jsx(XS,{defaultMessage:"Or, wait until your {limitName} resets to keep working.",id:"kNPvzSB7Oj",values:{limitName:D}}):P&&U?t.jsx(XS,{defaultMessage:"You can also wait until your {limitName} resets at {time} on {date} to keep working.",id:"YfKwjcmMqC",values:{limitName:D,time:P,date:U}}):P?t.jsx(XS,{defaultMessage:"You can also wait until your {limitName} resets at {time} to keep working.",id:"TlAHC5VbxB",values:{limitName:D,time:P}}):t.jsx(XS,{defaultMessage:"You can also wait until your {limitName} resets to keep working.",id:"WV6U7uYD/h",values:{limitName:D}})})]}),t.jsxs(Eu,{children:[t.jsx(nk,{variant:"secondary",onClick:se,disabled:z,children:t.jsx(XS,{defaultMessage:"Cancel",id:"47FYwba+bI"})}),t.jsx(nk,{variant:"primary",onClick:ee,loading:z,disabled:z||L||Y||Q||b<0,children:r?t.jsx(XS,{defaultMessage:"Continue",id:"acrOozm08x"}):t.jsx(XS,{defaultMessage:"Save",id:"jvo0vs3nF0"})})]})]})})}const HHe=fn(()=>a(()=>import("./ca1c297fc-Di9TPAym.js").then(e=>e.e),__vite__mapDeps([0,1]),import.meta.url).then(e=>e.AddCreditsModal),{}),PHe=fn(()=>a(()=>import("./c3a484033-B1gyowQI.js").then(e=>e.j),__vite__mapDeps([0,1]),import.meta.url).then(e=>e.MobileOveragesPaymentSetupModal),{}),UHe=fn(()=>a(()=>import("./c5c66ffa5-DB656Dsy.js").then(e=>e.b),__vite__mapDeps([0,1]),import.meta.url).then(e=>e.SetupOveragesFlowModal),{});function OHe(){const s=Jv(),[n,a]=e.useState(void 0),[i,r]=e.useState(!1),[o,l]=e.useState(!1),[c,d]=e.useState(!1),[u,m]=e.useState(),[p,f]=e.useState(!1),[g,h]=e.useState(!1),[C,x]=e.useState(!1),[y,b]=e.useState({}),[k,w]=e.useState(!1),[M,_]=e.useState(!1),[j,S]=e.useState(!1),[L,N]=e.useState(!1),[I,T]=e.useState(),[A,E]=e.useState(),[R,D]=e.useState(),[H,P]=e.useState("actionable"),U=o||c||g||C||k||M,{data:O}=ri({enabled:U}),{data:F,isLoading:V}=Ii({enabled:U}),{data:z}=Ti({enabled:U}),{data:Z,isLoading:B}=sr({cached:!0}),q=void 0!==Z?.payment_method,{data:W,isLoading:$}=Xv({enabled:U&&!q&&!B}),G=q?!!Z?.payment_method:!!W,K=!q&&(B||$),Y=F?.isEnabled||!1,Q="number"==typeof F?.monthlyLimit&&F?.monthlyLimit>0;e.useEffect(()=>(yJ((e,t)=>{l(!0),a(e),r(t??!1)}),wJ((e,t)=>{_(!0),S(t?.thenAddFunds??!1),a(e)}),jJ(e=>{b(e),x(!0)}),NJ(e=>{m(e?.targetModelId),f(!1),h(!0)}),DJ(e=>{T(e.targetModelId),E(e.currentModelId),P(e.requestState??"actionable"),D(()=>e.onCloseSelect),N(!0)}),()=>{yJ(null),wJ(null),jJ(null),NJ(null),DJ(null)}),[]);const J=FJ(),X=YJ(),{mode:ee}=WJ(),te=Cs("pewter_lantern_shoal"),{isEnabling:se,onEnableOveragesConfirm:ne}=IHe({enabled:U,onEnabled:e=>{if(h(!1),u){const e=OJ();return e?e(u):J(u,!0),void m(void 0)}e||w(!0)}}),ae=e.useCallback(()=>{l(!1),a(void 0),r(!1)},[]),ie=e.useCallback(()=>{const e=n?.sentOnModel,t=te&&null!==ee&&e&&X(e)?e:void 0;Y?(b({copyModelId:t}),x(!0)):Q?ne():s&&!G?d(!0):(b({requiresEnablement:!0,copyModelId:t}),x(!0)),ae()},[n?.sentOnModel,te,ee,X,Y,Q,s,G,ne,ae]),re=e.useCallback(()=>{d(!1)},[]),oe=e.useCallback(()=>{d(!1),f(!0),h(!0)},[]),le=e.useCallback(()=>{h(!1),p&&l(!0),f(!1),m(void 0)},[p]),ce=e.useCallback(e=>{w(!1),e&&ae()},[ae]),de=e.useCallback(()=>{x(!1),b({}),ae()},[ae]),{activeOrganization:ue}=v(),me=ai(),pe=e.useCallback(()=>{_(!1),S(!1)},[]),fe=e.useCallback(e=>{_(!1);if(null!==e.disabled_until&&new Date(e.disabled_until)>new Date)S(!1);else{if(j)return S(!1),b({copyModelId:te&&null!==ee&&n?.sentOnModel&&X(n.sentOnModel)?n.sentOnModel:void 0}),x(!0),void a(void 0);ue?.uuid&&me({type:"within_limit",overageInUse:!0,windows:n?.windows},ue.uuid,"",n?.sentOnModel),a(void 0)}},[j,ue?.uuid,me,n?.windows,n?.sentOnModel,te,ee,X]),ge=o&&(!s||!K);return t.jsxs(t.Fragment,{children:[ge&&t.jsx(FHe,{isOpen:!0,overagesEnabled:Y,isOverageSettingsLoading:V,messageLimit:n,isWarning:i,onOveragesClick:ie,onClose:ae}),c&&t.jsx(PHe,{isOpen:!0,onClose:re,onComplete:oe}),t.jsx(NHe,{isOpen:g,onClose:le,onConfirm:ne,isEnabling:se,targetModelId:u}),k&&t.jsx(UHe,{isOpen:!0,hasCredits:!1,onClose:ce,isPureUsageBased:z?.is_pure_usage_based??!1}),C&&t.jsx(HHe,{isOpen:!0,hasAutoReload:!!O?.auto_reload_settings?.enabled,onClose:de,targetModelId:y.targetModelId,copyModelId:y.copyModelId,switchToModelId:y.switchToModelId,offerModelSwitch:y.offerModelSwitch,requiresEnablement:y.requiresEnablement}),M&&t.jsx(DHe,{isOpen:!0,messageLimit:n,onClose:pe,onSaved:fe,thenAddFunds:j}),L&&I&&t.jsx(EHe,{isOpen:!0,targetModelId:I,currentModelId:A,requestState:H,onClose:()=>{N(!1),T(void 0),E(void 0),R?.(),D(void 0)}})]})}function FHe({isOpen:s,overagesEnabled:n,isOverageSettingsLoading:a,messageLimit:i,isWarning:r=!1,onOveragesClick:o,onClose:l}){const c=JS(),d=ae(),u=hJ(),m=fi(),p=hi(),f=Ci(),{active:g}=ak(),h=gi(s),C=wn(),x=ik(),v=m||p||f||h,y=h&&"max_20x"===x,{windowName:b,status:k,modelDisplayName:w}=fJ(i?.windows,i?.sentOnModel),M=e.useMemo(()=>{if(w)return c.formatMessage({defaultMessage:"weekly {model} limit",id:"B5fLsGXUWE"},{model:w});switch(b){case"5h":return c.formatMessage({defaultMessage:"5-hour limit",id:"PwHepdVb5S"});case"7d":case"7d_cowork":return c.formatMessage({defaultMessage:"weekly limit",id:"npgQgzh1YI"});default:return c.formatMessage({defaultMessage:"plan's limit",id:"PvOSnSrr3W"})}},[c,b,w]),_=e.useMemo(()=>k?.resets_at?new Date(1e3*k.resets_at):null,[k?.resets_at]),j=e.useMemo(()=>_?c.formatTime(_,{hour:"numeric",minute:"2-digit",timeZoneName:"short"}):null,[c,_]),S=e.useMemo(()=>_?c.formatDate(_,{month:"short",day:"numeric"}):null,[c,_]),L=e.useMemo(()=>v?null:b&&_&&"overage"!==b?"5h"===b?c.formatMessage({defaultMessage:"Wait until {resetHour}",id:"0rNZILlkMs"},{resetHour:c.formatTime(_,{hour:"numeric"})}):c.formatMessage({defaultMessage:"Wait until {resetDayOfWeek}",id:"q0dq8jPlbz"},{resetDayOfWeek:c.formatDate(_,{weekday:"long"})}):c.formatMessage({defaultMessage:"No, thanks",id:"fFaCQIK3h3"}),[c,v,b,_]);e.useEffect(()=>{s&&(d.track({event_key:"claudeai.overages_or_upgrades_upsell_modal.viewed",limit_window:b,paid_account_tier:C,can_upgrade:v,is_warning:r}),localStorage.setItem(xJ,(new Date).toISOString()))},[s,d,b,C,v,r]);const N=e.useCallback(()=>{d.track({event_key:"claudeai.overages_or_upgrades_upsell_modal.overages_clicked",limit_window:b,paid_account_tier:C,can_upgrade:v,overages_enabled:n,is_warning:r}),o()},[d,b,C,v,n,r,o]),I=e.useCallback(()=>{d.track({event_key:"claudeai.overages_or_upgrades_upsell_modal.upgrade_clicked",limit_window:b,paid_account_tier:C,can_upgrade:v,overages_enabled:n,is_warning:r})},[d,b,C,v,n,r]),T=e.useCallback(()=>{d.track({event_key:"claudeai.overages_or_upgrades_upsell_modal.closed",limit_window:b,paid_account_tier:C,can_upgrade:v,is_warning:r}),l()},[d,b,C,v,r,l]),A=e.useMemo(()=>m?"/upgrade/pro?from=ratelimit":p?"/upgrade?hide_pro=true&from=ratelimit":f?"/upgrade?from=ratelimit":h?"/upgrade?initialPlanType=team&from=ratelimit":null,[m,p,f,h]),E=(R=s&&v&&Boolean(A),Ba("claudified_two_option_emphasis_calibration","variant","control",AHe,R));var R;const D=e.useMemo(()=>m?c.formatMessage({defaultMessage:"Upgrade to Pro",id:"5N04mo7WNC"}):p?c.formatMessage({defaultMessage:"Upgrade to Max",id:"z+PtTMgM3T"}):f?g?String(gs({id:"7fgvza",intl:c})):c.formatMessage({defaultMessage:"Upgrade to Max 20x",id:"QxoK671Kmz"}):h?y?c.formatMessage({defaultMessage:"Set up a Team plan",id:"XSqQXdSdEE"}):c.formatMessage({defaultMessage:"Upgrade to Team",id:"SxBLzkDV6M"}):c.formatMessage({defaultMessage:"Upgrade",id:"0h/lPMeYkq"}),[c,m,p,f,h,y,g]),H=e.useCallback(()=>r?j&&S?c.formatMessage({defaultMessage:"You're approaching your {limitName}. It resets at {resetTime} on {resetDay}. To keep working without interruption:",id:"G8T4pPDWCR"},{limitName:M,resetTime:j,resetDay:S}):c.formatMessage({defaultMessage:"You're approaching your {limitName}. To keep working without interruption:",id:"GYOgJNzMZF"},{limitName:M}):j&&S?c.formatMessage({defaultMessage:"You've reached your {limitName}. It resets at {resetTime} on {resetDay}. To keep working before then:",id:"C6F5RhayyU"},{limitName:M,resetTime:j,resetDay:S}):c.formatMessage({defaultMessage:"You've reached your {limitName}. To keep working before it resets:",id:"THz7NQ5+GI"},{limitName:M}),[c,j,S,r,M]),P=e.useMemo(()=>v?t.jsxs(t.Fragment,{children:[t.jsx("p",{className:"mt-2 mb-[22px] text-sm text-text-300",children:H()}),t.jsxs("div",{className:"flex flex-row items-stretch gap-4",children:[t.jsx(VHe,{title:u?c.formatMessage({defaultMessage:"Buy extra usage",id:"zlZmUPVSac"}):c.formatMessage({defaultMessage:"Buy usage credits",id:"7q0oJax+NE"}),description:u?c.formatMessage({defaultMessage:"Extra usage draws down as you go. Good for occasional busy days.",id:"juEGrALBBz"}):c.formatMessage({defaultMessage:"Usage credits draw down as you go. Good for occasional busy days.",id:"7PQu3bgx83"}),buttonText:u?c.formatMessage({defaultMessage:"Buy extra usage",id:"zlZmUPVSac"}):c.formatMessage({defaultMessage:"Buy usage credits",id:"7q0oJax+NE"}),pictogramAsset:SA,onClick:N,disabled:a,emphasized:"emphasis_usage_credits"===E}),A&&t.jsx(VHe,{title:y?c.formatMessage({defaultMessage:"Bring your team along",id:"FJ0p+k0xo1"}):c.formatMessage({defaultMessage:"Upgrade your plan",id:"as+uxZ9cVJ"}),description:y?c.formatMessage({defaultMessage:"If Claude's this useful to you, share it with your colleagues \u2014 work together in shared projects, all on one plan.",id:"LJ6TuycAf5"}):c.formatMessage({defaultMessage:"Get higher limits every month. Good for consistent heavy use.",id:"7WkcKYRlhq"}),buttonText:D,pictogramAsset:LA,href:A,onClick:I,emphasized:"emphasis_upgrade"===E})]})]}):t.jsxs(t.Fragment,{children:[t.jsx("p",{className:"mt-2 mb-5 text-sm",children:H()}),t.jsxs("ul",{className:"mb-8",children:[t.jsx(zHe,{benefitText:t.jsx(XS,{defaultMessage:"Continue without interruption",id:"0WkTDuwIgp"})}),t.jsx(zHe,{benefitText:t.jsx(XS,{defaultMessage:"Pay only for what you use",id:"8FFgJKCSbr"})}),t.jsx(zHe,{benefitText:t.jsx(XS,{defaultMessage:"Control costs with spend limits",id:"4zRFvoMIvb"})}),t.jsx(zHe,{benefitText:t.jsx(XS,{defaultMessage:"Track usage in real time",id:"eR6EzdokAj"})}),t.jsx(zHe,{benefitText:t.jsx(XS,{defaultMessage:"Works with Claude.ai and Claude Code",id:"dkoDCo77YZ"})}),t.jsx(zHe,{benefitText:t.jsx(XS,{defaultMessage:"Auto-reload when balance runs low",id:"C0IHaxOPo4"})})]}),t.jsxs("div",{className:"flex flex-col items-center justify-end gap-2",children:[t.jsx(rN,{variant:"primary",className:"w-full",onClick:N,disabled:a,children:u?t.jsx(XS,{defaultMessage:"Get extra usage",id:"tYq4Dt6buP"}):t.jsx(XS,{defaultMessage:"Get usage credits",id:"FsRuvVSbmk"})}),t.jsx(rN,{variant:"ghost",className:"w-full underline",onClick:T,children:L})]})]}),[v,y,T,N,c,A,D,L,I,H,a,u,E]),U=!v;return t.jsx(lN.Root,{open:s,onOpenChange:e=>!e&&T(),children:t.jsxs(lN.Popup,{size:U?"sm":"md",portalClassName:"z-toast",children:[t.jsx(lN.Header,{children:t.jsx(XS,{defaultMessage:"Need more usage?",id:"oQgie7BDAi"})}),P]})})}function VHe({pictogramAsset:e,emphasized:s,...n}){return t.jsx(LHe,{...n,pictogram:e,emphasized:s,emphasizedClassName:THe,className:"border-border-200 bg-bg-000",pictogramClassName:"text-text-100",titleClassName:"text-base text-text-100",descriptionClassName:"text-sm text-text-300",recommendedPillClassName:"bg-accent-100 text-accent-900 text-xs",recommendedLabel:t.jsx(XS,{defaultMessage:"Recommended",id:"VKfWR3F5qV"})})}function zHe({benefitText:e}){return t.jsxs("li",{className:"flex items-start gap-2.5 mb-1 text-text-300",children:[t.jsx(dD,{className:"mt-0.5 flex-shrink-0",size:18}),t.jsx("span",{className:"text-sm",children:e})]})}function ZHe({text:s}){const[n,a]=e.useState(!1),i=e.useRef(null),r=e.useRef(0),[o,l]=e.useState(42),c=o>42;return e.useLayoutEffect(()=>{l(i.current?.scrollHeight||0)},[s]),s?t.jsxs("div",{className:"overflow-hidden relative transition-[height] duration-150 ease-in-out text-text-300 text-sm",style:{height:n?o+(c?32:0):40},children:[t.jsx("div",{ref:i,className:"whitespace-pre-wrap",style:{wordBreak:"break-word",overflowWrap:"anywhere"},children:s}),c&&t.jsx("div",{className:"absolute bottom-0 right-0 bg-bg-100 bottom-0",children:t.jsxs("div",{className:"relative",children:[t.jsx("div",{className:"absolute top-0 bottom-0 -left-4 w-6 bg-gradient-to-r from-transparent to-bg-100"}),t.jsx(ds,{onClick:()=>{const e=i.current?.closest(".overflow-y-auto");!n&&e?r.current=e.scrollTop:n&&e&&e.scrollTo({top:r.current,behavior:"instant"}),a(e=>!e)},className:"font-medium flex gap-1 items-center relative\n  ",children:n?t.jsxs(t.Fragment,{children:[t.jsx(uD,{size:12,weight:"bold"}),t.jsx(XS,{defaultMessage:"Less",id:"mFYgAXM/x4"})]}):t.jsx(XS,{defaultMessage:"{ellipsis}More",id:"eRW5dl5m34",values:{ellipsis:"..."}})})]})})]}):null}function BHe(s){const{isOpen:n,onClose:a,prompt:i,serverUuid:r}=s,o=JS(),l=e.useCallback(()=>{u({}),a()},[a]),c=Oy(l),[d,u]=e.useState({}),m=i?.arguments?.some(e=>Boolean(e.required&&!d[e.name]));return i?t.jsxs(gt,{title:o.formatMessage({defaultMessage:"Enter prompt inputs",id:"zDs90mJ5UJ"}),subtitle:t.jsxs("div",{className:"flex flex-col gap-1 mt-1",children:[i.name,t.jsx(ZHe,{text:i.description})]}),isOpen:n,onClose:l,modalSize:"lg",children:[t.jsx("div",{className:"flex flex-col gap-4 max-h-[500px] mb-4 overflow-y-auto",children:i.arguments?.map(e=>t.jsx("div",{className:"flex flex-col gap-1",children:t.jsx(Us,{required:e.required,label:jT(e.name.toLowerCase()),placeholder:e.description,value:d[e.name]||"",onValueChange:t=>u(s=>({...s,[e.name]:t??""})),onBlur:()=>{u(t=>({...t,[e.name]:(t[e.name]??"").trim()}))},error:e.required&&""===d[e.name]},e.name)},e.name))}),t.jsxs(Eu,{children:[t.jsx(kt,{disabled:m,onClick:()=>{c({serverUuid:r,prompt:i,args:d})},children:t.jsx(XS,{defaultMessage:"Add prompt",id:"8UhdEv01LN"})}),t.jsx(kt,{variant:"secondary",onClick:l,children:t.jsx(XS,{defaultMessage:"Cancel",id:"47FYwba+bI"})})]})]}):null}const qHe=e.memo(function({callerIdentifier:e,isOpen:s,onClose:n,pathname:a}){const i=JS(),{toggleIntegrationEnabled:r}=rk(),{startAuth:o}=Oe(He.GMAIL,{callerIdentifier:e,pathname:a,handleAuthSuccess:()=>r(He.GMAIL,!0)});return t.jsx(gt,{modalSize:"xl",isOpen:s,onClose:n,hasCloseButton:!0,title:i.formatMessage({defaultMessage:"Authorize Gmail access",id:"qAaNEGdVAs"}),autoCloseOnFocusOut:!1,closeOnEscapeKeydown:!1,children:t.jsxs("div",{className:"mt-5 space-y-4",children:[t.jsxs("div",{className:"space-y-2",children:[t.jsx("p",{children:t.jsx(XS,{defaultMessage:"If you authorize Claude to access your Gmail messages, Claude may:",id:"jSILNEnCYt"})}),t.jsx("ul",{className:"list-disc pl-6",children:t.jsx("li",{children:t.jsx(XS,{defaultMessage:"Use the data to respond to your prompts, when appropriate (e.g. summarize my inbox)",id:"8TFSr6sl4m"})})})]}),t.jsxs("div",{className:"space-y-2",children:[t.jsx("p",{className:"font-medium",children:t.jsx(XS,{defaultMessage:"You retain control of your Gmail data at all times:",id:"tWXZ+kw0m8"})}),t.jsxs("ul",{className:"list-disc pl-6",children:[t.jsx("li",{children:t.jsx(XS,{defaultMessage:"We do not share your Gmail data with anyone",id:"QOdRYS1GQC"})}),t.jsx("li",{children:t.jsx(XS,{defaultMessage:"You can <link>delete your conversations with Claude</link>, which will also delete any Gmail data Claude used in that conversation",id:"i7OsuHlq9d",values:{link:e=>t.jsx(ds,{href:"https://support.anthropic.com/en/articles/8230524-how-can-i-delete-or-rename-a-conversation",target:"_blank",rel:"noopener noreferrer",children:e})}})})]})]}),t.jsx("p",{children:t.jsx(XS,{defaultMessage:"More details in our <link>Help Center</link>. If you click continue below, you\u2019ll be redirected to Google to authorize your Gmail integration.",id:"86giQGAK0E",values:{link:e=>t.jsx(ds,{href:"https://support.anthropic.com/en/articles/10168395-setting-up-integrations-on-claude-ai",target:"_blank",rel:"noopener noreferrer",children:e})}})}),t.jsxs("div",{className:"flex justify-end mt-6",children:[t.jsx(kt,{variant:"secondary",className:"mr-3",onClick:n,children:t.jsx(XS,{defaultMessage:"Cancel",id:"47FYwba+bI"})}),t.jsx(kt,{variant:"primary",onClick:()=>{o(),n()},children:t.jsx(XS,{defaultMessage:"Continue",id:"acrOozm08x"})})]})]})})}),WHe=e.memo(function(){const s=y("overages_upsell_disabled"),n=Ie(),{conversation:a}=rd(),{setSyncSourceUuids:i,syncSourceUuids:r,attachments:o,setAttachments:l}=re(e=>({setSyncSourceUuids:e.setSyncSourceUuids,syncSourceUuids:e.syncSourceUuids,attachments:e.attachments,setAttachments:e.setAttachments})),{setProjectUuid:c,promptInputRef:d}=J(),{createProjectModalIsOpen:u,setCreateProjectModalIsOpen:m,githubModalIsOpen:p,setGithubModalIsOpen:f,gmailAuthModalIsOpen:g,setGmailAuthModalIsOpen:h,createPromptArgumentModalIsOpen:C,setCreatePromptArgumentModalIsOpen:x}=AH(),{moveToProject:v}=TH(),b=kp(),k=e.useCallback(e=>{const t=d?.current?.getEditor();t&&t.chain().focus().insertContent({type:"text",text:`${HH(e)} `}).run()},[d]),w=e.useCallback(()=>h(!1),[h]),M=e.useCallback(()=>m(null),[m]),_=e.useCallback(()=>f(!1),[f]),j=e.useCallback(()=>x(null),[x]),S=fd(r),L=ok(S);return t.jsxs(t.Fragment,{children:[t.jsx(qHe,{isOpen:!!g,onClose:w,callerIdentifier:"inputMenu"}),t.jsx(zN,{source:b?.startsWith("/task/")?"task_new":"chat_input_menu",moveAttachments:!!u?.moveAttachments,isOpen:!!u?.isOpen,handleClose:M,handleProjectCreated:e=>{a?.id?v([a.id],e.uuid,e.name,{enableNavigation:!0}):c(e.uuid),m(null)},syncSources:L,attachments:o,setSyncSourceUuids:i,setAttachments:l}),t.jsx(lW,{location:"chat",projectUuid:n,isOpen:p,onClose:_,onChatRepoPicked:k}),C&&t.jsx(BHe,{isOpen:C.isOpen,onClose:j,serverUuid:C.serverUuid,prompt:C.prompt}),!s&&t.jsx(OHe,{}),t.jsx(SHe,{}),t.jsx(lk,{}),""]})});function $He(e){const t=e.split(":");return{serverUuid:t[0],resourceUri:t.slice(1).join(":")}}function GHe(e){const t=e.getState(),s=[];for(const[n,a]of Object.entries(t.remoteServers)){if(!a)continue;const e=t.remoteConnectionStates[n];if(!e?.isConnected)continue;const i=t.remoteResources[n]||[];i.some(e=>!e.hidden)&&s.push({uuid:n,name:a.name,resources:i,iconType:"favicon",iconSrc:a.url})}for(const[n,a]of Object.entries(t.localClients)){if(!a)continue;const e=t.localResources[n]||[];e.some(e=>!e.hidden)&&s.push({uuid:a.uuid,name:n,resources:e,iconType:"external",iconSrc:void 0})}return s}const KHe=ZI.create({name:"connectorMention",group:"inline",inline:!0,atom:!0,addAttributes:()=>({label:{default:""}}),renderHTML:({node:e,HTMLAttributes:t})=>["span",BI(t,{"data-connector-mention":""}),e.attrs.label],renderText:({node:e})=>e.attrs.label}),YHe=e.lazy(()=>a(()=>import("./cdd4dda0d-BNWrk4As.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(e=>({default:e.ConnectorMentionNodeViewBody})));function QHe({node:s,selected:n}){const a=s.attrs.label,i=t.jsx(YLe,{label:a,selected:n});return t.jsx(WI,{as:"span",contentEditable:!1,children:t.jsx($Le,{componentName:"lazy:ConnectorMentionNodeViewBody",fallback:i,children:t.jsx(e.Suspense,{fallback:i,children:t.jsx(YHe,{label:a,selected:n})})})})}const JHe=KHe.extend({addNodeView:()=>qI(QHe)});function XHe(s,n){const a=Uy(),r=ut(),{syncSourceUuids:o,setSyncSourceUuids:l}=re(e=>({syncSourceUuids:e.syncSourceUuids,setSyncSourceUuids:e.setSyncSourceUuids})),c=fd(o).map(e=>e.data).filter(e=>void 0!==e),d=e.useRef(a),u=e.useRef(r),m=e.useRef(c),p=e.useRef(l);d.current=a,u.current=r,e.useEffect(()=>{m.current=c},[c]),e.useEffect(()=>{p.current=l},[l]);const f=e.useCallback(e=>{n?.(e,"desktop")},[n]),g=e.useCallback(e=>{const{resourceUri:t}=$He(e),s=m.current.filter(e=>{const s=e.config;return s?.resource?.uri===t});if(s.length>0){const e=s.map(e=>e.uuid);p.current(t=>t.filter(t=>!e.includes(t)))}},[]),h=e.useCallback(e=>t.jsx(Ls,{size:16,type:e.iconType,src:e.iconSrc,name:e.name}),[]),C=e.useCallback(e=>i.renderToStaticMarkup(t.jsx(Ls,{size:16,type:e.iconType,src:e.iconSrc,name:e.name})),[]),{isAgentNewRoute:x,localSessionId:v,coworkComposerScope:b}=J(),k=y("cu_mention_windows")&&!b,w=e.useMemo(()=>k?n0(f,"windows"):null,[k,f]),M=y("mention_provider_mcp_resources"),_=e.useMemo(()=>M?function({connectorsStore:e,onSelect:t,onDelete:s,renderIcon:n,renderIconToHtml:a}){return{id:"mcp-resources",getIconHtml:t=>{const{serverUuid:s}=$He(t),n=GHe(e).find(e=>e.uuid===s);return n?a(n):void 0},fetchOptions:t=>{const s=GHe(e),a=t.toLowerCase(),i=[];for(const e of s){const t=e.resources.filter(e=>!e.hidden&&(e.name?.toLowerCase().includes(a)||e.description?.toLowerCase().includes(a)));for(const s of t)i.push({id:`${e.uuid}:${s.uri}`,label:s.name,icon:n(e),category:e.name,metadata:{serverUuid:e.uuid,resourceUri:s.uri},providerId:"mcp-resources"})}return i},onSelect:async s=>{const{serverUuid:n,resourceUri:a}=$He(s),i=GHe(e).find(e=>e.uuid===n),r=i?.resources.find(e=>e.uri===a);if(!i||!r)throw new Error("Resource not found");return null===await t(n,r)?null:{chipText:r.name}},onDelete:s}}({connectorsStore:Ia,onSelect:async(e,t)=>{try{await d.current({serverUuid:e,resource:t})}catch(s){throw u.current.addError(PW(s),{error:s,errorContext:{tags:{source:"mention_mcp_resource_attach"}}}),s}},onDelete:g,renderIcon:h,renderIconToHtml:C}):null,[M,g,h,C]),j=ra(),S=e.useCallback(()=>ol.getState().selectedFolders,[]),L=e.useCallback(()=>j.considerEnabledForNonUI?v||(x?"local_session_new":null):null,[j.considerEnabledForNonUI,v,x]),N=e.useCallback(e=>{n?.(e,"local-files")},[n]),I=e.useCallback((e,s)=>s?t.jsx(Hg,{size:16}):t.jsx(hg,{path:e,size:16}),[]),T=e.useCallback((e,s)=>s?i.renderToStaticMarkup(t.jsx(Hg,{size:16})):i.renderToStaticMarkup(t.jsx(hg,{path:e,size:16})),[]),A=e.useMemo(()=>j.considerEnabledForNonUI?b?null:function(e){const{getSelectedFolders:t,getSessionId:s,fileSystemBridge:n,onDelete:a,renderIcon:i,renderIconToHtml:r}=e;if(!n||!n.listFilesInFolder)return null;const o=new Map;return{id:"local-files",fetchOptions:async e=>{const a=s();if(!a)return[];const l=t();if(0===l.length)return[];const c=e.toLowerCase(),d=[],u=await Promise.allSettled(l.map(async e=>{try{return{folderPath:e,files:await n.listFilesInFolder(a,e)}}catch{return{folderPath:e,files:[]}}}));for(const t of u){if("rejected"===t.status)continue;const{folderPath:e,files:s}=t.value,n=e.split("/").pop()||e;for(const t of s)if(!c||t.name.toLowerCase().includes(c)){if(d.length>=10)break;o.set(t.path,r(t.path,t.isDirectory)),d.push({id:t.path,label:t.name,icon:i(t.path,t.isDirectory),category:n,metadata:{folderPath:e,fileName:t.name},providerId:"local-files",renderedText:t.path})}if(d.length>=10)break}return d},onSelect:e=>{const t=e,s=t.split("/").pop()||t;return Promise.resolve({chipText:s})},onDelete:a,getIconHtml:e=>o.get(e)}}({getSelectedFolders:S,getSessionId:L,fileSystemBridge:Ju,onDelete:N,renderIcon:I,renderIconToHtml:T}):null,[j.considerEnabledForNonUI,b,S,L,N,I,T]),E=function(s){const n=nl(),{isAgentNewRoute:a,coworkComposerScope:r}=J(),o=as(),l=n.enabled&&a&&o&&!r,c=gb({enabled:l}),d=e.useRef(c);e.useEffect(()=>{d.current=c},[c]);const u=ck(),m=e.useCallback(()=>d.current,[]),p=e.useCallback(()=>ol.getState().selectedProjectUuids,[]),f=e.useCallback(e=>{p().has(e)&&ol.getState().toggleProject(e),s?.(e,"projects")},[p,s]),g=e.useCallback(()=>t.jsx(is,{size:16}),[]),h=i.renderToStaticMarkup(t.jsx(is,{size:16})),C=e.useMemo(()=>({id:"projects",fetchOptions:e=>{const t=m(),s=p(),n=e.toLowerCase(),a=[];for(const i of t)if((!n||i.name.toLowerCase().includes(n))&&!s.has(i.uuid)){if(a.length>=10)break;a.push({id:i.uuid,label:i.name,icon:g(),category:i.creator.full_name||"Projects",metadata:{projectUuid:i.uuid,projectName:i.name,creatorName:i.creator.full_name},providerId:"projects",renderedText:i.name})}return a},onSelect:async e=>{const t=m().find(t=>t.uuid===e),s=t?.name||"Project",n=ol.getState();return n.selectedProjectUuids.has(e)?(n.toggleProject(e),{chipText:s}):await u(e,s,"mention",()=>n.toggleProject(e))?{chipText:s}:null},onDelete:f,getIconHtml:()=>h}),[m,p,f,g,h,u]);return l?C:null}(n),R=e.useMemo(()=>s?[A,E,w,_].filter(Boolean):[],[s,A,E,w,_]),D=e.useCallback((e,t)=>{const s=R.find(e=>e.id===t);s&&s.onDelete(e)},[R]);return{mentionProviders:R,handleMentionDeleted:D}}const ePe=e.forwardRef(({className:s,disabled:n,prompt:a,tipTapEditorState:i,setTipTapEditorState:r,placeholder:o,onSubmit:l,onReady:c,placement:d,fetchInputAutocompletion:u,onMentionAttachments:p,onMentionDeleted:f,extraExtensions:g=[],hasHydrated:h,promptSuggestion:C},x)=>{const v=JS(),b=m(),k=y("plain_text_input"),w=y("yukon_silver_fishing"),M=y("claudeai_composer_hardbreak_paste"),_=ie(),j=w&&_,S=fk(),L=nI(e=>e.isFullscreen),N=hd(()=>a),{mentionProviders:I,handleMentionDeleted:T}=XHe(j,f),A=$I({mentionProviders:I,onMentionAttachments:p,onMentionDeleted:T}),{isDropdownVisible:E}=A,R=e.useMemo(()=>[GI,...g],[g]),{editor:D}=KI({tipTapEditorState:i,setTipTapEditorState:r,onReady:c,placeholder:o,fetchInputAutocompletion:u,plainTextMode:k,mentionsEnabled:j,mentionProviders:I,onMentionStateChange:A.handleStateChange,onMentionSelect:e=>A.handleMentionSelect(e),extraEditorAttributes:{role:"textbox","data-testid":pk,"aria-label":v.formatMessage({defaultMessage:"Write your prompt to Claude",id:"Lxn7p6AQvE"}),"aria-multiline":"true","aria-required":"false","aria-invalid":"false","aria-describedby":"claude-code-nudge-body"},extraExtensions:R,hasHydrated:h,enableHardBreak:M});e.useEffect(()=>{j&&A.setEditor(D)},[D,j,A.setEditor]);const H=j&&YI(A.mentionState)?A.mentionState.position:null,P=Boolean(H);e.useEffect(()=>{if(P)return kb("mention_menu",!0),()=>kb("mention_menu",!1)},[P]);const U=hd(()=>{const e=D?.storage["slash-command-suggestion"];return{disabled:Boolean(n),mentionMenuOpen:j&&E(),slashMenuOpen:Boolean(e?.isActive&&e?.hasVisibleItems)}});e.useEffect(()=>{if(D)return dk(D.view.dom,U)},[D,U]),e.useImperativeHandle(x,()=>({setContent(e){if("string"==typeof e){if(e!==N()){const t={type:"doc",content:e.split("\n").map(e=>({type:"paragraph",content:e?[{type:"text",text:e}]:[]}))};D?.commands.setContent(t,{emitUpdate:!1})}}else D?.commands.setContent(e,{emitUpdate:!1})},setEditable(e){D?.setOptions({editable:e})},focus(){D?.commands.focus()},getPosition:()=>D?.state.selection.$anchor,getEditor:()=>D,getIsAtStart(){if(!D)return;const{selection:e}=D.state;return!!e.empty&&e.$anchor.pos===_I.atStart(D.state.doc).$anchor.pos},getIsAtEnd(){if(!D)return;const{selection:e}=D.state;return!!e.empty&&e.$anchor.pos===_I.atEnd(D.state.doc).$anchor.pos},scrollToEnd(){D&&requestAnimationFrame(()=>{requestAnimationFrame(()=>{D.commands.setTextSelection(D.state.doc.content.size),D.commands.scrollIntoView();const e=D.view.dom.parentElement;e&&(e.scrollTop=e.scrollHeight)})})},getCursorOffset(){if(!D)return 0;const{from:e}=D.state.selection;return uk(D.state.doc,e)},setContentWithDictation(e,t,s){if(!D)return;const n=QI(e,t,s);D.commands.setContent(n);const a=e+t+s,i=e.length+t.length,r=JI(a,i,D.state.doc.content.size);D.commands.setTextSelection(r)},clearDictationMarks(){if(!D)return;const{from:e}=D.state.selection;D.chain().selectAll().unsetMark("dictation").setTextSelection(e).run()}}),[D,N]);const O=e.useCallback(e=>{if(n&&"Enter"===e.key&&!e.shiftKey)return void e.preventDefault();if(("Tab"===e.key||"ArrowRight"===e.key)&&!e.shiftKey&&!e.ctrlKey&&!e.metaKey&&""===N()&&C)return e.preventDefault(),void D?.chain().setContent({type:"doc",content:[{type:"paragraph",content:[{type:"text",text:C}]}]}).focus("end").run();if("Enter"!==e.key)return;if(!l)return;const t=U();t.mentionMenuOpen||t.slashMenuOpen||mk(e.nativeEvent,b,t)&&(e.preventDefault(),l(e))},[n,b,l,U,D,N,C]);return t.jsxs(t.Fragment,{children:[t.jsx(XI,{className:dt("w-full overflow-y-auto break-words transition-opacity duration-200","compact"===d?"font-base":"font-large",L?"max-h-28":"compact"===d?"max-h-[var(--compact-input-max-h,24rem)]":"max-h-96","bottom"===d?"min-h-[1.5rem]":"compact"===d?"min-h-[var(--compact-input-min-h,5rem)]":"min-h-[calc(2lh+6px)]",n&&"opacity-60",n&&"cursor-default",S,s),editor:D,onKeyDownCapture:O}),H&&t.jsx(eT,{options:A.mentionState.options,onSelect:A.handleMentionSelect,onClose:A.handleDropdownClose,position:H,selectedIndex:A.mentionState.selectedIndex})]})});ePe.displayName="PromptInput";const tPe=ZI.create({name:"connectorToolChip",group:"inline",inline:!0,atom:!0,addAttributes:()=>({toolName:{default:null},toolDisplayName:{default:""},connectorName:{default:""}}),parseHTML:()=>[{tag:"span[data-connector-tool-chip]"}],renderHTML({node:e,HTMLAttributes:t}){const s=e.attrs.toolDisplayName||e.attrs.toolName,n=e.attrs.connectorName,a=n?`${n}: ${s}`:s;return["span",BI(t,{"data-connector-tool-chip":""}),a]},renderText({node:e}){const t=e.attrs.toolDisplayName||e.attrs.toolName,s=e.attrs.connectorName;return s?`${s}: ${t}`:t},addKeyboardShortcuts(){return{Backspace:()=>{const{selection:e}=this.editor.state,{$from:t,empty:s}=e;if(!s)return!1;const n=t.nodeBefore;if(n&&n.type.name===this.name){const e=t.pos-n.nodeSize;return this.editor.chain().setNodeSelection(e).run(),!0}return!1}}}});function sPe({node:e,selected:s}){const n=JS(),a=e.attrs.toolDisplayName||e.attrs.toolName,i=e.attrs.connectorName,r=i?n.formatMessage({defaultMessage:"{connectorName} connector",id:"w1G24cRb9M",description:"Label for a connector tool chip hover card"},{connectorName:i}):n.formatMessage({defaultMessage:"Connector",id:"PFOPtBwYWZ",description:"Fallback label for a connector tool chip hover card"});return t.jsx(WI,{as:"span",contentEditable:!1,children:t.jsx(tT,{description:"",subtitle:r,selected:s,children:t.jsxs("span",{className:"relative pl-0.5",children:[i&&t.jsxs("span",{className:"select-none opacity-50",children:[i,": "]}),t.jsx("span",{className:"select-none",children:a})]})})})}const nPe=tPe.extend({addNodeView:()=>qI(sPe)});function aPe(e,t,s="quick_entry_image",n=null){const a=atob(e),i=new Uint8Array(a.length);for(let o=0;o<a.length;o++)i[o]=a.charCodeAt(o);const r=n||Ck[t]||"png";return new File([i],`${s}.${r}`,{type:t})}async function iPe(e,t,s,n,a){const i=a?a.split(".")[0]:a,r=a?a.split(".")[1]:a;if(i&&r){const n=aPe(e,t,i,r),a={orgUuid:s,conversationUuid:gk.current,featureGates:{janus_claude_ai:!0,ooc_attachments:!0,use_canvas_resize:!0,wiggleEnabled:!0}};return[{...await hk(n,a),nativeFile:n,derivedFor:"wiggle"}]}const o=function(e,t,s="quick_entry_image",n=null){const a=aPe(e,t,s,n),i=new FormData;return i.append("file",a),i}(e,t,i,r),l=await n(`/api/${s}/upload`,{method:"POST",body:o});if(l.ok){return[{...await l.json(),nativeFile:aPe(e,t,i,r),derivedFor:"org"}]}throw new Error(`Failed to upload image: ${l.status} ${l.statusText}`)}const rPe=e.forwardRef(({onSubmit:s,onReady:n,placement:a,placeholder:i,fetchInputAutocompletion:r,className:o,disabled:l,promptSuggestion:c,slashCommandMenuComponent:d},u)=>{const m=re(e=>e._hasHydrated),{prompt:p,tipTapEditorState:f}=xk(),{setTipTapEditorState:g,setFiles:h}=re(hT(e=>({setTipTapEditorState:e.setTipTapEditorJSON,setFiles:e.setFiles}))),{handleMentionAttachments:C,handleMentionDeleted:x}=function({setFiles:t,createMessageFileFromBase64:s}){const n=JS(),{activeOrganization:a}=v(),i=M(),{addError:r}=ut(),o=e.useRef(new Map);return{handleMentionAttachments:e.useCallback(async(e,l)=>{const c=[];for(const t of l)if(t.extracted_content)try{const e=await s(t.extracted_content,t.file_type,a?.uuid??"",i,t.file_name);c.push(...e)}catch(u){k.error(w.DESKTOP_API,"Failed to upload mention attachment",{error:u}),r(n.formatMessage({defaultMessage:"Failed to upload attachment. You can try again.",id:"lG4VIx4FDG"}),{error:u,messageForLogging:"Failed to upload attachment. You can try again."})}const d=c.map(e=>e.file_uuid);o.current.set(e,d),t(e=>{const t=new Set(e.map(e=>e.file_uuid)),s=c.filter(e=>!t.has(e.file_uuid));return[...e,...s]})},[t,a,i,s,r,n]),handleMentionDeleted:e.useCallback(e=>{const s=o.current.get(e);s&&(t(e=>e.filter(e=>!s.includes(e.file_uuid))),o.current.delete(e))},[t])}}({setFiles:h,createMessageFileFromBase64:iPe}),b=y("claudeai_slash_connectors"),_=y("cowork_connector_mention_pills"),j=e.useMemo(()=>[nT.configure({placement:a,menuComponent:d}),sT,_?JHe:KHe,b?nPe:tPe],[a,d,b,_]);return t.jsx(ePe,{ref:u,prompt:p,tipTapEditorState:f,setTipTapEditorState:g,onSubmit:s,onReady:n,placement:a,placeholder:i,fetchInputAutocompletion:r,className:o,onMentionAttachments:C,onMentionDeleted:x,extraExtensions:j,disabled:l||!m,hasHydrated:m,promptSuggestion:c})});rPe.displayName="PromptInputWithState";const oPe={fade:5e3,typewriter:3500},lPe=e.lazy(()=>a(()=>import("./cba28e98e-yNc17D4c.js"),[],import.meta.url).then(e=>({default:e.TypewriterText})));function cPe(){const e=JS();return[e.formatMessage({defaultMessage:"How can I help you today?",id:"XLcM6WHfQR"}),e.formatMessage({defaultMessage:"Type / for skills",id:"jGTFVKPV2+"})]}const dPe=e.memo(({placeholders:s,isVisible:n,animation:a="fade"})=>{const i=rA(),r=fk(),o="typewriter"!==a||i?"fade":"typewriter",[l,c]=e.useState(0),[d,u]=e.useState(!1),[m,p]=e.useState(!1),f=s.join("\0"),[g,h]=e.useState(f);if(g!==f&&(h(f),c(0),u(!1),p(!1)),e.useEffect(()=>{if(!n||s.length<=1||m)return;const e=setInterval(()=>{u(!0),c(e=>{const t=(e+1)%s.length;return 0===t&&p(!0),t})},oPe[o]);return()=>clearInterval(e)},[n,s.length,m,o]),e.useEffect(()=>{n&&(c(0),u(!1),p(!1))},[n]),!n)return null;const C=s[l]??s[0];return t.jsx("div",{className:dt("absolute inset-0 pointer-events-none overflow-hidden",r),children:"typewriter"===o?t.jsxs("span",{className:"block text-text-500",children:[t.jsx("span",{className:"sr-only",children:C}),t.jsx(e.Suspense,{fallback:null,children:t.jsx(lPe,{text:C})})]}):t.jsx(nA,{mode:"wait",initial:!1,children:t.jsx(sA.span,{initial:!!d&&{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.5,ease:"linear"},className:"block text-text-500",children:C},l)})})});function uPe({children:e}){const s=h9();return t.jsx(Sk,{onPasteCapture:s,children:e})}dPe.displayName="RotatingPlaceholder";const mPe=e.forwardRef(({disabled:s,placement:n,placeholder:a,onSubmit:i,onReady:r,onRetry:o,onRetryWithoutFiles:l,enableScreenDrop:c=!1,disableDropZone:d=!1,isStreaming:u=!1,hideAlertBand:m=!1,promptSuggestion:p,rotatingPlaceholders:f,rotatingPlaceholderAnimation:g,containerClassName:h,isPrimaryComposer:C=!0,slashCommandMenuComponent:x},v)=>{const y=e.useId(),b=C?"":y,k=e.useCallback((e,t)=>o?.(e,t),[o]),w=Ie(),M=Eb(),_=fk(),j=Zb(),S=Boolean(j.get("q")),{previewPrompt:L,previewSurface:N,setPreviewPrompt:I,setPrompt:T,getPrompt:A,setAttachments:E,setFiles:R,attachments:D,files:H,syncSourceUuids:P}=re(e=>({previewPrompt:e.previewPrompt,previewSurface:e.previewSurface,setPreviewPrompt:e.setPreviewPrompt,setPrompt:e.setPrompt,getPrompt:e.getPrompt,setAttachments:e.setAttachments,setFiles:e.setFiles,attachments:e.attachments,files:e.files,syncSourceUuids:e.syncSourceUuids})),{sendMessage:U,conversation:O,isChatSyncing:F,isProjectSyncing:V,isSending:z,focusInput:Z,setSendInterceptor:B,hasActiveSendInterceptor:q,promptInputRef:W,willRedirectOnSubmit:$,hasBlockingWarning:G,isUploadingFile:K,isAttachingResource:Y,uploadInputProps:Q,isNewConversation:X,currentCompassTask:te,isLocalAgentRoute:se,isAgentMode:ne,frontendQueueEnabled:oe,submitOrQueue:le,reviewCount:de,pendingFolders:ue,model:me,setModel:pe}=J(),fe=od(e=>e.isLoadingMentionData),{incognitoModeEnabled:ge}=Va(),he=nI(e=>e.isFullscreen),xe=nI(e=>e.setChatInputTopToViewportBottom),ve=e.useRef(null),ye=e.useRef(null),be=ie(),ke=Ye({source:"extendedThinkingKeyBinding",conversationUuid:O?.id,currentModel:me}),we=Fe("paprika_mode"),Me=Ke(we,O?.id,me),_e=e.useCallback(()=>{const e=Me?null:"extended";ke(e),Tue.setThinkingMode(e?ty(e):void 0).catch(e=>tue("[ChatInput] voice setThinkingMode failed",e))},[ke,Me]);!function(t){const{matchShortcut:s}=Pv("extended_thinking");e.useEffect(()=>{if(!t)return;const e=e=>{if(s(e))return e.preventDefault(),e.stopPropagation(),t(),!1};return document.addEventListener("keydown",e,!0),()=>document.removeEventListener("keydown",e,!0)},[s,t])}(C?_e:void 0),e.useImperativeHandle(v,()=>({setContent:(e,t,s,n)=>{T(e,{forceUpdateTiptap:!0,unsafe:n?.unsafe}),E("function"==typeof t?t(D):t),R("function"==typeof s?s(H):s)},sendMessage:U,setAttachments:e=>{E("function"==typeof e?e(D):e)},getAttachments:()=>D,executeSkill:(e,t,s)=>{const n=W.current?.getEditor();n&&n.chain().focus().clearContent().insertContent(fv(e,t,s)).run()}})),vk(O?.id);const{fetchInputAutocompletion:je}=jU(O?.id),Se=C2(w);e.useEffect(()=>{const e=ve.current;if(!e||!C)return;let t=0;const s=()=>{t=0;const s=e.getBoundingClientRect(),n=window.innerHeight-s.top;xe(n)},n=()=>{t||(t=requestAnimationFrame(s))},a=new ResizeObserver(n);return a.observe(e),window.addEventListener("scroll",n,!0),window.addEventListener("resize",n),s(),()=>{t&&cancelAnimationFrame(t),a.disconnect(),window.removeEventListener("scroll",n,!0),window.removeEventListener("resize",n)}},[xe,C]);const Ne=af(),Te=Ne||se||oe||!!O?.isExternalConversation,Ae=Boolean(O&&O.isSampling&&!Te),Ee=bAe(),Re=e.useRef(!1);e.useEffect(()=>{O?.isSampling?Re.current=!0:z||(Re.current=!1)},[O?.isSampling,z]);const De=Ee?z&&!O?.isSampling&&!Re.current:z,{isDictationRecording:He,dictationTranscript:Pe,dictationOwnerId:Ue}=zAe({isBusy:De,surface:{input:X?"landing":"session",projectUuid:w??"",...ne?{area:"cowork"}:{area:"chat",chatConversationUuid:O?.id}},enabled:C}),Oe=Zm(O?.id)&&!q&&!Ne,{addError:Ve}=ut(),ze=s||!oe&&z||M&&0===D.length&&0===H.length&&0===P.length&&0===de&&0===ue.length||K||C&&fe||Y||F||V||G||Se||Ae||Oe||Boolean(te),Ze=function(){const t=aa(e=>e.sessionContext?.sendToolDecision),s=aa(e=>e.sessionContext?.sessionId),{track:n}=ae(),a=JS(),i=M9(),r=j9(),o=b9(e=>null!==e.resolvedRequestId&&e.resolvedRequestId===i?.requestId),l=b9(e=>e.autoResolveFailedFor===i?.requestId),c=e.useMemo(()=>{const e=new Map;for(const{label:t,analyticsLabel:s}of w9(a))e.set(t,s);return e},[a]),d=e.useCallback(e=>{i&&t&&(b9.getState().set(e,i.requestId),t(i.requestId,i.toolUseId,{role:e},"once").then(()=>{n({event_key:"claudeai.setup_cowork.role_selected",role_label:c.get(e)??"<free_form>",source:"free_form",session_id:s})},()=>{b9.getState().clearResolution(i.requestId)}))},[i,t,n,s,c]);return!1!==r&&!l||o?null:i&&t?d:null}(),Be=$v();yk({conversationUuid:O?.id,sendMessage:U,isSending:z,isSendDisabled:ze||Be,getPrompt:A});const qe=e.useCallback(async()=>{if(I(void 0),!(ze||Be&&C)){if(Ze){const e=A().trim();if(!e)return;return Ze(e),T(""),void W.current?.setContent("")}await le()&&i&&i()}},[ze,Be,C,Ze,A,T,I,W,le,i]),{clickToFocusProps:We}=WS(Z),$e=e.useRef(null),[Ge]=Et(),Qe=O?.id||Ge,Je=g9(),Xe=gI(O?.id,O?.model),et=aT(),{data:tt,clearAll:st,submitFreeformAnswer:nt,focusBanner:at}=uO();Nz(e=>e.feedback);const it=Nz(e=>e.setFeedback);Nz(e=>e.clearFeedback),e.useCallback(e=>{const t=function(e){return"dismiss"===e.action?"dismiss":e.questions.slice(0,-1).every(t=>e.customTexts[t.id]===ee)?"all_skipped":null}(e);if(!t)return;let s="";if(Qe){const e=Ce.getState(),t=e.pathUuidsByConversation[Qe]||[];for(let n=t.length-1;n>=0;n--){const a=e.messageByUuid[t[n]];if("human"===a?.sender){s=(a.content??[]).filter(e=>"text"===e.type).map(e=>e.text).join("\n");break}}}it({questions:e.questions,triggerType:t,previousUserMessageText:s})},[it,Qe]);const{data:rt,submitFreeform:ot,onDismiss:lt,clearAll:ct}=T9(),mt=Boolean(rt||tt),[pt,ft]=e.useState(!1),gt=rt?.blockId??tt??null,ht=e.useRef(gt);gt!==ht.current&&(ht.current=gt,pt&&ft(!1));const Ct=e.useCallback(()=>{ft(!0),Z()},[Z]),xt=e.useRef(null);xt.current=rt?ot:tt?nt:null,e.useEffect(()=>{if(mt)return B(e=>{const t=xt.current;return!!t&&(t(e),!0)}),()=>B(null);B(null)},[mt,B]);const vt=e.useRef(rt);vt.current=rt;const yt=e.useRef(lt);yt.current=lt;const bt=e.useRef(!1);e.useEffect(()=>{const e=!bt.current&&z;if(bt.current=z,!e)return;st();const t=vt.current;t&&(yt.current?.(t.blockId),ct())},[z,st,ct]);const{composerPlaceholder:kt}=e.useContext(gd),wt=Qc(O?.id),Mt=ed(wt?void 0:O?.id),_t=wt??Mt,jt=ce("cai_kiwano",!!_t),St=function({isNewConversation:e,isAgentMode:t,placeholder:s,hasReviewChips:n=!1,isRolePickerActive:a=!1,isAnsweringQuestion:i=!1,hasModelFallbackNotice:r=!1}){const o=JS(),l=Cd(),c=xd();if("connecting"===c)return o.formatMessage({defaultMessage:"Connecting...",id:"5y2qWOlFVf"});if("recording"===c)return o.formatMessage({defaultMessage:"Listening...",id:"YAeW6K6mK9"});switch(l.status){case"connecting":return o.formatMessage({defaultMessage:"Connecting...",id:"5y2qWOlFVf"});case"listening":return o.formatMessage({defaultMessage:"Listening...",id:"YAeW6K6mK9"});case"processing":return o.formatMessage({defaultMessage:"Processing...",id:"6OWS4p9SXV"});case"speaking":return o.formatMessage({defaultMessage:"Claude is speaking...",id:"mKbWqS2HCv"})}return s||(a?o.formatMessage({defaultMessage:"Something else",id:"qm/eL5Y8Fl"}):i||r?o.formatMessage({defaultMessage:"Or reply directly\u2026",id:"NwUAfHUQN1"}):n?o.formatMessage({defaultMessage:"Address these review comments",id:"G6en+ZMAgk"}):e?o.formatMessage({defaultMessage:"How can I help you today?",id:"XLcM6WHfQR"}):t?o.formatMessage({defaultMessage:"Reply at any time, even when Claude is working",id:"2eHqp+TzbJ"}):o.formatMessage({defaultMessage:"Write a message\u2026",id:"zElqHZzItw"}))}({placeholder:a??kt,isNewConversation:X,isAgentMode:Ne,hasReviewChips:de>0,isRolePickerActive:null!==Ze,isAnsweringQuestion:mt,hasModelFallbackNotice:jt&&!!_t}),Lt=cPe(),Nt=f??Lt,It=Zv(),Tt=function(t){const s=Bv(),n=vg();return e.useCallback(e=>{if(!t)return;const a=n(t),i=a[a.length-1];if("human"===i?.sender&&"voice"===i?.input_mode&&i){const{updateMessage:t}=Ce.getState();t(i.uuid,{...i,content:[{type:"text",text:e}]}),Tue.setLastUserMessageUuid(i.uuid)}else{const n=(new Date).toISOString(),i=crypto.randomUUID(),r={uuid:i,sender:"human",content:[{type:"text",text:e}],created_at:n,updated_at:n,attachments:[],files:[],files_v2:[],sync_sources:[],index:a.length,input_mode:"voice"};s(t,[r]),Tue.setLastUserMessageUuid(i)}},[s,n,t])}(Qe);!function({setPrompt:t,promptInputRef:s,onTranscriptCommit:n,skipCommit:a=!1,enabled:i=!0}){const r=Zv(),o=e.useRef(t);o.current=t;const l=e.useRef(s);l.current=s;const c=e.useRef(n);c.current=n;const d=e.useRef(a);d.current=a;const u=e.useRef("idle"),m=e.useRef(""),p=e.useRef(null),f=e.useRef(!1),g=e.useRef(()=>{if(f.current)return;if(d.current)return;const e=m.current;e&&(f.current=!0,c.current?.(e),m.current="",o.current(""),l.current.current?.setContent(""),Vg.getState().setInterimTranscript("")),p.current&&(clearTimeout(p.current),p.current=null)});e.useEffect(()=>{i&&(r?(t(r),s.current?.setContent(r),m.current=r):m.current&&(m.current="",t("",{forceUpdateTiptap:!0}),s.current?.setContent("")))},[i,r,t,s]),e.useEffect(()=>{if(i)return Vg.subscribe(e=>{const t=e.state.status,s=u.current;"speaking"===t&&"speaking"!==s&&g.current(),"processing"===t&&"processing"!==s&&(p.current&&clearTimeout(p.current),p.current=setTimeout(()=>{g.current()},1e3)),"listening"===t&&"listening"!==s&&(f.current=!1,p.current&&(clearTimeout(p.current),p.current=null)),"idle"===t&&"idle"!==s&&(f.current=!1,m.current="",p.current&&(clearTimeout(p.current),p.current=null),o.current(""),l.current.current?.setContent("")),u.current=t})},[i]),e.useEffect(()=>()=>{p.current&&clearTimeout(p.current)},[])}({setPrompt:T,promptInputRef:W,onTranscriptCommit:Tt,skipCommit:$,enabled:C});const At=e.useRef(0),Rt=e.useCallback(()=>W.current?.getCursorOffset()??A().length,[W,A]),Dt=e.useCallback((e,t,s)=>{At.current=e.length+t.length,W.current?.setContentWithDictation&&W.current.setContentWithDictation(e,t,s)},[W]),Ht=Zi();ZAe({transcript:Pe,isActive:He,setPrompt:T,getPrompt:A,getPromptUnsafe:()=>bk(Ht.getState().tipTapEditorState),promptInputRef:W,autoCommit:!1,getCursorOffset:Rt,onDictationContentUpdate:Dt});const Pt=e.useRef(!1);e.useEffect(()=>{if(Pt.current&&!He){const e=W.current?.getEditor();if(e){e.chain().selectAll().unsetMark("dictation").run();const t=e.state.doc.textBetween(0,e.state.doc.content.size,"\n"),s=Math.min(At.current,t.length),n=JI(t,s,e.state.doc.content.size);e.commands.setTextSelection(n)}Z()}Pt.current=He},[He,Z,W]);const Ut=O?.id,Ot=e.useCallback(()=>{if(!Ut)return[];const{pathUuidsByConversation:e,messageByUuid:t}=Ce.getState(),s=e[Ut]??[],n=[];for(const a of s){const e=t[a];if("human"!==e?.sender)continue;const s=Le(e);s&&n.push(s)}return n},[Ut]),Ft=e.useCallback(()=>W.current?.getEditor()??null,[W]),{onKeyDown:Vt}=y9({resetKey:Ut,getEditor:Ft,getHumanPrompts:Ot}),zt=e.useCallback(e=>{if(mt&&"ArrowUp"===e.key&&!e.nativeEvent.isComposing&&Ft()?.view.dom.contains(e.target)&&!e.target.closest("[data-ask-user-input-banner]")){if(pt)return e.preventDefault(),ft(!1),void window.setTimeout(()=>{document.querySelector('[data-ask-user-input-banner] [role="listbox"], [data-ask-user-input-banner] [role="group"]')?.focus({preventScroll:!0})},0);if(Ft()?.isEmpty??1){e.preventDefault();const t=document.querySelector('[data-ask-user-input-banner] [role="listbox"], [data-ask-user-input-banner] [role="group"]');return void(t?t.focus({preventScroll:!0}):at())}}Vt(e)},[mt,pt,Ft,at,Vt]);if(O&&Xe&&"refusal"===Xe.stopReason&&Xe.fallback&&Xe.lastMessage&&O.id&&O.model){const e=Xe.blockedHumanMessage&&""!==Le(Xe.blockedHumanMessage).trim()?Xe.blockedHumanMessage:void 0;return t.jsx(a9,{model:O.model,conversationUuid:O.id,projectUuid:w??void 0,lastMessage:Xe.lastMessage,fallback:Xe.fallback,stopDetails:Xe.stopDetails,onRetryWithoutFiles:l&&e?s=>{O?.id&&Dn(O.id)?Ve(t.jsx(Hn,{})):l(e,s)}:void 0,onRetryOriginal:e=>{Xe.lastMessage.parent_message_uuid&&(O?.id&&Dn(O.id)?Ve(t.jsx(Hn,{})):(se||pe(e),o?.(Xe.lastMessage.parent_message_uuid,e)))},onRetryWithFallback:()=>{Xe.lastMessage.parent_message_uuid&&Xe.fallback&&(O?.id&&Dn(O.id)?Ve(t.jsx(Hn,{})):(se||pe(Xe.fallback.fallbackModelName),o?.(Xe.lastMessage.parent_message_uuid,Xe.fallback.fallbackModelName)))}})}if(et)return t.jsx(a9,{model:et.model,fallback:et.fallback,stopDetails:et.stopDetails,onRetryWithFallback:et.retry,coworkRefusedMessage:et.refusedMessage,onEditAndRetry:et.editRetry,onStartNewSession:et.startNewSession,editRetryModelId:et.editRetryModel,coworkDoubleBlock:et.doubleBlock,coworkOriginalModelId:et.originalModelId});const Zt=!!L&&(M||void 0!==N),Bt=(X||!!f)&&M&&!S&&!Zt&&!z&&!Be&&!He&&!a&&!kt&&0===de,qt=!!p&&M&&!S&&!Zt&&!Bt&&!z&&!Be&&!He&&0===de;return t.jsxs(t.Fragment,{children:[t.jsx("div",{onKeyDownCapture:zt,children:t.jsxs(uPe,{children:[t.jsx("input",{ref:$e,id:kk(n,b),"data-testid":"file-upload","aria-hidden":"true",tabIndex:-1,className:"absolute -z-10 h-0 w-0 overflow-hidden opacity-0 select-none",...Q}),"bottom"===n&&!m&&t.jsx("div",{className:dt("px-2 md:px-0",he&&"hidden"),"data-alert-band-wrapper":!0,inert:!!he||void 0,children:t.jsx(l9,{placement:n,onRetry:k,onRetryWithoutFiles:l,isStreaming:u,hasQuestionCard:mt})}),he&&C&&O?.id&&t.jsx(CAe,{conversationUuid:O.id,isStreaming:u}),"",rt?t.jsx("div",{className:pt?"hidden":"mb-2",children:t.jsx(R9,{data:rt,onEscape:Ct})}):tt?t.jsx("div",{className:pt?"hidden":"mb-2",children:t.jsx(Sz,{data:tt,onEscape:Ct,onFeedbackTrigger:void 0})}):null,t.jsx(k2,{hidden:he}),t.jsxs("div",{className:"relative",children:[t.jsx(L9,{}),C&&t.jsx(sEe,{}),t.jsxs(wk,{ref:ve,...We,disabled:s,className:dt("relative z-[1] border border-transparent",$&&z&&"animated-loading-background",ge?"border-dashed bg-clip-padding !border-border-200 shadow-[0_0.25rem_1.25rem_hsl(var(--always-black)/3.5%)] focus-within:shadow-[0_0.25rem_1.25rem_hsl(var(--always-black)/7.5%)]":`${Jc} ${_k} ${jk}`,h),children:[t.jsx("div",{ref:ye,children:t.jsx(f9,{...Je})}),(ne||be)&&C&&t.jsx(Pz,{anchorRef:ye}),t.jsxs(Mk,{children:[t.jsxs("div",{className:"relative font-large",children:[t.jsx(rPe,{ref:W,onSubmit:qe,onReady:r,placement:n,placeholder:St,fetchInputAutocompletion:je,slashCommandMenuComponent:x,promptSuggestion:qt?p:void 0,className:dt(Zt&&"!opacity-0",(Bt||qt||Zt)&&"[&_.is-editor-empty]:before:!content-['']",Be&&C&&It&&"[&_.ProseMirror]:italic [&_.ProseMirror]:text-text-300",He&&!Pe&&"[&_.ProseMirror.is-editor-empty]:italic [&_.ProseMirror.is-editor-empty]:before:text-text-500"),disabled:s}),t.jsx(nA,{children:Zt?t.jsx(sA.p,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.15},exit:{opacity:0,transition:{duration:0}},className:dt("self-start absolute pointer-events-none inset-0 text-text-500 line-clamp-2",_),children:L}):null}),Bt&&t.jsx(dPe,{placeholders:Nt,isVisible:Bt,animation:g}),qt&&t.jsx("div",{className:dt("absolute inset-0 pointer-events-none overflow-hidden",_),children:t.jsx(nA,{mode:"wait",children:t.jsx(sA.span,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.5,ease:"linear"},className:"block text-text-500",children:p},p)})})]}),t.jsx(vAe,{ownerId:Ue,children:t.jsx(CHe,{placement:n,instanceSuffix:b,isPrimaryComposer:C,isDisabled:ze,disabled:s})})]}),t.jsx(MHe,{disabled:d,enableScreenDrop:c})]})]}),"bottom"!==n&&!m&&t.jsx("div",{className:"px-4 md:px-2",children:t.jsx(l9,{placement:n,onRetry:k,onRetryWithoutFiles:l,isStreaming:u,hasQuestionCard:mt})})]})}),t.jsx(WHe,{})]})});mPe.displayName="ChatInputContent";const pPe=e.forwardRef(({disabled:e,placement:s,placeholder:n,onSubmit:a,onReady:i,onRetry:r,onRetryWithoutFiles:o,enableScreenDrop:l=!1,disableDropZone:c=!1,isStreaming:d=!1,hideAlertBand:u=!1,promptSuggestion:m,rotatingPlaceholders:p,rotatingPlaceholderAnimation:f,containerClassName:g,isPrimaryComposer:h,slashCommandMenuComponent:C},x)=>t.jsx(PH,{children:t.jsx(mPe,{ref:x,disabled:e,placement:s,placeholder:n,onSubmit:a,onReady:i,onRetry:r,onRetryWithoutFiles:o,enableScreenDrop:l,disableDropZone:c,isStreaming:d,hideAlertBand:u,promptSuggestion:m,rotatingPlaceholders:p,rotatingPlaceholderAnimation:f,containerClassName:g,isPrimaryComposer:h,slashCommandMenuComponent:C})}));function fPe(){return Lk(),null}async function gPe(e){return await(lo?.triggerInteractiveAuth?.(e?.force))??{ok:!1,error:"Interactive sign-in is not available in this app version"}}function hPe(t){const s=JS(),{addError:n}=ut(),[a,i]=e.useState(!1),r=e.useRef(!1),o=e.useRef(!1);return{pending:a,trigger:e.useCallback(async()=>{if(r.current)return;let e;r.current=!0,o.current=!1,i(!0);try{e=await gPe({force:!0})}catch{e={ok:!1,error:s.formatMessage({defaultMessage:"Sign-in failed unexpectedly. Try again.",id:"vhjtIjR7yP"})}}r.current=!1,i(!1),e.ok?t?.():e.error&&!o.current&&n(e.error,{messageForLogging:"custom3p_auth_retry_failed",errorContext:{tags:{source:"interactive_reauth"}}})},[n,s,t]),cancel:e.useCallback(()=>{o.current=!0,lo?.cancelInteractiveAuth?.()},[])}}pPe.displayName="ChatInput";const CPe=new Set,xPe=new Set;function vPe(e){return CPe.add(e),()=>{CPe.delete(e)}}function yPe(e){0!==e.length&&xPe.add(e)}async function bPe(){await Promise.all([...CPe].map(async e=>{try{await e()}catch{}}))}function kPe(){const e=Nk(),t=xe();return e&&t}function wPe(){const e=y("papi_disable_mcp_ui");return Ik(e)}function MPe(){return"ok"===wPe()}function _Pe(){const e=Tk(),t=wPe();return e&&"ok"===t}function jPe(){const e=xe(),t=Gv(Kv.OrganizationManage),s=y("yukon_silver_admin_settings");return e&&t&&s}const SPe=new Set,LPe=new Set,NPe=[];let IPe=null;function TPe(t){const[s,n]=e.useState(IPe),[i,r]=e.useState(!!IPe);return e.useEffect(()=>{if(!t)return;if(IPe)return n(IPe),void r(!0);let e=!1;return a(()=>import("./c6a992d55-B9HM4pcf.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(t=>{IPe=t,e||(n(t),r(!0))}).catch(()=>{e||r(!0)}),()=>{e=!0}},[t]),{mods:s,settled:i}}function APe(e){return{is_error:!0,content:[{type:"text",text:e}]}}function EPe(e){if(null===e||"object"!=typeof e)return JSON.stringify(e)??"null";if(Array.isArray(e))return`[${e.map(EPe).join(",")}]`;const t=e;return`{${Object.keys(t).sort().map(e=>`${JSON.stringify(e)}:${EPe(t[e])}`).join(",")}}`}const RPe=new Set(["apply","confirm","yes","proceed"]);function DPe(){let e=null,t=null,s=!1;return{check(n,a){if(!(null!==a&&"object"==typeof a&&"dry_run"in a))return"pass";const i=function(e,t){if(null===t||"object"!=typeof t||Array.isArray(t))return`${e}::${EPe(t)}`;const s=t,n={};for(const a of Object.keys(s))"dry_run"!==a&&(n[a]=s[a]);return`${e}::${EPe(n)}`}(n,a);return!1===a.dry_run?t!==i?"refused":(t=null,"pass"):(s||null!==e&&e!==i?(e=null,s=!0):e=i,"pass")},approveIf(n){(function(e){return RPe.has(e.trim().toLowerCase())})(n)&&(t=e),e=null,s=!1}}}function HPe(){const{data:t}=Ak(),s=!t;return{blocked:e.useMemo(()=>{if(!t)return SPe;const e=new Set;for(const s of t.features)"blocked_by_platform"!==s.status&&"blocked_by_org_tier"!==s.status&&"blocked_by_entitlement"!==s.status||e.add(s.feature);return e.size>0?e:SPe},[t]),isPending:s}}function PPe(t,s){const n=y("public_api_crochet"),a=y("claudeai_wiggle_egress_settings"),i=y("bridge_trusted_devices"),r=y("claude_ai_tamarind"),o=y("api_enable_claude_code_team_memory_sync"),l=y("tengu_ccr_rc_default_enabled_org_toggle"),c=y("cowork_remote_control_rollout");return e.useMemo(()=>{if(!s)return LPe;const e={public_api_crochet:n,claudeai_wiggle_egress_settings:a,bridge_trusted_devices:i,claude_ai_tamarind:r,api_enable_claude_code_team_memory_sync:o,tengu_ccr_rc_default_enabled_org_toggle:l,cowork_remote_control_rollout:c},d=new Set;for(const[n,a]of Object.entries(s))a.feature&&t.has(a.feature)?d.add(n):(a.pubsecBlocked,a.gates&&a.gates.some(t=>!e[t])&&d.add(n));return d.size>0?d:LPe},[s,t,n,a,i,r,o,l,c])}const UPe=[],OPe=new Set(["invite_organization_member","update_organization_member_role","remove_organization_member","update_allowed_invite_domains","list_organization_members","search_organization_members"]);function FPe(t,s){const n=Ek(),a=Rk(),{showPage:i,isLoading:r,isResellerReadOnly:o}=Dk(),l=kPe(),c=Hk(),{isChalkSoloTeamOrg:d,isLoading:u}=Pk({enabled:s}),m=c&&!d,p=MPe(),f=jPe();return{active:e.useMemo(()=>{if(!t)return UPe;const e=[t.orgAndMembers,t.adminRequests];return n&&e.push(t.groups),a&&e.push(t.roles),i&&!o&&e.push(t.overages),l&&e.push(t.billing),m&&e.push(t.identity),p&&e.push(t.connectors),f&&e.push(t.coworkSettings),e},[t,n,a,i,o,l,m,p,f]),isUsageLoading:r,isChalkLoading:u,isChalkSoloTeamOrg:d}}const VPe=[],zPe=()=>Promise.resolve(void 0);function ZPe({enabled:s,children:n}){const{executeToolByName:a,approvePending:i}=function(t){const{mods:s}=TPe(t),n=e.useRef(DPe()),a=M(),{track:i}=ae(),r=gL(),{activeOrganization:o}=v(),l=o?.uuid,c=y("claudeai_majordomo_write_enabled"),{blocked:d}=HPe(),u=PPe(d,s?.SETTINGS_PROPERTY_META??null),{active:m,isChalkSoloTeamOrg:p}=FPe(s,t),f=e.useMemo(()=>{if(!l||0===m.length)return null;const e={orgUuid:l,base:`/api/organizations/${l}`,fetchJson:async(e,t)=>{const s=await a(e,{...t,headers:{"anthropic-client-surface":"admin_chat"}}),n=await s.text();if(!s.ok)throw new Error(`${t?.method??"GET"} ${e} failed (${s.status}): ${n}`);return n?JSON.parse(n):void 0},canWrite:c,blockedFeatures:d,stripKeys:u,markStale:e=>{for(const t of e)r.invalidateQueries({queryKey:t,refetchType:"none"})}},t={};for(const s of m)Object.assign(t,s.makeHandlers(e));if(p)for(const s of OPe)delete t[s];return t},[m,p,a,l,r,c,d,u]);return{executeToolByName:e.useCallback(async(e,t)=>{if(!jL.has(e))return;if("refused"===n.current.check(e,t))return i({event_key:"claudeai.majordomo.tool.invoked",tool_name:e,outcome:"blocked_unapproved"}),APe("Write blocked: this change was not approved via the confirmation banner. Call again with dry_run=true, then ask_user_input_v0 with options ['Apply','Cancel'], and only call dry_run=false after the user selects Apply.");let s;if(f){const n=f[e];if(n)try{s=await n(t)}catch(a){s=APe(a instanceof Error?a.message:String(a))}else s=APe("This tool isn't available for your organization or role.")}else s=APe("No active organization. Sign in and try again.");return i({event_key:"claudeai.majordomo.tool.invoked",tool_name:e,outcome:s.is_error?"error":"success"}),s},[f,i]),approvePending:e.useCallback(e=>{n.current.approveIf(e)},[])}}(s),{tools:r,isReady:o}=function(t){const{mods:s,settled:n}=TPe(t),{blocked:a,isPending:i}=HPe(),r=PPe(a,s?.SETTINGS_PROPERTY_META??null),{active:o,isUsageLoading:l,isChalkLoading:c,isChalkSoloTeamOrg:d}=FPe(s,t),u=ze("claudeai_majordomo_config","prompt_addendum","",IL());return{tools:e.useMemo(()=>{if(!s)return NPe;const e=o.flatMap(e=>e.SCHEMAS).filter(e=>!(d&&OPe.has(e.name))),t=0===r.size?e:e.map(e=>e.name===s.UPDATE_ORGANIZATION_SETTINGS?s.filterUpdateSettingsSchema(r):e);if(!u||0===t.length)return t;const[n,...a]=t;return[{...n,description:`<admin_assistant_context>${u}</admin_assistant_context>\n\n${n.description??""}`},...a]},[s,o,r,u,d]),isReady:n&&!i&&!l&&!c}}(s),l=s&&o;return t.jsx(Uk,{tools:l?r:VPe,executeToolByName:l?a:zPe,approvePending:l?i:void 0,isReady:!s||o,children:n})}function BPe(t){return function(t,s){return e.useMemo(()=>{if(!t?.messageByUuid)return!1;for(const e of t.messageByUuid.values())for(const t of e.content??[])if("tool_use"===t.type&&s.has(t.name))return!0;return!1},[t,s])}(t,jL)}function qPe({enabled:s,children:n}){const a=function(t){const s=y("artifact_chart_theme"),n=SN();return e.useMemo(()=>{if(!t||!s)return null;const e=Object.fromEntries(Oi.chart.categorical.array.slice(0,6).map((e,t)=>{const s="modes"in e?e.modes.dark:e.value;return[`--claude-chart-series-${t+1}`,s===e.value?e.value:`light-dark(${e.value}, ${s})`]}));return{mode:n,variables:e}},[t,s,n])}(s);return t.jsx(qL,{value:a,children:n})}const WPe={type:"enterprise_analytics_v0",name:"enterprise_analytics"},$Pe=[WPe];function GPe(e={}){const{activeOrganization:t}=v(),s=t?.uuid;return B(`/api/organizations/${s??""}/analytics/chat/templates`,{queryKey:[Ok,s],staleTime:36e5,enabled:!!s&&!1!==e.enabled})}const KPe=[],YPe={};function QPe({enabled:s,children:n}){const{data:a}=GPe({enabled:s}),i=e.useMemo(()=>s?function(e){const t={};if(!e)return t;for(const s of e)t[s.id]=s.chart_hint;return t}(a?.templates):YPe,[a,s]);return t.jsx(Fk,{tools:s?$Pe:KPe,children:t.jsx(EN,{hints:i,children:t.jsx(qPe,{enabled:s,children:n})})})}function JPe(e,t=500){if(e.length<=t)return e;const s=Math.ceil(t/2);return`${e.substring(0,s)}\n\n  [...]\n\n  ${e.substring(e.length-s)}`}function XPe(e){return{all:e=e||new Map,on:function(t,s){var n=e.get(t);n?n.push(s):e.set(t,[s])},off:function(t,s){var n=e.get(t);n&&(s?n.splice(n.indexOf(s)>>>0,1):e.set(t,[]))},emit:function(t,s){var n=e.get(t);n&&n.slice().map(function(e){e(s)}),(n=e.get("*"))&&n.slice().map(function(e){e(t,s)})}}}function eUe(e){const t=e.length>1?e.replace(/\/+$/,""):e;return t.startsWith("/claude-code-desktop")||Bk(t)||t===qk||t.startsWith(`${Wk}/`)||"/chat"===t||t.startsWith("/chat/")&&"/chat/new"!==t||t.startsWith(`${Fb}/`)||t.startsWith(`${$k}/`)||/^\/project\/[^/]+$/.test(t)||/^\/scheduled-task\/[^/]+$/.test(t)}const tUe=Zk;function sUe(e){return e.ownsFrameHeader||eUe(e.pathname)}function nUe(e){return sUe(e)||e.pathname.startsWith("/directory")}const aUe=tUe?()=>{const e=y("mcp_connector_directory_cxdir_v2");return tUe(e?nUe:sUe)}:()=>{const e=y("mcp_connector_directory_cxdir_v2");return Eh(t=>{return function(e){return e.startsWith("/epitaxy")||"/code"===e||e.startsWith("/code/")}(s=t)||eUe(s)||e&&t.startsWith("/directory");var s})};function iUe(e,t){return!0===e||"web"===e&&!t}function rUe(e){return iUe(e.epitaxyChrome,!0)}function oUe(e){return iUe(e.epitaxyChrome,!1)}const lUe=tUe?()=>{const e=m();return tUe(e?rUe:oUe)}:()=>{const e=m();return Eh(t=>function(e,t){return e.startsWith("/epitaxy")||!t&&("/code"===e||e.startsWith("/code/"))}(t,e))};const cUe="cowork-title-slot",dUe="account_migration_eligibility";function uUe(e,t={}){return B(`/api/account/migration_preview?source_organization_uuid=${e}`,{...t,queryKey:["account_migration_preview",e],enabled:Boolean(e)&&(t.enabled??!0),staleTime:3e5,meta:{noToast:!0,...t.meta}})}const mUe=new Set(["completed","failed","failed_billing_needs_manual"]);function pUe(e){return(!e||(t=e.status,!mUe.has(t)))&&2e3;var t}const fUe=e.createContext(void 0),gUe=({value:e,children:s})=>t.jsx(fUe.Provider,{value:e,children:s});function hUe(){return e.useContext(fUe)}const CUe=(e,t,s,n={})=>{const a=`${e}?${t}`,i=new URLSearchParams(n);return i.append("returnTo",a),`${s}?${i.toString()}`},xUe=(e,t)=>CUe(e,t,"/login");function vUe(e,t=!0){return t&&e.push(...Object.keys(localStorage).filter(e=>e.startsWith(`${ew}.`)||e.startsWith(`LSS-${ew}.`))),e.reduce((e,t)=>{const s=localStorage.getItem(t);return null!==s&&e.push([t,s]),e},[])}const yUe=["lastLoginMethod","lastSsoLoginDomain","ssoWebDomainFlow","_dd_s","dframe-store","dframe-sidebar-seen-badges","ccd-sync-owner","ccd-sync-active","ccd-sync-quarantine","LSS-userThemeMode","ccd-session-store","ccd-effort-level","LSS-cowork-default-experiment-applied","LSS-code-default-landing-applied","LSS-desktopOnboardingLastSeen","LSS-chalkOnboardingLastSeen"],bUe=["collapsed","sidebarWidth","lastKnownMode","coworkOnly","systemFont","darkerCode","collapsedGroups","seenDragPinHint","navSeenBadgeIds","navHasCodeRoutinesByOrg"];function kUe(e){return e.flatMap(([e,t])=>{if(function(e){for(const t of xPe)if(e.startsWith(`persisted.${t}`)||e.startsWith(`LSS-persisted.${t}`))return!0;return!1}(e))return[];if("dframe-store"!==e)return[[e,t]];const s=function(e,t,s){try{const n=JSON.parse(e);if(null===n||"object"!=typeof n||null===n.state||"object"!=typeof n.state)return null;const a={};for(const e of t)e in n.state&&(a[e]=n.state[e]);return s&&Object.assign(a,s),JSON.stringify({...n,state:a})}catch{return null}}(t,bUe,{navPinnedIds:null});return null===s?[]:[[e,s]]})}function wUe(e){e.forEach(([e,t])=>{localStorage.setItem(e,t)})}function MUe(e){if(!e)return null;try{const t=decodeURIComponent(e);return new URL(t,window.location.origin).searchParams}catch{return null}}const _Ue="oauth_return_to",jUe=()=>{const e=r(),t=tw(),s=sw(),n=(e,n)=>{t.set(s,e),n?window.location.assign(n):location.reload()};return{refresh:()=>{e.refresh()},switchAndRefresh:n,switchAndRefreshAfterMembershipChange:(e,t)=>{Promise.race([nw(),new Promise(e=>setTimeout(e,2e3))]).then(()=>n(e,t))}}},SUe=e=>{const{account:t,activeOrganization:s}=v(),n=cL(e),a=aw();return t&&iw(t,e)?"/onboarding":t&&rw(s,e)?"/partner-onboarding":t&&e&&0===t.memberships.length||t&&Jk({account:t,isClaudeDot:e})?"/onboarding":t&&ow(t,e,!0)?"/age-verification":t&&lw(t,e)?"/invites":t&&cw(t,e)?"console"===a?"/org-discovery":"/create":t&&n?n:e?"/new":"/dashboard"},LUe=(t,s,n)=>{const a=hUe(),{mutateAsync:i}=mw();return e.useCallback(async()=>{if(!t||!a||0===s.length)return;const e=s.map(e=>({document_id:`v3:${e}:${a[e]}`,accepted_via_checkbox:n}));await i({acceptances:e})},[t,a,s,n,i])},NUe=t=>{const s=hUe(),{mutateAsync:n}=mw();return e.useCallback(async e=>{if(!t||!s)return;const a=Object.entries(e).map(([e,t])=>({document_id:`v3:${e}:${s[e]}`,accepted_via_checkbox:t}));0!==a.length&&await n({acceptances:a})},[t,s,n])},IUe=({joinToken:t,postAuthCallback:s}={})=>{const{account:n,refetch:a,setActiveOrganizationUuid:i}=v(),r=vi(),[o,l]=e.useState(!1),[c,d]=e.useState(!1),u=TUe(),{addSuccess:m}=ut(),{data:p}=uw(t);return e.useEffect(()=>{n&&o&&c&&(s?s(u):u())},[c,u,o,n,s]),e.useCallback(async()=>{l(!0);const e=await a();if(p?.organization_uuid&&(i(p.organization_uuid),m(`Joined ${p.organization_name}`)),e&&"google"in window){const e=window;e.google?.accounts?.id?.cancel()}d(!0),!e&&r&&window.location.replace("/")},[p,m,a,i,r])},TUe=(t=!1)=>{const s=Mt().get("returnTo"),[n,a]=e.useState(null);e.useEffect(()=>{try{const e=sessionStorage.getItem(_Ue);e&&a(e)}catch{}},[]);const i=s||n,r=AUe(t);return e.useCallback(()=>{try{sessionStorage.removeItem(_Ue)}catch{}r(i)},[r,i])},AUe=(t=!1)=>{const{account:s,activeOrganization:n,isLoading:a}=v(),[i,l]=e.useState(!1),c=r(),d=dw(),[u,p]=e.useState(null),f=o(),g=Mt(),h=vi(),C=SUe(h),x=m(),y=e.useRef(!1);e.useEffect(()=>{!i&&!t||s||a||y.current||(y.current=!0,c.push(xUe(f,g.toString())))},[s,a,c,i,t,f,g]);const b=e.useRef(!1);return e.useEffect(()=>{if(i&&s&&!b.current){const e=((e,t,s,n,a,i)=>{if(!t||!t.startsWith("/")&&!Yk(t)||"/"===t||"/?"===t)return s;const r=Qk(t);if(r.startsWith("/create/team/")||r.startsWith("/create/enterprise/")||r.startsWith("/team-promo/")||("/buying-agent"===r||r.startsWith("/buying-agent?"))&&Jk({account:e,isClaudeDot:n}))return r;if(Xk(e,n,!0,i)){const e=new URL(s,window.location.origin),n=new URLSearchParams(e.search);return n.set("returnTo",t),`/${e.pathname.slice(1)}?${n.toString()}`}return r})(s,u,C,h,0,n);Yk(e)||e.startsWith("/api/")||!x&&e.startsWith("/code/artifact/")?(b.current=!0,window.location.replace(e)):e!==window.location.href.replace(window.location.origin,"")&&(b.current=!0,d.replace(e),c.refresh())}},[s,n,c,d,i,u,C,h,x]),e.useCallback(e=>{e&&p(e),l(!0)},[])};function EUe(){const t=dw();return e.useCallback((e,s,n="push")=>{const a=e?Qk(e):s;t[n](a)},[t])}function RUe(e){var t,s,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(s=RUe(e[t]))&&(n&&(n+=" "),n+=s);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function DUe(){for(var e,t,s=0,n="";s<arguments.length;)(e=arguments[s++])&&(t=RUe(e))&&(n&&(n+=" "),n+=t);return n}const HUe=e=>"string"==typeof e?e:e.src,PUe={NodeBubble:{onLight:{src:"https://assets-proxy.anthropic.com/claude-ai/v2/assets/v1/cf4ec74fb-B_uRvzXZ.gif",width:1200,height:1200},onDark:{src:"https://assets-proxy.anthropic.com/claude-ai/v2/assets/v1/c97db5174-5VRtClPw.gif",width:1200,height:1200}},ObjectBlocks:{onLight:{src:"https://assets-proxy.anthropic.com/claude-ai/v2/assets/v1/cf4ec74fb-DyHHWqxc.gif",width:1200,height:1200},onDark:{src:"https://assets-proxy.anthropic.com/claude-ai/v2/assets/v1/c97db5174-CR4VOxB1.gif",width:1200,height:1200}},ObjectFlowers:{onLight:{src:"https://assets-proxy.anthropic.com/claude-ai/v2/assets/v1/cf4ec74fb-DVJXe1AZ.gif",width:1200,height:1200},onDark:{src:"https://assets-proxy.anthropic.com/claude-ai/v2/assets/v1/c97db5174-DfwgQIYi.gif",width:600,height:600}},ObjectGiftOpenTag:{onLight:{src:"https://assets-proxy.anthropic.com/claude-ai/v2/assets/v1/cf4ec74fb-98rk0HyI.gif",width:600,height:600},onDark:{src:"https://assets-proxy.anthropic.com/claude-ai/v2/assets/v1/c97db5174-B6ydCuLc.gif",width:600,height:600}},ObjectHandCoin:{onLight:{src:"https://assets-proxy.anthropic.com/claude-ai/v2/assets/v1/cf4ec74fb-Bki7uG6a.gif",width:1200,height:1200},onDark:{src:"https://assets-proxy.anthropic.com/claude-ai/v2/assets/v1/c97db5174-Dq5XiotY.gif",width:1200,height:1200}},ObjectLighthouse:{onLight:{src:"https://assets-proxy.anthropic.com/claude-ai/v2/assets/v1/cf4ec74fb-j86FFPgr.gif",width:1200,height:1200},onDark:{src:"https://assets-proxy.anthropic.com/claude-ai/v2/assets/v1/c97db5174-B95TYPbh.gif",width:1200,height:1200}},ObjectPiggyBank:{onLight:{src:"https://assets-proxy.anthropic.com/claude-ai/v2/assets/v1/cf4ec74fb-JkaRDFGy.gif",width:1200,height:1200},onDark:{src:"https://assets-proxy.anthropic.com/claude-ai/v2/assets/v1/c97db5174-VfmnFEDi.gif",width:1200,height:1200}},ObjectQuill:{onLight:{src:"https://assets-proxy.anthropic.com/claude-ai/v2/assets/v1/cf4ec74fb-9muvJXwY.gif",width:1200,height:1200},onDark:{src:"https://assets-proxy.anthropic.com/claude-ai/v2/assets/v1/c97db5174-CsyvXYzc.gif",width:1200,height:1200}}};function UUe({name:e,size:s=96,className:n}){const a=PUe[e],i="onDark"in a?a.onDark:void 0;return t.jsxs(t.Fragment,{children:[t.jsx("img",{alt:"","aria-hidden":!0,src:HUe(a.onLight),width:s,height:s,className:DUe("dark:hidden",n)}),i&&t.jsx("img",{alt:"","aria-hidden":!0,src:HUe(i),width:s,height:s,className:DUe("hidden dark:block",n)})]})}const OUe=e.memo(function({orgName:s,planName:n,isSourcePaid:a,willForceKeepPersonal:i,onChooseKeepBoth:r,onChooseConsolidate:o,onCancel:l}){const[c,d]=e.useState("keep_both"),u=e.useCallback(()=>{"keep_both"===c?r():o()},[c,r,o]);return t.jsxs("div",{className:"flex flex-col gap-5",children:[t.jsx("p",{className:"text-text-300",children:t.jsx(hs,{id:"1w61ayg",dangerouslyVisiblePublicValues:{orgName:s}})}),t.jsxs(IA,{value:c,onValueChange:e=>d(e),className:"flex flex-col gap-3 [&_button]:mt-1",children:[t.jsx(TA,{value:"keep_both",label:t.jsx(hs,{id:"5brmtu"}),subtitle:t.jsx(hs,{id:"1345o4o",dangerouslyVisiblePublicValues:{orgName:s}})}),t.jsx(TA,{value:"consolidate",label:t.jsx(hs,{id:i?"18rg0g9":"1qxbx4e",dangerouslyVisiblePublicValues:{orgName:s}}),subtitle:t.jsx(hs,{id:i?"1fy4w13":a?"197uhjz":"1yrdtxo",dangerouslyVisiblePublicValues:{orgName:s,planName:n}})})]}),t.jsxs(Eu,{children:[t.jsx(nk,{variant:"secondary",onClick:l,children:t.jsx(hs,{id:"1sk8dh1"})}),t.jsx(nk,{variant:"primary",onClick:u,children:t.jsx(hs,{id:"1c9iiy6"})})]})]})}),FUe=e=>t.jsxs(rL,{...e,children:[t.jsx("path",{d:"M255.36 309.871c32.585 0 59-26.416 59-59s-26.415-59-59-59-59 26.415-59 59 26.415 59 59 59",className:oL(e.highlightFill)}),t.jsx("path",{d:"M285.8 451.04c10.48 0 10.48.911 20.95.911s10.48.609 20.96.609 10.48-1.52 20.96-1.52 10.48.86 20.97.86 10.48-.93 20.97-.93 10.48 1.15 20.96 1.15 10.48-1.199 20.96-1.199q10.48.02 20.96.03c.65 0 1.27-.001 1.85.009.29 0 .57.01.84.02h.3s.06.09.11.15c.11.12.34.21.52.17.09-.02.16-.059.23-.129.03-.041.07-.081.1-.131l.05-.08.02-.05v-.019s.02-.09.02-.131c.11-1.64.19-3.6.19-6.22 0-10.48-1.2-10.48-1.2-20.96 0-5.26.17-7.839.34-10.439.15-2.61.32-5.221.25-10.461-.14-10.46-.75-10.45-.94-20.92-.2-10.459.27-10.47.03-20.94-.24-10.459.44-10.48.16-20.94-.33-10.459-.09-10.47-.47-20.92-.39-10.45-.85-10.43-1.33-20.87-.25-5.22-.27-7.83-.32-10.43-.06-2.6-.05-5.23-.44-10.41-.19-2.59-.35-4.53-.51-6.15l-.52-4.15c-.18-1.26-.31-2.57-.55-4.12-.26-1.54-.46-3.39-.89-5.87-.46-2.49-.81-4.35-1.2-5.89-.38-1.539-.65-2.78-1.01-4.01-.69-2.46-1.38-4.92-2.76-9.83-.75-2.45-1.32-4.28-1.86-5.78-.55-1.5-1.03-2.69-1.5-3.88-.46-1.19-.99-2.36-1.57-3.84l-2.21-5.63c-1.87-4.73-2.85-7.05-3.87-9.36-.25-.58-.5-1.16-.77-1.77-.29-.6-.59-1.23-.93-1.94-.34-.7-.72-1.48-1.15-2.35-.46-.85-.98-1.79-1.57-2.88-2.43-4.24-3.63-6.28-4.87-8.14-.32-.45-.63-.91-.97-1.39-.17-.26-.35-.45-.54-.65-.19-.21-.39-.42-.59-.64-.79-.96-1.99-1.83-3.49-2.48-1.51-.57-2.52-.54-3.29-.43-.76.15-1.31.4-1.81.73-.5.34-.96.78-1.38 1.48-.22.34-.41.77-.58 1.29-.16.52-.29 1.15-.29 1.92 0 1.55.38 2.84.81 3.9.05.13.11.26.16.39l.08.19.12.26c.16.34.3.67.45.98.29.64.56 1.24.83 1.84 1.07 2.42 2.16 4.85 4.4 9.69 2.2 4.87 3.52 7.22 4.82 9.59 1.29 2.38 2.61 4.77 4.36 9.91.86 2.58 1.48 4.52 1.91 6.17.44 1.65.84 2.95 1.12 4.29.3 1.33.61 2.67.99 4.34.33 1.69.73 3.71 1.26 6.41.39 2.74.81 4.77 1.02 6.5.22 1.73.42 3.11.63 4.5.19 1.39.25 2.81.37 4.57.16 1.76.06 3.91-.08 6.77-.02.36-.04.7-.05 1.04v.25l-.05.35a7 7 0 0 1-.53 1.84c-.37.84-.98 1.68-1.71 2.32-1.5 1.29-3.26 1.76-4.89 1.65-1.63-.1-3.39-.86-4.64-2.3-.3-.35-.57-.73-.79-1.12-.21-.369-.39-.77-.52-1.17-.12-.35-.21-.72-.27-1.09l-.02-.15-.03-.2-.06-.4c-.04-.26-.08-.51-.12-.76-.15-.98-.28-1.84-.39-2.62-.21-1.57-.44-2.82-.65-4.07-.41-2.51-.85-5.01-2.01-9.96-1.19-4.94-1.68-7.44-2.1-9.98-.49-2.51-.96-5.05-2.61-9.89-1.7-4.83-2.83-7.13-3.93-9.44-1.15-2.29-2.27-4.58-4.38-9.22-2.15-4.62-3.37-6.86-4.61-9.08-1.25-2.21-2.48-4.44-5.04-8.81-.33-.6-.58-.94-.81-1.31a10 10 0 0 0-.7-1.02c-.44-.64-.9-1.15-1.31-1.63s-.83-.86-1.19-1.26c-.4-.36-.77-.7-1.15-1.04-.79-.64-1.6-1.27-2.7-1.91-1.09-.66-2.49-1.34-4.42-1.91-3.88-1.03-5.7-.59-7.03-.27-.63.22-1.14.48-1.45.76-.08.07-.17.13-.19.21-.02.04-.07.06-.09.1a.3.3 0 0 1-.06.12c-.04.03-.05.08-.06.14s-.05.1-.08.16c0 .18-.1.29-.08.58-.1 1 .18 2.41.47 3.54.17.59.28 1.13.49 1.66.19.55.3.991.57 1.67.95 2.491 1.93 4.95 4.31 9.72s3.54 7.2 4.72 9.62c1.14 2.44 2.31 4.88 4.2 9.96.47 1.27.87 2.39 1.24 3.38.35 1 .65 1.89.93 2.69.58 1.6 1.01 2.89 1.44 4.18s.88 2.581 1.31 4.23c.22.821.47 1.73.74 2.75.26 1.03.5 2.2.79 3.53 1.11 5.33 1.51 8.02 1.89 10.7.2 1.34.41 2.68.57 4.37.17 1.68.45 3.7.62 6.39.1 1.35.19 2.52.27 3.58l.02.2v.19c.02.23.01.47 0 .7a6.2 6.2 0 0 1-.32 1.51 5.96 5.96 0 0 1-1.86 2.66c-.8.65-1.7 1.06-2.62 1.25a6.03 6.03 0 0 1-5.69-1.84c-.39-.43-.66-.84-.9-1.3-.23-.45-.36-.83-.48-1.27l-.05-.21c-.11-.43-.22-.84-.32-1.23-.39-1.56-.73-2.81-1.07-4.05-.67-2.49-1.37-4.99-2.79-9.97-1.45-4.97-2.29-7.43-3.14-9.87-.86-2.44-1.7-4.89-3.36-9.78-1.67-4.88-2.53-7.29-3.4-9.7-.9-2.38-1.74-4.83-3.77-9.41-.51-1.14-.98-2.099-1.39-2.98-.42-.85-.81-1.57-1.16-2.24-.71-1.34-1.36-2.44-1.99-3.5-1.29-2.12-2.57-4.27-5.44-8.24-1.44-1.98-2.56-3.4-3.49-4.58s-1.68-2.1-2.46-2.99c-.77-.9-1.57-1.75-2.61-2.74-1.05-.97-2.36-2.08-4.19-3.17s-3.21-1.6-4.33-1.91-1.99-.41-2.84-.41c-.21-.01-.42 0-.64.01-.21.02-.43 0-.65.05-.46.05-.9.14-1.3.25-.41.12-.74.28-1.01.43-.25.18-.4.3-.57.63-.39.66-.46 2.02-.3 3.12.16 1.15.47 2.15.82 3.16.77 2.02 1.6 4.1 3.6 8.38 1.02 2.15 1.9 3.68 2.65 5.02.8 1.4 1.45 2.51 2.09 3.63 1.33 2.32 2.66 4.63 5.31 9.26 2.64 4.71 3.65 7.28 4.64 9.81.52 1.26.97 2.56 1.59 4.15.63 1.59 1.38 3.5 2.38 6.04.99 2.56 1.64 4.52 2.22 6.13.51 1.65.92 2.97 1.33 4.29.43 1.31.7 2.68 1.14 4.36.46 1.67.8 3.74 1.28 6.49.28 1.37.34 2.6.47 3.69.11 1.09.21 2.05.3 2.92.12 1.75.11 3.17.16 4.57 0 .35.02.7.03 1.06 0 .18 0 .36.01.54v.52c-.02.26-.05.53-.09.79-.1.56-.28 1.13-.58 1.7-.58 1.13-1.59 2.07-2.63 2.56-1.05.51-2.15.69-3.31.56a5.97 5.97 0 0 1-3.39-1.59 5.84 5.84 0 0 1-1.51-2.4c-.05-.14-.09-.27-.12-.41l-.03-.13c-.09-.35-.18-.72-.28-1.1-.41-1.53-.81-3.39-1.54-5.83-.36-1.22-.67-2.29-.95-3.25-.32-.95-.6-1.78-.85-2.54-.52-1.51-.94-2.72-1.41-3.91-.92-2.39-1.83-4.78-3.66-9.56-1.86-4.77-2.76-7.18-3.62-9.61-.91-2.4-1.79-4.83-3.99-9.48-2.2-4.66-3.29-6.98-4.39-9.31-1.1-2.32-2.2-4.66-4.73-9.13-2.56-4.45-3.97-6.59-5.38-8.72-.71-1.03-1.44-2.16-2.31-3.38-.85-1.23-1.93-2.65-3.46-4.4-3.11-3.44-5.06-4.55-6.89-5.53-.93-.45-1.86-.84-2.96-1.19-1.08-.32-2.41-.62-3.71-.52-1.27.14-1.78.55-2.18.95-.39.4-.63.89-.82 1.49-.04.16-.08.31-.13.48-.03.18-.06.361-.11.54-.11.62-.23 1.28-.36 2.01-.23 1.41-.45 2.97-.33 4.41.16 1.41.73 2.85 1.27 4.15.31.67.6 1.28.86 1.85.29.6.57 1.16.85 1.72 1.15 2.29 2.37 4.61 4.68 9.4 1.16 2.39 1.94 4.23 2.58 5.76.63 1.54 1.08 2.88 1.54 4.16.47 1.29.86 2.6 1.42 4.2.57 1.6 1.24 3.52 2.15 6.08 1.78 5.11 2.56 7.68 3.38 10.25.77 2.58 1.55 5.16 2.84 10.37 1.23 5.22 1.73 7.85 2.24 10.47.48 2.63.98 5.25 1.87 10.5.86 5.25 1.13 7.9 1.4 10.54.26 2.64.52 5.28 1.14 10.54.63 5.261.95 7.89 1.27 10.52.31 2.641.64 5.28 1 10.62.34 5.35.38 8.05.4 10.76 0 2.71.04 5.421-.32 10.951-.45 5.549-.86 8.419-1.4 11.349-.27 1.46-.65 2.95-1.29 4.82-.18.47-.38.961-.58 1.48-.22.52-.5 1.071-.78 1.661-.3.579-.67 1.199-1.06 1.849-.45.65-.88 1.34-1.49 2.04-2.31 2.86-5.06 4.47-7.31 5.28-2.31.81-4.14 1.03-6.02 1-1.87-.03-3.77-.3-5.92-1.01-2.14-.72-4.53-1.89-7.07-3.83-2.52-1.95-4.05-3.59-5.3-4.95-1.23-1.36-2.18-2.46-3.06-3.58-1.77-2.23-3.46-4.52-6.13-9.27-2.62-4.75-3.64-7.18-4.71-9.58-.54-1.24-1.04-2.259-1.71-3.61-.38-.649-.79-1.369-1.26-2.19-.52-.79-1.09-1.69-1.8-2.67-2.9-3.91-4.61-5.69-6.3-7.44-1.73-1.69-3.47-3.469-7.27-6.289-1.92-1.351-3.44-2.08-4.68-2.53-.3-.101-.58-.161-.86-.231-.27-.07-.54-.14-.75-.14-.44-.05-.85-.08-1.26-.03-.8.04-1.57.2-2.39.46-.82.25-1.66.631-2.4 1.21-.74.57-1.14 1.2-1.49 1.96-.11.16-.18.36-.24.56-.07.2-.15.38-.23.57-.11.41-.2.83-.33 1.25-.07.45-.11.93-.17 1.43-.04.51.02 1.1.04 1.741.03.64.22 1.45.36 2.309.23.87.45 1.84.86 2.941.2.549.39 1.069.57 1.549.21.49.41.951.59 1.38.36.86.76 1.63 1.1 2.31.69 1.38 1.34 2.481 1.97 3.59 1.29 2.22 2.63 4.44 5.06 9.141 2.42 4.75 3.62 7.119 4.83 9.5 1.19 2.39 2.38 4.789 4.54 9.679 2.13 4.9 3.11 7.38 4.07 9.87.98 2.44 1.94 5.06 3.7 10.22.8 2.6 1.41 4.56 1.8 6.201.38 1.649.66 2.979.94 4.299.29 1.32.53 2.65.85 4.3.3 1.65.79 3.62 1.3 6.25 1.07 5.26 1.6 7.88 2.14 10.51.27 1.31.49 2.63.78 4.28.3 1.65.59 3.63.93 6.29.67 5.3.9 7.97 1.13 10.631.23 2.66.43 5.319.78 10.659.44 8.19-2.08 7.37-5.17 7.41-3.15.04-5.43 1.11-5.86-6.74-.33-5.13-.62-7.69-.93-10.25-.32-2.55-.63-5.109-1.27-10.21-.33-2.549-.6-4.46-.88-6.04-.27-1.579-.48-2.85-.73-4.1-.51-2.51-1.01-5.01-2.02-10.03-.48-2.51-.99-4.35-1.36-5.9a71 71 0 0 0-1.08-3.98c-.36-1.21-.71-2.43-1.16-3.95-.44-1.519-1.06-3.3-1.79-5.7-.75-2.4-1.42-4.14-1.85-5.64-.44-1.489-.85-2.73-1.23-3.96-.77-2.47-1.55-4.93-3.6-9.66-2.07-4.71-3.14-7.05-4.21-9.4-1.08-2.34-2.15-4.67-4.52-9.289-2.44-4.661-3.67-6.991-4.89-9.321-.62-1.2-1.24-2.399-1.98-3.959-.73-1.571-1.63-3.46-2.61-6.22-.52-1.351-.84-2.631-1.2-3.731-.28-1.15-.55-2.11-.75-3.07-.17-.99-.34-1.879-.47-2.729-.07-.891-.13-1.731-.2-2.571 0-.869.04-1.76.09-2.7.05-.48.15-.99.24-1.51.11-.53.16-1.06.37-1.65.18-.58.38-1.189.61-1.83.27-.64.62-1.299.99-2 .37-.7.92-1.38 1.45-2.12.59-.69 1.27-1.41 2.06-2.089.82-.641 1.59-1.251 2.38-1.651.4-.21.78-.42 1.15-.62.38-.16.76-.309 1.12-.449.73-.31 1.42-.501 2.08-.651.33-.08.65-.15.96-.23.31-.04.62-.079.91-.119 2.38-.321 4.25-.141 6.06.199l1.36.301c.45.13.89.279 1.35.44.97.29 1.75.709 2.72 1.119 1.79.9 3.82 2.04 6.21 3.74 2.36 1.72 4.02 3.09 5.34 4.29 1.34 1.18 2.33 2.19 3.34 3.18 1.95 2.05 3.92 4.081 7.3 8.63.85 1.13 1.53 2.18 2.18 3.08.62.93 1.17 1.751 1.66 2.491.95 1.489 1.72 2.679 2.48 3.879 1.42 2.22 2.78 4.47 5.2 8.88 2.44 4.37 3.75 6.37 5.08 8.31.67.96 1.36 1.881 2.25 2.961.89 1.049 2 2.279 3.5 3.449 1.5 1.18 2.52 1.67 3.34 2.07.82.37 1.46.59 2.18.75.71.13 1.57.141 2.46-.06.89-.239 1.91-.65 3.02-1.959 1.11-1.321 1.74-2.761 2.14-4.021.4-1.27.62-2.36.78-3.479.3-2.261.57-4.551.97-9.411.34-4.88.38-7.42.45-9.94.05-2.519.09-5.06-.23-10.17-.33-5.11-.72-7.68-1.09-10.229-.38-2.55-.77-5.131-1.37-10.271-.6-5.15-.76-7.729-.9-10.32-.15-2.59-.31-5.18-1.15-10.28-.86-5.09-1.47-7.6-2.05-10.1-.63-2.49-1.23-5-2.4-9.98-1.21-4.97-1.78-7.46-2.33-9.95-.6-2.48-1.17-4.98-2.82-9.78-1.72-4.78-2.75-7.09-3.79-9.38-.54-1.14-1.07-2.29-1.74-3.72-.7-1.46-1.54-3.21-2.66-5.54-2.25-4.67-3.29-7.06-4.32-9.53-.52-1.28-1.05-2.55-1.7-4.15-.17-.39-.34-.88-.52-1.36s-.38-.99-.56-1.6c-.19-.59-.4-1.21-.56-1.96-.08-.37-.18-.73-.26-1.13-.06-.41-.12-.83-.19-1.27-.13-.87-.13-1.7-.16-2.46.03-.73.04-1.45.1-2.07.07-.61.13-1.19.19-1.73.08-.51.16-.98.23-1.44.14-.93.31-1.65.44-2.4.05-.32.18-.84.29-1.27.1-.45.25-.89.41-1.34.63-1.76 1.53-3.59 3.31-5.48.92-.92 2.05-1.84 3.49-2.61 1.44-.75 3.17-1.32 5.1-1.55 3.87-.4 6.45.32 8.47.92 2.01.65 3.51 1.31 4.92 2.06s2.77 1.57 4.29 2.74c1.53 1.17 3.26 2.67 5.25 4.87 1.98 2.21 3.3 3.94 4.39 5.39.27.36.53.7.78 1.03.23.31.45.61.66.91.43.58.83 1.13 1.24 1.67 1.61 2.19 3.18 4.4 5.89 9.06 2.65 4.68 3.6 7.21 4.56 9.73.93 2.53 1.87 5.05 4.17 9.85 2.28 4.82 3.42 7.23 4.6 9.63 1.12 2.42 2.3 4.83 4.24 9.81.95 2.5 1.67 4.38 2.26 5.94.58 1.57 1.04 2.83 1.5 4.09.48 1.25.91 2.53 1.44 4.13.54 1.59 1.16 3.51 1.88 6.12.77 2.58 1.21 4.58 1.6 6.22.09.41.18.8.27 1.18l.06.28.02.07v.03l.01.02c-2.23.54 5-1.18-5.01 1.2 0 0-.08.03-.09.04-.05.07.02-.08 0-.05 0 .04.1.09-.03.04h-.06l-5.11-.04v-1.3c.01-1.21.03-2.42.02-3.94-.15-1.52-.24-3.34-.59-5.77-.77-4.84-1.65-7.19-2.43-9.52-.45-1.16-.9-2.31-1.41-3.76-.55-1.44-1.22-3.18-2.07-5.5-1.83-4.62-2.84-6.92-3.85-9.22-1.04-2.289-2.07-4.59-4.55-9.03-2.5-4.44-3.9-6.61-5.3-8.82-.7-1.1-1.4-2.22-2.29-3.66-.87-1.46-2-3.33-3.23-5.89-2.46-5.18-3.26-8.07-3.93-11.08-.31-1.52-.59-3.08-.72-5.19-.06-1.06-.08-2.27.09-3.75.17-1.46.49-3.24 1.49-5.29a13.15 13.15 0 0 1 3.94-4.76c1.46-1.08 2.85-1.72 4.04-2.12 2.41-.81 4.13-1 5.98-1.11 1.82-.07 3.64.07 5.78.56 2.12.5 4.57 1.36 7.34 2.96 2.76 1.61 4.53 3.06 5.94 4.28 1.41 1.23 2.45 2.27 3.45 3.33 1.97 2.12 3.9 4.27 7.24 8.76 3.28 4.52 4.66 6.9 6.08 9.27.7 1.19 1.37 2.38 2.2 3.9.41.79.85 1.66 1.36 2.65.46.98.98 2.08 1.56 3.34 2.17 4.97 3.26 7.45 4.35 9.94 1.08 2.47 2.12 4.94 3.86 9.99 1.71 5.05 2.43 7.61 3.14 10.17s1.42 5.12 2.9 10.21c1.47 5.1 2.14 7.67 2.81 10.25.33 1.29.65 2.581 1.06 4.2.1.4.21.83.32 1.28l.09.34.04.18v.02c-2.42.6 5.42-1.33-5.43 1.34h-.02s-.03.01-.04.02c-.02 0-.04.02-.04.03-.02.03.02-.06 0-.07-.01 0 .05.06.02.04-.02 0-.02 0-.06-.01h-.04c4.98-.3-6.8.401-5.58.33v-.04l-.02-.19c0-.13-.02-.26-.03-.39l-.06-.81c-.04-.56-.09-1.15-.13-1.78-.16-2.53-.42-4.409-.63-5.98-.11-.78-.21-1.49-.31-2.15-.12-.66-.24-1.28-.36-1.9-.46-2.48-.93-4.95-1.93-9.86-.25-1.23-.48-2.299-.67-3.26-.21-.95-.4-1.79-.57-2.56-.16-.77-.3-1.46-.43-2.11-.15-.65-.29-1.26-.42-1.87-.28-1.22-.52-2.46-.98-3.96-.42-1.509-.97-3.32-1.84-5.68-.84-2.37-1.59-4.12-2.16-5.59-.62-1.46-1.11-2.62-1.61-3.79-1.04-2.32-2.06-4.64-4.35-9.24s-3.4-6.96-4.47-9.33c-.14-.3-.27-.59-.41-.89q-.24-.54-.48-1.11c-.16-.38-.33-.77-.51-1.18-.17-.42-.32-.88-.49-1.35-.36-.92-.66-2.06-.99-3.34-.12-.69-.25-1.41-.36-2.19-.02-.42-.05-.85-.08-1.29-.02-.44-.05-.89 0-1.41.04-.5.08-.99.12-1.46.08-.48.19-.96.29-1.41.05-.23.11-.45.16-.67a46 46 0 0 1 .73-1.89c.79-1.56 1.72-2.83 2.71-3.78.98-.98 1.96-1.65 2.89-2.22.47-.26.93-.51 1.39-.75.46-.19.9-.37 1.35-.56 1.79-.64 3.61-1.08 5.77-1.19s4.71.04 7.85.87c3.14.85 5.31 1.9 7.07 2.83 1.76.94 3.08 1.85 4.36 2.8 1.28.96 2.48 2.03 3.89 3.45.66.76 1.45 1.54 2.19 2.57.37.51.81 1.02 1.18 1.63q.285.45.6.93c.2.31.43.67.58.94 1.37 2.34 2.4 4.08 3.23 5.55.85 1.461 1.52 2.63 2.2 3.8a90 90 0 0 1 2.12 3.85c.8 1.49 1.69 3.31 2.83 5.76 2.24 4.91 3.05 7.51 3.88 10.07.78 2.59 1.59 5.16 3.38 10.23.85 2.55 1.55 4.44 2.12 6.02.56 1.59 1.05 2.84 1.54 4.1.92 2.54 1.9 5.07 3.16 10.32 1.24 5.26 1.7 7.92 2.11 10.59.2 1.34.45 2.66.66 4.34.12.84.25 1.75.41 2.8.08.52.16 1.07.25 1.66l.02.11v.06l.01.03-5.67.82c-.08.02-.08.04-.07.02.01-.01.01-.04.01-.03 0 .02.03.05.01.03 0 0-.03-.02-.07-.02h-.01c1.24.11-10.79-.95-5.7-.5v-.08l.01-.22c0-.15.01-.29.02-.44.32-4.77.24-7.22.33-9.65-.05-1.23-.09-2.46-.18-3.99-.03-.38-.05-.79-.08-1.22-.06-.43-.12-.88-.18-1.36-.14-.96-.29-2.03-.47-3.26-.45-2.46-.8-4.3-1.08-5.83-.32-1.54-.58-2.77-.84-4-.23-1.24-.56-2.46-.95-3.99-.21-.76-.44-1.6-.7-2.56-.31-.94-.65-1.999-1.04-3.21-1.63-4.81-2.61-7.18-3.57-9.54-.47-1.19-.99-2.36-1.62-3.83-.62-1.47-1.41-3.22-2.46-5.57-2.15-4.67-3.41-6.92-4.68-9.18-.32-.57-.64-1.139-.97-1.74-.17-.3-.34-.62-.52-.95-.09-.16-.18-.33-.27-.5-.11-.22-.22-.45-.34-.68-.24-.49-.49-.99-.7-1.57-.23-.56-.45-1.18-.64-1.86-.38-1.35-.71-2.93-.75-4.82-.07-3.8 1.01-6.73 2.27-8.86 1.31-2.14 2.81-3.58 4.48-4.72 1.67-1.13 3.57-1.98 6-2.42 2.41-.44 5.47-.41 8.85.82 1.68.62 3.03 1.33 4.12 2.05.57.35 1.05.71 1.51 1.05.48.33.86.69 1.24 1.03.74.68 1.41 1.3 2.05 1.88.53.6 1.02 1.16 1.52 1.72 1.05 1.12 1.85 2.28 2.92 3.73.55.72 1.07 1.54 1.64 2.46.56.93 1.27 1.96 1.91 3.17.67 1.2 1.26 2.26 1.78 3.2.5.94.94 1.77 1.34 2.52.81 1.5 1.47 2.7 2.08 3.91 1.26 2.41 2.49 4.83 4.48 9.84 1.96 5.01 2.94 7.52 3.93 10.02.95 2.51 1.93 5.03 3.46 10.19.74 2.59 1.24 4.55 1.67 6.18.37 1.65.66 2.97.96 4.28.31 1.31.53 2.65.87 4.31.17.83.35 1.74.56 2.78.19 1.05.4 2.22.65 3.56.27 1.33.4 2.54.53 3.61s.24 2.02.34 2.87c.21 1.73.22 3.03.31 4.38.08 1.34.16 2.67.27 4.34.1 1.66.2 3.64.4 6.28.41 5.29.32 7.92.33 10.57 0 2.64-.04 5.28.21 10.54.49 10.511 1.87 10.45 2.27 20.96.38 10.51-.14 10.52.18 21.03.28 10.5-.61 10.53-.37 21.03s1.49 10.47 1.69 20.97c.19 10.5-.18 10.51-.04 21.02.07 5.26.11 7.89.14 10.52.03 2.641.06 5.3.06 10.53 0 10.49-.69 10.49-.69 20.98.01 2.62.03 4.59.04 6.23 0 .641.01 1.241.02 1.82 0 .671.03 1.321 0 1.94-.05 1.25-.27 2.29-.66 3.26a8.13 8.13 0 0 1-4.97 4.651c-.61.209-1.32.349-2.12.449-.81.06-1.69.051-2.62.051h-4.06q-10.49.029-20.98.049c-10.49 0-10.49.85-20.98.85q-10.49 0-20.98.01t-20.99-.14c-10.49 0-10.49-1.29-20.97-1.29s-10.5.62-20.99.62-10.5-.65-21.01-.65-10.5 1.42-21.01 1.42c-8.03 0-6.82-3.1-6.82-6.22s-1.21-6.33 6.82-6.33zM214.87 48.59c-10.5 0-10.5-.91-20.99-.91s-10.5-.61-21-.61-10.5 1.52-21 1.52-10.5-.86-21.01-.86-10.5.93-21 .93-10.5-1.15-21-1.15-10.5 1.2-21 1.2q-10.5-.02-21-.03c-.66 0-1.27 0-1.85-.01-.28 0-.56-.01-.82-.02v-.02s-.07-.08-.13-.12a.6.6 0 0 0-.5-.08c-.09.03-.17.08-.24.16-.03.04-.07.09-.1.15-.03.28-.06.74-.09 1.13-.11 1.64-.19 3.61-.19 6.23 0 10.5 1.2 10.5 1.2 21 0 10.48-.69 10.43-.57 20.93.15 10.481.75 10.471.94 20.961.21 10.48-.27 10.49-.02 20.98.24 10.48-.44 10.5-.15 20.98.32 10.48.1 10.48.47 20.96.41 10.47.85 10.45 1.35 20.9.24 5.23.28 7.84.34 10.45.05 2.61.06 5.24.46 10.42.35 5.2.73 7.74 1.06 10.3.08.64.17 1.28.25 1.96.1.66.22 1.35.34 2.13.26 1.55.45 3.39.96 5.89.43 2.49.88 4.35 1.25 5.9.35 1.55.7 2.78 1.05 4.01.68 2.46 1.39 4.92 2.83 9.83 1.45 4.91 2.46 7.28 3.41 9.66 1 2.36 1.97 4.72 3.84 9.46.97 2.35 1.7 4.11 2.3 5.57.63 1.45 1.14 2.6 1.64 3.76 1.05 2.27 2.09 4.59 4.51 8.87.64 1.03 1.18 1.94 1.65 2.76.47.83.94 1.45 1.32 2.08.76 1.29 1.4 2.14 2.03 3.06l.47.68.5.56c.35.37.69.84 1.14 1.23.88.78 2.05 1.6 3.53 2 1.47.39 2.4.2 3.12-.02.72-.23 1.22-.59 1.68-1.01.45-.43.85-.94 1.2-1.72.32-.79.62-1.84.45-3.45-.08-.8-.28-1.53-.5-2.19-.11-.33-.22-.64-.36-.94-.06-.15-.13-.3-.19-.45-.09-.21-.19-.41-.28-.61-.73-1.58-1.24-2.85-1.74-4.11-.97-2.51-1.94-5.02-3.87-10.04-1.9-5-3.06-7.42-4.23-9.86-.59-1.22-1.17-2.44-1.78-4-.62-1.56-1.32-3.46-2.06-6.04-.78-2.57-1.26-4.54-1.68-6.17-.43-1.63-.7-2.95-.99-4.27-.58-2.64-1.15-5.27-2.17-10.6-.25-1.33-.48-2.5-.68-3.55-.18-1.05-.34-1.98-.49-2.82-.31-1.68-.6-3.02-.8-4.39-.21-1.37-.46-2.72-.66-4.45-.07-.87-.15-1.83-.24-2.92q-.06-.81-.12-1.74v-.23l-.02-.12v-.36c0-.38.04-.76.11-1.13.27-1.62 1.28-3.18 2.41-4.05a6.88 6.88 0 0 1 5.74-1.38c.78.17 1.66.5 2.52 1.11.44.32.84.67 1.2 1.1.36.42.69.92.9 1.37.48.97.65 1.89.69 2.6.01.15.03.3.04.45.38 4.85.77 7.32 1.1 9.77.21 1.23.42 2.46.69 3.99.32 1.53.72 3.37 1.31 5.82 1.26 4.88 1.8 7.37 2.28 9.89.57 2.5 1.08 5.02 2.87 9.83.91 2.4 1.67 4.17 2.32 5.63.69 1.45 1.27 2.6 1.85 3.75 1.2 2.28 2.38 4.56 4.58 9.18 2.23 4.61 3.5 6.83 4.76 9.06.64 1.1 1.28 2.2 2.08 3.57.41.68.85 1.43 1.36 2.28.13.21.25.43.39.66.07.11.13.23.2.35l.18.27c.25.36.48.77.78 1.17 1.16 1.62 2.25 2.68 3.18 3.53.24.21.46.41.67.6q.345.27.66.51c.41.35.84.63 1.26.92.84.58 1.74 1.08 2.89 1.62 1.16.51 2.62 1.04 4.53 1.35 1.92.31 3.24.17 4.18 0 .93-.2 1.47-.48 1.84-.72.38-.25.54-.44.65-.7.12-.25.32-.79.07-2.31-.04-.19-.05-.37-.1-.56-.06-.2-.11-.39-.16-.58s-.09-.37-.14-.55c-.07-.19-.13-.37-.2-.55-.21-.71-.5-1.38-.73-1.99-.06-.16-.11-.31-.17-.46-.08-.19-.15-.37-.23-.55q-.21-.54-.42-1.05c-.26-.68-.5-1.32-.75-1.96-.92-2.58-1.84-5.15-3.94-10.14l-1.36-3.33c-.38-.98-.72-1.85-1.03-2.64-.63-1.57-1.1-2.83-1.57-4.1-.49-1.26-.95-2.53-1.47-4.13-.55-1.59-1.15-3.52-1.9-6.1-1.46-5.16-2.19-7.73-2.96-10.29-.73-2.57-1.47-5.14-2.6-10.33a1251 1251 0 0 1-4.17-20.75c-.06-.32-.12-.64-.18-.94-.03-.15-.06-.3-.08-.45l-.02-.11-.05-.29c-.05-.33-.07-.66-.06-.98.02-1.4.6-2.76 1.35-3.66.76-.91 1.6-1.47 2.55-1.84.96-.35 2.11-.57 3.61-.22.72.17 1.57.56 2.25 1.12.72.58 1.23 1.25 1.59 1.96.15.3.27.61.37.93l.09.31.03.1c.07.26.13.52.2.76.26.99.48 1.85.69 2.64.42 1.57.76 2.83 1.1 4.09l2.78 10.04c1.41 5.01 2.24 7.48 3.06 9.94.84 2.46 1.66 4.92 3.25 9.84 1.61 4.91 2.44 7.34 3.3 9.75.42 1.21.85 2.41 1.42 3.89.55 1.49 1.27 3.24 2.26 5.52.52 1.11.95 2.12 1.38 2.94.43.83.81 1.55 1.15 2.22.76 1.36 1.39 2.44 2.04 3.5 1.31 2.11 2.61 4.25 5.5 8.21 2.94 3.9 4.48 5.7 6.03 7.48.79.87 1.58 1.73 2.65 2.68 1.06.94 2.39 2.01 4.23 3.05 1.84 1 3.22 1.46 4.33 1.7s1.97.28 2.81.25c.83-.03 1.77-.18 2.43-.44.32-.14.6-.29.79-.45s.33-.32.51-.74c.38-.88.34-2.37.13-3.52-.21-1.19-.56-2.22-.95-3.24-.83-2.04-1.72-4.14-3.79-8.41-1.02-2.06-2.05-3.86-2.8-5.35-.77-1.48-1.37-2.69-1.97-3.89-1.17-2.43-2.38-4.84-4.63-9.76-2.22-4.93-3.04-7.52-3.83-10.11-.78-2.59-1.57-5.17-3.31-10.27-.88-2.54-1.48-4.47-1.99-6.07-.52-1.6-.92-2.88-1.29-4.18-.38-1.29-.77-2.58-1.22-4.2-.42-1.63-.95-3.58-1.57-6.19-.58-2.63-1.04-4.59-1.37-6.24-.32-1.65-.57-2.97-.82-4.29-.06-.33-.13-.66-.19-1-.03-.17-.06-.34-.1-.51l-.02-.13v-.06l-.05-.26a5.72 5.72 0 0 1 1.01-4.07 5.65 5.65 0 0 1 3.81-2.3 5.6 5.6 0 0 1 2.79.3 5.75 5.75 0 0 1 2.7 2.08c.36.52.62 1.07.78 1.61l.12.44.03.13c.04.17.08.34.12.52.08.35.17.72.27 1.1.38 1.54.79 3.4 1.51 5.85.66 2.46 1.26 4.28 1.77 5.8.5 1.52.93 2.72 1.4 3.92.91 2.4 1.82 4.8 3.63 9.59 1.84 4.79 2.74 7.2 3.59 9.64.91 2.41 1.78 4.84 3.97 9.51s3.28 7.01 4.37 9.34c.53 1.18 1.1 2.33 1.82 3.77.71 1.45 1.63 3.15 2.89 5.39 1.26 2.25 2.27 3.89 3.1 5.26.86 1.35 1.56 2.43 2.25 3.51.71 1.06 1.43 2.11 2.32 3.44.87 1.23 1.89 2.7 3.41 4.49 1.52 1.78 2.79 2.93 3.88 3.79 1.1.86 2.02 1.45 2.94 1.95.92.51 1.86.93 2.97 1.33 1.1.39 2.45.75 3.85.75 1.39-.03 1.96-.45 2.39-.79.42-.36.65-.8.87-1.34.11-.27.2-.58.28-.93l.09-.42.04-.24c.06-.34.13-.69.2-1.06.25-1.44.57-3.16.49-4.65 0-.76-.18-1.39-.34-2.04-.22-.68-.43-1.31-.71-1.96-.52-1.26-1.08-2.38-1.63-3.51-1.12-2.26-2.35-4.59-4.66-9.37-2.31-4.8-3.22-7.28-4.14-9.91-.23-.65-.46-1.29-.7-1.98-.23-.69-.48-1.42-.75-2.22-.57-1.6-1.26-3.52-2.17-6.08-.93-2.55-1.53-4.48-2.1-6.08-.51-1.61-.92-2.89-1.33-4.18-.79-2.58-1.59-5.16-2.87-10.38-.63-2.61-1.06-4.58-1.42-6.22-.33-1.64-.59-2.96-.85-4.27-.49-2.63-1-5.26-1.89-10.52-.88-5.26-1.15-7.91-1.42-10.56-.28-2.65-.52-5.29-1.16-10.56l-1.28-10.53c-.32-2.64-.65-5.29-1.02-10.63-.35-5.35-.4-8.06-.43-10.77 0-2.72-.06-5.42.28-10.96.42-5.55.78-8.42 1.3-11.34.29-1.47.58-2.94 1.22-4.82.67-1.86 1.53-4.16 3.69-7.06 2.24-2.88 4.84-4.63 7.1-5.54 2.29-.92 4.16-1.14 6.01-1.21 1.86-.05 3.78.16 5.97.8 2.19.63 4.62 1.78 7.24 3.67 2.58 1.92 4.13 3.56 5.41 4.91 1.27 1.35 2.2 2.46 3.11 3.57 1.79 2.23 3.51 4.51 6.19 9.28 2.64 4.76 3.66 7.2 4.74 9.6.26.59.54 1.23.81 1.8l.91 1.85c.71 1.33 1.63 2.89 3.03 4.89 1.44 1.97 2.59 3.4 3.59 4.55.51.57.96 1.09 1.39 1.57l1.29 1.35c1.72 1.71 3.46 3.5 7.26 6.34 3.83 2.7 6.13 3.19 7.59 3.08.8 0 1.58-.2 2.41-.4.84-.22 1.71-.59 2.46-1.17.75-.57 1.16-1.17 1.53-1.9.39-.69.62-1.49.83-2.34.16-.88.29-1.85.17-3.15-.09-1.31-.44-3.05-1.18-5.24l-.57-1.56c-.19-.49-.4-.95-.59-1.38-.36-.86-.75-1.63-1.1-2.32-.67-1.38-1.35-2.49-1.96-3.59-1.29-2.22-2.62-4.44-5.06-9.15-2.42-4.76-3.63-7.14-4.84-9.51-1.19-2.4-2.39-4.8-4.55-9.7-2.13-4.91-3.12-7.39-4.09-9.88-.98-2.45-1.94-5.06-3.71-10.23-.8-2.6-1.4-4.56-1.81-6.21-.38-1.65-.66-2.98-.94-4.31-.14-.66-.28-1.33-.42-2.03-.13-.71-.27-1.45-.43-2.28-.3-1.66-.8-3.62-1.3-6.26-1.07-5.26-1.61-7.9-2.14-10.53-.27-1.32-.49-2.64-.78-4.29-.3-1.65-.59-3.64-.93-6.3-.68-5.31-.91-7.98-1.13-10.65-.23-2.67-.43-5.33-.78-10.68-.44-8.21 2.08-7.38 5.17-7.42 3.15-.04 5.43-1.11 5.86 6.75.34 5.14.62 7.71.94 10.26.32 2.56.63 5.11 1.27 10.23.32 2.55.61 4.46.89 6.05.27 1.58.48 2.85.74 4.11.51 2.51 1.01 5.02 2.03 10.05.48 2.52 1 4.35 1.36 5.91.38 1.55.71 2.78 1.09 3.99.36 1.22.72 2.43 1.16 3.95.45 1.52 1.06 3.3 1.8 5.71 1.63 4.75 2.3 7.12 3.11 9.62.77 2.47 1.56 4.94 3.61 9.68 2.08 4.72 3.15 7.06 4.22 9.41 1.08 2.34 2.16 4.68 4.54 9.3 2.45 4.67 3.67 7.01 4.9 9.34.61 1.21 1.25 2.4 1.98 3.98.37.79.78 1.64 1.21 2.68.21.51.44 1.06.69 1.64.22.6.45 1.25.7 1.93.49 1.37.85 2.64 1.17 3.75.27 1.16.56 2.09.73 3.1.16 1 .36 1.86.44 2.75.07.9.16 1.72.17 2.59-.03.89-.03 1.76-.14 2.72-.08.49-.17.99-.26 1.52-.05.26-.1.53-.15.8-.09.28-.17.56-.26.85-.2.58-.36 1.19-.65 1.83-.31.63-.64 1.3-1.02 1.99-.46.66-.94 1.38-1.53 2.08-.31.34-.64.68-.99 1.03-.18.17-.35.35-.53.52-.2.16-.4.31-.6.47-.41.32-.81.62-1.21.9-.42.24-.82.47-1.21.69-.78.47-1.56.73-2.29 1.02-1.46.51-2.78.78-3.97.9-2.38.24-4.25.07-6.06-.34-.91-.17-1.78-.47-2.7-.79-.48-.15-.86-.35-1.31-.54-.43-.2-.91-.39-1.35-.62-1.79-.91-3.76-2.08-6.16-3.78-4.68-3.48-6.62-5.53-8.64-7.53-.98-1.02-1.95-2.05-3.1-3.4a76 76 0 0 1-4.17-5.28c-.81-1.17-1.53-2.19-2.16-3.1-.62-.93-1.16-1.76-1.66-2.5l-2.44-3.87c-1.42-2.22-2.78-4.47-5.21-8.88-2.45-4.37-3.77-6.35-5.12-8.27-.67-.96-1.37-1.87-2.27-2.92-.89-1.04-2.02-2.23-3.51-3.38-1.5-1.1-2.51-1.59-3.32-1.95-.81-.34-1.46-.53-2.19-.65s-1.59-.12-2.46.13c-.89.25-1.88.74-2.98 2.11s-1.69 2.89-2.09 4.14c-.38 1.3-.59 2.4-.74 3.53-.3 2.28-.52 4.6-.9 9.47-.31 4.91-.35 7.45-.41 9.97-.04 2.53-.07 5.08.26 10.2.34 5.12.74 7.69 1.11 10.25.39 2.55.77 5.14 1.38 10.29.62 5.15.76 7.74.92 10.34.16 2.59.32 5.19 1.17 10.29.86 5.1 1.48 7.61 2.08 10.12.62 2.5 1.24 5 2.42 9.99 1.23 4.98 1.8 7.46 2.36 9.96.3 1.24.61 2.48 1.02 4.03.45 1.53 1 3.36 1.85 5.76.86 2.39 1.54 4.17 2.17 5.62.61 1.46 1.11 2.62 1.66 3.76 1.05 2.26 2.19 4.61 4.44 9.28 2.26 4.67 3.31 7.08 4.34 9.57.52 1.25 1.04 2.52 1.69 4.23.16.44.33.9.51 1.39.17.53.34 1.09.53 1.68.18.61.33 1.32.5 2.04.11.76.28 1.58.31 2.46l.06 1.28c0 .4-.02.78-.04 1.15-.02.76-.1 1.4-.17 2.01-.06.63-.15 1.17-.24 1.67s-.15 1-.24 1.43q-.12.645-.24 1.23c-.04.2-.07.39-.11.58-.06.24-.11.47-.17.69-.22.94-.52 1.83-.9 2.71-.76 1.75-1.85 3.54-3.82 5.27-1 .83-2.21 1.67-3.71 2.27a15.5 15.5 0 0 1-5.13 1.12c-1.9.08-3.49-.12-4.83-.4-.68-.13-1.28-.31-1.86-.46-.56-.18-1.09-.34-1.59-.52-1.97-.71-3.39-1.46-4.79-2.23-2.71-1.61-5.38-3.37-9.31-7.82-1.93-2.24-3.22-3.99-4.29-5.45-1.01-1.41-1.8-2.49-2.62-3.59-1.58-2.21-3.17-4.42-5.84-9.1-2.65-4.69-3.58-7.24-4.53-9.76-.46-1.27-.92-2.54-1.57-4.08-.62-1.56-1.43-3.39-2.58-5.8-2.27-4.84-3.4-7.26-4.57-9.66-1.12-2.43-2.29-4.84-4.21-9.85-1.9-5.02-2.83-7.54-3.74-10.07-.46-1.26-.92-2.53-1.42-4.14-.51-1.61-1.16-3.52-1.86-6.14-.75-2.6-1.2-4.59-1.56-6.25-.18-.83-.34-1.58-.49-2.28v-.03l5.3-1.2h.01s-.02.02-.03.04c0 .06 0-.03-.04-.08-.02-.02-.02 0 .03 0h.04c-1.15.21 10.06-1.81 5.31-.96v.08l.05.24.15.96c.39 2.53.74 5.08 1.9 10.08 1.2 4.98 2.06 7.41 2.96 9.81.44 1.2.88 2.4 1.44 3.9.55 1.5 1.14 3.32 1.98 5.73 1.64 4.83 2.51 7.22 3.37 9.62.42 1.2.88 2.4 1.47 3.87.58 1.49 1.34 3.24 2.38 5.57 2.13 4.64 3.36 6.89 4.56 9.14.62 1.13 1.24 2.25 2.01 3.66l1.31 2.38c.25.46.51.94.79 1.46.3.55.61 1.15.93 1.79 2.53 5.14 3.37 8 4.12 10.95.35 1.49.66 3.02.88 5.08.1 1.03.18 2.2.11 3.63-.07 1.42-.24 3.11-.98 5.17-.73 2.05-1.96 3.86-3.31 5.14a13.8 13.8 0 0 1-3.94 2.65c-2.47 1.08-4.27 1.35-6.07 1.56-1.82.19-3.68.16-5.86-.24-2.18-.39-4.7-1.17-7.56-2.71s-4.65-2.97-6.12-4.17c-1.44-1.21-2.5-2.25-3.53-3.29-2.01-2.11-3.98-4.24-7.37-8.72-3.33-4.51-4.73-6.88-6.18-9.24-.7-1.19-1.4-2.38-2.23-3.89-.82-1.53-1.86-3.51-2.97-6.03-2.22-5.07-3.26-7.54-4.32-10.03-1.05-2.49-2.09-4.98-3.76-10.06-1.65-5.08-2.33-7.65-3.03-10.22-.67-2.57-1.36-5.14-2.8-10.24s-2.1-7.66-2.77-10.22c-.33-1.28-.66-2.56-1.07-4.16-.2-.8-.43-1.68-.69-2.68-.06-.25-.13-.51-.2-.77-.03-.13-.07-.27-.1-.41v-.05l-.02-.03v-.02c-1.2.3 10.41-2.66 5.5-1.41.04 0 .09-.03.1-.04.03-.03 0 0 0 .07 0 .06.02.11.02.11s-.03-.05-.06-.06c-.01 0-.03-.01-.02 0h.03c1.86-.35 3.72-.69 5.59-1.04l.04.22q.09.45.18.93c1.95 10.27 2.37 10.19 4.5 20.35 1.1 5.06 1.55 7.6 2 10.14.48 2.53.93 5.08 2.31 10.01.72 2.45 1.25 4.3 1.75 5.81.48 1.52.86 2.74 1.28 3.93.42 1.2.8 2.41 1.37 3.89.54 1.49 1.21 3.27 2.18 5.6 1.95 4.66 2.92 7 3.9 9.33.52 1.18 1 2.28 1.71 3.8.2.44.41.91.64 1.4.23.48.45 1.02.67 1.62.46 1.16.92 2.54 1.27 4.26.7 3.45.41 6.73-.68 9.32-1.09 2.6-2.72 4.37-4.41 5.67-1.72 1.31-3.6 2.19-5.86 2.75-2.27.56-4.95.79-8.27.36-3.29-.48-5.6-1.26-7.45-2.02-.94-.36-1.74-.78-2.51-1.13-.74-.41-1.46-.77-2.14-1.19-1.36-.84-2.7-1.72-4.23-3.02-1.54-1.27-3.3-2.96-5.24-5.55-.51-.63-.9-1.28-1.29-1.88-.19-.3-.38-.58-.56-.86-.14-.24-.28-.48-.42-.71-.55-.91-1.03-1.71-1.47-2.44-.87-1.45-1.56-2.62-2.25-3.78-1.36-2.34-2.72-4.68-5.08-9.53-2.32-4.87-3.19-7.44-4.07-9.99-.42-1.28-.84-2.57-1.42-4.15-.56-1.59-1.24-3.49-2.21-6-1.87-5.05-2.89-7.55-3.93-10.06-.98-2.53-2.02-5.05-3.39-10.34-.67-2.65-1.07-4.67-1.44-6.34-.28-1.7-.5-3.06-.73-4.42-.24-1.35-.35-2.75-.58-4.46-.25-1.71-.41-3.8-.65-6.59-.02-.17-.03-.35-.05-.51l-.02-.25v-.12l-.01-.02c-1.24.06 10.79-.67 5.7-.36h.03l.06-.02c.05-.03 0-.01 0 .05-.02.06 0 .12 0 .11 0-.05-.14-.11-.01-.08l5.7-.18v.2l.02.2c0 .13.01.26.02.39l.03.74c.03.96.06 1.81.09 2.58.04 1.54.16 2.8.21 4.05.04.63.06 1.25.11 1.92.07.67.15 1.37.23 2.16.1.78.2 1.64.32 2.62.15.98.35 2.07.58 3.32.43 2.5.86 4.37 1.14 5.94s.55 2.82.8 4.08c.49 2.51 1.02 5.03 2.44 9.98.71 2.47 1.29 4.31 1.8 5.84.49 1.53.9 2.75 1.33 3.96.85 2.43 1.7 4.87 3.52 9.67 1.83 4.8 2.97 7.1 4.1 9.37.57 1.11 1.15 2.22 1.86 3.61.19.37.38.76.59 1.17.25.55.55 1.1.79 1.76.52 1.26.96 2.8 1.23 4.63a17.1 17.1 0 0 1-.01 5.01c-.23 1.49-.61 2.8-1.1 3.93-.98 2.27-2.22 3.92-3.7 5.28-1.48 1.35-3.21 2.48-5.57 3.32-2.34.81-5.43 1.25-9.06.41-1.81-.41-3.24-1.04-4.44-1.66-.6-.31-1.15-.62-1.64-.94-.51-.31-.96-.62-1.37-.93-.87-.59-1.49-1.24-2.14-1.81-.62-.58-1.3-1.13-1.75-1.69-.96-1.13-2.08-2.25-3.08-3.71-.52-.73-1.12-1.53-1.75-2.45-.58-.93-1.22-1.97-1.96-3.17-2.77-4.81-4.02-7.21-5.35-9.61-.62-1.21-1.25-2.42-1.99-3.94-.74-1.53-1.53-3.4-2.58-5.89-1.99-5.01-2.99-7.52-3.98-10.03-.52-1.25-.96-2.52-1.54-4.1-.59-1.58-1.21-3.5-1.98-6.09-1.52-5.18-2.13-7.81-2.7-10.46-.29-1.32-.59-2.64-.91-4.31-.33-1.67-.78-3.64-1.25-6.34-.54-2.66-.74-4.75-.94-6.46-.09-.86-.17-1.63-.25-2.36-.04-.71-.08-1.39-.12-2.06-.14-2.68-.35-5.37-.7-10.65-.41-5.3-.36-7.94-.35-10.59 0-2.65.02-5.29-.23-10.56-.51-10.53-1.87-10.47-2.29-21-.38-10.53.13-10.55-.19-21.07-.29-10.52.61-10.55.36-21.07s-1.49-10.49-1.7-21.01c-.19-10.52.18-10.53.03-21.05-.12-10.52-.2-10.56-.21-21.09 0-10.51.69-10.51.69-21.02-.01-2.63-.03-4.6-.04-6.24-.01-1.09-.03-2.06-.04-2.99 0-1.26.18-2.38.53-3.46.73-2.13 2.14-4.13 4.64-5.51 1.26-.67 2.77-1.15 4.62-1.19 1.27 0 2.7-.01 4.33-.02q10.51-.03 21.02-.05c10.43.08 10.43-.78 20.94-.78q10.51 0 21.02-.01t21.02.14c10.51 0 10.51 1.29 21.01 1.29s10.52-.62 21.03-.62 10.52.65 21.04.65 10.53-1.42 21.06-1.42c8.05 0 6.83 3.1 6.83 6.22s1.22 6.33-6.83 6.33",fill:"currentColor"}),t.jsx("path",{d:"M216.73 215.841c-2.66 2.4-3.66 3.76-4.71 5.09-.95 1.39-1.99 2.69-3.6 5.54-.43.69-.73 1.35-1 1.94-.26.59-.51 1.1-.7 1.58-.33.99-.59 1.78-.85 2.58-.21.82-.42 1.64-.68 2.67-.29 1.01-.49 2.3-.91 3.96-.3 1.72-.52 3.01-.7 4.09-.12 1.1-.22 1.98-.32 2.87-.11.88-.21 1.76-.26 2.89-.06 1.12-.18 2.46-.24 4.27-.03 1.82-.1 3.18-.19 4.31-.06 1.09-.11 1.96-.17 2.83-.03.44-.06.87-.09 1.33-.01.46.02.94.04 1.48.05 1.07.1 2.38.45 4.03.25 1.69.72 2.87 1.1 3.85.35.99.84 1.69 1.26 2.4.21.35.42.71.64 1.09.23.37.51.74.77 1.17.27.43.54.9.83 1.45.35.51.72 1.1 1.11 1.78.37.7.79 1.24 1.12 1.76.34.51.61.99.87 1.42.58.81 1 1.5 1.43 2.21.46.68.98 1.32 1.64 2.12.32.41.75.79 1.23 1.22.49.42 1.03.92 1.7 1.42 2.75 1.95 4.39 2.57 5.98 3.2.82.28 1.64.56 2.63.96 1.01.37 2.24.8 3.83 1.47 1.65.57 2.85 1.09 3.88 1.49 1.04.39 1.86.74 2.69 1.09.82.36 1.66.63 2.72.99 1.05.37 2.34.67 4.07 1.02 1.73.33 3.03.52 4.11.71 1.08.14 1.94.27 2.81.41l2.82.26c.54.04 1.14.03 1.82.05.68.01 1.44.02 2.31-.04 3.48-.15 5.17-.8 6.83-1.36 1.66-.64 3.28-1.22 6.67-2.15 3.45-.98 5.18-1.47 6.9-1.96.44-.13.88-.26 1.35-.39.38-.13.79-.26 1.24-.41.89-.36 1.98-.8 3.41-1.63 2.86-1.64 4.3-2.62 5.74-3.55 1.42-.97 2.89-1.93 5.38-4.37 2.46-2.47 3.65-3.75 4.81-5.06 1.15-1.31 2.32-2.63 4.18-5.55 1.82-2.95 2.34-4.61 2.85-6.22.12-.4.24-.81.37-1.24.11-.43.23-.88.38-1.38.16-.49.29-1.04.47-1.66.19-.61.35-1.3.56-2.09.78-3.14.77-4.73.84-6.29-.02-.78 0-1.56-.09-2.52-.03-.48-.06-1.01-.16-1.6-.07-.6-.15-1.26-.32-2.01-.08-.39-.12-.7-.22-1.08-.09-.38-.18-.74-.26-1.07l-.4-1.81c-.21-1.1-.43-1.94-.62-2.81-.37-1.73-.79-3.46-2.12-6.72-.7-1.61-1.22-2.82-1.74-3.77-.51-.96-.87-1.76-1.33-2.5l-1.44-2.43c-.6-.91-1.3-2.01-2.29-3.43l-4.12-5.64c-.54-.69-1.09-1.39-1.79-2.24-.75-.81-1.65-1.79-2.95-3-2.63-2.41-4.27-3.27-5.85-4.14-.81-.42-1.62-.83-2.58-1.42-.97-.57-2.13-1.27-3.6-2.31-.75-.5-1.42-.94-2-1.33-.58-.38-1.15-.78-1.51-.97-.4-.23-.75-.45-1.09-.63-.35-.17-.68-.33-1.02-.5-1.36-.59-2.71-1.22-5.73-1.84-3.04-.58-4.67-.73-6.29-.93-1.63-.17-3.32-.29-6.69.2-3.37.56-5.06 1.01-6.75 1.44-1.68.45-3.38.9-6.65 2.21-3.26 1.34-4.87 2.09-6.48 2.82-1.59.77-3.21 1.53-6.14 3.44-2.23 1.5-3.58 1.94-4.7 1.7s-2-1.19-3-2.38-1.97-2.38-2.03-3.81c-.06-1.42.82-3.11 3.5-4.9 3.47-2.26 5.33-3.1 7.18-3.98 1.87-.83 3.71-1.66 7.47-3.21 3.77-1.52 5.81-1.9 7.82-2.29 2.02-.37 4.02-.74 8.08-1.42 4.08-.6 6.18-.84 8.3-1.01 2.12-.12 4.29-.33 8.63.48 4.33.89 6.45 1.76 8.55 2.6 1.04.46 2.08.93 3.31 1.66.67.37 1.2.72 1.85 1.14.64.42 1.36.89 2.19 1.43 1.62 1.13 2.84 2 3.84 2.73.99.76 1.77 1.38 2.56 1.99 1.55 1.27 3.12 2.51 6.11 5.24 1.49 1.37 2.54 2.49 3.44 3.38.85.95 1.52 1.72 2.2 2.48.69.75 1.29 1.59 2.1 2.58.83.98 1.71 2.24 2.93 3.88 1.18 1.68 1.96 3.01 2.6 4.12.59 1.14 1.02 2.07 1.46 3 .45.92.79 1.89 1.31 3.04.54 1.15 1.11 2.56 1.91 4.41 1.53 3.73 2.26 5.6 2.95 7.49.34.94.73 1.88 1.06 3.08.17.6.36 1.26.57 2.01s.44 1.57.65 2.7q.165.81.3 1.53c.07.48.14.94.2 1.37.15.86.23 1.61.3 2.3.18 1.38.25 2.49.34 3.6.08 2.2.21 4.51-.83 8.77-.53 2.12-1.13 3.64-1.69 4.86-.29.61-.56 1.15-.83 1.65-.29.49-.57.94-.85 1.4-1.14 1.8-2.28 3.57-4.43 7.07-2.2 3.47-3.24 5.23-4.28 7.04-1.05 1.79-2.16 3.58-5.08 6.52-2.96 2.9-4.81 3.95-6.61 4.99-.9.52-1.83 1.01-2.95 1.66-1.13.66-2.49 1.44-4.29 2.49-1.82 1.06-3.3 1.75-4.54 2.35l-1.76.77c-.48.2-.93.39-1.38.58-1.8.76-3.62 1.53-7.48 2.62-3.94 1.05-5.91 1.58-7.88 2.11-2.01.46-4.05 1-8.22 1.2-1.04.07-1.95.06-2.77.01-.81-.04-1.53-.08-2.18-.15-1.29-.18-2.31-.4-3.33-.61-1.01-.26-2.01-.53-3.26-.78-1.24-.29-2.74-.58-4.72-.94-3.94-.77-5.92-1.16-7.89-1.55-.98-.21-1.96-.43-3.17-.74s-2.66-.82-4.57-1.49c-1.9-.77-3.32-1.34-4.51-1.82-1.19-.52-2.14-.94-3.09-1.35-.96-.4-1.88-.93-3.05-1.54-1.18-.58-2.49-1.51-4.25-2.72-.87-.62-1.58-1.26-2.23-1.8-.64-.55-1.21-1.01-1.67-1.52-.94-.99-1.68-1.78-2.37-2.61-.66-.86-1.33-1.73-2.15-2.81-.4-.54-.8-1.18-1.29-1.87-.47-.71-1.06-1.45-1.58-2.4-.55-.93-1.02-1.76-1.44-2.5-.36-.76-.65-1.45-.92-2.07-.26-.62-.5-1.18-.7-1.71-.17-.54-.32-1.06-.48-1.57-.29-1.03-.66-2.04-.92-3.33-.28-1.29-.74-2.81-1.06-4.87-.42-2.05-.63-3.58-.88-4.85-.14-.64-.26-1.21-.38-1.76-.1-.54-.2-1.05-.29-1.56-.19-1.01-.42-2.08-.53-3.33-.1-1.23-.15-2.72-.11-4.69.05-1.98.21-3.49.3-4.73.08-1.24.22-2.24.37-3.25.14-1 .28-2 .45-3.25.23-1.26.5-2.77.86-4.79.49-2.03.8-3.54 1.22-4.8.42-1.25.76-2.25 1.12-3.25.42-.98.84-1.97 1.36-3.2.27-.61.62-1.27.99-2.03s.78-1.61 1.34-2.54c2.15-3.78 3.7-5.34 5.09-6.95 1.48-1.5 2.96-3.06 5.94-5.75 2.3-2.07 3.84-2.68 5.06-2.53 1.23.15 2.14 1.08 3.14 2.26 1.01 1.19 1.71 2.18 1.61 3.33-.1 1.16-1.02 2.48-3.08 4.34z",fill:"currentColor"})]}),VUe=e=>t.jsxs(rL,{...e,children:[t.jsx("path",{d:"M247.751 192.228c-.556-.913-21.734-38.222-16.025-69.587s34.91-71.938 75.452-74.969 78.449 5.537 95.606 54.192c17.158 48.655-4.538 98.058-41.518 111.239-36.979 13.181-71.958 6.158-71.958 6.158s-2.82-39.864-3.435-47.509c-.615-7.644-16.152-13.56-21.071-10.121s-8.403 5.847-10.082 14.357-6.969 16.221-6.969 16.221z",className:oL(e.highlightFill)}),t.jsx("path",{d:"m83.761 442.082-.078-26.423c0-13.221-.933-13.221-.933-26.433s1.322-13.212 1.322-26.433q-.03-13.212-.068-26.433c.03-6.79.136-10.258.311-13.726a75 75 0 0 1 .516-5.673c.311-2.186.748-4.819 1.73-8.306.992-3.488 2.072-6.062 3.112-8.15a36.3 36.3 0 0 1 3.16-5.275c1.099-1.564 2.353-3.051 4.026-4.819 1.73-1.709 3.947-3.711 7.351-5.702 3.422-1.972 6.242-2.827 8.556-3.429 1.157-.331 2.207-.515 3.209-.69.972-.214 1.974-.272 2.936-.379 1.945-.194 3.987-.184 6.583.156 1.303.252 2.752.524 4.356 1.156 1.605.573 3.355 1.505 5.144 2.826.389.321.758.632 1.128.933l.272.223.136.117.214.214.311.311.107.116c.127.136.224.253.302.34.146.175.223.233.262.224.029-.01 0 0 .078-.078.078-.068.088-.272.068-.408-.01-.292-.019-.505-.01-.661 0-.039 0-.097.02-.155.204-.612.389-1.146.554-1.622a59 59 0 0 1 1.361-3.517c.885-2.079 1.673-3.73 2.567-5.343s1.838-3.215 3.199-5.158c1.371-1.924 3.131-4.236 6.097-6.897 2.995-2.653 5.776-4.149 8.139-5.13 2.391-.961 4.404-1.476 6.417-1.748l.758-.117.7-.058c.467-.039.953-.078 1.44-.126.495-.039 1.001-.078 1.526-.127.545 0 1.118-.019 1.711-.029.603 0 1.216-.039 1.906 0 .691.049 1.41.097 2.188.156.758.019 1.624.223 2.509.359.447.087.904.146 1.38.272q.73.219 1.488.437c4.123 1.263 6.991 3.42 8.946 5.343l.7.729.34.359.088.088s-.02-.03-.02-.039c-.029-.039-.068-.078-.107-.117.039.029.097.058.136.078.088.039.156.078.214.087.224.068.243-.243.263-.068.068-.107.107.02.253-.039.068-.029.155-.106.262-.291l.058-.107.03-.058.019-.029.088-.204c.252-.593.486-1.215.787-1.875a56 56 0 0 1 2.198-4.459c1.867-3.313 3.763-5.654 5.571-7.412 1.818-1.758 3.491-3.002 5.309-4.022 1.818-1.01 3.744-1.875 6.243-2.545a26 26 0 0 1 4.21-.777c1.546-.204 3.413-.243 5.523-.029 2.119.223 3.986.728 5.562 1.34a23 23 0 0 1 4.045 1.992 29.2 29.2 0 0 1 5.309 4.196c.35.36.729.719 1.05 1.108.165.194.34.379.515.573l.253.282h.039a.37.37 0 0 0 .233.038c.117 0 .156-.058.185.03.029.087.058.242.097.495.058.233.039.631.185.952.175.369.253.389.321-.379.029-.379.087-.592.155-.816.049-.116.088-.223.127-.33l.068-.175.019-.049.039-.291.078-.612c.408-3.283.826-6.577 1.381-13.153 1.166-13.192.184-13.28 1.536-26.501.69-6.616 1.274-9.919 1.828-13.212.301-1.661.593-3.322.962-5.391.195-1.059.409-2.215.642-3.536.224-1.321.584-2.808.914-4.508 1.507-6.8 2.703-10.248 4.074-13.716.389-.865.681-1.73 1.196-2.652.496-.914.944-1.895 1.682-2.954.37-.534.691-1.097 1.158-1.671.476-.582.972-1.185 1.526-1.826.652-.622 1.284-1.282 2.11-1.933.856-.641 1.75-1.311 2.937-1.875 2.294-1.166 4.754-1.661 6.913-1.583 1.05.068 2.178.213 2.732.359.681.136 1.303.311 1.906.476 2.402.7 4.259 1.564 6.038 2.574 1.78 1.011 3.472 2.274 5.368 4.071 1.857 1.807 3.957 4.323 5.571 8.092 1.624 3.779 1.945 6.693 2.324 9.063.107 1.186.204 2.244.292 3.245.048.874.087 1.7.126 2.526.175 3.303.35 6.605.234 13.221-.244 13.221-1.138 13.221-1.381 26.433q-.292 13.22-.574 26.452c-.243 13.221-.078 13.221-.33 26.443l-.642 26.452c-.059 3.303-.068 5.79-.049 7.849v.69l.02.155c.019.097.029.185.048.282.029.175.068.321.107.447.146.534.292.738.282 1.642 0 .233-.019.466-.039.709-.019.262.234.427.321.388.107-.077.165-.106.272-.165.205-.116.516-.534 1.255-1.952.087-.175.175-.34.253-.496.097-.204.038-.097.466-.894.642-1.175 1.196-2.214 1.712-3.147a230 230 0 0 1 2.742-4.906 70 70 0 0 1 3.043-4.818 72 72 0 0 1 2.207-2.963c.836-1.03 1.741-2.195 2.869-3.487 4.463-5.178 6.845-7.762 9.334-10.307a56 56 0 0 1 4.317-3.983c1.78-1.448 4.016-3.148 7.41-4.974 3.403-1.817 6.262-2.759 8.644-3.342 1.196-.32 2.285-.495 3.315-.66 1.031-.195 2.003-.234 2.966-.331 1.964-.145 4.142-.136 6.845.253.691.155 1.41.311 2.169.486.758.155 1.565.514 2.411.806 1.692.651 3.539 1.7 5.416 3.206.865.816 1.711 1.593 2.363 2.409.612.835 1.264 1.603 1.682 2.39.428.786.856 1.525 1.177 2.234.272.719.534 1.399.787 2.05.263.65.36 1.262.525 1.855.136.593.311 1.166.389 1.71.146 1.078.321 2.118.379 3.118.03.991.098 2.001.078 3.05-.058 1.03-.078 2.138-.204 3.323-.078.583-.156 1.204-.243 1.855a21 21 0 0 1-.331 2.05q-.221 1.064-.457 2.273c-.058.369-.233.913-.359 1.38-.146.485-.273 1-.467 1.486-1.468 3.973-3.151 6.334-4.512 8.199-1.4 1.855-2.596 3.176-3.802 4.449-2.401 2.545-4.881 4.906-9.305 9.734-4.385 4.818-6.34 7.286-8.236 9.802a92 92 0 0 0-2.917 4.138c-1.05 1.622-2.324 3.565-3.714 6.266-1.391 2.71-2.198 4.828-2.742 6.625a36 36 0 0 0-1.089 4.731c-.146.728-.224 1.467-.321 2.254-.049.388-.107.786-.165 1.204-.039.418-.078.855-.117 1.321-.049.467-.097.952-.156 1.467-.048.564-.107 1.166-.165 1.797-.136 1.273-.292 2.701-.467 4.323-1.468 13.076-2.255 13.008-3.617 26.132-1.332 13.144-1.079 13.173-2.363 26.316-.641 6.577-1.098 9.841-1.555 13.115-.224 1.632-.457 3.273-.71 5.323-.058.515-.127 1.049-.195 1.622-.077.748-.165 1.545-.252 2.39-.107 1.156-.292 2.351-.778 3.468a8.6 8.6 0 0 1-2.295 3.167c-1.215 1.059-2.625 1.671-3.734 1.924-1.108.272-1.974.252-2.207.281-1.527.029-2.898.049-4.152.078-.992.029-1.906.049-2.752.078-1.692.058-3.16.107-4.686.165a405 405 0 0 1-11.95.252c-13.234.098-13.244-.505-26.477-.408-13.234.088-13.234.612-26.468.69-13.243.078-13.243-.107-26.486-.039q-13.234.116-26.467.224c-13.244.039-13.244.621-26.497.631-13.263 0-13.263-.845-26.525-.894-13.273-.077-13.253-.223-26.574-.437-5.144-.097-8.197-.631-10.035-1.554a5 5 0 0 1-1.109-.748c-.107-.126-.35-.291-.515-.457a2.5 2.5 0 0 1-.389-.495c-.379-.67-.233-1.321.049-2.021.282-.699.67-1.331.972-1.933a6 6 0 0 0 .204-.427c.059-.136.068-.263.253-.389a4.5 4.5 0 0 1 1.06-.66c1.653-.778 4.638-1.176 9.714-1.079 13.146.214 13.165.437 26.37.515q13.224.059 26.438.107c13.224-.01 13.214-.806 26.438-.845 13.224-.049 13.224.719 26.447.66 13.224-.068 13.215-1.36 26.439-1.437 13.223-.078 13.223.136 26.447.039 13.224-.098 13.224.514 26.448.417l12.008-.039h9.967c.039-.009.369.068.651-.145.263-.195.292-.505.302-.739.097-1.01.194-1.894.272-2.71.214-2.059.379-3.701.554-5.343.331-3.293.662-6.576 1.332-13.163 1.294-13.163 1.624-13.124 2.956-26.287 1.362-13.163 1.128-13.182 2.606-26.365.195-1.651.36-3.099.506-4.391s.272-2.419.457-3.555c.155-1.117.301-2.118.505-3.05.195-.933.341-1.827.574-2.691a59 59 0 0 1 1.643-5.615 64.5 64.5 0 0 1 3.374-7.811c3.355-6.285 5.378-9.151 7.303-12.065 1.964-2.866 4.045-5.712 8.566-10.686 4.522-4.935 6.622-7.324 8.547-9.763a68 68 0 0 0 2.907-3.915c1.012-1.486 2.149-3.283 2.976-5.498.243-.563.311-1.049.476-1.525.127-.622.243-1.205.36-1.758.272-1.108.321-2.05.467-2.915.194-1.719.243-3.06.194-4.342.01-.33-.019-.641-.068-.952-.039-.311-.068-.631-.107-.952-.019-.34-.107-.641-.185-.962-.077-.32-.146-.67-.233-1.01-.438-1.321-1.099-2.759-2.431-3.993-.165-.165-.369-.262-.535-.398-.184-.117-.311-.282-.505-.369-.389-.165-.691-.408-1.06-.534-.379-.117-.7-.263-1.05-.379a21 21 0 0 1-1.041-.224c-.311-.107-.69-.077-1.001-.126-.331-.019-.632-.097-.963-.087-.671.029-1.235-.02-1.915.048-1.381.117-2.742.272-4.395.69-1.663.379-3.608 1.039-6.107 2.331-2.479 1.331-4.297 2.565-5.775 3.682a61 61 0 0 0-3.831 3.07c-2.315 2.02-4.619 4.128-8.8 8.966-1.05 1.195-1.935 2.312-2.732 3.274-.817.981-1.401 1.797-1.994 2.565a88 88 0 0 0-2.839 4.177 214 214 0 0 0-2.645 4.371c-.486.865-1.04 1.797-1.633 2.885-.156.282-.311.564-.477.855-.321.583-.641 1.156-.953 1.778-.641 1.224-1.312 2.535-2.032 3.925-.7 1.447-1.351 2.807-1.974 4.08-.612 1.292-1.186 2.603-1.721 3.779-.534 1.214-1.05 2.273-1.536 3.273-.243.505-.476.991-.71 1.467-.116.233-.223.466-.34.7-.058.106-.117.242-.165.33l-.156.146c-.408.388-.788.757-1.157 1.117-.185.175-.36.349-.545.524-.145.078-.282.165-.418.243-.544.311-1.089.651-1.458.768l-.613.262c-.165.058-.33.126-.505.194-.312.127-.632.253-1.002.399-.214.068-.817.097-1.507-.03-.671-.126-1.439-.456-1.75-.719-.418-.408-.807-.961-1.342-1.651-.146-.214-.282-.418-.418-.622-.136-.213-.263-.359-.409-.641-.272-.534-.534-.894-.748-1.564-.107-.32-.234-.544-.321-.903-.078-.369-.165-.729-.234-1.079-.048-.408-.058-.884-.097-1.311 0-.495.01-.971.02-1.438.058-3.769.107-6.79.155-9.811.068-4.343.146-8.695.292-17.379.243-13.202-.185-13.202.058-26.404s1.041-13.192 1.284-26.394c.243-13.212-1.099-13.221-.856-26.423l.525-26.394c.127-6.606.185-9.899.253-13.202.019-.826.029-1.651.049-2.526.019-.476-.02-.767-.039-1.175-.02-.379-.029-.777-.049-1.195 0-.427-.078-.835-.136-1.282a58 58 0 0 0-.204-1.399c-.117-.466-.243-.952-.37-1.477-.116-.534-.369-1-.544-1.564-.875-2.127-1.935-3.342-2.927-4.284-1.002-.932-1.935-1.574-2.995-2.098a17.2 17.2 0 0 0-3.704-1.418c-.389-.078-.788-.195-1.235-.282-.224-.039-.448-.088-.681-.126-.097 0-.175 0-.262-.02-.351 0-.71.029-1.274.282-1.157.554-2.441 1.836-3.365 3.04-.233.311-.486.574-.7.884-.214.321-.418.622-.622.914-.428.563-.778 1.185-1.138 1.806-1.4 2.487-2.819 5.207-4.19 11.318-.302 1.544-.603 2.885-.807 4.099-.185 1.224-.35 2.302-.506 3.284-.301 1.962-.447 3.613-.642 5.216-.34 3.255-.69 6.509-1.371 13.027-1.342 13.076-.787 13.134-1.945 26.258-.554 6.567-.748 9.86-.933 13.154-.428 6.275-.865 12.56-1.731 25.121 0 .126-.019.262-.029.34l-.068.534c-.029.165-.039.399-.097.437-.097.166-.185.321-.272.476q-.277.466-.526.904c-.34.563-.67 1.098-.972 1.603-.321.631-.564.612-.817.767q-.364.19-.7.35c-.214.097-.447.252-.612.272-.156.029-.311.058-.457.087s-.282.068-.418.107c-.156.039-.166.078-.7.156-.467.068-1.09.019-1.138-.098-.058-.116-.097-.233-.156-.369a6 6 0 0 0-.476-.903 6 6 0 0 0-.934-1.176c-.437-.456-1.021-.932-2.11-1.884-.233-.175-.573-.564-.855-.865-.146-.165-.292-.301-.438-.476-.165-.272-.321-.544-.476-.806a76 76 0 0 1-.457-.777c-.078-.136-.156-.243-.224-.398-.058-.253-.126-.515-.185-.768-.243-1.01-.486-1.991-.719-2.943-.924-3.371-1.741-5.742-2.596-7.539-.214-.456-.418-.913-.623-1.35l-.651-1.156c-.214-.369-.408-.758-.632-1.098-.224-.33-.447-.66-.671-.981l-.331-.476-.165-.233a2 2 0 0 0-.126-.175l-.341-.398a12 12 0 0 0-.68-.748c-.914-.952-1.877-1.788-3.122-2.575-1.254-.777-2.742-1.525-4.997-1.816a12.2 12.2 0 0 0-3.151.019c-.243.029-.486.059-.71.088-.223.048-.437.097-.651.136a9 9 0 0 0-1.177.301c-1.458.447-2.518 1.01-3.539 1.651-1.001.68-1.945 1.457-3.043 2.604-1.089 1.156-2.344 2.691-3.724 5.119a36 36 0 0 0-1.683 3.391c-.233.514-.427 1.02-.622 1.486l-.146.35c-.087.242-.165.485-.253.728-.165.476-.33.942-.486 1.399-1.205 3.74-1.915 7.014-2.479 10.812l-.292 2.234c-.039.234-.049.544-.126.68-.243.7-.477 1.409-.73 2.147-.058.224-.136.282-.213.389l-.224.301c-.156.204-.311.418-.467.631-.165.253-.301.331-.457.486l-.457.428c-.301.262-.564.427-.855.66-.234.156-.487.311-.749.486-.204.126-.428.272-.661.418-.088.058-.185.116-.282.184-.03.029-.137.078-.399.107a3.3 3.3 0 0 1-.681.01c-.505-.408-1.05-.67-2.256-1.137l-.184-.068c-.078-.039-.195-.126-.292-.184l-.583-.379-1.099-.7c-.399-.923-.788-1.826-1.177-2.71-.194-.447-.389-.894-.573-1.331-.195-.447-.399-.845-.525-1.476a794 794 0 0 1-.875-3.527c-.146-.602-.292-1.204-.448-1.816-.058-.36-.194-.467-.291-.7l-.321-.612c-.428-.835-.866-1.69-1.323-2.594l-.175-.34a5 5 0 0 0-.311-.427l-.165-.223c-.049-.068-.039-.039-.059-.068l-.087-.078-.331-.33c-.933-.884-2.012-1.768-4.054-2.429-2.071-.651-4.045-.826-5.747-.865-.856-.029-1.624-.077-2.402-.029-.739.029-1.536 0-2.168.059-1.283.058-2.547.272-4.084.777-1.517.524-3.296 1.399-5.348 3.176a24.5 24.5 0 0 0-4.317 5.032c-.982 1.516-1.643 2.827-2.285 4.158-.632 1.341-1.196 2.73-1.867 4.488a87 87 0 0 0-1.069 2.992q-.147.422-.292.875c-.136.427-.272.864-.418 1.311-.379 1.331-.807 2.72-1.186 4.284a98 98 0 0 1-.438 1.797c-.136.583-.243 1.176-.35 1.71a57 57 0 0 0-.496 2.632c-.165.564-.321 1.166-.486 1.662-.214.369-.418.738-.613 1.088l-.291.524c-.098.156-.195.233-.292.35-.195.223-.379.437-.564.651-.36.379-.651.592-.963.874-.262.185-.525.389-.748.534-.224.136-.389.263-.642.379-.301.136-.914.292-1.42.34a6 6 0 0 1-.632.029c-.155 0-.204 0-.262-.009l-.341-.02c-.33-.039-.632-.039-1.244-.204-.146-.039-.272-.058-.428-.097-.204-.087-.408-.184-.622-.282l-.642-.291-.165-.078-.214-.194c-.146-.136-.292-.262-.438-.398-.292-.272-.593-.554-.904-.836l-.233-.213s-.078-.059-.117-.127l-.097-.252c-.136-.34-.273-.68-.409-1.03-.554-1.37-1.137-2.973-1.76-4.158-.311-.651-.632-1.311-.953-2.001-.038-.078-.077-.185-.126-.243l-.379-.466-.525-.641c-.175-.214-.36-.437-.535-.661l-.272-.34c-.068-.078-.088-.078-.136-.116-.166-.127-.331-.272-.506-.418-1.536-1.205-3.034-1.593-4.376-1.875-1.4-.175-2.596-.223-3.879-.107-1.255.107-2.635.282-4.24.7a21.7 21.7 0 0 0-5.698 2.214c-2.178 1.273-3.607 2.546-4.725 3.702-1.089 1.194-1.925 2.205-2.645 3.351-.749 1.108-1.429 2.312-2.178 3.886-.749 1.583-1.575 3.565-2.382 6.402-1.566 5.712-2.12 8.801-2.762 11.851-.583 3.07-1.118 6.198-1.157 12.619 0 13.202-.243 13.212-.243 26.433 0 13.231.399 13.231.399 26.462s.31 13.241.31 26.481-.592 13.241-.592 26.482c0 10.21-2.042 9.394-5.066 9.394s-5.134.816-5.134-9.394z",fill:"currentColor"}),t.jsx("path",{d:"M295.44 215.523c2.529.631 3.851.806 5.134 1.039 1.303.185 2.606.408 5.232.7 2.635.272 3.977.146 5.309-.029 1.332-.146 2.654-.34 5.289-.311 1.323-.02 2.314.058 3.141.165.826.087 1.497.223 2.168.359 1.342.282 2.703.506 5.377.272 2.664-.272 3.987-.485 5.309-.689a51 51 0 0 0 2.139-.369c.817-.166 1.819-.302 3.122-.583 2.625-.525 3.879-1.03 5.134-1.506.622-.243 1.254-.476 2.032-.777s1.74-.564 2.995-.981c2.528-.787 3.811-1.117 5.114-1.438a19 19 0 0 0 2.081-.593c.778-.272 1.74-.573 2.946-1.126 2.431-1.069 3.588-1.72 4.745-2.351a40 40 0 0 0 1.867-1.059c.7-.428 1.585-.875 2.703-1.564s1.945-1.224 2.596-1.729a35 35 0 0 0 1.624-1.399c.496-.437.982-.875 1.585-1.428.603-.554 1.381-1.127 2.382-1.943 1.011-.806 1.76-1.418 2.392-1.924.623-.514 1.109-.932 1.605-1.34 1.011-.806 1.954-1.69 3.753-3.536a50 50 0 0 1 2.1-2.225 34 34 0 0 1 1.439-1.525c.924-.913 1.75-1.904 3.258-4.022 1.419-2.253 1.973-3.487 2.508-4.711.554-1.224.953-2.507 2.246-4.799.662-1.137 1.089-2.021 1.488-2.749.399-.719.729-1.283 1.07-1.856.33-.573.7-1.127 1.059-1.865.35-.748.739-1.651 1.226-2.866 1.021-2.428 1.458-3.652 2.032-4.857.272-.602.544-1.204.855-1.972.263-.777.535-1.729.866-3.002.7-2.545.564-3.914.554-5.245a32 32 0 0 1 0-2.147c0-.826.039-1.797.195-3.08.087-.641.155-1.204.223-1.709.039-.506.088-.943.136-1.351.098-.806.195-1.447.302-2.098.253-1.292.311-2.594.301-5.197-.087-2.604-.097-3.915-.01-5.236 0-1.312 0-2.643-.389-5.246-.515-2.584-.913-3.847-1.507-5.061-.272-.612-.544-1.215-.826-1.982-.146-.389-.282-.816-.438-1.302a33 33 0 0 1-.554-1.651c-.389-1.244-.613-2.205-.836-2.992-.224-.787-.379-1.428-.535-2.069-.155-.642-.292-1.292-.544-2.079a55 55 0 0 0-1.128-2.924c-2.198-4.809-2.597-4.615-5.163-9.22a29 29 0 0 1-1.488-2.768 43 43 0 0 1-.904-1.982 26 26 0 0 0-.924-1.991c-.399-.738-.953-1.574-1.731-2.662-3.228-4.255-3.967-3.662-7.477-7.596-1.78-1.953-2.577-3.012-3.365-4.1a16 16 0 0 0-1.351-1.7c-.564-.612-1.235-1.35-2.246-2.205-1.012-.855-1.77-1.486-2.402-2.02-.642-.506-1.167-.914-1.682-1.322a27 27 0 0 0-1.702-1.282c-.671-.457-1.449-1.078-2.557-1.739-2.188-1.409-3.345-1.914-4.492-2.506-1.216-.515-2.392-1.117-4.813-2.157l-2.888-1.224c-.759-.32-1.391-.534-2.003-.777-.622-.233-1.235-.466-2.013-.767-.778-.292-1.74-.544-3.004-.923-5.115-1.38-5.261-.739-10.424-1.671-5.212-.651-5.163-1.283-10.462-1.486-2.655-.088-3.977.194-5.28.446-.652.136-1.313.234-2.12.37-.817.145-1.789.281-3.102.398-2.615.262-3.879.68-5.153.99-1.254.409-2.509.778-5.056 1.341-2.528.632-3.822.826-5.086 1.146-1.264.311-2.576.515-5.017 1.458-2.47.855-3.656 1.428-4.871 1.894-1.226.457-2.402 1.04-4.755 2.195-2.314 1.215-3.54 1.72-4.804 2.157-1.215.525-2.469 1.02-4.667 2.497-2.129 1.564-3.228 2.312-4.21 3.205-.506.428-1.011.855-1.634 1.39-.32.262-.671.553-1.069.884-.379.35-.807.738-1.293 1.185-.982.884-1.673 1.593-2.217 2.224-.516.66-.885 1.215-1.255 1.778-.739 1.117-1.497 2.195-3.199 4.187-1.76 1.933-2.664 2.885-3.656 3.788-.486.457-.982.904-1.536 1.516a35 35 0 0 0-1.906 2.497c-.379.544-.71 1.02-1.001 1.447-.263.447-.496.836-.71 1.195-.408.719-.739 1.302-1.06 1.875-.311.583-.671 1.146-1.04 1.884-.38.739-.837 1.623-1.478 2.779-.321.573-.613 1.078-.866 1.535-.233.456-.457.864-.651 1.224-.409.728-.759 1.292-1.109 1.865s-.719 1.136-1.098 1.875c-.37.748-.788 1.661-1.294 2.894-1.059 2.458-1.332 3.789-1.701 5.071l-1.439 5.13a48 48 0 0 1-.973 3.001c-.262.787-.476 1.419-.69 2.05a46 46 0 0 0-.681 2.06 19 19 0 0 0-.7 3.079c-.865 5.246-.272 5.314-.671 10.55-.155 5.246-.311 5.255.02 10.482.311 2.603.398 3.905.71 5.177.126.642.252 1.283.418 2.079.146.807.311 1.768.661 3.021.321 1.263.593 2.206.836 2.983.272.767.564 1.36.827 1.962.554 1.185 1.001 2.4 2.012 4.789.914 2.429 1.342 3.653 1.702 4.925.194.632.36 1.283.661 2.04.331.748.768 1.633 1.41 2.779 2.713 4.498 2.587 4.585 5.727 8.83 2.587 3.118 1.838 4.799-.428 6.82-2.255 2.011-4.346 2.759-7.283-.797-3.539-4.779-3.344-4.915-6.407-9.986-.72-1.302-1.264-2.273-1.712-3.08-.427-.825-.719-1.505-1.04-2.176-.613-1.35-1.303-2.671-2.363-5.45-1.147-2.739-1.711-4.118-2.372-5.469-.321-.68-.661-1.36-.992-2.234a41 41 0 0 1-.982-3.42c-.175-.728-.34-1.36-.438-1.942a35 35 0 0 1-.359-3.993c-.117-1.496-.03-3.002-.36-5.945-.379-5.897-1.712-5.877-1.537-11.881 0-1.506.214-2.613.292-3.536.117-.923.204-1.671.302-2.409.145-1.486.515-2.934.962-5.877.204-1.477.496-2.545.768-3.439.263-.894.496-1.593.73-2.303a75 75 0 0 0 .739-2.282c.311-.865.651-1.914 1.069-3.323.418-1.408.71-2.467 1.021-3.332.321-.855.584-1.535.836-2.224.545-1.36.973-2.75 2.13-5.44.564-1.351.992-2.361 1.342-3.206.369-.836.719-1.477 1.04-2.137.331-.651.652-1.312 1.06-2.128.204-.408.428-.864.671-1.38.272-.504.583-1.068.933-1.709 1.4-2.574 2.169-3.827 3.044-5.013.418-.602.836-1.204 1.351-1.962.253-.379.525-.806.846-1.282.331-.466.7-.991 1.128-1.593.827-1.205 1.449-2.118 1.974-2.866.535-.738.972-1.331 1.4-1.933.885-1.176 1.673-2.42 3.656-4.605.982-1.098 1.682-1.953 2.314-2.623s1.138-1.204 1.644-1.739c.505-.534 1.011-1.068 1.643-1.739a100 100 0 0 1 2.577-2.38 59 59 0 0 0 1.439-1.34c.427-.379.807-.719 1.147-1.04a47 47 0 0 0 1.711-1.71c1.012-1.107 2.149-2.078 4.561-3.827 2.46-1.67 3.704-2.496 4.92-3.38 1.264-.787 2.499-1.652 5.143-3.041 2.684-1.321 4.036-1.953 5.445-2.458s2.762-1.127 5.582-2.108c2.79-1.059 4.249-1.389 5.688-1.797 1.429-.427 2.888-.729 5.776-1.438 2.897-.65 4.395-.777 5.863-.98 1.488-.088 2.956-.273 5.902-.574 1.478-.126 2.577-.243 3.5-.34.924-.107 1.663-.126 2.402-.204 1.478-.117 2.966-.282 5.931-.184.739.019 1.391.038 1.974.058.584.039 1.089.097 1.546.145.924.107 1.663.195 2.402.282 1.478.156 2.927.496 5.873.836 5.834 1.03 5.863.932 11.6 2.467 2.859.806 4.288 1.205 5.727 1.603.72.204 1.449.379 2.334.68.875.32 1.915.719 3.296 1.292 1.39.544 2.353 1.127 3.17 1.583.807.467 1.439.884 2.061 1.292.623.418 1.254.904 2.052 1.419.797.515 1.75 1.127 3.014 1.952 1.293.778 2.227 1.39 3.073 1.807.846.428 1.555.729 2.236 1.06.69.32 1.391.64 2.217 1.116.817.486 1.721 1.156 2.868 2.118 1.148.962 1.945 1.749 2.636 2.37.69.632 1.234 1.137 1.75 1.671 1.05 1.06 2.129 2.08 4.132 4.275a146 146 0 0 1 7.536 9.16c.865 1.205 1.517 2.099 2.061 2.856.516.768.924 1.39 1.332 2.001.409.622.817 1.234 1.323 2.011.476.797 1.05 1.749 1.818 3.021 1.497 2.565 1.886 4.051 2.343 5.47.37 1.476.798 2.895 1.984 5.585a128 128 0 0 0 1.4 3.206c.379.845.632 1.535.924 2.215.564 1.37 1.176 2.72 2.013 5.566.223.71.418 1.322.593 1.875.165.554.311 1.049.447 1.487.272.884.515 1.593.758 2.302.526 1.408.876 2.866 1.439 5.799.448 2.954.681 4.44.944 5.916.155 1.487.398 2.983.515 5.984 0 3.012-.282 4.518-.778 5.985-.223.738-.447 1.466-.642 2.389-.097.457-.184.962-.252 1.535-.088.573-.205 1.214-.282 1.943a62 62 0 0 0-.331 3.497l-.224 2.4c-.155 1.476-.165 3.001-.943 5.867a86 86 0 0 0-.817 3.439c-.252.894-.427 1.613-.612 2.331-.399 1.428-.642 2.934-1.789 5.674-.564 1.379-.982 2.409-1.332 3.264-.37.855-.739 1.496-1.06 2.156-.331.661-.671 1.321-1.089 2.147s-.875 1.836-1.614 3.119c-1.439 2.574-1.974 3.963-2.635 5.284-.662 1.321-1.323 2.652-2.908 5.139-1.74 2.477-2.858 3.565-4.045 4.546a32 32 0 0 0-1.837 1.662c-.7.641-1.508 1.418-2.509 2.535-1.011 1.107-1.799 1.894-2.411 2.603a65 65 0 0 1-1.624 1.827c-.506.553-1.011 1.117-1.673 1.787-.671.661-1.526 1.389-2.683 2.341s-2.062 1.613-2.772 2.235c-.709.612-1.273 1.107-1.857 1.593a53 53 0 0 1-1.896 1.544c-.749.574-1.701 1.166-2.975 1.953s-2.285 1.292-3.092 1.758c-.817.467-1.468.826-2.139 1.156-1.333.69-2.645 1.389-5.377 2.584-1.352.632-2.412 1.001-3.267 1.36-.866.35-1.556.632-2.256.875-1.4.505-2.791 1.039-5.62 1.913-1.41.476-2.509.661-3.423.826-.914.156-1.663.224-2.421.253-1.498.077-2.985.184-5.854.757-1.429.321-2.528.447-3.422.593-.905.136-1.634.233-2.363.291-1.459.146-2.908.302-5.815.603-2.907.262-4.366.476-5.824.631-.729.078-1.459.165-2.373.243-.914.049-2.022.087-3.49.107-2.947-.01-4.425-.02-5.893-.02-1.478 0-2.965-.019-5.912-.33-2.956-.33-4.404-.748-5.843-1.127-1.439-.437-2.879-.796-5.776-1.515-4.483-1.176-3.501-3.08-2.625-5.955.884-2.914 1.196-4.954 5.065-3.934z",fill:"currentColor"}),t.jsx("path",{d:"M355.531 172.741c-4.113-3.517-3.617-4.09-7.73-7.616-4.113-3.527-3.938-3.721-8.051-7.247s-4.619-2.934-8.732-6.46c-4.113-3.527-4.326-3.284-8.439-6.8-4.113-3.527-3.345-4.42-7.458-7.947-4.113-3.526-4.356-3.235-8.469-6.761s-4.201-3.429-8.314-6.955c-4.123-3.527-3.812-3.886-7.934-7.412-4.123-3.527-4.434-3.158-8.557-6.684-3.043-2.603-2.022-4.624-.175-6.771s3.432-3.176 6.476-.563c4.113 3.516 4.745 2.788 8.858 6.304 4.113 3.527 3.403 4.352 7.516 7.869 4.113 3.526 3.987 3.672 8.1 7.189 4.113 3.526 4.891 2.623 9.004 6.149s3.529 4.196 7.652 7.723c4.113 3.526 4.055 3.594 8.168 7.111 4.113 3.526 4.2 3.429 8.313 6.955 4.123 3.527 4.658 2.905 8.771 6.431 4.122 3.526 4.278 3.352 8.391 6.878 3.044 2.603.982 4.634-.865 6.781-1.848 2.146-3.472 4.42-6.505 1.816z",fill:"currentColor"}),t.jsx("path",{d:"M285.192 169.7c3.578-4.06 4.142-3.565 7.711-7.635 3.578-4.071 3.772-3.896 7.351-7.956 3.578-4.071 2.994-4.576 6.563-8.646 3.578-4.07 3.335-4.274 6.913-8.345 3.578-4.07 4.463-3.293 8.041-7.363s3.297-4.313 6.865-8.374c3.578-4.07 3.481-4.158 7.059-8.228 3.579-4.071 3.938-3.76 7.517-7.83 3.578-4.07 3.208-4.401 6.787-8.47 2.644-3.012 4.647-1.963 6.777-.098s3.131 3.468.486 6.47c-3.578 4.06-2.849 4.701-6.417 8.772-3.579 4.07-4.395 3.351-7.974 7.412-3.578 4.07-3.724 3.944-7.292 8.005-3.578 4.07-2.684 4.847-6.262 8.917-3.578 4.071-4.249 3.478-7.827 7.548s-3.647 4.003-7.215 8.073c-3.578 4.07-3.481 4.158-7.06 8.218-3.578 4.071-2.965 4.615-6.543 8.685s-3.404 4.226-6.982 8.306c-2.645 3.011-4.648.923-6.777-.942-2.129-1.866-4.376-3.517-1.731-6.528z",fill:"currentColor"})]}),zUe=e=>t.jsxs(rL,{...e,children:[t.jsx("path",{d:"M268 320c21.539 0 39-17.461 39-39s-17.461-39-39-39-39 17.461-39 39 17.461 39 39 39",className:oL(e.highlightFill)}),t.jsx("path",{d:"M400.52 206.79c-.13-13.49-.3-20.23-.46-26.98-.08-3.37-.15-6.74-.25-10.96-.03-2.11-.07-4.43-.11-7.06-.01-.95-.03-1.95-.04-3.02a.6.6 0 0 0-.16-.35c-.32-.32-.65-.64-.99-.98-19.13-19-19.43-18.71-38.56-37.71q-19.15-19.01-38.29-38.02c-7.4-7.35-11.87-11.94-15.7-15.92-1.91-1.99-3.67-3.83-5.55-5.79-.94-.98-1.92-1.99-2.96-3.07l-.31-.31-.07-.08c-.05-.06-.1-.12-.16-.16-.12-.1-.29-.14-.46-.14-1.7-.03-3.65-.06-5.87-.1-2.4-.02-5.11-.04-8.16-.07-26.97-.14-26.98 1.14-53.95 1.03-26.97-.09-26.97-1.18-53.93-1.22-13.49 0-20.23.22-26.97.46-6.72.26-13.51.45-26.88.65l-1.72.03h-.1c-.06 0-.12.04-.14.09l-.02.08v.04l-.02.01v.18l-.04.44q-.12 1.755-.24 3.33c-.31 4.21-.59 7.57-.88 10.94-.57 6.73-1.14 13.46-1.9 26.94-1.52 26.97-1.86 26.94-3.38 53.91-.05.84-.09 1.66-.13 2.45v.09c1.28.1-1.75-.11-1.44-.09v.05c2.88 0 .8.01 1.44.02v1.88c.01 1.49.03 2.89.04 4.2.04 2.64.09 4.96.15 7.06.12 4.22.28 7.59.44 10.96.32 6.75.64 13.49.64 26.99 0 26.99-.38 26.99-.38 53.97s-.51 26.99-.51 53.97-.32 26.99-.32 53.98.83 26.99.83 53.99c.02 8.85.03 14.79.05 19.98 0 1.3.01 2.54.02 3.78 0 .62 0 1.23.01 1.85v.42c-.01.14.13.27.29.22h.07c.48 0 1 .02 1.58.03 1.16.02 2.51.05 4.05.08 3.08.07 6.91.15 11.55.25 13.48.29 20.21.55 26.94.8s13.47.51 26.93.62c13.46.09 20.17.02 26.86-.11 3.33-.07 6.69-.15 10.76-.36 1.01-.06 2.08-.12 3.15-.21.53-.05 1.08-.1 1.58-.16.27-.03.47-.07.71-.1l.25-.05c.06 0 .05-.01.05-.01l.27.91c.31.87.34 1.31.57 1.88.1.27.22.54.35.81l.2.39c.02.08.04.17.08.25.07.16.17.31.3.43l.1.09.05.04c-7.57-7.1-2.04-2.03-3.7-3.65.15-.14.31-.29.48-.42.33-.27.7-.51 1.08-.71q.285-.15.57-.27l.17-.06c.22-.08.45-.15.68-.21l.35-.09.21-.04c.27-.05.54-.1.82-.16.91-.14 1.74-.23 2.54-.3 1.62-.14 3.25-.23 4.98-.31 6.89-.29 11.95-.3 16.2-.32 4.24 0 7.62.05 11.01.1 6.77.11 13.53.24 27.04.3 27.02.17 27.03-1.08 54.04-.76q25.77.38 51.54.75h.02c.31-4.54.55-8.1.76-11.21l.74-9.56c.49-6.19.98-12.85 1.62-24.87.83-14.72 1.21-21.32 1.66-29.44-.07-5.42-.15-12.09-.29-24.18-.41-27.02-.1-27.02-.51-54.04-.31-20.86 1.71-21.58 4.82-21.63 3.12-.05 6.13.6 6.45 21.46.4 26.98-.03 26.98.38 53.96.18 11.87.13 18.45.04 24.35-.31 4.03-.6 7.74-.95 12.39-.33 4.52-.68 9.95-1.08 17.5-.64 12.07-.87 18.73-1.07 24.96-.1 3.11-.2 6.11-.31 9.62-.07 1.75-.14 3.63-.22 5.72-.11 2.44-.24 5.13-.38 8.14-.08 1.3-.38 2.97-1.49 4.66-1.07 1.7-3.07 3.28-5.45 3.81-.76.09-1.49.19-2.23.26l-2.28-.03c-.86-.01-1.7-.03-2.51-.04-1.49-.02-2.88-.04-4.2-.06-2.63-.03-4.95-.06-7.06-.08-4.21-.02-7.58-.04-10.95-.06-6.74-.02-13.48-.04-26.96-.22-26.96-.32-26.96-.43-53.91-.59-13.46-.05-20.19-.08-26.92-.1-3.36 0-6.72.02-10.92.03-4.18.05-9.24.09-15.83.36-1.64.07-3.17.16-4.53.26l-.97.09-.46.05-.38.05c-.13.02-.26.03-.3.04l-.1.02h-.06v-.07l-.1-.58q-.225-1.155-.63-2.25c-.12-.35-.33-.77-.41-1.04-.02-.21-.08-.42-.19-.61-.1-.19-.25-.36-.42-.49-.88-.84 7.43 6.97 3.86 3.72l-.33.3c-.15.13-.31.26-.47.38-.31.23-.7.46-1 .61l-.4.17c-.25.1-.57.22-.78.28l-.47.12-.45.11-.35.07c-.49.1-.86.14-1.25.19-.75.09-1.42.15-2.06.21-1.27.1-2.43.15-3.52.2-4.36.16-7.75.13-11.17.11l-27.11-.28c-13.52-.1-20.27-.12-27.02-.12s-13.51-.02-27.01-.3c-4.26-.07-7.85-.14-10.94-.19-3.57-.03-6.56-.06-9.19-.08-.65 0-1.22-.12-1.8-.23-.59-.09-1.12-.23-1.64-.45a9 9 0 0 1-2.78-1.75c-.8-.73-1.45-1.61-1.94-2.54a9.5 9.5 0 0 1-.94-2.97c-.14-1.08-.11-2.23-.14-3.36-.02-.67-.04-1.34-.05-2.01-.03-1.19-.07-2.41-.1-3.69-.13-5.11-.23-11.19-.23-20.43 0-26.99 1.2-26.99 1.2-53.98s-1.22-26.99-1.22-53.97 1.22-26.99 1.22-53.97-.52-26.99-.52-53.98c0-13.5-.16-20.25-.33-26.99-.07-3.37-.14-6.75-.22-10.97-.02-2.11-.05-4.43-.07-7.06 0-1.32-.01-2.72-.02-4.2v-2.46c.05-.89.1-1.8.15-2.75 1.51-26.91 2.79-26.82 4.31-53.73.76-13.46.98-20.2 1.2-26.94.12-3.37.25-6.74.4-10.95q.075-1.575.15-3.33c.04-.83.08-1.69.13-2.58.03-1.17.18-2.37.55-3.43.72-2.15 2.45-4.23 4.86-5.26.6-.26 1.22-.45 1.88-.59.67-.13 1.4-.2 2.15-.2 1.1-.02 2.23-.05 3.39-.07 13.54-.22 20.31-.34 27.08-.45 6.76-.14 13.51-.26 27.01-.25 27 .04 27 .67 53.99.76 27 .11 27 .62 54 .76h8.22c2.61-.03 4.91-.06 6.98-.08a8.67 8.67 0 0 1 5.94 2.2c.44.41.87.82 1.29 1.21 1.09 1 2.11 1.93 3.11 2.84 1.99 1.8 3.87 3.5 5.91 5.34 4.07 3.7 8.74 8.07 16.14 15.42l38.16 38.22c19.17 19.04 18.96 19.26 38.13 38.3l.88.88c.53.54 1.11 1.07 1.56 1.66a9 9 0 0 1 1.78 3.89c.13.68.18 1.37.17 2.06 0 .48 0 .96.01 1.43 0 .7 0 1.38.01 2.04 0 2.64.01 4.96.02 7.07-.02 4.22-.03 7.6-.04 10.98-.04 6.76-.09 13.51.04 27.02.19 20.86-1.86 22.28-4.98 22.3s-4.84-1.35-5.03-22.21z",fill:"currentColor"}),t.jsx("path",{d:"M397.62 162.33c-10.53.23-10.55-.55-21.08-.32-10.54.23-10.54-.05-21.08.18s-10.52 1.03-21.06 1.26-10.53.56-21.07.79c-1.69.02-3.18.03-4.5.05-2.07.03-3.61-.51-4.92-1.28a8.6 8.6 0 0 1-2.91-2.87 8.7 8.7 0 0 1-1.21-3.39c-.09-.59-.1-1.23-.1-1.86v-1.82c.03-.7.05-1.45.06-2.27.02-1.65-.02-3.63-.17-6.26-.6-10.52-.98-10.5-1.59-21.02l-1.34-21.05c-.6-10.54-.12-10.56-.72-21.1s-1.11-10.51-1.71-21.04c-.44-7.78 1.75-8.95 4.66-9.12s4.83.77 5.27 8.55c.6 10.52 1.6 10.46 2.2 20.98s-.52 10.59.08 21.11.4 10.53 1 21.05 1.82 10.45 2.42 20.97c.15 2.63.21 4.61.21 6.26 0 .82-.01 1.57-.02 2.27 0 .24-.02.2-.03.22l-.04.06-.08.13c-.12.19-.16.49.04.7.1.11.25.13.44.15-.22.03 1.39 0 2.62-.02q10.53-.18 21.07-.37t21.08-.59c10.55-.23 10.53-1.07 21.08-1.3s10.54-.47 21.09-.7c7.79-.17 7.38 2.81 7.44 5.72s.6 5.76-7.19 5.93zM235.84 280.08c-.02 2.84.06 4.95.16 6.7.1 1.74.2 3.13.36 4.5.14 1.38.38 2.72.78 4.36.43 1.62 1.06 3.54 2.29 5.77 1.25 2.21 2.43 3.61 3.51 4.65.25.29.53.5.78.73.26.22.49.46.75.64.53.35.96.77 1.5 1.05.51.31 1.01.64 1.61.89l.91.44c.38.15.78.3 1.21.46.85.31 1.77.69 2.83 1.04 1.08.32 2.28.7 3.66 1.09 5.56 1.43 8.43 1.31 11.21 1.38.69-.04 1.38-.08 2.12-.12.37-.02.74-.03 1.13-.05s.79-.09 1.21-.14c.84-.12 1.78-.14 2.81-.32.51-.09 1.06-.19 1.64-.29s1.21-.17 1.84-.37c2.58-.59 4.38-1.34 5.85-2 .71-.38 1.35-.71 1.95-1.03.62-.3 1.09-.74 1.63-1.08.51-.38 1.07-.69 1.57-1.14.51-.45 1.04-.92 1.64-1.44.15-.13.31-.26.46-.39.15-.15.29-.32.44-.48.3-.33.62-.67.96-1.04.33-.38.73-.72 1.06-1.18.34-.46.7-.95 1.08-1.46.83-.99 1.37-2.02 1.93-2.88.28-.43.55-.84.8-1.22.23-.4.42-.79.62-1.15.39-.73.76-1.39 1.13-2 .34-.62.57-1.23.86-1.83.26-.61.6-1.2.82-1.87.2-.67.41-1.39.65-2.18.28-.79.32-1.7.47-2.72.04-.51.18-1.05.14-1.64-.01-.58-.02-1.2-.04-1.86-.01-.33 0-.65-.03-.96-.04-.31-.09-.61-.13-.89-.08-.58-.16-1.12-.23-1.63-.17-1.02-.48-1.9-.67-2.7-.17-.81-.52-1.5-.76-2.17-.28-.66-.46-1.3-.8-1.9-.62-1.21-1.18-2.44-2.11-3.89-.22-.37-.44-.76-.69-1.17-.27-.4-.56-.81-.87-1.26-.3-.45-.63-.92-.97-1.42-.38-.49-.78-1-1.22-1.55-1.73-2.2-3.22-3.73-4.49-4.97-.32-.31-.62-.61-.9-.89-.31-.27-.6-.53-.88-.78-.57-.5-1.11-.97-1.64-1.44-.56-.44-1.12-.89-1.72-1.36-.29-.23-.62-.5-.91-.71-.26-.18-.54-.36-.82-.56-1.19-.74-2.76-1.53-5.15-2.13-2.4-.6-4.39-.71-6.03-.76-1.65-.06-3 .02-4.36.11-.68.08-1.36.15-2.08.24-.72.14-1.49.23-2.33.43-1.69.36-3.7.95-6.28 2-2.57 1.09-4.4 2.12-5.85 3.06-.74.46-1.35.94-1.95 1.36-.57.46-1.11.88-1.65 1.31-.51.45-1.02.91-1.57 1.39-.51.52-1.07 1.03-1.66 1.64a38 38 0 0 0-4.01 4.88c-2.18 3.2-3.36 5.02-4.69 5.9-1.27.9-2.62.85-4.02.44s-2.46-1.01-2.74-2.82c-.22-1.75.32-4.86 3.25-9.16 2-2.87 3.72-4.82 5.19-6.4.73-.79 1.43-1.46 2.07-2.13.67-.63 1.3-1.22 1.93-1.81.66-.56 1.31-1.12 2.02-1.7.73-.54 1.5-1.15 2.4-1.74 1.79-1.2 4.03-2.5 7.2-3.84 3.18-1.31 5.69-2.01 7.81-2.41 1.05-.23 2.03-.33 2.94-.46.92-.1 1.79-.15 2.65-.21 1.74-.06 3.48-.09 5.67.02 2.18.12 4.82.27 8.35 1.12 3.53.88 6.11 2.15 8.11 3.44.49.35.96.68 1.4.99.43.32.73.59 1.08.87.67.56 1.3 1.08 1.93 1.61.6.56 1.21 1.11 1.85 1.7.65.58 1.32 1.22 2.03 1.97 1.45 1.46 3.17 3.25 5.23 5.86.52.65 1 1.27 1.45 1.85.43.6.83 1.17 1.21 1.71.38.53.74 1.04 1.09 1.51l.9 1.41c.56.91 1.14 1.68 1.58 2.48.45.8.88 1.55 1.31 2.31.46.74.78 1.56 1.17 2.41.19.43.38.87.58 1.34.21.46.39.95.54 1.49.31 1.07.71 2.24.98 3.61.11.7.22 1.43.35 2.22.12.79.25 1.62.24 2.53.05 1.81.11 3.4-.1 4.8-.18 1.4-.23 2.65-.55 3.73-.26 1.09-.52 2.06-.77 2.98-.25.91-.64 1.71-.95 2.54-.34.81-.64 1.64-1.03 2.48-.42.82-.86 1.68-1.36 2.65-.24.48-.5.98-.77 1.52-.31.51-.65 1.05-1 1.63-.72 1.14-1.42 2.47-2.52 3.84-.52.7-1.01 1.35-1.48 1.96-.44.63-1 1.11-1.45 1.62-.47.5-.92.96-1.34 1.4-.21.22-.42.43-.62.64-.22.19-.44.37-.65.55-.85.7-1.61 1.33-2.34 1.93-.71.61-1.5 1.02-2.23 1.52-.75.46-1.46.99-2.3 1.41-.83.41-1.72.85-2.7 1.34-.25.12-.5.25-.76.36-.27.1-.54.2-.83.31-.57.21-1.17.43-1.81.67-1.26.53-2.74.83-4.41 1.28-.84.24-1.63.36-2.38.48s-1.45.23-2.11.34c-1.32.21-2.49.22-3.55.32-.53.04-1.03.07-1.52.1h-1.39c-.9 0-1.74-.01-2.58-.02-3.33-.25-6.73-.35-13.14-1.99l-4.21-1.19c-1.23-.37-2.29-.75-3.28-1.05-.49-.15-.96-.3-1.41-.44-.47-.17-.97-.37-1.43-.55-.94-.34-1.79-.77-2.65-1.2-1.7-.87-3.33-1.93-5.14-3.52-1.8-1.58-3.73-3.78-5.56-7-1.78-3.23-2.68-5.76-3.35-7.85-.64-2.1-1.08-3.78-1.41-5.46-.35-1.68-.62-3.36-.86-5.46-.23-2.1-.4-4.61-.37-7.94.08-4.92 1.16-7.17 2.36-8.11 1.24-.95 2.68-.59 4.12-.36 1.44.24 2.88.31 3.83 1.34.98 1.04 1.4 3.05 1.34 7.25z",fill:"currentColor"}),t.jsx("path",{d:"M215.39 179.75c-3.47.58-6.25.3-8.47-.16-2.22-.56-3.93-1.27-5.48-2.15-.75-.48-1.57-.88-2.29-1.47-.37-.28-.74-.57-1.13-.88-.39-.3-.81-.63-1.13-.93-.69-.62-1.45-1.27-2.33-2.11-.22-.21-.44-.42-.68-.63-.23-.24-.47-.49-.72-.74-.25-.26-.5-.53-.77-.8-.26-.31-.54-.63-.82-.96-1.11-1.36-2.08-2.83-2.66-4.43-.6-1.55-.85-3.04-.91-4.17-.14-2.3.02-3.6.05-4.89.03-.64.03-1.24.03-1.89 0-.32-.02-.64-.03-.98 0-.17-.01-.34-.02-.52v-.87c-.05-2.44.44-5.29 1.95-8.4 1.52-3.11 3.12-5.04 4.5-6.58 1.38-1.56 2.64-2.66 3.96-3.71.65-.54 1.39-.98 2.14-1.49.78-.48 1.66-.92 2.64-1.39 2.02-.84 4.66-1.74 8.48-1.66l1.37.06c.36.04.7.09 1.03.13.67.09 1.3.15 1.89.24 1.19.23 2.23.35 3.19.6 1.91.41 3.45.86 4.99 1.39.77.3 1.54.56 2.35.93.81.41 1.67.76 2.6 1.33.46.29.95.59 1.46.91s1.03.77 1.58 1.19c.27.22.56.45.85.69.27.27.56.55.85.84s.58.6.89.91c.3.32.57.71.86 1.08.28.38.56.75.83 1.11.26.37.45.77.67 1.14.4.75.81 1.44 1.04 2.16q.39 1.065.69 2.01c.14.64.25 1.25.35 1.83.35 2.31.24 4.14-.02 5.84-.06.43-.1.87-.2 1.28s-.2.83-.31 1.26c-.21.86-.41 1.78-.71 2.68-.58 1.85-1.29 4.1-2.72 7-2.16 4.25-4.41 6.63-6.56 8.49l-.21.17-.04.03-.05.06-.1.1c-.07.07-.13.12-.2.18l-.1.08s-.04.02-.04.05l.05.07q.09.135.18.3c.05.05.11.15.17.28.36.82.82 1.86 1.35 3.06l8.82 19.92c4.36 9.99 3.91 10.19 8.29 20.17s4.84 9.78 9.24 19.73c1.63 3.67 2.05 5.96 1.73 7.46-.16.75-.51 1.31-.98 1.75-.11.13-.26.19-.39.29l-.3.21-.24.16.16-.1h-.02l-.03-.03c-.36-.22-.76-.09-.83.1-.09.18-.05.37-.02.55s.07.36-.03.52c-.07.17-.47.28-.85.03l-.06-.04h-.03l-.06.03-.12.04c-.08.02-.16.04-.24.05-.16.03-.35.01-.5.03-.65.02-1.28-.14-1.94-.56-1.31-.85-2.68-2.75-4.33-6.45-4.42-9.97-5.32-9.57-9.7-19.55-4.37-9.98-3.34-10.43-7.7-20.42-4.35-9.99-4.17-10.07-8.52-20.05-.49-1.12-.93-2.11-1.35-2.99-.72-1.55-1.35-2.91-1.92-4.14-.56-1.15-.63-2.16-.64-2.98.01-.39.03-.8.18-1.12.12-.32.28-.63.48-.96.38-.65.96-1.34 1.79-1.9.41-.28.87-.53 1.31-.81.43-.28.85-.58 1.25-.92l.15-.13.05-.05.1-.11.21-.23.42-.48c.29-.34.58-.71.89-1.13.62-.84 1.31-1.88 2.04-3.33.93-1.88 1.47-3.49 1.9-4.85.1-.34.21-.68.29-.98q.105-.435.21-.84c.14-.54.31-1.06.35-1.54.19-1 .27-1.98.13-3.13-.04-.28-.09-.58-.14-.9-.08-.3-.21-.6-.31-.94-.08-.35-.29-.66-.47-1.01-.1-.17-.18-.36-.29-.54-.13-.17-.27-.35-.41-.53s-.26-.37-.4-.54l-.46-.46c-.15-.15-.29-.3-.42-.44-.15-.14-.32-.25-.47-.38-.31-.24-.57-.49-.87-.69-.31-.2-.6-.38-.87-.56-1.13-.69-2.15-1.16-3.2-1.58a26 26 0 0 0-3.62-1.13c-.71-.21-1.54-.31-2.46-.51-.46-.09-.97-.13-1.51-.21-.27-.03-.54-.07-.83-.11-.27-.03-.45 0-.68-.02-1.81-.05-3.27.37-4.44.83-.58.26-1.11.51-1.6.77-.47.31-.94.54-1.36.86-.86.63-1.71 1.29-2.62 2.27-.93.94-1.97 2.22-2.85 4-.88 1.79-.97 3.14-.87 4.06 0 .12.01.23.02.35.02.22.05.44.07.65.05.44.09.86.14 1.26.07.8.14 1.57.18 2.3.1 1.44.13 2.9.3 3.94.07.56.19.85.34 1.22.12.34.46.83 1.01 1.53.15.18.3.36.45.52.15.17.35.35.51.52l.49.49.53.47c.65.61 1.34 1.14 1.93 1.62.14.11.31.26.43.33.12.08.24.15.35.23.23.15.44.3.65.44.41.31.85.43 1.24.66 1.66.68 3.28 1.35 7.09.83 2.81-.53 4.39-.63 5.5.07.55.34 1.01.81 1.39 1.38.4.56.79 1.18 1.17 1.8.39.62.82 1.2 1.08 1.84.24.65.37 1.31.13 2.05-.23.73-.8 1.53-1.93 2.32-1.14.77-2.84 1.59-5.39 2.03zM65.43 197.67c-4.89 1.42-8.88.97-11.88.16-3.03-.84-5.26-2.06-7.26-3.54-1.99-1.49-3.8-3.25-5.53-5.89-.84-1.33-1.66-2.88-2.29-4.78-.31-.95-.57-1.98-.75-3.11-.06-.56-.17-1.14-.19-1.74-.03-.57-.06-1.32-.05-1.69 0-1.79-.06-3.61.1-5.46.16-1.84.54-3.66 1.18-5.23.63-1.56 1.41-2.88 2.23-3.94.81-1.09 1.65-1.96 2.49-2.77 1.7-1.62 3.46-2.84 5.66-4.26.55-.34 1.13-.69 1.75-1.07.69-.36 1.42-.75 2.2-1.16.78-.4 1.7-.72 2.64-1.11.96-.35 2.04-.63 3.19-.91 4.71-.95 8.61-.33 11.55.72 2.96 1.08 5.09 2.51 6.97 4.14 1.86 1.66 3.43 3.62 4.84 6.33.35.68.7 1.4.98 2.19.15.4.3.8.45 1.22.15.43.28.92.4 1.41.48 1.98.69 4.3.42 6.81-.28 2.51-.89 4.55-1.53 6.26-.33.86-.66 1.63-1 2.35-.17.35-.34.7-.51 1.03-.09.16-.17.33-.25.49l-.1.19c-.02.12-.04.18.02.2.11 0 .17 0 .21-.02 1.03.5 2.17 1.05 3.46 1.68 1.32.65 2.81 1.39 4.5 2.23 13.54 6.74 13 7.83 26.54 14.57 13.53 6.74 13.7 6.4 27.24 13.14q13.569 6.69 27.15 13.37c13.55 6.75 13.34 7.18 26.89 13.94 13.55 6.75 13.78 6.3 27.33 13.05 10.01 4.98 10.35 7.68 9.05 10.28-1.3 2.61-3.47 3.6-13.48-1.38-13.53-6.74-13.98-5.85-27.51-12.59-13.54-6.74-13.04-7.75-26.57-14.49-13.54-6.74-13.45-6.92-26.99-13.66s-14.08-5.65-27.62-12.39-13.13-7.56-26.67-14.31l-8.04-4.02c-1.9-.95-3.62-1.81-5.23-2.62l-.56-.33c-.15-.11-.22-.25-.33-.37-.2-.25-.41-.49-.61-.74-.4-.49-.8-.97-1.19-1.45-.09-.12-.21-.23-.29-.37-.05-.17-.05-.29-.06-.43q-.03-.39 0-.81c.04-.57.16-1.22.42-1.95s.76-1.53 1.35-2.35c.58-.82 1.16-1.66 1.7-2.58.12-.21.24-.42.37-.64l.19-.34c.12-.23.24-.47.37-.71q.36-.735.69-1.56c.43-1.1.8-2.33.95-3.69s.05-2.49-.17-3.46c-.05-.24-.12-.48-.19-.71q-.135-.375-.27-.72c-.08-.24-.17-.46-.25-.69-.1-.21-.2-.41-.3-.61-.79-1.58-1.61-2.73-2.6-3.64-.98-.9-2.06-1.68-3.55-2.27-1.49-.56-3.41-.93-6.14-.42-.68.16-1.32.35-1.93.55-.6.27-1.17.47-1.69.74-.52.29-1.01.57-1.47.83-.48.3-.96.64-1.4.93-1.72 1.22-2.99 2.28-3.92 3.35-.95 1.08-1.63 2.1-2.01 3.26-.19.59-.32 1.28-.39 2.33-.08 1.05-.04 2.52-.02 4.52 0 .59.03.76.03 1.04 0 .27.07.52.08.77.08.49.2.95.34 1.37.29.84.69 1.55 1.11 2.17.86 1.23 1.82 2.07 2.87 2.75s2.22 1.23 3.74 1.59c1.51.35 3.41.52 5.8-.17 1.75-.54 3.04-1.16 4.13-1.55.55-.19 1.03-.35 1.47-.45.45-.08.86-.12 1.22-.11 1.5.05 2.52 1.12 3.58 2.12s2.3 1.8 2.05 3.58c-.06.45-.22.96-.55 1.52-.31.58-.77 1.22-1.45 1.91-1.34 1.36-3.54 3.05-7.13 4.15zm325.56 62.06c.39.32.75.62 1.08.92.32.31.71.5 1.03.75.62.5 1.29.8 1.85 1.15 1.17.62 2.18 1.08 3.24 1.44.51.22 1.07.35 1.66.5.3.07.6.16.92.23.33.05.67.09 1.03.15 1.43.22 3.23.26 5.57-.05 2.35-.31 4.03-.87 5.38-1.35 1.38-.53 2.26-.96 3.13-1.51.86-.56 1.7-1.19 2.58-2.18.22-.25.45-.51.7-.79.21-.31.44-.64.68-.98.26-.33.45-.75.68-1.18q.18-.315.36-.66.15-.36.3-.75c.84-2.07 1.14-3.8 1.2-5.23q.03-.54.06-1.02c-.02-.33-.04-.64-.05-.95-.02-.3-.03-.6-.05-.89-.04-.29-.09-.58-.13-.86-.09-.57-.15-1.14-.32-1.73-.15-.59-.25-1.23-.48-1.9-.1-.34-.2-.7-.31-1.08-.12-.38-.29-.76-.44-1.18-.26-.83-.75-1.76-1.18-2.72-.85-1.58-1.85-2.54-2.81-3.25-.97-.7-1.88-1.14-2.83-1.54-.97-.38-1.99-.68-3.33-.96-1.34-.27-3.02-.5-5.31-.48s-4 .28-5.41.49c-1.41.22-2.51.47-3.6.76s-2.12.69-3.26 1.36c-1.11.67-2.35 1.66-3.18 3.21-.11.15-.24.51-.36.75-.12.26-.24.52-.35.77-.24.49-.41.97-.58 1.42-.36.9-.58 1.71-.79 2.45-.22.73-.32 1.42-.47 2.05-.11.64-.19 1.24-.27 1.84-.11 1.21-.22 2.42-.19 3.91 0 .38.02.77.03 1.18.01.25 0 .31.05.81.04.41.08.83.12 1.27.28 1.91.84 4.46 1.35 7.05l.14.66c-7.67 1.7-11.57 2.57-15.5 3.44-2.74.62-5.5 1.25-10.96 2.41-11.1 2.36-11.2 1.89-22.3 4.23-11.12 2.31-11 2.82-22.18 5.06-2.07.41-3.74.57-5.06.56-1.36-.02-2.37-.23-3.12-.57-1.86-.7-2.15-1.99-2.17-3.43-.02-1.45.24-2.7 1.05-3.64.57-.52 1.39-.99 2.57-1.42 1.21-.46 2.77-.86 4.81-1.26 11.05-2.21 10.85-3.2 21.91-5.5 11.07-2.33 11.3-1.23 22.37-3.59 5.46-1.17 8.24-1.71 11-2.26 1.38-.28 2.75-.55 4.46-.89.42-.08.87-.17 1.39-.28.24-.06.6-.08.83-.21 0 0 0-.03-.02-.07-.08-.36-.13-.61-.19-.95-.02-.13-.04-.26-.05-.39 0-.08-.02-.08-.03-.23 0-.14-.02-.29-.03-.43-.03-.56-.09-1.09-.09-1.6-.1-2.02-.06-3.65 0-5.28.06-.81.13-1.63.23-2.49.15-.85.26-1.78.51-2.77s.52-2.09.97-3.29c.21-.6.43-1.25.74-1.9.15-.33.3-.67.46-1.02.08-.17.16-.35.24-.53s.16-.35.3-.6c1.99-3.67 4.33-5.52 6.19-6.81 1.91-1.27 3.53-2 5.15-2.58a37 37 0 0 1 5.28-1.45c2.03-.39 4.46-.8 7.74-.85 3.27-.04 5.74.32 7.78.78 2.04.48 3.65 1.02 5.23 1.73 1.57.73 3.12 1.56 4.91 2.92 1.76 1.37 3.81 3.35 5.58 6.62.44.8.69 1.48 1 2.15.31.66.55 1.31.75 1.92.21.61.41 1.18.59 1.73.14.56.28 1.08.4 1.59.28 1 .41 1.92.55 2.79.17.87.22 1.7.28 2.53l.09 1.25v1.3c0 .44-.01.9-.02 1.38-.03.48-.09.97-.14 1.49-.2 2.08-.67 4.6-1.95 7.78-1.34 3.16-2.77 5.42-4.21 7.12a24.5 24.5 0 0 1-4.17 4.12c-1.43 1.12-3.09 2.11-5 2.95-1.96.83-4.38 1.7-7.71 2.16-3.33.45-5.86.46-7.97.28-.53-.04-1.03-.08-1.51-.12-.48-.05-.95-.14-1.4-.21-.9-.15-1.75-.26-2.59-.5-1.69-.39-3.37-.93-5.4-1.84-1-.51-2.13-1-3.29-1.82-.58-.41-1.24-.77-1.85-1.3-.62-.52-1.27-1.08-1.97-1.68-.93-.98-1.71-1.88-2.28-2.71-.52-.87-.91-1.65-1.18-2.32-.5-1.37-.43-2.41-.21-3.12.49-1.45 1.93-1.88 3.25-2.48 1.32-.61 2.61-1.25 3.94-1.06 1.36.17 2.45 1.23 4.54 3.29zM213.35 388.51c1.95 2.58 3.1 4.84 3.86 6.83.41.97.65 1.94.91 2.81.18.92.4 1.76.5 2.64.08.89.23 1.75.2 2.71 0 .47 0 .96.01 1.46-.03.51-.08 1.05-.13 1.61-.25 2.22-.77 5.04-2.58 8.27-1.84 3.21-3.91 4.99-5.59 6.31-.87.62-1.66 1.19-2.43 1.6l-1.13.64c-.37.19-.74.35-1.11.52-.74.35-1.48.67-2.28.95q-.6.225-1.23.45c-.43.14-.87.26-1.34.4-.47.13-.96.29-1.48.42-.52.12-1.07.25-1.66.38-.59.15-1.2.27-1.86.37-.67.1-1.33.25-2.14.34-.83.07-1.61.14-2.34.2-.73.09-1.44 0-2.09 0-.66-.03-1.28 0-1.86-.08-.59-.08-1.14-.15-1.67-.22-1.06-.1-2-.38-2.89-.59-.44-.12-.88-.21-1.3-.35-.41-.16-.82-.31-1.23-.46-.82-.31-1.64-.61-2.45-1.09-.81-.46-1.72-.89-2.58-1.6-.44-.34-.9-.7-1.39-1.07-.49-.38-.91-.88-1.41-1.37-1.02-.96-1.9-2.24-2.92-3.69-.84-1.54-1.62-2.89-2.05-4.17-.24-.63-.48-1.23-.68-1.8-.15-.58-.29-1.12-.43-1.64-.13-.52-.26-1.02-.38-1.49-.08-.48-.14-.94-.2-1.38-.11-.89-.28-1.74-.3-2.57-.04-1.66-.13-3.35.14-5.37.05-.51.11-1.04.17-1.61q.165-.825.36-1.74c.14-.61.28-1.26.43-1.96.19-.72.49-1.57.78-2.42 1.38-3.5 3.45-5.91 5.37-7.44 1.95-1.53 3.74-2.36 5.48-2.91s3.48-.89 5.55-1.11c2.07-.21 4.48-.27 7.55-.07 3.59.27 6 .76 8.07 1.18.26.06.51.11.76.17.23.05.56.13.53.11l.25.03c.14.02.28.03.42.05.08-.13.14-.35.23-.55.02-.05.05-.1.07-.16.2-.34.4-.7.62-1.08.46-.79.98-1.66 1.55-2.64q5.52-9.45 11.04-18.89c5.58-9.42 6-9.17 11.58-18.59s5.15-9.68 10.72-19.1c4.12-6.96 6.62-6.74 9.12-5.25 2.51 1.49 3.55 3.37-.57 10.32-5.57 9.4-4.71 9.91-10.28 19.31-5.57 9.41-6.54 8.83-12.11 18.24s-5.74 9.31-11.32 18.71c-.55.92-1.03 1.76-1.46 2.53-.56 1.01-1.07 1.92-1.53 2.76-1.27 2.28-2.31 4.3-3.31 6.13-1.54-.46-2.99-.89-4.47-1.34-1.41-.4-3.49-.86-3.98-.89-1.71-.24-3.77-.57-6.59-.79-4.62-.27-6.56.11-8.37.52-.9.24-1.7.58-2.56 1.19-.84.63-1.73 1.55-2.46 3.33-.16.47-.31.89-.44 1.34-.11.5-.22.98-.32 1.42-.1.45-.2.86-.29 1.26-.05.4-.09.77-.13 1.12-.06.71-.22 1.36-.2 1.95 0 .59-.02 1.15-.02 1.71-.03.56.1 1.09.14 1.68l.09.9c.07.3.15.61.22.93.07.33.15.67.24 1.03.1.36.27.7.4 1.09.23.8.71 1.57 1.19 2.49.61.82 1.07 1.61 1.67 2.14.28.28.51.58.78.81.28.22.54.43.79.62.47.44.99.68 1.45.97.24.13.44.29.68.4.24.1.47.2.71.3.23.1.47.21.7.31.23.11.5.15.76.23.53.13 1.06.36 1.72.42.64.1 1.34.25 2.16.23.41 0 .84.08 1.31.02.47-.04.96-.08 1.49-.12 2.35-.34 4.17-.79 5.5-1.32.34-.13.66-.25.98-.37.29-.14.57-.28.84-.41s.53-.26.79-.39c.24-.15.47-.29.71-.43.23-.14.47-.28.7-.42q.315-.24.66-.48c.47-.3.89-.69 1.36-1.08.9-.82 1.91-1.79 2.73-3.24s1.02-2.71 1.09-3.8c0-.28.02-.54.03-.79-.02-.26-.05-.51-.07-.76 0-.49-.16-.95-.22-1.41-.08-.46-.27-.92-.38-1.42-.21-.49-.35-1.02-.64-1.6-.51-1.16-1.26-2.57-2.61-4.36-2.01-2.61-2.77-4.15-2.58-5.49.17-1.31 1.17-2.38 2.06-3.54.88-1.15 1.69-2.38 3.19-2.51.75-.07 1.65.14 2.77.81 1.11.67 2.43 1.82 3.87 3.73zm111.27-21.2c-.67 4.48-.77 6.65-.82 8.79-.03 1.03.05 2.26.2 3.58.19 1.31.5 2.84 1.28 4.41.78 1.55 1.61 2.39 2.43 3.07.38.36.83.61 1.2.9.44.23.82.49 1.25.71.46.2.89.42 1.39.62.53.17 1.06.39 1.7.58.67.15 1.36.39 2.23.54.87.16 1.85.35 2.88.42 1.06.16 1.94.05 2.75.07.78-.1 1.46-.17 2.06-.31.58-.18 1.12-.28 1.59-.48.46-.21.91-.37 1.33-.59.41-.25.82-.45 1.25-.72.41-.31.86-.55 1.33-.93.95-.71 2.06-1.65 3.48-3.15 1.41-1.52 2.36-2.91 3.11-4.1.38-.59.71-1.14 1.01-1.69.31-.53.58-1.05.86-1.57.13-.26.27-.51.4-.77.09-.2.17-.41.26-.62.22-.42.33-.86.49-1.34.25-.96.51-2.07.34-3.49-.18-1.42-.56-2.53-1.03-3.51-.18-.5-.44-.94-.68-1.38-.2-.45-.48-.85-.76-1.26-1.12-1.63-2.46-3.39-6.41-5.68-.96-.6-1.92-.99-2.71-1.41-.42-.22-.77-.35-1.1-.46-.33-.12-.64-.23-.94-.34-.3-.1-.57-.24-.85-.29s-.54-.1-.8-.15c-.52-.08-.99-.25-1.48-.25-.49-.02-.98-.05-1.49-.09-.52-.03-1.07.05-1.68.06-1.22.07-2.69.3-4.65.89-2.61.85-4.3 1.81-5.71 2.71-.09.05-.18.11-.26.17l-.36.25c-.35.23-.7.47-1.06.75-.72.5-1.4 1.2-2.11 1.81-1.41 1.26-2.93 2.76-4.58 4.33-.3-.31-.67-.86-1.14-1.5-.46-.64-1.01-1.39-1.63-2.25-1.19-1.66-2.69-3.74-4.48-6.23-5.95-8.28-5.55-8.57-11.5-16.85s-6.36-7.99-12.3-16.27c-4.39-6.12-3.15-8.26-.78-9.96s4.47-1.96 8.86 4.15c5.94 8.27 6.75 7.69 12.68 15.96 5.94 8.27 5.03 8.93 10.97 17.2.17.24.32.45.46.65.09.13.16.24.23.34.07.11.13.2.18.28s.09.19.14.11c.18-.15.35-.27.53-.38.09-.05.18-.11.27-.17l.17-.1c.19-.12.38-.24.58-.37 1.93-1.14 4.18-2.43 7.95-3.66.7-.26 1.39-.4 2.03-.57.65-.15 1.24-.35 1.83-.42.59-.1 1.14-.19 1.67-.28.26-.05.52-.09.77-.13l.74-.06c.97-.06 1.84-.18 2.67-.2.84.01 1.63.02 2.42.04.4 0 .8.03 1.19.1l1.22.18c.84.13 1.74.26 2.66.6.47.16.96.32 1.49.5.52.18 1.09.38 1.56.61 1 .49 2.13.94 3.36 1.7.62.37 1.2.71 1.75 1.03.54.35 1.03.71 1.5 1.04.94.63 1.73 1.31 2.44 1.93.72.59 1.31 1.22 1.87 1.82.28.3.54.59.81.87.25.31.49.62.73.93.48.62.97 1.22 1.41 1.96.46.72.96 1.45 1.41 2.39.96 1.77 2 4.15 2.44 7.56.4 3.44-.22 6.01-.82 7.97-.35.97-.66 1.85-1.06 2.6-.19.38-.38.75-.56 1.12-.18.35-.34.6-.52.91-.68 1.16-1.37 2.33-2.35 3.78-.96 1.44-2.18 3.19-4.16 5.35-2.01 2.15-3.8 3.62-5.43 4.69-.78.56-1.59.95-2.31 1.38-.73.4-1.47.69-2.19 1.02-1.47.58-2.99 1.06-4.92 1.41-.96.19-2.02.25-3.23.37-1.18-.02-2.54.08-4.01-.12-.73-.08-1.46-.12-2.08-.22s-1.2-.19-1.75-.28c-1.1-.15-2.09-.42-2.99-.58-.9-.2-1.73-.45-2.51-.64-.78-.22-1.53-.51-2.28-.76-.75-.28-1.5-.65-2.29-1.02-.78-.45-1.62-.91-2.49-1.57-1.74-1.26-3.78-3.28-5.36-6.38-1.53-3.1-2.01-5.41-2.42-7.24-.16-.9-.33-1.73-.43-2.47-.06-.38-.11-.74-.16-1.1l-.12-1.12c-.27-2.97-.42-5.95.42-11.56.69-4.13 2.02-5.83 3.32-6.41 1.33-.58 2.7-.01 4.08.46s2.78.8 3.61 1.8c.85 1.01 1.05 2.69.5 5.99z",fill:"currentColor"})]}),ZUe=e.memo(function({illustration:e,title:s,body:n,onClick:a,emphasized:i=!1}){return t.jsxs("button",{type:"button",onClick:a,className:dt("flex flex-1 flex-col items-start overflow-hidden rounded-xl border text-left transition-colors","hover:border-border-200 hover:bg-bg-100","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent-100",i?"border-accent-200 bg-bg-000 ring-1 ring-accent-200":"border-border-300 bg-bg-000"),children:[t.jsx("div",{className:"pb-4 pl-6 pt-6","aria-hidden":"true",children:e}),t.jsxs("div",{className:"flex flex-col gap-2 px-6 pb-6",children:[t.jsx("div",{className:"text-base font-medium text-text-000",children:s}),t.jsx("div",{className:"text-sm text-text-400",children:n})]})]})}),BUe=e.memo(function({orgName:e,planName:s,isSourcePaid:n,onChooseBringEverything:a,onChooseStartFresh:i,onChooseKeepSeparate:r,isVoluntary:o=!1,isSettingsEntry:l=!1,willForceKeepPersonal:c=!1,onBack:d}){return t.jsxs("div",{className:"flex flex-col gap-5",children:[t.jsx("p",{className:"text-text-300",children:t.jsx(hs,{id:l?c?"1y3ivit":"1txfm9o":o?"1tktaef":n?"cek06":"xfjhhh",dangerouslyVisiblePublicValues:{orgName:e,planName:s}})}),t.jsxs("div",{className:"flex flex-col gap-4 sm:flex-row",children:[r&&t.jsx(ZUe,{emphasized:!0,illustration:t.jsx(FUe,{size:"small",highlightFill:"default"}),title:t.jsx(hs,{id:"143lxc4"}),body:t.jsx(hs,{id:"lwn0qe",dangerouslyVisiblePublicValues:{orgName:e}}),onClick:r}),a&&t.jsx(ZUe,{illustration:t.jsx(zUe,{size:"small",highlightFill:"default"}),title:t.jsx(hs,{id:"1d5vakl"}),body:t.jsx(hs,{id:"1i9zlsl",dangerouslyVisiblePublicValues:{orgName:e}}),onClick:a}),i&&t.jsx(ZUe,{illustration:t.jsx(VUe,{size:"small",highlightFill:"default"}),title:t.jsx(hs,{id:"1ul6b4x"}),body:t.jsx(hs,{id:"1yvmxvd",dangerouslyVisiblePublicValues:{orgName:e}}),onClick:i})]}),t.jsxs("p",{className:"text-center text-sm text-text-400",children:[t.jsx(hs,{id:"1bhfgzg"}),d&&t.jsxs(t.Fragment,{children:[t.jsx("br",{}),t.jsx(hs,{id:"hsiqbc",dangerouslyVisiblePublicValues:{link:e=>t.jsx(ds,{onClick:d,children:e})}})]})]})]})});function qUe({icon:e,children:s}){return t.jsxs("li",{className:"flex items-center gap-2 text-xs text-text-200",children:[t.jsx("span",{className:"text-text-400","aria-hidden":"true",children:e}),s]})}const WUe=1001,$Ue=e.memo(function({orgName:e,planName:s,isSourcePaid:n,inviterEmail:a,counts:i,acknowledged:r,onAcknowledgedChange:o,onCancel:l,onConfirm:c,isSubmitting:d,willForceKeepPersonal:u=!1,showDisclosureBanner:m=!1}){return t.jsxs("div",{className:"flex flex-col gap-5",children:[m&&t.jsx("div",{className:"rounded-lg border border-danger-100 bg-danger-900 p-4",role:"alert",children:t.jsx("p",{className:"font-base-bold text-danger-000",children:t.jsx(hs,{id:"qbcx2x",dangerouslyVisiblePublicValues:{orgName:e}})})}),t.jsx("p",{className:"text-text-300",children:t.jsx(hs,{id:u?"1m051jv":n?"11uyc0w":"13qdfxn",dangerouslyVisiblePublicValues:{orgName:e,planName:s}})}),t.jsxs("div",{className:"grid grid-cols-1 divide-y divide-border-300 overflow-hidden rounded-xl border border-border-300 sm:grid-cols-2 sm:divide-x sm:divide-y-0",children:[t.jsxs("div",{className:"flex flex-col gap-2 p-[18px]",children:[t.jsx("h3",{className:"font-base-bold text-text-000",children:t.jsx(hs,{id:"1liukp"})}),t.jsxs("ul",{role:"list",className:"flex flex-col gap-2",children:[t.jsx(qUe,{icon:t.jsx(AA,{size:20}),children:i.conversations>=WUe?t.jsx(hs,{id:"1epygmg",dangerouslyVisiblePublicValues:{count:1e3}}):t.jsx(hs,{id:"1vy68z8",dangerouslyVisiblePublicValues:{count:i.conversations}})}),t.jsx(qUe,{icon:t.jsx(is,{size:20}),children:i.projects>=WUe?t.jsx(hs,{id:"1cymzvj",dangerouslyVisiblePublicValues:{count:1e3}}):t.jsx(hs,{id:"1s8fbrx",dangerouslyVisiblePublicValues:{count:i.projects}})}),t.jsx(qUe,{icon:t.jsx(ah,{size:20}),children:t.jsx(hs,{id:"1yf4vv1"})})]})]}),t.jsxs("div",{className:"flex flex-col gap-2 p-[18px]",children:[t.jsx("h3",{className:"font-base-bold text-text-000",children:t.jsx(hs,{id:"1ibh"})}),t.jsxs("ul",{role:"list",className:"flex flex-col gap-2",children:[t.jsx(qUe,{icon:t.jsx(tU,{size:20}),children:t.jsx(hs,{id:"6498wi"})}),t.jsx(qUe,{icon:t.jsx(aU,{size:20}),children:t.jsx(hs,{id:"z4kzl6"})}),t.jsx(qUe,{icon:t.jsx($S,{size:20}),children:t.jsx(hs,{id:"bk3wmj"})}),t.jsx(qUe,{icon:t.jsx(_x,{size:20}),children:t.jsx(hs,{id:"103hdi"})}),t.jsx(qUe,{icon:t.jsx(Xg,{size:20}),children:t.jsx(hs,{id:"15ud61a"})})]})]})]}),t.jsx($t,{checked:r,onChange:o,label:t.jsx(hs,{id:u?"ol6liw":a?"ta8yhe":"lnv22t",dangerouslyVisiblePublicValues:{inviterEmail:a,b:e=>t.jsx("strong",{children:e})}}),align:"start",labelTextClassName:"text-sm !leading-snug"}),t.jsxs(Eu,{children:[t.jsx(nk,{variant:"secondary",onClick:l,disabled:d,children:t.jsx(hs,{id:"1e6oqlf"})}),t.jsx(nk,{variant:"primary",onClick:c,disabled:!r||d,loading:d,children:t.jsx(hs,{id:"os38lt"})})]})]})}),GUe=e.memo(function({dataAction:e,onDataActionChange:s,onCancel:n,onNext:a,complianceBlocked:i=!1,isVoluntary:r=!1,orgName:o}){return t.jsxs("div",{className:"flex flex-col gap-5",children:[i&&t.jsxs("div",{className:"flex items-start gap-3 rounded-lg border border-border-300 bg-bg-100 p-4 text-sm text-text-200",children:[t.jsx(Ft,{size:20,className:"mt-px shrink-0 text-text-300"}),t.jsx("p",{children:t.jsx(hs,{id:r?"5cn2fm":"6c37ht",dangerouslyVisiblePublicValues:{orgName:o??""}})})]}),t.jsxs(IA,{value:e,onValueChange:e=>s(e),className:"[&_button]:mt-1",children:[t.jsx(TA,{value:"download",label:t.jsx(hs,{id:"suz7dy"}),subtitle:t.jsx(hs,{id:"1ro3xte"})}),t.jsx(TA,{value:"delete",label:t.jsx(hs,{id:"12ax8i1"}),subtitle:t.jsx(hs,{id:"1jh3ro5"})})]}),t.jsxs(Eu,{children:[t.jsx(nk,{variant:"secondary",onClick:n,children:t.jsx(hs,{id:"1lixyyo"})}),t.jsx(nk,{variant:"primary",onClick:a,children:t.jsx(hs,{id:"1i9hu2h"})})]})]})}),KUe=e.memo(function({planName:e,isSourcePaid:s,dataAction:n,acknowledged:a,onAcknowledgedChange:i,onBack:r,onConfirm:o,isSubmitting:l}){return t.jsxs("div",{className:"flex flex-col gap-5",children:[t.jsx("div",{className:"rounded-lg border border-danger-100 bg-danger-900 p-4",role:"alert",children:t.jsx("p",{className:"font-base-bold text-danger-000",children:t.jsx(hs,{id:"xnm5g6"})})}),t.jsxs("div",{className:"flex gap-3 rounded-lg border border-border-300 bg-bg-100 p-4",children:[t.jsx(Ft,{size:20,className:"mt-0.5 shrink-0 text-text-300"}),t.jsx("p",{className:"text-sm text-text-200",children:"download"===n?t.jsx(hs,{id:s?"dw5uog":"1qpmyt7",dangerouslyVisiblePublicValues:{planName:e}}):t.jsx(hs,{id:s?"oe8iib":"2sin3s",dangerouslyVisiblePublicValues:{planName:e}})})]}),t.jsx($t,{checked:a,onChange:i,label:t.jsx(hs,{id:"17s6082"}),align:"start",labelTextClassName:"text-sm !leading-snug"}),t.jsxs(Eu,{children:[t.jsx(nk,{variant:"secondary",onClick:r,disabled:l,children:t.jsx(hs,{id:"1ts74od"})}),t.jsx(nk,{variant:"primary",onClick:o,disabled:!a||l,loading:l,children:t.jsx(hs,{id:"wv35pp"})})]})]})}),YUe=["migrate","fresh"];function QUe({orgName:s,timedOut:n=!1}){const a=JS(),i=e.useMemo(()=>pw(a.messages,"1p62391"),[a.messages]);return t.jsxs("div",{className:"flex flex-col items-center justify-center gap-6 py-8",children:[t.jsx(UUe,{name:"ObjectBlocks",size:96}),t.jsx(UA,{asChild:!0,children:t.jsx("h3",{className:"font-xl-bold text-text-100 max-w-md text-center [overflow-wrap:anywhere]",children:t.jsx(hs,{id:"1gfdnoa",dangerouslyVisiblePublicValues:{orgName:s}})})}),t.jsx("p",{role:"status",className:"text-text-300 max-w-md text-center text-sm",children:n&&i?t.jsx(hs,{id:"1p62391"}):t.jsx(hs,{id:"l07a7u"})})]})}function JUe(e,s,n,a){switch(e){case"account_decision":return t.jsx(hs,{id:"1x4pb8t",dangerouslyVisiblePublicValues:{orgName:s}});case"choice":return t.jsx(hs,{id:n?a?"u6ccvv":"dgmu1u":"eify00",dangerouslyVisiblePublicValues:{orgName:s}});case"migrate_everything":return t.jsx(hs,{id:"srlnws",dangerouslyVisiblePublicValues:{orgName:s}});case"start_fresh_data":return t.jsx(hs,{id:"1y99vx6"});case"start_fresh_confirm":return t.jsx(hs,{id:"146p28g"})}}function XUe({isOpen:s,onClose:n,context:a,counts:i,onMigrationStarted:r,onStartFreshConfirmed:o,onKeepSeparate:l,analyticsSurface:c,initialStep:d}){const u=JS(),{addError:m,addSuccess:p}=ut(),f=ae(),g=gL(),h=!a.domainClaimId,C="settings"===c,x=a.availableOptions??YUe,v=a.willForceKeepPersonal??!1,y=a.dataMigrationAllowed??!0,k=d??(h?"account_decision":y?"choice":"start_fresh_data"),w=e.useMemo(()=>pw(u.messages,"1txfm9o"),[u.messages]),[M,_]=e.useState(k),[j,S]=e.useState(!1),[L,N]=e.useState("download"),I=function(e,t={}){const s=gL();return b(`/api/organizations/${e}/account_migrations`,"POST",{...t,meta:{noToast:!0,...t.meta},onSuccess(e,n,a){"migration_uuid"in e&&s.setQueryData([Gk,e.migration_uuid],{migration_uuid:e.migration_uuid,status:e.status,progress:{},created_at:(new Date).toISOString(),completed_at:null}),t.onSuccess?.(e,n,a)}})}(a.targetOrganizationUuid),{mutate:T}=I,A=function(e={}){const t=gL();return b("/api/account/domain_claim_decision","POST",{...e,meta:{noToast:!0,...e.meta},onSuccess(s,n,a){t.setQueryData([Kk,n.origin_organization_uuid],null),e.onSuccess?.(s,n,a)}})}(),{mutate:E}=A,[R,D]=e.useState(!1),H=I.isPending||A.isPending||R,P=jUe(),U=e.useRef(P);e.useEffect(()=>{U.current=P},[P]);const O=a.targetOrganizationUuid,V=e.useCallback(e=>{D(!0),h&&e&&U.current.switchAndRefreshAfterMembershipChange(O,"/")},[h,O]),[z,Z]=e.useState(null),q=function(e,t={}){return B(`/api/account_migrations/${e}`,{...t,queryKey:[Gk,e],enabled:Boolean(e)&&(t.enabled??!0),refetchInterval:e=>pUe(e.state.data),refetchIntervalInBackground:!0,meta:{noToast:!0,...t.meta}})}(z??void 0),W=q.data,$=e.useRef(!1),G=e.useRef(0),K=e.useRef(0),[Y,Q]=e.useState(!1);e.useEffect(()=>{if(!z)return void($.current||Q(!1));const e=z,t=setTimeout(()=>{$.current||(F(new Error("Migration status poll exceeded its wall-clock bound"),{source:"migration_flow_modal",status:"poll_timeout",migrationUuid:e,entry:h?"voluntary":"domain_capture"}),h&&(Q(!0),G.current=0))},9e4);return()=>clearTimeout(t)},[z,h]),e.useEffect(()=>{if($.current)return;const e=Math.max(q.dataUpdatedAt,q.errorUpdatedAt);e!==K.current&&(K.current=e,q.isError?G.current+=1:q.isSuccess&&(G.current=0));const t=W?.status,s=!Y&&G.current>=5,n=Y&&G.current>=5;"completed"===t?($.current=!0,Z(null),U.current.switchAndRefreshAfterMembershipChange(O,"/")):"failed"===t||"failed_billing_needs_manual"===t||s?($.current=!0,D(!1),Q(!1),Z(null),m(gs({id:"mewrsb",intl:u}),{error:s?q.error:void 0,errorContext:{tags:{source:"migration_flow_modal",status:"failed"===t||"failed_billing_needs_manual"===t?t:"poll_error"}},messageForLogging:"failed"===t||"failed_billing_needs_manual"===t?"Migration workflow ended in a failed status":"Migration status poll failed repeatedly"})):n&&($.current=!0,Z(null),F(q.error??new Error("Migration status poll abandoned after repeated errors"),{source:"migration_flow_modal",status:"post_timeout_poll_abandoned",migrationUuid:z??"unknown"}))},[W?.status,q.isError,q.isSuccess,q.dataUpdatedAt,q.errorUpdatedAt,q.error,O,Y,z,m,u]);const J=e.useRef(s),X=e.useRef(null),ee=e.useRef(0);e.useEffect(()=>{const e=J.current;J.current=s,s&&!e&&(ee.current+=1,_(k),S(!1),N("download"),D(!1),Z(null),Q(!1),$.current=!1,G.current=0,K.current=0)},[s,k]);const te=e.useCallback(()=>{if(!H||Y){if(R&&Y){$.current=!0,null!==X.current&&window.clearTimeout(X.current);const e=ee.current;X.current=window.setTimeout(()=>{X.current=null,ee.current===e&&(Z(null),D(!1)),g.invalidateQueries({queryKey:[dUe]})},150)}n()}},[n,H,R,Y,g]),se=e.useCallback(e=>{S(!1),_(e)},[]),ne=e.useCallback(()=>{"choice"!==d?y?se(h&&v?"account_decision":"choice"):h?se("account_decision"):te():se("choice")},[d,y,h,v,se,te]),ie=e.useCallback(()=>{f.track({event_key:"account_migration.submitted",action:"migrate",entry_point:h?"voluntary":"domain_capture",surface:c}),T({source_organization_uuid:a.sourceOrganizationUuid,domain_claim_id:a.domainClaimId,...h&&{action:"migrate"}},{onSuccess:e=>{"migration_uuid"in e&&"failed"===e.status?m(gs({id:"mewrsb",intl:u}),{errorContext:{tags:{source:"migration_flow_modal"}},messageForLogging:"Migration dispatch returned failed status"}):(V(!1),"migration_uuid"in e&&($.current=!1,G.current=0,K.current=0,Q(!1),Z(e.migration_uuid),r?.(e.migration_uuid)))},onError:e=>{if(e instanceof cs&&"permission_error"===e.type&&e.message.includes("member of the target organization"))return m(gs({id:"1o1pz3x",intl:u,dangerouslyVisiblePublicValues:{orgName:a.targetOrganizationName}}),{error:e,errorContext:{tags:{source:"migration_flow_modal"}},messageForLogging:"Migration blocked: not a member of target org"}),void ne();m(gs({id:"mewrsb",intl:u}),{error:e,errorContext:{tags:{source:"migration_flow_modal"}},messageForLogging:"Migration couldn't be started. You can try again."})}})},[f,c,h,T,a.sourceOrganizationUuid,a.domainClaimId,a.targetOrganizationName,r,V,m,u,ne]),re=e.useCallback(()=>{f.track({event_key:"account_migration.submitted",action:"close_only",entry_point:h?"voluntary":"domain_capture",surface:c}),a.domainClaimId?E({domain_claim_id:a.domainClaimId,origin_organization_uuid:a.sourceOrganizationUuid,data_action:L},{onSuccess:()=>{D(!0),o?.(L)},onError:e=>{if(e instanceof cs&&"origin_org_unpaid_invoice"===e.errorCode)return m(gs({id:"b2uqri",intl:u}),{error:e,errorContext:{tags:{source:"migration_flow_modal"}},messageForLogging:"Start-fresh blocked: origin org has unpaid invoice"}),void se(y?"choice":"start_fresh_data");m(gs({id:"1neata7",intl:u}),{error:e,errorContext:{tags:{source:"migration_flow_modal"}},messageForLogging:"Start-fresh decision couldn't be recorded. You can try again."})}}):T({source_organization_uuid:a.sourceOrganizationUuid,action:"close_only",data_action:L},{onSuccess:e=>{const t="results"in e?e.results[0]:void 0;t&&"completed"!==t.status?m(gs({id:"1neata7",intl:u}),{errorContext:{tags:{source:"migration_flow_modal",status:t.status,blocking_reasons:t.blocking_reasons?.join(",")??""}},messageForLogging:"close_only returned non-completed status"}):(V(!0),o?.(L))},onError:e=>{m(gs({id:"1neata7",intl:u}),{error:e,errorContext:{tags:{source:"migration_flow_modal"}},messageForLogging:"Start-fresh decision couldn't be recorded. You can try again."})}})},[f,c,h,T,a.domainClaimId,a.sourceOrganizationUuid,E,o,V,L,y,se,m,u]),oe=e.useCallback(e=>{f.track({event_key:"account_migration.option_selected",option:e,entry_point:h?"voluntary":"domain_capture",surface:c})},[f,h,c]),le=e.useCallback(()=>{oe("migrate"),se("migrate_everything")},[oe,se]),ce=e.useCallback(()=>{oe("fresh"),se("start_fresh_data")},[oe,se]),de=e.useCallback(()=>{oe("keep"),l?.(),te();const e=gs({id:"ogn099",intl:u});e.trim()&&p(e)},[oe,l,te,p,u]),ue=e.useCallback(()=>{oe("consolidate"),se(v?"migrate_everything":y?"choice":"start_fresh_data")},[oe,se,v,y]),me=e.useCallback(()=>se("account_decision"),[se]),pe=e.useCallback(()=>se("start_fresh_data"),[se]),fe=e.useCallback(()=>se("start_fresh_confirm"),[se]);return w?t.jsx(gt,{isOpen:s,onClose:te,modalSize:"2lg",hasCloseButton:!H||Y,title:H?void 0:JUe(M,a.targetOrganizationName,C,v),children:H?t.jsx(QUe,{orgName:a.targetOrganizationName,timedOut:Y}):t.jsxs("div",{className:"animate-in fade-in pt-6 duration-200 motion-reduce:animate-none",children:["account_decision"===M&&t.jsx(OUe,{orgName:a.targetOrganizationName,planName:a.planName,isSourcePaid:a.isSourcePaid,willForceKeepPersonal:v,onChooseKeepBoth:de,onChooseConsolidate:ue,onCancel:te}),"choice"===M&&t.jsx(BUe,{orgName:a.targetOrganizationName,planName:a.planName,isSourcePaid:a.isSourcePaid,isVoluntary:h,isSettingsEntry:C,willForceKeepPersonal:v,onBack:h&&"choice"!==d?me:void 0,onChooseBringEverything:y?le:void 0,onChooseStartFresh:x.includes("fresh")?ce:void 0,onChooseKeepSeparate:!h&&x.includes("keep")?de:void 0}),"migrate_everything"===M&&t.jsx($Ue,{orgName:a.targetOrganizationName,planName:a.planName,isSourcePaid:a.isSourcePaid,inviterEmail:a.inviterEmail,counts:i,acknowledged:j,onAcknowledgedChange:S,onCancel:ne,onConfirm:ie,isSubmitting:I.isPending,willForceKeepPersonal:v,showDisclosureBanner:!h}),"start_fresh_data"===M&&t.jsx(GUe,{dataAction:L,onDataActionChange:N,onCancel:ne,onNext:fe,complianceBlocked:!y,isVoluntary:h,orgName:a.targetOrganizationName}),"start_fresh_confirm"===M&&t.jsx(KUe,{planName:a.planName,isSourcePaid:a.isSourcePaid,dataAction:L,acknowledged:j,onAcknowledgedChange:S,onBack:pe,onConfirm:re,isSubmitting:h?I.isPending:A.isPending})]},M)}):t.jsx(gt,{isOpen:s,onClose:te,modalSize:"2lg",hasCloseButton:!0,children:t.jsx("div",{className:"flex items-center justify-center py-16",children:t.jsx(ht,{})})})}function eOe({icon:e,message:s,button:n,onDismiss:a,variant:i="main"}){const r=o(),l=r?.startsWith("/chat/")??!1;return t.jsx(sA.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},className:l?"flex w-full justify-center self-start px-56 pt-2 max-lg:px-24":"flex justify-center px-4 pt-3",children:t.jsx(ea,{variant:"danger"===i?"danger":"neutral",icon:e,action:n?void 0!==n.href?t.jsx(rN,{variant:"secondary",size:"sm",href:n.href,onClick:n.onClick??n.onLinkClick,children:n.children}):t.jsx(rN,{variant:"secondary",size:"sm",onClick:n.onClick??n.onLinkClick,children:n.children}):void 0,onDismiss:a,className:"pointer-events-auto w-full max-w-4xl",children:s})})}const tOe=(e=!0)=>B("/api/organizations/discoverable",{queryKey:[fw],enabled:e}),sOe=()=>b(e=>`/api/organizations/${e.organization_uuid}/join`,"POST"),nOe=()=>b("/api/accounts/me/organizations/get_or_create_chat_organization","POST");const{Placement:aOe}=jQ({placementKey:"global-banner",experienceComponents:{"join-org-global-banner":{componentLoader:()=>a(()=>import("./cd5bec2fb-DJdgijb9.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(e=>({default:e.JoinDiscoverableOrgBanner})),useTargeting:function(){const t=hw(),s=Yv(),n=t||s,{data:a,isLoading:i,isError:r}=tOe(!n),o=(a?.organizations?.some(e=>!e.has_pending_request)??!1)&&!r,l=e.useRef(!1);return o&&(l.current=!0),{isTargeted:!(n||!i&&!l.current),isLoading:i}}},"pending-requests-global-banner":{componentLoader:()=>a(()=>import("./cbe01ec1b-Dc8ghYP2.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(e=>({default:e.PendingRequestsBanner})),useTargeting:function(){const{data:e,isLoading:t,isError:s}=gw(),n=e?.filter(e=>"join_org"===e.request_type).length??0;return{isTargeted:!s&&n>0,isLoading:t}},enterpriseAllowed:!0}},templateComponents:{"message-banner":()=>a(()=>import("./cc7a65890-O9uoepHT.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(e=>({default:e.MessageBanner}))}}),iOe="voluntaryMigrationPrompt";function rOe(){try{return null!==window.sessionStorage.getItem(iOe)}catch{return!1}}function oOe(){try{window.sessionStorage.removeItem(iOe)}catch{}}const lOe=fT()(e=>({efSuppressorCount:0,pendingAutoOpen:rOe(),pushEfSuppressor:()=>e(e=>({efSuppressorCount:e.efSuppressorCount+1})),popEfSuppressor:()=>e(e=>({efSuppressorCount:Math.max(0,e.efSuppressorCount-1)})),setPendingAutoOpen:t=>e({pendingAutoOpen:t}),clearPendingAutoOpen:()=>e({pendingAutoOpen:!1})}));function cOe(t){const s=lOe(e=>e.pushEfSuppressor),n=lOe(e=>e.popEfSuppressor);e.useEffect(()=>{if(t)return s(),()=>n()},[t,s,n])}function dOe(t){const s=y("invite_triggered_account_migration_enabled"),{account:n,isLoading:a}=v(),i=function(){const{account:t}=v();return e.useMemo(()=>t?.memberships?t.memberships.map(e=>e.organization).filter(e=>{const t=e.capabilities??[];return!e.raven_type&&t.includes("chat")&&!t.includes("api")}):[],[t?.memberships])}(),r=!!t?.raven_type,o=i[i.length-1],l=s&&r&&!!o,{data:c,isLoading:d}=function(e,t,s={}){const n=new URLSearchParams({source_organization_uuid:e??"",target_organization_uuid:t??""});return B(`/api/account/migration_eligibility?${n.toString()}`,{...s,queryKey:[dUe,e,t],enabled:Boolean(e)&&Boolean(t)&&(s.enabled??!0),staleTime:3e5,meta:{noToast:!0,...s.meta}})}(o?.uuid,t?.uuid,{enabled:l}),u=o?function(e){const t=e?.capabilities??[];if(t.includes("claude_max"))return"claude_max";if(t.includes("claude_pro"))return"claude_pro";return"free"}(o):"free",m=e.useMemo(()=>{if(t&&o&&c)return{sourceOrganizationUuid:o.uuid,targetOrganizationUuid:t.uuid,targetOrganizationName:t.name??"",planName:Cw[u],isSourcePaid:"free"!==u,dataMigrationAllowed:c.available_options.includes("migrate"),availableOptions:c.available_options,willForceKeepPersonal:c.will_force_keep_personal,domainClaimId:void 0}},[t,o,c,u]);return{isEligible:s&&r&&!!n&&(c?.available_options.length??0)>0,isLoading:s&&(a||l&&d),context:m,primarySourceUuid:o?.uuid}}const uOe=e=>t.jsxs(rL,{...e,children:[t.jsx("path",{d:"M438.09 295.979 362.85 356H103.81V235.96h259.04z",className:oL(e.highlightFill)}),t.jsx("path",{d:"M214.68 260.38c2.07-2.05 3.93-4.19 6.61-1.5 3.63 3.62 3.08 4.17 6.71 7.8s3.44 3.83 7.07 7.46 4.19 3.06 7.82 6.69 3.86 3.4 7.49 7q.367.364.676.693c2.793-2.864 2.837-3.377 6.164-6.713 3.63-3.64 3.56-3.74 7.2-7.39s4-3.31 7.65-7 3.29-4 6.94-7.66c2.7-2.7 4.65-1.45 6.71.62s3 3.75.31 6.43c-3.63 3.629-2.93 4.34-6.56 8s-4.42 2.84-8.06 6.47-3.77 3.5-7.4 7.13-2.77 4.49-6.4 8.12l-.118.114c3.036 2.975 3.481 2.949 6.888 6.346 3.64 3.63 3.75 3.55 7.4 7.2s3.3 4 7 7.65 4 3.29 7.659 6.94c2.7 2.7 1.461 4.65-.609 6.71s-3.75 3-6.44.31c-3.63-3.63-4.33-2.93-8-6.56s-2.85-4.42-6.48-8.06-3.49-3.771-7.12-7.411-4.49-2.759-8.12-6.389l-.106-.108-7.234 7.118c-3.65 3.65-3.56 3.74-7.21 7.39s-3.05 4.25-6.7 7.9-3.49 3.83-7.14 7.48c-2.7 2.7-4.62.42-6.67-1.65s-4.19-3.93-1.5-6.61c3.63-3.63 4.17-3.081 7.8-6.711 3.63-3.629 3.83-3.439 7.46-7.069s3.06-4.19 6.69-7.82 3.4-3.86 7-7.49q.354-.357.676-.66l-6.926-7.06c-3.65-3.64-3.74-3.55-7.39-7.2s-4.251-3.05-7.901-6.71-3.829-3.48-7.479-7.13c-2.7-2.7-.43-4.62 1.64-6.67m77.44-154.35c3.72-3.89 5.64-1.6 7.75.41s4.359 3.781.64 7.67c-5 5.26-5.591 4.72-10.611 10-5.019 5.28-5.21 5.06-10.21 10.369s-4.449 5.811-9.479 11.071-4.791 5.49-9.811 10.75-5.909 4.43-10.939 9.69-4.77 5.49-9.83 10.739l-.29.301a5 5 0 0 1-7.12.17c-4.88-4.82-5.11-4.88-10.13-9.85-5.18-5.13-4.84-5.47-10-10.6s-5.53-4.77-10.71-9.9c-3.82-3.78-2.741-5.9-.691-8s3.871-2.88 7.691.9c5.17 5.12 5.87 4.42 11 9.53s4.38 5.92 9.55 11c3.639 3.576 4.634 4.722 6.627 6.783 2.172-2.766 2.602-4.213 6.413-8.213 5.02-5.27 5.7-4.63 10.73-9.89l10.069-10.481c5-5.269 4.931-5.359 10-10.619 5.07-5.26 4.43-5.861 9.46-11.131 5.03-5.269 4.861-5.429 9.891-10.699",fill:"currentColor"}),t.jsx("path",{fillRule:"evenodd",d:"M244.1 40.06c5.519-.08 5.49.84 10.95 1 2.73.14 4.11.27 5.49.42l2.28.28c.88.11 1.93.25 3.49.57.41.09.76.16 1.18.28l.58.16.67.24a8 8 0 0 1 1.69.88c.59.448 1.098.996 1.5 1.62q.29.521.5 1.08l.1.27c0 .1.06.18.06.2l.06.25.119.47c.08.34.111.55.151.76.08.44.15.86.19 1.21.21 1.49.35 2.86.5 5.58.26 5.41 1.08 5.36 1.24 10.72.124 4.152.269 5.07.372 7.747 1.841-.018 3.903-.028 6.258-.028 18.87 0 18.851 1.29 37.71 1.29s18.87-.63 37.73-.63 18.87-.47 37.74-.47h.88a6 6 0 0 1 6 6c0 18-.63 18.371-.63 36.871 0 18.87-.51 18.87-.51 37.74s1.3 18.86 1.3 37.72v7.72a6.14 6.14 0 0 1-3.816 5.663 6.2 6.2 0 0 1-2.354.457c-11.95-.06-15-.2-30-.2-15.548 0-18.299-.207-29.318-.282-2.153.381-5.069.602-9.022.602-18.86 0-18.86-.43-37.72-.43-6.69 0-11.006-.1-14.631-.226-.168.402-.296.887-.309 1.606-.04 2.23-.24 2.23-.29 4.45s1.17 2.26 1.12 4.48-1 2.2-1 4.42-.15 2.21-.21 4.429.07 2.221 0 4.431c-.012.403.005.733.042 1.017 2.934-.059 6.452-.097 11.128-.097 18.86 0 18.85-.33 37.71-.33l37.72.08h2.09c1.319 0 2.599.447 3.63 1.27 13.15 10.51 13.82 11.25 27.75 22.36 14.75 11.76 14.32 12.3 29.06 24.07 8.95 7.13 12.56 9.82 18.06 14a5.18 5.18 0 0 1 1.976 3.428 5.16 5.16 0 0 1-1.026 3.822 5.5 5.5 0 0 1-.75.78l-.2.17c-2.23 1.88-5.71 4.74-11.51 9.36-14.74 11.77-14.21 12.44-29 24.2s-15.43 10.94-30.14 22.7a287 287 0 0 0-4.62 3.74 4.82 4.82 0 0 1-3 1.11h-.18c-13.18.23-15.15 1.18-31.78 1.18-18.87 0-18.87-1.22-37.73-1.22-8.422 0-13.086.106-17.348.223-.053 3.942-.422 4.266-.422 8.817 0 4.9-.79 4.89-.79 9.78s.63 4.9.63 9.79.33 4.89.33 9.79l-.08 9.79c0 4.89-.181 4.891-.181 9.78 0 4.89-.689 4.87-.639 9.74s.479 4.86.559 9.76 1 4.871 1 9.92a19.6 19.6 0 0 1-.25 3.161c-.09.469-.159.799-.289 1.329l-.18.69-.16.6c-.07.22-.14.44-.22.65l-.111.32-.079.19-.12.28c-.09.18-.18.36-.28.53a7 7 0 0 1-.66.94c-.2.21-.41.42-.63.61a5 5 0 0 1-1.15.78 5 5 0 0 1-.51.25l-.39.14a6.7 6.7 0 0 1-1.33.33 10 10 0 0 1-1 .1c-1.25.07-2.35 0-3.74 0a23.4 23.4 0 0 0-5.22.36 20.4 20.4 0 0 1-9.59-.63 11.9 11.9 0 0 0-4.54-.6 34 34 0 0 0-4.79.47 34 34 0 0 1-5.06.45h-3.48a16 16 0 0 1-1.71-.13l-.5-.08-.61-.15a7 7 0 0 1-.74-.25l-.39-.16c-.18-.08-.37-.19-.56-.29l-.54-.34a8 8 0 0 1-.73-.61l-.34-.35a4 4 0 0 1-.36-.429 7 7 0 0 1-.71-1.181l-.14-.31-.05-.14v-.13l-.07-.27-.15-.55c-.08-.37-.16-.77-.23-1.18s-.12-.94-.13-1c-.1-.79-.181-1.76-.221-3-.13-4.95 1.161-5 1.071-9.89s-.7-4.9-.76-9.8c-.06-4.899-.53-4.9-.57-9.799-.04-4.9.58-4.911.54-9.811s.47-4.91.44-9.81c-.03-4.899-1.33-4.89-1.35-9.79s.21-4.91.2-9.82.29-4.91.3-9.82c.008-4.246.323-4.82.44-8.106-1.998.022-4.261.036-6.89.036-18.87 0-18.85-1.29-37.71-1.29s-18.87.63-37.73.63-18.87.47-37.74.47h-.88a6 6 0 0 1-6-6c0-18 .63-18.36.63-36.86 0-18.87.51-18.87.51-37.75s-1.3-18.86-1.3-37.72V236a6.145 6.145 0 0 1 3.816-5.663 6.1 6.1 0 0 1 2.354-.457c11.999.06 15 .2 30 .2 15.514 0 18.287.199 29.248.272 2.157-.388 5.088-.612 9.072-.612 18.86 0 18.86.44 37.72.44 7.18 0 11.625.113 15.418.253.056-.29.092-.626.092-1.033 0-2.34.2-2.34.2-4.68-.001-2.34-1.22-2.34-1.22-4.68s.91-2.34.91-4.68.09-2.34.09-4.68-.13-2.34-.13-4.69q0-.222-.011-.419c-2.948.059-6.485.099-11.199.099-18.86 0-18.85.33-37.71.33l-37.72-.09h-2.091a5.82 5.82 0 0 1-3.629-1.27c-13.15-10.51-13.821-11.25-27.75-22.36-14.75-11.8-14.32-12.36-29.06-24.12-9-7.13-12.56-9.82-18.06-14.06a5.17 5.17 0 0 1-1.843-5.434 5.17 5.17 0 0 1 1.643-2.596l.2-.16c2.23-1.88 5.71-4.74 11.51-9.37 14.74-11.76 14.21-12.43 29-24.2s15.45-10.86 30.16-22.59c1.75-1.4 3.29-2.64 4.62-3.75a4.8 4.8 0 0 1 3-1.1h.18c13.18-.22 15.15-1.17 31.779-1.17 18.87 0 18.871 1.22 37.731 1.22 9.273 0 13.989-.13 18.631-.26-.158-3.958-.971-4.416-.971-9.24 0-5.34 1.12-5.33 1.3-10.77a43 43 0 0 1 .559-5.78l.131-.65c0-.19.14-.57.22-.85s.09-.31.13-.47q.197-.516.46-1a5.5 5.5 0 0 1 1.57-1.8 2.2 2.2 0 0 1 .38-.27l.33-.2c.22-.12.47-.26.7-.37.231-.11.75-.3 1.14-.44l1.11-.31 1.13-.26a43 43 0 0 0 5.74-1.34 18.2 18.2 0 0 1 5.54-.88m-8.371 411.2q.021.117.061.23v-.05a.3.3 0 0 0 0-.12.24.24 0 0 0 0-.12v-.12l-.09-.25q-.032-.074-.068-.147.044.288.097.577m29.031-89.733c-2.515.032-5.464.053-9.12.053-10.812 0-15.429.211-20.95.394.039 3.505.387 3.985.37 8.337-.02 4.869.42 4.879.43 9.769s0 4.89 0 9.78-.66 4.89-.64 9.78 1.31 4.88 1.35 9.77-1.05 4.9-1 9.78.94 4.89 1 9.77-.7 4.9-.63 9.78c.067 4.62-.226 4.866-.156 8.993l.326-.003c2.23-.05 3.49 0 4.69 0s2.45.06 5 0a29.5 29.5 0 0 1 5.27.24c1.31.18 2.59.37 5.08.55s3.66.36 4.85.52q1.832.27 3.681.351a27 27 0 0 1-.011-.971c0-4.75-.211-4.79-.281-9.65-.07-4.859.491-4.91.431-9.83s-.16-5-.16-9.85.57-4.9.57-9.79-1.27-4.9-1.27-9.8v-9.79c0-4.9.71-4.9.71-9.8s.16-4.9.16-9.809c0-4.462.253-4.862.3-8.574m2.57 87.683c.16-.05.18-.14-.16-.06h-.151l-.219.09-.252.134q.395-.057.782-.164m93.62-208.29c-18.87 0-18.87 1.27-37.74 1.27h-37.73c-18.87 0-18.871-.71-37.751-.71l-37.779-.16c-13.801 0-17.519-.159-25.888-.245-2.477.038-5.353.069-9.038.08l-6.648.01c-15.608.046-16.705.415-34.386.415h-24.55v1.9c0 18.85-.7 18.851-.7 37.71s1.29 18.86 1.29 37.72c0 16.643-.849 18.595-1.048 31.908 14.491-.129 15.99-.868 33.208-.868 18.86 0 18.86.76 37.72.76s18.86.35 37.73.35 18.87-1.29 37.73-1.29 18.87.38 37.73.38 18.87.51 37.73.51c15.304 0 18.202.208 30.292.287l3.058-2.417c14.75-11.77 14.23-12.42 29-24.18l29.37-23.67a717 717 0 0 1 6.248-4.924c-2.908-2.45-6.311-5.268-11.828-9.676l-29.56-23.44c-13.637-10.878-14.365-12.075-26.33-21.72zm-109.181-35.88c-8.179 0-12.813.121-16.979.255q-.01.306-.01.684c0 2.34.8 2.341.8 4.681s.34 2.34.34 4.68-1.229 2.34-1.23 4.679.38 2.341.38 4.681.14 2.34.14 4.68c0 .601-.034 1.049-.082 1.422 3.195.091 7.051.158 12.462.158 8.111 0 12.735-.119 16.875-.252.046-.39.087-.86.105-1.538.06-2.23-.74-2.24-.68-4.46s-.27-2.221-.21-4.441 1.28-2.179 1.33-4.389-.32-2.22-.27-4.42-.09-2.21-.05-4.42c.016-.855.098-1.378.195-1.825-3.323-.102-7.332-.175-13.116-.175M281.74 84.9c-18.87 0-18.87 1.28-37.73 1.28s-18.87-.38-37.73-.38-18.87-.51-37.73-.51c-15.299 0-18.2-.2-30.281-.278l-3.109 2.468c-14.75 11.77-14.23 12.41-29 24.18l-29.35 23.65a691 691 0 0 1-6.248 4.918 521 521 0 0 0 11.828 9.692l29.56 23.45c13.633 10.873 14.365 12.074 26.318 21.71h.142c18.87 0 18.87-1.27 37.74-1.27h37.73c18.87 0 18.87.7 37.75.7l37.78.17c13.603 0 17.41.154 25.529.241 2.563-.041 5.543-.075 9.416-.086l6.649-.01c15.608-.046 16.704-.415 34.386-.415h24.55v-1.93c0-18.86.7-18.861.7-37.711s-1.29-18.859-1.29-37.719c0-16.648.847-18.604 1.046-31.91-14.489.13-15.988.87-33.206.87-18.86 0-18.86-.77-37.72-.77s-18.86-.34-37.73-.34m-37.46-34.57a35 35 0 0 0-5 .43c-1.151.192-2.414.367-4.379.725-.06.824-.12 1.925-.191 3.565-.17 5.13-.62 5.16-.66 10.4-.036 4.683.398 5.197.527 9.023a699 699 0 0 1 9.163-.053c10.043 0 14.741-.183 19.783-.356.166-2.721.621-3.63.527-7.744-.12-5.26.14-5.27-.11-10.45a19 19 0 0 0-.451-3.683 22 22 0 0 0-2.009-.247 39 39 0 0 0-2-.1c-1.24 0-2.491-.05-5.001-.18-5.069-.18-5.079-1.4-10.199-1.33m18.52-.32q.097.337.27.64l.024.033c-.059-.184-.119-.344-.174-.503-.08-.23-.09-.28-.12-.28z",clipRule:"evenodd",fill:"currentColor"})]});function mOe(){const t=y("invite_triggered_account_migration_enabled"),s=lOe(e=>e.setPendingAutoOpen),n=jUe(),a=e.useRef(n);return e.useEffect(()=>{a.current=n},[n]),e.useCallback((e,n)=>{t&&(!function(e){try{window.sessionStorage.setItem(iOe,JSON.stringify(e))}catch{}}({targetOrganizationUuid:e,inviterEmail:n?.inviterEmail}),s(!0)),Promise.race([Promise.allSettled([nw(),n?.beforeNavigate?.()??Promise.resolve()]),je(2e3)]).then(()=>{void 0!==n?.startedAt&&Bl("auth.join_accept_to_navigate",{duration:performance.now()-n.startedAt,attributes:{surface:n.surface??"unknown"}}),a.current.switchAndRefresh(e,"/")})},[t,s])}function pOe(e){if(!e)return;const t=function(){try{const e=window.sessionStorage.getItem(iOe);if(!e)return;return JSON.parse(e)}catch{return void oOe()}}();return t&&t.targetOrganizationUuid===e?(oOe(),t):void 0}function fOe(e,t){return`vmig-dismissed:${e}:${t}`}const gOe=e.memo(function(s={}){const{onModalOpenChange:n}=s,a=JS(),i=ae(),{activeOrganization:r}=v(),{isEligible:o,context:l,primarySourceUuid:c}=dOe(r),d=y("voluntary_migration_enterprise_banner_enabled"),u="team"===r?.raven_type||d,m=ji(),p=m?.created_at?Date.parse(m.created_at):void 0,f=void 0!==p&&Date.now()-p<6048e5,g=xw(),[h,C]=le(()=>{if(!r?.uuid||!c)return!1;try{return"1"===window.localStorage.getItem(fOe(r.uuid,c))}catch{return!1}},!1);e.useEffect(()=>{if(r?.uuid&&c)try{C("1"===window.localStorage.getItem(fOe(r.uuid,c)))}catch{}},[r?.uuid,c,C]);const x=o&&u&&f&&!g&&!h,[b,k]=e.useState(!1),[w,M]=e.useState("banner"),[_,j]=e.useState(),S=e.useCallback(e=>{n?.(e),k(e)},[n]);e.useEffect(()=>(n?.(b),()=>{n?.(!1)}),[b,n]),cOe(b);const L=lOe(e=>e.clearPendingAutoOpen),N=e.useRef(!1);e.useEffect(()=>{if(N.current||!o||!l)return;const e=pOe(r?.uuid);e?(N.current=!0,!g&&u?(j(e.inviterEmail),M("auto_open"),S(!0),i.track({event_key:"account_migration.nudge_shown",surface:"auto_open"})):L()):L()},[o,l,r?.uuid,i,L,g,u,S]),e.useEffect(()=>{b&&L()},[b,L]);const{data:I}=uUe(c,{enabled:o&&(l?.dataMigrationAllowed??!0)}),T=e.useRef(!1);e.useEffect(()=>{T.current||!x||N.current||(T.current=!0,i.track({event_key:"account_migration.nudge_shown",surface:"banner"}))},[x,i]);const A=e.useCallback(()=>{M("banner"),S(!0)},[S]),E=e.useCallback(()=>S(!1),[S]),R=e.useCallback(()=>{if(r?.uuid&&c)try{window.localStorage.setItem(fOe(r.uuid,c),"1")}catch{}C(!0)},[r?.uuid,c,C]),D=e.useCallback(()=>{window.setTimeout(R,150)},[R]);return e.useEffect(()=>{l||S(!1)},[l,S]),l&&(x||b)?t.jsxs(t.Fragment,{children:[x&&t.jsx(eOe,{variant:"main",icon:t.jsx(uOe,{size:"xs",alt:""}),message:t.jsx(hs,{id:"1tb079a",dangerouslyVisiblePublicValues:{orgName:l.targetOrganizationName}}),button:{children:gs({id:"p0pq44",intl:a}),onClick:A},onDismiss:R}),t.jsx(XUe,{isOpen:b,onClose:E,context:_?{...l,inviterEmail:_}:l,counts:I??{conversations:0,projects:0},onKeepSeparate:D,analyticsSurface:w})]}):t.jsx(aOe,{})});const hOe=e.memo(()=>{const s=function(){const e=y("domain_capture_target"),{activeOrganization:t}=v(),s=!t?.raven_type,{data:n}=vw(t?.uuid,{enabled:e&&s,staleTime:9e5,refetchOnWindowFocus:!0});return e&&!!n}(),{activeOrganization:n}=v(),{isEligible:a,isLoading:i}=dOe(n),r=lOe(e=>e.clearPendingAutoOpen);e.useEffect(()=>{i||a||(r(),oOe())},[i,a,r]);const[o,l]=e.useState(!1),[c,d]=e.useState(!1);return s||o?t.jsx(COe,{isModalOpen:o,onModalOpenChange:l}):a||c?t.jsx(gOe,{onModalOpenChange:d}):t.jsx(aOe,{})});hOe.displayName="DomainCaptureOrGlobalBanner";const COe=e.memo(function({isModalOpen:s,onModalOpenChange:n}){const{activeOrganization:a}=v(),{data:i}=vw(a?.uuid),r=wn(),o=JS(),[l,c]=e.useState(i),{data:d}=uUe(a?.uuid,{enabled:s}),u=e.useCallback(()=>{c(i),n(!0)},[i,n]),m=e.useCallback(()=>{n(!1)},[n]),p=i??l;if(!p)return null;const f=i?.migration_in_flight??!1;return t.jsxs(t.Fragment,{children:[i&&t.jsx(eOe,{variant:f?"main":"danger",message:f?t.jsx(hs,{id:"8j9jvw",dangerouslyVisiblePublicValues:{orgName:i.organization_name}}):t.jsx(hs,{id:"1alwy1p",dangerouslyVisiblePublicValues:{orgName:i.organization_name,deadline:t.jsx(nL,{value:i.deadline_at,month:"long",day:"numeric",year:"numeric",timeZone:"UTC"}),b:e=>t.jsx("strong",{children:e})}}),button:f?void 0:{children:gs({id:"1i4kj9",intl:o}),onClick:u}}),t.jsx(XUe,{isOpen:s,onClose:m,context:{sourceOrganizationUuid:a?.uuid??"",targetOrganizationUuid:p.target_organization_uuid,targetOrganizationName:p.organization_name,dataMigrationAllowed:l?.data_migration_allowed,domainClaimId:p.claim_uuid,planName:Cw[r],isSourcePaid:"free"!==r},counts:d??{conversations:0,projects:0}})]})});function xOe({conversationUuid:s,onAnswerNow:n}){const a=JS(),{shouldReduceMotion:i}=un(),r=Aae(s,n),o=Number(void 0)||0,[l,c]=e.useState(0===o);if(e.useEffect(()=>{if(o>0){const e=setTimeout(()=>c(!0),o);return()=>clearTimeout(e)}},[o]),!r||!r.visible||r.clicked)return null;return t.jsxs("div",{"data-testid":"answer-now-above-composer",className:"pointer-events-none relative -mt-6 flex w-full justify-center bg-gradient-to-t from-bg-100 via-bg-100/90 to-bg-100/0 pb-3 pt-6",style:i?void 0:{animation:"answer-now-composer-rise-fast-fade 250ms ease-out"},children:[t.jsx("style",{children:"\n        @keyframes answer-now-composer-fade { from { opacity: 0 } }\n        @keyframes answer-now-composer-rise { from { opacity: 0; transform: translateY(8px) } }\n        @keyframes answer-now-composer-rise-no-fade { from { transform: translateY(8px) } }\n        @keyframes answer-now-composer-rise-fast-fade { 0% { opacity: 0; transform: translateY(8px) } 30% { opacity: 1 } }\n        @keyframes answer-now-composer-scale { from { opacity: 0; transform: scale(0.92) } }\n      "}),t.jsx(rN,{variant:"secondary",size:"sm",onClick:r?.onClick,className:"pointer-events-auto",children:a.formatMessage({defaultMessage:"Quick answer",id:"8wA2pkkuWc"})})]})}function vOe(){return t.jsxs("div",{className:"animate-pulse flex flex-col gap-8 fade-out-bottom h-[calc(100vh-12.5rem)]",children:[t.jsx("div",{className:"flex justify-end",children:t.jsx("div",{className:"bg-bg-300 rounded-xl px-4 py-2.5 w-48 h-[46px]"})}),t.jsxs("div",{className:"flex flex-col gap-2 px-2",children:[t.jsx("div",{className:"h-4 rounded-md bg-bg-300 w-11/12 opacity-100"}),t.jsx("div",{className:"h-4 rounded-md bg-bg-300 w-10/12 opacity-90"}),t.jsx("div",{className:"h-4 rounded-md bg-bg-300 w-11/12 opacity-80"}),t.jsx("div",{className:"h-4 rounded-md bg-bg-300 w-9/12 opacity-70"}),t.jsx("div",{className:"h-4 rounded-md bg-bg-300 w-10/12 opacity-60"}),t.jsx("div",{className:"h-4 rounded-md bg-bg-300 w-11/12 opacity-50"}),t.jsx("div",{className:"h-4 rounded-md bg-bg-300 w-8/12 opacity-40"}),t.jsx("div",{className:"h-4 rounded-md bg-bg-300 w-10/12 opacity-30"}),t.jsx("div",{className:"h-4 rounded-md bg-bg-300 w-9/12 opacity-20"}),t.jsx("div",{className:"h-4 rounded-md bg-bg-300 w-4/12 opacity-10"})]})]})}const yOe="https://status.claude.com/",bOe=tL({generic:{defaultMessage:"Something went wrong",id:"JqiqNj0Ooi"},cliCrashed:{defaultMessage:"Claude Code crashed",id:"HldV0QAMie"},cliCouldntStart:{defaultMessage:"Claude Code couldn't start",id:"m8DrPQvjnp"},signedOut:{defaultMessage:"You've been signed out",id:"jLtP9xFFDM"},sessionStale:{defaultMessage:"Sign in again to continue",id:"LUi2VlLRx8"},githubAuth:{defaultMessage:"GitHub access check failed",id:"89RRikLolL"},rateLimit:{defaultMessage:"Usage limit reached",id:"7w3FHlVG2e"},network:{defaultMessage:"Connection lost",id:"CN/B/k3dCh"},proxyUnreachable:{defaultMessage:"Proxy connection failed",id:"Ic71LcRd5R"},connectionRefused:{defaultMessage:"Connection refused",id:"d7Fp1bwUtF"},resumeNotFound:{defaultMessage:"Session history unavailable",id:"R3gDnh35T5"},folderNotFound:{defaultMessage:"Folder not found",id:"n3tYs1H3AQ"},folderPathTooLong:{defaultMessage:"Folder path is too long",id:"pH8cogFQ6I"},folderAccessDenied:{defaultMessage:"Couldn't access {folderName}",id:"DLq1t7Jc4a"},cloudSyncFolder:{defaultMessage:"Can't access cloud-synced folder",id:"NhaiDsWQiD"},gitRequired:{defaultMessage:"Git is required",id:"P8VaBs+MJW"},endpointSecurity:{defaultMessage:"Blocked by endpoint security",id:"TQWgyWeD6E"},appControlBlocked:{defaultMessage:"A Windows security policy is blocking Claude",id:"X6AN/irP13"},osTooOld:{defaultMessage:"OS version not supported",id:"lfrwC3hibQ"},dllNotFound:{defaultMessage:"Missing system library",id:"2wLwVveH2Y"},diskError:{defaultMessage:"Disk error",id:"yKxvEwoB7Q"},noResponse:{defaultMessage:"Claude Code stopped responding",id:"yfrhV8/n3J"},unexpectedOutput:{defaultMessage:"Unexpected output from Claude Code",id:"PvMfiitQFC"},trustRequired:{defaultMessage:"Workspace trust needed",id:"bx+Ne2nP0J"},nestedSession:{defaultMessage:"Nested session detected",id:"eCp7KgB6Nv"},bypassGateBlocked:{defaultMessage:"Bypass Permissions was blocked",id:"k7DhqlK9Ii"},otelExporter:{defaultMessage:"Telemetry config conflict",id:"QredwIagLx"},interrupted:{defaultMessage:"Session was interrupted",id:"1xdADWuuof"},bridgeOffline:{defaultMessage:"Remote Control disconnected",id:"SlaNB/mm2w"},remoteWorkerOffline:{defaultMessage:"Cloud session stopped responding",id:"eepeQhTcfg"},environmentDeleted:{defaultMessage:"Remote environment unavailable",id:"kRlWWBU9zf"},sshDisconnected:{defaultMessage:"Lost connection to {host}",id:"x/AANGatCX"},sshConnectionFailed:{defaultMessage:"Couldn't connect to {host}",id:"iFEkD5jhbh"},rewindTargetNotFound:{defaultMessage:"Couldn't rewind",id:"qz07ubuWTz"},gitCheckoutFailed:{defaultMessage:"Couldn't switch branches",id:"5qlmjg4fJG"},remoteWorktreeFailed:{defaultMessage:"Couldn't set up remote folder",id:"yyIEWowL6r"},policyDenied:{defaultMessage:"Folder not allowed by your organization",id:"NxWkpRIOP4"},binaryLocked:{defaultMessage:"Locked by another program",id:"Jj5UsNkTxk"},remoteSpawnFailed:{defaultMessage:"Couldn't start Claude Code on {target}",id:"5qCL3ZPB0t"},remoteFolderNotFound:{defaultMessage:"Folder not found on {target}",id:"KxwVUdDrCw"},cliFlagUnsupported:{defaultMessage:"Claude Code is out of date",id:"z79RWp5LsO"}}),kOe=tL({tryAgain:{defaultMessage:"Try sending your message again.",id:"0hzmTPDdkC"},tryAgainOrReport:{defaultMessage:"Try sending your message again. If it keeps happening, share feedback so we can investigate.",id:"wSIy1+/HLg"},reinstall:{defaultMessage:"The Claude Code binary is missing or damaged. Reinstall Claude Desktop to continue.",id:"E9ffNa95kd"},reinstallArch:{defaultMessage:"The Claude Code binary doesn't match this computer's architecture. Reinstall Claude Desktop for your platform.",id:"hZ2DipvK2w"},restartApp:{defaultMessage:"Restarting Claude Desktop may resolve this.",id:"B6F2sC7pVE"},signIn:{defaultMessage:"Sign in again to continue.",id:"p0Vi703w32"},sessionStaleRelogin:{defaultMessage:"Your session has expired for Claude Code access. Sign in again to reconnect.",id:"/W3LMfdvdN"},untrustedDevice:{defaultMessage:"This device isn't set up for Claude Code access. Sign in again to register it.",id:"5OQAAwYo3T"},githubAuth:{defaultMessage:"Your GitHub credentials were rejected. Reconnect GitHub to continue.",id:"1HLmdzwR9I"},rateLimit:{defaultMessage:"You've reached your usage limit. Try again after your limit resets.",id:"HfMQVThKYy"},network:{defaultMessage:"Check your internet connection, VPN, or proxy and try again.",id:"Wb/3E+ALRw"},networkServiceDead:{defaultMessage:"Reconnection failed. Restart Claude Desktop, then try again.",id:"a5VS4oqqOK"},connectionRefused:{defaultMessage:"Check that your SSH host or local proxy is reachable, then try again.",id:"whFH9beKiB"},proxyUnreachable:{defaultMessage:"Claude Code is configured to use an HTTPS proxy that couldn't reach Anthropic's API. Check that the proxy is running, or add api.anthropic.com to NO_PROXY in the same settings file.",id:"X9oat/xfAA"},resumeNotFound:{defaultMessage:"This session's conversation history is no longer on disk. You can keep working here \u2014 sending your message will start a fresh session in this folder.",id:"a56TLh4QPs"},folderNotFound:{defaultMessage:"This session's working folder no longer exists. Choose a different folder or start a new session.",id:"21CV5Tczjm"},folderPathTooLong:{defaultMessage:"Windows limits a process's starting folder to 260 characters. Open this project from a shorter path to start a session.",id:"ExcGkeXOCd"},folderAccessDenied:{defaultMessage:"macOS blocked Claude Code from reading this folder. This is often temporary. Try again. If it keeps happening, grant access in System Settings or start a session in a folder outside {folderName}.",id:"mqJNi9jORf"},folderAccessDeniedGeneric:{defaultMessage:"Claude can't read this folder. Check the folder's permissions and ownership.",id:"RusD3QL93t"},cloudSyncFolder:{defaultMessage:'macOS blocked Claude from reading this folder. Try granting "Full Disk Access" to the Claude app and restarting, or select a different working folder.',id:"g9WJUWrdFw"},gitRequired:{defaultMessage:"Install Git (Xcode Command Line Tools on macOS, Git for Windows on Windows, or your distro's git package on Linux) to continue.",id:"Ztzae//qO9"},endpointSecurity:{defaultMessage:"Your endpoint-security software blocked Claude Code. Ask your IT team to allowlist signing Team ID Q6L2SF6YDW.",id:"k6ld7Mp5ii"},appControlBlocked:{defaultMessage:"WDAC, AppLocker, or endpoint protection is preventing the workspace runtime from starting. Copy the details for the binary path and policy rule needed to allowlist it.",id:"Y0/NpCBqzJ"},osTooOld:{defaultMessage:"Claude Code requires a newer OS version. Update your operating system to continue.",id:"toB5OxO7I4"},dllNotFound:{defaultMessage:"A Windows system library is missing. Reinstall Claude Desktop or repair the Visual C++ Redistributable.",id:"KTSbDsrJwt"},diskError:{defaultMessage:"Reading or writing the session folder failed. Check disk space and permissions, then try again.",id:"JkbN+kWYy3"},unexpectedOutput:{defaultMessage:"A shell hook or tool wrote unexpected output. Check your shell startup files and Claude Code hooks for stray stdout writes.",id:"bmH8vfWbiu"},trustRequired:{defaultMessage:"Approve this folder in the trust prompt to continue.",id:"DZwrOk9TjA"},nestedSession:{defaultMessage:"Claude Code can't run inside another Claude Code session. Close the outer session to continue.",id:"U8DVwUsvy2"},bypassGateBlocked:{defaultMessage:"Claude Code refused to start in Bypass Permissions mode on this machine. The session has been switched to Accept Edits \u2014 send your message again to continue.",id:"u+b+OpBo2Z"},otelExporter:{defaultMessage:"An OTEL console exporter in settings.json is interfering with Claude Code. Remove the OTEL_*_EXPORTER=console setting.",id:"lY2D3mXwpE"},bridgeOffline:{defaultMessage:"Your terminal's Claude Code session stopped responding. Check your terminal for errors, then resend your message.",id:"zaPxGqzW4A"},remoteWorkerOffline:{defaultMessage:"This session stopped responding mid-turn. Resend your message to try again.",id:"QIZmPzGZVY"},environmentDeleted:{defaultMessage:"The remote environment this session was connected to is no longer available. Start a new session to continue.",id:"g1aT1GGdBe"},sshDisconnected:{defaultMessage:"The SSH connection dropped and auto-reconnect didn't succeed. Your session is preserved on the remote host \u2014 resend your message to reconnect and pick up where you left off. If it keeps failing, check that the host is reachable (VPN, network) and your SSH agent is unlocked.",id:"RtSXJpna/C"},sshConnectionFailed:{defaultMessage:"The SSH connection couldn't be established. Check that the host is reachable and your SSH config is correct, then try again. The full error is in the details below.",id:"AcY6H6uCnz"},rewindTargetNotFound:{defaultMessage:"That point in the conversation couldn't be found. Send your message again to continue the session.",id:"pPg+NzFStg"},gitCheckoutFailed:{defaultMessage:"Commit or stash changes, or check your repository for issues like a missing branch, locked files, or Git LFS setup.",id:"nZAVyUccg2"},remoteWorktreeFailed:{defaultMessage:"Check disk space and the repository on that machine, then try again.",id:"sThS3jTs5d"},policyDenied:{defaultMessage:"Your organization's policy has blocked access to this folder. Choose a folder inside an allowed workspace, or contact your IT team.",id:"/zBewcOy3f"},binaryLocked:{defaultMessage:"Another program (e.g. antivirus) has a temporary lock on app files. Wait a moment and try again.",id:"4w2mdIEQf/"},bypassRootBlocked:{defaultMessage:"Bypass Permissions can't be used with root/sudo. Run as a non-root user, or turn off Bypass Permissions in settings.",id:"kCKK+84T6p"},settingsWriteDenied:{defaultMessage:"Claude Code couldn't write its settings file to the temporary directory. Check that the temp directory is writable, or adjust the sandbox policy.",id:"cflWd3GEL5"},cliFlagUnsupported:{defaultMessage:"The installed Claude Code version doesn't support a feature this app uses. Update Claude Code on this host.",id:"eV/BNCIRzM"},remoteSpawnFailed:{defaultMessage:"The Claude Code binary on {target} is missing. Send your message again to redeploy it.",id:"DarDemNHi3"},remoteFolderNotFound:{defaultMessage:"This session's working folder no longer exists on {target}. Recreate it there, or start a new session in a different folder.",id:"ahll73VKvw"},remoteFolderNotFoundFork:{defaultMessage:"This session's worktree was removed on {target}. Fork the session to continue this conversation in a fresh worktree.",id:"9M94aGXynr"}}),wOe=tL({startFresh:{defaultMessage:"Start fresh",id:"x8pR5jrE+w"}}),MOe=tL({remoteHost:{defaultMessage:"remote host",id:"otoy1VfrtB"},thisFolder:{defaultMessage:"this folder",id:"iN5miV+FdL"},remoteTargetHost:{defaultMessage:"the remote host",id:"3y8rESlM1V"}}),_Oe={sdk_binary_missing:{title:bOe.cliCouldntStart,body:kOe.reinstall,retryHelps:!1},sdk_binary_arch_mismatch:{title:bOe.cliCouldntStart,body:kOe.reinstallArch,retryHelps:!1},sdk_binary_corrupt:{title:bOe.cliCouldntStart,body:kOe.tryAgain,retryHelps:!0},disclaimer_binary_missing:{title:bOe.cliCouldntStart,body:kOe.reinstall,retryHelps:!1},spawn_failed:{title:bOe.cliCouldntStart,body:kOe.restartApp,retryHelps:!0},segfault:{title:bOe.cliCrashed,body:kOe.tryAgainOrReport,retryHelps:!0},process_crashed:{title:bOe.cliCrashed,body:kOe.tryAgainOrReport,retryHelps:!0},renderer_cascade:{title:bOe.interrupted,body:kOe.tryAgain,retryHelps:!0},process_interrupted:{title:bOe.interrupted,body:kOe.tryAgain,retryHelps:!0},endpoint_security_blocked:{title:bOe.endpointSecurity,body:kOe.endpointSecurity,retryHelps:!1},app_control_blocked:{title:bOe.appControlBlocked,body:kOe.appControlBlocked,retryHelps:!1,copyDetails:'Claude\'s workspace runtime failed to start with errno -4094 (spawn UNKNOWN).\n\nThis is usually WDAC, AppLocker, or antivirus/endpoint protection blocking execution of the runtime binary, which is downloaded under the user profile:\n\n  %LOCALAPPDATA%\\Claude-3p\\claude-code\\<version>\\claude.exe   (third-party deployment)\n  %APPDATA%\\Claude\\claude-code\\<version>\\claude.exe           (standard deployment)\n\nThe runtime also spawns ripgrep (rg.exe) from the same directory.\n\nTo confirm which control is blocking it, check Event Viewer:\n  - WDAC:       Applications and Services Logs > Microsoft > Windows > CodeIntegrity > Operational, Event ID 3077\n  - AppLocker:  Applications and Services Logs > Microsoft > Windows > AppLocker > EXE and DLL, Event ID 8004\n  - Defender:   Applications and Services Logs > Microsoft > Windows > Windows Defender > Operational, Event ID 1116 / 1117\n\nTo fix, add a publisher rule for "Anthropic, PBC" to the WDAC or AppLocker policy applied to this device. The binary is code-signed (verify with: Get-AuthenticodeSignature on claude.exe), so a publisher rule covers all install modes and version updates.\n\nIf publisher rules aren\'t available, add a path rule instead:\n  - AppLocker (3P):  %OSDRIVE%\\Users\\*\\AppData\\Local\\Claude-3p\\claude-code\\*\n  - AppLocker (1P):  %OSDRIVE%\\Users\\*\\AppData\\Roaming\\Claude\\claude-code\\*\n  - WDAC (3P):       %OSDRIVE%\\Users\\*\\AppData\\Local\\Claude-3p\\claude-code\\*\n  - WDAC (1P):       %OSDRIVE%\\Users\\*\\AppData\\Roaming\\Claude\\claude-code\\*\n    Note: WDAC ignores FilePath rules to user-writable locations unless the policy sets "Disabled:Runtime FilePath Rule Protection".\n\nIf Defender or other antivirus is blocking it, add an exclusion for the directory above or allow the detected item.'},cli_fastfail:{title:bOe.cliCrashed,body:kOe.tryAgainOrReport,retryHelps:!0},cli_shutdown_crash_benign:{title:bOe.interrupted,body:kOe.tryAgain,retryHelps:!0},dll_not_found:{title:bOe.dllNotFound,body:kOe.dllNotFound,retryHelps:!1},bun_crash:{title:bOe.cliCrashed,body:kOe.tryAgainOrReport,retryHelps:!0},bun_stack_overflow:{title:bOe.cliCrashed,body:kOe.tryAgainOrReport,retryHelps:!0},auth_error:{title:bOe.signedOut,body:kOe.signIn,retryHelps:!1,reauthHelps:!0},session_stale_relogin:{title:bOe.sessionStale,body:kOe.sessionStaleRelogin,retryHelps:!1,reloginHelps:!0},untrusted_device:{title:bOe.sessionStale,body:kOe.untrustedDevice,retryHelps:!1,reloginHelps:!0},github_auth:{title:bOe.githubAuth,body:kOe.githubAuth,retryHelps:!1},rate_limit:{title:bOe.rateLimit,body:kOe.rateLimit,retryHelps:!0},network_error:{title:bOe.network,body:kOe.network,retryHelps:!0},proxy_unreachable:{title:bOe.proxyUnreachable,body:kOe.proxyUnreachable,retryHelps:!0,showRawMessage:!0},network_service_dead:{title:bOe.network,body:kOe.networkServiceDead,retryHelps:!1},connection_refused:{title:bOe.connectionRefused,body:kOe.connectionRefused,retryHelps:!0},json_parse_error:{title:bOe.unexpectedOutput,body:kOe.restartApp,retryHelps:!0},filesystem_error:{title:bOe.diskError,body:kOe.diskError,retryHelps:!0},cli_stdout_pollution:{title:bOe.unexpectedOutput,body:kOe.unexpectedOutput,retryHelps:!1},cli_resume_not_found:{title:bOe.resumeNotFound,body:kOe.resumeNotFound,retryHelps:!0,retryLabel:wOe.startFresh},stream_ended_no_result:{title:bOe.noResponse,body:kOe.tryAgain,retryHelps:!0},git_not_found:{title:bOe.gitRequired,body:kOe.gitRequired,retryHelps:!1},cwd_not_found:{title:bOe.folderNotFound,body:kOe.folderNotFound,retryHelps:!1,chooseFolderHelps:!0},cwd_not_found_unrecoverable:{title:bOe.folderNotFound,body:kOe.folderNotFound,retryHelps:!1,chooseFolderHelps:!0},cwd_too_long:{title:bOe.folderPathTooLong,body:kOe.folderPathTooLong,retryHelps:!1,showRawMessage:!0},timeout:{title:bOe.noResponse,body:kOe.tryAgain,retryHelps:!0},trust_required:{title:bOe.trustRequired,body:kOe.trustRequired,retryHelps:!0},bun_cwd_eperm:{title:bOe.folderAccessDenied,get body(){return hf()?kOe.folderAccessDenied:kOe.folderAccessDeniedGeneric},bodyWhenSsh:kOe.folderAccessDeniedGeneric,retryHelps:!0,get tccRecoveryHelps(){return hf()}},cloud_storage_mount_denied:{title:bOe.cloudSyncFolder,body:kOe.cloudSyncFolder,retryHelps:!1,chooseFolderHelps:!0},os_too_old:{title:bOe.osTooOld,body:kOe.osTooOld,retryHelps:!1},claudecode_nested:{title:bOe.nestedSession,body:kOe.nestedSession,retryHelps:!1},bypass_permissions_gate_blocked:{title:bOe.bypassGateBlocked,body:kOe.bypassGateBlocked,retryHelps:!0},bypass_permissions_root_blocked:{title:bOe.bypassGateBlocked,body:kOe.bypassRootBlocked,retryHelps:!1},settings_write_denied:{title:bOe.cliCouldntStart,body:kOe.settingsWriteDenied,retryHelps:!1},cli_flag_unsupported:{title:bOe.cliFlagUnsupported,body:kOe.cliFlagUnsupported,retryHelps:!1},remote_spawn_failed:{title:bOe.remoteSpawnFailed,body:kOe.remoteSpawnFailed,retryHelps:!0},remote_cwd_missing:{title:bOe.remoteFolderNotFound,body:kOe.remoteFolderNotFound,retryHelps:!1,bodyWithFork:kOe.remoteFolderNotFoundFork},otel_console_exporter:{title:bOe.otelExporter,body:kOe.otelExporter,retryHelps:!1},bridge_offline:{title:bOe.bridgeOffline,body:kOe.bridgeOffline,retryHelps:!0},remote_worker_offline:{title:bOe.remoteWorkerOffline,body:kOe.remoteWorkerOffline,retryHelps:!0},environment_deleted:{title:bOe.environmentDeleted,body:kOe.environmentDeleted,retryHelps:!1},ssh_disconnected:{title:bOe.sshDisconnected,body:kOe.sshDisconnected,wslBodyId:"dkhd66",retryHelps:!0,linkifyDetails:!1},ssh_connection_failed:{title:bOe.sshConnectionFailed,body:kOe.sshConnectionFailed,wslBodyId:"ojg2wr",retryHelps:!0,linkifyDetails:!1},cli_rewind_target_not_found:{title:bOe.rewindTargetNotFound,body:kOe.rewindTargetNotFound,retryHelps:!0},git_checkout_failed:{title:bOe.gitCheckoutFailed,body:kOe.gitCheckoutFailed,retryHelps:!1},remote_worktree_failed:{title:bOe.remoteWorktreeFailed,body:kOe.remoteWorktreeFailed,retryHelps:!0},policy_denied:{title:bOe.policyDenied,body:kOe.policyDenied,retryHelps:!1,chooseFolderHelps:!0,showRawMessage:!0,linkifyDetails:!1},binary_locked:{title:bOe.binaryLocked,body:kOe.binaryLocked,retryHelps:!0}};function jOe(e){return void 0===e||(429===e||e>=500)}function SOe(e){return"cwd_not_found"===e||"cwd_not_found_unrecoverable"===e}function LOe(e,t,s,n){const a=t?.startsWith("spawn_error_")?"spawn_failed":t,i=a&&Object.hasOwn(_Oe,a)?_Oe[a]:void 0;if(!i)return{title:e.formatMessage(bOe.generic),body:e.formatMessage(kOe.tryAgainOrReport),retryHelps:!0,reloginHelps:!1,reauthHelps:!1,forkHelps:!1,chooseFolderHelps:!1,isKnownCategory:!1,tccRecoveryHelps:!1,showRawMessage:!0,linkifyDetails:!0};const r=n?.canFork?i.bodyWithFork:void 0,o="ssh"===n?.remoteKind?i.bodyWhenSsh:void 0,l="wsl"===n?.remoteKind&&pw(e.messages,"tce5eo")?gs({id:"tce5eo",intl:e}):e.formatMessage(MOe.remoteTargetHost),c={host:e.formatMessage(MOe.remoteHost),folderName:e.formatMessage(MOe.thisFolder),target:l,...s},d=!r&&"wsl"===n?.remoteKind&&void 0!==i.wslBodyId&&pw(e.messages,i.wslBodyId)?gs({id:i.wslBodyId,intl:e}):void 0;return{title:e.formatMessage(i.title,c),body:d??e.formatMessage(o??r??i.body,c),retryHelps:i.retryHelps,reloginHelps:i.reloginHelps??!1,reauthHelps:i.reauthHelps??!1,forkHelps:void 0!==r,chooseFolderHelps:Boolean(n?.canChooseFolder&&i.chooseFolderHelps),isKnownCategory:!0,tccRecoveryHelps:(i.tccRecoveryHelps??!1)&&void 0===n?.remoteKind,showRawMessage:i.showRawMessage??!1,linkifyDetails:i.linkifyDetails??!0,copyDetails:i.copyDetails,retryLabel:i.retryLabel?e.formatMessage(i.retryLabel):void 0}}const NOe=tL({generic:{defaultMessage:"An API error occurred",id:"B+hV/v0gp1"},rateLimit:{defaultMessage:"Usage limit reached",id:"7w3FHlVG2e"},serverRateLimit:{defaultMessage:"Server is temporarily limiting requests",id:"2n3WlAzStK"},imageDimension:{defaultMessage:"Image is too large",id:"YOg0eeIzq6"},overloaded:{defaultMessage:"Service is busy",id:"ZQM6zd1lim"},serverError:{defaultMessage:"Server error",id:"yGP2N81Qjq"},streamIdleTimeout:{defaultMessage:"Connection went idle",id:"LLAlcSpEZT"},network:{defaultMessage:"Connection problem",id:"XwG/Ofv63F"},auth:{defaultMessage:"Authentication failed",id:"U5YxfLcDDH"},contextLength:{defaultMessage:"Your context window is full",id:"U61ykZuFEU"},usagePolicy:{defaultMessage:"Request was blocked",id:"2cIH00AYRp"},orgDisabled:{defaultMessage:"Organization access is disabled",id:"U2Sq22ozHB"},invalidRequest:{defaultMessage:"Invalid request",id:"/h7nGyBKne"},imageInvalid:{defaultMessage:"Image couldn't be processed",id:"lrAaaIXO5H"},requestTooLarge:{defaultMessage:"Request is too large",id:"/8y/YEy/pq"},modelNotFound:{defaultMessage:"Model isn't available",id:"tZVZ3l/SAS"},outputTokenLimit:{defaultMessage:"Response exceeded the output limit",id:"G78VsfMO6Q"},extraUsageRequired:{defaultMessage:"Extra usage is required",id:"M+0PT+zBPq"},billing:{defaultMessage:"Billing issue",id:"dvR1KZnysT"},permission:{defaultMessage:"Access denied",id:"vu4q0xfmTW"}}),IOe=tL({overloaded:{defaultMessage:"Service was busy",id:"Xf/4QSBM7N"},serverRateLimit:{defaultMessage:"Server was temporarily limiting requests",id:"UZL1EHHrJQ"},contextLength:{defaultMessage:"Context window was full",id:"9IF+UH0/HB"}}),TOe=tL({tryAgain:{defaultMessage:"Try sending your message again.",id:"0hzmTPDdkC"},rateLimit:{defaultMessage:"You've reached your usage limit. Try again after your limit resets.",id:"HfMQVThKYy"},serverRateLimit:{defaultMessage:"Too many requests right now \u2014 try again in a moment.",id:"6JmsGLI59u"},imageDimension:{defaultMessage:"An image in this conversation is over 2000px. Rewind to remove it, or start a new session.",id:"MS0kN6eQX8"},overloaded:{defaultMessage:"Try again in a moment, or switch to a different model.",id:"yeBbpeNYqy"},serverError:{defaultMessage:"Something went wrong. Try again in a moment. If it persists, check {statusUrl}.",id:"BpM+iSIqxC"},streamIdleTimeout:{defaultMessage:"The response stream stopped before finishing \u2014 try again in a moment.",id:"vGCX7TawR+"},network:{defaultMessage:"Check your internet connection, VPN, or proxy and try again.",id:"Wb/3E+ALRw"},auth:{defaultMessage:"Sign in again to continue.",id:"p0Vi703w32"},contextLength:{defaultMessage:"The conversation has reached its context limit. Compact, rewind, or start a new session.",id:"UI6HxGnGVZ"},usagePolicy:{defaultMessage:"This request triggered safety guardrails. Rephrase your prompt or rewind to continue.",id:"PxS6DC8f1B"},usagePolicyNoRewind:{defaultMessage:"This request triggered safety guardrails. Switch models to continue.",id:"hmuUKcivQ5"},orgDisabled:{defaultMessage:"Your organization's access has been disabled. Contact your admin.",id:"FRELxEyMIb"},invalidRequest:{defaultMessage:"The request couldn't be completed.",id:"smvJRGBmg7"},imageInvalid:{defaultMessage:"An image couldn't be read. Rewind to remove it and try a different format.",id:"TJi5P+EdNN"},requestTooLarge:{defaultMessage:"An attachment is too large. Remove it and try again.",id:"bZrPgwc8Bf"},modelNotFound:{defaultMessage:"Switch to a different model from the model picker to continue.",id:"Sh1qUoUapZ"},outputTokenLimit:{defaultMessage:"Ask Claude to continue, or break the task into smaller steps.",id:"FrNSbqbfYZ"},extraUsageRequired:{defaultMessage:"Enable extra usage in Settings, or switch to a model with standard context.",id:"L7ojGjAGFG"},billing:{defaultMessage:"Add credits or update billing to continue.",id:"6YuwNxOgpl"},permission:{defaultMessage:"You don't have access to this resource \u2014 check your permissions.",id:"rNidobGrrc"}}),AOe={rate_limit:{headline:NOe.rateLimit,hint:TOe.rateLimit,retryHelps:!0},server_rate_limit:{headline:NOe.serverRateLimit,markerLabel:IOe.serverRateLimit,hint:TOe.serverRateLimit,retryHelps:!0},image_dimension:{headline:NOe.imageDimension,hint:TOe.imageDimension,retryHelps:!1},overloaded:{headline:NOe.overloaded,markerLabel:IOe.overloaded,hint:TOe.overloaded,retryHelps:!0},server_error:{headline:NOe.serverError,hint:TOe.serverError,hintValues:{statusUrl:yOe.replace(/\/$/,"")},retryHelps:!0},stream_idle_timeout:{headline:NOe.streamIdleTimeout,hint:TOe.streamIdleTimeout,retryHelps:!0},network:{headline:NOe.network,hint:TOe.network,retryHelps:!0},auth:{headline:NOe.auth,hint:TOe.auth,retryHelps:!1},context_length:{headline:NOe.contextLength,markerLabel:IOe.contextLength,hint:TOe.contextLength,retryHelps:!1},usage_policy:{headline:NOe.usagePolicy,hint:TOe.usagePolicy,retryHelps:!1},org_disabled:{headline:NOe.orgDisabled,hint:TOe.orgDisabled,retryHelps:!1},invalid_request:{headline:NOe.invalidRequest,hint:TOe.invalidRequest,retryHelps:!1},image_invalid:{headline:NOe.imageInvalid,hint:TOe.imageInvalid,retryHelps:!1},request_too_large:{headline:NOe.requestTooLarge,hint:TOe.requestTooLarge,retryHelps:!1},model_not_found:{headline:NOe.modelNotFound,hint:TOe.modelNotFound,retryHelps:!1},output_token_limit:{headline:NOe.outputTokenLimit,hint:TOe.outputTokenLimit,retryHelps:!0},extra_usage_required:{headline:NOe.extraUsageRequired,hint:TOe.extraUsageRequired,retryHelps:!1},billing:{headline:NOe.billing,hint:TOe.billing,retryHelps:!1},permission:{headline:NOe.permission,hint:TOe.permission,retryHelps:!1},unknown:{headline:NOe.generic,hint:TOe.tryAgain,retryHelps:!0}},EOe=["You've hit your","You've reached your","Fable 5 requires usage credits","You're out of usage credits","You're out of extra usage","Your org is out of usage","Your seat type doesn't include","Your usage allocation has been disabled","Your group's usage limit is set to $0"],ROe=new Set(["image_dimension","image_invalid","context_length","usage_policy","request_too_large"]),DOe=[[/exceeds the dimension limit|\bImage was too large\b/i,"image_dimension"],[/hit your (?:org's )?(?:monthly )?(?:usage )?limit|out of (?:extra )?usage|usage allocation|monthly usage limit|group's usage limit|(?<!not your )usage limit/i,"rate_limit"],[/rate_limit_error|\btemporarily limiting\b/i,"server_rate_limit"],[/\bStream idle timeout\b/i,"stream_idle_timeout"],[/overloaded_error|\bOverloaded\b/i,"overloaded"],[/\bPrompt is too long\b|Autocompact is thrashing/i,"context_length"],[/\bRequest too large\b/i,"request_too_large"],[/Usage Policy|content filtering policy|specific safety measures|anthropic\.com\/legal\/aup/i,"usage_policy"],[/organization has been disabled|organization does not have access|disabled Claude subscription|service is disabled for your org/i,"org_disabled"],[/Could not process image|image .* could not be processed|PDF is password protected/i,"image_invalid"],[/selected model|model not found|is not a valid model|model does not exist/i,"model_not_found"],[/exceeded the \d+ output token/i,"output_token_limit"],[/Extra usage is required/i,"extra_usage_required"],[/credit balance is too low|\bInsufficient credits\b|billing_error/i,"billing"],[/socket connection was closed|ECONNRESET|ECONNREFUSED|ConnectionRefused|Unable to connect|ETIMEDOUT|ENOTFOUND|EAI_AGAIN|certificate verification|Request timed out/i,"network"],[/authentication_error|Failed to authenticate|Invalid API Key|\bOAuth token has expired\b/i,"auth"],[/Internal server error|Bad Gateway|"api_error"/i,"server_error"],[/permission_error/i,"permission"],[/invalid_request_error/i,"invalid_request"]],HOe={rate_limit:"server_rate_limit",authentication_failed:"auth",billing_error:"billing",invalid_request:"invalid_request",server_error:"server_error",max_output_tokens:"output_token_limit",overloaded_error:"overloaded",overloaded:"overloaded"};function POe(e){const t=e.replace(/^API Error:?\s*/i,"");return EOe.some(e=>t.startsWith(e))}function UOe(e){return"overloaded"===zOe(void 0,e)||529===VOe(e)}function OOe(e){return"rate_limit"===e||"extra_usage_required"===e}function FOe(e){return VOe(e)}function VOe(e){const t=/(?:API error:?|HTTP(?:\/\d(?:\.\d)?)?|status(?:\s*code)?:?)\s*(4\d{2}|5\d{2})\b/i.exec(e);return t?Number(t[1]):void 0}function zOe(e,t,s){if("refusal"===s)return"usage_policy";if(POe(t))return"rate_limit";for(const[a,i]of DOe)if(a.test(t))return i;if(e&&HOe[e])return HOe[e];const n=VOe(t);return void 0!==n?function(e){return 429===e?"server_rate_limit":529===e?"overloaded":e>=500?"server_error":401===e?"auth":402===e?"billing":403===e?"permission":413===e?"request_too_large":e>=400?"invalid_request":"unknown"}(n):"unknown"}function ZOe(e,t,s,n,a){if(a?.ccdErrorCategory){const t=LOe(e,a.ccdErrorCategory,void 0,{remoteKind:a.remoteKind});if(t.isKnownCategory)return{headline:t.title,markerLabel:t.title,requestId:void 0,hint:t.body,retryHelps:t.retryHelps,rewindHelps:!1,isOverloaded:!1,isRateLimit:!1,category:"unknown"}}const i=zOe(t,s,n),r=AOe[i],o="unknown"===i?jOe(VOe(s)):r.retryHelps,l="unknown"!==i||o?"usage_policy"!==i||a?.canRewind?e.formatMessage(r.hint,r.hintValues):e.formatMessage(TOe.usagePolicyNoRewind):e.formatMessage(TOe.invalidRequest),c="refusal"===n?function(e){return e.replace(/^API Error:?\s*/i,"").replace(/(?:^|\n)Request ID:\s*\S+\s*$/,"").trim()||void 0}(s):void 0;return{headline:e.formatMessage(r.headline),markerLabel:e.formatMessage(r.markerLabel??r.headline),requestId:/^Request ID:\s*(\S+)\s*$/m.exec(s)?.[1],hint:l,...void 0!==c&&{passthroughBody:c},retryHelps:o,rewindHelps:ROe.has(i),isOverloaded:"overloaded"===i,isRateLimit:"rate_limit"===i,category:i}}function BOe(t="session_stale_relogin"){const s=o(),{activeOrganization:n}=v(),a=tw();return e.useCallback(()=>{const e=(s??"/cowork/agent")+window.location.search,i=n?.uuid;a.set(yw.ELEVATED_AUTH_KIND,t,{maxAgeSeconds:900}),a.set(yw.RETURN_TO,bw(e,t,i),{maxAgeSeconds:900});const r=kw(e,t,i);window.location.href=`${r}&reauth=1&from=logout`},[s,n?.uuid,a,t])}const qOe="supported"===ww()?.bootstrapConfig?.status;function WOe(){return false}const $Oe="Claude Code process terminated by signal terminated";const GOe=e.memo(function({errorMessage:s,errorCategory:n,sessionId:a,lastUserMessageUuid:i,sessionHostLoopMode:r,onTryAgain:o,onRewind:l}){const c=JS();On();const[d,u]=e.useState(!1),m=e.useMemo(()=>LOe(c,n),[c,n]),p=BOe(Mw(n)??"session_stale_relogin"),f=!1,g=fPe();void 0!==g?.kind&&g.grantable;const h=m.reauthHelps&&f,C=m.reloginHelps||m.reauthHelps&&!0,{copyToClipboard:x,didCopy:v}=xN(),y=e.useCallback(()=>{m.copyDetails&&x(m.copyDetails)},[x,m.copyDetails]);e.useMemo(()=>[],[n,a,i,r]);const{setPrompt:b,focusInput:k}=xp(),w=e.useCallback(()=>{if(!o)return;const e=o();e&&(b(e,{forceUpdateTiptap:!0,unsafe:Aa(e)}),k?.())},[o,b,k]),M=e.useCallback(async()=>{if(!l)return;const e=await l();e&&(b(e,{forceUpdateTiptap:!0,unsafe:Aa(e)}),k?.())},[l,b,k]);return s===$Oe?null:t.jsx(ea,{variant:"warning","data-testid":"session-error-banner",className:"max-w-xl ml-1 mb-1.5",children:t.jsxs("div",{className:"flex flex-col gap-sm",children:[t.jsx("span",{className:"font-medium",children:m.title}),t.jsx("p",{className:"text-primary",children:m.body}),m.showRawMessage&&t.jsx("code",{className:"block text-secondary break-all whitespace-pre-wrap font-mono",children:s}),"",l&&t.jsx("p",{className:"text-secondary",children:t.jsx(XS,{defaultMessage:"You can restart the conversation from an earlier message.",id:"WLuQUjn2SZ"})}),C||o&&m.retryHelps||l||m.copyDetails?t.jsxs("div",{className:"flex flex-wrap items-center gap-sm",children:[h,C&&t.jsx(rN,{variant:"primary",size:"sm",onClick:p,children:t.jsx(XS,{defaultMessage:"Sign in again",id:"scfgdMgq4h"})}),m.copyDetails&&t.jsx(rN,{variant:"secondary",size:"sm",icon:"Copy",onClick:y,children:v?t.jsx(XS,{defaultMessage:"Copied",id:"p556q3uvbn"}):t.jsx(XS,{defaultMessage:"Copy details",id:"HO922/quOT"})}),l&&t.jsx(rN,{variant:"secondary",size:"sm",icon:"ArrowReturn",onClick:M,children:t.jsx(XS,{defaultMessage:"Go back",id:"orvpWhO3rI"})}),o&&m.retryHelps&&t.jsx(rN,{variant:"secondary",size:"sm",icon:"ArrowClockwise",onClick:w,children:t.jsx(XS,{defaultMessage:"Try again",id:"FazwRldA7z"})}),""]}):"",""]})})}),KOe=["claude-sonnet-4-6","claude-haiku-4-5-20251001"];function YOe(t,s){const{selectableModels:n,fallbackModelId:a,nameFor:i,entryFor:r}=Ae("cowork");return e.useMemo(()=>{const e=t?Kc(t):void 0,o=!!t&&!0===r(t).supports_1m_context,l=new Set(n.map(e=>e.id));let c;if(s&&s.length>0)c=[...s,...KOe];else{const t=o?n.find(t=>t.supports_1m_context&&t.id!==e)?.id:void 0;c=[a,t,...KOe]}for(const t of c){if(!t)continue;const s=Kc(t);if(s===e)continue;const n=l.has(s)?s:void 0;if(n)return{id:n,name:i(n)}}},[t,s,n,a,i,r])}const QOe=e.memo(function({sessionId:e}){const s=aa(e=>e.sessionContext?.scheduledTaskId),n=ub(),a=!(!e||ga(e)||s||n||!lo?.rewind||!lo?.setModel),i=aa(e=>e.sessionContext?.sessionData?.session_context?.model),{fallbackModelIds:r}=N4(),o=YOe(i,r),l=a&&!!o,{track:c}=ae();return t.jsx(ea,{variant:"neutral","data-testid":"cowork-model-not-found-card",className:"max-w-xl ml-1 mb-1.5",children:t.jsxs("div",{className:"flex flex-col gap-sm",children:[t.jsx("div",{className:"font-medium text-primary",children:t.jsx(XS,{id:"Dz3tSI5LFm",defaultMessage:"This model isn't available"})}),t.jsx("div",{className:"text-secondary",children:l&&o?t.jsx(XS,{id:"51rqLuHkXs",defaultMessage:"You can continue using {model} instead.",values:{model:o.name}}):t.jsx(XS,{id:"u8oAvUFG3c",defaultMessage:"Switch to a different model from the model picker to continue."})}),l&&o&&t.jsx("div",{className:"flex flex-wrap items-center gap-sm",children:t.jsx(rN,{size:"sm",onClick:()=>{c({event_key:"claudeai.cowork.model_not_found.retry_clicked",original_model:i??"unknown",fallback_model:o.id}),iT.getState().requestRetry(e,o.id)},children:t.jsx(XS,{id:"ZqJHWXvR2P",defaultMessage:"Switch to {model}",values:{model:o.name}})})})]})})});QOe.displayName="CoworkModelNotFoundCard";const JOe=e.memo(function({sessionId:e}){const s=aa(e=>e.sessionContext?.scheduledTaskId),n=ub(),a=!(!e||ga(e)||s||n||!lo?.rewind||!lo?.setModel),i=aa(e=>e.sessionContext?.sessionData?.session_context?.model),{fallbackModelIds:r}=E4(),o=YOe(i,r),l=a&&!!o,{track:c}=ae();return t.jsx(ea,{variant:"neutral","data-testid":"cowork-overage-switch-card",className:"max-w-xl ml-1 mb-1.5",children:t.jsxs("div",{className:"flex flex-col gap-sm",children:[t.jsx("div",{className:"font-medium text-primary",children:t.jsx(XS,{id:"26bRinpeZw",defaultMessage:"You've reached your usage limit for this model"})}),t.jsx("div",{className:"text-secondary",children:l&&o?t.jsx(XS,{id:"51rqLuHkXs",defaultMessage:"You can continue using {model} instead.",values:{model:o.name}}):t.jsx(XS,{id:"u8oAvUFG3c",defaultMessage:"Switch to a different model from the model picker to continue."})}),l&&o&&t.jsx("div",{className:"flex flex-wrap items-center gap-sm",children:t.jsx(rN,{size:"sm",onClick:()=>{c({event_key:"claudeai.cowork.overage.switch_clicked",original_model:i??"unknown",fallback_model:o.id}),iT.getState().requestRetry(e,o.id)},children:t.jsx(XS,{id:"ZqJHWXvR2P",defaultMessage:"Switch to {model}",values:{model:o.name}})})})]})})});function XOe({errorMessage:e,errorCategory:s,sessionId:n,lastUserMessageUuid:a,sessionHostLoopMode:i,onTryAgain:r,onRewind:o}){const{exceededMessageLimitWarning:l,overageExceededWarning:c}=QX(),d=!!l||!!c,u=POe(e),m=/safety measures that flag messages|unable to respond to this request, which appears to violate our Usage Policy|Claude Code can(?:not|'t) respond to this request/i.test(e),p=function(e,t,s){return!!(e.enabled&&(t&&e.errorCategories.includes(t)||e.compiledRegex&&s&&e.compiledRegex.test(s)))}(N4(),s,e),f=function(e,t,s){return!!(e.enabled&&(t&&e.errorCategories.includes(t)||e.compiledRegex&&s&&e.compiledRegex.test(s)))}(E4(),s,e);if(f&&!m)return t.jsx(JOe,{sessionId:n});return d&&u||m?null:p?t.jsx(QOe,{sessionId:n}):t.jsx(GOe,{errorMessage:e,errorCategory:s,sessionId:n,lastUserMessageUuid:a,sessionHostLoopMode:i,onTryAgain:r,onRewind:o})}JOe.displayName="CoworkOverageSwitchCard";const eFe=e.memo(function({connectionState:s,nextReconnectTime:n,onRetryNow:a}){const[i,r]=e.useState(null);if(e.useEffect(()=>{if(!n)return void r(null);const e=()=>{const e=Math.max(0,Math.ceil((n-Date.now())/1e3));r(e)};e();const t=setInterval(e,1e3);return()=>clearInterval(t)},[n]),"connected"===s)return null;const o="connecting"===s,l=null!==i&&i>0;return t.jsxs("div",{className:"flex items-center justify-between gap-3 rounded-lg bg-bg-200 border border-border-300 px-3 py-2 text-sm text-text-200",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[o?t.jsx(mD,{size:16,className:"text-text-300 flex-shrink-0 animate-spin"}):t.jsx(pD,{size:16,className:"text-text-300 flex-shrink-0"}),t.jsx("span",{children:o?t.jsx(XS,{defaultMessage:"Reconnecting...",id:"dOGweUbyRk"}):l?t.jsx(XS,{defaultMessage:"Disconnected, attempting to reconnect in {seconds, plural, one {# second} other {# seconds}}...",id:"qq7KTocoOK",values:{seconds:i}}):t.jsx(XS,{defaultMessage:"Disconnected",id:"FZeQlcp+xX"})})]}),!o&&t.jsx(rN,{variant:"secondary",size:"sm",onClick:a,children:l?t.jsx(XS,{defaultMessage:"Retry now",id:"f6dOFtY1T3"}):t.jsx(XS,{defaultMessage:"Reconnect",id:"Eg11ZYmdyO"})})]})}),tFe=e.memo(({snapshot:e,shimmer:s=!1,onDiscard:n,onTap:a,discardLabel:i})=>{const r=JS(),o=e.prompt.trim(),l=e.files.length>0||e.attachments.length>0,c=e.syncSourceUuids.length,d=c>0?r.formatMessage({defaultMessage:"+{count} more",id:"/zFGgPmQSV"},{count:c}):null,u=""!==o?o:l?d:r.formatMessage({defaultMessage:"{count, plural, one {# attachment} other {# attachments}}",id:"RYwHHLwZK9"},{count:c}),m=n&&i?t.jsx(rN,{variant:"ghost",size:"sm",iconOnly:!0,icon:"X","aria-label":i,onClick:n,className:"opacity-0 focus-visible:opacity-100 group-hover/row:opacity-100 group-focus-within/row:opacity-100 pointer-coarse:hidden"}):null;return t.jsxs("div",{className:"group/row mb-1 mt-1 flex flex-col items-end",children:[l&&t.jsxs("div",{className:dt("relative gap-2 mx-0.5 mb-3 flex flex-wrap justify-end",s&&"animate-pulse"),children:[e.files.map((e,s)=>t.jsx(JB,{file:e},`f-${s}`)),e.attachments.map((e,s)=>t.jsx(JB,{file:e},`a-${s}`)),null===u&&null!==m&&t.jsx("div",{className:"absolute -right-8 top-1/2 -translate-y-1/2",children:m}),null===u&&a&&t.jsx("button",{type:"button","aria-label":i,onClick:a,className:"absolute inset-0 hidden rounded-xl pointer-coarse:block"})]}),null!==u&&t.jsxs("div",{className:"relative",children:[t.jsx($ae,{className:"pr-2.5",children:t.jsx("div",{className:dt(Wae,"text-muted whitespace-pre-wrap",s&&"animate-pulse"),"data-testid":"user-message",children:u})}),null!==m&&t.jsx("div",{className:dt("absolute -right-8 top-0 flex h-full items-center","max-h-[2.9rem]"),children:m}),a&&t.jsx("button",{type:"button","aria-label":i,onClick:a,className:"absolute inset-0 hidden rounded-xl pointer-coarse:block"})]})]})});tFe.displayName="PendingItem";const sFe=e.memo(({conversationUuid:s})=>{const n=JS(),a=_w(s),i=jw(s),r=Sw(),[o,l]=e.useState(null);e.useEffect(()=>{if(s&&null!==o)return r(s,!0),()=>r(s,!1)},[s,o,r]),e.useEffect(()=>{null===o||a?.some(e=>e.queuedAt===o)||l(null)},[a,o]);const c=e.useCallback(e=>{s&&r(s,!0),l(e)},[s,r]),d=e.useCallback(()=>{null!==o&&i?.(o),l(null)},[o,i]),u=e.useCallback(e=>{e||l(null)},[]);if(!a||0===a.length)return null;const m=n.formatMessage({defaultMessage:"Discard queued message",id:"mash/vpxVG"});return t.jsxs("div",{className:"relative flex flex-col items-end","data-testid":"pending-queue-row",children:[t.jsx("div",{role:"status",className:"sr-only",children:n.formatMessage({defaultMessage:"{count, plural, one {# message} other {# messages}} queued. Will send after the current response.",id:"Fmpj1gVq4t"},{count:a.length})}),a.map(e=>t.jsx(tFe,{snapshot:e,discardLabel:m,onDiscard:i?()=>i(e.queuedAt):void 0,onTap:i?()=>c(e.queuedAt):void 0},e.queuedAt)),t.jsx(MN,{open:null!==o,onOpenChange:u,title:t.jsx(XS,{defaultMessage:"Discard queued message?",id:"MHHIKnYir+"}),description:t.jsx(XS,{defaultMessage:"This message will be removed from the queue and won't be sent.",id:"CI3/pwYCom"}),confirmLabel:t.jsx(XS,{defaultMessage:"Discard",id:"nmpevlUATU"}),confirmVariant:"danger",onConfirm:d})]})});sFe.displayName="PendingQueueRow";const nFe=e.memo(function({blocksMcp:e,blocksWebSearch:s,onNewChat:n}){return e||s?t.jsx("div",{"data-testid":"tool-isolation-notice",children:t.jsx(ea,{icon:t.jsx(WH,{}),className:"!w-full mt-1 mb-3 -mx-1",children:t.jsx(hs,{id:e?"1lsgeyq":"r7v1in",dangerouslyVisiblePublicValues:{a:e=>t.jsx(ct,{onClick:n,children:e})}})})}):null});const aFe=e.memo(function({blocksMcp:s,blocksWebSearch:n}){const a=r(),i=e.useCallback(()=>{a.push("/new")},[a]);return t.jsx(nFe,{blocksMcp:s,blocksWebSearch:n,onNewChat:i})}),iFe=e.createContext(void 0);function rFe({children:s}){const[n,a]=e.useState(null),i=e.useCallback((e="default")=>{a(e)},[]),r=e.useCallback(()=>{a(null)},[]),o=e.useCallback(()=>{a(e=>null===e?"default":null)},[]),l=e.useMemo(()=>({isOpen:null!==n,entrypoint:n,openCommandPalette:i,closeCommandPalette:r,toggleCommandPalette:o}),[n,i,r,o]);return t.jsx(iFe.Provider,{value:l,children:s})}function oFe(){const t=e.useContext(iFe);if(!t)throw new Error("useCommandPaletteToggleContext must be used within CommandPaletteToggleProvider");return t}function lFe(){return e.useContext(iFe)}function cFe({organizationUuid:s,conversationUuid:n,isStreaming:a,hasClientSideTools:i=!1}){const r=e.useRef(null),o=UH(e=>e.inlineModalToolUseIds),l=UH(e=>e.actedToolUseIds),c=Boolean(s&&n&&a&&i),d=`/api/organizations/${s}/chat_conversations/${n}/pending_client_action`,{data:u}=B(d,{enabled:c,refetchInterval:!!c&&1e4,staleTime:0,meta:{noToast:!0}}),m=gL(),{refetch:p}=v();e.useEffect(()=>(c||m.removeQueries({queryKey:[d]}),()=>{m.removeQueries({queryKey:[d]})}),[c,m,d]);const f=b(`/api/organizations/${s}/chat_conversations/${n}/tool_approval`,"POST",{meta:{noToast:e=>e instanceof cs&&404===e.statusCode},onSuccess:(e,t)=>{r.current=t.tool_use_id,UH.getState().markActed(t.tool_use_id),"always"===t.approval_option&&p()},onError:(e,t)=>{e instanceof cs&&404===e.statusCode&&(r.current=t.tool_use_id,UH.getState().markActed(t.tool_use_id))}});if(!c||!u||u.tool_use_id===r.current||o.has(u.tool_use_id)||l.has(u.tool_use_id))return null;switch(u.type){case"tool_approval":return"launch_extended_search_task"!==u.tool_name?null:t.jsx(OH,{onCancel:()=>f.mutate({tool_use_id:u.tool_use_id,is_approved:!1,params:{disapproval_reason:"user_canceled"}}),onConfirm:({tools:e,alwaysAllowTools:t})=>f.mutate({tool_use_id:u.tool_use_id,is_approved:!0,...t?{approval_option:"always"}:{},params:{tools:e,...t?{always_allow_tools:t}:{}}})});case"mcp_auth":case"tool_execution":return null}}function dFe(){const{sendTransparentMessage:t,conversation:s}=J(),n=Nw(e=>e.pendingMessages),a=Nw(e=>e.dequeuePendingMessage),i=Nw(e=>e.isInIframe),r=e.useRef(!1);return e.useEffect(()=>{if(!i||0===n.length||!s||r.current)return;r.current=!0;const e=n[0];a(),k.info(w.BOOTSTRAP,`Sending pending iframe message to conversation ${s.id}, length: ${e.length}`);const o=t(e,{suppressPromptRecovery:!1});if(!o)return k.warn(w.BOOTSTRAP,"sendTransparentMessage returned undefined - message may not have been sent"),void(r.current=!1);o.then(()=>{k.info(w.BOOTSTRAP,`Successfully sent iframe message to conversation ${s.id}`)}).catch(e=>{k.error(w.BOOTSTRAP,"Failed to send iframe message",e)}).finally(()=>{r.current=!1})},[i,n,s,a,t]),null}function uFe(e){if("text-quote"!==e.kind)return e;const{renderedExact:t,...s}=e;return s}function mFe(e){return{id:e.id,text:e.text,anchor:uFe(e.target.anchor),createdAt:e.createdAt,updatedAt:e.updatedAt,author:e.author??null,replyToCommentUuid:e.replyToCommentUuid??null,status:e.status??"open"}}function pFe(e,t){return{id:e.id,text:e.text,target:{document:e.artifactUuid?{kind:"artifact",artifactId:e.artifactUuid}:{kind:"file",filePath:""},anchor:e.anchor},createdAt:e.createdAt,updatedAt:e.updatedAt,author:e.author,status:e.status,isOwn:null!==e.author&&void 0!==t?e.author.uuid===t:void 0,replyToCommentUuid:e.replyToCommentUuid??null}}function fFe(e,t){return`/api/organizations/${e}/artifacts/${t}/review_comments`}function gFe(e,t,s){return`${fFe(e,t)}/${s}`}function hFe(e,t){return["artifact_review_comments",e,t]}const CFe=e=>{const{activeOrganization:t}=v(),s=Bn(),n=Iw(),{remoteStorageEnabled:a}=Lf();return B(fFe(s??"",e??""),{queryKey:hFe(s,e),enabled:a&&!!t&&!!e,meta:{noToast:!0}},e=>e.comments.filter(e=>"resolved"!==e.status).map(e=>pFe(e,n)))};function xFe(e){const{orgUuid:t,accountUuidRef:s,queryClient:n,jsonFetch:a}=e,i=new Map;let r=!1;const o=new Map,l=new Map,c=(e,t)=>{const s=l.get(e);return!!s?.delete(t)&&(0===s.size&&l.delete(e),!0)},d=(e,t,s,n)=>a(t,{method:e,signal:n,...void 0!==s&&{body:JSON.stringify(s)}}),u=(e,s,n)=>d("POST",fFe(t,e),{text:s.text,anchor:uFe(s.target.anchor),replyToCommentUuid:n}),m=(e,s,n)=>d("PUT",gFe(t,e,s),{text:n.text,anchor:uFe(n.target.anchor)}),p=(e,s)=>{d("PUT",gFe(t,e,s),{status:"resolved"}).catch(()=>{})},f=(e,s)=>d("DELETE",gFe(t,e,s)).catch(e=>{if(!(e instanceof cs&&404===e.statusCode))throw e}),g=e=>"element"===e.target.anchor.kind;return{load:e=>{if(e===Aw)return Ew.load(e);const s=hFe(t,e),a=n.getQueryData(s);if(void 0!==a)return o.has(e)||((e,t)=>{const s=new Map;for(const n of t)g(n)||s.set(n.id,{serverId:n.id,updatedAt:n.updatedAt});o.set(e,s)})(e,a),a;const i=Ew.load(e);return n.setQueryData(s,i),i},save:(e,s,a)=>{if(e===Aw||!a)return void Ew.save(e,s,null);const i=s.filter(g),r=i.length>0?s.filter(e=>!g(e)):s;Ew.save(e,i,null);const l=hFe(t,e);n.cancelQueries({queryKey:l}),n.setQueryData(l,s);const h=o.get(e)??new Map,C=!o.has(e),x=new Set,v=[];if(C&&r.length>0)v.push(async()=>{const s=await(async(e,s)=>(await d("PUT",fFe(t,e),{comments:s.map(mFe)})).comments)(a,r);r.forEach((t,n)=>{const i=s[n]?.id??t.id;c(e,t.id)?p(a,i):h.set(t.id,{serverId:i,updatedAt:t.updatedAt})})});else{for(const t of r){x.add(t.id);const s=h.get(t.id);s?s.updatedAt!==t.updatedAt&&v.push(async()=>{await m(a,s.serverId,t),s.updatedAt=t.updatedAt}):v.push(async()=>{const s=t.replyToCommentUuid?h.get(t.replyToCommentUuid)?.serverId??t.replyToCommentUuid:null,n=await u(a,t,s);c(e,t.id)?p(a,n.id):h.set(t.id,{serverId:n.id,updatedAt:t.updatedAt})})}for(const[e,t]of h)x.has(e)||v.push(async()=>{await f(a,t.serverId),h.delete(e)})}0!==v.length&&(o.set(e,h),Promise.all(v.map(e=>e().catch(()=>{}))))},subscribe(e,t){let s=i.get(e);return s||(s=new Set,i.set(e,s)),s.add(t),()=>{s.delete(t),0===s.size&&i.delete(e)}},resolve(e,t,s){const n=o.get(e);for(const a of s){const s=n?.get(a);if(n?.delete(a),s)p(t,s.serverId);else{let t=l.get(e);t||l.set(e,t=new Set),t.add(a)}}},loadArtifact(e,a,l){if(e===Aw)return;const c=hFe(t,e),u=new Set(o.get(e)?.keys());(async(e,n)=>(await d("GET",fFe(t,e),void 0,n)).comments.filter(e=>"resolved"!==e.status).map(e=>pFe(e,s.current)))(a).then(t=>{if(r)return;const s=t.map(e=>({...e,target:{document:l,anchor:e.target.anchor}})),a=n.getQueryData(c)??Ew.load(e),d=function(e,t,s){const n=new Set(t.map(e=>e.id)),a=new Map(e.map(e=>[e.id,e])),i=[];for(const r of e)n.has(r.id)||s.has(r.id)||i.push(r);for(const r of t){const e=a.get(r.id);i.push(e&&e.updatedAt>r.updatedAt?e:r)}return i}(a,s,u),m=o.get(e)??new Map,p=new Set(s.map(e=>e.id));for(const e of s)m.set(e.id,{serverId:e.id,updatedAt:e.updatedAt});for(const e of u)p.has(e)||m.delete(e);o.set(e,m),function(e,t){if(e.length!==t.length)return!1;const s=new Map(e.map(e=>[e.id,e.updatedAt]));return t.every(e=>s.get(e.id)===e.updatedAt)}(a,d)||(n.setQueryData(c,d),(e=>{i.get(e)?.forEach(e=>e())})(e))}).catch(()=>{})},dispose(){r=!0,i.clear()}}}function vFe(){const{remoteStorageEnabled:t}=Lf(),s=Bn(),n=Iw(),a=e.useRef(n);a.current=n;const i=gL(),r=Nt("Mutation error");e.useEffect(()=>{if(!t||!s)return void Tw(Ew);const e=xFe({orgUuid:s,accountUuidRef:a,queryClient:i,jsonFetch:r});return Tw(e),()=>{e.dispose(),Tw(Ew)}},[t,s,i,r])}const yFe=5,bFe="raven_two_step_resume";function kFe(){const[t,s]=e.useState(!1),n=$(),a=ae(),i=e.useRef({setupIntentId:null,status:null,params:null});if(null===i.current.setupIntentId&&null===i.current.status&&"undefined"!=typeof window){const e=new URLSearchParams(window.location.search);let t=null;try{const e=sessionStorage.getItem(bFe);t=e?JSON.parse(e):null}catch{t=null}i.current={setupIntentId:e.get("setup_intent"),status:e.get("redirect_status"),params:t}}const r=null!==i.current.setupIntentId&&"succeeded"===i.current.status&&null!==i.current.params,o=null!==i.current.status&&"succeeded"!==i.current.status,{mutateAsync:l}=Rw({noToast:!0}),c=e.useCallback(async()=>{const{setupIntentId:e,params:t}=i.current;if(!r||null===e||null===t)throw new Error("resumeActivation called without a setup_intent redirect + persisted params");s(!0);try{let s;try{s=await l({...t,members:[],verified_setup_intent_id:e})}catch(o){const e=o instanceof cs?o.errorCode:null;if(a.track({event_key:"claudeai.pricing.payment_failed",error_type:"backend_subscription_error",error_code:e??void 0,error_message:o instanceof Error?o.message:void 0,action:"subscribe",plan_type:"team",is_team_trial:t.expects_trial,billing_interval:t.billingInterval,team_promo_offer_code:t.teamPromoOfferCode}),"team_trial_no_longer_eligible"===e)try{sessionStorage.removeItem(bFe)}catch{}throw o}if(s.idvRequirement&&!dL(s.idvRequirement.status)){try{sessionStorage.removeItem(bFe)}catch{}throw Object.assign(new Error("Identity verification required. Return to checkout to complete your purchase."),{code:"idv_required"})}if(s.clientSecret&&!s.isSetupIntent){const e=await Dw(s.entity,n);if(!e)throw Object.assign(new Error("Payment processor could not be loaded. You can try again."),{code:"stripe_load_failed"});const i=await e.confirmCardPayment(s.clientSecret);if(i.error){const e=i.error;throw a.track({event_key:"claudeai.pricing.payment_failed",error_type:e.type,error_code:e.code,error_message:e.message,action:"subscribe",plan_type:"team",is_team_trial:t.expects_trial,billing_interval:t.billingInterval,team_promo_offer_code:t.teamPromoOfferCode}),Object.assign(new Error(e.message??"Payment could not be completed. You can try again."),{code:e.code??e.type})}}try{sessionStorage.removeItem(bFe)}catch{}return Hw("success","new"),s}catch(o){throw"idv_required"!==o?.code&&Hw("failure","new",o),o}finally{s(!1)}},[a,n,l,r]);return{shouldResume:r,redirectFailed:o,resumeActivation:c,isPending:t}}function wFe(){const t=y("team_trial_override"),{account:s,activeOrganization:n}=v(),a=pe(),i=!t&&!!n&&!a,{data:r,isError:o,error:l}=B("/api/team-trial/exposure-eligible",{queryKey:["team_trial_exposure_eligible",s?.uuid],enabled:i,staleTime:6e5,meta:{noToast:!0}});if(e.useEffect(()=>{l&&F(l,{source:"team_trial_exposure_eligible"})},[l]),t)return!0;if(!n||a)return!1;if(o)return!1;if(void 0===r)return!1;if(!r.eligible)return!1;const c=Ll("team_trial_experiment",null);return!0===c?.enabled}function MFe(){const t=y("team_trial_override"),s=Pw(),{account:n,activeOrganization:a}=v(),i=pe(),r=!t&&!!a&&!i,{isPending:o,error:l}=B("/api/team-trial/exposure-eligible",{queryKey:["team_trial_exposure_eligible",n?.uuid],enabled:r,staleTime:6e5,meta:{noToast:!0}});return e.useEffect(()=>{l&&F(l,{source:"team_trial_exposure_eligible"})},[l]),!(t||!r)&&(o||s)}const _Fe="upgrade-pill-header-dismissed-at",jFe=new Set(["join-org-global-banner","pending-requests-global-banner"]);function SFe(t){const{isLoading:s}=v(),n=qn(),a=xe(),i=Wn(),r=!n&&!a&&!i,{isShowing:o,isLoading:l}=function(){const e=xQ("global-banner"),t=null!==e&&(!1!==e.enabled||jFe.has(e.key??"")),{isLoading:s}=vQ();return{isShowing:t,isLoading:s}}(),[c,d]=e.useState(!1);e.useEffect(()=>{d(!0)},[]);const[u]=xs(_Fe,null);return!(s||!r)&&(!o&&!l&&!(t&&(!c||null!==u)))}const LFe=e.memo(function({dismissible:s,surface:n,className:a}){const i=JS(),r=ae(),o=wFe(),l=o?"/upgrade?initialPlanType=team":"/upgrade",c=SFe(s),[,d]=xs(_Fe,null),u=e.useCallback(()=>{r.track({event_key:"claudeai.upgrade_pill_header.dismissed",surface:n}),d(Date.now())},[r,n,d]),m=e.useCallback(()=>{r.track({event_key:"claudeai.team_trial.cta_clicked",surface:n,pill_variant:o?"try_team_free":"upgrade",trial_badge_shown:o})},[r,n,o]);return c?t.jsx("div",{className:dt("flex w-full h-12 items-center justify-center pointer-events-none",a),children:t.jsxs("div",{className:"ml-0.5 inline-flex items-center gap-1.5 rounded-lg h-8 pl-2 pr-2.5 text-center font-small sm:font-base text-text-500 select-none transition-opacity duration-150 pointer-events-auto bg-bg-300",children:[t.jsx(XS,{defaultMessage:"Free plan",id:"B+7815cfpz"}),t.jsx("div",{className:"size-[3px] bg-text-500/30 rounded-full mt-0.5"}),t.jsx("span",{onClick:m,children:t.jsx(ds,{href:l,children:o?t.jsx(XS,{defaultMessage:"Try Team for free",id:"24Nw5R8Sxv"}):t.jsx(XS,{defaultMessage:"Upgrade",id:"0h/lPMeYkq"})})}),s&&t.jsx("button",{type:"button",onClick:u,"aria-label":i.formatMessage({defaultMessage:"Dismiss upgrade banner",id:"QPPobot6b4"}),className:"ml-1 -mr-1 flex size-5 items-center justify-center rounded-[4px] hover:bg-bg-400 transition-colors",children:t.jsx(Yt,{size:14})})]})}):null});function NFe(){const[t,s]=e.useState(!1),{track:n}=ae();return{reinstall:e.useCallback(async()=>{if(Uw?.openFeedbackAndConfirmReinstall){s(!0),n({event_key:"claudeai.desktop.cowork.reinstall_initiated"});try{const e=await Uw.openFeedbackAndConfirmReinstall({url:"",meta:void 0,source:void 0});!e.cancelled&&e.opened||(e.cancelled&&n({event_key:"claudeai.desktop.cowork.reinstall_cancelled"}),s(!1))}catch{s(!1)}}},[n]),isReinstalling:t}}const IFe=fT()(e=>({isOpen:!1,generation:0,source:"",sessionId:null,prefillText:"",open:({source:t,sessionId:s,prefillText:n})=>e(e=>({isOpen:!0,generation:e.generation+1,source:t,sessionId:s??null,prefillText:n??""})),close:()=>e({isOpen:!1,source:"",sessionId:null,prefillText:""})}));function TFe(){const e=ii(),t=y("cowork_feedback_bundle"),s=y("cowork_feedback_web_submit"),{orgAvailable:n}=ya();return e&&t&&(Boolean(Ow?.submitFeedback)||n&&s)}function AFe(){const e=TFe();return!sl()&&e}function EFe(){const t=TFe(),s=sl(),n=IFe(e=>e.open);return e.useCallback(e=>{s||t&&n(e)},[s,t,n])}function RFe({status:e,willTryRecover:s,probeTarget:n}){const a="probably_unreachable"===e,i=a||s,r=n?function(e){try{return new URL(e).host}catch{return e}}(n):void 0;return t.jsx("div",{className:"bg-bg-200 border-0.5 border-border-200 rounded-xl p-4 w-full max-w-2xl mx-auto mb-3",children:t.jsxs("div",{className:"flex items-start gap-3",children:[t.jsx("div",{className:"flex items-center justify-center pl-1.5 pt-0.5",children:i?t.jsx(fR,{className:"w-5 h-5 text-text-100 shrink-0 animate-spin"}):t.jsx(gR,{className:"w-5 h-5 text-danger-000 shrink-0",weight:"fill"})}),t.jsxs("div",{className:"flex flex-col gap-2 flex-1",children:[t.jsx("span",{className:"text-sm font-medium text-text-000",children:a?r?t.jsx(XS,{defaultMessage:"Sorry, it's taking a while to connect to your inference provider...",id:"Qe5TZgb1+q"}):t.jsx(XS,{defaultMessage:"Sorry, it's taking a while to connect to the Claude API...",id:"aXkp+uH6nt"}):s?t.jsx(XS,{defaultMessage:"Restarting Claude's workspace...",id:"Z1YbZQPAmC"}):t.jsx(XS,{defaultMessage:"Failed to start Claude's workspace",id:"XnBAq+0Uih"})}),a?t.jsx("span",{className:"text-sm text-text-300 break-words",children:r?t.jsx(XS,{defaultMessage:"Taking longer than expected to reach your inference provider ({host}). Still trying...",id:"M1xaCQwNr4",values:{host:r}}):t.jsx(XS,{defaultMessage:"Taking longer than expected to reach the Claude API. Still trying...",id:"rnm4E2yzzv"})}):t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"text-sm text-text-300 break-words",children:r?t.jsx(XS,{defaultMessage:"Can't reach your inference provider ({host}) from Claude's workspace.",id:"jDH/vSi1ah",values:{host:r}}):t.jsx(XS,{defaultMessage:"Can't reach the Claude API from Claude's workspace.",id:"XNyZla9cDK"})}),s?t.jsx("span",{className:"text-sm text-text-300",children:t.jsx(XS,{defaultMessage:"Trying a different networking mode. This may take a moment.",id:"mrakaXadUr"})}):t.jsx("span",{className:"text-sm text-text-300",children:t.jsx(XS,{defaultMessage:"Restarting Claude or reconnecting to your network sometimes resolves this.",id:"xIW1pHqqjM"})})]})]})]})})}const DFe=e.memo(function({deferProgressUntilSessionPending:s,sessionHostLoopMode:n,showProgressWhileVmOperationInFlight:a}){const i=F5(e=>e.vmDownloadStatus),r=F5(e=>e.vmRunningStatus),o=F5(e=>e.vmDownloadProgress),l=F5(e=>e.vmDownloadError),c=F5(e=>e.downloadClaudeVM),d=F5(e=>e.isAwaitingVMForSession),u=function(){const t=m({platform:"windows"}),s=F5(e=>"VMP_NOT_ENABLED"===e.vmDownloadError),[n,a]=e.useState(()=>t?s?"not_enabled":"checking":null),[i,r]=e.useState(),[o,l]=e.useState(0),c=e.useRef(null);e.useEffect(()=>{s&&a("not_enabled")},[s]),e.useEffect(()=>{if(!t||!fr?.checkVirtualMachinePlatform)return;let e=!1;return fr.checkVirtualMachinePlatform().then(t=>{e||a(t?null:"not_enabled")}),()=>{e=!0}},[t]),e.useEffect(()=>()=>{c.current&&clearInterval(c.current)},[]);const d=e.useCallback(()=>{c.current&&clearInterval(c.current),l(0);const e=Date.now();c.current=setInterval(()=>{const t=Date.now()-e,s=Math.min(95,Math.round(t/2e4*100));l(s)},200)},[]),u=e.useCallback(()=>{c.current&&(clearInterval(c.current),c.current=null)},[]);return{state:n,errorMessage:i,enableProgress:o,handleEnable:e.useCallback(()=>{fr?.enableVirtualMachinePlatform&&(a("enabling"),r(void 0),d(),fr.enableVirtualMachinePlatform().then(e=>{u(),e.success?(l(100),a(e.restartNeeded?"enabled_restart_needed":null),F5.setState({vmDownloadError:null})):(a("error"),r(e.error))}))},[d,u]),handleRestart:e.useCallback(()=>{fr?.restartAfterVMPInstall&&fr.restartAfterVMPInstall()},[])}}(),p=Fw(),f=e.useCallback(()=>{c()},[c]),g=AFe(),h=EFe(),C=Me(),x=e.useCallback(()=>{h({source:"vm_download_banner",sessionId:"local_session"===C?.type?C.sessionId:void 0})},[h,C]),{reinstall:v,isReinstalling:y}=NFe(),{copyToClipboard:b,didCopy:k}=xN(),w=e.useCallback(()=>{b('Claude\'s workspace failed to start with HRESULT 0x80070569 (ERROR_LOGON_TYPE_NOT_GRANTED).\n\nThe Hyper-V worker process runs under the principal "NT VIRTUAL MACHINE\\Virtual Machines" (SID S-1-5-83-0), which requires the "Log on as a service" user right (SeServiceLogonRight). Group Policy or Local Security Policy currently denies this.\n\nTo fix: add SID S-1-5-83-0 to the "Log on as a service" user-rights assignment in the Group Policy or Local Security Policy applied to this device. This is the same right Hyper-V and WSL2 require.\n\nAlso confirm S-1-5-83-0 is not listed under "Deny log on as a service" (SeDenyServiceLogonRight) \u2014 deny overrides allow.')},[b]),M=e.useCallback(()=>{b("Claude's workspace failed to start with HRESULT 0x80370102 (hypervisor not running).\n\nHardware virtualization (Intel VT-x or AMD-V) is disabled in this device's firmware. Enable it in BIOS/UEFI settings and restart. On devices with a firmware password or vendor management (Dell Command, HP BCU, Lenovo, vPro), this may need to be changed via that tool.")},[b]),_="downloading"===i||"ready"===i&&"booting"===r;if(n&&!l&&null===u.state&&(!a||!_))return null;if("checking"===u.state)return null;if("not_enabled"===u.state)return t.jsxs("div",{className:"bg-bg-200 border-0.5 border-border-200 rounded-xl p-3 flex items-center gap-3 w-full max-w-2xl mx-auto mb-3",children:[t.jsx("div",{className:"flex items-center justify-center pl-1.5",children:t.jsx(Ft,{className:"w-5 h-5 text-text-300 shrink-0"})}),t.jsxs("div",{className:"flex-1 text-sm text-text-100",children:[t.jsx("span",{className:"font-medium",children:t.jsx(XS,{defaultMessage:"Additional setup needed",id:"iDWlHzm7XW"})})," ",t.jsx(XS,{defaultMessage:"A Windows feature needs to be enabled to give Claude a secure workspace.",id:"6fXbyFQilr"})]}),t.jsx(kt,{onClick:u.handleEnable,size:"sm",children:t.jsx(XS,{defaultMessage:"Enable",id:"TqSTI0/TZI"})})]});if("enabling"===u.state)return t.jsx("div",{className:"bg-bg-200 border-0.5 border-border-200 rounded-xl p-3 w-full max-w-2xl mx-auto mb-3",children:t.jsxs("div",{className:"flex items-start gap-3",children:[t.jsx("div",{className:"flex items-center justify-center pl-1.5 pt-1",children:t.jsx(Ft,{className:"w-5 h-5 text-text-300 shrink-0"})}),t.jsxs("div",{className:"flex-1 flex flex-col gap-1",children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsx("span",{className:"text-sm font-medium text-text-100",children:t.jsx(XS,{defaultMessage:"Setting up...",id:"P8gP5mOyCi"})}),t.jsx("span",{className:"text-xs text-text-400 tabular-nums",children:t.jsx(XS,{defaultMessage:"{percent}%",id:"9hSgu8oT87",values:{percent:u.enableProgress}})})]}),t.jsx("div",{role:"progressbar","aria-valuenow":u.enableProgress,"aria-valuemin":0,"aria-valuemax":100,"aria-label":"Setup progress",className:"h-1 w-full bg-border-200 rounded-full overflow-hidden",children:t.jsx("div",{className:"h-full bg-text-100 rounded-full transition-all duration-300",style:{width:`${u.enableProgress}%`}})})]})]})});if("enabled_restart_needed"===u.state)return t.jsxs("div",{className:"bg-bg-200 border-0.5 border-border-200 rounded-xl p-3 flex items-center gap-3 w-full max-w-2xl mx-auto mb-3",children:[t.jsx("div",{className:"flex items-center justify-center pl-1.5",children:t.jsx(Ft,{className:"w-5 h-5 text-text-300 shrink-0"})}),t.jsx("div",{className:"flex-1 text-sm text-text-100",children:t.jsx(XS,{defaultMessage:"Restart your computer to finish setup.",id:"JuUnnxQcac"})}),t.jsx(kt,{onClick:u.handleRestart,size:"sm",children:t.jsx(XS,{defaultMessage:"Restart now",id:"XmVt+hh5k+"})})]});if("error"===u.state)return t.jsx("div",{className:"bg-bg-200 border-0.5 border-border-200 rounded-xl p-4 w-full max-w-2xl mx-auto mb-3",children:t.jsxs("div",{className:"flex items-start gap-3",children:[t.jsx("div",{className:"flex items-center justify-center pl-1.5 pt-0.5",children:t.jsx(gR,{className:"w-5 h-5 text-danger-000 shrink-0",weight:"fill"})}),t.jsxs("div",{className:"flex flex-col gap-2 flex-1",children:[t.jsx("span",{className:"text-sm font-medium text-text-000",children:t.jsx(XS,{defaultMessage:"Setup could not be completed",id:"nP3c85J66K"})}),u.errorMessage&&t.jsx("span",{className:"text-sm text-text-300 break-words",children:u.errorMessage}),t.jsx("div",{className:"flex gap-2 mt-1",children:t.jsx(kt,{onClick:u.handleEnable,size:"sm",variant:"secondary",children:t.jsx(XS,{defaultMessage:"Retry",id:"62nsdyMyIO"})})})]})]})});if("ready"===p.state&&p.result.reachability===Vw.ProbablyUnreachable)return t.jsx(RFe,{status:"probably_unreachable",willTryRecover:p.result.willTryRecover,probeTarget:p.result.probeTarget});if("ready"===p.state&&p.result.reachability===Vw.Unreachable)return t.jsx(RFe,{status:"unreachable",willTryRecover:p.result.willTryRecover,probeTarget:p.result.probeTarget});if(!function(e,t){return!("checking"===e||"ready"===e&&"ready"===t||"downloading"!==e&&"not_downloaded"!==e&&"error"!==e&&("ready"!==e||"booting"!==t&&"offline"!==t))}(i,r))return null;const j="downloading"===i,S="error"===i,L="ready"===i&&("booting"===r||"offline"===r),N=l&&"ready"!==r;if(s&&!d&&!N&&!S&&(j||L))return null;const I="network_connection_failed"===l,T="HYPERVISOR_VIRT_DISABLED"===l,A="HYPERVISOR_SERVICE_ERROR"===l,E="VM_LOGON_RIGHT_DENIED"===l,R="VM_DISK_SPACE_INSUFFICIENT"===l,D=I&&zw();if(N&&E)return t.jsx("div",{className:"bg-bg-200 border-0.5 border-border-200 rounded-xl p-4 w-full max-w-2xl mx-auto mb-3",children:t.jsxs("div",{className:"flex items-start gap-3",children:[t.jsx("div",{className:"flex items-center justify-center pl-1.5 pt-0.5",children:t.jsx(gR,{className:"w-5 h-5 text-danger-000 shrink-0",weight:"fill"})}),t.jsxs("div",{className:"flex flex-col gap-2 flex-1",children:[t.jsx("span",{className:"text-sm font-medium text-text-000",children:t.jsx(XS,{defaultMessage:"A Windows security policy is blocking Claude's workspace",id:"vnWh2lYNYA"})}),t.jsx("span",{className:"text-sm text-text-300",children:t.jsx(XS,{defaultMessage:"A Windows user-rights policy is preventing the virtualization service from signing in. The details below describe what needs to change.",id:"lREZ+nmQDo"})}),t.jsx("div",{className:"flex",children:t.jsx(kt,{size:"sm",variant:"secondary",onClick:w,children:k?t.jsx(XS,{defaultMessage:"Copied",id:"p556q3uvbn"}):t.jsx(XS,{defaultMessage:"Copy details",id:"HO922/quOT"})})})]})]})});if(N&&R)return t.jsx("div",{className:"bg-bg-200 border-0.5 border-border-200 rounded-xl p-4 w-full max-w-2xl mx-auto mb-3",children:t.jsxs("div",{className:"flex items-start gap-3",children:[t.jsx("div",{className:"flex items-center justify-center pl-1.5 pt-0.5",children:t.jsx(gR,{className:"w-5 h-5 text-danger-000 shrink-0",weight:"fill"})}),t.jsxs("div",{className:"flex flex-col gap-2 flex-1",children:[t.jsx("span",{className:"text-sm font-medium text-text-000",children:t.jsx(XS,{defaultMessage:"Not enough disk space",id:"HFpcGWCIwR"})}),t.jsx("span",{className:"text-sm text-text-300",children:t.jsx(XS,{defaultMessage:"Not enough disk space to set up the workspace. Free up space and try again.",id:"88MPmi3Kex"})}),t.jsx("div",{className:"flex",children:t.jsx(kt,{size:"sm",variant:"secondary",onClick:f,children:t.jsx(XS,{defaultMessage:"Retry",id:"62nsdyMyIO"})})})]})]})});if(N&&(T||A))return t.jsx("div",{className:"bg-bg-200 border-0.5 border-border-200 rounded-xl p-4 w-full max-w-2xl mx-auto mb-3",children:t.jsxs("div",{className:"flex items-start gap-3",children:[t.jsx("div",{className:"flex items-center justify-center pl-1.5 pt-0.5",children:t.jsx(gR,{className:"w-5 h-5 text-danger-000 shrink-0",weight:"fill"})}),t.jsxs("div",{className:"flex flex-col gap-2 flex-1",children:[t.jsx("span",{className:"text-sm font-medium text-text-000",children:t.jsx(XS,{defaultMessage:"Virtualization is not available",id:"LQVRf8E+Is"})}),t.jsx("span",{className:"text-sm text-text-300",children:T?t.jsx(XS,{defaultMessage:"Claude's workspace requires hardware virtualization. Enable virtualization in your computer's BIOS/UEFI settings, then restart.",id:"sp6+8env02"}):t.jsx(XS,{defaultMessage:"Claude's workspace requires Virtual Machine Platform, but the virtualization service isn't responding. Restart your computer to resolve this.",id:"CHu5QEqjCV"})}),T&&t.jsx("div",{className:"flex",children:t.jsx(kt,{size:"sm",variant:"secondary",onClick:M,children:k?t.jsx(XS,{defaultMessage:"Copied",id:"p556q3uvbn"}):t.jsx(XS,{defaultMessage:"Copy details",id:"HO922/quOT"})})})]})]})});if(N){const e=e=>t.jsx(ds,{onClick:v,disabled:y,children:e}),s=e=>t.jsx(ds,{onClick:x,children:e}),n=()=>D?g?t.jsx(XS,{defaultMessage:"Updating to macOS 26 or later may resolve this. If it persists, you can <reinstall>reinstall the workspace</reinstall> or <link>share your debug logs</link> to help us improve.",id:"zWJmgAunSv",values:{reinstall:e,link:s}}):t.jsx(XS,{defaultMessage:"Updating to macOS 26 or later may resolve this. If it persists, you can <reinstall>reinstall the workspace</reinstall>.",id:"cEp47b4Rtm",values:{reinstall:e}}):g?t.jsx(XS,{defaultMessage:"Restarting Claude or your computer sometimes resolves this. If it persists, you can <reinstall>reinstall the workspace</reinstall> or <link>share your debug logs</link> to help us improve.",id:"AQcrFRlB8c",values:{reinstall:e,link:s}}):t.jsx(XS,{defaultMessage:"Restarting Claude or your computer sometimes resolves this. If it persists, you can <reinstall>reinstall the workspace</reinstall>.",id:"lA9a8fTnnZ",values:{reinstall:e}});return t.jsx("div",{className:"bg-bg-200 border-0.5 border-border-200 rounded-xl p-4 w-full max-w-2xl mx-auto mb-3",children:t.jsxs("div",{className:"flex items-start gap-3",children:[t.jsx("div",{className:"flex items-center justify-center pl-1.5 pt-0.5",children:t.jsx(gR,{className:"w-5 h-5 text-danger-000 shrink-0",weight:"fill"})}),t.jsxs("div",{className:"flex flex-col gap-2 flex-1",children:[t.jsx("span",{className:"text-sm font-medium text-text-000",children:t.jsx(XS,{defaultMessage:"Failed to start Claude's workspace",id:"XnBAq+0Uih"})}),t.jsx("span",{className:"text-sm text-text-300 break-words",children:I?t.jsx(XS,{defaultMessage:"Your computer isn't providing a network connection to Claude's workspace.",id:"IkzJzNSsLa"}):l}),t.jsx("span",{className:"text-sm text-text-300",children:n()})]})]})})}return j?t.jsx("div",{className:"bg-bg-200 border-0.5 border-border-200 rounded-xl p-3 w-full max-w-2xl mx-auto mb-3",children:t.jsxs("div",{className:"flex items-start gap-3",children:[t.jsx("div",{className:"flex items-center justify-center pl-1.5 pt-1",children:t.jsx(Ot,{className:"w-5 h-5 text-text-100 shrink-0"})}),t.jsxs("div",{className:"flex-1 flex flex-col gap-1",children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsx("span",{className:"text-sm font-medium text-text-100",children:t.jsx(XS,{defaultMessage:"Setting up Claude's workspace...",id:"tcwkRQCAtr"})}),t.jsx("span",{className:"text-xs text-text-400 tabular-nums",children:t.jsx(XS,{defaultMessage:"{percent}%",id:"9hSgu8oT87",values:{percent:o}})})]}),t.jsx("div",{role:"progressbar","aria-valuenow":o,"aria-valuemin":0,"aria-valuemax":100,"aria-label":"Download progress",className:"h-1 w-full bg-border-200 rounded-full overflow-hidden",children:t.jsx("div",{className:"h-full bg-text-100 rounded-full transition-all duration-300",style:{width:`${o}%`}})})]})]})}):L?t.jsx("div",{className:"bg-bg-200 border-0.5 border-border-200 rounded-xl p-3 w-full max-w-2xl mx-auto mb-3",children:t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx("div",{className:"flex items-center justify-center pl-1.5",children:t.jsx(fR,{className:"w-5 h-5 text-text-100 shrink-0 animate-spin"})}),t.jsx("span",{className:"text-sm font-medium text-text-100",children:t.jsx(XS,{defaultMessage:"Starting Claude's workspace...",id:"Wc54AMFSDg"})})]})}):"not_downloaded"===i?t.jsxs("div",{className:"bg-bg-200 border-0.5 border-border-200 rounded-xl p-3 flex items-center gap-3 w-full max-w-2xl mx-auto mb-3",children:[t.jsx("div",{className:"flex items-center justify-center pl-1.5",children:t.jsx(Ft,{className:"w-5 h-5 text-text-300 shrink-0"})}),t.jsxs("div",{className:"flex-1 text-sm text-text-100",children:[t.jsx("span",{className:"font-medium",children:t.jsx(XS,{defaultMessage:"Get set up for agent mode.",id:"gvsQXQUuhp"})})," ",t.jsx(XS,{defaultMessage:"Download a one-time package to give Claude a secure workspace on your computer.",id:"X3UznvsDAH"})]}),t.jsx(kt,{onClick:f,size:"sm",children:t.jsx(XS,{defaultMessage:"Download",id:"5q3qC0sC3r"})})]}):S?t.jsxs("div",{className:"bg-bg-200 border-0.5 border-border-200 rounded-xl p-3 flex items-center gap-3 w-full max-w-2xl mx-auto mb-3",children:[t.jsx("div",{className:"flex items-center justify-center pl-1.5",children:t.jsx(Ft,{className:"w-5 h-5 text-text-300 shrink-0"})}),t.jsx("div",{className:"flex-1 text-sm text-text-100",children:t.jsx(XS,{defaultMessage:"Download failed. You can try again.",id:"QtXnC6nVbl"})}),t.jsx(kt,{onClick:f,size:"sm",children:t.jsx(XS,{defaultMessage:"Retry",id:"62nsdyMyIO"})})]}):null});function HFe(e){return"/new"===e||"/ask-your-org"===e||e.startsWith("/chat/")||e.startsWith("/project/")}const PFe=new Set(["buttery","airy","mellow","glassy","rounded"]);function UFe(e){return e||(function(){try{const e=localStorage.getItem("claude-selected-voice");if(e&&PFe.has(e))return e}catch{}return null}()??"buttery")}const OFe=e.memo(({organizationUuid:s,conversationUuid:n,projectUuid:a,children:i,onTranscriptUpdate:r,shouldFlushOnMount:o=!0})=>{const l=e.useRef(null),c=e.useRef(!1);e.useEffect(()=>{Vg.getState().setIsSupported(Tue.isSupported())},[]),function(){const{track:t}=ae();e.useEffect(()=>(_ue.setTrackSink(e=>t({...e,event_key:e.event_key})),Vg.subscribe((e,s)=>{const n=s.state.status,a=e.state.status,i=e.conversationUuid??"";if(n!==a){if("connecting"===n&&"listening"===a&&t({event_key:"voice_session_started",conversation_uuid:i,..._ue.getSessionStartedPayload()}),"speaking"===n&&"listening"===a){const s=e.turnInterruptOutcome??"completed";t({event_key:"voice_turn_completed",conversation_uuid:i,..._ue.getTurnCompletedPayload(s)}),null!==e.turnInterruptOutcome&&Vg.getState().setTurnInterruptOutcome(null)}"error"===a&&(t({event_key:"voice_session_error",conversation_uuid:i,..._ue.getSessionErrorPayload()}),bue.has(n)&&t({event_key:"voice_session_ended",conversation_uuid:i,..._ue.getSessionEndedPayload()}))}})),[t])}();const d=gL(),{account:u,activeOrganization:m}=v(),p=NAe(),f=y("voice_web_opus_output"),g=y("cai_voice_dictation_parity"),h=e.useRef(a);e.useEffect(()=>{const e=h.current;h.current=a,g&&void 0!==e&&void 0!==a&&e!==a&&Tue.isActive()&&(Tue.stop("navigation"),Vg.getState().setIsOverlayOpen(!1),l.current&&(clearTimeout(l.current),l.current=null))},[a,g]);const[C,x]=e.useState(!1);e.useEffect(()=>{if(!("AudioDecoder"in window))return;let e=!1;return AudioDecoder.isConfigSupported({codec:"opus",sampleRate:48e3,numberOfChannels:1}).then(t=>{!e&&t.supported&&x(!0)}).catch(()=>{}),()=>{e=!0}},[]);const b=f&&C,k=y("voice_web_audioworklet_sink"),w=ze("voice_web_playback_prebuffer_ms","value",0,Ut),M=y("voice_client_metrics_ws_reporting"),_=y("voice_web_mic_failure_ux"),j=y("voice_web_enriched_abort_reasons"),S=y("voice_web_disable_apm_m4_macos26"),L=y("convo_interrupt_keep_full_text"),N=u?.settings.voice_preference,I=u?.settings.voice_speed;e.useEffect(()=>{const e=UFe(N);Vg.setState({voice:e})},[N]);const T=e.useRef(m?.uuid);T.current=m?.uuid;const A=e.useRef(n);A.current=n;const E=ai(),R=e.useCallback(()=>{const e=T.current,t=Tue.getConversationUuid()??n;e&&d.refetchQueries({queryKey:[Zw,{orgUuid:e},{uuid:t}]})},[d,n]),D=e.useCallback((e,t,s=!1)=>{const n=Vg.getState().lastVoiceModel;fetch(`/api/organizations/${t}/chat_conversations/${e}?tree=True&rendering_mode=messages&render_all_tools=true`).then(e=>{if(!e.ok)throw new Error(`Voice tree fetch failed: ${e.status}`);return e.json()}).then(a=>{if(Vg.getState().isKaraokeActive)return tue("fetchAndMergeServerTree: deferred (karaoke active)"),void setTimeout(()=>D(e,t,s),1e3);const i=Bw(a),r=new Set(i.chat_messages.map(e=>e.uuid)),o=d.getQueryData([Zw,{orgUuid:t},{uuid:e},{returnDanglingHumanMessage:!1}]),l=Ce.getState().getConversationMessages(e),c=i.chat_messages[i.chat_messages.length-1];c&&Vg.getState().setLastServerLeafMessageUuid(c.uuid),tue("fetchAndMergeServerTree:",{serverModel:i.model,voiceModel:n,lastServerLeafUuid:c?.uuid,serverMessageCount:i.chat_messages.length,serverMessageUuids:i.chat_messages.map(e=>`${e.sender}:${e.uuid}`),clientCacheMessageCount:o?.chat_messages.length,clientCacheMessageUuids:o?.chat_messages.map(e=>`${e.sender}:${e.uuid}`),zustandMessageCount:l?.length,zustandMessageUuids:l?.map(e=>`${e.sender}:${e.uuid}`)});for(const s of[!0,!1])d.setQueryData([Zw,{orgUuid:t},{uuid:e},{returnDanglingHumanMessage:s}],e=>{if(!e)return i;const t=e.chat_messages.filter(e=>!r.has(e.uuid));tue("fetchAndMergeServerTree: merging",{returnDanglingHumanMessage:s,clientTotal:e.chat_messages.length,serverTotal:i.chat_messages.length,clientOnly:t.length});const a=[...i.chat_messages,...t].sort((e,t)=>(e.index??0)-(t.index??0)),o=new Map(i.messageByUuid),l=new Map(i.parentByChildUuid),c=new Map(i.childrenByParentUuid),d=new Map(i.selectedChildByUuid);for(const s of t){o.set(s.uuid,s);const e=s.parent_message_uuid??Bg;l.set(s.uuid,e);const t=c.get(e)??[];t.includes(s.uuid)||c.set(e,[...t,s.uuid])}for(const[s,n]of e.selectedChildByUuid)d.has(s)||d.set(s,n);return{...i,model:i.model??n??void 0,chat_messages:a,current_leaf_message_uuid:e.current_leaf_message_uuid??i.current_leaf_message_uuid,messageByUuid:o,parentByChildUuid:l,childrenByParentUuid:c,selectedChildByUuid:d}});s&&!i.model&&n&&fetch(`/api/organizations/${t}/chat_conversations/${e}?rendering_mode=raw`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:n})})}).catch(e=>{tue("fetchAndMergeServerTree: fetch failed",e)})},[d]),H=e.useCallback(()=>{Tue.isActive()||Vg.getState().isKaraokeActive||R()},[R]),P=e.useCallback((e,t,s,a,i)=>{const r=T.current,o=Tue.getConversationUuid()??n;tue("handleAssistantTurnComplete called",{textLen:e?.length,messageUuid:t,parentMessageUuid:s,targetUuid:o,hasOrgUuid:!!r});const l=d.getQueryData([Zw,{orgUuid:r},{uuid:o},{returnDanglingHumanMessage:!1}]);if(tue("handleAssistantTurnComplete: cached conversation.model =",l?.model),!r||!e&&(!i||0===i.length))return;const u=(new Date).toISOString();for(const n of[!0,!1])d.setQueryData([Zw,{orgUuid:r},{uuid:o},{returnDanglingHumanMessage:n}],r=>{if(!r)return tue("tree cache updater: prev is undefined",{returnDanglingHumanMessage:n}),r;tue("tree cache updater: prev exists",{returnDanglingHumanMessage:n,prevMsgCount:r.chat_messages.length,prevTreeSize:r.messageByUuid.size});const o=r.current_leaf_message_uuid,l=o?r.messageByUuid.get(o):r.chat_messages[r.chat_messages.length-1],c=s,d=!c||r.chat_messages.some(e=>e.uuid===c);let m=r.chat_messages;const p=new Map(r.messageByUuid),f=new Map(r.parentByChildUuid),g=new Map(r.childrenByParentUuid),h=new Map(r.selectedChildByUuid);if(!d&&c){const e=l?.uuid??Bg,t={uuid:c,sender:"human",content:[{type:"text",text:a??""}],created_at:u,updated_at:u,attachments:[],files:[],files_v2:[],sync_sources:[],index:r.chat_messages.length,input_mode:"voice",parent_message_uuid:e};m=[...r.chat_messages,t],p.set(c,t),f.set(c,e);const s=g.get(e)??[];s.includes(c)||g.set(e,[...s,c]);const n=(g.get(e)??[]).indexOf(c);n>=0&&h.set(e,n)}const C=a?m.map(e=>"human"===e.sender&&e.uuid===(c??l?.uuid)?{...e,content:[{type:"text",text:a}]}:e):m,x=t,v=C.some(e=>e.uuid===x),y=v?f.get(x)??c??Bg:c??l?.uuid??Bg,b={uuid:x,sender:"assistant",content:i&&i.length>0?i:[{type:"text",text:e}],created_at:u,updated_at:u,attachments:[],files:[],files_v2:[],sync_sources:[],index:v?C.findIndex(e=>e.uuid===x):C.length,parent_message_uuid:y},k=v?C.map(e=>e.uuid===x?b:e):[...C,b];p.set(x,b),f.set(x,y);const w=g.get(y)??[];w.includes(x)||g.set(y,[...w,x]);const M=(g.get(y)??[]).indexOf(x);if(M>=0&&h.set(y,M),a){const e=c??l?.uuid;if(e){const t=C.find(t=>t.uuid===e);t&&p.set(e,t)}}return{...r,chat_messages:k,current_leaf_message_uuid:v?r.current_leaf_message_uuid:x,messageByUuid:p,parentByChildUuid:f,childrenByParentUuid:g,selectedChildByUuid:h}});!c.current&&r&&o&&(c.current=!0,D(o,r))},[d,n,D]);e.useEffect(()=>{const e=window.location.pathname;return Tue.registerCallbacks({onRefetchConversationTree:H,onAssistantTurnComplete:P,onMessageLimit:e=>{const t=T.current,s=Tue.getConversationUuid()??A.current;t&&s&&E(e,t,s)},onSessionEnd:(e,t)=>{const s=e??A.current,n=T.current;n&&s&&(D(s,n,!0),qw(d,n)),c.current=!1,tue("onSessionEnd: scheduling overlay close"),l.current=setTimeout(()=>{tue("onSessionEnd: closing overlay"),Vg.getState().setIsOverlayOpen(!1)},1e3)}}),o&&Tue.flush(),()=>{g&&Tue.isActive()&&!function(e,t){if(t===e)return!0;if("/new"!==(s=e)&&"/ask-your-org"!==s&&!s.startsWith("/project/"))return!1;var s;const n=Tue.getConversationUuid();return!!n&&t===`/chat/${n}`}(e,window.location.pathname)&&(Tue.stop("navigation"),Vg.getState().setIsOverlayOpen(!1)),Tue.unregisterCallbacks()}},[H,P,D,d,o,g,E]),e.useEffect(()=>{if(!r)return;let e=Vg.getState().transcripts;return Vg.subscribe(t=>{t.transcripts!==e&&(e=t.transcripts,r(t.transcripts))})},[r]);const U=e.useCallback(async()=>{const e=Vg.getState(),t=UFe(N),i=function(e){if("number"==typeof e&&gie(e))return e;try{const e=parseFloat(localStorage.getItem(mie)??"");if(gie(e))return e}catch{}return 1}(I),{entryPage:r}=function(e,t){const s=e?.match(/^\/project\/([^/?#]+)/);let n;return n=e?.includes("/chat/")?"chat":s||t?"project":"/new"===e?"new":"chat",{entryPage:n}}(WC.getState().pathname,a);let l=n;o||gk.current===n||(tue("start: render-captured next-conversation uuid was stale; using the current singleton"),l=gk.current),await Tue.start({accountUuid:u?.uuid??"",organizationUuid:s,conversationUuid:l,entryPage:r,projectUuid:a,voice:t??e.voice,model:e.model??void 0,effort:e.effort??void 0,thinkingMode:e.thinkingMode??void 0,voiceConfig:{language:p,ttsSpeed:i},outputFormat:b?"opus":"pcm",allowWorkletSink:k,playbackPrebufferMs:w,wsClientMetricsReporting:M,silentFailureUxEnabled:_,enrichedAbortReasons:j,interruptKeepFullText:L,disableApmOnAffectedMac:S})},[u?.uuid,s,n,a,o,N,I,p,b,k,w,M,_,j,L,S]),O=e.useCallback(()=>{l.current&&(clearTimeout(l.current),l.current=null),Tue.stop(),Vg.getState().setIsOverlayOpen(!1)},[]),F=e.useCallback(()=>{Tue.interrupt()},[]),V=e.useCallback(()=>{Tue.toggleMute()},[]),z=e.useCallback(()=>{Vg.getState().setIsOverlayOpen(!0)},[]),Z=e.useCallback(()=>{l.current&&(clearTimeout(l.current),l.current=null);const e=Vg.getState().state;"idle"!==e.status&&"error"!==e.status&&Tue.stop(),Vg.getState().setIsOverlayOpen(!1)},[]),B=e.useCallback(e=>{Tue.setVoice(e)},[]);return e.useEffect(()=>(Vg.getState().setActions({start:U,stop:O,interrupt:F,toggleMute:V,openOverlay:z,closeOverlay:Z,setVoice:B}),()=>{const e=()=>{};Vg.getState().setActions({start:async()=>{},stop:e,interrupt:e,toggleMute:e,openOverlay:e,closeOverlay:e,setVoice:e})}),[U,O,F,V,z,Z,B]),e.useEffect(()=>()=>{l.current&&clearTimeout(l.current)},[]),t.jsx(t.Fragment,{children:i})});OFe.displayName="VoiceModeProvider";const FFe=e.memo(({organizationUuid:e,conversationUuid:s,projectUuid:n,children:a,onTranscriptUpdate:i,shouldFlushOnMount:r})=>t.jsx(OFe,{organizationUuid:e,conversationUuid:s,projectUuid:n,onTranscriptUpdate:i,shouldFlushOnMount:r,children:a}));function VFe(){return UC(e=>e.isFloatingPenguinMini)}function zFe(e){Ww?.requestSetMiniExpanded?.(e)}FFe.displayName="VoiceModeWrapper";const ZFe=fT()(e=>({debugInfo:void 0,setDebugInfo:t=>e({debugInfo:t})}));var BFe=(e=>(e.Connected="connected",e.Working="working",e.Editing="editing",e.Disconnected="disconnected",e))(BFe||{});const qFe=globalThis["claude.officeAddin"]?.OfficeAddinFiles,WFe=fT(e=>({connectedFiles:[],selectedFileId:null,isFeatureEnabled:!1,isInitialized:!1,currentConversationUuid:null,currentIsStreaming:!1,currentSessionTitle:void 0,_setFiles:t=>e({connectedFiles:t}),_addFile:t=>e(e=>({connectedFiles:[...e.connectedFiles,t]})),_updateFile:t=>e(e=>({connectedFiles:e.connectedFiles.map(e=>e.id===t.id?t:e)})),_removeFile:t=>e(e=>({connectedFiles:e.connectedFiles.filter(e=>e.id!==t)})),_setSelectedFileId:t=>e({selectedFileId:t}),_setFeatureEnabled:t=>e({isFeatureEnabled:t}),_setInitialized:()=>e({isInitialized:!0}),_setCurrentConversation:(t,s,n)=>e({currentConversationUuid:t,currentIsStreaming:s,currentSessionTitle:n})}));function $Fe(e){const t=WFe.getState();t._setFiles(e.files),t._setSelectedFileId(e.selectedFileId??null),t._setFeatureEnabled(e.isFeatureEnabled),t._setInitialized()}let GFe,KFe,YFe,QFe,JFe;function XFe(e,t,s){try{const n=Ce.getState().getConversationMessages(e);if(!n||0===n.length)return null;let a;if(s)a=s;else for(let e=n.length-1;e>=0;e--){const t=n[e];if("human"===t.sender){const e=Le(t);if(e){a=e.slice(0,100),e.length>100&&(a+="...");break}}}let i="";if(!t){const e=n[n.length-1];if("assistant"===e?.sender){const t=Le(e);t&&(i=t.slice(0,150),t.length>150&&(i+="..."))}}if(!a)return null;const r=10,o=500,l=n.slice(-r).map(e=>{const t=Le(e),s=t.length>o?t.slice(0,o)+"...":t;return{role:"human"===e.sender?"user":"assistant",content:s}}).filter(e=>e.content.length>0);return{summary:i,taskTitle:a,conversationId:e,isStreaming:t,messagesForCompaction:JSON.stringify(l)}}catch{return null}}function eVe(){const e=WFe.getState();if(e.isInitialized)return;if(!qFe)return void e._setInitialized();const t=qFe.connectedFilesStateStore;t?.getState?(t.getState().then($Fe),!GFe&&t?.onStateChange&&(GFe=t.onStateChange($Fe)),!KFe&&qFe.onOnFileAdded&&(KFe=qFe.onOnFileAdded(e=>{const t=WFe.getState();t.connectedFiles.find(t=>t.id===e.id)?t._updateFile(e):t._addFile(e)})),!YFe&&qFe.onOnFileStateChanged&&(YFe=qFe.onOnFileStateChanged(e=>{WFe.getState()._updateFile(e)})),!QFe&&qFe.onOnFileRemoved&&(QFe=qFe.onOnFileRemoved(e=>{WFe.getState()._removeFile(e)})),!JFe&&qFe?.onOnAddinNeedsContext&&(JFe=qFe.onOnAddinNeedsContext(()=>{const{currentConversationUuid:e,currentIsStreaming:t,currentSessionTitle:s}=WFe.getState();if(!e)return;const n=XFe(e,t,s);qFe?.updateActiveConversationSummary?.(n)}))):e._setInitialized()}function tVe(){return eVe(),WFe(hT(e=>({isFeatureEnabled:e.isFeatureEnabled,connectedFiles:e.connectedFiles,selectedFileId:e.selectedFileId,isInitialized:e.isInitialized})))}async function sVe(e){return!!qFe?.focusFile&&qFe.focusFile(e)}async function nVe(e){return!!qFe?.selectFile&&qFe.selectFile(e)}function aVe({conversationUuid:t,messageCount:s,isStreaming:n,sessionTitle:a}){return function(t,s,n,a){const{isFeatureEnabled:i,connectedFiles:r}=tVe(),o=e.useRef(null),l=e.useRef(0),c=e.useRef(!1);e.useEffect(()=>{WFe.getState()._setCurrentConversation(t,n,a)},[t,n,a]),e.useEffect(()=>{const e=r.some(e=>e.status!==BFe.Disconnected);if(!i||!e||!t)return o.current=t,l.current=s,void(c.current=n);const d=t!==o.current,u=s>l.current,m=!c.current&&n,p=c.current&&!n;if(d&&null!==o.current||u&&l.current>0||m||p){const e=XFe(t,n,a);qFe?.updateActiveConversationSummary?.(e)}o.current=t,l.current=s,c.current=n},[t,s,n,i,r,a])}(t,s,n,a),null}function iVe(e,t){const s=[];let n=[],a=null;for(let i=0;i<e.length;i++){const r=e[i],o=t[r];o?"assistant"===o.sender?"assistant"===a||null===a?(n.push(r),a="assistant"):(n.length>0&&s.push(oVe(n,t)),n=[r],a="assistant"):(n.length>0&&s.push(oVe(n,t)),n=[r],a="human"):n.length>0&&(s.push(oVe(n,t)),n=[],a=null)}return n.length>0&&s.push(oVe(n,t)),s}function rVe(e,t){const s={};for(const i of e)s[i.uuid]=i;const n=iVe(e.map(e=>e.uuid),s),a=n.findLastIndex(e=>"assistant"===s[e.lastMessageUuid]?.sender);return n.map((e,t)=>{const i=s[e.firstMessageUuid],r=s[e.lastMessageUuid],o=t===n.length-1,l=t===n.length-2;return{chain:e,displayMessage:e.isChain&&i&&r?{...i,content:e.mergedContent,stop_reason:r.stop_reason,updated_at:r.updated_at}:i,isLastMsg:o,isLastHuman:"human"===r?.sender&&(l||o),isLastAssistantMsg:t===a,previousMessageUuid:t>0?n[t-1].lastMessageUuid:void 0,lastMessage:r}})}function oVe(e,t){const s=e.map(e=>t[e]).filter(e=>void 0!==e),n=[];for(const a of s)a.content&&n.push(...a.content);return{displayUuid:e[0],messageUuids:e,firstMessageUuid:e[0],lastMessageUuid:e[e.length-1],mergedContent:n,isChain:e.length>1,messages:s}}function lVe({organizationUuid:t,conversationUuid:s,parentMessageUuid:n}){const a=JS(),i=e.useRef(null);e.useEffect(()=>()=>i.current?.controller.abort(),[]);const r=e.useCallback(()=>{i.current?.controller.abort(),i.current=null},[]);return{send:e.useCallback(async e=>{const r=e.trim();if(!r||!t||!s)return;const o=Gw.getState(),l=o.messagesByConversation[s]??[],c=[];for(let t=0;t+1<l.length;t+=2){const e=l[t],s=l[t+1];"user"===e?.role&&"assistant"===s?.role&&c.push({question:e.text,response:s.text})}i.current?.controller.abort();const d=new AbortController;i.current={controller:d,conversationUuid:s},o.setError(s,null),o.popLastIfUser(s),o.appendMessage(s,{role:"user",text:r}),o.setStatus(s,"thinking");let u=!1;try{await async function({organizationUuid:e,conversationUuid:t,question:s,btwHistory:n=[],parentMessageUuid:a,model:i,signal:r,onDelta:o}){const l=`/api/organizations/${e}/chat_conversations/${t}/side_question`,c=JSON.stringify({question:s,btw_history:n,parent_message_uuid:a??null,...i?{model:i}:{}});await Yw(l,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json",Accept:"text/event-stream"},body:c,signal:r,openWhenHidden:!0,async onopen(e){if(!e.ok||!e.headers.get("content-type")?.includes(Xw)){let t={};try{t=JSON.parse(await e.text())}catch{}throw Jw({status:e.status,response:t,fallbackMessage:"Failed to start side question",headers:e.headers,endpoint:l,method:"POST"})}},onmessage(e){switch(e.event){case Qw.Ping:case Qw.MessageStart:case Qw.ContentBlockStart:case Qw.ContentBlockStop:case Qw.MessageDelta:case Qw.MessageStop:return;case Qw.MessageLimit:throw Jw({status:429,response:JSON.parse(e.data),fallbackMessage:"Rate limited",headers:void 0,endpoint:l,method:"POST"});case Qw.Error:throw Jw({status:0,response:JSON.parse(e.data),fallbackMessage:"Side question stream error",headers:void 0,endpoint:l,method:"POST"});case Qw.Completion:{const t=JSON.parse(e.data);return void(t.completion&&o(t.completion))}case Qw.ContentBlockDelta:{const t=JSON.parse(e.data);return void("text_delta"===t.delta?.type&&t.delta.text&&o(t.delta.text))}default:return}},onerror(e){throw e}})}({organizationUuid:t,conversationUuid:s,question:r,btwHistory:c,parentMessageUuid:n,signal:d.signal,onDelta:e=>{u=!0,Gw.getState().appendAssistantDelta(s,e)}})}catch(m){if(d.signal.aborted)return;F(new Error(`Side question stream failed: ${m instanceof Error?m.name:typeof m}`),{source:"btw_side_question_stream"}),Gw.getState().setError(s,a.formatMessage({defaultMessage:"Something went wrong",id:"JqiqNj0Ooi"}))}finally{const e=i.current;if(!(e?.controller!==d&&e?.conversationUuid===s)){e?.controller===d&&(i.current=null);const t=Gw.getState();u||t.popLastIfUser(s),t.setStatus(s,"idle")}}},[t,s,n,a]),abort:r}}const cVe=e.forwardRef(function({onSubmit:s,disabled:n,placeholder:a},i){const r=JS(),[o,l]=e.useState(""),c=e.useRef(null);e.useImperativeHandle(i,()=>({focus:()=>c.current?.focus(),clear:()=>l("")}),[]);const d=()=>{const e=o.trim();e&&!n&&(s(e),l(""))};return t.jsx("div",{className:"shrink-0 px-3 pb-3 pt-2 border-t-0.5 border-border-300",children:t.jsxs("div",{className:"flex items-end gap-2 rounded-2xl border-0.5 border-border-200 bg-bg-000 px-3 py-1.5 shadow-[0_2px_10px_hsl(var(--always-black)/4%)] transition-colors focus-within:border-border-400",children:[t.jsx("textarea",{ref:c,rows:1,value:o,onChange:e=>l(e.target.value),onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||e.nativeEvent.isComposing||(e.preventDefault(),d())},placeholder:a,disabled:n,className:"flex-1 resize-none bg-transparent outline-none font-base py-1.5 placeholder:text-text-500/70 min-h-[20px] max-h-[120px]"}),t.jsx(kt,{variant:"claude",size:"icon_sm",disabled:n||!o.trim(),onClick:d,"aria-label":r.formatMessage({defaultMessage:"Send",id:"9WRlF4R2gm"}),children:t.jsx(kH,{className:"size-4"})})]})})});function dVe({messages:s,status:n,onBranch:a}){const i=JS(),r=e.useRef(null);return e.useLayoutEffect(()=>{const e=r.current;e&&e.scrollTo({top:e.scrollHeight,behavior:"instant"})},[s,n]),0===s.length?t.jsx("div",{className:"flex-1 min-h-0 px-4 py-6 flex items-center justify-center",children:t.jsx("p",{className:"max-w-[280px] text-center font-small text-text-400",children:t.jsx(XS,{defaultMessage:"Ask on the side without touching the main chat. Claude sees the full context, and nothing here is added to it.",id:"ctWkktQM0M"})})}):t.jsxs("div",{ref:r,className:"flex-1 min-h-0 overflow-y-auto px-3 py-3 flex flex-col gap-3",children:[s.map((e,r)=>"user"===e.role?t.jsx("div",{className:"flex justify-end",children:t.jsx("p",{className:"max-w-[85%] rounded-xl bg-bg-300 px-3 py-2 font-base text-text-000 whitespace-pre-wrap break-words",children:e.text})},r):t.jsxs("div",{className:"group flex flex-col gap-1",children:[t.jsx("p",{className:"px-1 font-claude-response text-[15px] leading-[1.55] text-text-100 whitespace-pre-wrap break-words",children:e.text}),("thinking"!==n||r!==s.length-1)&&t.jsxs("div",{className:"flex gap-0.5 px-1 opacity-0 transition-opacity group-hover:opacity-100 focus-within:opacity-100 pointer-coarse:opacity-100",children:[t.jsx(iN,{content:i.formatMessage({defaultMessage:"Copy",id:"4l6vz1/eZ5"}),children:t.jsx(kt,{variant:"ghost",size:"icon_sm",onClick:()=>{navigator.clipboard.writeText(e.text)},"aria-label":i.formatMessage({defaultMessage:"Copy answer",id:"9Kp4ZgNuBk"}),children:t.jsx(eM,{className:"size-3.5"})})}),t.jsx(iN,{content:i.formatMessage({defaultMessage:"Branch to new chat",id:"9904KlI+jU"}),children:t.jsx(kt,{variant:"ghost",size:"icon_sm",onClick:()=>a(r),"aria-label":i.formatMessage({defaultMessage:"Branch to new chat",id:"9904KlI+jU"}),children:t.jsx(Uu,{className:"size-3.5"})})})]})]},r)),"thinking"===n&&t.jsx("p",{role:"status",className:"px-1 font-small text-text-400",children:t.jsx(XS,{defaultMessage:"Thinking\u2026",id:"P1QHV0AhYD"})})]})}function uVe({count:e}){return t.jsxs("div",{className:"flex w-full items-center gap-1.5 px-3 py-2 border-b-0.5 border-border-300 bg-bg-100/60",children:[t.jsx(nU,{className:"size-3 shrink-0 text-text-400"}),t.jsx("span",{className:"font-small text-text-300",children:t.jsx(XS,{defaultMessage:"Sees {count, plural, one {# message} other {# messages}} from main chat",id:"3XI+xKIxnt",values:{count:e}})}),t.jsx("span",{className:"ml-auto font-small text-text-500",children:t.jsx(XS,{defaultMessage:"read-only",id:"GX8+SGUXDd"})})]})}function mVe({organizationUuid:s,conversationUuid:n,parentMessageUuid:a,inheritedMessageCount:i}){const o=JS(),l=r(),{enabled:c,isOpen:d,close:u}=function(t){const s=y("claudified_btw_side_chat"),{matchShortcut:n}=Pv("btw_side_chat"),a=Eh(e=>e.startsWith(h)||e.startsWith(fs)),i=tK(),r=$w(t),o=Gw(e=>e.open),l=Gw(e=>e.close),c=Gw(e=>e.toggle),d=e.useCallback(()=>{t&&o(t)},[t,o]),u=e.useCallback(()=>{t&&l(t)},[t,l]),m=e.useCallback(()=>{t&&c(t)},[t,c]);return e.useEffect(()=>{if(!s||!t||a)return;const e=e=>{e.repeat||i&&"cowork"===Kw()||n(e)&&(e.preventDefault(),e.stopPropagation(),m())};return document.addEventListener("keydown",e,!0),()=>document.removeEventListener("keydown",e,!0)},[s,t,a,i,n,m]),{enabled:s,isOpen:r,open:d,close:u,toggle:m}}(n),{shortcutString:m}=Pv("btw_side_chat"),p=mN(40),f=tM(n),g=sM(n),C=nM(n),x=Gw(e=>n?e.errorByConversation[n]??null:null),v=Gw(e=>e.clear),b=Gw(e=>e.clearPendingQuestion),{send:k,abort:w}=lVe({organizationUuid:s,conversationUuid:n,parentMessageUuid:a}),M=e.useRef(null),_=e.useRef(null),j=rT(()=>{d&&u()});e.useEffect(()=>{if(d)_.current=document.activeElement,M.current?.focus();else{const e=_.current;_.current=null,e instanceof HTMLElement&&e.isConnected&&document.activeElement===document.body&&e.focus()}},[d]),e.useEffect(()=>{M.current?.clear()},[n]),e.useEffect(()=>{d&&C&&n&&(k(C),b(n))},[d,C,n,k,b]);const S=e.useCallback(e=>{const t=f[e],s=f[e-1];if("assistant"!==t?.role)return;const n="user"===s?.role?o.formatMessage({defaultMessage:'Continuing from a side question.\n\nQ: {question}\n\nA: "{answer}"\n\n',id:"6w60Rd5Jor"},{question:s.text,answer:t.text}):t.text;l.push(`/new?q=${encodeURIComponent(n)}`)},[f,l,o]);if(!c)return null;const L=f.length>0,N=L?o.formatMessage({defaultMessage:"Follow up\u2026",id:"D6oMwpWrX4"}):o.formatMessage({defaultMessage:"Ask a quick question\u2026",id:"SUYgJ2XuFk"});return t.jsx("aside",{ref:j,"aria-label":o.formatMessage({defaultMessage:"Side chat",id:"0MBP0bdWwx"}),inert:!d||void 0,"aria-hidden":!d||void 0,"data-open":d||void 0,onKeyDownCapture:e=>{"Escape"!==e.key||e.nativeEvent.isComposing||(e.stopPropagation(),e.nativeEvent.stopImmediatePropagation(),u())},className:"fixed bottom-4 right-4 flex w-[400px] max-w-[calc(100vw-2rem)] max-h-[min(560px,calc(100dvh-6rem))] flex-col overflow-hidden rounded-2xl border-0.5 border-border-200 bg-bg-000 shadow-[0_24px_60px_hsl(var(--always-black)/18%),0_4px_16px_hsl(var(--always-black)/8%)] transition-[opacity,transform] duration-200 ease-out origin-bottom-right opacity-0 scale-95 pointer-events-none data-[open]:opacity-100 data-[open]:scale-100 data-[open]:pointer-events-auto",style:{zIndex:p},children:t.jsxs(LN,{children:[t.jsxs("header",{className:"flex shrink-0 items-center gap-1 border-b-0.5 border-border-300 px-3 py-2",children:[t.jsx("span",{className:"flex-1 truncate text-body font-medium text-primary",children:t.jsx(XS,{defaultMessage:"Side chat",id:"0MBP0bdWwx"})}),m&&t.jsx(NN,{keys:m}),L&&t.jsx(rN,{variant:"ghost",iconOnly:!0,icon:"Trash","aria-label":o.formatMessage({defaultMessage:"Clear side chat",id:"1vPf0BAKqe"}),onClick:()=>{w(),n&&v(n),requestAnimationFrame(()=>M.current?.focus())}}),t.jsx(rN,{variant:"ghost",iconOnly:!0,icon:"X","aria-label":o.formatMessage({defaultMessage:"Close side chat",id:"fyPrl4HbZ6"}),onClick:u})]}),i>0&&t.jsx(uVe,{count:i}),t.jsx(dVe,{messages:f,status:g,onBranch:S}),x&&t.jsx("p",{role:"alert",className:"shrink-0 px-3 py-1 text-caption text-danger",children:x}),t.jsx(cVe,{ref:M,disabled:"thinking"===g,placeholder:N,onSubmit:e=>{k(e)}})]})})}function pVe(e,t){const s=new Map;return t.forEach(e=>{const t=s.get(e.file_name)??[];t.push(e),s.set(e.file_name,t)}),s.get(e)}function fVe(e,t){const s=pVe(e,t);if(!s||0===s.length)return null;const n=s.filter(e=>e.file_kind===Zt.Blob);return 0===n.length?null:n[n.length-1]}function gVe(){const t=function(){const t=M();return e.useCallback(async(e,s,n,a,i)=>{let r=fVe(e,s);if(!r&&a){const s=await t(`/api/organizations/${n}/projects/${a}/docs`),i=(await s.json()).find(t=>t.file_name===e);if(i)return(new TextEncoder).encode(i.content);const o=await t(`/api/organizations/${n}/projects/${a}/files`),l=await o.json();r=fVe(e,l)}if(!r)return null;try{const e=i?`/api/organizations/${n}/shared_artifact/${uf(i)}/files/${qt(r)}/contents`:ZN(n,qt(r)),t=await fetch(e);if(!t.ok)return null;const s=await t.arrayBuffer();return s.byteLength>2**31-1?null:new Uint8Array(s)}catch{return null}},[t])}();return e.useCallback(async(e,s,n,a,i,r)=>{if(!a)return null;const o=function(e,t){const s=pVe(e,t);if(!s||0===s.length)return null;const n=s[s.length-1];if(n){const e=n.extracted_content;return(new TextEncoder).encode(e)}return null}(e,s);return o||await t(e,n,a,i,r)},[t])}function hVe(t,s,n,a,i){const r=gVe();return e.useCallback(async e=>r(e,t,s,n,a,i),[t,s,n,a,r,i])}const CVe=({artifactContext:t,onRateLimitError:s,onMissingOrganization:n}={})=>{const a=y("apps_use_turmeric"),{activeOrganization:i}=v(),{addError:r}=ut(),o=JS();return e.useCallback(async e=>{if(!a)return Promise.resolve(null);if(!i?.uuid)return n?.(),Promise.resolve(null);try{const n=await fetch(`/api/organizations/${i?.uuid}/proxy/v1/messages`,{method:"POST",headers:{"Content-Type":"application/json",...t?WL(t):{}},body:JSON.stringify({messages:[{role:"user",content:e}]})});if(!n.ok){const e=await n.json().catch(()=>{}),t=e?.error?.message;if(429===n.status)s?s():r(o.formatMessage({defaultMessage:"Limit reached. This artifact uses Claude for responses. Try again when the message limit resets.",id:"5Ocu9uCFLz"}),{messageForLogging:"Limit reached. This artifact uses Claude for responses. Try again when the message limit resets."});else if(403===n.status&&"permission_error"===e?.error?.type){const e=t??o.formatMessage({defaultMessage:"This artifact's access to Claude is disabled for your organization. Contact your administrator to enable it.",id:"LTXYUaNi7f"});throw r(e,{messageForLogging:"Claude completion permission_error in artifact"}),new Error(e)}throw new Error(`HTTP error! status: ${n.status}`)}const a=await n.json();return Promise.resolve(a.content[0]?.text||null)}catch(l){return Promise.reject(l)}},[i?.uuid,t,a,s,n,r,o])},xVe=({artifactContext:t,onMissingOrganization:s,chatConversationUuid:n,onStorageChange:a}={})=>{const{activeOrganization:i}=v();return{get:e.useCallback(async(e,a=!1)=>{if(!i?.uuid)return s?.(),Promise.resolve(null);if(!t)return Promise.resolve(null);try{const s=new URL(`/api/organizations/${i.uuid}/artifacts/${t.type}/${uf(t.uuid)}/storage/${aM(e)}`,window.location.origin);s.searchParams.set("shared",a.toString()),n&&s.searchParams.set("chat_conversation_uuid",n),t.file_path&&s.searchParams.set("file_path",t.file_path);const r=await fetch(s.toString(),{method:"GET",headers:{"Content-Type":"application/json"}});if(!r.ok)throw new Error(`Database error: ${r.status}`);const o=await r.json();return Promise.resolve(o)}catch(r){return Promise.reject(r)}},[i?.uuid,t,s,n]),set:e.useCallback(async(e,r,o=!1)=>{if(!i?.uuid)return s?.(),Promise.resolve(null);if(!t)return Promise.resolve(null);try{const s=await fetch(`/api/organizations/${i.uuid}/artifacts/${t.type}/${uf(t.uuid)}/storage/${aM(e)}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({value:r,shared:o,...n&&{chat_conversation_uuid:n},...t.file_path&&{file_path:t.file_path}})});if(!s.ok)throw new Error(`Database error: ${s.status}`);const l=await s.json();return a?.(),Promise.resolve(l)}catch(l){return Promise.reject(l)}},[i?.uuid,t,s,n,a]),delete:e.useCallback(async(e,r=!1)=>{if(!i?.uuid)return s?.(),Promise.resolve(null);if(!t)return Promise.resolve(null);try{const s=new URL(`/api/organizations/${i.uuid}/artifacts/${t.type}/${uf(t.uuid)}/storage/${aM(e)}`,window.location.origin);s.searchParams.set("shared",r.toString()),n&&s.searchParams.set("chat_conversation_uuid",n),t.file_path&&s.searchParams.set("file_path",t.file_path);const o=await fetch(s.toString(),{method:"DELETE",headers:{"Content-Type":"application/json"}});if(!o.ok)throw new Error(`Database error: ${o.status}`);const l=await o.json();return a?.(),Promise.resolve(l)}catch(o){return Promise.reject(o)}},[i?.uuid,t,s,n,a]),list:e.useCallback(async(e,a=!1)=>{if(!i?.uuid)return s?.(),Promise.resolve(null);if(!t)return Promise.resolve(null);try{const s=new URL(`/api/organizations/${i.uuid}/artifacts/${t.type}/${uf(t.uuid)}/storage`,window.location.origin);e&&s.searchParams.set("prefix",e),s.searchParams.set("shared",a.toString()),n&&s.searchParams.set("chat_conversation_uuid",n),t.file_path&&s.searchParams.set("file_path",t.file_path);const r=await fetch(s.toString(),{method:"GET",headers:{"Content-Type":"application/json"}});if(!r.ok)throw new Error(`Database error: ${r.status}`);const o=await r.json();return Promise.resolve(o)}catch(r){return Promise.reject(r)}},[i?.uuid,t,s,n])}};function vVe({onClose:e,onBack:s,onDebug:n,title:a,isHidden:i,className:r}){const o=JS();return t.jsxs("div",{className:"shrink-0 flex items-center justify-between gap-4 w-full min-w-0 px-5 h-[3.25rem]",children:[t.jsxs("div",{className:"flex items-center gap-1 min-w-0",children:[!!s&&t.jsx(kt,{variant:"ghost",size:"icon_sm",onClick:s,className:"-ml-1",disabled:i,"aria-label":o.formatMessage({defaultMessage:"Back",description:"Button to go back to the previous view in the research panel",id:"XpqTgrgGwh"}),children:t.jsx(fD,{size:16,"aria-hidden":"true"})}),t.jsx("h2",{className:dt("text-text-200 truncate text-sm min-w-0 text-ellipsis break-words text-nowrap",r),children:a}),!!n&&t.jsx(kt,{variant:"ghost",size:"icon_sm",onClick:n,disabled:i,children:t.jsx(gD,{size:16})})]}),t.jsx(kt,{variant:"ghost",size:"icon_sm",onClick:e,className:"-mr-1",disabled:i,"aria-label":o.formatMessage({defaultMessage:"Close",description:"Button to close the research panel",id:"pALIdjJYLX"}),children:t.jsx(uR,{size:16,"aria-hidden":"true"})})]})}function yVe({compassStatus:e,onOpenSources:s}){if(!e.total_sources)return null;const n=function(e){const s=new Map,n=new Map;for(const o of e)for(const e of o.annotated_snippets)for(const a of e.tool_calls)if("web_search"===a.tool_name||"web_fetch"===a.tool_name){let e=[];if("web_search"===a.tool_name){if(!a.output||"rich_content"!==a.output.type||!a.output.content)continue;e=a.output.content.map(({url:e})=>e).filter(Boolean)}if("web_fetch"===a.tool_name){if(!a.output||"rich_link"!==a.output.type||!a.output.link.url)continue;e=[a.output.link.url]}for(const s of e)if("string"==typeof s)try{const e=new URL(s),a=`https://${e.hostname}`,i=e.hostname.replace(/^www\./,""),r=n.get(i);n.set(i,{count:(r?.count||0)+1,icon:r?.icon||t.jsx(rt,{url:a,size:14})})}catch(r){}}else if(a.output){const e=a.integration_name||a.tool_name,n="rich_content"===a.output.type?a.output.content.length:1,i=s.get(e);s.set(e,{count:(i?.count||0)+n,icon:i?.icon||t.jsx(STe,{canShowLetterIcon:!0,size:14,iconUrl:a.server_icon_url||void 0,integrationName:a.integration_name||void 0,toolName:a.tool_name})})}const a=Array.from(s.entries()).sort((e,t)=>t[1].count-e[1].count).slice(0,4),i=Array.from(n.entries()).sort((e,t)=>t[1].count-e[1].count).slice(0,4);return a.concat(i).slice(0,4-a.length)}(e.agents),a=n.length>0?n[0][1].count:0,i=e.total_sources-n.reduce((e,t)=>t[1].count+e,0);return 0===n.length?null:t.jsx("button",{className:"transition-all w-full flex flex-col gap-3 px-4 py-3.5 border-0.5 border-border-300 rounded-xl hover:border-border-100  max-w-[456px]",onClick:e=>{e.currentTarget.focus({preventScroll:!0}),s?.()},children:t.jsxs("div",{className:"flex flex-col gap-2.5 my-1 w-full",children:[n.map(([e,{count:s,icon:n}],i)=>t.jsxs("div",{className:"flex items-center text-xs",children:[t.jsx("div",{className:"h-4 w-4 flex items-center justify-center mr-2",children:n}),t.jsx("p",{className:"text-left font-medium w-32 truncate text-text-100 pr-2",title:e,children:e}),t.jsx("p",{className:"w-24 text-right text-xs text-text-300 pr-2",children:t.jsx(XS,{id:"WrpI57Uej/",defaultMessage:"{count, plural, one {# source} other {# sources}}",values:{count:s}})}),t.jsx("div",{className:"flex-1",children:t.jsx(sA.div,{className:"h-2 rounded-full bg-bg-400",initial:{width:0},animate:{width:s/a*100+"%"},transition:{delay:.1*i,duration:.5}})})]},e)),i>0&&t.jsxs("div",{className:"flex items-center text-xs text-text-300",children:[t.jsx(hD,{size:16,className:"text-text-300 mr-2"}),t.jsx("p",{children:t.jsx(XS,{id:"QX3cxMJ9Tc",defaultMessage:"{totalSources, plural, one {# other source} other {# other sources}}",values:{totalSources:i}})})]})]})})}function bVe({title:e,complete:s,className:n}){return t.jsx(sA.h3,{className:dt("text-base text-text-100 font-claude-response",n),initial:{opacity:0},animate:{opacity:1},transition:{duration:.5},children:s?e:t.jsx(Yg,{children:e})},e)}function kVe({title:e,description:s,numSources:n,onClick:a,complete:i}){return t.jsxs(sA.button,{variants:{initial:{opacity:0},animate:{opacity:1}},className:"text-left flex flex-col gap-1.5 transition-all duration-500 group/snippet cursor-pointer",onClick:e=>{e.currentTarget.focus({preventScroll:!0}),a()},children:[t.jsx(bVe,{title:s??e,complete:i}),t.jsx("div",{className:"transition-all flex flex-row items-center gap-1 text-xs text-text-500 group-hover/snippet:text-text-200",children:0===n?t.jsx(XS,{id:"NmCRHK7Fm4",defaultMessage:"No sources yet"}):t.jsx(XS,{id:"8NMeuJNj8z",defaultMessage:"{totalSources, plural, one {# source} other {# sources}}",values:{totalSources:n}})})]})}function wVe({status:s,allSnippets:n,onOpenSources:a}){const[i,r]=e.useState([]);return e.useEffect(()=>{s.agents.length<1||i.length>=3||r(qH({agents:s.agents,n:3}))},[s?.agents,i.length,r]),t.jsxs("div",{className:"flex flex-col pt-4 pb-6 gap-4 w-full h-full text-sm text-text-200",children:[t.jsx(yVe,{compassStatus:s,onOpenSources:()=>a(!0)}),n&&n.length>0&&t.jsx("div",{className:"flex flex-col gap-3",children:t.jsx(sA.div,{variants:{initial:{},animate:{transition:{staggerChildren:.08,delayChildren:.05}}},initial:"initial",animate:"animate",className:"flex flex-col gap-4 w-full",children:n.map((e,s)=>t.jsx(kVe,{...e,onClick:()=>a(!0,e.globalAgentIndex)},s))})})]})}function MVe({data:s,isOpen:n,onClose:a}){const[i,r]=e.useState(!1),o=JS(),{track:l}=ae(),[c,d]=e.useState({sourcesOpen:!1}),u=e.useRef(null),m=e.useRef(null),p=e.useRef(null),f=e.useRef(!1),{conversationUuid:g,organizationUuid:h,isShared:C,taskId:x}=s,{compassStatus:v,pollIntervalMs:y}=FH({organizationUuid:h,conversationUuid:g,taskId:x,isShared:C}),b=!!v;e.useEffect(()=>{n&&!f.current&&b&&(f.current=!0,requestAnimationFrame(()=>{u.current?.focus({preventScroll:!0})}))},[n,b]),e.useEffect(()=>{n||(f.current=!1)},[n]);const k=e.useRef(l);k.current=l;const w=e.useRef(null),M=e.useRef(null),_=e.useRef(!1),j=e.useRef(null);e.useEffect(()=>{if(!n)return;const e=performance.now();return()=>{const t=Math.round(performance.now()-e);if(t<100)return;const s=t>NVe;k.current({event_key:"claudeai.compass.panel_dwell",task_id:x,conversation_uuid:g,dwell_ms:Math.min(t,NVe),capped:s,result_since_open_ms:M.current,observed_running:_.current,result_poll_interval_ms:j.current})}},[n,x,g]),e.useEffect(()=>{if(n)return w.current=performance.now(),M.current=null,_.current=!1,j.current=null,()=>{w.current=null}},[n,x,g]),e.useEffect(()=>{const e=v?.status,t=w.current;null!==t&&e&&(e!==iM.Completed?_.current=!0:null===M.current&&(M.current=Math.min(Math.round(performance.now()-t),NVe),j.current=y))},[n,v?.status,y,x,g]);const S=e.useCallback(()=>{d({sourcesOpen:!1}),r(!1),a()},[a]);if(!v)return null;const L=(e,t)=>{if(e){l({event_key:"claudeai.compass.sources_viewed",task_id:x});const e=document.activeElement;p.current=e instanceof HTMLElement?e:null}d({sourcesOpen:e,index:t}),requestAnimationFrame(()=>{e?m.current?.focus({preventScroll:!0}):p.current?.isConnected?(p.current.focus({preventScroll:!0}),p.current=null):u.current?.focus({preventScroll:!0})})},N=void 0,I=c.sourcesOpen||i;return t.jsxs("div",{ref:u,tabIndex:-1,role:"region","aria-label":o.formatMessage({defaultMessage:"Research panel",description:"Accessible label for the research panel region; announced by screen readers when focus enters the panel.",id:"LKLvrUuAx+"}),className:"relative h-full w-full bg-bg-000 outline-none",onKeyDown:e=>{"Escape"!==e.key||e.defaultPrevented||(e.stopPropagation(),i?r(!1):I?L(!1):S())},children:[t.jsx(sA.div,{className:"w-full h-full","aria-hidden":I,inert:!!I||void 0,animate:I?"minimized":"full",variants:{minimized:{scale:.95},full:{scale:1}},children:t.jsx(_Ve,{compassStatus:v,onClose:S,onDebug:N,handleOpenSources:L,isHidden:I})}),t.jsx("div",{className:dt("absolute top-0 left-0 right-0 bottom-0 h-full w-full pointer-events-none bg-always-black/[5%]",I?"opacity-100":"opacity-0")}),t.jsx(sA.div,{animate:I?"visible":"hidden",variants:{visible:{opacity:1,translateX:0},hidden:{opacity:0,translateX:"100%"}},transition:{ease:lP.snappyOut},className:dt("absolute top-0 left-0 right-0 bottom-0"),"aria-hidden":!I,inert:!I||void 0,children:t.jsx(LVe,{subpanelRef:m,isHidden:!I,compassStatus:v,onBack:i?()=>r(!1):()=>L(!1),onClose:S,onDebug:N,isDebug:i,agentIndex:c.index})})]})}function _Ve({compassStatus:s,onClose:n,onDebug:a,handleOpenSources:i,isHidden:r}){const o=JS(),l=VH(s),c=s.status,d=zH(s),u=s.total_sources||0,m=s.agents.slice(1).flatMap((e,t)=>e.annotated_snippets.flat().filter(e=>e.tool_calls.length>0).map(s=>({...s,total_sources:e.total_sources,description:e.description||e.name,complete:Boolean(s.complete||e.completed_at),globalAgentIndex:t+1,numSources:e.total_sources}))),p=rM.indexOf(c),f=[{title:c===iM.Starting||c===iM.Planning?o.formatMessage({defaultMessage:"Creating my research plan...",id:"4eRg5buC9J"}):o.formatMessage({defaultMessage:"Research plan created",id:"MIzjwRDSc0"}),children:d?t.jsx(ZH,{thought:d,className:"pt-4 pb-6"}):void 0,shown:!0,expandable:!!d},{title:c===iM.InitiatingAgents||c===iM.Searching?0===u?o.formatMessage({defaultMessage:"Searching for sources...",id:"+4r/aaeR9v"}):o.formatMessage({defaultMessage:"Gathering {count, plural, one {# source} other {# sources}} and counting...",id:"kQHn/iXQmy"},{count:u}):o.formatMessage({defaultMessage:"Gathered {count, plural, one {# source} other {# sources}}",id:"DU/dbPu5mV"},{count:u}),titleIcons:t.jsx(BH,{hrefs:qH({agents:s.agents,n:3})}),children:t.jsx(wVe,{allSnippets:m,status:s,onOpenSources:i}),shown:p>=2||s.agents.length>1,expandable:m.length>0},{title:c===iM.Completed?o.formatMessage({defaultMessage:"Boom! Research report is ready",id:"8CCPGtuLnt"}):o.formatMessage({defaultMessage:"Writing and citing report...",id:"2b/CKxnAiJ"}),shown:p>=4,expandable:!1}],g=f.filter(e=>e.expandable).length,h=f.findLastIndex(e=>!!e.expandable),C=e.useRef(h),[x,v]=e.useState(h),[y,b]=e.useState(!0),k=e.useCallback((e,t,s)=>{b(s),v(t?e:0===e?1:0)},[b,v]);e.useEffect(()=>{h!==C.current&&k(h,!0,!1)},[k,h]);const w=[iM.Cancelled,iM.Failed,iM.TimedOut].includes(s.status),M=f.filter(e=>e.shown).length;return t.jsxs("div",{className:"flex flex-col h-full bg-bg-000 overflow-hidden",children:[t.jsx(vVe,{onClose:n,onDebug:a,title:l,className:"font-medium",isHidden:r}),t.jsxs("ol",{className:"flex flex-col overflow-y-auto px-5 pb-5 pt-1 -mt-1 list-none",role:"list",children:[f.map(({expandable:e,shown:n,title:a,titleIcons:i,children:r},o)=>{const l=w||o<M-1||s.status===iM.Completed;return t.jsx(jVe,{title:a,titleIcons:i,noShimmer:l||w,complete:l,isExpanded:e&&x===o,snappyTransition:y,showLine:o<M-1||w||x===o,handleExpand:e=>k(o,e,!0),expandable:e,collapsible:g>1,shown:n,children:r},o)}),w&&t.jsx(jVe,{title:s.status===iM.Cancelled?o.formatMessage({defaultMessage:"Interrupted",id:"rJQDmlVOoX"}):o.formatMessage({defaultMessage:"Something went wrong",id:"JqiqNj0Ooi"}),snappyTransition:!0,noShimmer:!0,isError:!0,handleExpand:ST,shown:w})]})]})}function jVe({title:e,titleIcons:s,complete:n,expandable:a,collapsible:i,shown:r,isExpanded:o,handleExpand:l,snappyTransition:c,noShimmer:d,isError:u,showLine:m,children:p}){return!!r&&t.jsxs("li",{className:"flex flex-row gap-3 min-h-[2.125rem] shrink-0",children:[t.jsxs("div",{className:"flex flex-col items-center mt-[5px]",children:[t.jsx("div",{className:dt("transition-all w-2.5 h-2.5 rounded-full shrink-0",u?"bg-danger-200":n?"bg-text-500":"bg-brand-200")}),m&&t.jsx("div",{className:dt("transition-all h-full -mb-1 w-[1px]",n?"bg-border-300":"bg-gradient-to-b from-brand-200/50 to-brand-200/0")})]}),t.jsxs("div",{className:"w-full flex flex-col",children:[t.jsx("button",{className:"inline-flex items-center gap-1",onClick:()=>l(!o),disabled:!a||o&&!i,"aria-expanded":a?!!o:void 0,children:t.jsxs("h4",{className:dt("flex flex-row items-center gap-2 transition-colors text-start text-text-100 hover:text-text-000 text-sm h-5 user-select-none",u&&"!text-danger-200"),children:[d?e:t.jsx(Yg,{children:e}),t.jsx(nA,{children:!!s&&!o&&t.jsx(sA.div,{initial:{opacity:0,width:0},animate:{opacity:1,width:"auto"},exit:{opacity:0,width:0},children:s})}),!!a&&i&&t.jsx(hR,{className:dt("bottom-[0.5px] transform transition-transform duration-400 ease-snappy-out text-text-300",o?"rotate-0":"-rotate-90"),size:12})]})}),t.jsx(kL,{isExpanded:!!a&&!!o,isScrollable:!1,snappyTransition:c,className:"!max-h-none w-full",setIsExpanded:l,children:p})]})]})}function SVe({toolCall:e,isHidden:s}){if("web_fetch"===e.tool_name&&"rich_link"===e.output?.type&&e.output.link.url){const{url:n,icon_url:a,title:i,subtitles:r}=e.output.link;return t.jsx(SL,{isDisabled:s,isStreaming:!1,icon:t.jsx(rt,{fadeInOnLoad:!0,url:a,size:16}),text:t.jsx(XS,{defaultMessage:"Fetched <b>{title}</b>",id:"BWNvvK6PhH",values:{title:i,b:e=>t.jsx("span",{className:"text-text-400",children:e})}}),handleClick:()=>{window.open(n,"_blank")},secondaryText:r?.[0],secondaryIcon:t.jsx(eD,{size:16,className:"text-text-300"}),isFirstBlockOfMessage:!1,isLastBlockOfMessage:!1,wrapperClassName:"!my-0"})}return e.output?t.jsx(_Te,{integrationName:e.integration_name||void 0,integrationIcon:e.server_icon_url||void 0,message:e.message,isExpandingDisabled:s,result:e.output,isStreaming:!1,isError:e.is_error,isFirstBlockOfMessage:!1,isLastBlockOfMessage:!1,wrapperClassName:"!my-0",contentClassName:"json_block"===e.output?.type?"":"!max-h-none",defaultExpanded:!0}):null}function LVe({subpanelRef:s,isHidden:n,compassStatus:a,onClose:i,onDebug:r,onBack:o,isDebug:l,agentIndex:c}){const d=e.useRef(null),u=JS(),m=c?!!a.agents[c]?.completed_at:a.status===iM.Completed,p=void 0===c?null:a.agents[c].description||a.agents[c].name,f=function(e,t){const s=[],n=t?[e.agents[t]]:e.agents;for(const a of n)for(const e of a.annotated_snippets)for(const t of e.tool_calls)t.output&&s.push({toolCall:t,timestamp:e.complete&&a.completed_at||a.started_at});return s.sort((e,t)=>new Date(e.timestamp).getTime()-new Date(t.timestamp).getTime()),s.map(({toolCall:e})=>e)}(a,c),g=void 0===c?a.total_sources:a.agents[c].total_sources;return t.jsxs("div",{ref:s,tabIndex:-1,role:"region","aria-label":u.formatMessage({defaultMessage:"Research sources",description:"Accessible label for the sources subpanel within the research panel.",id:"bR28//mJWx"}),className:dt("text-sm bg-bg-000 h-full overflow-hidden flex flex-col outline-none",n&&"pointer-events-none user-select-none"),children:[t.jsx(vVe,{onDebug:l?void 0:r,isHidden:n,title:l?"Ant only debug panel":u.formatMessage({defaultMessage:"{totalSources, plural, one {# source} other {# sources}} {status}",id:"8cAP0ZJRie"},{totalSources:g,status:m?"":t.jsx(XS,{id:"um9oac7M9y",defaultMessage:"and counting..."})}),onClose:i,onBack:()=>{setTimeout(()=>{d.current&&(d.current.scrollTop=0)},500),o()}}),t.jsxs("div",{ref:d,className:"relative flex-1 overflow-auto px-5 pt-1 pb-5",children:[!!p&&t.jsx(bVe,{title:p,complete:m,className:"pt-1 pb-5"}),f.length>0?t.jsx("ul",{className:"flex flex-col gap-4 list-none","aria-label":u.formatMessage({defaultMessage:"Sources",description:"Accessible label for the group of research sources",id:"kXdYV0JGDC"}),children:f.map((e,s)=>t.jsx("li",{children:t.jsx(SVe,{toolCall:e,isHidden:n})},s))}):t.jsx("div",{className:"text-text-500 text-center px-8 py-16",children:t.jsx(XS,{id:"yWSiuEkfbY",defaultMessage:"No sources found"})})]})]})}const NVe=18e5,IVe="main";function TVe(e,t,s){return{...e,[t]:Math.max(0,(e[t]??0)+s)}}const AVe=fT(e=>({occlusionCounts:{},occlude:(t=IVe)=>e(e=>({occlusionCounts:TVe(e.occlusionCounts,t,1)})),release:(t=IVe)=>e(e=>({occlusionCounts:TVe(e.occlusionCounts,t,-1)})),parkCounts:{},park:(t=IVe)=>e(e=>({parkCounts:TVe(e.parkCounts,t,1)})),unpark:(t=IVe)=>e(e=>({parkCounts:TVe(e.parkCounts,t,-1)})),serverId:null,isLoading:!1,knownServerIds:null,loadingServiceName:null,openLoading:(t,s)=>e({isLoading:!0,serverId:null,knownServerIds:new Set(t),loadingServiceName:s??null}),selectServer:t=>e(e=>({serverId:t,knownServerIds:e.knownServerIds?new Set([...e.knownServerIds,t]):null})),serverReady:()=>e({isLoading:!1,knownServerIds:null,loadingServiceName:null}),close:()=>e({isLoading:!1,serverId:null,knownServerIds:null,loadingServiceName:null})}));function EVe(e=IVe){return AVe(t=>(t.occlusionCounts[e]??0)>0)}function RVe(e=IVe){return AVe(t=>(t.parkCounts[e]??0)>0)}function DVe(t,s=IVe){const n=AVe(e=>e.occlude),a=AVe(e=>e.release);e.useEffect(()=>{if(t)return n(s),()=>{a(s)}},[t,s,n,a])}const HVe='[role="dialog"], [role="alertdialog"], [role="menu"], [role="listbox"], [role="tooltip"], [data-state]:not([role]), .epitaxy-popup, [data-occludes-electron-wcv]',PVe=new Set,UVe=new Set;function OVe(){for(const e of UVe)e()}function FVe(t){e.useEffect(()=>{if(!t)return;PVe.add(t);const e=new ResizeObserver(OVe);return e.observe(t),OVe(),()=>{e.disconnect(),PVe.delete(t),OVe()}},[t])}function VVe(e){if(0===PVe.size)return!0;const t=e.getBoundingClientRect();for(const s of PVe){if(s.ownerDocument!==e.ownerDocument)continue;const n=s.getBoundingClientRect();if(t.left<n.right&&t.right>n.left&&t.top<n.bottom&&t.bottom>n.top)return!0}return!1}function zVe(t,s=IVe){const n=AVe(e=>e.occlude),a=AVe(e=>e.release);e.useEffect(()=>{const e=t?.current?.ownerDocument??globalThis.document,i=new Set(Array.from(e.body.children)),r=new Map,o=new Map,l=()=>{const t=new Set;for(const l of e.body.children){if(i.has(l))continue;const e=l.matches(HVe)?[l]:Array.from(l.querySelectorAll(HVe));if(0===e.length)continue;t.add(l);let c=!1;for(const t of e)if(t.hasAttribute("data-occludes-electron-wcv")||VVe(t)){c=!0;break}if(!c)for(const t of l.querySelectorAll('[role="presentation"]'))if(!(t instanceof HTMLElement&&"fixed"===t.style.position)&&VVe(t)){c=!0;break}const d=r.get(l)??!1;if(c&&!d?n(s):!c&&d&&a(s),r.set(l,c),!o.has(l)){const e=new MutationObserver(p);e.observe(l,{childList:!0,subtree:!0}),o.set(l,e)}}for(const[e,n]of r)t.has(e)||(r.delete(e),o.get(e)?.disconnect(),o.delete(e),n&&a(s))};let c=0,d=0;const u=()=>{c||(c=requestAnimationFrame(()=>{c=0,l(),d-=1,d>0&&(()=>{for(const e of r.values())if(!e)return!0;return!1})()&&u()}))},m=()=>{l(),d=15,u()},p=()=>{d=15,u()},f=new MutationObserver(m);f.observe(e.body,{childList:!0}),UVe.add(m);const g=e.defaultView??window;return g.addEventListener("resize",m),()=>{f.disconnect();for(const e of o.values())e.disconnect();o.clear(),UVe.delete(m),g.removeEventListener("resize",m),c&&cancelAnimationFrame(c);for(const[,e]of r)e&&a(s);r.clear()}},[n,a,t,s])}function ZVe(){const{toasts:t}=ut(),s=t.length,[n,a]=e.useState(!1);e.useEffect(()=>{if(0===s)return void a(!1);let e,t=0;const n=s=>{const i=document.querySelector('[data-cds="Toast"]');if(!i)return void(s>0&&!document.hidden?t=requestAnimationFrame(()=>n(s-1)):a(!0));const r=()=>{const e=i.isConnected?i:document.querySelector('[data-cds="Toast"]');e?0!==e.getBoundingClientRect().height&&a(VVe(e)):a(!0)};r();const o=new ResizeObserver(r);o.observe(i),window.addEventListener("resize",r),UVe.add(r),e=()=>{o.disconnect(),window.removeEventListener("resize",r),UVe.delete(r)}};return n(1),()=>{cancelAnimationFrame(t),e?.()}},[s]),DVe(n)}function BVe(){return AVe(e=>e.isLoading)}function qVe(e){const t=e.startContainer.parentElement;if(!t)return!1;if("visible"!==getComputedStyle(t).visibility)return!1;if(e.getBoundingClientRect().height>0)return!0;let s=!1;for(let n=t;n;n=GVe(n)){const e=getComputedStyle(n);if("none"===e.display)return!1;"auto"===e.getPropertyValue("content-visibility")&&(s=!0)}return s}function WVe(e){let t="";for(let s=0;s<e.length;s++){const n=e[s].toLowerCase();t+=1===n.length?n:e[s]}return t}const $Ve=new Set(["ADDRESS","ARTICLE","ASIDE","BLOCKQUOTE","BR","DD","DETAILS","DIV","DL","DT","FIGCAPTION","FIGURE","FOOTER","H1","H2","H3","H4","H5","H6","HEADER","HR","LI","MAIN","NAV","OL","P","PRE","SECTION","SUMMARY","TABLE","TBODY","TD","TFOOT","TH","THEAD","TR","UL"]);function GVe(e){if(e.parentElement)return e.parentElement;const t=e.getRootNode();return t instanceof ShadowRoot?t.host:null}function KVe(e,t,s={}){if(0===t.length)return[];const{exclude:n}=s,a=WVe(t),i=[];let r="",o=!1;const l=e=>{if(e.nodeType===Node.TEXT_NODE){o&&(r+="\0",o=!1);const t=e;return i.push({node:t,start:r.length}),void(r+=t.data)}if(e.nodeType===Node.ELEMENT_NODE){const t=e;if(n?.has(t))return void(o=!0);if(t.shadowRoot)return o=!0,l(t.shadowRoot),void(o=!0);if($Ve.has(t.tagName)){o=!0;for(let e=t.firstChild;e;e=e.nextSibling)l(e);return void(o=!0)}if(t instanceof HTMLSlotElement){const e=t.assignedNodes({flatten:!0});if(o=!0,e.length>0)for(const t of e)l(t);else for(let s=t.firstChild;s;s=s.nextSibling)l(s);return void(o=!0)}}for(let t=e.firstChild;t;t=t.nextSibling)l(t)};l(e);const c=WVe(r),d=[];let u=0;for(;;){const e=c.indexOf(a,u);if(e<0)break;const t=document.createRange();let s=!1;for(const{node:n,start:r}of i){const i=r+n.data.length;if(!s&&e<i&&(t.setStart(n,e-r),s=!0),s&&e+a.length<=i){t.setEnd(n,e+a.length-r);break}}d.push(t),u=e+a.length}return d}const YVe="find-in-page",QVe="find-in-page-active",JVe="data-find-omitted";function XVe(e){return new Set(e.querySelectorAll(`[${JVe}]`))}function eze(){if("undefined"==typeof CSS||!CSS.highlights)return!1;const e=CSS.highlights.get(QVe);if(!e)return!1;for(const t of e)if(t.getBoundingClientRect().height>0)return!0;return!1}let tze=null;const sze=new Set;function nze(e){if(!tze)return;const t=e.startContainer.getRootNode(),s=t instanceof ShadowRoot||t instanceof Document?t:document;s.adoptedStyleSheets.includes(tze)||(s.adoptedStyleSheets=[...s.adoptedStyleSheets,tze])}function aze(e){!function(e){if(sze.has(e)||"undefined"==typeof CSSStyleSheet)return;tze??=new CSSStyleSheet;const t=e===QVe?"rgb(255 150 50)":"rgb(255 213 0)";tze.insertRule(`::highlight(${e}) { background-color: ${t}; color: hsl(var(--always-black)); }`,tze.cssRules.length),sze.add(e)}(e);let t=CSS.highlights.get(e);return t||(t=new Highlight,t.priority=e===QVe?1:0,CSS.highlights.set(e,t)),t}function ize(){if("undefined"!=typeof CSS&&CSS.highlights)for(const e of Array.from(CSS.highlights.keys()))e.startsWith(YVe)&&CSS.highlights.delete(e)}function rze(e){"undefined"!=typeof CSS&&CSS.highlights&&CSS.highlights.delete(e)}function oze(){return`${YVe}-list-${lze++}`}let lze=0;function cze(e,t,s=YVe){if("undefined"==typeof CSS||!CSS.highlights)return;if(0===e.length)return;const n=aze(s);for(const i of e)nze(i),n.add(i);const a=t>=0?e[t]:void 0;if(a){const e=aze(QVe);e.clear(),e.add(a)}}function dze(e,t,s,n,a=YVe){if("undefined"==typeof CSS||!CSS.highlights)return;if(0===t.length)return;const i=KVe(e,t,{exclude:XVe(e)});if(0===i.length)return;const r=aze(a);for(const o of i)nze(o),r.add(o);if(s&&n>=0){const e=function(e,t,s){const n=KVe(e,t,{exclude:XVe(e)}).filter(qVe);if(0!==n.length)return n[Math.min(s,n.length-1)]}(s,t,n);if(e){const t=aze(QVe);t.clear(),t.add(e)}}}function uze(e,t,s){const n=void 0!==s?Math.min(t.bottom,s):t.bottom;return e.bottom>t.top&&e.top<n?null:e.top+e.height/2-(t.top+n)/2}const mze="data-find-provider-scope",pze=[];let fze=!1,gze="",hze=-1,Cze=0;const xze=new Set;function vze(){for(const e of xze)e()}const yze={ranges:[],count(e){const t=new Set(document.querySelectorAll(`[${mze}], [${JVe}]`));return this.ranges=KVe(document.body,e,{exclude:t}).filter(qVe),this.ranges.length},show(e,t,s){if(cze(this.ranges,t),t>=0){const e=this.ranges[t];e?.startContainer.parentElement?.scrollIntoView({block:"nearest"})}},clear(){this.ranges=[]}};function bze(e){let t=e;for(let s=t.getRootNode();s instanceof ShadowRoot;s=t.getRootNode())t=s.host;return t}function kze(e,t){if(e===t)return 0;const s=e.compareDocumentPosition(t);return s&Node.DOCUMENT_POSITION_FOLLOWING?-1:s&Node.DOCUMENT_POSITION_PRECEDING?1:0}function wze(e,t){return{count:()=>t-e,show(s,n){const a=yze.ranges.slice(e,t);cze(a,n),n>=0&&a[n]?.startContainer.parentElement?.scrollIntoView({block:"nearest"})},clear(){}}}function Mze(e,t,s){try{return function(e,t,s){const n=++Cze;yze.count(e);const a=[],i=[];for(const C of pze){const e=C.getScopeEl?.()??null;e?.isConnected?a.push({p:C,scope:e}):i.push(C)}a.sort((e,t)=>kze(e.scope,t.scope));const r=yze.ranges;let o=0;const l=e=>{for(;o<r.length&&kze(bze(r[o].startContainer),e)<0;)o++;return o},c=[];let d=0;for(const{p:C,scope:x}of a){const e=l(x);c.push(wze(d,e)),c.push(C),d=e}c.push(wze(d,r.length));for(const C of i)c.push(C);const u=c.map(t=>t.count(e)),m=u.reduce((e,t)=>e+t,0);if(s||e!==gze)gze=e,hze=m>0?0:-1;else if(0===m)hze=-1;else if(hze<0)hze=t?0:m-1;else{const e=Math.min(hze,m-1);hze=(e+(t?1:-1)+m)%m}const p=hze>=0?hze+1:0;let f=0,g=-1,h=-1;if(hze>=0)for(let C=0;C<u.length;C++){if(hze<f+u[C]){g=C,h=hze-f;break}f+=u[C]}return ize(),Promise.all(c.map((t,s)=>t.show(e,s===g?h:-1,n))).catch(()=>{}),Promise.resolve({activeIndex:p,total:m})}(e,t,s)}catch{return Promise.resolve({activeIndex:0,total:0})}}function _ze(e){return e===Cze}function jze(){Cze++,gze="",hze=-1,ize(),yze.clear();for(const e of pze)e.clear()}function Sze(e){return xze.add(e),()=>xze.delete(e)}function Lze(){return pze.length>0}function Nze(){return!1}function Ize(){return e.useSyncExternalStore(Sze,Lze,Nze)}function Tze(t){const s=Dr(t),n=null!==t;e.useEffect(()=>{if(!n)return;!function(){const e=oM;!fze&&e?.setProviderActive&&(fze=!0,e.onFindRequest?.((t,s,n,a)=>{try{Mze(s,n,a).then(s=>e.reportFindResult?.(t,s)).catch(()=>e.reportFindResult?.(t,{activeIndex:0,total:0}))}catch{e.reportFindResult?.(t,{activeIndex:0,total:0})}}),e.onFindClear?.(jze))}();const e={count:e=>s.current?.count(e)??0,show:(e,t,n)=>s.current?.show(e,t,n),clear:()=>s.current?.clear(),getScopeEl:()=>s.current?.getScopeEl?.()??null};return 0===pze.length&&oM?.setProviderActive?.(!0),pze.push(e),vze(),()=>{const t=pze.indexOf(e);t>=0&&pze.splice(t,1),Cze++,0===pze.length&&(gze="",hze=-1,ize(),oM?.setProviderActive?.(!1)),vze()}},[n])}function Aze(e,t){if(0===t.length)return 0;let s=0,n=e.indexOf(t);for(;n>=0;)s++,n=e.indexOf(t,n+t.length);return s}function Eze({items:t,getSearchText:s,scrollToIndex:n,getHighlightElements:a,repaintKey:i,enabled:r=!0}){const o=Dr(t),l=Dr(s),c=Dr(n),d=Dr(a),[u]=e.useState(oze),m=e.useRef(null),p=e.useRef(null),f=e.useRef(null),g=e.useRef(null);e.useEffect(()=>{if(!f.current)return;if(null!==g.current)return;const e=Cze;g.current=setTimeout(()=>{g.current=null;const t=f.current;if(!t||!_ze(t.epoch)||t.epoch!==e)return;rze(u);const s=d.current?.(t.targetIndex);s?.scope&&dze(s.scope,t.query,s.active,t.occurrence,u)},60)},[i,t,s]),e.useEffect(()=>()=>{null!==g.current&&(clearTimeout(g.current),g.current=null),rze(u)},[u]);const h=e.useMemo(()=>{const e=e=>{const t=WVe(e),s=o.current,n=l.current,a=m.current;if(a&&a.query===t&&a.items===s&&a.getText===n)return a.matches;let i=p.current;i&&i.getText===n||(i={getText:n,folded:new WeakMap},p.current=i);const r=(e,t)=>{if("object"!=typeof e||null===e)return WVe(n(e,t));let s=i.folded.get(e);return void 0===s&&(s=WVe(n(e,t)),i.folded.set(e,s)),s},c={rows:[],occurrences:[],total:0};for(let o=0;o<s.length;o++){const e=Aze(r(s[o],o),t);e>0&&(c.rows.push(o),c.occurrences.push(e),c.total+=e)}return m.current={query:t,items:s,getText:n,matches:c},c},t=(e,t,s)=>{const n=d.current?.(t);n?.scope&&dze(n.scope,e,n.active,s,u)};return{count:t=>e(t).total,getScopeEl:()=>d.current?.(-1)?.scope??null,show(s,n,a){if(n<0)return f.current={query:s,targetIndex:-1,occurrence:-1,epoch:a},void t(s,-1,-1);const i=function(e,t){let s=t;for(let n=0;n<e.rows.length;n++){if(s<e.occurrences[n])return{row:e.rows[n],occurrence:s};s-=e.occurrences[n]}return null}(e(s),n);if(null===i)return;f.current={query:s,targetIndex:i.row,occurrence:i.occurrence,epoch:a},c.current(i.row,s,i.occurrence,()=>!_ze(a));const r=()=>{let e=0,n=0,r=0;const o=()=>{if(!_ze(a))return;if(!eze()&&(rze(u),t(s,i.row,i.occurrence),!eze())){const t=d.current?.(i.row)?.active;return void((t?n++<2:e++<6)&&requestAnimationFrame(()=>requestAnimationFrame(o)))}(function(){if("undefined"==typeof CSS||!CSS.highlights)return!1;const e=CSS.highlights.get(QVe);if(!e)return!1;for(const t of e){const e=t,s=e.getBoundingClientRect();if(0===s.height)continue;const n=1===e.startContainer.nodeType?e.startContainer:e.startContainer.parentElement;let a=null;for(let t=n??null;t;t=GVe(t))if(t instanceof HTMLElement&&t.hasAttribute("data-autoscroll-container")){a=t;break}if(!a)return n?.scrollIntoView({block:"center",behavior:"auto"}),!1;const i=a.scrollTop,r=a.querySelector("[data-chat-input-container]"),o=uze(s,a.getBoundingClientRect(),r?.getBoundingClientRect().top);return null!==o&&(a.scrollTop+=o,a.scrollTop!==i)}return!1})()&&r++<6&&requestAnimationFrame(()=>requestAnimationFrame(o))};o()},o=d.current?.(i.row);return o?.scope&&o.active?(t(s,i.row,i.occurrence),void r()):new Promise(e=>requestAnimationFrame(()=>requestAnimationFrame(()=>e()))).then(()=>{_ze(a)&&(t(s,i.row,i.occurrence),r())})},clear(){m.current=null,f.current=null,rze(u)}}},[]);Tze(r?h:null)}const Rze="overflow-y-auto whitespace-pre-wrap break-all font-mono text-caption";function Dze({text:s,filename:n,className:a,findEnabled:i}){const r=JS(),o=e.useMemo(()=>s.split("\n"),[s]),l=e.useRef(null),c=e.useCallback(e=>e,[]),d=cP({count:o.length,getItemKey:c,getScrollElement:()=>l.current,estimateSize:()=>16,overscan:20,initialRect:{width:0,height:800}}),u=d.getVirtualItems(),m=`${u[0]?.index??-1}:${u.length}`;return Eze({items:o,getSearchText:e.useCallback(e=>e,[]),scrollToIndex:e.useCallback(e=>d.scrollToIndex(e,{align:"center"}),[d]),getHighlightElements:e.useCallback(e=>({scope:l.current,active:e<0?null:l.current?.querySelector(`[data-index="${e}"]`)??null}),[]),repaintKey:m,enabled:i}),t.jsxs("div",{ref:l,role:"document",tabIndex:0,"aria-label":r.formatMessage({defaultMessage:"{filename}, {lineCount, plural, one {# line} other {# lines}}",id:"JMclbUOpS1"},{filename:n||r.formatMessage({defaultMessage:"Attachment text",id:"be8BUsY0ei"}),lineCount:o.length}),[mze]:"","data-autoscroll-container":"",className:dt(Rze,a),children:[t.jsx("p",{className:"sr-only select-none",children:t.jsx(XS,{defaultMessage:"Only part of this file is shown. Use the Copy button to copy the full text.",id:"baHnB1ULFt"})}),t.jsx("div",{style:{height:d.getTotalSize(),position:"relative"},children:u.map(e=>t.jsx("div",{"data-index":e.index,ref:d.measureElement,style:{position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${e.start}px)`},children:o[e.index]||" "},e.key))})]})}function Hze({text:e,filename:s,className:n,virtualize:a=!0,findEnabled:i=!0}){return!a||e.length<4e3?t.jsx("div",{className:dt(Rze,n),children:e}):t.jsx(Dze,{text:e,filename:s,className:n,findEnabled:i})}function Pze(s){const{attachment:n,goBack:a,onClose:i,virtualize:r=!1,isOpen:o=!0}=s,l=JS(),c=e.useMemo(()=>RB(n),[n]),[d,u]=e.useState(!1),m=e.useCallback(async()=>{try{await navigator.clipboard.writeText(n.extracted_content),u(!0),setTimeout(()=>u(!1),2e3)}catch{}},[n.extracted_content]);return t.jsxs("div",{className:"flex h-full flex-col pb-1 pl-5 pt-3",children:[t.jsxs("div",{className:"sticky flex items-center gap-1 pr-5",children:[a&&t.jsx(rN,{onClick:a,variant:"ghost",iconOnly:!0,icon:"ArrowLeft",className:"-ml-2 shrink-0","aria-label":l.formatMessage({defaultMessage:"Go back",id:"orvpWhO3rI"})}),t.jsx("h2",{className:"font-ui flex-1 truncate text-lg font-medium",children:c.title}),t.jsx(rN,{variant:"ghost",iconOnly:!0,icon:d?"Check":"Copy",onClick:()=>{m()},"aria-label":d?l.formatMessage({defaultMessage:"Copied",id:"p556q3uvbn"}):l.formatMessage({defaultMessage:"Copy attachment text",id:"DoMpLm3fnX"})}),t.jsx("span",{role:"status",className:"sr-only select-none",children:d?l.formatMessage({defaultMessage:"Copied to clipboard",id:"93oVThAHvU"}):""}),t.jsx(rN,{variant:"ghost",iconOnly:!0,icon:"X",className:"-mr-2",onClick:i,"data-testid":"close-file-preview","aria-label":l.formatMessage({defaultMessage:"Close",id:"rbrahOGMC3"})})]}),t.jsxs("div",{className:"mb-1 flex flex-col pb-3 pr-5 min-h-0 flex-1",children:[t.jsx(ZB,{metaData:c.metaData}),t.jsx(Hze,{text:n.extracted_content,filename:n.file_name,virtualize:r,findEnabled:o,className:"-m-1 mt-0 min-h-0 flex-1 p-4 bg-bg-000 rounded-lg border-0.5 border-border-300 shadow-sm"})]})]})}function Uze(){const t=Ia(e=>(e.localTools[br]??e.localTools[yr]??[]).some(e=>"list_connected_browsers"===e.name)),[s,n]=e.useState([]),[a,i]=e.useState(t);return{browsers:s,isLoading:a,isSupported:t,refresh:e.useCallback(async()=>{const e=lM(Yl);if(e){i(!0);try{const t=await e.callTool({name:"list_connected_browsers",arguments:{}});n(t?.isError?[]:function(e){const t=e?.[0]?.text;if(!t)return[];try{const e=JSON.parse(t);return Array.isArray(e)?e:[]}catch{return[]}}(t?.content))}catch{n([])}finally{i(!1)}}},[]),select:e.useCallback(async e=>{const t=lM(Yl);t&&await t.callTool({name:"select_browser",arguments:{deviceId:e.deviceId}})},[])}}function Oze(e,t){return e.name||`Browser ${t+1}`}function Fze(e){return e.deviceId.slice(0,8)}const Vze=e.memo(({framed:s=!1,interactive:n=!1,showHeading:a=!1})=>{const i=JS(),r=_u(),o=cM(),{browsers:l,isLoading:c,isSupported:d,refresh:u,select:m}=Uze();if(e.useEffect(()=>{d&&u()},[d,u]),!d)return null;const p=i.formatMessage({defaultMessage:"{count, plural, =0 {No browsers connected} one {# browser connected} other {# browsers connected}}",id:"0EIcJkhauP",description:"Count of Chrome extension instances currently connected to the bridge"},{count:l.length}),f=t.jsxs("div",{className:dt(s&&"rounded-lg border border-border-300 bg-bg-100"),children:[t.jsxs("div",{className:dt("flex items-center justify-between",s?"px-3 py-2 border-b border-border-300":"py-2"),children:[t.jsx("div",{className:dt(s?"text-sm text-text-200":"text-xs text-text-400 uppercase tracking-wide"),children:c&&0===l.length?i.formatMessage({defaultMessage:"Checking connected browsers\u2026",id:"nTBGuhcdBj",description:"Loading state while listing connected browser extensions"}):p}),t.jsxs(kt,{size:s?"sm":"icon_fit",variant:s?"secondary":"ghost",onClick:()=>{u()},disabled:c,"aria-label":i.formatMessage({defaultMessage:"Recheck connection",id:"nXrmnRN2WW",description:"Button to re-query which browser extensions are connected"}),children:[c?t.jsx(fR,{size:14,className:"animate-spin"}):t.jsx(fU,{className:"w-3.5 h-3.5"}),s&&t.jsx("span",{className:"ml-1.5",children:i.formatMessage({defaultMessage:"Recheck",id:"+T+zIDo6RW",description:"Label for button that re-queries connected browsers"})})]})]}),n&&o&&t.jsx(fSe,{className:"mb-2",children:V9("switch_browser",{},i).hint}),0===l.length?s?t.jsx("div",{className:"px-3 py-3 text-sm text-text-400",children:i.formatMessage({defaultMessage:"No Chrome instances are connected. Open Chrome with the Claude extension and sign in.",id:"i7m2b6Jn4t",description:"Empty state in Settings \u2192 Browser Use when nothing is connected"})}):null:t.jsx("ol",{className:dt(s?"divide-y divide-border-300":"flex flex-col gap-0.5"),children:l.map((e,s)=>{const a=Oze(e,s),o=e.deviceId===r,l=t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"w-5 flex-shrink-0 text-center text-xs tabular-nums text-text-400",children:s+1}),t.jsx("div",{className:"w-4 flex-shrink-0 text-text-300",children:o&&t.jsx(Hu,{className:"w-3.5 h-3.5"})}),t.jsxs("div",{className:"flex-1 min-w-0",children:[t.jsx("div",{className:"text-sm text-text-200 truncate",children:a}),t.jsx("div",{className:"text-xs text-text-400",children:e.osPlatform})]}),t.jsx("div",{className:"text-xs text-text-400 font-mono flex-shrink-0",children:i.formatMessage({defaultMessage:"Device ID: {id}",id:"HsVMyHuq5H",description:"Label for the truncated device identifier of a connected browser"},{id:Fze(e)})})]});return n?t.jsx("li",{children:t.jsx("button",{type:"button",onClick:()=>{m(e)},"aria-current":o||void 0,className:dt("w-full flex items-center gap-3 px-3 py-2 text-left","transition-colors rounded-md",o?"bg-bg-300 hover:bg-bg-300":"hover:bg-bg-200"),children:l})},e.deviceId):t.jsx("li",{className:dt("flex items-center gap-3 px-3 py-2",o&&"bg-bg-200"),children:l},e.deviceId)})})]});return a?t.jsxs("div",{className:"flex flex-col gap-2",children:[t.jsx("div",{className:"text-sm text-text-200",children:i.formatMessage({defaultMessage:"Connected browsers",id:"H8uWPfMPJh"})}),t.jsx("div",{className:"text-sm text-text-400",children:i.formatMessage({defaultMessage:"Chrome instances signed in to your account that Claude can automate.",id:"4YqpRgbuFg"})}),f]}):f});function zze(){const t=cM(),{addError:s}=ut(),n=Ia(e=>(e.localTools[br]??e.localTools[yr]??[]).some(e=>"switch_browser"===e.name)),a=e.useCallback(async()=>{if(!dM()){uM(!0);try{const e=lM(Yl);if(!e)throw new Error("Chrome extension not connected");const t=await e.callTool({name:"switch_browser",arguments:{}}),n=t?.content,a=n?.[0]?.text,i=a?.startsWith("No other browsers available")??!1;t?.isError&&!i&&s(a||"Could not switch browser.",{error:new Error(a||"switch_browser returned error"),errorContext:{tags:{source:"switch_browser"}},messageForLogging:"Could not switch browser."})}catch(e){s("Could not switch browser. Check that Chrome is open.",{error:e,errorContext:{tags:{source:"switch_browser"}},messageForLogging:"Could not switch browser."})}finally{uM(!1)}}},[s]);return{switchBrowser:n?a:void 0,isSwitching:t}}Vze.displayName="ConnectedBrowsersSummary";function Zze(e){let t=!1;return e.filter(e=>!("image"===e.type&&!t)||(t=!0,!1))}const Bze=e.memo(({indicator:e})=>t.jsx("div",{className:"absolute pointer-events-none",style:{left:`${e.x}px`,top:`${e.y}px`,transform:"translate(-50%, -50%)"},children:t.jsx("div",{className:dt("w-6 h-6 rounded-full border-2 animate-pulse","click"===e.type&&"border-danger-000 bg-danger-000/30","hover"===e.type&&"border-brand-100 bg-brand-100/30","scroll"===e.type&&"border-accent-100 bg-accent-100/30")})}));Bze.displayName="ClickIndicatorOverlay";const qze=e.memo(({toolCall:s,isHighlighted:n,previousScreenshot:a,orgUuid:i,displayText:r,iconType:o})=>{const[l,c]=e.useState(!1),d=e.useRef(null),[u,m]=e.useState(null),p=e.useCallback(()=>{c(e=>!e)},[]),f=eI(s.toolResult),g=sI(s.input),h=e.useMemo(()=>tI(f,i),[f,i]),C=h??(g?a:void 0),x=!h&&g&&a,v=e.useCallback(e=>{const t=e.currentTarget;if(d.current){const e=d.current.offsetWidth,s=t.naturalWidth,n=t.naturalHeight;if(0===s||0===n)return;m({scaleX:e/s,scaleY:e/s*n/n})}},[]),y=e.useMemo(()=>x&&g&&u?{...g,x:g.x*u.scaleX,y:g.y*u.scaleY}:null,[x,g,u]);return t.jsxs("div",{className:dt("rounded-lg border border-border-300 overflow-hidden transition-colors",n&&"ring-2 ring-brand-100 ring-offset-1"),children:[C&&t.jsxs("div",{ref:d,className:"relative border-b border-border-300",children:[t.jsx("img",{src:C,alt:r,className:"w-full h-auto",onLoad:v,loading:"lazy",decoding:"async"}),y&&t.jsx(Bze,{indicator:y})]}),t.jsx(yL,{isExpanded:l,setIsExpanded:p,text:r,icon:t.jsx(npe,{icon:o}),isStreaming:!1,isFirstBlockOfMessage:!0,isLastBlockOfMessage:!0,isError:s.toolResult?.is_error,wrapperClassName:"!border-0 !my-0 !rounded-none",children:t.jsx(kL,{isExpanded:l,isScrollable:!0,snappyTransition:!1,children:t.jsx(JN,{input:s.input,toolResult:s.toolResult?{...s.toolResult,content:Zze(s.toolResult.content)}:void 0})})})]})});qze.displayName="BrowserExtensionToolRow";const Wze=e.memo(({visibleToolCalls:e,highlightId:s,previousScreenshotMap:n,orgUuid:a,onHighlightMount:i})=>{const r=JS();return t.jsx("div",{className:"flex flex-col gap-4",children:e.map(e=>{const{text:o,icon:l,hint:c}=V9(e.toolName,e.input,r),d=e.id===s,u=c&&!e.toolResult;return t.jsxs("div",{ref:d?i:void 0,children:[t.jsx(qze,{toolCall:e,isHighlighted:d,previousScreenshot:n.get(e.id),orgUuid:a,displayText:o,iconType:l}),u&&t.jsx(fSe,{className:"mt-2",children:c})]},e.id)})})});Wze.displayName="ToolCallList";const $ze=e.memo(function({onClose:s,toolCalls:n,highlightId:a}){const i=JS(),{activeOrganization:r}=v(),o=r?.uuid,{isSwitching:l}=zze(),c=mM(),[d,u]=e.useState(20),m=e.useMemo(()=>n.some(e=>void 0!==e.timestamp)?[...n].sort((e,t)=>e.timestamp||t.timestamp?e.timestamp?t.timestamp?t.timestamp-e.timestamp:-1:1:0):[...n].reverse(),[n]),p=e.useMemo(()=>m.slice(0,d),[m,d]),f=m.length>d,g=m.length-d,h=e.useCallback(()=>{u(e=>Math.min(e+100,m.length))},[m.length]),C=e.useMemo(()=>{const e=new Map;let t;for(const s of n){t&&e.set(s.id,t);const n=eI(s.toolResult),a=tI(n,o);a&&(t=a)}return e},[n,o]),x=e.useCallback(e=>{e&&requestAnimationFrame(()=>{e.scrollIntoView({behavior:"smooth",block:"center"})})},[]);return t.jsxs("div",{className:"flex h-full flex-col pb-1 pl-5 pt-3",children:[t.jsxs("div",{className:"sticky flex items-center gap-2 pr-5",children:[t.jsx("div",{className:"flex-shrink-0 w-6 h-6 flex items-center justify-center bg-bg-000 rounded-md border border-border-300 text-text-400",children:t.jsx($L,{name:"Computer",size:"sm"})}),t.jsx("h2",{className:"font-ui truncate text-lg font-medium leading-tight",children:i.formatMessage({defaultMessage:"Claude in Chrome",description:"Title for browser extension activity detail panel",id:"DGRKoR1dTN"})}),(c||l)&&t.jsx("span",{className:"text-sm text-text-400 truncate leading-tight flex-shrink min-w-0",children:l?i.formatMessage({defaultMessage:"Open Chrome and click Connect",description:"Instruction shown while switching browser pairing",id:"FqAEli9aAu"}):c}),t.jsx("div",{className:"flex-1"}),t.jsx(rN,{variant:"ghost",iconOnly:!0,icon:"X",className:"-mr-2",onClick:s,"aria-label":i.formatMessage({defaultMessage:"Close panel",description:"Button to close the browser extension detail panel",id:"CoaHH2VUEe"})})]}),t.jsxs("div",{className:"mb-1 flex flex-col pb-3 pr-5 min-h-0 flex-1",children:[t.jsx(Vze,{interactive:!0}),t.jsx("div",{className:"text-xs text-text-400 uppercase tracking-wide py-2",children:i.formatMessage({defaultMessage:"{count, plural, one {# tool call} other {# tool calls}}",description:"Header showing count of browser extension tool calls",id:"qDl9ioxGkj"},{count:m.length})}),t.jsxs("div",{className:"min-h-0 flex-1 overflow-y-auto",children:[p.length>0?t.jsx(Wze,{visibleToolCalls:p,highlightId:a,previousScreenshotMap:C,orgUuid:o,onHighlightMount:x}):t.jsx("div",{className:"text-sm text-text-400 py-4 text-center",children:i.formatMessage({defaultMessage:"No browser extension activity yet",description:"Empty state for browser extension activity",id:"aJMothD9DT"})}),f&&t.jsx("div",{className:"py-3",children:t.jsx(rN,{variant:"secondary",size:"sm",onClick:h,className:"w-full",children:i.formatMessage({defaultMessage:"Show {count} more",description:"Button to load more browser extension tool calls",id:"oS1PnsWkvn"},{count:Math.min(g,100)})})})]})]})]})});function Gze(e){const{docUuid:s,projectUuid:n,goBack:a,onClose:i,virtualize:r,isOpen:o}=e,{data:l}=pM({projectUuid:n,docUuid:s});if(!l)return null;const c={file_name:l.file_name,file_size:l.content.length,file_type:"text/plain",extracted_content:l.content,origin:ts.UserUpload,kind:It.File};return t.jsx(Pze,{attachment:c,goBack:a,onClose:i,virtualize:r,isOpen:o})}const Kze=e.memo(({toolCall:s,serverIconType:n,serverIconSrc:a,serverName:i})=>{const r=s.toolResult?.content?.some(e=>"image"===e.type)??!1,[o,l]=e.useState(void 0),c=o??!r,d=e.useCallback(()=>l(!c),[c]);return t.jsx(yL,{isExpanded:c,setIsExpanded:d,text:s.displayName,icon:t.jsx(Ls,{size:16,type:n,src:a,name:i}),isStreaming:!1,isFirstBlockOfMessage:!0,isLastBlockOfMessage:!0,children:t.jsx(kL,{isExpanded:c,isScrollable:!0,snappyTransition:!1,children:t.jsx(JN,{input:s.input,toolResult:s.toolResult})})})});Kze.displayName="ToolCallRow";const Yze=e.memo(function({serverUuid:s,serverName:n,iconType:a,iconSrc:i,onClose:r,toolCalls:o}){const l=JS(),c=e.useMemo(()=>[...o].sort((e,t)=>e.timestamp||t.timestamp?e.timestamp?t.timestamp?t.timestamp-e.timestamp:-1:1:0),[o]);return t.jsxs("div",{className:"flex h-full flex-col pb-1 pl-5 pt-3",children:[t.jsxs("div",{className:"sticky flex items-center gap-1 pr-5",children:[t.jsx(Ls,{size:24,imageSize:20,name:n,type:a,src:i,className:"shrink-0"}),t.jsx("h2",{className:"font-ui flex-1 truncate text-lg font-medium",children:n}),t.jsx(rN,{variant:"ghost",iconOnly:!0,icon:"X",className:"-mr-2",onClick:r,"aria-label":l.formatMessage({defaultMessage:"Close panel",description:"Button to close the MCP server detail panel",id:"1RWu+uzjFS"})})]}),t.jsxs("div",{className:"mb-1 flex flex-col pb-3 pr-5 min-h-0 flex-1",children:[t.jsx("div",{className:"text-xs text-text-400 uppercase tracking-wide py-2",children:l.formatMessage({defaultMessage:"{count, plural, one {# tool call} other {# tool calls}}",description:"Header showing count of tool calls",id:"6b4EFZCPvR"},{count:c.length})}),t.jsx("div",{className:"min-h-0 flex-1 overflow-y-auto",children:t.jsxs("div",{className:"flex flex-col gap-2",children:[c.map(e=>t.jsx(Kze,{toolCall:e,serverIconType:a,serverIconSrc:i,serverName:n},e.id)),0===c.length&&t.jsx("div",{className:"text-sm text-text-400 py-4 text-center",children:l.formatMessage({defaultMessage:"No tool calls yet",description:"Empty state for MCP server activity",id:"YkHKEmiZL+"})})]})})]})]})});function Qze(e){const t={name:"",path:"",type:"directory",children:[],additions:0,deletions:0,fileCount:0},s=[...e].sort((e,t)=>e.filename.localeCompare(t.filename));for(const n of s){const e=n.filename.split("/").filter(Boolean);let s=t;for(let t=0;t<e.length;t++){const a=e[t],i=t===e.length-1,r=e.slice(0,t+1).join("/");s.children||(s.children=[]);let o=s.children.find(e=>e.name===a);o||(o={name:a,path:r,type:i?"file":"directory",children:i?void 0:[],file:i?n:void 0,additions:i?n.additions??0:0,deletions:i?n.deletions??0:0,fileCount:i?1:0},s.children.push(o)),s=o}}return Jze(t),Xze(t),t}function Jze(e){if(!e.children||0===e.children.length)return;let t=0,s=0,n=0;for(const a of e.children)Jze(a),t+=a.additions,s+=a.deletions,n+=a.fileCount;e.additions=t,e.deletions=s,e.fileCount=n}function Xze(e){if(e.children){e.children.sort((e,t)=>"directory"===e.type&&"file"===t.type?-1:"file"===e.type&&"directory"===t.type?1:e.name.localeCompare(t.name));for(const t of e.children)Xze(t)}}function eZe(e,t){return"directory"===e.type&&t.has(e.path)}function tZe(e,t,s){return"file"===e.type&&null!==e.file&&void 0!==e.file&&t===s(e.file.filename)}const sZe=e.memo(({node:s,depth:n,isExpanded:a,isActive:i,onToggle:r,onFileClick:o,expandedFolders:l,activeFileHash:c,getFileHash:d,commentCounts:u})=>{const m=JS(),p=e.useCallback(()=>{"directory"===s.type?r(s.path):s.file&&o(s.file.filename)},[s,r,o]);if("directory"===s.type)return t.jsxs(t.Fragment,{children:[t.jsxs("button",{type:"button",onClick:p,style:{paddingLeft:"8px"},className:dt("group flex items-center gap-1.5 w-full pr-2 py-1.5 text-left transition-colors","hover:bg-bg-200 text-text-300 hover:text-text-100"),"aria-label":m.formatMessage({defaultMessage:"{action} folder {name}",id:"hyfwl4pfKG"},{action:a?"Collapse":"Expand",name:s.name}),"aria-expanded":a,children:[t.jsx("span",{className:"text-text-400 shrink-0",children:a?t.jsx(CD,{size:14}):t.jsx(kR,{size:14})}),t.jsx("span",{className:"text-xs font-normal truncate",children:s.name})]}),a&&s.children&&t.jsx("div",{className:"ml-3 border-l border-dotted border-border-400",children:s.children.map(e=>t.jsx(sZe,{node:e,depth:n+1,isExpanded:eZe(e,l),isActive:tZe(e,c,d),onToggle:r,onFileClick:o,expandedFolders:l,activeFileHash:c,getFileHash:d,commentCounts:u},e.path))})]});const f=s.file&&u?u[s.file.filename]??0:0;return t.jsx(iN,{multiline:!0,className:"[overflow-wrap:anywhere]",content:s.path,side:"right",children:t.jsxs("button",{type:"button",onClick:p,style:{paddingLeft:"8px"},className:dt("flex items-center gap-1.5 w-full pr-2 py-1.5 text-left transition-colors",i?"bg-bg-200 text-text-100":"hover:bg-bg-200 text-text-300 hover:text-text-100"),children:[t.jsx("span",{className:"text-xs truncate",children:s.name}),s.file&&((s.file.additions??0)>0||(s.file.deletions??0)>0)&&t.jsxs("span",{className:"flex items-center gap-1 text-[10px] font-normal shrink-0",children:[(s.file.additions??0)>0&&t.jsxs("span",{className:"text-success-000",children:["+",s.file.additions]}),(s.file.deletions??0)>0&&t.jsxs("span",{className:"text-danger-000",children:["-",s.file.deletions]})]}),f>0&&t.jsx("span",{className:"flex items-center justify-center min-w-[18px] h-[18px] rounded-full bg-brand-100 text-oncolor-100 text-[10px] font-medium px-1 ml-auto shrink-0",children:f})]})})});function nZe(e){return e}sZe.displayName="DiffFileTreeNodeItem";const aZe=e.memo(({files:s,activeFileHash:n,onFileClick:a,getFileHash:i=nZe,className:r,commentCounts:o})=>{const[l,c]=e.useState(()=>new Set),[d,u]=e.useState(!1),m=e.useMemo(()=>Qze(s),[s]);e.useMemo(()=>{if(!d&&m.children&&m.children.length>0){const e=function(e){const t=new Set;return function e(s){if("directory"===s.type&&s.path&&t.add(s.path),s.children)for(const t of s.children)e(t)}(e),t}(m);c(e),u(!0)}},[m,d]);const p=e.useCallback(e=>{c(t=>{const s=new Set(t);return s.has(e)?s.delete(e):s.add(e),s})},[]);return t.jsx("div",{className:dt("flex flex-col",r),children:t.jsx("div",{className:"flex-1 overflow-y-auto",children:m.children&&m.children.length>0?m.children.map(e=>t.jsx(sZe,{node:e,depth:0,isExpanded:eZe(e,l),isActive:tZe(e,n,i),onToggle:p,onFileClick:a,expandedFolders:l,activeFileHash:n,getFileHash:i,commentCounts:o},e.path)):t.jsx("div",{className:"px-3 py-4 text-center text-text-400 text-xs",children:t.jsx(XS,{defaultMessage:"No files changed",id:"z6L6tQBOr9"})})})})});aZe.displayName="DiffFileTree";const iZe="_flash_s0rux_19";function rZe({scrollTarget:t,clearScrollTarget:s,archiveComments:n,selectedPath:a,setSelectedPath:i,viewing:r,setViewing:o,contentReady:l=!0}){const c=e.useRef(-1),d=e.useRef(!0),[u,m]=e.useState(null);e.useEffect(()=>{if(!t)return;if(0===n.length)return;const e=n.find(e=>e.id===t.commentId);if(!e)return void s?.();const r=fM(e.target);if(void 0===r)return void s?.();const o=e.target.anchor,l=r!==a;l&&i?.(r),m({filePath:r,commentId:e.id,lineNumber:"plaintext"===o.kind?o.endLine:null,nonce:t.nonce,instantScroll:l||d.current}),s?.()},[t,n,a,i,s]),e.useEffect(()=>{d.current=!1},[]),e.useEffect(()=>{if(!u||u.filePath!==a)return;if(c.current===u.nonce)return;if(!l)return;let e=0,t=0,s=0,n=null,i=[];const d=e=>{e.classList.remove(iZe),e.offsetWidth,e.classList.add(iZe),c.current=u.nonce,s=window.setTimeout(()=>{e.classList.remove(iZe)},1e3)},m=(e,s=d)=>{n=e;const a=e.getBoundingClientRect(),i=a.top,r=a.bottom,o=r-i,l=e.closest(".overflow-auto, .overflow-y-auto")??document.documentElement,c=l.getBoundingClientRect();if(i>=c.top&&r<=c.bottom)return void s(e);const m=i+o/2,p=c.top+c.height/2,f=l.scrollTop,g=Math.max(0,Math.min(f+(m-p),l.scrollHeight-l.clientHeight));if(u.instantScroll)return l.scrollTop=g,void s(e);const h=g-f,C=performance.now(),x=n=>{const a=Math.min((n-C)/400,1);l.scrollTop=f+h*function(e){return 1-(1-e)**2}(a),a<1?t=window.requestAnimationFrame(x):s(e)};t=window.requestAnimationFrame(x)};return e=window.requestAnimationFrame(()=>{const e=Array.from(document.querySelectorAll(`[data-skill-file-viewer] [${wH}="${u.commentId}"]`));if(e.length>0)return void m(e[0],()=>(e=>{for(const t of e)t.classList.add(MH);i=e,c.current=u.nonce,s=window.setTimeout(()=>{for(const t of e)t.classList.remove(MH);i=[]},1e3)})(e));const t=document.querySelector(`[data-skill-file-viewer] [data-comment-id="${u.commentId}"]`);if(t)return void m(t);if(null===u.lineNumber)return void(c.current=u.nonce);if("raw"!==r)return void o("raw");const n=document.querySelector(`[data-skill-file-viewer] [data-diff-line="${u.lineNumber}"]`);n?m(n):c.current=u.nonce}),()=>{window.cancelAnimationFrame(e),window.cancelAnimationFrame(t),window.clearTimeout(s),n?.classList.remove(iZe);for(const e of i)e.classList.remove(MH)}},[u?.nonce,a,r,l])}const oZe=[],lZe=e.memo(({files:s,onSelectedPathChange:n,review:a})=>{const{copyToClipboard:i,didCopy:r}=xN(),{treeFiles:o,filesByDisplayPath:l}=e.useMemo(()=>{const e=_H(s),t=new Map,n=[];for(const a of s){const s=a.path.split("/").filter(Boolean);if(e&&s[0]===e&&s.shift(),0===s.length)continue;const i=s.join("/");t.set(i,a),n.push({filename:i})}return{treeFiles:n,filesByDisplayPath:t}},[s]),c=e.useMemo(()=>{for(const t of o)if("SKILL.md"===t.filename)return t.filename;const e=[...o].sort((e,t)=>function(e,t){const s=e.split("/"),n=t.split("/"),a=Math.min(s.length,n.length);for(let i=0;i<a;i++){const e=i===s.length-1,t=i===n.length-1;if(e&&!t)return 1;if(!e&&t)return-1;const a=s[i].localeCompare(n[i]);if(0!==a)return a}return s.length-n.length}(e.filename,t.filename));return e[0]?.filename??null},[o]),[d,u]=e.useState(c),[m,p]=e.useState("normal"),f=d?l.get(d):void 0,g=f?.content;e.useEffect(()=>{n?.(d)},[d,n]);const h=e.useCallback(e=>{u(e),p("normal")},[]),C=d?.split("/").pop()??"file",{fileMimeType:x,fileSyntax:v,displayFileType:y,isTextContent:b}=Xt(d||""),k="rich"===y&&b?"code":y,w=e.useCallback(async()=>{"string"==typeof g&&await i(g)},[i,g]),{commentProps:M,archivePath:_,scrollTarget:j,clearScrollTarget:S}=a??{},L=M?.comments??oZe,N=e.useMemo(()=>{if(!M)return;const e={};for(const t of L){if(!gM(t))continue;const s=fM(t.target);void 0!==s&&(e[s]=(e[s]??0)+1)}return e},[L,M]);rZe({scrollTarget:j??null,clearScrollTarget:S,archiveComments:L,selectedPath:d,setSelectedPath:u,viewing:m,setViewing:p});const I=!!M&&null!==d&&b,T="markdown"===v?"raw"===m?"raw":"rendered":null,A=M?.onCommentSubmit,E=e.useCallback((e,t,s)=>A?.("file"===e.document.kind?{...e,document:{...e.document,archivePath:_}}:e,t,{...s,displayMode:T}),[A,_,T]),R=M?.onCommentUpdate,D=e.useCallback((e,t,s)=>R?.(e,t,{...s,displayMode:T}),[R,T]),H=e.useMemo(()=>I&&M?{...M,onCommentSubmit:E,onCommentUpdate:D}:void 0,[I,M,E,D]),P=s.length>1;return t.jsxs("div",{"data-skill-file-viewer":!0,className:"flex h-full border-t border-border-300",children:[P&&t.jsx(aZe,{files:o,activeFileHash:d,onFileClick:h,className:"w-60 shrink-0 bg-bg-000 border-r border-border-300 py-2",commentCounts:N}),t.jsx("div",{className:"flex-1 min-w-0 flex flex-col",children:t.jsxs("div",{className:"bg-bg-000 flex flex-col h-full overflow-hidden relative group",children:[b&&void 0!==g&&t.jsx(jH,{viewing:m,onViewingChange:p,onCopy:w,didCopy:r,showToggle:"markdown"===v}),t.jsx("div",{className:"flex-1 min-h-0 overflow-auto",children:f?.contentsOmitted?t.jsx("div",{className:"flex items-center justify-center h-full text-text-300",children:void 0!==f.size?t.jsx(XS,{defaultMessage:"{sizeMb} MB \u2014 too large to preview",id:"CcdMgiliKQ",values:{sizeMb:(f.size/1048576).toFixed(1)}}):t.jsx(XS,{defaultMessage:"File is too large to preview",id:"nVfvltfEIc"})}):void 0!==g?t.jsx(rH,{content:g,displayFileType:k,language:v,viewing:m,fileName:C,filePath:d??void 0,archivePath:_,mimeType:x,commentProps:H,proseReviewScope:a?.storeKey,proseReviewAnalyticsCtx:a?.analyticsCtx,onProseReviewSendToClaude:a?.onProseReviewSendToClaude,proseReviewSendDisabled:a?.proseReviewSendDisabled,noAutoScroll:!0},d):t.jsx("div",{className:"flex items-center justify-center h-full text-text-300",children:t.jsx(XS,{defaultMessage:"Select a file to view its content",id:"Cag1YO8/Qh"})})})]})})]})});lZe.displayName="SkillFileViewer";const cZe=e.memo(function({proposal:s,onSaved:n}){const{addError:a}=ut(),{track:i}=ae(),r=PN(e=>e.markSaved),o=PN(e=>{const t=e.rowState[s.name];return"saved"===t||"dismissed"===t}),l="improvement"===s.kind&&void 0!==s.target,{skills:c,isLoading:d}=Ng(),u=e.useMemo(()=>{const e=(l?s.target:s.name)?.trim().toLowerCase();if(e)return c.find(t=>Ig(t)&&t.skillName.trim().toLowerCase()===e)},[l,c,s.target,s.name]),m=e.useCallback(()=>{i({event_key:"claudeai.cowork.skill_proposal.adopted",proposal_kind:s.kind}),r(s.name),n()},[i,r,s.name,s.kind,n]),p=e.useCallback(e=>a(t.jsx(XS,{defaultMessage:"Couldn't save this skill. Please try again.",id:"J3vPZ97skk"}),{error:e}),[a]),{mutate:f,isPending:g}=hM({onSuccess:m,onError:p}),{mutate:h,isPending:C}=CM({onSuccess:m,onError:p}),[x,v]=e.useState(!1),y=e.useCallback(()=>{u?h({skillId:u.skillId,description:s.description,instructions:xM(s.skillMd)}):v(!1)},[u,s.description,s.skillMd,h]),b=e.useCallback(()=>{v(!1)},[]),k=e.useCallback(()=>{u?v(!0):l?a(t.jsx(XS,{defaultMessage:"Couldn't find the original skill to update.",id:"FPL4gR1TQh"})):f({name:s.name,description:s.description,instructions:xM(s.skillMd)})},[l,u,s.name,s.description,s.skillMd,f,a]);return o?null:t.jsxs(t.Fragment,{children:[t.jsx(rN,{variant:"primary",size:"sm",className:"!rounded-lg",onClick:k,busy:g||d,children:l||u?t.jsx(XS,{defaultMessage:"Update skill",id:"pZCF1XMh/y"}):t.jsx(XS,{defaultMessage:"Save skill",id:"QvmjxZ7K5S"})}),t.jsx(Tde,{skillName:u?.skillName??"",isOpen:x,isLoading:C,onConfirm:y,onCancel:b})]})});function dZe(){return t.jsx(SH,{className:"flex h-full items-center justify-center"})}function uZe(){return t.jsx("div",{className:"flex h-full items-center justify-center text-sm text-text-400",children:t.jsx(XS,{defaultMessage:"Skill details couldn't be loaded.",id:"o3/Sj0SbqC",description:"Shown when a skill selected from the context panel cannot be resolved"})})}function mZe(t){const{data:s,isLoading:n}=vM({includeSystemInternal:!0}),{data:a,isLoading:i}=_c(),r=e.useMemo(()=>{if(!t)return;const e=a?.find(e=>e.name===t&&e.enabled);if(e)return jg(e.id);const n=s?.find(e=>e.name===t);return n?jg(n.id):void 0},[a,s,t]),o=n||i,l=!!t&&!o&&!r,{data:c,isLoading:d}=Cv({enabled:l}),u=e.useMemo(()=>l?c?.plugins.find(e=>e.name===t):void 0,[l,c,t]);return{resolvedPluginId:r??(u?yv({name:u.name,marketplaceName:u.marketplace_name}):void 0),backendPluginId:u?.id,isResolving:o||l&&d}}const pZe=e.memo(({fullSkillName:s,pluginName:n})=>{const{resolvedPluginId:a,backendPluginId:i,isResolving:r}=mZe(n),{data:o,isLoading:l}=pv(a??null),c=ql(s),d=e.useMemo(()=>o?.skills.find(e=>ql(e.name)===c),[o?.skills,c]),u="legacy-commands"===d?.source,{files:m,isLoading:p}=oT(a??jg(""),d?.name??"",{enabled:!!a&&!!d,isLegacyCommand:u,backendPluginId:o?.backendId??i}),f=0===m.length&&d?.content?[{path:"SKILL.md",content:d.content}]:m,g=r||l||p;return a&&d&&0!==f.length?t.jsx(lZe,{files:f}):g?t.jsx(dZe,{}):t.jsx(uZe,{})});pZe.displayName="PluginSkillContent";const fZe=e.memo(({skillName:s})=>{const{skills:n,isLoading:a}=Ng(!0,{includeWiggleSkills:!0}),{data:i,isLoading:r}=ur(),o=e.useMemo(()=>i?.find(e=>e.name===s),[i,s]),l=e.useMemo(()=>n.find(e=>e.skillName===s&&e.enabled)??n.find(e=>e.skillName===s),[n,s]),{files:c,isLoading:d}=lT(l?.skillId,{enabled:!!l}),u=a||r||d;return l&&0!==c.length?t.jsx(lZe,{files:c}):u?t.jsx(dZe,{}):l?t.jsx(uZe,{}):t.jsx(cT.Provider,{value:{actionsContainer:null},children:t.jsx(mP,{skill:o??{name:s},hideTryButton:!0,addedBy:o?void 0:null})})});fZe.displayName="StandaloneSkillContent";const gZe=e.memo(function({skillName:s,pluginName:n,proposal:a,onClose:i}){const r=JS(),o=gv(),l=Rg,c=ql(s),d=e.useMemo(()=>a?[{path:"SKILL.md",content:a.skillMd}]:void 0,[a]),{resolvedPluginId:u}=mZe(n),m=n?u?`/customize/plugins/${encodeURIComponent(u)}/skills?selected=${encodeURIComponent(s)}`:"/customize/plugins":l,p=n&&u?`/customize/plugins/${encodeURIComponent(u)}`:void 0,f=e.useCallback(()=>{o(m,p)},[o,m,p]);return t.jsxs("div",{className:"flex h-full flex-col pb-1 pl-5 pt-3",children:[t.jsxs("div",{className:"sticky flex items-center gap-1 pr-5",children:[t.jsx("div",{className:"flex-shrink-0 w-6 h-6 flex items-center justify-center bg-bg-000 rounded-md border border-border-300 text-text-400",children:t.jsx($L,{name:"Scroll",size:"md"})}),t.jsx("h2",{className:"font-ui flex-1 truncate text-lg font-medium",children:c}),a?t.jsx(cZe,{proposal:a,onSaved:i}):t.jsx(rN,{variant:"secondary",size:"sm",className:"!rounded-lg",onClick:f,children:t.jsx(XS,{defaultMessage:"Manage",id:"0AzlrbMWV9"})}),t.jsx(rN,{variant:"ghost",iconOnly:!0,icon:"X",className:"-mr-2",onClick:i,"aria-label":r.formatMessage({defaultMessage:"Close panel",id:"BlIaZtlhcn",description:"Button to close the skill detail panel"})})]}),t.jsx("div",{className:"mb-1 flex min-h-0 flex-1 flex-col pb-3",children:d?t.jsx(lZe,{files:d}):n?t.jsx(pZe,{fullSkillName:s,pluginName:n}):t.jsx(fZe,{skillName:s})})]})});const hZe=e.memo(function({onClose:s}){const n=JS();return e.useEffect(()=>()=>LSe.getState().close(),[]),t.jsxs("div",{className:"flex h-full flex-col",children:[t.jsxs("header",{className:"flex h-12 shrink-0 items-center justify-between border-b px-4",children:[t.jsx("h2",{className:"truncate text-body font-medium text-primary",children:n.formatMessage({defaultMessage:"Activity",id:"Q2TIls3I/b",description:"Title for the timeline steps detail panel"})}),t.jsx(rN,{variant:"ghost",iconOnly:!0,icon:"X",size:"sm",onClick:s,"aria-label":n.formatMessage({defaultMessage:"Close panel",id:"PnVrOGwcpH",description:"Button to close the timeline steps detail panel"})})]}),t.jsx("div",{id:SSe,className:"flex min-h-0 flex-1 flex-col gap-2 overflow-y-auto p-4 text-body [&_*]:!animate-none [&_*]:!transition-none"})]})}),CZe=e.memo(({search:s})=>{const[n,a]=e.useState(!0),i=JS(),r=e.useCallback(()=>{a(e=>!e)},[]),o=s.results.length,l=i.formatMessage({defaultMessage:"{count, plural, one {# result} other {# results}}",description:"Count of web search results",id:"J2v/1b5Cbz"},{count:o});return t.jsx(yL,{isExpanded:n,setIsExpanded:r,text:s.query||"Web search",secondaryText:l,icon:t.jsx(xD,{size:16}),isStreaming:!1,isFirstBlockOfMessage:!0,isLastBlockOfMessage:!0,isError:s.isError,children:t.jsx(kL,{isExpanded:n,isScrollable:!0,snappyTransition:!1,children:s.results.length>0&&t.jsx("div",{className:"flex flex-nowrap p-2 pt-0 flex-col",children:s.results.map(e=>t.jsx(Eq,{disabled:!n,icon:t.jsx(rt,{url:e.faviconUrl||e.url,size:16}),title:e.title||e.url,subtitles:e.siteDomain?[e.siteDomain]:void 0,url:e.url},e.url))})})})});CZe.displayName="WebSearchRow";const xZe=e.memo(function({onClose:s,webSearches:n}){const a=JS(),i=e.useMemo(()=>[...n].sort((e,t)=>e.timestamp||t.timestamp?e.timestamp?t.timestamp?t.timestamp-e.timestamp:-1:1:0),[n]);return t.jsxs("div",{className:"flex h-full flex-col pb-1 pl-5 pt-3",children:[t.jsxs("div",{className:"sticky flex items-center gap-1 pr-5",children:[t.jsx("div",{className:"flex-shrink-0 w-6 h-6 flex items-center justify-center bg-bg-000 rounded-md border border-border-300 text-text-400",children:t.jsx(xD,{size:16})}),t.jsx("h2",{className:"font-ui flex-1 truncate text-lg font-medium",children:a.formatMessage({defaultMessage:"Web Search",description:"Title for web search activity detail panel",id:"erkgiz04xh"})}),t.jsx(rN,{variant:"ghost",iconOnly:!0,icon:"X",className:"-mr-2",onClick:s,"aria-label":a.formatMessage({defaultMessage:"Close panel",description:"Button to close the web search detail panel",id:"9Up6TiAtz+"})})]}),t.jsxs("div",{className:"mb-1 flex flex-col pb-3 pr-5 min-h-0 flex-1",children:[t.jsx("div",{className:"text-xs text-text-400 uppercase tracking-wide py-2",children:a.formatMessage({defaultMessage:"{count, plural, one {# search} other {# searches}}",description:"Header showing count of web searches",id:"U61wp+86Xp"},{count:i.length})}),t.jsx("div",{className:"min-h-0 flex-1 overflow-y-auto",children:t.jsxs("div",{className:"flex flex-col gap-2",children:[i.map(e=>t.jsx(CZe,{search:e},e.id)),0===i.length&&t.jsx("div",{className:"text-sm text-text-400 py-4 text-center",children:a.formatMessage({defaultMessage:"No web searches yet",description:"Empty state for web search activity",id:"xGOUVSbQU8"})})]})})]})]})}),vZe=Object.values(Se),yZe=fn(()=>a(()=>import("./c667b4aab-lmbRXG56.js").then(e=>e.b),__vite__mapDeps([0,1]),import.meta.url).then(e=>e.CoworkArtifactDetail),{}),bZe=fn(()=>a(()=>import("./cb4d57be4-5KjW4zJs.js").then(e=>e.a),__vite__mapDeps([0,1]),import.meta.url).then(e=>e.ImageAnnotationDetail),{}),kZe=fn(()=>a(()=>import("./c42a121b3-DMOxT-_D.js").then(e=>e.b),__vite__mapDeps([0,1,2]),import.meta.url).then(e=>e.FileDetail),{}),wZe=e.memo(({selectedItem:s,resourceActivity:n,onClose:a})=>{const i=e.useMemo(()=>n.filter(e=>"mcp_tool"===e.operation&&e.mcpServerUuid===s.serverUuid).map(e=>({id:e.id,toolName:e.mcpToolName,displayName:e.mcpToolDisplayName,input:e.mcpToolInput,toolResult:e.mcpToolResult?{type:"tool_result",tool_use_id:e.id,name:e.mcpToolName,is_error:e.mcpToolResult.isError??!1,content:e.mcpToolResult.content}:void 0,timestamp:e.timestamp})),[n,s.serverUuid]);return t.jsx(Yze,{serverUuid:s.serverUuid,serverName:s.serverName,iconType:s.iconType,iconSrc:s.iconSrc,onClose:a,toolCalls:i},s.serverUuid)});wZe.displayName="McpServerActivityDetailWrapper";const MZe=e.memo(({resourceActivity:s,onClose:n})=>{const a=e.useMemo(()=>s.filter(e=>"web_search"===e.operation).map(e=>({id:e.id,query:e.searchQuery,results:e.searchResults,timestamp:e.timestamp,isError:e.isError})),[s]);return t.jsx(xZe,{onClose:n,webSearches:a})});MZe.displayName="WebSearchActivityDetailWrapper";const _Ze=e.memo(({resourceActivity:s,onClose:n,highlightId:a})=>{const i=e.useMemo(()=>s.filter(e=>"mcp_tool"===e.operation&&Wo({uuid:e.mcpServerUuid})).map(e=>{const t=e.mcpToolResult?.content?.find(e=>"image"===e.type);return{id:e.id,toolName:e.mcpToolName,displayName:e.mcpToolDisplayName,input:e.mcpToolInput,toolResult:e.mcpToolResult?{type:"tool_result",tool_use_id:e.id,name:e.mcpToolName,is_error:e.mcpToolResult.isError??!1,content:e.mcpToolResult.content}:void 0,timestamp:e.timestamp,imageFileUuid:"image"===t?.type?t.file_uuid:void 0}}),[s]);return t.jsx($ze,{onClose:n,toolCalls:i,highlightId:a})});_Ze.displayName="BrowserExtensionActivityDetailWrapper";const jZe=new Map;const SZe=e.memo(function({conversationUuid:s,onClose:n,isStreaming:a,projectUuid:i,sendMessage:r,canQueueSend:o=!1,isOpen:l,isTemporary:c=!1,resourceActivity:d=[],deliveredFileUuidByPath:u=jZe,fsLastModified:m}){const p=yM(s),f=e.useMemo(()=>{for(let e=d.length-1;e>=0;e--){const t=d[e];if(D4(t))return`${t.id}-${t.timestamp??""}`}},[d])??p,g=void 0!==m?`${f??""}:${m}`:f,{activeOrganization:h}=v(),{chatResourceState:{selectedItem:C,activeMessageUuid:x,attachments:y,files:b,streamingFiles:k},dispatchChatResource:w}=RN(),M=h?.uuid;!function(t,s=IVe){const n=AVe(e=>e.park),a=AVe(e=>e.unpark);e.useEffect(()=>{if(t)return n(s),()=>{a(s)}},[t,s,n,a])}(!l);const{setIsDrawerMaximized:_}=DN(),j=C?.type;e.useEffect(()=>{"file"!==j&&_(!1)},[j,_]);const S=bM(),L=nle({conversationUuid:s,source:"w"}),N=L.data?.artifact_versions,I=e.useMemo(()=>{if(!C||"artifact"!==C.type||!N)return;const e=N.find(e=>e.uuid===C?.versionUuid);if(!e)return;const t=kM(C.id,e.code_language);return{id:e.artifact_uuid,title:e.title,language:e.code_language,type:t&&vZe.includes(t)?t:e.artifact_type,version_uuid:e.uuid,versions:[{command:"create",uuid:e.uuid,resultState:e.result_state,content:e.result_state,message:e.message_uuid,created_at:e.created_at,source:e.source,isClosed:!0}]}},[N,C]),T="artifact"===C?.type&&C.versionUuid?{uuid:C.versionUuid,type:"artifact_version",conversation_uuid:s}:void 0,A=CVe({artifactContext:T}),E=gL(),R=xVe({artifactContext:T,chatConversationUuid:s,onStorageChange:()=>{E.invalidateQueries({queryKey:[Nle]})}}),D=hVe(y,b,M,i),H=e.useMemo(()=>({claudeComplete:A,getFile:D,storage:R}),[A,D,R]),P=L.refetch,U=e.useCallback(async()=>{await P()},[P]),O=e.useCallback(e=>{"artifact"===C?.type&&w({type:"SELECT_ARTIFACT",id:C.id,versionUuid:e})},[C,w]),F=e.useCallback(e=>w({type:"SELECT_DOC",id:e}),[w]),V="artifact"===C?.type&&S[C.id]?S[C.id]:I,z="file"===C?.type?R4(u,C.path):void 0,Z="file"===C?.type?C.openWith:void 0,B=e.useMemo(()=>z?{via:"uuid",uuid:z}:Z,[z,Z]);return t.jsx(t.Fragment,{children:"artifact"===C?.type&&V?t.jsx("div",{className:"relative h-full",children:t.jsx(Kle,{isStreaming:a,artifact:V,selectedArtifactMessageUuid:x,selectedArtifactVersionUuid:C.versionUuid,setSelectedArtifactVersionUuid:O,onClose:n,projectUuid:i,selectDoc:F,sendMessage:r,richSandboxCapabilities:H,isOpen:l,isTemporary:c})}):"artifact"!==C?.type||S[C.id]?"attachment"===C?.type?t.jsx(Pze,{goBack:()=>w({type:"CLEAR_SELECTED"}),attachment:C.attachment,onClose:n,virtualize:!0,isOpen:l}):"image_annotation"===C?.type?t.jsx(bZe,{toolUseId:C.toolUseId,file:C.file,annotation:C.annotation,goBack:()=>w({type:"CLEAR_SELECTED"}),onClose:n}):"compass"===C?.type?t.jsx(Fx,{componentName:"CompassPanel",fallback:()=>t.jsx("div",{className:"flex items-center justify-end px-5 h-[3.25rem]",children:t.jsx(rN,{variant:"ghost",size:"sm",iconOnly:!0,icon:"X",onClick:n,"aria-label":"Close"})}),children:t.jsx(MVe,{data:C.data,isOpen:l,onClose:n})}):i&&"doc"===C?.type?t.jsx(Gze,{docUuid:C.id,projectUuid:i,onClose:n,goBack:()=>w({type:"CLEAR_SELECTED"}),virtualize:!0,isOpen:l}):"file"===C?.type?t.jsx(kZe,{isOpen:l,file:{path:C.path,name:Gl(C.path)},fileUuid:z??("uuid"===C.openWith?.via?C.openWith.uuid:C.fileUuid),openWith:B,entryPoint:C.entryPoint,showBackButton:C.path.startsWith("/mnt/user-data/outputs/"),goBack:()=>{w({type:"CLEAR_SELECTED"}),n()},onClose:n,conversationUuid:s,projectUuid:i,isTemporary:c,isShared:!1,isStreaming:a,streamingFile:k.get(C.path),artifactVersions:N??[],cacheBuster:g,onUpdate:U,sendMessage:r,canQueueSend:o},`${C.path}#${z??("uuid"===C.openWith?.via?C.openWith.uuid:C.fileUuid??"")}`):"mcp_server"===C?.type?t.jsx(wZe,{selectedItem:C,resourceActivity:d,onClose:n}):"web_search"===C?.type?t.jsx(MZe,{resourceActivity:d,onClose:n}):"timeline_steps"===C?.type?t.jsx(hZe,{onClose:n}):"browser_extension"===C?.type?t.jsx(_Ze,{resourceActivity:d,onClose:n,highlightId:C.highlightId}):"skill"===C?.type?t.jsx(gZe,{skillName:C.skillName,pluginName:C.pluginName,onClose:n},C.skillName):"skill_proposal"===C?.type?t.jsx(gZe,{skillName:"improvement"===C.proposal.kind&&C.proposal.target?C.proposal.target:C.proposal.name,proposal:C.proposal,onClose:n},C.proposal.name):"cowork_artifact"===C?.type?t.jsx(yZe,{artifactId:C.id,onClose:()=>{w({type:"CLEAR_SELECTED"}),n()}},C.id):null:t.jsx(Kle,{isStreaming:a,artifact:void 0,selectedArtifactMessageUuid:x,selectedArtifactVersionUuid:"artifact"===C?.type?C.versionUuid:void 0,setSelectedArtifactVersionUuid:O,onClose:n,projectUuid:i,selectDoc:F,sendMessage:r,richSandboxCapabilities:H,isOpen:l,isTemporary:c})})});function LZe(e){const t=QS.now(),s=QS.fromISO(e),n=s.diff(t,"minutes").toObject().minutes;return n&&Math.abs(n)<=1?"just now":s.toRelative()}const NZe=e.createContext(null);function IZe(){return e.useContext(NZe)}const TZe="dframe-header-actions-slot";function AZe({slotId:t,children:s}){const[a,i]=e.useState(null);return e.useLayoutEffect(()=>{const e=document.getElementById(t);e!==a&&i(e)}),a?n.createPortal(s,a):null}function EZe({children:e}){const s=IZe(),n=s?.headerSlot??TZe;return t.jsx(AZe,{slotId:n,children:e})}const RZe=fn(()=>a(()=>import("./c5e674140-BGKAWrXQ.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(e=>e.ShareModal),{});function DZe({controlsSidebarIsOpen:e,closeControlsSidebar:s,openControlsSidebar:n,conversationUuid:a,isTemporary:i,hasShareableHistory:r=!1,hideShare:o=!1}){const l=m(Ff),c=JS(),d=Me(),u=MM(),p=!!d,f=HZe({conversationUuid:a,skipShareCommand:o}),g=!!n&&!!s&&!e;return t.jsxs("div",{className:dt("flex items-center gap-1","transition-opacity duration-300",e?"md:opacity-0 pointer-events-none user-select-none":"md:opacity-100",!g&&"hidden"),"data-testid":"chat-actions",children:[!o&&!i&&r&&!p&&(l?t.jsx(rN,{variant:"ghost",iconOnly:!0,icon:"Share","aria-label":c.formatMessage({defaultMessage:"Share chat",id:"bXa+lJhlYV"}),onClick:f.handleShareClick,disabled:f.isCheckingShareability}):t.jsx(rN,{variant:"secondary",size:"sm",onClick:f.handleShareClick,disabled:f.isCheckingShareability,children:t.jsx(XS,{defaultMessage:"Share",id:"OKhRC6eWRw"})})),l&&t.jsx(rN,{variant:"brand",iconOnly:!0,icon:"Add","aria-label":c.formatMessage(fy[p?"cowork":"chat"]),href:p?u:"/new",className:"ml-1"}),f.showShareModal&&t.jsx(RZe,{...f})]})}function HZe(t){const{track:s}=ae(),{addError:n,addSuccess:a}=ut(),i=JS(),{data:r,refetch:o,isFetching:l}=wM(t.conversationUuid),[c,d]=e.useState(!1),u=e.useCallback(()=>{d(!0)},[d]),m=e.useCallback(async()=>{s({event_key:"chat.share.button.clicked",conversation_uuid:t.conversationUuid});const e=await o();e.error?n(i.formatMessage({defaultMessage:"Failed to check share status. You can try again.",id:"kYQG+MMTz7"}),{error:e.error,errorContext:{tags:{source:"share_check"}}}):e.data&&(e.data.shareable||e.data.snapshot?u():a(e.data.disabled_reason??i.formatMessage({defaultMessage:"This chat cannot be shared.",id:"WaiZiv2Q4Y"})))},[s,t.conversationUuid,o,u,n,a,i]);Uv("share_chat",m,{skip:t.skipShareCommand??!1});const p=!!r?.snapshot;return{conversationUuid:t.conversationUuid,showShareModal:c,openShareModal:m,closeShareModal:()=>d(!1),handleShareClick:m,isCheckingShareability:l,isShared:p,disabled:!!r&&!r.shareable,refetch:o,...r,disabledReason:r?.disabled_reason??void 0}}function PZe({project:e,className:s}){const{account:n}=v();let a;return a=e.is_starter_project?t.jsx(XS,{defaultMessage:"Created by Anthropic",id:"qWDgsCW3nw"}):e.type===Re.Haystack?t.jsx(XS,{defaultMessage:"Created by your admin",id:"QV1CaRw5pU"}):e.creator?.full_name?e.creator.uuid===n?.uuid?t.jsx(XS,{defaultMessage:"Created by you",id:"WEhuQZAqE6"}):t.jsx(XS,{defaultMessage:"Created by {author}",id:"7POMfMfi+y",values:{author:e.creator.full_name}}):t.jsx(XS,{defaultMessage:"Created by unknown",id:"QEI1plMxfE"}),t.jsx("span",{className:s,children:a})}function UZe({projectUuid:e}){const{data:s}=Ee(e);return s?t.jsx(t.Fragment,{children:t.jsxs("div",{className:"mt-4",children:[t.jsx("h3",{className:"text-text-300 mb-2 mt-4 text-sm font-medium",children:t.jsx(XS,{defaultMessage:"Project content",id:"/IJPT7JRFn"})}),t.jsxs("div",{className:"border-border-400 rounded-lg border px-3 py-4",children:[t.jsxs(er,{href:`/project/${e}`,className:"hover:text-text-000 flex items-center gap-1.5 hover:underline",children:[t.jsx(vD,{size:16,className:"text-text-300 shrink-0"}),t.jsx("div",{className:"font-claude-response text-text-200 leading-tight",children:s.name})]}),t.jsx("div",{children:t.jsx(PZe,{project:s,className:"text-text-400 text-xs"})}),t.jsx("div",{className:"mt-2 flex flex-col",children:t.jsx(e$,{isEditable:!1,project:s,maxItems:3,onViewAll:()=>{window.location.href=`/project/${e}`}})})]})]})}):null}function OZe(t,s,n){const[a,i]=e.useState([]),[r,o]=e.useState(!1),[l,c]=e.useState(null),{activeOrganization:d}=v(),u=Xi().isAvailable,m=e.useRef(n);e.useEffect(()=>{m.current=n},[n]);const p=e.useCallback(async()=>{const e=s?.startsWith("local_");if(u&&s&&!e&&d?.uuid&&m.current){o(!0),c(null);try{const e=await async function(e,t,s){try{const n=new URL(`/api/organizations/${e}/conversations/${t}/wiggle/list-files`,window.location.origin);void 0!==s&&n.searchParams.append("prefix",s);const a=await fetch(n.toString(),{method:"GET",headers:{"Content-Type":"application/json"}});if(!a.ok)return[];const i=await a.json();return i.files_metadata?i.files_metadata:i.files?i.files.map(e=>({path:e,size:0,content_type:"application/octet-stream"})):[]}catch(l){return[]}}(d.uuid,s,t),n=e.map(e=>{const t=e.path.split("/").pop()||e.path;return{path:e.path,name:t,content_type:e.content_type||"application/octet-stream"}});i(n)}catch(n){c("Failed to load files")}finally{o(!1)}}},[u,s,d?.uuid,t]);return e.useEffect(()=>{u&&n&&p()},[u,n,p]),{files:a,isLoading:r,error:l,refetch:p}}e.memo(({data:s,variant:n="default",onClose:a})=>{const i=JS(),r="nudge"===n,[o,l]=e.useState(!r),c=e.useMemo(()=>s?JSON.stringify(s,null,2):"",[s]),{didCopy:d,copyToClipboard:u}=xN(),m=e.useCallback(()=>{u(c)},[u,c]),p=e.useCallback(()=>{const e=(new Date).toISOString().replace(/[:.]/g,"-");GH(`session-debug-${e}.json`,c,"application/json")},[c]),f=e.useCallback(()=>{p(),a?.()},[p,a]),g=e.useCallback(()=>{l(e=>!e)},[]),h=i.formatMessage({defaultMessage:"Copy debug information",id:"XVVZO6tEau"}),C=i.formatMessage({defaultMessage:"Download debug information",id:"mmx3mC6aea"});return r?t.jsxs("div",{className:"flex flex-col gap-4 pt-2",children:[t.jsx("p",{className:"text-text-200 text-sm",children:t.jsx(hs,{id:"mts93u"})}),t.jsxs("div",{className:"flex items-center gap-2 rounded-md bg-warning-900 border border-warning-200 p-3",children:[t.jsx($L,{name:"Warning",size:"sm",className:"shrink-0 text-warning-100"}),t.jsx("p",{className:"text-warning-100 text-sm",children:t.jsx(hs,{id:"14udlvo"})})]}),t.jsxs("div",{className:"flex justify-end gap-2",children:[t.jsx(rN,{variant:"primary",icon:"Download",onClick:f,children:t.jsx(hs,{id:"1m7psll"})}),t.jsx(rN,{variant:"secondary",onClick:a,children:t.jsx(hs,{id:"64xf8n"})})]}),t.jsxs("div",{className:"border-t border-border-300 pt-3",children:[t.jsxs("button",{type:"button",onClick:g,"aria-expanded":o,className:"flex items-center gap-1 text-sm text-text-300 hover:text-text-200 transition-colors",children:[t.jsx($L,{name:o?"CaretDown":"CaretRight",size:"sm"}),t.jsx(hs,{id:"1wz7ohr"})]}),o&&t.jsxs("div",{className:"mt-2 relative",children:[t.jsx("div",{className:"absolute top-2 right-2 flex items-center space-x-2",children:t.jsx(rN,{variant:"ghost",size:"sm",iconOnly:!0,icon:d?"Check":"Copy","aria-label":h,onClick:m})}),t.jsx("textarea",{readOnly:!0,className:"w-full h-48 overflow-auto break-words whitespace-pre-wrap text-xs font-mono p-2 bg-bg-200 rounded-md border border-border-300",children:c})]})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"-mt-2 mb-2 flex items-center justify-end gap-2",children:[t.jsx(rN,{variant:"ghost",size:"sm",iconOnly:!0,icon:d?"Check":"Copy","aria-label":h,onClick:m}),t.jsx(rN,{variant:"ghost",size:"sm",iconOnly:!0,icon:"Download","aria-label":C,onClick:p})]}),t.jsx("textarea",{readOnly:!0,className:"h-96 overflow-auto break-words whitespace-pre-wrap text-xs font-mono p-2 my-3",children:c})]})}).displayName="SessionDebugModalContent";function FZe({conversationUuid:t,refetch:s,isWorking:n,messagesLength:a,enabled:i=!0,expansionTrigger:r}){const o=yM(t),l=LH(s,{leading:!1,delay:2500}),c=e.useRef(!1);e.useEffect(()=>{i&&(c.current?l():c.current=!0)},[o,r,i]);const d=e.useRef(!1);e.useEffect(()=>{if(i&&a){if(d.current&&!n){const e=Ce.getState(),n=e.pathUuidsByConversation[t]||[],a=n[n.length-1],i=a?e.messageByUuid[a]:void 0;if(i&&"assistant"===i.sender&&Array.isArray(i.content)){if(i.content.some(e=>{if("tool_use"===e?.type){return(e.input?JSON.stringify(e.input):"").includes("outputs")}return!1})){const e=setTimeout(()=>{s()},2e3);return()=>clearTimeout(e)}}}d.current=n}},[n,t,s,a,i])}function VZe({conversationUuid:t,sessionId:s,messagesLength:n=0,isStreaming:a}){const i=_M(),r=yM(t),{isDrawerExpanded:o}=DN(),{chatResourceState:{selectedItem:l},dispatchChatResource:c}=RN(),d=nle({conversationUuid:t,source:"w"}),u=e.useMemo(()=>d.data?.artifact_versions??[],[d.data]),m=i&&o&&!l,p=OZe("",t,m),f=YK(s),g=e.useMemo(()=>{const e=[],t=[],n=ga(s);return p.files?.forEach(s=>{"/mnt/user-data/README.md"!==s.path&&(s.path.startsWith("/mnt/user-data/uploads/")||n&&!Lp(s.path,void 0,f)||(s.path.startsWith("/mnt/user-data/outputs/")?e.push(s):t.push(s)))}),{output:e,scratchpad:t}},[p.files,s,f]),h=g.output.length+g.scratchpad.length,C=e.useCallback((e,t)=>{c({type:"SELECT_FILE",path:e.replace("computer://",""),toolType:"create_file",messageId:t,entryPoint:"wiggle_sidebar_link"})},[c]),x=e.useCallback(async()=>{i&&await Promise.all([p.refetch(),d.refetch()])},[i,p,d]),v=e.useCallback(async()=>{i&&await p.refetch()},[i,p]);FZe({conversationUuid:t,refetch:v,isWorking:a,messagesLength:n,enabled:m,expansionTrigger:o});const y=LH(()=>{i&&!l&&d.refetch()},{leading:!1,delay:2500});!function(t,s){const n=e.useRef(!1);e.useEffect(()=>()=>{n.current=!1},[]),e.useEffect(()=>{if(n.current)return t();n.current=!0},s)}(()=>{y()},[o,r]);return{wiggleGate:i,showWiggleControls:m,hasFileActivity:void 0!==r,refetchAll:x,refetchWiggleRoot:v,selectWiggleFile:C,wiggleFiles:g,wiggleFilesCount:h,wiggleSharedArtifacts:u}}const zZe=fn(()=>a(()=>import("./c5e674140-BGKAWrXQ.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(e=>e.ShareModal),{}),ZZe=fn(()=>a(()=>import("./cf774f0c4-DGww1Hri.js").then(e=>e.W),__vite__mapDeps([0,1]),import.meta.url).then(e=>e.WiggleSharingModals),{}),BZe=e.memo(function({conversationUuid:s,projectUuid:n,sessionId:a,isStreaming:i,debugInfo:r,isTemporary:o=!1,messagesLength:l=0,hideShare:c=!1}){const d=Xi().isAvailable,{refetchAll:u,selectWiggleFile:p,wiggleFiles:f,wiggleSharedArtifacts:g,hasFileActivity:h}=VZe({conversationUuid:s,sessionId:a,messagesLength:l,isStreaming:i}),{isDrawerExpanded:C}=DN(),{chatResourceState:{selectedItem:x,activeMessageUuid:y,files:b,syncSources:k},dispatchChatResource:w}=RN(),{activeOrganization:M}=v(),[_,j]=e.useState(null),S=JS(),L=HZe({conversationUuid:s,skipShareCommand:c}),[N,I]=e.useState(!1),T=0===f.output.length&&0===g.length&&0===f.scratchpad.length&&0===b.length&&0===k.length&&!n,A=m(),E=Me(),R=jM(),D=Vb(),H=aoe();return d?t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:dt("flex flex-col relative","max-md:absolute max-md:inset-x-0 max-md:top-0",x&&"max-md:hidden",!x&&C&&"max-md:z-header",x&&C&&"md:z-0",!C&&"max-md:pointer-events-none max-md:absolute max-md:inset-0"),inert:!(!x||!C)||void 0,children:[(!E||R||D)&&t.jsx(qZe,{sessionId:a,conversationUuid:s,wiggleFiles:f,hasFileActivity:h,isTemporary:o,isStreaming:i,messagesLength:l,hideShare:c,shareState:L,debugInfo:r,isAgentRoute:!!E}),!T&&!E&&t.jsx("div",{className:dt("overflow-x-hidden overflow-y-auto md:h-[calc(100%-56px)]","max-md:h-full max-md:border-t max-md:border-border-300 max-md:bg-bg-100","md:transition-[width] md:duration-300 md:ease-[cubic-bezier(0.4,0,0.2,1)]",C?"w-full md:mt-12 md:m-2 md:w-[384px] p-5 border-0.5 border-border-300 md:rounded-2xl max-md:border-0":"w-0 p-0 m-0 border-0 overflow-hidden",x&&"md:absolute",A&&C&&"md:mt-[62px]",o&&C&&"md:mt-14"),inert:!C||void 0,"aria-hidden":!C,children:t.jsx("div",{className:dt(C?"md:w-[342px]":"w-0"),children:t.jsxs("div",{className:dt("flex flex-col gap-5 md:transition-opacity md:duration-300",C?"md:animate-[fade_0.3s_ease-in-out_0.1s_forwards]":"opacity-0 pointer-events-none"),children:[f.output.length?t.jsxs("div",{className:"flex flex-col gap-3",children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsx("h3",{className:"font-medium text-sm",children:t.jsx(XS,{defaultMessage:"Artifacts",id:"eW5eoWkxy3"})}),f.output.length>1&&t.jsx(rN,{variant:"ghost",size:"sm",icon:"Download",onClick:()=>{M?.uuid&&H({filepaths:f.output.map(e=>e.path),orgUuid:M.uuid,conversationUuid:s,isShared:!1,source:"chat_controls_download_all_button"})},children:t.jsx(XS,{defaultMessage:"Download all",id:"V1UrPNM96z"})})]}),t.jsx("div",{className:"flex flex-col gap-2",children:f.output.map(e=>t.jsx(iN,{multiline:!0,className:"[overflow-wrap:anywhere]",align:"end",content:e.name,side:"bottom",children:t.jsx("div",{children:t.jsx(Ede,{file:e,conversationUuid:s,onOpen:()=>p(e.path,y||""),isInSidebar:!0,isShared:!1},e.path)})},e.path))})]}):null,g.length?t.jsx(WZe,{artifactVersions:g,onSelectArtifactVersion:e=>{w({type:"SELECT_ARTIFACT",id:"",versionUuid:e})},onComplete:e=>j(e)}):null,f.scratchpad.length?t.jsxs("div",{className:"flex flex-col gap-2",children:[t.jsxs("button",{className:"flex font-medium items-center justify-between p-1 hover:bg-bg-300 rounded-md",onClick:()=>I(e=>!e),"aria-expanded":N,children:[t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(XS,{defaultMessage:"Scratchpad",id:"Qb4YubxAW2"}),t.jsx(iN,{content:S.formatMessage({defaultMessage:"Files used to create artifacts",id:"T2w69cOLhV"}),side:"right",children:t.jsx(yD,{})})]}),t.jsx(oR,{className:dt("transition",N?"rotate-90":"")})]}),t.jsx($Ze,{isExpanded:N,children:t.jsx("div",{className:"flex flex-col gap-2",children:f.scratchpad.map(e=>t.jsx(rN,{variant:"ghost",icon:t.jsx(hg,{path:e.path}),className:"!justify-start",onClick:()=>{p(e.path,y||"")},children:e.name},e.path))})})]}):null,n&&t.jsx(UZe,{projectUuid:n}),t.jsx(GZe,{})]})})})]}),_&&t.jsx(ZZe,{artifactVersion:_,sharedVersions:g.filter(e=>e.artifact_uuid===_.artifact_uuid&&"shared"===e.visibility).sort((e,t)=>new Date(t.created_at).getTime()-new Date(e.created_at).getTime()),onClose:()=>j(null),onUpdate:async()=>{await u(),j(null)},projectUuid:n}),L.showShareModal&&t.jsx(zZe,{...L})]}):null});function qZe({sessionId:s,conversationUuid:n,wiggleFiles:a,hasFileActivity:i,isTemporary:r,isStreaming:o,messagesLength:l,hideShare:c=!1,shareState:d,debugInfo:u,isAgentRoute:p}){const f=JS(),g=m(),h=Vb(),{isDrawerExpanded:C,setIsDrawerExpanded:x}=DN(),{chatResourceState:{selectedItem:v,files:b,syncSources:k},dispatchChatResource:w}=RN(),M=h&&"timeline_steps"===v?.type?null:v,_=b.length+k.length,j=a.output.length+a.scratchpad.length+_,S=!r&&!s&&!c&&(o?l>2:l>0);y("yukon_gold_debug_menu_enabled"),y("claudified_bug_report_enabled");const[L,N]=e.useState(!1);jM();const I=f.formatMessage({defaultMessage:"Files",id:"m4vqJl0/FT"}),T=f.formatMessage({defaultMessage:"Share chat",id:"bXa+lJhlYV"}),A=h?dt("flex items-center gap-1 empty:hidden","transition-opacity duration-150 ease-in-out",M&&C?"opacity-0 pointer-events-none":"opacity-100 delay-300"):dt("md:absolute md:right-0 md:top-0 z-20","max-md:w-fit max-md:self-end max-md:pointer-events-auto","flex justify-end shrink-0 min-w-0 pr-3 items-center gap-1",g?"!h-[52px] draggable":"!h-12","transition-opacity duration-150 ease-in-out",M&&C?"md:opacity-0 md:pointer-events-none":"md:opacity-100 delay-300",g&&C&&!M&&["md:shadow-[0px_1px_0px_0px_theme(colors.border-300)]","w-full"],r&&"pt-3"),E=t.jsxs("div",{className:A,"data-testid":"wiggle-controls-actions",children:["",(j>0||i)&&!p&&t.jsx(rN,{variant:"ghost",iconOnly:!0,icon:"File","aria-label":I,tooltipSide:"bottom",pressed:C,onClick:()=>{w({type:"CLEAR_SELECTED"}),x(!C)},"data-testid":"wiggle-controls-actions-toggle"}),null,null,S&&(g?t.jsx(rN,{variant:"ghost",iconOnly:!0,icon:"Share","aria-label":T,tooltipSide:"bottom",onClick:d.handleShareClick,disabled:d.isCheckingShareability,"data-testid":"wiggle-controls-actions-share"}):t.jsx(rN,{variant:"secondary",size:"sm",onClick:d.handleShareClick,disabled:d.isCheckingShareability,"data-testid":"wiggle-controls-actions-share",children:t.jsx(XS,{defaultMessage:"Share",id:"OKhRC6eWRw"})})),null]});return h?t.jsx(EZe,{children:E}):E}function WZe({artifactVersions:e,onSelectArtifactVersion:s,onComplete:n}){const{publishedArtifactsBaseUrl:a}=$(),{copyToClipboard:i}=xN(),r=JS();return t.jsxs("div",{className:"flex flex-col gap-2",children:[t.jsx("div",{className:"flex items-center justify-between",children:t.jsx("h3",{className:"text-text-500 text-xs",children:t.jsx(XS,{defaultMessage:"Shared",id:"kWI6zXRaHY"})})}),t.jsx("div",{className:"flex flex-col gap-2",children:e.map(e=>{const o=e.published_artifact_uuid?"publish":"share",l=e.published_artifact_uuid?e.published_artifact_deleted_at?t.jsx(XS,{defaultMessage:"Unpublished",id:"wbU4tD+0G+"}):LZe(e.created_at):"shared"===e.visibility?LZe(e.created_at):"private"===e.visibility?t.jsx(XS,{defaultMessage:"Unshared",id:"0r/9ANkloS"}):null;return t.jsxs("div",{className:"flex-1 flex items-center",children:[t.jsx(rN,{variant:"ghost",icon:"LinkSimple",className:"min-w-0 flex-1 !justify-start !px-2 [&>span]:min-w-0",onClick:()=>{s(e.uuid)},children:t.jsxs("span",{className:"flex items-center min-w-0 overflow-hidden",children:[t.jsx("span",{className:"truncate",children:e.title}),t.jsx(bD,{size:16,className:"shrink-0"}),t.jsx("span",{className:"text-xs text-text-500",children:l})]})}),t.jsx(KL,{variant:"ghost",size:"sm",iconOnly:!0,icon:"DotsHorizontal","aria-label":r.formatMessage({defaultMessage:"More options",id:"IzCVhGdYVc"}),align:"end",items:t.jsxs(t.Fragment,{children:[t.jsx(KL.Item,{onClick:()=>{const t=tce(o,{artifact_uuid:e.artifact_uuid,artifact_version_uuid:e.uuid,message_uuid:e.message_uuid,published_artifact_uuid:e.published_artifact_uuid},a);t&&i(t)},children:t.jsx(XS,{defaultMessage:"Copy link",id:"lbr3Lq2Lnm"})}),e.published_artifact_deleted_at?null:t.jsx(KL.Item,{onClick:()=>n(e),children:"publish"===o?t.jsx(XS,{defaultMessage:"Unpublish",id:"VjZ6FKc+ZZ"}):"shared"===e.visibility?t.jsx(XS,{defaultMessage:"Unshare",id:"bEq+NWNIXF"}):t.jsx(XS,{defaultMessage:"Share",id:"OKhRC6eWRw"})})]})})]},e.uuid)})})]})}function $Ze({children:e,isExpanded:s}){return t.jsx(sA.div,{className:"overflow-hidden shrink-0",inert:!s||void 0,"aria-hidden":!s,initial:{opacity:0,height:s?"auto":0},animate:s?"expanded":"collapsed",transition:{ease:"easeInOut",duration:.4},variants:{expanded:{opacity:1,height:"auto"},collapsed:{opacity:0,height:0}},children:e})}function GZe(){const{chatResourceState:{files:e,attachments:s,syncSources:n},dispatchChatResource:a}=RN();return e.length+n.length>0?t.jsxs("div",{className:"flex flex-col gap-3",children:[t.jsx("div",{className:"flex items-center justify-between",children:t.jsx("h3",{className:"font-medium text-sm",children:t.jsx(XS,{defaultMessage:"Content",id:"Jq3FDzj0/T"})})}),t.jsx("div",{className:"flex flex-col gap-2",children:t.jsxs("div",{className:"grid grid-cols-[repeat(auto-fill,minmax(120px,1fr))] gap-3",children:[e.map((e,s)=>t.jsx(JB,{size:"stretch",file:e},`${e.file_kind}-${s}`)),s.map((e,s)=>t.jsx(JB,{size:"stretch",file:e,handleClick:()=>a({type:"SELECT_ATTACHMENT",attachment:e})},`attachment-${s}`)),n.map(e=>t.jsx(wW,{size:"stretch",syncSource:e,isEditable:!1,location:"chat"},e.uuid))]})})]}):null}function KZe({conversationUuid:s}){const n=r(),a=ut(),[i,o]=e.useState(!1),l=SM(s);return t.jsxs("div",{className:"\n        flex\n        flex-col\n        gap-1.5\n        border-0.5\n        border-border-300\n        bg-bg-100\n        rounded-t-xl\n        text-text-300\n        font-ui\n        z-10\n        p-6\n        ",children:[t.jsxs("div",{className:"flex flex-col gap-4 sm:flex-row items-center sm:justify-between font-medium",children:[t.jsx("div",{className:"text-lg",children:t.jsx(XS,{defaultMessage:"Chat ended by Claude",id:"dHdfbAOK+j"})}),t.jsxs("div",{className:"flex items-center gap-4",children:[t.jsx(kt,{onClick:()=>n.push("/new"),children:t.jsx(XS,{defaultMessage:"Start new chat",id:"KcA+xo4hhh"})}),t.jsx(kt,{variant:"secondary",onClick:()=>o(!0),children:t.jsx(XS,{defaultMessage:"Give feedback",id:"bCmvTYWKoj"})})]})]}),t.jsx(M$,{conversationUuid:s,requestedFeedbackType:Mn.CHAT_ENDED,setRequestedFeedbackType:()=>{},message:l,isOpen:i,onClose:()=>{o(!1)},onSuccess:()=>a.addSuccess("Feedback submitted"),showOptions:!1})]})}const YZe="dframe-card rounded-lg bg-[var(--df-sidebar-bg,hsl(var(--bg-100)))] [box-shadow:var(--df-shadow-card,none)]",QZe="md:mr-2 md:rounded-lg md:bg-[var(--df-sidebar-bg,hsl(var(--bg-100)))] md:[box-shadow:var(--df-shadow-card,none)]";function JZe({orientation:s,onResize:n,onResizeStart:a,onResizeEnd:i,onDoubleClick:r,ariaLabel:o,ariaValueNow:l,className:c}){const d="vertical"===s,[u,m]=e.useState(!1),p=e.useRef(n),f=e.useRef(a),g=e.useRef(i);p.current=n,f.current=a,g.current=i;const h=e.useRef(0),C=e.useRef(!1),x=e.useRef(!0),v=e.useCallback(()=>{document.body.style.cursor="",document.body.style.userSelect="",x.current||(x.current=!0,m(!1),g.current?.(C.current))},[]);e.useEffect(()=>{if(!u)return;const e=e=>{const t=(d?e.clientX:e.clientY)-h.current;Math.abs(t)>3&&(C.current=!0),p.current(t)};return document.addEventListener("mousemove",e),document.addEventListener("mouseup",v),()=>{document.removeEventListener("mousemove",e),document.removeEventListener("mouseup",v)}},[u,d,v]),e.useEffect(()=>v,[v]);return t.jsx("div",{role:"separator","aria-orientation":s,"aria-label":o,"aria-valuenow":l,tabIndex:0,className:dt("group/resize relative outline-none",d?"w-3 h-full cursor-col-resize":"h-3 w-full cursor-row-resize",c),onMouseDown:e=>{e.preventDefault(),h.current=d?e.clientX:e.clientY,C.current=!1,x.current=!1,m(!0),document.body.style.cursor=d?"col-resize":"row-resize",document.body.style.userSelect="none",f.current?.()},onDoubleClick:r,onKeyDown:e=>{const t=e.shiftKey?32:8;let s=0;d?"ArrowLeft"===e.key?s=-t:"ArrowRight"===e.key&&(s=t):"ArrowUp"===e.key?s=-t:"ArrowDown"===e.key&&(s=t),0!==s&&(e.preventDefault(),f.current?.(),p.current(s),g.current?.(!0))},children:t.jsx("div",{className:dt("absolute rounded-full transition-[opacity,background-color]",u?"opacity-100 bg-text-200 duration-100":"opacity-0 bg-text-400 duration-200 delay-200 group-hover/resize:opacity-100","group-focus-visible/resize:opacity-100 group-focus-visible/resize:bg-accent-brand group-focus-visible/resize:delay-0",d?"left-1/2 -translate-x-1/2 w-[3px] h-full max-h-12 top-1/2 -translate-y-1/2":"top-1/2 -translate-y-1/2 h-[3px] w-full max-w-12 left-1/2 -translate-x-1/2")})})}function XZe({onMouseDown:s,onResizeStart:n,onResize:a,onResizeEnd:i,isResizing:r,className:o}){const l=e.useRef(n),c=e.useRef(a),d=e.useRef(i);e.useEffect(()=>{l.current=n,c.current=a,d.current=i},[n,a,i]);const u=e.useRef(null);e.useEffect(()=>()=>u.current?.(),[]);const m=e.useCallback(e=>{e.preventDefault(),l.current?.();const t=e.clientX;document.body.style.cursor="col-resize",document.body.style.userSelect="none";const s=e=>c.current?.(e.clientX-t),n=()=>{document.removeEventListener("mousemove",s),document.removeEventListener("mouseup",n),document.body.style.cursor="",document.body.style.userSelect="",u.current=null,d.current?.()};document.addEventListener("mousemove",s),document.addEventListener("mouseup",n),u.current=n},[]);return t.jsxs("div",{className:dt("group w-2 relative h-full cursor-col-resize -mr-1 z-30 grid place-items-center",o),onMouseDown:s??(a?m:void 0),children:[t.jsx("div",{className:dt("absolute top-0 bottom-0 right-1 w-[0.5px] bg-border-300","transition-all group-hover:delay-75 group-hover:bg-accent-100 group-hover:w-px group-hover:translate-x-[0.5px]",r&&"!bg-accent-000")}),t.jsx("div",{className:dt("h-6 w-2 relative","rounded-full border-0.5 bg-bg-100 shadow border-border-300","transition duration-200 group-hover:delay-75 group-hover:border-accent-900 group-hover:bg-accent-900","cursor-col-resize",r&&"!bg-accent-000 !border-accent-000")})]})}function eBe({children:e,trailing:s,hideGradient:n,...a}){return t.jsxs("div",{...a,className:"dframe-header absolute inset-x-0 top-0 z-10 flex h-12 items-center gap-3 pl-4 pr-3",children:[!n&&t.jsx("div",{className:"pointer-events-none absolute inset-0 -bottom-6 z-[-1] bg-gradient-to-b from-bg-100 from-[66.67%] to-bg-100/0"}),e,t.jsx("div",{className:"draggable h-full min-w-0 flex-1"}),t.jsx("div",{id:TZe,className:"flex items-center gap-2 shrink-0"}),s]})}function tBe(){const t=Ku(),s=_C(),n=LC(),{haystackProject:a}=SC(),i=jC(),r=LM(),o=Vb(),l=No();return e.useCallback((e,c)=>"code"===e.kind?t(e.id,c):s&&i&&"project"===e.kind&&n&&(e.id===a?.uuid||e.id===DC)?n:"project"===e.kind&&o&&"cowork"===r&&l?`${$k}/${e.id}`:NM(e),[t,s,i,n,a?.uuid,o,r,l])}const sBe=Boolean(Lr?.getAllSpaces);function nBe(e){return{kind:"chatProject",id:e.uuid,name:e.name,description:e.description||null,updatedAtMs:Date.parse(e.updated_at),href:`/project/${e.uuid}`,source:e}}function aBe(e){return{kind:"space",id:e.id,name:e.name,description:e.description||null,updatedAtMs:e.updatedAt??e.createdAt??0,href:`/space/${e.id}`,source:e}}function iBe({projectFilter:t,offset:s=0,searchQuery:n,isArchived:a,orderBy:i,enabled:r=!0}={}){const{data:o,isPending:l,error:c,refetch:d}=qi({limit:IC,offset:s,projectFilter:t,searchQuery:n||void 0,isArchived:a,orderBy:i,enabled:r}),u=TC(),m=IM();return{projects:e.useMemo(()=>{const e=[];for(const t of o?.data??[])!a&&t.archived_at||e.push(nBe(t));if(!a)for(const t of u)e.push(aBe(t));return e},[o,u,a]),isInitialLoading:l||sBe&&!m,hasMore:o?.pagination.has_more??!1,isPending:l,chatProjectsError:c,refetch:d}}function rBe({isOpen:s,onClose:n,initialName:a,conversationUuid:i,projectUuid:r}){const o=JS(),{mutate:l,isPending:c}=Vk(i,r),[d,u]=e.useState(a),[m,p]=e.useState(s),[f,g]=e.useState(!1);return s!==m&&(p(s),s&&(u(a),g(!1))),t.jsx(lN.Root,{open:s,onOpenChange:e=>!e&&n(),children:t.jsxs(lN.Popup,{size:"sm",children:[t.jsx(lN.Header,{showClose:!1,children:o.formatMessage({defaultMessage:"Rename chat",id:"Oi9LAY6C5H"})}),t.jsxs("form",{onSubmit:e=>{e.preventDefault(),l({name:d}),n()},children:[t.jsx(pN,{"data-testid":"name-chat","aria-label":o.formatMessage({defaultMessage:"Chat name",id:"oaHo7PDUPU"}),value:d,onChange:e=>u(e.target.value),onFocus:e=>{f||(g(!0),e.currentTarget.select())}}),t.jsxs(lN.Footer,{children:[t.jsx(lN.Close,{render:t.jsx(rN,{disabled:c,children:t.jsx(XS,{defaultMessage:"Cancel",id:"47FYwba+bI"})})}),t.jsx(rN,{"data-testid":"name-chat-submit",variant:"primary",type:"submit",disabled:c,children:t.jsx(XS,{defaultMessage:"Save",id:"jvo0vs3nF0"})})]})]})]})})}function oBe({setQuery:t}){return e.useEffect(()=>()=>t(""),[t]),null}function lBe({children:s,searchLabel:n,align:a,resetQueryOnClose:i,className:r}){const[o,l]=e.useState("");return t.jsxs(KL.Popup,{align:a,className:r,onMouseDown:e=>{const t=e.target;t instanceof HTMLInputElement||t===e.currentTarget||t.classList.contains("overflow-y-auto")&&e.nativeEvent.offsetX>=t.clientWidth||e.preventDefault()},header:t.jsxs(t.Fragment,{children:[t.jsx(pN,{value:o,onChange:e=>l(e.target.value),onKeyDown:e=>{if(e.nativeEvent.isComposing||229===e.keyCode)e.stopPropagation();else{if("ArrowDown"===e.key||"ArrowUp"===e.key){const t=e.currentTarget.closest('[role="menu"]')?.querySelectorAll('[role^="menuitem"]:not([aria-disabled="true"])');if(t?.length){e.preventDefault(),e.stopPropagation();("ArrowDown"===e.key?t[0]:t[t.length-1]).focus()}return}"Escape"!==e.key&&"Tab"!==e.key&&e.stopPropagation()}},slotStart:t.jsx($L,{name:"Search",size:"sm",className:"text-muted"}),placeholder:n,"aria-label":n,autoComplete:"off","data-1p-ignore":!0,autoFocus:!0,className:"!border-transparent !bg-transparent !shadow-none focus-within:!shadow-none"}),t.jsx(KL.Separator,{})]}),children:[i&&t.jsx(oBe,{setQuery:l}),s(o.trim().toLowerCase())]})}function cBe(t){return e.useCallback(e=>{if(e.ctrlKey||e.metaKey||e.altKey||1!==e.key.length)return;if(!e.currentTarget.contains(e.target)||e.target.closest("input, textarea, [contenteditable]"))return;if(e.currentTarget.querySelector("[data-popup-open]"))return;const s=t.get(e.key.toLowerCase());s&&(e.preventDefault(),e.stopPropagation(),s())},[t])}const dBe={kind:"cds",Item:KL.Item,Separator:KL.Separator};function uBe({conversation:s,initialName:n,onSelectForBulk:a,extraItems:i,onStarred:r,onRenameStart:o,source:l="hover_menu",onOpenChange:c}){const{track:d}=ae(),[u,m]=e.useState(!1),p=e.useRef(null);e.useEffect(()=>()=>{p.current&&clearTimeout(p.current)},[]);const[f,g]=e.useState(!1),h=JS(),C=as(),x=y("move_conversation_to_projects"),v=Vb(),b=Boolean(s.session_id),k=C&&x&&!b,{mutate:w}=OC(s.uuid),{removeFromProject:M,isRemoving:_}=Cb(),j=()=>{const e=!s.is_starred;w({is_starred:e}),r?.(e),d({event_key:e?"claudeai.conversation.starred":"claudeai.conversation.unstarred",conversation_uuid:s.uuid,source:l})},S=()=>{p.current&&clearTimeout(p.current),p.current=setTimeout(()=>{p.current=null,o?o():m(!0)},100)},L=()=>setTimeout(()=>g(!0),100),N=()=>c?.(!1),I=cBe(new Map([["p",()=>{N(),j()}],["r",()=>{N(),S()}],["d",()=>{N(),L()}]]));return{items:t.jsxs(t.Fragment,{children:[a&&t.jsxs(t.Fragment,{children:[t.jsx(KL.Item,{"data-testid":"select-for-bulk-trigger",onClick:a,icon:"Check",children:t.jsx(XS,{defaultMessage:"Select",id:"kQAf2d9u+x"})}),t.jsx(KL.Separator,{})]}),v?t.jsx(KL.Item,{"data-testid":"star-chat-trigger",onClick:j,icon:s.is_starred?"PinFilled":"Pin",shortcut:"p",children:s.is_starred?t.jsx(XS,{defaultMessage:"Unpin",id:"opNVQCTN4x"}):t.jsx(XS,{defaultMessage:"Pin",id:"puLNUJezx6"})}):t.jsx(KL.Item,{"data-testid":"star-chat-trigger",onClick:j,icon:s.is_starred?"StarFilled":"Star",shortcut:"p",children:s.is_starred?t.jsx(XS,{defaultMessage:"Unstar",id:"Y5zRLWgCMP"}):t.jsx(XS,{defaultMessage:"Star",id:"VwapsmdMes"})}),t.jsx(KL.Item,{"data-testid":"rename-chat-trigger",onClick:S,icon:"Edit",shortcut:"r",children:t.jsx(XS,{defaultMessage:"Rename",id:"iXNbPfQDIZ"})}),k&&t.jsxs(KL.Submenu,{children:[t.jsx(KL.SubmenuTrigger,{"data-testid":"move-to-project-trigger",icon:"Projects",children:s.project_uuid?t.jsx(XS,{defaultMessage:"Change project",id:"5RCPLcgnza"}):t.jsx(XS,{defaultMessage:"Add to project",id:"+mqxxzVczn"})}),t.jsx(lBe,{className:"min-w-60",searchLabel:h.formatMessage({defaultMessage:"Search projects",id:"doPT7U8q21"}),children:e=>t.jsx(mBe,{query:e,conversationUuid:s.uuid,currentProjectUuid:s.project_uuid})})]}),k&&s.project_uuid&&t.jsx(KL.Item,{"data-testid":"remove-from-project-trigger",onClick:()=>{(async()=>{s.project_uuid&&!_&&await M([s.uuid])})()},icon:"ProjectsX",children:t.jsx(XS,{defaultMessage:"Remove from project",id:"FgGKwPHI5T"})}),t.jsx(KL.Separator,{}),t.jsx(KL.Item,{variant:"danger","data-testid":"delete-chat-trigger",onClick:L,icon:"Trash",shortcut:"d",children:t.jsx(XS,{defaultMessage:"Delete",id:"K3r6DQW7h+"})}),i?.(dBe)]}),modals:t.jsxs(IN,{density:"comfortable",className:"contents",children:[f&&t.jsx(l_e,{isOpen:f,onClose:()=>g(!1),conversation:s}),u&&t.jsx(rBe,{conversationUuid:s.uuid,isOpen:!0,initialName:n,onClose:()=>m(!1),projectUuid:s.project_uuid})]}),onPopupKeyDown:I}}function mBe({query:e,conversationUuid:s,currentProjectUuid:n}){const a=JS(),{moveToProject:i}=TH(),[r]=ns(e,300),{projects:o,isInitialLoading:l}=iBe({searchQuery:r||void 0,isArchived:!1}),c=o.flatMap(e=>"chatProject"!==e.kind||e.source.is_harmony_project?[]:[e.source]),d=a.formatMessage({defaultMessage:"Shared",id:"kWI6zXRaHY"});return l&&!e?t.jsx("div",{className:"px-md py-sm text-footnote text-muted",children:t.jsx(XS,{defaultMessage:"Loading...",id:"gjBiyjshwX"})}):0===c.length?t.jsx("div",{className:"px-md py-sm text-footnote text-muted",children:r?t.jsx(XS,{defaultMessage:"No matches",id:"96GJ5wSQam"}):t.jsx(XS,{defaultMessage:"No projects available",id:"UN4PP2vYc0"})}):t.jsx(KL.Group,{children:c.map(e=>t.jsx(KL.Item,{checked:e.uuid===n,checkedRole:"radio",hint:e.is_private?void 0:d,onClick:()=>{e.uuid!==n&&i([s],e.uuid,e.name).catch(ST)},children:e.name},e.uuid))})}function pBe(e){const s=TM(e.onOpenChange),n=TM(e.onSelectForBulk),a=TM(e.onStarred),i=TM(e.onRenameStart);return t.jsx(fBe,{...e,onOpenChange:s,onSelectForBulk:n,onStarred:a,onRenameStart:i})}const fBe=e.memo(function({conversation:s,initialName:n,open:a,onOpenChange:i,trigger:r,contextMenuTrigger:o,onSelectForBulk:l,extraItems:c,menuClassName:d,onStarred:u,onRenameStart:m}){const[p,f]=e.useState(!1),g=e=>{f(e),i?.(e)},{items:h,modals:C,onPopupKeyDown:x}=uBe({conversation:s,initialName:n,onSelectForBulk:l,extraItems:c,onStarred:u,onRenameStart:m,source:o?"context_menu":"hover_menu",onOpenChange:g});return o?t.jsxs(t.Fragment,{children:[t.jsxs(LP.Root,{open:p,onOpenChange:g,children:[t.jsx(LP.Trigger,{render:o}),t.jsx(LP.Popup,{className:d,onKeyDownCapture:x,children:h})]}),C]}):t.jsxs(t.Fragment,{children:[t.jsxs(KL.Root,{open:a??p,onOpenChange:g,children:[t.jsx(KL.Trigger,{render:r}),t.jsx(KL.Popup,{align:"end",className:d,onKeyDownCapture:x,children:h})]}),C]})}),gBe=e.memo(({isOpen:s,onClose:n,initialName:a,onRename:i})=>{const r=JS(),[o,l]=e.useState(a),c=e.useRef(s),d=e.useRef(!1);e.useEffect(()=>{s&&!c.current&&(l(a),d.current=!1),c.current=s},[s,a]);const u=e.useRef(null);Gs({shouldFocus:s,target:u});return t.jsx(gt,{isOpen:s,onClose:n,title:r.formatMessage({defaultMessage:"Rename session",id:"o96GILnoRP"}),children:t.jsxs("form",{className:"grid gap-2",onSubmit:e=>{e.preventDefault(),(()=>{const e=o.trim();e&&e!==a&&i(e),n()})()},children:[t.jsx(Us,{"data-testid":"name-session",ref:u,className:"mt-3",value:o,onChange:e=>l(e.target.value),onFocus:e=>{d.current||(d.current=!0,e.target.select())}}),t.jsxs(Eu,{children:[t.jsx(kt,{variant:"secondary",type:"button",onClick:n,children:t.jsx(XS,{defaultMessage:"Cancel",id:"47FYwba+bI"})}),t.jsx(kt,{"data-testid":"name-session-submit",type:"submit",children:t.jsx(XS,{defaultMessage:"Save",id:"jvo0vs3nF0"})})]})]})})});gBe.displayName="RenameSessionModal";const hBe={kind:"cds",Item:KL.Item,Separator:KL.Separator};function CBe({sessionTitle:s,onOpenChange:n,onSelectForBulk:a,onArchive:i,onUnarchive:o,onDelete:l,onRename:c,scheduledTaskId:d,onScheduleTask:u,onTurnIntoSkill:m,onOpenInComposer:p,openInComposerDisabled:f=!1,sessionId:g,suppressMoveToProject:h,currentSpaceId:C,currentProjectUuid:x,isStarred:v,onStarred:y,onToggleStarred:b,extraItems:k,source:w="hover_menu"}){const[M,_]=e.useState(!1),[j,S]=e.useState(!1),L=r(),N=JS(),{track:I}=ae(),T=Vb(),A=No(),E=TC().length>0,{setProject:R}=kI(),{addError:D}=ut(),H=!!g&&ga(g),P=AM(),U=H&&P,O=Boolean(!h&&g&&(A?H?!!R||E&&U:E:E&&(!H||U))),F=w,V=e.useCallback(()=>{n?.(!1)},[n]),z=e.useCallback(e=>{if(g&&(V(),e!==C))if(H){const t=()=>{RM(g,e),I({event_key:"claudeai.cowork.space.session_moved",session_id:g,space_id:e,had_prior_space:!!C,session_type:"remote"})};x&&R?R(g,null).then(t).catch(e=>{D(EM(e),{error:e,messageForLogging:"SessionDropdownMenu move-to-space project clear failed"})}):t()}else{if(!lo?.updateSession)return;lo.updateSession(g,{spaceId:e}),I({event_key:"claudeai.cowork.space.session_moved",session_id:g,space_id:e,had_prior_space:!!C})}},[g,C,x,H,R,D,V,I]),Z=e.useCallback(e=>{g&&R&&(V(),e!==(x??null)&&R(g,e).then(t=>{t&&(e&&C&&RM(g,void 0),e&&I({event_key:"claudeai.cowork.space.session_moved",session_id:g,space_id:e,had_prior_space:!!x,session_type:"remote"}))}).catch(e=>{D(EM(e),{error:e,messageForLogging:"SessionDropdownMenu move-to-project failed"})}))},[g,x,C,V,R,D,I]),B=e.useCallback(()=>{g&&(V(),C&&RM(g,void 0),(C||x)&&I({event_key:"claudeai.cowork.space.session_removed",session_id:g,space_id:C??"",session_type:"remote"}),Z(null))},[g,C,x,V,I,Z]),q=e.useCallback(()=>{if(b){V();const e=!v;return b(e),void y?.(e)}if(!g)return;V();const e=!v;if(MC.getState().setStarred(g,e),!ga(g)){if(!lo?.updateSession)return;lo.updateSession(g,{isStarred:e})}y?.(e),I({event_key:"claudeai.cowork.session.starred",session_id:g,starred:e,has_space:!!C,source:F})},[g,v,y,b,V,I,C,F]),W=e.useCallback(()=>{g&&lo?.updateSession&&(V(),lo.updateSession(g,{spaceId:""}),I({event_key:"claudeai.cowork.space.session_removed",session_id:g,space_id:C}))},[g,C,V,I]),$=e.useCallback(()=>{V(),d&&L.push(`${Dm}/${encodeURIComponent(d)}`)},[V,L,d]),G=e.useCallback(()=>{V(),u?.()},[V,u]),K=e.useCallback(()=>{V(),m?.()},[V,m]),Y=e.useCallback(()=>{_(!0),V()},[V]),Q=e.useCallback(()=>{V(),a?.()},[V,a]),J=e.useCallback(()=>{V(),i?.()},[V,i]),X=e.useCallback(()=>{V(),o?.()},[V,o]),ee=e.useCallback(()=>{V(),setTimeout(()=>S(!0),100)},[V]),te=cBe(e.useMemo(()=>{const e=new Map;return(g||b)&&e.set("p",q),e.set("r",Y),i&&e.set("a",J),l&&e.set("d",ee),e},[g,b,q,Y,i,J,l,ee])),se=e.useCallback(()=>S(!1),[]),ne=e.useCallback(()=>_(!1),[]),ie=e.useMemo(()=>t.jsxs(t.Fragment,{children:[a&&t.jsxs(t.Fragment,{children:[t.jsx(KL.Item,{"data-testid":"select-for-bulk-trigger",onClick:Q,icon:"Check",children:t.jsx(XS,{defaultMessage:"Select",id:"kQAf2d9u+x"})}),t.jsx(KL.Separator,{})]}),d&&t.jsx(KL.Item,{onClick:$,icon:"Clock",children:t.jsx(XS,{defaultMessage:"View scheduled task",id:"gzbliVuuOh"})}),!d&&u&&t.jsx(KL.Item,{onClick:G,icon:"Clock",children:t.jsx(XS,{defaultMessage:"Schedule",id:"hGQqkWwmJD"})}),m&&t.jsx(KL.Item,{onClick:K,icon:"Scroll",children:t.jsx(XS,{defaultMessage:"Turn into skill",id:"ufQmUah9fM"})}),(d||u||m)&&t.jsx(KL.Separator,{}),p&&t.jsxs(t.Fragment,{children:[t.jsx(KL.Item,{"data-testid":"open-in-composer-trigger",disabled:f,onClick:()=>{n?.(!1),p()},icon:"ArrowOutSquare",children:t.jsx(XS,{defaultMessage:"Open in composer",id:"wXHgAkhUoA"})}),t.jsx(KL.Separator,{})]}),(!!g||void 0!==b)&&(T?t.jsx(KL.Item,{onClick:q,icon:v?"PinFilled":"Pin",shortcut:"p",children:v?t.jsx(XS,{defaultMessage:"Unpin",id:"opNVQCTN4x"}):t.jsx(XS,{defaultMessage:"Pin",id:"puLNUJezx6"})}):t.jsx(KL.Item,{onClick:q,icon:v?"StarFilled":"Star",shortcut:"p",children:v?t.jsx(XS,{defaultMessage:"Unstar",id:"Y5zRLWgCMP"}):t.jsx(XS,{defaultMessage:"Star",id:"VwapsmdMes"})})),t.jsx(KL.Item,{"data-testid":"rename-session-trigger",onClick:Y,icon:"Edit",shortcut:"r",children:t.jsx(XS,{defaultMessage:"Rename",id:"iXNbPfQDIZ"})}),O&&t.jsxs(t.Fragment,{children:[t.jsxs(KL.Submenu,{children:[t.jsx(KL.SubmenuTrigger,{"data-testid":"move-to-space-trigger",icon:"Projects",children:C||x?t.jsx(XS,{defaultMessage:"Change project",id:"5RCPLcgnza"}):t.jsx(XS,{defaultMessage:"Add to project",id:"+mqxxzVczn"})}),t.jsx(lBe,{className:"min-w-60",searchLabel:N.formatMessage({defaultMessage:"Search projects",id:"doPT7U8q21"}),children:e=>t.jsx(vBe,{query:e,atriumEnabled:A,isRemote:H,remoteCanMoveToSpaces:U,canSetProject:!!R,currentSpaceId:C,currentProjectUuid:x,onMoveToSpace:z,onMoveToProject:Z})})]}),(C||x)&&t.jsx(KL.Item,{"data-testid":"remove-from-space-trigger",onClick:H?B:W,icon:"ProjectsX",children:t.jsx(XS,{defaultMessage:"Remove from project",id:"FgGKwPHI5T"})})]}),(i||o||l)&&t.jsx(KL.Separator,{}),i&&t.jsx(KL.Item,{"data-testid":"archive-session-trigger",onClick:J,icon:"Archive",shortcut:"a",children:t.jsx(XS,{defaultMessage:"Archive",id:"hrgo+EleAn"})}),o&&t.jsx(KL.Item,{"data-testid":"unarchive-session-trigger",onClick:X,icon:"Archive",children:t.jsx(XS,{defaultMessage:"Unarchive",id:"ftDYZo4V2C"})}),l&&t.jsx(KL.Item,{variant:"danger","data-testid":"delete-session-trigger",onClick:ee,icon:"Trash",shortcut:"d",children:t.jsx(XS,{defaultMessage:"Delete",id:"K3r6DQW7h+"})}),k?.(hBe)]}),[T,k,a,Q,d,u,m,O,A,H,R,C,x,Z,N,g,v,b,$,G,K,z,W,B,U,q,Y,J,i,X,o,ee,l,p,f,n]),re=t.jsx(gBe,{isOpen:M,initialName:s,onClose:ne,onRename:c}),oe=l?t.jsx(xBe,{open:j,onClose:se,onDelete:l}):null;return{items:ie,modals:t.jsxs(t.Fragment,{children:[re,oe]}),onPopupKeyDown:te}}function xBe({open:s,onClose:n,onDelete:a}){const i=JS(),r=e.useCallback(async()=>{try{await a()}catch{return}n()},[a,n]);return t.jsx(MN,{open:s,onOpenChange:e=>!e&&n(),onConfirm:r,title:i.formatMessage({defaultMessage:"Delete task",id:"c6LNcWaCmr"}),description:i.formatMessage({defaultMessage:"Are you sure you want to delete this task?",id:"esvZ0TXY83"}),confirmLabel:i.formatMessage({defaultMessage:"Delete",id:"K3r6DQW7h+"}),confirmVariant:"danger"})}function vBe({query:e,atriumEnabled:s,isRemote:n,remoteCanMoveToSpaces:a,canSetProject:i,currentSpaceId:r,currentProjectUuid:o,onMoveToSpace:l,onMoveToProject:c}){const d=JS(),[u]=ns(e,300),{projects:m}=iBe({searchQuery:s&&u||void 0,isArchived:!1}),p=m.filter(e=>"space"===e.kind&&(!u||e.name.toLowerCase().includes(u))),f=s?m.flatMap(e=>"chatProject"!==e.kind||e.source.is_harmony_project?[]:[e.source]):[],g=!n||a,h=n&&i,C=d.formatMessage({defaultMessage:"Not available yet",id:"BrgoZ70vMn"}),x=d.formatMessage({defaultMessage:"Shared",id:"kWI6zXRaHY"}),v=d.formatMessage({defaultMessage:"View-only access",id:"qLEHfcv1RG"});return 0===p.length&&0===f.length?t.jsx("div",{className:"px-md py-sm text-footnote text-muted",children:u?t.jsx(XS,{defaultMessage:"No matches",id:"96GJ5wSQam"}):t.jsx(XS,{defaultMessage:"No projects available",id:"UN4PP2vYc0"})}):t.jsxs(t.Fragment,{children:[p.length>0&&t.jsx(KL.Group,{children:p.map(e=>t.jsx(KL.Item,{checked:e.id===(r??""),checkedRole:"radio",disabled:!g,hint:g?void 0:C,onClick:g?()=>l(e.id):void 0,children:e.name},e.id))}),f.length>0&&t.jsx(KL.Group,{children:f.map(e=>{const s=e.permissions?.includes(DM.ConversationCreate)??!0,n=h&&s;return t.jsx(KL.Item,{checked:e.uuid===(o??""),checkedRole:"radio",disabled:!n,hint:h?s?e.is_private?void 0:x:v:C,onClick:n?()=>c(e.uuid):void 0,children:e.name},e.uuid)})})]})}function yBe(e){return e.stopPropagation()}function bBe(e){return e.stopPropagation()}function kBe({open:s,onOpenChange:n,trigger:a,contextMenuTrigger:i,menuClassName:r,...o}){const[l,c]=e.useState(!1),d=e.useCallback(e=>{c(e),n?.(e)},[n]),{items:u,modals:m,onPopupKeyDown:p}=CBe({...o,onOpenChange:d,source:i?"context_menu":"hover_menu"});return i?t.jsxs(t.Fragment,{children:[t.jsxs(LP.Root,{open:l,onOpenChange:d,children:[t.jsx(LP.Trigger,{render:i}),t.jsx(LP.Popup,{className:r,onKeyDownCapture:p,onPointerDown:yBe,onClick:bBe,children:u})]}),t.jsx("div",{className:"contents",onPointerDown:yBe,onClick:bBe,children:m})]}):t.jsxs(t.Fragment,{children:[t.jsxs(KL.Root,{open:s??l,onOpenChange:d,children:[t.jsx(KL.Trigger,{render:a}),t.jsx(KL.Popup,{align:"end",className:r,onKeyDownCapture:p,children:u})]}),m]})}function wBe(e){setTimeout(e,100)}function MBe(e){const t=JS(),s=e?.trim();if(!s)return{};const n=[...s],a=n.length>40?`${n.slice(0,39).join("")}\u2026`:s;return{archive:t.formatMessage({defaultMessage:"Archive \u201c{name}\u201d",id:"x5W8xHkbDp"},{name:a}),delete:t.formatMessage({defaultMessage:"Delete \u201c{name}\u201d",id:"MvoKsBkozj"},{name:a}),unarchive:t.formatMessage({defaultMessage:"Unarchive \u201c{name}\u201d",id:"6vQC+Sfu0U"},{name:a})}}function _Be({conversation:s,name:n}){const[a,i]=e.useState(!1),r=MBe(n),o=e.useCallback(()=>{wBe(()=>i(!0))},[]);return Uv("delete_chat",o,{description:r.delete}),a?t.jsx(l_e,{isOpen:!0,onClose:()=>i(!1),conversation:s}):null}function jBe({title:s,onArchive:n,onDelete:a}){const[i,r]=e.useState(!1),o=MBe(s),l=e.useMemo(()=>n?()=>{n()}:void 0,[n]),c=e.useMemo(()=>a?()=>{wBe(()=>r(!0))}:void 0,[a]);Uv("archive_task",l,{description:o.archive}),Uv("delete_task",c,{description:o.delete});const d=e.useCallback(()=>r(!1),[]);return e.useEffect(()=>{a||r(!1)},[a]),a?t.jsx(xBe,{open:i,onClose:d,onDelete:a}):null}const SBe="!shrink min-w-0 -ml-1 [&>span]:min-w-0";const LBe=e.memo(function({conversationUuid:s,name:n,isInteractive:a=!0,sharedBy:i,project:r,controlsSidebarIsOpen:o,openControlsSidebar:l,closeControlsSidebar:c,isStreaming:d,isLoading:u,titleKnown:p,messagesLength:f=0,isLocalAgentSession:g,onRenameSession:h,onArchiveSession:C,onDeleteSession:x,isStarred:v,onToggleStarred:b,scheduledTaskId:k,onScheduleTask:w,hideGradient:M,onTurnIntoSkill:_,sessionId:j,beforeTitle:S,afterTitle:L,centerOverlay:N}){const I=uN(),T=mN(TN),A=nI(e=>e.isFullscreen),E=Boolean(i);y("claudified_bug_report_enabled");const{data:R}=yn(s,{enabled:!E&&!h,suppressError:!!h}),D=Xi().isAvailable,H=!!r&&!r.is_harmony_project,P=tBe(),U=m(Ff),O=Vb(),F=JS(),[V,z]=e.useState(!1),[Z,B]=e.useState(""),[q,W]=e.useState(null),$=e.useRef(null),G=e.useRef(void 0),{mutate:K}=Vk(s,R?.project_uuid),[Y,Q]=e.useState(!1),J=Nc(e=>g&&j?e.sessions.find(e=>e.sessionId===j)?.spaceId:void 0),X=fm(e=>g&&j?gm(e.bySessionId,j)?.spaceId:void 0),ee=J??X,te=dT(),se=g&&j?te(j)?.userSelectedProjectUuids?.[0]:void 0,ne=Nc(e=>g&&j?e.sessions.find(e=>e.sessionId===j)?.isStarred:void 0),ae=MC(e=>g&&j?e.starredIds.includes(j):void 0),ie=j&&ga(j)?ae:ne,re=hm(ee),oe=()=>{if(h){if(zn())return;return z(!0),B(n||""),void W(null)}R&&!R.is_temporary&&(zn()||(z(!0),B(n||""),W(null)))},le=()=>{const e=Z.trim();if(h)return e&&e!==n&&(W(e),h(e),clearTimeout(G.current),G.current=setTimeout(()=>W(null),500)),void z(!1);e&&R&&e!==n&&(W(e),K({name:e},{onSettled:()=>{W(null)}})),z(!1)},ce=e=>{e.nativeEvent.isComposing||("Enter"===e.key?(e.preventDefault(),le()):"Escape"===e.key&&(e.preventDefault(),z(!1),B(n||"")))};e.useEffect(()=>{V&&$.current&&($.current.focus(),$.current.select())},[V]),e.useEffect(()=>()=>clearTimeout(G.current),[]);const de=aUe(),ue=Eh(Bk);if(A)return null;if(g&&!h&&!C)return null;if(a&&R&&R.is_temporary)return S?t.jsx("div",{className:"sticky top-0 z-header h-12 flex items-center p-3",style:I?{zIndex:T}:void 0,children:S}):null;const me=t.jsxs("div",{className:dt("flex min-w-0 md:items-center font-base-bold",!O&&"flex-1 pr-[100px]"),children:[H&&t.jsxs("div",{className:"text-secondary inline-flex min-w-0 shrink-[4] items-center max-md:pl-1",children:[t.jsx(rN,{variant:"ghost",size:"sm",href:P({kind:"project",id:r.uuid}),className:dt(SBe,"df-link-card"),children:t.jsx("span",{className:"min-w-0 truncate",children:r.name})}),t.jsx("span",{className:"opacity-50 px-0.5",children:"/"})]}),re&&t.jsxs("div",{className:"text-secondary inline-flex min-w-0 shrink-[4] items-center max-md:pl-1",children:[t.jsx(rN,{variant:"ghost",size:"sm",href:`${Fb}/${re.id}`,className:dt(SBe,"df-link-card"),children:t.jsx("span",{className:"min-w-0 truncate",children:re.name})}),t.jsx("span",{className:"opacity-50 px-0.5",children:"/"})]}),t.jsx("div",{className:dt("flex min-w-0 shrink-1 items-center group",!H&&!re&&"-ml-1"),children:!u||p&&n?h?t.jsx(t.Fragment,{children:V?t.jsx("div",{role:"presentation","data-size":"sm",className:"flex items-center bg-bg-000 ring-1 ring-inset ring-accent-100 rounded-md h-7 max-w-full px-md",onClick:e=>e.stopPropagation(),children:t.jsx("input",{ref:$,type:"text",value:Z,onChange:e=>B(e.target.value),onKeyDown:ce,onBlur:le,className:"bg-transparent border-none outline-none focus:outline-none focus:ring-0 focus:border-transparent font-base-bold text-text-000 min-w-[3rem] max-w-full [field-sizing:content]",style:{outline:"none",boxShadow:"none"},"data-testid":"name-session","aria-label":F.formatMessage({defaultMessage:"Session name",id:"mvdlXjfNEZ"}),autoFocus:!0})}):t.jsx(TBe,{testIdKind:"session",displayName:q??n,onPrimaryClick:oe,open:Y,sessionTitle:n,onOpenChange:Q,onRename:h,onArchive:C,onDelete:x,scheduledTaskId:k,onScheduleTask:w,onTurnIntoSkill:_,sessionId:j,currentSpaceId:ee,currentProjectUuid:se,isStarred:v??ie,onToggleStarred:b})}):a&&R?R.is_temporary?t.jsxs("div",{className:"flex flex-row items-center text-text-300 gap-2 cursor-default",children:[t.jsx(kU,{}),t.jsx(XS,{defaultMessage:"Incognito chat",id:"MZWV60Fq3N"})]}):t.jsx(t.Fragment,{children:V?t.jsx("div",{role:"presentation","data-size":"sm",className:"flex items-center bg-bg-000 ring-1 ring-inset ring-accent-100 rounded-md h-7 max-w-full px-md",onClick:e=>e.stopPropagation(),children:t.jsx("input",{ref:$,type:"text",value:Z,onChange:e=>B(e.target.value),onKeyDown:ce,onBlur:le,className:"bg-transparent border-none outline-none focus:outline-none focus:ring-0 focus:border-transparent font-base-bold text-text-000 min-w-[3rem] max-w-full [field-sizing:content]",style:{outline:"none",boxShadow:"none"},"data-testid":"name-chat","aria-label":F.formatMessage({defaultMessage:"Chat name",id:"oaHo7PDUPU"}),autoFocus:!0})}):t.jsx(ABe,{testIdKind:"chat",displayName:q??n,onPrimaryClick:oe,open:Y,onOpenChange:Q,conversation:R,initialName:n,onRenameStart:zn()?void 0:()=>{z(!0),B(n||""),W(null)}})}):t.jsx("div",{className:"truncate text-text-300",children:V?t.jsx("input",{ref:$,type:"text",value:Z,onChange:e=>B(e.target.value),onKeyDown:ce,onBlur:le,className:"bg-transparent border-0 outline-none focus:outline-none focus:ring-0 font-base-bold text-text-300 w-full","data-testid":"name-chat","aria-label":F.formatMessage({defaultMessage:"Chat name",id:"oaHo7PDUPU"}),onClick:e=>e.stopPropagation()}):t.jsx(t.Fragment,{children:q||(n.length>0?n:t.jsx(XS,{defaultMessage:"Untitled",id:"3kbIhS7KZS"}))})}):t.jsx("div",{className:"animate-pulse h-5 w-32 rounded-lg bg-bg-300"})})]}),pe=t.jsxs("div",{className:"right-3 flex gap-2",children:[null,null,E&&t.jsx("div",{className:"bg-bg-300 text-text-300 rounded-full px-3 py-1.5 font-base-bold",children:t.jsx(XS,{defaultMessage:"Shared by {sharedBy}",id:"UMLOHo6H9c",values:{sharedBy:i}})}),s&&!E&&!D&&t.jsx(DZe,{hideShare:!!h,conversationUuid:s,controlsSidebarIsOpen:o,openControlsSidebar:l,closeControlsSidebar:c,isTemporary:R?.is_temporary,hasShareableHistory:d?f>2:f>0})]}),fe=t.jsxs(t.Fragment,{children:[a&&!E&&R&&!R.is_temporary&&t.jsx(_Be,{conversation:R,name:n}),g&&(C||x)&&t.jsx(jBe,{title:n,onArchive:C,onDelete:x})]});if(O){const e=D&&!L?null:t.jsxs(EZe,{children:[L,!D&&pe]});return de?ue?t.jsxs(t.Fragment,{children:[fe,t.jsxs(AZe,{slotId:cUe,children:[S,me]}),e]}):t.jsxs(t.Fragment,{children:[fe,t.jsxs(eBe,{"data-testid":"chat-header",children:[S,me]}),e]}):t.jsxs(t.Fragment,{children:[fe,e]})}return t.jsxs(t.Fragment,{children:[fe,t.jsxs(HM,{className:dt("h-12",!U&&!M&&"-mb-3"),contentClassName:dt("gap-6",U?"pl-0":"p-3 lg:pl-4 lg:pr-3"),"data-testid":"chat-header",sticky:!0,hideGradient:M,children:[S,me,L,pe,N&&t.jsx("div",{className:"absolute inset-0 flex items-center justify-center pointer-events-none",children:N})]})]})}),NBe="!shrink min-w-0 cursor-text [&>span]:min-w-0";function IBe({name:e}){return t.jsx("span",{className:dt("min-w-0 truncate font-base-bold",0===e.length&&"text-muted"),children:e.length>0?e:t.jsx(XS,{defaultMessage:"Untitled",id:"3kbIhS7KZS"})})}function TBe({displayName:e,onPrimaryClick:s,open:n,onOpenChange:a,testIdKind:i,...r}){const o=JS(),{items:l,modals:c,onPopupKeyDown:d}=CBe({...r,onOpenChange:a,source:"hover_menu"}),u=e?o.formatMessage({defaultMessage:"More options for {label}",id:"rKQPgfPvWS"},{label:e}):o.formatMessage({defaultMessage:"More options",id:"IzCVhGdYVc"});return t.jsxs("div",{className:"flex min-w-0 shrink items-center","data-testid":`${i}-title-split`,children:[t.jsx(rN,{variant:"ghost",size:"sm",onClick:s,"aria-label":o.formatMessage({defaultMessage:"{name}, rename session",id:"Z444Es4IIr"},{name:e||o.formatMessage({defaultMessage:"Untitled",id:"3kbIhS7KZS"})}),className:NBe,children:t.jsx(IBe,{name:e})}),t.jsxs(KL.Root,{open:n,onOpenChange:a,children:[t.jsx(iN,{content:u,children:t.jsx(KL.Trigger,{render:t.jsx(rN,{variant:"ghost",size:"sm",iconOnly:!0,icon:t.jsx($L,{name:"CaretDown",size:"sm"}),"aria-label":u,tooltip:!1,className:"-ml-2"})})}),t.jsx(KL.Popup,{align:"end",onKeyDownCapture:d,children:l})]}),c]})}function ABe({displayName:e,onPrimaryClick:s,open:n,onOpenChange:a,conversation:i,initialName:r,testIdKind:o,onRenameStart:l}){const c=JS(),{items:d,modals:u,onPopupKeyDown:m}=uBe({conversation:i,initialName:r,onRenameStart:l,source:"hover_menu",onOpenChange:a}),p=e?c.formatMessage({defaultMessage:"More options for {label}",id:"rKQPgfPvWS"},{label:e}):c.formatMessage({defaultMessage:"More options",id:"IzCVhGdYVc"});return t.jsxs("div",{className:"flex min-w-0 shrink items-center","data-testid":`${o}-title-split`,children:[t.jsx(rN,{variant:"ghost",size:"sm",onClick:s,"aria-label":c.formatMessage({defaultMessage:"{name}, rename chat",id:"3HnBzRh3JG"},{name:e||c.formatMessage({defaultMessage:"Untitled",id:"3kbIhS7KZS"})}),className:NBe,children:t.jsx(IBe,{name:e})}),t.jsxs(KL.Root,{open:n,onOpenChange:a,children:[t.jsx(iN,{content:p,children:t.jsx(KL.Trigger,{render:t.jsx(rN,{variant:"ghost",size:"sm",iconOnly:!0,icon:t.jsx($L,{name:"CaretDown",size:"sm"}),"aria-label":p,tooltip:!1,className:"-ml-2"})})}),t.jsx(KL.Popup,{align:"end",onKeyDownCapture:m,children:d})]}),u]})}const EBe={type:"spring",stiffness:1200,damping:80,mass:.1},RBe=100;function DBe({headerProps:s,mainElement:n,drawerElement:a,auxilaryElement:i,belowHeaderElement:r,isDrawerOpen:o,drawerFixedWidthPx:l,autoscrollRef:c,rightSidebarElement:d,autoScrollInnerClassName:u,disableScroll:m,hideHeader:p}){const f=JS(),[g,h]=e.useState(!1),C=Vb(),x=aUe(),v=e.useRef(null),y=e.useRef(null),b=e.useRef(null),k=e.useRef({interacted:!1,intendedDrawerFlex:0}),{setIsDrawerExpanded:w,isDrawerMaximized:M,setIsDrawerMaximized:_}=DN(),j=e.useRef(!1);e.useEffect(()=>{o||_(!1)},[o,_]);const{incognitoModeEnabled:S}=Va(),L=e.useContext(gd),N=pP("md");e.useEffect(function(){if(!(y.current&&v.current&&I.current&&b.current))return;const e=v.current,t=y.current,s=b.current;N&&!o?s.style.width=`${t.getBoundingClientRect().width}px`:N&&l?(s.style.width=`${l}px`,s.style.marginLeft="auto"):(s.style.width="auto",s.style.marginLeft="");const n=N&&!!d,a=I.current.getBoundingClientRect().width,i=n?384/a*RBe:0,r=l?l/a*RBe:50,c=HBe(t.style.flexGrow,o?i:r),u=Math.max(0,RBe-rP/a*RBe),m=k.current.intendedDrawerFlex||50,p=N?Math.min(RBe,320/a*RBe):0,f=o?M?RBe:l?r:Math.max(p,Math.min(m,u)):0;!o||M||l||(k.current.intendedDrawerFlex=m);const g=()=>{e.style.flex=String(RBe-f),t.style.flex=String(f),o&&l||(s.style.width="auto",s.style.marginLeft=""),M||(k.current.intendedDrawerFlex=o?l?k.current.intendedDrawerFlex:m:0)};if(o)k.current.interacted=!0;else if(!k.current.interacted)return;const h=j.current!==o;if(j.current=o,!N||o&&!h)return void g();const{park:C,unpark:x}=AVe.getState();let w=!0;C();const _=()=>{w&&(w=!1,x())},S=uA(c,f,{...EBe,onUpdate:s=>{e.style.flex=String(RBe-s),t.style.flex=String(s)},onComplete:()=>{g(),_()}});return()=>{S.stop(),_()}},[o,M,l]);const[I,T]=FI(),A=e.useRef({leftPx:0,containerPx:1}),E=e.useCallback(()=>{v.current&&I.current&&(A.current={leftPx:v.current.getBoundingClientRect().width,containerPx:I.current.getBoundingClientRect().width},h(!0))},[I]),R=e.useCallback(e=>{if(!y.current||!v.current)return;const{leftPx:t,containerPx:s}=A.current;var n,a,i;const r=(n=t+e,a=rP,i=s-320,Math.min(Math.max(n,a),i))/s*RBe;v.current.style.flex=String(r),y.current.style.flex=String(RBe-r),k.current.intendedDrawerFlex=RBe-r},[]),D=e.useCallback(()=>h(!1),[]);return e.useEffect(()=>{if(!y.current||!v.current||!I.current)return;if(window.innerWidth<iP||M)return;const e=I.current.getBoundingClientRect(),t=Math.max(0,RBe-rP/e.width*RBe),s=l?l/e.width*RBe:void 0,n=HBe(y.current.style.flexGrow,0)>0,a=n&&void 0===s?Math.min(RBe,320/e.width*RBe):0,i=Math.max(a,Math.min(void 0!==s&&n?s:k.current.intendedDrawerFlex,t));v.current.style.flex=String(RBe-i),y.current.style.flex=String(i)},[T.width,T.height,I,M,l]),t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:dt("flex flex-1 h-full w-full max-md:relative",C?"overflow-clip [overflow-clip-margin:8px]":"overflow-hidden","md:-mt-[var(--df-header-h,0px)] md:h-[calc(100%+var(--df-header-h,0px))]","print:!h-auto print:!overflow-visible print:!mt-0",g&&"select-none"),ref:I,children:[t.jsxs("div",{ref:v,className:dt("h-full flex flex-col overflow-hidden md:pt-[var(--df-header-h,0px)]","print:h-auto print:overflow-visible print:!flex-auto",C&&"relative"),style:{flex:"100 0"},"aria-hidden":!(!o||!M)||void 0,inert:!(!o||!M)||void 0,children:[!L.hideHeader&&!p&&t.jsx(LBe,{...s,hideGradient:!!r}),r,t.jsx(D9,{ref:c,strictUnpin:!0,parentClassName:dt(p?void 0:C?x&&"mt-12 pt-2":"pt-6","flex-1",m&&"!overflow-hidden"),innerClassName:u,children:n})]}),l?null:C?t.jsx(JZe,{orientation:"vertical",onResizeStart:E,onResize:R,onResizeEnd:D,ariaLabel:f.formatMessage({defaultMessage:"Resize file viewer",id:"mlWjJV/8iI"}),className:dt("max-md:hidden -mr-1.5 z-30 print:hidden",(!o||M)&&"hidden")}):t.jsx(XZe,{onResizeStart:E,onResize:R,onResizeEnd:D,isResizing:g,className:dt("max-md:hidden print:hidden",(!o||M)&&"hidden")}),t.jsx("div",{ref:y,className:dt("max-md:absolute top-0 right-0 bottom-0 left-0 z-20 draggable-none print:hidden","md:flex-grow-0 md:flex-shrink-0 md:basis-0","overflow-hidden",l?"h-full":C?"md:mt-[calc(var(--df-header-h,0px)+8px)] md:mb-2":"h-full md:pt-[var(--df-header-h,0px)]",o?dt("max-md:flex-1",l?"md:border-l":C&&QZe):"max-md:hidden",g&&"pointer-events-none"),style:{flex:"0 0"},"aria-hidden":!o,inert:!o||void 0,children:t.jsxs("div",{ref:b,className:"flex flex-col h-full",children:[!S&&t.jsx("div",{className:"h-12 md:hidden bg-bg-000/30 backdrop-blur border-b-0.5 border-border-300",onClick:()=>{w(!1)}}),t.jsx("div",{className:dt("flex-1 overflow-hidden h-full",C?"max-md:bg-bg-100":"bg-bg-100"),children:a})]})}),d&&t.jsx("div",{className:"contents print:hidden",children:d})]}),i??null]})}function HBe(e,t=0){const s=parseFloat(e);return isNaN(s)?t:s}const PBe=["consumer_restricted_mode","consumer_second_warning","consumer_first_warning","recent_election_discussion"];function UBe({long:e}){return t.jsx(ct,{href:OM,target:"_blank",rel:"noreferrer",children:e?t.jsx(XS,{defaultMessage:"Learn more about the types of prompts to avoid {arrow}",id:"6DZ92vAY0j",values:{arrow:"\xbb"}}):t.jsx(XS,{defaultMessage:"Learn more {arrow}",id:"ZeACTbo6DM",values:{arrow:"\xbb"}})})}const OBe={consumer_restricted_mode:[{isDismissible:!1,content:t.jsxs(t.Fragment,{children:[t.jsx(XS,{defaultMessage:"Because a large number of your prompts have violated our Acceptable Use Policy, we have temporarily applied enhanced safety filters to your chats.",id:"PzePYdPNe4"})," ",t.jsx(UBe,{})]})}],consumer_second_warning:[{isDismissible:!0,content:t.jsxs(t.Fragment,{children:[t.jsx(XS,{defaultMessage:"It appears your recent prompts continue to violate our Acceptable Use Policy. If we continue seeing this pattern, we\u2019ll apply enhanced safety filters to your chats.",id:"BjivfV2YY6"})," ",t.jsx(UBe,{})]})}],consumer_first_warning:[{isDismissible:!0,content:t.jsxs(t.Fragment,{children:[t.jsx(XS,{defaultMessage:"It looks like a few of your recent prompts don\u2019t meet our Usage Policy.",id:"Aup/Kzn3Eq"})," ",t.jsx(UBe,{long:!0})]})}],recent_election_discussion:[{isDismissible:!0,content:t.jsx(t.Fragment,{children:t.jsx(XS,{defaultMessage:"Claude may not be able to provide accurate, real time information on elections. Please visit <link>TurboVote</link> or check the Secretary of State site for your state to get reliable, up-to-date, non partisan guidance on how and where to vote in elections across the US.",id:"X4J/f3yO08",values:{link:e=>t.jsx(ct,{href:"http://claude.turbovote.org",target:"_blank",rel:"noopener noreferrer",children:e})}})}),applicable_country:"US"},{isDismissible:!0,content:t.jsx(t.Fragment,{children:t.jsx(XS,{defaultMessage:"The United Kingdom\u2019s general elections will be held on 4 July, 2024. Please visit the <link>UK Election Commission\u2019s website</link> to get reliable, up-to-date, impartial guidance on how and where to vote in the United Kingdom\u2019s general elections.",id:"VUvO/yD1Iw",values:{link:e=>t.jsx(ct,{href:"https://www.electoralcommission.org.uk/",target:"_blank",rel:"noopener noreferrer",children:e})}})}),applicable_country:"GB"},{isDismissible:!0,content:t.jsx(t.Fragment,{children:t.jsx(XS,{defaultMessage:"The French legislative elections will be held in two rounds of voting on June 30 and July 7, 2024. Please consult <link>the French Public Administration website</link> for reliable and up-to-date guidance on where and how to vote in the legislative elections in France.",id:"ZzEMOJWfNz",values:{link:e=>t.jsx(ct,{href:"https://www.service-public.fr/particuliers/vosdroits/N47",target:"_blank",rel:"noopener noreferrer",children:e})}})}),applicable_country:"FR"}]};function FBe({isClaudeDot:e,content:s,isDismissible:n,handleDismiss:a}){const i=JS();return t.jsx("div",{className:e?"fixed top-8 z-10 p-4":"",children:t.jsx(zBe,{isFloating:e,children:t.jsxs("div",{className:"items-top flex justify-between",children:[t.jsx("p",{className:"text-sm font-medium",children:s}),n&&a&&t.jsx("button",{type:"button",className:"h-5 cursor-pointer",onClick:()=>{a()},"aria-label":i.formatMessage({defaultMessage:"Dismiss warning",id:"w5w7SXuEOj"}),children:t.jsx(uR,{size:24})})]})})})}function VBe({conversationUuid:s}){const n=ae(),a=vi(),{account:i,activeOrganization:r}=v(),o=i?.uuid,l=r?.uuid,{mutateAsync:c}=PM(),{data:d}=UM(r?.uuid),u=$().ipCountry,m=d?.active_flags&&d?.active_flags.map(e=>e.type),{shownFlagType:p,shownFlagDetails:f}=function(e,t){const s=PBe.findIndex(e=>t?.includes(e)),n=PBe[s];if(!n)return{shownFlagType:null,shownFlagDetails:null};const a=OBe[n].filter(t=>!t.applicable_country||t.applicable_country===e);return 0===a.length?{shownFlagType:null,shownFlagDetails:null}:{shownFlagType:n,shownFlagDetails:a[0]}}(u,m);if(e.useEffect(()=>{o&&l&&p&&n.track({event_key:"ts.banner.shown",flag_type:p,conversation_uuid:s,account_uuid:o,organization_uuid:l,ipCountry:u??"unknown"})},[n,p,s,o,l,u]),!p||!f)return;const{isDismissible:g,content:h}=f;return t.jsx(FBe,{isClaudeDot:a,content:h,isDismissible:g,handleDismiss:async()=>{if(!g)return;const e=[p];"consumer_second_warning"===p&&m?.includes("consumer_first_warning")&&e.push("consumer_first_warning"),await Promise.all(e.map(e=>c({flagType:e})))}})}function zBe({isFloating:e,className:s,style:n,...a}){const i=uN();return t.jsx("div",{...a,className:dt("w-full flex gap-2 bg-warning-900 px-3 py-2",e&&"max-w-3xl mx-auto rounded-md shadow-element z-toast",s),style:{...n,...i&&e?{zIndex:jN}:void 0}})}const ZBe=["apps_and_websites","documents_and_templates","games","productivity_tools","creative_projects","quiz_or_survey","start_from_scratch"],BBe={apps_and_websites:"Globe",documents_and_templates:"File",games:"Flag",productivity_tools:"Lightning",creative_projects:"Palette",quiz_or_survey:"Checklist",start_from_scratch:"AddCircle"};function qBe({selectedLabel:e,disabled:s}){const n=JS(),{track:a}=ae(),i=new Map([["apps_and_websites",n.formatMessage({defaultMessage:"Apps and websites",id:"HC16Tj5QBT"})],["documents_and_templates",n.formatMessage({defaultMessage:"Documents and templates",id:"mLy6zrc3XL"})],["games",n.formatMessage({defaultMessage:"Games",id:"DUyJmj7sj9"})],["productivity_tools",n.formatMessage({defaultMessage:"Productivity tools",id:"t/RMra2cqp"})],["creative_projects",n.formatMessage({defaultMessage:"Creative projects",id:"gZSnjM59XP"})],["quiz_or_survey",n.formatMessage({defaultMessage:"Quiz or survey",id:"yyPDfhkUT7"})],["start_from_scratch",n.formatMessage({defaultMessage:"Start from scratch",id:"fGhwMpK3XG"})]]),r=new Map(Array.from(i,e=>e.reverse())),{sendTransparentMessage:o,conversation:l}=J(),{mutate:c}=FM(l?.id),d=y("enable_gimbal_claude_create"),u=Xi(),m=d&&!u.isAvailable&&void 0===e&&!s,p=r.get(e??"")??"default";return m?t.jsxs("div",{className:"mt-1 flex flex-col gap-sm pl-2","data-testid":"create-mode-wiggle-off-guidance",children:[t.jsx("p",{className:"font-claude-response-body",children:t.jsx(XS,{defaultMessage:"Create needs <b>code execution and file creation</b>.",id:"dUSMGPkZjo",values:{b:e=>t.jsx("strong",{children:e})}})}),t.jsx("p",{className:"text-footnote text-secondary",children:"disabled_by_user"===u.status?t.jsx(XS,{defaultMessage:"Enable it in Settings \u2192 Capabilities to get started.",id:"t7JbR5NojA"}):"blocked_by_org_admin"===u.status||"blocked_by_entitlement"===u.status?t.jsx(XS,{defaultMessage:"Ask your admin to enable it in Organization settings.",id:"dOMP802RWb"}):u.isUpsellEligible?t.jsx(XS,{defaultMessage:"This isn\u2019t available on your plan.",id:"dQcDi1+Pan"}):t.jsx(XS,{defaultMessage:"This isn\u2019t currently available for your account.",id:"h8avCQSdRr"})})]}):t.jsxs("div",{className:"mt-1 flex flex-col gap-md pl-2",children:[t.jsx("p",{className:"font-claude-response-body",children:t.jsx(XS,{defaultMessage:"Let\u2019s get cooking! Pick an artifact category or start building your idea from scratch.",id:"HKJSK13xqN"})}),t.jsx("ul",{role:"list",className:"grid w-full max-w-xl grid-cols-2 items-stretch gap-sm sm:grid-cols-4",children:ZBe.map(e=>t.jsx("li",{children:t.jsxs("button",{type:"button",disabled:"default"!==p||s,"aria-pressed":p===e||void 0,className:dt("group flex h-full min-h-14 w-full flex-row items-center gap-sm rounded-card p-md text-left transition-colors sm:h-28 sm:flex-col-reverse sm:items-stretch sm:justify-between",p===e&&"bg-surface-1 text-primary shadow-panel-sm",("default"!==p&&p!==e||"default"===p&&s)&&"bg-surface-1/50 text-muted shadow-card-ring","default"===p&&!s&&"bg-surface-1 text-secondary shadow-panel-sm hover:text-primary"),onClick:()=>{(async e=>{i.has(e)&&(a({event_key:"artifact.studio.create_mode_selected",create_mode:e}),l?.id&&!d&&c({settings:{enabled_monkeys_in_a_barrel:!1}}),await o(i.get(e)))})(e)},children:[t.jsx($L,{name:BBe[e],size:"md","aria-hidden":!0,className:dt("shrink-0 transition-transform duration-base ease-out sm:self-end","default"===p&&!s&&"group-hover:-rotate-2 group-hover:scale-105 group-focus-visible:-rotate-2 group-focus-visible:scale-105 sm:group-hover:rotate-2 sm:group-focus-visible:rotate-2")}),t.jsx("span",{className:"flex-1",children:i.get(e)})]})},e))})]})}const WBe={base:36,charsPerLine:70,lineHeightHuman:26,lineHeightAssistant:24,fence:120,table:80,listBase:30,listPerLine:4,toolUse:45,toolResult:45,thumbRow:125,thumbsPerRow:5};function $Be(){const{activeOrganization:e}=v(),t=e?.monitoring_notice;return t??null}function GBe(){return null!==$Be()}function KBe(){const e=uN(),s=mN(TN),n=$Be(),a=m(),i=JS();if(!n)return null;const r=n.url?.startsWith("https://")?n.url:void 0;return t.jsx("div",{role:"region","aria-label":i.formatMessage({defaultMessage:"Organization monitoring notice",id:"UbpLeauxPF"}),className:dt("flex w-full shrink-0 items-center justify-center z-header px-4 text-center","bg-alpha-2 text-primary",a&&"draggable"),style:{height:oP,...e?{zIndex:s}:void 0},children:r?t.jsx(ct,{href:r,external:!0,title:n.text,className:dt("max-w-full text-body font-medium line-clamp-1",a&&"draggable-none"),children:n.text}):t.jsx("p",{className:"max-w-full text-body font-medium line-clamp-1",title:n.text,children:n.text})})}const YBe=VL("enabled",[AL({enabled:zL(!1),text:IL().optional(),backgroundColor:IL().optional(),textColor:IL().optional(),linkUrl:IL().optional()}),AL({enabled:zL(!0),text:IL(),backgroundColor:IL(),textColor:IL(),linkUrl:IL().optional()})]),QBe={enabled:!1};function JBe(){const e=m(),t=ce("claude_ai_banner_customization_enabled",!0);Qa("claude_ai_pubsec_banner",QBe,YBe);const{activeOrganization:s}=v(),n=s?.settings?.banner,a=e=>"string"==typeof e&&/^#[0-9A-Fa-f]{6}$/.test(e),i=Boolean(n?.enabled&&n?.text&&a(n?.background_color)&&a(n?.text_color)),r=n?.link_url?.startsWith("https://")?n.link_url:void 0,o=i?{enabled:!0,text:n.text,backgroundColor:n.background_color,textColor:n.text_color,linkUrl:r}:null;return e?{enabled:!1}:t&&o?o:{enabled:!1}}function XBe(){return JBe().enabled}function eqe(){const e=uN(),s=mN(TN),n=JBe();if(!n.enabled)return null;return!!n.linkUrl?t.jsx("a",{href:n.linkUrl,target:"_blank",rel:"noopener noreferrer",className:dt("block w-full shrink-0 z-header text-center py-2 px-4 cursor-pointer"),role:"banner",style:{backgroundColor:n.backgroundColor,color:n.textColor,height:oP,...e?{zIndex:s}:void 0},children:t.jsx("p",{className:"text-sm font-medium hover:underline line-clamp-1",children:n.text})}):t.jsx("div",{className:dt("w-full shrink-0 z-header text-center py-2 px-4"),role:"banner",style:{backgroundColor:n.backgroundColor,color:n.textColor,height:oP,...e?{zIndex:s}:void 0},children:t.jsx("p",{className:"text-sm font-medium line-clamp-1",children:n.text})})}function tqe({scrollRefs:s,autoScrollRef:n,messageCount:a,tailMessageUuid:i,additionalBuffer:r=0,parentContainerRef:o,disablePinToTop:l=!1,disableInitialScrollToBottom:c=!1,initialPrevMessageCount:d,sentinelElement:u}){const m=e.useRef(d??a),p=XBe(),f=GBe(),g=VM(),h=e.useRef(null);e.useEffect(()=>()=>h.current?.(),[]);const C=e.useRef(Number.NEGATIVE_INFINITY);e.useEffect(()=>{const e=s.chatInput?.current;if(!e||void 0===u)return;const t=()=>{C.current=performance.now()};return e.addEventListener("keydown",t,{passive:!0}),e.addEventListener("compositionupdate",t,{passive:!0}),()=>{e.removeEventListener("keydown",t),e.removeEventListener("compositionupdate",t)}},[s.chatInput,u,a]);const x=e.useRef(0),v=e.useRef(0);e.useEffect(()=>()=>cancelAnimationFrame(x.current),[]);const y=e.useRef(()=>{}),b=e.useRef(u);e.useLayoutEffect(()=>{b.current=u},[u]);const k=e.useCallback(()=>{const e=s.lastAssistantMessage.current?.clientHeight||0,t=s.lastHumanMessage.current?.clientHeight||0,a=s.chatInput?.current?.clientHeight||0,i=s.extras.current?.clientHeight||0,l=(p?1:0)+(f?1:0),c=l?l*(parseFloat(oP)*parseFloat(getComputedStyle(document.documentElement).fontSize)):0;const d=o?.current?.clientHeight||window.innerHeight,u=(r||160)+(g?zM:0);let m=0;if(b.current){const e=n.current?.getScrollContainer()?.querySelector("[data-sizer-excess]"),t=e?.querySelector("[data-last-message]"),s=Number(e?.dataset.sizerExcess??0);m=e&&t&&s>0?Math.max(0,e.clientHeight-t.offsetTop-t.offsetHeight):s}let h=Math.max(d-t-e-i-a-c-u-m,0);const C=s.extraSpace.current,k=n.current?.getScrollContainer();let w=!1;if(C&&k&&b.current&&!n.current?.isPinned?.()){const e=C.clientHeight;if(h<e){const t=e-Math.max(0,k.scrollHeight-k.scrollTop-k.clientHeight);t>h&&v.current<2&&(h=t,w=!0)}}C&&(C.style.height=`${h}px`),w?x.current?v.current=0:x.current=requestAnimationFrame(()=>{x.current=0,v.current++,y.current()}):(x.current&&(cancelAnimationFrame(x.current),x.current=0),v.current=0)},[n,s.lastAssistantMessage,s.lastHumanMessage,s.chatInput,s.extras,s.extraSpace,p,f,g,o,r]),w=e.useRef(i);e.useLayoutEffect(()=>{const e=a>m.current,t=m.current>0&&void 0!==i&&i===w.current,r=(void 0===i?void 0:En(i))!==(void 0===w.current?void 0:En(w.current));if(w.current=i,!e&&r&&h.current?.(),e&&(k(),!l&&!t)){const e=0===m.current&&a>0;if(e&&void 0!==d){let e=0;const t=()=>{cancelAnimationFrame(e),h.current===t&&(h.current=null)};e=requestAnimationFrame(()=>{const e=n.current?.getScrollContainer();if(e){if(h.current!==t)return;const s=function(e,t){const s=e.scrollTop,n=e.scrollHeight-e.clientHeight-s;if(n<=0)return null;const a=performance.now();let i=0,r=!1;const o=l=>{if(r)return;const c=Math.min((l-a)/t,1),d=1-Math.pow(1-c,3);e.scrollTop=s+n*d,c<1&&(i=requestAnimationFrame(o))};return i=requestAnimationFrame(o),()=>{r=!0,cancelAnimationFrame(i)}}(e,600);if(null===s)return;const a=performance.now();let i;void 0!==u&&(i=setTimeout(()=>{h.current=null;if((n.current?.getLastUserInputAt?.()??0)>a)return;const t=e.scrollHeight-e.clientHeight;t-e.scrollTop>8&&e.scrollTo({top:t,behavior:"auto"})},1100)),h.current=()=>{s(),void 0!==i&&clearTimeout(i),h.current=null}}}),h.current=t}else if(n.current)if(h.current?.(),n.current.scrollToBottom(e?"instant":"smooth"),e||void 0===u)h.current=()=>{h.current=null};else{const e=n.current.getScrollContainer();if(e){const t=performance.now();let a=0,i=null,r=null;const o=()=>{r=null,e.removeEventListener("scrollend",o),null!==i&&(clearTimeout(i),i=null);if((n.current?.getLastUserInputAt?.()??0)>t)return void(h.current=null);if((s.extraSpace.current?.clientHeight??0)<=0)return void(h.current=null);const l=performance.now()-C.current;if(l<450&&performance.now()-t<5e3)return void(i=setTimeout(o,450-l));const c=e.scrollHeight-e.clientHeight;c-e.scrollTop>8&&a<2?(a+=1,e.scrollTo({top:c,behavior:"auto"}),r=requestAnimationFrame(o)):h.current=null};e.addEventListener("scrollend",o,{once:!0}),i=setTimeout(o,500),h.current=()=>{e.removeEventListener("scrollend",o),null!==i&&clearTimeout(i),null!==r&&cancelAnimationFrame(r),h.current=null}}}else if(e){let e=0;const t=()=>{cancelAnimationFrame(e),h.current===t&&(h.current=null)};e=requestAnimationFrame(()=>{h.current===t&&(h.current=null,n.current?.scrollToBottom("instant"))}),h.current?.(),h.current=t}}m.current=a},[a,i,k,n,l,d,u,s.extraSpace]),e.useLayoutEffect(()=>{const e=new ResizeObserver(()=>{k()});return[s.lastAssistantMessage,s.lastHumanMessage,s.chatInput,s.extras].forEach(t=>{t?.current&&e.observe(t.current)}),window.addEventListener("resize",k),()=>{e.disconnect(),window.removeEventListener("resize",k)}},[s,k,a,i,u]),e.useLayoutEffect(()=>{if(!u)return;const e=n.current?.getScrollContainer()?.querySelector("[data-sizer-excess]");if(!e)return;let t=e.getBoundingClientRect().height;const s=new ResizeObserver(s=>{const n=s[0]?.borderBoxSize?.[0]?.blockSize??e.getBoundingClientRect().height;n<t&&y.current(),t=n});return s.observe(e),()=>s.disconnect()},[u,n,a]),e.useLayoutEffect(()=>{y.current=k},[k]);const M=e.useRef(!1);return e.useLayoutEffect(()=>{if(c||void 0!==d)return;if(null===u)return;if(void 0!==u&&y.current(),M.current)return;M.current=!0;const e=e=>{if(void 0===u||e.clientHeight<=0)return!1;const t=s.extraSpace.current?.clientHeight??0;return e.scrollHeight-t-e.clientHeight<=8},t=()=>{if(void 0===u)return;const t=n.current?.getScrollContainer();if(!t)return;const s=performance.now();let a=0,i=0;const r=()=>{i=0;if((n.current?.getLastUserInputAt?.()??0)>s)return void(h.current=null);if(e(t))return void(h.current=null);const o=t.scrollHeight-t.clientHeight;o-t.scrollTop>8&&a<2?(a+=1,t.scrollTo({top:o,behavior:"auto"}),i=requestAnimationFrame(r)):h.current=null};i=requestAnimationFrame(()=>{i=requestAnimationFrame(r)}),h.current=()=>{0!==i&&cancelAnimationFrame(i),h.current=null}};if(n.current){const s=n.current.getScrollContainer();s&&e(s)||n.current.scrollToBottom("instant"),h.current?.(),t()}else{let s=0;const a=()=>{cancelAnimationFrame(s),h.current===a&&(h.current=null)};s=requestAnimationFrame(()=>{if(h.current!==a)return;const s=n.current?.getScrollContainer();s&&e(s)||n.current?.scrollToBottom("instant"),t()}),h.current?.(),h.current=a}},[n,c,d,s.extraSpace,u,y]),t.jsx("div",{ref:s.extraSpace,"aria-hidden":"true",className:"print:hidden"})}function sqe(){const{emptyGreeting:s}=e.useContext(gd);return t.jsx(sA.figure,{initial:{opacity:0},animate:{opacity:1},transition:{delay:.2},className:"text-text-100 flex flex-col gap-8 text-center","data-testid":"empty-chat-screen",children:t.jsxs("h2",{className:"font-title flex flex-col items-center justify-center gap-2 sm:flex-row",children:[t.jsx("div",{className:"mt-1","aria-hidden":"true",children:t.jsx(H9,{state:"waiting"})}),s??t.jsx(XS,{defaultMessage:"What can I help you with today?",id:"1PnN/uP0zv"})]})})}const nqe="/Spark/",aqe=[19,17,16,15,14,13,12,11,1,11,12,13,14,15,16,17,19],iqe=`${nqe}/Check.svg`,rqe=AL({changeTitle:RL().optional(),titleDelayMs:EL().optional(),changeFavicon:RL().optional(),faviconDelayMs:EL().optional(),playSound:RL().optional()}),oqe={};function lqe(t,s,n){const a=ze("claude_ai_tabbed_out_notifications","features",oqe,rqe),i="visible"===function(){const[t,s]=e.useState("visible");return e.useEffect(()=>{const e=()=>s(document.visibilityState);return document.addEventListener("visibilitychange",e),()=>document.removeEventListener("visibilitychange",e)},[]),t}(),{setThinkingTitle:r,setReceivedTitle:o,resetTitle:l}=function(t,s,n){const a=e.useRef(null),i=e.useCallback(()=>{a.current&&(clearInterval(a.current),a.current=null),document.title="Working on it..."},[]),r=e.useCallback(()=>{if(a.current)return;let e=0;a.current=setInterval(()=>{document.title=t[e],e=(e+1)%t.length},n)},[n,t]),o=e.useCallback(()=>{a.current&&(clearInterval(a.current),a.current=null),document.title=s},[s]);return e.useMemo(()=>({setThinkingTitle:i,setReceivedTitle:r,resetTitle:o}),[i,r,o])}(["Ready to chat",t],t,a.titleDelayMs||1600),{setWritingFavicon:c,setCompleteFavicon:d,resetFavicon:u}=function(t){const s=e.useRef(null),n=e.useCallback(e=>{const t=document.querySelector("link[rel~='icon']")||document.createElement("link");t.rel="icon",t.href=e,document.head.appendChild(t)},[]),a=e.useCallback(()=>{s.current&&clearInterval(s.current),s.current=null,n("/favicon.ico")},[n]),i=e.useCallback(()=>{if(s.current)return;let e=0;s.current=setInterval(()=>{n(`${nqe}/${aqe[e]}.svg`),e=(e+1)%aqe.length},t)},[t,n]),r=e.useCallback(()=>{a(),n(iqe)},[n,a]);return e.useMemo(()=>({setWritingFavicon:i,setCompleteFavicon:r,resetFavicon:a}),[i,r,a])}(a.faviconDelayMs||100),{playSound:m,resetSound:p}=function(){const t=e.useRef(null),s=e.useRef(!1),n=e.useCallback(()=>{s.current||(s.current=!0,t.current||(t.current=new Audio("/click.mp3")),t.current.play().catch(()=>{}))},[]),a=e.useCallback(()=>{s.current=!1},[]);return e.useMemo(()=>({playSound:n,resetSound:a}),[n,a])}(),f=e.useRef(!1);e.useEffect(()=>{const e=s&&n,t=!s&&n,g=!s&&!n;e&&!f.current&&(f.current=!0);const h=g&&f.current;if(h&&(f.current=!1),i)return a.changeTitle&&l(),void(a.changeFavicon&&u());a.changeTitle&&(e||t?r():h&&o()),a.changeFavicon&&(t?c():h&&(d(),f.current=!1)),a.playSound&&(e?p():h&&m())},[a,s,n,i,r,o,l,c,d,u,m,p])}const cqe={CLAUDE_E2E_TEST_ACCOUNT_REGEX:/^claude-[0-9]{16}(?:-[^-]+)?-e2e@sillylittleguy\.org$/,CONSOLE_E2E_TEST_ACCOUNT_REGEX:/^console-[0-9]{16}(?:-[^-]+)?-e2e@sillylittleguy\.org$/,ENTERPRISE_E2E_TEST_ACCOUNT_REGEX:/^[\w-]+-e2e@[\w-]+\.sillylittleguy\.org$/},dqe=e=>e.match(cqe.CONSOLE_E2E_TEST_ACCOUNT_REGEX)||e.match(cqe.CLAUDE_E2E_TEST_ACCOUNT_REGEX)||e.match(cqe.ENTERPRISE_E2E_TEST_ACCOUNT_REGEX);function uqe({children:s,instant:n=!1,speedMultiplier:a=1,onComplete:i,className:r}){const o=e.useMemo(()=>function(e){const t=[];let s=!1,n=0;for(;n<e.length;){if("*"===e[n]&&"*"===e[n+1]){s=!s,n+=2;continue}const a=n;for(;n<e.length&&!/\s/.test(e[n])&&("*"!==e[n]||"*"!==e[n+1]);)n++;const i=e.slice(a,n),r=n;for(;n<e.length&&/\s/.test(e[n]);)n++;const o=e.slice(r,n);i?t.push({text:i,isBold:s,trailingSpace:o}):o&&t.length>0&&(t[t.length-1].trailingSpace+=o)}return t}(s),[s]),l=e.useMemo(()=>n?o.map(()=>0):function(e){const t=[];let s=0;for(let n=0;n<e;n++){t.push(s);const a=e-n;s+=Math.max(50,150/Math.max(1,a/2))}return t}(o.length).map(e=>Math.round(e/Math.max(1,a))),[o,n,a]),c=n?0:(l[l.length-1]??0)+Math.round(400/Math.max(1,a)),d=e.useRef(!1);return e.useEffect(()=>{if(d.current)return;const e=setTimeout(()=>{d.current=!0,i?.()},c);return()=>clearTimeout(e)},[c,i]),t.jsxs("p",{className:dt("fade-in-text [text-wrap:pretty]",r),children:[t.jsx("style",{children:mqe}),o.map((e,s)=>t.jsxs("span",{className:dt("fade-in-text__word",e.isBold&&"font-semibold",n&&"fade-in-text__word--instant"),style:{animationDelay:`${l[s]}ms`},children:[e.text,e.trailingSpace]},s))]})}const mqe="\n  @keyframes fadeInTextReveal {\n    from { opacity: 0; }\n    to { opacity: 1; }\n  }\n  .fade-in-text__word {\n    opacity: 0;\n    animation: fadeInTextReveal 400ms ease-out forwards;\n    will-change: opacity;\n  }\n  .fade-in-text__word--instant {\n    opacity: 1;\n    animation: none;\n  }\n";function pqe({variant:s,fallback:n}){const a=JS(),{account:i}=v(),r=s??"off",o=i?.display_name,l=!!dqe(i?.email_address??""),c=o?a.formatMessage({defaultMessage:"Welcome, {name}! I\u2019m Claude.",description:"Onboarding first-chat: greeting with user name",id:"ex7Clidxsc"},{name:o}):a.formatMessage({defaultMessage:"Welcome! I\u2019m Claude.",description:"Onboarding first-chat: fallback greeting when user name is unavailable",id:"G1lCCCnQ7Z"}),d=a.formatMessage({defaultMessage:"Bring me anything\u2014a tough problem, a half-formed idea, something you need to write. We\u2019ll figure it out together.",description:"Onboarding first-chat: intro paragraph",id:"xUS/qYZOWh"}),u=a.formatMessage({defaultMessage:"Where do you want to start?",description:"Onboarding first-chat: paragraph introducing the prompt chips",id:"Ej5f9tjtu2"}),[m,p]=e.useState(l),[f,g]=e.useState(l),[h,C]=e.useState(l),[x,y]=e.useState(l),b=x?"static":"writing",k=ae(),w=e.useRef(!1);return e.useEffect(()=>{w.current||"own_topic"!==r||(w.current=!0,k.track({event_key:"claudeai.onboarding_first_chat.shown",variant:r}))},[k,r]),"own_topic"!==r?t.jsx(t.Fragment,{children:n}):t.jsxs("div",{className:"flex-1 flex flex-col px-4 max-w-3xl mx-auto w-full pt-4",children:[t.jsxs("div",{className:"px-4",children:[t.jsx(uqe,{instant:l,onComplete:()=>p(!0),className:"font-ui-serif font-light text-text-000 text-2xl leading-[1.7]",children:c}),t.jsxs("div",{className:"mt-1.5 flex flex-col gap-3 font-ui-serif text-text-100 text-base leading-[1.7]",children:[m&&t.jsx(uqe,{instant:l,onComplete:()=>g(!0),children:d}),f&&t.jsx(uqe,{instant:l,onComplete:()=>C(!0),children:u})]})]}),t.jsxs("div",{className:"mt-5",children:[h&&!x&&t.jsx(sA.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:0},onAnimationComplete:()=>y(!0)}),t.jsx("div",{className:"mt-5 pl-4","aria-hidden":"true",children:t.jsx(H9,{state:b,isInteractive:!1})})]})]})}function fqe({variant:e}){const{account:s}=v(),n=s?.display_name;return"own_topic"!==(e??"off")?null:t.jsx("div",{className:"mb-6",children:t.jsxs("div",{className:"px-4",children:[t.jsx("h1",{className:"font-ui-serif font-light text-text-000 text-2xl leading-[1.7]",children:n?t.jsx(XS,{defaultMessage:"Welcome, {name}! I\u2019m Claude.",description:"Onboarding first-chat: greeting with user name",id:"ex7Clidxsc",values:{name:n}}):t.jsx(XS,{defaultMessage:"Welcome! I\u2019m Claude.",description:"Onboarding first-chat: fallback greeting when user name is unavailable",id:"G1lCCCnQ7Z"})}),t.jsxs("div",{className:"mt-1.5 flex flex-col gap-3 font-ui-serif text-text-100 text-base leading-[1.7]",children:[t.jsx("p",{children:t.jsx(XS,{defaultMessage:"Bring me anything\u2014a tough problem, a half-formed idea, something you need to write. We\u2019ll figure it out together.",description:"Onboarding first-chat: intro paragraph",id:"xUS/qYZOWh"})}),t.jsx("p",{children:t.jsx(XS,{defaultMessage:"Where do you want to start?",description:"Onboarding first-chat: paragraph introducing the prompt chips",id:"Ej5f9tjtu2"})})]})]})})}const gqe="claude-ai:onboarding-chat-uuids",hqe="claude-ai:onboarding-chat-completed-uuids";function Cqe(){if("undefined"==typeof window)return{};try{const e=window.localStorage.getItem(gqe);if(!e)return{};const t=JSON.parse(e);return Array.isArray(t)?Object.fromEntries(t.map(e=>[e,null])):t&&"object"==typeof t?t:{}}catch{return{}}}function xqe(e,t){if("undefined"!=typeof window)try{const s=Cqe();s[e]=t,window.localStorage.setItem(gqe,JSON.stringify(s))}catch{}}function vqe(e){if("undefined"==typeof window)return new Set;try{const t=window.localStorage.getItem(e);if(!t)return new Set;const s=JSON.parse(t);return Array.isArray(s)?new Set(s):new Set}catch{return new Set}}function yqe(e){!function(e,t){if("undefined"!=typeof window)try{const s=vqe(e);s.add(t),window.localStorage.setItem(e,JSON.stringify([...s]))}catch{}}(hqe,e)}function bqe(){const e=dp(e=>e.filledSlots.size)/ZM,s=.7+(1.6-.7)*Math.min(1,e);return t.jsx("div",{"aria-hidden":!0,className:"pointer-events-none fixed inset-0 isolate overflow-hidden",children:t.jsx("div",{className:"absolute -bottom-[35%] left-1/2 h-[900px] w-[min(1400px,130%)] -translate-x-1/2 blur-lg transition-[scale] duration-700 ease-out",style:{background:"radial-gradient(ellipse at center, rgba(217,119,87,0.18) 0%, rgba(227,218,204,0.32) 24%, rgba(250,249,245,0) 62%)",scale:String(s)}})})}const kqe="Gmail";function wqe({mode:s="initial"}={}){const n=JS(),a=dp(e=>e.onSend),i=BM(),{copyToClipboard:r,didCopy:o}=xN(),[l,c]=e.useState(!1),d=kp(),{directoryServer:u,isInstalled:m,isConnected:p,isConnecting:f,isDisabled:g,hipaaModalOpen:h,connect:C,closeHipaaModal:x,continueHipaaModal:y}=function({pathname:t,queryString:s}){const{activeOrganization:n}=v(),{track:a}=ae(),i=et({source:tt.GmailSuggestionConnect,pathname:t,queryString:s}),{isHipaaRegulated:r,createAttestation:o}=sR(),[l,c]=e.useState(null),[d,u]=e.useState(!1),m=e.useRef(void 0),p=$x(He.GMAIL),f=!!p,g=!0===p?.isConnected,{servers:h}=Be(),C=e.useMemo(()=>{const e=h.find(e=>e.name===kqe);return e&&"remote"===e.type?e:null},[h]),{mutate:x,isPending:y}=We(n?.uuid??"",{onSuccess:e=>{m.current||i({uuid:e.uuid,url:e.url}),m.current=void 0,c(null)},onError:()=>{m.current=void 0,c(null)}},{source:"directory"}),b=e.useCallback(e=>{C?.url&&!C.requiresInstallForm?(m.current=C.isAuthless,x({name:C.name,url:C.url,attestations:e,mcp_directory_server_uuid:C.uuid})):c(null)},[C,x]),k=e.useCallback(()=>{if(n?.uuid){if(a({event_key:"claudeai.mcp.registry.suggestion.connect_clicked",connector_uuid:C?.uuid,installed_uuid:p?.uuid,connector_name:kqe,was_installed:f,was_connected:g,had_auth_error:!1,auth_status:void 0,session_id:void 0}),c(C?.uuid??kqe),p)return C?.isAuthless||i({uuid:p.uuid,url:p.url}),void c(null);r?u(!0):b([])}},[n?.uuid,C,i,p,g,r,f,b,a]),w=e.useCallback(()=>{u(!1),b(o("directory"))},[o,b]),M=e.useCallback(()=>{u(!1),c(null)},[]),_=l===(C?.uuid??kqe);return{directoryServer:C,isInstalled:f,isConnected:g,isConnecting:_,isDisabled:_||y,hipaaModalOpen:d,connect:k,closeHipaaModal:M,continueHipaaModal:w}}({pathname:`${window.location.origin}${d}`,queryString:`${qM}=gmail`}),b=m&&p,k=e.useCallback(()=>{b?a?.(n.formatMessage({defaultMessage:"My Gmail is already connected",id:"c9NQ1HKECA"})):C()},[b,a,n,C]),w=e.useCallback(()=>{i&&r(i)},[i,r]),M="initial"===s||!b;return t.jsxs("div",{className:"more"===s?"flex w-full flex-col gap-3 font-base":"my-4 flex w-full flex-col gap-3 font-base",children:[l?t.jsxs("div",{className:"rounded-2xl border border-border-300 p-4",children:[t.jsx("div",{className:"mb-2 text-sm text-text-300",children:t.jsx(XS,{defaultMessage:"Send this to your other assistant, then paste what it gives you in the chat below.",id:"vHkY8PnlKn"})}),t.jsxs("div",{className:"relative",children:[t.jsx("pre",{className:"max-h-40 overflow-y-auto whitespace-pre-wrap rounded-xl bg-bg-200 p-3 pr-24 font-mono text-xs text-text-100",children:i}),t.jsx("button",{type:"button",onClick:w,disabled:!i,className:"absolute right-2 top-2 rounded-lg border border-border-300 bg-bg-000 px-3 py-1.5 text-sm font-medium text-text-100 transition-colors hover:bg-bg-100 disabled:opacity-50",children:o?t.jsx(XS,{defaultMessage:"Copied",id:"p556q3uvbn"}):t.jsx(XS,{defaultMessage:"Copy",id:"4l6vz1/eZ5"})})]})]}):t.jsxs("button",{type:"button",onClick:()=>c(!0),className:"relative flex w-full items-center justify-center gap-3 rounded-full border border-border-200 bg-bg-000 px-12 py-2.5 text-base font-medium text-text-000 shadow-sm transition-colors hover:bg-bg-200",children:[t.jsx(Ot,{size:16}),t.jsx(XS,{defaultMessage:"Import memory from other AI tool providers",id:"YA40dw3pEX"})]}),M&&t.jsxs("button",{type:"button",onClick:k,disabled:!b&&g,className:"relative flex w-full items-center justify-center gap-3 rounded-full border border-border-200 bg-bg-000 px-12 py-2.5 text-base font-medium text-text-000 shadow-sm transition-colors hover:bg-bg-200 disabled:opacity-50",children:[t.jsx(cb,{size:20}),t.jsx("span",{children:b?t.jsx(XS,{defaultMessage:"Use Gmail",id:"aBXL6/1+6R"}):f?t.jsx(XS,{defaultMessage:"Connecting...",id:"5y2qWOlFVf"}):t.jsx(XS,{defaultMessage:"Connect Gmail",id:"8cH+GiRhJS"})})]}),t.jsx(nR,{isOpen:h,onClose:x,onContinue:y,serverName:u?.name||"Gmail",connectorType:"directory"})]})}function Mqe({hasMessages:s}){const n=JS(),{account:a}=v(),i=a?.display_name,r=s||!!dqe(a?.email_address??""),o=i?n.formatMessage({defaultMessage:"Hey {name}, I\u2019m Claude.",id:"n095SPEUL+"},{name:i}):n.formatMessage({defaultMessage:"Hey, I\u2019m Claude.",id:"NjvrSeeka8"}),l=n.formatMessage({defaultMessage:"I can help with pretty much anything\u2014work, projects, figuring stuff out\u2014but I\u2019m a lot more useful once I know what you\u2019ve got going on. Give me a couple minutes and I\u2019ll make this feel like yours:",id:"2cj4Og2Jq7"}),c=n.formatMessage({defaultMessage:"I\u2019ll **remember what matters**\u2014your work, how you communicate, what you care about.",id:"BCkbqDNgmw"}),d=n.formatMessage({defaultMessage:"I\u2019ll **suggest starting points** that fit you, so you\u2019re not staring at a blank page.",id:"obhoLqPiUC"}),u=n.formatMessage({defaultMessage:"Pick whichever\u2019s easiest:",id:"3HmANJmoHG"}),[m,p]=e.useState(r),[f,g]=e.useState(r),[h,C]=e.useState(r),[x,y]=e.useState(r),[b,k]=e.useState(r);return t.jsxs("div",{className:"w-full max-w-xl pb-6 pt-8 font-base",children:[t.jsx(uqe,{instant:r,speedMultiplier:2,onComplete:()=>p(!0),className:"font-ui-serif text-2xl text-text-000",children:o}),t.jsxs("div",{className:"mt-3 flex flex-col gap-3 text-base leading-[1.7] text-text-200",children:[m&&t.jsx(uqe,{instant:r,speedMultiplier:2,onComplete:()=>g(!0),children:l}),f&&t.jsxs("ul",{className:"list-disc space-y-1 pl-5",children:[t.jsx("li",{children:t.jsx(uqe,{instant:r,speedMultiplier:2,onComplete:()=>C(!0),children:c})}),h&&t.jsx("li",{children:t.jsx(uqe,{instant:r,speedMultiplier:2,onComplete:()=>y(!0),children:d})})]}),x&&t.jsx(uqe,{instant:r,speedMultiplier:2,onComplete:()=>k(!0),children:u})]}),b&&t.jsx(wqe,{})]})}const _qe=2*Math.PI*7,jqe={name:t.jsx(XS,{defaultMessage:"Name",id:"HAlOn1ZsuY"}),role:t.jsx(XS,{defaultMessage:"Role",id:"1ZgrhWrHJx"}),"current focus":t.jsx(XS,{defaultMessage:"Current focus",id:"eQ4RBQqrIR"}),tools:t.jsx(XS,{defaultMessage:"Tools",id:"nUT0LvZVOx"})};function Sqe({ratio:e}){return t.jsxs("svg",{viewBox:"0 0 18 18",width:18,height:18,"aria-hidden":!0,className:"-rotate-90",children:[t.jsx("circle",{cx:9,cy:9,r:7,fill:"none",strokeWidth:2,className:"stroke-border-300"}),t.jsx("circle",{cx:9,cy:9,r:7,fill:"none",strokeWidth:2,strokeLinecap:"round",strokeDasharray:_qe,strokeDashoffset:_qe*(1-e),className:"stroke-accent-brand transition-[stroke-dashoffset] duration-300"})]})}function Lqe(){const e=JS(),s=dp(e=>e.filledSlots),n=s.size,a=Math.min(1,n/ZM);return t.jsxs(WM,{side:"bottom",align:"end",sideOffset:8,closeButton:"none",className:"w-64 rounded-2xl border border-border-300 bg-bg-000 p-4 shadow-lg",trigger:t.jsxs("button",{type:"button","aria-label":e.formatMessage({defaultMessage:"Setup progress: {filledCount} of {total}",id:"FHWOyGntK9"},{filledCount:n,total:ZM}),className:"inline-flex items-center gap-2 whitespace-nowrap rounded-[10px] border-0.5 border-border-200 bg-bg-000 px-3 py-[7px] text-[13px] tabular-nums text-text-100 shadow-sm transition-colors hover:bg-bg-100",children:[t.jsx(XS,{defaultMessage:"{filledCount}/{total}",id:"iq5NEmPs1D",values:{filledCount:n,total:ZM}}),t.jsx(Sqe,{ratio:a})]}),children:[t.jsx("div",{className:"mb-3 text-xs font-medium uppercase tracking-wide text-text-300",children:t.jsx(XS,{defaultMessage:"What we\u2019ll cover",id:"ertolTvVUe"})}),t.jsx("ul",{className:"flex flex-col gap-2",children:$M.map(e=>{const n=s.has(e.key);return t.jsxs("li",{className:"flex items-center gap-2 text-sm text-text-200",children:[t.jsx("span",{className:n?"flex h-4 w-4 items-center justify-center rounded-full bg-accent-brand text-oncolor-100":"h-4 w-4 rounded-full border border-border-300",children:n&&t.jsx(Hu,{size:12})}),t.jsx("span",{className:n?"text-text-100":"",children:jqe[e.key]})]},e.key)})})]})}const Nqe="inline-flex items-center gap-1.5 whitespace-nowrap rounded-[10px] border-0.5 border-border-200 bg-bg-000 px-3 py-[7px] text-[13px] text-text-100 shadow-sm transition-colors hover:bg-bg-100 disabled:opacity-50";function Iqe({onSkip:e,onContinue:s,isStreaming:n}){const a=dp(e=>e.filledSlots.size>0);return t.jsx("div",{className:"sticky top-0 z-10 mb-2 ml-[calc(50%-50vw)] flex w-screen items-center justify-end gap-3 bg-gradient-to-b from-bg-100 from-60% to-transparent px-6 pb-7 pt-3 font-base",children:t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(Lqe,{}),a?t.jsxs("button",{type:"button",onClick:s,disabled:n,className:Nqe,children:[t.jsx(XS,{defaultMessage:"Continue with this",id:"oaZvkOxsuB"}),t.jsx(zP,{size:14})]}):t.jsxs("button",{type:"button",onClick:e,className:Nqe,children:[t.jsx(kD,{size:14}),t.jsx(XS,{defaultMessage:"Set up later",id:"FL57RrzbdF"})]})]})})}function Tqe(t,s,n,a,i){const r=e.useRef({setContent:e=>{}});e.useEffect(()=>{r.current.setContent=i},[i]);const o=e.useRef(0),l=e.useCallback(()=>t.current?.getCursorOffset?.()??a().length,[t,a]),c=e.useCallback((e,s,n)=>{o.current=e.length+s.length,t.current?.setContentWithDictation?t.current.setContentWithDictation(e,s,n):i(e+s+n)},[t,i]);ZAe({transcript:n,isActive:s,setPrompt:i,getPrompt:a,getPromptUnsafe:()=>!1,promptInputRef:r,autoCommit:!1,getCursorOffset:l,onDictationContentUpdate:c});const d=e.useRef(!1);e.useEffect(()=>{if(d.current&&!s){const e=t.current?.getEditor?.();if(e){e.chain().selectAll().unsetMark("dictation").run();const t=o.current;if(t>0){const s=e.state.doc.textBetween(0,e.state.doc.content.size,"\n"),n=JI(s,t,e.state.doc.content.size);e.commands.focus(n)}else e.commands.focus()}else t.current?.focus()}d.current=s},[s,t])}function Aqe({files:e,onRemove:s,onPreview:n}){const a=JS();return 0===e.length?null:t.jsx("div",{className:"flex gap-2 flex-wrap px-3 pt-3 pb-0",children:e.map(e=>t.jsxs("div",{className:"inline-flex min-w-0 items-center gap-1.5 rounded-md border-0.5 text-xs text-secondary max-w-[200px] shadow-sm shadow-always-black/5 pl-0.5 pr-1.5 py-0.5",children:[e.localPreviewUrl&&t.jsx("button",{type:"button",onClick:t=>n(e.localPreviewUrl,t.currentTarget.querySelector("img")),className:"cursor-pointer","aria-label":a.formatMessage({defaultMessage:"Preview image",id:"c4WpIc2vhK"}),children:t.jsx("img",{src:e.localPreviewUrl,alt:"",className:"w-5 h-5 rounded-[4px] object-cover"})}),t.jsx("span",{className:"truncate",children:e.fileName}),"uploading"===e.status&&t.jsx("div",{role:"status","aria-label":a.formatMessage({defaultMessage:"Uploading",id:"hsYvDX9WwB"}),className:"w-3 h-3 border-2 border-strong border-t-transparent rounded-full animate-spin shrink-0"}),"error"===e.status&&t.jsx("span",{className:"text-xs text-danger shrink-0",children:t.jsx(XS,{defaultMessage:"!",id:"ODGmphVeUJ"})}),t.jsx("button",{type:"button",onClick:()=>s(e.id),className:"text-muted hover:text-secondary cursor-pointer shrink-0","aria-label":a.formatMessage({defaultMessage:"Remove file",id:"hgAzMVK+jq"}),children:t.jsx($L,{name:"X",size:"xs"})})]},e.id))})}const Eqe="_march_3d60t_10",Rqe={type:"spring",stiffness:500,damping:30,mass:.7},Dqe=32,Hqe=1.5;function Pqe({running:e,hasContent:s,isQueuedForSubmit:n,disabled:a,onSend:i,onStop:r}){const o=e&&s,l=!e||s;return t.jsxs(sA.div,{className:"relative flex items-center justify-end shrink-0 overflow-hidden",animate:{width:o?68:Dqe,gap:o?4:0},transition:Rqe,style:{height:Dqe,borderRadius:16},children:[t.jsx(nA,{children:o?t.jsx(sA.svg,{width:68,height:Dqe,viewBox:"0 0 68 32",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},className:"absolute inset-0 pointer-events-none text-muted","aria-hidden":"true",style:{zIndex:0},children:t.jsx("path",{d:"M 16 0.75 H 52 A 15.25 15.25 0 0 1 52 31.25 H 16 A 15.25 15.25 0 0 1 16 0.75 Z",pathLength:20,fill:"none",stroke:"currentColor",strokeWidth:Hqe,strokeLinecap:"round",strokeDasharray:"0.001 0.999",className:Eqe})},"stadium-ring"):null}),t.jsx(nA,{mode:"popLayout",children:e?t.jsx(Uqe,{grouped:o,onClick:r},"stop"):null}),t.jsx(nA,{mode:"popLayout",children:l?t.jsx(Oqe,{grouped:o,spinning:n,disabled:a||!s,onClick:i},"send"):null})]})}const Uqe=e.forwardRef(({grouped:e,onClick:s},n)=>{const a=JS();return t.jsxs(sA.button,{ref:n,type:"button",onClick:s,"aria-label":a.formatMessage({defaultMessage:"Stop response",id:"RANC4/S/j1"}),initial:{scale:.6,opacity:0},animate:{scale:1,opacity:1},exit:{scale:.6,opacity:0,transition:{duration:.12}},whileTap:{scale:.9},transition:Rqe,className:"cds-reset relative inline-flex items-center justify-center shrink-0 border-0 bg-transparent p-0 cursor-pointer text-muted hover:text-secondary focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-fill-accent",style:{width:Dqe,height:Dqe,borderRadius:16},children:[t.jsx(nA,{children:e?null:t.jsx(sA.svg,{width:Dqe,height:Dqe,viewBox:"0 0 32 32",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0,transition:{duration:.15}},transition:{duration:.2},className:"absolute pointer-events-none","aria-hidden":"true",style:{top:0,left:"50%",marginLeft:-16},children:t.jsx("circle",{cx:16,cy:16,r:15.25,pathLength:12,fill:"none",stroke:"currentColor",strokeWidth:Hqe,strokeLinecap:"round",strokeDasharray:"0.001 0.999",className:Eqe})},"circle-ring")}),t.jsx($L,{name:"Stop",customSize:14,className:"relative"})]})});Uqe.displayName="StopButton";const Oqe=e.forwardRef(({grouped:e,spinning:s,disabled:n,onClick:a},i)=>{const r=JS();return t.jsx(sA.button,{ref:i,type:"button",onClick:a,disabled:n,"aria-label":r.formatMessage({defaultMessage:"Send message",id:"Xx0WZVz8QS"}),initial:{scale:.6,opacity:0},animate:{scale:1,opacity:1},exit:{scale:.6,opacity:0,transition:{duration:.12}},whileTap:n?void 0:{scale:.9},transition:Rqe,className:"cds-reset relative inline-flex items-center justify-center shrink-0 border-0 p-0 cursor-pointer bg-fill-brand hover:bg-fill-brand-hover text-on-brand transition-colors disabled:cursor-not-allowed disabled:bg-alpha-2 disabled:text-muted disabled:hover:bg-alpha-2 focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-fill-accent",style:{width:Dqe,height:Dqe,borderRadius:"50%",zIndex:e?1:"auto"},children:s?t.jsx("div",{role:"status","aria-label":r.formatMessage({defaultMessage:"Waiting for uploads",id:"WHek7gAb9Y"}),className:"w-4 h-4 border-2 border-current border-t-transparent rounded-full animate-spin"}):t.jsx($L,{name:"ArrowUp",size:"sm"})})});Oqe.displayName="SendButton";function Fqe(e){return`composer-draft:${e}`}function Vqe(e){try{localStorage.removeItem(Fqe(e))}catch{}}function zqe(){return`${Date.now()}-${Math.random().toString(36).slice(2)}`}function Zqe({onSubmit:t,uploadFile:s,draftKey:n,disabled:a=!1,placeholder:i="Send a message..."}){const[r,o]=le(()=>n?localStorage.getItem(Fqe(n))??"":"",""),[l,c]=e.useState([]),[d,u]=e.useState(!1),[m,p]=e.useState(!1),[f,g]=e.useState(null),h=e.useRef("");f&&(h.current=f);const C=e.useRef(null),x=e.useRef(null),v=e.useRef(null),y=e.useRef(r);y.current=r;const b=e.useRef(n);b.current=n;const k=e.useCallback(e=>{o(e),n&&(v.current&&clearTimeout(v.current),v.current=setTimeout(()=>{v.current=null;try{e?localStorage.setItem(Fqe(n),e):localStorage.removeItem(Fqe(n))}catch{}},400))},[n,o]),w=e.useRef(l);w.current=l,e.useEffect(()=>()=>{if(v.current){clearTimeout(v.current),v.current=null;const e=b.current,t=y.current;if(e)try{t?localStorage.setItem(Fqe(e),t):localStorage.removeItem(Fqe(e))}catch{}}for(const e of w.current)e.localPreviewUrl&&URL.revokeObjectURL(e.localPreviewUrl)},[]);const M=l.some(e=>"uploading"===e.status),_=l.some(e=>"error"===e.status),j=r.trim().length>0||l.some(e=>"done"===e.status),S=e.useCallback(e=>{if(s)for(const t of e){const e=zqe(),n=t.type.startsWith("image/")?URL.createObjectURL(t):void 0;c(s=>[...s,{id:e,fileName:t.name,status:"uploading",localPreviewUrl:n}]),s(t).then(t=>{c(s=>s.map(s=>s.id===e?{...t,id:e,localPreviewUrl:n}:s))},()=>{c(t=>t.map(t=>t.id===e?{...t,status:"error"}:t))})}},[s]),L=e.useCallback(e=>{S(e)},[S]),N=e.useCallback(e=>{p(!1),c(t=>{const s=t.find(t=>t.id===e);return s?.localPreviewUrl&&URL.revokeObjectURL(s.localPreviewUrl),t.filter(t=>t.id!==e)})},[]),I=e.useCallback(async()=>{if(d||a)return;const e=r.trim(),s=l.filter(e=>"done"===e.status);if(e||0!==l.length){if(M)p(!0);else if(p(!1),e||0!==s.length){if(o(""),c([]),g(null),v.current&&(clearTimeout(v.current),v.current=null),n)try{localStorage.removeItem(Fqe(n))}catch{}u(!0);try{await t(e||" ",s)}catch{return o(t=>{const s=t||e;if(n&&s)try{localStorage.setItem(Fqe(n),s)}catch{}return s}),void c(e=>[...s,...e])}finally{u(!1),requestAnimationFrame(()=>C.current?.focus())}for(const e of l)e.localPreviewUrl&&URL.revokeObjectURL(e.localPreviewUrl)}}else p(!1)},[r,n,l,M,d,a,t,o]),T=e.useCallback(e=>{"Enter"!==e.key||e.shiftKey||e.nativeEvent.isComposing||(e.preventDefault(),I())},[I]),A=e.useRef(I);A.current=I,e.useEffect(()=>{m&&(_?p(!1):M||A.current())},[m,M,_]);const E=e.useCallback(e=>{if(!s)return;const{clipboardData:t}=e;if(!t?.files?.length)return;const n=function(e){return Array.from(e.files).filter(e=>e.type.startsWith("image/"))}(t);if(0!==n.length){if(function(e){if(!e.types.includes("text/plain")||!e.types.includes("text/html"))return!1;const t=e.getData("text/html");return t.includes("urn:schemas-microsoft-com:office:")||t.includes("content=Word.Document")||t.includes("content=PowerPoint.Slide")||t.includes("content=Excel.Sheet")||t.includes(' class="Mso')}(t)){if(t.getData("text/plain"))return}e.preventDefault(),S(n)}},[s,S]),R=e.useCallback(e=>{k(e.target.value)},[k]),D=e.useCallback(e=>{const t=e.target.files;t?.length&&(S(Array.from(t)),e.target.value="")},[S]),H=e.useCallback(()=>{x.current?.click()},[]),P=e.useCallback(()=>{p(!1)},[]),U=e.useMemo(()=>({ref:x,type:"file",multiple:!0,className:"sr-only",onChange:D}),[D]);return{content:r,setContent:k,files:l,isUploading:M,isSending:d,hasContent:j,handleSubmit:I,handleAddFiles:L,handleRemoveFile:N,handlePaste:E,handleInput:R,handleKeyDown:T,isQueuedForSubmit:m,cancelQueuedSubmit:P,textareaRef:C,openFilePicker:H,fileInputProps:U,previewUrl:f,setPreviewUrl:g,lastPreviewUrl:h.current,disabled:a,placeholder:i,uploadsEnabled:!!s}}const Bqe="380ms cubic-bezier(0.34, 1.3, 0.64, 1)",qqe="280ms cubic-bezier(0.32, 0.72, 0, 1)",Wqe={area:"cowork",input:"session"},$qe=e.forwardRef(function({onSubmit:s,placeholder:n,disabled:a,uploadFile:i,banner:r,draftKey:o,onStop:l,dictationSurface:c},d){const u=JS(),m=!!l,p=m?72:36,f=i?44:16,g=f-16,h=p+8-16,C=g+h,x=Zqe({onSubmit:s,uploadFile:i,draftKey:o,disabled:a,placeholder:n??u.formatMessage({defaultMessage:"Send a message...",id:"o3I9sfil/N"})}),{content:v,setContent:y,files:b,isUploading:k,isSending:w,hasContent:M,handleSubmit:_,handleRemoveFile:j,handlePaste:S,handleInput:L,textareaRef:N,openFilePicker:I,fileInputProps:T,handleAddFiles:A,isQueuedForSubmit:E,cancelQueuedSubmit:R,previewUrl:D,setPreviewUrl:H,lastPreviewUrl:P}=x;e.useImperativeHandle(d,()=>({setText:y,textarea:N.current}),[y,N]);const U=e.useRef(null),O=e.useCallback((e,t)=>{U.current=t,H(e)},[H]),{showDictationButton:F,isDictationRecording:V,dictationTranscript:z,dictationOwnerId:Z,handleStartDictation:B,handleStopDictation:q,handleSwitchDictationDevice:W}=zAe({isBusy:m||!!a||!c||w||E,surface:c??Wqe});Tqe(N,V,z,e.useCallback(()=>N.current?.value??"",[N]),y);const $=e.useRef(""),G=e.useCallback(()=>{const e=v.trim(),t=b.some(e=>"error"!==e.status);(e||t)&&($.current=e?v:""),_()},[v,b,_]),K=e.useCallback(()=>{R();const e=$.current,t=!!e&&!M;t&&(y(e),$.current=""),l?.(),requestAnimationFrame(()=>{const e=N.current;if(e&&(e.focus(),t)){const t=e.value.length;e.setSelectionRange(t,t)}})},[R,M,l,y,N]),Y=e.useCallback(e=>{"Enter"!==e.key||e.shiftKey||e.nativeEvent.isComposing||(e.preventDefault(),G())},[G]),{height:Q,isMultiline:J}=function(t,s,n){const[a,i]=e.useState(20),[r,o]=e.useState(!1);return e.useLayoutEffect(()=>{const e=t.current;if(!e)return;let s;if(e.style.overflow="hidden",n){const t=e.style.width;e.style.width=e.offsetWidth-n+"px",e.style.height="auto",s=e.scrollHeight,e.style.width=t}else e.style.height="auto",s=e.scrollHeight;const a=Math.min(e.scrollHeight,200);e.style.height=`${a}px`,e.style.overflow=a>=200?"auto":"hidden",i(a),o(s>28)},[t,s,n]),{height:a,isMultiline:r}}(N,v,C),X=x.disabled||w||E,ee=e.useRef(v);ee.current=v,GM(e=>{if(X)return;const t=ee.current+e;ee.current=t,y(t),requestAnimationFrame(()=>{const e=N.current;e&&(e.focus(),e.setSelectionRange(t.length,t.length))})});const{isDragOver:te,dropZoneProps:se}=function({onFiles:t,enabled:s}){const[n,a]=e.useState(!1),i=e.useRef(0);return{isDragOver:n,dropZoneProps:{onDragEnter:e.useCallback(e=>{s&&e.dataTransfer.types.includes("Files")&&(e.preventDefault(),0===i.current&&a(!0),i.current+=1)},[s]),onDragOver:e.useCallback(e=>{s&&e.dataTransfer.types.includes("Files")&&(e.preventDefault(),e.dataTransfer.dropEffect="copy")},[s]),onDragLeave:e.useCallback(e=>{e.dataTransfer.types.includes("Files")&&(e.preventDefault(),i.current-=1,i.current<=0&&(i.current=0,a(!1)))},[]),onDrop:e.useCallback(e=>{if(!e.dataTransfer.types.includes("Files"))return;if(e.preventDefault(),i.current=0,a(!1),!s)return;const n=Array.from(e.dataTransfer.files);n.length>0&&t(n)},[s,t])}}}({onFiles:A,enabled:!!i&&!X}),ne=!!r||J||b.length>0||te,ae=ne?Bqe:qqe,{clickToFocusProps:ie}=WS(e.useCallback(()=>{const e=N.current;e&&(e.focus(),e.setSelectionRange(e.selectionStart,e.selectionEnd))},[N])),re=J?12+Q+8+32+8:48,oe=J?16:f,le=J?16:p+8,ce=J?0:-g,de=J?0:-h,ue=J?0:g,me=J?0:6;return t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"px-3 pb-3 shrink-0",...se,children:t.jsxs("div",{...ie,className:"overflow-hidden border-0.5 shadow-sm "+(te?"border-accent bg-alpha-1 cursor-default":X?"cursor-default bg-surface-3 text-disabled "+(r?"bg-[linear-gradient(var(--cds-alpha-1),var(--cds-alpha-1))]":""):"cursor-text hover:border-strong focus-within:border-strong focus-within:shadow-md bg-surface-3 "+(r?"bg-[linear-gradient(var(--cds-alpha-1),var(--cds-alpha-1))]":"")),style:{borderRadius:24,transition:`border-radius ${ae}, border-color 200ms, box-shadow 200ms`},children:[r,t.jsx(Gqe,{files:b,onRemove:j,onPreview:O,spring:ae}),t.jsxs("div",{className:"relative bg-surface-3 "+(r?"rounded-xl":""),style:{height:re,transition:`height ${ae}`},children:[t.jsx("div",{className:"absolute overflow-hidden",style:{top:J?12:8,bottom:0,left:oe,right:le,transition:`top ${ae}, left ${ae}, right ${ae}`},children:t.jsx("textarea",{ref:N,value:v,onChange:L,onKeyDown:Y,onPaste:S,disabled:X,placeholder:x.placeholder,className:"absolute hide-focus-ring resize-none bg-transparent text-sm outline-none","aria-label":u.formatMessage({defaultMessage:"Message",id:"T7Ry38Q973"}),rows:1,style:{top:0,left:ce,right:de,maxHeight:200,transform:`translate(${ue}px, ${me}px)`,transition:`left ${ae}, right ${ae}, transform ${ae}`}})}),i&&t.jsxs(t.Fragment,{children:[t.jsx("input",{...T}),t.jsx("div",{className:"absolute",style:{left:8,bottom:8},children:t.jsx(rN,{variant:"ghost",iconOnly:!0,icon:"Add",className:"!rounded-full focus-visible:!shadow-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-fill-accent",onClick:I,disabled:X,"aria-label":u.formatMessage({defaultMessage:"Attach file",id:"Hdtjhh1YnJ"})})})]}),t.jsx("div",{className:"!absolute",style:{right:8,bottom:8},children:F?t.jsx(mRe,{onStart:B,onStop:q,onSwitchDevice:W,ownerId:Z}):t.jsx(Pqe,{running:m,hasContent:M||k,isQueuedForSubmit:E,disabled:X,onSend:G,onStop:K})})]})]})}),t.jsx(WB,{src:P,alt:u.formatMessage({defaultMessage:"Full size preview",id:"8/h2Ko8rmK"}),isOpen:!!D,originRef:U,onClose:()=>H(null)})]})});function Gqe({files:s,onRemove:n,onPreview:a,spring:i}){const r=e.useRef(null),[o,l]=e.useState(0),[c,d]=e.useState(s);return e.useLayoutEffect(()=>{if(!(s.length>0)){const e=requestAnimationFrame(()=>d([]));return()=>cancelAnimationFrame(e)}d(s)},[s]),e.useLayoutEffect(()=>{const e=r.current;e&&l(e.getBoundingClientRect().height)},[c]),t.jsx("div",{className:"overflow-hidden",style:{height:s.length>0?o:0,transition:`height ${i}`},children:t.jsx("div",{ref:r,children:t.jsx(Aqe,{files:c,onRemove:n,onPreview:a})})})}const Kqe="_chip_ujorj_5",Yqe="_wrapCta_ujorj_27",Qqe=/\u2026|\.{3}/;function Jqe({placeholder:s,isStreaming:n,onSend:a,onStop:i,isWrapped:r,onContinue:o}){const l=dp(e=>e.quickReplies),c=dp(e=>e.setQuickReplies),d=dp(e=>e.requestReflectionEdit),u=dp(e=>e.reflectionEditing),m=e.useRef(null),p=e.useCallback(async e=>{const t=e.trim();t&&(c([]),a(t))},[a,c]),f=e.useCallback(e=>{const t=m.current;t&&(t.setText(e),requestAnimationFrame(()=>{const s=t.textarea;if(!s)return;s.focus();const n=Qqe.exec(e);n?s.setSelectionRange(n.index,n.index+n[0].length):s.setSelectionRange(e.length,e.length)}))},[]),g=l.length>0&&!n;return t.jsxs("div",{className:"sticky bottom-0 z-10 ml-[calc(50%-50vw)] w-screen px-5 pb-4 pt-3 [&_textarea]:text-base [&_textarea]:leading-5",children:[t.jsx("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-x-0 -top-16 bottom-0 -z-10 bg-gradient-to-t from-bg-100 via-bg-100 via-40% to-transparent"}),t.jsx("div",{className:"mx-auto flex max-w-[780px] flex-col gap-3",children:r?t.jsx("button",{type:"button",onClick:o,disabled:n,className:`mx-auto whitespace-nowrap rounded-full bg-text-000 px-8 py-3 text-base font-medium text-bg-000 transition-opacity hover:opacity-90 disabled:opacity-50 ${Yqe}`,children:t.jsx(XS,{defaultMessage:"Save my setup",id:"I/Wav5bdMN"})}):u?t.jsx("div",{className:"rounded-full border-0.5 border-border-200 bg-bg-100 px-6 py-3 text-center text-sm text-text-300",children:t.jsx(XS,{defaultMessage:"You're editing the note above \u2014 tap Done when you're finished.",id:"lx9AdwYQWp"})}):t.jsxs(t.Fragment,{children:[g&&t.jsx("div",{className:"flex flex-wrap gap-2 pl-3",children:l.map((e,s)=>t.jsx("button",{type:"button",onClick:()=>{"open_reflection_edit"!==e.action?f(e.prefill):d()},disabled:n,className:`rounded-full border-0.5 border-border-200 bg-bg-000 px-3 py-1.5 text-sm text-text-100 transition-colors hover:bg-bg-200 disabled:opacity-50 ${Kqe}`,style:{animationDelay:60*s+"ms"},children:e.label},e.label))}),t.jsx($qe,{ref:m,onSubmit:p,placeholder:s,disabled:n,onStop:n?i:void 0})]})})]})}async function Xqe(e){const t=aR(e.name),{default:s}=await a(async()=>{const{default:e}=await import("./cc36201d2-CCKkYCvx.js").then(e=>e.j);return{default:e}},[],import.meta.url),n=new s;n.file("SKILL.md",function(e,t){const s=(e.description??"").replace(/\n/g," ").trim(),n=(e.instructions??"").trim();return["---",`name: ${t}`,`description: ${JSON.stringify(s)}`,"---","",n,""].join("\n")}(e,t));const i=await n.generateAsync({type:"blob"});return new File([i],`${t}.skill`,{type:"application/zip"})}function eWe({conversationUuid:t,showOnboardingChat:s,storedOnboardingVariant:n,isLoading:a,send:i,applyPrefill:r}){const[o,l]=le(()=>{return!!(e=t)&&vqe(hqe).has(e);var e},!1),c=!1,d=dp(e=>e.setActive),u=dp(e=>e.setOnSend),m=dp(e=>e.reset),p=dp(e=>null!==e.wrap);e.useLayoutEffect(()=>{d(c)},[c,d,m]);const f=JS(),g=e.useCallback(e=>{i({prompt:e,attachments:[],files:[],syncSources:[],onboarding_chat_variant:"guided_setup"})},[i]);e.useEffect(()=>(u(null),()=>u(null)),[c,g,u]);const[h]=e.useState(()=>{if("undefined"==typeof window)return!1;const e=new URLSearchParams(window.location.search);return"gmail"===e.get(qM)&&"success"===e.get("step")});e.useEffect(()=>{const e=new URL(window.location.href);e.searchParams.has(qM)&&(e.searchParams.delete(qM),window.history.replaceState({},"",e))},[]);const C=$x(He.GMAIL),x=!!C&&!0===C.isConnected;e.useRef(!1),e.useEffect(()=>{},[c,a,h,x,g,f]);const v=e.useRef(null),y=function(){const t=JS(),{addSuccess:s,addError:n}=ut(),a=ka(),{mutateAsync:i}=Ag();return e.useCallback(()=>{if(!a)return;const{selectedStarterSkills:e}=dp.getState();0!==e.length&&(async()=>{let a=0,r=0;for(const t of e)if(t.instructions?.trim())try{const e=await Xqe(t),s=new FormData;s.append("file",e),await i(s),a+=1}catch(o){Sg(o)?a+=1:r+=1}a>0&&s(t.formatMessage({defaultMessage:"{count, plural, one {# skill installed} other {# skills installed}}",id:"1b0HQC3cs5"},{count:a})),r>0&&n(t.formatMessage({defaultMessage:"Couldn't install {count, plural, one {# skill} other {# skills}}. You can add them from Settings \u2192 Skills.",id:"gMEJZ8UIvr"},{count:r}))})()},[a,i,s,n,t])}(),b=function(){const t=JS(),{addError:s}=ut(),{isAvailable:n}=mt(),a=KM(),i=nn(),{mutateAsync:r}=YM(),{data:o}=pt(),{submitImport:l}=QM(),{data:c}=wB(),{mutate:d}=MB(),u=VE();return e.useCallback(()=>{const{memorySave:e,preferencesText:m}=dp.getState(),p=m?.trim();if(p&&!u){const e=c?.conversation_preferences?.trim();d({conversation_preferences:e?`${e}\n${p}`:p})}e?.selected&&e.blob&&(async()=>{if(!n)try{i?await r({enabled_melange:!0}):await a(!0)}catch{return void s(t.formatMessage({defaultMessage:"Couldn't turn on memory. You can enable it from Settings \u2192 Memory.",id:"YLcp+eluei"}))}l(e.blob,o?.controls??[],{source:"guided_setup_recommend"})})()},[n,a,i,r,l,o?.controls,c?.conversation_preferences,d,u,s,t])}(),k=hd(()=>{const{wrap:e}=dp.getState();v.current=e?.prefillPrompt??null,y(),b(),yqe(t),l(!0)});return e.useEffect(()=>{v.current&&(r(v.current),v.current=null)},[c,r]),e.useMemo(()=>({show:c,wrapped:p,send:g,complete:k}),[c,p,g,k])}let tWe=null;function sWe(e){tWe={payload:e,received:new Date}}function nWe({chatId:t,chatName:s,onSend:n,hasFirstMessage:a}){const{activeOrganization:i}=v(),r=M(),o=e.useRef(!1),l=Zb(),c=_t(),d=e.useCallback(e=>e.chatId===t&&(!o.current&&(!!i&&(o.current=!0,(async()=>{try{const s=[];if("images"in e)for(const n of e.images)try{s.push(...await iPe(n.base64,n.mimeType,i.uuid,r))}catch(t){}else if(e.imageBase64&&e.imageMimeType)try{s.push(...await iPe(e.imageBase64,e.imageMimeType,i.uuid,r))}catch(t){}return await n({prompt:e.text,files:s}),!0}catch(s){return!1}finally{o.current=!1}})(),!0))),[i,t,n,r]);return e.useEffect(()=>{if(!a)return;const e=tWe,s="1"===l.get("desktop_quick_entry");s&&c("desktop_quick_entry",null),e&&Date.now()-e.received.getTime()<=6e4&&e.payload.chatId&&e.payload.chatId===t&&s&&(tWe=null,setTimeout(()=>d(e.payload),1))},[a,t,d,l,c]),JM(XM.ChatInfo,{getCurrentChatInfo:()=>Promise.resolve({chatId:t,chatName:s}),sendToChatWithPayload:d},[t,s,i,r,n]),null}const aWe=e.memo(({isStreaming:s})=>{const n=JS(),a=e.useRef(null),i=e.useRef(!1);return e.useEffect(()=>{const e=a.current;e&&(s?(i.current=!0,e.textContent=n.formatMessage({defaultMessage:"Claude is responding",id:"/PbiT/Zx4c"})):i.current&&(e.textContent=n.formatMessage({defaultMessage:"Claude finished the response",id:"lsXtwu+DyQ"})))},[s,n]),t.jsx("div",{ref:a,role:"status",className:"sr-only"})});aWe.displayName="ResponseStatusAnnouncer";const iWe=e.forwardRef((e,s)=>t.jsx("div",{ref:s,"aria-hidden":"true",className:"h-px w-full pointer-events-none"}));function rWe({autoscrollRef:s,sentinelElement:n,isStreaming:a=!1,isSession:i=!1}){const r=JS(),[o,l]=e.useState(!1),c=e.useCallback(()=>{const e=s.current;e&&(e.scrollToBottom("instant"),(a||i)&&e.setPinToBottom(!0))},[s,a,i]);return e.useEffect(()=>{a?i&&!o&&(s.current?.setPinToBottom(!0),s.current?.scrollToBottom("instant")):i||s.current?.setPinToBottom(!1)},[a,i,o,s]),e.useEffect(()=>{if(!n)return;const e=s.current?.getScrollContainer();if(!e)return;const t=e.querySelector("[data-chat-input-container]");let a;const i=()=>{a?.disconnect();const s=t?.getBoundingClientRect().height??0;a=new IntersectionObserver(e=>{l(!e[e.length-1].isIntersecting)},{root:e,threshold:.01,rootMargin:`0px 0px ${150-s}px 0px`}),a.observe(n)};let r;return i(),t&&(r=new ResizeObserver(i),r.observe(t)),()=>{a?.disconnect(),r?.disconnect()}},[n,s]),t.jsx("button",{onClick:c,"aria-label":r.formatMessage({defaultMessage:"Scroll to bottom",id:"p4l9m92DsT"}),inert:!o||void 0,"aria-hidden":!o,className:dt("z-[1] size-9 inline-flex items-center justify-center","absolute -top-8 left-1/2 -translate-x-1/2","border-0.5 overflow-hidden !rounded-full p-1","shadow-md hover:shadow-lg","bg-bg-000/80 hover:bg-bg-000","backdrop-blur transition-opacity duration-200",a?"border-accent-brand/30":"border-border-300",o?"opacity-100 pointer-events-auto":"opacity-0 pointer-events-none"),children:t.jsx(VP,{className:"mix-blend-luminosity"})})}iWe.displayName="LastMessageSentinel";function oWe(){let e,t,s=0,n=0,a=0;function i(t){if(void 0===e)return;if(a<=0)return e;const i=Math.min(1,(t-n)/a);return Math.floor(s+(e-s)*i)}return{update:function(r,o){if(void 0===r)return e=void 0,a=0,void(t=void 0);if(r===e)return;if(void 0===e)return s=0,n=o,a=1200,e=r,void(t=o);if(r<e)return e=r,a=0,void(t=o);const l=void 0===t?3e3:o-t;s=i(o)??r,n=o,a=Math.min(3e3,Math.max(300,l)),e=r,t=o},snapTo:function(n,i){e=n,s=n,a=0,t=i},valueAt:i}}function lWe(t,s){const n=t??0,a=n>0,i=function(){const t=ii(),[s,n]=e.useState(!1);return e.useEffect(()=>{if(!t||"function"!=typeof window.matchMedia)return;const e=window.matchMedia("(prefers-reduced-motion: reduce)"),s=()=>n(e.matches);return s(),e.addEventListener("change",s),()=>e.removeEventListener("change",s)},[t]),s}(),[r]=e.useState(oWe),[o,l]=e.useState(n),c=e.useRef(n);return e.useEffect(()=>{c.current=n},[n]),e.useEffect(()=>{if(!a)return r.update(void 0,performance.now()),void l(0);if(i)return r.snapTo(c.current,performance.now()),void l(c.current);let e;r.snapTo(c.current,performance.now()),l(c.current);let t=0;const s=n=>{const a=c.current;r.update(a>0?a:void 0,performance.now()),n-t>=100&&(t=n,l(r.valueAt(performance.now())??a)),e=requestAnimationFrame(s)};return e=requestAnimationFrame(s),()=>{void 0!==e&&cancelAnimationFrame(e)}},[a,i,s,r]),i||a&&0===o?n:o}function cWe(e){if(e>=1e9)return`${(e/1e9).toFixed(1)}B`;if(e>=1e6){const t=Number((e/1e6).toFixed(1));return t>=1e3?`${(e/1e9).toFixed(1)}B`:`${t.toFixed(1)}M`}if(e>=1e3){const t=Number((e/1e3).toFixed(1));return t>=1e3?`${(e/1e6).toFixed(1)}M`:`${t.toFixed(1)}k`}return String(Math.round(e))}function dWe({sessionId:e}){const s=e_(e),n=lWe(s,e);return null===s||s<=0?null:t.jsx("span",{className:"mr-2 shrink-0 text-xs text-text-500 tabular-nums","aria-hidden":!0,children:t.jsx(XS,{defaultMessage:"{count} tokens",id:"371DelXUjL",values:{count:cWe(n)}})})}const uWe=e.memo(function({sessionId:e}){return y(t4)?t.jsx(dWe,{sessionId:e}):null});uWe.displayName="ThinkingTokensBadge";const mWe=e.memo(function({message:s,activityStartTime:n,isWaitingState:a=!1,contentLength:i,thinkingTokens:r,sessionId:o}){const l=JS(),[c,d]=e.useState(0),[u]=e.useState(()=>Date.now()),m=e.useRef(!1);e.useEffect(()=>{if(null!==n&&(m.current=!0),null===n&&m.current)return void d(0);const e=n??u,t=Math.floor((Date.now()-e)/1e3);d(t);const s=setInterval(()=>{const t=Math.floor((Date.now()-e)/1e3);d(t)},1e3);return()=>clearInterval(s)},[n,u]);const p=c>=5,f=Math.floor(c/60),g=c%60,h=e.useMemo(()=>{if(a){if(c>=60)return l.formatMessage({defaultMessage:"Working through a complex response...",id:"9aX8EHBM23"});if(c>=30)return l.formatMessage({defaultMessage:"Still thinking...",id:"7VOycUjyKn"})}return s},[s,c,a,l]),C=void 0!==i&&i>0,x=void 0!==r&&r>0,v=lWe(r,o);return t.jsxs("div",{className:dt("ml-2 pb-1.5 font-base","text-text-500"),children:[h,x?t.jsxs("span",{"aria-hidden":!0,children:[t.jsx("span",{className:"text-text-500/50 mx-1",children:" \xb7 "}),t.jsx("span",{className:"tabular-nums",children:t.jsx(XS,{defaultMessage:"{count} tokens",id:"371DelXUjL",values:{count:cWe(v)}})})]}):C?t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"text-text-500/50 mx-1",children:" \xb7 "}),t.jsx("span",{className:"tabular-nums",children:t.jsx(XS,{defaultMessage:"~{count} characters",id:"UOLzzSylAr",values:{count:i.toLocaleString()}})})]}):p&&t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"text-text-500/50 mx-1",children:" \xb7 "}),t.jsx("span",{className:"tabular-nums",children:f>0?t.jsx(XS,{defaultMessage:"{minutes}m {seconds}s",id:"vJn4YbbGd1",values:{minutes:f,seconds:g}}):t.jsx(XS,{defaultMessage:"{seconds}s",id:"BcEbxp6VH6",values:{seconds:g}})})]})]})}),pWe=new Set(["md","markdown","mdown","mkdn","mkd","mdwn","mdtxt","mdtext"]),fWe=new Set(["py","pyx","pxd","pxi","pyi","js","jsx","ts","tsx","mjs","cjs","java","scala","kt","kts","groovy","gradle","c","h","cpp","cc","cxx","hpp","hxx","cs","csx","go","rs","rb","rbw","rake","gemspec","php","phtml","php4","php5","php7","phps","swift","kt","kts","ktm","dart","lua","pl","pm","t","pod","r","R","Rmd","Rnw","sh","bash","zsh","fish","bat","cmd","ps1","sql","graphql","gql","json","xml","yaml","yml","toml","ini","cfg","conf"]),gWe=[{pattern:/^#{1,6}\s+/gm,weight:.15,name:"headers"},{pattern:/\[([^\]]+)\]\(([^)]+)\)/g,weight:.1,name:"links"},{pattern:/!\[([^\]]*)\]\(([^)]+)\)/g,weight:.1,name:"images"},{pattern:/^```[\s\S]*?```$/gm,weight:.1,name:"fenced-code"},{pattern:/^(?: {4}|\t)[^\n]+$/gm,weight:.05,name:"indented-code"},{pattern:/`[^`]+`/g,weight:.05,name:"inline-code"},{pattern:/^[\s]*[-*+]\s+/gm,weight:.08,name:"unordered-list"},{pattern:/^[\s]*\d+\.\s+/gm,weight:.08,name:"ordered-list"},{pattern:/\*\*[^*]+\*\*/g,weight:.04,name:"bold"},{pattern:/\*[^*\n]+\*/g,weight:.03,name:"italic"},{pattern:/__[^_]+__/g,weight:.04,name:"bold-underscore"},{pattern:/_[^_\n]+_/g,weight:.03,name:"italic-underscore"},{pattern:/^>\s+/gm,weight:.07,name:"blockquote"},{pattern:/^---+$|^===+$/gm,weight:.05,name:"horizontal-rule"},{pattern:/^\|[^\n]+\|$/gm,weight:.08,name:"table"}];function hWe(e,t){const s=e?e.split(".").pop()?.toLowerCase():void 0;if(s&&pWe.has(s))return{isMarkdown:!0,confidence:1,method:"extension"};if(s&&fWe.has(s))return{isMarkdown:!1,confidence:0,method:"extension"};if(t){const e=function(e){if(!e||e.length<10)return 0;let t=0;const s=[];for(const{pattern:a,weight:i,name:r}of gWe){const n=e.match(a);if(n&&n.length>0){const e=n.length;let a;a=["headers","fenced-code","links","images"].includes(r)?Math.min(e,1):Math.min(e/5,1);t+=i*(.7+.3*a),s.push(r)}}const n=s.length/gWe.length*.1;return Math.min(t+n,1)}(t),s=e>=.15;return{isMarkdown:s,confidence:e,method:s?"content":"none"}}return{isMarkdown:!1,confidence:0,method:"none"}}class CWe{constructor(e){this.hasLatched=!1,this.filename=e,this.lastResult=hWe(e),this.hasLatched=this.lastResult.isMarkdown}update(e){if(this.hasLatched)return this.lastResult;const t=hWe(this.filename,e);return t.isMarkdown&&(this.hasLatched=!0),this.lastResult=t,t}reset(){this.hasLatched=!1,this.lastResult=hWe(this.filename),this.hasLatched=this.lastResult.isMarkdown}isLatched(){return this.hasLatched}}function xWe({isStreaming:t,lastMessage:s,dispatchChatResource:n,openControlsSidebar:a,isDrawerExpanded:i,maxTrackedFiles:r}){const o=e.useRef(new Map),l=e.useRef(void 0),c=e.useMemo(()=>{if(!t||!s||!s.content)return l.current;const e=s.content[s.content.length-1];return l.current=e,e},[t,s]),d=e.useMemo(()=>null,[c,r]),{detectMarkdown:u}=function(t=100){const s=e.useRef(new Map),n=e.useCallback(e=>{if(s.current.has(e))return s.current.get(e);if(s.current.size>=t){const e=s.current.keys().next().value;e&&s.current.delete(e)}const n=new CWe(e);return s.current.set(e,n),n},[t]);return{detectMarkdown:e.useCallback(e=>{if(!e||!e.path)return null;if(e.path.includes(".")){const t=e.path,n=[];s.current.forEach((e,s)=>{t.startsWith(s)&&s!==t&&!s.includes(".")&&n.push(s)}),n.forEach(e=>{s.current.delete(e)})}const t=n(e.path);return{isMarkdown:t.update(e.content).isMarkdown,isLatched:t.isLatched(),detector:t}},[n]),clearDetectors:e.useCallback(()=>{s.current.clear()},[]),removeDetector:e.useCallback(e=>{s.current.delete(e)},[]),getDetectorsMap:e.useCallback(()=>s.current,[]),getOrCreateDetector:n}}(r),{handleMarkdownFileDetected:m,updateStreamingContent:p}=function({dispatchChatResource:t,openControlsSidebar:s,isDrawerExpanded:n,maxTrackedFiles:a=100,throttleMs:i=100}){const r=e.useRef(new Set),o=e.useCallback(e=>{const t=r.current,s=!t.has(e);if(t.has(e))t.delete(e);else if(t.size>=a){const e=t.values().next().value;e&&t.delete(e)}return t.add(e),s},[a]),l=e.useCallback(e=>r.current.has(e),[]),c=e.useCallback((e,a,i="create_file")=>{o(e)&&(n||s(),t({type:"SELECT_FILE",path:e,toolType:i,messageId:a,entryPoint:"auto_open_streaming_md"}))},[t,s,n,o]),d=e.useCallback(e=>{},[]),u=e.useCallback(({path:e,content:s,renderAs:n,showingInRightPane:a})=>{t({type:"UPDATE_STREAMING_FILE",path:e,content:s,renderAs:n,showingInRightPane:a})},[t]),m=e.useMemo(()=>LT(e=>{u(e)},i,{leading:!0,trailing:!0}),[u,i]);e.useEffect(()=>()=>{m.cancel()},[m]);const p=e.useCallback(e=>{m(e)},[m]),f=e.useCallback(e=>{m.cancel(),u(e)},[u,m]),g=e.useCallback((e,t,s)=>{c(e,s),p({path:e,content:t,renderAs:Se.Markdown,showingInRightPane:!0})},[c,p]),h=e.useCallback(()=>{r.current.clear()},[]),C=e.useCallback(()=>r.current,[]);return{trackOpenedFile:o,hasBeenOpened:l,openFileInRightPane:c,registerMarkdownFile:d,updateStreamingContent:p,updateStreamingContentImmediate:f,handleMarkdownFileDetected:g,clearOpenedFiles:h,getOpenedFilesSet:C}}({dispatchChatResource:n,openControlsSidebar:a,isDrawerExpanded:i,maxTrackedFiles:r});e.useEffect(()=>{if(!d)return;const{path:e,content:t}=d,n=u(d);if(!n)return;const{isMarkdown:a,isLatched:i}=n;a?m(e,t,s?.uuid||""):i&&p({path:e,content:t,renderAs:Se.Markdown})},[d,u,m,p,s?.uuid]);const f=e.useCallback(()=>{o.current.clear()},[]);return{streamingCreateFile:d,fileContentsRef:o,clearFileContents:f}}function vWe(e){const t=new Set;for(const s of e.content??[]){const e="text"===s.type?s.text:"connector_text"===s.type?s.connector_text:Jp(s);e&&Ude(e).forEach(e=>t.add(e))}return t}function yWe(e){return!e.isSpill&&("project-doc"!==e.openWith?.via||!0===e.presentToUser)}const bWe=e.memo(({isStreaming:t,conversationUuid:s,dispatchChatResource:n,openControlsSidebar:a,isDrawerExpanded:i,maxTrackedFiles:r,selectComputerFile:o,lastMessageUuid:l})=>{const c=SM(s),d=t_(s),u=aP(`(min-width: ${iP}px)`),p=ae(),{setIsDrawerExpanded:f}=DN(),g=Me(),h=m(),C=Gg(),x="ready"===C.state?C.result?.remoteToolsDeviceName:void 0,v=e.useMemo(()=>ooe(h,x,!1),[h,x]),y=e.useRef({lastOpenedId:null});xWe({isStreaming:t,lastMessage:c,dispatchChatResource:n,openControlsSidebar:a,isDrawerExpanded:i,maxTrackedFiles:r});const b=e.useRef(!1),k=e.useRef(!1);e.useEffect(()=>{if(!c)return;if(t)return b.current=!1,void(k.current=!0);if(b.current||!k.current)return;if(!l||!qg(l))return;const e=d.slice(0,-1),n=new Set;e.forEach(e=>{vWe(e).forEach(e=>n.add(e))});const a=vWe(c);Array.from(a).filter(e=>!n.has(e)).forEach(e=>{p.track({event_key:"wiggle.file.created",chat_message_uuid:l,...PB({filePath:e,isShared:!1,conversationUuid:s,source:"completion"})})});const i=new Set;e.forEach(e=>{koe(e).forEach(e=>i.add(e.path))});koe(c).filter(e=>!e.isSpill&&"project-doc"!==e.openWith?.via&&!i.has(e.path)).forEach(e=>{p.track({event_key:"wiggle.file.created",chat_message_uuid:l,...PB({filePath:e.path,isShared:!1,conversationUuid:s,source:"completion"})})}),b.current=!0},[t,c,l,p,s,d]),e.useEffect(()=>{if("local_session"!==g?.type&&u&&c&&!t){const e=function(e){for(const t of e.content??[]){const e="text"===t.type?t.text:"connector_text"===t.type?t.connector_text:Jp(t);if(e){const t=Ude(e);for(const e of t)if(Rt(e))return e}}return null}(c),t=y.current.lastOpenedId===e;e&&!t&&l&&(y.current.lastOpenedId=e,o(e,l))}},[g?.type,t,c,o,l,u]);const w=(c?koe(c):[]).findLast(yWe),M=w?.path,_=w?.fileUuid,j=w?.display,S="project-doc"===w?.openWith?.via?w.openWith.docUuid:void 0,L=void 0!==M?`${M}|${_??""}`:void 0,N=e.useRef(void 0),I=YK(s);e.useEffect(()=>{t&&u&&l&&void 0!==M&&N.current!==L&&(ga(s)&&void 0===S&&!Lp(M,_,I)||"attach"!==j&&(N.current=L,n({type:"SELECT_FILE",path:M,toolType:"present_files",messageId:l,fileUuid:_,openWith:void 0!==S?{via:"project-doc",docUuid:S}:void 0,entryPoint:"auto_open_present_files"}),f(!0)))},[s,L,M,_,j,S,t,u,l,n,f,I]);const T=c?function(e,t){const s=e.content??[];for(let n=s.length-1;n>=0;n--){const e=s[n];if(!t(e))continue;const a=s[n+1];if("tool_result"!==a?.type||a.is_error)continue;const i=e.input?.id;if("string"==typeof i)return coe(i)}}(c,v):void 0,A=e.useRef(void 0);return e.useEffect(()=>{t&&u&&T&&A.current!==T&&(A.current=T,n({type:"SELECT_COWORK_ARTIFACT",id:T}),f(!0))},[T,t,u,n,f]),null});bWe.displayName="StreamingFileManager";function kWe(e){return Math.floor(Math.random()*e)}const wWe=["zm8g14","zm8g15","zm8g16","zm8g17","zm8g18"];function MWe({messages:s}){const n=JS(),a=e.useMemo(()=>wWe.map(e=>gs({id:e,intl:n})).filter(e=>e.trim().length>0),[n]),i=e.useRef(null);s!==s_&&(i.current=s);const r=i.current??a,o=e.useRef(r);o.current=r;const[l,c]=e.useState(()=>r[kWe(r.length)]);return e.useEffect(()=>{const e=setInterval(()=>{const e=o.current;c(t=>{const s=e.indexOf(t),n=-1===s?kWe(e.length):(s+1)%e.length;return e[n]})},3e3);return()=>clearInterval(e)},[]),0===r.length?null:t.jsx("div",{className:"font-base text-text-300 ml-2 pb-1.5",children:t.jsx("span",{className:"animate-in fade-in duration-300 inline-block",children:l},l)})}const _We=new Map;const jWe=e.memo(function({messageChainData:s,isStreaming:n,getScrollElement:a,renderMessage:i,conversationUuid:r,estimateSize:o,gap:l=0,lastHumanMessageRef:c,lastAssistantMessageRef:d,keepMountedIndex:u,isPinned:m,onFindScroll:p,getSearchText:f,renderAfter:g,trailing:h,renderPropsVersion:C}){const x=JS(),v=Dr(m),y=Dr(p),b=Dr(s),k=Dr(o),w=Dr(u),M=Bm(r??"")||n,_=Dr(M),j=s.length,S=Math.max(0,j-3),L=e.useRef(j);e.useEffect(()=>{L.current=j},[j]);const[N,I]=e.useState(()=>Math.max(0,j-1)),T=e.useRef(null),A=e.useRef(!1);e.useEffect(()=>{I(e=>e>=s.length?Math.max(0,s.length-1):e)},[s.length]);const E=s.map(e=>En(e.chain.firstMessageUuid)).join("\0"),R=e.useCallback(e=>En(b.current[e]?.chain.firstMessageUuid||String(e)),[E]),D=e.useRef(null),H=e.useRef(null),P=e.useCallback(()=>a()??H.current?.closest("[data-autoscroll-container]")??null,[a]),U=e.useRef(-1);e.useEffect(()=>{const e=H.current;if(!e)return;const t=e=>{const t=e.target?.closest?.("[data-index]");U.current=t?Number(t.getAttribute("data-index")):-1},s=t=>{e.contains(t.relatedTarget)||(U.current=-1)};return e.addEventListener("focusin",t),e.addEventListener("focusout",s),()=>{e.removeEventListener("focusin",t),e.removeEventListener("focusout",s)}},[]);const O=e.useRef([]);e.useEffect(()=>{const e=H.current;if(!e)return;const t=()=>{const t=document.getSelection();if(!t||t.isCollapsed||0===t.rangeCount)return void(O.current.length>0&&(O.current=[]));const s=t.getRangeAt(0);if(!e.contains(s.startContainer)&&!e.contains(s.endContainer))return void(O.current.length>0&&(O.current=[]));const n=e=>{const t=1===e.nodeType?e:e.parentElement,s=t?.closest("[data-index]");return s?Number(s.getAttribute("data-index")):-1},a=n(s.startContainer),i=n(s.endContainer),r=[];a>=0&&r.push(a),i>=0&&i!==a&&r.push(i),O.current=r};return document.addEventListener("selectionchange",t),()=>{document.removeEventListener("selectionchange",t)}},[]),e.useEffect(()=>{const e=P();if(!e)return;const t=e.style.overflowAnchor;return e.style.overflowAnchor="none",()=>{e.style.overflowAnchor=t}},[P]);const F=e.useRef(null);null===F.current&&(F.current=void 0!==r?_We.get(r):void 0);const V=Dr(S),z=Dr(N),Z=e.useRef([]),B=e.useCallback(e=>{const t=dP(e),s=new Set(t);for(let o=V.current;o<e.count;o++)s.add(o);const n=w.current;void 0!==n&&n>=0&&n<e.count&&s.add(n);const a=U.current;a>=0&&a<e.count&&s.add(a);const i=z.current;i>=0&&i<e.count&&s.add(i);for(const o of O.current)o>=0&&o<e.count&&s.add(o);if(t.length>0){const n=t[0]-2,a=t[t.length-1]+2;for(const t of Z.current)t>=n&&t<=a&&t>=0&&t<e.count&&s.add(t)}const r=Array.from(s).sort((e,t)=>e-t);return Z.current=r,r},[]),q=cP({count:j,scrollToFn:(e,t,s)=>{if(uP(e,t,s),void 0!==t.adjustments&&"backward"===s.scrollDirection)for(const n of s.getVirtualItems()){const e=s.elementsCache.get(n.key);e instanceof HTMLElement&&(e.style.top=`${Math.round(n.start)}px`)}},getScrollElement:P,initialRect:{width:0,height:800},initialOffset:()=>P()?.scrollTop??0,estimateSize:e.useCallback(e=>{const t=b.current[e],s=k.current?.(t,e)??t?.heightHint??120,n=b.current.length;return _.current&&e>=Math.max(n-3,Math.min(n-2,L.current))?Math.max(1,s):Math.max(120,s)},[b,k,_]),overscan:5,getItemKey:R,rangeExtractor:B,gap:l,initialMeasurementsCache:F.current??void 0});q.shouldAdjustScrollPositionOnItemSizeChange=(e,t,s)=>!v.current?.()&&(e.end<(s.scrollOffset??0)&&(!s.itemSizeCache.has(e.key)||"backward"!==s.scrollDirection));const W=q.getTotalSize(),$=j>0?String(R(0)):null,G=e.useRef({firstKey:$,keys:[],starts:[],totalSize:0,pending:null});if(G.current.firstKey!==$){const e=G.current,t=null!==e.firstKey;if(e.firstKey=$,t&&e.keys.length>0&&!v.current?.()&&null!==q.scrollOffset){const t=q.scrollOffset,s=new Map;for(let e=0;e<j;e++)s.set(String(R(e)),e);for(let n=0;n<e.keys.length;n++){const a=s.get(e.keys[n]);if(void 0!==a){e.pending={survivorIdx:a,oldStart:e.starts[n],oldOffset:t};const s=q.measurementsCache[a]?.start;void 0!==s&&(q.scrollOffset=Math.max(0,t+(s-e.starts[n])));break}}null===e.pending&&1===e.keys.length&&(e.pending={survivorIdx:-1,oldStart:e.totalSize,oldOffset:t},q.scrollOffset=Math.max(0,t+(W-e.totalSize)))}}e.useLayoutEffect(()=>{const e=G.current.pending;if(null===e)return;G.current.pending=null;const t=P(),s=q.getTotalSize(),n=-1===e.survivorIdx?s:q.measurementsCache[e.survivorIdx]?.start;if(t&&void 0!==n){const s=Math.max(0,e.oldOffset+(n-e.oldStart));t.scrollTop=s,q.scrollOffset=s}},[$,P,q]),e.useLayoutEffect(()=>{const e=G.current;e.firstKey=$;const t=Math.min(4,j),s=[],n=[];for(let a=0;a<t;a++){const e=q.measurementsCache[a];e&&(s.push(String(e.key)),n.push(e.start))}e.keys=s,e.starts=n,e.totalSize=W},[$,j,q,W]);const K=e.useRef(j);e.useLayoutEffect(()=>{const e=K.current;if(K.current=j,0===e||j<=e)return;const t=e-1,s=q.elementsCache.get(R(t));s instanceof HTMLElement&&s.isConnected&&q.resizeItem(t,s.offsetHeight)},[j,q,R]);const Y=q.getVirtualItems(),Q=e.useRef({forCount:-1,max:0}),J=M&&Q.current.forCount===j?Math.min(Math.max(Q.current.max,W),W+240):W;e.useLayoutEffect(()=>{Q.current={forCount:j,max:J}},[j,J]);const X=J-W,ee=Y.map(e=>e.index).join(","),te=e.useId(),se=Y[0]?.index??0,ne=e.useCallback(e=>{e<0||I(t=>(e!==t&&(A.current=!0,T.current=null),e))},[]),ae=e.useCallback(()=>ne(Math.max(0,se-1)),[ne,se]),ie=e.useRef(0);Eze({items:s,getSearchText:f??(()=>""),scrollToIndex:e.useCallback((e,t,s,n)=>{y.current?.(),q.scrollToIndex(e,{align:"center"});const a=++ie.current;let i=0;const r=()=>{if(ie.current!==a||n()||!H.current)return;const t=H.current.querySelector(`[data-index="${e}"]`),s=P();if(!t||!s)return void(i++<6&&(q.scrollToIndex(e,{align:"center"}),requestAnimationFrame(()=>requestAnimationFrame(r))));const o=t.getBoundingClientRect(),l=s.getBoundingClientRect();!(o.bottom>l.top&&o.top<l.bottom)&&i++<6&&(t.scrollIntoView({block:"center",behavior:"auto"}),requestAnimationFrame(()=>requestAnimationFrame(r)))};requestAnimationFrame(()=>requestAnimationFrame(r))},[q,y,P]),getHighlightElements:e.useCallback(e=>({scope:H.current,active:e>=0?H.current?.querySelector(`[data-index="${e}"]`)??null:null}),[]),repaintKey:ee,enabled:void 0!==f}),e.useEffect(()=>()=>{if(void 0===r)return;if(0===q.measurementsCache.length)return;const e=q.takeSnapshot();0!==e.length&&function(e,t){if(_We.delete(e),_We.set(e,t),_We.size>32){const e=_We.keys().next().value;void 0!==e&&_We.delete(e)}}(r,e)},[q,r]);const re=e.useCallback(e=>e<0||e>=s.length?null:i(e),[s.length,i]),oe=e.useCallback(e=>{if(0===s.length)return;if(function(e){if(!(e instanceof HTMLElement))return!1;const t=e.tagName;return"INPUT"===t||"TEXTAREA"===t||"SELECT"===t||e.isContentEditable}(e.target))return;if(e.defaultPrevented)return;const t=s.length-1,n=t=>{e.preventDefault(),I(e=>{const s=t(e);return s!==e&&(A.current=!0),s})},a=e.target instanceof Element&&null!==e.target.closest('[role="article"]');"ArrowDown"===e.key?a&&n(e=>Math.min(e+1,t)):"ArrowUp"===e.key?a&&n(e=>Math.max(e-1,0)):"Home"===e.key?n(()=>0):"End"===e.key&&n(()=>t)},[s.length]),le=e.useCallback(e=>{A.current=!1,I(e)},[]);e.useLayoutEffect(()=>{if(N<0)return;if(!A.current)return;A.current=!1;const e=document.activeElement;if(e&&e!==document.body&&H.current&&!H.current.contains(e))return;let t;if(T.current)T.current.scrollIntoView({block:"nearest"}),T.current.focus({preventScroll:!0});else{q.scrollToIndex(N,{align:"auto"});const e=s=>{t=requestAnimationFrame(()=>{const t=document.activeElement;t&&t!==document.body&&H.current&&!H.current.contains(t)||(T.current?T.current.focus({preventScroll:!0}):s>0&&e(s-1))})};e(1)}return()=>{void 0!==t&&cancelAnimationFrame(t)}},[N,q]);const ce=t.jsxs("div",{ref:H,role:"feed","aria-label":x.formatMessage({defaultMessage:"Chat messages",id:"SCYmnElliz"}),"aria-describedby":te,"aria-busy":n,onKeyDown:oe,style:{marginBottom:-X},...void 0!==f&&{[mze]:""},children:[t.jsx("p",{id:te,className:"sr-only select-none",children:t.jsx(XS,{defaultMessage:"Use the up and down arrow keys to move between messages.",id:"ps3R1JlOBy"})}),j>0&&t.jsxs("div",{ref:D,"data-sizer-excess":X,style:{height:J,width:"100%",position:"relative"},children:[se>0&&t.jsx("button",{type:"button",className:"sr-only select-none",onClick:ae,tabIndex:-1,children:t.jsx(XS,{defaultMessage:"Load earlier messages",id:"/V89Z1BeEm"})}),Y.map((a,i)=>{const{index:r}=a,o=Y[i+1]?.index,l=void 0!==o&&o>r+1?r+1:void 0,u=s[r],m=r===N,p=r===j-1,f=r>=S,h=g?.(r),C=f&&u?.isLastHuman?c:f&&u?.isLastMsg?d:void 0;return t.jsxs(e.Fragment,{children:[t.jsxs("div",{ref:q.measureElement,"data-index":r,"data-last-message":p||void 0,style:{position:"absolute",top:`${Math.round(a.start)}px`,left:0,width:"100%"},children:[t.jsx("div",{ref:e=>{m&&(T.current=e),C&&(C.current=e)},role:"article",tabIndex:m?0:-1,"aria-setsize":j,"aria-posinset":r+1,"aria-label":n&&p?x.formatMessage({defaultMessage:"Currently streaming message",id:"QU+nmAt+Zt"}):x.formatMessage({defaultMessage:"Message {position} of {count}",id:"aX54Ax1k5D"},{position:r+1,count:j}),onFocus:()=>le(r),children:re(r)}),h]}),void 0!==l&&t.jsx("button",{type:"button",className:"sr-only select-none",onClick:()=>ne(l),tabIndex:-1,children:t.jsx(XS,{defaultMessage:"Load later messages",id:"94NWuZrbeK"})})]},a.key)})]})]});return t.jsxs(t.Fragment,{children:[ce,null!=h&&t.jsx("div",{style:{position:"relative"},children:h}),t.jsx("div",{"aria-hidden":!0,style:{height:X}})]})}),SWe=e.memo(function({conversationUuid:s,retryCount:n,sdkCompactionStatus:a,sdkApiRetryStatus:i,skipCompactionUI:r=!1}){const[o,l]=e.useState(""),c=JS(),d=n_(s),{context:u}=a_(s),m=u?.compactionStatus??("compacting"===a?"compacting":void 0),[p,f]=e.useState(null),g=null!==p,h=e.useRef(null),C=e.useRef(0);e.useEffect(()=>{if("compacting"===m){h.current=Date.now(),C.current=0,f(0);let e=0;const t=setInterval(()=>{if(h.current){const t=(Date.now()-h.current)/1e3,s=Math.min(95,100*(1-Math.exp(-t/25)));e=Math.max(e,Math.round(s)),C.current=e,f(e)}},100);return()=>clearInterval(t)}if("complete"===m){h.current=null;const e=C.current,t=Date.now(),s=setInterval(()=>{const n=Date.now()-t,a=Math.min(1,n/300),i=Math.round(e+(100-e)*(1-Math.pow(1-a,2)));C.current=i,f(i),a>=1&&clearInterval(s)},16),n=setTimeout(()=>{f(null),C.current=0},1e3);return()=>{clearInterval(s),clearTimeout(n)}}"failed"===m?(f(null),C.current=0):m||(f(null),C.current=0)},[m]);const[x,v]=e.useState(null);e.useEffect(()=>{if(!i)return void v(null);const{delayMs:e,receivedAt:t}=i,s=()=>{const s=Math.max(0,Math.ceil((e-(Date.now()-t))/1e3));v(s)};s();const n=setInterval(s,1e3);return()=>clearInterval(n)},[i]);const y=e.useMemo(()=>[c.formatMessage({defaultMessage:"Gathering my thoughts, be right there...",id:"C6UYRcZHCt"}),c.formatMessage({defaultMessage:"Contemplating, stand by...",id:"r6P7kLapjf"}),c.formatMessage({defaultMessage:"Pondering, stand by...",id:"l0/dX2gLlN"}),c.formatMessage({defaultMessage:"Ruminating on it, stand by...",id:"wt2OTGsj0k"}),c.formatMessage({defaultMessage:"Pondering, stand by...",id:"l0/dX2gLlN"})],[c]),b=e.useMemo(()=>c.formatMessage({defaultMessage:"Still working on it, stand by...",id:"R9hnARYgER"}),[c]),k=e.useMemo(()=>c.formatMessage({defaultMessage:"A bit longer, thanks for your patience...",id:"MCt5e8xpx8"}),[c]);e.useEffect(()=>{if(d||n&&n>0)return;const e=[];return e.push(setTimeout(()=>{l(y[Math.floor(Math.random()*y.length)])},5e3)),e.push(setTimeout(()=>{l(b)},15e3)),e.push(setTimeout(()=>{l(k)},3e4)),()=>{e.forEach(e=>clearTimeout(e))}},[y,b,k,d,n]);const w=e.useMemo(()=>{if(!r&&("compacting"===m||g))return c.formatMessage({defaultMessage:"Compacting our conversation so we can keep chatting...",id:"TtfNhgtojm"});if(i&&null!==x){const e="authentication_failed"===i.error?c.formatMessage({defaultMessage:"Authentication failed",id:"7+UPMnhJCX"}):"rate_limit"===i.error?c.formatMessage({defaultMessage:"Rate limit reached",id:"jd5qR1RcUF"}):"overloaded"===i.error?c.formatMessage({defaultMessage:"API is overloaded",id:"kjW0KjX/V6"}):c.formatMessage({defaultMessage:"Server is busy",id:"oMOLgYnZwB"});return x>0?c.formatMessage({defaultMessage:"{cause}. Retrying in {seconds}s (attempt {attempt} of {maxRetries})",id:"L05EkQSQ0J"},{cause:e,seconds:x,attempt:i.attempt,maxRetries:i.maxRetries}):c.formatMessage({defaultMessage:"{cause}. Retrying now (attempt {attempt} of {maxRetries})",id:"xo70FAR2Eu"},{cause:e,attempt:i.attempt,maxRetries:i.maxRetries})}return n&&n>0?c.formatMessage({defaultMessage:"Taking longer than usual. Trying again shortly (attempt {attemptNumber})",id:"Aaxo80X0HK"},{attemptNumber:n+1}):o},[m,g,n,o,c,r,i,x]);return g&&!r?t.jsxs(sA.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.1},className:"ml-2 pb-1.5",children:[t.jsx("div",{className:"font-small text-text-300",children:w}),t.jsxs("div",{className:"mt-1 flex items-center gap-2",children:[t.jsx("div",{className:"bg-bg-500 relative h-1 w-48 overflow-hidden rounded-full after:absolute after:inset-0 after:translate-x-[-100%] after:bg-gradient-to-r after:from-always-white/0 after:from-0% after:via-always-white/20 after:via-50% after:to-always-white/0 after:to-100% after:animate-[shimmer_1.5s_infinite]",children:t.jsx(sA.div,{className:"bg-text-300 h-full rounded-full",initial:{width:0},animate:{width:`${p}%`},transition:{duration:.3,ease:"easeOut"}})}),t.jsx("div",{className:"text-text-400 text-xs tabular-nums",children:c.formatMessage({defaultMessage:"{progress}%",id:"LI4B/nslxi"},{progress:p})})]})]}):i&&w||(!d||n&&0!==n)&&w?t.jsx(sA.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.1},className:"font-base text-text-300 ml-2 pb-1.5 tabular-nums",children:w}):null});function LWe({isStreaming:e,retryCount:s,conversationUuid:n,shouldShowWaitingText:a,currentAvatarState:i,scrollRef:r,sessionStatusMessage:o,sessionError:l,sessionErrorCategory:c,sessionId:d,sessionHostLoopMode:u,lastUserMessageUuid:m,debugInfo:p,sparkDebugInputs:f,sdkCompactionStatus:g,sdkApiRetryStatus:h,activityStartTime:C,sessionConnectionState:x,isWaitingState:v,isCompacting:y,streamingContentLength:b,streamingThinkingTokens:k,onSessionTryAgain:w,onSessionRewind:M,answerNowHandoffGap:_}){const j=Eae(e=>e.isStatusDisplayVisible),S=j,L=tj(n),N=e&&!j&&!o&&void 0!==L;return t.jsx("div",{ref:r,children:t.jsxs("div",{className:dt("ml-1 mt-6 flex items-center transition-transform duration-300 ease-out",(e||_)&&"-translate-y-[1.625rem]"),children:[l?t.jsx(XOe,{errorMessage:l,errorCategory:c??void 0,sessionId:d,sessionHostLoopMode:u,lastUserMessageUuid:m,onTryAgain:w,onRewind:M}):t.jsxs(t.Fragment,{children:[t.jsx("div",{className:dt("p-1 -translate-x-px",j&&"invisible"),children:t.jsx(H9,{state:i,isInteractive:!y})}),!o||j||"compacting"===g||h?null:t.jsx(mWe,{message:o,activityStartTime:C??null,isWaitingState:v,contentLength:b,thinkingTokens:k,sessionId:d}),"disconnected"===x&&t.jsx("div",{className:"text-text-400 ml-2 pb-1.5 text-xs",children:t.jsx(XS,{defaultMessage:"Reconnecting...",id:"dOGweUbyRk"})})]}),N&&L?t.jsx(MWe,{messages:L}):a&&!j?t.jsx(SWe,{conversationUuid:n,retryCount:s,sdkCompactionStatus:g,sdkApiRetryStatus:h,skipCompactionUI:S}):null]})})}function NWe({extrasRef:e,isSession:s,...n}){return t.jsxs("div",{ref:e,className:"flow-root",children:[t.jsx(LWe,{...n}),!s&&t.jsx(sFe,{conversationUuid:n.conversationUuid})]})}const IWe=e.createContext(null);function TWe(){const s=e.useContext(IWe);return s?t.jsx(NWe,{...s}):null}function AWe(){const{data:e,currentQuestionIndex:s}=uO(),n=e?.questions[s],a="multi_select"===n?.type,i="rank_priorities"===n?.type,r="free_form"===n?.type,o=On()?"\u2318":"Ctrl",l=t.jsx("span",{className:"mx-3","aria-hidden":!0,children:"\xb7"});if(r){const a=null!==e&&s===e.questions.length-1,i=n?.multiline;return t.jsx("span",{className:"inline-block select-none opacity-90",children:i&&a?t.jsx(XS,{defaultMessage:"{mod} Enter to send",id:"tldC9AJ6jA",values:{mod:o}}):i?t.jsx(XS,{defaultMessage:"{mod} Enter to continue",id:"kIseA7ZUWN",values:{mod:o}}):a?t.jsx(XS,{defaultMessage:"Enter to send",id:"gzod7jxy4Y"}):t.jsx(XS,{defaultMessage:"Enter to continue",id:"VAhXOjC/rV"})})}return i?t.jsx("span",{className:"inline-block select-none opacity-90",children:t.jsx(XS,{defaultMessage:"Drag to reorder{sep}{mod} Enter to submit",id:"bSBVRyOItG",values:{sep:l,mod:o}})}):a?t.jsx("span",{className:"inline-block select-none opacity-90",children:t.jsx(XS,{defaultMessage:"\u2191 \u2193 to navigate{sep}Enter to select{sep}{mod} Enter to submit",id:"Tl1HHnBsYE",values:{sep:l,mod:o}})}):t.jsx("span",{className:"inline-block select-none opacity-90",children:t.jsx(XS,{defaultMessage:"\u2191 \u2193 to navigate{sep}Enter to select{sep}or type below",id:"jYN28dkg5i",values:{sep:l}})})}function EWe({isTemporary:s,incognitoString:n,hasWebSearchResponse:a,isMcpAppFullscreen:i}){const{data:r}=uO(),{data:o}=T9(),l=ie();VFe();const c=AFe(),d=EFe(),u=Me(),m=e.useCallback(()=>{d({source:"claude_chat",sessionId:"local_session"===u?.type?u.sessionId:void 0})},[d,u]),p=!!r||!!o;return t.jsx("div",{role:"note","data-disclaimer":!0,className:"bg-bg-100 text-text-500 text-center text-xs py-2",inert:!!i||void 0,children:p?t.jsx(AWe,{}):l?c?t.jsx(XS,{defaultMessage:"Claude is AI and can make mistakes. Please double-check responses. {giveFeedback}",id:"JyEEg0ExZX",values:{giveFeedback:t.jsx(ds,{onClick:m,children:t.jsx(XS,{defaultMessage:"Give us feedback",id:"aQPexOUJ+Y"})})}}):t.jsx(XS,{defaultMessage:"Claude is AI and can make mistakes. Please double-check responses.",id:"Hz3uf5n9Ga"}):s?n:t.jsx(er,{href:"https://support.anthropic.com/en/articles/8525154-claude-is-providing-incorrect-or-misleading-responses-what-s-going-on",target:"_blank",rel:"noopener noreferrer",className:"hover:text-text-300 transition",children:a?t.jsx(XS,{defaultMessage:"Claude is AI and can make mistakes. Please double-check cited sources.",id:"FGmLea0H7Z"}):t.jsx(XS,{defaultMessage:"Claude is AI and can make mistakes. Please double-check responses.",id:"Hz3uf5n9Ga"})})})}const RWe=Fi.maxFilesPerConversation;function DWe(){}const HWe=e.memo(function({changeDisplayedConversationPath:s,chatInputDefaultMessage:n,conversationTitle:a,conversationUuid:i,editMessage:o,showEditAffordance:l,isStreaming:c,isTemporary:d=!1,isLoading:u,inputDisabled:m=!1,messageUuids:p,name:f,titleKnown:g,onRetry:h,onSend:C,onAnswerNow:x,scopeBoundModel:b,onSaveModel:M,projectUuid:_,retryCount:j,onStopSampling:S,isExternalConversation:L=!1,sessionStatusMessage:N,sessionError:I,sessionErrorCategory:T,belowHeaderElement:A,lastUserMessageUuid:E,session:R,debugInfo:D,toolPermissionRequests:H,onToolDecision:P,onMessageFeedback:U,mcqAnswers:O,sdkCompactionStatus:F,sdkApiRetryStatus:V,resourceActivity:z,deliveredFileUuidByPath:Z,fsLastModified:B,activityStartTime:q,sessionConnectionState:W,sessionNextReconnectTime:$,onSessionRetry:G,onSessionTryAgain:K,onSessionRewind:Y,onRewindToMessage:Q,isWaitingState:J,onRenameSession:X,onArchiveSession:ee,onDeleteSession:te,isStarred:se,onToggleStarred:ne,scheduledTaskId:re,sessionId:oe,streamingContentLength:ce,streamingThinkingTokens:de,promptSuggestion:ue,isOnboarding:me,renderAboveInput:pe,renderAboveMessages:fe,headerBeforeTitle:ge,headerAfterTitle:he}){const xe=r(),ve=Za(i),ye=Me(),be=ve||"local_session"===ye?.type||L,we=ie(),_e="local_agent_mode_session"===R?.type?R.hostLoopMode??!1:void 0,je=Vb(),Se=ZFe(e=>e.setDebugInfo);e.useEffect(()=>(Se(D),()=>Se(void 0)),[D,Se]);const Ne=lFe(),Ie=Ne?.isOpen??!1,Te=(eVe(),WFe(e=>e.isFeatureEnabled)),{firstMessage:Ae,hasResearchArtifact:Re,lastStreamingArtifactId:De,allFiles:He,allAttachments:Pe,allSyncSources:Ue}=i_(i),Oe=p[p.length-1]||null,{account:Fe,activeOrganization:Ve}=v(),ze=r_(),Ze=Mx(`(min-width: ${iP}px)`),Be=SFe(!0)&&Ze,qe=kp()?.startsWith("/chat/")??!1,We=JS(),$e=o_(),Ge=e.useRef(null),Ke=e.useRef(null),Ye=Dr(c),Qe=Dr(C),Je=Dr(h),Xe=e.useCallback((...e)=>Je.current(...e),[Je]),et=Dr(Q),tt=e.useCallback(e=>et.current?.(e),[et]);e.useLayoutEffect(()=>(cp.getState().setIsStreaming(i,c,{retireStamp:!Pn(i)&&!Un(i)}),()=>{cp.getState().setIsStreaming(i,!1,{retireStamp:!Pn(i)&&!Un(i)})}),[i,c]);const st=p[p.length-1];Ke.current=st&&qg(st)?st:null;const[nt]=e.useState(()=>i in Cqe()),[at]=le(()=>{return e=i,Cqe()[e]??null;var e},null),it=me||nt,rt=it&&0===p.length,ot=e.useCallback(()=>xe.push("/new"),[xe]),lt=e.useRef(rt);rt&&(lt.current=!0);const ct=e.useRef(!1);e.useEffect(()=>{me&&p.length>0&&!ct.current&&(ct.current=!0,xe.replace(`/chat/${i}`,{scroll:!1}))},[me,p.length,i,xe]);const{chatResourceState:dt,dispatchChatResource:mt}=RN(),{setSandboxState:pt}=l_(),ft=nI(e=>e.isFullscreen),gt=e.useRef({lastAssistantMessage:e.useRef(null),lastHumanMessage:e.useRef(null),chatInput:e.useRef(null),extras:e.useRef(null),extraSpace:e.useRef(null)}).current,ht=e.useCallback(()=>{const e=gt.lastAssistantMessage.current;if(!e)return!0;const t=e.getBoundingClientRect(),s=window.innerHeight;return t.bottom<s+50},[gt.lastAssistantMessage]);e.useEffect(()=>(c?c_.setVisibilityCheck(ht):c_.clearVisibilityCheck(),()=>{c_.clearVisibilityCheck()}),[c,ht]);const Ct=e.useRef(null),{markEditorReady:xt}=Ih(),vt=_a(),{data:yt}=ur(),bt=yt?.find(e=>"schedule"===e.name),kt=ga(oe),wt=e.useCallback(()=>{kt?Ct.current?.setContent("Set this up to run on a schedule",[],[]):bt&&Ct.current?.executeSkill(bt.name,bt.name,bt.description??"")},[kt,bt]),Mt=e.useCallback(()=>{Ct.current?.setContent("Turn this task into a skill",[],[])},[]),{addError:_t,addDanger:jt}=ut(),{setFailedStreamRetryData:St}=d_(),{track:Lt}=ae(),Nt=y("claudeai_stale_leaf_send_guard"),It=Dr(Nt),Tt=yx(i),At=Dr(Tt),Et=e.useRef({}),Rt=e.useCallback(()=>{const e=Ce.getState(),s=e.staleLeafByConversation[i],n=e.pathUuidsByConversation[i]||[],{block:a,observe:r,nextBlockedLeaf:o}=(l={gateEnabled:It.current,staleLeaf:s,pathTip:n[n.length-1]??Bg,lastBlockedLeaf:Et.current[i]}).staleLeaf&&l.staleLeaf===l.pathTip?l.gateEnabled?l.lastBlockedLeaf===l.staleLeaf?{block:!1,observe:!0,nextBlockedLeaf:l.staleLeaf}:{block:!0,observe:!1,nextBlockedLeaf:l.staleLeaf}:{block:!1,observe:!0,nextBlockedLeaf:l.lastBlockedLeaf}:{block:!1,observe:!1,nextBlockedLeaf:void 0};var l;if(Et.current[i]=o,(a||r)&&(Lt({event_key:"claudeai.chat.sync_message_loss",sync_action:a?"send_blocked":"observed",reason:"leaf_has_child",...a?{}:{source:It.current?"send_escape":"send_shadow"},conversation_uuid:i,prev_tree_count:0,new_tree_count:0,tree_lost_count:0,current_path_count:n.length,new_path_count:n.length,current_last_uuid:s??"",new_last_uuid:n[n.length-1]}),a))return jt(t.jsx(XS,{defaultMessage:"This conversation was updated on another device. Refreshing. Your message was not sent.",id:"30ngYoNm70"}),{uniqueKey:"stale-leaf-send-guard"}),At.current(),s},[i,It,At,jt,Lt]),Dt=e.useCallback(async({prompt:e,rawPrompt:s,attachments:n,files:a,syncSources:r,compass_mode:o,compass_suggestion_accept:l,parent_message_uuid:c,onboarding_chat_variant:d,createConversationParams:u,tool_states:m,modelOverride:p,effortOverride:f,thinkingModeOverride:g,suppressPromptRecovery:h,backgroundRedeliveryProbe:C,elicitationAnswer:x,turnMessageUuids:v})=>{if(Dn(i)&&!x&&!u&&!ve&&"local_session"!==ye?.type&&!L)return _t(t.jsx(Hn,{})),!h&&(e.length>0||n.length>0||a.length>0)&&St({prompt:e,attachments:n,files:a,forced:!0,conversationUuid:i}),"blocked_latch";if((y={isStreaming:Ye.current,elicitationAnswer:!!x,isInlineCreate:!!u,isSession:ve,isLocalSessionRoute:"local_session"===ye?.type,isExternalConversation:L}).isStreaming&&!y.elicitationAnswer&&!y.isInlineCreate&&!y.isSession&&!y.isLocalSessionRoute&&!y.isExternalConversation)return"blocked_busy";var y;if(C){const e=u_.getState(),t=(m_.getState().byConversation?.[i]?.length??0)>0;if(zt.current||e.cardOutstandingFor?.conversationUuid===i&&Date.now()-e.cardOutstandingFor.at<p_||e.pending?.conversationUuid===i||e.retryInflightFor===i||t)return"blocked_busy"}if(!u&&!x&&!C){if(Rt())return!h&&(e.length>0||n.length>0||a.length>0)&&St({prompt:e,attachments:n,files:a,forced:!0,conversationUuid:i}),"blocked_busy"}!zt.current&&"armed"!==qm(i)||C||(zt.current=!1,f_(i),g_(i,"idle")),mt({type:"SET_ACTIVE_MESSAGE_UUID",uuid:void 0}),pt(i,{conversationFiles:[...dt.files,...a],allAttachments:[...dt.attachments,...n],projectUuid:_});const b=Vg.getState(),k=C||c?null:b.lastServerLeafMessageUuid,w=C?void 0:k||Ke.current||void 0;k&&b.setLastServerLeafMessageUuid(null);const M={prompt:e,rawPrompt:s,attachments:n,files:a,syncSources:r,rethrowErrors:!0,parent_message_uuid:c??w,compass_mode:o,compass_suggestion_accept:l,onboarding_chat_variant:d,createConversationParams:u,tool_states:m,modelOverride:p,effortOverride:f,thinkingModeOverride:g,suppressPromptRecovery:h,backgroundRedeliveryProbe:C,elicitationAnswer:x,turnMessageUuids:v};return!u&&Pn(i)?"blocked_busy":(await Qe.current(M),"dispatched")},[ye?.type,ve,L,Ye,Qe,mt,pt,i,dt.files,dt.attachments,_,_t,St,Rt]),Ht=eWe({conversationUuid:i,showOnboardingChat:it,storedOnboardingVariant:at,isLoading:u,send:Dt,applyPrefill:e.useCallback(e=>Ct.current?.setContent(e,[],[]),[])}),Pt=e.useCallback((e,t,s)=>{(!Ye.current&&!Dn(i)||ve||"local_session"===ye?.type||L)&&((zt.current||"armed"===qm(i))&&(zt.current=!1,f_(i),g_(i,"idle")),mt({type:"SET_ACTIVE_MESSAGE_UUID",uuid:void 0}),pt(i,{conversationFiles:dt.files,allAttachments:dt.attachments,projectUuid:_}),Je.current(e,t,void 0,s))},[mt,pt,i,dt.files,dt.attachments,_,Je,Ye,ve,ye?.type,L]),Ut=Dr(We),Ot=e.useCallback(async e=>{if((Ye.current||Dn(i))&&!ve&&"local_session"!==ye?.type&&!L)return;if(Rt())return;const t=Ut.current.formatMessage({defaultMessage:"Continue",id:"acrOozm08x"});await Qe.current({prompt:t,attachments:[],files:[],syncSources:[],rethrowErrors:!0,suppressPromptRecovery:!0,parent_message_uuid:Ke.current||void 0,modelOverride:e})},[Ut,Qe,Ye,ve,ye?.type,L,i,Rt]),{mutate:Ft,isPending:Vt}=h_(i),zt=e.useRef(!1),Zt=e.useRef([]),Bt=e.useRef(void 0),qt=e.useRef(0);e.useEffect(()=>()=>{"armed"===qm(i)&&g_(i,"idle"),zt.current&&(zt.current=!1,f_(i),"stopping"===qm(i)&&g_(i,"idle"))},[i]);const Wt=e.useCallback(()=>{zt.current=!1,f_(i),g_(i,"idle");const e=Pn(i),t=!!e&&C_()===e.controller.signal,s=t?q_()??void 0:void 0;if(e&&void 0!==Vm(i)){const e=x_(i);e&&v_(e)}y_(i),t?(W_(),$_(),b_(i)):e&&(e.controller.abort(),b_(i)),k_(i),"local_session"===ye?.type||L||Ft(s?{completion_id:s}:void 0),S&&S()},[Ft,S,ye?.type,L,i]),$t=Dr(x),Gt=e.useCallback(()=>{if(!zt.current)return;if("stopping"!==qm(i))return zt.current=!1,void f_(i);zt.current=!1;const e=Pn(i),t=w_(i),s=t?En(t):void 0,n=Zt.current;if(e&&e.controller!==Bt.current||0===n.length||s&&!n.includes(s))return f_(i),void("stopping"===qm(i)&&g_(i,"idle"));if(!M_(i))return f_(i),void("stopping"===qm(i)&&g_(i,"idle"));if(__(i))return f_(i),void g_(i,"idle");if(!$t.current)return f_(i),void g_(i,"idle");mt({type:"SET_ACTIVE_MESSAGE_UUID",uuid:void 0}),pt(i,{conversationFiles:dt.files,allAttachments:dt.attachments,projectUuid:_}),g_(i,"retrying");const a=j_(i);S_(i,Zt.current);const r=a,o=L_(i),l=N_(i);let c;try{c=$t.current?.()}catch(u){k.error(w.CHAT_COMPLETION,"answer-now dispatch threw synchronously",u),c=void 0}if(!c)return r&&L_(i)===o&&I_(i),void(N_(i)===l&&g_(i,"idle"));const d=()=>{r&&L_(i)===o?(B_(i),k_(i)):r||N_(i)!==l||B_(i)};c.then(d,d)},[i,mt,pt,dt.files,dt.attachments,_,$t]),Kt=e.useRef(()=>{}),Yt=e.useRef(i),Qt=e.useRef(void 0),Jt=e.useCallback(()=>{if(!x||zt.current)return;if("local_session"===ye?.type)return;const e="armed"===qm(i),t=T_(i);e||Lt({event_key:"claudeai.quick_answer.clicked",had_thinking:t,conversation_uuid:i});const s=Pn(i),n=!!s&&C_()===s.controller.signal;if(A_(i)||n&&E_())return void(e&&g_(i,"idle"));if(function(e){return void 0===Vm(e)}(i)){if(!e&&Pn(i)){g_(i,"armed"),Qt.current?.();const e=cp.subscribe(()=>Yt.current!==i||"armed"!==qm(i)?(e(),void(Qt.current===e&&(Qt.current=void 0))):void(void 0!==Vm(i)&&(e(),Qt.current===e&&(Qt.current=void 0),Kt.current())));Qt.current=e}return}if(Vt)return void(e&&g_(i,"idle"));if(!cp.getState().byConversation[i])return void(e&&g_(i,"idle"));zt.current=!0;const a=w_(i),r=a?En(a):void 0,o=R_(i),l=!!o&&void 0!==Vm(i)&&D_(i)===x_(i)&&!!x_(i);Zt.current=[...r?[r]:[],...l&&o&&o!==r?[o]:[]];const c=Pn(i);Bt.current=c?.controller;const d=++qt.current;f_(i);const u=H_(i),m=void 0!==Vm(i),p=(m?x_(i):void 0)??(u?En(u):void 0);p&&(P_(i,p),c&&m&&v_(p)),g_(i,"stopping");const f=!!c&&C_()===c.controller.signal,g=f?q_()??void 0:void 0;y_(i),f?(W_(),$_(),b_(i)):c&&(c.controller.abort(),b_(i)),Ft(g?{completion_id:g}:void 0,{onSuccess:()=>{qt.current===d&&Gt()},onError:()=>{qt.current===d&&(zt.current=!1,f_(i),"stopping"===qm(i)&&g_(i,"idle"))}}),S&&S()},[x,i,Ft,Gt,S,ye?.type,Vt,Lt]);Kt.current=Jt,Yt.current=i;const Xt="armed"===zm(i);e.useEffect(()=>{!Xt&&Qt.current&&(Qt.current(),Qt.current=void 0),Xt&&!c&&g_(i,"idle")},[Xt,c,i]),e.useEffect(()=>()=>{Qt.current?.(),Qt.current=void 0},[i]);const es=e.useCallback((e,t,s,n,a)=>{if(!o)return;if(Le(e)===t&&!n&&!a)return;if(Dn(i))return;zt.current=!1,f_(i);const r=Pn(i);if(r&&C_()===r.controller.signal&&$_(),g_(i,"idle"),Ye.current&&"local_session"!==ye?.type&&!L){const e=r&&C_()===r.controller.signal?q_()??void 0:void 0;Ft(e?{completion_id:e}:void 0)}r&&!r.controller.signal.aborted&&S&&S(),mt({type:"CLEAR_SELECTED"}),n&&Lt({event_key:"claudeai.safety.cta_retry.sent",conversation_uuid:i,model:s??null,text_changed:Le(e)!==t}),n&&s&&(U_.getState().clear(i),Rn.getState().commitModelOverride(i,s)),o(e,t,s,n,a),k_(i)},[mt,o,i,ye?.type,Ft,S,Ye,L,Lt]),ts=e.useMemo(()=>XPe(),[]);e.useEffect(()=>(ts.on("retry",({parent_message_uuid:e,paprika_mode:t,modelOverride:s})=>{Pt(e,t,s)}),ts.on("edit",({message:e,text:t,modelOverride:s,isModelRetry:n,stripFiles:a})=>{es(e,t,s,n,a)}),()=>{ts.off("retry"),ts.off("edit")}),[ts,Pt,es]);const{files:ss,attachments:ns,selectedItem:is}=dt,{isDrawerExpanded:rs,setIsDrawerExpanded:os}=DN(),ls=O_(),cs=e.useCallback(()=>{mt({type:"CLEAR_SELECTED"}),os(!0)},[mt,os]),ds=Ug(),us=e.useCallback(()=>{os(!1),ls(),ye&&ds(!0)},[os,ds,ye,ls]);e.useEffect(()=>{mt({type:"UPDATE_FILES",files:He})},[He,mt]),e.useEffect(()=>{mt({type:"UPDATE_ATTACHMENTS",attachments:Pe})},[mt,Pe]),e.useEffect(()=>{mt({type:"UPDATE_SYNC_SOURCES",syncSources:Ue})},[mt,Ue]);const ms=e.useCallback(e=>{cs(),mt({type:"SELECT_ATTACHMENT",attachment:e})},[mt,cs]),ps=e.useMemo(()=>Boolean(ze?.preview_feature_uses_artifacts||Re||L),[ze,Re,L]),fs=ke("thumbs").isAvailable,gs=e.useRef(dt.selectedItem),hs=e.useRef(rs);e.useEffect(()=>{gs.current=dt.selectedItem,hs.current=rs},[dt.selectedItem,rs]);const Cs=e.useCallback((e,t,s,n)=>{const a=gs.current,i=hs.current&&"artifact"===a?.type&&a.id===e;if(!n?.autoOpen&&!i){const t=window.location.pathname;F_("artifact_open",{trigger:"panel_open",route:t.startsWith("/chat/")?"/chat/$uuid":t.startsWith("/cowork/")?"/cowork/$sessionId":void 0,artifactId:e})}cs(),mt({type:"SELECT_ARTIFACT",id:e,versionUuid:s}),mt({type:"SET_ACTIVE_MESSAGE_UUID",uuid:t||""})},[mt,cs]),xs=e.useCallback((e,t,s,n)=>{const a="project-doc"===n?.via?e:decodeURIComponent(e.replace("computer://",""));cs(),mt({type:"SELECT_FILE",path:a,toolType:"create_file",messageId:t,fileUuid:s,openWith:n,entryPoint:"wiggle_file_card"})},[mt,cs]);vFe();const vs=e.useMemo(()=>({onChipClick:e=>{cs(),mt({type:"SELECT_FILE",path:V_(e.target),toolType:"create_file",messageId:"",entryPoint:"review_comment_chip"})}}),[cs,mt]),bs=e.useRef({lastOpenedId:null});e.useEffect(()=>{if(!Ze)return;const e=bs.current.lastOpenedId===De;c&&De&&!e&&(bs.current.lastOpenedId=De,Cs(De,void 0,void 0,{autoOpen:!0}))},[c,De,Cs,Ze]),e.useEffect(()=>{const e=new URLSearchParams(window.location.search),t=e.get("artifactId"),s=e.get("versionUuid");t&&(cs(),mt({type:"SELECT_ARTIFACT",id:t,versionUuid:s||void 0}));const n=e.get("coworkArtifact");n&&(cs(),mt({type:"SELECT_COWORK_ARTIFACT",id:n}))},[]);const{getCreateParamsForConvo:ks,clearCreateParamsForConvo:ws}=z_(),Ms=e.useRef(new Set);e.useEffect(()=>{if(u)return;if(Ms.current.has(i))return;const e=ks(i);if(e&&void 0!==e.prompt&&(e.prompt.length>0||e.files.length>0||e.attachments.length>0||e.syncSources.length>0)){if(e.voice_mode_active)return void ws(i);if(e.prefillOnly){if(!Ct.current)return;return Ms.current.add(i),Ct.current.setContent(e.prompt,e.attachments,e.files,{unsafe:e.prefillUnsafe}),void ws(i)}if(Ms.current.add(i),Pn(i))return pt(i,{conversationFiles:e.files,allAttachments:e.attachments,projectUuid:_}),void ws(i);e.dispatchedPreNavigate&&Bl("chat.pre_navigate_dispatch_fallback",{attributes:{"chat.reason":"no_stream_context","chat.conversation_uuid":i}});const t={...e,createConversationParams:e.inlineCreateConversationParams};Dt(t).then(()=>{ws(i)}).catch(()=>{ws(i),t.createConversationParams?(e.suppressPromptRecovery||Z_(e.prompt,{attachments:e.attachments,files:e.files,syncSourceUuids:e.syncSources.map(e=>e.uuid)}),xe.replace("/new")):e.suppressPromptRecovery||Ct.current?.setContent(e.prompt,e.attachments,e.files,{unsafe:Aa(e.prompt)})})}},[i,Dt,ks,ws,u,xe,pt,_]);const{data:_s}=Ee(_),js=as(),Ss=ys(we?void 0:_),{setTemporaryConversationUuid:Ls}=Va(),Ns=Qx({setTemporaryConversationUuid:Ls}),Is=e.useCallback((e,t)=>{Ye.current||(mt({type:"CLEAR_SELECTED"}),s?.(e,t))},[s,mt,Ye]),Ts=rr(i),As=e.useMemo(()=>rs&&dt.selectedItem?dt.selectedItem:void 0,[rs,dt.selectedItem]),Es=e.useCallback(e=>t.jsx(dAe,{...e,conversationUuid:i,onOpenArtifact:ps?Cs:void 0,selectedDrawerItem:As,autoscrollRef:Ge,isSessionChat:ve,toolPermissionRequests:H,onToolDecision:P}),[i,ps,Cs,As,ve,H,P]),Rs="local_agent_mode_session"===R?.type?void 0:R?.id,Ds=e.useMemo(()=>({id:i,messagesSoFar:p.length,files:ss,attachmentsSoFar:ns.length,isSampling:c,isStoppingSampling:Vt,model:Ts,projectKnowledgebaseTokens:Ss??0,conversationSettings:ze,sessionId:Rs,isSessionActivelyWorking:ve&&c,isExternalConversation:L}),[ns.length,ze,i,ss,Vt,c,p.length,Ts,Ss,Rs,ve,L]),Hs=e.useCallback(async e=>{await Dt({prompt:e.prompt,attachments:[],files:e.files,syncSources:[]})},[Dt]),Ps=e.useContext(gd),Us=Xi().isAvailable&&!Ps.hideHeader,Os=Iv(),Fs=e.useMemo(()=>{const e=Ce.getState(),t=iVe(p,e.messageByUuid),s=t.findLastIndex(t=>"assistant"===e.messageByUuid[t.lastMessageUuid]?.sender);return t.map((n,a)=>{const i=e.messageByUuid[n.firstMessageUuid],r=e.messageByUuid[n.lastMessageUuid],o=a===t.length-1,l=a===t.length-2,c=a===s,d=n.isChain&&r&&i?{...i,content:n.mergedContent,stop_reason:r.stop_reason,updated_at:r.updated_at}:void 0,u="human"===r?.sender&&(l||o),m=a>0?t[a-1]:null,p=m?.lastMessageUuid;return{chain:n,displayMessage:d,isLastMsg:o,isLastHuman:u,isLastAssistantMsg:c,previousMessageUuid:p,lastMessage:r,heightHint:function(e,t){const s=WBe;let n=0,a=0,i=0;const r=(e=>{if(null===e||"object"!=typeof e)return"";const t=e.content;if("string"==typeof t)return t;if(Array.isArray(t))return t.map(e=>{if("string"==typeof e)return e;if(null===e||"object"!=typeof e)return"";const t=e;return"tool_use"===t.type?(n++,""):"tool_result"===t.type?(a++,""):"image"===t.type?(i++,""):"string"==typeof t.text?t.text:""}).join("\n");const s=e.text;return"string"==typeof s?s:""})(e),o=r.slice(0,2e4),l=Math.max(1,Math.ceil(r.length/s.charsPerLine));let c=s.base+l*("human"===t?s.lineHeightHuman:s.lineHeightAssistant);c+=Math.floor((o.match(/```/g)??[]).length/2)*s.fence;const d=o.split("\n");let u=0;for(let C=0;C+1<d.length;C++)d[C].startsWith("|")&&-1!==d[C].indexOf("|",1)&&/^\|[-:| ]+\|\s*$/.test(d[C+1])&&u++;c+=u*s.table;const m=(o.match(/^[ \t]*[-*+][\s]|^[ \t]*\d+\.[\s]/gm)??[]).length;m>0&&(c+=s.listBase+m*s.listPerLine),c+=n*s.toolUse+a*s.toolResult;const p=e,f=e=>Array.isArray(e)?e.length:0,g=p?(f(p.files_v2)>0?f(p.files_v2):f(p.files))+f(p.attachments):0,h=i+g;return h>0&&(c+=Math.ceil(h/s.thumbsPerRow)*s.thumbRow),c}(d??r,r?.sender)}})},[p]),Vs=function({conversationUuid:t,messageCount:s,toolIsolationMode:n}){const a=ke("web_search_mcp_isolation").isAvailable,{blocksMcp:i,blocksWebSearch:r}=Lw(n,a),o=i||r,[l,c]=e.useState(null);e.useEffect(()=>{o&&s>0&&c(e=>e?.uuid===t&&e.index<s?e:{uuid:t,index:s-1})},[o,s,t]);const d=l?.uuid===t?l.index:null;return e.useMemo(()=>({anchor:d,blocksMcp:i,blocksWebSearch:r}),[d,i,r])}({conversationUuid:i,messageCount:Fs.length,toolIsolationMode:ze?.tool_isolation_mode}),zs=R?.id,Zs=R?.type,Bs=p.length,qs=Ve?.uuid,Ws=Ke.current,$s=e.useMemo(()=>{const e=Us&&!Ht.show?t.jsx(BZe,{conversationUuid:i,projectUuid:_,sessionId:zs,isStreaming:c,isTemporary:d,messagesLength:Bs,hideShare:!!X,debugInfo:D}):null;return e?t.jsxs(t.Fragment,{children:[e,null]}):null},[Us,Ht.show,i,_,zs,c,d,Bs,X,D,Os]),Gs=e.useMemo(()=>t.jsx(mVe,{organizationUuid:qs??null,conversationUuid:i,parentMessageUuid:Ws,inheritedMessageCount:Bs}),[qs,i,Ws,Bs]),Ks=e.useMemo(()=>t.jsx(SZe,{conversationUuid:i,isOpen:rs,onClose:us,isStreaming:c,projectUuid:_,sendMessage:Dt,canQueueSend:be,isTemporary:d,resourceActivity:z,deliveredFileUuidByPath:Z,fsLastModified:B}),[i,Z,rs,us,c,_,Dt,be,d,z,B]),Ys=e.useMemo(()=>qe?t.jsxs(t.Fragment,{children:[t.jsx(hOe,{}),Be&&t.jsx(LFe,{dismissible:!0,surface:"conversation_pill_header"})]}):Be?t.jsx(LFe,{dismissible:!0,surface:"conversation_pill_header"}):void 0,[Be,qe]),Qs=e.useMemo(()=>({conversationUuid:i,name:f,titleKnown:g,project:js?_s:void 0,controlsSidebarIsOpen:rs&&"timeline_steps"!==is?.type,closeControlsSidebar:us,openControlsSidebar:cs,isStreaming:c,isLoading:u,messagesLength:Bs,isLocalAgentSession:"local_agent_mode_session"===Zs,onRenameSession:X,onArchiveSession:ee,onDeleteSession:te,isStarred:se,onToggleStarred:ne,scheduledTaskId:re,sessionId:oe,onScheduleTask:vt.enabled&&!L?wt:void 0,onTurnIntoSkill:L?void 0:Mt,beforeTitle:ge,afterTitle:he,centerOverlay:Ys}),[i,f,g,js,_s,rs,is?.type,us,cs,c,u,Bs,Zs,X,ee,te,se,ne,re,oe,vt.enabled,L,wt,Mt,ge,he,Ys]);return Fe?t.jsxs(t.Fragment,{children:[Te&&t.jsx(aVe,{conversationUuid:i,messageCount:p.length,isStreaming:c,sessionTitle:f}),t.jsx(bWe,{isStreaming:c,conversationUuid:i,dispatchChatResource:mt,openControlsSidebar:cs,isDrawerExpanded:rs,maxTrackedFiles:RWe,selectComputerFile:xs,lastMessageUuid:Oe||void 0},i),t.jsx(DBe,{autoscrollRef:Ge,hideHeader:Ht.show,autoScrollInnerClassName:"flex flex-col",disableScroll:ft,belowHeaderElement:A,rightSidebarElement:$s,mainElement:t.jsx(PWe,{conversationUuid:i,conversationTitle:a,scopeBoundModel:b,onSaveModel:M,projectUuid:_,name:f,isSession:ve,isExternalConversation:L,agentRoute:ye,isLocalAgentModeContext:we,sessionHostLoopMode:_e,hasDesktopFrame:je,activeOrganizationUuid:Ve?.uuid,isStreaming:c,isLoading:u,inputDisabled:m,canEditMessages:void 0!==o,showEditPencil:l??void 0!==o,isTemporary:d,retryCount:j,sdkCompactionStatus:F,sdkApiRetryStatus:V,isWaitingState:J,streamingContentLength:ce,streamingThinkingTokens:de,messageUuids:p,messageChainData:Fs,firstMessage:Ae,session:R,sessionId:oe,sessionStatusMessage:N,sessionError:I,sessionErrorCategory:T,sessionConnectionState:W,sessionNextReconnectTime:$,activityStartTime:q,lastUserMessageUuid:E,debugInfo:D,scheduledTaskId:re,promptSuggestion:ue,onSessionRetry:G,onSessionTryAgain:K,onSessionRewind:Y,onRewindToMessage:Q?tt:void 0,toolPermissionRequests:H,onToolDecision:P,onMessageFeedback:U,mcqAnswers:O,conversation:Ds,conversationSettings:ze,showArtifacts:ps,chatFeedbackEnabled:fs,isMcpAppFullscreen:ft,isCommandPaletteOpen:Ie,incognitoString:$e,isDesktopViewport:Ze,toolIsolationNotice:Vs,review:vs,embedConfig:Ps,showOnboardingChat:it,showOnboardingEmptyState:rt,storedOnboardingVariant:at,guidedSetup:Ht,skipGuidedSetup:ot,sawOnboardingEmptyStateRef:lt,autoscrollRef:Ge,scrollRefs:gt,chatInputRef:Ct,send:Dt,sendQuickEntry:Hs,sendContinue:Ot,newChat:Ns,onStopSampling:Wt,onAnswerNow:x&&"local_session"!==ye?.type?Jt:void 0,onRetry:Xe,selectArtifact:Cs,selectComputerFile:xs,selectAttachment:ms,handleChangeDisplayedConversationPath:Is,renderToolUseCell:Es,emitter:ts,markEditorReady:xt,renderAboveInput:pe,renderAboveMessages:fe}),auxilaryElement:Gs,drawerElement:Ks,isDrawerOpen:Boolean(rs&&is),drawerFixedWidthPx:"timeline_steps"===is?.type?360:void 0,headerProps:Qs})]}):null});const PWe=e.memo(function({conversationUuid:s,conversationTitle:n,scopeBoundModel:a,onSaveModel:i,projectUuid:r,name:o,isSession:l,isExternalConversation:c,agentRoute:d,isLocalAgentModeContext:u,sessionHostLoopMode:m,hasDesktopFrame:p,activeOrganizationUuid:f,isStreaming:g,isLoading:h,inputDisabled:C,canEditMessages:x,showEditPencil:v,isTemporary:b,retryCount:k,sdkCompactionStatus:w,sdkApiRetryStatus:M,isWaitingState:_,streamingContentLength:j,streamingThinkingTokens:S,messageUuids:L,messageChainData:N,firstMessage:I,session:T,sessionId:A,sessionStatusMessage:E,sessionError:R,sessionErrorCategory:D,sessionConnectionState:H,sessionNextReconnectTime:P,activityStartTime:U,lastUserMessageUuid:O,debugInfo:F,scheduledTaskId:V,promptSuggestion:z,onSessionRetry:Z,onSessionTryAgain:B,onSessionRewind:q,onRewindToMessage:W,toolPermissionRequests:$,onToolDecision:G,onMessageFeedback:K,mcqAnswers:Y,conversation:Q,conversationSettings:J,showArtifacts:X,isDesktopViewport:ee,chatFeedbackEnabled:te,isMcpAppFullscreen:se,isCommandPaletteOpen:ne,incognitoString:ae,toolIsolationNotice:ie,review:re,embedConfig:oe,showOnboardingChat:le,showOnboardingEmptyState:ce,storedOnboardingVariant:de,guidedSetup:ue,skipGuidedSetup:me,sawOnboardingEmptyStateRef:pe,autoscrollRef:fe,scrollRefs:ge,chatInputRef:he,send:Ce,sendQuickEntry:xe,sendContinue:ve,newChat:ye,onStopSampling:be,onAnswerNow:ke,onRetry:we,selectArtifact:Me,selectComputerFile:_e,selectAttachment:je,handleChangeDisplayedConversationPath:Se,renderToolUseCell:Ne,emitter:Ie,markEditorReady:Te,renderAboveInput:Ae,renderAboveMessages:Ee}){const Re=JS(),De=uN(),He=mN(50),Pe=Dr(ke),Ue=e.useMemo(()=>ke?()=>Pe.current?.():void 0,[void 0===ke]),Oe=aUe(),Fe=G_(s,g),{context:Ve}=a_(s),ze=Ia(e=>Object.keys(e.remoteServers).length>0),Ze=function(e){return cme(t=>t.inFlightConversations.has(e))}(s),Be=Tc(A??null),qe=K_(),We=y("claude_ai_pending_client_action_watcher"),[$e,Ge]=e.useState(null),Ke=e.useMemo(()=>{if(g&&Fe&&Fe.content)return Fe.content[Fe.content.length-1]},[g,Fe]),Ye="local_session"===d?.type&&1===L.length&&"human"===Fe?.sender,Qe=g&&(!Fe||Ye||!Fe.content?.[0]&&0===Fe.attachments.length&&0===Gz(Fe).length),Je=Ke&&("tool_use"===Ke.type||"tool_result"===Ke.type),Xe=e.useMemo(()=>{if(Fe&&!g)return Tx(Fe)},[g,Fe]),et=!g&&"local_session"!==d?.type&&void 0!==Xe,{compassStatus:tt}=FH({organizationUuid:f,conversationUuid:s,taskId:Xe,isShared:!1,enabled:et}),st=e.useMemo(()=>{if(!Fe||g)return!1;const e=Y_(Fe);return Boolean(e&&!e.is_error&&Q_(tt?.status))&&!J_(Fe)},[g,tt,Fe]),nt=e.useRef({conversationUuid:"",armedTaskId:void 0});e.useEffect(()=>{const e=nt;if(e.current.conversationUuid!==s&&(e.current={conversationUuid:s,armedTaskId:void 0}),st)return void(e.current.armedTaskId=Xe);if(void 0===e.current.armedTaskId||e.current.armedTaskId!==Xe)return;if(!ee)return void(e.current.armedTaskId=void 0);const t=Fe&&X_(Fe);t&&(e.current.armedTaskId=void 0,Me(t,void 0,void 0,{autoOpen:!0}))},[s,Xe,st,Fe,Me,ee]);const at=nI(e=>e.fullscreenMessageUuid),it=e.useMemo(()=>{if(!at)return;const e=N.findIndex(e=>e.chain.messageUuids.includes(at));return e>=0?e:void 0},[at,N]),rt=e.useCallback(()=>fe.current?.getScrollContainer()??null,[fe]),ot=e.useCallback(()=>fe.current?.isPinned()??!1,[fe]),lt="local_session"===d?.type,ct=e.useMemo(()=>$&&(lt||c)&&!se?t.jsx(hae,{toolPermissionRequests:$,onToolDecision:G,isScheduledTask:!!V,isExternalSurface:!lt&&c}):null,[$,lt,c,se,G,V]),ut=e.useCallback(()=>{fe.current?.setPinToBottom(!1),fe.current?.markUserInput?.()},[fe]),mt=e.useCallback(e=>{const t=e.displayMessage??e.lastMessage;return t?function(e,t){const s="human"===e.sender,n=t?Xp:ap;let a="";for(const i of e.content??[]){if("_isSubagentBlock"in i&&i._isSubagentBlock)continue;const e=Jp(i);if("text"===i.type||void 0!==e){let t=e??i.text;if(s){const e=zoe(t);t=e?Goe(e):q4(t)}a+=Boe($oe(n(t)))+"\n"}}return a}(t,X):""},[X]),pt={isStreaming:g,conversationUuid:s,conversationSettings:J,showArtifacts:X,selectArtifact:Me,selectComputerFile:_e,selectAttachment:je,handleChangeDisplayedConversationPath:Se,inputDisabled:C,emitter:Ie,sendContinue:ve,isResearchPending:st,isTemporary:b,chatFeedbackEnabled:te,isSession:l,isLocalAgentModeContext:u,onRewindToMessage:W,canEditMessages:x,showEditPencil:v,toolIsolationAnchor:ie.anchor,toolIsolationBlocksMcp:ie.blocksMcp,toolIsolationBlocksWebSearch:ie.blocksWebSearch},ft=Dr(pt),gt=e.useMemo(()=>({}),[g,s,J,X,Me,_e,je,Se,C,Ie,ve,st,b,te,l,u,W,x,v,ie.anchor,ie.blocksMcp,ie.blocksWebSearch]),ht=e.useCallback(e=>{const s=N[e];if(!s)return null;const n=ft.current;return t.jsx(ANe,{previousMessageUuid:s.previousMessageUuid,messageUuid:s.chain.firstMessageUuid,...s.displayMessage&&!(n.isStreaming&&s.isLastMsg)&&{message:s.displayMessage},conversationUuid:n.conversationUuid,conversationSettings:n.conversationSettings,isStreaming:(s.isLastMsg||s.isLastHuman)&&n.isStreaming,isLastMessage:s.isLastMsg,isLastHumanMessage:s.isLastHuman,isLastAssistantMessage:s.isLastAssistantMsg,onOpenArtifact:n.showArtifacts?n.selectArtifact:void 0,onOpenWiggleFile:n.selectComputerFile,selectAttachment:n.selectAttachment,changeDisplayedConversationPath:n.handleChangeDisplayedConversationPath,editable:!n.inputDisabled&&n.canEditMessages,showEditPencil:n.showEditPencil,actionEmitter:n.emitter,onSendContinue:s.isLastMsg&&!n.inputDisabled?n.sendContinue:void 0,isResearchPending:n.isResearchPending,isTemporary:n.isTemporary,showArtifacts:n.showArtifacts,chatFeedbackEnabled:n.chatFeedbackEnabled,isRemoteAgentMode:n.isSession,isInteractive:!0,shareType:null,showSharedImageMissing:!1,showSharedFileMissing:!1,isSessionConversation:n.isSession,isCoworkSession:n.isLocalAgentModeContext,onRewindToMessage:n.onRewindToMessage})},[N,ft]),Ct=e.useCallback(e=>{if(!N[e])return null;const s=ft.current;return e!==s.toolIsolationAnchor?null:t.jsx(aFe,{blocksMcp:s.toolIsolationBlocksMcp,blocksWebSearch:s.toolIsolationBlocksWebSearch})},[N,ft]),xt=zm(s),vt="stopping"===xt||"retrying"===xt&&"assistant"===Fe?.sender&&!Fe.content?.[0],yt=e.useMemo(()=>Qe?"thinking":Je||st||(l||c)&&g?"shimmer":g?"writing":vt?"thinking":"static",[Qe,Je,st,g,l,c,vt]);lqe(n,Qe,g);const bt=e.useMemo(()=>!(!Fe||g)&&Wie(Fe.content),[Fe,g]),kt=e.useMemo(()=>!(!Fe||g)&&("assistant"===Fe.sender&&Fe.content&&Fe.content.some(e=>"tool_result"===e.type&&"web_search"===e.name)),[Fe,g]),wt=d?"compacting"===w:Ve?.compactionStatus&&"failed"!==Ve?.compactionStatus,Mt=g&&(k||2===L.length||wt||M),_t=e.useMemo(()=>{},[yt,g,Qe,Je,st,l,wt,R,Ke?.type]),jt=e.useMemo(()=>({extrasRef:ge.extras,isSession:l,isStreaming:g,shouldShowWaitingText:!!Mt,retryCount:k,conversationUuid:s,currentAvatarState:yt,sessionStatusMessage:E,sessionError:R,sessionErrorCategory:D,sessionId:T?.id,sessionHostLoopMode:m,lastUserMessageUuid:O,debugInfo:F,sparkDebugInputs:_t,sdkCompactionStatus:w,sdkApiRetryStatus:M,activityStartTime:U,sessionConnectionState:H,isWaitingState:_,isCompacting:wt,streamingContentLength:j,streamingThinkingTokens:S,onSessionTryAgain:B,onSessionRewind:q,answerNowHandoffGap:vt}),[ge.extras,l,g,Mt,k,s,yt,E,R,D,T?.id,m,O,F,_t,w,M,U,H,_,wt,j,S,B,q,vt]),St=e.useMemo(()=>t.jsxs(t.Fragment,{children:[ct,t.jsx(TWe,{})]}),[ct]),Lt=e.useCallback((e,t)=>we(e,void 0,void 0,t),[we]),Nt=e.useCallback((e,t)=>Ie.emit("edit",{message:e,text:Le(e),modelOverride:t,isModelRetry:!0,stripFiles:!0}),[Ie]),It=rK(),Tt=e.useMemo(()=>ue.show?t.jsx(Jqe,{placeholder:0===L.length?Re.formatMessage({defaultMessage:"Or just say hi\u2026",id:"4zIlUPWThW"}):Re.formatMessage({defaultMessage:"Reply to Claude\u2026",id:"ZA4ifEIe2U"}),isStreaming:g,onSend:ue.send,onStop:be,isWrapped:ue.wrapped,onContinue:ue.complete}):Q.conversationSettings?.create_mode&&0===L.length?null:bt?t.jsx("div",{ref:ge.chatInput,className:"sticky bottom-0 mx-auto w-full pt-6 z-[5] print:hidden",children:t.jsx(KZe,{conversationUuid:s})}):t.jsxs("div",{ref:ge.chatInput,"data-chat-input-container":!0,className:dt("sticky bottom-0 mx-auto w-full pt-6 print:hidden",se?"z-50":"z-[5]"),style:se?{...De?{zIndex:He}:void 0,viewTransitionName:"mcp-chat-input-container"}:void 0,children:[!se&&t.jsx(rWe,{autoscrollRef:fe,sentinelElement:$e,isStreaming:g,isSession:l}),t.jsx(xOe,{conversationUuid:s,onAnswerNow:Ue}),l&&Z&&t.jsx("div",{className:"px-4 pb-2",children:t.jsx(eFe,{connectionState:H??"connected",nextReconnectTime:P??null,onRetryNow:Z})}),oe.aboveComposer,Ae,null,t.jsx(pPe,{ref:he,placement:"bottom",onReady:Te,disabled:h&&!c||C,onRetry:Lt,onRetryWithoutFiles:Nt,disableDropZone:ne,enableScreenDrop:!ne&&!It,isStreaming:g,promptSuggestion:z,placeholder:ce&&"own_topic"===de?Re.formatMessage({defaultMessage:"Tell Claude what you\u2019re working on",id:"TxfbHepsyD",description:"Onboarding first-chat (own_topic): chat input placeholder"}):void 0}),t.jsx(EWe,{isTemporary:b,incognitoString:ae,hasWebSearchResponse:!!kt,isMcpAppFullscreen:se})]}),[Q.conversationSettings?.create_mode,L.length,bt,ge.chatInput,$e,g,h,C,c,ne,It,s,Lt,Nt,l,b,ae,kt,se,H,P,Z,z,ue,be,ce,de,Re,Ae,oe.aboveComposer,Te,fe,he,Ue,De,He]);return t.jsxs(ej,{conversation:Q,scopeBoundModel:a??Q.model,onSaveModel:i??DWe,projectUuid:u?void 0:r,onSend:Ce,onCreate:ye,onStopSampling:be,review:re,children:[t.jsx(dFe,{}),t.jsx(FFe,{organizationUuid:f??"",conversationUuid:s,children:t.jsx(Lz,{children:t.jsxs(A9,{children:[t.jsx(nWe,{chatId:s,chatName:o,onSend:xe,hasFirstMessage:!!I&&!h}),t.jsxs("div",{className:dt("mx-auto flex w-full flex-1 flex-col",ue.show?"max-w-[840px] px-5 [--font-claude-response:var(--font-ui)] [&_.font-claude-response]:max-w-xl [&_.font-claude-response:has([data-guided-setup-recommend])]:max-w-none [&_.font-claude-response]:mt-6 [&_[data-user-message-bubble]]:bg-bg-500":p?"max-w-[50.5rem] px-5":"max-w-3xl md:px-2"),children:[t.jsx(aWe,{isStreaming:g}),We&&!l&&"local_session"!==d?.type&&!c&&t.jsx(cFe,{organizationUuid:f,conversationUuid:s,isStreaming:g,hasClientSideTools:$re(J?.compass_mode)||ze||Ze}),ue.show&&t.jsx(bqe,{}),t.jsx(VBe,{conversationUuid:s}),u&&!ga(A??("local_session"===d?.type?d.sessionId:void 0))&&t.jsx("div",{className:"sticky top-0 z-10",children:t.jsx(DFe,{sessionHostLoopMode:"local_agent_mode_session"===T?.type?T.hostLoopMode:void 0,showProgressWhileVmOperationInFlight:Be&&qe})}),t.jsx(nA,{mode:"wait",presenceAffectsLayout:!1,children:h?t.jsx(UWe,{className:"pt-2",children:t.jsx(vOe,{})}):0===L.length?t.jsx(t.Fragment,{children:R?t.jsx(UWe,{className:"pt-4",children:t.jsx(XOe,{errorMessage:R,errorCategory:D??void 0,sessionId:T?.id,sessionHostLoopMode:m,lastUserMessageUuid:O,onTryAgain:B,onRewind:q})}):Q.conversationSettings?.create_mode?t.jsx(UWe,{className:"pt-1",children:t.jsx(qBe,{})}):ue.show?t.jsxs(UWe,{children:[t.jsx(Iqe,{onSkip:me,onContinue:ue.complete,isStreaming:g}),t.jsx(Mqe,{hasMessages:!1})]}):ce?t.jsx(pqe,{variant:de,fallback:t.jsx(UWe,{className:"justify-center items-center",children:t.jsx(sqe,{})})}):"local_session"===d?.type?t.jsx(UWe,{}):t.jsx(UWe,{className:"justify-center items-center",children:t.jsx(sqe,{})})}):t.jsxs(UWe,{className:"pt-1",children:[Q.conversationSettings?.create_mode&&t.jsx(qBe,{selectedLabel:"text"===I?.content?.[0]?.type?I?.content?.[0]?.text:void 0,disabled:L.length>0}),ue.show?t.jsxs(t.Fragment,{children:[t.jsx(Iqe,{onSkip:me,onContinue:ue.complete,isStreaming:g}),t.jsx(Mqe,{hasMessages:!0})]}):le?t.jsx(fqe,{variant:de}):null,Ee,t.jsx(Dv,{renderToolUseCell:Ne,toolPermissionRequests:$,onToolDecision:G,mcqAnswers:Y,onAnswerNow:Ue,conversationUuid:s,onMessageFeedback:K,children:t.jsx(IWe.Provider,{value:jt,children:t.jsx(jWe,{messageChainData:N,isStreaming:g,getScrollElement:rt,keepMountedIndex:it,renderMessage:ht,conversationUuid:s,gap:0,lastHumanMessageRef:ge.lastHumanMessage,lastAssistantMessageRef:ge.lastAssistantMessage,isPinned:ot,onFindScroll:ut,getSearchText:mt,renderAfter:Ct,trailing:St,renderPropsVersion:gt},s)})}),t.jsx(iWe,{ref:Ge}),t.jsx("div",{className:"h-12"}),t.jsx(tqe,{scrollRefs:ge,autoScrollRef:fe,messageCount:L.length,tailMessageUuid:L[L.length-1],initialPrevMessageCount:pe.current?0:void 0,additionalBuffer:ue.show?220:T&&p&&Oe?216:void 0,sentinelElement:$e})]})}),Tt]})]})})})]})});function UWe({className:e,...s}){return t.jsx("div",{...s,className:dt("flex-1 flex flex-col px-4 max-w-3xl mx-auto w-full",e)})}function OWe({conversationUuid:t,pendingUserMessage:s,chatConversationTree:n,isLoading:a}){const i=y("claude_ai_msg_idempotency")?30:10,[r,o]=e.useState(!1),[l,c]=e.useState(!1),[d,u]=e.useState(!1),m=e.useRef(null),p=e.useRef(null),f=e.useRef(!1),g=e.useRef(null),h=e.useRef(null),C=e.useRef(null),x=e.useRef(null),b=Bv(),k=sj(),w=vg(),{activeOrganization:M}=v(),{addError:_}=ut(),{setFailedStreamRetryData:j}=d_(),S=gL(),L=ae(),{data:N,isLoading:I}=B(M?.uuid&&t&&s?`/api/organizations/${M.uuid}/chat_conversations/${t}/completion_status?poll=false`:"",{queryKey:["completion_status",t,s?.uuid],enabled:!(!M?.uuid||!t||a||!s||r),staleTime:0,refetchOnWindowFocus:!1}),T=e.useCallback(()=>{s&&p.current!==s.uuid&&(p.current=s.uuid,j({prompt:(s.content??[]).filter(e=>"text"===e.type).map(e=>e.text).join(""),attachments:s.attachments||[],files:Gz(s)}))},[s,j]),A=e.useCallback(()=>{h.current?.abort(),C.current&&(clearTimeout(C.current),C.current=null)},[]),E=e.useCallback((e,t)=>{T();const s=e||"Message failed. You can try again.";_(s,{error:new cs(s,t||"completion_error",500,{}),errorContext:{tags:{source:"pending_message_recovery"}}})},[T,_]),R=e.useCallback(()=>{if(!s)return;const e=s.uuid,n=()=>f.current||m.current!==e;(async()=>{try{for(let e=1;e<=4;e++){if(n())return;await Qi(S,M?.uuid,t),await je(500*e)}}catch{}n()||(nj(e)?E("Your message was sent, but Claude couldn't respond \u2014 try again.","completion_interrupted_recovered"):E("Your previous message wasn't sent. You can try again.","completion_status_stale"))})()},[s,S,M?.uuid,t,E]),D=e.useCallback(()=>{if(!M?.uuid||!t||!s)return;h.current?.abort();const e=new AbortController;h.current=e;const n=s.uuid,a=g.current;u(!0);let r=0;const o=Date.now();L.track({event_key:"claudeai.message.recovery_started",conversation_uuid:t,trigger:"dangling_human_message"});const l=e=>{if(x.current===l){if(x.current=null,u(!1),c(!1),m.current===n){const s=w(t),i=s.filter(e=>e.uuid!==n&&e.uuid!==a);i.length!==s.length&&k(t,i),"success"!==e&&T()}(e=>{L.track({event_key:"claudeai.message.recovery_completed",conversation_uuid:t,outcome:e,attempt_count:r,duration_ms:Date.now()-o})})(e)}};x.current=l;const d=async()=>{if(!e.signal.aborted){if(r>=i)return l("exhausted"),void _("Response could not be confirmed. You can try sending again.",{errorContext:{tags:{source:"pending_message_recovery_exhausted"}}});r++;try{const s=await fetch(`/api/organizations/${M.uuid}/chat_conversations/${t}/completion_status?poll=true`,{method:"GET",credentials:"include",signal:e.signal});if(!s.ok)return void l("error");const n=await s.json();if(n.is_pending){if(e.signal.aborted)return;return void(C.current=setTimeout(()=>{d()},function(e){const t=2e3*Math.pow(2,e-1),s=Math.min(t,1e4),n=.1*s*(2*Math.random()-1);return Math.max(0,s+n)}(r)))}n.is_error?(l("error"),E(n.error_detail,n.error_code)):l("success"),await Qi(S,M.uuid,t)}catch(s){if(s instanceof DOMException&&"AbortError"===s.name)return;l("error")}}};C.current=setTimeout(()=>{d()},2e3*Math.random())},[M?.uuid,_,L,t,i,s,S,E,w,k,T]);e.useEffect(()=>{if(!a&&!r&&s&&n&&void 0!==N&&m.current!==s.uuid)if(m.current=s.uuid,o(!0),N.is_error)E(N.error_detail,N.error_code);else{if(N.is_pending){c(!0);const e=ua();g.current=e;const n={uuid:e,sender:"assistant",content:[{type:"text",text:""}],created_at:(new Date).toISOString(),updated_at:(new Date).toISOString(),parent_message_uuid:s.uuid,attachments:[],files:[],files_v2:[],sync_sources:[],index:1,metadata:{is_resume_completion_placeholder_message:!0}};return b(t,[s,n]),void D()}R()}},[a,r,s,n,N,E,b,t,D,R]),e.useEffect(()=>{s||(o(!1),m.current=null,p.current=null,g.current=null)},[s]),e.useEffect(()=>(f.current=!1,()=>{A(),f.current=!0}),[A]);return{hasPendingUserMessage:l,isCompletionStatusLoading:!!s&&I&&!d,stopPendingRecovery:e.useCallback(()=>{A(),x.current?.("aborted")},[A])}}function FWe({conversation:s,conversationUuid:n,chatInputDefaultMessage:a,returnDanglingHumanMessage:i,isOnboarding:o,renderAboveInput:l,headerBeforeTitle:c,notFoundRedirectTo:d="/new"}){const u=r(),{incognitoModeEnabled:m,setTemporaryConversationUuid:p}=Va(),{track:f}=ae(),{addError:g}=ut(),h=Nw(e=>e.isInIframe),{checkPendingInlineCreate:C,hasPendingNewConversation:x,getCreateParamsForConvo:y}=z_(),{activeOrganization:b}=v(),[k,w]=e.useState(()=>C(n,b?.uuid)||!b?.uuid&&x(n));e.useEffect(()=>{k&&b?.uuid&&C(n,b.uuid)},[k,b?.uuid,n,C]);const{data:M,error:j,isLoading:S,isPending:L,isRefetching:N,isPlaceholderData:I}=yn(n,{suppressError:!0,returnDanglingHumanMessage:i,enabled:!k}),T=e.useRef(k?n:null),A=e.useRef(null);e.useEffect(()=>{T.current!==n&&M&&!I&&(aj("success"),T.current=n)},[n,M,I]);const E=e.useRef(k?n:null);e.useEffect(()=>{null!==E.current&&E.current!==n&&(E.current=null)},[n]);const R=e.useMemo(()=>null!==E.current&&E.current===n,[n]);FN("conversation_open",R?"failed":M&&!I?"ready":"pending",{key:n,conversationUuid:n,messageCount:M?.chat_messages?.length,virtualized:!0});const D=$v(),H=Vg(e=>e.isVoiceStreaming),{isReady:P}=X(),{context:U}=a_(n),O=!!U&&!U.controller.signal.aborted,F=e.useMemo(()=>{if(!D&&P&&!O)return M?ij(M):void 0},[M,D,P,O]),V=M?.project_uuid,z=rj(),Z=hp(n),{changeDisplayedConversationPath:B}=oj(),q=rr(n),W=lj(s?.settings??M?.settings,s?.project_uuid),{markMessageSent:$,markFirstTokenReceived:G,setStreamStartMetadata:K}=Ih(),Y=jx(),Q=cj(Y?n:void 0),J=e.useCallback(e=>{G({model:q,first_content_type:e,conversationUuid:n})},[G,q,n]),ee=e.useCallback(e=>{K({assistantMessageUuid:e.assistantMessageUuid,humanMessageUuid:e.humanMessageUuid,conversationUuid:n})},[K,n]),te=kp(),se=te.startsWith("/chat/");e.useEffect(()=>{if(se)return dj({conversationUuid:n,messageCount:M?.chat_messages?.length??null}),()=>{jj().conversationUuid===n&&dj({conversationUuid:null,messageCount:null})}},[se,n,M?.chat_messages?.length]),e.useEffect(()=>{s?.is_temporary&&"/new"!==te&&!h&&(p(n),u.replace(`/new?${Yi}`))},[s?.is_temporary,te,h,n,p,u]),e.useEffect(()=>{if(!m||!M?.updated_at)return;const e=()=>{const e=new Date(M.updated_at).getTime();(Date.now()-e)/36e5>=47&&u.push("/new")};return window.addEventListener("focus",e),()=>{window.removeEventListener("focus",e)}},[m,M?.updated_at,u]);const ne=e.useRef(!0);e.useEffect(()=>(ne.current=!0,()=>{ne.current=!1,setTimeout(()=>{if(ne.current)return;const e=Vg.getState(),{status:t}=e.state;"idle"!==t&&"error"!==t&&e.stop(),e.setLastServerLeafMessageUuid(null)},0)}),[]);const[ie,re]=e.useState(0),oe=e.useCallback(e=>{re(e)},[]),{completionStatus:le}=uj(n,k),[ce,de]=e.useState(()=>{const e=y(n);return!e?.dispatchedPreNavigate&&(!!M?.chat_messages?.some(e=>"assistant"===e.sender)||!!e&&!e.inlineCreateConversationParams)}),ue=e.useCallback(()=>{de(!0),w(!1)},[]);e.useEffect(()=>{D&&!ce&&M?.chat_messages?.some(e=>"assistant"===e.sender)&&de(!0)},[D,ce,M?.chat_messages]);const me=function(){const e=In("claudeai_answer_now_enabled"),t=Fm(Nae),s="object"==typeof t&&null!==t&&!0===t.enabled;return e||s}();e.useEffect(()=>{me&&M?.chat_messages&&mj(M.chat_messages)},[me,M?.chat_messages]);const pe=U?.conversationReady,fe=e.useRef(!1);e.useEffect(()=>{ce||(pe?ue():U?fe.current=!0:fe.current&&ue())},[pe,U,ce,ue]);const ge=pj(n,V,W,J,z,oe,ue,i,ee),he=fj(n,V,W,J,z,oe,i,ee),{mutate:Ce}=gj(n);hj(n,le?.is_pending);const xe=ge.isStreaming||he.isStreaming||H||!!le?.is_pending,{runStream:ve}=ge,{runStream:ye}=he,be=e.useCallback(async e=>(re(0),ve(e)),[ve]),ke=e.useRef(M);ke.current=M;const we=e.useCallback(async(e,t,s,a,i)=>{Cj.forEach(e=>performance.clearMarks(e)),performance.mark(xj),re(0);const r=ke.current,o=r?.chat_messages?.length??0,l=Math.floor(o/2),c=r?.settings,d=c?.enabled_mcp_tools??{},u=Object.values(d).filter(Boolean).length;$({conversation_uuid:n,message_length:0,message_index:l,is_new_conversation:!1,is_retry:!0,is_incognito:m,is_yukon_gold:!1,document_attachment_count:0,image_attachment_count:0,thinking_mode:"extended"===c?.paprika_mode?"enabled":"disabled",research_mode:"advanced"===c?.compass_mode?"advanced":"disabled",tool_count:u,enabled_web_search:c?.enabled_web_search??!1,used_inline_conversation_create:!1});const p=Y&&Q.length>0?Q:void 0;return ye(e,t,s,a,p,i)},[ye,n,m,$,Y,Q]);!function(t,s,n,a=!0){const[i,r]=e.useState(!1),{activeOrganization:o}=v(),l=_().claudeai_title_generation,c=!!t,d=t?.name,u=s?.length||0,m=e.useMemo(()=>{const e=s?.[0];return e?Le(e):""},[s]),p=e.useMemo(()=>{if(m)return m;const e=s?.[1]?Le(s[1]):"";return e&&!n?["Message 1:",JPe(m),"Message 2:",JPe(e)].join("\n\n"):""},[s,n,m]),f=t?.uuid||"",{mutate:g}=Vk(f),{mutate:h,error:C}=zk(f),x=e.useRef(!1);e.useEffect(()=>{if(c&&a&&!d&&(C||l)&&m){if(x.current)return;const e=m.slice(0,30),t=m.length>30?"...":"";x.current=!0,g({name:`${e}${t}`})}},[c,a,C,l,d,p,g,m]),e.useEffect(()=>{c&&o&&a&&(i||d||0!==u&&p&&(l||(r(!0),h({message_content:p,recent_titles:[]}))))},[c,o,a,d,h,i,u,p,l])}(M,M?.chat_messages,xe,ce);const Me=vj(n)?.uuid,{abortStream:_e}=ge,{abortStream:je}=he,Se=e.useCallback(async()=>{_e(),je();const e=U_.getState().byConversation[n],t=(void 0!==Me&&e?.humanMessageUuid===Me?e.to_model.model:void 0)??(yj(n)||void 0);return we(Me,void 0,void 0,t,!0)},[_e,je,we,Me,n]),Ne=hd(async(e,t,s,n,a)=>{const i=Le(e);(i!==t||n||a)&&(ge.abortStream(),he.abortStream(),f({event_key:"claudeai.message.edited",is_last_human_message:e.uuid===Me,is_identical_content:i===t}),await be({prompt:t,attachments:a?[]:e.attachments,files:a?[]:Gz(e),syncSources:e.sync_sources,parent_message_uuid:e.parent_message_uuid??void 0,compass_mode:e.metadata?.compass_mode,modelOverride:s,isEdit:!0}))}),Ie=hd((e,t)=>{f({event_key:"claudeai.conversation_tree.navigated",direction:t>0?"next":"previous",is_last_human_message:e.uuid===Me}),B(n,e,t,e=>Ce({current_leaf_message_uuid:e}))}),{hasPendingUserMessage:Te,isCompletionStatusLoading:Ae,stopPendingRecovery:Ee}=OWe({conversationUuid:n,chatConversationTree:M,pendingUserMessage:F,isLoading:S}),Re=j instanceof cs&&bj(j),De=e.useRef(null);e.useEffect(()=>{Re&&!k&&De.current!==n&&(De.current=n,h?kj():(g(t.jsx(wj,{}),{error:j}),u.replace(d)))},[Re,k,n,h,j,g,u,d]);const He=e.useMemo(()=>s?.settings??M?.settings??{},[s?.settings,M?.settings]);if(Re&&!k&&(A.current!==n&&(aj("failure",j,void 0,{dedupeKey:n}),A.current=n),h||!M))return null;if(!(M||L||I||k)){if(A.current!==n&&(aj("failure",j,void 0,{dedupeKey:n}),A.current=n),h)return null;Mj()}return t.jsxs(_j,{settings:He,children:[t.jsx(HWe,{isStreaming:xe||Te,isTemporary:!!s?.is_temporary,chatInputDefaultMessage:a,conversationTitle:s&&!s.is_temporary?`${s.name} - Claude`:"Claude",conversationUuid:n,isLoading:S||!M&&N||Ae,messageUuids:Z,name:M?.name??s?.name??"Untitled Chat",onSend:be,onRetry:we,onAnswerNow:Se,projectUuid:V,changeDisplayedConversationPath:Ie,editMessage:Ne,retryCount:ie,onStopSampling:Te?Ee:void 0,isOnboarding:o,renderAboveInput:l,headerBeforeTitle:c}),""]})}function VWe(t,s,n,a,i){const r=e.useRef(0),o=e.useRef(!1),l=e.useRef(null),c=e.useRef(null),d=e.useRef({}),u=sj(),m=Sj(),p=V$(e=>e.clearAllFeatures),{track:f}=ae();e.useLayoutEffect(()=>{const e=Vg.getState();if(e.isVoiceStreaming||e.isActive||e.isKaraokeActive)return tue("useMessageStoreSync SKIPPED (voice active)"),void(o.current=!0);if(!n){const e=Ce.getState().pathUuidsByConversation[t]||[],n=e.length,g=s.length;if(o.current){if(g<n)return tue("useMessageStoreSync SKIPPED (post-voice, would shrink)",{currentCount:n,newCount:g}),()=>{p()};tue("useMessageStoreSync post-voice cleared",{currentCount:n,newCount:g}),o.current=!1}const h=r.current,C=h>0&&a<h,x=e[e.length-1];if(h>0&&a===h&&g<n&&!!x&&!s.some(e=>e.uuid===x)&&c.current!==x&&(c.current=x,f({event_key:"claudeai.chat.sync_message_loss",sync_action:"observed",reason:"path_tail_lost",source:"detection",conversation_uuid:t,prev_tree_count:h,new_tree_count:a,tree_lost_count:0,current_path_count:n,new_path_count:g,current_last_uuid:x,new_last_uuid:s[s.length-1]?.uuid})),C){const e=Date.now(),i=null===l.current;l.current??=e;const r={conversation_uuid:t,reason:"tree_shrink",prev_tree_count:h,new_tree_count:a,tree_lost_count:h-a,current_path_count:n,new_path_count:g,current_last_uuid:x,new_last_uuid:s[s.length-1]?.uuid};if(e-l.current<3e4)return i&&(k.warn(w.CHAT_COMPLETION,"message_store_sync_blocked",r),f({event_key:"claudeai.chat.sync_message_loss",sync_action:"blocked",...r})),()=>{p()};k.warn(w.CHAT_COMPLETION,"message_store_sync_loss_accepted",r),f({event_key:"claudeai.chat.sync_message_loss",sync_action:"accepted",...r}),l.current=null}else l.current=null;r.current=a,m(t,i),i&&d.current[t]!==i&&(d.current[t]=i,f({event_key:"claudeai.chat.sync_message_loss",sync_action:"observed",reason:"leaf_has_child",source:"detection",conversation_uuid:t,prev_tree_count:h,new_tree_count:a,tree_lost_count:0,current_path_count:n,new_path_count:g,current_last_uuid:i,new_last_uuid:s[s.length-1]?.uuid})),u(t,s)}return()=>{p()}},[t,s,n,a,i,u,m,p,f])}function zWe({uuid:s,q:n,allowDanglingHumanMessage:a,isOnboarding:i}){const r=OP(),{checkPendingInlineCreate:o,hasPendingNewConversation:l}=z_(),{activeOrganization:c}=v(),[d]=e.useState(()=>o(s,c?.uuid,!!a)||!c?.uuid&&l(s)),{data:u,currentPath:m,isLoading:p}=yn(s,{returnDanglingHumanMessage:a,enabled:!d}),f=Yje(),g=Gje(),h=function(t){return e.useMemo(()=>{if(!t?.messageByUuid)return!1;for(const e of t.messageByUuid.values())for(const t of e.content??[])if("tool_use"===t.type&&t.name===WPe.name)return!0;return!1},[t])}(u),C=h&&f,x=BPe(u)&&g,y=Nw(e=>e.isInIframe),b=e.useRef(!1),k=e.useContext(gd);Lj(k.hideHeader||u?.is_temporary?"":u?.name??"");const w=u?.messageByUuid?.size??0,M=Nj(u,m);return VWe(s,m||[],p,w,M),e.useEffect(()=>{y&&s&&!b.current&&(b.current=!0,Ij(s,!1))},[y,s]),"redirecting"===r?null:u?.platform===Tj.CLINT||u?.session_id?t.jsx(Aj,{}):t.jsx(t.Fragment,{children:t.jsx(UN,{conversationUuid:s,children:t.jsx(ON,{conversationUuid:s,children:t.jsx(QPe,{enabled:C,children:t.jsx(ZPe,{enabled:x,children:t.jsx(FWe,{conversation:u,conversationUuid:s,chatInputDefaultMessage:n,returnDanglingHumanMessage:a,isOnboarding:i})})})})})})}class ZWe extends e.Component{constructor(){super(...arguments),this.state={failed:!1}}static getDerivedStateFromError(){return{failed:!0}}componentDidCatch(e,t){console.warn(`lazyPlacement(${this.props.name}): chunk load failed; rendering null`,e,t.componentStack)}render(){return this.state.failed?null:this.props.children}}function BWe(s,n){const a=e.lazy(()=>s().then(e=>({default:e[n]})));function i(s){return t.jsx(ZWe,{name:n,children:t.jsx(e.Suspense,{fallback:null,children:t.jsx(a,{...s})})})}return i.displayName=`LazyPlacement(${n})`,i}const qWe=({className:s,style:n})=>{const a=e.useRef(null),i=e.useRef(null),r=e.useRef({x:0,y:0}),o=e.useRef({x:0,y:0});e.useEffect(()=>{if(a.current)return r.current={x:window.innerWidth/2,y:window.innerHeight/2},i.current=new WWe(a.current,r,o),()=>{i.current?.cleanup()}},[]);const l=e.useCallback(e=>{r.current={x:GWe(e.clientX,10),y:GWe(e.clientY,10)},o.current.x=r.current.x,o.current.y=r.current.y,i.current&&i.current.updateFocalPoint()},[]);return Ji("mousemove",l),t.jsx("div",{ref:a,className:Dt("transition-colors text-[#D97757]",s),style:{position:"relative",...n},children:t.jsxs("svg",{overflow:"visible",width:"100%",height:"100%",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation",children:[t.jsx("path",{d:"M96 40L99.5002 42L99.5002 43.5L98.5 47L56 57L52.004 47.0708L96 40Z",fill:"currentColor"}),t.jsx("path",{d:"M80.1032 10.5903L84.9968 11.6171L86.2958 13.2179L87.5346 17.054L87.0213 19.5007L58.5 58.5L49 49L75.3008 14.4873L80.1032 10.5903Z",fill:"currentColor"}),t.jsx("path",{d:"M55.5002 4.49999L58.5005 2.5L61.0002 3.49999L63.5002 6.99999L56.6511 48.162L52.0005 45L50.0005 39.5L53.5003 8.49998L55.5002 4.49999Z",fill:"currentColor"}),t.jsx("path",{d:"M23.4253 5.15883L26.5075 1.2217L28.5175 0.763164L32.5063 1.34577L34.4748 2.8868L48.8202 34.6902L54.0089 49.8008L47.9378 53.176L24.8009 11.1886L23.4253 5.15883Z",fill:"currentColor"}),t.jsx("path",{d:"M8.49896 27.0019L7.49988 23.0001L10.5003 19.5001L14.0003 20.0001L15.0003 20.0001L36 35.5L42.5 40.5L51.5 47.5L46.5 56L42.0002 52.5L39.0001 49.5L9.99996 29.0001L8.49896 27.0019Z",fill:"currentColor"}),t.jsx("path",{d:"M2.50029 53L0.237033 50.5L0.237286 48.2759L2.50029 47.5L28 49L53 51L52.1885 55.9782L4.5 53.5L2.50029 53Z",fill:"currentColor"}),t.jsx("path",{d:"M17.5002 79.0264L12.5005 79.0264L10.5124 76.7369L10.5124 74L19.0005 68L53.5082 46.0337L57.0005 52L17.5002 79.0264Z",fill:"currentColor"}),t.jsx("path",{d:"M27.0004 92.9999L25.0003 93.4999L22.0003 91.9999L22.5004 89.4999L52.0003 50.5L56.0004 55.9999L34.0003 85L27.0004 92.9999Z",fill:"currentColor"}),t.jsx("path",{d:"M51.9998 98L50.5002 100L47.5002 101L45.0001 99L43.5 96L51.0003 55.4999L55.5001 55.9999L51.9998 98Z",fill:"currentColor"}),t.jsx("path",{d:"M77.5007 86.9997L77.5007 90.9997L77.0006 92.4997L75.0004 93.4997L71.5006 93.0339L47.4669 57.2642L56.9998 50.0002L64.9994 64.5004L65.7507 69.7497L77.5007 86.9997Z",fill:"currentColor"}),t.jsx("path",{d:"M89.0008 80.9991L89.5008 83.4991L88.0008 85.4991L86.5007 84.9991L78.0007 78.9991L65.0007 67.4991L55.0007 60.4991L58 51L62.9999 54.0001L66.0007 59.4991L89.0008 80.9991Z",fill:"currentColor"}),t.jsx("path",{d:"M82.5003 55.5L95.0003 56.5L98.0003 58.5L100 61.5L100 63.6587L94.5003 66L66.5005 59L55.0003 58.5L58 48L66.0005 54L82.5003 55.5Z",fill:"currentColor"})]})})};class WWe{constructor(e,t,s){this.jitterTimer=void 0,this.container=e,this.focalPointRef=t,this.jitteredFocalPointRef=s,this.lastFocalPoint={...t.current},this.armWidths=[1.01,.95,1.05,.9,1.1,.85,1.15,.8,1.2,.75,1.25,.7],this.armDeltasX=[0,1,2,3,4,5,6,7,8,9,10,11].map(e=>e/12),this.armDeltasY=[...this.armDeltasX],KWe(this.armDeltasX),KWe(this.armDeltasY),this.arms=Array.from(this.container.querySelectorAll("path")).reverse(),this.armPaths=this.arms.map(e=>function(e){const t=e.replace(/<[^>]*>|fill=\u201c[^\u201d]*\u201c/g,"").trim(),s=/([MLZ])([^MLZ]*)/g,n=[];let a,i=null;for(;null!==(a=s.exec(t));){const e=a[1],t=a[2].trim();if("Z"===e){i&&n.push(i);continue}const s=t.trim().split(/\s+|,/);for(let a=0;a<s.length;a+=2)if(a+1<s.length){const t=parseFloat(s[a]),r=parseFloat(s[a+1]);n.push([t,r,e]),"M"===e&&null===i&&(i=[t,r,e])}}return n}(e.getAttribute("d")||"")),this.closenessRampedByTime=new YWe(0,50,.34),this.renderArms()}calculateAngleToFocalPoint(){const e=this.container.getBoundingClientRect(),t=e.left+e.width/2,s=e.top+e.height/2,n=this.jitterTimer?this.jitteredFocalPointRef.current:this.focalPointRef.current,a=n.x-t,i=n.y-s;let r=Math.atan2(i,a)*(180/Math.PI);return r<0&&(r+=360),r}distanceToMouse(e){const t=this.container.getBoundingClientRect(),s=t.left+t.width/2,n=t.top+t.height/2,a=e.x-s,i=e.y-n;return Math.sqrt(a*a+i*i)}updateFocalPoint(){const e=this.focalPointRef.current;if(e.x===this.lastFocalPoint.x&&e.y===this.lastFocalPoint.y)return;const t=this.distanceToMouse(e)<70,s=this.distanceToMouse(this.lastFocalPoint)<70;this.lastFocalPoint={...e},t||s?(KWe(this.armWidths),this.renderArms(),this.jitterTimer&&clearTimeout(this.jitterTimer),this.startJitterAnimation()):this.jitterTimer&&(clearTimeout(this.jitterTimer),this.jitterTimer=void 0),t!==s&&this.closenessRampedByTime.setTarget(t?1:0,e=>{this.renderArms()})}startJitterAnimation(){if(this.distanceToMouse(this.focalPointRef.current)>=70){this.jitterTimer&&(clearTimeout(this.jitterTimer),this.jitterTimer=void 0);const e={x:-1e3,y:-1e3},t={...this.focalPointRef.current};return this.focalPointRef.current.x=e.x,this.focalPointRef.current.y=e.y,this.renderArms(),this.focalPointRef.current.x=t.x,void(this.focalPointRef.current.y=t.y)}this.applyJitter(),this.renderArms();const e=0*Math.random()-0+200;this.jitterTimer=window.setTimeout(()=>this.startJitterAnimation(),e)}applyJitter(){const e=5*(2*Math.random()-1),t=5*(2*Math.random()-1);this.jitteredFocalPointRef.current.x=this.focalPointRef.current.x+e,this.jitteredFocalPointRef.current.y=this.focalPointRef.current.y+t,KWe(this.armWidths)}cleanup(){this.jitterTimer&&(clearTimeout(this.jitterTimer),this.jitterTimer=void 0),this.closenessRampedByTime.cleanup()}renderArms(){const e=this.container.getBoundingClientRect(),t=e.left+e.width/2,s=e.top+e.height/2,n=this.jitterTimer?this.jitteredFocalPointRef.current:this.focalPointRef.current,a=n.x-t,i=n.y-s,r=Math.sqrt(a*a+i*i),o=this.calculateAngleToFocalPoint();this.arms.forEach((e,t)=>{const s=30*t%360;let n=Math.abs(o-s);n>180&&(n=360-n);const a=this.closenessRampedByTime.getCurrent(),i=$We(r,[49,70],[1,0])*a,l=$We(r,[5,25],[1,0])*a;let c=n<=50?1+(t%2==0?.6:.48)*i*(1-n/50):1;const d=$We(n,[90,180],[1,1-.4*i]);c*=d,c=$We(l,[0,1],[c,.6]);let u=.3*(1-this.armWidths[t])+1+$We(n,[0,90],[.2,0]);u=$We(l,[0,1],[u,1.4]),e.style.transformOrigin="50px 50px",e.setAttribute("d",function(e,t){const s=e.map(([e,s,n])=>t([e,s]));let n="",a=0;for(let i=0;i<s.length;i++){const t=e[i][2];if("Z"===t)n+="Z";else if(n+=t,a<s.length){const[e,t]=s[a];n+=e.toFixed(4)+" "+t.toFixed(4)+" ",a++}}return n}(this.armPaths[t],e=>{let[t,s]=e;const n=$We(Math.sqrt((t-50)*(t-50)+(s-50)*(s-50)),[20,30],[0,1]);return[t,s]=function(e,t,s){const n=e[0]-t[0],a=e[1]-t[1],i=Math.atan2(a,n),r=s*Math.cos(i),o=s*Math.sin(i);return[e[0]+r,e[1]+o]}([t,s],[50,50],(c-1)*n*40),[t,s]})),e.style.transform=`rotate(${s}deg) scaleY(${u}) rotate(${-s}deg)`})}}function $We(e,t,s){const[n,a]=t,[i,r]=s,o=Math.min(n,a),l=Math.max(n,a);return i+(Math.min(Math.max(e,o),l)-n)/(a-n)*(r-i)}function GWe(e,t){return Math.round(e/t)*t}function KWe(e){let t=e.length;for(;0!==t;){const s=Math.floor(Math.random()*t);t--,[e[t],e[s]]=[e[s],e[t]]}}class YWe{constructor(e,t,s){this.target=0,this.msPerTick=50,this.amountPerTick=.34,this.current=0,this.interval=void 0,this.current=e,this.msPerTick=t,this.amountPerTick=s}getCurrent(){return this.current}setTarget(e,t){this.target!==e&&(this.target=e,this.callback=t,this.interval&&clearInterval(this.interval),this.interval=window.setInterval(()=>{if(this.current===this.target)return clearInterval(this.interval),void(this.interval=void 0);const e=this.target-this.current,t=Math.sign(e)*Math.min(Math.abs(e),this.amountPerTick);this.current+=t,this.callback&&this.callback(this.current)},this.msPerTick))}cleanup(){this.interval&&(clearInterval(this.interval),this.interval=void 0)}}function QWe(){const t=e.useRef(!1);return e.useCallback(e=>!t.current&&(t.current=!0,e(),!0),[])}function JWe({to:t,mode:s="replace",isHardNavigation:n=!1}){const a=dw(),i=QWe();return e.useEffect(()=>{const e=i(()=>{if(n){const e=new URL(t,window.location.origin);if(e.origin!==window.location.origin&&!Yk(e.href))throw new Error(`Redirect: isHardNavigation is same-site only, got ${e.origin}`);return void("push"===s?window.location.assign(e.href):window.location.replace(e.href))}if(!function(e){return!/[\\\t\n\r]/.test(e)&&(e.startsWith("/")&&!e.startsWith("//")||e.startsWith("?")||e.startsWith("#"))}(t)){if(!/^https?:\/\//i.test(t))return void k.warn(w.BOOTSTRAP,"Redirect: refused non-http(s)-absolute URL");let e;try{e=new URL(t)}catch{return void k.warn(w.BOOTSTRAP,"Redirect: refused unparseable URL")}return"https:"!==e.protocol&&"http:"!==e.protocol?void k.warn(w.BOOTSTRAP,"Redirect: refused non-http(s) URL",{protocol:e.protocol}):void("push"===s?window.location.assign(e.href):window.location.replace(e.href))}"push"===s?a.push(t):a.replace(t)});e||k.info(w.BOOTSTRAP,"Redirect: skipped redundant nav re-fire (React #185 guard)",{mode:s,isHardNavigation:n})},[a,t,s,n,i]),null}function XWe(){const s=y("enabled_brioche_banner"),[n]=e.useState(()=>{try{return"undefined"==typeof window||!window.localStorage}catch{return!0}}),[a,i]=xs("google-connector-update-banner-dismissed",n),r=e.useCallback(()=>i(!0),[i]);return!s||a?null:t.jsx(e$e,{onDismiss:r})}function e$e({onDismiss:s}){const n=mN(50),a=Oe(He.GMAIL,{callerIdentifier:SW}),i=Oe(He.GCAL,{callerIdentifier:SW}),r=Oe(He.GDRIVE,{callerIdentifier:SW}),l=a.isFetched&&a.mcpServerGated&&a.authBreakdown.firstParty&&!a.authBreakdown.mcp,c=i.isFetched&&i.mcpServerGated&&i.authBreakdown.firstParty&&!i.authBreakdown.mcp,d=r.isFetched&&r.mcpServerGated&&r.authBreakdown.firstParty&&!r.authBreakdown.mcp,u=l||c||d,m=e.useMemo(()=>{const e=[];return l&&e.push(He.GMAIL),d&&e.push(He.GDRIVE),c&&e.push(He.GCAL),e},[l,d,c]),p=JS(),f=e.useMemo(()=>p.formatList(m.map(e=>$e[e]),{type:"conjunction"}),[p,m]),g=o().startsWith("/customize/connectors"),h=Ej(),C=xQ("clint-interview"),x=xQ("home-nudge");return!u||(null!==(C?.template_key??null)||null!==(x?.template_key??null))||h?null:t.jsx("div",{className:"fixed bottom-10 right-10 w-[228px]",style:{zIndex:n},children:t.jsxs(LN,{children:[t.jsx("div",{className:"absolute -right-2 -top-2 z-10",children:t.jsx(Rj,{iconOnly:!0,variant:"ghost",size:"xs",icon:t.jsx(uR,{weight:"bold",className:"size-3 text-text-100"}),onClick:s,"aria-label":p.formatMessage({defaultMessage:"Dismiss",id:"TDaF6JVgG6"})})}),t.jsxs("div",{className:"overflow-hidden rounded-xl border-0.5 border-border-200 bg-bg-000 shadow-[0px_40px_80px_0px_hsl(var(--always-black)/15%)]",children:[t.jsx("div",{className:"relative h-[120px] overflow-hidden rounded-xl border-8 border-bg-000",children:t.jsx(Dj,{src:"/images/features/connector-update-banner-bg.svg",alt:"",fill:!0,className:"object-cover"})}),t.jsxs("div",{className:"flex flex-col gap-3 bg-bg-000 pb-2",children:[t.jsxs("div",{className:"flex flex-col gap-1 px-3 text-sm leading-[1.4]",children:[t.jsx("p",{className:"font-bold font-base text-text-000",children:t.jsx(XS,{defaultMessage:"New Google {count, plural, one {connector} other {connectors}}",id:"H5B0v40Y8Q",values:{count:m.length}})}),t.jsx("p",{className:"text-text-400 font-base",children:t.jsx(XS,{defaultMessage:"Log back in to your {connectorNames} {count, plural, one {connector} other {connectors}} for the latest updates.",id:"8mM8bURYje",values:{connectorNames:f,count:m.length}})})]}),!g&&t.jsx("div",{className:"px-2",children:t.jsx(er,{href:"/customize/connectors?search=google",onClick:s,className:"flex h-8 w-full items-center justify-center rounded-md bg-text-100 text-xs font-semibold text-bg-100 transition-colors hover:bg-text-200",children:t.jsx(XS,{defaultMessage:"See connectors",id:"J4/1ZRQCuR"})})})]})]})]})})}function t$e(){const e=Cs("proj-chalk-sidebar"),t=s$e();return e&&t}function s$e(){const e=function(){const e=Hj("raven"),t=Hj("chalk_teacher"),s=Hj("chalk_org");return!e&&t||e&&s}(),{isChalkSoloTeamOrg:t}=Pk();return e||t}const n$e=new Set,a$e=new Set;function i$e(){const{track:e}=ae();return{trackCategoryDisplayed:t=>{n$e.has(t.category_id)||(n$e.add(t.category_id),e({...t,event_key:"claudeai.cardamom_prompts.category_displayed"}))},trackCategoryClicked:t=>{mm(e,"home.cardamom.category_select",{category_id:t})},trackPromptDisplayed:t=>{a$e.has(t.prompt_id)||(a$e.add(t.prompt_id),e({...t,event_key:"claudeai.cardamom_prompts.prompt_displayed"}))},trackSuggestionUsed:t=>{e({...t,event_key:"claudeai.cardamom_prompts.prompt_used"}),mm(e,"home.cardamom.prompt_use",{category_id:t.category_id})}}}function r$e({children:e,disabled:s,icon:n,onClick:a,className:i,autoFocus:r,pressed:o,categoryId:l,...c}){return t.jsx(rN,{...c,variant:"secondary",icon:n,onClick:a,disabled:s,autoFocus:r,pressed:o,className:i,children:t.jsx("span",{className:"font-normal",children:e})})}const o$e={binoculars:GD,books:$D,briefcase:WD,graduationCap:qD,calendar:function(){return t.jsx(db,{size:14})},calendarBlank:BD,camera:ZD,cards:zD,chartLine:VD,chatsCircle:FD,code:OD,clock:UD,coffee:PD,deviceMobile:HD,dna:DD,drive:function(){return t.jsx(vp,{size:14})},files:RD,gameController:ED,gavel:AD,gmail:function(){return t.jsx(cb,{size:14})},lightbulb:ZR,pencil:aD,presentation:TD,tree:ID,org:ND,person:LD,palette:SD,plus:jD,pizza:_D,squaresFour:MD,rainbow:wD},l$e=({name:e,...s})=>{const n=o$e[e];return t.jsx(n,{...s})},c$e=["calendar","drive","gmail"];function d$e(){const e=JS();return(t,s)=>{const n=t.prompt[0].toLowerCase()+t.prompt.slice(1);switch(s.id){case"calendar":case"drive":case"gmail":return e.formatMessage({defaultMessage:"Hey Claude, could you {prompt}? Use any connector that would be helpful, and get started once you've gathered enough info.\n\nIf it makes sense, create something we can look at together\u2014like a visual, a checklist, or something interactive.",id:"fAJSdV+tag"},{prompt:n});case"research_analysis":return e.formatMessage({defaultMessage:"Hey Claude, could you help me {prompt}? Start researching right away, and use any tools you think would help. Let me know if you need any other context.\n\nIf it makes sense, create something we can look at together\u2014like a visual, a checklist, or something interactive.",id:"zee9qhSa6S"},{prompt:n});default:return e.formatMessage({defaultMessage:"Hi Claude! Could you {prompt}? If you need more information from me, ask me 1-2 key questions right away. If you think I should give you more context or upload anything to help you do a better job, let me know. Use any tools you have access to\u2014like Google Drive, web search, etc.\u2014if they'll help.\n\nIf it makes sense, create something we can look at together\u2014like a visual, a checklist, or something interactive. Thanks for your help!",id:"rJW8gl8M52"},{prompt:n})}}}function u$e(){const e=JS();return(t,s)=>{const n=t.prompt[0].toLowerCase()+t.prompt.slice(1);switch(s.id){case"calendar":case"drive":case"gmail":return e.formatMessage({defaultMessage:"Hey Claude, could you {prompt}? Use any connector that would be helpful, and get started once you've gathered enough info.\n\nIf it makes sense, create something we can look at together\u2014like a visual, a checklist, or something interactive.",id:"fAJSdV+tag"},{prompt:n});case"research_analysis":return e.formatMessage({defaultMessage:"Hey Claude, could you help me {prompt}? Start researching right away, and use any tools you think would help. Let me know if you need any other context.\n\nIf it makes sense, create something we can look at together\u2014like a visual, a checklist, or something interactive.",id:"zee9qhSa6S"},{prompt:n});default:return e.formatMessage({defaultMessage:"Hi Claude! I'm new here. Could you {prompt}? If you need more information from me, ask me 1-2 key questions right away. If you think I should give you more context or upload anything to help you do a better job, let me know.\n\nIf it makes sense, create something we can look at together\u2014like a visual, a checklist, or something interactive. Thanks for your help!",id:"QBcQgHY0vX"},{prompt:n})}}}function m$e(e,t,s){return{id:e,prompt:t,requiredIntegrations:s}}function p$e(){const t=JS();return e.useMemo(()=>{const{drivePrompts:e,calendarPrompts:s,gmailPrompts:n}=function(e){return{drivePrompts:[{id:2339,prompt:e.formatMessage({defaultMessage:"Summarize my top projects this quarter",id:"BAiMB4kbFU"}),requiredIntegrations:["drive"]},{id:2340,prompt:e.formatMessage({defaultMessage:"Analyze my writing style based on my docs",id:"BHMquAUiGk"}),requiredIntegrations:["drive"]},{id:2342,prompt:e.formatMessage({defaultMessage:"Give me a TLDR on the new docs I\u2019ve been given access to",id:"b2db5QKACQ"}),requiredIntegrations:["drive"]},{id:2344,prompt:e.formatMessage({defaultMessage:"Identify what my top 3 priorities should be today",id:"n1tUYtmIxq"}),requiredIntegrations:["drive"]},{id:2346,prompt:e.formatMessage({defaultMessage:"Find which of my ideas have gained the most traction at work",id:"wRIe18zwTV"}),requiredIntegrations:["drive"]},{id:2347,prompt:e.formatMessage({defaultMessage:"Tell me how my project focus has evolved over time",id:"FgBnyxzeMH"}),requiredIntegrations:["drive"]},{id:2349,prompt:e.formatMessage({defaultMessage:"Locate documents that represent pivotal moments in my thinking",id:"WIMwEPeCMH"}),requiredIntegrations:["drive"]},{id:2350,prompt:e.formatMessage({defaultMessage:"Surface unexpected connections across my different documents",id:"NKvK9QsK5j"}),requiredIntegrations:["drive"]},{id:2390,prompt:e.formatMessage({defaultMessage:"Identify and visualize my most brilliant moments from my documents",id:"mKtXUiA1KV"}),requiredIntegrations:["drive"]},{id:2391,prompt:e.formatMessage({defaultMessage:"Look at my docs and tell me what kind of genre writer I could be",id:"m0v6RJWzYT"}),requiredIntegrations:["drive"]},{id:2394,prompt:e.formatMessage({defaultMessage:"Reveal blind spots in my knowledge base",id:"imeEPA0DvL"}),requiredIntegrations:["drive"]},{id:2395,prompt:e.formatMessage({defaultMessage:"What idea themes consistently appear across all my documents?",id:"NLReSRb8fC"}),requiredIntegrations:["drive"]}].map(e=>m$e(e.id,e.prompt,e.requiredIntegrations)),calendarPrompts:[{id:2354,prompt:e.formatMessage({defaultMessage:"Look at how my calendar has shifted this month compared to last",id:"shyMrX4dFu"}),requiredIntegrations:["calendar"]},{id:2359,prompt:e.formatMessage({defaultMessage:"Show me insights about my meeting attendance patterns",id:"TBwDvZoAhF"}),requiredIntegrations:["calendar"]},{id:2360,prompt:e.formatMessage({defaultMessage:"Tell me which recurring meetings take up most of my time",id:"vO7dtqpbwv"}),requiredIntegrations:["calendar"]},{id:2361,prompt:e.formatMessage({defaultMessage:"Analyze if my actual meetings align with my stated priorities",id:"6mSMhZwJ0n"}),requiredIntegrations:["calendar"]},{id:2362,prompt:e.formatMessage({defaultMessage:"Analyze my calendar for meeting optimization",id:"mvd/tJwcAr"}),requiredIntegrations:["calendar"]},{id:2363,prompt:e.formatMessage({defaultMessage:"Tell me what my calendar reveals about my work-life balance",id:"/8Vwh//99Y"}),requiredIntegrations:["calendar"]},{id:2364,prompt:e.formatMessage({defaultMessage:"Identify how my calendar habits reflect my personal priorities",id:"W+Fc40havy"}),requiredIntegrations:["calendar"]},{id:2365,prompt:e.formatMessage({defaultMessage:"Show me how my seasonal patterns affect my scheduling and energy",id:"cZKRCX/m7i"}),requiredIntegrations:["calendar"]},{id:2366,prompt:e.formatMessage({defaultMessage:"Reflect on my calendar as if I was 100 years old looking back at this time",id:"/CfwhuIpUP"}),requiredIntegrations:["calendar"]},{id:2367,prompt:e.formatMessage({defaultMessage:"Give me tips on how to organize my calendar",id:"HTqvt7OTAX"}),requiredIntegrations:["calendar"]},{id:2381,prompt:e.formatMessage({defaultMessage:"Transform my calendar into a fantasy quest journal",id:"NppJlnOBlI"}),requiredIntegrations:["calendar"]},{id:2382,prompt:e.formatMessage({defaultMessage:"Turn my calendar events into a poetic \u2018day in the life\u2019 narrative",id:"HN5rBNAiB3"}),requiredIntegrations:["calendar"]},{id:2388,prompt:e.formatMessage({defaultMessage:"Predict my next stress point by analyzing my calendar density patterns",id:"O3O40hWQWC"}),requiredIntegrations:["calendar"]},{id:2389,prompt:e.formatMessage({defaultMessage:"Create a visual guide for calendar management based on my ennegram",id:"rbNsWEFtov"}),requiredIntegrations:["calendar"]},{id:2393,prompt:e.formatMessage({defaultMessage:"Visualize where my time truly goes each week",id:"yO0Q2FnEba"}),requiredIntegrations:["calendar"]}].map(e=>m$e(e.id,e.prompt,e.requiredIntegrations)),gmailPrompts:[{id:2368,prompt:e.formatMessage({defaultMessage:"Analyze my email communication style",id:"7vA7eH7ziY"}),requiredIntegrations:["gmail"]},{id:2372,prompt:e.formatMessage({defaultMessage:"Tell me how I can optimize my inbox",id:"opHLS0Gtwb"}),requiredIntegrations:["gmail"]},{id:2373,prompt:e.formatMessage({defaultMessage:"Pull out important points from my latest work emails",id:"S7uZ3+xl+E"}),requiredIntegrations:["gmail"]},{id:2375,prompt:e.formatMessage({defaultMessage:"Tell me which emails I subscribe to usually go unread",id:"yrdM22UBwm"}),requiredIntegrations:["gmail"]},{id:2376,prompt:e.formatMessage({defaultMessage:"Tell me about my email organization habits",id:"Go3w1FnNwd"}),requiredIntegrations:["gmail"]},{id:2377,prompt:e.formatMessage({defaultMessage:"See what emotional themes emerge from my email conversations",id:"ej+OgiDjKA"}),requiredIntegrations:["gmail"]},{id:2378,prompt:e.formatMessage({defaultMessage:"Let me know how I can be more persuasive in my emails",id:"8fvWcGtKv6"}),requiredIntegrations:["gmail"]},{id:2379,prompt:e.formatMessage({defaultMessage:"Show me any tricks that can help me manage email",id:"LVXv9t69ey"}),requiredIntegrations:["gmail"]},{id:2383,prompt:e.formatMessage({defaultMessage:"Write a pretend 1-page newspaper based on my integrations?",id:"IU867V55qz"}),requiredIntegrations:["gmail","calendar","drive"]},{id:2384,prompt:e.formatMessage({defaultMessage:"If my email inbox was a reality TV show, who would be voted off the island first?",id:"z0lmb22Xrl"}),requiredIntegrations:["gmail"]},{id:2385,prompt:e.formatMessage({defaultMessage:"Create a diplomatic response to my most challenging recent email thread",id:"Reuevm3yyI"}),requiredIntegrations:["gmail"]},{id:2386,prompt:e.formatMessage({defaultMessage:"Generate a \u2018personal brand statement\u2019 based on how I communicate in email",id:"7jWv891ArH"}),requiredIntegrations:["gmail"]},{id:2387,prompt:e.formatMessage({defaultMessage:"Casually look through my work integrations to find people who seem to support my career growth",id:"3XiyrXrFdP"}),requiredIntegrations:["gmail","drive","calendar"]},{id:2392,prompt:e.formatMessage({defaultMessage:"Look through my emails and tell me where I\u2019m avoiding something important",id:"c9XxyGP4pu"}),requiredIntegrations:["gmail"]},{id:2396,prompt:e.formatMessage({defaultMessage:"Create \u2018missed connections\u2019 personal ads based on my most interesting email exchanges",id:"+Zrv75jPQ8"}),requiredIntegrations:["gmail"]}].map(e=>m$e(e.id,e.prompt,e.requiredIntegrations))}}(t);return{research_analysis:{id:"research_analysis",title:t.formatMessage({defaultMessage:"Research",id:"JEe7dVso7F"}),icon:"binoculars",prompts:[{id:2520,prompt:t.formatMessage({defaultMessage:"Research how to write documentation that people will actually want to read",id:"OC2638oeaU"}),requiredIntegrations:["compass"]},{id:2521,prompt:t.formatMessage({defaultMessage:"Find the best way to explain our product to new users, use my docs as needed",id:"F7EDf8t8Bo"}),requiredIntegrations:["compass"]},{id:2522,prompt:t.formatMessage({defaultMessage:"Navigate the maze of healthcare compliance requirements",id:"5q8WUtVePQ"}),requiredIntegrations:["compass"]},{id:2523,prompt:t.formatMessage({defaultMessage:"Find the best tools for managing remote team communication",id:"dm9Yw2VvWj"}),requiredIntegrations:["compass"]},{id:2524,prompt:t.formatMessage({defaultMessage:"Go deep on the secret behind companies with amazing customer service",id:"ZvaAUTg4NJ"}),requiredIntegrations:["compass"]},{id:2525,prompt:t.formatMessage({defaultMessage:"Discover fresh angles on my writing based on my docs",id:"uwBO9AZ2Hm"}),requiredIntegrations:["compass"]},{id:2526,prompt:t.formatMessage({defaultMessage:"Dive deep on what travel trends will be for the next five years",id:"mbQ/lqLcNs"}),requiredIntegrations:["compass"]},{id:2527,prompt:t.formatMessage({defaultMessage:"Understand what\u2019s happening with tariffs right now",id:"eRhfriCbst"}),requiredIntegrations:["compass"]},{id:2528,prompt:t.formatMessage({defaultMessage:"Find the weird science behind everyday products people love",id:"zg9HRwVQXY"}),requiredIntegrations:["compass"]},{id:2529,prompt:t.formatMessage({defaultMessage:"Research and deliver findings relevant to me as a time-traveler from 2050",id:"6anL43QNOG"}),requiredIntegrations:["compass"]},{id:2530,prompt:t.formatMessage({defaultMessage:"Find the most compelling stories about an important topic from my docs",id:"c6E7Ns074y"}),requiredIntegrations:["compass"]},{id:2531,prompt:t.formatMessage({defaultMessage:"Determine my main competitors based on my docs and show me what my competitors are doing differently this year",id:"fGotzCjtN8"}),requiredIntegrations:["compass"]},{id:2532,prompt:t.formatMessage({defaultMessage:"Identify the most important performance differences between the latest accelerators from nvidia, google, and amazon?",id:"Qv+TmDOB+G"}),requiredIntegrations:["compass"]},{id:2533,prompt:t.formatMessage({defaultMessage:"Extract the most actionable insights from my meeting notes that I\u2019m not acting on",id:"MbOsM24VjX"}),requiredIntegrations:["compass"]},{id:2534,prompt:t.formatMessage({defaultMessage:"Come up with novel ideas for projects based on my docs",id:"XMCRXRR86O"}),requiredIntegrations:["compass"]},{id:2535,prompt:t.formatMessage({defaultMessage:"Map the evolution of sleep research in the past decade",id:"gy3b4CEGLa"}),requiredIntegrations:["compass"]},{id:2536,prompt:t.formatMessage({defaultMessage:"Identify emerging patterns in human and machine relationships",id:"YwCdDoWQAn"}),requiredIntegrations:["compass"]},{id:2537,prompt:t.formatMessage({defaultMessage:"Compare researchers\u2019 disagreements about climate solutions",id:"7cQcGbmOxx"}),requiredIntegrations:["compass"]},{id:2538,prompt:t.formatMessage({defaultMessage:"Examine how fermentation discoveries changed ancient diets",id:"HpMrOkiJqY"}),requiredIntegrations:["compass"]},{id:2539,prompt:t.formatMessage({defaultMessage:"Find how humans realized teeth need cleaning",id:"7NSNQf+5Op"}),requiredIntegrations:["compass"]},{id:2540,prompt:t.formatMessage({defaultMessage:"Explore why we even developed singing (is it just happy noises?)",id:"xFqIyfOj5q"}),requiredIntegrations:["compass"]},{id:2541,prompt:t.formatMessage({defaultMessage:"Track invention of the idea of \u201cfree time\u201d - when did that start?",id:"41tDkZbmHx"}),requiredIntegrations:["compass"]},{id:2542,prompt:t.formatMessage({defaultMessage:"Research how money became a thing",id:"A/qDo0Z4Nh"}),requiredIntegrations:["compass"]},{id:2543,prompt:t.formatMessage({defaultMessage:"Discover how humans figured out \u201cthose mushrooms = bad idea\u201d",id:"YoDuuGR1CH"}),requiredIntegrations:["compass"]},{id:2544,prompt:t.formatMessage({defaultMessage:"Investigate when we realized trees could talk (chemically)",id:"T5axdlsZV+"}),requiredIntegrations:["compass"]}]},coding_development:{id:"coding_development",title:t.formatMessage({defaultMessage:"Code",id:"h2vipunVVd"}),icon:"code",prompts:[{id:1989,prompt:t.formatMessage({defaultMessage:"Look over my code and give me tips",id:"UjnLjLc2z7"})},{id:1990,prompt:t.formatMessage({defaultMessage:"Vibe code with me",id:"T9/F8wtcob"})},{id:1991,prompt:t.formatMessage({defaultMessage:"Quiz me on python code",id:"Ds+14kWKcO"})},{id:1992,prompt:t.formatMessage({defaultMessage:"Evaluate my coding style based on a snippet",id:"D4odiUdkdz"})},{id:1993,prompt:t.formatMessage({defaultMessage:"Tell me what programming paradigm suits my thinking style",id:"NFRDlqGMBP"})},{id:1994,prompt:t.formatMessage({defaultMessage:"Assess my approach to debugging problems",id:"TBoReog6KM"})},{id:1995,prompt:t.formatMessage({defaultMessage:"Challenge me with increasingly difficult coding puzzles",id:"xE158KfumR"})},{id:1996,prompt:t.formatMessage({defaultMessage:"Help me develop a personal learning roadmap for coding",id:"6jSHuQuOml"})},{id:1997,prompt:t.formatMessage({defaultMessage:"Help me turn a screenshot into working code",id:"W1p5P1lW4C"})},{id:1998,prompt:t.formatMessage({defaultMessage:"Design a game that teaches coding concepts through storytelling",id:"OnhD8kTaOY"})},{id:1999,prompt:t.formatMessage({defaultMessage:"Invent a coding language based on my favorite hobby",id:"eokTKz9/1x"})},{id:2e3,prompt:t.formatMessage({defaultMessage:"Design a digital pet that grows based on my coding habits",id:"4qIUejH8/a"})},{id:2001,prompt:t.formatMessage({defaultMessage:"Create a coding Easter egg that would make my team smile",id:"9Bf7LjRllF"})},{id:2002,prompt:t.formatMessage({defaultMessage:"Build an app based on my idea",id:"gvxzXxI9MK"})},{id:2003,prompt:t.formatMessage({defaultMessage:"Debug my code and give me tips",id:"FBttfgvRSO"})},{id:2004,prompt:t.formatMessage({defaultMessage:"Design a software architecture",id:"h+6fAU9cuG"})},{id:2005,prompt:t.formatMessage({defaultMessage:"Explain a programming concept",id:"DcD966yJAY"})},{id:2006,prompt:t.formatMessage({defaultMessage:"Plan a development roadmap",id:"K0ZMFnTFTh"})},{id:2007,prompt:t.formatMessage({defaultMessage:"Write unit test cases",id:"ySeDgsnF6S"})},{id:2008,prompt:t.formatMessage({defaultMessage:"Create API documentation",id:"ypt6LvOYQX"})},{id:2009,prompt:t.formatMessage({defaultMessage:"Design database schemas",id:"4oY3gtp9NE"})},{id:2010,prompt:t.formatMessage({defaultMessage:"Develop coding standards",id:"cywOxhro3/"})},{id:2011,prompt:t.formatMessage({defaultMessage:"Develop code reviews to speed me up",id:"hbTL7BHqfK"})},{id:2012,prompt:t.formatMessage({defaultMessage:"Create technical specifications",id:"/SCaxB45dl"})},{id:2013,prompt:t.formatMessage({defaultMessage:"Design UI/UX wireframes",id:"W/a420G5L4"})},{id:2014,prompt:t.formatMessage({defaultMessage:"Develop deployment strategies",id:"ooCZAQkrnU"})},{id:2015,prompt:t.formatMessage({defaultMessage:"Create refactoring plans",id:"IFLDB/e2/W"})},{id:2016,prompt:t.formatMessage({defaultMessage:"Design microservices",id:"1EHx8IcM+1"})},{id:2017,prompt:t.formatMessage({defaultMessage:"Develop algorithm solutions",id:"w2gqsKIDCb"})},{id:2018,prompt:t.formatMessage({defaultMessage:"Create security protocols",id:"ZaSODu2KvN"})},{id:2019,prompt:t.formatMessage({defaultMessage:"Design feature flags",id:"pqBRTUkZU6"})},{id:2020,prompt:t.formatMessage({defaultMessage:"Develop performance benchmarks",id:"CuOq32oaUc"})},{id:2021,prompt:t.formatMessage({defaultMessage:"Create debugging workflows",id:"R4gYUx6uo6"})},{id:2022,prompt:t.formatMessage({defaultMessage:"Design data structures",id:"vI6Ezw2z9R"})},{id:2023,prompt:t.formatMessage({defaultMessage:"Develop integration strategies",id:"rLbkjWAPUf"})},{id:2024,prompt:t.formatMessage({defaultMessage:"Create dependency maps",id:"ECkQRhGtsY"})},{id:2025,prompt:t.formatMessage({defaultMessage:"Design error handling",id:"3kf5pjbgvn"})},{id:2026,prompt:t.formatMessage({defaultMessage:"Develop CI/CD pipelines",id:"6pcmRPP4Qe"})},{id:2027,prompt:t.formatMessage({defaultMessage:"Create technical diagrams",id:"xpSoNjOIGX"})},{id:2028,prompt:t.formatMessage({defaultMessage:"Design scalability plans",id:"upGTebaT2V"})},{id:2029,prompt:t.formatMessage({defaultMessage:"Develop project estimates",id:"24W3Z/vgqo"})},{id:2030,prompt:t.formatMessage({defaultMessage:"Create code snippets",id:"xpa26zBvax"})},{id:2031,prompt:t.formatMessage({defaultMessage:"Design logging systems",id:"MQxMV15Vuy"})},{id:2032,prompt:t.formatMessage({defaultMessage:"Develop technical debt analysis",id:"Frq1+sK22T"})},{id:2033,prompt:t.formatMessage({defaultMessage:"Create monitoring solutions",id:"kquMdbVTtp"})}]},learning_studying:{id:"learning_studying",title:t.formatMessage({defaultMessage:"Learn",id:"IbrSk1x1M4"}),icon:"graduationCap",prompts:[{id:2077,prompt:t.formatMessage({defaultMessage:"Design a learning challenge that pushes my creative boundaries",id:"MjKVk9pYDX"})},{id:2078,prompt:t.formatMessage({defaultMessage:"Explain a concept in simple terms",id:"LW4P63qBFS"})},{id:2079,prompt:t.formatMessage({defaultMessage:"Help me understand a complex topic from scratch",id:"JEVhJOvLsU"})},{id:2080,prompt:t.formatMessage({defaultMessage:"Create a curriculum inspired by my favorite cultural movement",id:"4kzBd4LK9U"})},{id:2081,prompt:t.formatMessage({defaultMessage:"Develop a learning approach that embraces beautiful contradictions",id:"MQeX/2shE1"})},{id:2082,prompt:t.formatMessage({defaultMessage:"Transform a dry subject into something fascinating",id:"MYeFELytt1"})},{id:2083,prompt:t.formatMessage({defaultMessage:"Develop a learning framework based on my personal heroes",id:"g8BUI9KUfG"})},{id:2084,prompt:t.formatMessage({defaultMessage:"Create a knowledge map that reveals surprising patterns in what I know",id:"K1r9tGbIgl"})},{id:2085,prompt:t.formatMessage({defaultMessage:"Transform these notes into a structured summary",id:"4VW9V8nJcq"})},{id:2086,prompt:t.formatMessage({defaultMessage:"Help me make sense of these ideas",id:"QUSxHPHFEe"})},{id:2087,prompt:t.formatMessage({defaultMessage:"Find patterns in my research",id:"ywvVnimN8M"})},{id:2088,prompt:t.formatMessage({defaultMessage:"Explain a complex topic simply",id:"DD7vnjM3m/"})},{id:2089,prompt:t.formatMessage({defaultMessage:"Create a study plan",id:"K1Wim6s1df"})},{id:2090,prompt:t.formatMessage({defaultMessage:"Design a lesson or curriculum",id:"MvKwBovt6M"})},{id:2091,prompt:t.formatMessage({defaultMessage:"Compare learning resources",id:"anpfzpx/GQ"})},{id:2092,prompt:t.formatMessage({defaultMessage:"Find the best books on a subject",id:"mWpDUMson5"})},{id:2093,prompt:t.formatMessage({defaultMessage:"Prepare for an exam or interview",id:"fIYLke2heI"})},{id:2094,prompt:t.formatMessage({defaultMessage:"Create effective flashcards",id:"KQi4oS+dSJ"})},{id:2095,prompt:t.formatMessage({defaultMessage:"Develop learning objectives",id:"DaqiSFmaTH"})},{id:2096,prompt:t.formatMessage({defaultMessage:"Summarize my academic papers",id:"WLeFW5ZvaJ"})},{id:2097,prompt:t.formatMessage({defaultMessage:"Create assessment questions",id:"eGSwj20PZ5"})},{id:2098,prompt:t.formatMessage({defaultMessage:"Develop research methodologies",id:"nWHrUH64I6"})},{id:2099,prompt:t.formatMessage({defaultMessage:"Create learning timelines",id:"PSoi9GevSS"})},{id:2100,prompt:t.formatMessage({defaultMessage:"Design educational activities",id:"1ZIjSa8+LQ"})},{id:2101,prompt:t.formatMessage({defaultMessage:"Develop concept maps",id:"VLViqrrySY"})},{id:2102,prompt:t.formatMessage({defaultMessage:"Create good lecture notes",id:"PunAR9NaYF"})},{id:2103,prompt:t.formatMessage({defaultMessage:"Design presentation visuals",id:"6T4u6NjkO4"})},{id:2104,prompt:t.formatMessage({defaultMessage:"Develop learning frameworks",id:"FqQCVivM7p"})},{id:2105,prompt:t.formatMessage({defaultMessage:"Create annotated bibliographies",id:"kvz5g990af"})},{id:2106,prompt:t.formatMessage({defaultMessage:"Design learning journals",id:"8lwpelX5d1"})},{id:2107,prompt:t.formatMessage({defaultMessage:"Develop discussion prompts",id:"WICNzS62vA"})},{id:2108,prompt:t.formatMessage({defaultMessage:"Create educational games",id:"Ka9OnUXY6j"})},{id:2109,prompt:t.formatMessage({defaultMessage:"Develop teaching strategies",id:"69qa1LgvPx"})},{id:2110,prompt:t.formatMessage({defaultMessage:"Create educational rubrics",id:"Kh+PBhuovF"})},{id:2111,prompt:t.formatMessage({defaultMessage:"Design learning modules",id:"qq2NarEOef"})},{id:2112,prompt:t.formatMessage({defaultMessage:"Develop critical analyses",id:"KvLdmmnxIn"})},{id:2113,prompt:t.formatMessage({defaultMessage:"Design research questions",id:"XhVWHG9Sdk"})},{id:2114,prompt:t.formatMessage({defaultMessage:"Develop reflection exercises",id:"CXejFSlVy9"})},{id:2115,prompt:t.formatMessage({defaultMessage:"Create study summaries",id:"IMtWPkCWsn"})},{id:2116,prompt:t.formatMessage({defaultMessage:"Design learning portfolios",id:"zew3RWdo0O"})},{id:2117,prompt:t.formatMessage({defaultMessage:"Create feedback for student work",id:"yr9oDimBZn"})},{id:2118,prompt:t.formatMessage({defaultMessage:"Design learning challenges",id:"7IWwSWjeJ2"})},{id:2119,prompt:t.formatMessage({defaultMessage:"Find credible sources for my research",id:"Xjd3yRvEax"}),requiredIntegrations:["compass"]},{id:2120,prompt:t.formatMessage({defaultMessage:"Provide evidence-based insights for my topic",id:"ikHJ281kAo"}),requiredIntegrations:["compass"]}]},writing_content_creation:{id:"writing_content_creation",title:t.formatMessage({defaultMessage:"Write",id:"k2veDAJW1p"}),icon:"pencil",prompts:[{id:2034,prompt:t.formatMessage({defaultMessage:"Craft a manifesto that captures the essence of my boldest ideas",id:"B6d6kkXGBJ"}),requiredIntegrations:["drive"]},{id:2035,prompt:t.formatMessage({defaultMessage:"Help me develop my unique voice as a writer",id:"rTrgwtfp2h"})},{id:2036,prompt:t.formatMessage({defaultMessage:"Help me identify my writing weaknesses",id:"1s7oVAi0Pd"})},{id:2037,prompt:t.formatMessage({defaultMessage:"Create a piece that blends two completely different writing styles",id:"nb4kh9OP1j"})},{id:2038,prompt:t.formatMessage({defaultMessage:"Reimagine a piece of my writing as an edge-of-your-seat thriller",id:"8NLHBTPbYG"}),requiredIntegrations:["drive"]},{id:2039,prompt:t.formatMessage({defaultMessage:"Compare my writing style to famous authors",id:"K0f9rGv0rF"})},{id:2040,prompt:t.formatMessage({defaultMessage:"Craft something that reads differently depending on the reader\u2019s mood",id:"DI9vTZal0r"})},{id:2041,prompt:t.formatMessage({defaultMessage:"Write something in the voice of my favorite historical figure",id:"vWN3h7OAuF"})},{id:2042,prompt:t.formatMessage({defaultMessage:"Help me develop a unique voice for an audience",id:"KgPw7zqzLp"})},{id:2043,prompt:t.formatMessage({defaultMessage:"Edit my content",id:"mb9uhDVJvz"})},{id:2044,prompt:t.formatMessage({defaultMessage:"Create a content strategy",id:"h6NFwZ/ZfT"})},{id:2045,prompt:t.formatMessage({defaultMessage:"Brainstorm creative ideas",id:"Jt83/JbsM9"})},{id:2046,prompt:t.formatMessage({defaultMessage:"Research topics for my writing",id:"FDvFbZAnkI"})},{id:2047,prompt:t.formatMessage({defaultMessage:"Improve my writing style",id:"zU/XTFnUcv"})},{id:2048,prompt:t.formatMessage({defaultMessage:"Draft an outline for my project",id:"m2h0HzFxJe"})},{id:2049,prompt:t.formatMessage({defaultMessage:"Develop character profiles",id:"dQMhHY8Y8F"})},{id:2050,prompt:t.formatMessage({defaultMessage:"Create engaging headlines",id:"uwmx8aAqhK"})},{id:2051,prompt:t.formatMessage({defaultMessage:"Draft email newsletters",id:"oOqRRJkjP4"})},{id:2052,prompt:t.formatMessage({defaultMessage:"Develop content calendars",id:"LENTagTu7G"})},{id:2053,prompt:t.formatMessage({defaultMessage:"Create social media posts",id:"wW46ph9C8F"})},{id:2054,prompt:t.formatMessage({defaultMessage:"Write compelling CTAs",id:"pPDiLJ7Tqn"})},{id:2055,prompt:t.formatMessage({defaultMessage:"Develop brand voice guides",id:"jcgJlYmihS"})},{id:2056,prompt:t.formatMessage({defaultMessage:"Create blog article series",id:"zgePq4YWja"})},{id:2057,prompt:t.formatMessage({defaultMessage:"Write product descriptions",id:"6DvwCDYOOq"})},{id:2058,prompt:t.formatMessage({defaultMessage:"Develop podcast scripts",id:"OywQHgrPsb"})},{id:2059,prompt:t.formatMessage({defaultMessage:"Create interview questions",id:"zDzRyPEZp4"})},{id:2060,prompt:t.formatMessage({defaultMessage:"Write video scripts",id:"mcZekvOn+b"})},{id:2061,prompt:t.formatMessage({defaultMessage:"Develop storytelling frameworks",id:"FtF4XJBOnM"})},{id:2062,prompt:t.formatMessage({defaultMessage:"Create persuasive arguments",id:"XZcB17G8P4"})},{id:2063,prompt:t.formatMessage({defaultMessage:"Write executive summaries",id:"9sQjL5+ERx"})},{id:2064,prompt:t.formatMessage({defaultMessage:"Develop content templates",id:"pETh61dMt9"})},{id:2065,prompt:t.formatMessage({defaultMessage:"Create user documentation",id:"idyrQqR3Op"})},{id:2066,prompt:t.formatMessage({defaultMessage:"Write case studies",id:"mL4lFjUWH5"})},{id:2067,prompt:t.formatMessage({defaultMessage:"Develop content briefs",id:"N5Kq2Xd38l"})},{id:2068,prompt:t.formatMessage({defaultMessage:"Create presentation scripts",id:"99zE2lO2CZ"})},{id:2069,prompt:t.formatMessage({defaultMessage:"Write speech drafts",id:"lcnKaPTrE0"})},{id:2070,prompt:t.formatMessage({defaultMessage:"Develop instructional content",id:"8sVyx8jP2l"})},{id:2071,prompt:t.formatMessage({defaultMessage:"Create FAQ resources",id:"k3dGvxq6iG"})},{id:2072,prompt:t.formatMessage({defaultMessage:"Write marketing copy",id:"VV52V32lyU"})},{id:2073,prompt:t.formatMessage({defaultMessage:"Write grant proposals",id:"1l3TsNOpQv"})},{id:2074,prompt:t.formatMessage({defaultMessage:"Develop editorial guidelines",id:"aKQLCVno9a"})},{id:2075,prompt:t.formatMessage({defaultMessage:"Create technical explanations",id:"Vbh+adtFkj"})},{id:2076,prompt:t.formatMessage({defaultMessage:"Write event descriptions",id:"skCx6nY/tQ"})}]},business_strategy:{id:"business_strategy",title:t.formatMessage({defaultMessage:"Strategize",id:"bHSlU6I+PS"}),icon:"chartLine",prompts:[{id:2121,prompt:t.formatMessage({defaultMessage:"Test my negotiation tactics with scenarios",id:"tX7OhpahBs"})},{id:2122,prompt:t.formatMessage({defaultMessage:"Quiz me on my business skills",id:"wb5rCkcE/G"})},{id:2123,prompt:t.formatMessage({defaultMessage:"Help me develop and hone a strategy",id:"giXG/GpDn5"})},{id:2124,prompt:t.formatMessage({defaultMessage:"Map the unexpected connections between unrelated market trends",id:"J4VKxFx4zj"})},{id:2125,prompt:t.formatMessage({defaultMessage:"Reimagine my business as if it were founded 100 years in the future",id:"aC9ShPqiab"})},{id:2126,prompt:t.formatMessage({defaultMessage:"Design a strategy game based on my business challenges",id:"UYECQdYEFG"})},{id:2127,prompt:t.formatMessage({defaultMessage:"Develop a business ecosystem inspired by my personal passions",id:"3pUyqycRDL"})},{id:2128,prompt:t.formatMessage({defaultMessage:"Create a business model canvas that breaks every conventional rule",id:"J+tFYxRhf+"})},{id:2129,prompt:t.formatMessage({defaultMessage:"Design a strategy inspired by patterns found in nature",id:"gHQ4npSc7U"})},{id:2130,prompt:t.formatMessage({defaultMessage:"Develop a business plan",id:"meb6sWxoUF"})},{id:2131,prompt:t.formatMessage({defaultMessage:"Analyze market opportunities",id:"/BiZHS29Z7"})},{id:2132,prompt:t.formatMessage({defaultMessage:"Create a marketing strategy",id:"RuSvFFJE4T"})},{id:2133,prompt:t.formatMessage({defaultMessage:"Improve operational efficiency",id:"a/C7Yg2mcE"})},{id:2134,prompt:t.formatMessage({defaultMessage:"Draft a pitch or proposal",id:"ci4D5uzZJY"})},{id:2135,prompt:t.formatMessage({defaultMessage:"Build financial projections",id:"JN0cYGzK/+"})},{id:2136,prompt:t.formatMessage({defaultMessage:"Conduct competitor analysis",id:"EGsWIKN81T"})},{id:2137,prompt:t.formatMessage({defaultMessage:"Create customer personas",id:"2b0ecdVBZJ"})},{id:2138,prompt:t.formatMessage({defaultMessage:"Develop pricing strategies",id:"3R0N838Y/F"})},{id:2139,prompt:t.formatMessage({defaultMessage:"Plan product launches",id:"5fHoQfVI8V"})},{id:2140,prompt:t.formatMessage({defaultMessage:"Create sales presentations",id:"nngfvXXvp2"})},{id:2141,prompt:t.formatMessage({defaultMessage:"Design growth frameworks",id:"up8uZVdSe9"})},{id:2142,prompt:t.formatMessage({defaultMessage:"Develop KPI dashboards",id:"l4GydLVH9R"})},{id:2143,prompt:t.formatMessage({defaultMessage:"Create business processes",id:"Wr/ipq2hYs"})},{id:2144,prompt:t.formatMessage({defaultMessage:"Analyze business metrics",id:"NoYszDBZks"})},{id:2145,prompt:t.formatMessage({defaultMessage:"Develop stakeholder communications",id:"dSnDllCwXQ"})},{id:2146,prompt:t.formatMessage({defaultMessage:"Plan market research",id:"604ZbY50uJ"})},{id:2147,prompt:t.formatMessage({defaultMessage:"Create strategic partnerships",id:"8tW3zd9e6X"})},{id:2148,prompt:t.formatMessage({defaultMessage:"Develop risk assessments",id:"GeKY1UT4ea"})},{id:2149,prompt:t.formatMessage({defaultMessage:"Plan organizational structure",id:"2sy2QUzqHO"})},{id:2150,prompt:t.formatMessage({defaultMessage:"Create recruiting strategies",id:"4aMNtgygYT"})},{id:2151,prompt:t.formatMessage({defaultMessage:"Analyze great investment pitches",id:"hebeMEkUIN"}),requiredIntegrations:["compass"]},{id:2152,prompt:t.formatMessage({defaultMessage:"Plan budget allocations",id:"mjq3MAiNNI"})},{id:2153,prompt:t.formatMessage({defaultMessage:"Create vendor evaluations",id:"5t4F/crY9k"})},{id:2154,prompt:t.formatMessage({defaultMessage:"Develop client proposals",id:"D42dV+usdc"})},{id:2155,prompt:t.formatMessage({defaultMessage:"Plan business scaling strategies",id:"zBpo2c5nVc"})},{id:2156,prompt:t.formatMessage({defaultMessage:"Create business pivots",id:"VUMvhVxmLk"})},{id:2157,prompt:t.formatMessage({defaultMessage:"Develop brand positioning",id:"z6mgUZvDTf"})},{id:2158,prompt:t.formatMessage({defaultMessage:"Plan expansion opportunities",id:"/itkOULoWx"})},{id:2159,prompt:t.formatMessage({defaultMessage:"Create revenue forecasts",id:"zj12Dd5pec"})},{id:2160,prompt:t.formatMessage({defaultMessage:"Develop sustainability initiatives",id:"CaeaP9fJWo"})},{id:2161,prompt:t.formatMessage({defaultMessage:"Plan business acquisitions",id:"bzY1U8fiZs"})},{id:2163,prompt:t.formatMessage({defaultMessage:"Develop distribution strategies",id:"l01Kti4ItN"})},{id:2164,prompt:t.formatMessage({defaultMessage:"Research top go-to-market strategies",id:"9VwdMjJszo"}),requiredIntegrations:["compass"]},{id:2165,prompt:t.formatMessage({defaultMessage:"Create customer journeys",id:"NP6oKcbfQZ"})}]},design_creativity:{id:"design_creativity",title:t.formatMessage({defaultMessage:"Create",id:"VzzYJkHnLP"}),icon:"palette",prompts:[{id:2166,prompt:t.formatMessage({defaultMessage:"Help me identify my creative style",id:"NqGw76gHJP"})},{id:2167,prompt:t.formatMessage({defaultMessage:"Quiz me on how to give good design feedback in a crit",id:"Qr1Q5eAG7t"})},{id:2168,prompt:t.formatMessage({defaultMessage:"Design a chracter profile based on my creative super power",id:"9U/SX5lot9"})},{id:2169,prompt:t.formatMessage({defaultMessage:"Generate a list of powerful words to use in a client presentation",id:"J9R3MDB3ob"})},{id:2170,prompt:t.formatMessage({defaultMessage:"Reimagine this everyday object for a radically different culture",id:"o1hTN6xWi3"})},{id:2171,prompt:t.formatMessage({defaultMessage:"Design an experience that changes how people perceive time",id:"KVuLjGjnmW"})},{id:2172,prompt:t.formatMessage({defaultMessage:"Create something inspired by the most beautiful mistake",id:"9dCQ8j6CAs"})},{id:2173,prompt:t.formatMessage({defaultMessage:"Design an interactive installation based on my personal values",id:"PbpYC5WqsO"})},{id:2174,prompt:t.formatMessage({defaultMessage:"Create a visual language for emotions that have no names",id:"pzH4wke5jY"})},{id:2175,prompt:t.formatMessage({defaultMessage:"Design something that bridges ancient techniques and futuristic concepts",id:"TpbaAP3qZ9"})},{id:2176,prompt:t.formatMessage({defaultMessage:"Design an experience that transforms digital connections into physical ones",id:"ReWRHtmyJe"})},{id:2177,prompt:t.formatMessage({defaultMessage:"Outline an ideation workshop that will blow away my creative team",id:"BDkNPgbIh6"})},{id:2178,prompt:t.formatMessage({defaultMessage:"Help me design a creative offsite that will be legendary",id:"6jbjXU4Hlg"})},{id:2179,prompt:t.formatMessage({defaultMessage:"Analyze my design aesthetic from examples",id:"T2ALJ8VaJI"})},{id:2180,prompt:t.formatMessage({defaultMessage:"Test my eye for detail with examples",id:"l8fhXVFKUs"})},{id:2181,prompt:t.formatMessage({defaultMessage:"Quiz me on design principles and theory",id:"wDB2DbDcqL"})},{id:2182,prompt:t.formatMessage({defaultMessage:"Transform my concept into a detailed design specification",id:"cDcH0tvOZw"})},{id:2183,prompt:t.formatMessage({defaultMessage:"Help me make something more user-friendly",id:"uJy3CcS49i"})},{id:2184,prompt:t.formatMessage({defaultMessage:"Brainstorm creative concepts",id:"UwunJdOlJA"})},{id:2185,prompt:t.formatMessage({defaultMessage:"Plan milestones for a creative project",id:"67yjnvLmzu"})},{id:2186,prompt:t.formatMessage({defaultMessage:"Write a solid creative brief",id:"LvJXl1AyH1"})},{id:2187,prompt:t.formatMessage({defaultMessage:"Generate design inspiration from history",id:"L/fjg7ajJn"}),requiredIntegrations:["compass"]},{id:2188,prompt:t.formatMessage({defaultMessage:"Create a style guide",id:"DlJOb9BrmQ"})},{id:2189,prompt:t.formatMessage({defaultMessage:"Translate a brief into design items",id:"LXYYHhSmej"})},{id:2190,prompt:t.formatMessage({defaultMessage:"Create on-trend color palettes",id:"f6p42GDky3"}),requiredIntegrations:["compass"]},{id:2191,prompt:t.formatMessage({defaultMessage:"Develop brand personas",id:"NxRJLSINR/"})},{id:2192,prompt:t.formatMessage({defaultMessage:"Write compelling copy",id:"a2J/UU9MRp"})},{id:2193,prompt:t.formatMessage({defaultMessage:"Plan friction-free user experience flows",id:"ramkRdjYR2"})},{id:2194,prompt:t.formatMessage({defaultMessage:"Generate character concepts for fiction",id:"RSmtCyBgZ7"})},{id:2195,prompt:t.formatMessage({defaultMessage:"Develop storytelling frameworks",id:"FtF4XJBOnM"})},{id:2196,prompt:t.formatMessage({defaultMessage:"Create mood boards",id:"pZnaKfw4vK"})},{id:2197,prompt:t.formatMessage({defaultMessage:"Design a presentation layout",id:"bXSQXHTTLY"})},{id:2198,prompt:t.formatMessage({defaultMessage:"Plan content calendars",id:"+V/48rBEwQ"})},{id:2199,prompt:t.formatMessage({defaultMessage:"Develop naming conventions",id:"Xc4dmCfJ1N"})},{id:2200,prompt:t.formatMessage({defaultMessage:"Research good typography systems",id:"kQeiUjaveG"}),requiredIntegrations:["compass"]},{id:2201,prompt:t.formatMessage({defaultMessage:"Generate illustration ideas",id:"62gOmANBJ8"})},{id:2202,prompt:t.formatMessage({defaultMessage:"Plan a creative brainstorm with clients",id:"4swRc8wnCX"})},{id:2203,prompt:t.formatMessage({defaultMessage:"Create logo variations",id:"2crLKNG8YF"})},{id:2204,prompt:t.formatMessage({defaultMessage:"Develop marketing campaigns",id:"IRi0ZHvltT"})},{id:2205,prompt:t.formatMessage({defaultMessage:"Write creative prompts for LLMs",id:"HXH48rAKcA"})},{id:2206,prompt:t.formatMessage({defaultMessage:"Plan videogame storyboards",id:"fDsVZzkaX5"})},{id:2207,prompt:t.formatMessage({defaultMessage:"Generate packaging concepts",id:"g/gfZWF2eT"})},{id:2208,prompt:t.formatMessage({defaultMessage:"Create social media templates",id:"DnmDVStIMp"})},{id:2209,prompt:t.formatMessage({defaultMessage:"Develop product narratives",id:"AhJKjp+S+I"})},{id:2210,prompt:t.formatMessage({defaultMessage:"Design email newsletters",id:"vYpC3fDa2x"})},{id:2211,prompt:t.formatMessage({defaultMessage:"Create website structures",id:"l0KdwEPjjF"})},{id:2212,prompt:t.formatMessage({defaultMessage:"Plan photography shoots",id:"1zeMLU3XGz"})},{id:2213,prompt:t.formatMessage({defaultMessage:"Generate animation concepts",id:"DA2GRc5Ejh"})},{id:2214,prompt:t.formatMessage({defaultMessage:"Create portfolio presentations",id:"N7RIOjtiIE"})},{id:2215,prompt:t.formatMessage({defaultMessage:"Develop editorial calendars",id:"fkTdKUg/tY"})},{id:2216,prompt:t.formatMessage({defaultMessage:"Design event materials",id:"YgzwBO/yTq"})},{id:2217,prompt:t.formatMessage({defaultMessage:"Create content strategies",id:"i2+Dyh5tAM"})}]},life_stuff:{id:"life_stuff",title:t.formatMessage({defaultMessage:"Life stuff",id:"eqxtp6fXh6"}),icon:"coffee",validAccountTiers:["free","claude_pro","claude_max"],prompts:[{id:2218,prompt:t.formatMessage({defaultMessage:"Help me reflect on an experience",id:"F0mgakuoKr"})},{id:2219,prompt:t.formatMessage({defaultMessage:"Help me work through a decision",id:"MAaWoRhnhI"})},{id:2220,prompt:t.formatMessage({defaultMessage:"Transform my personal goals into an actionable plan",id:"LZmVKNJWMV"})},{id:2221,prompt:t.formatMessage({defaultMessage:"Roleplay difficult conversations I need to prepare for",id:"hzPj+FU/1R"})},{id:2222,prompt:t.formatMessage({defaultMessage:"Guide me through a decision-making framework for a life choice",id:"rCjtxDkG3S"})},{id:2223,prompt:t.formatMessage({defaultMessage:"Create a routine for a goal",id:"ecA2Ec1wCt"})},{id:2224,prompt:t.formatMessage({defaultMessage:"Plan my day or week",id:"v2jfsVcSj7"})},{id:2225,prompt:t.formatMessage({defaultMessage:"Help with decision making",id:"aM7La1VyKp"})},{id:2226,prompt:t.formatMessage({defaultMessage:"Create a personal development plan",id:"pQvCOQPe7L"})},{id:2227,prompt:t.formatMessage({defaultMessage:"Generate gift or travel ideas",id:"rSmKjXFhg5"})},{id:2228,prompt:t.formatMessage({defaultMessage:"Improve my habits",id:"rCS/p9QoRY"})},{id:2229,prompt:t.formatMessage({defaultMessage:"Manage my time better",id:"oSygLMstQa"})},{id:2230,prompt:t.formatMessage({defaultMessage:"Organize my living space",id:"Jl48WRAZy4"})},{id:2231,prompt:t.formatMessage({defaultMessage:"Create a personal budget",id:"HIRteEbt7/"})},{id:2232,prompt:t.formatMessage({defaultMessage:"Plan healthy meals",id:"egk6MV15Dy"})},{id:2233,prompt:t.formatMessage({defaultMessage:"Develop exercise routines",id:"MRPsKOKvjK"})},{id:2234,prompt:t.formatMessage({defaultMessage:"Improve sleep habits",id:"VtLkxLpuc4"})},{id:2235,prompt:t.formatMessage({defaultMessage:"Build better relationships",id:"9p2L9OsKVL"})},{id:2236,prompt:t.formatMessage({defaultMessage:"Manage personal stress",id:"3xTzKjImkn"})},{id:2237,prompt:t.formatMessage({defaultMessage:"Create family activities",id:"uBDooJG6k6"})},{id:2238,prompt:t.formatMessage({defaultMessage:"Plan special celebrations",id:"FV9l1oQHYk"})},{id:2239,prompt:t.formatMessage({defaultMessage:"Explore productivity systems",id:"IrWHAkEdQH"})},{id:2240,prompt:t.formatMessage({defaultMessage:"Develop mindfulness practices",id:"deJehxP0tx"})},{id:2241,prompt:t.formatMessage({defaultMessage:"Create reading lists",id:"oj1mBAO9X7"})},{id:2242,prompt:t.formatMessage({defaultMessage:"Improve communication skills",id:"wP6nVZJ/Id"})},{id:2243,prompt:t.formatMessage({defaultMessage:"Handle difficult conversations",id:"dKEerER+k9"})},{id:2244,prompt:t.formatMessage({defaultMessage:"Organize digital files",id:"DPqusTsRcF"})},{id:2245,prompt:t.formatMessage({defaultMessage:"Plan home improvements",id:"C2GAF1NJTv"})},{id:2246,prompt:t.formatMessage({defaultMessage:"Create cleaning routines",id:"tEN5Zgar6L"})},{id:2247,prompt:t.formatMessage({defaultMessage:"Develop personal hobbies",id:"O0plScRH37"})},{id:2248,prompt:t.formatMessage({defaultMessage:"Balance social commitments",id:"mmcoBa6xgp"})},{id:2249,prompt:t.formatMessage({defaultMessage:"Track personal goals",id:"4yEz6TKT21"})},{id:2250,prompt:t.formatMessage({defaultMessage:"Plan educational pursuits",id:"YVHMlpMy6X"})},{id:2251,prompt:t.formatMessage({defaultMessage:"Improve financial literacy",id:"oLFUZbAjtt"})},{id:2252,prompt:t.formatMessage({defaultMessage:"Develop self-care practices",id:"wm5alracwW"})},{id:2253,prompt:t.formatMessage({defaultMessage:"Create morning routines",id:"tDaNmqSzY3"})},{id:2254,prompt:t.formatMessage({defaultMessage:"Manage household tasks",id:"85bpKRUeGD"})},{id:2255,prompt:t.formatMessage({defaultMessage:"Plan retirement activities",id:"WiJSBTogOI"})},{id:2256,prompt:t.formatMessage({defaultMessage:"Create family traditions",id:"SUz3dSYNtS"})},{id:2257,prompt:t.formatMessage({defaultMessage:"Develop parenting strategies",id:"M48af5JlCN"})},{id:2258,prompt:t.formatMessage({defaultMessage:"Improve time management",id:"yXh56szXUy"})},{id:2259,prompt:t.formatMessage({defaultMessage:"Create personal boundaries",id:"0ZY53IFMkW"})}]},career_chat:{id:"career_chat",title:t.formatMessage({defaultMessage:"Career chat",id:"YvvFSmmGTf"}),icon:"briefcase",validAccountTiers:["raven"],prompts:[{id:2260,prompt:t.formatMessage({defaultMessage:"Help me pick the right career for me",id:"geaVOBvHnf"})},{id:2261,prompt:t.formatMessage({defaultMessage:"Choose a career path based on my astrology",id:"PlTD5LPZ0j"})},{id:2262,prompt:t.formatMessage({defaultMessage:"Give me a work persona based on my favorite books",id:"M9eEg+x84x"})},{id:2263,prompt:t.formatMessage({defaultMessage:"Help me role play a talk with my boss",id:"1rgRd+nECk"})},{id:2264,prompt:t.formatMessage({defaultMessage:"Give me pointers on being a better manager",id:"N1Ai2w8Rzr"})},{id:2265,prompt:t.formatMessage({defaultMessage:"Write a job description for my dream life",id:"hfsU8KNIgN"})},{id:2266,prompt:t.formatMessage({defaultMessage:"Update my resume or LinkedIn",id:"vxX+U7BY/m"})},{id:2267,prompt:t.formatMessage({defaultMessage:"Prepare for a job interview",id:"ZZs+9RvBit"})},{id:2268,prompt:t.formatMessage({defaultMessage:"Develop my professional skills",id:"DzwBhwQmwn"})},{id:2269,prompt:t.formatMessage({defaultMessage:"Navigate workplace challenges",id:"VBcDSYkyPM"})},{id:2270,prompt:t.formatMessage({defaultMessage:"Plan my career growth",id:"ic094TAU53"})},{id:2271,prompt:t.formatMessage({defaultMessage:"Improve my work-life balance",id:"TKTnpNHvHo"})},{id:2272,prompt:t.formatMessage({defaultMessage:"Network more effectively",id:"w8YaYlajH5"})},{id:2273,prompt:t.formatMessage({defaultMessage:"Request a raise or promotion",id:"DRHqynGK8L"})},{id:2274,prompt:t.formatMessage({defaultMessage:"Create effective cover letters",id:"5EGDYrQLfB"})},{id:2275,prompt:t.formatMessage({defaultMessage:"Identify transferable skills",id:"YPAsLHh1lZ"})},{id:2276,prompt:t.formatMessage({defaultMessage:"Analyze industry trends",id:"vbeZYpbZRy"})},{id:2277,prompt:t.formatMessage({defaultMessage:"Practice salary negotiations",id:"c7bqWsRlDO"})},{id:2278,prompt:t.formatMessage({defaultMessage:"Build my personal brand",id:"MyePx0R197"})},{id:2279,prompt:t.formatMessage({defaultMessage:"Handle difficult colleagues",id:"gPN9Bjnbv3"})},{id:2280,prompt:t.formatMessage({defaultMessage:"Develop leadership abilities",id:"hKc2jvJX9m"})},{id:2281,prompt:t.formatMessage({defaultMessage:"Manage workplace stress",id:"UmFi1cxWyQ"})},{id:2282,prompt:t.formatMessage({defaultMessage:"Explore career transitions",id:"cRYcNFHk6g"})},{id:2283,prompt:t.formatMessage({defaultMessage:"Draft professional emails",id:"b4TryZ9Qnk"})},{id:2284,prompt:t.formatMessage({defaultMessage:"Prepare presentations",id:"BfCHsqI2QY"})},{id:2285,prompt:t.formatMessage({defaultMessage:"Build team communication",id:"2O4rj03SC4"})},{id:2286,prompt:t.formatMessage({defaultMessage:"Improve public speaking",id:"Yk9U+tDBlw"})},{id:2287,prompt:t.formatMessage({defaultMessage:"Track professional accomplishments",id:"rW3hEl/AXP"})},{id:2288,prompt:t.formatMessage({defaultMessage:"Handle performance reviews",id:"x2hQalyHfL"})},{id:2289,prompt:t.formatMessage({defaultMessage:"Understand workplace politics",id:"MHGeEOEwAp"})},{id:2290,prompt:t.formatMessage({defaultMessage:"Create workplace boundaries",id:"EjhPHLcrhE"})},{id:2291,prompt:t.formatMessage({defaultMessage:"Find mentorship opportunities",id:"DRRgMtELec"})},{id:2292,prompt:t.formatMessage({defaultMessage:"Manage remote work",id:"/Isfc2xCo2"})},{id:2293,prompt:t.formatMessage({defaultMessage:"Develop executive presence",id:"7bG3XZnOc8"})},{id:2294,prompt:t.formatMessage({defaultMessage:"Handle workplace feedback",id:"d1d+XCOm7o"})},{id:2295,prompt:t.formatMessage({defaultMessage:"Analyze job descriptions",id:"5MqrMLTlb6"})},{id:2296,prompt:t.formatMessage({defaultMessage:"Create professional goals",id:"jDoIMYr5Wq"})},{id:2297,prompt:t.formatMessage({defaultMessage:"Plan continuing education",id:"rd0MmWcmMT"})},{id:2298,prompt:t.formatMessage({defaultMessage:"Strengthen workplace relationships",id:"+m19gqY6SA"})},{id:2299,prompt:t.formatMessage({defaultMessage:"Improve technical skills",id:"c2T59IBYsH"})},{id:2300,prompt:t.formatMessage({defaultMessage:"Manage project timelines",id:"CYN4/rQNLO"})},{id:2301,prompt:t.formatMessage({defaultMessage:"Handle workplace conflicts",id:"aeMIrE+A4M"})},{id:2302,prompt:t.formatMessage({defaultMessage:"Prepare for promotions",id:"B24xli2da3"})},{id:2303,prompt:t.formatMessage({defaultMessage:"Balance multiple projects",id:"pxRjn+t2XJ"})}]},claudes_choice:{id:"claudes_choice",title:t.formatMessage({defaultMessage:"Claude\u2019s choice",id:"6A46czzJtA"}),icon:"lightbulb",prompts:[{id:2304,prompt:t.formatMessage({defaultMessage:"Have a philosophical discussion",id:"1eKkKYG88t"})},{id:2305,prompt:t.formatMessage({defaultMessage:"Explore a fascinating concept",id:"H3DUo/xAaT"})},{id:2306,prompt:t.formatMessage({defaultMessage:"Learn something unexpected",id:"MTntgt0uYf"})},{id:2307,prompt:t.formatMessage({defaultMessage:"Solve an interesting problem",id:"kNAUDIc10z"})},{id:2308,prompt:t.formatMessage({defaultMessage:"Discover a new perspective",id:"njX2hVx7Gl"})},{id:2309,prompt:t.formatMessage({defaultMessage:"Play a word game together",id:"Pm37KHdXDe"})},{id:2310,prompt:t.formatMessage({defaultMessage:"Debate an ethical dilemma",id:"sn1plJ3vbM"})},{id:2311,prompt:t.formatMessage({defaultMessage:"Explore thought experiments",id:"X/riIune9V"})},{id:2312,prompt:t.formatMessage({defaultMessage:"Discuss future technologies",id:"Q5BQbcT8u5"})},{id:2313,prompt:t.formatMessage({defaultMessage:"Analyze historical turning points",id:"Vu8qjnxW6M"})},{id:2314,prompt:t.formatMessage({defaultMessage:"Create a fictional scenario",id:"IjUinNyjQn"})},{id:2315,prompt:t.formatMessage({defaultMessage:"Investigate scientific mysteries",id:"rR3XvA5qdn"})},{id:2316,prompt:t.formatMessage({defaultMessage:"Consider alternate histories",id:"s1GAsPG4jD"})},{id:2317,prompt:t.formatMessage({defaultMessage:"Explore cognitive biases",id:"FevrBDbHsl"})},{id:2318,prompt:t.formatMessage({defaultMessage:"Discuss creative thinking techniques",id:"Fqrl5hEnNE"})},{id:2319,prompt:t.formatMessage({defaultMessage:"Analyze decision-making frameworks",id:"Bdot0Asb6m"})},{id:2320,prompt:t.formatMessage({defaultMessage:"Explore language evolution",id:"WxxO+Geje4"})},{id:2321,prompt:t.formatMessage({defaultMessage:"Discuss art interpretation",id:"RDikkAd9zu"})},{id:2322,prompt:t.formatMessage({defaultMessage:"Examine nature phenomena",id:"U8EP7a7Vy2"})},{id:2323,prompt:t.formatMessage({defaultMessage:"Explore mathematical paradoxes",id:"jt5/bht3dt"})},{id:2324,prompt:t.formatMessage({defaultMessage:"Discuss space exploration questions",id:"YZfsdrMUhC"})},{id:2325,prompt:t.formatMessage({defaultMessage:"Consider economic theories",id:"rt6A4qhZr7"})},{id:2326,prompt:t.formatMessage({defaultMessage:"Explore psychological phenomena",id:"UrnH1t3J0G"})},{id:2327,prompt:t.formatMessage({defaultMessage:"Discuss musical innovations",id:"QXNv29WKZm"})},{id:2328,prompt:t.formatMessage({defaultMessage:"Analyze literary themes",id:"r3xR9e5TXy"})},{id:2329,prompt:t.formatMessage({defaultMessage:"Explore architectural concepts",id:"bkBPnimOL+"})},{id:2330,prompt:t.formatMessage({defaultMessage:"Discuss food science",id:"mW1ertKICD"})},{id:2331,prompt:t.formatMessage({defaultMessage:"Consider environmental solutions",id:"gOm0rG5AZT"})},{id:2332,prompt:t.formatMessage({defaultMessage:"Explore memory techniques",id:"cPglZdvPR2"})},{id:2333,prompt:t.formatMessage({defaultMessage:"Discuss symbolic communication",id:"CEf4/moGtU"})},{id:2334,prompt:t.formatMessage({defaultMessage:"Analyze game theory applications",id:"+9OxliPjhC"})},{id:2335,prompt:t.formatMessage({defaultMessage:"Explore logical fallacies",id:"pPA1v8YGI4"})},{id:2336,prompt:t.formatMessage({defaultMessage:"Discuss social dynamics",id:"ydhjRp4ZQ9"})},{id:2337,prompt:t.formatMessage({defaultMessage:"Consider innovation patterns",id:"0DZWC/rT7D"})},{id:2338,prompt:t.formatMessage({defaultMessage:"Explore ancient wisdom",id:"4rVLB4ZIOK"})}]},drive:{id:"drive",title:t.formatMessage({defaultMessage:"From Drive",id:"yil12nT4C2"}),icon:"drive",isHidden:!0,prompts:e},calendar:{id:"calendar",title:t.formatMessage({defaultMessage:"From Calendar",id:"o+W7emKH/N"}),icon:"calendar",isHidden:!0,prompts:s},gmail:{id:"gmail",title:t.formatMessage({defaultMessage:"From Gmail",id:"Pna5+19LJh"}),icon:"gmail",isHidden:!0,prompts:n}}},[t])}function f$e(){const{activeOrganization:t}=v(),s=t?.uuid,n=_s(),a=Ia(e=>e.remoteStreamFirstPassComplete||e.remoteStreamCompleted),[i,r]=Pj({key:"SSS-cardamom-integration-statuses",defaultValue:null,getInitialValueInEffect:!1}),o=i&&i.expiry>Date.now()&&i.orgUuid===s?i.statuses:null,{isDriveAuthenticated:l,isFetched:c}=fE(),d=Oe(He.GCAL),u=Oe(He.GMAIL),m=Ue(He.GDRIVE),p=De(He.GDRIVE),f={[He.GCAL]:{isAllowed:De(He.GCAL),isEnabled:Ue(He.GCAL),isAuthenticated:d.isAuthenticated,isFetched:d.isFetched},[He.GDRIVE]:{isAllowed:dE()||p,isEnabled:uE()||m,isAuthenticated:l,isFetched:c},[He.GMAIL]:{isAllowed:De(He.GMAIL),isEnabled:Ue(He.GMAIL),isAuthenticated:u.isAuthenticated,isFetched:u.isFetched}},g=f[He.GCAL].isFetched&&f[He.GDRIVE].isFetched&&f[He.GMAIL].isFetched&&(!n||a),h=g?JSON.stringify(f):"";return e.useEffect(()=>{g&&s&&r({statuses:f,expiry:Date.now()+36e5,orgUuid:s})},[h,s]),g?f:o||f}function g$e(){const e=(new Date).getHours();return e<12?"morning":e<17?"afternoon":"evening"}function h$e(){const t=function(){const e=f$e(),t=[];return e[He.GDRIVE].isAuthenticated&&t.push("drive"),e[He.GCAL].isAuthenticated&&t.push("calendar"),e[He.GMAIL].isAuthenticated&&t.push("gmail"),tB()&&t.push("compass"),t}(),s=p$e(),n=Uj(g$e,"morning"),a=wn(),[i,r]=e.useState({});return e.useEffect(()=>{const e={};for(const t of NT(Object.values(s)))t.validAccountTiers&&!t.validAccountTiers.includes(a)||(e[t.id]={...t,prompts:NT(t.prompts)});r(e)},[s,a]),e.useMemo(()=>{if(0===Object.keys(i).length)return{};const e={};for(const s of Object.values(i)){const a=s.prompts.filter(e=>(!e.timeOfDay||e.timeOfDay===n)&&(!e.requiredIntegrations?.length||IT(e.requiredIntegrations,t).length===e.requiredIntegrations.length));a.length>0&&(e[s.id]={...s,prompts:a})}return e},[t,n,i])}const C$e={"Product Management":["writing_content_creation","research_analysis","business_strategy"],Engineering:["coding_development","writing_content_creation","research_analysis"],"Human Resources":["writing_content_creation","research_analysis","business_strategy"],Finance:["writing_content_creation","research_analysis","business_strategy"],Marketing:["writing_content_creation","research_analysis","business_strategy"],Sales:["writing_content_creation","research_analysis","business_strategy"],Operations:["writing_content_creation","research_analysis","business_strategy"],"Data Science":["coding_development","writing_content_creation","research_analysis"],Design:["design_creativity","research_analysis","writing_content_creation"],Legal:["writing_content_creation","research_analysis","business_strategy"],Scientist:["research_analysis","coding_development","writing_content_creation"],Student:["learning_studying","writing_content_creation","research_analysis"],Founder:["business_strategy","writing_content_creation","coding_development"],Healthcare:["research_analysis","writing_content_creation","learning_studying"],Writer:["writing_content_creation","design_creativity","research_analysis"],Educator:["learning_studying","writing_content_creation","research_analysis"],Consultant:["business_strategy","research_analysis","writing_content_creation"],Researcher:["research_analysis","writing_content_creation","coding_development"],"Software Engineer":["coding_development","writing_content_creation","research_analysis"],Other:["writing_content_creation","learning_studying","coding_development"]},x$e="Other",v$e=C$e[x$e],y$e=["career_chat","life_stuff","claudes_choice"];function b$e({categories:s,onCategoryClick:n,integrationStatuses:a,keyboardFocusCategory:i}){const r=JS(),{trackCategoryDisplayed:o}=i$e(),l=function(t,s,n){const a=e.useRef(null);return e.useEffect(()=>{const e=a.current;if(e)return e.addEventListener(t,s,n),()=>e?.removeEventListener(t,s,n)},[s,n]),a}("keydown",function(e){const t=Array.from(l.current?.querySelectorAll("button")??[]);if(!t.length)return;const s=function(e){if(!document.activeElement)return-1;return e.indexOf(document.activeElement)}(t);let n=-1;switch(e.key){case"ArrowRight":case"ArrowDown":e.preventDefault(),n=-1===s||s===t.length-1?0:s+1;break;case"ArrowLeft":case"ArrowUp":e.preventDefault(),n=-1===s||0===s?t.length-1:s-1;break;case"Enter":case" ":return e.preventDefault(),e.stopPropagation(),void(-1!==s&&t[s].click());default:return}-1!==n&&t[n].focus()}),[c,d]=AT(s,e=>c$e.includes(e.id)),u=function(e,s,n,a){const i=[];if(s[He.GDRIVE].isEnabled){const s=e.find(e=>"drive"===e.id);s&&i.push({children:s.title,icon:t.jsx(l$e,{name:"drive",className:"flex-shrink-0 text-text-500 -ml-0.5",size:20}),onClick:e=>n(s,e),autoFocus:a===s.id})}if(s[He.GCAL].isEnabled){const s=e.find(e=>"calendar"===e.id);s&&i.push({children:s.title,icon:t.jsx(l$e,{name:"calendar",className:"flex-shrink-0 text-text-500 -ml-0.5",size:20}),onClick:e=>n(s,e),autoFocus:a===s.id})}if(s[He.GMAIL].isEnabled){const s=e.find(e=>"gmail"===e.id);s&&i.push({children:s.title,icon:t.jsx(l$e,{name:"gmail",className:"flex-shrink-0 text-text-500 -ml-0.5",size:20}),onClick:e=>n(s,e),autoFocus:a===s.id})}return i}(c,a,n,i),m=d.filter(e=>!e.isHidden),p=m.map(e=>e.id),f=m.map(e=>({icon:t.jsx(l$e,{name:e.icon,className:"flex-shrink-0 text-text-500 -ml-0.5",size:20}),onClick:t=>n(e,t),children:e.title,autoFocus:i===e.id,categoryId:e.id}));let g=[...f,...u];if(g.length>5){const e=e=>e.categoryId&&y$e.includes(e.categoryId),t=f.filter(e),s=f.filter(t=>!e(t)),n=5-u.length;if(n<=0)g=u.slice(0,5);else if(s.length<=n){const e=n-s.length;g=[...s,...t.slice(0,e),...u]}else g=[...s.slice(0,n),...u]}const{toggleIntegrationEnabled:h}=rk(),{toggleDriveSearchEnabled:C}=OE(),x=Mt();return e.useEffect(()=>{const e=e=>{const t=`${e}_success`,a=`auth-handled-${t}`;if(x.has(t)){if(x.get(t)===SW&&!sessionStorage.getItem(a)){sessionStorage.setItem(a,"true");const i=s.find(t=>t.id===function(e){switch(e){case He.GMAIL:return"gmail";case He.GCAL:return"calendar";case He.GDRIVE:return"drive";default:return""}}(e));if(i){const s=new URLSearchParams(Array.from(x.entries()));s.delete(t);const a=s.toString()?`?${s.toString()}`:"",r=window.location.pathname+a;window.history.replaceState({...window.history.state,as:r,url:r},"",r),e===He.GDRIVE&&C({searchEnabled:!0}),e===He.GMAIL&&h(He.GMAIL,!0),e===He.GCAL&&h(He.GCAL,!0),n(i)}}}else sessionStorage.removeItem(a)};e(He.GMAIL),e(He.GCAL),e(He.GDRIVE)},[s,x,n,h,C]),e.useEffect(()=>{for(const e of p)o({category_id:e})},[o,p]),t.jsx(sA.ul,{ref:l,className:"flex flex-wrap justify-center w-full gap-2 pt-4",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0,transition:{duration:0}},transition:{duration:.2},"aria-label":r.formatMessage({id:"CjrsD9VfP/",defaultMessage:"Prompt categories"}),children:t.jsx(nA,{children:g.map((e,s)=>t.jsx(sA.li,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.05*s},className:"inline-block",children:t.jsx(r$e,{...e,className:`${e.className||""} focus:outline-2 focus:outline-offset-2 focus:outline-primary-500`})},s))})})}function k$e({category:s,onItemClick:n,onDismiss:a,onItemHover:i,onItemsDisplayed:r,maxItems:o,autoFocus:l=!1,className:c,itemClassName:d,disabled:u=!1,id:m,role:p,"aria-labelledby":f,renderIcon:g}){const h=JS(),[C,x]=e.useState(null),v=e.useRef(null),y=o?s.items.slice(0,o):s.items,b=rT(()=>{a&&a(!1)}),k=a?b:v;Ji("keydown",e=>{if("Escape"===e.key)a&&(e.preventDefault(),a(!0))}),e.useEffect(()=>{r&&r(y)},[y,r]);const w=(e,t)=>{x(e?t:null),i?.(e,t)},M=dt("rounded-2xl bg-bg-000 p-2 border-0.5 border-border-300","from-bg-400/10 to-bg-400/30 overflow-hidden shadow-sm text-text-300",c),_=t.jsxs("div",{className:M,children:[t.jsxs("div",{className:"flex items-center gap-x-2 cursor-pointer",onClick:()=>a?.(!1),role:"heading","aria-level":1,children:[t.jsx("span",{className:"ml-2 text-text-500",children:g?g(s.icon):s.icon}),t.jsx("span",{className:"flex-1 text-xs text-text-500",children:s.title}),a&&t.jsx(rN,{disabled:u,onClick:()=>a(!1),"aria-label":h.formatMessage({id:"i8nFBmqqGO",defaultMessage:"Close suggestions"}),variant:"ghost",iconOnly:!0,icon:"X",size:"sm"})]}),t.jsx("ul",{className:"overflow-visible text-sm",role:"listbox","aria-label":h.formatMessage({id:"nITWaBOcZU",defaultMessage:"{category} suggestions"},{category:s.title}),"aria-orientation":"vertical",children:y.map((e,s)=>{const a=e.title??e.prompt??"";return t.jsx("li",{className:dt("transition-all border-b-0.5 border-border-300 last:border-b-0",(C===s||C===s+1)&&"!border-transparent","hover:border-transparent next-sibling-hover:border-transparent"),role:"option","aria-selected":"false",id:`prompt-option-${s}`,children:t.jsx("button",{className:dt("cursor-pointer transition-all","active:bg-bg-400 hover:bg-bg-400/40","group py-2.5 px-2 text-left","focus-visible:outline-none rounded-lg w-full",d),disabled:u,onClick:()=>(e=>{n(e)})(e),onMouseEnter:()=>w(e,s),onFocus:()=>w(e,s),onMouseLeave:()=>w(void 0,s),onBlur:()=>w(void 0,s),autoFocus:l&&0===s,"aria-labelledby":`prompt-option-${s}`,"aria-describedby":`prompt-description-${s}`,children:t.jsxs("div",{className:"group-focus-visible:text-text-100 group-focus-visible:outline-2 group-focus-visible:outline-offset-2 group-focus-visible:outline-primary-500 rounded w-full flex items-center",children:[t.jsx("div",{className:"flex-1",id:`prompt-description-${s}`,children:a}),t.jsx(KD,{className:"invisible group-hover:visible",size:16})]})})},e.id)})})]});return t.jsx(sA.div,{ref:k,className:"absolute top-4 left-3.5 right-3.5 z-10",initial:{opacity:0,scale:.99},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.99},transition:{duration:.15,ease:"easeOut"},id:m,role:p,"aria-labelledby":f,children:_})}function w$e({category:e,maxPrompts:s,onDismiss:n,onPromptClick:a,autoFocus:i,id:r,role:o,"aria-labelledby":l}){const{trackPromptDisplayed:c}=i$e(),d=d$e(),{setPreviewPrompt:u}=re(e=>({setPreviewPrompt:e.setPreviewPrompt})),m={id:e.id,title:e.title,icon:e.icon,items:e.prompts};return t.jsx(k$e,{category:m,onItemClick:t=>{a(t,e)},onDismiss:n,onItemHover:t=>{u(t?d(t,e):void 0)},onItemsDisplayed:t=>{for(const s of t)c({category_id:e.id,prompt_id:s.id})},maxItems:s,autoFocus:i,id:r,role:o,"aria-labelledby":l,renderIcon:e=>"string"==typeof e?t.jsx(l$e,{name:e,className:"flex-shrink-0"}):e})}function M$e(){const s=Qx(),{buildNewConversationParams:n}=J(),{trackSuggestionUsed:a,trackCategoryClicked:i}=i$e(),[r,o]=e.useState(!1),[l,c]=e.useState(),[d,u]=e.useState(),m=f$e(),{isFetched:p}=wB(),f=Object.values(m).every(e=>!e.isEnabled||e.isFetched)&&p,g=function(){const{data:t}=wB(),s=h$e(),n=Mt().has("debug_show_all_prompt_chips"),a=xe();return e.useMemo(()=>{if(!t)return[];if(n)return Object.values(s);const e=[s.calendar,s.gmail,s.drive].filter(e=>!!e),i=t.work_function??x$e,r=t.onboarding_topics??[],o=(a?C$e[i]:TT(r.concat(v$e))).map(e=>s[e]).filter(e=>!!e),l=y$e.map(e=>s[e]).filter(e=>!!e),c=s.research_analysis,d=5-Math.min(o.length,3);return Array.from(new Set([...c?[c]:[],...o,...l.slice(0,d),...e]))},[t,a,s,n])}(),h=d$e(),C=e.useMemo(()=>g.filter(e=>"research_analysis"!==e.id),[g]);if(!f||!g.length)return null;return t.jsxs(sA.div,{className:"relative mx-auto w-full",initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{opacity:0,transition:{duration:0}},transition:{height:{duration:.3,ease:"easeOut"},opacity:{duration:.2}},children:[t.jsx("div",{className:l?"invisible":void 0,children:t.jsx(b$e,{categories:C,integrationStatuses:m,keyboardFocusCategory:d,onCategoryClick:(e,t)=>{t&&i(e.id),o(Boolean(t&&!t.detail)),c(e),u(void 0)}},"category-list")}),t.jsx(nA,{children:!!l&&t.jsx(w$e,{category:l,maxPrompts:5,onDismiss:e=>{e&&u(l.id),c(void 0)},onPromptClick:async(e,t)=>{const{uuid:i}=await s(n({prompt:h(e,t),attachments:[],files:[],syncSources:[]}));i&&a({category_id:t.id,prompt_id:e.id,chat_uuid:i})},autoFocus:r,role:"tabpanel"},"prompt-list")})]})}k$e.displayName="SharedPromptList";const _$e=e.memo(({size:s="icon_sm",className:n="draggable-none"}={})=>{const a=e.useCallback(()=>{Oj?.requestMainMenuPopup?.()},[]);return t.jsx(kt,{variant:"ghost",size:s,onClick:a,className:n,"aria-label":"Menu","data-testid":"topbar-windows-menu",children:t.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:t.jsxs("g",{stroke:"currentColor",children:[t.jsx("path",{d:"M4 18L20 18",strokeWidth:"2",strokeLinecap:"round"}),t.jsx("path",{d:"M4 12L20 12",strokeWidth:"2",strokeLinecap:"round"}),t.jsx("path",{d:"M4 6L20 6",strokeWidth:"2",strokeLinecap:"round"})]})})})});function j$e(e){const s=Fj();return t.jsxs(t.Fragment,{children:[t.jsx("div",{...e,className:"fixed inset-0 bg-bg-100 flex flex-col items-center justify-center p-8"}),t.jsx("div",{className:"draggable fixed top-0 inset-x-0 z-10 flex h-[36px] items-center pl-3",children:s&&t.jsx(_$e,{})})]})}function S$e(e){return t.jsx("div",{...e,className:"text-center text-text-100 text-3xl font-medium font-ui-serif mb-8"})}_$e.displayName="WindowsMenuButton";const L$e="shouldShowDesktopTutorial";function N$e(){const s=JS(),n=r(),a=m({platform:"mac"}),i=m({platform:"linux"}),[,,o]=qa(L$e,!1),l=e.useCallback(()=>{o(),n.push("/"),setTimeout(()=>{window.electronWindowControl?.resize?.(1200,800)},100)},[n,o]),c=a?t.jsx("img",{loading:"lazy",src:"/images/desktop/menubar-macos.png",width:281,height:129,alt:s.formatMessage({defaultMessage:"Menubar on macOS",id:"fdBuGuG01j"})}):i?t.jsx("img",{loading:"lazy",src:"/images/desktop/menubar-linux.png",width:281,height:129,alt:s.formatMessage({defaultMessage:"App indicator",id:"/92Q7E5tKF"})}):t.jsx("img",{loading:"lazy",src:"/images/desktop/menubar-windows.png",width:281,height:129,alt:s.formatMessage({defaultMessage:"Menubar on Windows",id:"mf3lOKZCtT"})}),d=a?t.jsx("img",{loading:"lazy",src:"/images/desktop/keyboard-macos.svg",width:222,height:129,alt:s.formatMessage({defaultMessage:"Keyboard shortcut on macOS",id:"/cX1068ORj"})}):i?t.jsx("img",{loading:"lazy",src:"/images/desktop/keyboard-linux.svg",width:222,height:129,alt:s.formatMessage({defaultMessage:"Keyboard shortcut",id:"rHyMT1rizz"})}):t.jsx("img",{loading:"lazy",src:"/images/desktop/keyboard-windows.svg",width:222,height:129,alt:s.formatMessage({defaultMessage:"Keyboard shortcut on Windows",id:"cazgzYGy/H"})});return t.jsxs(j$e,{children:[t.jsx(S$e,{className:"max-w-lg",children:t.jsx(XS,{defaultMessage:"Use <emphasis>Quick Entry</emphasis> to send messages and screenshots to Claude from any app",id:"oPyHDgAldr",values:{emphasis:e=>t.jsx("em",{className:"italic",children:e})}})}),t.jsxs("button",{type:"button",className:"text-text-400 hover:text-text-300 cursor-pointer flex flex-row items-center",onClick:()=>window.electronWindowControl?.openSettingsWindow?.(),children:[t.jsx(XS,{defaultMessage:"Quick entry settings",id:"KqNLdIdRUj"}),t.jsx(YD,{size:16,className:"ms-1",style:{marginTop:1}})]}),t.jsxs("div",{className:"flex flex-row mt-9 gap-2",children:[t.jsx("div",{children:c}),t.jsx("div",{className:"bg-bg-000 border-border-300 border-1.5",children:d})]}),t.jsxs("div",{className:"flex flex-row mt-20 gap-4",children:[t.jsx(kt,{variant:"secondary",size:"lg",className:"w-48",onClick:l,children:t.jsx(XS,{defaultMessage:"Skip",id:"/4tOwTiCH6"})}),t.jsx(kt,{variant:"primary",size:"lg",className:"w-48",onClick:()=>{window.electronWindowControl?.openQuickEntryWindow?.(),l()},children:t.jsx(XS,{defaultMessage:"Try Quick Entry",id:"z3mjbZWazY"})})]})]})}function I$e(){const s=JS(),{data:n,isLoading:a,isError:i}=Zj(),r=re(e=>e.setPreviewPrompt),o=Qx(),{buildNewConversationParams:l}=J(),{trackThemeDisplayed:c,trackThemeUsed:d,trackFallbackTriggered:u}=function(){const{track:t}=ae();return{trackThemeDisplayed:e.useCallback(e=>{t({event_key:"claudeai.memory_themes.themes_displayed",theme_count:e.length})},[t]),trackThemeUsed:e.useCallback(e=>{t({event_key:"claudeai.memory_themes.theme_used",theme_index:e.theme_index,chat_uuid:e.chat_uuid,prompt_length:e.prompt_length})},[t]),trackFallbackTriggered:e.useCallback(e=>{t({event_key:"claudeai.memory_themes.fallback_triggered",reason:e,fallback_to:"cardamom_prompt_suggestions"})},[t])}}();e.useEffect(()=>{a||(n?.themes?.length?c(n.themes):u(i?"error":"no_themes"))},[a,i,n?.themes,u,c]);return a?t.jsxs(sA.div,{className:"mt-4 flex flex-row justify-center items-center flex-wrap gap-2",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},children:[t.jsx(Wt,{variant:"light",className:"!h-8 rounded-lg !w-[8rem]"}),t.jsx(Wt,{variant:"light",className:"!h-8 rounded-lg !w-[8rem]"}),t.jsx(Wt,{variant:"light",className:"!h-8 rounded-lg !w-[8rem]"})]}):i||!n?.themes?.length?t.jsx(M$e,{}):t.jsx(sA.ul,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.2},className:"mt-4 flex flex-row justify-center flex-wrap gap-2",role:"list","aria-label":s.formatMessage({id:"9kg3aIjMKS",defaultMessage:"Memory theme suggestions"}),children:n.themes.slice(0,5).map((e,s)=>t.jsx(sA.li,{role:"listitem",initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.05*s},children:t.jsx(r$e,{onMouseEnter:()=>r(e.prompt),onFocus:()=>r(e.prompt),onMouseLeave:()=>r(void 0),onBlur:()=>r(void 0),onClick:()=>((e,t)=>{d({prompt_length:e.prompt.length,theme_index:t}),o(l({prompt:e.prompt,attachments:[],files:[],syncSources:[]}))})(e,s),children:t.jsx("div",{className:"flex flex-row items-center",children:e.title})})},`${e.title}-${s}`))})}const T$e=[{type:"single",id:"ppt-template-creator",title:"Template Creator",icon:t.jsx(QD,{size:16}),skillName:"anthropic-ppt-template-creator",prompt:"Create a reusable skill from our firm's template using anthropic-ppt-template-creator. Extract layouts, placeholders, and formatting standards. [attach firm_brand_template.pptx]"},{type:"single",id:"deck-checker",title:"Deck Checker",icon:t.jsx(JD,{size:16}),skillName:"anthropic-fsi-deck-checker",prompt:"QC the attached management presentation using anthropic-fsi-deck-checker. Check for number consistency, data-narrative alignment, and formatting issues. [attach ProjectBravo_Mgmt_Presentation.pptx]"},{type:"single",id:"dcf-valuation",title:"DCF Valuation",icon:t.jsx(XD,{size:16}),skillName:"anthropic-fsi-dcf-model-builder",prompt:"Create a DCF model for [ServiceNow] using anthropic-fsi-dcf-model-builder. Include 5-year projections, WACC calculation, terminal value via exit multiple, and sensitivity on discount rate and growth."},{type:"single",id:"earnings-analysis",title:"Earnings Analysis",icon:t.jsx(eH,{size:16}),skillName:"anthropic-fsi-earnings-analysis",prompt:"Create an earnings update for [CrowdStrike]'s Q3 FY2025 results using anthropic-fsi-earnings-analysis. Cover beat/miss vs. consensus, key drivers, guidance changes, and updated thesis."},{type:"category",id:"all-finance",title:"All Finance Skills",icon:t.jsx(tH,{size:16}),prompts:[{id:"strip-profile",title:"Company Profile",skillName:"anthropic-fsi-strip-profile",prompt:"Create a single-slide strip profile for [Snowflake] using anthropic-fsi-strip-profile. Include business overview, key metrics, valuation multiples, stock chart, and top shareholders."},{id:"pitch-deck",title:"Pitch Deck",skillName:"anthropic-fsi-pitch-deck",prompt:"Populate the attached pitch deck template with data from the Excel file using anthropic-fsi-pitch-deck. Map financials to appropriate slides and maintain formatting. [attach template.pptx and financials.xlsx]"},{id:"initiating-coverage",title:"Initiating Coverage",skillName:"anthropic-fsi-initiating-coverage",prompt:"Creating company research on [MongoDB] using anthropic-fsi-initiating-coverage. Start with Task 1 covering business model, competitive positioning, and key investment thesis points."},{id:"competitive-analysis",title:"Competitive Analysis",skillName:"anthropic-fsi-competitive-analysis",prompt:"Create a competitive landscape analysis for [Datadog] using anthropic-fsi-competitive-analysis. Include a 2x2 positioning matrix against Splunk, Dynatrace, New Relic, and Elastic, with competitive moats and strategic implications."},{id:"3-statements",title:"3-Statement Model",skillName:"anthropic-fsi-3-statements",prompt:"Build an integrated 3-statement model using anthropic-fsi-3-statements. Populate the attached template with [Salesforce]'s FY2022-2024 historicals from their 10-K and project through FY2027. [attach template.xlsx and CRM 10-K.pdf]"},{id:"comps-analysis",title:"Comps Analysis",skillName:"anthropic-fsi-comps-analysis",prompt:"Build a comps analysis for [Shopify] using anthropic-fsi-comps-analysis. Include 10 peers with EV/Revenue, EV/EBITDA, and P/E on LTM and NTM basis, plus implied valuation ranges."},{id:"datapack-builder",title:"Datapack Builder",skillName:"anthropic-fsi-datapack-builder",prompt:"Build a data pack for our IC using anthropic-fsi-datapack-builder. Standardize financials from the attached CIM including ARR growth, net retention, and rule of 40 metrics. [attach ProjectAlpha_CIM.pdf]"}]}];function A$e(e){return T$e.find(t=>t.id===e)}function E$e(){const s=JS(),{addError:n}=ut(),{setPrompt:a,setPreviewPrompt:i}=re(e=>({setPrompt:e.setPrompt,setPreviewPrompt:e.setPreviewPrompt})),{trackPromptClicked:r,trackSkillEnableModalShown:o,trackSkillEnableModalCanceled:l}=function(){const{track:e}=ae();return{trackPromptClicked:t=>{e({...t,event_key:"claudeai.skills_prompts.prompt_used"})},trackSkillEnableModalShown:t=>{e({...t,event_key:"claudeai.skills_prompts.skill_enable_modal_shown"})},trackSkillEnableModalCanceled:t=>{e({...t,event_key:"claudeai.skills_prompts.skill_enable_modal_canceled"})}}}(),{data:c}=lr(),{mutateAsync:d,isPending:u}=kv({onError:e=>{n("Failed to enable skill. You can try again.",{error:e,errorContext:{tags:{source:"fsi_skill_chips"}}})}}),[m,p]=e.useState(null),[f,g]=e.useState(null),[h,C]=e.useState(!1),x=e.useCallback(e=>c?c.skills.find(t=>t.skillName===e):null,[c]),v=e.useCallback((e,t,s)=>{i(void 0),a(s,{forceUpdateTiptap:!0}),r({prompt_id:e,skill_name:t})},[a,i,r]),y=e.useCallback(e=>{const t=x(e.skillName);t?t.enabled?v(e.id,e.skillName,e.prompt):(g({promptId:e.id,skillName:e.skillName,prompt:e.prompt}),C(!0),o({prompt_id:e.id,skill_name:e.skillName})):n(`Skill "${e.skillName}" is not available.`,{errorContext:{tags:{source:"fsi_skill_chips"}}})},[x,v,n,o]),b=e.useCallback(e=>{p(t=>t===e?null:e)},[]),k=e.useCallback((e,t)=>{const s=x(t.skillName);if(!s)return void n(`Skill "${t.skillName}" is not available.`,{errorContext:{tags:{source:"fsi_skill_chips"}}});const a=`${e.id}/${t.id}`;s.enabled?(v(a,t.skillName,t.prompt),p(null)):(g({promptId:a,skillName:t.skillName,prompt:t.prompt}),C(!0),o({prompt_id:a,skill_name:t.skillName}),p(null))},[x,v,n,o]),w=e.useCallback(e=>{i(e)},[i]),M=e.useCallback(e=>{const t=A$e(e);t&&("single"===t.type?y(t):b(e))},[y,b]),_=e.useCallback(async()=>{if(!f)return;const e=x(f.skillName);e&&(await d({skillId:e.skillId}),C(!1),v(f.promptId,f.skillName,f.prompt),g(null))},[f,x,d,v]),j=e.useCallback(()=>{f&&l({prompt_id:f.promptId,skill_name:f.skillName}),C(!1),g(null)},[f,l]),S=rT(()=>{p(null)}),L=m?A$e(m):void 0;return t.jsxs(t.Fragment,{children:[t.jsx(sA.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},className:"relative mx-auto w-full pt-4",children:t.jsx(sA.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.2},className:"flex justify-center flex-wrap items-center gap-2 mb-4",children:t.jsx(nA,{children:T$e.map((e,s)=>t.jsxs(sA.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.05*s},className:"relative",children:[t.jsx(r$e,{onClick:()=>M(e.id),onMouseEnter:()=>w("single"===e.type?e.prompt:void 0),onMouseLeave:()=>w(void 0),icon:e.icon,pressed:"category"===e.type?m===e.id:void 0,children:t.jsxs("span",{className:"flex items-center gap-1",children:[e.title,"category"===e.type&&t.jsx(sH,{size:12,className:dt("transition-transform",m===e.id&&"rotate-180")})]})}),t.jsx(nA,{children:"category"===e.type&&m===e.id&&L&&t.jsx(sA.div,{ref:S,initial:{opacity:0,y:-4},animate:{opacity:1,y:0},exit:{opacity:0,y:-4},transition:{duration:.15},className:"absolute top-full left-0 mt-1 z-20 min-w-[200px] rounded-lg bg-bg-100 border-0.5 border-border-300 shadow-lg overflow-hidden",children:L.prompts.map(e=>t.jsx("button",{className:"w-full px-3 py-2.5 text-left text-sm text-text-200 hover:bg-bg-200 hover:text-text-100 transition-colors cursor-pointer",onClick:()=>k(L,e),onMouseEnter:()=>w(e.prompt),onMouseLeave:()=>w(void 0),children:e.title},e.id))})})]},e.id))})})}),t.jsx(yu,{isOpen:h,onClose:j,onConfirm:_,isLoading:u,title:s.formatMessage({defaultMessage:"Enable skill to continue",id:"EMDDUpKb54"}),message:s.formatMessage({defaultMessage:'The skill "{skillName}" needs to be enabled to use this prompt. Enable it now?',id:"FSMQnPduEu"},{skillName:f?.skillName??""}),confirmText:s.formatMessage({defaultMessage:"Enable skill",id:"xNU9rxobQP"}),cancelText:s.formatMessage({defaultMessage:"Cancel",id:"47FYwba+bI"}),variant:"primary"})]})}const R$e=["anthropic-ppt-template-creator","anthropic-fsi-deck-checker","anthropic-fsi-dcf-model-builder","anthropic-fsi-earnings-analysis","anthropic-fsi-strip-profile","anthropic-fsi-pitch-deck","anthropic-fsi-initiating-coverage","anthropic-fsi-competitive-analysis","anthropic-fsi-3-statements","anthropic-fsi-comps-analysis","anthropic-fsi-datapack-builder"];function D$e(e){return[Bj,{orgUuid:e}]}const H$e=()=>{const{activeOrganization:e}=v(),t=e?.uuid;return B(`/api/organizations/${t}/admin_activation/tasks`,{queryKey:D$e(t),enabled:!!t,staleTime:36e5,meta:{noToast:!0}})},P$e=()=>{const{activeOrganization:e}=v(),t=e?.uuid;return b(e=>`/api/organizations/${t}/admin_activation/tasks/${e.task_key}/events`,"POST",{enabled:!!t,transformVariables:({action:e})=>({action:e}),meta:{noToast:!0}})},U$e=()=>{const t=gL(),{activeOrganization:s}=v(),n=s?.uuid;return e.useCallback((e,s)=>{t.setQueryData(D$e(n),t=>t?{...t,tasks:t.tasks.map(t=>t.key===e?{...t,...s}:t)}:t)},[t,n])},O$e=()=>{const t=gL(),{activeOrganization:s}=v(),n=s?.uuid;return e.useCallback(e=>{t.setQueryData(D$e(n),t=>t?{...t,panel_dismissed_at:e}:t)},[t,n])},F$e=e=>["code-review","config",e],V$e=e=>["code-review","repositories",e];function z$e(e){const{activeOrganization:t}=v(),s=t?.uuid??"";return B(`/api/claude_code/organizations/${s}/code_review/config`,{queryKey:F$e(s),enabled:!!s&&(e?.enabled??!0),meta:e?.noToast?{noToast:!0}:void 0,...void 0!==e?.refetchOnWindowFocus&&{refetchOnWindowFocus:e.refetchOnWindowFocus}})}function Z$e(){const{activeOrganization:e}=v(),t=e?.uuid??"";return B(`/api/claude_code/organizations/${t}/code_review/repositories`,{queryKey:V$e(t),enabled:!!t})}function B$e(){const{activeOrganization:e}=v(),t=e?.uuid??"",s=gL(),{addError:n}=ut(),a=JS();return b(`/api/claude_code/organizations/${t}/code_review/config`,"PUT",{enabled:!!t,onSuccess:async e=>{s.setQueryData(F$e(t),e),await s.invalidateQueries({queryKey:[qj,t]})},onError:e=>{n(a.formatMessage({defaultMessage:"Failed to update code review configuration. You can try again.",id:"dVhbJgignY"}),{error:e,errorContext:{tags:{source:"code_review_update_config"}},messageForLogging:"Failed to update code review configuration. You can try again."})}})}function q$e(){const{activeOrganization:e}=v(),t=e?.uuid??"",s=gL(),{addError:n}=ut(),a=JS();return b(`/api/claude_code/organizations/${t}/code_review/repositories`,"POST",{enabled:!!t,onSuccess:e=>{s.setQueryData(V$e(t),t=>t?[...t,e]:[e])},onError:e=>{n(a.formatMessage({defaultMessage:"Failed to add repository. You can try again.",id:"suIm/tBhCA"}),{error:e,errorContext:{tags:{source:"code_review_add_repository"}},messageForLogging:"Failed to add repository. You can try again."})}})}function W$e(){const{activeOrganization:e}=v(),t=e?.uuid??"",s=gL(),{addError:n}=ut(),a=JS();return b(e=>`/api/claude_code/organizations/${t}/code_review/repositories/${e}`,"DELETE",{enabled:!!t,onMutate:async e=>{await s.cancelQueries({queryKey:V$e(t)});const n=s.getQueryData(V$e(t));return s.setQueryData(V$e(t),t=>t?t.filter(t=>t.id!==e):[]),{previousRepositories:n}},onError:(e,i,r)=>{r?.previousRepositories&&s.setQueryData(V$e(t),r.previousRepositories),n(a.formatMessage({defaultMessage:"Failed to remove repository. You can try again.",id:"F9qEW39l8W"}),{error:e,errorContext:{tags:{source:"code_review_remove_repository"}},messageForLogging:"Failed to remove repository. You can try again."})}})}function $$e(){const{activeOrganization:t}=v(),s=t?.uuid??"",n=gL(),{addError:a}=ut(),i=JS(),r=e.useRef(new Map),o=M();return hL({mutationFn:async e=>{const t=r.current.get(e.configId);t?.abort();const n=new AbortController;r.current.set(e.configId,n);const{configId:a,...i}=e,l=await o(`/api/claude_code/organizations/${s}/code_review/repositories/${a}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(i),signal:n.signal});if(!l.ok)throw Jw({status:l.status,response:await l.json().catch(()=>({error:{type:"api_error",message:"Unknown error"}})),fallbackMessage:"Failed to update repository",headers:l.headers,endpoint:`/api/claude_code/organizations/${s}/code_review/repositories/${a}`,method:"PATCH"});return await l.json()},onMutate:async e=>{const{configId:t,...a}=e;await n.cancelQueries({queryKey:V$e(s)});const i=n.getQueryData(V$e(s));return n.setQueryData(V$e(s),e=>e?e.map(e=>e.id===t?{...e,...a}:e):[]),{previousRepositories:i}},onError:(e,t,r)=>{"AbortError"!==e.name&&(r?.previousRepositories&&n.setQueryData(V$e(s),r.previousRepositories),a(i.formatMessage({defaultMessage:"Failed to update repository. You can try again.",id:"vZlx3Xdzf3"}),{error:e,errorContext:{tags:{source:"code_review_update_repository"}},messageForLogging:"Failed to update repository. You can try again."}))},onSuccess:e=>{n.setQueryData(V$e(s),t=>t?t.map(t=>t.id===e.id?{...e,avg_cost_usd:t.avg_cost_usd,total_cost_usd:t.total_cost_usd,session_count:t.session_count}:t):[])}})}const G$e={labs_approved:{inviteTitle:eL({defaultMessage:"Invite your lab",id:"m3w7LXDhtM"}),inviteSubtitle:eL({defaultMessage:"Add lab members now or invite them later from settings. All invites must use <domain>@{emailDomain}.</domain>",id:"BmozBym0Lo"}),skipRoleStep:!0,skipRoleDefaultPersona:"research_and_analysis",mcpConnectorNames:["biorxiv","chembl","clinical_trials","icd","npi","cms_coverage"],mcpConnectorGateKey:"apatite_connectors"}};function K$e(e){if(!e)return;const t=new Set(e);return t.has("nonprofit_approved")?G$e.nonprofit_approved:t.has("labs_approved")?G$e.labs_approved:void 0}function Y$e(e){const t=y(e?.mcpConnectorGateKey??"vertical_connector_step_unused");return!!e&&(0!==e.mcpConnectorNames.length&&(!e.mcpConnectorGateKey||t))}const Q$e="/onboarding/fund-unlock",J$e="https://code.claude.com/docs/en/fast-mode",X$e="https://code.claude.com/docs/en/code-review";function eGe(e){return`fmcr_fund_unlock_dismissed:${e}`}const tGe={setup_project:{description:t.jsx(XS,{defaultMessage:"Set up projects with files and context Claude can always reference",id:"+cnSeFA2y2"}),href:"/projects/create"},explore_skills:{description:t.jsx(XS,{defaultMessage:"Teach Claude your workflows, standards, and expertise with reusable skills",id:"EfW3Z1E9Qz"}),href:"/customize/skills"},get_apps:{description:t.jsx(XS,{defaultMessage:"Work with Claude in Excel, Chrome, Slack, and more",id:"YwGiOYIxfT"}),href:"/downloads"},try_claude_code:{description:t.jsx(XS,{defaultMessage:"Try Claude Code to build, debug, and ship just by describing what you need",id:"+QXSAYTW01"}),href:"/downloads"},setup_cowork:{description:t.jsx(XS,{defaultMessage:"Set up Cowork to hand off tasks so you can focus on other work",id:"YeGDgoxCdD"}),href:"/downloads"},connect_tools:{description:t.jsx(XS,{defaultMessage:"Give Claude context from the tools you use every day, like Slack or Google Drive",id:"lO1PoQ/p7x"}),href:"/customize/connectors?directory=true"},fund_unlock_fast_mode_cr:{description:t.jsx(hs,{id:"rnn0xy"}),href:Q$e},enterprise_setup_sso:{description:t.jsx(XS,{defaultMessage:"Set up single sign-on so your team can use their work credentials",id:"RJbe2fl4Qr"}),href:"/admin-settings/organization#provisioning"},enterprise_domain_capture:{description:t.jsx(XS,{defaultMessage:"Migrate accounts using your domain",id:"wylVMYvzWU"}),href:"/admin-settings/organization#domains"},enterprise_data_retention:{description:t.jsx(XS,{defaultMessage:"Choose a data retention policy that fits your organization",id:"uZAEAKmgwF"}),href:"/admin-settings/data-privacy-controls"},enterprise_assign_code_seats:{description:t.jsx(XS,{defaultMessage:"Give your developers access to Claude Code",id:"/29gJi+64E"}),href:"/admin-settings/claude-code"}};function sGe(){const{activeOrganization:e}=v(),t=ze("b2b_onboarding_config","min_team_created_at",null,Wj),s=e?.created_at;return!!s&&(!t||new Date(s)>=new Date(t))}const nGe=new Set,aGe=new Set,iGe=new Set;function rGe(e,t){return`${e}:${t}`}function oGe({children:e}){const s=hw(),n=Yv(),a=xw(),i=$j(),r=ji()?.role;return i?e:n&&("primary_owner"===r||"owner"===r)?t.jsx(gGe,{children:e}):s&&a?t.jsx(lGe,{children:e}):e}function lGe({children:s}){const n=r(),{track:a}=ae(),{activeOrganization:i}=v(),o=i?.uuid,{data:l,isLoading:c}=H$e(),{mutate:d}=P$e(),u=U$e(),m=O$e(),{ref:p,isIntersecting:f}=KN({threshold:.5}),g=sGe(),h=y("enable_b2b_onboarding_actions"),C=K$e(i?.capabilities),x=Boolean(C?.skipRoleStep&&C.skipRoleDefaultPersona);e.useEffect(()=>{o&&!iGe.has(o)&&(c||function(e,t,s,n){if(void 0===e||null!==e.persona)return!1;if(s)return!0;if(n)return!0;return t}(l,g,x,h)&&(iGe.add(o),n.push("/onboarding/role")))},[o,c,l,g,x,h,n]);const b=Gj().enabled?{}:{get_apps:"/download",try_claude_code:"/download",setup_cowork:"/download"},k=$v(),w=e.useMemo(()=>vGe(l?.tasks??[]),[l?.tasks]);if(e.useEffect(()=>{if(f&&o)for(const e of w.all){const t=rGe(o,e.key);nGe.has(t)||(nGe.add(t),d({task_key:e.key,action:"seen"}),a({event_key:"claudeai.admin_activation.task.seen",task_key:e.key}))}},[f,w.all,o,d,a]),e.useEffect(()=>{o&&!c&&l?.persona&&(l.panel_dismissed_at||0!==w.all.length&&(aGe.has(o)||(0===w.incomplete.length?(aGe.add(o),a({event_key:"claudeai.admin_activation.panel.completed"})):yGe(w)&&(aGe.add(o),a({event_key:"claudeai.admin_activation.panel.auto_dismissed",task_keys_at_threshold:w.incomplete.map(e=>e.key)})))))},[o,c,l,w,a]),!o)return s;if(c)return null;if(!l?.persona)return s;if(l.panel_dismissed_at)return s;const M=cGe[l.persona],_=void 0!==M;if(k||0===w.all.length&&!_||0===w.incomplete.length&&!_||yGe(w))return s;const j={intersectionRef:p,hrefOverrides:b,onRowClick:(e,t,s)=>{t||(u(e,{clicked_at:(new Date).toISOString()}),d({task_key:e,action:"clicked"})),a({event_key:"claudeai.admin_activation.task.clicked",task_key:e,completed:t,href_fallback:s})},onDismissTask:(e,t)=>{u(e,{dismissed_at:(new Date).toISOString()}),d({task_key:e,action:"dismissed"}),a({event_key:"claudeai.admin_activation.task.dismissed",task_key:e,completed:t})},onDismissPanel:()=>{m((new Date).toISOString()),d({task_key:"_panel",action:"dismissed"}),a({event_key:"claudeai.admin_activation.panel.dismissed"})}};return void 0!==M?t.jsx(uGe,{...j,baseTasks:w.all,baseAllComplete:0===w.incomplete.length,insertIndex:M,orgUuid:o,isIntersecting:f,fallback:s},o):t.jsx(dGe,{...j,tasks:w.all})}const cGe={founder_ceo:2,software_engineer:1};function dGe({tasks:e,intersectionRef:s,hrefOverrides:n={},onRowClick:a,onDismissTask:i,onDismissPanel:r}){const o=JS(),l=e.filter(e=>null!==e.clicked_at).length,c=o.formatMessage({defaultMessage:"Dismiss task",id:"EZ90j1+pan"}),d=o.formatMessage({defaultMessage:"Dismiss checklist",id:"41WHY6DLf4"});return t.jsxs("div",{ref:s,className:"group/panel mb-6 w-full",children:[t.jsxs("div",{className:"flex items-baseline gap-2 px-1 pb-2",children:[t.jsx("h2",{className:"text-sm font-semibold text-text-200",children:t.jsx(XS,{defaultMessage:"Get set up with Claude",id:"jAKIrUA444"})}),t.jsx("span",{className:"text-xs text-text-400",children:t.jsx(XS,{defaultMessage:"{completedCount} of {totalCount} completed",id:"QynMIvTZ+Q",values:{completedCount:l,totalCount:e.length}})}),t.jsx("div",{className:dt("ml-auto transition","pointer-events-none opacity-0","group-hover/panel:pointer-events-auto group-hover/panel:opacity-100","group-focus-within/panel:pointer-events-auto group-focus-within/panel:opacity-100"),children:t.jsx(kt,{size:"icon_xs",variant:"ghost",className:"[--button-hover-text:hsl(var(--text-300))]",tooltip:d,tooltipSide:"top",onClick:r,children:t.jsx(nd,{className:"size-4"})})})]}),t.jsx("div",{className:"flex flex-col divide-y divide-border-300",children:e.map(e=>{const s=tGe[e.key],r=null!==e.clicked_at,o=dt("flex-1 text-left text-sm",r?"text-text-500 line-through":"text-text-100","after:absolute after:inset-0 after:content-['']"),l=n[e.key]??s.href,d=l!==s.href,u=l.startsWith("http"),m=t.jsx(tm,{href:l,webBehavior:"new-tab",desktopBehavior:u?"open-in-browser":"navigate",rel:"noreferrer",onClick:()=>a(e.key,r,d),className:o,children:s.description});return t.jsxs("div",{className:"group relative flex items-center gap-3 py-3 pl-1 pr-10 transition-colors first:rounded-t-lg last:rounded-b-lg hover:bg-bg-200",children:[r?t.jsx("div",{className:"flex size-6 shrink-0 items-center justify-center rounded-full border-0.5 border-border-300 bg-bg-300","aria-hidden":"true",children:t.jsx(Hu,{size:20,className:"text-text-400"})}):t.jsx("div",{className:"size-6 shrink-0 rounded-full border-[1.5px] border-border-400","aria-hidden":"true"}),m,t.jsx("div",{className:dt("absolute right-1 top-1/2 z-10 -translate-y-1/2 transition-opacity","pointer-events-none opacity-0","group-hover:pointer-events-auto group-hover:opacity-100","group-focus-within:pointer-events-auto group-focus-within:opacity-100"),children:t.jsx(kt,{size:"icon_xs",variant:"ghost",className:"[--button-hover-text:hsl(var(--text-300))] [--button-hover-bg:hsl(var(--bg-400))]",tooltip:c,tooltipSide:"top",onClick:t=>{t.stopPropagation(),i(e.key,r)},children:t.jsx(nd,{className:"size-4"})})})]},e.key)})})]})}function uGe({baseTasks:s,baseAllComplete:n,insertIndex:a,orgUuid:i,isIntersecting:r,fallback:o,...l}){const c=he("b2b_onboarding_fund_unlock_experiment","enabled",!1,L),{activeOrganization:d}=v(),{track:u}=ae(),{mutate:m}=P$e(),{data:p,isLoading:f}=z$e({noToast:!0,refetchOnWindowFocus:"always"}),[g,h]=le(()=>!!mi()?.getItem(eGe(i)),!1),[C,x]=le(()=>!!mi()?.getItem(fGe(i)),!1),y=d?.settings?.claude_code_penguin_mode_enabled,b=p?.enabled,k=!!y&&!!b,w=C||k,M=c&&!g;e.useEffect(()=>{if(!M||!r)return;const e=rGe(i,mGe);nGe.has(e)||(nGe.add(e),m({task_key:mGe,action:"seen"}),u({event_key:"claudeai.admin_activation.task.seen",task_key:mGe}))},[M,r,i,m,u]);const _=e.useMemo(()=>M?function(e,t,s){if(e.some(e=>e.key===mGe))return[...e];const n={key:mGe,completed:s,seen_count:0,clicked_at:s?new Date(0).toISOString():null,dismissed_at:null},a=[...e];return a.splice(Math.min(t,a.length),0,n),a}(s,a,w):s,[M,s,a,w]);return n&&M&&y&&f?null:!n||M&&!k?t.jsx(dGe,{...l,tasks:_,onRowClick:(e,t,s)=>{e!==mGe||t||(mi()?.setItem(fGe(i),String(Date.now())),x(!0)),l.onRowClick(e,t,s)},onDismissTask:(e,t)=>{e===mGe&&(mi()?.setItem(eGe(i),String(Date.now())),h(!0)),l.onDismissTask(e,t)}}):o}const mGe="fund_unlock_fast_mode_cr",pGe=new Set(["enterprise_setup_sso","enterprise_domain_capture","enterprise_data_retention","enterprise_assign_code_seats"]);function fGe(e){return`fmcr_fund_unlock_clicked:${e}`}function gGe({children:s}){const{track:n}=ae(),{activeOrganization:a}=v(),i=a?.uuid,r=function(){const{activeOrganization:e}=v(),t=ze("b2b_onboarding_config","min_enterprise_created_at",null,Wj),s=e?.created_at;return!!s&&(!t||new Date(s)>=new Date(t))}(),{data:o,isLoading:l}=H$e(),{mutate:c}=P$e(),d=U$e(),u=O$e(),{ref:m,isIntersecting:p}=KN({threshold:.5}),f=$v(),g=e.useMemo(()=>(o?.tasks??[]).filter(e=>pGe.has(e.key)),[o?.tasks]),h=e.useMemo(()=>vGe(g),[g]),C=g.length>0&&g.every(e=>null!==e.clicked_at);if(e.useEffect(()=>{if(p&&i&&r)for(const e of h.all){const t=rGe(i,e.key);nGe.has(t)||(nGe.add(t),c({task_key:e.key,action:"seen"}),n({event_key:"claudeai.admin_activation.task.seen",task_key:e.key}))}},[p,h.all,i,r,c,n]),e.useEffect(()=>{i&&r&&!l&&(o?.panel_dismissed_at||0!==h.all.length&&(aGe.has(i)||yGe(h)&&(aGe.add(i),n({event_key:"claudeai.admin_activation.panel.auto_dismissed",task_keys_at_threshold:h.incomplete.map(e=>e.key)}))))},[i,r,l,o,h,n]),!i||!r)return s;if(l||0===h.all.length)return s;if(o?.panel_dismissed_at)return s;if(f||yGe(h))return s;const x={intersectionRef:m,onRowClick:(e,t,s)=>{t||(d(e,{clicked_at:(new Date).toISOString()}),c({task_key:e,action:"clicked"})),n({event_key:"claudeai.admin_activation.task.clicked",task_key:e,completed:t,href_fallback:s})},onDismissTask:(e,t)=>{d(e,{dismissed_at:(new Date).toISOString()}),c({task_key:e,action:"dismissed"}),n({event_key:"claudeai.admin_activation.task.dismissed",task_key:e,completed:t})},onDismissPanel:()=>{u((new Date).toISOString()),c({task_key:"_enterprise_panel",action:"dismissed"}),n({event_key:"claudeai.admin_activation.panel.dismissed",all_complete:C})}};return t.jsx(hGe,{...x,orgUuid:i,partition:h,allComplete:C,fallback:s},i)}function hGe({orgUuid:s,partition:n,allComplete:a,fallback:i,...r}){const{track:o}=ae();return e.useEffect(()=>{a&&(aGe.has(s)||(aGe.add(s),o({event_key:"claudeai.admin_activation.panel.completed"})))},[a,s,o]),0!==n.incomplete.length||a?a?t.jsx(CGe,{onDismiss:r.onDismissPanel,onGuideClick:()=>{o({event_key:"claudeai.admin_activation.guide_link.clicked",source:"congrats_card"}),r.onDismissPanel()}}):t.jsx(dGe,{...r,tasks:n.all}):i}function CGe({onDismiss:e,onGuideClick:s}){const n=JS().formatMessage({defaultMessage:"Dismiss",id:"TDaF6JVgG6"});return t.jsxs("div",{role:"status",className:"mb-6 flex w-full items-center gap-3 rounded-2xl border-0.5 border-border-300 p-4",children:[t.jsxs("div",{className:"flex min-w-0 flex-1 items-start gap-2",children:[t.jsx("div",{"aria-hidden":"true",className:"mt-px flex size-5 shrink-0 items-center justify-center rounded-full bg-success-900",children:t.jsx(Hu,{size:12,className:"text-success-000"})}),t.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-1",children:[t.jsx("h2",{className:"text-sm font-semibold text-text-100",children:t.jsx(XS,{defaultMessage:"You're set up",id:"If8vD/U3nE"})}),t.jsx("p",{className:"text-sm text-text-200",children:t.jsx(XS,{defaultMessage:"Your team can start using Claude now. When you're ready for more, the Administrator Guide covers SCIM, audit logs, and org-wide rollout.",id:"F1D+oS6ryj"})})]})]}),t.jsx(kt,{size:"sm",variant:"secondary",className:"shrink-0",href:"https://claude.com/resources/tutorials/claude-enterprise-administrator-guide",target:"_blank",onLinkClick:s,children:t.jsx(XS,{defaultMessage:"Open guide",id:"L4qZQU5ic/"})}),t.jsx(kt,{size:"icon_xs",variant:"ghost",className:"shrink-0",tooltip:n,tooltipSide:"top",onClick:e,children:t.jsx(nd,{className:"size-4"})})]})}function xGe(e){return e.key in tGe}function vGe(e){const t=e.filter(xGe).filter(e=>null===e.dismissed_at),s=t.filter(e=>null===e.clicked_at),n=t.filter(e=>null!==e.clicked_at);return{incomplete:s,complete:n,all:[...s,...n]}}function yGe(e){return e.incomplete.length>0&&e.incomplete.every(e=>e.seen_count>=3)}const bGe=[{icon:"Edit",title:"1ayq4zu",desc:"1ayq4ze",promptKey:"chlk_qa_lesson_q",prompt:"1ayq4zr"},{icon:"Checklist",title:"khprpb",desc:"khprov",promptKey:"chlk_qa_rubric_q",prompt:"khprp8"},{icon:"Team",title:"1f0ezrr",desc:"1f0ezrb",promptKey:"chlk_qa_diff_q",prompt:"1f0ezro"},{icon:"Email",title:"pewyk6",desc:"pewyjq",promptKey:"chlk_qa_family_q",prompt:"pewyk3"}],kGe={icon:"Slides",title:"tbfgls",desc:"tbfglc",key:"chlk_qa_design",href:_e("teachers_landing")};function wGe(){const s=JS(),{setPrompt:n,setPreviewPrompt:a}=re(e=>({setPrompt:e.setPrompt,setPreviewPrompt:e.setPreviewPrompt})),i=e.useCallback(e=>{a(void 0),n(e,{forceUpdateTiptap:!0})},[n,a]);return t.jsx(sA.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},className:"relative mx-auto flex w-full flex-wrap items-center justify-center gap-2 pt-4",children:t.jsx(nA,{children:bGe.map((e,n)=>{const r=gs({id:e.prompt,intl:s});return t.jsx(sA.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.05*n},children:t.jsx(r$e,{icon:t.jsx($L,{name:e.icon}),onClick:()=>i(r),onMouseEnter:()=>a(r),onFocus:()=>a(r),onMouseLeave:()=>a(void 0),onBlur:()=>a(void 0),children:t.jsx(hs,{id:e.title})})},e.promptKey)})})})}const MGe="chat:new-chat-intent";function _Ge(){window.dispatchEvent(new CustomEvent(MGe))}function jGe(){const t=JS(),s=Zi();return e.useEffect(()=>{const e=()=>{const e=s.getState(),n=e.getPrompt();if(!n)return;bGe.some(e=>{const s=gs({id:e.prompt,intl:t});return Kj(s).trim()===n})&&(e.setPreviewPrompt(void 0),e.setPrompt("",{forceUpdateTiptap:!0}))};return window.addEventListener(MGe,e),()=>{window.removeEventListener(MGe,e)}},[s,t]),null}let SGe=null;function LGe(e){SGe={prompt:e,at:performance.now()}}async function NGe(e){const t=(new TextEncoder).encode(e),s=await window.crypto.subtle.digest("SHA-256",t);return Array.from(new Uint8Array(s)).map(e=>e.toString(16).padStart(2,"0")).join("")}function IGe(){const t=M(),s=Pw(),n=e.useRef(null);if(null===n.current){let e;const t=new Promise(t=>{e=t});n.current={promise:t,resolve:e}}return e.useEffect(()=>{s||n.current?.resolve()},[s]),e.useCallback(async e=>{const{prompt:s,attachments:a}=e;if(!s&&!a)return{};const i=n.current.promise,r=Promise.race([i,new Promise(e=>setTimeout(e,1500))]),[o]=await Promise.all([t("/prefills"),r]),{prompts:l,artifacts:c}=await o.json(),d=Ll("claudeai_safe_prompt_hashes",[]),u=[...l,...Array.isArray(d)?d.filter(e=>"string"==typeof e).map(e=>e.trim().toLowerCase()):[]];let m,p;if(s){const e=await NGe(s);m=u.includes(e)}if(a){p=!0;const e=a.filter(e=>e.origin===ts.URLParameter);for(const t of e){const e=await NGe(t.extracted_content);if(!c.includes(e)){p=!1;break}}}return{prompt:m,attachments:p}},[t])}function TGe(){const{setPrompt:t,setAttachments:s,setTipTapEditorJSON:n,hasHydrated:a,getPrompt:i}=re(e=>({setPrompt:e.setPrompt,setAttachments:e.setAttachments,setTipTapEditorJSON:e.setTipTapEditorJSON,hasHydrated:e._hasHydrated,getPrompt:e.getPrompt})),o=Zi(),{setDraftModel:l,setProjectUuid:c}=J(),d=Ye({source:"newChatUrlStarter"}),u=y("model_selector_enabled"),p=m(),f=Zb(),{addError:g}=ut(),h=JS(),C=f.get("model"),x=f.get("q"),v=f.get("skill-name"),b=Yj(x,v)?null:Qj(x),k=f.get("attachment"),w=f.get("project"),M=f.get("thinking"),_=f.get("error"),j="string"==typeof b&&b.startsWith("/"),{skills:S,isLoading:L}=Ng(!!v||j),{data:N,isLoading:I}=ur(),{data:T,isLoading:A}=hc(),{data:E,isLoading:R}=Sl(),D=e.useRef(null),H=e.useRef(null),P="string"==typeof w?w:void 0,{data:U,isLoading:O}=Ee(P),{modeOptionsFor:F}=Ae("chat"),V=IGe(),z=r(),Z=e.useCallback(()=>{if(window.location.pathname!==$n)return;const e=new URLSearchParams(window.location.search);if(!e.has("q"))return;e.delete("q");const t=e.toString();z.replace(window.location.pathname+(t?`?${t}`:""))},[z]),B="string"!=typeof k?[]:[{file_name:"artifact",file_size:k.length,file_type:"text",extracted_content:k,origin:ts.URLParameter,kind:It.File}];return e.useEffect(()=>{if(!a)return;const e=function(){const e=SGe;return SGe=null,!e||performance.now()-e.at>1e4?null:e.prompt}();if(null===e)return;const s=Jj(i(),"trailing"),n=!Xj(s),r=n&&bk(o.getState().tipTapEditorState);t(n?`${s}\n${e}`:e,{forceUpdateTiptap:!0,unsafe:r||Aa(e)})},[a,t,i,o]),e.useEffect(()=>{if(_){const e=decodeURIComponent(_);let t=e;"teams_no_remix"===e&&(t=h.formatMessage({defaultMessage:"Teams cannot remix public artifacts. Gallery artifacts are available for remixing.",id:"ll9EJwxUkI"})),g(t,{timeout:7e3,errorContext:{tags:{source:"new_page_url_error"}}})}},[_,g,h]),e.useEffect(()=>{if("string"==typeof k&&s(B),u&&C&&l(C),!C||!u||"extended"!==M)return;F(C).map(e=>e.id).includes(M)&&d(M)},[]),e.useEffect(()=>{p||O||!U||c(U.uuid)},[U,O,p]),e.useEffect(()=>{if("string"!=typeof b)return;if(b.startsWith("/")&&!v){if(A)return;if(!a)return;if(D.current===b)return;const e=b.slice(1),t=T.find(t=>t.name===e);if(t){D.current=b;const s=ql(e),a=fv(e,s,t.description??"",t.argumentHint??"");return void n({type:"doc",content:[{type:"paragraph",content:a}]})}if(L)return;const s=S.find(t=>t.skillName===e&&mr(t));if(s){D.current=b;const e=fv(s.skillName,s.skillName,s.skillDescription);return void n({type:"doc",content:[{type:"paragraph",content:e}]})}if(I)return;const i=N?.find(t=>t.name===e);if(i){D.current=b;const e=fv(i.name,i.name,i.description??"",i.argumentHint??"");return void n({type:"doc",content:[{type:"paragraph",content:e}]})}}if(v&&(L||R))return;if(!a)return;if(H.current===b)return;H.current=b;let e=eS(b,v);if(""===e.trim())return void(H.current=null);const s=Jj(i(),"trailing"),r=!Xj(s),l=r&&bk(o.getState().tipTapEditorState);if(r){const t=Jj(e,"leading");if(""===t)return void(H.current=null);e=`${s}\n${t}`}V({prompt:b}).then(s=>{let n=!1;v&&(n=S.some(e=>e.skillName===v)||E.some(e=>e.skills.some(e=>e.name===v)));const a=v?s.prompt&&n:s.prompt;t(e,{unsafe:!a||l,forceUpdateTiptap:!0}),Z()},()=>{t(e,{unsafe:!0,forceUpdateTiptap:!0}),Z()})},[b,v,o,S,L,N,I,E,R,T,A,a,t,n,V,i,Z]),null}function AGe({children:e,fallback:t=null}){return Ab()?t:e}function EGe({anchorRef:e,canShowNux:s,text:n,id:a,nuxItem:i,side:r,align:o="center",ariaLabel:l}){const{shouldShow:c,dismiss:d}=lI(a,i);return t.jsx(oN,{open:c&&s,onOpenChange:e=>!e&&d(),anchor:e,side:r,align:o,introDelay:.5,"aria-label":l,children:t.jsxs("div",{className:"flex flex-row gap-sm min-w-[13rem]",children:[t.jsx(cU,{}),t.jsx("p",{children:n})]})})}const RGe="first-skill-uploaded-2025-09-30";function DGe(){const{nuxSkillName:s}=ZS(hT(e=>({nuxSkillName:e.nuxSkillName}))),n=JS(),{isDismissed:a}=me(),i=a(RGe),{promptInputRef:r}=J(),{setPrompt:o}=re(e=>({setPrompt:e.setPrompt})),l=e.useRef(null),c=e.useRef(!1);return e.useEffect(()=>{if(!s||c.current)return;if(i)return;const e=n.formatMessage({defaultMessage:"Hey Claude\u2014I just added the \u201c{nuxSkillName}\u201d skill. Can you make something amazing with it?",id:"MBjQlaEqUX"},{nuxSkillName:s}),t=setInterval(()=>{if(r?.current){c.current=!0;const s=r.current.getEditor();s?.isEmpty&&(s.chain().focus().setContent(e).run(),o(e)),clearInterval(t)}},100),a=setTimeout(()=>{clearInterval(t)},5e3);return()=>{clearInterval(t),clearTimeout(a)}},[s,i,o,r,n]),t.jsxs("div",{className:"relative",children:[t.jsx("div",{ref:l,className:"absolute -top-2 left-[33px] w-0 h-0"}),t.jsx(EGe,{canShowNux:!!s,anchorRef:l,side:"top",align:"start",ariaLabel:n.formatMessage({defaultMessage:"Try your skill",id:"DBx5VLr/ru"}),text:t.jsx(XS,{defaultMessage:"Claude can use skills in any chat. Mention it to try it out\u2014you don\u2019t even need to use the exact name.",id:"6ku8vR1894"}),id:RGe,nuxItem:{dateAdded:"2025-09-30",priority:cI.HIGH,showAfterOthersDismiss:!1}})]})}function HGe(e,t){return dt("flex-shrink-0 flex items-center justify-center bg-bg-300 border-0.5 border-border-300 overflow-hidden","sm"===e?"size-5 rounded-[4px]":"size-8 rounded-md",t)}function PGe(e,t){return`/api/organizations/${e.uuid}/icon${void 0!==t?`?v=${t}`:""}`}function UGe({organization:e,cacheBustKey:s,size:n="md",className:a}){const i="sm"===n;return t.jsx("div",{className:HGe(n,a),children:t.jsx(tS,{src:PGe(e,s),alt:e.name,className:"size-full object-cover",fallbackSvg:t.jsx($L,{name:"Organization",size:i?"xs":"sm",className:"text-text-300"})},s)})}function OGe(e){return[sS,{orgUuid:e}]}const FGe=e=>{const{activeOrganization:t}=v(),s=t?.uuid;return B(`/api/organizations/${s}/prosumer_activation/tasks`,{queryKey:OGe(s),enabled:!!s&&(e?.enabled??!0),staleTime:36e5,meta:{noToast:!0}})},VGe=()=>{const{activeOrganization:e}=v(),t=e?.uuid;return b(e=>`/api/organizations/${t}/prosumer_activation/tasks/${e.task_key}/events`,"POST",{enabled:!!t,transformVariables:({action:e})=>({action:e}),meta:{noToast:!0}})},zGe=()=>{const t=gL(),{activeOrganization:s}=v(),n=s?.uuid;return e.useCallback((e,s)=>{t.setQueryData(OGe(n),t=>t?{...t,tasks:t.tasks.map(t=>t.key===e?{...t,...s}:t)}:t)},[t,n])},ZGe=()=>{const t=gL(),{activeOrganization:s}=v(),n=s?.uuid;return e.useCallback(e=>{t.setQueryData(OGe(n),t=>t?{...t,panel_dismissed_at:e}:t)},[t,n])};function BGe(e,t){try{let s=2166136261;const n=String(t);for(let e=0;e<n.length;e++)s=Math.imul(31,s)+n.charCodeAt(e)|0;const a=()=>(s=Math.imul(s^s>>>16,73244475),s=Math.imul(s^s>>>13,73244475),s=(s^s>>>16)>>>0,s/4294967296),i=e.slice();for(let e=i.length-1;e>0;e--){const t=Math.floor(a()*(e+1));[i[e],i[t]]=[i[t],i[e]]}return i}catch{return e}}const qGe={setup_project:{description:t.jsx(XS,{defaultMessage:"Set up a project with files and context",id:"iCdnvtR47O"}),action:{kind:"href",href:"/projects/create"}},explore_skills:{description:t.jsx(XS,{defaultMessage:"Teach Claude your workflows with skills",id:"OEqM8Gbsew"}),action:{kind:"href",href:"/customize/skills"}},get_apps:{description:t.jsx(XS,{defaultMessage:"Bring Claude into Chrome, Slack, and more",id:"s0zHZFEYT9"}),action:{kind:"href",href:"/downloads"}},try_claude_code:{description:t.jsx(XS,{defaultMessage:"Build, debug, and ship with Claude Code",id:"CycilrWAGg"}),action:{kind:"href",href:"/downloads"}},setup_cowork:{description:t.jsx(XS,{defaultMessage:"Hand off tasks in Cowork",id:"nz/QKiwSEj"}),action:{kind:"href",href:"/downloads"}},connect_tools:{description:t.jsx(XS,{defaultMessage:"Connect your everyday tools",id:"aCCpuiyGU7"}),action:{kind:"href",href:"/customize/connectors?directory=true"}},prosumer_import_memory:{description:t.jsx(XS,{defaultMessage:"Bring your history over from another AI",id:"tXL27a07PV"}),action:{kind:"href",href:"/settings/capabilities?open_memory_import=true"}},prosumer_create_file:{description:t.jsx(XS,{defaultMessage:"Create docs, decks, and sheets",id:"M8hSAXmezG"}),action:{kind:"prompt",prompt:"Create a spreadsheet, doc, or presentation for me"}},prosumer_create_app:{description:t.jsx(XS,{defaultMessage:"Build an app, no code needed",id:"Eu/L0po6jI"}),action:{kind:"prompt",prompt:"Create an interactive app that "}},prosumer_explore_imagine:{description:t.jsx(XS,{defaultMessage:"Visualize anything",id:"+jl8kGm4v6"}),action:{kind:"prompt",prompt:"Turn this idea into a diagram, chart, or visual: "}},prosumer_try_claude_design:{description:t.jsx(XS,{defaultMessage:"Turn your ideas into designs",id:"gc1fEOYN8w"}),action:{kind:"href",href:_e("prosumer_checklist")}}},WGe=new Set(["get_apps","try_claude_code","setup_cowork"]);function $Ge(e,t){const s=qGe[e].action;return"href"===s.kind&&!t.installHubEnabled&&WGe.has(e)?{kind:"href",href:"/download"}:s}const GGe={setup_project:!1,explore_skills:!1,get_apps:!1,try_claude_code:!1,setup_cowork:!1,connect_tools:!1,prosumer_import_memory:!1,prosumer_create_file:!1,prosumer_create_app:!1,prosumer_explore_imagine:!1,prosumer_try_claude_design:!1},KGe=AL({setup_project:RL().default(!1),explore_skills:RL().default(!1),get_apps:RL().default(!1),try_claude_code:RL().default(!1),setup_cowork:RL().default(!1),connect_tools:RL().default(!1),prosumer_import_memory:RL().default(!1),prosumer_create_file:RL().default(!1),prosumer_create_app:RL().default(!1),prosumer_explore_imagine:RL().default(!1),prosumer_try_claude_design:RL().default(!1)});function YGe(){return Qa("prosumer_checklist_v2",GGe,KGe)}const QGe=new Set(["prosumer_try_claude_design"]);function JGe(e){return Object.keys(e).some(t=>e[t]&&!QGe.has(t))}const XGe=new Set,eKe=new Set;function tKe(e,t){return`${e}:${t}`}function sKe({children:e}){const s=hw(),n=YGe();return s||!JGe(n)?e:t.jsx(nKe,{config:n,children:e})}function nKe({children:s,config:n}){const a=JS(),{track:i}=ae(),{activeOrganization:r}=v(),o=r?.uuid,{data:l,isLoading:c}=FGe(),{mutate:d}=VGe(),u=zGe(),m=ZGe(),{ref:p,isIntersecting:f}=KN({threshold:.5}),{setPrompt:g}=re(e=>({setPrompt:e.setPrompt})),h={explore_skills:Rg,connect_tools:nS({directory:"true"}),...Gj().enabled?{}:{get_apps:"/download",try_claude_code:"/download",setup_cowork:"/download"}},C=$v(),x=e.useMemo(()=>iKe(l?.tasks??[],n,o??""),[l?.tasks,n,o]);if(e.useEffect(()=>{if(f&&o)for(const e of x.all){const t=tKe(o,e.key);XGe.has(t)||(XGe.add(t),d({task_key:e.key,action:"seen"}),i({event_key:"claudeai.prosumer_activation.task.seen",task_key:e.key,slot_index:x.slotByKey.get(e.key)}))}},[f,x,o,d,i]),e.useEffect(()=>{o&&!c&&l&&(l.panel_dismissed_at||0!==x.all.length&&(eKe.has(o)||(0===x.incomplete.length?(eKe.add(o),i({event_key:"claudeai.prosumer_activation.panel.completed"})):rKe(x)&&(eKe.add(o),i({event_key:"claudeai.prosumer_activation.panel.auto_dismissed",task_keys_at_threshold:x.incomplete.map(e=>e.key)})))))},[o,c,l,x,i]),!o)return s;if(c)return null;if(!l)return s;if(l.panel_dismissed_at)return s;if(C||0===x.all.length||0===x.incomplete.length||rKe(x))return s;const y=(e,t,s)=>{switch(((e,t)=>{t||(u(e,{clicked_at:(new Date).toISOString()}),d({task_key:e,action:"clicked"})),i({event_key:"claudeai.prosumer_activation.task.clicked",task_key:e,completed:t,slot_index:x.slotByKey.get(e)})})(e,s),t.kind){case"href":return;case"prompt":return void g(t.prompt,{forceUpdateTiptap:!0})}},b=a.formatMessage({defaultMessage:"Dismiss task",id:"EZ90j1+pan"}),k=a.formatMessage({defaultMessage:"Dismiss checklist",id:"41WHY6DLf4"});return t.jsx(t.Fragment,{children:t.jsxs("div",{ref:p,className:"group/panel mb-6 w-full",children:[t.jsxs("div",{className:"flex items-baseline gap-2 px-1 pb-2",children:[t.jsx("h2",{className:"text-sm font-semibold text-text-200",children:t.jsx(XS,{defaultMessage:"Get set up with Claude",id:"jAKIrUA444"})}),t.jsx("span",{className:"text-xs text-text-400",children:t.jsx(XS,{defaultMessage:"{completedCount} of {totalCount} completed",id:"QynMIvTZ+Q",values:{completedCount:x.complete.length,totalCount:x.all.length}})}),t.jsx("div",{className:dt("ml-auto transition","pointer-events-none opacity-0","group-hover/panel:pointer-events-auto group-hover/panel:opacity-100","group-focus-within/panel:pointer-events-auto group-focus-within/panel:opacity-100"),children:t.jsx(kt,{size:"icon_xs",variant:"ghost",className:"[--button-hover-text:hsl(var(--text-300))]",tooltip:k,tooltipSide:"top",onClick:()=>{m((new Date).toISOString()),d({task_key:"_prosumer_panel",action:"dismissed"}),i({event_key:"claudeai.prosumer_activation.panel.dismissed"})},children:t.jsx(nd,{className:"size-4"})})})]}),t.jsx("div",{className:"flex flex-col divide-y divide-border-300",children:x.all.map(e=>{const s=qGe[e.key],n=s.description,a=null!==e.clicked_at,r=function(e,t,s){if("href"!==e.kind)return e;const n=s[t];return n?{kind:"href",href:n}:e}(s.action,e.key,h);return t.jsxs("div",{className:"group relative flex items-center gap-3 py-3 pl-1 pr-10 transition-colors first:rounded-t-lg last:rounded-b-lg hover:bg-bg-200",children:[a?t.jsx("div",{className:"flex size-6 shrink-0 items-center justify-center rounded-full border-0.5 border-border-300 bg-bg-300","aria-hidden":"true",children:t.jsx(Hu,{size:20,className:"text-text-400"})}):t.jsx("div",{className:"size-6 shrink-0 rounded-full border-[1.5px] border-border-400","aria-hidden":"true"}),"href"===r.kind?t.jsx(tm,{href:r.href,webBehavior:"new-tab",desktopBehavior:"navigate",rel:"noreferrer",onClick:()=>y(e.key,r,a),className:aKe(a),children:n}):t.jsx("button",{type:"button",onClick:()=>y(e.key,r,a),className:aKe(a),children:n}),t.jsx("div",{className:dt("absolute right-1 top-1/2 z-10 -translate-y-1/2 transition-opacity","pointer-events-none opacity-0","group-hover:pointer-events-auto group-hover:opacity-100","group-focus-within:pointer-events-auto group-focus-within:opacity-100"),children:t.jsx(kt,{size:"icon_xs",variant:"ghost",className:"[--button-hover-text:hsl(var(--text-300))] [--button-hover-bg:hsl(var(--bg-400))]",tooltip:b,tooltipSide:"top",onClick:t=>{t.stopPropagation(),((e,t)=>{u(e,{dismissed_at:(new Date).toISOString()}),d({task_key:e,action:"dismissed"}),i({event_key:"claudeai.prosumer_activation.task.dismissed",task_key:e,completed:t})})(e.key,a)},children:t.jsx(nd,{className:"size-4"})})})]},e.key)})})]})})}function aKe(e){return dt("flex-1 text-left text-sm",e?"text-text-500 line-through":"text-text-100","after:absolute after:inset-0 after:content-['']")}function iKe(e,t,s){const n=BGe(e.filter(e=>e.key in qGe).filter(e=>!QGe.has(e.key)).filter(e=>t[e.key]),s),a=new Map(n.map((e,t)=>[e.key,t])),i=n.filter(e=>null===e.dismissed_at),r=i.filter(e=>null===e.clicked_at),o=i.filter(e=>null!==e.clicked_at);return{incomplete:r,complete:o,all:[...r,...o],slotByKey:a}}function rKe(e){return e.incomplete.length>0&&e.incomplete.every(e=>e.seen_count>=3)}const oKe=fT(e=>({config:null,showing:!1,setConfig:t=>e({config:t}),setShowing:t=>e({showing:t}),clear:()=>e({config:null,showing:!1})}));function lKe(){return oKe(e=>e.showing)}const cKe=AL({header:TL(["get_to_know","do_more"]),items:NL(TL(["prosumer_import_memory","connect_tools","prosumer_explore_imagine","setup_project","setup_cowork","get_apps","prosumer_try_claude_design"]))}),dKe=AL({placement:TL(["composer","sidebar","sidebar_paged","composer_then_sidebar"]).default("composer"),pages:NL(cKe).max(2).default([]),composerMaxSeenCount:EL().int().min(1).max(2).optional()}),uKe={placement:"composer",pages:[]};function mKe({children:s}){const n=Qa("claudified_prosumer_checklist_placement",uKe,dKe),a=oKe(e=>e.setConfig),i=v().activeOrganization?.uuid,r="composer_then_sidebar"===n.placement,{data:o,isLoading:l}=FGe({enabled:r}),c=void 0!==o,d=(u=n.placement,m={maxSeenCount:Math.max(...(o?.tasks??[]).map(e=>e.seen_count),0),hasData:c,isLoading:l},p=n.composerMaxSeenCount??1,"composer_then_sidebar"!==u||m.isLoading?u:m.hasData&&m.maxSeenCount<p?"composer":"sidebar");var u,m,p;const f=e.useRef(null);f.current&&f.current.orgUuid!==i&&(f.current=null);const{placement:g,capture:h}=r?function(e,t,s){if(null!==e)return{placement:e,capture:e};const n=s&&"composer_then_sidebar"!==t?t:null;return{placement:n??t,capture:n}}(f.current?.value??null,d,c):{placement:d,capture:null};f.current=null===h?null:{orgUuid:i,value:h};const C="composer_then_sidebar"!==g;return e.useEffect(()=>{C&&a(g===n.placement?n:{...n,placement:g})},[n,g,C,a]),C?"composer"===g?t.jsx(sKe,{children:s}):t.jsx(t.Fragment,{children:s}):t.jsx(t.Fragment,{})}function pKe(){const{account:e}=v(),t=y("claude_grove_enabled"),s=o(),n="raven"===wn(),a=e?.invites.some(e=>e.organization.capabilities?.includes("raven")),i=s.startsWith("/settings/billing");return{shouldShowGroveModal:!n&&!a&&!i&&t&&null===e?.settings?.grove_enabled}}var fKe=(e=>(e.CLAUDE_CODE="claude_code",e.CLAUDE_CODE_NUDGE="claude_code_nudge",e.CLAUDE_CODE_REMOTE="claude_code_remote",e.DESKTOP_UPSELL_NUDGE="desktop_upsell_nudge",e.CHILLING_SLOTH_NUDGE="chilling_sloth_nudge",e.CHILLING_SLOTH_SIDEBAR_DOT="chilling_sloth_sidebar_dot",e.IDE_EXTENSION="ide_extension",e.ORG_ENABLE_INTEGRATIONS="org_enable_integrations",e.WIGGLE_EGRESS="wiggle_egress",e.AZURE_KNIGHT_GALLANT="azure_knight_gallant",e.RESEARCH_AND_MCP="research_and_mcp",e.ARTIFACTS_GALLERY="artifacts_gallery",e.MCP_DIRECTORY="mcp_directory",e.MEMORY_SEARCH="memory_search",e.MEMORY_SYNTHESIS="memory_synthesis",e.VOLDEMORT_LUNA_LOVEGOOD="voldemort_luna_lovegood",e.PENGUIN_PARROT_WALNUT="penguin_parrot_walnut",e.OWL_SAPPHIRE_LIBRARY="owl_sapphire_library",e.OCTOPUS_OWL_OBSIDIAN="octopus_owl_obsidian",e.SLACK_UPSELL_NUDGE="slack_upsell_nudge",e))(fKe||{}),gKe=(e=>(e.INTERACTED="interacted",e.DISMISSED="dismissed",e.NOT_TARGETED="not_targeted",e))(gKe||{});function hKe({spotlight:s,render:n,modalClassName:a,overlayClassName:i,autoCloseOnFocusOut:r=!1,closeOnEscapeKeydown:o=!1,modalSize:l="xl"}){const c=ae(),d=_t(),{mutateAsync:u}=(()=>{const{account:e,activeOrganization:t}=v();return b(`/api/organizations/${t?.uuid}/spotlight/action`,"POST",{enabled:!!e})})(),[,m]=xs(s,!1),[p,f]=e.useState(!0),g=e.useContext(uT);e.useEffect(()=>{if(g)return g.setSpotlightActive(p),()=>{g.setSpotlightActive(!1)}},[p,g]),e.useEffect(()=>{p&&c.track({event_key:"spotlight.shown",spotlight:s})},[p,c,s]);const h=e.useCallback(()=>{f(!1),d("spotlight",null)},[d]),C=e.useCallback(async()=>{c.track({event_key:"spotlight.dismissed",spotlight:s}),await u({spotlight:s,action:gKe.DISMISSED}),h(),m(!1)},[h,c,s,u,m]),x=e.useCallback(async({actionName:e,keepOpen:t}={})=>{c.track({event_key:"spotlight.action_clicked",spotlight:s,actionName:e}),await u({spotlight:s,action:gKe.INTERACTED}),t||h()},[h,c,s,u]);return t.jsx(gt,{autoCloseOnFocusOut:r,closeOnEscapeKeydown:o,modalSize:l,isOpen:p,className:dt("overflow-hidden !border-0",a),overlayClassName:i,onClose:C,children:n({handleDismiss:C,handleAction:x})})}function CKe({className:e,...s}){return t.jsx("div",{...s,className:dt("uppercase inline-flex self-start bg-accent-100/10 rounded-lg px-2 h-7 items-center justify-center text-xs font-medium text-accent-100",e)})}function xKe({className:e,...s}){return t.jsx("div",{...s,className:dt("uppercase inline-flex self-start uppercase text-[0.5625rem] font-light px-2 py-1 rounded-md ml-2.5 shrink-0 bg-bg-300",e)})}function vKe({className:e,...s}){return t.jsx("div",{...s,className:dt("inline-flex self-start py-[2px] px-[4px] justify-center items-center rounded-md border border-accent-200 bg-accent-900 text-accent-000 text-[14px] font-normal leading-[140%]",e)})}function yKe({variant:e,children:s,...n}){return"NEW"===e?t.jsx(CKe,{...n,children:t.jsx(XS,{defaultMessage:"New",id:"bW7B87wFFp"})}):"BETA"===e?t.jsx(xKe,{...n,children:t.jsx(XS,{defaultMessage:"Beta",id:"riw/yc06Nq"})}):t.jsx(vKe,{...n,children:s})}function bKe({className:e,...s}){return t.jsx("p",{...s,className:dt("text-text-300 font-base text-pretty",e)})}function kKe(e){return t.jsx(kt,{...e,className:dt("font-base-bold",e.className)})}const wKe=e.createContext(void 0),MKe={sm:384,md:448,lg:512,"2lg":576,xl:768,"3xl":1152},_Ke=e.memo(({render:s,onDismiss:n,onAction:a,modalClassName:i,overlayClassName:r,autoCloseOnFocusOut:o=!1,closeOnEscapeKeydown:l=!0,modalSize:c="xl",maxWidth:d})=>{const[u,m]=e.useState(!0),p=e.useContext(uT);e.useEffect(()=>{if(p)return p.setSpotlightActive(u),()=>{p.setSpotlightActive(!1)}},[u,p]);const f=e.useRef(null),g=e.useCallback(()=>!!f.current&&(a(f.current.metadata),f.current=null,!0),[a]),h=e.useCallback(()=>{g(),m(!1)},[g]),C=e.useCallback(()=>{g()||n(),m(!1)},[g,n]),x=e.useCallback(e=>{const{keepOpen:t,...s}=e??{},n=Object.keys(s).length>0?s:void 0;t?f.current={metadata:n}:(f.current=null,a(n),h())},[a,h]),v=e.useCallback((e,t)=>{e||(l||"escape-key"!==t?.reason)&&C()},[l,C]),y=/(?:^|\s)!?max-w-/.test(i??""),b=/(?:^|\s)!p-0\b/.test(i??""),k=d??(y?void 0:MKe[c]);return t.jsx(lN.Root,{open:u,onOpenChange:v,dismissible:o,children:t.jsx(lN.Popup,{unstyled:!0,"aria-describedby":void 0,backdropClassName:r,style:void 0!==k?{maxWidth:k}:void 0,className:dt("fixed left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 flex flex-col w-[calc(100vw-2rem)] max-h-[calc(100dvh-2rem)] bg-surface-3 rounded-2xl shadow-panel-lg cds-reset text-body text-primary outline-none","transition-[opacity,scale] duration-base ease-out motion-reduce:transition-none data-[starting-style]:opacity-0 data-[starting-style]:scale-[0.98] data-[ending-style]:opacity-0 data-[ending-style]:scale-[0.98]","overflow-hidden !border-0",i),children:t.jsx("div",{className:dt("flex min-h-0 flex-1 flex-col overflow-y-auto overflow-x-hidden rounded-[inherit]",!b&&"p-4 md:p-6"),children:t.jsx(wKe.Provider,{value:"cds",children:s({handleDismiss:C,handleAction:x})})})})})});function jKe({className:s,children:n}){return"cds"===e.useContext(wKe)?t.jsx(lN.Title,{className:s,render:t.jsx("h1",{}),children:n}):t.jsx("h1",{className:s,children:n})}function SKe({handleDismiss:s,handleAction:n}){const[a,i]=e.useState("spotlight"),{data:r}=pt(void 0),o=r?.memory;return t.jsxs("div",{children:[t.jsx(NKe,{handleAction:n,handleDismiss:s,isActiveView:"spotlight"===a,setActiveView:i,memory:o}),t.jsx(IKe,{memory:o,isActiveView:"summary"===a,setActiveView:i,handleAction:n})]})}function LKe(){return t.jsx(hKe,{modalSize:"2lg",closeOnEscapeKeydown:!0,modalClassName:"!p-0 !rounded-[32px] max-md:max-w-[33rem]",spotlight:fKe.MEMORY_SYNTHESIS,render:({handleAction:e,handleDismiss:s})=>t.jsx(SKe,{handleAction:e,handleDismiss:s})})}function NKe({handleAction:e,handleDismiss:s,memory:n,isActiveView:a,setActiveView:i}){const r=aS(),o=ae(),l=!pe();return t.jsxs("div",{className:dt("flex flex-col gap-2 h-full",a?"opacity-100":"opacity-0 pointer-events-none"),inert:!a,children:[t.jsx("div",{className:"overflow-visible flex items-center justify-center relative w-full h-full",children:t.jsx(AKe,{})}),t.jsxs("div",{className:"flex flex-col gap-4 h-full p-8 z-2 relative",children:[t.jsxs("div",{className:"flex flex-col gap-3 grow",children:[l&&t.jsx(yKe,{variant:"PREVIEW",className:"!bg-brand-100/10 !text-brand-000 !normal-case !border-none",children:t.jsx(XS,{defaultMessage:"Preview",id:"TJo5E6JuIN"})}),t.jsx(jKe,{className:"font-title",children:t.jsx(XS,{defaultMessage:"Claude has memory",id:"Sslicn4t0t"})}),t.jsx("div",{className:"flex flex-col gap-3 grow",children:t.jsxs(bKe,{children:[t.jsx(XS,{defaultMessage:"Now Claude can make relevant connections across your chats. Memory includes your entire chat history with Claude.",id:"V6UZFSGPiX"})," ",t.jsx(ds,{href:iS,children:t.jsx(XS,{defaultMessage:"About memory",id:"z1xPpBi+bp"})})]})})]}),t.jsxs("div",{className:"flex sm:flex-row flex-col justify-end gap-2 mt-2",children:[t.jsx(kKe,{size:"lg",variant:"secondary",onClick:()=>{r(!1,{shouldResetMemory:!0}),s()},disabled:!a,children:t.jsx(XS,{defaultMessage:"Don\u2019t use memory",id:"Th1Sq5z4Yi"})}),t.jsx(kKe,{size:"lg",variant:"primary",onClick:()=>{r(!0),n?i("summary"):(e(),o.track({event_key:"claudeai.memory.skipped_spotlight_summary"}))},disabled:!a,children:t.jsx(XS,{defaultMessage:"Use memory",id:"z7tQIRIDkO"})})]})]})]})}function IKe({memory:s,isActiveView:n,setActiveView:a,handleAction:i}){const r=function({text:t,isStreaming:s,delay:n=0}){const a=e.useRef(!1),i=e.useRef(null),[r,o]=e.useState(0),l=e.useCallback(()=>{i.current=setInterval(()=>{o(e=>(e>t.length&&i.current&&(clearInterval(i.current),i.current=null),e+Math.round(10*Math.random()+5)))},Math.round(20*Math.random()+40))},[t]);return e.useEffect(()=>{if(!a.current&&s){a.current=!0;const e=setTimeout(()=>{l()},n);return()=>clearTimeout(e)}},[s,l,n]),e.useEffect(()=>()=>{i.current&&(clearInterval(i.current),i.current=null)},[]),t.slice(0,r)||""}({text:s||"",isStreaming:n,delay:450});return t.jsxs("div",{className:dt("absolute w-full h-full top-0 left-0 p-8 flex flex-col gap-3.5",!n&&"hidden"),children:[t.jsx("h1",{className:"font-xl-bold",children:t.jsx(XS,{defaultMessage:"Here\u2019s what Claude remembers about you",id:"JKYSCrsU7p"})}),t.jsx(CB,{height:"100%",isUpdating:!1,parsedMemory:r||"",bottomBar:null,className:"!bg-transparent",synthesisClassName:"h-full",showGradientBackground:!0}),t.jsxs("div",{className:"bg-bg-200 rounded-lg border-border-300 border-0.5 flex flex-row items-center gap-2 py-1.5 px-2.5 font-small text-text-300",children:[t.jsx(Ft,{size:20}),t.jsx(XS,{defaultMessage:"You can edit and reset Claude\u2019s memory in settings.",id:"ilSNbzLLm5"})]}),t.jsxs("div",{className:"flex flex-row justify-between gap-4 mt-1.5",children:[t.jsx(kt,{variant:"secondary",size:"lg",onClick:()=>a("spotlight"),children:t.jsx(XS,{defaultMessage:"Back",id:"cyR7KhiuaU"})}),t.jsx(kt,{variant:"primary",size:"lg",onClick:()=>{i()},children:t.jsx(XS,{defaultMessage:"OK",id:"kAEQyVFWDv"})})]})]})}function TKe({className:e,...s}){return t.jsx("div",{...s,className:dt("backdrop-blur-[6px] dark:backdrop-blur-[14px] max-w-[356px] font-base px-4 py-2 rounded-xl border self-start text-text-000 shadow-[0_40px_80px_hsl(var(--always-black)/10%)] dark:bg-[#797979]/50 dark:border-always-white/20 bg-always-white/50 border-always-white",e)})}function AKe(){return t.jsxs("div",{className:"relative w-full h-full flex p-8",children:[t.jsx("div",{className:"absolute top-0 left-0 right-0",children:t.jsx(EKe,{})}),t.jsxs("div",{className:"z-2 relative flex flex-col gap-2 py-4",children:[t.jsx(TKe,{className:"!max-w-[282px]",children:t.jsx("p",{children:t.jsx(XS,{defaultMessage:"Can you remind me of everything I\u2019ve accomplished this quarter? ",id:"a0aBqiUjz+"})})}),t.jsx(TKe,{children:t.jsx(XS,{defaultMessage:"Have to write a very overdue self review...",id:"Xbh6TpP5ra"})})]})]})}function EKe(){return t.jsxs(t.Fragment,{children:[t.jsxs("svg",{width:"calc(max(100%, 528px))",viewBox:"0 0 528 444",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"hidden dark:block","aria-hidden":"true",children:[t.jsxs("g",{opacity:"0.3",children:[t.jsx("rect",{x:"6.25",y:"89",width:"69.7499",height:"25.7727",rx:"12.2625",fill:"#ffffff",fillOpacity:"0.27"}),t.jsx("path",{d:"M13.6138 102.833C14.5619 102.833 15.397 102.081 15.8853 100.94C16.3737 102.081 17.2088 102.833 18.1569 102.833C19.1051 102.833 19.9401 102.081 20.4285 100.94C20.9169 102.081 21.7519 102.833 22.7001 102.833C23.6482 102.833 24.4833 102.081 24.9716 100.94",stroke:"#D1D1D1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M24.9717 100.94C25.46 102.081 26.2951 102.833 27.2432 102.833C28.1914 102.833 29.0265 102.081 29.5148 100.94C30.0032 102.081 30.8383 102.833 31.7864 102.833C32.7345 102.833 33.5696 102.081 34.058 100.94",stroke:"#D1D1D1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M34.0576 100.94C34.546 102.081 35.381 102.833 36.3292 102.833C37.2773 102.833 38.1124 102.081 38.6008 100.94C39.0891 102.081 39.9242 102.833 40.8723 102.833C41.8205 102.833 42.6556 102.081 43.1439 100.94",stroke:"#D1D1D1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M43.144 100.94C43.6324 102.081 44.4675 102.833 45.4156 102.833C46.3638 102.833 47.1988 102.081 47.6872 100.94C48.1755 102.081 49.0106 102.833 49.9588 102.833C50.9069 102.833 51.742 102.081 52.2303 100.94",stroke:"#D1D1D1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M57.2783 102.833C58.2265 102.833 59.0615 102.081 59.5499 100.94C60.0383 102.081 60.8733 102.833 61.8215 102.833C62.7696 102.833 63.6047 102.081 64.093 100.94C64.5814 102.081 65.4165 102.833 66.3646 102.833C67.3128 102.833 68.1478 102.081 68.6362 100.94",stroke:"#D1D1D1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"})]}),t.jsxs("g",{opacity:"0.3",children:[t.jsx("rect",{x:"382.25",y:"34",width:"69.7499",height:"25.7727",rx:"12.2625",fill:"#ffffff",fillOpacity:"0.27"}),t.jsx("path",{d:"M389.614 47.8329C390.562 47.8329 391.397 47.0809 391.885 45.9399C392.374 47.0809 393.209 47.8329 394.157 47.8329C395.105 47.8329 395.94 47.0809 396.428 45.9399C396.917 47.0809 397.752 47.8329 398.7 47.8329C399.648 47.8329 400.483 47.0809 400.972 45.9399",stroke:"#D1D1D1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M400.972 45.9399C401.46 47.0809 402.295 47.8329 403.243 47.8329C404.191 47.8329 405.026 47.0809 405.515 45.9399C406.003 47.0809 406.838 47.8329 407.786 47.8329C408.735 47.8329 409.57 47.0809 410.058 45.9399",stroke:"#D1D1D1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M410.058 45.9399C410.546 47.0809 411.381 47.8329 412.329 47.8329C413.278 47.8329 414.113 47.0809 414.601 45.9399C415.089 47.0809 415.924 47.8329 416.873 47.8329C417.821 47.8329 418.656 47.0809 419.144 45.9399",stroke:"#D1D1D1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M419.144 45.9399C419.633 47.0809 420.468 47.8329 421.416 47.8329C422.364 47.8329 423.199 47.0809 423.687 45.9399C424.176 47.0809 425.011 47.8329 425.959 47.8329C426.907 47.8329 427.742 47.0809 428.231 45.9399",stroke:"#D1D1D1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M433.279 47.8329C434.227 47.8329 435.062 47.0809 435.55 45.9399C436.038 47.0809 436.874 47.8329 437.822 47.8329C438.77 47.8329 439.605 47.0809 440.093 45.9399C440.582 47.0809 441.417 47.8329 442.365 47.8329C443.313 47.8329 444.148 47.0809 444.636 45.9399",stroke:"#D1D1D1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"})]}),t.jsxs("g",{opacity:"0.3",children:[t.jsx("rect",{x:"450.25",y:"169",width:"69.7499",height:"25.7727",rx:"12.2625",fill:"#ffffff",fillOpacity:"0.27"}),t.jsx("path",{d:"M457.614 182.833C458.562 182.833 459.397 182.081 459.885 180.94C460.374 182.081 461.209 182.833 462.157 182.833C463.105 182.833 463.94 182.081 464.428 180.94C464.917 182.081 465.752 182.833 466.7 182.833C467.648 182.833 468.483 182.081 468.972 180.94",stroke:"#D1D1D1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M468.972 180.94C469.46 182.081 470.295 182.833 471.243 182.833C472.191 182.833 473.026 182.081 473.515 180.94C474.003 182.081 474.838 182.833 475.786 182.833C476.735 182.833 477.57 182.081 478.058 180.94",stroke:"#D1D1D1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M478.058 180.94C478.546 182.081 479.381 182.833 480.329 182.833C481.278 182.833 482.113 182.081 482.601 180.94C483.089 182.081 483.924 182.833 484.873 182.833C485.821 182.833 486.656 182.081 487.144 180.94",stroke:"#D1D1D1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M487.144 180.94C487.633 182.081 488.468 182.833 489.416 182.833C490.364 182.833 491.199 182.081 491.687 180.94C492.176 182.081 493.011 182.833 493.959 182.833C494.907 182.833 495.742 182.081 496.231 180.94",stroke:"#D1D1D1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M501.279 182.833C502.227 182.833 503.062 182.081 503.55 180.94C504.038 182.081 504.874 182.833 505.822 182.833C506.77 182.833 507.605 182.081 508.093 180.94C508.582 182.081 509.417 182.833 510.365 182.833C511.313 182.833 512.148 182.081 512.636 180.94",stroke:"#D1D1D1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"})]}),t.jsxs("g",{opacity:"0.3",children:[t.jsx("rect",{x:"166.25",y:"33",width:"51.5773",height:"25.7727",rx:"12.2625",fill:"#ffffff",fillOpacity:"0.27"}),t.jsx("path",{d:"M173.614 46.8329C174.562 46.8329 175.397 46.0809 175.885 44.9399C176.374 46.0809 177.209 46.8329 178.157 46.8329C179.105 46.8329 179.94 46.0809 180.428 44.9399C180.917 46.0809 181.752 46.8329 182.7 46.8329C183.648 46.8329 184.483 46.0809 184.972 44.9399",stroke:"#D1D1D1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M184.972 44.9399C185.46 46.0809 186.295 46.8329 187.243 46.8329C188.191 46.8329 189.026 46.0809 189.515 44.9399C190.003 46.0809 190.838 46.8329 191.786 46.8329C192.735 46.8329 193.57 46.0809 194.058 44.9399",stroke:"#D1D1D1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M199.106 46.8329C200.054 46.8329 200.889 46.0809 201.377 44.9399C201.866 46.0809 202.701 46.8329 203.649 46.8329C204.597 46.8329 205.432 46.0809 205.92 44.9399C206.409 46.0809 207.244 46.8329 208.192 46.8329C209.14 46.8329 209.975 46.0809 210.464 44.9399",stroke:"#D1D1D1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"})]}),t.jsxs("g",{opacity:"0.3",children:[t.jsx("rect",{x:"262.25",y:"11",width:"51.5773",height:"25.7727",rx:"12.2625",fill:"#ffffff",fillOpacity:"0.27"}),t.jsx("path",{d:"M269.614 24.8329C270.562 24.8329 271.397 24.0809 271.885 22.9399C272.374 24.0809 273.209 24.8329 274.157 24.8329C275.105 24.8329 275.94 24.0809 276.428 22.9399C276.917 24.0809 277.752 24.8329 278.7 24.8329C279.648 24.8329 280.483 24.0809 280.972 22.9399",stroke:"#D1D1D1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M280.972 22.9399C281.46 24.0809 282.295 24.8329 283.243 24.8329C284.191 24.8329 285.026 24.0809 285.515 22.9399C286.003 24.0809 286.838 24.8329 287.786 24.8329C288.735 24.8329 289.57 24.0809 290.058 22.9399",stroke:"#D1D1D1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M295.106 24.8329C296.054 24.8329 296.889 24.0809 297.377 22.9399C297.866 24.0809 298.701 24.8329 299.649 24.8329C300.597 24.8329 301.432 24.0809 301.92 22.9399C302.409 24.0809 303.244 24.8329 304.192 24.8329C305.14 24.8329 305.975 24.0809 306.464 22.9399",stroke:"#D1D1D1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"})]}),t.jsxs("g",{opacity:"0.3",children:[t.jsx("rect",{x:"291.25",y:"178",width:"51.5773",height:"25.7727",rx:"12.2625",fill:"#ffffff",fillOpacity:"0.27"}),t.jsx("path",{d:"M298.614 191.833C299.562 191.833 300.397 191.081 300.885 189.94C301.374 191.081 302.209 191.833 303.157 191.833C304.105 191.833 304.94 191.081 305.428 189.94C305.917 191.081 306.752 191.833 307.7 191.833C308.648 191.833 309.483 191.081 309.972 189.94",stroke:"#D1D1D1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M309.972 189.94C310.46 191.081 311.295 191.833 312.243 191.833C313.191 191.833 314.026 191.081 314.515 189.94C315.003 191.081 315.838 191.833 316.786 191.833C317.735 191.833 318.57 191.081 319.058 189.94",stroke:"#D1D1D1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M324.106 191.833C325.054 191.833 325.889 191.081 326.377 189.94C326.866 191.081 327.701 191.833 328.649 191.833C329.597 191.833 330.432 191.081 330.92 189.94C331.409 191.081 332.244 191.833 333.192 191.833C334.14 191.833 334.975 191.081 335.464 189.94",stroke:"#D1D1D1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"})]}),t.jsxs("g",{opacity:"0.3",children:[t.jsx("rect",{x:"53.25",y:"20",width:"51.5773",height:"25.7727",rx:"12.2625",fill:"#ffffff",fillOpacity:"0.27"}),t.jsx("path",{d:"M60.6138 33.8329C61.5619 33.8329 62.397 33.0809 62.8853 31.9399C63.3737 33.0809 64.2088 33.8329 65.1569 33.8329C66.1051 33.8329 66.9401 33.0809 67.4285 31.9399C67.9169 33.0809 68.7519 33.8329 69.7001 33.8329C70.6482 33.8329 71.4833 33.0809 71.9716 31.9399",stroke:"#D1D1D1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M71.9717 31.9399C72.46 33.0809 73.2951 33.8329 74.2432 33.8329C75.1914 33.8329 76.0265 33.0809 76.5148 31.9399C77.0032 33.0809 77.8383 33.8329 78.7864 33.8329C79.7345 33.8329 80.5696 33.0809 81.058 31.9399",stroke:"#D1D1D1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M86.1057 33.8329C87.0539 33.8329 87.8889 33.0809 88.3773 31.9399C88.8656 33.0809 89.7007 33.8329 90.6489 33.8329C91.597 33.8329 92.4321 33.0809 92.9204 31.9399C93.4088 33.0809 94.2439 33.8329 95.192 33.8329C96.1402 33.8329 96.9752 33.0809 97.4636 31.9399",stroke:"#D1D1D1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"})]}),t.jsxs("g",{opacity:"0.3",children:[t.jsx("rect",{width:"51.5773",height:"25.7727",rx:"12.2625",transform:"matrix(-1 0 0 1 366.63 45)",fill:"#ffffff",fillOpacity:"0.27"}),t.jsx("path",{d:"M359.266 58.8329C358.318 58.8329 357.483 58.0809 356.995 56.9399C356.506 58.0809 355.671 58.8329 354.723 58.8329C353.775 58.8329 352.94 58.0809 352.451 56.9399C351.963 58.0809 351.128 58.8329 350.18 58.8329C349.232 58.8329 348.397 58.0809 347.908 56.9399",stroke:"#D1D1D1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M347.908 56.9399C347.42 58.0809 346.585 58.8329 345.637 58.8329C344.688 58.8329 343.853 58.0809 343.365 56.9399C342.877 58.0809 342.042 58.8329 341.093 58.8329C340.145 58.8329 339.31 58.0809 338.822 56.9399",stroke:"#D1D1D1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M333.774 58.8329C332.826 58.8329 331.991 58.0809 331.503 56.9399C331.014 58.0809 330.179 58.8329 329.231 58.8329C328.283 58.8329 327.448 58.0809 326.959 56.9399C326.471 58.0809 325.636 58.8329 324.688 58.8329C323.74 58.8329 322.905 58.0809 322.416 56.9399",stroke:"#D1D1D1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"})]}),t.jsxs("g",{opacity:"0.3",children:[t.jsx("rect",{x:"201.25",y:"152",width:"60.6636",height:"25.7727",rx:"12.2625",fill:"#ffffff",fillOpacity:"0.27"}),t.jsx("path",{d:"M208.614 165.833C209.562 165.833 210.397 165.081 210.885 163.94C211.374 165.081 212.209 165.833 213.157 165.833C214.105 165.833 214.94 165.081 215.428 163.94C215.917 165.081 216.752 165.833 217.7 165.833C218.648 165.833 219.483 165.081 219.972 163.94",stroke:"#D1D1D1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M219.972 163.94C220.46 165.081 221.295 165.833 222.243 165.833C223.191 165.833 224.026 165.081 224.515 163.94C225.003 165.081 225.838 165.833 226.786 165.833C227.735 165.833 228.57 165.081 229.058 163.94",stroke:"#D1D1D1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M229.058 163.94C229.546 165.081 230.381 165.833 231.329 165.833C232.278 165.833 233.113 165.081 233.601 163.94C234.089 165.081 234.924 165.833 235.873 165.833C236.821 165.833 237.656 165.081 238.144 163.94",stroke:"#D1D1D1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M243.192 165.833C244.14 165.833 244.975 165.081 245.464 163.94C245.952 165.081 246.787 165.833 247.735 165.833C248.683 165.833 249.519 165.081 250.007 163.94C250.495 165.081 251.33 165.833 252.278 165.833C253.227 165.833 254.062 165.081 254.55 163.94",stroke:"#D1D1D1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"})]}),t.jsxs("g",{opacity:"0.3",children:[t.jsx("rect",{x:"94.9663",y:"96.7046",width:"60.6636",height:"25.7727",rx:"12.2625",fill:"#ffffff",fillOpacity:"0.27"}),t.jsx("path",{d:"M102.33 110.537C103.278 110.537 104.113 109.785 104.602 108.645C105.09 109.785 105.925 110.537 106.873 110.537C107.821 110.537 108.656 109.785 109.145 108.645C109.633 109.785 110.468 110.537 111.416 110.537C112.365 110.537 113.2 109.785 113.688 108.645",stroke:"#D1D1D1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M113.688 108.645C114.176 109.785 115.011 110.537 115.96 110.537C116.908 110.537 117.743 109.785 118.231 108.645C118.719 109.785 119.555 110.537 120.503 110.537C121.451 110.537 122.286 109.785 122.774 108.645",stroke:"#D1D1D1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M122.774 108.644C123.263 109.785 124.098 110.537 125.046 110.537C125.994 110.537 126.829 109.785 127.317 108.644C127.806 109.785 128.641 110.537 129.589 110.537C130.537 110.537 131.372 109.785 131.86 108.644",stroke:"#D1D1D1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M136.908 110.537C137.857 110.537 138.692 109.785 139.18 108.645C139.668 109.785 140.503 110.537 141.452 110.537C142.4 110.537 143.235 109.785 143.723 108.645C144.212 109.785 145.047 110.537 145.995 110.537C146.943 110.537 147.778 109.785 148.266 108.645",stroke:"#D1D1D1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"})]}),t.jsxs("g",{opacity:"0.3",children:[t.jsx("rect",{width:"60.6636",height:"25.7727",rx:"12.2625",transform:"matrix(-1 0 0 1 340.914 96.7046)",fill:"#ffffff",fillOpacity:"0.27"}),t.jsx("path",{d:"M333.55 110.537C332.602 110.537 331.767 109.785 331.278 108.645C330.79 109.785 329.955 110.537 329.007 110.537C328.059 110.537 327.223 109.785 326.735 108.645C326.247 109.785 325.412 110.537 324.464 110.537C323.515 110.537 322.68 109.785 322.192 108.645",stroke:"#D1D1D1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M322.192 108.645C321.704 109.785 320.868 110.537 319.92 110.537C318.972 110.537 318.137 109.785 317.649 108.645C317.16 109.785 316.325 110.537 315.377 110.537C314.429 110.537 313.594 109.785 313.106 108.645",stroke:"#D1D1D1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M313.106 108.644C312.617 109.785 311.782 110.537 310.834 110.537C309.886 110.537 309.051 109.785 308.563 108.644C308.074 109.785 307.239 110.537 306.291 110.537C305.343 110.537 304.508 109.785 304.019 108.644",stroke:"#D1D1D1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M298.971 110.537C298.023 110.537 297.188 109.785 296.7 108.645C296.212 109.785 295.376 110.537 294.428 110.537C293.48 110.537 292.645 109.785 292.157 108.645C291.668 109.785 290.833 110.537 289.885 110.537C288.937 110.537 288.102 109.785 287.614 108.645",stroke:"#D1D1D1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"})]}),t.jsxs("g",{opacity:"0.3",children:[t.jsx("rect",{x:"123.25",y:"169",width:"60.6636",height:"25.7727",rx:"12.2625",fill:"#ffffff",fillOpacity:"0.27"}),t.jsx("path",{d:"M130.614 182.833C131.562 182.833 132.397 182.081 132.885 180.94C133.374 182.081 134.209 182.833 135.157 182.833C136.105 182.833 136.94 182.081 137.428 180.94C137.917 182.081 138.752 182.833 139.7 182.833C140.648 182.833 141.483 182.081 141.972 180.94",stroke:"#D1D1D1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M141.972 180.94C142.46 182.081 143.295 182.833 144.243 182.833C145.191 182.833 146.026 182.081 146.515 180.94C147.003 182.081 147.838 182.833 148.786 182.833C149.735 182.833 150.57 182.081 151.058 180.94",stroke:"#D1D1D1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M151.058 180.94C151.546 182.081 152.381 182.833 153.329 182.833C154.278 182.833 155.113 182.081 155.601 180.94C156.089 182.081 156.924 182.833 157.873 182.833C158.821 182.833 159.656 182.081 160.144 180.94",stroke:"#D1D1D1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M165.192 182.833C166.14 182.833 166.975 182.081 167.464 180.94C167.952 182.081 168.787 182.833 169.735 182.833C170.683 182.833 171.519 182.081 172.007 180.94C172.495 182.081 173.33 182.833 174.278 182.833C175.227 182.833 176.062 182.081 176.55 180.94",stroke:"#D1D1D1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"})]}),t.jsxs("g",{opacity:"0.3",children:[t.jsx("rect",{x:"46.25",y:"139",width:"60.6636",height:"25.7727",rx:"12.2625",fill:"#ffffff",fillOpacity:"0.27"}),t.jsx("path",{d:"M53.6138 152.833C54.5619 152.833 55.397 152.081 55.8853 150.94C56.3737 152.081 57.2088 152.833 58.1569 152.833C59.1051 152.833 59.9401 152.081 60.4285 150.94C60.9169 152.081 61.7519 152.833 62.7001 152.833C63.6482 152.833 64.4833 152.081 64.9716 150.94",stroke:"#D1D1D1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M64.9717 150.94C65.46 152.081 66.2951 152.833 67.2432 152.833C68.1914 152.833 69.0265 152.081 69.5148 150.94C70.0032 152.081 70.8383 152.833 71.7864 152.833C72.7345 152.833 73.5696 152.081 74.058 150.94",stroke:"#D1D1D1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M74.0576 150.94C74.546 152.081 75.381 152.833 76.3292 152.833C77.2773 152.833 78.1124 152.081 78.6008 150.94C79.0891 152.081 79.9242 152.833 80.8723 152.833C81.8205 152.833 82.6556 152.081 83.1439 150.94",stroke:"#D1D1D1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M88.1921 152.833C89.1403 152.833 89.9754 152.081 90.4637 150.94C90.9521 152.081 91.7871 152.833 92.7353 152.833C93.6834 152.833 94.5185 152.081 95.0069 150.94C95.4952 152.081 96.3303 152.833 97.2784 152.833C98.2266 152.833 99.0617 152.081 99.55 150.94",stroke:"#D1D1D1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"})]}),t.jsxs("g",{opacity:"0.3",children:[t.jsx("rect",{width:"60.6636",height:"25.7727",rx:"12.2625",transform:"matrix(-1 0 0 1 389.63 139)",fill:"#ffffff",fillOpacity:"0.27"}),t.jsx("path",{d:"M382.266 152.833C381.318 152.833 380.483 152.081 379.995 150.94C379.506 152.081 378.671 152.833 377.723 152.833C376.775 152.833 375.94 152.081 375.451 150.94C374.963 152.081 374.128 152.833 373.18 152.833C372.232 152.833 371.397 152.081 370.908 150.94",stroke:"#D1D1D1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M370.908 150.94C370.42 152.081 369.585 152.833 368.637 152.833C367.688 152.833 366.853 152.081 366.365 150.94C365.877 152.081 365.042 152.833 364.093 152.833C363.145 152.833 362.31 152.081 361.822 150.94",stroke:"#D1D1D1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M361.822 150.94C361.334 152.081 360.499 152.833 359.55 152.833C358.602 152.833 357.767 152.081 357.279 150.94C356.791 152.081 355.955 152.833 355.007 152.833C354.059 152.833 353.224 152.081 352.736 150.94",stroke:"#D1D1D1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M347.688 152.833C346.74 152.833 345.905 152.081 345.416 150.94C344.928 152.081 344.093 152.833 343.145 152.833C342.196 152.833 341.361 152.081 340.873 150.94C340.385 152.081 339.55 152.833 338.601 152.833C337.653 152.833 336.818 152.081 336.33 150.94",stroke:"#D1D1D1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"})]}),t.jsx("g",{filter:"url(#filter0_f_248_2607)",children:t.jsx("path",{d:"M449.244 94C449.244 171.872 257.289 235 20.4998 235C-216.289 235 -408.245 171.872 -408.245 94C-408.245 16.1279 -216.289 -47 20.4998 -47C257.289 -47 449.244 16.1279 449.244 94Z",fill:"#DB7E60",fillOpacity:"0.16"})}),t.jsx("defs",{children:t.jsxs("filter",{id:"filter0_f_248_2607",x:"-617.134",y:"-255.889",width:"1275.27",height:"699.778",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[t.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),t.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),t.jsx("feGaussianBlur",{stdDeviation:"104.444",result:"effect1_foregroundBlur_248_2607"})]})})]}),t.jsxs("svg",{width:"calc(max(100%, 528px))",viewBox:"0 0 528 444",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"dark:hidden","aria-hidden":"true",children:[t.jsxs("g",{opacity:"0.3",children:[t.jsx("rect",{x:"6.25",y:"89",width:"69.7499",height:"25.7727",rx:"12.2625",fill:"#3D3D3A",fillOpacity:"0.07"}),t.jsx("path",{d:"M13.6138 102.833C14.5619 102.833 15.397 102.081 15.8853 100.94C16.3737 102.081 17.2088 102.833 18.1569 102.833C19.1051 102.833 19.9401 102.081 20.4285 100.94C20.9169 102.081 21.7519 102.833 22.7001 102.833C23.6482 102.833 24.4833 102.081 24.9716 100.94",stroke:"#A4A4A1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M24.9717 100.94C25.46 102.081 26.2951 102.833 27.2432 102.833C28.1914 102.833 29.0265 102.081 29.5148 100.94C30.0032 102.081 30.8383 102.833 31.7864 102.833C32.7345 102.833 33.5696 102.081 34.058 100.94",stroke:"#A4A4A1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M34.0576 100.94C34.546 102.081 35.381 102.833 36.3292 102.833C37.2773 102.833 38.1124 102.081 38.6008 100.94C39.0891 102.081 39.9242 102.833 40.8723 102.833C41.8205 102.833 42.6556 102.081 43.1439 100.94",stroke:"#A4A4A1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M43.144 100.94C43.6324 102.081 44.4675 102.833 45.4156 102.833C46.3638 102.833 47.1988 102.081 47.6872 100.94C48.1755 102.081 49.0106 102.833 49.9588 102.833C50.9069 102.833 51.742 102.081 52.2303 100.94",stroke:"#A4A4A1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M57.2783 102.833C58.2265 102.833 59.0615 102.081 59.5499 100.94C60.0383 102.081 60.8733 102.833 61.8215 102.833C62.7696 102.833 63.6047 102.081 64.093 100.94C64.5814 102.081 65.4165 102.833 66.3646 102.833C67.3128 102.833 68.1478 102.081 68.6362 100.94",stroke:"#A4A4A1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"})]}),t.jsxs("g",{opacity:"0.3",children:[t.jsx("rect",{x:"382.25",y:"34",width:"69.7499",height:"25.7727",rx:"12.2625",fill:"#3D3D3A",fillOpacity:"0.07"}),t.jsx("path",{d:"M389.614 47.8329C390.562 47.8329 391.397 47.0809 391.885 45.9399C392.374 47.0809 393.209 47.8329 394.157 47.8329C395.105 47.8329 395.94 47.0809 396.428 45.9399C396.917 47.0809 397.752 47.8329 398.7 47.8329C399.648 47.8329 400.483 47.0809 400.972 45.9399",stroke:"#A4A4A1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M400.972 45.9399C401.46 47.0809 402.295 47.8329 403.243 47.8329C404.191 47.8329 405.026 47.0809 405.515 45.9399C406.003 47.0809 406.838 47.8329 407.786 47.8329C408.735 47.8329 409.57 47.0809 410.058 45.9399",stroke:"#A4A4A1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M410.058 45.9399C410.546 47.0809 411.381 47.8329 412.329 47.8329C413.278 47.8329 414.113 47.0809 414.601 45.9399C415.089 47.0809 415.924 47.8329 416.873 47.8329C417.821 47.8329 418.656 47.0809 419.144 45.9399",stroke:"#A4A4A1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M419.144 45.9399C419.633 47.0809 420.468 47.8329 421.416 47.8329C422.364 47.8329 423.199 47.0809 423.687 45.9399C424.176 47.0809 425.011 47.8329 425.959 47.8329C426.907 47.8329 427.742 47.0809 428.231 45.9399",stroke:"#A4A4A1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M433.279 47.8329C434.227 47.8329 435.062 47.0809 435.55 45.9399C436.038 47.0809 436.874 47.8329 437.822 47.8329C438.77 47.8329 439.605 47.0809 440.093 45.9399C440.582 47.0809 441.417 47.8329 442.365 47.8329C443.313 47.8329 444.148 47.0809 444.636 45.9399",stroke:"#A4A4A1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"})]}),t.jsxs("g",{opacity:"0.3",children:[t.jsx("rect",{x:"450.25",y:"169",width:"69.7499",height:"25.7727",rx:"12.2625",fill:"#3D3D3A",fillOpacity:"0.07"}),t.jsx("path",{d:"M457.614 182.833C458.562 182.833 459.397 182.081 459.885 180.94C460.374 182.081 461.209 182.833 462.157 182.833C463.105 182.833 463.94 182.081 464.428 180.94C464.917 182.081 465.752 182.833 466.7 182.833C467.648 182.833 468.483 182.081 468.972 180.94",stroke:"#A4A4A1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M468.972 180.94C469.46 182.081 470.295 182.833 471.243 182.833C472.191 182.833 473.026 182.081 473.515 180.94C474.003 182.081 474.838 182.833 475.786 182.833C476.735 182.833 477.57 182.081 478.058 180.94",stroke:"#A4A4A1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M478.058 180.94C478.546 182.081 479.381 182.833 480.329 182.833C481.278 182.833 482.113 182.081 482.601 180.94C483.089 182.081 483.924 182.833 484.873 182.833C485.821 182.833 486.656 182.081 487.144 180.94",stroke:"#A4A4A1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M487.144 180.94C487.633 182.081 488.468 182.833 489.416 182.833C490.364 182.833 491.199 182.081 491.687 180.94C492.176 182.081 493.011 182.833 493.959 182.833C494.907 182.833 495.742 182.081 496.231 180.94",stroke:"#A4A4A1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M501.279 182.833C502.227 182.833 503.062 182.081 503.55 180.94C504.038 182.081 504.874 182.833 505.822 182.833C506.77 182.833 507.605 182.081 508.093 180.94C508.582 182.081 509.417 182.833 510.365 182.833C511.313 182.833 512.148 182.081 512.636 180.94",stroke:"#A4A4A1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"})]}),t.jsxs("g",{opacity:"0.3",children:[t.jsx("rect",{x:"166.25",y:"33",width:"51.5773",height:"25.7727",rx:"12.2625",fill:"#3D3D3A",fillOpacity:"0.07"}),t.jsx("path",{d:"M173.614 46.8329C174.562 46.8329 175.397 46.0809 175.885 44.9399C176.374 46.0809 177.209 46.8329 178.157 46.8329C179.105 46.8329 179.94 46.0809 180.428 44.9399C180.917 46.0809 181.752 46.8329 182.7 46.8329C183.648 46.8329 184.483 46.0809 184.972 44.9399",stroke:"#A4A4A1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M184.972 44.9399C185.46 46.0809 186.295 46.8329 187.243 46.8329C188.191 46.8329 189.026 46.0809 189.515 44.9399C190.003 46.0809 190.838 46.8329 191.786 46.8329C192.735 46.8329 193.57 46.0809 194.058 44.9399",stroke:"#A4A4A1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M199.106 46.8329C200.054 46.8329 200.889 46.0809 201.377 44.9399C201.866 46.0809 202.701 46.8329 203.649 46.8329C204.597 46.8329 205.432 46.0809 205.92 44.9399C206.409 46.0809 207.244 46.8329 208.192 46.8329C209.14 46.8329 209.975 46.0809 210.464 44.9399",stroke:"#A4A4A1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"})]}),t.jsxs("g",{opacity:"0.3",children:[t.jsx("rect",{x:"262.25",y:"11",width:"51.5773",height:"25.7727",rx:"12.2625",fill:"#3D3D3A",fillOpacity:"0.07"}),t.jsx("path",{d:"M269.614 24.8329C270.562 24.8329 271.397 24.0809 271.885 22.9399C272.374 24.0809 273.209 24.8329 274.157 24.8329C275.105 24.8329 275.94 24.0809 276.428 22.9399C276.917 24.0809 277.752 24.8329 278.7 24.8329C279.648 24.8329 280.483 24.0809 280.972 22.9399",stroke:"#A4A4A1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M280.972 22.9399C281.46 24.0809 282.295 24.8329 283.243 24.8329C284.191 24.8329 285.026 24.0809 285.515 22.9399C286.003 24.0809 286.838 24.8329 287.786 24.8329C288.735 24.8329 289.57 24.0809 290.058 22.9399",stroke:"#A4A4A1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M295.106 24.8329C296.054 24.8329 296.889 24.0809 297.377 22.9399C297.866 24.0809 298.701 24.8329 299.649 24.8329C300.597 24.8329 301.432 24.0809 301.92 22.9399C302.409 24.0809 303.244 24.8329 304.192 24.8329C305.14 24.8329 305.975 24.0809 306.464 22.9399",stroke:"#A4A4A1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"})]}),t.jsxs("g",{opacity:"0.3",children:[t.jsx("rect",{x:"291.25",y:"178",width:"51.5773",height:"25.7727",rx:"12.2625",fill:"#3D3D3A",fillOpacity:"0.07"}),t.jsx("path",{d:"M298.614 191.833C299.562 191.833 300.397 191.081 300.885 189.94C301.374 191.081 302.209 191.833 303.157 191.833C304.105 191.833 304.94 191.081 305.428 189.94C305.917 191.081 306.752 191.833 307.7 191.833C308.648 191.833 309.483 191.081 309.972 189.94",stroke:"#A4A4A1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M309.972 189.94C310.46 191.081 311.295 191.833 312.243 191.833C313.191 191.833 314.026 191.081 314.515 189.94C315.003 191.081 315.838 191.833 316.786 191.833C317.735 191.833 318.57 191.081 319.058 189.94",stroke:"#A4A4A1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M324.106 191.833C325.054 191.833 325.889 191.081 326.377 189.94C326.866 191.081 327.701 191.833 328.649 191.833C329.597 191.833 330.432 191.081 330.92 189.94C331.409 191.081 332.244 191.833 333.192 191.833C334.14 191.833 334.975 191.081 335.464 189.94",stroke:"#A4A4A1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"})]}),t.jsxs("g",{opacity:"0.3",children:[t.jsx("rect",{x:"53.25",y:"20",width:"51.5773",height:"25.7727",rx:"12.2625",fill:"#3D3D3A",fillOpacity:"0.07"}),t.jsx("path",{d:"M60.6138 33.8329C61.5619 33.8329 62.397 33.0809 62.8853 31.9399C63.3737 33.0809 64.2088 33.8329 65.1569 33.8329C66.1051 33.8329 66.9401 33.0809 67.4285 31.9399C67.9169 33.0809 68.7519 33.8329 69.7001 33.8329C70.6482 33.8329 71.4833 33.0809 71.9716 31.9399",stroke:"#A4A4A1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M71.9717 31.9399C72.46 33.0809 73.2951 33.8329 74.2432 33.8329C75.1914 33.8329 76.0265 33.0809 76.5148 31.9399C77.0032 33.0809 77.8383 33.8329 78.7864 33.8329C79.7345 33.8329 80.5696 33.0809 81.058 31.9399",stroke:"#A4A4A1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M86.1057 33.8329C87.0539 33.8329 87.8889 33.0809 88.3773 31.9399C88.8656 33.0809 89.7007 33.8329 90.6489 33.8329C91.597 33.8329 92.4321 33.0809 92.9204 31.9399C93.4088 33.0809 94.2439 33.8329 95.192 33.8329C96.1402 33.8329 96.9752 33.0809 97.4636 31.9399",stroke:"#A4A4A1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"})]}),t.jsxs("g",{opacity:"0.3",children:[t.jsx("rect",{width:"51.5773",height:"25.7727",rx:"12.2625",transform:"matrix(-1 0 0 1 366.63 45)",fill:"#3D3D3A",fillOpacity:"0.07"}),t.jsx("path",{d:"M359.266 58.8329C358.318 58.8329 357.483 58.0809 356.995 56.9399C356.506 58.0809 355.671 58.8329 354.723 58.8329C353.775 58.8329 352.94 58.0809 352.451 56.9399C351.963 58.0809 351.128 58.8329 350.18 58.8329C349.232 58.8329 348.397 58.0809 347.908 56.9399",stroke:"#A4A4A1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M347.908 56.9399C347.42 58.0809 346.585 58.8329 345.637 58.8329C344.688 58.8329 343.853 58.0809 343.365 56.9399C342.877 58.0809 342.042 58.8329 341.093 58.8329C340.145 58.8329 339.31 58.0809 338.822 56.9399",stroke:"#A4A4A1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M333.774 58.8329C332.826 58.8329 331.991 58.0809 331.503 56.9399C331.014 58.0809 330.179 58.8329 329.231 58.8329C328.283 58.8329 327.448 58.0809 326.959 56.9399C326.471 58.0809 325.636 58.8329 324.688 58.8329C323.74 58.8329 322.905 58.0809 322.416 56.9399",stroke:"#A4A4A1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"})]}),t.jsxs("g",{opacity:"0.3",children:[t.jsx("rect",{x:"201.25",y:"152",width:"60.6636",height:"25.7727",rx:"12.2625",fill:"#3D3D3A",fillOpacity:"0.07"}),t.jsx("path",{d:"M208.614 165.833C209.562 165.833 210.397 165.081 210.885 163.94C211.374 165.081 212.209 165.833 213.157 165.833C214.105 165.833 214.94 165.081 215.428 163.94C215.917 165.081 216.752 165.833 217.7 165.833C218.648 165.833 219.483 165.081 219.972 163.94",stroke:"#A4A4A1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M219.972 163.94C220.46 165.081 221.295 165.833 222.243 165.833C223.191 165.833 224.026 165.081 224.515 163.94C225.003 165.081 225.838 165.833 226.786 165.833C227.735 165.833 228.57 165.081 229.058 163.94",stroke:"#A4A4A1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M229.058 163.94C229.546 165.081 230.381 165.833 231.329 165.833C232.278 165.833 233.113 165.081 233.601 163.94C234.089 165.081 234.924 165.833 235.873 165.833C236.821 165.833 237.656 165.081 238.144 163.94",stroke:"#A4A4A1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M243.192 165.833C244.14 165.833 244.975 165.081 245.464 163.94C245.952 165.081 246.787 165.833 247.735 165.833C248.683 165.833 249.519 165.081 250.007 163.94C250.495 165.081 251.33 165.833 252.278 165.833C253.227 165.833 254.062 165.081 254.55 163.94",stroke:"#A4A4A1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"})]}),t.jsxs("g",{opacity:"0.3",children:[t.jsx("rect",{x:"94.9663",y:"96.7046",width:"60.6636",height:"25.7727",rx:"12.2625",fill:"#3D3D3A",fillOpacity:"0.07"}),t.jsx("path",{d:"M102.33 110.537C103.278 110.537 104.113 109.785 104.602 108.645C105.09 109.785 105.925 110.537 106.873 110.537C107.821 110.537 108.656 109.785 109.145 108.645C109.633 109.785 110.468 110.537 111.416 110.537C112.365 110.537 113.2 109.785 113.688 108.645",stroke:"#A4A4A1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M113.688 108.645C114.176 109.785 115.011 110.537 115.96 110.537C116.908 110.537 117.743 109.785 118.231 108.645C118.719 109.785 119.555 110.537 120.503 110.537C121.451 110.537 122.286 109.785 122.774 108.645",stroke:"#A4A4A1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M122.774 108.644C123.263 109.785 124.098 110.537 125.046 110.537C125.994 110.537 126.829 109.785 127.317 108.644C127.806 109.785 128.641 110.537 129.589 110.537C130.537 110.537 131.372 109.785 131.86 108.644",stroke:"#A4A4A1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M136.908 110.537C137.857 110.537 138.692 109.785 139.18 108.645C139.668 109.785 140.503 110.537 141.452 110.537C142.4 110.537 143.235 109.785 143.723 108.645C144.212 109.785 145.047 110.537 145.995 110.537C146.943 110.537 147.778 109.785 148.266 108.645",stroke:"#A4A4A1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"})]}),t.jsxs("g",{opacity:"0.3",children:[t.jsx("rect",{width:"60.6636",height:"25.7727",rx:"12.2625",transform:"matrix(-1 0 0 1 340.914 96.7046)",fill:"#3D3D3A",fillOpacity:"0.07"}),t.jsx("path",{d:"M333.55 110.537C332.602 110.537 331.767 109.785 331.278 108.645C330.79 109.785 329.955 110.537 329.007 110.537C328.059 110.537 327.223 109.785 326.735 108.645C326.247 109.785 325.412 110.537 324.464 110.537C323.515 110.537 322.68 109.785 322.192 108.645",stroke:"#A4A4A1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M322.192 108.645C321.704 109.785 320.868 110.537 319.92 110.537C318.972 110.537 318.137 109.785 317.649 108.645C317.16 109.785 316.325 110.537 315.377 110.537C314.429 110.537 313.594 109.785 313.106 108.645",stroke:"#A4A4A1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M313.106 108.644C312.617 109.785 311.782 110.537 310.834 110.537C309.886 110.537 309.051 109.785 308.563 108.644C308.074 109.785 307.239 110.537 306.291 110.537C305.343 110.537 304.508 109.785 304.019 108.644",stroke:"#A4A4A1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M298.971 110.537C298.023 110.537 297.188 109.785 296.7 108.645C296.212 109.785 295.376 110.537 294.428 110.537C293.48 110.537 292.645 109.785 292.157 108.645C291.668 109.785 290.833 110.537 289.885 110.537C288.937 110.537 288.102 109.785 287.614 108.645",stroke:"#A4A4A1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"})]}),t.jsxs("g",{opacity:"0.3",children:[t.jsx("rect",{x:"123.25",y:"169",width:"60.6636",height:"25.7727",rx:"12.2625",fill:"#3D3D3A",fillOpacity:"0.07"}),t.jsx("path",{d:"M130.614 182.833C131.562 182.833 132.397 182.081 132.885 180.94C133.374 182.081 134.209 182.833 135.157 182.833C136.105 182.833 136.94 182.081 137.428 180.94C137.917 182.081 138.752 182.833 139.7 182.833C140.648 182.833 141.483 182.081 141.972 180.94",stroke:"#A4A4A1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M141.972 180.94C142.46 182.081 143.295 182.833 144.243 182.833C145.191 182.833 146.026 182.081 146.515 180.94C147.003 182.081 147.838 182.833 148.786 182.833C149.735 182.833 150.57 182.081 151.058 180.94",stroke:"#A4A4A1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M151.058 180.94C151.546 182.081 152.381 182.833 153.329 182.833C154.278 182.833 155.113 182.081 155.601 180.94C156.089 182.081 156.924 182.833 157.873 182.833C158.821 182.833 159.656 182.081 160.144 180.94",stroke:"#A4A4A1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M165.192 182.833C166.14 182.833 166.975 182.081 167.464 180.94C167.952 182.081 168.787 182.833 169.735 182.833C170.683 182.833 171.519 182.081 172.007 180.94C172.495 182.081 173.33 182.833 174.278 182.833C175.227 182.833 176.062 182.081 176.55 180.94",stroke:"#A4A4A1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"})]}),t.jsxs("g",{opacity:"0.3",children:[t.jsx("rect",{x:"46.25",y:"139",width:"60.6636",height:"25.7727",rx:"12.2625",fill:"#3D3D3A",fillOpacity:"0.07"}),t.jsx("path",{d:"M53.6138 152.833C54.5619 152.833 55.397 152.081 55.8853 150.94C56.3737 152.081 57.2088 152.833 58.1569 152.833C59.1051 152.833 59.9401 152.081 60.4285 150.94C60.9169 152.081 61.7519 152.833 62.7001 152.833C63.6482 152.833 64.4833 152.081 64.9716 150.94",stroke:"#A4A4A1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M64.9717 150.94C65.46 152.081 66.2951 152.833 67.2432 152.833C68.1914 152.833 69.0265 152.081 69.5148 150.94C70.0032 152.081 70.8383 152.833 71.7864 152.833C72.7345 152.833 73.5696 152.081 74.058 150.94",stroke:"#A4A4A1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M74.0576 150.94C74.546 152.081 75.381 152.833 76.3292 152.833C77.2773 152.833 78.1124 152.081 78.6008 150.94C79.0891 152.081 79.9242 152.833 80.8723 152.833C81.8205 152.833 82.6556 152.081 83.1439 150.94",stroke:"#A4A4A1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M88.1921 152.833C89.1403 152.833 89.9754 152.081 90.4637 150.94C90.9521 152.081 91.7871 152.833 92.7353 152.833C93.6834 152.833 94.5185 152.081 95.0069 150.94C95.4952 152.081 96.3303 152.833 97.2784 152.833C98.2266 152.833 99.0617 152.081 99.55 150.94",stroke:"#A4A4A1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"})]}),t.jsxs("g",{opacity:"0.3",children:[t.jsx("rect",{width:"60.6636",height:"25.7727",rx:"12.2625",transform:"matrix(-1 0 0 1 389.63 139)",fill:"#3D3D3A",fillOpacity:"0.07"}),t.jsx("path",{d:"M382.266 152.833C381.318 152.833 380.483 152.081 379.995 150.94C379.506 152.081 378.671 152.833 377.723 152.833C376.775 152.833 375.94 152.081 375.451 150.94C374.963 152.081 374.128 152.833 373.18 152.833C372.232 152.833 371.397 152.081 370.908 150.94",stroke:"#A4A4A1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M370.908 150.94C370.42 152.081 369.585 152.833 368.637 152.833C367.688 152.833 366.853 152.081 366.365 150.94C365.877 152.081 365.042 152.833 364.093 152.833C363.145 152.833 362.31 152.081 361.822 150.94",stroke:"#A4A4A1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M361.822 150.94C361.334 152.081 360.499 152.833 359.55 152.833C358.602 152.833 357.767 152.081 357.279 150.94C356.791 152.081 355.955 152.833 355.007 152.833C354.059 152.833 353.224 152.081 352.736 150.94",stroke:"#A4A4A1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M347.688 152.833C346.74 152.833 345.905 152.081 345.416 150.94C344.928 152.081 344.093 152.833 343.145 152.833C342.196 152.833 341.361 152.081 340.873 150.94C340.385 152.081 339.55 152.833 338.601 152.833C337.653 152.833 336.818 152.081 336.33 150.94",stroke:"#A4A4A1",strokeWidth:"1.26199",strokeLinecap:"round",strokeLinejoin:"round"})]}),t.jsx("g",{filter:"url(#filter0_f_248_2607)",children:t.jsx("path",{d:"M449.244 94C449.244 171.872 257.289 235 20.4998 235C-216.289 235 -408.245 171.872 -408.245 94C-408.245 16.1279 -216.289 -47 20.4998 -47C257.289 -47 449.244 16.1279 449.244 94Z",fill:"#DB7E60",fillOpacity:"0.16"})}),t.jsx("defs",{children:t.jsxs("filter",{id:"filter0_f_248_2607",x:"-617.134",y:"-255.889",width:"1275.27",height:"699.778",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[t.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),t.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),t.jsx("feGaussianBlur",{stdDeviation:"104.444",result:"effect1_foregroundBlur_248_2607"})]})})]})]})}_Ke.displayName="SpotlightModal";const RKe="/settings/capabilities";function DKe({handleDismiss:s,handleAction:n}){const a=r(),i=Yv(),{manageFromOrg:o}=zRe(),{addSuccess:l}=ut(),c=ae(),{setPrompt:d}=re(e=>({setPrompt:e.setPrompt})),[u,m]=e.useState(!0),{mutate:p}=Fa(),f=JS(),g=!pe(),h=e.useCallback(e=>{const t=e.target.checked;c.track({event_key:"wiggle_egress_spotlight.toggle_changed",enabled:t}),m(t),p({enabled_wiggle_egress:t})},[c,p]),{toggleWiggle:C,isEnabled:x}=rS(),v=i&&o,y=e.useCallback(()=>{c.track({event_key:"wiggle_egress_spotlight.cta_clicked",is_enabled:x,is_enterprise_admin_or_owner:v,is_free_user:g}),x||(v?a.push("/admin-settings/capabilities"):(l(t.jsx(XS,{defaultMessage:"Upgraded file creation and analysis enabled.",id:"yTxSNj1cOu"})),C(!0))),d(f.formatMessage({defaultMessage:"Hey Claude, can you make me a PowerPoint about the Golden Gate Bridge?",id:"Z+YPHKtHrc"}),{forceUpdateTiptap:!0})},[l,c,f,x,v,g,a,d,C]);return e.useEffect(()=>{c.track({event_key:"wiggle_egress_spotlight.viewed",is_enabled:x,is_enterprise_admin_or_owner:v,is_free_user:g}),p({wiggle_egress_spotlight_viewed_at:(new Date).toISOString()})},[]),g?t.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-[400px_1fr] relative overflow-hidden rounded-xl",children:[t.jsxs("div",{className:"flex flex-col justify-between p-10 bg-bg-100 gap-10",children:[t.jsxs("div",{className:"flex flex-col gap-4",children:[t.jsx(vN,{variant:"accent",className:"self-start",children:t.jsx(XS,{defaultMessage:"New",id:"bW7B87wFFp"})}),t.jsx(jKe,{className:"font-ui-serif text-3xl font-medium leading-[1.3]",children:t.jsx(XS,{defaultMessage:"Create files and artifacts",id:"r0Tk+PDoaV"})}),t.jsx("h2",{className:"text-sm text-text-200",children:t.jsx(XS,{defaultMessage:"Claude can do more than answer questions. Ask it to build interactive web apps, write documents, generate spreadsheets and presentations, or create visuals in a dedicated window alongside your chat.",id:"of+LhAnQln"})}),t.jsx("p",{className:"text-sm text-text-200",children:t.jsx(XS,{defaultMessage:"It's all included on your free plan.",id:"T+0wA6BsOX"})})]}),t.jsxs("div",{className:"flex flex-col gap-4",children:[t.jsx("div",{className:"flex flex-col gap-2",children:t.jsx(kt,{variant:"primary",className:"!bg-text-100 !text-bg-100 hover:!opacity-90",onClick:()=>{n(),y()},children:t.jsx(XS,{defaultMessage:"Try it out",id:"wZ6Rtf7Xp5"})})}),t.jsx("p",{className:"text-xs text-text-400",children:t.jsx(XS,{defaultMessage:"Claude uses limited network access to install packages for file creation. Manage in <settingsLink>Settings</settingsLink> or <learnMoreLink>learn more</learnMoreLink>",id:"QK72vRfTox",values:{settingsLink:e=>t.jsx(ds,{href:RKe,children:e}),learnMoreLink:e=>t.jsx(ds,{href:"https://support.anthropic.com/en/articles/12111783-create-and-edit-files-with-claude",target:"_blank",rel:"noopener noreferrer",children:e})}})})]})]}),t.jsx("div",{className:"hidden md:flex items-center justify-center bg-bg-300",children:t.jsx("div",{className:"flex flex-col gap-4 -mr-24 py-[65px]",children:t.jsx(PKe,{})})}),t.jsx("div",{className:"absolute size-8 top-3 end-3 flex items-center justify-center",children:t.jsx(oS,{onClose:s,"aria-label":f.formatMessage({defaultMessage:"Close",id:"rbrahOGMC3"})})})]}):t.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-[480px_270px] relative",children:[t.jsxs("div",{className:"flex flex-col justify-between p-10 bg-bg-100 gap-10",children:[t.jsxs("div",{className:"flex flex-col gap-4",children:[t.jsx(jKe,{className:"font-ui-serif text-3xl font-medium leading-[1.3]",children:t.jsx(XS,{defaultMessage:"More file types on Claude",id:"l7QaC8Y1Ux"})}),t.jsx("h2",{className:"text-sm text-text-200",children:t.jsx(XS,{defaultMessage:"Claude can turn analyses into spreadsheets, ideas into presentations, and research into reports. ",id:"ygsQ4TQ9aR"})}),t.jsx(UKe,{isToggleChecked:u,onToggle:h}),t.jsx("p",{className:"text-sm text-text-200",children:t.jsx(XS,{defaultMessage:"Need more control? Go to <link>Settings</link>",id:"J+CJe1geqo",values:{link:e=>t.jsx(ds,{target:"_blank",rel:"noreferrer",href:RKe,children:e})}})})]}),t.jsx("div",{className:"flex flex-col gap-4",children:t.jsx("div",{className:"flex flex-col gap-2",children:t.jsx(kt,{onClick:()=>{n(),y()},children:t.jsx(XS,{defaultMessage:"Try it out",id:"wZ6Rtf7Xp5"})})})})]}),t.jsx("div",{className:"hidden md:flex items-center justify-center ",style:{background:"#F5F4ED"},children:t.jsx("div",{className:"flex flex-col gap-4 -mr-24 py-[65px]",children:t.jsx(PKe,{})})}),t.jsx("div",{className:"absolute size-8 top-3 end-3 flex items-center justify-center",children:t.jsx(oS,{onClose:s,"aria-label":f.formatMessage({defaultMessage:"Close",id:"rbrahOGMC3"})})})]})}function HKe(){return t.jsx(hKe,{spotlight:fKe.WIGGLE_EGRESS,autoCloseOnFocusOut:!0,modalClassName:"!p-0 !max-w-[750px]",render:({handleDismiss:e,handleAction:s})=>t.jsx(DKe,{handleDismiss:e,handleAction:s})})}function PKe(){const e=Wn(),s="!w-80 shadow-[0_4px_20px_0_rgba(0,0,0,0.04)] bg-bg-100 hover:bg-bg-100 hover:border-border-300",n="!py-3.5 !gap-0";return t.jsxs(t.Fragment,{children:[t.jsx(Dg,{icon:t.jsx(CU,{size:20,className:"text-text-500"}),properties:{id:"spreadsheet",title:"Pricing Analysis"},displayType:"Spreadsheet \xb7 XLSX",actions:t.jsx("div",{}),className:s,textContainerClassName:n}),t.jsx(Dg,{icon:e?t.jsx(CU,{size:20,className:"text-text-500"}):t.jsx(aU,{size:20,className:"text-text-500"}),properties:{id:"document",title:e?"Aggregated Sales Data":"Market Research"},displayType:e?"Table \xb7 CSV":"Document \xb7 PDF",actions:t.jsx("div",{}),className:s,textContainerClassName:n}),t.jsx(Dg,{icon:t.jsx(hU,{size:20,className:"text-text-500"}),properties:{id:"ppt",title:"Weekly Metrics Review"},displayType:"Presentation \xb7 PPTX",actions:t.jsx("div",{}),className:s,textContainerClassName:n}),t.jsx(Dg,{icon:t.jsx(aU,{size:20,className:"text-text-500"}),properties:{id:"spreadsheet",title:"Food Truck Business Plan"},displayType:"Document \xb7 DOCX",actions:t.jsx("div",{}),className:s,textContainerClassName:n})]})}function UKe({isToggleChecked:e,onToggle:s}){return t.jsxs("div",{className:"w-full flex flex-col p-4 gap-3 rounded-xl border-0.5 border-border-400 bg-bg-000 shadow-[0_1px_2px_0_hsl(var(--always-black)/5%)]",children:[t.jsxs("div",{className:"flex items-center gap-1 justify-between",children:[t.jsxs("div",{className:"flex flex-col gap-1",children:[t.jsx("h3",{className:"text-sm font-medium text-text-100",children:t.jsx(XS,{defaultMessage:"Allow limited network access",id:"zSECrBjzgv"})}),t.jsx("p",{className:"text-text-100 text-xs",children:t.jsx(XS,{defaultMessage:"Gives Claude access to allowed external data sources. Monitor closely as it <link>increases security risks</link>.",id:"FR7sb9ivYT",values:{link:e=>t.jsx(ds,{href:"https://support.anthropic.com/en/articles/12111783-create-and-edit-files-with-claude",target:"_blank",rel:"noopener noreferrer",children:e})}})})]}),t.jsx("label",{children:t.jsx(lS,{checked:e,variant:"dark",onChange:s,children:e?t.jsx(Hu,{size:14,className:"text-text-100 dark:text-bg-500"}):t.jsx(Yt,{size:14,className:"text-text-400 dark:text-bg-500"})})})]}),t.jsx("div",{className:"w-full h-[0.5px] bg-border-300"}),t.jsxs("div",{className:"flex flex-col gap-1",children:[t.jsx("h4",{className:"text-xs font-semibold text-text-100",children:t.jsx(XS,{defaultMessage:"What can Claude do with limited network access?",id:"K6+iust54T"})}),t.jsx("p",{className:"text-text-100 text-xs",children:t.jsx(XS,{defaultMessage:"Claude installs packages and libraries to perform advanced data analysis, custom visualizations, and specialized file processing. Allowed domains can be managed in <link>Settings</link>.",id:"bPY0siM1l3",values:{link:e=>t.jsx(ds,{href:RKe,target:"_blank",rel:"noopener noreferrer",children:e})}})})]})]})}function OKe(){const{shouldShowGroveModal:e}=pKe(),s=function(){const e=Mt(),s=cS(),n=dS(),a=nn(),i=e.get("spotlight");return i?"memory"!==i||!s||n||a?"wiggle_egress"===i?t.jsx(HKe,{}):null:t.jsx(LKe,{}):null}();return e?null:s||null}function FKe(t){const s=t?.projectUuid,n=vRe(),a=Qx(),{activeOrganization:i}=v(),r=i?.uuid,o=e.useRef(!1),l=e.useRef("");e.useEffect(()=>{if(!n)return;o.current=!1,l.current="",Tue.setPendingNavigation(!0);const e=Vg.subscribe((e,t)=>{if(e.interimTranscript&&e.interimTranscript!==t.interimTranscript&&(l.current=e.interimTranscript),e.navigationReady&&!t.navigationReady&&!o.current&&Tue.isActive()&&l.current){const t=Tue.getConversationUuid();o.current=!0,Vg.getState().setInterimTranscript(""),s&&uS(s);const n=l.current||e.interimTranscript||"",i=crypto.randomUUID();Tue.holdEvents(n,i),a({prompt:n,attachments:[],files:[],syncSources:[],voice_mode_active:!0,conversationUuidOverride:t??void 0,userMessageUuidOverride:i,project_uuid:s,model:Vg.getState().model??void 0}),s&&r&&t&&fetch(`/api/organizations/${r}/chat_conversations/${t}?rendering_mode=raw`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({project_uuid:s})}).catch(e=>{k.error(w.VOICE_MODE,"voice_project_uuid_put_failed",{err:e,conversationUuid:t,projectUuid:s})})}});return()=>{e(),Tue.setPendingNavigation(!1)}},[n,a,s,r])}function VKe(){const e=m(),t=ra(),s=Wa();if(!e)return{isTargeted:!1};if(t.loading||"loading"===s.state)return{isTargeted:!1,isLoading:!0};if("ready"!==s.state)return{isTargeted:!1};return s.result.status===$a.Ready&&!!s.result.version?.endsWith("1.1.4173")?t.considerEnabledForNonUI?{isTargeted:!1}:{isTargeted:!0}:{isTargeted:!1}}function zKe({handleAction:e}){const s=JS();return t.jsxs("div",{className:"flex flex-col p-6",children:[t.jsx("div",{className:"flex justify-end",children:t.jsx(lN.CloseButton,{"aria-label":s.formatMessage({defaultMessage:"Close",id:"rbrahOGMC3"})})}),t.jsxs("div",{className:"flex flex-col items-center text-center px-4 pb-4",children:[t.jsx($L,{name:"Warning",size:"xxl",className:"mb-4 text-danger-100"}),t.jsx(jKe,{className:"font-heading mb-3",children:t.jsx(XS,{defaultMessage:"Update required",id:"G2s8Qo753T"})}),t.jsx("p",{className:"font-base text-text-300 mb-6 max-w-md",children:t.jsx(XS,{defaultMessage:"A pending update for the Claude desktop app has a known issue that may cause crashes. Download the latest version instead.",id:"J6H1cmpYwA"})}),t.jsx(rN,{variant:"primary",className:"font-base-bold w-full max-w-xs",onClick:async()=>{mS({href:"https://claude.ai/download",desktopBehavior:"open-in-browser"}),await e()},children:t.jsx(XS,{defaultMessage:"Download update",id:"lOl4EKB6Wt"})})]})]})}const ZKe=e.memo(({onDismiss:e,onAction:s})=>t.jsx(_Ke,{onDismiss:e,onAction:s,modalSize:"md",render:({handleDismiss:e,handleAction:s})=>t.jsx(zKe,{handleDismiss:e,handleAction:s})}));function BKe(){}ZKe.displayName="CoworkRedownloadSpotlight";const qKe=e.memo(()=>VKe().isTargeted?t.jsx(ZKe,{onDismiss:BKe,onAction:BKe}):null);qKe.displayName="StandaloneCoworkRedownloadSpotlight";const WKe=Object.freeze(Object.defineProperty({__proto__:null,CoworkRedownloadSpotlight:ZKe,StandaloneCoworkRedownloadSpotlight:qKe},Symbol.toStringTag,{value:"Module"})),$Ke="chalk-teacher-context";function GKe(e){const{activeOrganization:t}=v(),s=t?.uuid,n=gL();return b(`/api/organizations/${s??""}/chalk/onboarding`,"POST",{enabled:!!s,...e,onMutate:async t=>({targetOrgUuid:s,callerContext:await(e?.onMutate?.(t))}),onError:(t,s,n)=>{e?.onError?.(t,s,n?.callerContext)},onSettled:(t,s,n,a)=>{e?.onSettled?.(t,s,n,a?.callerContext)},onSuccess:(t,a,i)=>{const{targetOrgUuid:r,callerContext:o}=i,l=[$Ke,r??s],c=n.getQueryData(l);c&&t.memory_seeded?n.setQueryData(l,{...c,onboarded:!0,grades:a.grades,subjects:a.subjects,current_unit:a.current_unit,lesson_objectives:a.lesson_objectives,state:a.state??c.state,subject_grades:a.subject_grades,context_updated_at:t.context_updated_at,onboarding_status:"completed",status_updated_at:t.context_updated_at}):n.invalidateQueries({queryKey:l}),e?.onSuccess?.(t,a,o)}})}function KKe(e){const{activeOrganization:t}=v(),s=t?.uuid,n=Hj("chalk_teacher"),a=Hj("chalk_org"),i=Hj("raven"),{isChalkSoloTeamOrg:r}=Pk();return B(`/api/organizations/${s??""}/chalk/onboarding`,{queryKey:[$Ke,s],enabled:e&&(a||n&&!i||r)&&!!s,meta:{noToast:!0},retry:!1,retryOnMount:!1,refetchOnReconnect:!1})}function YKe(e){const{activeOrganization:t}=v(),s=t?.uuid;return b(`/api/organizations/${s??""}/chalk/learning_commons/accept`,"POST",{enabled:!!s,...e,onMutate:async t=>({targetOrgUuid:s,callerContext:await(e?.onMutate?.(t))}),onError:(t,s,n)=>{e?.onError?.(t,s,n?.callerContext)},onSettled:(t,s,n,a)=>{e?.onSettled?.(t,s,n,a?.callerContext)},onSuccess:(t,s,n)=>{e?.onSuccess?.(t,s,n?.callerContext)}})}function QKe(){const{activeOrganization:e}=v(),t=e?.uuid,s=gL();return b(`/api/organizations/${t??""}/chalk/onboarding/dismiss`,"POST",{enabled:!!t,meta:{noToast:!0},onMutate:async()=>{const e=[$Ke,t];await s.cancelQueries({queryKey:e});const n=s.getQueryData(e);return n&&"completed"!==n.onboarding_status&&!0!==n.onboarded&&s.setQueryData(e,{...n,onboarding_status:"dismissed"}),{targetOrgUuid:t}},onSuccess:(e,n,a)=>{const{targetOrgUuid:i}=a,r=[$Ke,i??t],o=s.getQueryData(r),l="dismissed"===e.onboarding_status&&!!o&&("completed"===o.onboarding_status||!0===o.onboarded);o&&!l&&s.setQueryData(r,{...o,onboarding_status:e.onboarding_status,status_updated_at:e.status_updated_at})}})}const JKe="chalkOnboardingLastSeen",XKe="v1";function eYe(){pS(JKe,XKe)}function tYe(){const t=o(),s=Hj("chalk_teacher"),n=Hj("chalk_org"),a=Hj("raven"),{isChalkSoloTeamOrg:i}=Pk({enabled:a&&s&&!n}),r=Cs("proj-chalk-onboarding-modal"),{shouldShowGroveModal:l}=pKe(),[c,d]=xs(JKe,"never"),u=e.useCallback(()=>{d(XKe)},[d]),m="/new"===t&&r&&(n||s&&!a||i)&&!l,p=KKe(m),f=p.data,g=void 0===f||!1===f.memory_available?void 0:!0===f.onboarded?"completed":f.onboarding_status,{dataUpdatedAt:h}=p,C=e.useRef(void 0);e.useEffect(()=>{h!==C.current&&("completed"!==g&&"dismissed"!==g||c===XKe?"pending"===g&&c===XKe&&d("never"):d(XKe),C.current=h)},[g,c,d,h]);return[m&&c!==XKe&&!p.isPending&&"completed"!==g&&"dismissed"!==g&&!1!==f?.memory_available,u]}function sYe(){const t=m({platform:"mac"}),[s,n]=e.useState(!1),[a,i]=e.useState(1);e.useEffect(()=>{if(t&&fS?.onFullscreenChanged&&fS.getFullscreen)return fS.getFullscreen().then(n),fS.onFullscreenChanged(n)},[t]),e.useEffect(()=>{if(t&&fS?.onZoomFactorChanged&&fS.getZoomFactor)return fS.getZoomFactor().then(i),fS.onZoomFactorChanged(i)},[t]);const r=t&&!s;return{needsTrafficLightPadding:r,isFullscreen:s,trafficLightSpacerWidth:r?Math.round(74/Math.min(a,1)):0}}const nYe={billing:{ResumeModal:fn(()=>a(()=>import("./c2ee0272b-JnEwScjV.js").then(e=>e.a),__vite__mapDeps([0,1]),import.meta.url).then(e=>e?.ResumeModal??(()=>null)),{}),UnpauseModal:fn(()=>a(()=>import("./c2591c98b-Cp3QBHZY.js").then(e=>e.a),__vite__mapDeps([0,1]),import.meta.url).then(e=>e?.UnpauseModal??(()=>null)),{}),TrialEndedModal:fn(()=>a(()=>Promise.resolve().then(()=>sXe),void 0,import.meta.url).then(e=>e?.TrialEndedModal??(()=>null)),{})},onboarding:{ChalkOnboardingModal:fn(()=>a(()=>import("./c16d86186-CznxpM4-.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(e=>e?.ChalkOnboardingModal??(()=>null)),{}),CoworkDownloadIntentModal:fn(()=>a(()=>import("./cf8b75fc3-Bls3eu7n.js").then(e=>e.C),__vite__mapDeps([0,1]),import.meta.url).then(e=>e?.CoworkDownloadIntentModal??(()=>null)),{})}};function aYe(){const{temporaryConversationUuid:e,incognitoModeEnabled:s}=Va(),[n,a]=tYe();return e&&s?null:n?t.jsx(nYe.onboarding.ChalkOnboardingModal,{onClose:a}):null}const iYe=["sun","mon","tue","wed","thu","fri","sat"],rYe=AL({until:EL().int(),text:IL()}),oYe=NL(AL({surface:IL(),days:NL(AL({day:IL(),slots:NL(rYe)})).nullish(),default_slots:NL(rYe)}));function lYe({incognito:e=!1}){const t=JS(),{data:s}=gS(),n=Il(()=>new Date,null);return null===n?"":e?t.formatMessage({defaultMessage:"You\u2019re incognito",id:"MQrAwjjefp",description:"A greeting for the user \u2014 please try to find an idiomatic greeting that would sound natural to a native speaker. This greeting should be appropriate in the evening"}):s?function(e,t,s){const n=oYe.safeParse(e);if(!n.success)return;const a=n.data.find(e=>e.surface===t),i=a?.days?.find(e=>e.day===iYe[s.getDay()]),r=i?i.slots:a?.default_slots;return r?.find(e=>s.getHours()<e.until)?.text||void 0}(s.personalized_greeting,"chat",n)||t.formatMessage({defaultMessage:"How can I help you today?",id:"XLcM6WHfQR"}):""}const cYe="mx-auto flex w-full flex-col items-center gap-7 max-md:pt-4 max-w-2xl",dYe={lineHeight:1.5},uYe={...dYe,fontSize:"clamp(1.875rem, 1.2rem + 2vw, 2.5rem)"},mYe="h-8";function pYe({text:s,isAgentRoute:n}){const[a,i]=e.useState(s),[r,o]=e.useState(0);return s!==a&&(i(s),a&&o(e=>e+1)),t.jsx("div",{className:"w-full flex justify-center",children:t.jsxs("div",{className:dt("text-text-200 flex items-center gap-3",n?"font-heading h-[65px] flex items-end justify-center":"font-display",!s&&"invisible",r>0&&"animate-[greeting-fade-in_350ms_ease-in-out] motion-reduce:animate-none"),style:n?dYe:uYe,children:[!n&&t.jsx("div",{className:"flex-shrink-0 [&>div]:flex",children:t.jsx(H9,{state:"static",className:"w-8"})}),t.jsx("span",{className:"whitespace-nowrap select-none",children:s||"\u200b"})]},r)})}function fYe(){return t.jsxs("div",{className:cYe,children:[t.jsx("div",{className:mYe}),t.jsx("div",{className:"flex items-center gap-3",style:uYe,children:t.jsx("span",{className:"invisible select-none",children:"\u200b"})})]})}function gYe({incognitoModeEnabled:e,planBadge:s}){const n=Me(),a=lYe({incognito:e});return t.jsxs("div",{className:cYe,children:[s??t.jsx("div",{className:mYe}),t.jsx(pYe,{text:a,isAgentRoute:!!n})]})}const hYe=yS,CYe=hYe?fn(()=>hYe().then(e=>e.ChorusNewPage),{}):null,xYe=BWe(()=>a(()=>import("./c29bb5332-CkoqQQpg.js"),__vite__mapDeps([0,1,2]),import.meta.url),"HomeBannerPlacement"),vYe=BWe(()=>a(()=>import("./cf72774a7-CWr4RLXd.js"),__vite__mapDeps([0,1,2]),import.meta.url),"HomeSpotlightPlacement");function yYe(){const{setPrompt:t}=re(e=>({setPrompt:e.setPrompt})),s=Nw(e=>e.initialMessage),n=Nw(e=>e.autoSubmitInitialMessage),a=Nw(e=>e.iframeModel),i=Nw(e=>e.setInitialMessage),r=Nw(e=>e.isInIframe),o=Qx(),l=e.useRef(!1);return e.useEffect(()=>{if(r&&s&&!l.current){l.current=!0;const e=s,r=n;i(null),r?o({prompt:e,model:a??"claude-opus-4-6",attachments:[],files:[],syncSources:[]}):t(e,{forceUpdateTiptap:!0})}},[r,s,n,a,i,t,o]),null}function bYe(){const{temporaryConversationUuid:s,incognitoModeEnabled:n}=Va(),a=ze("claudeai_heli_status","enabled",!1,L);rHe();const{activeOrganization:i,isLoading:l}=v(),[c]=Et();FKe();const d=bS(),f=OP(d),g=r(),h=function(e){const t=o(),s=Mt(),n=Vb(),a=m(),[i,r]=xs(kS,"chat"),l=ra().considerEnabledForNonUI,{isLoading:c}=wS(),d=p(),f=u(),{isEligible:g,markApplied:h}=MS();if(e)return!1;if(n)return!1;if(s.has("mode")||s.has("incognito")||s.has("directory-open")||RP(t))return!1;const C=s.toString(),x=C?`?${C}`:"";return void 0!==f&&(g?!c&&(h(),r("task"),Lu?.setPreference?.("sidebarMode","task"),`/task/new${x}`):"task"===i&&l&&a?`/task/new${x}`:!("code"!==i||!d)&&`/epitaxy${x}`)}(d);e.useEffect(()=>{h&&!d&&g.replace(h)},[h,d,g]);const C=Mt(),x=C?.get("q");return"string"==typeof x&&Qj(x),e.useCallback(t=>{e.startTransition(()=>{g.replace(`/chat/${t}`)})},[g]),d&&CYe?l||i||ib()?t.jsxs(t.Fragment,{children:[t.jsx(CYe,{}),t.jsx(aYe,{}),t.jsx(kYe,{hideToggleWhenInactive:!0})]}):t.jsx(JWe,{to:"/org-discovery"}):"redirecting"===f||!1!==h?null:t.jsxs(t.Fragment,{children:[t.jsx(FFe,{organizationUuid:i?.uuid??"",conversationUuid:c,shouldFlushOnMount:!1,children:s&&n?t.jsx(zWe,{uuid:s,q:void 0}):t.jsxs("div",{className:"flex h-full flex-col",children:[t.jsx(hOe,{}),t.jsx("div",{className:"min-h-0 flex-1",children:t.jsx(wYe,{heliGated:a})})]})}),t.jsx(kYe,{})]})}function kYe({hideToggleWhenInactive:e=!1}={}){const{incognitoModeEnabled:s}=Va(),n=hS(),{needsTrafficLightPadding:a}=sYe(),i=(XBe()?1:0)+(GBe()?1:0),r=Me(),o=VM(),l=Vb(),c=uN(),d=mN(TN),u=!r&&(!o||l&&!s)&&n&&(!e||s);return t.jsxs(nA,{children:[n&&s&&t.jsx(sA.div,{className:"pointer-events-none fixed inset-[50px_8px_8px_8px] rounded-2xl shadow-[0_0_0_100px_hsl(var(--text-000))] z-header",style:c?{zIndex:d}:void 0,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2}},"frame"),n&&s&&!o&&t.jsxs(sA.div,{className:dt("fixed left-0 right-0 z-header flex items-center gap-2 text-bg-000 py-1.5 pr-2 draggable",a?"pl-24":"pl-5"),style:c?{zIndex:d}:void 0,initial:{opacity:0,top:0},animate:{opacity:1,top:10},exit:{opacity:0,top:0},transition:{duration:.15},children:[t.jsx(wU,{}),t.jsx("span",{className:"text-sm select-none",children:t.jsx(XS,{defaultMessage:"Incognito chat",id:"MZWV60Fq3N"})})]},"header"),t.jsx("div",{className:"fixed z-header draggable-none flex items-center gap-3.5 right-3",style:{top:s?"0.625rem":i?`calc(${i} * ${oP} + var(--app-install-banner-height, 0px) + var(--desktop-org-banner-height, 0px) + var(--stale-session-redirect-guard-height, 0px) + 0.625rem)`:"calc(var(--app-install-banner-height, 0px) + var(--desktop-org-banner-height, 0px) + var(--stale-session-redirect-guard-height, 0px) + 0.625rem)",...c?{zIndex:d}:void 0},children:u&&t.jsx(_Ye,{})})]})}function wYe({heliGated:s}){const n=o(),a=function(){const[e]=qa(L$e,!1),t=m(Vj),s=m(zj);return!t||s&&Lu||!e?null:"/desktop/tutorial"}(),i=m(),r=m(Ff),l=VM(),[c,d]=tYe(),{isLoading:u,activeOrganization:p}=v(),f=as(),{setTemporaryConversationUuid:g,incognitoModeEnabled:h,setIncognitoModeEnabled:C,temporaryConversationUuid:x}=Va(),{markEditorReady:b}=Ih(),{shouldShowGroveModal:k}=pKe(),w=lFe(),M=w?.isOpen??!1,_=Me(),j=ra(),S=B5(),L=_&&j.considerEnabledForNonUI&&!S,N=_S(),I=$v(),T=y("cai_voice_dictation_parity")&&I,A=Qx({setTemporaryConversationUuid:g}),[E]=Et();return e.useEffect(()=>{if(!h||x)return;const e=e=>{"Escape"===e.key&&(e.preventDefault(),C(!1))};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[h,x,C]),a&&!RP(n)?t.jsx(JWe,{to:a}):u||p?t.jsxs(GTe,{className:"h-full !mt-0 flex flex-col items-center gap-8 md:px-14 3xl:px-20 pt-[10vh] md:pt-[20vh] max-sm:!px-1 relative",children:[r&&!l&&t.jsx(HM,{fixed:!0}),t.jsx(LFe,{dismissible:!1,surface:"homepage_pill_header",className:dt("absolute inset-x-0",r&&!l?"top-[52px]":"top-0")}),c&&t.jsx(nYe.onboarding.ChalkOnboardingModal,{onClose:d}),i&&t.jsx(nYe.onboarding.CoworkDownloadIntentModal,{}),t.jsx(XWe,{}),t.jsx(xYe,{}),t.jsx("div",{className:dt("transition-opacity duration-300",T&&"opacity-0 pointer-events-none"),inert:T,"aria-hidden":T,children:t.jsx(AGe,{fallback:t.jsx(fYe,{}),children:t.jsx(gYe,{incognitoModeEnabled:h,planBadge:t.jsx(MYe,{})})})}),t.jsxs(ej,{willRedirectOnSubmit:!0,onCreate:A,newConversationUuid:E,draftStorageKey:jS,children:[t.jsx(TGe,{}),t.jsx(yYe,{}),t.jsxs(sA.div,{exit:{opacity:0},transition:{duration:.1},className:"top-5 z-10 mx-auto w-full max-w-2xl",children:[t.jsx(DGe,{}),t.jsxs("div",{className:L?"opacity-40 pointer-events-none":"",children:[t.jsx("div",{className:"mx-auto",children:t.jsx(pPe,{placement:"onpage",onReady:b,enableScreenDrop:!M})}),t.jsx(AGe,{children:t.jsx(jYe,{incognitoModeEnabled:h,saffronThemesEnabled:N})})]})]}),!T&&t.jsxs(t.Fragment,{children:[t.jsxs(AGe,{children:[t.jsx(OKe,{}),t.jsx(vYe,{}),t.jsx(qKe,{}),s&&!k&&t.jsx(IYe,{incognitoModeEnabled:h}),t.jsx(DYe,{})]}),t.jsx(AGe,{children:t.jsx("div",{className:"mx-auto w-full max-w-2xl px-1 md:px-2",children:t.jsx(oGe,{children:t.jsx(mKe,{children:f&&t.jsx(SS,{})})})})})]})]})]}):ib()?null:t.jsx(JWe,{to:"/org-discovery"})}function MYe(){const s=JS(),n=ae(),{activeOrganization:a,isLoading:i}=v(),r=xe(),o=qn(),l=Wn(),c=Jv(),d=!o&&!r&&!l,u=r&&!!a?.name,{isExpanded:m}=LS(),p=Vb(),f=NS(),g=p?!f:m,[h,C]=e.useState(!1),[x,y]=e.useState(!1),b=wFe(),k=b?"/upgrade?initialPlanType=team":"/upgrade",{data:w}=sr({enabled:(o||l)&&!c,cached:!0}),{data:M}=IS({enabled:(o||d)&&!c}),{data:_}=TS({enabled:d}),j="trialing"!==w?.status&&!!w?.plan_ending_before,S=j?uL(w):null,L=null!==S?Math.ceil(S.diff(GS.now(),"days").days):null,N=j&&null!==L&&L<=30,I=o&&"trialing"===w?.status&&!j,T=!!w?.payment_method,A=w?.trial_end_ts?Math.max(0,Math.ceil(GS.fromSeconds(w.trial_end_ts).diff(GS.now(),"days").days)):null,E=I&&T&&null!==A&&A<=7,R=I&&!T&&null!==A&&A<=7,D=r&&!N&&!I,H=d&&!N&&!I,P=!!M?.trial_end_requires_action,U=(o||l)&&w?.manual_pause_scheduled_at,O=U&&w?.manual_pause_scheduled_at?Math.ceil(GS.fromSeconds(w.manual_pause_scheduled_at).diff(GS.now(),"days").days):null,F=d&&_?.manual_pause_scheduled_at&&GS.fromSeconds(_.manual_pause_scheduled_at)<=GS.now()&&_?.payment_paused_until&&GS.fromSeconds(_.payment_paused_until)>GS.now(),V=(()=>{if(i)return null;if(N){const e=Math.max(0,L);return t.jsxs(t.Fragment,{children:[t.jsx(XS,{defaultMessage:"{days, select, 0 {Your plan ends today} 1 {Your plan ends tomorrow} other {Your plan ends in {days} days}}",id:"AUBXqxfjde",values:{days:e}}),t.jsx("div",{className:"size-[3px] bg-text-500/30 rounded-full mt-0.5"}),t.jsx(ds,{onClick:()=>C(!0),children:t.jsx(XS,{defaultMessage:"Resubscribe",id:"+J3ndTpec1"})})]})}if(U&&null!==O){const e=Math.max(0,O);return t.jsxs(t.Fragment,{children:[t.jsx(XS,{defaultMessage:"{days, select, 0 {Plan will pause today} 1 {Plan will pause tomorrow} other {Plan will pause in {days} days}}",id:"NcczbGGIvo",values:{days:e}}),t.jsx("div",{className:"size-[3px] bg-text-500/30 rounded-full mt-0.5"}),t.jsx(ds,{onClick:()=>y(!0),children:t.jsx(XS,{defaultMessage:"Cancel",id:"47FYwba+bI"})})]})}if(F){const e=_.plan_type?.includes("max")?s.formatMessage({defaultMessage:"Max plan paused",id:"9hjwHaB5PG"}):s.formatMessage({defaultMessage:"Pro plan paused",id:"u086f6Uoqp"});return t.jsxs(t.Fragment,{children:[e,t.jsx("div",{className:"size-[3px] bg-text-500/30 rounded-full mt-0.5"}),t.jsx(ds,{onClick:()=>y(!0),children:t.jsx(XS,{defaultMessage:"Resume",id:"3y9DGgura7"})})]})}return E?t.jsxs(t.Fragment,{children:[0===A?t.jsx(XS,{defaultMessage:"Pro trial ends today",id:"d8e8oHn+vT"}):t.jsx(XS,{defaultMessage:"{days, plural, one {# day} other {# days}} left in your Pro trial",id:"EzXcdcs6cZ",values:{days:A}}),t.jsx("div",{className:"size-[3px] bg-text-500/30 rounded-full mt-0.5"}),t.jsx(ds,{href:"/upgrade",children:t.jsx(XS,{defaultMessage:"See what's included",id:"9me4Da2SKC"})})]}):R?t.jsxs(t.Fragment,{children:[0===A?t.jsx(XS,{defaultMessage:"Pro trial ends today",id:"d8e8oHn+vT"}):t.jsx(XS,{defaultMessage:"{days, plural, one {# day} other {# days}} of Pro left",id:"R5wFLmtp3U",values:{days:A}}),t.jsx("div",{className:"size-[3px] bg-text-500/30 rounded-full mt-0.5"}),t.jsx(ds,{href:"/upgrade",children:t.jsx(XS,{defaultMessage:"Upgrade",id:"0h/lPMeYkq"})})]}):D?g?null:t.jsx(t.Fragment,{children:u?t.jsxs(t.Fragment,{children:[a?.has_icon?t.jsx(UGe,{organization:a,size:"sm",className:"shadow-sm"}):t.jsx(qS,{size:20,className:"-mx-0.5"}),a.name]}):t.jsx(XS,{defaultMessage:"Team plan",id:"idguOo+PzU"})}):H?t.jsxs(t.Fragment,{children:[t.jsx(XS,{defaultMessage:"Free plan",id:"B+7815cfpz"}),t.jsx("div",{className:"size-[3px] bg-text-500/30 rounded-full mt-0.5"}),t.jsx("span",{onClick:()=>{n.track({event_key:"claudeai.team_trial.cta_clicked",surface:"homepage_pill",pill_variant:b?"try_team_free":"upgrade",trial_badge_shown:b})},children:t.jsx(ds,{href:k,children:b?t.jsx(XS,{defaultMessage:"Try Team for free",id:"24Nw5R8Sxv"}):t.jsx(XS,{defaultMessage:"Upgrade",id:"0h/lPMeYkq"})})})]}):null})(),z=H&&!F;return t.jsxs(t.Fragment,{children:[t.jsx("div",{className:dt(`ml-0.5 inline-flex items-center gap-1.5 rounded-lg ${mYe} pl-2 pr-2.5 text-center font-small sm:font-base text-text-500 select-none transition-opacity duration-150 bg-bg-300`,(!V||z)&&"opacity-0"),children:!z&&V}),N&&t.jsx(nYe.billing.ResumeModal,{resumeDate:mL(w)||void 0,isOpen:h,onClose:()=>C(!1),source:"new_page"}),t.jsx(nYe.billing.TrialEndedModal,{isOpen:P}),x&&t.jsx(nYe.billing.UnpauseModal,{isOpen:x,onClose:()=>y(!1),onSuccess:()=>{y(!1)}})]})}function _Ye(){const s=e.useRef(null),n=JS(),{setIncognitoModeEnabled:a,incognitoModeEnabled:i}=Va(),r=hS(),{shortcutString:o}=Pv("incognito"),l=g(),c=Vb(),d=Fj();return l||!r||c&&d?null:t.jsx("div",{children:t.jsx(iN,{hoverable:!1,side:"left",shortcut:o,content:i?t.jsx(XS,{defaultMessage:"Exit incognito",id:"ItG+wlzX/s"}):t.jsx(XS,{defaultMessage:"Use incognito",id:"pqm79EjAWY"}),children:t.jsx("div",{ref:s,children:t.jsx(kt,{variant:"ghost",size:"icon_sm","aria-label":i?n.formatMessage({defaultMessage:"Exit incognito",id:"ItG+wlzX/s"}):n.formatMessage({defaultMessage:"Use incognito",id:"pqm79EjAWY"}),className:"group",style:i?{"--button-text":"hsl(var(--bg-000))","--button-hover-bg":"hsl(var(--bg-000) / 0.1)","--button-hover-text":"hsl(var(--bg-000))"}:void 0,onClick:()=>{a(!i)},children:i?t.jsx(Yt,{className:"text-bg-000"}):t.jsx(kU,{})})})})})}function jYe(e){const s=t$e();return t.jsxs(t.Fragment,{children:[s&&t.jsx(jGe,{}),t.jsx(SYe,{...e})]})}function SYe({incognitoModeEnabled:s,saffronThemesEnabled:n}){const a=CS(),i=$v();Fe("enabled_monkeys_in_a_barrel");const{hasRequiredSkills:r,isLoading:o}=function(){const e=y("claudeai_fsi_skill_chips"),{data:t,isLoading:s}=lr(e);if(!e)return{hasRequiredSkills:!1,isLoading:!1};if(s||!t)return{hasRequiredSkills:!1,isLoading:!0};const n=new Set(t.skills.map(e=>e.skillName));return{hasRequiredSkills:R$e.every(e=>n.has(e)),isLoading:!1}}(),l=y("claudeai_fsi_skill_chips"),c=t$e(),{showing:d,loadingOrShowing:u}=function(){const t=hw(),s=YGe(),{activeOrganization:n}=v(),a=n?.uuid,i=!t&&JGe(s)&&!!a,{data:r,isLoading:o}=FGe({enabled:i}),l=e.useMemo(()=>iKe(r?.tasks??[],s,a??""),[r?.tasks,s,a]);return i?o?{showing:!1,loadingOrShowing:!0}:r?r.panel_dismissed_at||0===l.all.length||0===l.incomplete.length||rKe(l)?{showing:!1,loadingOrShowing:!1}:{showing:!0,loadingOrShowing:!0}:{showing:!1,loadingOrShowing:!1}:{showing:!1,loadingOrShowing:!1}}(),m=ce("prosumer_checklist_hide_prompt_chips",d);return s?t.jsx(LYe,{}):a||i||u&&!d||d&&m||o?null:l&&r?t.jsx(E$e,{}):c?t.jsx(wGe,{}):n?t.jsx(I$e,{}):t.jsx(M$e,{})}function LYe(){const e=xe(),s=$j(),n=o_();return t.jsx(sA.div,{className:"text-center text-text-500 flex items-start justify-center mt-6 px-2 group",initial:{opacity:0,y:-5},animate:{opacity:1,y:0},exit:{opacity:0,y:-5},transition:{duration:.2},children:t.jsxs("div",{className:"max-w-xl text-sm text-pretty",children:[n,t.jsx("br",{}),e&&!s&&t.jsxs(t.Fragment,{children:[t.jsx("br",{}),t.jsx(XS,{defaultMessage:"Note: Chat history is still visible to your admin.",id:"sw7zn1Q6sq"}),t.jsx("br",{})]}),t.jsx("span",{className:"w-fit",children:e&&!s?t.jsx(XS,{defaultMessage:"<span>Learn more</span> about how your team manages your data.",id:"lFVJ3Mzijc",values:{span:s=>t.jsx(ds,{href:e?xS:vS,target:"_blank",children:s})}}):t.jsx(XS,{defaultMessage:"<span>Learn more</span> about how your data is used.",id:"Peyln3vxd0",values:{span:s=>t.jsx(ds,{href:e?xS:vS,target:"_blank",children:s})}})})]})})}const NYe=({className:s,style:n,isTransitioning:i=!1,transitionType:r="exit",onTransitionComplete:o,keepLastFrame:l=!1})=>{const c=e.useRef(null),[d,u]=e.useState(void 0),m=rA(),p=e.useRef(void 0),[f,g]=e.useState(!1);if(e.useEffect(()=>{a(()=>import("./c29d35996-hchn961B.js").then(e=>e.c),__vite__mapDeps([0,1]),import.meta.url).then(e=>{u(e.animations)}).catch(()=>{})},[]),e.useEffect(()=>{if(!i||!d||!c.current||m)return;if(!("function"==typeof c.current.animate))return;const e=d[r];if(!e)return;const{frameCount:t,speed:s}=e,n=Array.from({length:t},(e,s)=>({transform:`translateY(-${s*(100/t)}%)`})),a=c.current.animate(n,{duration:s*n.length,iterations:1,easing:`steps(${n.length}, jump-none)`,fill:"forwards"});p.current=a;const u=()=>{l&&"exit"===r&&g(!0),o?.()};return a.addEventListener("finish",u),()=>{a.removeEventListener("finish",u),a.cancel()}},[i,r,d,m,o,l]),e.useEffect(()=>{i&&g(!1)},[i]),!i&&!f||!d||m)return t.jsx(qWe,{className:s,style:n});const h=d[r],{svg:C,width:x,height:v}=h,y=x/v;return t.jsx("div",{className:dt("inline-block overflow-hidden select-none transition-colors","text-accent-brand",s),style:{aspectRatio:y,position:"relative",...n},children:t.jsx("div",{ref:c,className:"[&>svg]:block [&>svg]:w-full [&>svg]:fill-current",style:f&&"exit"===r?{transform:`translateY(-${500/6}%)`}:void 0,dangerouslySetInnerHTML:{__html:C}})})};function IYe({incognitoModeEnabled:s}){const[n,a]=e.useState(EYe.state),[i,r]=e.useState(""),[o,l]=e.useState(!1),[c,d]=e.useState(!1),[u,m]=e.useState(!1),[p,f]=e.useState(!1),[g,h]=e.useState(!1);e.useEffect(()=>{h(!0)},[]);const C="bottom"===n.position,[x,v]=e.useState(!1),[y,b]=e.useState(n.animationPlayed),k="Want to build from your imagination?";e.useEffect(()=>{a(EYe.state);const e=()=>{const e=n,t=EYe.state;a(t),"greeting"!==e.position||"bottom"!==t.position||t.animationPlayed||t.wasReset||(v(!0),b(!0),setTimeout(()=>{v(!1),AYe({animationPlayed:!0}),EYe.state={...EYe.state,animationPlayed:!0}},5e3))};return RYe.add(e),()=>{RYe.delete(e)}},[n,y]),e.useEffect(()=>{if(C&&!u){if(n.wasReset)return;if(!x)return r(k),void m(!0);const e=setTimeout(()=>{l(!0);let e=0;const t=setInterval(()=>{e<36?(r(k.slice(0,e+1)),e++):(clearInterval(t),l(!1),m(!0))},30)},1200);return()=>clearTimeout(e)}},[C,u,x,n.wasReset,k]);const w=g&&C&&!s;return e.useEffect(()=>{if(w&&x){const e=setTimeout(()=>{f(!0),setTimeout(()=>{f(!1)},420)},700);return setTimeout(()=>{if(v(!1),!EYe.state.animationPlayed){const e=AYe({animationPlayed:!0});EYe.state=e}},4e3),()=>clearTimeout(e)}},[w,x]),t.jsx("div",{className:"fixed bottom-4 right-4 z-[3] p-32 -m-32",onMouseEnter:()=>d(!0),onMouseLeave:()=>d(!1),children:t.jsx(nA,{children:w&&t.jsx(t.Fragment,{children:t.jsxs(sA.div,{initial:{opacity:1},animate:{opacity:1},exit:{opacity:0,y:40},transition:{duration:.1,delay:x?.2:0},children:[t.jsx(nA,{children:c&&t.jsx(sA.div,{initial:{scale:0,opacity:0},animate:{scale:3,opacity:.6},exit:{scale:0,opacity:0},transition:{duration:.4,ease:[.175,.885,.32,1.05]},className:"fixed rounded-full bg-bg-500 cursor-pointer",style:{width:"190px",height:"190px",bottom:"-133px",right:"-95px"},onClick:()=>window.location.href="/imagine"})}),t.jsxs("div",{className:"relative",children:[t.jsxs(sA.div,{initial:x?{x:20,y:15,opacity:0,scale:.8}:{x:0,y:0,opacity:1,scale:1},animate:{x:0,y:0,opacity:1,scale:1},transition:x?{duration:.25,ease:[.175,.885,.32,1.4],delay:1.2}:{duration:0},className:"group absolute bottom-10 right-10 px-4 py-3 rounded-2xl bg-bg-100 border-0.5 border-border-200 shadow-lg w-[160px] cursor-pointer hover:scale-105 transition-all duration-300 ease-out",style:{boxShadow:"0 4px 20px hsl(var(--always-black)/4%)"},onClick:()=>window.location.href="/imagine",children:[t.jsx("div",{className:"font-claude-response-small text-text-300 break-words",children:i}),t.jsx(nA,{children:t.jsx(sA.button,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},transition:{duration:.15},onClick:e=>{e.stopPropagation(),(()=>{const e=AYe({position:"greeting",wasReset:!0,animationPlayed:!1});EYe.state=e,a(e),v(!1),b(!1),r(""),l(!1),m(!1),RYe.forEach(e=>e())})()},className:"block absolute -top-2 -right-2 p-1.5 bg-bg-100/60 hover:bg-bg-100 backdrop-blur-lg border-0.5 border-border-200 rounded-full shadow-lg transition-all",children:t.jsx(Yt,{size:12,className:"text-text-500 font-bold"})})})]}),x&&t.jsx(sA.div,{className:"absolute w-11 h-11 rounded-full",initial:{scale:0},animate:{scale:1},transition:{delay:.5,duration:.3,ease:"easeInOut"},style:{position:"absolute",zIndex:0,backgroundColor:"#D97757"},children:t.jsx(sA.div,{className:"absolute inset-0 rounded-full",initial:{opacity:1,boxShadow:"0px 0px 8px 5px rgba(217, 119, 87, 1), 0px 0px 12px 10px rgba(217, 119, 87, 0.9), 0px 0px 16px 15px rgba(217, 119, 87, 0.7)"},animate:{opacity:0,boxShadow:["0px 0px 8px 5px rgba(217, 119, 87, 1), 0px 0px 12px 10px rgba(217, 119, 87, 0.9), 0px 0px 16px 15px rgba(217, 119, 87, 0.7)","0px 0px 15px 25px rgba(217, 119, 87, 1), 0px 0px 25px 50px rgba(217, 119, 87, 0.9), 0px 0px 35px 75px rgba(217, 119, 87, 0.7), 0px 0px 45px 100px rgba(217, 119, 87, 0.5)","0px 0px 10px 10px rgba(217, 119, 87, 0.6), 0px 0px 15px 20px rgba(217, 119, 87, 0.4), 0px 0px 20px 30px rgba(217, 119, 87, 0.2)"]},transition:{delay:.55,duration:.4,boxShadow:{times:[0,.5,1]}}})}),t.jsx(sA.div,{initial:x?{opacity:0,scale:0}:{opacity:1,scale:1},animate:{opacity:1,scale:1},transition:x?{delay:.51,duration:.3,ease:"easeInOut"}:{duration:0},className:"relative w-11 h-11 rounded-full bg-bg-100 border-0.5 border-border-200 shadow-lg flex items-center justify-center hover:scale-105 transition-transform cursor-pointer",style:{boxShadow:"0 4px 20px hsl(var(--always-black)/4%)",zIndex:1},onClick:()=>window.location.href="/imagine",children:t.jsx("div",{className:"pointer-events-none flex items-center justify-center",children:t.jsx(nA,{mode:"wait",children:c?t.jsx(sA.div,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1,x:[0,3,0]},exit:{opacity:0,scale:.8},transition:{opacity:{duration:.2},scale:{duration:.2},x:{duration:1,repeat:1/0,ease:"easeInOut"}},className:"flex items-center justify-center",children:t.jsx(zP,{size:16,className:"text-text-300"})},"arrow"):t.jsx(sA.div,{initial:x?{opacity:0}:{opacity:1},animate:{opacity:1},exit:{opacity:0,scale:.8},transition:x?{delay:.7,duration:.2}:{duration:.2},className:"flex items-center justify-center",children:x&&p?t.jsx(NYe,{isTransitioning:!0,transitionType:"entrance",className:"!w-6 !h-6 !text-sm",onTransitionComplete:()=>f(!1)}):t.jsx(H9,{state:o?"writing":"waiting",className:"!w-6 !h-6 !text-sm"})},"spark")})})})]})]},"floating-spark-container")})})})}function TYe(){if("undefined"==typeof window)return{position:"greeting",wasReset:!1,animationPlayed:!1};const e=localStorage.getItem("claudeSpark");if(!e)return{position:"greeting",wasReset:!1,animationPlayed:!1};try{return JSON.parse(e)}catch{return{position:"greeting",wasReset:!1,animationPlayed:!1}}}function AYe(e){const t={...TYe(),...e};return"undefined"!=typeof window&&localStorage.setItem("claudeSpark",JSON.stringify(t)),t}const EYe={state:TYe()},RYe=new Set;function DYe(){return e.useEffect(()=>{const e=localStorage.getItem("claudeSpark"),t=EYe.state;if(!e&&"greeting"===t.position&&!t.animationPlayed){const e=setTimeout(()=>{const e=AYe({position:"bottom",wasReset:!1,animationPlayed:!1});EYe.state=e,RYe.forEach(e=>e())},1500);return()=>clearTimeout(e)}},[]),null}function HYe(e){var t,s,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(s=HYe(e[t]))&&(n&&(n+=" "),n+=s);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function PYe(){for(var e,t,s=0,n="";s<arguments.length;)(e=arguments[s++])&&(t=HYe(e))&&(n&&(n+=" "),n+=t);return n}function UYe(t){const[s,n]=e.useState(!1);return{armed:s||!t,arm:e.useCallback(()=>n(!0),[])}}function OYe(){const t=e.useRef(void 0),s=e.useCallback(()=>{window.clearTimeout(t.current),t.current=void 0},[]),n=e.useCallback((e,n)=>{s(),t.current=window.setTimeout(n,e)},[s]);return e.useEffect(()=>s,[s]),e.useMemo(()=>({start:n,cancel:s}),[n,s])}const FYe={s:"0 0 12 12",m:"0 0 16 16",l:"0 0 24 24"},VYe={"AgentPlanPath/l/filled":["M18.0282 3C19.547 3 20.7782 4.23122 20.7782 5.75V7.25C20.7782 8.76878 19.547 10 18.0282 10H16.5282C15.0094 10 13.7782 8.76878 13.7782 7.25H8.59168C7.55762 7.25 7.20341 8.6275 8.10925 9.12598L16.1698 13.5596C18.4351 14.8055 17.5501 18.25 14.9647 18.25H9.7782C9.7782 19.7688 8.54698 21 7.0282 21H5.5282C4.00942 21 2.7782 19.7688 2.7782 18.25V16.75C2.7782 15.2312 4.00942 14 5.5282 14H7.0282C8.54698 14 9.7782 15.2312 9.7782 16.75H14.9647C15.9988 16.75 16.353 15.3725 15.4471 14.874L7.3866 10.4404C5.12128 9.1945 6.00633 5.75 8.59168 5.75H13.7782C13.7782 4.23122 15.0094 3 16.5282 3H18.0282Z"],"AgentPlanPath/l/outline":["M18.0283 3C19.5471 3.00007 20.7783 4.23126 20.7783 5.75V7.25C20.7783 8.76874 19.5471 9.99993 18.0283 10H16.5283C15.1044 10 13.9328 8.91793 13.792 7.53125L13.7783 7.25H8.5918C7.55781 7.25 7.20378 8.62741 8.10938 9.12598L16.1699 13.5596C18.4347 14.8056 17.5505 18.2494 14.9658 18.25H9.77832L9.76367 18.5312C9.6228 19.9179 8.45208 20.9999 7.02832 21H5.52832C4.00954 21 2.77832 19.7688 2.77832 18.25V16.75C2.77832 15.2312 4.00954 14 5.52832 14H7.02832C8.54704 14.0001 9.77832 15.2312 9.77832 16.75H14.9658C15.9992 16.7494 16.3528 15.3725 15.4473 14.874L7.38672 10.4404C5.12164 9.19441 6.00652 5.75 8.5918 5.75H13.7783C13.7783 4.23122 15.0095 3 16.5283 3H18.0283ZM5.52832 15.5C4.83796 15.5 4.27832 16.0596 4.27832 16.75V18.25C4.27832 18.9404 4.83796 19.5 5.52832 19.5H7.02832C7.71863 19.4999 8.27832 18.9403 8.27832 18.25V16.75C8.27832 16.0597 7.71863 15.5001 7.02832 15.5H5.52832ZM16.5283 4.5C15.8379 4.5 15.2783 5.05964 15.2783 5.75V7.25C15.2783 7.94036 15.8379 8.5 16.5283 8.5H18.0283C18.7186 8.49993 19.2783 7.94032 19.2783 7.25V5.75C19.2783 5.05968 18.7186 4.50007 18.0283 4.5H16.5283Z"],"AgentPlanPath/m/filled":["M12.0188 2C13.0314 2 13.8522 2.82081 13.8522 3.83333V4.83333C13.8522 5.84585 13.0314 6.66667 12.0188 6.66667H11.0188C10.0063 6.66667 9.18551 5.84585 9.18551 4.83333H5.72783C5.03845 4.83333 4.80231 5.75167 5.40621 6.08399L10.7799 9.03973C12.2901 9.87033 11.7001 12.1667 9.97651 12.1667H6.51884C6.51884 13.1792 5.69803 14 4.68551 14H3.68551C2.67299 14 1.85217 13.1792 1.85217 12.1667V11.1667C1.85217 10.1541 2.67299 9.33333 3.68551 9.33333H4.68551C5.69803 9.33333 6.51884 10.1541 6.51884 11.1667H9.97651C10.6659 11.1667 10.902 10.2483 10.2981 9.916L4.92444 6.96027C3.41423 6.12967 4.00426 3.83333 5.72783 3.83333H9.18551C9.18551 2.82081 10.0063 2 11.0188 2H12.0188Z"],"AgentPlanPath/m/outline":["M12.0186 1.875C13.1 1.87507 13.9774 2.75165 13.9775 3.83301V4.83301C13.9775 5.91452 13.1001 6.79193 12.0186 6.79199H11.0186C9.97915 6.79182 9.13092 5.9812 9.06641 4.95801H5.72754C5.16785 4.95833 4.97574 5.70448 5.46582 5.97461L10.8398 8.92969C12.4632 9.82262 11.8292 12.2908 9.97656 12.291H6.6377C6.57327 13.3143 5.725 14.1248 4.68555 14.125H3.68555C2.60414 14.1248 1.72754 13.2475 1.72754 12.166V11.166C1.72788 10.0848 2.60435 9.20818 3.68555 9.20801H4.68555C5.72468 9.2082 6.57281 10.0182 6.6377 11.041H9.97656C10.5365 11.0408 10.728 10.2954 10.2373 10.0254L4.86328 7.06934C3.24096 6.17609 3.87531 3.70833 5.72754 3.70801H9.06641C9.13108 2.68502 9.97926 1.87517 11.0186 1.875H12.0186ZM3.68555 10.458C3.2947 10.4582 2.97788 10.7752 2.97754 11.166V12.166C2.97754 12.5571 3.29449 12.8748 3.68555 12.875H4.68555C5.07659 12.8748 5.39453 12.5571 5.39453 12.166V11.166C5.39419 10.7752 5.07638 10.4582 4.68555 10.458H3.68555ZM11.0186 3.125C10.6276 3.12518 10.3107 3.44206 10.3105 3.83301V4.83301C10.3105 5.22411 10.6275 5.54182 11.0186 5.54199H12.0186C12.4097 5.54193 12.7275 5.22418 12.7275 4.83301V3.83301C12.7274 3.44199 12.4096 3.12507 12.0186 3.125H11.0186Z"],"AgentPlanPath/s/filled":["M9.01416 1.5C9.77356 1.5 10.3892 2.11561 10.3892 2.875V3.625C10.3892 4.38439 9.77356 5 9.01416 5H8.26416C7.50476 5 6.88916 4.38439 6.88916 3.625H4.2959C3.77887 3.625 3.60177 4.31375 4.05469 4.56299L8.08496 6.7798C9.21761 7.40275 8.77511 9.125 7.48241 9.125H4.88916C4.88916 9.8844 4.27355 10.5 3.51416 10.5H2.76416C2.00477 10.5 1.38916 9.8844 1.38916 9.125V8.375C1.38916 7.6156 2.00477 7 2.76416 7H3.51416C4.27355 7 4.88916 7.6156 4.88916 8.375H7.48241C7.99946 8.375 8.17656 7.68625 7.72361 7.437L3.69336 5.2202C2.5607 4.59725 3.00323 2.875 4.2959 2.875H6.88916C6.88916 2.11561 7.50476 1.5 8.26416 1.5H9.01416Z"],"AgentPlanPath/s/outline":["M9.01465 1.375C9.84287 1.37526 10.5146 2.04674 10.5146 2.875V3.625C10.5146 4.45326 9.84287 5.12474 9.01465 5.125H8.26465C7.47833 5.125 6.83407 4.51989 6.77051 3.75H4.29492C3.90791 3.75061 3.77552 4.26603 4.11426 4.45312L8.14453 6.66992C9.39044 7.35518 8.90421 9.24985 7.48242 9.25H5.00781C4.94426 10.0198 4.30072 10.6247 3.51465 10.625H2.76465C1.93623 10.625 1.26367 9.95345 1.26367 9.125V8.375C1.26367 7.54655 1.93623 6.875 2.76465 6.875H3.51465C4.30072 6.87525 4.94426 7.48025 5.00781 8.25H7.48242C7.86995 8.24985 8.00248 7.73391 7.66309 7.54688L3.63281 5.33008C2.38732 4.64484 2.87358 2.75061 4.29492 2.75H6.77051C6.83407 1.98011 7.47833 1.375 8.26465 1.375H9.01465ZM2.76465 7.875C2.4885 7.875 2.26465 8.09885 2.26465 8.375V9.125C2.26465 9.40115 2.4885 9.625 2.76465 9.625H3.51465C3.79057 9.62474 4.01465 9.40099 4.01465 9.125V8.375C4.01465 8.09901 3.79057 7.87526 3.51465 7.875H2.76465ZM8.26465 2.375C7.9885 2.375 7.76465 2.59885 7.76465 2.875V3.625C7.76465 3.90115 7.9885 4.125 8.26465 4.125H9.01465C9.29058 4.12474 9.51465 3.90098 9.51465 3.625V2.875C9.51465 2.59902 9.29058 2.37526 9.01465 2.375H8.26465Z"],"ArrowBoxLeftLogoutLeaveExit/l/filled":["M5.80664 4.5C5.11628 4.5 4.55664 5.05964 4.55664 5.75V18.25C4.55664 18.9404 5.11628 19.5 5.80664 19.5H11.3066C11.7208 19.5 12.0566 19.8358 12.0566 20.25C12.0566 20.6642 11.7208 21 11.3066 21H5.80664C4.28786 21 3.05664 19.7688 3.05664 18.25V5.75C3.05664 4.23122 4.28786 3 5.80664 3H11.3066C11.7208 3 12.0566 3.33579 12.0566 3.75C12.0566 4.16421 11.7208 4.5 11.3066 4.5H5.80664ZM15.2763 6.96967C15.5692 6.67678 16.044 6.67678 16.3369 6.96967L20.8369 11.4697C21.1298 11.7626 21.1298 12.2374 20.8369 12.5303L16.3369 17.0303C16.044 17.3232 15.5692 17.3232 15.2763 17.0303C14.9834 16.7374 14.9834 16.2626 15.2763 15.9697L18.4959 12.75H9.05664C8.64243 12.75 8.30664 12.4142 8.30664 12C8.30664 11.5858 8.64243 11.25 9.05664 11.25H18.4959L15.2763 8.03033C14.9834 7.73744 14.9834 7.26256 15.2763 6.96967Z"],"ArrowBoxLeftLogoutLeaveExit/l/outline":["M3 18.25V5.75C3 4.23122 4.23122 3 5.75 3H11.25C11.6642 3 12 3.33579 12 3.75C12 4.16421 11.6642 4.5 11.25 4.5H5.75C5.05964 4.5 4.5 5.05964 4.5 5.75V18.25C4.5 18.9404 5.05964 19.5 5.75 19.5H11.25C11.6642 19.5 12 19.8358 12 20.25C12 20.6642 11.6642 21 11.25 21H5.75C4.23122 21 3 19.7688 3 18.25ZM15.2197 6.96973C15.5126 6.67683 15.9874 6.67683 16.2803 6.96973L20.7803 11.4697C21.0732 11.7626 21.0732 12.2374 20.7803 12.5303L16.2803 17.0303C15.9874 17.3232 15.5126 17.3232 15.2197 17.0303C14.9268 16.7374 14.9268 16.2626 15.2197 15.9697L18.4395 12.75H9C8.58579 12.75 8.25 12.4142 8.25 12C8.25 11.5858 8.58579 11.25 9 11.25H18.4395L15.2197 8.03027C14.9268 7.73738 14.9268 7.26262 15.2197 6.96973Z"],"ArrowBoxLeftLogoutLeaveExit/m/filled":["M1.875 12.167V3.83301C1.87518 2.75171 2.75171 1.87518 3.83301 1.875H7.5C7.84518 1.875 8.125 2.15482 8.125 2.5C8.125 2.84518 7.84518 3.125 7.5 3.125H3.83301C3.44206 3.12518 3.12518 3.44206 3.125 3.83301V12.167C3.12518 12.558 3.44206 12.8748 3.83301 12.875H7.5C7.84518 12.875 8.125 13.1548 8.125 13.5C8.125 13.8452 7.84518 14.125 7.5 14.125H3.83301C2.75171 14.1248 1.87518 13.2483 1.875 12.167ZM10.0576 4.55762C10.3017 4.31354 10.6983 4.31354 10.9424 4.55762L13.9424 7.55762C14.1865 7.80169 14.1865 8.19831 13.9424 8.44238L10.9424 11.4424C10.6983 11.6865 10.3017 11.6865 10.0576 11.4424C9.81354 11.1983 9.81354 10.8017 10.0576 10.5576L11.9902 8.625H6C5.65482 8.625 5.375 8.34518 5.375 8C5.375 7.65482 5.65482 7.375 6 7.375H11.9902L10.0576 5.44238C9.81354 5.19831 9.81354 4.80169 10.0576 4.55762Z"],"ArrowBoxLeftLogoutLeaveExit/m/outline":["M1.875 12.167V3.83301C1.87518 2.75171 2.75171 1.87518 3.83301 1.875H7.5C7.84518 1.875 8.125 2.15482 8.125 2.5C8.125 2.84518 7.84518 3.125 7.5 3.125H3.83301C3.44206 3.12518 3.12518 3.44206 3.125 3.83301V12.167C3.12518 12.558 3.44206 12.8748 3.83301 12.875H7.5C7.84518 12.875 8.125 13.1548 8.125 13.5C8.125 13.8452 7.84518 14.125 7.5 14.125H3.83301C2.75171 14.1248 1.87518 13.2483 1.875 12.167ZM10.0576 4.55762C10.3017 4.31354 10.6983 4.31354 10.9424 4.55762L13.9424 7.55762C14.1865 7.80169 14.1865 8.19831 13.9424 8.44238L10.9424 11.4424C10.6983 11.6865 10.3017 11.6865 10.0576 11.4424C9.81354 11.1983 9.81354 10.8017 10.0576 10.5576L11.9902 8.625H6C5.65482 8.625 5.375 8.34518 5.375 8C5.375 7.65482 5.65482 7.375 6 7.375H11.9902L10.0576 5.44238C9.81354 5.19831 9.81354 4.80169 10.0576 4.55762Z"],"ArrowBoxLeftLogoutLeaveExit/s/filled":["M1.375 9.125V2.875C1.375 2.04657 2.04657 1.375 2.875 1.375H5.625C5.90114 1.375 6.125 1.59886 6.125 1.875C6.125 2.15114 5.90114 2.375 5.625 2.375H2.875C2.59886 2.375 2.375 2.59886 2.375 2.875V9.125C2.375 9.40115 2.59885 9.625 2.875 9.625H5.625C5.90114 9.625 6.125 9.84886 6.125 10.125C6.125 10.4011 5.90114 10.625 5.625 10.625H2.875C2.04658 10.625 1.375 9.95345 1.375 9.125ZM7.52148 3.39648C7.71675 3.20122 8.03325 3.20122 8.22852 3.39648L10.4785 5.64648C10.6738 5.84175 10.6738 6.15825 10.4785 6.35352L8.22852 8.60352C8.03325 8.79878 7.71675 8.79878 7.52148 8.60352C7.32622 8.40825 7.32622 8.09175 7.52148 7.89648L8.91797 6.5H4.5C4.22386 6.5 4 6.27614 4 6C4 5.72386 4.22386 5.5 4.5 5.5H8.91797L7.52148 4.10352C7.32622 3.90825 7.32622 3.59175 7.52148 3.39648Z"],"ArrowBoxLeftLogoutLeaveExit/s/outline":["M1.375 9.125V2.875C1.375 2.04657 2.04657 1.375 2.875 1.375H5.625C5.90114 1.375 6.125 1.59886 6.125 1.875C6.125 2.15114 5.90114 2.375 5.625 2.375H2.875C2.59886 2.375 2.375 2.59886 2.375 2.875V9.125C2.375 9.40115 2.59885 9.625 2.875 9.625H5.625C5.90114 9.625 6.125 9.84886 6.125 10.125C6.125 10.4011 5.90114 10.625 5.625 10.625H2.875C2.04658 10.625 1.375 9.95345 1.375 9.125ZM7.52148 3.39648C7.71675 3.20122 8.03325 3.20122 8.22852 3.39648L10.4785 5.64648C10.6738 5.84175 10.6738 6.15825 10.4785 6.35352L8.22852 8.60352C8.03325 8.79878 7.71675 8.79878 7.52148 8.60352C7.32622 8.40825 7.32622 8.09175 7.52148 7.89648L8.91797 6.5H4.5C4.22386 6.5 4 6.27614 4 6C4 5.72386 4.22386 5.5 4.5 5.5H8.91797L7.52148 4.10352C7.32622 3.90825 7.32622 3.59175 7.52148 3.39648Z"],"ArrowDown/l/filled":["M12 21C12.3315 21 12.6494 20.8683 12.8839 20.6339L18.6339 14.8839C19.122 14.3957 19.122 13.6043 18.6339 13.1161C18.1457 12.628 17.3543 12.628 16.8661 13.1161L13.25 16.7322V4.25C13.25 3.5596 12.6903 3 12 3C11.3096 3 10.75 3.5596 10.75 4.25V16.7322L7.13388 13.1161C6.64573 12.628 5.85427 12.628 5.36612 13.1161C4.87796 13.6043 4.87796 14.3957 5.36612 14.8839L11.1161 20.6339C11.3505 20.8683 11.6685 21 12 21Z"],"ArrowDown/l/outline":["M11.5264 20.8318C11.821 21.0721 12.2557 21.0546 12.5303 20.7801L18.7803 14.5301C19.0732 14.2372 19.0731 13.7624 18.7803 13.4695C18.4874 13.1766 18.0127 13.1766 17.7198 13.4695L12.7501 18.4393V3.74981C12.7501 3.33562 12.4142 2.99985 12.0001 2.99981C11.5858 2.99981 11.2501 3.3356 11.2501 3.74981V18.4393L6.28032 13.4695C5.98743 13.1766 5.51267 13.1766 5.21978 13.4695C4.92691 13.7624 4.92689 14.2372 5.21978 14.5301L11.4698 20.7801L11.5264 20.8318Z"],"ArrowDown/m/filled":["M8.00004 14C8.22104 14 8.43297 13.9122 8.58931 13.7559L12.4226 9.92259C12.748 9.59715 12.748 9.06953 12.4226 8.74407C12.0972 8.41867 11.5696 8.41867 11.2441 8.74407L8.83337 11.1548V2.83333C8.83337 2.37307 8.46024 2 8.00004 2C7.53977 2 7.16671 2.37307 7.16671 2.83333V11.1548L4.75596 8.74407C4.43053 8.41867 3.90289 8.41867 3.57745 8.74407C3.25201 9.06953 3.25201 9.59715 3.57745 9.92259L7.41077 13.7559C7.56704 13.9122 7.77904 14 8.00004 14Z"],"ArrowDown/m/outline":["M7.65626 14.0224C7.8986 14.1821 8.22798 14.1553 8.44141 13.9424L12.6084 9.77537C12.8524 9.53135 12.8523 9.13568 12.6084 8.89158C12.3643 8.64769 11.9686 8.64757 11.7246 8.89158L8.62501 11.9912V2.49998C8.62501 2.15481 8.34519 1.87498 8.00001 1.87498C7.65484 1.87499 7.37501 2.15481 7.37501 2.49998V11.9922L4.2754 8.89158C4.03131 8.64769 3.63465 8.64757 3.39063 8.89158C3.1472 9.13559 3.14707 9.53144 3.39063 9.77537L7.55762 13.9424L7.65626 14.0224Z"],"ArrowDown/s/filled":["M6 10.5C6.16575 10.5 6.3247 10.4341 6.44195 10.3169L9.31695 7.44194C9.561 7.19786 9.561 6.80215 9.31695 6.55805C9.07285 6.314 8.67715 6.314 8.43305 6.55805L6.625 8.36612V2.125C6.625 1.7798 6.34515 1.5 6 1.5C5.6548 1.5 5.375 1.7798 5.375 2.125V8.36612L3.56694 6.55805C3.32287 6.314 2.92713 6.314 2.68306 6.55805C2.43898 6.80215 2.43898 7.19786 2.68306 7.44194L5.55805 10.3169C5.67525 10.4341 5.83425 10.5 6 10.5Z"],"ArrowDown/s/outline":["M5.72465 10.5427C5.91869 10.6707 6.18273 10.649 6.35356 10.4782L9.47856 7.35321C9.67378 7.15799 9.6737 6.84145 9.47856 6.64618C9.2833 6.45091 8.96679 6.45091 8.77153 6.64618L6.50004 8.91766V1.87469C6.50004 1.59856 6.27617 1.37471 6.00004 1.37469C5.7239 1.37469 5.50004 1.59855 5.50004 1.87469V8.91766L3.22856 6.64618C3.0333 6.45091 2.71679 6.45091 2.52153 6.64618C2.32635 6.84144 2.32629 7.15797 2.52153 7.35321L5.64653 10.4782L5.72465 10.5427Z"],"ArrowLeft/l/filled":["M10.8839 5.36612C10.3957 4.87796 9.6043 4.87796 9.1161 5.36612L3.3661 11.1161C3.1317 11.3505 3 11.6685 3 12C3 12.3315 3.1317 12.6494 3.3661 12.8839L9.1161 18.6339C9.6043 19.122 10.3957 19.122 10.8839 18.6339C11.372 18.1457 11.372 17.3543 10.8839 16.8661L7.2678 13.25H19.75C20.4404 13.25 21 12.6903 21 12C21 11.3096 20.4404 10.75 19.75 10.75H7.2678L10.8839 7.13388C11.372 6.64573 11.372 5.85427 10.8839 5.36612Z"],"ArrowLeft/l/outline":["M10.5302 5.21979C10.2373 4.9269 9.7625 4.9269 9.4696 5.21979L3.2196 11.4698C2.92674 11.7627 2.92672 12.2375 3.2196 12.5303L9.4696 18.7803C9.76249 19.0732 10.2373 19.0732 10.5302 18.7803C10.823 18.4875 10.823 18.0127 10.5302 17.7198L5.56042 12.7501H20.2499C20.6641 12.7501 20.9998 12.4143 20.9999 12.0001C20.9999 11.5859 20.6641 11.2501 20.2499 11.2501H5.56042L10.5302 6.28034C10.823 5.98746 10.823 5.51269 10.5302 5.21979Z"],"ArrowLeft/m/filled":["M7.25593 3.57739C6.93047 3.25195 6.40287 3.25195 6.0774 3.57739L2.24407 7.41071C2.0878 7.56698 2 7.77898 2 7.99998C2 8.22098 2.0878 8.43291 2.24407 8.58925L6.0774 12.4226C6.40287 12.748 6.93047 12.748 7.25593 12.4226C7.58133 12.0971 7.58133 11.5695 7.25593 11.244L4.8452 8.83331H13.1667C13.6269 8.83331 14 8.46018 14 7.99998C14 7.53971 13.6269 7.16665 13.1667 7.16665H4.8452L7.25593 4.7559C7.58133 4.43047 7.58133 3.90283 7.25593 3.57739Z"],"ArrowLeft/m/outline":["M7.10889 3.39131C6.86481 3.14723 6.4682 3.14723 6.22412 3.39131L2.05811 7.5583C1.81404 7.80238 1.81403 8.19802 2.05811 8.44209L6.22412 12.6091C6.46823 12.8528 6.86493 12.853 7.10889 12.6091C7.35257 12.3652 7.3522 11.9694 7.10889 11.7253L4.00928 8.62471H13.4995C13.8447 8.62471 14.1245 8.34489 14.1245 7.99971C14.1244 7.65466 13.8446 7.37471 13.4995 7.37471H4.00928L7.10889 4.27608C7.35284 4.03213 7.35258 3.63542 7.10889 3.39131Z"],"ArrowLeft/s/filled":["M5.44195 2.68306C5.19785 2.43898 4.80215 2.43898 4.55805 2.68306L1.68305 5.55805C1.56585 5.67525 1.5 5.83425 1.5 6C1.5 6.16575 1.56585 6.3247 1.68305 6.44195L4.55805 9.31695C4.80215 9.561 5.19785 9.561 5.44195 9.31695C5.686 9.07285 5.686 8.67715 5.44195 8.43305L3.6339 6.625H9.875C10.2202 6.625 10.5 6.34515 10.5 6C10.5 5.6548 10.2202 5.375 9.875 5.375H3.6339L5.44195 3.56694C5.686 3.32287 5.686 2.92713 5.44195 2.68306Z"],"ArrowLeft/s/outline":["M5.35352 2.52151C5.15825 2.32625 4.84175 2.32625 4.64648 2.52151L1.52148 5.64651C1.32624 5.84177 1.32623 6.15828 1.52148 6.35354L4.64648 9.47854C4.84174 9.67378 5.15826 9.67378 5.35352 9.47854C5.54877 9.28328 5.54876 8.96677 5.35352 8.77151L3.08203 6.50002H10.125C10.4011 6.50002 10.625 6.27615 10.625 6.00002C10.625 5.72388 10.4011 5.50002 10.125 5.50002H3.08203L5.35352 3.22854C5.54877 3.03328 5.54876 2.71677 5.35352 2.52151Z"],"ArrowLeftXDeleteBackspaceRemove/l/filled":["M8.80013 4C7.89599 4 7.04961 4.44443 6.5363 5.18873L2.91561 10.4387C2.26739 11.3787 2.26739 12.6213 2.91561 13.5613L6.5363 18.8113C7.04961 19.5556 7.89599 20 8.80013 20H19.2499C20.7687 20 21.9999 18.7688 21.9999 17.25V6.75C21.9999 5.23122 20.7687 4 19.2499 4H8.80013ZM10.7179 9.46967C11.0108 9.17678 11.4857 9.17678 11.7786 9.46967L13.2499 10.941L14.7213 9.46967C15.0142 9.17678 15.489 9.17678 15.7819 9.46967C16.0748 9.76256 16.0748 10.2374 15.7819 10.5303L14.3106 12.0017L15.7803 13.4713C16.0732 13.7642 16.0732 14.2391 15.7803 14.532C15.4874 14.8249 15.0125 14.8249 14.7196 14.532L13.2499 13.0623L11.7803 14.532C11.4874 14.8249 11.0125 14.8249 10.7196 14.532C10.4267 14.2391 10.4267 13.7642 10.7196 13.4713L12.1893 12.0017L10.7179 10.5303C10.425 10.2374 10.425 9.76256 10.7179 9.46967Z"],"ArrowLeftXDeleteBackspaceRemove/l/outline":["M14.7219 9.46973C15.0148 9.17702 15.4896 9.17689 15.7824 9.46973C16.0751 9.76257 16.0751 10.2374 15.7824 10.5303L14.3107 12.001L15.7805 13.4717C16.0731 13.7645 16.0732 14.2394 15.7805 14.5322C15.4876 14.8248 15.0128 14.8249 14.7199 14.5322L13.2502 13.0625L11.7805 14.5322C11.4876 14.8248 11.0128 14.8249 10.7199 14.5322C10.4271 14.2394 10.4272 13.7646 10.7199 13.4717L12.1896 12.002L10.718 10.5303C10.4254 10.2374 10.4254 9.76257 10.718 9.46973C11.0109 9.17698 11.4866 9.17688 11.7795 9.46973L13.2502 10.9404L14.7219 9.46973Z","M19.2502 4C20.7689 4.00016 22.0002 5.23132 22.0002 6.75V17.25C22.0002 18.7687 20.7689 19.9998 19.2502 20H8.80097C7.89691 20 7.04966 19.5557 6.53633 18.8115L2.91621 13.5615C2.268 12.6216 2.268 11.3784 2.91621 10.4385L6.53633 5.18848C7.04965 4.44426 7.89688 4 8.80097 4H19.2502ZM8.80097 5.5C8.39016 5.5 8.00503 5.70196 7.77168 6.04004L4.15058 11.29C3.85593 11.7173 3.85593 12.2827 4.15058 12.71L7.77168 17.96C8.00502 18.298 8.39015 18.5 8.80097 18.5H19.2502C19.9404 18.4998 20.5002 17.9403 20.5002 17.25V6.75C20.5002 6.05973 19.9404 5.50016 19.2502 5.5H8.80097Z"],"ArrowLeftXDeleteBackspaceRemove/m/filled":["M5.86675 2.66666C5.26399 2.66666 4.69974 2.96294 4.35753 3.45914L1.94374 6.95912C1.51159 7.58579 1.51159 8.41419 1.94374 9.04086L4.35753 12.5409C4.69974 13.0371 5.26399 13.3333 5.86675 13.3333H12.8333C13.8458 13.3333 14.6666 12.5125 14.6666 11.5V4.49999C14.6666 3.48747 13.8458 2.66666 12.8333 2.66666H5.86675ZM7.14527 6.3131C7.34053 6.11784 7.65713 6.11784 7.8524 6.3131L8.83327 7.29399L9.8142 6.3131C10.0095 6.11784 10.326 6.11784 10.5213 6.3131C10.7165 6.50836 10.7165 6.82492 10.5213 7.02019L9.5404 8.00112L10.5202 8.98086C10.7155 9.17612 10.7155 9.49272 10.5202 9.68799C10.3249 9.88326 10.0083 9.88326 9.81307 9.68799L8.83327 8.70819L7.85353 9.68799C7.65827 9.88326 7.34167 9.88326 7.1464 9.68799C6.95113 9.49272 6.95113 9.17612 7.1464 8.98086L8.1262 8.00112L7.14527 7.02019C6.95 6.82492 6.95 6.50836 7.14527 6.3131Z"],"ArrowLeftXDeleteBackspaceRemove/m/outline":["M9.72611 6.22461C9.97017 5.98093 10.3659 5.98079 10.6099 6.22461C10.8539 6.4687 10.8539 6.86533 10.6099 7.10938L9.71732 8.00098L10.6089 8.89258C10.8527 9.13655 10.8526 9.53231 10.6089 9.77637C10.3649 10.0202 9.96915 10.0202 9.72513 9.77637L8.83353 8.88477L7.94193 9.77637C7.69787 10.0202 7.30215 10.0203 7.05814 9.77637C6.81428 9.53235 6.81433 9.13663 7.05814 8.89258L7.94877 8.00098L7.05716 7.10938C6.81316 6.86537 6.81331 6.46871 7.05716 6.22461C7.30122 5.98092 7.69698 5.98079 7.94095 6.22461L8.83353 7.11719L9.72611 6.22461Z","M12.8335 2.54199C13.9149 2.5421 14.7914 3.41867 14.7915 4.5V11.5C14.7914 12.5814 13.9149 13.4589 12.8335 13.459H5.86673C5.22303 13.4589 4.61996 13.1422 4.25443 12.6123L1.84134 9.1123C1.37981 8.44305 1.37994 7.55799 1.84134 6.88867L4.25443 3.38867C4.61994 2.85869 5.22293 2.54205 5.86673 2.54199H12.8335ZM5.86673 3.79199C5.63391 3.79205 5.41591 3.90696 5.28373 4.09863L2.86966 7.59863C2.70323 7.8406 2.703 8.16049 2.86966 8.40234L5.28373 11.9023C5.41592 12.0939 5.63397 12.2089 5.86673 12.209H12.8335C13.2245 12.2089 13.5414 11.891 13.5415 11.5V4.5C13.5414 4.10901 13.2245 3.7921 12.8335 3.79199H5.86673Z"],"ArrowLeftXDeleteBackspaceRemove/s/filled":["M4.40006 2C3.94799 2 3.5248 2.22221 3.26815 2.59436L1.4578 5.21935C1.13369 5.68935 1.13369 6.31065 1.4578 6.78065L3.26815 9.40565C3.5248 9.7778 3.94799 10 4.40006 10H9.62495C10.3843 10 10.9999 9.3844 10.9999 8.625V3.375C10.9999 2.61561 10.3843 2 9.62495 2H4.40006ZM5.35895 4.73484C5.5054 4.58839 5.74285 4.58839 5.8893 4.73484L6.62495 5.4705L7.36065 4.73484C7.5071 4.58839 7.7445 4.58839 7.89095 4.73484C8.0374 4.88128 8.0374 5.1187 7.89095 5.26515L7.1553 6.00085L7.89015 6.73565C8.0366 6.8821 8.0366 7.11955 7.89015 7.266C7.7437 7.41245 7.50625 7.41245 7.3598 7.266L6.62495 6.53115L5.89015 7.266C5.7437 7.41245 5.50625 7.41245 5.3598 7.266C5.21335 7.11955 5.21335 6.8821 5.3598 6.73565L6.09465 6.00085L5.35895 5.26515C5.2125 5.1187 5.2125 4.88128 5.35895 4.73484Z"],"ArrowLeftXDeleteBackspaceRemove/s/outline":["M7.27293 4.64648C7.46821 4.45147 7.78478 4.4513 7.97996 4.64648C8.1749 4.84168 8.1749 5.15832 7.97996 5.35352L7.3325 6.00098L7.97898 6.64746C8.17393 6.84267 8.17394 7.15929 7.97898 7.35449C7.78379 7.54957 7.4672 7.54948 7.27195 7.35449L6.62547 6.70801L5.97898 7.35449C5.78379 7.54957 5.4672 7.54948 5.27195 7.35449C5.07672 7.15927 5.0768 6.84273 5.27195 6.64746L5.91843 6.00098L5.27097 5.35352C5.07586 5.15828 5.07586 4.84172 5.27097 4.64648C5.46622 4.45148 5.78281 4.45141 5.978 4.64648L6.62547 5.29395L7.27293 4.64648Z","M9.62547 1.875C10.4537 1.87524 11.1255 2.54673 11.1255 3.375V8.625C11.1255 9.45329 10.4537 10.1248 9.62547 10.125H4.40086C3.90779 10.125 3.44551 9.88242 3.1655 9.47656L1.35593 6.85156C1.00237 6.33887 1.00237 5.66113 1.35593 5.14844L3.1655 2.52344C3.44551 2.11758 3.90777 1.875 4.40086 1.875H9.62547ZM4.40086 2.875C4.23658 2.875 4.0821 2.95566 3.98875 3.09082L2.17918 5.71582C2.06131 5.88673 2.06131 6.11327 2.17918 6.28418L3.98875 8.90918C4.08209 9.04433 4.23657 9.125 4.40086 9.125H9.62547C9.90142 9.12476 10.1255 8.90101 10.1255 8.625V3.375C10.1255 3.099 9.90141 2.87524 9.62547 2.875H4.40086Z"],"ArrowRefreshRedo/l/filled":["M12 3C13.2572 3 14.4561 3.25858 15.5449 3.72559C15.9255 3.8889 16.1016 4.32936 15.9385 4.70996C15.7752 5.09063 15.3338 5.2668 14.9531 5.10352C14.0479 4.71529 13.05 4.5 12 4.5C7.85786 4.5 4.5 7.85786 4.5 12C4.5 14.877 6.12032 17.3767 8.5 18.6348V14.75C8.5 14.3358 8.83579 14 9.25 14C9.66421 14 10 14.3358 10 14.75V20.25C10 20.6642 9.66421 21 9.25 21H3.75C3.33579 21 3 20.6642 3 20.25C3 19.8358 3.33579 19.5 3.75 19.5H7.02344C4.59892 17.8881 3 15.1313 3 12C3 7.02944 7.02944 3 12 3Z","M13 19C13.5523 19 14 19.4477 14 20C14 20.5523 13.5523 21 13 21C12.4477 21 12 20.5523 12 20C12 19.4477 12.4477 19 13 19Z","M16.3672 17.5625C16.8453 17.2865 17.4572 17.4498 17.7334 17.9277C18.0096 18.406 17.8455 19.0178 17.3672 19.2939C16.8889 19.5699 16.278 19.406 16.002 18.9277C15.726 18.4496 15.8893 17.8388 16.3672 17.5625Z","M18.5635 14.6338C18.8397 14.1556 19.4514 13.9915 19.9297 14.2676C20.4079 14.5437 20.5717 15.1555 20.2959 15.6338C20.0197 16.112 19.408 16.276 18.9297 16C18.4514 15.7238 18.2874 15.1121 18.5635 14.6338Z","M20 10C20.5523 10 21 10.4477 21 11C21 11.5523 20.5523 12 20 12C19.4477 12 19 11.5523 19 11C19 10.4477 19.4477 10 20 10Z","M17.9268 6.26758C18.405 5.99152 19.0167 6.15561 19.293 6.63379C19.5691 7.11208 19.4051 7.72386 18.9268 8C18.4486 8.27607 17.8367 8.11205 17.5605 7.63379C17.2847 7.15553 17.4486 6.54367 17.9268 6.26758Z"],"ArrowRefreshRedo/l/outline":["M12 3C13.2572 3 14.456 3.25858 15.5449 3.72559C15.9255 3.88888 16.1016 4.32935 15.9385 4.70996C15.7752 5.09055 15.3347 5.26659 14.9541 5.10352C14.0486 4.71514 13.0502 4.5 12 4.5C7.85786 4.5 4.5 7.85786 4.5 12C4.5 14.8772 6.12013 17.3778 8.5 18.6357V14.75C8.5 14.3358 8.83579 14 9.25 14C9.66421 14 10 14.3358 10 14.75V20.25C10 20.6642 9.66421 21 9.25 21H3.75C3.33579 21 3 20.6642 3 20.25C3 19.8358 3.33579 19.5 3.75 19.5H7.02637C4.60065 17.8884 3 15.1322 3 12C3 7.02944 7.02944 3 12 3Z","M13 19C13.5523 19 14 19.4477 14 20C14 20.5523 13.5523 21 13 21C12.4477 21 12 20.5523 12 20C12 19.4477 12.4477 19 13 19Z","M16.3672 17.5625C16.8453 17.2865 17.4572 17.4498 17.7334 17.9277C18.0096 18.406 17.8455 19.0178 17.3672 19.2939C16.8889 19.5699 16.278 19.406 16.002 18.9277C15.726 18.4496 15.8893 17.8388 16.3672 17.5625Z","M18.5635 14.6338C18.8397 14.1556 19.4514 13.9915 19.9297 14.2676C20.4079 14.5437 20.5717 15.1555 20.2959 15.6338C20.0197 16.112 19.408 16.276 18.9297 16C18.4514 15.7238 18.2874 15.1121 18.5635 14.6338Z","M20 10C20.5523 10 21 10.4477 21 11C21 11.5523 20.5523 12 20 12C19.4477 12 19 11.5523 19 11C19 10.4477 19.4477 10 20 10Z","M17.9268 6.26758C18.405 5.99152 19.0167 6.15561 19.293 6.63379C19.5691 7.11208 19.4051 7.72386 18.9268 8C18.4486 8.27607 17.8367 8.11205 17.5605 7.63379C17.2847 7.15553 17.4486 6.54367 17.9268 6.26758Z"],"ArrowRefreshRedo/m/filled":["M8 2C8.83812 2 9.63742 2.17206 10.3633 2.4834C10.6169 2.59218 10.7344 2.88597 10.626 3.13965C10.5171 3.39343 10.2226 3.5112 9.96875 3.40234C9.36524 3.14353 8.7 3 8 3C5.23857 3 3 5.23857 3 8C3 9.91807 4.08047 11.5852 5.66699 12.4238V9.83301C5.66717 9.55702 5.89096 9.33301 6.16699 9.33301C6.44287 9.33318 6.66682 9.55713 6.66699 9.83301V13.5C6.66699 13.776 6.44298 13.9998 6.16699 14H2.5C2.22386 14 2 13.7761 2 13.5C2 13.2239 2.22386 13 2.5 13H4.68262C3.06622 11.9254 2 10.0876 2 8C2 4.68629 4.68629 2 8 2Z","M8.66699 12.667C9.03493 12.6672 9.33282 12.9651 9.33301 13.333C9.33301 13.7011 9.03504 13.9998 8.66699 14C8.29879 14 8 13.7012 8 13.333C8.00019 12.965 8.29891 12.667 8.66699 12.667Z","M10.9121 11.708C11.2309 11.5242 11.6383 11.6334 11.8223 11.9521C12.0064 12.271 11.897 12.6782 11.5781 12.8623C11.2594 13.0463 10.8521 12.9377 10.668 12.6191C10.4838 12.3003 10.5932 11.8921 10.9121 11.708Z","M12.376 9.75586C12.5601 9.43729 12.9674 9.32794 13.2861 9.51172C13.605 9.69585 13.7143 10.104 13.5303 10.4229C13.3462 10.7414 12.9389 10.8507 12.6201 10.667C12.3013 10.4829 12.1919 10.0747 12.376 9.75586Z","M13.333 6.66699C13.7011 6.66699 13.9998 6.96497 14 7.33301C14 7.70121 13.7012 8 13.333 8C12.9649 7.99985 12.667 7.70111 12.667 7.33301C12.6672 6.96507 12.9651 6.66715 13.333 6.66699Z","M11.9512 4.17871C12.27 3.99462 12.6782 4.10398 12.8623 4.42285C13.046 4.74155 12.9367 5.14888 12.6182 5.33301C12.2994 5.5171 11.8912 5.40773 11.707 5.08887C11.5233 4.77008 11.6326 4.36275 11.9512 4.17871Z"],"ArrowRefreshRedo/m/outline":["M8 1.875C8.85518 1.875 9.67106 2.05042 10.4121 2.36816C10.7293 2.50422 10.8763 2.87222 10.7402 3.18945C10.6041 3.5065 10.2371 3.65352 9.91992 3.51758C9.33152 3.26522 8.68288 3.125 8 3.125C5.30761 3.125 3.125 5.30761 3.125 8C3.125 9.79478 4.09608 11.3627 5.54199 12.209V9.83301C5.54216 9.48797 5.82192 9.20801 6.16699 9.20801C6.51192 9.20818 6.79183 9.48808 6.79199 9.83301V13.5C6.79182 13.8449 6.51191 14.1248 6.16699 14.125H2.5C2.15493 14.125 1.87518 13.845 1.875 13.5C1.87516 13.155 2.15492 12.875 2.5 12.875H4.29395C2.82481 11.7565 1.875 9.99012 1.875 8C1.875 4.61726 4.61726 1.875 8 1.875Z","M8.66699 12.667C9.03493 12.6672 9.33282 12.9651 9.33301 13.333C9.33301 13.7011 9.03504 13.9998 8.66699 14C8.29879 14 8 13.7012 8 13.333C8.00019 12.965 8.29891 12.667 8.66699 12.667Z","M10.9121 11.708C11.2309 11.5242 11.6383 11.6334 11.8223 11.9521C12.0064 12.271 11.897 12.6782 11.5781 12.8623C11.2594 13.0463 10.8521 12.9377 10.668 12.6191C10.4838 12.3003 10.5932 11.8921 10.9121 11.708Z","M12.376 9.75586C12.5601 9.43729 12.9674 9.32794 13.2861 9.51172C13.605 9.69585 13.7143 10.104 13.5303 10.4229C13.3462 10.7414 12.9389 10.8507 12.6201 10.667C12.3013 10.4829 12.1919 10.0747 12.376 9.75586Z","M13.333 6.66699C13.7011 6.66699 13.9998 6.96497 14 7.33301C14 7.70121 13.7012 8 13.333 8C12.9649 7.99985 12.667 7.70111 12.667 7.33301C12.6672 6.96507 12.9651 6.66715 13.333 6.66699Z","M11.9512 4.17871C12.27 3.99462 12.6782 4.10398 12.8623 4.42285C13.046 4.74155 12.9367 5.14888 12.6182 5.33301C12.2994 5.5171 11.8912 5.40773 11.707 5.08887C11.5233 4.77008 11.6326 4.36275 11.9512 4.17871Z"],"ArrowRefreshRedo/s/filled":["M6 1.5C6.62856 1.5 7.22809 1.62883 7.77246 1.8623C7.96281 1.94394 8.05133 2.16513 7.96973 2.35547C7.88802 2.54568 7.66685 2.63337 7.47656 2.55176C7.02393 2.35765 6.525 2.25 6 2.25C3.92893 2.25 2.25 3.92893 2.25 6C2.25 7.43851 3.06016 8.68837 4.25 9.31738V7.375C4.25 7.1679 4.4179 7 4.625 7C4.8321 7 5 7.1679 5 7.375V10.125C5 10.3321 4.8321 10.5 4.625 10.5H1.875C1.6679 10.5 1.5 10.3321 1.5 10.125C1.5 9.9179 1.6679 9.75 1.875 9.75H3.51172C2.29946 8.94404 1.5 7.56567 1.5 6C1.5 3.51472 3.51472 1.5 6 1.5Z","M6.5 9.5C6.77615 9.5 7 9.72385 7 10C7 10.2761 6.77615 10.5 6.5 10.5C6.22385 10.5 6 10.2761 6 10C6 9.72385 6.22385 9.5 6.5 9.5Z","M8.18359 8.78125C8.42274 8.6432 8.72914 8.72472 8.86719 8.96387C9.00529 9.20302 8.92274 9.50941 8.68359 9.64746C8.44449 9.78526 8.13897 9.70291 8.00098 9.46387C7.863 9.22481 7.94467 8.9194 8.18359 8.78125Z","M9.28125 7.31738C9.41935 7.07823 9.72569 6.99574 9.96484 7.13379C10.204 7.2719 10.2855 7.57825 10.1475 7.81738C10.0093 8.05619 9.70385 8.13789 9.46484 8C9.22585 7.86199 9.14357 7.55646 9.28125 7.31738Z","M10 5C10.2761 5 10.5 5.22385 10.5 5.5C10.5 5.77615 10.2761 6 10 6C9.72385 6 9.5 5.77615 9.5 5.5C9.5 5.22385 9.72385 5 10 5Z","M8.96387 3.13379C9.20296 2.99604 9.50846 3.07837 9.64648 3.31738C9.78423 3.55638 9.70267 3.8619 9.46387 4C9.22484 4.13803 8.91844 4.05635 8.78027 3.81738C8.64222 3.57823 8.72477 3.27186 8.96387 3.13379Z"],"ArrowRefreshRedo/s/outline":["M6 1.375C6.64575 1.375 7.26164 1.50806 7.82129 1.74805C8.07507 1.85689 8.19283 2.15051 8.08398 2.4043C7.97516 2.65799 7.68146 2.77567 7.42773 2.66699C6.99025 2.47936 6.50784 2.375 6 2.375C3.99797 2.375 2.375 3.99797 2.375 6C2.375 7.31474 3.07619 8.46496 4.125 9.10059V7.375C4.125 7.09886 4.34886 6.875 4.625 6.875C4.90114 6.875 5.125 7.09886 5.125 7.375V10.125C5.125 10.4011 4.90114 10.625 4.625 10.625H1.875C1.59886 10.625 1.375 10.4011 1.375 10.125C1.375 9.84886 1.59886 9.625 1.875 9.625H3.12793C2.06035 8.77806 1.375 7.46943 1.375 6C1.375 3.44568 3.44568 1.375 6 1.375Z","M6.5 9.5C6.77615 9.5 7 9.72385 7 10C7 10.2761 6.77615 10.5 6.5 10.5C6.22385 10.5 6 10.2761 6 10C6 9.72385 6.22385 9.5 6.5 9.5Z","M8.18359 8.78125C8.42274 8.6432 8.72914 8.72472 8.86719 8.96387C9.00529 9.20302 8.92274 9.50941 8.68359 9.64746C8.44449 9.78526 8.13897 9.70291 8.00098 9.46387C7.863 9.22481 7.94467 8.9194 8.18359 8.78125Z","M9.28125 7.31738C9.41935 7.07823 9.72569 6.99574 9.96484 7.13379C10.204 7.2719 10.2855 7.57825 10.1475 7.81738C10.0093 8.05619 9.70385 8.13789 9.46484 8C9.22585 7.86199 9.14357 7.55646 9.28125 7.31738Z","M10 5C10.2761 5 10.5 5.22385 10.5 5.5C10.5 5.77615 10.2761 6 10 6C9.72385 6 9.5 5.77615 9.5 5.5C9.5 5.22385 9.72385 5 10 5Z","M8.96387 3.13379C9.20296 2.99604 9.50846 3.07837 9.64648 3.31738C9.78423 3.55638 9.70267 3.8619 9.46387 4C9.22484 4.13803 8.91844 4.05635 8.78027 3.81738C8.64222 3.57823 8.72477 3.27186 8.96387 3.13379Z"],"ArrowRight/l/filled":["M13.1161 5.36612C13.6043 4.87796 14.3957 4.87796 14.8839 5.36612L20.6339 11.1161C20.8683 11.3505 21 11.6685 21 12C21 12.3315 20.8683 12.6494 20.6339 12.8839L14.8839 18.6339C14.3957 19.122 13.6043 19.122 13.1161 18.6339C12.628 18.1457 12.628 17.3543 13.1161 16.8661L16.7322 13.25H4.25C3.55964 13.25 3 12.6903 3 12C3 11.3096 3.55964 10.75 4.25 10.75H16.7322L13.1161 7.13388C12.628 6.64573 12.628 5.85427 13.1161 5.36612Z"],"ArrowRight/l/outline":["M13.4697 5.21979C13.7626 4.9269 14.2374 4.9269 14.5303 5.21979L20.7803 11.4698C21.0731 11.7627 21.0732 12.2375 20.7803 12.5303L14.5303 18.7803C14.2374 19.0732 13.7626 19.0732 13.4697 18.7803C13.1768 18.4875 13.1769 18.0127 13.4697 17.7198L18.4395 12.7501H3.75C3.33581 12.7501 3.00003 12.4143 3 12.0001C3 11.5859 3.33579 11.2501 3.75 11.2501H18.4395L13.4697 6.28034C13.1768 5.98746 13.1769 5.51269 13.4697 5.21979Z"],"ArrowRight/m/filled":["M8.74407 3.57739C9.06953 3.25195 9.59713 3.25195 9.9226 3.57739L13.7559 7.41071C13.9122 7.56698 14 7.77898 14 7.99998C14 8.22098 13.9122 8.43291 13.7559 8.58925L9.9226 12.4226C9.59713 12.748 9.06953 12.748 8.74407 12.4226C8.41867 12.0971 8.41867 11.5695 8.74407 11.244L11.1548 8.83331H2.83333C2.37309 8.83331 2 8.46018 2 7.99998C2 7.53971 2.37309 7.16665 2.83333 7.16665H11.1548L8.74407 4.7559C8.41867 4.43047 8.41867 3.90283 8.74407 3.57739Z"],"ArrowRight/m/outline":["M8.89062 3.39131C9.1347 3.14723 9.53131 3.14723 9.77539 3.39131L13.9414 7.5583C14.1855 7.80238 14.1855 8.19802 13.9414 8.44209L9.77539 12.6091C9.53129 12.8528 9.13458 12.853 8.89062 12.6091C8.64695 12.3652 8.64731 11.9694 8.89062 11.7253L11.9902 8.62471H2.5C2.15482 8.62471 1.875 8.34489 1.875 7.99971C1.87515 7.65466 2.15491 7.37471 2.5 7.37471H11.9902L8.89062 4.27608C8.64667 4.03213 8.64693 3.63542 8.89062 3.39131Z"],"ArrowRight/s/filled":["M6.55805 2.68306C6.80215 2.43898 7.19785 2.43898 7.44195 2.68306L10.3169 5.55805C10.4341 5.67525 10.5 5.83425 10.5 6C10.5 6.16575 10.4341 6.3247 10.3169 6.44195L7.44195 9.31695C7.19785 9.561 6.80215 9.561 6.55805 9.31695C6.314 9.07285 6.314 8.67715 6.55805 8.43305L8.3661 6.625H2.125C1.77982 6.625 1.5 6.34515 1.5 6C1.5 5.6548 1.77982 5.375 2.125 5.375H8.3661L6.55805 3.56694C6.314 3.32287 6.314 2.92713 6.55805 2.68306Z"],"ArrowRight/s/outline":["M6.64648 2.52151C6.84175 2.32625 7.15825 2.32625 7.35352 2.52151L10.4785 5.64651C10.6738 5.84177 10.6738 6.15828 10.4785 6.35354L7.35352 9.47854C7.15826 9.67378 6.84174 9.67378 6.64648 9.47854C6.45123 9.28328 6.45124 8.96677 6.64648 8.77151L8.91797 6.50002H1.875C1.59887 6.50002 1.37502 6.27615 1.375 6.00002C1.375 5.72388 1.59886 5.50002 1.875 5.50002H8.91797L6.64648 3.22854C6.45123 3.03328 6.45124 2.71677 6.64648 2.52151Z"],"ArrowRotateClockwiseRefresh/l/filled":["M4.47852 12C4.47852 7.85786 7.83638 4.5 11.9785 4.5C14.4012 4.5 16.0555 5.46268 17.7064 7.25H15.25C14.8358 7.25 14.5 7.58579 14.5 8C14.5 8.41421 14.8358 8.75 15.25 8.75H18.5C19.3284 8.75 20 8.07843 20 7.25V4C20 3.58579 19.6642 3.25 19.25 3.25C18.8358 3.25 18.5 3.58579 18.5 4V5.90778C16.7377 4.10436 14.7767 3 11.9785 3C7.00795 3 2.97852 7.02944 2.97852 12C2.97852 16.9706 7.00795 21 11.9785 21C15.8983 21 19.2311 18.4945 20.4662 14.9999C20.6042 14.6094 20.3995 14.1809 20.009 14.0429C19.6185 13.9048 19.19 14.1095 19.0519 14.5001C18.022 17.4141 15.2429 19.5 11.9785 19.5C7.83638 19.5 4.47852 16.1421 4.47852 12Z"],"ArrowRotateClockwiseRefresh/l/outline":["M2.979 12C2.979 7.02944 7.00845 3 11.979 3C14.7779 3 16.7379 4.10601 18.5005 5.91016V4C18.5005 3.58579 18.8363 3.25 19.2505 3.25C19.6645 3.25026 20.0005 3.58595 20.0005 4V7.25C20.0005 8.07827 19.3287 8.74974 18.5005 8.75H15.2505C14.8363 8.75 14.5005 8.41421 14.5005 8C14.5005 7.58579 14.8363 7.25 15.2505 7.25H17.7046C16.0541 5.46341 14.4012 4.5 11.979 4.5C7.83688 4.5 4.479 7.85786 4.479 12C4.479 16.1421 7.83688 19.5 11.979 19.5C15.2434 19.5 18.0222 17.414 19.0522 14.5C19.1903 14.1095 19.6188 13.9051 20.0093 14.043C20.3998 14.181 20.6043 14.6095 20.4663 15C19.2311 18.4945 15.8988 21 11.979 21C7.00845 21 2.979 16.9705 2.979 12Z"],"ArrowRotateClockwiseRefresh/m/filled":["M2.98572 8C2.98572 5.23857 5.22429 3 7.9857 3C9.60084 3 10.7037 3.64179 11.8043 4.83333H10.1667C9.89057 4.83333 9.6667 5.05719 9.6667 5.33333C9.6667 5.60947 9.89057 5.83333 10.1667 5.83333H12.3334C12.8856 5.83333 13.3334 5.38562 13.3334 4.83333V2.66667C13.3334 2.39053 13.1095 2.16667 12.8334 2.16667C12.5572 2.16667 12.3334 2.39053 12.3334 2.66667V3.93852C11.1585 2.73624 9.85117 2 7.9857 2C4.672 2 1.98572 4.68629 1.98572 8C1.98572 11.3137 4.672 14 7.9857 14C10.5989 14 12.8208 12.3297 13.6442 9.99993C13.7362 9.7396 13.5997 9.45393 13.3394 9.36193C13.079 9.26987 12.7934 9.40633 12.7013 9.66673C12.0147 11.6094 10.162 13 7.9857 13C5.22429 13 2.98572 10.7614 2.98572 8Z"],"ArrowRotateClockwiseRefresh/m/outline":["M1.86096 8C1.86096 4.61725 4.60322 1.875 7.98596 1.875C9.78117 1.875 11.0699 2.54601 12.2086 3.64062V2.66699C12.2086 2.32181 12.4884 2.04199 12.8336 2.04199C13.1786 2.04217 13.4586 2.32192 13.4586 2.66699V4.83301C13.4586 5.45422 12.9548 5.95783 12.3336 5.95801H10.1666C9.82145 5.95801 9.54163 5.67818 9.54163 5.33301C9.5418 4.98798 9.82156 4.70801 10.1666 4.70801H11.5123C10.4942 3.67035 9.45957 3.125 7.98596 3.125C5.29358 3.125 3.11096 5.30761 3.11096 8C3.11096 10.6924 5.29358 12.875 7.98596 12.875C10.1076 12.875 11.9141 11.5193 12.5836 9.625C12.6987 9.29955 13.056 9.12911 13.3815 9.24414C13.7068 9.35924 13.8773 9.7166 13.7623 10.042C12.9217 12.4199 10.6537 14.125 7.98596 14.125C4.60322 14.125 1.86096 11.3827 1.86096 8Z"],"ArrowRotateClockwiseRefresh/s/filled":["M2.23926 6C2.23926 3.92893 3.91819 2.25 5.98925 2.25C7.2006 2.25 8.02775 2.73134 8.8532 3.625H7.625C7.4179 3.625 7.25 3.7929 7.25 4C7.25 4.2071 7.4179 4.375 7.625 4.375H9.25C9.6642 4.375 10 4.03922 10 3.625V2C10 1.7929 9.8321 1.625 9.625 1.625C9.4179 1.625 9.25 1.7929 9.25 2V2.95389C8.36885 2.05218 7.38835 1.5 5.98925 1.5C3.50397 1.5 1.48926 3.51472 1.48926 6C1.48926 8.4853 3.50397 10.5 5.98925 10.5C7.94915 10.5 9.61555 9.24725 10.2331 7.49995C10.3021 7.3047 10.1997 7.09045 10.0045 7.02145C9.80925 6.9524 9.595 7.05475 9.52595 7.25005C9.011 8.70705 7.62145 9.75 5.98925 9.75C3.91819 9.75 2.23926 8.07105 2.23926 6Z"],"ArrowRotateClockwiseRefresh/s/outline":["M1.3645 6C1.3645 3.44568 3.43519 1.375 5.9895 1.375C7.31809 1.375 8.27975 1.862 9.12524 2.65723V2C9.12524 1.72386 9.3491 1.5 9.62524 1.5C9.90127 1.50013 10.1252 1.72394 10.1252 2V3.625C10.1252 4.10817 9.73337 4.49987 9.25024 4.5H7.62524C7.3491 4.5 7.12524 4.27614 7.12524 4C7.12524 3.72386 7.3491 3.5 7.62524 3.5H8.55981C7.81729 2.76044 7.05897 2.375 5.9895 2.375C3.98747 2.375 2.3645 3.99797 2.3645 6C2.3645 8.00201 3.98748 9.625 5.9895 9.625C7.56707 9.625 8.91055 8.61664 9.40845 7.20801C9.50056 6.94799 9.78599 6.81157 10.0461 6.90332C10.3065 6.99535 10.4429 7.28164 10.3508 7.54199C9.716 9.33743 8.00387 10.625 5.9895 10.625C3.43519 10.625 1.3645 8.55429 1.3645 6Z"],"ArrowsBranchRight/l/filled":["M19.75 3C20.1642 3 20.5 3.33579 20.5 3.75V9.25C20.5 9.66421 20.1642 10 19.75 10C19.3358 10 19 9.66421 19 9.25V5.56055L12.5605 12L19 18.4395V14.75C19 14.3358 19.3358 14 19.75 14C20.1642 14 20.5 14.3358 20.5 14.75V20.25C20.5 20.6642 20.1642 21 19.75 21H14.25C13.8358 21 13.5 20.6642 13.5 20.25C13.5 19.8358 13.8358 19.5 14.25 19.5H17.9395L11.1895 12.75H3.25C2.83579 12.75 2.5 12.4142 2.5 12C2.5 11.5858 2.83579 11.25 3.25 11.25H11.1895L17.9395 4.5H14.25C13.8358 4.5 13.5 4.16421 13.5 3.75C13.5 3.33579 13.8358 3 14.25 3H19.75Z"],"ArrowsBranchRight/l/outline":["M19.75 3C20.1642 3 20.5 3.33579 20.5 3.75V9.25C20.5 9.66421 20.1642 10 19.75 10C19.3358 10 19 9.66421 19 9.25V5.56055L12.5605 12L19 18.4395V14.75C19 14.3358 19.3358 14 19.75 14C20.1642 14 20.5 14.3358 20.5 14.75V20.25C20.5 20.6642 20.1642 21 19.75 21H14.25C13.8358 21 13.5 20.6642 13.5 20.25C13.5 19.8358 13.8358 19.5 14.25 19.5H17.9395L11.1895 12.75H3.25C2.83579 12.75 2.5 12.4142 2.5 12C2.5 11.5858 2.83579 11.25 3.25 11.25H11.1895L17.9395 4.5H14.25C13.8358 4.5 13.5 4.16421 13.5 3.75C13.5 3.33579 13.8358 3 14.25 3H19.75Z"],"ArrowsBranchRight/m/filled":["M13.1666 2C13.4428 2 13.6666 2.22386 13.6666 2.5V6.16667C13.6666 6.44281 13.4428 6.66667 13.1666 6.66667C12.8905 6.66667 12.6666 6.44281 12.6666 6.16667V3.70703L8.37363 8L12.6666 12.293V9.83333C12.6666 9.5572 12.8905 9.33333 13.1666 9.33333C13.4428 9.33333 13.6666 9.5572 13.6666 9.83333V13.5C13.6666 13.7761 13.4428 14 13.1666 14H9.49996C9.22383 14 8.99996 13.7761 8.99996 13.5C8.99996 13.2239 9.22383 13 9.49996 13H11.9596L7.45963 8.5H2.16663C1.89049 8.5 1.66663 8.27613 1.66663 8C1.66663 7.72387 1.89049 7.5 2.16663 7.5H7.45963L11.9596 3H9.49996C9.22383 3 8.99996 2.77614 8.99996 2.5C8.99996 2.22386 9.22383 2 9.49996 2H13.1666Z"],"ArrowsBranchRight/m/outline":["M13.167 1.875C13.512 1.87518 13.792 2.15493 13.792 2.5V6.16699C13.7918 6.51191 13.5119 6.79182 13.167 6.79199C12.8219 6.79199 12.5422 6.51202 12.542 6.16699V4.00977L8.55176 8L12.542 11.9902V9.83301C12.5422 9.48798 12.8219 9.20801 13.167 9.20801C13.5119 9.20818 13.7918 9.48809 13.792 9.83301V13.5C13.7918 13.8449 13.5119 14.1248 13.167 14.125H9.5C9.15493 14.125 8.87518 13.845 8.875 13.5C8.87518 13.155 9.15493 12.875 9.5 12.875H11.6572L7.40723 8.625H2.16699C1.82181 8.625 1.54199 8.34518 1.54199 8C1.54199 7.65482 1.82181 7.375 2.16699 7.375H7.40723L11.6572 3.125H9.5C9.15482 3.125 8.875 2.84518 8.875 2.5C8.875 2.15482 9.15482 1.875 9.5 1.875H13.167Z"],"ArrowsBranchRight/s/filled":["M9.875 1.5C10.0821 1.5 10.25 1.6679 10.25 1.875V4.625C10.25 4.8321 10.0821 5 9.875 5C9.6679 5 9.5 4.8321 9.5 4.625V2.78028L6.28025 6L9.5 9.21975V7.375C9.5 7.1679 9.6679 7 9.875 7C10.0821 7 10.25 7.1679 10.25 7.375V10.125C10.25 10.3321 10.0821 10.5 9.875 10.5H7.125C6.9179 10.5 6.75 10.3321 6.75 10.125C6.75 9.9179 6.9179 9.75 7.125 9.75H8.96975L5.59475 6.375H1.625C1.4179 6.375 1.25 6.2071 1.25 6C1.25 5.7929 1.4179 5.625 1.625 5.625H5.59475L8.96975 2.25H7.125C6.9179 2.25 6.75 2.0821 6.75 1.875C6.75 1.6679 6.9179 1.5 7.125 1.5H9.875Z"],"ArrowsBranchRight/s/outline":["M9.875 1.375C10.1511 1.375 10.375 1.59886 10.375 1.875V4.625C10.375 4.90114 10.1511 5.125 9.875 5.125C9.59886 5.125 9.375 4.90114 9.375 4.625V3.08203L6.45703 6L9.375 8.91797V7.375C9.375 7.09886 9.59886 6.875 9.875 6.875C10.1511 6.875 10.375 7.09886 10.375 7.375V10.125C10.375 10.4011 10.1511 10.625 9.875 10.625H7.125C6.84886 10.625 6.625 10.4011 6.625 10.125C6.625 9.84886 6.84886 9.625 7.125 9.625H8.66797L5.54297 6.5H1.625C1.34886 6.5 1.125 6.27614 1.125 6C1.125 5.72386 1.34886 5.5 1.625 5.5H5.54297L8.66797 2.375H7.125C6.84886 2.375 6.625 2.15114 6.625 1.875C6.625 1.59886 6.84886 1.375 7.125 1.375H9.875Z"],"ArrowTriangleLeft/l/filled":["M16.0883 4.29268C17.9137 3.38028 20.0627 4.70658 20.0629 6.74776V17.2517C20.0629 19.2929 17.9138 20.6201 16.0883 19.7077L5.58049 14.4558C3.55643 13.4441 3.55657 10.5564 5.58049 9.54463L16.0883 4.29268Z"],"ArrowTriangleLeft/l/outline":["M16.0258 4.29171C17.8512 3.37977 20.0002 4.70678 20.0004 6.74776V17.2517C20.0004 19.293 17.8513 20.6198 16.0258 19.7077L5.51898 14.4558C3.49481 13.444 3.49481 10.5554 5.51898 9.54366L16.0258 4.29171ZM18.5004 6.74776C18.5002 5.82266 17.5256 5.21968 16.6967 5.6335L6.1889 10.8855C5.27068 11.3445 5.27068 12.6549 6.1889 13.114L16.6967 18.3659C17.5258 18.78 18.5004 18.177 18.5004 17.2517V6.74776Z"],"ArrowTriangleLeft/m/filled":["M10.7252 2.86124C11.9422 2.25294 13.3746 3.13806 13.3746 4.49893V11.5009C13.3746 12.8618 11.9422 13.7468 10.7252 13.1386L3.72032 9.63663C2.37115 8.96209 2.37113 7.0377 3.72032 6.36319L10.7252 2.86124Z"],"ArrowTriangleLeft/m/outline":["M10.6279 2.74919C11.9278 2.09987 13.4586 3.04477 13.459 4.49821V11.5011C13.4588 12.9549 11.9278 13.8998 10.6279 13.2502L3.62303 9.74821C2.18163 9.02755 2.1815 6.9707 3.62303 6.25017L10.6279 2.74919ZM12.209 4.49821C12.2086 3.97477 11.6568 3.63339 11.1875 3.86735L4.18162 7.36833C3.66187 7.62831 3.66204 8.36991 4.18162 8.63005L11.1875 12.132C11.657 12.3662 12.2088 12.0247 12.209 11.5011V4.49821Z"],"ArrowTriangleLeft/s/filled":["M8.04399 2.14627C8.95669 1.69008 10.0312 2.35326 10.0313 3.37381V8.62576C10.0313 9.64639 8.95673 10.3104 8.04399 9.85428L2.79009 7.22733C1.77843 6.72135 1.77834 5.27813 2.79009 4.77225L8.04399 2.14627Z"],"ArrowTriangleLeft/s/outline":["M7.95696 2.03441C8.95277 1.53678 10.1249 2.26064 10.1249 3.37426V8.62621C10.1248 9.67016 9.09462 10.3715 8.14543 10.0452L7.95696 9.96605L2.70305 7.34008C1.59886 6.78816 1.59895 5.21239 2.70305 4.66039L7.95696 2.03441ZM9.12493 3.37426C9.12493 3.00461 8.73564 2.7635 8.40422 2.92894L3.15032 5.55492C2.78341 5.73844 2.78332 6.26211 3.15032 6.44555L8.40422 9.07152C8.73561 9.23687 9.12477 8.99568 9.12493 8.62621V3.37426Z"],"ArrowTriangleRight/l/filled":["M4 6.74776C4.00017 4.70658 6.14915 3.38028 7.97461 4.29268L18.4814 9.54463C20.5055 10.5563 20.5056 13.4441 18.4814 14.4558L7.97461 19.7077C6.14908 20.6201 4 19.293 4 17.2517V6.74776Z"],"ArrowTriangleRight/l/outline":["M4.0625 6.74776C4.06271 4.70667 6.21169 3.37942 8.03711 4.29171L18.5439 9.54366C20.568 10.5554 20.5687 13.4438 18.5449 14.4558L8.03711 19.7077C6.21164 20.62 4.0625 19.2931 4.0625 17.2517V6.74776ZM7.36621 5.63351C6.53736 5.21933 5.56271 5.82252 5.5625 6.74776V17.2517C5.5625 18.1771 6.53716 18.7802 7.36621 18.3659L17.874 13.114C18.7921 12.6549 18.7922 11.3445 17.874 10.8855L7.36621 5.63351Z"],"ArrowTriangleRight/m/filled":["M2.66699 4.49887C2.66699 3.138 4.09939 2.25288 5.31641 2.86118L12.3213 6.36313C13.6706 7.03764 13.6707 8.96309 12.3213 9.63754L5.31641 13.1385C4.09939 13.7468 2.66699 12.8617 2.66699 11.5008V4.49887Z"],"ArrowTriangleRight/m/outline":["M2.58301 4.49831C2.58327 3.0449 4.11327 2.10017 5.41309 2.74929L12.418 6.25026C13.8594 6.97075 13.8601 9.02754 12.4189 9.74831L5.41309 13.2503C4.11326 13.8995 2.58321 12.9548 2.58301 11.5012V4.49831ZM4.85449 3.86745C4.38509 3.63319 3.83327 3.97469 3.83301 4.49831V11.5012C3.83321 12.0249 4.38497 12.3665 4.85449 12.1321L11.8594 8.63015C12.3794 8.37019 12.3795 7.6284 11.8594 7.36843L4.85449 3.86745Z"],"ArrowTriangleRight/s/filled":["M2 3.37381C2.00013 2.35326 3.07459 1.69008 3.9873 2.14627L9.24121 4.77225C10.2529 5.27814 10.2528 6.72134 9.24121 7.22733L3.9873 9.85428C3.07455 10.3105 2 9.6464 2 8.62576V3.37381Z"],"ArrowTriangleRight/s/outline":["M1.90625 3.37423C1.90625 2.26063 3.07842 1.53674 4.07422 2.03439L9.32812 4.66036C10.4323 5.21234 10.4323 6.78812 9.32812 7.34005L4.07422 9.96603C3.07855 10.4635 1.9064 9.7397 1.90625 8.62618V3.37423ZM3.62695 2.92892C3.29556 2.76347 2.90625 3.00457 2.90625 3.37423V8.62618C2.9064 8.99565 3.29559 9.23681 3.62695 9.0715L8.88086 6.44552C9.24783 6.26209 9.24783 5.7384 8.88086 5.5549L3.62695 2.92892Z"],"ArrowUndoUp/l/filled":["M7.03018 5.53033C7.32307 5.23744 7.32307 4.76256 7.03018 4.46967C6.73729 4.17678 6.26241 4.17678 5.96952 4.46967L2.67663 7.76256C1.99321 8.44598 1.99321 9.55402 2.67663 10.2374L5.96952 13.5303C6.26241 13.8232 6.73729 13.8232 7.03018 13.5303C7.32307 13.2374 7.32307 12.7626 7.03018 12.4697L4.31051 9.75H17.25C19.0449 9.75 20.5 11.2051 20.5 13V14.25C20.5 16.0449 19.0449 17.5 17.25 17.5H11.75C11.3358 17.5 11 17.8358 11 18.25C11 18.6642 11.3358 19 11.75 19H17.25C19.8734 19 22 16.8734 22 14.25V13C22 10.3766 19.8734 8.25 17.25 8.25H4.31051L7.03018 5.53033Z"],"ArrowUndoUp/l/outline":["M5.96972 4.46975C6.26262 4.17695 6.7374 4.17688 7.03026 4.46975C7.32294 4.76262 7.323 5.23745 7.03026 5.53029L4.31054 8.25002H17.25C19.8732 8.25009 22 10.3768 22 13V14.25C21.9999 16.8733 19.8732 19 17.25 19H11.75C11.3358 19 11 18.6642 11 18.25C11 17.8358 11.3358 17.5 11.75 17.5H17.25C19.0448 17.5 20.4999 16.0448 20.5 14.25V13C20.5 11.2052 19.0448 9.75009 17.25 9.75002H4.31054L7.03026 12.4697C7.32294 12.7626 7.323 13.2375 7.03026 13.5303C6.73743 13.8231 6.26263 13.823 5.96972 13.5303L2.67675 10.2373C1.99333 9.5539 1.99333 8.44614 2.67675 7.76272L5.96972 4.46975Z"],"ArrowUndoUp/m/filled":["M4.68676 3.68686C4.88202 3.4916 4.88202 3.17502 4.68676 2.97976C4.4915 2.7845 4.17492 2.7845 3.97966 2.97976L1.7844 5.17502C1.32878 5.63063 1.32878 6.36932 1.7844 6.82491L3.97966 9.02018C4.17492 9.21545 4.4915 9.21545 4.68676 9.02018C4.88202 8.82491 4.88202 8.50838 4.68676 8.31311L2.87365 6.49998H11.5C12.6966 6.49998 13.6666 7.47005 13.6666 8.66665V9.49998C13.6666 10.6966 12.6966 11.6666 11.5 11.6666H7.83331C7.55718 11.6666 7.33331 11.8905 7.33331 12.1666C7.33331 12.4428 7.55718 12.6666 7.83331 12.6666H11.5C13.2489 12.6666 14.6666 11.2489 14.6666 9.49998V8.66665C14.6666 6.91771 13.2489 5.49998 11.5 5.49998H2.87365L4.68676 3.68686Z"],"ArrowUndoUp/m/outline":["M3.89059 2.89056C4.13439 2.64681 4.53025 2.64734 4.77438 2.89056C5.01846 3.13464 5.01846 3.53125 4.77438 3.77533L3.17379 5.37494H11.5C13.3178 5.37505 14.792 6.84911 14.792 8.66695V9.49996C14.792 11.3178 13.3178 12.7919 11.5 12.792H7.83397C7.4889 12.792 7.20914 12.512 7.20896 12.167C7.20898 11.8218 7.4888 11.542 7.83397 11.542H11.5C12.6275 11.5419 13.542 10.6275 13.542 9.49996V8.66695C13.542 7.53947 12.6275 6.62505 11.5 6.62495H3.17476L4.77438 8.22457C5.01846 8.46864 5.01846 8.86428 4.77438 9.10836C4.53027 9.35209 4.13455 9.35232 3.89059 9.10836L1.69526 6.91304C1.19143 6.40858 1.19109 5.59013 1.69526 5.08588L3.89059 2.89056Z"],"ArrowUndoUp/s/filled":["M3.51509 2.76516C3.66153 2.61872 3.66153 2.38128 3.51509 2.23483C3.36864 2.08839 3.1312 2.08839 2.98476 2.23483L1.33831 3.88128C0.996604 4.22299 0.996604 4.77701 1.33831 5.1187L2.98476 6.76515C3.1312 6.9116 3.36864 6.9116 3.51509 6.76515C3.66153 6.6187 3.66153 6.3813 3.51509 6.23485L2.15525 4.875H8.625C9.52245 4.875 10.25 5.60255 10.25 6.5V7.125C10.25 8.02245 9.52245 8.75 8.625 8.75H5.875C5.6679 8.75 5.5 8.9179 5.5 9.125C5.5 9.3321 5.6679 9.5 5.875 9.5H8.625C9.9367 9.5 11 8.4367 11 7.125V6.5C11 5.1883 9.9367 4.125 8.625 4.125H2.15525L3.51509 2.76516Z"],"ArrowUndoUp/s/outline":["M2.89647 2.14648C3.09174 1.95127 3.40825 1.95124 3.6035 2.14648C3.79864 2.34174 3.79868 2.65828 3.6035 2.85352L2.45702 4H8.62499C10.0056 4.00004 11.125 5.11933 11.125 6.5V7.125C11.125 8.50565 10.0056 9.62496 8.62499 9.625H5.87499C5.59886 9.625 5.37502 9.40112 5.37499 9.125C5.37499 8.84886 5.59884 8.625 5.87499 8.625H8.62499C9.45334 8.62496 10.125 7.95336 10.125 7.125V6.5C10.125 5.67162 9.45336 5.00004 8.62499 5H2.45702L3.6035 6.14649C3.79864 6.34174 3.79868 6.65829 3.6035 6.85352C3.40827 7.04875 3.09174 7.04868 2.89647 6.85352L1.24999 5.20703C0.859461 4.81651 0.859461 4.1835 1.24999 3.79297L2.89647 2.14648Z"],"ArrowUp/l/filled":["M12 3C12.3315 3 12.6494 3.1317 12.8839 3.36612L18.6339 9.11612C19.122 9.60427 19.122 10.3957 18.6339 10.8839C18.1457 11.372 17.3543 11.372 16.8661 10.8839L13.25 7.26776V19.75C13.25 20.4404 12.6903 21 12 21C11.3096 21 10.75 20.4404 10.75 19.75V7.26777L7.13388 10.8839C6.64573 11.372 5.85427 11.372 5.36612 10.8839C4.87796 10.3957 4.87796 9.60427 5.36612 9.11612L11.1161 3.36612C11.3505 3.1317 11.6685 3 12 3Z"],"ArrowUp/l/outline":["M11.5264 3.16785C11.821 2.92763 12.2557 2.94506 12.5303 3.21961L18.7803 9.46961C19.0732 9.76247 19.0731 10.2373 18.7803 10.5302C18.4874 10.823 18.0127 10.823 17.7198 10.5302L12.7501 5.56043V20.2499C12.7501 20.6641 12.4142 20.9998 12.0001 20.9999C11.5858 20.9999 11.2501 20.6641 11.2501 20.2499V5.56043L6.28032 10.5302C5.98743 10.823 5.51267 10.823 5.21978 10.5302C4.92691 10.2373 4.92689 9.76249 5.21978 9.46961L11.4698 3.21961L11.5264 3.16785Z"],"ArrowUp/m/filled":["M8.00004 2C8.22104 2 8.43297 2.0878 8.58931 2.24408L12.4226 6.07741C12.748 6.40285 12.748 6.93047 12.4226 7.25593C12.0972 7.58133 11.5696 7.58133 11.2441 7.25593L8.83337 4.84517V13.1667C8.83337 13.6269 8.46024 14 8.00004 14C7.53977 14 7.16671 13.6269 7.16671 13.1667V4.84518L4.75596 7.25593C4.43053 7.58133 3.90289 7.58133 3.57745 7.25593C3.25201 6.93047 3.25201 6.40285 3.57745 6.07741L7.41077 2.24408C7.56704 2.0878 7.77904 2 8.00004 2Z"],"ArrowUp/m/outline":["M7.65626 1.97749C7.8986 1.81784 8.22798 1.84464 8.44141 2.05757L12.6084 6.22457C12.8524 6.46859 12.8523 6.86426 12.6084 7.10835C12.3643 7.35225 11.9686 7.35237 11.7246 7.10835L8.62501 4.00874V13.5C8.62501 13.8451 8.34519 14.125 8.00001 14.125C7.65484 14.1249 7.37501 13.8451 7.37501 13.5V4.00777L4.2754 7.10835C4.03131 7.35225 3.63465 7.35237 3.39063 7.10835C3.1472 6.86435 3.14707 6.46849 3.39063 6.22457L7.55762 2.05757L7.65626 1.97749Z"],"ArrowUp/s/filled":["M6 1.5C6.16575 1.5 6.3247 1.56585 6.44195 1.68306L9.31695 4.55806C9.561 4.80214 9.561 5.19785 9.31695 5.44195C9.07285 5.686 8.67715 5.686 8.43305 5.44195L6.625 3.63388V9.875C6.625 10.2202 6.34515 10.5 6 10.5C5.6548 10.5 5.375 10.2202 5.375 9.875V3.63388L3.56694 5.44195C3.32287 5.686 2.92713 5.686 2.68306 5.44195C2.43898 5.19785 2.43898 4.80214 2.68306 4.55806L5.55805 1.68306C5.67525 1.56585 5.83425 1.5 6 1.5Z"],"ArrowUp/s/outline":["M5.72465 1.45685C5.91869 1.3288 6.18273 1.35055 6.35356 1.5213L9.47856 4.6463C9.67378 4.84153 9.6737 5.15806 9.47856 5.35334C9.2833 5.5486 8.96679 5.5486 8.77153 5.35334L6.50004 3.08185V10.1248C6.50004 10.4009 6.27617 10.6248 6.00004 10.6248C5.7239 10.6248 5.50004 10.401 5.50004 10.1248V3.08185L3.22856 5.35334C3.0333 5.5486 2.71679 5.5486 2.52153 5.35334C2.32635 5.15807 2.32629 4.84154 2.52153 4.6463L5.64653 1.5213L5.72465 1.45685Z"],"ArtifactFrame/l/filled":["M9.47949 3.08332C12.5551 1.31193 16.4733 2.47516 18.6133 5.46418C19.1383 6.1978 18.831 7.1434 18.1367 7.54328L15.1729 9.25032H20.4307C21.2146 9.25041 21.8496 9.88632 21.8496 10.6702V19.4642C21.8494 20.2479 21.2144 20.884 20.4307 20.8841H14.1699C13.3861 20.8841 12.7502 20.248 12.75 19.4642V10.6702C12.75 10.6618 12.7508 10.6533 12.751 10.6448L9.27344 12.6478C10.2024 13.5178 10.7841 14.7542 10.7842 16.1273C10.7839 18.7597 8.65001 20.8936 6.01758 20.8939C3.38493 20.8939 1.25025 18.7599 1.25 16.1273C1.25017 13.4946 3.38488 11.3597 6.01758 11.3597C6.23351 11.3597 6.44598 11.3748 6.6543 11.4027C5.60408 8.23471 6.63847 4.71977 9.47949 3.08332Z"],"ArtifactFrame/l/outline":["M9.47949 3.0826C12.555 1.31141 16.4733 2.47469 18.6133 5.46346C19.1384 6.19704 18.831 7.14258 18.1367 7.54256L15.1729 9.24959H20.4307C21.2144 9.24969 21.8494 9.88579 21.8496 10.6695V19.4635C21.8496 20.2474 21.2145 20.8833 20.4307 20.8834H14.1699C13.386 20.8834 12.75 20.2474 12.75 19.4635V10.6695C12.75 10.661 12.7508 10.6526 12.751 10.6441L9.27344 12.6471C10.2027 13.5171 10.7842 14.7542 10.7842 16.1275C10.7839 18.76 8.65001 20.8939 6.01758 20.8941C3.38493 20.8941 1.25025 18.7601 1.25 16.1275C1.25002 13.4947 3.38479 11.3599 6.01758 11.3599C6.2335 11.36 6.44598 11.3751 6.6543 11.4029C5.60377 8.23479 6.63821 4.7191 9.47949 3.0826ZM6.01758 12.8599C4.21322 12.8599 2.75002 14.3232 2.75 16.1275C2.75025 17.9317 4.21336 19.3941 6.01758 19.3941C7.82158 19.3939 9.28393 17.9315 9.28418 16.1275C9.28416 14.3233 7.82173 12.8602 6.01758 12.8599ZM14.25 19.3834H20.3496V10.7496H14.25V19.3834ZM17.3428 6.26815C15.5628 3.84741 12.5001 3.07438 10.2285 4.38241C7.95683 5.69077 7.08818 8.72833 8.28906 11.483L17.3428 6.26815Z"],"ArtifactFrame/m/filled":["M6.2572 1.94681C8.37273 0.72839 11.0528 1.5346 12.5101 3.56986C12.9079 4.12561 12.6729 4.83691 12.1537 5.13627L10.5824 6.04154H13.6205C14.212 6.04172 14.6917 6.52133 14.6918 7.11283V12.9761C14.6916 13.5675 14.2119 14.0472 13.6205 14.0474H9.44666C8.85512 14.0474 8.37556 13.5676 8.37537 12.9761V7.31205L6.38708 8.45755C6.96116 9.0517 7.31473 9.86021 7.31482 10.7515C7.31458 12.5755 5.8352 14.0552 4.01111 14.0552C2.18718 14.055 0.708616 12.5754 0.708374 10.7515C0.708558 8.92753 2.18714 7.44895 4.01111 7.44877C4.09489 7.44877 4.17791 7.4524 4.26013 7.45853C3.64188 5.34716 4.35788 3.04077 6.2572 1.94681Z"],"ArtifactFrame/m/outline":["M6.25781 1.94746C8.37347 0.729082 11.0535 1.53497 12.5107 3.57051C12.9081 4.12616 12.6733 4.83755 12.1543 5.13692L10.585 6.04121H13.6201C14.2116 6.04121 14.6911 6.52105 14.6914 7.1125V12.9758C14.6912 13.5673 14.2117 14.0471 13.6201 14.0471H9.44629C8.85475 14.047 8.3752 13.5673 8.375 12.9758V7.31367L6.3877 8.45821C6.96126 9.05227 7.31436 9.86033 7.31445 10.7512C7.31439 12.5754 5.83494 14.0549 4.01074 14.0549C2.18685 14.0545 0.708072 12.5751 0.708008 10.7512C0.708192 8.92732 2.18692 7.4488 4.01074 7.44844C4.09475 7.44844 4.17831 7.45204 4.26074 7.45821C3.64258 5.34694 4.35849 3.04139 6.25781 1.94746ZM4.01074 8.69844C2.87728 8.6988 1.95819 9.61767 1.95801 10.7512C1.95807 11.8848 2.87721 12.8045 4.01074 12.8049C5.14458 12.8049 6.06439 11.885 6.06445 10.7512C6.06427 9.61745 5.14451 8.69844 4.01074 8.69844ZM9.625 12.7971H13.4414V7.29121H9.625V12.7971ZM11.377 4.1418C10.2115 2.6588 8.29686 2.21574 6.88184 3.03047C5.46682 3.84544 4.88807 5.72438 5.58594 7.47676L11.377 4.1418Z"],"ArtifactFrame/s/filled":["M4.67773 1.43374C6.28074 0.510527 8.30758 1.12204 9.4082 2.65932C9.71856 3.09295 9.53463 3.64744 9.13086 3.88003L8.05371 4.50014H10.2148C10.6759 4.50015 11.0498 4.87408 11.0498 5.33511V9.73159C11.0497 10.1926 10.6758 10.5666 10.2148 10.5666H7.08496C6.62398 10.5666 6.25007 10.1926 6.25 9.73159V5.53823L4.83789 6.35171C5.25789 6.80025 5.51753 7.40082 5.51758 8.06362C5.51745 9.44887 4.39404 10.5723 3.00879 10.5724C1.62343 10.5724 0.500126 9.44895 0.5 8.06362C0.500096 6.67827 1.62341 5.55483 3.00879 5.55483C3.05834 5.55484 3.10741 5.55883 3.15625 5.56167C2.71011 3.97752 3.25085 2.25558 4.67773 1.43374Z"],"ArtifactFrame/s/outline":["M4.67773 1.43377C6.28074 0.510557 8.30758 1.12207 9.4082 2.65935C9.71853 3.09297 9.53462 3.64747 9.13086 3.88006L8.05371 4.50018H10.2148C10.6759 4.50018 11.0498 4.87411 11.0498 5.33514V9.73162C11.0497 10.1926 10.6758 10.5666 10.2148 10.5666H7.08496C6.62399 10.5666 6.25009 10.1926 6.25 9.73162V5.53826L4.83789 6.35174C5.25791 6.80025 5.51754 7.40082 5.51758 8.06365C5.51745 9.4489 4.39404 10.5723 3.00879 10.5724C1.62343 10.5724 0.500126 9.44898 0.5 8.06365C0.500071 6.67828 1.6234 5.55486 3.00879 5.55486C3.05834 5.55487 3.10741 5.55886 3.15625 5.5617C2.71002 3.97752 3.25082 2.25564 4.67773 1.43377ZM3.00879 6.55486C2.17568 6.55486 1.50007 7.23056 1.5 8.06365C1.50013 8.8967 2.17571 9.57244 3.00879 9.57244C3.84176 9.57232 4.51745 8.89662 4.51758 8.06365C4.51751 7.23064 3.84179 6.55499 3.00879 6.55486ZM7.25 9.56658H10.0498V5.50017H7.25V9.56658ZM8.4834 3.09881C7.61536 2.01947 6.21325 1.70312 5.17676 2.29998C4.1405 2.89686 3.70947 4.26844 4.20703 5.56072L8.4834 3.09881Z"],"BackgroundIntegrationsCombine/l/filled":["M7.41736 4.88428C8.49126 3.81054 10.2321 3.81054 11.306 4.88428L16.4779 10.0562C17.5511 11.1301 17.5515 12.8711 16.4779 13.9448L11.306 19.1167C10.2322 20.1901 8.4912 20.1899 7.41736 19.1167L2.24548 13.9448C1.17183 12.871 1.172 11.1301 2.24548 10.0562L7.41736 4.88428Z","M13.4174 4.88428C14.4913 3.81066 16.2321 3.81058 17.306 4.88428L22.4779 10.0562C23.551 11.1301 23.5513 12.8711 22.4779 13.9448L17.306 19.1167C16.2322 20.1899 14.4912 20.1898 13.4174 19.1167L13.3617 19.061L18.4779 13.9448C19.5513 12.8711 19.551 11.1301 18.4779 10.0562L13.3617 4.93995L13.4174 4.88428Z"],"BackgroundIntegrationsCombine/l/outline":["M13.4183 4.88416C14.4922 3.81039 16.2331 3.81027 17.3069 4.88416L22.4788 10.0551C23.5524 11.1289 23.5524 12.8709 22.4788 13.9447L17.3069 19.1166C16.2332 20.19 14.4921 20.1899 13.4183 19.1166L12.3626 18.0609L11.3069 19.1166C10.2332 20.1902 8.4922 20.1899 7.41826 19.1166L2.24639 13.9447C1.17244 12.8708 1.17242 11.129 2.24639 10.0551L7.41729 4.88416C8.49123 3.8103 10.233 3.81022 11.3069 4.88416L12.3626 5.93884L13.4183 4.88416ZM10.2464 5.9447C9.75832 5.45663 8.96699 5.45676 8.47881 5.9447L3.30693 11.1166C2.81893 11.6047 2.81884 12.3961 3.30693 12.8842L8.47881 18.0551C8.96698 18.5431 9.75829 18.5431 10.2464 18.0551L15.4173 12.8842C15.9053 12.3961 15.9053 11.6047 15.4173 11.1166L10.2464 5.9447ZM16.2464 5.9447C15.7583 5.45663 14.9669 5.45676 14.4788 5.9447L13.4231 6.99939L16.4788 10.0551C17.5525 11.1289 17.5525 12.8708 16.4788 13.9447L13.4231 16.9994L14.4788 18.0551C14.9669 18.5429 15.7584 18.5431 16.2464 18.0551L21.4183 12.8842C21.906 12.3962 21.9058 11.6047 21.4183 11.1166L16.2464 5.9447Z"],"BackgroundIntegrationsCombine/m/filled":["M4.94471 3.25632C5.66064 2.5405 6.82153 2.5405 7.53748 3.25632L10.9857 6.70359C11.7012 7.41946 11.7013 8.58049 10.9857 9.29636L7.53748 12.7446C6.82162 13.4602 5.66061 13.4601 4.94471 12.7446L1.49744 9.29636C0.781615 8.58043 0.781614 7.41952 1.49744 6.70359L4.94471 3.25632Z","M8.94471 3.25632C9.66064 2.54058 10.8215 2.54052 11.5375 3.25632L14.9857 6.70359C15.7011 7.41946 15.7011 8.5805 14.9857 9.29636L11.5375 12.7446C10.8216 13.4601 9.6606 13.46 8.94471 12.7446L8.9076 12.7075L12.3187 9.29636C13.0343 8.58049 13.0342 7.41951 12.3187 6.70359L8.9076 3.29343L8.94471 3.25632Z"],"BackgroundIntegrationsCombine/m/outline":["M8.85644 3.16691C9.62106 2.40245 10.8613 2.40261 11.626 3.16691L15.0732 6.61515C15.838 7.37989 15.838 8.61994 15.0732 9.38469L11.626 12.832C10.8612 13.5967 9.62119 13.5967 8.85644 12.832L8.24023 12.2167L7.62598 12.832C6.86121 13.5966 5.6212 13.5967 4.85644 12.832L1.4082 9.38469C0.643915 8.62001 0.643846 7.3798 1.4082 6.61515L4.85644 3.16691C5.62111 2.40254 6.86125 2.40259 7.62598 3.16691L8.24023 3.78215L8.85644 3.16691ZM6.74219 4.0507C6.46563 3.77455 6.01676 3.77447 5.74023 4.0507L2.29199 7.49894C2.0158 7.77542 2.01585 8.22437 2.29199 8.5009L5.74023 11.9482C6.01685 12.2248 6.46558 12.2247 6.74219 11.9482L10.1895 8.5009C10.466 8.22431 10.466 7.77553 10.1895 7.49894L7.80176 5.11027L7.79883 5.10832L6.74219 4.0507ZM10.7422 4.0507C10.4656 3.77456 10.0167 3.7744 9.74023 4.0507L9.125 4.66594L11.0732 6.61515C11.838 7.3799 11.838 8.61994 11.0732 9.38469L9.125 11.3329L9.74023 11.9482C10.0168 12.2248 10.4656 12.2248 10.7422 11.9482L14.1895 8.5009C14.466 8.22431 14.466 7.77553 14.1895 7.49894L10.7422 4.0507Z"],"BackgroundIntegrationsCombine/s/filled":["M3.70876 2.44208C4.24571 1.90521 5.11613 1.90521 5.6531 2.44208L8.23903 5.02802C8.77567 5.56497 8.77583 6.43546 8.23903 6.97235L5.6531 9.55829C5.11619 10.095 4.24569 10.0949 3.70876 9.55829L1.12282 6.97235C0.585982 6.43544 0.586042 5.56498 1.12282 5.02802L3.70876 2.44208Z","M6.70876 2.44208C7.24571 1.90527 8.11615 1.90523 8.6531 2.44208L11.239 5.02802C11.7756 5.56497 11.7757 6.43547 11.239 6.97235L8.6531 9.55829C8.11621 10.0949 7.24569 10.0949 6.70876 9.55829L6.68142 9.52997L9.23903 6.97235C9.77572 6.43547 9.7756 5.56497 9.23903 5.02802L6.68142 2.46942L6.70876 2.44208Z"],"BackgroundIntegrationsCombine/s/outline":["M6.62029 2.35378C7.20601 1.76802 8.15561 1.7681 8.74138 2.35378L11.3273 4.93971C11.9129 5.52549 11.913 6.47509 11.3273 7.06081L8.74138 9.64675C8.15564 10.2321 7.20594 10.2322 6.62029 9.64675L6.18084 9.20729L5.74138 9.64675C5.15565 10.2321 4.20599 10.2322 3.62029 9.64675L1.03435 7.06081C0.448777 6.47514 0.448896 5.52547 1.03435 4.93971L3.62029 2.35378C4.20604 1.76811 5.15561 1.76812 5.74138 2.35378L6.18084 2.79323L6.62029 2.35378ZM5.03435 3.06081C4.83911 2.86569 4.52256 2.86566 4.32732 3.06081L1.74138 5.64675C1.54646 5.84196 1.54634 6.15863 1.74138 6.35378L4.32732 8.93971C4.5225 9.13463 4.83915 9.13458 5.03435 8.93971L7.62029 6.35378C7.81538 6.15861 7.81528 5.84198 7.62029 5.64675L5.03435 3.06081ZM8.03435 3.06081C7.83911 2.86567 7.52252 2.8656 7.32732 3.06081L6.88787 3.50026L8.32732 4.93971C8.91284 5.52547 8.91294 6.47511 8.32732 7.06081L6.88787 8.50026L7.32732 8.93971C7.52244 9.13469 7.83913 9.13453 8.03435 8.93971L10.6203 6.35378C10.8155 6.15859 10.8154 5.842 10.6203 5.64675L8.03435 3.06081Z"],"BellAlertNotification/l/filled":["M12 2C8.13655 2 4.94782 5.0198 4.75447 8.87114L4.56963 12.5306C4.56065 12.7084 4.5138 12.8822 4.43222 13.0404L3.19525 15.4394C3.06695 15.6882 3 15.9641 3 16.2441C3 17.2138 3.78616 18 4.75593 18H7.30888C7.66846 20.267 9.63185 22 12 22C14.3682 22 16.3315 20.267 16.6911 18H19.2441C20.2138 18 21 17.2138 21 16.2441C21 15.9641 20.9331 15.6882 20.8047 15.4394L19.5678 13.0404C19.4862 12.8822 19.4394 12.7084 19.4304 12.5306L19.2455 8.87139C19.0522 5.02005 15.8634 2 12 2ZM12 20.5C10.4632 20.5 9.17555 19.4333 8.83697 18H15.163C14.8245 19.4333 13.5368 20.5 12 20.5Z"],"BellAlertNotification/l/outline":["M12 2C15.8634 2 19.0517 5.01979 19.2451 8.87109L19.4307 12.5303C19.4397 12.7082 19.486 12.8821 19.5674 13.04L20.8047 15.4395L20.8896 15.6309C20.9625 15.8264 21 16.0342 21 16.2441C21 17.2138 20.2138 18 19.2441 18H16.6904C16.3308 20.2669 14.3681 22 12 22C9.63188 22 7.66921 20.2669 7.30957 18H4.75586C3.78613 18 3.00002 17.2138 3 16.2441C3 15.9643 3.06696 15.6883 3.19531 15.4395L4.43262 13.04C4.51404 12.882 4.56037 12.7079 4.56934 12.5303L4.75488 8.87109C4.94827 5.01979 8.13657 2 12 2ZM8.83789 18C9.17655 19.4332 10.4633 20.5 12 20.5C13.5367 20.5 14.8234 19.4332 15.1621 18H8.83789ZM12 3.5C8.93135 3.5 6.40603 5.89758 6.25293 8.94629L6.06738 12.6064C6.04761 12.9974 5.94497 13.3796 5.76562 13.7275L4.52832 16.127C4.50972 16.163 4.5 16.2033 4.5 16.2441C4.50002 16.3854 4.61456 16.5 4.75586 16.5H19.2441C19.3854 16.5 19.5 16.3854 19.5 16.2441C19.5 16.2035 19.4903 16.1632 19.4717 16.127L18.2344 13.7275C18.0549 13.3795 17.9524 12.9972 17.9326 12.6064L17.7471 8.94727C17.594 5.89856 15.0686 3.5 12 3.5Z"],"BellAlertNotification/m/filled":["M8 1.33331C5.42437 1.33331 3.29855 3.34651 3.16965 5.91407L3.04642 8.35371C3.04043 8.47225 3.0092 8.58811 2.95481 8.69358L2.13017 10.2929C2.04463 10.4588 2 10.6427 2 10.8294C2 11.4758 2.52411 12 3.17062 12H4.87259C5.11231 13.5113 6.42123 14.6666 8 14.6666C9.5788 14.6666 10.8877 13.5113 11.1274 12H12.8294C13.4759 12 14 11.4758 14 10.8294C14 10.6427 13.9554 10.4588 13.8698 10.2929L13.0452 8.69358C12.9908 8.58811 12.9596 8.47225 12.9536 8.35371L12.8303 5.91424C12.7015 3.34668 10.5756 1.33331 8 1.33331ZM8 13.6666C6.97547 13.6666 6.11703 12.9555 5.89131 12H10.1087C9.883 12.9555 9.02453 13.6666 8 13.6666Z"],"BellAlertNotification/m/outline":["M8 1.08301C10.708 1.08301 12.9444 3.20012 13.0801 5.90137L13.2031 8.34082C13.2052 8.38217 13.212 8.42324 13.2227 8.46289L13.2676 8.57812L14.0918 10.1777C14.1956 10.3789 14.25 10.6026 14.25 10.8291C14.25 11.6136 13.6136 12.25 12.8291 12.25H11.332C10.9901 13.776 9.62902 14.9168 8 14.917C6.37092 14.9168 5.00894 13.776 4.66699 12.25H3.1709C2.43546 12.25 1.83072 11.6908 1.75781 10.9746L1.75 10.8291L1.75977 10.6602C1.77988 10.4925 1.83031 10.3287 1.9082 10.1777L2.73242 8.5791C2.77039 8.50539 2.79269 8.42371 2.79688 8.34082L2.91992 5.90137L2.93848 5.65039C3.19533 3.07014 5.3764 1.08301 8 1.08301ZM6.23633 12.25C6.52832 12.9357 7.20784 13.4168 8 13.417C8.79218 13.4169 9.47187 12.9357 9.76367 12.25H6.23633ZM8 2.58301C6.08674 2.58301 4.51338 4.07792 4.41797 5.97656L4.29492 8.41602C4.27997 8.71227 4.20133 9.00298 4.06543 9.2666L3.30078 10.75H12.6992L11.9346 9.26562C11.7986 9.00195 11.7201 8.71291 11.7051 8.41699L11.582 5.97656C11.4866 4.07792 9.91324 2.58301 8 2.58301Z"],"BellAlertNotification/s/filled":["M6 1C4.06827 1 2.47391 2.5099 2.37723 4.43557L2.28482 6.2653C2.28033 6.3542 2.2569 6.4411 2.21611 6.5202L1.59763 7.7197C1.53348 7.8441 1.5 7.98205 1.5 8.12205C1.5 8.6069 1.89308 9 2.37796 9H3.65444C3.83423 10.1335 4.81593 11 6 11C7.1841 11 8.16575 10.1335 8.34555 9H9.62205C10.1069 9 10.5 8.6069 10.5 8.12205C10.5 7.98205 10.4666 7.8441 10.4024 7.7197L9.7839 6.5202C9.7431 6.4411 9.7197 6.3542 9.7152 6.2653L9.62275 4.4357C9.5261 2.51003 7.9317 1 6 1ZM6 10.25C5.2316 10.25 4.58778 9.71665 4.41849 9H7.5815C7.41225 9.71665 6.7684 10.25 6 10.25Z"],"BellAlertNotification/s/outline":["M6 0.875C7.99798 0.875 9.64807 2.43707 9.74805 4.42969L9.83984 6.25879C9.84345 6.33001 9.86198 6.39979 9.89453 6.46289L10.5137 7.66211C10.587 7.80419 10.625 7.96208 10.625 8.12207C10.625 8.67595 10.1759 9.12499 9.62207 9.125H8.4502C8.21857 10.2661 7.20947 11.125 6 11.125C4.79051 11.125 3.78143 10.2661 3.5498 9.125H2.37793C1.82403 9.12498 1.37501 8.67594 1.375 8.12207C1.375 7.96219 1.41298 7.8043 1.48633 7.66211L2.10547 6.46289L2.14355 6.36426C2.15281 6.32999 2.15836 6.29446 2.16016 6.25879L2.25195 4.42969C2.35192 2.43707 4.002 0.875 6 0.875ZM4.58691 9.125C4.79297 9.70733 5.34708 10.125 6 10.125C6.65291 10.125 7.20702 9.70733 7.41309 9.125H4.58691ZM6 1.875C4.53187 1.875 3.32412 3.02197 3.25098 4.47949L3.15918 6.30957C3.1484 6.52274 3.0919 6.73119 2.99414 6.9209L2.375 8.12109V8.12305L2.37695 8.125H9.62305L9.625 8.12305V8.12109L9.00586 6.9209C8.908 6.73108 8.85161 6.52261 8.84082 6.30957L8.74902 4.47949C8.67588 3.02198 7.46811 1.875 6 1.875Z"],"BentoLayoutSidePanelTile/l/filled":["M5.75 3.00391C4.2312 3.00391 3 4.23512 3 5.75391V18.2539C3 19.7727 4.2312 21.0039 5.75 21.0039H8.25C9.7688 21.0039 11 19.7727 11 18.2539V5.75391C11 4.23512 9.7688 3.00391 8.25 3.00391H5.75Z","M15.75 13C14.2312 13 13 14.2312 13 15.75V18.25C13 19.7688 14.2312 21 15.75 21H18.25C19.7688 21 21 19.7688 21 18.25V15.75C21 14.2312 19.7688 13 18.25 13H15.75Z","M15.75 3C14.2312 3 13 4.23122 13 5.75V8.25C13 9.76878 14.2312 11 15.75 11H18.25C19.7688 11 21 9.76878 21 8.25V5.75C21 4.23122 19.7688 3 18.25 3H15.75Z"],"BentoLayoutSidePanelTile/l/outline":["M9.5 5.75391C9.5 5.06354 8.94038 4.50391 8.25 4.50391H5.75C5.05962 4.50391 4.5 5.06354 4.5 5.75391V18.2539C4.50001 18.9443 5.05962 19.5039 5.75 19.5039H8.25C8.94038 19.5039 9.49999 18.9443 9.5 18.2539V5.75391ZM19.5 15.75C19.5 15.0596 18.9404 14.5 18.25 14.5H15.75C15.0596 14.5 14.5 15.0596 14.5 15.75V18.25C14.5 18.9404 15.0596 19.5 15.75 19.5H18.25C18.9404 19.5 19.5 18.9404 19.5 18.25V15.75ZM19.75 6C19.75 5.30964 19.1904 4.75 18.5 4.75H16C15.3096 4.75 14.75 5.30964 14.75 6V8.5C14.75 9.19036 15.3096 9.75 16 9.75H18.5C19.1904 9.75 19.75 9.19036 19.75 8.5V6ZM21 18.25C21 19.7688 19.7688 21 18.25 21H15.75C14.2312 21 13 19.7688 13 18.25V15.75C13 14.2312 14.2312 13 15.75 13H18.25C19.7688 13 21 14.2312 21 15.75V18.25ZM21.25 8.5C21.25 10.0188 20.0188 11.25 18.5 11.25H16C14.4812 11.25 13.25 10.0188 13.25 8.5V6C13.25 4.48122 14.4812 3.25 16 3.25H18.5C20.0188 3.25 21.25 4.48122 21.25 6V8.5ZM11 18.2539C11 19.7727 9.76881 21.0039 8.25 21.0039H5.75C4.23119 21.0039 3.00001 19.7727 3 18.2539V5.75391C3 4.23513 4.23118 3.00391 5.75 3.00391H8.25C9.76882 3.00391 11 4.23513 11 5.75391V18.2539Z"],"BentoLayoutSidePanelTile/m/filled":["M3.83333 2.0026C2.8208 2.0026 2 2.82341 2 3.83594V12.1693C2 13.1818 2.8208 14.0026 3.83333 14.0026H5.5C6.51253 14.0026 7.33333 13.1818 7.33333 12.1693V3.83594C7.33333 2.82341 6.51253 2.0026 5.5 2.0026H3.83333Z","M10.5 8.66667C9.48748 8.66667 8.66667 9.48747 8.66667 10.5V12.1667C8.66667 13.1792 9.48748 14 10.5 14H12.1667C13.1792 14 14 13.1792 14 12.1667V10.5C14 9.48747 13.1792 8.66667 12.1667 8.66667H10.5Z","M10.5 2C9.48748 2 8.66667 2.82081 8.66667 3.83333V5.5C8.66667 6.51252 9.48748 7.33333 10.5 7.33333H12.1667C13.1792 7.33333 14 6.51252 14 5.5V3.83333C14 2.82081 13.1792 2 12.1667 2H10.5Z"],"BentoLayoutSidePanelTile/m/outline":["M6.20801 3.83563C6.20783 3.44457 5.89111 3.12762 5.5 3.12762H3.83301C3.44205 3.1278 3.12518 3.44468 3.125 3.83563V12.1696C3.12518 12.5606 3.44205 12.8774 3.83301 12.8776H5.5C5.89111 12.8776 6.20783 12.5607 6.20801 12.1696V3.83563ZM12.875 10.4997C12.8748 10.1087 12.5579 9.79186 12.167 9.79169H10.5C10.1089 9.79169 9.79217 10.1086 9.79199 10.4997V12.1667C9.79199 12.5579 10.1088 12.8747 10.5 12.8747H12.167C12.5581 12.8745 12.875 12.5578 12.875 12.1667V10.4997ZM13.042 3.99969C13.0418 3.60864 12.7241 3.29169 12.333 3.29169H10.667C10.2759 3.29169 9.95818 3.60864 9.95801 3.99969V5.66669C9.95801 6.05789 10.2758 6.37469 10.667 6.37469H12.333C12.7242 6.37469 13.042 6.05789 13.042 5.66669V3.99969ZM14.125 12.1667C14.125 13.2482 13.2484 14.1245 12.167 14.1247H10.5C9.41845 14.1247 8.54199 13.2483 8.54199 12.1667V10.4997C8.54217 9.41826 9.41856 8.54169 10.5 8.54169H12.167C13.2483 8.54186 14.1248 9.41837 14.125 10.4997V12.1667ZM14.292 5.66669C14.292 6.74824 13.4146 7.62469 12.333 7.62469H10.667C9.58543 7.62469 8.70801 6.74825 8.70801 5.66669V3.99969C8.70818 2.91829 9.58554 2.04169 10.667 2.04169H12.333C13.4145 2.04169 14.2918 2.91829 14.292 3.99969V5.66669ZM7.45801 12.1696C7.45783 13.251 6.58147 14.1276 5.5 14.1276H3.83301C2.75169 14.1274 1.87518 13.2509 1.875 12.1696V3.83563C1.87518 2.75434 2.75168 1.8778 3.83301 1.87762H5.5C6.58148 1.87762 7.45783 2.75423 7.45801 3.83563V12.1696Z"],"BentoLayoutSidePanelTile/s/filled":["M2.875 1.50195C2.1156 1.50195 1.5 2.11756 1.5 2.87695V9.12695C1.5 9.88635 2.1156 10.5019 2.875 10.5019H4.125C4.8844 10.5019 5.5 9.88635 5.5 9.12695V2.87695C5.5 2.11756 4.8844 1.50195 4.125 1.50195H2.875Z","M7.875 6.5C7.11561 6.5 6.5 7.1156 6.5 7.875V9.125C6.5 9.8844 7.11561 10.5 7.875 10.5H9.125C9.88439 10.5 10.5 9.8844 10.5 9.125V7.875C10.5 7.1156 9.88439 6.5 9.125 6.5H7.875Z","M7.875 1.5C7.11561 1.5 6.5 2.11561 6.5 2.875V4.125C6.5 4.88439 7.11561 5.5 7.875 5.5H9.125C9.88439 5.5 10.5 4.88439 10.5 4.125V2.875C10.5 2.11561 9.88439 1.5 9.125 1.5H7.875Z"],"BentoLayoutSidePanelTile/s/outline":["M4.625 2.87695C4.625 2.60081 4.40115 2.37695 4.125 2.37695H2.875C2.59885 2.37695 2.375 2.60081 2.375 2.87695V9.12695C2.375 9.40311 2.59884 9.62695 2.875 9.62695H4.125C4.40116 9.62695 4.625 9.40311 4.625 9.12695V2.87695ZM9.625 7.875C9.625 7.59885 9.40115 7.375 9.125 7.375H7.875C7.59885 7.375 7.375 7.59885 7.375 7.875V9.125C7.375 9.40115 7.59885 9.625 7.875 9.625H9.125C9.40115 9.625 9.625 9.40115 9.625 9.125V7.875ZM9.75 3C9.75 2.72386 9.52614 2.5 9.25 2.5H8C7.72386 2.5 7.5 2.72386 7.5 3V4.25C7.5 4.52614 7.72386 4.75 8 4.75H9.25C9.52614 4.75 9.75 4.52614 9.75 4.25V3ZM10.625 9.125C10.625 9.95345 9.95342 10.625 9.125 10.625H7.875C7.04658 10.625 6.375 9.95345 6.375 9.125V7.875C6.375 7.04655 7.04658 6.375 7.875 6.375H9.125C9.95342 6.375 10.625 7.04655 10.625 7.875V9.125ZM10.75 4.25C10.75 5.07843 10.0784 5.75 9.25 5.75H8C7.17157 5.75 6.5 5.07843 6.5 4.25V3C6.5 2.17157 7.17157 1.5 8 1.5H9.25C10.0784 1.5 10.75 2.17157 10.75 3V4.25ZM5.625 9.12695C5.625 9.95539 4.95344 10.627 4.125 10.627H2.875C2.04656 10.627 1.375 9.95539 1.375 9.12695V2.87695C1.375 2.04853 2.04655 1.37695 2.875 1.37695H4.125C4.95345 1.37695 5.625 2.04853 5.625 2.87695V9.12695Z"],"Blocks/l/filled":["M10.3018 6.13477C10.7159 6.13477 11.0517 6.47059 11.0518 6.88477V12.6348H16.8018C17.2159 12.6348 17.5517 12.9706 17.5518 13.3848V17.8848C17.5518 19.4036 16.3206 20.6348 14.8018 20.6348H5.80176C4.28312 20.6346 3.05176 19.4035 3.05176 17.8848V8.88477C3.0518 7.36612 4.28314 6.13493 5.80176 6.13477H10.3018ZM11.0518 19.1348H14.8018C15.4922 19.1348 16.0518 18.5752 16.0518 17.8848V14.1348H11.0518V19.1348ZM5.80176 7.63477C5.11156 7.63493 4.5518 8.19454 4.55176 8.88477V12.6348H9.55176V7.63477H5.80176ZM18.3018 2.63477C19.8205 2.63477 21.0517 3.86602 21.0518 5.38477V9.88477C21.0518 10.299 20.716 10.6348 20.3018 10.6348H13.8018C13.3877 10.6346 13.0518 10.2989 13.0518 9.88477V3.38477C13.0518 2.97069 13.3877 2.63493 13.8018 2.63477H18.3018Z"],"Blocks/l/outline":["M10.5 5.75C10.9142 5.75 11.25 6.08579 11.25 6.5V12.75H17.5C17.9142 12.75 18.25 13.0858 18.25 13.5V18.5C18.25 20.0188 17.0188 21.25 15.5 21.25H5.5C3.98122 21.25 2.75 20.0188 2.75 18.5V8.5C2.75 6.98122 3.98122 5.75 5.5 5.75H10.5ZM4.25 18.5C4.25 19.1904 4.80964 19.75 5.5 19.75H9.75V14.25H4.25V18.5ZM11.25 19.75H15.5C16.1904 19.75 16.75 19.1904 16.75 18.5V14.25H11.25V19.75ZM5.5 7.25C4.80964 7.25 4.25 7.80964 4.25 8.5V12.75H9.75V7.25H5.5ZM18.5 2.75C20.0188 2.75 21.25 3.98122 21.25 5.5V10.5C21.25 10.9142 20.9142 11.25 20.5 11.25H13.5C13.0858 11.25 12.75 10.9142 12.75 10.5V3.5C12.75 3.08579 13.0858 2.75 13.5 2.75H18.5ZM14.25 9.75H19.75V5.5C19.75 4.80964 19.1904 4.25 18.5 4.25H14.25V9.75Z"],"Blocks/m/filled":["M6.86816 4.08984C7.14422 4.08991 7.36814 4.31377 7.36816 4.58984V8.42285H11.2012C11.4772 8.42285 11.701 8.64689 11.7012 8.92285V11.9229C11.7012 12.9353 10.8806 13.7568 9.86816 13.7568H3.86816C2.85564 13.7568 2.03516 12.9354 2.03516 11.9229V5.92285C2.03536 4.9105 2.85577 4.08984 3.86816 4.08984H6.86816ZM7.36816 12.7568H9.86816C10.3284 12.7568 10.7012 12.3831 10.7012 11.9229V9.42285H7.36816V12.7568ZM3.86816 5.08984C3.40805 5.08984 3.03536 5.46278 3.03516 5.92285V8.42285H6.36816V5.08984H3.86816ZM12.2012 1.75684C13.2137 1.75684 14.0351 2.57735 14.0352 3.58984V6.58984C14.0352 6.86583 13.8111 7.0896 13.5352 7.08984H9.20117C8.92513 7.08973 8.70117 6.86591 8.70117 6.58984V2.25684C8.70117 1.98076 8.92513 1.75695 9.20117 1.75684H12.2012Z"],"Blocks/m/outline":["M7 3.70801C7.34492 3.70818 7.62482 3.98809 7.625 4.33301V8.375H11.666C12.0111 8.375 12.2908 8.65497 12.291 9V12.333C12.291 13.4146 11.4146 14.291 10.333 14.291H3.66602C2.58476 14.2907 1.70801 13.4144 1.70801 12.333V5.66602C1.70836 4.58497 2.58497 3.70836 3.66602 3.70801H7ZM2.95801 12.333C2.95801 12.724 3.27511 13.0407 3.66602 13.041H6.375V9.625H2.95801V12.333ZM7.625 13.041H10.333C10.7242 13.041 11.041 12.7242 11.041 12.333V9.625H7.625V13.041ZM3.66602 4.95801C3.27533 4.95836 2.95836 5.27533 2.95801 5.66602V8.375H6.375V4.95801H3.66602ZM12.333 1.70801C13.4144 1.70801 14.2916 2.58476 14.292 3.66602V7C14.2918 7.34492 14.0119 7.62482 13.667 7.625H9C8.65493 7.625 8.37518 7.34503 8.375 7V2.33301C8.37518 1.98798 8.65493 1.70801 9 1.70801H12.333ZM9.625 6.375H13.042V3.66602C13.0416 3.27511 12.724 2.95801 12.333 2.95801H9.625V6.375Z"],"Blocks/s/filled":["M5.15137 3.06738C5.3583 3.06756 5.52635 3.23541 5.52637 3.44238V6.31738H8.40137C8.6083 6.31756 8.77635 6.48541 8.77637 6.69238V8.94238C8.77637 9.70167 8.16061 10.3172 7.40137 10.3174H2.90137C2.14198 10.3174 1.52637 9.70178 1.52637 8.94238V4.44238C1.52639 3.68301 2.14199 3.06738 2.90137 3.06738H5.15137ZM5.52637 9.56738H7.40137C7.74641 9.5672 8.02637 9.28747 8.02637 8.94238V7.06738H5.52637V9.56738ZM2.90137 3.81738C2.5562 3.81738 2.27639 4.09722 2.27637 4.44238V6.31738H4.77637V3.81738H2.90137ZM9.15137 1.31738C9.9106 1.31756 10.5263 1.93312 10.5264 2.69238V4.94238C10.5264 5.14937 10.3583 5.3172 10.1514 5.31738H6.90137C6.69427 5.31738 6.52637 5.14948 6.52637 4.94238V1.69238C6.52639 1.4853 6.69428 1.31738 6.90137 1.31738H9.15137Z"],"Blocks/s/outline":["M5.25 2.75C5.52614 2.75 5.75 2.97386 5.75 3.25V6.25H8.75C9.02614 6.25 9.25 6.47386 9.25 6.75V9.25C9.25 10.0784 8.57844 10.75 7.75 10.75H2.75C1.92158 10.75 1.25 10.0784 1.25 9.25V4.25C1.25 3.42157 1.92157 2.75 2.75 2.75H5.25ZM2.25 9.25C2.25 9.52615 2.47385 9.75 2.75 9.75H4.75V7.25H2.25V9.25ZM5.75 9.75H7.75C8.02616 9.75 8.25 9.52616 8.25 9.25V7.25H5.75V9.75ZM2.75 3.75C2.47386 3.75 2.25 3.97386 2.25 4.25V6.25H4.75V3.75H2.75ZM9.25 1.25C10.0784 1.25 10.75 1.92158 10.75 2.75V5.25C10.75 5.52614 10.5261 5.75 10.25 5.75H6.75C6.47386 5.75 6.25 5.52614 6.25 5.25V1.75C6.25 1.47386 6.47386 1.25 6.75 1.25H9.25ZM7.25 4.75H9.75V2.75C9.75 2.47385 9.52615 2.25 9.25 2.25H7.25V4.75Z"],"Bookmark/l/filled":["M6.75 2C5.23122 2 4 3.23122 4 4.75V20.2515C4 21.6527 5.56475 22.4857 6.72719 21.7032L11.302 18.6239C11.724 18.3399 12.276 18.3399 12.698 18.6239L17.2728 21.7032C18.4353 22.4857 20 21.6527 20 20.2515V4.75C20 3.23122 18.7688 2 17.25 2H6.75Z"],"Bookmark/l/outline":["M10.4648 17.3799C11.3932 16.7552 12.6068 16.7552 13.5352 17.3799L18.1104 20.459C18.2763 20.5707 18.4997 20.4519 18.5 20.252V4.75C18.5 4.05964 17.9404 3.5 17.25 3.5H6.75C6.05964 3.5 5.5 4.05964 5.5 4.75V20.252C5.50034 20.4517 5.72362 20.5707 5.88965 20.459L10.4648 17.3799ZM20 20.252C19.9997 21.6529 18.4349 22.4856 17.2725 21.7031L12.6982 18.624C12.2762 18.34 11.7238 18.34 11.3018 18.624L6.72754 21.7031C5.56532 22.4854 4.00034 21.653 4 20.252V4.75C4 3.23122 5.23122 2 6.75 2H17.25C18.7688 2 20 3.23122 20 4.75V20.252Z"],"Bookmark/m/filled":["M4.49996 1.33331C3.48744 1.33331 2.66663 2.15413 2.66663 3.16665V13.501C2.66663 14.4351 3.70979 14.9904 4.48475 14.4688L7.53463 12.4159C7.81596 12.2266 8.18396 12.2266 8.46529 12.4159L11.5152 14.4688C12.2902 14.9904 13.3333 14.4351 13.3333 13.501V3.16665C13.3333 2.15413 12.5125 1.33331 11.5 1.33331H4.49996Z"],"Bookmark/m/outline":["M6.90686 11.4827C7.56794 11.038 8.43235 11.0379 9.09338 11.4827L12.1432 13.5355C12.1547 13.5432 12.1609 13.5432 12.1637 13.5433C12.1687 13.5434 12.1769 13.5424 12.1862 13.5374C12.1952 13.5326 12.2011 13.527 12.2037 13.5228C12.2052 13.5205 12.2086 13.5151 12.2086 13.5013V3.16632C12.2084 2.77526 11.8907 2.45831 11.4996 2.45831H4.49963C4.10869 2.45849 3.7918 2.77538 3.79163 3.16632V13.5013C3.79167 13.5151 3.79508 13.5205 3.79651 13.5228C3.79924 13.527 3.80507 13.5326 3.81409 13.5374C3.82329 13.5423 3.8316 13.5434 3.83655 13.5433C3.83943 13.5432 3.84518 13.5427 3.85608 13.5355L6.90686 11.4827ZM13.4586 13.5013C13.4584 14.5353 12.3029 15.1501 11.4449 14.5726L8.39514 12.5198C8.156 12.359 7.84323 12.3589 7.60413 12.5198L4.55432 14.5726C3.69651 15.1497 2.54185 14.5354 2.54163 13.5013V3.16632C2.5418 2.08502 3.41833 1.20849 4.49963 1.20831H11.4996C12.5811 1.20831 13.4584 2.08492 13.4586 3.16632V13.5013Z"],"Bookmark/s/filled":["M3.375 1C2.61561 1 2 1.61561 2 2.375V10.1257C2 10.8263 2.78238 11.2428 3.3636 10.8516L5.651 9.31195C5.862 9.16995 6.138 9.16995 6.349 9.31195L8.6364 10.8516C9.21765 11.2428 10 10.8263 10 10.1257V2.375C10 1.61561 9.3844 1 8.625 1H3.375Z"],"Bookmark/s/outline":["M5.16211 8.58594C5.66849 8.24515 6.33151 8.24515 6.83789 8.58594L9.125 10.126V2.375C9.125 2.09885 8.90115 1.875 8.625 1.875H3.375C3.09886 1.875 2.875 2.09886 2.875 2.375V10.126L5.16211 8.58594ZM10.125 10.126C10.1248 10.9265 9.23064 11.4022 8.56641 10.9551L6.2793 9.41602C6.11047 9.3024 5.88953 9.3024 5.7207 9.41602L3.43359 10.9551C2.76947 11.4021 1.87517 10.9266 1.875 10.126V2.375C1.875 1.54657 2.54657 0.875 3.375 0.875H8.625C9.45345 0.875 10.125 1.54658 10.125 2.375V10.126Z"],"BottomBarHiddenLayout/l/filled":["M19.25 4C20.7688 4 22 5.23122 22 6.75V17.25C22 18.7688 20.7688 20 19.25 20H4.75C3.23122 20 2 18.7688 2 17.25V6.75C2 5.23122 3.23122 4 4.75 4H19.25ZM6.75 14.5C6.33579 14.5 6 14.8358 6 15.25C6 15.6642 6.33579 16 6.75 16H17.25C17.6642 16 18 15.6642 18 15.25C18 14.8358 17.6642 14.5 17.25 14.5H6.75Z"],"BottomBarHiddenLayout/l/outline":["M17.25 14.5C17.6642 14.5 18 14.8358 18 15.25C18 15.6642 17.6642 16 17.25 16H6.75C6.33579 16 6 15.6642 6 15.25C6 14.8358 6.33579 14.5 6.75 14.5H17.25Z","M19.25 4C20.7688 4 22 5.23122 22 6.75V17.25C22 18.7688 20.7688 20 19.25 20H4.75C3.23122 20 2 18.7688 2 17.25V6.75C2 5.23122 3.23122 4 4.75 4H19.25ZM4.75 5.5C4.05964 5.5 3.5 6.05964 3.5 6.75V17.25C3.5 17.9404 4.05964 18.5 4.75 18.5H19.25C19.9404 18.5 20.5 17.9404 20.5 17.25V6.75C20.5 6.05964 19.9404 5.5 19.25 5.5H4.75Z"],"BottomBarHiddenLayout/m/filled":["M12.8334 2.66669C13.8459 2.66669 14.6667 3.4875 14.6667 4.50002V11.5C14.6667 12.5126 13.8459 13.3334 12.8334 13.3334H3.16671C2.15419 13.3334 1.33337 12.5126 1.33337 11.5V4.50002C1.33337 3.4875 2.15419 2.66669 3.16671 2.66669H12.8334ZM4.50004 9.66669C4.2239 9.66669 4.00004 9.89055 4.00004 10.1667C4.00004 10.4428 4.2239 10.6667 4.50004 10.6667H11.5C11.7762 10.6667 12 10.4428 12 10.1667C12 9.89055 11.7762 9.66669 11.5 9.66669H4.50004Z"],"BottomBarHiddenLayout/m/outline":["M11.5 9.54199C11.8452 9.54199 12.125 9.82181 12.125 10.167C12.1248 10.512 11.8451 10.792 11.5 10.792H4.5C4.15493 10.792 3.87518 10.512 3.875 10.167C3.875 9.82181 4.15482 9.54199 4.5 9.54199H11.5Z","M12.833 2.54199C13.9145 2.54199 14.7908 3.4186 14.791 4.5V11.5C14.7908 12.5814 13.9145 13.459 12.833 13.459H3.16602C2.08487 13.4586 1.20819 12.5812 1.20801 11.5V4.5C1.20818 3.4188 2.08486 2.54233 3.16602 2.54199H12.833ZM3.16602 3.79199C2.77521 3.79233 2.45818 4.10916 2.45801 4.5V11.5C2.45819 11.8909 2.77521 12.2086 3.16602 12.209H12.833C13.2241 12.209 13.5408 11.8911 13.541 11.5V4.5C13.5408 4.10894 13.2241 3.79199 12.833 3.79199H3.16602Z"],"BottomBarHiddenLayout/s/filled":["M9.625 2C10.3844 2 11 2.61561 11 3.375V8.625C11 9.3844 10.3844 10 9.625 10H2.375C1.61561 10 1 9.3844 1 8.625V3.375C1 2.61561 1.61561 2 2.375 2H9.625ZM3.375 7.25C3.1679 7.25 3 7.4179 3 7.625C3 7.8321 3.1679 8 3.375 8H8.625C8.8321 8 9 7.8321 9 7.625C9 7.4179 8.8321 7.25 8.625 7.25H3.375Z"],"BottomBarHiddenLayout/s/outline":["M8.625 7.125C8.90114 7.125 9.125 7.34886 9.125 7.625C9.125 7.90114 8.90114 8.125 8.625 8.125H3.375C3.09886 8.125 2.875 7.90114 2.875 7.625C2.875 7.34886 3.09886 7.125 3.375 7.125H8.625Z","M9.625 1.875C10.4534 1.875 11.125 2.54658 11.125 3.375V8.625C11.125 9.45344 10.4534 10.125 9.625 10.125H2.375C1.54658 10.125 0.875 9.45345 0.875 8.625V3.375C0.875 2.54657 1.54657 1.875 2.375 1.875H9.625ZM2.375 2.875C2.09886 2.875 1.875 3.09886 1.875 3.375V8.625C1.875 8.90115 2.09885 9.125 2.375 9.125H9.625C9.90116 9.125 10.125 8.90116 10.125 8.625V3.375C10.125 3.09885 9.90115 2.875 9.625 2.875H2.375Z"],"BuildHammer/l/filled":["M12.913 14.3584L7.41306 19.8583C6.44667 20.8246 4.87953 20.8244 3.91307 19.8583C2.94699 18.8919 2.94689 17.3248 3.91307 16.3584L9.41306 10.8584L12.913 14.3584ZM8.62107 1.77832C10.6221 1.46212 12.4896 1.57777 14.1914 2.20215C16.0102 2.86961 17.5861 4.09878 18.9111 5.89354C19.0194 6.04025 19.1042 6.15441 19.1962 6.3203C19.5464 6.95135 19.5483 7.63131 19.5693 8.06053C19.5929 8.5438 19.6348 8.81299 19.8036 9.04685C19.8966 9.17543 20.0005 9.27769 20.1445 9.41697H20.8759C21.0748 9.41702 21.2655 9.49697 21.4062 9.63767C21.5535 9.78518 21.6899 9.92036 21.7958 10.041C21.9059 10.1661 22.0181 10.3134 22.0995 10.497C22.299 10.948 22.299 11.4631 22.0995 11.914C22.018 12.0977 21.9059 12.2448 21.7958 12.3701C21.6898 12.4907 21.5536 12.6258 21.4062 12.7734L19.3329 14.8505C19.1863 14.9974 19.0515 15.1326 18.9316 15.2382C18.8072 15.3479 18.6609 15.4594 18.4785 15.541C18.0245 15.7436 17.5056 15.7435 17.0517 15.541C16.8692 15.4594 16.7229 15.3478 16.5986 15.2382C16.4787 15.1327 16.3437 14.9973 16.1972 14.8505C16.0569 14.71 15.9776 14.5189 15.9775 14.3203C15.9774 13.7412 15.446 13.3078 14.8789 13.4248L14.0644 13.5927C13.8174 13.6436 13.5612 13.5669 13.3828 13.3886L10.3828 10.3886C10.2094 10.2153 10.1318 9.96786 10.1748 9.72654C10.4327 8.28632 10.3643 7.2669 10.0146 6.4619C9.66752 5.6632 8.99438 4.96389 7.81345 4.26073C7.47173 4.05725 7.22976 3.70569 7.17478 3.30078L7.16306 3.125L7.16795 3.01074C7.2175 2.44573 7.63201 1.95638 8.2197 1.84766L8.62107 1.77832Z"],"BuildHammer/l/outline":["M8.621 1.77822C10.6221 1.46199 12.4895 1.57763 14.1913 2.20205C16.0103 2.86954 17.5861 4.09867 18.911 5.89349C19.0193 6.04016 19.1041 6.15416 19.1962 6.32026C19.5463 6.95137 19.5483 7.63131 19.5693 8.06051C19.5929 8.54377 19.6347 8.81298 19.8036 9.04685C19.8967 9.17553 20.0005 9.27764 20.1444 9.41697H20.8759C21.0749 9.41699 21.2665 9.49683 21.4071 9.63767C21.5542 9.78496 21.6899 9.92049 21.7958 10.041C21.9058 10.1662 22.0182 10.3132 22.0995 10.4971C22.2991 10.9481 22.2991 11.4631 22.0995 11.9141C22.0181 12.0978 21.9058 12.2449 21.7958 12.3701C21.6898 12.4908 21.5535 12.626 21.4062 12.7734L19.3329 14.8506C19.1863 14.9974 19.0514 15.1327 18.9316 15.2383C18.8384 15.3204 18.7329 15.4037 18.6093 15.4746L18.4784 15.5411C18.0246 15.7436 17.5056 15.7436 17.0517 15.5411C16.8693 15.4596 16.7229 15.3479 16.5985 15.2383C16.4787 15.1327 16.3438 14.9973 16.1972 14.8506C16.0568 14.7101 15.9776 14.5189 15.9775 14.3203C15.9775 13.741 15.446 13.3078 14.8788 13.4248L14.2841 13.5469L7.94327 19.8888C6.82206 21.0098 5.00402 21.0096 3.88272 19.8888C2.76157 18.7675 2.7616 16.9494 3.88272 15.8282L10.2089 9.50095C10.4207 8.17829 10.3458 7.2244 10.0146 6.46186C9.66747 5.66309 8.99438 4.96388 7.81339 4.26067C7.47166 4.05722 7.22973 3.7056 7.17472 3.30069L7.163 3.12491L7.16788 3.01065C7.21737 2.44558 7.63191 1.95628 8.21964 1.84756L8.621 1.77822ZM4.94327 16.8887C4.40794 17.4242 4.4079 18.2927 4.94327 18.8282C5.47878 19.3633 6.34729 19.3634 6.88272 18.8282L12.8525 12.8584L10.913 10.9189L4.94327 16.8887ZM13.6747 3.61027C12.2986 3.10532 10.7457 2.98171 9.00382 3.23722C10.1189 3.96905 10.9288 4.80391 11.3896 5.8642C11.8611 6.9497 11.9242 8.17726 11.7128 9.59763L14.1571 12.042L14.5751 11.9561C15.9597 11.67 17.2632 12.6254 17.453 13.9795C17.5085 14.0338 17.5508 14.078 17.5898 14.1123C17.6604 14.1745 17.6762 14.1778 17.663 14.1719L17.7128 14.1875C17.7641 14.1984 17.8183 14.1936 17.8671 14.1719C17.8536 14.178 17.8685 14.1748 17.9394 14.1123C18.0152 14.0455 18.1113 13.9503 18.2714 13.7901L20.3456 11.7139C20.5065 11.5528 20.6019 11.4561 20.6689 11.3799C20.7312 11.309 20.7344 11.2934 20.7284 11.3066L20.7441 11.2568C20.7547 11.2061 20.7496 11.1526 20.7284 11.1045C20.7341 11.1169 20.7302 11.101 20.6689 11.0312C20.6394 10.9977 20.6021 10.962 20.5585 10.917H19.8388C19.6399 10.917 19.4491 10.8378 19.3085 10.6973C19.1424 10.5308 18.8157 10.2416 18.5868 9.92478C18.1324 9.29556 18.0945 8.61097 18.0712 8.13375C18.0485 7.66873 18.0357 7.38818 17.9345 7.14839L17.8847 7.0478C17.8467 6.97935 17.819 6.94092 17.704 6.78511C16.5278 5.19163 15.1801 4.16271 13.6747 3.61027Z"],"BuildHammer/m/filled":["M8.60895 9.57207L4.94195 13.2391C4.29774 13.883 3.2532 13.8828 2.60895 13.2391C1.96487 12.5947 1.96477 11.5493 2.60895 10.9051L6.27496 7.23906L8.60895 9.57207ZM5.74762 1.18535C7.08139 0.974616 8.32617 1.05147 9.46051 1.46758C10.673 1.91251 11.7237 2.73213 12.607 3.92851C12.6793 4.0264 12.736 4.10301 12.7974 4.21367C13.0308 4.63434 13.0325 5.08771 13.0464 5.37383C13.0622 5.69586 13.0901 5.87518 13.2027 6.03105C13.2647 6.11676 13.3333 6.18529 13.4293 6.27812H13.9175C14.0501 6.27822 14.1773 6.33086 14.2711 6.42461C14.3693 6.52299 14.4602 6.61369 14.5308 6.69414C14.6041 6.77752 14.6787 6.87551 14.733 6.99785C14.866 7.29844 14.8659 7.64159 14.733 7.94219C14.6786 8.06472 14.6042 8.16334 14.5308 8.24687C14.4602 8.32723 14.3693 8.41709 14.2711 8.51543L12.8882 9.90019C12.7905 9.99804 12.7005 10.0886 12.6207 10.159C12.5378 10.232 12.4403 10.3058 12.3189 10.3602C12.0162 10.4953 11.6704 10.4952 11.3677 10.3602C11.2462 10.3058 11.1488 10.2319 11.066 10.159C10.9861 10.0886 10.896 9.99797 10.7984 9.90019C10.7048 9.80649 10.6519 9.6791 10.6519 9.54668C10.6518 9.16068 10.2976 8.87214 9.91949 8.95L9.37652 9.06133C9.21179 9.09526 9.04038 9.04452 8.92145 8.92559L6.92145 6.92559C6.80597 6.81002 6.75413 6.64501 6.78277 6.48418C6.95477 5.52391 6.90954 4.84412 6.67633 4.30742C6.44489 3.77499 5.99585 3.30937 5.20856 2.84062C4.98071 2.70493 4.81937 2.47001 4.78278 2.2L4.77496 2.08281L4.77887 2.00664C4.81201 1.63008 5.08834 1.30371 5.48004 1.23125L5.74762 1.18535Z"],"BuildHammer/m/outline":["M5.99664 1.02346C7.24658 0.860708 8.42241 0.954004 9.50348 1.35061C10.7424 1.80521 11.8118 2.64198 12.7076 3.85549C12.7791 3.9524 12.8409 4.03367 12.9068 4.15237C13.1572 4.60363 13.1569 5.08952 13.1705 5.36721C13.1863 5.68998 13.2145 5.83506 13.3033 5.95803C13.3528 6.02649 13.4058 6.08018 13.481 6.15334H13.9166L14.0396 6.16506C14.1598 6.18912 14.271 6.2489 14.3589 6.33694C14.4559 6.434 14.5497 6.5273 14.6236 6.61135C14.7009 6.69929 14.7857 6.8082 14.8472 6.94729L14.8951 7.07424C14.978 7.33167 14.978 7.60884 14.8951 7.86623L14.8472 7.99319C14.7857 8.13199 14.7018 8.24121 14.6246 8.32913C14.5506 8.41324 14.456 8.50738 14.3589 8.60452L12.9761 9.98831C12.8798 10.0848 12.787 10.1785 12.7037 10.252C12.6164 10.3289 12.5076 10.413 12.3697 10.4746C12.0347 10.624 11.651 10.6242 11.316 10.4746C11.1781 10.413 11.0703 10.3289 10.983 10.252C10.8994 10.1783 10.8062 10.0851 10.7095 9.98831C10.5926 9.87123 10.527 9.71237 10.5269 9.5469C10.5269 9.23982 10.2445 9.01017 9.94391 9.07229L9.58551 9.14553L5.38434 13.3477C4.58815 14.1437 3.29692 14.1434 2.50055 13.3477C1.70421 12.5514 1.70428 11.2602 2.50055 10.4639L6.68903 6.27346C6.82 5.42625 6.76569 4.82844 6.5611 4.35745C6.34379 3.85763 5.91864 3.40841 5.1441 2.94729C4.84797 2.77078 4.65011 2.44751 4.64996 2.08303C4.65003 1.61705 4.97755 1.19722 5.4566 1.10842L5.99664 1.02346ZM3.38434 11.3477C3.07624 11.6559 3.07618 12.1557 3.38434 12.4639C3.69256 12.7715 4.19251 12.7718 4.50055 12.4639L8.3902 8.57229L7.27496 7.45706L3.38434 11.3477ZM9.07282 2.52444C8.26339 2.22749 7.3562 2.13406 6.34235 2.24319C6.96185 2.69616 7.42741 3.21478 7.70758 3.8594C8.02732 4.59539 8.07276 5.41927 7.94098 6.35354L9.47809 7.89065L9.69098 7.84768C10.6701 7.64539 11.5907 8.3083 11.7496 9.25686C11.7729 9.27936 11.7915 9.2989 11.8091 9.31448C11.8192 9.32335 11.8271 9.32958 11.8326 9.33401C11.8395 9.33584 11.8462 9.33578 11.8531 9.33401C11.8586 9.32963 11.8666 9.32319 11.8765 9.31448C11.9233 9.27321 11.9847 9.21328 12.0923 9.10549L13.4752 7.72073C13.5832 7.61255 13.6438 7.55096 13.6851 7.50393C13.6932 7.49468 13.6993 7.48687 13.7037 7.48147C13.7061 7.47343 13.7062 7.46591 13.7037 7.45803C13.6993 7.45266 13.6931 7.44562 13.6851 7.43655C13.6758 7.42598 13.6644 7.41567 13.6529 7.40334H13.2252C13.0595 7.40316 12.8998 7.33701 12.7828 7.21975C12.6808 7.11758 12.4499 6.91132 12.2896 6.68948C11.963 6.23717 11.938 5.74635 11.9224 5.42873C11.9047 5.06634 11.8946 4.90538 11.814 4.75979V4.75881C11.7932 4.72133 11.779 4.70238 11.7017 4.59768C10.9299 3.55212 10.0503 2.88312 9.07282 2.52444Z"],"BuildHammer/s/filled":["M6.45705 7.17869L3.70705 9.92868C3.22384 10.4119 2.44029 10.4118 1.95705 9.92868C1.47399 9.44543 1.47392 8.66189 1.95705 8.17869L4.70705 5.42869L6.45705 7.17869ZM4.31056 0.888658C5.31102 0.730561 6.24487 0.78843 7.09572 1.10057C8.00516 1.43429 8.79357 2.04887 9.45607 2.94627C9.51024 3.01965 9.55164 3.0772 9.59767 3.16014C9.77282 3.47571 9.77467 3.81561 9.78517 4.03026C9.79697 4.27189 9.81792 4.40649 9.90236 4.52342C9.94876 4.58757 10.0004 4.63851 10.0723 4.70799H10.4385C10.5377 4.70812 10.6329 4.74819 10.7031 4.81834C10.7768 4.89207 10.8445 4.96018 10.8975 5.02049C10.9525 5.08302 11.0091 5.15627 11.0498 5.24803C11.1496 5.47353 11.1496 5.73151 11.0498 5.95701C11.0091 6.04885 10.9525 6.12193 10.8975 6.18455C10.8445 6.24484 10.7768 6.31291 10.7031 6.3867L9.66701 7.42478C9.59366 7.49823 9.52578 7.56627 9.46583 7.61912C9.40365 7.67394 9.33048 7.7297 9.23927 7.77048C9.01243 7.87174 8.75326 7.87158 8.52638 7.77048C8.43524 7.72976 8.36195 7.67382 8.29982 7.61912C8.23987 7.56632 8.17195 7.49818 8.09865 7.42478C8.02859 7.35453 7.98931 7.25934 7.98927 7.16013C7.98922 6.87059 7.72306 6.65341 7.43947 6.71189L7.03224 6.79588C6.90871 6.82132 6.78062 6.78348 6.69142 6.69431L5.19142 5.19432C5.10477 5.10767 5.06548 4.9839 5.08693 4.86326C5.21593 4.14306 5.18273 3.63298 5.00783 3.23045C4.83427 2.83117 4.4976 2.4814 3.90724 2.12987C3.73639 2.02813 3.6154 1.85282 3.58791 1.65038L3.58205 1.56249L3.584 1.50487C3.60892 1.22252 3.81665 0.978151 4.11037 0.923814L4.31056 0.888658Z"],"BuildHammer/s/outline":["M4.49323 0.736619C5.43476 0.614007 6.32234 0.684191 7.13874 0.983689C8.0742 1.32702 8.88095 1.95831 9.55573 2.87236C9.60927 2.94489 9.65657 3.00789 9.7071 3.09892C9.89928 3.44509 9.89917 3.81757 9.90925 4.02373C9.9211 4.26595 9.94241 4.36552 10.003 4.44951C10.0368 4.49635 10.0717 4.53404 10.1221 4.5833H10.4376C10.5701 4.5833 10.6973 4.63619 10.7911 4.72978C10.8635 4.80233 10.935 4.8738 10.9913 4.93779C11.0502 5.00486 11.1161 5.08912 11.1641 5.19756C11.2641 5.42325 11.2763 5.6769 11.2012 5.90947L11.1641 6.00713C11.1162 6.11555 11.0503 6.19975 10.9913 6.26689C10.935 6.33092 10.8636 6.4023 10.7911 6.4749L9.75398 7.51299C9.68188 7.58515 9.61143 7.65622 9.54792 7.7122C9.48137 7.77084 9.39751 7.83604 9.29011 7.88408V7.88506C9.03092 8.0006 8.73391 8.00065 8.47468 7.88506V7.88408C8.36716 7.83599 8.28251 7.77091 8.21589 7.7122C8.1524 7.6562 8.08188 7.5851 8.00984 7.51299C7.91637 7.41927 7.86336 7.29184 7.86335 7.15947C7.86309 6.94918 7.66985 6.79173 7.46394 6.83428L7.20417 6.88701L4.05964 10.0325C3.45015 10.6418 2.46204 10.6419 1.85261 10.0325C1.24329 9.4231 1.24332 8.43492 1.85261 7.82549L4.98738 4.68974C5.0829 4.06333 5.04112 3.6245 4.89167 3.28056C4.73223 2.91388 4.41953 2.58151 3.84187 2.2376C3.61072 2.09977 3.45614 1.84674 3.45613 1.56181C3.45629 1.19793 3.71251 0.86956 4.08698 0.800095L4.49323 0.736619ZM2.55964 8.53252C2.34087 8.75143 2.34085 9.10659 2.55964 9.32549C2.77854 9.54438 3.13364 9.54428 3.35261 9.32549L6.24909 6.429L5.45613 5.63603L2.55964 8.53252ZM6.79402 1.92217C6.21404 1.70942 5.56523 1.63661 4.84187 1.70439C5.27716 2.03513 5.60683 2.41543 5.80964 2.88213C6.0509 3.43743 6.08618 4.05684 5.98933 4.75517L7.11921 5.88506L7.26179 5.85576C8.01025 5.7011 8.714 6.20401 8.84089 6.92705C8.8548 6.94033 8.8661 6.95255 8.87702 6.9622C8.87854 6.96354 8.88052 6.96494 8.88191 6.96611C8.88329 6.96492 8.88522 6.96356 8.88679 6.9622C8.92097 6.93207 8.966 6.88796 9.04695 6.80693L10.0841 5.76787C10.1652 5.68664 10.2101 5.64202 10.2403 5.60771C10.2418 5.60598 10.2429 5.60344 10.2442 5.60185L10.2257 5.5833H9.91902C9.78651 5.58318 9.65917 5.53054 9.5655 5.43681C9.49117 5.36238 9.31361 5.20455 9.19148 5.03545C8.94052 4.68778 8.92187 4.31059 8.91023 4.07256C8.89681 3.79826 8.88953 3.68595 8.83308 3.58428C8.81864 3.55826 8.80913 3.5448 8.75105 3.46611C8.1754 2.68642 7.52047 2.18873 6.79402 1.92217Z"],"BulletList/l/filled":["M4.2002 16.9912C4.86285 16.9913 5.40039 17.5287 5.40039 18.1914C5.40028 18.854 4.86278 19.3915 4.2002 19.3916C3.53752 19.3916 3.00011 18.8541 3 18.1914C3 17.5287 3.53745 16.9912 4.2002 16.9912Z","M20.25 17.4414C20.6642 17.4414 21 17.7772 21 18.1914C21 18.6056 20.6642 18.9414 20.25 18.9414H8.75C8.33579 18.9414 8 18.6056 8 18.1914C8 17.7772 8.33579 17.4414 8.75 17.4414H20.25Z","M4.2002 10.9912C4.86285 10.9913 5.40039 11.5287 5.40039 12.1914C5.40029 12.854 4.86278 13.3915 4.2002 13.3916C3.53752 13.3916 3.00011 12.8541 3 12.1914C3 11.5287 3.53745 10.9912 4.2002 10.9912Z","M20.25 11.4414C20.6642 11.4414 21 11.7772 21 12.1914C21 12.6056 20.6642 12.9414 20.25 12.9414H8.75C8.33579 12.9414 8 12.6056 8 12.1914C8 11.7772 8.33579 11.4414 8.75 11.4414H20.25Z","M4.2002 4.99121C4.86285 4.99132 5.40039 5.52873 5.40039 6.19141C5.40029 6.85399 4.86278 7.3915 4.2002 7.3916C3.53752 7.3916 3.00011 6.85406 3 6.19141C3 5.52866 3.53745 4.99121 4.2002 4.99121Z","M20.25 5.44141C20.6642 5.44141 21 5.77719 21 6.19141C21 6.60562 20.6642 6.94141 20.25 6.94141H8.75C8.33579 6.94141 8 6.60562 8 6.19141C8 5.77719 8.33579 5.44141 8.75 5.44141H20.25Z"],"BulletList/l/outline":["M4.2002 16.9912C4.86285 16.9913 5.40039 17.5287 5.40039 18.1914C5.40028 18.854 4.86278 19.3915 4.2002 19.3916C3.53752 19.3916 3.00011 18.8541 3 18.1914C3 17.5287 3.53745 16.9912 4.2002 16.9912Z","M20.25 17.4414C20.6642 17.4414 21 17.7772 21 18.1914C21 18.6056 20.6642 18.9414 20.25 18.9414H8.75C8.33579 18.9414 8 18.6056 8 18.1914C8 17.7772 8.33579 17.4414 8.75 17.4414H20.25Z","M4.2002 10.9912C4.86285 10.9913 5.40039 11.5287 5.40039 12.1914C5.40029 12.854 4.86278 13.3915 4.2002 13.3916C3.53752 13.3916 3.00011 12.8541 3 12.1914C3 11.5287 3.53745 10.9912 4.2002 10.9912Z","M20.25 11.4414C20.6642 11.4414 21 11.7772 21 12.1914C21 12.6056 20.6642 12.9414 20.25 12.9414H8.75C8.33579 12.9414 8 12.6056 8 12.1914C8 11.7772 8.33579 11.4414 8.75 11.4414H20.25Z","M4.2002 4.99121C4.86285 4.99132 5.40039 5.52873 5.40039 6.19141C5.40029 6.85399 4.86278 7.3915 4.2002 7.3916C3.53752 7.3916 3.00011 6.85406 3 6.19141C3 5.52866 3.53745 4.99121 4.2002 4.99121Z","M20.25 5.44141C20.6642 5.44141 21 5.77719 21 6.19141C21 6.60562 20.6642 6.94141 20.25 6.94141H8.75C8.33579 6.94141 8 6.60562 8 6.19141C8 5.77719 8.33579 5.44141 8.75 5.44141H20.25Z"],"BulletList/m/filled":["M2.7998 11.3271C3.24163 11.3271 3.59961 11.6861 3.59961 12.1279C3.59935 12.5695 3.24147 12.9277 2.7998 12.9277C2.35823 12.9276 2.00026 12.5695 2 12.1279C2 11.6862 2.35807 11.3273 2.7998 11.3271Z","M13.5 11.5029C13.845 11.5031 14.125 11.7829 14.125 12.1279C14.1248 12.4729 13.8449 12.7528 13.5 12.7529H5.83301C5.48807 12.7528 5.20817 12.4729 5.20801 12.1279C5.20801 11.7829 5.48797 11.5031 5.83301 11.5029H13.5Z","M2.7998 7.32715C3.24163 7.32715 3.59961 7.6861 3.59961 8.12793C3.59935 8.56954 3.24147 8.92773 2.7998 8.92773C2.35823 8.92763 2.00026 8.56947 2 8.12793C2 7.68617 2.35807 7.32725 2.7998 7.32715Z","M13.5 7.50293C13.845 7.50311 14.125 7.78286 14.125 8.12793C14.1248 8.47286 13.8449 8.75275 13.5 8.75293H5.83301C5.48807 8.75277 5.20817 8.47287 5.20801 8.12793C5.20801 7.78285 5.48797 7.50309 5.83301 7.50293H13.5Z","M2.7998 3.32715C3.24163 3.32715 3.59961 3.6861 3.59961 4.12793C3.59935 4.56954 3.24147 4.92773 2.7998 4.92773C2.35823 4.92763 2.00026 4.56947 2 4.12793C2 3.68617 2.35807 3.32725 2.7998 3.32715Z","M13.5 3.50293C13.845 3.50311 14.125 3.78286 14.125 4.12793C14.1248 4.47286 13.8449 4.75275 13.5 4.75293H5.83301C5.48807 4.75276 5.20817 4.47287 5.20801 4.12793C5.20801 3.78285 5.48797 3.50309 5.83301 3.50293H13.5Z"],"BulletList/m/outline":["M2.7998 11.3271C3.24163 11.3271 3.59961 11.6861 3.59961 12.1279C3.59935 12.5695 3.24147 12.9277 2.7998 12.9277C2.35823 12.9276 2.00026 12.5695 2 12.1279C2 11.6862 2.35807 11.3273 2.7998 11.3271Z","M13.5 11.5029C13.845 11.5031 14.125 11.7829 14.125 12.1279C14.1248 12.4729 13.8449 12.7528 13.5 12.7529H5.83301C5.48807 12.7528 5.20817 12.4729 5.20801 12.1279C5.20801 11.7829 5.48797 11.5031 5.83301 11.5029H13.5Z","M2.7998 7.32715C3.24163 7.32715 3.59961 7.6861 3.59961 8.12793C3.59935 8.56954 3.24147 8.92773 2.7998 8.92773C2.35823 8.92763 2.00026 8.56947 2 8.12793C2 7.68617 2.35807 7.32725 2.7998 7.32715Z","M13.5 7.50293C13.845 7.50311 14.125 7.78286 14.125 8.12793C14.1248 8.47286 13.8449 8.75275 13.5 8.75293H5.83301C5.48807 8.75277 5.20817 8.47287 5.20801 8.12793C5.20801 7.78285 5.48797 7.50309 5.83301 7.50293H13.5Z","M2.7998 3.32715C3.24163 3.32715 3.59961 3.6861 3.59961 4.12793C3.59935 4.56954 3.24147 4.92773 2.7998 4.92773C2.35823 4.92763 2.00026 4.56947 2 4.12793C2 3.68617 2.35807 3.32725 2.7998 3.32715Z","M13.5 3.50293C13.845 3.50311 14.125 3.78286 14.125 4.12793C14.1248 4.47286 13.8449 4.75275 13.5 4.75293H5.83301C5.48807 4.75276 5.20817 4.47287 5.20801 4.12793C5.20801 3.78285 5.48797 3.50309 5.83301 3.50293H13.5Z"],"BulletList/s/filled":["M2.09961 8.49609C2.43098 8.49609 2.7002 8.76433 2.7002 9.0957C2.70014 9.42703 2.43095 9.69531 2.09961 9.69531C1.76845 9.6951 1.50005 9.4269 1.5 9.0957C1.5 8.76446 1.76842 8.4963 2.09961 8.49609Z","M10.125 8.5957C10.4011 8.5957 10.625 8.81956 10.625 9.0957C10.625 9.37185 10.4011 9.5957 10.125 9.5957H4.375C4.09886 9.5957 3.875 9.37185 3.875 9.0957C3.875 8.81956 4.09886 8.5957 4.375 8.5957H10.125Z","M2.09961 5.49609C2.43098 5.49609 2.7002 5.76433 2.7002 6.0957C2.70014 6.42703 2.43095 6.69531 2.09961 6.69531C1.76845 6.6951 1.50005 6.4269 1.5 6.0957C1.5 5.76446 1.76842 5.4963 2.09961 5.49609Z","M10.125 5.5957C10.4011 5.5957 10.625 5.81956 10.625 6.0957C10.625 6.37185 10.4011 6.5957 10.125 6.5957H4.375C4.09886 6.5957 3.875 6.37185 3.875 6.0957C3.875 5.81956 4.09886 5.5957 4.375 5.5957H10.125Z","M2.09961 2.49512C2.43098 2.49512 2.7002 2.76433 2.7002 3.0957C2.70014 3.42703 2.43095 3.69531 2.09961 3.69531C1.76845 3.6951 1.50005 3.4269 1.5 3.0957C1.5 2.76446 1.76842 2.49533 2.09961 2.49512Z","M10.125 2.5957C10.4011 2.5957 10.625 2.81956 10.625 3.0957C10.625 3.37185 10.4011 3.5957 10.125 3.5957H4.375C4.09886 3.5957 3.875 3.37185 3.875 3.0957C3.875 2.81956 4.09886 2.5957 4.375 2.5957H10.125Z"],"BulletList/s/outline":["M2.09961 8.49609C2.43098 8.49609 2.7002 8.76433 2.7002 9.0957C2.70014 9.42703 2.43095 9.69531 2.09961 9.69531C1.76845 9.6951 1.50005 9.4269 1.5 9.0957C1.5 8.76446 1.76842 8.4963 2.09961 8.49609Z","M10.125 8.5957C10.4011 8.5957 10.625 8.81956 10.625 9.0957C10.625 9.37185 10.4011 9.5957 10.125 9.5957H4.375C4.09886 9.5957 3.875 9.37185 3.875 9.0957C3.875 8.81956 4.09886 8.5957 4.375 8.5957H10.125Z","M2.09961 5.49609C2.43098 5.49609 2.7002 5.76433 2.7002 6.0957C2.70014 6.42703 2.43095 6.69531 2.09961 6.69531C1.76845 6.6951 1.50005 6.4269 1.5 6.0957C1.5 5.76446 1.76842 5.4963 2.09961 5.49609Z","M10.125 5.5957C10.4011 5.5957 10.625 5.81956 10.625 6.0957C10.625 6.37185 10.4011 6.5957 10.125 6.5957H4.375C4.09886 6.5957 3.875 6.37185 3.875 6.0957C3.875 5.81956 4.09886 5.5957 4.375 5.5957H10.125Z","M2.09961 2.49512C2.43098 2.49512 2.7002 2.76433 2.7002 3.0957C2.70014 3.42703 2.43095 3.69531 2.09961 3.69531C1.76845 3.6951 1.50005 3.4269 1.5 3.0957C1.5 2.76446 1.76842 2.49533 2.09961 2.49512Z","M10.125 2.5957C10.4011 2.5957 10.625 2.81956 10.625 3.0957C10.625 3.37185 10.4011 3.5957 10.125 3.5957H4.375C4.09886 3.5957 3.875 3.37185 3.875 3.0957C3.875 2.81956 4.09886 2.5957 4.375 2.5957H10.125Z"],"CalendarTimePlanSchedule/l/filled":["M20.7783 10.5V18.25C20.7783 19.7688 19.5471 20.9999 18.0283 21H5.52832C4.00954 21 2.77832 19.7688 2.77832 18.25V10.5H20.7783Z","M16.0283 2C16.4425 2.00007 16.7783 2.33583 16.7783 2.75V4H18.0283C19.5471 4.00007 20.7783 5.23126 20.7783 6.75V9H2.77832V6.75C2.77832 5.23122 4.00954 4 5.52832 4H6.77832V2.75C6.77832 2.33579 7.11411 2 7.52832 2C7.94247 2.00007 8.27832 2.33583 8.27832 2.75V4H15.2783V2.75C15.2783 2.33579 15.6141 2 16.0283 2Z"],"CalendarTimePlanSchedule/l/outline":["M16.0283 2C16.4425 2.00007 16.7783 2.33583 16.7783 2.75V4H18.0283C19.5471 4.00007 20.7783 5.23126 20.7783 6.75V18.25C20.7783 19.7688 19.5471 20.9999 18.0283 21H5.52832C4.00954 21 2.77832 19.7688 2.77832 18.25V6.75C2.77832 5.23122 4.00954 4 5.52832 4H6.77832V2.75C6.77832 2.33579 7.11411 2 7.52832 2C7.94248 2.00007 8.27832 2.33583 8.27832 2.75V4H15.2783V2.75C15.2783 2.33579 15.6141 2 16.0283 2ZM4.27832 18.25C4.27832 18.9404 4.83796 19.5 5.52832 19.5H18.0283C18.7187 19.4999 19.2783 18.9403 19.2783 18.25V10.5H4.27832V18.25ZM5.52832 5.5C4.83796 5.5 4.27832 6.05964 4.27832 6.75V9H19.2783V6.75C19.2783 6.05968 18.7186 5.50007 18.0283 5.5H5.52832Z"],"CalendarTimePlanSchedule/m/filled":["M13.8525 7V12.167C13.8524 13.1794 13.031 14 12.0186 14H3.68555C2.67314 14 1.85271 13.1794 1.85254 12.167V7H13.8525Z","M10.6855 1.33301C10.9616 1.33303 11.1854 1.55702 11.1855 1.83301V2.66699H12.0186C13.0311 2.66699 13.8525 3.48748 13.8525 4.5V6H1.85254V4.5C1.85254 3.48748 2.67303 2.66699 3.68555 2.66699H4.51855V1.83301C4.51872 1.5571 4.74265 1.33316 5.01855 1.33301C5.29459 1.33301 5.51839 1.55701 5.51855 1.83301V2.66699H10.1855V1.83301C10.1857 1.55701 10.4095 1.33301 10.6855 1.33301Z"],"CalendarTimePlanSchedule/m/outline":["M10.6855 1.20801C11.0306 1.20807 11.3104 1.48801 11.3105 1.83301V2.54199H12.0195C13.1007 2.54237 13.9774 3.41883 13.9775 4.5V12.167C13.9774 13.2482 13.1007 14.1246 12.0195 14.125H3.68555C2.60425 14.1248 1.7277 13.2483 1.72754 12.167V4.5C1.72771 3.4187 2.60425 2.54217 3.68555 2.54199H4.39355V1.83301C4.39372 1.48805 4.67359 1.20814 5.01855 1.20801C5.36363 1.20801 5.64339 1.48797 5.64355 1.83301V2.54199H10.0605V1.83301C10.0607 1.48797 10.3405 1.20801 10.6855 1.20801ZM2.97754 12.167C2.9777 12.558 3.29459 12.8748 3.68555 12.875H12.0195C12.4103 12.8746 12.7274 12.5578 12.7275 12.167V7.125H2.97754V12.167ZM3.68555 3.79199C3.2946 3.79217 2.97771 4.10906 2.97754 4.5V5.875H12.7275V4.5C12.7274 4.10917 12.4103 3.79237 12.0195 3.79199H3.68555Z"],"CalendarTimePlanSchedule/s/filled":["M10.3896 5.25V9.125C10.3896 9.88424 9.77382 10.4997 9.01465 10.5H2.76465C2.00526 10.5 1.38867 9.8844 1.38867 9.125V5.25H10.3896Z","M8.01465 1C8.22152 1.00026 8.38965 1.16806 8.38965 1.375V2H9.01465C9.77382 2.00026 10.3896 2.61577 10.3896 3.375V4.5H1.38867V3.375C1.38867 2.61561 2.00526 2 2.76465 2H3.38965V1.375C3.38965 1.1679 3.55754 1 3.76465 1C3.97153 1.00026 4.13965 1.16806 4.13965 1.375V2H7.63965V1.375C7.63965 1.1679 7.80755 1 8.01465 1Z"],"CalendarTimePlanSchedule/s/outline":["M8.01465 0.875C8.29057 0.875264 8.51465 1.09902 8.51465 1.375V1.875H9.01465C9.84287 1.87526 10.5146 2.54674 10.5146 3.375V9.125C10.5146 9.95328 9.84287 10.6247 9.01465 10.625H2.76465C1.93623 10.625 1.26367 9.95345 1.26367 9.125V3.375C1.26367 2.54657 1.93622 1.875 2.76465 1.875H3.26465V1.375C3.26465 1.09886 3.48851 0.875 3.76465 0.875C4.04057 0.875264 4.26465 1.09902 4.26465 1.375V1.875H7.51465V1.375C7.51465 1.09886 7.73851 0.875 8.01465 0.875ZM2.26465 9.125C2.26465 9.40115 2.4885 9.625 2.76465 9.625H9.01465C9.29058 9.62474 9.51465 9.40099 9.51465 9.125V5.375H2.26465V9.125ZM2.76465 2.875C2.48851 2.875 2.26465 3.09886 2.26465 3.375V4.375H9.51465V3.375C9.51465 3.09902 9.29058 2.87526 9.01465 2.875H2.76465Z"],"Camera/l/filled":["M4.75 3C3.23122 3 2 4.23122 2 5.75V18.25C2 19.7688 3.23122 21 4.75 21H19.25C20.7688 21 22 19.7688 22 18.25V5.75C22 4.23122 20.7688 3 19.25 3H4.75ZM16.5 7.5C16.5 8.05228 16.9477 8.5 17.5 8.5C18.0523 8.5 18.5 8.05228 18.5 7.5C18.5 6.94772 18.0523 6.5 17.5 6.5C16.9477 6.5 16.5 6.94772 16.5 7.5ZM8.375 12C8.375 9.99797 9.99797 8.375 12 8.375C14.002 8.375 15.625 9.99797 15.625 12C15.625 14.002 14.002 15.625 12 15.625C9.99797 15.625 8.375 14.002 8.375 12Z"],"Camera/l/outline":["M16.75 7.5C16.75 7.91421 17.0858 8.25 17.5 8.25C17.9142 8.25 18.25 7.91421 18.25 7.5H17.5H16.75ZM18.25 7.49C18.25 7.07579 17.9142 6.74 17.5 6.74C17.0858 6.74 16.75 7.07579 16.75 7.49H17.5H18.25ZM2.75 5.75H3.5C3.5 5.05964 4.05964 4.5 4.75 4.5V3.75V3C3.23122 3 2 4.23122 2 5.75H2.75ZM4.75 3.75V4.5H19.25V3.75V3H4.75V3.75ZM19.25 3.75V4.5C19.9404 4.5 20.5 5.05964 20.5 5.75H21.25H22C22 4.23122 20.7688 3 19.25 3V3.75ZM21.25 5.75H20.5V18.25H21.25H22V5.75H21.25ZM21.25 18.25H20.5C20.5 18.9404 19.9404 19.5 19.25 19.5V20.25V21C20.7688 21 22 19.7688 22 18.25H21.25ZM19.25 20.25V19.5H4.75V20.25V21H19.25V20.25ZM4.75 20.25V19.5C4.05964 19.5 3.5 18.9404 3.5 18.25H2.75H2C2 19.7688 3.23122 21 4.75 21V20.25ZM2.75 18.25H3.5V5.75H2.75H2V18.25H2.75ZM15.25 12H14.5C14.5 13.3807 13.3807 14.5 12 14.5V15.25V16C14.2091 16 16 14.2091 16 12H15.25ZM12 15.25V14.5C10.6193 14.5 9.5 13.3807 9.5 12H8.75H8C8 14.2091 9.79089 16 12 16V15.25ZM8.75 12H9.5C9.5 10.6193 10.6193 9.5 12 9.5V8.75V8C9.79089 8 8 9.79089 8 12H8.75ZM12 8.75V9.5C13.3807 9.5 14.5 10.6193 14.5 12H15.25H16C16 9.79089 14.2091 8 12 8V8.75ZM17.5 7.5H18.25V7.49H17.5H16.75V7.5H17.5ZM17.75 7.5H17C17 7.22392 17.2238 7 17.5 7V7.75V8.5C18.0524 8.5 18.5 8.05223 18.5 7.5H17.75ZM17.5 7.75V7C17.7762 7 18 7.22392 18 7.5H17.25H16.5C16.5 8.05223 16.9476 8.5 17.5 8.5V7.75ZM17.25 7.5H18C18 7.77608 17.7762 8 17.5 8V7.25V6.5C16.9476 6.5 16.5 6.94778 16.5 7.5H17.25ZM17.5 7.25V8C17.2238 8 17 7.77608 17 7.5H17.75H18.5C18.5 6.94778 18.0524 6.5 17.5 6.5V7.25Z"],"Camera/m/filled":["M3.16671 2C2.15419 2 1.33337 2.82081 1.33337 3.83333V12.1667C1.33337 13.1792 2.15419 14 3.16671 14H12.8334C13.8459 14 14.6667 13.1792 14.6667 12.1667V3.83333C14.6667 2.82081 13.8459 2 12.8334 2H3.16671ZM11 5C11 5.36819 11.2985 5.66667 11.6667 5.66667C12.0349 5.66667 12.3334 5.36819 12.3334 5C12.3334 4.63181 12.0349 4.33333 11.6667 4.33333C11.2985 4.33333 11 4.63181 11 5ZM5.58337 8C5.58337 6.66531 6.66535 5.58333 8.00004 5.58333C9.33471 5.58333 10.4167 6.66531 10.4167 8C10.4167 9.33467 9.33471 10.4167 8.00004 10.4167C6.66535 10.4167 5.58337 9.33467 5.58337 8Z"],"Camera/m/outline":["M11.0417 5C11.0417 5.34518 11.3215 5.625 11.6667 5.625C12.0119 5.625 12.2917 5.34518 12.2917 5H11.6667H11.0417ZM12.2917 4.99333C12.2917 4.64816 12.0119 4.36833 11.6667 4.36833C11.3215 4.36833 11.0417 4.64816 11.0417 4.99333H11.6667H12.2917ZM1.83337 3.83333H2.45837C2.45837 3.44213 2.77551 3.125 3.16671 3.125V2.5V1.875C2.08515 1.875 1.20837 2.75178 1.20837 3.83333H1.83337ZM3.16671 2.5V3.125H12.8334V2.5V1.875H3.16671V2.5ZM12.8334 2.5V3.125C13.2246 3.125 13.5417 3.44213 13.5417 3.83333H14.1667H14.7917C14.7917 2.75178 13.915 1.875 12.8334 1.875V2.5ZM14.1667 3.83333H13.5417V12.1667H14.1667H14.7917V3.83333H14.1667ZM14.1667 12.1667H13.5417C13.5417 12.5579 13.2246 12.875 12.8334 12.875V13.5V14.125C13.915 14.125 14.7917 13.2482 14.7917 12.1667H14.1667ZM12.8334 13.5V12.875H3.16671V13.5V14.125H12.8334V13.5ZM3.16671 13.5V12.875C2.7755 12.875 2.45837 12.5579 2.45837 12.1667H1.83337H1.20837C1.20837 13.2483 2.08516 14.125 3.16671 14.125V13.5ZM1.83337 12.1667H2.45837V3.83333H1.83337H1.20837V12.1667H1.83337ZM10.1667 8H9.54171C9.54171 8.85142 8.85146 9.54167 8.00004 9.54167V10.1667V10.7917C9.54182 10.7917 10.7917 9.54178 10.7917 8H10.1667ZM8.00004 10.1667V9.54167C7.14862 9.54167 6.45837 8.85142 6.45837 8H5.83337H5.20837C5.20837 9.54178 6.45826 10.7917 8.00004 10.7917V10.1667ZM5.83337 8H6.45837C6.45837 7.14858 7.14862 6.45833 8.00004 6.45833V5.83333V5.20833C6.45826 5.20833 5.20837 6.45822 5.20837 8H5.83337ZM8.00004 5.83333V6.45833C8.85146 6.45833 9.54171 7.14858 9.54171 8H10.1667H10.7917C10.7917 6.45822 9.54182 5.20833 8.00004 5.20833V5.83333ZM11.6667 5H12.2917V4.99333H11.6667H11.0417V5H11.6667ZM11.8334 5H11.2084C11.2084 4.74692 11.4135 4.54167 11.6667 4.54167V5.16667V5.79167C12.104 5.79167 12.4584 5.43718 12.4584 5H11.8334ZM11.6667 5.16667V4.54167C11.9199 4.54167 12.125 4.74692 12.125 5H11.5H10.875C10.875 5.43717 11.2294 5.79167 11.6667 5.79167V5.16667ZM11.5 5H12.125C12.125 5.25308 11.9199 5.45833 11.6667 5.45833V4.83333V4.20833C11.2294 4.20833 10.875 4.56283 10.875 5H11.5ZM11.6667 4.83333V5.45833C11.4135 5.45833 11.2084 5.25308 11.2084 5H11.8334H12.4584C12.4584 4.56282 12.104 4.20833 11.6667 4.20833V4.83333Z"],"Camera/s/filled":["M2.375 1.5C1.61561 1.5 1 2.11561 1 2.875V9.125C1 9.8844 1.61561 10.5 2.375 10.5H9.625C10.3844 10.5 11 9.8844 11 9.125V2.875C11 2.11561 10.3844 1.5 9.625 1.5H2.375ZM8.25 3.75C8.25 4.02614 8.47385 4.25 8.75 4.25C9.02615 4.25 9.25 4.02614 9.25 3.75C9.25 3.47386 9.02615 3.25 8.75 3.25C8.47385 3.25 8.25 3.47386 8.25 3.75ZM4.1875 6C4.1875 4.99899 4.99899 4.1875 6 4.1875C7.001 4.1875 7.8125 4.99899 7.8125 6C7.8125 7.001 7.001 7.8125 6 7.8125C4.99899 7.8125 4.1875 7.001 4.1875 6Z"],"Camera/s/outline":["M8.25 3.75C8.25 4.02614 8.47386 4.25 8.75 4.25C9.02614 4.25 9.25 4.02614 9.25 3.75H8.75H8.25ZM9.25 3.745C9.25 3.46886 9.02614 3.245 8.75 3.245C8.47386 3.245 8.25 3.46886 8.25 3.745H8.75H9.25ZM1.375 2.875H1.875C1.875 2.59886 2.09886 2.375 2.375 2.375V1.875V1.375C1.54657 1.375 0.875 2.04657 0.875 2.875H1.375ZM2.375 1.875V2.375H9.625V1.875V1.375H2.375V1.875ZM9.625 1.875V2.375C9.90115 2.375 10.125 2.59885 10.125 2.875H10.625H11.125C11.125 2.04658 10.4534 1.375 9.625 1.375V1.875ZM10.625 2.875H10.125V9.125H10.625H11.125V2.875H10.625ZM10.625 9.125H10.125C10.125 9.40116 9.90116 9.625 9.625 9.625V10.125V10.625C10.4534 10.625 11.125 9.95344 11.125 9.125H10.625ZM9.625 10.125V9.625H2.375V10.125V10.625H9.625V10.125ZM2.375 10.125V9.625C2.09885 9.625 1.875 9.40115 1.875 9.125H1.375H0.875C0.875 9.95345 1.54658 10.625 2.375 10.625V10.125ZM1.375 9.125H1.875V2.875H1.375H0.875V9.125H1.375ZM7.625 6H7.125C7.125 6.62131 6.62131 7.125 6 7.125V7.625V8.125C7.17359 8.125 8.125 7.17359 8.125 6H7.625ZM6 7.625V7.125C5.37869 7.125 4.875 6.62131 4.875 6H4.375H3.875C3.875 7.17359 4.82641 8.125 6 8.125V7.625ZM4.375 6H4.875C4.875 5.37869 5.37869 4.875 6 4.875V4.375V3.875C4.82641 3.875 3.875 4.82641 3.875 6H4.375ZM6 4.375V4.875C6.62131 4.875 7.125 5.37869 7.125 6H7.625H8.125C8.125 4.82641 7.17359 3.875 6 3.875V4.375ZM8.75 3.75H9.25V3.745H8.75H8.25V3.75H8.75ZM8.875 3.75H8.375C8.375 3.54293 8.54287 3.375 8.75 3.375V3.875V4.375C9.09523 4.375 9.375 4.09514 9.375 3.75H8.875ZM8.75 3.875V3.375C8.95713 3.375 9.125 3.54293 9.125 3.75H8.625H8.125C8.125 4.09514 8.40477 4.375 8.75 4.375V3.875ZM8.625 3.75H9.125C9.125 3.95707 8.95713 4.125 8.75 4.125V3.625V3.125C8.40477 3.125 8.125 3.40486 8.125 3.75H8.625ZM8.75 3.625V4.125C8.54287 4.125 8.375 3.95707 8.375 3.75H8.875H9.375C9.375 3.40486 9.09523 3.125 8.75 3.125V3.625Z"],"CardDetailSquareLinesBottom/l/filled":["M2 6.75C2 5.23122 3.23122 4 4.75 4H19.25C20.7688 4 22 5.23122 22 6.75V17.25C22 18.7688 20.7688 20 19.25 20H4.75C3.23122 20 2 18.7688 2 17.25V6.75ZM6 15.25C6 14.8358 6.33579 14.5 6.75 14.5H12.25C12.6642 14.5 13 14.8358 13 15.25C13 15.6642 12.6642 16 12.25 16H6.75C6.33579 16 6 15.6642 6 15.25ZM15 15.25C15 14.8358 15.3358 14.5 15.75 14.5H17.25C17.6642 14.5 18 14.8358 18 15.25C18 15.6642 17.6642 16 17.25 16H15.75C15.3358 16 15 15.6642 15 15.25ZM6.75 10.5C6.33579 10.5 6 10.8358 6 11.25C6 11.6642 6.33579 12 6.75 12H8.25C8.66421 12 9 11.6642 9 11.25C9 10.8358 8.66421 10.5 8.25 10.5H6.75ZM11.75 10.5C11.3358 10.5 11 10.8358 11 11.25C11 11.6642 11.3358 12 11.75 12H17.25C17.6642 12 18 11.6642 18 11.25C18 10.8358 17.6642 10.5 17.25 10.5H11.75Z"],"CardDetailSquareLinesBottom/l/outline":["M20.5 6.75C20.5 6.05964 19.9404 5.5 19.25 5.5H4.75C4.05964 5.5 3.5 6.05964 3.5 6.75V17.25C3.5 17.9404 4.05964 18.5 4.75 18.5H19.25C19.9404 18.5 20.5 17.9404 20.5 17.25V6.75ZM11.25 14.5C11.6642 14.5 12 14.8358 12 15.25C12 15.6642 11.6642 16 11.25 16H6.75C6.33579 16 6 15.6642 6 15.25C6 14.8358 6.33579 14.5 6.75 14.5H11.25ZM17.25 14.5C17.6642 14.5 18 14.8358 18 15.25C18 15.6642 17.6642 16 17.25 16H14.75C14.3358 16 14 15.6642 14 15.25C14 14.8358 14.3358 14.5 14.75 14.5H17.25ZM8.25 10.5C8.66421 10.5 9 10.8358 9 11.25C9 11.6642 8.66421 12 8.25 12H6.75C6.33579 12 6 11.6642 6 11.25C6 10.8358 6.33579 10.5 6.75 10.5H8.25ZM17.25 10.5C17.6642 10.5 18 10.8358 18 11.25C18 11.6642 17.6642 12 17.25 12H11.75C11.3358 12 11 11.6642 11 11.25C11 10.8358 11.3358 10.5 11.75 10.5H17.25ZM22 17.25C22 18.7688 20.7688 20 19.25 20H4.75C3.23122 20 2 18.7688 2 17.25V6.75C2 5.23122 3.23122 4 4.75 4H19.25C20.7688 4 22 5.23122 22 6.75V17.25Z"],"CardDetailSquareLinesBottom/m/filled":["M1.33331 4.50002C1.33331 3.4875 2.15413 2.66669 3.16665 2.66669H12.8333C13.8458 2.66669 14.6666 3.4875 14.6666 4.50002V11.5C14.6666 12.5126 13.8458 13.3334 12.8333 13.3334H3.16665C2.15413 13.3334 1.33331 12.5126 1.33331 11.5V4.50002ZM3.99998 10.1667C3.99998 9.89055 4.22384 9.66669 4.49998 9.66669H8.16665C8.44278 9.66669 8.66665 9.89055 8.66665 10.1667C8.66665 10.4428 8.44278 10.6667 8.16665 10.6667H4.49998C4.22384 10.6667 3.99998 10.4428 3.99998 10.1667ZM9.99998 10.1667C9.99998 9.89055 10.2238 9.66669 10.5 9.66669H11.5C11.7761 9.66669 12 9.89055 12 10.1667C12 10.4428 11.7761 10.6667 11.5 10.6667H10.5C10.2238 10.6667 9.99998 10.4428 9.99998 10.1667ZM4.49998 7.00002C4.22384 7.00002 3.99998 7.22389 3.99998 7.50002C3.99998 7.77615 4.22384 8.00002 4.49998 8.00002H5.49998C5.77612 8.00002 5.99998 7.77615 5.99998 7.50002C5.99998 7.22389 5.77612 7.00002 5.49998 7.00002H4.49998ZM7.83331 7.00002C7.55718 7.00002 7.33331 7.22389 7.33331 7.50002C7.33331 7.77615 7.55718 8.00002 7.83331 8.00002H11.5C11.7761 8.00002 12 7.77615 12 7.50002C12 7.22389 11.7761 7.00002 11.5 7.00002H7.83331Z"],"CardDetailSquareLinesBottom/m/outline":["M13.5413 4.49969C13.5411 4.10864 13.2244 3.79169 12.8333 3.79169H3.16632C2.77538 3.79186 2.45849 4.10875 2.45831 4.49969V11.4997C2.45831 11.8908 2.77526 12.2085 3.16632 12.2087H12.8333C13.2245 12.2087 13.5413 11.8909 13.5413 11.4997V4.49969ZM7.50031 9.54169C7.84533 9.54186 8.12531 9.82162 8.12531 10.1667C8.12531 10.5118 7.84533 10.7915 7.50031 10.7917H4.50031C4.15513 10.7917 3.87531 10.5119 3.87531 10.1667C3.87531 9.82151 4.15513 9.54169 4.50031 9.54169H7.50031ZM11.5003 9.54169C11.8453 9.54186 12.1253 9.82162 12.1253 10.1667C12.1253 10.5118 11.8453 10.7915 11.5003 10.7917H9.83331C9.48813 10.7917 9.20831 10.5119 9.20831 10.1667C9.20831 9.82151 9.48813 9.54169 9.83331 9.54169H11.5003ZM5.50031 6.87469C5.84523 6.87487 6.12513 7.15477 6.12531 7.49969C6.12531 7.84476 5.84533 8.12452 5.50031 8.12469H4.50031C4.15513 8.12469 3.87531 7.84487 3.87531 7.49969C3.87548 7.15467 4.15524 6.87469 4.50031 6.87469H5.50031ZM11.5003 6.87469C11.8452 6.87487 12.1251 7.15477 12.1253 7.49969C12.1253 7.84476 11.8453 8.12452 11.5003 8.12469H7.83331C7.48813 8.12469 7.20831 7.84487 7.20831 7.49969C7.20849 7.15467 7.48824 6.87469 7.83331 6.87469H11.5003ZM14.7913 11.4997C14.7913 12.5813 13.9149 13.4587 12.8333 13.4587H3.16632C2.08492 13.4585 1.20831 12.5812 1.20831 11.4997V4.49969C1.20849 3.41839 2.08502 2.54186 3.16632 2.54169H12.8333C13.9148 2.54169 14.7911 3.41829 14.7913 4.49969V11.4997Z"],"CardDetailSquareLinesBottom/s/filled":["M1 3.375C1 2.61561 1.61561 2 2.375 2H9.625C10.3844 2 11 2.61561 11 3.375V8.625C11 9.3844 10.3844 10 9.625 10H2.375C1.61561 10 1 9.3844 1 8.625V3.375ZM3 7.625C3 7.4179 3.1679 7.25 3.375 7.25H6.125C6.3321 7.25 6.5 7.4179 6.5 7.625C6.5 7.8321 6.3321 8 6.125 8H3.375C3.1679 8 3 7.8321 3 7.625ZM7.5 7.625C7.5 7.4179 7.6679 7.25 7.875 7.25H8.625C8.8321 7.25 9 7.4179 9 7.625C9 7.8321 8.8321 8 8.625 8H7.875C7.6679 8 7.5 7.8321 7.5 7.625ZM3.375 5.25C3.1679 5.25 3 5.4179 3 5.625C3 5.8321 3.1679 6 3.375 6H4.125C4.3321 6 4.5 5.8321 4.5 5.625C4.5 5.4179 4.3321 5.25 4.125 5.25H3.375ZM5.875 5.25C5.6679 5.25 5.5 5.4179 5.5 5.625C5.5 5.8321 5.6679 6 5.875 6H8.625C8.8321 6 9 5.8321 9 5.625C9 5.4179 8.8321 5.25 8.625 5.25H5.875Z"],"CardDetailSquareLinesBottom/s/outline":["M10.125 3.375C10.125 3.09885 9.90115 2.875 9.625 2.875H2.375C2.09886 2.875 1.875 3.09886 1.875 3.375V8.625C1.875 8.90115 2.09885 9.125 2.375 9.125H9.625C9.90116 9.125 10.125 8.90116 10.125 8.625V3.375ZM5.625 7.125C5.90114 7.125 6.125 7.34886 6.125 7.625C6.125 7.90114 5.90114 8.125 5.625 8.125H3.375C3.09886 8.125 2.875 7.90114 2.875 7.625C2.875 7.34886 3.09886 7.125 3.375 7.125H5.625ZM8.625 7.125C8.90114 7.125 9.125 7.34886 9.125 7.625C9.125 7.90114 8.90114 8.125 8.625 8.125H7.375C7.09886 8.125 6.875 7.90114 6.875 7.625C6.875 7.34886 7.09886 7.125 7.375 7.125H8.625ZM4.125 5.125C4.40114 5.125 4.625 5.34886 4.625 5.625C4.625 5.90114 4.40114 6.125 4.125 6.125H3.375C3.09886 6.125 2.875 5.90114 2.875 5.625C2.875 5.34886 3.09886 5.125 3.375 5.125H4.125ZM8.625 5.125C8.90114 5.125 9.125 5.34886 9.125 5.625C9.125 5.90114 8.90114 6.125 8.625 6.125H5.875C5.59886 6.125 5.375 5.90114 5.375 5.625C5.375 5.34886 5.59886 5.125 5.875 5.125H8.625ZM11.125 8.625C11.125 9.45344 10.4534 10.125 9.625 10.125H2.375C1.54658 10.125 0.875 9.45345 0.875 8.625V3.375C0.875 2.54657 1.54657 1.875 2.375 1.875H9.625C10.4534 1.875 11.125 2.54658 11.125 3.375V8.625Z"],"ChangesDiffDotBox/l/filled":["M18.6429 3.1618C20.1617 3.1618 21.3929 4.39302 21.3929 5.9118V18.4118C21.3929 19.9306 20.1617 21.1618 18.6429 21.1618H6.14294C4.62416 21.1618 3.39294 19.9306 3.39294 18.4118V5.9118C3.39294 4.39302 4.62416 3.1618 6.14294 3.1618H18.6429ZM12.3929 10.1618C11.2883 10.1618 10.3929 11.0572 10.3929 12.1618C10.3929 13.2664 11.2883 14.1618 12.3929 14.1618C13.4975 14.1618 14.3929 13.2664 14.3929 12.1618C14.3929 11.0572 13.4975 10.1618 12.3929 10.1618Z"],"ChangesDiffDotBox/l/outline":["M12.3926 10.1621C13.4971 10.1621 14.3926 11.0575 14.3926 12.1621C14.3924 13.2665 13.497 14.1621 12.3926 14.1621C11.2883 14.1619 10.3927 13.2664 10.3926 12.1621C10.3926 11.0577 11.2882 10.1623 12.3926 10.1621Z","M18.6426 3.16211C20.1614 3.16211 21.3926 4.39333 21.3926 5.91211V18.4121C21.3924 19.9308 20.1613 21.1621 18.6426 21.1621H6.14258C4.62407 21.1619 3.39274 19.9307 3.39258 18.4121V5.91211C3.39258 4.39345 4.62396 3.16231 6.14258 3.16211H18.6426ZM6.14258 4.66211C5.45239 4.66231 4.89258 5.22187 4.89258 5.91211V18.4121C4.89274 19.1022 5.45248 19.6619 6.14258 19.6621H18.6426C19.3329 19.6621 19.8924 19.1024 19.8926 18.4121V5.91211C19.8926 5.22175 19.333 4.66211 18.6426 4.66211H6.14258Z"],"ChangesDiffDotBox/m/filled":["M12.4286 2.10785C13.4412 2.10785 14.262 2.92866 14.262 3.94118V12.2745C14.262 13.287 13.4412 14.1078 12.4286 14.1078H4.0953C3.08278 14.1078 2.26196 13.287 2.26196 12.2745V3.94118C2.26196 2.92866 3.08278 2.10785 4.0953 2.10785H12.4286ZM8.26196 6.77452C7.52556 6.77452 6.92863 7.37145 6.92863 8.10785C6.92863 8.84425 7.52556 9.44118 8.26196 9.44118C8.99836 9.44118 9.5953 8.84425 9.5953 8.10785C9.5953 7.37145 8.99836 6.77452 8.26196 6.77452Z"],"ChangesDiffDotBox/m/outline":["M8.26172 6.77441C8.99795 6.77441 9.59546 7.37125 9.5957 8.10742C9.5957 8.8438 8.9981 9.44141 8.26172 9.44141C7.52546 9.44126 6.92871 8.84371 6.92871 8.10742C6.92895 7.37134 7.52561 6.77456 8.26172 6.77441Z","M12.4287 1.98242C13.5099 1.9826 14.3863 2.85933 14.3867 3.94043V12.2744C14.3865 13.3557 13.51 14.2322 12.4287 14.2324H4.09473C3.01354 14.2321 2.13689 13.3557 2.13672 12.2744V3.94043C2.13713 2.85941 3.01368 1.98273 4.09473 1.98242H12.4287ZM4.09473 3.23242C3.70404 3.23273 3.38712 3.54976 3.38672 3.94043V12.2744C3.38689 12.6653 3.70389 12.9821 4.09473 12.9824H12.4287C12.8197 12.9822 13.1365 12.6654 13.1367 12.2744V3.94043C13.1363 3.54968 12.8195 3.2326 12.4287 3.23242H4.09473Z"],"ChangesDiffDotBox/s/filled":["M9.32147 1.58093C10.0809 1.58093 10.6965 2.19654 10.6965 2.95593V9.20593C10.6965 9.96533 10.0809 10.5809 9.32147 10.5809H3.07147C2.31208 10.5809 1.69647 9.96533 1.69647 9.20593V2.95593C1.69647 2.19654 2.31208 1.58093 3.07147 1.58093H9.32147ZM6.19647 5.08093C5.64417 5.08093 5.19647 5.52863 5.19647 6.08093C5.19647 6.63323 5.64417 7.08093 6.19647 7.08093C6.74877 7.08093 7.19647 6.63323 7.19647 6.08093C7.19647 5.52863 6.74877 5.08093 6.19647 5.08093Z"],"ChangesDiffDotBox/s/outline":["M6.19629 5.08105C6.74857 5.08105 7.19629 5.52877 7.19629 6.08105C7.19622 6.63328 6.74853 7.08105 6.19629 7.08105C5.64413 7.08096 5.19636 6.63322 5.19629 6.08105C5.19629 5.52883 5.64409 5.08115 6.19629 5.08105Z","M9.32129 1.45605C10.1497 1.45605 10.8213 2.12763 10.8213 2.95605V9.20605C10.8212 10.0344 10.1497 10.7061 9.32129 10.7061H3.07129C2.24299 10.706 1.57136 10.0344 1.57129 9.20605V2.95605C1.57129 2.12769 2.24295 1.45615 3.07129 1.45605H9.32129ZM3.07129 2.45605C2.79523 2.45615 2.57129 2.67997 2.57129 2.95605V9.20605C2.57135 9.48209 2.79527 9.70596 3.07129 9.70605H9.32129C9.59741 9.70605 9.82122 9.48216 9.82129 9.20605V2.95605C9.82129 2.67991 9.59744 2.45605 9.32129 2.45605H3.07129Z"],"ChangesDiffPlusMinusBox/l/filled":["M18.25 3C19.7688 3 21 4.23122 21 5.75V18.25C21 19.7688 19.7688 21 18.25 21H5.75C4.23122 21 3 19.7688 3 18.25V5.75C3 4.23122 4.23122 3 5.75 3H18.25ZM9.25 15.25C8.83579 15.25 8.5 15.5858 8.5 16C8.5 16.4142 8.83579 16.75 9.25 16.75H14.75C15.1642 16.75 15.5 16.4142 15.5 16C15.5 15.5858 15.1642 15.25 14.75 15.25H9.25ZM12 7C11.5858 7 11.25 7.33579 11.25 7.75V9.75H9.25C8.83579 9.75 8.5 10.0858 8.5 10.5C8.5 10.9142 8.83579 11.25 9.25 11.25H11.25V13.25C11.25 13.6642 11.5858 14 12 14C12.4142 14 12.75 13.6642 12.75 13.25V11.25H14.75C15.1642 11.25 15.5 10.9142 15.5 10.5C15.5 10.0858 15.1642 9.75 14.75 9.75H12.75V7.75C12.75 7.33579 12.4142 7 12 7Z"],"ChangesDiffPlusMinusBox/l/outline":["M14.7939 14.7725C15.2081 14.7726 15.5439 15.1083 15.5439 15.5225C15.5439 15.9366 15.2081 16.2724 14.7939 16.2725H9.29395C8.87973 16.2725 8.54395 15.9367 8.54395 15.5225C8.54395 15.1082 8.87973 14.7725 9.29395 14.7725H14.7939Z","M12.0439 6.52246C12.4581 6.52256 12.7939 6.85831 12.7939 7.27246V9.27246H14.7939C15.2081 9.27256 15.5439 9.60831 15.5439 10.0225C15.5439 10.4366 15.2081 10.7724 14.7939 10.7725H12.7939V12.7725C12.7939 13.1866 12.4581 13.5224 12.0439 13.5225C11.6297 13.5225 11.2939 13.1867 11.2939 12.7725V10.7725H9.29395C8.87973 10.7725 8.54395 10.4367 8.54395 10.0225C8.54395 9.60825 8.87973 9.27246 9.29395 9.27246H11.2939V7.27246C11.2939 6.85825 11.6297 6.52246 12.0439 6.52246Z","M18.2939 2.52246C19.8127 2.52256 21.0439 3.75375 21.0439 5.27246V17.7725C21.0439 19.2912 19.8127 20.5224 18.2939 20.5225H5.79395C4.27517 20.5225 3.04395 19.2913 3.04395 17.7725V5.27246C3.04395 3.75368 4.27516 2.52246 5.79395 2.52246H18.2939ZM5.79395 4.02246C5.10359 4.02246 4.54395 4.5821 4.54395 5.27246V17.7725C4.54395 18.4628 5.10358 19.0225 5.79395 19.0225H18.2939C18.9842 19.0224 19.5439 18.4628 19.5439 17.7725V5.27246C19.5439 4.58216 18.9842 4.02256 18.2939 4.02246H5.79395Z"],"ChangesDiffPlusMinusBox/m/filled":["M12.1667 2C13.1792 2 14 2.82081 14 3.83333V12.1667C14 13.1792 13.1792 14 12.1667 14H3.83333C2.82081 14 2 13.1792 2 12.1667V3.83333C2 2.82081 2.82081 2 3.83333 2H12.1667ZM6.16667 10.1667C5.89053 10.1667 5.66667 10.3905 5.66667 10.6667C5.66667 10.9428 5.89053 11.1667 6.16667 11.1667H9.83333C10.1095 11.1667 10.3333 10.9428 10.3333 10.6667C10.3333 10.3905 10.1095 10.1667 9.83333 10.1667H6.16667ZM8 4.66667C7.72387 4.66667 7.5 4.89053 7.5 5.16667V6.5H6.16667C5.89053 6.5 5.66667 6.72387 5.66667 7C5.66667 7.27613 5.89053 7.5 6.16667 7.5H7.5V8.83333C7.5 9.10947 7.72387 9.33333 8 9.33333C8.27613 9.33333 8.5 9.10947 8.5 8.83333V7.5H9.83333C10.1095 7.5 10.3333 7.27613 10.3333 7C10.3333 6.72387 10.1095 6.5 9.83333 6.5H8.5V5.16667C8.5 4.89053 8.27613 4.66667 8 4.66667Z"],"ChangesDiffPlusMinusBox/m/outline":["M9.86328 9.72363C10.2081 9.72406 10.4883 10.0037 10.4883 10.3486C10.4881 10.6934 10.208 10.9732 9.86328 10.9736H6.19629C5.85121 10.9736 5.57145 10.6937 5.57129 10.3486C5.57129 10.0035 5.85111 9.72363 6.19629 9.72363H9.86328Z","M8.0293 4.22363C8.37426 4.22388 8.6543 4.50361 8.6543 4.84863V6.05664H9.86328C10.208 6.05706 10.4881 6.33687 10.4883 6.68164C10.4881 7.02642 10.208 7.30622 9.86328 7.30664H8.6543V8.51562C8.65396 8.86036 8.37405 9.14038 8.0293 9.14062C7.68448 9.14045 7.40464 8.8604 7.4043 8.51562V7.30664H6.19629C5.85121 7.30664 5.57145 7.02668 5.57129 6.68164C5.57147 6.33661 5.85122 6.05664 6.19629 6.05664H7.4043V4.84863C7.4043 4.50356 7.68427 4.22381 8.0293 4.22363Z","M12.1963 1.55664C13.2776 1.55688 14.1541 2.4334 14.1543 3.51465V11.8486C14.1541 12.9299 13.2776 13.8064 12.1963 13.8066H3.8623C2.78101 13.8065 1.90447 12.93 1.9043 11.8486V3.51465C1.90447 2.43335 2.781 1.55682 3.8623 1.55664H12.1963ZM3.8623 2.80664C3.47136 2.80682 3.15447 3.1237 3.1543 3.51465V11.8486C3.15447 12.2396 3.47135 12.5565 3.8623 12.5566H12.1963C12.5872 12.5564 12.9041 12.2396 12.9043 11.8486V3.51465C12.9041 3.12374 12.5872 2.80688 12.1963 2.80664H3.8623Z"],"ChangesDiffPlusMinusBox/s/filled":["M9.125 1.5C9.8844 1.5 10.5 2.11561 10.5 2.875V9.125C10.5 9.8844 9.8844 10.5 9.125 10.5H2.875C2.11561 10.5 1.5 9.8844 1.5 9.125V2.875C1.5 2.11561 2.11561 1.5 2.875 1.5H9.125ZM4.625 7.625C4.4179 7.625 4.25 7.7929 4.25 8C4.25 8.2071 4.4179 8.375 4.625 8.375H7.375C7.5821 8.375 7.75 8.2071 7.75 8C7.75 7.7929 7.5821 7.625 7.375 7.625H4.625ZM6 3.5C5.7929 3.5 5.625 3.6679 5.625 3.875V4.875H4.625C4.4179 4.875 4.25 5.0429 4.25 5.25C4.25 5.4571 4.4179 5.625 4.625 5.625H5.625V6.625C5.625 6.8321 5.7929 7 6 7C6.2071 7 6.375 6.8321 6.375 6.625V5.625H7.375C7.5821 5.625 7.75 5.4571 7.75 5.25C7.75 5.0429 7.5821 4.875 7.375 4.875H6.375V3.875C6.375 3.6679 6.2071 3.5 6 3.5Z"],"ChangesDiffPlusMinusBox/s/outline":["M7.39648 7.26172C7.67263 7.26172 7.89648 7.48558 7.89648 7.76172C7.89622 8.03764 7.67246 8.26172 7.39648 8.26172H4.64648C4.37069 8.2615 4.14675 8.0375 4.14648 7.76172C4.14648 7.48571 4.37052 7.26193 4.64648 7.26172H7.39648Z","M6.02148 3.13672C6.29763 3.13672 6.52148 3.36058 6.52148 3.63672V4.51172H7.39648C7.67263 4.51172 7.89648 4.73558 7.89648 5.01172C7.89622 5.28764 7.67246 5.51172 7.39648 5.51172H6.52148V6.38672C6.52122 6.66264 6.29746 6.88672 6.02148 6.88672C5.74569 6.8865 5.52175 6.6625 5.52148 6.38672V5.51172H4.64648C4.37069 5.5115 4.14675 5.2875 4.14648 5.01172C4.14648 4.73571 4.37052 4.51193 4.64648 4.51172H5.52148V3.63672C5.52148 3.36071 5.74552 3.13693 6.02148 3.13672Z","M9.14648 1.13574C9.97493 1.13574 10.6465 1.8083 10.6465 2.63672V8.88672C10.6462 9.71494 9.97476 10.3867 9.14648 10.3867H2.89648C2.06841 10.3865 1.39675 9.71481 1.39648 8.88672V2.63672C1.39648 1.80842 2.06824 1.13596 2.89648 1.13574H9.14648ZM2.89648 2.13672C2.62052 2.13693 2.39648 2.36071 2.39648 2.63672V8.88672C2.39675 9.16251 2.62068 9.38651 2.89648 9.38672H9.14648C9.42248 9.38672 9.64622 9.16265 9.64648 8.88672V2.63672C9.64648 2.36057 9.42264 2.13672 9.14648 2.13672H2.89648Z"],"ChatBubble/l/filled":["M7.5 3C4.46243 3 2 5.46243 2 8.5V20.5C2 20.7761 2.22386 21 2.5 21H16.5C19.5376 21 22 18.5376 22 15.5V8.5C22 5.46243 19.5376 3 16.5 3H7.5Z"],"ChatBubble/l/outline":["M20.5 8.75C20.5 6.4028 18.5972 4.5 16.25 4.5H7.75C5.40279 4.5 3.5 6.40279 3.5 8.75V19.5H16.25C18.5972 19.5 20.5 17.5972 20.5 15.25V8.75ZM22 15.25C22 18.4256 19.4256 21 16.25 21H2.75C2.33579 21 2 20.6642 2 20.25V8.75C2 5.57437 4.57437 3 7.75 3H16.25C19.4256 3 22 5.57436 22 8.75V15.25Z"],"ChatBubble/m/filled":["M5.00004 2C2.97499 2 1.33337 3.64162 1.33337 5.66667V13.6667C1.33337 13.8507 1.48261 14 1.66671 14H11C13.0251 14 14.6667 12.3584 14.6667 10.3333V5.66667C14.6667 3.64162 13.0251 2 11 2H5.00004Z"],"ChatBubble/m/outline":["M13.5414 5.83301C13.5412 4.33739 12.329 3.125 10.8334 3.125H5.16638C3.67087 3.12518 2.45855 4.3375 2.45837 5.83301V12.875H10.8334C12.329 12.875 13.5412 11.6626 13.5414 10.167V5.83301ZM14.7914 10.167C14.7912 12.353 13.0194 14.125 10.8334 14.125H1.83337C1.4882 14.125 1.20837 13.8452 1.20837 13.5V5.83301C1.20855 3.64714 2.98052 1.87518 5.16638 1.875H10.8334C13.0194 1.875 14.7912 3.64703 14.7914 5.83301V10.167Z"],"ChatBubble/s/filled":["M3.75 1.5C2.23122 1.5 1 2.73122 1 4.25V10.25C1 10.3881 1.11193 10.5 1.25 10.5H8.25C9.7688 10.5 11 9.2688 11 7.75V4.25C11 2.73122 9.7688 1.5 8.25 1.5H3.75Z"],"ChatBubble/s/outline":["M10.125 4.375C10.125 3.27043 9.22956 2.375 8.125 2.375H3.875C2.77043 2.375 1.875 3.27043 1.875 4.375V9.625H8.125C9.22956 9.625 10.125 8.72956 10.125 7.625V4.375ZM11.125 7.625C11.125 9.28184 9.78184 10.625 8.125 10.625H1.375C1.09886 10.625 0.875 10.4011 0.875 10.125V4.375C0.875 2.71815 2.21815 1.375 3.875 1.375H8.125C9.78184 1.375 11.125 2.71815 11.125 4.375V7.625Z"],"ChatFeedbackMessage/l/filled":["M2 8.75C2 5.57436 4.57436 3 7.75 3H16.25C19.4256 3 22 5.57436 22 8.75V15.25C22 18.4256 19.4256 21 16.25 21H2.75C2.33579 21 2 20.6642 2 20.25V8.75ZM8.75 9C8.33579 9 8 9.33579 8 9.75C8 10.1642 8.33579 10.5 8.75 10.5H15.25C15.6642 10.5 16 10.1642 16 9.75C16 9.33579 15.6642 9 15.25 9H8.75ZM8.75 13.5C8.33579 13.5 8 13.8358 8 14.25C8 14.6642 8.33579 15 8.75 15H12.25C12.6642 15 13 14.6642 13 14.25C13 13.8358 12.6642 13.5 12.25 13.5H8.75Z"],"ChatFeedbackMessage/l/outline":["M20.5 8.75C20.5 6.4028 18.5972 4.5 16.25 4.5H7.75C5.40279 4.5 3.5 6.40279 3.5 8.75V19.5H16.25C18.5972 19.5 20.5 17.5972 20.5 15.25V8.75ZM12.25 13.5C12.6642 13.5 13 13.8358 13 14.25C13 14.6642 12.6642 15 12.25 15H8.75C8.33579 15 8 14.6642 8 14.25C8 13.8358 8.33579 13.5 8.75 13.5H12.25ZM15.25 9C15.6642 9 16 9.33579 16 9.75C16 10.1642 15.6642 10.5 15.25 10.5H8.75C8.33579 10.5 8 10.1642 8 9.75C8 9.33579 8.33579 9 8.75 9H15.25ZM22 15.25C22 18.4256 19.4256 21 16.25 21H2.75C2.33579 21 2 20.6642 2 20.25V8.75C2 5.57437 4.57437 3 7.75 3H16.25C19.4256 3 22 5.57436 22 8.75V15.25Z"],"ChatFeedbackMessage/m/filled":["M1.33334 5.83333C1.33334 3.71624 3.04958 2 5.16668 2H10.8333C12.9504 2 14.6667 3.71624 14.6667 5.83333V10.1667C14.6667 12.2837 12.9504 14 10.8333 14H1.83334C1.5572 14 1.33334 13.7761 1.33334 13.5V5.83333ZM5.83334 6C5.5572 6 5.33334 6.22386 5.33334 6.5C5.33334 6.77613 5.5572 7 5.83334 7H10.1667C10.4428 7 10.6667 6.77613 10.6667 6.5C10.6667 6.22386 10.4428 6 10.1667 6H5.83334ZM5.83334 9C5.5572 9 5.33334 9.22387 5.33334 9.5C5.33334 9.77613 5.5572 10 5.83334 10H8.16668C8.44281 10 8.66668 9.77613 8.66668 9.5C8.66668 9.22387 8.44281 9 8.16668 9H5.83334Z"],"ChatFeedbackMessage/m/outline":["M13.5414 5.83301C13.5412 4.33739 12.329 3.125 10.8333 3.125H5.16635C3.67084 3.12518 2.45852 4.3375 2.45834 5.83301V12.875H10.8333C12.329 12.875 13.5412 11.6626 13.5414 10.167V5.83301ZM8.16635 8.875C8.51153 8.875 8.79135 9.15482 8.79135 9.5C8.79135 9.84518 8.51153 10.125 8.16635 10.125H5.83334C5.48817 10.125 5.20834 9.84518 5.20834 9.5C5.20834 9.15482 5.48817 8.875 5.83334 8.875H8.16635ZM10.1664 5.875C10.5115 5.875 10.7914 6.15482 10.7914 6.5C10.7914 6.84518 10.5115 7.125 10.1664 7.125H5.83334C5.48817 7.125 5.20834 6.84518 5.20834 6.5C5.20834 6.15482 5.48817 5.875 5.83334 5.875H10.1664ZM14.7914 10.167C14.7912 12.353 13.0193 14.125 10.8333 14.125H1.83334C1.48817 14.125 1.20834 13.8452 1.20834 13.5V5.83301C1.20852 3.64714 2.98048 1.87518 5.16635 1.875H10.8333C13.0193 1.875 14.7912 3.64703 14.7914 5.83301V10.167Z"],"ChatFeedbackMessage/s/filled":["M1 4.375C1 2.78718 2.28718 1.5 3.875 1.5H8.125C9.7128 1.5 11 2.78718 11 4.375V7.625C11 9.2128 9.7128 10.5 8.125 10.5H1.375C1.1679 10.5 1 10.3321 1 10.125V4.375ZM4.375 4.5C4.1679 4.5 4 4.6679 4 4.875C4 5.0821 4.1679 5.25 4.375 5.25H7.625C7.8321 5.25 8 5.0821 8 4.875C8 4.6679 7.8321 4.5 7.625 4.5H4.375ZM4.375 6.75C4.1679 6.75 4 6.9179 4 7.125C4 7.3321 4.1679 7.5 4.375 7.5H6.125C6.3321 7.5 6.5 7.3321 6.5 7.125C6.5 6.9179 6.3321 6.75 6.125 6.75H4.375Z"],"ChatFeedbackMessage/s/outline":["M10.125 4.375C10.125 3.27043 9.22956 2.375 8.125 2.375H3.875C2.77043 2.375 1.875 3.27043 1.875 4.375V9.625H8.125C9.22956 9.625 10.125 8.72956 10.125 7.625V4.375ZM6.125 6.625C6.40114 6.625 6.625 6.84886 6.625 7.125C6.625 7.40114 6.40114 7.625 6.125 7.625H4.375C4.09886 7.625 3.875 7.40114 3.875 7.125C3.875 6.84886 4.09886 6.625 4.375 6.625H6.125ZM7.625 4.375C7.90114 4.375 8.125 4.59886 8.125 4.875C8.125 5.15114 7.90114 5.375 7.625 5.375H4.375C4.09886 5.375 3.875 5.15114 3.875 4.875C3.875 4.59886 4.09886 4.375 4.375 4.375H7.625ZM11.125 7.625C11.125 9.28184 9.78184 10.625 8.125 10.625H1.375C1.09886 10.625 0.875 10.4011 0.875 10.125V4.375C0.875 2.71815 2.21815 1.375 3.875 1.375H8.125C9.78184 1.375 11.125 2.71815 11.125 4.375V7.625Z"],"CheckList/l/filled":["M8.14744 13.8037C8.39399 13.4709 8.86343 13.401 9.19627 13.6475C9.52911 13.894 9.59905 14.3635 9.35252 14.6963L6.01951 19.1963C5.78061 19.5188 5.32976 19.5965 4.99705 19.3721L3.33006 18.2471C2.98675 18.0154 2.89617 17.5484 3.12791 17.2051C3.35965 16.8618 3.82659 16.7712 4.1699 17.003L5.24119 17.7266L8.14744 13.8037ZM20.25 15.5C20.6642 15.5 21 15.8358 21 16.25C21 16.6642 20.6642 17 20.25 17H11.75C11.3358 17 11 16.6642 11 16.25C11 15.8358 11.3358 15.5 11.75 15.5H20.25ZM8.14744 4.80374C8.39399 4.4709 8.86343 4.40096 9.19627 4.64749C9.52911 4.89404 9.59905 5.36347 9.35252 5.69632L6.01951 10.1963C5.78061 10.5188 5.32976 10.5965 4.99705 10.3721L3.33006 9.2471C2.98675 9.01535 2.89617 8.54842 3.12791 8.20511C3.35965 7.8618 3.82659 7.77122 4.1699 8.00296L5.24119 8.72659L8.14744 4.80374ZM20.25 7.00003C20.6642 7.00003 21 7.33582 21 7.75003C21 8.16424 20.6642 8.50003 20.25 8.50003H11.75C11.3358 8.50003 11 8.16424 11 7.75003C11 7.33582 11.3358 7.00003 11.75 7.00003H20.25Z"],"CheckList/l/outline":["M8.14744 13.8037C8.39399 13.4709 8.86343 13.401 9.19627 13.6475C9.52911 13.894 9.59905 14.3635 9.35252 14.6963L6.01951 19.1963C5.78061 19.5188 5.32976 19.5965 4.99705 19.3721L3.33006 18.2471C2.98675 18.0154 2.89617 17.5484 3.12791 17.2051C3.35965 16.8618 3.82659 16.7712 4.1699 17.003L5.24119 17.7266L8.14744 13.8037ZM20.25 15.5C20.6642 15.5 21 15.8358 21 16.25C21 16.6642 20.6642 17 20.25 17H11.75C11.3358 17 11 16.6642 11 16.25C11 15.8358 11.3358 15.5 11.75 15.5H20.25ZM8.14744 4.80374C8.39399 4.4709 8.86343 4.40096 9.19627 4.64749C9.52911 4.89404 9.59905 5.36347 9.35252 5.69632L6.01951 10.1963C5.78061 10.5188 5.32976 10.5965 4.99705 10.3721L3.33006 9.2471C2.98675 9.01535 2.89617 8.54842 3.12791 8.20511C3.35965 7.8618 3.82659 7.77122 4.1699 8.00296L5.24119 8.72659L8.14744 4.80374ZM20.25 7.00003C20.6642 7.00003 21 7.33582 21 7.75003C21 8.16424 20.6642 8.50003 20.25 8.50003H11.75C11.3358 8.50003 11 8.16424 11 7.75003C11 7.33582 11.3358 7.00003 11.75 7.00003H20.25Z"],"CheckList/m/filled":["M5.23045 9.0537C5.47694 8.72093 5.94645 8.6511 6.27928 8.89745C6.61212 9.144 6.68208 9.61343 6.43553 9.94628L4.21385 12.9463C3.97493 13.2688 3.52411 13.3465 3.19139 13.1221L2.08006 12.3721C1.73675 12.1403 1.64617 11.6734 1.87791 11.3301C2.10965 10.9868 2.57659 10.8962 2.9199 11.1279L3.43553 11.4766L5.23045 9.0537ZM13.5 10.083C13.9141 10.083 14.2498 10.4189 14.25 10.833C14.25 11.2472 13.9142 11.583 13.5 11.583H7.83299C7.41892 11.5828 7.08299 11.2471 7.08299 10.833C7.08316 10.419 7.41903 10.0832 7.83299 10.083H13.5ZM5.23045 3.0537C5.47694 2.72093 5.94645 2.65111 6.27928 2.89745C6.61212 3.144 6.68208 3.61343 6.43553 3.94628L4.21385 6.94628C3.97493 7.26882 3.52411 7.34655 3.19139 7.12206L2.08006 6.37206C1.73675 6.14031 1.64617 5.67338 1.87791 5.33007C2.10965 4.98676 2.57659 4.89618 2.9199 5.12792L3.43553 5.47655L5.23045 3.0537ZM13.5 4.41698C13.9142 4.41698 14.25 4.75277 14.25 5.16698C14.2498 5.58105 13.9141 5.91698 13.5 5.91698H7.83299C7.41903 5.91681 7.08316 5.58094 7.08299 5.16698C7.08299 4.75288 7.41892 4.41716 7.83299 4.41698H13.5Z"],"CheckList/m/outline":["M5.3311 9.12791C5.53655 8.85056 5.92776 8.79261 6.20513 8.99803C6.48245 9.20345 6.54131 9.59469 6.33599 9.87205L4.11333 12.8721C3.91419 13.1408 3.53902 13.2047 3.26177 13.0176L2.15044 12.2676C1.86448 12.0744 1.78939 11.6864 1.98247 11.4004C2.17563 11.1144 2.56361 11.0393 2.84966 11.2324L3.46489 11.6474L5.3311 9.12791ZM13.5 10.208C13.8451 10.208 14.1249 10.488 14.125 10.833C14.125 11.1782 13.8452 11.458 13.5 11.458H7.83306C7.48803 11.4578 7.20806 11.1781 7.20806 10.833C7.20823 10.4881 7.48814 10.2082 7.83306 10.208H13.5ZM5.3311 3.12791C5.53655 2.85056 5.92776 2.79261 6.20513 2.99803C6.48245 3.20345 6.54131 3.59469 6.33599 3.87205L4.11333 6.87205C3.91419 7.14082 3.53902 7.20471 3.26177 7.01756L2.15044 6.26756C1.86448 6.0744 1.78939 5.68642 1.98247 5.40037C2.17563 5.11441 2.56361 5.03932 2.84966 5.2324L3.46489 5.64744L5.3311 3.12791ZM13.5 4.54197C13.8452 4.54197 14.125 4.8218 14.125 5.16697C14.1249 5.512 13.8451 5.79197 13.5 5.79197H7.83306C7.48814 5.7918 7.20823 5.51189 7.20806 5.16697C7.20806 4.8219 7.48803 4.54215 7.83306 4.54197H13.5Z"],"CheckList/s/filled":["M3.77244 6.67874C4.01899 6.3459 4.48843 6.27596 4.82127 6.52249C5.1541 6.76904 5.22405 7.23847 4.97752 7.57132L3.31053 9.82132C3.07165 10.1436 2.62169 10.2213 2.28904 9.9971L1.45506 9.4346C1.11175 9.20285 1.02117 8.73592 1.25291 8.39261C1.48465 8.0493 1.95159 7.95872 2.2949 8.19046L2.53318 8.35061L3.77244 6.67874ZM10.125 7.37503C10.5392 7.37503 10.875 7.71081 10.875 8.12503C10.875 8.53924 10.5392 8.87503 10.125 8.87503H5.87498C5.46077 8.87503 5.12498 8.53924 5.12498 8.12503C5.12498 7.71081 5.46077 7.37503 5.87498 7.37503H10.125ZM3.77244 2.17874C4.01899 1.8459 4.48843 1.77596 4.82127 2.02249C5.1541 2.26904 5.22405 2.73847 4.97752 3.07132L3.31053 5.32132C3.07165 5.64365 2.62169 5.72131 2.28904 5.4971L1.45506 4.9346C1.11175 4.70285 1.02117 4.23592 1.25291 3.89261C1.48465 3.5493 1.95159 3.45872 2.2949 3.69046L2.53318 3.85061L3.77244 2.17874ZM10.125 3.12503C10.5392 3.12503 10.875 3.46082 10.875 3.87503C10.875 4.28924 10.5392 4.62503 10.125 4.62503H5.87498C5.46077 4.62503 5.12498 4.28924 5.12498 3.87503C5.12498 3.46082 5.46077 3.12503 5.87498 3.12503H10.125Z"],"CheckList/s/outline":["M3.9736 6.82712C4.13804 6.60553 4.45104 6.55932 4.67282 6.7236C4.89441 6.88804 4.94062 7.20104 4.77634 7.42282L3.11032 9.67282C2.95101 9.88784 2.65049 9.93876 2.42868 9.78903L1.59567 9.22653C1.36684 9.07207 1.30653 8.76204 1.46091 8.53317C1.61537 8.30434 1.9254 8.24403 2.15427 8.39841L2.59079 8.69235L3.9736 6.82712ZM10.125 7.62497C10.4011 7.62497 10.625 7.84883 10.625 8.12497C10.625 8.40111 10.4011 8.62497 10.125 8.62497H5.87497C5.59883 8.62497 5.37497 8.40111 5.37497 8.12497C5.37497 7.84883 5.59883 7.62497 5.87497 7.62497H10.125ZM3.9736 2.32712C4.13804 2.10552 4.45104 2.05932 4.67282 2.2236C4.89441 2.38804 4.94062 2.70104 4.77634 2.92282L3.11032 5.17282C2.95101 5.38784 2.65049 5.43875 2.42868 5.28903L1.59567 4.72653C1.36684 4.57207 1.30653 4.26204 1.46091 4.03317C1.61537 3.80434 1.9254 3.74403 2.15427 3.89841L2.59079 4.19235L3.9736 2.32712ZM10.125 3.37497C10.4011 3.37497 10.625 3.59883 10.625 3.87497C10.625 4.15111 10.4011 4.37497 10.125 4.37497H5.87497C5.59883 4.37497 5.37497 4.15111 5.37497 3.87497C5.37497 3.59883 5.59883 3.37497 5.87497 3.37497H10.125Z"],"Checkmark/l/filled":["M21.7426 2.99454C22.2979 3.40464 22.4157 4.18729 22.0056 4.74263L10.0056 20.9926C9.80433 21.2652 9.50107 21.4443 9.16524 21.4891C8.82942 21.5339 8.4898 21.4404 8.22417 21.2301L2.22417 16.4801C1.6829 16.0516 1.59149 15.2655 2.01999 14.7242C2.4485 14.1829 3.23466 14.0915 3.77593 14.52L8.76241 18.4677L19.9945 3.25753C20.4046 2.70218 21.1873 2.58444 21.7426 2.99454Z"],"Checkmark/l/outline":["M20.6475 3.30275C20.8944 2.97019 21.3647 2.90061 21.6973 3.14748C22.0298 3.39438 22.0994 3.86471 21.8525 4.19728L9.60254 20.6973C9.48004 20.8623 9.29481 20.9693 9.09083 20.9942C8.88676 21.019 8.68104 20.959 8.52247 20.8281L2.27247 15.6719C1.95329 15.4082 1.90839 14.9356 2.17188 14.6162C2.43554 14.2971 2.90816 14.2521 3.22754 14.5156L8.86719 19.169L20.6475 3.30275Z"],"Checkmark/m/filled":["M14.4951 1.99634C14.8653 2.26974 14.9438 2.79151 14.6704 3.16173L6.67039 13.995C6.53621 14.1768 6.33404 14.2962 6.11015 14.326C5.88627 14.3559 5.65986 14.2936 5.48277 14.1534L1.48277 10.9867C1.12192 10.701 1.06098 10.177 1.34665 9.81611C1.63232 9.45525 2.15643 9.39431 2.51728 9.67998L5.8416 12.3118L13.3297 2.17167C13.6031 1.80143 14.1249 1.72294 14.4951 1.99634Z"],"Checkmark/m/outline":["M13.6644 2.12697C13.8702 1.84991 14.2623 1.79233 14.5394 1.99807C14.8165 2.20384 14.874 2.59593 14.6683 2.87307L6.50226 13.8731C6.40015 14.0106 6.24552 14.0994 6.07551 14.1201C5.90546 14.1408 5.73402 14.0915 5.60187 13.9824L1.43586 10.5449C1.16969 10.3254 1.13151 9.93132 1.3509 9.66506C1.57047 9.39891 1.96452 9.36074 2.23078 9.5801L5.88996 12.5987L13.6644 2.12697Z"],"Checkmark/s/filled":["M10.8713 1.49727C11.1489 1.70232 11.2079 2.09364 11.0028 2.37131L5.0028 10.4963C4.90216 10.6326 4.75054 10.7221 4.58262 10.7445C4.41471 10.7669 4.2449 10.7202 4.11208 10.6151L1.11208 8.24005C0.84145 8.0258 0.795745 7.63275 1.00999 7.3621C1.22425 7.09145 1.61733 7.04575 1.88796 7.26L4.3812 9.23385L9.99725 1.62876C10.2023 1.35109 10.5936 1.29222 10.8713 1.49727Z"],"Checkmark/s/outline":["M10.3487 1.20201C10.5133 0.980322 10.8262 0.933963 11.0479 1.0985C11.2696 1.26308 11.316 1.576 11.1514 1.79771L5.02645 10.0477C4.94478 10.1577 4.82162 10.2294 4.68563 10.246C4.54959 10.2625 4.41243 10.2228 4.30672 10.1356L1.18172 7.55748C0.968789 7.38173 0.93863 7.06636 1.11434 6.85338C1.29008 6.64045 1.60546 6.61029 1.81844 6.786L4.53719 9.02916L10.3487 1.20201Z"],"CheckmarkMedium/l/filled":["M18.2529 6.33498C18.6202 5.92271 19.2526 5.88585 19.665 6.25295C20.0772 6.62024 20.1141 7.25268 19.747 7.66506L9.94623 18.6651C9.76422 18.8693 9.50676 18.9899 9.23334 18.999C8.95987 19.0082 8.69419 18.9056 8.49896 18.7139L4.29877 14.5889C3.90477 14.2019 3.89909 13.5679 4.28607 13.1738C4.67307 12.7798 5.30709 12.7742 5.70111 13.1612L9.15131 16.5498L18.2529 6.33498Z"],"CheckmarkMedium/l/outline":["M18.4404 6.50098C18.716 6.19197 19.1898 6.16498 19.499 6.44044C19.808 6.71601 19.835 7.18985 19.5596 7.49903L9.75977 18.499C9.62325 18.6522 9.42966 18.7432 9.22461 18.75C9.01972 18.7567 8.82113 18.6788 8.67481 18.5352L4.47461 14.4102C4.17913 14.12 4.17471 13.6451 4.46485 13.3496C4.75506 13.0541 5.22987 13.0497 5.5254 13.3399L9.16309 16.9121L18.4404 6.50098Z"],"CheckmarkMedium/m/filled":["M12.1686 4.22332C12.4135 3.94847 12.8351 3.9239 13.11 4.16863C13.3848 4.41349 13.4094 4.83512 13.1647 5.11004L6.63083 12.4434C6.50949 12.5795 6.33785 12.6599 6.15557 12.666C5.97326 12.6721 5.79614 12.6037 5.66598 12.4759L2.86586 9.72593C2.60319 9.46793 2.5994 9.04527 2.85739 8.78253C3.11539 8.51987 3.53807 8.51613 3.80075 8.77413L6.10088 11.0332L12.1686 4.22332Z"],"CheckmarkMedium/m/outline":["M12.1995 4.25064C12.4291 3.99294 12.8246 3.97034 13.0823 4.19985C13.3401 4.42947 13.3627 4.82494 13.1331 5.08267L6.59992 12.4157C6.48625 12.5433 6.32537 12.6188 6.15461 12.6247C5.98374 12.6304 5.81763 12.5657 5.69562 12.4459L2.89582 9.69595C2.64964 9.45416 2.64541 9.05844 2.88703 8.81216C3.12887 8.56592 3.52455 8.56257 3.77082 8.80435L6.10285 11.0934L12.1995 4.25064Z"],"CheckmarkMedium/s/filled":["M9.12645 3.16749C9.3101 2.96135 9.6263 2.94292 9.8325 3.12647C10.0386 3.31012 10.057 3.62634 9.8735 3.83253L4.97311 9.33255C4.88211 9.43465 4.75338 9.49495 4.61667 9.4995C4.47994 9.5041 4.34709 9.4528 4.24948 9.35695L2.14938 7.29445C1.95238 7.10095 1.94954 6.78395 2.14303 6.5869C2.33653 6.3899 2.65354 6.3871 2.85055 6.5806L4.57565 8.2749L9.12645 3.16749Z"],"CheckmarkMedium/s/outline":["M9.12695 3.16698C9.31069 2.96114 9.62694 2.94336 9.83301 3.12694C10.0388 3.31068 10.0566 3.62693 9.87305 3.83299L4.97363 9.33299C4.88262 9.43511 4.75293 9.49543 4.61621 9.49999C4.47964 9.50442 4.3475 9.45218 4.25 9.35643L2.14941 7.29393C1.95265 7.10041 1.95014 6.78383 2.14355 6.5869C2.33707 6.39014 2.65366 6.38763 2.85058 6.58104L4.57519 8.27538L9.12695 3.16698Z"],"CheckSelection/l/filled":["M17.308 6.31447C17.5519 5.97746 18.0261 5.89903 18.3675 6.13966C18.7089 6.38033 18.7882 6.84853 18.5446 7.18556L10.947 17.6856C10.8097 17.8753 10.5905 17.992 10.3545 18C10.1185 18.008 9.89219 17.9065 9.74209 17.7266L5.48723 12.627C5.22049 12.3072 5.2672 11.8346 5.59111 11.5713C5.91496 11.308 6.39374 11.3533 6.66051 11.6729L10.2852 16.0186L17.308 6.31447Z"],"CheckSelection/l/outline":["M17.308 6.31447C17.5519 5.97746 18.0261 5.89903 18.3675 6.13966C18.7089 6.38033 18.7882 6.84853 18.5446 7.18556L10.947 17.6856C10.8097 17.8753 10.5905 17.992 10.3545 18C10.1185 18.008 9.89219 17.9065 9.74209 17.7266L5.48723 12.627C5.22049 12.3072 5.2672 11.8346 5.59111 11.5713C5.91496 11.308 6.39374 11.3533 6.66051 11.6729L10.2852 16.0186L17.308 6.31447Z"],"CheckSelection/m/filled":["M11.4746 4.13088C11.6774 3.85244 12.0656 3.79214 12.3423 3.99612C12.6191 4.20011 12.679 4.59072 12.4763 4.86917L7.37978 11.8692C7.26727 12.0237 7.09057 12.1184 6.90031 12.125C6.71005 12.1316 6.52722 12.0496 6.40435 11.9033L3.54988 8.50295C3.32874 8.23926 3.36164 7.84476 3.62365 7.6221C3.88566 7.39962 4.27776 7.43288 4.49911 7.69631L6.84402 10.4893L11.4746 4.13088Z"],"CheckSelection/m/outline":["M11.4746 4.13088C11.6774 3.85244 12.0656 3.79214 12.3423 3.99612C12.6191 4.20011 12.679 4.59072 12.4763 4.86917L7.37978 11.8692C7.26727 12.0237 7.09057 12.1184 6.90031 12.125C6.71005 12.1316 6.52722 12.0496 6.40435 11.9033L3.54988 8.50295C3.32874 8.23926 3.36164 7.84476 3.62365 7.6221C3.88566 7.39962 4.27776 7.43288 4.49911 7.69631L6.84402 10.4893L11.4746 4.13088Z"],"CheckSelection/s/filled":["M8.5607 3.08401C8.72394 2.85967 9.04134 2.80753 9.26969 2.9678C9.49817 3.1283 9.55106 3.44133 9.38785 3.66604L5.57481 8.91604C5.48294 9.04235 5.33644 9.11969 5.17861 9.12502C5.02066 9.13036 4.86898 9.06239 4.76851 8.94241L2.6336 6.3926C2.45515 6.17944 2.48638 5.86501 2.70311 5.68948C2.91975 5.51408 3.23953 5.54399 3.41805 5.75686L5.13194 7.80373L8.5607 3.08401Z"],"CheckSelection/s/outline":["M8.5607 3.08401C8.72394 2.85967 9.04134 2.80753 9.26969 2.9678C9.49817 3.1283 9.55106 3.44133 9.38785 3.66604L5.57481 8.91604C5.48294 9.04235 5.33644 9.11969 5.17861 9.12502C5.02066 9.13036 4.86898 9.06239 4.76851 8.94241L2.6336 6.3926C2.45515 6.17944 2.48638 5.86501 2.70311 5.68948C2.91975 5.51408 3.23953 5.54399 3.41805 5.75686L5.13194 7.80373L8.5607 3.08401Z"],"ChevronDownMedium/l/filled":["M17.7822 9.26563C18.0751 8.97274 18.5499 8.97274 18.8428 9.26563C19.1357 9.55852 19.1357 10.0333 18.8428 10.3262L12.5928 16.5762C12.2999 16.8691 11.8251 16.8691 11.5322 16.5762L5.28223 10.3262C4.98934 10.0333 4.98934 9.55852 5.28223 9.26563C5.57512 8.97274 6.04988 8.97274 6.34278 9.26563L12.0625 14.9854L17.7822 9.26563Z"],"ChevronDownMedium/l/outline":["M17.7822 9.26563C18.0751 8.97274 18.5499 8.97274 18.8428 9.26563C19.1357 9.55852 19.1357 10.0333 18.8428 10.3262L12.5928 16.5762C12.2999 16.8691 11.8251 16.8691 11.5322 16.5762L5.28223 10.3262C4.98934 10.0333 4.98934 9.55852 5.28223 9.26563C5.57512 8.97274 6.04988 8.97274 6.34278 9.26563L12.0625 14.9854L17.7822 9.26563Z"],"ChevronDownMedium/m/filled":["M11.7666 6.08821C12.0107 5.84451 12.4064 5.8444 12.6504 6.08821C12.8945 6.33229 12.8945 6.7289 12.6504 6.97298L8.48341 11.139C8.23933 11.3831 7.8437 11.3831 7.59962 11.139L3.43263 6.97298C3.18855 6.7289 3.18855 6.33229 3.43263 6.08821C3.67671 5.84413 4.07332 5.84413 4.3174 6.08821L8.04103 9.81282L11.7666 6.08821Z"],"ChevronDownMedium/m/outline":["M11.7666 6.08821C12.0107 5.84451 12.4064 5.8444 12.6504 6.08821C12.8945 6.33229 12.8945 6.7289 12.6504 6.97298L8.48341 11.139C8.23933 11.3831 7.8437 11.3831 7.59962 11.139L3.43263 6.97298C3.18855 6.7289 3.18855 6.33229 3.43263 6.08821C3.67671 5.84413 4.07332 5.84413 4.3174 6.08821L8.04103 9.81282L11.7666 6.08821Z"],"ChevronDownMedium/s/filled":["M8.80273 4.54446C8.99799 4.34919 9.3145 4.34919 9.50976 4.54446C9.70502 4.73972 9.70502 5.05623 9.50976 5.25149L6.38476 8.37649C6.1895 8.57175 5.87299 8.57175 5.67773 8.37649L2.55273 5.25149C2.35746 5.05623 2.35746 4.73972 2.55273 4.54446C2.74799 4.34919 3.0645 4.34919 3.25976 4.54446L6.03124 7.31594L8.80273 4.54446Z"],"ChevronDownMedium/s/outline":["M8.80273 4.54446C8.99799 4.34919 9.3145 4.34919 9.50976 4.54446C9.70502 4.73972 9.70502 5.05623 9.50976 5.25149L6.38476 8.37649C6.1895 8.57175 5.87299 8.57175 5.67773 8.37649L2.55273 5.25149C2.35746 5.05623 2.35746 4.73972 2.55273 4.54446C2.74799 4.34919 3.0645 4.34919 3.25976 4.54446L6.03124 7.31594L8.80273 4.54446Z"],"ChevronDownSmall/l/filled":["M12.1768 12.7625C12.0791 12.8601 11.9209 12.8601 11.8232 12.7625L8.53033 9.46955C8.23744 9.17665 7.76256 9.17665 7.46967 9.46955C7.17678 9.76244 7.17678 10.2373 7.46967 10.5302L10.7626 13.8231C11.446 14.5065 12.554 14.5065 13.2374 13.8231L16.5303 10.5302C16.8232 10.2373 16.8232 9.76244 16.5303 9.46955C16.2374 9.17665 15.7626 9.17665 15.4697 9.46955L12.1768 12.7625Z"],"ChevronDownSmall/l/outline":["M15.4697 9.46973C15.7626 9.17684 16.2374 9.17684 16.5303 9.46973C16.8232 9.76262 16.8232 10.2374 16.5303 10.5303L13.2373 13.8232C12.5539 14.5065 11.4461 14.5065 10.7627 13.8232L7.46973 10.5303C7.17684 10.2374 7.17684 9.76262 7.46973 9.46973C7.76262 9.17684 8.23738 9.17684 8.53028 9.46973L11.8232 12.7627C11.9208 12.8602 12.0792 12.8602 12.1768 12.7627L15.4697 9.46973Z"],"ChevronDownSmall/m/filled":["M10.2249 6.22426C10.469 5.98056 10.8647 5.98045 11.1087 6.22426C11.3528 6.46833 11.3528 6.86494 11.1087 7.10902L8.9134 9.30434C8.40899 9.80852 7.5906 9.80863 7.08626 9.30434L4.89094 7.10902C4.64687 6.86494 4.64687 6.46833 4.89094 6.22426C5.13502 5.98018 5.53163 5.98018 5.77571 6.22426L7.97102 8.41957C7.98728 8.43578 8.01338 8.43581 8.02962 8.41957L10.2249 6.22426Z"],"ChevronDownSmall/m/outline":["M10.2249 6.22426C10.469 5.98056 10.8647 5.98045 11.1087 6.22426C11.3528 6.46833 11.3528 6.86494 11.1087 7.10902L8.9134 9.30434C8.40899 9.80852 7.5906 9.80863 7.08626 9.30434L4.89094 7.10902C4.64687 6.86494 4.64687 6.46833 4.89094 6.22426C5.13502 5.98018 5.53163 5.98018 5.77571 6.22426L7.97102 8.41957C7.98728 8.43578 8.01338 8.43581 8.02962 8.41957L10.2249 6.22426Z"],"ChevronDownSmall/s/filled":["M7.64645 4.64651C7.84171 4.45125 8.15822 4.45125 8.35348 4.64651C8.54874 4.84177 8.54874 5.15828 8.35348 5.35354L6.70699 7.00002C6.31649 7.39049 5.68343 7.39049 5.29293 7.00002L3.64645 5.35354C3.45118 5.15828 3.45118 4.84177 3.64645 4.64651C3.84171 4.45125 4.15822 4.45125 4.35348 4.64651L5.99996 6.29299L7.64645 4.64651Z"],"ChevronDownSmall/s/outline":["M7.64651 4.64651C7.84177 4.45125 8.15828 4.45125 8.35354 4.64651C8.5488 4.84177 8.5488 5.15828 8.35354 5.35354L6.70705 7.00002C6.31655 7.39049 5.6835 7.39049 5.29299 7.00002L3.64651 5.35354C3.45125 5.15828 3.45125 4.84177 3.64651 4.64651C3.84177 4.45125 4.15828 4.45125 4.35354 4.64651L6.00002 6.29299L7.64651 4.64651Z"],"ChevronDownSolid/l/filled":["M9.76719 9.86334C8.71465 9.86334 8.13332 11.0846 8.79705 11.9015L10.9966 14.6086C11.4968 15.2243 12.4366 15.2243 12.9369 14.6086L15.1364 11.9015C15.8001 11.0846 15.2188 9.86334 14.1662 9.86334H9.76719Z"],"ChevronDownSolid/l/outline":["M9.76719 9.86334C8.71465 9.86334 8.13332 11.0846 8.79705 11.9015L10.9966 14.6086C11.4968 15.2243 12.4366 15.2243 12.9369 14.6086L15.1364 11.9015C15.8001 11.0846 15.2188 9.86334 14.1662 9.86334H9.76719Z"],"ChevronDownSolid/m/filled":["M6.51148 6.57556C5.80979 6.57556 5.42224 7.38976 5.86472 7.93436L7.33108 9.73909C7.66455 10.1496 8.29108 10.1496 8.62462 9.73909L10.0909 7.93436C10.5334 7.38976 10.1459 6.57556 9.44415 6.57556H6.51148Z"],"ChevronDownSolid/m/outline":["M6.51148 6.57556C5.80979 6.57556 5.42224 7.38976 5.86472 7.93436L7.33108 9.73909C7.66455 10.1496 8.29108 10.1496 8.62462 9.73909L10.0909 7.93436C10.5334 7.38976 10.1459 6.57556 9.44415 6.57556H6.51148Z"],"ChevronDownSolid/s/filled":["M4.88363 4.93164C4.35736 4.93164 4.06669 5.54229 4.39856 5.95074L5.49833 7.30429C5.74843 7.61214 6.21833 7.61214 6.46848 7.30429L7.56823 5.95074C7.90008 5.54229 7.60943 4.93164 7.08313 4.93164H4.88363Z"],"ChevronDownSolid/s/outline":["M4.88363 4.93164C4.35736 4.93164 4.06669 5.54229 4.39856 5.95074L5.49833 7.30429C5.74843 7.61214 6.21833 7.61214 6.46848 7.30429L7.56823 5.95074C7.90008 5.54229 7.60943 4.93164 7.08313 4.93164H4.88363Z"],"ChevronLargeLeft/l/filled":["M14.9698 2.10534C15.3259 2.31704 15.4429 2.77727 15.2312 3.1333L10.3389 11.3612C10.1048 11.7549 10.1048 12.2452 10.3389 12.6389L15.2312 20.8667C15.4429 21.2227 15.3259 21.683 14.9698 21.8947C14.6138 22.1064 14.1536 21.9894 13.9419 21.6333L9.04961 13.4055C8.53457 12.5393 8.53457 11.4608 9.0496 10.5946L13.9419 2.36669C14.1536 2.01066 14.6138 1.89365 14.9698 2.10534Z"],"ChevronLargeLeft/l/outline":["M13.6049 2.36618C13.8167 2.01039 14.2773 1.89384 14.6332 2.10544C14.9891 2.31718 15.1056 2.77779 14.894 3.13376L10.0024 11.3613C9.76831 11.7549 9.7683 12.2449 10.0024 12.6386L14.894 20.8662C15.1056 21.2221 14.9891 21.6828 14.6332 21.8945C14.2773 22.1061 13.8167 21.9896 13.6049 21.6338L8.71329 13.4052C8.19831 12.539 8.19824 11.4608 8.71329 10.5947L13.6049 2.36618Z"],"ChevronLargeLeft/m/filled":["M8.96231 1.51387C9.13877 1.2173 9.5231 1.11972 9.81974 1.2961C10.116 1.47253 10.2135 1.85602 10.0375 2.15255L6.77579 7.6379C6.64322 7.86084 6.64329 8.13842 6.77579 8.36153L10.0375 13.8469C10.2138 14.1434 10.1159 14.5267 9.81974 14.7033C9.52304 14.8797 9.13873 14.7822 8.96231 14.4856L5.70157 9.00118C5.33486 8.38435 5.3348 7.61603 5.70157 6.99922L8.96231 1.51387Z"],"ChevronLargeLeft/m/outline":["M8.96231 1.51387C9.13877 1.2173 9.5231 1.11972 9.81974 1.2961C10.116 1.47253 10.2135 1.85602 10.0375 2.15255L6.77579 7.6379C6.64322 7.86084 6.64329 8.13842 6.77579 8.36153L10.0375 13.8469C10.2138 14.1434 10.1159 14.5267 9.81974 14.7033C9.52304 14.8797 9.13873 14.7822 8.96231 14.4856L5.70157 9.00118C5.33486 8.38435 5.3348 7.61603 5.70157 6.99922L8.96231 1.51387Z"],"ChevronLargeLeft/s/filled":["M6.69553 1.11929C6.83674 0.882333 7.14291 0.804575 7.3801 0.945463C7.61736 1.08662 7.69601 1.39369 7.55491 1.63101L5.10862 5.74429C5.01506 5.90171 5.01498 6.09852 5.10862 6.25601L7.55491 10.3693C7.69591 10.6066 7.6174 10.9137 7.3801 11.0548C7.14297 11.1957 6.83677 11.1178 6.69553 10.881L4.24924 6.76675C3.96835 6.29431 3.96835 5.70599 4.24924 5.23355L6.69553 1.11929Z"],"ChevronLargeLeft/s/outline":["M6.69565 1.11929C6.83686 0.882333 7.14304 0.804575 7.38022 0.945463C7.61748 1.08662 7.69613 1.39369 7.55503 1.63101L5.10874 5.74429C5.01518 5.90171 5.0151 6.09852 5.10874 6.25601L7.55503 10.3693C7.69603 10.6066 7.61753 10.9137 7.38022 11.0548C7.14309 11.1957 6.83689 11.1178 6.69565 10.881L4.24936 6.76675C3.96847 6.29431 3.96847 5.70599 4.24936 5.23355L6.69565 1.11929Z"],"ChevronLargeRight/l/filled":["M9.61095 1.9941C9.96698 1.78241 10.4272 1.89942 10.6389 2.25545L15.5311 10.4832C16.0461 11.3494 16.0461 12.428 15.5311 13.2942L10.6389 21.522C10.4272 21.8781 9.96698 21.9951 9.61095 21.7834C9.25492 21.5717 9.13791 21.1114 9.3496 20.7554L14.2418 12.5275C14.4759 12.1338 14.4759 11.6436 14.2418 11.2499L9.3496 3.02206C9.13791 2.66603 9.25492 2.2058 9.61095 1.9941Z"],"ChevronLargeRight/l/outline":["M9.61036 1.99408C9.96624 1.78248 10.4269 1.89915 10.6387 2.25482L15.5313 10.4833C16.0461 11.3494 16.0462 12.4278 15.5313 13.2939L10.6387 21.5224C10.4269 21.8781 9.96625 21.9947 9.61036 21.7831C9.25472 21.5713 9.13805 21.1107 9.34962 20.7548L14.2412 12.5273C14.4752 12.1337 14.4753 11.6436 14.2412 11.2499L9.34962 3.0224C9.13806 2.66653 9.25472 2.20589 9.61036 1.99408Z"],"ChevronLargeRight/m/filled":["M6.34374 1.22191C6.64039 1.04575 7.02384 1.14309 7.20019 1.43968L10.4619 6.92503C10.8285 7.54175 10.8285 8.31029 10.4619 8.92698L7.20019 14.4114C7.02382 14.708 6.64041 14.8054 6.34374 14.6291C6.04715 14.4527 5.94958 14.0693 6.12597 13.7727L9.38769 8.28734C9.51992 8.06449 9.5201 7.78661 9.38769 7.5637L6.12597 2.07835C5.94957 1.78166 6.04706 1.39831 6.34374 1.22191Z"],"ChevronLargeRight/m/outline":["M6.34374 1.22184C6.64039 1.04569 7.02384 1.14303 7.20019 1.43962L10.4619 6.92497C10.8285 7.54169 10.8285 8.31023 10.4619 8.92692L7.20019 14.4113C7.02382 14.7079 6.64041 14.8053 6.34374 14.6291C6.04715 14.4526 5.94958 14.0693 6.12597 13.7726L9.38769 8.28727C9.51992 8.06443 9.5201 7.78655 9.38769 7.56364L6.12597 2.07829C5.94957 1.7816 6.04706 1.39825 6.34374 1.22184Z"],"ChevronLargeRight/s/filled":["M4.74123 0.889609C4.97848 0.748541 5.28557 0.826325 5.42678 1.06344L7.87307 5.17769C8.11878 5.591 8.14909 6.0928 7.96486 6.52828L7.87307 6.7109L5.42678 10.8252C5.28558 11.0623 4.97849 11.1401 4.74123 10.999C4.50412 10.8578 4.42634 10.5507 4.5674 10.3134L7.01369 6.20016C7.10731 6.04273 7.10735 5.84595 7.01369 5.68844L4.5674 1.57516C4.42636 1.3379 4.50411 1.03081 4.74123 0.889609Z"],"ChevronLargeRight/s/outline":["M4.74123 0.889609C4.97848 0.748541 5.28557 0.826325 5.42678 1.06344L7.87307 5.17769C8.11878 5.591 8.14909 6.0928 7.96486 6.52828L7.87307 6.7109L5.42678 10.8252C5.28558 11.0623 4.97849 11.1401 4.74123 10.999C4.50412 10.8578 4.42634 10.5507 4.5674 10.3134L7.01369 6.20016C7.10731 6.04273 7.10735 5.84595 7.01369 5.68844L4.5674 1.57516C4.42636 1.3379 4.50411 1.03081 4.74123 0.889609Z"],"ChevronLeftMedium/l/filled":["M14.0322 5.51563C14.3251 5.22274 14.7999 5.22274 15.0928 5.51563C15.3857 5.80852 15.3857 6.28328 15.0928 6.57618L9.37305 12.2959L15.0928 18.0156C15.3857 18.3085 15.3857 18.7833 15.0928 19.0762C14.7999 19.3691 14.3251 19.3691 14.0322 19.0762L7.78223 12.8262C7.48934 12.5333 7.48934 12.0585 7.78223 11.7656L14.0322 5.51563Z"],"ChevronLeftMedium/l/outline":["M14.0322 5.51563C14.3251 5.22274 14.7999 5.22274 15.0928 5.51563C15.3857 5.80852 15.3857 6.28328 15.0928 6.57618L9.37305 12.2959L15.0928 18.0156C15.3857 18.3085 15.3857 18.7833 15.0928 19.0762C14.7999 19.3691 14.3251 19.3691 14.0322 19.0762L7.78223 12.8262C7.48934 12.5333 7.48934 12.0585 7.78223 11.7656L14.0322 5.51563Z"],"ChevronLeftMedium/m/filled":["M9.26628 3.58821C9.51026 3.3444 9.90602 3.34451 10.1501 3.58821C10.3941 3.83229 10.3941 4.2289 10.1501 4.47298L6.42546 8.19661L10.1501 11.9222C10.3941 12.1663 10.3941 12.5619 10.1501 12.806C9.90598 13.0499 9.5103 13.05 9.26628 12.806L5.09929 8.63899C4.85559 8.39494 4.85548 7.99918 5.09929 7.7552L9.26628 3.58821Z"],"ChevronLeftMedium/m/outline":["M9.26628 3.58821C9.51026 3.3444 9.90602 3.34451 10.1501 3.58821C10.3941 3.83229 10.3941 4.2289 10.1501 4.47298L6.42546 8.19661L10.1501 11.9222C10.3941 12.1663 10.3941 12.5619 10.1501 12.806C9.90598 13.0499 9.5103 13.05 9.26628 12.806L5.09929 8.63899C4.85559 8.39494 4.85548 7.99918 5.09929 7.7552L9.26628 3.58821Z"],"ChevronLeftMedium/s/filled":["M6.92773 2.66946C7.12299 2.47419 7.4395 2.47419 7.63476 2.66946C7.83002 2.86472 7.83002 3.18123 7.63476 3.37649L4.86327 6.14797L7.63476 8.91946C7.83002 9.11472 7.83002 9.43123 7.63476 9.62649C7.4395 9.82175 7.12299 9.82175 6.92773 9.62649L3.80273 6.50149C3.60746 6.30623 3.60746 5.98972 3.80273 5.79446L6.92773 2.66946Z"],"ChevronLeftMedium/s/outline":["M6.92773 2.66946C7.12299 2.47419 7.4395 2.47419 7.63476 2.66946C7.83002 2.86472 7.83002 3.18123 7.63476 3.37649L4.86327 6.14797L7.63476 8.91946C7.83002 9.11472 7.83002 9.43123 7.63476 9.62649C7.4395 9.82175 7.12299 9.82175 6.92773 9.62649L3.80273 6.50149C3.60746 6.30623 3.60746 5.98972 3.80273 5.79446L6.92773 2.66946Z"],"ChevronLeftSmall/l/filled":["M14.3512 7.34046C14.0583 7.04757 13.5835 7.04757 13.2906 7.34046L9.99768 10.6334C9.31437 11.3168 9.31437 12.4247 9.99768 13.108L13.2906 16.401C13.5835 16.6939 14.0583 16.6939 14.3512 16.401C14.6441 16.1081 14.6441 15.6334 14.3512 15.3405L11.0582 12.0475C10.9607 11.9499 10.9607 11.7916 11.0582 11.694L14.3512 8.40101C14.6441 8.10811 14.6441 7.63335 14.3512 7.34046Z"],"ChevronLeftSmall/l/outline":["M14.3512 7.34046C14.0583 7.04757 13.5835 7.04757 13.2906 7.34046L9.99768 10.6334C9.31437 11.3168 9.31437 12.4247 9.99768 13.108L13.2906 16.401C13.5835 16.6939 14.0583 16.6939 14.3512 16.401C14.6441 16.1081 14.6441 15.6334 14.3512 15.3405L11.0582 12.0475C10.9607 11.9499 10.9607 11.7916 11.0582 11.694L14.3512 8.40101C14.6441 8.10811 14.6441 7.63335 14.3512 7.34046Z"],"ChevronLeftSmall/m/filled":["M9.6563 4.80476C9.41222 4.56068 9.01561 4.56068 8.77153 4.80476L6.57622 7.00007C6.07192 7.50442 6.07203 8.32281 6.57622 8.82722L8.77153 11.0225C9.01561 11.2666 9.41222 11.2666 9.6563 11.0225C9.9001 10.7786 9.9 10.3828 9.6563 10.1387L7.46098 7.94343C7.44474 7.92719 7.44478 7.9011 7.46098 7.88484L9.6563 5.68953C9.90037 5.44545 9.90037 5.04884 9.6563 4.80476Z"],"ChevronLeftSmall/m/outline":["M9.65636 4.80476C9.41228 4.56068 9.01567 4.56068 8.77159 4.80476L6.57628 7.00007C6.07198 7.50442 6.07209 8.32281 6.57628 8.82722L8.77159 11.0225C9.01567 11.2666 9.41228 11.2666 9.65636 11.0225C9.90016 10.7786 9.90006 10.3828 9.65636 10.1387L7.46105 7.94343C7.44481 7.92719 7.44484 7.9011 7.46105 7.88484L9.65636 5.68953C9.90044 5.44545 9.90044 5.04884 9.65636 4.80476Z"],"ChevronLeftSmall/s/filled":["M7.26395 3.58187C7.06869 3.38661 6.75218 3.38661 6.55692 3.58187L4.91044 5.22836C4.51997 5.61886 4.51997 6.25191 4.91044 6.64242L6.55692 8.2889C6.75218 8.48417 7.06869 8.48417 7.26395 8.2889C7.45922 8.09364 7.45922 7.77713 7.26395 7.58187L5.61747 5.93539L7.26395 4.2889C7.45922 4.09364 7.45922 3.77713 7.26395 3.58187Z"],"ChevronLeftSmall/s/outline":["M7.26395 3.58187C7.06869 3.38661 6.75218 3.38661 6.55692 3.58187L4.91044 5.22836C4.51997 5.61886 4.51997 6.25191 4.91044 6.64242L6.55692 8.2889C6.75218 8.48417 7.06869 8.48417 7.26395 8.2889C7.45922 8.09364 7.45922 7.77713 7.26395 7.58187L5.61747 5.93539L7.26395 4.2889C7.45922 4.09364 7.45922 3.77713 7.26395 3.58187Z"],"ChevronRightMedium/l/filled":["M9.03223 5.51563C9.32512 5.22274 9.79988 5.22274 10.0928 5.51563L16.3428 11.7656C16.6357 12.0585 16.6357 12.5333 16.3428 12.8262L10.0928 19.0762C9.79988 19.3691 9.32512 19.3691 9.03223 19.0762C8.73934 18.7833 8.73934 18.3085 9.03223 18.0156L14.752 12.2959L9.03223 6.57618C8.73934 6.28328 8.73934 5.80852 9.03223 5.51563Z"],"ChevronRightMedium/l/outline":["M9.03223 5.51563C9.32512 5.22274 9.79988 5.22274 10.0928 5.51563L16.3428 11.7656C16.6357 12.0585 16.6357 12.5333 16.3428 12.8262L10.0928 19.0762C9.79988 19.3691 9.32512 19.3691 9.03223 19.0762C8.73934 18.7833 8.73934 18.3085 9.03223 18.0156L14.752 12.2959L9.03223 6.57618C8.73934 6.28328 8.73934 5.80852 9.03223 5.51563Z"],"ChevronRightMedium/m/filled":["M5.93263 3.58821C6.17671 3.34413 6.57332 3.34413 6.8174 3.58821L10.9834 7.7552C11.2275 7.99928 11.2275 8.39491 10.9834 8.63899L6.8174 12.806C6.57332 13.0501 6.17671 13.0501 5.93263 12.806C5.68882 12.562 5.68893 12.1662 5.93263 11.9222L9.65724 8.19661L5.93263 4.47298C5.68855 4.2289 5.68855 3.83229 5.93263 3.58821Z"],"ChevronRightMedium/m/outline":["M5.93263 3.58821C6.17671 3.34413 6.57332 3.34413 6.8174 3.58821L10.9834 7.7552C11.2275 7.99928 11.2275 8.39491 10.9834 8.63899L6.8174 12.806C6.57332 13.0501 6.17671 13.0501 5.93263 12.806C5.68882 12.562 5.68893 12.1662 5.93263 11.9222L9.65724 8.19661L5.93263 4.47298C5.68855 4.2289 5.68855 3.83229 5.93263 3.58821Z"],"ChevronRightMedium/s/filled":["M4.42776 2.66946C4.62302 2.47419 4.93953 2.47419 5.13479 2.66946L8.25979 5.79446C8.45505 5.98972 8.45505 6.30623 8.25979 6.50149L5.13479 9.62649C4.93953 9.82175 4.62302 9.82175 4.42776 9.62649C4.2325 9.43123 4.2325 9.11472 4.42776 8.91946L7.19924 6.14797L4.42776 3.37649C4.2325 3.18123 4.2325 2.86472 4.42776 2.66946Z"],"ChevronRightMedium/s/outline":["M4.42776 2.66946C4.62302 2.47419 4.93953 2.47419 5.13479 2.66946L8.25979 5.79446C8.45505 5.98972 8.45505 6.30623 8.25979 6.50149L5.13479 9.62649C4.93953 9.82175 4.62302 9.82175 4.42776 9.62649C4.2325 9.43123 4.2325 9.11472 4.42776 8.91946L7.19924 6.14797L4.42776 3.37649C4.2325 3.18123 4.2325 2.86472 4.42776 2.66946Z"],"ChevronRightSmall/l/filled":["M9.64881 7.34046C9.9417 7.04757 10.4165 7.04757 10.7094 7.34046L14.0023 10.6334C14.6856 11.3168 14.6856 12.4247 14.0023 13.108L10.7094 16.401C10.4165 16.6939 9.9417 16.6939 9.64881 16.401C9.35591 16.1081 9.35591 15.6334 9.64881 15.3405L12.9418 12.0475C13.0393 11.9499 13.0393 11.7916 12.9418 11.694L9.64881 8.40101C9.35591 8.10811 9.35591 7.63335 9.64881 7.34046Z"],"ChevronRightSmall/l/outline":["M9.64881 7.34046C9.9417 7.04757 10.4165 7.04757 10.7094 7.34046L14.0023 10.6334C14.6856 11.3168 14.6856 12.4247 14.0023 13.108L10.7094 16.401C10.4165 16.6939 9.9417 16.6939 9.64881 16.401C9.35591 16.1081 9.35591 15.6334 9.64881 15.3405L12.9418 12.0475C13.0393 11.9499 13.0393 11.7916 12.9418 11.694L9.64881 8.40101C9.35591 8.10811 9.35591 7.63335 9.64881 7.34046Z"],"ChevronRightSmall/m/filled":["M6.3437 4.80476C6.58778 4.56068 6.98439 4.56068 7.22847 4.80476L9.42378 7.00007C9.92808 7.50442 9.92797 8.32281 9.42378 8.82722L7.22847 11.0225C6.98439 11.2666 6.58778 11.2666 6.3437 11.0225C6.0999 10.7786 6.1 10.3828 6.3437 10.1387L8.53902 7.94343C8.55526 7.92719 8.55522 7.9011 8.53902 7.88484L6.3437 5.68953C6.09963 5.44545 6.09963 5.04884 6.3437 4.80476Z"],"ChevronRightSmall/m/outline":["M6.34364 4.80476C6.58772 4.56068 6.98433 4.56068 7.22841 4.80476L9.42372 7.00007C9.92802 7.50442 9.92791 8.32281 9.42372 8.82722L7.22841 11.0225C6.98433 11.2666 6.58772 11.2666 6.34364 11.0225C6.09984 10.7786 6.09994 10.3828 6.34364 10.1387L8.53895 7.94343C8.55519 7.92719 8.55516 7.9011 8.53895 7.88484L6.34364 5.68953C6.09956 5.44545 6.09956 5.04884 6.34364 4.80476Z"],"ChevronRightSmall/s/filled":["M4.73605 3.58187C4.93131 3.38661 5.24782 3.38661 5.44308 3.58187L7.08956 5.22836C7.48003 5.61886 7.48003 6.25191 7.08956 6.64242L5.44308 8.2889C5.24782 8.48417 4.93131 8.48417 4.73605 8.2889C4.54078 8.09364 4.54078 7.77713 4.73605 7.58187L6.38253 5.93539L4.73605 4.2889C4.54078 4.09364 4.54078 3.77713 4.73605 3.58187Z"],"ChevronRightSmall/s/outline":["M4.73605 3.58187C4.93131 3.38661 5.24782 3.38661 5.44308 3.58187L7.08956 5.22836C7.48003 5.61886 7.48003 6.25191 7.08956 6.64242L5.44308 8.2889C5.24782 8.48417 4.93131 8.48417 4.73605 8.2889C4.54078 8.09364 4.54078 7.77713 4.73605 7.58187L6.38253 5.93539L4.73605 4.2889C4.54078 4.09364 4.54078 3.77713 4.73605 3.58187Z"],"ChevronUpMedium/l/filled":["M11.5888 7.96386C11.8834 7.72355 12.3181 7.74102 12.5927 8.01562L18.8427 14.2656C19.1356 14.5585 19.1356 15.0333 18.8427 15.3262C18.5498 15.6191 18.0751 15.6191 17.7822 15.3262L12.0624 9.60644L6.34272 15.3262C6.04982 15.6191 5.57506 15.6191 5.28217 15.3262C4.98928 15.0333 4.98928 14.5585 5.28217 14.2656L11.5322 8.01562L11.5888 7.96386Z"],"ChevronUpMedium/l/outline":["M11.5888 7.96386C11.8834 7.72355 12.3181 7.74102 12.5927 8.01562L18.8427 14.2656C19.1356 14.5585 19.1356 15.0333 18.8427 15.3262C18.5498 15.6191 18.0751 15.6191 17.7822 15.3262L12.0624 9.60644L6.34272 15.3262C6.04982 15.6191 5.57506 15.6191 5.28217 15.3262C4.98928 15.0333 4.98928 14.5585 5.28217 14.2656L11.5322 8.01562L11.5888 7.96386Z"],"ChevronUpMedium/m/filled":["M7.69819 5.17478C7.94062 5.01507 8.26993 5.04174 8.48335 5.25486L12.6503 9.42185C12.8944 9.66587 12.8943 10.0615 12.6503 10.3056C12.4063 10.5497 12.0106 10.5497 11.7666 10.3056L8.04097 6.58103L4.31734 10.3056C4.07326 10.5497 3.67665 10.5497 3.43257 10.3056C3.18887 10.0616 3.18876 9.66583 3.43257 9.42185L7.59956 5.25486L7.69819 5.17478Z"],"ChevronUpMedium/m/outline":["M7.69819 5.17478C7.94062 5.01507 8.26993 5.04174 8.48335 5.25486L12.6503 9.42185C12.8944 9.66587 12.8943 10.0615 12.6503 10.3056C12.4063 10.5497 12.0106 10.5497 11.7666 10.3056L8.04097 6.58103L4.31734 10.3056C4.07326 10.5497 3.67665 10.5497 3.43257 10.3056C3.18887 10.0616 3.18876 9.66583 3.43257 9.42185L7.59956 5.25486L7.69819 5.17478Z"],"ChevronUpMedium/s/filled":["M5.75582 3.855C5.9499 3.72684 6.21386 3.74859 6.38473 3.91946L9.50973 7.04446C9.70499 7.23972 9.70499 7.55623 9.50973 7.75149C9.31447 7.94675 8.99796 7.94675 8.8027 7.75149L6.03121 4.98L3.25973 7.75149C3.06447 7.94675 2.74796 7.94675 2.5527 7.75149C2.35743 7.55623 2.35743 7.23972 2.5527 7.04446L5.6777 3.91946L5.75582 3.855Z"],"ChevronUpMedium/s/outline":["M5.75582 3.855C5.9499 3.72684 6.21386 3.74859 6.38473 3.91946L9.50973 7.04446C9.70499 7.23972 9.70499 7.55623 9.50973 7.75149C9.31447 7.94675 8.99796 7.94675 8.8027 7.75149L6.03121 4.98L3.25973 7.75149C3.06447 7.94675 2.74796 7.94675 2.5527 7.75149C2.35743 7.55623 2.35743 7.23972 2.5527 7.04446L5.6777 3.91946L5.75582 3.855Z"],"ChevronUpSmall/l/filled":["M12.1768 11.2375C12.0791 11.1399 11.9209 11.1399 11.8232 11.2375L8.53033 14.5304C8.23744 14.8233 7.76256 14.8233 7.46967 14.5304C7.17678 14.2376 7.17678 13.7627 7.46967 13.4698L10.7626 10.1769C11.446 9.49353 12.554 9.49353 13.2374 10.1769L16.5303 13.4698C16.8232 13.7627 16.8232 14.2376 16.5303 14.5304C16.2374 14.8233 15.7626 14.8233 15.4697 14.5304L12.1768 11.2375Z"],"ChevronUpSmall/l/outline":["M15.4697 14.5303C15.7626 14.8232 16.2374 14.8232 16.5303 14.5303C16.8232 14.2374 16.8232 13.7626 16.5303 13.4697L13.2373 10.1768C12.5539 9.49345 11.4461 9.49345 10.7627 10.1768L7.46973 13.4697C7.17684 13.7626 7.17684 14.2374 7.46973 14.5303C7.76262 14.8232 8.23738 14.8232 8.53028 14.5303L11.8232 11.2373C11.9208 11.1398 12.0792 11.1398 12.1768 11.2373L15.4697 14.5303Z"],"ChevronUpSmall/m/filled":["M10.2249 9.77574C10.469 10.0194 10.8647 10.0195 11.1087 9.77574C11.3528 9.53167 11.3528 9.13506 11.1087 8.89098L8.9134 6.69566C8.40899 6.19148 7.5906 6.19137 7.08626 6.69566L4.89094 8.89098C4.64687 9.13506 4.64687 9.53167 4.89094 9.77574C5.13502 10.0198 5.53163 10.0198 5.77571 9.77574L7.97102 7.58043C7.98728 7.56422 8.01338 7.56419 8.02962 7.58043L10.2249 9.77574Z"],"ChevronUpSmall/m/outline":["M10.2249 9.77574C10.469 10.0194 10.8647 10.0195 11.1087 9.77574C11.3528 9.53167 11.3528 9.13506 11.1087 8.89098L8.9134 6.69566C8.40899 6.19148 7.5906 6.19137 7.08626 6.69566L4.89094 8.89098C4.64687 9.13506 4.64687 9.53167 4.89094 9.77574C5.13502 10.0198 5.53163 10.0198 5.77571 9.77574L7.97102 7.58043C7.98728 7.56422 8.01338 7.56419 8.02962 7.58043L10.2249 9.77574Z"],"ChevronUpSmall/s/filled":["M7.64645 7.35349C7.84171 7.54875 8.15822 7.54875 8.35348 7.35349C8.54874 7.15823 8.54874 6.84172 8.35348 6.64646L6.70699 4.99998C6.31649 4.60951 5.68343 4.60951 5.29293 4.99998L3.64645 6.64646C3.45118 6.84172 3.45118 7.15823 3.64645 7.35349C3.84171 7.54875 4.15822 7.54875 4.35348 7.35349L5.99996 5.70701L7.64645 7.35349Z"],"ChevronUpSmall/s/outline":["M7.64651 7.35349C7.84177 7.54875 8.15828 7.54875 8.35354 7.35349C8.5488 7.15823 8.5488 6.84172 8.35354 6.64646L6.70705 4.99998C6.31655 4.60951 5.6835 4.60951 5.29299 4.99998L3.64651 6.64646C3.45125 6.84172 3.45125 7.15823 3.64651 7.35349C3.84177 7.54875 4.15828 7.54875 4.35354 7.35349L6.00002 5.70701L7.64651 7.35349Z"],"CircleCheck/l/filled":["M12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2ZM15.5805 9.97493C15.8428 9.65434 15.7955 9.18183 15.4749 8.91953C15.1543 8.65724 14.6818 8.70449 14.4195 9.02507L10.4443 13.8837L9.03033 12.4697C8.73744 12.1768 8.26256 12.1768 7.96967 12.4697C7.67678 12.7626 7.67678 13.2374 7.96967 13.5303L9.96967 15.5303C10.1195 15.6802 10.3257 15.7596 10.5374 15.7491C10.749 15.7385 10.9463 15.6389 11.0805 15.4749L15.5805 9.97493Z"],"CircleCheck/l/outline":["M20.5 12C20.5 7.30558 16.6944 3.5 12 3.5C7.30558 3.5 3.5 7.30558 3.5 12C3.5 16.6944 7.30558 20.5 12 20.5C16.6944 20.5 20.5 16.6944 20.5 12ZM14.4199 9.02539C14.6822 8.70481 15.154 8.65763 15.4746 8.91992C15.7952 9.18222 15.8424 9.65403 15.5801 9.97461L11.0801 15.4746C10.9459 15.6386 10.7487 15.7385 10.5371 15.749C10.3256 15.7595 10.1195 15.68 9.96973 15.5303L7.96973 13.5303C7.67683 13.2374 7.67683 12.7626 7.96973 12.4697C8.26262 12.1768 8.73738 12.1768 9.03027 12.4697L10.4443 13.8838L14.4199 9.02539ZM22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47716 6.47716 2 12 2C17.5228 2 22 6.47715 22 12Z"],"CircleCheck/m/filled":["M7.99998 1.33331C4.31808 1.33331 1.33331 4.31808 1.33331 7.99998C1.33331 11.6818 4.31808 14.6666 7.99998 14.6666C11.6818 14.6666 14.6666 11.6818 14.6666 7.99998C14.6666 4.31808 11.6818 1.33331 7.99998 1.33331ZM10.387 6.64993C10.5618 6.43621 10.5303 6.1212 10.3166 5.94633C10.1028 5.77147 9.78785 5.80297 9.61298 6.01669L6.96285 9.25578L6.0202 8.31311C5.82494 8.11785 5.50835 8.11785 5.31309 8.31311C5.11783 8.50838 5.11783 8.82491 5.31309 9.02018L6.64643 10.3535C6.74631 10.4534 6.88378 10.5064 7.02491 10.4994C7.16598 10.4923 7.29751 10.4259 7.38698 10.3166L10.387 6.64993Z"],"CircleCheck/m/outline":["M13.5413 8.00031C13.5413 4.93984 11.0607 2.45849 8.00031 2.45831C4.93973 2.45831 2.45831 4.93973 2.45831 8.00031C2.45849 11.0607 4.93984 13.5413 8.00031 13.5413C11.0606 13.5411 13.5411 11.0606 13.5413 8.00031ZM9.51593 5.93781C9.73451 5.67065 10.1287 5.63133 10.3958 5.84991C10.6627 6.06848 10.7021 6.46174 10.4837 6.72882L7.4837 10.3958C7.37198 10.5323 7.20774 10.6154 7.03156 10.6243C6.85519 10.6331 6.68278 10.5666 6.55792 10.4417L5.22491 9.1087C4.98084 8.86463 4.98084 8.46899 5.22491 8.22491C5.46899 7.98084 5.86463 7.98084 6.1087 8.22491L6.95245 9.06866L9.51593 5.93781ZM14.7913 8.00031C14.7911 11.751 11.751 14.7911 8.00031 14.7913C4.24948 14.7913 1.20849 11.7511 1.20831 8.00031C1.20831 4.24937 4.24937 1.20831 8.00031 1.20831C11.7511 1.20849 14.7913 4.24948 14.7913 8.00031Z"],"CircleCheck/s/filled":["M6 1C3.23857 1 1 3.23857 1 6C1 8.7614 3.23857 11 6 11C8.7614 11 11 8.7614 11 6C11 3.23857 8.7614 1 6 1ZM7.79025 4.98746C7.9214 4.82717 7.89775 4.59091 7.73745 4.45976C7.57715 4.32862 7.3409 4.35225 7.20975 4.51254L5.22215 6.94185L4.51516 6.23485C4.36872 6.0884 4.13128 6.0884 3.98483 6.23485C3.83839 6.3813 3.83839 6.6187 3.98483 6.76515L4.98484 7.76515C5.05975 7.8401 5.16285 7.8798 5.2687 7.87455C5.3745 7.86925 5.47315 7.81945 5.54025 7.73745L7.79025 4.98746Z"],"CircleCheck/s/outline":["M10.125 6C10.125 3.72183 8.27816 1.875 6 1.875C3.72183 1.875 1.875 3.72183 1.875 6C1.875 8.27816 3.72183 10.125 6 10.125C8.27816 10.125 10.125 8.27816 10.125 6ZM7.11328 4.43359C7.28815 4.21987 7.60268 4.18842 7.81641 4.36328C8.03013 4.53815 8.06158 4.85268 7.88672 5.06641L5.63672 7.81641C5.54737 7.92561 5.41629 7.99185 5.27539 7.99902C5.1343 8.00606 4.99637 7.9534 4.89648 7.85352L3.89648 6.85352C3.70122 6.65825 3.70122 6.34175 3.89648 6.14648C4.09175 5.95122 4.40825 5.95122 4.60352 6.14648L5.21289 6.75586L7.11328 4.43359ZM11.125 6C11.125 8.83044 8.83044 11.125 6 11.125C3.16954 11.125 0.875 8.83044 0.875 6C0.875 3.16954 3.16954 0.875 6 0.875C8.83044 0.875 11.125 3.16954 11.125 6Z"],"CircleQuestionmarkHelp/l/filled":["M11.9609 2.30762C17.4837 2.30762 21.9608 6.78485 21.9609 12.3076C21.9609 17.8304 17.4837 22.3076 11.9609 22.3076C6.4382 22.3075 1.96094 17.8303 1.96094 12.3076C1.96104 6.78493 6.43826 2.30775 11.9609 2.30762ZM11.9609 15.3076C11.4088 15.3077 10.961 15.7555 10.9609 16.3076C10.9609 16.8598 11.4087 17.3075 11.9609 17.3076C12.5132 17.3076 12.9609 16.8599 12.9609 16.3076C12.9608 15.7554 12.5132 15.3076 11.9609 15.3076ZM11.2109 7.30762C9.96851 7.30775 8.96104 8.31514 8.96094 9.55762C8.96094 9.97175 9.29684 10.3075 9.71094 10.3076C10.1251 10.3076 10.4609 9.97183 10.4609 9.55762C10.461 9.14357 10.7969 8.80775 11.2109 8.80762H12.4199C12.9948 8.80764 13.4607 9.27376 13.4609 9.84863C13.4609 10.1968 13.2868 10.5227 12.9971 10.7158L12.4355 11.0898C11.6706 11.5999 11.211 12.4586 11.2109 13.3779V13.5576C11.2109 13.9717 11.5469 14.3075 11.9609 14.3076C12.3751 14.3076 12.7109 13.9718 12.7109 13.5576V13.3779C12.711 12.96 12.92 12.5696 13.2676 12.3379L13.8291 11.9639C14.536 11.4926 14.9609 10.6983 14.9609 9.84863C14.9607 8.44534 13.8232 7.30764 12.4199 7.30762H11.2109Z"],"CircleQuestionmarkHelp/l/outline":["M11.9609 15.3076C12.5132 15.3076 12.9608 15.7554 12.9609 16.3076C12.9609 16.8599 12.5133 17.3076 11.9609 17.3076C11.4087 17.3075 10.9609 16.8598 10.9609 16.3076C10.961 15.7555 11.4088 15.3077 11.9609 15.3076Z","M12.4199 7.30762C13.8231 7.30777 14.9607 8.44542 14.9609 9.84863C14.9609 10.6982 14.5363 11.4925 13.8291 11.9639L13.2676 12.3379C12.92 12.5696 12.711 12.9601 12.7109 13.3779V13.5576C12.7109 13.9718 12.3752 14.3076 11.9609 14.3076C11.5468 14.3075 11.2109 13.9717 11.2109 13.5576V13.3779C11.211 12.4586 11.6706 11.5998 12.4355 11.0898L12.9971 10.7158C13.2867 10.5228 13.4609 10.1968 13.4609 9.84863C13.4607 9.27384 12.9947 8.80777 12.4199 8.80762H11.2109C10.823 8.80774 10.5035 9.10266 10.4648 9.48047L10.457 9.63477C10.4184 10.0127 10.0991 10.3076 9.71094 10.3076C9.29684 10.3075 8.96094 9.97175 8.96094 9.55762C8.96104 8.31513 9.96851 7.30775 11.2109 7.30762H12.4199Z","M11.9609 2.30762C17.4837 2.30762 21.9608 6.78486 21.9609 12.3076C21.9609 17.8304 17.4838 22.3076 11.9609 22.3076C6.4382 22.3075 1.96094 17.8303 1.96094 12.3076C1.96104 6.78494 6.43827 2.30775 11.9609 2.30762ZM11.9609 3.80762C7.26669 3.80775 3.46104 7.61337 3.46094 12.3076C3.46094 17.0019 7.26663 20.8075 11.9609 20.8076C16.6553 20.8076 20.4609 17.002 20.4609 12.3076C20.4608 7.61329 16.6553 3.80762 11.9609 3.80762Z"],"CircleQuestionmarkHelp/m/filled":["M7.97461 1.53809C11.6562 1.53833 14.6406 4.52339 14.6406 8.20508C14.6406 11.8868 11.6563 14.8718 7.97461 14.8721C4.29271 14.8721 1.30762 11.8869 1.30762 8.20508C1.30769 4.52324 4.29275 1.53809 7.97461 1.53809ZM7.97461 10.2051C7.60641 10.2051 7.30762 10.5039 7.30762 10.8721C7.30772 11.2402 7.60647 11.5381 7.97461 11.5381C8.34254 11.5378 8.64052 11.24 8.64062 10.8721C8.64062 10.504 8.3426 10.2053 7.97461 10.2051ZM7.47461 4.87207C6.64621 4.87207 5.97461 5.54364 5.97461 6.37207C5.97471 6.64812 6.19853 6.87207 6.47461 6.87207C6.75047 6.87183 6.9745 6.64797 6.97461 6.37207C6.97461 6.09593 7.19848 5.87207 7.47461 5.87207H8.28027C8.66353 5.87224 8.97461 6.1831 8.97461 6.56641C8.9745 6.79837 8.85805 7.01487 8.66504 7.14355L8.29102 7.39355C7.78095 7.73362 7.47461 8.30595 7.47461 8.91895V9.03809C7.47461 9.31422 7.69848 9.53809 7.97461 9.53809C8.25054 9.53784 8.47461 9.31407 8.47461 9.03809V8.91895C8.47461 8.64028 8.6139 8.38012 8.8457 8.22559L9.21973 7.97559C9.69088 7.66144 9.9745 7.13272 9.97461 6.56641C9.97461 5.63082 9.2158 4.87224 8.28027 4.87207H7.47461Z"],"CircleQuestionmarkHelp/m/outline":["M8.05566 10.084C8.45459 10.1248 8.76556 10.4624 8.76562 10.8721C8.76545 11.309 8.41154 11.6628 7.97461 11.6631C7.56483 11.6631 7.22725 11.3521 7.18652 10.9531L7.18262 10.8721L7.18652 10.791C7.22702 10.3918 7.56466 10.0801 7.97461 10.0801L8.05566 10.084Z","M8.28027 4.74707C9.28477 4.74733 10.0996 5.56185 10.0996 6.56641C10.0995 7.17436 9.79505 7.74271 9.28906 8.08008L8.91504 8.33008C8.71814 8.46142 8.59963 8.68219 8.59961 8.91895V9.03906C8.59932 9.38383 8.31938 9.6638 7.97461 9.66406C7.62961 9.66406 7.3499 9.38399 7.34961 9.03906V8.91895C7.34963 8.2643 7.67699 7.65324 8.22168 7.29004L8.5957 7.04004C8.75378 6.93456 8.8495 6.75651 8.84961 6.56641C8.84961 6.2522 8.5944 5.99733 8.28027 5.99707H7.47461C7.26751 5.99707 7.09961 6.16497 7.09961 6.37207C7.09949 6.71699 6.81949 6.99681 6.47461 6.99707C6.1295 6.99707 5.84972 6.71715 5.84961 6.37207C5.84961 5.4746 6.57717 4.74707 7.47461 4.74707H8.28027Z","M7.97461 1.41309C11.7252 1.41333 14.7654 4.4545 14.7656 8.20508C14.7654 11.9557 11.7252 14.9959 7.97461 14.9961C4.22379 14.9961 1.18279 11.9558 1.18262 8.20508C1.18286 4.45436 4.22383 1.41309 7.97461 1.41309ZM7.97461 2.66309C4.91419 2.66309 2.43286 5.14471 2.43262 8.20508C2.43279 11.2655 4.91414 13.7461 7.97461 13.7461C11.0349 13.7459 13.5154 11.2653 13.5156 8.20508C13.5154 5.14486 11.0348 2.66333 7.97461 2.66309Z"],"CircleQuestionmarkHelp/s/filled":["M5.98047 1.1543C8.74187 1.1543 10.9805 3.39287 10.9805 6.1543C10.9803 8.91551 8.74174 11.1543 5.98047 11.1543C3.21923 11.1542 0.980683 8.91547 0.980469 6.1543C0.980469 3.39291 3.2191 1.15436 5.98047 1.1543ZM5.98047 7.6543C5.70437 7.65436 5.48047 7.87819 5.48047 8.1543C5.48068 8.43022 5.70451 8.65423 5.98047 8.6543C6.25649 8.6543 6.48025 8.43026 6.48047 8.1543C6.48047 7.87815 6.25662 7.6543 5.98047 7.6543ZM5.60547 3.6543C4.98422 3.65436 4.48047 4.15802 4.48047 4.7793C4.48068 4.98618 4.64855 5.15423 4.85547 5.1543C5.06244 5.1543 5.23025 4.98622 5.23047 4.7793C5.23047 4.57223 5.39843 4.40436 5.60547 4.4043H6.20996C6.4975 4.40431 6.73047 4.63726 6.73047 4.9248C6.73039 5.09865 6.6436 5.26089 6.49902 5.35742L6.21777 5.54492C5.83525 5.79998 5.60547 6.22972 5.60547 6.68945V6.7793C5.60568 6.98617 5.77356 7.15423 5.98047 7.1543C6.18744 7.1543 6.35525 6.98621 6.35547 6.7793V6.68945C6.35547 6.48046 6.45995 6.28485 6.63379 6.16895L6.91504 5.98145C7.26822 5.74581 7.48039 5.34942 7.48047 4.9248C7.48047 4.22305 6.9117 3.65431 6.20996 3.6543H5.60547Z"],"CircleQuestionmarkHelp/s/outline":["M5.98047 7.5293C6.32566 7.5293 6.60547 7.8091 6.60547 8.1543C6.60525 8.49931 6.32553 8.7793 5.98047 8.7793C5.63546 8.77923 5.35568 8.49927 5.35547 8.1543C5.35547 7.80914 5.63533 7.52936 5.98047 7.5293Z","M6.20996 3.5293C6.98064 3.52937 7.60539 4.15412 7.60547 4.9248C7.60534 5.39105 7.37236 5.82712 6.98438 6.08594L6.70312 6.27344C6.56422 6.36616 6.48048 6.52239 6.48047 6.68945V6.7793C6.48025 7.05526 6.25648 7.2793 5.98047 7.2793C5.70451 7.27923 5.48068 7.05522 5.48047 6.7793V6.68945C5.48048 6.18806 5.73128 5.71961 6.14844 5.44141L6.42969 5.25391C6.53939 5.18061 6.60534 5.05681 6.60547 4.9248C6.60539 4.7064 6.42835 4.52937 6.20996 4.5293H5.60547C5.46746 4.52936 5.35547 4.64127 5.35547 4.7793C5.35525 5.05526 5.13148 5.2793 4.85547 5.2793C4.57951 5.27923 4.35568 5.05522 4.35547 4.7793C4.35547 4.08897 4.91519 3.52936 5.60547 3.5293H6.20996Z","M5.98047 1.0293C8.81091 1.0293 11.1055 3.32384 11.1055 6.1543C11.1053 8.98456 8.81078 11.2793 5.98047 11.2793C3.1502 11.2792 0.855683 8.98452 0.855469 6.1543C0.855469 3.32388 3.15007 1.02936 5.98047 1.0293ZM5.98047 2.0293C3.70235 2.02936 1.85547 3.87616 1.85547 6.1543C1.85568 8.43223 3.70249 10.2792 5.98047 10.2793C8.25849 10.2793 10.1053 8.43227 10.1055 6.1543C10.1055 3.87613 8.25863 2.0293 5.98047 2.0293Z"],"CircleSlashBan/l/filled":["M19.582 5.6709C21.0891 7.42164 22 9.70017 22 12.1914C22 17.7142 17.5228 22.1914 12 22.1914C9.50876 22.1914 7.23024 21.2805 5.47949 19.7734L19.582 5.6709Z","M12 2.19141C14.4913 2.19141 16.7698 3.10234 18.5205 4.60938L4.41797 18.7119C2.91093 16.9612 2 14.6827 2 12.1914C2 6.66856 6.47715 2.19141 12 2.19141Z"],"CircleSlashBan/l/outline":["M12 2.19141C14.7612 2.19141 17.2625 3.31129 19.0713 5.12012C20.8802 6.92895 22 9.43021 22 12.1914C22 17.7142 17.5228 22.1914 12 22.1914C9.2388 22.1914 6.73754 21.0716 4.92871 19.2627C3.11989 17.4539 2 14.9526 2 12.1914C2 6.66856 6.47716 2.19141 12 2.19141ZM6.54395 18.707C8.02087 19.9453 9.9223 20.6914 12 20.6914C16.6944 20.6914 20.5 16.8858 20.5 12.1914C20.5 10.1137 19.7539 8.21228 18.5156 6.73535L6.54395 18.707ZM12 3.69141C7.30558 3.69141 3.5 7.49699 3.5 12.1914C3.5 14.2686 4.24566 16.1697 5.4834 17.6465L17.4551 5.6748C15.9783 4.43707 14.0772 3.69141 12 3.69141Z"],"CircleSlashBan/m/filled":["M13.0547 3.78027C14.0595 4.94746 14.667 6.46701 14.667 8.12793C14.6668 11.8096 11.6818 14.7939 8 14.7939C6.33902 14.7939 4.81955 14.1865 3.65234 13.1816L13.0547 3.78027Z","M8 1.46094C9.661 1.46094 11.1805 2.0684 12.3477 3.07324L2.94531 12.4746C1.9407 11.3075 1.33309 9.78865 1.33301 8.12793C1.33301 4.44604 4.31812 1.46096 8 1.46094Z"],"CircleSlashBan/m/outline":["M8 1.33594C9.87498 1.33603 11.5735 2.0971 12.8018 3.3252C14.0302 4.55357 14.791 6.25264 14.791 8.12793C14.7908 11.8786 11.7507 14.9188 8 14.9189C6.12485 14.9188 4.42556 14.158 3.19727 12.9297C1.96917 11.7014 1.2081 10.0029 1.20801 8.12793C1.20801 4.37712 4.24924 1.33614 8 1.33594ZM4.54785 12.4619C5.49505 13.2175 6.69445 13.6689 8 13.6689C11.0603 13.6688 13.5408 11.1882 13.541 8.12793C13.541 6.82224 13.0896 5.62307 12.334 4.67578L4.54785 12.4619ZM8 2.58594C4.93959 2.58614 2.45801 5.06748 2.45801 8.12793C2.45808 9.43274 2.9093 10.6312 3.66406 11.5781L11.4502 3.79199C10.5032 3.03726 9.30479 2.58601 8 2.58594Z"],"CircleSlashBan/s/filled":["M9.79102 2.83521C10.5446 3.7106 11.0002 4.85026 11.0002 6.09595C11.0001 8.85723 8.76132 11.0955 6 11.0955C4.75427 11.0955 3.61466 10.6399 2.73926 9.88623L9.79102 2.83521Z","M6 1.0957C7.24575 1.0957 8.38534 1.5513 9.26074 2.30493L2.20898 9.35596C1.45552 8.48065 0.999815 7.34149 0.999756 6.09595C0.999756 3.33453 3.23859 1.09572 6 1.0957Z"],"CircleSlashBan/s/outline":["M6 1.0957C7.38037 1.09577 8.63107 1.6556 9.5354 2.55981C10.4399 3.46423 10.9995 4.71534 10.9995 6.09595C10.9994 8.85716 8.76121 11.0953 6 11.0955C4.6195 11.0954 3.36822 10.5357 2.46387 9.63135C1.55966 8.72702 0.999822 7.47632 0.999756 6.09595C0.999756 3.33462 3.2387 1.09585 6 1.0957ZM3.27173 9.35376C4.01011 9.97279 4.96131 10.3454 6 10.3455C8.347 10.3453 10.2494 8.44295 10.2495 6.09595C10.2495 5.05715 9.8769 4.10612 9.25781 3.36768L3.27173 9.35376ZM6 1.8457C3.65292 1.84585 1.74976 3.74883 1.74976 6.09595C1.74981 7.13428 2.12208 8.08521 2.74072 8.82349L8.72754 2.83667C7.98926 2.21804 7.03832 1.84576 6 1.8457Z"],"CircleXCloseRemoveCancel/l/filled":["M2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12ZM9.53033 8.46967C9.23744 8.17678 8.76256 8.17678 8.46967 8.46967C8.17678 8.76256 8.17678 9.23744 8.46967 9.53033L10.9393 12L8.46967 14.4697C8.17678 14.7626 8.17678 15.2374 8.46967 15.5303C8.76256 15.8232 9.23744 15.8232 9.53033 15.5303L12 13.0607L14.4697 15.5303C14.7626 15.8232 15.2374 15.8232 15.5303 15.5303C15.8232 15.2374 15.8232 14.7626 15.5303 14.4697L13.0607 12L15.5303 9.53033C15.8232 9.23744 15.8232 8.76256 15.5303 8.46967C15.2374 8.17678 14.7626 8.17678 14.4697 8.46967L12 10.9393L9.53033 8.46967Z"],"CircleXCloseRemoveCancel/l/outline":["M14.4697 8.46973C14.7626 8.17683 15.2374 8.17683 15.5303 8.46973C15.8232 8.76262 15.8232 9.23738 15.5303 9.53027L13.0605 12L15.5303 14.4697C15.8232 14.7626 15.8232 15.2374 15.5303 15.5303C15.2374 15.8232 14.7626 15.8232 14.4697 15.5303L12 13.0605L9.53027 15.5303C9.23738 15.8232 8.76262 15.8232 8.46973 15.5303C8.17683 15.2374 8.17683 14.7626 8.46973 14.4697L10.9395 12L8.46973 9.53027C8.17683 9.23738 8.17683 8.76262 8.46973 8.46973C8.76262 8.17683 9.23738 8.17683 9.53027 8.46973L12 10.9395L14.4697 8.46973Z","M12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47716 6.47716 2 12 2ZM12 3.5C7.30558 3.5 3.5 7.30558 3.5 12C3.5 16.6944 7.30558 20.5 12 20.5C16.6944 20.5 20.5 16.6944 20.5 12C20.5 7.30558 16.6944 3.5 12 3.5Z"],"CircleXCloseRemoveCancel/m/filled":["M1.33334 8.00001C1.33334 4.31811 4.31811 1.33334 8.00001 1.33334C11.6819 1.33334 14.6667 4.31811 14.6667 8.00001C14.6667 11.6819 11.6819 14.6667 8.00001 14.6667C4.31811 14.6667 1.33334 11.6819 1.33334 8.00001ZM6.35356 5.64646C6.1583 5.4512 5.84172 5.4512 5.64646 5.64646C5.4512 5.84172 5.4512 6.1583 5.64646 6.35356L7.29288 8.00001L5.64646 9.64648C5.4512 9.84174 5.4512 10.1583 5.64646 10.3535C5.84172 10.5488 6.1583 10.5488 6.35356 10.3535L8.00001 8.70714L9.64648 10.3535C9.84174 10.5488 10.1583 10.5488 10.3535 10.3535C10.5488 10.1583 10.5488 9.84174 10.3535 9.64648L8.70714 8.00001L10.3535 6.35356C10.5488 6.1583 10.5488 5.84172 10.3535 5.64646C10.1583 5.4512 9.84174 5.4512 9.64648 5.64646L8.00001 7.29288L6.35356 5.64646Z"],"CircleXCloseRemoveCancel/m/outline":["M9.55762 5.55762C9.80152 5.31371 10.1973 5.31405 10.4414 5.55762C10.6855 5.80169 10.6855 6.19733 10.4414 6.44141L8.88281 7.99902L10.4414 9.55762C10.6855 9.80169 10.6855 10.1973 10.4414 10.4414C10.1973 10.6855 9.80169 10.6855 9.55762 10.4414L7.99902 8.88281L6.44141 10.4414C6.19733 10.6855 5.80169 10.6855 5.55762 10.4414C5.31406 10.1973 5.31373 9.80153 5.55762 9.55762L7.11523 7.99902L5.55762 6.44141C5.31406 6.19729 5.31373 5.80153 5.55762 5.55762C5.80152 5.31371 6.19729 5.31405 6.44141 5.55762L7.99902 7.11523L9.55762 5.55762Z","M8 1.20801C11.7506 1.20818 14.7908 4.24933 14.791 8C14.7908 11.7507 11.7507 14.7908 8 14.791C4.24934 14.7908 1.20818 11.7506 1.20801 8C1.20819 4.24934 4.24935 1.20821 8 1.20801ZM8 2.45801C4.9397 2.45821 2.45819 4.9397 2.45801 8C2.45818 11.0603 4.9397 13.5408 8 13.541C11.0603 13.5408 13.5408 11.0603 13.541 8C13.5408 4.93969 11.0603 2.45818 8 2.45801Z"],"CircleXCloseRemoveCancel/s/filled":["M1 6C1 3.23857 3.23857 1 6 1C8.7614 1 11 3.23857 11 6C11 8.7614 8.7614 11 6 11C3.23857 11 1 8.7614 1 6ZM4.76516 4.23484C4.61872 4.08839 4.38128 4.08839 4.23484 4.23484C4.08839 4.38128 4.08839 4.61872 4.23484 4.76516L5.46965 6L4.23484 7.23485C4.08839 7.3813 4.08839 7.6187 4.23484 7.76515C4.38128 7.9116 4.61872 7.9116 4.76516 7.76515L6 6.53035L7.23485 7.76515C7.3813 7.9116 7.6187 7.9116 7.76515 7.76515C7.9116 7.6187 7.9116 7.3813 7.76515 7.23485L6.53035 6L7.76515 4.76516C7.9116 4.61872 7.9116 4.38128 7.76515 4.23484C7.6187 4.08839 7.3813 4.08839 7.23485 4.23484L6 5.46965L4.76516 4.23484Z"],"CircleXCloseRemoveCancel/s/outline":["M7.14648 4.14648C7.34175 3.95122 7.65825 3.95122 7.85352 4.14648C8.04878 4.34175 8.04878 4.65825 7.85352 4.85352L6.70703 6L7.85352 7.14648C8.04878 7.34175 8.04878 7.65825 7.85352 7.85352C7.65825 8.04878 7.34175 8.04878 7.14648 7.85352L6 6.70703L4.85352 7.85352C4.65825 8.04878 4.34175 8.04878 4.14648 7.85352C3.95122 7.65825 3.95122 7.34175 4.14648 7.14648L5.29297 6L4.14648 4.85352C3.95122 4.65825 3.95122 4.34175 4.14648 4.14648C4.34175 3.95122 4.65825 3.95122 4.85352 4.14648L6 5.29297L7.14648 4.14648Z","M6 0.875C8.83044 0.875 11.125 3.16954 11.125 6C11.125 8.83044 8.83044 11.125 6 11.125C3.16954 11.125 0.875 8.83044 0.875 6C0.875 3.16954 3.16954 0.875 6 0.875ZM6 1.875C3.72183 1.875 1.875 3.72183 1.875 6C1.875 8.27816 3.72183 10.125 6 10.125C8.27816 10.125 10.125 8.27816 10.125 6C10.125 3.72183 8.27816 1.875 6 1.875Z"],"ClockTimeslot/l/filled":["M12 2C12.4142 2 12.75 2.33579 12.75 2.75C12.75 3.16421 12.4142 3.5 12 3.5C7.30558 3.5 3.5 7.30558 3.5 12C3.5 16.6944 7.30558 20.5 12 20.5C16.6944 20.5 20.5 16.6944 20.5 12C20.5 11.5858 20.8358 11.25 21.25 11.25C21.6642 11.25 22 11.5858 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2Z","M12 5C15.866 5 19 8.13401 19 12C19 15.866 15.866 19 12 19C8.13401 19 5 15.866 5 12C5 8.13401 8.13401 5 12 5ZM12 7.5C11.5858 7.5 11.25 7.83579 11.25 8.25V12C11.25 12.4142 11.5858 12.75 12 12.75H14.75C15.1642 12.75 15.5 12.4142 15.5 12C15.5 11.5858 15.1642 11.25 14.75 11.25H12.75V8.25C12.75 7.83579 12.4142 7.5 12 7.5Z","M20.1709 7.6748C20.6045 7.4956 21.1018 7.70224 21.2812 8.13574C21.4605 8.56928 21.2547 9.06644 20.8213 9.24609C20.3876 9.42573 19.8896 9.21979 19.71 8.78613C19.5303 8.35244 19.7372 7.85445 20.1709 7.6748Z","M17.8896 4.85742C18.2215 4.52562 18.7598 4.52588 19.0918 4.85742C19.4237 5.18937 19.4237 5.72762 19.0918 6.05957C18.7599 6.3915 18.2216 6.39149 17.8896 6.05957C17.5581 5.72759 17.5578 5.18924 17.8896 4.85742Z","M14.7041 3.12891C14.8837 2.6952 15.3817 2.4893 15.8154 2.66895C16.2489 2.84864 16.4548 3.34573 16.2754 3.7793C16.0958 4.21289 15.5987 4.41867 15.165 4.23926C14.7314 4.05963 14.5246 3.56257 14.7041 3.12891Z"],"ClockTimeslot/l/outline":["M12 2C12.4142 2 12.75 2.33579 12.75 2.75C12.75 3.16421 12.4142 3.5 12 3.5C7.30558 3.5 3.5 7.30558 3.5 12C3.5 16.6944 7.30558 20.5 12 20.5C16.6944 20.5 20.5 16.6944 20.5 12C20.5 11.5858 20.8358 11.25 21.25 11.25C21.6642 11.25 22 11.5858 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47716 6.47716 2 12 2ZM12 6C12.4142 6 12.75 6.33579 12.75 6.75V11.25H16.75C17.1642 11.25 17.5 11.5858 17.5 12C17.5 12.4142 17.1642 12.75 16.75 12.75H12C11.5858 12.75 11.25 12.4142 11.25 12V6.75C11.25 6.33579 11.5858 6 12 6ZM20.1738 7.6748C20.6074 7.49555 21.1046 7.70222 21.2842 8.13574C21.4634 8.56928 21.2576 9.06644 20.8242 9.24609C20.3907 9.42569 19.8936 9.21956 19.7139 8.78613C19.5342 8.35243 19.7401 7.85444 20.1738 7.6748ZM17.8896 4.85742C18.2215 4.52576 18.7599 4.52572 19.0918 4.85742C19.4236 5.18929 19.4235 5.7276 19.0918 6.05957C18.7598 6.39151 18.2215 6.39151 17.8896 6.05957C17.5578 5.72761 17.5577 5.18931 17.8896 4.85742ZM14.7051 3.12891C14.8848 2.6952 15.3827 2.4893 15.8164 2.66895C16.2498 2.84865 16.4558 3.34573 16.2764 3.7793C16.0968 4.21292 15.5997 4.41873 15.166 4.23926C14.7324 4.05963 14.5256 3.56258 14.7051 3.12891Z"],"ClockTimeslot/m/filled":["M8 1.33301C8.27603 1.33301 8.49984 1.55701 8.5 1.83301C8.5 2.10915 8.27613 2.33301 8 2.33301C4.87041 2.33303 2.33301 4.8704 2.33301 8C2.33302 11.1296 4.87041 13.667 8 13.667C11.1296 13.667 13.667 11.1296 13.667 8C13.667 7.72387 13.8909 7.5 14.167 7.5C14.443 7.50015 14.667 7.72396 14.667 8C14.667 11.6819 11.6819 14.667 8 14.667C4.31813 14.667 1.33302 11.6818 1.33301 8C1.33301 4.31811 4.31812 1.33303 8 1.33301Z","M8 3.33301C10.5773 3.33301 12.667 5.42267 12.667 8C12.667 10.5773 10.5773 12.667 8 12.667C5.4227 12.667 3.33302 10.5773 3.33301 8C3.33301 5.42269 5.42269 3.33303 8 3.33301ZM8 5C7.72389 5.00002 7.5 5.22387 7.5 5.5V8C7.50001 8.27611 7.72389 8.49998 8 8.5H9.83301C10.1091 8.5 10.333 8.27612 10.333 8C10.333 7.72387 10.1091 7.5 9.83301 7.5H8.5V5.5C8.5 5.22386 8.27613 5 8 5Z","M13.4473 5.11621C13.7363 4.9968 14.0678 5.13485 14.1875 5.42383C14.307 5.71286 14.1698 6.0443 13.8809 6.16406C13.5917 6.28381 13.2594 6.14652 13.1396 5.85742C13.0199 5.56832 13.1582 5.23596 13.4473 5.11621Z","M11.9268 3.23828C12.148 3.0173 12.5062 3.01749 12.7275 3.23828C12.9488 3.45958 12.9488 3.81874 12.7275 4.04004C12.5063 4.26089 12.148 4.26091 11.9268 4.04004C11.7058 3.81872 11.7056 3.45949 11.9268 3.23828Z","M9.80273 2.08594C9.92247 1.7968 10.2548 1.65953 10.5439 1.7793C10.8327 1.89916 10.9701 2.23059 10.8506 2.51953C10.7309 2.80852 10.3994 2.94561 10.1104 2.82617C9.82129 2.70642 9.68307 2.37505 9.80273 2.08594Z"],"ClockTimeslot/m/outline":["M8 1.20801C8.34493 1.20818 8.62484 1.48808 8.625 1.83301C8.625 2.17808 8.34503 2.45783 8 2.45801C4.93969 2.45821 2.45817 4.93969 2.45801 8C2.45818 11.0603 4.9397 13.5408 8 13.541C11.0603 13.5408 13.5408 11.0603 13.541 8C13.5412 7.65519 13.8213 7.37537 14.166 7.375C14.5111 7.375 14.7909 7.65496 14.791 8C14.7908 11.7507 11.7507 14.7908 8 14.791C4.24934 14.7908 1.20818 11.7506 1.20801 8C1.20817 4.24933 4.24934 1.20821 8 1.20801ZM8 3.875C8.34518 3.875 8.625 4.15482 8.625 4.5V7.375H11.167C11.512 7.37518 11.792 7.65493 11.792 8C11.792 8.34507 11.512 8.62482 11.167 8.625H8C7.65482 8.625 7.375 8.34518 7.375 8V4.5C7.375 4.15482 7.65482 3.875 8 3.875ZM13.4492 5.11719C13.7383 4.99749 14.0697 5.13473 14.1895 5.42383C14.3089 5.71286 14.1718 6.04431 13.8828 6.16406C13.5938 6.28379 13.2624 6.14637 13.1426 5.85742C13.0228 5.56829 13.1601 5.23695 13.4492 5.11719ZM11.9268 3.23828C12.148 3.01739 12.5063 3.01734 12.7275 3.23828C12.9488 3.45957 12.9488 3.81874 12.7275 4.04004C12.5063 4.26108 12.148 4.26103 11.9268 4.04004C11.7054 3.81874 11.7054 3.45957 11.9268 3.23828ZM9.80371 2.08594C9.92352 1.79687 10.2549 1.6596 10.5439 1.7793C10.833 1.89905 10.9703 2.23041 10.8506 2.51953C10.7309 2.80867 10.3995 2.94594 10.1104 2.82617C9.82128 2.70638 9.68399 2.37504 9.80371 2.08594Z"],"ClockTimeslot/s/filled":["M6 1C6.2071 1 6.375 1.1679 6.375 1.375C6.375 1.5821 6.2071 1.75 6 1.75C3.65279 1.75 1.75 3.65279 1.75 6C1.75 8.3472 3.65279 10.25 6 10.25C8.3472 10.25 10.25 8.3472 10.25 6C10.25 5.7929 10.4179 5.625 10.625 5.625C10.8321 5.625 11 5.7929 11 6C11 8.7614 8.7614 11 6 11C3.23857 11 1 8.7614 1 6C1 3.23857 3.23857 1 6 1Z","M6 2.5C7.933 2.5 9.5 4.06701 9.5 6C9.5 7.933 7.933 9.5 6 9.5C4.06701 9.5 2.5 7.933 2.5 6C2.5 4.06701 4.06701 2.5 6 2.5ZM6 3.75C5.7929 3.75 5.625 3.9179 5.625 4.125V6C5.625 6.2071 5.7929 6.375 6 6.375H7.375C7.5821 6.375 7.75 6.2071 7.75 6C7.75 5.7929 7.5821 5.625 7.375 5.625H6.375V4.125C6.375 3.9179 6.2071 3.75 6 3.75Z","M10.085 3.83789C10.3018 3.74827 10.5509 3.8516 10.6406 4.06836C10.7299 4.28503 10.6267 4.53329 10.4102 4.62305C10.1935 4.71258 9.94433 4.61009 9.85449 4.39355C9.76471 4.17688 9.86846 3.9279 10.085 3.83789Z","M8.94434 2.42871C9.11029 2.26281 9.3799 2.26294 9.5459 2.42871C9.71177 2.59461 9.71161 2.8633 9.5459 3.0293C9.37995 3.19527 9.11034 3.19527 8.94434 3.0293C8.77914 2.86335 8.77883 2.59448 8.94434 2.42871Z","M7.35254 1.56445C7.44232 1.34791 7.69057 1.24461 7.90723 1.33398C8.12398 1.42383 8.2274 1.67286 8.1377 1.88965C8.04789 2.10645 7.79888 2.20885 7.58203 2.11914C7.36563 2.02912 7.26287 1.78109 7.35254 1.56445Z"],"ClockTimeslot/s/outline":["M6 0.875C6.27614 0.875 6.5 1.09886 6.5 1.375C6.5 1.65114 6.27614 1.875 6 1.875C3.72183 1.875 1.875 3.72183 1.875 6C1.875 8.27816 3.72183 10.125 6 10.125C8.27816 10.125 10.125 8.27816 10.125 6C10.125 5.72386 10.3489 5.5 10.625 5.5C10.9011 5.5 11.125 5.72386 11.125 6C11.125 8.83044 8.83044 11.125 6 11.125C3.16954 11.125 0.875 8.83044 0.875 6C0.875 3.16954 3.16954 0.875 6 0.875ZM6 2.875C6.27614 2.875 6.5 3.09886 6.5 3.375V5.5H8.375C8.65114 5.5 8.875 5.72386 8.875 6C8.875 6.27614 8.65114 6.5 8.375 6.5H6C5.72386 6.5 5.5 6.27614 5.5 6V3.375C5.5 3.09886 5.72386 2.875 6 2.875ZM10.0869 3.83789C10.3036 3.74819 10.5516 3.85081 10.6416 4.06738C10.7314 4.2842 10.6289 4.53319 10.4121 4.62305C10.1953 4.71287 9.94625 4.60943 9.85645 4.39258C9.76687 4.17582 9.87019 3.92766 10.0869 3.83789ZM8.94434 2.42871C9.11026 2.26277 9.37989 2.26282 9.5459 2.42871C9.71185 2.59468 9.71185 2.8643 9.5459 3.03027C9.37989 3.19611 9.11024 3.1962 8.94434 3.03027C8.77846 2.86434 8.7785 2.59466 8.94434 2.42871ZM7.35254 1.56445C7.44238 1.34761 7.69136 1.24419 7.9082 1.33398C8.12505 1.42381 8.22755 1.67279 8.1377 1.88965C8.04792 2.10638 7.79978 2.20972 7.58301 2.12012C7.36618 2.03031 7.26278 1.78129 7.35254 1.56445Z"],"CloseBackArrowWallLeft/l/filled":["M3.17773 3.56641C3.59189 3.56647 3.92773 3.90223 3.92773 4.31641V18.8164C3.9277 19.2306 3.59187 19.5663 3.17773 19.5664C2.76354 19.5664 2.42777 19.2306 2.42773 18.8164V4.31641C2.42773 3.90219 2.76352 3.56641 3.17773 3.56641ZM10.6475 6.78613C10.9404 6.49337 11.4152 6.49329 11.708 6.78613C12.0007 7.079 12.0007 7.55384 11.708 7.84668L8.73828 10.8164H21.6777C22.0919 10.8165 22.4277 11.1522 22.4277 11.5664C22.4277 11.9806 22.0919 12.3163 21.6777 12.3164H8.73828L11.708 15.2861C12.0007 15.579 12.0007 16.0538 11.708 16.3467C11.4152 16.6395 10.9404 16.6394 10.6475 16.3467L7.10449 12.8037C6.42107 12.1203 6.42107 11.0125 7.10449 10.3291L10.6475 6.78613Z"],"CloseBackArrowWallLeft/l/outline":["M3.17773 3.56641C3.59189 3.56647 3.92773 3.90223 3.92773 4.31641V18.8164C3.9277 19.2306 3.59187 19.5663 3.17773 19.5664C2.76354 19.5664 2.42777 19.2306 2.42773 18.8164V4.31641C2.42773 3.90219 2.76352 3.56641 3.17773 3.56641ZM10.6475 6.78613C10.9404 6.49337 11.4152 6.49329 11.708 6.78613C12.0007 7.079 12.0007 7.55384 11.708 7.84668L8.73828 10.8164H21.6777C22.0919 10.8165 22.4277 11.1522 22.4277 11.5664C22.4277 11.9806 22.0919 12.3163 21.6777 12.3164H8.73828L11.708 15.2861C12.0007 15.579 12.0007 16.0538 11.708 16.3467C11.4152 16.6395 10.9404 16.6394 10.6475 16.3467L7.10449 12.8037C6.42107 12.1203 6.42107 11.0125 7.10449 10.3291L10.6475 6.78613Z"],"CloseBackArrowWallLeft/m/filled":["M2.11816 2.25293C2.46334 2.25293 2.74316 2.53275 2.74316 2.87793V12.5449C2.74279 12.8898 2.46311 13.1699 2.11816 13.1699C1.77333 13.1698 1.49354 12.8897 1.49316 12.5449V2.87793C1.49316 2.53283 1.7731 2.25306 2.11816 2.25293ZM7.00977 4.43555C7.25377 4.19178 7.64953 4.1918 7.89355 4.43555C8.13739 4.67964 8.13755 5.07631 7.89355 5.32031L6.12793 7.08594H14.4512C14.7963 7.08594 15.0762 7.36576 15.0762 7.71094C15.0761 8.05609 14.7963 8.33594 14.4512 8.33594H6.12598L7.89355 10.1025C8.13736 10.3466 8.13748 10.7423 7.89355 10.9863C7.64955 11.2302 7.25382 11.2301 7.00977 10.9863L4.64746 8.625C4.14313 8.12069 4.14331 7.30229 4.64746 6.79785L7.00977 4.43555Z"],"CloseBackArrowWallLeft/m/outline":["M2.11816 2.25293C2.46334 2.25293 2.74316 2.53275 2.74316 2.87793V12.5449C2.74279 12.8898 2.46311 13.1699 2.11816 13.1699C1.77333 13.1698 1.49354 12.8897 1.49316 12.5449V2.87793C1.49316 2.53283 1.7731 2.25306 2.11816 2.25293ZM7.00977 4.43555C7.25377 4.19178 7.64953 4.1918 7.89355 4.43555C8.13739 4.67964 8.13755 5.07631 7.89355 5.32031L6.12793 7.08594H14.4512C14.7963 7.08594 15.0762 7.36576 15.0762 7.71094C15.0761 8.05609 14.7963 8.33594 14.4512 8.33594H6.12598L7.89355 10.1025C8.13736 10.3466 8.13748 10.7423 7.89355 10.9863C7.64955 11.2302 7.25382 11.2301 7.00977 10.9863L4.64746 8.625C4.14313 8.12069 4.14331 7.30229 4.64746 6.79785L7.00977 4.43555Z"],"CloseBackArrowWallLeft/s/filled":["M1.58887 1.6582C1.86501 1.6582 2.08887 1.88206 2.08887 2.1582V9.4082C2.08887 9.68435 1.86501 9.9082 1.58887 9.9082C1.31272 9.9082 1.08887 9.68435 1.08887 9.4082V2.1582C1.08887 1.88206 1.31272 1.6582 1.58887 1.6582ZM5.23535 3.30469C5.43062 3.10948 5.74714 3.10944 5.94238 3.30469C6.13758 3.49994 6.13758 3.81647 5.94238 4.01172L4.6709 5.2832H10.8389C11.115 5.2832 11.3389 5.50706 11.3389 5.7832C11.3389 6.05935 11.115 6.2832 10.8389 6.2832H4.6709L5.94238 7.55469C6.13758 7.74994 6.13758 8.06647 5.94238 8.26172C5.74714 8.45696 5.43062 8.45693 5.23535 8.26172L3.46387 6.49023C3.07334 6.09972 3.07334 5.46669 3.46387 5.07617L5.23535 3.30469Z"],"CloseBackArrowWallLeft/s/outline":["M1.58887 1.6582C1.86501 1.6582 2.08887 1.88206 2.08887 2.1582V9.4082C2.08887 9.68435 1.86501 9.9082 1.58887 9.9082C1.31272 9.9082 1.08887 9.68435 1.08887 9.4082V2.1582C1.08887 1.88206 1.31272 1.6582 1.58887 1.6582ZM5.23535 3.30469C5.43062 3.10948 5.74714 3.10944 5.94238 3.30469C6.13758 3.49994 6.13758 3.81647 5.94238 4.01172L4.6709 5.2832H10.8389C11.115 5.2832 11.3389 5.50706 11.3389 5.7832C11.3389 6.05935 11.115 6.2832 10.8389 6.2832H4.6709L5.94238 7.55469C6.13758 7.74994 6.13758 8.06647 5.94238 8.26172C5.74714 8.45696 5.43062 8.45693 5.23535 8.26172L3.46387 6.49023C3.07334 6.09972 3.07334 5.46669 3.46387 5.07617L5.23535 3.30469Z"],"Cloud/l/filled":["M12 4C9.14244 4 6.68589 5.71209 5.59811 8.16478C2.96064 8.7963 1 11.1687 1 14C1 17.3137 3.68629 20 7 20H18C20.7614 20 23 17.7614 23 15C23 12.5602 21.2528 10.529 18.9412 10.0885C18.4942 6.65296 15.5571 4 12 4Z"],"Cloud/l/outline":["M0.75 14C0.75 11.0936 2.73325 8.65237 5.41992 7.95215C6.57064 5.47187 9.08346 3.75 12 3.75C15.6234 3.75 18.6236 6.40802 19.1621 9.88086C21.5024 10.4101 23.25 12.4998 23.25 15C23.25 17.8995 20.8995 20.25 18 20.25H7C3.54822 20.25 0.75 17.4518 0.75 14ZM2.25 14C2.25 16.6234 4.37664 18.75 7 18.75H18C20.0711 18.75 21.75 17.0711 21.75 15C21.75 13.0654 20.2843 11.4722 18.4033 11.2715C18.0425 11.2329 17.7615 10.941 17.7354 10.5791C17.5202 7.60034 15.034 5.25 12 5.25C9.5759 5.25 7.50079 6.7505 6.65527 8.87598C6.56066 9.11378 6.35092 9.28664 6.09961 9.33496C3.90697 9.75543 2.25 11.6852 2.25 14Z"],"Cloud/m/filled":["M7.99999 2.66669C6.09495 2.66669 4.45725 3.80808 3.73206 5.44321C1.97375 5.86422 0.666656 7.44582 0.666656 9.33335C0.666656 11.5425 2.45752 13.3334 4.66666 13.3334H12C13.8409 13.3334 15.3333 11.841 15.3333 10C15.3333 8.37349 14.1685 7.01935 12.6275 6.72569C12.3295 4.43533 10.3714 2.66669 7.99999 2.66669Z"],"Cloud/m/outline":["M0.375 9.33301C0.375147 7.35728 1.70966 5.6939 3.52637 5.19434C4.32462 3.52773 6.02677 2.375 8 2.375C10.4486 2.375 12.4814 4.14978 12.8848 6.4834C14.4594 6.87847 15.625 8.30297 15.625 10C15.625 12.002 14.002 13.625 12 13.625H4.66699C2.29677 13.625 0.375 11.7033 0.375 9.33301ZM1.625 9.33301C1.625 11.0129 2.98712 12.375 4.66699 12.375H12C13.3117 12.375 14.375 11.3117 14.375 10C14.375 8.77493 13.4469 7.76589 12.2559 7.63867C11.9553 7.60659 11.7202 7.36393 11.6982 7.0625C11.5597 5.14142 9.95676 3.625 8 3.625C6.43686 3.625 5.09813 4.59284 4.55273 5.96387C4.47379 6.16192 4.29926 6.30651 4.08984 6.34668C2.68597 6.61589 1.62516 7.85101 1.625 9.33301Z"],"Cloud/s/filled":["M6 2C4.57122 2 3.34295 2.85604 2.79906 4.08239C1.48032 4.39815 0.5 5.58435 0.5 7C0.5 8.65685 1.84315 10 3.5 10H9C10.3807 10 11.5 8.8807 11.5 7.5C11.5 6.2801 10.6264 5.2645 9.4706 5.04425C9.2471 3.32648 7.77855 2 6 2Z"],"Cloud/s/outline":["M0.25 7C0.25 5.50929 1.25314 4.2536 2.62109 3.87012C3.22713 2.61596 4.51219 1.75 6 1.75C7.84584 1.75 9.37926 3.08346 9.69141 4.83984C10.8754 5.14682 11.75 6.22007 11.75 7.5C11.75 9.01879 10.5188 10.25 9 10.25H3.5C1.70507 10.25 0.25 8.79494 0.25 7ZM1.25 7C1.25 8.24266 2.25736 9.25 3.5 9.25H9C9.96651 9.25 10.75 8.46651 10.75 7.5C10.75 6.5973 10.0661 5.85344 9.18848 5.75977C8.94794 5.73409 8.76061 5.54009 8.74316 5.29883C8.64039 3.87425 7.45106 2.75 6 2.75C4.84087 2.75 3.84784 3.46759 3.44336 4.48438C3.38021 4.64279 3.24073 4.75788 3.07324 4.79004C2.0347 4.98919 1.25 5.90366 1.25 7Z"],"CloudOffline/l/filled":["M2.46973 2.46979C2.76262 2.1769 3.23738 2.1769 3.53027 2.46979L7.68945 6.62897C7.69581 6.6349 7.70281 6.64136 7.70898 6.64752L21.5303 20.4698C21.8231 20.7627 21.8232 21.2374 21.5303 21.5303C21.2374 21.8232 20.7626 21.8232 20.4697 21.5303L18.8809 19.9415C18.6344 19.9799 18.3816 19.9991 18.125 19.9991H7C3.68629 19.9991 1 17.3128 1 13.9991C1.00015 11.1032 3.05143 8.68806 5.78027 8.12409C5.90484 7.82932 6.04953 7.54497 6.21289 7.2735L2.46973 3.53034C2.17685 3.23746 2.17687 2.76268 2.46973 2.46979Z","M12 4.00006C15.5726 4.00006 18.4969 6.77587 18.7344 10.2881C21.1392 10.5881 23 12.6391 23 15.1251C23 16.4248 22.4913 17.6056 21.6621 18.4796L8.29102 5.10944C9.3551 4.40833 10.6299 4.00007 12 4.00006Z"],"CloudOffline/l/outline":["M9.52521 5.28254C10.2797 4.94047 11.1176 4.75 12 4.75C15.3137 4.75 18 7.43629 18 10.75C18 10.8344 17.9983 10.9184 17.9948 11.002C18.038 11.0007 18.0814 11 18.125 11C20.4032 11 22.25 12.8468 22.25 15.125C22.25 15.9461 22.0101 16.7111 21.5966 17.3539M3 3L21 21M6.32647 8.7928C3.74507 9.12339 1.75 11.3287 1.75 14C1.75 16.8995 4.10051 19.25 7 19.25H18.125C18.4707 19.25 18.8065 19.2075 19.1274 19.1274L7.17838 7.17838C6.81719 7.66517 6.52798 8.20855 6.32647 8.7928Z"],"CloudOffline/m/filled":["M1.64648 1.64651C1.84174 1.45125 2.15826 1.45125 2.35352 1.64651L13.1055 12.3975C13.1096 12.4016 13.1132 12.406 13.1172 12.4102L14.3535 13.6465C14.5488 13.8418 14.5488 14.1583 14.3535 14.3535C14.1583 14.5488 13.8417 14.5488 13.6465 14.3535L12.5869 13.294C12.4226 13.3196 12.2541 13.333 12.083 13.333H4.66699C2.45789 13.333 0.667056 11.5421 0.666992 9.33303C0.666992 7.40236 2.03422 5.79203 3.85352 5.41604C3.93656 5.21952 4.03269 5.02963 4.1416 4.84865L1.64648 2.35354C1.45123 2.15828 1.45124 1.84177 1.64648 1.64651Z","M8 2.66701C10.3817 2.66701 12.3309 4.51693 12.4893 6.85842C14.0924 7.05834 15.3329 8.42583 15.333 10.083C15.333 10.9496 14.9943 11.7377 14.4414 12.3203L5.52734 3.40627C6.23674 2.93887 7.0866 2.66702 8 2.66701Z"],"CloudOffline/m/outline":["M1.56119 1.56152C1.80326 1.31945 2.196 1.31956 2.43814 1.56152L14.4381 13.5615C14.6803 13.8036 14.6803 14.1963 14.4381 14.4385C14.196 14.6804 13.8033 14.6805 13.5612 14.4385L12.5436 13.4209C12.3929 13.4415 12.2395 13.4531 12.0836 13.4531H4.66666C2.39125 13.4531 0.546539 11.6084 0.546539 9.333C0.546691 7.36608 1.92475 5.72172 3.76822 5.31152C3.83489 5.15961 3.91086 5.01287 3.99283 4.87011L1.56119 2.43847C1.31928 2.19639 1.31928 1.8036 1.56119 1.56152ZM14.2135 10.083C14.2134 8.90688 13.2598 7.95329 12.0836 7.95312C12.0613 7.95312 12.0383 7.95341 12.0153 7.9541C11.8432 7.95927 11.6764 7.89296 11.5553 7.7705C11.4344 7.64805 11.3694 7.48056 11.3766 7.30859C11.3786 7.26196 11.3795 7.21478 11.3795 7.16699C11.3795 5.30026 9.86638 3.7871 7.99966 3.7871C7.5016 3.78715 7.03014 3.89371 6.60611 4.08593C6.29425 4.22732 5.92719 4.0892 5.7858 3.77734C5.64453 3.46551 5.78259 3.09839 6.09439 2.95703C6.67607 2.69334 7.32157 2.54692 7.99966 2.54687C10.4114 2.54687 12.3905 4.39475 12.6003 6.75195C14.216 7.00061 15.4536 8.39767 15.4538 10.083C15.4538 10.7527 15.2575 11.3788 14.9196 11.9043C14.7343 12.1923 14.3501 12.2761 14.0622 12.0908C13.7742 11.9056 13.6914 11.5214 13.8766 11.2334C14.0897 10.902 14.2135 10.5077 14.2135 10.083ZM1.78677 9.333C1.78677 10.9236 3.07608 12.2129 4.66666 12.2129H11.3356L4.91275 5.79003C4.87279 5.8795 4.83556 5.97113 4.80338 6.06445C4.7264 6.28701 4.53014 6.44657 4.29654 6.47656C2.88119 6.65781 1.78694 7.86823 1.78677 9.333Z"],"CloudOffline/s/filled":["M1.23438 1.23489C1.38082 1.08845 1.61918 1.08845 1.76562 1.23489L3.84473 3.31497C3.84789 3.31792 3.85142 3.3207 3.85449 3.32376L10.7656 10.2349C10.9117 10.3813 10.9118 10.6188 10.7656 10.7652C10.6192 10.9116 10.3808 10.9116 10.2344 10.7652L9.44043 9.97025C9.31718 9.98945 9.1908 9.99954 9.0625 9.99954H3.5C1.84315 9.99954 0.5 8.65639 0.5 6.99954C0.500074 5.55174 1.52541 4.34417 2.88965 4.06204C2.95193 3.91466 3.02477 3.772 3.10645 3.63626L1.23438 1.76517C1.08824 1.61879 1.08827 1.38128 1.23438 1.23489Z","M6 1.99954C7.7863 1.99954 9.24844 3.38793 9.36719 5.14407C10.5694 5.29401 11.4998 6.31925 11.5 7.56204C11.5 8.21194 11.2456 8.80279 10.8311 9.23978L4.14551 2.55423C4.67754 2.2037 5.31497 1.99954 6 1.99954Z"],"CloudOffline/s/outline":["M1.14648 1.14651C1.34175 0.951245 1.65825 0.951246 1.85352 1.14651L10.8535 10.1465C11.0488 10.3418 11.0488 10.6583 10.8535 10.8535C10.6583 11.0488 10.3417 11.0488 10.1465 10.8535L9.39551 10.1026C9.2863 10.1168 9.17521 10.125 9.0625 10.125H3.5C1.77411 10.125 0.375 8.72592 0.375 7.00002C0.375 5.51397 1.41182 4.27051 2.80176 3.95315C2.84677 3.85203 2.89716 3.75396 2.95117 3.65823L1.14648 1.85354C0.951222 1.65828 0.951222 1.34177 1.14648 1.14651ZM10.625 7.56252C10.625 6.69957 9.92546 6.00002 9.0625 6.00002C9.04613 6.00002 9.02954 6.00049 9.0127 6.001C8.87391 6.00518 8.7392 5.95132 8.6416 5.85256C8.54412 5.7539 8.49235 5.61907 8.49805 5.48049C8.49949 5.44592 8.5 5.41051 8.5 5.37502C8.5 3.99431 7.38071 2.87502 6 2.87502C5.63141 2.87502 5.28242 2.95449 4.96875 3.0967C4.71734 3.21051 4.42163 3.09903 4.30762 2.84768C4.19363 2.59627 4.30435 2.29969 4.55566 2.18557C4.99648 1.98571 5.48619 1.87502 6 1.87502C7.81896 1.87502 9.31238 3.26274 9.48242 5.03713C10.6977 5.23769 11.625 6.29045 11.625 7.56252C11.625 8.07181 11.4758 8.54767 11.2188 8.94729C11.0694 9.17953 10.7596 9.24707 10.5273 9.09768C10.2953 8.94823 10.2286 8.63844 10.3779 8.40627C10.5343 8.16315 10.625 7.8742 10.625 7.56252ZM1.375 7.00002C1.375 8.17363 2.3264 9.12502 3.5 9.12502H8.41797L3.69629 4.40334C3.67463 4.45461 3.65399 4.50667 3.63574 4.55959C3.5737 4.73924 3.41509 4.86846 3.22656 4.8926C2.18232 5.02644 1.375 5.91924 1.375 7.00002Z"],"Code/l/filled":["M13.5267 3.55273C13.6357 3.15312 14.048 2.91738 14.4476 3.02636C14.847 3.13545 15.0828 3.5478 14.974 3.94726L10.474 20.4473C10.365 20.8467 9.95255 21.0823 9.55308 20.9736C9.15346 20.8646 8.91773 20.4523 9.02671 20.0527L13.5267 3.55273ZM5.20347 7.23632C5.48736 6.93469 5.96239 6.92021 6.26402 7.20409C6.56541 7.48792 6.57983 7.96207 6.29624 8.26366L3.58628 11.1435C3.13338 11.6248 3.13338 12.3751 3.58628 12.8564L6.29624 15.7363C6.57983 16.0379 6.56541 16.5121 6.26402 16.7959C5.96239 17.0798 5.48736 17.0653 5.20347 16.7637L2.49351 13.8848C1.49712 12.8259 1.49712 11.1741 2.49351 10.1152L5.20347 7.23632ZM17.7357 7.20409C18.0373 6.92021 18.5124 6.93469 18.7962 7.23632L21.5062 10.1152C22.5027 11.1741 22.5027 12.8259 21.5062 13.8848L18.7962 16.7637C18.5124 17.0653 18.0373 17.0798 17.7357 16.7959C17.4344 16.5121 17.42 16.0379 17.7035 15.7363L20.4134 12.8564C20.8664 12.3751 20.8664 11.6249 20.4134 11.1435L17.7035 8.26366C17.42 7.9621 17.4344 7.4879 17.7357 7.20409Z"],"Code/l/outline":["M13.5267 3.55273C13.6357 3.15312 14.048 2.91738 14.4476 3.02636C14.847 3.13545 15.0828 3.5478 14.974 3.94726L10.474 20.4473C10.365 20.8467 9.95255 21.0823 9.55308 20.9736C9.15346 20.8646 8.91773 20.4523 9.02671 20.0527L13.5267 3.55273ZM5.20347 7.23632C5.48736 6.93469 5.96239 6.92021 6.26402 7.20409C6.56541 7.48792 6.57983 7.96207 6.29624 8.26366L3.58628 11.1435C3.13338 11.6248 3.13338 12.3751 3.58628 12.8564L6.29624 15.7363C6.57983 16.0379 6.56541 16.5121 6.26402 16.7959C5.96239 17.0798 5.48736 17.0653 5.20347 16.7637L2.49351 13.8848C1.49712 12.8259 1.49712 11.1741 2.49351 10.1152L5.20347 7.23632ZM17.7357 7.20409C18.0373 6.92021 18.5124 6.93469 18.7962 7.23632L21.5062 10.1152C22.5027 11.1741 22.5027 12.8259 21.5062 13.8848L18.7962 16.7637C18.5124 17.0653 18.0373 17.0798 17.7357 16.7959C17.4344 16.5121 17.42 16.0379 17.7035 15.7363L20.4134 12.8564C20.8664 12.3751 20.8664 11.6249 20.4134 11.1435L17.7035 8.26366C17.42 7.9621 17.4344 7.4879 17.7357 7.20409Z"],"Code/m/filled":["M9.66428 1.89749C9.99718 1.98828 10.1934 2.33117 10.1028 2.66409L7.10275 13.6641C7.01193 13.9971 6.66819 14.1934 6.33518 14.1026C6.00255 14.0116 5.8062 13.6687 5.8967 13.336L8.8967 2.33597C8.98752 2.00295 9.33126 1.80667 9.66428 1.89749ZM3.37814 4.73831C3.61472 4.48696 4.01058 4.47537 4.26193 4.71194C4.51292 4.94852 4.52466 5.34351 4.2883 5.59475L2.48166 7.51468C2.22511 7.78738 2.22511 8.21267 2.48166 8.48538L4.2883 10.4053C4.52466 10.6566 4.51292 11.0515 4.26193 11.2881C4.01058 11.5247 3.61472 11.5131 3.37814 11.2617L1.5715 9.34182C0.862071 8.58783 0.86207 7.41222 1.5715 6.65823L3.37814 4.73831ZM11.7385 4.71194C11.9898 4.47544 12.3847 4.48717 12.6213 4.73831L14.4279 6.65823C15.1376 7.41229 15.1376 8.58777 14.4279 9.34182L12.6213 11.2617C12.3847 11.5129 11.9898 11.5246 11.7385 11.2881C11.4873 11.0516 11.4749 10.6567 11.7112 10.4053L13.5178 8.48538C13.7745 8.21264 13.7745 7.78742 13.5178 7.51468L11.7112 5.59475C11.4749 5.3434 11.4873 4.94842 11.7385 4.71194Z"],"Code/m/outline":["M9.66428 1.89749C9.99718 1.98828 10.1934 2.33117 10.1028 2.66409L7.10275 13.6641C7.01193 13.9971 6.66819 14.1934 6.33518 14.1026C6.00255 14.0116 5.8062 13.6687 5.8967 13.336L8.8967 2.33597C8.98752 2.00295 9.33126 1.80667 9.66428 1.89749ZM3.37814 4.73831C3.61472 4.48696 4.01058 4.47537 4.26193 4.71194C4.51292 4.94852 4.52466 5.34351 4.2883 5.59475L2.48166 7.51468C2.22511 7.78738 2.22511 8.21267 2.48166 8.48538L4.2883 10.4053C4.52466 10.6566 4.51292 11.0515 4.26193 11.2881C4.01058 11.5247 3.61472 11.5131 3.37814 11.2617L1.5715 9.34182C0.862071 8.58783 0.86207 7.41222 1.5715 6.65823L3.37814 4.73831ZM11.7385 4.71194C11.9898 4.47544 12.3847 4.48717 12.6213 4.73831L14.4279 6.65823C15.1376 7.41229 15.1376 8.58777 14.4279 9.34182L12.6213 11.2617C12.3847 11.5129 11.9898 11.5246 11.7385 11.2881C11.4873 11.0516 11.4749 10.6567 11.7112 10.4053L13.5178 8.48538C13.7745 8.21264 13.7745 7.78742 13.5178 7.51468L11.7112 5.59475C11.4749 5.3434 11.4873 4.94842 11.7385 4.71194Z"],"Code/s/filled":["M7.26968 1.34473C7.56262 1.42468 7.73525 1.72655 7.65542 2.01953L5.40542 10.2695C5.32552 10.5625 5.02358 10.735 4.73062 10.6553C4.43766 10.5754 4.26416 10.2734 4.3439 9.98047L6.5939 1.73047C6.67382 1.43741 6.97663 1.2648 7.26968 1.34473ZM2.47476 3.49805C2.68296 3.27701 3.03096 3.26648 3.2521 3.47461C3.47312 3.6828 3.48363 4.03081 3.27554 4.25195L1.92007 5.6914C1.75713 5.86464 1.75713 6.13535 1.92007 6.30859L3.27554 7.74805C3.48363 7.96919 3.47312 8.3172 3.2521 8.52539C3.03096 8.73352 2.68296 8.72299 2.47476 8.50195L1.11929 7.0625C0.557568 6.46567 0.557568 5.53433 1.11929 4.9375L2.47476 3.49805ZM8.74819 3.47461C8.96939 3.26647 9.31737 3.27686 9.52554 3.49805L10.88 4.9375C11.4418 5.53433 11.4418 6.46567 10.88 7.0625L9.52554 8.50195C9.31737 8.72313 8.96939 8.73353 8.74819 8.52539C8.527 8.31721 8.51657 7.96924 8.72476 7.74805L10.0792 6.30859C10.2423 6.13532 10.2423 5.86468 10.0792 5.6914L8.72476 4.25195C8.51657 4.03076 8.527 3.68279 8.74819 3.47461Z"],"Code/s/outline":["M7.25699 1.39256C7.52313 1.46539 7.68019 1.74055 7.60757 2.00681L5.35757 10.2568C5.28483 10.5231 5.00966 10.68 4.74331 10.6074C4.47694 10.5347 4.32008 10.2595 4.39273 9.99314L6.64273 1.74314C6.71551 1.47691 6.99067 1.31993 7.25699 1.39256ZM2.51089 3.5322C2.70016 3.33119 3.01686 3.32149 3.21792 3.51072C3.41889 3.69994 3.42851 4.01668 3.23941 4.21775L1.88394 5.6572C1.70277 5.84972 1.70277 6.15023 1.88394 6.34275L3.23941 7.7822C3.42851 7.98327 3.41889 8.30001 3.21792 8.48924C3.01686 8.67847 2.70016 8.66877 2.51089 8.46775L1.15542 7.0283C0.611929 6.45075 0.611929 5.54921 1.15542 4.97166L2.51089 3.5322ZM8.78238 3.51072C8.98347 3.3216 9.30019 3.33116 9.48941 3.5322L10.8439 4.97166C11.3875 5.54923 11.3875 6.45072 10.8439 7.0283L9.48941 8.46775C9.30019 8.66879 8.98347 8.67836 8.78238 8.48924C8.58129 8.29998 8.57164 7.98329 8.76089 7.7822L10.1154 6.34275C10.2966 6.15023 10.2966 5.84973 10.1154 5.6572L8.76089 4.21775C8.57164 4.01666 8.58129 3.69998 8.78238 3.51072Z"],"CollapseMinimizeArrows45/l/filled":["M10.3125 13C10.7267 13 11.0625 13.3358 11.0625 13.75V20.25C11.0625 20.6642 10.7267 21 10.3125 21C9.89829 21 9.5625 20.6642 9.5625 20.25V15.5605L4.34277 20.7803C4.04988 21.0732 3.57512 21.0732 3.28223 20.7803C2.98933 20.4874 2.98933 20.0126 3.28223 19.7197L8.50195 14.5H3.8125C3.39829 14.5 3.0625 14.1642 3.0625 13.75C3.0625 13.3358 3.39829 13 3.8125 13H10.3125Z","M19.7822 3.21973C20.0751 2.92683 20.5499 2.92683 20.8428 3.21973C21.1357 3.51262 21.1357 3.98738 20.8428 4.28027L15.623 9.5H20.3125C20.7267 9.5 21.0625 9.83579 21.0625 10.25C21.0625 10.6642 20.7267 11 20.3125 11H13.8125C13.3983 11 13.0625 10.6642 13.0625 10.25V3.75C13.0625 3.33579 13.3983 3 13.8125 3C14.2267 3 14.5625 3.33579 14.5625 3.75V8.43945L19.7822 3.21973Z"],"CollapseMinimizeArrows45/l/outline":["M10.3125 13C10.7267 13 11.0625 13.3358 11.0625 13.75V20.25C11.0625 20.6642 10.7267 21 10.3125 21C9.89829 21 9.5625 20.6642 9.5625 20.25V15.5605L4.34277 20.7803C4.04988 21.0732 3.57512 21.0732 3.28223 20.7803C2.98933 20.4874 2.98933 20.0126 3.28223 19.7197L8.50195 14.5H3.8125C3.39829 14.5 3.0625 14.1642 3.0625 13.75C3.0625 13.3358 3.39829 13 3.8125 13H10.3125Z","M19.7822 3.21973C20.0751 2.92683 20.5499 2.92683 20.8428 3.21973C21.1357 3.51262 21.1357 3.98738 20.8428 4.28027L15.623 9.5H20.3125C20.7267 9.5 21.0625 9.83579 21.0625 10.25C21.0625 10.6642 20.7267 11 20.3125 11H13.8125C13.3983 11 13.0625 10.6642 13.0625 10.25V3.75C13.0625 3.33579 13.3983 3 13.8125 3C14.2267 3 14.5625 3.33579 14.5625 3.75V8.43945L19.7822 3.21973Z"],"CollapseMinimizeArrows45/m/filled":["M6.87481 8.54189C7.21993 8.54195 7.49981 8.82175 7.49981 9.16689V13.4999C7.49969 13.8449 7.21986 14.1248 6.87481 14.1249C6.52985 14.1247 6.24992 13.8449 6.24981 13.4999V10.6767L2.98418 13.9423C2.74015 14.1862 2.34349 14.1862 2.09942 13.9423C1.85563 13.6983 1.85577 13.3025 2.09942 13.0585L5.36602 9.79189H2.5418C2.19669 9.79189 1.91691 9.51196 1.9168 9.16689C1.9168 8.82171 2.19662 8.54189 2.5418 8.54189H6.87481Z","M13.1004 2.05751C13.3445 1.81411 13.7403 1.81381 13.9842 2.05751C14.228 2.3015 14.2279 2.69823 13.9842 2.94228L10.7186 6.2079H13.5418C13.8866 6.20816 14.1666 6.48809 14.1668 6.8329C14.1668 7.17792 13.8868 7.45764 13.5418 7.4579H9.20879C8.86361 7.4579 8.58379 7.17808 8.58379 6.8329V2.49989C8.58386 2.15477 8.86365 1.87489 9.20879 1.87489C9.55371 1.87515 9.83372 2.15493 9.83379 2.49989V5.32411L13.1004 2.05751Z"],"CollapseMinimizeArrows45/m/outline":["M6.87481 8.54189C7.21993 8.54195 7.49981 8.82175 7.49981 9.16689V13.4999C7.49969 13.8449 7.21986 14.1248 6.87481 14.1249C6.52985 14.1247 6.24992 13.8449 6.24981 13.4999V10.6767L2.98418 13.9423C2.74015 14.1862 2.34349 14.1862 2.09942 13.9423C1.85563 13.6983 1.85577 13.3025 2.09942 13.0585L5.36602 9.79189H2.5418C2.19669 9.79189 1.91691 9.51196 1.9168 9.16689C1.9168 8.82171 2.19662 8.54189 2.5418 8.54189H6.87481Z","M13.1004 2.05751C13.3445 1.81411 13.7403 1.81381 13.9842 2.05751C14.228 2.3015 14.2279 2.69823 13.9842 2.94228L10.7186 6.2079H13.5418C13.8866 6.20816 14.1666 6.48809 14.1668 6.8329C14.1668 7.17792 13.8868 7.45764 13.5418 7.4579H9.20879C8.86361 7.4579 8.58379 7.17808 8.58379 6.8329V2.49989C8.58386 2.15477 8.86365 1.87489 9.20879 1.87489C9.55371 1.87515 9.83372 2.15493 9.83379 2.49989V5.32411L13.1004 2.05751Z"],"CollapseMinimizeArrows45/s/filled":["M5.15625 6.375C5.43239 6.375 5.65625 6.59886 5.65625 6.875V10.125C5.65625 10.4011 5.43239 10.625 5.15625 10.625C4.88011 10.625 4.65625 10.4011 4.65625 10.125V8.08203L2.25977 10.4785C2.0645 10.6738 1.748 10.6738 1.55273 10.4785C1.35747 10.2833 1.35747 9.96675 1.55273 9.77148L3.94922 7.375H1.90625C1.63011 7.375 1.40625 7.15114 1.40625 6.875C1.40625 6.59886 1.63011 6.375 1.90625 6.375H5.15625Z","M9.80273 1.52148C9.998 1.32622 10.3145 1.32622 10.5098 1.52148C10.705 1.71675 10.705 2.03325 10.5098 2.22852L8.11328 4.625H10.1562C10.4324 4.625 10.6562 4.84886 10.6562 5.125C10.6562 5.40114 10.4324 5.625 10.1562 5.625H6.90625C6.63011 5.625 6.40625 5.40114 6.40625 5.125V1.875C6.40625 1.59886 6.63011 1.375 6.90625 1.375C7.18239 1.375 7.40625 1.59886 7.40625 1.875V3.91797L9.80273 1.52148Z"],"CollapseMinimizeArrows45/s/outline":["M5.15625 6.375C5.43239 6.375 5.65625 6.59886 5.65625 6.875V10.125C5.65625 10.4011 5.43239 10.625 5.15625 10.625C4.88011 10.625 4.65625 10.4011 4.65625 10.125V8.08203L2.25977 10.4785C2.0645 10.6738 1.748 10.6738 1.55273 10.4785C1.35747 10.2833 1.35747 9.96675 1.55273 9.77148L3.94922 7.375H1.90625C1.63011 7.375 1.40625 7.15114 1.40625 6.875C1.40625 6.59886 1.63011 6.375 1.90625 6.375H5.15625Z","M9.80273 1.52148C9.998 1.32622 10.3145 1.32622 10.5098 1.52148C10.705 1.71675 10.705 2.03325 10.5098 2.22852L8.11328 4.625H10.1562C10.4324 4.625 10.6562 4.84886 10.6562 5.125C10.6562 5.40114 10.4324 5.625 10.1562 5.625H6.90625C6.63011 5.625 6.40625 5.40114 6.40625 5.125V1.875C6.40625 1.59886 6.63011 1.375 6.90625 1.375C7.18239 1.375 7.40625 1.59886 7.40625 1.875V3.91797L9.80273 1.52148Z"],"ConsoleTerminal/l/filled":["M2.96338 5.94128C2.96338 4.4225 4.1946 3.19128 5.71338 3.19128H18.2134C19.7322 3.19128 20.9634 4.4225 20.9634 5.94128V18.4413C20.9634 19.9601 19.7322 21.1913 18.2134 21.1913H5.71338C4.1946 21.1913 2.96338 19.9601 2.96338 18.4413V5.94128ZM6.68305 7.41095C6.97594 7.11806 7.45082 7.11806 7.74371 7.41095L9.49371 9.16095C9.7866 9.45384 9.7866 9.92872 9.49371 10.2216L7.74371 11.9716C7.45082 12.2645 6.97594 12.2645 6.68305 11.9716C6.39016 11.6787 6.39016 11.2039 6.68305 10.911L7.90272 9.69128L6.68305 8.47161C6.39016 8.17872 6.39016 7.70384 6.68305 7.41095ZM10.7134 10.6913C10.2992 10.6913 9.96338 11.0271 9.96338 11.4413C9.96338 11.8555 10.2992 12.1913 10.7134 12.1913H12.7134C13.1276 12.1913 13.4634 11.8555 13.4634 11.4413C13.4634 11.0271 13.1276 10.6913 12.7134 10.6913H10.7134Z"],"ConsoleTerminal/l/outline":["M19.4634 5.94128C19.4634 5.25092 18.9038 4.69128 18.2134 4.69128H5.71338C5.02302 4.69128 4.46338 5.25093 4.46338 5.94128V18.4413C4.46338 19.1317 5.02302 19.6913 5.71338 19.6913H18.2134C18.9038 19.6913 19.4634 19.1317 19.4634 18.4413V5.94128ZM6.68311 7.41101C6.976 7.11812 7.45076 7.11812 7.74365 7.41101L9.49365 9.16101C9.78655 9.4539 9.78655 9.92866 9.49365 10.2216L7.74365 11.9716C7.45076 12.2645 6.976 12.2645 6.68311 11.9716C6.39021 11.6787 6.39021 11.2039 6.68311 10.911L7.90283 9.69128L6.68311 8.47156C6.39021 8.17866 6.39021 7.7039 6.68311 7.41101ZM12.7134 10.6913C13.1276 10.6913 13.4634 11.0271 13.4634 11.4413C13.4634 11.8555 13.1276 12.1913 12.7134 12.1913H10.7134C10.2992 12.1913 9.96338 11.8555 9.96338 11.4413C9.96338 11.0271 10.2992 10.6913 10.7134 10.6913H12.7134ZM20.9634 18.4413C20.9634 19.9601 19.7322 21.1913 18.2134 21.1913H5.71338C4.1946 21.1913 2.96338 19.9601 2.96338 18.4413V5.94128C2.96338 4.4225 4.1946 3.19128 5.71338 3.19128H18.2134C19.7322 3.19128 20.9634 4.42251 20.9634 5.94128V18.4413Z"],"ConsoleTerminal/m/filled":["M1.97559 3.96084C1.97559 2.94832 2.7964 2.1275 3.80892 2.1275H12.1423C13.1548 2.1275 13.9756 2.94832 13.9756 3.96084V12.2942C13.9756 13.3067 13.1548 14.1275 12.1423 14.1275H3.80892C2.7964 14.1275 1.97559 13.3067 1.97559 12.2942V3.96084ZM4.45537 4.94062C4.65063 4.74536 4.96721 4.74536 5.16247 4.94062L6.32914 6.10728C6.5244 6.30254 6.5244 6.61913 6.32914 6.81437L5.16247 7.98104C4.96721 8.1763 4.65063 8.1763 4.45537 7.98104C4.26011 7.78577 4.26011 7.46924 4.45537 7.27397L5.26848 6.46084L4.45537 5.64772C4.26011 5.45246 4.26011 5.13588 4.45537 4.94062ZM7.14225 7.1275C6.86612 7.1275 6.64225 7.35137 6.64225 7.6275C6.64225 7.90364 6.86612 8.1275 7.14225 8.1275H8.47559C8.75172 8.1275 8.97559 7.90364 8.97559 7.6275C8.97559 7.35137 8.75172 7.1275 8.47559 7.1275H7.14225Z"],"ConsoleTerminal/m/outline":["M12.8506 3.96051C12.8504 3.56956 12.5335 3.25268 12.1426 3.2525H3.80859C3.41765 3.25268 3.10076 3.56957 3.10059 3.96051V12.2945C3.10076 12.6855 3.41764 13.0023 3.80859 13.0025H12.1426C12.5335 13.0023 12.8504 12.6855 12.8506 12.2945V3.96051ZM4.36719 4.85211C4.61128 4.6082 5.00695 4.60809 5.25098 4.85211L6.41797 6.0191C6.66167 6.26315 6.66178 6.65891 6.41797 6.90289L5.25098 8.06989C5.00699 8.31369 4.61124 8.31358 4.36719 8.06989C4.12311 7.82581 4.12311 7.4292 4.36719 7.18512L5.09082 6.46051L4.36719 5.7359C4.12311 5.49182 4.12311 5.09619 4.36719 4.85211ZM8.47559 7.0025C8.82076 7.0025 9.10059 7.28232 9.10059 7.6275C9.10059 7.97268 8.82076 8.2525 8.47559 8.2525H7.14258C6.7974 8.2525 6.51758 7.97268 6.51758 7.6275C6.51758 7.28232 6.7974 7.0025 7.14258 7.0025H8.47559ZM14.1006 12.2945C14.1004 13.3758 13.2239 14.2523 12.1426 14.2525H3.80859C2.7273 14.2523 1.85076 13.3758 1.85059 12.2945V3.96051C1.85076 2.87921 2.72729 2.00268 3.80859 2.0025H12.1426C13.2239 2.00268 14.1004 2.87922 14.1006 3.96051V12.2945Z"],"ConsoleTerminal/s/filled":["M1.48169 2.97064C1.48169 2.21125 2.0973 1.59564 2.85669 1.59564H9.10669C9.86609 1.59564 10.4817 2.21125 10.4817 2.97064V9.22064C10.4817 9.98004 9.86609 10.5956 9.10669 10.5956H2.85669C2.0973 10.5956 1.48169 9.98004 1.48169 9.22064V2.97064ZM3.34152 3.70548C3.48797 3.55903 3.72541 3.55903 3.87185 3.70548L4.74685 4.58048C4.8933 4.72692 4.8933 4.96436 4.74685 5.11079L3.87185 5.98579C3.72541 6.13224 3.48797 6.13224 3.34152 5.98579C3.19508 5.83934 3.19508 5.60194 3.34152 5.45549L3.95136 4.84564L3.34152 4.23581C3.19508 4.08936 3.19508 3.85192 3.34152 3.70548ZM5.35669 5.34564C5.14959 5.34564 4.98169 5.51354 4.98169 5.72064C4.98169 5.92774 5.14959 6.09564 5.35669 6.09564H6.35669C6.56379 6.09564 6.73169 5.92774 6.73169 5.72064C6.73169 5.51354 6.56379 5.34564 6.35669 5.34564H5.35669Z"],"ConsoleTerminal/s/outline":["M9.75 2.75C9.75 2.47385 9.52615 2.25 9.25 2.25H2.75C2.47386 2.25 2.25 2.47386 2.25 2.75V9.25C2.25 9.52615 2.47385 9.75 2.75 9.75H9.25C9.52616 9.75 9.75 9.52616 9.75 9.25V2.75ZM2.89648 3.39648C3.09175 3.20122 3.40825 3.20122 3.60352 3.39648L4.42676 4.21973C4.71963 4.51261 4.71963 4.98739 4.42676 5.28027L3.60352 6.10352C3.40825 6.29878 3.09175 6.29878 2.89648 6.10352C2.70122 5.90825 2.70122 5.59175 2.89648 5.39648L3.54297 4.75L2.89648 4.10352C2.70122 3.90825 2.70122 3.59175 2.89648 3.39648ZM5.75 5.25C6.02614 5.25 6.25 5.47386 6.25 5.75C6.25 6.02614 6.02614 6.25 5.75 6.25H4.75C4.47386 6.25 4.25 6.02614 4.25 5.75C4.25 5.47386 4.47386 5.25 4.75 5.25H5.75ZM10.75 9.25C10.75 10.0784 10.0784 10.75 9.25 10.75H2.75C1.92158 10.75 1.25 10.0784 1.25 9.25V2.75C1.25 1.92157 1.92157 1.25 2.75 1.25H9.25C10.0784 1.25 10.75 1.92158 10.75 2.75V9.25Z"],"CopySquareBehind/l/filled":["M6.60168 6.16296C6.60168 4.64418 7.8329 3.41296 9.35168 3.41296H17.8517C19.3705 3.41296 20.6017 4.64418 20.6017 6.16296V14.673C20.6017 16.1918 19.3705 17.423 17.8517 17.423H16.6017V18.663C16.6017 20.1818 15.3705 21.413 13.8517 21.413H5.35168C3.8329 21.413 2.60168 20.1818 2.60168 18.663V10.163C2.60168 8.64418 3.8329 7.41296 5.35168 7.41296H6.60168V6.16296ZM16.6017 15.923V10.163C16.6017 8.64418 15.3705 7.41296 13.8517 7.41296H8.10168V6.16296C8.10168 5.4726 8.66132 4.91296 9.35168 4.91296H17.8517C18.5421 4.91296 19.1017 5.4726 19.1017 6.16296V14.673C19.1017 15.3634 18.5421 15.923 17.8517 15.923H16.6017Z"],"CopySquareBehind/l/outline":["M17.8516 3.41309C19.3704 3.41309 20.6016 4.64431 20.6016 6.16309V14.6729C20.6015 16.1916 19.3703 17.4229 17.8516 17.4229H16.6016V18.6631C16.6015 20.1818 15.3703 21.4131 13.8516 21.4131H5.35156C3.83288 21.413 2.60163 20.1818 2.60156 18.6631V10.1631C2.60156 8.64434 3.83284 7.41315 5.35156 7.41309H6.60156V6.16309C6.60156 4.64434 7.83284 3.41315 9.35156 3.41309H17.8516ZM5.35156 8.91309C4.66126 8.91315 4.10156 9.47277 4.10156 10.1631V18.6631C4.10163 19.3534 4.6613 19.913 5.35156 19.9131H13.8516C14.5419 19.9131 15.1015 19.3534 15.1016 18.6631V10.1631C15.1016 9.47272 14.5419 8.91309 13.8516 8.91309H5.35156ZM9.35156 4.91309C8.66126 4.91315 8.10156 5.47277 8.10156 6.16309V7.41309H13.8516C15.3704 7.41309 16.6016 8.64431 16.6016 10.1631V15.9229H17.8516C18.5419 15.9229 19.1015 15.3632 19.1016 14.6729V6.16309C19.1016 5.47272 18.5419 4.91309 17.8516 4.91309H9.35156Z"],"CopySquareBehind/m/filled":["M4.4011 4.10866C4.4011 3.09614 5.22192 2.27533 6.23444 2.27533H11.9011C12.9136 2.27533 13.7344 3.09614 13.7344 4.10866V9.782C13.7344 10.7945 12.9136 11.6153 11.9011 11.6153H11.0678V12.442C11.0678 13.4545 10.247 14.2753 9.23444 14.2753H3.56777C2.55525 14.2753 1.73444 13.4545 1.73444 12.442V6.77533C1.73444 5.76281 2.55525 4.942 3.56777 4.942H4.4011V4.10866ZM11.0678 10.6153V6.77533C11.0678 5.76281 10.247 4.942 9.23444 4.942H5.4011V4.10866C5.4011 3.64842 5.7742 3.27533 6.23444 3.27533H11.9011C12.3614 3.27533 12.7344 3.64842 12.7344 4.10866V9.782C12.7344 10.2423 12.3614 10.6153 11.9011 10.6153H11.0678Z"],"CopySquareBehind/m/outline":["M11.9014 2.15039C12.9827 2.15057 13.8592 3.0271 13.8594 4.1084V9.78223C13.8593 10.8636 12.9827 11.7401 11.9014 11.7402H11.1924V12.4424C11.1922 13.5238 10.3158 14.4004 9.23438 14.4004H3.56738C2.48617 14.4001 1.60958 13.5236 1.60938 12.4424V6.77539C1.60938 5.69398 2.48603 4.81762 3.56738 4.81738H4.27637V4.1084C4.27654 3.02703 5.15298 2.15046 6.23438 2.15039H11.9014ZM3.56738 6.06738C3.17639 6.06762 2.85938 6.38434 2.85938 6.77539V12.4424C2.85958 12.8333 3.17651 13.1501 3.56738 13.1504H9.23438C9.62547 13.1504 9.94217 12.8334 9.94238 12.4424V6.77539C9.94238 6.38418 9.62559 6.06738 9.23438 6.06738H3.56738ZM6.23438 3.40039C5.84334 3.40046 5.52654 3.71739 5.52637 4.1084V4.81738H9.23438C10.316 4.81738 11.1924 5.69384 11.1924 6.77539V10.4902H11.9014C12.2924 10.4901 12.6093 10.1732 12.6094 9.78223V4.1084C12.6092 3.71745 12.2923 3.40057 11.9014 3.40039H6.23438Z"],"CopySquareBehind/s/filled":["M3.30084 3.08148C3.30084 2.32209 3.91645 1.70648 4.67584 1.70648H8.92584C9.68524 1.70648 10.3008 2.32209 10.3008 3.08148V7.33648C10.3008 8.09588 9.68524 8.71148 8.92584 8.71148H8.30084V9.33148C8.30084 10.0909 7.68524 10.7065 6.92584 10.7065H2.67584C1.91645 10.7065 1.30084 10.0909 1.30084 9.33148V5.08148C1.30084 4.32209 1.91645 3.70648 2.67584 3.70648H3.30084V3.08148ZM8.30084 7.96148V5.08148C8.30084 4.32209 7.68524 3.70648 6.92584 3.70648H4.05084V3.08148C4.05084 2.7363 4.33066 2.45648 4.67584 2.45648H8.92584C9.27104 2.45648 9.55084 2.7363 9.55084 3.08148V7.33648C9.55084 7.68168 9.27104 7.96148 8.92584 7.96148H8.30084Z"],"CopySquareBehind/s/outline":["M7.42584 5.08148C7.42584 4.80533 7.20199 4.58148 6.92584 4.58148H2.67584C2.3997 4.58148 2.17584 4.80534 2.17584 5.08148V9.33148C2.17584 9.60763 2.39969 9.83148 2.67584 9.83148H6.92584C7.202 9.83148 7.42584 9.60764 7.42584 9.33148V5.08148ZM8.42584 7.83636H8.92584C9.202 7.83636 9.42584 7.61252 9.42584 7.33636V3.08148C9.42584 2.80533 9.20199 2.58148 8.92584 2.58148H4.67584C4.3997 2.58148 4.17584 2.80534 4.17584 3.08148V3.58148H6.92584C7.75429 3.58148 8.42584 4.25306 8.42584 5.08148V7.83636ZM10.4258 7.33636C10.4258 8.16481 9.75428 8.83636 8.92584 8.83636H8.42584V9.33148C8.42584 10.1599 7.75428 10.8315 6.92584 10.8315H2.67584C1.84742 10.8315 1.17584 10.1599 1.17584 9.33148V5.08148C1.17584 4.25305 1.84741 3.58148 2.67584 3.58148H3.17584V3.08148C3.17584 2.25305 3.84741 1.58148 4.67584 1.58148H8.92584C9.75429 1.58148 10.4258 2.25306 10.4258 3.08148V7.33636Z"],"Cursor/l/filled":["M4.97896 2.74473C3.59074 2.25247 2.25247 3.59074 2.74473 4.97896L8.35702 20.8063C8.89212 22.3153 11.005 22.3729 11.6215 20.8952L14.3118 14.4463C14.3371 14.3855 14.3855 14.3371 14.4463 14.3118L20.8952 11.6215C22.3729 11.005 22.3153 8.89213 20.8063 8.35702L4.97896 2.74473Z"],"Cursor/l/outline":["M2.74466 4.97854C2.2524 3.59032 3.59081 2.25191 4.97903 2.74417L20.8062 8.35647C22.3152 8.89158 22.3727 11.0046 20.895 11.6211L14.4458 14.3116C14.3854 14.3369 14.3373 14.3849 14.312 14.4453L11.6216 20.8946C11.0051 22.3722 8.89207 22.3148 8.35696 20.8057L2.74466 4.97854ZM4.47805 4.15823C4.27974 4.08791 4.0884 4.27925 4.15872 4.47757L9.77102 20.3047C9.84758 20.5198 10.1486 20.5281 10.2368 20.3174L12.9273 13.8682C13.1048 13.4426 13.4431 13.1043 13.8687 12.9268L20.3179 10.2364C20.5286 10.1481 20.5203 9.84709 20.3052 9.77054L4.47805 4.15823Z"],"Cursor/m/filled":["M3.31932 1.82984C2.39384 1.50166 1.50166 2.39384 1.82984 3.31932L5.57136 13.8709C5.9281 14.8769 7.33668 14.9153 7.74768 13.9302L9.54122 9.63088C9.55808 9.59035 9.59035 9.55808 9.63088 9.54122L13.9302 7.74768C14.9153 7.33668 14.8769 5.9281 13.8709 5.57136L3.31932 1.82984Z"],"Cursor/m/outline":["M1.71157 3.36068C1.34844 2.33617 2.33647 1.34814 3.36099 1.71127L13.9127 5.45346C15.0264 5.84855 15.0687 7.40763 13.9782 7.86264L9.67935 9.65658H9.67837C9.66871 9.66076 9.66106 9.6684 9.65689 9.67807V9.67904L7.86294 13.9779C7.40794 15.0684 5.84885 15.0261 5.45376 13.9124L1.71157 3.36068ZM2.92056 2.88705C2.91593 2.88825 2.9081 2.8917 2.90005 2.89974C2.892 2.90779 2.88856 2.91562 2.88735 2.92025C2.88685 2.9223 2.88627 2.92467 2.88638 2.92709C2.88651 2.92945 2.88737 2.93443 2.89028 2.94271L6.6315 13.4945C6.63532 13.5053 6.63911 13.5105 6.64028 13.512C6.64147 13.5135 6.64289 13.5141 6.64419 13.515C6.64758 13.5173 6.65605 13.5214 6.66958 13.5218C6.68315 13.5222 6.69238 13.5191 6.69595 13.5169C6.69739 13.5161 6.69847 13.5146 6.69985 13.513C6.7012 13.5114 6.70532 13.5067 6.70962 13.4964L8.50259 9.1976C8.63359 8.8834 8.8837 8.63329 9.1979 8.50228L13.4967 6.70932C13.507 6.70502 13.5117 6.7009 13.5133 6.69955C13.5149 6.69817 13.5164 6.69708 13.5172 6.69564C13.5194 6.69208 13.5225 6.68285 13.5221 6.66928C13.5217 6.65574 13.5176 6.64727 13.5153 6.64389C13.5144 6.64258 13.5139 6.64117 13.5124 6.63998C13.5108 6.63881 13.5056 6.63502 13.4948 6.63119L2.94302 2.88998C2.93474 2.88706 2.92975 2.8862 2.92739 2.88607C2.92498 2.88596 2.9226 2.88654 2.92056 2.88705Z"],"Cursor/s/filled":["M2.48948 1.37236C1.79537 1.12623 1.12623 1.79537 1.37236 2.48948L4.17851 10.4031C4.44606 11.1576 5.5025 11.1864 5.81075 10.4476L7.1559 7.22315C7.16855 7.19275 7.19275 7.16855 7.22315 7.1559L10.4476 5.81075C11.1864 5.5025 11.1576 4.44606 10.4031 4.17851L2.48948 1.37236Z"],"Cursor/s/outline":["M1.25463 2.53075C0.973534 1.7376 1.73785 0.97329 2.53099 1.25438L10.4451 4.06005C11.3074 4.36584 11.3402 5.57398 10.4958 5.92626L7.27123 7.27098L5.9265 10.4956C5.57422 11.3399 4.36609 11.3071 4.06029 10.4448L1.25463 2.53075ZM5.00365 10.1108L6.34838 6.88622C6.4498 6.64297 6.64321 6.44955 6.88646 6.34813L10.1111 5.00341L2.19701 2.19676L5.00365 10.1108Z"],"DotGrid3DotsVerticalTight/l/filled":["M12.0176 17.1807C13.122 17.1807 14.0175 18.0762 14.0176 19.1807C14.0176 20.2852 13.1221 21.1806 12.0176 21.1807C10.913 21.1807 10.0176 20.2852 10.0176 19.1807C10.0177 18.0762 10.9131 17.1807 12.0176 17.1807Z","M12.0176 10.1807C13.122 10.1807 14.0175 11.0762 14.0176 12.1807C14.0176 13.2852 13.1221 14.1806 12.0176 14.1807C10.913 14.1807 10.0176 13.2852 10.0176 12.1807C10.0177 11.0762 10.9131 10.1807 12.0176 10.1807Z","M12.0176 3.18066C13.122 3.18073 14.0175 4.07622 14.0176 5.18066C14.0176 6.28519 13.1221 7.1806 12.0176 7.18066C10.913 7.18066 10.0176 6.28523 10.0176 5.18066C10.0177 4.07618 10.9131 3.18066 12.0176 3.18066Z"],"DotGrid3DotsVerticalTight/l/outline":["M12.0176 17.1807C13.122 17.1807 14.0175 18.0762 14.0176 19.1807C14.0176 20.2852 13.1221 21.1806 12.0176 21.1807C10.913 21.1807 10.0176 20.2852 10.0176 19.1807C10.0177 18.0762 10.9131 17.1807 12.0176 17.1807Z","M12.0176 10.1807C13.122 10.1807 14.0175 11.0762 14.0176 12.1807C14.0176 13.2852 13.1221 14.1806 12.0176 14.1807C10.913 14.1807 10.0176 13.2852 10.0176 12.1807C10.0177 11.0762 10.9131 10.1807 12.0176 10.1807Z","M12.0176 3.18066C13.122 3.18073 14.0175 4.07622 14.0176 5.18066C14.0176 6.28519 13.1221 7.1806 12.0176 7.18066C10.913 7.18066 10.0176 6.28523 10.0176 5.18066C10.0177 4.07618 10.9131 3.18066 12.0176 3.18066Z"],"DotGrid3DotsVerticalTight/m/filled":["M8.01174 11.4538C8.74804 11.4538 9.34501 12.0508 9.34507 12.7871C9.34507 13.5234 8.74808 14.1204 8.01174 14.1204C7.27536 14.1204 6.67841 13.5235 6.67841 12.7871C6.67847 12.0508 7.2754 11.4538 8.01174 11.4538Z","M8.01174 6.78709C8.74804 6.78713 9.34501 7.38413 9.34507 8.12042C9.34507 8.85678 8.74808 9.45371 8.01174 9.45376C7.27536 9.45376 6.67841 8.8568 6.67841 8.12042C6.67847 7.3841 7.2754 6.78709 8.01174 6.78709Z","M8.01174 2.12042C8.74804 2.12047 9.34501 2.71746 9.34507 3.45376C9.34507 4.19011 8.74808 4.78705 8.01174 4.78709C7.27536 4.78709 6.67841 4.19014 6.67841 3.45376C6.67847 2.71743 7.2754 2.12042 8.01174 2.12042Z"],"DotGrid3DotsVerticalTight/m/outline":["M8.01174 11.4538C8.74804 11.4538 9.34501 12.0508 9.34507 12.7871C9.34507 13.5234 8.74808 14.1204 8.01174 14.1204C7.27536 14.1204 6.67841 13.5235 6.67841 12.7871C6.67847 12.0508 7.2754 11.4538 8.01174 11.4538Z","M8.01174 6.78709C8.74804 6.78713 9.34501 7.38413 9.34507 8.12042C9.34507 8.85678 8.74808 9.45371 8.01174 9.45376C7.27536 9.45376 6.67841 8.8568 6.67841 8.12042C6.67847 7.3841 7.2754 6.78709 8.01174 6.78709Z","M8.01174 2.12042C8.74804 2.12047 9.34501 2.71746 9.34507 3.45376C9.34507 4.19011 8.74808 4.78705 8.01174 4.78709C7.27536 4.78709 6.67841 4.19014 6.67841 3.45376C6.67847 2.71743 7.2754 2.12042 8.01174 2.12042Z"],"DotGrid3DotsVerticalTight/s/filled":["M6.00879 8.59033C6.56102 8.59036 7.00874 9.03811 7.00879 9.59033C7.00879 10.1426 6.56105 10.5903 6.00879 10.5903C5.4565 10.5903 5.00879 10.1426 5.00879 9.59033C5.00884 9.03809 5.45653 8.59033 6.00879 8.59033Z","M6.00879 5.09033C6.56102 5.09036 7.00874 5.53811 7.00879 6.09033C7.00879 6.6426 6.56105 7.0903 6.00879 7.09033C5.4565 7.09033 5.00879 6.64262 5.00879 6.09033C5.00884 5.53809 5.45653 5.09033 6.00879 5.09033Z","M6.00879 1.59033C6.56102 1.59037 7.00874 2.03811 7.00879 2.59033C7.00879 3.1426 6.56105 3.5903 6.00879 3.59033C5.4565 3.59033 5.00879 3.14262 5.00879 2.59033C5.00884 2.03809 5.45653 1.59033 6.00879 1.59033Z"],"DotGrid3DotsVerticalTight/s/outline":["M6.00879 8.59033C6.56102 8.59036 7.00874 9.03811 7.00879 9.59033C7.00879 10.1426 6.56105 10.5903 6.00879 10.5903C5.4565 10.5903 5.00879 10.1426 5.00879 9.59033C5.00884 9.03809 5.45653 8.59033 6.00879 8.59033Z","M6.00879 5.09033C6.56102 5.09036 7.00874 5.53811 7.00879 6.09033C7.00879 6.6426 6.56105 7.0903 6.00879 7.09033C5.4565 7.09033 5.00879 6.64262 5.00879 6.09033C5.00884 5.53809 5.45653 5.09033 6.00879 5.09033Z","M6.00879 1.59033C6.56102 1.59037 7.00874 2.03811 7.00879 2.59033C7.00879 3.1426 6.56105 3.5903 6.00879 3.59033C5.4565 3.59033 5.00879 3.14262 5.00879 2.59033C5.00884 2.03809 5.45653 1.59033 6.00879 1.59033Z"],"ExpandMaximizeArrows45/l/filled":["M9.78223 13.2197C10.0751 12.9268 10.5499 12.9268 10.8428 13.2197C11.1357 13.5126 11.1357 13.9874 10.8428 14.2803L5.62305 19.5H10.3125C10.7267 19.5 11.0625 19.8358 11.0625 20.25C11.0625 20.6642 10.7267 21 10.3125 21H3.8125C3.39829 21 3.0625 20.6642 3.0625 20.25V13.75C3.0625 13.3358 3.39829 13 3.8125 13C4.22671 13 4.5625 13.3358 4.5625 13.75V18.4395L9.78223 13.2197Z","M20.3125 3C20.7267 3 21.0625 3.33579 21.0625 3.75V10.25C21.0625 10.6642 20.7267 11 20.3125 11C19.8983 11 19.5625 10.6642 19.5625 10.25V5.56055L14.3428 10.7803C14.0499 11.0732 13.5751 11.0732 13.2822 10.7803C12.9893 10.4874 12.9893 10.0126 13.2822 9.71973L18.502 4.5H13.8125C13.3983 4.5 13.0625 4.16421 13.0625 3.75C13.0625 3.33579 13.3983 3 13.8125 3H20.3125Z"],"ExpandMaximizeArrows45/l/outline":["M9.78223 13.2197C10.0751 12.9268 10.5499 12.9268 10.8428 13.2197C11.1357 13.5126 11.1357 13.9874 10.8428 14.2803L5.62305 19.5H10.3125C10.7267 19.5 11.0625 19.8358 11.0625 20.25C11.0625 20.6642 10.7267 21 10.3125 21H3.8125C3.39829 21 3.0625 20.6642 3.0625 20.25V13.75C3.0625 13.3358 3.39829 13 3.8125 13C4.22671 13 4.5625 13.3358 4.5625 13.75V18.4395L9.78223 13.2197Z","M20.3125 3C20.7267 3 21.0625 3.33579 21.0625 3.75V10.25C21.0625 10.6642 20.7267 11 20.3125 11C19.8983 11 19.5625 10.6642 19.5625 10.25V5.56055L14.3428 10.7803C14.0499 11.0732 13.5751 11.0732 13.2822 10.7803C12.9893 10.4874 12.9893 10.0126 13.2822 9.71973L18.502 4.5H13.8125C13.3983 4.5 13.0625 4.16421 13.0625 3.75C13.0625 3.33579 13.3983 3 13.8125 3H20.3125Z"],"ExpandMaximizeArrows45/m/filled":["M6.43359 8.72461C6.67764 8.48091 7.0734 8.4808 7.31738 8.72461C7.56114 8.96871 7.56135 9.3654 7.31738 9.60938L4.05176 12.875H6.875C7.21993 12.8752 7.49982 13.1551 7.5 13.5C7.49982 13.8449 7.21993 14.1248 6.875 14.125H2.54199C2.19693 14.125 1.91717 13.845 1.91699 13.5V9.16699C1.91699 8.82181 2.19681 8.54199 2.54199 8.54199C2.88703 8.54216 3.16699 8.82192 3.16699 9.16699V11.9912L6.43359 8.72461Z","M13.541 1.875C13.8862 1.875 14.166 2.15482 14.166 2.5V6.83301C14.166 7.17819 13.8862 7.45801 13.541 7.45801C13.1961 7.45767 12.916 7.17798 12.916 6.83301V4.00977L9.65039 7.27539C9.4063 7.51931 9.00965 7.51942 8.76562 7.27539C8.52202 7.03145 8.52213 6.63561 8.76562 6.3916L12.0322 3.125H9.20801C8.86297 3.12484 8.58301 2.84508 8.58301 2.5C8.58301 2.15492 8.86297 1.87516 9.20801 1.875H13.541Z"],"ExpandMaximizeArrows45/m/outline":["M6.43359 8.72461C6.67764 8.48091 7.0734 8.4808 7.31738 8.72461C7.56114 8.96871 7.56135 9.3654 7.31738 9.60938L4.05176 12.875H6.875C7.21993 12.8752 7.49982 13.1551 7.5 13.5C7.49982 13.8449 7.21993 14.1248 6.875 14.125H2.54199C2.19693 14.125 1.91717 13.845 1.91699 13.5V9.16699C1.91699 8.82181 2.19681 8.54199 2.54199 8.54199C2.88703 8.54216 3.16699 8.82192 3.16699 9.16699V11.9912L6.43359 8.72461Z","M13.541 1.875C13.8862 1.875 14.166 2.15482 14.166 2.5V6.83301C14.166 7.17819 13.8862 7.45801 13.541 7.45801C13.1961 7.45767 12.916 7.17798 12.916 6.83301V4.00977L9.65039 7.27539C9.4063 7.51931 9.00965 7.51942 8.76562 7.27539C8.52202 7.03145 8.52213 6.63561 8.76562 6.3916L12.0322 3.125H9.20801C8.86297 3.12484 8.58301 2.84508 8.58301 2.5C8.58301 2.15492 8.86297 1.87516 9.20801 1.875H13.541Z"],"ExpandMaximizeArrows45/s/filled":["M4.80273 6.52148C4.998 6.32622 5.3145 6.32622 5.50977 6.52148C5.70503 6.71675 5.70503 7.03325 5.50977 7.22852L3.11328 9.625H5.15625C5.43239 9.625 5.65625 9.84886 5.65625 10.125C5.65625 10.4011 5.43239 10.625 5.15625 10.625H1.90625C1.63011 10.625 1.40625 10.4011 1.40625 10.125V6.875C1.40625 6.59886 1.63011 6.375 1.90625 6.375C2.18239 6.375 2.40625 6.59886 2.40625 6.875V8.91797L4.80273 6.52148Z","M10.1562 1.375C10.4324 1.375 10.6562 1.59886 10.6562 1.875V5.125C10.6562 5.40114 10.4324 5.625 10.1562 5.625C9.88011 5.625 9.65625 5.40114 9.65625 5.125V3.08203L7.25977 5.47852C7.0645 5.67378 6.748 5.67378 6.55273 5.47852C6.35747 5.28325 6.35747 4.96675 6.55273 4.77148L8.94922 2.375H6.90625C6.63011 2.375 6.40625 2.15114 6.40625 1.875C6.40625 1.59886 6.63011 1.375 6.90625 1.375H10.1562Z"],"ExpandMaximizeArrows45/s/outline":["M4.80273 6.52148C4.998 6.32622 5.3145 6.32622 5.50977 6.52148C5.70503 6.71675 5.70503 7.03325 5.50977 7.22852L3.11328 9.625H5.15625C5.43239 9.625 5.65625 9.84886 5.65625 10.125C5.65625 10.4011 5.43239 10.625 5.15625 10.625H1.90625C1.63011 10.625 1.40625 10.4011 1.40625 10.125V6.875C1.40625 6.59886 1.63011 6.375 1.90625 6.375C2.18239 6.375 2.40625 6.59886 2.40625 6.875V8.91797L4.80273 6.52148Z","M10.1562 1.375C10.4324 1.375 10.6562 1.59886 10.6562 1.875V5.125C10.6562 5.40114 10.4324 5.625 10.1562 5.625C9.88011 5.625 9.65625 5.40114 9.65625 5.125V3.08203L7.25977 5.47852C7.0645 5.67378 6.748 5.67378 6.55273 5.47852C6.35747 5.28325 6.35747 4.96675 6.55273 4.77148L8.94922 2.375H6.90625C6.63011 2.375 6.40625 2.15114 6.40625 1.875C6.40625 1.59886 6.63011 1.375 6.90625 1.375H10.1562Z"],"Eye/l/filled":["M12 4C15.8792 4.00003 19.6579 6.31907 22.1814 10.7475C22.6239 11.524 22.6239 12.476 22.1814 13.2526C19.6579 17.681 15.8791 20 12 19.9999C8.12092 19.9999 4.34216 17.6809 1.81869 13.2524C1.37619 12.4759 1.37619 11.5239 1.81869 10.7474C4.34216 6.31896 8.12093 3.99997 12 4ZM8.37503 12C8.37503 9.99797 9.998 8.375 12 8.375C14.0021 8.375 15.625 9.99797 15.625 12C15.625 14.002 14.0021 15.625 12 15.625C9.998 15.625 8.37503 14.002 8.37503 12Z"],"Eye/l/outline":["M11.6826 3.99023C15.5613 3.99059 19.34 6.30948 21.8633 10.7373C22.3056 11.5138 22.3057 12.4668 21.8633 13.2432C19.34 17.671 15.5613 19.9899 11.6826 19.9902C7.8036 19.9902 4.02541 17.6704 1.50194 13.2422L1.50096 13.2432C1.05844 12.4667 1.05844 11.5138 1.50096 10.7373C4.02444 6.30916 7.80362 3.99021 11.6826 3.99023ZM11.6826 5.49023C8.45146 5.49021 5.11908 7.4173 2.8037 11.4805C2.64627 11.7569 2.62706 12.0879 2.74511 12.3779L2.8037 12.5C5.11908 16.5631 8.45148 18.4902 11.6826 18.4902C14.9136 18.4899 18.2453 16.5629 20.5606 12.5C20.7404 12.1841 20.7404 11.7966 20.5606 11.4805C18.2453 7.41756 14.9136 5.49059 11.6826 5.49023ZM11.6816 7.99023C13.8908 7.99023 15.6817 9.78112 15.6817 11.9902C15.6816 14.1993 13.8907 15.9902 11.6816 15.9902C9.4726 15.9902 7.68167 14.1993 7.68164 11.9902C7.68164 9.78116 9.47258 7.99029 11.6816 7.99023ZM11.6816 9.49023C10.301 9.49029 9.18164 10.6096 9.18164 11.9902C9.18167 13.3709 10.301 14.4902 11.6816 14.4902C13.0623 14.4902 14.1816 13.3709 14.1816 11.9902C14.1816 10.6095 13.0623 9.49023 11.6816 9.49023Z"],"Eye/m/filled":["M8 2.66669C10.5861 2.66671 13.1053 4.21273 14.7876 7.16502C15.0826 7.68269 15.0826 8.31735 14.7876 8.83509C13.1053 11.7874 10.5861 13.3334 8 13.3333C5.41395 13.3333 2.89477 11.7873 1.21246 8.83495C0.917461 8.31729 0.917461 7.68262 1.21246 7.16495C2.89477 4.21266 5.41395 2.66667 8 2.66669ZM5.58335 8.00002C5.58335 6.66533 6.66533 5.58335 8 5.58335C9.33473 5.58335 10.4167 6.66533 10.4167 8.00002C10.4167 9.33469 9.33473 10.4167 8 10.4167C6.66533 10.4167 5.58335 9.33469 5.58335 8.00002Z"],"Eye/m/outline":["M7.78808 2.53516C10.4281 2.53517 12.9849 4.11399 14.6846 7.09668C15.0013 7.65269 15.0014 8.33464 14.6846 8.89062C12.9849 11.8732 10.4281 13.4522 7.78808 13.4521C5.1481 13.4521 2.59121 11.8732 0.891594 8.89062C0.574799 8.33474 0.574946 7.65263 0.891594 7.09668C2.59121 4.11404 5.14807 2.53521 7.78808 2.53516ZM7.78808 3.78516C5.688 3.78521 3.50374 5.0375 1.97753 7.71582C1.87967 7.88803 1.8795 8.09934 1.97753 8.27148C3.50374 10.9498 5.688 12.2021 7.78808 12.2021C9.88818 12.2022 12.0724 10.9498 13.5986 8.27148C13.6967 8.09931 13.6966 7.88817 13.5986 7.71582C12.0724 5.03743 9.88821 3.78517 7.78808 3.78516ZM7.78808 5.20215C9.32971 5.20232 10.5791 6.45247 10.5791 7.99414C10.5787 9.53549 9.32948 10.785 7.78808 10.7852C6.24671 10.7849 4.99646 9.53547 4.99609 7.99414C4.99609 6.45249 6.24648 5.20236 7.78808 5.20215ZM7.78808 6.45215C6.93684 6.45236 6.24609 7.14285 6.24609 7.99414C6.24646 8.84511 6.93707 9.53494 7.78808 9.53516C8.63912 9.53498 9.32872 8.84514 9.3291 7.99414C9.3291 7.14283 8.63935 6.45232 7.78808 6.45215Z"],"Eye/s/filled":["M6 2C7.9396 2.00002 9.82895 3.15954 11.0907 5.37375C11.312 5.762 11.312 6.238 11.0907 6.6263C9.82895 8.8405 7.93955 10 6 9.99995C4.06046 9.99995 2.17108 8.84045 0.909346 6.6262C0.688096 6.23795 0.688096 5.76195 0.909346 5.3737C2.17108 3.15948 4.06047 1.99999 6 2ZM4.18752 6C4.18752 4.99899 4.999 4.1875 6 4.1875C7.00105 4.1875 7.8125 4.99899 7.8125 6C7.8125 7.001 7.00105 7.8125 6 7.8125C4.999 7.8125 4.18752 7.001 4.18752 6Z"],"Eye/s/outline":["M5.84111 1.87012C7.83451 1.87022 9.76126 3.06221 11.0403 5.30664C11.2833 5.73326 11.2834 6.25698 11.0403 6.68359C9.76126 8.92803 7.83451 10.12 5.84111 10.1201C3.8477 10.1201 1.921 8.92797 0.641938 6.68359C0.398814 6.25698 0.398814 5.73325 0.641938 5.30664C1.921 3.06222 3.84768 1.87011 5.84111 1.87012ZM5.84111 2.87012C4.27954 2.87011 2.65043 3.80059 1.5101 5.80176C1.44189 5.92145 1.44189 6.06879 1.5101 6.18848C2.65043 8.18961 4.27955 9.1201 5.84111 9.12012C7.40255 9.12004 9.03086 8.18938 10.1712 6.18848C10.2394 6.06879 10.2394 5.92154 10.1712 5.80176C9.03087 3.80087 7.40256 2.87022 5.84111 2.87012ZM5.84111 3.87012C7.01459 3.87025 7.9661 4.8216 7.9661 5.99512C7.9661 7.16863 7.01459 8.11999 5.84111 8.12012C4.66753 8.12012 3.71613 7.16871 3.71613 5.99512C3.71613 4.82152 4.66753 3.87012 5.84111 3.87012ZM5.84111 4.87012C5.21981 4.87012 4.71612 5.37381 4.71612 5.99512C4.71612 6.61642 5.21981 7.12012 5.84111 7.12012C6.46231 7.11999 6.96611 6.61635 6.96611 5.99512C6.96611 5.37389 6.46231 4.87025 5.84111 4.87012Z"],"Filter/l/filled":["M15.25 18.25C15.8023 18.25 16.25 18.6977 16.25 19.25C16.25 19.8023 15.8023 20.25 15.25 20.25H8.75C8.19772 20.25 7.75 19.8023 7.75 19.25C7.75 18.6977 8.19772 18.25 8.75 18.25H15.25Z","M18.25 11C18.8023 11 19.25 11.4477 19.25 12C19.25 12.5523 18.8023 13 18.25 13H5.75C5.19772 13 4.75 12.5523 4.75 12C4.75 11.4477 5.19772 11 5.75 11H18.25Z","M21.25 3.75C21.8023 3.75 22.25 4.19772 22.25 4.75C22.25 5.30228 21.8023 5.75 21.25 5.75H2.75C2.19772 5.75 1.75 5.30228 1.75 4.75C1.75 4.19772 2.19772 3.75 2.75 3.75H21.25Z"],"Filter/l/outline":["M15.25 18.5C15.6642 18.5 16 18.8358 16 19.25C16 19.6642 15.6642 20 15.25 20H8.75C8.33579 20 8 19.6642 8 19.25C8 18.8358 8.33579 18.5 8.75 18.5H15.25Z","M18.25 11.25C18.6642 11.25 19 11.5858 19 12C19 12.4142 18.6642 12.75 18.25 12.75H5.75C5.33579 12.75 5 12.4142 5 12C5 11.5858 5.33579 11.25 5.75 11.25H18.25Z","M21.25 4C21.6642 4 22 4.33579 22 4.75C22 5.16421 21.6642 5.5 21.25 5.5H2.75C2.33579 5.5 2 5.16421 2 4.75C2 4.33579 2.33579 4 2.75 4H21.25Z"],"Filter/m/filled":["M10.166 12.083C10.5801 12.083 10.9159 12.4189 10.916 12.833C10.916 13.2472 10.5802 13.583 10.166 13.583H5.83301C5.41896 13.5828 5.08301 13.2471 5.08301 12.833C5.08317 12.4191 5.41906 12.0832 5.83301 12.083H10.166Z","M12.166 7.25C12.5802 7.25 12.916 7.58579 12.916 8C12.916 8.41421 12.5802 8.75 12.166 8.75H3.83301C3.41896 8.7498 3.08301 8.41409 3.08301 8C3.08301 7.58591 3.41896 7.2502 3.83301 7.25H12.166Z","M14.166 2.41699C14.5802 2.41699 14.916 2.75278 14.916 3.16699C14.9159 3.58107 14.5801 3.91699 14.166 3.91699H1.83301C1.41906 3.91679 1.08317 3.58094 1.08301 3.16699C1.08301 2.7529 1.41896 2.41719 1.83301 2.41699H14.166Z"],"Filter/m/outline":["M10.166 12.208C10.5111 12.208 10.7909 12.488 10.791 12.833C10.791 13.1782 10.5112 13.458 10.166 13.458H5.83301C5.488 13.4578 5.20801 13.1781 5.20801 12.833C5.20817 12.4881 5.4881 12.2082 5.83301 12.208H10.166Z","M12.166 7.375C12.5112 7.375 12.791 7.65482 12.791 8C12.791 8.34518 12.5112 8.625 12.166 8.625H3.83301C3.488 8.6248 3.20801 8.34506 3.20801 8C3.20801 7.65494 3.488 7.3752 3.83301 7.375H12.166Z","M14.166 2.54199C14.5112 2.54199 14.791 2.82181 14.791 3.16699C14.7909 3.51203 14.5111 3.79199 14.166 3.79199H1.83301C1.4881 3.79179 1.20817 3.51191 1.20801 3.16699C1.20801 2.82194 1.488 2.54219 1.83301 2.54199H14.166Z"],"Filter/s/filled":["M7.625 9C7.97018 9 8.25 9.27982 8.25 9.625C8.25 9.97018 7.97018 10.25 7.625 10.25H4.375C4.02982 10.25 3.75 9.97018 3.75 9.625C3.75 9.27982 4.02982 9 4.375 9H7.625Z","M9.125 5.375C9.47018 5.375 9.75 5.65482 9.75 6C9.75 6.34518 9.47018 6.625 9.125 6.625H2.875C2.52982 6.625 2.25 6.34518 2.25 6C2.25 5.65482 2.52982 5.375 2.875 5.375H9.125Z","M10.625 1.75C10.9702 1.75 11.25 2.02982 11.25 2.375C11.25 2.72018 10.9702 3 10.625 3H1.375C1.02982 3 0.75 2.72018 0.75 2.375C0.75 2.02982 1.02982 1.75 1.375 1.75H10.625Z"],"Filter/s/outline":["M7.625 9.125C7.90114 9.125 8.125 9.34886 8.125 9.625C8.125 9.90114 7.90114 10.125 7.625 10.125H4.375C4.09886 10.125 3.875 9.90114 3.875 9.625C3.875 9.34886 4.09886 9.125 4.375 9.125H7.625Z","M9.125 5.5C9.40114 5.5 9.625 5.72386 9.625 6C9.625 6.27614 9.40114 6.5 9.125 6.5H2.875C2.59886 6.5 2.375 6.27614 2.375 6C2.375 5.72386 2.59886 5.5 2.875 5.5H9.125Z","M10.625 1.875C10.9011 1.875 11.125 2.09886 11.125 2.375C11.125 2.65114 10.9011 2.875 10.625 2.875H1.375C1.09886 2.875 0.875 2.65114 0.875 2.375C0.875 2.09886 1.09886 1.875 1.375 1.875H10.625Z"],"FireFlame/l/filled":["M11.7929 1.87148C11.5932 1.74149 11.3437 1.71409 11.1206 1.79767C10.8974 1.88124 10.7273 2.06586 10.6622 2.29504C10.0865 4.32161 8.89344 5.44786 7.43008 6.82931C7.23272 7.01563 7.03043 7.2066 6.82408 7.40504C6.17895 8.02669 5.52146 8.72307 4.98439 9.50667C3.39173 11.8318 3.00596 14.4496 4.193 17.0852C6.17492 21.4722 10.5918 22.7265 14.2868 21.6178C17.9957 20.5049 21.0595 16.9978 20.414 11.8994C20.2137 10.304 19.6676 8.68597 18.3415 7.41799C18.1837 7.26719 17.9681 7.19256 17.7509 7.21356C17.5337 7.23457 17.3365 7.34913 17.2106 7.52736C16.9886 7.84154 16.3699 8.50024 15.7492 9.13158C15.6515 8.29906 15.4701 7.36482 15.1522 6.4261C14.5881 4.76026 13.5766 3.0328 11.7929 1.87148Z"],"FireFlame/l/outline":["M11.1016 1.79784C11.3244 1.71435 11.5739 1.74144 11.7734 1.87108C13.5606 3.03217 14.5741 4.75971 15.1396 6.42577C15.4588 7.36605 15.6375 8.30214 15.7353 9.13573C16.3594 8.50268 16.9829 7.84148 17.2061 7.52636C17.3319 7.34859 17.5293 7.23492 17.7461 7.21386C17.9628 7.19288 18.1783 7.2668 18.3359 7.41698C19.6651 8.68486 20.2133 10.3036 20.4141 11.8994H20.4131C21.0602 16.9991 17.9891 20.5057 14.2734 21.6182C10.5721 22.7263 6.14674 21.4737 4.16015 17.0869L4.15918 17.0859C2.46494 13.3327 4.26874 9.83493 6.79687 7.40428C8.53705 5.73462 9.98875 4.59429 10.6436 2.29491L10.6728 2.21093C10.7521 2.02118 10.9066 1.87093 11.1016 1.79784ZM11.7256 3.72362C10.8196 5.86033 9.24775 7.12986 7.83496 8.48534C5.50875 10.7218 4.21466 13.5609 5.52636 16.4678L5.68457 16.7969C7.37589 20.1223 10.833 21.0816 13.8428 20.1807C16.9351 19.2548 19.471 16.3804 18.9258 12.0869V12.0859C18.7857 10.9727 18.4644 9.95499 17.833 9.10643C17.5087 9.46438 17.1278 9.86171 16.7871 10.207C16.4759 10.5224 16.1816 10.8143 15.9658 11.0264C15.8582 11.1321 15.7697 11.2183 15.708 11.2783C15.6771 11.3083 15.6523 11.3316 15.6357 11.3476L15.6123 11.3711L15.6103 11.3721V11.373C15.3938 11.582 15.0729 11.6411 14.7959 11.5234C14.5192 11.4057 14.3398 11.1338 14.3398 10.833C14.3398 9.8442 14.2155 8.36919 13.7197 6.90819C13.3216 5.73518 12.6938 4.60217 11.7256 3.72362Z"],"FireFlame/m/filled":["M7.86192 1.24767C7.72878 1.16101 7.56245 1.14274 7.41371 1.19846C7.26491 1.25418 7.15151 1.37726 7.10811 1.53004C6.72431 2.88109 5.92894 3.63192 4.95337 4.55289C4.82179 4.6771 4.68693 4.80442 4.54937 4.93671C4.11928 5.35114 3.68095 5.8154 3.32291 6.3378C2.26113 7.88789 2.00395 9.63308 2.79531 11.3902C4.11659 14.3148 7.06118 15.151 9.52452 14.4119C11.9971 13.67 14.0396 11.3319 13.6093 7.93295C13.4758 6.86935 13.1117 5.79067 12.2276 4.94534C12.1224 4.84481 11.9787 4.79506 11.8339 4.80906C11.6891 4.82307 11.5576 4.89944 11.4737 5.01826C11.3257 5.22771 10.9132 5.66685 10.4994 6.08774C10.4343 5.53273 10.3134 4.9099 10.1014 4.28408C9.72538 3.17352 9.05105 2.02188 7.86192 1.24767Z"],"FireFlame/m/outline":["M7.35677 1.0817C7.54251 1.01208 7.75097 1.03419 7.91731 1.14225C9.1394 1.93621 9.8284 3.11585 10.2113 4.24381C10.3945 4.78359 10.509 5.32084 10.5804 5.8151C10.93 5.45516 11.2472 5.11703 11.3685 4.94596L11.4583 4.8444C11.5572 4.75445 11.6833 4.69737 11.8187 4.68424C11.9994 4.66675 12.1795 4.72882 12.3109 4.85416C13.2247 5.72588 13.5967 6.83599 13.7327 7.91666L13.7669 8.23795C14.0423 11.5315 12.0014 13.7983 9.5511 14.5319C7.03412 15.2853 4.01391 14.4337 2.6595 11.443V11.4421C1.49819 8.8694 2.74148 6.48294 4.44368 4.84635H4.44466C5.6145 3.72389 6.54971 2.98873 6.97493 1.49577C7.02922 1.30509 7.17118 1.15139 7.35677 1.0817ZM7.85872 2.69303C7.41932 3.64594 6.78569 4.34136 6.13509 4.96842L5.30989 5.74772C3.776 7.22259 2.95538 9.06002 3.79817 10.9274L3.90071 11.1403C4.99677 13.2959 7.23423 13.9208 9.1927 13.3346C11.2023 12.733 12.8474 10.869 12.4925 8.07389V8.07291C12.4078 7.39964 12.224 6.78809 11.8773 6.27018C11.6835 6.47957 11.471 6.6992 11.2806 6.89225C11.0726 7.10312 10.876 7.29846 10.7318 7.4401C10.6597 7.51094 10.6002 7.56888 10.5589 7.60905C10.5385 7.62895 10.5221 7.64425 10.5111 7.65495C10.5055 7.66032 10.5013 7.66482 10.4984 7.66764C10.4969 7.66905 10.4952 7.66983 10.4945 7.67057V7.67155C10.3141 7.84557 10.0465 7.89534 9.81575 7.79752C9.58499 7.69951 9.43494 7.47303 9.43489 7.22233C9.43489 6.57184 9.35261 5.60252 9.02767 4.64518C8.78477 3.92967 8.41431 3.24274 7.85872 2.69303Z"],"FireFlame/s/filled":["M5.89645 0.935738C5.7966 0.870743 5.67185 0.857043 5.5603 0.898833C5.4487 0.940618 5.36365 1.03293 5.3311 1.14752C5.04325 2.1608 4.44672 2.72393 3.71504 3.41465C3.61636 3.50781 3.51522 3.6033 3.41204 3.70252C3.08948 4.01334 2.76073 4.36153 2.4922 4.75333C1.69587 5.9159 1.50298 7.2248 2.0965 8.5426C3.08746 10.7361 5.2959 11.3632 7.1434 10.8089C8.99785 10.2524 10.5298 8.4989 10.207 5.9497C10.1069 5.152 9.8338 4.34298 9.17075 3.70899C9.09185 3.63359 8.98405 3.59628 8.87545 3.60678C8.76685 3.61728 8.66825 3.67456 8.6053 3.76368C8.4943 3.92077 8.18495 4.25012 7.8746 4.56579C7.82575 4.14953 7.73505 3.68241 7.5761 3.21305C7.29405 2.38013 6.7883 1.5164 5.89645 0.935738Z"],"FireFlame/s/outline":["M5.50681 0.782202C5.65541 0.726501 5.82198 0.744581 5.95505 0.83103C6.87908 1.43147 7.39987 2.32263 7.68845 3.17283C7.81877 3.55683 7.90262 3.93915 7.95701 4.29392C8.20106 4.04123 8.41658 3.81044 8.50095 3.69138L8.57224 3.61033C8.6514 3.53817 8.7528 3.4929 8.8613 3.4824C9.00585 3.46846 9.14978 3.5179 9.25486 3.61814C9.94708 4.27857 10.2285 5.11885 10.331 5.93357L10.3564 6.17673C10.5639 8.66244 9.02286 10.3747 7.17283 10.9287C5.33188 11.4798 3.13138 10.8937 2.0654 8.80173L1.96579 8.5947C1.08685 6.64756 2.03062 4.84376 3.3115 3.61228L3.93357 3.02146C4.51468 2.46008 4.96409 1.94557 5.20115 1.11326C5.2446 0.960668 5.35827 0.837922 5.50681 0.782202ZM5.9033 2.07615C5.42829 3.0773 4.6662 3.69847 4.00388 4.33396C2.85797 5.43596 2.25296 6.79989 2.87693 8.18259L2.9531 8.3408C3.7673 9.94231 5.42879 10.4069 6.88572 9.97068C8.37987 9.52334 9.60279 8.13892 9.33884 6.05955V6.05857C9.27744 5.57064 9.14448 5.12939 8.90134 4.75291C8.7631 4.90138 8.61591 5.05604 8.4824 5.19138C8.32623 5.34968 8.1785 5.4962 8.07029 5.60251C8.01654 5.65532 7.97232 5.6984 7.94138 5.72849C7.92601 5.74344 7.91357 5.75558 7.90525 5.76365C7.90108 5.76768 7.89768 5.77129 7.89548 5.77341C7.89444 5.77442 7.89312 5.77482 7.89255 5.77537V5.77634H7.89158C7.7473 5.91546 7.5341 5.95516 7.34958 5.87693C7.16505 5.79855 7.04503 5.61744 7.0449 5.41697C7.0449 4.93131 6.98345 4.20789 6.74119 3.49412C6.56494 2.97488 6.29771 2.47862 5.9033 2.07615Z"],"Folder1/l/filled":["M4.5 3C3.11929 3 2 4.11929 2 5.5V17.5C2 18.8807 3.11929 20 4.5 20H19.5C20.8807 20 22 18.8807 22 17.5V8.5C22 7.11929 20.8807 6 19.5 6H13.0704C12.5688 6 12.1005 5.74935 11.8223 5.33205L11.0098 4.11325C10.5461 3.41775 9.76551 3 8.92963 3H4.5Z"],"Folder1/l/outline":["M2 17.25V5.25C2 3.73122 3.23122 2.5 4.75 2.5H9.17969C10.0991 2.50002 10.9578 2.95955 11.4678 3.72461L12.2803 4.94336L12.374 5.06738C12.6097 5.34033 12.9546 5.49997 13.3203 5.5H19.75C21.2688 5.5 22.5 6.73122 22.5 8.25V17.25C22.5 18.7688 21.2688 20 19.75 20H4.75C3.23122 20 2 18.7688 2 17.25ZM3.5 17.25C3.5 17.9404 4.05964 18.5 4.75 18.5H19.75C20.4404 18.5 21 17.9404 21 17.25V8.25C21 7.55964 20.4404 7 19.75 7H13.3203C12.4009 6.99997 11.5422 6.54046 11.0322 5.77539L10.2197 4.55664C9.98794 4.20893 9.59762 4.00002 9.17969 4H4.75C4.05964 4 3.5 4.55964 3.5 5.25V17.25Z"],"Folder1/m/filled":["M2.66661 2C1.74613 2 0.999939 2.74619 0.999939 3.66667V11.6667C0.999939 12.5871 1.74613 13.3333 2.66661 13.3333H12.6666C13.5871 13.3333 14.3333 12.5871 14.3333 11.6667V5.66667C14.3333 4.74619 13.5871 4 12.6666 4H8.38021C8.04581 4 7.73361 3.8329 7.54814 3.5547L7.00647 2.74217C6.69734 2.2785 6.17695 2 5.61969 2H2.66661Z"],"Folder1/m/outline":["M1 11.458V3.45801C1.00018 2.37671 1.87671 1.50018 2.95801 1.5H5.91113C6.56591 1.5 7.17783 1.82724 7.54102 2.37207L8.08301 3.18457L8.13574 3.25488C8.26929 3.40951 8.46466 3.49998 8.67188 3.5H12.958C14.0395 3.5 14.9168 4.37661 14.917 5.45801V11.458C14.917 12.5396 14.0396 13.417 12.958 13.417H2.95801C1.87661 13.4168 1 12.5395 1 11.458ZM2.25 11.458C2.25 11.8491 2.56695 12.1668 2.95801 12.167H12.958C13.3492 12.167 13.667 11.8492 13.667 11.458V5.45801C13.6668 5.06695 13.3491 4.75 12.958 4.75H8.67188C8.01723 4.74998 7.40617 4.42262 7.04297 3.87793L6.50098 3.06543C6.36963 2.86839 6.14797 2.75 5.91113 2.75H2.95801C2.56706 2.75018 2.25018 3.06706 2.25 3.45801V11.458Z"],"Folder1/s/filled":["M2.25 2C1.55964 2 1 2.55964 1 3.25V9.25C1 9.94035 1.55964 10.5 2.25 10.5H9.75C10.4403 10.5 11 9.94035 11 9.25V4.75C11 4.05964 10.4403 3.5 9.75 3.5H6.5352C6.2844 3.5 6.05025 3.37467 5.91115 3.16602L5.5049 2.55662C5.27305 2.20887 4.88276 2 4.46482 2H2.25Z"],"Folder1/s/outline":["M1 8.5V2.5C1 1.67157 1.67157 1 2.5 1H4.71484C5.21636 1.00001 5.68471 1.25066 5.96289 1.66797L6.36914 2.27734L6.40723 2.32715C6.50148 2.43608 6.63905 2.49999 6.78516 2.5H10C10.8284 2.5 11.5 3.17158 11.5 4V8.5C11.5 9.32844 10.8284 10 10 10H2.5C1.67158 10 1 9.32845 1 8.5ZM2 8.5C2 8.77615 2.22385 9 2.5 9H10C10.2762 9 10.5 8.77616 10.5 8.5V4C10.5 3.72385 10.2762 3.5 10 3.5H6.78516C6.28366 3.49999 5.81529 3.24935 5.53711 2.83203L5.13086 2.22266C5.03815 2.08358 4.88202 2.00001 4.71484 2H2.5C2.22386 2 2 2.22386 2 2.5V8.5Z"],"Folder1Open/l/filled":["M5.17798 3.19513C3.6592 3.19513 2.42798 4.42635 2.42798 5.94513V17.8721C2.42798 19.1551 3.46803 20.1951 4.75099 20.1951H18.4327C19.6527 20.1951 20.7268 19.3914 21.071 18.2211L22.7716 12.4389C23.0688 11.4286 22.4154 10.4166 21.428 10.2268V8.94513C21.428 7.42635 20.1968 6.19513 18.678 6.19513H12.9632C12.8796 6.19513 12.8015 6.15335 12.7552 6.0838L11.6458 4.4197C11.1357 3.65466 10.2771 3.19513 9.35761 3.19513H5.17798ZM19.928 10.1951V8.94513C19.928 8.25477 19.3684 7.69513 18.678 7.69513H12.9632C12.3781 7.69513 11.8317 7.4027 11.5071 6.91586L10.3977 5.25175C10.1658 4.90401 9.77555 4.69513 9.35761 4.69513H5.17798C4.48762 4.69513 3.92798 5.25477 3.92798 5.94513V17.8721C3.92798 18.3266 4.29646 18.6951 4.75099 18.6951C5.11609 18.6951 5.43754 18.4546 5.54056 18.1043L7.2862 12.1691C7.63042 10.9988 8.70453 10.1951 9.92446 10.1951H19.928Z"],"Folder1Open/l/outline":["M9.35742 3.19531C10.2769 3.19533 11.1355 3.65486 11.6455 4.41992L12.7549 6.08398L12.7949 6.13086C12.8403 6.17196 12.9002 6.19526 12.9629 6.19531H18.6777C20.1966 6.19531 21.4277 7.42654 21.4277 8.94531V10.2295C22.4142 10.4201 23.0675 11.4296 22.7705 12.4395L21.0693 18.2217C20.7249 19.3916 19.6512 20.1951 18.4316 20.1953H4.75098L4.75 20.1943V20.1953C4.74149 20.1953 4.73305 20.1936 4.72461 20.1934C3.45393 20.1791 2.42783 19.146 2.42773 17.8721V5.94531C2.42773 4.42659 3.65903 3.19541 5.17773 3.19531H9.35742ZM20.6768 11.6953H9.92383C9.3694 11.6954 8.88106 12.0608 8.72461 12.5928L6.97852 18.5273C6.96172 18.5844 6.94268 18.6404 6.92188 18.6953H18.4316C18.9859 18.6951 19.4743 18.3297 19.6309 17.7979L21.3311 12.0156C21.378 11.8556 21.2577 11.6953 21.0908 11.6953H20.6777L20.6768 11.6943V11.6953ZM5.17773 4.69531C4.48746 4.69541 3.92773 5.25502 3.92773 5.94531V17.8721C3.92783 18.3261 4.29606 18.6937 4.75 18.6943C5.11502 18.6943 5.43695 18.4547 5.54004 18.1045L7.28516 12.1689C7.62948 10.9988 8.70411 10.1954 9.92383 10.1953H19.9277V8.94531C19.9277 8.25495 19.3681 7.69531 18.6777 7.69531H12.9629C12.3778 7.69524 11.8314 7.40272 11.5068 6.91602L10.3975 5.25195C10.1657 4.90425 9.77535 4.69533 9.35742 4.69531H5.17773Z"],"Folder1Open/m/filled":["M3.45199 2.13007C2.43947 2.13007 1.61865 2.95088 1.61865 3.9634V11.9147C1.61865 12.7701 2.31202 13.4634 3.16733 13.4634H12.2885C13.1018 13.4634 13.8179 12.9276 14.0473 12.1474L15.1811 8.2926C15.3792 7.61907 14.9436 6.9444 14.2853 6.81787V5.9634C14.2853 4.95088 13.4645 4.13007 12.452 4.13007H8.64212C8.58639 4.13007 8.53432 4.10221 8.50345 4.05585L7.76385 2.94645C7.42379 2.43642 6.85139 2.13007 6.23841 2.13007H3.45199ZM13.2853 6.79673V5.9634C13.2853 5.50316 12.9123 5.13007 12.452 5.13007H8.64212C8.25205 5.13007 7.88778 4.93511 7.67139 4.61055L6.93179 3.50115C6.77723 3.26932 6.51703 3.13007 6.23841 3.13007H3.45199C2.99175 3.13007 2.61865 3.50316 2.61865 3.9634V11.9147C2.61865 12.2177 2.86431 12.4634 3.16733 12.4634C3.41073 12.4634 3.62503 12.3031 3.69371 12.0695L4.85747 8.11273C5.08695 7.33253 5.80302 6.79673 6.61631 6.79673H13.2853Z"],"Folder1Open/m/outline":["M6.23828 2.12988C6.85099 2.13 7.42371 2.43654 7.76367 2.94629L8.50293 4.05566L8.53027 4.08691C8.56043 4.11405 8.60011 4.12977 8.6416 4.12988H12.4512C13.4635 4.12988 14.2849 4.95062 14.2852 5.96289V6.81934C14.9425 6.94652 15.3773 7.61905 15.1797 8.29199L14.0459 12.1475C13.8163 12.9275 13.1003 13.4629 12.2871 13.4629H3.19238C3.18393 13.463 3.17547 13.4639 3.16699 13.4639C3.16115 13.4639 3.15521 13.4621 3.14941 13.4619C2.3024 13.4523 1.61816 12.7633 1.61816 11.9141V3.96289C1.61845 2.95087 2.43917 2.13029 3.45117 2.12988H6.23828ZM6.61621 7.79688C6.24654 7.79688 5.92072 8.04084 5.81641 8.39551L4.65234 12.3516C4.6412 12.3894 4.62805 12.4264 4.61426 12.4629H12.2871C12.6567 12.4629 12.9825 12.2198 13.0869 11.8652L14.2207 8.01074C14.252 7.90406 14.1718 7.79691 14.0605 7.79688H6.61621ZM3.45117 3.12988C2.99146 3.13029 2.61845 3.50315 2.61816 3.96289V11.9141C2.61816 12.2169 2.86417 12.4627 3.16699 12.4629H3.17871C3.41714 12.4577 3.62578 12.299 3.69336 12.0693L4.85742 8.11328C5.0869 7.33302 5.80292 6.79688 6.61621 6.79688H13.2852V5.96289C13.2849 5.5029 12.9112 5.12988 12.4512 5.12988H8.6416C8.25165 5.12973 7.8872 4.93475 7.6709 4.61035L6.93164 3.50098C6.77715 3.26947 6.51664 3.13 6.23828 3.12988H3.45117Z"],"Folder1Open/s/filled":["M2.58899 1.5976C1.8296 1.5976 1.21399 2.21321 1.21399 2.9726V8.9361C1.21399 9.5776 1.73401 10.0976 2.37549 10.0976H9.21634C9.82634 10.0976 10.3634 9.69574 10.5355 9.11059L11.3858 6.2195C11.5344 5.71435 11.2077 5.20835 10.714 5.11345V4.4726C10.714 3.71321 10.0984 3.0976 9.33899 3.0976H6.48159C6.43979 3.0976 6.40074 3.07671 6.37759 3.04193L5.82289 2.20988C5.56784 1.82736 5.13854 1.5976 4.6788 1.5976H2.58899ZM9.96399 5.0976V4.4726C9.96399 4.12742 9.68419 3.8476 9.33899 3.8476H6.48159C6.18904 3.8476 5.91584 3.70138 5.75354 3.45796L5.19884 2.62591C5.08292 2.45204 4.88777 2.3476 4.6788 2.3476H2.58899C2.24381 2.3476 1.96399 2.62742 1.96399 2.9726V8.9361C1.96399 9.16335 2.14823 9.3476 2.37549 9.3476C2.55804 9.3476 2.71877 9.22735 2.77028 9.0522L3.6431 6.0846C3.81521 5.49945 4.35226 5.0976 4.96223 5.0976H9.96399Z"],"Folder1Open/s/outline":["M4.67871 1.47266C5.18023 1.47267 5.64858 1.72331 5.92676 2.14062L6.48145 2.97266H9.33887C10.1673 2.97266 10.8389 3.64423 10.8389 4.47266V5.01758C11.3449 5.17203 11.6642 5.71313 11.5049 6.25488L10.6543 9.14551C10.4665 9.78375 9.88111 10.2226 9.21582 10.2227H2.375C1.66485 10.2224 1.08911 9.64664 1.08887 8.93652V2.97266C1.08887 2.14427 1.7605 1.47272 2.58887 1.47266H4.67871ZM4.96191 5.97266C4.74016 5.97271 4.545 6.11926 4.48242 6.33203L3.63184 9.22266H9.21582C9.43749 9.22257 9.63269 9.07599 9.69531 8.86328L10.5459 5.97266H4.96191ZM2.58887 2.47266C2.31278 2.47272 2.08887 2.69655 2.08887 2.97266V8.93652C2.08908 9.07464 2.18715 9.18997 2.31738 9.2168L2.375 9.22266C2.50205 9.22266 2.61351 9.1385 2.64941 9.0166L3.52246 6.0498C3.7102 5.41145 4.29655 4.97271 4.96191 4.97266H9.83887V4.47266C9.83887 4.19651 9.61502 3.97266 9.33887 3.97266H6.48145C6.18878 3.97261 5.91316 3.84444 5.72461 3.62598L5.64941 3.52734L5.09473 2.69531C5.00202 2.55624 4.84588 2.47267 4.67871 2.47266H2.58887Z"],"FolderAddRight/l/filled":["M18 13C18.4142 13 18.75 13.3358 18.75 13.75V16.25H21.25C21.6642 16.25 22 16.5858 22 17C22 17.4142 21.6642 17.75 21.25 17.75H18.75V20.25C18.75 20.6642 18.4142 21 18 21C17.5858 21 17.25 20.6642 17.25 20.25V17.75H14.75C14.3358 17.75 14 17.4142 14 17C14 16.5858 14.3358 16.25 14.75 16.25H17.25V13.75C17.25 13.3358 17.5858 13 18 13Z","M8.92969 3C9.84914 3.00002 10.7077 3.45959 11.2178 4.22461L11.585 4.77539C12.095 5.54042 12.9537 5.99998 13.873 6H19.25C20.7688 6 22 7.23122 22 8.75V12.5273C20.9385 11.5774 19.5366 11 18 11C14.6863 11 12 13.6863 12 17C12 18.0929 12.2922 19.1175 12.8027 20H4.75C3.23122 20 2 18.7688 2 17.25V5.75C2 4.23122 3.23122 3 4.75 3H8.92969Z"],"FolderAddRight/l/outline":["M18 12.5C18.4142 12.5 18.75 12.8358 18.75 13.25V15.75H21.25C21.6642 15.75 22 16.0858 22 16.5C22 16.9142 21.6642 17.25 21.25 17.25H18.75V19.75C18.75 20.1642 18.4142 20.5 18 20.5C17.5858 20.5 17.25 20.1642 17.25 19.75V17.25H14.75C14.3358 17.25 14 16.9142 14 16.5C14 16.0858 14.3358 15.75 14.75 15.75H17.25V13.25C17.25 12.8358 17.5858 12.5 18 12.5Z","M8.92969 2.5C9.84913 2.50002 10.7078 2.95955 11.2178 3.72461L12.0303 4.94336L12.124 5.06738C12.3597 5.34033 12.7046 5.49997 13.0703 5.5H19.25C20.7688 5.5 22 6.73122 22 8.25V9.75C22 10.1642 21.6642 10.5 21.25 10.5C20.8358 10.5 20.5 10.1642 20.5 9.75V8.25C20.5 7.55964 19.9404 7 19.25 7H13.0703C12.1509 6.99997 11.2922 6.54046 10.7822 5.77539L9.96973 4.55664C9.73794 4.20893 9.34762 4.00002 8.92969 4H4.75C4.05964 4 3.5 4.55964 3.5 5.25V16.75C3.5 17.4404 4.05964 18 4.75 18H11.25C11.6642 18 12 18.3358 12 18.75C12 19.1642 11.6642 19.5 11.25 19.5H4.75C3.23122 19.5 2 18.2688 2 16.75V5.25C2 3.73122 3.23122 2.5 4.75 2.5H8.92969Z"],"FolderAddRight/m/filled":["M12 8.66699C12.2761 8.667 12.5 8.89087 12.5 9.16699V10.833H14.167C14.4429 10.8332 14.6668 11.0571 14.667 11.333C14.667 11.609 14.443 11.8328 14.167 11.833H12.5V13.5C12.5 13.7761 12.2761 14 12 14C11.7239 14 11.5 13.7761 11.5 13.5V11.833H9.83301C9.55701 11.8328 9.33301 11.609 9.33301 11.333C9.33319 11.0571 9.55713 10.8332 9.83301 10.833H11.5V9.16699C11.5 8.89086 11.7239 8.66699 12 8.66699Z","M5.95312 2C6.56608 2.00002 7.13846 2.3064 7.47852 2.81641L7.72363 3.18359C8.06364 3.69354 8.63614 4 9.24902 4H12.833C13.8454 4 14.6668 4.82064 14.667 5.83301V8.35156C13.9593 7.71817 13.0245 7.33301 12 7.33301C9.79098 7.33301 8.00018 9.12402 8 11.333C8 12.0615 8.1949 12.7447 8.53516 13.333H3.16699C2.15447 13.333 1.33301 12.5125 1.33301 11.5V3.83301C1.33318 2.82064 2.15458 2 3.16699 2H5.95312Z"],"FolderAddRight/m/outline":["M12 8.16699C12.3452 8.16699 12.625 8.44681 12.625 8.79199V10.333H14.166C14.5111 10.333 14.7909 10.613 14.791 10.958C14.791 11.3032 14.5112 11.583 14.166 11.583H12.625V13.125C12.6248 13.47 12.3451 13.75 12 13.75C11.6549 13.75 11.3752 13.47 11.375 13.125V11.583H9.83301C9.48797 11.5828 9.20801 11.3031 9.20801 10.958C9.20817 10.6131 9.48807 10.3332 9.83301 10.333H11.375V8.79199C11.375 8.44681 11.6548 8.16699 12 8.16699Z","M5.95312 1.5C6.60768 1.50012 7.21889 1.82747 7.58203 2.37207L8.12402 3.18457L8.17676 3.25488C8.31017 3.40945 8.50584 3.4998 8.71289 3.5H12.833C13.9145 3.5 14.7908 4.37661 14.791 5.45801V6.45801C14.791 6.80319 14.5112 7.08301 14.166 7.08301C13.8211 7.08267 13.541 6.80298 13.541 6.45801V5.45801C13.5408 5.06695 13.2241 4.75 12.833 4.75H8.71289C8.05843 4.74977 7.44706 4.42254 7.08398 3.87793L6.54199 3.06543C6.4107 2.8686 6.18976 2.75012 5.95312 2.75H3.16602C2.77521 2.75034 2.45818 3.06717 2.45801 3.45801V11.125C2.45801 11.516 2.7751 11.8327 3.16602 11.833H7.5C7.84492 11.8332 8.12482 12.1131 8.125 12.458C8.125 12.8031 7.84503 13.0828 7.5 13.083H3.16602C2.08475 13.0827 1.20801 12.2064 1.20801 11.125V3.45801C1.20818 2.37681 2.08486 1.50034 3.16602 1.5H5.95312Z"],"FolderAddRight/s/filled":["M9 6.5C9.2071 6.5 9.375 6.6679 9.375 6.875V8.125H10.625C10.8321 8.125 11 8.2929 11 8.5C11 8.7071 10.8321 8.875 10.625 8.875H9.375V10.125C9.375 10.3321 9.2071 10.5 9 10.5C8.7929 10.5 8.625 10.3321 8.625 10.125V8.875H7.375C7.1679 8.875 7 8.7071 7 8.5C7 8.2929 7.1679 8.125 7.375 8.125H8.625V6.875C8.625 6.6679 8.7929 6.5 9 6.5Z","M4.46484 1.5C4.92457 1.50001 5.35433 1.72979 5.60938 2.1123L5.79297 2.3877C6.04798 2.77009 6.47691 2.99999 6.93652 3H9.625C10.3844 3 11 3.61561 11 4.375V6.26367C10.4693 5.78868 9.7683 5.5 9 5.5C7.34315 5.5 6 6.84315 6 8.5C6 9.04645 6.14612 9.55875 6.40137 10H2.375C1.61561 10 1 9.3844 1 8.625V2.875C1 2.11561 1.61561 1.5 2.375 1.5H4.46484Z"],"FolderAddRight/s/outline":["M9 6C9.27614 6 9.5 6.22386 9.5 6.5V7.625H10.625C10.9011 7.625 11.125 7.84886 11.125 8.125C11.125 8.40114 10.9011 8.625 10.625 8.625H9.5V9.75C9.5 10.0261 9.27614 10.25 9 10.25C8.72386 10.25 8.5 10.0261 8.5 9.75V8.625H7.375C7.09886 8.625 6.875 8.40114 6.875 8.125C6.875 7.84886 7.09886 7.625 7.375 7.625H8.5V6.5C8.5 6.22386 8.72386 6 9 6Z","M4.46484 1C4.96636 1.00001 5.43471 1.25066 5.71289 1.66797L6.11914 2.27734L6.15723 2.32715C6.25148 2.43608 6.38905 2.49999 6.53516 2.5H9.625C10.4534 2.5 11.125 3.17158 11.125 4V4.75C11.125 5.02614 10.9011 5.25 10.625 5.25C10.3489 5.25 10.125 5.02614 10.125 4.75V4C10.125 3.72385 9.90115 3.5 9.625 3.5H6.53516C6.03366 3.49999 5.56529 3.24935 5.28711 2.83203L4.88086 2.22266C4.78815 2.08358 4.63202 2.00001 4.46484 2H2.375C2.09886 2 1.875 2.22386 1.875 2.5V8.25C1.875 8.52615 2.09885 8.75 2.375 8.75H5.625C5.90114 8.75 6.125 8.97386 6.125 9.25C6.125 9.52614 5.90114 9.75 5.625 9.75H2.375C1.54658 9.75 0.875 9.07845 0.875 8.25V2.5C0.875 1.67157 1.54657 1 2.375 1H4.46484Z"],"FolderOpenFront/l/filled":["M20.0547 10.8447C21.8257 10.845 23.1348 12.495 22.7325 14.2197L21.9161 17.7197C21.6257 18.9641 20.5161 19.8444 19.2383 19.8447H3.91215C2.63428 19.8446 1.52493 18.9641 1.23442 17.7197L0.418014 14.2197C0.0155213 12.4948 1.32451 10.8447 3.09575 10.8447H20.0547Z","M8.70708 2.84473C9.42319 2.84486 10.1119 3.12463 10.625 3.62402L11.5157 4.49023C11.7489 4.71712 12.0622 4.84473 12.3877 4.84473H18.8252C20.3438 4.84502 21.5752 6.07612 21.5752 7.59473V9.34473H1.57524V5.59473C1.57524 4.07595 2.80646 2.84473 4.32524 2.84473H8.70708Z"],"FolderOpenFront/l/outline":["M20.0547 10.8447C21.8258 10.8449 23.1349 12.495 22.7325 14.2197L21.9161 17.7197C21.6256 18.9641 20.5161 19.8445 19.2383 19.8447H3.91215C2.63425 19.8446 1.5249 18.9641 1.23442 17.7197L0.418013 14.2197C0.0155275 12.4948 1.32449 10.8447 3.09575 10.8447H20.0547ZM3.09575 12.3447C2.29064 12.3447 1.69502 13.0948 1.87797 13.8789L2.69536 17.3789C2.82746 17.9444 3.33142 18.3446 3.91215 18.3447H19.2383C19.819 18.3445 20.323 17.9444 20.4551 17.3789L21.2725 13.8789C21.4554 13.0951 20.8597 12.3449 20.0547 12.3447H3.09575Z","M8.70708 2.84473C9.42323 2.84481 10.1118 3.1245 10.625 3.62402L11.5157 4.49023C11.749 4.71719 12.0623 4.84473 12.3877 4.84473H18.8252C20.3439 4.8449 21.5752 6.07606 21.5752 7.59473V8.84473C21.5752 9.2588 21.2393 9.59455 20.8252 9.59473C20.411 9.59473 20.0753 9.25891 20.0752 8.84473V7.59473C20.0752 6.90447 19.5155 6.3449 18.8252 6.34473H12.3877C11.6716 6.34473 10.9832 6.06482 10.4698 5.56543L9.57915 4.69922C9.34599 4.47231 9.03259 4.34481 8.70708 4.34473H4.32524C3.63488 4.34473 3.07524 4.90437 3.07524 5.59473V8.84473C3.07521 9.2588 2.73928 9.59455 2.32524 9.59473C1.91105 9.59473 1.57527 9.25891 1.57524 8.84473V5.59473C1.57524 4.07594 2.80646 2.84473 4.32524 2.84473H8.70708Z"],"FolderOpenFront/m/filled":["M13.3693 7.22949C14.55 7.22949 15.4225 8.32964 15.1544 9.47949L14.6105 11.8135C14.4168 12.643 13.6771 13.2294 12.8253 13.2295H2.60755C1.75581 13.2293 1.01611 12.6429 0.822397 11.8135L0.278451 9.47949C0.0103282 8.32966 0.882876 7.22949 2.06361 7.22949H13.3693Z","M5.80482 1.89648C6.28222 1.89658 6.74102 2.08309 7.08314 2.41602L7.67689 2.99316C7.83235 3.14444 8.04099 3.22941 8.25794 3.22949H12.5499C13.5625 3.22953 14.3829 4.05097 14.3829 5.06348V6.22949H1.04994V3.72949C1.05008 2.7172 1.87066 1.89666 2.88294 1.89648H5.80482Z"],"FolderOpenFront/m/outline":["M13.3689 7.10449C14.6301 7.10449 15.5626 8.27959 15.2761 9.50781L14.7322 11.8408C14.5254 12.7271 13.735 13.3545 12.8249 13.3545H2.60715C1.69737 13.3541 0.907654 12.7268 0.700905 11.8408L0.155983 9.50781C-0.130301 8.27973 0.802187 7.10472 2.06321 7.10449H13.3689ZM2.06321 8.35449C1.60732 8.35472 1.27043 8.77959 1.37376 9.22363L1.9177 11.5566C1.99244 11.8769 2.27831 12.1041 2.60715 12.1045H12.8249C13.1541 12.1045 13.4396 11.8772 13.5144 11.5566L14.0593 9.22363C14.1627 8.77953 13.825 8.35449 13.3689 8.35449H2.06321Z","M5.80442 1.77148C6.31426 1.77154 6.80415 1.97064 7.16965 2.32617L7.7634 2.9043C7.89552 3.03283 8.0733 3.10433 8.25755 3.10449H12.5495C13.6311 3.10449 14.5075 3.98193 14.5075 5.06348V5.89648C14.5075 6.24163 14.2277 6.52148 13.8825 6.52148C13.5377 6.52111 13.2576 6.2414 13.2575 5.89648V5.06348C13.2575 4.67227 12.9408 4.35449 12.5495 4.35449H8.25755C7.7477 4.35433 7.25777 4.15537 6.89231 3.7998L6.29856 3.22168C6.16648 3.09322 5.98881 3.02154 5.80442 3.02148H2.88255C2.49177 3.02186 2.17471 3.33867 2.17454 3.72949V5.89648C2.1745 6.24163 1.8947 6.52148 1.54954 6.52148C1.20455 6.52129 0.92457 6.24151 0.924537 5.89648V3.72949C0.924713 2.64831 1.80141 1.77186 2.88255 1.77148H5.80442Z"],"FolderOpenFront/s/filled":["M10.0269 5.42285C10.9125 5.42285 11.567 6.2479 11.3658 7.11035L10.9576 8.86035C10.8122 9.48233 10.2575 9.9228 9.61872 9.92285H1.95564C1.31694 9.92267 0.762123 9.4823 0.616771 8.86035L0.208568 7.11035C0.00734323 6.248 0.661962 5.42303 1.54744 5.42285H10.0269Z","M4.3531 1.42188C4.71123 1.42188 5.05543 1.56275 5.31208 1.8125L5.7574 2.24512C5.87405 2.35863 6.03112 2.42285 6.19392 2.42285H9.41267C10.1719 2.42303 10.7877 3.03857 10.7877 3.79785V4.67285H0.787669V2.79785C0.787669 2.03846 1.40328 1.42188 2.16267 1.42188H4.3531Z"],"FolderOpenFront/s/outline":["M10.0275 5.29785C10.9934 5.29812 11.7069 6.19799 11.4874 7.13867L11.0792 8.88867C10.9206 9.56725 10.3152 10.0479 9.61827 10.0479H1.95617C1.25928 10.0477 0.653769 9.56721 0.495228 8.88867L0.0870248 7.13867C-0.132461 6.19803 0.581184 5.29827 1.54699 5.29785H10.0275ZM1.54699 6.29785C1.22539 6.29827 0.987748 6.59782 1.06066 6.91113L1.46886 8.66113C1.52179 8.88711 1.72403 9.04775 1.95617 9.04785H9.61827C9.85047 9.04785 10.0526 8.88717 10.1056 8.66113L10.5138 6.91113C10.5867 6.59779 10.3492 6.29812 10.0275 6.29785H1.54699Z","M4.35363 1.29688C4.74417 1.29698 5.11959 1.45023 5.39952 1.72266L5.84484 2.15625C5.93812 2.24691 6.06343 2.29779 6.19347 2.29785H9.41222C10.2407 2.29785 10.9122 2.96943 10.9122 3.79785V4.42285C10.912 4.69877 10.6882 4.92285 10.4122 4.92285C10.1363 4.92273 9.91248 4.69869 9.91222 4.42285V3.79785C9.91222 3.5217 9.68837 3.29785 9.41222 3.29785H6.19347C5.80298 3.29779 5.42753 3.14529 5.14757 2.87305L4.70226 2.43945C4.60908 2.34877 4.48374 2.29795 4.35363 2.29785H2.16222C1.88618 2.29797 1.66222 2.52178 1.66222 2.79785V4.42285C1.66196 4.69877 1.4382 4.92285 1.16222 4.92285C0.886345 4.92273 0.662484 4.69869 0.66222 4.42285V2.79785C0.66222 1.9695 1.3339 1.297 2.16222 1.29688H4.35363Z"],"GearSettings/l/filled":["M10.6279 2.6744C11.4773 2.18536 12.5227 2.18536 13.3721 2.6744L19.6222 6.27285C20.4746 6.76365 21 7.67241 21 8.65606V15.3435C21 16.3271 20.4746 17.2359 19.6221 17.7267L13.3721 21.3251C12.5227 21.8141 11.4773 21.8142 10.6279 21.3252L4.37793 17.727C3.52542 17.2362 3 16.3274 3 15.3437V8.65604C3 7.67238 3.5254 6.76363 4.37786 6.27282L10.6279 2.6744ZM8.37503 12C8.37503 9.99797 9.998 8.375 12 8.375C14.0021 8.375 15.625 9.99797 15.625 12C15.625 14.002 14.0021 15.625 12 15.625C9.998 15.625 8.37503 14.002 8.37503 12Z"],"GearSettings/l/outline":["M10.2979 2.29932C11.1472 1.81033 12.1927 1.81028 13.042 2.29932L19.292 5.89697C20.1443 6.38783 20.6699 7.29723 20.6699 8.28076V14.9683C20.6697 15.9517 20.1442 16.8603 19.292 17.3511L13.042 20.9497C12.1928 21.4387 11.1471 21.4384 10.2979 20.9497L4.04785 17.3511C3.19558 16.8603 2.67002 15.9518 2.66992 14.9683V8.28076C2.66992 7.2971 3.19539 6.38778 4.04785 5.89697L10.2979 2.29932ZM12.2939 3.59912C11.908 3.37687 11.4319 3.37692 11.0459 3.59912L4.7959 7.19775C4.40868 7.42091 4.16992 7.83382 4.16992 8.28076V14.9683C4.17002 15.4151 4.40867 15.8281 4.7959 16.0513L11.0459 19.6499C11.4319 19.872 11.908 19.8721 12.2939 19.6499L18.5439 16.0513L18.6816 15.9595C18.987 15.7249 19.1697 15.3594 19.1699 14.9683V8.28076C19.1699 7.83394 18.931 7.42095 18.5439 7.19775L12.2939 3.59912ZM11.6699 7.62451C13.8789 7.62468 15.6699 9.4155 15.6699 11.6245C15.6697 13.8333 13.8788 15.6243 11.6699 15.6245C9.46095 15.6245 7.67015 13.8334 7.66992 11.6245C7.66992 9.4154 9.46081 7.62451 11.6699 7.62451ZM11.6699 9.12451C10.2892 9.12451 9.16992 10.2438 9.16992 11.6245C9.17015 13.005 10.2894 14.1245 11.6699 14.1245C13.0503 14.1243 14.1697 13.0049 14.1699 11.6245C14.1699 10.2439 13.0505 9.12468 11.6699 9.12451Z"],"GearSettings/m/filled":["M7.08527 1.78291C7.65153 1.45688 8.34847 1.45688 8.91473 1.78291L13.0815 4.18188C13.6497 4.50908 14 5.11492 14 5.77068V10.229C14 10.8847 13.6497 11.4906 13.0814 11.8178L8.91473 14.2167C8.34847 14.5427 7.65153 14.5428 7.08527 14.2168L2.91862 11.818C2.35028 11.4908 2 10.8849 2 10.2291V5.77067C2 5.1149 2.35027 4.50906 2.91857 4.18186L7.08527 1.78291ZM5.58335 7.99998C5.58335 6.66529 6.66533 5.58331 8 5.58331C9.33473 5.58331 10.4167 6.66529 10.4167 7.99998C10.4167 9.33464 9.33473 10.4166 8 10.4166C6.66533 10.4166 5.58335 9.33464 5.58335 7.99998Z"],"GearSettings/m/outline":["M6.80176 1.42344C7.40648 1.07525 8.15205 1.0754 8.75684 1.42344L12.9229 3.82285L13.0342 3.89219C13.5753 4.25382 13.9042 4.86358 13.9043 5.52012V9.97813C13.9043 10.6786 13.5299 11.3259 12.9229 11.6754L8.75684 14.0748C8.15201 14.423 7.40652 14.423 6.80176 14.0748L2.63574 11.6754C2.02895 11.3258 1.6543 10.6785 1.6543 9.97813V5.52012C1.65437 4.8198 2.02889 4.17236 2.63574 3.82285L6.80176 1.42344ZM8.13281 2.50742C7.91414 2.38171 7.64439 2.38155 7.42578 2.50742L3.25879 4.90586C3.03953 5.03231 2.90437 5.267 2.9043 5.52012V9.97813C2.9043 10.2312 3.03959 10.4658 3.25879 10.5924L7.42578 12.9908C7.64447 13.1167 7.91412 13.1167 8.13281 12.9908L12.2998 10.5924C12.5193 10.4659 12.6543 10.2314 12.6543 9.97813V5.52012C12.6542 5.26691 12.5192 5.03227 12.2998 4.90586L8.13281 2.50742ZM7.78027 4.95762C9.32179 4.9579 10.5712 6.20805 10.5713 7.74961C10.5711 9.29107 9.32171 10.5404 7.78027 10.5406C6.2386 10.5406 4.98846 9.29124 4.98828 7.74961C4.98833 6.20788 6.23852 4.95762 7.78027 4.95762ZM7.78027 6.20762C6.92888 6.20762 6.23833 6.89823 6.23828 7.74961C6.23846 8.60089 6.92896 9.29063 7.78027 9.29063C8.63135 9.29035 9.32111 8.60072 9.32129 7.74961C9.32124 6.8984 8.63143 6.2079 7.78027 6.20762Z"],"GearSettings/s/filled":["M5.31395 1.3372C5.73865 1.09268 6.26135 1.09268 6.68605 1.3372L9.8111 3.13642C10.2373 3.38182 10.5 3.8362 10.5 4.32803V7.67175C10.5 8.16355 10.2373 8.61795 9.81105 8.86335L6.68605 10.6625C6.26135 10.907 5.73865 10.9071 5.31395 10.6626L2.18897 8.8635C1.76271 8.6181 1.5 8.1637 1.5 7.67185V4.32802C1.5 3.83619 1.7627 3.38181 2.18893 3.13641L5.31395 1.3372ZM4.18751 6C4.18751 4.99898 4.999 4.1875 6 4.1875C7.00105 4.1875 7.8125 4.99898 7.8125 6C7.8125 7.001 7.00105 7.8125 6 7.8125C4.999 7.8125 4.18751 7.001 4.18751 6Z"],"GearSettings/s/outline":["M5.08691 1.0413C5.55008 0.77473 6.11984 0.774725 6.58301 1.0413L9.70801 2.84013C10.1728 3.1078 10.4598 3.60361 10.46 4.13993V7.48368C10.4599 8.02016 10.1729 8.51578 9.70801 8.78349L6.58301 10.5833C6.11993 10.8498 5.54998 10.8497 5.08691 10.5833L1.96191 8.78446C1.49701 8.51677 1.21003 8.02018 1.20996 7.48368V4.13993C1.2101 3.60353 1.49705 3.10777 1.96191 2.84013L5.08691 1.0413ZM6.08398 1.90751C5.92981 1.81894 5.74011 1.81895 5.58594 1.90751L2.46094 3.70731C2.30605 3.79649 2.2101 3.96123 2.20996 4.13993V7.48368C2.21003 7.66244 2.30595 7.82803 2.46094 7.91727L5.58594 9.7161C5.74026 9.8048 5.92971 9.80489 6.08398 9.7161L9.20898 7.91727C9.36395 7.82804 9.4599 7.66245 9.45996 7.48368V4.13993C9.45982 3.9613 9.36377 3.79651 9.20898 3.70731L6.08398 1.90751ZM5.83496 3.68681C7.00844 3.68687 7.95986 4.63834 7.95996 5.81181C7.95996 6.98536 7.0085 7.93674 5.83496 7.93681C4.66137 7.93681 3.70996 6.9854 3.70996 5.81181C3.71006 4.6383 4.66143 3.68681 5.83496 3.68681ZM5.83496 4.68681C5.21371 4.68681 4.71006 5.19058 4.70996 5.81181C4.70996 6.43311 5.21365 6.93681 5.83496 6.93681C6.45621 6.93674 6.95996 6.43307 6.95996 5.81181C6.95986 5.19062 6.45615 4.68687 5.83496 4.68681Z"],"GitBranch/l/filled":["M6.5 3C4.84315 3 3.5 4.34315 3.5 6C3.5 7.39788 4.45608 8.57245 5.75 8.90549V15.0945C4.45608 15.4275 3.5 16.6021 3.5 18C3.5 19.6569 4.84315 21 6.5 21C8.15685 21 9.5 19.6569 9.5 18C9.5 16.6021 8.54392 15.4275 7.25 15.0945V14C7.25 13.3096 7.80964 12.75 8.5 12.75H15.5C17.0188 12.75 18.25 11.5188 18.25 10V8.90549C19.5439 8.57245 20.5 7.39788 20.5 6C20.5 4.34315 19.1569 3 17.5 3C15.8431 3 14.5 4.34315 14.5 6C14.5 7.39788 15.4561 8.57245 16.75 8.90549V10C16.75 10.6904 16.1904 11.25 15.5 11.25H8.5C8.04989 11.25 7.62503 11.3581 7.25 11.5499V8.90549C8.54392 8.57245 9.5 7.39788 9.5 6C9.5 4.34315 8.15685 3 6.5 3Z"],"GitBranch/l/outline":["M17.5 3C19.1569 3 20.5 4.34315 20.5 6C20.5 7.39752 19.5434 8.56799 18.25 8.90137V10C18.25 11.5188 17.0188 12.75 15.5 12.75H8.5C7.80964 12.75 7.25 13.3096 7.25 14V15.0977C8.54354 15.431 9.5 16.6024 9.5 18C9.5 19.6569 8.15685 21 6.5 21C4.84315 21 3.5 19.6569 3.5 18C3.5 16.6024 4.45647 15.431 5.75 15.0977V8.90137C4.45658 8.56799 3.5 7.39752 3.5 6C3.5 4.34315 4.84315 3 6.5 3C8.15685 3 9.5 4.34315 9.5 6C9.5 7.39752 8.54342 8.56799 7.25 8.90137V11.5527C7.62532 11.3606 8.04942 11.25 8.5 11.25H15.5C16.1904 11.25 16.75 10.6904 16.75 10V8.90137C15.4566 8.56799 14.5 7.39752 14.5 6C14.5 4.34315 15.8431 3 17.5 3ZM6.5 16.5C5.67157 16.5 5 17.1716 5 18C5 18.8284 5.67157 19.5 6.5 19.5C7.32843 19.5 8 18.8284 8 18C8 17.1716 7.32843 16.5 6.5 16.5ZM6.5 4.5C5.67157 4.5 5 5.17157 5 6C5 6.82843 5.67157 7.5 6.5 7.5C7.32843 7.5 8 6.82843 8 6C8 5.17157 7.32843 4.5 6.5 4.5ZM17.5 4.5C16.6716 4.5 16 5.17157 16 6C16 6.82843 16.6716 7.5 17.5 7.5C18.3284 7.5 19 6.82843 19 6C19 5.17157 18.3284 4.5 17.5 4.5Z"],"GitBranch/m/filled":["M4.33337 2C3.22881 2 2.33337 2.89543 2.33337 4C2.33337 4.93192 2.97076 5.71497 3.83337 5.93699V10.063C2.97076 10.285 2.33337 11.0681 2.33337 12C2.33337 13.1046 3.22881 14 4.33337 14C5.43794 14 6.33337 13.1046 6.33337 12C6.33337 11.0681 5.69599 10.285 4.83337 10.063V9.33333C4.83337 8.87307 5.20647 8.5 5.66671 8.5H10.3334C11.3459 8.5 12.1667 7.6792 12.1667 6.66667V5.93699C13.0293 5.71497 13.6667 4.93192 13.6667 4C13.6667 2.89543 12.7713 2 11.6667 2C10.5621 2 9.66671 2.89543 9.66671 4C9.66671 4.93192 10.3041 5.71497 11.1667 5.93699V6.66667C11.1667 7.12693 10.7936 7.5 10.3334 7.5H5.66671C5.36663 7.5 5.08339 7.57207 4.83337 7.69993V5.93699C5.69599 5.71497 6.33337 4.93192 6.33337 4C6.33337 2.89543 5.43794 2 4.33337 2Z"],"GitBranch/m/outline":["M11.667 1.875C12.8404 1.8752 13.792 2.82652 13.792 4C13.792 4.95626 13.1598 5.7645 12.291 6.03125V6.66699C12.2908 7.74842 11.4145 8.625 10.333 8.625H5.66602C5.27523 8.62537 4.95818 8.94217 4.95801 9.33301V9.96875C5.82671 10.2356 6.45801 11.0438 6.45801 12C6.45801 13.1736 5.50661 14.125 4.33301 14.125C3.15957 14.1248 2.20801 13.1735 2.20801 12C2.20801 11.0441 2.83965 10.2358 3.70801 9.96875V6.03027C2.83979 5.76316 2.20801 4.95583 2.20801 4C2.20801 2.82652 3.15957 1.8752 4.33301 1.875C5.50661 1.875 6.45801 2.82639 6.45801 4C6.45801 4.95608 5.82657 5.76337 4.95801 6.03027V7.50879C5.17773 7.42339 5.41613 7.37509 5.66602 7.375H10.333C10.7241 7.375 11.0408 7.05806 11.041 6.66699V6.03027C10.1729 5.76309 9.54199 4.95575 9.54199 4C9.54199 2.82639 10.4934 1.875 11.667 1.875ZM4.33301 11.125C3.84993 11.1252 3.45801 11.5169 3.45801 12C3.45801 12.4831 3.84993 12.8748 4.33301 12.875C4.81626 12.875 5.20801 12.4832 5.20801 12C5.20801 11.5168 4.81626 11.125 4.33301 11.125ZM4.33301 3.125C3.84993 3.1252 3.45801 3.51687 3.45801 4C3.45801 4.48313 3.84993 4.8748 4.33301 4.875C4.81626 4.875 5.20801 4.48325 5.20801 4C5.20801 3.51675 4.81626 3.125 4.33301 3.125ZM11.667 3.125C11.1837 3.125 10.792 3.51675 10.792 4C10.792 4.48325 11.1837 4.875 11.667 4.875C12.1501 4.8748 12.542 4.48313 12.542 4C12.542 3.51687 12.1501 3.1252 11.667 3.125Z"],"GitBranch/s/filled":["M3.25 1.5C2.42158 1.5 1.75 2.17158 1.75 3C1.75 3.69894 2.22804 4.28622 2.875 4.45274V7.54725C2.22804 7.71375 1.75 8.30105 1.75 9C1.75 9.82845 2.42158 10.5 3.25 10.5C4.07842 10.5 4.75 9.82845 4.75 9C4.75 8.30105 4.27196 7.71375 3.625 7.54725V7C3.625 6.6548 3.90482 6.375 4.25 6.375H7.75C8.5094 6.375 9.125 5.7594 9.125 5V4.45274C9.77195 4.28622 10.25 3.69894 10.25 3C10.25 2.17158 9.57845 1.5 8.75 1.5C7.92155 1.5 7.25 2.17158 7.25 3C7.25 3.69894 7.72805 4.28622 8.375 4.45274V5C8.375 5.3452 8.0952 5.625 7.75 5.625H4.25C4.02495 5.625 3.81252 5.67905 3.625 5.77495V4.45274C4.27196 4.28622 4.75 3.69894 4.75 3C4.75 2.17158 4.07842 1.5 3.25 1.5Z"],"GitBranch/s/outline":["M8.75 1.375C9.64746 1.375 10.375 2.10254 10.375 3C10.375 3.72283 9.90256 4.33388 9.25 4.54492V5C9.25 5.82844 8.57844 6.5 7.75 6.5H4.25C3.97385 6.5 3.75 6.72385 3.75 7V7.4541C4.40271 7.66506 4.875 8.27707 4.875 9C4.875 9.89746 4.14746 10.625 3.25 10.625C2.35254 10.625 1.625 9.89746 1.625 9C1.625 8.27707 2.09729 7.66506 2.75 7.4541V4.54492C2.09744 4.33388 1.625 3.72283 1.625 3C1.625 2.10254 2.35254 1.375 3.25 1.375C4.14746 1.375 4.875 2.10254 4.875 3C4.875 3.72283 4.40256 4.33388 3.75 4.54492V5.58691C3.90653 5.53153 4.0745 5.5 4.25 5.5H7.75C8.02616 5.5 8.25 5.27616 8.25 5V4.54492C7.59744 4.33388 7.125 3.72283 7.125 3C7.125 2.10254 7.85254 1.375 8.75 1.375ZM3.25 8.375C2.90482 8.375 2.625 8.65482 2.625 9C2.625 9.34518 2.90482 9.625 3.25 9.625C3.59518 9.625 3.875 9.34518 3.875 9C3.875 8.65482 3.59518 8.375 3.25 8.375ZM3.25 2.375C2.90482 2.375 2.625 2.65482 2.625 3C2.625 3.34518 2.90482 3.625 3.25 3.625C3.59518 3.625 3.875 3.34518 3.875 3C3.875 2.65482 3.59518 2.375 3.25 2.375ZM8.75 2.375C8.40482 2.375 8.125 2.65482 8.125 3C8.125 3.34518 8.40482 3.625 8.75 3.625C9.09518 3.625 9.375 3.34518 9.375 3C9.375 2.65482 9.09518 2.375 8.75 2.375Z"],"GitDraftPullRequestPR/l/filled":["M6.5 3C8.15685 3 9.5 4.34315 9.5 6C9.5 7.39786 8.54389 8.57222 7.25 8.90527V15.0947C8.54389 15.4277 9.5 16.6021 9.5 18C9.5 19.6569 8.15685 21 6.5 21C4.84315 21 3.5 19.6569 3.5 18C3.5 16.6021 4.45611 15.4277 5.75 15.0947V8.90527C4.45611 8.57222 3.5 7.39786 3.5 6C3.5 4.34315 4.84315 3 6.5 3ZM17.5 15C19.1569 15 20.5 16.3431 20.5 18C20.5 19.6569 19.1569 21 17.5 21C15.8431 21 14.5 19.6569 14.5 18C14.5 16.3431 15.8431 15 17.5 15ZM17.5 9.75C18.3284 9.75 19 10.4216 19 11.25C19 12.0784 18.3284 12.75 17.5 12.75C16.6716 12.75 16 12.0784 16 11.25C16 10.4216 16.6716 9.75 17.5 9.75ZM17.5 4.5C18.3284 4.5 19 5.17157 19 6C19 6.82843 18.3284 7.5 17.5 7.5C16.6716 7.5 16 6.82843 16 6C16 5.17157 16.6716 4.5 17.5 4.5Z"],"GitDraftPullRequestPR/l/outline":["M6.5 3C8.15685 3 9.5 4.34315 9.5 6C9.5 7.39752 8.54342 8.56799 7.25 8.90137V15.0977C8.54354 15.431 9.5 16.6024 9.5 18C9.5 19.6569 8.15685 21 6.5 21C4.84315 21 3.5 19.6569 3.5 18C3.5 16.6024 4.45647 15.431 5.75 15.0977V8.90137C4.45658 8.56799 3.5 7.39752 3.5 6C3.5 4.34315 4.84315 3 6.5 3ZM17.5 15C19.1569 15 20.5 16.3431 20.5 18C20.5 19.6569 19.1569 21 17.5 21C15.8431 21 14.5 19.6569 14.5 18C14.5 16.3431 15.8431 15 17.5 15ZM6.5 16.5C5.67157 16.5 5 17.1716 5 18C5 18.8284 5.67157 19.5 6.5 19.5C7.32843 19.5 8 18.8284 8 18C8 17.1716 7.32843 16.5 6.5 16.5ZM17.5 16.5C16.6716 16.5 16 17.1716 16 18C16 18.8284 16.6716 19.5 17.5 19.5C18.3284 19.5 19 18.8284 19 18C19 17.1716 18.3284 16.5 17.5 16.5ZM17.5 9.75C18.3284 9.75 19 10.4216 19 11.25C19 12.0784 18.3284 12.75 17.5 12.75C16.6716 12.75 16 12.0784 16 11.25C16 10.4216 16.6716 9.75 17.5 9.75ZM6.5 4.5C5.67157 4.5 5 5.17157 5 6C5 6.82843 5.67157 7.5 6.5 7.5C7.32843 7.5 8 6.82843 8 6C8 5.17157 7.32843 4.5 6.5 4.5ZM17.5 4.5C18.3284 4.5 19 5.17157 19 6C19 6.82843 18.3284 7.5 17.5 7.5C16.6716 7.5 16 6.82843 16 6C16 5.17157 16.6716 4.5 17.5 4.5Z"],"GitDraftPullRequestPR/m/filled":["M4.33301 2C5.43757 2 6.33301 2.89543 6.33301 4C6.33301 4.93192 5.69562 5.7145 4.83301 5.93652V10.0635C5.69562 10.2855 6.33301 11.0681 6.33301 12C6.33301 13.1046 5.43757 14 4.33301 14C3.22861 13.9998 2.33301 13.1045 2.33301 12C2.33301 11.0682 2.97063 10.2856 3.83301 10.0635V5.93652C2.97063 5.71434 2.33301 4.93176 2.33301 4C2.33301 2.89556 3.22861 2.0002 4.33301 2ZM11.667 10C12.7714 10.0002 13.667 10.8955 13.667 12C13.667 13.1045 12.7714 13.9998 11.667 14C10.5624 14 9.66699 13.1046 9.66699 12C9.66699 10.8954 10.5624 10 11.667 10ZM11.667 6.5C12.2191 6.5002 12.667 6.94786 12.667 7.5C12.667 8.05214 12.2191 8.4998 11.667 8.5C11.1147 8.5 10.667 8.05227 10.667 7.5C10.667 6.94773 11.1147 6.5 11.667 6.5ZM11.667 3C12.2191 3.0002 12.667 3.44784 12.667 4C12.667 4.55216 12.2191 4.9998 11.667 5C11.1147 5 10.667 4.55229 10.667 4C10.667 3.44771 11.1147 3 11.667 3Z"],"GitDraftPullRequestPR/m/outline":["M4.33301 1.875C5.50661 1.875 6.45801 2.82639 6.45801 4C6.45801 4.95608 5.82657 5.76337 4.95801 6.03027V9.96875C5.82671 10.2356 6.45801 11.0438 6.45801 12C6.45801 13.1736 5.50661 14.125 4.33301 14.125C3.15957 14.1248 2.20801 13.1735 2.20801 12C2.20801 11.0441 2.83965 10.2358 3.70801 9.96875V6.03027C2.83979 5.76316 2.20801 4.95583 2.20801 4C2.20801 2.82652 3.15957 1.8752 4.33301 1.875ZM11.667 9.875C12.8404 9.8752 13.792 10.8265 13.792 12C13.792 13.1735 12.8404 14.1248 11.667 14.125C10.4934 14.125 9.54199 13.1736 9.54199 12C9.54199 10.8264 10.4934 9.875 11.667 9.875ZM4.33301 11.125C3.84993 11.1252 3.45801 11.5169 3.45801 12C3.45801 12.4831 3.84993 12.8748 4.33301 12.875C4.81626 12.875 5.20801 12.4832 5.20801 12C5.20801 11.5168 4.81626 11.125 4.33301 11.125ZM11.667 11.125C11.1837 11.125 10.792 11.5168 10.792 12C10.792 12.4832 11.1837 12.875 11.667 12.875C12.1501 12.8748 12.542 12.4831 12.542 12C12.542 11.5169 12.1501 11.1252 11.667 11.125ZM11.667 6.375C12.2881 6.3752 12.792 6.87881 12.792 7.5C12.792 8.12119 12.2881 8.6248 11.667 8.625C11.0457 8.625 10.542 8.12131 10.542 7.5C10.542 6.87869 11.0457 6.375 11.667 6.375ZM11.667 7.375C11.5979 7.375 11.542 7.43096 11.542 7.5C11.542 7.56904 11.5979 7.625 11.667 7.625C11.7359 7.6248 11.792 7.56892 11.792 7.5C11.792 7.43108 11.7359 7.3752 11.667 7.375ZM11.667 2.875C12.2881 2.8752 12.792 3.3788 12.792 4C12.792 4.6212 12.2881 5.1248 11.667 5.125C11.0457 5.125 10.542 4.62132 10.542 4C10.542 3.37868 11.0457 2.875 11.667 2.875ZM4.33301 3.125C3.84993 3.1252 3.45801 3.51687 3.45801 4C3.45801 4.48313 3.84993 4.8748 4.33301 4.875C4.81626 4.875 5.20801 4.48325 5.20801 4C5.20801 3.51675 4.81626 3.125 4.33301 3.125ZM11.667 3.875C11.598 3.875 11.542 3.93096 11.542 4C11.542 4.06904 11.598 4.125 11.667 4.125C11.7359 4.1248 11.792 4.06892 11.792 4C11.792 3.93108 11.7359 3.8752 11.667 3.875Z"],"GitDraftPullRequestPR/s/filled":["M3.25 1.5C4.07842 1.5 4.75 2.17158 4.75 3C4.75 3.69894 4.27196 4.2866 3.625 4.45312V7.54688C4.27196 7.71338 4.75 8.30105 4.75 9C4.75 9.82845 4.07842 10.5 3.25 10.5C2.42158 10.5 1.75 9.82845 1.75 9C1.75 8.30105 2.22804 7.71338 2.875 7.54688V4.45312C2.22804 4.2866 1.75 3.69894 1.75 3C1.75 2.17158 2.42158 1.5 3.25 1.5ZM8.75 7.5C9.57845 7.5 10.25 8.17155 10.25 9C10.25 9.82845 9.57845 10.5 8.75 10.5C7.92155 10.5 7.25 9.82845 7.25 9C7.25 8.17155 7.92155 7.5 8.75 7.5ZM8.75 4.875C9.1642 4.875 9.5 5.2108 9.5 5.625C9.5 6.0392 9.1642 6.375 8.75 6.375C8.3358 6.375 8 6.0392 8 5.625C8 5.2108 8.3358 4.875 8.75 4.875ZM8.75 2.25C9.1642 2.25 9.5 2.58579 9.5 3C9.5 3.41421 9.1642 3.75 8.75 3.75C8.3358 3.75 8 3.41421 8 3C8 2.58579 8.3358 2.25 8.75 2.25Z"],"GitDraftPullRequestPR/s/outline":["M3.25 1.375C4.14746 1.375 4.875 2.10254 4.875 3C4.875 3.72283 4.40256 4.33388 3.75 4.54492V7.4541C4.40271 7.66506 4.875 8.27707 4.875 9C4.875 9.89746 4.14746 10.625 3.25 10.625C2.35254 10.625 1.625 9.89746 1.625 9C1.625 8.27707 2.09729 7.66506 2.75 7.4541V4.54492C2.09744 4.33388 1.625 3.72283 1.625 3C1.625 2.10254 2.35254 1.375 3.25 1.375ZM8.75 7.375C9.64746 7.375 10.375 8.10254 10.375 9C10.375 9.89746 9.64746 10.625 8.75 10.625C7.85254 10.625 7.125 9.89746 7.125 9C7.125 8.10254 7.85254 7.375 8.75 7.375ZM3.25 8.375C2.90482 8.375 2.625 8.65482 2.625 9C2.625 9.34518 2.90482 9.625 3.25 9.625C3.59518 9.625 3.875 9.34518 3.875 9C3.875 8.65482 3.59518 8.375 3.25 8.375ZM8.75 8.375C8.40482 8.375 8.125 8.65482 8.125 9C8.125 9.34518 8.40482 9.625 8.75 9.625C9.09518 9.625 9.375 9.34518 9.375 9C9.375 8.65482 9.09518 8.375 8.75 8.375ZM8.75 4.75C9.23324 4.75 9.625 5.14176 9.625 5.625C9.625 6.10824 9.23324 6.5 8.75 6.5C8.26676 6.5 7.875 6.10824 7.875 5.625C7.875 5.14176 8.26676 4.75 8.75 4.75ZM8.75 5.5C8.68096 5.5 8.625 5.55596 8.625 5.625C8.625 5.69404 8.68096 5.75 8.75 5.75C8.81904 5.75 8.875 5.69404 8.875 5.625C8.875 5.55596 8.81904 5.5 8.75 5.5ZM8.75 2.125C9.23324 2.125 9.625 2.51675 9.625 3C9.625 3.48325 9.23324 3.875 8.75 3.875C8.26676 3.875 7.875 3.48325 7.875 3C7.875 2.51675 8.26676 2.125 8.75 2.125ZM3.25 2.375C2.90482 2.375 2.625 2.65482 2.625 3C2.625 3.34518 2.90482 3.625 3.25 3.625C3.59518 3.625 3.875 3.34518 3.875 3C3.875 2.65482 3.59518 2.375 3.25 2.375ZM8.75 2.875C8.68096 2.875 8.625 2.93096 8.625 3C8.625 3.06904 8.68096 3.125 8.75 3.125C8.81904 3.125 8.875 3.06904 8.875 3C8.875 2.93096 8.81904 2.875 8.75 2.875Z"],"GitMergeConflict/l/filled":["M16.0001 5.25006C17.5188 5.25019 18.7501 6.48136 18.7501 8.00006V14.3243C20.4618 14.6718 21.7501 16.1859 21.7501 18.0001C21.75 20.071 20.071 21.75 18.0001 21.7501C15.9291 21.7501 14.2502 20.0711 14.2501 18.0001C14.2501 16.1859 15.5384 14.6717 17.2501 14.3243V8.00006C17.2501 7.30979 16.6904 6.75019 16.0001 6.75006H11.7501C11.3359 6.75006 11.0002 6.4142 11.0001 6.00006C11.0001 5.58585 11.3359 5.25006 11.7501 5.25006H16.0001Z","M6.00006 11.0001C6.41423 11.0002 6.75006 11.3359 6.75006 11.7501V20.2501C6.74994 20.6642 6.41415 21 6.00006 21.0001C5.58593 21.0001 5.25019 20.6642 5.25006 20.2501V11.7501C5.25006 11.3359 5.58585 11.0001 6.00006 11.0001Z","M7.96979 2.96979C8.26268 2.6769 8.73744 2.6769 9.03034 2.96979C9.32305 3.2627 9.32317 3.7375 9.03034 4.03034L7.06061 6.00006L9.03034 7.96979C9.32305 8.2627 9.32317 8.7375 9.03034 9.03034C8.7375 9.32317 8.2627 9.32305 7.96979 9.03034L6.00006 7.06061L4.03034 9.03034C3.7375 9.32317 3.2627 9.32305 2.96979 9.03034C2.6769 8.73744 2.6769 8.26268 2.96979 7.96979L4.93952 6.00006L2.96979 4.03034C2.6769 3.73744 2.6769 3.26268 2.96979 2.96979C3.26268 2.6769 3.73744 2.6769 4.03034 2.96979L6.00006 4.93952L7.96979 2.96979Z"],"GitMergeConflict/l/outline":["M16 5.25006C17.5188 5.25009 18.75 6.4813 18.75 8.00006V14.3243C20.4618 14.6717 21.75 16.1858 21.75 18.0001C21.75 20.0711 20.0711 21.75 18 21.7501C15.9289 21.7501 14.25 20.0711 14.25 18.0001C14.25 16.1857 15.5382 14.6717 17.25 14.3243V8.00006C17.25 7.30972 16.6904 6.75009 16 6.75006H11.75C11.3358 6.75006 11 6.41425 11 6.00006C11 5.58585 11.3358 5.25006 11.75 5.25006H16ZM6 11.0001C6.41419 11.0001 6.75 11.3359 6.75 11.7501V20.2501C6.74997 20.6642 6.41417 21 6 21.0001C5.58581 21.0001 5.25003 20.6642 5.25 20.2501V11.7501C5.25 11.3358 5.58579 11.0001 6 11.0001ZM18 15.7501C16.7573 15.7501 15.75 16.7574 15.75 18.0001C15.75 19.2427 16.7573 20.2501 18 20.2501C19.2426 20.25 20.25 19.2427 20.25 18.0001C20.25 16.7574 19.2427 15.7501 18 15.7501ZM7.96973 2.96979C8.26262 2.67689 8.73738 2.67689 9.03027 2.96979C9.32311 3.26269 9.32315 3.73746 9.03027 4.03033L7.06055 6.00006L9.03027 7.96979C9.32311 8.26269 9.32315 8.73746 9.03027 9.03033C8.7374 9.32321 8.26262 9.32317 7.96973 9.03033L6 7.06061L4.03027 9.03033C3.7374 9.32321 3.26262 9.32317 2.96973 9.03033C2.67683 8.73744 2.67683 8.26268 2.96973 7.96979L4.93945 6.00006L2.96973 4.03033C2.67683 3.73744 2.67683 3.26268 2.96973 2.96979C3.26262 2.67689 3.73738 2.67689 4.03027 2.96979L6 4.93951L7.96973 2.96979Z"],"GitMergeConflict/m/filled":["M10.6662 3.50021C11.6787 3.50023 12.5001 4.32075 12.5001 5.33322V9.54904C13.6412 9.78072 14.5001 10.7908 14.5001 12.0002C14.5 13.3807 13.3807 14.5001 12.0001 14.5002C10.6196 14.5002 9.50036 13.3808 9.50014 12.0002C9.50014 10.7907 10.359 9.78064 11.5001 9.54904V5.33322C11.5001 4.87304 11.1264 4.50023 10.6662 4.50021H7.83315C7.55712 4.50019 7.33335 4.27621 7.33315 4.00021C7.33315 3.72409 7.55704 3.50024 7.83315 3.50021H10.6662Z","M4.00014 7.33322C4.27616 7.3334 4.50011 7.55718 4.50014 7.83322V13.5002C4.49998 13.7762 4.27607 14.0001 4.00014 14.0002C3.72411 14.0002 3.50031 13.7762 3.50014 13.5002V7.83322C3.50017 7.55712 3.72402 7.33322 4.00014 7.33322Z","M5.31264 1.97971C5.50781 1.78454 5.82439 1.78471 6.01967 1.97971C6.21489 2.17497 6.21492 2.49148 6.01967 2.68674L4.70717 4.00021L6.01967 5.31271C6.21489 5.50798 6.21492 5.82449 6.01967 6.01975C5.82442 6.21497 5.5079 6.21496 5.31264 6.01975L4.00014 4.70725L2.68667 6.01975C2.49141 6.21499 2.1749 6.21497 1.97963 6.01975C1.78464 5.82446 1.78446 5.50789 1.97963 5.31271L3.29311 4.00021L1.97963 2.68674C1.78448 2.49147 1.78443 2.17493 1.97963 1.97971C2.17486 1.78448 2.49139 1.78455 2.68667 1.97971L4.00014 3.29318L5.31264 1.97971Z"],"GitMergeConflict/m/outline":["M10.6667 3.37471C11.7479 3.3749 12.6253 4.25156 12.6257 5.33272V9.45283C13.7729 9.73368 14.6246 10.7659 14.6247 11.9997C14.6247 13.4495 13.4495 14.6247 11.9997 14.6247C10.55 14.6246 9.3747 13.4494 9.3747 11.9997C9.37482 10.7654 10.2277 9.7332 11.3757 9.45283V5.33272C11.3753 4.9419 11.0575 4.6249 10.6667 4.62471H7.83368C7.4885 4.62471 7.20868 4.34489 7.20868 3.99971C7.20883 3.65466 7.48859 3.37471 7.83368 3.37471H10.6667ZM11.9997 10.6247C11.2405 10.6248 10.6248 11.2405 10.6247 11.9997C10.6247 12.759 11.2404 13.3746 11.9997 13.3747C12.7591 13.3747 13.3747 12.7591 13.3747 11.9997C13.3745 11.2404 12.759 10.6247 11.9997 10.6247Z","M3.9997 7.20869C4.34488 7.20869 4.6247 7.48851 4.6247 7.83369V13.5007C4.62431 13.8455 4.34463 14.1257 3.9997 14.1257C3.65488 14.1255 3.37509 13.8454 3.3747 13.5007V7.83369C3.3747 7.4886 3.65464 7.20883 3.9997 7.20869Z","M5.22528 1.89131C5.46933 1.64761 5.86509 1.6475 6.10907 1.89131C6.35277 2.13542 6.35302 2.53212 6.10907 2.77608L4.88446 3.99971L6.10907 5.22529C6.35261 5.46942 6.35297 5.86519 6.10907 6.10908C5.86517 6.35296 5.4694 6.35262 5.22528 6.10908L3.9997 4.88447L2.77606 6.10908C2.53211 6.35301 2.1354 6.35278 1.8913 6.10908C1.6475 5.86511 1.64762 5.46935 1.8913 5.22529L3.11591 3.99971L1.8913 2.77608C1.64723 2.53201 1.64724 2.13539 1.8913 1.89131C2.13538 1.64723 2.53199 1.64723 2.77606 1.89131L3.9997 3.11592L5.22528 1.89131Z"],"GitMergeConflict/s/filled":["M7.99973 2.62479C8.75905 2.6248 9.3746 3.24051 9.37473 3.99979V7.1619C10.2306 7.33558 10.8746 8.09278 10.8747 8.99979C10.8747 10.0353 10.0353 10.8748 8.99973 10.8748C7.96433 10.8747 7.12478 10.0353 7.12473 8.99979C7.12483 8.09284 7.76903 7.33565 8.62473 7.1619V3.99979C8.6246 3.65473 8.34485 3.3748 7.99973 3.37479H5.87473C5.66773 3.37466 5.49978 3.20681 5.49973 2.99979C5.49985 2.79286 5.66781 2.62491 5.87473 2.62479H7.99973Z","M2.99973 5.49979C3.20677 5.49984 3.37464 5.66776 3.37473 5.87479V10.1248C3.37471 10.3319 3.20681 10.4998 2.99973 10.4998C2.79274 10.4997 2.62474 10.3318 2.62473 10.1248V5.87479C2.62482 5.66784 2.79278 5.49991 2.99973 5.49979Z","M3.98508 1.48514C4.13152 1.33869 4.3689 1.33869 4.51535 1.48514C4.66148 1.63161 4.66169 1.86907 4.51535 2.01541L3.53 2.99979L4.51535 3.98514C4.66148 4.13161 4.66169 4.36907 4.51535 4.51541C4.36901 4.66175 4.13155 4.66154 3.98508 4.51541L2.99973 3.53006L2.01535 4.51541C1.86901 4.66175 1.63155 4.66154 1.48508 4.51541C1.33863 4.36896 1.33863 4.13158 1.48508 3.98514L2.46945 2.99979L1.48508 2.01541C1.33863 1.86896 1.33863 1.63158 1.48508 1.48514C1.63152 1.33869 1.8689 1.33869 2.01535 1.48514L2.99973 2.46951L3.98508 1.48514Z"],"GitMergeConflict/s/outline":["M8.00008 2.50002C8.82851 2.50004 9.50008 3.17161 9.50008 4.00002V7.06545C10.3624 7.28769 11.0001 8.06831 11.0001 9.00002C11.0001 10.1046 10.1046 11 9.00008 11C7.8955 11 7.0001 10.1046 7.00008 9.00002C7.00008 8.06828 7.63774 7.28766 8.50008 7.06545V4.00002C8.50008 3.72389 8.27622 3.50004 8.00008 3.50002H5.87508C5.59895 3.50002 5.3751 3.27615 5.37508 3.00002C5.37508 2.72388 5.59894 2.50002 5.87508 2.50002H8.00008ZM9.00008 8.00002C8.44778 8.00002 8.00008 8.44772 8.00008 9.00002C8.0001 9.55231 8.44779 10 9.00008 10C9.55236 10 10.0001 9.5523 10.0001 9.00002C10.0001 8.44773 9.55237 8.00004 9.00008 8.00002Z","M3.00008 5.37502C3.27621 5.37504 3.50008 5.59889 3.50008 5.87502V10.125C3.50006 10.4011 3.2762 10.625 3.00008 10.625C2.72395 10.625 2.5001 10.4011 2.50008 10.125V5.87502C2.50008 5.59888 2.72394 5.37502 3.00008 5.37502Z","M3.89657 1.39651C4.09183 1.20125 4.40834 1.20125 4.6036 1.39651C4.79882 1.59177 4.79885 1.90829 4.6036 2.10354L3.70712 3.00002L4.6036 3.89651C4.79882 4.09177 4.79885 4.40829 4.6036 4.60354C4.40835 4.79879 4.09183 4.79876 3.89657 4.60354L3.00008 3.70705L2.1036 4.60354C1.90835 4.79879 1.59183 4.79876 1.39657 4.60354C1.20131 4.40828 1.20131 4.09177 1.39657 3.89651L2.29305 3.00002L1.39657 2.10354C1.20131 1.90828 1.20131 1.59177 1.39657 1.39651C1.59183 1.20125 1.90834 1.20125 2.1036 1.39651L3.00008 2.29299L3.89657 1.39651Z"],"GitMergedSimple/l/filled":["M6 2.25C8.07107 2.25 9.75 3.92893 9.75 6C9.75 7.80379 8.47626 9.30921 6.7793 9.66797C7.10174 13.6911 10.3081 16.8968 14.3311 17.2197C14.6901 15.5231 16.1965 14.25 18 14.25C20.0711 14.25 21.75 15.9289 21.75 18C21.75 20.0711 20.0711 21.75 18 21.75C16.1765 21.75 14.6575 20.4484 14.3203 18.7236C11.1295 18.5038 8.36301 16.7504 6.75 14.1934V20.5C6.75 20.9142 6.41421 21.25 6 21.25C5.58579 21.25 5.25 20.9142 5.25 20.5V9.6748C3.53834 9.32734 2.25 7.81421 2.25 6C2.25 3.92893 3.92893 2.25 6 2.25Z"],"GitMergedSimple/l/outline":["M6 2.25C8.07106 2.25 9.75 3.92894 9.75 6C9.75 7.80378 8.47626 9.30921 6.7793 9.66797C7.10174 13.6911 10.308 16.8968 14.3311 17.2197C14.6901 15.5231 16.1964 14.25 18 14.25C20.0711 14.25 21.75 15.9289 21.75 18C21.75 20.0711 20.0711 21.75 18 21.75C16.1765 21.75 14.6575 20.4484 14.3203 18.7236C11.1294 18.5038 8.363 16.7504 6.75 14.1934V20.5C6.75 20.9142 6.41421 21.25 6 21.25C5.58579 21.25 5.25 20.9142 5.25 20.5V9.6748C3.53834 9.32734 2.25 7.8142 2.25 6C2.25 3.92894 3.92894 2.25 6 2.25ZM18 15.75C16.7573 15.75 15.75 16.7573 15.75 18C15.75 19.2427 16.7573 20.25 18 20.25C19.2427 20.25 20.25 19.2427 20.25 18C20.25 16.7573 19.2427 15.75 18 15.75ZM6 3.75C4.75736 3.75 3.75 4.75736 3.75 6C3.75 7.24264 4.75736 8.25 6 8.25C7.24264 8.25 8.25 7.24264 8.25 6C8.25 4.75736 7.24264 3.75 6 3.75Z"],"GitMergedSimple/m/filled":["M4 1.5C5.38071 1.5 6.5 2.61929 6.5 4C6.5 5.20253 5.65084 6.20614 4.51953 6.44531C4.73449 9.1274 6.87207 11.2645 9.55407 11.4798C9.7934 10.3487 10.7977 9.5 12 9.5C13.3807 9.5 14.5 10.6193 14.5 12C14.5 13.3807 13.3807 14.5 12 14.5C10.7843 14.5 9.77167 13.6323 9.54687 12.4824C7.41967 12.3359 5.57534 11.1669 4.5 9.46227V13.6667C4.5 13.9428 4.27614 14.1667 4 14.1667C3.72386 14.1667 3.5 13.9428 3.5 13.6667V6.44987C2.35889 6.21823 1.5 5.20947 1.5 4C1.5 2.61929 2.61929 1.5 4 1.5Z"],"GitMergedSimple/m/outline":["M4 1.375C5.44974 1.375 6.625 2.55026 6.625 4C6.625 5.22451 5.78548 6.24898 4.65137 6.53906C4.90406 9.07687 6.9223 11.0945 9.45996 11.3477C9.75027 10.2139 10.7757 9.375 12 9.375C13.4498 9.375 14.625 10.5502 14.625 12C14.625 13.4498 13.4498 14.625 12 14.625C10.7567 14.625 9.71771 13.7602 9.44629 12.5996C7.46159 12.4353 5.72668 11.3975 4.625 9.87012V13.667C4.62482 14.012 4.34507 14.292 4 14.292C3.65493 14.292 3.37518 14.012 3.375 13.667V6.5459C2.22749 6.26516 1.375 5.23402 1.375 4C1.375 2.55026 2.55026 1.375 4 1.375ZM12 10.625C11.2406 10.625 10.625 11.2406 10.625 12C10.625 12.7594 11.2406 13.375 12 13.375C12.7594 13.375 13.375 12.7594 13.375 12C13.375 11.2406 12.7594 10.625 12 10.625ZM4 2.625C3.24061 2.625 2.625 3.24061 2.625 4C2.625 4.75939 3.24061 5.375 4 5.375C4.75939 5.375 5.375 4.75939 5.375 4C5.375 3.24061 4.75939 2.625 4 2.625Z"],"GitMergedSimple/s/filled":["M3 1.125C4.03553 1.125 4.875 1.96447 4.875 3C4.875 3.9019 4.23813 4.6546 3.38965 4.83398C3.55087 6.84555 5.15405 8.4484 7.16555 8.60985C7.34505 7.76155 8.09825 7.125 9 7.125C10.0356 7.125 10.875 7.96445 10.875 9C10.875 10.0356 10.0356 10.875 9 10.875C8.08825 10.875 7.32875 10.2242 7.16015 9.3618C5.56475 9.2519 4.1815 8.3752 3.375 7.0967V10.25C3.375 10.4571 3.2071 10.625 3 10.625C2.79289 10.625 2.625 10.4571 2.625 10.25V4.8374C1.76917 4.66367 1.125 3.9071 1.125 3C1.125 1.96447 1.96447 1.125 3 1.125Z"],"GitMergedSimple/s/outline":["M3 1C4.10457 1 5 1.89543 5 3C5 3.92351 4.37323 4.69771 3.52246 4.92773C3.72094 6.79489 5.20428 8.2776 7.07129 8.47656C7.30153 7.62612 8.07671 7 9 7C10.1046 7 11 7.89541 11 9C11 10.1046 10.1046 11 9 11C8.06083 11 7.27451 10.3523 7.05957 9.47949C5.60494 9.35251 4.32941 8.60351 3.5 7.49902V10.25C3.5 10.5261 3.27614 10.75 3 10.75C2.72386 10.75 2.5 10.5261 2.5 10.25V4.93359C1.6378 4.71129 1 3.93162 1 3C1 1.89543 1.89543 1 3 1ZM9 8C8.44769 8 8 8.44769 8 9C8 9.55231 8.44769 10 9 10C9.55231 10 10 9.55231 10 9C10 8.44769 9.55231 8 9 8ZM3 2C2.44772 2 2 2.44772 2 3C2 3.55228 2.44772 4 3 4C3.55228 4 4 3.55228 4 3C4 2.44772 3.55228 2 3 2Z"],"GitPullRequest/l/filled":["M6 3C7.65685 3 9 4.34315 9 6C9 7.39786 8.04389 8.57222 6.75 8.90527V15.0947C8.04389 15.4277 9 16.6021 9 18C9 19.6569 7.65685 21 6 21C4.34315 21 3 19.6569 3 18C3 16.6021 3.95611 15.4277 5.25 15.0947V8.90527C3.95611 8.57222 3 7.39786 3 6C3 4.34315 4.34315 3 6 3ZM13.4697 3.21973C13.7626 2.92684 14.2374 2.92684 14.5303 3.21973C14.8231 3.51261 14.8231 3.98739 14.5303 4.28027L13.5605 5.25H16C17.5188 5.25001 18.75 6.48123 18.75 8V15.0947C20.0439 15.4278 21 16.6021 21 18C21 19.6569 19.6569 21 18 21C16.3431 21 15 19.6569 15 18C15 16.6021 15.9561 15.4277 17.25 15.0947V8C17.25 7.30965 16.6904 6.75001 16 6.75H13.5605L14.5303 7.71973C14.8231 8.01261 14.8231 8.48739 14.5303 8.78027C14.2374 9.07316 13.7626 9.07316 13.4697 8.78027L11.2197 6.53027C10.9268 6.23738 10.9268 5.76262 11.2197 5.46973L13.4697 3.21973Z"],"GitPullRequest/l/outline":["M6 3C7.65685 3 9 4.34315 9 6C9 7.39752 8.04342 8.56799 6.75 8.90137V15.0977C8.04354 15.431 9 16.6024 9 18C9 19.6569 7.65685 21 6 21C4.34315 21 3 19.6569 3 18C3 16.6024 3.95647 15.431 5.25 15.0977V8.90137C3.95658 8.56799 3 7.39752 3 6C3 4.34315 4.34315 3 6 3ZM13.4697 3.21973C13.7626 2.92683 14.2374 2.92683 14.5303 3.21973C14.8232 3.51262 14.8232 3.98738 14.5303 4.28027L13.5605 5.25H16C17.5188 5.25 18.75 6.48122 18.75 8V15.0977C20.0435 15.431 21 16.6024 21 18C21 19.6569 19.6569 21 18 21C16.3431 21 15 19.6569 15 18C15 16.6024 15.9565 15.431 17.25 15.0977V8C17.25 7.30964 16.6904 6.75 16 6.75H13.5605L14.5303 7.71973C14.8232 8.01262 14.8232 8.48738 14.5303 8.78027C14.2374 9.07317 13.7626 9.07317 13.4697 8.78027L11.2197 6.53027C10.9268 6.23738 10.9268 5.76262 11.2197 5.46973L13.4697 3.21973ZM6 16.5C5.17157 16.5 4.5 17.1716 4.5 18C4.5 18.8284 5.17157 19.5 6 19.5C6.82843 19.5 7.5 18.8284 7.5 18C7.5 17.1716 6.82843 16.5 6 16.5ZM18 16.5C17.1716 16.5 16.5 17.1716 16.5 18C16.5 18.8284 17.1716 19.5 18 19.5C18.8284 19.5 19.5 18.8284 19.5 18C19.5 17.1716 18.8284 16.5 18 16.5ZM6 4.5C5.17157 4.5 4.5 5.17157 4.5 6C4.5 6.82843 5.17157 7.5 6 7.5C6.82843 7.5 7.5 6.82843 7.5 6C7.5 5.17157 6.82843 4.5 6 4.5Z"],"GitPullRequest/m/filled":["M4 2C5.10457 2 6 2.89543 6 4C6 4.93188 5.36256 5.71446 4.5 5.93652V10.0635C5.36256 10.2855 6 11.0681 6 12C6 13.1046 5.10457 14 4 14C2.89543 14 2 13.1046 2 12C2 11.0681 2.63745 10.2855 3.5 10.0635V5.93652C2.63744 5.71446 2 4.93188 2 4C2 2.89543 2.89543 2 4 2ZM8.97949 2.14648C9.1747 1.95128 9.49124 1.95139 9.68652 2.14648C9.88179 2.34174 9.88179 2.65826 9.68652 2.85352L9.04004 3.5H10.667C11.6793 3.50016 12.4998 4.32074 12.5 5.33301V10.0635C13.3626 10.2855 14 11.0681 14 12C14 13.1046 13.1046 14 12 14C10.8954 14 10 13.1046 10 12C10 11.0681 10.6375 10.2855 11.5 10.0635V5.33301C11.4998 4.87302 11.127 4.50016 10.667 4.5H9.04004L9.68652 5.14648C9.88179 5.34174 9.88179 5.65826 9.68652 5.85352C9.49124 6.04861 9.1747 6.04872 8.97949 5.85352L7.47949 4.35352C7.28447 4.1583 7.28447 3.8417 7.47949 3.64648L8.97949 2.14648Z"],"GitPullRequest/m/outline":["M4 1.87465C5.17349 1.87465 6.12481 2.82621 6.125 3.99967C6.125 4.95569 5.49348 5.76397 4.625 6.03093V9.96846C5.49348 10.2353 6.12485 11.0438 6.125 11.9997C6.125 13.1733 5.17361 14.1247 4 14.1247C2.82639 14.1247 1.875 13.1733 1.875 11.9997C1.87515 11.0438 2.50652 10.2353 3.375 9.96846V6.03093C2.50652 5.76397 1.875 4.95569 1.875 3.99967C1.87519 2.82621 2.82651 1.87465 4 1.87465ZM8.89062 2.05727C9.13458 1.81331 9.53128 1.81355 9.77539 2.05727C10.0195 2.30135 10.0195 2.69796 9.77539 2.94204L9.34277 3.37466H10.667C11.7482 3.37486 12.6246 4.25156 12.625 5.33268V9.96846C13.4935 10.2353 14.1248 11.0438 14.125 11.9997C14.125 13.1733 13.1736 14.1247 12 14.1247C10.8264 14.1247 9.875 13.1733 9.875 11.9997C9.87515 11.0438 10.5065 10.2353 11.375 9.96846V5.33268C11.3746 4.94191 11.0578 4.62487 10.667 4.62467H9.34277L9.77539 5.05729C10.0195 5.30137 10.0195 5.69798 9.77539 5.94206C9.53131 6.18613 9.1347 6.18614 8.89062 5.94206L7.39062 4.44205C7.14691 4.19795 7.14668 3.80124 7.39062 3.55728L8.89062 2.05727ZM4 11.1247C3.51687 11.1247 3.12519 11.5166 3.125 11.9997C3.125 12.483 3.51675 12.8747 4 12.8747C4.48325 12.8747 4.875 12.483 4.875 11.9997C4.87481 11.5166 4.48313 11.1247 4 11.1247ZM12 11.1247C11.5169 11.1247 11.1252 11.5166 11.125 11.9997C11.125 12.483 11.5168 12.8747 12 12.8747C12.4832 12.8747 12.875 12.483 12.875 11.9997C12.8748 11.5166 12.4831 11.1247 12 11.1247ZM4 3.12466C3.51687 3.12466 3.12519 3.51657 3.125 3.99967C3.125 4.48292 3.51675 4.87467 4 4.87467C4.48325 4.87467 4.875 4.48292 4.875 3.99967C4.87481 3.51657 4.48313 3.12466 4 3.12466Z"],"GitPullRequest/s/filled":["M3 1.49951C3.82827 1.49951 4.49975 2.1713 4.5 2.99951C4.5 3.69844 4.02195 4.28611 3.375 4.45264V7.54736C4.0218 7.71384 4.49979 8.30078 4.5 8.99951C4.5 9.82796 3.82842 10.4995 3 10.4995C2.17158 10.4995 1.5 9.82796 1.5 8.99951C1.50021 8.30078 1.9782 7.71384 2.625 7.54736V4.45264C1.97805 4.28611 1.5 3.69844 1.5 2.99951C1.50025 2.1713 2.17173 1.49951 3 1.49951ZM6.73438 1.60986C6.88083 1.46342 7.11917 1.46342 7.26562 1.60986C7.41172 1.75625 7.41174 1.99376 7.26562 2.14014L6.78027 2.62451H8C8.75924 2.62452 9.37475 3.24034 9.375 3.99951V7.54736C10.0218 7.71384 10.4998 8.30078 10.5 8.99951C10.5 9.82796 9.82844 10.4995 9 10.4995C8.17155 10.4995 7.5 9.82796 7.5 8.99951C7.50021 8.30077 7.9782 7.71384 8.625 7.54736V3.99951C8.62475 3.65455 8.34504 3.37452 8 3.37451H6.78027L7.26562 3.85986C7.41172 4.00625 7.41174 4.24376 7.26562 4.39014C7.11917 4.53658 6.88083 4.53658 6.73438 4.39014L5.60938 3.26514C5.46324 3.11876 5.46326 2.88125 5.60938 2.73486L6.73438 1.60986Z"],"GitPullRequest/s/outline":["M3 1.375C3.89746 1.375 4.625 2.10254 4.625 3C4.625 3.72283 4.15256 4.33388 3.5 4.54492V7.4541C4.15271 7.66506 4.625 8.27707 4.625 9C4.625 9.89746 3.89746 10.625 3 10.625C2.10254 10.625 1.375 9.89746 1.375 9C1.375 8.27707 1.84729 7.66506 2.5 7.4541V4.54492C1.84744 4.33388 1.375 3.72283 1.375 3C1.375 2.10254 2.10254 1.375 3 1.375ZM6.64648 1.52148C6.84175 1.32622 7.15825 1.32622 7.35352 1.52148C7.54878 1.71675 7.54878 2.03325 7.35352 2.22852L7.08203 2.5H8C8.82845 2.5 9.5 3.17158 9.5 4V7.4541C10.1527 7.66506 10.625 8.27707 10.625 9C10.625 9.89746 9.89746 10.625 9 10.625C8.10254 10.625 7.375 9.89746 7.375 9C7.375 8.27707 7.84729 7.66506 8.5 7.4541V4C8.5 3.72385 8.27615 3.5 8 3.5H7.08203L7.35352 3.77148C7.54878 3.96675 7.54878 4.28325 7.35352 4.47852C7.15825 4.67378 6.84175 4.67378 6.64648 4.47852L5.52148 3.35352C5.32622 3.15825 5.32622 2.84175 5.52148 2.64648L6.64648 1.52148ZM3 8.375C2.65482 8.375 2.375 8.65482 2.375 9C2.375 9.34518 2.65482 9.625 3 9.625C3.34518 9.625 3.625 9.34518 3.625 9C3.625 8.65482 3.34518 8.375 3 8.375ZM9 8.375C8.65482 8.375 8.375 8.65482 8.375 9C8.375 9.34518 8.65482 9.625 9 9.625C9.34518 9.625 9.625 9.34518 9.625 9C9.625 8.65482 9.34518 8.375 9 8.375ZM3 2.375C2.65482 2.375 2.375 2.65482 2.375 3C2.375 3.34518 2.65482 3.625 3 3.625C3.34518 3.625 3.625 3.34518 3.625 3C3.625 2.65482 3.34518 2.375 3 2.375Z"],"GitPullRequestClosed/l/filled":["M6.5 3C8.15685 3 9.5 4.34315 9.5 6C9.5 7.39786 8.54389 8.57222 7.25 8.90527V15.0947C8.54389 15.4277 9.5 16.6021 9.5 18C9.5 19.6569 8.15685 21 6.5 21C4.84315 21 3.5 19.6569 3.5 18C3.5 16.6021 4.45611 15.4277 5.75 15.0947V8.90527C4.45611 8.57222 3.5 7.39786 3.5 6C3.5 4.34315 4.84315 3 6.5 3ZM17.5 10C17.9142 10 18.25 10.3358 18.25 10.75V15.0947C19.5439 15.4277 20.5 16.6021 20.5 18C20.5 19.6569 19.1569 21 17.5 21C15.8431 21 14.5 19.6569 14.5 18C14.5 16.6021 15.4561 15.4277 16.75 15.0947V10.75C16.75 10.3358 17.0858 10 17.5 10ZM18.9697 3.46973C19.2626 3.17684 19.7374 3.17684 20.0303 3.46973C20.3231 3.76261 20.3231 4.23739 20.0303 4.53027L18.5605 6L20.0303 7.46973C20.3231 7.76261 20.3231 8.23739 20.0303 8.53027C19.7374 8.82316 19.2626 8.82316 18.9697 8.53027L17.5 7.06055L16.0303 8.53027C15.7374 8.82316 15.2626 8.82316 14.9697 8.53027C14.6768 8.23738 14.6768 7.76262 14.9697 7.46973L16.4395 6L14.9697 4.53027C14.6768 4.23738 14.6768 3.76262 14.9697 3.46973C15.2626 3.17684 15.7374 3.17684 16.0303 3.46973L17.5 4.93945L18.9697 3.46973Z"],"GitPullRequestClosed/l/outline":["M6.5 3C8.15685 3 9.5 4.34315 9.5 6C9.5 7.39752 8.54342 8.56799 7.25 8.90137V15.0977C8.54354 15.431 9.5 16.6024 9.5 18C9.5 19.6569 8.15685 21 6.5 21C4.84315 21 3.5 19.6569 3.5 18C3.5 16.6024 4.45647 15.431 5.75 15.0977V8.90137C4.45658 8.56799 3.5 7.39752 3.5 6C3.5 4.34315 4.84315 3 6.5 3ZM17.5 10C17.9142 10 18.25 10.3358 18.25 10.75V15.0977C19.5435 15.431 20.5 16.6024 20.5 18C20.5 19.6569 19.1569 21 17.5 21C15.8431 21 14.5 19.6569 14.5 18C14.5 16.6024 15.4565 15.431 16.75 15.0977V10.75C16.75 10.3358 17.0858 10 17.5 10ZM6.5 16.5C5.67157 16.5 5 17.1716 5 18C5 18.8284 5.67157 19.5 6.5 19.5C7.32843 19.5 8 18.8284 8 18C8 17.1716 7.32843 16.5 6.5 16.5ZM17.5 16.5C16.6716 16.5 16 17.1716 16 18C16 18.8284 16.6716 19.5 17.5 19.5C18.3284 19.5 19 18.8284 19 18C19 17.1716 18.3284 16.5 17.5 16.5ZM18.9697 3.46973C19.2626 3.17683 19.7374 3.17683 20.0303 3.46973C20.3232 3.76262 20.3232 4.23738 20.0303 4.53027L18.5605 6L20.0303 7.46973C20.3232 7.76262 20.3232 8.23738 20.0303 8.53027C19.7374 8.82317 19.2626 8.82317 18.9697 8.53027L17.5 7.06055L16.0303 8.53027C15.7374 8.82317 15.2626 8.82317 14.9697 8.53027C14.6768 8.23738 14.6768 7.76262 14.9697 7.46973L16.4395 6L14.9697 4.53027C14.6768 4.23738 14.6768 3.76262 14.9697 3.46973C15.2626 3.17683 15.7374 3.17683 16.0303 3.46973L17.5 4.93945L18.9697 3.46973ZM6.5 4.5C5.67157 4.5 5 5.17157 5 6C5 6.82843 5.67157 7.5 6.5 7.5C7.32843 7.5 8 6.82843 8 6C8 5.17157 7.32843 4.5 6.5 4.5Z"],"GitPullRequestClosed/m/filled":["M4.33301 2C5.43757 2 6.33301 2.89543 6.33301 4C6.33301 4.93192 5.69562 5.7145 4.83301 5.93652V10.0635C5.69562 10.2855 6.33301 11.0681 6.33301 12C6.33301 13.1046 5.43757 14 4.33301 14C3.22861 13.9998 2.33301 13.1045 2.33301 12C2.33301 11.0682 2.97063 10.2856 3.83301 10.0635V5.93652C2.97063 5.71434 2.33301 4.93176 2.33301 4C2.33301 2.89556 3.22861 2.0002 4.33301 2ZM11.667 6.66699C11.943 6.66719 12.167 6.89098 12.167 7.16699V10.0635C13.0294 10.2856 13.667 11.0682 13.667 12C13.667 13.1045 12.7714 13.9998 11.667 14C10.5624 14 9.66699 13.1046 9.66699 12C9.667 11.0681 10.3044 10.2855 11.167 10.0635V7.16699C11.167 6.89086 11.3909 6.66699 11.667 6.66699ZM12.6465 2.31348C12.8418 2.11822 13.1582 2.11822 13.3535 2.31348C13.5486 2.50875 13.5487 2.8253 13.3535 3.02051L12.374 4L13.3535 4.97949C13.5487 5.1747 13.5486 5.49125 13.3535 5.68652C13.1582 5.88178 12.8418 5.88178 12.6465 5.68652L11.667 4.70703L10.6865 5.68652C10.4913 5.88178 10.1748 5.88178 9.97949 5.68652C9.78459 5.49124 9.78436 5.17463 9.97949 4.97949L10.96 4L9.97949 3.02051C9.78437 2.82536 9.78457 2.50875 9.97949 2.31348C10.1748 2.11822 10.4913 2.11823 10.6865 2.31348L11.667 3.29297L12.6465 2.31348Z"],"GitPullRequestClosed/m/outline":["M4.33301 1.875C5.50661 1.875 6.45801 2.82639 6.45801 4C6.45801 4.95608 5.82657 5.76337 4.95801 6.03027V9.96875C5.82671 10.2356 6.45801 11.0438 6.45801 12C6.45801 13.1736 5.50661 14.125 4.33301 14.125C3.15957 14.1248 2.20801 13.1735 2.20801 12C2.20801 11.0441 2.83965 10.2358 3.70801 9.96875V6.03027C2.83979 5.76316 2.20801 4.95583 2.20801 4C2.20801 2.82652 3.15957 1.8752 4.33301 1.875ZM11.667 6.54199C12.012 6.54219 12.292 6.82194 12.292 7.16699V9.96875C13.1604 10.2358 13.792 11.0441 13.792 12C13.792 13.1735 12.8404 14.1248 11.667 14.125C10.4934 14.125 9.54199 13.1736 9.54199 12C9.54199 11.0438 10.1733 10.2356 11.042 9.96875V7.16699C11.042 6.82181 11.3218 6.54199 11.667 6.54199ZM4.33301 11.125C3.84993 11.1252 3.45801 11.5169 3.45801 12C3.45801 12.4831 3.84993 12.8748 4.33301 12.875C4.81626 12.875 5.20801 12.4832 5.20801 12C5.20801 11.5168 4.81626 11.125 4.33301 11.125ZM11.667 11.125C11.1837 11.125 10.792 11.5168 10.792 12C10.792 12.4832 11.1837 12.875 11.667 12.875C12.1501 12.8748 12.542 12.4831 12.542 12C12.542 11.5169 12.1501 11.1252 11.667 11.125ZM12.5576 2.22461C12.8016 1.98081 13.1974 1.98094 13.4414 2.22461C13.6855 2.46869 13.6855 2.8653 13.4414 3.10938L12.5498 4L13.4414 4.8916C13.6855 5.13568 13.6855 5.53131 13.4414 5.77539C13.1973 6.01913 12.8016 6.01936 12.5576 5.77539L11.666 4.88379L10.7754 5.77539C10.5313 6.01913 10.1346 6.01936 9.89062 5.77539C9.64707 5.53145 9.64716 5.1356 9.89062 4.8916L10.7812 4L9.89062 3.10938C9.64669 2.86541 9.64689 2.4687 9.89062 2.22461C10.1347 1.98054 10.5313 1.98056 10.7754 2.22461L11.666 3.11523L12.5576 2.22461ZM4.33301 3.125C3.84993 3.1252 3.45801 3.51687 3.45801 4C3.45801 4.48313 3.84993 4.8748 4.33301 4.875C4.81626 4.875 5.20801 4.48325 5.20801 4C5.20801 3.51675 4.81626 3.125 4.33301 3.125Z"],"GitPullRequestClosed/s/filled":["M3.25 1.5C4.07842 1.5 4.75 2.17158 4.75 3C4.75 3.69894 4.27196 4.2866 3.625 4.45312V7.54688C4.27196 7.71338 4.75 8.30105 4.75 9C4.75 9.82845 4.07842 10.5 3.25 10.5C2.42158 10.5 1.75 9.82845 1.75 9C1.75 8.30105 2.22804 7.71338 2.875 7.54688V4.45312C2.22804 4.2866 1.75 3.69894 1.75 3C1.75 2.17158 2.42158 1.5 3.25 1.5ZM8.75 5C8.9571 5 9.125 5.1679 9.125 5.375V7.54688C9.77195 7.71338 10.25 8.30105 10.25 9C10.25 9.82845 9.57845 10.5 8.75 10.5C7.92155 10.5 7.25 9.82845 7.25 9C7.25 8.30105 7.72805 7.71338 8.375 7.54688V5.375C8.375 5.1679 8.5429 5 8.75 5ZM9.48438 1.73438C9.63083 1.58793 9.86917 1.58793 10.0156 1.73438C10.1621 1.88082 10.1621 2.11918 10.0156 2.26562L9.28027 3L10.0156 3.73438C10.1621 3.88082 10.1621 4.11918 10.0156 4.26562C9.86917 4.41207 9.63083 4.41207 9.48438 4.26562L8.75 3.53027L8.01562 4.26562C7.86917 4.41207 7.63083 4.41207 7.48438 4.26562C7.33793 4.11918 7.33793 3.88082 7.48438 3.73438L8.21973 3L7.48438 2.26562C7.33793 2.11918 7.33793 1.88082 7.48438 1.73438C7.63083 1.58793 7.86917 1.58793 8.01562 1.73438L8.75 2.46973L9.48438 1.73438Z"],"GitPullRequestClosed/s/outline":["M3.25 1.375C4.14746 1.375 4.875 2.10254 4.875 3C4.875 3.72283 4.40256 4.33388 3.75 4.54492V7.4541C4.40271 7.66506 4.875 8.27707 4.875 9C4.875 9.89746 4.14746 10.625 3.25 10.625C2.35254 10.625 1.625 9.89746 1.625 9C1.625 8.27707 2.09729 7.66506 2.75 7.4541V4.54492C2.09744 4.33388 1.625 3.72283 1.625 3C1.625 2.10254 2.35254 1.375 3.25 1.375ZM8.75 4.875C9.02614 4.875 9.25 5.09886 9.25 5.375V7.4541C9.90271 7.66506 10.375 8.27707 10.375 9C10.375 9.89746 9.64746 10.625 8.75 10.625C7.85254 10.625 7.125 9.89746 7.125 9C7.125 8.27707 7.59729 7.66506 8.25 7.4541V5.375C8.25 5.09886 8.47386 4.875 8.75 4.875ZM3.25 8.375C2.90482 8.375 2.625 8.65482 2.625 9C2.625 9.34518 2.90482 9.625 3.25 9.625C3.59518 9.625 3.875 9.34518 3.875 9C3.875 8.65482 3.59518 8.375 3.25 8.375ZM8.75 8.375C8.40482 8.375 8.125 8.65482 8.125 9C8.125 9.34518 8.40482 9.625 8.75 9.625C9.09518 9.625 9.375 9.34518 9.375 9C9.375 8.65482 9.09518 8.375 8.75 8.375ZM9.39648 1.64648C9.59175 1.45122 9.90825 1.45122 10.1035 1.64648C10.2988 1.84175 10.2988 2.15825 10.1035 2.35352L9.45703 3L10.1035 3.64648C10.2988 3.84175 10.2988 4.15825 10.1035 4.35352C9.90825 4.54878 9.59175 4.54878 9.39648 4.35352L8.75 3.70703L8.10352 4.35352C7.90825 4.54878 7.59175 4.54878 7.39648 4.35352C7.20122 4.15825 7.20122 3.84175 7.39648 3.64648L8.04297 3L7.39648 2.35352C7.20122 2.15825 7.20122 1.84175 7.39648 1.64648C7.59175 1.45122 7.90825 1.45122 8.10352 1.64648L8.75 2.29297L9.39648 1.64648ZM3.25 2.375C2.90482 2.375 2.625 2.65482 2.625 3C2.625 3.34518 2.90482 3.625 3.25 3.625C3.59518 3.625 3.875 3.34518 3.875 3C3.875 2.65482 3.59518 2.375 3.25 2.375Z"],"Globe/l/filled":["M7.42969 12.75C7.50742 15.2943 7.97809 17.6121 8.72266 19.3643C9.13067 20.3243 9.63629 21.1499 10.2354 21.7461C10.2418 21.7525 10.2483 21.7592 10.2549 21.7656C6.00881 20.8291 2.77581 17.1934 2.44629 12.75H7.42969Z","M22.3906 12.75C22.0612 17.1934 18.8281 20.829 14.582 21.7656C14.5885 21.7593 14.5951 21.7525 14.6016 21.7461C15.2007 21.1499 15.7063 20.3243 16.1143 19.3643C16.8588 17.6121 17.3295 15.2944 17.4072 12.75H22.3906Z","M15.9062 12.75C15.8287 15.13 15.3864 17.2406 14.7334 18.7773C14.3723 19.6269 13.9617 20.2667 13.5439 20.6826C13.1293 21.0952 12.7499 21.2499 12.4189 21.25C12.088 21.25 11.7078 21.0954 11.293 20.6826C10.8751 20.2667 10.4646 19.6268 10.1035 18.7773C9.45046 17.2406 9.00812 15.13 8.93066 12.75H15.9062Z","M10.2354 2.25391C9.63629 2.8501 9.13067 3.67573 8.72266 4.63574C7.97809 6.38782 7.50741 8.70576 7.42969 11.25H2.44629C2.77576 6.8066 6.00879 3.17094 10.2549 2.23438C10.2483 2.24081 10.2419 2.24742 10.2354 2.25391Z","M12.4189 2.75C12.7499 2.75011 13.1293 2.9047 13.5439 3.31738C13.9617 3.73324 14.3723 4.37303 14.7334 5.22266C15.3864 6.75944 15.8288 8.87005 15.9062 11.25H8.93066C9.00811 8.87012 9.45047 6.75943 10.1035 5.22266C10.4646 4.37316 10.8751 3.73325 11.293 3.31738C11.7078 2.90455 12.088 2.75 12.4189 2.75Z","M14.582 2.23438C18.8281 3.1709 22.0612 6.80658 22.3906 11.25H17.4072C17.3295 8.70571 16.8588 6.38783 16.1143 4.63574C15.7063 3.67573 15.2007 2.8501 14.6016 2.25391C14.5951 2.24747 14.5885 2.24076 14.582 2.23438Z"],"Globe/l/outline":["M12.4189 2C17.9418 2 22.4189 6.47715 22.4189 12C22.4189 17.5228 17.9418 22 12.4189 22C6.8961 22 2.41895 17.5228 2.41895 12C2.41895 6.47716 6.8961 2 12.4189 2ZM9.18359 12.75C9.26342 14.8492 9.674 16.7064 10.2754 18.0596C10.6118 18.8165 10.9936 19.3822 11.3789 19.749C11.7605 20.1121 12.1107 20.25 12.4189 20.25C12.7272 20.25 13.0774 20.1121 13.459 19.749C13.8443 19.3823 14.2252 18.8163 14.5615 18.0596C15.1629 16.7064 15.5743 14.8492 15.6543 12.75H9.18359ZM3.9541 12.75C4.25171 16.1531 6.55303 18.9792 9.67285 20.0439C9.38652 19.6368 9.12952 19.1735 8.90527 18.6689C8.2059 17.0953 7.76399 15.0228 7.68359 12.75H3.9541ZM17.1543 12.75C17.0739 15.0228 16.632 17.0953 15.9326 18.6689C15.7083 19.1736 15.4505 19.6367 15.1641 20.0439C18.2843 18.9794 20.5862 16.1534 20.8838 12.75H17.1543ZM9.67285 3.95508C6.55287 5.01978 4.25171 7.84677 3.9541 11.25H7.68359C7.76399 8.97718 8.2059 6.90465 8.90527 5.33105C9.12964 4.82627 9.38634 4.3624 9.67285 3.95508ZM12.4189 3.75C12.1107 3.75 11.7605 3.88785 11.3789 4.25098C10.9936 4.61779 10.6118 5.18354 10.2754 5.94043C9.674 7.29356 9.26342 9.15085 9.18359 11.25H15.6543C15.5743 9.15085 15.1629 7.29356 14.5615 5.94043C14.2252 5.18373 13.8443 4.61773 13.459 4.25098C13.0774 3.88785 12.7272 3.75 12.4189 3.75ZM15.1641 3.95508C15.4507 4.36251 15.7082 4.82608 15.9326 5.33105C16.632 6.90465 17.0739 8.97717 17.1543 11.25H20.8838C20.5861 7.84646 18.2845 5.01955 15.1641 3.95508Z"],"Globe/m/filled":["M4.95312 8.5C5.00494 10.1961 5.31909 11.7411 5.81543 12.9092C6.0874 13.5491 6.42394 14.0996 6.82324 14.4971C6.82759 14.5014 6.83254 14.5055 6.83691 14.5098C4.00617 13.8854 1.85053 11.4623 1.63086 8.5H4.95312Z","M14.9268 8.5C14.7071 11.4622 12.5522 13.8853 9.72168 14.5098C9.72593 14.5056 9.73012 14.5013 9.73438 14.4971C10.1338 14.0996 10.4712 13.5492 10.7432 12.9092C11.2394 11.7411 11.5527 10.1961 11.6045 8.5H14.9268Z","M10.6045 8.5C10.5528 10.0868 10.2577 11.494 9.82227 12.5186C9.58159 13.0848 9.30776 13.5108 9.0293 13.7881C8.75286 14.0632 8.49991 14.1669 8.2793 14.167C8.05871 14.167 7.80581 14.0632 7.5293 13.7881C7.2507 13.5108 6.97609 13.085 6.73535 12.5186C6.29994 11.494 6.00574 10.0867 5.9541 8.5H10.6045Z","M6.82324 1.50293C6.42395 1.90037 6.08739 2.45092 5.81543 3.09082C5.31909 4.25885 5.00494 5.80392 4.95312 7.5H1.63086C1.85051 4.53771 4.00615 2.11361 6.83691 1.48926C6.8325 1.49359 6.82763 1.49856 6.82324 1.50293Z","M8.2793 1.83301C8.49991 1.83308 8.75286 1.93679 9.0293 2.21191C9.30776 2.48914 9.58159 2.91518 9.82227 3.48145C10.2577 4.50599 10.5528 5.91327 10.6045 7.5H5.9541C6.00573 5.91332 6.29995 4.50598 6.73535 3.48145C6.97609 2.91502 7.2507 2.48915 7.5293 2.21191C7.80582 1.93672 8.05871 1.83301 8.2793 1.83301Z","M9.72168 1.48926C12.5523 2.11366 14.7072 4.53777 14.9268 7.5H11.6045C11.5527 5.804 11.2394 4.25883 10.7432 3.09082C10.4712 2.45081 10.1338 1.90039 9.73438 1.50293C9.73 1.49858 9.72606 1.49357 9.72168 1.48926Z"],"Globe/m/outline":["M8.2793 1.20801C12.0299 1.20818 15.0701 4.24933 15.0703 8C15.0701 11.7507 12.03 14.7908 8.2793 14.791C4.52864 14.7908 1.48748 11.7506 1.4873 8C1.48749 4.24934 4.52865 1.20821 8.2793 1.20801ZM6.25391 8.625C6.3183 9.95825 6.58394 11.1322 6.96484 11.9893C7.1848 12.484 7.43058 12.8465 7.67188 13.0762C7.90981 13.3025 8.11458 13.3749 8.2793 13.375C8.44392 13.3749 8.64793 13.3023 8.88574 13.0762C9.12711 12.8465 9.37372 12.4842 9.59375 11.9893C9.97469 11.1322 10.2405 9.95832 10.3047 8.625H6.25391ZM2.77441 8.625C3.00225 10.6539 4.32418 12.3506 6.1377 13.1113C6.02381 12.9182 5.91828 12.7121 5.82227 12.4961C5.36088 11.4578 5.06707 10.1055 5.00195 8.625H2.77441ZM11.5566 8.625C11.4915 10.1056 11.1968 11.4578 10.7354 12.4961C10.6393 12.7122 10.5337 12.9181 10.4199 13.1113C12.2338 12.3508 13.5564 10.6543 13.7842 8.625H11.5566ZM6.13867 2.88672C4.3245 3.64725 3.00242 5.34567 2.77441 7.375H5.00195C5.06707 5.89449 5.36088 4.54221 5.82227 3.50391C5.91859 3.28718 6.02436 3.0804 6.13867 2.88672ZM8.2793 2.625C8.11459 2.62511 7.90982 2.69746 7.67188 2.92383C7.43058 3.15352 7.1848 3.51598 6.96484 4.01074C6.58394 4.86783 6.3183 6.04176 6.25391 7.375H10.3047C10.2405 6.04169 9.97469 4.86784 9.59375 4.01074C9.37372 3.51579 9.12711 3.15353 8.88574 2.92383C8.64793 2.69771 8.44392 2.6251 8.2793 2.625ZM10.4189 2.88672C10.5332 3.08049 10.639 3.28707 10.7354 3.50391C11.1968 4.54225 11.4915 5.89438 11.5566 7.375H13.7842C13.5562 5.34526 12.2335 3.64704 10.4189 2.88672Z"],"Globe/s/filled":["M3.71484 6.375C3.75371 7.64723 3.98901 8.80653 4.36133 9.68262C4.56529 10.1624 4.81777 10.575 5.11719 10.873C5.12048 10.8763 5.12462 10.8796 5.12793 10.8828C3.00486 10.4146 1.3874 8.59674 1.22266 6.375H3.71484Z","M11.1953 6.375C11.0306 8.59672 9.41405 10.4145 7.29102 10.8828C7.29426 10.8796 7.29754 10.8762 7.30078 10.873C7.60023 10.575 7.85268 10.1624 8.05664 9.68262C8.42893 8.80653 8.66427 7.64722 8.70312 6.375H11.1953Z","M7.95312 6.375C7.91437 7.56492 7.69366 8.62031 7.36719 9.38867C7.18664 9.81347 6.98038 10.1329 6.77148 10.3408C6.56408 10.5472 6.37448 10.625 6.20898 10.625C6.04359 10.6249 5.85378 10.5471 5.64648 10.3408C5.43763 10.1329 5.23223 9.81328 5.05176 9.38867C4.72522 8.6203 4.50455 7.56499 4.46582 6.375H7.95312Z","M5.11719 1.12695C4.81777 1.42499 4.56528 1.83756 4.36133 2.31738C3.989 3.19344 3.75371 4.3528 3.71484 5.625H1.22266C1.38739 3.40329 3.00486 1.58545 5.12793 1.11719C5.12462 1.12044 5.12048 1.12368 5.11719 1.12695Z","M6.20898 1.375C6.37448 1.375 6.56408 1.45276 6.77148 1.65918C6.98037 1.86711 7.18665 2.18654 7.36719 2.61133C7.69366 3.3797 7.91438 4.43513 7.95312 5.625H4.46582C4.50454 4.43505 4.72523 3.37972 5.05176 2.61133C5.23222 2.18672 5.43764 1.86712 5.64648 1.65918C5.85378 1.45287 6.04359 1.37508 6.20898 1.375Z","M7.29102 1.11719C9.41407 1.58545 11.0306 3.40329 11.1953 5.625H8.70312C8.66428 4.3528 8.42894 3.19344 8.05664 2.31738C7.85267 1.83757 7.60024 1.42496 7.30078 1.12695C7.29753 1.12372 7.29427 1.12039 7.29102 1.11719Z"],"Globe/s/outline":["M6.20996 0.875C9.04018 0.875264 11.335 3.1697 11.335 6C11.335 8.83028 9.04018 11.1247 6.20996 11.125C3.3795 11.125 1.08398 8.83044 1.08398 6C1.08398 3.16954 3.3795 0.875 6.20996 0.875ZM4.72363 6.5C4.77456 7.48309 4.97226 8.34691 5.25293 8.97852C5.4169 9.3474 5.5992 9.61558 5.77637 9.78418C5.95082 9.95008 6.09659 10 6.20996 10C6.32331 9.99986 6.46923 9.95004 6.64355 9.78418C6.82067 9.61553 7.00308 9.34732 7.16699 8.97852C7.44762 8.34693 7.64439 7.48299 7.69531 6.5H4.72363ZM2.11523 6.5C2.29199 7.96259 3.2341 9.18797 4.5293 9.7666C4.46135 9.64492 4.39777 9.51728 4.33887 9.38477C3.99404 8.6088 3.77328 7.60189 3.72168 6.5H2.11523ZM8.69727 6.5C8.64567 7.6018 8.42584 8.60882 8.08105 9.38477C8.02206 9.5175 7.95674 9.64474 7.88867 9.7666C9.18429 9.18812 10.1269 7.96289 10.3037 6.5H8.69727ZM4.5293 2.23242C3.23391 2.81099 2.29201 4.03727 2.11523 5.5H3.72168C3.77328 4.39812 3.99404 3.3912 4.33887 2.61523C4.39789 2.48245 4.46119 2.35433 4.5293 2.23242ZM6.20996 2C6.09659 2 5.95082 2.04992 5.77637 2.21582C5.5992 2.38443 5.4169 2.6526 5.25293 3.02148C4.97226 3.65309 4.77456 4.51692 4.72363 5.5H7.69531C7.64439 4.51702 7.44762 3.65307 7.16699 3.02148C7.00308 2.65268 6.82067 2.38447 6.64355 2.21582C6.46923 2.04996 6.32331 2.00014 6.20996 2ZM7.88867 2.23242C7.9569 2.35451 8.02194 2.48223 8.08105 2.61523C8.42584 3.39118 8.64567 4.3982 8.69727 5.5H10.3037C10.1269 4.03696 9.18448 2.81084 7.88867 2.23242Z"],"Hand4FingerStop/l/filled":["M14.4212 2C13.5082 2 12.7681 2.74619 12.7681 3.66667V9.77778C12.7681 10.0846 12.5214 10.3333 12.2171 10.3333C11.9128 10.3333 11.6661 10.0846 11.6661 9.77778V4.77778C11.6661 3.8573 10.9259 3.11111 10.0129 3.11111C9.09995 3.11111 8.35983 3.8573 8.35983 4.77778V11.4444C8.35983 11.6691 8.22557 11.8717 8.01967 11.9577C7.81376 12.0437 7.57675 11.9962 7.41915 11.8373L6.4053 10.8151C5.70861 10.1127 4.56101 10.1768 3.94551 10.9525L3.5 11.5139L6.68774 17.9417C7.92123 20.4289 10.4426 22 13.2008 22C17.2225 22 20.4826 18.7131 20.4826 14.6585V10.3333C20.4826 10.2854 20.4887 10.2388 20.5 10.1944C20.4887 10.1501 20.4826 10.1035 20.4826 10.0556V5.61111C20.4826 4.69064 19.7425 3.94444 18.8295 3.94444C17.9165 3.94444 17.1764 4.69064 17.1764 5.61111V10.6111C17.1764 10.9179 16.9297 11.1667 16.6254 11.1667C16.3211 11.1667 16.0743 10.9179 16.0743 10.6111V3.66667C16.0743 2.74619 15.3342 2 14.4212 2Z"],"Hand4FingerStop/l/outline":["M7.50022 5.75C7.50022 4.23122 8.73144 3 10.2502 3C10.8294 3 11.3656 3.1806 11.8088 3.48633C12.2666 2.60373 13.1873 2 14.2502 2C15.6227 2 16.7566 3.00591 16.9631 4.32031C17.3472 4.1164 17.785 4 18.2502 4C19.769 4 21.0002 5.23122 21.0002 6.75V10.75C21.0002 10.838 20.9822 10.9215 20.9543 11C20.9822 11.0785 21.0002 11.162 21.0002 11.25V14.0791C21.0002 18.4536 17.4538 22 13.0793 22C10.1387 22 7.44025 20.3708 6.07053 17.7686L3.08616 12.0996C2.94728 11.8357 2.97801 11.5141 3.16428 11.2812L3.91526 10.3428C4.79197 9.24721 6.33508 9.00161 7.50022 9.71875V5.75ZM9.00022 10C9.00022 10.0427 8.99535 10.0843 8.9885 10.125C8.99535 10.1657 9.00022 10.2073 9.00022 10.25V11.25C9.00022 11.5382 8.83508 11.8008 8.57542 11.9258C8.31557 12.0507 8.0066 12.016 7.78147 11.8359L6.84299 11.085C6.30391 10.654 5.51733 10.7413 5.08616 11.2803L4.6428 11.834L7.39768 17.0693C8.50795 19.1789 10.6955 20.5 13.0793 20.5C16.6254 20.5 19.5002 17.6252 19.5002 14.0791V11.25C19.5002 11.1621 19.5173 11.0784 19.5451 11C19.5173 10.9216 19.5002 10.8379 19.5002 10.75V6.75C19.5002 6.05964 18.9406 5.5 18.2502 5.5C17.5598 5.5 17.0002 6.05964 17.0002 6.75V11C17.0002 11.4142 16.6644 11.75 16.2502 11.75C15.836 11.75 15.5002 11.4142 15.5002 11V4.75C15.5002 4.05964 14.9406 3.5 14.2502 3.5C13.5598 3.5 13.0002 4.05964 13.0002 4.75V10.25C13.0002 10.6642 12.6644 11 12.2502 11C11.836 11 11.5002 10.6642 11.5002 10.25V5.75C11.5002 5.05964 10.9406 4.5 10.2502 4.5C9.55986 4.5 9.00022 5.05964 9.00022 5.75V10Z"],"Hand4FingerStop/m/filled":["M9.61417 1.33331C9.00551 1.33331 8.51211 1.83077 8.51211 2.44443V6.5185C8.51211 6.72305 8.34764 6.88885 8.14477 6.88885C7.94191 6.88885 7.77744 6.72305 7.77744 6.5185V3.18517C7.77744 2.57151 7.28397 2.07405 6.67533 2.07405C6.06667 2.07405 5.57326 2.57151 5.57326 3.18517V7.62958C5.57326 7.77938 5.48375 7.91445 5.34649 7.97178C5.20921 8.02911 5.05121 7.99745 4.94614 7.89151L4.27024 7.21005C3.80578 6.74178 3.04071 6.78451 2.63038 7.30165L2.33337 7.67591L4.45853 11.9611C5.28086 13.6192 6.96181 14.6666 8.80057 14.6666C11.4817 14.6666 13.6551 12.4754 13.6551 9.77231V6.88885C13.6551 6.85691 13.6592 6.82585 13.6667 6.79625C13.6592 6.76671 13.6551 6.73565 13.6551 6.70371V3.74072C13.6551 3.12707 13.1617 2.62961 12.553 2.62961C11.9444 2.62961 11.451 3.12707 11.451 3.74072V7.07405C11.451 7.27858 11.2865 7.44445 11.0836 7.44445C10.8808 7.44445 10.7162 7.27858 10.7162 7.07405V2.44443C10.7162 1.83077 10.2228 1.33331 9.61417 1.33331Z"],"Hand4FingerStop/m/outline":["M4.87488 3.8335C4.87488 2.75205 5.75148 1.87566 6.83289 1.87549C7.19654 1.87549 7.5362 1.97624 7.82801 2.14893C8.17185 1.58537 8.79139 1.2085 9.49988 1.2085C10.4196 1.2085 11.1889 1.84301 11.3993 2.69775C11.6349 2.59733 11.8946 2.5415 12.1669 2.5415C13.2483 2.54168 14.1249 3.41904 14.1249 4.50049V7.1665C14.1249 7.22449 14.1143 7.28021 14.0995 7.3335C14.1143 7.38678 14.1249 7.4425 14.1249 7.50049V9.38623C14.1249 12.3715 11.7049 14.7914 8.71961 14.7915C6.71272 14.7915 4.87115 13.6798 3.9364 11.9038L1.94715 8.12451C1.83141 7.90461 1.85637 7.63692 2.0116 7.44287L2.51258 6.81787C3.09018 6.09589 4.07366 5.89212 4.87488 6.27002V3.8335ZM6.12488 6.6665C6.12488 6.69469 6.11971 6.72232 6.11609 6.74951C6.11982 6.77712 6.12488 6.80487 6.12488 6.8335V7.50049C6.12476 7.74061 5.98683 7.95896 5.77039 8.06299C5.55385 8.16706 5.29686 8.13788 5.10926 7.98779L4.48426 7.48779C4.1788 7.24342 3.73255 7.29276 3.48816 7.59814L3.24304 7.90381L5.04187 11.3218C5.76045 12.6871 7.17676 13.5415 8.71961 13.5415C11.0145 13.5414 12.8749 11.6812 12.8749 9.38623V7.50049C12.8749 7.44259 12.8846 7.3867 12.8993 7.3335C12.8846 7.28029 12.8749 7.2244 12.8749 7.1665V4.50049C12.8749 4.10939 12.5579 3.79168 12.1669 3.7915C11.7757 3.7915 11.4579 4.10928 11.4579 4.50049V7.3335C11.4579 7.67867 11.1781 7.9585 10.8329 7.9585C10.4879 7.95832 10.2079 7.67857 10.2079 7.3335V3.1665C10.2077 2.77545 9.89099 2.4585 9.49988 2.4585C9.10877 2.4585 8.79205 2.77545 8.79187 3.1665V6.8335C8.79187 7.17857 8.5119 7.45832 8.16687 7.4585C7.82169 7.4585 7.54187 7.17867 7.54187 6.8335V3.8335L7.52722 3.69092C7.46125 3.36805 7.17527 3.12549 6.83289 3.12549C6.44184 3.12566 6.12488 3.4424 6.12488 3.8335V6.6665Z"],"Hand4FingerStop/s/filled":["M7.2106 1C6.7541 1 6.38405 1.3731 6.38405 1.83334V4.88889C6.38405 5.0423 6.2607 5.16665 6.10855 5.16665C5.9564 5.16665 5.83305 5.0423 5.83305 4.88889V2.38889C5.83305 1.92865 5.46295 1.55555 5.00647 1.55555C4.54998 1.55555 4.17991 1.92865 4.17991 2.38889V5.7222C4.17991 5.83455 4.11279 5.93585 4.00984 5.97885C3.90688 6.02185 3.78837 5.9981 3.70957 5.91865L3.20265 5.40755C2.85431 5.05635 2.2805 5.0884 1.97275 5.47625L1.75 5.75695L3.34387 8.97085C3.96061 10.2144 5.22132 11 6.6004 11C8.61125 11 10.2413 9.35655 10.2413 7.32925V5.16665C10.2413 5.1427 10.2444 5.1194 10.25 5.0972C10.2444 5.07505 10.2413 5.05175 10.2413 5.0278V2.80556C10.2413 2.34532 9.87125 1.97222 9.41475 1.97222C8.95825 1.97222 8.5882 2.34532 8.5882 2.80556V5.30555C8.5882 5.45895 8.46485 5.58335 8.3127 5.58335C8.16055 5.58335 8.03715 5.45895 8.03715 5.30555V1.83334C8.03715 1.3731 7.6671 1 7.2106 1Z"],"Hand4FingerStop/s/outline":["M3.62492 2.875C3.62492 2.04657 4.29649 1.375 5.12492 1.375C5.3923 1.375 5.64288 1.44575 5.86027 1.56836C6.12672 1.15149 6.59346 0.875 7.12492 0.875C7.81704 0.875 8.3982 1.34412 8.57121 1.98145C8.74261 1.91328 8.92923 1.875 9.12492 1.875C9.95337 1.875 10.6249 2.54658 10.6249 3.375V5.375C10.6249 5.41832 10.6177 5.45991 10.6073 5.5C10.6177 5.54009 10.6249 5.58168 10.6249 5.625V7.04004C10.6247 9.29598 8.7959 11.1248 6.53996 11.125C5.02323 11.125 3.63121 10.2846 2.92472 8.94238L1.43254 6.10742C1.34014 5.93156 1.36019 5.71764 1.4843 5.5625L1.86027 5.09375C2.29198 4.5542 3.01974 4.39196 3.62492 4.65332V2.875ZM4.62492 5C4.62492 5.02129 4.62067 5.04191 4.61808 5.0625C4.62067 5.08309 4.62492 5.10371 4.62492 5.125V5.625C4.62492 5.81708 4.51475 5.99187 4.34172 6.0752C4.16848 6.15846 3.96251 6.13569 3.81242 6.01562L3.34367 5.63965C3.12811 5.46728 2.81306 5.50237 2.64055 5.71777L2.46867 5.93164L3.80949 8.47656C4.34303 9.49025 5.39445 10.125 6.53996 10.125C8.24362 10.1248 9.62468 8.7437 9.62492 7.04004V5.625C9.62492 5.58176 9.6312 5.54001 9.64152 5.5C9.6312 5.45999 9.62492 5.41824 9.62492 5.375V3.375C9.62492 3.09885 9.40107 2.875 9.12492 2.875C8.84877 2.875 8.62492 3.09885 8.62492 3.375V5.5C8.62492 5.77614 8.40106 6 8.12492 6C7.84878 6 7.62492 5.77614 7.62492 5.5V2.375C7.62492 2.09885 7.40107 1.875 7.12492 1.875C6.84877 1.875 6.62492 2.09885 6.62492 2.375V5.125C6.62492 5.40114 6.40106 5.625 6.12492 5.625C5.84878 5.625 5.62492 5.40114 5.62492 5.125V2.875C5.62492 2.59885 5.40107 2.375 5.12492 2.375C4.84878 2.375 4.62492 2.59886 4.62492 2.875V5Z"],"Home/l/filled":["M13.4112 3.35921C12.5603 2.7774 11.4397 2.7774 10.5888 3.35921L4.08883 7.80406C3.40746 8.27 3 9.04225 3 9.8677V18.4999C3 19.8807 4.11929 20.9999 5.5 20.9999H9C9.27614 20.9999 9.5 20.7761 9.5 20.4999V16.9999C9.5 15.6192 10.6193 14.4999 12 14.4999C13.3807 14.4999 14.5 15.6192 14.5 16.9999V20.4999C14.5 20.7761 14.7239 20.9999 15 20.9999H18.5C19.8807 20.9999 21 19.8807 21 18.4999V9.8677C21 9.04225 20.5925 8.27 19.9112 7.80406L13.4112 3.35921Z"],"Home/l/outline":["M19.75 9.8682C19.75 9.45549 19.5458 9.06896 19.2051 8.83597L12.7051 4.39066C12.28 4.10022 11.72 4.10022 11.2949 4.39066L4.79395 8.83597C4.45346 9.06898 4.25 9.45561 4.25 9.8682V18.5C4.25003 19.1904 4.80966 19.75 5.5 19.75H8.75V17C8.75 15.2051 10.2051 13.75 12 13.75C13.7949 13.75 15.25 15.2051 15.25 17V19.75H18.5C19.1904 19.75 19.75 19.1904 19.75 18.5V9.8682ZM21.25 18.5C21.25 20.0188 20.0188 21.25 18.5 21.25H14.5C14.0858 21.25 13.75 20.9142 13.75 20.5V17C13.75 16.0335 12.9665 15.25 12 15.25C11.0335 15.25 10.25 16.0335 10.25 17V20.5C10.25 20.9142 9.91419 21.25 9.5 21.25H5.5C3.98124 21.25 2.75003 20.0188 2.75 18.5V9.8682C2.75 8.9603 3.19793 8.11025 3.94727 7.59769L10.4473 3.15335C11.3831 2.51334 12.6169 2.51334 13.5527 3.15335L20.0527 7.59769C20.802 8.11024 21.25 8.96029 21.25 9.8682V18.5Z"],"Home/m/filled":["M8.9408 2.23945C8.37353 1.85158 7.62647 1.85158 7.0592 2.23945L2.72589 5.20269C2.27164 5.51331 2 6.02815 2 6.57844V12.3332C2 13.2538 2.74619 13.9999 3.66667 13.9999H6C6.18409 13.9999 6.33333 13.8507 6.33333 13.6666V11.3332C6.33333 10.4128 7.07953 9.66658 8 9.66658C8.92047 9.66658 9.66667 10.4128 9.66667 11.3332V13.6666C9.66667 13.8507 9.81593 13.9999 10 13.9999H12.3333C13.2538 13.9999 14 13.2538 14 12.3332V6.57844C14 6.02815 13.7283 5.51331 13.2741 5.20269L8.9408 2.23945Z"],"Home/m/outline":["M13.0414 6.60452C13.0414 6.37066 12.9259 6.15159 12.7328 6.01956L8.39978 3.05667C8.15876 2.89184 7.84099 2.89184 7.59998 3.05667L3.26697 6.01956C3.0739 6.15158 2.95837 6.37064 2.95837 6.60452V12.3594C2.95857 12.7503 3.27545 13.0672 3.66638 13.0674H5.70837V11.3594C5.70837 10.0938 6.73472 9.06741 8.00037 9.06741C9.26586 9.06758 10.2914 10.0939 10.2914 11.3594V13.0674H12.3334C12.7245 13.0674 13.0412 12.7505 13.0414 12.3594V6.60452ZM14.2914 12.3594C14.2912 13.4408 13.4148 14.3174 12.3334 14.3174H9.66638C9.32137 14.3172 9.0414 14.0375 9.04138 13.6924V11.3594C9.04138 10.7842 8.5755 10.3176 8.00037 10.3174C7.42508 10.3174 6.95837 10.7841 6.95837 11.3594V13.6924C6.95835 14.0376 6.67854 14.3174 6.33337 14.3174H3.66638C2.5851 14.3172 1.70857 13.4407 1.70837 12.3594V6.60452C1.70837 5.95794 2.02723 5.35232 2.56091 4.98733L6.8949 2.02444C7.56132 1.5688 8.43945 1.56871 9.10583 2.02444L13.4388 4.98733C13.9726 5.35231 14.2914 5.95788 14.2914 6.60452V12.3594Z"],"Home/s/filled":["M6.7056 1.6796C6.28015 1.3887 5.71985 1.3887 5.2944 1.6796L2.04441 3.90203C1.70373 4.135 1.5 4.52112 1.5 4.93385V9.24995C1.5 9.94035 2.05964 10.5 2.75 10.5H4.5C4.63807 10.5 4.75 10.3881 4.75 10.25V8.49995C4.75 7.8096 5.30965 7.24995 6 7.24995C6.69035 7.24995 7.25 7.8096 7.25 8.49995V10.25C7.25 10.3881 7.36195 10.5 7.5 10.5H9.25C9.94035 10.5 10.5 9.94035 10.5 9.24995V4.93385C10.5 4.52112 10.2962 4.135 9.9556 3.90203L6.7056 1.6796Z"],"Home/s/outline":["M9.75 4.93409C9.75 4.76901 9.66852 4.6142 9.53223 4.521L6.28223 2.29834C6.11216 2.18213 5.88784 2.18213 5.71777 2.29834L2.46777 4.521C2.33149 4.61419 2.25 4.76899 2.25 4.93409V9.24952C2.25 9.52567 2.47385 9.74952 2.75 9.74952H4.25V8.49952C4.25025 7.53323 5.03366 6.74952 6 6.74952C6.96634 6.74952 7.74975 7.53323 7.75 8.49952V9.74952H9.25C9.52616 9.74952 9.75 9.52567 9.75 9.24952V4.93409ZM10.75 9.24952C10.75 10.078 10.0784 10.7495 9.25 10.7495H7.25C6.97386 10.7495 6.75 10.5257 6.75 10.2495V8.49952C6.74975 8.08552 6.41405 7.74952 6 7.74952C5.58595 7.74952 5.25025 8.08552 5.25 8.49952V10.2495C5.25 10.5257 5.02614 10.7495 4.75 10.7495H2.75C1.92158 10.7495 1.25 10.078 1.25 9.24952V4.93409C1.25 4.43883 1.49453 3.97537 1.90332 3.6958L5.15332 1.47315C5.66376 1.1241 6.33624 1.1241 6.84668 1.47315L10.0967 3.6958C10.5055 3.97537 10.75 4.43881 10.75 4.93409V9.24952Z"],"IconDotGrid3x3/l/filled":["M4.75 17.5C5.7165 17.5 6.5 18.2835 6.5 19.25C6.5 20.2165 5.7165 21 4.75 21C3.7835 21 3 20.2165 3 19.25C3 18.2835 3.7835 17.5 4.75 17.5Z","M12 17.5C12.9665 17.5 13.75 18.2835 13.75 19.25C13.75 20.2165 12.9665 21 12 21C11.0335 21 10.25 20.2165 10.25 19.25C10.25 18.2835 11.0335 17.5 12 17.5Z","M19.25 17.5C20.2165 17.5 21 18.2835 21 19.25C21 20.2165 20.2165 21 19.25 21C18.2835 21 17.5 20.2165 17.5 19.25C17.5 18.2835 18.2835 17.5 19.25 17.5Z","M4.75 10.25C5.7165 10.25 6.5 11.0335 6.5 12C6.5 12.9665 5.7165 13.75 4.75 13.75C3.7835 13.75 3 12.9665 3 12C3 11.0335 3.7835 10.25 4.75 10.25Z","M12 10.25C12.9665 10.25 13.75 11.0335 13.75 12C13.75 12.9665 12.9665 13.75 12 13.75C11.0335 13.75 10.25 12.9665 10.25 12C10.25 11.0335 11.0335 10.25 12 10.25Z","M19.25 10.25C20.2165 10.25 21 11.0335 21 12C21 12.9665 20.2165 13.75 19.25 13.75C18.2835 13.75 17.5 12.9665 17.5 12C17.5 11.0335 18.2835 10.25 19.25 10.25Z","M4.75 3C5.7165 3 6.5 3.7835 6.5 4.75C6.5 5.7165 5.7165 6.5 4.75 6.5C3.7835 6.5 3 5.7165 3 4.75C3 3.7835 3.7835 3 4.75 3Z","M12 3C12.9665 3 13.75 3.7835 13.75 4.75C13.75 5.7165 12.9665 6.5 12 6.5C11.0335 6.5 10.25 5.7165 10.25 4.75C10.25 3.7835 11.0335 3 12 3Z","M19.25 3C20.2165 3 21 3.7835 21 4.75C21 5.7165 20.2165 6.5 19.25 6.5C18.2835 6.5 17.5 5.7165 17.5 4.75C17.5 3.7835 18.2835 3 19.25 3Z"],"IconDotGrid3x3/l/outline":["M4.75 17.5C5.71648 17.5 6.5 18.2835 6.5 19.25C6.5 20.2165 5.71648 21 4.75 21C3.78352 21 3 20.2165 3 19.25C3 18.2835 3.78352 17.5 4.75 17.5Z","M12 17.5C12.9665 17.5 13.75 18.2835 13.75 19.25C13.75 20.2165 12.9665 21 12 21C11.0335 21 10.25 20.2165 10.25 19.25C10.25 18.2835 11.0335 17.5 12 17.5Z","M19.25 17.5C20.2165 17.5 21 18.2835 21 19.25C21 20.2165 20.2165 21 19.25 21C18.2835 21 17.5 20.2165 17.5 19.25C17.5 18.2835 18.2835 17.5 19.25 17.5Z","M4.75 10.25C5.71648 10.25 6.5 11.0335 6.5 12C6.5 12.9665 5.71648 13.75 4.75 13.75C3.78352 13.75 3 12.9665 3 12C3 11.0335 3.78352 10.25 4.75 10.25Z","M12 10.25C12.9665 10.25 13.75 11.0335 13.75 12C13.75 12.9665 12.9665 13.75 12 13.75C11.0335 13.75 10.25 12.9665 10.25 12C10.25 11.0335 11.0335 10.25 12 10.25Z","M19.25 10.25C20.2165 10.25 21 11.0335 21 12C21 12.9665 20.2165 13.75 19.25 13.75C18.2835 13.75 17.5 12.9665 17.5 12C17.5 11.0335 18.2835 10.25 19.25 10.25Z","M4.75 3C5.71649 3 6.5 3.78351 6.5 4.75C6.5 5.71649 5.71649 6.5 4.75 6.5C3.78351 6.5 3 5.71649 3 4.75C3 3.78351 3.78351 3 4.75 3Z","M12 3C12.9665 3 13.75 3.78352 13.75 4.75C13.75 5.71648 12.9665 6.5 12 6.5C11.0335 6.5 10.25 5.71648 10.25 4.75C10.25 3.78352 11.0335 3 12 3Z","M19.25 3C20.2165 3 21 3.78352 21 4.75C21 5.71648 20.2165 6.5 19.25 6.5C18.2835 6.5 17.5 5.71648 17.5 4.75C17.5 3.78352 18.2835 3 19.25 3Z"],"IconDotGrid3x3/m/filled":["M3.16699 11.542C3.8802 11.5422 4.45801 12.1207 4.45801 12.834C4.45765 13.547 3.87998 14.1248 3.16699 14.125C2.45386 14.125 1.87536 13.5471 1.875 12.834C1.875 12.1206 2.45364 11.542 3.16699 11.542Z","M8 11.542C8.71323 11.5422 9.29102 12.1207 9.29102 12.834C9.29066 13.5469 8.71301 14.1248 8 14.125C7.28698 14.1248 6.70836 13.547 6.70801 12.834C6.70801 12.1207 7.28676 11.5422 8 11.542Z","M12.834 11.542C13.5471 11.5423 14.125 12.1208 14.125 12.834C14.1246 13.5468 13.5469 14.1247 12.834 14.125C12.1208 14.125 11.5423 13.5471 11.542 12.834C11.542 12.1206 12.1206 11.542 12.834 11.542Z","M3.16699 6.70801C3.88009 6.70818 4.45783 7.28688 4.45801 8C4.45783 8.71313 3.88009 9.29084 3.16699 9.29102C2.45374 9.29102 1.87518 8.71324 1.875 8C1.87518 7.28677 2.45375 6.70801 3.16699 6.70801Z","M8 6.70801C8.71312 6.70818 9.29083 7.28688 9.29102 8C9.29084 8.71312 8.71312 9.29084 8 9.29102C7.28687 9.29085 6.70818 8.71313 6.70801 8C6.70819 7.28688 7.28687 6.70817 8 6.70801Z","M12.834 6.70801C13.547 6.70835 14.1248 7.28699 14.125 8C14.1248 8.71302 13.547 9.29068 12.834 9.29102C12.1207 9.29102 11.5422 8.71323 11.542 8C11.5422 7.28678 12.1207 6.70801 12.834 6.70801Z","M3.16699 1.875C3.88021 1.87518 4.45801 2.45374 4.45801 3.16699C4.45783 3.8801 3.8801 4.45783 3.16699 4.45801C2.45374 4.45801 1.87518 3.88021 1.875 3.16699C1.875 2.45363 2.45363 1.875 3.16699 1.875Z","M8 1.875C8.71324 1.87518 9.29102 2.45374 9.29102 3.16699C9.29084 3.88009 8.71313 4.45783 8 4.45801C7.28686 4.45784 6.70818 3.8801 6.70801 3.16699C6.70801 2.45374 7.28675 1.87516 8 1.875Z","M12.834 1.875C13.5471 1.87534 14.125 2.45385 14.125 3.16699C14.1248 3.87999 13.547 4.45767 12.834 4.45801C12.1207 4.45801 11.5422 3.8802 11.542 3.16699C11.542 2.45364 12.1206 1.875 12.834 1.875Z"],"IconDotGrid3x3/m/outline":["M3.16699 11.542C3.8802 11.5422 4.45801 12.1207 4.45801 12.834C4.45765 13.547 3.87998 14.1248 3.16699 14.125C2.45386 14.125 1.87536 13.5471 1.875 12.834C1.875 12.1206 2.45364 11.542 3.16699 11.542Z","M8 11.542C8.71323 11.5422 9.29102 12.1207 9.29102 12.834C9.29066 13.5469 8.71301 14.1248 8 14.125C7.28698 14.1248 6.70836 13.547 6.70801 12.834C6.70801 12.1207 7.28676 11.5422 8 11.542Z","M12.834 11.542C13.5471 11.5423 14.125 12.1208 14.125 12.834C14.1246 13.5468 13.5469 14.1247 12.834 14.125C12.1208 14.125 11.5423 13.5471 11.542 12.834C11.542 12.1206 12.1206 11.542 12.834 11.542Z","M3.16699 6.70801C3.88009 6.70818 4.45783 7.28688 4.45801 8C4.45783 8.71313 3.88009 9.29084 3.16699 9.29102C2.45374 9.29102 1.87518 8.71324 1.875 8C1.87518 7.28677 2.45375 6.70801 3.16699 6.70801Z","M8 6.70801C8.71312 6.70818 9.29083 7.28688 9.29102 8C9.29084 8.71312 8.71312 9.29084 8 9.29102C7.28687 9.29085 6.70818 8.71313 6.70801 8C6.70819 7.28688 7.28687 6.70817 8 6.70801Z","M12.834 6.70801C13.547 6.70835 14.1248 7.28699 14.125 8C14.1248 8.71302 13.547 9.29068 12.834 9.29102C12.1207 9.29102 11.5422 8.71323 11.542 8C11.5422 7.28678 12.1207 6.70801 12.834 6.70801Z","M3.16699 1.875C3.88021 1.87518 4.45801 2.45374 4.45801 3.16699C4.45783 3.8801 3.8801 4.45783 3.16699 4.45801C2.45374 4.45801 1.87518 3.88021 1.875 3.16699C1.875 2.45363 2.45363 1.875 3.16699 1.875Z","M8 1.875C8.71324 1.87518 9.29102 2.45374 9.29102 3.16699C9.29084 3.88009 8.71313 4.45783 8 4.45801C7.28686 4.45784 6.70818 3.8801 6.70801 3.16699C6.70801 2.45374 7.28675 1.87516 8 1.875Z","M12.834 1.875C13.5471 1.87534 14.125 2.45385 14.125 3.16699C14.1248 3.87999 13.547 4.45767 12.834 4.45801C12.1207 4.45801 11.5422 3.8802 11.542 3.16699C11.542 2.45364 12.1206 1.875 12.834 1.875Z"],"IconDotGrid3x3/s/filled":["M2.375 8.625C2.92728 8.625 3.375 9.0727 3.375 9.625C3.375 10.1773 2.92728 10.625 2.375 10.625C1.82272 10.625 1.375 10.1773 1.375 9.625C1.375 9.0727 1.82272 8.625 2.375 8.625Z","M6 8.625C6.55229 8.625 7 9.07271 7 9.625C7 10.1773 6.55229 10.625 6 10.625C5.44771 10.625 5 10.1773 5 9.625C5 9.07271 5.44771 8.625 6 8.625Z","M9.625 8.625C10.1773 8.625 10.625 9.07271 10.625 9.625C10.625 10.1773 10.1773 10.625 9.625 10.625C9.07271 10.625 8.625 10.1773 8.625 9.625C8.625 9.07271 9.07271 8.625 9.625 8.625Z","M2.375 5C2.92728 5 3.375 5.4477 3.375 6C3.375 6.5523 2.92728 7 2.375 7C1.82272 7 1.375 6.5523 1.375 6C1.375 5.4477 1.82272 5 2.375 5Z","M6 5C6.55229 5 7 5.44771 7 6C7 6.55229 6.55229 7 6 7C5.44771 7 5 6.55229 5 6C5 5.44771 5.44771 5 6 5Z","M9.625 5C10.1773 5 10.625 5.44771 10.625 6C10.625 6.55229 10.1773 7 9.625 7C9.07271 7 8.625 6.55229 8.625 6C8.625 5.44771 9.07271 5 9.625 5Z","M2.375 1.375C2.92728 1.375 3.375 1.82272 3.375 2.375C3.375 2.92728 2.92728 3.375 2.375 3.375C1.82272 3.375 1.375 2.92728 1.375 2.375C1.375 1.82272 1.82272 1.375 2.375 1.375Z","M6 1.375C6.5523 1.375 7 1.82272 7 2.375C7 2.92728 6.5523 3.375 6 3.375C5.4477 3.375 5 2.92728 5 2.375C5 1.82272 5.4477 1.375 6 1.375Z","M9.625 1.375C10.1773 1.375 10.625 1.82272 10.625 2.375C10.625 2.92728 10.1773 3.375 9.625 3.375C9.0727 3.375 8.625 2.92728 8.625 2.375C8.625 1.82272 9.0727 1.375 9.625 1.375Z"],"IconDotGrid3x3/s/outline":["M2.375 8.625C2.92728 8.625 3.375 9.0727 3.375 9.625C3.375 10.1773 2.92728 10.625 2.375 10.625C1.82272 10.625 1.375 10.1773 1.375 9.625C1.375 9.0727 1.82272 8.625 2.375 8.625Z","M6 8.625C6.55229 8.625 7 9.07271 7 9.625C7 10.1773 6.55229 10.625 6 10.625C5.44771 10.625 5 10.1773 5 9.625C5 9.07271 5.44771 8.625 6 8.625Z","M9.625 8.625C10.1773 8.625 10.625 9.07271 10.625 9.625C10.625 10.1773 10.1773 10.625 9.625 10.625C9.07271 10.625 8.625 10.1773 8.625 9.625C8.625 9.07271 9.07271 8.625 9.625 8.625Z","M2.375 5C2.92728 5 3.375 5.4477 3.375 6C3.375 6.5523 2.92728 7 2.375 7C1.82272 7 1.375 6.5523 1.375 6C1.375 5.4477 1.82272 5 2.375 5Z","M6 5C6.55229 5 7 5.44771 7 6C7 6.55229 6.55229 7 6 7C5.44771 7 5 6.55229 5 6C5 5.44771 5.44771 5 6 5Z","M9.625 5C10.1773 5 10.625 5.44771 10.625 6C10.625 6.55229 10.1773 7 9.625 7C9.07271 7 8.625 6.55229 8.625 6C8.625 5.44771 9.07271 5 9.625 5Z","M2.375 1.375C2.92728 1.375 3.375 1.82272 3.375 2.375C3.375 2.92728 2.92728 3.375 2.375 3.375C1.82272 3.375 1.375 2.92728 1.375 2.375C1.375 1.82272 1.82272 1.375 2.375 1.375Z","M6 1.375C6.5523 1.375 7 1.82272 7 2.375C7 2.92728 6.5523 3.375 6 3.375C5.4477 3.375 5 2.92728 5 2.375C5 1.82272 5.4477 1.375 6 1.375Z","M9.625 1.375C10.1773 1.375 10.625 1.82272 10.625 2.375C10.625 2.92728 10.1773 3.375 9.625 3.375C9.0727 3.375 8.625 2.92728 8.625 2.375C8.625 1.82272 9.0727 1.375 9.625 1.375Z"],"LightningBoltOff/l/filled":["M14.8517 17.5179L12.1974 21.1703C11.0923 22.6898 8.69525 21.6369 9.06657 19.7953L10.048 14.9418H6.71305C5.28356 14.9413 4.45785 13.319 5.29801 12.1625L7.06461 9.73082L14.8517 17.5179Z","M4.21989 4.41149C4.51279 4.1187 4.98758 4.11863 5.28043 4.41149L19.7804 18.9115C20.073 19.2044 20.0731 19.6793 19.7804 19.972C19.4876 20.2648 19.0128 20.2645 18.7199 19.972L4.21989 5.47204C3.92704 5.17918 3.92711 4.70439 4.21989 4.41149Z","M11.8029 3.21325C12.908 1.69337 15.3055 2.74625 14.9338 4.58825L13.9523 9.44176H17.2873C18.7167 9.44243 19.5426 11.0645 18.7023 12.2211L16.9347 14.6517L9.14762 6.86461L11.8029 3.21325Z"],"LightningBoltOff/l/outline":["M8.40339 10.8037L6.77643 13.044C6.65703 13.2089 6.77505 13.4407 6.97858 13.4414H10.6192C11.4088 13.4416 12.0002 14.1654 11.8438 14.9395L10.8028 20.0918C10.7853 20.1781 10.802 20.2291 10.8204 20.2617C10.843 20.3016 10.8866 20.3433 10.9473 20.3701C11.008 20.3968 11.0676 20.3999 11.1124 20.3897C11.1489 20.3813 11.198 20.3596 11.2501 20.2881L14.043 16.4434L15.1173 17.5176L12.463 21.1699C11.3578 22.6894 8.96055 21.6368 9.3321 19.7949L10.3135 14.9414H6.97858C5.54932 14.9407 4.72348 13.3186 5.56354 12.1621L7.33014 9.73048L8.40339 10.8037Z","M4.48542 4.41114C4.77831 4.11827 5.25308 4.11825 5.54596 4.41114L20.046 18.9111C20.3388 19.204 20.3388 19.6788 20.046 19.9717C19.7531 20.2646 19.2783 20.2645 18.9854 19.9717L4.48542 5.47169C4.19252 5.1788 4.19252 4.70404 4.48542 4.41114Z","M12.0684 3.2129C13.1734 1.69274 15.5712 2.74584 15.1993 4.5879L14.2178 9.44142H17.5528C18.9827 9.44153 19.8085 11.064 18.9678 12.2207L17.2003 14.6514L16.127 13.5781L17.7549 11.3389C17.875 11.1737 17.7569 10.9415 17.5528 10.9414H13.9122C13.1231 10.9407 12.5314 10.2171 12.6876 9.44337L13.7286 4.29103C13.7461 4.20436 13.7294 4.15371 13.711 4.1211C13.6882 4.08116 13.6449 4.03944 13.5841 4.01271C13.5233 3.98619 13.4637 3.98288 13.419 3.99317C13.3826 4.00173 13.3331 4.02345 13.2813 4.09474L10.4874 7.93849L9.41315 6.86427L12.0684 3.2129Z"],"LightningBoltOff/m/filled":["M9.90146 11.6783L8.13193 14.1139C7.3952 15.1267 5.79664 14.4245 6.04404 13.1969L6.69834 9.96154H4.47568C3.52269 9.96121 2.97221 8.87903 3.53232 8.10803L4.71006 6.48693L9.90146 11.6783Z","M2.81259 2.94104C3.0078 2.74583 3.32435 2.74595 3.51963 2.94104L13.1866 12.608C13.3816 12.8033 13.3818 13.1199 13.1866 13.3151C12.9914 13.5099 12.6748 13.5099 12.4796 13.3151L2.81259 3.64807C2.61763 3.4529 2.61774 3.13626 2.81259 2.94104Z","M7.86826 2.14221C8.60499 1.12887 10.204 1.83118 9.95615 3.0592L9.30185 6.29455H11.5245C12.4775 6.29486 13.0281 7.37603 12.4679 8.14709L11.2901 9.76818L6.09873 4.57678L7.86826 2.14221Z"],"LightningBoltOff/m/outline":["M5.60266 7.20214L4.5177 8.69628C4.43825 8.80628 4.51678 8.96052 4.65246 8.96092H7.0802C7.60637 8.96133 8.00084 9.44403 7.8966 9.95995L7.20227 13.3945C7.1906 13.4522 7.20172 13.4861 7.21398 13.5078C7.22912 13.5345 7.25835 13.5622 7.29895 13.5801C7.33932 13.5977 7.37855 13.5996 7.40832 13.5928C7.43265 13.5872 7.46539 13.5731 7.50012 13.5254L9.36242 10.9619L10.0782 11.6787L8.30871 14.1133C7.57197 15.1264 5.97408 14.4242 6.2218 13.1963L6.87609 9.96093H4.65246C3.69963 9.96052 3.14921 8.87939 3.7091 8.10839L4.88684 6.48729L5.60266 7.20214Z","M2.99035 2.94042C3.18559 2.74543 3.50219 2.74535 3.69738 2.94042L13.3644 12.6074C13.5592 12.8026 13.5593 13.1193 13.3644 13.3144C13.1692 13.5096 12.8526 13.5094 12.6573 13.3144L2.99035 3.64745C2.79521 3.45218 2.79513 3.13564 2.99035 2.94042Z","M8.04602 2.14159C8.78278 1.12867 10.3808 1.83072 10.1329 3.05858L9.47863 6.29393H11.7023C12.6555 6.2941 13.2061 7.37635 12.6456 8.14745L11.4669 9.76757L10.7521 9.05174L11.837 7.55956C11.9171 7.44946 11.8383 7.29409 11.7023 7.29393H9.27453C8.74868 7.29331 8.35424 6.8115 8.45813 6.29589L9.15246 2.86034C9.164 2.80279 9.15298 2.76875 9.14074 2.74706C9.12551 2.72056 9.09709 2.69256 9.05676 2.67479C9.01622 2.65705 8.97626 2.65526 8.94641 2.6621C8.92213 2.66774 8.88918 2.68206 8.85461 2.72948L6.99133 5.29198L6.27551 4.57616L8.04602 2.14159Z"],"LightningBoltOff/s/filled":["M7.42556 8.75893L6.09841 10.5851C5.54584 11.3447 4.34739 10.8183 4.53298 9.8976L5.0242 7.47084H3.35623C2.64158 7.47047 2.22915 6.6594 2.6492 6.08119L3.53201 4.86537L7.42556 8.75893Z","M2.11013 2.20619C2.25658 2.05975 2.49396 2.05975 2.64041 2.20619L9.89041 9.45619C10.0362 9.60254 10.0363 9.83919 9.89041 9.98549C9.74396 10.1319 9.50658 10.1318 9.36013 9.98549L2.11013 2.73646C1.96373 2.59006 1.96382 2.35265 2.11013 2.20619Z","M5.90115 1.60658C6.4537 0.846576 7.65248 1.37307 7.46658 2.29408L6.97634 4.72084H8.64334C9.35808 4.72107 9.77143 5.5322 9.35134 6.11049L8.46756 7.32533L4.574 3.43178L5.90115 1.60658Z"],"LightningBoltOff/s/outline":["M4.20216 5.40236L3.38868 6.52248C3.3291 6.60496 3.38755 6.72037 3.48927 6.72072H5.30958C5.70438 6.72082 6.00007 7.0827 5.92189 7.46975L5.40138 10.0459C5.39265 10.0891 5.40099 10.1146 5.41017 10.1309C5.42152 10.1509 5.4432 10.1722 5.47364 10.1856C5.50404 10.1989 5.53425 10.2005 5.55665 10.1953C5.57482 10.1911 5.59915 10.1799 5.62501 10.1446L7.0215 8.2217L7.55861 8.75881L6.23146 10.585C5.67888 11.3447 4.48026 10.8184 4.66603 9.89748L5.15724 7.47072H3.48927C2.77462 7.47037 2.36212 6.65932 2.78224 6.08108L3.66505 4.86525L4.20216 5.40236Z","M2.33107 2.29397C2.4287 2.19634 2.58695 2.19634 2.68458 2.29397L9.93458 9.54397C10.0322 9.6416 10.0322 9.79986 9.93458 9.89748C9.83696 9.99511 9.6787 9.9951 9.58107 9.89748L2.33107 2.64748C2.23344 2.54985 2.23344 2.3916 2.33107 2.29397Z","M6.03419 1.60647C6.58669 0.846387 7.78557 1.37293 7.59962 2.29397L7.10939 4.72072H8.77638C9.49126 4.72078 9.90454 5.53203 9.48439 6.11037L8.6006 7.32619L8.06349 6.78908L8.87794 5.66994C8.93799 5.58734 8.87843 5.47077 8.77638 5.47072H6.95607C6.56151 5.47036 6.26567 5.10856 6.34376 4.7217L6.86427 2.14553C6.87302 2.1022 6.86468 2.07687 6.85548 2.06057C6.84406 2.0406 6.82244 2.02022 6.792 2.00686C6.76163 1.99356 6.73235 1.99198 6.70997 1.99709C6.69172 2.00134 6.66664 2.0121 6.64064 2.04787L5.24415 3.96975L4.70704 3.43264L6.03419 1.60647Z"],"LightningBoltSpeedThunder/l/filled":["M12.1747 3.03473C13.2798 1.51476 15.6774 2.56773 15.3056 4.40973L14.3241 9.26324H17.6591C19.0888 9.26358 19.9146 10.8859 19.0741 12.0425L12.5693 20.9917C11.4642 22.5119 9.0666 21.4588 9.43843 19.6167L10.4198 14.7632H7.08492C5.655 14.7631 4.82916 13.1406 5.66988 11.9839L12.1747 3.03473Z"],"LightningBoltSpeedThunder/l/outline":["M12.1734 3.03478C13.2786 1.51428 15.6763 2.56767 15.3043 4.40978L14.3238 9.2633H17.6588C19.0884 9.26363 19.9142 10.885 19.0738 12.0416L12.5689 20.9918C11.464 22.512 9.06621 21.4591 9.43809 19.6168L10.4186 14.7633H7.08457C5.65458 14.7633 4.82781 13.1408 5.66856 11.984L12.1734 3.03478ZM13.525 3.81506C13.4885 3.82347 13.4395 3.84484 13.3873 3.91662L6.88242 12.8658C6.76233 13.0311 6.88026 13.2633 7.08457 13.2633H10.7242C11.5141 13.2633 12.1063 13.9872 11.9498 14.7613L10.9088 19.9137C10.8913 20.0005 10.9079 20.051 10.9264 20.0836C10.9491 20.1236 10.9923 20.1652 11.0533 20.192C11.1142 20.2186 11.1736 20.2219 11.2184 20.2115C11.2549 20.2031 11.304 20.1816 11.3561 20.11L17.8609 11.1598C17.9804 10.9947 17.8626 10.7636 17.6588 10.7633H14.0182C13.2283 10.7632 12.6361 10.0394 12.7926 9.26525L13.8346 4.11291C13.8521 4.02605 13.8345 3.9756 13.816 3.94299C13.7933 3.90297 13.751 3.8614 13.69 3.83459C13.6291 3.80783 13.5698 3.8048 13.525 3.81506Z"],"LightningBoltSpeedThunder/m/filled":["M8.11651 2.02313C8.85324 1.00982 10.4516 1.7118 10.2038 2.9398L9.54944 6.17548H11.7728C12.7259 6.1757 13.2764 7.25727 12.7161 8.02834L8.37958 13.9945C7.64284 15.0079 6.04442 14.3059 6.2923 13.0778L6.94658 9.84214H4.7233C3.77002 9.84208 3.21946 8.76041 3.77994 7.98927L8.11651 2.02313Z"],"LightningBoltSpeedThunder/m/outline":["M8.01505 1.94963C8.80539 0.862492 10.4905 1.55841 10.3451 2.83927L10.3256 2.96525L9.70157 6.05021H11.7719C12.8273 6.05021 13.4373 7.24818 12.8168 8.10197L8.48087 14.0678C7.66531 15.1898 5.89489 14.4129 6.16934 13.0531L6.79337 9.9672H4.72306C3.66767 9.9672 3.05781 8.77022 3.67813 7.91642L8.01505 1.94963ZM9.04337 2.66545C9.04217 2.66626 9.03551 2.67069 9.02579 2.684L4.68888 8.6508C4.68032 8.66258 4.68023 8.66883 4.68009 8.67131C4.6798 8.67619 4.68099 8.68501 4.68595 8.69474C4.69088 8.70428 4.6975 8.70971 4.70157 8.71232C4.70377 8.71372 4.70885 8.7172 4.72306 8.7172H7.14981C7.75529 8.71731 8.20927 9.27214 8.08927 9.86564L7.39493 13.3002C7.39143 13.3175 7.39285 13.3258 7.39298 13.3266V13.3276C7.39408 13.3294 7.40175 13.3394 7.41934 13.3471C7.43663 13.3546 7.44847 13.3534 7.45059 13.3529C7.45078 13.3529 7.45072 13.3525 7.45157 13.352C7.45261 13.3513 7.45925 13.347 7.46915 13.3334L11.8061 7.36662C11.8147 7.35476 11.8147 7.34855 11.8149 7.34611C11.8151 7.34124 11.8138 7.3332 11.809 7.32365C11.8041 7.31407 11.7985 7.30779 11.7943 7.30509C11.7923 7.30378 11.7866 7.30021 11.7719 7.30021H9.34513C8.73985 7.29998 8.28694 6.74605 8.40665 6.15275L9.10001 2.7172C9.1035 2.6999 9.10209 2.69163 9.10196 2.69084V2.68986C9.10044 2.68751 9.09314 2.67869 9.07657 2.67131C9.05863 2.66342 9.04608 2.66407 9.04434 2.66447L9.04337 2.66545Z"],"LightningBoltSpeedThunder/s/filled":["M6.08737 1.5174C6.63992 0.757412 7.83872 1.2839 7.65282 2.2049L7.16207 4.63165H8.82957C9.54442 4.63182 9.95732 5.443 9.53707 6.0213L6.28467 10.4959C5.73212 11.256 4.5333 10.7295 4.71921 9.8084L5.20992 7.38165H3.54246C2.8275 7.3816 2.41458 6.57035 2.83494 5.992L6.08737 1.5174Z"],"LightningBoltSpeedThunder/s/outline":["M5.98565 1.44367C6.59741 0.602079 7.90241 1.14081 7.79034 2.13214L7.77472 2.2298L7.31475 4.50617H8.8294C9.64629 4.50633 10.118 5.43314 9.638 6.09406L6.38604 10.5696C5.75459 11.4384 4.38421 10.8364 4.59698 9.78351L5.05694 7.50617H3.54229C2.72516 7.50617 2.25327 6.57929 2.7337 5.91828L5.98565 1.44367ZM3.54229 6.50617H5.36261C5.83634 6.50639 6.19088 6.94118 6.09698 7.40558L5.57647 9.98175L8.8294 5.50617H7.00909C6.53518 5.50614 6.17984 5.07224 6.27374 4.60773L6.79425 2.03156L3.54229 6.50617Z"],"LightningBoltZap/l/filled":["M13.9992 2.35561C13.9992 1.12899 12.4165 0.636187 11.7202 1.64595L3.17236 14.0403C2.60048 14.8695 3.19407 15.9999 4.20137 15.9999H9.99917V21.6442C9.99917 22.8708 11.5818 23.3637 12.2782 22.3539L20.826 9.95958C21.3979 9.13036 20.8043 7.99992 19.797 7.99992H13.9992V2.35561Z"],"LightningBoltZap/l/outline":["M19.7977 8.75001H13.7499C13.4738 8.75001 13.2499 8.52615 13.2499 8.25001V2.35571C13.2499 1.86506 12.6168 1.66793 12.3383 2.07184L3.79055 14.4661C3.5618 14.7978 3.79923 15.25 4.20215 15.25H10.2499C10.526 15.25 10.7499 15.4739 10.7499 15.75V21.6443C10.7499 22.135 11.3829 22.3321 11.6615 21.9282L20.2093 9.53388C20.4381 9.20219 20.2006 8.75001 19.7977 8.75001Z"],"LightningBoltZap/m/filled":["M9.33278 1.57043C9.33278 0.75268 8.27764 0.424145 7.81344 1.09732L2.11488 9.36022C1.73363 9.91302 2.12936 10.6666 2.80089 10.6666H6.66609V14.4295C6.66609 15.2472 7.72118 15.5758 8.18544 14.9026L13.884 6.63974C14.2652 6.08693 13.8695 5.3333 13.198 5.3333H9.33278V1.57043Z"],"LightningBoltZap/m/outline":["M13.1985 5.83334H9.16663C8.98257 5.83334 8.8333 5.6841 8.8333 5.50001V1.57047C8.8333 1.24337 8.41123 1.11195 8.22557 1.38123L2.52703 9.64407C2.37453 9.86521 2.53282 10.1667 2.80143 10.1667H6.8333C7.01737 10.1667 7.16663 10.3159 7.16663 10.5V14.4295C7.16663 14.7567 7.58863 14.8881 7.77437 14.6188L13.4729 6.35592C13.6254 6.13479 13.4671 5.83334 13.1985 5.83334Z"],"LightningBoltZap/s/filled":["M6.9996 1.1778C6.9996 0.564495 6.20825 0.318093 5.8601 0.822975L1.58618 7.02015C1.30024 7.43475 1.59703 7.99995 2.10068 7.99995H4.99958V10.8221C4.99958 11.4354 5.7909 11.6819 6.1391 11.177L10.413 4.97979C10.6989 4.56518 10.4021 3.99996 9.8985 3.99996H6.9996V1.1778Z"],"LightningBoltZap/s/outline":["M9.89887 4.37499H6.87497C6.73692 4.37499 6.62497 4.26306 6.62497 4.12499V1.17784C6.62497 0.932514 6.30842 0.833949 6.16917 1.0359L1.89527 7.23304C1.7809 7.39889 1.89961 7.62499 2.10107 7.62499H5.12497C5.26302 7.62499 5.37497 7.73694 5.37497 7.87499V10.8221C5.37497 11.0675 5.69147 11.166 5.83077 10.9641L10.1047 4.76692C10.2191 4.60108 10.1003 4.37499 9.89887 4.37499Z"],"LiveActivity/l/filled":["M12.8057 2.03179C17.952 2.44261 21.9999 6.74797 22 11.9996C22 17.5224 17.5228 21.9996 12 21.9996C6.47715 21.9996 2 17.5224 2 11.9996C2.00005 8.07229 4.26403 4.67509 7.55469 3.0396C7.92563 2.85526 8.37622 3.00656 8.56055 3.37749C8.7448 3.74836 8.59344 4.198 8.22266 4.38237C5.42208 5.77414 3.50005 8.66329 3.5 11.9996C3.5 16.694 7.30558 20.4996 12 20.4996C16.6944 20.4996 20.5 16.694 20.5 11.9996C20.4999 7.53638 17.0595 3.876 12.6865 3.5269C12.2736 3.49394 11.966 3.13219 11.999 2.71929C12.0322 2.30666 12.393 1.99897 12.8057 2.03179Z","M12.8447 5.65288C15.9821 6.06664 18.4033 8.75034 18.4033 12.0005C18.4033 15.5367 15.5362 18.4029 12 18.4029C8.46408 18.4027 5.59768 15.5366 5.59766 12.0005C5.59766 11.0485 5.80552 10.1427 6.17969 9.32866C6.35272 8.95247 6.79853 8.78762 7.1748 8.9605C7.55116 9.1335 7.71597 9.57926 7.54297 9.95562C7.25732 10.5771 7.09766 11.2692 7.09766 12.0005C7.09768 14.7082 9.29249 16.9027 12 16.9029C14.7078 16.9029 16.9033 14.7083 16.9033 12.0005C16.9033 9.51284 15.0495 7.45684 12.6484 7.14019C12.2378 7.08596 11.9487 6.709 12.0029 6.29839C12.0571 5.88778 12.4342 5.59873 12.8447 5.65288Z","M12.0479 9.81206C12.1983 9.42612 12.6335 9.23488 13.0195 9.3853C14.0641 9.79247 14.8066 10.8091 14.8066 12.0005C14.8064 13.5498 13.5502 14.8052 12.001 14.8052C10.4516 14.8052 9.19555 13.5498 9.19531 12.0005C9.19531 11.5863 9.5311 11.2505 9.94531 11.2505C10.3595 11.2505 10.6953 11.5863 10.6953 12.0005C10.6955 12.7213 11.28 13.3052 12.001 13.3052C12.7218 13.3052 13.3064 12.7213 13.3066 12.0005C13.3066 11.4478 12.9626 10.973 12.4746 10.7828C12.0889 10.6324 11.8977 10.1979 12.0479 9.81206Z"],"LiveActivity/l/outline":["M12.8057 2.0308C17.9519 2.44162 21.9998 6.74814 22 11.9995C21.9998 17.5223 17.5227 21.9995 12 21.9995C6.47729 21.9995 2.00022 17.5223 2 11.9995C2.00017 8.07238 4.26401 4.67401 7.55469 3.03861C7.92536 2.85452 8.37603 3.00612 8.56055 3.3765C8.74486 3.74738 8.59346 4.19797 8.22266 4.38236C5.42217 5.77409 3.50017 8.66347 3.5 11.9995C3.50022 16.6938 7.30571 20.4995 12 20.4995C16.6943 20.4995 20.4998 16.6938 20.5 11.9995C20.4998 7.53657 17.0594 3.87599 12.6865 3.52689C12.2737 3.49392 11.9661 3.13213 11.999 2.71928C12.0322 2.30669 12.393 1.99801 12.8057 2.0308Z","M12.8447 5.6431C15.9818 6.05703 18.4031 8.73993 18.4033 11.9898C18.4032 15.5258 15.536 18.3929 12 18.3931C8.46411 18.3929 5.59775 15.5258 5.59766 11.9898C5.59772 11.038 5.80564 10.1327 6.17969 9.31889C6.35268 8.94253 6.79845 8.77773 7.1748 8.95072C7.55074 9.12382 7.71567 9.56872 7.54297 9.94486C7.25734 10.5663 7.09771 11.2585 7.09766 11.9898C7.09775 14.6974 9.29254 16.8929 12 16.8931C14.7076 16.8929 16.9032 14.6974 16.9033 11.9898C16.9031 9.50241 15.0492 7.44624 12.6484 7.12943C12.2381 7.07518 11.9491 6.69898 12.0029 6.28861C12.0571 5.87795 12.4341 5.58895 12.8447 5.6431Z","M12.0479 9.81107C12.1984 9.42548 12.6338 9.23412 13.0195 9.38432C14.064 9.79145 14.8065 10.8084 14.8066 11.9995C14.8066 13.549 13.5503 14.8052 12.001 14.8052C10.4515 14.8052 9.19537 13.549 9.19531 11.9995C9.19555 11.5855 9.53125 11.2495 9.94531 11.2495C10.3594 11.2495 10.6951 11.5855 10.6953 11.9995C10.6954 12.7206 11.2799 13.3052 12.001 13.3052C12.7219 13.3052 13.3066 12.7206 13.3066 11.9995C13.3065 11.4471 12.9624 10.9729 12.4746 10.7828C12.0888 10.6323 11.8975 10.1969 12.0479 9.81107Z"],"LiveActivity/m/filled":["M8.53711 1.35485C11.9679 1.62872 14.6668 4.49847 14.667 7.99938C14.667 11.6812 11.6819 14.6664 8 14.6664C4.3181 14.6664 1.33301 11.6812 1.33301 7.99938C1.33317 5.38124 2.8433 3.11695 5.03711 2.02672C5.2843 1.904 5.58411 2.00425 5.70703 2.25133C5.82992 2.49862 5.72874 2.79934 5.48145 2.92223C3.6147 3.8501 2.33317 5.77549 2.33301 7.99938C2.33301 11.129 4.87039 13.6664 8 13.6664C11.1296 13.6664 13.667 11.129 13.667 7.99938C13.6668 5.02419 11.373 2.58381 8.45801 2.35094C8.18274 2.32897 7.97702 2.08812 7.99902 1.81285C8.02115 1.53775 8.26197 1.33294 8.53711 1.35485Z","M8.56348 3.76891C10.6549 4.04491 12.2686 5.83369 12.2686 8.00035C12.2685 10.3578 10.3575 12.2689 8 12.2689C5.64271 12.2688 3.73146 10.3577 3.73145 8.00035C3.73145 7.36569 3.87067 6.76178 4.12012 6.2191C4.23553 5.96838 4.53238 5.8587 4.7832 5.97399C5.03406 6.08934 5.14364 6.38619 5.02832 6.63707C4.83792 7.05134 4.73145 7.51282 4.73145 8.00035C4.73146 9.80546 6.19499 11.2688 8 11.2689C9.80519 11.2689 11.2685 9.80554 11.2686 8.00035C11.2686 6.34197 10.0332 4.97133 8.43262 4.76012C8.15882 4.72401 7.96582 4.47237 8.00195 4.1986C8.0382 3.92502 8.28987 3.73282 8.56348 3.76891Z","M8.03223 6.54137C8.13249 6.28408 8.42235 6.1569 8.67969 6.25719C9.37602 6.52867 9.87109 7.20613 9.87109 8.00035C9.87094 9.03309 9.03363 9.87026 8.00098 9.87047C6.96807 9.87047 6.13004 9.03322 6.12988 8.00035C6.12988 7.72432 6.35388 7.50052 6.62988 7.50035C6.90601 7.50035 7.12988 7.72422 7.12988 8.00035C7.13004 8.48089 7.52034 8.87047 8.00098 8.87047C8.48137 8.87026 8.87094 8.48076 8.87109 8.00035C8.87109 7.63189 8.64173 7.31564 8.31641 7.18883C8.05918 7.08858 7.93205 6.79866 8.03223 6.54137Z"],"LiveActivity/m/outline":["M8.54102 1.30488C11.9975 1.58088 14.7165 4.47214 14.7168 7.99922C14.7168 11.7087 11.7093 14.7158 8 14.716C4.29063 14.7158 1.2832 11.7087 1.2832 7.99922C1.2834 5.36152 2.80462 3.08001 5.01465 1.98164C5.28647 1.84676 5.61669 1.9571 5.75195 2.22871C5.88708 2.50061 5.77567 2.83072 5.50391 2.96601C3.65341 3.88572 2.38301 5.79503 2.38281 7.99922C2.38281 11.1012 4.89814 13.6162 8 13.6164C11.1018 13.6162 13.6162 11.1011 13.6162 7.99922C13.6159 5.05027 11.3425 2.63124 8.45312 2.40058C8.15063 2.37611 7.92506 2.11138 7.94922 1.80879C7.97354 1.50625 8.23846 1.2809 8.54102 1.30488Z","M8.56934 3.71211C10.6853 3.99117 12.3182 5.80131 12.3184 7.99336C12.3182 10.3783 10.3849 12.3117 8 12.3117C5.61512 12.3117 3.68185 10.3783 3.68164 7.99336C3.68169 7.35162 3.82198 6.74051 4.07422 6.1916C4.20113 5.91586 4.52785 5.79443 4.80371 5.92109C5.07957 6.04789 5.20077 6.37467 5.07422 6.65058C4.88676 7.05842 4.7813 7.51324 4.78125 7.99336C4.78146 9.77074 6.22264 11.2111 8 11.2111C9.77742 11.2111 11.2185 9.77074 11.2188 7.99336C11.2186 6.36053 10.0017 5.00988 8.42578 4.80195C8.12469 4.76218 7.91244 4.48588 7.95215 4.18476C7.99218 3.88401 8.26845 3.67248 8.56934 3.71211Z","M7.98535 6.52265C8.09575 6.24007 8.4145 6.10023 8.69727 6.21015C9.41223 6.48884 9.9209 7.18467 9.9209 8.00019C9.92075 9.06067 9.06048 9.92012 8 9.92012C6.93973 9.9198 6.08023 9.06049 6.08008 8.00019C6.08008 7.69654 6.32627 7.45055 6.62988 7.45039C6.93364 7.45039 7.17969 7.69644 7.17969 8.00019C7.17984 8.45298 7.54725 8.82019 8 8.82051C8.45293 8.82051 8.82016 8.45319 8.82031 8.00019C8.82031 7.65305 8.60462 7.35512 8.29785 7.23555C8.01509 7.12518 7.87527 6.80552 7.98535 6.52265Z"],"LiveActivity/s/filled":["M6.40332 1.01539C8.97634 1.22097 11 3.37409 11 5.99977C11 8.76117 8.7614 10.9998 6 10.9998C3.23857 10.9998 1 8.76117 1 5.99977C1.00003 4.03606 2.13192 2.33701 3.77734 1.5193C3.96269 1.4272 4.188 1.50305 4.28027 1.68825C4.37243 1.87369 4.29673 2.09898 4.11133 2.19118C2.71104 2.88706 1.75003 4.33164 1.75 5.99977C1.75 8.34697 3.65279 10.2498 6 10.2498C8.3472 10.2498 10.25 8.34697 10.25 5.99977C10.25 3.76818 8.52925 1.93798 6.34277 1.76344C6.13667 1.74673 5.98272 1.56628 5.99902 1.36012C6.01552 1.15367 6.19687 0.998914 6.40332 1.01539Z","M6.42188 2.82692C7.99042 3.03377 9.20093 4.37488 9.20117 5.99977C9.20117 7.76787 7.7681 9.20192 6 9.20192C4.23203 9.20181 2.79883 7.7678 2.79883 5.99977C2.7989 5.52406 2.90291 5.0716 3.08984 4.66481C3.17627 4.47678 3.39883 4.39409 3.58691 4.48024C3.77497 4.56668 3.8577 4.78921 3.77148 4.97731C3.62871 5.2879 3.5489 5.63425 3.54883 5.99977C3.54883 7.3536 4.64624 8.45181 6 8.45192C7.3539 8.45192 8.45117 7.35367 8.45117 5.99977C8.45093 4.75613 7.52461 3.72839 6.32422 3.57008C6.11891 3.54297 5.97486 3.35449 6.00195 3.14918C6.02904 2.94406 6.21678 2.80009 6.42188 2.82692Z","M6.02441 4.90602C6.09961 4.71305 6.31677 4.61791 6.50977 4.69313C7.0319 4.89672 7.4032 5.40425 7.40332 5.99977C7.40332 6.77452 6.7747 7.40309 6 7.40309C5.22546 7.40284 4.59766 6.77437 4.59766 5.99977C4.59781 5.7928 4.76565 5.62477 4.97266 5.62477C5.17966 5.62477 5.3475 5.7928 5.34766 5.99977C5.34766 6.36012 5.63966 6.65285 6 6.65309C6.3605 6.65309 6.65332 6.36027 6.65332 5.99977C6.6532 5.72354 6.48122 5.48644 6.2373 5.39137C6.04441 5.31614 5.94923 5.09898 6.02441 4.90602Z"],"LiveActivity/s/outline":["M6.40918 0.94093C9.02075 1.14956 11.075 3.33461 11.0752 5.99952C11.0751 8.80231 8.80276 11.0747 6 11.0747C3.19723 11.0747 0.924913 8.80231 0.924805 5.99952C0.924988 4.00645 2.07431 2.2815 3.74414 1.45167C3.96651 1.34139 4.23699 1.43262 4.34766 1.6548C4.45818 1.87728 4.36693 2.14766 4.14453 2.25831C2.76899 2.942 1.82538 4.36124 1.8252 5.99952C1.8253 8.30525 3.69428 10.1743 6 10.1743C8.30571 10.1743 10.1747 8.30525 10.1748 5.99952C10.1746 3.80757 8.48459 2.00886 6.33691 1.83741C6.0894 1.81742 5.90504 1.60063 5.9248 1.35304C5.94499 1.10572 6.16173 0.921197 6.40918 0.94093Z","M6.43262 2.74659C8.03772 2.95856 9.27618 4.33179 9.27637 5.99464C9.27637 7.80411 7.80944 9.27091 6 9.27101C4.19061 9.2709 2.72363 7.8041 2.72363 5.99464C2.72369 5.50775 2.83002 5.04399 3.02148 4.62745C3.1254 4.40189 3.39344 4.30301 3.61914 4.40675C3.84451 4.5106 3.9432 4.77785 3.83984 5.00343C3.70147 5.30446 3.62408 5.64011 3.62402 5.99464C3.62402 7.30705 4.68767 8.37149 6 8.37159C7.31239 8.37149 8.37695 7.30705 8.37695 5.99464C8.37677 4.78915 7.47796 3.7927 6.31445 3.63917C6.06818 3.60667 5.89444 3.38056 5.92676 3.13429C5.95935 2.888 6.18629 2.71411 6.43262 2.74659Z","M5.9541 4.87843C6.04449 4.6472 6.30573 4.53248 6.53711 4.62257C7.08699 4.83701 7.47832 5.3722 7.47852 5.99952C7.47848 6.81566 6.81612 7.47706 6 7.47706C5.18405 7.47682 4.52249 6.81552 4.52246 5.99952C4.52272 5.75121 4.72429 5.54933 4.97266 5.54933C5.22103 5.54933 5.42259 5.75121 5.42285 5.99952C5.42288 6.31847 5.68111 6.5774 6 6.57765C6.31904 6.57765 6.57809 6.31863 6.57812 5.99952C6.57793 5.75534 6.42598 5.54467 6.20996 5.46046C5.9788 5.3701 5.86415 5.10976 5.9541 4.87843Z"],"MenuLines/l/filled":["M21.6689 17.1418C22.0832 17.1418 22.4189 17.4776 22.4189 17.8918C22.4189 18.306 22.0832 18.6418 21.6689 18.6418H3.16895C2.75473 18.6418 2.41895 18.306 2.41895 17.8918C2.41895 17.4776 2.75473 17.1418 3.16895 17.1418H21.6689ZM21.6689 10.8918C22.0832 10.8918 22.4189 11.2276 22.4189 11.6418C22.4189 12.056 22.0832 12.3918 21.6689 12.3918H3.16895C2.75473 12.3918 2.41895 12.056 2.41895 11.6418C2.41895 11.2276 2.75473 10.8918 3.16895 10.8918H21.6689ZM21.6689 4.64178C22.0832 4.64178 22.4189 4.97757 22.4189 5.39178C22.4189 5.806 22.0832 6.14178 21.6689 6.14178H3.16895C2.75473 6.14178 2.41895 5.806 2.41895 5.39178C2.41895 4.97757 2.75473 4.64178 3.16895 4.64178H21.6689Z"],"MenuLines/l/outline":["M21.6689 17.1418C22.0832 17.1418 22.4189 17.4776 22.4189 17.8918C22.4189 18.306 22.0832 18.6418 21.6689 18.6418H3.16895C2.75473 18.6418 2.41895 18.306 2.41895 17.8918C2.41895 17.4776 2.75473 17.1418 3.16895 17.1418H21.6689ZM21.6689 10.8918C22.0832 10.8918 22.4189 11.2276 22.4189 11.6418C22.4189 12.056 22.0832 12.3918 21.6689 12.3918H3.16895C2.75473 12.3918 2.41895 12.056 2.41895 11.6418C2.41895 11.2276 2.75473 10.8918 3.16895 10.8918H21.6689ZM21.6689 4.64178C22.0832 4.64178 22.4189 4.97757 22.4189 5.39178C22.4189 5.806 22.0832 6.14178 21.6689 6.14178H3.16895C2.75473 6.14178 2.41895 5.806 2.41895 5.39178C2.41895 4.97757 2.75473 4.64178 3.16895 4.64178H21.6689Z"],"MenuLines/m/filled":["M14.4457 11.3026C14.7907 11.3026 15.0705 11.5825 15.0707 11.9276C15.0707 12.2727 14.7909 12.5526 14.4457 12.5526H2.11267C1.76749 12.5526 1.48767 12.2727 1.48767 11.9276C1.48785 11.5825 1.7676 11.3026 2.11267 11.3026H14.4457ZM14.4457 7.13654C14.7909 7.13654 15.0707 7.41636 15.0707 7.76154C15.0705 8.10656 14.7907 8.38654 14.4457 8.38654H2.11267C1.7676 8.38654 1.48785 8.10656 1.48767 7.76154C1.48767 7.41636 1.76749 7.13654 2.11267 7.13654H14.4457ZM14.4457 2.96954C14.7909 2.96954 15.0707 3.24937 15.0707 3.59454C15.0707 3.93972 14.7909 4.21954 14.4457 4.21954H2.11267C1.76749 4.21954 1.48767 3.93972 1.48767 3.59454C1.48767 3.24937 1.76749 2.96954 2.11267 2.96954H14.4457Z"],"MenuLines/m/outline":["M14.4457 11.3026C14.7907 11.3026 15.0705 11.5825 15.0707 11.9276C15.0707 12.2727 14.7909 12.5526 14.4457 12.5526H2.11267C1.76749 12.5526 1.48767 12.2727 1.48767 11.9276C1.48785 11.5825 1.7676 11.3026 2.11267 11.3026H14.4457ZM14.4457 7.13654C14.7909 7.13654 15.0707 7.41636 15.0707 7.76154C15.0705 8.10656 14.7907 8.38654 14.4457 8.38654H2.11267C1.7676 8.38654 1.48785 8.10656 1.48767 7.76154C1.48767 7.41636 1.76749 7.13654 2.11267 7.13654H14.4457ZM14.4457 2.96954C14.7909 2.96954 15.0707 3.24937 15.0707 3.59454C15.0707 3.93972 14.7909 4.21954 14.4457 4.21954H2.11267C1.76749 4.21954 1.48767 3.93972 1.48767 3.59454C1.48767 3.24937 1.76749 2.96954 2.11267 2.96954H14.4457Z"],"MenuLines/s/filled":["M10.8345 8.44592C11.1106 8.44592 11.3345 8.66978 11.3345 8.94592C11.3345 9.22207 11.1106 9.44592 10.8345 9.44592H1.58447C1.30833 9.44592 1.08447 9.22207 1.08447 8.94592C1.08447 8.66978 1.30833 8.44592 1.58447 8.44592H10.8345ZM10.8345 5.32092C11.1106 5.32092 11.3345 5.54478 11.3345 5.82092C11.3345 6.09707 11.1106 6.32092 10.8345 6.32092H1.58447C1.30833 6.32092 1.08447 6.09707 1.08447 5.82092C1.08447 5.54478 1.30833 5.32092 1.58447 5.32092H10.8345ZM10.8345 2.19592C11.1106 2.19592 11.3345 2.41978 11.3345 2.69592C11.3345 2.97207 11.1106 3.19592 10.8345 3.19592H1.58447C1.30833 3.19592 1.08447 2.97207 1.08447 2.69592C1.08447 2.41978 1.30833 2.19592 1.58447 2.19592H10.8345Z"],"MenuLines/s/outline":["M10.8345 8.44592C11.1106 8.44592 11.3345 8.66978 11.3345 8.94592C11.3345 9.22207 11.1106 9.44592 10.8345 9.44592H1.58447C1.30833 9.44592 1.08447 9.22207 1.08447 8.94592C1.08447 8.66978 1.30833 8.44592 1.58447 8.44592H10.8345ZM10.8345 5.32092C11.1106 5.32092 11.3345 5.54478 11.3345 5.82092C11.3345 6.09707 11.1106 6.32092 10.8345 6.32092H1.58447C1.30833 6.32092 1.08447 6.09707 1.08447 5.82092C1.08447 5.54478 1.30833 5.32092 1.58447 5.32092H10.8345ZM10.8345 2.19592C11.1106 2.19592 11.3345 2.41978 11.3345 2.69592C11.3345 2.97207 11.1106 3.19592 10.8345 3.19592H1.58447C1.30833 3.19592 1.08447 2.97207 1.08447 2.69592C1.08447 2.41978 1.30833 2.19592 1.58447 2.19592H10.8345Z"],"MicrophoneDictation/l/filled":["M18.1889 14.2002C18.3547 13.8207 18.7968 13.6468 19.1762 13.8125C19.5557 13.9783 19.7287 14.4203 19.5629 14.7998C18.3857 17.4943 15.8097 19.44 12.7504 19.7158V21.25C12.7504 21.6642 12.4145 21.9999 12.0004 22C11.5863 22 11.2505 21.6643 11.2504 21.25V19.7158C8.19108 19.4401 5.61427 17.4944 4.43695 14.7998C4.27141 14.4205 4.44437 13.9783 4.82366 13.8125C5.20323 13.6466 5.64612 13.8206 5.81195 14.2002C6.85436 16.5854 9.2339 18.25 12.0004 18.25C14.767 18.2499 17.1465 16.5854 18.1889 14.2002ZM12.0004 2C14.7618 2.00007 17.0004 4.23862 17.0004 7V11.5C17.0004 14.2614 14.7618 16.4999 12.0004 16.5C9.23902 16.5 7.00042 14.2614 7.00042 11.5V7C7.00042 4.23858 9.23902 2 12.0004 2Z"],"MicrophoneDictation/l/outline":["M11.25 21.25V19.7148C8.19071 19.4391 5.61385 17.4944 4.43653 14.7998C4.27105 14.4203 4.44482 13.9783 4.82423 13.8125C5.20369 13.647 5.64577 13.8208 5.81153 14.2002C6.85392 16.5855 9.23346 18.25 12 18.25C14.7666 18.25 17.146 16.5855 18.1885 14.2002C18.3543 13.8208 18.7963 13.647 19.1758 13.8125C19.5552 13.9783 19.729 14.4204 19.5635 14.7998C18.3861 17.4944 15.8093 19.4391 12.75 19.7148V21.25C12.75 21.6642 12.4142 22 12 22C11.5858 22 11.25 21.6642 11.25 21.25ZM15.5 7C15.5 5.06703 13.933 3.50004 12 3.5C10.067 3.5 8.50001 5.067 8.50001 7V11.5C8.50001 13.433 10.067 15 12 15C13.933 15 15.5 13.433 15.5 11.5V7ZM17 11.5C17 14.2614 14.7614 16.5 12 16.5C9.23861 16.5 7.00001 14.2614 7.00001 11.5V7C7.00001 4.23858 9.23861 2 12 2C14.7614 2.00004 17 4.2386 17 7V11.5Z"],"MicrophoneDictation/m/filled":["M12.1261 9.46631C12.2366 9.21324 12.5313 9.0979 12.7843 9.2085C13.0374 9.31903 13.1527 9.6137 13.0421 9.8667C12.2572 11.663 10.5397 12.9602 8.50012 13.144V14.1665C8.50008 14.4427 8.27623 14.6665 8.00012 14.6665C7.72408 14.6664 7.50017 14.4426 7.50012 14.1665V13.144C5.46064 12.9602 3.743 11.663 2.95813 9.8667C2.8476 9.61378 2.96307 9.31911 3.21594 9.2085C3.46895 9.09791 3.76355 9.21332 3.87415 9.46631C4.56899 11.0566 6.15569 12.1664 8.00012 12.1665C9.84465 12.1665 11.4312 11.0566 12.1261 9.46631ZM8.00012 1.3335C9.84105 1.3335 11.3341 2.82557 11.3341 4.6665V7.6665C11.3341 9.50744 9.84106 10.9995 8.00012 10.9995C6.1593 10.9994 4.66711 9.50735 4.66711 7.6665V4.6665C4.66713 2.82565 6.15931 1.33363 8.00012 1.3335Z"],"MicrophoneDictation/m/outline":["M7.37511 14.1665V13.2563C5.33926 13.0313 3.63196 11.7208 2.84386 9.91748C2.70566 9.60117 2.84982 9.23244 3.16612 9.09424C3.48231 8.95618 3.85013 9.10042 3.98839 9.4165C4.66407 10.963 6.20707 12.0415 8.00011 12.0415C9.79316 12.0415 11.3361 10.963 12.0118 9.4165C12.1501 9.10042 12.5179 8.95616 12.8341 9.09424C13.1504 9.23244 13.2946 9.60118 13.1564 9.91748C12.3682 11.7208 10.6609 13.0312 8.62511 13.2563V14.1665C8.62511 14.5117 8.34526 14.7915 8.00011 14.7915C7.65493 14.7915 7.37511 14.5117 7.37511 14.1665ZM10.2081 4.6665C10.2079 3.44704 9.2196 2.45852 8.00011 2.4585C6.78061 2.4585 5.79227 3.44702 5.7921 4.6665V7.6665C5.7921 8.88613 6.7805 9.87549 8.00011 9.87549C9.2197 9.87546 10.2081 8.88611 10.2081 7.6665V4.6665ZM11.4581 7.6665C11.4581 9.57646 9.91006 11.1255 8.00011 11.1255C6.09014 11.1255 4.5421 9.57648 4.5421 7.6665V4.6665C4.54227 2.75667 6.09025 1.2085 8.00011 1.2085C9.90995 1.20852 11.4579 2.75668 11.4581 4.6665V7.6665Z"],"MicrophoneDictation/s/filled":["M9.09408 7.1001C9.17698 6.9103 9.39847 6.82379 9.58822 6.90674C9.77784 6.98968 9.8644 7.21025 9.78158 7.3999C9.19297 8.74712 7.9049 9.71996 6.37533 9.85791V10.6245C6.37533 10.8316 6.20731 10.9994 6.00033 10.9995C5.79323 10.9995 5.62533 10.8317 5.62533 10.6245V9.85791C4.09566 9.72006 2.80676 8.7472 2.2181 7.3999C2.13541 7.21022 2.22276 6.98959 2.41244 6.90674C2.60217 6.82398 2.82272 6.91038 2.9056 7.1001C3.42678 8.29277 4.61702 9.12451 6.00033 9.12451C7.38349 9.1244 8.57289 8.2926 9.09408 7.1001ZM6.00033 0.999512C7.38093 0.999628 8.50033 2.11985 8.50033 3.50049V5.75049C8.50006 7.13089 7.38077 8.25037 6.00033 8.25049C4.61979 8.25049 3.50059 7.13096 3.50033 5.75049V3.50049C3.50033 2.11978 4.61963 0.999512 6.00033 0.999512Z"],"MicrophoneDictation/s/outline":["M5.49949 10.625V9.96777C3.97373 9.78867 2.69567 8.80438 2.10398 7.4502C1.99343 7.19718 2.1088 6.90257 2.36179 6.79199C2.61481 6.68145 2.90941 6.79681 3.01999 7.0498C3.5219 8.19858 4.66776 8.99982 5.99949 9C7.33143 9 8.47795 8.19872 8.97995 7.0498C9.09054 6.79681 9.38514 6.68144 9.63816 6.79199C9.89114 6.90258 10.0065 7.19718 9.89597 7.4502C9.30414 8.80465 8.02567 9.78895 6.49949 9.96777V10.625C6.49949 10.9011 6.27563 11.125 5.99949 11.125C5.72355 11.1248 5.49949 10.901 5.49949 10.625ZM7.62449 3.5C7.62449 2.60254 6.89694 1.875 5.99949 1.875C5.10225 1.87524 4.37449 2.60269 4.37449 3.5V5.75C4.37449 6.64731 5.10225 7.37476 5.99949 7.375C6.89694 7.375 7.62449 6.64746 7.62449 5.75V3.5ZM8.62449 5.75C8.62449 7.19974 7.44923 8.375 5.99949 8.375C4.54996 8.37476 3.37449 7.19959 3.37449 5.75V3.5C3.37449 2.0504 4.54996 0.875243 5.99949 0.875C7.44923 0.875 8.62449 2.05025 8.62449 3.5V5.75Z"],"MoonDark/l/filled":["M12.0566 2C6.53379 2 2.05664 6.47715 2.05664 12C2.05664 17.5228 6.53379 22 12.0566 22C17.5794 22 22.0566 17.5228 22.0566 12C22.0566 11.9319 22.0559 11.8639 22.0546 11.7962C22.049 11.5186 21.8906 11.2669 21.6428 11.1417C21.395 11.0166 21.0984 11.0385 20.8717 11.1988C19.935 11.861 18.7924 12.25 17.5566 12.25C14.381 12.25 11.8066 9.67564 11.8066 6.5C11.8066 5.26425 12.1956 4.12157 12.8578 3.18485C13.0181 2.95819 13.04 2.66155 12.9149 2.41377C12.7897 2.16599 12.538 2.0076 12.2604 2.00204C12.1926 2.00068 12.1247 2 12.0566 2Z"],"MoonDark/l/outline":["M10.3066 6.5C10.3066 5.4606 10.5264 4.47165 10.9209 3.57715C6.76359 4.13239 3.55664 7.69077 3.55664 12C3.55664 16.6944 7.36223 20.5 12.0566 20.5C16.3661 20.5 19.9236 17.2925 20.4785 13.1348C19.5841 13.5292 18.5958 13.75 17.5566 13.75C13.5525 13.75 10.3066 10.5041 10.3066 6.5ZM11.8066 6.5C11.8066 9.67569 14.381 12.25 17.5566 12.25C18.7923 12.25 19.9353 11.8614 20.8721 11.1992L20.96 11.1455C21.1719 11.0357 21.4258 11.0322 21.6426 11.1416C21.8903 11.2666 22.0489 11.5185 22.0547 11.7959C22.0561 11.8642 22.0566 11.9322 22.0566 12C22.0566 17.5228 17.5795 22 12.0566 22C6.5338 22 2.05664 17.5228 2.05664 12C2.05664 6.47716 6.5338 2 12.0566 2C12.1247 2 12.1929 2.00059 12.2607 2.00195C12.5382 2.00761 12.7899 2.16636 12.915 2.41406C13.04 2.66178 13.0176 2.958 12.8574 3.18457C12.1952 4.12129 11.8066 5.26426 11.8066 6.5Z"],"MoonDark/m/filled":["M8.03776 1.33331C4.35586 1.33331 1.37109 4.31808 1.37109 7.99998C1.37109 11.6818 4.35586 14.6666 8.03776 14.6666C11.7196 14.6666 14.7044 11.6818 14.7044 7.99998C14.7044 7.95458 14.704 7.90925 14.7031 7.86411C14.6994 7.67905 14.5938 7.51125 14.4286 7.42778C14.2634 7.34438 14.0656 7.35898 13.9145 7.46585C13.29 7.90731 12.5283 8.16665 11.7044 8.16665C9.58736 8.16665 7.87109 6.45041 7.87109 4.33331C7.87109 3.50948 8.13043 2.74769 8.57189 2.12321C8.67876 1.97211 8.69336 1.77435 8.60996 1.60916C8.52649 1.44397 8.35869 1.33838 8.17363 1.33467C8.12843 1.33377 8.08316 1.33331 8.03776 1.33331Z"],"MoonDark/m/outline":["M6.74609 4.33331C6.74609 3.7016 6.86625 3.09756 7.08203 2.54132C4.47698 2.99426 2.49609 5.2657 2.49609 8.00031C2.49627 11.0607 4.97762 13.5413 8.03809 13.5413C10.7729 13.5412 13.0426 11.5599 13.4951 8.95441C12.9391 9.17002 12.3355 9.29132 11.7041 9.29132C8.96581 9.29115 6.74609 7.07165 6.74609 4.33331ZM7.99609 4.33331C7.99609 6.38129 9.65616 8.04114 11.7041 8.04132C12.5012 8.04132 13.2387 7.79064 13.8428 7.36359L13.916 7.31866C14.0924 7.22744 14.304 7.22488 14.4844 7.31573C14.6908 7.41992 14.8233 7.63044 14.8281 7.86163C14.8291 7.908 14.8291 7.95443 14.8291 8.00031C14.8289 11.751 11.7887 14.7911 8.03809 14.7913C4.28726 14.7913 1.24627 11.7511 1.24609 8.00031C1.24609 4.24937 4.28715 1.20831 8.03809 1.20831C8.08408 1.20832 8.12996 1.20837 8.17578 1.20929C8.40705 1.21393 8.6174 1.34656 8.72168 1.55304C8.82582 1.75947 8.80731 2.00681 8.67383 2.19562C8.24688 2.79965 7.99609 3.53627 7.99609 4.33331Z"],"MoonDark/s/filled":["M6.02832 1C3.2669 1 1.02832 3.23857 1.02832 6C1.02832 8.7614 3.2669 11 6.02832 11C8.78972 11 11.0283 8.7614 11.0283 6C11.0283 5.96595 11.028 5.93195 11.0273 5.8981C11.0245 5.7593 10.9453 5.63345 10.8214 5.57085C10.6975 5.5083 10.5492 5.51925 10.4359 5.5994C9.96752 5.9305 9.39622 6.125 8.77832 6.125C7.19052 6.125 5.90332 4.83782 5.90332 3.25C5.90332 2.63213 6.09782 2.06079 6.42892 1.59242C6.50907 1.47909 6.52002 1.33077 6.45747 1.20688C6.39487 1.08299 6.26902 1.0038 6.13022 1.00102C6.09632 1.00034 6.06237 1 6.02832 1Z"],"MoonDark/s/outline":["M5.02832 3.25C5.02832 2.79161 5.11284 2.35277 5.26367 1.94629C3.35089 2.30487 1.90332 3.98313 1.90332 6C1.90332 8.27816 3.75015 10.125 6.02832 10.125C8.04544 10.125 9.72278 8.67683 10.0811 6.76367C9.67472 6.91438 9.2365 7 8.77832 7C6.70723 7 5.02832 5.32109 5.02832 3.25ZM6.02832 3.25C6.02832 4.76881 7.25951 6 8.77832 6C9.36941 6 9.91536 5.81368 10.3633 5.49707C10.5143 5.39028 10.7128 5.37564 10.8779 5.45898C11.043 5.54236 11.1485 5.7106 11.1523 5.89551C11.1531 5.93054 11.1533 5.96537 11.1533 6C11.1533 8.83044 8.85876 11.125 6.02832 11.125C3.19786 11.125 0.90332 8.83044 0.90332 6C0.90332 3.16954 3.19786 0.875 6.02832 0.875C6.0632 0.875 6.09806 0.875279 6.13281 0.875977C6.3178 0.879711 6.48592 0.985226 6.56934 1.15039C6.65276 1.31557 6.63807 1.51393 6.53125 1.66504C6.21465 2.11296 6.02832 2.65889 6.02832 3.25Z"],"NoteSquareLines/l/filled":["M2.60913 6.17853C2.60913 4.65975 3.84035 3.42853 5.35913 3.42853H17.8591C19.3779 3.42853 20.6091 4.65975 20.6091 6.17853V18.6785C20.6091 20.1973 19.3779 21.4285 17.8591 21.4285H5.35913C3.84035 21.4285 2.60913 20.1973 2.60913 18.6785V6.17853ZM7.60913 14.4285C7.60913 14.0143 7.94492 13.6785 8.35913 13.6785H12.8591C13.2733 13.6785 13.6091 14.0143 13.6091 14.4285C13.6091 14.8427 13.2733 15.1785 12.8591 15.1785H8.35913C7.94492 15.1785 7.60913 14.8427 7.60913 14.4285ZM8.35913 9.67853C7.94492 9.67853 7.60913 10.0143 7.60913 10.4285C7.60913 10.8427 7.94492 11.1785 8.35913 11.1785H14.8591C15.2733 11.1785 15.6091 10.8427 15.6091 10.4285C15.6091 10.0143 15.2733 9.67853 14.8591 9.67853H8.35913Z"],"NoteSquareLines/l/outline":["M19.1091 6.17853C19.1091 5.48816 18.5495 4.92853 17.8591 4.92853H5.35913C4.66877 4.92853 4.10913 5.48817 4.10913 6.17853V18.6785C4.10913 19.3689 4.66877 19.9285 5.35913 19.9285H17.8591C18.5495 19.9285 19.1091 19.3689 19.1091 18.6785V6.17853ZM12.8591 13.6785C13.2733 13.6785 13.6091 14.0143 13.6091 14.4285C13.6091 14.8427 13.2733 15.1785 12.8591 15.1785H8.35913C7.94492 15.1785 7.60913 14.8427 7.60913 14.4285C7.60913 14.0143 7.94492 13.6785 8.35913 13.6785H12.8591ZM14.8591 9.67853C15.2733 9.67853 15.6091 10.0143 15.6091 10.4285C15.6091 10.8427 15.2733 11.1785 14.8591 11.1785H8.35913C7.94492 11.1785 7.60913 10.8427 7.60913 10.4285C7.60913 10.0143 7.94492 9.67853 8.35913 9.67853H14.8591ZM20.6091 18.6785C20.6091 20.1973 19.3779 21.4285 17.8591 21.4285H5.35913C3.84035 21.4285 2.60913 20.1973 2.60913 18.6785V6.17853C2.60913 4.65974 3.84035 3.42853 5.35913 3.42853H17.8591C19.378 3.42853 20.6091 4.65975 20.6091 6.17853V18.6785Z"],"NoteSquareLines/m/filled":["M1.7395 4.11904C1.7395 3.10652 2.56032 2.28571 3.57284 2.28571H11.9062C12.9187 2.28571 13.7395 3.10652 13.7395 4.11904V12.4524C13.7395 13.4649 12.9187 14.2857 11.9062 14.2857H3.57284C2.56032 14.2857 1.7395 13.4649 1.7395 12.4524V4.11904ZM5.07284 9.61904C5.07284 9.34291 5.2967 9.11904 5.57284 9.11904H8.57284C8.84897 9.11904 9.07284 9.34291 9.07284 9.61904C9.07284 9.89517 8.84897 10.119 8.57284 10.119H5.57284C5.2967 10.119 5.07284 9.89517 5.07284 9.61904ZM5.57284 6.45237C5.2967 6.45237 5.07284 6.67623 5.07284 6.95237C5.07284 7.22851 5.2967 7.45237 5.57284 7.45237H9.90617C10.1823 7.45237 10.4062 7.22851 10.4062 6.95237C10.4062 6.67623 10.1823 6.45237 9.90617 6.45237H5.57284Z"],"NoteSquareLines/m/outline":["M12.6145 4.11871C12.6143 3.72776 12.2975 3.41088 11.9065 3.41071H3.57251C3.18157 3.41088 2.86468 3.72777 2.8645 4.11871V12.4527C2.86468 12.8437 3.18156 13.1605 3.57251 13.1607H11.9065C12.2975 13.1605 12.6143 12.8437 12.6145 12.4527V4.11871ZM8.57251 8.99371C8.91758 8.99371 9.19733 9.27368 9.19751 9.61871C9.19751 9.96389 8.91769 10.2437 8.57251 10.2437H5.57251C5.22748 10.2435 4.94751 9.96378 4.94751 9.61871C4.94769 9.27379 5.22759 8.99389 5.57251 8.99371H8.57251ZM9.90649 6.3277C10.2515 6.32787 10.5315 6.60763 10.5315 6.9527C10.5313 7.29762 10.2514 7.57752 9.90649 7.5777H5.57251C5.22759 7.57752 4.94769 7.29762 4.94751 6.9527C4.94751 6.60763 5.22748 6.32787 5.57251 6.3277H9.90649ZM13.8645 12.4527C13.8643 13.534 12.9878 14.4105 11.9065 14.4107H3.57251C2.49122 14.4105 1.61468 13.534 1.6145 12.4527V4.11871C1.61468 3.03741 2.49121 2.16088 3.57251 2.16071H11.9065C12.9878 2.16088 13.8643 3.03742 13.8645 4.11871V12.4527Z"],"NoteSquareLines/s/filled":["M1.30457 3.08923C1.30457 2.32984 1.92018 1.71423 2.67957 1.71423H8.92957C9.68897 1.71423 10.3046 2.32984 10.3046 3.08923V9.33923C10.3046 10.0986 9.68897 10.7142 8.92957 10.7142H2.67957C1.92018 10.7142 1.30457 10.0986 1.30457 9.33923V3.08923ZM3.80457 7.21423C3.80457 7.00713 3.97246 6.83923 4.17957 6.83923H6.42957C6.63667 6.83923 6.80457 7.00713 6.80457 7.21423C6.80457 7.42133 6.63667 7.58923 6.42957 7.58923H4.17957C3.97246 7.58923 3.80457 7.42133 3.80457 7.21423ZM4.17957 4.83923C3.97246 4.83923 3.80457 5.00713 3.80457 5.21423C3.80457 5.42133 3.97246 5.58923 4.17957 5.58923H7.42957C7.63667 5.58923 7.80457 5.42133 7.80457 5.21423C7.80457 5.00713 7.63667 4.83923 7.42957 4.83923H4.17957Z"],"NoteSquareLines/s/outline":["M9.42957 3.08923C9.42957 2.81309 9.20572 2.58923 8.92957 2.58923H2.67957C2.40342 2.58923 2.17957 2.81309 2.17957 3.08923V9.33923C2.17957 9.61539 2.40342 9.83923 2.67957 9.83923H8.92957C9.20572 9.83923 9.42957 9.61539 9.42957 9.33923V3.08923ZM6.42957 6.71423C6.70571 6.71423 6.92957 6.93809 6.92957 7.21423C6.92957 7.49038 6.70571 7.71423 6.42957 7.71423H4.17957C3.90342 7.71423 3.67957 7.49038 3.67957 7.21423C3.67957 6.93809 3.90342 6.71423 4.17957 6.71423H6.42957ZM7.42957 4.71423C7.70571 4.71423 7.92957 4.93809 7.92957 5.21423C7.92957 5.49038 7.70571 5.71423 7.42957 5.71423H4.17957C3.90342 5.71423 3.67957 5.49038 3.67957 5.21423C3.67957 4.93809 3.90342 4.71423 4.17957 4.71423H7.42957ZM10.4296 9.33923C10.4296 10.1677 9.75801 10.8392 8.92957 10.8392H2.67957C1.85114 10.8392 1.17957 10.1677 1.17957 9.33923V3.08923C1.17957 2.26081 1.85114 1.58923 2.67957 1.58923H8.92957C9.75801 1.58923 10.4296 2.26081 10.4296 3.08923V9.33923Z"],"NumberedList/l/filled":["M5.71777 13.3088C6.91274 13.3088 8.07123 14.1691 8.07129 15.4475C8.07129 16.1724 7.71059 16.7132 7.29395 17.1057C6.89389 17.4825 6.3833 17.7779 5.95996 18.0178L5.85547 18.0764C5.70977 18.1589 5.57531 18.2359 5.45117 18.3088H7.60938C8.02358 18.3088 8.35938 18.6446 8.35938 19.0588C8.35925 19.4729 8.02351 19.8088 7.60938 19.8088H3.85938C3.44524 19.8088 3.1095 19.4729 3.10938 19.0588C3.10938 18.356 3.5268 17.8637 3.92285 17.5364C4.27256 17.2473 4.71749 16.9967 5.09766 16.7825L5.2207 16.7131C5.66265 16.4627 6.01672 16.2484 6.26562 16.0139C6.498 15.795 6.57129 15.6223 6.57129 15.4475C6.57121 15.1917 6.29298 14.8088 5.71777 14.8088C5.46067 14.8089 5.19218 14.9113 4.95996 15.0471C4.84918 15.1118 4.75901 15.1773 4.69824 15.2248C4.66867 15.248 4.64679 15.2663 4.63379 15.2776L4.62109 15.2893C4.31953 15.5703 3.84658 15.5554 3.56348 15.2551C3.27952 14.9537 3.29345 14.4786 3.59473 14.1946L3.59668 14.1936L3.60254 14.1877L3.61426 14.177C3.6236 14.1685 3.63635 14.1577 3.65137 14.1448C3.68141 14.1187 3.72284 14.0836 3.77441 14.0432C3.87687 13.9631 4.02275 13.8577 4.20312 13.7522C4.55383 13.5472 5.09009 13.3089 5.71777 13.3088Z","M20.3594 15.8088C20.7736 15.8088 21.1094 16.1446 21.1094 16.5588C21.1093 16.9729 20.7735 17.3088 20.3594 17.3088H11.8594C11.4452 17.3088 11.1095 16.9729 11.1094 16.5588C11.1094 16.1446 11.4452 15.8088 11.8594 15.8088H20.3594Z","M5.92969 3.94457C6.15878 3.78423 6.45802 3.76465 6.70605 3.89379C6.95389 4.023 7.10938 4.27932 7.10938 4.55883V9.55883C7.10925 9.97292 6.77352 10.3088 6.35938 10.3088C5.94527 10.3088 5.6095 9.9729 5.60938 9.55883V5.99926L4.28906 6.92308C3.94975 7.16032 3.48258 7.07774 3.24512 6.73851C3.00764 6.39918 3.09037 5.93208 3.42969 5.69457L5.92969 3.94457Z","M20.3594 6.30883C20.7736 6.30883 21.1094 6.64462 21.1094 7.05883C21.1093 7.47293 20.7735 7.80883 20.3594 7.80883H11.8594C11.4452 7.80883 11.1095 7.47293 11.1094 7.05883C11.1094 6.64462 11.4452 6.30883 11.8594 6.30883H20.3594Z"],"NumberedList/l/outline":["M5.6084 13.3088C6.80331 13.3088 7.96172 14.1692 7.96191 15.4475C7.96184 16.1723 7.60117 16.7143 7.18457 17.1067C6.78462 17.4833 6.27373 17.7781 5.85059 18.0178C5.66547 18.1227 5.49731 18.2192 5.34473 18.3088H7.5C7.91421 18.3088 8.25 18.6446 8.25 19.0588C8.24987 19.4729 7.91413 19.8088 7.5 19.8088H3.75C3.33587 19.8088 3.00013 19.4729 3 19.0588C3 18.3561 3.41746 17.8638 3.81348 17.5364C4.20162 17.2157 4.70734 16.942 5.11133 16.7131C5.55316 16.4628 5.90736 16.2483 6.15625 16.0139C6.38843 15.7952 6.46185 15.6222 6.46191 15.4475C6.46168 15.1918 6.18342 14.8088 5.6084 14.8088C5.35129 14.809 5.08281 14.9114 4.85059 15.0471C4.73981 15.1119 4.64964 15.1773 4.58887 15.2249C4.55899 15.2483 4.53737 15.2674 4.52441 15.2786C4.518 15.2841 4.51338 15.2878 4.51172 15.2893C4.21015 15.57 3.7371 15.5553 3.4541 15.2551C3.17015 14.9537 3.18409 14.4786 3.48535 14.1946L3.66504 14.385C3.50776 14.218 3.4876 14.1972 3.48535 14.1946L3.48633 14.1936L3.49316 14.1878C3.49633 14.1848 3.50031 14.1811 3.50488 14.177C3.51422 14.1686 3.527 14.1578 3.54199 14.1448C3.57202 14.1188 3.61354 14.0835 3.66504 14.0432C3.76749 13.9631 3.91344 13.8576 4.09375 13.7522C4.44445 13.5472 4.98071 13.309 5.6084 13.3088Z","M20.25 15.8088C20.6642 15.8088 21 16.1446 21 16.5588C20.9999 16.9729 20.6641 17.3088 20.25 17.3088H11.75C11.3359 17.3088 11.0001 16.9729 11 16.5588C11 16.1446 11.3358 15.8088 11.75 15.8088H20.25Z","M5.82031 3.94459C6.04939 3.78434 6.3487 3.76469 6.59668 3.89381C6.84448 4.02303 7 4.27935 7 4.55884V9.55884C6.99987 9.97295 6.66413 10.3088 6.25 10.3088C5.83587 10.3088 5.50013 9.97295 5.5 9.55884V5.9983L4.17969 6.9231C3.84043 7.16034 3.37324 7.07763 3.13574 6.73853C2.8984 6.39925 2.98113 5.9321 3.32031 5.69459L5.82031 3.94459Z","M20.25 6.30884C20.6642 6.30884 21 6.64463 21 7.05884C20.9999 7.47295 20.6641 7.80884 20.25 7.80884H11.75C11.3359 7.80884 11.0001 7.47295 11 7.05884C11 6.64463 11.3358 6.30884 11.75 6.30884H20.25Z"],"NumberedList/m/filled":["M3.81213 8.87233C4.60872 8.87233 5.38033 9.44592 5.38049 10.2981C5.38049 10.7812 5.14058 11.1419 4.86292 11.4036C4.59618 11.6548 4.25552 11.852 3.97327 12.012L3.90393 12.051C3.80695 12.1059 3.71705 12.1568 3.6344 12.2053H5.07288C5.34889 12.2053 5.57267 12.4294 5.57288 12.7053C5.57288 12.9815 5.34902 13.2053 5.07288 13.2053H2.57288C2.29675 13.2053 2.07288 12.9815 2.07288 12.7053C2.07303 12.237 2.35091 11.9088 2.61487 11.6907C2.84811 11.4979 3.1455 11.3307 3.39905 11.1878L3.4801 11.1419C3.77477 10.9749 4.01141 10.8324 4.17737 10.676C4.33221 10.5301 4.38049 10.4146 4.38049 10.2981C4.3803 10.1276 4.19545 9.87233 3.81213 9.87233C3.6407 9.87233 3.46212 9.94095 3.30725 10.0315C3.23332 10.0747 3.17301 10.1179 3.13245 10.1497C3.1124 10.1654 3.09717 10.1773 3.0885 10.1848L3.08069 10.1926C2.87966 10.38 2.56435 10.3703 2.37561 10.1702C2.18626 9.96918 2.1961 9.65248 2.39709 9.46315L2.40198 9.45826L2.40979 9.45143C2.416 9.44578 2.42423 9.43856 2.4342 9.42994C2.45421 9.41256 2.4819 9.38946 2.51624 9.36256C2.58458 9.30909 2.68196 9.23862 2.80237 9.16822C3.03623 9.03156 3.39355 8.87233 3.81213 8.87233Z","M13.5729 10.5393C13.849 10.5393 14.0729 10.7632 14.0729 11.0393C14.0727 11.3153 13.8489 11.5393 13.5729 11.5393H7.90588C7.63002 11.5391 7.40602 11.3152 7.40588 11.0393C7.40588 10.7633 7.62993 10.5395 7.90588 10.5393H13.5729Z","M3.95276 2.62916C4.10549 2.52228 4.30499 2.50987 4.47034 2.59596C4.6357 2.68206 4.73987 2.85289 4.73987 3.03932V6.37233C4.73987 6.64837 4.5159 6.87219 4.23987 6.87233C3.96373 6.87233 3.73987 6.64846 3.73987 6.37233V3.99928L2.85999 4.61549C2.63381 4.77381 2.32209 4.71854 2.1637 4.49244C2.00541 4.26632 2.05981 3.95458 2.28577 3.79615L3.95276 2.62916Z","M13.5729 4.20533C13.8489 4.20533 14.0726 4.42938 14.0729 4.70533C14.0729 4.98147 13.849 5.20533 13.5729 5.20533H7.90588C7.62993 5.20512 7.40588 4.98134 7.40588 4.70533C7.40611 4.42952 7.63007 4.20555 7.90588 4.20533H13.5729Z"],"NumberedList/m/outline":["M3.73926 8.74714C4.58743 8.74715 5.43233 9.36066 5.43262 10.2979C5.43262 10.827 5.16904 11.2191 4.87598 11.4952C4.61936 11.7369 4.29912 11.9273 4.03125 12.0802H5C5.34498 12.0802 5.62469 12.3602 5.625 12.7052C5.625 13.0503 5.34518 13.3302 5 13.3302H2.5C2.15482 13.3302 1.875 13.0503 1.875 12.7052C1.87523 12.1826 2.18618 11.8228 2.46191 11.5948C2.73128 11.3722 3.08107 11.1832 3.3457 11.0333C3.6418 10.8655 3.86522 10.7294 4.01855 10.585C4.15802 10.4536 4.18262 10.3686 4.18262 10.2979C4.18248 10.2464 4.15939 10.1798 4.08496 10.1153C4.009 10.0497 3.88864 9.99715 3.73926 9.99714C3.59868 9.99714 3.44188 10.054 3.29688 10.1387C3.22884 10.1785 3.17379 10.2191 3.13672 10.2481C3.11854 10.2623 3.10492 10.2731 3.09766 10.2794C3.09434 10.2822 3.09242 10.2846 3.0918 10.2852L3.09375 10.2833C2.84245 10.5189 2.44825 10.5058 2.21191 10.255C1.97545 10.0037 1.9872 9.60878 2.23828 9.37214L2.51074 9.66023C2.23873 9.37142 2.23816 9.37226 2.23828 9.37214L2.24023 9.36922C2.24123 9.36834 2.24296 9.36737 2.24414 9.36629L2.2793 9.33504C2.30072 9.31647 2.33015 9.29197 2.36621 9.26375C2.43801 9.20757 2.53991 9.13337 2.66602 9.05964C2.90975 8.91718 3.28985 8.74714 3.73926 8.74714Z","M13.5 10.4141C13.845 10.4143 14.125 10.6941 14.125 11.0391C14.125 11.3842 13.845 11.664 13.5 11.6641H7.83301C7.48801 11.6639 7.20803 11.3842 7.20801 11.0391C7.20801 10.6941 7.488 10.4143 7.83301 10.4141H13.5Z","M3.80859 2.52742C3.99941 2.3939 4.24846 2.37702 4.45508 2.48445C4.66177 2.59208 4.79199 2.8061 4.79199 3.03914V6.37214C4.79197 6.71719 4.512 6.99697 4.16699 6.99714C3.82183 6.99714 3.54202 6.7173 3.54199 6.37214V4.23836L2.8584 4.71785C2.57575 4.91567 2.1863 4.84697 1.98828 4.56453C1.79034 4.28175 1.85884 3.89139 2.1416 3.69343L3.80859 2.52742Z","M13.5 4.08113C13.845 4.08131 14.125 4.36106 14.125 4.70613C14.1248 5.05104 13.8449 5.33095 13.5 5.33113H7.83301C7.48812 5.33093 7.2082 5.05102 7.20801 4.70613C7.20801 4.36107 7.488 4.08133 7.83301 4.08113H13.5Z"],"NumberedList/s/filled":["M2.85925 6.65415C3.45658 6.65424 4.03483 7.08449 4.03503 7.72349C4.03503 8.08574 3.85552 8.35637 3.64734 8.55259C3.44745 8.74089 3.19194 8.88875 2.98035 9.00864L2.92761 9.03794C2.85477 9.07917 2.78753 9.11767 2.72546 9.15415H3.80457C4.01161 9.15415 4.17947 9.32213 4.17957 9.52915C4.17957 9.73625 4.01167 9.90415 3.80457 9.90415H1.92957C1.7225 9.90411 1.55457 9.73623 1.55457 9.52915C1.55463 9.17799 1.76289 8.93203 1.96082 8.76841C2.13566 8.62385 2.35858 8.49861 2.54871 8.39146L2.61023 8.3563C2.83117 8.23108 3.00825 8.12392 3.13269 8.00669C3.2488 7.89729 3.28503 7.81086 3.28503 7.72349C3.28479 7.59562 3.14652 7.40423 2.85925 7.40415C2.73072 7.40415 2.59647 7.45541 2.48035 7.52329C2.42501 7.55561 2.3799 7.58838 2.34949 7.61216C2.33443 7.62396 2.32278 7.63385 2.31628 7.6395L2.31042 7.64439C2.15975 7.78481 1.92369 7.77763 1.7821 7.62779C1.64009 7.47704 1.64698 7.23951 1.79773 7.09751L1.80164 7.09361L1.8075 7.08872C1.81213 7.08452 1.81765 7.07853 1.82507 7.07212C1.84007 7.05909 1.86086 7.0415 1.8866 7.02134C1.93785 6.98125 2.01116 6.92862 2.10144 6.87583C2.27684 6.77333 2.54531 6.65415 2.85925 6.65415Z","M10.1796 7.90415C10.3866 7.90415 10.5545 8.07213 10.5546 8.27915C10.5546 8.48625 10.3867 8.65415 10.1796 8.65415H5.92957C5.7225 8.65411 5.55457 8.48623 5.55457 8.27915C5.55466 8.07216 5.72256 7.90419 5.92957 7.90415H10.1796Z","M2.96472 1.97251C3.07922 1.89236 3.22843 1.88265 3.35242 1.94712C3.47639 2.01167 3.5545 2.13939 3.55457 2.27915V4.77915C3.55457 4.98625 3.38668 5.15415 3.17957 5.15415C2.97251 5.15409 2.80457 4.98622 2.80457 4.77915V2.99986L2.14441 3.46177C1.97477 3.58026 1.74162 3.53856 1.62292 3.369C1.50422 3.19937 1.54517 2.9663 1.71472 2.84751L2.96472 1.97251Z","M10.1796 3.15415C10.3866 3.15415 10.5545 3.32213 10.5546 3.52915C10.5546 3.73626 10.3867 3.90415 10.1796 3.90415H5.92957C5.7225 3.90411 5.55457 3.73623 5.55457 3.52915C5.55466 3.32215 5.72256 3.15419 5.92957 3.15415H10.1796Z"],"NumberedList/s/outline":["M2.80469 6.52963C3.45371 6.52975 4.10537 6.99969 4.10547 7.72396C4.10535 8.1321 3.90135 8.43324 3.67773 8.64388C3.51319 8.79883 3.31422 8.92474 3.13574 9.02963H3.75C4.02614 9.02963 4.25 9.25348 4.25 9.52963C4.24981 9.80561 4.02603 10.0296 3.75 10.0296H1.875C1.59897 10.0296 1.37519 9.80561 1.375 9.52963C1.375 9.12368 1.61724 8.84576 1.82715 8.6722C2.03181 8.50307 2.29689 8.36013 2.49414 8.24838C2.71648 8.1224 2.88033 8.02161 2.99219 7.91634C3.09275 7.82161 3.1054 7.76548 3.10547 7.72396C3.10542 7.69554 3.09368 7.6539 3.04395 7.61068C2.99291 7.56645 2.90963 7.52969 2.80469 7.52963C2.70695 7.52963 2.59459 7.57002 2.48828 7.63216C2.43898 7.66103 2.39891 7.69027 2.37207 7.71127C2.35888 7.72158 2.3488 7.72935 2.34375 7.73373L2.34277 7.7347C2.14182 7.92368 1.82501 7.91393 1.63574 7.71322C1.44668 7.51227 1.45648 7.19548 1.65723 7.00619L1.65918 7.00423C1.65985 7.00361 1.66125 7.003 1.66211 7.00228C1.66394 7.0006 1.66645 6.99867 1.66895 6.99642C1.67423 6.99164 1.68129 6.98495 1.68945 6.97787C1.70581 6.9637 1.72762 6.94453 1.75488 6.92318C1.80959 6.88037 1.88833 6.82504 1.98438 6.76888C2.16964 6.6606 2.45995 6.52963 2.80469 6.52963Z","M10.125 7.77963C10.4011 7.77963 10.625 8.00348 10.625 8.27963C10.6248 8.55561 10.401 8.77963 10.125 8.77963H5.875C5.59897 8.77963 5.37519 8.55561 5.375 8.27963C5.375 8.00348 5.59886 7.77963 5.875 7.77963H10.125Z","M2.83789 1.87045C2.99054 1.76359 3.19016 1.75033 3.35547 1.83627C3.52075 1.92239 3.625 2.09324 3.625 2.27963V4.77963C3.62481 5.05561 3.40103 5.27963 3.125 5.27963C2.84897 5.27963 2.62519 5.05561 2.625 4.77963V3.23959L2.16211 3.5638C1.93613 3.72186 1.62429 3.66733 1.46582 3.44173C1.30761 3.21572 1.36219 2.90394 1.58789 2.74545L2.83789 1.87045Z","M10.125 3.02963C10.4011 3.02963 10.625 3.25348 10.625 3.52963C10.6248 3.80561 10.401 4.02963 10.125 4.02963H5.875C5.59897 4.02963 5.37519 3.80561 5.375 3.52963C5.375 3.25348 5.59886 3.02963 5.875 3.02963H10.125Z"],"OpenEndForwardArrowWallRight/l/filled":["M21.6777 3.56641C21.2636 3.56647 20.9277 3.90223 20.9277 4.31641V18.8164C20.9278 19.2306 21.2636 19.5663 21.6777 19.5664C22.0919 19.5664 22.4277 19.2306 22.4277 18.8164V4.31641C22.4277 3.90219 22.0919 3.56641 21.6777 3.56641ZM14.208 6.78613C13.9151 6.49337 13.4403 6.49329 13.1475 6.78613C12.8548 7.079 12.8548 7.55384 13.1475 7.84668L16.1172 10.8164H3.17773C2.76358 10.8165 2.42773 11.1522 2.42773 11.5664C2.42777 11.9806 2.7636 12.3163 3.17773 12.3164H16.1172L13.1475 15.2861C12.8548 15.579 12.8548 16.0538 13.1475 16.3467C13.4403 16.6395 13.9151 16.6394 14.208 16.3467L17.751 12.8037C18.4344 12.1203 18.4344 11.0125 17.751 10.3291L14.208 6.78613Z"],"OpenEndForwardArrowWallRight/l/outline":["M21.6777 3.56641C21.2636 3.56647 20.9277 3.90223 20.9277 4.31641V18.8164C20.9278 19.2306 21.2636 19.5663 21.6777 19.5664C22.0919 19.5664 22.4277 19.2306 22.4277 18.8164V4.31641C22.4277 3.90219 22.0919 3.56641 21.6777 3.56641ZM14.208 6.78613C13.9151 6.49337 13.4403 6.49329 13.1475 6.78613C12.8548 7.079 12.8548 7.55384 13.1475 7.84668L16.1172 10.8164H3.17773C2.76358 10.8165 2.42773 11.1522 2.42773 11.5664C2.42777 11.9806 2.7636 12.3163 3.17773 12.3164H16.1172L13.1475 15.2861C12.8548 15.579 12.8548 16.0538 13.1475 16.3467C13.4403 16.6395 13.9151 16.6394 14.208 16.3467L17.751 12.8037C18.4344 12.1203 18.4344 11.0125 17.751 10.3291L14.208 6.78613Z"],"OpenEndForwardArrowWallRight/m/filled":["M14.4512 2.25293C14.106 2.25293 13.8262 2.53275 13.8262 2.87793V12.5449C13.8265 12.8898 14.1062 13.1699 14.4512 13.1699C14.796 13.1698 15.0758 12.8897 15.0762 12.5449V2.87793C15.0762 2.53283 14.7962 2.25306 14.4512 2.25293ZM9.55957 4.43555C9.31556 4.19178 8.9198 4.1918 8.67578 4.43555C8.43195 4.67964 8.43179 5.07631 8.67578 5.32031L10.4414 7.08594H2.11816C1.77299 7.08594 1.49316 7.36576 1.49316 7.71094C1.4932 8.05609 1.77301 8.33594 2.11816 8.33594H10.4434L8.67578 10.1025C8.43197 10.3466 8.43185 10.7423 8.67578 10.9863C8.91979 11.2302 9.31552 11.2301 9.55957 10.9863L11.9219 8.625C12.4262 8.12069 12.426 7.30229 11.9219 6.79785L9.55957 4.43555Z"],"OpenEndForwardArrowWallRight/m/outline":["M14.4512 2.25293C14.106 2.25293 13.8262 2.53275 13.8262 2.87793V12.5449C13.8265 12.8898 14.1062 13.1699 14.4512 13.1699C14.796 13.1698 15.0758 12.8897 15.0762 12.5449V2.87793C15.0762 2.53283 14.7962 2.25306 14.4512 2.25293ZM9.55957 4.43555C9.31556 4.19178 8.9198 4.1918 8.67578 4.43555C8.43195 4.67964 8.43179 5.07631 8.67578 5.32031L10.4414 7.08594H2.11816C1.77299 7.08594 1.49316 7.36576 1.49316 7.71094C1.4932 8.05609 1.77301 8.33594 2.11816 8.33594H10.4434L8.67578 10.1025C8.43197 10.3466 8.43185 10.7423 8.67578 10.9863C8.91979 11.2302 9.31552 11.2301 9.55957 10.9863L11.9219 8.625C12.4262 8.12069 12.426 7.30229 11.9219 6.79785L9.55957 4.43555Z"],"OpenEndForwardArrowWallRight/s/filled":["M10.8389 1.6582C10.5627 1.6582 10.3389 1.88206 10.3389 2.1582V9.4082C10.3389 9.68435 10.5627 9.9082 10.8389 9.9082C11.115 9.9082 11.3389 9.68435 11.3389 9.4082V2.1582C11.3389 1.88206 11.115 1.6582 10.8389 1.6582ZM7.19238 3.30469C6.99712 3.10948 6.6806 3.10944 6.48535 3.30469C6.29016 3.49994 6.29016 3.81647 6.48535 4.01172L7.75684 5.2832H1.58887C1.31273 5.2832 1.08887 5.50706 1.08887 5.7832C1.08887 6.05935 1.31273 6.2832 1.58887 6.2832H7.75684L6.48535 7.55469C6.29016 7.74994 6.29016 8.06647 6.48535 8.26172C6.6806 8.45696 6.99712 8.45693 7.19238 8.26172L8.96387 6.49023C9.35439 6.09972 9.3544 5.46669 8.96387 5.07617L7.19238 3.30469Z"],"OpenEndForwardArrowWallRight/s/outline":["M10.8389 1.6582C10.5627 1.6582 10.3389 1.88206 10.3389 2.1582V9.4082C10.3389 9.68435 10.5627 9.9082 10.8389 9.9082C11.115 9.9082 11.3389 9.68435 11.3389 9.4082V2.1582C11.3389 1.88206 11.115 1.6582 10.8389 1.6582ZM7.19238 3.30469C6.99712 3.10948 6.6806 3.10944 6.48535 3.30469C6.29016 3.49994 6.29016 3.81647 6.48535 4.01172L7.75684 5.2832H1.58887C1.31273 5.2832 1.08887 5.50706 1.08887 5.7832C1.08887 6.05935 1.31273 6.2832 1.58887 6.2832H7.75684L6.48535 7.55469C6.29016 7.74994 6.29016 8.06647 6.48535 8.26172C6.6806 8.45696 6.99712 8.45693 7.19238 8.26172L8.96387 6.49023C9.35439 6.09972 9.3544 5.46669 8.96387 5.07617L7.19238 3.30469Z"],"PaperclipAttach/l/filled":["M14 2C11.2386 2 9 4.23858 9 7V14.875C9 16.4628 10.2872 17.75 11.875 17.75C13.4628 17.75 14.75 16.4628 14.75 14.875V7.75C14.75 7.33579 14.4142 7 14 7C13.5858 7 13.25 7.33579 13.25 7.75V14.875C13.25 15.6344 12.6344 16.25 11.875 16.25C11.1156 16.25 10.5 15.6344 10.5 14.875V7C10.5 5.067 12.067 3.5 14 3.5C15.933 3.5 17.5 5.067 17.5 7V15.25C17.5 18.1495 15.1495 20.5 12.25 20.5H11.75C8.85051 20.5 6.5 18.1495 6.5 15.25V10.75C6.5 10.3358 6.16421 10 5.75 10C5.33579 10 5 10.3358 5 10.75V15.25C5 18.9779 8.02208 22 11.75 22H12.25C15.9779 22 19 18.9779 19 15.25V7C19 4.23858 16.7614 2 14 2Z"],"PaperclipAttach/l/outline":["M5 15.25V10.75C5 10.3358 5.33579 10 5.75 10C6.16421 10 6.5 10.3358 6.5 10.75V15.25C6.5 18.1495 8.8505 20.5 11.75 20.5H12.25C15.1495 20.5 17.5 18.1495 17.5 15.25V7C17.5 5.067 15.933 3.5 14 3.5C12.067 3.5 10.5 5.067 10.5 7V14.875C10.5 15.6344 11.1156 16.25 11.875 16.25C12.6344 16.25 13.25 15.6344 13.25 14.875V7.75C13.25 7.33579 13.5858 7 14 7C14.4142 7 14.75 7.33579 14.75 7.75V14.875C14.75 16.4628 13.4628 17.75 11.875 17.75C10.2872 17.75 9 16.4628 9 14.875V7C9 4.23858 11.2386 2 14 2C16.7614 2 19 4.23858 19 7V15.25C19 18.9779 15.9779 22 12.25 22H11.75C8.02208 22 5 18.9779 5 15.25Z"],"PaperclipAttach/m/filled":["M3.20825 10.1663V7.16632C3.20843 6.82129 3.48818 6.54132 3.83325 6.54132C4.17832 6.54132 4.45808 6.82129 4.45825 7.16632V10.1663C4.45825 12.0303 5.96929 13.5413 7.83325 13.5413H8.16626C10.0302 13.5413 11.5413 12.0303 11.5413 10.1663V4.66632C11.5411 3.44684 10.5528 2.45831 9.33325 2.45831C8.11374 2.45831 7.12542 3.44684 7.12524 4.66632V9.91632C7.12524 10.3534 7.47919 10.7081 7.91626 10.7083C8.35348 10.7083 8.70825 10.3535 8.70825 9.91632V5.16632C8.70843 4.82129 8.98818 4.54132 9.33325 4.54132C9.67832 4.54132 9.95808 4.82129 9.95825 5.16632V9.91632C9.95825 11.0439 9.04384 11.9583 7.91626 11.9583C6.78883 11.9581 5.87524 11.0438 5.87524 9.91632V4.66632C5.87542 2.75648 7.42338 1.20831 9.33325 1.20831C11.2431 1.20831 12.7911 2.75648 12.7913 4.66632V10.1663C12.7913 12.7206 10.7206 14.7913 8.16626 14.7913H7.83325C5.27893 14.7913 3.20825 12.7206 3.20825 10.1663Z"],"PaperclipAttach/m/outline":["M3.20837 10.1663V7.16632C3.20855 6.82129 3.4883 6.54132 3.83337 6.54132C4.17844 6.54132 4.4582 6.82129 4.45837 7.16632V10.1663C4.45837 12.0303 5.96941 13.5413 7.83337 13.5413H8.16638C10.0303 13.5413 11.5414 12.0303 11.5414 10.1663V4.66632C11.5412 3.44684 10.5529 2.45831 9.33337 2.45831C8.11386 2.45831 7.12554 3.44684 7.12537 4.66632V9.91632C7.12537 10.3534 7.47931 10.7081 7.91638 10.7083C8.3536 10.7083 8.70837 10.3535 8.70837 9.91632V5.16632C8.70855 4.82129 8.9883 4.54132 9.33337 4.54132C9.67844 4.54132 9.9582 4.82129 9.95837 5.16632V9.91632C9.95837 11.0439 9.04396 11.9583 7.91638 11.9583C6.78895 11.9581 5.87537 11.0438 5.87537 9.91632V4.66632C5.87554 2.75648 7.42351 1.20831 9.33337 1.20831C11.2432 1.20831 12.7912 2.75648 12.7914 4.66632V10.1663C12.7914 12.7206 10.7207 14.7913 8.16638 14.7913H7.83337C5.27906 14.7913 3.20837 12.7206 3.20837 10.1663Z"],"PaperclipAttach/s/filled":["M2.375 7.625V5.375C2.375 5.09886 2.59886 4.875 2.875 4.875C3.15114 4.875 3.375 5.09886 3.375 5.375V7.625C3.375 9.00571 4.49429 10.125 5.875 10.125H6.125C7.50571 10.125 8.625 9.00571 8.625 7.625V3.5C8.625 2.60254 7.89746 1.875 7 1.875C6.10254 1.875 5.375 2.60254 5.375 3.5V7.4375C5.375 7.74816 5.62684 8 5.9375 8C6.24816 8 6.5 7.74816 6.5 7.4375V3.875C6.5 3.59886 6.72386 3.375 7 3.375C7.27614 3.375 7.5 3.59886 7.5 3.875V7.4375C7.5 8.30044 6.80044 9 5.9375 9C5.07456 9 4.375 8.30044 4.375 7.4375V3.5C4.375 2.05025 5.55026 0.875 7 0.875C8.44974 0.875 9.625 2.05025 9.625 3.5V7.625C9.625 9.55799 8.05799 11.125 6.125 11.125H5.875C3.942 11.125 2.375 9.55799 2.375 7.625Z"],"PaperclipAttach/s/outline":["M2.375 7.625V5.375C2.375 5.09886 2.59886 4.875 2.875 4.875C3.15114 4.875 3.375 5.09886 3.375 5.375V7.625C3.375 9.00571 4.49429 10.125 5.875 10.125H6.125C7.50571 10.125 8.625 9.00571 8.625 7.625V3.5C8.625 2.60254 7.89746 1.875 7 1.875C6.10254 1.875 5.375 2.60254 5.375 3.5V7.4375C5.375 7.74816 5.62684 8 5.9375 8C6.24816 8 6.5 7.74816 6.5 7.4375V3.875C6.5 3.59886 6.72386 3.375 7 3.375C7.27614 3.375 7.5 3.59886 7.5 3.875V7.4375C7.5 8.30044 6.80044 9 5.9375 9C5.07456 9 4.375 8.30044 4.375 7.4375V3.5C4.375 2.05025 5.55026 0.875 7 0.875C8.44974 0.875 9.625 2.05025 9.625 3.5V7.625C9.625 9.55799 8.05799 11.125 6.125 11.125H5.875C3.942 11.125 2.375 9.55799 2.375 7.625Z"],"Pause/l/filled":["M7.25 3C8.76878 3 10 4.23122 10 5.75V18.25C10 19.7688 8.76878 21 7.25 21H6.75C5.23122 21 4 19.7688 4 18.25V5.75C4 4.23122 5.23122 3 6.75 3H7.25Z","M17.25 3C18.7688 3 20 4.23122 20 5.75V18.25C20 19.7688 18.7688 21 17.25 21H16.75C15.2312 21 14 19.7688 14 18.25V5.75C14 4.23122 15.2312 3 16.75 3H17.25Z"],"Pause/l/outline":["M7.25 3C8.76878 3 10 4.23122 10 5.75V18.25C10 19.7688 8.76878 21 7.25 21H6.75C5.23122 21 4 19.7688 4 18.25V5.75C4 4.23122 5.23122 3 6.75 3H7.25ZM6.75 4.5C6.05964 4.5 5.5 5.05964 5.5 5.75V18.25C5.5 18.9404 6.05964 19.5 6.75 19.5H7.25C7.94036 19.5 8.5 18.9404 8.5 18.25V5.75C8.5 5.05964 7.94036 4.5 7.25 4.5H6.75Z","M17.25 3C18.7688 3 20 4.23122 20 5.75V18.25C20 19.7688 18.7688 21 17.25 21H16.75C15.2312 21 14 19.7688 14 18.25V5.75C14 4.23122 15.2312 3 16.75 3H17.25ZM16.75 4.5C16.0596 4.5 15.5 5.05964 15.5 5.75V18.25C15.5 18.9404 16.0596 19.5 16.75 19.5H17.25C17.9404 19.5 18.5 18.9404 18.5 18.25V5.75C18.5 5.05964 17.9404 4.5 17.25 4.5H16.75Z"],"Pause/m/filled":["M4.83301 2C5.84542 2 6.66682 2.82064 6.66699 3.83301V12.167C6.66682 13.1794 5.84542 14 4.83301 14H4.5C3.48759 14 2.66717 13.1794 2.66699 12.167V3.83301C2.66717 2.82064 3.48759 2 4.5 2H4.83301Z","M11.5 2C12.5124 2 13.3328 2.82064 13.333 3.83301V12.167C13.3328 13.1794 12.5124 14 11.5 14H11.167C10.1546 14 9.33318 13.1794 9.33301 12.167V3.83301C9.33318 2.82064 10.1546 2 11.167 2H11.5Z"],"Pause/m/outline":["M4.83398 1.875C5.91512 1.87537 6.79182 2.75183 6.79199 3.83301V12.167C6.79182 13.2482 5.91511 14.1246 4.83398 14.125H4.5C3.41871 14.1248 2.54217 13.2483 2.54199 12.167V3.83301C2.54217 2.75171 3.4187 1.87518 4.5 1.875H4.83398ZM4.5 3.125C4.10906 3.12518 3.79217 3.44206 3.79199 3.83301V12.167C3.79217 12.558 4.10905 12.8748 4.5 12.875H4.83398C5.22477 12.8746 5.54182 12.5578 5.54199 12.167V3.83301C5.54182 3.44219 5.22476 3.12537 4.83398 3.125H4.5Z","M11.5 1.875C12.5813 1.87518 13.4578 2.75171 13.458 3.83301V12.167C13.4578 13.2483 12.5813 14.1248 11.5 14.125H11.166C10.0849 14.1246 9.20818 13.2482 9.20801 12.167V3.83301C9.20818 2.75184 10.0849 1.87537 11.166 1.875H11.5ZM11.166 3.125C10.7752 3.12537 10.4582 3.44218 10.458 3.83301V12.167C10.4582 12.5578 10.7752 12.8746 11.166 12.875H11.5C11.891 12.8748 12.2078 12.558 12.208 12.167V3.83301C12.2078 3.44206 11.891 3.12518 11.5 3.125H11.166Z"],"Pause/s/filled":["M3.625 1.5C4.38439 1.5 5 2.11561 5 2.875V9.125C5 9.8844 4.38439 10.5 3.625 10.5H3.375C2.61561 10.5 2 9.8844 2 9.125V2.875C2 2.11561 2.61561 1.5 3.375 1.5H3.625Z","M8.625 1.5C9.3844 1.5 10 2.11561 10 2.875V9.125C10 9.8844 9.3844 10.5 8.625 10.5H8.375C7.6156 10.5 7 9.8844 7 9.125V2.875C7 2.11561 7.6156 1.5 8.375 1.5H8.625Z"],"Pause/s/outline":["M3.625 1.375C4.45343 1.375 5.125 2.04657 5.125 2.875V9.125C5.125 9.95345 4.45342 10.625 3.625 10.625H3.375C2.54658 10.625 1.875 9.95345 1.875 9.125V2.875C1.875 2.04657 2.54657 1.375 3.375 1.375H3.625ZM3.375 2.375C3.09886 2.375 2.875 2.59886 2.875 2.875V9.125C2.875 9.40115 3.09885 9.625 3.375 9.625H3.625C3.90115 9.625 4.125 9.40115 4.125 9.125V2.875C4.125 2.59886 3.90114 2.375 3.625 2.375H3.375Z","M8.625 1.375C9.45345 1.375 10.125 2.04658 10.125 2.875V9.125C10.125 9.95344 9.45344 10.625 8.625 10.625H8.375C7.54656 10.625 6.875 9.95344 6.875 9.125V2.875C6.875 2.04658 7.54655 1.375 8.375 1.375H8.625ZM8.375 2.375C8.09885 2.375 7.875 2.59885 7.875 2.875V9.125C7.875 9.40116 8.09884 9.625 8.375 9.625H8.625C8.90116 9.625 9.125 9.40116 9.125 9.125V2.875C9.125 2.59885 8.90115 2.375 8.625 2.375H8.375Z"],"Pencil/l/filled":["M15.5555 2.88358C16.6294 1.80964 18.3706 1.80964 19.4445 2.88358L21.1161 4.55515C22.1901 5.6291 22.1901 7.3703 21.1161 8.44424L18.8105 10.7498L13.25 5.18934L12.1893 6.25L17.7498 11.8105L8.36612 21.1942C7.85039 21.71 7.15092 21.9997 6.42157 21.9997H2.75C2.33579 21.9997 2 21.6639 2 21.2497V17.5781C2 16.8488 2.28973 16.1493 2.80546 15.6336L15.5555 2.88358Z"],"Pencil/l/outline":["M15.5557 2.88414C16.6296 1.81018 18.3704 1.81019 19.4443 2.88414L21.1162 4.55503C22.19 5.62898 22.1901 7.37076 21.1162 8.44468L8.36621 21.1947C7.85057 21.7102 7.15108 22.0003 6.42188 22.0003H2.75C2.33593 22.0003 2.00023 21.6644 2 21.2503V17.5785C2.00001 16.8491 2.28991 16.1498 2.80566 15.6341L15.5557 2.88414ZM3.86621 16.6947C3.63189 16.929 3.50001 17.2469 3.5 17.5785V20.5003H6.42188C6.75327 20.5003 7.0713 20.3684 7.30566 20.1341L16.6895 10.7503L13.25 7.31089L3.86621 16.6947ZM18.3838 3.94468C17.8957 3.45655 17.1043 3.45655 16.6162 3.94468L14.3105 6.25035L17.75 9.6898L20.0557 7.38414C20.5437 6.89609 20.5434 6.10474 20.0557 5.61656L18.3838 3.94468Z"],"Pencil/m/filled":["M10.3704 1.92241C11.0863 1.20645 12.2471 1.20645 12.963 1.92241L14.0774 3.03679C14.7934 3.75275 14.7934 4.91355 14.0774 5.62951L12.5404 7.16655L8.83337 3.45958L8.12624 4.16669L11.8332 7.87369L5.57745 14.1295C5.23363 14.4734 4.76732 14.6665 4.28109 14.6665H1.83337C1.55723 14.6665 1.33337 14.4426 1.33337 14.1665V11.7188C1.33337 11.2326 1.52653 10.7662 1.87035 10.4224L10.3704 1.92241Z"],"Pencil/m/outline":["M10.2812 1.83385C11.0458 1.06922 12.286 1.06954 13.0508 1.83385L14.165 2.94811C14.9298 3.71289 14.9298 4.95287 14.165 5.71764L12.2793 7.60338C12.2778 7.60495 12.2769 7.60769 12.2754 7.60924C12.2738 7.61088 12.2712 7.61154 12.2695 7.61315L5.66504 14.2176C5.29784 14.5844 4.79936 14.7919 4.28027 14.7919H1.83301C1.48806 14.7917 1.20815 14.5118 1.20801 14.1669V11.7186C1.2081 11.1994 1.41413 10.701 1.78125 10.3339L10.2812 1.83385ZM2.66504 11.2176C2.53271 11.3503 2.4581 11.5311 2.45801 11.7186V13.5419H4.28027C4.46806 13.5419 4.64842 13.4666 4.78125 13.3339L10.9482 7.16686L8.83203 5.05065L2.66504 11.2176ZM12.167 2.71764C11.8904 2.44149 11.4415 2.44119 11.165 2.71764L9.7168 4.16588L11.833 6.2821L13.2812 4.83385C13.5578 4.55724 13.5578 4.1095 13.2812 3.83288L12.167 2.71764Z"],"Pencil/s/filled":["M7.77775 1.44179C8.3147 0.90482 9.1853 0.90482 9.72225 1.44179L10.5581 2.27758C11.095 2.81455 11.095 3.68515 10.5581 4.22212L9.40525 5.3749L6.625 2.59467L6.09465 3.125L8.8749 5.90525L4.18306 10.5971C3.9252 10.855 3.57546 10.9999 3.21078 10.9999H1.375C1.1679 10.9999 1 10.832 1 10.6249V8.78905C1 8.4244 1.14486 8.07465 1.40273 7.8168L7.77775 1.44179Z"],"Pencil/s/outline":["M7.68945 1.35371C8.27522 0.767918 9.22478 0.767922 9.81055 1.35371L10.6465 2.18965C11.2321 2.77545 11.2322 3.72501 10.6465 4.31074L4.27148 10.6857C3.99022 10.9669 3.60869 11.1252 3.21094 11.1252H1.375C1.09893 11.1252 0.87512 10.9012 0.875 10.6252V8.78926C0.875004 8.39145 1.03313 8.01 1.31445 7.72871L7.68945 1.35371ZM2.02148 8.43574C1.92778 8.52944 1.875 8.65661 1.875 8.78926V10.1252H3.21094C3.34348 10.1252 3.47071 10.0724 3.56445 9.97871L8.16797 5.37519L6.625 3.83223L2.02148 8.43574ZM9.10352 2.06074C8.90828 1.8655 8.59172 1.86549 8.39648 2.06074L7.33203 3.12519L8.875 4.66816L9.93945 3.60371C10.1346 3.40851 10.1345 3.09196 9.93945 2.89668L9.10352 2.06074Z"],"Phone/l/filled":["M5 3.75C5 2.23122 6.23122 1 7.75 1H16.25C17.7688 1 19 2.23122 19 3.75V20.25C19 21.7688 17.7688 23 16.25 23H7.75C6.23122 23 5 21.7688 5 20.25V3.75ZM9.75 18.5C9.33579 18.5 9 18.8358 9 19.25C9 19.6642 9.33579 20 9.75 20H14.25C14.6642 20 15 19.6642 15 19.25C15 18.8358 14.6642 18.5 14.25 18.5H9.75Z"],"Phone/l/outline":["M17.5 3.75C17.5 3.05964 16.9404 2.5 16.25 2.5H7.75C7.05964 2.5 6.5 3.05964 6.5 3.75V20.25C6.5 20.9404 7.05964 21.5 7.75 21.5H16.25C16.9404 21.5 17.5 20.9404 17.5 20.25V3.75ZM14.25 18.5C14.6642 18.5 15 18.8358 15 19.25C15 19.6642 14.6642 20 14.25 20H9.75C9.33579 20 9 19.6642 9 19.25C9 18.8358 9.33579 18.5 9.75 18.5H14.25ZM19 20.25C19 21.7688 17.7688 23 16.25 23H7.75C6.23122 23 5 21.7688 5 20.25V3.75C5 2.23122 6.23122 1 7.75 1H16.25C17.7688 1 19 2.23122 19 3.75V20.25Z"],"Phone/m/filled":["M3.33334 2.50002C3.33334 1.4875 4.15416 0.666687 5.16668 0.666687H10.8333C11.8459 0.666687 12.6667 1.4875 12.6667 2.50002V13.5C12.6667 14.5126 11.8459 15.3334 10.8333 15.3334H5.16668C4.15416 15.3334 3.33334 14.5126 3.33334 13.5V2.50002ZM6.50001 12.3334C6.22387 12.3334 6.00001 12.5572 6.00001 12.8334C6.00001 13.1095 6.22387 13.3334 6.50001 13.3334H9.50001C9.77614 13.3334 10 13.1095 10 12.8334C10 12.5572 9.77614 12.3334 9.50001 12.3334H6.50001Z"],"Phone/m/outline":["M11.5414 2.49969C11.5412 2.10864 11.2245 1.79169 10.8333 1.79169H5.16635C4.77541 1.79186 4.45852 2.10875 4.45834 2.49969V13.4997C4.45834 13.8908 4.77529 14.2085 5.16635 14.2087H10.8333C11.2246 14.2087 11.5414 13.8909 11.5414 13.4997V2.49969ZM9.50034 12.2087C9.84536 12.2089 10.1253 12.4886 10.1253 12.8337C10.1252 13.1786 9.84526 13.4585 9.50034 13.4587H6.50034C6.15527 13.4587 5.87551 13.1787 5.87534 12.8337C5.87534 12.4885 6.15516 12.2087 6.50034 12.2087H9.50034ZM12.7914 13.4997C12.7914 14.5813 11.9149 15.4587 10.8333 15.4587H5.16635C4.08495 15.4585 3.20834 14.5812 3.20834 13.4997V2.49969C3.20852 1.41839 4.08505 0.541863 5.16635 0.541687H10.8333C11.9148 0.541687 12.7912 1.41829 12.7914 2.49969V13.4997Z"],"Phone/s/filled":["M2.5 1.875C2.5 1.11561 3.11561 0.5 3.875 0.5H8.125C8.8844 0.5 9.5 1.11561 9.5 1.875V10.125C9.5 10.8844 8.8844 11.5 8.125 11.5H3.875C3.11561 11.5 2.5 10.8844 2.5 10.125V1.875ZM4.875 9.25C4.6679 9.25 4.5 9.4179 4.5 9.625C4.5 9.8321 4.6679 10 4.875 10H7.125C7.3321 10 7.5 9.8321 7.5 9.625C7.5 9.4179 7.3321 9.25 7.125 9.25H4.875Z"],"Phone/s/outline":["M8.625 1.875C8.625 1.59885 8.40115 1.375 8.125 1.375H3.875C3.59886 1.375 3.375 1.59886 3.375 1.875V10.125C3.375 10.4012 3.59885 10.625 3.875 10.625H8.125C8.40116 10.625 8.625 10.4012 8.625 10.125V1.875ZM7.125 9.125C7.40114 9.125 7.625 9.34886 7.625 9.625C7.625 9.90114 7.40114 10.125 7.125 10.125H4.875C4.59886 10.125 4.375 9.90114 4.375 9.625C4.375 9.34886 4.59886 9.125 4.875 9.125H7.125ZM9.625 10.125C9.625 10.9534 8.95344 11.625 8.125 11.625H3.875C3.04658 11.625 2.375 10.9534 2.375 10.125V1.875C2.375 1.04657 3.04657 0.375 3.875 0.375H8.125C8.95345 0.375 9.625 1.04658 9.625 1.875V10.125Z"],"PictureInPicture/l/filled":["M19.75 14C20.9926 14 22 15.0074 22 16.25V18.75C22 19.9926 20.9926 21 19.75 21H14.25C13.0074 21 12 19.9926 12 18.75V16.25C12 15.0074 13.0074 14 14.25 14H19.75Z","M17.25 4C18.7688 4 20 5.23122 20 6.75V11.25C20 11.6642 19.6642 12 19.25 12C18.8358 12 18.5 11.6642 18.5 11.25V6.75C18.5 6.05964 17.9404 5.5 17.25 5.5H4.75C4.05964 5.5 3.5 6.05964 3.5 6.75V15.25C3.5 15.9404 4.05964 16.5 4.75 16.5H9.25C9.66421 16.5 10 16.8358 10 17.25C10 17.6642 9.66421 18 9.25 18H4.75C3.23122 18 2 16.7688 2 15.25V6.75C2 5.23122 3.23122 4 4.75 4H17.25Z"],"PictureInPicture/l/outline":["M19.75 14C20.9926 14 22 15.0074 22 16.25V18.75C22 19.9926 20.9926 21 19.75 21H14.25C13.0074 21 12 19.9926 12 18.75V16.25C12 15.0074 13.0074 14 14.25 14H19.75ZM14.25 15.5C13.8358 15.5 13.5 15.8358 13.5 16.25V18.75C13.5 19.1642 13.8358 19.5 14.25 19.5H19.75C20.1642 19.5 20.5 19.1642 20.5 18.75V16.25C20.5 15.8358 20.1642 15.5 19.75 15.5H14.25Z","M17.25 4C18.7688 4 20 5.23122 20 6.75V11.25C20 11.6642 19.6642 12 19.25 12C18.8358 12 18.5 11.6642 18.5 11.25V6.75C18.5 6.05964 17.9404 5.5 17.25 5.5H4.75C4.05964 5.5 3.5 6.05964 3.5 6.75V15.25C3.5 15.9404 4.05964 16.5 4.75 16.5H9.25C9.66421 16.5 10 16.8358 10 17.25C10 17.6642 9.66421 18 9.25 18H4.75C3.23122 18 2 16.7688 2 15.25V6.75C2 5.23122 3.23122 4 4.75 4H17.25Z"],"PictureInPicture/m/filled":["M13.167 9.33301C13.9951 9.33318 14.6668 10.0049 14.667 10.833V12.5C14.667 13.3283 13.9952 13.9998 13.167 14H9.5C8.6716 14 8 13.3284 8 12.5V10.833C8.00018 10.0048 8.67171 9.33301 9.5 9.33301H13.167Z","M11.5 2.66699C12.5125 2.66699 13.333 3.48748 13.333 4.5V7.5C13.333 7.77613 13.1091 8 12.833 8C12.557 7.9998 12.333 7.77601 12.333 7.5V4.5C12.333 4.03976 11.9603 3.66699 11.5 3.66699H3.16699C2.70675 3.66699 2.33301 4.03976 2.33301 4.5V10.167C2.33319 10.6271 2.70686 11 3.16699 11H6.16699C6.443 11.0002 6.66699 11.224 6.66699 11.5C6.66699 11.776 6.443 11.9998 6.16699 12H3.16699C2.15458 12 1.33319 11.1794 1.33301 10.167V4.5C1.33301 3.48748 2.15447 2.66699 3.16699 2.66699H11.5Z"],"PictureInPicture/m/outline":["M13.166 9.20898C14.0635 9.20898 14.791 9.93654 14.791 10.834V12.5C14.7908 13.3973 14.0633 14.125 13.166 14.125H9.5C8.60284 14.1248 7.87518 13.3972 7.875 12.5V10.834C7.875 9.93666 8.60272 9.20918 9.5 9.20898H13.166ZM9.5 10.459C9.29308 10.4592 9.125 10.627 9.125 10.834V12.5C9.12518 12.7068 9.29319 12.8748 9.5 12.875H13.166C13.373 12.875 13.5408 12.7069 13.541 12.5V10.834C13.541 10.6269 13.3731 10.459 13.166 10.459H9.5Z","M11.5 2.54199C12.5813 2.54217 13.4578 3.41871 13.458 4.5V7.5C13.4578 7.84502 13.1781 8.125 12.833 8.125C12.4881 8.1248 12.2082 7.8449 12.208 7.5V4.5C12.2078 4.10905 11.891 3.79217 11.5 3.79199H3.16602C2.77524 3.79237 2.45818 4.10918 2.45801 4.5V10.167C2.45819 10.5578 2.77524 10.8746 3.16602 10.875H6.16602C6.51109 10.875 6.79084 11.155 6.79102 11.5C6.79083 11.845 6.51108 12.125 6.16602 12.125H3.16602C2.08489 12.1246 1.20819 11.2482 1.20801 10.167V4.5C1.20818 3.41882 2.08488 2.54237 3.16602 2.54199H11.5Z"],"PictureInPicture/s/filled":["M9.875 7C10.4963 7 11 7.5037 11 8.125V9.375C11 9.9963 10.4963 10.5 9.875 10.5H7.125C6.5037 10.5 6 9.9963 6 9.375V8.125C6 7.5037 6.5037 7 7.125 7H9.875Z","M8.625 2C9.3844 2 10 2.61561 10 3.375V5.625C10 5.8321 9.8321 6 9.625 6C9.4179 6 9.25 5.8321 9.25 5.625V3.375C9.25 3.02982 8.9702 2.75 8.625 2.75H2.375C2.02982 2.75 1.75 3.02982 1.75 3.375V7.625C1.75 7.9702 2.02982 8.25 2.375 8.25H4.625C4.8321 8.25 5 8.4179 5 8.625C5 8.8321 4.8321 9 4.625 9H2.375C1.61561 9 1 8.3844 1 7.625V3.375C1 2.61561 1.61561 2 2.375 2H8.625Z"],"PictureInPicture/s/outline":["M9.875 6.875C10.5653 6.875 11.125 7.43466 11.125 8.125V9.375C11.125 10.0653 10.5653 10.625 9.875 10.625H7.125C6.43466 10.625 5.875 10.0653 5.875 9.375V8.125C5.875 7.43466 6.43466 6.875 7.125 6.875H9.875ZM7.125 7.875C6.98694 7.875 6.875 7.98694 6.875 8.125V9.375C6.875 9.51306 6.98694 9.625 7.125 9.625H9.875C10.0131 9.625 10.125 9.51306 10.125 9.375V8.125C10.125 7.98694 10.0131 7.875 9.875 7.875H7.125Z","M8.625 1.875C9.45345 1.875 10.125 2.54658 10.125 3.375V5.625C10.125 5.90114 9.90114 6.125 9.625 6.125C9.34886 6.125 9.125 5.90114 9.125 5.625V3.375C9.125 3.09885 8.90115 2.875 8.625 2.875H2.375C2.09886 2.875 1.875 3.09886 1.875 3.375V7.625C1.875 7.90115 2.09885 8.125 2.375 8.125H4.625C4.90114 8.125 5.125 8.34886 5.125 8.625C5.125 8.90114 4.90114 9.125 4.625 9.125H2.375C1.54658 9.125 0.875 8.45345 0.875 7.625V3.375C0.875 2.54657 1.54657 1.875 2.375 1.875H8.625Z"],"Pin/l/filled":["M12.6026 3.47034C13.423 1.7613 15.6859 1.37496 17.0264 2.71545L21.2842 6.97424C22.6247 8.31466 22.2392 10.5776 20.5303 11.3981L17.7755 12.7194C17.4036 12.898 17.1438 13.2491 17.0811 13.6569L16.3419 18.4635C15.9992 20.6897 13.2714 21.5825 11.6788 19.9899L8.37506 16.6862L4.28034 20.7809C3.98753 21.0735 3.51263 21.0734 3.21979 20.7809C2.9269 20.4881 2.9269 20.0123 3.21979 19.7194L7.31452 15.6246L4.01081 12.3209C2.41807 10.7281 3.31086 8.00132 5.53717 7.65881L10.3438 6.91955C10.7514 6.85675 11.1019 6.59609 11.2803 6.22424L12.6026 3.47034Z"],"Pin/l/outline":["M12.6027 3.47051C13.423 1.76146 15.686 1.37516 17.0265 2.71563L21.2843 6.97442C22.6243 8.31488 22.2392 10.5779 20.5304 11.3982L17.7755 12.7195C17.4036 12.8981 17.144 13.2492 17.0812 13.657L16.342 18.4637C15.9992 20.6895 13.2716 21.5822 11.6789 19.99L8.37515 16.6863L4.28043 20.7811C3.98767 21.0735 3.51271 21.0734 3.21988 20.7811C2.92701 20.4882 2.92706 20.0124 3.21988 19.7195L7.31363 15.6248L4.0109 12.3211C2.41817 10.7283 3.31093 8.0015 5.53726 7.65899L10.3439 6.91973C10.7514 6.85691 11.102 6.59609 11.2804 6.22442L12.6027 3.47051ZM15.966 3.77617C15.3568 3.16701 14.3283 3.34257 13.9552 4.11895L12.633 6.87383C12.2402 7.69199 11.4684 8.26412 10.5714 8.40215L5.7648 9.14141C4.75307 9.2973 4.34757 10.5366 5.07144 11.2605L8.8234 15.0125C8.85368 15.0346 8.88387 15.0585 8.91129 15.0857C8.94072 15.115 8.96682 15.1469 8.99039 15.1795L12.7394 18.9295C13.4634 19.653 14.7027 19.2467 14.8586 18.2352L15.5988 13.4285C15.7369 12.5317 16.3082 11.7608 17.1261 11.368L19.881 10.0457L20.0197 9.96856C20.6767 9.54617 20.7947 8.60624 20.2238 8.03496L15.966 3.77617Z"],"Pin/m/filled":["M8.4014 2.3133C8.94834 1.17407 10.457 0.916884 11.3506 1.81037L14.1895 4.64923C15.0831 5.54288 14.8259 7.05151 13.6866 7.59845L11.8506 8.48029C11.6028 8.59931 11.4296 8.83256 11.3877 9.10431L10.8946 12.3084C10.6662 13.7927 8.84796 14.3879 7.78616 13.326L5.58304 11.1238L2.85354 13.8533C2.65828 14.0486 2.34177 14.0486 2.14651 13.8533C1.95136 13.6581 1.95129 13.3415 2.14651 13.1463L4.87601 10.4168L2.67386 8.21466C1.61201 7.1528 2.20722 5.3346 3.69144 5.10626L6.89554 4.6131C7.16727 4.57129 7.40151 4.39807 7.52054 4.15021L8.4014 2.3133Z"],"Pin/m/outline":["M8.28899 2.25895C8.87324 1.04231 10.4848 0.767707 11.4394 1.72184L14.2782 4.56071C15.2322 5.51515 14.9575 7.12574 13.7411 7.71012L11.9042 8.59196C11.6936 8.69311 11.5463 8.89235 11.5107 9.12321L11.0175 12.3273C10.7735 13.9127 8.83142 14.5484 7.69719 13.4142L5.58293 11.3L2.94231 13.9416C2.69823 14.1856 2.30162 14.1856 2.05754 13.9416C1.81404 13.6976 1.81394 13.3017 2.05754 13.0578L4.69914 10.4162L2.58489 8.30192C1.4514 7.16769 2.08689 5.22575 3.6718 4.98161L6.87688 4.48845C7.1078 4.4528 7.30607 4.3055 7.40715 4.09489L8.28899 2.25895ZM10.5556 2.60563C10.2104 2.2608 9.62731 2.36019 9.41594 2.79997L8.5341 4.63591C8.25443 5.21863 7.70512 5.62552 7.06633 5.7238L3.86223 6.21696C3.28904 6.30518 3.05909 7.0078 3.46867 7.41813L5.97844 9.92692C5.99493 9.94024 6.01285 9.95272 6.02825 9.96794C6.04423 9.98381 6.05734 10.0026 6.07121 10.0197L8.58098 12.5304C8.99127 12.9407 9.69393 12.7103 9.78215 12.1369L10.2753 8.93278C10.3737 8.29424 10.7807 7.74469 11.3632 7.46501L13.2001 6.58317C13.6396 6.37171 13.7391 5.78967 13.3945 5.4445L10.5556 2.60563Z"],"Pin/s/filled":["M6.30148 1.73518C6.7117 0.880689 7.84315 0.687991 8.5134 1.35823L10.6423 3.48713C11.3123 4.15732 11.1196 5.28876 10.2653 5.69905L8.88742 6.36018C8.70176 6.44946 8.57219 6.62434 8.54074 6.82795L8.17062 9.23127C7.99938 10.3444 6.63594 10.7911 5.83957 9.99495L4.18722 8.3426L2.14035 10.3905C1.994 10.5368 1.75654 10.5366 1.61008 10.3905C1.46363 10.2441 1.46364 10.0066 1.61008 9.86018L3.65695 7.81233L2.00558 6.16096C1.20921 5.36457 1.65514 4.00021 2.76828 3.82893L5.1716 3.45979C5.37545 3.42842 5.5511 3.2981 5.64035 3.11213L6.30148 1.73518Z"],"Pin/s/outline":["M6.18859 1.68167C6.63605 0.749456 7.87051 0.538397 8.60168 1.26956L10.7306 3.39846C11.4613 4.12957 11.2513 5.36401 10.3195 5.81155L8.94152 6.47268C8.7929 6.54417 8.68926 6.68468 8.66418 6.84768L8.29406 9.251C8.10696 10.4649 6.6198 10.9513 5.75109 10.083L4.18762 8.51956L2.22863 10.4785C2.03344 10.6737 1.71686 10.6736 1.5216 10.4785C1.32648 10.2833 1.32644 9.96674 1.5216 9.77151L3.48058 7.81253L1.91711 6.24905C1.04845 5.38035 1.53508 3.89318 2.74914 3.70608L5.15246 3.33596C5.3154 3.31086 5.45605 3.20716 5.52746 3.05862L6.18859 1.68167ZM7.89465 1.97659C7.65092 1.73287 7.2391 1.80356 7.08996 2.11428L6.42883 3.49124C6.21458 3.93737 5.79392 4.24896 5.3048 4.32425L2.90148 4.69436C2.49679 4.75671 2.33459 5.25244 2.62414 5.54202L4.50402 7.4219C4.51711 7.43247 4.53187 7.44202 4.54406 7.45413C4.55658 7.46664 4.56632 7.48172 4.57726 7.49514L6.45812 9.376C6.74771 9.66524 7.24336 9.50312 7.30578 9.09866L7.6759 6.69534C7.75122 6.20621 8.06277 5.78559 8.5089 5.57132L9.88683 4.91018C10.1972 4.76095 10.2669 4.34916 10.0236 4.1055L7.89465 1.97659Z"],"PlanetOrbitSpace/l/filled":["M21.9562 11.7711C22.0724 16.2783 19.1203 20.4443 14.588 21.6588C10.0554 22.8733 5.41572 20.7414 3.26279 16.7799C3.69561 16.7738 4.14786 16.75 4.6085 16.7125C6.84318 16.5309 9.75756 15.9937 12.8478 15.1657C15.9381 14.3376 18.7309 13.3455 20.7569 12.3854C21.1747 12.1875 21.5783 11.9823 21.9562 11.7711Z","M9.41123 2.34047C13.7549 1.17661 18.1968 3.08569 20.4542 6.73207C21.0457 6.73368 21.5712 6.77672 21.9972 6.87367C22.2615 6.93384 22.5286 7.02396 22.7569 7.16762C22.9897 7.31407 23.2299 7.54866 23.3243 7.90102C23.4384 8.32684 23.2847 8.70538 23.1144 8.96547C22.9419 9.22868 22.6923 9.46889 22.419 9.6852C21.8677 10.1217 21.0707 10.5772 20.1153 11.0299C18.1932 11.9407 15.4905 12.9045 12.4601 13.7164C9.4294 14.5285 6.60652 15.0451 4.48643 15.2174C3.4327 15.303 2.51418 15.307 1.81846 15.2047C1.47391 15.154 1.13834 15.0709 0.857522 14.9293C0.579952 14.7894 0.25688 14.5386 0.142678 14.1129C0.0482613 13.7605 0.138331 13.4363 0.266701 13.193C0.392635 12.9545 0.579613 12.7435 0.77842 12.5592C1.09887 12.2623 1.53251 11.9619 2.04405 11.6647C2.176 7.37825 5.06785 3.50439 9.41123 2.34047Z"],"PlanetOrbitSpace/l/outline":["M9.41112 2.34045C13.7551 1.17651 18.1968 3.087 20.4541 6.73401C21.0454 6.73563 21.5712 6.77673 21.9971 6.87366C22.2613 6.93381 22.5285 7.02406 22.7568 7.1676C22.9895 7.31397 23.2296 7.54903 23.3242 7.901C23.4382 8.32653 23.2845 8.7054 23.1142 8.96545C22.9418 9.22858 22.6921 9.46892 22.4189 9.68518C22.2318 9.83332 22.0147 9.98174 21.7744 10.1334C22.757 15.2331 19.6659 20.298 14.5879 21.6588C9.50953 23.0196 4.29847 20.1791 2.5996 15.2711C2.31606 15.2599 2.05417 15.2394 1.81835 15.2047C1.4738 15.154 1.13822 15.0709 0.857413 14.9293C0.579816 14.7893 0.256662 14.5387 0.142569 14.1129C0.0483586 13.7608 0.138326 13.4371 0.266593 13.194C0.392529 12.9554 0.579523 12.7434 0.778311 12.5592C1.09859 12.2624 1.53288 11.9636 2.04394 11.6666C2.1754 7.37966 5.06724 3.50443 9.41112 2.34045ZM20.1142 11.0299C18.1921 11.9407 15.4903 12.9054 12.46 13.7174C9.42928 14.5295 6.60642 15.0451 4.48632 15.2174C4.38621 15.2255 4.28703 15.2293 4.18944 15.236C5.79043 19.1293 10.0517 21.3218 14.1992 20.2106C18.347 19.0992 20.9412 15.0695 20.3808 10.8971C20.293 10.9401 20.205 10.9869 20.1142 11.0299ZM19.373 7.85413C17.5223 4.53708 13.6117 2.76842 9.7998 3.78967C5.98781 4.81109 3.48427 8.29819 3.54003 12.0963C3.54816 12.6468 3.61168 13.2044 3.73144 13.7623C3.93163 13.7526 4.14326 13.7403 4.36523 13.7223C6.37061 13.5593 9.10057 13.0642 12.0713 12.2682C15.0421 11.4722 17.6544 10.536 19.4726 9.67444C19.6738 9.57911 19.8629 9.48384 20.041 9.39221C19.8657 8.84916 19.6412 8.33494 19.373 7.85413ZM2.14062 13.3864C2.00445 13.4847 1.88929 13.5751 1.79784 13.6598C1.79344 13.6639 1.78937 13.6685 1.78515 13.6725C1.85529 13.689 1.9388 13.7069 2.0371 13.7213C2.08803 13.7288 2.14165 13.7337 2.19726 13.7399C2.17614 13.6221 2.15743 13.504 2.14062 13.3864ZM21.3574 8.60608C21.4027 8.57283 21.4468 8.54146 21.4873 8.5094C21.5649 8.44797 21.6283 8.39069 21.6807 8.34143C21.6752 8.34013 21.6697 8.33783 21.6641 8.33655C21.5422 8.30883 21.3971 8.28825 21.2295 8.27112C21.2738 8.38159 21.3168 8.49338 21.3574 8.60608Z"],"PlanetOrbitSpace/m/filled":["M14.6371 7.84734C14.7147 10.8522 12.7466 13.6295 9.72502 14.4391C6.70334 15.2487 3.61044 13.8272 2.17521 11.1862C2.46364 11.1821 2.76473 11.1663 3.0717 11.1413C4.56147 11.0202 6.50469 10.6621 8.56486 10.11C10.6252 9.55797 12.4876 8.89659 13.8383 8.25652C14.1166 8.12468 14.3854 7.98804 14.6371 7.84734Z","M6.27385 1.56023C9.1696 0.784325 12.1312 2.05705 13.6362 4.48797C14.0303 4.48904 14.3805 4.51809 14.6645 4.58269C14.8407 4.62279 15.0191 4.68229 15.1713 4.778C15.3265 4.87564 15.4873 5.03235 15.5502 5.26726C15.6262 5.55115 15.5232 5.80385 15.4096 5.97722C15.2946 6.15266 15.1279 6.31253 14.9457 6.45672C14.5781 6.74768 14.0465 7.05139 13.4096 7.3532C12.1281 7.96036 10.3263 8.60292 8.30607 9.14422C6.28576 9.68556 4.40396 10.0303 2.99064 10.1452C2.28829 10.2022 1.67606 10.2046 1.21232 10.1364C0.982617 10.1026 0.758914 10.0472 0.571697 9.95281C0.386705 9.85953 0.171328 9.6925 0.0951343 9.40886C0.0321899 9.17393 0.0925621 8.95778 0.178142 8.79558C0.262098 8.63654 0.386408 8.49558 0.518962 8.37273C0.732543 8.17481 1.02182 7.97508 1.36271 7.77703C1.4506 4.91941 3.37834 2.33628 6.27385 1.56023Z"],"PlanetOrbitSpace/m/outline":["M6.24209 1.439C9.16903 0.654987 12.1598 1.92643 13.704 4.36381C14.0766 4.36784 14.4133 4.39701 14.6923 4.46049C14.8758 4.50229 15.0695 4.5663 15.2382 4.6724C15.3889 4.76723 15.5502 4.91673 15.6376 5.13627L15.6708 5.2349L15.6942 5.35697C15.7289 5.63742 15.6218 5.88023 15.5136 6.04545C15.3883 6.23659 15.2104 6.40616 15.0233 6.55424C14.9141 6.64068 14.7899 6.72642 14.6552 6.814C15.2737 10.2491 13.1799 13.6429 9.75771 14.5601C6.33551 15.4771 2.82567 13.5851 1.64345 10.3013C1.48278 10.2929 1.33215 10.2806 1.19423 10.2603C0.958119 10.2256 0.719698 10.167 0.515523 10.064C0.314086 9.96241 0.063528 9.77289 -0.0254924 9.44096C-0.0988612 9.16669 -0.0276052 8.91784 0.067281 8.73783C0.160304 8.56175 0.296467 8.4087 0.434469 8.2808C0.644179 8.08659 0.920925 7.89319 1.24111 7.70365C1.35957 4.82035 3.31485 2.22336 6.24209 1.439ZM13.4638 7.46635C12.1737 8.07766 10.364 8.72248 8.33877 9.26517C6.31355 9.80782 4.42375 10.1534 3.00087 10.2691C2.99285 10.2697 2.98446 10.2694 2.97646 10.2701C4.06957 12.7083 6.78867 14.0611 9.43447 13.3521C12.0794 12.643 13.756 10.113 13.4843 7.45561C13.4774 7.45885 13.4706 7.46307 13.4638 7.46635ZM12.8065 5.29643C11.5998 3.13361 9.04955 1.98155 6.56533 2.64701C4.0812 3.31276 2.44898 5.58561 2.48525 8.06205C2.49003 8.3861 2.52483 8.71405 2.58877 9.04252C2.68834 9.03677 2.79263 9.03271 2.90029 9.02396C4.22764 8.91607 6.04016 8.58744 8.01552 8.05814C9.99092 7.52881 11.7252 6.90672 12.9286 6.33646C13.0259 6.29037 13.1181 6.24244 13.2069 6.19779C13.098 5.88119 12.9645 5.57957 12.8065 5.29643Z"],"PlanetOrbitSpace/s/filled":["M10.9786 5.88568C11.0367 8.13921 9.56013 10.2218 7.29402 10.829C5.02772 11.4363 2.70738 10.3704 1.63093 8.38959C1.84726 8.38654 2.07355 8.37512 2.30378 8.35638C3.42113 8.26559 4.87875 7.99697 6.4239 7.58295C7.96915 7.1689 9.36593 6.67237 10.379 6.19232C10.5878 6.09342 10.7897 5.99122 10.9786 5.88568Z","M4.70613 1.16986C6.87777 0.588174 9.09799 1.54315 10.2266 3.36615C10.5225 3.36694 10.786 3.38796 10.9991 3.43646C11.1312 3.46655 11.2649 3.51213 11.379 3.58392C11.4952 3.65711 11.615 3.77433 11.6622 3.95013C11.7192 4.16302 11.6419 4.35232 11.5567 4.48236C11.4705 4.61397 11.3457 4.73456 11.2091 4.84271C10.9334 5.06084 10.5351 5.28834 10.0577 5.51459C9.09659 5.96999 7.74487 6.45234 6.22957 6.85834C4.71436 7.26434 3.30321 7.52219 2.24324 7.60834C1.71637 7.65113 1.25711 7.65362 0.909253 7.60248C0.736992 7.57714 0.569186 7.53555 0.428785 7.46478C0.290017 7.39481 0.128482 7.26937 0.0713627 7.05658C0.0241544 6.88038 0.0696777 6.71827 0.133863 6.59662C0.196812 6.47744 0.289404 6.37131 0.388745 6.27924C0.548988 6.13074 0.766735 5.98155 1.02253 5.83295C1.08845 3.68963 2.53432 1.7518 4.70613 1.16986Z"],"PlanetOrbitSpace/s/outline":["M4.6725 1.04931C6.87555 0.459015 9.12656 1.41205 10.2946 3.2417C10.5689 3.24541 10.8181 3.26765 11.026 3.31494C11.1655 3.34669 11.3144 3.39594 11.445 3.47802C11.5619 3.55161 11.6889 3.66853 11.7575 3.84131L11.7829 3.91845L11.8014 4.01513C11.8284 4.23517 11.7441 4.42415 11.6608 4.55127C11.5642 4.69865 11.4284 4.82883 11.2868 4.94091C11.2086 5.00276 11.1203 5.06398 11.025 5.12646C11.4794 7.71141 9.9016 10.2605 7.32582 10.9507C4.7501 11.6407 2.10845 10.2222 1.20961 7.75634C1.09626 7.74986 0.98955 7.74051 0.89125 7.72607C0.712617 7.69978 0.529038 7.656 0.371718 7.57666C0.216629 7.49836 0.0198016 7.35005 -0.0501565 7.08935C-0.107935 6.87356 -0.0514958 6.67812 0.0221091 6.53857C0.0940816 6.40219 0.198483 6.28522 0.303359 6.18798C0.459733 6.04306 0.66432 5.89869 0.900039 5.7583C0.99687 3.5901 2.46993 1.63979 4.6725 1.04931ZM10.0856 5.63916C9.11754 6.09518 7.76866 6.57512 6.26137 6.979C4.75402 7.38286 3.3462 7.64191 2.27992 7.73095C3.10558 9.51979 5.11292 10.5083 7.06703 9.98486C9.02135 9.46121 10.2651 7.60136 10.0856 5.63916ZM9.5768 3.98779C8.6784 2.37785 6.78021 1.5207 4.93129 2.01611C3.08273 2.51187 1.86802 4.20304 1.89516 6.04638L1.9059 6.29834C1.91731 6.44816 1.9381 6.59869 1.96644 6.74951C2.03243 6.7455 2.10178 6.74255 2.1725 6.73681C3.16547 6.65609 4.52261 6.4097 6.00258 6.01318C7.48283 5.61654 8.78183 5.15077 9.68227 4.72412C9.74617 4.69383 9.80689 4.66175 9.86586 4.63232C9.78641 4.40632 9.68996 4.19064 9.5768 3.98779Z"],"PlanningChecklist/l/filled":["M9.19643 4.64738C9.52927 4.89393 9.59923 5.36362 9.35267 5.69647L6.01934 10.1965C5.89356 10.3663 5.70197 10.4751 5.49171 10.4963C5.28145 10.5174 5.07203 10.4489 4.91495 10.3075L3.24828 8.80752C2.9404 8.53042 2.91544 8.05621 3.19254 7.74832C3.46963 7.44044 3.94385 7.41548 4.25173 7.69258L5.30512 8.64063L8.14734 4.80363C8.39389 4.47078 8.86358 4.40083 9.19643 4.64738ZM11 7.75005C11 7.33583 11.3358 7.00005 11.75 7.00005H20.25C20.6642 7.00005 21 7.33583 21 7.75005C21 8.16426 20.6642 8.50005 20.25 8.50005H11.75C11.3358 8.50005 11 8.16426 11 7.75005ZM3.00001 16.25C3.00001 14.7312 4.23123 13.5 5.75001 13.5C7.26878 13.5 8.50001 14.7312 8.50001 16.25C8.50001 17.7689 7.26878 19 5.75001 19C4.23123 19 3.00001 17.7689 3.00001 16.25ZM11 16.25C11 15.8358 11.3358 15.5 11.75 15.5H20.25C20.6642 15.5 21 15.8358 21 16.25C21 16.6643 20.6642 17 20.25 17H11.75C11.3358 17 11 16.6643 11 16.25Z"],"PlanningChecklist/l/outline":["M5.74991 13.5C7.26869 13.5 8.49992 14.7312 8.49992 16.25C8.49987 17.7688 7.26866 19 5.74991 19C4.23123 18.9999 2.99995 17.7687 2.9999 16.25C2.9999 14.7313 4.2312 13.5001 5.74991 13.5ZM5.74991 15C5.05962 15.0001 4.4999 15.5597 4.4999 16.25C4.49995 16.9403 5.05965 17.4999 5.74991 17.5C6.44025 17.5 6.99987 16.9404 6.99992 16.25C6.99992 15.5596 6.44028 15 5.74991 15ZM20.25 15.5C20.6642 15.5 21 15.8358 21 16.25C20.9999 16.6642 20.6642 17 20.25 17H11.7499C11.3358 16.9999 11 16.6641 10.9999 16.25C10.9999 15.8359 11.3358 15.5001 11.7499 15.5H20.25ZM8.14738 4.80371C8.39391 4.47089 8.86337 4.40098 9.19622 4.64746C9.52905 4.89401 9.599 5.36345 9.35247 5.69629L6.01944 10.1963C5.89375 10.3659 5.70211 10.4748 5.4921 10.4961C5.28195 10.5172 5.07196 10.4489 4.91494 10.3076L3.24794 8.80762C2.9402 8.53056 2.91534 8.05591 3.19228 7.74805C3.46937 7.44024 3.94399 7.41535 4.25186 7.69239L5.30459 8.64063L8.14738 4.80371ZM20.25 7C20.6642 7 21 7.33579 21 7.75001C20.9999 8.16418 20.6642 8.50001 20.25 8.50001H11.7499C11.3358 8.49992 11 8.16412 10.9999 7.75001C10.9999 7.33585 11.3358 7.00009 11.7499 7H20.25Z"],"PlanningChecklist/m/filled":["M6.13095 3.09825C6.35285 3.26262 6.39949 3.57575 6.23511 3.79765L4.01289 6.79767C3.92904 6.91087 3.80131 6.9834 3.66114 6.99753C3.52097 7.0116 3.38135 6.96593 3.27663 6.87167L2.16552 5.87168C1.96027 5.68695 1.94363 5.37081 2.12836 5.16555C2.31309 4.96029 2.62923 4.94365 2.83449 5.12839L3.53675 5.76042L5.43156 3.20242C5.59593 2.98052 5.90905 2.93389 6.13095 3.09825ZM7.33333 5.1667C7.33333 4.89055 7.5572 4.6667 7.83333 4.6667H13.5C13.7761 4.6667 14 4.89055 14 5.1667C14 5.44284 13.7761 5.6667 13.5 5.6667H7.83333C7.5572 5.6667 7.33333 5.44284 7.33333 5.1667ZM2.00001 10.8333C2.00001 9.8208 2.82082 9 3.83334 9C4.84585 9 5.66667 9.8208 5.66667 10.8333C5.66667 11.8459 4.84585 12.6667 3.83334 12.6667C2.82082 12.6667 2.00001 11.8459 2.00001 10.8333ZM7.33333 10.8333C7.33333 10.5572 7.5572 10.3333 7.83333 10.3333H13.5C13.7761 10.3333 14 10.5572 14 10.8333C14 11.1095 13.7761 11.3333 13.5 11.3333H7.83333C7.5572 11.3333 7.33333 11.1095 7.33333 10.8333Z"],"PlanningChecklist/m/outline":["M3.83301 8.87498C4.91445 8.87498 5.79182 9.75156 5.79199 10.833C5.79192 11.9145 4.91451 12.792 3.83301 12.792C2.75165 12.7918 1.87508 11.9144 1.875 10.833C1.87518 9.75166 2.75171 8.87516 3.83301 8.87498ZM3.83301 10.125C3.44206 10.1252 3.12518 10.442 3.125 10.833C3.12508 11.224 3.442 11.5418 3.83301 11.542C4.22417 11.542 4.54192 11.2241 4.54199 10.833C4.54182 10.4419 4.22411 10.125 3.83301 10.125ZM13.5 10.208C13.845 10.2082 14.1249 10.488 14.125 10.833C14.125 11.1781 13.845 11.4578 13.5 11.458H7.83301C7.48797 11.4578 7.20801 11.1781 7.20801 10.833C7.2081 10.488 7.48803 10.2082 7.83301 10.208H13.5ZM5.33105 3.12791C5.5365 2.85056 5.92771 2.79261 6.20508 2.99803C6.48234 3.20347 6.54125 3.59471 6.33594 3.87205L4.11328 6.87205C4.00849 7.01343 3.84892 7.1044 3.67383 7.12205C3.4988 7.13965 3.32421 7.08238 3.19336 6.96483L2.08203 5.96483C1.82556 5.734 1.80452 5.33859 2.03516 5.08201C2.266 4.82552 2.66139 4.80443 2.91797 5.03514L3.51758 5.57518L5.33105 3.12791ZM13.5 4.54197C13.845 4.54215 14.125 4.8219 14.125 5.16697C14.1248 5.51184 13.8449 5.7918 13.5 5.79197H7.83301C7.48812 5.79181 7.20825 5.51185 7.20801 5.16697C7.20801 4.8219 7.48797 4.54214 7.83301 4.54197H13.5Z"],"PlanningChecklist/s/filled":["M4.59822 2.32369C4.76464 2.44696 4.79962 2.68181 4.67634 2.84823L3.00967 5.09825C2.94678 5.18315 2.85099 5.23755 2.74586 5.24815C2.64073 5.2587 2.53602 5.22445 2.45748 5.15375L1.62414 4.40376C1.4702 4.26521 1.45772 4.02811 1.59627 3.87416C1.73482 3.72022 1.97193 3.70774 2.12587 3.84629L2.65256 4.32031L4.07367 2.40181C4.19695 2.23539 4.43179 2.20041 4.59822 2.32369ZM5.5 3.87503C5.5 3.66791 5.6679 3.50003 5.875 3.50003H10.125C10.3321 3.50003 10.5 3.66791 10.5 3.87503C10.5 4.08213 10.3321 4.25002 10.125 4.25002H5.875C5.6679 4.25002 5.5 4.08213 5.5 3.87503ZM1.50001 8.125C1.50001 7.3656 2.11562 6.75 2.87501 6.75C3.63439 6.75 4.25001 7.3656 4.25001 8.125C4.25001 8.88445 3.63439 9.5 2.87501 9.5C2.11562 9.5 1.50001 8.88445 1.50001 8.125ZM5.5 8.125C5.5 7.9179 5.6679 7.75 5.875 7.75H10.125C10.3321 7.75 10.5 7.9179 10.5 8.125C10.5 8.33215 10.3321 8.5 10.125 8.5H5.875C5.6679 8.5 5.5 8.33215 5.5 8.125Z"],"PlanningChecklist/s/outline":["M2.87463 6.62531C3.70307 6.62531 4.37467 7.29687 4.37467 8.12532C4.37452 8.95365 3.70298 9.62534 2.87463 9.62534C2.04647 9.62511 1.37474 8.95351 1.37459 8.12532C1.37459 7.29701 2.04638 6.62554 2.87463 6.62531ZM2.87463 7.62532C2.59867 7.62555 2.37462 7.84931 2.37462 8.12532C2.37476 8.40121 2.59876 8.6251 2.87463 8.62533C3.15069 8.62533 3.37449 8.40135 3.37464 8.12532C3.37464 7.84917 3.15078 7.62532 2.87463 7.62532ZM10.1248 7.62532C10.401 7.62532 10.6248 7.84918 10.6248 8.12532C10.6247 8.40134 10.4009 8.62533 10.1248 8.62533H5.8747C5.59884 8.6251 5.37484 8.4012 5.37469 8.12532C5.37469 7.84932 5.59875 7.62555 5.8747 7.62532H10.1248ZM3.97329 2.32742C4.13769 2.10587 4.45075 2.05975 4.67252 2.2239C4.89412 2.38834 4.94033 2.70135 4.77604 2.92313L3.10999 5.17315C3.02622 5.28599 2.89824 5.35818 2.75842 5.37237C2.61852 5.38631 2.47821 5.34133 2.37364 5.24737L1.53964 4.49736C1.33464 4.31272 1.31818 3.99554 1.50253 3.79032C1.68724 3.58515 2.00433 3.56859 2.20957 3.75321L2.63341 4.13505L3.97329 2.32742ZM10.1248 3.37528C10.401 3.37528 10.6248 3.59914 10.6248 3.87528C10.6247 4.1513 10.4009 4.37529 10.1248 4.37529H5.8747C5.59884 4.37506 5.37484 4.15116 5.37469 3.87528C5.37469 3.59928 5.59875 3.37551 5.8747 3.37528H10.1248Z"],"Play/l/filled":["M8.64741 3.3461C7.14688 2.40843 5.19995 3.48639 5.19995 5.25485V18.7451C5.19995 20.5136 7.14688 21.5916 8.64741 20.6539L19.4416 13.9087C20.8528 13.0269 20.8528 10.9731 19.4416 10.0912L8.64741 3.3461Z"],"Play/l/outline":["M5 5.25839C5.0001 3.25533 7.20398 2.0342 8.90234 3.09628L19.6826 9.83749C21.2796 10.8363 21.2794 13.1628 19.6826 14.1617L8.90234 20.9029C7.20392 21.965 5 20.7439 5 18.7408V5.25839ZM6.5 18.7408C6.5 19.5656 7.40715 20.0686 8.10645 19.6314L18.8867 12.8902C19.5444 12.4789 19.5444 11.5212 18.8867 11.11L8.10645 4.36874C7.40714 3.93143 6.5001 4.43365 6.5 5.25839V18.7408Z"],"Play/m/filled":["M5.59836 2.23073C4.598 1.60562 3.30005 2.32426 3.30005 3.50323V12.4968C3.30005 13.6758 4.598 14.3944 5.59836 13.7692L12.7944 9.27248C13.7352 8.6846 13.7352 7.3154 12.7944 6.7275L5.59836 2.23073Z"],"Play/m/outline":["M3.19995 3.50589C3.19995 2.07227 4.7774 1.19791 5.99292 1.95804L13.1794 6.45218C14.3225 7.167 14.3223 8.83198 13.1794 9.54691L5.99292 14.042C4.77738 14.8021 3.19996 13.9278 3.19995 12.4942V3.50589ZM4.44995 12.4942C4.44996 12.9459 4.94689 13.2209 5.32983 12.9815L12.5164 8.48734C12.8765 8.26211 12.8765 7.73795 12.5164 7.51273L5.32983 3.01859C4.94686 2.77909 4.44995 3.05421 4.44995 3.50589V12.4942Z"],"Play/s/filled":["M3.42368 1.67305C2.67341 1.20422 1.69995 1.74319 1.69995 2.62743V9.37257C1.69995 10.2568 2.67341 10.7958 3.42368 10.3269L8.82075 6.95436C9.52635 6.51345 9.52635 5.48655 8.82075 5.04562L3.42368 1.67305Z"],"Play/s/outline":["M2.30005 2.62918C2.3001 1.52945 3.51019 0.859552 4.44263 1.44265L9.83228 4.81277C10.7092 5.36116 10.7092 6.63841 9.83228 7.18679L4.44263 10.5579C3.51015 11.141 2.30005 10.4701 2.30005 9.37039V2.62918ZM3.30005 9.37039C3.30005 9.68461 3.64596 9.87677 3.91235 9.71023L9.302 6.33914C9.55253 6.18246 9.55253 5.8171 9.302 5.66043L3.91235 2.29031C3.64596 2.12372 3.3001 2.315 3.30005 2.62918V9.37039Z"],"Plugin/l/filled":["M9.5 2.75C9.5 2.33579 9.16421 2 8.75 2C8.33579 2 8 2.33579 8 2.75V5.5H6.75C5.23122 5.5 4 6.73122 4 8.25V14.25C4 16.8734 6.12665 19 8.75 19H11.25V21.25C11.25 21.6642 11.5858 22 12 22C12.4142 22 12.75 21.6642 12.75 21.25V19H15.25C17.8734 19 20 16.8734 20 14.25V8.25C20 6.73122 18.7688 5.5 17.25 5.5H16V2.75C16 2.33579 15.6642 2 15.25 2C14.8358 2 14.5 2.33579 14.5 2.75V5.5H9.5V2.75Z"],"Plugin/l/outline":["M15.25 2C15.6642 2 16 2.33579 16 2.75V5.5H17.25C18.7688 5.5 20 6.73122 20 8.25V14.25C20 16.8733 17.8733 19 15.25 19H12.75V21.25C12.75 21.6642 12.4142 22 12 22C11.5858 22 11.25 21.6642 11.25 21.25V19H8.75C6.12664 19 4 16.8733 4 14.25V8.25C4 6.73122 5.23122 5.5 6.75 5.5H8V2.75C8 2.33579 8.33579 2 8.75 2C9.16421 2 9.5 2.33579 9.5 2.75V5.5H14.5V2.75C14.5 2.33579 14.8358 2 15.25 2ZM6.75 7C6.05964 7 5.5 7.55964 5.5 8.25V14.25C5.5 16.0449 6.95508 17.5 8.75 17.5H15.25C17.0449 17.5 18.5 16.0449 18.5 14.25V8.25C18.5 7.55964 17.9404 7 17.25 7H6.75Z"],"Plugin/m/filled":["M6.33329 1.83331C6.33329 1.55717 6.10943 1.33331 5.83329 1.33331C5.55715 1.33331 5.33329 1.55717 5.33329 1.83331V3.66665H4.49996C3.48744 3.66665 2.66663 4.48746 2.66663 5.49998V9.49998C2.66663 11.2489 4.08439 12.6666 5.83329 12.6666H7.49996V14.1666C7.49996 14.4428 7.72383 14.6666 7.99996 14.6666C8.27609 14.6666 8.49996 14.4428 8.49996 14.1666V12.6666H10.1666C11.9156 12.6666 13.3333 11.2489 13.3333 9.49998V5.49998C13.3333 4.48746 12.5125 3.66665 11.5 3.66665H10.6666V1.83331C10.6666 1.55717 10.4428 1.33331 10.1666 1.33331C9.89049 1.33331 9.66663 1.55717 9.66663 1.83331V3.66665H6.33329V1.83331Z"],"Plugin/m/outline":["M10.167 1.20801C10.5119 1.20821 10.7918 1.4881 10.792 1.83301V3.54199H11.5C12.5813 3.54219 13.4588 4.41872 13.459 5.5V9.5C13.4588 11.3176 11.9846 12.7918 10.167 12.792H8.625V14.167C8.62482 14.512 8.34507 14.792 8 14.792C7.65493 14.792 7.37518 14.512 7.375 14.167V12.792H5.83398C4.01615 12.792 2.54217 11.3178 2.54199 9.5V5.5C2.54217 4.4187 3.4187 3.54217 4.5 3.54199H5.20801V1.83301C5.20818 1.4881 5.48811 1.20821 5.83301 1.20801C6.17808 1.20801 6.45783 1.48798 6.45801 1.83301V3.54199H9.54199V1.83301C9.54217 1.48798 9.82192 1.20801 10.167 1.20801ZM4.5 4.79199C4.10906 4.79217 3.79217 5.10906 3.79199 5.5V9.5C3.79217 10.6274 4.70652 11.542 5.83398 11.542H10.167C11.2943 11.5418 12.2088 10.6273 12.209 9.5V5.5C12.2088 5.10906 11.8909 4.79219 11.5 4.79199H4.5Z"],"Plugin/s/filled":["M4.75 1.375C4.75 1.1679 4.5821 1 4.375 1C4.1679 1 4 1.1679 4 1.375V2.75H3.375C2.61561 2.75 2 3.36561 2 4.125V7.125C2 8.4367 3.06333 9.5 4.375 9.5H5.625V10.625C5.625 10.8321 5.7929 11 6 11C6.2071 11 6.375 10.8321 6.375 10.625V9.5H7.625C8.9367 9.5 10 8.4367 10 7.125V4.125C10 3.36561 9.3844 2.75 8.625 2.75H8V1.375C8 1.1679 7.8321 1 7.625 1C7.4179 1 7.25 1.1679 7.25 1.375V2.75H4.75V1.375Z"],"Plugin/s/outline":["M7.625 0.875C7.90114 0.875 8.125 1.09886 8.125 1.375V2.625H8.625C9.45345 2.625 10.125 3.29658 10.125 4.125V7.125C10.125 8.50569 9.00569 9.625 7.625 9.625H6.5V10.625C6.5 10.9011 6.27614 11.125 6 11.125C5.72386 11.125 5.5 10.9011 5.5 10.625V9.625H4.375C2.99428 9.625 1.875 8.50569 1.875 7.125V4.125C1.875 3.29657 2.54657 2.625 3.375 2.625H3.875V1.375C3.875 1.09886 4.09886 0.875 4.375 0.875C4.65114 0.875 4.875 1.09886 4.875 1.375V2.625H7.125V1.375C7.125 1.09886 7.34886 0.875 7.625 0.875ZM3.375 3.625C3.09886 3.625 2.875 3.84886 2.875 4.125V7.125C2.875 7.95341 3.54658 8.625 4.375 8.625H7.625C8.45341 8.625 9.125 7.95341 9.125 7.125V4.125C9.125 3.84885 8.90115 3.625 8.625 3.625H3.375Z"],"PluginBlockCustomize/l/filled":["M19.0283 8.5C20.5471 8.50007 21.7783 9.73126 21.7783 11.25V17.25C21.7783 18.7688 20.5471 19.9999 19.0283 20H4.52832C3.00954 20 1.77832 18.7688 1.77832 17.25V11.25C1.77832 9.73122 3.00954 8.5 4.52832 8.5H19.0283Z","M8.52832 3C9.7709 3.00007 10.7783 4.0074 10.7783 5.25V7H3.77832V5.25C3.77832 4.00736 4.78568 3 6.02832 3H8.52832Z","M17.5283 3C18.7709 3.00007 19.7783 4.0074 19.7783 5.25V7H12.7783V5.25C12.7783 4.00736 13.7857 3 15.0283 3H17.5283Z"],"PluginBlockCustomize/l/outline":["M8.52832 3C9.77091 3.00007 10.7783 4.0074 10.7783 5.25V7H12.7783V5.25C12.7783 4.00735 13.7857 3 15.0283 3H17.5283C18.7709 3.00007 19.7783 4.00739 19.7783 5.25V7.10645C20.9321 7.4332 21.7783 8.49154 21.7783 9.75V17.25C21.7783 18.7688 20.5471 19.9999 19.0283 20H4.52832C3.00954 20 1.77832 18.7688 1.77832 17.25V9.75C1.77832 8.49137 2.62427 7.43206 3.77832 7.10547V5.25C3.77832 4.00736 4.78568 3 6.02832 3H8.52832ZM4.52832 8.5C3.83796 8.5 3.27832 9.05964 3.27832 9.75V17.25C3.27832 17.9404 3.83796 18.5 4.52832 18.5H19.0283C19.7187 18.4999 20.2783 17.9403 20.2783 17.25V9.75C20.2783 9.05968 19.7186 8.50007 19.0283 8.5H4.52832ZM15.0283 4.5C14.6141 4.5 14.2783 4.83579 14.2783 5.25V7H18.2783V5.25C18.2783 4.83583 17.9425 4.50007 17.5283 4.5H15.0283ZM6.02832 4.5C5.6141 4.5 5.27832 4.83578 5.27832 5.25V7H9.27832V5.25C9.27832 4.83582 8.94248 4.50007 8.52832 4.5H6.02832Z"],"PluginBlockCustomize/m/filled":["M12.6855 5.66699C13.698 5.66706 14.5185 6.48753 14.5186 7.5V11.5C14.5186 12.5125 13.698 13.3329 12.6855 13.333H3.01855C2.00613 13.3329 1.18555 12.5125 1.18555 11.5V7.5C1.18556 6.48756 2.00613 5.6671 3.01855 5.66699H12.6855Z","M5.68555 2C6.51394 2.00004 7.18555 2.6716 7.18555 3.5V4.66699H2.51855V3.5C2.51855 2.67165 3.19024 2.00013 4.01855 2H5.68555Z","M11.6855 2C12.5139 2.00004 13.1855 2.6716 13.1855 3.5V4.66699H8.51855V3.5C8.51855 2.67165 9.19027 2.00013 10.0186 2H11.6855Z"],"PluginBlockCustomize/m/outline":["M5.68555 1.875C6.58286 1.87518 7.31055 2.60264 7.31055 3.5V4.54199H8.39355V3.5C8.39355 2.60261 9.12123 1.87513 10.0186 1.875H11.6855C12.5828 1.87518 13.3105 2.60264 13.3105 3.5V4.64551C14.0851 4.90653 14.6434 5.6374 14.6436 6.5V11.5C14.6434 12.5814 13.767 13.4589 12.6855 13.459H3.01855C1.93725 13.4588 1.06071 12.5813 1.06055 11.5V6.5C1.06069 5.63731 1.61882 4.90548 2.39355 4.64453V3.5C2.39355 2.60262 3.1212 1.87513 4.01855 1.875H5.68555ZM3.01855 5.79199C2.62761 5.79217 2.31072 6.10906 2.31055 6.5V11.5C2.31071 11.891 2.6276 12.2088 3.01855 12.209H12.6855C13.0766 12.2089 13.3934 11.891 13.3936 11.5V6.5C13.3934 6.10898 13.0766 5.79206 12.6855 5.79199H3.01855ZM10.0186 3.125C9.81157 3.12513 9.64355 3.29298 9.64355 3.5V4.54199H12.0605V3.5C12.0605 3.29301 11.8925 3.12518 11.6855 3.125H10.0186ZM4.01855 3.125C3.81156 3.12513 3.64355 3.29297 3.64355 3.5V4.54199H6.06055V3.5C6.06055 3.293 5.89251 3.12518 5.68555 3.125H4.01855Z"],"PluginBlockCustomize/s/filled":["M9.51465 4.25C10.2738 4.25026 10.8896 4.86577 10.8896 5.625V8.625C10.8896 9.38424 10.2738 9.99974 9.51465 10H2.26465C1.50526 10 0.888672 9.3844 0.888672 8.625V5.625C0.888672 4.86561 1.50526 4.25 2.26465 4.25H9.51465Z","M4.26465 1.5C4.88574 1.50026 5.38965 2.00384 5.38965 2.625V3.5H1.88965V2.625C1.88965 2.00368 2.39333 1.5 3.01465 1.5H4.26465Z","M8.76465 1.5C9.38572 1.50026 9.88965 2.00384 9.88965 2.625V3.5H6.38965V2.625C6.38965 2.00368 6.89335 1.5 7.51465 1.5H8.76465Z"],"PluginBlockCustomize/s/outline":["M4.26465 1.375C4.95478 1.37526 5.51465 1.93481 5.51465 2.625V3.375H6.26465V2.625C6.26465 1.93464 6.82431 1.375 7.51465 1.375H8.76465C9.45476 1.37526 10.0146 1.9348 10.0146 2.625V3.46191C10.5968 3.66809 11.0146 4.22224 11.0146 4.875V8.625C11.0146 9.45328 10.3429 10.1247 9.51465 10.125H2.26465C1.43623 10.125 0.763672 9.45345 0.763672 8.625V4.875C0.763672 4.22191 1.18208 3.66785 1.76465 3.46191V2.625C1.76465 1.93464 2.32429 1.375 3.01465 1.375H4.26465ZM2.26465 4.375C1.98851 4.375 1.76465 4.59886 1.76465 4.875V8.625C1.76465 8.90115 1.9885 9.125 2.26465 9.125H9.51465C9.79058 9.12474 10.0146 8.90099 10.0146 8.625V4.875C10.0146 4.59902 9.79058 4.37526 9.51465 4.375H2.26465ZM7.51465 2.375C7.37658 2.375 7.26465 2.48693 7.26465 2.625V3.375H9.01465V2.625C9.01465 2.4871 8.90249 2.37526 8.76465 2.375H7.51465ZM3.01465 2.375C2.87658 2.375 2.76465 2.48693 2.76465 2.625V3.375H4.51465V2.625C4.51465 2.48709 4.4025 2.37526 4.26465 2.375H3.01465Z"],"PlusLarge/l/filled":["M12 3C12.4142 3 12.75 3.33579 12.75 3.75V11.25H20.25C20.6642 11.25 21 11.5858 21 12C21 12.4142 20.6642 12.75 20.25 12.75H12.75V20.25C12.75 20.6642 12.4142 21 12 21C11.5858 21 11.25 20.6642 11.25 20.25V12.75H3.75C3.33579 12.75 3 12.4142 3 12C3 11.5858 3.33579 11.25 3.75 11.25H11.25V3.75C11.25 3.33579 11.5858 3 12 3Z"],"PlusLarge/l/outline":["M11.25 20.25V12.75H3.75C3.33579 12.75 3 12.4142 3 12C3 11.5858 3.33579 11.25 3.75 11.25H11.25V3.75C11.25 3.33579 11.5858 3 12 3C12.4142 3 12.75 3.33579 12.75 3.75V11.25H20.25C20.6642 11.25 21 11.5858 21 12C21 12.4142 20.6642 12.75 20.25 12.75H12.75V20.25C12.75 20.6642 12.4142 21 12 21C11.5858 21 11.25 20.6642 11.25 20.25Z"],"PlusLarge/m/filled":["M8 2C8.27613 2 8.5 2.22386 8.5 2.5V7.5H13.5C13.7761 7.5 14 7.72387 14 8C14 8.27613 13.7761 8.5 13.5 8.5H8.5V13.5C8.5 13.7761 8.27613 14 8 14C7.72387 14 7.5 13.7761 7.5 13.5V8.5H2.5C2.22386 8.5 2 8.27613 2 8C2 7.72387 2.22386 7.5 2.5 7.5H7.5V2.5C7.5 2.22386 7.72387 2 8 2Z"],"PlusLarge/m/outline":["M7.375 13.5V8.625H2.5C2.15482 8.625 1.875 8.34518 1.875 8C1.875 7.65482 2.15482 7.375 2.5 7.375H7.375V2.5C7.375 2.15482 7.65482 1.875 8 1.875C8.34518 1.875 8.625 2.15482 8.625 2.5V7.375H13.5C13.8452 7.375 14.125 7.65482 14.125 8C14.125 8.34518 13.8452 8.625 13.5 8.625H8.625V13.5C8.625 13.8452 8.34518 14.125 8 14.125C7.65482 14.125 7.375 13.8452 7.375 13.5Z"],"PlusLarge/s/filled":["M6 1.5C6.2071 1.5 6.375 1.6679 6.375 1.875V5.625H10.125C10.3321 5.625 10.5 5.7929 10.5 6C10.5 6.2071 10.3321 6.375 10.125 6.375H6.375V10.125C6.375 10.3321 6.2071 10.5 6 10.5C5.7929 10.5 5.625 10.3321 5.625 10.125V6.375H1.875C1.6679 6.375 1.5 6.2071 1.5 6C1.5 5.7929 1.6679 5.625 1.875 5.625H5.625V1.875C5.625 1.6679 5.7929 1.5 6 1.5Z"],"PlusLarge/s/outline":["M5.5 10.125V6.5H1.875C1.59886 6.5 1.375 6.27614 1.375 6C1.375 5.72386 1.59886 5.5 1.875 5.5H5.5V1.875C5.5 1.59886 5.72386 1.375 6 1.375C6.27614 1.375 6.5 1.59886 6.5 1.875V5.5H10.125C10.4011 5.5 10.625 5.72386 10.625 6C10.625 6.27614 10.4011 6.5 10.125 6.5H6.5V10.125C6.5 10.4011 6.27614 10.625 6 10.625C5.72386 10.625 5.5 10.4011 5.5 10.125Z"],"PlusMedium/l/filled":["M11.1235 18.75V12.75H5.12347C4.70926 12.75 4.37347 12.4142 4.37347 12C4.37347 11.5858 4.70926 11.25 5.12347 11.25H11.1235V5.25C11.1235 4.83579 11.4593 4.5 11.8735 4.5C12.2877 4.5 12.6235 4.83579 12.6235 5.25V11.25H18.6235C19.0377 11.25 19.3735 11.5858 19.3735 12C19.3735 12.4142 19.0377 12.75 18.6235 12.75H12.6235V18.75C12.6235 19.1642 12.2877 19.5 11.8735 19.5C11.4593 19.5 11.1235 19.1642 11.1235 18.75Z"],"PlusMedium/l/outline":["M11.1235 18.75V12.75H5.12347C4.70926 12.75 4.37347 12.4142 4.37347 12C4.37347 11.5858 4.70926 11.25 5.12347 11.25H11.1235V5.25C11.1235 4.83579 11.4593 4.5 11.8735 4.5C12.2877 4.5 12.6235 4.83579 12.6235 5.25V11.25H18.6235C19.0377 11.25 19.3735 11.5858 19.3735 12C19.3735 12.4142 19.0377 12.75 18.6235 12.75H12.6235V18.75C12.6235 19.1642 12.2877 19.5 11.8735 19.5C11.4593 19.5 11.1235 19.1642 11.1235 18.75Z"],"PlusMedium/m/filled":["M7.41565 12.5V8.5H3.41565C3.13951 8.5 2.91565 8.27613 2.91565 8C2.91565 7.72387 3.13951 7.5 3.41565 7.5H7.41565V3.5C7.41565 3.22386 7.63952 3 7.91565 3C8.19178 3 8.41565 3.22386 8.41565 3.5V7.5H12.4156C12.6918 7.5 12.9156 7.72387 12.9156 8C12.9156 8.27613 12.6918 8.5 12.4156 8.5H8.41565V12.5C8.41565 12.7761 8.19178 13 7.91565 13C7.63952 13 7.41565 12.7761 7.41565 12.5Z"],"PlusMedium/m/outline":["M7.29065 12.5V8.625H3.41565C3.07047 8.625 2.79065 8.34518 2.79065 8C2.79065 7.65482 3.07047 7.375 3.41565 7.375H7.29065V3.5C7.29065 3.15482 7.57047 2.875 7.91565 2.875C8.26083 2.875 8.54065 3.15482 8.54065 3.5V7.375H12.4156C12.7608 7.375 13.0406 7.65482 13.0406 8C13.0406 8.34518 12.7608 8.625 12.4156 8.625H8.54065V12.5C8.54065 12.8452 8.26083 13.125 7.91565 13.125C7.57047 13.125 7.29065 12.8452 7.29065 12.5Z"],"PlusMedium/s/filled":["M5.56177 9.375V6.375H2.56177C2.35466 6.375 2.18677 6.2071 2.18677 6C2.18677 5.7929 2.35466 5.625 2.56177 5.625H5.56177V2.625C5.56177 2.4179 5.72967 2.25 5.93677 2.25C6.14387 2.25 6.31177 2.4179 6.31177 2.625V5.625H9.31177C9.51887 5.625 9.68677 5.7929 9.68677 6C9.68677 6.2071 9.51887 6.375 9.31177 6.375H6.31177V9.375C6.31177 9.5821 6.14387 9.75 5.93677 9.75C5.72967 9.75 5.56177 9.5821 5.56177 9.375Z"],"PlusMedium/s/outline":["M5.43677 9.375V6.5H2.56177C2.28563 6.5 2.06177 6.27614 2.06177 6C2.06177 5.72386 2.28563 5.5 2.56177 5.5H5.43677V2.625C5.43677 2.34886 5.66063 2.125 5.93677 2.125C6.21291 2.125 6.43677 2.34886 6.43677 2.625V5.5H9.31177C9.58791 5.5 9.81177 5.72386 9.81177 6C9.81177 6.27614 9.58791 6.5 9.31177 6.5H6.43677V9.375C6.43677 9.65114 6.21291 9.875 5.93677 9.875C5.66063 9.875 5.43677 9.65114 5.43677 9.375Z"],"PlusSmall/l/filled":["M12 6C12.4142 6 12.75 6.33579 12.75 6.75V11.25H17.25C17.6642 11.25 18 11.5858 18 12C18 12.4142 17.6642 12.75 17.25 12.75H12.75V17.25C12.75 17.6642 12.4142 18 12 18C11.5858 18 11.25 17.6642 11.25 17.25V12.75H6.75C6.33579 12.75 6 12.4142 6 12C6 11.5858 6.33579 11.25 6.75 11.25H11.25V6.75C11.25 6.33579 11.5858 6 12 6Z"],"PlusSmall/l/outline":["M11.25 17.25V12.75H6.75C6.33579 12.75 6 12.4142 6 12C6 11.5858 6.33579 11.25 6.75 11.25H11.25V6.75C11.25 6.33579 11.5858 6 12 6C12.4142 6 12.75 6.33579 12.75 6.75V11.25H17.25C17.6642 11.25 18 11.5858 18 12C18 12.4142 17.6642 12.75 17.25 12.75H12.75V17.25C12.75 17.6642 12.4142 18 12 18C11.5858 18 11.25 17.6642 11.25 17.25Z"],"PlusSmall/m/filled":["M7.375 11.5V8.625H4.5C4.15482 8.625 3.875 8.34518 3.875 8C3.875 7.65482 4.15482 7.375 4.5 7.375H7.375V4.5C7.375 4.15482 7.65482 3.875 8 3.875C8.34518 3.875 8.625 4.15482 8.625 4.5V7.375H11.5C11.8452 7.375 12.125 7.65482 12.125 8C12.125 8.34518 11.8452 8.625 11.5 8.625H8.625V11.5C8.625 11.8452 8.34518 12.125 8 12.125C7.65482 12.125 7.375 11.8452 7.375 11.5Z"],"PlusSmall/m/outline":["M7.375 11.5V8.625H4.5C4.15482 8.625 3.875 8.34518 3.875 8C3.875 7.65482 4.15482 7.375 4.5 7.375H7.375V4.5C7.375 4.15482 7.65482 3.875 8 3.875C8.34518 3.875 8.625 4.15482 8.625 4.5V7.375H11.5C11.8452 7.375 12.125 7.65482 12.125 8C12.125 8.34518 11.8452 8.625 11.5 8.625H8.625V11.5C8.625 11.8452 8.34518 12.125 8 12.125C7.65482 12.125 7.375 11.8452 7.375 11.5Z"],"PlusSmall/s/filled":["M5.5 8.625V6.5H3.375C3.09886 6.5 2.875 6.27614 2.875 6C2.875 5.72386 3.09886 5.5 3.375 5.5H5.5V3.375C5.5 3.09886 5.72386 2.875 6 2.875C6.27614 2.875 6.5 3.09886 6.5 3.375V5.5H8.625C8.90114 5.5 9.125 5.72386 9.125 6C9.125 6.27614 8.90114 6.5 8.625 6.5H6.5V8.625C6.5 8.90114 6.27614 9.125 6 9.125C5.72386 9.125 5.5 8.90114 5.5 8.625Z"],"PlusSmall/s/outline":["M5.5 8.625V6.5H3.375C3.09886 6.5 2.875 6.27614 2.875 6C2.875 5.72386 3.09886 5.5 3.375 5.5H5.5V3.375C5.5 3.09886 5.72386 2.875 6 2.875C6.27614 2.875 6.5 3.09886 6.5 3.375V5.5H8.625C8.90114 5.5 9.125 5.72386 9.125 6C9.125 6.27614 8.90114 6.5 8.625 6.5H6.5V8.625C6.5 8.90114 6.27614 9.125 6 9.125C5.72386 9.125 5.5 8.90114 5.5 8.625Z"],"Projects/l/filled":["M19.1561 10C20.9592 10 22.2751 11.7065 21.8163 13.4502L20.369 18.9502C20.051 20.1581 18.958 21 17.7089 21H6.29285C5.04397 20.9997 3.95061 20.1579 3.63269 18.9502L2.18542 13.4502C1.72675 11.7067 3.04291 10.0004 4.84558 10H19.1561ZM19.2509 6.5C19.6652 6.5 20.0009 6.83579 20.0009 7.25C20.0009 7.66421 19.6652 8 19.2509 8H4.75085C4.33699 7.99959 4.00085 7.66396 4.00085 7.25C4.00085 6.83604 4.33699 6.50041 4.75085 6.5H19.2509ZM17.2509 3C17.6652 3 18.0009 3.33579 18.0009 3.75C18.0009 4.16421 17.6652 4.5 17.2509 4.5H6.75085C6.33699 4.49959 6.00085 4.16396 6.00085 3.75C6.00085 3.33604 6.33699 3.00041 6.75085 3H17.2509Z"],"Projects/l/outline":["M19.156 10C20.9588 10.0003 22.2741 11.7065 21.8152 13.4502L20.3679 18.9502C20.0499 20.1579 18.9577 20.9997 17.7087 21H6.29175C5.04287 20.9997 3.95057 20.1579 3.63257 18.9502L2.1853 13.4502C1.72654 11.7066 3.04165 10.0003 4.84448 10H19.156ZM4.84448 11.5C4.02516 11.5003 3.42702 12.2759 3.6355 13.0684L5.08276 18.5684C5.22729 19.1172 5.72422 19.4997 6.29175 19.5H17.7087C18.2764 19.4997 18.7732 19.1172 18.9177 18.5684L20.365 13.0684C20.5735 12.2759 19.9753 11.5003 19.156 11.5H4.84448ZM19.2498 6.5C19.664 6.5 19.9998 6.83579 19.9998 7.25C19.9998 7.66421 19.664 8 19.2498 8H4.74976C4.33582 7.99968 3.99976 7.66401 3.99976 7.25C3.99976 6.83599 4.33582 6.50032 4.74976 6.5H19.2498ZM17.2498 3C17.664 3 17.9998 3.33579 17.9998 3.75C17.9998 4.16421 17.664 4.5 17.2498 4.5H6.74976C6.33582 4.49968 5.99976 4.16402 5.99976 3.75C5.99976 3.33598 6.33582 3.00032 6.74976 3H17.2498Z"],"Projects/m/filled":["M12.7708 6.66699C13.9726 6.66723 14.85 7.80449 14.5442 8.9668L13.5793 12.6338C13.3673 13.4388 12.6384 13.9998 11.8059 14H4.19556C3.36297 13.9999 2.63424 13.4388 2.42212 12.6338L1.45728 8.9668C1.15139 7.80433 2.02871 6.66706 3.23071 6.66699H12.7708ZM12.8342 4.33301C13.1101 4.33329 13.3341 4.55719 13.3342 4.83301C13.3342 5.10898 13.1102 5.33273 12.8342 5.33301H3.16724C2.89125 5.33282 2.66724 5.10904 2.66724 4.83301C2.66741 4.55713 2.89136 4.33319 3.16724 4.33301H12.8342ZM11.5012 2C11.777 2.00045 12.0012 2.22414 12.0012 2.5C12.0012 2.77586 11.777 2.99955 11.5012 3H4.50122C4.22513 2.99993 4.00122 2.7761 4.00122 2.5C4.00122 2.2239 4.22513 2.00007 4.50122 2H11.5012Z"],"Projects/m/outline":["M12.7704 6.54199C14.0542 6.54212 14.9908 7.75728 14.6639 8.99902L13.6991 12.665C13.4726 13.5251 12.6949 14.1249 11.8055 14.125H4.19421C3.30486 14.1248 2.52712 13.5251 2.30066 12.665L1.33582 8.99902C1.00908 7.75737 1.94551 6.5422 3.22937 6.54199H12.7704ZM3.22937 7.79199C2.76511 7.7922 2.42664 8.23161 2.5448 8.68066L3.50964 12.3477C3.59174 12.6583 3.87285 12.8748 4.19421 12.875H11.8055C12.127 12.8749 12.408 12.6583 12.4901 12.3477L13.455 8.68066C13.5731 8.23161 13.2347 7.79212 12.7704 7.79199H3.22937ZM12.8339 4.20801C13.1787 4.20831 13.4587 4.48816 13.4589 4.83301C13.4589 5.178 13.1788 5.45771 12.8339 5.45801H3.16687C2.82173 5.45797 2.54187 5.17816 2.54187 4.83301C2.54205 4.488 2.82184 4.20805 3.16687 4.20801H12.8339ZM11.4999 1.875C11.845 1.87502 12.1249 2.15484 12.1249 2.5C12.1249 2.84516 11.845 3.12498 11.4999 3.125H4.49988C4.1548 3.12488 3.87488 2.84511 3.87488 2.5C3.87488 2.15489 4.1548 1.87512 4.49988 1.875H11.4999Z"],"Projects/s/filled":["M9.57812 5C10.4797 5 11.1376 5.85374 10.9082 6.72559L10.1846 9.47559C10.0254 10.0793 9.47891 10.5 8.85449 10.5H3.14648C2.5222 10.4998 1.97551 10.0792 1.81641 9.47559L1.09277 6.72559C0.86341 5.85384 1.52152 5.00024 2.42285 5H9.57812ZM9.62598 3.25C9.83297 3.25019 10.001 3.41801 10.001 3.625C10.001 3.83199 9.83297 3.99981 9.62598 4H2.37598C2.16898 3.99987 2.00098 3.83203 2.00098 3.625C2.00098 3.41797 2.16898 3.25013 2.37598 3.25H9.62598ZM8.62598 1.5C8.83297 1.50019 9.00098 1.66801 9.00098 1.875C9.00098 2.08199 8.83297 2.24981 8.62598 2.25H3.37598C3.16898 2.24987 3.00098 2.08203 3.00098 1.875C3.00098 1.66797 3.16898 1.50013 3.37598 1.5H8.62598Z"],"Projects/s/outline":["M9.57776 4.875C10.5611 4.87519 11.2783 5.80577 11.028 6.75684L10.3043 9.50684C10.1309 10.1656 9.53533 10.6248 8.85413 10.625H3.14612C2.46483 10.6249 1.86837 10.1657 1.69495 9.50684L0.971313 6.75684C0.72108 5.80579 1.43911 4.87514 2.42249 4.875H9.57776ZM2.42249 5.875C2.09491 5.87514 1.85503 6.18512 1.93811 6.50195L2.66174 9.25195C2.71954 9.47151 2.91909 9.6249 3.14612 9.625H8.85413C9.08113 9.62484 9.27974 9.47143 9.33752 9.25195L10.0612 6.50195L10.0778 6.38379C10.0831 6.11232 9.8643 5.87516 9.57776 5.875H2.42249ZM9.62463 3.125C9.90076 3.12502 10.1246 3.34887 10.1246 3.625C10.1246 3.90113 9.90076 4.12498 9.62463 4.125H2.37463C2.09863 4.12484 1.87463 3.90104 1.87463 3.625C1.87463 3.34896 2.09863 3.12516 2.37463 3.125H9.62463ZM8.62463 1.375C8.90076 1.37502 9.12463 1.59887 9.12463 1.875C9.12463 2.15113 8.90076 2.37498 8.62463 2.375H3.37463C3.09863 2.37484 2.87463 2.15104 2.87463 1.875C2.87463 1.59896 3.09863 1.37516 3.37463 1.375H8.62463Z"],"PulseElectrocardiogram/l/filled":["M8.19336 2.83978C8.59992 1.78295 10.1223 1.7875 10.5225 2.84662L10.5586 2.95599L15.3535 19.7411L17.2314 13.0107C17.5632 11.822 18.6469 10.9999 19.8809 10.9999H22.6123C23.0264 11 23.3623 11.3358 23.3623 11.7499C23.3623 12.1641 23.0265 12.4999 22.6123 12.4999H19.8809C19.3199 12.4999 18.8275 12.8738 18.6768 13.414L16.5605 20.996C16.2215 22.2109 14.5009 22.2162 14.1543 21.0038L9.35352 4.19916L7.50293 10.5224C7.15987 11.6945 6.08447 12.4999 4.86328 12.4999H2.1123C1.69809 12.4999 1.36231 12.1642 1.3623 11.7499C1.36234 11.3358 1.69811 10.9999 2.1123 10.9999H4.86328C5.41825 10.9999 5.90743 10.6341 6.06348 10.1015L8.15723 2.94818L8.19336 2.83978Z"],"PulseElectrocardiogram/l/outline":["M8.19336 2.83978C8.59992 1.78295 10.1223 1.7875 10.5225 2.84662L10.5586 2.95599L15.3535 19.7411L17.2314 13.0107C17.5631 11.822 18.6469 10.9999 19.8809 10.9999H22.6123C23.0264 11 23.3623 11.3358 23.3623 11.7499C23.3623 12.1641 23.0265 12.4999 22.6123 12.4999H19.8809C19.3199 12.4999 18.8275 12.8738 18.6768 13.414L16.5605 20.996C16.2215 22.2109 14.5009 22.2162 14.1543 21.0038L9.35352 4.19916L7.50293 10.5224C7.15987 11.6945 6.08447 12.4999 4.86328 12.4999H2.1123C1.69809 12.4999 1.36231 12.1642 1.3623 11.7499C1.36234 11.3358 1.69811 10.9999 2.1123 10.9999H4.86328C5.41825 10.9999 5.90743 10.6341 6.06348 10.1015L8.15723 2.94818L8.19336 2.83978Z"],"PulseElectrocardiogram/m/filled":["M5.37988 1.76881C5.72221 1.0634 6.75945 1.06649 7.09766 1.7737L7.15918 1.93678L10.2344 12.6995L11.3672 8.63991C11.6035 7.79354 12.3753 7.20827 13.2539 7.20827H15.0752C15.4201 7.20851 15.7001 7.48828 15.7002 7.83327C15.7002 8.17829 15.4202 8.45802 15.0752 8.45827H13.2539C12.9361 8.45827 12.6568 8.66992 12.5713 8.97584L11.1611 14.0305C10.9012 14.962 9.58201 14.966 9.31641 14.0364L6.2334 3.24928L5.12207 7.05006C4.87777 7.88476 4.1118 8.45821 3.24219 8.45827H1.4082C1.06303 8.45827 0.783204 8.17844 0.783203 7.83327C0.783249 7.48813 1.06305 7.20827 1.4082 7.20827H3.24219C3.55673 7.20821 3.83352 7.00038 3.92188 6.6985L5.31836 1.93092L5.37988 1.76881Z"],"PulseElectrocardiogram/m/outline":["M5.37988 1.76881C5.72221 1.0634 6.75945 1.06649 7.09766 1.7737L7.15918 1.93678L10.2344 12.6995L11.3672 8.63991C11.6035 7.79354 12.3753 7.20827 13.2539 7.20827H15.0752C15.4201 7.20851 15.7001 7.48828 15.7002 7.83327C15.7002 8.17829 15.4202 8.45802 15.0752 8.45827H13.2539C12.9361 8.45827 12.6568 8.66992 12.5713 8.97584L11.1611 14.0305C10.9012 14.962 9.58201 14.966 9.31641 14.0364L6.2334 3.24928L5.12207 7.05006C4.87777 7.88476 4.1118 8.45821 3.24219 8.45827H1.4082C1.06303 8.45827 0.783204 8.17844 0.783203 7.83327C0.783249 7.48813 1.06305 7.20827 1.4082 7.20827H3.24219C3.55673 7.20821 3.83352 7.00038 3.92188 6.6985L5.31836 1.93092L5.37988 1.76881Z"],"PulseElectrocardiogram/s/filled":["M4.00781 1.31157C4.29545 0.721211 5.20563 0.766473 5.39941 1.4434L7.67578 9.4102L8.49609 6.47172C8.67715 5.8237 9.26766 5.37423 9.94043 5.37407H11.3066C11.5822 5.37433 11.8061 5.59852 11.8066 5.87407C11.8066 6.15005 11.5826 6.3738 11.3066 6.37407H9.94043C9.71637 6.37423 9.51941 6.52461 9.45898 6.74028L8.40137 10.5313C8.19793 11.2603 7.16587 11.2627 6.95801 10.5352L4.67578 2.54887L3.87207 5.29594C3.68501 5.93508 3.09844 6.37374 2.43262 6.37407H1.05664C0.780498 6.37407 0.555664 6.15021 0.555664 5.87407C0.556166 5.59835 0.780808 5.37407 1.05664 5.37407H2.43262C2.65438 5.37374 2.8498 5.22758 2.91211 5.01469L3.95898 1.43852L4.00781 1.31157Z"],"PulseElectrocardiogram/s/outline":["M4.00781 1.31157C4.29545 0.721211 5.20563 0.766473 5.39941 1.4434L7.67578 9.4102L8.49609 6.47172C8.67715 5.8237 9.26766 5.37423 9.94043 5.37407H11.3066C11.5822 5.37433 11.8061 5.59852 11.8066 5.87407C11.8066 6.15005 11.5826 6.3738 11.3066 6.37407H9.94043C9.71637 6.37423 9.51941 6.52461 9.45898 6.74028L8.40137 10.5313C8.19793 11.2603 7.16587 11.2627 6.95801 10.5352L4.67578 2.54887L3.87207 5.29594C3.68501 5.93508 3.09844 6.37374 2.43262 6.37407H1.05664C0.780498 6.37407 0.555664 6.15021 0.555664 5.87407C0.556166 5.59835 0.780808 5.37407 1.05664 5.37407H2.43262C2.65438 5.37374 2.8498 5.22758 2.91211 5.01469L3.95898 1.43852L4.00781 1.31157Z"],"Quote/l/filled":["M5.74707 4.41149C6.1519 4.17554 6.70617 3.8042 7.17383 4.12438C7.37799 4.2642 7.49992 4.49601 7.5 4.74352V10.2103H8.25C9.76874 10.2103 10.9999 11.4419 11 12.9613V17.2494C10.9997 18.7686 9.76862 20.0004 8.25 20.0004H4.75C3.23191 20.0004 2.00003 18.7703 2 17.2504V10.9603C2.00008 8.3873 3.11292 6.64858 4.22754 5.56579C4.78013 5.02899 5.33179 4.65357 5.74707 4.41149Z","M16.7471 4.41149C17.1519 4.17554 17.7061 3.80419 18.1738 4.12438C18.378 4.2642 18.4999 4.49601 18.5 4.74352V10.2103H19.25C20.7688 10.2103 21.9999 11.4419 22 12.9613V17.2494C21.9997 18.7686 20.7686 20.0004 19.25 20.0004H15.75C14.2319 20.0004 13 18.7703 13 17.2504V10.9603C13.0001 8.38728 14.1129 6.64858 15.2275 5.56579C15.7801 5.02902 16.3317 4.65357 16.7471 4.41149Z"],"Quote/l/outline":["M6.47852 4.05066C6.70921 3.96111 6.96959 3.99099 7.17383 4.13074C7.37803 4.27053 7.49996 4.50242 7.5 4.74988V10.2137H8.25C9.76859 10.2137 10.9997 11.4452 11 12.9637V17.2499C11 18.7687 9.76878 19.9999 8.25 19.9999H4.75C3.23191 19.9999 2 18.7704 2 17.2509V10.9637C2.00016 8.39178 3.11289 6.65348 4.22754 5.57117C4.7801 5.03466 5.33181 4.65982 5.74707 4.41785C5.95512 4.29664 6.13102 4.20715 6.25781 4.14734C6.32109 4.1175 6.37285 4.09492 6.41016 4.07898C6.42881 4.07101 6.44464 4.0641 6.45605 4.05945C6.46136 4.0573 6.4661 4.05601 6.46973 4.05457C6.47141 4.0539 6.47331 4.05313 6.47461 4.05262L6.47852 4.05066ZM6 6.04187C5.77065 6.2065 5.52082 6.4062 5.27246 6.64734C4.38727 7.50685 3.50016 8.8756 3.5 10.9637V17.2509C3.5 17.9406 4.05895 18.4999 4.75 18.4999H8.25C8.94036 18.4999 9.5 17.9403 9.5 17.2499V12.9637C9.4997 12.2736 8.94018 11.7137 8.25 11.7137H6.75C6.33579 11.7137 6 11.378 6 10.9637V6.04187Z","M17.4785 4.05066C17.7092 3.96111 17.9696 3.99099 18.1738 4.13074C18.378 4.27053 18.5 4.50242 18.5 4.74988V10.2137H19.25C20.7686 10.2137 21.9997 11.4452 22 12.9637V17.2499C22 18.7687 20.7688 19.9999 19.25 19.9999H15.75C14.2319 19.9999 13 18.7704 13 17.2509V10.9637C13.0002 8.39178 14.1129 6.65348 15.2275 5.57117C15.7801 5.03466 16.3318 4.65982 16.7471 4.41785C16.9551 4.29664 17.131 4.20715 17.2578 4.14734C17.3211 4.1175 17.3729 4.09492 17.4102 4.07898C17.4288 4.07101 17.4446 4.0641 17.4561 4.05945C17.4614 4.0573 17.4661 4.05601 17.4697 4.05457C17.4714 4.0539 17.4733 4.05313 17.4746 4.05262L17.4785 4.05066ZM17 6.04187C16.7706 6.2065 16.5208 6.4062 16.2725 6.64734C15.3873 7.50685 14.5002 8.8756 14.5 10.9637V17.2509C14.5 17.9406 15.0589 18.4999 15.75 18.4999H19.25C19.9404 18.4999 20.5 17.9403 20.5 17.2499V12.9637C20.4997 12.2736 19.9402 11.7137 19.25 11.7137H17.75C17.3358 11.7137 17 11.378 17 10.9637V6.04187Z"],"Quote/m/filled":["M3.83203 2.94029C4.10186 2.78298 4.47065 2.53659 4.78223 2.74986C4.91841 2.8431 5 2.99786 5 3.16294V6.8065H5.5C6.51238 6.8065 7.33277 7.62775 7.33301 8.64048V11.4989C7.33301 12.5118 6.51252 13.3329 5.5 13.3329H3.16699C2.15492 13.3329 1.33301 12.5132 1.33301 11.4999V7.30747C1.33301 5.59192 2.07521 4.4317 2.81836 3.70982C3.18682 3.35194 3.5552 3.10164 3.83203 2.94029Z","M11.165 2.94029C11.4349 2.78298 11.8045 2.53646 12.1162 2.74986C12.2522 2.84313 12.333 2.99802 12.333 3.16294V6.8065H12.833C13.8454 6.8065 14.6668 7.62775 14.667 8.64048V11.4989C14.667 12.5118 13.8455 13.3329 12.833 13.3329H10.5C9.48793 13.3329 8.66699 12.5132 8.66699 11.4999V7.30747C8.66699 5.59192 9.40823 4.4317 10.1514 3.70982C10.5199 3.35187 10.8881 3.10166 11.165 2.94029Z"],"Quote/m/outline":["M4.27344 2.58383C4.46562 2.50925 4.68239 2.53484 4.85254 2.65121C5.02277 2.76771 5.125 2.96056 5.125 3.16684V6.68441H5.5C6.5814 6.68459 7.45801 7.56192 7.45801 8.6434V11.4998C7.45792 12.5812 6.58135 13.4587 5.5 13.4588H3.16602C2.08539 13.4585 1.2081 12.5827 1.20801 11.5008V7.30941C1.20809 5.55486 1.96843 4.365 2.73047 3.62484C3.10765 3.25861 3.48498 3.00199 3.76855 2.83676C3.91036 2.75416 4.03082 2.6934 4.11816 2.65219C4.16175 2.63163 4.19841 2.61553 4.22461 2.60434C4.23722 2.59895 4.24778 2.59397 4.25586 2.59066C4.25975 2.58908 4.26381 2.58784 4.2666 2.58676L4.27051 2.58578L4.27246 2.5848L4.27344 2.58383ZM3.875 4.28012C3.78568 4.35262 3.69307 4.43247 3.60156 4.52133C3.03063 5.07579 2.45809 5.9578 2.45801 7.30941V11.5008C2.4581 11.8912 2.7746 12.2085 3.16602 12.2088H5.5C5.891 12.2087 6.20792 11.8909 6.20801 11.4998V8.6434C6.20801 8.25229 5.89106 7.93459 5.5 7.93441H4.5C4.15503 7.93423 3.87509 7.6544 3.875 7.30941V4.28012Z","M11.6074 2.58383C11.7996 2.50934 12.0164 2.5348 12.1865 2.65121C12.3566 2.76774 12.459 2.96068 12.459 3.16684V6.68441H12.834C13.9153 6.68477 14.792 7.56204 14.792 8.6434V11.4998C14.7919 12.5811 13.9152 13.4585 12.834 13.4588H10.5C9.4192 13.4587 8.54208 12.5828 8.54199 11.5008V7.30941C8.54208 5.55466 9.30233 4.36498 10.0645 3.62484C10.4418 3.25851 10.819 3.00197 11.1025 2.83676C11.2445 2.7541 11.3648 2.69338 11.4521 2.65219C11.4958 2.63159 11.5324 2.61552 11.5586 2.60434C11.5713 2.59891 11.5818 2.59396 11.5898 2.59066C11.5938 2.58906 11.5978 2.58786 11.6006 2.58676L11.6045 2.58578L11.6064 2.5848L11.6074 2.58383ZM11.209 4.28012C11.1196 4.35266 11.0271 4.43241 10.9355 4.52133C10.3645 5.07578 9.79207 5.95759 9.79199 7.30941V11.5008C9.79208 11.8913 10.1084 12.2087 10.5 12.2088H12.834C13.2248 12.2085 13.5419 11.8908 13.542 11.4998V8.6434C13.542 8.2524 13.2249 7.93477 12.834 7.93441H11.834C11.4889 7.93441 11.2091 7.65451 11.209 7.30941V4.28012Z"],"Quote/s/filled":["M2.87402 2.20533C3.07641 2.08735 3.35321 1.90275 3.58691 2.06275C3.68887 2.1327 3.75 2.24863 3.75 2.37232V5.10474H4.125C4.88439 5.10474 5.5 5.72102 5.5 6.48072V8.62428C5.5 9.38398 4.88439 10.0003 4.125 10.0003H2.375C1.61598 10.0003 1.00006 9.3852 1 8.62525V5.48072C1 4.19406 1.55689 3.32389 2.11426 2.78248C2.39053 2.51417 2.66645 2.32631 2.87402 2.20533Z","M8.37402 2.20533C8.5764 2.08735 8.85318 1.90274 9.08691 2.06275C9.18888 2.1327 9.25 2.24863 9.25 2.37232V5.10474H9.625C10.3844 5.10474 11 5.72102 11 6.48072V8.62428C11 9.38398 10.3844 10.0003 9.625 10.0003H7.875C7.11599 10.0003 6.50006 9.3852 6.5 8.62525V5.48072C6.5 4.19416 7.05598 3.3239 7.61328 2.78248C7.88968 2.51399 8.16632 2.32637 8.37402 2.20533Z"],"Quote/s/outline":["M3.19434 1.90933C3.34798 1.84974 3.52116 1.8691 3.65723 1.96207C3.79337 2.05527 3.875 2.21016 3.875 2.37515V4.98257H4.125C4.95342 4.98257 5.625 5.65413 5.625 6.48257V8.62515C5.62492 9.45353 4.95337 10.1252 4.125 10.1252H2.375C1.54718 10.1252 0.875232 9.45483 0.875 8.62613V5.48257C0.875 4.15643 1.45002 3.25623 2.02637 2.69644C2.31148 2.4196 2.59618 2.22564 2.81055 2.10074C2.91809 2.03808 3.00986 1.99237 3.07617 1.96109C3.10924 1.9455 3.13629 1.93348 3.15625 1.92496C3.16622 1.9207 3.17432 1.9168 3.18066 1.91421C3.18365 1.913 3.18634 1.91213 3.18848 1.91129L3.19434 1.90933ZM2.72363 3.41324C2.30014 3.82447 1.875 4.47872 1.875 5.48257V8.62613C1.87523 8.90163 2.09854 9.12515 2.375 9.12515H4.125C4.4011 9.12515 4.62492 8.90123 4.625 8.62515V6.48257C4.625 6.20642 4.40115 5.98257 4.125 5.98257H3.375C3.099 5.98257 2.87523 5.75852 2.875 5.48257V3.27652C2.82511 3.31882 2.77418 3.36418 2.72363 3.41324Z","M8.69434 1.90933C8.84798 1.84974 9.02116 1.8691 9.15723 1.96207C9.29337 2.05527 9.375 2.21016 9.375 2.37515V4.98257H9.625C10.4534 4.98257 11.125 5.65413 11.125 6.48257V8.62515C11.1249 9.45352 10.4534 10.1252 9.625 10.1252H7.875C7.04716 10.1252 6.37523 9.45483 6.375 8.62613V5.48257C6.375 4.15643 6.95002 3.25623 7.52637 2.69644C7.81148 2.4196 8.09618 2.22564 8.31055 2.10074C8.41809 2.03808 8.50986 1.99237 8.57617 1.96109C8.60924 1.9455 8.63629 1.93348 8.65625 1.92496C8.66622 1.9207 8.67432 1.9168 8.68066 1.91421C8.68365 1.913 8.68634 1.91213 8.68848 1.91129L8.69434 1.90933ZM8.22363 3.41324C7.80014 3.82447 7.375 4.47872 7.375 5.48257V8.62613C7.37523 8.90163 7.59853 9.12515 7.875 9.12515H9.625C9.90111 9.12515 10.1249 8.90124 10.125 8.62515V6.48257C10.125 6.20642 9.90116 5.98257 9.625 5.98257H8.875C8.599 5.98257 8.37523 5.75852 8.375 5.48257V3.27652C8.32511 3.31882 8.27418 3.36418 8.22363 3.41324Z"],"ReturnArrowCornerDownLeft/l/filled":["M18.75 4C19.9926 4.00003 21 5.00738 21 6.25V13.25C21 14.7688 19.7688 16 18.25 16H5.56055L8.28028 18.7197C8.57313 19.0126 8.57313 19.4874 8.28028 19.7803C7.98739 20.0732 7.51263 20.0732 7.21973 19.7803L3.21973 15.7803C2.92684 15.4874 2.92684 15.0126 3.21973 14.7197L7.21973 10.7197C7.51263 10.4269 7.98739 10.4268 8.28028 10.7197C8.57313 11.0126 8.57313 11.4874 8.28028 11.7803L5.56055 14.5H18.25C18.9404 14.5 19.5 13.9404 19.5 13.25V6.25C19.5 5.83581 19.1642 5.50003 18.75 5.5H14.25C13.8358 5.5 13.5 5.16421 13.5 4.75C13.5 4.33579 13.8358 4 14.25 4H18.75Z"],"ReturnArrowCornerDownLeft/l/outline":["M18.7503 5.25C19.9928 5.25017 21.0003 6.25747 21.0003 7.50001V13.25C21.0003 14.7688 19.769 15.9999 18.2503 16.0001H5.48565L8.2962 18.9864C8.57983 19.288 8.56537 19.7621 8.26397 20.046C7.96239 20.3298 7.48829 20.3152 7.2044 20.0137L3.2044 15.7637C2.93268 15.475 2.93268 15.0251 3.2044 14.7364L7.2044 10.4864C7.48829 10.1849 7.96239 10.1703 8.26397 10.4541C8.56537 10.738 8.57983 11.2121 8.2962 11.5137L5.48565 14.5H18.2503C18.9405 14.4999 19.5003 13.9403 19.5003 13.25V7.50001C19.5003 7.0859 19.1644 6.75017 18.7503 6.75001H14.2503C13.8361 6.75001 13.5003 6.41422 13.5003 6C13.5003 5.58579 13.8361 5.25 14.2503 5.25H18.7503Z"],"ReturnArrowCornerDownLeft/m/filled":["M12 2.54199C13.1735 2.54208 14.125 3.49345 14.125 4.667V8.83401C14.1247 9.91525 13.2483 10.7919 12.167 10.792H4.0097L5.60834 12.3916C5.85242 12.6357 5.85242 13.0314 5.60834 13.2754C5.36424 13.5193 4.96854 13.5194 4.72455 13.2754L2.05753 10.6084C1.81397 10.3644 1.81386 9.9686 2.05753 9.72464L4.72455 7.05764C4.9685 6.81386 5.36428 6.81404 5.60834 7.05764C5.85242 7.30172 5.85242 7.69833 5.60834 7.94241L4.00775 9.54202H12.167C12.5579 9.54193 12.8747 9.22489 12.875 8.83401V4.667C12.875 4.18381 12.4832 3.79209 12 3.792H9.49998C9.15505 3.79182 8.87514 3.51193 8.87497 3.16699C8.87497 2.82192 9.15495 2.54217 9.49998 2.54199H12Z"],"ReturnArrowCornerDownLeft/m/outline":["M11.9991 3.375C13.1727 3.375 14.1241 4.3264 14.1241 5.5V8.83301C14.1241 9.91459 13.2476 10.792 12.1661 10.792H3.94731L5.62211 12.5713C5.85849 12.8226 5.84584 13.2185 5.59477 13.4551C5.34341 13.6914 4.94844 13.679 4.71196 13.4277L2.04496 10.5947C1.81857 10.3541 1.81861 9.97892 2.04496 9.73828L4.71196 6.9043C4.94854 6.65361 5.34361 6.64174 5.59477 6.87793C5.84604 7.11442 5.85844 7.51035 5.62211 7.76172L3.94535 9.54199H12.1661C12.5573 9.54199 12.8741 9.22423 12.8741 8.83301V5.5C12.8741 5.01675 12.4823 4.625 11.9991 4.625H9.49906C9.15423 4.62459 8.87406 4.34493 8.87406 4C8.87406 3.65507 9.15423 3.37541 9.49906 3.375H11.9991Z"],"ReturnArrowCornerDownLeft/s/filled":["M8.62499 1.875C9.72954 1.87502 10.625 2.77044 10.625 3.875V6.62501C10.625 7.45344 9.95342 8.12499 9.12499 8.12501H3.08202L4.22851 9.27149C4.42375 9.46675 4.42375 9.78327 4.22851 9.97852C4.03325 10.1738 3.71674 10.1738 3.52148 9.97852L1.52148 7.97852C1.32621 7.78326 1.32621 7.46675 1.52148 7.27149L3.52148 5.27149C3.71674 5.07624 4.03325 5.07623 4.22851 5.27149C4.42375 5.46675 4.42375 5.78326 4.22851 5.97852L3.08202 7.12501H9.12499C9.40113 7.12499 9.62499 6.90115 9.62499 6.62501V3.875C9.62499 3.32273 9.17726 2.87502 8.62499 2.875H7.12499C6.84885 2.875 6.62499 2.65114 6.62499 2.375C6.62499 2.09886 6.84885 1.875 7.12499 1.875H8.62499Z"],"ReturnArrowCornerDownLeft/s/outline":["M8.62499 2.5C9.72957 2.5 10.625 3.39543 10.625 4.50001V6.62502C10.625 7.45346 9.95344 8.12502 9.125 8.12502H3.03218L4.23922 9.40726C4.42845 9.60835 4.41882 9.92504 4.21774 10.1143C4.01664 10.3035 3.69993 10.2939 3.5107 10.0928L1.51069 7.9678C1.32961 7.7753 1.32961 7.47475 1.51069 7.28225L3.5107 5.15724C3.69993 4.95618 4.01664 4.94659 4.21774 5.13575C4.41882 5.325 4.42845 5.6417 4.23922 5.84279L3.03218 7.12502H9.125C9.40116 7.12502 9.625 6.90118 9.625 6.62502V4.50001C9.625 3.94772 9.17728 3.5 8.62499 3.5H7.12498C6.8489 3.49993 6.62498 3.2761 6.62498 3C6.62498 2.7239 6.8489 2.50007 7.12498 2.5H8.62499Z"],"ScriptScrollParchment/l/filled":["M18 10V18.2496C18 19.7684 16.7688 20.9996 15.25 20.9996L5.7829 21C5.04485 21 4.33701 20.7069 3.81503 20.1851C3.29283 19.6631 3 18.9551 3 18.2175V17.2499C3 16.0072 4.0074 15 5.25 15H6V5.7464C6 5.01757 6.28957 4.31843 6.80645 3.80312C7.32262 3.28775 8.02211 3 8.75035 3H19.2497C19.2496 3 19.2498 3 19.2497 3C20.7532 3 22 4.24646 22 5.75V7.75001C22 8.99267 20.9926 10 19.75 10H18ZM18 5.75C18 5.41854 18.1317 5.10061 18.3662 4.86609C18.6003 4.63183 18.9183 4.50007 19.2497 4.5C19.9248 4.5 20.5 5.0749 20.5 5.75V7.75001C20.5 8.16421 20.1642 8.5 19.75 8.5H18V5.75ZM12.5 17.2479C12.4989 16.8347 12.1635 16.5 11.75 16.5H5.25C4.83574 16.5 4.5 16.8358 4.5 17.2499V18.2175C4.5 18.5576 4.63507 18.8839 4.8755 19.1243C5.11615 19.3648 5.44252 19.5 5.7829 19.5H12.8C12.6082 19.1249 12.5 18.6999 12.5 18.2496V17.2479Z"],"ScriptScrollParchment/l/outline":["M19.25 3C20.7535 3 22 4.24646 22 5.75V7.75C22 8.99266 20.9926 10 19.75 10H18V18.252C18 19.7692 16.7692 21 15.252 21H5.7832C5.04536 21 4.33739 20.7071 3.81543 20.1855C3.29333 19.6636 3.00007 18.9553 3 18.2178V17.25C3 16.0072 4.00788 15.0002 5.25 15H6V5.74609C6.00008 5.01724 6.28966 4.318 6.80664 3.80273C7.3227 3.28763 8.02202 3.00009 8.75 3H19.25ZM5.25 16.5C4.83565 16.5002 4.5 16.8363 4.5 17.25V18.2178C4.50007 18.5578 4.63558 18.8837 4.87598 19.124C5.11661 19.3645 5.44286 19.5 5.7832 19.5H12.8027C12.6109 19.1251 12.5 18.7018 12.5 18.252V17.25C12.5 16.8362 12.1643 16.5002 11.75 16.5H5.25ZM8.75 4.5C8.4174 4.50009 8.09965 4.63124 7.86621 4.86426L7.86523 4.86523C7.63117 5.09861 7.50008 5.41541 7.5 5.74609V15H11.75C12.9922 15.0002 14 16.0073 14 17.25V18.252C14 18.9407 14.5593 19.5 15.248 19.5H15.252C15.9407 19.5 16.5 18.9407 16.5 18.252V5.75C16.5 5.31099 16.6067 4.88369 16.8027 4.5H8.75ZM19.25 4.5C18.9185 4.5 18.6005 4.63187 18.3662 4.86621C18.1318 5.10074 18 5.41857 18 5.75V8.5H19.75C20.1642 8.5 20.5 8.1642 20.5 7.75V5.75C20.5 5.0749 19.9251 4.5 19.25 4.5Z"],"ScriptScrollParchment/m/filled":["M12 6.66667V12.1664C12 13.1789 11.1792 13.9997 10.1667 13.9997L3.85527 14C3.36323 14 2.89134 13.8046 2.54335 13.4567C2.19522 13.1087 2 12.6367 2 12.145V11.4999C2 10.6715 2.6716 10 3.5 10H4V3.83093C4 3.34505 4.19305 2.87895 4.53763 2.53541C4.88175 2.19183 5.34807 2 5.83357 2H12.8331C12.8331 2 12.8332 2 12.8331 2C13.8355 2 14.6667 2.83097 14.6667 3.83333V5.16667C14.6667 5.99511 13.9951 6.66667 13.1667 6.66667H12ZM12 3.83333C12 3.61236 12.0878 3.40041 12.2441 3.24406C12.4002 3.08789 12.6122 3.00005 12.8331 3C13.2832 3 13.6667 3.38327 13.6667 3.83333V5.16667C13.6667 5.44281 13.4428 5.66667 13.1667 5.66667H12V3.83333ZM8.33333 11.4986C8.3326 11.2231 8.109 11 7.83333 11H3.5C3.22383 11 3 11.2239 3 11.4999V12.145C3 12.3717 3.09005 12.5893 3.25033 12.7495C3.41077 12.9099 3.62835 13 3.85527 13H8.53333C8.40547 12.7499 8.33333 12.4666 8.33333 12.1664V11.4986Z"],"ScriptScrollParchment/m/outline":["M12.958 1.88086C13.9724 1.94663 14.7918 2.80376 14.792 3.83301V5.16699C14.7918 6.06422 14.0642 6.79182 13.167 6.79199H12.125V12.168C12.1248 13.2066 11.3146 14.0541 10.292 14.1182V14.125H3.85547C3.33035 14.125 2.82651 13.9162 2.45508 13.5449C2.0836 13.1735 1.875 12.6693 1.875 12.1445V11.5C1.87518 10.6025 2.60305 9.87515 3.5 9.875H3.875V3.83105C3.875 3.3119 4.08095 2.81334 4.44922 2.44629L4.4502 2.44727C4.81783 2.08035 5.31567 1.875 5.83398 1.875H12.958V1.88086ZM3.5 11.125C3.29286 11.1252 3.12518 11.2934 3.125 11.5V12.1445C3.125 12.3381 3.20214 12.5244 3.33887 12.6611C3.47582 12.7979 3.66179 12.875 3.85547 12.875H8.3418C8.25664 12.6556 8.20804 12.4174 8.20801 12.168V11.5C8.20783 11.2933 8.0402 11.125 7.83301 11.125H3.5ZM5.83398 3.125C5.69223 3.125 5.55472 3.16645 5.43945 3.24316L5.33203 3.33203C5.19944 3.46419 5.125 3.64365 5.125 3.83105V9.875H7.83301C8.73012 9.875 9.45783 10.6025 9.45801 11.5V12.168C9.45817 12.5579 9.77512 12.8748 10.165 12.875H10.168C10.558 12.875 10.8748 12.558 10.875 12.168V3.83301C10.875 3.58822 10.9229 3.3489 11.0098 3.125H5.83398ZM12.833 3.125C12.6453 3.12509 12.4647 3.19933 12.332 3.33203C12.1993 3.46488 12.1251 3.64535 12.125 3.83301V5.54199H13.167C13.3738 5.54182 13.5418 5.37383 13.542 5.16699V3.83301C13.5418 3.45212 13.2139 3.125 12.833 3.125Z"],"ScriptScrollParchment/s/filled":["M9 5V9.1248C9 9.8842 8.3844 10.4998 7.625 10.4998L2.89145 10.5C2.52242 10.5 2.16851 10.3534 1.90752 10.0926C1.64642 9.83155 1.5 9.47755 1.5 9.10875V8.62495C1.5 8.0036 2.0037 7.5 2.625 7.5H3V2.8732C3 2.50879 3.14478 2.15921 3.40322 1.90156C3.66131 1.64387 4.01105 1.5 4.37517 1.5H9.62485C9.6248 1.5 9.6249 1.5 9.62485 1.5C10.3766 1.5 11 2.12323 11 2.875V3.87501C11 4.49634 10.4963 5 9.875 5H9ZM9 2.875C9 2.70927 9.06585 2.5503 9.1831 2.43304C9.30015 2.31591 9.45915 2.25003 9.62485 2.25C9.9624 2.25 10.25 2.53745 10.25 2.875V3.87501C10.25 4.0821 10.0821 4.25 9.875 4.25H9V2.875ZM6.25 8.62395C6.24945 8.41735 6.08175 8.25 5.875 8.25H2.625C2.41787 8.25 2.25 8.4179 2.25 8.62495V9.10875C2.25 9.2788 2.31754 9.44195 2.43775 9.56215C2.55808 9.6824 2.72126 9.75 2.89145 9.75H6.4C6.3041 9.56245 6.25 9.34995 6.25 9.1248V8.62395Z"],"ScriptScrollParchment/s/outline":["M9.75 1.38086C10.5136 1.44559 11.125 2.09627 11.125 2.875V3.875C11.125 4.56537 10.5653 5.125 9.875 5.125H9.125V9.12598C9.125 9.91182 8.5196 10.555 7.75 10.6182V10.625H2.8916C2.48944 10.625 2.10378 10.465 1.81934 10.1807C1.53481 9.8962 1.375 9.51032 1.375 9.1084V8.625C1.375 7.93451 1.93496 7.37511 2.625 7.375H2.875V2.87305C2.87504 2.47545 3.03337 2.09362 3.31543 1.8125C3.59697 1.53169 3.97825 1.37505 4.375 1.375H9.75V1.38086ZM2.625 8.375C2.48681 8.37511 2.375 8.48723 2.375 8.625V9.1084C2.375 9.24536 2.42961 9.37691 2.52637 9.47363C2.62324 9.57044 2.75457 9.625 2.8916 9.625H6.21191C6.15666 9.46873 6.125 9.30112 6.125 9.12598V8.625C6.125 8.48718 6.01314 8.37511 5.875 8.375H2.625ZM4.375 2.375C4.24169 2.37505 4.11465 2.42756 4.02148 2.52051C3.92797 2.61372 3.87504 2.74084 3.875 2.87305V7.375H5.875C6.56508 7.37511 7.125 7.93455 7.125 8.625V9.12598C7.125 9.40133 7.34867 9.625 7.62402 9.625H7.62598C7.90133 9.625 8.125 9.40133 8.125 9.12598V2.875C8.125 2.70277 8.15644 2.53426 8.21289 2.375H4.375ZM9.625 2.375C9.49239 2.375 9.36519 2.42776 9.27148 2.52148C9.17771 2.61533 9.125 2.74246 9.125 2.875V4.125H9.875C10.0131 4.125 10.125 4.01306 10.125 3.875V2.875C10.125 2.60649 9.89351 2.375 9.625 2.375Z"],"Search/l/filled":["M11 6C13.7614 6 16 8.23858 16 11C16 13.7614 13.7614 16 11 16C8.23858 16 6 13.7614 6 11C6 8.23858 8.23858 6 11 6Z","M11 3C15.4183 3 19 6.58172 19 11C19 12.9388 18.3093 14.7173 17.1621 16.1016L20.7803 19.7197C21.0732 20.0126 21.0732 20.4874 20.7803 20.7803C20.4874 21.0732 20.0126 21.0732 19.7197 20.7803L16.1016 17.1621C14.7173 18.3093 12.9388 19 11 19C6.58172 19 3 15.4183 3 11C3 6.58172 6.58172 3 11 3ZM11 4.5C7.41015 4.5 4.5 7.41015 4.5 11C4.5 14.5899 7.41015 17.5 11 17.5C12.7951 17.5 14.4196 16.7738 15.5967 15.5967C16.7738 14.4196 17.5 12.7951 17.5 11C17.5 7.41015 14.5899 4.5 11 4.5Z"],"Search/l/outline":["M17.5 11C17.5 7.41015 14.5899 4.5 11 4.5C7.41015 4.5 4.5 7.41015 4.5 11C4.5 14.5899 7.41015 17.5 11 17.5C12.7951 17.5 14.4186 16.7728 15.5957 15.5957C16.7728 14.4186 17.5 12.7951 17.5 11ZM19 11C19 12.9385 18.309 14.7163 17.1621 16.1006L20.7803 19.7197C21.0732 20.0126 21.0732 20.4874 20.7803 20.7803C20.4874 21.0732 20.0126 21.0732 19.7197 20.7803L16.1006 17.1621C14.7163 18.309 12.9385 19 11 19C6.58173 19 3 15.4183 3 11C3 6.58173 6.58173 3 11 3C15.4183 3 19 6.58173 19 11Z"],"Search/m/filled":["M7.33301 4C9.17383 4 10.6668 5.49221 10.667 7.33301C10.667 9.17394 9.17394 10.667 7.33301 10.667C5.49221 10.6668 4 9.17383 4 7.33301C4.00018 5.49232 5.49232 4.00018 7.33301 4Z","M7.33301 2C10.2784 2 12.6668 4.38764 12.667 7.33301C12.667 8.62554 12.2062 9.81151 11.4414 10.7344L13.8535 13.1465C14.0488 13.3418 14.0488 13.6582 13.8535 13.8535C13.6582 14.0488 13.3418 14.0488 13.1465 13.8535L10.7344 11.4414C9.81151 12.2062 8.62554 12.667 7.33301 12.667C4.38764 12.6668 2 10.2784 2 7.33301C2.00018 4.38775 4.38775 2.00018 7.33301 2ZM7.33301 3C4.94003 3.00018 3.00018 4.94003 3 7.33301C3 9.72617 4.93992 11.6668 7.33301 11.667C8.52974 11.667 9.61273 11.1822 10.3975 10.3975C11.1822 9.61273 11.667 8.52974 11.667 7.33301C11.6668 4.93992 9.72617 3 7.33301 3Z"],"Search/m/outline":["M11.542 7.33301C11.5418 5.00896 9.65712 3.125 7.33301 3.125C5.00907 3.12518 3.12518 5.00907 3.125 7.33301C3.125 9.65712 5.00896 11.5418 7.33301 11.542C8.49525 11.542 9.54634 11.0708 10.3086 10.3086C11.0708 9.54634 11.542 8.49525 11.542 7.33301ZM12.792 7.33301C12.792 8.6145 12.3477 9.7925 11.6084 10.7236L13.9424 13.0576C14.1865 13.3017 14.1865 13.6983 13.9424 13.9424C13.6983 14.1865 13.3017 14.1865 13.0576 13.9424L10.7236 11.6084C9.7925 12.3477 8.6145 12.792 7.33301 12.792C4.31861 12.7918 1.875 10.3475 1.875 7.33301C1.87518 4.31871 4.31871 1.87518 7.33301 1.875C10.3475 1.875 12.7918 4.31861 12.792 7.33301Z"],"Search/s/filled":["M5.5 3C6.8807 3 8 4.11929 8 5.5C8 6.8807 6.8807 8 5.5 8C4.11929 8 3 6.8807 3 5.5C3 4.11929 4.11929 3 5.5 3Z","M5.5 1.5C7.70915 1.5 9.5 3.29086 9.5 5.5C9.5 6.4694 9.15465 7.35863 8.58105 8.05078L10.3906 9.85938C10.5371 10.0058 10.5371 10.2442 10.3906 10.3906C10.2442 10.5371 10.0058 10.5371 9.85938 10.3906L8.05078 8.58105C7.35863 9.15465 6.4694 9.5 5.5 9.5C3.29086 9.5 1.5 7.70915 1.5 5.5C1.5 3.29086 3.29086 1.5 5.5 1.5ZM5.5 2.25C3.70508 2.25 2.25 3.70508 2.25 5.5C2.25 7.29495 3.70508 8.75 5.5 8.75C6.39755 8.75 7.2093 8.3864 7.79785 7.79785C8.3864 7.2093 8.75 6.39755 8.75 5.5C8.75 3.70508 7.29495 2.25 5.5 2.25Z"],"Search/s/outline":["M8.625 5.5C8.625 3.77411 7.22591 2.375 5.5 2.375C3.77411 2.375 2.375 3.77411 2.375 5.5C2.375 7.22591 3.77411 8.625 5.5 8.625C6.36306 8.625 7.14389 8.27603 7.70996 7.70996C8.27603 7.14389 8.625 6.36306 8.625 5.5ZM9.625 5.5C9.625 6.45858 9.2955 7.33977 8.74707 8.04004L10.4785 9.77148C10.6738 9.96675 10.6738 10.2833 10.4785 10.4785C10.2833 10.6738 9.96675 10.6738 9.77148 10.4785L8.04004 8.74707C7.33977 9.2955 6.45858 9.625 5.5 9.625C3.22183 9.625 1.375 7.77819 1.375 5.5C1.375 3.22183 3.22183 1.375 5.5 1.375C7.77819 1.375 9.625 3.22183 9.625 5.5Z"],"Server/l/filled":["M22 17C22 18.6569 20.6569 20 19 20H5C3.34315 20 2 18.6569 2 17V12.75H22V17ZM5.5 15.75C5.08579 15.75 4.75 16.0858 4.75 16.5C4.75 16.9142 5.08579 17.25 5.5 17.25C5.91421 17.25 6.25 16.9142 6.25 16.5C6.25 16.0858 5.91421 15.75 5.5 15.75Z","M19 4C20.6569 4 22 5.34315 22 7V11.25H2V7C2 5.34315 3.34315 4 5 4H19ZM5.5 6.75C5.08579 6.75 4.75 7.08579 4.75 7.5C4.75 7.91421 5.08579 8.25 5.5 8.25C5.91421 8.25 6.25 7.91421 6.25 7.5C6.25 7.08579 5.91421 6.75 5.5 6.75Z"],"Server/l/outline":["M6.5 14.625C7.05228 14.625 7.5 15.0727 7.5 15.625C7.5 16.1773 7.05228 16.625 6.5 16.625C5.94772 16.625 5.5 16.1773 5.5 15.625C5.5 15.0727 5.94772 14.625 6.5 14.625Z","M6.5 7.375C7.05228 7.375 7.5 7.82272 7.5 8.375C7.5 8.92728 7.05228 9.375 6.5 9.375C5.94772 9.375 5.5 8.92728 5.5 8.375C5.5 7.82272 5.94772 7.375 6.5 7.375Z","M19.25 4C20.7688 4 22 5.23122 22 6.75V17.25C22 18.7688 20.7688 20 19.25 20H4.75C3.23122 20 2 18.7688 2 17.25V6.75C2 5.23122 3.23122 4 4.75 4H19.25ZM3.5 17.25C3.5 17.9404 4.05964 18.5 4.75 18.5H19.25C19.9404 18.5 20.5 17.9404 20.5 17.25V12.75H3.5V17.25ZM4.75 5.5C4.05964 5.5 3.5 6.05964 3.5 6.75V11.25H20.5V6.75C20.5 6.05964 19.9404 5.5 19.25 5.5H4.75Z"],"Server/m/filled":["M14.667 11.333C14.667 12.4375 13.7715 13.3329 12.667 13.333H3.33301C2.22861 13.3328 1.33301 12.4375 1.33301 11.333V8.5H14.667V11.333ZM3.66699 10.5C3.39085 10.5 3.16699 10.7239 3.16699 11C3.16699 11.2761 3.39085 11.5 3.66699 11.5C3.943 11.4998 4.16699 11.276 4.16699 11C4.16699 10.724 3.943 10.5002 3.66699 10.5Z","M12.667 2.66699C13.7715 2.66715 14.667 3.56252 14.667 4.66699V7.5H1.33301V4.66699C1.33301 3.56255 2.22861 2.66719 3.33301 2.66699H12.667ZM3.66699 4.5C3.39085 4.5 3.16699 4.72386 3.16699 5C3.167 5.27614 3.39086 5.5 3.66699 5.5C3.943 5.49985 4.16699 5.27604 4.16699 5C4.16699 4.72395 3.943 4.50015 3.66699 4.5Z"],"Server/m/outline":["M4.33301 9.66602C4.747 9.66602 5.08265 10.0021 5.08301 10.416C5.08301 10.8302 4.74722 11.166 4.33301 11.166C3.91896 11.1658 3.58301 10.8301 3.58301 10.416C3.58336 10.0022 3.91918 9.66621 4.33301 9.66602Z","M4.33301 4.83301C4.74711 4.83301 5.08283 5.16895 5.08301 5.58301C5.08301 5.99722 4.74722 6.33301 4.33301 6.33301C3.91897 6.33281 3.58301 5.9971 3.58301 5.58301C3.58319 5.16907 3.91908 4.83321 4.33301 4.83301Z","M12.833 2.54199C13.9145 2.54199 14.7908 3.4186 14.791 4.5V11.5C14.791 12.5816 13.9146 13.458 12.833 13.458H3.16602C2.08478 13.4576 1.20801 12.5814 1.20801 11.5V4.5C1.20818 3.41882 2.08488 2.54237 3.16602 2.54199H12.833ZM2.45801 11.5C2.45801 11.891 2.77513 12.2076 3.16602 12.208H12.833C13.2242 12.208 13.541 11.8912 13.541 11.5V8.625H2.45801V11.5ZM3.16602 3.79199C2.77524 3.79237 2.45818 4.10918 2.45801 4.5V7.375H13.541V4.5C13.5408 4.10894 13.2241 3.79199 12.833 3.79199H3.16602Z"],"Server/s/filled":["M11 8.5C11 9.32845 10.3285 10 9.5 10H2.5C1.67158 10 1 9.32845 1 8.5V6.375H11V8.5ZM2.75 7.875C2.54289 7.875 2.375 8.0429 2.375 8.25C2.375 8.4571 2.54289 8.625 2.75 8.625C2.95711 8.625 3.125 8.4571 3.125 8.25C3.125 8.0429 2.95711 7.875 2.75 7.875Z","M9.5 2C10.3285 2 11 2.67158 11 3.5V5.625H1V3.5C1 2.67158 1.67158 2 2.5 2H9.5ZM2.75 3.375C2.54289 3.375 2.375 3.54289 2.375 3.75C2.375 3.95711 2.54289 4.125 2.75 4.125C2.95711 4.125 3.125 3.95711 3.125 3.75C3.125 3.54289 2.95711 3.375 2.75 3.375Z"],"Server/s/outline":["M3.25 7.1875C3.59518 7.1875 3.875 7.46733 3.875 7.8125C3.875 8.15767 3.59518 8.4375 3.25 8.4375C2.90482 8.4375 2.625 8.15767 2.625 7.8125C2.625 7.46733 2.90482 7.1875 3.25 7.1875Z","M3.25 3.5625C3.59518 3.5625 3.875 3.84232 3.875 4.1875C3.875 4.53268 3.59518 4.8125 3.25 4.8125C2.90482 4.8125 2.625 4.53268 2.625 4.1875C2.625 3.84232 2.90482 3.5625 3.25 3.5625Z","M9.625 1.875C10.4534 1.875 11.125 2.54658 11.125 3.375V8.625C11.125 9.45344 10.4534 10.125 9.625 10.125H2.375C1.54658 10.125 0.875 9.45345 0.875 8.625V3.375C0.875 2.54657 1.54657 1.875 2.375 1.875H9.625ZM1.875 8.625C1.875 8.90115 2.09885 9.125 2.375 9.125H9.625C9.90116 9.125 10.125 8.90116 10.125 8.625V6.5H1.875V8.625ZM2.375 2.875C2.09886 2.875 1.875 3.09886 1.875 3.375V5.5H10.125V3.375C10.125 3.09885 9.90115 2.875 9.625 2.875H2.375Z"],"Settings2Sliders/l/filled":["M7 3C7.41421 3 7.75 3.33579 7.75 3.75V5.07031C9.60108 5.42119 11 7.04653 11 9C11 10.9535 9.60108 12.5788 7.75 12.9297V20.25C7.75 20.6642 7.41421 21 7 21C6.58579 21 6.25 20.6642 6.25 20.25V12.9297C4.39892 12.5788 3 10.9535 3 9C3 7.04653 4.39892 5.42119 6.25 5.07031V3.75C6.25 3.33579 6.58579 3 7 3ZM17 3C17.4142 3 17.75 3.33579 17.75 3.75V13.0703C19.6011 13.4212 21 15.0465 21 17C21 19.2098 19.2098 21 17 21C14.7902 21 13 19.2098 13 17C13 15.0465 14.3989 13.4212 16.25 13.0703V3.75C16.25 3.33579 16.5858 3 17 3Z"],"Settings2Sliders/l/outline":["M7 3C7.41421 3 7.75 3.33579 7.75 3.75V5.07031C9.60108 5.42119 11 7.04654 11 9C11 10.9534 9.60099 12.5778 7.75 12.9287V20.25C7.75 20.6642 7.41421 21 7 21C6.58579 21 6.25 20.6642 6.25 20.25V12.9287C4.39901 12.5778 3 10.9534 3 9C3 7.04654 4.39892 5.42119 6.25 5.07031V3.75C6.25 3.33579 6.58579 3 7 3ZM17 3C17.4142 3 17.75 3.33579 17.75 3.75V13.0703C19.6011 13.4212 21 15.0466 21 17C21 19.2098 19.2098 21 17 21C14.7902 21 13 19.2098 13 17C13 15.0466 14.3989 13.4212 16.25 13.0703V3.75C16.25 3.33579 16.5858 3 17 3ZM17 14.5C15.6186 14.5 14.5 15.6186 14.5 17C14.5 18.3814 15.6186 19.5 17 19.5C18.3814 19.5 19.5 18.3814 19.5 17C19.5 15.6186 18.3814 14.5 17 14.5ZM7 6.5C5.61859 6.5 4.5 7.61859 4.5 9C4.5 10.3814 5.6186 11.5 7 11.5C8.3814 11.5 9.5 10.3814 9.5 9C9.5 7.61859 8.38141 6.5 7 6.5Z"],"Settings2Sliders/m/filled":["M4.66699 2C4.94298 2.00018 5.16699 2.22397 5.16699 2.5V3.37988C6.40092 3.6139 7.33301 4.69778 7.33301 6C7.33301 7.30223 6.40092 8.38607 5.16699 8.62012V13.5C5.16699 13.776 4.94298 13.9998 4.66699 14C4.39085 14 4.16699 13.7761 4.16699 13.5V8.62012C2.93293 8.38618 2 7.30233 2 6C2 4.69768 2.93293 3.61379 4.16699 3.37988V2.5C4.16699 2.22386 4.39085 2 4.66699 2ZM11.333 2C11.6091 2 11.833 2.22386 11.833 2.5V8.71387C13.067 8.94778 13.9998 10.0308 14 11.333C14 12.8062 12.8062 14 11.333 14C9.85996 13.9998 8.66699 12.8061 8.66699 11.333C8.66715 10.031 9.59924 8.94794 10.833 8.71387V2.5C10.833 2.22397 11.057 2.00018 11.333 2Z"],"Settings2Sliders/m/outline":["M4.66699 1.875C5.01202 1.87518 5.29199 2.15493 5.29199 2.5V3.28027C6.5328 3.56419 7.45801 4.67287 7.45801 6C7.45801 7.32704 6.5327 8.43475 5.29199 8.71875V13.5C5.29199 13.8451 5.01202 14.1248 4.66699 14.125C4.32181 14.125 4.04199 13.8452 4.04199 13.5V8.71875C2.80097 8.43498 1.875 7.32726 1.875 6C1.875 4.67265 2.80087 3.56397 4.04199 3.28027V2.5C4.04199 2.15482 4.32181 1.875 4.66699 1.875ZM4.66699 4.45801C3.81509 4.45801 3.125 5.1481 3.125 6C3.125 6.85189 3.81509 7.54199 4.66699 7.54199C5.51874 7.54182 6.20801 6.85178 6.20801 6C6.20801 5.14821 5.51874 4.45818 4.66699 4.45801Z","M11.334 1.875C11.6789 1.87535 11.959 2.15504 11.959 2.5V8.61426C13.1995 8.89833 14.1248 10.0062 14.125 11.333C14.125 12.875 12.8759 14.1246 11.334 14.125C9.79174 14.125 8.54199 12.8753 8.54199 11.333C8.54214 10.0059 9.46804 8.89798 10.709 8.61426V2.5C10.709 2.15482 10.9888 1.875 11.334 1.875ZM11.334 9.79199C10.4822 9.79199 9.79217 10.4813 9.79199 11.333C9.79199 12.1849 10.4821 12.875 11.334 12.875C12.1856 12.8746 12.875 12.1847 12.875 11.333C12.8748 10.4815 12.1855 9.79234 11.334 9.79199Z"],"Settings2Sliders/s/filled":["M3.5 1.5C3.7071 1.5 3.875 1.6679 3.875 1.875V2.53516C4.80054 2.71059 5.5 3.52327 5.5 4.5C5.5 5.47674 4.80054 6.28939 3.875 6.46484V10.125C3.875 10.3321 3.7071 10.5 3.5 10.5C3.29289 10.5 3.125 10.3321 3.125 10.125V6.46484C2.19946 6.28939 1.5 5.47674 1.5 4.5C1.5 3.52327 2.19946 2.71059 3.125 2.53516V1.875C3.125 1.6679 3.29289 1.5 3.5 1.5ZM8.5 1.5C8.7071 1.5 8.875 1.6679 8.875 1.875V6.53516C9.80054 6.71061 10.5 7.52326 10.5 8.5C10.5 9.6049 9.6049 10.5 8.5 10.5C7.3951 10.5 6.5 9.6049 6.5 8.5C6.5 7.52326 7.19946 6.71061 8.125 6.53516V1.875C8.125 1.6679 8.2929 1.5 8.5 1.5Z"],"Settings2Sliders/s/outline":["M3.5 1.375C3.77614 1.375 4 1.59886 4 1.875V2.43555C4.93237 2.66041 5.625 3.4984 5.625 4.5C5.625 5.50151 4.93226 6.33853 4 6.56348V10.125C4 10.4011 3.77614 10.625 3.5 10.625C3.22386 10.625 3 10.4011 3 10.125V6.56348C2.06774 6.33853 1.375 5.50151 1.375 4.5C1.375 3.4984 2.06763 2.66041 3 2.43555V1.875C3 1.59886 3.22386 1.375 3.5 1.375ZM8.5 1.375C8.77614 1.375 9 1.59886 9 1.875V6.43555C9.93237 6.66041 10.625 7.4984 10.625 8.5C10.625 9.67394 9.67394 10.625 8.5 10.625C7.32606 10.625 6.375 9.67394 6.375 8.5C6.375 7.4984 7.06763 6.66041 8 6.43555V1.875C8 1.59886 8.22386 1.375 8.5 1.375ZM8.5 7.375C7.87834 7.375 7.375 7.87834 7.375 8.5C7.375 9.12166 7.87834 9.625 8.5 9.625C9.12166 9.625 9.625 9.12166 9.625 8.5C9.625 7.87834 9.12166 7.375 8.5 7.375ZM3.5 3.375C2.87833 3.375 2.375 3.87833 2.375 4.5C2.375 5.12166 2.87833 5.625 3.5 5.625C4.12167 5.625 4.625 5.12166 4.625 4.5C4.625 3.87833 4.12167 3.375 3.5 3.375Z"],"SettingsGear2/l/filled":["M9.9945 3.10362C10.4541 2.41414 11.2279 2 12.0566 2C12.8853 2 13.6591 2.41414 14.1187 3.10362L14.6888 3.95875C14.9772 4.39137 15.5033 4.60027 16.01 4.48336L16.7132 4.32107C17.5599 4.12568 18.4475 4.38025 19.0619 4.99467C19.6764 5.6091 19.9309 6.4967 19.7355 7.34338L19.5732 8.04664C19.4563 8.55327 19.6652 9.07937 20.0979 9.36778L20.953 9.93786C21.6425 10.3975 22.0566 11.1713 22.0566 12C22.0566 12.8287 21.6425 13.6025 20.953 14.0621L20.0979 14.6322C19.6652 14.9206 19.4563 15.4467 19.5732 15.9534L19.7355 16.6566C19.9309 17.5033 19.6764 18.3909 19.0619 19.0053C18.4475 19.6198 17.5599 19.8743 16.7132 19.6789L16.01 19.5166C15.5033 19.3997 14.9772 19.6086 14.6888 20.0413L14.1187 20.8964C13.6591 21.5859 12.8853 22 12.0566 22C11.2279 22 10.4541 21.5859 9.9945 20.8964L9.42442 20.0413C9.13601 19.6086 8.60991 19.3997 8.10328 19.5166L7.40002 19.6789C6.55334 19.8743 5.66574 19.6198 5.05131 19.0053C4.43689 18.3909 4.18232 17.5033 4.37771 16.6566L4.54 15.9534C4.65691 15.4467 4.44801 14.9206 4.01539 14.6322L3.16026 14.0621C2.47078 13.6025 2.05664 12.8287 2.05664 12C2.05664 11.1713 2.47078 10.3975 3.16026 9.93786L4.01539 9.36778C4.44801 9.07937 4.65691 8.55327 4.54 8.04664L4.37771 7.34338C4.18232 6.49671 4.43688 5.6091 5.05131 4.99467C5.66574 4.38024 6.55334 4.12568 7.40002 4.32107L8.10328 4.48336C8.60991 4.60027 9.13601 4.39137 9.42442 3.95875L9.9945 3.10362ZM8.93164 12C8.93164 10.2741 10.3307 8.875 12.0566 8.875C13.7825 8.875 15.1816 10.2741 15.1816 12C15.1816 13.7259 13.7825 15.125 12.0566 15.125C10.3307 15.125 8.93164 13.7259 8.93164 12Z"],"SettingsGear2/l/outline":["M12.0566 2C12.8853 2 13.6595 2.41408 14.1191 3.10352L14.6885 3.95898C14.9768 4.39149 15.5032 4.60021 16.0098 4.4834L16.7129 4.32129C17.5596 4.1259 18.4471 4.38073 19.0615 4.99512C19.676 5.60955 19.9308 6.49704 19.7354 7.34375L19.5732 8.04688C19.4565 8.55349 19.6651 9.07983 20.0977 9.36816L20.9531 9.9375L21.0791 10.0273C21.6927 10.4941 22.0566 11.223 22.0566 12C22.0566 12.777 21.6927 13.5059 21.0791 13.9727L20.9531 14.0625L20.0977 14.6318C19.6652 14.9201 19.4565 15.4465 19.5732 15.9531L19.7354 16.6562C19.9308 17.503 19.676 18.3904 19.0615 19.0049C18.4471 19.6193 17.5596 19.8742 16.7129 19.6787L16.0098 19.5166C15.5031 19.3998 14.9767 19.6086 14.6885 20.041L14.1191 20.8965C13.6595 21.5859 12.8853 22 12.0566 22C11.2797 22 10.5508 21.6361 10.084 21.0225L9.99414 20.8965L9.4248 20.041C9.17251 19.6626 8.73794 19.456 8.29395 19.4883L8.10352 19.5166L7.40039 19.6787C6.55368 19.8742 5.66619 19.6193 5.05176 19.0049C4.43737 18.3905 4.18254 17.5029 4.37793 16.6562L4.54004 15.9531C4.65685 15.4466 4.44813 14.9201 4.01562 14.6318L3.16016 14.0625C2.47073 13.6028 2.05664 12.8287 2.05664 12C2.05664 11.1713 2.47073 10.3972 3.16016 9.9375L4.01562 9.36816C4.44818 9.07979 4.65684 8.55342 4.54004 8.04688L4.37793 7.34375C4.18254 6.49707 4.43734 5.60954 5.05176 4.99512C5.66618 4.3807 6.55371 4.1259 7.40039 4.32129L8.10352 4.4834C8.61006 4.6002 9.13643 4.39154 9.4248 3.95898L9.99414 3.10352C10.4538 2.41408 11.2279 2 12.0566 2ZM12.0566 3.5C11.7295 3.5 11.4237 3.6633 11.2422 3.93555L10.6729 4.79102C10.0383 5.74277 8.88021 6.20254 7.76562 5.94531L7.0625 5.78223C6.71986 5.70327 6.36095 5.80702 6.1123 6.05566C5.86366 6.30431 5.75991 6.66322 5.83887 7.00586L6.00195 7.70898C6.25918 8.82357 5.79941 9.98171 4.84766 10.6162L3.99219 11.1855C3.71994 11.3671 3.55664 11.6729 3.55664 12C3.55664 12.3271 3.71994 12.6329 3.99219 12.8145L4.84766 13.3838C5.79946 14.0183 6.25917 15.1765 6.00195 16.291L5.83887 16.9941C5.7599 17.3368 5.86363 17.6956 6.1123 17.9443C6.36095 18.193 6.71988 18.2968 7.0625 18.2178L7.76562 18.0547C8.88013 17.7976 10.0383 18.2572 10.6729 19.209L11.2422 20.0645C11.4237 20.3367 11.7295 20.5 12.0566 20.5C12.3838 20.5 12.6896 20.3367 12.8711 20.0645L13.4404 19.209C14.0749 18.2571 15.2332 17.7976 16.3477 18.0547L17.0508 18.2178C17.3934 18.2968 17.7523 18.193 18.001 17.9443C18.2497 17.6956 18.3534 17.3367 18.2744 16.9941L18.1113 16.291C17.8542 15.1765 18.3138 14.0183 19.2656 13.3838L20.1211 12.8145C20.3933 12.6329 20.5566 12.3271 20.5566 12C20.5566 11.6729 20.3933 11.3671 20.1211 11.1855L19.2656 10.6162C18.3138 9.98168 17.8542 8.82349 18.1113 7.70898L18.2744 7.00586C18.3534 6.66325 18.2496 6.30431 18.001 6.05566C17.7523 5.80699 17.3934 5.70326 17.0508 5.78223L16.3477 5.94531C15.2331 6.20253 14.0749 5.74282 13.4404 4.79102L12.8711 3.93555C12.6896 3.6633 12.3837 3.5 12.0566 3.5ZM12.0566 8.5C13.9897 8.5 15.5566 10.067 15.5566 12C15.5566 13.933 13.9897 15.5 12.0566 15.5C10.1236 15.5 8.55664 13.933 8.55664 12C8.55664 10.067 10.1236 8.5 12.0566 8.5ZM12.0566 10C10.9521 10 10.0566 10.8954 10.0566 12C10.0566 13.1046 10.9521 14 12.0566 14C13.1612 14 14.0566 13.1046 14.0566 12C14.0566 10.8954 13.1612 10 12.0566 10Z"],"SettingsGear2/m/filled":["M6.663 2.06906C6.96943 1.60941 7.48529 1.33331 8.03776 1.33331C8.59023 1.33331 9.10609 1.60941 9.41249 2.06906L9.79256 2.63915C9.98483 2.92756 10.3356 3.06683 10.6734 2.98889L11.1422 2.88069C11.7066 2.75043 12.2984 2.92015 12.708 3.32976C13.1176 3.73938 13.2873 4.33111 13.157 4.89557L13.0488 5.36441C12.9709 5.70216 13.1102 6.05289 13.3986 6.24517L13.9687 6.62522C14.4284 6.93165 14.7044 7.44751 14.7044 7.99998C14.7044 8.55245 14.4284 9.06831 13.9687 9.37471L13.3986 9.75478C13.1102 9.94705 12.9709 10.2978 13.0488 10.6356L13.157 11.1044C13.2873 11.6688 13.1176 12.2606 12.708 12.6702C12.2984 13.0798 11.7066 13.2495 11.1422 13.1192L10.6734 13.011C10.3356 12.9331 9.98483 13.0724 9.79256 13.3608L9.41249 13.9309C9.10609 14.3906 8.59023 14.6666 8.03776 14.6666C7.48529 14.6666 6.96943 14.3906 6.663 13.9309L6.28295 13.3608C6.09067 13.0724 5.73994 12.9331 5.40219 13.011L4.93335 13.1192C4.36889 13.2495 3.77716 13.0798 3.36754 12.6702C2.95793 12.2606 2.78821 11.6688 2.91847 11.1044L3.02667 10.6356C3.10461 10.2978 2.96534 9.94705 2.67693 9.75478L2.10684 9.37471C1.64719 9.06831 1.37109 8.55245 1.37109 7.99998C1.37109 7.44751 1.64719 6.93165 2.10684 6.62522L2.67693 6.24517C2.96534 6.05289 3.10461 5.70216 3.02667 5.36441L2.91847 4.89557C2.78821 4.33112 2.95792 3.73938 3.36754 3.32976C3.77716 2.92014 4.36889 2.75043 4.93335 2.88069L5.40219 2.98889C5.73994 3.06683 6.09067 2.92756 6.28295 2.63915L6.663 2.06906ZM5.95443 7.99998C5.95443 6.84938 6.88716 5.91665 8.03776 5.91665C9.18836 5.91665 10.1211 6.84938 10.1211 7.99998C10.1211 9.15058 9.18836 10.0833 8.03776 10.0833C6.88716 10.0833 5.95443 9.15058 5.95443 7.99998Z"],"SettingsGear2/m/outline":["M8.03809 1.20801C8.63206 1.20812 9.187 1.50498 9.5166 1.99902L9.89648 2.56934C10.0599 2.81444 10.3584 2.93344 10.6455 2.86719L11.1143 2.75879C11.7205 2.61895 12.3559 2.80141 12.7959 3.24121C13.2359 3.68113 13.418 4.31659 13.2783 4.92285L13.1709 5.39258C13.1049 5.67949 13.223 5.97722 13.4678 6.14062L14.0381 6.52051L14.2139 6.6543C14.602 6.98939 14.829 7.48 14.8291 8C14.829 8.51985 14.6018 9.00964 14.2139 9.34473L14.0381 9.47852L13.4678 9.8584C13.2228 10.0217 13.1048 10.3204 13.1709 10.6074L13.2793 11.0762C13.4192 11.6825 13.2358 12.3178 12.7959 12.7578C12.3558 13.1979 11.7207 13.3802 11.1143 13.2402L10.6455 13.1328C10.3585 13.0666 10.0599 13.1848 9.89648 13.4297L9.5166 14C9.18703 14.4943 8.63221 14.7909 8.03809 14.791C7.51798 14.791 7.02755 14.564 6.69238 14.1758L6.55859 14L6.17871 13.4297C6.01531 13.185 5.71753 13.0668 5.43066 13.1328L4.96191 13.2412C4.35543 13.3812 3.7194 13.1979 3.2793 12.7578C2.83948 12.3178 2.657 11.6825 2.79688 11.0762L2.90527 10.6074C2.97138 10.3204 2.85245 10.0217 2.60742 9.8584L2.03711 9.47852C1.54302 9.14892 1.2462 8.594 1.24609 8C1.2462 7.40588 1.54284 6.85009 2.03711 6.52051L2.60742 6.14062C2.85236 5.97725 2.97129 5.67947 2.90527 5.39258L2.79688 4.92383C2.65705 4.31747 2.83928 3.68123 3.2793 3.24121C3.71936 2.80125 4.35555 2.61888 4.96191 2.75879L5.43066 2.86719C5.71761 2.93322 6.01536 2.81437 6.17871 2.56934L6.55859 1.99902C6.88825 1.5048 7.44393 1.20801 8.03809 1.20801ZM8.03809 2.45801C7.86195 2.45801 7.6965 2.54585 7.59863 2.69238L7.21875 3.2627C6.76695 3.9404 5.94306 4.26802 5.14941 4.08496L4.68066 3.97656C4.49426 3.93357 4.2984 3.98979 4.16309 4.125C4.02782 4.26027 3.97174 4.45617 4.01465 4.64258L4.12305 5.11133C4.30609 5.90492 3.97839 6.72884 3.30078 7.18066L2.73047 7.56055C2.58389 7.65834 2.49619 7.82389 2.49609 8C2.4962 8.17598 2.58407 8.34067 2.73047 8.43848L3.30078 8.81836C3.97851 9.27012 4.30607 10.0951 4.12305 10.8887L4.01465 11.3574C3.97179 11.5436 4.02804 11.7387 4.16309 11.874C4.29841 12.0094 4.4942 12.0655 4.68066 12.0225L5.14941 11.9141C5.94281 11.7312 6.76688 12.0589 7.21875 12.7363L7.59863 13.3066C7.69646 13.4534 7.8618 13.541 8.03809 13.541C8.21423 13.5409 8.37879 13.4532 8.47656 13.3066L8.85645 12.7363C9.30821 12.0588 10.1325 11.7313 10.9258 11.9141H10.9268L11.3955 12.0225C11.5819 12.0654 11.7768 12.0093 11.9121 11.874C12.0473 11.7387 12.1035 11.5437 12.0605 11.3574L11.9521 10.8887V10.8877C11.7695 10.0944 12.0969 9.27005 12.7744 8.81836L13.3447 8.43848C13.4912 8.34069 13.579 8.17609 13.5791 8C13.579 7.82383 13.4914 7.65832 13.3447 7.56055L12.7744 7.18066C12.0969 6.7288 11.7692 5.90477 11.9521 5.11133L12.0605 4.64258L12.0723 4.57227C12.0885 4.40811 12.0305 4.2434 11.9121 4.125C11.7768 3.98997 11.5817 3.93374 11.3955 3.97656L10.9268 4.08496C10.1331 4.26813 9.30826 3.94051 8.85645 3.2627L8.47656 2.69238C8.37875 2.54603 8.21404 2.45812 8.03809 2.45801ZM8.03711 5.54199C9.39471 5.54199 10.4959 6.64244 10.4961 8C10.4959 9.35757 9.39472 10.459 8.03711 10.459C6.67979 10.4586 5.57927 9.35736 5.5791 8C5.57928 6.64265 6.6798 5.54233 8.03711 5.54199ZM8.03711 6.79199C7.37015 6.79233 6.82928 7.333 6.8291 8C6.82927 8.66701 7.37015 9.20864 8.03711 9.20898C8.70436 9.20898 9.24593 8.66722 9.24609 8C9.24592 7.33279 8.70436 6.79199 8.03711 6.79199Z"],"SettingsGear2/s/filled":["M4.99725 1.55181C5.22707 1.20707 5.61397 1 6.02832 1C6.44267 1 6.82957 1.20707 7.05937 1.55181L7.34442 1.97938C7.48862 2.19569 7.75167 2.30013 8.00502 2.24168L8.35662 2.16054C8.77997 2.06284 9.22377 2.19012 9.53097 2.49733C9.83822 2.80455 9.96547 3.24835 9.86777 3.67169L9.78662 4.02332C9.72817 4.27664 9.83262 4.53968 10.049 4.68389L10.4765 4.96893C10.8213 5.19875 11.0283 5.58565 11.0283 6C11.0283 6.41435 10.8213 6.80125 10.4765 7.03105L10.049 7.3161C9.83262 7.4603 9.72817 7.72335 9.78662 7.9767L9.86777 8.3283C9.96547 8.75165 9.83822 9.19545 9.53097 9.50265C9.22377 9.8099 8.77997 9.93715 8.35662 9.83945L8.00502 9.7583C7.75167 9.69985 7.48862 9.8043 7.34442 10.0206L7.05937 10.4482C6.82957 10.793 6.44267 11 6.02832 11C5.61397 11 5.22707 10.793 4.99725 10.4482L4.71221 10.0206C4.56801 9.8043 4.30496 9.69985 4.05164 9.7583L3.70001 9.83945C3.27667 9.93715 2.83287 9.8099 2.52566 9.50265C2.21845 9.19545 2.09116 8.75165 2.18886 8.3283L2.27 7.9767C2.32846 7.72335 2.22401 7.4603 2.0077 7.3161L1.58013 7.03105C1.23539 6.80125 1.02832 6.41435 1.02832 6C1.02832 5.58565 1.23539 5.19875 1.58013 4.96893L2.0077 4.68389C2.22401 4.53968 2.32846 4.27664 2.27 4.02332L2.18886 3.67169C2.09116 3.24835 2.21844 2.80455 2.52566 2.49733C2.83287 2.19012 3.27667 2.06284 3.70001 2.16054L4.05164 2.24168C4.30496 2.30013 4.56801 2.19569 4.71221 1.97938L4.99725 1.55181ZM4.46582 6C4.46582 5.13705 5.16537 4.4375 6.02832 4.4375C6.89127 4.4375 7.59082 5.13705 7.59082 6C7.59082 6.86295 6.89127 7.5625 6.02832 7.5625C5.16537 7.5625 4.46582 6.86295 4.46582 6Z"],"SettingsGear2/s/outline":["M6.02832 0.875C6.4844 0.875 6.91005 1.10303 7.16309 1.48242L7.44824 1.91016C7.5635 2.08307 7.77401 2.16671 7.97656 2.12012L8.32812 2.03906C8.79347 1.93167 9.28146 2.07152 9.61914 2.40918C9.95685 2.74687 10.0967 3.23484 9.98926 3.7002L9.9082 4.05176C9.86164 4.25433 9.94525 4.4648 10.1182 4.58008L10.5459 4.86523L10.6807 4.96777C10.9786 5.22504 11.1533 5.60083 11.1533 6C11.1533 6.39917 10.9786 6.77496 10.6807 7.03223L10.5459 7.13477L10.1182 7.41992C9.94529 7.53516 9.86164 7.74565 9.9082 7.94824L9.98926 8.2998C10.0967 8.76518 9.95683 9.25313 9.61914 9.59082C9.28145 9.92851 8.7935 10.0684 8.32812 9.96094L7.97656 9.87988C7.77397 9.83332 7.56348 9.91697 7.44824 10.0898L7.16309 10.5176C6.91005 10.897 6.48441 11.125 6.02832 11.125C5.62915 11.125 5.25336 10.9502 4.99609 10.6523L4.89355 10.5176L4.6084 10.0898C4.49312 9.91693 4.28265 9.83332 4.08008 9.87988L3.72852 9.96094C3.26316 10.0684 2.77519 9.92853 2.4375 9.59082C2.09984 9.25314 1.95999 8.76515 2.06738 8.2998L2.14844 7.94824C2.19503 7.74569 2.11139 7.53518 1.93848 7.41992L1.51074 7.13477C1.13135 6.88173 0.90332 6.45608 0.90332 6C0.90332 5.54392 1.13135 5.11827 1.51074 4.86523L1.93848 4.58008C2.11142 4.46478 2.19502 4.25429 2.14844 4.05176L2.06738 3.7002C1.96 3.23486 2.09981 2.74687 2.4375 2.40918C2.77519 2.07149 3.26318 1.93168 3.72852 2.03906L4.08008 2.12012C4.28261 2.1667 4.4931 2.0831 4.6084 1.91016L4.89355 1.48242C5.14659 1.10303 5.57224 0.875 6.02832 0.875ZM6.02832 1.875C5.90665 1.875 5.79318 1.93587 5.72559 2.03711L5.44043 2.46484C5.09434 2.98398 4.46245 3.23503 3.85449 3.09473L3.50293 3.0127C3.37368 2.98302 3.23832 3.02243 3.14453 3.11621C3.05075 3.21 3.01134 3.34536 3.04102 3.47461L3.12305 3.82617C3.26335 4.43413 3.0123 5.06602 2.49316 5.41211L2.06543 5.69727C1.96419 5.76486 1.90332 5.87833 1.90332 6C1.90332 6.12167 1.96419 6.23514 2.06543 6.30273L2.49316 6.58789C3.01233 6.93397 3.26335 7.56589 3.12305 8.17383L3.04102 8.52539C3.01133 8.65462 3.05073 8.78997 3.14453 8.88379C3.23832 8.97758 3.37369 9.01701 3.50293 8.9873L3.85449 8.90527C4.46239 8.76503 5.09432 9.01598 5.44043 9.53516L5.72559 9.96289C5.79318 10.0641 5.90664 10.125 6.02832 10.125C6.15 10.125 6.26346 10.0641 6.33105 9.96289L6.61621 9.53516C6.9623 9.01595 7.59426 8.76504 8.20215 8.90527L8.55371 8.9873C8.68293 9.01701 8.81828 8.97761 8.91211 8.88379C9.00593 8.78996 9.04533 8.65461 9.01562 8.52539L8.93359 8.17383C8.79336 7.56594 9.04427 6.93398 9.56348 6.58789L9.99121 6.30273C10.0924 6.23514 10.1533 6.12168 10.1533 6C10.1533 5.87832 10.0924 5.76486 9.99121 5.69727L9.56348 5.41211C9.0443 5.066 8.79335 4.43407 8.93359 3.82617L9.01562 3.47461C9.04533 3.34538 9.00591 3.21 8.91211 3.11621C8.81829 3.0224 8.68294 2.98301 8.55371 3.0127L8.20215 3.09473C7.59421 3.23503 6.96229 2.98401 6.61621 2.46484L6.33105 2.03711C6.26346 1.93587 6.14999 1.875 6.02832 1.875ZM6.02832 4.125C7.06386 4.125 7.90332 4.96446 7.90332 6C7.90332 7.03554 7.06386 7.875 6.02832 7.875C4.99278 7.875 4.15332 7.03554 4.15332 6C4.15332 4.96446 4.99278 4.125 6.02832 4.125ZM6.02832 5.125C5.54506 5.125 5.15332 5.51674 5.15332 6C5.15332 6.48326 5.54506 6.875 6.02832 6.875C6.51158 6.875 6.90332 6.48326 6.90332 6C6.90332 5.51674 6.51158 5.125 6.02832 5.125Z"],"ShareArrowOutOfBox/l/filled":["M20.25 14C20.6642 14 21 14.3358 21 14.75V18.25C21 19.7688 19.7688 21 18.25 21H5.75C4.23122 21 3 19.7688 3 18.25V14.75C3 14.3358 3.33579 14 3.75 14C4.16421 14 4.5 14.3358 4.5 14.75V18.25C4.5 18.9404 5.05964 19.5 5.75 19.5H18.25C18.9404 19.5 19.5 18.9404 19.5 18.25V14.75C19.5 14.3358 19.8358 14 20.25 14Z","M12 3C12.1989 3 12.3897 3.07908 12.5303 3.21973L17.0303 7.71973C17.3232 8.01261 17.3232 8.48739 17.0303 8.78027C16.7374 9.07316 16.2626 9.07316 15.9697 8.78027L12.75 5.56055V15C12.75 15.4142 12.4142 15.75 12 15.75C11.5858 15.75 11.25 15.4142 11.25 15V5.56055L8.03027 8.78027C7.73738 9.07316 7.26262 9.07316 6.96973 8.78027C6.67684 8.48738 6.67684 8.01262 6.96973 7.71973L11.4697 3.21973C11.6103 3.07908 11.8011 3 12 3Z"],"ShareArrowOutOfBox/l/outline":["M3 18.25V14.75C3 14.3358 3.33579 14 3.75 14C4.16421 14 4.5 14.3358 4.5 14.75V18.25C4.5 18.9404 5.05964 19.5 5.75 19.5H18.25C18.9404 19.5 19.5 18.9404 19.5 18.25V14.75C19.5 14.3358 19.8358 14 20.25 14C20.6642 14 21 14.3358 21 14.75V18.25C21 19.7688 19.7688 21 18.25 21H5.75C4.23122 21 3 19.7688 3 18.25ZM11.25 15V5.56054L8.03027 8.78027C7.73738 9.07316 7.26262 9.07316 6.96973 8.78027C6.67683 8.48737 6.67683 8.01261 6.96973 7.71972L11.4697 3.21972L11.5264 3.16796C11.8209 2.92765 12.2557 2.94512 12.5303 3.21972L17.0303 7.71972C17.3232 8.01261 17.3232 8.48737 17.0303 8.78027C16.7374 9.07316 16.2626 9.07316 15.9697 8.78027L12.75 5.56054V15C12.75 15.4142 12.4142 15.75 12 15.75C11.5858 15.75 11.25 15.4142 11.25 15Z"],"ShareArrowOutOfBox/m/filled":["M13.5 9.33333C13.7761 9.33333 14 9.5572 14 9.83333V12.1667C14 13.1792 13.1792 14 12.1667 14H3.83333C2.82081 14 2 13.1792 2 12.1667V9.83333C2 9.5572 2.22386 9.33333 2.5 9.33333C2.77614 9.33333 3 9.5572 3 9.83333V12.1667C3 12.6269 3.37309 13 3.83333 13H12.1667C12.6269 13 13 12.6269 13 12.1667V9.83333C13 9.5572 13.2239 9.33333 13.5 9.33333Z","M8 2C8.1326 2 8.26043 2.05207 8.35417 2.14583L11.3542 5.14583C11.5494 5.34109 11.5494 5.65891 11.3542 5.85417C11.1589 6.04943 10.8411 6.04943 10.6458 5.85417L8.5 3.70703V10C8.5 10.2761 8.27613 10.5 8 10.5C7.72387 10.5 7.5 10.2761 7.5 10V3.70703L5.35417 5.85417C5.15891 6.04943 4.84109 6.04943 4.64583 5.85417C4.45057 5.65891 4.45057 5.34109 4.64583 5.14583L7.64583 2.14583C7.73957 2.05207 7.8674 2 8 2Z"],"ShareArrowOutOfBox/m/outline":["M1.45239 12.3506V10.0166C1.45257 9.67158 1.73232 9.39161 2.07739 9.39161C2.42246 9.39161 2.70222 9.67158 2.70239 10.0166V12.3506C2.70257 12.7416 3.01945 13.0584 3.4104 13.0586H11.7444C12.1353 13.0584 12.4522 12.7416 12.4524 12.3506V10.0166C12.4526 9.67158 12.7323 9.39161 13.0774 9.39161C13.4225 9.39161 13.7022 9.67158 13.7024 10.0166V12.3506C13.7022 13.4319 12.8257 14.3084 11.7444 14.3086H3.4104C2.32911 14.3084 1.45257 13.4319 1.45239 12.3506ZM6.95239 10.1836V4.19337L5.01978 6.12599C4.7757 6.37006 4.37909 6.37006 4.13501 6.12599C3.89093 5.88191 3.89093 5.4853 4.13501 5.24122L7.13501 2.24122L7.23364 2.16114C7.47621 2.00119 7.8063 2.02774 8.01978 2.24122L11.0198 5.24122C11.2639 5.4853 11.2639 5.88191 11.0198 6.12599C10.7757 6.37006 10.3791 6.37006 10.135 6.12599L8.20239 4.19337V10.1836C8.20239 10.5288 7.92257 10.8086 7.57739 10.8086C7.23221 10.8086 6.95239 10.5288 6.95239 10.1836Z"],"ShareArrowOutOfBox/s/filled":["M10.125 7C10.3321 7 10.5 7.1679 10.5 7.375V9.125C10.5 9.8844 9.8844 10.5 9.125 10.5H2.875C2.11561 10.5 1.5 9.8844 1.5 9.125V7.375C1.5 7.1679 1.6679 7 1.875 7C2.0821 7 2.25 7.1679 2.25 7.375V9.125C2.25 9.4702 2.52982 9.75 2.875 9.75H9.125C9.4702 9.75 9.75 9.4702 9.75 9.125V7.375C9.75 7.1679 9.9179 7 10.125 7Z","M6 1.5C6.09945 1.5 6.19533 1.53905 6.26562 1.60938L8.51562 3.85938C8.66206 4.00582 8.66206 4.24418 8.51562 4.39062C8.36917 4.53707 8.13083 4.53707 7.98438 4.39062L6.375 2.78027V7.5C6.375 7.7071 6.2071 7.875 6 7.875C5.7929 7.875 5.625 7.7071 5.625 7.5V2.78027L4.01562 4.39062C3.86918 4.53707 3.63082 4.53707 3.48438 4.39062C3.33793 4.24418 3.33793 4.00582 3.48438 3.85938L5.73438 1.60938C5.80468 1.53905 5.90055 1.5 6 1.5Z"],"ShareArrowOutOfBox/s/outline":["M1.375 9.12502V7.37502C1.375 7.09888 1.59886 6.87502 1.875 6.87502C2.15114 6.87502 2.375 7.09888 2.375 7.37502V9.12502C2.375 9.40118 2.59885 9.62502 2.875 9.62502H9.125C9.40116 9.62502 9.625 9.40118 9.625 9.12502V7.37502C9.625 7.09888 9.84886 6.87502 10.125 6.87502C10.4011 6.87502 10.625 7.09888 10.625 7.37502V9.12502C10.625 9.95347 9.95344 10.625 9.125 10.625H2.875C2.04658 10.625 1.375 9.95347 1.375 9.12502ZM5.5 7.50002V3.08206L4.10352 4.47854C3.90825 4.6738 3.59175 4.6738 3.39648 4.47854C3.20122 4.28328 3.20122 3.96677 3.39648 3.77151L5.64648 1.52151L5.72461 1.45706C5.91869 1.32889 6.18265 1.35064 6.35352 1.52151L8.60352 3.77151C8.79878 3.96677 8.79878 4.28328 8.60352 4.47854C8.40825 4.6738 8.09175 4.6738 7.89648 4.47854L6.5 3.08206V7.50002C6.5 7.77617 6.27614 8.00002 6 8.00002C5.72386 8.00002 5.5 7.77617 5.5 7.50002Z"],"ShareArrowUpBox/l/filled":["M9.75 13.25C9.75 14.4926 10.7574 15.5 12 15.5C13.2426 15.5 14.25 14.4926 14.25 13.25V9H17.25C18.7688 9 20 10.2312 20 11.75V18.25C20 19.7688 18.7688 21 17.25 21H6.75C5.23122 21 4 19.7688 4 18.25V11.75C4 10.2312 5.23122 9 6.75 9H9.75V13.25Z","M12 1C12.2063 1 12.4032 1.08535 12.5449 1.23535L16.7949 5.73535C17.0793 6.03649 17.0657 6.51051 16.7646 6.79492C16.4635 7.07931 15.9895 7.06577 15.7051 6.76465L12.75 3.63672V13.25C12.75 13.6642 12.4142 14 12 14C11.5858 14 11.25 13.6642 11.25 13.25V3.63672L8.29492 6.76465C8.01051 7.06579 7.53649 7.07933 7.23535 6.79492C6.93421 6.51051 6.92067 6.03649 7.20508 5.73535L11.4551 1.23535C11.5968 1.08535 11.7937 1 12 1Z"],"ShareArrowUpBox/l/outline":["M7.75 9C8.16421 9 8.5 9.33579 8.5 9.75C8.5 10.1642 8.16421 10.5 7.75 10.5H6.75C6.05964 10.5 5.5 11.0596 5.5 11.75V18.25C5.5 18.9404 6.05964 19.5 6.75 19.5H17.25C17.9404 19.5 18.5 18.9404 18.5 18.25V11.75C18.5 11.0596 17.9404 10.5 17.25 10.5H16.25C15.8358 10.5 15.5 10.1642 15.5 9.75C15.5 9.33579 15.8358 9 16.25 9H17.25C18.7688 9 20 10.2312 20 11.75V18.25C20 19.7688 18.7688 21 17.25 21H6.75C5.23122 21 4 19.7688 4 18.25V11.75C4 10.2312 5.23122 9 6.75 9H7.75Z","M12 1C12.2063 1 12.4032 1.08533 12.5449 1.23535L16.7949 5.73535C17.0793 6.03649 17.0658 6.51051 16.7646 6.79492C16.4635 7.07933 15.9895 7.06579 15.7051 6.76465L12.75 3.63477V13.25C12.75 13.6642 12.4142 14 12 14C11.5858 14 11.25 13.6642 11.25 13.25V3.63477L8.29492 6.76465C8.01051 7.06579 7.53649 7.07933 7.23535 6.79492C6.93421 6.51051 6.92067 6.03649 7.20508 5.73535L11.4551 1.23535L11.5107 1.18164C11.6462 1.06504 11.8196 1 12 1Z"],"ShareArrowUpBox/m/filled":["M6.5 8.83301C6.5 9.66141 7.1716 10.333 8 10.333C8.82838 10.333 9.5 9.66139 9.5 8.83301V6H11.5C12.5124 6.00002 13.3328 6.82064 13.333 7.83301V12.167C13.3328 13.1794 12.5124 14 11.5 14H4.5C3.48759 14 2.66717 13.1794 2.66699 12.167V7.83301C2.66717 6.82062 3.48759 6 4.5 6H6.5V8.83301Z","M8 0.666992C8.13744 0.667003 8.26884 0.723354 8.36328 0.823242L11.1973 3.82324C11.3867 4.024 11.3774 4.34071 11.1768 4.53027C10.976 4.71988 10.6593 4.71053 10.4697 4.50977L8.5 2.42383V8.83301C8.5 9.10913 8.27612 9.33299 8 9.33301C7.72387 9.33301 7.5 9.10914 7.5 8.83301V2.42383L5.53027 4.50977C5.34067 4.71053 5.024 4.71988 4.82324 4.53027C4.62252 4.34071 4.61325 4.02401 4.80273 3.82324L7.63672 0.823242C7.73117 0.723369 7.86257 0.666992 8 0.666992Z"],"ShareArrowUpBox/m/outline":["M5.16699 5.875C5.512 5.8752 5.79199 6.15494 5.79199 6.5C5.79199 6.84506 5.512 7.1248 5.16699 7.125H4.5C4.10905 7.12518 3.79217 7.44205 3.79199 7.83301V12.167C3.79217 12.558 4.10905 12.8748 4.5 12.875H11.5C11.8909 12.8748 12.2088 12.5579 12.209 12.167V7.83301C12.2088 7.44206 11.8909 7.1252 11.5 7.125H10.834C10.4888 7.125 10.209 6.84518 10.209 6.5C10.209 6.15482 10.4888 5.875 10.834 5.875H11.5C12.5813 5.8752 13.4588 6.7517 13.459 7.83301V12.167C13.4588 13.2483 12.5813 14.1248 11.5 14.125H4.5C3.41871 14.1248 2.54217 13.2483 2.54199 12.167V7.83301C2.54217 6.75168 3.41871 5.87518 4.5 5.875H5.16699Z","M8 0.541992C8.17182 0.542093 8.33709 0.613356 8.45508 0.738281L11.2881 3.73828C11.5245 3.98922 11.5133 4.38426 11.2627 4.62109C11.0119 4.85799 10.616 4.84632 10.3789 4.5957L8.625 2.7373V8.83301C8.625 9.17819 8.34518 9.45801 8 9.45801C7.65482 9.45801 7.375 9.17819 7.375 8.83301V2.7373L5.62109 4.5957C5.38422 4.84651 4.98925 4.85768 4.73828 4.62109C4.48736 4.38411 4.47597 3.98923 4.71289 3.73828L7.5459 0.738281C7.66389 0.61336 7.82817 0.542082 8 0.541992Z"],"ShareArrowUpBox/s/filled":["M4.875 6.625C4.875 7.2463 5.3787 7.75 6 7.75C6.6213 7.75 7.125 7.2463 7.125 6.625V4.5H8.625C9.3844 4.5 10 5.1156 10 5.875V9.125C10 9.8844 9.3844 10.5 8.625 10.5H3.375C2.61561 10.5 2 9.8844 2 9.125V5.875C2 5.1156 2.61561 4.5 3.375 4.5H4.875V6.625Z","M6 0.5C6.10303 0.5 6.20163 0.542349 6.27246 0.617188L8.39746 2.86719C8.53958 3.01767 8.53312 3.25523 8.38281 3.39746C8.2323 3.53958 7.99477 3.53312 7.85254 3.38281L6.375 1.81836V6.625C6.375 6.8321 6.2071 7 6 7C5.7929 7 5.625 6.8321 5.625 6.625V1.81836L4.14746 3.38281C4.00523 3.53313 3.76767 3.53958 3.61719 3.39746C3.46687 3.25523 3.46042 3.01767 3.60254 2.86719L5.72754 0.617188C5.79837 0.542349 5.89697 0.500001 6 0.5Z"],"ShareArrowUpBox/s/outline":["M3.875 4.375C4.15114 4.375 4.375 4.59886 4.375 4.875C4.375 5.15114 4.15114 5.375 3.875 5.375H3.375C3.09885 5.375 2.875 5.59885 2.875 5.875V9.125C2.875 9.40115 3.09885 9.625 3.375 9.625H8.625C8.90116 9.625 9.125 9.40116 9.125 9.125V5.875C9.125 5.59884 8.90116 5.375 8.625 5.375H8.125C7.84886 5.375 7.625 5.15114 7.625 4.875C7.625 4.59886 7.84886 4.375 8.125 4.375H8.625C9.45344 4.375 10.125 5.04656 10.125 5.875V9.125C10.125 9.95344 9.45344 10.625 8.625 10.625H3.375C2.54658 10.625 1.875 9.95345 1.875 9.125V5.875C1.875 5.04655 2.54658 4.375 3.375 4.375H3.875Z","M6 0.375C6.13741 0.375 6.26885 0.431453 6.36328 0.53125L8.48828 2.78125C8.67778 2.98189 8.66918 3.29864 8.46875 3.48828C8.26811 3.67778 7.95136 3.66918 7.76172 3.46875L6.5 2.13184V6.625C6.5 6.90114 6.27614 7.125 6 7.125C5.72386 7.125 5.5 6.90114 5.5 6.625V2.13184L4.23828 3.46875C4.04864 3.66918 3.73189 3.67778 3.53125 3.48828C3.33082 3.29864 3.32222 2.98189 3.51172 2.78125L5.63672 0.53125L5.71387 0.464844C5.79712 0.406768 5.89688 0.375 6 0.375Z"],"ShieldCheck/l/filled":["M11.6304 2.24952C12.1949 2.06136 12.8051 2.06136 13.3696 2.24952L19.6196 4.33285C20.7426 4.70717 21.5 5.75805 21.5 6.94173V11.9126C21.5 14.6499 20.3165 16.6703 18.6412 18.2599C16.9942 19.8227 14.8404 20.9977 12.8561 22.0682C12.6338 22.1881 12.3662 22.1881 12.1439 22.0682C10.1596 20.9977 8.0058 19.8227 6.35876 18.2599C4.68351 16.6703 3.5 14.6499 3.5 11.9126V6.94173C3.5 5.75805 4.25743 4.70717 5.38037 4.33285L11.6304 2.24952ZM15.7803 10.0303C16.0732 9.73744 16.0732 9.26256 15.7803 8.96967C15.4874 8.67678 15.0126 8.67678 14.7197 8.96967L11.5 12.1893L10.2803 10.9697C9.98744 10.6768 9.51256 10.6768 9.21967 10.9697C8.92678 11.2626 8.92678 11.7374 9.21967 12.0303L10.9697 13.7803C11.1103 13.921 11.3011 14 11.5 14C11.6989 14 11.8897 13.921 12.0303 13.7803L15.7803 10.0303Z"],"ShieldCheck/l/outline":["M20 6.94123C19.9999 6.40339 19.6557 5.92584 19.1455 5.75568L12.8955 3.67267C12.6388 3.58713 12.3612 3.58713 12.1045 3.67267L5.85449 5.75568C5.34428 5.92584 5.00014 6.40339 5 6.94123V11.9119C5 14.147 5.94186 15.7961 7.3916 17.1717C8.78227 18.4911 10.6099 19.5304 12.5 20.5545C14.3901 19.5304 16.2177 18.4911 17.6084 17.1717C19.0581 15.7961 20 14.147 20 11.9119V6.94123ZM14.7197 8.96955C15.0126 8.6768 15.4874 8.6768 15.7803 8.96955C16.0731 9.2624 16.0731 9.73719 15.7803 10.0301L12.0303 13.7801C11.7374 14.073 11.2626 14.073 10.9697 13.7801L9.21973 12.0301C8.92693 11.7372 8.92686 11.2624 9.21973 10.9695C9.5126 10.6768 9.9874 10.6768 10.2803 10.9695L11.5 12.1893L14.7197 8.96955ZM21.5 11.9119C21.5 14.6492 20.3167 16.67 18.6416 18.2596C16.9946 19.8223 14.8407 20.9977 12.8564 22.0682C12.6342 22.1881 12.3658 22.1881 12.1436 22.0682C10.1593 20.9977 8.00538 19.8223 6.3584 18.2596C4.68326 16.67 3.5 14.6492 3.5 11.9119V6.94123C3.50014 5.75785 4.25732 4.70725 5.37988 4.33283L11.6299 2.24982C12.1944 2.06166 12.8056 2.06166 13.3701 2.24982L19.6201 4.33283C20.7426 4.70723 21.4999 5.75782 21.5 6.94123V11.9119Z"],"ShieldCheck/m/filled":["M7.75364 1.49966C8.12997 1.37422 8.53677 1.37422 8.91311 1.49966L13.0798 2.88855C13.8284 3.13809 14.3334 3.83868 14.3334 4.6278V7.94171C14.3334 9.76658 13.5444 11.1135 12.4275 12.1732C11.3295 13.2151 9.89364 13.9984 8.57077 14.7121C8.42257 14.792 8.24417 14.792 8.09597 14.7121C6.77308 13.9984 5.33724 13.2151 4.23921 12.1732C3.12238 11.1135 2.33337 9.76658 2.33337 7.94171V4.6278C2.33337 3.83868 2.83833 3.13809 3.58695 2.88855L7.75364 1.49966ZM10.5202 6.68685C10.7155 6.49161 10.7155 6.17502 10.5202 5.97976C10.325 5.7845 10.0084 5.7845 9.81317 5.97976L7.66671 8.12618L6.85359 7.31311C6.65833 7.11784 6.34175 7.11784 6.14649 7.31311C5.95123 7.50838 5.95123 7.82491 6.14649 8.02018L7.31317 9.18684C7.40691 9.28064 7.53411 9.33331 7.66671 9.33331C7.79931 9.33331 7.92651 9.28064 8.02024 9.18684L10.5202 6.68685Z"],"ShieldCheck/m/outline":["M13.2084 4.62811C13.2084 4.32322 13.0132 4.05167 12.724 3.95525L8.55701 2.56658C8.41182 2.5183 8.25493 2.5183 8.10974 2.56658L3.94275 3.95525C3.65351 4.05167 3.45837 4.32322 3.45837 4.62811V7.94158C3.45838 9.38976 4.06633 10.4574 5.01404 11.3566C5.91342 12.21 7.09451 12.8864 8.33337 13.5588C9.57223 12.8864 10.7533 12.21 11.6527 11.3566C12.6004 10.4574 13.2084 9.38976 13.2084 7.94158V4.62811ZM9.72498 5.89178C9.96905 5.6477 10.3647 5.6477 10.6088 5.89178C10.8526 6.13588 10.8528 6.53157 10.6088 6.77557L8.10876 9.27557C7.86477 9.51946 7.46904 9.51935 7.22498 9.27557L6.05798 8.10857C5.814 7.86452 5.81403 7.46885 6.05798 7.22478C6.30204 6.98073 6.69769 6.98077 6.94177 7.22478L7.66638 7.94939L9.72498 5.89178ZM14.4584 7.94158C14.4584 9.80823 13.6496 11.1863 12.514 12.2638C11.4019 13.3191 9.95054 14.1102 8.63025 14.8224C8.44509 14.9223 8.22166 14.9223 8.0365 14.8224C6.71621 14.1102 5.26483 13.3191 4.15271 12.2638C3.01719 11.1863 2.20838 9.80823 2.20837 7.94158V4.62811C2.20837 3.78522 2.74764 3.0363 3.54724 2.76971L7.71423 1.38103C8.11618 1.24709 8.55057 1.24709 8.95251 1.38103L13.1195 2.76971C13.9191 3.03629 14.4584 3.7852 14.4584 4.62811V7.94158Z"],"ShieldCheck/s/filled":["M5.8152 1.12476C6.09745 1.03068 6.40255 1.03068 6.6848 1.12476L9.8098 2.16642C10.3713 2.35358 10.75 2.87902 10.75 3.47086V5.9563C10.75 7.32495 10.1582 8.33515 9.3206 9.12995C8.4971 9.91135 7.4202 10.4988 6.42805 11.0341C6.3169 11.094 6.1831 11.094 6.07195 11.0341C5.07978 10.4988 4.0029 9.91135 3.17938 9.12995C2.34175 8.33515 1.75 7.32495 1.75 5.9563V3.47086C1.75 2.87902 2.12872 2.35358 2.69019 2.16642L5.8152 1.12476ZM7.89015 5.01515C8.0366 4.86872 8.0366 4.63128 7.89015 4.48483C7.7437 4.33839 7.5063 4.33839 7.35985 4.48483L5.75 6.09465L5.14016 5.48485C4.99372 5.3384 4.75628 5.3384 4.60984 5.48485C4.46339 5.6313 4.46339 5.8687 4.60984 6.01515L5.48485 6.89015C5.55515 6.9605 5.65055 7 5.75 7C5.84945 7 5.94485 6.9605 6.01515 6.89015L7.89015 5.01515Z"],"ShieldCheck/s/outline":["M9.875 3.47108C9.875 3.2559 9.7373 3.06455 9.5332 2.99647L6.4082 1.95447C6.30555 1.92027 6.19445 1.92027 6.0918 1.95447L2.9668 2.99647C2.76268 3.06455 2.625 3.25589 2.625 3.47108V5.95643C2.62507 7.03197 3.07522 7.82557 3.78125 8.49549C4.44894 9.12903 5.32629 9.63151 6.25 10.1332C7.17371 9.63151 8.05106 9.12903 8.71875 8.49549C9.42478 7.82557 9.87493 7.03197 9.875 5.95643V3.47108ZM7.27148 4.39686C7.46675 4.2016 7.78325 4.20159 7.97852 4.39686C8.17359 4.59213 8.17372 4.90869 7.97852 5.10389L6.10352 6.97889C5.9083 7.17389 5.5917 7.17389 5.39648 6.97889L4.52148 6.10389C4.32629 5.90869 4.32642 5.59213 4.52148 5.39686C4.71675 5.20159 5.03325 5.20159 5.22852 5.39686L5.75 5.91834L7.27148 4.39686ZM10.875 5.95643C10.8749 7.36683 10.2626 8.40753 9.40625 9.2201C8.56864 10.0149 7.47686 10.6101 6.4873 11.1439C6.33916 11.2238 6.16084 11.2238 6.0127 11.1439C5.02314 10.6101 3.93136 10.0149 3.09375 9.2201C2.23738 8.40753 1.62507 7.36683 1.625 5.95643V3.47108C1.625 2.82546 2.03793 2.25145 2.65039 2.04725L5.77539 1.00623C6.08331 0.903603 6.41669 0.903603 6.72461 1.00623L9.84961 2.04725C10.462 2.25144 10.875 2.82545 10.875 3.47108V5.95643Z"],"SidebarRightWide/l/filled":["M4.42688 4.23901C2.9081 4.23901 1.67688 5.47023 1.67688 6.98901V17.489C1.67688 19.0078 2.9081 20.239 4.42688 20.239H18.9269C20.4457 20.239 21.6769 19.0078 21.6769 17.489V6.98901C21.6769 5.47023 20.4457 4.23901 18.9269 4.23901H4.42688ZM17.4269 7.73901C17.8411 7.73901 18.1769 8.0748 18.1769 8.48901V15.989C18.1769 16.4032 17.8411 16.739 17.4269 16.739C17.0127 16.739 16.6769 16.4032 16.6769 15.989V8.48901C16.6769 8.0748 17.0127 7.73901 17.4269 7.73901Z"],"SidebarRightWide/l/outline":["M20.1769 6.98901C20.1769 6.29865 19.6173 5.73901 18.9269 5.73901H4.42688C3.73652 5.73901 3.17688 6.29866 3.17688 6.98901V17.489C3.17688 18.1794 3.73652 18.739 4.42688 18.739H18.9269C19.6173 18.739 20.1769 18.1794 20.1769 17.489V6.98901ZM16.6769 15.989V8.48901C16.6769 8.0748 17.0127 7.73901 17.4269 7.73901C17.8411 7.73901 18.1769 8.0748 18.1769 8.48901V15.989C18.1769 16.4032 17.8411 16.739 17.4269 16.739C17.0127 16.739 16.6769 16.4032 16.6769 15.989ZM21.6769 17.489C21.6769 19.0078 20.4457 20.239 18.9269 20.239H4.42688C2.9081 20.239 1.67688 19.0078 1.67688 17.489V6.98901C1.67688 5.47023 2.9081 4.23901 4.42688 4.23901H18.9269C20.4457 4.23901 21.6769 5.47024 21.6769 6.98901V17.489Z"],"SidebarRightWide/m/filled":["M2.95125 2.82599C1.93873 2.82599 1.11792 3.6468 1.11792 4.65932V11.6593C1.11792 12.6719 1.93873 13.4927 2.95125 13.4927H12.6179C13.6305 13.4927 14.4513 12.6719 14.4513 11.6593V4.65932C14.4513 3.6468 13.6305 2.82599 12.6179 2.82599H2.95125ZM11.6179 5.15932C11.8941 5.15932 12.1179 5.38318 12.1179 5.65932V10.6593C12.1179 10.9355 11.8941 11.1593 11.6179 11.1593C11.3418 11.1593 11.1179 10.9355 11.1179 10.6593V5.65932C11.1179 5.38318 11.3418 5.15932 11.6179 5.15932Z"],"SidebarRightWide/m/outline":["M13.3259 4.659C13.3258 4.26794 13.009 3.95099 12.6179 3.95099H2.95093C2.55998 3.95116 2.2431 4.26805 2.24292 4.659V11.659C2.24292 12.0501 2.55987 12.3678 2.95093 12.368H12.6179C13.0091 12.368 13.3259 12.0502 13.3259 11.659V4.659ZM10.9929 10.659V5.659C10.9931 5.31397 11.2729 5.034 11.6179 5.034C11.963 5.034 12.2427 5.31397 12.2429 5.659V10.659C12.2429 11.0042 11.9631 11.284 11.6179 11.284C11.2727 11.284 10.9929 11.0042 10.9929 10.659ZM14.5759 11.659C14.5759 12.7406 13.6995 13.618 12.6179 13.618H2.95093C1.86953 13.6178 0.99292 12.7405 0.99292 11.659V4.659C0.993096 3.5777 1.86963 2.70116 2.95093 2.70099H12.6179C13.6994 2.70099 14.5758 3.57759 14.5759 4.659V11.659Z"],"SidebarRightWide/s/filled":["M2.21338 2.11951C1.45399 2.11951 0.838379 2.73512 0.838379 3.49451V8.74451C0.838379 9.50391 1.45399 10.1195 2.21338 10.1195H9.46338C10.2228 10.1195 10.8384 9.50391 10.8384 8.74451V3.49451C10.8384 2.73512 10.2228 2.11951 9.46338 2.11951H2.21338ZM8.71338 3.86951C8.92048 3.86951 9.08838 4.0374 9.08838 4.24451V7.99451C9.08838 8.20161 8.92048 8.36951 8.71338 8.36951C8.50628 8.36951 8.33838 8.20161 8.33838 7.99451V4.24451C8.33838 4.0374 8.50628 3.86951 8.71338 3.86951Z"],"SidebarRightWide/s/outline":["M9.96338 3.49451C9.96338 3.21836 9.73953 2.99451 9.46338 2.99451H2.21338C1.93724 2.99451 1.71338 3.21836 1.71338 3.49451V8.74451C1.71338 9.02066 1.93723 9.24451 2.21338 9.24451H9.46338C9.73954 9.24451 9.96338 9.02066 9.96338 8.74451V3.49451ZM8.21338 7.99451V4.24451C8.21338 3.96836 8.43724 3.74451 8.71338 3.74451C8.98952 3.74451 9.21338 3.96836 9.21338 4.24451V7.99451C9.21338 8.27065 8.98952 8.49451 8.71338 8.49451C8.43724 8.49451 8.21338 8.27065 8.21338 7.99451ZM10.9634 8.74451C10.9634 9.57295 10.2918 10.2445 9.46338 10.2445H2.21338C1.38496 10.2445 0.713379 9.57295 0.713379 8.74451V3.49451C0.713379 2.66608 1.38495 1.99451 2.21338 1.99451H9.46338C10.2918 1.99451 10.9634 2.66608 10.9634 3.49451V8.74451Z"],"SidebarSimpleLeftWide/l/filled":["M8.92065 5.62598V18.626H19.1707C19.8611 18.626 20.4207 18.0664 20.4207 17.376V6.87598C20.4207 6.18562 19.8611 5.62598 19.1707 5.62598H8.92065ZM1.92065 6.87598C1.92065 5.3572 3.15187 4.12598 4.67065 4.12598H19.1707C20.6895 4.12598 21.9207 5.3572 21.9207 6.87598V17.376C21.9207 18.8948 20.6895 20.126 19.1707 20.126H4.67065C3.15187 20.126 1.92065 18.8948 1.92065 17.376V6.87598Z"],"SidebarSimpleLeftWide/l/outline":["M19.1709 4.12598C20.6896 4.12611 21.9209 5.3573 21.9209 6.87598V17.376C21.9209 18.8947 20.6896 20.1258 19.1709 20.126H4.6709C3.15212 20.126 1.9209 18.8948 1.9209 17.376V6.87598C1.92091 5.35721 3.15212 4.12598 4.6709 4.12598H19.1709ZM8.9209 18.626H19.1709C19.8612 18.6258 20.4209 18.0663 20.4209 17.376V6.87598C20.4209 6.18571 19.8612 5.62611 19.1709 5.62598H8.9209V18.626ZM4.6709 5.62598C3.98055 5.62598 3.42091 6.18563 3.4209 6.87598V17.376C3.4209 18.0664 3.98053 18.626 4.6709 18.626H7.4209V5.62598H4.6709Z"],"SidebarSimpleLeftWide/m/filled":["M5.94706 3.75067V12.4173H12.7804C13.2407 12.4173 13.6137 12.0443 13.6137 11.584V4.584C13.6137 4.12376 13.2407 3.75067 12.7804 3.75067H5.94706ZM1.2804 4.584C1.2804 3.57148 2.10121 2.75067 3.11373 2.75067H12.7804C13.7929 2.75067 14.6137 3.57148 14.6137 4.584V11.584C14.6137 12.5965 13.7929 13.4173 12.7804 13.4173H3.11373C2.10121 13.4173 1.2804 12.5965 1.2804 11.584V4.584Z"],"SidebarSimpleLeftWide/m/outline":["M12.7803 2.62598C13.8617 2.62598 14.7381 3.50258 14.7383 4.58398V11.584C14.7381 12.6654 13.8617 13.543 12.7803 13.543H3.11328C2.03206 13.5427 1.15544 12.6653 1.15527 11.584V4.58398C1.15545 3.50275 2.03207 2.62625 3.11328 2.62598H12.7803ZM6.07227 12.293H12.7803C13.1714 12.293 13.4881 11.9751 13.4883 11.584V4.58398C13.4881 4.19293 13.1714 3.87598 12.7803 3.87598H6.07227V12.293ZM3.11328 3.87598C2.72242 3.87625 2.40545 4.1931 2.40527 4.58398V11.584C2.40544 11.9749 2.72241 12.2927 3.11328 12.293H4.82227V3.87598H3.11328Z"],"SidebarSimpleLeftWide/s/filled":["M4.46033 2.81299V9.31299H9.58533C9.93053 9.31299 10.2103 9.03319 10.2103 8.68799V3.43799C10.2103 3.09281 9.93053 2.81299 9.58533 2.81299H4.46033ZM0.960327 3.43799C0.960327 2.6786 1.57594 2.06299 2.33533 2.06299H9.58533C10.3447 2.06299 10.9603 2.6786 10.9603 3.43799V8.68799C10.9603 9.44739 10.3447 10.063 9.58533 10.063H2.33533C1.57594 10.063 0.960327 9.44739 0.960327 8.68799V3.43799Z"],"SidebarSimpleLeftWide/s/outline":["M9.58496 1.93848C10.4134 1.93848 11.085 2.61005 11.085 3.43848V8.68848C11.0847 9.5167 10.4132 10.1885 9.58496 10.1885H2.33496C1.50686 10.1883 0.835216 9.51658 0.834961 8.68848V3.43848C0.834961 2.61017 1.5067 1.93867 2.33496 1.93848H9.58496ZM4.58496 9.18848H9.58496C9.86096 9.18848 10.0847 8.96442 10.085 8.68848V3.43848C10.085 3.16233 9.86111 2.93848 9.58496 2.93848H4.58496V9.18848ZM2.33496 2.93848C2.05899 2.93867 1.83496 3.16246 1.83496 3.43848V8.68848C1.83522 8.96429 2.05914 9.18828 2.33496 9.18848H3.58496V2.93848H2.33496Z"],"SidebarSimpleRightSquare/l/filled":["M14.8493 4.86157V19.8616H5.5993C4.9089 19.8616 4.3493 19.302 4.3493 18.6116V6.11157C4.3493 5.42121 4.9089 4.86157 5.5993 4.86157H14.8493ZM20.8493 6.11157C20.8493 4.59279 19.6181 3.36157 18.0993 3.36157H5.5993C4.0805 3.36157 2.8493 4.59279 2.8493 6.11157V18.6116C2.8493 20.1304 4.0805 21.3616 5.5993 21.3616H18.0993C19.6181 21.3616 20.8493 20.1304 20.8493 18.6116V6.11157Z"],"SidebarSimpleRightSquare/l/outline":["M5.59961 3.36133C4.08101 3.36149 2.84974 4.59277 2.84961 6.11133V18.6113C2.84961 20.13 4.08094 21.3612 5.59961 21.3613H18.0996C19.6184 21.3613 20.8496 20.1301 20.8496 18.6113V6.11133C20.8495 4.59266 19.6183 3.36133 18.0996 3.36133H5.59961ZM14.3496 19.8613H5.59961C4.90936 19.8612 4.34961 19.3016 4.34961 18.6113V6.11133C4.34974 5.42118 4.90945 4.86149 5.59961 4.86133H14.3496V19.8613ZM18.0996 4.86133C18.7899 4.86133 19.3495 5.42108 19.3496 6.11133V18.6113C19.3496 19.3017 18.79 19.8613 18.0996 19.8613H15.8496V4.86133H18.0996Z"],"SidebarSimpleRightSquare/m/filled":["M9.89954 3.24103V13.241H3.73287C3.2726 13.241 2.89954 12.868 2.89954 12.4077V4.07436C2.89954 3.61412 3.2726 3.24103 3.73287 3.24103H9.89954ZM13.8995 4.07436C13.8995 3.06184 13.0787 2.24103 12.0662 2.24103H3.73287C2.72034 2.24103 1.89954 3.06184 1.89954 4.07436V12.4077C1.89954 13.4202 2.72034 14.241 3.73287 14.241H12.0662C13.0787 14.241 13.8995 13.4202 13.8995 12.4077V4.07436Z"],"SidebarSimpleRightSquare/m/outline":["M3.73242 2.11621C2.6511 2.11639 1.77459 2.99292 1.77441 4.07422V12.4082C1.77469 13.4894 2.65116 14.366 3.73242 14.3662H12.0664C13.1476 14.366 14.0241 13.4894 14.0244 12.4082V4.07422C14.0242 2.99296 13.1476 2.11645 12.0664 2.11621H3.73242ZM9.44141 13.1162H3.73242C3.34152 13.116 3.02469 12.7991 3.02441 12.4082V4.07422C3.02459 3.68327 3.34146 3.36639 3.73242 3.36621H9.44141V13.1162ZM12.0664 3.36621C12.4573 3.36645 12.7742 3.68332 12.7744 4.07422V12.4082C12.7741 12.799 12.4572 13.116 12.0664 13.1162H10.6914V3.36621H12.0664Z"],"SidebarSimpleRightSquare/s/filled":["M7.42468 2.43079V9.93079H2.79968C2.45448 9.93079 2.17468 9.65099 2.17468 9.30579V3.05579C2.17468 2.71061 2.45448 2.43079 2.79968 2.43079H7.42468ZM10.4247 3.05579C10.4247 2.2964 9.80907 1.68079 9.04968 1.68079H2.79968C2.04028 1.68079 1.42468 2.2964 1.42468 3.05579V9.30579C1.42468 10.0652 2.04028 10.6808 2.79968 10.6808H9.04968C9.80907 10.6808 10.4247 10.0652 10.4247 9.30579V3.05579Z"],"SidebarSimpleRightSquare/s/outline":["M2.7998 1.55566C1.97145 1.55573 1.29987 2.22734 1.2998 3.05566V9.30566C1.2998 10.1341 1.97142 10.8056 2.7998 10.8057H9.0498C9.87823 10.8057 10.5498 10.1341 10.5498 9.30566V3.05566C10.5497 2.22729 9.87819 1.55566 9.0498 1.55566H2.7998ZM7.0498 9.80566H2.7998C2.5237 9.8056 2.2998 9.58178 2.2998 9.30566V3.05566C2.29987 2.77961 2.52375 2.55573 2.7998 2.55566H7.0498V9.80566ZM9.0498 2.55566C9.32591 2.55566 9.54974 2.77958 9.5498 3.05566V9.30566C9.5498 9.58182 9.32595 9.80566 9.0498 9.80566H8.0498V2.55566H9.0498Z"],"SidebarSimpleRightWide/l/filled":["M14.9207 5.62598V18.626H4.67065C3.98026 18.626 3.42065 18.0664 3.42065 17.376V6.87598C3.42065 6.18562 3.98026 5.62598 4.67065 5.62598H14.9207ZM21.9207 6.87598C21.9207 5.3572 20.6894 4.12598 19.1707 4.12598H4.67065C3.15185 4.12598 1.92065 5.3572 1.92065 6.87598V17.376C1.92065 18.8948 3.15185 20.126 4.67065 20.126H19.1707C20.6894 20.126 21.9207 18.8948 21.9207 17.376V6.87598Z"],"SidebarSimpleRightWide/l/outline":["M4.6709 4.12598C3.1522 4.12611 1.92091 5.3573 1.9209 6.87598V17.376C1.9209 18.8947 3.1522 20.1258 4.6709 20.126H19.1709C20.6897 20.126 21.9209 18.8948 21.9209 17.376V6.87598C21.9209 5.35721 20.6897 4.12598 19.1709 4.12598H4.6709ZM14.9209 18.626H4.6709C3.98063 18.6258 3.4209 18.0663 3.4209 17.376V6.87598C3.42091 6.18571 3.98064 5.62611 4.6709 5.62598H14.9209V18.626ZM19.1709 5.62598C19.8612 5.62598 20.4209 6.18563 20.4209 6.87598V17.376C20.4209 18.0664 19.8613 18.626 19.1709 18.626H16.4209V5.62598H19.1709Z"],"SidebarSimpleRightWide/m/filled":["M9.9471 3.75067V12.4173H3.11377C2.6535 12.4173 2.28044 12.0443 2.28044 11.584V4.584C2.28044 4.12376 2.6535 3.75067 3.11377 3.75067H9.9471ZM14.6138 4.584C14.6138 3.57148 13.793 2.75067 12.7804 2.75067H3.11377C2.10124 2.75067 1.28044 3.57148 1.28044 4.584V11.584C1.28044 12.5965 2.10124 13.4173 3.11377 13.4173H12.7804C13.793 13.4173 14.6138 12.5965 14.6138 11.584V4.584Z"],"SidebarSimpleRightWide/m/outline":["M3.11328 2.62598C2.03181 2.62598 1.15545 3.50258 1.15527 4.58398V11.584C1.15544 12.6654 2.03181 13.543 3.11328 13.543H12.7803C13.8615 13.5427 14.7381 12.6653 14.7383 11.584V4.58398C14.7381 3.50275 13.8615 2.62625 12.7803 2.62598H3.11328ZM9.82129 12.293H3.11328C2.72216 12.293 2.40544 11.9751 2.40527 11.584V4.58398C2.40545 4.19293 2.72217 3.87598 3.11328 3.87598H9.82129V12.293ZM12.7803 3.87598C13.1711 3.87625 13.4881 4.1931 13.4883 4.58398V11.584C13.4881 11.9749 13.1711 12.2927 12.7803 12.293H11.0713V3.87598H12.7803Z"],"SidebarSimpleRightWide/s/filled":["M7.46033 2.81299V9.31299H2.33533C1.99013 9.31299 1.71033 9.03319 1.71033 8.68799V3.43799C1.71033 3.09281 1.99013 2.81299 2.33533 2.81299H7.46033ZM10.9603 3.43799C10.9603 2.6786 10.3447 2.06299 9.58533 2.06299H2.33533C1.57593 2.06299 0.960327 2.6786 0.960327 3.43799V8.68799C0.960327 9.44739 1.57593 10.063 2.33533 10.063H9.58533C10.3447 10.063 10.9603 9.44739 10.9603 8.68799V3.43799Z"],"SidebarSimpleRightWide/s/outline":["M2.33496 1.93848C1.50651 1.93848 0.834961 2.61005 0.834961 3.43848V8.68848C0.835217 9.5167 1.50668 10.1885 2.33496 10.1885H9.58496C10.4131 10.1883 11.0847 9.51658 11.085 8.68848V3.43848C11.085 2.61017 10.4132 1.93867 9.58496 1.93848H2.33496ZM7.33496 9.18848H2.33496C2.05896 9.18848 1.83522 8.96442 1.83496 8.68848V3.43848C1.83496 3.16233 2.05881 2.93848 2.33496 2.93848H7.33496V9.18848ZM9.58496 2.93848C9.86094 2.93867 10.085 3.16246 10.085 3.43848V8.68848C10.0847 8.96429 9.86078 9.18828 9.58496 9.18848H8.33496V2.93848H9.58496Z"],"SkipNext/l/filled":["M19.25 4C19.6642 4 20 4.33579 20 4.75V19.25C20 19.6642 19.6642 20 19.25 20C18.8358 20 18.5 19.6642 18.5 19.25V4.75C18.5 4.33579 18.8358 4 19.25 4Z","M4 5.73535C4 4.32715 5.57894 3.53659 6.72266 4.29395L16.1826 10.5586C17.2189 11.2448 17.2187 12.754 16.1826 13.4404L6.72266 19.7061C5.57895 20.4634 4 19.6728 4 18.2646V5.73535Z"],"SkipNext/l/outline":["M19.25 4C19.6642 4 20 4.33579 20 4.75V19.25C20 19.6642 19.6642 20 19.25 20C18.8358 20 18.5 19.6642 18.5 19.25V4.75C18.5 4.33579 18.8358 4 19.25 4Z","M4 5.73535C4 4.32716 5.57894 3.53661 6.72266 4.29395L16.1816 10.5586C17.218 11.2449 17.219 12.7551 16.1826 13.4414L6.72266 19.7061C5.57899 20.4634 4 19.6729 4 18.2646V5.73535ZM5.89453 5.54492C5.7098 5.42258 5.5 5.56857 5.5 5.73535V18.2646C5.5 18.3525 5.54392 18.4248 5.62793 18.4688C5.71268 18.5131 5.80874 18.5119 5.89453 18.4551L15.3545 12.1904L15.4004 12.1514C15.4929 12.0505 15.4776 11.8911 15.3545 11.8096L5.89453 5.54492Z"],"SkipNext/m/filled":["M12.833 2.66695C13.1091 2.66695 13.333 2.89081 13.333 3.16695V12.833C13.333 13.1091 13.1091 13.333 12.833 13.333C12.557 13.3328 12.333 13.109 12.333 12.833V3.16695C12.333 2.89093 12.557 2.66715 12.833 2.66695Z","M2.66699 3.8232C2.66706 2.8846 3.71902 2.35777 4.48145 2.86226L10.7881 7.03902C11.479 7.49655 11.479 8.50336 10.7881 8.96089L4.48145 13.1377C3.71903 13.6421 2.66708 13.1153 2.66699 12.1767V3.8232Z"],"SkipNext/m/outline":["M12.834 2.54199C13.1788 2.54237 13.459 2.82205 13.459 3.16699V12.834C13.4586 13.1786 13.1786 13.4586 12.834 13.459C12.489 13.459 12.2093 13.1789 12.209 12.834V3.16699C12.209 2.82181 12.4888 2.54199 12.834 2.54199Z","M2.54199 3.82324C2.54232 2.78136 3.70852 2.20129 4.55078 2.75879L10.8574 6.93555C11.6226 7.4426 11.6227 8.55853 10.8574 9.06543L4.55078 13.2422C3.70854 13.7995 2.54222 13.2187 2.54199 12.1768V3.82324ZM3.81055 3.79883C3.80062 3.80403 3.79544 3.81016 3.79395 3.8125L3.79297 3.81445C3.79297 3.81445 3.79203 3.81815 3.79199 3.82324V12.1768C3.79202 12.1826 3.79297 12.1865 3.79297 12.1865L3.79395 12.1885C3.79572 12.191 3.80112 12.1972 3.81055 12.2021C3.82021 12.2071 3.83006 12.2092 3.83691 12.209C3.8418 12.2088 3.84971 12.2069 3.86133 12.1992L10.168 8.02344C10.1767 8.01763 10.1797 8.01172 10.1797 8.01172C10.1809 8.00937 10.1816 8.00487 10.1816 8C10.1816 7.99558 10.1808 7.99162 10.1797 7.98926C10.1797 7.98926 10.1765 7.98334 10.168 7.97754L3.86133 3.80078C3.84973 3.7931 3.84179 3.79218 3.83691 3.79199C3.82997 3.79177 3.82035 3.79377 3.81055 3.79883Z"],"SkipNext/s/filled":["M9.625 2C9.8321 2 10 2.1679 10 2.375V9.625C10 9.8321 9.8321 10 9.625 10C9.4179 10 9.25 9.8321 9.25 9.625V2.375C9.25 2.1679 9.4179 2 9.625 2Z","M2 2.86719C2.00023 2.16326 2.78955 1.76879 3.36133 2.14746L8.09082 5.2793C8.60902 5.62245 8.60902 6.37755 8.09082 6.7207L3.36133 9.85254C2.78956 10.2312 2.00025 9.8367 2 9.13281V2.86719Z"],"SkipNext/s/outline":["M9.625 1.875C9.90114 1.875 10.125 2.09886 10.125 2.375V9.625C10.125 9.90114 9.90114 10.125 9.625 10.125C9.34886 10.125 9.125 9.90114 9.125 9.625V2.375C9.125 2.09886 9.34886 1.875 9.625 1.875Z","M1.875 2.86719C1.87525 2.05983 2.77898 1.61137 3.43066 2.04297L8.16016 5.17578C8.7528 5.56837 8.7528 6.43163 8.16016 6.82422L3.43066 9.95703C2.779 10.3886 1.87523 9.94022 1.875 9.13281V2.86719ZM2.875 9.12402L2.87793 9.12305L7.59473 6L2.87793 2.87695C2.87624 2.87584 2.875 2.875 2.875 2.875V9.12402Z"],"SlashShortcutCommand/l/filled":["M3.18555 5.93823C3.18555 4.41945 4.41677 3.18823 5.93555 3.18823H18.4355C19.9543 3.18823 21.1855 4.41945 21.1855 5.93823V18.4382C21.1855 19.957 19.9543 21.1882 18.4355 21.1882H5.93555C4.41677 21.1882 3.18555 19.957 3.18555 18.4382V5.93823ZM14.7566 6.76043C15.1309 6.93775 15.2906 7.38495 15.1133 7.75929L10.6133 17.2593C10.436 17.6336 9.98883 17.7933 9.61449 17.616C9.24014 17.4387 9.08043 16.9915 9.25775 16.6171L13.7577 7.11717C13.935 6.74282 14.3822 6.58311 14.7566 6.76043Z"],"SlashShortcutCommand/l/outline":["M19.6855 5.93823C19.6855 5.24787 19.1259 4.68823 18.4355 4.68823H5.93555C5.24519 4.68823 4.68555 5.24788 4.68555 5.93823V18.4382C4.68555 19.1286 5.24518 19.6882 5.93555 19.6882H18.4355C19.1259 19.6882 19.6855 19.1286 19.6855 18.4382V5.93823ZM13.7578 7.11694C13.9352 6.74275 14.3826 6.58321 14.7568 6.7605C15.131 6.93788 15.2906 7.38525 15.1133 7.75952L10.6133 17.2595C10.4359 17.6337 9.98853 17.7933 9.61426 17.616C9.24007 17.4386 9.08053 16.9912 9.25781 16.6169L13.7578 7.11694ZM21.1855 18.4382C21.1855 19.957 19.9544 21.1882 18.4355 21.1882H5.93555C4.41677 21.1882 3.18555 19.9571 3.18555 18.4382V5.93823C3.18555 4.41945 4.41676 3.18823 5.93555 3.18823H18.4355C19.9544 3.18823 21.1855 4.41946 21.1855 5.93823V18.4382Z"],"SlashShortcutCommand/m/filled":["M2.12366 3.95882C2.12366 2.9463 2.94447 2.12549 3.95699 2.12549H12.2903C13.3029 2.12549 14.1237 2.9463 14.1237 3.95882V12.2922C14.1237 13.3047 13.3029 14.1255 12.2903 14.1255H3.95699C2.94447 14.1255 2.12366 13.3047 2.12366 12.2922V3.95882ZM9.83772 4.50695C10.0873 4.62517 10.1937 4.9233 10.0755 5.17286L7.07552 11.5062C6.95732 11.7558 6.65918 11.8622 6.40962 11.744C6.16005 11.6258 6.05358 11.3277 6.17179 11.0781L9.17179 4.74478C9.28999 4.49521 9.58812 4.38874 9.83772 4.50695Z"],"SlashShortcutCommand/m/outline":["M12.9987 3.9585C12.9985 3.56755 12.6816 3.25066 12.2906 3.25049H3.95667C3.56572 3.25066 3.24883 3.56755 3.24866 3.9585V12.2925C3.24883 12.6834 3.56571 13.0003 3.95667 13.0005H12.2906C12.6816 13.0003 12.9985 12.6834 12.9987 12.2925V3.9585ZM9.0592 4.69092C9.20711 4.37928 9.57943 4.24635 9.89124 4.39404C10.2031 4.54181 10.3358 4.91416 10.1881 5.22607L7.18811 11.5601C7.0402 11.8717 6.66788 12.0046 6.35608 11.8569C6.04419 11.7092 5.91152 11.3368 6.0592 11.0249L9.0592 4.69092ZM14.2487 12.2925C14.2485 13.3738 13.372 14.2503 12.2906 14.2505H3.95667C2.87537 14.2503 1.99883 13.3738 1.99866 12.2925V3.9585C1.99883 2.8772 2.87537 2.00066 3.95667 2.00049H12.2906C13.372 2.00066 14.2485 2.8772 14.2487 3.9585V12.2925Z"],"SlashShortcutCommand/s/filled":["M1.59277 2.96912C1.59277 2.20973 2.20838 1.59412 2.96777 1.59412H9.21777C9.97717 1.59412 10.5928 2.20973 10.5928 2.96912V9.21912C10.5928 9.97852 9.97717 10.5941 9.21777 10.5941H2.96777C2.20838 10.5941 1.59277 9.97852 1.59277 9.21912V2.96912ZM7.37832 3.38022C7.56547 3.46888 7.64532 3.69248 7.55667 3.87965L5.30667 8.62967C5.21802 8.81682 4.99441 8.89667 4.80724 8.80802C4.62007 8.71937 4.54021 8.49577 4.62887 8.30857L6.87887 3.55859C6.96752 3.37141 7.19112 3.29156 7.37832 3.38022Z"],"SlashShortcutCommand/s/outline":["M9.71777 2.96912C9.71777 2.69297 9.49393 2.46912 9.21777 2.46912H2.96777C2.69163 2.46912 2.46777 2.69297 2.46777 2.96912V9.21912C2.46777 9.49527 2.69163 9.71912 2.96777 9.71912H9.21777C9.49393 9.71912 9.71777 9.49527 9.71777 9.21912V2.96912ZM6.76562 3.50525C6.8838 3.25577 7.18213 3.14895 7.43164 3.26697C7.68112 3.38514 7.78794 3.68347 7.66992 3.93298L5.41992 8.68298C5.30175 8.93246 5.00342 9.03929 4.75391 8.92126C4.50443 8.80309 4.3976 8.50476 4.51562 8.25525L6.76562 3.50525ZM10.7178 9.21912C10.7178 10.0476 10.0462 10.7191 9.21777 10.7191H2.96777C2.13935 10.7191 1.46777 10.0476 1.46777 9.21912V2.96912C1.46777 2.14069 2.13935 1.46912 2.96777 1.46912H9.21777C10.0462 1.46912 10.7178 2.14069 10.7178 2.96912V9.21912Z"],"SortFilter/l/filled":["M6.33701 4.36816C6.75122 4.36816 7.08701 4.70395 7.08701 5.11816V17.8066L8.80478 16.0879C9.09759 15.7949 9.57333 15.7951 9.8663 16.0879C10.159 16.3807 10.159 16.8555 9.8663 17.1484L6.86826 20.1484C6.72776 20.289 6.53672 20.3679 6.33798 20.3682C6.13907 20.3683 5.94742 20.289 5.80673 20.1484L2.80576 17.1484C2.51285 16.8557 2.51215 16.3809 2.80478 16.0879C3.09759 15.7949 3.57333 15.7951 3.8663 16.0879L5.58701 17.8086V5.11816C5.58701 4.70406 5.92293 4.36833 6.33701 4.36816Z","M20.586 16.8682C21.0001 16.8683 21.336 17.2041 21.336 17.6182C21.336 18.0323 21.0001 18.368 20.586 18.3682H16.086C15.6718 18.3682 15.336 18.0324 15.336 17.6182C15.336 17.204 15.6718 16.8682 16.086 16.8682H20.586Z","M20.586 11.6182C21.0001 11.6183 21.336 11.9541 21.336 12.3682C21.336 12.7823 21.0001 13.118 20.586 13.1182H14.086C13.6718 13.1182 13.336 12.7824 13.336 12.3682C13.336 11.954 13.6718 11.6182 14.086 11.6182H20.586Z","M20.586 6.36816C21.0001 6.36834 21.336 6.70406 21.336 7.11816C21.336 7.53227 21.0001 7.86799 20.586 7.86816H12.086C11.6718 7.86816 11.336 7.53237 11.336 7.11816C11.336 6.70395 11.6718 6.36816 12.086 6.36816H20.586Z"],"SortFilter/l/outline":["M6.33701 4.36816C6.75122 4.36816 7.08701 4.70395 7.08701 5.11816V17.8066L8.80478 16.0879C9.09759 15.7949 9.57333 15.7951 9.8663 16.0879C10.159 16.3807 10.159 16.8555 9.8663 17.1484L6.86826 20.1484C6.72776 20.289 6.53672 20.3679 6.33798 20.3682C6.13907 20.3683 5.94742 20.289 5.80673 20.1484L2.80576 17.1484C2.51285 16.8557 2.51215 16.3809 2.80478 16.0879C3.09759 15.7949 3.57333 15.7951 3.8663 16.0879L5.58701 17.8086V5.11816C5.58701 4.70406 5.92293 4.36833 6.33701 4.36816Z","M20.586 16.8682C21.0001 16.8683 21.336 17.2041 21.336 17.6182C21.336 18.0323 21.0001 18.368 20.586 18.3682H16.086C15.6718 18.3682 15.336 18.0324 15.336 17.6182C15.336 17.204 15.6718 16.8682 16.086 16.8682H20.586Z","M20.586 11.6182C21.0001 11.6183 21.336 11.9541 21.336 12.3682C21.336 12.7823 21.0001 13.118 20.586 13.1182H14.086C13.6718 13.1182 13.336 12.7824 13.336 12.3682C13.336 11.954 13.6718 11.6182 14.086 11.6182H20.586Z","M20.586 6.36816C21.0001 6.36834 21.336 6.70406 21.336 7.11816C21.336 7.53227 21.0001 7.86799 20.586 7.86816H12.086C11.6718 7.86816 11.336 7.53237 11.336 7.11816C11.336 6.70395 11.6718 6.36816 12.086 6.36816H20.586Z"],"SortFilter/m/filled":["M4.22477 2.91211C4.50091 2.91211 4.72477 3.13597 4.72477 3.41211V11.8711L5.87028 10.7256C6.06549 10.5303 6.382 10.5304 6.57731 10.7256C6.77238 10.9208 6.77244 11.2374 6.57731 11.4326L4.57829 13.4326C4.48458 13.5262 4.35723 13.579 4.22477 13.5791C4.09226 13.5791 3.96499 13.5263 3.87126 13.4326L1.87028 11.4326C1.675 11.2374 1.67516 10.9209 1.87028 10.7256C2.06549 10.5303 2.382 10.5304 2.57731 10.7256L3.72477 11.8721V3.41211C3.72477 3.13601 3.94868 2.91218 4.22477 2.91211Z","M13.7238 11.2451C13.9998 11.2451 14.2236 11.4691 14.2238 11.7451C14.2238 12.0213 13.9999 12.2451 13.7238 12.2451H10.7238C10.4477 12.2451 10.2238 12.0212 10.2238 11.7451C10.224 11.4691 10.4478 11.2451 10.7238 11.2451H13.7238Z","M13.7238 7.74512C13.9998 7.74512 14.2236 7.96914 14.2238 8.24512C14.2238 8.52125 13.9999 8.74512 13.7238 8.74512H9.39079C9.11465 8.74512 8.89079 8.52125 8.89079 8.24512C8.89097 7.96914 9.11477 7.74512 9.39079 7.74512H13.7238Z","M13.7238 4.24512C13.9998 4.24512 14.2236 4.46913 14.2238 4.74512C14.2238 5.02126 13.9999 5.24512 13.7238 5.24512H8.0568C7.78084 5.24492 7.5568 5.02113 7.5568 4.74512C7.55698 4.46925 7.78095 4.24532 8.0568 4.24512H13.7238Z"],"SortFilter/m/outline":["M4.22477 2.91211C4.50091 2.91211 4.72477 3.13597 4.72477 3.41211V11.8711L5.87028 10.7256C6.06549 10.5303 6.382 10.5304 6.57731 10.7256C6.77238 10.9208 6.77244 11.2374 6.57731 11.4326L4.57829 13.4326C4.48458 13.5262 4.35723 13.579 4.22477 13.5791C4.09226 13.5791 3.96499 13.5263 3.87126 13.4326L1.87028 11.4326C1.675 11.2374 1.67516 10.9209 1.87028 10.7256C2.06549 10.5303 2.382 10.5304 2.57731 10.7256L3.72477 11.8721V3.41211C3.72477 3.13601 3.94868 2.91218 4.22477 2.91211Z","M13.7238 11.2451C13.9998 11.2451 14.2236 11.4691 14.2238 11.7451C14.2238 12.0213 13.9999 12.2451 13.7238 12.2451H10.7238C10.4477 12.2451 10.2238 12.0212 10.2238 11.7451C10.224 11.4691 10.4478 11.2451 10.7238 11.2451H13.7238Z","M13.7238 7.74512C13.9998 7.74512 14.2236 7.96914 14.2238 8.24512C14.2238 8.52125 13.9999 8.74512 13.7238 8.74512H9.39079C9.11465 8.74512 8.89079 8.52125 8.89079 8.24512C8.89097 7.96914 9.11477 7.74512 9.39079 7.74512H13.7238Z","M13.7238 4.24512C13.9998 4.24512 14.2236 4.46913 14.2238 4.74512C14.2238 5.02126 13.9999 5.24512 13.7238 5.24512H8.0568C7.78084 5.24492 7.5568 5.02113 7.5568 4.74512C7.55698 4.46925 7.78095 4.24532 8.0568 4.24512H13.7238Z"],"SortFilter/s/filled":["M3.16867 2.18359C3.37577 2.18361 3.54367 2.35247 3.54367 2.55957V8.90332L4.40305 8.04395C4.54947 7.89768 4.78692 7.89762 4.93332 8.04395C5.07953 8.19033 5.07955 8.42779 4.93332 8.57422L3.4343 10.0742C3.36399 10.1446 3.26813 10.1845 3.16867 10.1846C3.06933 10.1846 2.97434 10.1444 2.90403 10.0742L1.40305 8.57422C1.25656 8.42782 1.25664 8.19045 1.40305 8.04395C1.54947 7.89768 1.78692 7.89762 1.93332 8.04395L2.79367 8.9043V2.55957C2.79367 2.35247 2.96156 2.18359 3.16867 2.18359Z","M10.2927 8.43457C10.4998 8.43457 10.6677 8.60247 10.6677 8.80957C10.6674 9.01645 10.4996 9.18457 10.2927 9.18457H8.0427C7.83583 9.18449 7.66796 9.0164 7.6677 8.80957C7.6677 8.60252 7.83567 8.43465 8.0427 8.43457H10.2927Z","M10.2927 5.80957C10.4998 5.80957 10.6677 5.97747 10.6677 6.18457C10.6674 6.39145 10.4996 6.55957 10.2927 6.55957H7.0427C6.83583 6.55949 6.66796 6.3914 6.6677 6.18457C6.6677 5.97752 6.83567 5.80965 7.0427 5.80957H10.2927Z","M10.2927 3.18457C10.4998 3.18457 10.6677 3.35247 10.6677 3.55957C10.6674 3.76645 10.4996 3.93457 10.2927 3.93457H6.0427C5.83583 3.93449 5.66796 3.7664 5.6677 3.55957C5.6677 3.35252 5.83567 3.18465 6.0427 3.18457H10.2927Z"],"SortFilter/s/outline":["M3.16867 2.18359C3.37577 2.18361 3.54367 2.35247 3.54367 2.55957V8.90332L4.40305 8.04395C4.54947 7.89768 4.78692 7.89762 4.93332 8.04395C5.07953 8.19033 5.07955 8.42779 4.93332 8.57422L3.4343 10.0742C3.36399 10.1446 3.26813 10.1845 3.16867 10.1846C3.06933 10.1846 2.97434 10.1444 2.90403 10.0742L1.40305 8.57422C1.25656 8.42782 1.25664 8.19045 1.40305 8.04395C1.54947 7.89768 1.78692 7.89762 1.93332 8.04395L2.79367 8.9043V2.55957C2.79367 2.35247 2.96156 2.18359 3.16867 2.18359Z","M10.2927 8.43457C10.4998 8.43457 10.6677 8.60247 10.6677 8.80957C10.6674 9.01645 10.4996 9.18457 10.2927 9.18457H8.0427C7.83583 9.18449 7.66796 9.0164 7.6677 8.80957C7.6677 8.60252 7.83567 8.43465 8.0427 8.43457H10.2927Z","M10.2927 5.80957C10.4998 5.80957 10.6677 5.97747 10.6677 6.18457C10.6674 6.39145 10.4996 6.55957 10.2927 6.55957H7.0427C6.83583 6.55949 6.66796 6.3914 6.6677 6.18457C6.6677 5.97752 6.83567 5.80965 7.0427 5.80957H10.2927Z","M10.2927 3.18457C10.4998 3.18457 10.6677 3.35247 10.6677 3.55957C10.6674 3.76645 10.4996 3.93457 10.2927 3.93457H6.0427C5.83583 3.93449 5.66796 3.7664 5.6677 3.55957C5.6677 3.35252 5.83567 3.18465 6.0427 3.18457H10.2927Z"],"SpeedLimitUsageHigh/l/filled":["M12.2217 1.86914C17.7446 1.86914 22.2217 6.3463 22.2217 11.8691C22.2216 15.0438 20.7414 17.8735 18.4365 19.7041C18.1122 19.9614 17.6403 19.9072 17.3828 19.583C17.1253 19.2588 17.1789 18.787 17.5029 18.5293C19.4651 16.971 20.7216 14.5671 20.7217 11.8691C20.7217 7.17472 16.9162 3.36914 12.2217 3.36914C7.52738 3.36927 3.72168 7.17481 3.72168 11.8691C3.72177 14.5671 4.97821 16.971 6.94043 18.5293C7.26477 18.7869 7.31813 19.2587 7.06055 19.583C6.80289 19.9071 6.3311 19.9616 6.00684 19.7041C3.70192 17.8735 2.22177 15.0438 2.22168 11.8691C2.22168 6.34638 6.69895 1.86927 12.2217 1.86914Z","M10.9365 11.3359C11.7825 10.626 13.0439 10.736 13.7539 11.582C14.895 12.9418 15.5878 15.3363 15.8936 16.6104C15.9838 16.9864 15.6252 17.2877 15.2705 17.1338C14.0689 16.6115 11.8305 15.5132 10.6895 14.1533C9.97968 13.3072 10.0904 12.0459 10.9365 11.3359Z"],"SpeedLimitUsageHigh/l/outline":["M12.2217 1.86914C17.7446 1.86914 22.2217 6.3463 22.2217 11.8691C22.2216 15.0438 20.7414 17.8735 18.4365 19.7041C18.1122 19.9614 17.6403 19.9072 17.3828 19.583C17.1253 19.2588 17.1789 18.787 17.5029 18.5293C19.4651 16.971 20.7216 14.5671 20.7217 11.8691C20.7217 7.17472 16.9162 3.36914 12.2217 3.36914C7.52738 3.36927 3.72168 7.17481 3.72168 11.8691C3.72177 14.5671 4.97821 16.971 6.94043 18.5293C7.26477 18.7869 7.31813 19.2587 7.06055 19.583C6.80289 19.9071 6.3311 19.9616 6.00684 19.7041C3.70192 17.8735 2.22177 15.0438 2.22168 11.8691C2.22168 6.34638 6.69895 1.86927 12.2217 1.86914Z","M10.9365 11.3359C11.7825 10.626 13.0439 10.736 13.7539 11.582C14.895 12.9418 15.5878 15.3363 15.8936 16.6104C15.9838 16.9864 15.6252 17.2877 15.2705 17.1338C14.0689 16.6115 11.8305 15.5132 10.6895 14.1533C9.97968 13.3072 10.0904 12.0459 10.9365 11.3359Z"],"SpeedLimitUsageHigh/m/filled":["M8.14844 1.12109C11.8992 1.12134 14.9395 4.16231 14.9395 7.91309C14.9393 10.0692 13.9343 11.9913 12.3691 13.2344C12.0989 13.449 11.7049 13.4039 11.4902 13.1338C11.2756 12.8635 11.3215 12.4696 11.5918 12.2549C12.8711 11.2388 13.6893 9.67166 13.6895 7.91309C13.6895 4.85266 11.2088 2.37134 8.14844 2.37109C5.08786 2.37109 2.60645 4.85251 2.60645 7.91309C2.6066 9.67184 3.42558 11.2388 4.70508 12.2549C4.97522 12.4696 5.02028 12.8635 4.80566 13.1338C4.59108 13.4037 4.19793 13.4485 3.92773 13.2344C2.36249 11.9913 1.3566 10.0693 1.35645 7.91309C1.35645 4.16215 4.39751 1.12109 8.14844 1.12109Z","M7.29102 7.55762C7.85505 7.08431 8.6956 7.15764 9.16895 7.72168C9.92957 8.62809 10.3919 10.2238 10.5957 11.0732C10.6559 11.324 10.4162 11.5247 10.1797 11.4219C9.37855 11.0736 7.88751 10.3419 7.12695 9.43555C6.65362 8.87152 6.72701 8.03097 7.29102 7.55762Z"],"SpeedLimitUsageHigh/m/outline":["M8.14844 0.996094C11.9682 0.996336 15.0645 4.09327 15.0645 7.91309C15.0643 10.109 14.0401 12.0663 12.4463 13.332C12.122 13.5894 11.6502 13.5351 11.3926 13.2109C11.1351 12.8866 11.1894 12.4148 11.5137 12.1572C12.7646 11.1638 13.5643 9.63208 13.5645 7.91309C13.5645 4.92169 11.1398 2.49634 8.14844 2.49609C5.1569 2.49609 2.73145 4.92155 2.73145 7.91309C2.7316 9.63199 3.53143 11.1638 4.78223 12.1572C5.10645 12.4149 5.16087 12.8866 4.90332 13.2109C4.64576 13.5352 4.17396 13.5895 3.84961 13.332C2.2558 12.0663 1.2316 10.109 1.23145 7.91309C1.23145 4.09312 4.32847 0.996094 8.14844 0.996094Z","M7.29102 7.55762C7.85505 7.08431 8.6956 7.15764 9.16895 7.72168C9.92957 8.62809 10.3919 10.2238 10.5957 11.0732C10.6559 11.324 10.4162 11.5247 10.1797 11.4219C9.37855 11.0736 7.88751 10.3419 7.12695 9.43555C6.65362 8.87152 6.72701 8.03097 7.29102 7.55762Z"],"SpeedLimitUsageHigh/s/filled":["M6.11133 0.80957C8.94165 0.809768 11.2363 3.10424 11.2363 5.93457C11.2363 7.56166 10.4769 9.0122 9.2959 9.9502C9.07975 10.1216 8.76544 10.0851 8.59375 9.86914C8.42219 9.6529 8.45862 9.33868 8.6748 9.16699C9.62711 8.41052 10.2363 7.24362 10.2363 5.93457C10.2363 3.65652 8.38936 1.80977 6.11133 1.80957C3.83316 1.80957 1.98633 3.6564 1.98633 5.93457C1.98637 7.2437 2.59544 8.41053 3.54785 9.16699C3.76375 9.3387 3.8003 9.653 3.62891 9.86914C3.45733 10.0852 3.14299 10.1214 2.92676 9.9502C1.74562 9.0122 0.986366 7.56174 0.986328 5.93457C0.986328 3.10411 3.28087 0.80957 6.11133 0.80957Z","M5.46777 5.66797C5.89078 5.31301 6.52193 5.36804 6.87695 5.79102C7.4475 6.47092 7.79344 7.66866 7.94629 8.30566C7.99119 8.49363 7.81208 8.64352 7.63477 8.56641C7.03391 8.3052 5.91513 7.7569 5.34473 7.07715C4.98978 6.65419 5.04493 6.02301 5.46777 5.66797Z"],"SpeedLimitUsageHigh/s/outline":["M6.11096 0.559448C9.07953 0.559448 11.486 2.96592 11.486 5.93445C11.486 7.64098 10.6899 9.16198 9.45178 10.1454C9.12741 10.403 8.65567 10.3487 8.39807 10.0243C8.14055 9.69993 8.19385 9.22816 8.51819 8.97058C9.4136 8.25948 9.98596 7.16424 9.98596 5.93445C9.98596 3.79434 8.25109 2.05945 6.11096 2.05945C3.97086 2.05945 2.23596 3.79435 2.23596 5.93445C2.23596 7.16425 2.80831 8.25948 3.70374 8.97058C4.02808 9.22816 4.08138 9.69992 3.82385 10.0243C3.56626 10.3487 3.09451 10.403 2.77014 10.1454C1.53205 9.16197 0.735962 7.64097 0.735962 5.93445C0.735962 2.96592 3.14243 0.559448 6.11096 0.559448Z","M5.46838 5.66785C5.8913 5.3131 6.52157 5.3682 6.87659 5.79089C7.44714 6.47079 7.79405 7.66854 7.9469 8.30554C7.99174 8.49334 7.81254 8.64393 7.63538 8.56726C7.03468 8.30616 5.91593 7.75681 5.34534 7.07703C4.99031 6.65398 5.04529 6.02285 5.46838 5.66785Z"],"SpeedLimitUsageMiddle/l/filled":["M20.7219 11.8688C20.7219 7.17442 16.9164 3.36884 12.2219 3.36884C7.52751 3.36884 3.72192 7.17442 3.72192 11.8688C3.72192 14.5669 4.97838 16.9706 6.94067 18.529C7.26501 18.7866 7.31838 19.2583 7.06079 19.5827C6.80319 19.9071 6.33145 19.9614 6.00708 19.7038C3.70209 17.8731 2.22192 15.0436 2.22192 11.8688C2.22192 6.34599 6.69908 1.86884 12.2219 1.86884C17.7448 1.86884 22.2219 6.346 22.2219 11.8688C22.2219 15.0436 20.7417 17.8731 18.4368 19.7038C18.1124 19.9614 17.6407 19.9071 17.3831 19.5827C17.1255 19.2583 17.1788 18.7866 17.5032 18.529C19.4654 16.9706 20.7219 14.5669 20.7219 11.8688Z","M11.4072 1.90084C11.82 1.86755 12.1823 2.17569 12.2158 2.58834C12.2491 3.00117 11.9411 3.36358 11.5283 3.39693C7.15886 3.74943 3.72179 7.40794 3.72168 11.8686C3.72168 14.5665 4.97828 16.9704 6.94043 18.5288C7.26476 18.7864 7.31813 19.2581 7.06055 19.5825C6.80295 19.9068 6.3312 19.9612 6.00684 19.7036C3.70199 17.8729 2.22168 15.0433 2.22168 11.8686C2.22179 6.62004 6.26511 2.31582 11.4072 1.90084Z","M11.8154 7.64107C11.9883 7.29531 12.4562 7.29518 12.6289 7.64107C13.2136 8.81359 14.2217 11.0935 14.2217 12.8686C14.2215 13.9731 13.3262 14.8686 12.2217 14.8686C11.1173 14.8685 10.2218 13.973 10.2217 12.8686C10.2217 11.0935 11.2307 8.81358 11.8154 7.64107Z"],"SpeedLimitUsageMiddle/l/outline":["M20.7219 11.8688C20.7219 7.17442 16.9164 3.36884 12.2219 3.36884C7.52751 3.36884 3.72192 7.17442 3.72192 11.8688C3.72192 14.5669 4.97838 16.9706 6.94067 18.529C7.26501 18.7866 7.31838 19.2583 7.06079 19.5827C6.80319 19.9071 6.33145 19.9614 6.00708 19.7038C3.70209 17.8731 2.22192 15.0436 2.22192 11.8688C2.22192 6.34599 6.69908 1.86884 12.2219 1.86884C17.7448 1.86884 22.2219 6.346 22.2219 11.8688C22.2219 15.0436 20.7417 17.8731 18.4368 19.7038C18.1124 19.9614 17.6407 19.9071 17.3831 19.5827C17.1255 19.2583 17.1788 18.7866 17.5032 18.529C19.4654 16.9706 20.7219 14.5669 20.7219 11.8688Z","M11.4072 1.90084C11.82 1.86755 12.1823 2.17569 12.2158 2.58834C12.2491 3.00117 11.9411 3.36358 11.5283 3.39693C7.15886 3.74943 3.72179 7.40794 3.72168 11.8686C3.72168 14.5665 4.97828 16.9704 6.94043 18.5288C7.26476 18.7864 7.31813 19.2581 7.06055 19.5825C6.80295 19.9068 6.3312 19.9612 6.00684 19.7036C3.70199 17.8729 2.22168 15.0433 2.22168 11.8686C2.22179 6.62004 6.26511 2.31582 11.4072 1.90084Z","M11.8154 7.64107C11.9883 7.29531 12.4562 7.29518 12.6289 7.64107C13.2136 8.81359 14.2217 11.0935 14.2217 12.8686C14.2215 13.9731 13.3262 14.8686 12.2217 14.8686C11.1173 14.8685 10.2218 13.973 10.2217 12.8686C10.2217 11.0935 11.2307 8.81358 11.8154 7.64107Z"],"SpeedLimitUsageMiddle/m/filled":["M13.6893 7.9129C13.6893 4.85243 11.2088 2.37109 8.14832 2.37091C5.08774 2.37091 2.60632 4.85233 2.60632 7.9129C2.60642 9.67173 3.42541 11.2386 4.70496 12.2547C4.97525 12.4694 5.0202 12.8633 4.80554 13.1336C4.59092 13.4036 4.19783 13.4485 3.92761 13.2342C2.36233 11.9911 1.35642 10.0691 1.35632 7.9129C1.35632 4.16197 4.39738 1.12091 8.14832 1.12091C11.8991 1.12109 14.9393 4.16208 14.9393 7.9129C14.9392 10.0691 13.9342 11.9911 12.369 13.2342C12.0987 13.4488 11.7048 13.4038 11.4901 13.1336C11.2754 12.8633 11.3214 12.4694 11.5917 12.2547C12.871 11.2385 13.6892 9.67155 13.6893 7.9129Z","M7.5957 1.14251C7.93939 1.11508 8.24059 1.3721 8.26855 1.71575C8.29603 2.05943 8.03989 2.36056 7.69629 2.3886C4.84776 2.61833 2.60669 5.00403 2.60645 7.91204C2.60645 9.67093 3.42555 11.2386 4.70508 12.2548C4.97497 12.4694 5.01992 12.8626 4.80566 13.1327C4.59104 13.403 4.19802 13.4478 3.92773 13.2333C2.36246 11.9902 1.35645 10.0683 1.35645 7.91204C1.35669 4.34736 4.10316 1.42417 7.5957 1.14251Z","M7.87695 5.09466C7.99209 4.86384 8.30381 4.86385 8.41895 5.09466C8.80876 5.87641 9.48145 7.39576 9.48145 8.57903C9.48137 9.31537 8.88381 9.91204 8.14746 9.91204C7.41131 9.9118 6.81453 9.31522 6.81445 8.57903C6.81445 7.39574 7.48714 5.87639 7.87695 5.09466Z"],"SpeedLimitUsageMiddle/m/outline":["M13.5643 7.9129C13.5643 4.92147 11.1397 2.49609 8.14832 2.49591C5.15678 2.49591 2.73132 4.92136 2.73132 7.9129C2.73142 9.63188 3.53127 11.1636 4.7821 12.157C5.10647 12.4146 5.16079 12.8864 4.9032 13.2108C4.6456 13.5351 4.17386 13.5894 3.84949 13.3318C2.25564 12.0661 1.23142 10.1089 1.23132 7.9129C1.23132 4.09294 4.32835 0.995911 8.14832 0.995911C11.9682 0.996087 15.0643 4.09305 15.0643 7.9129C15.0642 10.1089 14.04 12.0661 12.4462 13.3318C12.1218 13.5893 11.65 13.5351 11.3925 13.2108C11.135 12.8864 11.1892 12.4146 11.5135 12.157C12.7645 11.1636 13.5642 9.63197 13.5643 7.9129Z","M7.58496 1.01808C7.99771 0.984856 8.36015 1.29286 8.39355 1.70558C8.42681 2.11834 8.11877 2.48074 7.70605 2.51417C4.92177 2.73872 2.73145 5.07005 2.73145 7.91261C2.73146 9.63163 3.53142 11.1632 4.78223 12.1568C5.10643 12.4143 5.16068 12.8861 4.90332 13.2105C4.64575 13.5348 4.17398 13.5891 3.84961 13.3316C2.25578 12.0657 1.23146 10.1086 1.23145 7.91261C1.23145 4.28214 4.028 1.30509 7.58496 1.01808Z","M7.87695 5.09425C7.99213 4.86361 8.30379 4.8636 8.41895 5.09425C8.80871 5.87586 9.48133 7.39527 9.48145 8.57863C9.48145 9.31503 8.88386 9.91261 8.14746 9.91261C7.41127 9.91237 6.81445 9.31488 6.81445 8.57863C6.81457 7.39527 7.48719 5.87586 7.87695 5.09425Z"],"SpeedLimitUsageMiddle/s/filled":["M10.236 5.93445C10.236 3.65627 8.38917 1.80945 6.11096 1.80945C3.83279 1.80945 1.98596 3.65628 1.98596 5.93445C1.98596 7.24363 2.59504 8.41038 3.54749 9.16687C3.76367 9.33855 3.80011 9.65278 3.62854 9.86902C3.45689 10.0852 3.14263 10.1215 2.92639 9.95007C1.74522 9.01205 0.985962 7.56166 0.985962 5.93445C0.985962 3.10399 3.2805 0.809448 6.11096 0.809448C8.94146 0.809448 11.236 3.10399 11.236 5.93445C11.236 7.56167 10.4767 9.01206 9.29553 9.95007C9.0793 10.1215 8.76503 10.0852 8.59338 9.86902C8.42182 9.65278 8.45826 9.33855 8.67444 9.16687C9.62687 8.41038 10.236 7.24362 10.236 5.93445Z","M5.69434 0.826501C5.9694 0.804556 6.21024 1.00941 6.23242 1.28451C6.25453 1.55958 6.04943 1.80022 5.77441 1.82259C3.65409 1.99368 1.98634 3.77021 1.98633 5.9349C1.98648 7.24377 2.59566 8.40995 3.54785 9.16634C3.76384 9.33806 3.80041 9.6533 3.62891 9.86947C3.45723 10.0855 3.14296 10.121 2.92676 9.94955C1.74571 9.01162 0.986479 7.56192 0.986328 5.9349C0.986338 3.24482 3.05872 1.03906 5.69434 0.826501Z","M5.90723 3.82064C5.99358 3.64753 6.2281 3.64754 6.31445 3.82064C6.60678 4.40685 7.11124 5.54641 7.11133 6.43392C7.11133 6.9861 6.66346 7.43372 6.11133 7.43392C5.55903 7.43392 5.11133 6.98622 5.11133 6.43392C5.11142 5.54645 5.6149 4.40687 5.90723 3.82064Z"],"SpeedLimitUsageMiddle/s/outline":["M9.98596 5.93445C9.98596 3.79434 8.25109 2.05945 6.11096 2.05945C3.97086 2.05945 2.23596 3.79435 2.23596 5.93445C2.23596 7.16425 2.80831 8.25948 3.70374 8.97058C4.02808 9.22816 4.08138 9.69992 3.82385 10.0243C3.56626 10.3487 3.09451 10.403 2.77014 10.1454C1.53205 9.16197 0.735962 7.64097 0.735962 5.93445C0.735962 2.96592 3.14243 0.559448 6.11096 0.559448C9.07953 0.559448 11.486 2.96592 11.486 5.93445C11.486 7.64098 10.6899 9.16198 9.45178 10.1454C9.12741 10.403 8.65567 10.3487 8.39807 10.0243C8.14055 9.69993 8.19385 9.22816 8.51819 8.97058C9.4136 8.25948 9.98596 7.16424 9.98596 5.93445Z","M5.67383 0.576654C6.08648 0.543567 6.44902 0.85151 6.48242 1.26415C6.51561 1.67679 6.20748 2.03919 5.79492 2.07275C3.80331 2.23337 2.23633 3.90163 2.23633 5.93505C2.23652 7.1646 2.80883 8.26021 3.7041 8.97119C4.02797 9.22885 4.08159 9.7007 3.82422 10.0249C3.56666 10.349 3.0948 10.4033 2.77051 10.146C1.53243 9.1627 0.736521 7.64143 0.736328 5.93505C0.736328 3.11372 2.90953 0.799725 5.67383 0.576654Z","M5.90723 3.82079C5.99358 3.64768 6.2281 3.64769 6.31445 3.82079C6.6068 4.40707 7.1113 5.5466 7.11133 6.43408C7.11133 6.98625 6.66346 7.43388 6.11133 7.43408C5.55903 7.43408 5.11133 6.98638 5.11133 6.43408C5.11136 5.54665 5.61487 4.40709 5.90723 3.82079Z"],"SquareArrowTopRightOpenLink/l/filled":["M8.8252 4.59473C9.37735 4.59489 9.8252 5.04254 9.8252 5.59473C9.82517 6.14688 9.37733 6.59456 8.8252 6.59473H6.4502C5.91025 6.59473 5.5609 6.59584 5.29493 6.61621C5.04023 6.63576 4.94406 6.66843 4.89747 6.69043C4.68836 6.78934 4.51983 6.9579 4.4209 7.16699C4.3989 7.2135 4.36627 7.30935 4.34668 7.56445C4.32629 7.83046 4.3252 8.17961 4.3252 8.71973V16.8945C4.3252 17.471 4.32646 17.8436 4.34961 18.127C4.37181 18.3985 4.4094 18.4994 4.43457 18.5488C4.53045 18.7368 4.68325 18.8896 4.8711 18.9854C4.92062 19.0105 5.02188 19.0482 5.29297 19.0703C5.57627 19.0934 5.94905 19.0947 6.52539 19.0947H14.625C15.2014 19.0947 15.5741 19.0935 15.8574 19.0703C16.1288 19.0481 16.2299 19.0105 16.2793 18.9854C16.4672 18.8895 16.6201 18.7367 16.7158 18.5488C16.741 18.4994 16.7786 18.3984 16.8008 18.127C16.8239 17.8436 16.8252 17.471 16.8252 16.8945V13.8447C16.8252 13.2924 17.2729 12.8447 17.8252 12.8447C18.3773 12.8449 18.8252 13.2925 18.8252 13.8447V16.8945C18.8252 17.4381 18.8263 17.9064 18.7949 18.29C18.7626 18.6853 18.6908 19.0788 18.4981 19.457C18.2106 20.0212 17.7516 20.48 17.1875 20.7676C16.8093 20.9603 16.4157 21.0321 16.0205 21.0645C15.6369 21.0958 15.1684 21.0947 14.625 21.0947H6.52539C5.98199 21.0947 5.51351 21.0958 5.12989 21.0645C4.73472 21.0321 4.34112 20.9602 3.9629 20.7676C3.39864 20.48 2.93988 20.0211 2.65235 19.457C2.45959 19.0787 2.38779 18.6853 2.35547 18.29C2.32413 17.9064 2.3252 17.4381 2.3252 16.8945V8.71973C2.3252 8.21054 2.32494 7.77227 2.35254 7.41211C2.38096 7.04143 2.4434 6.67185 2.61329 6.3125C2.91005 5.6851 3.41557 5.17956 4.04297 4.88281C4.40225 4.713 4.77198 4.65048 5.14258 4.62207C5.50269 4.59449 5.94113 4.59473 6.4502 4.59473H8.8252Z","M19.8252 2.59473C20.3773 2.59489 20.8252 3.04254 20.8252 3.59473V10.0947C20.8252 10.6469 20.3773 11.0946 19.8252 11.0947C19.2729 11.0947 18.8252 10.647 18.8252 10.0947V6.00879L11.2822 13.5518C10.8918 13.9422 10.2587 13.9421 9.86817 13.5518C9.47764 13.1612 9.47764 12.5282 9.86817 12.1377L17.4111 4.59473H13.3252C12.7729 4.59473 12.3252 4.14698 12.3252 3.59473C12.3252 3.04244 12.7729 2.59473 13.3252 2.59473H19.8252Z"],"SquareArrowTopRightOpenLink/l/outline":["M8.8252 4.84473C9.23927 4.84489 9.5752 5.18061 9.5752 5.59473C9.57517 6.00881 9.23925 6.34456 8.8252 6.34473H6.4502C5.91424 6.34473 5.55409 6.34495 5.27637 6.36621C5.00696 6.38686 4.87668 6.42441 4.79102 6.46484C4.52961 6.58849 4.31897 6.79914 4.19532 7.06055C4.15484 7.1462 4.11736 7.27625 4.09668 7.5459C4.07541 7.82365 4.0752 8.1836 4.0752 8.71973V16.8945C4.0752 17.4669 4.07544 17.8516 4.09961 18.1475C4.12308 18.4344 4.1658 18.5716 4.21192 18.6621C4.33177 18.8972 4.5228 19.0883 4.75782 19.208C4.84835 19.2541 4.98575 19.2969 5.27246 19.3203C5.5683 19.3445 5.95316 19.3447 6.52539 19.3447H14.625C15.1973 19.3447 15.5821 19.3445 15.8779 19.3203C16.1648 19.2968 16.3021 19.2541 16.3926 19.208C16.6276 19.0882 16.8187 18.8971 16.9385 18.6621C16.9846 18.5716 17.0273 18.4344 17.0508 18.1475C17.075 17.8516 17.0752 17.4669 17.0752 16.8945V13.8447C17.0752 13.4305 17.411 13.0947 17.8252 13.0947C18.2393 13.0949 18.5752 13.4306 18.5752 13.8447V16.8945C18.5752 17.4422 18.5762 17.8984 18.5459 18.2695C18.5149 18.6492 18.4471 19.0057 18.2754 19.3428C18.0118 19.8602 17.5906 20.2813 17.0732 20.5449C16.7362 20.7166 16.3796 20.7844 16 20.8154C15.6289 20.8457 15.1725 20.8447 14.625 20.8447H6.52539C5.97787 20.8447 5.52147 20.8457 5.15039 20.8154C4.77077 20.7844 4.41422 20.7165 4.07715 20.5449C3.55967 20.2813 3.13864 19.8601 2.875 19.3428C2.7033 19.0057 2.63553 18.6492 2.6045 18.2695C2.57417 17.8984 2.5752 17.4422 2.5752 16.8945V8.71973C2.5752 8.20662 2.57486 7.77908 2.60157 7.43066C2.6289 7.07449 2.68747 6.73912 2.83887 6.41895C3.1109 5.84383 3.5743 5.38042 4.14942 5.1084C4.46953 4.95707 4.80505 4.89842 5.16114 4.87109C5.5095 4.84441 5.93722 4.84473 6.4502 4.84473H8.8252Z","M19.8252 2.84473C20.2393 2.84489 20.5752 3.18061 20.5752 3.59473V10.0947C20.5752 10.5088 20.2393 10.8446 19.8252 10.8447C19.411 10.8447 19.0752 10.5089 19.0752 10.0947V5.40527L11.1055 13.375C10.8126 13.6678 10.3378 13.6677 10.0449 13.375C9.75203 13.0821 9.75203 12.6073 10.0449 12.3145L18.0147 4.34473H13.3252C12.911 4.34473 12.5752 4.00891 12.5752 3.59473C12.5752 3.18051 12.911 2.84473 13.3252 2.84473H19.8252Z"],"SquareArrowTopRightOpenLink/m/filled":["M5.88379 3.10449C6.22864 3.10476 6.50863 3.38462 6.50879 3.72949C6.50879 4.0745 6.22874 4.35422 5.88379 4.35449H4.29981C3.94087 4.35449 3.70653 4.35544 3.52735 4.36914C3.35508 4.38235 3.28468 4.40511 3.24707 4.42285C3.09928 4.49284 2.98022 4.61201 2.91016 4.75977C2.89241 4.79729 2.86969 4.8676 2.85645 5.04004C2.84273 5.2192 2.8418 5.4536 2.8418 5.8125V11.2627C2.8418 11.6462 2.84184 11.8969 2.85742 12.0879C2.87241 12.2712 2.89869 12.3449 2.91895 12.3848C2.98688 12.5179 3.09539 12.6265 3.22852 12.6943L3.32325 12.7266C3.36946 12.7374 3.43379 12.7474 3.52539 12.7549C3.71635 12.7705 3.96706 12.7715 4.35059 12.7715H9.75C10.1336 12.7715 10.3842 12.7705 10.5752 12.7549C10.7586 12.7399 10.8323 12.7146 10.8721 12.6943C11.0051 12.6265 11.1138 12.5178 11.1816 12.3848C11.2019 12.3449 11.2272 12.2709 11.2422 12.0879C11.2578 11.8969 11.2588 11.6462 11.2588 11.2627V9.22949C11.259 8.88445 11.5387 8.60449 11.8838 8.60449C12.2286 8.60476 12.5086 8.88462 12.5088 9.22949V11.2627C12.5088 11.6256 12.509 11.9358 12.4883 12.1895C12.467 12.4503 12.4199 12.7068 12.2949 12.9521C12.1073 13.3203 11.8076 13.6199 11.4395 13.8076C11.1941 13.9326 10.9377 13.9796 10.6768 14.001C10.4231 14.0217 10.113 14.0215 9.75 14.0215H4.35059C3.98777 14.0215 3.67743 14.0217 3.42383 14.001C3.16286 13.9797 2.90652 13.9326 2.66114 13.8076C2.29271 13.6199 1.99341 13.3204 1.80567 12.9521C1.68069 12.7068 1.63363 12.4504 1.61231 12.1895C1.5916 11.9358 1.5918 11.6256 1.5918 11.2627V5.8125C1.5918 5.47271 1.59115 5.18232 1.60938 4.94434C1.62816 4.69965 1.67007 4.4586 1.78028 4.22559C1.974 3.81626 2.30353 3.48662 2.71289 3.29297C2.94593 3.18281 3.18694 3.14083 3.43164 3.12207C3.66966 3.10385 3.95998 3.10449 4.29981 3.10449H5.88379Z","M13.2168 1.77148C13.5618 1.77166 13.8418 2.05141 13.8418 2.39648V6.72949C13.8418 7.07453 13.5618 7.35432 13.2168 7.35449C12.8717 7.35442 12.5918 7.0746 12.5918 6.72949V3.90527L7.49219 9.00488C7.24811 9.24887 6.85147 9.24893 6.60742 9.00488C6.36379 8.76086 6.36372 8.36507 6.60742 8.12109L11.707 3.02148H8.88282C8.53786 3.02124 8.25785 2.74148 8.25782 2.39648C8.25782 2.05146 8.53784 1.77173 8.88282 1.77148H13.2168Z"],"SquareArrowTopRightOpenLink/m/outline":["M5.88379 2.97949C6.29767 2.97977 6.63363 3.31559 6.63379 3.72949C6.63379 4.14354 6.29777 4.47922 5.88379 4.47949H4.29981C3.93875 4.47949 3.70948 4.47989 3.53614 4.49316C3.37234 4.50575 3.31917 4.52653 3.30078 4.53516C3.17888 4.59281 3.08019 4.69162 3.02246 4.81348C3.01392 4.8316 2.99312 4.88449 2.98047 5.04883C2.96718 5.22215 2.9668 5.45148 2.9668 5.8125V11.2627C2.9668 11.648 2.96738 11.8925 2.98242 12.0771C2.99676 12.2526 3.02042 12.3087 3.03028 12.3281C3.08622 12.4378 3.17559 12.5272 3.28516 12.583C3.30445 12.5928 3.35962 12.6165 3.53516 12.6309C3.71985 12.6459 3.96495 12.6465 4.35059 12.6465H9.75C10.1354 12.6465 10.3798 12.6459 10.5645 12.6309C10.7386 12.6166 10.7947 12.593 10.8145 12.583C10.9239 12.5271 11.0145 12.4376 11.0703 12.3281C11.0804 12.3081 11.104 12.2505 11.1182 12.0771C11.1332 11.8925 11.1338 11.648 11.1338 11.2627V9.22949C11.134 8.81542 11.4697 8.47949 11.8838 8.47949C12.2977 8.47977 12.6336 8.81559 12.6338 9.22949V11.2627C12.6338 11.6233 12.6345 11.9394 12.6133 12.1992C12.5913 12.4678 12.5417 12.7429 12.4063 13.0088C12.2066 13.4006 11.8878 13.7193 11.4961 13.9189C11.2302 14.0544 10.9552 14.104 10.6865 14.126C10.4267 14.1472 10.1107 14.1465 9.75 14.1465H4.35059C3.98967 14.1465 3.67302 14.1472 3.41309 14.126C3.14447 14.104 2.87035 14.0544 2.60449 13.9189C2.2125 13.7193 1.89406 13.4006 1.69434 13.0088C1.55888 12.7429 1.50926 12.4679 1.48731 12.1992C1.46613 11.9394 1.4668 11.6234 1.4668 11.2627V5.8125C1.4668 5.47454 1.46666 5.17847 1.48535 4.93457C1.50469 4.68268 1.54755 4.42442 1.66699 4.17188C1.87307 3.7365 2.22376 3.3857 2.65918 3.17969C2.91175 3.06029 3.16998 3.01736 3.42188 2.99805C3.66581 2.97936 3.96181 2.97949 4.29981 2.97949H5.88379Z","M13.2168 1.64648C13.6309 1.64666 13.9668 1.98238 13.9668 2.39648V6.72949C13.9668 7.14357 13.6308 7.47932 13.2168 7.47949C12.8027 7.47942 12.4668 7.14364 12.4668 6.72949V4.20703L7.58008 9.09375C7.28722 9.38633 6.81235 9.3864 6.51953 9.09375C6.22676 8.80094 6.22691 8.32611 6.51953 8.0332L11.4063 3.14648H8.88281C8.46883 3.14624 8.13285 2.81052 8.13281 2.39648C8.13281 1.98242 8.46881 1.64673 8.88281 1.64648H13.2168Z"],"SquareArrowTopRightOpenLink/s/filled":["M4.41211 2.29785C4.68825 2.29785 4.91211 2.52171 4.91211 2.79785C4.91185 3.07377 4.68809 3.29785 4.41211 3.29785H3.22461C2.95494 3.29785 2.78037 3.29842 2.64746 3.30859C2.52006 3.31839 2.47149 3.33471 2.44824 3.3457C2.34391 3.39519 2.25934 3.47958 2.20996 3.58398C2.19896 3.60746 2.18257 3.65648 2.17285 3.7832C2.16271 3.91611 2.16211 4.09082 2.16211 4.36035V8.44824C2.16211 8.73569 2.1623 8.92201 2.17383 9.06348C2.18489 9.1985 2.20422 9.24964 2.2168 9.27441C2.26473 9.36837 2.34164 9.4453 2.43555 9.49316C2.46034 9.50575 2.51137 9.52507 2.64648 9.53613C2.78797 9.54766 2.97419 9.54785 3.26172 9.54785H7.3125C7.59995 9.54785 7.78624 9.54763 7.92773 9.53613C8.06222 9.52514 8.1137 9.50576 8.13867 9.49316C8.23254 9.44535 8.30949 9.36821 8.35742 9.27441C8.36999 9.24965 8.38932 9.19846 8.40039 9.06348C8.41192 8.92201 8.41211 8.73569 8.41211 8.44824V6.92285C8.41211 6.64683 8.63614 6.42305 8.91211 6.42285C9.18825 6.42285 9.41211 6.64671 9.41211 6.92285V8.44824C9.41211 8.71964 9.41214 8.95387 9.39648 9.14551C9.38032 9.3428 9.34515 9.53967 9.24902 9.72852C9.10521 10.0105 8.87485 10.2411 8.59277 10.3848C8.40392 10.4808 8.20706 10.5161 8.00977 10.5322C7.81809 10.5479 7.58392 10.5479 7.3125 10.5479H3.26172C2.99027 10.5479 2.75611 10.5479 2.56445 10.5322C2.36709 10.5161 2.17035 10.4809 1.98145 10.3848C1.69926 10.241 1.46898 10.0106 1.3252 9.72852C1.22906 9.53965 1.1939 9.34282 1.17773 9.14551C1.16208 8.95388 1.16211 8.71964 1.16211 8.44824V4.36035C1.16211 4.10596 1.16201 3.88605 1.17578 3.70605C1.19 3.52098 1.22092 3.33567 1.30566 3.15625C1.45396 2.84273 1.70705 2.58981 2.02051 2.44141C2.19997 2.35653 2.38519 2.32577 2.57031 2.31152C2.75032 2.29772 2.97013 2.29785 3.22461 2.29785H4.41211Z","M9.91211 1.29688C10.1883 1.29688 10.4121 1.52171 10.4121 1.79785V5.04785C10.4118 5.32377 10.1881 5.54785 9.91211 5.54785C9.6363 5.54765 9.41237 5.32365 9.41211 5.04785V3.00488L5.64062 6.77637C5.44535 6.97118 5.12872 6.97143 4.93359 6.77637C4.73847 6.58125 4.73876 6.26463 4.93359 6.06934L8.70508 2.29785H6.66211C6.3863 2.29765 6.16237 2.07365 6.16211 1.79785C6.16211 1.52183 6.38614 1.29707 6.66211 1.29688H9.91211Z"],"SquareArrowTopRightOpenLink/s/outline":["M4.41211 2.19824C4.74348 2.19824 5.01172 2.46648 5.01172 2.79785C5.01146 3.129 4.74332 3.39746 4.41211 3.39746H3.22461C2.95353 3.39746 2.78346 3.39841 2.65527 3.4082C2.53367 3.41755 2.49883 3.43292 2.49121 3.43652C2.40778 3.47612 2.34027 3.54346 2.30078 3.62695C2.29676 3.63559 2.2816 3.67176 2.27246 3.79102C2.2627 3.9192 2.26172 4.08942 2.26172 4.36035V8.44824C2.26172 8.73754 2.2623 8.91916 2.27344 9.05566C2.28404 9.18495 2.30146 9.22124 2.30567 9.22949C2.34402 9.30463 2.4054 9.36603 2.48047 9.4043L2.52149 9.41797C2.5476 9.42412 2.58941 9.43121 2.6543 9.43652C2.79081 9.44767 2.97234 9.44824 3.26172 9.44824H7.3125C7.6018 9.44824 7.78339 9.44764 7.91992 9.43652C8.04717 9.42613 8.08462 9.4089 8.09375 9.4043L8.14746 9.37109C8.19797 9.33432 8.23985 9.28562 8.26856 9.22949L8.28223 9.18848C8.28837 9.16239 8.29547 9.12044 8.30078 9.05566C8.31192 8.91917 8.3125 8.73754 8.3125 8.44824V6.92285C8.3125 6.5916 8.58091 6.32344 8.91211 6.32324C9.24348 6.32324 9.51172 6.59148 9.51172 6.92285V8.44824C9.51172 8.71793 9.51215 8.95671 9.49609 9.15332C9.47942 9.35702 9.4426 9.56894 9.33789 9.77441C9.18451 10.0752 8.93949 10.3204 8.63867 10.4736C8.43318 10.5782 8.22127 10.6152 8.01758 10.6318C7.82093 10.6479 7.5822 10.6475 7.3125 10.6475H3.26172C2.99198 10.6475 2.75328 10.6479 2.55664 10.6318C2.35288 10.6152 2.14108 10.5784 1.93555 10.4736C1.63462 10.3203 1.38968 10.0752 1.23633 9.77441C1.13162 9.56892 1.0948 9.35703 1.07813 9.15332C1.06207 8.95671 1.0625 8.71793 1.0625 8.44824V4.36035C1.0625 4.10767 1.06208 3.88385 1.07617 3.69922C1.09081 3.50823 1.12361 3.30848 1.21582 3.11328C1.37397 2.77916 1.64348 2.50982 1.97754 2.35156C2.17278 2.25922 2.37243 2.22658 2.56348 2.21191C2.74812 2.19778 2.97184 2.19824 3.22461 2.19824H4.41211Z","M9.91211 1.19727C10.2435 1.19727 10.5117 1.46648 10.5117 1.79785V5.04785C10.5115 5.379 10.2433 5.64746 9.91211 5.64746C9.58107 5.64726 9.31276 5.37888 9.3125 5.04785V3.24512L5.71094 6.84668C5.47661 7.08055 5.09746 7.08079 4.86328 6.84668C4.62911 6.61251 4.6294 6.23337 4.86328 5.99902L8.46485 2.39746H6.66211C6.33107 2.39726 6.06276 2.12888 6.0625 1.79785C6.0625 1.4666 6.33091 1.19746 6.66211 1.19727H9.91211Z"],"StatusIdleDashedCircle/l/filled":["M13.3838 20.1348C13.792 20.066 14.179 20.3408 14.248 20.749C14.317 21.1575 14.0413 21.5444 13.6328 21.6133C13.1014 21.7029 12.5559 21.75 12 21.75C11.4441 21.75 10.8986 21.7029 10.3672 21.6133C9.95875 21.5444 9.68304 21.1575 9.75195 20.749C9.821 20.3408 10.208 20.066 10.6162 20.1348C11.0656 20.2106 11.528 20.25 12 20.25C12.472 20.25 12.9344 20.2106 13.3838 20.1348ZM4.22461 16.5967C4.5621 16.3568 5.03047 16.4361 5.27051 16.7734C5.80801 17.5296 6.47038 18.192 7.22656 18.7295C7.56387 18.9695 7.64316 19.4379 7.40332 19.7754C7.16341 20.1129 6.69501 20.1919 6.35742 19.9521C5.46443 19.3174 4.6826 18.5356 4.04785 17.6426C3.80813 17.305 3.8871 16.8366 4.22461 16.5967ZM18.7295 16.7734C18.9695 16.4361 19.4379 16.3568 19.7754 16.5967C20.1129 16.8366 20.1919 17.305 19.9521 17.6426C19.3174 18.5356 18.5356 19.3174 17.6426 19.9521C17.305 20.1919 16.8366 20.1129 16.5967 19.7754C16.3568 19.4379 16.4361 18.9695 16.7734 18.7295C17.5296 18.192 18.192 17.5296 18.7295 16.7734ZM2.25 12C2.25 11.4441 2.29706 10.8986 2.38672 10.3672C2.45564 9.95875 2.84254 9.68304 3.25098 9.75195C3.65916 9.821 3.93398 10.208 3.86523 10.6162C3.78941 11.0656 3.75 11.528 3.75 12C3.75 12.472 3.78941 12.9344 3.86523 13.3838C3.93398 13.792 3.65916 14.179 3.25098 14.248C2.84254 14.317 2.45564 14.0413 2.38672 13.6328C2.29706 13.1014 2.25 12.5559 2.25 12ZM20.25 12C20.25 11.528 20.2106 11.0656 20.1348 10.6162C20.066 10.208 20.3408 9.821 20.749 9.75195C21.1575 9.68304 21.5444 9.95875 21.6133 10.3672C21.7029 10.8986 21.75 11.4441 21.75 12C21.75 12.5559 21.7029 13.1014 21.6133 13.6328C21.5444 14.0413 21.1575 14.317 20.749 14.248C20.3408 14.179 20.066 13.792 20.1348 13.3838C20.2106 12.9344 20.25 12.472 20.25 12ZM6.35742 4.04785C6.69501 3.80813 7.16341 3.8871 7.40332 4.22461C7.64316 4.5621 7.56386 5.03047 7.22656 5.27051C6.47038 5.80801 5.80801 6.47038 5.27051 7.22656C5.03047 7.56386 4.5621 7.64316 4.22461 7.40332C3.8871 7.16341 3.80813 6.69501 4.04785 6.35742C4.6826 5.46443 5.46443 4.6826 6.35742 4.04785ZM16.5967 4.22461C16.8366 3.8871 17.305 3.80813 17.6426 4.04785C18.5356 4.6826 19.3174 5.46443 19.9521 6.35742C20.1919 6.69501 20.1129 7.16341 19.7754 7.40332C19.4379 7.64316 18.9695 7.56387 18.7295 7.22656C18.192 6.47038 17.5296 5.80801 16.7734 5.27051C16.4361 5.03047 16.3568 4.5621 16.5967 4.22461ZM12 2.25C12.5559 2.25 13.1014 2.29706 13.6328 2.38672C14.0413 2.45564 14.317 2.84254 14.248 3.25098C14.179 3.65916 13.792 3.93398 13.3838 3.86523C12.9344 3.78941 12.472 3.75 12 3.75C11.528 3.75 11.0656 3.78941 10.6162 3.86523C10.208 3.93398 9.821 3.65916 9.75195 3.25098C9.68304 2.84254 9.95875 2.45564 10.3672 2.38672C10.8986 2.29706 11.4441 2.25 12 2.25Z"],"StatusIdleDashedCircle/l/outline":["M13.4258 20.3809C13.8341 20.3122 14.2211 20.5878 14.29 20.9961C14.3588 21.4044 14.0832 21.7914 13.6748 21.8604C13.1298 21.9523 12.5702 22 12 22C11.4298 22 10.8702 21.9523 10.3252 21.8604C9.91684 21.7914 9.6412 21.4044 9.70996 20.9961C9.77886 20.5878 10.1659 20.3122 10.5742 20.3809C11.0372 20.459 11.5137 20.5 12 20.5C12.4863 20.5 12.9628 20.459 13.4258 20.3809ZM4.02051 16.7422C4.35812 16.5022 4.82643 16.5813 5.06641 16.9189C5.62015 17.6979 6.30206 18.3799 7.08105 18.9336C7.41867 19.1736 7.49779 19.6419 7.25781 19.9795C7.01785 20.3166 6.55031 20.3957 6.21289 20.1562C5.297 19.5052 4.49477 18.703 3.84375 17.7871C3.6043 17.4497 3.68345 16.9821 4.02051 16.7422ZM18.9336 16.9189C19.1736 16.5813 19.6419 16.5022 19.9795 16.7422C20.3165 16.9821 20.3957 17.4497 20.1562 17.7871C19.5052 18.703 18.703 19.5052 17.7871 20.1562C17.4497 20.3957 16.9821 20.3165 16.7422 19.9795C16.5022 19.6419 16.5813 19.1736 16.9189 18.9336C17.6979 18.3799 18.3799 17.6979 18.9336 16.9189ZM2 12C2 11.4298 2.04769 10.8702 2.13965 10.3252C2.20855 9.91684 2.59556 9.6412 3.00391 9.70996C3.41221 9.77886 3.68781 10.1659 3.61914 10.5742C3.54102 11.0372 3.5 11.5137 3.5 12C3.5 12.4863 3.54102 12.9628 3.61914 13.4258C3.68781 13.8341 3.41221 14.2211 3.00391 14.29C2.59556 14.3588 2.20855 14.0832 2.13965 13.6748C2.04769 13.1298 2 12.5702 2 12ZM20.5 12C20.5 11.5137 20.459 11.0372 20.3809 10.5742C20.3122 10.1659 20.5878 9.77886 20.9961 9.70996C21.4044 9.6412 21.7914 9.91684 21.8604 10.3252C21.9523 10.8702 22 11.4298 22 12C22 12.5702 21.9523 13.1298 21.8604 13.6748C21.7914 14.0832 21.4044 14.3588 20.9961 14.29C20.5878 14.2211 20.3122 13.8341 20.3809 13.4258C20.459 12.9628 20.5 12.4863 20.5 12ZM6.21289 3.84375C6.55032 3.6043 7.01785 3.68344 7.25781 4.02051C7.49779 4.35812 7.41867 4.82643 7.08105 5.06641C6.30206 5.62015 5.62015 6.30206 5.06641 7.08105C4.82643 7.41867 4.35812 7.49779 4.02051 7.25781C3.68344 7.01785 3.6043 6.55032 3.84375 6.21289C4.49478 5.297 5.297 4.49478 6.21289 3.84375ZM16.7422 4.02051C16.9821 3.68345 17.4497 3.6043 17.7871 3.84375C18.703 4.49477 19.5052 5.297 20.1562 6.21289C20.3957 6.55031 20.3166 7.01785 19.9795 7.25781C19.6419 7.49779 19.1736 7.41867 18.9336 7.08105C18.3799 6.30206 17.6979 5.62015 16.9189 5.06641C16.5813 4.82643 16.5022 4.35812 16.7422 4.02051ZM12 2C12.5702 2 13.1298 2.04769 13.6748 2.13965C14.0832 2.20855 14.3588 2.59556 14.29 3.00391C14.2211 3.41221 13.8341 3.68781 13.4258 3.61914C12.9628 3.54102 12.4863 3.5 12 3.5C11.5137 3.5 11.0372 3.54102 10.5742 3.61914C10.1659 3.68781 9.77886 3.41221 9.70996 3.00391C9.6412 2.59556 9.91684 2.20855 10.3252 2.13965C10.8702 2.04769 11.4298 2 12 2Z"],"StatusIdleDashedCircle/m/filled":["M8.92253 13.4232C9.19469 13.3773 9.45267 13.5606 9.4987 13.8327C9.54464 14.105 9.36084 14.3629 9.08854 14.4089C8.73426 14.4686 8.37059 14.5 8 14.5C7.62941 14.5 7.26574 14.4686 6.91146 14.4089C6.63917 14.3629 6.45536 14.105 6.5013 13.8327C6.54733 13.5606 6.80531 13.3773 7.07747 13.4232C7.37705 13.4737 7.68535 13.5 8 13.5C8.31465 13.5 8.62295 13.4737 8.92253 13.4232ZM2.81641 11.0645C3.0414 10.9046 3.35365 10.9574 3.51367 11.1823C3.87201 11.6864 4.31359 12.128 4.81771 12.4863C5.04258 12.6464 5.09544 12.9586 4.93555 13.1836C4.77561 13.4086 4.46334 13.4612 4.23828 13.3014C3.64296 12.8783 3.12173 12.357 2.69857 11.7617C2.53876 11.5367 2.5914 11.2244 2.81641 11.0645ZM12.4863 11.1823C12.6464 10.9574 12.9586 10.9046 13.1836 11.0645C13.4086 11.2244 13.4612 11.5367 13.3014 11.7617C12.8783 12.357 12.357 12.8783 11.7617 13.3014C11.5367 13.4612 11.2244 13.4086 11.0645 13.1836C10.9046 12.9586 10.9574 12.6464 11.1823 12.4863C11.6864 12.128 12.128 11.6864 12.4863 11.1823ZM1.5 8C1.5 7.62941 1.53137 7.26574 1.59115 6.91146C1.63709 6.63916 1.89502 6.45536 2.16732 6.5013C2.43944 6.54733 2.62265 6.80531 2.57682 7.07747C2.52627 7.37705 2.5 7.68535 2.5 8C2.5 8.31465 2.52627 8.62295 2.57682 8.92253C2.62265 9.19469 2.43944 9.45267 2.16732 9.4987C1.89502 9.54464 1.63709 9.36084 1.59115 9.08854C1.53137 8.73426 1.5 8.37059 1.5 8ZM13.5 8C13.5 7.68535 13.4737 7.37705 13.4232 7.07747C13.3773 6.80531 13.5606 6.54733 13.8327 6.5013C14.105 6.45536 14.3629 6.63917 14.4089 6.91146C14.4686 7.26574 14.5 7.62941 14.5 8C14.5 8.37059 14.4686 8.73426 14.4089 9.08854C14.3629 9.36084 14.105 9.54464 13.8327 9.4987C13.5606 9.45267 13.3773 9.19469 13.4232 8.92253C13.4737 8.62295 13.5 8.31465 13.5 8ZM4.23828 2.69857C4.46334 2.53876 4.77561 2.5914 4.93555 2.81641C5.09544 3.0414 5.04258 3.35365 4.81771 3.51367C4.31359 3.87201 3.87201 4.31359 3.51367 4.81771C3.35365 5.04258 3.0414 5.09544 2.81641 4.93555C2.5914 4.77561 2.53876 4.46334 2.69857 4.23828C3.12173 3.64296 3.64296 3.12173 4.23828 2.69857ZM11.0645 2.81641C11.2244 2.5914 11.5367 2.53876 11.7617 2.69857C12.357 3.12173 12.8783 3.64296 13.3014 4.23828C13.4612 4.46334 13.4086 4.77561 13.1836 4.93555C12.9586 5.09544 12.6464 5.04258 12.4863 4.81771C12.128 4.31359 11.6864 3.87201 11.1823 3.51367C10.9574 3.35365 10.9046 3.0414 11.0645 2.81641ZM8 1.5C8.37059 1.5 8.73426 1.53137 9.08854 1.59115C9.36084 1.63709 9.54464 1.89502 9.4987 2.16732C9.45267 2.43944 9.19469 2.62266 8.92253 2.57682C8.62295 2.52627 8.31465 2.5 8 2.5C7.68535 2.5 7.37705 2.52627 7.07747 2.57682C6.80531 2.62265 6.54733 2.43944 6.5013 2.16732C6.45536 1.89502 6.63916 1.63709 6.91146 1.59115C7.26574 1.53137 7.62941 1.5 8 1.5Z"],"StatusIdleDashedCircle/m/outline":["M8.92253 13.4232C9.19469 13.3773 9.45267 13.5606 9.4987 13.8327C9.54464 14.105 9.36084 14.3629 9.08854 14.4089C8.73426 14.4686 8.37059 14.5 8 14.5C7.62941 14.5 7.26574 14.4686 6.91146 14.4089C6.63917 14.3629 6.45536 14.105 6.5013 13.8327C6.54733 13.5606 6.80531 13.3773 7.07747 13.4232C7.37705 13.4737 7.68535 13.5 8 13.5C8.31465 13.5 8.62295 13.4737 8.92253 13.4232ZM2.81641 11.0645C3.0414 10.9046 3.35365 10.9574 3.51367 11.1823C3.87201 11.6864 4.31359 12.128 4.81771 12.4863C5.04258 12.6464 5.09544 12.9586 4.93555 13.1836C4.77561 13.4086 4.46334 13.4612 4.23828 13.3014C3.64296 12.8783 3.12173 12.357 2.69857 11.7617C2.53876 11.5367 2.5914 11.2244 2.81641 11.0645ZM12.4863 11.1823C12.6464 10.9574 12.9586 10.9046 13.1836 11.0645C13.4086 11.2244 13.4612 11.5367 13.3014 11.7617C12.8783 12.357 12.357 12.8783 11.7617 13.3014C11.5367 13.4612 11.2244 13.4086 11.0645 13.1836C10.9046 12.9586 10.9574 12.6464 11.1823 12.4863C11.6864 12.128 12.128 11.6864 12.4863 11.1823ZM1.5 8C1.5 7.62941 1.53137 7.26574 1.59115 6.91146C1.63709 6.63916 1.89502 6.45536 2.16732 6.5013C2.43944 6.54733 2.62265 6.80531 2.57682 7.07747C2.52627 7.37705 2.5 7.68535 2.5 8C2.5 8.31465 2.52627 8.62295 2.57682 8.92253C2.62265 9.19469 2.43944 9.45267 2.16732 9.4987C1.89502 9.54464 1.63709 9.36084 1.59115 9.08854C1.53137 8.73426 1.5 8.37059 1.5 8ZM13.5 8C13.5 7.68535 13.4737 7.37705 13.4232 7.07747C13.3773 6.80531 13.5606 6.54733 13.8327 6.5013C14.105 6.45536 14.3629 6.63917 14.4089 6.91146C14.4686 7.26574 14.5 7.62941 14.5 8C14.5 8.37059 14.4686 8.73426 14.4089 9.08854C14.3629 9.36084 14.105 9.54464 13.8327 9.4987C13.5606 9.45267 13.3773 9.19469 13.4232 8.92253C13.4737 8.62295 13.5 8.31465 13.5 8ZM4.23828 2.69857C4.46334 2.53876 4.77561 2.5914 4.93555 2.81641C5.09544 3.0414 5.04258 3.35365 4.81771 3.51367C4.31359 3.87201 3.87201 4.31359 3.51367 4.81771C3.35365 5.04258 3.0414 5.09544 2.81641 4.93555C2.5914 4.77561 2.53876 4.46334 2.69857 4.23828C3.12173 3.64296 3.64296 3.12173 4.23828 2.69857ZM11.0645 2.81641C11.2244 2.5914 11.5367 2.53876 11.7617 2.69857C12.357 3.12173 12.8783 3.64296 13.3014 4.23828C13.4612 4.46334 13.4086 4.77561 13.1836 4.93555C12.9586 5.09544 12.6464 5.04258 12.4863 4.81771C12.128 4.31359 11.6864 3.87201 11.1823 3.51367C10.9574 3.35365 10.9046 3.0414 11.0645 2.81641ZM8 1.5C8.37059 1.5 8.73426 1.53137 9.08854 1.59115C9.36084 1.63709 9.54464 1.89502 9.4987 2.16732C9.45267 2.43944 9.19469 2.62266 8.92253 2.57682C8.62295 2.52627 8.31465 2.5 8 2.5C7.68535 2.5 7.37705 2.52627 7.07747 2.57682C6.80531 2.62265 6.54733 2.43944 6.5013 2.16732C6.45536 1.89502 6.63916 1.63709 6.91146 1.59115C7.26574 1.53137 7.62941 1.5 8 1.5Z"],"StatusIdleDashedCircle/s/filled":["M6.69189 10.0674C6.89602 10.033 7.0895 10.1704 7.12402 10.3745C7.15848 10.5787 7.02063 10.7722 6.81641 10.8066C6.55069 10.8515 6.27794 10.875 6 10.875C5.72206 10.875 5.44931 10.8515 5.18359 10.8066C4.97937 10.7722 4.84152 10.5787 4.87598 10.3745C4.9105 10.1704 5.10398 10.033 5.30811 10.0674C5.53279 10.1053 5.76401 10.125 6 10.125C6.23599 10.125 6.46721 10.1053 6.69189 10.0674ZM2.1123 8.29834C2.28105 8.17842 2.51523 8.21807 2.63525 8.38672C2.904 8.76481 3.23519 9.096 3.61328 9.36475C3.78193 9.48477 3.82158 9.71895 3.70166 9.8877C3.58171 10.0565 3.34751 10.0959 3.17871 9.97607C2.73222 9.6587 2.3413 9.26778 2.02393 8.82129C1.90407 8.65249 1.94355 8.41829 2.1123 8.29834ZM9.36475 8.38672C9.48477 8.21807 9.71895 8.17841 9.8877 8.29834C10.0565 8.41829 10.0959 8.65249 9.97607 8.82129C9.6587 9.26778 9.26778 9.6587 8.82129 9.97607C8.65249 10.0959 8.41829 10.0565 8.29834 9.8877C8.17842 9.71895 8.21807 9.48477 8.38672 9.36475C8.76481 9.096 9.096 8.76481 9.36475 8.38672ZM1.125 6C1.125 5.72206 1.14853 5.44931 1.19336 5.18359C1.22782 4.97937 1.42127 4.84152 1.62549 4.87598C1.82958 4.9105 1.96699 5.10398 1.93262 5.30811C1.89471 5.53279 1.875 5.76401 1.875 6C1.875 6.23599 1.89471 6.46721 1.93262 6.69189C1.96699 6.89602 1.82958 7.0895 1.62549 7.12402C1.42127 7.15848 1.22782 7.02063 1.19336 6.81641C1.14853 6.55069 1.125 6.27794 1.125 6ZM10.125 6C10.125 5.76401 10.1053 5.53279 10.0674 5.30811C10.033 5.10398 10.1704 4.9105 10.3745 4.87598C10.5787 4.84152 10.7722 4.97937 10.8066 5.18359C10.8515 5.44931 10.875 5.72206 10.875 6C10.875 6.27794 10.8515 6.55069 10.8066 6.81641C10.7722 7.02063 10.5787 7.15848 10.3745 7.12402C10.1704 7.0895 10.033 6.89602 10.0674 6.69189C10.1053 6.46721 10.125 6.23599 10.125 6ZM3.17871 2.02393C3.34751 1.90407 3.58171 1.94355 3.70166 2.1123C3.82158 2.28105 3.78193 2.51524 3.61328 2.63525C3.23519 2.904 2.904 3.23519 2.63525 3.61328C2.51524 3.78193 2.28105 3.82158 2.1123 3.70166C1.94355 3.58171 1.90407 3.34751 2.02393 3.17871C2.3413 2.73222 2.73222 2.3413 3.17871 2.02393ZM8.29834 2.1123C8.41829 1.94355 8.65249 1.90407 8.82129 2.02393C9.26778 2.3413 9.6587 2.73222 9.97607 3.17871C10.0959 3.34751 10.0565 3.58171 9.8877 3.70166C9.71895 3.82158 9.48477 3.78193 9.36475 3.61328C9.096 3.23519 8.76481 2.904 8.38672 2.63525C8.21807 2.51523 8.17842 2.28105 8.29834 2.1123ZM6 1.125C6.27794 1.125 6.55069 1.14853 6.81641 1.19336C7.02063 1.22782 7.15848 1.42127 7.12402 1.62549C7.0895 1.82958 6.89602 1.96699 6.69189 1.93262C6.46721 1.89471 6.23599 1.875 6 1.875C5.76401 1.875 5.53279 1.89471 5.30811 1.93262C5.10398 1.96699 4.9105 1.82958 4.87598 1.62549C4.84152 1.42127 4.97937 1.22782 5.18359 1.19336C5.44931 1.14853 5.72206 1.125 6 1.125Z"],"StatusIdleDashedCircle/s/outline":["M6.69189 10.0674C6.89602 10.033 7.0895 10.1704 7.12402 10.3745C7.15848 10.5787 7.02063 10.7722 6.81641 10.8066C6.55069 10.8515 6.27794 10.875 6 10.875C5.72206 10.875 5.44931 10.8515 5.18359 10.8066C4.97937 10.7722 4.84152 10.5787 4.87598 10.3745C4.9105 10.1704 5.10398 10.033 5.30811 10.0674C5.53279 10.1053 5.76401 10.125 6 10.125C6.23599 10.125 6.46721 10.1053 6.69189 10.0674ZM2.1123 8.29834C2.28105 8.17842 2.51523 8.21807 2.63525 8.38672C2.904 8.76481 3.23519 9.096 3.61328 9.36475C3.78193 9.48477 3.82158 9.71895 3.70166 9.8877C3.58171 10.0565 3.34751 10.0959 3.17871 9.97607C2.73222 9.6587 2.3413 9.26778 2.02393 8.82129C1.90407 8.65249 1.94355 8.41829 2.1123 8.29834ZM9.36475 8.38672C9.48477 8.21807 9.71895 8.17841 9.8877 8.29834C10.0565 8.41829 10.0959 8.65249 9.97607 8.82129C9.6587 9.26778 9.26778 9.6587 8.82129 9.97607C8.65249 10.0959 8.41829 10.0565 8.29834 9.8877C8.17842 9.71895 8.21807 9.48477 8.38672 9.36475C8.76481 9.096 9.096 8.76481 9.36475 8.38672ZM1.125 6C1.125 5.72206 1.14853 5.44931 1.19336 5.18359C1.22782 4.97937 1.42127 4.84152 1.62549 4.87598C1.82958 4.9105 1.96699 5.10398 1.93262 5.30811C1.89471 5.53279 1.875 5.76401 1.875 6C1.875 6.23599 1.89471 6.46721 1.93262 6.69189C1.96699 6.89602 1.82958 7.0895 1.62549 7.12402C1.42127 7.15848 1.22782 7.02063 1.19336 6.81641C1.14853 6.55069 1.125 6.27794 1.125 6ZM10.125 6C10.125 5.76401 10.1053 5.53279 10.0674 5.30811C10.033 5.10398 10.1704 4.9105 10.3745 4.87598C10.5787 4.84152 10.7722 4.97937 10.8066 5.18359C10.8515 5.44931 10.875 5.72206 10.875 6C10.875 6.27794 10.8515 6.55069 10.8066 6.81641C10.7722 7.02063 10.5787 7.15848 10.3745 7.12402C10.1704 7.0895 10.033 6.89602 10.0674 6.69189C10.1053 6.46721 10.125 6.23599 10.125 6ZM3.17871 2.02393C3.34751 1.90407 3.58171 1.94355 3.70166 2.1123C3.82158 2.28105 3.78193 2.51524 3.61328 2.63525C3.23519 2.904 2.904 3.23519 2.63525 3.61328C2.51524 3.78193 2.28105 3.82158 2.1123 3.70166C1.94355 3.58171 1.90407 3.34751 2.02393 3.17871C2.3413 2.73222 2.73222 2.3413 3.17871 2.02393ZM8.29834 2.1123C8.41829 1.94355 8.65249 1.90407 8.82129 2.02393C9.26778 2.3413 9.6587 2.73222 9.97607 3.17871C10.0959 3.34751 10.0565 3.58171 9.8877 3.70166C9.71895 3.82158 9.48477 3.78193 9.36475 3.61328C9.096 3.23519 8.76481 2.904 8.38672 2.63525C8.21807 2.51523 8.17842 2.28105 8.29834 2.1123ZM6 1.125C6.27794 1.125 6.55069 1.14853 6.81641 1.19336C7.02063 1.22782 7.15848 1.42127 7.12402 1.62549C7.0895 1.82958 6.89602 1.96699 6.69189 1.93262C6.46721 1.89471 6.23599 1.875 6 1.875C5.76401 1.875 5.53279 1.89471 5.30811 1.93262C5.10398 1.96699 4.9105 1.82958 4.87598 1.62549C4.84152 1.42127 4.97937 1.22782 5.18359 1.19336C5.44931 1.14853 5.72206 1.125 6 1.125Z"],"StatusInProgressQuarterCircle/l/filled":["M12.2218 1.84094C17.7446 1.84094 22.2218 6.31809 22.2218 11.8409C22.2218 17.3637 17.7446 21.8409 12.2218 21.8409C6.69895 21.8409 2.2218 17.3637 2.2218 11.8409C2.2218 6.31809 6.69895 1.84094 12.2218 1.84094ZM12.2218 11.8409H19.7218C19.7218 7.6988 16.3639 4.34094 12.2218 4.34094V11.8409Z"],"StatusInProgressQuarterCircle/l/outline":["M12.2217 5.33984C15.8122 5.33984 18.7226 8.25035 18.7227 11.8408H12.2217V5.33984Z","M12.2217 1.84082C17.7445 1.84082 22.2216 6.31803 22.2217 11.8408C22.2217 17.3637 17.7445 21.8408 12.2217 21.8408C6.69889 21.8408 2.22168 17.3636 2.22168 11.8408C2.22175 6.31807 6.69893 1.84089 12.2217 1.84082ZM12.2217 3.34082C7.52736 3.34089 3.72175 7.1465 3.72168 11.8408C3.72168 16.5352 7.52732 20.3408 12.2217 20.3408C16.9161 20.3408 20.7217 16.5352 20.7217 11.8408C20.7216 7.14646 16.9161 3.34082 12.2217 3.34082Z"],"StatusInProgressQuarterCircle/m/filled":["M8.14787 1.22729C11.8297 1.22729 14.8145 4.21206 14.8145 7.89396C14.8145 11.5758 11.8297 14.5606 8.14787 14.5606C4.46597 14.5606 1.4812 11.5758 1.4812 7.89396C1.4812 4.21206 4.46597 1.22729 8.14787 1.22729ZM8.14787 7.89396H13.1479C13.1479 5.13253 10.9093 2.89396 8.14787 2.89396V7.89396Z"],"StatusInProgressQuarterCircle/m/outline":["M8.14775 3.55992C10.5414 3.55992 12.4817 5.50026 12.4817 7.8939H8.14775V3.55992Z","M8.14775 1.22723C11.8296 1.22723 14.8144 4.21204 14.8144 7.8939C14.8144 11.5758 11.8296 14.5606 8.14775 14.5606C4.46588 14.5605 1.48108 11.5758 1.48108 7.8939C1.48112 4.21207 4.46591 1.22728 8.14775 1.22723ZM8.14775 2.22723C5.0182 2.22728 2.48112 4.76435 2.48108 7.8939C2.48108 11.0235 5.01817 13.5605 8.14775 13.5606C11.2774 13.5606 13.8144 11.0235 13.8144 7.8939C13.8144 4.76432 11.2773 2.22723 8.14775 2.22723Z"],"StatusInProgressQuarterCircle/s/filled":["M6.11084 0.920471C8.87224 0.920471 11.1108 3.15905 11.1108 5.92047C11.1108 8.68187 8.87224 10.9205 6.11084 10.9205C3.34941 10.9205 1.11084 8.68187 1.11084 5.92047C1.11084 3.15905 3.34941 0.920471 6.11084 0.920471ZM6.11084 5.92047H9.86084C9.86084 3.8494 8.18189 2.17047 6.11084 2.17047V5.92047Z"],"StatusInProgressQuarterCircle/s/outline":["M6.11084 2.66992C7.90609 2.66992 9.36129 4.12518 9.36133 5.92041H6.11084V2.66992Z","M6.11084 0.92041C8.87224 0.92041 11.1108 3.15901 11.1108 5.92041C11.1108 8.68183 8.87226 10.9204 6.11084 10.9204C3.34944 10.9204 1.11084 8.68181 1.11084 5.92041C1.11087 3.15903 3.34946 0.920443 6.11084 0.92041ZM6.11084 1.67041C3.76368 1.67044 1.86087 3.57325 1.86084 5.92041C1.86084 8.2676 3.76366 10.1704 6.11084 10.1704C8.45805 10.1704 10.3608 8.26762 10.3608 5.92041C10.3608 3.57323 8.45803 1.67041 6.11084 1.67041Z"],"Stop/l/filled":["M16.5724 3.90002H7.42764C6.9469 3.90002 6.54563 3.90001 6.21782 3.92679C5.87593 3.95473 5.55494 4.01513 5.2514 4.16978C4.7857 4.40707 4.40707 4.7857 4.16978 5.2514C4.01513 5.55494 3.95473 5.87593 3.92679 6.21782C3.90001 6.54563 3.90002 6.94689 3.90002 7.42763V16.5724C3.90002 17.0532 3.90001 17.4544 3.92679 17.7823C3.95473 18.1242 4.01513 18.4451 4.16978 18.7487C4.40707 19.2143 4.7857 19.593 5.2514 19.8303C5.55494 19.9849 5.87593 20.0453 6.21782 20.0733C6.54563 20.1 6.94688 20.1 7.42762 20.1H16.5725C17.0532 20.1 17.4544 20.1 17.7823 20.0733C18.1242 20.0453 18.4451 19.9849 18.7487 19.8303C19.2143 19.593 19.593 19.2143 19.8303 18.7487C19.9849 18.4451 20.0453 18.1242 20.0733 17.7823C20.1 17.4544 20.1 17.0532 20.1 16.5725V7.42762C20.1 6.94688 20.1 6.54563 20.0733 6.21782C20.0453 5.87593 19.9849 5.55494 19.8303 5.2514C19.593 4.7857 19.2143 4.40707 18.7487 4.16978C18.4451 4.01513 18.1242 3.95473 17.7823 3.92679C17.4544 3.90001 17.0532 3.90002 16.5724 3.90002Z"],"Stop/l/outline":["M18.6746 7.4549C18.6746 6.93854 18.6745 6.59631 18.6531 6.3338C18.6375 6.14335 18.6128 6.03251 18.5867 5.95978L18.5603 5.89825C18.4597 5.70079 18.2989 5.53994 18.1013 5.43927C18.0321 5.40409 17.9192 5.36818 17.6658 5.34747C17.4033 5.32605 17.0609 5.32501 16.5447 5.32501H7.45483C6.93848 5.32501 6.59625 5.32603 6.33374 5.34747C6.08004 5.36821 5.96735 5.40403 5.89819 5.43927C5.70063 5.53993 5.53987 5.70069 5.43921 5.89825C5.40397 5.96741 5.36815 6.08011 5.34741 6.3338C5.32596 6.59631 5.32495 6.93854 5.32495 7.4549V16.5447C5.32495 17.0609 5.32599 17.4033 5.34741 17.6658C5.36811 17.9192 5.40403 18.0322 5.43921 18.1014C5.53988 18.2989 5.70073 18.4598 5.89819 18.5604L5.95972 18.5867C6.03245 18.6128 6.14329 18.6376 6.33374 18.6531C6.59625 18.6746 6.93848 18.6746 7.45483 18.6746H16.5447C17.0609 18.6746 17.4033 18.6746 17.6658 18.6531C17.9194 18.6324 18.0322 18.5956 18.1013 18.5604C18.2988 18.4597 18.4597 18.2989 18.5603 18.1014C18.5955 18.0322 18.6324 17.9194 18.6531 17.6658C18.6745 17.4033 18.6746 17.0609 18.6746 16.5447V7.4549ZM20.1746 16.5447C20.1746 17.0362 20.1758 17.4502 20.1482 17.7879C20.1199 18.1344 20.0582 18.4671 19.8972 18.783C19.6528 19.2627 19.2626 19.6529 18.783 19.8973C18.4671 20.0582 18.1344 20.1199 17.7878 20.1483C17.4501 20.1758 17.0361 20.1746 16.5447 20.1746H7.45483C6.96324 20.1746 6.54942 20.1758 6.21167 20.1483C5.86524 20.1199 5.53331 20.0581 5.21753 19.8973C4.73776 19.6529 4.34774 19.2626 4.10327 18.783C3.94231 18.4671 3.88061 18.1344 3.8523 17.7879C3.82473 17.4502 3.82495 17.0362 3.82495 16.5447V7.4549C3.82495 6.96328 3.8247 6.54948 3.8523 6.21173C3.88061 5.86522 3.94234 5.53345 4.10327 5.21759C4.34774 4.73776 4.7377 4.34781 5.21753 4.10333C5.53339 3.9424 5.86515 3.88067 6.21167 3.85236C6.54942 3.82476 6.96322 3.82501 7.45483 3.82501H16.5447C17.0362 3.82501 17.4501 3.82479 17.7878 3.85236C18.1344 3.88067 18.4671 3.94238 18.783 4.10333C19.2625 4.3478 19.6528 4.73782 19.8972 5.21759C20.0581 5.53337 20.1199 5.8653 20.1482 6.21173C20.1758 6.54948 20.1746 6.9633 20.1746 7.4549V16.5447Z"],"Stop/m/filled":["M11.0482 2.59998H4.95172C4.63123 2.59997 4.36371 2.59996 4.14517 2.61782C3.91725 2.63644 3.70325 2.67671 3.50089 2.77981C3.19042 2.938 2.938 3.19042 2.77981 3.50089C2.67671 3.70325 2.63644 3.91725 2.61782 4.14517C2.59996 4.36371 2.59997 4.63122 2.59998 4.95171V11.0482C2.59997 11.3687 2.59996 11.6362 2.61782 11.8548C2.63644 12.0827 2.67671 12.2967 2.77981 12.4991C2.938 12.8095 3.19042 13.0619 3.50089 13.2202C3.70325 13.3232 3.91725 13.3635 4.14517 13.3822C4.36371 13.4 4.63122 13.4 4.95171 13.4H11.0483C11.3687 13.4 11.6362 13.4 11.8548 13.3822C12.0827 13.3635 12.2967 13.3232 12.4991 13.2202C12.8095 13.0619 13.0619 12.8095 13.2202 12.4991C13.3232 12.2967 13.3635 12.0827 13.3822 11.8548C13.4 11.6362 13.4 11.3687 13.4 11.0483V4.95171C13.4 4.63122 13.4 4.36371 13.3822 4.14517C13.3635 3.91725 13.3232 3.70325 13.2202 3.50089C13.0619 3.19042 12.8095 2.938 12.4991 2.77981C12.2967 2.67671 12.0827 2.63644 11.8548 2.61782C11.6362 2.59996 11.3687 2.59997 11.0482 2.59998Z"],"Stop/m/outline":["M12.2004 4.96992C12.2004 4.62184 12.199 4.40577 12.1858 4.24335C12.1734 4.09103 12.1535 4.05164 12.1506 4.04609C12.1183 3.98266 12.072 3.92746 12.0149 3.88593L11.9544 3.84882C11.9491 3.84612 11.91 3.82616 11.7571 3.81367C11.5947 3.8004 11.3786 3.79999 11.0305 3.79999H4.96998C4.62194 3.79999 4.40583 3.80043 4.24341 3.81367C4.09317 3.82594 4.05255 3.84557 4.04615 3.84882C3.96148 3.89196 3.89202 3.96142 3.84888 4.04609C3.84563 4.05249 3.826 4.09311 3.81373 4.24335C3.80049 4.40577 3.80005 4.62188 3.80005 4.96992V11.0305C3.80006 11.3785 3.80046 11.5946 3.81373 11.757C3.82622 11.91 3.84618 11.949 3.84888 11.9543L3.88599 12.0148C3.92752 12.0719 3.98272 12.1183 4.04615 12.1506C4.0517 12.1534 4.09109 12.1733 4.24341 12.1857C4.40583 12.199 4.6219 12.2004 4.96998 12.2004H11.0305C11.3786 12.2004 11.5947 12.199 11.7571 12.1857C11.9108 12.1732 11.9494 12.1531 11.9544 12.1506L12.0149 12.1135C12.0718 12.072 12.1184 12.0176 12.1506 11.9543L12.1653 11.9113C12.1722 11.8818 12.1795 11.8337 12.1858 11.757C12.1991 11.5946 12.2004 11.3786 12.2004 11.0305V4.96992ZM13.7004 11.0305C13.7004 11.3539 13.7003 11.6415 13.6809 11.8791C13.6608 12.1255 13.6157 12.3833 13.4876 12.635C13.3006 13.0019 13.002 13.3006 12.635 13.4875C12.3834 13.6156 12.1255 13.6607 11.8792 13.6809C11.6416 13.7003 11.3539 13.7004 11.0305 13.7004H4.96998C4.64635 13.7004 4.35808 13.7003 4.12037 13.6809C3.87402 13.6607 3.61605 13.6157 3.36451 13.4875C2.99762 13.3005 2.69983 13.0017 2.51295 12.635C2.38474 12.3833 2.33874 12.1255 2.31861 11.8791C2.29921 11.6415 2.30005 11.3539 2.30005 11.0305V4.96992C2.30005 4.64629 2.29919 4.35802 2.31861 4.12031C2.33877 3.87395 2.38477 3.616 2.51295 3.36445C2.69985 2.99781 2.99787 2.69978 3.36451 2.51288C3.61606 2.38471 3.87401 2.3387 4.12037 2.31855C4.35808 2.29913 4.64635 2.29999 4.96998 2.29999H11.0305C11.3539 2.29999 11.6416 2.29915 11.8792 2.31855C12.1256 2.33868 12.3834 2.38468 12.635 2.51288C13.0018 2.69977 13.3006 2.99756 13.4876 3.36445C13.6157 3.61599 13.6608 3.87396 13.6809 4.12031C13.7003 4.35802 13.7004 4.64629 13.7004 4.96992V11.0305Z"],"Stop/s/filled":["M8.28613 1.95001H3.71376C3.47339 1.95001 3.27275 1.95 3.10885 1.9634C2.9379 1.97736 2.77741 2.00756 2.62564 2.08489C2.39279 2.20353 2.20347 2.39285 2.08483 2.6257C2.0075 2.77747 1.9773 2.93796 1.96333 3.10891C1.94994 3.27281 1.94995 3.47345 1.94995 3.71381V8.28619C1.94995 8.52658 1.94994 8.72719 1.96333 8.89113C1.9773 9.06208 2.0075 9.22255 2.08483 9.37434C2.20347 9.60717 2.39279 9.79648 2.62564 9.91515C2.77741 9.99246 2.9379 10.0227 3.10885 10.0366C3.27275 10.05 3.47338 10.05 3.71375 10.05H8.28618C8.52652 10.05 8.72713 10.05 8.89107 10.0366C9.06202 10.0227 9.22249 9.99246 9.37428 9.91515C9.60711 9.79648 9.79642 9.60717 9.91509 9.37434C9.9924 9.22255 10.0226 9.06208 10.0366 8.89113C10.05 8.72719 10.05 8.52658 10.05 8.28624V3.71381C10.05 3.47344 10.05 3.27281 10.0366 3.10891C10.0226 2.93796 9.9924 2.77747 9.91509 2.6257C9.79642 2.39285 9.60711 2.20353 9.37428 2.08489C9.22249 2.00756 9.06202 1.97736 8.89107 1.9634C8.72713 1.95 8.52652 1.95001 8.28613 1.95001Z"],"Stop/s/outline":["M9.21228 3.72791C9.21228 3.46765 9.21175 3.30212 9.20154 3.17713C9.19191 3.0592 9.17657 3.0206 9.16932 3.00623C9.13109 2.93118 9.06957 2.8698 8.99451 2.83143C8.9805 2.82429 8.9418 2.80796 8.82264 2.79822C8.69772 2.78803 8.53273 2.78748 8.27283 2.78748H3.72791C3.46766 2.78748 3.30212 2.78801 3.17713 2.79822C3.05834 2.80793 3.02036 2.82425 3.00623 2.83143C2.93097 2.86977 2.86977 2.93097 2.83143 3.00623C2.82425 3.02036 2.80793 3.05834 2.79822 3.17713C2.78801 3.30212 2.78748 3.46766 2.78748 3.72791V8.27283C2.78748 8.53273 2.78803 8.69772 2.79822 8.82264C2.80796 8.9418 2.82429 8.9805 2.83143 8.99451C2.8698 9.06957 2.93118 9.13109 3.00623 9.16932C3.0206 9.17657 3.0592 9.19191 3.17713 9.20154C3.30212 9.21175 3.46765 9.21228 3.72791 9.21228H8.27283C8.53275 9.21228 8.69772 9.21173 8.82264 9.20154C8.9418 9.19181 8.9805 9.17646 8.99451 9.16932C9.06964 9.13101 9.13101 9.06964 9.16932 8.99451C9.17646 8.9805 9.19181 8.9418 9.20154 8.82264C9.21173 8.69772 9.21228 8.53275 9.21228 8.27283V3.72791ZM10.2123 8.27283C10.2123 8.51646 10.2129 8.72959 10.1986 8.90467C10.1838 9.08542 10.1507 9.26937 10.0599 9.44764C9.92573 9.71108 9.71108 9.92573 9.44764 10.0599C9.26937 10.1507 9.08542 10.1838 8.90467 10.1986C8.72959 10.2129 8.51646 10.2123 8.27283 10.2123H3.72791C3.48434 10.2123 3.27115 10.2129 3.09607 10.1986C2.91515 10.1838 2.73056 10.1508 2.55213 10.0599C2.28864 9.92572 2.07403 9.71103 1.93982 9.44764C1.8491 9.26939 1.81594 9.0854 1.80115 8.90467C1.78685 8.72959 1.78748 8.51646 1.78748 8.27283V3.72791C1.78748 3.48434 1.78688 3.27115 1.80115 3.09607C1.81593 2.91517 1.84899 2.73053 1.93982 2.55213C2.07404 2.28869 2.28869 2.07404 2.55213 1.93982C2.73053 1.84899 2.91517 1.81593 3.09607 1.80115C3.27115 1.78688 3.48434 1.78748 3.72791 1.78748H8.27283C8.51646 1.78748 8.72959 1.78685 8.90467 1.80115C9.0854 1.81594 9.26939 1.8491 9.44764 1.93982C9.71103 2.07403 9.92572 2.28864 10.0599 2.55213C10.1508 2.73056 10.1838 2.91515 10.1986 3.09607C10.2129 3.27115 10.2123 3.48434 10.2123 3.72791V8.27283Z"],"SunLight/l/filled":["M12.0547 19.959C12.4687 19.959 12.8045 20.295 12.8047 20.709V22.2324C12.8047 22.6466 12.4689 22.9824 12.0547 22.9824C11.6406 22.9823 11.3047 22.6466 11.3047 22.2324V20.709C11.3049 20.295 11.6407 19.9591 12.0547 19.959ZM5.36621 17.6279C5.65904 17.3353 6.13392 17.3353 6.42676 17.6279C6.71965 17.9208 6.71965 18.3966 6.42676 18.6895L5.34961 19.7656C5.05671 20.0585 4.58195 20.0585 4.28906 19.7656C3.99641 19.4727 3.99624 18.9979 4.28906 18.7051L5.36621 17.6279ZM17.6826 17.6279C17.9755 17.3353 18.4503 17.3353 18.7432 17.6279L19.8203 18.7051C20.1132 18.9979 20.113 19.4727 19.8203 19.7656C19.5274 20.0585 19.0527 20.0585 18.7598 19.7656L17.6826 18.6885C17.3899 18.3956 17.3898 17.9208 17.6826 17.6279ZM7.8125 7.75781C10.1556 5.41467 13.9537 5.41467 16.2969 7.75781C18.64 10.101 18.64 13.8991 16.2969 16.2422C13.9537 18.5854 10.1556 18.5854 7.8125 16.2422C5.46936 13.8991 5.46936 10.101 7.8125 7.75781ZM3.3457 11.25C3.75979 11.2501 4.09564 11.5859 4.0957 12C4.0957 12.4141 3.75983 12.7499 3.3457 12.75H1.82227C1.40806 12.75 1.07227 12.4142 1.07227 12C1.07233 11.5859 1.4081 11.25 1.82227 11.25H3.3457ZM22.2871 11.25C22.7012 11.2501 23.037 11.5859 23.0371 12C23.0371 12.4143 22.7012 12.7499 22.2871 12.75H20.7637C20.3495 12.75 20.0137 12.4143 20.0137 12C20.0137 11.5859 20.3495 11.25 20.7637 11.25H22.2871ZM4.28906 4.23438C4.58195 3.94149 5.05671 3.94149 5.34961 4.23438L6.42676 5.31152C6.71962 5.60442 6.71964 6.07918 6.42676 6.37207C6.13388 6.66495 5.65911 6.66492 5.36621 6.37207L4.28906 5.29492C3.99617 5.00203 3.99617 4.52726 4.28906 4.23438ZM18.7598 4.23438C19.0527 3.94151 19.5274 3.94149 19.8203 4.23438C20.1132 4.52727 20.1132 5.00203 19.8203 5.29492L18.7432 6.37207C18.4503 6.66491 17.9755 6.66493 17.6826 6.37207C17.3897 6.07918 17.3897 5.60442 17.6826 5.31152L18.7598 4.23438ZM12.0547 1.01758C12.4689 1.01758 12.8047 1.35336 12.8047 1.76758V3.29102C12.8046 3.70515 12.4688 4.04102 12.0547 4.04102C11.6406 4.04092 11.3048 3.70509 11.3047 3.29102V1.76758C11.3047 1.35342 11.6406 1.01768 12.0547 1.01758Z"],"SunLight/l/outline":["M11.3047 22.2324V20.709C11.3049 20.295 11.6407 19.9591 12.0547 19.959C12.4688 19.959 12.8045 20.295 12.8047 20.709V22.2324C12.8047 22.6466 12.4689 22.9824 12.0547 22.9824C11.6405 22.9823 11.3047 22.6466 11.3047 22.2324ZM5.36621 17.6279C5.65905 17.3353 6.13391 17.3353 6.42676 17.6279C6.71959 17.9208 6.71946 18.3956 6.42676 18.6885L5.34961 19.7656C5.05672 20.0585 4.58196 20.0585 4.28906 19.7656C3.99637 19.4727 3.99624 18.9979 4.28906 18.7051L5.36621 17.6279ZM17.6826 17.6279C17.9755 17.3353 18.4503 17.3353 18.7432 17.6279L19.8203 18.7051C20.1132 18.9979 20.113 19.4727 19.8203 19.7656C19.5274 20.0585 19.0527 20.0585 18.7598 19.7656L17.6826 18.6885C17.3899 18.3956 17.3898 17.9208 17.6826 17.6279ZM7.8125 7.75781C10.1557 5.41472 13.9547 5.4147 16.2979 7.75781C18.6405 10.101 18.6408 13.9002 16.2979 16.2432C13.9548 18.5862 10.1557 18.5859 7.8125 16.2432C5.46933 13.9001 5.46936 10.101 7.8125 7.75781ZM15.2363 8.81836C13.4789 7.0611 10.6304 7.06109 8.87305 8.81836C7.11568 10.5757 7.11574 13.4243 8.87305 15.1816C10.6304 16.939 13.4789 16.939 15.2363 15.1816C16.9936 13.4243 16.9937 10.5758 15.2363 8.81836ZM3.3457 11.25C3.7598 11.2501 4.09565 11.5859 4.0957 12C4.0957 12.4142 3.75984 12.7499 3.3457 12.75H1.82227C1.40805 12.75 1.07227 12.4142 1.07227 12C1.07232 11.5858 1.40808 11.25 1.82227 11.25H3.3457ZM22.2871 11.25C22.7012 11.2501 23.0371 11.5859 23.0371 12C23.0371 12.4142 22.7012 12.7499 22.2871 12.75H20.7637C20.3495 12.75 20.0137 12.4142 20.0137 12C20.0137 11.5858 20.3495 11.25 20.7637 11.25H22.2871ZM4.28906 4.23438C4.58196 3.94148 5.05672 3.94148 5.34961 4.23438L6.42676 5.31152C6.71958 5.60442 6.71963 6.0792 6.42676 6.37207C6.13389 6.66494 5.65911 6.66489 5.36621 6.37207L4.28906 5.29492C3.99617 5.00203 3.99618 4.52727 4.28906 4.23438ZM18.7598 4.23438C19.0527 3.94151 19.5274 3.94151 19.8203 4.23438C20.1132 4.52727 20.1132 5.00204 19.8203 5.29492L18.7432 6.37207C18.4503 6.66494 17.9755 6.66493 17.6826 6.37207C17.3897 6.07917 17.3897 5.6044 17.6826 5.31152L18.7598 4.23438ZM11.3047 3.29102V1.76758C11.3047 1.35342 11.6405 1.01766 12.0547 1.01758C12.4689 1.01758 12.8047 1.35336 12.8047 1.76758V3.29102C12.8046 3.70514 12.4688 4.04102 12.0547 4.04102C11.6406 4.04093 11.3048 3.70509 11.3047 3.29102Z"],"SunLight/m/filled":["M8.03613 13.3066C8.31227 13.3066 8.53613 13.5305 8.53613 13.8066V14.8223C8.53589 15.0982 8.31211 15.3223 8.03613 15.3223C7.76035 15.322 7.53638 15.098 7.53613 14.8223V13.8066C7.53613 13.5307 7.7602 13.3069 8.03613 13.3066Z","M3.57715 11.752C3.7723 11.5568 4.08889 11.557 4.28418 11.752C4.47944 11.9472 4.47944 12.2637 4.28418 12.459L3.56641 13.1777C3.37117 13.3727 3.05458 13.3728 2.85938 13.1777C2.66418 12.9825 2.66433 12.666 2.85938 12.4707L3.57715 11.752Z","M11.7881 11.752C11.9833 11.5568 12.2998 11.557 12.4951 11.752L13.2139 12.4707C13.4087 12.666 13.409 12.9826 13.2139 13.1777C13.0187 13.3728 12.7021 13.3726 12.5068 13.1777L11.7881 12.459C11.5931 12.2637 11.5929 11.9471 11.7881 11.752Z","M5.20801 5.17188C6.77007 3.60978 9.3031 3.60978 10.8652 5.17188C12.4269 6.73389 12.4269 9.26614 10.8652 10.8281C9.3031 12.3903 6.77007 12.3903 5.20801 10.8281C3.6461 9.2661 3.64611 6.73393 5.20801 5.17188Z","M2.23047 7.5C2.50653 7.50006 2.73044 7.72393 2.73047 8C2.73047 8.27609 2.50655 8.49994 2.23047 8.5H1.21484C0.938704 8.5 0.714844 8.27613 0.714844 8C0.714877 7.72389 0.938724 7.5 1.21484 7.5H2.23047Z","M14.8584 7.5C15.1343 7.50021 15.3584 7.72403 15.3584 8C15.3584 8.27607 15.1343 8.49979 14.8584 8.5H13.8428C13.5666 8.5 13.3428 8.2762 13.3428 8C13.3428 7.72389 13.5667 7.5 13.8428 7.5H14.8584Z","M2.85938 2.82324C3.05464 2.62798 3.37114 2.62798 3.56641 2.82324L4.28418 3.54102C4.47945 3.73628 4.47945 4.05278 4.28418 4.24805C4.0889 4.44312 3.77235 4.44325 3.57715 4.24805L2.85938 3.53027C2.66417 3.33508 2.66429 3.01852 2.85938 2.82324Z","M12.5068 2.82324C12.7021 2.62802 13.0186 2.62799 13.2139 2.82324C13.4088 3.01852 13.409 3.33512 13.2139 3.53027L12.4951 4.24805C12.2998 4.44314 11.9833 4.44325 11.7881 4.24805C11.593 4.05282 11.593 3.73624 11.7881 3.54102L12.5068 2.82324Z","M8.03613 0.678711C8.31227 0.678711 8.53613 0.902564 8.53613 1.17871V2.19434C8.5359 2.47028 8.31212 2.69434 8.03613 2.69434C7.76034 2.69411 7.53637 2.47014 7.53613 2.19434V1.17871C7.53613 0.902707 7.7602 0.678942 8.03613 0.678711Z"],"SunLight/m/outline":["M7.41113 14.822V13.8063C7.41113 13.4613 7.69115 13.1816 8.03613 13.1813C8.38131 13.1813 8.66113 13.4612 8.66113 13.8063V14.822C8.66106 15.1671 8.38126 15.447 8.03613 15.447C7.6912 15.4467 7.41121 15.1669 7.41113 14.822ZM3.48926 11.6638C3.73335 11.4198 4.12901 11.4197 4.37305 11.6638C4.61705 11.9078 4.61699 12.3035 4.37305 12.5475L3.65527 13.2653C3.4112 13.5094 3.01459 13.5094 2.77051 13.2653C2.52691 13.0212 2.52665 12.6255 2.77051 12.3815L3.48926 11.6638ZM11.7002 11.6638C11.9443 11.4198 12.34 11.4197 12.584 11.6638L13.3018 12.3815C13.5458 12.6256 13.5457 13.0212 13.3018 13.2653C13.0577 13.5094 12.6621 13.5094 12.418 13.2653L11.7002 12.5475C11.4561 12.3035 11.4561 11.9078 11.7002 11.6638ZM5.12012 5.08368C6.73104 3.4728 9.3422 3.47279 10.9531 5.08368C12.5639 6.69461 12.564 9.30583 10.9531 10.9167C9.34223 12.5276 6.73105 12.5275 5.12012 10.9167C3.50919 9.3058 3.50921 6.69461 5.12012 5.08368ZM10.0693 5.96747C8.94656 4.84472 7.12667 4.84475 6.00391 5.96747C4.88113 7.09026 4.88116 8.91018 6.00391 10.0329C7.12668 11.1556 8.94659 11.1556 10.0693 10.0329C11.192 8.91022 11.192 7.09026 10.0693 5.96747ZM2.23047 7.37469C2.57546 7.37476 2.85526 7.65474 2.85547 7.99969C2.85547 8.34483 2.57559 8.62463 2.23047 8.62469H1.21484C0.869666 8.62469 0.589844 8.34487 0.589844 7.99969C0.590055 7.6547 0.869796 7.37469 1.21484 7.37469H2.23047ZM14.8584 7.37469C15.2032 7.37493 15.4832 7.65484 15.4834 7.99969C15.4834 8.34473 15.2034 8.62446 14.8584 8.62469H13.8428C13.4976 8.62469 13.2178 8.34487 13.2178 7.99969C13.218 7.6547 13.4977 7.37469 13.8428 7.37469H14.8584ZM2.77051 2.73407C3.01459 2.48999 3.4112 2.48999 3.65527 2.73407L4.37305 3.45282C4.61692 3.69691 4.61705 4.0926 4.37305 4.33661C4.12904 4.58062 3.73335 4.58048 3.48926 4.33661L2.77051 3.61884C2.52643 3.37476 2.52643 2.97815 2.77051 2.73407ZM12.418 2.73407C12.662 2.49027 13.0577 2.49039 13.3018 2.73407C13.5458 2.97816 13.5458 3.37477 13.3018 3.61884L12.584 4.33661C12.34 4.58061 11.9443 4.5805 11.7002 4.33661C11.4561 4.09252 11.4561 3.69689 11.7002 3.45282L12.418 2.73407ZM7.41113 2.19403V1.17841C7.41113 0.833371 7.69115 0.553638 8.03613 0.553406C8.38131 0.553406 8.66113 0.833228 8.66113 1.17841V2.19403C8.66107 2.53915 8.38127 2.81903 8.03613 2.81903C7.69119 2.8188 7.4112 2.53901 7.41113 2.19403Z"],"SunLight/s/filled":["M6.02734 9.97949C6.23436 9.97949 6.40221 10.1475 6.40234 10.3545V11.1162C6.40234 11.3233 6.23444 11.4912 6.02734 11.4912C5.8203 11.4911 5.65234 11.3233 5.65234 11.1162V10.3545C5.65248 10.1475 5.82038 9.97956 6.02734 9.97949Z","M2.68262 8.81445C2.82906 8.668 3.06742 8.668 3.21387 8.81445C3.35989 8.96089 3.36004 9.19839 3.21387 9.34473L2.6748 9.88281C2.52835 10.0293 2.29098 10.0293 2.14453 9.88281C1.9982 9.73635 1.99812 9.49895 2.14453 9.35254L2.68262 8.81445Z","M8.84082 8.81445C8.98727 8.668 9.22562 8.668 9.37207 8.81445L9.91016 9.35254C10.0566 9.49896 10.0565 9.73635 9.91016 9.88281C9.76371 10.0293 9.52633 10.0293 9.37988 9.88281L8.84082 9.34473C8.69461 9.1984 8.6948 8.9609 8.84082 8.81445Z","M3.90625 3.87891C5.0778 2.70733 6.97684 2.70734 8.14844 3.87891C9.31999 5.05048 9.31999 6.94954 8.14844 8.12109C6.97684 9.29268 5.0778 9.29268 3.90625 8.12109C2.73468 6.94954 2.73468 5.05048 3.90625 3.87891Z","M1.67285 5.625C1.8799 5.62505 2.04782 5.79296 2.04785 6C2.04785 6.20707 1.87992 6.37495 1.67285 6.375H0.911133C0.704028 6.375 0.536133 6.2071 0.536133 6C0.536166 5.79293 0.704048 5.625 0.911133 5.625H1.67285Z","M11.1436 5.625C11.3506 5.62504 11.5185 5.79295 11.5186 6C11.5186 6.20713 11.3506 6.37496 11.1436 6.375H10.3818C10.1747 6.375 10.0068 6.20715 10.0068 6C10.0069 5.79293 10.1748 5.625 10.3818 5.625H11.1436Z","M2.14453 2.11719C2.29098 1.97074 2.52835 1.97074 2.6748 2.11719L3.21387 2.65527C3.3603 2.80172 3.36031 3.04008 3.21387 3.18652C3.06743 3.33296 2.82907 3.33295 2.68262 3.18652L2.14453 2.64746C1.99808 2.50102 1.99808 2.26363 2.14453 2.11719Z","M9.37988 2.11719C9.52633 1.97075 9.76371 1.97075 9.91016 2.11719C10.0566 2.26363 10.0566 2.50102 9.91016 2.64746L9.37207 3.18652C9.22562 3.33294 8.98726 3.33295 8.84082 3.18652C8.69437 3.04008 8.69438 2.80172 8.84082 2.65527L9.37988 2.11719Z","M6.02734 0.508789C6.23444 0.508789 6.40234 0.676679 6.40234 0.883789V1.64551C6.40229 1.85257 6.23441 2.02051 6.02734 2.02051C5.82033 2.02044 5.65239 1.85253 5.65234 1.64551V0.883789C5.65234 0.67672 5.8203 0.508855 6.02734 0.508789Z"],"SunLight/s/outline":["M6.02734 9.85449C6.30342 9.85449 6.52723 10.0784 6.52734 10.3545V11.1162C6.52734 11.3924 6.30349 11.6162 6.02734 11.6162C5.75124 11.6162 5.52734 11.3923 5.52734 11.1162V10.3545C5.52746 10.0785 5.75131 9.85454 6.02734 9.85449ZM2.59473 8.72559C2.78996 8.53045 3.10652 8.53046 3.30176 8.72559C3.49699 8.92082 3.49692 9.23735 3.30176 9.43262L2.76367 9.97168C2.56841 10.1669 2.25093 10.1669 2.05566 9.97168C1.86064 9.77655 1.86085 9.45991 2.05566 9.26465L2.59473 8.72559ZM8.75293 8.72559C8.94817 8.53047 9.26473 8.53045 9.45996 8.72559L9.99902 9.26465C10.1939 9.45991 10.1941 9.77654 9.99902 9.97168C9.80377 10.167 9.48629 10.1669 9.29102 9.97168L8.75293 9.43262C8.55776 9.23736 8.55771 8.92082 8.75293 8.72559ZM3.81738 3.79004C5.03777 2.56969 7.0169 2.56971 8.2373 3.79004C9.45765 5.01044 9.45766 6.98959 8.2373 8.20996C7.01689 9.43037 5.03778 9.43038 3.81738 8.20996C2.59701 6.98959 2.59701 5.01043 3.81738 3.79004ZM7.53027 4.49707C6.70039 3.66726 5.35427 3.66725 4.52441 4.49707C3.69454 5.32695 3.69458 6.6731 4.52441 7.50293C5.35428 8.33281 6.70038 8.33282 7.53027 7.50293C8.3601 6.6731 8.36012 5.32696 7.53027 4.49707ZM1.67285 5.5C1.94894 5.50005 2.17282 5.72391 2.17285 6C2.17285 6.27611 1.94895 6.49995 1.67285 6.5H0.911133C0.63499 6.5 0.411133 6.27614 0.411133 6C0.411159 5.72388 0.635007 5.5 0.911133 5.5H1.67285ZM11.1436 5.5C11.4196 5.50004 11.6435 5.72391 11.6436 6C11.6436 6.27612 11.4197 6.49996 11.1436 6.5H10.3818C10.1057 6.5 9.88184 6.27614 9.88184 6C9.88186 5.72388 10.1057 5.5 10.3818 5.5H11.1436ZM2.05566 2.02832C2.25093 1.83306 2.56841 1.83306 2.76367 2.02832L3.30176 2.56738C3.49699 2.76265 3.49701 3.07916 3.30176 3.27441C3.10651 3.46966 2.78999 3.46964 2.59473 3.27441L2.05566 2.73633C1.8604 2.54107 1.86041 2.22358 2.05566 2.02832ZM9.29102 2.02832C9.48628 1.83307 9.80377 1.83307 9.99902 2.02832C10.1943 2.22358 10.1943 2.54107 9.99902 2.73633L9.45996 3.27441C9.2647 3.46966 8.94819 3.46966 8.75293 3.27441C8.55768 3.07915 8.55766 2.76264 8.75293 2.56738L9.29102 2.02832ZM6.02734 0.383789C6.30349 0.383789 6.52734 0.607647 6.52734 0.883789V1.64551C6.52729 1.92161 6.30345 2.14551 6.02734 2.14551C5.75127 2.14547 5.52739 1.92158 5.52734 1.64551V0.883789C5.52734 0.607673 5.75124 0.383832 6.02734 0.383789Z"],"SystemComputerLaptopMacbook/l/filled":["M3.05664 5.75C3.05664 4.23122 4.28786 3 5.80664 3H18.3066C19.8254 3 21.0566 4.23122 21.0566 5.75V16H22.3066C22.7208 16 23.0566 16.3358 23.0566 16.75V18.25C23.0566 19.7688 21.8254 21 20.3066 21H3.80664C2.28786 21 1.05664 19.7688 1.05664 18.25V16.75C1.05664 16.3358 1.39243 16 1.80664 16H3.05664V5.75ZM2.55664 17.5V18.25C2.55664 18.9404 3.11628 19.5 3.80664 19.5H20.3066C20.997 19.5 21.5566 18.9404 21.5566 18.25V17.5H2.55664Z"],"SystemComputerLaptopMacbook/l/outline":["M18.3066 3C19.8255 3 21.0566 4.23122 21.0566 5.75V16H22.3066C22.7209 16 23.0566 16.3358 23.0566 16.75V18.25C23.0566 19.7688 21.8255 21 20.3066 21H3.80664C2.28786 21 1.05664 19.7688 1.05664 18.25V16.75C1.05664 16.3358 1.39243 16 1.80664 16H3.05664V5.75C3.05664 4.23122 4.28786 3 5.80664 3H18.3066ZM2.55664 18.25C2.55664 18.9404 3.11628 19.5 3.80664 19.5H20.3066C20.997 19.5 21.5566 18.9404 21.5566 18.25V17.5H2.55664V18.25ZM5.80664 4.5C5.11628 4.5 4.55664 5.05964 4.55664 5.75V16H19.5566V5.75C19.5566 5.05964 18.997 4.5 18.3066 4.5H5.80664Z"],"SystemComputerLaptopMacbook/m/filled":["M2.0378 3.83333C2.0378 2.82081 2.85861 2 3.87113 2H12.2045C13.217 2 14.0378 2.82081 14.0378 3.83333V10.6667H14.8711C15.1473 10.6667 15.3711 10.8905 15.3711 11.1667V12.1667C15.3711 13.1792 14.5503 14 13.5378 14H2.5378C1.52528 14 0.704468 13.1792 0.704468 12.1667V11.1667C0.704468 10.8905 0.928328 10.6667 1.20447 10.6667H2.0378V3.83333ZM1.70447 11.6667V12.1667C1.70447 12.6269 2.07756 13 2.5378 13H13.5378C13.9981 13 14.3711 12.6269 14.3711 12.1667V11.6667H1.70447Z"],"SystemComputerLaptopMacbook/m/outline":["M12.2051 1.875C13.2863 1.87534 14.1629 2.75182 14.1631 3.83301V10.542H14.8711C15.2161 10.5422 15.4961 10.8219 15.4961 11.167V12.167C15.4959 13.2484 14.6186 14.125 13.5371 14.125H2.53711C1.45595 14.1247 0.579266 13.2482 0.579102 12.167V11.167C0.579102 10.8219 0.859064 10.5422 1.2041 10.542H1.91309V3.83301C1.91326 2.75171 2.78979 1.87518 3.87109 1.875H12.2051ZM1.8291 12.167C1.82927 12.5579 2.14629 12.8747 2.53711 12.875H13.5371C13.9282 12.875 14.2459 12.5581 14.2461 12.167V11.792H1.8291V12.167ZM3.87109 3.125C3.48015 3.12518 3.16326 3.44206 3.16309 3.83301V10.542H12.9131V3.83301C12.9129 3.44216 12.5959 3.12534 12.2051 3.125H3.87109Z"],"SystemComputerLaptopMacbook/s/filled":["M1.52832 2.875C1.52832 2.11561 2.14393 1.5 2.90332 1.5H9.15332C9.91272 1.5 10.5283 2.11561 10.5283 2.875V8H11.1533C11.3604 8 11.5283 8.1679 11.5283 8.375V9.125C11.5283 9.8844 10.9127 10.5 10.1533 10.5H1.90332C1.14393 10.5 0.52832 9.8844 0.52832 9.125V8.375C0.52832 8.1679 0.696215 8 0.90332 8H1.52832V2.875ZM1.27832 8.75V9.125C1.27832 9.4702 1.55814 9.75 1.90332 9.75H10.1533C10.4985 9.75 10.7783 9.4702 10.7783 9.125V8.75H1.27832Z"],"SystemComputerLaptopMacbook/s/outline":["M9.15332 1.375C9.98177 1.375 10.6533 2.04658 10.6533 2.875V7.875H11.1533C11.4295 7.875 11.6533 8.09886 11.6533 8.375V9.125C11.6533 9.95344 10.9818 10.625 10.1533 10.625H1.90332C1.0749 10.625 0.40332 9.95345 0.40332 9.125V8.375C0.40332 8.09886 0.627178 7.875 0.90332 7.875H1.40332V2.875C1.40332 2.04657 2.07489 1.375 2.90332 1.375H9.15332ZM1.40332 9.125C1.40332 9.40115 1.62717 9.625 1.90332 9.625H10.1533C10.4295 9.625 10.6533 9.40116 10.6533 9.125V8.875H1.40332V9.125ZM2.90332 2.375C2.62718 2.375 2.40332 2.59886 2.40332 2.875V7.875H9.65332V2.875C9.65332 2.59885 9.42947 2.375 9.15332 2.375H2.90332Z"],"TasksTodosPlans/l/filled":["M3 5.55859C3 4.03981 4.23122 2.80859 5.75 2.80859H18.25C19.7688 2.80859 21 4.03981 21 5.55859V18.0586C21 19.5774 19.7688 20.8086 18.25 20.8086H5.75C4.23122 20.8086 3 19.5774 3 18.0586V5.55859ZM11 9.30859C11 8.89438 11.3358 8.55859 11.75 8.55859H16.25C16.6642 8.55859 17 8.89438 17 9.30859C17 9.7228 16.6642 10.0586 16.25 10.0586H11.75C11.3358 10.0586 11 9.7228 11 9.30859ZM11.75 13.5586C11.3358 13.5586 11 13.8944 11 14.3086C11 14.7228 11.3358 15.0586 11.75 15.0586H16.25C16.6642 15.0586 17 14.7228 17 14.3086C17 13.8944 16.6642 13.5586 16.25 13.5586H11.75ZM9 14.3086C9 14.8609 8.55228 15.3086 8 15.3086C7.44772 15.3086 7 14.8609 7 14.3086C7 13.7563 7.44772 13.3086 8 13.3086C8.55228 13.3086 9 13.7563 9 14.3086ZM8 10.3086C8.55228 10.3086 9 9.86089 9 9.30859C9 8.75631 8.55228 8.30859 8 8.30859C7.44772 8.30859 7 8.75631 7 9.30859C7 9.86089 7.44772 10.3086 8 10.3086Z"],"TasksTodosPlans/l/outline":["M8 13.5C8.55228 13.5 9 13.9477 9 14.5C9 15.0523 8.55228 15.5 8 15.5C7.44772 15.5 7 15.0523 7 14.5C7 13.9477 7.44772 13.5 8 13.5Z","M16.25 13.75C16.6642 13.75 17 14.0858 17 14.5C17 14.9142 16.6642 15.25 16.25 15.25H11.75C11.3358 15.25 11 14.9142 11 14.5C11 14.0858 11.3358 13.75 11.75 13.75H16.25Z","M8 8.5C8.55228 8.5 9 8.94772 9 9.5C9 10.0523 8.55228 10.5 8 10.5C7.44772 10.5 7 10.0523 7 9.5C7 8.94772 7.44772 8.5 8 8.5Z","M16.25 8.75C16.6642 8.75 17 9.08579 17 9.5C17 9.91421 16.6642 10.25 16.25 10.25H11.75C11.3358 10.25 11 9.91421 11 9.5C11 9.08579 11.3358 8.75 11.75 8.75H16.25Z","M18.25 3C19.7688 3 21 4.23122 21 5.75V18.25C21 19.7688 19.7688 21 18.25 21H5.75C4.23122 21 3 19.7688 3 18.25V5.75C3 4.23122 4.23122 3 5.75 3H18.25ZM5.75 4.5C5.05964 4.5 4.5 5.05964 4.5 5.75V18.25C4.5 18.9404 5.05964 19.5 5.75 19.5H18.25C18.9404 19.5 19.5 18.9404 19.5 18.25V5.75C19.5 5.05964 18.9404 4.5 18.25 4.5H5.75Z"],"TasksTodosPlans/m/filled":["M2 3.70571C2 2.69319 2.82081 1.87238 3.83333 1.87238H12.1667C13.1792 1.87238 14 2.69319 14 3.70571V12.039C14 13.0516 13.1792 13.8724 12.1667 13.8724H3.83333C2.82081 13.8724 2 13.0516 2 12.039V3.70571ZM7.33333 6.20571C7.33333 5.92957 7.5572 5.70571 7.83333 5.70571H10.8333C11.1095 5.70571 11.3333 5.92957 11.3333 6.20571C11.3333 6.48185 11.1095 6.70571 10.8333 6.70571H7.83333C7.5572 6.70571 7.33333 6.48185 7.33333 6.20571ZM7.83333 9.03904C7.5572 9.03904 7.33333 9.26291 7.33333 9.53904C7.33333 9.81518 7.5572 10.039 7.83333 10.039H10.8333C11.1095 10.039 11.3333 9.81518 11.3333 9.53904C11.3333 9.26291 11.1095 9.03904 10.8333 9.03904H7.83333ZM6 9.53904C6 9.90724 5.70152 10.2057 5.33333 10.2057C4.96515 10.2057 4.66667 9.90724 4.66667 9.53904C4.66667 9.17084 4.96515 8.87238 5.33333 8.87238C5.70152 8.87238 6 9.17084 6 9.53904ZM5.33333 6.87238C5.70152 6.87238 6 6.57391 6 6.20571C6 5.83752 5.70152 5.53904 5.33333 5.53904C4.96515 5.53904 4.66667 5.83752 4.66667 6.20571C4.66667 6.57391 4.96515 6.87238 5.33333 6.87238Z"],"TasksTodosPlans/m/outline":["M5.33301 9C5.7012 9 6 9.2988 6 9.66699C5.99982 10.035 5.70109 10.333 5.33301 10.333C4.96506 10.3329 4.66717 10.0349 4.66699 9.66699C4.66699 9.2989 4.96495 9.00015 5.33301 9Z","M10.833 9.04199C11.1782 9.04199 11.458 9.32181 11.458 9.66699C11.4578 10.012 11.1781 10.292 10.833 10.292H7.83301C7.4881 10.2918 7.20817 10.0119 7.20801 9.66699C7.20801 9.32194 7.488 9.04219 7.83301 9.04199H10.833Z","M5.33301 5.66699C5.70108 5.66699 5.99981 5.96498 6 6.33301C6 6.7012 5.7012 7 5.33301 7C4.96495 6.99985 4.66699 6.7011 4.66699 6.33301C4.66718 5.96507 4.96506 5.66715 5.33301 5.66699Z","M10.833 5.70801C11.1781 5.70801 11.4578 5.98797 11.458 6.33301C11.458 6.67819 11.1782 6.95801 10.833 6.95801H7.83301C7.488 6.95781 7.20801 6.67806 7.20801 6.33301C7.20817 5.98809 7.4881 5.70821 7.83301 5.70801H10.833Z","M12.167 1.875C13.2483 1.87518 14.1248 2.75171 14.125 3.83301V12.167C14.1248 13.2483 13.2483 14.1248 12.167 14.125H3.83301C2.75171 14.1248 1.87518 13.2483 1.875 12.167V3.83301C1.87518 2.75171 2.75171 1.87518 3.83301 1.875H12.167ZM3.83301 3.125C3.44206 3.12518 3.12518 3.44206 3.125 3.83301V12.167C3.12518 12.558 3.44206 12.8748 3.83301 12.875H12.167C12.558 12.8748 12.8748 12.558 12.875 12.167V3.83301C12.8748 3.44206 12.558 3.12518 12.167 3.125H3.83301Z"],"TasksTodosPlans/s/filled":["M1.5 2.7793C1.5 2.01991 2.11561 1.4043 2.875 1.4043H9.125C9.8844 1.4043 10.5 2.01991 10.5 2.7793V9.0293C10.5 9.7887 9.8844 10.4043 9.125 10.4043H2.875C2.11561 10.4043 1.5 9.7887 1.5 9.0293V2.7793ZM5.5 4.6543C5.5 4.44719 5.6679 4.2793 5.875 4.2793H8.125C8.3321 4.2793 8.5 4.44719 8.5 4.6543C8.5 4.8614 8.3321 5.0293 8.125 5.0293H5.875C5.6679 5.0293 5.5 4.8614 5.5 4.6543ZM5.875 6.7793C5.6679 6.7793 5.5 6.9472 5.5 7.1543C5.5 7.3614 5.6679 7.5293 5.875 7.5293H8.125C8.3321 7.5293 8.5 7.3614 8.5 7.1543C8.5 6.9472 8.3321 6.7793 8.125 6.7793H5.875ZM4.5 7.1543C4.5 7.43045 4.27614 7.6543 4 7.6543C3.72386 7.6543 3.5 7.43045 3.5 7.1543C3.5 6.87815 3.72386 6.6543 4 6.6543C4.27614 6.6543 4.5 6.87815 4.5 7.1543ZM4 5.1543C4.27614 5.1543 4.5 4.93045 4.5 4.6543C4.5 4.37816 4.27614 4.1543 4 4.1543C3.72386 4.1543 3.5 4.37816 3.5 4.6543C3.5 4.93045 3.72386 5.1543 4 5.1543Z"],"TasksTodosPlans/s/outline":["M4 6.75C4.27614 6.75 4.5 6.97386 4.5 7.25C4.5 7.52614 4.27614 7.75 4 7.75C3.72386 7.75 3.5 7.52614 3.5 7.25C3.5 6.97386 3.72386 6.75 4 6.75Z","M8.125 6.75C8.40114 6.75 8.625 6.97386 8.625 7.25C8.625 7.52614 8.40114 7.75 8.125 7.75H5.875C5.59886 7.75 5.375 7.52614 5.375 7.25C5.375 6.97386 5.59886 6.75 5.875 6.75H8.125Z","M4 4.25C4.27614 4.25 4.5 4.47386 4.5 4.75C4.5 5.02614 4.27614 5.25 4 5.25C3.72386 5.25 3.5 5.02614 3.5 4.75C3.5 4.47386 3.72386 4.25 4 4.25Z","M8.125 4.25C8.40114 4.25 8.625 4.47386 8.625 4.75C8.625 5.02614 8.40114 5.25 8.125 5.25H5.875C5.59886 5.25 5.375 5.02614 5.375 4.75C5.375 4.47386 5.59886 4.25 5.875 4.25H8.125Z","M9.125 1.375C9.95345 1.375 10.625 2.04658 10.625 2.875V9.125C10.625 9.95344 9.95344 10.625 9.125 10.625H2.875C2.04658 10.625 1.375 9.95345 1.375 9.125V2.875C1.375 2.04657 2.04657 1.375 2.875 1.375H9.125ZM2.875 2.375C2.59886 2.375 2.375 2.59886 2.375 2.875V9.125C2.375 9.40115 2.59885 9.625 2.875 9.625H9.125C9.40116 9.625 9.625 9.40116 9.625 9.125V2.875C9.625 2.59885 9.40115 2.375 9.125 2.375H2.875Z"],"TerminalOpenCommandLine/l/filled":["M21.0002 19.5031C21.4142 19.5032 21.7499 19.8392 21.7502 20.2531C21.7502 20.6673 21.4143 21.003 21.0002 21.0031H11.0002C10.586 21.0031 10.2502 20.6673 10.2502 20.2531C10.2504 19.8391 10.5861 19.5031 11.0002 19.5031H21.0002Z","M2.46991 5.23164C2.76282 4.93886 3.23761 4.93878 3.53046 5.23164L10.0305 11.7316C10.3233 12.0245 10.3232 12.4993 10.0305 12.7922L3.53046 19.2922C3.23757 19.5851 2.76281 19.5851 2.46991 19.2922C2.17702 18.9993 2.17702 18.5245 2.46991 18.2316L8.43964 12.2619L2.46991 6.29218C2.17702 5.99929 2.17702 5.52453 2.46991 5.23164Z"],"TerminalOpenCommandLine/l/outline":["M21.0002 19.5031C21.4142 19.5032 21.7499 19.8392 21.7502 20.2531C21.7502 20.6673 21.4143 21.003 21.0002 21.0031H11.0002C10.586 21.0031 10.2502 20.6673 10.2502 20.2531C10.2504 19.8391 10.5861 19.5031 11.0002 19.5031H21.0002Z","M2.46991 5.23164C2.76282 4.93886 3.23761 4.93878 3.53046 5.23164L10.0305 11.7316C10.3233 12.0245 10.3232 12.4993 10.0305 12.7922L3.53046 19.2922C3.23757 19.5851 2.76281 19.5851 2.46991 19.2922C2.17702 18.9993 2.17702 18.5245 2.46991 18.2316L8.43964 12.2619L2.46991 6.29218C2.17702 5.99929 2.17702 5.52453 2.46991 5.23164Z"],"TerminalOpenCommandLine/m/filled":["M14.0006 12.8775C14.3455 12.8778 14.6256 13.1575 14.6256 13.5025C14.6256 13.8474 14.3455 14.1271 14.0006 14.1275H7.33365C6.98851 14.1275 6.70871 13.8476 6.70865 13.5025C6.70865 13.1573 6.98847 12.8775 7.33365 12.8775H14.0006Z","M1.55728 3.39897C1.8013 3.15496 2.19795 3.15507 2.44205 3.39897L6.77505 7.73296C7.01897 7.97705 7.01908 8.37273 6.77505 8.61675L2.44205 12.9498C2.19796 13.1937 1.80131 13.1938 1.55728 12.9498C1.31381 12.7057 1.31369 12.3099 1.55728 12.066L5.44888 8.17437L1.55728 4.28374C1.31343 4.0397 1.31342 3.64301 1.55728 3.39897Z"],"TerminalOpenCommandLine/m/outline":["M14.0006 12.8775C14.3455 12.8778 14.6256 13.1575 14.6256 13.5025C14.6256 13.8474 14.3455 14.1271 14.0006 14.1275H7.33365C6.98851 14.1275 6.70871 13.8476 6.70865 13.5025C6.70865 13.1573 6.98847 12.8775 7.33365 12.8775H14.0006Z","M1.55728 3.39897C1.8013 3.15496 2.19795 3.15507 2.44205 3.39897L6.77505 7.73296C7.01897 7.97705 7.01908 8.37273 6.77505 8.61675L2.44205 12.9498C2.19796 13.1937 1.80131 13.1938 1.55728 12.9498C1.31381 12.7057 1.31369 12.3099 1.55728 12.066L5.44888 8.17437L1.55728 4.28374C1.31343 4.0397 1.31342 3.64301 1.55728 3.39897Z"],"TerminalOpenCommandLine/s/filled":["M10.5001 9.62708C10.7762 9.62711 11.0001 9.85096 11.0001 10.1271C11 10.4031 10.7761 10.627 10.5001 10.6271H5.50008C5.22402 10.6271 5.0002 10.4031 5.00008 10.1271C5.00008 9.85093 5.22394 9.62708 5.50008 9.62708H10.5001Z","M1.14657 2.52747C1.34183 2.33225 1.65835 2.33222 1.8536 2.52747L5.1036 5.77747C5.29882 5.97271 5.29881 6.28924 5.1036 6.4845L1.8536 9.7345C1.65835 9.92975 1.34183 9.92974 1.14657 9.7345C0.951307 9.53924 0.951307 9.22273 1.14657 9.02747L4.04305 6.13098L1.14657 3.2345C0.951307 3.03924 0.951307 2.72273 1.14657 2.52747Z"],"TerminalOpenCommandLine/s/outline":["M10.5001 9.62708C10.7762 9.62711 11.0001 9.85096 11.0001 10.1271C11 10.4031 10.7761 10.627 10.5001 10.6271H5.50008C5.22402 10.6271 5.0002 10.4031 5.00008 10.1271C5.00008 9.85093 5.22394 9.62708 5.50008 9.62708H10.5001Z","M1.14657 2.52747C1.34183 2.33225 1.65835 2.33222 1.8536 2.52747L5.1036 5.77747C5.29882 5.97271 5.29881 6.28924 5.1036 6.4845L1.8536 9.7345C1.65835 9.92975 1.34183 9.92974 1.14657 9.7345C0.951307 9.53924 0.951307 9.22273 1.14657 9.02747L4.04305 6.13098L1.14657 3.2345C0.951307 3.03924 0.951307 2.72273 1.14657 2.52747Z"],"TextSize/l/filled":["M6.94922 10.25H12.25C12.6642 10.25 13 10.5858 13 11C13 11.4142 12.6642 11.75 12.25 11.75H7.67969V20.25C7.67967 20.6642 7.34389 21 6.92969 21C6.51548 21 6.1797 20.6642 6.17969 20.25V11.75H1.75C1.33579 11.75 1 11.4142 1 11C1 10.5858 1.33579 10.25 1.75 10.25H6.91016C6.91665 10.2498 6.92315 10.249 6.92969 10.249C6.93622 10.249 6.94272 10.2498 6.94922 10.25Z","M22.25 4C22.6642 4 23 4.33579 23 4.75C23 5.16421 22.6642 5.5 22.25 5.5H16.75V20.25C16.75 20.6642 16.4142 21 16 21C15.5858 21 15.25 20.6642 15.25 20.25V5.5H9.75C9.33579 5.5 9 5.16421 9 4.75C9 4.33579 9.33579 4 9.75 4H22.25Z"],"TextSize/l/outline":["M6.94922 10.25H12.25C12.6642 10.25 13 10.5858 13 11C13 11.4142 12.6642 11.75 12.25 11.75H7.67969V20.25C7.67967 20.6642 7.34389 21 6.92969 21C6.51548 21 6.1797 20.6642 6.17969 20.25V11.75H1.75C1.33579 11.75 1 11.4142 1 11C1 10.5858 1.33579 10.25 1.75 10.25H6.91016C6.91665 10.2498 6.92315 10.249 6.92969 10.249C6.93622 10.249 6.94272 10.2498 6.94922 10.25Z","M22.25 4C22.6642 4 23 4.33579 23 4.75C23 5.16421 22.6642 5.5 22.25 5.5H16.75V20.25C16.75 20.6642 16.4142 21 16 21C15.5858 21 15.25 20.6642 15.25 20.25V5.5H9.75C9.33579 5.5 9 5.16421 9 4.75C9 4.33579 9.33579 4 9.75 4H22.25Z"],"TextSize/m/filled":["M8.16699 6.70801C8.51192 6.70817 8.79181 6.98809 8.79199 7.33301C8.79199 7.67808 8.51203 7.95784 8.16699 7.95801H5.24512V13.5C5.24494 13.8449 4.96504 14.1248 4.62012 14.125C4.27505 14.125 3.9953 13.845 3.99512 13.5V7.95801H1.16699C0.821814 7.95801 0.541992 7.67819 0.541992 7.33301C0.542174 6.98798 0.821926 6.70801 1.16699 6.70801H8.16699Z","M14.833 2.54199C15.1782 2.54199 15.458 2.82181 15.458 3.16699C15.4578 3.51202 15.1781 3.79199 14.833 3.79199H11.292V13.5C11.2918 13.8449 11.0119 14.1248 10.667 14.125C10.3219 14.125 10.0422 13.845 10.042 13.5V3.79199H6.5C6.15493 3.79199 5.87518 3.51202 5.875 3.16699C5.875 2.82181 6.15482 2.54199 6.5 2.54199H14.833Z"],"TextSize/m/outline":["M8.16699 6.70801C8.51192 6.70817 8.79181 6.98809 8.79199 7.33301C8.79199 7.67808 8.51203 7.95784 8.16699 7.95801H5.24512V13.5C5.24494 13.8449 4.96504 14.1248 4.62012 14.125C4.27505 14.125 3.9953 13.845 3.99512 13.5V7.95801H1.16699C0.821814 7.95801 0.541992 7.67819 0.541992 7.33301C0.542174 6.98798 0.821926 6.70801 1.16699 6.70801H8.16699Z","M14.833 2.54199C15.1782 2.54199 15.458 2.82181 15.458 3.16699C15.4578 3.51202 15.1781 3.79199 14.833 3.79199H11.292V13.5C11.2918 13.8449 11.0119 14.1248 10.667 14.125C10.3219 14.125 10.0422 13.845 10.042 13.5V3.79199H6.5C6.15493 3.79199 5.87518 3.51202 5.875 3.16699C5.875 2.82181 6.15482 2.54199 6.5 2.54199H14.833Z"],"TextSize/s/filled":["M6.125 5C6.40114 5 6.625 5.22386 6.625 5.5C6.625 5.77614 6.40114 6 6.125 6H3.96484V10.126C3.96432 10.4017 3.74066 10.626 3.46484 10.626C3.18902 10.626 2.96536 10.4017 2.96484 10.126V6H0.875C0.598858 6 0.375 5.77614 0.375 5.5C0.375 5.22386 0.598858 5 0.875 5H6.125Z","M11.125 1.875C11.4011 1.875 11.625 2.09886 11.625 2.375C11.625 2.65114 11.4011 2.875 11.125 2.875H8.5V10.125C8.5 10.4011 8.27614 10.625 8 10.625C7.72386 10.625 7.5 10.4011 7.5 10.125V2.875H4.875C4.59886 2.875 4.375 2.65114 4.375 2.375C4.375 2.09886 4.59886 1.875 4.875 1.875H11.125Z"],"TextSize/s/outline":["M6.125 5C6.40114 5 6.625 5.22386 6.625 5.5C6.625 5.77614 6.40114 6 6.125 6H3.96484V10.126C3.96432 10.4017 3.74066 10.626 3.46484 10.626C3.18902 10.626 2.96536 10.4017 2.96484 10.126V6H0.875C0.598858 6 0.375 5.77614 0.375 5.5C0.375 5.22386 0.598858 5 0.875 5H6.125Z","M11.125 1.875C11.4011 1.875 11.625 2.09886 11.625 2.375C11.625 2.65114 11.4011 2.875 11.125 2.875H8.5V10.125C8.5 10.4011 8.27614 10.625 8 10.625C7.72386 10.625 7.5 10.4011 7.5 10.125V2.875H4.875C4.59886 2.875 4.375 2.65114 4.375 2.375C4.375 2.09886 4.59886 1.875 4.875 1.875H11.125Z"],"ThumbsDown/l/filled":["M17.5334 4.5V12.5H19.7814C19.9194 12.5 20.0314 12.3881 20.0314 12.25V4.75C20.0314 4.61193 19.9194 4.5 19.7814 4.5H17.5334ZM17.1121 14H19.7814C20.7479 14 21.5314 13.2165 21.5314 12.25V4.75C21.5314 3.7835 20.7479 3 19.7814 3H6.117C4.26425 3 2.68983 4.35403 2.41121 6.1859L1.57469 11.6859C1.22954 13.9552 2.98516 16 5.28048 16H9.64465L9.20421 18.8264C8.94442 20.4935 10.2328 22 11.9203 22C12.5711 22 13.1795 21.6378 13.4816 21.0511L17.1121 14Z"],"ThumbsDown/l/outline":["M19.7808 3C20.7474 3 21.5308 3.78352 21.5308 4.75V12.25C21.5308 13.2165 20.7473 14 19.7808 14H17.1119L13.481 21.0508C13.1788 21.6369 12.5702 22 11.9195 22C10.2324 21.9995 8.94397 20.4929 9.20369 18.8262L9.64412 16H5.27986C2.98481 15.9997 1.22873 13.9545 1.57381 11.6855L2.41072 6.18555C2.68947 4.35402 4.26434 3.00022 6.11678 3H19.7808ZM6.11678 4.5C5.00621 4.50022 4.06046 5.31188 3.89314 6.41113L3.0572 11.9111C2.85008 13.2732 3.90401 14.4997 5.27986 14.5H10.5201C10.7389 14.5 10.947 14.5957 11.0894 14.7617C11.2319 14.9281 11.2949 15.1489 11.2613 15.3652L10.6861 19.0576C10.5681 19.8156 11.1539 20.4995 11.9195 20.5C12.0175 20.5 12.1061 20.4434 12.147 20.3643L16.0328 12.8174V4.5H6.11678ZM17.5328 12.5H19.7808C19.9189 12.5 20.0308 12.3881 20.0308 12.25V4.75C20.0308 4.61193 19.9189 4.5 19.7808 4.5H17.5328V12.5Z"],"ThumbsDown/m/filled":["M11.689 3V8.33333H13.1877C13.2797 8.33333 13.3543 8.25873 13.3543 8.16667V3.16667C13.3543 3.07462 13.2797 3 13.1877 3H11.689ZM11.4081 9.33333H13.1877C13.832 9.33333 14.3543 8.811 14.3543 8.16667V3.16667C14.3543 2.52233 13.832 2 13.1877 2H4.07804C2.84287 2 1.79326 2.90269 1.60751 4.12393L1.04983 7.7906C0.819733 9.30347 1.99015 10.6667 3.52036 10.6667H6.42981L6.13618 12.5509C5.96299 13.6623 6.82194 14.6667 7.94694 14.6667C8.38081 14.6667 8.78641 14.4252 8.98781 14.0341L11.4081 9.33333Z"],"ThumbsDown/m/outline":["M13.1874 1.875C13.9006 1.87518 14.4784 2.45375 14.4784 3.16699V8.16699C14.4782 8.88011 13.9005 9.45783 13.1874 9.45801H11.4842L9.0985 14.0908C8.87525 14.5238 8.42601 14.792 7.94616 14.792C6.74473 14.7916 5.82764 13.7181 6.01256 12.5312L6.28307 10.792H3.5194C1.91302 10.7915 0.684145 9.35955 0.925648 7.77148L1.48326 4.10547C1.67825 2.8235 2.78041 1.87544 4.07701 1.875H13.1874ZM4.07701 3.125C3.39873 3.12544 2.82184 3.62137 2.71959 4.29297L2.161 7.95996C2.03462 8.79212 2.67909 9.54149 3.5194 9.54199H7.01354C7.19581 9.5421 7.36949 9.6214 7.48815 9.75977C7.60684 9.89839 7.65877 10.0824 7.63073 10.2627L7.24694 12.7246C7.18033 13.154 7.51274 13.5416 7.94616 13.542C7.95422 13.542 7.96343 13.539 7.97155 13.5342L7.98717 13.5186L10.5633 8.51465V3.125H4.07701ZM11.8133 8.20801H13.1874C13.2101 8.20783 13.2282 8.18975 13.2284 8.16699V3.16699C13.2284 3.14408 13.2102 3.12518 13.1874 3.125H11.8133V8.20801Z"],"ThumbsDown/s/filled":["M8.76672 2.25V6.25H9.89072C9.95972 6.25 10.0157 6.19405 10.0157 6.125V2.375C10.0157 2.30597 9.95972 2.25 9.89072 2.25H8.76672ZM8.55607 7H9.89072C10.374 7 10.7657 6.60825 10.7657 6.125V2.375C10.7657 1.89175 10.374 1.5 9.89072 1.5H3.0585C2.13212 1.5 1.34491 2.17702 1.2056 3.09295L0.787344 5.84295C0.614769 6.9776 1.49258 8 2.64024 8H4.82232L4.6021 9.4132C4.47221 10.2467 5.11642 11 5.96017 11C6.28557 11 6.58977 10.8189 6.74082 10.5255L8.55607 7Z"],"ThumbsDown/s/outline":["M9.89084 1.375C10.443 1.37515 10.8908 1.82282 10.8908 2.375V6.125C10.8908 6.6772 10.443 7.12485 9.89084 7.125H8.63205L6.85178 10.583C6.67895 10.9183 6.33151 11.1249 5.96018 11.125C5.03971 11.1249 4.33703 10.3027 4.47873 9.39355L4.67697 8.125H2.64084C1.41657 8.125 0.480208 7.03439 0.664277 5.82422L1.08225 3.07422C1.23086 2.09729 2.07062 1.375 3.05881 1.375H9.89084ZM3.05881 2.375C2.56522 2.375 2.14488 2.73589 2.07053 3.22461L1.65256 5.97461C1.5605 6.58011 2.0294 7.125 2.64084 7.125H5.25998C5.40585 7.12508 5.54493 7.18904 5.63986 7.2998C5.73476 7.41072 5.77658 7.55791 5.75412 7.70215L5.46701 9.54785C5.41972 9.85127 5.654 10.1249 5.96018 10.125C5.9607 10.1249 5.962 10.1247 5.9631 10.124C5.96395 10.1224 5.96417 10.1234 5.9631 10.124L7.89182 6.37891V2.375H3.05881ZM8.89182 6.125H9.89084V2.375H8.89182V6.125Z"],"ThumbsUp/l/filled":["M11.1423 2C10.488 2 9.88585 2.36515 9.58525 2.94858L5.95273 10H3.28125C2.31475 10 1.53125 10.7835 1.53125 11.75V19.25C1.53125 20.2165 2.31475 21 3.28125 21H16.9533C18.8064 21 20.3817 19.6463 20.6605 17.8142L21.4975 12.3142C21.8429 10.0444 20.0861 8 17.7901 8H13.4234L13.864 5.17364C14.1244 3.50371 12.8274 2 11.1423 2ZM5.53125 11.5V19.5H3.28125C3.14318 19.5 3.03125 19.3881 3.03125 19.25V11.75C3.03125 11.6119 3.14318 11.5 3.28125 11.5H5.53125Z"],"ThumbsUp/l/outline":["M11.1426 2C12.8277 2.0002 14.1246 3.50403 13.8643 5.17383L13.4229 8H17.79C20.0859 8 21.8424 10.0448 21.4971 12.3145L20.6602 17.8145C20.3812 19.6464 18.8063 21 16.9531 21H3.28125C2.31477 21 1.53125 20.2165 1.53125 19.25V11.75C1.53125 10.7835 2.31477 10 3.28125 10H5.95215L9.58496 2.94824C9.88551 2.36479 10.4884 2 11.1426 2ZM3.28125 11.5C3.14317 11.5 3.03125 11.6119 3.03125 11.75V19.25C3.03125 19.3881 3.14317 19.5 3.28125 19.5H5.53125V11.5H3.28125ZM11.1426 3.5C11.0478 3.5 10.9612 3.55361 10.9189 3.63574L7.03125 11.1816V19.5H16.9531C18.065 19.5 19.0103 18.688 19.1777 17.5889L20.0146 12.0889C20.2219 10.7271 19.1676 9.5 17.79 9.5H12.5469C12.328 9.49986 12.1199 9.40361 11.9775 9.2373C11.8353 9.07098 11.773 8.85102 11.8066 8.63477L12.3818 4.94238C12.4995 4.18695 11.9119 3.5002 11.1426 3.5Z"],"ThumbsUp/m/filled":["M7.42821 1.33331C6.99201 1.33331 6.59061 1.57675 6.39021 1.9657L3.96853 6.66665H2.18754C1.54321 6.66665 1.02087 7.18898 1.02087 7.83331V12.8333C1.02087 13.4776 1.54321 14 2.18754 14H11.3022C12.5377 14 13.5879 13.0975 13.7737 11.8761L14.3317 8.20945C14.562 6.69625 13.3907 5.33331 11.8601 5.33331H8.94894L9.24274 3.44907C9.41634 2.33579 8.55167 1.33331 7.42821 1.33331ZM3.68754 7.66665V13H2.18754C2.09549 13 2.02087 12.9254 2.02087 12.8333V7.83331C2.02087 7.74125 2.09549 7.66665 2.18754 7.66665H3.68754Z"],"ThumbsUp/m/outline":["M7.42773 1.20801C8.62737 1.20801 9.55129 2.27855 9.36621 3.46777L9.09473 5.20801H11.8594C13.4663 5.20801 14.6964 6.63904 14.4551 8.22754L13.8965 11.8945C13.7013 13.177 12.599 14.125 11.3018 14.125H2.1875C1.47431 14.1248 0.895508 13.5463 0.895508 12.833V7.83301C0.895689 7.1199 1.47442 6.54121 2.1875 6.54102H3.89258L6.27832 1.9082L6.37207 1.75488C6.61227 1.4147 7.0054 1.20816 7.42773 1.20801ZM2.1875 7.79102C2.16476 7.79121 2.14569 7.81027 2.14551 7.83301V12.833C2.14551 12.8559 2.16465 12.8748 2.1875 12.875H3.5625V7.79102H2.1875ZM7.42773 2.45801C7.41141 2.45818 7.39629 2.46768 7.38965 2.48047L4.8125 7.48438V12.875H11.3018C11.9813 12.875 12.5589 12.3778 12.6611 11.7061L13.2188 8.04004C13.3452 7.20797 12.7011 6.45801 11.8594 6.45801H8.36426C8.18193 6.45781 8.00824 6.37777 7.88965 6.23926C7.77126 6.10064 7.71898 5.91647 7.74707 5.73633L8.13086 3.27539C8.19729 2.84799 7.86432 2.45801 7.42773 2.45801Z"],"ThumbsUp/s/filled":["M5.57113 1C5.24398 1 4.94292 1.18258 4.79262 1.47429L2.97637 5H1.64062C1.15738 5 0.765625 5.39175 0.765625 5.875V9.625C0.765625 10.1082 1.15738 10.5 1.64062 10.5H8.47663C9.40322 10.5 10.1909 9.82315 10.3303 8.9071L10.7488 6.1571C10.9215 5.0222 10.043 4 8.89507 4H6.71168L6.93202 2.58682C7.06222 1.75185 6.41372 1 5.57113 1ZM2.76562 5.75V9.75H1.64062C1.57159 9.75 1.51562 9.69405 1.51562 9.625V5.875C1.51562 5.80595 1.57159 5.75 1.64062 5.75H2.76562Z"],"ThumbsUp/s/outline":["M5.57129 0.875C6.49016 0.875098 7.19773 1.69536 7.05566 2.60645L6.85742 3.875H8.89551C10.1197 3.87526 11.0562 4.96546 10.8721 6.17578L10.4541 8.92578C10.3054 9.90292 9.46497 10.625 8.47656 10.625H1.64062C1.08835 10.625 0.640625 10.1773 0.640625 9.625V5.875C0.640625 5.3227 1.08835 4.875 1.64062 4.875H2.90039L4.68164 1.41699C4.85344 1.0835 5.19761 0.875 5.57129 0.875ZM1.64062 9.625H2.64062V5.875H1.64062V9.625ZM3.64062 5.62012V9.625H8.47656C8.97076 9.625 9.39051 9.26395 9.46484 8.77539L9.88379 6.02539C9.97583 5.42033 9.50752 4.87526 8.89551 4.875H6.27344C6.12746 4.87493 5.9885 4.81109 5.89355 4.7002C5.79865 4.58926 5.75681 4.44211 5.7793 4.29785L6.06738 2.45215C6.1144 2.15059 5.87966 1.8751 5.57129 1.875L3.64062 5.62012Z"],"TitleCaseFontSize/l/filled":["M18.2383 8.86426C20.5329 8.86433 21.9998 10.0788 22 11.9775V17.6924C22 18.3042 21.6132 18.6736 21.0645 18.6738C20.5246 18.6738 20.1549 18.3228 20.1367 17.7471V16.9453H20.0918C19.5429 17.9982 18.3374 18.6649 17.1045 18.665C15.2506 18.665 13.9453 17.5124 13.9453 15.8115C13.9454 14.1557 15.2232 13.1386 17.4639 13.0127L20.0654 12.8604V12.1309C20.0654 11.0779 19.354 10.4482 18.166 10.4482C17.2302 10.4483 16.6093 10.7808 16.0693 11.6445C15.8714 11.9325 15.6193 12.0586 15.2773 12.0586C14.7914 12.0586 14.4405 11.7349 14.4404 11.249C14.4404 11.0511 14.4944 10.8351 14.6113 10.6191C15.1063 9.54819 16.5374 8.86426 18.2383 8.86426ZM17.7246 14.3535C16.564 14.4346 15.9072 14.9479 15.9072 15.7578C15.9072 16.5857 16.6001 17.1259 17.6348 17.126C18.9937 17.126 20.0653 16.1899 20.0654 14.957V14.21L17.7246 14.3535Z","M6.49023 5.37207C7.19195 5.37219 7.62361 5.69624 7.89355 6.41602L11.8535 17.1348C11.9435 17.3867 11.9795 17.5576 11.9795 17.7285C11.9795 18.2595 11.5567 18.6465 10.9717 18.6465C10.4317 18.6465 10.135 18.3944 9.95508 17.8184L8.96484 15.0195H3.99707L3.01562 17.8096C2.82664 18.3946 2.5298 18.6465 2.00781 18.6465C1.40492 18.6464 1 18.2775 1 17.7285C1.00003 17.5756 1.03603 17.3776 1.12598 17.1348L5.07715 6.4248C5.33816 5.70503 5.77935 5.37207 6.49023 5.37207ZM6.44531 7.67578L4.50977 13.373H8.45215L6.49902 7.67578H6.44531Z"],"TitleCaseFontSize/l/outline":["M18.2383 8.86426C20.5329 8.86433 21.9998 10.0788 22 11.9775V17.6924C22 18.3042 21.6132 18.6736 21.0645 18.6738C20.5246 18.6738 20.1549 18.3228 20.1367 17.7471V16.9453H20.0918C19.5429 17.9982 18.3374 18.6649 17.1045 18.665C15.2506 18.665 13.9453 17.5124 13.9453 15.8115C13.9454 14.1557 15.2232 13.1386 17.4639 13.0127L20.0654 12.8604V12.1309C20.0654 11.0779 19.354 10.4482 18.166 10.4482C17.2302 10.4483 16.6093 10.7808 16.0693 11.6445C15.8714 11.9325 15.6193 12.0586 15.2773 12.0586C14.7914 12.0586 14.4405 11.7349 14.4404 11.249C14.4404 11.0511 14.4944 10.8351 14.6113 10.6191C15.1063 9.54819 16.5374 8.86426 18.2383 8.86426ZM17.7246 14.3535C16.564 14.4346 15.9072 14.9479 15.9072 15.7578C15.9072 16.5857 16.6001 17.1259 17.6348 17.126C18.9937 17.126 20.0653 16.1899 20.0654 14.957V14.21L17.7246 14.3535Z","M6.49023 5.37207C7.19195 5.37219 7.62361 5.69624 7.89355 6.41602L11.8535 17.1348C11.9435 17.3867 11.9795 17.5576 11.9795 17.7285C11.9795 18.2595 11.5567 18.6465 10.9717 18.6465C10.4317 18.6465 10.135 18.3944 9.95508 17.8184L8.96484 15.0195H3.99707L3.01562 17.8096C2.82664 18.3946 2.5298 18.6465 2.00781 18.6465C1.40492 18.6464 1 18.2775 1 17.7285C1.00003 17.5756 1.03603 17.3776 1.12598 17.1348L5.07715 6.4248C5.33816 5.70503 5.77935 5.37207 6.49023 5.37207ZM6.44531 7.67578L4.50977 13.373H8.45215L6.49902 7.67578H6.44531Z"],"TitleCaseFontSize/m/filled":["M12.1592 5.90918C13.6888 5.90934 14.667 6.71948 14.667 7.98535V11.7949C14.667 12.2028 14.4088 12.4491 14.043 12.4492C13.683 12.4492 13.4368 12.2151 13.4248 11.8311V11.2969H13.3945C13.0285 11.9989 12.2243 12.4434 11.4023 12.4434C10.1666 12.4432 9.29688 11.6748 9.29688 10.541C9.29696 9.43715 10.1488 8.75876 11.6426 8.6748L13.377 8.57324V8.08691C13.3768 7.38512 12.9022 6.96484 12.1104 6.96484C11.4866 6.96493 11.0728 7.18778 10.7129 7.76367C10.5809 7.95551 10.4125 8.03906 10.1846 8.03906C9.86068 8.03897 9.62695 7.82295 9.62695 7.49902C9.627 7.36709 9.66326 7.22302 9.74121 7.0791C10.0713 6.3653 11.0254 5.90918 12.1592 5.90918ZM11.8164 9.56934C11.0428 9.6234 10.6047 9.96513 10.6045 10.5049C10.6045 11.0569 11.0669 11.417 11.7568 11.417C12.6628 11.4169 13.377 10.7927 13.377 9.9707V9.47363L11.8164 9.56934Z","M4.32617 3.58105C4.79416 3.58105 5.0827 3.79736 5.2627 4.27734L7.90234 11.4229C7.96234 11.5909 7.98633 11.7053 7.98633 11.8193C7.98623 12.1732 7.70438 12.4307 7.31445 12.4307C6.95445 12.4307 6.75669 12.2629 6.63672 11.8789L5.97656 10.0137H2.66504L2.01074 11.873C1.88478 12.263 1.68672 12.4306 1.33887 12.4307C0.936951 12.4307 0.667087 12.1852 0.666992 11.8193C0.666992 11.7173 0.690977 11.5849 0.750977 11.4229L3.38477 4.2832C3.55873 3.80349 3.85248 3.58117 4.32617 3.58105ZM4.29688 5.11719L3.00684 8.91504H5.63477L4.33301 5.11719H4.29688Z"],"TitleCaseFontSize/m/outline":["M12.1592 5.90918C13.6889 5.90933 14.667 6.71947 14.667 7.98535V11.7949C14.667 12.2028 14.4088 12.4491 14.043 12.4492C13.683 12.4492 13.4368 12.2151 13.4248 11.8311V11.2969H13.3945C13.0285 11.9989 12.2243 12.4434 11.4023 12.4434C10.1666 12.4432 9.29688 11.6748 9.29688 10.541C9.29696 9.43715 10.1488 8.75877 11.6426 8.6748L13.377 8.57324V8.08691C13.3768 7.38512 12.9022 6.96484 12.1104 6.96484C11.4866 6.96494 11.0728 7.18779 10.7129 7.76367C10.5809 7.9555 10.4125 8.03906 10.1846 8.03906C9.8607 8.03895 9.62695 7.82294 9.62695 7.49902C9.627 7.36709 9.66326 7.22302 9.74121 7.0791C10.0713 6.36529 11.0254 5.90918 12.1592 5.90918ZM11.8164 9.56934C11.0428 9.6234 10.6047 9.96514 10.6045 10.5049C10.6045 11.0569 11.0669 11.417 11.7568 11.417C12.6628 11.417 13.377 10.7927 13.377 9.9707V9.47363L11.8164 9.56934Z","M4.32617 3.58105C4.79416 3.58105 5.0827 3.79736 5.2627 4.27734L7.90234 11.4229C7.96234 11.5909 7.98633 11.7053 7.98633 11.8193C7.98623 12.1732 7.70438 12.4307 7.31445 12.4307C6.95445 12.4307 6.75669 12.2629 6.63672 11.8789L5.97656 10.0137H2.66504L2.01074 11.873C1.88478 12.263 1.68672 12.4306 1.33887 12.4307C0.936951 12.4307 0.667087 12.1852 0.666992 11.8193C0.666992 11.7173 0.690977 11.5849 0.750977 11.4229L3.38477 4.2832C3.55873 3.80349 3.85248 3.58117 4.32617 3.58105ZM4.29688 5.11719L3.00684 8.91504H5.63477L4.33301 5.11719H4.29688Z"],"TitleCaseFontSize/s/filled":["M9.11914 4.43164C10.2665 4.43167 11 5.03978 11 5.98926V8.84668C10.9999 9.15239 10.8065 9.33681 10.5322 9.33691C10.2622 9.33691 10.0774 9.16105 10.0684 8.87305V8.47266H10.0459C9.7714 8.99916 9.16826 9.33203 8.55176 9.33203C7.62509 9.33191 6.97284 8.75642 6.97266 7.90625C6.97266 7.07825 7.61197 6.56979 8.73242 6.50684L10.0322 6.42969V6.06543C10.0322 5.53894 9.677 5.22363 9.08301 5.22363C8.61503 5.22364 8.30417 5.39028 8.03418 5.82227C7.9352 5.96619 7.8096 6.02928 7.63867 6.0293C7.39567 6.0293 7.21973 5.86702 7.21973 5.62402C7.2198 5.52516 7.24727 5.41739 7.30566 5.30957C7.55316 4.7741 8.26869 4.43164 9.11914 4.43164ZM8.8623 7.17676C8.282 7.21731 7.95312 7.47396 7.95312 7.87891C7.95313 8.29285 8.30003 8.56244 8.81738 8.5625C9.49684 8.5625 10.0322 8.09495 10.0322 7.47852V7.10449L8.8623 7.17676Z","M3.24512 2.68555C3.59599 2.68561 3.8123 2.84809 3.94727 3.20801L5.92676 8.56738C5.97174 8.69334 5.99022 8.77879 5.99023 8.86426C5.99023 9.12961 5.77858 9.32303 5.48633 9.32324C5.21633 9.32324 5.06751 9.19718 4.97754 8.90918L4.48242 7.50977H1.99805L1.50781 8.90527C1.41331 9.19747 1.26477 9.32324 1.00391 9.32324C0.70246 9.32321 0.5 9.13873 0.5 8.86426C0.500015 8.78777 0.518495 8.68883 0.563477 8.56738L2.53809 3.21289C2.66859 2.8529 2.88963 2.68555 3.24512 2.68555ZM3.22266 3.83789L2.25488 6.68652H4.22559L3.24902 3.83789H3.22266Z"],"TitleCaseFontSize/s/outline":["M9.11914 4.43164C10.2665 4.43167 11 5.03978 11 5.98926V8.84668C10.9999 9.15239 10.8065 9.33681 10.5322 9.33691C10.2622 9.33691 10.0774 9.16105 10.0684 8.87305V8.47266H10.0459C9.7714 8.99916 9.16826 9.33203 8.55176 9.33203C7.62509 9.33191 6.97284 8.75642 6.97266 7.90625C6.97266 7.07825 7.61197 6.56979 8.73242 6.50684L10.0322 6.42969V6.06543C10.0322 5.53894 9.677 5.22363 9.08301 5.22363C8.61503 5.22364 8.30417 5.39028 8.03418 5.82227C7.9352 5.96619 7.8096 6.02928 7.63867 6.0293C7.39567 6.0293 7.21973 5.86702 7.21973 5.62402C7.2198 5.52516 7.24727 5.41739 7.30566 5.30957C7.55316 4.7741 8.26869 4.43164 9.11914 4.43164ZM8.8623 7.17676C8.282 7.21731 7.95312 7.47396 7.95312 7.87891C7.95313 8.29285 8.30003 8.56244 8.81738 8.5625C9.49684 8.5625 10.0322 8.09495 10.0322 7.47852V7.10449L8.8623 7.17676Z","M3.24512 2.68555C3.59599 2.68561 3.8123 2.84809 3.94727 3.20801L5.92676 8.56738C5.97174 8.69334 5.99022 8.77879 5.99023 8.86426C5.99023 9.12961 5.77858 9.32303 5.48633 9.32324C5.21633 9.32324 5.06751 9.19718 4.97754 8.90918L4.48242 7.50977H1.99805L1.50781 8.90527C1.41331 9.19747 1.26477 9.32324 1.00391 9.32324C0.70246 9.32321 0.5 9.13873 0.5 8.86426C0.500015 8.78777 0.518495 8.68883 0.563477 8.56738L2.53809 3.21289C2.66859 2.8529 2.88963 2.68555 3.24512 2.68555ZM3.22266 3.83789L2.25488 6.68652H4.22559L3.24902 3.83789H3.22266Z"],"Toggle/l/filled":["M23.5 12C23.5 16.4183 19.9183 20 15.5 20H8.5C4.08172 20 0.5 16.4183 0.5 12C0.5 7.58172 4.08172 4 8.5 4H15.5C19.9183 4 23.5 7.58172 23.5 12ZM15.5 15C17.1569 15 18.5 13.6569 18.5 12C18.5 10.3431 17.1569 9 15.5 9C13.8431 9 12.5 10.3431 12.5 12C12.5 13.6569 13.8431 15 15.5 15Z"],"Toggle/l/outline":["M15.7539 3.67773C20.172 3.67797 23.7539 7.2596 23.7539 11.6777C23.7538 16.0958 20.1719 19.6775 15.7539 19.6777H8.75391C4.33571 19.6777 0.754038 16.0959 0.753906 11.6777C0.753906 7.25946 4.33563 3.67773 8.75391 3.67773H15.7539ZM8.75391 5.17773C5.16406 5.17773 2.25391 8.08788 2.25391 11.6777C2.25404 15.2675 5.16414 18.1777 8.75391 18.1777H15.7539C19.3435 18.1775 22.2538 15.2673 22.2539 11.6777C22.2539 8.08803 19.3436 5.17797 15.7539 5.17773H8.75391ZM8.75391 8.67773C10.4106 8.67797 11.7539 10.021 11.7539 11.6777C11.7538 13.3343 10.4105 14.6775 8.75391 14.6777C7.09713 14.6777 5.75404 13.3345 5.75391 11.6777C5.75391 10.0209 7.09705 8.67773 8.75391 8.67773Z"],"Toggle/m/filled":["M15.6667 8.00002C15.6667 10.9456 13.2789 13.3334 10.3334 13.3334H5.66671C2.72119 13.3334 0.333374 10.9456 0.333374 8.00002C0.333374 5.0545 2.72119 2.66669 5.66671 2.66669H10.3334C13.2789 2.66669 15.6667 5.0545 15.6667 8.00002ZM10.3334 10C11.438 10 12.3334 9.10462 12.3334 8.00002C12.3334 6.89542 11.438 6.00002 10.3334 6.00002C9.22877 6.00002 8.33337 6.89542 8.33337 8.00002C8.33337 9.10462 9.22877 10 10.3334 10Z"],"Toggle/m/outline":["M10.502 2.32617C13.5164 2.32617 15.9598 4.77075 15.96 7.78516C15.9597 10.7995 13.5163 13.2441 10.502 13.2441H5.83496C2.82089 13.2438 0.377217 10.7993 0.376953 7.78516C0.377129 4.77098 2.82083 2.32655 5.83496 2.32617H10.502ZM5.83496 3.57715C3.51119 3.57752 1.62713 5.46134 1.62695 7.78516C1.62722 10.1089 3.51124 11.9938 5.83496 11.9941H10.502C12.826 11.9941 14.7097 10.1091 14.71 7.78516C14.7098 5.46111 12.826 3.57715 10.502 3.57715H5.83496ZM5.83594 5.78516C6.94037 5.78532 7.83594 6.68069 7.83594 7.78516C7.83584 8.88954 6.94031 9.78499 5.83594 9.78516C4.73143 9.78516 3.83604 8.88964 3.83594 7.78516C3.83594 6.68059 4.73137 5.78516 5.83594 5.78516Z"],"Toggle/s/filled":["M11.75 6C11.75 8.20915 9.95915 10 7.75 10H4.25C2.04086 10 0.25 8.20915 0.25 6C0.25 3.79086 2.04086 2 4.25 2H7.75C9.95915 2 11.75 3.79086 11.75 6ZM7.75 7.5C8.57845 7.5 9.25 6.82845 9.25 6C9.25 5.17155 8.57845 4.5 7.75 4.5C6.92155 4.5 6.25 5.17155 6.25 6C6.25 6.82845 6.92155 7.5 7.75 7.5Z"],"Toggle/s/outline":["M7.87695 1.71387C10.155 1.714 12.002 3.56077 12.002 5.83887C12.0019 8.1169 10.155 9.96374 7.87695 9.96387H4.37695C2.09882 9.96387 0.252019 8.11699 0.251953 5.83887C0.251953 3.56069 2.09878 1.71387 4.37695 1.71387H7.87695ZM4.37695 2.71387C2.65106 2.71387 1.25195 4.11298 1.25195 5.83887C1.25202 7.5647 2.6511 8.96387 4.37695 8.96387H7.87695C9.60269 8.96374 11.0019 7.56462 11.002 5.83887C11.002 4.11306 9.60273 2.714 7.87695 2.71387H4.37695ZM4.37695 4.33887C5.20527 4.339 5.87695 5.01052 5.87695 5.83887C5.87689 6.66716 5.20523 7.33874 4.37695 7.33887C3.54857 7.33887 2.87702 6.66724 2.87695 5.83887C2.87695 5.01044 3.54853 4.33887 4.37695 4.33887Z"],"Toolbox/l/filled":["M7 3.5C6.96795 3.5 6.9385 3.5176 6.9233 3.54581L5.64941 5.91161C5.55134 6.09375 5.5 6.29737 5.5 6.50424V10H8.5V6.50424C8.5 6.29737 8.44866 6.09375 8.35059 5.91161L7.0767 3.54581C7.0615 3.5176 7.03205 3.5 7 3.5ZM7 2C7.58387 2 8.12059 2.32058 8.3974 2.83466L9.6713 5.20046C9.88706 5.60116 10 6.04914 10 6.50424V10H12V4.75C12 3.23122 13.2312 2 14.75 2H17.25C18.7688 2 20 3.23122 20 4.75V10H21.25C21.6642 10 22 10.3358 22 10.75V18.25C22 19.7688 20.7688 21 19.25 21H4.75C3.23122 21 2 19.7688 2 18.25V10.75C2 10.3358 2.33579 10 2.75 10H4V6.50424C4 6.04914 4.11294 5.60116 4.3287 5.20046L5.6026 2.83466C5.87941 2.32058 6.41613 2 7 2ZM13.5 10H18.5V4.75C18.5 4.05964 17.9404 3.5 17.25 3.5H14.75C14.0596 3.5 13.5 4.05964 13.5 4.75V6H15.25C15.6642 6 16 6.33579 16 6.75C16 7.16421 15.6642 7.5 15.25 7.5H13.5V10Z"],"Toolbox/l/outline":["M17.25 2C18.7688 2 20 3.23122 20 4.75V10H21.25C21.6642 10 22 10.3358 22 10.75V18.25C22 19.7688 20.7688 21 19.25 21H4.75C3.23122 21 2 19.7688 2 18.25V10.75C2 10.3358 2.33579 10 2.75 10H4V6.50391C4.00006 6.04893 4.11338 5.6008 4.3291 5.2002L5.60254 2.83496C5.87935 2.32087 6.41613 2 7 2C7.58387 2 8.12065 2.32087 8.39746 2.83496L9.6709 5.2002C9.88662 5.6008 9.99994 6.04893 10 6.50391V10H12V4.75C12 3.23122 13.2312 2 14.75 2H17.25ZM3.5 18.25C3.5 18.9404 4.05964 19.5 4.75 19.5H19.25C19.9404 19.5 20.5 18.9404 20.5 18.25V11.5H3.5V18.25ZM7 3.5C6.96795 3.5 6.93804 3.51769 6.92285 3.5459L5.64941 5.91113C5.55153 6.09306 5.50006 6.29729 5.5 6.50391V10H8.5V6.50391C8.49994 6.29729 8.44847 6.09403 8.35059 5.91211L7.07715 3.5459C7.06196 3.51769 7.03205 3.5 7 3.5ZM14.75 3.5C14.0596 3.5 13.5 4.05964 13.5 4.75V6H15.25C15.6642 6 16 6.33579 16 6.75C16 7.16421 15.6642 7.5 15.25 7.5H13.5V10H18.5V4.75C18.5 4.05964 17.9404 3.5 17.25 3.5H14.75Z"],"Toolbox/m/filled":["M4.66665 2.33331C4.64528 2.33331 4.62565 2.34505 4.61551 2.36385L3.76625 3.94105C3.70087 4.06248 3.66665 4.19823 3.66665 4.33614V6.66665H5.66665V4.33614C5.66665 4.19823 5.63242 4.06248 5.56704 3.94105L4.71778 2.36385C4.70765 2.34505 4.68801 2.33331 4.66665 2.33331ZM4.66665 1.33331C5.05589 1.33331 5.41371 1.54703 5.59825 1.88975L6.44751 3.46695C6.59135 3.73409 6.66665 4.03274 6.66665 4.33614V6.66665H7.99998V3.16665C7.99998 2.15413 8.82078 1.33331 9.83331 1.33331H11.5C12.5125 1.33331 13.3333 2.15413 13.3333 3.16665V6.66665H14.1666C14.4428 6.66665 14.6666 6.89051 14.6666 7.16665V12.1666C14.6666 13.1792 13.8458 14 12.8333 14H3.16665C2.15413 14 1.33331 13.1792 1.33331 12.1666V7.16665C1.33331 6.89051 1.55717 6.66665 1.83331 6.66665H2.66665V4.33614C2.66665 4.03274 2.74194 3.73409 2.88578 3.46695L3.73505 1.88975C3.91959 1.54703 4.2774 1.33331 4.66665 1.33331ZM8.99998 6.66665H12.3333V3.16665C12.3333 2.70641 11.9602 2.33331 11.5 2.33331H9.83331C9.37305 2.33331 8.99998 2.70641 8.99998 3.16665V3.99998H10.1666C10.4428 3.99998 10.6666 4.22384 10.6666 4.49998C10.6666 4.77612 10.4428 4.99998 10.1666 4.99998H8.99998V6.66665Z"],"Toolbox/m/outline":["M11.5 1.20801C12.5814 1.20801 13.4577 2.08475 13.458 3.16602V6.54199H14.166C14.5112 6.54199 14.791 6.82181 14.791 7.16699V12.167C14.7909 13.2484 13.9145 14.125 12.833 14.125H3.16602C2.08488 14.1246 1.20817 13.2482 1.20801 12.167V7.16699C1.20801 6.82194 1.488 6.54219 1.83301 6.54199H2.54199V4.33594C2.54204 4.01196 2.62276 3.69249 2.77637 3.40723L3.625 1.83008L3.71191 1.69336C3.93271 1.39127 4.28643 1.20801 4.66699 1.20801C5.04756 1.20813 5.40136 1.39116 5.62207 1.69336L5.70898 1.83008L6.55762 3.40723C6.71123 3.69249 6.79194 4.01196 6.79199 4.33594V6.54199H7.875V3.16602C7.87534 2.08486 8.75178 1.20818 9.83301 1.20801H11.5ZM2.45801 12.167C2.45817 12.5578 2.77523 12.8746 3.16602 12.875H12.833C13.2241 12.875 13.5409 12.5581 13.541 12.167V7.79199H2.45801V12.167ZM3.87695 4C3.82143 4.10311 3.79204 4.21882 3.79199 4.33594V6.54199H5.54199V4.33594C5.54194 4.21882 5.51255 4.10311 5.45703 4L4.66699 2.53125L3.87695 4ZM9.83301 2.45801C9.44215 2.45818 9.12534 2.77521 9.125 3.16602V3.875H10.167C10.512 3.87518 10.792 4.15493 10.792 4.5C10.792 4.84507 10.512 5.12482 10.167 5.125H9.125V6.54199H12.208V3.16602C12.2077 2.7751 11.891 2.45801 11.5 2.45801H9.83301Z"],"Toolbox/s/filled":["M3.5 1.75C3.48397 1.75 3.46925 1.7588 3.46165 1.7729L2.8247 2.95581C2.77567 3.04688 2.75 3.14868 2.75 3.25212V5H4.25V3.25212C4.25 3.14868 4.22433 3.04688 4.17529 2.95581L3.53835 1.7729C3.53075 1.7588 3.51603 1.75 3.5 1.75ZM3.5 1C3.79193 1 4.06029 1.16029 4.1987 1.41733L4.83565 2.60023C4.94353 2.80058 5 3.02457 5 3.25212V5H6V2.375C6 1.61561 6.6156 1 7.375 1H8.625C9.3844 1 10 1.61561 10 2.375V5H10.625C10.8321 5 11 5.1679 11 5.375V9.125C11 9.8844 10.3844 10.5 9.625 10.5H2.375C1.61561 10.5 1 9.8844 1 9.125V5.375C1 5.1679 1.1679 5 1.375 5H2V3.25212C2 3.02457 2.05647 2.80058 2.16435 2.60023L2.8013 1.41733C2.93971 1.16029 3.20807 1 3.5 1ZM6.75 5H9.25V2.375C9.25 2.02982 8.9702 1.75 8.625 1.75H7.375C7.0298 1.75 6.75 2.02982 6.75 2.375V3H7.625C7.8321 3 8 3.1679 8 3.375C8 3.5821 7.8321 3.75 7.625 3.75H6.75V5Z"],"Toolbox/s/outline":["M8.625 0.875C9.45345 0.875 10.125 1.54658 10.125 2.375V4.875H10.625C10.9011 4.875 11.125 5.09886 11.125 5.375V9.125C11.125 9.95344 10.4534 10.625 9.625 10.625H2.375C1.54658 10.625 0.875 9.95345 0.875 9.125V5.375C0.875 5.09886 1.09886 4.875 1.375 4.875H1.875V3.25195C1.87503 3.00378 1.93702 2.75953 2.05469 2.54102L2.69141 1.3584L2.75781 1.25195C2.92921 1.017 3.20424 0.875 3.5 0.875C3.83792 0.875 4.14839 1.06087 4.30859 1.3584L4.94531 2.54102C5.06298 2.75953 5.12497 3.00378 5.125 3.25195V4.875H5.875V2.375C5.875 1.54658 6.54655 0.875 7.375 0.875H8.625ZM1.875 9.125C1.875 9.40115 2.09885 9.625 2.375 9.625H9.625C9.90116 9.625 10.125 9.40116 10.125 9.125V5.875H1.875V9.125ZM2.93457 3.01465C2.89537 3.08744 2.87503 3.16926 2.875 3.25195V4.875H4.125V3.25195C4.12497 3.16926 4.10463 3.08744 4.06543 3.01465L3.5 1.96387L2.93457 3.01465ZM7.375 1.875C7.09885 1.875 6.875 2.09885 6.875 2.375V2.875H7.625C7.90114 2.875 8.125 3.09886 8.125 3.375C8.125 3.65114 7.90114 3.875 7.625 3.875H6.875V4.875H9.125V2.375C9.125 2.09885 8.90115 1.875 8.625 1.875H7.375Z"],"TrashCanRound/l/filled":["M12 2.25C14.3306 2.25 16.4696 2.53554 18.0508 3.01465C18.8365 3.25275 19.5273 3.55116 20.0381 3.91699C20.5306 4.26988 21 4.79467 21 5.5C21 5.61813 20.9852 5.73082 20.9609 5.83887L19.7471 14.9658C19.5292 16.6028 19.4068 17.586 19.0371 18.3936C18.3532 19.8871 17.0629 21.0171 15.4922 21.498C14.6428 21.7581 13.6519 21.75 12 21.75C10.3481 21.75 9.35721 21.7581 8.50781 21.498C6.93712 21.0171 5.64677 19.8871 4.96289 18.3936C4.59322 17.586 4.47076 16.6028 4.25293 14.9658L3.03809 5.83887C3.01388 5.73089 3 5.61805 3 5.5C3 4.79467 3.46936 4.26988 3.96191 3.91699C4.47267 3.55116 5.16349 3.25275 5.94922 3.01465C7.53041 2.53554 9.66944 2.25 12 2.25ZM12 3.75C9.77435 3.75 7.78848 4.02453 6.38379 4.4502C5.67681 4.66444 5.15909 4.9045 4.83496 5.13672C4.67483 5.25147 4.58497 5.34803 4.53906 5.41602C4.51792 5.44735 4.50815 5.46916 4.50391 5.48145L4.50977 5.5293C4.51523 5.54209 4.52334 5.56068 4.53906 5.58398C4.58497 5.65197 4.67483 5.74853 4.83496 5.86328C5.15909 6.0955 5.67681 6.33556 6.38379 6.5498C7.78848 6.97547 9.77435 7.25 12 7.25C14.2257 7.25 16.2115 6.97547 17.6162 6.5498C18.3232 6.33556 18.8409 6.0955 19.165 5.86328C19.3252 5.74853 19.415 5.65197 19.4609 5.58398C19.4765 5.5609 19.4838 5.54207 19.4893 5.5293L19.4951 5.48145C19.4908 5.46911 19.4819 5.44709 19.4609 5.41602C19.415 5.34803 19.3252 5.25147 19.165 5.13672C18.8409 4.9045 18.3232 4.66444 17.6162 4.4502C16.2115 4.02453 14.2257 3.75 12 3.75Z"],"TrashCanRound/l/outline":["M12 2.25C14.3305 2.25 16.4696 2.53554 18.0508 3.01465C18.8365 3.25275 19.5273 3.55115 20.0381 3.91699C20.5306 4.26988 21 4.79467 21 5.5C21 5.61813 20.9852 5.73082 20.9609 5.83887L19.7471 14.9658C19.5293 16.6028 19.4069 17.5859 19.0371 18.3936C18.396 19.7939 17.2217 20.8746 15.7832 21.4004L15.4922 21.498C14.6428 21.7582 13.6519 21.75 12 21.75C10.5546 21.75 9.61525 21.7567 8.83398 21.584L8.50781 21.498C6.9371 21.0172 5.64675 19.8871 4.96289 18.3936C4.59322 17.586 4.47076 16.6029 4.25293 14.9658L3.03809 5.83887C3.01388 5.73089 3 5.61805 3 5.5C3 4.79467 3.46936 4.26988 3.96191 3.91699C4.47267 3.55116 5.16349 3.25275 5.94922 3.01465C7.53041 2.53554 9.66944 2.25 12 2.25ZM19.2207 7.54688C18.8667 7.71064 18.4728 7.85748 18.0508 7.98535C16.4696 8.46446 14.3305 8.75 12 8.75C9.66944 8.75 7.53041 8.46446 5.94922 7.98535C5.52691 7.85738 5.13257 7.7108 4.77832 7.54688L5.74023 14.7676C5.97204 16.5097 6.07391 17.2164 6.32715 17.7695C6.83265 18.8734 7.78638 19.7081 8.94727 20.0635C9.52881 20.2415 10.2426 20.25 12 20.25C13.7574 20.25 14.4712 20.2415 15.0527 20.0635C16.2137 19.7081 17.1674 18.8734 17.6729 17.7695C17.9261 17.2165 18.028 16.5097 18.2598 14.7676L19.2207 7.54688ZM12 3.75C9.77435 3.75 7.78848 4.02453 6.38379 4.4502C5.67681 4.66444 5.15909 4.9045 4.83496 5.13672C4.67483 5.25147 4.58497 5.34803 4.53906 5.41602C4.51792 5.44735 4.50815 5.46916 4.50391 5.48145L4.50977 5.5293C4.51523 5.54209 4.52334 5.56068 4.53906 5.58398C4.58497 5.65197 4.67483 5.74853 4.83496 5.86328C5.15909 6.0955 5.67681 6.33556 6.38379 6.5498C7.78848 6.97547 9.77435 7.25 12 7.25C14.2256 7.25 16.2115 6.97547 17.6162 6.5498C18.3232 6.33556 18.8409 6.0955 19.165 5.86328C19.3252 5.74853 19.415 5.65197 19.4609 5.58398C19.4765 5.5609 19.4838 5.54207 19.4893 5.5293L19.4951 5.48145C19.4908 5.46911 19.4819 5.44709 19.4609 5.41602C19.415 5.34803 19.3252 5.25147 19.165 5.13672C18.8409 4.9045 18.3232 4.66444 17.6162 4.4502C16.2115 4.02453 14.2256 3.75 12 3.75Z"],"TrashCanRound/m/filled":["M8 1.5C9.55373 1.5 10.9797 1.69036 12.0339 2.00977C12.5577 2.1685 13.0182 2.36744 13.3587 2.61133C13.6871 2.84659 14 3.19645 14 3.66667C14 3.74542 13.9901 3.82055 13.9739 3.89258L13.1647 9.9772C13.0195 11.0685 12.9379 11.724 12.6914 12.2624C12.2355 13.2581 11.3753 14.0114 10.3281 14.332C9.76187 14.5054 9.10127 14.5 8 14.5C6.89873 14.5 6.23814 14.5054 5.67187 14.332C4.62475 14.0114 3.76451 13.2581 3.30859 12.2624C3.06215 11.724 2.98051 11.0685 2.83529 9.9772L2.02539 3.89258C2.00925 3.82059 2 3.74537 2 3.66667C2 3.19645 2.31291 2.84659 2.64127 2.61133C2.98178 2.36744 3.44233 2.1685 3.96615 2.00977C5.02027 1.69036 6.44629 1.5 8 1.5ZM8 2.5C6.51623 2.5 5.19232 2.68302 4.25586 2.9668C3.78454 3.10963 3.43939 3.26967 3.22331 3.42448C3.11655 3.50098 3.05665 3.56535 3.02604 3.61068C3.01195 3.63157 3.00543 3.64611 3.00261 3.6543L3.00651 3.6862C3.01015 3.69473 3.01556 3.70712 3.02604 3.72265C3.05665 3.76798 3.11655 3.83235 3.22331 3.90885C3.43939 4.06367 3.78454 4.22371 4.25586 4.36653C5.19232 4.65031 6.51623 4.83333 8 4.83333C9.4838 4.83333 10.8077 4.65031 11.7441 4.36653C12.2155 4.22371 12.5606 4.06367 12.7767 3.90885C12.8835 3.83235 12.9433 3.76798 12.9739 3.72265C12.9843 3.70727 12.9892 3.69471 12.9929 3.6862L12.9967 3.6543C12.9939 3.64607 12.9879 3.63139 12.9739 3.61068C12.9433 3.56535 12.8835 3.50098 12.7767 3.42448C12.5606 3.26967 12.2155 3.10963 11.7441 2.9668C10.8077 2.68302 9.4838 2.5 8 2.5Z"],"TrashCanRound/m/outline":["M8 1.375C9.56248 1.375 11.0015 1.56577 12.0703 1.88965C12.6008 2.05039 13.0756 2.2547 13.4316 2.50977C13.7725 2.75399 14.125 3.13674 14.125 3.66699C14.125 3.74777 14.1137 3.8245 14.0986 3.89844L13.2891 9.99414C13.145 11.0767 13.061 11.7558 12.8047 12.3154C12.3339 13.3433 11.4453 14.1212 10.3643 14.4521C9.77578 14.6322 9.09214 14.625 8 14.625C6.90787 14.625 6.22422 14.6322 5.63574 14.4521C4.5545 14.1212 3.66613 13.3425 3.19531 12.3145C2.93921 11.7549 2.85496 11.0765 2.71094 9.99414L1.90039 3.89844C1.8915 3.85487 1.88274 3.81059 1.87891 3.76465L1.875 3.66699L1.87891 3.56934C1.91872 3.08934 2.2487 2.73879 2.56836 2.50977C2.92442 2.2547 3.39925 2.05039 3.92969 1.88965C4.99853 1.56578 6.43751 1.375 8 1.375ZM12.6611 5.23145C12.4747 5.30791 12.2775 5.38059 12.0703 5.44336C11.0015 5.76725 9.56252 5.95801 8 5.95801C6.43747 5.95801 4.99854 5.76725 3.92969 5.44336C3.72224 5.3805 3.52452 5.30805 3.33789 5.23145L3.9502 9.8291C4.10585 10.9989 4.17294 11.4475 4.33203 11.7949C4.65421 12.498 5.26151 13.0304 6.00098 13.2568C6.36635 13.3687 6.81964 13.375 8 13.375C9.18036 13.375 9.63364 13.3687 9.99902 13.2568C10.7385 13.0304 11.3459 12.498 11.668 11.7949L11.7236 11.6582C11.8451 11.3237 11.9136 10.8527 12.0498 9.8291L12.6611 5.23145ZM8 2.625C6.52498 2.625 5.21374 2.80662 4.29199 3.08594C3.82723 3.22678 3.49644 3.38269 3.2959 3.52637C3.207 3.5901 3.16334 3.63776 3.1416 3.66602C3.16313 3.69421 3.20592 3.74314 3.2959 3.80762C3.49643 3.95128 3.82728 4.10624 4.29199 4.24707C5.21374 4.52639 6.52498 4.70801 8 4.70801C9.475 4.70801 10.7863 4.52639 11.708 4.24707C12.1727 4.10624 12.5036 3.95128 12.7041 3.80762C12.7936 3.74351 12.8358 3.69426 12.8574 3.66602C12.8356 3.63771 12.7925 3.58975 12.7041 3.52637C12.5036 3.38269 12.1728 3.22678 11.708 3.08594C10.7863 2.80662 9.475 2.625 8 2.625Z"],"TrashCanRound/s/filled":["M6 1.125C7.1653 1.125 8.2348 1.26777 9.0254 1.50733C9.41825 1.62638 9.76365 1.77558 10.019 1.9585C10.2653 2.13494 10.5 2.39734 10.5 2.75C10.5 2.80906 10.4926 2.86541 10.4804 2.91944L9.87355 7.4829C9.7646 8.3014 9.7034 8.793 9.51855 9.1968C9.1766 9.94355 8.53145 10.5085 7.7461 10.749C7.3214 10.879 6.82595 10.875 6 10.875C5.17405 10.875 4.6786 10.879 4.2539 10.749C3.46856 10.5085 2.82339 9.94355 2.48145 9.1968C2.29661 8.793 2.23538 8.3014 2.12647 7.4829L1.51904 2.91944C1.50694 2.86545 1.5 2.80903 1.5 2.75C1.5 2.39734 1.73468 2.13494 1.98096 1.9585C2.23634 1.77558 2.58175 1.62638 2.97461 1.50733C3.76521 1.26777 4.83472 1.125 6 1.125ZM6 1.875C4.88718 1.875 3.89424 2.01227 3.1919 2.2251C2.83841 2.33222 2.57955 2.45225 2.41748 2.56836C2.33741 2.62574 2.29249 2.67401 2.26953 2.70801C2.25896 2.72368 2.25408 2.73458 2.25196 2.74073L2.25488 2.76465C2.25761 2.77105 2.26167 2.78034 2.26953 2.79199C2.29249 2.82599 2.33741 2.87426 2.41748 2.93164C2.57955 3.04775 2.83841 3.16778 3.1919 3.2749C3.89424 3.48774 4.88718 3.625 6 3.625C7.11285 3.625 8.10575 3.48774 8.8081 3.2749C9.1616 3.16778 9.42045 3.04775 9.5825 2.93164C9.6626 2.87426 9.7075 2.82599 9.73045 2.79199C9.73825 2.78045 9.7419 2.77104 9.74465 2.76465L9.74755 2.74073C9.7454 2.73456 9.74095 2.72354 9.73045 2.70801C9.7075 2.67401 9.6626 2.62574 9.5825 2.56836C9.42045 2.45225 9.1616 2.33222 8.8081 2.2251C8.10575 2.01227 7.11285 1.875 6 1.875Z"],"TrashCanRound/s/outline":["M6 1C7.17397 1 8.25622 1.1437 9.06152 1.3877C9.46105 1.50876 9.82085 1.6633 10.0918 1.85742C10.3506 2.04283 10.625 2.33733 10.625 2.75C10.625 2.77224 10.6207 2.79388 10.6191 2.81543L10.6211 2.81641L10.6162 2.85156C10.6136 2.87447 10.6107 2.89683 10.6064 2.91895L9.99707 7.49902C9.88931 8.30905 9.82652 8.82392 9.63184 9.24902C9.27505 10.0283 8.60173 10.6173 7.78223 10.8682C7.33526 11.005 6.81699 11 6 11C5.18302 11 4.66474 11.005 4.21777 10.8682C3.39828 10.6173 2.72499 10.0282 2.36816 9.24902C2.17354 8.82394 2.11072 8.30906 2.00293 7.49902L1.39258 2.91895C1.38836 2.89685 1.38539 2.87445 1.38281 2.85156L1.37891 2.81641L1.37988 2.81543C1.37834 2.7939 1.375 2.77221 1.375 2.75C1.375 2.33733 1.64942 2.04283 1.9082 1.85742C2.17915 1.6633 2.53895 1.50876 2.93848 1.3877C3.74377 1.1437 4.82602 1 6 1ZM9.45703 3.97168C9.33082 4.02159 9.19918 4.07059 9.06152 4.1123C8.25622 4.3563 7.17397 4.5 6 4.5C4.82602 4.5 3.74377 4.3563 2.93848 4.1123C2.80051 4.0705 2.66846 4.02172 2.54199 3.97168L2.99414 7.36719C3.11121 8.24696 3.16044 8.57769 3.27734 8.83301C3.51521 9.35224 3.96373 9.74485 4.50977 9.91211C4.77823 9.99432 5.11246 10 6 10C6.88754 10 7.22177 9.99432 7.49023 9.91211C8.0363 9.74485 8.48484 9.35223 8.72266 8.83301C8.83957 8.57772 8.88882 8.24697 9.00586 7.36719L9.45703 3.97168ZM6 2C4.89607 2 3.91614 2.1364 3.22852 2.34473C2.88156 2.44986 2.63676 2.56495 2.49023 2.66992C2.44315 2.70366 2.41439 2.73089 2.39648 2.75C2.41439 2.76911 2.44315 2.79634 2.49023 2.83008C2.63676 2.93505 2.88156 3.05014 3.22852 3.15527C3.91614 3.3636 4.89607 3.5 6 3.5C7.10392 3.5 8.08386 3.3636 8.77148 3.15527C9.11844 3.05014 9.36324 2.93506 9.50977 2.83008C9.55645 2.79662 9.58459 2.76908 9.60254 2.75C9.58459 2.73092 9.55645 2.70338 9.50977 2.66992C9.36324 2.56494 9.11844 2.44986 8.77148 2.34473C8.08386 2.1364 7.10392 2 6 2Z"],"TrashCanSimple/l/filled":["M11.9902 2.19727C13.9931 2.19741 15.6712 3.58247 16.1211 5.44727H20.7402C21.1543 5.44743 21.4902 5.78316 21.4902 6.19727C21.4902 6.61137 21.1543 6.9471 20.7402 6.94727H19.9902C19.9902 6.96467 19.9895 6.98239 19.9883 7L19.083 19.8896C18.9819 21.3301 17.7838 22.4472 16.3398 22.4473H7.63965C6.19583 22.447 4.99762 21.33 4.89648 19.8896L3.99219 7C3.99096 6.98239 3.99025 6.96467 3.99023 6.94727H3.24023C2.82602 6.94727 2.49023 6.61148 2.49023 6.19727C2.49023 5.78306 2.82602 5.44727 3.24023 5.44727H7.8584C8.30837 3.58234 9.98724 2.19727 11.9902 2.19727ZM11.9902 3.69727C10.8244 3.69727 9.82672 4.4231 9.42676 5.44727H14.5527C14.1529 4.42318 13.1559 3.69739 11.9902 3.69727Z"],"TrashCanSimple/l/outline":["M11.9902 2.19727C13.993 2.19741 15.6701 3.58258 16.1201 5.44727H20.7402C21.1543 5.44743 21.4902 5.78315 21.4902 6.19727C21.4902 6.61138 21.1543 6.9471 20.7402 6.94727H19.9893C19.9892 6.96472 19.9895 6.98232 19.9883 7L19.083 19.8896C18.9818 21.33 17.7838 22.4471 16.3398 22.4473H7.64062C6.1966 22.4473 4.99862 21.3301 4.89746 19.8896L3.99219 7C3.99095 6.98232 3.99122 6.96473 3.99121 6.94727H3.24023C2.82602 6.94727 2.49023 6.61148 2.49023 6.19727C2.49023 5.78305 2.82602 5.44727 3.24023 5.44727H7.85938C8.30951 3.58248 9.98729 2.19727 11.9902 2.19727ZM6.39355 19.7852C6.4397 20.4397 6.98437 20.9473 7.64062 20.9473H16.3398C16.9959 20.9471 17.5407 20.4397 17.5869 19.7852L18.4883 6.94727H5.49219L6.39355 19.7852ZM11.9902 3.69727C10.8247 3.69727 9.82981 4.42349 9.42969 5.44727H14.5508C14.1507 4.42353 13.1557 3.69739 11.9902 3.69727Z"],"TrashCanSimple/m/filled":["M7.99316 1.46484C9.3285 1.46484 10.4481 2.38855 10.748 3.63184H13.8262C14.1023 3.63184 14.3262 3.8557 14.3262 4.13184C14.326 4.40783 14.1022 4.63184 13.8262 4.63184H13.3262C13.3262 4.64333 13.326 4.65536 13.3252 4.66699L12.7217 13.2598C12.6543 14.22 11.8561 14.9646 10.8936 14.9648H5.09375C4.13106 14.9648 3.33208 14.2201 3.26465 13.2598L2.66113 4.66699C2.66032 4.65536 2.66018 4.64333 2.66016 4.63184H2.16016C1.88412 4.63184 1.66033 4.40783 1.66016 4.13184C1.66016 3.8557 1.88402 3.63184 2.16016 3.63184H5.23926C5.53923 2.38859 6.6579 1.46491 7.99316 1.46484ZM7.99316 2.46484C7.21603 2.4649 6.55178 2.9491 6.28516 3.63184H9.70215C9.43555 2.94906 8.77036 2.46484 7.99316 2.46484Z"],"TrashCanSimple/m/outline":["M7.99414 1.33984C9.35347 1.34024 10.4953 2.2577 10.8418 3.50684H13.8271C14.1721 3.50711 14.4521 3.78683 14.4521 4.13184C14.452 4.4767 14.172 4.75656 13.8271 4.75684H13.4443L12.8467 13.2686C12.7745 14.294 11.9216 15.0896 10.8936 15.0898H5.09375C4.06553 15.0898 3.21183 14.2942 3.13965 13.2686L2.54297 4.75684H2.16016C1.81508 4.75684 1.53532 4.47687 1.53516 4.13184C1.53516 3.78666 1.81498 3.50684 2.16016 3.50684H5.14453C5.49114 2.25741 6.63441 1.33984 7.99414 1.33984ZM4.38672 13.1816C4.413 13.5524 4.72197 13.8398 5.09375 13.8398H10.8936C11.2651 13.8396 11.5733 13.5523 11.5996 13.1816L12.1914 4.75684H3.79492L4.38672 13.1816ZM7.99414 2.58984C7.33661 2.58984 6.76599 2.96216 6.48047 3.50684H9.50781C9.22237 2.96219 8.65149 2.59017 7.99414 2.58984Z"],"TrashCanSimple/s/filled":["M5.99512 1.09863C6.99655 1.09869 7.83559 1.79123 8.06055 2.72363H10.3701C10.5772 2.7237 10.7451 2.89157 10.7451 3.09863C10.7451 3.3057 10.5772 3.47357 10.3701 3.47363H9.99512C9.99512 3.48233 9.99474 3.49119 9.99414 3.5L9.54102 9.94531C9.49027 10.6654 8.89177 11.2236 8.16992 11.2236H3.82031C3.09842 11.2236 2.49899 10.6654 2.44824 9.94531L1.99609 3.5C1.99548 3.49119 1.99513 3.48233 1.99512 3.47363H1.62012C1.41301 3.47363 1.24512 3.30574 1.24512 3.09863C1.24512 2.89153 1.41301 2.72363 1.62012 2.72363H3.92969C4.15471 1.79122 4.99366 1.09863 5.99512 1.09863ZM5.99512 1.84863C5.41225 1.84863 4.91387 2.21159 4.71387 2.72363H7.27637C7.07643 2.21158 6.57796 1.84868 5.99512 1.84863Z"],"TrashCanSimple/s/outline":["M5.99414 0.973633C7.01995 0.973633 7.88415 1.66012 8.15527 2.59863H10.3701C10.6462 2.5987 10.8701 2.82253 10.8701 3.09863C10.8701 3.37473 10.6462 3.59857 10.3701 3.59863H10.1133L9.66602 9.9541C9.61063 10.7395 8.9574 11.3486 8.16992 11.3486H3.82031C3.0328 11.3486 2.37959 10.7396 2.32422 9.9541L1.87695 3.59863H1.62012C1.34397 3.59863 1.12012 3.37478 1.12012 3.09863C1.12012 2.82249 1.34397 2.59863 1.62012 2.59863H3.83496C4.10593 1.6604 4.96872 0.973999 5.99414 0.973633ZM3.32129 9.88379C3.33974 10.1456 3.55781 10.3486 3.82031 10.3486H8.16992C8.43236 10.3486 8.65048 10.1456 8.66895 9.88379L9.10938 3.59863H2.88086L3.32129 9.88379ZM5.99414 1.97363C5.53222 1.97393 5.12933 2.22563 4.91309 2.59863H7.07617C6.85991 2.2254 6.45641 1.97363 5.99414 1.97363Z"],"UndoStepBack/l/filled":["M7.28033 3.78033C7.57322 3.48744 7.57322 3.01256 7.28033 2.71967C6.98744 2.42678 6.51256 2.42678 6.21967 2.71967L3.21967 5.71967C2.92678 6.01256 2.92678 6.48744 3.21967 6.78033L6.21967 9.78033C6.51256 10.0732 6.98744 10.0732 7.28033 9.78033C7.57322 9.48744 7.57322 9.01256 7.28033 8.71967L5.56066 7H14.25C17.2876 7 19.75 9.46243 19.75 12.5C19.75 15.5376 17.2876 18 14.25 18H5.75C5.33579 18 5 18.3358 5 18.75C5 19.1642 5.33579 19.5 5.75 19.5H14.25C18.116 19.5 21.25 16.366 21.25 12.5C21.25 8.63401 18.116 5.5 14.25 5.5H5.56066L7.28033 3.78033Z"],"UndoStepBack/l/outline":["M6.21973 2.71973C6.51262 2.42684 6.98738 2.42684 7.28028 2.71973C7.57311 3.01263 7.57315 3.4874 7.28028 3.78028L5.56055 5.5H14.25C18.116 5.50004 21.25 8.63403 21.25 12.5C21.25 16.366 18.116 19.5 14.25 19.5H5.75C5.33581 19.5 5.00003 19.1642 5 18.75C5 18.3358 5.33579 18 5.75 18H14.25C17.2875 18 19.75 15.5375 19.75 12.5C19.75 9.46246 17.2876 7.00003 14.25 7H5.56055L7.28028 8.71973C7.57311 9.01263 7.57315 9.4874 7.28028 9.78028C6.9874 10.0732 6.51263 10.0731 6.21973 9.78028L3.21973 6.78028C2.92684 6.48738 2.92684 6.01262 3.21973 5.71973L6.21973 2.71973Z"],"UndoStepBack/m/filled":["M4.05728 1.72419C4.30128 1.4802 4.69796 1.48036 4.94206 1.72419C5.18614 1.96828 5.18614 2.36489 4.94206 2.60897L4.00943 3.5416H9.49971C12.1461 3.5416 14.2917 5.68731 14.2917 8.33364C14.2916 10.9799 12.146 13.1247 9.49971 13.1247H3.83267C3.48781 13.1243 3.20767 12.8447 3.20767 12.4997C3.20792 12.155 3.48796 11.8751 3.83267 11.8747H9.49971C11.4556 11.8747 13.0416 10.2895 13.0417 8.33364C13.0417 6.37767 11.4557 4.79161 9.49971 4.79161H4.00943L4.94206 5.72424C5.18614 5.96832 5.18614 6.36493 4.94206 6.60901C4.69797 6.85298 4.30133 6.85305 4.05728 6.60901L2.05727 4.60899C1.81348 4.36493 1.81339 3.96822 2.05727 3.72422L4.05728 1.72419Z"],"UndoStepBack/m/outline":["M4.05728 1.72419C4.30128 1.4802 4.69796 1.48036 4.94206 1.72419C5.18614 1.96828 5.18614 2.36489 4.94206 2.60897L4.00943 3.5416H9.49971C12.1461 3.5416 14.2917 5.68731 14.2917 8.33364C14.2916 10.9799 12.146 13.1247 9.49971 13.1247H3.83267C3.48781 13.1243 3.20767 12.8447 3.20767 12.4997C3.20792 12.155 3.48796 11.8751 3.83267 11.8747H9.49971C11.4556 11.8747 13.0416 10.2895 13.0417 8.33364C13.0417 6.37767 11.4557 4.79161 9.49971 4.79161H4.00943L4.94206 5.72424C5.18614 5.96832 5.18614 6.36493 4.94206 6.60901C4.69797 6.85298 4.30133 6.85305 4.05728 6.60901L2.05727 4.60899C1.81348 4.36493 1.81339 3.96822 2.05727 3.72422L4.05728 1.72419Z"],"UndoStepBack/s/filled":["M3.02145 1.27151C3.21671 1.07625 3.53322 1.07625 3.72848 1.27151C3.9237 1.46677 3.92373 1.78329 3.72848 1.97854L3.08199 2.62502H7.12496C9.12699 2.62504 10.75 4.248 10.75 6.25002C10.7499 8.25204 9.12698 9.875 7.12496 9.87502H2.87496C2.59883 9.87502 2.37498 9.65115 2.37496 9.37502C2.37496 9.09888 2.59882 8.87502 2.87496 8.87502H7.12496C8.57469 8.875 9.74994 7.69975 9.74996 6.25002C9.74996 4.80029 8.5747 3.62504 7.12496 3.62502H3.08199L3.72848 4.27151C3.9237 4.46677 3.92373 4.78329 3.72848 4.97854C3.53323 5.17379 3.21671 5.17376 3.02145 4.97854L1.52145 3.47854C1.32618 3.28328 1.32618 2.96677 1.52145 2.77151L3.02145 1.27151Z"],"UndoStepBack/s/outline":["M3.02151 1.27151C3.21677 1.07625 3.53328 1.07625 3.72854 1.27151C3.92376 1.46677 3.92379 1.78329 3.72854 1.97854L3.08205 2.62502H7.12502C9.12705 2.62504 10.75 4.248 10.75 6.25002C10.75 8.25204 9.12704 9.875 7.12502 9.87502H2.87502C2.59889 9.87502 2.37504 9.65115 2.37502 9.37502C2.37502 9.09888 2.59888 8.87502 2.87502 8.87502H7.12502C8.57475 8.875 9.75 7.69975 9.75002 6.25002C9.75002 4.80029 8.57476 3.62504 7.12502 3.62502H3.08205L3.72854 4.27151C3.92376 4.46677 3.92379 4.78329 3.72854 4.97854C3.53329 5.17379 3.21677 5.17376 3.02151 4.97854L1.52151 3.47854C1.32625 3.28328 1.32625 2.96677 1.52151 2.77151L3.02151 1.27151Z"],"Unpin/l/filled":["M2.21979 2.21936C2.51263 1.92684 2.98753 1.92678 3.28034 2.21936L21.7803 20.7194C22.0732 21.0123 22.0732 21.488 21.7803 21.7809C21.4875 22.0735 21.0127 22.0734 20.7198 21.7809L16.4825 17.5436L16.3419 18.4635C15.9992 20.6897 13.2714 21.5825 11.6788 19.9899L8.37506 16.6862L4.28034 20.7809C3.98753 21.0735 3.51263 21.0734 3.21979 20.7809C2.9269 20.4881 2.9269 20.0123 3.21979 19.7194L7.31452 15.6246L4.01081 12.3209C2.41807 10.7281 3.31085 8.00132 5.53717 7.65881L6.45612 7.51721L2.21979 3.28088C1.9269 2.98799 1.9269 2.51226 2.21979 2.21936Z","M12.6026 3.47034C13.423 1.7613 15.6859 1.37496 17.0264 2.71545L21.2842 6.97424C22.6247 8.31466 22.2392 10.5776 20.5303 11.3981L17.7755 12.7194C17.4036 12.898 17.1438 13.2491 17.0811 13.6569L17.0323 13.9723L10.0284 6.96741L10.3438 6.91955C10.7514 6.85675 11.1019 6.59609 11.2803 6.22424L12.6026 3.47034Z"],"Unpin/l/outline":["M2.21988 2.21953C2.51271 1.92697 2.9876 1.92697 3.28043 2.21953L8.4689 7.40801C8.55089 7.4627 8.62158 7.53301 8.67691 7.61602L16.3839 15.323C16.467 15.3783 16.5372 15.4491 16.592 15.5311L21.7804 20.7195C22.0731 21.0124 22.0732 21.4882 21.7804 21.7811C21.4877 22.0735 21.0127 22.0734 20.7199 21.7811L16.4826 17.5438L16.342 18.4637C15.9992 20.6895 13.2716 21.5822 11.6789 19.99L8.37515 16.6863L4.28043 20.7811C3.98767 21.0735 3.51271 21.0734 3.21988 20.7811C2.92701 20.4882 2.92706 20.0124 3.21988 19.7195L7.31363 15.6248L4.0109 12.3211C2.41817 10.7283 3.31093 8.0015 5.53726 7.65899L6.45621 7.51738L2.21988 3.28106C1.92701 2.98819 1.92706 2.51243 2.21988 2.21953ZM5.7648 9.14141C4.75307 9.2973 4.34757 10.5366 5.07144 11.2605L8.8234 15.0125C8.85368 15.0346 8.88387 15.0585 8.91129 15.0857C8.94072 15.115 8.96682 15.1469 8.99039 15.1795L12.7394 18.9295C13.4634 19.653 14.7027 19.2467 14.8586 18.2352L15.1671 16.2283L7.77066 8.83184L5.7648 9.14141Z","M12.6027 3.47051C13.423 1.76146 15.686 1.37516 17.0265 2.71563L21.2843 6.97442C22.6243 8.31488 22.2392 10.5779 20.5304 11.3982H20.5285L17.3234 12.9275C16.9496 13.1058 16.5018 12.9467 16.3234 12.573C16.1451 12.1992 16.3032 11.7514 16.6769 11.573L19.883 10.0447C20.658 9.67114 20.8322 8.6438 20.2238 8.03496L15.966 3.77617C15.3568 3.16701 14.3283 3.34257 13.9552 4.11895L12.4269 7.32305C12.2486 7.69669 11.8007 7.8556 11.4269 7.67754C11.0533 7.4992 10.8953 7.0513 11.0734 6.67754L12.6017 3.47246L12.6027 3.47051Z"],"Unpin/m/filled":["M1.4797 1.48026C1.67496 1.285 1.99147 1.285 2.18673 1.48026L14.5197 13.8133C14.715 14.0085 14.715 14.325 14.5197 14.5203C14.3245 14.7153 14.0079 14.7154 13.8127 14.5203L10.9885 11.6961L10.8947 12.3084C10.6664 13.7926 8.84814 14.3878 7.78634 13.326L5.58321 11.1238L2.85372 13.8533C2.65846 14.0486 2.34195 14.0486 2.14669 13.8533C1.95146 13.6581 1.95144 13.3415 2.14669 13.1463L4.87618 10.4168L2.67403 8.21463C1.61219 7.15277 2.20739 5.33458 3.69161 5.10624L4.30392 5.01151L1.4797 2.18729C1.28452 1.99211 1.28468 1.67554 1.4797 1.48026Z","M8.40157 2.31327C8.94856 1.17405 10.4572 0.916769 11.3508 1.81034L14.1897 4.6492C15.0833 5.54282 14.826 7.05143 13.6867 7.59842L11.8498 8.48026C11.6022 8.59938 11.4287 8.83266 11.3869 9.10428L11.3547 9.31424L6.68575 4.6453L6.89571 4.61307C7.16732 4.57127 7.40067 4.39786 7.51974 4.15018L8.40157 2.31327Z"],"Unpin/m/outline":["M1.39062 1.39087C1.63456 1.14696 2.03128 1.14721 2.27538 1.39087L5.72558 4.84107C5.78351 4.88142 5.83337 4.9326 5.87499 4.99048L11.0078 10.1233C11.0658 10.1647 11.1167 10.2149 11.1572 10.2727L14.6084 13.7239C14.8525 13.9679 14.8524 14.3646 14.6084 14.6086C14.3644 14.8525 13.9687 14.8523 13.7246 14.6086L11.0742 11.9583L11.0176 12.3274C10.7736 13.9128 8.8315 14.5485 7.69726 13.4143L5.583 11.3L2.9414 13.9417C2.69731 14.1856 2.30163 14.1857 2.05761 13.9417C1.814 13.6976 1.81383 13.3018 2.05761 13.0579L4.69823 10.4153L2.58495 8.302C1.45138 7.16776 2.08689 5.22579 3.67187 4.98169L4.04003 4.92407L1.39062 2.27466C1.14733 2.03058 1.14695 1.63472 1.39062 1.39087ZM3.8623 6.21704C3.28927 6.30544 3.05915 7.00795 3.46874 7.41821L5.98144 9.92993C5.99672 9.94246 6.01396 9.95387 6.02831 9.96802C6.0433 9.9829 6.05524 10.0009 6.06835 10.0168L8.58105 12.5305C8.99134 12.9407 9.694 12.7103 9.78222 12.137L9.97753 10.8616L5.13671 6.02075L3.8623 6.21704Z","M8.28905 2.25903C8.87324 1.04236 10.4839 0.767907 11.4385 1.72192L14.2773 4.56079C15.2318 5.51536 14.9572 7.12601 13.7402 7.71021L13.7392 7.71118L11.6016 8.73071C11.2901 8.8788 10.917 8.74616 10.7685 8.43482C10.6208 8.1235 10.7533 7.75027 11.0644 7.60181L13.2012 6.58325C13.64 6.37134 13.7384 5.78945 13.3935 5.44458L10.5547 2.60571C10.2094 2.26099 9.6273 2.36021 9.41601 2.80005L9.41503 2.79907L8.39745 4.93482C8.24895 5.24621 7.87591 5.37891 7.56445 5.23071C7.2534 5.08206 7.12043 4.70901 7.26855 4.39771L8.28808 2.26001L8.28905 2.25903Z"],"Unpin/s/filled":["M1.1102 1.11018C1.25664 0.963737 1.49403 0.963737 1.64047 1.11018L10.8905 10.3602C11.0366 10.5066 11.0368 10.7441 10.8905 10.8905C10.7441 11.0368 10.5067 11.0366 10.3602 10.8905L8.24106 8.77229L8.17074 9.23128C7.99951 10.3444 6.63606 10.7911 5.83969 9.99495L4.18735 8.3426L2.14047 10.3905C1.99412 10.5368 1.75666 10.5366 1.6102 10.3905C1.46375 10.2441 1.46376 10.0066 1.6102 9.86018L3.65707 7.81233L2.0057 6.16096C1.20933 5.36457 1.65526 4.00021 2.7684 3.82893L3.22836 3.75862L1.1102 1.64046C0.963754 1.49401 0.963758 1.25663 1.1102 1.11018Z","M6.3016 1.73518C6.71182 0.880687 7.84328 0.687991 8.51352 1.35823L10.6424 3.48713C11.3124 4.15732 11.1197 5.28877 10.2655 5.69905L8.88754 6.36018C8.70188 6.44947 8.57231 6.62434 8.54086 6.82795L8.51645 6.98616L5.01449 3.48421L5.17172 3.45979C5.37557 3.42843 5.55122 3.2981 5.64047 3.11213L6.3016 1.73518Z"],"Unpin/s/outline":["M1.0216 1.02151C1.21683 0.826412 1.5334 0.826412 1.72863 1.02151L4.31359 3.60647C4.35895 3.63829 4.39798 3.67835 4.43078 3.72366L8.27746 7.57034C8.32156 7.60244 8.36044 7.64053 8.39172 7.6846L10.9786 10.2715C11.1736 10.4668 11.1737 10.7833 10.9786 10.9785C10.7834 11.1737 10.4669 11.1736 10.2716 10.9785L8.32726 9.03421L8.29406 9.251C8.10696 10.4649 6.6198 10.9513 5.75109 10.083L4.18762 8.51956L2.22863 10.4785C2.03344 10.6737 1.71686 10.6736 1.5216 10.4785C1.32648 10.2833 1.32644 9.96674 1.5216 9.77151L3.48058 7.81253L1.91711 6.24905C1.04845 5.38035 1.53508 3.89318 2.74914 3.70608L2.96496 3.6719L1.0216 1.72854C0.82648 1.53329 0.826438 1.21674 1.0216 1.02151ZM2.90148 4.69436C2.49679 4.75671 2.33459 5.25244 2.62414 5.54202L4.50402 7.4219C4.51711 7.43247 4.53187 7.44202 4.54406 7.45413C4.55658 7.46664 4.56632 7.48172 4.57726 7.49514L6.45812 9.376C6.74771 9.66524 7.24336 9.50312 7.30578 9.09866L7.45031 8.15725L3.84191 4.54886L2.90148 4.69436Z","M6.18859 1.68167C6.63605 0.749456 7.87051 0.538397 8.60168 1.26956L10.7306 3.39846C11.4613 4.12957 11.2513 5.36401 10.3195 5.81155L10.3185 5.81253L8.71496 6.5762C8.46595 6.69484 8.16798 6.58959 8.04894 6.34085C7.93008 6.0916 8.03602 5.79272 8.28527 5.67386L9.88781 4.90921C10.1971 4.7595 10.2666 4.34885 10.0236 4.1055L7.89465 1.97659C7.65092 1.73287 7.2391 1.80356 7.08996 2.11428L6.32629 3.71585C6.20732 3.9646 5.90927 4.06968 5.66027 3.9512C5.41109 3.83237 5.30525 3.53439 5.42394 3.28518L6.18859 1.68167Z"],"User/l/filled":["M11.5663 12.124C15.2877 12.1242 18.1306 14.3498 19.287 17.4766C19.5934 18.3051 19.3853 19.1195 18.8963 19.7021C18.4177 20.2725 17.674 20.624 16.869 20.624H6.26255C5.45767 20.624 4.71477 20.2724 4.23618 19.7021C3.74722 19.1194 3.53816 18.3052 3.84458 17.4766C5.00109 14.3497 7.84457 12.124 11.5663 12.124Z","M11.5643 1.62402C14.0496 1.62402 16.0643 3.63877 16.0643 6.12402C16.0643 8.6093 14.0496 10.624 11.5643 10.624C9.07911 10.6239 7.0643 8.60924 7.0643 6.12402C7.06434 3.63883 9.07913 1.62412 11.5643 1.62402Z"],"User/l/outline":["M12.5654 12.124C16.287 12.124 19.1295 14.3498 20.2861 17.4766C20.5925 18.3051 20.3844 19.1194 19.8955 19.7021C19.4169 20.2723 18.6739 20.6239 17.8691 20.624H7.26264C6.45765 20.624 5.71387 20.2725 5.23529 19.7021C4.74642 19.1194 4.53827 18.305 4.84466 17.4766C6.00117 14.3497 8.84393 12.1242 12.5654 12.124ZM12.5654 13.624C9.50503 13.6242 7.20243 15.4271 6.25189 17.9971C6.14955 18.2738 6.209 18.5288 6.38471 18.7383C6.57084 18.9599 6.88947 19.124 7.26264 19.124H17.8691C18.2423 19.1239 18.561 18.96 18.747 18.7383C18.9228 18.5288 18.9822 18.2738 18.8798 17.9971C17.9293 15.427 15.626 13.624 12.5654 13.624ZM12.5644 1.62402C15.0497 1.62402 17.0644 3.63877 17.0644 6.12402C17.0644 8.6093 15.0497 10.624 12.5644 10.624C10.0792 10.6239 8.06439 8.60924 8.06439 6.12402C8.06443 3.63884 10.0792 1.62413 12.5644 1.62402ZM12.5644 3.12402C10.9077 3.12413 9.56443 4.46726 9.5644 6.12402C9.5644 7.78081 10.9076 9.12391 12.5644 9.12402C14.2213 9.12402 15.5644 7.78088 15.5644 6.12402C15.5644 4.46719 14.2213 3.12402 12.5644 3.12402Z"],"User/m/filled":["M7.71096 8.08301C10.1919 8.08313 12.0865 9.56686 12.8574 11.6514C13.0617 12.2037 12.9236 12.7463 12.5977 13.1348C12.2786 13.515 11.7828 13.749 11.2461 13.749H4.17483C3.63837 13.7489 3.14326 13.5148 2.82425 13.1348C2.4983 12.7463 2.35929 12.2037 2.5635 11.6514C3.3345 9.56677 5.22982 8.08301 7.71096 8.08301ZM7.70999 1.08301C9.36673 1.08316 10.71 2.42625 10.71 4.08301C10.7098 5.73963 9.36663 7.08286 7.70999 7.08301C6.05324 7.08301 4.71015 5.73972 4.70999 4.08301C4.70999 2.42615 6.05313 1.08301 7.70999 1.08301Z"],"User/m/outline":["M7.7109 7.95801C10.2469 7.95825 12.1875 9.47747 12.9755 11.6084C13.1964 12.2065 13.0452 12.7964 12.6933 13.2158C12.3499 13.6249 11.8185 13.8749 11.2461 13.875H4.17477C3.60262 13.8749 3.07186 13.6246 2.72848 13.2158C2.37648 12.7963 2.22515 12.2066 2.44625 11.6084C3.2344 9.4773 5.17468 7.95801 7.7109 7.95801ZM7.7109 9.20801C5.72561 9.20801 4.23465 10.375 3.61813 12.042C3.56713 12.1803 3.59452 12.3037 3.68551 12.4121C3.78521 12.5307 3.96219 12.6249 4.17477 12.625H11.2461C11.4587 12.6249 11.6356 12.5307 11.7353 12.4121C11.8263 12.3037 11.8537 12.1803 11.8027 12.042C11.1862 10.3751 9.69593 9.20824 7.7109 9.20801ZM7.70992 0.958008C9.43568 0.958196 10.8349 2.35724 10.8349 4.08301C10.8348 5.80864 9.43557 7.20782 7.70992 7.20801C5.98413 7.20801 4.58509 5.80876 4.58492 4.08301C4.58492 2.35712 5.98403 0.958008 7.70992 0.958008ZM7.70992 2.20801C6.67439 2.20801 5.83492 3.04747 5.83492 4.08301C5.83509 5.1184 6.67449 5.95801 7.70992 5.95801C8.74521 5.95782 9.58476 5.11829 9.58492 4.08301C9.58492 3.04759 8.74531 2.2082 7.70992 2.20801Z"],"User/s/filled":["M5.78262 6.0625C7.64339 6.0625 9.06472 7.17494 9.64297 8.73828C9.7962 9.15253 9.6921 9.55924 9.44766 9.85059C9.20845 10.1357 8.83729 10.3124 8.43496 10.3125H3.13125C2.72875 10.3125 2.35688 10.1358 2.11758 9.85059C1.87333 9.55926 1.76913 9.1524 1.92227 8.73828C2.50049 7.17492 3.92191 6.06262 5.78262 6.0625ZM5.78262 0.811523C7.02508 0.811742 8.03262 1.81999 8.03262 3.0625C8.03236 4.30478 7.02492 5.31228 5.78262 5.3125C4.54014 5.3125 3.53288 4.30492 3.53262 3.0625C3.53262 1.81986 4.53998 0.811523 5.78262 0.811523Z"],"User/s/outline":["M5.78283 5.9375C7.69856 5.93767 9.16499 7.08556 9.76037 8.69531C9.93037 9.15529 9.8139 9.60926 9.54357 9.93164C9.27992 10.2456 8.8724 10.4374 8.4342 10.4375H3.13049C2.69231 10.4373 2.28465 10.2457 2.02111 9.93164C1.75086 9.60933 1.63446 9.15518 1.80431 8.69531C2.39969 7.08553 3.86711 5.93766 5.78283 5.9375ZM5.78283 6.9375C4.308 6.93765 3.20095 7.80364 2.74279 9.04199C2.70889 9.13418 2.72604 9.21556 2.78771 9.28906C2.85631 9.37074 2.98013 9.43728 3.13049 9.4375H8.4342C8.58451 9.43744 8.70822 9.37063 8.77697 9.28906C8.8387 9.2155 8.85593 9.13429 8.82189 9.04199C8.36374 7.80367 7.25766 6.93767 5.78283 6.9375ZM5.78185 0.686523C7.09355 0.686523 8.15685 1.75083 8.15685 3.0625C8.15659 4.37395 7.09339 5.4375 5.78185 5.4375C4.47052 5.43729 3.40712 4.37382 3.40685 3.0625C3.40685 1.75095 4.47036 0.686737 5.78185 0.686523ZM5.78185 1.6875C5.02264 1.68771 4.40685 2.30324 4.40685 3.0625C4.40712 3.82154 5.0228 4.43729 5.78185 4.4375C6.5411 4.4375 7.15659 3.82167 7.15685 3.0625C7.15685 2.3031 6.54126 1.6875 5.78185 1.6875Z"],"WarningExclamationTriangle/l/filled":["M9.63603 3.258C10.702 1.46528 13.2977 1.46527 14.3636 3.258L21.8479 15.8439C22.9379 17.677 21.6163 20.0002 19.4837 20.0002H4.51592C2.38328 20.0001 1.06269 17.677 2.15263 15.8439L9.63603 3.258ZM12.0003 14.5002C11.448 14.5002 11.0003 14.9479 11.0003 15.5002C11.0005 16.0522 11.4481 16.5002 12.0003 16.5002C12.5524 16.5001 13.0001 16.0521 13.0003 15.5002C13.0003 14.948 12.5525 14.5003 12.0003 14.5002ZM12.0003 8.00018C11.5861 8.00018 11.2503 8.33596 11.2503 8.75018V12.7502C11.2505 13.1642 11.5862 13.5002 12.0003 13.5002C12.4143 13.5001 12.7501 13.1641 12.7503 12.7502V8.75018C12.7503 8.33604 12.4144 8.00031 12.0003 8.00018Z"],"WarningExclamationTriangle/l/outline":["M12.0002 14.5002C12.5524 14.5004 13.0002 14.948 13.0002 15.5002C13.0001 16.0523 12.5523 16.5001 12.0002 16.5002C11.448 16.5002 11.0003 16.0524 11.0002 15.5002C11.0002 14.9479 11.4479 14.5002 12.0002 14.5002Z","M12.0002 8.00022C12.4143 8.00037 12.7502 8.3361 12.7502 8.75022V12.7502C12.7501 13.1642 12.4142 13.5001 12.0002 13.5002C11.5861 13.5002 11.2503 13.1643 11.2502 12.7502V8.75022C11.2502 8.33601 11.586 8.00022 12.0002 8.00022Z","M9.63597 3.25803C10.7019 1.46529 13.2976 1.4653 14.3635 3.25803L21.8479 15.8449C22.9371 17.6779 21.6161 20.0002 19.4836 20.0002H4.51585C2.38336 20.0001 1.06302 17.678 2.15257 15.8449L9.63597 3.25803ZM13.0744 4.02463C12.59 3.20981 11.4105 3.20984 10.926 4.02463L3.44163 16.6115C2.94668 17.4447 3.54673 18.5001 4.51585 18.5002H19.4836C20.4528 18.5002 21.053 17.4448 20.5578 16.6115L13.0744 4.02463Z"],"WarningExclamationTriangle/m/filled":["M6.42431 2.172C7.13492 0.976851 8.86508 0.976844 9.57568 2.172L14.5649 10.5626C15.2916 11.7847 14.4105 13.3331 12.9888 13.3331H3.01025C1.58867 13.3329 0.708471 11.7846 1.43505 10.5626L6.42431 2.172ZM7.99951 9.66614C7.63154 9.66639 7.33353 9.96512 7.33349 10.3331C7.33349 10.7011 7.63152 10.9999 7.99951 11.0001C8.36771 11.0001 8.6665 10.7013 8.6665 10.3331C8.66646 9.96496 8.36768 9.66614 7.99951 9.66614ZM7.99951 5.33313C7.7236 5.33338 7.49953 5.55716 7.49951 5.83313V8.50012C7.49964 8.77598 7.72367 8.99987 7.99951 9.00012C8.27555 9.00012 8.49937 8.77614 8.49951 8.50012V5.83313C8.49948 5.557 8.27562 5.33313 7.99951 5.33313Z"],"WarningExclamationTriangle/m/outline":["M8.08133 9.54594C8.48022 9.58669 8.79115 9.92343 8.79129 10.3331C8.79129 10.7702 8.43737 11.1249 8.00027 11.125C7.59045 11.125 7.25276 10.8132 7.21219 10.4141L7.20828 10.3331L7.21219 10.252C7.25289 9.853 7.59055 9.54114 8.00027 9.54106L8.08133 9.54594Z","M8.00027 5.20805C8.34521 5.20823 8.62512 5.48811 8.62527 5.83305V8.50005C8.6251 8.84496 8.34519 9.12487 8.00027 9.12505C7.65527 9.12496 7.37545 8.84502 7.37527 8.50005V5.83305C7.37543 5.48806 7.65526 5.20813 8.00027 5.20805Z","M6.31668 2.10747C7.0758 0.831387 8.92374 0.831424 9.68289 2.10747L14.6721 10.4991C15.4482 11.8043 14.508 13.4578 12.9895 13.4581H3.01004C1.49176 13.4576 0.55155 11.8042 1.32742 10.4991L6.31668 2.10747ZM8.60867 2.74712C8.3341 2.28545 7.66542 2.28539 7.3909 2.74712L2.40164 11.1377C2.12116 11.6097 2.4612 12.2076 3.01004 12.2081H12.9895C13.5385 12.2078 13.8786 11.6098 13.5979 11.1377L8.60867 2.74712Z"],"WarningExclamationTriangle/s/filled":["M4.81846 1.62855C5.3515 0.732618 6.64877 0.732548 7.18174 1.62855L10.9239 7.92249C11.4686 8.83891 10.8083 9.99943 9.74229 9.99964H2.25791C1.19171 9.99957 0.531514 8.83898 1.07627 7.92249L4.81846 1.62855ZM6.0001 7.24964C5.72404 7.24964 5.50025 7.47361 5.5001 7.74964C5.5001 8.02574 5.72395 8.24964 6.0001 8.24964C6.27622 8.24961 6.5001 8.02572 6.5001 7.74964C6.49995 7.47363 6.27613 7.24967 6.0001 7.24964ZM6.0001 3.99964C5.79308 3.99964 5.62524 4.16764 5.6251 4.37464V6.37464C5.6251 6.58174 5.793 6.74964 6.0001 6.74964C6.20717 6.74961 6.3751 6.58172 6.3751 6.37464V4.37464C6.37497 4.16766 6.20709 3.99967 6.0001 3.99964Z"],"WarningExclamationTriangle/s/outline":["M6.00011 7.125C6.34525 7.12507 6.62511 7.40485 6.62511 7.75C6.62511 8.09516 6.34525 8.37494 6.00011 8.375C5.65492 8.375 5.37511 8.09519 5.37511 7.75C5.37511 7.40481 5.65492 7.125 6.00011 7.125Z","M6.00011 3.875C6.2762 3.87507 6.50011 4.0989 6.50011 4.375V6.375C6.50011 6.65111 6.2762 6.87494 6.00011 6.875C5.72397 6.875 5.50011 6.65114 5.50011 6.375V4.375C5.50011 4.09886 5.72397 3.875 6.00011 3.875Z","M4.71105 1.56446C5.29263 0.587214 6.7088 0.586937 7.29015 1.56446L11.0314 7.85743C11.6258 8.85715 10.9053 10.1237 9.7423 10.124H2.2589C1.09561 10.124 0.374356 8.8573 0.968859 7.85743L4.71105 1.56446ZM6.4298 2.0752C6.23593 1.75004 5.76436 1.75012 5.57042 2.0752L1.82823 8.36914C1.63051 8.7024 1.87132 9.12403 2.2589 9.12403H9.7423C10.1297 9.12368 10.37 8.70233 10.172 8.36914L6.4298 2.0752Z"],"XCrossCloseLarge/l/filled":["M3.61612 4.06772C4.10427 3.57956 4.89573 3.57956 5.38388 4.06772L11.5 10.1838L17.6161 4.06772C18.1043 3.57956 18.8957 3.57956 19.3839 4.06772C19.872 4.55587 19.872 5.34733 19.3839 5.83548L13.2678 11.9516L19.3839 18.0677C19.872 18.5559 19.872 19.3473 19.3839 19.8355C18.8957 20.3236 18.1043 20.3236 17.6161 19.8355L11.5 13.7194L5.38388 19.8355C4.89573 20.3236 4.10427 20.3236 3.61612 19.8355C3.12796 19.3473 3.12796 18.5559 3.61612 18.0677L9.7322 11.9516L3.61612 5.83548C3.12796 5.34733 3.12796 4.55587 3.61612 4.06772Z"],"XCrossCloseLarge/l/outline":["M18.2197 4.17133C18.5126 3.87844 18.9874 3.87844 19.2803 4.17133C19.5732 4.46422 19.5732 4.93898 19.2803 5.23188L12.5606 11.9516L19.2803 18.6713C19.5732 18.9642 19.5732 19.439 19.2803 19.7319C18.9874 20.0248 18.5126 20.0248 18.2197 19.7319L11.5 13.0122L4.78028 19.7319C4.48738 20.0248 4.01262 20.0248 3.71973 19.7319C3.42684 19.439 3.42684 18.9642 3.71973 18.6713L10.4395 11.9516L3.71973 5.23188C3.42684 4.93898 3.42684 4.46422 3.71973 4.17133C4.01262 3.87844 4.48738 3.87844 4.78028 4.17133L11.5 10.8911L18.2197 4.17133Z"],"XCrossCloseLarge/m/filled":["M2.41077 2.71179C2.7362 2.38635 3.26384 2.38635 3.58927 2.71179L7.66669 6.78918L11.7441 2.71179C12.0696 2.38635 12.5972 2.38635 12.9226 2.71179C13.248 3.03723 13.248 3.56487 12.9226 3.8903L8.84522 7.96771L12.9226 12.0451C13.248 12.3706 13.248 12.8982 12.9226 13.2236C12.5972 13.549 12.0696 13.549 11.7441 13.2236L7.66669 9.14625L3.58927 13.2236C3.26384 13.549 2.7362 13.549 2.41077 13.2236C2.08533 12.8982 2.08533 12.3706 2.41077 12.0451L6.48815 7.96771L2.41077 3.8903C2.08533 3.56487 2.08533 3.03723 2.41077 2.71179Z"],"XCrossCloseLarge/m/outline":["M12.0579 2.69203C12.3019 2.44822 12.6977 2.44833 12.9417 2.69203C13.1858 2.93611 13.1858 3.33272 12.9417 3.5768L8.55012 7.96742L12.9417 12.359C13.1858 12.6031 13.1858 12.9987 12.9417 13.2428C12.6976 13.4869 12.302 13.4869 12.0579 13.2428L7.66633 8.85121L3.27571 13.2428C3.03163 13.4869 2.63502 13.4869 2.39094 13.2428C2.14725 12.9988 2.14714 12.603 2.39094 12.359L6.78157 7.96742L2.39094 3.5768C2.14687 3.33272 2.14687 2.93611 2.39094 2.69203C2.63502 2.44795 3.03163 2.44795 3.27571 2.69203L7.66633 7.08266L12.0579 2.69203Z"],"XCrossCloseLarge/s/filled":["M1.80806 2.03389C2.05213 1.78981 2.44787 1.78981 2.69194 2.03389L5.75 5.09193L8.80805 2.03389C9.05215 1.78981 9.44785 1.78981 9.69195 2.03389C9.936 2.27797 9.936 2.6737 9.69195 2.91777L6.6339 5.97583L9.69195 9.03388C9.936 9.27798 9.936 9.67368 9.69195 9.91778C9.44785 10.1618 9.05215 10.1618 8.80805 9.91778L5.75 6.85973L2.69194 9.91778C2.44787 10.1618 2.05213 10.1618 1.80806 9.91778C1.56398 9.67368 1.56398 9.27798 1.80806 9.03388L4.8661 5.97583L1.80806 2.91777C1.56398 2.6737 1.56398 2.27797 1.80806 2.03389Z"],"XCrossCloseLarge/s/outline":["M9.02151 1.99728C9.21677 1.80201 9.53328 1.80201 9.72854 1.99728C9.9238 2.19254 9.9238 2.50905 9.72854 2.70431L6.45705 5.97579L9.72854 9.24728C9.9238 9.44254 9.9238 9.75905 9.72854 9.95431C9.53328 10.1496 9.21677 10.1496 9.02151 9.95431L5.75002 6.68282L2.47854 9.95431C2.28328 10.1496 1.96677 10.1496 1.77151 9.95431C1.57625 9.75905 1.57625 9.44254 1.77151 9.24728L5.04299 5.97579L1.77151 2.70431C1.57625 2.50905 1.57625 2.19254 1.77151 1.99728C1.96677 1.80201 2.28328 1.80201 2.47854 1.99728L5.75002 5.26876L9.02151 1.99728Z"],"XCrossCloseMedium/l/filled":["M16.7197 5.67133C17.0126 5.37844 17.4874 5.37844 17.7803 5.67133C18.0732 5.96422 18.0732 6.43898 17.7803 6.73188L12.5606 11.9516L17.7803 17.1713C18.0732 17.4642 18.0732 17.939 17.7803 18.2319C17.4874 18.5248 17.0126 18.5248 16.7197 18.2319L11.5 13.0122L6.28028 18.2319C5.98738 18.5248 5.51262 18.5248 5.21973 18.2319C4.92684 17.939 4.92684 17.4642 5.21973 17.1713L10.4395 11.9516L5.21973 6.73188C4.92684 6.43898 4.92684 5.96422 5.21973 5.67133C5.51262 5.37844 5.98738 5.37844 6.28028 5.67133L11.5 10.8911L16.7197 5.67133Z"],"XCrossCloseMedium/l/outline":["M16.7197 5.67133C17.0126 5.37844 17.4874 5.37844 17.7803 5.67133C18.0732 5.96422 18.0732 6.43898 17.7803 6.73188L12.5606 11.9516L17.7803 17.1713C18.0732 17.4642 18.0732 17.939 17.7803 18.2319C17.4874 18.5248 17.0126 18.5248 16.7197 18.2319L11.5 13.0122L6.28028 18.2319C5.98738 18.5248 5.51262 18.5248 5.21973 18.2319C4.92684 17.939 4.92684 17.4642 5.21973 17.1713L10.4395 11.9516L5.21973 6.73188C4.92684 6.43898 4.92684 5.96422 5.21973 5.67133C5.51262 5.37844 5.98738 5.37844 6.28028 5.67133L11.5 10.8911L16.7197 5.67133Z"],"XCrossCloseMedium/m/filled":["M11.0579 3.69203C11.3019 3.44822 11.6977 3.44833 11.9417 3.69203C12.1858 3.93611 12.1858 4.33272 11.9417 4.5768L8.55012 7.96742L11.9417 11.359C12.1858 11.6031 12.1858 11.9987 11.9417 12.2428C11.6976 12.4869 11.302 12.4869 11.0579 12.2428L7.66633 8.85121L4.27571 12.2428C4.03163 12.4869 3.63502 12.4869 3.39094 12.2428C3.14725 11.9988 3.14714 11.603 3.39094 11.359L6.78157 7.96742L3.39094 4.5768C3.14687 4.33272 3.14687 3.93611 3.39094 3.69203C3.63502 3.44795 4.03163 3.44795 4.27571 3.69203L7.66633 7.08266L11.0579 3.69203Z"],"XCrossCloseMedium/m/outline":["M11.0579 3.69203C11.3019 3.44822 11.6977 3.44833 11.9417 3.69203C12.1858 3.93611 12.1858 4.33272 11.9417 4.5768L8.55012 7.96742L11.9417 11.359C12.1858 11.6031 12.1858 11.9987 11.9417 12.2428C11.6976 12.4869 11.302 12.4869 11.0579 12.2428L7.66633 8.85121L4.27571 12.2428C4.03163 12.4869 3.63502 12.4869 3.39094 12.2428C3.14725 11.9988 3.14714 11.603 3.39094 11.359L6.78157 7.96742L3.39094 4.5768C3.14687 4.33272 3.14687 3.93611 3.39094 3.69203C3.63502 3.44795 4.03163 3.44795 4.27571 3.69203L7.66633 7.08266L11.0579 3.69203Z"],"XCrossCloseMedium/s/filled":["M8.27148 2.74728C8.46674 2.55201 8.78325 2.55201 8.97851 2.74728C9.17377 2.94254 9.17377 3.25905 8.97851 3.45431L6.45702 5.97579L8.97851 8.49728C9.17377 8.69254 9.17377 9.00905 8.97851 9.20431C8.78325 9.39957 8.46674 9.39957 8.27148 9.20431L5.74999 6.68282L3.22851 9.20431C3.03325 9.39957 2.71674 9.39957 2.52148 9.20431C2.32621 9.00905 2.32621 8.69254 2.52148 8.49728L5.04296 5.97579L2.52148 3.45431C2.32621 3.25905 2.32621 2.94254 2.52148 2.74728C2.71674 2.55201 3.03325 2.55201 3.22851 2.74728L5.74999 5.26876L8.27148 2.74728Z"],"XCrossCloseMedium/s/outline":["M8.27148 2.74728C8.46674 2.55201 8.78325 2.55201 8.97851 2.74728C9.17377 2.94254 9.17377 3.25905 8.97851 3.45431L6.45702 5.97579L8.97851 8.49728C9.17377 8.69254 9.17377 9.00905 8.97851 9.20431C8.78325 9.39957 8.46674 9.39957 8.27148 9.20431L5.74999 6.68282L3.22851 9.20431C3.03325 9.39957 2.71674 9.39957 2.52148 9.20431C2.32621 9.00905 2.32621 8.69254 2.52148 8.49728L5.04296 5.97579L2.52148 3.45431C2.32621 3.25905 2.32621 2.94254 2.52148 2.74728C2.71674 2.55201 3.03325 2.55201 3.22851 2.74728L5.74999 5.26876L8.27148 2.74728Z"]},zYe={s:"var(--class-small-icon)",m:"var(--class-base-icon)",l:"var(--class-large-icon)",xl:"var(--class-xl-icon)"},ZYe={s:"s",m:"m",l:"l",xl:"l"},BYe=[];function qYe({name:e,size:s="m",filled:n=!1,className:a}){const i=ZYe[s],r=zYe[s],o=VYe[`${e}/${i}/${n?"filled":"outline"}`]??BYe;return t.jsx("svg",{viewBox:FYe[i],fill:"none","aria-hidden":"true",className:a,style:{width:r,height:r},children:o.map((e,s)=>t.jsx("path",{d:e,fill:"currentColor"},s))})}const WYe=e.createContext(void 0);function $Ye(){return e.use(WYe)}function GYe(){const t=e.use(WYe);return t?.ownerDocument.defaultView??globalThis.window}function KYe(){return GYe()!==globalThis.window}function YYe(e){return e?.nodeType===Node.ELEMENT_NODE?e:null}function QYe(t){const s=GYe(),n=e.useRef(null);return e.useLayoutEffect(()=>{if(!t)return;n.current=null;const e=s.document,a=YYe(e.activeElement);a&&a!==e.body&&(n.current=a,a.blur())},[t,s]),n}function JYe({keys:s}){const n=On(),a=s.split(/\s+/).map(e=>AS(e,n));return t.jsx("span",{className:"inline-flex shrink-0 items-center gap-g3",children:a.map((s,a)=>t.jsxs(e.Fragment,{children:[a>0&&t.jsx("span",{className:"text-footnote opacity-60",children:"then"}),t.jsx(XYe,{parts:s,isMac:n})]},a))})}function XYe({parts:e,isMac:s}){return t.jsx("span",{className:"flex shrink-0 items-center gap-px text-footnote opacity-60",children:e.map((e,n)=>t.jsx("kbd",{className:"font-ui flex h-[16px] items-center justify-center tabular-nums",children:n>0&&!s?`+${e}`:e},n))})}const eQe={s:{box:12,stroke:1.5},m:{box:16,stroke:1.75},l:{box:20,stroke:2}},tQe={s:"size-3",m:"size-4",l:"size-5"};function sQe({size:e="s",accent:s,className:n}){const a=eQe[e],i=s??"var(--spinner-arc, var(--t6))",r=s?`color-mix(in srgb, ${s} 10%, transparent)`:"var(--t2)",o=`calc(100% - ${a.stroke}px)`,l=`radial-gradient(farthest-side, transparent ${o}, #000 calc(${o} + 0.5px))`;return t.jsxs("span",{className:`relative inline-block shrink-0 align-middle ${tQe[e]} ${n??""}`,"aria-hidden":!0,children:[t.jsx("span",{className:"absolute inset-0 rounded-full",style:{border:`${a.stroke}px solid ${r}`}}),t.jsx("span",{className:"absolute inset-0 rounded-full animate-[spin_2s_linear_infinite] motion-reduce:animate-none",style:{background:`conic-gradient(transparent 40%, ${i})`,WebkitMask:l,mask:l}})]})}const nQe={sidebar:"bg-surface-primary-elevated effect-primary-elevated",popover:"bg-surface-popover effect-stroke-shadow",popoverElevated:"bg-surface-popover-elevated effect-stroke-shadow",hud:"bg-surface-hud effect-hud",prompt:"bg-surface-prompt-blur effect-prompt-blur"};function aQe({elevation:e,className:s}){return t.jsx("div",{"aria-hidden":!0,"data-surface":e,className:`absolute inset-0 -z-[1] rounded-[inherit] pointer-events-none ${nQe[e]} ${s??""}`})}const iQe={top:48,right:8,bottom:8,left:8};function rQe(e){const t="epitaxy-popup draggable-none relative isolate min-w-[130px] max-w-[320px] max-h-[var(--available-height)] flex flex-col py-p5 rounded-r6 outline-none";return"hud"===e?`${t} [--menu-item-color:var(--t9)]`:t}const oQe="flex-1 min-h-0 flex flex-col overflow-y-auto",lQe=AN(["relative isolate flex items-center min-h-[var(--h4)] shrink-0 px-p8 text-body select-none cursor-default outline-none hide-focus-ring","before:content-[''] before:absolute before:-z-[1] before:inset-y-0 before:left-[6px] before:right-[6px] before:rounded-r5","data-[disabled]:opacity-50 data-[disabled]:pointer-events-none"].join(" "),{variants:{variant:{default:"text-[var(--menu-item-color,var(--t8))]",destructive:["text-[var(--core-red)]","data-[highlighted]:before:bg-[var(--core-red)] data-[highlighted]:text-[var(--core-white)]","hover:before:bg-[var(--core-red)] hover:text-[var(--core-white)]","focus-visible:before:bg-[var(--core-red)] focus-visible:text-[var(--core-white)]"].join(" ")},hasIcon:{true:"gap-g6",false:"gap-g3"},inert:{true:"",false:""},trailingControl:{true:"focus-visible:before:shadow-focus",false:""}},compoundVariants:[{variant:"default",inert:!1,trailingControl:!1,className:["data-[highlighted]:before:bg-fill-uncontained-hover","hover:before:bg-fill-uncontained-hover","focus-visible:before:bg-fill-uncontained-hover"].join(" ")}],defaultVariants:{variant:"default",hasIcon:!1,inert:!1,trailingControl:!1}}),cQe={"--class-base-icon":"14px"};function dQe({name:e,selected:s,status:n,onClick:a}){const i="relative flex items-center justify-center size-[14px] shrink-0 "+(s?"text-[var(--accent)]":""),r=t.jsxs(t.Fragment,{children:[t.jsx(qYe,{name:e,size:"m",filled:s}),n&&t.jsx("span",{"aria-hidden":!0,className:"absolute -right-[1.5px] -top-[1.5px] size-[4px] rounded-full bg-[var(--accent)]"})]});return a?t.jsx("button",{type:"button",tabIndex:-1,"aria-hidden":!0,className:`${i} rounded-r2 hover:bg-t2`,style:cQe,onClick:e=>{e.stopPropagation(),e.preventDefault(),a()},children:r}):t.jsx("span",{className:i,style:cQe,children:r})}function uQe({checked:e}){return t.jsx("span",{className:"flex items-center justify-center size-[16px] shrink-0 ml-[6px]",children:e&&t.jsx(qYe,{name:"CheckSelection",size:"m"})})}function mQe(e){return void 0!==e.checked&&!(e.trailing&&"checkbox"===e.checkedRole)}function pQe(e){const s=e.hint?t.jsxs("span",{className:"flex-1 min-w-0 flex flex-col py-p1 pb-p4 pr-[12px]",children:[t.jsx("span",{className:"truncate",children:e.children}),t.jsx("span",{className:e.wrapHint?"whitespace-normal break-words text-footnote text-t6":"truncate text-footnote text-t6",children:e.hint})]}):t.jsx("span",{className:"flex-1 min-w-0 truncate pr-[12px]",children:e.children}),n=e.loading?t.jsxs("span",{role:"status",className:"flex items-center justify-center size-[14px] shrink-0",children:[t.jsx(sQe,{size:"s"}),t.jsx("span",{className:"sr-only",children:"Loading"})]}):void 0!==e.leading?t.jsxs("span",{className:"relative flex items-center justify-center size-[14px] shrink-0",children:[e.leading,e.status&&t.jsx("span",{"aria-hidden":!0,className:"absolute -right-[1px] -top-[1px] size-[5px] rounded-full bg-[var(--accent)]"})]}):e.icon?t.jsx(dQe,{name:e.icon,selected:e.selected,status:e.status,onClick:e.onIconClick}):null;return t.jsxs(t.Fragment,{children:[e.hint&&n?t.jsx("span",{className:"self-start flex items-center h-[1lh] mt-[var(--p1)] shrink-0",children:n}):n,s,e.onIconClick&&e.iconAriaLabel&&t.jsx("span",{className:"sr-only",children:`, ${e.iconAriaLabel}, ${e.iconAriaHint??"press right arrow"}`}),e.trailingAction&&e.trailingActionAriaHint&&t.jsx("span",{className:"sr-only",children:`, ${e.trailingActionAriaHint}`}),(mQe(e)||void 0===e.checked&&e.reserveCheckColumn)&&t.jsx(uQe,{checked:e.checked??!1}),e.shortcut&&t.jsx(JYe,{keys:e.shortcut}),e.trailing&&t.jsx("span",{className:"contents",onClick:e=>{e.stopPropagation()},children:e.trailing})]})}function fQe(e,t){return e?s=>{if("ArrowRight"===s.key&&!s.defaultPrevented)return s.preventDefault(),s.stopPropagation(),void e();t?.(s)}:t}const gQe=({surface:e="popover",side:s,align:n="start",sideOffset:a=8,alignOffset:i,anchor:r,collisionBoundary:o,collisionPadding:l=iQe,collisionAvoidance:c,zIndex:d,finalFocus:u,children:m,className:p,ref:f,...g})=>t.jsx(UT,{container:$Ye(),children:t.jsx(OT,{className:"epitaxy-root z-[60]",style:void 0!==d?{zIndex:d}:void 0,side:s,align:n,sideOffset:a,alignOffset:i,anchor:r,collisionBoundary:o,collisionAvoidance:c,collisionPadding:l,children:t.jsxs(FT,{ref:f,finalFocus:u,...g,className:`${rQe(e)} ${p??""}`,children:[t.jsx(aQe,{elevation:e}),t.jsx("div",{className:oQe,children:m})]})})});gQe.displayName="EpitaxyMenu.Popup";const hQe=({variant:e,icon:s,leading:n,shortcut:a,checked:i,checkedRole:r="radio",reserveCheckColumn:o,selected:l,loading:c,hint:d,wrapHint:u,status:m,onIconClick:p,iconAriaLabel:f,iconAriaHint:g,trailing:h,trailingControl:C,trailingAction:x,trailingActionAriaHint:v,children:y,className:b,onKeyDown:k,ref:w,...M})=>t.jsx($T,{ref:w,...M,...void 0!==i&&{role:"checkbox"===r?"menuitemcheckbox":"menuitemradio","aria-checked":i},onKeyDown:fQe(p??x,k),className:lQe({variant:e,hasIcon:!!s||void 0!==n||c,trailingControl:!0===C,className:b}),children:t.jsx(pQe,{icon:s,leading:n,shortcut:a,checked:i,checkedRole:r,reserveCheckColumn:o,selected:l,loading:c,hint:d,wrapHint:u,status:m,onIconClick:p,iconAriaLabel:f,iconAriaHint:g,trailing:h,trailingAction:x,trailingActionAriaHint:v,children:y})});hQe.displayName="EpitaxyMenu.Item";const CQe=({icon:e,variant:s="row",children:n,className:a,ref:i,...r})=>"control"===s?t.jsx(WT,{ref:i,...r,className:a,children:n}):t.jsxs(WT,{ref:i,...r,className:lQe({hasIcon:!!e,className:a}),children:[e&&t.jsx(dQe,{name:e}),t.jsx("span",{className:"flex-1 min-w-0 truncate",children:n}),t.jsx(qYe,{name:"ChevronRightSmall",size:"s",className:"shrink-0"})]});function xQe(e){const s=TM(e.onOpenChange);return t.jsx(BT,{...e,onOpenChange:s})}function vQe(e){const s=TM(e.onOpenChange);return t.jsx(qT,{...e,onOpenChange:s})}CQe.displayName="EpitaxyMenu.SubmenuTrigger",xQe.displayName="EpitaxyMenu.Root",vQe.displayName="EpitaxyMenu.SubmenuRoot";const yQe={Root:xQe,Trigger:zT,Group:ZT,Popup:gQe,Item:hQe,ControlRow:function({icon:e,trailing:s,children:n}){return t.jsx("div",{role:"group",className:lQe({hasIcon:!!e,inert:!0}),children:null==n?t.jsx("div",{className:"flex-1 min-w-0",children:s}):t.jsx(pQe,{icon:e,trailing:s,children:n})})},Separator:function(){return t.jsx(GT,{className:"relative h-h1",children:t.jsx("div",{className:"absolute left-[12px] right-[12px] top-1/2 h-px rounded-[1px] bg-t3"})})},Header:function({children:e}){return t.jsx(KT,{className:"flex items-center gap-g3 px-p8 py-p2 min-h-[20px] text-footnote text-t6",children:e})},SubmenuRoot:vQe,SubmenuTrigger:CQe};const bQe=({surface:s="popover",side:n,align:a,sideOffset:i,alignOffset:r,anchor:o,finalFocus:l,children:c,className:d,ref:u,...m})=>{const p=function(){const t=e.useRef(null),s=e.useRef($Ye()).current;return e.useLayoutEffect(()=>{const e=s?.ownerDocument??document,n=e.activeElement;t.current=n&&n!==e.body?n:null},[]),e.useCallback(()=>{const e=t.current;return!!e?.isConnected&&e},[])}();return t.jsx(OT,{className:"epitaxy-root z-[60]",side:n,align:a,sideOffset:i,alignOffset:r,anchor:o,collisionPadding:iQe,children:t.jsxs(FT,{ref:u,finalFocus:l??p,...m,className:`${rQe(s)} ${d??""}`,children:[t.jsx(aQe,{elevation:s}),t.jsx("div",{className:oQe,children:c})]})})},kQe=e=>t.jsx(UT,{container:$Ye(),children:t.jsx(bQe,{...e})});kQe.displayName="EpitaxyContextMenu.Popup";const wQe=({variant:e,icon:s,leading:n,shortcut:a,checked:i,checkedRole:r="radio",reserveCheckColumn:o,selected:l,loading:c,hint:d,wrapHint:u,status:m,onIconClick:p,iconAriaLabel:f,iconAriaHint:g,trailing:h,trailingControl:C,trailingAction:x,trailingActionAriaHint:v,children:y,className:b,onKeyDown:k,ref:w,...M})=>t.jsx($T,{ref:w,...M,...void 0!==i&&{role:"checkbox"===r?"menuitemcheckbox":"menuitemradio","aria-checked":i},onKeyDown:fQe(p??x,k),className:lQe({variant:e,hasIcon:!!s||void 0!==n||c,trailingControl:!0===C,className:b}),children:t.jsx(pQe,{icon:s,leading:n,shortcut:a,checked:i,checkedRole:r,reserveCheckColumn:o,selected:l,loading:c,hint:d,wrapHint:u,status:m,onIconClick:p,iconAriaLabel:f,iconAriaHint:g,trailing:h,trailingAction:x,trailingActionAriaHint:v,children:y})});wQe.displayName="EpitaxyContextMenu.Item";const MQe=({icon:e,children:s,className:n,ref:a,...i})=>t.jsxs(WT,{ref:a,...i,className:lQe({hasIcon:!!e,className:n}),children:[e&&t.jsx(dQe,{name:e}),t.jsx("span",{className:"flex-1 min-w-0 truncate",children:s}),t.jsx(qYe,{name:"ChevronRightSmall",size:"s",className:"shrink-0"})]});function _Qe({trigger:s,disabled:n,onContextMenu:a,onOpenChange:i,children:r}){const[o,l]=e.useState(null),c=e.useMemo(()=>o&&{getBoundingClientRect:()=>({x:o.x,y:o.y,top:o.y,left:o.x,right:o.x,bottom:o.y,width:0,height:0})},[o]),d=s.props.onContextMenu,u=TM(e=>{e||l(null),i?.(e)});return t.jsxs(t.Fragment,{children:[e.cloneElement(s,{onContextMenu:e=>{d?.(e),n||(a?.(e),e.defaultPrevented||(e.preventDefault(),l({x:e.clientX,y:e.clientY}),i?.(!0)))}}),o?t.jsx(PT,{open:!0,onOpenChange:u,children:t.jsx(kQe,{anchor:c,side:"bottom",align:"start",sideOffset:2,alignOffset:2,children:r})}):null]})}function jQe(e){const s=TM(e.onOpenChange);return t.jsx(PT,{...e,onOpenChange:s})}function SQe(e){const s=TM(e.onOpenChange);return t.jsx(qT,{...e,onOpenChange:s})}MQe.displayName="EpitaxyContextMenu.SubmenuTrigger",_Qe.displayName="EpitaxyContextMenu",jQe.displayName="EpitaxyContextMenu.Root",SQe.displayName="EpitaxyContextMenu.SubmenuRoot";const LQe=Object.assign(_Qe,{Root:jQe,Trigger:HT,Popup:kQe,Group:ZT,Item:wQe,Separator:function(){return t.jsx(GT,{className:"relative h-h1",children:t.jsx("div",{className:"absolute left-[12px] right-[12px] top-1/2 h-px rounded-[1px] bg-t3"})})},Header:function({children:e}){return t.jsx(KT,{className:"flex items-center px-p8 py-p2 h-[20px] text-footnote text-t6",children:e})},SubmenuRoot:SQe,SubmenuTrigger:MQe}),NQe=e.createContext({setFocused:()=>{},lazyHandle:null,armHover:()=>{},cancelHoverBootstrap:()=>{},arm:()=>{}});const IQe=({side:s="bottom",align:n="start",sideOffset:a=8,alignOffset:i,collisionPadding:r=iQe,className:o,children:l,ref:c,onContextMenu:d,...u})=>{const{setFocused:m}=e.use(NQe),p=e.useCallback(e=>{e.stopPropagation(),d?.(e)},[d]),f=e.useCallback(()=>m(!0),[m]),g=e.useCallback(e=>{e.currentTarget.contains(e.relatedTarget)||m(!1)},[m]);return t.jsx(XT,{container:$Ye(),children:t.jsx(eA,{side:s,align:n,sideOffset:a,alignOffset:i,collisionPadding:r,className:"epitaxy-root z-[60]",children:t.jsxs(tA,{ref:c,...u,onFocus:f,onBlur:g,onContextMenu:p,className:`epitaxy-popup draggable-none relative isolate flex flex-col gap-g1 min-w-[var(--hover-card-min-w,200px)] max-w-[var(--hover-card-max-w,360px)] rounded-r7 py-p7 px-p8 outline-none text-body text-t7 font-ui ${o??""}`,children:[t.jsx(aQe,{elevation:"popover"}),l]})})})};IQe.displayName="HoverCard.Popup";const TQe={Root:function({delay:s,closeDelay:n,disabled:a=!1,pinOnPopupFocus:i=!1,lazy:r=!1,onOpenChange:o,children:l}){const[c,d]=e.useState(!1),[u,m]=e.useState(!1),[p]=e.useState(()=>r?YT():null),{armed:f,arm:g}=UYe(null!==p),h=OYe(),C=hd(()=>{f||a||(g(),d(!0))}),x=hd(e=>{f||a||"touch"===e.pointerType||h.start(s??600,C)}),v=!a&&(c||u),y=e.useRef(v);e.useEffect(()=>{y.current!==v&&(y.current=v,o?.(v))},[v,o]),e.useEffect(()=>{a&&(d(!1),m(!1),h.cancel())},[a,h]);const b=e.useCallback((e,t)=>{"trigger-focus"!==t?.reason&&(a&&e||(d(e),e||i&&"trigger-hover"===t?.reason||m(!1)))},[a,i]),k=e.useMemo(()=>({setFocused:m,delay:s,closeDelay:n,lazyHandle:p,armHover:x,cancelHoverBootstrap:h.cancel,arm:g}),[s,n,p,x,h.cancel,g]);if(p){const s=[],n=[];for(const t of e.Children.toArray(l))(e.isValidElement(t)&&t.type===IQe?n:s).push(t);return t.jsxs(NQe.Provider,{value:k,children:[s,f&&t.jsx(QT,{handle:p,open:v,onOpenChange:b,children:n})]})}return t.jsx(NQe.Provider,{value:k,children:t.jsx(QT,{open:v,onOpenChange:b,children:l})})},Trigger:function({children:s}){const{setFocused:n,delay:a,closeDelay:i,lazyHandle:r,armHover:o,cancelHoverBootstrap:l,arm:c}=e.use(NQe);return t.jsx(JT,{handle:r??void 0,delay:a,closeDelay:i,onPointerEnter:r?o:void 0,onPointerLeave:r?l:void 0,onFocus:e=>{e.target.matches(":focus-visible")&&(n(!0),r&&(l(),c()))},onBlur:()=>n(!1),render:s})},Popup:IQe};function AQe(e,t,s){const n=IE(e);return"open"!==n?n:s?"queued":t?"draft":"open"}function EQe(e,t,s){if("open"===e){if("CHANGES_REQUESTED"===t)return"changesRequested";if(s)return"conflicting";if("APPROVED"===t)return"approved"}return e??"none"}const RQe={open:{icon:"GitPullRequest",color:"var(--cds-text-git-opened)"},approved:{icon:"CheckCircle",color:"var(--cds-text-git-opened)"},changesRequested:{icon:"XCircle",color:"var(--cds-text-git-closed)"},conflicting:{icon:"GitMergeConflict",color:"var(--cds-text-git-conflicting)"},draft:{icon:"GitPullRequestDraft",color:"var(--cds-text-git-draft)"},queued:{icon:"GitMergeQueue",color:"var(--cds-text-git-queued)"},merged:{icon:"GitMergedSimple",color:"var(--cds-text-git-merged)"},closed:{icon:"GitPullRequestClosed",color:"var(--cds-text-git-closed)"},none:{icon:"Placeholder",color:"var(--cds-text-muted)"}},DQe=tL({none:{defaultMessage:"No pull request",id:"Pj8J8VQe9d"},open:{defaultMessage:"Open",id:"JfG49wNHKP"},draft:{defaultMessage:"Draft",id:"W6nwjoOm/V"},approved:{defaultMessage:"Approved",id:"6XFO/Cw7Ld"},changesRequested:{defaultMessage:"Changes requested",id:"ek1mCn6mYb"},conflicting:{defaultMessage:"Merge conflicts",id:"fhg5qjBRoA"},queued:{defaultMessage:"Queued",id:"Cnm0QAkWnp"},merged:{defaultMessage:"Merged",id:"9O0Gdrs9M5"},closed:{defaultMessage:"Closed",id:"Fv1ZSzMOV6"}});function HQe(e,t){return e.formatMessage(DQe[t])}function PQe(e,t,s){const n=HQe(e,t);return"none"===t||0===s.length?n:`${s.map(e=>`#${e}`).join(", ")} \xb7 ${n}`}function UQe({state:e,size:s=12,className:n}){const{icon:a,color:i}=RQe[e];return t.jsx($L,{name:a,customSize:s,bold:s>=14,className:n,style:{color:i}})}const OQe={"\u2318":"Meta","\u21e7":"Shift","\u2325":"Alt","\u2303":"Control","\u21b5":"Enter","\u23ce":"Enter","\u238b":"Escape"},FQe={ctrl:"Control",cmd:"Meta",alt:"Alt",shift:"Shift"};function VQe(e){if(e.includes("+"))return e.split("+").filter(e=>e.length>0).map(e=>FQe[e.toLowerCase()]??OQe[e]??e.toUpperCase()).join("+");const t=[];for(const s of e)t.push(OQe[s]??s.toUpperCase());return t.join("+")}const zQe="hide-focus-ring focus-visible:shadow-[inset_0_0_0_1px_hsl(var(--accent-100)),0_0_6px_0_hsl(var(--accent-100)/0.2)]",ZQe="pl-[calc(var(--df-row-px)+var(--df-row-indent,0px))]",BQe="rounded-[var(--df-radius-pill)] hover:bg-[var(--df-hover)] focus-within:bg-[var(--df-hover)] data-[selected=focused]:bg-[var(--df-selected)] data-[selected=focused]:text-text-000 data-[selected=open]:bg-[var(--df-selected)] data-[menu-open=true]:bg-[var(--df-hover)]",qQe=AN("w-full shrink-0 border-none text-left text-[length:var(--df-row-font)] text-text-300",{variants:{variant:{nav:"flex items-center gap-[var(--df-row-gap)] h-[var(--df-row-h)] px-[var(--df-row-px)] [&_.df-leading-slot]:text-text-300 data-[selected=focused]:[&_.df-leading-slot]:text-text-000",recent:"flex items-center gap-[var(--df-row-gap)] h-[var(--df-row-h)] px-[var(--df-row-px)]",session:`flex items-center gap-[var(--df-row-gap)] h-[var(--df-row-h)] ${ZQe} pr-[var(--df-row-px)]`}},defaultVariants:{variant:"nav"}});function WQe(t,s){const[n,a]=e.useState(!1),[i,r]=e.useState(""),[o,l]=e.useState(null),c=e.useRef(null),d=e.useRef(!1),u=e.useRef(!1);e.useEffect(()=>{if(!n)return;c.current?.focus(),c.current?.select(),u.current=!0;const e=setTimeout(()=>{u.current=!1},250);return()=>{clearTimeout(e),u.current=!1}},[n]);const m=()=>{if(d.current)return;if(d.current=!0,a(!1),!t)return;const e=i.trim();e&&e!==s&&(l(e),Promise.resolve(t(e)).catch(()=>l(null)))};e.useEffect(()=>{null!==o&&s===o&&l(null)},[s,o]);return{isEditing:n,editValue:i,setEditValue:r,optimisticLabel:o,inputRef:c,startEdit:e=>{t&&(e?.preventDefault(),e?.stopPropagation(),d.current=!1,l(null),r(s??""),a(!0))},submitEdit:m,cancelEdit:()=>{d.current=!0,a(!1)},handleBlur:()=>{if(u.current)return c.current?.focus(),void c.current?.select();m()}}}const $Qe=e.forwardRef(({href:e,onClick:s,onKeyDown:n,children:a,...i},r)=>void 0===e?t.jsx("button",{ref:r,type:"button",onClick:s,onKeyDown:n,...i,children:a}):t.jsx("a",{ref:r,href:e,draggable:!1,onClick:e=>{e.preventDefault(),s?.(e)},onKeyDown:e=>{" "===e.key&&e.target===e.currentTarget&&(e.preventDefault(),e.currentTarget.click()),n?.(e)},...i,children:a}));$Qe.displayName="RowMain";const GQe=e.forwardRef(({variant:s,selected:n,href:a,icon:i,tail:r,menu:o,trailingAction:l,leadingAction:c,nameSuffix:d,rightDecoration:u,menuOpen:m,onRename:p,renameValue:f,renameMaxLength:g,startEditRef:h,shortcut:C,className:x,children:v,...y},b)=>{const k=JS(),w=void 0!==i||void 0!==r,M=!0===n?"focused":n||void 0,_="nav"===(s??"nav")&&"focused"===M?"page":void 0,{isEditing:j,editValue:S,setEditValue:L,optimisticLabel:N,inputRef:I,startEdit:T,submitEdit:A,cancelEdit:E,handleBlur:R}=WQe(p,f);e.useImperativeHandle(h,()=>()=>T());const D=null!==N?N:v,H=t.jsx("input",{ref:I,type:"text",value:S,maxLength:g,"aria-label":k.formatMessage({defaultMessage:"Rename",id:"iXNbPfQDIZ"}),onChange:e=>L(e.target.value),onBlur:R,onKeyDown:e=>{e.stopPropagation(),e.nativeEvent.isComposing||("Enter"===e.key?(e.preventDefault(),A()):"Escape"===e.key&&(e.preventDefault(),E()))},className:"hide-focus-ring flex-1 min-w-0 w-full bg-transparent text-[length:var(--df-row-font)] text-text-000 border-none"}),P="pl-[calc((var(--df-leading-slot)-var(--df-icon-size))/2)]",U=j?w?t.jsxs(t.Fragment,{children:[i&&t.jsx("span",{className:"df-leading-slot text-text-300",children:i}),i?H:t.jsx("span",{className:dt("flex-1 min-w-0",P),children:H})]}):H:w?t.jsxs(t.Fragment,{children:[i&&t.jsx("span",{className:"df-leading-slot text-text-300",children:i}),t.jsx("span",{"data-row-label":i?void 0:"iconless",className:dt("flex-1 min-w-0",!!d&&"flex items-center",!i&&P),children:d?t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"min-w-0",children:t.jsx(YQe,{suffixed:!0,children:D})}),t.jsx("span",{className:"df-name-suffix flex shrink-0 items-center pl-1",children:d})]}):t.jsx(YQe,{children:D})}),void 0!==r&&t.jsx("span",{className:"shrink-0 flex items-center gap-1.5 text-xs text-text-500",children:r})]}):C?t.jsxs(t.Fragment,{children:[D,t.jsx("kbd",{"aria-hidden":"true",className:"shrink-0 pl-1 font-ui text-caption text-text-500 opacity-0 transition-opacity group-hover:opacity-100",children:C})]}):D;if(j)return t.jsx("div",{className:dt(qQe({variant:s}),BQe,x),"data-selected":M,children:U});return void 0!==o||void 0!==l||void 0!==c?t.jsxs("div",{"data-row":"",className:dt("group relative",BQe,x),"data-selected":M,"data-menu-open":m||void 0,children:[c,t.jsx($Qe,{ref:b,href:a,"data-roving-item":"","data-row-main-button":"",className:dt(qQe({variant:s}),zQe,"rounded-[var(--df-radius-pill)] data-[selected=focused]:text-text-000"),"data-selected":M,"aria-current":_,"aria-keyshortcuts":C?VQe(C):void 0,onDoubleClick:p?T:void 0,...y,children:U}),void 0!==u&&t.jsx("span",{"data-size":"xs","aria-hidden":m||void 0,className:dt("absolute right-[calc((var(--df-row-h)-var(--df-row-ctl))/2)] top-1/2 -translate-y-1/2 pointer-events-none flex size-[var(--df-row-ctl)] items-center justify-center",m?"opacity-0":"group-hover:opacity-0 group-focus-within:opacity-0"),children:u}),t.jsxs("div",{className:dt("absolute right-[calc((var(--df-row-h)-var(--df-row-ctl))/2)] top-1/2 -translate-y-1/2 flex items-center gap-0.5",m?"opacity-100":"opacity-0 pointer-events-none group-hover:opacity-100 group-hover:pointer-events-auto group-focus-within:opacity-100 group-focus-within:pointer-events-auto"),children:[l,e.isValidElement(o)&&p?e.cloneElement(o,{onRenameStart:()=>T()}):o]})]}):t.jsx($Qe,{ref:b,href:a,"data-row":"","data-roving-item":"","data-row-main-button":"","aria-keyshortcuts":C?VQe(C):void 0,className:dt(qQe({variant:s}),BQe,zQe,"group",x),"data-selected":M,"aria-current":_,"data-menu-open":m||void 0,onDoubleClick:p?T:void 0,...y,children:U})});GQe.displayName="SidebarItem";const KQe=150;function YQe({children:s,suffixed:n}){const a=e.useRef(null),i=e.useRef(null),r=e.useRef(void 0),[o,l]=e.useState(!0),[c,d]=e.useState(!1),u=e.useCallback(()=>{const e=a.current,t=i.current;if(!e||!t||0===e.offsetWidth)return;const s=t.scrollWidth-e.offsetWidth,r=s>0?s+(n?0:44):0;l(s>0),e.style.setProperty("--marquee-overflow",`${r}px`),e.style.setProperty("--marquee-duration",r/50+"s")},[n]);e.useEffect(()=>{const e=new ResizeObserver(u);return a.current&&e.observe(a.current),i.current&&e.observe(i.current),()=>e.disconnect()},[u]),e.useEffect(()=>()=>clearTimeout(r.current),[]);const m=e=>{0===e.buttons&&(clearTimeout(r.current),c&&d(!1),r.current=setTimeout(()=>d(!0),KQe))},p=()=>{clearTimeout(r.current),d(!1)};return t.jsx("span",{ref:a,onPointerEnter:e=>{u(),m(e)},onPointerMove:m,onPointerDown:p,onPointerLeave:p,"data-pointer-idle":c||void 0,className:dt("block w-full min-w-0 whitespace-nowrap overflow-hidden",o&&"data-[pointer-idle=true]:[--marquee-left-fade:12px] data-[pointer-idle=true]:[transition:--marquee-left-fade_0.2s_ease-out] group-focus-visible:[--marquee-left-fade:12px] group-focus-visible:[transition:--marquee-left-fade_0.2s_ease-out_0.3s] group-has-[:focus-visible]:[--marquee-left-fade:12px] group-has-[:focus-visible]:[transition:--marquee-left-fade_0.2s_ease-out_0.3s]",n?o&&"[mask-image:linear-gradient(to_right,transparent,hsl(var(--always-black))_var(--marquee-left-fade,0px),hsl(var(--always-black))_var(--sb-fade-from,85%),transparent_var(--sb-fade-to,99%))]":dt(o&&"[mask-image:linear-gradient(to_right,hsl(var(--always-black))_var(--sb-fade-from,85%),transparent_var(--sb-fade-to,99%))]","group-hover:[mask-image:linear-gradient(to_right,transparent,hsl(var(--always-black))_var(--marquee-left-fade,0px),hsl(var(--always-black))_calc(100%_-_44px),transparent_calc(100%_-_20px))]","group-focus-within:[mask-image:linear-gradient(to_right,transparent,hsl(var(--always-black))_var(--marquee-left-fade,0px),hsl(var(--always-black))_calc(100%_-_44px),transparent_calc(100%_-_20px))]","group-data-[menu-open=true]:[mask-image:linear-gradient(to_right,hsl(var(--always-black))_calc(100%_-_44px),transparent_calc(100%_-_20px))]")),children:t.jsx("span",{ref:i,"data-pointer-idle":c||void 0,className:dt("inline-block whitespace-nowrap align-top","data-[pointer-idle=true]:[transform:translateX(calc(-1*var(--marquee-overflow,0px)))]","data-[pointer-idle=true]:[transition:transform_var(--marquee-duration,0s)_linear]","group-focus-visible:[transform:translateX(calc(-1*var(--marquee-overflow,0px)))]","group-focus-visible:[transition:transform_var(--marquee-duration,0s)_linear_0.3s]","group-has-[:focus-visible]:[transform:translateX(calc(-1*var(--marquee-overflow,0px)))]","group-has-[:focus-visible]:[transition:transform_var(--marquee-duration,0s)_linear_0.3s]"),children:s})})}const QQe=e.forwardRef(({onClick:e,"aria-label":s,className:n,...a},i)=>t.jsx(rN,{ref:i,variant:"ghost",iconOnly:!0,size:"xs",icon:"DotsVertical","aria-label":s,tooltip:!1,className:dt("size-[var(--df-row-ctl)] text-secondary hover:text-primary aria-expanded:text-primary",n),onClick:t=>{t.stopPropagation(),t.preventDefault(),e?.(t)},...a,"data-row-action":"",tabIndex:-1}));function JQe({onClick:e,children:s,...n}){return t.jsx("button",{type:"button",className:dt("df-row-control size-6 flex items-center justify-center rounded-md text-text-300 hover:text-text-100 hover:bg-[var(--df-hover)] transition-colors",zQe),onClick:t=>{t.stopPropagation(),t.preventDefault(),e?.(t)},tabIndex:-1,...n,"data-row-action":"",children:s})}QQe.displayName="ItemMenuTrigger";const XQe=e.memo(function({children:e,className:s,collapsed:n,onToggle:a,trailing:i}){const r="group/labelrow flex w-full min-h-[calc(var(--df-group-pt)+(var(--df-row-h)-8px)+4px)] items-center gap-[var(--df-row-gap)] pt-[var(--df-group-pt)] pr-[calc((var(--df-row-h)-24px)/2)] pb-1 text-xs text-text-400/80 pl-[calc(var(--df-row-px)+(var(--df-leading-slot)-var(--df-icon-size))/2)]";return a?t.jsxs("div",{className:dt(r,s),children:[t.jsxs("button",{type:"button",onClick:a,"aria-expanded":!n,className:"group/label flex min-w-0 flex-1 items-center gap-1 text-left hover:text-text-300 transition-colors duration-150",children:[t.jsx("span",{className:"min-w-0 truncate",children:e}),t.jsx($L,{size:"xs",name:"CaretRight",className:dt("shrink-0 transition-[opacity,transform] duration-150 group-hover/section:opacity-100 group-focus-visible/label:opacity-100",n?"opacity-100":"opacity-0 rotate-90")})]}),i]}):t.jsxs("div",{className:dt(r,s),children:[t.jsx("span",{className:"flex-1 truncate",children:e}),i]})});function eJe({header:s,children:n}){const[a,i]=e.useState(!1),r=e.useRef(null);return t.jsxs("div",{ref:r,onKeyDown:e=>{const t=document.activeElement;if(!t||!r.current?.contains(t))return;if("ArrowRight"===e.key||"ArrowLeft"===e.key){const s=t.closest("[data-row]");if(!s)return;const n=Array.from(s.querySelectorAll("[data-roving-item], [data-row-action]"));if(n.length<2)return;const a=n.indexOf(t),i="ArrowRight"===e.key?1:-1,r=n[Math.max(0,Math.min(n.length-1,a+i))];return void(r!==t&&(e.preventDefault(),r.focus()))}if(!["ArrowDown","ArrowUp","Home","End"].includes(e.key))return;const s=t.hasAttribute("data-roving-item")?t:t.closest("[data-row]")?.querySelector("[data-roving-item]");if(!s)return;const n=(()=>{const e=r.current;return e?Array.from(e.querySelectorAll("[data-roving-item]")).filter(e=>null!==e.offsetParent):[]})();if(0===n.length)return;const a=n.indexOf(s);let i;if("Home"===e.key)i=0;else if("End"===e.key)i=n.length-1;else if(-1===a)i="ArrowDown"===e.key?0:n.length-1;else{i=(a+("ArrowDown"===e.key?1:-1)+n.length)%n.length}e.preventDefault(),n[i].focus(),n[i].scrollIntoView({block:"nearest"})},className:"flex flex-col flex-1 min-h-0",children:[s&&t.jsx("div",{className:"shrink-0",children:s}),t.jsx("div",{onScroll:e=>i(e.currentTarget.scrollTop>2),"data-scrolled":a||void 0,className:"dframe-nav-scroll relative flex flex-col flex-1 min-h-0 overflow-y-auto px-1 pt-1 pb-2 -mx-1 -mt-1",children:n})]})}function tJe(e,t){return{triggerProps:{onKeyDownCapture:s=>{if(!e)if("ArrowDown"===s.key||"ArrowUp"===s.key)s.preventDefault();else if("ArrowRight"===s.key){s.preventDefault(),s.stopPropagation(),t(!0);const e=s.currentTarget;requestAnimationFrame(()=>{const t=e.getAttribute("aria-controls");t&&document.getElementById(t)?.querySelector("[role^='menuitem']")?.focus()})}}},contentProps:{onKeyDown:e=>{"ArrowLeft"===e.key&&(e.preventDefault(),t(!1))}}}}function sJe(e){0===e.buttons&&e.stopPropagation()}function nJe({label:e,tooltipLabel:s,live:n=!1,triggerClassName:a="",children:i}){const r=uN(),o=mN(30);return t.jsx(iE,{delayDuration:500,skipDelayDuration:300,children:t.jsxs(rE,{children:[t.jsx(oE,{asChild:!0,children:t.jsx("span",{role:n?"status":"img","aria-label":e,className:`flex min-h-3.5 min-w-3.5 shrink-0 items-center justify-center ${a}`,onPointerMove:sJe,onPointerEnter:sJe,onMouseMove:sJe,children:i})}),t.jsx(lE,{children:t.jsx(cE,{side:"top",sideOffset:4,className:"pointer-events-none px-2 py-1 text-xs font-normal font-ui leading-tight rounded-md shadow-md text-always-white bg-always-black/80 backdrop-blur break-words z-tooltip",style:r?{zIndex:o}:void 0,children:s??e})})]})})}const aJe=tL({awaitingPermission:{defaultMessage:"Awaiting input",id:"tM90hqjWj0"},awaitingQuestion:{defaultMessage:"Awaiting answer",id:"L+gTSub4gg"},running:{defaultMessage:"Running",id:"nDyaq/M7Oj"},ready:{defaultMessage:"Unread response",id:"74N95hPFV6"},idle:{defaultMessage:"Idle",id:"sNY4nxDm3U"}});function iJe(){return t.jsxs("span",{className:"inline-flex size-3 items-center justify-center gap-[2px] leading-none","aria-hidden":!0,children:[t.jsx("span",{className:"dframe-dot"}),t.jsx("span",{className:"dframe-dot"}),t.jsx("span",{className:"dframe-dot"})]})}const rJe={ChatSimple:14};function oJe({name:e,dot:s}){const n=rJe[e],a="error"===s;return t.jsxs("span",{className:"relative inline-flex",children:[t.jsx($L,{name:e,...void 0!==n?{customSize:n}:{size:"auto"},className:dt("text-text-400",s&&(a?"[mask-image:radial-gradient(circle_at_calc(100%_-_1px)_4px,transparent_6.5px,black_7px)]":"[mask-image:radial-gradient(circle_at_calc(100%_-_1px)_4px,transparent_5px,black_5.5px)]"))}),s&&(a?t.jsx("span",{"aria-hidden":!0,className:"absolute -top-px -right-1",children:t.jsx($L,{name:"Warning",customSize:10,className:uJe})}):t.jsx("span",{"aria-hidden":!0,className:"absolute top-px -right-0.5",children:t.jsx(lJe,{kind:s})}))]})}function lJe({kind:e}){return t.jsx("span",{className:"status-dot","data-kind":e})}const cJe=t.jsx("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",stroke:"hsl(var(--text-400))",strokeWidth:"1.5",strokeLinecap:"round",strokeDasharray:"2 2.5",className:"opacity-50","aria-hidden":"true",children:t.jsx("circle",{cx:"8",cy:"8",r:"5"})});function dJe(){return t.jsx("span",{"aria-hidden":!0,className:"block size-[6px] rounded-full border border-text-400 opacity-50"})}const uJe="text-warning-100 dark:text-warning-000",mJe=t.jsx($L,{name:"Warning",size:"sm",className:uJe});function pJe({errorCategory:e}){const s=JS(),n=LOe(s,e??void 0,{host:"remote host"}),a=n.isKnownCategory?n.title:s.formatMessage({defaultMessage:"Error",id:"KN7zKn8z4F"});return t.jsx(nJe,{live:!0,label:a,children:mJe})}const fJe=t.jsx($L,{name:"Archive",size:"sm",className:"text-text-500 opacity-80"}),gJe="before:absolute before:-inset-y-1 before:-left-[5px] before:-right-1.5 before:content-['']",hJe=tL({markUnread:{defaultMessage:"Mark as unread",id:"vLAPJDu9y6"},markRead:{defaultMessage:"Mark as read",id:"64Hq/+q+KI"}});function CJe({action:s,hitAreaClassName:n="",children:a}){const i=s?.onActivate,r=e.useCallback(e=>{e.stopPropagation(),e.preventDefault(),i?.()},[i]),o=e.useCallback(e=>{"Enter"!==e.key&&" "!==e.key||(e.stopPropagation(),e.preventDefault(),i?.())},[i]);return s?t.jsx("span",{role:"button",tabIndex:-1,"data-row-action":"","aria-label":s.label,className:`relative flex size-[18px] shrink-0 cursor-pointer items-center justify-center rounded-sm ${n} ${zQe}`,onClick:r,onKeyDown:o,onPointerDown:sJe,onDoubleClick:e=>{e.stopPropagation(),e.preventDefault()},onPointerMove:sJe,onMouseMove:sJe,children:a}):t.jsx("span",{className:"flex size-[18px] shrink-0 items-center justify-center",children:a})}function xJe({state:e,awaitingKind:s="permission"}){const n=JS();if("pr"===e)return null;if("error"===e)return t.jsx(pJe,{});if("awaiting"===e)return t.jsx(nJe,{live:!0,label:n.formatMessage("question"===s?aJe.awaitingQuestion:aJe.awaitingPermission),children:t.jsx(lJe,{kind:"awaiting"})});const a={running:t.jsx(lJe,{kind:"running"}),ready:t.jsx(lJe,{kind:"ready"}),idle:cJe}[e];return t.jsx(nJe,{live:"idle"!==e,label:n.formatMessage(aJe[e]),children:a})}const vJe=e.memo(({sessionId:s,liveStatus:n,isDone:a,isUnread:i,hasError:r=!1,errorCategory:o,isScheduledTask:l=!1,hideIdleGlyph:c=!1,enableMarkUnread:d=!1})=>{const u=JS(),m=E8(s),p=function(e){return j8(t=>{const s=t.permissionsBySessionId[e];return!!s?.length&&s.every(e=>"AskUserQuestion"===e.toolName)})}(s),f=bS()&&!l?e=>t.jsx(oJe,{name:"Tasks",dot:e}):null,g=e.useCallback(()=>{!function(e){const{readState:t}=cMe.getState();if(!t)return;const s={...t,sessions:{...t.sessions,[e]:0},explicitUnread:{...t.explicitUnread,[e]:!0}};cMe.setState({readState:s}),uMe(s)}(s)},[s]),h=e.useCallback(()=>{fMe(s)},[s]),C=sMe({kind:"cowork",hasError:r,liveStatus:m?"awaiting":n,hasCompleted:a,isUnread:i,prState:"none"});if(c&&"idle"===C)return null;const x=d&&!l;let v;if("error"===C)v=t.jsx(pJe,{errorCategory:o});else if(x&&"pr"!==C){const e="idle"===C&&a,s="ready"===C?{label:u.formatMessage(hJe.markRead),onActivate:h}:e?{label:u.formatMessage(hJe.markUnread),onActivate:g}:void 0;v=t.jsx(CJe,{action:s,hitAreaClassName:gJe,children:t.jsx(nJe,{live:"idle"!==C,label:e?u.formatMessage(hJe.markUnread):u.formatMessage("awaiting"===C?p?aJe.awaitingQuestion:aJe.awaitingPermission:aJe[C]),tooltipLabel:"ready"===C?u.formatMessage(hJe.markRead):void 0,triggerClassName:s?gJe:void 0,children:{awaiting:f?.("awaiting")??t.jsx(lJe,{kind:"awaiting"}),running:f?.("running")??t.jsx(lJe,{kind:"running"}),ready:f?.("ready")??t.jsx(lJe,{kind:"ready"}),idle:f?.(i?"ready":void 0)??(e?t.jsx(dJe,{}):cJe)}[C]})})}else if("idle"===C&&a)v=t.jsx(nJe,{label:u.formatMessage({defaultMessage:"Done",id:"JXdbo8Vnlw"}),children:f?.(i?"ready":void 0)??t.jsx(dJe,{})});else if(f&&"pr"!==C){const e=f("idle"===C?i?"ready":void 0:C);v="idle"===C?e:t.jsx(nJe,{live:!0,label:u.formatMessage("awaiting"===C?p?aJe.awaitingQuestion:aJe.awaitingPermission:aJe[C]),children:e})}else v=t.jsx(xJe,{state:C,awaitingKind:p?"question":"permission"});return v});function yJe({label:e,prs:s,children:n}){const a=JS();return t.jsxs(TQe.Root,{delay:500,children:[t.jsx(TQe.Trigger,{children:t.jsx("span",{tabIndex:0,role:"img","aria-label":e,className:"flex shrink-0",onPointerMove:sJe,onPointerEnter:sJe,onMouseMove:sJe,onFocus:e=>e.stopPropagation(),children:n})}),t.jsx(TQe.Popup,{side:"right",align:"start",sideOffset:6,children:t.jsx(QL,{className:"contents",children:t.jsx("div",{className:"flex flex-col gap-2 text-xs",children:s.map(e=>{const s=EQe(e.state,e.reviewDecision,e.hasConflict),n=t.jsxs("div",{className:"flex items-center gap-2",title:PQe(a,s,void 0!==e.number?[e.number]:[]),children:[t.jsx(UQe,{state:s,size:12}),t.jsx("span",{className:"truncate",children:e.repo}),void 0!==e.number&&t.jsx("span",{className:"shrink-0 opacity-60",children:`#${e.number}`})]});return e.url?t.jsx("a",{href:e.url,target:"_blank",rel:"noreferrer",className:"hover:opacity-80",onClick:e=>e.stopPropagation(),children:n},`${e.repo}#${e.number}`):t.jsx("div",{children:n},`${e.repo}#${e.number}`)})})})})]})}function bJe({id:t,type:s,repoInfo:n,repoBranches:a,prs:i}){const r=e.useMemo(()=>tfe({repoBranches:a,repoInfo:n,prs:i}),[a,n,i]),o=pfe(r),l=n?.owner&&n.name?`${n.owner}/${n.name}`:void 0,c=Ch(l?`${t}:${l}`:t),d=e.useMemo(()=>{if("remote"===s)return o;const e=i?.filter(e=>!e.dismissed&&!e.inherited);if(e?.length)return mfe(e.map(e=>{const t=e.repo.toLowerCase(),s=e.branch.toLowerCase(),n=o.prs.filter(s=>s.repo.toLowerCase()===t&&s.number===e.prNumber),a=n.find(e=>e.branch.toLowerCase()===s)??n[0],i=IE(e.state);return{repo:a?.repo??e.repo,branch:e.branch,number:e.prNumber,url:e.url,state:"merged"===i?"merged":a?.state??i??"open",reviewDecision:a?.reviewDecision,hasConflict:a?.hasConflict}}));const t=o.prs.filter(e=>"merged"!==e.state&&"closed"!==e.state);return t.length===o.prs.length?o:mfe(t)},[s,i,o]);return{prState:d.hasPr?EQe(d.prState,d.reviewDecision,d.hasConflict):EQe("remote"===s?c?.prState:void 0,void 0,!1),prUrl:d.prUrl??("remote"===s?c?.prUrl:void 0),prNumbers:d.hasPr?d.prs.map(e=>e.number).filter(e=>void 0!==e):"remote"===s&&void 0!==c?.prNumber?[c.prNumber]:[],allBranches:r,aggregated:d}}function kJe({sessionId:e,sessionType:t,repoInfo:s,repoBranches:n,prs:a,liveStatus:i,hasError:r=!1,serverUnread:o,readyAfterPr:l=!1}){const{prState:c,prNumbers:d,allBranches:u,aggregated:m}=bJe({id:e,type:t,repoInfo:s,repoBranches:n,prs:a}),p=Jve(e)||!!o,f="merged"===c||"closed"===c;return{state:sMe({kind:"code",hasError:r,liveStatus:i,hasCompleted:!f&&p,isUnread:!f&&p,prState:c},{readyAfterPr:l}),prState:c,prNumbers:d,allBranches:u,aggregated:m}}vJe.displayName="CoworkStatusGlyph";const wJe=e.memo(e=>{const s=JS(),{sessionId:n,isArchived:a}=e,{state:i,prState:r,prNumbers:o,allBranches:l,aggregated:c}=kJe(e),d=mve(n);if(ES(),a)return t.jsx(nJe,{label:s.formatMessage({defaultMessage:"Archived",id:"0HT+IbyW6O"}),children:fJe});if("pr"===i){const e=PQe(s,r,o),n=t.jsx(UQe,{state:r,size:14});return new Set(l.map(e=>e.repo)).size>1&&c.prs.length>0?t.jsx(yJe,{label:e,prs:c.prs,children:n}):t.jsx(nJe,{label:e,children:n})}return"idle"===i?null:"error"===i?t.jsx(pJe,{errorCategory:d}):t.jsx(xJe,{state:i})});wJe.displayName="CodeStatusGlyph";const MJe={commands:[],plugins:null},_Je=fT()(e=>({bySession:{},setSession:(t,s)=>e(e=>({bySession:{...e.bySession,[t]:{...MJe,...e.bySession[t],...s}}})),clearSession:t=>e(e=>{if(!(t in e.bySession))return e;const{[t]:s,...n}=e.bySession;return{bySession:n}})})),jJe=[];function SJe(e){return _Je(t=>e?t.bySession[e]?.commands??jJe:jJe)}function LJe(e){return _Je(t=>e?t.bySession[e]?.plugins??null:null)}function NJe(e){return _Je(t=>!!e&&void 0!==t.bySession[e])}function IJe(){const t=Ye({source:"coworkExtendedThinkingToggle",surface:"cowork"}),s=null!==Ke(void 0,null,null,"cowork"),n=e.useCallback(()=>{t(s?null:"extended")},[s,t]);return{enabled:s,toggle:n}}function TJe(){const e=y("yukon_silver_thinking"),{enabled:t}=IJe();return e?t:void 0}function AJe(){const t=sl(),{getShared:s,recordShare:n}=Ole(),{mutateAsync:a}=ile();return e.useCallback(async(e,i,r)=>{if(t)return;const o=Ule(r),l=s(e,i);if(l?.contentHash===o)return;const c=await a({filename:nm(i)||"untitled",content:r,operation:"share",anchor:{kind:"synthetic_stub",client_session_ref:e,source_kind:"cowork"}});n(e,i,c,o)},[t,s,n,a])}function EJe(t,s,n){const{remoteStorageEnabled:a}=Lf(),i=sl(),{autoPublishEntries:r}=Ole(),o=AJe(),l=e.useRef(!1),c=e.useRef(new Set),d=e.useRef(new Set),u=e.useRef(new Set),m=e.useMemo(()=>t?r(t):null,[r,t]);e.useEffect(()=>{u.current=new Set,d.current.clear(),l.current=!1},[t]),e.useEffect(()=>{if(!a||i||!t)return;if(!m||0===m.size)return;const e=u.current;for(const t of n){if(e.has(t.id))continue;(D4(t)||"fs_detected"===t.operation)&&"filePath"in t?m.has(t.filePath)&&(e.add(t.id),d.current.add(t.filePath)):e.add(t.id)}},[a,i,t,n,m]),e.useEffect(()=>{if(!a||i)return;if(s)return void(l.current=!0);if(!l.current)return;if(l.current=!1,!t||0===d.current.size)return;const e=Ju?.readLocalFile;if(e)for(const s of Array.from(d.current))c.current.has(s)||(d.current.delete(s),c.current.add(s),(async()=>{try{const n=await e(t,encodeURIComponent(s));if(!n||"base64"===n.encoding)return;await o(t,s,n.content)}catch{}finally{c.current.delete(s)}})())},[a,i,t,s,o])}function RJe(){const t=Ga(),s=ze("yukon_silver_minimum_nest_version","minimum_nest_version",null,Wj),n=y("yukon_silver");return e.useMemo(()=>!!n&&(!!t&&("Claude"!==t.build&&(!!s&&(!(!Ka(t.version)||!Ka(s))&&RS(t.version,s))))),[n,t,s])}const DJe=e.memo(function(){const e=JS(),s=Ga(),n=ze("yukon_silver_minimum_nest_version","minimum_nest_version",null,Wj),a=s?.version??"Unknown",i=n??"latest",r=gs({id:"19hgn2m",intl:e}).trim()||void 0;return t.jsxs("div",{className:"bg-warning-900 border-0.5 border-warning-200 rounded-xl p-4 flex flex-col gap-2 w-full max-w-2xl mx-auto mb-3",children:[t.jsxs("div",{className:"text-base text-text-000",children:[t.jsx("span",{className:"font-semibold",children:t.jsx(hs,{id:"r48v07"})})," ",t.jsx(hs,{id:"1ofvpjm",dangerouslyVisiblePublicValues:{minVersion:i,currentVersion:a}})]}),r&&t.jsx("div",{className:"text-base",children:t.jsx("a",{href:r,target:"_blank",rel:"noopener noreferrer",className:"text-text-000 underline hover:text-text-100",children:t.jsx(hs,{id:"16k3rv9"})})})]})}),HJe=({children:e,className:s})=>t.jsx("div",{className:Dt("flex overflow-x-auto gap-2 p-1 -m-1",s),children:e}),PJe=({children:e,className:s,onClick:n,href:a,isActive:i,disabled:r,size:o="default"})=>{const l=Dt("sm"===o?"font-small px-2 py-1":"font-base px-4 py-1.5 ","rounded-full shrink-0 flex items-center justify-center",r&&"cursor-default",i?"text-text-100 bg-bg-500":r?"text-text-500":"text-text-500 hover:bg-bg-300",s);return r?t.jsx("button",{type:"button",disabled:!0,"aria-pressed":!!i,className:l,children:e}):a?t.jsx(er,{href:a,"aria-current":i?"page":void 0,className:l,children:e}):t.jsx("button",{type:"button",onClick:n,"aria-pressed":!!i,className:l,children:e})};function UJe(){const t=ol(e=>e.selectedFiles),s=ol(e=>e.clearSelectedFiles),n=ol(e=>e.deeplinkEpoch),{setFiles:a}=re(e=>({setFiles:e.setFiles})),i=e.useRef(new Set),r=e.useRef(n);return e.useEffect(()=>{if(r.current===n)return;r.current=n;const e=i.current;e.size>0&&a(t=>t.filter(t=>!t.localPath||!e.has(t.localPath))),i.current=new Set},[n,a]),e.useEffect(()=>{if(0===t.length)return;const e=t.map(e=>({file_kind:Zt.Blob,file_uuid:ua(),file_name:e.split("/").pop()??e,created_at:(new Date).toISOString(),localPath:e}));for(const t of e)t.localPath&&i.current.add(t.localPath);a(t=>[...t,...e]),s()},[t,a,s]),null}const OJe="cowork_remote_update_banner";function FJe(){const e=W("yukon_silver_dramatic_shrimp_min_app_version");return e&&Ka(e)?e:null}function VJe(){const t=function(){const t=m(),s=Ga(),n=Cs("yukon_silver_dramatic_shrimp"),a=FJe();return e.useMemo(()=>!(!n||!a)&&!(!t||!s)&&"ClaudeNest"!==s.build&&!!Ka(s.version)&&RS(s.version,a),[n,a,t,s])}(),s=FJe(),n=s?`cowork-remote-update-banner-dismissed:${s}`:null,[a,i]=e.useState(!0);e.useEffect(()=>{if(n)try{i(null!==localStorage.getItem(n))}catch{i(!1)}},[n]);const r=e.useCallback(()=>{try{n&&localStorage.setItem(n,(new Date).toISOString())}catch{}i(!0)},[n,i]);return e.useMemo(()=>({required:t,visible:t&&!a,dismiss:r}),[t,a,r])}const zJe=e.memo(function({state:s}){const n=JS(),a=ae(),i=aJ(),r=FJe(),o=e.useRef(!1);e.useEffect(()=>{s.visible&&!o.current&&(o.current=!0,a.track({event_key:`claudeai.${OJe}.displayed`}))},[a,s.visible]);const l=e.useCallback(()=>{a.track({event_key:`claudeai.${OJe}.cta_clicked`}),i?(async()=>{const[e,t]=await Promise.all([Promise.resolve(Xa?.getRunningLocalSessions?.()),Promise.resolve(Xa?.getRunningLocalSessionCount?.())]);Math.max(t??0,e?.length??0)>0?Xa?.restartToUpdateWhenIdle?.():Xa?.restartToUpdate?.()})():Xa?.checkForUpdates?.()},[a,i]),c=e.useCallback(()=>{a.track({event_key:`claudeai.${OJe}.dismissed`}),s.dismiss()},[a,s]);return s.visible&&r?t.jsxs("div",{className:"bg-alpha-1 border-0.5 border-strong rounded-2xl flex w-full items-center p-3",children:[t.jsx("div",{className:"text-primary flex shrink-0 items-center justify-center",children:t.jsx(mJ,{def:NA,className:"size-16"})}),t.jsxs("div",{className:"flex min-w-0 flex-1 items-center gap-3 pl-3 pr-1",children:[t.jsx("p",{className:"text-primary text-body min-w-0 flex-1 py-1.5",children:t.jsx(hs,{id:"1h7aif1",dangerouslyVisiblePublicValues:{minVersion:r}})}),i?t.jsx(rN,{size:"sm",onClick:l,className:"shrink-0",children:t.jsx(XS,{defaultMessage:"Update",id:"BWpuKlRSA1"})}):null]}),t.jsx(rN,{variant:"ghost",size:"sm",iconOnly:!0,icon:"X","aria-label":n.formatMessage({defaultMessage:"Dismiss",id:"TDaF6JVgG6"}),onClick:c,className:"shrink-0"})]}):null}),ZJe=e.memo(({className:e})=>t.jsx("span",{className:dt("flex h-2 w-2 flex-shrink-0 items-center justify-center",e),"aria-hidden":"true",children:t.jsx("span",{className:"h-2 w-2 animate-pulse-dot motion-reduce:animate-none rounded-full bg-border-400"})}));ZJe.displayName="PulsingDot";const BJe=e.memo(({isRunning:e,sessionId:s,isUnread:n})=>E8(s)?t.jsx("span",{className:"h-2 w-2 flex-shrink-0 rounded-full bg-accent-100",role:"status","aria-label":"Needs attention"}):e?t.jsx("span",{role:"status","aria-label":"Session running",children:t.jsx(ZJe,{})}):n?t.jsx("span",{className:"h-2 w-2 flex-shrink-0 rounded-full bg-accent-100",role:"status","aria-label":"Unread activity"}):null);BJe.displayName="LocalSessionStatusIndicator";const qJe=e.memo(({hasPendingPermissions:e,isRunning:s,isUnread:n,hasError:a=!1,hasInputRequest:i=!1,compact:r=!1})=>{const o=JS(),{ariaLabel:l,glyph:c}=a?{ariaLabel:o.formatMessage({defaultMessage:"Task failed",id:"Z+b3Tn10sc"}),glyph:t.jsx($L,{name:"X",size:"md",className:"text-danger-000"})}:e&&i?{ariaLabel:o.formatMessage({defaultMessage:"Needs attention",id:"J8cAGGisOh"}),glyph:t.jsx($L,{name:"Help",size:"md",className:"text-warning"})}:e?{ariaLabel:o.formatMessage({defaultMessage:"Permissions needed",id:"sj1qWyUHZh"}),glyph:t.jsx($L,{name:"Hand",size:"md",className:"text-warning"})}:s?{ariaLabel:o.formatMessage({defaultMessage:"Running",id:"nDyaq/M7Oj"}),glyph:t.jsx(NP,{})}:n?{ariaLabel:o.formatMessage({defaultMessage:"Unread activity",id:"AbKYd6e6lG"}),glyph:t.jsx("span",{className:"status-dot","data-kind":"ready"})}:{ariaLabel:o.formatMessage({defaultMessage:"No new activity",id:"J4QXXuiCoV"}),glyph:t.jsx("span",{className:"status-dot border border-border-200 bg-transparent"})};return t.jsx("div",{className:r?"size-7 flex items-center justify-center":"size-9 flex items-center justify-center",role:"status","aria-label":l,children:c})});qJe.displayName="SessionStatusIcon";const WJe=e.lazy(()=>a(()=>import("./c75724292-DV9zSlZN.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(e=>({default:e.InlineToolApproval}))),$Je=e.memo(({session:s,isUnread:n,containerRef:a,compact:i=!1})=>{const{pending:r,hasPending:o,hasOnlyInputRequests:l,canShowReviewPopover:c}=P8(s.sessionId),d=RC(s,o),u="awaiting"===d,{track:m}=ae(),p=Vb(),f=DS(),g=`${jl}/${s.sessionId}`,h=s.title??"Local task",C=e.useMemo(()=>{const e=s.lastActivityAt??s.createdAt??0;return e?Math.round((e-Date.now())/1e3):0},[s.lastActivityAt,s.createdAt]),x=xMe(s),v=x&&n,y=s.isStarred&&"idle"===d&&!s.error&&!v,b=e.useCallback(()=>{fMe(s.sessionId),m({event_key:"claudeai.cowork.session.opened",session_id:s.sessionId,source:"task_overview",has_pending_permissions:u,is_running:s.isRunning,is_unread:n})},[s.sessionId,s.isRunning,u,n,m]);return t.jsxs("div",{ref:a,className:dt("relative flex items-center px-2",i?"gap-2 py-2":"gap-3 py-3",f?"hover:bg-alpha-1 hover:rounded-lg":"transition-colors hover:bg-bg-200 hover:rounded-lg","group"),children:[t.jsx(er,{href:g,onClick:b,"aria-label":h,className:"absolute inset-0 rounded-lg"}),t.jsxs("div",{className:dt("flex flex-1 min-w-0 pointer-events-none",i?"gap-2":"gap-3",f&&!i?"items-start":"items-center"),children:[t.jsx("div",{className:dt("flex-shrink-0 flex justify-center",f&&!i&&"mt-0.5",i||p?"w-7":"w-9"),children:p?y?t.jsx(pU,{size:20,className:f?"text-muted":"text-text-400"}):t.jsx(vJe,{sessionId:s.sessionId,liveStatus:d,isDone:x,isUnread:n,hasError:!!s.error,errorCategory:s.errorCategory}):t.jsx(qJe,{hasPendingPermissions:u,isRunning:s.isRunning,isUnread:n,hasError:!!s.error,hasInputRequest:l,compact:i})}),t.jsxs("div",{className:"flex-1 min-w-0 flex flex-col gap-0.5",children:[t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx("span",{className:dt("min-w-0 truncate",f?"text-body":"text-sm",f?n?"text-primary":"text-secondary":n?"text-text-100":"text-text-200"),children:h}),!p&&s.isStarred&&t.jsx(HS,{size:12,className:dt("flex-shrink-0",f?"text-muted":"text-text-400")}),s.scheduledTaskId&&t.jsx(YP,{size:12,className:dt("flex-shrink-0",f?"text-muted":"text-text-400")}),!u&&!s.isRunning&&t.jsx("div",{className:"flex-shrink-0 w-3 flex items-center justify-center",children:t.jsx(BJe,{isRunning:s.isRunning,sessionId:s.sessionId})})]}),!i&&t.jsxs("span",{className:f?"text-caption text-muted":"text-xs text-text-400",children:[u&&(l?t.jsx(XS,{defaultMessage:"Needs attention",id:"J8cAGGisOh"}):t.jsx(XS,{defaultMessage:"Permissions needed",id:"sj1qWyUHZh"})),t.jsx("span",{className:dt("first-letter:capitalize",u&&(f?"before:content-['\xb7'] before:mx-1 before:text-muted before:opacity-50":"before:content-['\xb7'] before:mx-1 before:text-text-500/50")),children:t.jsx(iL,{value:C,numeric:"auto",updateIntervalInSeconds:60})})]})]})]}),u?c?t.jsx("div",{className:dt("relative z-10",i&&"-my-0.5"),children:t.jsx(WM,{side:"left",align:"start",sideOffset:8,className:"!max-w-[30rem] !p-0",closeButton:"none",trigger:t.jsx(rN,{variant:"secondary",size:f?"xs":"sm",children:t.jsx(XS,{defaultMessage:"Review",id:"R+J5oxt1Fc"})}),children:t.jsx(e.Suspense,{fallback:t.jsxs("div",{className:"w-[30rem] p-4 flex flex-col gap-3",children:[t.jsx(Wt,{height:20,width:"60%",rounded:"md"}),t.jsx(Wt,{height:64,rounded:"lg"}),t.jsx(Wt,{height:36,width:"40%",rounded:"md"})]}),children:t.jsx(WJe,{sessionId:s.sessionId,permissions:r,isScheduledTask:!!s.scheduledTaskId,source:"task_overview"})})})}):t.jsx(rN,{variant:"secondary",size:f?"xs":"sm",className:dt("relative z-10 pointer-events-none",i&&"-my-0.5"),children:t.jsx(XS,{defaultMessage:"Review",id:"R+J5oxt1Fc"})}):i?t.jsx("span",{className:"pointer-events-none shrink-0 text-caption text-muted opacity-0 first-letter:capitalize group-hover:opacity-100 group-focus-within:opacity-100",children:t.jsx(iL,{value:C,numeric:"auto",updateIntervalInSeconds:60})}):f?null:t.jsx(nP,{size:16,className:"hidden group-hover:block flex-shrink-0 text-text-500 pointer-events-none"})]})});$Je.displayName="TaskOverviewRow";function GJe({dateStr:e}){const s=new Date(e),n=new Date,a=s.toLocaleTimeString(void 0,{hour:"numeric",minute:"2-digit"});if(s.getFullYear()===n.getFullYear()&&s.getMonth()===n.getMonth()&&s.getDate()===n.getDate())return t.jsx(XS,{defaultMessage:"Today at {time}",id:"TYU7X2haE2",values:{time:a}});const i=new Date(n);i.setDate(i.getDate()+1);if(s.getFullYear()===i.getFullYear()&&s.getMonth()===i.getMonth()&&s.getDate()===i.getDate())return t.jsx(XS,{defaultMessage:"Tomorrow at {time}",id:"2DwtB0fJQX",values:{time:a}});const r=s.toLocaleDateString(void 0,{weekday:"short",month:"short",day:"numeric"});return t.jsx(XS,{defaultMessage:"{date} at {time}",id:"QGnOZUO68H",values:{date:r,time:a}})}function KJe({firstTaskRef:s,emptyFallback:n=null,afterActive:a=null}={}){const i=DS(),r=Vb(),o=NS(),l=!r||o,c=mT(),d=pT(),u=vMe(),[m,p]=e.useState(!1),[f,g]=e.useState(!1),h=_a(),{scheduledTasks:C}=mI(h.enabled),x=e.useMemo(()=>C.filter(e=>e.cronExpression).sort((e,t)=>{if(e.enabled!==t.enabled)return e.enabled?-1:1;return(e.nextRunAt?new Date(e.nextRunAt).getTime():1/0)-(t.nextRunAt?new Date(t.nextRunAt).getTime():1/0)}),[C]),v=e.useRef(new Set),y=H8(),b=e.useMemo(()=>function(e,t,s,n=!1){const a=e=>s.has(e.sessionId)?0:!e.isRunning&&void 0!==e.lastActivityAt&&CMe(e,t)?1:2,i=e=>e.lastActivityAt??e.createdAt??1/0;return[...e].sort((e,t)=>n?a(e)-a(t)||i(t)-i(e):a(e)-a(t))}(function(e,t,s,n,a=!0){const i=t?.initializedAt??0;return e.filter(e=>{if(e.isStarred&&a)return!0;if(n.has(e.sessionId))return!0;const r=e.lastActivityAt??e.createdAt??0,o=0===t?.sessions[e.sessionId];return!(r<=i&&!o)&&(CMe(e,t)||e.isRunning||s.has(e.sessionId))})}(d,u,v.current,y,l),u,y,i),[d,u,y,l,i]);e.useEffect(()=>{v.current=new Set(b.map(e=>e.sessionId))},[b]);const k=e.useMemo(()=>b.some(e=>y.has(e.sessionId)),[b,y]),w=e.useMemo(()=>l&&b.some(e=>e.isStarred),[b,l]),M=e.useMemo(()=>k||b.some(e=>e.isRunning),[b,k]),_=e.useCallback(()=>{p(e=>!e)},[]),j=e.useCallback(()=>{g(e=>!e)},[]),S=e.useCallback(()=>{v.current=new Set,function(){const{readState:e}=cMe.getState();if(!e)return;const t={sessions:{},initializedAt:Date.now()};cMe.setState({readState:t}),uMe(t)}()},[]),L=e.useMemo(()=>b.some(e=>CMe(e,u)),[b,u]);if(!c)return null;if(0===b.length&&0===x.length)return t.jsxs(t.Fragment,{children:[n,a]});const N=m?b:b.slice(0,5),I=b.length>5,T=f?x:x.slice(0,3),A=x.length>3;return t.jsxs("div",{className:"w-full max-w-2xl mt-4 space-y-8",children:[b.length>0&&t.jsxs("section",{className:i?"group/active":void 0,children:[t.jsxs("div",{className:"flex items-center justify-between mb-2 px-2",children:[t.jsx("h3",{className:i?"text-caption text-muted":"font-small text-text-500",children:i||!r?t.jsx(XS,{defaultMessage:"Active tasks",id:"wGcWboPWPh"}):l?w&&!M?t.jsx(XS,{defaultMessage:"Pinned",id:"fWZYP5U4xZ"}):!w&&M?t.jsx(XS,{defaultMessage:"Active",id:"3a5wL8wo40"}):t.jsx(XS,{defaultMessage:"Pinned or active",id:"Lv3Tf/QwaO"}):t.jsx(XS,{defaultMessage:"Active",id:"3a5wL8wo40"})}),L&&t.jsx("button",{onClick:S,className:i?"text-caption text-muted transition-[color,opacity] hover:text-secondary [@media(hover:hover)]:opacity-0 [@media(hover:hover)]:focus-visible:opacity-100 [@media(hover:hover)]:group-hover/active:opacity-100":"text-xs text-text-500 hover:text-text-200 transition-colors",children:i?t.jsx(XS,{defaultMessage:"Clear",id:"/GCoTAAjMN"}):t.jsx(XS,{defaultMessage:"Clear active",id:"0mQ4LBF4e8"})})]}),t.jsx("div",{className:"flex flex-col [&>*:hover+hr]:opacity-0 [&>hr:has(+*:hover)]:opacity-0",children:N.map((n,a)=>t.jsxs(e.Fragment,{children:[t.jsx($Je,{session:n,isUnread:CMe(n,u),containerRef:0===a?s:void 0}),a<N.length-1&&t.jsx("hr",{className:"border-t-0.5 border-border-300 mx-2 transition-opacity"})]},n.sessionId))}),I&&t.jsx("button",{onClick:_,className:i?"px-2 pt-2 pb-4 text-caption text-muted hover:text-primary transition":"px-2 pt-2 pb-4 text-xs text-text-500/80 hover:text-text-100 transition",children:m?t.jsx(XS,{defaultMessage:"Show less",id:"qyJtWyZ0yt"}):t.jsx(XS,{defaultMessage:"Show more",id:"aWpBzjCXKS"})})]}),b.length>0&&a,x.length>0&&t.jsxs("section",{children:[t.jsx("div",{className:"flex items-center gap-2 mb-2 px-2",children:t.jsx("h3",{className:i?"text-caption text-secondary":"font-small text-text-200",children:t.jsx(XS,{defaultMessage:"Scheduled",id:"cXAlMRerxW"})})}),t.jsx("div",{className:"flex flex-col [&>*:hover+hr]:opacity-0 [&>hr:has(+*:hover)]:opacity-0",children:T.map((s,n)=>t.jsxs(e.Fragment,{children:[t.jsxs(er,{href:`${Dm}/${encodeURIComponent(s.id)}`,className:dt("flex items-center gap-3 px-2 py-3",i?"hover:bg-alpha-1 hover:rounded-lg":"transition-colors hover:bg-bg-200 hover:rounded-lg","group"),children:[t.jsx("div",{className:"flex-shrink-0 w-7 flex justify-center",children:t.jsx("div",{className:dt("w-7 h-7 rounded-full flex items-center justify-center",i?"bg-alpha-2":"bg-bg-300"),children:s.enabled?t.jsx(YP,{size:20,className:i?"text-muted":"text-text-500"}):t.jsx(mU,{size:20,className:i?"text-muted":"text-text-500"})})}),t.jsxs("div",{className:"flex-1 min-w-0 flex flex-col gap-0.5",children:[t.jsx("span",{className:dt("min-w-0 truncate",i?"text-body text-secondary":"text-sm text-text-200"),children:s.displayName??im(s.id)}),t.jsx("span",{className:i?"text-caption text-muted":"text-xs text-text-400",children:s.nextRunAt?t.jsx(GJe,{dateStr:s.nextRunAt}):null})]}),t.jsx(nP,{size:16,className:dt("hidden group-hover:block flex-shrink-0",i?"text-muted":"text-text-500")})]}),n<T.length-1&&t.jsx("hr",{className:"border-t-0.5 border-border-300 mx-2 transition-opacity"})]},s.id))}),A&&t.jsx("button",{onClick:j,className:i?"px-2 pt-2 pb-4 text-caption text-muted hover:text-primary transition":"px-2 pt-2 pb-4 text-xs text-text-500/80 hover:text-text-100 transition",children:f?t.jsx(XS,{defaultMessage:"Show less",id:"qyJtWyZ0yt"}):t.jsx(XS,{defaultMessage:"Show more",id:"aWpBzjCXKS"})})]})]})}function YJe({isOpen:e,onClose:s,title:n,children:a,actions:i,modalSize:r="md",className:o,headingVariant:l="default",hasCloseButton:c=!1,icon:d}){const u="heading"===l;return t.jsx(lN.Root,{open:e,onOpenChange:e=>!e&&s(),children:t.jsxs(lN.Popup,{size:{sm:"sm",md:"sm",lg:"md",xl:"lg"}[r],className:o,children:[d?t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsx("div",{children:d}),c&&t.jsx(lN.CloseButton,{className:"-mr-1 -mt-1 self-start"})]}),t.jsx(lN.Title,{className:"mt-4 "+(u?"font-serif text-2xl font-medium":"font-ui text-xl font-medium"),children:n})]}):t.jsxs("div",{className:"flex items-center justify-between gap-1",children:[t.jsx(lN.Title,{className:u?"font-serif text-2xl font-medium":"font-ui text-xl font-medium",style:u?void 0:{transform:"translateY(-1px)"},children:n}),c&&t.jsx(lN.CloseButton,{className:"-mr-1 -mt-1 self-start"})]}),a&&t.jsx("div",{className:i?"mb-6 mt-3":"mt-3",children:a}),i&&t.jsx(lN.Footer,{children:i})]})})}function QJe({onNext:s,currentLimit:n,isPending:a=!1,isSetupFlow:i=!1,isPureUsageBased:r=!1,contractCapCents:o,hideDescription:l=!1}){const c=JS(),d=Yv(),u=xe(),m=hJ(),p=Cs("admin_usage_cobalt"),{data:f}=Ii(),{data:g}=ri(),{data:h}=PS({billingInterval:US.YEARLY},{enabled:d}),C=f?.currency||g?.currency||h?.currency||"USD",[x,v]=e.useState("number"==typeof n?n/100:2e3),[y,b]=e.useState(null),k=p?o:void 0,w=void 0!==k&&Math.round(100*x)>k,M={target:u?c.formatMessage({defaultMessage:"your org",id:"jKcFzGm1P7"}):c.formatMessage({defaultMessage:"you",id:"Jjrc4PBO4e"})};return t.jsxs("div",{className:"flex flex-col gap-6",children:[!l&&t.jsx("p",{className:"text-text-100 text-sm",children:r?t.jsx(XS,{defaultMessage:"You can set a maximum amount {target} can spend on Claude usage per month.",id:"BaR20Zn7Oq",values:M}):m?t.jsx(XS,{defaultMessage:"You can set a maximum amount {target} can spend on extra usage per month.",id:"52LXG0+owQ",values:M}):t.jsx(XS,{defaultMessage:"Set a monthly limit for how much {target} can spend on usage credits.",id:"HBcJPD/Lqp",values:M})}),t.jsxs("div",{children:[t.jsx("input",{type:"text",className:"w-full px-3 py-2 bg-bg-000 border border-border-300 rounded-lg text-text-100 focus:outline-none focus:ring-2 focus:ring-bg-500 focus:border-text-000",value:(_=x,lL(100*_,C,{preferWholeNumber:!0,locale:"en-US"})),onChange:e=>{const t=(e=>{const t=parseFloat(e.replace(/[^0-9.]/g,""));return isNaN(t)?0:t})(e.target.value);v(t)}}),t.jsx("p",{className:"text-xs mt-3 "+(0===x?"text-danger-000":"text-text-300"),children:0===x?t.jsx(XS,{defaultMessage:"Setting a limit to $0 effectively disables additional spend",id:"B19r4H7Udc"}):t.jsx(XS,{defaultMessage:"This spend limit goes into effect immediately",id:"OFSQyzI9+b"})}),void 0!==k&&t.jsx("p",{id:"contract-cap-helper",className:"text-xs mt-2 "+(w?"text-danger-000":"text-text-300"),children:t.jsx(hs,{id:"1h4io5p",dangerouslyVisiblePublicValues:{cap:lL(k,C,{preferWholeNumber:!0,locale:"en-US"})}})})]}),t.jsxs(Eu,{children:[void 0===k?t.jsx(nk,{variant:"secondary",onClick:()=>{b("unlimited"),s("unlimited")},loading:a&&"unlimited"===y,disabled:a,children:i?t.jsx(XS,{defaultMessage:"Skip",id:"/4tOwTiCH6"}):t.jsx(XS,{defaultMessage:"Set to unlimited",id:"nDe1hLMIrc"})}):null,t.jsx(nk,{variant:"primary",onClick:()=>{b("limit"),s(x)},loading:a&&"limit"===y,disabled:x<0||a||w,"aria-describedby":w?"contract-cap-helper":void 0,children:t.jsx(XS,{defaultMessage:"Set spend limit",id:"v3CYBVarjD"})})]})]});var _}function JJe(){return t.jsx(XS,{id:"0MRQfTjMgD",defaultMessage:"Thanks for trying the Pro plan"})}function XJe(){return t.jsxs("div",{className:"rounded-2xl border border-border-300 p-5",children:[t.jsx("p",{className:"text-text-200 mb-4",children:t.jsx(XS,{id:"8/s2zJhdMh",defaultMessage:"Without Pro, you\u2019ll lose access to these advanced features:"})}),t.jsxs("div",{className:"flex flex-col items-start gap-2 self-stretch",children:[t.jsxs("div",{className:"flex items-center gap-2 self-stretch",children:[t.jsx("div",{className:"w-5 h-5 flex-shrink-0 text-text-300",children:t.jsx(gU,{})}),t.jsx("span",{className:"text-text-200",children:t.jsx(XS,{id:"TCanJ5xXAc",defaultMessage:"Research in real-time"})})]}),t.jsxs("div",{className:"flex items-center gap-2 self-stretch",children:[t.jsx("div",{className:"w-5 h-5 flex-shrink-0 text-text-300",children:t.jsx(is,{})}),t.jsx("span",{className:"text-text-200",children:t.jsx(XS,{id:"gcQUk+viso",defaultMessage:"Unlimited Projects"})})]}),t.jsxs("div",{className:"flex items-center gap-2 self-stretch",children:[t.jsx("div",{className:"w-5 h-5 flex-shrink-0 text-text-300",children:t.jsx(nH,{size:20})}),t.jsx("span",{className:"text-text-200",children:t.jsx(XS,{id:"at6vFGB7KL",defaultMessage:"Google and MCP integrations"})})]}),t.jsxs("div",{className:"flex items-center gap-2 self-stretch",children:[t.jsx("div",{className:"w-5 h-5 flex-shrink-0 text-text-300",children:t.jsx(nD,{size:20})}),t.jsx("span",{className:"text-text-200",children:t.jsx(XS,{id:"Gohvo7uUA4",defaultMessage:"Code in the terminal with Claude Code"})})]}),t.jsxs("div",{className:"flex items-center gap-2 self-stretch",children:[t.jsx("div",{className:"w-5 h-5 flex-shrink-0 text-text-300",children:t.jsx(AA,{})}),t.jsx("span",{className:"text-text-200",children:t.jsx(XS,{id:"/7yQeRw73i",defaultMessage:"More messages than Free"})})]}),t.jsxs("div",{className:"flex items-center gap-2 self-stretch",children:[t.jsx("div",{className:"w-5 h-5 flex-shrink-0 text-text-300",children:t.jsx(aH,{size:20})}),t.jsx("span",{className:"text-text-200",children:t.jsx(XS,{id:"PmfH1Lq1JZ",defaultMessage:"All Claude Models"})})]})]})]})}function eXe(){return t.jsxs("div",{className:"mb-4 mt-4 ml-4 mr-4",children:[t.jsx("p",{className:"text-text-100 mb-2",children:t.jsx(XS,{id:"jr/8PlsiEP",defaultMessage:"What happens next:"})}),t.jsxs("div",{className:"space-y-2 ml-3",children:[t.jsxs("div",{className:"flex items-start space-x-2",children:[t.jsx("div",{className:"w-1.5 h-1.5 rounded-full bg-text-100 mt-2.5 flex-shrink-0"}),t.jsx("span",{className:"font-medium text-text-100",children:t.jsx(XS,{id:"niC6Ubv3eQ",defaultMessage:"Choose a plan"})}),t.jsx("span",{className:"text-text-100 ml-1",children:t.jsx(XS,{id:"okJJ6Q7c7E",defaultMessage:"to keep the features you have"})})]}),t.jsxs("div",{className:"flex items-start space-x-2",children:[t.jsx("div",{className:"w-1.5 h-1.5 rounded-full bg-text-100 mt-2.5 flex-shrink-0"}),t.jsx("span",{className:"font-medium text-text-100",children:t.jsx(XS,{id:"smbQvpBzeR",defaultMessage:"Revert to Free"})}),t.jsx("span",{className:"text-text-100 ml-1",children:t.jsx(XS,{id:"6QUeO2c2wV",defaultMessage:"where some features will be unavailable"})})]})]})]})}function tXe(){const{mutate:e,isPending:s}=OS();return t.jsxs(Eu,{children:[t.jsx(nk,{variant:"primary",onClick:()=>{e(void 0),window.location.href="/upgrade"},size:"lg",children:t.jsx(XS,{id:"niC6Ubv3eQ",defaultMessage:"Choose a plan"})}),t.jsx(nk,{variant:"secondary",size:"lg",onClick:()=>e(void 0),loading:s,children:t.jsx(XS,{id:"smbQvpBzeR",defaultMessage:"Revert to Free"})})]})}const sXe=Object.freeze(Object.defineProperty({__proto__:null,TrialEndedModal:function({isOpen:e}){return t.jsx(gt,{isOpen:e,onClose:()=>{},modalSize:"2lg",hasCloseButton:!1,title:t.jsx("span",{className:"text-2xl font-medium",children:t.jsx(JJe,{})}),className:"md:!p-8",children:t.jsxs("div",{className:"flex w-full flex-col mt-6",children:[t.jsx(XJe,{}),t.jsx(eXe,{}),t.jsx(tXe,{})]})})}},Symbol.toStringTag,{value:"Module"}));
/**
 * Copyright (c) 2014-2024 The xterm.js authors. All rights reserved.
 * @license MIT
 *
 * Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)
 * @license MIT
 *
 * Originally forked from (with the author's permission):
 *   Fabrice Bellard's javascript vt100 for jslinux:
 *   http://bellard.org/jslinux/
 *   Copyright (c) 2011 Fabrice Bellard
 */const nXe=Object.freeze(Object.defineProperty({__proto__:null,FitAddon:class{activate(e){this._terminal=e}dispose(){}fit(){let e=this.proposeDimensions();if(!e||!this._terminal||isNaN(e.cols)||isNaN(e.rows))return;let t=this._terminal._core;(this._terminal.rows!==e.rows||this._terminal.cols!==e.cols)&&(t._renderService.clear(),this._terminal.resize(e.cols,e.rows))}proposeDimensions(){if(!this._terminal||!this._terminal.element||!this._terminal.element.parentElement)return;let e=this._terminal._core._renderService.dimensions;if(0===e.css.cell.width||0===e.css.cell.height)return;let t=0===this._terminal.options.scrollback?0:this._terminal.options.overviewRuler?.width||14,s=window.getComputedStyle(this._terminal.element.parentElement),n=parseInt(s.getPropertyValue("height")),a=Math.max(0,parseInt(s.getPropertyValue("width"))),i=window.getComputedStyle(this._terminal.element),r=n-(parseInt(i.getPropertyValue("padding-top"))+parseInt(i.getPropertyValue("padding-bottom"))),o=a-(parseInt(i.getPropertyValue("padding-right"))+parseInt(i.getPropertyValue("padding-left")))-t;return{cols:Math.max(2,Math.floor(o/e.css.cell.width)),rows:Math.max(1,Math.floor(r/e.css.cell.height))}}}},Symbol.toStringTag,{value:"Module"}));export{$Ee as $,YJ as A,xQ as B,jre as C,GJ as D,Iz as E,HQ as F,eOe as G,FQ as H,YQ as I,iEe as J,jKe as K,OQ as L,SKe as M,yKe as N,yOe as O,KLe as P,t5 as Q,X2 as R,_Ke as S,$Ye as T,D2 as U,H2 as V,DKe as W,aQe as X,rke as Y,oke as Z,VAe as _,OG as a,Zre as a$,GEe as a0,yQe as a1,qYe as a2,eU as a3,QP as a4,mU as a5,sG as a6,iG as a7,rG as a8,YJe as a9,hG as aA,dce as aB,Ere as aC,gde as aD,fU as aE,a3 as aF,oU as aG,Ute as aH,sOe as aI,mOe as aJ,Zpe as aK,Bpe as aL,G3 as aM,One as aN,ane as aO,Hne as aP,Ise as aQ,jse as aR,EP as aS,$se as aT,_ye as aU,Rye as aV,Dye as aW,Hye as aX,tTe as aY,MP as aZ,$qe as a_,fJ as aa,O5 as ab,iTe as ac,FVe as ad,zVe as ae,ZVe as af,EVe as ag,RVe as ah,GQ as ai,PQ as aj,DRe as ak,KP as al,Ide as am,Ebe as an,wHe as ao,bHe as ap,vHe as aq,Bte as ar,VKe as as,FJ as at,hJ as au,QYe as av,DVe as aw,pK as ax,yG as ay,gG as az,kG as b,MB as b$,HJe as b0,PJe as b1,NJe as b2,SJe as b3,NUe as b4,JWe as b5,e4 as b6,cMe as b7,sQe as b8,CJ as b9,s$e as bA,eYe as bB,bGe as bC,kGe as bD,LGe as bE,xUe as bF,_U as bG,QJe as bH,tBe as bI,OMe as bJ,zMe as bK,HMe as bL,DMe as bM,GTe as bN,_q as bO,FMe as bP,pBe as bQ,r_e as bR,o_e as bS,Ile as bT,Tle as bU,VUe as bV,IFe as bW,JZe as bX,NZe as bY,aUe as bZ,xB as b_,GYe as ba,t$e as bb,KKe as bc,QKe as bd,YKe as be,GKe as bf,zAe as bg,Tqe as bh,mRe as bi,zP as bj,Dwe as bk,bge as bl,ybe as bm,nwe as bn,iwe as bo,mwe as bp,gye as bq,xwe as br,swe as bs,Xke as bt,lwe as bu,owe as bv,Nwe as bw,hye as bx,x1 as by,v1 as bz,jQ as c,_Ue as c$,kB as c0,F0 as c1,nG as c2,aG as c3,Xle as c4,c3 as c5,fK as c6,LZe as c7,zRe as c8,BRe as c9,lQe as cA,Lse as cB,Gse as cC,c0 as cD,MUe as cE,IUe as cF,PYe as cG,fle as cH,AUe as cI,ple as cJ,gle as cK,CVe as cL,xVe as cM,Mle as cN,xoe as cO,yoe as cP,qpe as cQ,Wpe as cR,aO as cS,Vze as cT,tse as cU,sse as cV,fB as cW,hB as cX,gB as cY,SW as cZ,qHe as c_,H9 as ca,TUe as cb,nOe as cc,W5 as cd,u1 as ce,p1 as cf,nEe as cg,f1 as ch,q5 as ci,RJe as cj,cJ as ck,VJe as cl,DJe as cm,zJe as cn,DFe as co,G0 as cp,_se as cq,lEe as cr,Sne as cs,TJe as ct,Tue as cu,aEe as cv,cEe as cw,FFe as cx,l9 as cy,pPe as cz,wG as d,FV as d$,VJ as d0,LUe as d1,cqe as d2,dOe as d3,cOe as d4,uUe as d5,XUe as d6,jUe as d7,bB as d8,z$e as d9,NAe as dA,LAe as dB,Oie as dC,yie as dD,lie as dE,ZEe as dF,cie as dG,q2 as dH,B2 as dI,P2 as dJ,z2 as dK,Mme as dL,FB as dM,WP as dN,LJe as dO,_Je as dP,tU as dQ,hVe as dR,dAe as dS,DBe as dT,Pze as dU,Kle as dV,UWe as dW,ANe as dX,NHe as dY,sF as dZ,tF as d_,Z$e as da,B$e as db,W$e as dc,$$e as dd,RG as de,DG as df,HG as dg,KRe as dh,_Pe as di,lU as dj,P9 as dk,P$e as dl,eGe as dm,Q$e as dn,UUe as dp,X$e as dq,J$e as dr,YP as ds,jB as dt,SB as du,vRe as dv,O2 as dw,vie as dx,kAe as dy,jAe as dz,IG as e,IHe as e$,gF as e0,sz as e1,tV as e2,WV as e3,ZV as e4,Kpe as e5,afe as e6,Gwe as e7,Ywe as e8,$we as e9,WYe as eA,dke as eB,uke as eC,wye as eD,lke as eE,cke as eF,Rse as eG,sDe as eH,aDe as eI,dDe as eJ,oDe as eK,eDe as eL,iDe as eM,lDe as eN,sTe as eO,nTe as eP,OP as eQ,aU as eR,uU as eS,GP as eT,lB as eU,iB as eV,oB as eW,uoe as eX,eBe as eY,EZe as eZ,pU as e_,Kwe as ea,Xwe as eb,Qwe as ec,bz as ed,YF as ee,nz as ef,uF as eg,uz as eh,lz as ei,xz as ej,zO as ek,eMe as el,cve as em,Fwe as en,Wwe as eo,Jwe as ep,tMe as eq,Ype as er,Jfe as es,cle as et,Ore as eu,Pre as ev,Dre as ew,qX as ex,cX as ey,kX as ez,RQ as f,gBe as f$,OJ as f0,EJ as f1,wFe as f2,THe as f3,Lne as f4,sYe as f5,XWe as f6,QWe as f7,FP as f8,lTe as f9,ide as fA,cde as fB,ode as fC,nde as fD,sde as fE,jce as fF,zze as fG,Uze as fH,Oze as fI,Fze as fJ,BFe as fK,tVe as fL,nVe as fM,sVe as fN,D4 as fO,CMe as fP,YZe as fQ,Nce as fR,ZFe as fS,LQe as fT,Dse as fU,Y4 as fV,Use as fW,Coe as fX,LP as fY,bJe as fZ,s_e as f_,QZe as fa,X0 as fb,vJe as fc,bU as fd,BGe as fe,Mq as ff,_Ye as fg,pMe as fh,KJe as fi,AGe as fj,jYe as fk,zWe as fl,hOe as fm,gYe as fn,fYe as fo,TGe as fp,UJe as fq,OKe as fr,BWe as fs,uqe as ft,D9 as fu,iWe as fv,rWe as fw,CUe as fx,D0 as fy,Xce as fz,EG as g,U_e as g$,vFe as g0,CFe as g1,B3 as g2,b$ as g3,gVe as g4,_le as g5,jle as g6,sU as g7,xU as g8,_1 as g9,gfe as gA,Tbe as gB,ube as gC,Xve as gD,Rve as gE,FCe as gF,zke as gG,Eke as gH,OHe as gI,J4 as gJ,X4 as gK,o7 as gL,c7 as gM,l7 as gN,dJ as gO,uJ as gP,pG as gQ,mG as gR,oG as gS,VWe as gT,l$e as gU,xqe as gV,p$e as gW,u$e as gX,dG as gY,uG as gZ,KNe as g_,N$e as ga,dqe as gb,K$e as gc,Y$e as gd,Aue as ge,bFe as gf,MFe as gg,kFe as gh,K4 as gi,eke as gj,ave as gk,BVe as gl,eve as gm,AVe as gn,Aye as go,Eye as gp,kke as gq,Mke as gr,wke as gs,_ke as gt,MBe as gu,e_e as gv,Dbe as gw,tve as gx,txe as gy,zse as gz,NG as h,qxe as h$,B_e as h0,xHe as h1,XNe as h2,jie as h3,xie as h4,lIe as h5,cU as h6,BP as h7,mIe as h8,yU as h9,Nbe as hA,xve as hB,vve as hC,TQe as hD,Qxe as hE,ixe as hF,nCe as hG,$ye as hH,Gye as hI,Kye as hJ,Qye as hK,Yye as hL,QX as hM,YX as hN,bJ as hO,IJ as hP,SJ as hQ,MJ as hR,iX as hS,sX as hT,$J as hU,jve as hV,eX as hW,v2 as hX,y2 as hY,Wye as hZ,vge as h_,ZAe as ha,iIe as hb,OAe as hc,TRe as hd,fIe as he,yIe as hf,gIe as hg,hIe as hh,kIe as hi,wIe as hj,nU as hk,$P as hl,ZP as hm,qOe as hn,tfe as ho,cfe as hp,EQe as hq,Ege as hr,Qve as hs,Pve as ht,Bwe as hu,Zwe as hv,Gve as hw,Sbe as hx,Lbe as hy,Ibe as hz,XQ as i,Mne as i$,lbe as i0,cbe as i1,Lke as i2,ibe as i3,dbe as i4,UQe as i5,Sye as i6,nne as i7,Jse as i8,Xse as i9,gve as iA,Gbe as iB,Ihe as iC,fbe as iD,Vye as iE,Iye as iF,Tye as iG,o0 as iH,l0 as iI,Oye as iJ,Bye as iK,s0 as iL,SOe as iM,qwe as iN,Ese as iO,tke as iP,YYe as iQ,kne as iR,bke as iS,Yse as iT,Cke as iU,xke as iV,Ane as iW,hke as iX,Kse as iY,vke as iZ,Yhe as i_,Qse as ia,ake as ib,ike as ic,Zse as id,Bke as ie,zxe as ig,KYe as ih,rve as ii,Mve as ij,che as ik,Zke as il,zye as im,UJ as io,mbe as ip,pbe as iq,Mye as ir,Sve as is,E5 as it,Nve as iu,wve as iv,Xye as iw,Uve as ix,Uye as iy,Fke as iz,UQ as j,mve as j$,_ne as j0,pCe as j1,sve as j2,w4 as j3,k4 as j4,ive as j5,uye as j6,Hwe as j7,aWe as j8,Kje as j9,Kfe as jA,Pfe as jB,zfe as jC,rFe as jD,Bve as jE,dve as jF,IMe as jG,kJe as jH,xfe as jI,vfe as jJ,d7 as jK,t7 as jL,r7 as jM,Cne as jN,jne as jO,Dge as jP,bne as jQ,Kve as jR,Yve as jS,wne as jT,_ve as jU,_0 as jV,e3 as jW,Cve as jX,U8 as jY,O8 as jZ,uve as j_,Yje as ja,QPe as jb,FWe as jc,r$e as jd,k$e as je,GPe as jf,$Pe as jg,Rue as jh,vU as ji,Mhe as jj,j7 as jk,y7 as jl,$4 as jm,q4 as jn,Lte as jo,whe as jp,Ite as jq,_he as jr,EEe as js,XZe as jt,Tse as ju,Ine as jv,lUe as jw,ZJe as jx,Lge as jy,sfe as jz,mZ as k,_4 as k$,fve as k0,pve as k1,hve as k2,Ove as k3,bve as k4,gbe as k5,QCe as k6,kve as k7,yve as k8,zCe as k9,C8 as kA,p8 as kB,IZe as kC,Ube as kD,JYe as kE,AQe as kF,RQe as kG,HQe as kH,Cfe as kI,WB as kJ,_oe as kK,bfe as kL,kfe as kM,Bbe as kN,qbe as kO,$be as kP,Wbe as kQ,ske as kR,KVe as kS,e7 as kT,i7 as kU,Xbe as kV,y4 as kW,v4 as kX,m4 as kY,x4 as kZ,C4 as k_,xhe as ka,XCe as kb,w0 as kc,h0 as kd,yEe as ke,mEe as kf,Lye as kg,Zye as kh,kye as ki,yge as kj,vwe as kk,Nye as kl,Bse as km,Pye as kn,Jye as ko,lfe as kp,ofe as kq,ufe as kr,Ase as ks,iQe as kt,oQe as ku,rQe as kv,xge as kw,Vfe as kx,x8 as ky,u8 as kz,fZ as l,Qbe as l$,M4 as l0,hxe as l1,Pie as l2,Uie as l3,eie as l4,$ie as l5,ZOe as l6,OOe as l7,qye as l8,fCe as l9,v8 as lA,w6 as lB,Jhe as lC,jOe as lD,FOe as lE,UOe as lF,NOe as lG,IOe as lH,Xhe as lI,Whe as lJ,one as lK,oWe as lL,Lve as lM,Dve as lN,t4 as lO,hfe as lP,Eze as lQ,mze as lR,yke as lS,b4 as lT,eCe as lU,LOe as lV,BOe as lW,fPe as lX,hPe as lY,WOe as lZ,Ybe as l_,t8 as la,x7 as lb,f7 as lc,p7 as ld,C7 as le,g7 as lf,$he as lg,Ghe as lh,Qhe as li,b6 as lj,m7 as lk,n7 as ll,nke as lm,Qae as ln,PG as lo,ZG as lp,BG as lq,qG as lr,nme as ls,ame as lt,ime as lu,une as lv,lne as lw,zbe as lx,Zbe as ly,Khe as lz,kZ as m,bYe as m$,Kbe as m0,Vbe as m1,Pbe as m2,pke as m3,mke as m4,fke as m5,gke as m6,Hbe as m7,ese as m8,ebe as m9,Gje as mA,$U as mB,q$e as mC,eO as mD,XU as mE,GU as mF,tO as mG,KU as mH,YU as mI,QU as mJ,NW as mK,MPe as mL,kPe as mM,jPe as mN,ZPe as mO,UGe as mP,qke as mQ,Hpe as mR,upe as mS,Ppe as mT,Dpe as mU,Tpe as mV,yPe as mW,vPe as mX,Rpe as mY,Npe as mZ,SUe as m_,tbe as ma,Vhe as mb,sbe as mc,sae as md,cse as me,lse as mf,vse as mg,xse as mh,n0 as mi,C9 as mj,y9 as mk,jke as ml,Ske as mm,Fye as mn,Pke as mo,Oke as mp,Vke as mq,Nke as mr,rbe as ms,obe as mt,abe as mu,nbe as mv,rye as mw,pye as mx,lBe as my,NP as mz,MZ as n,KK as n$,rHe as n0,iJe as n1,V2 as n2,u5 as n3,sO as n4,k0 as n5,eNe as n6,qte as n7,Yne as n8,Mse as n9,WIe as nA,uWe as nB,Tre as nC,Dde as nD,d6 as nE,C$ as nF,X8 as nG,n9 as nH,V0 as nI,b0 as nJ,$0 as nK,VFe as nL,zFe as nM,WK as nN,IJe as nO,iae as nP,Kne as nQ,k8 as nR,ude as nS,foe as nT,aae as nU,OZe as nV,FZe as nW,EJe as nX,QK as nY,T7 as nZ,F7 as n_,$ne as na,iO as nb,t3 as nc,Rte as nd,Dte as ne,aee as nf,Pte as ng,M8 as nh,Vqe as ni,AZe as nj,cUe as nk,Fge as nl,V7 as nm,dge as nn,gge as no,cge as np,hge as nq,fge as nr,zhe as ns,Jme as nt,Zme as nu,kme as nv,Cme as nw,hme as nx,$Ie as ny,ZIe as nz,K$ as o,iMe as o$,a0 as o0,B7 as o1,$K as o2,vre as o3,HWe as o4,V$ as o5,ZK as o6,z9 as o7,OK as o8,GK as o9,zte as oA,A8 as oB,Z5 as oC,tDe as oD,RP as oE,sWe as oF,iPe as oG,EUe as oH,vUe as oI,kUe as oJ,wUe as oK,bPe as oL,yUe as oM,Wke as oN,s4 as oO,GLe as oP,$Le as oQ,WLe as oR,qLe as oS,BLe as oT,gUe as oU,bye as oV,LW as oW,VRe as oX,ZRe as oY,IGe as oZ,oMe as o_,K0 as oa,qK as ob,J9 as oc,Z9 as od,q9 as oe,W9 as of,j8 as og,K9 as oh,G9 as oi,Y9 as oj,$9 as ok,Q8 as ol,z8 as om,d5 as on,hMe as oo,gMe as op,uge as oq,mge as or,lge as os,Jpe as ot,F5 as ou,d0 as ov,u0 as ow,HP as ox,m0 as oy,ree as oz,sZ as p,rVe as p$,l_e as p0,Y_e as p1,kBe as p2,NU as p3,CQ as p4,m3 as p5,h3 as p6,w3 as p7,G5 as p8,lFe as p9,PP as pA,UP as pB,wU as pC,kU as pD,FGe as pE,oKe as pF,VGe as pG,zGe as pH,ZGe as pI,$Ge as pJ,vMe as pK,BJe as pL,R8 as pM,aMe as pN,XBe as pO,GBe as pP,lKe as pQ,_Ge as pR,Y3 as pS,K3 as pT,TZe as pU,g9 as pV,h9 as pW,f9 as pX,rPe as pY,MHe as pZ,aFe as p_,B5 as pa,Z0 as pb,rK as pc,DGe as pd,AFe as pe,EFe as pf,cPe as pg,UX as ph,e5 as pi,UYe as pj,OYe as pk,iHe as pl,oHe as pm,b3 as pn,k3 as po,tQ as pp,cQ as pq,uQ as pr,mQ as ps,pQ as pt,hQ as pu,dQ as pv,zX as pw,_$e as px,GQe as py,NFe as pz,aZ as q,sMe as q$,XPe as q0,Lz as q1,A9 as q2,lO as q3,$Oe as q4,T9 as q5,uO as q6,iK as q7,oK as q8,xMe as q9,Vve as qA,kK as qB,uxe as qC,ine as qD,Owe as qE,fwe as qF,twe as qG,Jke as qH,awe as qI,ewe as qJ,mQe as qK,dwe as qL,uwe as qM,fye as qN,lve as qO,Yke as qP,kge as qQ,bbe as qR,Mbe as qS,wbe as qT,rwe as qU,kbe as qV,efe as qW,Mfe as qX,ife as qY,EMe as qZ,H8 as q_,tK as qa,mK as qb,sK as qc,uK as qd,Ose as qe,Xpe as qf,Fse as qg,Rne as qh,Tne as qi,Ahe as qj,xCe as qk,dCe as ql,Ohe as qm,z6 as qn,S6 as qo,g8 as qp,Vge as qq,vCe as qr,cCe as qs,sCe as qt,hCe as qu,uCe as qv,lCe as qw,tCe as qx,w8 as qy,Q6 as qz,wB as r,Mze as r$,XQe as r0,QMe as r1,YMe as r2,zQe as r3,ZQe as r4,wJe as r5,nMe as r6,aJe as r7,AMe as r8,TMe as r9,GMe as rA,RMe as rB,PMe as rC,qMe as rD,Fpe as rE,a_e as rF,lK as rG,Yfe as rH,nfe as rI,JQe as rJ,BMe as rK,$Me as rL,WMe as rM,eJe as rN,Rbe as rO,XG as rP,eqe as rQ,KBe as rR,rMe as rS,Tge as rT,Age as rU,zpe as rV,Pse as rW,oFe as rX,p9 as rY,Ize as rZ,jze as r_,lJe as ra,uJe as rb,wge as rc,oJe as rd,Jbe as re,Fbe as rf,Obe as rg,qve as rh,zwe as ri,LMe as rj,NMe as rk,Zve as rl,Vwe as rm,Jve as rn,Cge as ro,tJe as rp,VMe as rq,JMe as rr,Ope as rs,Upe as rt,cBe as ru,Abe as rv,QQe as rw,yMe as rx,i_e as ry,n_e as rz,WJ as s,Ale as s$,LB as s0,pKe as s1,gPe as s2,Eie as s3,qWe as s4,Xde as s5,xRe as s6,CRe as s7,pRe as s8,HFe as s9,hle as sA,JP as sB,qP as sC,dle as sD,mle as sE,tce as sF,j$e as sG,L$e as sH,S$e as sI,CG as sJ,yFe as sK,cG as sL,vG as sM,tG as sN,D$e as sO,sGe as sP,UB as sQ,Ice as sR,Ece as sS,Hle as sT,Sce as sU,Ole as sV,AJe as sW,ale as sX,Ule as sY,Qce as sZ,Nle as s_,KEe as sa,tYe as sb,lOe as sc,p0 as sd,Ure as se,nO as sf,q7 as sg,pwe as sh,Cbe as si,xbe as sj,_be as sk,Cye as sl,Pwe as sm,Uwe as sn,Cwe as so,Ude as sp,WQe as sq,jbe as sr,Qke as ss,hbe as st,mye as su,vbe as sv,Lwe as sw,iU as sx,ule as sy,Cle as sz,YLe as t,yP as t0,rZe as t1,rce as t2,wde as t3,PB as t4,Wce as t5,UK as t6,noe as t7,Ade as t8,jde as t9,iBe as tA,hUe as tB,WKe as tC,nXe as tD,_de as ta,Wle as tb,zle as tc,bde as td,Ble as te,lZe as tf,tX as tg,s$ as th,cB as ti,pB as tj,zW as tk,e$ as tl,Iq as tm,lq as tn,xq as to,wBe as tp,jW as tq,PZe as tr,FKe as ts,hU as tt,CU as tu,IQ as tv,fMe as tw,P8 as tx,qJe as ty,eK as tz,UG as u,fEe as v,N8 as w,hae as x,tOe as y,u3 as z};
