System.register(["./chunk-legacy-B9MfnjDG.js","./index-legacy-C1hLlhAy.js"],function(e,t){var i,n,o,s,r,a,l,d,c,h,u,g,p,m,f,_,b,v,w,C,y,S,x,k,L,D,I,N,E,M,T,R,O,A,P,F,W,B,V,H,z,U,K,q,j,$,G,Z,Y,Q,X,J,ee,te,ie,ne,oe,se,re,ae,le,de,ce,he,ue,ge,pe,me,fe,_e,be,ve,we,Ce,ye,Se,xe,ke,Le,De,Ie,Ne,Ee,Me,Te,Re,Oe,Ae,Pe,Fe,We,Be,Ve,He,ze,Ue,Ke,qe,je,$e,Ge,Ze,Ye,Qe,Xe,Je,et,tt,it,nt,ot,st,rt,at,lt,dt,ct,ht,ut,gt,pt,mt,ft,_t,bt,vt,wt,Ct,yt,St,xt,kt,Lt,Dt,It,Nt,Et,Mt,Tt,Rt,Ot,At,Pt,Ft,Wt,Bt,Vt,Ht,zt,Ut,Kt,qt,jt,$t,Gt,Zt,Yt,Qt,Xt,Jt,ei,ti,ii,ni,oi,si,ri,ai,li,di,ci,hi,ui,gi,pi,mi,fi,_i,bi,vi,wi,Ci,yi,Si,xi,ki,Li,Di,Ii,Ni,Ei,Mi,Ti,Ri,Oi,Ai,Pi,Fi,Wi,Bi,Vi,Hi,zi,Ui,Ki,qi,ji,$i,Gi,Zi,Yi,Qi,Xi,Ji,en,tn,nn,on,sn,rn,an,ln,dn,cn,hn,un,gn,pn,mn,fn,_n,bn,vn,wn,Cn,yn,Sn,xn,kn,Ln,Dn,In,Nn,En,Mn,Tn,Rn,On,An,Pn,Fn,Wn,Bn,Vn,Hn,zn,Un,Kn,qn,jn,$n,Gn,Zn,Yn,Qn,Xn,Jn,eo,to,io,no,oo,so,ro,ao,lo,co,ho,uo,go,po,mo,fo,_o,bo,vo,wo,Co,yo,So,xo,ko,Lo,Do,Io,No,Eo,Mo,To,Ro,Oo,Ao,Po,Fo,Wo,Bo,Vo,Ho,zo,Uo,Ko,qo,jo,$o,Go,Zo,Yo,Qo,Xo,Jo,es,ts,is,ns,os,ss,rs,as,ls,ds,cs,hs,us,gs,ps,ms,fs,_s,bs,vs,ws,Cs,ys,Ss,xs,ks,Ls,Ds,Is,Ns,Es,Ms,Ts,Rs,Os,As,Ps,Fs,Ws,Bs,Vs,Hs,zs,Us,Ks,qs,js,$s,Gs,Zs,Ys,Qs,Xs,Js,er,tr,ir,nr,or,sr,rr,ar,lr,dr,cr,hr,ur,gr,pr,mr,fr,_r,br,vr,wr,Cr,yr,Sr,xr,kr,Lr,Dr,Ir,Nr,Er,Mr,Tr,Rr,Or,Ar,Pr,Fr,Wr,Br,Vr,Hr,zr,Ur,Kr,qr,jr,$r,Gr,Zr,Yr,Qr,Xr,Jr,ea,ta,ia,na,oa,sa,ra,aa,la,da,ca,ha,ua,ga,pa,ma,fa,_a,ba,va,wa,Ca,ya,Sa,xa,ka,La,Da,Ia,Na,Ea,Ma,Ta,Ra,Oa,Aa,Pa,Fa,Wa,Ba,Va,Ha,za,Ua,Ka,qa,ja,$a,Ga,Za,Ya,Qa,Xa,Ja,el,tl,il,nl,ol,sl,rl,al,ll,dl,cl,hl,ul,gl,pl,ml,fl,_l,bl,vl,wl,Cl,yl,Sl,xl,kl,Ll,Dl,Il,Nl,El,Ml,Tl,Rl,Ol,Al,Pl,Fl,Wl,Bl,Vl,Hl,zl,Ul,Kl,ql,jl,$l,Gl,Zl,Yl,Ql,Xl,Jl,ed,td,id,nd,od,sd,rd,ad,ld,dd,cd,hd,ud,gd,pd,md,fd,_d,bd,vd,wd,Cd,yd,Sd,xd,kd,Ld,Dd,Id,Nd,Ed,Md,Td,Rd,Od,Ad,Pd,Fd,Wd,Bd,Vd,Hd,zd,Ud,Kd,qd,jd,$d,Gd,Zd,Yd,Qd,Xd,Jd,ec,tc,ic,nc,oc,sc,rc,ac,lc,dc,cc,hc,uc,gc,pc,mc,fc,_c,bc,vc,wc,Cc,yc,Sc,xc,kc,Lc,Dc,Ic,Nc,Ec,Mc,Tc,Rc,Oc,Ac,Pc,Fc,Wc,Bc,Vc,Hc,zc,Uc,Kc,qc,jc,$c,Gc,Zc,Yc,Qc,Xc,Jc,eh,th,ih,nh,oh,sh,rh,ah,lh,dh,ch,hh,uh,gh,ph,mh,fh,_h,bh,vh,wh,Ch,yh,Sh,xh,kh,Lh,Dh,Ih,Nh,Eh,Mh,Th,Rh,Oh,Ah,Ph,Fh,Wh,Bh,Vh,Hh,zh,Uh,Kh,qh,jh,$h,Gh,Zh,Yh,Qh,Xh,Jh,eu,tu,iu,nu,ou,su,ru,au,lu,du,cu,hu,uu,gu,pu,mu,fu,_u,bu,vu,wu,Cu,yu,Su,xu,ku,Lu,Du,Iu,Nu,Eu,Mu,Tu,Ru,Ou,Au,Pu,Fu,Wu,Bu,Vu,Hu,zu,Uu,Ku,qu,ju,$u,Gu,Zu,Yu,Qu,Xu,Ju,eg,tg,ig,ng,og,sg,rg,ag,lg,dg,cg,hg,ug,gg,pg,mg,fg,_g,bg,vg,wg,Cg,yg,Sg,xg,kg,Lg,Dg,Ig,Ng,Eg,Mg,Tg,Rg,Og,Ag,Pg,Fg,Wg,Bg,Vg,Hg,zg,Ug,Kg,qg,jg,$g,Gg,Zg,Yg,Qg,Xg,Jg,ep,tp,ip,np,op,sp,rp,ap,lp,dp,cp,hp,up,gp,pp,mp,fp,_p,bp,vp,wp,Cp,yp,Sp,xp,kp,Lp,Dp,Ip,Np,Ep,Mp,Tp,Rp,Op,Ap,Pp,Fp,Wp,Bp,Vp,Hp,zp,Up,Kp,qp,jp,$p,Gp,Zp,Yp,Qp,Xp,Jp,em,tm,im,nm,om,sm,rm,am,lm,dm,cm,hm,um,gm,pm,mm,fm,_m,bm,vm,wm,Cm,ym,Sm,xm,km,Lm,Dm,Im,Nm,Em,Mm,Tm,Rm,Om,Am,Pm,Fm,Wm,Bm,Vm,Hm,zm,Um,Km,qm,jm,$m,Gm,Zm,Ym,Qm,Xm,Jm,ef,tf,nf,of,sf,rf,af,lf,df,cf,hf,uf,gf,pf,mf,ff,_f,bf,vf,wf,Cf,yf,Sf,xf,kf,Lf,Df,If,Nf,Ef,Mf,Tf,Rf,Of,Af,Pf,Ff,Wf,Bf,Vf,Hf,zf,Uf,Kf,qf,jf,$f,Gf,Zf,Yf,Qf,Xf,Jf,e_,t_,i_,n_,o_,s_,r_,a_,l_,d_,c_,h_,u_,g_,p_,m_,f_,__,b_,v_,w_,C_,y_,S_,x_,k_,L_,D_,I_,N_,E_,M_,T_,R_,O_,A_,P_,F_,W_,B_,V_,H_,z_,U_,K_,q_,j_,$_,G_,Z_,Y_,Q_,X_,J_,eb,tb,ib,nb,ob,sb,rb,ab,lb,db,cb,hb,ub,gb,pb,mb,fb,_b,bb,vb,wb,Cb,yb,Sb,xb,kb,Lb,Db,Ib,Nb,Eb,Mb,Tb,Rb,Ob,Ab,Pb,Fb,Wb,Bb,Vb,Hb,zb,Ub,Kb,qb,jb,$b,Gb,Zb,Yb,Qb,Xb,Jb,ev,tv,iv,nv,ov,sv,rv,av,lv,dv,cv,hv,uv,gv,pv,mv,fv,_v,bv,vv,wv,Cv,yv,Sv,xv,kv,Lv,Dv,Iv,Nv,Ev,Mv,Tv,Rv,Ov,Av,Pv,Fv,Wv,Bv,Vv,Hv,zv,Uv,Kv,qv,jv,$v,Gv,Zv,Yv,Qv,Xv,Jv,ew,tw,iw,nw,ow,sw,rw,aw,lw,dw,cw,hw,uw,gw,pw,mw,fw,_w,bw,vw,ww,Cw,yw,Sw,xw,kw,Lw,Dw,Iw,Nw,Ew,Mw,Tw,Rw,Ow,Aw,Pw,Fw,Ww,Bw,Vw,Hw,zw,Uw,Kw,qw,jw,$w,Gw,Zw,Yw,Qw,Xw,Jw,eC,tC,iC,nC,oC,sC,rC,aC,lC,dC,cC,hC,uC,gC,pC,mC,fC,_C,bC,vC,wC,CC,yC,SC,xC,kC,LC,DC,IC,NC,EC,MC,TC,RC,OC,AC,PC,FC,WC,BC,VC,HC,zC,UC,KC,qC,jC,$C,GC,ZC,YC,QC,XC,JC,ey,ty,iy,ny,oy,sy,ry,ay,ly,dy,cy,hy,uy,gy,py,my,fy,_y,by,vy,wy,Cy,yy,Sy,xy,ky,Ly,Dy,Iy,Ny,Ey,My,Ty,Ry,Oy,Ay,Py,Fy,Wy,By,Vy,Hy,zy,Uy,Ky,qy,jy,$y,Gy,Zy,Yy,Qy,Xy,Jy,eS,tS,iS,nS,oS,sS,rS,aS,lS,dS,cS,hS,uS,gS,pS,mS,fS,_S,bS,vS,wS,CS,yS,SS,xS,kS,LS,DS,IS,NS,ES,MS,TS,RS,OS,AS,PS,FS,WS,BS,VS,HS,zS,US,KS,qS,jS,$S,GS,ZS,YS,QS,XS,JS,ex,tx,ix,nx,ox,sx,rx,ax,lx,dx,cx,hx,ux,gx,px,mx,fx,_x,bx,vx,wx,Cx,yx,Sx,xx,kx,Lx,Dx,Ix,Nx,Ex,Mx,Tx,Rx,Ox,Ax,Px,Fx,Wx,Bx,Vx,Hx,zx,Ux,Kx,qx,jx,$x,Gx,Zx,Yx,Qx,Xx,Jx,ek,tk,ik,nk,ok,sk,rk,ak,lk,dk,ck,hk,uk,gk,pk,mk,fk,_k,bk,vk,wk,Ck,yk,Sk,xk,kk,Lk,Dk,Ik,Nk,Ek,Mk,Tk,Rk,Ok,Ak,Pk,Fk,Wk,Bk,Vk,Hk,zk,Uk,Kk,qk,jk,$k,Gk,Zk,Yk,Qk,Xk,Jk,eL,tL,iL,nL,oL,sL,rL,aL,lL,dL,cL,hL,uL,gL,pL,mL,fL,_L,bL,vL,wL,CL,yL,SL,xL,kL,LL,DL,IL,NL,EL,ML,TL,RL,OL,AL,PL,FL,WL,BL,VL,HL,zL,UL,KL,qL,jL,$L,GL,ZL,YL,QL,XL,JL,eD,tD,iD,nD,oD,sD,rD,aD,lD,dD,cD,hD,uD,gD,pD,mD,fD,_D,bD,vD,wD,CD,yD,SD,xD,kD,LD,DD,ID,ND,ED,MD,TD,RD,OD,AD,PD,FD,WD,BD,VD,HD,zD,UD,KD,qD,jD,$D,GD,ZD,YD,QD,XD,JD,eI,tI,iI,nI,oI,sI,rI,aI,lI,dI,cI,hI,uI,gI,pI,mI,fI,_I,bI,vI,wI,CI,yI,SI,xI,kI,LI,DI,II,NI,EI,MI,TI,RI,OI,AI,PI,FI,WI,BI,VI,HI,zI,UI,KI,qI,jI,$I,GI,ZI,YI,QI,XI,JI,eN,tN,iN,nN,oN,sN,rN,aN,lN,dN,cN,hN,uN,gN,pN,mN,fN,_N,bN,vN,wN,CN,yN,SN,xN,kN,LN,DN,IN,NN,EN,MN,TN,RN,ON,AN,PN,FN,WN,BN,VN,HN,zN,UN,KN,qN,jN,$N,GN,ZN,YN,QN,XN,JN,eE,tE,iE,nE,oE,sE,rE,aE,lE,dE,cE,hE,uE,gE,pE,mE,fE,_E,bE,vE,wE,CE,yE,SE,xE,kE,LE,DE,IE,NE,EE,ME,TE,RE,OE,AE,PE,FE,WE,BE,VE,HE,zE,UE,KE,qE,jE,$E,GE,ZE,YE,QE,XE,JE,eM,tM,iM,nM,oM,sM,rM,aM,lM,dM,cM,hM,uM,gM,pM,mM,fM,_M,bM,vM,wM,CM,yM,SM,xM,kM,LM,DM,IM,NM,EM,MM,TM,RM,OM,AM,PM,FM,WM,BM,VM,HM,zM,UM,KM,qM,jM,$M,GM,ZM,YM,QM,XM,JM,eT,tT,iT,nT,oT,sT,rT,aT,lT,dT,cT,hT,uT,gT,pT,mT,fT,_T,bT,vT,wT,CT,yT,ST,xT,kT,LT,DT,IT,NT,ET,MT,TT,RT,OT,AT,PT,FT,WT,BT,VT,HT,zT,UT,KT,qT,jT,$T,GT,ZT,YT,QT,XT,JT,eR,tR,iR,nR,oR,sR,rR,aR,lR,dR,cR,hR,uR,gR,pR,mR,fR,_R,bR,vR,wR,CR,yR,SR,xR,kR,LR,DR,IR,NR,ER,MR,TR,RR,OR,AR,PR,FR,WR,BR,VR,HR,zR,UR,KR,qR,jR,$R,GR,ZR,YR,QR,XR,JR,eO,tO,iO,nO,oO,sO,rO,aO,lO,dO,cO,hO,uO,gO,pO,mO,fO,_O,bO,vO,wO,CO,yO,SO,xO,kO,LO,DO,IO,NO,EO,MO,TO,RO,OO,AO,PO,FO,WO,BO,VO,HO,zO,UO,KO,qO,jO,$O,GO,ZO,YO,QO,XO,JO,eA,tA,iA,nA,oA,sA,rA,aA,lA,dA,cA,hA,uA,gA,pA,mA,fA,_A,bA,vA,wA,CA,yA,SA,xA,kA,LA,DA,IA,NA,EA,MA,TA,RA,OA,AA,PA,FA,WA,BA,VA,HA,zA,UA,KA,qA,jA,$A,GA,ZA,YA,QA,XA,JA,eP,tP,iP,nP,oP,sP,rP,aP,lP,dP,cP,hP,uP,gP,pP,mP,fP,_P,bP,vP,wP,CP,yP,SP,xP,kP,LP,DP,IP,NP,EP,MP,TP,RP,OP,AP,PP,FP,WP,BP,VP,HP,zP,UP,KP,qP,jP,$P,GP,ZP,YP,QP,XP,JP,eF,tF,iF,nF,oF,sF,rF,aF,lF,dF,cF,hF,uF,gF,pF,mF,fF,_F,bF,vF,wF,CF,yF,SF,xF,kF,LF,DF,IF,NF,EF,MF,TF,RF,OF,AF,PF,FF,WF,BF,VF,HF,zF,UF,KF,qF,jF,$F,GF,ZF,YF,QF,XF,JF,eW,tW,iW,nW,oW,sW,rW,aW,lW,dW,cW,hW,uW,gW,pW,mW,fW,_W,bW,vW,wW,CW,yW,SW,xW,kW,LW,DW,IW,NW,EW,MW,TW,RW,OW,AW,PW,FW,WW,BW,VW,HW,zW,UW,KW,qW,jW,$W,GW,ZW,YW,QW,XW,JW,eB,tB,iB,nB,oB,sB,rB,aB,lB,dB,cB,hB,uB,gB,pB,mB,fB,_B,bB,vB,wB,CB,yB,SB,xB,kB,LB,DB,IB,NB,EB,MB,TB,RB,OB,AB,PB,FB,WB,BB,VB,HB,zB,UB,KB,qB,jB,$B,GB,ZB,YB,QB,XB,JB,eV,tV,iV,nV,oV,sV,rV,aV,lV,dV,cV,hV,uV,gV,pV,mV,fV,_V,bV,vV,wV,CV,yV,SV,xV,kV,LV,DV,IV,NV,EV,MV,TV,RV,OV,AV,PV,FV,WV,BV,VV,HV,zV,UV,KV,qV,jV,$V,GV,ZV,YV,QV,XV,JV,eH,tH,iH,nH,oH,sH,rH,aH,lH,dH,cH,hH,uH,gH,pH,mH,fH,_H,bH,vH,wH,CH,yH,SH,xH,kH,LH,DH,IH,NH,EH,MH,TH,RH,OH,AH,PH,FH,WH,BH,VH,HH,zH,UH,KH,qH,jH,$H,GH,ZH,YH,QH,XH,JH,ez,tz,iz,nz,oz,sz,rz,az,lz,dz,cz,hz,uz,gz,pz,mz,fz,_z,bz,vz,wz,Cz,yz,Sz,xz,kz,Lz,Dz,Iz,Nz,Ez,Mz,Tz,Rz,Oz,Az,Pz,Fz,Wz,Bz,Vz,Hz,zz,Uz,Kz,qz,jz,$z,Gz,Zz,Yz,Qz,Xz,Jz,eU,tU,iU,nU,oU,sU,rU,aU,lU,dU,cU,hU,uU,gU,pU,mU,fU,_U,bU,vU,wU,CU,yU,SU,xU,kU,LU,DU,IU,NU,EU,MU,TU,RU,OU,AU,PU,FU,WU,BU,VU,HU,zU,UU,KU,qU,jU,$U,GU,ZU,YU,QU,XU,JU,eK,tK,iK,nK,oK,sK,rK,aK,lK,dK,cK,hK,uK,gK,pK,mK,fK,_K,bK,vK,wK,CK,yK,SK,xK,kK,LK,DK,IK,NK,EK,MK,TK,RK,OK,AK,PK,FK,WK,BK,VK,HK,zK,UK,KK,qK,jK,$K,GK,ZK,YK,QK,XK,JK,eq,tq,iq,nq,oq,sq,rq,aq,lq,dq,cq,hq,uq,gq,pq,mq,fq,_q,bq,vq,wq,Cq,yq,Sq,xq,kq,Lq,Dq,Iq,Nq,Eq,Mq,Tq,Rq,Oq,Aq,Pq,Fq,Wq,Bq,Vq,Hq,zq,Uq,Kq,qq,jq,$q,Gq,Zq,Yq,Qq,Xq,Jq,ej,tj,ij,nj,oj,sj,rj,aj,lj,dj,cj,hj,uj,gj,pj,mj,fj,_j,bj,vj,wj,Cj,yj,Sj,xj,kj,Lj,Dj,Ij,Nj,Ej,Mj,Tj,Rj,Oj,Aj,Pj,Fj,Wj,Bj,Vj,Hj,zj,Uj,Kj,qj,jj,$j,Gj,Zj,Yj,Qj,Xj,Jj,e$,t$,i$,n$,o$,s$,r$,a$,l$,d$,c$,h$,u$,g$,p$,m$,f$,_$,b$,v$,w$,C$,y$,S$,x$,k$,L$,D$,I$,N$,E$,M$,T$,R$,O$,A$,P$,F$,W$,B$,V$,H$,z$,U$,K$,q$,j$,$$,G$,Z$,Y$,Q$,X$,J$,eG,tG,iG,nG,oG,sG,rG,aG,lG,dG,cG,hG,uG,gG,pG,mG,fG,_G,bG,vG,wG,CG,yG,SG,xG,kG,LG,DG,IG,NG,EG,MG,TG,RG,OG,AG,PG,FG,WG,BG,VG,HG,zG,UG,KG,qG,jG,$G,GG,ZG,YG,QG,XG,JG,eZ,tZ,iZ,nZ,oZ,sZ,rZ,aZ,lZ,dZ,cZ,hZ,uZ,gZ,pZ,mZ,fZ,_Z,bZ,vZ,wZ,CZ,yZ,SZ,xZ,kZ,LZ,DZ,IZ,NZ,EZ,MZ,TZ,RZ,OZ,AZ,PZ,FZ,WZ,BZ,VZ,HZ,zZ,UZ,KZ,qZ,jZ,$Z,GZ,ZZ,YZ,QZ,XZ,JZ,eY,tY,iY,nY,oY,sY,rY,aY,lY,dY,cY,hY,uY,gY,pY,mY,fY,_Y,bY,vY,wY,CY,yY,SY,xY,kY,LY,DY,IY,NY,EY,MY,TY,RY,OY,AY,PY,FY,WY,BY,VY,HY,zY,UY,KY,qY,jY,$Y,GY,ZY,YY,QY,XY,JY,eQ,tQ,iQ,nQ,oQ,sQ,rQ,aQ,lQ,dQ,cQ,hQ,uQ,gQ,pQ,mQ,fQ,_Q,bQ,vQ,wQ,CQ,yQ,SQ,xQ,kQ,LQ,DQ,IQ,NQ,EQ,MQ,TQ,RQ,OQ,AQ,PQ,FQ,WQ,BQ,VQ,HQ,zQ,UQ,KQ,qQ,jQ,$Q,GQ,ZQ,YQ,QQ,XQ,JQ,eX,tX,iX,nX,oX,sX,rX,aX,lX,dX,cX,hX,uX,gX,pX,mX,fX,_X,bX,vX,wX,CX,yX,SX,xX,kX,LX,DX,IX,NX,EX,MX,TX,RX,OX,AX,PX,FX,WX,BX,VX,HX,zX,UX,KX,qX,jX,$X,GX,ZX,YX,QX,XX,JX,eJ,tJ,iJ,nJ,oJ,sJ,rJ,aJ,lJ,dJ,cJ,hJ,uJ,gJ,pJ,mJ,fJ,_J,bJ,vJ,wJ,CJ,yJ,SJ,xJ,kJ,LJ,DJ,IJ,NJ,EJ,MJ,TJ,RJ,OJ,AJ,PJ,FJ,WJ,BJ,VJ,HJ,zJ,UJ,KJ,qJ,jJ,$J,GJ,ZJ,YJ,QJ,XJ,JJ,e1,t1,i1,n1,o1,s1,r1,a1,l1,d1,c1,h1,u1,g1,p1,m1,f1,_1,b1,v1,w1,C1,y1,S1,x1,k1,L1,D1,I1,N1,E1,M1,T1,R1,O1,A1,P1,F1,W1,B1,V1,H1,z1,U1,K1,q1,j1,$1,G1,Z1,Y1,Q1,X1,J1,e0,t0,i0,n0,o0,s0,r0,a0,l0,d0,c0,h0,u0,g0,p0,m0,f0,_0,b0,v0,w0,C0,y0,S0,x0,k0,L0,D0,I0,N0,E0,M0,T0,R0,O0,A0,P0,F0,W0,B0,V0,H0,z0,U0,K0,q0,j0,$0,G0,Z0,Y0,Q0,X0,J0,e2,t2,i2,n2,o2,s2,r2,a2,l2,d2,c2,h2,u2,g2,p2,m2,f2,_2,b2,v2,w2,C2,y2,S2,x2,k2,L2,D2,I2,N2,E2,M2,T2,R2,O2,A2,P2,F2,W2,B2,V2,H2,z2,U2,K2,q2,j2,$2,G2,Z2,Y2,Q2,X2,J2,e4,t4,i4,n4,o4,s4,r4,a4,l4,d4,c4,h4,u4,g4,p4,m4,f4,_4,b4,v4,w4,C4,y4,S4,x4,k4,L4,D4,I4,N4,E4,M4,T4,R4,O4,A4,P4,F4,W4,B4,V4,H4,z4,U4,K4,q4,j4,$4,G4,Z4,Y4,Q4,X4,J4,e5,t5,i5,n5,o5,s5,r5,a5,l5,d5,c5,h5,u5,g5,p5,m5,f5,_5,b5,v5,w5,C5,y5,S5,x5,k5,L5,D5,I5,N5,E5,M5,T5,R5,O5,A5,P5,F5,W5,B5,V5,H5,z5,U5,K5,q5,j5,$5,G5,Z5,Y5,Q5,X5,J5,e3,t3,i3,n3,o3,s3,r3,a3,l3,d3,c3,h3,u3,g3,p3,m3,f3,_3,b3,v3,w3,C3,y3,S3,x3,k3,L3,D3,I3,N3,E3,M3,T3,R3,O3,A3,P3,F3,W3,B3,V3,H3,z3,U3,K3,q3,j3,$3,G3,Z3,Y3,Q3,X3,J3,e6,t6,i6,n6,o6,s6,r6,a6,l6,d6,c6,h6,u6,g6,p6,m6,f6,_6,b6,v6,w6,C6,y6,S6,x6,k6,L6,D6,I6,N6,E6,M6,T6,R6,O6,A6,P6,F6,W6,B6,V6,H6,z6,U6,K6,q6,j6,$6,G6,Z6,Y6,Q6,X6,J6,e9,t9,i9,n9,o9,s9,r9,a9,l9,d9,c9,h9,u9,g9,p9,m9,f9,_9,b9,v9,w9,C9,y9,S9,x9,k9,L9,D9,I9,N9,E9,M9,T9,R9,O9,A9,P9,F9,W9,B9,V9,H9,z9,U9,K9,q9,j9,$9,G9,Z9,Y9,Q9,X9,J9,e7,t7,i7,n7,o7,s7,r7,a7,l7,d7,c7,h7,u7,g7,p7,m7,f7,_7,b7,v7,w7,C7,y7,S7,x7,k7,L7,D7,I7,N7,E7,M7,T7,R7,O7,A7,P7,F7,W7,B7,V7,H7,z7,U7,K7,q7,j7,$7,G7,Z7,Y7,Q7,X7,J7,e8,t8,i8,n8,o8,s8,r8,a8,l8,d8,c8,h8,u8,g8,p8,m8,f8,_8,b8,v8,w8,C8,y8,S8,x8,k8,L8,D8,I8,N8,E8,M8,T8,R8,O8,A8,P8,F8,W8,B8,V8,H8,z8,U8,K8,q8,j8,$8,G8,Z8,Y8,Q8,X8,J8,eee,tee,iee,nee,oee,see,ree,aee,lee,dee,cee,hee,uee,gee,pee,mee,fee,_ee,bee,vee,wee,Cee,yee,See,xee,kee,Lee,Dee,Iee,Nee,Eee,Mee,Tee,Ree,Oee,Aee,Pee,Fee,Wee,Bee,Vee,Hee,zee,Uee,Kee,qee,jee,$ee,Gee,Zee,Yee,Qee,Xee,Jee,ete,tte,ite,nte,ote,ste,rte,ate,lte,dte,cte,hte,ute,gte,pte,mte,fte,_te,bte,vte,wte,Cte,yte,Ste,xte,kte,Lte,Dte,Ite,Nte,Ete,Mte,Tte,Rte,Ote,Ate,Pte,Fte,Wte,Bte,Vte,Hte,zte,Ute,Kte,qte,jte,$te,Gte,Zte,Yte,Qte,Xte,Jte,eie,tie,iie,nie,oie,sie,rie,aie,lie,die,cie,hie,uie,gie,pie,mie,fie,_ie,bie,vie,wie,Cie,yie,Sie,xie,kie,Lie,Die,Iie,Nie,Eie,Mie,Tie,Rie,Oie,Aie,Pie,Fie,Wie,Bie,Vie,Hie,zie,Uie,Kie,qie,jie,$ie,Gie,Zie,Yie,Qie,Xie,Jie,ene,tne,ine,nne,one,sne,rne,ane,lne,dne,cne,hne,une,gne,pne,mne,fne,_ne,bne,vne,wne,Cne,yne,Sne,xne,kne,Lne,Dne,Ine,Nne,Ene,Mne,Tne,Rne,One,Ane,Pne,Fne,Wne,Bne,Vne,Hne,zne,Une,Kne,qne,jne,$ne,Gne,Zne,Yne,Qne,Xne,Jne,eoe,toe,ioe,noe,ooe,soe,roe,aoe,loe,doe,coe,hoe,uoe,goe,poe,moe,foe,_oe,boe,voe,woe,Coe,yoe,Soe,xoe,koe,Loe,Doe,Ioe,Noe,Eoe,Moe,Toe,Roe,Ooe,Aoe,Poe,Foe,Woe,Boe,Voe,Hoe,zoe,Uoe,Koe,qoe,joe,$oe,Goe,Zoe,Yoe,Qoe,Xoe,Joe,ese,tse,ise,nse,ose,sse,rse,ase,lse,dse,cse,hse,use,gse,pse,mse,fse,_se,bse,vse,wse,Cse,yse,Sse,xse,kse,Lse,Dse,Ise,Nse,Ese,Mse,Tse,Rse,Ose,Ase,Pse,Fse,Wse,Bse,Vse,Hse,zse,Use,Kse,qse,jse,$se,Gse,Zse,Yse,Qse,Xse,Jse,ere,tre,ire,nre,ore,sre,rre,are,lre,dre,cre,hre,ure,gre,pre,mre,fre,_re,bre,vre,wre,Cre,yre,Sre,xre,kre,Lre,Dre,Ire,Nre,Ere,Mre,Tre,Rre,Ore,Are,Pre,Fre,Wre,Bre,Vre,Hre,zre,Ure,Kre,qre,jre,$re,Gre,Zre,Yre,Qre,Xre,Jre,eae,tae,iae,nae,oae,sae,rae,aae,lae,dae,cae,hae,uae,gae,pae,mae,fae,_ae,bae,vae,wae,Cae,yae,Sae,xae,kae,Lae,Dae,Iae,Nae,Eae,Mae,Tae,Rae,Oae,Aae,Pae;function Fae(){return globalThis._VSCODE_NLS_MESSAGES}function Wae(){return globalThis._VSCODE_NLS_LANGUAGE}function Bae(e,t){let i;return i=0===t.length?e:e.replace(/\{(\d+)\}/g,(e,i)=>{const n=t[i[0]];let o=e;return"string"==typeof n?o=n:"number"!=typeof n&&"boolean"!=typeof n&&null!=n||(o=String(n)),o}),s&&(i="["+i.replace(/[aouei]/g,"$&$&")+"]"),i}function Vae(e,t,...i){return Bae("number"==typeof e?Hae(e,t):t,i)}function Hae(e,t){const i=Fae()?.[e];if("string"!=typeof i){if("string"==typeof t)return t;throw new Error(`!!! NLS MISSING: ${e} !!!`)}return i}function zae(e,t,...i){let n;n="number"==typeof e?Hae(e,t):t;const o=Bae(n,i);return{value:o,original:t===n?o:Bae(t,i)}}function Uae(e,t,i){"string"==typeof t&&(t=e.matchMedia(t)),t.addEventListener("change",i)}function Kae(e){return l.INSTANCE.getZoomFactor(e)}function qae(){return globalThis.MonacoEnvironment}function jae(e){_.onUnexpectedError(e)}function $ae(e){Yae(e)||_.onUnexpectedError(e)}function Gae(e){Yae(e)||_.onUnexpectedExternalError(e)}function Zae(e){if(e instanceof Error){const{name:t,message:i,cause:n}=e;return{$isError:!0,name:t,message:i,stack:e.stacktrace||e.stack,noTelemetry:C.isErrorNoTelemetry(e),cause:n?Zae(n):void 0,code:e.code}}return e}function Yae(e){return e instanceof v||e instanceof Error&&"Canceled"===e.name&&"Canceled"===e.message}function Qae(e){return e?new Error(`Illegal argument: ${e}`):new Error("Illegal argument")}function Xae(e){return e?new Error(`Illegal state: ${e}`):new Error("Illegal state")}function Jae(e,t){if(!e)throw new Error(t?`Assertion failed (${t})`:"Assertion Failed")}function ele(e,t="Unreachable"){throw new Error(t)}function tle(e,t="unexpected state"){if(!e)throw"string"==typeof t?new y(`Assertion Failed: ${t}`):t}function ile(e,t="Soft Assertion Failed"){e||$ae(new y(t))}function nle(e){e()||(e(),$ae(new y("Assertion Failed")))}function ole(e,t){let i=0;for(;i>>0)>>>0}function wle(e,t){if("number"==typeof e){if(0===e)return null;const i=(65535&e)>>>0,n=(4294901760&e)>>>16;return new me(0!==n?[Cle(i,t),Cle(n,t)]:[Cle(i,t)])}{const i=[];for(let n=0;n1)throw new AggregateError(i,"Encountered errors while disposing of store");return Array.isArray(e)?[]:e}if(e)return e.dispose(),e}function Lle(...e){return Dle(()=>kle(e))}function Dle(e){return new Le(e)}function Ile(e){const t=new ot;return e.add({dispose(){t.cancel()}}),t.token}function Nle(e){return!!e&&"function"==typeof e.then}function Ele(e){const t=new ot,i=e(t.token);let n=!1;const o=new Promise((e,o)=>{const s=t.token.onCancellationRequested(()=>{n=!0,s.dispose(),o(new v)});Promise.resolve(i).then(i=>{s.dispose(),t.dispose(),n?xle(i)&&i.dispose():e(i)},e=>{s.dispose(),t.dispose(),o(e)})});return new class{cancel(){t.cancel(),t.dispose()}then(e,t){return o.then(e,t)}catch(e){return this.then(void 0,e)}finally(e){return o.finally(e)}}}function Mle(e,t,i){return new Promise((n,o)=>{const s=t.onCancellationRequested(()=>{s.dispose(),n(i)});e.then(n,o).finally(()=>s.dispose())})}function Tle(e,t){return t?new Promise((i,n)=>{const o=setTimeout(()=>{s.dispose(),i()},e),s=t.onCancellationRequested(()=>{clearTimeout(o),s.dispose(),n(new v)})}):Ele(t=>Tle(e,t))}function Rle(e,t=0,i){const n=setTimeout(()=>{e(),i&&o.dispose()},t),o=Dle(()=>{clearTimeout(n),i?.delete(o)});return i?.add(o),o}function Ole(e,t=e=>!!e,i=null){let n=0;const o=e.length,s=()=>{if(n>=o)return Promise.resolve(i);const r=e[n++];return Promise.resolve(r()).then(e=>t(e)?Promise.resolve(e):s())};return s()}function Ale(e){return e}function Ple(e){return!e||"string"!=typeof e||0===e.trim().length}function Fle(e,...t){return 0===t.length?e:e.replace(Mt,function(e,i){const n=parseInt(i,10);return isNaN(n)||n<0||n>=t.length?e:t[n]})}function Wle(e){return e.replace(/[<>&]/g,function(e){switch(e){case"<":return"<";case">":return">";case"&":return"&";default:return e}})}function Ble(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function Vle(e,t=" "){return zle(Hle(e,t),t)}function Hle(e,t){if(!e||!t)return e;const i=t.length;if(0===i||0===e.length)return e;let n=0;for(;e.indexOf(t,n)===n;)n+=i;return e.substring(n)}function zle(e,t){if(!e||!t)return e;const i=t.length,n=e.length;if(0===i||0===n)return e;let o=n,s=-1;for(;s=e.lastIndexOf(t,o-1),-1!==s&&s+i===o;){if(0===s)return"";o=s}return e.substring(0,o)}function Ule(e,t,i={}){if(!e)throw new Error("Cannot create regex from empty string");t||(e=Ble(e)),i.wholeWord&&(/\B/.test(e.charAt(0))||(e="\\b"+e),/\B/.test(e.charAt(e.length-1))||(e+="\\b"));let n="";return i.global&&(n+="g"),i.matchCase||(n+="i"),i.multiline&&(n+="m"),i.unicode&&(n+="u"),new RegExp(e,n)}function Kle(e){return"^"!==e.source&&"^$"!==e.source&&"$"!==e.source&&"^\\s*$"!==e.source&&!(!e.exec("")||0!==e.lastIndex)}function qle(e){return e.split(/\r\n|\r|\n/)}function jle(e){for(let t=0,i=e.length;t=0;i--){const t=e.charCodeAt(i);if(32!==t&&9!==t)return i}return-1}function Zle(e,t){return et?1:0}function Yle(e,t,i=0,n=e.length,o=0,s=t.length){for(;is)return 1}const r=n-i,a=s-o;return ra?1:0}function Qle(e,t){return Xle(e,t,0,e.length,0,t.length)}function Xle(e,t,i=0,n=e.length,o=0,s=t.length){for(;i=128||a>=128)return Yle(e.toLowerCase(),t.toLowerCase(),i,n,o,s);ede(r)&&(r-=32),ede(a)&&(a-=32);const l=r-a;if(0!==l)return l}const r=n-i,a=s-o;return ra?1:0}function Jle(e){return e>=48&&e<=57}function ede(e){return e>=97&&e<=122}function tde(e){return e>=65&&e<=90}function ide(e,t){return e.length===t.length&&0===Xle(e,t)}function nde(e,t){const i=t.length;return i<=e.length&&0===Xle(e,t,0,i)}function ode(e,t){const i=e.length,n=i-t.length;return n>=0&&0===Xle(e,t,n,i)}function sde(e,t){const i=Math.min(e.length,t.length);let n;for(n=0;n=11904&&e<=55215||e>=63744&&e<=64255||e>=65281&&e<=65374}function _de(e){return e>=127462&&e<=127487||8986===e||8987===e||9200===e||9203===e||e>=9728&&e<=10175||11088===e||11093===e||e>=127744&&e<=128591||e>=128640&&e<=128764||e>=128992&&e<=129008||e>=129280&&e<=129535||e>=129648&&e<=129782}function bde(e){return!!(e&&e.length>0&&65279===e.charCodeAt(0))}function vde(e){return(e%=52)<26?String.fromCharCode(97+e):String.fromCharCode(65+e-26)}function wde(e,t){return 0===e?5!==t&&7!==t:!(2===e&&3===t||4!==e&&2!==e&&3!==e&&4!==t&&2!==t&&3!==t&&(8===e&&(8===t||9===t||11===t||12===t)||!(11!==e&&9!==e||9!==t&&10!==t)||(12===e||10===e)&&10===t||5===t||13===t||7===t||1===e||13===e&&14===t||6===e&&6===t))}function Cde(e,t){if(0===e)return 0;const i=function(e,t){const i=new Tt(t,e);let n=i.prevCodePoint();for(;yde(n)||65039===n||8419===n;){if(0===i.offset)return;n=i.prevCodePoint()}if(!_de(n))return;let o=i.offset;return o>0&&8205===i.prevCodePoint()&&(o=i.offset),o}(e,t);if(void 0!==i)return i;const n=new Tt(t,e);return n.prevCodePoint(),n.offset}function yde(e){return 127995<=e&&e<=127999}function Sde(e,t){if("string"!=typeof e)throw new Jt(t,"string",e)}function xde(e){return e===Yt||e===Qt}function kde(e){return e===Yt}function Lde(e){return e>=qt&&e<=$t||e>=jt&&e<=Gt}function Dde(e,t,i,n){let o="",s=0,r=-1,a=0,l=0;for(let d=0;d<=e.length;++d){if(d2){const e=o.lastIndexOf(i);-1===e?(o="",s=0):(o=o.slice(0,e),s=o.length-1-o.lastIndexOf(i)),r=d,a=0;continue}if(0!==o.length){o="",s=0,r=d,a=0;continue}}t&&(o+=o.length>0?`${i}..`:"..",s=2)}else o.length>0?o+=`${i}${e.slice(r+1,d)}`:o=e.slice(r+1,d),s=d-r-1;r=d,a=0}else l===Zt&&-1!==a?++a:a=-1}return o}function Ide(e,t){!function(e,t){if(null===e||"object"!=typeof e)throw new Jt(t,"Object",e)}(t,"pathObject");const i=t.dir||t.root,n=t.base||`${t.name||""}${o=t.ext,o?`${"."===o[0]?"":"."}${o}`:""}`;var o;return i?i===t.root?`${i}${n}`:`${i}${e}${n}`:n}function Nde(e,t,i){let n,o=-1;for(let s=0;s=97&&r<=122||r>=65&&r<=90||r>=48&&r<=57||45===r||46===r||95===r||126===r||t&&47===r||i&&91===r||i&&93===r||i&&58===r)-1!==o&&(n+=encodeURIComponent(e.substring(o,s)),o=-1),void 0!==n&&(n+=e.charAt(s));else{void 0===n&&(n=e.substr(0,s));const t=wi[r];void 0!==t?(-1!==o&&(n+=encodeURIComponent(e.substring(o,s)),o=-1),n+=t):-1===o&&(o=s)}}return-1!==o&&(n+=encodeURIComponent(e.substring(o))),void 0!==n?n:e}function Ede(e){let t;for(let i=0;i1&&"file"===e.scheme?`//${e.authority}${e.path}`:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,P&&(i=i.replace(/\//g,"\\")),i}function Tde(e,t){const i=t?Ede:Nde;let n="",{scheme:o,authority:s,path:r,query:a,fragment:l}=e;if(o&&(n+=o,n+=":"),(s||"file"===o)&&(n+=mi,n+=mi),s){let e=s.indexOf("@");if(-1!==e){const t=s.substr(0,e);s=s.substr(e+1),e=t.lastIndexOf(":"),-1===e?n+=i(t,!1,!1):(n+=i(t.substr(0,e),!1,!1),n+=":",n+=i(t.substr(e+1),!1,!0)),n+="@"}s=s.toLowerCase(),e=s.lastIndexOf(":"),-1===e?n+=i(s,!1,!0):(n+=i(s.substr(0,e),!1,!0),n+=s.substr(e))}if(r){if(r.length>=3&&47===r.charCodeAt(0)&&58===r.charCodeAt(2)){const e=r.charCodeAt(1);e>=65&&e<=90&&(r=`/${String.fromCharCode(e+32)}:${r.substr(3)}`)}else if(r.length>=2&&58===r.charCodeAt(1)){const e=r.charCodeAt(0);e>=65&&e<=90&&(r=`${String.fromCharCode(e+32)}:${r.substr(2)}`)}n+=i(r,!0,!1)}return a&&(n+="?",n+=i(a,!1,!1)),l&&(n+="#",n+=t?l:Nde(l,!1,!1)),n}function Rde(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+Rde(e.substr(3)):e}}function Ode(e){return e.match(Ci)?e.replace(Ci,e=>Rde(e)):e}function Ade(e,t){return _i.isUri(e)?ide(e.scheme,t):nde(e,t+":")}function Pde(e,...t){return t.some(t=>Ade(e,t))}function Fde(e,t){return(0|e[t+0])>>>0|e[t+1]<<8>>>0}function Wde(e,t,i){e[i+0]=255&t,t>>>=8,e[i+1]=255&t}function Bde(e,t){return e[t]*2**24+65536*e[t+1]+256*e[t+2]+e[t+3]}function Vde(e,t,i){e[i+3]=t,t>>>=8,e[i+2]=t,t>>>=8,e[i+1]=t,t>>>=8,e[i]=t}function Hde(e,t){return e[t]}function zde(e,t,i){e[i]=t}function Ude(e){return Kde(e,0)}function Kde(e,t){switch(typeof e){case"object":return null===e?qde(349,t):Array.isArray(e)?(i=e,n=qde(104579,n=t),i.reduce((e,t)=>Kde(t,e),n)):function(e,t){return t=qde(181387,t),Object.keys(e).sort().reduce((t,i)=>(t=jde(i,t),Kde(e[i],t)),t)}(e,t);case"string":return jde(e,t);case"boolean":return function(e,t){return qde(e?433:863,t)}(e,t);case"number":return qde(e,t);case"undefined":return qde(937,t);default:return qde(617,t)}var i,n}function qde(e,t){return(t<<5)-t+e|0}function jde(e,t){t=qde(149417,t);for(let i=0,n=e.length;i>>n)>>>0}function Gde(e,t=32){return e instanceof ArrayBuffer?function({buffer:e}){let t="";for(let i=0;i>>4],t+=Ei[15&n]}return t}(Ni.wrap(new Uint8Array(e))):(e>>>0).toString(16).padStart(t/4,"0")}function Zde(e,t,i=(e,t)=>e===t){if(e===t)return!0;if(!e||!t)return!1;if(e.length!==t.length)return!1;for(let n=0,o=e.length;ni(e[n],t))}function Qde(e,t){let i=0,n=e-1;for(;i<=n;){const e=(i+n)/2|0,o=t(e);if(o<0)i=e+1;else{if(!(o>0))return e;n=e-1}}return-(i+1)}function Xde(e,t,i){if((e|=0)>=t.length)throw new TypeError("invalid index");const n=t[Math.floor(t.length*Math.random())],o=[],s=[],r=[];for(const a of t){const e=i(a,n);e<0?o.push(a):e>0?s.push(a):r.push(a)}return e!!e)}function nce(e){let t=0;for(let i=0;i0}function rce(e,t=e=>e){const i=new Set;return e.filter(e=>{const n=t(e);return!i.has(n)&&(i.add(n),!0)})}function ace(e,t){let i="number"==typeof t?e:0;"number"==typeof t?i=e:(i=0,t=e);const n=[];if(i<=t)for(let o=i;ot;o--)n.push(o);return n}function lce(e,t,i){const n=e.slice(0,t),o=e.slice(t);return n.concat(i,o)}function dce(e,t){const i=e.indexOf(t);i>-1&&(e.splice(i,1),e.unshift(t))}function cce(e,t){const i=e.indexOf(t);i>-1&&(e.splice(i,1),e.push(t))}function hce(e,t){for(const i of t)e.push(i)}function uce(e,t){const i=[];for(const n of e){const e=t(n);void 0!==e&&i.push(e)}return i}function gce(e){return Array.isArray(e)?e:[e]}function pce(e,t,i,n){const o=mce(e,t);let s=e.splice(o,i);return void 0===s&&(s=[]),function(e,t,i){const n=mce(e,t),o=e.length,s=i.length;e.length=o+s;for(let r=o-1;r>=n;r--)e[r+s]=e[r];for(let r=0;rt(e(i),e(n))}function _ce(e){return(t,i)=>-e(t,i)}function bce(e){return e.reduce((e,t)=>e+t,0)}function vce(){return Bi}function wce(e=Ui){return(t,i)=>Zde(t,i,e)}function Cce(e,t,i){if(void 0!==i){const n=e;return null==n||null==t?t===n:i(n,t)}{const t=e;return(e,i)=>null==e||null==i?i===e:t(e,i)}}function yce(e,t){if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let i=0;i"}}function Dce(e,t,i=Hi.ofCaller()){return void 0!==t?new Ji(new Ki(e,void 0,t),t,void 0,void 0,Ui,i):new Ji(new Ki(void 0,void 0,e),e,void 0,void 0,Ui,i)}function Ice(e,t,i,n=Hi.ofCaller()){return new en(new Ki(e,void 0,t),t,void 0,void 0,Ui,i,n)}function Nce(e,t,i=Hi.ofCaller()){return new Ji(new Ki(e.owner,e.debugName,e.debugReferenceFn),t,void 0,e.onLastObserverRemoved,e.equalsFn??Ui,i)}function Ece(e,t,i=Hi.ofCaller()){return new Ji(new Ki(e.owner,e.debugName,void 0),t,e.changeTracker,void 0,e.equalityComparer??Ui,i)}function Mce(e,t,i=Hi.ofCaller()){let n,o,s;return void 0===t?(n=e,o=void 0):(o=e,n=t),new Ji(new Ki(o,void 0,n),e=>{s?s.clear():s=new De;const t=n(e);return t&&s.add(t),t},void 0,()=>{s&&(s.dispose(),s=void 0)},Ui,i)}function Tce(e){switch(e){case 1:return"dependenciesMightHaveChanged";case 2:return"stale";case 3:return"upToDate";default:return""}}function Rce(e,t=Hi.ofCaller()){return new tn(new Ki(void 0,void 0,e),e,void 0,t)}function Oce(e,t,i=Hi.ofCaller()){return new tn(new Ki(e.owner,e.debugName,e.debugReferenceFn??t),t,void 0,i)}function Ace(e,t,i=Hi.ofCaller()){return new tn(new Ki(e.owner,e.debugName,e.debugReferenceFn??t),t,e.changeTracker,i)}function Pce(e){const t=new De,i=Oce({owner:void 0,debugName:void 0,debugReferenceFn:e},i=>{t.clear(),e(i,t)});return Dle(()=>{i.dispose(),t.dispose()})}function Fce(e){const t=new Error("BugIndicatingErrorRecovery: "+e);$ae(t),console.error("recovered from an error that indicates a bug",t)}function Wce(e,t){const i=new on(e,t);try{e(i)}finally{i.finish()}}function Bce(e){if(nn)e(nn);else{const t=new on(e,void 0);nn=t;try{e(t)}finally{t.finish(),nn=void 0}}}function Vce(e,t,i){e?t(e):Wce(t,i)}function Hce(...e){let t,i,n,o;return 2===e.length?[i,n]=e:[t,i,n,o]=e,new sn(new Ki(t,void 0,n),i,n,()=>sn.globalTransaction,Ui,o??Hi.ofCaller())}function zce(e,t,i,n=Hi.ofCaller()){return new sn(new Ki(e.owner,e.debugName,e.debugReferenceFn??i),t,i,()=>sn.globalTransaction,e.equalsFn??Ui,n)}function Uce(e,t){let i,n,o=!1;return Hce(s=>{const r=Rce(r=>{const a=e.read(r);o?(n&&clearTimeout(n),n=setTimeout(()=>{i=a,s()},t)):(o=!0,i=a)});return{dispose(){r.dispose(),o=!1,i=void 0}}},()=>o?i:e.get())}function Kce(e,t){const i=new rn(!0,t);e.addObserver(i);try{i.beginUpdate(e)}finally{i.endUpdate(e)}return Dle(()=>{e.removeObserver(i)})}function qce(e,t){let i;return Nce({owner:e,debugReferenceFn:t},e=>(i=t(e,i),i))}function jce(e,t,i,n){let o=new an(i,n);return Nce({debugReferenceFn:i,owner:e,onLastObserverRemoved:()=>{o.dispose(),o=new an(i)}},e=>(o.setItems(t.read(e)),o.getItems()))}function $ce(e,t){switch(typeof e){case"number":default:return""+e;case"string":return e.length+2<=t?`"${e}"`:`"${e.substr(0,t-7)}"+...`;case"boolean":return e?"true":"false";case"undefined":return"undefined";case"object":return null===e?"null":Array.isArray(e)?function(e,t){let i="[ ",n=!0;for(const o of e){if(n||(i+=", "),i.length-5>t){i+="...";break}n=!1,i+=`${$ce(o,t-i.length)}`}return i+=" ]",i}(e,t):function(e,t){if("function"==typeof e.toString&&e.toString!==Object.prototype.toString){const i=e.toString();return i.length<=t?i:i.substring(0,t-3)+"..."}const i=xce(e);let n=i?i+"(":"{ ",o=!0;for(const[s,r]of Object.entries(e)){if(o||(n+=", "),n.length-5>t){n+="...";break}o=!1,n+=`${s}: ${$ce(r,t-n.length)}`}return n+=i?")":" }",n}(e,t);case"symbol":return e.toString();case"function":return`[[Function${e.name?" "+e.name:""}]]`}}function Gce(e,t){const i=globalThis;let n,o=[];const{channel:s,handler:r}=function(e){let t;const i=i=>(t=i,{sendNotification:t=>{e.sendNotification(t)},sendRequest:e=>{throw new Error("not supported")}});return{channel:i,handler:{handleRequest:e=>"notification"===e.type?t?.handleNotification(e.data):t?.handleRequest(e.data)}}}({sendNotification:e=>{n?n.sendNotification(e):o.push(e)}});let a;return(i.$$debugValueEditor_debugChannels??(i.$$debugValueEditor_debugChannels={}))[e]=e=>{a=t(),n=e;for(const t of o)e.sendNotification(t);return o=[],r},ln.createClient(s,()=>{if(!a)throw new Error("Not supported");return a})}function Zce(e,t){for(const i in t)e[i]&&"object"==typeof e[i]&&t[i]&&"object"==typeof t[i]?Zce(e[i],t[i]):e[i]=t[i]}function Yce(e,t){for(const i in t)null===t[i]?delete e[i]:e[i]&&"object"==typeof e[i]&&t[i]&&"object"==typeof t[i]?Yce(e[i],t[i]):e[i]=t[i]}function Qce(e,t,i=Hi.ofCaller()){let n;return n="string"==typeof e?new Ki(void 0,e,void 0):new Ki(e,void 0,void 0),new cn(n,t,Ui,i)}function Xce(e,t,i=Hi.ofCaller()){let n;return n="string"==typeof e?new Ki(void 0,e,void 0):new Ki(e,void 0,void 0),new hn(n,t,Ui,i)}function Jce(e){for(;e.firstChild;)e.firstChild.remove()}function ehe(e,t,i,n){return new Sn(e,t,i,n)}function the(e,t){return function(i){return t(new Se(e,i))}}function ihe(e,t,i){return ehe(e,U&&oe.pointerEvents?On.POINTER_DOWN:On.MOUSE_DOWN,t,i)}function nhe(e,t,i){return ehe(e,U&&oe.pointerEvents?On.POINTER_UP:On.MOUSE_UP,t,i)}function ohe(e,t,i){return bt(e,t,i)}function she(e){return pn(e).getComputedStyle(e,null)}function rhe(e,t,i){const n=pn(e),o=n.document;if(e!==o.body)return new Tn(e.clientWidth,e.clientHeight);if(U&&n?.visualViewport)return new Tn(n.visualViewport.width,n.visualViewport.height);if(n?.innerWidth&&n.innerHeight)return new Tn(n.innerWidth,n.innerHeight);if(o.body&&o.body.clientWidth&&o.body.clientHeight)return new Tn(o.body.clientWidth,o.body.clientHeight);if(o.documentElement&&o.documentElement.clientWidth&&o.documentElement.clientHeight)return new Tn(o.documentElement.clientWidth,o.documentElement.clientHeight);throw new Error("Unable to figure out browser width and height")}function ahe(e){let t=e.offsetParent,i=e.offsetTop,n=e.offsetLeft;for(;null!==(e=e.parentNode)&&e!==e.ownerDocument.body&&e!==e.ownerDocument.documentElement;){i-=e.scrollTop;const o=fhe(e)?null:she(e);o&&(n-="rtl"!==o.direction?e.scrollLeft:-e.scrollLeft),e===t&&(n+=Mn.getBorderLeftWidth(e),i+=Mn.getBorderTopWidth(e),i+=e.offsetTop,n+=e.offsetLeft,t=e.offsetParent)}return{left:n,top:i}}function lhe(e){const t=e.getBoundingClientRect(),i=pn(e);return{left:t.left+i.scrollX,top:t.top+i.scrollY,width:t.width,height:t.height}}function dhe(e){let t=e,i=1;do{const e=she(t).zoom;null!=e&&"1"!==e&&(i*=e),t=t.parentElement}while(null!==t&&t!==t.ownerDocument.documentElement);return i}function che(e){const t=Mn.getMarginLeft(e)+Mn.getMarginRight(e);return e.offsetWidth+t}function hhe(e){const t=Mn.getBorderLeftWidth(e)+Mn.getBorderRightWidth(e),i=Mn.getPaddingLeft(e)+Mn.getPaddingRight(e);return e.offsetWidth-t-i}function uhe(e){const t=Mn.getBorderTopWidth(e)+Mn.getBorderBottomWidth(e),i=Mn.getPaddingTop(e)+Mn.getPaddingBottom(e);return e.offsetHeight-t-i}function ghe(e){const t=Mn.getMarginTop(e)+Mn.getMarginBottom(e);return e.offsetHeight+t}function phe(e,t){return Boolean(t?.contains(e))}function mhe(e,t,i){return!!function(e,t,i){for(;e&&e.nodeType===e.ELEMENT_NODE;){if(e.classList.contains(t))return e;if(i)if("string"==typeof i){if(e.classList.contains(i))return null}else if(e===i)return null;e=e.parentNode}return null}(e,t,i)}function fhe(e){return e&&!!e.host&&!!e.mode}function _he(e){return!!bhe(e)}function bhe(e){for(;e.parentNode;){if(e===e.ownerDocument?.body)return null;e=e.parentNode}return fhe(e)?e:null}function vhe(){let e=yhe().activeElement;for(;e?.shadowRoot;)e=e.shadowRoot.activeElement;return e}function whe(e){return vhe()===e}function Che(e){return phe(vhe(),e)}function yhe(){return _n()<=1?r.document:Array.from(fn()).map(({window:e})=>e.document).find(e=>e.hasFocus())??r.document}function She(){return yhe().defaultView?.window??r}function xhe(e){return e instanceof HTMLElement||e instanceof pn(e).HTMLElement}function khe(e){return e instanceof HTMLAnchorElement||e instanceof pn(e).HTMLAnchorElement}function Lhe(e){return e instanceof SVGElement||e instanceof pn(e).SVGElement}function Dhe(e){return e instanceof MouseEvent||e instanceof pn(e).MouseEvent}function Ihe(e){return e instanceof KeyboardEvent||e instanceof pn(e).KeyboardEvent}function Nhe(e){const t=e;return!(!t||"function"!=typeof t.preventDefault||"function"!=typeof t.stopPropagation)}function Ehe(e){return new Pn(e)}function Mhe(e,...t){if(e.append(...t),1===t.length&&"string"!=typeof t[0])return t[0]}function The(e,t){return e.insertBefore(t,e.firstChild),t}function Rhe(e,...t){e.textContent="",Mhe(e,...t)}function Ohe(e,t,i,...n){const o=Fn.exec(t);if(!o)throw new Error("Bad use of emmet");const s=o[1]||"div";let r;return r=e!==Wn.HTML?document.createElementNS(e,s):document.createElement(s),o[3]&&(r.id=o[3]),o[4]&&(r.className=o[4].replace(/\./g," ").trim()),i&&Object.entries(i).forEach(([e,t])=>{void 0!==t&&(/^on\w+$/.test(e)?r[e]=t:"selected"===e?t&&r.setAttribute(e,"true"):r.setAttribute(e,t))}),r.append(...n),r}function Ahe(e,t,...i){return Ohe(Wn.HTML,e,t,...i)}function Phe(...e){for(const t of e)t.style.display="",t.removeAttribute("aria-hidden")}function Fhe(...e){for(const t of e)t.style.display="none",t.setAttribute("aria-hidden","true")}function Whe(e,t){const i=e.devicePixelRatio*t;return Math.max(1,Math.floor(i))/e.devicePixelRatio}function Bhe(e){r.open(e,"_blank","noopener")}function Vhe(e,...t){let i,n;Array.isArray(t[0])?(i={},n=t[0]):(i=t[0]||{},n=t[1]);const o=Hn.exec(e);if(!o||!o.groups)throw new Error("Bad use of h");const s=o.groups.tag||"div",r=document.createElement(s);o.groups.id&&(r.id=o.groups.id);const a=[];if(o.groups.class)for(const d of o.groups.class.split("."))""!==d&&a.push(d);if(void 0!==i.className)for(const d of i.className.split("."))""!==d&&a.push(d);a.length>0&&(r.className=a.join(" "));const l={};if(o.groups.name&&(l[o.groups.name]=r),n)for(const d of n)xhe(d)?r.appendChild(d):"string"==typeof d?r.append(d):"root"in d&&(Object.assign(l,d),r.appendChild(d.root));for(const[d,c]of Object.entries(i))if("className"!==d)if("style"===d)for(const[e,t]of Object.entries(c))r.style.setProperty(Hhe(e),"number"==typeof t?t+"px":""+t);else"tabIndex"===d?r.tabIndex=c:r.setAttribute(Hhe(d),c.toString());return l.root=r,l}function Hhe(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function zhe(e){return"input"===e.tagName.toLowerCase()||"textarea"===e.tagName.toLowerCase()||xhe(e)&&!!e.editContext}function Uhe(e,t){Lhe(e)?e.setAttribute("class",t):e.className=t}function Khe(e,t,i){if(Yhe(e))i(e.read(t));else if(Array.isArray(e))for(const n of e)Khe(n,t,i);else i(e)}function qhe(e,t){let i="";return Khe(e,t,e=>{e&&(0===i.length?i=e:i+=" "+e)}),i}function jhe(e){return!!Yhe(e)||!!Array.isArray(e)&&e.some(e=>jhe(e))}function $he(e){return"number"==typeof e?e+"px":e}function Ghe(e){return!!Yhe(e)||!!Array.isArray(e)&&e.some(e=>Ghe(e))}function Zhe(e,t,i){null==i?e.removeAttribute(Hhe(t)):e.setAttribute(Hhe(t),String(i))}function Yhe(e){return!!e&&void 0!==e.read&&void 0!==e.reportChanges}function Qhe(e){$n&&(Gn.textContent!==e?(Jce(Zn),Jhe(Gn,e)):(Jce(Gn),Jhe(Zn,e)))}function Xhe(e){$n&&(Yn.textContent!==e?(Jce(Qn),Jhe(Yn,e)):(Jce(Yn),Jhe(Qn,e)))}function Jhe(e,t){Jce(e),t.length>jn&&(t=t.substr(0,jn)),e.textContent=t,e.style.visibility="hidden",e.style.visibility="visible"}function eue(e){if(Xn.serviceIds.has(e))return Xn.serviceIds.get(e);const t=function(e,i,n){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");!function(e,t,i){t[Xn.DI_TARGET]===t?t[Xn.DI_DEPENDENCIES].push({id:e,index:i}):(t[Xn.DI_DEPENDENCIES]=[{id:e,index:i}],t[Xn.DI_TARGET]=t)}(t,e,n)};return t.toString=()=>e,Xn.serviceIds.set(e,t),t}function tue(e){return{id:e.id,label:e.label,tooltip:e.tooltip??e.label,class:e.class,enabled:e.enabled??!0,checked:e.checked,run:async(...t)=>e.run(...t)}}function iue(e,t){if(sle(t)){const i=co[t];if(void 0===i)throw new Error(`${e} references an unknown codicon: ${t}`);t=i}return co[e]=t,{id:e}}function nue(){return co}function oue(...e){switch(e.length){case 1:return Vae(1693,"Did you mean {0}?",e[0]);case 2:return Vae(1694,"Did you mean {0} or {1}?",e[0],e[1]);case 3:return Vae(1695,"Did you mean {0}, {1} or {2}?",e[0],e[1],e[2]);default:return}}function sue(e,t){return e.cmp(t)}function rue(e,t){if("string"==typeof e){const t=parseFloat(e);isNaN(t)||(e=t)}return"string"==typeof e||"number"==typeof e?t(e):Fo.INSTANCE}function aue(e){let t=null;for(let i=0,n=e.length;it?1:0}function due(e,t,i,n){return ei?1:tn?1:0}function cue(e,t){if(0===e.type||1===t.type)return!0;if(9===e.type)return 9===t.type&&hue(e.expr,t.expr);if(9===t.type){for(const i of t.expr)if(cue(e,i))return!0;return!1}if(6===e.type){if(6===t.type)return hue(t.expr,e.expr);for(const i of e.expr)if(cue(i,t))return!0;return!1}return e.equals(t)}function hue(e,t){let i=0,n=0;for(;it.command)return 1}return e.weight2-t.weight2}function pue(e){return void 0!==e.command}function mue(e){const t=[],i=new e,{f1:n,menu:o,keybinding:s,...r}=i.desc;if(_o.getCommand(r.id))throw new Error(`Cannot register two commands with the same id: ${r.id}`);if(t.push(_o.registerCommand({id:r.id,handler:(e,...t)=>i.run(e,...t),metadata:r.metadata??{description:i.desc.title}})),Array.isArray(o))for(const a of o)t.push(us.appendMenuItem(a.id,{command:{...r,precondition:null===a.precondition?void 0:r.precondition},...a}));else o&&t.push(us.appendMenuItem(o.id,{command:{...r,precondition:null===o.precondition?void 0:r.precondition},...o}));if(n&&(t.push(us.appendMenuItem(ds.CommandPalette,{command:r,when:r.precondition})),t.push(us.addCommand(r))),Array.isArray(s))for(const a of s)t.push(ns.registerKeybindingRule({...a,id:r.id,when:r.precondition?Po.and(r.precondition,a.when):a.when}));else s&&t.push(ns.registerKeybindingRule({...s,id:r.id,when:r.precondition?Po.and(r.precondition,s.when):s.when}));return{dispose(){kle(t)}}}function fue(e){return 47===e||92===e}function _ue(e){return e.replace(/[\\/]/g,ni.sep)}function bue(e,t=ni.sep){if(!e)return"";const i=e.length,n=e.charCodeAt(0);if(fue(n)){if(fue(e.charCodeAt(1))&&!fue(e.charCodeAt(2))){let n=3;const o=n;for(;ne.length)return!1;if(i){if(!nde(e,t))return!1;if(t.length===e.length)return!0;let i=t.length;return t.charAt(t.length-1)===n&&i--,e.charAt(i)===n}return t.charAt(t.length-1)!==n&&(t+=n),0===e.indexOf(t)}function wue(e){return e>=65&&e<=90||e>=97&&e<=122}function Cue(e){return Mde(e,!0)}function yue(e,t){return e!==js.Off&&e<=t}function Sue(e,t){_o.registerCommand(e,function(e,...i){const n=e.get(Jn),[o,s]=i;ple(_i.isUri(o)),ple(to.isIPosition(s));const r=e.get(io).getModel(o);if(r){const e=to.lift(s);return n.invokeFunction(t,r,e,...i.slice(2))}return e.get(no).createModelReference(o).then(e=>new Promise((o,r)=>{try{o(n.invokeFunction(t,e.object.textEditorModel,to.lift(s),i.slice(2)))}catch(a){r(a)}}).finally(()=>{e.dispose()}))})}function xue(e){return hr.INSTANCE.registerEditorCommand(e),e}function kue(e){const t=new e;return hr.INSTANCE.registerEditorAction(t),t}function Lue(e){return hr.INSTANCE.registerEditorAction(e),e}function Due(e){hr.INSTANCE.registerEditorAction(e)}function Iue(e,t,i){hr.INSTANCE.registerEditorContribution(e,t,i)}function Nue(e){return e.register(),e}function Eue(e,t){const i=e.getCount(),n=e.findTokenIndexAtOffset(t),o=e.getLanguageId(n);let s=n;for(;s+10&&e.getLanguageId(r-1)===o;)r--;return new _r(e,o,r,s+1,e.getStartOffset(r),e.getEndOffset(s))}function Mue(e){return!!(3&e)}function Tue(e,t,i){let n=jle(e);return-1===n&&(n=e.length),function(e,t,i){let n=0;for(let s=0;s255?255:0|e}function Pue(e){return e<0?0:e>4294967295?4294967295:0|e}function Fue(e,t){const i=`${e}/${t.join(",")}`;let n=qr.get(i);return n||(n=new Kr(e,t),qr.set(i,n)),n}function Wue(e){return e.filter(e=>Boolean(e))}function Bue(e){if(!e||"object"!=typeof e)return e;if(e instanceof RegExp)return e;const t=Array.isArray(e)?[]:{};return Object.entries(e).forEach(([e,i])=>{t[e]=i&&"object"==typeof i?Bue(i):i}),t}function Vue(e,t){return Hue(e,t,new Set)}function Hue(e,t,i){if(gle(e))return e;const n=t(e);if(void 0!==n)return n;if(Array.isArray(e)){const n=[];for(const o of e)n.push(Hue(o,t,i));return n}if(rle(e)){if(i.has(e))throw new Error("Cannot clone recursive data-structure");i.add(e);const n={};for(const o in e)Gr.call(e,o)&&(n[o]=Hue(e[o],t,i));return i.delete(e),n}return e}function zue(e,t,i=!0){return rle(e)?(rle(t)&&Object.keys(t).forEach(n=>{n in e?i&&(rle(e[n])&&rle(t[n])?zue(e[n],t[n],i):e[n]=t[n]):e[n]=t[n]}),e):t}function Uue(e,t){if(e===t)return!0;if(null==e||null==t)return!1;if(typeof e!=typeof t)return!1;if("object"!=typeof e)return!1;if(Array.isArray(e)!==Array.isArray(t))return!1;let i,n;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(i=0;io.maxLen){let s=e-o.maxLen/2;return s<0?s=0:n+=s,$ue(e,t,i=i.substring(s,e+o.maxLen/2),n,o)}const s=Date.now(),r=e-1-n;let a=-1,l=null;for(let d=1;!(Date.now()-s>=o.timeBudget);d++){const e=r-o.windowSize*d;t.lastIndex=Math.max(0,e);const n=Gue(t,i,r,a);if(!n&&l)break;if(l=n,e<=0)break;a=e}if(l){const e={word:l[0],startColumn:n+1+l.index,endColumn:n+1+l.index+l[0].length};return t.lastIndex=0,e}return null}function Gue(e,t,i,n){let o;for(;o=e.exec(t);){const t=o.index||0;if(t<=i&&e.lastIndex>=i)return o;if(n>0&&t>n)return null}return null}function Zue(){return pa||(pa=new TextDecoder("UTF-16LE")),pa}function Yue(){return fa||(fa=ble()?Zue():(ma||(ma=new TextDecoder("UTF-16BE")),ma)),fa}function Que(e,t,i){const n=new Uint16Array(e.buffer,t,i);return i>0&&(65279===n[0]||65534===n[0])?function(e,t,i){const n=[];let o=0;for(let s=0;s=0&&n.push(t);for(const t of s.close)t.indexOf(e)>=0&&n.push(t)}}function Jue(e,t){return e.length-t.length}function ege(e){if(e.length<=1)return e;const t=[],i=new Set;for(const n of e)i.has(n)||(t.push(n),i.add(n));return t}function tge(e){const t=/^[\w ]+$/.test(e);return e=Ble(e),t?`\\b${e}\\b`:e}function ige(e,t){return Ule(`(${e.map(tge).join(")|(")})`,!0,t)}function nge(e){return e.global&&(e.lastIndex=0),!0}function oge(e,t){const i=Object.create(null);for(const n in e)sge(i,n,e[n],t);return i}function sge(e,t,i,n){const o=t.split("."),s=o.pop();let r=e;for(let l=0;l""!==e&&""!==t)}function pge(e,t,i,n){let o=t.getLanguageConfiguration(e);if(!o){if(!n.isRegisteredLanguageId(e))return new dl(e,{});o=new dl(e,{})}const s=function(e,t){const i=t.getValue(ol.brackets,{overrideIdentifier:e}),n=t.getValue(ol.colorizedBracketPairs,{overrideIdentifier:e});return{brackets:mge(i),colorizedBracketPairs:mge(n)}}(o.languageId,i),r=_ge([o.underlyingConfig,s]);return new dl(o.languageId,r)}function mge(e){if(Array.isArray(e))return e.map(e=>{if(Array.isArray(e)&&2===e.length)return[e[0],e[1]]}).filter(e=>!!e)}function fge(e,t,i){let n=$le(e.getLineContent(t));return n.length>i-1&&(n=n.substring(0,i-1)),n}function _ge(e){let t={comments:void 0,brackets:void 0,wordPattern:void 0,indentationRules:void 0,onEnterRules:void 0,autoClosingPairs:void 0,surroundingPairs:void 0,autoCloseBefore:void 0,folding:void 0,colorizedBracketPairs:void 0,__electricCharacterSupport:void 0};for(const i of e)t={comments:i.comments||t.comments,brackets:i.brackets||t.brackets,wordPattern:i.wordPattern||t.wordPattern,indentationRules:i.indentationRules||t.indentationRules,onEnterRules:i.onEnterRules||t.onEnterRules,autoClosingPairs:i.autoClosingPairs||t.autoClosingPairs,surroundingPairs:i.surroundingPairs||t.surroundingPairs,autoCloseBefore:i.autoCloseBefore||t.autoCloseBefore,folding:i.folding||t.folding,colorizedBracketPairs:i.colorizedBracketPairs||t.colorizedBracketPairs,__electricCharacterSupport:i.__electricCharacterSupport||t.__electricCharacterSupport};return t}function bge(e,t){e.tokenization.forceTokenization(t.lineNumber);const i=e.tokenization.getLineTokens(t.lineNumber),n=Eue(i,t.column-1),o=0===n.firstCharOffset,s=i.getLanguageId(0)===n.languageId;return!o&&!s}function vge(e,t,i,n){t.tokenization.forceTokenization(i.startLineNumber);const o=t.getLanguageIdAtPosition(i.startLineNumber,i.startColumn),s=n.getLanguageConfiguration(o);if(!s)return null;const r=new vl(t,n).getProcessedTokenContextAroundRange(i),a=r.previousLineProcessedTokens.getLineContent(),l=r.beforeRangeProcessedTokens.getLineContent(),d=r.afterRangeProcessedTokens.getLineContent(),c=s.onEnter(e,a,l,d);if(!c)return null;const h=c.indentAction;let u=c.appendText;const g=c.removeText||0;u?h===ra.Indent&&(u="\t"+u):u=h===ra.Indent||h===ra.IndentOutdent?"\t":"";let p=fge(t,i.startLineNumber,i.startColumn);return g&&(p=p.substring(0,p.length-g)),{indentAction:h,appendText:u,removeText:g,indentation:p}}function wge(e,t){if(t<=0)return"";xl[e]||(xl[e]=["",e]);const i=xl[e];for(let n=i.length;n<=t;n++)i[n]=i[n-1]+e;return i[t]}function Cge(e,t,i,n=!0,o){if(e<4)return null;const s=o.getLanguageConfiguration(t.tokenization.getLanguageId()).indentRulesSupport;if(!s)return null;const r=new bl(t,s,o);if(i<=1)return{indentation:"",action:null};for(let l=i-1;l>0&&""===t.getLineContent(l);l--)if(1===l)return{indentation:"",action:null};const a=function(e,t,i){const n=e.tokenization.getLanguageIdAtPosition(t,0);if(t>1){let o,s=-1;for(o=t-1;o>=1;o--){if(e.tokenization.getLanguageIdAtPosition(o,0)!==n)return s;const t=e.getLineContent(o);if(!i.shouldIgnore(o)&&!/^\s+$/.test(t)&&""!==t)return o;s=o}}return-1}(t,i,r);if(a<0)return null;if(a<1)return{indentation:"",action:null};if(r.shouldIncrease(a)||r.shouldIndentNextLine(a))return{indentation:$le(t.getLineContent(a)),action:ra.Indent,line:a};if(r.shouldDecrease(a))return{indentation:$le(t.getLineContent(a)),action:null,line:a};{if(1===a)return{indentation:$le(t.getLineContent(a)),action:null,line:a};const e=a-1,i=s.getIndentMetadata(t.getLineContent(e));if(!(3&i)&&4&i){let i=0;for(let t=e-1;t>0;t--)if(!r.shouldIndentNextLine(t)){i=t;break}return{indentation:$le(t.getLineContent(i+1)),action:null,line:i+1}}if(n)return{indentation:$le(t.getLineContent(a)),action:null,line:a};for(let n=a;n>0;n--){if(r.shouldIncrease(n))return{indentation:$le(t.getLineContent(n)),action:ra.Indent,line:n};if(r.shouldIndentNextLine(n)){let e=0;for(let t=n-1;t>0;t--)if(!r.shouldIndentNextLine(n)){e=t;break}return{indentation:$le(t.getLineContent(e+1)),action:null,line:e+1}}if(r.shouldDecrease(n))return{indentation:$le(t.getLineContent(n)),action:null,line:n}}return{indentation:$le(t.getLineContent(1)),action:null,line:1}}}function yge(e,t,i,n,o,s){if(e<4)return null;const r=s.getLanguageConfiguration(i);if(!r)return null;const a=s.getLanguageConfiguration(i).indentRulesSupport;if(!a)return null;const l=new bl(t,a,s),d=Cge(e,t,n,void 0,s);if(d){const i=d.line;if(void 0!==i){let s=!0;for(let e=i;ee.getLineCount()?null:n.getIndentMetadata(e.getLineContent(t)):null}function xge(e,t){return" "===e?5===t||6===t?6:5:4}function kge(e,t){return!(!Dge(e)||Dge(t))||5!==e&&Lge(e)!==Lge(t)}function Lge(e){return 6===e||5===e?"space":e}function Dge(e){return 4===e||5===e||6===e}function Ige(e,t,i,n,o){if("never"===e.autoClosingOvertype)return!1;if(!e.autoClosingPairs.autoClosingPairsCloseSingleChar.has(o))return!1;for(let s=0,r=i.length;s2?l.charCodeAt(a.column-2):0)&&d)return!1;if("auto"===e.autoClosingOvertype){let e=!1;for(let t=0,i=n.length;t{if(void 0!==i)for(const[s,r]of t)if(i===s)return void o(e,r)})}function tpe(){let e="";return g||p?(e+="no-minimap-shadow ",e+="enable-user-select "):e+="no-user-select ",F&&(e+="mac "),e}function ipe(e){const t=Bue(e);return function(e){Oc.items.forEach(t=>t.apply(e))}(t),t}function npe(e=r.document.head,t,i){const n=document.createElement("style");if(n.type="text/css",n.media="screen",t?.(n),e.appendChild(n),i&&i.add(Dle(()=>n.remove())),e===r.document.head){const e=new Set;jc.set(n,e),i&&i.add(Dle(()=>jc.delete(n)));for(const{window:t,disposables:o}of fn()){if(t===r)continue;const s=o.add(ope(n,e,t));i?.add(s)}}return n}function ope(e,t,i){const n=new De,o=e.cloneNode(!0);i.document.head.appendChild(o),n.add(Dle(()=>o.remove()));for(const s of rpe(e))o.sheet?.insertRule(s.cssText,o.sheet?.cssRules.length);return n.add(Rn.observe(e,n,{childList:!0,subtree:c,characterData:c})(()=>{o.textContent=e.textContent})),t.add(o),n.add(Dle(()=>t.delete(o))),n}function spe(){return Gc||(Gc=npe()),Gc}function rpe(e){return e?.sheet?.rules?e.sheet.rules:e?.sheet?.cssRules?e.sheet.cssRules:[]}function ape(e,t,i=spe()){if(i&&t){i.sheet?.insertRule(`${e} {${t}}`,0);for(const n of jc.get(i)??[])ape(e,t,n)}}function lpe(e,t=spe()){if(!t)return;const i=rpe(t),n=[];for(let o=0;o=0;o--)t.sheet?.deleteRule(n[o]);for(const o of jc.get(t)??[])lpe(e,o)}function dpe(e){return"string"==typeof e.selectorText}function cpe(e){const t=new De,i=t.add(new $c);return t.add(Rce(t=>{i.setStyle(e.read(t))})),t}function hpe(e,t){const i=Math.pow(10,t);return Math.round(e*i)/i}function upe(e){return`--vscode-${e.replace(/\./g,"-")}`}function gpe(e){return`var(${upe(e)})`}function ppe(e,t){return`var(${upe(e)}, ${t})`}function mpe(e,t,i,n,o){return ih.registerColor(e,t,i,n,o)}function fpe(e,t){return{op:0,value:e,factor:t}}function _pe(e,t){return{op:1,value:e,factor:t}}function bpe(e,t){return{op:2,value:e,factor:t}}function vpe(...e){return{op:4,values:e}}function wpe(e,t,i,n){return{op:5,value:e,background:t,factor:i,transparency:n}}function Cpe(e,t){if(null!==e)return"string"==typeof e?"#"===e[0]?eh.fromHex(e):t.getColor(e):e instanceof eh?e:"object"==typeof e?function(e,t){switch(e.op){case 0:return Cpe(e.value,t)?.darken(e.factor);case 1:return Cpe(e.value,t)?.lighten(e.factor);case 2:return Cpe(e.value,t)?.transparent(e.factor);case 7:{const i=Cpe(e.color,t)||eh.transparent,n=Cpe(e.with,t)||eh.transparent;return i.mix(n,e.ratio)}case 3:{const i=Cpe(e.background,t);return i?Cpe(e.value,t)?.makeOpaque(i):Cpe(e.value,t)}case 4:for(const i of e.values){const e=Cpe(i,t);if(e)return e}return;case 6:return Cpe(t.defines(e.if)?e.then:e.else,t);case 5:{const i=Cpe(e.value,t);if(!i)return;const n=Cpe(e.background,t);return n?i.isDarkerThan(n)?eh.getLighterColor(i,n,e.factor).transparent(e.transparency):eh.getDarkerColor(i,n,e.factor).transparent(e.transparency):i.transparent(e.factor*e.transparency)}default:throw ele()}}(e,t):void 0}function ype(e){const t=lhe(e);return new pp(t.left,t.top,t.width,t.height)}function Spe(e,t,i){const n=t.width/e.offsetWidth,o=t.height/e.offsetHeight;return new mp((i.x-t.x)/n,(i.y-t.y)/o)}function xpe(e){return e.replace(/(^[A-Z])/,([e])=>e.toLowerCase()).replace(/([A-Z])/g,([e])=>`-${e.toLowerCase()}`)}function kpe(e,t){if(0===e.lineContent.length){if(e.lineDecorations.length>0){t.appendString("");let i=0,n=0,o=0;for(const r of e.lineDecorations)1!==r.type&&2!==r.type||(t.appendString(''),1===r.type&&(o|=1,i++),2===r.type&&(o|=2,n++));t.appendString("");const s=new Vp(1,i+n);return s.setColumnInfo(1,i,0,0),new Hp(s,o)}return e.renderNewLineWhenEmpty?t.appendString("\n"):t.appendString(""),new Hp(new Vp(0,0),0)}return function(e,t){const i=e.fontIsMonospace,n=e.canUseHalfwidthRightwardsArrow,o=e.containsForeignElements,s=e.lineContent,r=e.len,a=e.isOverflowing,l=e.overflowingCharCount,d=e.parts,c=e.fauxIndentLength,h=e.tabSize,u=e.startVisibleColumn,g=e.spaceWidth,p=e.renderSpaceCharCode,m=e.renderWhitespace,f=e.renderControlCharacters,_=new Vp(r+1,d.length);let b=!1,v=0,w=u,C=0,y=0,S=0;t.appendString("");for(let x=0,k=d.length;x=c&&(i+=n)}}for(L&&(t.appendString(' style="width:'),t.appendString(String(g*e)),t.appendString('px"')),t.appendASCIICharCode(62);v1?t.appendCharCode(8594):t.appendCharCode(65515);for(let e=2;e<=i;e++)t.appendCharCode(160)}else e=2,i=1,t.appendCharCode(p),t.appendCharCode(8204);C+=e,y+=i,v>=c&&(w+=i)}}else for(t.appendASCIICharCode(62);v=c&&(w+=n)}D?S++:S=0,v>=r&&!b&&e.isPseudoAfter()&&(b=!0,_.setColumnInfo(v+1,x,C,y)),t.appendString("")}return b||_.setColumnInfo(r+1,d.length-1,C,y),a&&(t.appendString(''),t.appendString(Vae(796,"Show more ({0})",function(e){return e<1024?Vae(797,"{0} chars",e):e<1048576?`${(e/1024).toFixed(1)} KB`:`${(e/1024/1024).toFixed(1)} MB`}(l))),t.appendString("")),t.appendString(""),new Hp(_,o)}(function(e){const t=e.lineContent;let i,n,o;-1!==e.stopRenderingLineAfter&&e.stopRenderingLineAfter0&&(s[r++]=new Fp(n,"",0,!1));let a=n;for(let l=0,d=i.getCount();l=o){const i=!!t&&gde(e.substring(a,o));s[r++]=new Fp(o,c,0,i);break}const h=!!t&&gde(e.substring(a,d));s[r++]=new Fp(d,c,0,h),a=d}return s}(t,e.containsRTL,e.lineTokens,e.fauxIndentLength,o);e.renderControlCharacters&&!e.isBasicASCII&&(s=function(e,t){const i=[];let n=new Fp(0,"",0,!1),o=0;for(const s of t){const t=s.endIndex;for(;on.endIndex&&(n=new Fp(o,s.type,s.metadata,s.containsRTL),i.push(n)),n=new Fp(o+1,"mtkcontrol",s.metadata,!1),i.push(n));o>n.endIndex&&(n=new Fp(t,s.type,s.metadata,s.containsRTL),i.push(n))}return i}(t,s)),(4===e.renderWhitespace||1===e.renderWhitespace||2===e.renderWhitespace&&e.selectionsOnLine||3===e.renderWhitespace&&!e.continuesWithWrappedLine)&&(s=function(e,t,i,n){const o=e.continuesWithWrappedLine,s=e.fauxIndentLength,r=e.tabSize,a=e.startVisibleColumn,l=e.useMonospaceOptimizations,d=e.selectionsOnLine,c=1===e.renderWhitespace,h=3===e.renderWhitespace,u=e.renderSpaceWidth!==e.spaceWidth,g=[];let p=0,m=0,f=n[m].type,_=n[m].containsRTL,b=n[m].endIndex;const v=n.length;let w,C=!1,y=jle(t);-1===y?(C=!0,y=i,w=i):w=Gle(t);let S=!1,x=0,k=d&&d[x],L=a%r;for(let I=s;Iw)o=!0;else if(9===e)o=!0;else if(32===e)if(c)if(S)o=!0;else{const e=I+1w),o&&_&&I>=y&&I<=w&&(o=!1),S){if(!o||!l&&L>=r){if(u)for(let e=(p>0?g[p-1].endIndex:s)+1;e<=I;e++)g[p++]=new Fp(e,"mtkw",1,!1);else g[p++]=new Fp(I,"mtkw",1,!1);L%=r}}else(I===b||o&&I>s)&&(g[p++]=new Fp(I,f,0,_),L%=r);for(9===e?L=r:fde(e)?L+=2:L++,S=o;I===b&&(m++,m0?t.charCodeAt(i-1):0,n=i>1?t.charCodeAt(i-2):0;32===e&&32!==n&&9!==n||(D=!0)}else D=!0;if(D)if(u)for(let I=(p>0?g[p-1].endIndex:s)+1;I<=i;I++)g[p++]=new Fp(I,"mtkw",1,!1);else g[p++]=new Fp(i,"mtkw",1,!1);else g[p++]=new Fp(i,f,0,_);return g}(e,t,o,s));let r=0;if(e.lineDecorations.length>0){for(let t=0,i=e.lineDecorations.length;td&&(d=e.startOffset,a[l++]=new Fp(d,n,c,u)),!(e.endOffset+1<=t)){d=t,a[l++]=new Fp(d,n+" "+e.className,c|e.metadata,u);break}d=e.endOffset+1,a[l++]=new Fp(d,n+" "+e.className,c|e.metadata,u),r++}t>d&&(d=t,a[l++]=new Fp(d,n,c,u))}const c=i[i.length-1].endIndex;if(r=50&&(o[s++]=new Fp(d+1,t,r,l),c=d+1,d=-1);c!==a&&(o[s++]=new Fp(a,t,r,l))}else o[s++]=i;n=a}else for(let r=0,a=t.length;r50){const t=e.type,r=e.metadata,l=e.containsRTL,d=Math.ceil(a/50);for(let e=1;e=8234&&e<=8238||e>=8294&&e<=8297||e>=8206&&e<=8207||1564===e}function Ipe(e){return e.toString(16).toUpperCase().padStart(4,"0")}function Npe(e){return e===Kp.HIGH_CONTRAST_DARK||e===Kp.HIGH_CONTRAST_LIGHT}function Epe(e){return e===Kp.DARK||e===Kp.HIGH_CONTRAST_DARK}function Mpe(e,t,i,n){return new Qp(e,t,i,n)}function Tpe(e,t,i,n){return new Yp(e,t,i,n)}function Rpe(e,t,i){const n=t.textContent.length;let o=-1;for(;t;)t=t.previousSibling,o++;return e.getColumn(new Bp(o,i),n)}function Ope(e){return{isAfterLines:!1,horizontalDistanceToText:e}}function Ape(e,t,i){let n=null,o=null;if("function"==typeof i.value?(n="value",o=i.value,0!==o.length&&console.warn("Memoize should only be used in functions with zero parameters")):"function"==typeof i.get&&(n="get",o=i.get),!o)throw new Error("not supported");const s=`$memoize$${t}`;i[n]=function(...e){return this.hasOwnProperty(s)||Object.defineProperty(this,s,{configurable:!1,enumerable:!1,writable:!1,value:o.apply(this,e)}),this[s]}}function Ppe(e,t){const i=t-e;return function(t){return e+i*(1-function(e){return Math.pow(e,3)}(1-t))}}function Fpe(e,t,i,n){const o=e.getPlainTextToCopy(t,i,P),s=e.model.getEOL(),r=i&&1===t.length&&t[0].isEmpty(),a=Array.isArray(o)?o:null,l=Array.isArray(o)?o.join(s):o;let d,c=null;if(qm.forceCopyWithSyntaxHighlighting||n&&l.length<65536){const n=e.getRichTextToCopy(t,i);n&&(d=n.html,c=n.mode)}return{isFromEmptySelection:r,multicursorText:a,text:l,html:d,mode:c}}function Wpe(e){return`${e}-${Zm()}`}function Bpe(e,t){const i=qae();if(i?.createTrustedTypesPolicy)try{return i.createTrustedTypesPolicy(e,t)}catch(n){return void $ae(n)}try{return globalThis.trustedTypes?.createPolicy(e,t)}catch(n){return void $ae(n)}}function Vpe(e,t,...i){try{return e.call(t,...i)}catch{return null}}function Hpe(e){return{id:e}}function zpe(e){switch(e){case Kp.DARK:return qp.VS_DARK;case Kp.HIGH_CONTRAST_DARK:return qp.HC_BLACK;case Kp.HIGH_CONTRAST_LIGHT:return qp.HC_LIGHT;default:return qp.VS}}function Upe(e){return kf.onColorThemeChange(e)}function Kpe(e,t,i=e.length-1){const n=function(e,t,i=e.length-1){for(let n=i;n>=0;n--)if(t(e[n],n))return n;return-1}(e,t,i);if(-1!==n)return e[n]}function qpe(e,t){const i=jpe(e,t);return-1===i?void 0:e[i]}function jpe(e,t,i=0,n=e.length){let o=i,s=n;for(;o0&&(i=o)}return i}function Zpe(e,t){if(0===e.length)return;let i=e[0];for(let n=1;n=0&&(i=o)}return i}function Ype(e,t){return Gpe(e,(e,i)=>-t(e,i))}function Qpe(e,t){if(0===e.length)return-1;let i=0;for(let n=1;n0&&(i=n);return i}function Xpe(e,t){let i=0,n=0;const o=e.length;for(;n1===e)}function nme(e,t){return ome(e,t.range,e=>2===e)}function ome(e,t,i){for(let n=t.startLineNumber;n<=t.endLineNumber;n++){const o=e.tokenization.getLineTokens(n),s=n===t.startLineNumber,r=n===t.endLineNumber;let a=s?o.findTokenIndexAtOffset(t.startColumn-1):0;for(;at.endColumn-1);){if(!i(o.getStandardTokenType(a)))return!1;a++}}return!0}function sme(e){return new gv(e)}function rme(e){return new pv(e.lineNumber,e.ranges.map(sme))}function ame(e){return e<0?-e:e}function lme(e){if(!e)throw new Error(`Value "${e}" cannot be null`);return e}function dme(e,t,i){let n=new t.ResizeObserver(t=>{const o=t.find(t=>t.target===e);if(!o)return;if(!("devicePixelContentBoxSize"in o))return n?.disconnect(),void(n=void 0);const s=o.devicePixelContentBoxSize[0].inlineSize,r=o.devicePixelContentBoxSize[0].blockSize;s>0&&r>0&&i(s,r)});try{n.observe(e,{box:["device-pixel-content-box"]})}catch{throw n.disconnect(),n=void 0,new y("Could not observe device pixel dimensions")}return Dle(()=>n?.disconnect())}function cme(e,t,i){let n=e.get(t);n||(n=[],e.set(t,n)),n.push(i)}function hme(e){return{object:e,dispose:()=>e.destroy()}}function ume(e,t){let i,n=!0;return function(e,t){const i=new De,n=Ace({owner:e.owner,debugName:e.debugName,debugReferenceFn:e.debugReferenceFn??t,changeTracker:e.changeTracker},(e,n)=>{i.clear(),t(e,n,i)});return Dle(()=>{n.dispose(),i.dispose()})}({changeTracker:{createChangeSummary:()=>({deltas:[],didChange:!1}),handleChange:(t,i)=>{if(t.didChange(e)){const e=t.change;void 0!==e&&i.deltas.push(e),i.didChange=!0}return!0}}},(o,s)=>{const r=e.read(o),a=i;s.didChange&&(i=r,t(r,a,s.deltas)),n&&(n=!1,i=r)})}function gme(e,t){const i=new De,n=ume(e,(e,n,o)=>{i.clear(),t(e,n,o,i)});return{dispose(){n.dispose(),i.dispose()}}}function pme(e,t){return!!uw.includes(e)}function mme(e,t){return e.isBasicASCII&&t.useMonospaceOptimizations?new gw(e):new pw(e)}function fme(e){switch(e){case"lighter":case"normal":return 400;case"bolder":case"bold":return 700}return parseInt(e)}function _me(e){return e.endsWith("%")?parseFloat(e.substring(0,e.length-1))/100:e.match(/^\d+(?:\.\d*)/)?parseFloat(e):1}function bme(e){switch(e){case"lighter":case"normal":return 400;case"bolder":case"bold":return 700}return parseInt(e)}function vme(e){return e.endsWith("%")?parseFloat(e.substring(0,e.length-1))/100:e.match(/^\d+(?:\.\d*)/)?parseFloat(e):1}function wme(e,t){if(1===e.get(2)){const e=t.lookupKeybinding("editor.action.toggleScreenReaderAccessibilityMode")?.getAriaLabel(),i=t.lookupKeybinding("workbench.action.showCommands")?.getAriaLabel(),n=t.lookupKeybinding("workbench.action.openGlobalKeybindings")?.getAriaLabel(),o=Vae(61,"The editor is not accessible at this time.");return e?Vae(62,"{0} To enable screen reader optimized mode, use {1}",o,e):i?Vae(63,"{0} To enable screen reader optimized mode, open the quick pick with {1} and run the command Toggle Screen Reader Accessibility Mode, which is currently not triggerable via keyboard.",o,i):n?Vae(64,"{0} Please assign a keybinding for the command Toggle Screen Reader Accessibility Mode by accessing the keybindings editor with {1} and run it.",o,n):o}return e.get(8)}function Cme(e){let t=0,i=-1;for(;i=e.indexOf("\n",i+1),-1!==i;)t++;return t}function yme(e,t,i,n){if(0===t.length)return 0;const o=e.createElement("div");o.style.position="absolute",o.style.top="-50000px",o.style.width="50000px";const s=e.createElement("span");Wge(s,i),s.style.whiteSpace="pre",s.style.tabSize=n*i.spaceWidth+"px",s.append(t),o.appendChild(s),e.body.appendChild(o);const r=s.offsetWidth;return o.remove(),r}function Sme(e,t,i,n){return e.addEventListener(t,i,n),{dispose(){e.removeEventListener(t,i)}}}function xme(e,t){e=e.slice();const i=[];let n=0;for(const o of t.replacements){for(;;){const t=e[0];if(!t||t.endExclusive>=o.replaceRange.start)break;e.shift(),i.push(t.delta(n))}const t=[];for(;;){const i=e[0];if(!i||!i.intersectsOrTouches(o.replaceRange))break;e.shift(),t.push(i)}for(let i=t.length-1;i>=0;i--){let n=t[i];const s=n.intersect(o.replaceRange).length;n=n.deltaEnd(-s+(0===i?o.newText.length:0));const r=n.start-o.replaceRange.start;r>0&&(n=n.delta(-r)),0!==i&&(n=n.delta(o.newText.length)),n=n.delta(-(o.newText.length-o.replaceRange.length)),e.unshift(n)}n+=o.newText.length-o.replaceRange.length}for(;;){const t=e[0];if(!t)break;e.shift(),i.push(t.delta(n))}return i}function kme(e,t){if(e.lineNumber===t.lineNumber&&e.column===Number.MAX_SAFE_INTEGER)return mr.fromPositions(t,t);if(!e.isBeforeOrEqual(t))throw new y("start must be before end");return new mr(e.lineNumber,e.column,t.lineNumber,t.column)}function Lme(e){try{return e()}catch(t){return $ae(t),null}}function Dme(e){return null==e||e===Xr.Right||e===Xr.Both}function Ime(e){return null==e||e===Xr.Left||e===Xr.Both}function Nme(e,t,i,n,o,s){if(0!==s){const e=String(s);o.appendString('
');const r=e.length;let a=t,l=0;const d=[],c=[];let h=0");for(let u=0;u"),d[u]=l,c[u]=a;const t=h;h=u+1"),d[e.length]=l,c[e.length]=a,o.appendString("
"),[d,c]}function Eme(e,t,i,n){if(i.length<=1)return null;const o=Array.prototype.slice.call(t.children,0),s=[];try{Mme(e,o,n,0,null,i.length-1,null,s)}catch(r){return console.log(r),null}return 0===s.length?null:(s.push(i.length),s)}function Mme(e,t,i,n,o,s,r,a){if(n===s)return;if(o=o||Tme(e,t,i[n],i[n+1]),r=r||Tme(e,t,i[s],i[s+1]),Math.abs(o[0].top-r[0].top)<=.1)return;if(n+1===s)return void a.push(s);const l=n+(s-n)/2|0,d=Tme(e,t,i[l],i[l+1]);Mme(e,t,i,n,o,l,d,a),Mme(e,t,i,l,d,s,r,a)}function Tme(e,t,i,n){return e.setStart(t[i/16384|0].firstChild,i%16384),e.setEnd(t[n/16384|0].firstChild,n%16384),e.getClientRects()}function Rme(e){let t=0,i=0,n=0,o=0;for(let s=0,r=e.length;s=JC&&(i-=e%JC),i}function Bme(e,t){return e.reduce((e,i)=>Wme(e,t(i)),0)}function Vme(e,t){return e===t}function Hme(e,t){const i=e,n=t;if(n-i<=0)return 0;const o=Math.floor(i/JC),s=Math.floor(n/JC),r=n-s*JC;return o===s?Ame(0,r-(i-o*JC)):Ame(s-o,r)}function zme(e,t){return e=t}function qme(e){return Ame(e.lineNumber-1,e.column-1)}function jme(e,t){const i=e,n=Math.floor(i/JC),o=i-n*JC,s=t,r=Math.floor(s/JC);return new mr(n+1,o+1,r+1,s-r*JC+1)}function $me(e,t=!1){if(0===e.length)return null;if(1===e.length)return e[0];let i=e.length;for(;i>3;){const n=i>>1;for(let o=0;o=3?e[2]:null,t)}function Gme(e,t){return Math.abs(e.listHeight-t.listHeight)}function Zme(e,t){return e.listHeight===t.listHeight?cy.create23(e,t,null,!1):e.listHeight>t.listHeight?function(e,t){let i=e=e.toMutable();const n=[];let o;for(;;){if(t.listHeight===i.listHeight){o=t;break}if(4!==i.kind)throw new Error("unexpected");n.push(i),i=i.makeLastElementMutable()}for(let s=n.length-1;s>=0;s--){const e=n[s];o?e.childrenLength>=3?o=cy.create23(e.unappendChild(),o,null,!1):(e.appendChildOfSameHeight(o),o=void 0):e.handleChildrenChanged()}return o?cy.create23(e,o,null,!1):e}(e,t):function(e,t){let i=e=e.toMutable();const n=[];for(;t.listHeight!==i.listHeight;){if(4!==i.kind)throw new Error("unexpected");n.push(i),i=i.makeFirstElementMutable()}let o=t;for(let s=n.length-1;s>=0;s--){const e=n[s];o?e.childrenLength>=3?o=cy.create23(o,e.unprependChild(),null,!1):(e.prependChildOfSameHeight(o),o=void 0):e.handleChildrenChanged()}return o?cy.create23(o,e,null,!1):e}(t,e)}function Yme(e,t=-1){for(;;){if(++t>=e.childrenLength)return-1;if(e.getChild(t))return t}}function Qme(e){return e.length>0?e[e.length-1]:void 0}function Xme(e,t,i,n){return new Dy(e,t,i,n).parseDocument()}function Jme(e,t){if(0===e.length)return t;if(0===t.length)return e;const i=new Pi(efe(e)),n=efe(t);n.push({modified:!1,lengthBefore:void 0,lengthAfter:void 0});let o=i.dequeue();function s(e){if(void 0===e){const e=i.takeWhile(e=>!0)||[];return o&&e.unshift(o),e}const t=[];for(;o&&!Ome(e);){const[n,s]=o.splitAt(e);t.push(n),e=Hme(n.lengthAfter,e),o=s??i.dequeue()}return Ome(e)||t.push(new Iy(!1,e,e)),t}const r=[];function a(e,t,i){if(r.length>0&&Vme(r[r.length-1].endOffset,e)){const e=r[r.length-1];r[r.length-1]=new ey(e.startOffset,t,Wme(e.newLength,i))}else r.push({startOffset:e,endOffset:t,newLength:i})}let l=0;for(const d of n){const e=s(d.lengthBefore);if(d.modified){const t=Wme(l,Bme(e,e=>e.lengthBefore));a(l,t,d.lengthAfter),l=t}else for(const t of e){const e=l;l=Wme(l,t.lengthBefore),t.modified&&a(e,l,t.lengthAfter)}}return r}function efe(e){const t=[];let i=0;for(const n of e){const e=Hme(i,n.startOffset);Ome(e)||t.push(new Iy(!1,e,e));const o=Hme(n.startOffset,n.endOffset);t.push(new Iy(!0,o,n.newLength)),i=n.endOffset}return t}function tfe(e,t,i,n){if(4===e.kind||2===e.kind){const o=[];for(const n of e.children)i=Wme(t,n.length),o.push({nodeOffsetStart:t,nodeOffsetEnd:i}),t=i;for(let t=o.length-1;t>=0;t--){const{nodeOffsetStart:i,nodeOffsetEnd:s}=o[t];if(zme(i,n)){const o=tfe(e.children[t],i,s,n);if(o)return o}}return null}if(3===e.kind)return null;if(1===e.kind){const n=jme(t,i);return{bracketInfo:e.bracketInfo,range:n}}return null}function ife(e,t,i,n){if(4===e.kind||2===e.kind){for(const o of e.children){if(zme(n,i=Wme(t,o.length))){const e=ife(o,t,i,n);if(e)return e}t=i}return null}if(3===e.kind)return null;if(1===e.kind){const n=jme(t,i);return{bracketInfo:e.bracketInfo,range:n}}return null}function nfe(e,t,i,n,o,s,r,a,l,d,c=!1){if(r>200)return!0;e:for(;;)switch(e.kind){case 4:{const a=e.childrenLength;for(let c=0;c200)return!0;let l=!0;if(2===e.kind){let d=0;if(a){let t=a.get(e.openingBracket.text);void 0===t&&(t=0),d=t,t++,a.set(e.openingBracket.text,t)}const c=Wme(t,e.openingBracket.length);let h=-1;if(s.includeMinIndentation&&(h=e.computeMinIndentation(t,s.textModel)),l=s.push(new XC(jme(t,i),jme(t,c),e.closingBracket?jme(Wme(c,e.child?.length||0),i):void 0,r,d,e,h)),t=c,l&&e.child){const d=e.child;if(i=Wme(t,d.length),Ume(t,o)&&Kme(i,n)&&(l=ofe(d,t,i,n,o,s,r+1,a),!l))return!1}a?.set(e.openingBracket.text,d)}else{let i=t;for(const t of e.children){const e=i;if(i=Wme(i,t.length),Ume(e,o)&&Ume(n,i)&&(l=ofe(t,e,i,n,o,s,r,a),!l))return!1}}return l}function sfe(e){if(void 0===e)return()=>!0;{const t=Date.now();return()=>Date.now()-t<=e}}function rfe(e){return e instanceof Ry?null:e}function afe(e){return e.replace(/\n/g,"\\n").replace(/\r/g,"\\r")}function lfe(e){return new By(e,Wy)}function dfe(e){return e?{$extensionId:e.extensionId,$extensionVersion:e.extensionVersion,$providerId:e.providerId}:{}}function cfe(e){if(void 0!==e)return e.replaceAll("/","|")}function hfe(e){return e.toString()}function ufe(e){return"\n"===e.getEOL()?0:1}function gfe(e){return!!e&&(e instanceof Ky||e instanceof qy)}function pfe(e,t,i,n,o){let s;for(o.spacesDiff=0,o.looksLikeAlignment=!1,s=0;s0&&a>0)return;if(l>0&&d>0)return;const c=Math.abs(a-d),h=Math.abs(r-l);if(0===c)return o.spacesDiff=h,void(h>0&&0<=l-1&&l-10?o++:m>1&&s++,pfe(r,a,l,p,c),c.looksLikeAlignment&&(!i||t!==c.spacesDiff))continue;const _=c.spacesDiff;_<=8&&d[_]++,r=l,a=p}let h=i;o!==s&&(h=o{const i=d[t];i>e&&(e=i,u=t)}),4===u&&d[4]>0&&d[2]>0&&d[2]>=d[4]/2&&(u=2)}return{insertSpaces:h,tabSize:u}}function ffe(e){return(1&e.metadata)>>>0}function _fe(e,t){e.metadata=254&e.metadata|t}function bfe(e){return(2&e.metadata)>>>1==1}function vfe(e,t){e.metadata=253&e.metadata|(t?1:0)<<1}function wfe(e){return(4&e.metadata)>>>2==1}function Cfe(e,t){e.metadata=251&e.metadata|(t?1:0)<<2}function yfe(e){return(64&e.metadata)>>>6==1}function Sfe(e,t){e.metadata=191&e.metadata|(t?1:0)<<6}function xfe(e){return(128&e.metadata)>>>7==1}function kfe(e,t){e.metadata=127&e.metadata|(t?1:0)<<7}function Lfe(e,t){e.metadata=231&e.metadata|t<<3}function Dfe(e,t){e.metadata=223&e.metadata|(t?1:0)<<5}function Ife(e,t,i,n){return ei)&&1!==n&&(2===n||t)}function Nfe(e,t,i,n,o){const s=function(e){return(24&e.metadata)>>>3}(e),r=0===s||2===s,a=1===s||2===s,l=i-t,d=n,c=Math.min(l,d),h=e.start;let u=!1;const g=e.end;let p=!1;t<=h&&g<=i&&function(e){return(32&e.metadata)>>>5==1}(e)&&(e.start=t,u=!0,e.end=t,p=!0);{const e=o?1:l>0?2:0;!u&&Ife(h,r,t,e)&&(u=!0),!p&&Ife(g,a,t,e)&&(p=!0)}if(c>0&&!o){const e=l>d?2:0;!u&&Ife(h,r,t+c,e)&&(u=!0),!p&&Ife(g,a,t+c,e)&&(p=!0)}{const n=o?1:0;!u&&Ife(h,r,i,n)&&(e.start=t+d,u=!0),!p&&Ife(g,a,i,n)&&(e.end=t+d,p=!0)}const m=d-l;u||(e.start=Math.max(0,h+m)),p||(e.end=Math.max(0,g+m)),e.start>e.end&&(e.end=e.start)}function Efe(e,t){if(e.root===Zy)return t.parent=Zy,t.left=Zy,t.right=Zy,_fe(t,0),e.root=t,e.root;!function(e,t){let i=0,n=e.root;const o=t.start,s=t.end;for(;;)if(Wfe(o,s,n.start+i,n.end+i)<0){if(n.left===Zy){t.start-=i,t.end-=i,t.maxEnd-=i,n.left=t;break}n=n.left}else{if(n.right===Zy){t.start-=i+n.delta,t.end-=i+n.delta,t.maxEnd-=i+n.delta,n.right=t;break}i+=n.delta,n=n.right}t.parent=n,t.left=Zy,t.right=Zy,_fe(t,1)}(e,t),Ffe(t.parent);let i=t;for(;i!==e.root&&1===ffe(i.parent);)if(i.parent===i.parent.parent.left){const t=i.parent.parent.right;1===ffe(t)?(_fe(i.parent,0),_fe(t,0),_fe(i.parent.parent,1),i=i.parent.parent):(i===i.parent.right&&(i=i.parent,Rfe(e,i)),_fe(i.parent,0),_fe(i.parent.parent,1),Ofe(e,i.parent.parent))}else{const t=i.parent.parent.left;1===ffe(t)?(_fe(i.parent,0),_fe(t,0),_fe(i.parent.parent,1),i=i.parent.parent):(i===i.parent.left&&(i=i.parent,Ofe(e,i)),_fe(i.parent,0),_fe(i.parent.parent,1),Rfe(e,i.parent.parent))}return _fe(e.root,0),t}function Mfe(e,t){let i,n;if(t.left===Zy?(i=t.right,n=t,i.delta+=t.delta,(i.delta<-1073741824||i.delta>1073741824)&&(e.requestNormalizeDelta=!0),i.start+=t.delta,i.end+=t.delta):t.right===Zy?(i=t.left,n=t):(n=function(e){for(;e.left!==Zy;)e=e.left;return e}(t.right),i=n.right,i.start+=n.delta,i.end+=n.delta,i.delta+=n.delta,(i.delta<-1073741824||i.delta>1073741824)&&(e.requestNormalizeDelta=!0),n.start+=t.delta,n.end+=t.delta,n.delta=t.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0)),n===e.root)return e.root=i,_fe(i,0),t.detach(),Tfe(),Pfe(i),void(e.root.parent=Zy);const o=1===ffe(n);if(n===n.parent.left?n.parent.left=i:n.parent.right=i,n===t?i.parent=n.parent:(n.parent===t?i.parent=n:i.parent=n.parent,n.left=t.left,n.right=t.right,n.parent=t.parent,_fe(n,ffe(t)),t===e.root?e.root=n:t===t.parent.left?t.parent.left=n:t.parent.right=n,n.left!==Zy&&(n.left.parent=n),n.right!==Zy&&(n.right.parent=n)),t.detach(),o)return Ffe(i.parent),n!==t&&(Ffe(n),Ffe(n.parent)),void Tfe();let s;for(Ffe(i),Ffe(i.parent),n!==t&&(Ffe(n),Ffe(n.parent));i!==e.root&&0===ffe(i);)i===i.parent.left?(s=i.parent.right,1===ffe(s)&&(_fe(s,0),_fe(i.parent,1),Rfe(e,i.parent),s=i.parent.right),0===ffe(s.left)&&0===ffe(s.right)?(_fe(s,1),i=i.parent):(0===ffe(s.right)&&(_fe(s.left,0),_fe(s,1),Ofe(e,s),s=i.parent.right),_fe(s,ffe(i.parent)),_fe(i.parent,0),_fe(s.right,0),Rfe(e,i.parent),i=e.root)):(s=i.parent.left,1===ffe(s)&&(_fe(s,0),_fe(i.parent,1),Ofe(e,i.parent),s=i.parent.left),0===ffe(s.left)&&0===ffe(s.right)?(_fe(s,1),i=i.parent):(0===ffe(s.left)&&(_fe(s.right,0),_fe(s,1),Rfe(e,s),s=i.parent.left),_fe(s,ffe(i.parent)),_fe(i.parent,0),_fe(s.left,0),Ofe(e,i.parent),i=e.root));_fe(i,0),Tfe()}function Tfe(){Zy.parent=Zy,Zy.delta=0,Zy.start=0,Zy.end=0}function Rfe(e,t){const i=t.right;i.delta+=t.delta,(i.delta<-1073741824||i.delta>1073741824)&&(e.requestNormalizeDelta=!0),i.start+=t.delta,i.end+=t.delta,t.right=i.left,i.left!==Zy&&(i.left.parent=t),i.parent=t.parent,t.parent===Zy?e.root=i:t===t.parent.left?t.parent.left=i:t.parent.right=i,i.left=t,t.parent=i,Pfe(t),Pfe(i)}function Ofe(e,t){const i=t.left;t.delta-=i.delta,(t.delta<-1073741824||t.delta>1073741824)&&(e.requestNormalizeDelta=!0),t.start-=i.delta,t.end-=i.delta,t.left=i.right,i.right!==Zy&&(i.right.parent=t),i.parent=t.parent,t.parent===Zy?e.root=i:t===t.parent.right?t.parent.right=i:t.parent.left=i,i.right=t,t.parent=i,Pfe(t),Pfe(i)}function Afe(e){let t=e.end;if(e.left!==Zy){const i=e.left.maxEnd;i>t&&(t=i)}if(e.right!==Zy){const i=e.right.maxEnd+e.delta;i>t&&(t=i)}return t}function Pfe(e){e.maxEnd=Afe(e)}function Ffe(e){for(;e!==Zy;){const t=Afe(e);if(e.maxEnd===t)return;e.maxEnd=t,e=e.parent}}function Wfe(e,t,i,n){return e===i?t-n:e-i}function Bfe(e){for(;e.left!==Xy;)e=e.left;return e}function Vfe(e){for(;e.right!==Xy;)e=e.right;return e}function Hfe(e){return e===Xy?0:e.size_left+e.piece.length+Hfe(e.right)}function zfe(e){return e===Xy?0:e.lf_left+e.piece.lineFeedCnt+zfe(e.right)}function Ufe(){Xy.parent=Xy}function Kfe(e,t){const i=t.right;i.size_left+=t.size_left+(t.piece?t.piece.length:0),i.lf_left+=t.lf_left+(t.piece?t.piece.lineFeedCnt:0),t.right=i.left,i.left!==Xy&&(i.left.parent=t),i.parent=t.parent,t.parent===Xy?e.root=i:t.parent.left===t?t.parent.left=i:t.parent.right=i,i.left=t,t.parent=i}function qfe(e,t){const i=t.left;t.left=i.right,i.right!==Xy&&(i.right.parent=t),i.parent=t.parent,t.size_left-=i.size_left+(i.piece?i.piece.length:0),t.lf_left-=i.lf_left+(i.piece?i.piece.lineFeedCnt:0),t.parent===Xy?e.root=i:t===t.parent.right?t.parent.right=i:t.parent.left=i,i.right=t,t.parent=i}function jfe(e,t){let i,n;if(t.left===Xy?(n=t,i=n.right):t.right===Xy?(n=t,i=n.left):(n=Bfe(t.right),i=n.right),n===e.root)return e.root=i,i.color=0,t.detach(),Ufe(),void(e.root.parent=Xy);const o=1===n.color;if(n===n.parent.left?n.parent.left=i:n.parent.right=i,n===t?(i.parent=n.parent,Zfe(e,i)):(n.parent===t?i.parent=n:i.parent=n.parent,Zfe(e,i),n.left=t.left,n.right=t.right,n.parent=t.parent,n.color=t.color,t===e.root?e.root=n:t===t.parent.left?t.parent.left=n:t.parent.right=n,n.left!==Xy&&(n.left.parent=n),n.right!==Xy&&(n.right.parent=n),n.size_left=t.size_left,n.lf_left=t.lf_left,Zfe(e,n)),t.detach(),i.parent.left===i){const t=Hfe(i),n=zfe(i);if(t!==i.parent.size_left||n!==i.parent.lf_left){const o=t-i.parent.size_left,s=n-i.parent.lf_left;i.parent.size_left=t,i.parent.lf_left=n,Gfe(e,i.parent,o,s)}}if(Zfe(e,i.parent),o)return void Ufe();let s;for(;i!==e.root&&0===i.color;)i===i.parent.left?(s=i.parent.right,1===s.color&&(s.color=0,i.parent.color=1,Kfe(e,i.parent),s=i.parent.right),0===s.left.color&&0===s.right.color?(s.color=1,i=i.parent):(0===s.right.color&&(s.left.color=0,s.color=1,qfe(e,s),s=i.parent.right),s.color=i.parent.color,i.parent.color=0,s.right.color=0,Kfe(e,i.parent),i=e.root)):(s=i.parent.left,1===s.color&&(s.color=0,i.parent.color=1,qfe(e,i.parent),s=i.parent.left),0===s.left.color&&0===s.right.color?(s.color=1,i=i.parent):(0===s.left.color&&(s.right.color=0,s.color=1,Kfe(e,s),s=i.parent.left),s.color=i.parent.color,i.parent.color=0,s.left.color=0,qfe(e,i.parent),i=e.root));i.color=0,Ufe()}function $fe(e,t){for(Zfe(e,t);t!==e.root&&1===t.parent.color;)if(t.parent===t.parent.parent.left){const i=t.parent.parent.right;1===i.color?(t.parent.color=0,i.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.right&&Kfe(e,t=t.parent),t.parent.color=0,t.parent.parent.color=1,qfe(e,t.parent.parent))}else{const i=t.parent.parent.left;1===i.color?(t.parent.color=0,i.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.left&&qfe(e,t=t.parent),t.parent.color=0,t.parent.parent.color=1,Kfe(e,t.parent.parent))}e.root.color=0}function Gfe(e,t,i,n){for(;t!==e.root&&t!==Xy;)t.parent.left===t&&(t.parent.size_left+=i,t.parent.lf_left+=n),t=t.parent}function Zfe(e,t){let i=0,n=0;if(t!==e.root){for(;t!==e.root&&t===t.parent.right;)t=t.parent;if(t!==e.root)for(i=Hfe((t=t.parent).left)-t.size_left,n=zfe(t.left)-t.lf_left,t.size_left+=i,t.lf_left+=n;t!==e.root&&(0!==i||0!==n);)t.parent.left===t&&(t.parent.size_left+=i,t.parent.lf_left+=n),t=t.parent}}function Yfe(e){if(!e||0===e.length)return!1;for(let t=0,i=e.length;t=i)break;const n=e.charCodeAt(t);if(110===n||114===n||87===n)return!0}}return!1}function Qfe(e,t,i){if(!i)return new ea(e,null);const n=[];for(let o=0,s=t.length;o0){const i=t.charCodeAt(n);if(0!==e.get(i))return!0}return!1}(e,t,0,n,o)&&function(e,t,i,n,o){if(n+o===i)return!0;const s=t.charCodeAt(n+o);if(0!==e.get(s))return!0;if(13===s||10===s)return!0;if(o>0){const i=t.charCodeAt(n+o-1);if(0!==e.get(i))return!0}return!1}(e,t,i,n,o)}function Jfe(e){let t;return t=e[e.length-1]<65536?new Uint16Array(e.length):new Uint32Array(e.length),t.set(e,0),t}function e_e(e,t=!0){const i=[0];let n=1;for(let o=0,s=e.length;on.startIndex&&(i.currentNode.parent||i.currentNode.previousSibling)&&i.currentNode.id!==n.id);return i.currentNode.id!==n.id&&i.currentNode.endIndex<=n.startIndex?i.currentNode:void 0}function l_e(e,t){return e.startPosition.row===t.startPosition.row&&e.startPosition.column===t.startPosition.column&&e.endPosition.row===t.endPosition.row&&e.endPosition.column===t.endPosition.column&&e.startIndex===t.startIndex&&e.endIndex===t.endIndex}function d_e(e,t){return e.startIndex<=t.startIndex&&e.endIndex>=t.startIndex||t.startIndex<=e.startIndex&&t.endIndex>=e.startIndex}function c_e(e,t){return new hb([new cb(0,"",e)],t)}function h_e(e,t){const i=new Uint32Array(2);return i[0]=0,i[1]=(33587200|e)>>>0,new ub(i,null===t?SS:t)}function u_e(e,t,i){let n=e.getLineFirstNonWhitespaceColumn(t);const o=[];let s=null;for(let r=t-1;n>1&&r>=1;r--){const t=e.getLineFirstNonWhitespaceColumn(r);if(0!==t&&t=0;s--){const e=n[s];o&&(e.children.length>=3?o=RS.create(e.unappendChild(),o):(e.appendChild(o),o=void 0))}if(o){const t=new RS(o.height+1);return t.appendChild(e),t.appendChild(o),t}return e}function f_e(e,t){return e.height===t.height?RS.create(e,t):e.height>t.height?m_e(e,t):function(e,t){let i=e;const n=[];for(;t.height!==i.height;){if(p_e(i))throw new Error("unexpected");n.push(i),i=i.children[0]}let o=t;for(let s=n.length-1;s>=0;s--){const e=n[s];o&&(e.children.length>=3?o=RS.create(o,e.unprependChild()):(e.prependChild(o),o=void 0))}return o?RS.create(o,e):e}(t,e)}function __e(e){let t;return{createChangeSummary:e=>({changes:[]}),handleChange(i,n){t||(t=e());for(const e in t)i.didChange(t[e])&&n.changes.push({key:e,change:i.change});return!0},beforeUpdate(i,n){t||(t=e());for(const e in t){if("changes"===e)throw new y('property name "changes" is reserved for change tracking');n[e]=t[e].read(i)}}}}function b_e(e){return e instanceof Uint32Array?e:new Uint32Array(e)}function v_e(e){return(33588224|e)>>>0}function w_e(e,t){const i=new Set;for(const n of t)e.has(n)&&i.add(n);return i}function C_e(e,t){let i;var n;return i="string"==typeof e?function(e){const t=new uS;return t.acceptChunk(e),t.finish()}(e):(n=e)&&"function"==typeof n.read?function(e){const t=new uS;let i;for(;"string"==typeof(i=e.read());)t.acceptChunk(i);return t.finish()}(e):e,i.create(t)}function y_e(e){let t=0;for(const i of e){if(" "!==i&&"\t"!==i)break;t++}return t}function S_e(e){return!(!e.options.overviewRuler||!e.options.overviewRuler.color)}function x_e(e){return!!e.options.after||!!e.options.before}function k_e(e){return e.replace(/[^a-z0-9\-_]/gi," ")}function L_e(e){return e instanceof Lx?e:Lx.createDynamic(e)}function D_e(e,t,i,n,o,s,r,a){if(-1===o)return null;const l=i.length;if(l<=1)return null;const d="keepAll"===a,c=t.breakOffsets,h=t.breakOffsetsVisibleColumn,u=R_e(i,n,o,s,r),g=o-u,p=Ax,m=Px;let f=0,_=0,b=0,v=o;const w=c.length;let C=0;if(C>=0){let e=Math.abs(h[C]-v);for(;C+1=e)break;e=t,C++}}for(;Ct&&(t=_,o=b);let r=0,a=0,u=0,y=0;if(o<=v){let b=o,w=0===t?0:i.charCodeAt(t-1),C=0===t?0:e.get(w),S=!0;for(let o=t;o_&&T_e(0,C,l,c,d)&&(r=t,a=b),b+=h,b>v){t>_?(u=t,y=b-h):(u=o+1,y=b),b-a>g&&(r=0),S=!1;break}w=l,C=c}if(S){f>0&&(p[f]=c[c.length-1],m[f]=h[c.length-1],f++);break}}if(0===r){let l=o,c=i.charCodeAt(t),h=e.get(c),p=!1;for(let n=t-1;n>=_;n--){const t=n+1,o=i.charCodeAt(n);if(9===o){p=!0;break}let m,f;if(lde(o)?(n--,m=0,f=2):(m=e.get(o),f=fde(o)?s:1),l<=v){if(0===u&&(u=t,y=l),l<=v-g)break;if(T_e(0,m,c,h,d)){r=t,a=l;break}}l-=f,c=o,h=m}if(0!==r){const e=g-(y-a);if(e<=n){const t=i.charCodeAt(u);let o;o=ade(t)?2:N_e(t,y,n,s),e-o<0&&(r=0)}}if(p){C--;continue}}if(0===r&&(r=u,a=y),r<=_){const e=i.charCodeAt(_);ade(e)?(r=_+2,a=b+2):(r=_+1,a=b+N_e(e,b,n,s))}for(_=r,p[f]=r,b=a,m[f]=a,f++,v=a+g;C<0||C=S)break;S=e,C++}}return 0===f?null:(p.length=f,m.length=f,Ax=t.breakOffsets,Px=t.breakOffsetsVisibleColumn,t.breakOffsets=p,t.breakOffsetsVisibleColumn=m,t.wrappedTextIndentLength=u,t)}function I_e(e,t,i,n,o,s,r,a,l){const d=RC.applyInjectedText(t,i);let c,h;if(i&&i.length>0?(c=i.map(e=>e.options),h=i.map(e=>e.column-1)):(c=null,h=null),-1===o)return c?new EC(h,c,[d.length],[],0):null;const u=d.length;if(u<=1)return c?new EC(h,c,[d.length],[],0):null;const g="keepAll"===a,p=R_e(d,n,o,s,r),m=o-p,f=[],_=[];let b=0,v=0,w=0,C=o,y=d.charCodeAt(0),S=e.get(y),x=N_e(y,0,n,s),k=1;ade(y)&&(x+=1,y=d.charCodeAt(1),S=e.get(y),k++);for(let L=k;LC||a)&&((0===v||x-w>m)&&(v=t,w=x-r),f[b]=v,_[b]=w,b++,C=w+m,v=0),y=i,S=o}return 0!==b||i&&0!==i.length?(f[b]=u,_[b]=x,new EC(h,c,f,_,p)):null}function N_e(e,t,i,n){return 9===e?i-t%i:fde(e)||e<32?n:1}function E_e(e,t){return t-e%t}function M_e(e,t){if(t>=2&&"n"===e.charAt(t-1)){let i=0;for(let n=t-2;n>=0;n--){if("\\"!==e.charAt(n))return i%2==1;i++}}return!1}function T_e(e,t,i,n,o){return 32!==i&&(2===t&&2!==n||1!==t&&1===n||!o&&3===t&&2!==n||!o&&3===n&&1!==t)}function R_e(e,t,i,n,o){let s=0;if(0!==o){const r=jle(e);if(-1!==r){for(let i=0;ii&&(s=0)}}return s}function O_e(e,t,i,n,o,s,r){let a="
",l=0,d=0,c=!0;for(let h=0,u=t.getCount();h0;)r&&c?(g+=" ",c=!1):(g+=" ",c=!0),i--;break}case 60:g+="<",c=!1;break;case 62:g+=">",c=!1;break;case 38:g+="&",c=!1;break;case 0:g+="�",c=!1;break;case 65279:case 8232:case 8233:case 133:g+="�",c=!1;break;case 13:g+="​",c=!1;break;case 32:r&&c?(g+=" ",c=!1):(g+=" ",c=!0);break;default:g+=String.fromCharCode(t),c=!1}}if(!(u<=n)&&(a+=`${g}`,u>o||l>=o||n>=o))break}return a+="
",a}function A_e(e,t,i){let n='
';const o=qle(e);let s=i.getInitialState();for(let r=0,a=o.length;r0&&(n+="
");const a=i.tokenizeEncoded(e,!0,s);gl.convertToEndOffset(a.tokens,e.length);const l=new gl(a.tokens,e,t).inflate();let d=0;for(let t=0,i=l.getCount();t${Wle(e.substring(d,o))}`,d=o}s=a.endState}return n+="
",n}function P_e(e,t){return null===e?t?Kk.INSTANCE:qk.INSTANCE:new Uk(e,t)}function F_e(e){if(e>=jk.length)for(let t=1;t<=e;t++)jk[t]=W_e(t);return jk[e]}function W_e(e){return new Array(e+1).join(" ")}function B_e(e,t){if(e.length!==t.length)return!1;for(let i=0;i`Configuration Key "${e}"`},t=>i.onDidChangeConfiguration(i=>{i.affectsConfiguration(e)&&t(i)}),()=>i.getValue(e)??t,n)}function j_e(e,t,i,n=Hi.ofCaller()){const o=e.bindTo(t),s=new De;return Nce({debugName:()=>`Set Context Key "${e.key}"`},e=>{const t=i(e);return o.set(t),t},n).recomputeInitiallyAndOnChange(s),s}function $_e(e){return"element"===e?VL.value:BL.value}function G_e(){return WL("element",!0)}function Z_e(e,t){if(void 0!==e){const i=e.match(/^\s*var\((.+)\)$/);if(i){const e=i[1].split(",",2);return 2===e.length&&(t=Z_e(e[1].trim(),t)),`var(${e[0]}, ${t})`}return e}return t}function Y_e(e){const t=e.replaceAll(/[^_\-a-z0-9]/gi,"");return t!==e&&console.warn(`CSS ident value ${e} modified to ${t} to be safe for CSS`),t}function Q_e(e){return`'${e.replaceAll(/'/g,"\\000027")}'`}function X_e(e){return e?ebe`url('${CSS.escape(ki.uriToBrowserUri(e).toString(!0))}')`:"url('')"}function J_e(e,t=!1){const i=CSS.escape(e);return t||i===e||console.warn(`CSS class name ${e} modified to ${i} to be safe for CSS`),i}function ebe(e,...t){return e.reduce((e,i,n)=>e+i+(t[n]||""),"")}function tbe(e){const t=function(e){if(zL=0,ibe(e,KL,4352),zL>0)return UL.subarray(0,zL);if(ibe(e,qL,4449),zL>0)return UL.subarray(0,zL);if(ibe(e,jL,4520),zL>0)return UL.subarray(0,zL);if(ibe(e,$L,12593),zL)return UL.subarray(0,zL);if(e>=44032&&e<=55203){const t=e-44032,i=t%588,n=Math.floor(t/588),o=Math.floor(i/28),s=i%28-1;if(n=0&&(s0)return UL.subarray(0,zL)}}(e);if(t&&t.length>0)return new Uint32Array(t)}function ibe(e,t,i){var n;e>=i&&e>8&&(UL[zL++]=n>>8&255),n>>16&&(UL[zL++]=n>>16&255)))}function nbe(...e){return function(t,i){for(let n=0,o=e.length;n0?[{start:0,end:t.length}]:[]:null}function sbe(e,t){const i=t.toLowerCase().indexOf(e.toLowerCase());return-1===i?null:[{start:i,end:i+e.length}]}function rbe(e,t){return abe(e.toLowerCase(),t.toLowerCase(),0,0)}function abe(e,t,i,n){if(i===e.length)return[];if(n===t.length)return null;if(e[i]===t[n]){let o=null;return(o=abe(e,t,i+1,n+1))?fbe({start:n,end:n+1},o):null}return abe(e,t,i,n+1)}function lbe(e){return 97<=e&&e<=122}function dbe(e){return 65<=e&&e<=90}function cbe(e){return 48<=e&&e<=57}function hbe(e){return 32===e||9===e||10===e||13===e}function ube(e){return hbe(e)||ZL.has(e)}function gbe(e,t){return e===t||ube(e)&&ube(t)}function pbe(e){if(YL.has(e))return YL.get(e);let t;const i=tbe(e);return i&&(t=i),YL.set(e,t),t}function mbe(e){return lbe(e)||dbe(e)||cbe(e)}function fbe(e,t){return 0===t.length?t=[e]:e.end===t[0].start?t[0].start=e.start:t.unshift(e),t}function _be(e,t){for(let i=t;i0&&!mbe(e.charCodeAt(i-1)))return i}return e.length}function bbe(e,t,i,n){if(i===e.length)return[];if(n===t.length)return null;if(e[i]!==t[n].toLowerCase())return null;{let o=null,s=n+1;for(o=bbe(e,t,i+1,n+1);!o&&(s=_be(t,s))60&&(t=t.substring(0,60));const i=function(e){let t=0,i=0,n=0,o=0,s=0;for(let r=0;r.2&&t<.8&&n>.6&&o<.2}(i)){if(!function(e){const{upperPercent:t,lowerPercent:i}=e;return 0===i&&t>.6}(i))return null;t=t.toLowerCase()}let n=null,o=0;for(e=e.toLowerCase();o0&&ube(e.charCodeAt(i-1)))return i;return e.length}function Sbe(e,t,i=!1){if("string"!=typeof e||"string"!=typeof t)return null;let n=JL.get(e);n||(n=new RegExp(e.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*"),"i"),JL.set(e,n));const o=n.exec(t);return o?[{start:o.index,end:o.index+o[0].length}]:i?XL(e,t):QL(e,t)}function xbe(e,t){const i=Tbe(e,e.toLowerCase(),0,t,t.toLowerCase(),0,{firstMatchCanBeWeak:!0,boostFullMatch:!0});return i?Lbe(i):null}function kbe(e,t,i,n,o,s){const r=Math.min(13,e.length);for(;i1;n--){const o=e[n]+i,s=t[t.length-1];s&&s.end===o?s.end=o+1:t.push({start:o,end:o+1})}return t}function Dbe(){const e=[],t=[];for(let i=0;i<=eD;i++)t[i]=0;for(let i=0;i<=eD;i++)e.push(t.slice(0));return e}function Ibe(e){const t=[];for(let i=0;i<=e;i++)t[i]=0;return t}function Nbe(e,t){if(t<0||t>=e.length)return!1;const i=e.codePointAt(t);switch(i){case 95:case 45:case 46:case 32:case 47:case 92:case 39:case 34:case 58:case 36:case 60:case 62:case 40:case 41:case 91:case 93:case 123:case 125:return!0;case void 0:return!1;default:return!!_de(i)}}function Ebe(e,t){if(t<0||t>=e.length)return!1;switch(e.charCodeAt(t)){case 32:case 9:return!0;default:return!1}}function Mbe(e,t,i){return t[e]!==i[e]}function Tbe(e,t,i,n,o,s,r=aD.default){const a=e.length>eD?eD:e.length,l=n.length>eD?eD:n.length;if(i>=a||s>=l||a-i>l-s)return;if(!function(e,t,i,n,o,s,r=!1){for(;t=i&&a>=n;)o[r]===s[a]&&(iD[r]=a,r--),a--}(a,l,i,s,t,o);let d=1,c=1,h=i,u=s;const g=[!1];for(d=1,h=i;hr,b=_?oD[d][c-1]+(nD[d][c-1]>0?-5:0):0,v=u>r+1&&nD[d][c-1]>0,w=v?oD[d][c-2]+(nD[d][c-2]>0?-5:0):0;if(v&&(!_||w>=b)&&(!m||w>=f))oD[d][c]=w,sD[d][c]=3,nD[d][c]=0;else if(_&&(!m||b>=f))oD[d][c]=b,sD[d][c]=2,nD[d][c]=0;else{if(!m)throw new Error("not possible");oD[d][c]=f,sD[d][c]=1,nD[d][c]=nD[d-1][c-1]+1}}}if(!g[0]&&!r.firstMatchCanBeWeak)return;d--,c--;const p=[oD[d][c],s];let m=0,f=0;for(;d>=1;){let e=c;do{const t=sD[d][e];if(3===t)e-=2;else{if(2!==t)break;e-=1}}while(e>=1);m>1&&t[i+d-1]===o[s+c-1]&&!Mbe(e+s-1,n,o)&&m+1>nD[d][e]&&(e=c),e===c?m++:m=1,f||(f=e),d--,c=e-1,p.push(c)}l-s===a&&r.boostFullMatch&&(p[0]+=2);const _=f-a;return p[0]-=_,p}function Rbe(e,t,i,n,o,s,r,a,l,d,c){if(t[i]!==s[r])return Number.MIN_SAFE_INTEGER;let h=1,u=!1;return r===i-n?h=e[i]===o[r]?7:5:!Mbe(r,o,s)||0!==r&&Mbe(r-1,o,s)?!Nbe(s,r)||0!==r&&Nbe(s,r-1)?(Nbe(s,r-1)||Ebe(s,r-1))&&(h=5,u=!0):h=5:(h=e[i]===o[r]?7:5,u=!0),h>1&&i===n&&(c[0]=!0),u||(u=Mbe(r,o,s)||Nbe(s,r-1)||Ebe(s,r-1)),i===n?r>l&&(h-=u?3:5):h+=d?u?2:0:u?0:1,r+1===a&&(h-=u?3:5),h}function Obe(e,t,i,n,o,s,r){return function(e,t,i,n,o,s,r,a){let l=Tbe(e,t,i,n,o,s,a);if(e.length>=3){const t=Math.min(7,e.length-1);for(let r=i+1;rl[0])&&(l=e))}}}return l}(e,t,i,n,o,s,0,r)}function Abe(e,t){if(t+1>=e.length)return;const i=e[t],n=e[t+1];return i!==n?e.slice(0,t)+n+i+e.slice(t+2):void 0}function Pbe(e){return-1===e.indexOf(lD)?e:e.replace(uD,(e,t,i,n)=>i?e:t||n||"")}function Fbe(e){return e?e.replace(/\$\((.*?)\)/g,(e,t)=>` ${t} `).trim():""}function Wbe(e){gD.lastIndex=0;let t="";const i=[];let n=0;for(;;){const o=gD.lastIndex,s=gD.exec(e),r=e.substring(o,s?.index);if(r.length>0){t+=r;for(let e=0;e{let o="string"==typeof t?t:t.source;return o=o.replace(xD,"$1"),i=i.replace(e,o),n},getRegex:()=>new RegExp(i,t)};return n}function Zbe(e){try{e=encodeURI(e).replace(/%25/g,"%")}catch{return null}return e}function Ybe(e,t){const i=e.replace(/\|/g,(e,t,i)=>{let n=!1,o=t;for(;--o>=0&&"\\"===i[o];)n=!n;return n?"|":" |"}).split(/ \|/);let n=0;if(i[0].trim()||i.shift(),i.length>0&&!i[i.length-1].trim()&&i.pop(),t)if(i.length>t)i.splice(t);else for(;i.length200)return e;if("object"==typeof e){switch(e.$mid){case 1:return _i.revive(e);case 2:return new RegExp(e.source,e.flags);case 17:return new Date(e.source)}if(e instanceof Ni||e instanceof Uint8Array)return e;if(Array.isArray(e))for(let i=0;i1?i-1:0),o=1;o2&&void 0!==arguments[2]?arguments[2]:HI;DI&&DI(e,null);let n=t.length;for(;n--;){let o=t[n];if("string"==typeof o){const e=i(o);e!==o&&(II(t)||(t[n]=e),o=e)}e[o]=!0}return e}function sve(e){for(let t=0;t0&&void 0!==arguments[0]?arguments[0]:vN();const t=e=>lve(e);if(t.version="3.2.7",t.removed=[],!e||!e.document||e.document.nodeType!==bN.document||!e.Element)return t.isSupported=!1,t;let{document:i}=e;const n=i,o=n.currentScript,{DocumentFragment:s,HTMLTemplateElement:r,Node:a,Element:l,NodeFilter:d,NamedNodeMap:c=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:h,DOMParser:u,trustedTypes:g}=e,p=l.prototype,m=ave(p,"cloneNode"),f=ave(p,"remove"),_=ave(p,"nextSibling"),b=ave(p,"childNodes"),v=ave(p,"parentNode");if("function"==typeof r){const e=i.createElement("template");e.content&&e.content.ownerDocument&&(i=e.content.ownerDocument)}let w,C="";const{implementation:y,createNodeIterator:S,createDocumentFragment:x,getElementsByTagName:k}=i,{importNode:L}=n;let D=CN();t.isSupported="function"==typeof LI&&"function"==typeof v&&y&&void 0!==y.createHTMLDocument;const{MUSTACHE_EXPR:I,ERB_EXPR:N,TMPLIT_EXPR:E,DATA_ATTR:M,ARIA_ATTR:T,IS_SCRIPT_OR_DATA:R,ATTR_WHITESPACE:O,CUSTOM_ELEMENT:A}=_N;let{IS_ALLOWED_URI:P}=_N,F=null;const W=ove({},[...YI,...QI,...XI,...eN,...iN]);let B=null;const V=ove({},[...nN,...oN,...sN,...rN]);let H=Object.seal(RI(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),z=null,U=null,K=!0,q=!0,j=!1,$=!0,G=!1,Z=!0,Y=!1,Q=!1,X=!1,J=!1,ee=!1,te=!1,ie=!0,ne=!1,oe=!0,se=!1,re={},ae=null;const le=ove({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let de=null;const ce=ove({},["audio","video","img","source","image","track"]);let he=null;const ue=ove({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ge="http://www.w3.org/1998/Math/MathML",pe="http://www.w3.org/2000/svg",me="http://www.w3.org/1999/xhtml";let fe=me,_e=!1,be=null;const ve=ove({},[ge,pe,me],zI);let we=ove({},["mi","mo","mn","ms","mtext"]),Ce=ove({},["annotation-xml"]);const ye=ove({},["title","style","font","a","script"]);let Se=null;const xe=["application/xhtml+xml","text/html"];let ke=null,Le=null;const De=i.createElement("form"),Ie=function(e){return e instanceof RegExp||e instanceof Function},Ne=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Le||Le!==e){if(e&&"object"==typeof e||(e={}),e=rve(e),Se=-1===xe.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,ke="application/xhtml+xml"===Se?zI:HI,F=$I(e,"ALLOWED_TAGS")?ove({},e.ALLOWED_TAGS,ke):W,B=$I(e,"ALLOWED_ATTR")?ove({},e.ALLOWED_ATTR,ke):V,be=$I(e,"ALLOWED_NAMESPACES")?ove({},e.ALLOWED_NAMESPACES,zI):ve,he=$I(e,"ADD_URI_SAFE_ATTR")?ove(rve(ue),e.ADD_URI_SAFE_ATTR,ke):ue,de=$I(e,"ADD_DATA_URI_TAGS")?ove(rve(ce),e.ADD_DATA_URI_TAGS,ke):ce,ae=$I(e,"FORBID_CONTENTS")?ove({},e.FORBID_CONTENTS,ke):le,z=$I(e,"FORBID_TAGS")?ove({},e.FORBID_TAGS,ke):rve({}),U=$I(e,"FORBID_ATTR")?ove({},e.FORBID_ATTR,ke):rve({}),re=!!$I(e,"USE_PROFILES")&&e.USE_PROFILES,K=!1!==e.ALLOW_ARIA_ATTR,q=!1!==e.ALLOW_DATA_ATTR,j=e.ALLOW_UNKNOWN_PROTOCOLS||!1,$=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,G=e.SAFE_FOR_TEMPLATES||!1,Z=!1!==e.SAFE_FOR_XML,Y=e.WHOLE_DOCUMENT||!1,J=e.RETURN_DOM||!1,ee=e.RETURN_DOM_FRAGMENT||!1,te=e.RETURN_TRUSTED_TYPE||!1,X=e.FORCE_BODY||!1,ie=!1!==e.SANITIZE_DOM,ne=e.SANITIZE_NAMED_PROPS||!1,oe=!1!==e.KEEP_CONTENT,se=e.IN_PLACE||!1,P=e.ALLOWED_URI_REGEXP||uN,fe=e.NAMESPACE||me,we=e.MATHML_TEXT_INTEGRATION_POINTS||we,Ce=e.HTML_INTEGRATION_POINTS||Ce,H=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&Ie(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(H.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Ie(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(H.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(H.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),G&&(q=!1),ee&&(J=!0),re&&(F=ove({},iN),B=[],!0===re.html&&(ove(F,YI),ove(B,nN)),!0===re.svg&&(ove(F,QI),ove(B,oN),ove(B,rN)),!0===re.svgFilters&&(ove(F,XI),ove(B,oN),ove(B,rN)),!0===re.mathMl&&(ove(F,eN),ove(B,sN),ove(B,rN))),e.ADD_TAGS&&(F===W&&(F=rve(F)),ove(F,e.ADD_TAGS,ke)),e.ADD_ATTR&&(B===V&&(B=rve(B)),ove(B,e.ADD_ATTR,ke)),e.ADD_URI_SAFE_ATTR&&ove(he,e.ADD_URI_SAFE_ATTR,ke),e.FORBID_CONTENTS&&(ae===le&&(ae=rve(ae)),ove(ae,e.FORBID_CONTENTS,ke)),oe&&(F["#text"]=!0),Y&&ove(F,["html","head","body"]),F.table&&(ove(F,["tbody"]),delete z.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw ZI('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw ZI('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=e.TRUSTED_TYPES_POLICY,C=w.createHTML("")}else void 0===w&&(w=wN(g,o)),null!==w&&"string"==typeof C&&(C=w.createHTML(""));MI&&MI(e),Le=e}},Ee=ove({},[...QI,...XI,...JI]),Me=ove({},[...eN,...tN]),Te=function(e){BI(t.removed,{element:e});try{v(e).removeChild(e)}catch(i){f(e)}},Re=function(e,i){try{BI(t.removed,{attribute:i.getAttributeNode(e),from:i})}catch(n){BI(t.removed,{attribute:null,from:i})}if(i.removeAttribute(e),"is"===e)if(J||ee)try{Te(i)}catch(n){}else try{i.setAttribute(e,"")}catch(n){}},Oe=function(e){let t=null,n=null;if(X)e=""+e;else{const t=UI(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===Se&&fe===me&&(e=''+e+"");const o=w?w.createHTML(e):e;if(fe===me)try{t=(new u).parseFromString(o,Se)}catch(r){}if(!t||!t.documentElement){t=y.createDocument(fe,"template",null);try{t.documentElement.innerHTML=_e?C:o}catch(r){}}const s=t.body||t.documentElement;return e&&n&&s.insertBefore(i.createTextNode(n),s.childNodes[0]||null),fe===me?k.call(t,Y?"html":"body")[0]:Y?t.documentElement:s},Ae=function(e){return S.call(e.ownerDocument||e,e,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},Pe=function(e){return e instanceof h&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof c)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},Fe=function(e){return"function"==typeof a&&e instanceof a};function We(e,i,n){PI(e,e=>{e.call(t,i,n,Le)})}const Be=function(e){let i=null;if(We(D.beforeSanitizeElements,e,null),Pe(e))return Te(e),!0;const n=ke(e.nodeName);if(We(D.uponSanitizeElement,e,{tagName:n,allowedTags:F}),Z&&e.hasChildNodes()&&!Fe(e.firstElementChild)&&GI(/<[/\w!]/g,e.innerHTML)&&GI(/<[/\w!]/g,e.textContent))return Te(e),!0;if(e.nodeType===bN.progressingInstruction)return Te(e),!0;if(Z&&e.nodeType===bN.comment&&GI(/<[/\w]/g,e.data))return Te(e),!0;if(!F[n]||z[n]){if(!z[n]&&He(n)){if(H.tagNameCheck instanceof RegExp&&GI(H.tagNameCheck,n))return!1;if(H.tagNameCheck instanceof Function&&H.tagNameCheck(n))return!1}if(oe&&!ae[n]){const t=v(e)||e.parentNode,i=b(e)||e.childNodes;if(i&&t)for(let n=i.length-1;n>=0;--n){const o=m(i[n],!0);o.__removalCount=(e.__removalCount||0)+1,t.insertBefore(o,_(e))}}return Te(e),!0}return e instanceof l&&!function(e){let t=v(e);t&&t.tagName||(t={namespaceURI:fe,tagName:"template"});const i=HI(e.tagName),n=HI(t.tagName);return!!be[e.namespaceURI]&&(e.namespaceURI===pe?t.namespaceURI===me?"svg"===i:t.namespaceURI===ge?"svg"===i&&("annotation-xml"===n||we[n]):Boolean(Ee[i]):e.namespaceURI===ge?t.namespaceURI===me?"math"===i:t.namespaceURI===pe?"math"===i&&Ce[n]:Boolean(Me[i]):e.namespaceURI===me?!(t.namespaceURI===pe&&!Ce[n])&&!(t.namespaceURI===ge&&!we[n])&&!Me[i]&&(ye[i]||!Ee[i]):!("application/xhtml+xml"!==Se||!be[e.namespaceURI]))}(e)?(Te(e),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!GI(/<\/no(script|embed|frames)/i,e.innerHTML)?(G&&e.nodeType===bN.text&&(i=e.textContent,PI([I,N,E],e=>{i=KI(i,e," ")}),e.textContent!==i&&(BI(t.removed,{element:e.cloneNode()}),e.textContent=i)),We(D.afterSanitizeElements,e,null),!1):(Te(e),!0)},Ve=function(e,t,n){if(ie&&("id"===t||"name"===t)&&(n in i||n in De))return!1;if(q&&!U[t]&&GI(M,t));else if(K&&GI(T,t));else if(!B[t]||U[t]){if(!(He(e)&&(H.tagNameCheck instanceof RegExp&&GI(H.tagNameCheck,e)||H.tagNameCheck instanceof Function&&H.tagNameCheck(e))&&(H.attributeNameCheck instanceof RegExp&&GI(H.attributeNameCheck,t)||H.attributeNameCheck instanceof Function&&H.attributeNameCheck(t,e))||"is"===t&&H.allowCustomizedBuiltInElements&&(H.tagNameCheck instanceof RegExp&&GI(H.tagNameCheck,n)||H.tagNameCheck instanceof Function&&H.tagNameCheck(n))))return!1}else if(he[t]);else if(GI(P,KI(n,O,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==qI(n,"data:")||!de[e])if(j&&!GI(R,KI(n,O,"")));else if(n)return!1;return!0},He=function(e){return"annotation-xml"!==e&&UI(e,A)},ze=function(e){We(D.beforeSanitizeAttributes,e,null);const{attributes:i}=e;if(!i||Pe(e))return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:B,forceKeepAttr:void 0};let o=i.length;for(;o--;){const{name:r,namespaceURI:a,value:l}=i[o],d=ke(r),c=l;let h="value"===r?c:jI(c);if(n.attrName=d,n.attrValue=h,n.keepAttr=!0,n.forceKeepAttr=void 0,We(D.uponSanitizeAttribute,e,n),h=n.attrValue,!ne||"id"!==d&&"name"!==d||(Re(r,e),h="user-content-"+h),Z&&GI(/((--!?|])>)|<\/(style|title|textarea)/i,h)){Re(r,e);continue}if("attributename"===d&&UI(h,"href")){Re(r,e);continue}if(n.forceKeepAttr)continue;if(!n.keepAttr){Re(r,e);continue}if(!$&&GI(/\/>/i,h)){Re(r,e);continue}G&&PI([I,N,E],e=>{h=KI(h,e," ")});const u=ke(e.nodeName);if(Ve(u,d,h)){if(w&&"object"==typeof g&&"function"==typeof g.getAttributeType)if(a);else switch(g.getAttributeType(u,d)){case"TrustedHTML":h=w.createHTML(h);break;case"TrustedScriptURL":h=w.createScriptURL(h)}if(h!==c)try{a?e.setAttributeNS(a,r,h):e.setAttribute(r,h),Pe(e)?Te(e):WI(t.removed)}catch(s){Re(r,e)}}else Re(r,e)}We(D.afterSanitizeAttributes,e,null)},Ue=function e(t){let i=null;const n=Ae(t);for(We(D.beforeSanitizeShadowDOM,t,null);i=n.nextNode();)We(D.uponSanitizeShadowNode,i,null),Be(i),ze(i),i.content instanceof s&&e(i.content);We(D.afterSanitizeShadowDOM,t,null)};return t.sanitize=function(e){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=null,r=null,l=null,d=null;if(_e=!e,_e&&(e="\x3c!--\x3e"),"string"!=typeof e&&!Fe(e)){if("function"!=typeof e.toString)throw ZI("toString is not a function");if("string"!=typeof(e=e.toString()))throw ZI("dirty is not a string, aborting")}if(!t.isSupported)return e;if(Q||Ne(i),t.removed=[],"string"==typeof e&&(se=!1),se){if(e.nodeName){const t=ke(e.nodeName);if(!F[t]||z[t])throw ZI("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof a)o=Oe("\x3c!----\x3e"),r=o.ownerDocument.importNode(e,!0),r.nodeType===bN.element&&"BODY"===r.nodeName||"HTML"===r.nodeName?o=r:o.appendChild(r);else{if(!J&&!G&&!Y&&-1===e.indexOf("<"))return w&&te?w.createHTML(e):e;if(o=Oe(e),!o)return J?null:te?C:""}o&&X&&Te(o.firstChild);const c=Ae(se?e:o);for(;l=c.nextNode();)Be(l),ze(l),l.content instanceof s&&Ue(l.content);if(se)return e;if(J){if(ee)for(d=x.call(o.ownerDocument);o.firstChild;)d.appendChild(o.firstChild);else d=o;return(B.shadowroot||B.shadowrootmode)&&(d=L.call(n,d,!0)),d}let h=Y?o.outerHTML:o.innerHTML;return Y&&F["!doctype"]&&o.ownerDocument&&o.ownerDocument.doctype&&o.ownerDocument.doctype.name&&GI(mN,o.ownerDocument.doctype.name)&&(h="\n"+h),G&&PI([I,N,E],e=>{h=KI(h,e," ")}),w&&te?w.createHTML(h):h},t.setConfig=function(){Ne(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Q=!0},t.clearConfig=function(){Le=null,Q=!1},t.isValidAttribute=function(e,t,i){return Le||Ne({}),Ve(ke(e),ke(t),i)},t.addHook=function(e,t){"function"==typeof t&&BI(D[e],t)},t.removeHook=function(e,t){if(void 0!==t){const i=FI(D[e],t);return-1===i?void 0:VI(D[e],i,1)[0]}return WI(D[e])},t.removeHooks=function(e){D[e]=[]},t.removeAllHooks=function(){D=CN()},t}function dve(e,t){if("*"===t.override)return!0;try{const i=new URL(e,kN+"://");return!!t.override.includes(i.protocol.replace(/:$/,""))||!(!t.allowRelativePaths||i.protocol!==kN+":"||e.trim().toLowerCase().startsWith(kN))}catch(i){return!1}}function cve(e,t,i){try{const s={...LN};t?.allowedTags&&(t.allowedTags.override&&(s.ALLOWED_TAGS=[...t.allowedTags.override]),t.allowedTags.augment&&(s.ALLOWED_TAGS=[...s.ALLOWED_TAGS??[],...t.allowedTags.augment]));let r=[...xN];t?.allowedAttributes&&(t.allowedAttributes.override&&(r=[...t.allowedAttributes.override]),t.allowedAttributes.augment&&(r=[...r,...t.allowedAttributes.augment])),r=r.map(e=>"string"==typeof e?e.toLowerCase():{attributeName:e.attributeName.toLowerCase(),shouldKeep:e.shouldKeep});const a=new Set(r.map(e=>"string"==typeof e?e:e.attributeName)),l=new Map;for(const e of r)"string"==typeof e?l.delete(e):l.set(e.attributeName,e);return s.ALLOWED_ATTR=Array.from(a),n={override:t?.allowedLinkProtocols?.override??[yi.http,yi.https],allowRelativePaths:t?.allowRelativeLinkPaths??!1},o={override:t?.allowedMediaProtocols?.override??[yi.http,yi.https],allowRelativePaths:t?.allowRelativeMediaPaths??!1},yN.addHook("afterSanitizeAttributes",e=>{for(const t of["href","src"])if(e.hasAttribute(t)){const i=e.getAttribute(t);"href"===t?i.startsWith("#")||dve(i,n)||e.removeAttribute(t):dve(i,o)||e.removeAttribute(t)}}),t?.replaceWithPlaintext&&yN.addHook("uponSanitizeElement",IN),l.size&&yN.addHook("uponSanitizeAttribute",(e,t)=>{const i=l.get(t.attrName);if(i){const n=i.shouldKeep(e,t);"string"==typeof n?(t.keepAttr=!0,t.attrValue=n):t.keepAttr=n}else t.keepAttr=a.has(t.attrName)}),"dom"===i?yN.sanitize(e,{...s,RETURN_DOM_FRAGMENT:!0}):yN.sanitize(e,{...s,RETURN_TRUSTED_TYPE:!0})}finally{yN.removeAllHooks()}var n,o}function hve(e){if(!e.ownerDocument)return;let t,i;if(e.nodeType===Node.COMMENT_NODE)t=`\x3c!--${e.textContent}--\x3e`;else{if(!(e instanceof Element))return;{const n=e.tagName.toLowerCase(),o=DN.includes(n);t=`<${n}${e.attributes.length?" "+Array.from(e.attributes).map(e=>`${e.name}="${e.value}"`).join(" "):""}>`,o||(i=``)}}const n=document.createDocumentFragment(),o=e.ownerDocument.createTextNode(t);for(n.appendChild(o);e.firstChild;)n.appendChild(e.firstChild);const s=i?e.ownerDocument.createTextNode(i):void 0;return s&&n.appendChild(s),n}function uve(e,t,i){Rhe(e,cve(t,i,"dom"))}function gve(e){const t=new Array;let i,n=0,o=0;for(;null!==(i=NN.exec(e));){o=i.index||0,n

${pve({id:{note:"info",tip:"light-bulb",important:"comment",warning:"alert",caution:"stop"}[c]}).outerHTML}${d}${this.parser.parse(t).substring(3)}\n`}));const s=[],r=[];return t.codeBlockRendererSync?n.code=({text:e,lang:i,raw:n})=>{const o=fD.nextId(),s=t.codeBlockRendererSync(vve(i),e,n);return r.push([o,s]),`

${Wle(e)}
`}:t.codeBlockRenderer&&(n.code=({text:e,lang:i})=>{const n=fD.nextId(),o=t.codeBlockRenderer(vve(i),e);return s.push(o.then(e=>[n,e])),`
${Wle(e)}
`}),i.supportHtml||(n.html=({text:e})=>t.sanitizerConfig?.replaceWithPlaintext?Wle(e):(i.isTrusted?e.match(/^(]+>)|(<\/\s*span>)$/):void 0)?e:""),{renderer:n,codeBlocks:s,syncCodeBlocks:r}}(s,t,e),d=function(e){let t=e.value;return t.length>1e5&&(t=`${t.substr(0,1e5)}…`),e.supportThemeIcons&&(t=function(e){return e.replace(hD,e=>`\\${e}`)}(t)),t}(e);let c;if(t.fillInIncompleteTokens){const e={...s.defaults,...t.markedOptions,renderer:r},i=function(e){for(let t=0;t"string"==typeof e?e:e.outerHTML).join(""));const h=document.createElement("div");let u;if(uve(h,c,yve(e,t.sanitizerConfig??{})),function(e,t,i){for(const o of i.querySelectorAll("img, audio, video, source")){const i=o.getAttribute("src");if(i){let s=i;try{e.baseUri&&(s=wve(_i.from(e.baseUri),s))}catch(n){}if(o.setAttribute("src",bve(e,s,!0)),t.sanitizerConfig?.remoteImageIsAllowed){const e=_i.parse(s);e.scheme===yi.file||e.scheme===yi.data||t.sanitizerConfig.remoteImageIsAllowed(e)||o.replaceWith(Ahe("",void 0,o.outerHTML))}}}for(const o of i.querySelectorAll("a")){const t=o.getAttribute("href");if(o.setAttribute("href",""),!t||/^data:|javascript:/i.test(t)||/^command:/i.test(t)&&!e.isTrusted||/^command:(\/\/\/)?_workbench\.downloadResource/i.test(t))o.replaceWith(...o.childNodes);else{let i=bve(e,t,!1);e.baseUri&&(i=wve(_i.from(e.baseUri),t)),o.dataset.href=i}}}(e,t,h),i?(u=i,Rhe(i,...h.children)):u=h,a.length>0)Promise.all(a).then(e=>{if(o)return;const i=new Map(e),n=u.querySelectorAll("div[data-code]");for(const t of n){const e=i.get(t.dataset.code??"");e&&Rhe(t,e)}t.asyncRenderCallback?.()});else if(l.length>0){const e=new Map(l),t=u.querySelectorAll("div[data-code]");for(const i of t){const t=e.get(i.dataset.code??"");t&&Rhe(i,t)}}if(t.asyncRenderCallback)for(const g of u.getElementsByTagName("img")){const e=n.add(ehe(g,"load",()=>{e.dispose(),t.asyncRenderCallback()}))}if(t.actionHandler){const i=i=>{const n=new Se(pn(u),i);(n.leftButton||n.middleButton)&&fve(e,t,n)};n.add(ehe(u,"click",i)),n.add(ehe(u,"auxclick",i)),n.add(ehe(u,"keydown",i=>{const n=new we(i);(n.equals(10)||n.equals(3))&&fve(e,t,n)}))}for(const g of[...u.getElementsByTagName("input")])if("checkbox"===g.attributes.getNamedItem("type")?.value)g.setAttribute("disabled","");else if(t.sanitizerConfig?.replaceWithPlaintext){const e=hve(g);e?g.parentElement?.replaceChild(e,g):g.remove()}else g.remove();return{element:u,dispose:()=>{o=!0,n.dispose()}}}function fve(e,t,i){const n=i.target.closest("a[data-href]");if(xhe(n))try{let i=n.dataset.href;i&&(e.baseUri&&(i=wve(_i.from(e.baseUri),i)),t.actionHandler?.(i,e))}catch(o){$ae(o)}finally{i.preventDefault()}}function _ve(e,t){let i;try{i=eve(decodeURIComponent(t))}catch(n){}return i?(i=Vue(i,t=>e.uris&&e.uris[t]?_i.revive(e.uris[t]):void 0),encodeURIComponent(JSON.stringify(i))):t}function bve(e,t,i){const n=e.uris&&e.uris[t];let o=_i.revive(n);return i?t.startsWith(yi.data+":")?t:(o||(o=_i.parse(t)),ki.uriToBrowserUri(o).toString(!0)):o?_i.parse(t).toString()===o.toString()?t:(o.query&&(o=o.with({query:_ve(e,o.query)})),o.toString()):t}function vve(e){if(!e)return"";const t=e.split(/[\s+|:|,|\{|\?]/,1);return t.length?t[0]:e}function wve(e,t){return/^\w[\w\d+.-]*:/.test(t)?t:e.path.endsWith("/")?Vs(e,t).toString():Vs(Ps(e),t).toString()}function Cve(e,t,i={}){return n=e,o=yve(t,i),cve(n,o,"trusted");var n,o}function yve(e,t){const i=e.isTrusted??!1,n=[yi.http,yi.https,yi.mailto,yi.file,yi.vscodeFileResource,yi.vscodeRemote,yi.vscodeRemoteResource,yi.vscodeNotebookCell];return i&&n.push(yi.command),t.allowedLinkSchemes?.augment&&n.push(...t.allowedLinkSchemes.augment),{allowedTags:{override:t.allowedTags?.override??MN},allowedAttributes:{override:t.allowedAttributes?.override??TN},allowedLinkProtocols:{override:n},allowRelativeLinkPaths:!!e.baseUri,allowedMediaProtocols:{override:[yi.http,yi.https,yi.data,yi.file,yi.vscodeFileResource,yi.vscodeRemote,yi.vscodeRemoteResource]},allowRelativeMediaPaths:!!e.baseUri,replaceWithPlaintext:t.replaceWithPlaintext}}function Sve(){const e=new bI;return e.code=({text:e})=>Wle(e),e.blockquote=({text:e})=>e+"\n",e.html=e=>"",e.heading=function({tokens:e}){return this.parser.parseInline(e)+"\n"},e.hr=()=>"",e.list=function({items:e}){return e.map(e=>this.listitem(e)).join("\n")+"\n"},e.listitem=({text:e})=>e+"\n",e.paragraph=function({tokens:e}){return this.parser.parseInline(e)+"\n"},e.table=function({header:e,rows:t}){return e.map(e=>this.tablecell(e)).join(" ")+"\n"+t.map(e=>e.map(e=>this.tablecell(e)).join(" ")).join("\n")+"\n"},e.tablerow=({text:e})=>e,e.tablecell=function({tokens:e}){return this.parser.parseInline(e)},e.strong=({text:e})=>e,e.em=({text:e})=>e,e.codespan=({text:e})=>Wle(e),e.br=e=>"\n",e.del=({text:e})=>e,e.image=e=>"",e.text=({text:e})=>e,e.link=({text:e})=>e,e}function xve(e){let t="";return e.forEach(e=>{t+=e.raw}),t}function kve(e){if(e.tokens)for(let t=e.tokens.length-1;t>=0;t--){const i=e.tokens[t];if("text"===i.type){const n=i.raw.split("\n"),o=n[n.length-1];if(o.includes("`"))return Nve(e);if(o.includes("**"))return Ave(e);if(o.match(/\*\w/))return Eve(e);if(o.match(/(^|\s)__\w/))return Pve(e);if(o.match(/(^|\s)_\w/))return Mve(e);if(Lve(o)||Dve(o)&&e.tokens.slice(0,t).some(e=>"text"===e.type&&e.raw.match(/\[[^\]]*$/))){const i=e.tokens.slice(t+1);return"link"===i[0]?.type&&"text"===i[1]?.type&&i[1].raw.match(/^ *"[^"]*$/)||o.match(/^[^"]* +"[^"]*$/)?Rve(e):Tve(e)}if(o.match(/(^|\s)\[\w*[^\]]*$/))return Ove(e)}}}function Lve(e){return!!e.match(/(^|\s)\[.*\]\(\w*/)}function Dve(e){return!!e.match(/^[^\[]*\]\([^\)]*$/)}function Ive(e){let t,i;for(t=0;t{const t=e.items.at(-1)?.tokens.at(-1);return"heading"===t?.type||"list"===t?.type&&n(t)};let o;if("text"!==i?.type||"inRawBlock"in t){if(n(e)){const t=kI(e.raw.trim()+"  ")[0];if("list"!==t.type)return;return t}}else o=kve(i);if(!o||"paragraph"!==o.type)return;const s=xve(e.items.slice(0,-1)),r=t.raw.match(/^(\s*(-|\d+\.|\*) +)/)?.[0];if(!r)return;const a=kI(s+(r+xve(t.tokens.slice(0,-1))+o.raw))[0];return"list"===a.type?a:void 0}(n);o&&(i=[o],t=e.length-1)}if(!i&&"paragraph"===n?.type){const o=kve(n);o&&(i=[o],t=e.length-1)}if(i){const n=[...e.slice(0,t),...i];return n.links=e.links,n}if("heading"===n?.type){const t=function(e,t){if(e.raw.match(/-\s*$/))return kI(t+"  ")}(n,xve(e));if(t)return t}return null}function Nve(e){return Fve(e,"`")}function Eve(e){return Fve(e,"*")}function Mve(e){return Fve(e,"_")}function Tve(e){return Fve(e,")",!1)}function Rve(e){return Fve(e,'")',!1)}function Ove(e){return Fve(e,"](https://microsoft.com)",!1)}function Ave(e){return Fve(e,"**")}function Pve(e){return Fve(e,"__")}function Fve(e,t,i=!0){const n=xve(Array.isArray(e)?e:[e]);return kI((i?n.trimEnd():n)+t)[0]}function Wve(e){const t=xve(e),i=t.split("\n");let n,o=!1;for(let s=0;s0){const e=o?i.slice(0,-1).join("\n"):t;return kI(e+(e.match(/\|\s*$/)?"":"|")+`\n|${" --- |".repeat(n)}`)}}function Bve(){return PN}function Vve(e,t,i){return Math.min(Math.max(e,t),i)}function Hve(e,t){const i=[];for(const n of t){if(e.start>=n.range.end)continue;if(e.end=e.length)i.push(t[o++]);else if(o>=t.length)i.push(e[n++]);else{if(e[n]===t[o]){i.push(e[n]),n++,o++;continue}e[n]`Apply decorations from ${t.debugName}`},e=>{const i=t.read(e);n.set(i)})),i.add({dispose:()=>{n.clear()}}),i}function Xve(e,t){return e.appendChild(t),Dle(()=>{t.remove()})}function Jve(e,t,i){let n=t.get(),o=n,s=n;const r=Qce("animatedValue",n);let a,l=-1;function d(){const t=Date.now()-l;var i,c,h,u;s=Math.floor((c=o,h=n-o,(i=t)===(u=300)?c+h:h*(1-Math.pow(2,-10*i/u))+c)),t<300?a=e.requestAnimationFrame(d):s=n,r.set(s,void 0)}return i.add(Ace({changeTracker:{createChangeSummary:()=>({animate:!1}),handleChange:(e,i)=>(e.didChange(t)&&(i.animate=i.animate||e.change),!0)}},(i,r)=>{void 0!==a&&(e.cancelAnimationFrame(a),a=void 0),o=s,n=t.read(i),l=Date.now()-(r.animate?0:300),d()})),r}function ewe(e,t){return Rce(i=>{for(let[n,o]of Object.entries(t))o&&"object"==typeof o&&"read"in o&&(o=o.read(i)),"number"==typeof o&&(o=`${o}px`),n=n.replace(/[A-Z]/g,e=>"-"+e.toLowerCase()),e.style[n]=o})}function twe(e,t,i,n){const o=new De,s=[];return o.add(Pce((o,r)=>{const a=t.read(o),l=new Map,d=new Map;i&&i(!0),e.changeViewZones(e=>{for(const t of s)e.removeZone(t),n?.delete(t);s.length=0;for(const t of a){const i=e.addZone(t);t.setZoneId&&t.setZoneId(i),s.push(i),n?.add(i),l.set(t,i)}}),i&&i(!1),r.add(Ace({changeTracker:{createChangeSummary:()=>({zoneIds:[]}),handleChange(e,t){const i=d.get(e.changedObservable);return void 0!==i&&t.zoneIds.push(i),!0}}},(t,n)=>{for(const e of a)e.onChange&&(d.set(e.onChange,l.get(e)),e.onChange.read(t));i&&i(!0),e.changeViewZones(e=>{for(const t of n.zoneIds)e.layoutZone(t)}),i&&i(!1)}))})),o.add({dispose(){i&&i(!0),e.changeViewZones(e=>{for(const t of s)e.removeZone(t)}),n?.clear(),i&&i(!1)}}),o}function iwe(e,t){const i=Kpe(t,t=>t.original.startLineNumber<=e.lineNumber);if(!i)return mr.fromPositions(e);if(i.original.endLineNumberExclusive<=e.lineNumber){const t=e.lineNumber-i.original.endLineNumberExclusive+i.modified.endLineNumberExclusive;return mr.fromPositions(new to(t,e.column))}if(!i.innerChanges)return mr.fromPositions(new to(i.modified.startLineNumber,1));const n=Kpe(i.innerChanges,t=>t.originalRange.getStartPosition().isBeforeOrEqual(e));if(!n){const t=e.lineNumber-i.original.startLineNumber+i.modified.startLineNumber;return mr.fromPositions(new to(t,e.column))}if(n.originalRange.containsPosition(e))return n.modifiedRange;{const t=(o=n.originalRange.getEndPosition(),s=e,o.lineNumber===s.lineNumber?new eC(0,s.column-o.column):new eC(s.lineNumber-o.lineNumber,s.column-1));return mr.fromPositions(t.addToPosition(n.modifiedRange.getEndPosition()))}var o,s}function nwe(e,t){if(e.lineNumber<1)return new to(1,1);if(e.lineNumber>t.length)return new to(t.length,t[t.length-1].length+1);const i=t[e.lineNumber-1];return e.column>i.length+1?new to(e.lineNumber,i.length+1):e}function owe(e,t){return e>=1&&e<=t.length}function swe(e,t,i,n=!1){const o=[];for(const s of ece(e.map(e=>function(e,t,i){let n=0,o=0;return 1===e.modifiedRange.endColumn&&1===e.originalRange.endColumn&&e.originalRange.startLineNumber+n<=e.originalRange.endLineNumber&&e.modifiedRange.startLineNumber+n<=e.modifiedRange.endLineNumber&&(o=-1),e.modifiedRange.startColumn-1>=i.getLineLength(e.modifiedRange.startLineNumber)&&e.originalRange.startColumn-1>=t.getLineLength(e.originalRange.startLineNumber)&&e.originalRange.startLineNumber<=e.originalRange.endLineNumber+o&&e.modifiedRange.startLineNumber<=e.modifiedRange.endLineNumber+o&&(n=1),new BE(new Qw(e.originalRange.startLineNumber+n,e.originalRange.endLineNumber+1+o),new Qw(e.modifiedRange.startLineNumber+n,e.modifiedRange.endLineNumber+1+o),[e])}(e,t,i)),(e,t)=>e.original.intersectsOrTouches(t.original)||e.modified.intersectsOrTouches(t.modified))){const e=s[0],t=s[s.length-1];o.push(new BE(e.original.join(t.original),e.modified.join(t.modified),s.map(e=>e.innerChanges[0])))}return nle(()=>{if(!n&&o.length>0){if(o[0].modified.startLineNumber!==o[0].original.startLineNumber)return!1;if(i.length.lineCount-o[o.length-1].modified.endLineNumberExclusive!==t.length.lineCount-o[o.length-1].original.endLineNumberExclusive)return!1}return ole(o,(e,t)=>t.original.startLineNumber-e.original.endLineNumberExclusive===t.modified.startLineNumber-e.modified.endLineNumberExclusive&&e.original.endLineNumberExclusivenull!=e),new Promise((o,s)=>{let r=!0,a=!1;const l=e.map(e=>({isFinished:t(e),error:!!i&&i(e),state:e})),d=Rce(e=>{const{isFinished:t,error:i,state:n}=l.read(e);(t||i)&&(r?a=!0:d.dispose(),i?s(!0===i?n:i):o(n))});if(n){const e=n.onCancellationRequested(()=>{d.dispose(),e.dispose(),s(new v)});if(n.isCancellationRequested)return d.dispose(),e.dispose(),void s(new v)}r=!1,a&&d.dispose()})}function cwe(e,t,i=Hi.ofCaller()){return new KM("string"==typeof e?e:new Ki(e,void 0,void 0),t,i)}function hwe(e,t,i){return{changes:e.changes.map(e=>new BE(e.original,e.modified,e.innerChanges?e.innerChanges.map(e=>function(e,t,i){let n=e.originalRange,o=e.modifiedRange;return 1===n.startColumn&&1===o.startColumn&&(1!==n.endColumn||1!==o.endColumn)&&n.endColumn===t.getLineMaxColumn(n.endLineNumber)&&o.endColumn===i.getLineMaxColumn(o.endLineNumber)&&n.endLineNumber0,r=new _a(1e4);let a=0,l=0;const d=[],c=[];for(let g=0;g'):a.appendString('px;">');const d=t.getLineContent(),c=iv.isBasicASCII(d,o),h=iv.containsRTL(d,c,s),u=kpe(new Wp(r.fontInfo.isMonospace&&!r.disableMonospaceOptimizations,r.fontInfo.canUseHalfwidthRightwardsArrow,d,!1,c,h,0,t,i,r.tabSize,0,r.fontInfo.spaceWidth,r.fontInfo.middotWidth,r.fontInfo.wsmiddotWidth,r.stopRenderingLineAfter,r.renderWhitespace,r.renderControlCharacters,r.fontLigatures!==zd.OFF,null,null,r.verticalScrollbarSize),a);return a.appendString(""),{output:u,maxCharWidth:u.characterMapping.getHorizontalOffset(u.characterMapping.length)}}function pwe(e,t,i,n,o,s){const r=new Pi(mwe(e,n)),a=new Pi(mwe(t,o)),l=e.getOption(75),d=t.getOption(75),c=[];let h=0,u=0;function g(e,t){for(;;){let i=r.peek(),n=a.peek();if(i&&i.lineNumber>=e&&(i=void 0),n&&n.lineNumber>=t&&(n=void 0),!i&&!n)break;const o=i?i.lineNumber-h:Number.MAX_VALUE,s=n?n.lineNumber-u:Number.MAX_VALUE;os?(a.dequeue(),i={lineNumber:n.lineNumber-u+h,heightInPx:0}):(r.dequeue(),a.dequeue()),c.push({originalRange:Qw.ofLength(i.lineNumber,1),modifiedRange:Qw.ofLength(n.lineNumber,1),originalHeightInPx:l+i.heightInPx,modifiedHeightInPx:d+n.heightInPx,diff:void 0})}}for(const p of i){const m=p.lineRangeMapping;g(m.original.startLineNumber,m.modified.startLineNumber);let f=!0,_=m.modified.startLineNumber,b=m.original.startLineNumber;function v(e,t,i=!1){if(et.lineNumbere+t.heightInPx,0)??0,h=a.takeWhile(e=>e.lineNumbere+t.heightInPx,0)??0;c.push({originalRange:n,modifiedRange:o,originalHeightInPx:n.length*l+s,modifiedHeightInPx:o.length*d+h,diff:p.lineRangeMapping}),b=e,_=t}if(s)for(const w of m.innerChanges||[]){w.originalRange.startColumn>1&&w.modifiedRange.startColumn>1&&v(w.originalRange.startLineNumber,w.modifiedRange.startLineNumber);const C=e.getModel(),y=w.originalRange.endLineNumber<=C.getLineCount()?C.getLineMaxColumn(w.originalRange.endLineNumber):Number.MAX_SAFE_INTEGER;w.originalRange.endColumn1&&n.push({lineNumber:a,heightInPx:r*(e-1)})}for(const a of e.getWhitespaces()){if(t.has(a.id))continue;const e=0===a.afterLineNumber?0:s.convertViewPositionToModelPosition(new to(a.afterLineNumber,1)).lineNumber;i.push({lineNumber:e,heightInPx:a.height})}return function(e,t,i,n){if(0===e.length)return t;if(0===t.length)return e;const o=[];let s=0,r=0;for(;sc?(o.push(l),r++):(o.push(n(a,l)),s++,r++)}for(;se.lineNumber,(e,t)=>({lineNumber:e.lineNumber,heightInPx:e.heightInPx+t.heightInPx}))}function fwe(e){return!!e.innerChanges&&e.innerChanges.every(e=>_we(e.modifiedRange)&&_we(e.originalRange)||e.originalRange.equalsRange(new mr(1,1,1,1)))}function _we(e){return e.startLineNumber===e.endLineNumber}function bwe(e){return pT.get(e)}function vwe(e,t){return{enableSplitViewResizing:Vge(e.enableSplitViewResizing,t.enableSplitViewResizing),splitViewDefaultRatio:zge(e.splitViewDefaultRatio,.5,.1,.9),renderSideBySide:Vge(e.renderSideBySide,t.renderSideBySide),renderMarginRevertIcon:Vge(e.renderMarginRevertIcon,t.renderMarginRevertIcon),maxComputationTime:Hge(e.maxComputationTime,t.maxComputationTime,0,1073741824),maxFileSize:Hge(e.maxFileSize,t.maxFileSize,0,1073741824),ignoreTrimWhitespace:Vge(e.ignoreTrimWhitespace,t.ignoreTrimWhitespace),renderIndicators:Vge(e.renderIndicators,t.renderIndicators),originalEditable:Vge(e.originalEditable,t.originalEditable),diffCodeLens:Vge(e.diffCodeLens,t.diffCodeLens),renderOverviewRuler:Vge(e.renderOverviewRuler,t.renderOverviewRuler),diffWordWrap:Uge(e.diffWordWrap,t.diffWordWrap,["off","on","inherit"]),diffAlgorithm:Uge(e.diffAlgorithm,t.diffAlgorithm,["legacy","advanced"],{smart:"legacy",experimental:"advanced"}),accessibilityVerbose:Vge(e.accessibilityVerbose,t.accessibilityVerbose),experimental:{showMoves:Vge(e.experimental?.showMoves,t.experimental.showMoves),showEmptyDecorations:Vge(e.experimental?.showEmptyDecorations,t.experimental.showEmptyDecorations),useTrueInlineView:Vge(e.experimental?.useTrueInlineView,t.experimental.useTrueInlineView)},hideUnchangedRegions:{enabled:Vge(e.hideUnchangedRegions?.enabled??e.experimental?.collapseUnchangedRegions,t.hideUnchangedRegions.enabled),contextLineCount:Hge(e.hideUnchangedRegions?.contextLineCount,t.hideUnchangedRegions.contextLineCount,0,1073741824),minimumLineCount:Hge(e.hideUnchangedRegions?.minimumLineCount,t.hideUnchangedRegions.minimumLineCount,0,1073741824),revealLineCount:Hge(e.hideUnchangedRegions?.revealLineCount,t.hideUnchangedRegions.revealLineCount,0,1073741824)},isInEmbeddedEditor:Vge(e.isInEmbeddedEditor,t.isInEmbeddedEditor),onlyShowAccessibleDiffViewer:Vge(e.onlyShowAccessibleDiffViewer,t.onlyShowAccessibleDiffViewer),renderSideBySideInlineBreakpoint:Hge(e.renderSideBySideInlineBreakpoint,t.renderSideBySideInlineBreakpoint,0,1073741824),useInlineViewWhenSpaceIsLimited:Vge(e.useInlineViewWhenSpaceIsLimited,t.useInlineViewWhenSpaceIsLimited),renderGutterMenu:Vge(e.renderGutterMenu,t.renderGutterMenu),compactMode:Vge(e.compactMode,t.compactMode)}}function wwe(e,t,i){if(null===t)return"";const n=[];return e.ctrlKey&&n.push(i.ctrlKey),e.shiftKey&&n.push(i.shiftKey),e.altKey&&n.push(i.altKey),e.metaKey&&n.push(i.metaKey),""!==t&&n.push(t),n.join(i.separator)}function Cwe(e){return!!e&&"object"==typeof e&&"string"==typeof e.original&&"string"==typeof e.value}function ywe(e){return function(e,t){const i={...t};for(const n in e){const t=e[n];i[n]=void 0!==t?gpe(t):void 0}return i}(e,uR)}function Swe(e,t){if(V)return!1;const i=function(e,t){return t||(t=xwe(e)),"native"===t}(e,t),n=e.getValue("window");return"native"===n?.menuStyle?!(!F&&!i):"custom"!==n?.menuStyle&&i}function xwe(e){if(V)return"custom";const t=e.getValue("window");if(t){if(F&&!0===t.nativeTabs)return"native";if(F&&!1===t.nativeFullScreen)return"native";const e=t.titleBarStyle;if("native"===e||"custom"===e)return e}return"custom"}function kwe(e,t){const i=[];return function(e,t){const i=Bn.getInstance();Iwe(e,t,i.keyStatus.altKey||(P||W)&&i.keyStatus.shiftKey,e=>"navigation"===e)}(e,i),i}function Lwe(e,t,i,n){const o={primary:[],secondary:[]};return Dwe(e,o,t,i,n),o}function Dwe(e,t,i,n,o){Iwe(e,t,!1,"string"==typeof i?e=>e===i:i,n,o)}function Iwe(e,t,i,n=e=>"navigation"===e,o=()=>!1,s=!1){let r,a;Array.isArray(t)?(r=t,a=t):(r=t.primary,a=t.secondary);const l=new Set;for(const[d,c]of e){let e;n(d)?(e=r,e.length>0&&s&&e.push(new ro)):(e=a,e.length>0&&e.push(new ro));for(let t of c){i&&(t=t instanceof ps&&t.alt?t.alt:t);const n=e.push(t);t instanceof ao&&l.add({group:d,action:t,index:n-1})}}for(const{group:d,action:c,index:h}of l){const e=n(d)?r:a,t=c.actions;o(c,d,e.length)&&e.splice(h,1,...t)}}function Nwe(e,t,i){return t instanceof ps?e.createInstance(_R,t,i):t instanceof gs?t.item.isSelection?e.createInstance(CR,t):t.item.isSplitButton?e.createInstance(wR,t,{...i,togglePrimaryAction:"boolean"!=typeof t.item.isSplitButton&&t.item.isSplitButton.togglePrimaryAction}):e.createInstance(vR,t,i):void 0}function Ewe(e,t,i){const n=void 0!==t.submenu?t.submenu.id:t.id,o="string"==typeof t.title?t.title:t.title.value,s=tue({id:`hide/${e.id}/${n}`,label:Vae(1651,"Hide '{0}'",o),run(){i.updateHidden(e,n,!0)}}),r=tue({id:`toggle/${e.id}/${n}`,label:o,get checked(){return!i.isHidden(e,n)},run(){i.updateHidden(e,n,!!this.checked)}});return{hide:s,toggle:r,get isHidden(){return!r.checked}}}function Mwe(e,t,i,n=void 0,o=!0){return tue({id:`configureKeybinding/${i}`,label:Vae(1652,"Configure Keybinding"),enabled:o,run(){const o=!t.lookupKeybinding(i)&&n?n.serialize():void 0;e.executeCommand("workbench.action.openGlobalKeybindings",`@command:${i}`+(o?` +when:${o}`:""))}})}function Twe(e){const t=e.get(eo).listDiffEditors(),i=vhe();if(i)for(const n of t)if(n.getContainerDomNode().contains(i))return n;return null}function Rwe(e,t){return{id:t,asString:async()=>e,asFile:()=>{},value:"string"==typeof e?e:void 0}}function Owe(e){return e.toLowerCase()}function Awe(e,t){return Pwe(Owe(e),t.map(Owe))}function Pwe(e,t){if("*/*"===e)return t.length>0;if(t.includes(e))return!0;const i=e.match(/^([a-z]+)\/([a-z]+|\*)$/i);if(!i)return!1;const[n,o,s]=i;return"*"===s&&t.some(e=>e.startsWith(o+"/"))}function Fwe(e){if(B&&"function"==typeof globalThis.vscode?.webUtils?.getPathForFile)return globalThis.vscode?.webUtils?.getPathForFile(e)}function Wwe(e){const t=new jO;for(const i of e.items){const e=i.type;if("string"===i.kind){const n=new Promise(e=>i.getAsString(e));t.append(e,Rwe(n))}else if("file"===i.kind){const n=i.getAsFile();n&&t.append(e,Bwe(n))}}return t}function Bwe(e){const t=Fwe(e),i=t?_i.parse(t):void 0;return function(e,t,i,n){const o={id:Zm(),name:e,uri:t,data:i};return{id:n,asString:async()=>"",asFile:()=>o,value:void 0}}(e.name,i,async()=>new Uint8Array(await e.arrayBuffer()))}function Vwe(e,t=!1){const i=Wwe(e),n=i.get(FL.INTERNAL_URI_LIST);if(n)i.replace(Na.uriList,n);else if(t||!i.has(Na.uriList)){const t=[];for(const i of e.items){const e=i.getAsFile();if(e){const i=Fwe(e);try{i?t.push(_i.file(i).toString()):t.push(_i.parse(e.name,!0).toString())}catch{}}}t.length&&i.replace(Na.uriList,Rwe($O.create(t)))}for(const o of aA)i.delete(o);return i}async function Hwe(e,t,i,n){try{return await e.open(t,{fromUserGesture:!0,allowContributedOpeners:!0,allowCommands:zwe(i),skipValidation:n})}catch(o){return $ae(o),!1}}function zwe(e){return!0===e||!(!e||!Array.isArray(e.enabledCommands))&&e.enabledCommands}function Uwe(e){const t=e;return"string"==typeof t?.id&&_i.isUri(t.uri)}function Kwe(e){return"string"==typeof e?.id&&!Uwe(e)&&!function(e){const t=e;return"string"==typeof t?.id&&_i.isUri(t.configPath)}(e)}async function qwe(e){const t=e.get(Na.uriList);if(!t)return[];const i=await t.asString(),n=[];for(const o of $O.parse(i))try{n.push({uri:_i.parse(o),originalText:o})}catch{}return n}function jwe(e,t){const i=[...e];for(;i.length>0;){const e=i.shift();if(!t(e))break;i.unshift(...e.children)}}function $we(e,t,i){return("string"==typeof i.insertText?""===i.insertText:""===i.insertText.snippet)?{edits:i.additionalEdit?.edits??[]}:{edits:[...t.map(t=>new cA(e,{range:t,text:"string"==typeof i.insertText?hP.escape(i.insertText)+"$0":i.insertText.snippet,insertAsSnippet:!0})),...i.additionalEdit?.edits??[]]}}function Gwe(e){function t(e,t){return"mimeType"in e?e.mimeType===t.handledMimeType:!!t.kind&&e.kind.contains(t.kind)}const i=new Map;for(const s of e)for(const n of s.yieldTo??[])for(const o of e)if(o!==s&&t(n,o)){let e=i.get(s);e||(e=[],i.set(s,e)),e.push(o)}if(!i.size)return Array.from(e);const n=new Set,o=[];return function e(t){if(!t.length)return[];const s=t[0];if(o.includes(s))return console.warn("Yield to cycle detected",s),t;if(n.has(s))return e(t.slice(1));let r=[];const a=i.get(s);return a&&(o.push(s),r=e(a),o.pop()),n.add(s),[...r,s,...e(t.slice(1))]}(Array.from(e))}function Zwe(e,t){return t&&(e.stack||e.stacktrace)?Vae(29,"{0}: {1}",Qwe(e),Ywe(e.stack)||Ywe(e.stacktrace)):Qwe(e)}function Ywe(e){return Array.isArray(e)?e.join("\n"):e}function Qwe(e){return"ERR_UNC_HOST_NOT_ALLOWED"===e.code?`${e.message}. Please update the 'security.allowedUNCHosts' setting if you want to allow this host.`:"string"==typeof e.code&&"number"==typeof e.errno&&"string"==typeof e.syscall?Vae(30,"A system error occurred ({0})",e.message):e.message||Vae(31,"An unknown error occurred. Please consult the log for more details.")}function Xwe(e=null,t=!1){if(!e)return Vae(32,"An unknown error occurred. Please consult the log for more details.");if(Array.isArray(e)){const i=ice(e),n=Xwe(i[0],t);return i.length>1?Vae(33,"{0} ({1} errors in total)",n,i.length):n}if(sle(e))return e;if(e.detail){const i=e.detail;if(i.error)return Zwe(i.error,t);if(i.exception)return Zwe(i.exception,t)}return e.stack?Zwe(e,t):e.message?e.message:Vae(34,"An unknown error occurred. Please consult the log for more details.")}function Jwe(e){if("action"===e.kind)return e.label}function eCe(e){return e.replace(/\r\n|\r|\n/g," ")}function tCe(e){return e.register(),e}function iCe(e,t){e&&(e.addImplementation(1e4,"code-editor",(e,i)=>{const n=e.get(Ks);n.trace("registerExecCommandImpl (addImplementation code-editor for : ",t,")");const o=e.get(eo).getFocusedCodeEditor();if(o&&o.hasTextFocus()){const e=o.getOption(45),i=o.getSelection();return i&&i.isEmpty()&&!e||(o.getOption(170)&&"cut"===t?(nCe(o),n.trace("registerExecCommandImpl (before execCommand copy)"),o.getContainerDomNode().ownerDocument.execCommand("copy"),o.trigger(void 0,"cut",void 0),n.trace("registerExecCommandImpl (after execCommand copy)")):(nCe(o),n.trace("registerExecCommandImpl (before execCommand "+t+")"),o.getContainerDomNode().ownerDocument.execCommand(t),n.trace("registerExecCommandImpl (after execCommand "+t+")"))),!0}return!1}),e.addImplementation(0,"generic-dom",(e,i)=>{const n=e.get(Ks);return n.trace("registerExecCommandImpl (addImplementation generic-dom for : ",t,")"),n.trace("registerExecCommandImpl (before execCommand "+t+")"),yhe().execCommand(t),n.trace("registerExecCommandImpl (after execCommand "+t+")"),!0}))}function nCe(e){if(e.getOption(170)){const t=_C.get(e.getId());t&&t.onWillCopy()}}function oCe(e){return void 0!==e.type||void 0!==e.anyOf}function sCe(){return null===oF&&(oF=Object.create(null),Object.keys(nF.properties).forEach(e=>{oF[e]=!0})),oF}function rCe(e,t,i){return!(!t.contains(e)||i&&t.contains(i))}async function aCe(e,t,i,n,o,s){const r=n.filter||{},a={...r,excludes:[...r.excludes||[],sF.Notebook]},l={only:r.include?.value,trigger:n.type},d=new _A(t,s),c=function(e,t,i){return e.all(t).filter(e=>!e.providedCodeActionKinds||e.providedCodeActionKinds.some(e=>function(e,t){return!(e.include&&!e.include.intersects(t)||e.excludes&&e.excludes.some(i=>rCe(t,i,e.include))||!e.includeSourceActions&&sF.Source.contains(t))}(i,new ZO(e))))}(e,t,2===n.type?a:r),h=new De,u=c.map(async e=>{const n=setTimeout(()=>o.report(e),1250);try{const n=await e.provideCodeActions(t,i,l,d.token);if(d.token.isCancellationRequested)return n?.dispose(),_F;n&&h.add(n);const o=(n?.actions||[]).filter(e=>e&&function(e,t){const i=t.kind?new ZO(t.kind):void 0;return!(!(!e.include||i&&e.include.contains(i))||e.excludes&&i&&e.excludes.some(t=>rCe(i,t,e.include))||!e.includeSourceActions&&i&&sF.Source.contains(i)||e.onlyIncludePreferredActions&&!t.isPreferred)}(r,e)),s=function(e,t,i){if(!e.documentation)return;const n=e.documentation.map(e=>({kind:new ZO(e.kind),command:e.command}));if(i){let e;for(const t of n)t.kind.contains(i)&&(e?e.kind.contains(t.kind)&&(e=t):e=t);if(e)return e?.command}for(const o of t)if(o.kind)for(const e of n)if(e.kind.contains(new ZO(o.kind)))return e.command}(e,o,r.include);return{actions:o.map(t=>new lF(t,e)),documentation:s}}catch(s){if(Yae(s))throw s;return Gae(s),_F}finally{clearTimeout(n)}}),g=e.onDidChange(()=>{Zde(e.all(t),c)||d.cancel()});try{const i=await Promise.all(u),o=i.map(e=>e.actions).flat(),s=new fF(o,[...ice(i.map(e=>e.documentation)),...lCe(e,t,n,o)],h);return h.add(s),s}catch(p){throw h.dispose(),p}finally{g.dispose(),d.dispose()}}function*lCe(e,t,i,n){if(t&&n.length)for(const o of e.all(t))o._getAdditionalMenuItems&&(yield*o._getAdditionalMenuItems?.({trigger:i.type,only:i.filter?.include?.value},n.map(e=>e.action)))}async function dCe(e,t,i,n,o=it.None){const s=e.get(lA),r=e.get(fo),a=e.get(fs),l=e.get(Xv),d=e.get(NL);if(a.publicLog2("codeAction.applyCodeAction",{codeActionTitle:t.action.title,codeActionKind:t.action.kind,codeActionIsPreferred:!!t.action.isPreferred,reason:i}),d.playSignal(TL.codeActionTriggered),await t.resolve(o),!o.isCancellationRequested&&(!t.action.edit?.edits.length||(await s.apply(t.action.edit,{editor:n?.editor,label:t.action.title,quotableLabel:t.action.title,code:"undoredo.codeAction",respectAutoSaveConfig:i!==bF.OnSave,showPreview:n?.preview,reason:Vy.codeAction({kind:t.action.kind,providerId:bb.fromExtensionId(t.provider?.extensionId)})})).isApplied)){if(t.action.command)try{await r.executeCommand(t.action.command.id,...t.action.command.arguments||[])}catch(c){const e=function(e){return"string"==typeof e?e:e instanceof Error&&"string"==typeof e.message?e.message:void 0}(c);l.error("string"==typeof e?e:Vae(830,"An unknown error occurred while applying the code action"))}setTimeout(()=>d.playSignal(TL.codeActionApplied),mF)}}function cCe(e){return Po.regex(NF.keys()[0],new RegExp("(\\s|^)"+Ble(e.value)+"\\b"))}function hCe(e,t,i,n,o=rF.Default){e.hasModel()&&ZF.get(e)?.manualTriggerAtCurrentPosition(t,o,i,n)}async function uCe(e,t,i){const n=e.ordered(t),o=new Map,s=new sW,r=n.map(async(e,n)=>{o.set(e,n);try{const n=await Promise.resolve(e.provideCodeLenses(t,i));n&&s.add(n,e)}catch(r){Gae(r)}});return await Promise.all(r),i.isCancellationRequested?(s.dispose(),sW.Empty):(s.lenses=s.lenses.sort((e,t)=>e.symbol.range.startLineNumbert.symbol.range.startLineNumber?1:o.get(e.provider)o.get(t.provider)?1:e.symbol.range.startColumnt.symbol.range.startColumn?1:0),s)}function gCe(e){IW.push(e)}function pCe(){return IW.slice(0)}async function mCe(e,t,i,n="auto"){return _Ce(new FW,e,t,i,n)}function fCe(e,t,i,n){return Promise.resolve(i.provideColorPresentations(e,t,n))}async function _Ce(e,t,i,n,o){let s,r=!1;const a=[],l=t.ordered(i);for(let c=l.length-1;c>=0;c--){const t=l[c];if("always"!==o&&t instanceof AW)s=t;else try{await e.compute(t,i,n,a)&&(r=!0)}catch(d){Gae(d)}}return r?a:s&&"never"!==o?(await e.compute(s,i,n,a),a):[]}function bCe(e,t){const{colorProvider:i}=e.get(Tx),n=e.get(io).getModel(t);if(!n)throw Qae();return{model:n,colorProviderRegistry:i,defaultColorDecoratorsEnablement:e.get(ka).getValue("editor.defaultColorDecorators",{resource:t})}}function vCe(e,t,i){const n=lhe(e);return!(tn.left+n.width||in.top+n.height)}function wCe(e,t){return e&&t?Vae(7,"Inspect this in the accessible view with {0}.",t):e?Vae(8,"Inspect this in the accessible view via the command Open Accessible View which is currently not triggerable via keybinding."):""}function CCe(e,t,i,n,o,s){const r=i+o/2,a=n+s/2,l=Math.max(Math.abs(e-r)-o/2,0),d=Math.max(Math.abs(t-a)-s/2,0);return Math.sqrt(l*l+d*d)}function yCe(e,t){if(e&&""!==e[0]){const i=SCe(e,t,"-"),n=SCe(e,t,"_");return i&&!n?xCe(e,t,"-"):!i&&n?xCe(e,t,"_"):e[0].toUpperCase()===e[0]?t.toUpperCase():e[0].toLowerCase()===e[0]?t.toLowerCase():function(e,t=!1){return!!e&&(t&&(e=e.replace(/\\./g,"")),e.toLowerCase()!==e)}(e[0][0])&&t.length>0?t[0].toUpperCase()+t.substr(1):e[0][0].toUpperCase()!==e[0][0]&&t.length>0?t[0].toLowerCase()+t.substr(1):t}return t}function SCe(e,t,i){return-1!==e[0].indexOf(i)&&-1!==t.indexOf(i)&&e[0].split(i).length===t.split(i).length}function xCe(e,t,i){const n=t.split(i),o=e[0].split(i);let s="";return n.forEach((e,t)=>{s+=yCe([o[t]],e)+i}),s.slice(0,-1)}function kCe(e,t,i){const n=i??document.createElement("div");return n.textContent="",LCe(n,function(e){const t={type:1,children:[]};let i=0,n=t;const o=[],s=new cV(e);for(;!s.eos();){let e=s.next();const t="\\"===e&&0!==ICe(s.peek());if(t&&(e=s.next()),!t&&DCe(e)&&e===s.peek()){s.advance(),2===n.type&&(n=o.pop());const t=ICe(e);if(n.type===t||5===n.type&&6===t)n=o.pop();else{const e={type:t,children:[]};5===t&&(e.index=i,i++),n.children.push(e),o.push(n),n=e}}else if("\n"===e)2===n.type&&(n=o.pop()),n.children.push({type:8});else if(2!==n.type){const t={type:2,content:e};n.children.push(t),o.push(n),n=t}else n.content+=e}return 2===n.type&&(n=o.pop()),t}(e),t?.actionHandler,t?.renderCodeSegments),n}function LCe(e,t,i,n){let o;if(2===t.type)o=document.createTextNode(t.content||"");else if(3===t.type)o=document.createElement("b");else if(4===t.type)o=document.createElement("i");else if(7===t.type&&n)o=document.createElement("code");else if(5===t.type&&i){const e=document.createElement("a");i.disposables.add(xn(e,"click",e=>{i.callback(String(t.index),e)})),o=e}else 8===t.type?o=document.createElement("br"):1===t.type&&(o=e);o&&e!==o&&e.appendChild(o),o&&Array.isArray(t.children)&&t.children.forEach(e=>{LCe(o,e,i,n)})}function DCe(e,t){return 0!==ICe(e)}function ICe(e,t){switch(e){case"*":return 3;case"_":return 4;case"[":return 5;case"]":return 6;default:return 0}}function NCe(e,t){if(NV.includes(t))throw new Error("Cannot register the same widget multiple times");NV.push(t);const i=new De,n=new Jo(kV,!1).bindTo(e),o=new Jo(LV,!0).bindTo(e),s=new Jo(DV,!0).bindTo(e),r=()=>{n.set(!0),IV=t},a=()=>{n.set(!1),IV===t&&(IV=void 0)};return whe(t.element)&&r(),i.add(t.onDidFocus(()=>r())),i.add(t.onDidBlur(()=>a())),i.add(Dle(()=>{NV.splice(NV.indexOf(t),1),a()})),{historyNavigationForwardsEnablement:o,historyNavigationBackwardsEnablement:s,dispose(){i.dispose()}}}function ECe(e){return"Up"===e.lookupKeybinding("history.showPrevious")?.getElectronAccelerator()&&"Down"===e.lookupKeybinding("history.showNext")?.getElectronAccelerator()}function MCe(e,t,i){const n=!!t.match(/\n/);i&&n&&i.selectionStart>0&&e.stopPropagation()}function TCe(e,t,i){const n=!!t.match(/\n/);i&&n&&i.selectionEndasync function(e,t,i,n,o){const s=await Promise.resolve(e.provideHover(i,n,o)).catch(Gae);if(s&&function(e){const t=void 0!==e.range,i=void 0!==e.contents&&e.contents&&e.contents.length>0;return t&&i}(s))return new dH(e,s,t)}(e,o,t,i,n));return xt.fromPromisesResolveOrder(s).coalesce()}async function OCe(e,t,i,n,o=!1){const s=[];for await(const r of RCe(e,t,i,n,o))s.push(r.hover);return s}function ACe(e,t,i,n){const o=new De,s=uH("div.hover-row"),r=uH("div.hover-row-contents");s.appendChild(r);const a=t.contents;for(const l of a){if(Vbe(l))continue;const t=uH("div.markdown-hover"),s=Mhe(t,uH("div.hover-contents")),a=o.add(i.render(l,{context:e,asyncRenderCallback:()=>{s.className="hover-contents code-hover-contents",n()}}));s.appendChild(a.element),r.appendChild(t)}return{hoverPart:t,hoverElement:s,dispose(){o.dispose()}}}async function PCe(e,t,i){const n=e.getValueInRange(t.range),{red:o,green:s,blue:r,alpha:a}=t.color,l=new eh(new Qc(Math.round(255*o),Math.round(255*s),Math.round(255*r),a)),d=await fCe(e,t,i,it.None),c=new AH(l,[],0);return c.colorPresentations=d||[],c.guessColorPresentation(l,n),{range:mr.lift(t.range),model:c,provider:i}}function FCe(e,t,i){const n=[],o=i.presentation.textEdit??{range:t,text:i.presentation.label,forceMoveMarkers:!1};n.push(o),i.presentation.additionalTextEdits&&n.push(...i.presentation.additionalTextEdits);const s=mr.lift(o.range),r=e.getModel()._setTrackedRange(null,s,3);return e.executeEdits("colorpicker",n),e.pushUndoStop(),e.getModel()._getTrackedRange(r)??s}async function WCe(e,t,i,n,o){t.colorPresentations=await fCe(e,{range:n,color:{red:i.rgba.r/255,green:i.rgba.g/255,blue:i.rgba.b/255,alpha:i.rgba.a}},o.provider,it.None)||[]}function BCe(e,t){return!!e[t]}function VCe(e,t){return"altKey"===e?F?new UH(57,"metaKey",6,"altKey",t):new UH(5,"ctrlKey",6,"altKey",t):F?new UH(6,"altKey",57,"metaKey",t):new UH(6,"altKey",5,"ctrlKey",t)}function HCe(e){return!(!e||"function"!=typeof e.getEditorType)&&e.getEditorType()===ZC.ICodeEditor}function zCe(e){return!(!e||"function"!=typeof e.getEditorType)&&e.getEditorType()===ZC.IDiffEditor}function UCe(e){return HCe(e)?e:zCe(e)?e.getModifiedEditor():function(e){return!!e&&"object"==typeof e&&"function"==typeof e.onDidChangeActiveEditor}(e)&&HCe(e.activeCodeEditor)?e.activeCodeEditor:null}function KCe(e){const t=e.get(eo).getFocusedCodeEditor();return t instanceof YH?t.getParentEditor():t}function qCe(e,t,i){return new Bz(new Az(e),new Az(t)).ComputeDiff(i).changes}function jCe(e){return!!e&&void 0!==e.visibility}function $Ce(e){switch(e){case!0:return 1;case!1:return 0;default:return e}}function GCe(e){return"collapsible"in e}function ZCe(e){return e instanceof $N?new Hz(e):e}function YCe(e,t){const i=t.toLowerCase().indexOf(e);let n;if(i>-1){n=[Number.MAX_SAFE_INTEGER,0];for(let t=e.length;t>0;t--)n.push(i+t-1)}return n}function QCe(e,t){return e.position===t.position&&XCe(e,t)}function XCe(e,t){return e.node.element===t.node.element&&e.startIndex===t.startIndex&&e.height===t.height&&e.endIndex===t.endIndex}function JCe(e){let t=Mz.Unknown;return mhe(e.browserEvent.target,"monaco-tl-twistie","monaco-tl-row")?t=Mz.Twistie:mhe(e.browserEvent.target,"monaco-tl-contents","monaco-tl-row")?t=Mz.Element:mhe(e.browserEvent.target,"monaco-tree-type-filter","monaco-list")&&(t=Mz.Filter),{browserEvent:e.browserEvent,element:e.element?e.element.element:null,target:t}}function eye(e){const t=jve(e.browserEvent.target);return{element:e.element?e.element.element:null,browserEvent:e.browserEvent,anchor:e.anchor,isStickyScroll:t}}function tye(e,t){t(e),e.children.forEach(e=>tye(e,t))}function iye(e){return{element:{elements:[e.element],incompressible:e.incompressible||!1},children:ke.map(ke.from(e.children),iye),collapsible:e.collapsible,collapsed:e.collapsed}}function nye(e){const t=[e.element],i=e.incompressible||!1;let n,o;for(;[o,n]=ke.consume(ke.from(e.children),2),1===o.length&&!o[0].incompressible;)e=o[0],t.push(e.element);return{element:{elements:t,incompressible:i},children:ke.map(ke.concat(o,n),nye),collapsible:e.collapsible,collapsed:e.collapsed}}function oye(e,t=0){let i;return i=toye(e,0)),0===t&&e.element.incompressible?{element:e.element.elements[t],children:i,incompressible:!0,collapsible:e.collapsible,collapsed:e.collapsed}:{element:e.element.elements[t],children:i,collapsible:e.collapsible,collapsed:e.collapsed}}function sye(e){return oye(e,0)}function rye(e,t,i){return e.element===t?{...e,children:i}:{...e,children:ke.map(ke.from(e.children),e=>rye(e,t,i))}}function aye(e,t){return t&&{...t,keyboardNavigationLabelProvider:t.keyboardNavigationLabelProvider&&{getKeyboardNavigationLabel(i){let n;try{n=e().getCompressedTreeNode(i)}catch{return t.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(i)}return 1===n.element.elements.length?t.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(i):t.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(n.element.elements)}}}}function lye(e){return{...e,children:[],refreshPromise:void 0,stale:!0,slow:!1,forceExpanded:!1}}function dye(e,t){return!!t.parent&&(t.parent===e||dye(e,t.parent))}function cye(e){return{browserEvent:e.browserEvent,elements:e.elements.map(e=>e.element)}}function hye(e){return{browserEvent:e.browserEvent,element:e.element&&e.element.element,target:e.target}}function uye(e){return e instanceof $N?new yU(e):e}function gye(e){return e&&{...e,collapseByDefault:!0,identityProvider:e.identityProvider&&{getId:t=>e.identityProvider.getId(t.element)},dnd:e.dnd&&new SU(e.dnd),multipleSelectionController:e.multipleSelectionController&&{isSelectionSingleChangeEvent:t=>e.multipleSelectionController.isSelectionSingleChangeEvent({...t,element:t.element}),isSelectionRangeChangeEvent:t=>e.multipleSelectionController.isSelectionRangeChangeEvent({...t,element:t.element})},accessibilityProvider:e.accessibilityProvider&&{...e.accessibilityProvider,getPosInSet:void 0,getSetSize:void 0,getRole:e.accessibilityProvider.getRole?t=>e.accessibilityProvider.getRole(t.element):()=>"treeitem",isChecked:e.accessibilityProvider.isChecked?t=>!!e.accessibilityProvider?.isChecked(t.element):void 0,getAriaLabel:t=>e.accessibilityProvider.getAriaLabel(t.element),getWidgetAriaLabel:()=>e.accessibilityProvider.getWidgetAriaLabel(),getWidgetRole:e.accessibilityProvider.getWidgetRole?()=>e.accessibilityProvider.getWidgetRole():()=>"tree",getAriaLevel:e.accessibilityProvider.getAriaLevel&&(t=>e.accessibilityProvider.getAriaLevel(t.element)),getActiveDescendantId:e.accessibilityProvider.getActiveDescendantId&&(t=>e.accessibilityProvider.getActiveDescendantId(t.element))},filter:e.filter&&{filter:(t,i)=>e.filter.filter(t.element,i)},keyboardNavigationLabelProvider:e.keyboardNavigationLabelProvider&&{...e.keyboardNavigationLabelProvider,getKeyboardNavigationLabel:t=>e.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(t.element)},sorter:void 0,expandOnlyOnTwistieClick:void 0===e.expandOnlyOnTwistieClick?void 0:"function"!=typeof e.expandOnlyOnTwistieClick?e.expandOnlyOnTwistieClick:t=>e.expandOnlyOnTwistieClick(t.element),defaultFindVisibility:t=>t.hasChildren&&t.stale?1:"number"==typeof e.defaultFindVisibility?e.defaultFindVisibility:void 0===e.defaultFindVisibility?2:e.defaultFindVisibility(t.element),stickyScrollDelegate:e.stickyScrollDelegate}}function pye(e,t){t(e),e.children.forEach(e=>pye(e,t))}function mye(e,t){const i=e.createScoped(t.getHTMLElement());return VU.bindTo(i),i}function fye(e,t){const i=BU.bindTo(e),n=()=>{const e=0===t.scrollTop,n=t.scrollHeight-t.renderHeight-t.scrollTop<1;e&&n?i.set("both"):e?i.set("top"):n?i.set("bottom"):i.set("none")};return n(),t.onDidScroll(n)}function _ye(e){return"alt"===e.getValue(iK)}function bye(e,t){const i=e.get(ka),n=e.get(xw),o=new De;return[{...t,keyboardNavigationDelegate:{mightProducePrintableCharacter:e=>n.mightProducePrintableCharacter(e)},smoothScrolling:Boolean(i.getValue(uK)),mouseWheelScrollSensitivity:i.getValue(gK),fastScrollSensitivity:i.getValue(pK),multipleSelectionController:t.multipleSelectionController??o.add(new bK(i)),keyboardNavigationEventFilter:vye(n),scrollByPage:Boolean(i.getValue(lK))},o]}function vye(e){let t=!1;return i=>{if(i.toKeyCodeChord().isModifierKey())return!1;if(t)return t=!1,!1;const n=e.softDispatch(i,i.target);return 1===n.kind?(t=!0,!1):(t=!1,0===n.kind)}}function wye(e){const t=e.getValue(sK);if("highlight"===t)return Zz.Highlight;if("filter"===t)return Zz.Filter;const i=e.getValue(aK);return"simple"===i||"highlight"===i?Zz.Highlight:"filter"===i?Zz.Filter:void 0}function Cye(e){const t=e.getValue(dK);return"fuzzy"===t?Yz.Fuzzy:"contiguous"===t?Yz.Contiguous:void 0}function yye(e,t){const i=e.get(ka),n=e.get(oT),o=e.get(es),s=e.get(Jn),r=void 0!==t.horizontalScrolling?t.horizontalScrolling:Boolean(i.getValue(oK)),[a,l]=s.invokeFunction(bye,t),d=t.paddingBottom,c=void 0!==t.renderIndentGuides?t.renderIndentGuides:i.getValue(hK);return{getTypeNavigationMode:()=>{const e=o.getContextKeyValue(eK);if("automatic"===e)return oE.Automatic;if("trigger"===e)return oE.Trigger;if(!1===o.getContextKeyValue(tK))return oE.Trigger;const t=i.getValue(rK);return"automatic"===t?oE.Automatic:"trigger"===t?oE.Trigger:void 0},disposable:l,options:{keyboardSupport:!1,...a,indent:"number"==typeof i.getValue(cK)?i.getValue(cK):void 0,renderIndentGuides:c,smoothScrolling:Boolean(i.getValue(uK)),defaultFindMode:t.defaultFindMode??wye(i),defaultFindMatchType:t.defaultFindMatchType??Cye(i),horizontalScrolling:r,scrollByPage:Boolean(i.getValue(lK)),paddingBottom:d,hideTwistiesOfChildlessElements:t.hideTwistiesOfChildlessElements,expandOnlyOnTwistieClick:t.expandOnlyOnTwistieClick??"doubleClick"===i.getValue(mK),contextViewProvider:n,findWidgetStyles:cR,enableStickyScroll:Boolean(i.getValue(fK)),stickyScrollMaxItemCount:Number(i.getValue(_K))}}}function Sye(e,t){const i=KCe(e);if(!i)return;const n=pq.get(i);n&&t(n)}function xye(e,t){return t.uri.scheme===e.uri.scheme||!Pde(t.uri,yi.walkThroughSnippet,yi.vscodeChatCodeBlock,yi.vscodeChatCodeCompareBlock)}async function kye(e,t,i,n,o){const s=i.ordered(e,n).map(i=>Promise.resolve(o(i,e,t)).then(void 0,e=>{Gae(e)}));return ice((await Promise.all(s)).flat()).filter(t=>xye(e,t))}function Lye(e,t,i,n,o){return kye(t,i,e,n,(e,t,i)=>e.provideDefinition(t,i,o))}function Dye(e,t,i,n,o){return kye(t,i,e,n,(e,t,i)=>e.provideDeclaration(t,i,o))}function Iye(e,t,i,n,o){return kye(t,i,e,n,(e,t,i)=>e.provideImplementation(t,i,o))}function Nye(e,t,i,n,o){return kye(t,i,e,n,(e,t,i)=>e.provideTypeDefinition(t,i,o))}function Eye(e,t,i,n,o,s){return kye(t,i,e,o,async(e,t,i)=>{const o=(await e.provideReferences(t,i,{includeDeclaration:!0},s))?.filter(e=>xye(t,e));if(!n||!o||2!==o.length)return o;const r=(await e.provideReferences(t,i,{includeDeclaration:!1},s))?.filter(e=>xye(t,e));return r&&1===r.length?r:o})}async function Mye(e){const t=new AK(await e(),""),i=t.references.map(e=>e.link);return t.dispose(),i}async function Tye(e,t,i,n){const o=e.get(no),s=e.get(sT),r=e.get(fo),a=e.get(Jn),l=e.get(Xv);if(await n.item.resolve(it.None),!n.part.location)return;const d=n.part.location,c=[],h=new Set(us.getMenuItems(ds.EditorContext).map(e=>pue(e)?e.command.id:Zm()));for(const g of Mq.all())h.has(g.desc.id)&&c.push(new oo(g.desc.id,ps.label(g.desc,{renderShortTitle:!0}),void 0,!0,async()=>{const e=await o.createModelReference(d.uri);try{const i=new Eq(e.object.textEditorModel,mr.getStartPosition(d.range)),o=n.item.anchor.range;await a.invokeFunction(g.runEditorCommand.bind(g),t,i,o)}finally{e.dispose()}}));if(n.part.command){const{command:e}=n.part;c.push(new ro),c.push(new oo(e.id,e.title,void 0,!0,async()=>{try{await r.executeCommand(e.id,...e.arguments??[])}catch(t){l.notify({severity:Qv.Error,source:n.item.provider.displayName,message:t})}}))}const u=t.getOption(144);s.showContextMenu({domForShadowRoot:u?t.getDomNode()??void 0:void 0,getAnchor:()=>{const e=lhe(i);return{x:e.left,y:e.top+e.height+8}},getActions:()=>c,onHide:()=>{t.focus()},autoSelectFirstItem:!0})}async function Rye(e,t,i,n){const o=await e.get(no).createModelReference(n.uri);await i.invokeWithinContext(async e=>{const s=t.hasSideBySideModifier,r=e.get(es),a=az.inPeekEditor.getValue(r);return new Tq({openToSide:s,openInPeek:!s&&i.getOption(101)&&!a,muteMessage:!0},{title:{value:"",original:""},id:"",precondition:void 0}).run(e,new Eq(o.object.textEditorModel,mr.getStartPosition(n.range)),mr.lift(n.range))}),o.dispose()}function Oye(e){return e.replace(/[ \t]/g," ")}function Aye(e){const t=e.target;return!!t&&6===t.type&&t.detail.injectedText?.options.attachedData===KW}function Pye(e){return F?e.altKey:e.ctrlKey}function Fye(e,t){return 1===e||2!==e&&t}function Wye(e,t="single",i=!1){if(!e.hasModel())return null;const n=e.getSelection();if("single"===t&&n.startLineNumber===n.endLineNumber||"multiple"===t)if(n.isEmpty()){const t=e.getConfiguredWordAtPosition(n.getStartPosition());if(t&&!1===i)return t.word}else if(e.getModel().getValueLengthInRange(n)!!(t?i.moveToNextMatch():i.moveToPrevMatch())&&(i.editor.pushUndoStop(),!0);n()||(await i.start({forceRevealReplace:!1,seedSearchStringFromSelection:0===i.getState().searchString.length&&"never"!==e.getOption(50).seedSearchStringFromSelection?"single":"none",seedSearchStringFromNonEmptySelection:"selection"===e.getOption(50).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:!0,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1,loop:e.getOption(50).loop}),n())}function Vye(e,t,i){const n=[];for(const o of i){const i=e.getRegionAtLine(o);if(i){const o=!i.isCollapsed;if(n.push(i),t>1){const s=e.getRegionsInside(i,(e,i)=>e.isCollapsed!==o&&i0)for(const s of n){const n=e.getRegionAtLine(s);if(n&&(n.isCollapsed!==t&&o.push(n),i>1)){const s=e.getRegionsInside(n,(e,n)=>e.isCollapsed!==t&&ne.isCollapsed!==t&&ne.isCollapsed!==t&&n<=i);o.push(...n)}e.toggleCollapseState(o)}function Uye(e,t,i){const n=[];for(const s of i){const t=e.getAllRegionsAtLine(s,void 0);t.length>0&&n.push(t[0])}const o=e.getRegionsInside(null,e=>n.every(t=>!t.containedBy(e)&&!e.containedBy(t))&&e.isCollapsed!==t);e.toggleCollapseState(o)}function Kye(e,t,i){const n=e.textModel,o=e.regions,s=[];for(let r=o.length-1;r>=0;r--)if(i!==o.isCollapsed(r)){const e=o.getStartLineNumber(r);t.test(n.getLineContent(e))&&s.push(o.toRegion(r))}e.toggleCollapseState(s)}function qye(e,t,i){const n=e.regions,o=[];for(let s=n.length-1;s>=0;s--)i!==n.isCollapsed(s)&&t===n.getType(s)&&o.push(n.toRegion(s));e.toggleCollapseState(o)}function jye(e,t){const i=$pe(e,e=>t=0&&e[i].endLineNumber>=t?e[i]:null}function $ye(e){if(!hle(e)){if(!rle(e))return!1;const t=e;if(!hle(t.levels)&&!lle(t.levels))return!1;if(!hle(t.direction)&&!sle(t.direction))return!1;if(!(hle(t.selectionLines)||Array.isArray(t.selectionLines)&&t.selectionLines.every(lle)))return!1}return!0}function Gye(e,t,i){const n=[],o=new MZ,s=e.ordered(i);for(const a of s)n.push(a),a.extensionId&&o.add(a.extensionId);const r=t.ordered(i);for(const a of r){if(a.extensionId){if(o.has(a.extensionId))continue;o.add(a.extensionId)}n.push({displayName:a.displayName,extensionId:a.extensionId,provideDocumentFormattingEdits:(e,t,i)=>a.provideDocumentRangeFormattingEdits(e,e.getFullModelRange(),t,i)})}return n}async function Zye(e,t,i,n,o,s,r){const a=e.get(Jn),{documentRangeFormattingEditProvider:l}=e.get(Tx),d=HCe(t)?t.getModel():t,c=l.ordered(d),h=await TZ.select(c,d,n,2);h&&(o.report(h),await a.invokeFunction(Yye,h,t,i,s,r))}async function Yye(e,t,i,n,o,s){const r=e.get(DM),a=e.get(Ks),l=e.get(NL);let d,c;HCe(i)?(d=i.getModel(),c=new fA(i,5,void 0,o)):(d=i,c=new _A(i,o));const h=[];let u=0;for(const _ of gce(n).sort(mr.compareRangesUsingStarts))u>0&&mr.areIntersectingOrTouching(h[u-1],_)?h[u-1]=mr.fromPositions(h[u-1].getStartPosition(),_.getEndPosition()):u=h.push(_);const g=async e=>{a.trace("[format][provideDocumentRangeFormattingEdits] (request)",t.extensionId?.value,e);const i=await t.provideDocumentRangeFormattingEdits(d,e,d.getFormattingOptions(),c.token)||[];return a.trace("[format][provideDocumentRangeFormattingEdits] (response)",t.extensionId?.value,i),i},p=(e,t)=>{if(!e.length||!t.length)return!1;const i=e.reduce((e,t)=>mr.plusRange(e,t.range),e[0].range);if(!t.some(e=>mr.intersectRanges(i,e.range)))return!1;for(const n of e)for(const e of t)if(mr.intersectRanges(n.range,e.range))return!0;return!1},m=[],f=[];try{if("function"==typeof t.provideDocumentRangesFormattingEdits){a.trace("[format][provideDocumentRangeFormattingEdits] (request)",t.extensionId?.value,h);const e=await t.provideDocumentRangesFormattingEdits(d,h,d.getFormattingOptions(),c.token)||[];a.trace("[format][provideDocumentRangeFormattingEdits] (response)",t.extensionId?.value,e),f.push(e)}else{for(const e of h){if(c.token.isCancellationRequested)return!0;f.push(await g(e))}for(let e=0;e({text:e.text,range:mr.lift(e.range),forceMoveMarkers:!0})),e=>{for(const{range:i}of e)if(mr.areIntersectingOrTouching(i,t))return[new fr(i.startLineNumber,i.startColumn,i.endLineNumber,i.endColumn)];return null})}return l.playSignal(TL.format,{userGesture:s}),!0}async function Qye(e,t,i,n,o,s){const r=e.get(Jn),a=e.get(Tx),l=HCe(t)?t.getModel():t,d=Gye(a.documentFormattingEditProvider,a.documentRangeFormattingEditProvider,l),c=await TZ.select(d,l,i,1);c&&(n.report(c),await r.invokeFunction(Xye,c,t,i,o,s))}async function Xye(e,t,i,n,o,s){const r=e.get(DM),a=e.get(NL);let l,d,c;HCe(i)?(l=i.getModel(),d=new fA(i,5,void 0,o)):(l=i,d=new _A(i,o));try{const e=await t.provideDocumentFormattingEdits(l,l.getFormattingOptions(),d.token);if(c=await r.computeMoreMinimalEdits(l.uri,e),d.token.isCancellationRequested)return!0}finally{d.dispose()}if(!c||0===c.length)return!1;if(HCe(i))NZ.execute(i,c,2!==n),2!==n&&i.revealPositionInCenterIfOutsideViewport(i.getPosition(),1);else{const[{range:e}]=c,t=new fr(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn);l.pushEditOperations([t],c.map(e=>({text:e.text,range:mr.lift(e.range),forceMoveMarkers:!0})),e=>{for(const{range:i}of e)if(mr.areIntersectingOrTouching(i,t))return[new fr(i.startLineNumber,i.startColumn,i.endLineNumber,i.endColumn)];return null})}return a.playSignal(TL.format,{userGesture:s}),!0}function Jye(e,t,i,n,o,s,r){const a=t.onTypeFormattingEditProvider.ordered(i);return 0===a.length||a[0].autoFormatTriggerCharacters.indexOf(o)<0?Promise.resolve(void 0):Promise.resolve(a[0].provideOnTypeFormattingEdits(i,n,o,s,r)).catch(Gae).then(t=>e.computeMoreMinimalEdits(i.uri,t))}function eSe(){return nY}function tSe(e){return new sY(e)}async function iSe(e,t,i,n=gY.default,o={triggerKind:0},s=it.None){const r=new Fe;i=i.clone();const a=t.getWordAtPosition(i),l=a?new mr(i.lineNumber,a.startColumn,i.lineNumber,a.endColumn):mr.fromPositions(i),d={replace:l,insert:l.setEndPosition(i.lineNumber,i.column)},c=[],h=new De,u=[];let g=!1;const p=(e,t,o)=>{let s=!1;if(!t)return s;for(const r of t.suggestions)if(!n.kindFilter.has(r.kind)){if(!n.showDeprecated&&r?.tags?.includes(1))continue;r.range||(r.range=d),r.sortText||(r.sortText="string"==typeof r.label?r.label:r.label.label),!g&&r.insertTextRules&&4&r.insertTextRules&&(g=hP.guessNeedsClipboard(r.insertText)),c.push(new uY(i,r,t,e)),s=!0}return xle(t)&&h.add(t),u.push({providerName:e._debugDisplayName??"unknown_provider",elapsedProvider:t.duration??-1,elapsedOverall:o.elapsed()}),s},m=(async()=>{})();for(const _ of e.orderedGroups(t)){let e=!1;if(await Promise.all(_.map(async r=>{if(n.providerItemsToReuse.has(r)){const t=n.providerItemsToReuse.get(r);return t.forEach(e=>c.push(e)),void(e=e||t.length>0)}if(!(n.providerFilter.size>0)||n.providerFilter.has(r))try{const n=new Fe;e=p(r,await r.provideCompletionItems(t,i,o,s),n)||e}catch(a){Gae(a)}})),e||s.isCancellationRequested)break}return await m,s.isCancellationRequested?(h.dispose(),Promise.reject(new v)):new pY(c.sort((f=n.snippetSortOrder,mY.get(f))),g,{entries:u,elapsed:r.elapsed()},h);var f}function nSe(e,t){if(e.sortTextLow&&t.sortTextLow){if(e.sortTextLowt.sortTextLow)return 1}return e.textLabelt.textLabel?1:e.completion.kind-t.completion.kind}function oSe(e,t){if(e.completion.kind!==t.completion.kind){if(28===e.completion.kind)return-1;if(28===t.completion.kind)return 1}return nSe(e,t)}function sSe(e,t){if(e.completion.kind!==t.completion.kind){if(28===e.completion.kind)return 1;if(28===t.completion.kind)return-1}return nSe(e,t)}function rSe(e,t){let i=0;for(let n=0;n=o)return null;const s=[];for(let a=n;a<=o;a++)s.push(e.getLineContent(a));let r=s.slice(0);return r.sort(xY._COLLATOR.value.compare),!0===i&&(r=r.reverse()),{startLineNumber:n,endLineNumber:o,before:s,after:r}}function dSe(e,t=P){return function(e,t=P){return!!t&&wue(e.charCodeAt(0))&&58===e.charCodeAt(1)}(e,t)?e.charAt(0).toUpperCase()+e.slice(1):e}function cSe(e){return new BQ(e)}function hSe(e){return function(e){const t=Wi.createSortPermutation(e,fce(e=>e.range,mr.compareRangesUsingStarts)),i=new lC(t.apply(e)).getNewRanges();return t.inverse().apply(i)}(e).map(e=>e.getEndPosition())}function uSe(e,t){return new Promise(i=>{let n;const o=setTimeout(()=>{n&&n.dispose(),i()},e);t&&(n=t.onCancellationRequested(()=>{clearTimeout(o),n&&n.dispose(),i()}))})}function gSe(e,t,i,n){return e===n?t+i:i*(1-Math.pow(2,-10*e/n))+t}function pSe(e,t,i,n){return i*((e=e/n-1)*e*e+1)+t}function mSe(e,t){return Zde(e,t,fSe)}function fSe(e,t){return e===t||!(!e||!t)&&(e instanceof jQ&&t instanceof jQ||e instanceof GQ&&t instanceof GQ)&&e.equals(t)}function _Se(e,t,i){const n=i?e.range.intersectRanges(i):e.range;if(!n)return e;const o=e.text.replaceAll("\r\n","\n"),s=t.getValueInRange(n,1),r=sde(s,o),a=eC.ofText(s.substring(0,r)).addToPosition(e.range.getStartPosition()),l=o.substring(r);return new dC(mr.fromPositions(a,e.range.getEndPosition()),l)}function bSe(e,t){return e.text.startsWith(t.text)&&(i=e.range,(n=t.range).getStartPosition().equals(i.getStartPosition())&&n.getEndPosition().isBeforeOrEqual(i.getEndPosition()));var i,n}function vSe(e,t,i,n,o=0){let s=_Se(e,t);if(s.range.endLineNumber!==s.range.startLineNumber)return;const r=t.getLineContent(s.range.startLineNumber),a=$le(r).length;if(s.range.startColumn-1<=a){const e=$le(s.text).length,t=r.substring(s.range.startColumn-1,a),[i,n]=[s.range.getStartPosition(),s.range.getEndPosition()],o=i.column+t.length<=n.column?i.delta(0,t.length):n;s=new dC(mr.fromPositions(o,n),s.text.startsWith(t)?s.text.substring(t.length):s.text.substring(e))}const l=t.getValueInRange(s.range),d=function(e,t){if(ZQ?.originalValue===e&&ZQ?.newValue===t)return ZQ?.changes;{let i=CSe(e,t,!0);if(i){const n=wSe(i);if(n>0){const o=CSe(e,t,!1);o&&wSe(o)0===e.originalLength);if(e.length>1||1===e.length&&e[0].originalStart!==l.length)return}const u=s.text.length-o;for(const g of d){const e=s.range.startColumn+g.originalStart+g.originalLength;if("subwordSmart"===i&&n&&n.lineNumber===s.range.startLineNumber&&e0)return;if(0===g.modifiedLength)continue;const t=g.modifiedStart+g.modifiedLength,o=Math.max(g.modifiedStart,Math.min(t,u)),r=s.text.substring(g.modifiedStart,o),a=s.text.substring(o,Math.max(g.modifiedStart,t));r.length>0&&h.push(new $Q(e,r,!1)),a.length>0&&h.push(new $Q(e,a,!0))}return new jQ(c,h)}function wSe(e){let t=0;for(const i of e)t+=i.originalLength;return t}function CSe(e,t,i){if(e.length>5e3||t.length>5e3)return;function n(e){let t=0;for(let i=0,n=e.length;it&&(t=n)}return t}const o=Math.max(n(e),n(t));function s(e){if(e<0)throw new Error("unexpected");return o+e+1}function r(e){let t=0,n=0;const o=new Int32Array(e.length);for(let r=0,a=e.length;ra},{getElements:()=>l}).ComputeDiff(!1).changes}function ySe(e){if(!e)return!1;const t=e.toLowerCase();return"github.copilot"===t||"github.copilot-chat"===t}function SSe(e,t,i,n){return new Bz(e,t,i).ComputeDiff(n)}function xSe(e,t){const i=jle(e);return-1===i?t:i+1}function kSe(e,t){const i=Gle(e);return-1===i?t:i+2}function LSe(e){if(0===e)return()=>!0;const t=Date.now();return()=>Date.now()-t=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57}function ISe(e){return e>=65&&e<=90}function NSe(e){return fX[e]}function ESe(e){return 10===e?8:13===e?7:lwe(e)?6:e>=97&&e<=122?0:e>=65&&e<=90?1:e>=48&&e<=57?2:-1===e?3:44===e||59===e?5:4}function MSe(e,t,i,n,o,s){let{moves:r,excludedChanges:a}=function(e,t,i,n){const o=[],s=e.filter(e=>e.modified.isEmpty&&e.original.length>=3).map(e=>new UM(e.original,t,e)),r=new Set(e.filter(e=>e.original.isEmpty&&e.modified.length>=3).map(e=>new UM(e.modified,i,e))),a=new Set;for(const l of s){let e,t=-1;for(const i of r){const n=l.computeSimilarity(i);n>t&&(t=n,e=i)}if(t>.9&&e&&(r.delete(e),o.push(new WE(l.range,e.range)),a.add(l.source),a.add(e.source)),!n.isValid())return{moves:o,excludedChanges:a}}return{moves:o,excludedChanges:a}}(e,t,i,s);if(!s.isValid())return[];const l=function(e,t,i,n,o,s){const r=[],a=new Is;for(const u of e)for(let e=u.original.startLineNumber;ee.modified.startLineNumber,Oi));for(const u of e){let e=[];for(let t=u.modified.startLineNumber;t{for(const n of e)if(n.originalLineRange.endLineNumberExclusive+1===t.endLineNumberExclusive&&n.modifiedLineRange.endLineNumberExclusive+1===o.endLineNumberExclusive)return n.originalLineRange=new Qw(n.originalLineRange.startLineNumber,t.endLineNumberExclusive),n.modifiedLineRange=new Qw(n.modifiedLineRange.startLineNumber,o.endLineNumberExclusive),void s.push(n);const i={modifiedLineRange:o,originalLineRange:t};l.push(i),s.push(i)}),e=s}if(!s.isValid())return[]}l.sort(_ce(fce(e=>e.modifiedLineRange.length,Oi)));const d=new Xw,c=new Xw;for(const u of l){const e=u.modifiedLineRange.startLineNumber-u.originalLineRange.startLineNumber,t=d.subtractFrom(u.modifiedLineRange),i=c.subtractFrom(u.originalLineRange).getWithDelta(e),n=t.getIntersection(i);for(const o of n.ranges){if(o.length<3)continue;const t=o,i=o.delta(-e);r.push(new WE(i,t)),d.addRange(t),c.addRange(i)}}r.sort(fce(e=>e.original.startLineNumber,Oi));const h=new B_(e);for(let u=0;ue.original.startLineNumber<=t.original.startLineNumber),a=qpe(e,e=>e.modified.startLineNumber<=t.modified.startLineNumber),l=Math.max(t.original.startLineNumber-i.original.startLineNumber,t.modified.startLineNumber-a.modified.startLineNumber),g=h.findLastMonotonous(e=>e.original.startLineNumbere.modified.startLineNumbern.length||i>o.length)break;if(d.contains(i)||c.contains(e))break;if(!TSe(n[e-1],o[i-1],s))break}for(f>0&&(c.addRange(new Qw(t.original.startLineNumber-f,t.original.startLineNumber)),d.addRange(new Qw(t.modified.startLineNumber-f,t.modified.startLineNumber))),_=0;_n.length||i>o.length)break;if(d.contains(i)||c.contains(e))break;if(!TSe(n[e-1],o[i-1],s))break}_>0&&(c.addRange(new Qw(t.original.endLineNumberExclusive,t.original.endLineNumberExclusive+_)),d.addRange(new Qw(t.modified.endLineNumberExclusive,t.modified.endLineNumberExclusive+_))),(f>0||_>0)&&(r[u]=new WE(new Qw(t.original.startLineNumber-f,t.original.endLineNumberExclusive+_),new Qw(t.modified.startLineNumber-f,t.modified.endLineNumberExclusive+_)))}return r}(e.filter(e=>!a.has(e)),n,o,t,i,s);return hce(r,l),r=function(e){if(0===e.length)return e;e.sort(fce(e=>e.original.startLineNumber,Oi));const t=[e[0]];for(let i=1;i=0&&r>=0&&s+r<=2?t[t.length-1]=n.join(o):t.push(o)}return t}(r),r=r.filter(e=>{const i=e.original.toOffsetRange().slice(t).map(e=>e.trim());return i.join("\n").length>=15&&function(e,t){let i=0;for(const n of e)t(n)&&i++;return i}(i,e=>e.length>=2)>=2}),r=function(e,t){const i=new B_(e);return t=t.filter(t=>(i.findLastMonotonous(e=>e.original.startLineNumbere.modified.startLineNumber300&&t.length>300)return!1;const n=(new hX).compute(new mX([e],new mr(1,1,1,e.length),!1),new mX([t],new mr(1,1,1,t.length),!1),i);let o=0;const s=WM.invert(n.diffs,e.length);for(const a of s)a.seq1Range.forEach(t=>{lwe(e.charCodeAt(t))||o++});const r=function(t){let i=0;for(let n=0;nt.length?e:t);return o/r>.6&&r>10}function RSe(e,t,i){let n=i;return n=OSe(e,t,n),n=OSe(e,t,n),n=function(e,t,i){if(!e.getBoundaryScore||!t.getBoundaryScore)return i;for(let n=0;n0?i[n-1]:void 0,s=i[n],r=n+10&&(r=r.delta(a))}o.push(r)}return n.length>0&&o.push(n[n.length-1]),o}function ASe(e,t,i,n,o){let s=1;for(;e.seq1Range.start-s>=n.start&&e.seq2Range.start-s>=o.start&&i.isStronglyEqual(e.seq2Range.start-s,e.seq2Range.endExclusive-s)&&s<100;)s++;s--;let r=0;for(;e.seq1Range.start+rl&&(l=r,a=d)}return e.delta(a)}function PSe(e,t,i,n,o=!1){const s=WM.invert(i,e.length),r=[];let a=new BM(0,0);function l(i,l){if(i.offset10;){const i=s[0];if(!i.seq1Range.intersects(h.seq1Range)&&!i.seq2Range.intersects(h.seq2Range))break;const o=new WM(n(e,i.seq1Range.start),n(t,i.seq2Range.start)),r=o.intersect(i);if(g+=r.seq1Range.length,p+=r.seq2Range.length,h=h.join(o),!(h.seq1Range.endExclusive>=i.seq1Range.endExclusive))break;s.shift()}(o&&g+p0;){const e=s.shift();e.seq1Range.isEmpty||(l(e.getStarts(),e),l(e.getEndExclusives().delta(-1),e))}return function(e,t){const i=[];for(;e.length>0||t.length>0;){const n=e[0],o=t[0];let s;s=n&&(!o||n.seq1Range.start0&&i[i.length-1].seq1Range.endExclusive>=s.seq1Range.start?i[i.length-1]=i[i.length-1].join(s):i.push(s)}return i}(i,r)}function FSe(e){let t=0;for(;te.innerChanges??[]),a=new aC(s);return new Zw(r.map(i=>{const n=function(e,t){const i=eC.fromPosition(t.getStartPosition());return eC.ofRange(t).createRange(i.addToPosition(e))}(t.getStartPosition(),i.originalRange);return function(e,t,i,n){const o=n.getEOL();if(e.newText.endsWith(o)&&t.endsWith(o)&&(e=new Yw(e.replaceRange.deltaEnd(-o.length),e.newText.slice(0,-o.length))),1===i&&e.replaceRange.isEmpty&&e.newText.includes(o)){const t=n.getPositionAt(e.replaceRange.start);0!==n.getLineLength(t.lineNumber)&&(e=VSe(e,n))}if(1===i){const i=sde(t,e.newText),n=rde(t.slice(i),e.newText.slice(i));if(i+n===t.length)return new Yw(e.replaceRange.deltaStart(i).deltaEnd(-n),e.newText.substring(i,e.newText.length-n));if(i+n===e.newText.length)return new Yw(e.replaceRange.deltaStart(i).deltaEnd(-n),"")}return e}(new Yw(cSe(e).getOffsetRange(n),a.getValueOfRange(i.modifiedRange)),e.getValueInRange(n),r.length,e)}))}function VSe(e,t){if(!e.replaceRange.isEmpty)throw new y("Unexpected original range");if(0===e.replaceRange.start)return e;const i=t.getEOL(),n=t.getPositionAt(e.replaceRange.start),o=n.column,s=n.lineNumber;return 1===o&&s>1&&e.newText.endsWith(i)&&!e.newText.startsWith(i)?new Yw(e.replaceRange.delta(-1),i+e.newText.slice(0,-i.length)):e}function HSe(e,t,i,n,o,s){const r=Wpe("icr"),a=new ot;let l;const d={...n,requestUuid:r},c=function(e,t){const i=t.getWordAtPosition(e),n=t.getLineMaxColumn(e.lineNumber);return i?new mr(e.lineNumber,i.startColumn,e.lineNumber,n):mr.fromPositions(e,e.with(void 0,n))}(t,i),h=function(e,t){const i=new Map;for(const n of e){const e=t(n);let o=i.get(e);o||(o=[],i.set(e,o)),o.push(n)}return i}(e,e=>e.groupId),u=IX.from(e,e=>e.yieldsToGroupIds?.flatMap(e=>h.get(e)??[])??[]),{foundCycles:g}=u.removeCycles();g.length>0&&Gae(new Error(`Inline completions: cyclic yield-to dependency detected. Path: ${g.map(e=>e.toString?e.toString():""+e).join(" -> ")}`));let p=0;const m=new Dt(async e=>{try{if(p++,a.token.isCancellationRequested)return;const r=u.getOutgoing(e);for(const e of r){const n=await m.get(e);if(n)for(const e of n.inlineSuggestions.items){if(e.isInlineEdit||"string"!=typeof e.insertText&&void 0!==e.insertText)return;if(void 0!==e.insertText&&WSe(new dC(mr.lift(e.range)??c,e.insertText),void 0,i,t))return}}let h;const g=Date.now();try{h=await e.provideInlineCompletions(i,t,d,a.token)}catch(n){return void Gae(n)}const f=Date.now();if(!h)return;const _=[],b=new RX(h,_,e);if(b.addRef(),zSe(a.token,()=>b.removeRef(l)),a.token.isCancellationRequested)return;for(const e of h.items)_.push(USe(e,b,c,i,s,d,o,{startTime:g,endTime:f}));return b}finally{p--}});return{contextWithUuid:d,get didAllProvidersReturn(){return 0===p},lists:xt.fromPromisesResolveOrder(e.map(e=>m.get(e))).filter(ule),cancelAndDispose:e=>{void 0===l&&(l=e,a.dispose(!0))}}}function zSe(e,t){if(e.isCancellationRequested)return t(),Ie.None;{const i=e.onCancellationRequested(()=>{i.dispose(),t()});return{dispose:()=>i.dispose()}}}function USe(e,t,i,n,o,s,r,a){let l,d,c=e.range?mr.lift(e.range):i;if("string"==typeof e.insertText){if(l=e.insertText,o&&e.completeBracketPairs){l=KSe(l,c.getStartPosition(),n,o);const t=l.length-e.insertText.length;0!==t&&(c=new mr(c.startLineNumber,c.startColumn,c.endLineNumber,c.endColumn+t))}d=void 0}else if(void 0===e.insertText)l="",d=void 0,c=new mr(1,1,1,1);else if("snippet"in e.insertText){const t=e.insertText.snippet.length;if(o&&e.completeBracketPairs){e.insertText.snippet=KSe(e.insertText.snippet,c.getStartPosition(),n,o);const i=e.insertText.snippet.length-t;0!==i&&(c=new mr(c.startLineNumber,c.startColumn,c.endLineNumber,c.endColumn+i))}const i=(new hP).parse(e.insertText.snippet);1===i.children.length&&i.children[0]instanceof nP?(l=i.children[0].value,d=void 0):(l=i.toString(),d={snippet:e.insertText.snippet,range:c})}else ele(e.insertText);return new MX(c,l,d,_i.revive(e.uri),e.hint,e.additionalTextEdits||VQ,e,t,s,e.isInlineEdit??!1,r,a,e.correlationId)}function KSe(e,t,i,n){const o=i.getLineContent(t.lineNumber),s=Yw.replace(new hl(t.column-1,o.length),e),r=i.tokenization.tokenizeLinesAt(t.lineNumber,[s.replace(o)])?.[0].sliceZeroCopy(s.getRangeAfterReplace());return r?function(e,t){const i=new ky(new ay,e=>t.getLanguageConfiguration(e)),n=Xme(new Cy(new DX([e]),i),[],void 0,!0);let o="";const s=e.getLineContent();return function e(t,n){if(2===t.kind)if(e(t.openingBracket,n),n=Wme(n,t.openingBracket.length),t.child&&(e(t.child,n),n=Wme(n,t.child.length)),t.closingBracket)e(t.closingBracket,n),n=Wme(n,t.closingBracket.length);else{const e=i.getSingleLanguageBracketTokens(t.openingBracket.languageId).findClosingTokenText(t.openingBracket.bracketIds);o+=e}else if(3===t.kind);else if(0===t.kind||1===t.kind)o+=s.substring(n,Wme(n,t.length));else if(4===t.kind)for(const i of t.children)e(i,n),n=Wme(n,i.length)}(n,0),o}(r,n):e}function qSe(e,t,i){if(1===t.length)return[];const n=new zR(e),o=n.getTransformer(),s=o.getOffset(t[0]),r=t.slice(1).map(e=>o.getOffset(e));i=i.removeCommonPrefixAndSuffix(n);const a=o.getStringReplacement(i),l=a.replaceRange.start-s,d=a.replaceRange.join(hl.emptyAt(s)),c=n.getValueOfOffsetRange(d);return r.map(e=>{const t=e+l,i=new hl(t,t+a.replaceRange.length),s=i.join(hl.emptyAt(e));if(n.getValueOfOffsetRange(s)!==c)return;const r=new Yw(i,a.newText);return o.getTextReplacement(r)}).filter(ule)}function jSe(e){return!!e&&Boolean(e.completion.documentation||e.completion.detail&&e.completion.detail!==e.completion.label)}function $Se(e,t,i,n,o){if(mo.isThemeIcon(o))return[`codicon-${o.id}`,"predefined-file-icon"];if(_i.isUri(o))return[];const s=n===jJ.ROOT_FOLDER?["rootfolder-icon"]:n===jJ.FOLDER?["folder-icon"]:["file-icon"];if(i){let o;if(i.scheme===yi.data)o=Us.parseMetaData(i).get(Us.META_DATA_LABEL);else{const e=i.path.match($J);e?(o=GSe(e[2].toLowerCase()),e[1]&&s.push(`${GSe(e[1].toLowerCase())}-name-dir-icon`)):o=GSe(i.authority.toLowerCase())}if(n===jJ.ROOT_FOLDER)s.push(`${o}-root-name-folder-icon`);else if(n===jJ.FOLDER)s.push(`${o}-name-folder-icon`);else{if(o){if(s.push(`${o}-name-file-icon`),s.push("name-file-icon"),o.length<=255){const e=o.split(".");for(let t=1;te===NX.Accept?A0:O0)}function XSe(e){return e.map(e=>e===NX.Accept?P0:R0)}function JSe(e,t){let i;i="string"==typeof e?exe(e,t):e.map((e,i)=>exe(e,t).read(i));const n=exe(wh,t);return i.map((e,t)=>e.makeOpaque(n.read(t)))}function exe(e,t){return zce({owner:{observeColor:e},equalsFn:(e,t)=>e.equals(t),debugName:()=>`observeColor(${e})`},t.onDidColorThemeChange,()=>{const i=t.getColorTheme().getColor(e);if(!i)throw new y(`Missing color: ${e}`);return i})}function txe(e,t,i){e.layoutInfo.read(i),e.value.read(i);const n=e.model.read(i);if(!n)return 0;let o=0;e.scrollTop.read(i);for(let r=t.startLineNumber;rn.getLineContent(e));return o<5&&s.some(e=>e.length>0)&&"file"!==n.uri.scheme&&console.error("unexpected width"),o}function ixe(e,t,i,n,o=void 0){const s=n.getModel();if(!s)return{prefixTrim:0,prefixLeftOffset:0};const r=e.map(e=>e.isSingleLine()?e.startColumn-1:0),a=t.mapToLineArray(e=>y_e(s.getLineContent(e))),l=i.filter(e=>""!==e).map(e=>y_e(e)),d=Math.min(...r,...a,...l);let c;if(s.getLineIndentColumn(t.startLineNumber)>=d+1)bwe(n).scrollTop.read(o),c=n.getOffsetForColumn(t.startLineNumber,d+1);else{if(!(i.length>0))return{prefixTrim:0,prefixLeftOffset:0};c=nxe(i[0].slice(0,d),n,s)}return{prefixTrim:d,prefixLeftOffset:c}}function nxe(e,t,i){const n=t.getOption(59).typicalHalfwidthCharacterWidth,o=i.getOptions().tabSize*n,s=e.split("\t").length-1;return(e.length-s)*n+s*o}function oxe(e){const t=e.layoutInfoContentLeft,i=Dce({name:"editor.validOverlay.width"},i=>{const n=0!==e.layoutInfoMinimap.read(i).minimapLeft,o=e.layoutInfoWidth.read(i)-t.read(i);return n?o-(e.layoutInfoMinimap.read(i).minimapWidth+e.layoutInfoVerticalScrollbarWidth.read(i)):o}),n=Dce({name:"editor.validOverlay.height"},t=>e.layoutInfoHeight.read(t)+e.contentHeight.read(t));return Dce({name:"editor.validOverlay"},e=>H1.fromLeftTopWidthHeight(t.read(e),0,i.read(e),n.read(e)))}function sxe(...e){return e.filter(e=>"string"==typeof e).join(" ")}function rxe(e,t,i){const n=qle(e),o=[],s=Ype(t.mapToLineArray(e=>function(e,t){let i=0;e:for(let n=0,o=e.length;n{const t=function(e,t,i){let n=t-t%i,o=0;for(;oe.read(t)||i);return Nce({debugName:()=>`${e.debugName}.mapOutFalsy`},i=>{if(t.read(i),e.read(i))return t})}function lxe(e,t=Hi.ofCaller()){return{left:Dce({name:"editor.validOverlay.left"},t=>e(t).left,t),top:Dce({name:"editor.validOverlay.top"},t=>e(t).top,t),width:Dce({name:"editor.validOverlay.width"},t=>e(t).right-e(t).left,t),height:Dce({name:"editor.validOverlay.height"},t=>e(t).bottom-e(t).top,t)}}function dxe(e){return Dce({name:"inlineEdits.option"},t=>zn.div({class:["monaco-menu-option",e.isActive?.map(e=>e&&"active")],onmouseenter:()=>e.onHoverChange?.(!0),onmouseleave:()=>e.onHoverChange?.(!1),onclick:e.onAction,onkeydown:t=>{"Enter"===t.key&&e.onAction?.()},tabIndex:0,style:{borderRadius:3}},[zn.elem("span",{style:{fontSize:16,display:"flex"}},[mo.isThemeIcon(e.icon)?pve(e.icon):e.icon.map(e=>pve(e))]),zn.elem("span",{},[e.title]),zn.div({style:{marginLeft:"auto"},ref:i=>{const n=t.store.add(new fP(i,Y,{disableTitle:!0,...oR,keybindingLabelShadow:void 0,keybindingLabelForeground:gpe(ah),keybindingLabelBackground:"transparent",keybindingLabelBorder:"transparent",keybindingLabelBottomBorder:void 0}));t.store.add(Rce(t=>{n.set(e.keybinding.read(t))}))}})]))}function cxe(){return zn.div({id:"inline-edit-gutter-indicator-menu-separator",class:"menu-separator",style:{color:gpe(Zg),padding:"2px 0"}},zn.div({style:{borderBottom:`1px solid ${gpe(qh)}`}}))}function hxe(e){return!!e.innerChanges&&e.innerChanges.every(e=>_we(e.modifiedRange)&&_we(e.originalRange))}function uxe(e){return e.every(e=>e.innerChanges.every(e=>function(e){return!!e.originalRange.isEmpty()&&e.modifiedRange.startLineNumber===e.modifiedRange.endLineNumber}(e)))}function gxe(e,t){if(!t)return!1;if(!uxe(e))return!1;const i=t;return e.every(e=>e.innerChanges.every(e=>function(e){const t=e.originalRange.getStartPosition();return!!i.isBeforeOrEqual(t)||t.lineNumbere.innerChanges??[]);if(1!==t.length)return!1;const i=t[0];return!!i.originalRange.isEmpty()&&i.modifiedRange.startLineNumber!==i.modifiedRange.endLineNumber}function mxe(e,t,i){return e.map(e=>({original:t.originalText.getValueOfRange(e.originalRange),modified:i.getValueOfRange(e.modifiedRange)})).every(({original:e,modified:t})=>""===t.trim()&&e.length>0&&(e.length>t.length||""!==e.trim()))}function fxe(e,t){return _xe(e,t,e=>!/^\s$/.test(e))}function _xe(e,t,i){const n=[];e.sort((e,t)=>mr.compareRangesUsingStarts(e.range,t.range));for(const s of e){let e=s.range.startColumn-1,i=s.range.endColumn-2,r="",a="";const l=t.getLineAt(s.range.startLineNumber),d=t.getLineAt(s.range.endLineNumber);if(o(l[e]))for(;o(l[e-1]);)r=l[e-1]+r,e--;if(o(d[i])||i0&&mr.areIntersectingOrTouching(n[n.length-1].range,c.range)&&(c=dC.joinReplacements([n.pop(),c],t)),n.push(c)}function o(e){return void 0!==e&&i(e)}return n}function bxe(e,t,i,n){if(1===e.getLineCount()&&1===e.getLineMaxColumn(1))return[];const o=t.getLanguageConfiguration(e.getLanguageId()).indentRulesSupport;if(!o)return[];const s=new bl(e,o,t);for(n=Math.min(n,e.getLineCount());i<=n&&s.shouldIgnore(i);)i++;if(i>n-1)return[];const{tabSize:r,indentSize:a,insertSpaces:l}=e.getOptions(),d=(e,t)=>(t=t||1,kl.shiftIndent(e,e.length+t,r,a,l)),c=(e,t)=>(t=t||1,kl.unshiftIndent(e,e.length+t,r,a,l)),h=[];let u=$le(e.getLineContent(i)),g=u;s.shouldIncrease(i)?(g=d(g),u=d(u)):s.shouldIndentNextLine(i)&&(g=d(g));for(let p=++i;p<=n;p++){if(vxe(e,p))continue;const t=$le(e.getLineContent(p)),i=g;s.shouldDecrease(p,i)&&(g=c(g),u=c(u)),t!==g&&h.push(VH.replaceMove(new fr(p,1,p,t.length+1),Tue(g,a,l))),s.shouldIgnore(p)||(s.shouldIncrease(p,i)?(u=d(u),g=u):g=s.shouldIndentNextLine(p,i)?d(g):u)}return h}function vxe(e,t){return!!e.tokenization.isCheapToTokenize(t)&&2===e.tokenization.getLineTokens(t).getStandardTokenType(0)}function wxe(e,t,i,n){if(1===e.getLineCount()&&1===e.getLineMaxColumn(1))return;let o="";for(let r=0;rasync()=>{try{return await e.provideLinkedEditingRanges(t,i,n)}catch(o){return void Gae(o)}}),e=>!!e&&sce(e?.ranges))}async function yxe(e,t,i){const n=[],o=e.ordered(t).reverse().map(async(e,o)=>{try{const s=await e.provideLinks(t,i);s&&(n[o]=[s,e])}catch(s){Gae(s)}});await Promise.all(o);let s=new c5(ice(n));return i.isCancellationRequested&&(s.dispose(),s=c5.Empty),s}function Sxe(e){return e===yb.Write?L5:e===yb.Text?D5:E5}function xxe(e){return e?N5:I5}function kxe(e,t){const i=t.filter(t=>!e.find(e=>e.equals(t)));if(i.length>=1){const e=i.map(e=>`line ${e.viewState.position.lineNumber} column ${e.viewState.position.column}`).join(", ");Xhe(1===i.length?Vae(1288,"Cursor added: {0}",e):Vae(1289,"Cursors added: {0}",e))}}function Lxe(e,t,i){const n=Dxe(e,t[0],!i);for(let o=1,s=t.length;oe&&0===n[5*t];)t--;if(t-1===e){let e=c;for(;e+1c)t.warnOverlappingSemanticTokens(r,c+1);else{const e=t.getMetadata(_,b,i);2147483647!==e&&(0===g&&(g=r),h[u]=r-g,h[u+1]=c,h[u+2]=f,h[u+3]=e,u+=4,p=r,m=f)}l=r,d=c,a++}u!==h.length&&(h=h.subarray(0,u));const f=q3.create(g,h);r.push(f)}return r}function Mxe(e){const t=new Uint32Array(function(e){let t=0;if(t+=2,"full"===e.type)t+=1+e.data.length;else{t+=1,t+=3*e.deltas.length;for(const i of e.deltas)i.data&&(t+=i.data.length)}return t}(e));let i=0;if(t[i++]=e.id,"full"===e.type)t[i++]=1,t[i++]=e.data.length,t.set(e.data,i),i+=e.data.length;else{t[i++]=2,t[i++]=e.deltas.length;for(const n of e.deltas)t[i++]=n.start,t[i++]=n.deleteCount,n.data?(t[i++]=n.data.length,t.set(n.data,i),i+=n.data.length):t[i++]=0}return function(e){const t=new Uint8Array(e.buffer,e.byteOffset,4*e.length);return ble()||function(e){for(let t=0,i=e.length;t0?i[0]:[]}(e,t),r=await Promise.all(s.map(async e=>{let s,r=null;try{s=await e.provideDocumentSemanticTokens(t,e===i?n:null,o)}catch(a){r=a,s=null}return s&&(Txe(s)||Rxe(s))||(s=null),new e6(e,s,r)}));for(const a of r){if(a.error)throw a.error;if(a.tokens)return a}return r.length>0?r[0]:null}function Pxe(e,t){const i=e.orderedGroups(t);return i.length>0?i[0]:[]}async function Fxe(e,t,i,n){const o=Pxe(e,t),s=await Promise.all(o.map(async e=>{let o;try{o=await e.provideDocumentRangeSemanticTokens(t,i,n)}catch(s){Gae(s),o=null}return o&&Txe(o)||(o=null),new t6(e,o)}));for(const r of s)if(r.tokens)return r;return s.length>0?s[0]:null}function Wxe(e,t,i){const n=i.getValue(i6,{overrideIdentifier:e.getLanguageId(),resource:e.uri})?.enabled;return"boolean"==typeof n?n:t.getColorTheme().semanticHighlighting}async function Bxe(e,t,i,n,o){const s=e.all(t).concat(new p6(n.selectSubwords));1===s.length&&s.unshift(new DJ);const r=[],a=[];for(const l of s)r.push(Promise.resolve(l.provideSelectionRanges(t,i,o)).then(e=>{if(sce(e)&&e.length===i.length)for(let t=0;t{if(0===e.length)return[];e.sort((e,t)=>to.isBefore(e.getStartPosition(),t.getStartPosition())?1:to.isBefore(t.getStartPosition(),e.getStartPosition())||to.isBefore(e.getEndPosition(),t.getEndPosition())?-1:to.isBefore(t.getEndPosition(),e.getEndPosition())?1:0);const i=[];let o;for(const t of e)(!o||mr.containsRange(t,o)&&!mr.equalsRange(t,o))&&(i.push(t),o=t);if(!n.selectLeadingAndTrailingWhitespace)return i;const s=[i[0]];for(let n=1;n"**"===e))t=".*";else{let e=!1;i.forEach((n,o)=>{if("**"===n){if(e)return;t+=qxe(2,o===i.length-1)}else{let e=!1,s="",r=!1,a="";for(const i of n)if("}"!==i&&e)s+=i;else{if(r&&("]"!==i||!a)){let e;e="-"===i?i:"^"!==i&&"!"!==i||a?"/"===i?"":Ble(i):"^",a+=e;continue}switch(i){case"{":e=!0;continue;case"[":r=!0;continue;case"}":{const i=`(?:${jxe(s,",").map(e=>$xe(e)).join("|")})`;t+=i,e=!1,s="";break}case"]":t+="["+a+"]",r=!1,a="";break;case"?":t+=v9;continue;case"*":t+=qxe(1);continue;default:t+=Ble(i)}}oe===t,endsWith:n?ode:(e,t)=>e.endsWith(t),isEqualOrParent:(e,t)=>vue(e,t,!W||n)},s=`${n?i.toLowerCase():i}_${!!t.trimForExclusions}_${n}`;let r,a=D9.get(s);return a||(a=C9.test(i)?function(e,t,i){return function(n,o){return"string"==typeof n&&i.endsWith(n,e)?t:null}}(i.substring(4),i,o):(r=y9.exec(Yxe(i,o)))?function(e,t,i){const n=`/${e}`,o=`\\${e}`,s=function(s,r){return"string"!=typeof s?null:r?i.equals(r,e)?t:null:i.equals(s,e)||i.endsWith(s,n)||i.endsWith(s,o)?t:null},r=[e];return s.basenames=r,s.patterns=[t],s.allBasenames=r,s}(r[1],i,o):(t.trimForExclusions?x9:S9).test(i)?function(e,t){const i=Jxe(e.slice(1,-1).split(",").map(e=>Gxe(e,t)).filter(e=>e!==N9),e),n=i.length;if(!n)return N9;if(1===n)return i[0];const o=function(t,n){for(let o=0,s=i.length;o!!e.allBasenames);s&&(o.allBasenames=s.allBasenames);const r=i.reduce((e,t)=>t.allPaths?e.concat(t.allPaths):e,[]);return r.length&&(o.allPaths=r),o}(i,o):(r=k9.exec(Yxe(i,o)))?Qxe(r[1].substring(1),i,!0,o):(r=L9.exec(Yxe(i,o)))?Qxe(r[1],i,!1,o):function(e,t){try{const i=new RegExp(`^${$xe(e)}$`,t.ignoreCase?"i":void 0);return function(t){return i.lastIndex=0,"string"==typeof t&&i.test(t)?e:null}}catch{return N9}}(i,o),D9.set(s,a)),Zxe(a,e,o)}function Zxe(e,t,i){if("string"==typeof t)return e;const n=function(n,o){return i.isEqualOrParent(n,t.base)?e(Hle(n.substring(t.base.length),ci),o):null};return n.allBasenames=e.allBasenames,n.allPaths=e.allPaths,n.basenames=e.basenames,n.patterns=e.patterns,n}function Yxe(e,t){return t.trimForExclusions&&e.endsWith("/**")?e.substring(0,e.length-2):e}function Qxe(e,t,i,n){const o=ci===ni.sep,s=o?e:e.replace(w9,ci),r=ci+s,a=ni.sep+e;let l;return l=i?function(i,l){return"string"==typeof i&&(n.equals(i,s)||n.endsWith(i,r)||!o&&(n.equals(i,e)||n.endsWith(i,a)))?t:null}:function(i,r){return"string"==typeof i&&(n.equals(i,s)||!o&&n.equals(i,e))?t:null},l.allPaths=[(i?"*/":"./")+e],l}function Xxe(e,t={}){if(!e)return I9;if("string"==typeof e||function(e){const t=e;return!!t&&"string"==typeof t.base&&"string"==typeof t.pattern}(e)){const i=Gxe(e,t);if(i===N9)return I9;const n=function(e,t){return!!i(e,t)};return i.allBasenames&&(n.allBasenames=i.allBasenames),i.allPaths&&(n.allPaths=i.allPaths),n}return function(e,t){const i=Jxe(Object.getOwnPropertyNames(e).map(i=>function(e,t,i){if(!1===t)return N9;const n=Gxe(e,i);if(n===N9)return N9;if("boolean"==typeof t)return n;if(t){const i=t.when;if("string"==typeof i){const t=(t,o,s,r)=>{if(!r||!n(t,o))return null;const a=r(i.replace("$(basename)",()=>s));return Nle(a)?a.then(t=>t?e:null):a?e:null};return t.requiresSiblings=!0,t}}return n}(i,e[i],t)).filter(e=>e!==N9)),n=i.length;if(!n)return N9;if(!i.some(e=>!!e.requiresSiblings)){if(1===n)return i[0];const e=function(e,t){let n;for(let o=0,s=i.length;o{for(const e of n){const t=await e;if("string"==typeof t)return t}return null})():null},t=i.find(e=>!!e.allBasenames);t&&(e.allBasenames=t.allBasenames);const o=i.reduce((e,t)=>t.allPaths?e.concat(t.allPaths):e,[]);return o.length&&(e.allPaths=o),e}const o=function(e,t,n){let o,s;for(let r=0,a=i.length;r{for(const e of s){const t=await e;if("string"==typeof t)return t}return null})():null},s=i.find(e=>!!e.allBasenames);s&&(o.allBasenames=s.allBasenames);const r=i.reduce((e,t)=>t.allPaths?e.concat(t.allPaths):e,[]);return r.length&&(o.allPaths=r),o}(e,t)}function Jxe(e,t){const i=e.filter(e=>!!e.basenames);if(i.length<2)return e;const n=i.reduce((e,t)=>{const i=t.basenames;return i?e.concat(i):e},[]);let o;if(t){o=[];for(let e=0,i=n.length;e{const i=t.patterns;return i?e.concat(i):e},[]);const s=function(e,t){if("string"!=typeof e)return null;if(!t){let i;for(i=e.length;i>0;i--){const t=e.charCodeAt(i-1);if(47===t||92===t)break}t=e.substring(i)}const i=n.indexOf(t);return-1!==i?o[i]:null};s.basenames=n,s.patterns=o,s.allBasenames=n;const r=e.filter(e=>!e.basenames);return r.push(s),r}function eke(e,t,i,n,o,s){if(Array.isArray(e)){let r=0;for(const a of e){const e=eke(a,t,i,n,o,s);if(10===e)return e;e>r&&(r=e)}return r}if("string"==typeof e)return n?"*"===e?5:e===i?10:0:0;if(e){const{language:d,pattern:c,scheme:h,hasAccessToAllModels:u,notebookType:g}=e;if(!n&&!u)return 0;g&&o&&(t=o);let p=0;if(h)if(h===t.scheme)p=10;else{if("*"!==h)return 0;p=5}if(d)if(d===i)p=10;else{if("*"!==d)return 0;p=Math.max(p,5)}if(g)if(g===s)p=10;else{if("*"!==g||void 0===s)return 0;p=Math.max(p,5)}if(c){let e;if(e="string"==typeof c?c:{...c,base:oi(c.base)},e!==t.fsPath&&(r=e,a=t.fsPath,!r||"string"!=typeof a||!Xxe(r,l)(a)))return 0;p=10}return p}return 0;var r,a,l}function tke(e,t,i,n){return Ole(e.ordered(t).map(e=>()=>Promise.resolve(e.provideDocumentHighlights(t,i,n)).then(void 0,Gae)),e=>null!=e).then(e=>{if(e){const i=new ys;return i.set(t.uri,e),i}return new ys})}function ike(e,t,i=0,n=0){const o=t;return o.values&&o.values.length>1?function(e,t,i,n){let o=0;const s=[];for(const r of t){const[t,a]=nke(e,r,i,n);if("number"!=typeof t)return w8;o+=t,s.push(...a)}return[o,oke(s)]}(e,o.values,i,n):nke(e,t,i,n)}function nke(e,t,i,n){const o=Tbe(t.original,t.originalLowercase,i,e,e.toLowerCase(),n,{firstMatchCanBeWeak:!0,boostFullMatch:!0});return o?[o[0],Lbe(o)]:w8}function oke(e){const t=e.sort((e,t)=>e.start-t.start),i=[];let n;for(const o of t)n&&ske(n,o)?(n.start=Math.min(n.start,o.start),n.end=Math.max(n.end,o.end)):(n=o,i.push(o));return i}function ske(e,t){return!(e.end=0,r=rke(e);let a;const l=e.split(C8);if(l.length>1)for(const d of l){const e=rke(d),{pathNormalized:t,normalized:i,normalizedLowercase:n}=lke(d);i&&(a||(a=[]),a.push({original:d,originalLowercase:d.toLowerCase(),pathNormalized:t,normalized:i,normalizedLowercase:n,expectContiguousMatch:e}))}return{original:e,originalLowercase:t,pathNormalized:i,normalized:n,normalizedLowercase:o,values:a,containsPathSeparator:s,expectContiguousMatch:r}}function lke(e){let t;t=P?e.replace(/\//g,ci):e.replace(/\\/g,ci);const i=t.replace(/[\*\u2026\s"]/g,"");return{pathNormalized:t,normalized:i,normalizedLowercase:i.toLowerCase()}}function dke(e){return Array.isArray(e)?ake(e.map(e=>e.original).join(C8)):ake(e.original)}function cke(e){const t=e;return Array.isArray(t.items)}function hke(e){const t=e;return!!t.picks&&t.additionalPicks instanceof Promise}function uke(e){return function(e,t,i){if(!e)return e;const n=i.get(e);if(n)return n;let o;return o=F8.test(e)?e.normalize(t):e,i.set(e,o),o}(e,"NFD",P8)}function gke(e){return"vs"===e||"vs-dark"===e||"hc-black"===e||"hc-light"===e}function pke(e){switch(e){case"vs":return lee;case gee:return dee;case pee:return cee;case mee:return hee}}function mke(e){return new bee(e,pke(e))}function fke(){return{editor:void 0,languages:void 0,CancellationTokenSource:ot,Emitter:je,KeyCode:zee,KeyMod:mte,Position:to,Range:mr,Selection:fr,SelectionDirection:ote,MarkerSeverity:Uee,MarkerTag:Kee,Uri:_i,Token:cb}}function _ke(e){V&&(_te||(_te=!0,console.warn("Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/microsoft/monaco-editor#faq")),console.warn(e.message))}function bke(e){return"o"===e[0]&&"n"===e[1]&&tde(e.charCodeAt(2))}function vke(e){return/^onDynamic/.test(e)&&tde(e.charCodeAt(9))}function wke(e,t){const i=e.label||"anonymous"+t,n=qae();if(n){if("function"==typeof n.getWorker)return n.getWorker("workerMain.js",i);if("function"==typeof n.getWorkerUrl){const e=n.getWorkerUrl("workerMain.js",i);return new Worker(kte?kte.createScriptURL(e):e,{name:i,type:"module"})}}const o=e.esmModuleLocation;if(o){const e=function(e,t){if(/^((http:)|(https:)|(file:))/.test(t)&&t.substring(0,globalThis.origin.length)!==globalThis.origin);else{const i=t.lastIndexOf("?"),n=t.lastIndexOf("#",i),o=i>0?new URLSearchParams(t.substring(i+1,~n?n:void 0)):new URLSearchParams;Li.addSearchParam(o,!0,!0),t=o.toString()?`${t}?${o.toString()}#${e}`:`${t}#${e}`}const i=new Blob([ice([`/*${e}*/`,`globalThis._VSCODE_NLS_MESSAGES = ${JSON.stringify(Fae())};`,`globalThis._VSCODE_NLS_LANGUAGE = ${JSON.stringify(Wae())};`,`globalThis._VSCODE_FILE_ROOT = ${JSON.stringify(globalThis._VSCODE_FILE_ROOT)};`,"const ttPolicy = globalThis.trustedTypes?.createPolicy('defaultWorkerFactory', { createScriptURL: value => value });","globalThis.workerttPolicy = ttPolicy;",`await import(ttPolicy?.createScriptURL(${JSON.stringify(t)}) ?? ${JSON.stringify(t)});`,"globalThis.postMessage({ type: 'vscode-worker-ready' });",`/*${e}*/`]).join("")],{type:"application/javascript"});return URL.createObjectURL(i)}(i,o.toString(!0));return s=new Worker(kte?kte.createScriptURL(e):e,{name:i,type:"module"}),new Promise((e,t)=>{s.onmessage=function(t){"vscode-worker-ready"===t.data.type&&(s.onmessage=null,e(s))},s.onerror=t})}var s;throw new Error("You must define a function MonacoEnvironment.getWorkerUrl or MonacoEnvironment.getWorker")}function Cke(e){const t=[];for(const i of e){const e=Number(i);(e||0===e&&""!==i.replace(/\s/g,""))&&t.push(e)}return t}function yke(e,t,i,n){return{red:e/255,blue:i/255,green:t/255,alpha:n}}function Ske(e,t){const i=t.index,n=t[0].length;if(void 0===i)return;const o=e.positionAt(i);return{startLineNumber:o.lineNumber,startColumn:o.column,endLineNumber:o.lineNumber,endColumn:o.column+n}}function xke(e,t){if(!e)return;const i=eh.Format.CSS.parseHex(t);return i?{range:e,color:yke(i.rgba.r,i.rgba.g,i.rgba.b,i.rgba.a)}:void 0}function kke(e,t,i){if(!e||1!==t.length)return;const n=Cke(t[0].values());return{range:e,color:yke(n[0],n[1],n[2],i?n[3]:1)}}function Lke(e,t,i){if(!e||1!==t.length)return;const n=Cke(t[0].values()),o=new eh(new Xc(n[0],n[1]/100,n[2]/100,i?n[3]:1));return{range:e,color:yke(o.rgba.r,o.rgba.g,o.rgba.b,o.rgba.a)}}function Dke(e,t){return"string"==typeof e?[...e.matchAll(t)]:e.findMatches(t)}function Ike(e){return e&&"function"==typeof e.getValue&&"function"==typeof e.positionAt?function(e){const t=[],i=Dke(e,/\b(rgb|rgba|hsl|hsla)(\([0-9\s,.\%]*\))|^(#)([A-Fa-f0-9]{3})\b|^(#)([A-Fa-f0-9]{4})\b|^(#)([A-Fa-f0-9]{6})\b|^(#)([A-Fa-f0-9]{8})\b|(?<=['"\s])(#)([A-Fa-f0-9]{3})\b|(?<=['"\s])(#)([A-Fa-f0-9]{4})\b|(?<=['"\s])(#)([A-Fa-f0-9]{6})\b|(?<=['"\s])(#)([A-Fa-f0-9]{8})\b/gm);if(i.length>0)for(const n of i){const i=n.filter(e=>void 0!==e),o=i[1],s=i[2];if(!s)continue;let r;"rgb"===o?r=kke(Ske(e,n),Dke(s,/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*\)$/gm),!1):"rgba"===o?r=kke(Ske(e,n),Dke(s,/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm),!0):"hsl"===o?r=Lke(Ske(e,n),Dke(s,/^\(\s*((?:360(?:\.0+)?|(?:36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])(?:\.\d+)?))\s*[\s,]\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*[\s,]\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm),!1):"hsla"===o?r=Lke(Ske(e,n),Dke(s,/^\(\s*((?:360(?:\.0+)?|(?:36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])(?:\.\d+)?))\s*[\s,]\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*[\s,]\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*[\s,]\s*(0[.][0-9]+|[.][0-9]+|[01][.]0*|[01])\s*\)$/gm),!0):"#"===o&&(r=xke(Ske(e,n),o+s)),r&&t.push(r)}return t}(e):[]}function Nke(e,t){let i=[];if(t.findRegionSectionHeaders&&t.foldingRules?.markers){const n=function(e,t){const i=[],n=e.getLineCount();for(let o=1;o<=n;o++){const n=e.getLineContent(o),s=n.match(t.foldingRules.markers.start);if(s){const e={startLineNumber:o,startColumn:s[0].length+1,endLineNumber:o,endColumn:n.length+1};if(e.endColumn>e.startColumn){const t={range:e,...Eke(n.substring(s[0].length)),shouldBeInComments:!1};(t.text||t.hasSeparatorLine)&&i.push(t)}}}return i}(e,t);i=i.concat(n)}if(t.findMarkSectionHeaders){const n=function(e,t){const i=[],n=e.getLineCount();if(!t.markSectionHeaderRegex||""===t.markSectionHeaderRegex.trim())return i;const o=Yfe(t.markSectionHeaderRegex),s=new RegExp(t.markSectionHeaderRegex,"gdm"+(o?"s":""));if(Kle(s))return i;for(let r=1;r<=n;r+=Pte-Fte){const t=Math.min(r+Pte-1,n),o=[];for(let i=r;i<=t;i++)o.push(e.getLineContent(i));const a=o.join("\n");let l;for(s.lastIndex=0;null!==(l=s.exec(a));){const e=a.substring(0,l.index),t=r+(e.match(/\n/g)||[]).length,n=l[0].split("\n"),o=n.length,d=t+o-1,c=e.lastIndexOf("\n")+1,h=l.index-c+1,u=n[n.length-1],g={range:{startLineNumber:t,startColumn:h,endLineNumber:d,endColumn:1===o?h+l[0].length:u.length+1},text:(l.groups??{}).label??"",hasSeparatorLine:""!==((l.groups??{}).separator??""),shouldBeInComments:!0};(g.text||g.hasSeparatorLine)&&(0===i.length||i[i.length-1].range.endLineNumber'"_]/g,"-")}function Wke(e,t){console.log(`${e.languageId}: ${t}`)}function Bke(e,t){return new Error(`${e.languageId}: ${t}`)}function Vke(e,t,i,n,o){let s=null;return t.replace(/\$((\$)|(#)|(\d\d?)|[sS](\d\d?)|@(\w+))/g,function(t,r,a,l,d,c,h,u,g){return Ake(a)?Ake(l)?!Ake(d)&&d0;){const t=e.tokenizer[i];if(t)return t;const n=i.lastIndexOf(".");i=n<0?null:i.substr(0,n)}return null}function zke(e,t){if(!t)return null;t=Pke(e,t);const i=e.brackets;for(const n of i){if(n.open===t)return{token:n.token,bracketType:1};if(n.close===t)return{token:n.token,bracketType:-1}}return null}function Uke(e,t,i,n){return new Promise((o,s)=>{const r=()=>{const a=function(e,t,i,n){let o=[],s=i.getInitialState();for(let r=0,a=e.length;r"),s=l.endState}return o.join("")}(e,t,i,n);if(i instanceof uie){const e=i.getLoadStatus();if(!1===e.loaded)return void e.promise.then(r,s)}o(a)};r()})}function Kke(e,t,i){let n=[];const o=new Uint32Array(2);o[0]=0,o[1]=33587200;for(let s=0,r=e.length;s")}return n.join("")}function qke(e){return e.scheme===yi.file?e.fsPath:e.path}function jke(e){return"string"!=typeof e&&(Array.isArray(e)?e.every(jke):!!e.exclusive)}function $ke(e){return"string"!=typeof e&&(Array.isArray(e)?e.some($ke):Boolean(e.isBuiltin))}function Gke(e,t,i){const n=i.mode===Zie.ALIGN?i.offset:i.offset+i.size,o=i.mode===Zie.ALIGN?i.offset+i.size:i.offset;return 0===i.position?t<=e-n?n:t<=o?o-t:Math.max(e-t,0):t<=o?o-t:t<=e-n?n:0}function Zke(e){return"object"==typeof e&&"markdown"in e&&"markdownNotSupportedFallback"in e}function Yke(e){if(void 0!==e)return e?.id??e}function Qke(e){if(!xhe(e))return"string"==typeof e?e.toString():e.value}function Xke(e){const t="function"==typeof e?e():e;return sle(t)?Pbe(t):Zke(t)?t.markdownNotSupportedFallback:void 0}function Jke(e,t){return xhe(e.target)&&function(e,t){for(t=t??pn(e).document.body;!e.hasAttribute("custom-hover")&&e!==t;)e=e.parentElement;return e}(e.target,t)===t}function eLe(e){return Object.isFrozen(e)?e:function(e){if(!e||"object"!=typeof e)return e;const t=[e];for(;t.length>0;){const e=t.shift();Object.freeze(e);for(const i in e)if(Gr.call(e,i)){const n=e[i];"object"!=typeof n||Object.isFrozen(n)||ale(n)||t.push(n)}}return e}(e)}function tLe(e){return e?`${e.serialize()}`:"no when condition"}function iLe(e){return e.extensionId?e.isBuiltinExtension?`built-in extension ${e.extensionId}`:`user extension ${e.extensionId}`:e.isDefault?"built-in":"user"}function nLe(e){const t=[];for(let i=0,n=e.length;i=0}}(e,t);yne.push(n),n.userConfigured?xne.push(n):Sne.push(n),i&&!n.userConfigured&&yne.forEach(e=>{e.mime===n.mime||e.userConfigured||(n.extension&&e.extension===n.extension&&console.warn(`Overwriting extension <<${n.extension}>> to now point to mime <<${n.mime}>>`),n.filename&&e.filename===n.filename&&console.warn(`Overwriting filename <<${n.filename}>> to now point to mime <<${n.mime}>>`),n.filepattern&&e.filepattern===n.filepattern&&console.warn(`Overwriting filepattern <<${n.filepattern}>> to now point to mime <<${n.mime}>>`),n.firstline&&e.firstline===n.firstline&&console.warn(`Overwriting firstline <<${n.firstline}>> to now point to mime <<${n.mime}>>`))})}(e,!1,t)}function sLe(e,t){return function(e,t){let i;if(e)switch(e.scheme){case yi.file:i=e.fsPath;break;case yi.data:i=Us.parseMetaData(e).get(Us.META_DATA_LABEL);break;case yi.vscodeNotebookCell:i=void 0;break;default:i=e.path}if(!i)return[{id:"unknown",mime:Na.unknown}];i=i.toLowerCase();const n=li(i),o=rLe(i,n,xne);if(o)return[o,{id:Ga,mime:Na.text}];const s=rLe(i,n,Sne);if(s)return[s,{id:Ga,mime:Na.text}];if(t){const e=function(e){if(bde(e)&&(e=e.substr(1)),e.length>0)for(let t=yne.length-1;t>=0;t--){const i=yne[t];if(!i.firstline)continue;const n=e.match(i.firstline);if(n&&n.length>0)return i}}(t);if(e)return[e,{id:Ga,mime:Na.text}]}return[{id:"unknown",mime:Na.unknown}]}(e,t).map(e=>e.id)}function rLe(e,t,i){let n,o,s;for(let r=i.length-1;r>=0;r--){const a=i[r];if(t===a.filenameLowercase){n=a;break}if(a.filepattern&&(!o||a.filepattern.length>o.filepattern.length)){const i=a.filepatternOnPath?e:t;a.filepatternLowercase?.(i)&&(o=a)}a.extension&&(!s||a.extension.length>s.extension.length)&&t.endsWith(a.extensionLowercase)&&(s=a)}return n||o||s||void 0}function aLe(e){const t=nue()[e.id];return`.codicon-${e.id}:before { content: '\\${t.toString(16)}'; }`}function lLe(e){return e.toString()}function dLe(e,t,i){let n=e.iconClass||function(e){if(!e)return;let t;const i=e.dark.toString();return moe[i]?t=moe[i]:(t=foe.nextId(),ape(`.${t}, .hc-light .${t}`,`background-image: ${X_e(e.light||e.dark)}`),ape(`.vs-dark .${t}, .hc-black .${t}`,`background-image: ${X_e(e.dark)}`),moe[i]=t),t}(e.iconPath);return e.alwaysVisible&&(n=n?`${n} always-visible`:"always-visible"),{id:t,label:"",tooltip:e.tooltip||"",class:n,enabled:!0,run:i}}function cLe(e,t,i){Rhe(t);const n=function(e){const t=[];let i,n=0;for(;i=poe.exec(e);){i.index-n>0&&t.push(e.substring(n,i.index));const[,o,s,,r]=i;r?t.push({label:o,href:s,title:r}):t.push({label:o,href:s}),n=i.index+i[0].length}return n{Nhe(e)&&An.stop(e,!0),i.callback(s.href)},a=i.disposables.add(new zm(n,On.CLICK)).event,l=i.disposables.add(new zm(n,On.KEY_DOWN)).event,d=Be.chain(l,e=>e.filter(e=>{const t=new we(e);return t.equals(10)||t.equals(3)}));i.disposables.add(pm.addTarget(n));const c=i.disposables.add(new zm(n,gm.Tap)).event;Be.any(a,c,d)(r,null,i.disposables),t.appendChild(n)}}function hLe(e,t,i){const n=e.toLowerCase(),o=t.toLowerCase(),s=function(e,t,i){const n=e.toLowerCase(),o=t.toLowerCase(),s=n.startsWith(i),r=o.startsWith(i);if(s!==r)return s?-1:1;if(s&&r){if(n.lengtho.length)return 1}return 0}(e,t,i);if(s)return s;const r=n.endsWith(i);if(r!==o.endsWith(i))return r?-1:1;const a=function(e,t){const i=e||"",n=t||"",o=Hoe.value.collator.compare(i,n);return Hoe.value.collatorIsNumeric&&0===o&&i!==n?i{const n=i.get(tA).currentQuickInput;if(n)return t&&n.quickNavigate?n.focus(t):n.focus(e)}}function fLe(e){let t=!1,i=!1,n=!1;for(const o of e){switch(o.element?.checked){case"mixed":n=!0;break;case!0:t=!0;break;default:i=!0}if(t&&i&&n)break}return i?(n||!!t)&&"mixed":n?"mixed":t}function _Le(e,t,i){e.get(es).createKey(String(t),function(e){return Vue(e,e=>"object"==typeof e&&1===e.$mid?_i.revive(e).toString():e instanceof _i?e.toString():void 0)}(i))}function bLe(e){return!(!e||"object"!=typeof e||e.overrideIdentifier&&"string"!=typeof e.overrideIdentifier||e.resource&&!(e.resource instanceof _i))}function vLe(e,t,i){if(!t)return;if(!(e instanceof Mre))return;const n=[];Object.keys(t).forEach(e=>{(function(e){return sCe()[`editor.${e}`]||!1})(e)&&n.push([`editor.${e}`,t[e]]),i&&function(e){return sCe()[`diffEditor.${e}`]||!1}(e)&&n.push([`diffEditor.${e}`,t[e]])}),n.length>0&&e.updateValues(n)}function wLe(e){if(!e){if(tae)return;tae=!0}!function(e){($n=document.createElement("div")).className="monaco-aria-container";const t=()=>{const e=document.createElement("div");return e.className="monaco-alert",e.setAttribute("role","alert"),e.setAttribute("aria-atomic","true"),$n.appendChild(e),e};Gn=t(),Zn=t();const i=()=>{const e=document.createElement("div");return e.className="monaco-status",e.setAttribute("aria-live","polite"),e.setAttribute("aria-atomic","true"),$n.appendChild(e),e};Yn=i(),Qn=i(),e.appendChild($n)}(e||r.document.body)}function CLe(e,t,i,n,o){if(i=i||"",!n){const n=i.indexOf("\n");let s=i;return-1!==n&&(s=i.substring(0,n)),yLe(e,i,t.createByFilepathOrFirstLine(o||null,s),o)}return yLe(e,i,t.createById(n),o)}function yLe(e,t,i,n){return e.createModel(t,i,n)}function SLe(e,t,i){return jre.initialize(i||{}).createInstance(nae,e,t)}function xLe(e){return jre.get(eo).onCodeEditorAdd(t=>{e(t)})}function kLe(e){return jre.get(eo).onDiffEditorAdd(t=>{e(t)})}function LLe(){return jre.get(eo).listCodeEditors()}function DLe(){return jre.get(eo).listDiffEditors()}function ILe(e,t,i){return jre.initialize(i||{}).createInstance(oae,e,t)}function NLe(e,t){return new fae(e,{},jre.initialize(t||{}))}function ELe(e){if("string"!=typeof e.id||"function"!=typeof e.run)throw new Error("Invalid command descriptor, `id` and `run` are required properties!");return _o.registerCommand(e.id,e.run)}function MLe(e){if("string"!=typeof e.id||"string"!=typeof e.label||"function"!=typeof e.run)throw new Error("Invalid action descriptor, `id`, `label` and `run` are required properties!");const t=Po.deserialize(e.precondition),i=new De;if(i.add(_o.registerCommand(e.id,(i,...n)=>sr.runEditorCommand(i,n,t,(t,i,n)=>Promise.resolve(e.run(i,...n))))),e.contextMenuGroupId){const n={command:{id:e.id,title:e.label},when:t,group:e.contextMenuGroupId,order:e.contextMenuOrder||0};i.add(us.appendMenuItem(ds.EditorContext,n))}if(Array.isArray(e.keybindings)){const n=jre.get(xw);if(n instanceof Nre){const o=Po.and(t,Po.deserialize(e.keybindingContext));i.add(n.addDynamicKeybindings(e.keybindings.map(t=>({keybinding:t,command:e.id,when:o}))))}else console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService")}return i}function TLe(e){return RLe([e])}function RLe(e){const t=jre.get(xw);return t instanceof Nre?t.addDynamicKeybindings(e.map(e=>({keybinding:e.keybinding,command:e.command,commandArgs:e.commandArgs,when:Po.deserialize(e.when)}))):(console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService"),Ie.None)}function OLe(e,t,i){const n=jre.get(La),o=n.getLanguageIdByMimeType(t)||t;return CLe(jre.get(io),n,e,o,i)}function ALe(e,t){const i=jre.get(La),n=i.getLanguageIdByMimeType(t)||t||"plaintext";e.setLanguage(i.createById(n))}function PLe(e,t,i){e&&jre.get(CF).changeOne(t,e.uri,i)}function FLe(e){jre.get(CF).changeAll(e,[])}function WLe(e){return jre.get(CF).read(e)}function BLe(e){return jre.get(CF).onMarkerChanged(e)}function VLe(e){return jre.get(io).getModel(e)}function HLe(){return jre.get(io).getModels()}function zLe(e){return jre.get(io).onModelAdded(e)}function ULe(e){return jre.get(io).onModelRemoved(e)}function KLe(e){return jre.get(io).onModelLanguageChanged(t=>{e({model:t.model,oldLanguage:t.oldLanguageId})})}function qLe(e){return function(e,t){return new Jte(e,t)}(jre.get(io),e)}function jLe(e,t){const i=jre.get(La),n=jre.get(Q7);return pie.colorizeElement(n,i,e,t).then(()=>{n.registerEditorContainer(e)})}function $Le(e,t,i){const n=jre.get(La);return jre.get(Q7).registerEditorContainer(r.document.body),pie.colorize(n,e,t,i)}function GLe(e,t,i=4){return jre.get(Q7).registerEditorContainer(r.document.body),pie.colorizeModelLine(e,t,i)}function ZLe(e,t){Mb.getOrCreate(t);const i=function(e){const t=Mb.get(e);return t||{getInitialState:()=>SS,tokenize:(t,i,n)=>c_e(e,n)}}(t),n=qle(e),o=[];let s=i.getInitialState();for(let r=0,a=n.length;r("string"==typeof t&&(t=_i.parse(t)),e.open(t))})}function tDe(e){return jre.get(eo).registerCodeEditorOpenHandler(async(t,i,n)=>{if(!i)return null;const o=t.options?.selection;let s;return o&&"number"==typeof o.endLineNumber&&"number"==typeof o.endColumn?s=o:o&&(s={lineNumber:o.startLineNumber,column:o.startColumn}),await e.openCodeEditor(i,t.resource,s)?i:null})}function iDe(e,t){return"boolean"==typeof e?e:t}function nDe(e,t){return"string"==typeof e?e:t}function oDe(e,t=!1){t&&(e=e.map(function(e){return e.toLowerCase()}));const i=function(e){const t={};for(const i of e)t[i]=!0;return t}(e);return t?function(e){return void 0!==i[e.toLowerCase()]&&i.hasOwnProperty(e.toLowerCase())}:function(e){return void 0!==i[e]&&i.hasOwnProperty(e)}}function sDe(e,t,i){t=t.replace(/@@/g,"");let n,o=0;do{n=!1,t=t.replace(/@(\w+)/g,function(i,o){n=!0;let s="";if("string"==typeof e[o])s=e[o];else{if(!(e[o]&&e[o]instanceof RegExp))throw void 0===e[o]?Bke(e,"language definition does not contain attribute '"+o+"', used at: "+t):Bke(e,"attribute reference '"+o+"' must be a string, used at: "+t);s=e[o].source}return Ake(s)?"":"(?:"+s+")"}),o++}while(n&&o<5);t=t.replace(/\x01/g,"@");const s=(e.ignoreCase?"i":"")+(e.unicode?"u":"");if(i&&t.match(/\$[sS](\d\d?)/g)){let i=null,n=null;return o=>(n&&i===o||(i=o,n=new RegExp(function(e,t,i){let n=null;return t.replace(/\$[sS](\d\d?)/g,function(t,o){return null===n&&(n=i.split("."),n.unshift(i)),!Ake(o)&&o=100){n-=100;const e=i.split(".");if(e.unshift(i),n=0&&(n.tokenSubst=!0),"string"==typeof i.bracket)if("@open"===i.bracket)n.bracket=1;else{if("@close"!==i.bracket)throw Bke(e,"a 'bracket' attribute must be either '@open' or '@close', in rule: "+t);n.bracket=-1}if(i.next){if("string"!=typeof i.next)throw Bke(e,"the next state must be a string value in rule: "+t);{let o=i.next;if(!/^(@pop|@push|@popall)$/.test(o)&&("@"===o[0]&&(o=o.substr(1)),o.indexOf("$")<0&&!function(e,t){let i=t;for(;i&&i.length>0;){if(e.stateNames[i])return!0;const t=i.lastIndexOf(".");i=t<0?null:i.substr(0,t)}return!1}(e,Vke(e,o,"",[],""))))throw Bke(e,"the next state '"+i.next+"' is not defined in rule: "+t);n.next=o}}return"number"==typeof i.goBack&&(n.goBack=i.goBack),"string"==typeof i.switchTo&&(n.switchTo=i.switchTo),"string"==typeof i.log&&(n.log=i.log),"string"==typeof i.nextEmbedded&&(n.nextEmbedded=i.nextEmbedded,e.usesEmbedded=!0),n}}if(Array.isArray(i)){const n=[];for(let o=0,s=i.length;o=1&&a.length<=3)if(t.setRegex(n,a[0]),a.length>=3)if("string"==typeof a[1])t.setAction(n,{token:a[1],next:a[2]});else{if("object"!=typeof a[1])throw Bke(i,"a next state as the last element of a rule can only be given if the action is either an object or a string, at: "+e);{const e=a[1];e.next=a[2],t.setAction(n,e)}}else t.setAction(n,a[1]);else{if(!a.regex)throw Bke(i,"a rule must either be an array, or an object with a 'regex' or 'include' field at: "+e);a.name&&"string"==typeof a.name&&(t.name=a.name),a.matchOnlyAtStart&&(t.matchOnlyAtLineStart=iDe(a.matchOnlyAtLineStart,!1)),t.setRegex(n,a.regex),t.setAction(n,a.action)}s.push(t)}}}if(n.languageId=e,n.includeLF=i.includeLF,n.ignoreCase=i.ignoreCase,n.unicode=i.unicode,n.noThrow=i.noThrow,n.usesEmbedded=i.usesEmbedded,n.stateNames=t.tokenizer,n.defaultToken=i.defaultToken,!t.tokenizer||"object"!=typeof t.tokenizer)throw Bke(i,"a language definition must define the 'tokenizer' attribute as an object");i.tokenizer=[];for(const r in t.tokenizer)if(t.tokenizer.hasOwnProperty(r)){i.start||(i.start=r);const e=t.tokenizer[r];i.tokenizer[r]=new Array,o("tokenizer."+r,i.tokenizer[r],e)}if(i.usesEmbedded=n.usesEmbedded,t.brackets){if(!Array.isArray(t.brackets))throw Bke(i,"the 'brackets' attribute must be defined as an array")}else t.brackets=[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}];const s=[];for(const r of t.brackets){let e=r;if(e&&Array.isArray(e)&&3===e.length&&(e={token:e[2],open:e[0],close:e[1]}),e.open===e.close)throw Bke(i,"open and close brackets in a 'brackets' attribute must be different: "+e.open+"\n hint: use the 'bracket' attribute if matching on equal brackets is required.");if("string"!=typeof e.open||"string"!=typeof e.token||"string"!=typeof e.close)throw Bke(i,"every element in the 'brackets' array must be a '{open,close,token}' object or array");s.push({token:e.token+i.tokenPostfix,open:Pke(i,e.open),close:Pke(i,e.close)})}return i.brackets=s,i.noThrow=!0,i}function dDe(e){$a.registerLanguage(e)}function cDe(){let e=[];return e=e.concat($a.getLanguages()),e}function hDe(e){return jre.get(La).languageIdCodec.encodeLanguageId(e)}function uDe(e,t){return jre.withServices(()=>{const i=jre.get(La).onDidRequestRichLanguageFeatures(n=>{n===e&&(i.dispose(),t())});return i})}function gDe(e,t){return jre.withServices(()=>{const i=jre.get(La).onDidRequestBasicLanguageFeatures(n=>{n===e&&(i.dispose(),t())});return i})}function pDe(e,t){if(!jre.get(La).isRegisteredLanguageId(e))throw new Error(`Cannot set configuration for unknown language ${e}`);return jre.get(il).register(e,t,100)}function mDe(e){return e&&"function"==typeof e.then}function fDe(e){const t=jre.get(Q7);if(e){const i=[null];for(let t=1,n=e.length;t{const i=await Promise.resolve(t.create());return i?"function"==typeof i.getInitialState?_De(e,i):new uie(jre.get(La),jre.get(Q7),e,lDe(e,i),jre.get(ka)):null});return Mb.registerFactory(e,i)}function vDe(e,t){if(!jre.get(La).isRegisteredLanguageId(e))throw new Error(`Cannot set tokens provider for unknown language ${e}`);return mDe(t)?bDe(e,{create:()=>t}):Mb.register(e,_De(e,t))}function wDe(e,t){return mDe(t)?bDe(e,{create:()=>t}):Mb.register(e,(t=>new uie(jre.get(La),jre.get(Q7),e,lDe(e,t),jre.get(ka)))(t))}function CDe(e,t){return jre.get(Tx).referenceProvider.register(e,t)}function yDe(e,t){return jre.get(Tx).renameProvider.register(e,t)}function SDe(e,t){return jre.get(Tx).newSymbolNamesProvider.register(e,t)}function xDe(e,t){return jre.get(Tx).signatureHelpProvider.register(e,t)}function kDe(e,t){return jre.get(Tx).hoverProvider.register(e,{provideHover:async(e,i,n,o)=>{const s=e.getWordAtPosition(i);return Promise.resolve(t.provideHover(e,i,n,o)).then(e=>{if(e)return!e.range&&s&&(e.range=new mr(i.lineNumber,s.startColumn,i.lineNumber,s.endColumn)),e.range||(e.range=new mr(i.lineNumber,i.column,i.lineNumber,i.column)),e})}})}function LDe(e,t){return jre.get(Tx).documentSymbolProvider.register(e,t)}function DDe(e,t){return jre.get(Tx).documentHighlightProvider.register(e,t)}function IDe(e,t){return jre.get(Tx).linkedEditingRangeProvider.register(e,t)}function NDe(e,t){return jre.get(Tx).definitionProvider.register(e,t)}function EDe(e,t){return jre.get(Tx).implementationProvider.register(e,t)}function MDe(e,t){return jre.get(Tx).typeDefinitionProvider.register(e,t)}function TDe(e,t){return jre.get(Tx).codeLensProvider.register(e,t)}function RDe(e,t,i){return jre.get(Tx).codeActionProvider.register(e,{providedCodeActionKinds:i?.providedCodeActionKinds,documentation:i?.documentation,provideCodeActions:(e,i,n,o)=>{const s=jre.get(CF).read({resource:e.uri}).filter(e=>mr.areIntersectingOrTouching(e,i));return t.provideCodeActions(e,i,{markers:s,only:n.only,trigger:n.trigger},o)},resolveCodeAction:t.resolveCodeAction})}function ODe(e,t){return jre.get(Tx).documentFormattingEditProvider.register(e,t)}function ADe(e,t){return jre.get(Tx).documentRangeFormattingEditProvider.register(e,t)}function PDe(e,t){return jre.get(Tx).onTypeFormattingEditProvider.register(e,t)}function FDe(e,t){return jre.get(Tx).linkProvider.register(e,t)}function WDe(e,t){return jre.get(Tx).completionProvider.register(e,t)}function BDe(e,t){return jre.get(Tx).colorProvider.register(e,t)}function VDe(e,t){return jre.get(Tx).foldingRangeProvider.register(e,t)}function HDe(e,t){return jre.get(Tx).declarationProvider.register(e,t)}function zDe(e,t){return jre.get(Tx).selectionRangeProvider.register(e,t)}function UDe(e,t){return jre.get(Tx).documentSemanticTokensProvider.register(e,t)}function KDe(e,t){return jre.get(Tx).documentRangeSemanticTokensProvider.register(e,t)}function qDe(e,t){return jre.get(Tx).inlineCompletionsProvider.register(e,t)}function jDe(e,t){return jre.get(Tx).inlayHintsProvider.register(e,t)}return{setters:[function(e){i=e.n},function(e){n=e.P}],execute:function(){if((o=document.createElement("style")).textContent='.monaco-aria-container{position:absolute;left:-999em}::-ms-clear{display:none}.monaco-editor .editor-widget input{color:inherit}.monaco-editor{-webkit-text-size-adjust:100%;color:var(--vscode-editor-foreground);background-color:var(--vscode-editor-background);overflow-wrap:initial;position:relative;overflow:visible}.monaco-editor-background{background-color:var(--vscode-editor-background)}.monaco-editor .rangeHighlight{background-color:var(--vscode-editor-rangeHighlightBackground);box-sizing:border-box;border:1px solid var(--vscode-editor-rangeHighlightBorder)}.monaco-editor.hc-black .rangeHighlight,.monaco-editor.hc-light .rangeHighlight{border-style:dotted}.monaco-editor .symbolHighlight{background-color:var(--vscode-editor-symbolHighlightBackground);box-sizing:border-box;border:1px solid var(--vscode-editor-symbolHighlightBorder)}.monaco-editor.hc-black .symbolHighlight,.monaco-editor.hc-light .symbolHighlight{border-style:dotted}.monaco-editor .editorCanvas{z-index:0;pointer-events:none;width:100%;height:100%;position:absolute}.monaco-editor .overflow-guard{position:relative;overflow:hidden}.monaco-editor .view-overlays{position:absolute;top:0}.monaco-editor .view-overlays>div,.monaco-editor .margin-view-overlays>div{width:100%;position:absolute}.monaco-editor .squiggly-error{border-bottom:4px double var(--vscode-editorError-border)}.monaco-editor .squiggly-error:before{content:"";background:var(--vscode-editorError-background);width:100%;height:100%;display:block}.monaco-editor .squiggly-warning{border-bottom:4px double var(--vscode-editorWarning-border)}.monaco-editor .squiggly-warning:before{content:"";background:var(--vscode-editorWarning-background);width:100%;height:100%;display:block}.monaco-editor .squiggly-info{border-bottom:4px double var(--vscode-editorInfo-border)}.monaco-editor .squiggly-info:before{content:"";background:var(--vscode-editorInfo-background);width:100%;height:100%;display:block}.monaco-editor .squiggly-hint{border-bottom:2px dotted var(--vscode-editorHint-border)}.monaco-editor.showUnused .squiggly-unnecessary{border-bottom:2px dashed var(--vscode-editorUnnecessaryCode-border)}.monaco-editor.showDeprecated .squiggly-inline-deprecated{text-decoration:line-through;text-decoration-color:var(--vscode-editor-foreground,inherit)}.monaco-scrollable-element>.scrollbar>.scra{cursor:pointer;font-size:11px!important}.monaco-scrollable-element>.visible{opacity:1;z-index:11;background:0 0;transition:opacity .1s linear}.monaco-scrollable-element>.invisible{opacity:0;pointer-events:none}.monaco-scrollable-element>.invisible.fade{transition:opacity .8s linear}.monaco-scrollable-element>.shadow{display:none;position:absolute}.monaco-scrollable-element>.shadow.top{width:100%;height:3px;box-shadow:var(--vscode-scrollbar-shadow) 0 6px 6px -6px inset;display:block;top:0;left:3px}.monaco-scrollable-element>.shadow.left{width:3px;height:100%;box-shadow:var(--vscode-scrollbar-shadow) 6px 0 6px -6px inset;display:block;top:3px;left:0}.monaco-scrollable-element>.shadow.top-left-corner{width:3px;height:3px;display:block;top:0;left:0}.monaco-scrollable-element>.shadow.top.left{box-shadow:var(--vscode-scrollbar-shadow) 6px 0 6px -6px inset}.monaco-scrollable-element>.scrollbar{background:var(--vscode-scrollbar-background)}.monaco-scrollable-element>.scrollbar>.slider{background:var(--vscode-scrollbarSlider-background)}.monaco-scrollable-element>.scrollbar>.slider:hover{background:var(--vscode-scrollbarSlider-hoverBackground)}.monaco-scrollable-element>.scrollbar>.slider.active{background:var(--vscode-scrollbarSlider-activeBackground)}.monaco-editor .blockDecorations-container{pointer-events:none;position:absolute;top:0}.monaco-editor .blockDecorations-block{box-sizing:border-box;position:absolute}.monaco-editor .view-overlays .current-line,.monaco-editor .margin-view-overlays .current-line{box-sizing:border-box;height:100%;display:block;position:absolute;top:0;left:0}.monaco-editor .margin-view-overlays .current-line.current-line-margin.current-line-margin-both{border-right:0}.monaco-editor .lines-content .cdr{height:100%;position:absolute}.monaco-editor .glyph-margin{position:absolute;top:0}.monaco-editor .glyph-margin-widgets .cgmr{justify-content:center;align-items:center;display:flex;position:absolute}.monaco-editor .glyph-margin-widgets .cgmr.codicon-modifier-spin:before{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.monaco-editor .lines-content .core-guide{box-sizing:border-box;height:100%;position:absolute}.monaco-editor .margin-view-overlays .line-numbers{font-variant-numeric:tabular-nums;text-align:right;vertical-align:middle;box-sizing:border-box;cursor:default;display:inline-block;position:absolute;bottom:0}.monaco-editor .relative-current-line-number{text-align:left;width:100%;display:inline-block}.monaco-editor .margin-view-overlays .line-numbers.lh-odd{margin-top:1px}.monaco-editor .line-numbers{color:var(--vscode-editorLineNumber-foreground)}.monaco-editor .line-numbers.active-line-number{color:var(--vscode-editorLineNumber-activeForeground)}.monaco-mouse-cursor-text{cursor:text}.mtkcontrol{color:#fff!important;background:#960000!important}.mtkoverflow{background-color:var(--vscode-button-background,var(--vscode-editor-background));color:var(--vscode-button-foreground,var(--vscode-editor-foreground));border-style:solid;border-width:1px;border-color:var(--vscode-contrastBorder);cursor:pointer;border-radius:2px;padding:4px}.mtkoverflow:hover{background-color:var(--vscode-button-hoverBackground)}.monaco-editor.no-user-select .lines-content,.monaco-editor.no-user-select .view-line,.monaco-editor.no-user-select .view-lines{user-select:none}.monaco-editor.mac .lines-content:hover,.monaco-editor.mac .view-line:hover,.monaco-editor.mac .view-lines:hover{user-select:text}.monaco-editor.enable-user-select{user-select:initial;-webkit-user-select:initial}.monaco-editor .view-lines{white-space:nowrap}.monaco-editor .view-line{box-sizing:border-box;width:100%;position:absolute}.monaco-editor .lines-content>.view-lines>.view-line>span{position:absolute;top:0;bottom:0}.monaco-editor .mtkw{color:var(--vscode-editorWhitespace-foreground)!important}.monaco-editor .mtkz{display:inline-block;color:var(--vscode-editorWhitespace-foreground)!important}.monaco-editor .lines-decorations{background:#fff;position:absolute;top:0}.monaco-editor .margin-view-overlays .cldr{height:100%;position:absolute}.monaco-editor .margin{background-color:var(--vscode-editorGutter-background)}.monaco-editor .margin-view-overlays .cmdr{width:100%;height:100%;position:absolute;left:0}.monaco-editor .minimap.slider-mouseover .minimap-slider{opacity:0;transition:opacity .1s linear}.monaco-editor .minimap.slider-mouseover:hover .minimap-slider,.monaco-editor .minimap.slider-mouseover .minimap-slider.active{opacity:1}.monaco-editor .minimap-slider .minimap-slider-horizontal{background:var(--vscode-minimapSlider-background)}.monaco-editor .minimap-slider:hover .minimap-slider-horizontal{background:var(--vscode-minimapSlider-hoverBackground)}.monaco-editor .minimap-slider.active .minimap-slider-horizontal{background:var(--vscode-minimapSlider-activeBackground)}.monaco-editor .minimap-shadow-visible{box-shadow:var(--vscode-scrollbar-shadow) -6px 0 6px -6px inset}.monaco-editor .minimap-shadow-hidden{width:0;position:absolute}.monaco-editor .minimap-shadow-visible{pointer-events:none;width:6px;position:absolute;left:-6px}.monaco-editor.no-minimap-shadow .minimap-shadow-visible{width:1px;position:absolute;left:-1px}.minimap.minimap-autohide-mouseover,.minimap.minimap-autohide-scroll{opacity:0;transition:opacity .5s}.minimap.minimap-autohide-scroll{pointer-events:none}.minimap.minimap-autohide-mouseover:hover,.minimap.minimap-autohide-scroll.active{opacity:1;pointer-events:auto}.monaco-editor .minimap{z-index:5}.monaco-editor .overlayWidgets{position:absolute;top:0;left:0}.monaco-editor .view-ruler{box-shadow:1px 0 0 0 var(--vscode-editorRuler-foreground) inset;position:absolute;top:0}.monaco-editor .scroll-decoration{height:6px;box-shadow:var(--vscode-scrollbar-shadow) 0 6px 6px -6px inset;position:absolute;top:0;left:0}.monaco-editor .lines-content .cslr{position:absolute}.monaco-editor .focused .selected-text{background-color:var(--vscode-editor-selectionBackground)}.monaco-editor .selected-text{background-color:var(--vscode-editor-inactiveSelectionBackground)}.monaco-editor .top-left-radius{border-top-left-radius:3px}.monaco-editor .bottom-left-radius{border-bottom-left-radius:3px}.monaco-editor .top-right-radius{border-top-right-radius:3px}.monaco-editor .bottom-right-radius{border-bottom-right-radius:3px}.monaco-editor.hc-black .top-left-radius{border-top-left-radius:0}.monaco-editor.hc-black .bottom-left-radius{border-bottom-left-radius:0}.monaco-editor.hc-black .top-right-radius{border-top-right-radius:0}.monaco-editor.hc-black .bottom-right-radius{border-bottom-right-radius:0}.monaco-editor.hc-light .top-left-radius{border-top-left-radius:0}.monaco-editor.hc-light .bottom-left-radius{border-bottom-left-radius:0}.monaco-editor.hc-light .top-right-radius{border-top-right-radius:0}.monaco-editor.hc-light .bottom-right-radius{border-bottom-right-radius:0}.monaco-editor .cursors-layer{position:absolute;top:0}.monaco-editor .cursors-layer>.cursor{box-sizing:border-box;position:absolute;overflow:hidden}.monaco-editor .cursors-layer.cursor-smooth-caret-animation>.cursor{transition:all 80ms}.monaco-editor .cursors-layer.cursor-block-outline-style>.cursor{border-style:solid;border-width:1px;background:0 0!important}.monaco-editor .cursors-layer.cursor-underline-style>.cursor{border-bottom-style:solid;border-bottom-width:2px;background:0 0!important}.monaco-editor .cursors-layer.cursor-underline-thin-style>.cursor{border-bottom-style:solid;border-bottom-width:1px;background:0 0!important}@keyframes monaco-cursor-smooth{0%,20%{opacity:1}60%,to{opacity:0}}@keyframes monaco-cursor-phase{0%,20%{opacity:1}90%,to{opacity:0}}@keyframes monaco-cursor-expand{0%,20%{transform:scaleY(1)}80%,to{transform:scaleY(0)}}.cursor-smooth{animation:.5s ease-in-out 20 alternate monaco-cursor-smooth}.cursor-phase{animation:.5s ease-in-out 20 alternate monaco-cursor-phase}.cursor-expand>.cursor{animation:.5s ease-in-out 20 alternate monaco-cursor-expand}.monaco-editor .mwh{position:absolute;color:var(--vscode-editorWhitespace-foreground)!important}.monaco-editor .monaco-decoration-css-rule-extractor{visibility:hidden;pointer-events:none}.monaco-editor .inputarea{resize:none;color:transparent;z-index:-10;background-color:transparent;border:none;min-width:0;min-height:0;margin:0;padding:0;position:absolute;overflow:hidden;outline:none!important}.monaco-editor .inputarea.ime-input{z-index:10;caret-color:var(--vscode-editorCursor-foreground);color:var(--vscode-editor-foreground)}.monaco-editor .native-edit-context{scrollbar-width:none;z-index:-10;white-space:pre-wrap;margin:0;padding:0;position:absolute;overflow-y:scroll}.monaco-editor .ime-text-area{resize:none;color:transparent;z-index:-10;background-color:transparent;border:none;min-width:0;min-height:0;margin:0;padding:0;position:absolute;overflow:hidden;outline:none!important}.monaco-editor .edit-context-composition-none{background-color:transparent;border-bottom:none}.monaco-editor :not(:-webkit-any(.hc-black,.hc-light)) .edit-context-composition-secondary{border-bottom:1px solid var(--vscode-editor-compositionBorder)}.monaco-editor :not(:is(.hc-black,.hc-light)) .edit-context-composition-secondary{border-bottom:1px solid var(--vscode-editor-compositionBorder)}.monaco-editor :not(:-webkit-any(.hc-black,.hc-light)) .edit-context-composition-primary{border-bottom:2px solid var(--vscode-editor-compositionBorder)}.monaco-editor :not(:is(.hc-black,.hc-light)) .edit-context-composition-primary{border-bottom:2px solid var(--vscode-editor-compositionBorder)}.monaco-editor :-webkit-any(.hc-black,.hc-light) .edit-context-composition-secondary{border:1px solid var(--vscode-editor-compositionBorder)}.monaco-editor :is(.hc-black,.hc-light) .edit-context-composition-secondary{border:1px solid var(--vscode-editor-compositionBorder)}.monaco-editor :-webkit-any(.hc-black,.hc-light) .edit-context-composition-primary{border:2px solid var(--vscode-editor-compositionBorder)}.monaco-editor :is(.hc-black,.hc-light) .edit-context-composition-primary{border:2px solid var(--vscode-editor-compositionBorder)}.monaco-editor .margin-view-overlays .gpu-mark{border-left:solid 2px var(--vscode-editorWarning-foreground);opacity:.2;width:100%;transition:background-color .1s linear;display:inline-block;position:absolute;top:0;bottom:0;left:0}.monaco-editor .margin-view-overlays .gpu-mark:hover{background-color:var(--vscode-editorWarning-foreground)}.monaco-select-box{cursor:pointer;border-radius:2px;width:100%}.monaco-select-box-dropdown-container{text-transform:none;font-size:13px;font-weight:400}.monaco-action-bar .action-item.select-container{cursor:default}.monaco-action-bar .action-item .monaco-select-box{cursor:pointer;min-width:100px;min-height:18px;padding:2px 23px 2px 8px}.mac .monaco-action-bar .action-item .monaco-select-box{border-radius:3px;min-height:24px;font-size:11px}.monaco-list{white-space:nowrap;width:100%;height:100%;position:relative}.monaco-list.mouse-support{user-select:none}.monaco-list>.monaco-scrollable-element{height:100%}.monaco-list-rows{width:100%;height:100%;position:relative}.monaco-list.horizontal-scrolling .monaco-list-rows{width:auto;min-width:100%}.monaco-list-row{box-sizing:border-box;width:100%;position:absolute;overflow:hidden}.monaco-list.mouse-support .monaco-list-row{cursor:pointer;touch-action:none}.monaco-list .monaco-scrollable-element>.scrollbar.vertical,.monaco-pane-view>.monaco-split-view2.vertical>.monaco-scrollable-element>.scrollbar.vertical{z-index:14}.monaco-list-row.scrolling{display:none!important}.monaco-list.element-focused,.monaco-list.selection-single,.monaco-list.selection-multiple{outline:0!important}.monaco-list-type-filter-message{box-sizing:border-box;text-align:center;white-space:normal;opacity:.7;pointer-events:none;width:100%;height:100%;padding:40px 1em 1em;position:absolute;top:0;left:0}.monaco-list-type-filter-message:empty{display:none}.monaco-drag-image{z-index:1000;background-color:var(--vscode-list-activeSelectionBackground);color:var(--vscode-list-activeSelectionForeground);outline:1px solid var(--vscode-list-focusOutline);outline-offset:-1px;text-overflow:ellipsis;white-space:nowrap;border-radius:10px;max-width:120px;padding:1px 7px;font-size:12px;display:inline-block;position:absolute;overflow:hidden}.monaco-select-box-dropdown-padding{--dropdown-padding-top:1px;--dropdown-padding-bottom:1px}.hc-black .monaco-select-box-dropdown-padding,.hc-light .monaco-select-box-dropdown-padding{--dropdown-padding-top:3px;--dropdown-padding-bottom:4px}.monaco-select-box-dropdown-container{box-sizing:border-box;display:none}.monaco-select-box-dropdown-container>.select-box-details-pane>.select-box-description-markdown *{margin:0}.monaco-select-box-dropdown-container>.select-box-details-pane>.select-box-description-markdown a:focus{outline:1px solid -webkit-focus-ring-color;outline-offset:-1px}.monaco-select-box-dropdown-container>.select-box-details-pane>.select-box-description-markdown code{line-height:15px;font-family:var(--monaco-monospace-font)}.monaco-select-box-dropdown-container.visible{text-align:left;border-bottom-right-radius:3px;border-bottom-left-radius:3px;flex-direction:column;width:1px;display:flex;overflow:hidden}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container{padding-top:var(--dropdown-padding-top);padding-bottom:var(--dropdown-padding-bottom);box-sizing:border-box;flex:none;align-self:flex-start;width:100%;padding-left:1px;padding-right:1px;overflow:hidden}.monaco-select-box-dropdown-container>.select-box-details-pane{padding:5px}.hc-black .monaco-select-box-dropdown-container>.select-box-dropdown-list-container{padding-top:var(--dropdown-padding-top);padding-bottom:var(--dropdown-padding-bottom)}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container .monaco-list .monaco-list-row{cursor:pointer}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container .monaco-list .monaco-list-row>.option-text{text-overflow:ellipsis;white-space:nowrap;float:left;padding-left:3.5px;overflow:hidden}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container .monaco-list .monaco-list-row>.option-detail{text-overflow:ellipsis;white-space:nowrap;float:left;opacity:.7;padding-left:3.5px;overflow:hidden}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container .monaco-list .monaco-list-row>.option-decorator-right{text-overflow:ellipsis;white-space:nowrap;float:right;padding-right:10px;overflow:hidden}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container .monaco-list .monaco-list-row>.visually-hidden{width:1px;height:1px;position:absolute;top:auto;left:-10000px;overflow:hidden}.monaco-select-box-dropdown-container>.select-box-dropdown-container-width-control{opacity:0;flex:auto;align-self:flex-start}.monaco-select-box-dropdown-container>.select-box-dropdown-container-width-control>.width-control-div{max-height:0;overflow:hidden}.monaco-select-box-dropdown-container>.select-box-dropdown-container-width-control>.width-control-div>.option-text-width-control{white-space:nowrap;padding-left:4px;padding-right:8px}.monaco-action-bar{white-space:nowrap;height:100%}.monaco-action-bar .actions-container{align-items:center;width:100%;height:100%;margin:0 auto;padding:0;display:flex}.monaco-action-bar.vertical .actions-container{display:inline-block}.monaco-action-bar .action-item{cursor:pointer;justify-content:center;align-items:center;display:block;position:relative}.monaco-action-bar .action-item.disabled{cursor:default}.monaco-action-bar .action-item .icon,.monaco-action-bar .action-item .codicon{display:block}.monaco-action-bar .action-item .codicon{align-items:center;width:16px;height:16px;display:flex}.monaco-action-bar .action-label{border-radius:5px;padding:3px;font-size:11px;display:flex}.monaco-action-bar .action-item.disabled .action-label:not(.icon),.monaco-action-bar .action-item.disabled .action-label:not(.icon):before,.monaco-action-bar .action-item.disabled .action-label:not(.icon):hover{color:var(--vscode-disabledForeground)}.monaco-action-bar .action-item.disabled .action-label.icon,.monaco-action-bar .action-item.disabled .action-label.icon:before,.monaco-action-bar .action-item.disabled .action-label.icon:hover{opacity:.6}.monaco-action-bar.vertical{text-align:left}.monaco-action-bar.vertical .action-item{display:block}.monaco-action-bar.vertical .action-label.separator{border-bottom:1px solid var(--vscode-disabledForeground);margin-left:.8em;margin-right:.8em;padding-top:1px;display:block}.monaco-action-bar .action-item .action-label.separator{cursor:default;background-color:var(--vscode-disabledForeground);width:1px;min-width:1px;height:16px;padding:0;margin:5px 4px!important}.secondary-actions .monaco-action-bar .action-label{margin-left:6px}.monaco-action-bar .action-item.select-container{flex:1;justify-content:center;align-items:center;min-width:60px;max-width:170px;margin-right:10px;display:flex;overflow:hidden}.monaco-action-bar .action-item.action-dropdown-item{display:flex}.monaco-action-bar .action-item.action-dropdown-item>.action-dropdown-item-separator{cursor:default;align-items:center;display:flex}.monaco-action-bar .action-item.action-dropdown-item>.action-dropdown-item-separator>div{width:1px}.monaco-diff-editor .diff-review{position:absolute}.monaco-component.diff-review{user-select:none;z-index:99}.monaco-component.diff-review .diff-review-line-number{text-align:right;color:var(--vscode-editorLineNumber-foreground);display:inline-block}.monaco-component.diff-review .diff-review-summary{padding-left:10px}.monaco-component.diff-review .diff-review-shadow{box-shadow:var(--vscode-scrollbar-shadow) 0 -6px 6px -6px inset;position:absolute}.monaco-component.diff-review .diff-review-row{white-space:pre}.monaco-component.diff-review .diff-review-table{min-width:100%;display:table}.monaco-component.diff-review .diff-review-row{width:100%;display:table-row}.monaco-component.diff-review .diff-review-spacer{vertical-align:middle;width:10px;display:inline-block}.monaco-component.diff-review .diff-review-spacer>.codicon{font-size:9px!important}.monaco-component.diff-review .diff-review-actions{z-index:100;display:inline-block;position:absolute;top:2px;right:10px}.monaco-component.diff-review .diff-review-actions .action-label{width:16px;height:16px;margin:2px 0}.monaco-component.diff-review .revertButton{cursor:pointer}.monaco-component.diff-review .action-label{background:var(--vscode-editorActionList-background)}:root{--vscode-sash-size:4px;--vscode-sash-hover-size:4px}.monaco-sash{z-index:35;touch-action:none;position:absolute}.monaco-sash.disabled{pointer-events:none}.monaco-sash.mac.vertical{cursor:col-resize}.monaco-sash.vertical.minimum{cursor:e-resize}.monaco-sash.vertical.maximum{cursor:w-resize}.monaco-sash.mac.horizontal{cursor:row-resize}.monaco-sash.horizontal.minimum{cursor:s-resize}.monaco-sash.horizontal.maximum{cursor:n-resize}.monaco-sash.disabled{cursor:default!important;pointer-events:none!important}.monaco-sash.vertical{cursor:ew-resize;width:var(--vscode-sash-size);height:100%;top:0}.monaco-sash.horizontal{cursor:ns-resize;width:100%;height:var(--vscode-sash-size);left:0}.monaco-sash:not(.disabled)>.orthogonal-drag-handle{content:" ";height:calc(var(--vscode-sash-size) * 2);width:calc(var(--vscode-sash-size) * 2);z-index:100;cursor:all-scroll;display:block;position:absolute}.monaco-sash.horizontal.orthogonal-edge-north:not(.disabled)>.orthogonal-drag-handle.start,.monaco-sash.horizontal.orthogonal-edge-south:not(.disabled)>.orthogonal-drag-handle.end{cursor:nwse-resize}.monaco-sash.horizontal.orthogonal-edge-north:not(.disabled)>.orthogonal-drag-handle.end,.monaco-sash.horizontal.orthogonal-edge-south:not(.disabled)>.orthogonal-drag-handle.start{cursor:nesw-resize}.monaco-sash.vertical>.orthogonal-drag-handle.start{left:calc(var(--vscode-sash-size) * -.5);top:calc(var(--vscode-sash-size) * -1)}.monaco-sash.vertical>.orthogonal-drag-handle.end{left:calc(var(--vscode-sash-size) * -.5);bottom:calc(var(--vscode-sash-size) * -1)}.monaco-sash.horizontal>.orthogonal-drag-handle.start{top:calc(var(--vscode-sash-size) * -.5);left:calc(var(--vscode-sash-size) * -1)}.monaco-sash.horizontal>.orthogonal-drag-handle.end{top:calc(var(--vscode-sash-size) * -.5);right:calc(var(--vscode-sash-size) * -1)}.monaco-sash:before{content:"";pointer-events:none;background:0 0;width:100%;height:100%;position:absolute}.monaco-enable-motion .monaco-sash:before{transition:background-color .1s ease-out}.monaco-sash.hover:before,.monaco-sash.active:before{background:var(--vscode-sash-hoverBorder)}.monaco-sash.vertical:before{width:var(--vscode-sash-hover-size);left:calc(50% - (var(--vscode-sash-hover-size) / 2))}.monaco-sash.horizontal:before{height:var(--vscode-sash-hover-size);top:calc(50% - (var(--vscode-sash-hover-size) / 2))}.pointer-events-disabled{pointer-events:none!important}.monaco-sash.debug{background:#0ff}.monaco-sash.debug.disabled{background:rgba(0,255,255,.2)}.monaco-sash.debug:not(.disabled)>.orthogonal-drag-handle{background:red}.monaco-dropdown{height:100%;padding:0}.monaco-dropdown>.dropdown-label{cursor:pointer;justify-content:center;align-items:center;height:100%;display:flex}.monaco-dropdown>.dropdown-label>.action-label.disabled{cursor:default}.monaco-dropdown-with-primary{border-radius:5px;flex-direction:row;display:flex!important}.monaco-dropdown-with-primary>.action-container>.action-label{margin-right:0}.monaco-dropdown-with-primary>.dropdown-action-container>.monaco-dropdown>.dropdown-label .codicon[class*=codicon-]{margin-left:-3px;padding-left:0;padding-right:0;font-size:12px;line-height:16px}.monaco-dropdown-with-primary>.dropdown-action-container>.monaco-dropdown>.dropdown-label>.action-label{background-position:50%;background-repeat:no-repeat;background-size:16px;display:block}.monaco-toolbar{height:100%}.monaco-toolbar .toolbar-toggle-more{padding:0;display:inline-block}.monaco-toolbar.responsive .monaco-action-bar>.actions-container>.action-item{flex-shrink:1;min-width:20px}.monaco-action-bar .action-item.menu-entry .action-label.icon{background-position:50%;background-repeat:no-repeat;background-size:16px;width:16px;height:16px}.monaco-action-bar .action-item.menu-entry.text-only .action-label{color:var(--vscode-descriptionForeground);border-radius:2px;overflow:hidden}.monaco-action-bar .action-item.menu-entry.text-only.use-comma:not(:last-of-type) .action-label:after{content:", "}.monaco-action-bar .action-item.menu-entry.text-only+.action-item:not(.text-only)>.monaco-dropdown .action-label{color:var(--vscode-descriptionForeground)}.monaco-dropdown-with-default{border-radius:5px;flex-direction:row;display:flex!important}.monaco-dropdown-with-default>.action-container>.action-label{margin-right:0}.monaco-dropdown-with-default>.action-container.menu-entry>.action-label.icon{background-position:50%;background-repeat:no-repeat;background-size:16px;width:16px;height:16px}.monaco-dropdown-with-default:hover{background-color:var(--vscode-toolbar-hoverBackground)}.monaco-dropdown-with-default>.dropdown-action-container>.monaco-dropdown>.dropdown-label .codicon[class*=codicon-]{margin-left:-3px;padding-left:0;padding-right:0;font-size:12px;line-height:16px}.monaco-dropdown-with-default>.dropdown-action-container>.monaco-dropdown>.dropdown-label>.action-label{background-position:50%;background-repeat:no-repeat;background-size:16px;display:block}.monaco-editor .diff-hidden-lines-widget{width:100%}.monaco-editor .diff-hidden-lines{height:0;font-size:13px;line-height:14px;transform:translateY(-10px)}.monaco-editor .diff-hidden-lines:not(.dragging) .top:hover,.monaco-editor .diff-hidden-lines:not(.dragging) .bottom:hover,.monaco-editor .diff-hidden-lines .top.dragging,.monaco-editor .diff-hidden-lines .bottom.dragging{background-color:var(--vscode-focusBorder)}.monaco-editor .diff-hidden-lines .top,.monaco-editor .diff-hidden-lines .bottom{background-color:transparent;background-clip:padding-box;border-top:4px solid transparent;border-bottom:2px solid transparent;height:4px;transition:background-color .1s ease-out}.monaco-editor.draggingUnchangedRegion.canMoveTop:not(.canMoveBottom) *,.monaco-editor .diff-hidden-lines .top.canMoveTop:not(.canMoveBottom),.monaco-editor .diff-hidden-lines .bottom.canMoveTop:not(.canMoveBottom){cursor:n-resize!important}.monaco-editor.draggingUnchangedRegion:not(.canMoveTop).canMoveBottom *,.monaco-editor .diff-hidden-lines .top:not(.canMoveTop).canMoveBottom,.monaco-editor .diff-hidden-lines .bottom:not(.canMoveTop).canMoveBottom{cursor:s-resize!important}.monaco-editor.draggingUnchangedRegion.canMoveTop.canMoveBottom *,.monaco-editor .diff-hidden-lines .top.canMoveTop.canMoveBottom,.monaco-editor .diff-hidden-lines .bottom.canMoveTop.canMoveBottom{cursor:ns-resize!important}.monaco-editor .diff-hidden-lines .top{transform:translateY(4px)}.monaco-editor .diff-hidden-lines .bottom{transform:translateY(-6px)}.monaco-editor .diff-unchanged-lines{background:var(--vscode-diffEditor-unchangedCodeBackground)}.monaco-editor .noModificationsOverlay{z-index:1;background:var(--vscode-editor-background);justify-content:center;align-items:center;display:flex}.monaco-editor .diff-hidden-lines .center{background:var(--vscode-diffEditor-unchangedRegionBackground);color:var(--vscode-diffEditor-unchangedRegionForeground);text-overflow:ellipsis;white-space:nowrap;height:24px;box-shadow:inset 0 -5px 5px -7px var(--vscode-diffEditor-unchangedRegionShadow), inset 0 5px 5px -7px var(--vscode-diffEditor-unchangedRegionShadow);display:block;overflow:hidden}.monaco-editor .diff-hidden-lines .center span.codicon{vertical-align:middle}.monaco-editor .diff-hidden-lines .center a:hover .codicon{cursor:pointer;color:var(--vscode-editorLink-activeForeground)!important}.monaco-editor .diff-hidden-lines div.breadcrumb-item{cursor:pointer}.monaco-editor .diff-hidden-lines div.breadcrumb-item:hover{color:var(--vscode-editorLink-activeForeground)}.monaco-editor .movedOriginal,.monaco-editor .movedModified{border:2px solid var(--vscode-diffEditor-move-border)}.monaco-editor .movedOriginal.currentMove,.monaco-editor .movedModified.currentMove{border:2px solid var(--vscode-diffEditor-moveActive-border)}.monaco-diff-editor .moved-blocks-lines path.currentMove{stroke:var(--vscode-diffEditor-moveActive-border)}.monaco-diff-editor .moved-blocks-lines path{pointer-events:visiblestroke}.monaco-diff-editor .moved-blocks-lines .arrow{fill:var(--vscode-diffEditor-move-border)}.monaco-diff-editor .moved-blocks-lines .arrow.currentMove{fill:var(--vscode-diffEditor-moveActive-border)}.monaco-diff-editor .moved-blocks-lines .arrow-rectangle{fill:var(--vscode-editor-background)}.monaco-diff-editor .moved-blocks-lines{pointer-events:none;position:absolute}.monaco-diff-editor .moved-blocks-lines path{fill:none;stroke:var(--vscode-diffEditor-move-border);stroke-width:2px}.monaco-editor .char-delete.diff-range-empty{border-left:solid var(--vscode-diffEditor-removedTextBackground) 3px;margin-left:-1px}.monaco-editor .char-insert.diff-range-empty{border-left:solid var(--vscode-diffEditor-insertedTextBackground) 3px}.monaco-editor .fold-unchanged{cursor:pointer}.monaco-diff-editor .diff-moved-code-block{justify-content:flex-end;margin-top:-4px;display:flex}.monaco-diff-editor .diff-moved-code-block .action-bar .action-label.codicon{width:12px;height:12px;font-size:12px}.monaco-diff-editor .diffOverview{z-index:9}.monaco-diff-editor .diffOverview .diffViewport{z-index:10}.monaco-diff-editor.vs .diffOverview{background:rgba(0,0,0,.03)}.monaco-diff-editor.vs-dark .diffOverview{background:rgba(255,255,255,.01)}.monaco-scrollable-element.modified-in-monaco-diff-editor.vs .scrollbar,.monaco-scrollable-element.modified-in-monaco-diff-editor.vs-dark .scrollbar,.monaco-scrollable-element.modified-in-monaco-diff-editor.hc-black .scrollbar,.monaco-scrollable-element.modified-in-monaco-diff-editor.hc-light .scrollbar{background:0 0}.monaco-scrollable-element.modified-in-monaco-diff-editor .slider{z-index:10}.modified-in-monaco-diff-editor .slider.active{background:rgba(171,171,171,.4)}.modified-in-monaco-diff-editor.hc-black .slider.active,.modified-in-monaco-diff-editor.hc-light .slider.active{background:0 0}.monaco-editor .insert-sign,.monaco-diff-editor .insert-sign,.monaco-editor .delete-sign,.monaco-diff-editor .delete-sign{align-items:center;opacity:.7!important;font-size:11px!important;display:flex!important}.monaco-editor.hc-black .insert-sign,.monaco-diff-editor.hc-black .insert-sign,.monaco-editor.hc-black .delete-sign,.monaco-diff-editor.hc-black .delete-sign,.monaco-editor.hc-light .insert-sign,.monaco-diff-editor.hc-light .insert-sign,.monaco-editor.hc-light .delete-sign,.monaco-diff-editor.hc-light .delete-sign{opacity:1}.monaco-editor .inline-deleted-margin-view-zone,.monaco-editor .inline-added-margin-view-zone{text-align:right}.monaco-editor .arrow-revert-change{z-index:10;position:absolute}.monaco-editor .arrow-revert-change:hover{cursor:pointer}.monaco-editor .view-zones .view-lines .view-line span{display:inline-block}.monaco-editor .margin-view-zones .lightbulb-glyph:hover{cursor:pointer}.monaco-editor .char-insert,.monaco-diff-editor .char-insert{background-color:var(--vscode-diffEditor-insertedTextBackground)}.monaco-editor .line-insert,.monaco-diff-editor .line-insert{background-color:var(--vscode-diffEditor-insertedLineBackground,var(--vscode-diffEditor-insertedTextBackground))}.monaco-editor .line-insert,.monaco-editor .char-insert{box-sizing:border-box;border:1px solid var(--vscode-diffEditor-insertedTextBorder)}.monaco-editor.hc-black .line-insert,.monaco-editor.hc-light .line-insert,.monaco-editor.hc-black .char-insert,.monaco-editor.hc-light .char-insert{border-style:dashed}.monaco-editor .line-delete,.monaco-editor .char-delete{box-sizing:border-box;border:1px solid var(--vscode-diffEditor-removedTextBorder)}.monaco-editor.hc-black .line-delete,.monaco-editor.hc-light .line-delete,.monaco-editor.hc-black .char-delete,.monaco-editor.hc-light .char-delete{border-style:dashed}.monaco-editor .inline-added-margin-view-zone,.monaco-editor .gutter-insert,.monaco-diff-editor .gutter-insert{background-color:var(--vscode-diffEditorGutter-insertedLineBackground,var(--vscode-diffEditor-insertedLineBackground), var(--vscode-diffEditor-insertedTextBackground))}.monaco-editor .char-delete,.monaco-diff-editor .char-delete,.monaco-editor .inline-deleted-text{background-color:var(--vscode-diffEditor-removedTextBackground)}.monaco-editor .inline-deleted-text{text-decoration:line-through}.monaco-editor .line-delete,.monaco-diff-editor .line-delete{background-color:var(--vscode-diffEditor-removedLineBackground,var(--vscode-diffEditor-removedTextBackground))}.monaco-editor .inline-deleted-margin-view-zone,.monaco-editor .gutter-delete,.monaco-diff-editor .gutter-delete{background-color:var(--vscode-diffEditorGutter-removedLineBackground,var(--vscode-diffEditor-removedLineBackground), var(--vscode-diffEditor-removedTextBackground))}.monaco-diff-editor.side-by-side .editor.modified{box-shadow:-6px 0 5px -5px var(--vscode-scrollbar-shadow);border-left:1px solid var(--vscode-diffEditor-border)}.monaco-diff-editor.side-by-side .editor.original{box-shadow:6px 0 5px -5px var(--vscode-scrollbar-shadow);border-right:1px solid var(--vscode-diffEditor-border)}.monaco-diff-editor .diffViewport{background:var(--vscode-scrollbarSlider-background)}.monaco-diff-editor .diffViewport:hover{background:var(--vscode-scrollbarSlider-hoverBackground)}.monaco-diff-editor .diffViewport:active{background:var(--vscode-scrollbarSlider-activeBackground)}.monaco-editor .diagonal-fill{background-image:linear-gradient(-45deg, var(--vscode-diffEditor-diagonalFill) 12.5%, transparent 12.5%, transparent 50%, var(--vscode-diffEditor-diagonalFill) 50%, var(--vscode-diffEditor-diagonalFill) 62.5%, transparent 62.5%, transparent 100%);background-size:8px 8px}.monaco-diff-editor .gutter{flex-grow:0;flex-shrink:0;position:relative;overflow:hidden}.monaco-diff-editor .gutter>div{position:absolute}.monaco-diff-editor .gutter .gutterItem{opacity:0;transition:opacity .7s}.monaco-diff-editor .gutter .gutterItem.showAlways{opacity:1;transition:none}.monaco-diff-editor .gutter .gutterItem.noTransition{transition:none}.monaco-diff-editor .gutter:hover .gutterItem{opacity:1;transition:opacity .1s ease-in-out}.monaco-diff-editor .gutter .gutterItem .background{border-left:2px var(--vscode-menu-separatorBackground) solid;width:1px;height:100%;position:absolute;left:50%}.monaco-diff-editor .gutter .gutterItem .buttons{justify-content:center;align-items:center;width:100%;display:flex;position:absolute}.monaco-diff-editor .gutter .gutterItem .buttons .monaco-toolbar{height:fit-content}.monaco-diff-editor .gutter .gutterItem .buttons .monaco-toolbar .monaco-action-bar{line-height:1}.monaco-diff-editor .gutter .gutterItem .buttons .monaco-toolbar .monaco-action-bar .actions-container{background:var(--vscode-editorGutter-itemBackground);border-radius:4px;width:fit-content}.monaco-diff-editor .gutter .gutterItem .buttons .monaco-toolbar .monaco-action-bar .actions-container .action-item:hover{background:var(--vscode-toolbar-hoverBackground)}.monaco-diff-editor .gutter .gutterItem .buttons .monaco-toolbar .monaco-action-bar .actions-container .action-item .action-label{color:var(--vscode-editorGutter-itemGlyphForeground);padding:1px 2px}.monaco-diff-editor .diff-hidden-lines-compact{height:11px;display:flex}.monaco-diff-editor .diff-hidden-lines-compact .line-left{border-top:1px solid;border-color:var(--vscode-editorCodeLens-foreground);opacity:.5;width:100%;height:1px;margin:auto}.monaco-diff-editor .diff-hidden-lines-compact .line-right{border-top:1px solid;border-color:var(--vscode-editorCodeLens-foreground);opacity:.5;width:100%;height:1px;margin:auto}.monaco-diff-editor .diff-hidden-lines-compact .line-left{width:20px}.monaco-diff-editor .diff-hidden-lines-compact .text{color:var(--vscode-editorCodeLens-foreground);text-wrap:nowrap;margin:0 4px;font-size:11px;line-height:11px}.monaco-editor .line-delete-selectable{user-select:text!important;z-index:1!important}.line-delete-selectable .view-line{user-select:text!important}.monaco-editor .selection-anchor{background-color:#007acc;width:2px!important}.monaco-editor .bracket-match{box-sizing:border-box;background-color:var(--vscode-editorBracketMatch-background);border:1px solid var(--vscode-editorBracketMatch-border)}.inline-editor-progress-decoration{width:1em;height:1em;display:inline-block}.inline-progress-widget{justify-content:center;align-items:center;display:flex!important}.inline-progress-widget .icon{font-size:80%!important}.inline-progress-widget:hover .icon{animation:none;font-size:90%!important}.inline-progress-widget:hover .icon:before{content:var(--vscode-icon-x-content);font-family:var(--vscode-icon-x-font-family)}.monaco-editor .monaco-editor-overlaymessage{z-index:10000;padding-bottom:8px}.monaco-editor .monaco-editor-overlaymessage.below{z-index:10000;padding-top:8px;padding-bottom:0}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.monaco-editor .monaco-editor-overlaymessage.fadeIn{animation:.15s ease-out fadeIn}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}.monaco-editor .monaco-editor-overlaymessage.fadeOut{animation:.1s ease-out fadeOut}.monaco-editor .monaco-editor-overlaymessage .message{color:var(--vscode-editorHoverWidget-foreground);background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-inputValidation-infoBorder);border-radius:3px;padding:2px 4px}.monaco-editor .monaco-editor-overlaymessage .message p{margin-top:0;margin-bottom:0}.monaco-editor .monaco-editor-overlaymessage .message a{color:var(--vscode-textLink-foreground)}.monaco-editor .monaco-editor-overlaymessage .message a:hover{color:var(--vscode-textLink-activeForeground)}.monaco-editor.hc-black .monaco-editor-overlaymessage .message,.monaco-editor.hc-light .monaco-editor-overlaymessage .message{border-width:2px}.monaco-editor .monaco-editor-overlaymessage .anchor{z-index:1000;border:8px solid transparent;position:absolute;left:2px;width:0!important;height:0!important}.monaco-editor .monaco-editor-overlaymessage .anchor.top{border-bottom-color:var(--vscode-inputValidation-infoBorder)}.monaco-editor .monaco-editor-overlaymessage .anchor.below{border-top-color:var(--vscode-inputValidation-infoBorder)}.monaco-editor .monaco-editor-overlaymessage:not(.below) .anchor.top,.monaco-editor .monaco-editor-overlaymessage.below .anchor.below{display:none}.monaco-editor .monaco-editor-overlaymessage.below .anchor.top{display:inherit;top:-8px}.monaco-text-button{box-sizing:border-box;text-align:center;cursor:pointer;border:1px solid var(--vscode-button-border,transparent);border-radius:2px;justify-content:center;align-items:center;width:100%;padding:4px;line-height:18px;display:flex}.monaco-text-button:focus{outline-offset:2px!important}.monaco-text-button:hover{text-decoration:none!important}.monaco-button.disabled:focus,.monaco-button.disabled{cursor:default;opacity:.4!important}.monaco-text-button .codicon{margin:0 .2em;color:inherit!important}.monaco-text-button.monaco-text-button-with-short-label{flex-flow:wrap;height:28px;padding:0 4px;overflow:hidden}.monaco-text-button.monaco-text-button-with-short-label>.monaco-button-label{flex-basis:100%}.monaco-text-button.monaco-text-button-with-short-label>.monaco-button-label-short{flex-grow:1;width:0;overflow:hidden}.monaco-text-button.monaco-text-button-with-short-label>.monaco-button-label,.monaco-text-button.monaco-text-button-with-short-label>.monaco-button-label-short{font-weight:400;font-style:inherit;justify-content:center;align-items:center;padding:4px 0;display:flex}.monaco-button-dropdown{cursor:pointer;display:flex}.monaco-button-dropdown.disabled{cursor:default}.monaco-button-dropdown>.monaco-button:focus{outline-offset:-1px!important}.monaco-button-dropdown.disabled>.monaco-button.disabled,.monaco-button-dropdown.disabled>.monaco-button.disabled:focus,.monaco-button-dropdown.disabled>.monaco-button-dropdown-separator{opacity:.4!important}.monaco-button-dropdown>.monaco-button.monaco-text-button{border-right-width:0!important}.monaco-button-dropdown .monaco-button-dropdown-separator{cursor:default;padding:4px 0}.monaco-button-dropdown .monaco-button-dropdown-separator>div{width:1px;height:100%}.monaco-button-dropdown>.monaco-button.monaco-dropdown-button{border:1px solid var(--vscode-button-border,transparent);border-radius:0 2px 2px 0;align-items:center;display:flex;border-left-width:0!important}.monaco-button-dropdown>.monaco-button.monaco-text-button{border-radius:2px 0 0 2px}.monaco-description-button{flex-direction:column;align-items:center;margin:4px 5px;display:flex}.monaco-description-button .monaco-button-description{padding:4px 20px;font-size:11px;font-style:italic}.monaco-description-button .monaco-button-label,.monaco-description-button .monaco-button-description{justify-content:center;align-items:center;display:flex}.monaco-description-button .monaco-button-label>.codicon,.monaco-description-button .monaco-button-description>.codicon{margin:0 .2em;color:inherit!important}.monaco-button.default-colors,.monaco-button-dropdown.default-colors>.monaco-button{color:var(--vscode-button-foreground);background-color:var(--vscode-button-background)}.monaco-button.default-colors:hover,.monaco-button-dropdown.default-colors>.monaco-button:hover{background-color:var(--vscode-button-hoverBackground)}.monaco-button.default-colors.secondary,.monaco-button-dropdown.default-colors>.monaco-button.secondary{color:var(--vscode-button-secondaryForeground);background-color:var(--vscode-button-secondaryBackground)}.monaco-button.default-colors.secondary:hover,.monaco-button-dropdown.default-colors>.monaco-button.secondary:hover{background-color:var(--vscode-button-secondaryHoverBackground)}.monaco-button-dropdown.default-colors .monaco-button-dropdown-separator{background-color:var(--vscode-button-background);border-top:1px solid var(--vscode-button-border);border-bottom:1px solid var(--vscode-button-border)}.monaco-button-dropdown.default-colors .monaco-button.secondary+.monaco-button-dropdown-separator{background-color:var(--vscode-button-secondaryBackground)}.monaco-button-dropdown.default-colors .monaco-button-dropdown-separator>div{background-color:var(--vscode-button-separator)}.action-widget{z-index:40;background-color:var(--vscode-menu-background);width:100%;min-width:100px;max-width:80vw;color:var(--vscode-menu-foreground);box-shadow:0 2px 8px var(--vscode-widget-shadow);border-radius:5px;padding:4px;font-size:13px;display:block;border:1px solid var(--vscode-menu-border)!important}.context-view-block{cursor:initial;z-index:-1;width:100%;height:100%;position:fixed;top:0;left:0}.context-view-pointerBlock{cursor:initial;z-index:2;width:100%;height:100%;position:fixed;top:0;left:0}.action-widget .monaco-list{user-select:none;border:0!important}.action-widget .monaco-list:focus:before{outline:0!important}.action-widget .monaco-list .monaco-scrollable-element{overflow:visible}.action-widget .monaco-list .monaco-list-row{white-space:nowrap;cursor:pointer;touch-action:none;border-radius:3px;width:100%;padding:0 4px}.action-widget .monaco-list .monaco-list-row.action.focused:not(.option-disabled){color:var(--vscode-list-activeSelectionForeground);outline:1px solid var(--vscode-menu-selectionBorder,transparent);outline-offset:-1px;background-color:var(--vscode-list-activeSelectionBackground)!important}.action-widget .monaco-list-row.group-header{font-size:13px;font-weight:600;color:var(--vscode-descriptionForeground)!important}.action-widget .monaco-list-row.group-header:not(:first-of-type){margin-top:2px}.action-widget .monaco-scrollable-element .monaco-list-rows .monaco-list-row.separator{border-top:1px solid var(--vscode-editorHoverWidget-border);color:var(--vscode-descriptionForeground);cursor:default;user-select:none;border-radius:0;margin:4px 0 0;padding:0;font-size:12px}.action-widget .monaco-scrollable-element .monaco-list-rows .monaco-list-row.separator.focused{background-color:transparent;border-radius:0;outline:0 solid}.action-widget .monaco-list-row.separator:first-of-type{border-top:none;margin-top:0}.action-widget .monaco-list .group-header,.action-widget .monaco-list .option-disabled,.action-widget .monaco-list .option-disabled:before,.action-widget .monaco-list .option-disabled .focused,.action-widget .monaco-list .option-disabled .focused:before{-webkit-touch-callout:none;user-select:none;cursor:default!important;background-color:transparent!important;outline:0 solid!important}.action-widget .monaco-list-row.action{align-items:center;gap:4px;display:flex}.action-widget .monaco-list-row.action.option-disabled,.action-widget .monaco-list:focus .monaco-list-row.focused.action.option-disabled,.action-widget .monaco-list-row.action.option-disabled .codicon,.action-widget .monaco-list:not(.drop-target):not(.dragging) .monaco-list-row:hover:not(.selected):not(.focused).option-disabled{color:var(--vscode-disabledForeground)}.action-widget .monaco-list-row.action:not(.option-disabled) .codicon{color:inherit}.action-widget .monaco-list-row.action .title{text-overflow:ellipsis;flex:1;overflow:hidden}.action-widget .monaco-list-row.action .monaco-keybinding>.monaco-keybinding-key{background-color:var(--vscode-keybindingLabel-background);color:var(--vscode-keybindingLabel-foreground);border-style:solid;border-width:1px;border-color:var(--vscode-keybindingLabel-border);border-bottom-color:var(--vscode-keybindingLabel-bottomBorder);box-shadow:inset 0 -1px 0 var(--vscode-widget-shadow);border-radius:3px}.action-widget .action-widget-action-bar{background-color:var(--vscode-menu-background);border-top:1px solid var(--vscode-menu-border);margin-top:2px}.action-widget .action-widget-action-bar:before{content:"";width:100%;display:block}.action-widget .action-widget-action-bar .actions-container{padding:4px 8px 2px 24px}.action-widget-action-bar .action-label{color:var(--vscode-textLink-activeForeground);pointer-events:all;padding:0;font-size:13px;line-height:22px}.action-widget-action-bar .action-item{pointer-events:none;margin-right:16px}.action-widget-action-bar .action-label:hover{background-color:transparent!important}.monaco-action-bar .actions-container.highlight-toggled .action-label.checked{background:var(--vscode-actionBar-toggledBackground)!important}.action-widget .monaco-list .monaco-list-row .description{opacity:.7;margin-left:.5em}.monaco-keybinding{align-items:center;line-height:10px;display:flex}.monaco-keybinding>.monaco-keybinding-key{vertical-align:middle;border-style:solid;border-width:1px;border-radius:3px;margin:0 2px;padding:3px 5px;font-size:11px;display:inline-block}.monaco-keybinding>.monaco-keybinding-key:first-child{margin-left:0}.monaco-keybinding>.monaco-keybinding-key:last-child{margin-right:0}.monaco-keybinding>.monaco-keybinding-key-separator{display:inline-block}.monaco-keybinding>.monaco-keybinding-key-chord-separator{width:6px}.post-edit-widget{box-shadow:0 0 8px 2px var(--vscode-widget-shadow);border:1px solid var(--vscode-widget-border,transparent);color:var(--vscode-button-foreground);background-color:var(--vscode-button-background);border-radius:4px;overflow:hidden}.post-edit-widget .monaco-button{border:none;border-radius:0;padding:2px}.post-edit-widget .monaco-button:hover{background-color:var(--vscode-button-hoverBackground)!important}.post-edit-widget .monaco-button .codicon{margin:0}@font-face{font-family:codicon;font-display:block;src:url(/tmagic-editor/playground/assets/codicon-ngg6Pgfi.ttf)format("truetype")}.codicon[class*=codicon-]{text-rendering:auto;text-align:center;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;user-select:none;font:16px/1 codicon;text-decoration:none;display:inline-block}.codicon-wrench-subaction{opacity:.5}@keyframes codicon-spin{to{transform:rotate(360deg)}}.codicon-sync.codicon-modifier-spin,.codicon-loading.codicon-modifier-spin,.codicon-gear.codicon-modifier-spin,.codicon-notebook-state-executing.codicon-modifier-spin{animation:1.5s steps(30,end) infinite codicon-spin}.codicon-modifier-disabled{opacity:.4}.codicon-loading,.codicon-tree-item-loading:before{animation-duration:1s!important;animation-timing-function:cubic-bezier(.53,.21,.29,.67)!important}.monaco-editor .codicon.codicon-symbol-array,.monaco-workbench .codicon.codicon-symbol-array{color:var(--vscode-symbolIcon-arrayForeground)}.monaco-editor .codicon.codicon-symbol-boolean,.monaco-workbench .codicon.codicon-symbol-boolean{color:var(--vscode-symbolIcon-booleanForeground)}.monaco-editor .codicon.codicon-symbol-class,.monaco-workbench .codicon.codicon-symbol-class{color:var(--vscode-symbolIcon-classForeground)}.monaco-editor .codicon.codicon-symbol-method,.monaco-workbench .codicon.codicon-symbol-method{color:var(--vscode-symbolIcon-methodForeground)}.monaco-editor .codicon.codicon-symbol-color,.monaco-workbench .codicon.codicon-symbol-color{color:var(--vscode-symbolIcon-colorForeground)}.monaco-editor .codicon.codicon-symbol-constant,.monaco-workbench .codicon.codicon-symbol-constant{color:var(--vscode-symbolIcon-constantForeground)}.monaco-editor .codicon.codicon-symbol-constructor,.monaco-workbench .codicon.codicon-symbol-constructor{color:var(--vscode-symbolIcon-constructorForeground)}.monaco-editor .codicon.codicon-symbol-value,.monaco-workbench .codicon.codicon-symbol-value,.monaco-editor .codicon.codicon-symbol-enum,.monaco-workbench .codicon.codicon-symbol-enum{color:var(--vscode-symbolIcon-enumeratorForeground)}.monaco-editor .codicon.codicon-symbol-enum-member,.monaco-workbench .codicon.codicon-symbol-enum-member{color:var(--vscode-symbolIcon-enumeratorMemberForeground)}.monaco-editor .codicon.codicon-symbol-event,.monaco-workbench .codicon.codicon-symbol-event{color:var(--vscode-symbolIcon-eventForeground)}.monaco-editor .codicon.codicon-symbol-field,.monaco-workbench .codicon.codicon-symbol-field{color:var(--vscode-symbolIcon-fieldForeground)}.monaco-editor .codicon.codicon-symbol-file,.monaco-workbench .codicon.codicon-symbol-file{color:var(--vscode-symbolIcon-fileForeground)}.monaco-editor .codicon.codicon-symbol-folder,.monaco-workbench .codicon.codicon-symbol-folder{color:var(--vscode-symbolIcon-folderForeground)}.monaco-editor .codicon.codicon-symbol-function,.monaco-workbench .codicon.codicon-symbol-function{color:var(--vscode-symbolIcon-functionForeground)}.monaco-editor .codicon.codicon-symbol-interface,.monaco-workbench .codicon.codicon-symbol-interface{color:var(--vscode-symbolIcon-interfaceForeground)}.monaco-editor .codicon.codicon-symbol-key,.monaco-workbench .codicon.codicon-symbol-key{color:var(--vscode-symbolIcon-keyForeground)}.monaco-editor .codicon.codicon-symbol-keyword,.monaco-workbench .codicon.codicon-symbol-keyword{color:var(--vscode-symbolIcon-keywordForeground)}.monaco-editor .codicon.codicon-symbol-module,.monaco-workbench .codicon.codicon-symbol-module{color:var(--vscode-symbolIcon-moduleForeground)}.monaco-editor .codicon.codicon-symbol-namespace,.monaco-workbench .codicon.codicon-symbol-namespace{color:var(--vscode-symbolIcon-namespaceForeground)}.monaco-editor .codicon.codicon-symbol-null,.monaco-workbench .codicon.codicon-symbol-null{color:var(--vscode-symbolIcon-nullForeground)}.monaco-editor .codicon.codicon-symbol-number,.monaco-workbench .codicon.codicon-symbol-number{color:var(--vscode-symbolIcon-numberForeground)}.monaco-editor .codicon.codicon-symbol-object,.monaco-workbench .codicon.codicon-symbol-object{color:var(--vscode-symbolIcon-objectForeground)}.monaco-editor .codicon.codicon-symbol-operator,.monaco-workbench .codicon.codicon-symbol-operator{color:var(--vscode-symbolIcon-operatorForeground)}.monaco-editor .codicon.codicon-symbol-package,.monaco-workbench .codicon.codicon-symbol-package{color:var(--vscode-symbolIcon-packageForeground)}.monaco-editor .codicon.codicon-symbol-property,.monaco-workbench .codicon.codicon-symbol-property{color:var(--vscode-symbolIcon-propertyForeground)}.monaco-editor .codicon.codicon-symbol-reference,.monaco-workbench .codicon.codicon-symbol-reference{color:var(--vscode-symbolIcon-referenceForeground)}.monaco-editor .codicon.codicon-symbol-snippet,.monaco-workbench .codicon.codicon-symbol-snippet{color:var(--vscode-symbolIcon-snippetForeground)}.monaco-editor .codicon.codicon-symbol-string,.monaco-workbench .codicon.codicon-symbol-string{color:var(--vscode-symbolIcon-stringForeground)}.monaco-editor .codicon.codicon-symbol-struct,.monaco-workbench .codicon.codicon-symbol-struct{color:var(--vscode-symbolIcon-structForeground)}.monaco-editor .codicon.codicon-symbol-text,.monaco-workbench .codicon.codicon-symbol-text{color:var(--vscode-symbolIcon-textForeground)}.monaco-editor .codicon.codicon-symbol-type-parameter,.monaco-workbench .codicon.codicon-symbol-type-parameter{color:var(--vscode-symbolIcon-typeParameterForeground)}.monaco-editor .codicon.codicon-symbol-unit,.monaco-workbench .codicon.codicon-symbol-unit{color:var(--vscode-symbolIcon-unitForeground)}.monaco-editor .codicon.codicon-symbol-variable,.monaco-workbench .codicon.codicon-symbol-variable{color:var(--vscode-symbolIcon-variableForeground)}.monaco-editor .lightBulbWidget{justify-content:center;align-items:center;display:flex}.monaco-editor .lightBulbWidget:hover{cursor:pointer}.monaco-editor .lightBulbWidget.codicon-light-bulb,.monaco-editor .lightBulbWidget.codicon-lightbulb-sparkle{color:var(--vscode-editorLightBulb-foreground)}.monaco-editor .lightBulbWidget.codicon-lightbulb-autofix,.monaco-editor .lightBulbWidget.codicon-lightbulb-sparkle-autofix{color:var(--vscode-editorLightBulbAutoFix-foreground,var(--vscode-editorLightBulb-foreground))}.monaco-editor .lightBulbWidget.codicon-sparkle-filled{color:var(--vscode-editorLightBulbAi-foreground,var(--vscode-icon-foreground))}.monaco-editor .lightBulbWidget:before{z-index:2;position:relative}.monaco-editor .lightBulbWidget:after{content:"";opacity:.3;z-index:1;width:100%;height:100%;display:block;position:absolute;top:0;left:0}.monaco-editor .glyph-margin-widgets .cgmr[class*=codicon-gutter-lightbulb]{cursor:pointer;display:block}.monaco-editor .glyph-margin-widgets .cgmr.codicon-gutter-lightbulb,.monaco-editor .glyph-margin-widgets .cgmr.codicon-gutter-lightbulb-sparkle{color:var(--vscode-editorLightBulb-foreground)}.monaco-editor .glyph-margin-widgets .cgmr.codicon-gutter-lightbulb-auto-fix,.monaco-editor .glyph-margin-widgets .cgmr.codicon-gutter-lightbulb-aifix-auto-fix{color:var(--vscode-editorLightBulbAutoFix-foreground,var(--vscode-editorLightBulb-foreground))}.monaco-editor .glyph-margin-widgets .cgmr.codicon-gutter-lightbulb-sparkle-filled{color:var(--vscode-editorLightBulbAi-foreground,var(--vscode-icon-foreground))}.monaco-editor .codelens-decoration{text-overflow:ellipsis;white-space:nowrap;color:var(--vscode-editorCodeLens-foreground);line-height:var(--vscode-editorCodeLens-lineHeight);font-size:var(--vscode-editorCodeLens-fontSize);padding-right:calc(var(--vscode-editorCodeLens-fontSize)*.5);font-feature-settings:var(--vscode-editorCodeLens-fontFeatureSettings);font-family:var(--vscode-editorCodeLens-fontFamily), var(--vscode-editorCodeLens-fontFamilyDefault);align-items:center;overflow:hidden;display:inline-flex!important}.monaco-editor .codelens-decoration>span,.monaco-editor .codelens-decoration>a{user-select:none;white-space:nowrap;vertical-align:sub;align-items:center;display:inline-flex}.monaco-editor .codelens-decoration>a{text-decoration:none}.monaco-editor .codelens-decoration>a:hover{cursor:pointer;color:var(--vscode-editorLink-activeForeground)!important}.monaco-editor .codelens-decoration>a:hover .codicon{color:var(--vscode-editorLink-activeForeground)!important}.monaco-editor .codelens-decoration .codicon[class*=codicon-]{vertical-align:middle;color:var(--vscode-editorCodeLens-foreground);line-height:var(--vscode-editorCodeLens-lineHeight);font-size:var(--vscode-editorCodeLens-fontSize);color:currentColor!important}.monaco-editor .codelens-decoration>a:hover .codicon:before{cursor:pointer}@keyframes fadein{0%{opacity:0}to{opacity:1}}.monaco-editor .codelens-decoration.fadein{animation:.1s linear fadein}.monaco-editor .inlineSuggestionsHints{padding:4px}.monaco-editor .inlineSuggestionsHints .warningMessage p{margin:0}.monaco-editor .inlineSuggestionsHints.withBorder{z-index:39;color:var(--vscode-editorHoverWidget-foreground);background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border)}.monaco-editor .inlineSuggestionsHints a,.monaco-editor .inlineSuggestionsHints a:hover{color:var(--vscode-foreground)!important}.monaco-editor .inlineSuggestionsHints .keybinding{opacity:.6;margin-left:4px;display:flex}.monaco-editor .inlineSuggestionsHints .keybinding .monaco-keybinding-key{padding:2px 3px;font-size:8px}.monaco-editor .inlineSuggestionsHints .availableSuggestionCount a{justify-content:center;min-width:19px;display:flex}.monaco-editor .inlineSuggestionStatusBarItemLabel{margin-right:2px}.monaco-hover{cursor:default;user-select:text;box-sizing:border-box;white-space:var(--vscode-hover-whiteSpace,normal);line-height:1.5em;position:absolute;overflow:hidden}.monaco-hover.fade-in{animation:.1s linear fadein}.monaco-hover.hidden{display:none}.monaco-hover a:hover:not(.disabled){cursor:pointer}.monaco-hover .hover-contents:not(.html-hover-contents){padding:4px 8px}.monaco-hover .markdown-hover>.hover-contents:not(.code-hover-contents){max-width:var(--vscode-hover-maxWidth,500px);word-wrap:break-word}.monaco-hover .markdown-hover>.hover-contents:not(.code-hover-contents) hr{min-width:100%}.monaco-hover p,.monaco-hover .code,.monaco-hover ul,.monaco-hover h1,.monaco-hover h2,.monaco-hover h3,.monaco-hover h4,.monaco-hover h5,.monaco-hover h6{margin:8px 0}.monaco-hover h1,.monaco-hover h2,.monaco-hover h3,.monaco-hover h4,.monaco-hover h5,.monaco-hover h6{line-height:1.1}.monaco-hover code{font-family:var(--monaco-monospace-font)}.monaco-hover hr{box-sizing:border-box;border-left:0;border-right:0;height:1px;margin:4px -8px -4px}.monaco-hover p:first-child,.monaco-hover .code:first-child,.monaco-hover ul:first-child{margin-top:0}.monaco-hover p:last-child,.monaco-hover .code:last-child,.monaco-hover ul:last-child{margin-bottom:0}.monaco-hover ul,.monaco-hover ol{padding-left:20px}.monaco-hover li>p{margin-bottom:0}.monaco-hover li>ul{margin-top:0}.monaco-hover code{border-radius:3px;padding:0 .4em}.monaco-hover .monaco-tokenized-source{white-space:var(--vscode-hover-sourceWhiteSpace,pre-wrap)}.monaco-hover .hover-row.status-bar{font-size:12px;line-height:22px}.monaco-hover .hover-row.status-bar .info{padding:0 8px;font-style:italic}.monaco-hover .hover-row.status-bar .actions{width:100%;padding:0 8px;display:flex}.monaco-hover .hover-row.status-bar .actions .action-container{cursor:pointer;text-wrap:nowrap;text-overflow:ellipsis;margin-right:16px;overflow:hidden}.monaco-hover .hover-row.status-bar .actions .action-container .action .icon{vertical-align:middle;padding-right:4px}.monaco-hover .hover-row.status-bar .actions .action-container a{color:var(--vscode-textLink-foreground);text-decoration:var(--text-link-decoration)}.monaco-hover .hover-row.status-bar .actions .action-container a .icon.codicon{color:var(--vscode-textLink-foreground)}.monaco-hover .markdown-hover .hover-contents .codicon{color:inherit;font-size:inherit;vertical-align:middle}.monaco-hover .hover-contents a.code-link:hover,.monaco-hover .hover-contents a.code-link{color:inherit}.monaco-hover .hover-contents a.code-link:before{content:"("}.monaco-hover .hover-contents a.code-link:after{content:")"}.monaco-hover .hover-contents a.code-link>span{text-underline-position:under;color:var(--vscode-textLink-foreground);border-bottom:1px solid transparent;text-decoration:underline}.monaco-hover .hover-contents a.code-link>span:hover{color:var(--vscode-textLink-activeForeground)}.monaco-hover .markdown-hover .hover-contents:not(.code-hover-contents):not(.html-hover-contents) p:last-child [style*=background-color]{margin-bottom:4px;display:inline-block}.monaco-hover .markdown-hover .hover-contents:not(.code-hover-contents):not(.html-hover-contents) span.codicon{margin-bottom:2px}.monaco-hover-content .action-container a{user-select:none}.monaco-hover-content .action-container.disabled{pointer-events:none;opacity:.4;cursor:default}.monaco-hover .action-container,.monaco-hover .action,.monaco-hover button,.monaco-hover .monaco-button,.monaco-hover .monaco-text-button,.monaco-hover [role=button]{user-select:none}.monaco-custom-toggle{float:left;cursor:pointer;box-sizing:border-box;user-select:none;border:1px solid transparent;border-radius:3px;width:20px;height:20px;margin-left:2px;padding:1px;overflow:hidden}.monaco-custom-toggle:hover{background-color:var(--vscode-inputOption-hoverBackground)}.hc-black .monaco-custom-toggle:hover,.hc-light .monaco-custom-toggle:hover{border:1px dashed var(--vscode-focusBorder)}.hc-black .monaco-custom-toggle,.hc-light .monaco-custom-toggle,.hc-black .monaco-custom-toggle:hover,.hc-light .monaco-custom-toggle:hover{background:0 0}.monaco-custom-toggle.monaco-checkbox{opacity:1;border:1px solid transparent;border-radius:3px;width:18px;height:18px;margin-left:0;margin-right:9px;padding:0;background-size:16px!important}.monaco-action-bar .checkbox-action-item{border-radius:2px;align-items:center;padding-right:2px;display:flex}.monaco-action-bar .checkbox-action-item:hover{background-color:var(--vscode-toolbar-hoverBackground)}.monaco-action-bar .checkbox-action-item>.monaco-custom-toggle.monaco-checkbox{margin-right:4px}.monaco-action-bar .checkbox-action-item>.checkbox-label{font-size:12px}.monaco-editor .find-widget{z-index:35;box-sizing:border-box;height:33px;box-shadow:0 0 8px 2px var(--vscode-widget-shadow);color:var(--vscode-editorWidget-foreground);border-left:1px solid var(--vscode-widget-border);border-right:1px solid var(--vscode-widget-border);border-bottom:1px solid var(--vscode-widget-border);background-color:var(--vscode-editorWidget-background);border-bottom-right-radius:4px;border-bottom-left-radius:4px;padding:0 4px;line-height:19px;transition:transform .2s linear;position:absolute;overflow:hidden;transform:translateY(calc(-100% - 10px))}.monaco-reduce-motion .monaco-editor .find-widget{transition:transform linear}.monaco-editor .find-widget textarea{margin:0}.monaco-editor .find-widget.hiddenEditor{display:none}.monaco-editor .find-widget.replaceToggled>.replace-part{display:flex}.monaco-editor .find-widget.visible{transform:translateY(0)}.monaco-editor .find-widget .monaco-inputbox.synthetic-focus{outline:1px solid -webkit-focus-ring-color;outline-offset:-1px;outline-color:var(--vscode-focusBorder)}.monaco-editor .find-widget .monaco-inputbox .input{background-color:transparent;min-height:0}.monaco-editor .find-widget .monaco-findInput .input{font-size:13px}.monaco-editor .find-widget>.find-part,.monaco-editor .find-widget>.replace-part{margin:3px 25px 0 17px;font-size:12px;display:flex}.monaco-editor .find-widget>.find-part .monaco-inputbox,.monaco-editor .find-widget>.replace-part .monaco-inputbox{min-height:25px}.monaco-editor .find-widget>.replace-part .monaco-inputbox>.ibwrapper>.mirror{padding-right:22px}.monaco-editor .find-widget>.find-part .monaco-inputbox>.ibwrapper>.input,.monaco-editor .find-widget>.find-part .monaco-inputbox>.ibwrapper>.mirror,.monaco-editor .find-widget>.replace-part .monaco-inputbox>.ibwrapper>.input,.monaco-editor .find-widget>.replace-part .monaco-inputbox>.ibwrapper>.mirror{padding-top:2px;padding-bottom:2px}.monaco-editor .find-widget>.find-part .find-actions,.monaco-editor .find-widget>.replace-part .replace-actions{align-items:center;height:25px;display:flex}.monaco-editor .find-widget .monaco-findInput{vertical-align:middle;flex:1;display:flex}.monaco-editor .find-widget .monaco-findInput .monaco-scrollable-element{width:100%}.monaco-editor .find-widget .monaco-findInput .monaco-scrollable-element .scrollbar.vertical{opacity:0}.monaco-editor .find-widget .matchesCount{flex:initial;vertical-align:middle;box-sizing:border-box;text-align:center;height:25px;margin:0 0 0 3px;padding:2px 0 0 2px;line-height:23px;display:flex}.monaco-editor .find-widget .button{flex:initial;cursor:pointer;background-position:50%;background-repeat:no-repeat;border-radius:5px;justify-content:center;align-items:center;width:16px;height:16px;margin-left:3px;padding:3px;display:flex}.monaco-editor .find-widget .codicon-find-selection{border-radius:5px;width:22px;height:22px;padding:3px}.monaco-editor .find-widget .button.left{margin-left:0;margin-right:3px}.monaco-editor .find-widget .button.wide{width:auto;padding:1px 6px;top:-1px}.monaco-editor .find-widget .button.toggle{box-sizing:border-box;border-radius:0;width:18px;height:100%;position:absolute;top:0;left:3px}.monaco-editor .find-widget .button.toggle.disabled{display:none}.monaco-editor .find-widget .disabled{color:var(--vscode-disabledForeground);cursor:default}.monaco-editor .find-widget>.replace-part{display:none}.monaco-editor .find-widget>.replace-part>.monaco-findInput{vertical-align:middle;flex:none;display:flex;position:relative}.monaco-editor .find-widget>.replace-part>.monaco-findInput>.controls{position:absolute;top:3px;right:2px}.monaco-editor .find-widget.reduced-find-widget .matchesCount{display:none}.monaco-editor .find-widget.narrow-find-widget{max-width:257px!important}.monaco-editor .find-widget.collapsed-find-widget{max-width:170px!important}.monaco-editor .find-widget.collapsed-find-widget .button.previous,.monaco-editor .find-widget.collapsed-find-widget .button.next,.monaco-editor .find-widget.collapsed-find-widget .button.replace,.monaco-editor .find-widget.collapsed-find-widget .button.replace-all,.monaco-editor .find-widget.collapsed-find-widget>.find-part .monaco-findInput .controls{display:none}.monaco-editor .find-widget.no-results .matchesCount{color:var(--vscode-errorForeground)}.monaco-editor .findMatch{animation-duration:0;background-color:var(--vscode-editor-findMatchHighlightBackground);animation-name:inherit!important}.monaco-editor .currentFindMatch{background-color:var(--vscode-editor-findMatchBackground);border:2px solid var(--vscode-editor-findMatchBorder);box-sizing:border-box;padding:1px}.monaco-editor .findScope{background-color:var(--vscode-editor-findRangeHighlightBackground)}.monaco-editor .find-widget .monaco-sash{background-color:var(--vscode-editorWidget-resizeBorder,var(--vscode-editorWidget-border));left:0!important}.monaco-editor.hc-black .find-widget .button:before{position:relative;top:1px;left:2px}.monaco-editor .find-widget .button:not(.disabled):hover,.monaco-editor .find-widget .codicon-find-selection:hover{background-color:var(--vscode-toolbar-hoverBackground)!important}.monaco-editor.currentFindMatch{background-color:var(--vscode-editor-findMatchBackground)}.monaco-editor.findScope{background-color:var(--vscode-editor-findRangeHighlightBackground)}.monaco-editor.findMatch{background-color:var(--vscode-editorWidget-background)}.monaco-editor .find-widget>.button.codicon-widget-close{position:absolute;top:5px;right:4px}.monaco-inputbox{box-sizing:border-box;font-size:inherit;border-radius:2px;padding:0;display:block;position:relative}.monaco-inputbox>.ibwrapper>.input,.monaco-inputbox>.ibwrapper>.mirror{padding:4px 6px}.monaco-inputbox>.ibwrapper{width:100%;position:relative}.monaco-inputbox>.ibwrapper>.input{box-sizing:border-box;width:100%;height:100%;line-height:inherit;font-family:inherit;font-size:inherit;resize:none;color:inherit;border:none;display:inline-block}.monaco-inputbox>.ibwrapper>input{text-overflow:ellipsis}.monaco-inputbox>.ibwrapper>textarea.input{scrollbar-width:none;outline:none;display:block}.monaco-inputbox>.ibwrapper>textarea.input::-webkit-scrollbar{display:none}.monaco-inputbox>.ibwrapper>textarea.input.empty{white-space:nowrap}.monaco-inputbox>.ibwrapper>.mirror{box-sizing:border-box;white-space:pre-wrap;visibility:hidden;word-wrap:break-word;width:100%;display:inline-block;position:absolute;top:0;left:0}.monaco-inputbox-container{text-align:right}.monaco-inputbox-container .monaco-inputbox-message{text-align:left;box-sizing:border-box;word-wrap:break-word;width:100%;margin-top:-1px;padding:.4em;font-size:12px;line-height:17px;display:inline-block;overflow:hidden}.monaco-inputbox .monaco-action-bar{position:absolute;top:4px;right:2px}.monaco-inputbox .monaco-action-bar .action-item{margin-left:2px}.monaco-inputbox .monaco-action-bar .action-item .codicon{background-repeat:no-repeat;width:16px;height:16px}.monaco-findInput{position:relative}.monaco-findInput .monaco-inputbox{width:100%;font-size:13px}.monaco-findInput>.controls{position:absolute;top:3px;right:2px}.vs .monaco-findInput.disabled{background-color:#e1e1e1}.vs-dark .monaco-findInput.disabled{background-color:#333}.monaco-findInput.highlight-0 .controls,.hc-light .monaco-findInput.highlight-0 .controls{animation:.1s linear monaco-findInput-highlight-0}.monaco-findInput.highlight-1 .controls,.hc-light .monaco-findInput.highlight-1 .controls{animation:.1s linear monaco-findInput-highlight-1}.hc-black .monaco-findInput.highlight-0 .controls,.vs-dark .monaco-findInput.highlight-0 .controls{animation:.1s linear monaco-findInput-highlight-dark-0}.hc-black .monaco-findInput.highlight-1 .controls,.vs-dark .monaco-findInput.highlight-1 .controls{animation:.1s linear monaco-findInput-highlight-dark-1}@keyframes monaco-findInput-highlight-0{0%{background:rgba(253,255,0,.8)}to{background:0 0}}@keyframes monaco-findInput-highlight-1{0%{background:rgba(253,255,0,.8)}99%{background:0 0}}@keyframes monaco-findInput-highlight-dark-0{0%{background:rgba(255,255,255,.44)}to{background:0 0}}@keyframes monaco-findInput-highlight-dark-1{0%{background:rgba(255,255,255,.44)}99%{background:0 0}}.colorpicker-widget{user-select:none;height:190px}.colorpicker-color-decoration,.hc-light .colorpicker-color-decoration{box-sizing:border-box;cursor:pointer;border:.1em solid #000;width:.8em;height:.8em;margin:.1em .2em 0;line-height:.8em;display:inline-block}.hc-black .colorpicker-color-decoration,.vs-dark .colorpicker-color-decoration{border:.1em solid #eee}.colorpicker-header{height:24px;image-rendering:pixelated;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAAHUlEQVQYV2PYvXu3JAi7uLiAMaYAjAGTQBPYLQkAa/0Zef3qRswAAAAASUVORK5CYII=) 0 0/9px 9px;display:flex;position:relative}.colorpicker-header .picked-color{cursor:pointer;color:#fff;white-space:nowrap;flex:1;justify-content:center;align-items:center;width:240px;line-height:24px;display:flex;overflow:hidden}.colorpicker-header .picked-color .picked-color-presentation{white-space:nowrap;margin-left:5px;margin-right:5px}.colorpicker-header .picked-color .codicon{color:inherit;font-size:14px}.colorpicker-header .picked-color.light{color:#000}.colorpicker-header .original-color{width:74px;z-index:inherit;cursor:pointer}.standalone-colorpicker{color:var(--vscode-editorHoverWidget-foreground);background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border)}.colorpicker-header.standalone-colorpicker{border-bottom:none}.colorpicker-header .close-button{cursor:pointer;background-color:var(--vscode-editorHoverWidget-background);border-left:1px solid var(--vscode-editorHoverWidget-border)}.colorpicker-header .close-button-inner-div{text-align:center;width:100%;height:100%}.colorpicker-header .close-button-inner-div:hover{background-color:var(--vscode-toolbar-hoverBackground)}.colorpicker-header .close-icon{padding:3px}.colorpicker-body{padding:8px;display:flex;position:relative}.colorpicker-body .saturation-wrap{flex:1;min-width:220px;height:150px;position:relative;overflow:hidden}.colorpicker-body .saturation-box{height:150px;position:absolute}.colorpicker-body .saturation-selection{border:1px solid #fff;border-radius:100%;width:9px;height:9px;margin:-5px 0 0 -5px;position:absolute;box-shadow:0 0 2px rgba(0,0,0,.8)}.colorpicker-body .strip{width:25px;height:150px}.colorpicker-body .standalone-strip{width:25px;height:122px}.colorpicker-body .hue-strip{cursor:grab;background:linear-gradient(red 0%,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%);margin-left:8px;position:relative}.colorpicker-body .opacity-strip{cursor:grab;image-rendering:pixelated;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAAHUlEQVQYV2PYvXu3JAi7uLiAMaYAjAGTQBPYLQkAa/0Zef3qRswAAAAASUVORK5CYII=) 0 0/9px 9px;margin-left:8px;position:relative}.colorpicker-body .strip.grabbing{cursor:grabbing}.colorpicker-body .slider{box-sizing:border-box;border:1px solid rgba(255,255,255,.71);width:calc(100% + 4px);height:4px;position:absolute;top:0;left:-2px;box-shadow:0 0 1px rgba(0,0,0,.85)}.colorpicker-body .strip .overlay{pointer-events:none;height:150px}.colorpicker-body .standalone-strip .standalone-overlay{pointer-events:none;height:122px}.standalone-colorpicker-body{border:1px solid transparent;border-bottom:1px solid var(--vscode-editorHoverWidget-border);display:block;overflow:hidden}.colorpicker-body .insert-button{background:var(--vscode-button-background);width:58px;height:20px;color:var(--vscode-button-foreground);cursor:pointer;border:none;border-radius:2px;padding:0;position:absolute;bottom:8px;right:8px}.colorpicker-body .insert-button:hover{background:var(--vscode-button-hoverBackground)}.monaco-editor .peekview-widget .head{box-sizing:border-box;flex-wrap:nowrap;justify-content:space-between;display:flex}.monaco-editor .peekview-widget .head .peekview-title{text-overflow:ellipsis;align-items:baseline;min-width:0;margin-left:20px;font-size:13px;display:flex;overflow:hidden}.monaco-editor .peekview-widget .head .peekview-title.clickable{cursor:pointer}.monaco-editor .peekview-widget .head .peekview-title .dirname:not(:empty){margin-left:.5em;font-size:.9em}.monaco-editor .peekview-widget .head .peekview-title .meta{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.monaco-editor .peekview-widget .head .peekview-title .dirname,.monaco-editor .peekview-widget .head .peekview-title .filename{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.monaco-editor .peekview-widget .head .peekview-title .meta:not(:empty):before{content:"-";padding:0 .3em}.monaco-editor .peekview-widget .head .peekview-actions{text-align:right;flex:1;padding-right:2px}.monaco-editor .peekview-widget .head .peekview-actions>.monaco-action-bar{display:inline-block}.monaco-editor .peekview-widget .head .peekview-actions>.monaco-action-bar,.monaco-editor .peekview-widget .head .peekview-actions>.monaco-action-bar>.actions-container{height:100%}.monaco-editor .peekview-widget>.body{border-top:1px solid;position:relative}.monaco-editor .peekview-widget .head .peekview-title .codicon{align-self:center;margin-right:4px}.monaco-editor .peekview-widget .monaco-list .monaco-list-row.focused .codicon{color:inherit!important}.monaco-editor .zone-widget{z-index:10;position:absolute}.monaco-editor .zone-widget .zone-widget-container{border-top-style:solid;border-top-width:0;border-bottom-style:solid;border-bottom-width:0;position:relative}.monaco-split-view2{width:100%;height:100%;position:relative}.monaco-split-view2>.sash-container{pointer-events:none;width:100%;height:100%;position:absolute}.monaco-split-view2>.sash-container>.monaco-sash{pointer-events:initial}.monaco-split-view2>.monaco-scrollable-element{width:100%;height:100%}.monaco-split-view2>.monaco-scrollable-element>.split-view-container{white-space:nowrap;width:100%;height:100%;position:relative}.monaco-split-view2>.monaco-scrollable-element>.split-view-container>.split-view-view{white-space:initial;position:absolute}.monaco-split-view2>.monaco-scrollable-element>.split-view-container>.split-view-view:not(.visible){display:none}.monaco-split-view2.vertical>.monaco-scrollable-element>.split-view-container>.split-view-view{width:100%}.monaco-split-view2.horizontal>.monaco-scrollable-element>.split-view-container>.split-view-view{height:100%}.monaco-split-view2.separator-border>.monaco-scrollable-element>.split-view-container>.split-view-view:not(:first-child):before{content:" ";z-index:5;pointer-events:none;background-color:var(--separator-border);position:absolute;top:0;left:0}.monaco-split-view2.separator-border.horizontal>.monaco-scrollable-element>.split-view-container>.split-view-view:not(:first-child):before{width:1px;height:100%}.monaco-split-view2.separator-border.vertical>.monaco-scrollable-element>.split-view-container>.split-view-view:not(:first-child):before{width:100%;height:1px}.monaco-table{white-space:nowrap;flex-direction:column;width:100%;height:100%;display:flex;position:relative;overflow:hidden}.monaco-table>.monaco-split-view2{border-bottom:1px solid transparent}.monaco-table>.monaco-list{flex:1}.monaco-table-tr{height:100%;display:flex}.monaco-table-th{text-overflow:ellipsis;width:100%;height:100%;font-weight:700;overflow:hidden}.monaco-table-th,.monaco-table-td{box-sizing:border-box;white-space:nowrap;text-overflow:ellipsis;flex-shrink:0;overflow:hidden}.monaco-table>.monaco-split-view2 .monaco-sash.vertical:before{content:"";left:calc(var(--vscode-sash-size) / 2);border-left:1px solid transparent;width:0;position:absolute}.monaco-enable-motion .monaco-table>.monaco-split-view2,.monaco-enable-motion .monaco-table>.monaco-split-view2 .monaco-sash.vertical:before{transition:border-color .2s ease-out}.monaco-tl-row{align-items:center;height:100%;display:flex;position:relative}.monaco-tl-row.disabled{cursor:default}.monaco-tl-indent{pointer-events:none;height:100%;position:absolute;top:0;left:16px}.hide-arrows .monaco-tl-indent{left:12px}.monaco-tl-indent>.indent-guide{box-sizing:border-box;opacity:0;border-left:1px solid transparent;height:100%;display:inline-block}.monaco-enable-motion .monaco-tl-indent>.indent-guide{transition:opacity .1s linear}.monaco-tl-twistie,.monaco-tl-contents{height:100%}.monaco-tl-twistie{text-align:right;flex-shrink:0;justify-content:center;align-items:center;width:16px;padding-right:6px;font-size:10px;transform:translate(3px);display:flex!important}.monaco-tl-contents{flex:1;overflow:hidden}.monaco-tl-twistie:before{border-radius:20px}.monaco-tl-twistie.collapsed:before{transform:rotate(-90deg)}.monaco-tl-twistie.codicon-tree-item-loading:before{animation:1.25s steps(30,end) infinite codicon-spin}.monaco-tree-type-filter{z-index:100;border:1px solid var(--vscode-widget-border);border-bottom-right-radius:4px;border-bottom-left-radius:4px;max-width:200px;margin:0 10px 0 6px;padding:3px;display:flex;position:absolute;top:0;right:0}.monaco-enable-motion .monaco-tree-type-filter{transition:top .3s}.monaco-tree-type-filter.disabled{top:-40px!important}.monaco-tree-type-filter-input{flex:1}.monaco-tree-type-filter-input .monaco-inputbox{height:23px}.monaco-tree-type-filter-input .monaco-inputbox>.ibwrapper>.input,.monaco-tree-type-filter-input .monaco-inputbox>.ibwrapper>.mirror{padding:2px 4px}.monaco-tree-type-filter-input .monaco-findInput>.controls{top:2px}.monaco-tree-type-filter-actionbar{margin-left:4px}.monaco-tree-type-filter-actionbar .monaco-action-bar .action-label{padding:2px}.monaco-list .monaco-scrollable-element .monaco-tree-sticky-container{z-index:13;background-color:var(--vscode-sideBar-background);width:100%;height:0;position:absolute;top:0;left:0}.monaco-list .monaco-scrollable-element .monaco-tree-sticky-container .monaco-tree-sticky-row.monaco-list-row{background-color:var(--vscode-sideBar-background);width:100%;position:absolute;overflow:hidden;opacity:1!important}.monaco-list .monaco-scrollable-element .monaco-tree-sticky-container .monaco-tree-sticky-row:hover{cursor:pointer;background-color:var(--vscode-list-hoverBackground)!important}.monaco-list .monaco-scrollable-element .monaco-tree-sticky-container.empty,.monaco-list .monaco-scrollable-element .monaco-tree-sticky-container.empty .monaco-tree-sticky-container-shadow{display:none}.monaco-list .monaco-scrollable-element .monaco-tree-sticky-container .monaco-tree-sticky-container-shadow{width:100%;height:0;position:absolute;bottom:-3px;left:0}.monaco-list .monaco-scrollable-element .monaco-tree-sticky-container[tabindex="0"]:focus{outline:none}.monaco-editor .zone-widget .zone-widget-container.reference-zone-widget{border-top-width:1px;border-bottom-width:1px}.monaco-editor .reference-zone-widget .inline{vertical-align:top;display:inline-block}.monaco-editor .reference-zone-widget .messages{text-align:center;width:100%;height:100%;padding:3em 0}.monaco-editor .reference-zone-widget .ref-tree{background-color:var(--vscode-peekViewResult-background);color:var(--vscode-peekViewResult-lineForeground);line-height:23px}.monaco-editor .reference-zone-widget .ref-tree .reference{text-overflow:ellipsis;overflow:hidden}.monaco-editor .reference-zone-widget .ref-tree .reference-file{width:100%;height:100%;color:var(--vscode-peekViewResult-fileForeground);display:inline-flex}.monaco-editor .reference-zone-widget .ref-tree .monaco-list:focus .selected .reference-file{color:inherit!important}.monaco-editor .reference-zone-widget .ref-tree .monaco-list:focus .monaco-list-rows>.monaco-list-row.selected:not(.highlighted){background-color:var(--vscode-peekViewResult-selectionBackground);color:var(--vscode-peekViewResult-selectionForeground)!important}.monaco-editor .reference-zone-widget .ref-tree .reference-file .count{margin-left:auto;margin-right:12px}.monaco-editor .reference-zone-widget .ref-tree .referenceMatch .highlight{color:var(--vscode-peekViewResult-fileForeground)!important;background-color:var(--vscode-peekViewResult-matchHighlightBackground)!important}.monaco-editor .reference-zone-widget .preview .reference-decoration{background-color:var(--vscode-peekViewEditor-matchHighlightBackground);border:2px solid var(--vscode-peekViewEditor-matchHighlightBorder);box-sizing:border-box}.monaco-editor .reference-zone-widget .preview .monaco-editor .monaco-editor-background,.monaco-editor .reference-zone-widget .preview .monaco-editor .inputarea.ime-input{background-color:var(--vscode-peekViewEditor-background)}.monaco-editor .reference-zone-widget .preview .monaco-editor .margin{background-color:var(--vscode-peekViewEditorGutter-background)}.monaco-editor.hc-black .reference-zone-widget .ref-tree .reference-file,.monaco-editor.hc-light .reference-zone-widget .ref-tree .reference-file{font-weight:700}.monaco-editor.hc-black .reference-zone-widget .ref-tree .referenceMatch .highlight,.monaco-editor.hc-light .reference-zone-widget .ref-tree .referenceMatch .highlight{border:1px dotted var(--vscode-contrastActiveBorder,transparent);box-sizing:border-box}.monaco-count-badge{text-align:center;box-sizing:border-box;border-radius:11px;min-width:18px;min-height:18px;padding:3px 5px;font-size:11px;font-weight:400;line-height:11px;display:inline-block}.monaco-count-badge.long{border-radius:2px;min-height:auto;padding:2px 3px;line-height:normal}.monaco-icon-label{text-overflow:ellipsis;display:flex;overflow:hidden}.monaco-icon-label:before{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;vertical-align:top;background-position:0;background-repeat:no-repeat;background-size:16px;flex-shrink:0;width:16px;height:22px;padding-right:6px;display:inline-block;line-height:inherit!important}.monaco-icon-label-iconpath{width:16px;height:22px;margin-right:6px;display:flex}.monaco-icon-label-container.disabled{color:var(--vscode-disabledForeground)}.monaco-icon-label>.monaco-icon-label-container{text-overflow:ellipsis;flex:1;min-width:0;overflow:hidden}.monaco-icon-label>.monaco-icon-label-container>.monaco-icon-name-container>.label-name{color:inherit;white-space:pre}.monaco-icon-label>.monaco-icon-label-container>.monaco-icon-name-container>.label-name>.label-separator{opacity:.5;margin:0 2px}.monaco-icon-label>.monaco-icon-label-container>.monaco-icon-suffix-container>.label-suffix{opacity:.7;white-space:pre}.monaco-icon-label>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{opacity:.7;white-space:pre;margin-left:.5em;font-size:.9em}.monaco-icon-label.nowrap>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{white-space:nowrap}.vs .monaco-icon-label>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{opacity:.95}.monaco-icon-label.bold>.monaco-icon-label-container>.monaco-icon-name-container>.label-name,.monaco-icon-label.bold>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{font-weight:700}.monaco-icon-label.italic>.monaco-icon-label-container>.monaco-icon-name-container>.label-name,.monaco-icon-label.italic>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{font-style:italic}.monaco-icon-label.deprecated{opacity:.66;text-decoration:line-through}.monaco-icon-label.strikethrough>.monaco-icon-label-container>.monaco-icon-name-container>.label-name,.monaco-icon-label.strikethrough>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{text-decoration:line-through}.monaco-icon-label:after{opacity:.75;text-align:center;margin:auto 16px 0 5px;font-size:90%;font-weight:600}.monaco-list:focus .selected .monaco-icon-label,.monaco-list:focus .selected .monaco-icon-label:after{color:inherit!important}.monaco-list-row.focused.selected .label-description,.monaco-list-row.selected .label-description{opacity:.8}.monaco-editor .peekview-widget .head .peekview-title .severity-icon{vertical-align:text-top;margin-right:4px;display:inline-block}.monaco-editor .marker-widget{text-overflow:ellipsis;white-space:nowrap}.monaco-editor .marker-widget>.stale{opacity:.6;font-style:italic}.monaco-editor .marker-widget .title{padding-right:5px;display:inline-block}.monaco-editor .marker-widget .descriptioncontainer{white-space:pre;user-select:text;padding:8px 12px 0 20px;position:absolute}.monaco-editor .marker-widget .descriptioncontainer .message{flex-direction:column;display:flex}.monaco-editor .marker-widget .descriptioncontainer .message .details{padding-left:6px}.monaco-editor .marker-widget .descriptioncontainer .message .source,.monaco-editor .marker-widget .descriptioncontainer .message span.code{opacity:.6}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link{opacity:.6;color:inherit}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link:before{content:"("}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link:after{content:")"}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link>span{text-underline-position:under;color:var(--vscode-textLink-activeForeground);border-bottom:1px solid transparent;text-decoration:underline}.monaco-editor .marker-widget .descriptioncontainer .filename{cursor:pointer;color:var(--vscode-textLink-activeForeground)}.monaco-editor .zone-widget .codicon.codicon-error,.markers-panel .marker-icon.error,.markers-panel .marker-icon .codicon.codicon-error,.text-search-provider-messages .providerMessage .codicon.codicon-error,.extensions-viewlet>.extensions .codicon.codicon-error,.extension-editor .codicon.codicon-error,.chat-attached-context-attachment .codicon.codicon-error{color:var(--vscode-problemsErrorIcon-foreground)}.monaco-editor .zone-widget .codicon.codicon-warning,.markers-panel .marker-icon.warning,.markers-panel .marker-icon .codicon.codicon-warning,.text-search-provider-messages .providerMessage .codicon.codicon-warning,.extensions-viewlet>.extensions .codicon.codicon-warning,.extension-editor .codicon.codicon-warning,.preferences-editor .codicon.codicon-warning{color:var(--vscode-problemsWarningIcon-foreground)}.monaco-editor .zone-widget .codicon.codicon-info,.markers-panel .marker-icon.info,.markers-panel .marker-icon .codicon.codicon-info,.text-search-provider-messages .providerMessage .codicon.codicon-info,.extensions-viewlet>.extensions .codicon.codicon-info,.extension-editor .codicon.codicon-info{color:var(--vscode-problemsInfoIcon-foreground)}.monaco-editor .hoverHighlight{background-color:var(--vscode-editor-hoverHighlightBackground)}.monaco-editor .monaco-resizable-hover{border:1px solid var(--vscode-editorHoverWidget-border);box-sizing:content-box;border-radius:3px}.monaco-editor .monaco-resizable-hover>.monaco-hover{border-radius:none;border:none}.monaco-editor .monaco-hover{border:1px solid var(--vscode-editorHoverWidget-border);color:var(--vscode-editorHoverWidget-foreground);background-color:var(--vscode-editorHoverWidget-background);border-radius:3px}.monaco-editor .monaco-hover a{color:var(--vscode-textLink-foreground)}.monaco-editor .monaco-hover a:hover{color:var(--vscode-textLink-activeForeground)}.monaco-editor .monaco-hover .hover-row{display:flex}.monaco-editor .monaco-hover .hover-row.hover-row-with-copy{padding-right:20px;position:relative}.monaco-editor .monaco-hover .hover-row .hover-row-contents{flex-direction:column;min-width:0;display:flex}.monaco-editor .monaco-hover .hover-row .verbosity-actions{border-right:1px solid var(--vscode-editorHoverWidget-border);width:22px;overflow-y:clip}.monaco-editor .monaco-hover .hover-row .verbosity-actions-inner{flex-direction:column;justify-content:flex-end;padding-left:5px;padding-right:5px;display:flex;position:relative}.monaco-editor .monaco-hover .hover-row .verbosity-actions-inner .codicon{cursor:pointer;font-size:11px}.monaco-editor .monaco-hover .hover-row .verbosity-actions-inner .codicon.enabled{color:var(--vscode-textLink-foreground)}.monaco-editor .monaco-hover .hover-row .verbosity-actions-inner .codicon.disabled{opacity:.6}.monaco-editor .monaco-hover .hover-row .actions{background-color:var(--vscode-editorHoverWidget-statusBarBackground)}.monaco-editor .monaco-hover code{background-color:var(--vscode-textCodeBlock-background)}.monaco-editor .monaco-hover .hover-copy-button{opacity:0;border-radius:3px;justify-content:center;align-items:center;padding:2px 4px;display:flex;position:absolute;top:4px;right:4px}.monaco-editor .monaco-hover .hover-row-with-copy:hover .hover-copy-button,.monaco-editor .monaco-hover .hover-row-with-copy:focus-within .hover-copy-button{opacity:1}.monaco-editor .monaco-hover .hover-copy-button:hover{background-color:var(--vscode-toolbar-hoverBackground);cursor:pointer}.monaco-editor .monaco-hover .hover-copy-button:focus{outline:1px solid var(--vscode-focusBorder);outline-offset:-1px}.monaco-editor .monaco-hover .hover-copy-button .codicon{color:var(--vscode-foreground);font-size:16px}.monaco-editor.vs .dnd-target,.monaco-editor.hc-light .dnd-target{color:#fff;border-right:2px dotted #000}.monaco-editor.vs-dark .dnd-target{color:#51504f;border-right:2px dotted #aeafad}.monaco-editor.hc-black .dnd-target{color:#000;border-right:2px dotted #fff}.monaco-editor.mouse-default .view-lines,.monaco-editor.vs-dark.mac.mouse-default .view-lines,.monaco-editor.hc-black.mac.mouse-default .view-lines,.monaco-editor.hc-light.mac.mouse-default .view-lines{cursor:default}.monaco-editor.mouse-copy .view-lines,.monaco-editor.vs-dark.mac.mouse-copy .view-lines,.monaco-editor.hc-black.mac.mouse-copy .view-lines,.monaco-editor.hc-light.mac.mouse-copy .view-lines{cursor:copy}.monaco-editor .findOptionsWidget{background-color:var(--vscode-editorWidget-background);color:var(--vscode-editorWidget-foreground);box-shadow:0 0 8px 2px var(--vscode-widget-shadow);border:2px solid var(--vscode-contrastBorder)}.monaco-editor .margin-view-overlays .codicon-folding-manual-collapsed,.monaco-editor .margin-view-overlays .codicon-folding-manual-expanded,.monaco-editor .margin-view-overlays .codicon-folding-expanded,.monaco-editor .margin-view-overlays .codicon-folding-collapsed{cursor:pointer;opacity:0;justify-content:center;align-items:center;margin-left:2px;font-size:140%;transition:opacity .5s;display:flex}.monaco-reduce-motion .monaco-editor .margin-view-overlays .codicon-folding-manual-collapsed,.monaco-reduce-motion .monaco-editor .margin-view-overlays .codicon-folding-manual-expanded,.monaco-reduce-motion .monaco-editor .margin-view-overlays .codicon-folding-expanded,.monaco-reduce-motion .monaco-editor .margin-view-overlays .codicon-folding-collapsed{transition:initial}.monaco-editor .margin-view-overlays:hover .codicon,.monaco-editor .margin-view-overlays .codicon.codicon-folding-collapsed,.monaco-editor .margin-view-overlays .codicon.codicon-folding-manual-collapsed,.monaco-editor .margin-view-overlays .codicon.alwaysShowFoldIcons{opacity:1}.monaco-editor .inline-folded:after{color:var(--vscode-editor-foldPlaceholderForeground);content:"⋯";cursor:pointer;margin:.1em .2em 0;line-height:1em;display:inline}.monaco-editor .folded-background{background-color:var(--vscode-editor-foldBackground)}.monaco-editor .cldr.codicon.codicon-folding-expanded,.monaco-editor .cldr.codicon.codicon-folding-collapsed,.monaco-editor .cldr.codicon.codicon-folding-manual-expanded,.monaco-editor .cldr.codicon.codicon-folding-manual-collapsed{color:var(--vscode-editorGutter-foldingControlForeground)!important}.monaco-editor .snippet-placeholder{background-color:var(--vscode-editor-snippetTabstopHighlightBackground,transparent);outline-width:1px;outline-style:solid;outline-color:var(--vscode-editor-snippetTabstopHighlightBorder,transparent);min-width:2px}.monaco-editor .finish-snippet-placeholder{background-color:var(--vscode-editor-snippetFinalTabstopHighlightBackground,transparent);outline-width:1px;outline-style:solid;outline-color:var(--vscode-editor-snippetFinalTabstopHighlightBorder,transparent)}.monaco-editor .suggest-widget{z-index:40;border-radius:3px;flex-direction:column;width:430px;display:flex}.monaco-editor .suggest-widget.message{flex-direction:row;align-items:center}.monaco-editor .suggest-widget,.monaco-editor .suggest-details{border-style:solid;border-width:1px;border-color:var(--vscode-editorSuggestWidget-border);background-color:var(--vscode-editorSuggestWidget-background);flex:0 auto;width:100%}.monaco-editor.hc-black .suggest-widget,.monaco-editor.hc-black .suggest-details,.monaco-editor.hc-light .suggest-widget,.monaco-editor.hc-light .suggest-details{border-width:2px}.monaco-editor .suggest-widget .suggest-status-bar{box-sizing:border-box;border-top:1px solid var(--vscode-editorSuggestWidget-border);flex-flow:row;justify-content:space-between;width:100%;padding:0 4px;font-size:80%;display:none;overflow:hidden}.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar{display:flex}.monaco-editor .suggest-widget .suggest-status-bar .left{padding-right:8px}.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar .action-label{color:var(--vscode-editorSuggestWidgetStatus-foreground)}.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar .action-item:not(:last-of-type) .action-label{margin-right:0}.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar .action-item:not(:last-of-type) .action-label:after{content:", ";margin-right:.3em}.monaco-editor .suggest-widget.with-status-bar .monaco-list .monaco-list-row>.contents>.main>.right>.readMore,.monaco-editor .suggest-widget.with-status-bar .monaco-list .monaco-list-row.focused.string-label>.contents>.main>.right>.readMore{display:none}.monaco-editor .suggest-widget.with-status-bar:not(.docs-side) .monaco-list .monaco-list-row:hover>.contents>.main>.right.can-expand-details>.details-label{width:100%}.monaco-editor .suggest-widget>.message{padding-left:22px}.monaco-editor .suggest-widget>.tree{width:100%;height:100%}.monaco-editor .suggest-widget .monaco-list{user-select:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row{-mox-box-sizing:border-box;box-sizing:border-box;white-space:nowrap;cursor:pointer;touch-action:none;background-position:2px 2px;background-repeat:no-repeat;padding-right:10px;display:flex}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused{color:var(--vscode-editorSuggestWidget-selectedForeground)}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused .codicon{color:var(--vscode-editorSuggestWidget-selectedIconForeground)}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents{flex:1;height:100%;padding-left:2px;overflow:hidden}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main{text-overflow:ellipsis;white-space:pre;justify-content:space-between;display:flex;overflow:hidden}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left,.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right{display:flex}.monaco-editor .suggest-widget .monaco-list .monaco-list-row:not(.focused)>.contents>.main .monaco-icon-label{color:var(--vscode-editorSuggestWidget-foreground)}.monaco-editor .suggest-widget:not(.frozen) .monaco-highlighted-label .highlight{font-weight:700}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main .monaco-highlighted-label .highlight{color:var(--vscode-editorSuggestWidget-highlightForeground)}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused>.contents>.main .monaco-highlighted-label .highlight{color:var(--vscode-editorSuggestWidget-focusHighlightForeground)}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.codicon-close,.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.readMore:before{color:inherit;opacity:1;cursor:pointer;font-size:14px}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.codicon-close{position:absolute;top:6px;right:2px}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.codicon-close:hover,.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.readMore:hover{opacity:1}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.details-label{opacity:.7}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left>.signature-label{text-overflow:ellipsis;opacity:.6;overflow:hidden}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left>.qualifier-label{opacity:.4;font-size:85%;line-height:initial;text-overflow:ellipsis;align-self:center;margin-left:12px;overflow:hidden}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.details-label{text-overflow:ellipsis;white-space:nowrap;margin-left:1.1em;font-size:85%;overflow:hidden}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.details-label>.monaco-tokenized-source{display:inline}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.details-label{display:none}.monaco-editor .suggest-widget:not(.shows-details) .monaco-list .monaco-list-row.focused>.contents>.main>.right>.details-label,.monaco-editor .suggest-widget .monaco-list .monaco-list-row:not(.string-label)>.contents>.main>.right>.details-label,.monaco-editor .suggest-widget.docs-side .monaco-list .monaco-list-row.focused:not(.string-label)>.contents>.main>.right>.details-label{display:inline}.monaco-editor .suggest-widget:not(.docs-side) .monaco-list .monaco-list-row.focused:hover>.contents>.main>.right.can-expand-details>.details-label{width:calc(100% - 26px)}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left{flex-grow:1;flex-shrink:1;overflow:hidden}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left>.monaco-icon-label{flex-shrink:0}.monaco-editor .suggest-widget .monaco-list .monaco-list-row:not(.string-label)>.contents>.main>.left>.monaco-icon-label{max-width:100%}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.string-label>.contents>.main>.left>.monaco-icon-label{flex-shrink:1}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right{flex-shrink:4;max-width:70%;overflow:hidden}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.readMore{visibility:hidden;width:18px;height:18px;display:inline-block;position:absolute;right:10px}.monaco-editor .suggest-widget.docs-side .monaco-list .monaco-list-row>.contents>.main>.right>.readMore{display:none!important}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.string-label>.contents>.main>.right>.readMore{display:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused.string-label>.contents>.main>.right>.readMore{display:inline-block}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused:hover>.contents>.main>.right>.readMore{visibility:visible}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-icon-label.deprecated{opacity:.66;text-decoration:unset}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-icon-label.deprecated>.monaco-icon-label-container>.monaco-icon-name-container{text-decoration:line-through}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-icon-label:before{height:100%}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon{background-position:50%;background-repeat:no-repeat;background-size:80%;width:16px;height:16px;margin-left:2px;display:block}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon.hide{display:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .suggest-icon{align-items:center;margin-right:4px;display:flex}.monaco-editor .suggest-widget.no-icons .monaco-list .monaco-list-row .icon,.monaco-editor .suggest-widget.no-icons .monaco-list .monaco-list-row .suggest-icon:before{display:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon.customcolor .colorspan{border:.1em solid #000;width:.7em;height:.7em;margin:0 0 0 .3em;display:inline-block}.monaco-editor .suggest-details-container{z-index:41}.monaco-editor .suggest-details{cursor:default;color:var(--vscode-editorSuggestWidget-foreground);flex-direction:column;display:flex}.monaco-editor .suggest-details:focus{border-color:var(--vscode-focusBorder)}.monaco-editor .suggest-details a{color:var(--vscode-textLink-foreground)}.monaco-editor .suggest-details a:hover{color:var(--vscode-textLink-activeForeground)}.monaco-editor .suggest-details code{background-color:var(--vscode-textCodeBlock-background)}.monaco-editor .suggest-details.no-docs{display:none}.monaco-editor .suggest-details>.monaco-scrollable-element{flex:1}.monaco-editor .suggest-details>.monaco-scrollable-element>.body{box-sizing:border-box;width:100%;height:100%}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.type{text-overflow:ellipsis;opacity:.7;white-space:pre;flex:2;margin:0 24px 0 0;padding:4px 0 4px 5px;overflow:hidden}.monaco-editor .suggest-details.detail-and-doc>.monaco-scrollable-element>.body>.header>.type{padding-bottom:12px}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.type.auto-wrap{white-space:normal;word-break:break-all}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs{white-space:pre-wrap;margin:0;padding:4px 5px}.monaco-editor .suggest-details.no-type>.monaco-scrollable-element>.body>.docs{margin-right:24px;overflow:hidden}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs{white-space:initial;min-height:calc(1rem + 8px);padding:0}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs>div,.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs>span:not(:empty){padding:4px 5px}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs>div>p:first-child{margin-top:0}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs>div>p:last-child{margin-bottom:0}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs .monaco-tokenized-source{white-space:pre}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs .code{white-space:pre-wrap;word-wrap:break-word}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs .codicon{vertical-align:sub}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>p:empty{display:none}.monaco-editor .suggest-details code{border-radius:3px;padding:0 .4em}.monaco-editor .suggest-details ul,.monaco-editor .suggest-details ol{padding-left:20px}.monaco-editor .suggest-details p code{font-family:var(--monaco-monospace-font)}.monaco-editor .suggest-preview-additional-widget{white-space:nowrap}.monaco-editor .suggest-preview-additional-widget .content-spacer{color:transparent;white-space:pre}.monaco-editor .suggest-preview-additional-widget .button{cursor:pointer;text-underline-position:under;text-decoration:underline;display:inline-block}.monaco-editor .ghost-text-hidden{opacity:0;font-size:0}.monaco-editor .ghost-text-decoration,.monaco-editor .suggest-preview-text .ghost-text{font-style:italic}.monaco-editor .suggest-preview-text.clickable .view-line{z-index:1}.monaco-editor .ghost-text-decoration.clickable,.monaco-editor .ghost-text-decoration-preview.clickable,.monaco-editor .suggest-preview-text.clickable .ghost-text{cursor:pointer}.monaco-editor .inline-completion-text-to-replace{text-underline-position:under;text-decoration:underline}:is(.monaco-editor .ghost-text-decoration,.monaco-editor .ghost-text-decoration-preview,.monaco-editor .suggest-preview-text .ghost-text).syntax-highlighted{opacity:.7}:is(.monaco-editor .ghost-text-decoration,.monaco-editor .ghost-text-decoration-preview,.monaco-editor .suggest-preview-text .ghost-text):not(.syntax-highlighted){color:var(--vscode-editorGhostText-foreground)}.monaco-editor .ghost-text-decoration,.monaco-editor .ghost-text-decoration-preview,.monaco-editor .suggest-preview-text .ghost-text{background-color:var(--vscode-editorGhostText-background);border:1px solid var(--vscode-editorGhostText-border)}.monaco-editor .ghost-text-decoration.warning,.monaco-editor .ghost-text-decoration-preview.warning,.monaco-editor .suggest-preview-text .ghost-text.warning{background:var(--monaco-editor-warning-decoration) repeat-x bottom left;border-bottom:4px double var(--vscode-editorWarning-border)}.ghost-text-view-warning-widget-icon .codicon{color:var(--vscode-editorWarning-foreground)!important}.monaco-editor .edits-fadeout-decoration{opacity:var(--animation-opacity,1);background-color:var(--vscode-inlineEdit-modifiedChangedTextBackground)}.monaco-editor .sticky-widget{border-bottom:1px solid var(--vscode-editorStickyScroll-border);width:100%;box-shadow:var(--vscode-editorStickyScroll-shadow) 0 4px 2px -2px;z-index:4;margin-left:"0px";overflow:hidden;right:initial!important}.monaco-editor .sticky-widget .sticky-widget-line-numbers{float:left;background-color:var(--vscode-editorStickyScrollGutter-background)}.monaco-editor .sticky-widget.peek .sticky-widget-line-numbers{background-color:var(--vscode-peekViewEditorStickyScrollGutter-background)}.monaco-editor .sticky-widget .sticky-widget-lines-scrollable{width:var(--vscode-editorStickyScroll-scrollableWidth);background-color:var(--vscode-editorStickyScroll-background);display:inline-block;position:absolute;overflow:hidden}.monaco-editor .sticky-widget.peek .sticky-widget-lines-scrollable{background-color:var(--vscode-peekViewEditorStickyScroll-background)}.monaco-editor .sticky-widget .sticky-widget-lines{background-color:inherit;position:absolute}.monaco-editor .sticky-widget .sticky-line-number,.monaco-editor .sticky-widget .sticky-line-content{color:var(--vscode-editorLineNumber-foreground);white-space:nowrap;background-color:inherit;display:inline-block;position:absolute}.monaco-editor .sticky-widget .sticky-line-number .codicon-folding-expanded,.monaco-editor .sticky-widget .sticky-line-number .codicon-folding-collapsed{float:right;transition:var(--vscode-editorStickyScroll-foldingOpacityTransition);margin-left:2px;position:absolute}.monaco-editor .sticky-widget .sticky-line-content{width:var(--vscode-editorStickyScroll-scrollableWidth);background-color:inherit;white-space:nowrap}.monaco-editor .sticky-widget .sticky-line-number-inner{text-align:right;display:inline-block}.monaco-editor .sticky-widget .sticky-line-content:hover{background-color:var(--vscode-editorStickyScrollHover-background);cursor:pointer}.monaco-editor .inline-edits-view-indicator{z-index:34;height:20px;color:var(--vscode-inlineEdit-gutterIndicator-primaryForeground);background-color:var(--vscode-inlineEdit-gutterIndicator-background);border:1px solid var(--vscode-inlineEdit-gutterIndicator-primaryBorder);opacity:0;border-radius:3px;align-items:center;margin:0 4px;padding:2px 10px 2px 2px;display:flex}.monaco-editor .inline-edits-view-indicator.contained{transition:opacity .2s ease-in-out .4s}.monaco-editor .inline-edits-view-indicator.visible{opacity:1}.monaco-editor .inline-edits-view-indicator.top{opacity:1}.monaco-editor .inline-edits-view-indicator.top .icon{transform:rotate(90deg)}.monaco-editor .inline-edits-view-indicator.bottom{opacity:1}.monaco-editor .inline-edits-view-indicator.bottom .icon{transform:rotate(-90deg)}.monaco-editor .inline-edits-view-indicator .icon{align-items:center;margin:0 2px;transition:transform .2s ease-in-out;display:flex;transform:none}.monaco-editor .inline-edits-view-indicator .icon .codicon{color:var(--vscode-inlineEdit-gutterIndicator-primaryForeground)}.monaco-editor .inline-edits-view-indicator .label{justify-content:center;width:100%;margin:0 2px;display:flex}.monaco-editor .inline-edits-view .editorContainer .preview .monaco-editor .view-overlays .current-line-exact{border:none}.monaco-editor .inline-edits-view .editorContainer .preview .monaco-editor .current-line-margin{border:none}.monaco-editor .inline-edits-view .editorContainer .inline-edits-view-zone.diagonal-fill{opacity:.5}.monaco-editor .strike-through{text-decoration:line-through}.monaco-editor .inlineCompletions-line-insert{background:var(--vscode-inlineEdit-modifiedChangedLineBackground)}.monaco-editor .inlineCompletions-line-delete{background:var(--vscode-inlineEdit-originalChangedLineBackground)}.monaco-editor .inlineCompletions-char-insert{background:var(--vscode-inlineEdit-modifiedChangedTextBackground);cursor:pointer}.monaco-editor .inlineCompletions-char-delete{background:var(--vscode-inlineEdit-originalChangedTextBackground)}.monaco-editor .inlineCompletions-char-delete.diff-range-empty{border-left:solid var(--vscode-inlineEdit-originalChangedTextBackground) 3px;margin-left:-1px}.monaco-editor .inlineCompletions-char-insert.diff-range-empty{border-left:solid var(--vscode-inlineEdit-modifiedChangedTextBackground) 3px}.monaco-editor .inlineCompletions-char-delete.single-line-inline{border:1px solid var(--vscode-editorHoverWidget-border);margin:-2px 0 0 -2px}.monaco-editor .inlineCompletions-char-insert.single-line-inline{border-top:1px solid var(--vscode-inlineEdit-modifiedBorder);border-bottom:1px solid var(--vscode-inlineEdit-modifiedBorder)}.monaco-editor .inlineCompletions-char-insert.single-line-inline.start{border-left:1px solid var(--vscode-inlineEdit-modifiedBorder);border-top-left-radius:4px;border-bottom-left-radius:4px}.monaco-editor .inlineCompletions-char-insert.single-line-inline.end{border-right:1px solid var(--vscode-inlineEdit-modifiedBorder);border-top-right-radius:4px;border-bottom-right-radius:4px}.monaco-editor .inlineCompletions-char-delete.single-line-inline.empty{display:none}.monaco-editor .inlineCompletions-char-insert.single-line-inline.empty{display:none}.monaco-editor .inlineCompletions.strike-through{text-decoration-thickness:1px}.monaco-editor .inlineCompletions-modified-bubble{background:var(--vscode-inlineEdit-modifiedChangedTextBackground)}.monaco-editor .inlineCompletions-original-bubble{background:var(--vscode-inlineEdit-originalChangedTextBackground)}.monaco-editor .inlineCompletions-modified-bubble{pointer-events:none;display:inline-block}.monaco-editor .inlineCompletions-original-bubble{pointer-events:none;display:inline-block}.monaco-editor .inline-edit.ghost-text.syntax-highlighted{opacity:1!important}.monaco-editor .inline-edit.ghost-text{font-style:normal!important}.monaco-editor .inline-edit.ghost-text-decoration.syntax-highlighted{opacity:1!important}.monaco-editor .inline-edit.ghost-text-decoration{font-style:normal!important}.monaco-editor .inline-edit.ghost-text-decoration-preview.syntax-highlighted{opacity:1!important}.monaco-editor .inline-edit.ghost-text-decoration-preview{font-style:normal!important}.monaco-editor .inline-edit.suggest-preview-text .ghost-text.syntax-highlighted{opacity:1!important}.monaco-editor .inline-edit.suggest-preview-text .ghost-text{font-style:normal!important}.monaco-editor .inline-edit.modified-background.ghost-text{background:var(--vscode-inlineEdit-modifiedChangedTextBackground)!important;display:inline-block!important}.monaco-editor .inline-edit.modified-background.ghost-text-decoration{background:var(--vscode-inlineEdit-modifiedChangedTextBackground)!important;display:inline-block!important}.monaco-editor .inline-edit.modified-background.ghost-text-decoration-preview{background:var(--vscode-inlineEdit-modifiedChangedTextBackground)!important;display:inline-block!important}.monaco-editor .inline-edit.modified-background.suggest-preview-text .ghost-text{background:var(--vscode-inlineEdit-modifiedChangedTextBackground)!important;display:inline-block!important}.monaco-editor .inlineCompletions-original-lines{background:var(--vscode-editor-background)}.monaco-menu-option{color:var(--vscode-editorActionList-foreground);cursor:pointer;border-radius:3px;align-items:center;gap:4px;padding:0 4px;font-size:13px;line-height:28px;display:flex}.monaco-menu-option .monaco-keybinding-key{opacity:.7;font-size:13px}.monaco-menu-option.active{background:var(--vscode-editorActionList-focusBackground);color:var(--vscode-editorActionList-focusForeground);outline:1px solid var(--vscode-menu-selectionBorder,transparent);outline-offset:-1px}.monaco-menu-option.active .monaco-keybinding-key{color:var(--vscode-editorActionList-focusForeground)}.monaco-editor .goto-definition-link{cursor:pointer;text-decoration:underline;color:var(--vscode-editorLink-activeForeground)!important}.monaco-editor.vs .valueSetReplacement{outline:solid 2px var(--vscode-editorBracketMatch-border)}.monaco-editor .linked-editing-decoration{background-color:var(--vscode-editor-linkedEditingBackground);min-width:1px}.monaco-editor .detected-link,.monaco-editor .detected-link-active{text-underline-position:under;text-decoration:underline}.monaco-editor .detected-link-active{cursor:pointer;color:var(--vscode-editorLink-activeForeground)!important}.monaco-editor .scroll-editor-on-middle-click-dot{cursor:all-scroll;z-index:1;background-color:var(--vscode-editor-foreground,white);border:1px solid var(--vscode-editor-background,black);opacity:.5;border-radius:50%;width:5px;height:5px;position:absolute;transform:translate(-50%,-50%)}.monaco-editor .scroll-editor-on-middle-click-dot.hidden{display:none}.monaco-editor.scroll-editor-on-middle-click-editor *{cursor:all-scroll}.monaco-editor .focused .selectionHighlight{background-color:var(--vscode-editor-selectionHighlightBackground);box-sizing:border-box;border:1px solid var(--vscode-editor-selectionHighlightBorder)}.monaco-editor.hc-black .focused .selectionHighlight,.monaco-editor.hc-light .focused .selectionHighlight{border-style:dotted}.monaco-editor .wordHighlight{background-color:var(--vscode-editor-wordHighlightBackground);box-sizing:border-box;border:1px solid var(--vscode-editor-wordHighlightBorder)}.monaco-editor.hc-black .wordHighlight,.monaco-editor.hc-light .wordHighlight{border-style:dotted}.monaco-editor .wordHighlightStrong{background-color:var(--vscode-editor-wordHighlightStrongBackground);box-sizing:border-box;border:1px solid var(--vscode-editor-wordHighlightStrongBorder)}.monaco-editor.hc-black .wordHighlightStrong,.monaco-editor.hc-light .wordHighlightStrong{border-style:dotted}.monaco-editor .wordHighlightText{background-color:var(--vscode-editor-wordHighlightTextBackground);box-sizing:border-box;border:1px solid var(--vscode-editor-wordHighlightTextBorder)}.monaco-editor.hc-black .wordHighlightText,.monaco-editor.hc-light .wordHighlightText{border-style:dotted}.monaco-editor .parameter-hints-widget{z-index:39;cursor:default;color:var(--vscode-editorHoverWidget-foreground);background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border);flex-direction:column;line-height:1.5em;display:flex}.hc-black .monaco-editor .parameter-hints-widget,.hc-light .monaco-editor .parameter-hints-widget{border-width:2px}.monaco-editor .parameter-hints-widget>.phwrapper{flex-direction:row;max-width:440px;display:flex}.monaco-editor .parameter-hints-widget.multiple{min-height:3.3em;padding:0}.monaco-editor .parameter-hints-widget.multiple .body:before{content:"";opacity:.5;border-left:1px solid var(--vscode-editorHoverWidget-border);height:100%;display:block;position:absolute}.monaco-editor .parameter-hints-widget p,.monaco-editor .parameter-hints-widget ul{margin:8px 0}.monaco-editor .parameter-hints-widget .monaco-scrollable-element,.monaco-editor .parameter-hints-widget .body{flex-direction:column;flex:1;min-height:100%;display:flex}.monaco-editor .parameter-hints-widget .signature{padding:4px 5px;position:relative}.monaco-editor .parameter-hints-widget .signature.has-docs:after{content:"";opacity:.5;border-bottom:1px solid var(--vscode-editorHoverWidget-border);width:100%;padding-top:4px;display:block;position:absolute;left:0}.monaco-editor .parameter-hints-widget .code{font-family:var(--vscode-parameterHintsWidget-editorFontFamily), var(--vscode-parameterHintsWidget-editorFontFamilyDefault)}.monaco-editor .parameter-hints-widget .docs{white-space:pre-wrap;padding:0 10px 0 5px}.monaco-editor .parameter-hints-widget .docs.empty{display:none}.monaco-editor .parameter-hints-widget .docs a{color:var(--vscode-textLink-foreground)}.monaco-editor .parameter-hints-widget .docs a:hover{color:var(--vscode-textLink-activeForeground);cursor:pointer}.monaco-editor .parameter-hints-widget .docs .markdown-docs{white-space:initial}.monaco-editor .parameter-hints-widget .docs code{font-family:var(--monaco-monospace-font);background-color:var(--vscode-textCodeBlock-background);border-radius:3px;padding:0 .4em}.monaco-editor .parameter-hints-widget .docs .monaco-tokenized-source,.monaco-editor .parameter-hints-widget .docs .code{white-space:pre-wrap}.monaco-editor .parameter-hints-widget .controls{flex-direction:column;justify-content:flex-end;align-items:center;min-width:22px;display:none}.monaco-editor .parameter-hints-widget.multiple .controls{padding:0 2px;display:flex}.monaco-editor .parameter-hints-widget.multiple .button{cursor:pointer;background-repeat:no-repeat;width:16px;height:16px}.monaco-editor .parameter-hints-widget .button.previous{bottom:24px}.monaco-editor .parameter-hints-widget .overloads{text-align:center;height:12px;line-height:12px;font-family:var(--monaco-monospace-font)}.monaco-editor .parameter-hints-widget .signature .parameter.active{color:var(--vscode-editorHoverWidget-highlightForeground);font-weight:700}.monaco-editor .parameter-hints-widget .documentation-parameter>.parameter{margin-right:.5em;font-weight:700}.monaco-editor .editorPlaceholder{text-overflow:ellipsis;text-wrap:nowrap;pointer-events:none;color:var(--vscode-editor-placeholder-foreground);position:absolute;top:0;overflow:hidden}.monaco-editor .rename-box{z-index:100;color:inherit;border-radius:4px}.monaco-editor .rename-box.preview{padding:4px 4px 0}.monaco-editor .rename-box .rename-input-with-button{border-radius:2px;width:calc(100% - 8px);padding:3px}.monaco-editor .rename-box .rename-input{width:calc(100% - 8px);padding:0}.monaco-editor .rename-box .rename-input:focus{outline:none}.monaco-editor .rename-box .rename-suggestions-button{cursor:pointer;background-color:transparent;border:none;border-radius:5px;align-items:center;padding:3px;display:flex}.monaco-editor .rename-box .rename-suggestions-button:hover{background-color:var(--vscode-toolbar-hoverBackground)}.monaco-editor .rename-box .rename-candidate-list-container .monaco-list-row{border-radius:2px}.monaco-editor .rename-box .rename-label{opacity:.8;display:none}.monaco-editor .rename-box.preview .rename-label{display:inherit}.monaco-editor .unicode-highlight{border:1px solid var(--vscode-editorUnicodeHighlight-border);background-color:var(--vscode-editorUnicodeHighlight-background);box-sizing:border-box}.editor-banner{box-sizing:border-box;cursor:default;background:var(--vscode-banner-background);width:100%;height:26px;font-size:12px;display:flex;overflow:visible}.editor-banner .icon-container{flex-shrink:0;align-items:center;padding:0 6px 0 10px;display:flex}.editor-banner .icon-container.custom-icon{background-position:50%;background-repeat:no-repeat;background-size:16px;width:16px;margin:0 6px 0 10px;padding:0}.editor-banner .message-container{text-overflow:ellipsis;white-space:nowrap;align-items:center;line-height:26px;display:flex;overflow:hidden}.editor-banner .message-container p{margin-top:0;margin-bottom:0}.editor-banner .message-actions-container{flex-grow:1;flex-shrink:0;margin:0 4px;line-height:26px}.editor-banner .message-actions-container a.monaco-button{width:inherit;margin:2px 8px;padding:0 12px}.editor-banner .message-actions-container a{margin-left:12px;padding:3px;text-decoration:underline}.editor-banner .action-container{padding:0 10px 0 6px}.editor-banner{background-color:var(--vscode-banner-background)}.editor-banner,.editor-banner .action-container .codicon,.editor-banner .message-actions-container .monaco-link{color:var(--vscode-banner-foreground)}.editor-banner .icon-container .codicon{color:var(--vscode-banner-iconForeground)}.monaco-link{color:var(--vscode-textLink-foreground)}.monaco-link:hover{color:var(--vscode-textLink-activeForeground)}.floating-menu-overlay-widget{color:var(--vscode-button-foreground);background-color:var(--vscode-button-background);border:1px solid var(--vscode-contrastBorder);z-index:10;box-shadow:0 2px 8px var(--vscode-widget-shadow);border-radius:2px;align-items:center;padding:0;display:flex;overflow:hidden}.floating-menu-overlay-widget .action-item>.action-label{border-radius:2px;padding:5px;font-size:12px}.floating-menu-overlay-widget .action-item>.action-label.codicon{color:var(--vscode-button-foreground)}.floating-menu-overlay-widget .action-item>.action-label.codicon:not(.separator){padding-top:6px;padding-bottom:6px}.floating-menu-overlay-widget .action-item:first-child>.action-label{padding-left:7px}.floating-menu-overlay-widget .action-item:last-child>.action-label{padding-right:7px}.floating-menu-overlay-widget .action-item .action-label.separator{background-color:var(--vscode-menu-separatorBackground)}.monaco-editor .iPadShowKeyboard{resize:none;background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCA1MyAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwKSI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNNDguMDM2NCA0LjAxMDQySDQuMDA3NzlMNC4wMDc3OSAzMi4wMjg2SDQ4LjAzNjRWNC4wMTA0MlpNNC4wMDc3OSAwLjAwNzgxMjVDMS43OTcyMSAwLjAwNzgxMjUgMC4wMDUxODc5OSAxLjc5OTg0IDAuMDA1MTg3OTkgNC4wMTA0MlYzMi4wMjg2QzAuMDA1MTg3OTkgMzQuMjM5MiAxLjc5NzIxIDM2LjAzMTIgNC4wMDc3OSAzNi4wMzEySDQ4LjAzNjRDNTAuMjQ3IDM2LjAzMTIgNTIuMDM5IDM0LjIzOTIgNTIuMDM5IDMyLjAyODZWNC4wMTA0MkM1Mi4wMzkgMS43OTk4NCA1MC4yNDcgMC4wMDc4MTI1IDQ4LjAzNjQgMC4wMDc4MTI1SDQuMDA3NzlaTTguMDEwNDIgOC4wMTMwMkgxMi4wMTNWMTIuMDE1Nkg4LjAxMDQyVjguMDEzMDJaTTIwLjAxODIgOC4wMTMwMkgxNi4wMTU2VjEyLjAxNTZIMjAuMDE4MlY4LjAxMzAyWk0yNC4wMjA4IDguMDEzMDJIMjguMDIzNFYxMi4wMTU2SDI0LjAyMDhWOC4wMTMwMlpNMzYuMDI4NiA4LjAxMzAySDMyLjAyNlYxMi4wMTU2SDM2LjAyODZWOC4wMTMwMlpNNDAuMDMxMiA4LjAxMzAySDQ0LjAzMzlWMTIuMDE1Nkg0MC4wMzEyVjguMDEzMDJaTTE2LjAxNTYgMTYuMDE4Mkg4LjAxMDQyVjIwLjAyMDhIMTYuMDE1NlYxNi4wMTgyWk0yMC4wMTgyIDE2LjAxODJIMjQuMDIwOFYyMC4wMjA4SDIwLjAxODJWMTYuMDE4MlpNMzIuMDI2IDE2LjAxODJIMjguMDIzNFYyMC4wMjA4SDMyLjAyNlYxNi4wMTgyWk00NC4wMzM5IDE2LjAxODJWMjAuMDIwOEgzNi4wMjg2VjE2LjAxODJINDQuMDMzOVpNMTIuMDEzIDI0LjAyMzRIOC4wMTA0MlYyOC4wMjZIMTIuMDEzVjI0LjAyMzRaTTE2LjAxNTYgMjQuMDIzNEgzNi4wMjg2VjI4LjAyNkgxNi4wMTU2VjI0LjAyMzRaTTQ0LjAzMzkgMjQuMDIzNEg0MC4wMzEyVjI4LjAyNkg0NC4wMzM5VjI0LjAyMzRaIiBmaWxsPSIjNDI0MjQyIi8+CjwvZz4KPGRlZnM+CjxjbGlwUGF0aCBpZD0iY2xpcDAiPgo8cmVjdCB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIGZpbGw9IndoaXRlIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg==) 50% no-repeat;border:4px solid #f6f6f6;border-radius:4px;width:58px;min-width:0;height:36px;min-height:0;margin:0;padding:0;position:absolute;overflow:hidden}.monaco-editor.vs-dark .iPadShowKeyboard{background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCA1MyAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwKSI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNNDguMDM2NCA0LjAxMDQySDQuMDA3NzlMNC4wMDc3OSAzMi4wMjg2SDQ4LjAzNjRWNC4wMTA0MlpNNC4wMDc3OSAwLjAwNzgxMjVDMS43OTcyMSAwLjAwNzgxMjUgMC4wMDUxODc5OSAxLjc5OTg0IDAuMDA1MTg3OTkgNC4wMTA0MlYzMi4wMjg2QzAuMDA1MTg3OTkgMzQuMjM5MiAxLjc5NzIxIDM2LjAzMTIgNC4wMDc3OSAzNi4wMzEySDQ4LjAzNjRDNTAuMjQ3IDM2LjAzMTIgNTIuMDM5IDM0LjIzOTIgNTIuMDM5IDMyLjAyODZWNC4wMTA0MkM1Mi4wMzkgMS43OTk4NCA1MC4yNDcgMC4wMDc4MTI1IDQ4LjAzNjQgMC4wMDc4MTI1SDQuMDA3NzlaTTguMDEwNDIgOC4wMTMwMkgxMi4wMTNWMTIuMDE1Nkg4LjAxMDQyVjguMDEzMDJaTTIwLjAxODIgOC4wMTMwMkgxNi4wMTU2VjEyLjAxNTZIMjAuMDE4MlY4LjAxMzAyWk0yNC4wMjA4IDguMDEzMDJIMjguMDIzNFYxMi4wMTU2SDI0LjAyMDhWOC4wMTMwMlpNMzYuMDI4NiA4LjAxMzAySDMyLjAyNlYxMi4wMTU2SDM2LjAyODZWOC4wMTMwMlpNNDAuMDMxMiA4LjAxMzAySDQ0LjAzMzlWMTIuMDE1Nkg0MC4wMzEyVjguMDEzMDJaTTE2LjAxNTYgMTYuMDE4Mkg4LjAxMDQyVjIwLjAyMDhIMTYuMDE1NlYxNi4wMTgyWk0yMC4wMTgyIDE2LjAxODJIMjQuMDIwOFYyMC4wMjA4SDIwLjAxODJWMTYuMDE4MlpNMzIuMDI2IDE2LjAxODJIMjguMDIzNFYyMC4wMjA4SDMyLjAyNlYxNi4wMTgyWk00NC4wMzM5IDE2LjAxODJWMjAuMDIwOEgzNi4wMjg2VjE2LjAxODJINDQuMDMzOVpNMTIuMDEzIDI0LjAyMzRIOC4wMTA0MlYyOC4wMjZIMTIuMDEzVjI0LjAyMzRaTTE2LjAxNTYgMjQuMDIzNEgzNi4wMjg2VjI4LjAyNkgxNi4wMTU2VjI0LjAyMzRaTTQ0LjAzMzkgMjQuMDIzNEg0MC4wMzEyVjI4LjAyNkg0NC4wMzM5VjI0LjAyMzRaIiBmaWxsPSIjQzVDNUM1Ii8+CjwvZz4KPGRlZnM+CjxjbGlwUGF0aCBpZD0iY2xpcDAiPgo8cmVjdCB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIGZpbGw9IndoaXRlIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg==) 50% no-repeat;border:4px solid #252526}.monaco-editor .tokens-inspect-widget{z-index:50;user-select:text;color:var(--vscode-editorHoverWidget-foreground);background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border);padding:10px}.monaco-editor.hc-black .tokens-inspect-widget,.monaco-editor.hc-light .tokens-inspect-widget{border-width:2px}.monaco-editor .tokens-inspect-widget .tokens-inspect-separator{background-color:var(--vscode-editorHoverWidget-border);border:0;height:1px}.monaco-editor .tokens-inspect-widget .tm-token{font-family:var(--monaco-monospace-font)}.monaco-editor .tokens-inspect-widget .tm-token-length{float:right;font-size:60%;font-weight:400}.monaco-editor .tokens-inspect-widget .tm-metadata-table{width:100%}.monaco-editor .tokens-inspect-widget .tm-metadata-value{font-family:var(--monaco-monospace-font);text-align:right}.monaco-editor .tokens-inspect-widget .tm-token-type{font-family:var(--monaco-monospace-font)}.monaco-editor{--monaco-monospace-font:"SF Mono", Monaco, Menlo, Consolas, "Ubuntu Mono", "Liberation Mono", "DejaVu Sans Mono", "Courier New", monospace;font-family:-apple-system,BlinkMacSystemFont,Segoe WPC,Segoe UI,HelveticaNeue-Light,system-ui,Ubuntu,Droid Sans,sans-serif}.monaco-menu .monaco-action-bar.vertical .action-item .action-menu-item:focus .action-label,.monaco-editor.vs-dark .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label,.monaco-editor.hc-black .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label,.monaco-editor.hc-light .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label{stroke-width:1.2px}.monaco-hover p{margin:0}.monaco-aria-container{clip:rect(1px, 1px, 1px, 1px);clip-path:inset(50%);width:1px;height:1px;margin:-1px;padding:0;top:0;overflow:hidden;position:absolute!important}.monaco-editor .synthetic-focus,.monaco-diff-editor .synthetic-focus,.monaco-editor [tabindex="0"]:focus,.monaco-diff-editor [tabindex="0"]:focus,.monaco-editor [tabindex="-1"]:focus,.monaco-diff-editor [tabindex="-1"]:focus,.monaco-editor button:focus,.monaco-diff-editor button:focus,.monaco-editor input[type=button]:focus,.monaco-diff-editor input[type=button]:focus,.monaco-editor input[type=checkbox]:focus,.monaco-diff-editor input[type=checkbox]:focus,.monaco-editor input[type=search]:focus,.monaco-diff-editor input[type=search]:focus,.monaco-editor input[type=text]:focus,.monaco-diff-editor input[type=text]:focus,.monaco-editor select:focus,.monaco-diff-editor select:focus,.monaco-editor textarea:focus,.monaco-diff-editor textarea:focus{outline-offset:-1px;outline-width:1px;outline-style:solid;outline-color:var(--vscode-focusBorder);opacity:1}.monaco-hover.workbench-hover{z-index:40;background:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border);max-width:700px;color:var(--vscode-editorHoverWidget-foreground);box-shadow:0 2px 8px var(--vscode-widget-shadow);border-radius:5px;font-size:13px;line-height:19px;position:relative;overflow:hidden}.monaco-hover.workbench-hover .monaco-action-bar .action-item .codicon{width:13px;height:13px}.monaco-hover.workbench-hover hr{border-bottom:none}.monaco-hover.workbench-hover.compact{font-size:12px}.monaco-hover.workbench-hover.compact .monaco-action-bar .action-item .codicon{width:12px;height:12px}.monaco-hover.workbench-hover.compact .hover-contents{padding:2px 8px}.workbench-hover-container.locked .monaco-hover.workbench-hover{outline:1px solid var(--vscode-editorHoverWidget-border)}.workbench-hover-container:focus-within.locked .monaco-hover.workbench-hover{outline-color:var(--vscode-focusBorder)}.workbench-hover-pointer{z-index:41;pointer-events:none;position:absolute}.workbench-hover-pointer:after{content:"";background-color:var(--vscode-editorHoverWidget-background);border-right:1px solid var(--vscode-editorHoverWidget-border);border-bottom:1px solid var(--vscode-editorHoverWidget-border);width:5px;height:5px;position:absolute}.workbench-hover-container:not(:focus-within).locked .workbench-hover-pointer:after{border-bottom-width:2px;border-right-width:2px;width:4px;height:4px}.workbench-hover-container:focus-within .workbench-hover-pointer:after{border-right:1px solid var(--vscode-focusBorder);border-bottom:1px solid var(--vscode-focusBorder)}.workbench-hover-pointer.left{left:-3px}.workbench-hover-pointer.right{right:3px}.workbench-hover-pointer.top{top:-3px}.workbench-hover-pointer.bottom{bottom:3px}.workbench-hover-pointer.left:after{transform:rotate(135deg)}.workbench-hover-pointer.right:after{transform:rotate(315deg)}.workbench-hover-pointer.top:after{transform:rotate(225deg)}.workbench-hover-pointer.bottom:after{transform:rotate(45deg)}.monaco-hover.workbench-hover a{color:var(--vscode-textLink-foreground)}.monaco-hover.workbench-hover a:focus{outline-offset:-1px;outline:1px solid;outline-color:var(--vscode-focusBorder);text-decoration:underline}.monaco-hover.workbench-hover a.codicon:focus,.monaco-hover.workbench-hover a.monaco-button:focus{text-decoration:none}.monaco-hover.workbench-hover a:hover,.monaco-hover.workbench-hover a:active{color:var(--vscode-textLink-activeForeground)}.monaco-hover.workbench-hover code{background:var(--vscode-textCodeBlock-background)}.monaco-hover.workbench-hover .hover-row .actions{background:var(--vscode-editorHoverWidget-statusBarBackground)}.monaco-hover.workbench-hover.right-aligned{left:1px}.monaco-hover.workbench-hover.right-aligned .hover-row.status-bar .actions{flex-direction:row-reverse}.monaco-hover.workbench-hover.right-aligned .hover-row.status-bar .actions .action-container{margin-left:16px;margin-right:0}.context-view{position:absolute}.context-view.fixed{all:initial;color:inherit;font-family:inherit;font-size:13px;position:fixed}.quick-input-widget{font-size:13px}.quick-input-widget .monaco-highlighted-label .highlight,.quick-input-widget .monaco-highlighted-label .highlight{color:#0066bf}.vs .quick-input-widget .monaco-list-row.focused .monaco-highlighted-label .highlight,.vs .quick-input-widget .monaco-list-row.focused .monaco-highlighted-label .highlight{color:#9dddff}.vs-dark .quick-input-widget .monaco-highlighted-label .highlight,.vs-dark .quick-input-widget .monaco-highlighted-label .highlight{color:#0097fb}.hc-black .quick-input-widget .monaco-highlighted-label .highlight,.hc-black .quick-input-widget .monaco-highlighted-label .highlight{color:#f38518}.hc-light .quick-input-widget .monaco-highlighted-label .highlight,.hc-light .quick-input-widget .monaco-highlighted-label .highlight{color:#0f4a85}.monaco-keybinding>.monaco-keybinding-key{color:#555;background-color:rgba(221,221,221,.4);border:1px solid rgba(204,204,204,.4);border-bottom-color:rgba(187,187,187,.4);box-shadow:inset 0 -1px rgba(187,187,187,.4)}.hc-black .monaco-keybinding>.monaco-keybinding-key{box-shadow:none;color:#fff;background-color:transparent;border:1px solid #6fc3df}.hc-light .monaco-keybinding>.monaco-keybinding-key{box-shadow:none;color:#292929;background-color:transparent;border:1px solid #0f4a85}.vs-dark .monaco-keybinding>.monaco-keybinding-key{color:#ccc;background-color:rgba(128,128,128,.17);border:1px solid rgba(51,51,51,.6);border-bottom-color:rgba(68,68,68,.6);box-shadow:inset 0 -1px rgba(68,68,68,.6)}.quick-input-widget{z-index:2550;-webkit-app-region:no-drag;border-radius:6px;width:600px;position:absolute;left:50%}.quick-input-titlebar{cursor:grab;border-top-left-radius:5px;border-top-right-radius:5px;align-items:center;display:flex}.quick-input-left-action-bar{flex:1;margin-left:4px;display:flex}.quick-input-inline-action-bar>.actions-container>.action-item:first-child{margin-left:5px}.quick-input-inline-action-bar>.actions-container>.action-item{margin-top:2px}.quick-input-title{cursor:grab;text-align:center;text-overflow:ellipsis;padding:3px 0;overflow:hidden}.quick-input-right-action-bar{flex:1;margin-right:4px;display:flex}.quick-input-right-action-bar>.actions-container{justify-content:flex-end}.quick-input-right-action-bar>.actions-container>.action-item{margin-left:4px}.quick-input-titlebar .monaco-action-bar .action-label.codicon{background-position:50%;background-repeat:no-repeat;padding:2px}.quick-input-description{margin:6px 6px 6px 11px}.quick-input-header .quick-input-description{flex:1;margin:4px 2px}.quick-input-header{cursor:grab;padding:6px 6px 2px;display:flex}.quick-input-widget.hidden-input .quick-input-header{margin-bottom:0;padding:0}.quick-input-and-message{flex-direction:column;flex-grow:1;min-width:0;display:flex;position:relative}.quick-input-check-all{align-self:center;margin:0}.quick-input-widget .quick-input-header .monaco-checkbox{margin-top:6px}.quick-input-filter{flex-grow:1;display:flex;position:relative}.quick-input-box{flex-grow:1}.quick-input-widget.show-checkboxes .quick-input-box,.quick-input-widget.show-checkboxes .quick-input-message{margin-left:5px}.quick-input-visible-count{position:absolute;left:-10000px}.quick-input-count{align-self:center;align-items:center;display:flex;position:absolute;right:4px}.quick-input-count .monaco-count-badge{vertical-align:middle;border-radius:2px;min-height:auto;padding:2px 4px;line-height:normal}.quick-input-action{margin-left:6px}.quick-input-action .monaco-text-button{align-items:center;height:25px;padding:0 6px;font-size:11px;display:flex}.quick-input-message{overflow-wrap:break-word;margin-top:-1px;padding:5px}.quick-input-message>.codicon{vertical-align:text-bottom;margin:0 .2em}.quick-input-message a{color:inherit}.quick-input-progress.monaco-progress-container{position:relative}.quick-input-list{line-height:22px}.quick-input-widget.hidden-input .quick-input-list{margin-top:4px;padding-bottom:4px}.quick-input-list .monaco-list{max-height:440px;padding-bottom:5px;overflow:hidden}.quick-input-list .monaco-scrollable-element{padding:0 6px}.quick-input-list .quick-input-list-entry{box-sizing:border-box;padding:0 6px;display:flex;overflow:hidden}.quick-input-list .quick-input-list-entry.quick-input-list-separator-border{border-top-style:solid;border-top-width:1px}.quick-input-list .monaco-list-row{border-radius:3px}.quick-input-list .monaco-list-row[data-index="0"] .quick-input-list-entry.quick-input-list-separator-border{border-top-style:none}.quick-input-list .quick-input-list-label{flex:1;height:100%;display:flex;overflow:hidden}.quick-input-widget .monaco-checkbox{margin-right:0}.quick-input-widget .quick-input-list .monaco-checkbox,.quick-input-widget .quick-input-tree .monaco-checkbox{margin-top:4px}.quick-input-list .quick-input-list-icon{background-position:0;background-repeat:no-repeat;background-size:16px;justify-content:center;align-items:center;width:16px;height:22px;padding-right:6px;display:flex}.quick-input-list .quick-input-list-rows{text-overflow:ellipsis;flex-direction:column;flex:1;height:100%;margin-left:5px;display:flex;overflow:hidden}.quick-input-list .quick-input-list-rows>.quick-input-list-row{align-items:center;display:flex}.quick-input-list .quick-input-list-rows>.quick-input-list-row .monaco-icon-label,.quick-input-list .quick-input-list-rows>.quick-input-list-row .monaco-icon-label .monaco-icon-label-container>.monaco-icon-name-container{flex:1}.quick-input-list .quick-input-list-rows>.quick-input-list-row .codicon[class*=codicon-]{vertical-align:text-bottom}.quick-input-list .quick-input-list-rows .monaco-highlighted-label>span{opacity:1}.quick-input-list .quick-input-list-entry .quick-input-list-entry-keybinding{margin-right:8px}.quick-input-list .quick-input-list-label-meta{opacity:.7;text-overflow:ellipsis;line-height:normal;overflow:hidden}.quick-input-list .monaco-list .monaco-list-row .monaco-highlighted-label .highlight{background-color:unset;font-weight:700;color:var(--vscode-list-highlightForeground)!important}.quick-input-list .monaco-list .monaco-list-row.focused .monaco-highlighted-label .highlight{color:var(--vscode-list-focusHighlightForeground)!important}.quick-input-list .quick-input-list-entry .quick-input-list-separator{margin-right:4px}.quick-input-list .quick-input-list-entry-action-bar{flex:0;display:flex;overflow:visible}.quick-input-list .quick-input-list-entry-action-bar .action-label{display:none}.quick-input-list .quick-input-list-entry-action-bar .action-label.codicon{margin-right:4px;padding:2px}.quick-input-list .quick-input-list-entry-action-bar{margin-top:1px;margin-right:4px}.quick-input-list .quick-input-list-entry .quick-input-list-entry-action-bar .action-label.always-visible,.quick-input-list .quick-input-list-entry:hover .quick-input-list-entry-action-bar .action-label,.quick-input-list .quick-input-list-entry.focus-inside .quick-input-list-entry-action-bar .action-label,.quick-input-list .monaco-list-row.focused .quick-input-list-entry-action-bar .action-label,.quick-input-list .monaco-list-row.passive-focused .quick-input-list-entry-action-bar .action-label{display:flex}.quick-input-list>.monaco-list:focus .monaco-list-row.focused{outline-offset:-1px;outline:1px solid var(--vscode-list-focusOutline)!important}.quick-input-list>.monaco-list:focus .monaco-list-row.focused .quick-input-list-entry.quick-input-list-separator-border{border-color:transparent}.quick-input-list .monaco-list-row.focused .monaco-keybinding-key,.quick-input-list .monaco-list-row.focused .quick-input-list-entry .quick-input-list-separator{color:inherit}.quick-input-list .monaco-list-row.focused .monaco-keybinding-key{background:0 0}.quick-input-list .quick-input-list-separator-as-item{padding:4px 6px;font-size:12px}.quick-input-list .quick-input-list-separator-as-item .label-name{font-weight:600}.quick-input-list .quick-input-list-separator-as-item .label-description{opacity:1!important}.quick-input-list .monaco-tree-sticky-row .quick-input-list-entry.quick-input-list-separator-as-item.quick-input-list-separator-border{border-top-style:none}.quick-input-list .monaco-tree-sticky-row{padding:0 5px}.quick-input-list .monaco-tl-twistie{display:none!important}.quick-input-tree .monaco-list{max-height:440px;padding-bottom:5px;overflow:hidden}.quick-input-tree .quick-input-tree-entry{box-sizing:border-box;padding:0 6px;display:flex;overflow:hidden}.quick-input-tree .quick-input-tree-label{flex:1;height:100%;display:flex;overflow:hidden}.quick-input-tree .quick-input-tree-icon{background-position:0;background-repeat:no-repeat;background-size:16px;justify-content:center;align-items:center;width:16px;height:22px;padding-right:6px;display:flex}.quick-input-tree .quick-input-tree-rows{text-overflow:ellipsis;flex-direction:column;flex:1;height:100%;margin-left:5px;display:flex;overflow:hidden}.quick-input-tree .quick-input-tree-rows>.quick-input-tree-row{align-items:center;display:flex}.quick-input-tree .quick-input-tree-rows>.quick-input-tree-row .monaco-icon-label,.quick-input-tree .quick-input-tree-rows>.quick-input-tree-row .monaco-icon-label .monaco-icon-label-container>.monaco-icon-name-container{flex:1}.quick-input-tree .quick-input-tree-rows>.quick-input-tree-row .codicon[class*=codicon-]{vertical-align:text-bottom}.quick-input-tree .quick-input-tree-rows .monaco-highlighted-label>span{opacity:1}.quick-input-tree .quick-input-tree-entry-action-bar{flex:0;display:flex;overflow:visible}.quick-input-tree .quick-input-tree-entry-action-bar .action-label{display:none}.quick-input-tree .quick-input-tree-entry-action-bar .action-label.codicon{margin-right:4px;padding:2px}.quick-input-tree .quick-input-tree-entry-action-bar{margin-top:1px;margin-right:4px}.quick-input-tree .quick-input-tree-entry .quick-input-tree-entry-action-bar .action-label.always-visible,.quick-input-tree .quick-input-tree-entry:hover .quick-input-tree-entry-action-bar .action-label,.quick-input-tree .quick-input-tree-entry.focus-inside .quick-input-tree-entry-action-bar .action-label,.quick-input-tree .monaco-list-row.focused .quick-input-tree-entry-action-bar .action-label,.quick-input-tree .monaco-list-row.passive-focused .quick-input-tree-entry-action-bar .action-label{display:flex}.quick-input-tree>.monaco-list:focus .monaco-list-row.focused{outline-offset:-1px;outline:1px solid var(--vscode-list-focusOutline)!important}.monaco-progress-container{width:100%;height:2px;overflow:hidden}.monaco-progress-container .progress-bit{width:2%;height:2px;display:none;position:absolute;left:0}.monaco-progress-container.active .progress-bit{display:inherit}.monaco-progress-container.discrete .progress-bit{transition:width .1s linear;left:0}.monaco-progress-container.discrete.done .progress-bit{width:100%}.monaco-progress-container.infinite .progress-bit{animation-name:progress;animation-duration:4s;animation-timing-function:linear;animation-iteration-count:infinite;transform:translate(0,0)}.monaco-progress-container.infinite.infinite-long-running .progress-bit{animation-timing-function:steps(100,end)}@keyframes progress{0%{transform:translate(0%)scaleX(1)}50%{transform:translate(2500%)scaleX(3)}to{transform:translate(4900%)scaleX(1)}}.monaco-editor .rendered-markdown kbd{background-color:var(--vscode-keybindingLabel-background);color:var(--vscode-keybindingLabel-foreground);border-style:solid;border-width:1px;border-color:var(--vscode-keybindingLabel-border);border-bottom-color:var(--vscode-keybindingLabel-bottomBorder);box-shadow:inset 0 -1px 0 var(--vscode-widget-shadow);vertical-align:middle;border-radius:3px;padding:1px 3px}.rendered-markdown li:has(input[type=checkbox]){list-style-type:none}.monaco-component.multiDiffEditor{background:var(--vscode-multiDiffEditor-background);width:100%;height:100%;position:relative;overflow-y:hidden}.monaco-component.multiDiffEditor>div{width:100%;height:100%;position:absolute;top:0;left:0}.monaco-component.multiDiffEditor>div.placeholder{visibility:hidden}.monaco-component.multiDiffEditor>div.placeholder.visible{visibility:visible}.monaco-component.multiDiffEditor>div.placeholder{place-content:center;place-items:center;display:grid}.monaco-component.multiDiffEditor .active{--vscode-multiDiffEditor-border:var(--vscode-focusBorder)}.monaco-component.multiDiffEditor .multiDiffEntry{flex-direction:column;flex:1;display:flex;overflow:hidden}.monaco-component.multiDiffEditor .multiDiffEntry .collapse-button{cursor:pointer;margin:0 5px}.monaco-component.multiDiffEditor .multiDiffEntry .collapse-button a{display:block}.monaco-component.multiDiffEditor .multiDiffEntry .header{z-index:1000;background:var(--vscode-editor-background)}.monaco-component.multiDiffEditor .multiDiffEntry .header:not(.collapsed) .header-content{border-bottom:1px solid var(--vscode-sideBarSectionHeader-border)}.monaco-component.multiDiffEditor .multiDiffEntry .header .header-content{border-top:1px solid var(--vscode-multiDiffEditor-border);color:var(--vscode-foreground);background:var(--vscode-multiDiffEditor-headerBackground);align-items:center;margin:8px 0 0;padding:4px 5px;display:flex}.monaco-component.multiDiffEditor .multiDiffEntry .header .header-content.shadow{box-shadow:var(--vscode-scrollbar-shadow) 0px 6px 6px -6px}.monaco-component.multiDiffEditor .multiDiffEntry .header .header-content .file-path{flex:1;min-width:0;display:flex}.monaco-component.multiDiffEditor .multiDiffEntry .header .header-content .file-path .title{font-size:14px;line-height:22px}.monaco-component.multiDiffEditor .multiDiffEntry .header .header-content .file-path .title.original{text-overflow:ellipsis;flex:1;min-width:0}.monaco-component.multiDiffEditor .multiDiffEntry .header .header-content .file-path .status{opacity:.75;margin:0 10px;font-weight:600;line-height:22px}.monaco-component.multiDiffEditor .multiDiffEntry .header .header-content .actions{padding:0 8px}.monaco-component.multiDiffEditor .multiDiffEntry .editorParent{border-bottom:1px solid var(--vscode-multiDiffEditor-border);flex-direction:column;flex:1;display:flex;overflow:hidden}.monaco-component.multiDiffEditor .multiDiffEntry .editorContainer{flex:1}\n/*$vite$:1*/',document.head.appendChild(o),s="pseudo"===Wae()||"undefined"!=typeof document&&document.location&&"string"==typeof document.location.hash&&document.location.hash.indexOf("pseudo=true")>=0,r=window,(a=l=class{constructor(){this.mapWindowIdToZoomFactor=new Map}getZoomFactor(e){return this.mapWindowIdToZoomFactor.get(this.getWindowId(e))??1}getWindowId(e){return e.vscodeWindowId}}).INSTANCE=new a,d=navigator.userAgent,c=d.indexOf("Firefox")>=0,h=d.indexOf("AppleWebKit")>=0,u=d.indexOf("Chrome")>=0,g=!u&&d.indexOf("Safari")>=0,p=!u&&!g&&h,d.indexOf("Electron/"),m=d.indexOf("Android")>=0,f=!1,"function"==typeof r.matchMedia){const e=r.matchMedia("(display-mode: standalone) or (display-mode: window-controls-overlay)"),t=r.matchMedia("(display-mode: fullscreen)");f=e.matches,Uae(r,e,({matches:e})=>{f&&t.matches||(f=e)})}if(_=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{if(e.stack){if(C.isErrorNoTelemetry(e))throw new C(e.message+"\n\n"+e.stack);throw new Error(e.message+"\n\n"+e.stack)}throw e},0)}}emit(e){this.listeners.forEach(t=>{t(e)})}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}},b="Canceled",v=class extends Error{constructor(){super(b),this.name=this.message}},w=class extends Error{constructor(e){super("NotSupported"),e&&(this.message=e)}},C=class e extends Error{constructor(e){super(e),this.name="CodeExpectedError"}static fromError(t){if(t instanceof e)return t;const i=new e;return i.message=t.message,i.stack=t.stack,i}static isErrorNoTelemetry(e){return"CodeExpectedError"===e.name}},y=class e extends Error{constructor(t){super(t||"An unexpected bug occurred."),Object.setPrototypeOf(this,e.prototype)}},S=!1,x=!1,k=!1,L=!1,D=!1,I=!1,N=!1,E="en",M=void 0,T=globalThis,R=void 0,void 0!==T.vscode&&void 0!==T.vscode.process?R=T.vscode.process:"undefined"!=typeof process&&"string"==typeof process?.versions?.node&&(R=process),O="string"==typeof R?.versions?.electron&&"renderer"===R?.type,"object"==typeof R){S="win32"===R.platform,x="darwin"===R.platform,(k="linux"===R.platform)&&R.env.SNAP&&R.env.SNAP_REVISION,R.env.CI||R.env.BUILD_ARTIFACTSTAGINGDIRECTORY||R.env.GITHUB_WORKSPACE,E="en";const e=R.env.VSCODE_NLS_CONFIG;if(e)try{const t=JSON.parse(e);t.userLocale,t.osLocale,E=t.resolvedLanguage||"en",t.languagePack}catch(Fae){}L=!0}else"object"!=typeof navigator||O?console.error("Unable to resolve platform."):(M=navigator.userAgent,S=M.indexOf("Windows")>=0,x=M.indexOf("Macintosh")>=0,I=(M.indexOf("Macintosh")>=0||M.indexOf("iPad")>=0||M.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,k=M.indexOf("Linux")>=0,N=M?.indexOf("Mobi")>=0,D=!0,E=Wae()||"en",navigator.language.toLowerCase());A=0,x?A=1:S?A=3:k&&(A=2),P=S,F=x,W=k,B=L,V=D,H=D&&"function"==typeof T.importScripts,z=H?T.origin:void 0,U=I,K=N,q=A,j=M,$=E,G="function"==typeof T.postMessage&&!T.importScripts,Z=(()=>{if(G){const e=[];T.addEventListener("message",t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let i=0,n=e.length;i{const n=++t;e.push({id:n,callback:i}),T.postMessage({vscodeScheduleAsyncWork:n},"*")}}return e=>setTimeout(e)})(),Y=x||I?2:S?1:3,Q=!0,X=!1,J=!!(j&&j.indexOf("Chrome")>=0),ee=!!(j&&j.indexOf("Firefox")>=0),te=!!(!J&&j&&j.indexOf("Safari")>=0),ie=!!(j&&j.indexOf("Edg/")>=0),ne=!!(j&&j.indexOf("Android")>=0),oe={clipboard:{writeText:B||document.queryCommandSupported&&document.queryCommandSupported("copy")||!!(navigator&&navigator.clipboard&&navigator.clipboard.writeText),readText:B||!!(navigator&&navigator.clipboard&&navigator.clipboard.readText)},pointerEvents:r.PointerEvent&&("ontouchstart"in r||navigator.maxTouchPoints>0)},re=new(se=class{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}}),ae=new se,le=new se,de=new Array(230),ce=Object.create(null),he=Object.create(null),ue=[];for(let e=0;e<=193;e++)ue[e]=-1;if(function(){const e="",t=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN",e,e],[1,1,"Hyper",0,e,0,e,e,e],[1,2,"Super",0,e,0,e,e,e],[1,3,"Fn",0,e,0,e,e,e],[1,4,"FnLock",0,e,0,e,e,e],[1,5,"Suspend",0,e,0,e,e,e],[1,6,"Resume",0,e,0,e,e,e],[1,7,"Turbo",0,e,0,e,e,e],[1,8,"Sleep",0,e,0,"VK_SLEEP",e,e],[1,9,"WakeUp",0,e,0,e,e,e],[0,10,"KeyA",31,"A",65,"VK_A",e,e],[0,11,"KeyB",32,"B",66,"VK_B",e,e],[0,12,"KeyC",33,"C",67,"VK_C",e,e],[0,13,"KeyD",34,"D",68,"VK_D",e,e],[0,14,"KeyE",35,"E",69,"VK_E",e,e],[0,15,"KeyF",36,"F",70,"VK_F",e,e],[0,16,"KeyG",37,"G",71,"VK_G",e,e],[0,17,"KeyH",38,"H",72,"VK_H",e,e],[0,18,"KeyI",39,"I",73,"VK_I",e,e],[0,19,"KeyJ",40,"J",74,"VK_J",e,e],[0,20,"KeyK",41,"K",75,"VK_K",e,e],[0,21,"KeyL",42,"L",76,"VK_L",e,e],[0,22,"KeyM",43,"M",77,"VK_M",e,e],[0,23,"KeyN",44,"N",78,"VK_N",e,e],[0,24,"KeyO",45,"O",79,"VK_O",e,e],[0,25,"KeyP",46,"P",80,"VK_P",e,e],[0,26,"KeyQ",47,"Q",81,"VK_Q",e,e],[0,27,"KeyR",48,"R",82,"VK_R",e,e],[0,28,"KeyS",49,"S",83,"VK_S",e,e],[0,29,"KeyT",50,"T",84,"VK_T",e,e],[0,30,"KeyU",51,"U",85,"VK_U",e,e],[0,31,"KeyV",52,"V",86,"VK_V",e,e],[0,32,"KeyW",53,"W",87,"VK_W",e,e],[0,33,"KeyX",54,"X",88,"VK_X",e,e],[0,34,"KeyY",55,"Y",89,"VK_Y",e,e],[0,35,"KeyZ",56,"Z",90,"VK_Z",e,e],[0,36,"Digit1",22,"1",49,"VK_1",e,e],[0,37,"Digit2",23,"2",50,"VK_2",e,e],[0,38,"Digit3",24,"3",51,"VK_3",e,e],[0,39,"Digit4",25,"4",52,"VK_4",e,e],[0,40,"Digit5",26,"5",53,"VK_5",e,e],[0,41,"Digit6",27,"6",54,"VK_6",e,e],[0,42,"Digit7",28,"7",55,"VK_7",e,e],[0,43,"Digit8",29,"8",56,"VK_8",e,e],[0,44,"Digit9",30,"9",57,"VK_9",e,e],[0,45,"Digit0",21,"0",48,"VK_0",e,e],[1,46,"Enter",3,"Enter",13,"VK_RETURN",e,e],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE",e,e],[1,48,"Backspace",1,"Backspace",8,"VK_BACK",e,e],[1,49,"Tab",2,"Tab",9,"VK_TAB",e,e],[1,50,"Space",10,"Space",32,"VK_SPACE",e,e],[0,51,"Minus",88,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[0,52,"Equal",86,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[0,53,"BracketLeft",92,"[",219,"VK_OEM_4","[","OEM_4"],[0,54,"BracketRight",94,"]",221,"VK_OEM_6","]","OEM_6"],[0,55,"Backslash",93,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,56,"IntlHash",0,e,0,e,e,e],[0,57,"Semicolon",85,";",186,"VK_OEM_1",";","OEM_1"],[0,58,"Quote",95,"'",222,"VK_OEM_7","'","OEM_7"],[0,59,"Backquote",91,"`",192,"VK_OEM_3","`","OEM_3"],[0,60,"Comma",87,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[0,61,"Period",89,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[0,62,"Slash",90,"/",191,"VK_OEM_2","/","OEM_2"],[1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",e,e],[1,64,"F1",59,"F1",112,"VK_F1",e,e],[1,65,"F2",60,"F2",113,"VK_F2",e,e],[1,66,"F3",61,"F3",114,"VK_F3",e,e],[1,67,"F4",62,"F4",115,"VK_F4",e,e],[1,68,"F5",63,"F5",116,"VK_F5",e,e],[1,69,"F6",64,"F6",117,"VK_F6",e,e],[1,70,"F7",65,"F7",118,"VK_F7",e,e],[1,71,"F8",66,"F8",119,"VK_F8",e,e],[1,72,"F9",67,"F9",120,"VK_F9",e,e],[1,73,"F10",68,"F10",121,"VK_F10",e,e],[1,74,"F11",69,"F11",122,"VK_F11",e,e],[1,75,"F12",70,"F12",123,"VK_F12",e,e],[1,76,"PrintScreen",0,e,0,e,e,e],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL",e,e],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",e,e],[1,79,"Insert",19,"Insert",45,"VK_INSERT",e,e],[1,80,"Home",14,"Home",36,"VK_HOME",e,e],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",e,e],[1,82,"Delete",20,"Delete",46,"VK_DELETE",e,e],[1,83,"End",13,"End",35,"VK_END",e,e],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT",e,e],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",e],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",e],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",e],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",e],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK",e,e],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE",e,e],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY",e,e],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT",e,e],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD",e,e],[1,94,"NumpadEnter",3,e,0,e,e,e],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1",e,e],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2",e,e],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3",e,e],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4",e,e],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5",e,e],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6",e,e],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7",e,e],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8",e,e],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9",e,e],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0",e,e],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL",e,e],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102",e,e],[1,107,"ContextMenu",58,"ContextMenu",93,e,e,e],[1,108,"Power",0,e,0,e,e,e],[1,109,"NumpadEqual",0,e,0,e,e,e],[1,110,"F13",71,"F13",124,"VK_F13",e,e],[1,111,"F14",72,"F14",125,"VK_F14",e,e],[1,112,"F15",73,"F15",126,"VK_F15",e,e],[1,113,"F16",74,"F16",127,"VK_F16",e,e],[1,114,"F17",75,"F17",128,"VK_F17",e,e],[1,115,"F18",76,"F18",129,"VK_F18",e,e],[1,116,"F19",77,"F19",130,"VK_F19",e,e],[1,117,"F20",78,"F20",131,"VK_F20",e,e],[1,118,"F21",79,"F21",132,"VK_F21",e,e],[1,119,"F22",80,"F22",133,"VK_F22",e,e],[1,120,"F23",81,"F23",134,"VK_F23",e,e],[1,121,"F24",82,"F24",135,"VK_F24",e,e],[1,122,"Open",0,e,0,e,e,e],[1,123,"Help",0,e,0,e,e,e],[1,124,"Select",0,e,0,e,e,e],[1,125,"Again",0,e,0,e,e,e],[1,126,"Undo",0,e,0,e,e,e],[1,127,"Cut",0,e,0,e,e,e],[1,128,"Copy",0,e,0,e,e,e],[1,129,"Paste",0,e,0,e,e,e],[1,130,"Find",0,e,0,e,e,e],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE",e,e],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP",e,e],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN",e,e],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR",e,e],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1",e,e],[1,136,"KanaMode",0,e,0,e,e,e],[0,137,"IntlYen",0,e,0,e,e,e],[1,138,"Convert",0,e,0,e,e,e],[1,139,"NonConvert",0,e,0,e,e,e],[1,140,"Lang1",0,e,0,e,e,e],[1,141,"Lang2",0,e,0,e,e,e],[1,142,"Lang3",0,e,0,e,e,e],[1,143,"Lang4",0,e,0,e,e,e],[1,144,"Lang5",0,e,0,e,e,e],[1,145,"Abort",0,e,0,e,e,e],[1,146,"Props",0,e,0,e,e,e],[1,147,"NumpadParenLeft",0,e,0,e,e,e],[1,148,"NumpadParenRight",0,e,0,e,e,e],[1,149,"NumpadBackspace",0,e,0,e,e,e],[1,150,"NumpadMemoryStore",0,e,0,e,e,e],[1,151,"NumpadMemoryRecall",0,e,0,e,e,e],[1,152,"NumpadMemoryClear",0,e,0,e,e,e],[1,153,"NumpadMemoryAdd",0,e,0,e,e,e],[1,154,"NumpadMemorySubtract",0,e,0,e,e,e],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR",e,e],[1,156,"NumpadClearEntry",0,e,0,e,e,e],[1,0,e,5,"Ctrl",17,"VK_CONTROL",e,e],[1,0,e,4,"Shift",16,"VK_SHIFT",e,e],[1,0,e,6,"Alt",18,"VK_MENU",e,e],[1,0,e,57,"Meta",91,"VK_COMMAND",e,e],[1,157,"ControlLeft",5,e,0,"VK_LCONTROL",e,e],[1,158,"ShiftLeft",4,e,0,"VK_LSHIFT",e,e],[1,159,"AltLeft",6,e,0,"VK_LMENU",e,e],[1,160,"MetaLeft",57,e,0,"VK_LWIN",e,e],[1,161,"ControlRight",5,e,0,"VK_RCONTROL",e,e],[1,162,"ShiftRight",4,e,0,"VK_RSHIFT",e,e],[1,163,"AltRight",6,e,0,"VK_RMENU",e,e],[1,164,"MetaRight",57,e,0,"VK_RWIN",e,e],[1,165,"BrightnessUp",0,e,0,e,e,e],[1,166,"BrightnessDown",0,e,0,e,e,e],[1,167,"MediaPlay",0,e,0,e,e,e],[1,168,"MediaRecord",0,e,0,e,e,e],[1,169,"MediaFastForward",0,e,0,e,e,e],[1,170,"MediaRewind",0,e,0,e,e,e],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",e,e],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",e,e],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP",e,e],[1,174,"Eject",0,e,0,e,e,e],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",e,e],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",e,e],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",e,e],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",e,e],[1,179,"LaunchApp1",0,e,0,"VK_MEDIA_LAUNCH_APP1",e,e],[1,180,"SelectTask",0,e,0,e,e,e],[1,181,"LaunchScreenSaver",0,e,0,e,e,e],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH",e,e],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME",e,e],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK",e,e],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD",e,e],[1,186,"BrowserStop",0,e,0,"VK_BROWSER_STOP",e,e],[1,187,"BrowserRefresh",0,e,0,"VK_BROWSER_REFRESH",e,e],[1,188,"BrowserFavorites",0,e,0,"VK_BROWSER_FAVORITES",e,e],[1,189,"ZoomToggle",0,e,0,e,e,e],[1,190,"MailReply",0,e,0,e,e,e],[1,191,"MailForward",0,e,0,e,e,e],[1,192,"MailSend",0,e,0,e,e,e],[1,0,e,114,"KeyInComposition",229,e,e,e],[1,0,e,116,"ABNT_C2",194,"VK_ABNT_C2",e,e],[1,0,e,96,"OEM_8",223,"VK_OEM_8",e,e],[1,0,e,0,e,0,"VK_KANA",e,e],[1,0,e,0,e,0,"VK_HANGUL",e,e],[1,0,e,0,e,0,"VK_JUNJA",e,e],[1,0,e,0,e,0,"VK_FINAL",e,e],[1,0,e,0,e,0,"VK_HANJA",e,e],[1,0,e,0,e,0,"VK_KANJI",e,e],[1,0,e,0,e,0,"VK_CONVERT",e,e],[1,0,e,0,e,0,"VK_NONCONVERT",e,e],[1,0,e,0,e,0,"VK_ACCEPT",e,e],[1,0,e,0,e,0,"VK_MODECHANGE",e,e],[1,0,e,0,e,0,"VK_SELECT",e,e],[1,0,e,0,e,0,"VK_PRINT",e,e],[1,0,e,0,e,0,"VK_EXECUTE",e,e],[1,0,e,0,e,0,"VK_SNAPSHOT",e,e],[1,0,e,0,e,0,"VK_HELP",e,e],[1,0,e,0,e,0,"VK_APPS",e,e],[1,0,e,0,e,0,"VK_PROCESSKEY",e,e],[1,0,e,0,e,0,"VK_PACKET",e,e],[1,0,e,0,e,0,"VK_DBE_SBCSCHAR",e,e],[1,0,e,0,e,0,"VK_DBE_DBCSCHAR",e,e],[1,0,e,0,e,0,"VK_ATTN",e,e],[1,0,e,0,e,0,"VK_CRSEL",e,e],[1,0,e,0,e,0,"VK_EXSEL",e,e],[1,0,e,0,e,0,"VK_EREOF",e,e],[1,0,e,0,e,0,"VK_PLAY",e,e],[1,0,e,0,e,0,"VK_ZOOM",e,e],[1,0,e,0,e,0,"VK_NONAME",e,e],[1,0,e,0,e,0,"VK_PA1",e,e],[1,0,e,0,e,0,"VK_OEM_CLEAR",e,e]],i=[],n=[];for(const o of t){const[e,t,s,r,a,l,d,c,h]=o;if(n[t]||(n[t]=!0,ce[s]=t,he[s.toLowerCase()]=t,e&&(ue[t]=r)),!i[r]){if(i[r]=!0,!a)throw new Error(`String representation missing for key code ${r} around scan code ${s}`);re.define(r,a),ae.define(r,c||a),le.define(r,h||c||a)}l&&(de[l]=r)}}(),function(e){e.toString=function(e){return re.keyCodeToStr(e)},e.fromString=function(e){return re.strToKeyCode(e)},e.toUserSettingsUS=function(e){return ae.keyCodeToStr(e)},e.toUserSettingsGeneral=function(e){return le.keyCodeToStr(e)},e.fromUserSettings=function(e){return ae.strToKeyCode(e)||le.strToKeyCode(e)},e.toElectronAccelerator=function(e){if(e>=98&&e<=113)return null;switch(e){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return re.keyCodeToStr(e)}}(ge||(ge={})),pe=class e{constructor(e,t,i,n,o){this.ctrlKey=e,this.shiftKey=t,this.altKey=i,this.metaKey=n,this.keyCode=o}equals(t){return t instanceof e&&this.ctrlKey===t.ctrlKey&&this.shiftKey===t.shiftKey&&this.altKey===t.altKey&&this.metaKey===t.metaKey&&this.keyCode===t.keyCode}isModifierKey(){return 0===this.keyCode||5===this.keyCode||57===this.keyCode||6===this.keyCode||4===this.keyCode}isDuplicateModifierCase(){return this.ctrlKey&&5===this.keyCode||this.shiftKey&&4===this.keyCode||this.altKey&&6===this.keyCode||this.metaKey&&57===this.keyCode}},me=class{constructor(e){if(0===e.length)throw Qae("chords");this.chords=e}},fe=class{constructor(e,t,i,n,o,s){this.ctrlKey=e,this.shiftKey=t,this.altKey=i,this.metaKey=n,this.keyLabel=o,this.keyAriaLabel=s}},_e=class{},be=F?256:2048,ve=F?2048:256,we=class{constructor(e){this._standardKeyboardEventBrand=!0;const t=e;this.browserEvent=t,this.target=t.target,this.ctrlKey=t.ctrlKey,this.shiftKey=t.shiftKey,this.altKey=t.altKey,this.metaKey=t.metaKey,this.altGraphKey=t.getModifierState?.("AltGraph"),this.keyCode=function(e){if(e.charCode){const t=String.fromCharCode(e.charCode).toUpperCase();return ge.fromString(t)}const t=e.keyCode;if(3===t)return 7;if(c)switch(t){case 59:return 85;case 60:if(W)return 97;break;case 61:return 86;case 107:return 109;case 109:return 111;case 173:return 88;case 224:if(F)return 57}else if(h){if(F&&93===t)return 57;if(!F&&92===t)return 57}return de[t]||0}(t),this.code=t.code,this.ctrlKey=this.ctrlKey||5===this.keyCode,this.altKey=this.altKey||6===this.keyCode,this.shiftKey=this.shiftKey||4===this.keyCode,this.metaKey=this.metaKey||57===this.keyCode,this._asKeybinding=this._computeKeybinding(),this._asKeyCodeChord=this._computeKeyCodeChord()}preventDefault(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()}toKeyCodeChord(){return this._asKeyCodeChord}equals(e){return this._asKeybinding===e}_computeKeybinding(){let e=0;5!==this.keyCode&&4!==this.keyCode&&6!==this.keyCode&&57!==this.keyCode&&(e=this.keyCode);let t=0;return this.ctrlKey&&(t|=be),this.altKey&&(t|=512),this.shiftKey&&(t|=1024),this.metaKey&&(t|=ve),t|=e,t}_computeKeyCodeChord(){let e=0;return 5!==this.keyCode&&4!==this.keyCode&&6!==this.keyCode&&57!==this.keyCode&&(e=this.keyCode),new pe(this.ctrlKey,this.shiftKey,this.altKey,this.metaKey,e)}},Ce=new WeakMap,ye=class{static getSameOriginWindowChain(e){let t=Ce.get(e);if(!t){t=[],Ce.set(e,t);let i,n=e;do{i=yle(n),i?t.push({window:new WeakRef(n),iframeElement:n.frameElement||null}):t.push({window:new WeakRef(n),iframeElement:null}),n=i}while(n)}return t.slice(0)}static getPositionOfChildWindowRelativeToAncestorWindow(e,t){if(!t||e===t)return{top:0,left:0};let i=0,n=0;const o=this.getSameOriginWindowChain(e);for(const s of o){const e=s.window.deref();if(i+=e?.scrollY??0,n+=e?.scrollX??0,e===t)break;if(!s.iframeElement)break;const o=s.iframeElement.getBoundingClientRect();i+=o.top,n+=o.left}return{top:i,left:n}}},Se=class{constructor(e,t){this.timestamp=Date.now(),this.browserEvent=t,this.leftButton=0===t.button,this.middleButton=1===t.button,this.rightButton=2===t.button,this.buttons=t.buttons,this.defaultPrevented=t.defaultPrevented,this.target=t.target,this.detail=t.detail||1,"dblclick"===t.type&&(this.detail=2),this.ctrlKey=t.ctrlKey,this.shiftKey=t.shiftKey,this.altKey=t.altKey,this.metaKey=t.metaKey,"number"==typeof t.pageX?(this.posx=t.pageX,this.posy=t.pageY):(this.posx=t.clientX+this.target.ownerDocument.body.scrollLeft+this.target.ownerDocument.documentElement.scrollLeft,this.posy=t.clientY+this.target.ownerDocument.body.scrollTop+this.target.ownerDocument.documentElement.scrollTop);const i=ye.getPositionOfChildWindowRelativeToAncestorWindow(e,t.view);this.posx-=i.left,this.posy-=i.top}preventDefault(){this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent.stopPropagation()}},xe=class{constructor(e,t=0,i=0){this.browserEvent=e||null,this.target=e?e.target||e.targetNode||e.srcElement:null,this.deltaY=i,this.deltaX=t;let n=!1;if(u){const e=navigator.userAgent.match(/Chrome\/(\d+)/);n=(e?parseInt(e[1]):123)<=122}if(e){const t=e,i=e,o=e.view?.devicePixelRatio||1;if(void 0!==t.wheelDeltaY)this.deltaY=n?t.wheelDeltaY/(120*o):t.wheelDeltaY/120;else if(void 0!==i.VERTICAL_AXIS&&i.axis===i.VERTICAL_AXIS)this.deltaY=-i.detail/3;else if("wheel"===e.type){const t=e;t.deltaMode===t.DOM_DELTA_LINE?this.deltaY=c&&!F?-e.deltaY/3:-e.deltaY:this.deltaY=-e.deltaY/40}if(void 0!==t.wheelDeltaX)this.deltaX=g&&P?-t.wheelDeltaX/120:n?t.wheelDeltaX/(120*o):t.wheelDeltaX/120;else if(void 0!==i.HORIZONTAL_AXIS&&i.axis===i.HORIZONTAL_AXIS)this.deltaX=-e.detail/3;else if("wheel"===e.type){const t=e;t.deltaMode===t.DOM_DELTA_LINE?this.deltaX=c&&!F?-e.deltaX/3:-e.deltaX:this.deltaX=-e.deltaX/40}0===this.deltaY&&0===this.deltaX&&e.wheelDelta&&(this.deltaY=n?e.wheelDelta/(120*o):e.wheelDelta/120)}}preventDefault(){this.browserEvent?.preventDefault()}stopPropagation(){this.browserEvent?.stopPropagation()}},function(e){function t(e){return!!e&&"object"==typeof e&&"function"==typeof e[Symbol.iterator]}e.is=t;const i=Object.freeze([]);function*n(e){yield e}e.empty=function(){return i},e.single=n,e.wrap=function(e){return t(e)?e:n(e)},e.from=function(e){return e||i},e.reverse=function*(e){for(let t=e.length-1;t>=0;t--)yield e[t]},e.isEmpty=function(e){return!e||!0===e[Symbol.iterator]().next().done},e.first=function(e){return e[Symbol.iterator]().next().value},e.some=function(e,t){let i=0;for(const n of e)if(t(n,i++))return!0;return!1},e.every=function(e,t){let i=0;for(const n of e)if(!t(n,i++))return!1;return!0},e.find=function(e,t){for(const i of e)if(t(i))return i},e.filter=function*(e,t){for(const i of e)t(i)&&(yield i)},e.map=function*(e,t){let i=0;for(const n of e)yield t(n,i++)},e.flatMap=function*(e,t){let i=0;for(const n of e)yield*t(n,i++)},e.concat=function*(...e){for(const t of e)dle(t)?yield*t:yield t},e.reduce=function(e,t,i){let n=i;for(const o of e)n=t(n,o);return n},e.length=function(e){let t=0;for(const i of e)t++;return t},e.slice=function*(e,t,i=e.length){for(t<-e.length&&(t=0),t<0&&(t+=e.length),i<0?i+=e.length:i>e.length&&(i=e.length);to}]},e.asyncToArray=async function(e){const t=[];for await(const i of e)t.push(i);return t},e.asyncToArrayFlat=async function(e){let t=[];for await(const i of e)t=t.concat(i);return t}}(ke||(ke={})),Le=class{constructor(e){this._isDisposed=!1,this._fn=e}dispose(){if(!this._isDisposed){if(!this._fn)throw new Error("Unbound disposable context: Need to use an arrow function to preserve the value of this");this._isDisposed=!0,this._fn()}}},(De=class e{constructor(){this._toDispose=new Set,this._isDisposed=!1}dispose(){this._isDisposed||(this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(0!==this._toDispose.size)try{kle(this._toDispose)}finally{this._toDispose.clear()}}add(t){if(!t||t===Ie.None)return t;if(t===this)throw new Error("Cannot register a disposable on itself!");return this._isDisposed?e.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(t),t}delete(e){if(e){if(e===this)throw new Error("Cannot dispose a disposable on itself!");this._toDispose.delete(e),e.dispose()}}}).DISABLE_DISPOSED_WARNING=!1,(Ie=class{constructor(){this._store=new De,this._store}dispose(){this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}).None=Object.freeze({dispose(){}}),Ne=class{constructor(){this._isDisposed=!1}get value(){return this._isDisposed?void 0:this._value}set value(e){this._isDisposed||e===this._value||(this._value?.dispose(),this._value=e)}clear(){this.value=void 0}dispose(){this._isDisposed=!0,this._value?.dispose(),this._value=void 0}},Ee=class{constructor(e){this._disposable=e,this._counter=1}acquire(){return this._counter++,this}release(){return 0===--this._counter&&this._disposable.dispose(),this}},Me=class{constructor(e){this.object=e}dispose(){}},Te=class{constructor(){this._store=new Map,this._isDisposed=!1}dispose(){this._isDisposed=!0,this.clearAndDisposeAll()}clearAndDisposeAll(){if(this._store.size)try{kle(this._store.values())}finally{this._store.clear()}}get(e){return this._store.get(e)}set(e,t,i=!1){this._isDisposed&&console.warn(new Error("Trying to add a disposable to a DisposableMap that has already been disposed of. The added object will be leaked!").stack),i||this._store.get(e)?.dispose(),this._store.set(e,t)}deleteAndDispose(e){this._store.get(e)?.dispose(),this._store.delete(e)}values(){return this._store.values()}[Symbol.iterator](){return this._store[Symbol.iterator]()}},(Re=Oe=class e{constructor(t){this.element=t,this.next=e.Undefined,this.prev=e.Undefined}}).Undefined=new Re(void 0),Ae=class{constructor(){this._first=Oe.Undefined,this._last=Oe.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===Oe.Undefined}clear(){let e=this._first;for(;e!==Oe.Undefined;){const t=e.next;e.prev=Oe.Undefined,e.next=Oe.Undefined,e=t}this._first=Oe.Undefined,this._last=Oe.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const i=new Oe(e);if(this._first===Oe.Undefined)this._first=i,this._last=i;else if(t){const e=this._last;this._last=i,i.prev=e,e.next=i}else{const e=this._first;this._first=i,i.next=e,e.prev=i}this._size+=1;let n=!1;return()=>{n||(n=!0,this._remove(i))}}shift(){if(this._first!==Oe.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==Oe.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==Oe.Undefined&&e.next!==Oe.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===Oe.Undefined&&e.next===Oe.Undefined?(this._first=Oe.Undefined,this._last=Oe.Undefined):e.next===Oe.Undefined?(this._last=this._last.prev,this._last.next=Oe.Undefined):e.prev===Oe.Undefined&&(this._first=this._first.next,this._first.prev=Oe.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==Oe.Undefined;)yield e.element,e=e.next}},Pe=globalThis.performance.now.bind(globalThis.performance),Fe=class e{static create(t){return new e(t)}constructor(e){this._now=!1===e?Date.now:Pe,this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return-1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime}},function(e){function t(e){return(t,i=null,n)=>{let o,s=!1;return o=e(e=>{if(!s)return o?o.dispose():s=!0,t.call(i,e)},null,n),s&&o.dispose(),o}}function i(e,t,i){return o((i,n=null,o)=>e(e=>i.call(n,t(e)),null,o),i)}function n(e,t,i){return o((i,n=null,o)=>e(e=>t(e)&&i.call(n,e),null,o),i)}function o(e,t){let i;const n=new je({onWillAddFirstListener(){i=e(n.fire,n)},onDidRemoveLastListener(){i?.dispose()}});return t?.add(n),n.event}function s(e,t,i=100,n=!1,o=!1,s,r){let a,l,d,c,h=0;const u=new je({leakWarningThreshold:s,onWillAddFirstListener(){a=e(e=>{h++,l=t(l,e),n&&!d&&(u.fire(l),l=void 0),c=()=>{const e=l;l=void 0,d=void 0,(!n||h>1)&&u.fire(e),h=0},"number"==typeof i?(d&&clearTimeout(d),d=setTimeout(c,i)):void 0===d&&(d=null,queueMicrotask(c))})},onWillRemoveListener(){o&&h>0&&c?.()},onDidRemoveLastListener(){c=void 0,a.dispose()}});return r?.add(u),u.event}e.None=()=>Ie.None,e.defer=function(e,t){return s(e,()=>{},0,void 0,!0,void 0,t)},e.once=t,e.onceIf=function(t,i){return e.once(e.filter(t,i))},e.map=i,e.forEach=function(e,t,i){return o((i,n=null,o)=>e(e=>{t(e),i.call(n,e)},null,o),i)},e.filter=n,e.signal=function(e){return e},e.any=function(...e){return(t,i=null,n)=>{return o=Lle(...e.map(e=>e(e=>t.call(i,e)))),(s=n)instanceof Array?s.push(o):s&&s.add(o),o;var o,s}},e.reduce=function(e,t,n,o){let s=n;return i(e,e=>(s=t(s,e),s),o)},e.debounce=s,e.accumulate=function(t,i=0,n){return e.debounce(t,(e,t)=>e?(e.push(t),e):[t],i,void 0,!0,void 0,n)},e.latch=function(e,t=(e,t)=>e===t,i){let o,s=!0;return n(e,e=>{const i=s||!t(e,o);return s=!1,o=e,i},i)},e.split=function(t,i,n){return[e.filter(t,i,n),e.filter(t,e=>!i(e),n)]},e.buffer=function(e,t=!1,i=[],n){let o=i.slice(),s=e(e=>{o?o.push(e):a.fire(e)});n&&n.add(s);const r=()=>{o?.forEach(e=>a.fire(e)),o=null},a=new je({onWillAddFirstListener(){s||(s=e(e=>a.fire(e)),n&&n.add(s))},onDidAddFirstListener(){o&&(t?setTimeout(r):r())},onDidRemoveLastListener(){s&&s.dispose(),s=null}});return n&&n.add(a),a.event},e.chain=function(e,t){return(i,n,o)=>{const s=t(new a);return e(function(e){const t=s.evaluate(e);t!==r&&i.call(n,t)},void 0,o)}};const r=Symbol("HaltChainable");class a{constructor(){this.steps=[]}map(e){return this.steps.push(e),this}forEach(e){return this.steps.push(t=>(e(t),t)),this}filter(e){return this.steps.push(t=>e(t)?t:r),this}reduce(e,t){let i=t;return this.steps.push(t=>(i=e(i,t),i)),this}latch(e=(e,t)=>e===t){let t,i=!0;return this.steps.push(n=>{const o=i||!e(n,t);return i=!1,t=n,o?n:r}),this}evaluate(e){for(const t of this.steps)if((e=t(e))===r)break;return e}}e.fromNodeEventEmitter=function(e,t,i=e=>e){const n=(...e)=>o.fire(i(...e)),o=new je({onWillAddFirstListener:()=>e.on(t,n),onDidRemoveLastListener:()=>e.removeListener(t,n)});return o.event},e.fromDOMEventEmitter=function(e,t,i=e=>e){const n=(...e)=>o.fire(i(...e)),o=new je({onWillAddFirstListener:()=>e.addEventListener(t,n),onDidRemoveLastListener:()=>e.removeEventListener(t,n)});return o.event},e.toPromise=function(e,i){let n;const o=new Promise((o,s)=>{const r=t(e)(o,null,i);n=()=>r.dispose()});return o.cancel=n,o},e.forward=function(e,t){return e(e=>t.fire(e))},e.runAndSubscribe=function(e,t,i){return t(i),e(e=>t(e))};class l{constructor(e,t){this._observable=e,this._counter=0,this._hasChanged=!1,this.emitter=new je({onWillAddFirstListener:()=>{e.addObserver(this),this._observable.reportChanges()},onDidRemoveLastListener:()=>{e.removeObserver(this)}}),t&&t.add(this.emitter)}beginUpdate(e){this._counter++}handlePossibleChange(e){}handleChange(e,t){this._hasChanged=!0}endUpdate(e){this._counter--,0===this._counter&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}e.fromObservable=function(e,t){return new l(e,t).emitter.event},e.fromObservableLight=function(e){return(t,i,n)=>{let o=0,s=!1;const r={beginUpdate(){o++},endUpdate(){o--,0===o&&(e.reportChanges(),s&&(s=!1,t.call(i)))},handlePossibleChange(){},handleChange(){s=!0}};e.addObserver(r),e.reportChanges();const a={dispose(){e.removeObserver(r)}};return n instanceof De?n.add(a):Array.isArray(n)&&n.push(a),a}}}(Be||(Be={})),(We=Ve=class e{constructor(t){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${t}_${e._idPool++}`,e.all.add(this)}start(e){this._stopWatch=new Fe,this.listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this.durations.push(e),this.elapsedOverall+=e,this.invocationCount+=1,this._stopWatch=void 0}}}).all=new Set,We._idPool=0,(He=class e{constructor(t,i,n=(e._idPool++).toString(16).padStart(3,"0")){this._errorHandler=t,this.threshold=i,this.name=n,this._warnCountdown=0}dispose(){this._stacks?.clear()}check(e,t){const i=this.threshold;if(i<=0||t{const t=this._stacks.get(e.value)||0;this._stacks.set(e.value,t-1)}}getMostFrequentStack(){if(!this._stacks)return;let e,t=0;for(const[i,n]of this._stacks)(!e||t{if(this._leakageMon&&this._size>this._leakageMon.threshold**2){const e=`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${this._leakageMon.threshold})`;console.warn(e);const t=this._leakageMon.getMostFrequentStack()??["UNKNOWN stack",-1],i=new Ke(`${e}. HINT: Stack shows most frequent listener (${t[1]}-times)`,t[0]);return(this._options?.onListenerError||$ae)(i),Ie.None}if(this._disposed)return Ie.None;t&&(e=e.bind(t));const n=new qe(e);let o;this._leakageMon&&this._size>=Math.ceil(.2*this._leakageMon.threshold)&&(n.stack=ze.create(),o=this._leakageMon.check(n.stack,this._size+1)),this._listeners?this._listeners instanceof qe?(this._deliveryQueue??(this._deliveryQueue=new Ge),this._listeners=[this._listeners,n]):this._listeners.push(n):(this._options?.onWillAddFirstListener?.(this),this._listeners=n,this._options?.onDidAddFirstListener?.(this)),this._options?.onDidAddListener?.(this),this._size++;const s=Dle(()=>{o?.(),this._removeListener(n)});return i instanceof De?i.add(s):Array.isArray(i)&&i.push(s),s}),this._event}_removeListener(e){if(this._options?.onWillRemoveListener?.(this),!this._listeners)return;if(1===this._size)return this._listeners=void 0,this._options?.onDidRemoveLastListener?.(this),void(this._size=0);const t=this._listeners,i=t.indexOf(e);if(-1===i)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,t[i]=void 0;const n=this._deliveryQueue.current===this;if(2*this._size<=t.length){let e=0;for(let i=0;i0}},$e=()=>new Ge,Ge=class{constructor(){this.i=-1,this.end=0}enqueue(e,t,i){this.i=0,this.end=i,this.current=e,this.value=t}reset(){this.i=this.end,this.current=void 0,this.value=void 0}},Ze=class extends je{constructor(e){super(e),this._isPaused=0,this._eventQueue=new Ae,this._mergeFn=e?.merge}pause(){this._isPaused++}resume(){if(0!==this._isPaused&&0===--this._isPaused)if(this._mergeFn){if(this._eventQueue.size>0){const e=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(e))}}else for(;!this._isPaused&&0!==this._eventQueue.size;)super.fire(this._eventQueue.shift())}fire(e){this._size&&(0!==this._isPaused?this._eventQueue.push(e):super.fire(e))}},Ye=class extends Ze{constructor(e){super(e),this._delay=e.delay??100}fire(e){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(e)}},Qe=class extends je{constructor(e){super(e),this._queuedEvents=[],this._mergeFn=e?.merge}fire(e){this.hasListeners()&&(this._queuedEvents.push(e),1===this._queuedEvents.length&&queueMicrotask(()=>{this._mergeFn?super.fire(this._mergeFn(this._queuedEvents)):this._queuedEvents.forEach(e=>super.fire(e)),this._queuedEvents=[]}))}},Xe=class{constructor(){this.hasListeners=!1,this.events=[],this.emitter=new je({onWillAddFirstListener:()=>this.onFirstListenerAdd(),onDidRemoveLastListener:()=>this.onLastListenerRemove()})}get event(){return this.emitter.event}add(e){const t={event:e,listener:null};return this.events.push(t),this.hasListeners&&this.hook(t),Dle(Sle(()=>{this.hasListeners&&this.unhook(t);const e=this.events.indexOf(t);this.events.splice(e,1)}))}onFirstListenerAdd(){this.hasListeners=!0,this.events.forEach(e=>this.hook(e))}onLastListenerRemove(){this.hasListeners=!1,this.events.forEach(e=>this.unhook(e))}hook(e){e.listener=e.event(e=>this.emitter.fire(e))}unhook(e){e.listener?.dispose(),e.listener=null}dispose(){this.emitter.dispose();for(const e of this.events)e.listener?.dispose();this.events=[]}},Je=class{constructor(){this.data=[]}wrapEvent(e,t,i){return(n,o,s)=>e(e=>{const s=this.data[this.data.length-1];if(!t)return void(s?s.buffers.push(()=>n.call(o,e)):n.call(o,e));const r=s;r?(r.items??(r.items=[]),r.items.push(e),0===r.buffers.length&&s.buffers.push(()=>{r.reducedResult??(r.reducedResult=i?r.items.reduce(t,i):r.items.reduce(t)),n.call(o,r.reducedResult)})):n.call(o,t(i,e))},void 0,s)}bufferEvents(e){const t={buffers:new Array};this.data.push(t);const i=e();return this.data.pop(),t.buffers.forEach(e=>e()),i}},et=class{constructor(){this.listening=!1,this.inputEvent=Be.None,this.inputEventListener=Ie.None,this.emitter=new je({onDidAddFirstListener:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onDidRemoveLastListener:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(e){this.inputEvent=e,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=e(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}},tt=Object.freeze(function(e,t){const i=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(i)}}}),function(e){e.isCancellationToken=function(t){return t===e.None||t===e.Cancelled||t instanceof nt||!(!t||"object"!=typeof t)&&"boolean"==typeof t.isCancellationRequested&&"function"==typeof t.onCancellationRequested},e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:Be.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:tt})}(it||(it={})),nt=class{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?tt:(this._emitter||(this._emitter=new je),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}},ot=class{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new nt),this._token}cancel(){this._token?this._token instanceof nt&&this._token.cancel():this._token=it.Cancelled}dispose(e=!1){e&&this.cancel(),this._parentListener?.dispose(),this._token?this._token instanceof nt&&this._token.dispose():this._token=it.None}},st=Symbol("MicrotaskDelay"),lt=class{constructor(){this.activePromise=null,this.queuedPromise=null,this.queuedPromiseFactory=null,this.cancellationTokenSource=new ot}queue(e){if(this.cancellationTokenSource.token.isCancellationRequested)return Promise.reject(new Error("Throttler is disposed"));if(this.activePromise){if(this.queuedPromiseFactory=e,!this.queuedPromise){const e=()=>{if(this.queuedPromise=null,this.cancellationTokenSource.token.isCancellationRequested)return;const e=this.queue(this.queuedPromiseFactory);return this.queuedPromiseFactory=null,e};this.queuedPromise=new Promise(t=>{this.activePromise.then(e,e).then(t)})}return new Promise((e,t)=>{this.queuedPromise.then(e,t)})}return this.activePromise=e(this.cancellationTokenSource.token),new Promise((e,t)=>{this.activePromise.then(t=>{this.activePromise=null,e(t)},e=>{this.activePromise=null,t(e)})})}dispose(){this.cancellationTokenSource.cancel()}},dt=(e,t)=>{let i=!0;const n=setTimeout(()=>{i=!1,t()},e);return{isTriggered:()=>i,dispose:()=>{clearTimeout(n),i=!1}}},ct=e=>{let t=!0;return queueMicrotask(()=>{t&&(t=!1,e())}),{isTriggered:()=>t,dispose:()=>{t=!1}}},ht=class{constructor(e){this.defaultDelay=e,this.deferred=null,this.completionPromise=null,this.doResolve=null,this.doReject=null,this.task=null}trigger(e,t=this.defaultDelay){this.task=e,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise((e,t)=>{this.doResolve=e,this.doReject=t}).then(()=>{if(this.completionPromise=null,this.doResolve=null,this.task){const e=this.task;return this.task=null,e()}}));const i=()=>{this.deferred=null,this.doResolve?.(null)};return this.deferred=t===st?ct(i):dt(t,i),this.completionPromise}isTriggered(){return!!this.deferred?.isTriggered()}cancel(){this.cancelTimeout(),this.completionPromise&&(this.doReject?.(new v),this.completionPromise=null)}cancelTimeout(){this.deferred?.dispose(),this.deferred=null}dispose(){this.cancel()}},ut=class{constructor(e){this.delayer=new ht(e),this.throttler=new lt}trigger(e,t){return this.delayer.trigger(()=>this.throttler.queue(e),t)}cancel(){this.delayer.cancel()}dispose(){this.delayer.dispose(),this.throttler.dispose()}},gt=class{constructor(){this._runningTask=void 0,this._pendingTasks=[]}schedule(e){const t=new Ct;return this._pendingTasks.push({task:e,deferred:t,setUndefinedWhenCleared:!1}),this._runIfNotRunning(),t.p}_runIfNotRunning(){void 0===this._runningTask&&this._processQueue()}async _processQueue(){if(0===this._pendingTasks.length)return;const e=this._pendingTasks.shift();if(e){if(this._runningTask)throw new y;this._runningTask=e.task;try{const t=await e.task();e.deferred.complete(t)}catch(Fae){e.deferred.error(Fae)}finally{this._runningTask=void 0,this._processQueue()}}}clearPending(){const e=this._pendingTasks;this._pendingTasks=[];for(const t of e)t.setUndefinedWhenCleared?t.deferred.complete(void 0):t.deferred.error(new v)}},pt=class{constructor(e,t){this._isDisposed=!1,this._token=void 0,"function"==typeof e&&"number"==typeof t&&this.setIfNotSet(e,t)}dispose(){this.cancel(),this._isDisposed=!0}cancel(){void 0!==this._token&&(clearTimeout(this._token),this._token=void 0)}cancelAndSet(e,t){if(this._isDisposed)throw new y("Calling 'cancelAndSet' on a disposed TimeoutTimer");this.cancel(),this._token=setTimeout(()=>{this._token=void 0,e()},t)}setIfNotSet(e,t){if(this._isDisposed)throw new y("Calling 'setIfNotSet' on a disposed TimeoutTimer");void 0===this._token&&(this._token=setTimeout(()=>{this._token=void 0,e()},t))}},mt=class{constructor(){this.disposable=void 0,this.isDisposed=!1}cancel(){this.disposable?.dispose(),this.disposable=void 0}cancelAndSet(e,t,i=globalThis){if(this.isDisposed)throw new y("Calling 'cancelAndSet' on a disposed IntervalTimer");this.cancel();const n=i.setInterval(()=>{e()},t);this.disposable=Dle(()=>{i.clearInterval(n),this.disposable=void 0})}dispose(){this.cancel(),this.isDisposed=!0}},ft=class{constructor(e,t){this.timeoutToken=void 0,this.runner=e,this.timeout=t,this.timeoutHandler=this.onTimeout.bind(this)}dispose(){this.cancel(),this.runner=null}cancel(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=void 0)}schedule(e=this.timeout){this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,e)}get delay(){return this.timeout}set delay(e){this.timeout=e}isScheduled(){return void 0!==this.timeoutToken}onTimeout(){this.timeoutToken=void 0,this.runner&&this.doRun()}doRun(){this.runner?.()}},function(){const e=globalThis;bt="function"!=typeof e.requestIdleCallback||"function"!=typeof e.cancelIdleCallback?(e,t,i)=>{Z(()=>{if(n)return;const e=Date.now()+15;t(Object.freeze({didTimeout:!0,timeRemaining:()=>Math.max(0,e-Date.now())}))});let n=!1;return{dispose(){n||(n=!0)}}}:(e,t,i)=>{const n=e.requestIdleCallback(t,"number"==typeof i?{timeout:i}:void 0);let o=!1;return{dispose(){o||(o=!0,e.cancelIdleCallback(n))}}},_t=(e,t)=>bt(globalThis,e,t)}(),vt=class{constructor(e,t){this._didRun=!1,this._executor=()=>{try{this._value=t()}catch(e){this._error=e}finally{this._didRun=!0}},this._handle=bt(e,()=>this._executor())}dispose(){this._handle.dispose()}get value(){if(this._didRun||(this._handle.dispose(),this._executor()),this._error)throw this._error;return this._value}get isInitialized(){return this._didRun}},wt=class extends vt{constructor(e){super(globalThis,e)}},Ct=class{get isRejected(){return 1===this.outcome?.outcome}get isSettled(){return!!this.outcome}constructor(){this.p=new Promise((e,t)=>{this.completeCallback=e,this.errorCallback=t})}complete(e){return this.isSettled?Promise.resolve():new Promise(t=>{this.completeCallback(e),this.outcome={outcome:0,value:e},t()})}error(e){return this.isSettled?Promise.resolve():new Promise(t=>{this.errorCallback(e),this.outcome={outcome:1,value:e},t()})}cancel(){return this.error(new v)}},function(e){e.settled=async function(e){let t;const i=await Promise.all(e.map(e=>e.then(e=>e,e=>{t||(t=e)})));if(void 0!==t)throw t;return i},e.withAsyncBody=function(e){return new Promise(async(t,i)=>{try{await e(t,i)}catch(n){i(n)}})}}(yt||(yt={})),St=class{constructor(){this._unsatisfiedConsumers=[],this._unconsumedValues=[]}get hasFinalValue(){return!!this._finalValue}produce(e){if(this._ensureNoFinalValue(),this._unsatisfiedConsumers.length>0){const t=this._unsatisfiedConsumers.shift();this._resolveOrRejectDeferred(t,e)}else this._unconsumedValues.push(e)}produceFinal(e){this._ensureNoFinalValue(),this._finalValue=e;for(const t of this._unsatisfiedConsumers)this._resolveOrRejectDeferred(t,e);this._unsatisfiedConsumers.length=0}_ensureNoFinalValue(){if(this._finalValue)throw new y("ProducerConsumer: cannot produce after final value has been set")}_resolveOrRejectDeferred(e,t){t.ok?e.complete(t.value):e.error(t.error)}consume(){if(this._unconsumedValues.length>0||this._finalValue){const e=this._unconsumedValues.length>0?this._unconsumedValues.shift():this._finalValue;return e.ok?Promise.resolve(e.value):Promise.reject(e.error)}{const e=new Ct;return this._unsatisfiedConsumers.push(e),e.p}}},at=Symbol.asyncIterator,(rt=xt=class e{constructor(e,t){this._onReturn=t,this._producerConsumer=new St,this._iterator={next:()=>this._producerConsumer.consume(),return:()=>(this._onReturn?.(),Promise.resolve({done:!0,value:void 0})),throw:async e=>(this._finishError(e),{done:!0,value:void 0})},queueMicrotask(async()=>{const t=e({emitOne:e=>this._producerConsumer.produce({ok:!0,value:{done:!1,value:e}}),emitMany:e=>{for(const t of e)this._producerConsumer.produce({ok:!0,value:{done:!1,value:t}})},reject:e=>this._finishError(e)});if(!this._producerConsumer.hasFinalValue)try{await t,this._finishOk()}catch(i){this._finishError(i)}})}static fromArray(t){return new e(e=>{e.emitMany(t)})}static fromPromise(t){return new e(async e=>{e.emitMany(await t)})}static fromPromisesResolveOrder(t){return new e(async e=>{await Promise.all(t.map(async t=>e.emitOne(await t)))})}static merge(t){return new e(async e=>{await Promise.all(t.map(async t=>{for await(const i of t)e.emitOne(i)}))})}static map(t,i){return new e(async e=>{for await(const n of t)e.emitOne(i(n))})}map(t){return e.map(this,t)}static coalesce(t){return e.filter(t,e=>!!e)}coalesce(){return e.coalesce(this)}static filter(t,i){return new e(async e=>{for await(const n of t)i(n)&&e.emitOne(n)})}filter(t){return e.filter(this,t)}_finishOk(){this._producerConsumer.hasFinalValue||this._producerConsumer.produceFinal({ok:!0,value:{done:!0,value:void 0}})}_finishError(e){this._producerConsumer.hasFinalValue||this._producerConsumer.produceFinal({ok:!1,error:e})}[at](){return this._iterator}}).EMPTY=rt.fromArray([]),kt=class extends xt{constructor(e,t){super(t),this._source=e}cancel(){this._source.cancel()}},Lt=class{constructor(e,t){this.lastCache=void 0,this.lastArgKey=void 0,"function"==typeof e?(this._fn=e,this._computeKey=Ale):(this._fn=t,this._computeKey=e.getCacheKey)}get(e){const t=this._computeKey(e);return this.lastArgKey!==t&&(this.lastArgKey=t,this.lastCache=this._fn(e)),this.lastCache}},Dt=class{get cachedValues(){return this._map}constructor(e,t){this._map=new Map,this._map2=new Map,"function"==typeof e?(this._fn=e,this._computeKey=Ale):(this._fn=t,this._computeKey=e.getCacheKey)}get(e){const t=this._computeKey(e);if(this._map2.has(t))return this._map2.get(t);const i=this._fn(e);return this._map.set(e,i),this._map2.set(t,i),i}},function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Running=1]="Running",e[e.Completed=2]="Completed"}(It||(It={})),Nt=class{constructor(e){this.executor=e,this._state=It.Uninitialized}get value(){if(this._state===It.Uninitialized){this._state=It.Running;try{this._value=this.executor()}catch(e){this._error=e}finally{this._state=It.Completed}}else if(this._state===It.Running)throw new Error("Cannot read the value of a lazy that is being initialized");if(this._error)throw this._error;return this._value}get rawValue(){return this._value}},Mt=/{(\d+)}/g,Tt=class{get offset(){return this._offset}constructor(e,t=0){this._str=e,this._len=e.length,this._offset=t}setOffset(e){this._offset=e}prevCodePoint(){const e=function(e,t){const i=e.charCodeAt(t-1);if(lde(i)&&t>1){const n=e.charCodeAt(t-2);if(ade(n))return dde(n,i)}return i}(this._str,this._offset);return this._offset-=e>=65536?2:1,e}nextCodePoint(){const e=cde(this._str,this._len,this._offset);return this._offset+=e>=65536?2:1,e}eol(){return this._offset>=this._len}},Rt=class{get offset(){return this._iterator.offset}constructor(e,t=0){this._iterator=new Tt(e,t)}nextGraphemeLength(){const e=Ft.getInstance(),t=this._iterator,i=t.offset;let n=e.getGraphemeBreakType(t.nextCodePoint());for(;!t.eol();){const i=t.offset,o=e.getGraphemeBreakType(t.nextCodePoint());if(wde(n,o)){t.setOffset(i);break}n=o}return t.offset-i}prevGraphemeLength(){const e=Ft.getInstance(),t=this._iterator,i=t.offset;let n=e.getGraphemeBreakType(t.prevCodePoint());for(;t.offset>0;){const i=t.offset,o=e.getGraphemeBreakType(t.prevCodePoint());if(wde(o,n)){t.setOffset(i);break}n=o}return i-t.offset}eol(){return this._iterator.eol()}},Ot=void 0,At=/^[\t\n\r\x20-\x7E]*$/,Pt=/[\u2028\u2029]/,String.fromCharCode(65279),(Ft=class e{static getInstance(){return e._INSTANCE||(e._INSTANCE=new e),e._INSTANCE}constructor(){this._data=JSON.parse("[0,0,0,51229,51255,12,44061,44087,12,127462,127487,6,7083,7085,5,47645,47671,12,54813,54839,12,128678,128678,14,3270,3270,5,9919,9923,14,45853,45879,12,49437,49463,12,53021,53047,12,71216,71218,7,128398,128399,14,129360,129374,14,2519,2519,5,4448,4519,9,9742,9742,14,12336,12336,14,44957,44983,12,46749,46775,12,48541,48567,12,50333,50359,12,52125,52151,12,53917,53943,12,69888,69890,5,73018,73018,5,127990,127990,14,128558,128559,14,128759,128760,14,129653,129655,14,2027,2035,5,2891,2892,7,3761,3761,5,6683,6683,5,8293,8293,4,9825,9826,14,9999,9999,14,43452,43453,5,44509,44535,12,45405,45431,12,46301,46327,12,47197,47223,12,48093,48119,12,48989,49015,12,49885,49911,12,50781,50807,12,51677,51703,12,52573,52599,12,53469,53495,12,54365,54391,12,65279,65279,4,70471,70472,7,72145,72147,7,119173,119179,5,127799,127818,14,128240,128244,14,128512,128512,14,128652,128652,14,128721,128722,14,129292,129292,14,129445,129450,14,129734,129743,14,1476,1477,5,2366,2368,7,2750,2752,7,3076,3076,5,3415,3415,5,4141,4144,5,6109,6109,5,6964,6964,5,7394,7400,5,9197,9198,14,9770,9770,14,9877,9877,14,9968,9969,14,10084,10084,14,43052,43052,5,43713,43713,5,44285,44311,12,44733,44759,12,45181,45207,12,45629,45655,12,46077,46103,12,46525,46551,12,46973,46999,12,47421,47447,12,47869,47895,12,48317,48343,12,48765,48791,12,49213,49239,12,49661,49687,12,50109,50135,12,50557,50583,12,51005,51031,12,51453,51479,12,51901,51927,12,52349,52375,12,52797,52823,12,53245,53271,12,53693,53719,12,54141,54167,12,54589,54615,12,55037,55063,12,69506,69509,5,70191,70193,5,70841,70841,7,71463,71467,5,72330,72342,5,94031,94031,5,123628,123631,5,127763,127765,14,127941,127941,14,128043,128062,14,128302,128317,14,128465,128467,14,128539,128539,14,128640,128640,14,128662,128662,14,128703,128703,14,128745,128745,14,129004,129007,14,129329,129330,14,129402,129402,14,129483,129483,14,129686,129704,14,130048,131069,14,173,173,4,1757,1757,1,2200,2207,5,2434,2435,7,2631,2632,5,2817,2817,5,3008,3008,5,3201,3201,5,3387,3388,5,3542,3542,5,3902,3903,7,4190,4192,5,6002,6003,5,6439,6440,5,6765,6770,7,7019,7027,5,7154,7155,7,8205,8205,13,8505,8505,14,9654,9654,14,9757,9757,14,9792,9792,14,9852,9853,14,9890,9894,14,9937,9937,14,9981,9981,14,10035,10036,14,11035,11036,14,42654,42655,5,43346,43347,7,43587,43587,5,44006,44007,7,44173,44199,12,44397,44423,12,44621,44647,12,44845,44871,12,45069,45095,12,45293,45319,12,45517,45543,12,45741,45767,12,45965,45991,12,46189,46215,12,46413,46439,12,46637,46663,12,46861,46887,12,47085,47111,12,47309,47335,12,47533,47559,12,47757,47783,12,47981,48007,12,48205,48231,12,48429,48455,12,48653,48679,12,48877,48903,12,49101,49127,12,49325,49351,12,49549,49575,12,49773,49799,12,49997,50023,12,50221,50247,12,50445,50471,12,50669,50695,12,50893,50919,12,51117,51143,12,51341,51367,12,51565,51591,12,51789,51815,12,52013,52039,12,52237,52263,12,52461,52487,12,52685,52711,12,52909,52935,12,53133,53159,12,53357,53383,12,53581,53607,12,53805,53831,12,54029,54055,12,54253,54279,12,54477,54503,12,54701,54727,12,54925,54951,12,55149,55175,12,68101,68102,5,69762,69762,7,70067,70069,7,70371,70378,5,70720,70721,7,71087,71087,5,71341,71341,5,71995,71996,5,72249,72249,7,72850,72871,5,73109,73109,5,118576,118598,5,121505,121519,5,127245,127247,14,127568,127569,14,127777,127777,14,127872,127891,14,127956,127967,14,128015,128016,14,128110,128172,14,128259,128259,14,128367,128368,14,128424,128424,14,128488,128488,14,128530,128532,14,128550,128551,14,128566,128566,14,128647,128647,14,128656,128656,14,128667,128673,14,128691,128693,14,128715,128715,14,128728,128732,14,128752,128752,14,128765,128767,14,129096,129103,14,129311,129311,14,129344,129349,14,129394,129394,14,129413,129425,14,129466,129471,14,129511,129535,14,129664,129666,14,129719,129722,14,129760,129767,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2307,2307,7,2382,2383,7,2497,2500,5,2563,2563,7,2677,2677,5,2763,2764,7,2879,2879,5,2914,2915,5,3021,3021,5,3142,3144,5,3263,3263,5,3285,3286,5,3398,3400,7,3530,3530,5,3633,3633,5,3864,3865,5,3974,3975,5,4155,4156,7,4229,4230,5,5909,5909,7,6078,6085,7,6277,6278,5,6451,6456,7,6744,6750,5,6846,6846,5,6972,6972,5,7074,7077,5,7146,7148,7,7222,7223,5,7416,7417,5,8234,8238,4,8417,8417,5,9000,9000,14,9203,9203,14,9730,9731,14,9748,9749,14,9762,9763,14,9776,9783,14,9800,9811,14,9831,9831,14,9872,9873,14,9882,9882,14,9900,9903,14,9929,9933,14,9941,9960,14,9974,9974,14,9989,9989,14,10006,10006,14,10062,10062,14,10160,10160,14,11647,11647,5,12953,12953,14,43019,43019,5,43232,43249,5,43443,43443,5,43567,43568,7,43696,43696,5,43765,43765,7,44013,44013,5,44117,44143,12,44229,44255,12,44341,44367,12,44453,44479,12,44565,44591,12,44677,44703,12,44789,44815,12,44901,44927,12,45013,45039,12,45125,45151,12,45237,45263,12,45349,45375,12,45461,45487,12,45573,45599,12,45685,45711,12,45797,45823,12,45909,45935,12,46021,46047,12,46133,46159,12,46245,46271,12,46357,46383,12,46469,46495,12,46581,46607,12,46693,46719,12,46805,46831,12,46917,46943,12,47029,47055,12,47141,47167,12,47253,47279,12,47365,47391,12,47477,47503,12,47589,47615,12,47701,47727,12,47813,47839,12,47925,47951,12,48037,48063,12,48149,48175,12,48261,48287,12,48373,48399,12,48485,48511,12,48597,48623,12,48709,48735,12,48821,48847,12,48933,48959,12,49045,49071,12,49157,49183,12,49269,49295,12,49381,49407,12,49493,49519,12,49605,49631,12,49717,49743,12,49829,49855,12,49941,49967,12,50053,50079,12,50165,50191,12,50277,50303,12,50389,50415,12,50501,50527,12,50613,50639,12,50725,50751,12,50837,50863,12,50949,50975,12,51061,51087,12,51173,51199,12,51285,51311,12,51397,51423,12,51509,51535,12,51621,51647,12,51733,51759,12,51845,51871,12,51957,51983,12,52069,52095,12,52181,52207,12,52293,52319,12,52405,52431,12,52517,52543,12,52629,52655,12,52741,52767,12,52853,52879,12,52965,52991,12,53077,53103,12,53189,53215,12,53301,53327,12,53413,53439,12,53525,53551,12,53637,53663,12,53749,53775,12,53861,53887,12,53973,53999,12,54085,54111,12,54197,54223,12,54309,54335,12,54421,54447,12,54533,54559,12,54645,54671,12,54757,54783,12,54869,54895,12,54981,55007,12,55093,55119,12,55243,55291,10,66045,66045,5,68325,68326,5,69688,69702,5,69817,69818,5,69957,69958,7,70089,70092,5,70198,70199,5,70462,70462,5,70502,70508,5,70750,70750,5,70846,70846,7,71100,71101,5,71230,71230,7,71351,71351,5,71737,71738,5,72000,72000,7,72160,72160,5,72273,72278,5,72752,72758,5,72882,72883,5,73031,73031,5,73461,73462,7,94192,94193,7,119149,119149,7,121403,121452,5,122915,122916,5,126980,126980,14,127358,127359,14,127535,127535,14,127759,127759,14,127771,127771,14,127792,127793,14,127825,127867,14,127897,127899,14,127945,127945,14,127985,127986,14,128000,128007,14,128021,128021,14,128066,128100,14,128184,128235,14,128249,128252,14,128266,128276,14,128335,128335,14,128379,128390,14,128407,128419,14,128444,128444,14,128481,128481,14,128499,128499,14,128526,128526,14,128536,128536,14,128543,128543,14,128556,128556,14,128564,128564,14,128577,128580,14,128643,128645,14,128649,128649,14,128654,128654,14,128660,128660,14,128664,128664,14,128675,128675,14,128686,128689,14,128695,128696,14,128705,128709,14,128717,128719,14,128725,128725,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129009,129023,14,129160,129167,14,129296,129304,14,129320,129327,14,129340,129342,14,129356,129356,14,129388,129392,14,129399,129400,14,129404,129407,14,129432,129442,14,129454,129455,14,129473,129474,14,129485,129487,14,129648,129651,14,129659,129660,14,129671,129679,14,129709,129711,14,129728,129730,14,129751,129753,14,129776,129782,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2274,2274,1,2363,2363,7,2377,2380,7,2402,2403,5,2494,2494,5,2507,2508,7,2558,2558,5,2622,2624,7,2641,2641,5,2691,2691,7,2759,2760,5,2786,2787,5,2876,2876,5,2881,2884,5,2901,2902,5,3006,3006,5,3014,3016,7,3072,3072,5,3134,3136,5,3157,3158,5,3260,3260,5,3266,3266,5,3274,3275,7,3328,3329,5,3391,3392,7,3405,3405,5,3457,3457,5,3536,3537,7,3551,3551,5,3636,3642,5,3764,3772,5,3895,3895,5,3967,3967,7,3993,4028,5,4146,4151,5,4182,4183,7,4226,4226,5,4253,4253,5,4957,4959,5,5940,5940,7,6070,6070,7,6087,6088,7,6158,6158,4,6432,6434,5,6448,6449,7,6679,6680,5,6742,6742,5,6754,6754,5,6783,6783,5,6912,6915,5,6966,6970,5,6978,6978,5,7042,7042,7,7080,7081,5,7143,7143,7,7150,7150,7,7212,7219,5,7380,7392,5,7412,7412,5,8203,8203,4,8232,8232,4,8265,8265,14,8400,8412,5,8421,8432,5,8617,8618,14,9167,9167,14,9200,9200,14,9410,9410,14,9723,9726,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9774,14,9786,9786,14,9794,9794,14,9823,9823,14,9828,9828,14,9833,9850,14,9855,9855,14,9875,9875,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9935,9935,14,9939,9939,14,9962,9962,14,9972,9972,14,9978,9978,14,9986,9986,14,9997,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10133,10135,14,10548,10549,14,11093,11093,14,12330,12333,5,12441,12442,5,42608,42610,5,43010,43010,5,43045,43046,5,43188,43203,7,43302,43309,5,43392,43394,5,43446,43449,5,43493,43493,5,43571,43572,7,43597,43597,7,43703,43704,5,43756,43757,5,44003,44004,7,44009,44010,7,44033,44059,12,44089,44115,12,44145,44171,12,44201,44227,12,44257,44283,12,44313,44339,12,44369,44395,12,44425,44451,12,44481,44507,12,44537,44563,12,44593,44619,12,44649,44675,12,44705,44731,12,44761,44787,12,44817,44843,12,44873,44899,12,44929,44955,12,44985,45011,12,45041,45067,12,45097,45123,12,45153,45179,12,45209,45235,12,45265,45291,12,45321,45347,12,45377,45403,12,45433,45459,12,45489,45515,12,45545,45571,12,45601,45627,12,45657,45683,12,45713,45739,12,45769,45795,12,45825,45851,12,45881,45907,12,45937,45963,12,45993,46019,12,46049,46075,12,46105,46131,12,46161,46187,12,46217,46243,12,46273,46299,12,46329,46355,12,46385,46411,12,46441,46467,12,46497,46523,12,46553,46579,12,46609,46635,12,46665,46691,12,46721,46747,12,46777,46803,12,46833,46859,12,46889,46915,12,46945,46971,12,47001,47027,12,47057,47083,12,47113,47139,12,47169,47195,12,47225,47251,12,47281,47307,12,47337,47363,12,47393,47419,12,47449,47475,12,47505,47531,12,47561,47587,12,47617,47643,12,47673,47699,12,47729,47755,12,47785,47811,12,47841,47867,12,47897,47923,12,47953,47979,12,48009,48035,12,48065,48091,12,48121,48147,12,48177,48203,12,48233,48259,12,48289,48315,12,48345,48371,12,48401,48427,12,48457,48483,12,48513,48539,12,48569,48595,12,48625,48651,12,48681,48707,12,48737,48763,12,48793,48819,12,48849,48875,12,48905,48931,12,48961,48987,12,49017,49043,12,49073,49099,12,49129,49155,12,49185,49211,12,49241,49267,12,49297,49323,12,49353,49379,12,49409,49435,12,49465,49491,12,49521,49547,12,49577,49603,12,49633,49659,12,49689,49715,12,49745,49771,12,49801,49827,12,49857,49883,12,49913,49939,12,49969,49995,12,50025,50051,12,50081,50107,12,50137,50163,12,50193,50219,12,50249,50275,12,50305,50331,12,50361,50387,12,50417,50443,12,50473,50499,12,50529,50555,12,50585,50611,12,50641,50667,12,50697,50723,12,50753,50779,12,50809,50835,12,50865,50891,12,50921,50947,12,50977,51003,12,51033,51059,12,51089,51115,12,51145,51171,12,51201,51227,12,51257,51283,12,51313,51339,12,51369,51395,12,51425,51451,12,51481,51507,12,51537,51563,12,51593,51619,12,51649,51675,12,51705,51731,12,51761,51787,12,51817,51843,12,51873,51899,12,51929,51955,12,51985,52011,12,52041,52067,12,52097,52123,12,52153,52179,12,52209,52235,12,52265,52291,12,52321,52347,12,52377,52403,12,52433,52459,12,52489,52515,12,52545,52571,12,52601,52627,12,52657,52683,12,52713,52739,12,52769,52795,12,52825,52851,12,52881,52907,12,52937,52963,12,52993,53019,12,53049,53075,12,53105,53131,12,53161,53187,12,53217,53243,12,53273,53299,12,53329,53355,12,53385,53411,12,53441,53467,12,53497,53523,12,53553,53579,12,53609,53635,12,53665,53691,12,53721,53747,12,53777,53803,12,53833,53859,12,53889,53915,12,53945,53971,12,54001,54027,12,54057,54083,12,54113,54139,12,54169,54195,12,54225,54251,12,54281,54307,12,54337,54363,12,54393,54419,12,54449,54475,12,54505,54531,12,54561,54587,12,54617,54643,12,54673,54699,12,54729,54755,12,54785,54811,12,54841,54867,12,54897,54923,12,54953,54979,12,55009,55035,12,55065,55091,12,55121,55147,12,55177,55203,12,65024,65039,5,65520,65528,4,66422,66426,5,68152,68154,5,69291,69292,5,69633,69633,5,69747,69748,5,69811,69814,5,69826,69826,5,69932,69932,7,70016,70017,5,70079,70080,7,70095,70095,5,70196,70196,5,70367,70367,5,70402,70403,7,70464,70464,5,70487,70487,5,70709,70711,7,70725,70725,7,70833,70834,7,70843,70844,7,70849,70849,7,71090,71093,5,71103,71104,5,71227,71228,7,71339,71339,5,71344,71349,5,71458,71461,5,71727,71735,5,71985,71989,7,71998,71998,5,72002,72002,7,72154,72155,5,72193,72202,5,72251,72254,5,72281,72283,5,72344,72345,5,72766,72766,7,72874,72880,5,72885,72886,5,73023,73029,5,73104,73105,5,73111,73111,5,92912,92916,5,94095,94098,5,113824,113827,4,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,125252,125258,5,127183,127183,14,127340,127343,14,127377,127386,14,127491,127503,14,127548,127551,14,127744,127756,14,127761,127761,14,127769,127769,14,127773,127774,14,127780,127788,14,127796,127797,14,127820,127823,14,127869,127869,14,127894,127895,14,127902,127903,14,127943,127943,14,127947,127950,14,127972,127972,14,127988,127988,14,127992,127994,14,128009,128011,14,128019,128019,14,128023,128041,14,128064,128064,14,128102,128107,14,128174,128181,14,128238,128238,14,128246,128247,14,128254,128254,14,128264,128264,14,128278,128299,14,128329,128330,14,128348,128359,14,128371,128377,14,128392,128393,14,128401,128404,14,128421,128421,14,128433,128434,14,128450,128452,14,128476,128478,14,128483,128483,14,128495,128495,14,128506,128506,14,128519,128520,14,128528,128528,14,128534,128534,14,128538,128538,14,128540,128542,14,128544,128549,14,128552,128555,14,128557,128557,14,128560,128563,14,128565,128565,14,128567,128576,14,128581,128591,14,128641,128642,14,128646,128646,14,128648,128648,14,128650,128651,14,128653,128653,14,128655,128655,14,128657,128659,14,128661,128661,14,128663,128663,14,128665,128666,14,128674,128674,14,128676,128677,14,128679,128685,14,128690,128690,14,128694,128694,14,128697,128702,14,128704,128704,14,128710,128714,14,128716,128716,14,128720,128720,14,128723,128724,14,128726,128727,14,128733,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129008,129008,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129661,129663,14,129667,129670,14,129680,129685,14,129705,129708,14,129712,129718,14,129723,129727,14,129731,129733,14,129744,129750,14,129754,129759,14,129768,129775,14,129783,129791,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2192,2193,1,2250,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3132,3132,5,3137,3140,7,3146,3149,5,3170,3171,5,3202,3203,7,3262,3262,7,3264,3265,7,3267,3268,7,3271,3272,7,3276,3277,5,3298,3299,5,3330,3331,7,3390,3390,5,3393,3396,5,3402,3404,7,3406,3406,1,3426,3427,5,3458,3459,7,3535,3535,5,3538,3540,5,3544,3550,7,3570,3571,7,3635,3635,7,3655,3662,5,3763,3763,7,3784,3789,5,3893,3893,5,3897,3897,5,3953,3966,5,3968,3972,5,3981,3991,5,4038,4038,5,4145,4145,7,4153,4154,5,4157,4158,5,4184,4185,5,4209,4212,5,4228,4228,7,4237,4237,5,4352,4447,8,4520,4607,10,5906,5908,5,5938,5939,5,5970,5971,5,6068,6069,5,6071,6077,5,6086,6086,5,6089,6099,5,6155,6157,5,6159,6159,5,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6862,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7679,5,8204,8204,5,8206,8207,4,8233,8233,4,8252,8252,14,8288,8292,4,8294,8303,4,8413,8416,5,8418,8420,5,8482,8482,14,8596,8601,14,8986,8987,14,9096,9096,14,9193,9196,14,9199,9199,14,9201,9202,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9729,14,9732,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9775,9775,14,9784,9785,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9874,14,9876,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9934,14,9936,9936,14,9938,9938,14,9940,9940,14,9961,9961,14,9963,9967,14,9970,9971,14,9973,9973,14,9975,9977,14,9979,9980,14,9982,9985,14,9987,9988,14,9992,9996,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10083,14,10085,10087,14,10145,10145,14,10175,10175,14,11013,11015,14,11088,11088,14,11503,11505,5,11744,11775,5,12334,12335,5,12349,12349,14,12951,12951,14,42607,42607,5,42612,42621,5,42736,42737,5,43014,43014,5,43043,43044,7,43047,43047,7,43136,43137,7,43204,43205,5,43263,43263,5,43335,43345,5,43360,43388,8,43395,43395,7,43444,43445,7,43450,43451,7,43454,43456,7,43561,43566,5,43569,43570,5,43573,43574,5,43596,43596,5,43644,43644,5,43698,43700,5,43710,43711,5,43755,43755,7,43758,43759,7,43766,43766,5,44005,44005,5,44008,44008,5,44012,44012,7,44032,44032,11,44060,44060,11,44088,44088,11,44116,44116,11,44144,44144,11,44172,44172,11,44200,44200,11,44228,44228,11,44256,44256,11,44284,44284,11,44312,44312,11,44340,44340,11,44368,44368,11,44396,44396,11,44424,44424,11,44452,44452,11,44480,44480,11,44508,44508,11,44536,44536,11,44564,44564,11,44592,44592,11,44620,44620,11,44648,44648,11,44676,44676,11,44704,44704,11,44732,44732,11,44760,44760,11,44788,44788,11,44816,44816,11,44844,44844,11,44872,44872,11,44900,44900,11,44928,44928,11,44956,44956,11,44984,44984,11,45012,45012,11,45040,45040,11,45068,45068,11,45096,45096,11,45124,45124,11,45152,45152,11,45180,45180,11,45208,45208,11,45236,45236,11,45264,45264,11,45292,45292,11,45320,45320,11,45348,45348,11,45376,45376,11,45404,45404,11,45432,45432,11,45460,45460,11,45488,45488,11,45516,45516,11,45544,45544,11,45572,45572,11,45600,45600,11,45628,45628,11,45656,45656,11,45684,45684,11,45712,45712,11,45740,45740,11,45768,45768,11,45796,45796,11,45824,45824,11,45852,45852,11,45880,45880,11,45908,45908,11,45936,45936,11,45964,45964,11,45992,45992,11,46020,46020,11,46048,46048,11,46076,46076,11,46104,46104,11,46132,46132,11,46160,46160,11,46188,46188,11,46216,46216,11,46244,46244,11,46272,46272,11,46300,46300,11,46328,46328,11,46356,46356,11,46384,46384,11,46412,46412,11,46440,46440,11,46468,46468,11,46496,46496,11,46524,46524,11,46552,46552,11,46580,46580,11,46608,46608,11,46636,46636,11,46664,46664,11,46692,46692,11,46720,46720,11,46748,46748,11,46776,46776,11,46804,46804,11,46832,46832,11,46860,46860,11,46888,46888,11,46916,46916,11,46944,46944,11,46972,46972,11,47000,47000,11,47028,47028,11,47056,47056,11,47084,47084,11,47112,47112,11,47140,47140,11,47168,47168,11,47196,47196,11,47224,47224,11,47252,47252,11,47280,47280,11,47308,47308,11,47336,47336,11,47364,47364,11,47392,47392,11,47420,47420,11,47448,47448,11,47476,47476,11,47504,47504,11,47532,47532,11,47560,47560,11,47588,47588,11,47616,47616,11,47644,47644,11,47672,47672,11,47700,47700,11,47728,47728,11,47756,47756,11,47784,47784,11,47812,47812,11,47840,47840,11,47868,47868,11,47896,47896,11,47924,47924,11,47952,47952,11,47980,47980,11,48008,48008,11,48036,48036,11,48064,48064,11,48092,48092,11,48120,48120,11,48148,48148,11,48176,48176,11,48204,48204,11,48232,48232,11,48260,48260,11,48288,48288,11,48316,48316,11,48344,48344,11,48372,48372,11,48400,48400,11,48428,48428,11,48456,48456,11,48484,48484,11,48512,48512,11,48540,48540,11,48568,48568,11,48596,48596,11,48624,48624,11,48652,48652,11,48680,48680,11,48708,48708,11,48736,48736,11,48764,48764,11,48792,48792,11,48820,48820,11,48848,48848,11,48876,48876,11,48904,48904,11,48932,48932,11,48960,48960,11,48988,48988,11,49016,49016,11,49044,49044,11,49072,49072,11,49100,49100,11,49128,49128,11,49156,49156,11,49184,49184,11,49212,49212,11,49240,49240,11,49268,49268,11,49296,49296,11,49324,49324,11,49352,49352,11,49380,49380,11,49408,49408,11,49436,49436,11,49464,49464,11,49492,49492,11,49520,49520,11,49548,49548,11,49576,49576,11,49604,49604,11,49632,49632,11,49660,49660,11,49688,49688,11,49716,49716,11,49744,49744,11,49772,49772,11,49800,49800,11,49828,49828,11,49856,49856,11,49884,49884,11,49912,49912,11,49940,49940,11,49968,49968,11,49996,49996,11,50024,50024,11,50052,50052,11,50080,50080,11,50108,50108,11,50136,50136,11,50164,50164,11,50192,50192,11,50220,50220,11,50248,50248,11,50276,50276,11,50304,50304,11,50332,50332,11,50360,50360,11,50388,50388,11,50416,50416,11,50444,50444,11,50472,50472,11,50500,50500,11,50528,50528,11,50556,50556,11,50584,50584,11,50612,50612,11,50640,50640,11,50668,50668,11,50696,50696,11,50724,50724,11,50752,50752,11,50780,50780,11,50808,50808,11,50836,50836,11,50864,50864,11,50892,50892,11,50920,50920,11,50948,50948,11,50976,50976,11,51004,51004,11,51032,51032,11,51060,51060,11,51088,51088,11,51116,51116,11,51144,51144,11,51172,51172,11,51200,51200,11,51228,51228,11,51256,51256,11,51284,51284,11,51312,51312,11,51340,51340,11,51368,51368,11,51396,51396,11,51424,51424,11,51452,51452,11,51480,51480,11,51508,51508,11,51536,51536,11,51564,51564,11,51592,51592,11,51620,51620,11,51648,51648,11,51676,51676,11,51704,51704,11,51732,51732,11,51760,51760,11,51788,51788,11,51816,51816,11,51844,51844,11,51872,51872,11,51900,51900,11,51928,51928,11,51956,51956,11,51984,51984,11,52012,52012,11,52040,52040,11,52068,52068,11,52096,52096,11,52124,52124,11,52152,52152,11,52180,52180,11,52208,52208,11,52236,52236,11,52264,52264,11,52292,52292,11,52320,52320,11,52348,52348,11,52376,52376,11,52404,52404,11,52432,52432,11,52460,52460,11,52488,52488,11,52516,52516,11,52544,52544,11,52572,52572,11,52600,52600,11,52628,52628,11,52656,52656,11,52684,52684,11,52712,52712,11,52740,52740,11,52768,52768,11,52796,52796,11,52824,52824,11,52852,52852,11,52880,52880,11,52908,52908,11,52936,52936,11,52964,52964,11,52992,52992,11,53020,53020,11,53048,53048,11,53076,53076,11,53104,53104,11,53132,53132,11,53160,53160,11,53188,53188,11,53216,53216,11,53244,53244,11,53272,53272,11,53300,53300,11,53328,53328,11,53356,53356,11,53384,53384,11,53412,53412,11,53440,53440,11,53468,53468,11,53496,53496,11,53524,53524,11,53552,53552,11,53580,53580,11,53608,53608,11,53636,53636,11,53664,53664,11,53692,53692,11,53720,53720,11,53748,53748,11,53776,53776,11,53804,53804,11,53832,53832,11,53860,53860,11,53888,53888,11,53916,53916,11,53944,53944,11,53972,53972,11,54000,54000,11,54028,54028,11,54056,54056,11,54084,54084,11,54112,54112,11,54140,54140,11,54168,54168,11,54196,54196,11,54224,54224,11,54252,54252,11,54280,54280,11,54308,54308,11,54336,54336,11,54364,54364,11,54392,54392,11,54420,54420,11,54448,54448,11,54476,54476,11,54504,54504,11,54532,54532,11,54560,54560,11,54588,54588,11,54616,54616,11,54644,54644,11,54672,54672,11,54700,54700,11,54728,54728,11,54756,54756,11,54784,54784,11,54812,54812,11,54840,54840,11,54868,54868,11,54896,54896,11,54924,54924,11,54952,54952,11,54980,54980,11,55008,55008,11,55036,55036,11,55064,55064,11,55092,55092,11,55120,55120,11,55148,55148,11,55176,55176,11,55216,55238,9,64286,64286,5,65056,65071,5,65438,65439,5,65529,65531,4,66272,66272,5,68097,68099,5,68108,68111,5,68159,68159,5,68900,68903,5,69446,69456,5,69632,69632,7,69634,69634,7,69744,69744,5,69759,69761,5,69808,69810,7,69815,69816,7,69821,69821,1,69837,69837,1,69927,69931,5,69933,69940,5,70003,70003,5,70018,70018,7,70070,70078,5,70082,70083,1,70094,70094,7,70188,70190,7,70194,70195,7,70197,70197,7,70206,70206,5,70368,70370,7,70400,70401,5,70459,70460,5,70463,70463,7,70465,70468,7,70475,70477,7,70498,70499,7,70512,70516,5,70712,70719,5,70722,70724,5,70726,70726,5,70832,70832,5,70835,70840,5,70842,70842,5,70845,70845,5,70847,70848,5,70850,70851,5,71088,71089,7,71096,71099,7,71102,71102,7,71132,71133,5,71219,71226,5,71229,71229,5,71231,71232,5,71340,71340,7,71342,71343,7,71350,71350,7,71453,71455,5,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,118528,118573,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123566,123566,5,125136,125142,5,126976,126979,14,126981,127182,14,127184,127231,14,127279,127279,14,127344,127345,14,127374,127374,14,127405,127461,14,127489,127490,14,127514,127514,14,127538,127546,14,127561,127567,14,127570,127743,14,127757,127758,14,127760,127760,14,127762,127762,14,127766,127768,14,127770,127770,14,127772,127772,14,127775,127776,14,127778,127779,14,127789,127791,14,127794,127795,14,127798,127798,14,127819,127819,14,127824,127824,14,127868,127868,14,127870,127871,14,127892,127893,14,127896,127896,14,127900,127901,14,127904,127940,14,127942,127942,14,127944,127944,14,127946,127946,14,127951,127955,14,127968,127971,14,127973,127984,14,127987,127987,14,127989,127989,14,127991,127991,14,127995,127999,5,128008,128008,14,128012,128014,14,128017,128018,14,128020,128020,14,128022,128022,14,128042,128042,14,128063,128063,14,128065,128065,14,128101,128101,14,128108,128109,14,128173,128173,14,128182,128183,14,128236,128237,14,128239,128239,14,128245,128245,14,128248,128248,14,128253,128253,14,128255,128258,14,128260,128263,14,128265,128265,14,128277,128277,14,128300,128301,14,128326,128328,14,128331,128334,14,128336,128347,14,128360,128366,14,128369,128370,14,128378,128378,14,128391,128391,14,128394,128397,14,128400,128400,14,128405,128406,14,128420,128420,14,128422,128423,14,128425,128432,14,128435,128443,14,128445,128449,14,128453,128464,14,128468,128475,14,128479,128480,14,128482,128482,14,128484,128487,14,128489,128494,14,128496,128498,14,128500,128505,14,128507,128511,14,128513,128518,14,128521,128525,14,128527,128527,14,128529,128529,14,128533,128533,14,128535,128535,14,128537,128537,14]")}getGraphemeBreakType(e){if(e<32)return 10===e?3:13===e?2:4;if(e<127)return 0;const t=this._data,i=t.length/3;let n=1;for(;n<=i;)if(et[3*n+1]))return t[3*n+2];n=2*n+1}return 0}})._INSTANCE=null,(Et=Wt=class e{static getInstance(t){return e.cache.get(Array.from(t))}static getLocales(){return e._locales.value}constructor(e){this.confusableDictionary=e}isAmbiguous(e){return this.confusableDictionary.has(e)}getPrimaryConfusable(e){return this.confusableDictionary.get(e)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}}).ambiguousCharacterData=new Nt(()=>JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,1523,96,8242,96,1370,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,118002,50,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,118003,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,118004,52,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,118005,53,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,118006,54,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,118007,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,118008,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,118009,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,117974,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,117975,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71913,67,71922,67,65315,67,8557,67,8450,67,8493,67,117976,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,117977,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,117978,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,117979,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,117980,71,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,117981,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,117983,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,117984,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,118001,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,117982,108,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,117985,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,117986,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,117987,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,118000,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,117988,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,117989,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,117990,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,117991,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,117992,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,117993,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,117994,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,117995,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71910,87,71919,87,117996,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,117997,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,117998,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,71909,90,66293,90,65338,90,8484,90,8488,90,117999,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65283,35,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"cs":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"es":[8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"fr":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"it":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"ja":[8211,45,8218,44,65281,33,8216,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65292,44,65297,49,65307,59],"ko":[8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"pt-BR":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"ru":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"zh-hans":[160,32,65374,126,8218,44,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65297,49],"zh-hant":[8211,45,65374,126,8218,44,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89]}')),Et.cache=new Lt({getCacheKey:JSON.stringify},e=>{function t(e){const t=new Map;for(let i=0;i!e.startsWith("_")&&Object.hasOwn(n,e));0===s.length&&(s=["_default"]);for(const a of s)o=i(o,t(n[a]));const r=function(e,t){const i=new Map(e);for(const[n,o]of t)i.set(n,o);return i}(t(n._common),o);return new Et(r)}),Et._locales=new Nt(()=>Object.keys(Et.ambiguousCharacterData.value).filter(e=>!e.startsWith("_"))),(Bt=class e{static getRawData(){return JSON.parse('{"_common":[11,12,13,127,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999],"cs":[173,8203,12288],"de":[173,8203,12288],"es":[8203,12288],"fr":[173,8203,12288],"it":[160,173,12288],"ja":[173],"ko":[173,12288],"pl":[173,8203,12288],"pt-BR":[173,8203,12288],"qps-ploc":[160,173,8203,12288],"ru":[173,12288],"tr":[160,173,8203,12288],"zh-hans":[160,173,8203,12288],"zh-hant":[173,12288]}')}static getData(){return this._data||(this._data=new Set([...Object.values(e.getRawData())].flat())),this._data}static isInvisibleCharacter(t){return e.getData().has(t)}static get codePoints(){return e.getData()}})._data=void 0,void 0!==(Ht=globalThis.vscode)&&void 0!==Ht.process){const e=Ht.process;Vt={get platform(){return e.platform},get arch(){return e.arch},get env(){return e.env},cwd:()=>e.cwd()}}else Vt="undefined"!=typeof process&&"string"==typeof process?.versions?.node?{get platform(){return process.platform},get arch(){return process.arch},get env(){return{}},cwd:()=>({}.VSCODE_CWD||process.cwd())}:{get platform(){return P?"win32":F?"darwin":"linux"},get arch(){},get env(){return{}},cwd:()=>"/"};var t,$n,Gn,Zn,Yn,Qn,pa,ma,fa;if(zt=Vt.cwd,Ut=Vt.env,Kt=Vt.platform,qt=65,jt=97,$t=90,Gt=122,Zt=46,Yt=47,Qt=92,Xt=58,Jt=class extends Error{constructor(e,t,i){let n;"string"==typeof t&&0===t.indexOf("not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";let o=`The "${e}" ${-1!==e.indexOf(".")?"property":"argument"} ${n} of type ${t}`;o+=". Received type "+typeof i,super(o),this.code="ERR_INVALID_ARG_TYPE"}},ei="win32"===Kt,ti={resolve(...e){let t="",i="",n=!1;for(let o=e.length-1;o>=-1;o--){let s;if(o>=0){if(s=e[o],Sde(s,`paths[${o}]`),0===s.length)continue}else 0===t.length?s=zt():(s=Ut[`=${t}`]||zt(),(void 0===s||s.slice(0,2).toLowerCase()!==t.toLowerCase()&&s.charCodeAt(2)===Qt)&&(s=`${t}\\`));const r=s.length;let a=0,l="",d=!1;const c=s.charCodeAt(0);if(1===r)xde(c)&&(a=1,d=!0);else if(xde(c))if(d=!0,xde(s.charCodeAt(1))){let e=2,t=e;for(;e2&&xde(s.charCodeAt(2))&&(d=!0,a=3));if(l.length>0)if(t.length>0){if(l.toLowerCase()!==t.toLowerCase())continue}else t=l;if(n){if(t.length>0)break}else if(i=`${s.slice(a)}\\${i}`,n=d,d&&t.length>0)break}return i=Dde(i,!n,"\\",xde),n?`${t}\\${i}`:`${t}${i}`||"."},normalize(e){Sde(e,"path");const t=e.length;if(0===t)return".";let i,n=0,o=!1;const s=e.charCodeAt(0);if(1===t)return kde(s)?"\\":e;if(xde(s))if(o=!0,xde(e.charCodeAt(1))){let o=2,s=o;for(;o2&&xde(e.charCodeAt(2))&&(o=!0,n=3));let r=n0&&xde(e.charCodeAt(t-1))&&(r+="\\"),!o&&void 0===i&&e.includes(":")){if(r.length>=2&&Lde(r.charCodeAt(0))&&r.charCodeAt(1)===Xt)return`.\\${r}`;let i=e.indexOf(":");do{if(i===t-1||xde(e.charCodeAt(i+1)))return`.\\${r}`}while(-1!==(i=e.indexOf(":",i+1)))}return void 0===i?o?`\\${r}`:r:o?`${i}\\${r}`:`${i}${r}`},isAbsolute(e){Sde(e,"path");const t=e.length;if(0===t)return!1;const i=e.charCodeAt(0);return xde(i)||t>2&&Lde(i)&&e.charCodeAt(1)===Xt&&xde(e.charCodeAt(2))},join(...e){if(0===e.length)return".";let t,i;for(let s=0;s0&&(void 0===t?t=i=n:t+=`\\${n}`)}if(void 0===t)return".";let n=!0,o=0;if("string"==typeof i&&xde(i.charCodeAt(0))){++o;const e=i.length;e>1&&xde(i.charCodeAt(1))&&(++o,e>2&&(xde(i.charCodeAt(2))?++o:n=!1))}if(n){for(;o=2&&(t=`\\${t.slice(o)}`)}return ti.normalize(t)},relative(e,t){if(Sde(e,"from"),Sde(t,"to"),e===t)return"";const i=ti.resolve(e),n=ti.resolve(t);if(i===n)return"";if((e=i.toLowerCase())===(t=n.toLowerCase()))return"";if(i.length!==e.length||n.length!==t.length){const e=i.split("\\"),t=n.split("\\");""===e[e.length-1]&&e.pop(),""===t[t.length-1]&&t.pop();const o=e.length,s=t.length,r=or?t.slice(a).join("\\"):o>r?"..\\".repeat(o-1-a)+"..":"":"..\\".repeat(o-a)+t.slice(a).join("\\")}let o=0;for(;oo&&e.charCodeAt(s-1)===Qt;)s--;const r=s-o;let a=0;for(;aa&&t.charCodeAt(l-1)===Qt;)l--;const d=l-a,c=rc){if(t.charCodeAt(a+u)===Qt)return n.slice(a+u+1);if(2===u)return n.slice(a+u)}r>c&&(e.charCodeAt(o+u)===Qt?h=u:2===u&&(h=3)),-1===h&&(h=0)}let g="";for(u=o+h+1;u<=s;++u)u!==s&&e.charCodeAt(u)!==Qt||(g+=0===g.length?"..":"\\..");return a+=h,g.length>0?`${g}${n.slice(a,l)}`:(n.charCodeAt(a)===Qt&&++a,n.slice(a,l))},toNamespacedPath(e){if("string"!=typeof e||0===e.length)return e;const t=ti.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===Qt){if(t.charCodeAt(1)===Qt){const e=t.charCodeAt(2);if(63!==e&&e!==Zt)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(Lde(t.charCodeAt(0))&&t.charCodeAt(1)===Xt&&t.charCodeAt(2)===Qt)return`\\\\?\\${t}`;return t},dirname(e){Sde(e,"path");const t=e.length;if(0===t)return".";let i=-1,n=0;const o=e.charCodeAt(0);if(1===t)return xde(o)?e:".";if(xde(o)){if(i=n=1,xde(e.charCodeAt(1))){let o=2,s=o;for(;o2&&xde(e.charCodeAt(2))?3:2,n=i);let s=-1,r=!0;for(let a=t-1;a>=n;--a)if(xde(e.charCodeAt(a))){if(!r){s=a;break}}else r=!1;if(-1===s){if(-1===i)return".";s=i}return e.slice(0,s)},basename(e,t){void 0!==t&&Sde(t,"suffix"),Sde(e,"path");let i,n=0,o=-1,s=!0;if(e.length>=2&&Lde(e.charCodeAt(0))&&e.charCodeAt(1)===Xt&&(n=2),void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let r=t.length-1,a=-1;for(i=e.length-1;i>=n;--i){const l=e.charCodeAt(i);if(xde(l)){if(!s){n=i+1;break}}else-1===a&&(s=!1,a=i+1),r>=0&&(l===t.charCodeAt(r)?-1===--r&&(o=i):(r=-1,o=a))}return n===o?o=a:-1===o&&(o=e.length),e.slice(n,o)}for(i=e.length-1;i>=n;--i)if(xde(e.charCodeAt(i))){if(!s){n=i+1;break}}else-1===o&&(s=!1,o=i+1);return-1===o?"":e.slice(n,o)},extname(e){Sde(e,"path");let t=0,i=-1,n=0,o=-1,s=!0,r=0;e.length>=2&&e.charCodeAt(1)===Xt&&Lde(e.charCodeAt(0))&&(t=n=2);for(let a=e.length-1;a>=t;--a){const t=e.charCodeAt(a);if(xde(t)){if(!s){n=a+1;break}}else-1===o&&(s=!1,o=a+1),t===Zt?-1===i?i=a:1!==r&&(r=1):-1!==i&&(r=-1)}return-1===i||-1===o||0===r||1===r&&i===o-1&&i===n+1?"":e.slice(i,o)},format:Ide.bind(null,"\\"),parse(e){Sde(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const i=e.length;let n=0,o=e.charCodeAt(0);if(1===i)return xde(o)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(xde(o)){if(n=1,xde(e.charCodeAt(1))){let t=2,o=t;for(;t0&&(t.root=e.slice(0,n));let s=-1,r=n,a=-1,l=!0,d=e.length-1,c=0;for(;d>=n;--d)if(o=e.charCodeAt(d),xde(o)){if(!l){r=d+1;break}}else-1===a&&(l=!1,a=d+1),o===Zt?-1===s?s=d:1!==c&&(c=1):-1!==s&&(c=-1);return-1!==a&&(-1===s||0===c||1===c&&s===a-1&&s===r+1?t.base=t.name=e.slice(r,a):(t.name=e.slice(r,s),t.base=e.slice(r,a),t.ext=e.slice(s,a))),t.dir=r>0&&r!==n?e.slice(0,r-1):t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},ii=(()=>{if(ei){const e=/\\/g;return()=>{const t=zt().replace(e,"/");return t.slice(t.indexOf("/"))}}return()=>zt()})(),ni={resolve(...e){let t="",i=!1;for(let n=e.length-1;n>=0&&!i;n--){const o=e[n];Sde(o,`paths[${n}]`),0!==o.length&&(t=`${o}/${t}`,i=o.charCodeAt(0)===Yt)}if(!i){const e=ii();t=`${e}/${t}`,i=e.charCodeAt(0)===Yt}return t=Dde(t,!i,"/",kde),i?`/${t}`:t.length>0?t:"."},normalize(e){if(Sde(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===Yt,i=e.charCodeAt(e.length-1)===Yt;return 0===(e=Dde(e,!t,"/",kde)).length?t?"/":i?"./":".":(i&&(e+="/"),t?`/${e}`:e)},isAbsolute:e=>(Sde(e,"path"),e.length>0&&e.charCodeAt(0)===Yt),join(...e){if(0===e.length)return".";const t=[];for(let i=0;i0&&t.push(n)}return 0===t.length?".":ni.normalize(t.join("/"))},relative(e,t){if(Sde(e,"from"),Sde(t,"to"),e===t)return"";if((e=ni.resolve(e))===(t=ni.resolve(t)))return"";const i=e.length,n=i-1,o=t.length-1,s=ns){if(t.charCodeAt(1+a)===Yt)return t.slice(1+a+1);if(0===a)return t.slice(1+a)}else n>s&&(e.charCodeAt(1+a)===Yt?r=a:0===a&&(r=0));let l="";for(a=1+r+1;a<=i;++a)a!==i&&e.charCodeAt(a)!==Yt||(l+=0===l.length?"..":"/..");return`${l}${t.slice(1+r)}`},toNamespacedPath:e=>e,dirname(e){if(Sde(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===Yt;let i=-1,n=!0;for(let o=e.length-1;o>=1;--o)if(e.charCodeAt(o)===Yt){if(!n){i=o;break}}else n=!1;return-1===i?t?"/":".":t&&1===i?"//":e.slice(0,i)},basename(e,t){void 0!==t&&Sde(t,"suffix"),Sde(e,"path");let i,n=0,o=-1,s=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let r=t.length-1,a=-1;for(i=e.length-1;i>=0;--i){const l=e.charCodeAt(i);if(l===Yt){if(!s){n=i+1;break}}else-1===a&&(s=!1,a=i+1),r>=0&&(l===t.charCodeAt(r)?-1===--r&&(o=i):(r=-1,o=a))}return n===o?o=a:-1===o&&(o=e.length),e.slice(n,o)}for(i=e.length-1;i>=0;--i)if(e.charCodeAt(i)===Yt){if(!s){n=i+1;break}}else-1===o&&(s=!1,o=i+1);return-1===o?"":e.slice(n,o)},extname(e){Sde(e,"path");let t=-1,i=0,n=-1,o=!0,s=0;for(let r=e.length-1;r>=0;--r){const a=e[r];if("/"!==a)-1===n&&(o=!1,n=r+1),"."===a?-1===t?t=r:1!==s&&(s=1):-1!==t&&(s=-1);else if(!o){i=r+1;break}}return-1===t||-1===n||0===s||1===s&&t===n-1&&t===i+1?"":e.slice(t,n)},format:Ide.bind(null,"/"),parse(e){Sde(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const i=e.charCodeAt(0)===Yt;let n;i?(t.root="/",n=1):n=0;let o=-1,s=0,r=-1,a=!0,l=e.length-1,d=0;for(;l>=n;--l){const t=e.charCodeAt(l);if(t!==Yt)-1===r&&(a=!1,r=l+1),t===Zt?-1===o?o=l:1!==d&&(d=1):-1!==o&&(d=-1);else if(!a){s=l+1;break}}if(-1!==r){const n=0===s&&i?1:s;-1===o||0===d||1===d&&o===r-1&&o===s+1?t.base=t.name=e.slice(n,r):(t.name=e.slice(n,o),t.base=e.slice(n,r),t.ext=e.slice(o,r))}return s>0?t.dir=e.slice(0,s-1):i&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null},ni.win32=ti.win32=ti,ni.posix=ti.posix=ni,oi=ei?ti.normalize:ni.normalize,si=ei?ti.resolve:ni.resolve,ri=ei?ti.relative:ni.relative,ai=ei?ti.dirname:ni.dirname,li=ei?ti.basename:ni.basename,di=ei?ti.extname:ni.extname,ci=ei?ti.sep:ni.sep,hi=/^\w[\w\d+.-]*$/,ui=/^\//,gi=/^\/\//,pi="",mi="/",fi=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,_i=class e{static isUri(t){return t instanceof e||!(!t||"object"!=typeof t)&&"string"==typeof t.authority&&"string"==typeof t.fragment&&"string"==typeof t.path&&"string"==typeof t.query&&"string"==typeof t.scheme&&"string"==typeof t.fsPath&&"function"==typeof t.with&&"function"==typeof t.toString}constructor(e,t,i,n,o,s=!1){"object"==typeof e?(this.scheme=e.scheme||pi,this.authority=e.authority||pi,this.path=e.path||pi,this.query=e.query||pi,this.fragment=e.fragment||pi):(this.scheme=function(e,t){return e||t?e:"file"}(e,s),this.authority=t||pi,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==mi&&(t=mi+t):t=mi}return t}(this.scheme,i||pi),this.query=n||pi,this.fragment=o||pi,function(e,t){if(!e.scheme&&t)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!hi.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!ui.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(gi.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}(this,s))}get fsPath(){return Mde(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:i,path:n,query:o,fragment:s}=e;return void 0===t?t=this.scheme:null===t&&(t=pi),void 0===i?i=this.authority:null===i&&(i=pi),void 0===n?n=this.path:null===n&&(n=pi),void 0===o?o=this.query:null===o&&(o=pi),void 0===s?s=this.fragment:null===s&&(s=pi),t===this.scheme&&i===this.authority&&n===this.path&&o===this.query&&s===this.fragment?this:new vi(t,i,n,o,s)}static parse(e,t=!1){const i=fi.exec(e);return i?new vi(i[2]||pi,Ode(i[4]||pi),Ode(i[5]||pi),Ode(i[7]||pi),Ode(i[9]||pi),t):new vi(pi,pi,pi,pi,pi)}static file(e){let t=pi;if(P&&(e=e.replace(/\\/g,mi)),e[0]===mi&&e[1]===mi){const i=e.indexOf(mi,2);-1===i?(t=e.substring(2),e=mi):(t=e.substring(2,i),e=e.substring(i)||mi)}return new vi("file",t,e,pi,pi)}static from(e,t){return new vi(e.scheme,e.authority,e.path,e.query,e.fragment,t)}static joinPath(t,...i){if(!t.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let n;return n=P&&"file"===t.scheme?e.file(ti.join(Mde(t,!0),...i)).path:ni.join(t.path,...i),t.with({path:n})}toString(e=!1){return Tde(this,e)}toJSON(){return this}static revive(t){if(t){if(t instanceof e)return t;{const e=new vi(t);return e._formatted=t.external??null,e._fsPath=t._sep===bi?t.fsPath??null:null,e}}return t}},bi=P?1:void 0,vi=class extends _i{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=Mde(this,!1)),this._fsPath}toString(e=!1){return e?Tde(this,!0):(this._formatted||(this._formatted=Tde(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=bi),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}},wi={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"},Ci=/(%[0-9A-Za-z][0-9A-Za-z])+/g,function(e){e.inMemory="inmemory",e.vscode="vscode",e.internal="private",e.walkThrough="walkThrough",e.walkThroughSnippet="walkThroughSnippet",e.http="http",e.https="https",e.file="file",e.mailto="mailto",e.untitled="untitled",e.data="data",e.command="command",e.vscodeRemote="vscode-remote",e.vscodeRemoteResource="vscode-remote-resource",e.vscodeManagedRemoteResource="vscode-managed-remote-resource",e.vscodeUserData="vscode-userdata",e.vscodeCustomEditor="vscode-custom-editor",e.vscodeNotebookCell="vscode-notebook-cell",e.vscodeNotebookCellMetadata="vscode-notebook-cell-metadata",e.vscodeNotebookCellMetadataDiff="vscode-notebook-cell-metadata-diff",e.vscodeNotebookCellOutput="vscode-notebook-cell-output",e.vscodeNotebookCellOutputDiff="vscode-notebook-cell-output-diff",e.vscodeNotebookMetadata="vscode-notebook-metadata",e.vscodeInteractiveInput="vscode-interactive-input",e.vscodeSettings="vscode-settings",e.vscodeWorkspaceTrust="vscode-workspace-trust",e.vscodeTerminal="vscode-terminal",e.vscodeChatCodeBlock="vscode-chat-code-block",e.vscodeChatCodeCompareBlock="vscode-chat-code-compare-block",e.vscodeChatEditor="vscode-chat-editor",e.vscodeChatInput="chatSessionInput",e.vscodeLocalChatSession="vscode-chat-session",e.webviewPanel="webview-panel",e.vscodeWebview="vscode-webview",e.extension="extension",e.vscodeFileResource="vscode-file",e.tmp="tmp",e.vsls="vsls",e.vscodeSourceControl="vscode-scm",e.commentsInput="comment",e.codeSetting="code-setting",e.outputChannel="output",e.accessibleView="accessible-view",e.chatEditingSnapshotScheme="chat-editing-snapshot-text-model",e.chatEditingModel="chat-editing-text-model",e.copilotPr="copilot-pr"}(yi||(yi={})),Si=new class{constructor(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null,this._serverRootPath="/"}setPreferredWebSchema(e){this._preferredWebSchema=e}get _remoteResourcesPath(){return ni.join(this._serverRootPath,yi.vscodeRemoteResource)}rewrite(e){if(this._delegate)try{return this._delegate(e)}catch(r){return $ae(r),e}const t=e.authority;let i=this._hosts[t];i&&-1!==i.indexOf(":")&&-1===i.indexOf("[")&&(i=`[${i}]`);const n=this._ports[t],o=this._connectionTokens[t];let s=`path=${encodeURIComponent(e.path)}`;return"string"==typeof o&&(s+=`&tkn=${encodeURIComponent(o)}`),_i.from({scheme:V?this._preferredWebSchema:yi.vscodeRemoteResource,authority:`${i}:${n}`,path:this._remoteResourcesPath,query:s})}},(xi=class e{uriToBrowserUri(t){return t.scheme===yi.vscodeRemote?Si.rewrite(t):t.scheme!==yi.file||!B&&z!==`${yi.vscodeFileResource}://${e.FALLBACK_AUTHORITY}`?t:t.with({scheme:yi.vscodeFileResource,authority:t.authority||e.FALLBACK_AUTHORITY,query:null,fragment:null})}}).FALLBACK_AUTHORITY="vscode-app",ki=new xi,function(e){const t=new Map([["1",{"Cross-Origin-Opener-Policy":"same-origin"}],["2",{"Cross-Origin-Embedder-Policy":"require-corp"}],["3",{"Cross-Origin-Opener-Policy":"same-origin","Cross-Origin-Embedder-Policy":"require-corp"}]]);e.CoopAndCoep=Object.freeze(t.get("3"));const i="vscode-coi";e.getHeadersFromQuery=function(e){let n;"string"==typeof e?n=new URL(e).searchParams:e instanceof URL?n=e.searchParams:_i.isUri(e)&&(n=new URL(e.toString(!0)).searchParams);const o=n?.get(i);if(o)return t.get(o)},e.addSearchParam=function(e,t,n){if(!globalThis.crossOriginIsolated)return;const o=t&&n?"3":n?"2":"1";e instanceof URLSearchParams?e.set(i,o):e[i]=o}}(Li||(Li={})),Di="undefined"!=typeof Buffer,new Nt(()=>new Uint8Array(256)),Ni=class e{static wrap(t){return Di&&!Buffer.isBuffer(t)&&(t=Buffer.from(t.buffer,t.byteOffset,t.byteLength)),new e(t)}constructor(e){this.buffer=e,this.byteLength=this.buffer.byteLength}toString(){return Di?this.buffer.toString():(Ii||(Ii=new TextDecoder),Ii.decode(this.buffer))}},Ei="0123456789abcdef",(Mi=class e{constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(e){const t=e.length;if(0===t)return;const i=this._buff;let n,o,s=this._buffLen,r=this._leftoverHighSurrogate;for(0!==r?(n=r,o=-1,r=0):(n=e.charCodeAt(0),o=0);;){let a=n;if(ade(n)){if(!(o+1>>6,e[t++]=128|(63&i)>>>0):i<65536?(e[t++]=224|(61440&i)>>>12,e[t++]=128|(4032&i)>>>6,e[t++]=128|(63&i)>>>0):(e[t++]=240|(1835008&i)>>>18,e[t++]=128|(258048&i)>>>12,e[t++]=128|(4032&i)>>>6,e[t++]=128|(63&i)>>>0),t>=64&&(this._step(),t-=64,this._totalLen+=64,e[0]=e[64],e[1]=e[65],e[2]=e[66]),t}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),Gde(this._h0)+Gde(this._h1)+Gde(this._h2)+Gde(this._h3)+Gde(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,this._buff.subarray(this._buffLen).fill(0),this._buffLen>56&&(this._step(),this._buff.fill(0));const e=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(e/4294967296),!1),this._buffDV.setUint32(60,e%4294967296,!1),this._step()}_step(){const t=e._bigBlock32,i=this._buffDV;for(let e=0;e<64;e+=4)t.setUint32(e,i.getUint32(e,!1),!1);for(let e=64;e<320;e+=4)t.setUint32(e,$de(t.getUint32(e-12,!1)^t.getUint32(e-32,!1)^t.getUint32(e-56,!1)^t.getUint32(e-64,!1),1),!1);let n,o,s,r=this._h0,a=this._h1,l=this._h2,d=this._h3,c=this._h4;for(let e=0;e<80;e++)e<20?(n=a&l|~a&d,o=1518500249):e<40?(n=a^l^d,o=1859775393):e<60?(n=a&l|a&d|l&d,o=2400959708):(n=a^l^d,o=3395469782),s=$de(r,5)+n+c+o+t.getUint32(4*e,!1)&4294967295,c=d,d=l,l=$de(a,30),a=r,r=s;this._h0=this._h0+r&4294967295,this._h1=this._h1+a&4294967295,this._h2=this._h2+l&4294967295,this._h3=this._h3+d&4294967295,this._h4=this._h4+c&4294967295}})._bigBlock32=new DataView(new ArrayBuffer(320)),function(e){e.isLessThan=function(e){return e<0},e.isLessThanOrEqual=function(e){return e<=0},e.isGreaterThan=function(e){return e>0},e.isNeitherLessOrGreaterThan=function(e){return 0===e},e.greaterThan=1,e.lessThan=-1,e.neitherLessOrGreaterThan=0}(Ri||(Ri={})),Oi=(e,t)=>e-t,Ai=(e,t)=>Oi(e?1:0,t?1:0),Pi=class{constructor(e){this.firstIdx=0,this.items=e,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(e){let t=this.firstIdx;for(;t=0&&e(this.items[t]);)t--;const i=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,i}peek(){if(0!==this.length)return this.items[this.firstIdx]}dequeue(){const e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){const t=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,t}},Fi=class e{constructor(e){this.iterate=e}toArray(){const e=[];return this.iterate(t=>(e.push(t),!0)),e}filter(t){return new e(e=>this.iterate(i=>!t(i)||e(i)))}map(t){return new e(e=>this.iterate(i=>e(t(i))))}findLast(e){let t;return this.iterate(i=>(e(i)&&(t=i),!0)),t}findLastMaxBy(e){let t,i=!0;return this.iterate(n=>((i||Ri.isGreaterThan(e(n,t)))&&(i=!1,t=n),!0)),t}},(Ti=Fi).empty=new Ti(e=>{}),Wi=class e{constructor(e){this._indexMap=e}static createSortPermutation(t,i){return new e(Array.from(t.keys()).sort((e,n)=>i(t[e],t[n])))}apply(e){return e.map((t,i)=>e[this._indexMap[i]])}inverse(){const t=this._indexMap.slice();for(let e=0;ee===t,Ki=class{constructor(e,t,i){this.owner=e,this.debugNameSource=t,this.referenceFn=i}getDebugName(e){return Sce(e,this)}},qi=new Map,ji=new WeakMap,$i=new Map,Gi=new WeakMap,Qi=class{get TChange(){return null}reportChanges(){this.get()}read(e){return e?e.readObservable(this):this.get()}map(e,t,i=Hi.ofCaller()){const n=void 0===t?void 0:e,o=void 0===t?e:t;return Zi({owner:n,debugName:()=>{const e=kce(o);if(void 0!==e)return e;const t=/^\s*\(?\s*([a-zA-Z_$][a-zA-Z_$0-9]*)\s*\)?\s*=>\s*\1(?:\??)\.([a-zA-Z_$][a-zA-Z_$0-9]*)\s*$/.exec(o.toString());return t?`${this.debugName}.${t[2]}`:n?void 0:`${this.debugName} (mapped)`},debugReferenceFn:o},e=>o(this.read(e),e),i)}flatten(){return Zi({owner:void 0,debugName:()=>`${this.debugName} (flattened)`},e=>this.read(e).read(e))}recomputeInitiallyAndOnChange(e,t){return e.add(Yi(this,t)),this}},Xi=class extends Qi{constructor(e){super(),this._observers=new Set,vce()?.handleObservableCreated(this,e)}addObserver(e){const t=this._observers.size;this._observers.add(e),0===t&&this.onFirstObserverAdded(),t!==this._observers.size&&vce()?.handleOnListenerCountChanged(this,this._observers.size)}removeObserver(e){const t=this._observers.delete(e);t&&0===this._observers.size&&this.onLastObserverRemoved(),t&&vce()?.handleOnListenerCountChanged(this,this._observers.size)}onFirstObserverAdded(){}onLastObserverRemoved(){}debugGetObservers(){return this._observers}},Ji=class extends Xi{get debugName(){return this._debugNameData.getDebugName(this)??"(anonymous)"}constructor(e,t,i,n=void 0,o,s){super(s),this._debugNameData=e,this._computeFn=t,this._changeTracker=i,this._handleLastObserverRemoved=n,this._equalityComparator=o,this._state=0,this._value=void 0,this._updateCount=0,this._dependencies=new Set,this._dependenciesToBeRemoved=new Set,this._changeSummary=void 0,this._isUpdating=!1,this._isComputing=!1,this._didReportChange=!1,this._isInBeforeUpdate=!1,this._isReaderValid=!1,this._store=void 0,this._delayedStore=void 0,this._removedObserverToCallEndUpdateOn=null,this._changeSummary=this._changeTracker?.createChangeSummary(void 0)}onLastObserverRemoved(){this._state=0,this._value=void 0,vce()?.handleDerivedCleared(this);for(const e of this._dependencies)e.removeObserver(this);this._dependencies.clear(),void 0!==this._store&&(this._store.dispose(),this._store=void 0),void 0!==this._delayedStore&&(this._delayedStore.dispose(),this._delayedStore=void 0),this._handleLastObserverRemoved?.()}get(){if(this._isComputing,0===this._observers.size){let e;try{let t;this._isReaderValid=!0,this._changeTracker&&(t=this._changeTracker.createChangeSummary(void 0),this._changeTracker.beforeUpdate?.(this,t)),e=this._computeFn(this,t)}finally{this._isReaderValid=!1}return this.onLastObserverRemoved(),e}do{if(1===this._state)for(const e of this._dependencies)if(e.reportChanges(),2===this._state)break;1===this._state&&(this._state=3),3!==this._state&&this._recompute()}while(3!==this._state);return this._value}_recompute(){let e=!1;this._isComputing=!0,this._didReportChange=!1;const t=this._dependenciesToBeRemoved;this._dependenciesToBeRemoved=this._dependencies,this._dependencies=t;try{const t=this._changeSummary;this._isReaderValid=!0,this._changeTracker&&(this._isInBeforeUpdate=!0,this._changeTracker.beforeUpdate?.(this,t),this._isInBeforeUpdate=!1,this._changeSummary=this._changeTracker?.createChangeSummary(t));const i=0!==this._state,n=this._value;this._state=3;const o=this._delayedStore;void 0!==o&&(this._delayedStore=void 0);try{void 0!==this._store&&(this._store.dispose(),this._store=void 0),this._value=this._computeFn(this,t)}finally{this._isReaderValid=!1;for(const e of this._dependenciesToBeRemoved)e.removeObserver(this);this._dependenciesToBeRemoved.clear(),void 0!==o&&o.dispose()}e=this._didReportChange||i&&!this._equalityComparator(n,this._value),vce()?.handleObservableUpdated(this,{oldValue:n,newValue:this._value,change:void 0,didChange:e,hadValue:i})}catch(Fae){jae(Fae)}if(this._isComputing=!1,!this._didReportChange&&e)for(const i of this._observers)i.handleChange(this,void 0);else this._didReportChange=!1}toString(){return`LazyDerived<${this.debugName}>`}beginUpdate(e){if(this._isUpdating)throw new y("Cyclic deriveds are not supported yet!");this._updateCount++,this._isUpdating=!0;try{const e=1===this._updateCount;if(3===this._state&&(this._state=1,!e))for(const t of this._observers)t.handlePossibleChange(this);if(e)for(const t of this._observers)t.beginUpdate(this)}finally{this._isUpdating=!1}}endUpdate(e){if(this._updateCount--,0===this._updateCount){const e=[...this._observers];for(const t of e)t.endUpdate(this);if(this._removedObserverToCallEndUpdateOn){const e=[...this._removedObserverToCallEndUpdateOn];this._removedObserverToCallEndUpdateOn=null;for(const t of e)t.endUpdate(this)}}nle(()=>this._updateCount>=0)}handlePossibleChange(e){if(3===this._state&&this._dependencies.has(e)&&!this._dependenciesToBeRemoved.has(e)){this._state=1;for(const e of this._observers)e.handlePossibleChange(this)}}handleChange(e,t){if(this._dependencies.has(e)&&!this._dependenciesToBeRemoved.has(e)||this._isInBeforeUpdate){vce()?.handleDerivedDependencyChanged(this,e,t);let i=!1;try{i=!this._changeTracker||this._changeTracker.handleChange({changedObservable:e,change:t,didChange:t=>t===e},this._changeSummary)}catch(Fae){jae(Fae)}const n=3===this._state;if(i&&(1===this._state||n)&&(this._state=2,n))for(const e of this._observers)e.handlePossibleChange(this)}}_ensureReaderValid(){if(!this._isReaderValid)throw new y("The reader object cannot be used outside its compute function!")}readObservable(e){this._ensureReaderValid(),e.addObserver(this);const t=e.get();return this._dependencies.add(e),this._dependenciesToBeRemoved.delete(e),t}get store(){return this._ensureReaderValid(),void 0===this._store&&(this._store=new De),this._store}addObserver(e){const t=!this._observers.has(e)&&this._updateCount>0;super.addObserver(e),t&&(this._removedObserverToCallEndUpdateOn&&this._removedObserverToCallEndUpdateOn.has(e)?this._removedObserverToCallEndUpdateOn.delete(e):e.beginUpdate(this))}removeObserver(e){this._observers.has(e)&&this._updateCount>0&&(this._removedObserverToCallEndUpdateOn||(this._removedObserverToCallEndUpdateOn=new Set),this._removedObserverToCallEndUpdateOn.add(e)),super.removeObserver(e)}debugGetState(){return{state:this._state,stateStr:Lce(this._state),updateCount:this._updateCount,isComputing:this._isComputing,dependencies:this._dependencies,value:this._value}}debugSetValue(e){this._value=e}debugRecompute(){this._isComputing?this._state=2:this._recompute()}setValue(e,t,i){this._value=e;const n=this._observers;t.updateObserver(this,this);for(const o of n)o.handleChange(this,i)}},en=class extends Ji{constructor(e,t,i,n=void 0,o,s,r){super(e,t,i,n,o,r),this.set=s}},function(e){Zi=e}(Nce),tn=class{get debugName(){return this._debugNameData.getDebugName(this)??"(anonymous)"}constructor(e,t,i,n){this._debugNameData=e,this._runFn=t,this._changeTracker=i,this._state=2,this._updateCount=0,this._disposed=!1,this._dependencies=new Set,this._dependenciesToBeRemoved=new Set,this._isRunning=!1,this._store=void 0,this._delayedStore=void 0,this._changeSummary=this._changeTracker?.createChangeSummary(void 0),vce()?.handleAutorunCreated(this,n),this._run()}dispose(){if(!this._disposed){this._disposed=!0;for(const e of this._dependencies)e.removeObserver(this);this._dependencies.clear(),void 0!==this._store&&this._store.dispose(),void 0!==this._delayedStore&&this._delayedStore.dispose(),vce()?.handleAutorunDisposed(this)}}_run(){const e=this._dependenciesToBeRemoved;this._dependenciesToBeRemoved=this._dependencies,this._dependencies=e,this._state=3;try{if(!this._disposed){vce()?.handleAutorunStarted(this);const e=this._changeSummary,t=this._delayedStore;void 0!==t&&(this._delayedStore=void 0);try{this._isRunning=!0,this._changeTracker&&(this._changeTracker.beforeUpdate?.(this,e),this._changeSummary=this._changeTracker.createChangeSummary(e)),void 0!==this._store&&(this._store.dispose(),this._store=void 0),this._runFn(this,e)}catch(Fae){jae(Fae)}finally{this._isRunning=!1,void 0!==t&&t.dispose()}}}finally{this._disposed||vce()?.handleAutorunFinished(this);for(const e of this._dependenciesToBeRemoved)e.removeObserver(this);this._dependenciesToBeRemoved.clear()}}toString(){return`Autorun<${this.debugName}>`}beginUpdate(e){3===this._state&&(this._state=1),this._updateCount++}endUpdate(e){try{if(1===this._updateCount)do{if(1===this._state){this._state=3;for(const e of this._dependencies)if(e.reportChanges(),2===this._state)break}3!==this._state&&this._run()}while(3!==this._state)}finally{this._updateCount--}nle(()=>this._updateCount>=0)}handlePossibleChange(e){3===this._state&&this._isDependency(e)&&(this._state=1)}handleChange(e,t){if(this._isDependency(e)){vce()?.handleAutorunDependencyChanged(this,e,t);try{this._changeTracker&&!this._changeTracker.handleChange({changedObservable:e,change:t,didChange:t=>t===e},this._changeSummary)||(this._state=2)}catch(Fae){jae(Fae)}}}_isDependency(e){return this._dependencies.has(e)&&!this._dependenciesToBeRemoved.has(e)}_ensureNoRunning(){if(!this._isRunning)throw new y("The reader object cannot be used outside its compute function!")}readObservable(e){if(this._ensureNoRunning(),this._disposed)return e.get();e.addObserver(this);const t=e.get();return this._dependencies.add(e),this._dependenciesToBeRemoved.delete(e),t}get store(){if(this._ensureNoRunning(),this._disposed)throw new y("Cannot access store after dispose");return void 0===this._store&&(this._store=new De),this._store}debugGetState(){return{isRunning:this._isRunning,updateCount:this._updateCount,dependencies:this._dependencies,state:this._state,stateStr:Tce(this._state)}}debugRerun(){this._isRunning?this._state=2:this._run()}},nn=void 0,on=class{constructor(e,t){this._fn=e,this._getDebugName=t,this._updatingObservers=[],vce()?.handleBeginTransaction(this)}getDebugName(){return this._getDebugName?this._getDebugName():kce(this._fn)}updateObserver(e,t){if(!this._updatingObservers)return Fce("Transaction already finished!"),void Wce(i=>{i.updateObserver(e,t)});this._updatingObservers.push({observer:e,observable:t}),e.beginUpdate(t)}finish(){const e=this._updatingObservers;if(e){for(let t=0;t{const t=this._getValue(e),i=this._value,n=!this._hasValue||!this._equalityComparator(i,t);let o=!1;n&&(this._value=t,this._hasValue&&(o=!0,Vce(this._getTransaction(),e=>{vce()?.handleObservableUpdated(this,{oldValue:i,newValue:t,change:void 0,didChange:n,hadValue:this._hasValue});for(const t of this._observers)e.updateObserver(t,this),t.handleChange(this,void 0)},()=>{const e=this.getDebugName();return"Event fired"+(e?`: ${e}`:"")})),this._hasValue=!0),o||vce()?.handleObservableUpdated(this,{oldValue:i,newValue:t,change:void 0,didChange:n,hadValue:this._hasValue})}}getDebugName(){return this._debugNameData.getDebugName(this)}get debugName(){const e=this.getDebugName();return"From Event"+(e?`: ${e}`:"")}onFirstObserverAdded(){this._subscription=this.event(this.handleEvent)}onLastObserverRemoved(){this._subscription.dispose(),this._subscription=void 0,this._hasValue=!1,this._value=void 0}get(){return this._subscription?(this._hasValue||this.handleEvent(void 0),this._value):this._getValue(void 0)}debugSetValue(e){this._value=e}debugGetState(){return{value:this._value,hasValue:this._hasValue}}},function(e){e.Observer=sn,e.batchEventsGlobally=function(e,t){let i=!1;void 0===sn.globalTransaction&&(sn.globalTransaction=e,i=!0);try{t()}finally{i&&(sn.globalTransaction=void 0)}}}(Hce||(Hce={})),function(e){Yi=e}(Kce),rn=class{constructor(e,t){this._forceRecompute=e,this._handleValue=t,this._counter=0}beginUpdate(e){this._counter++}endUpdate(e){1===this._counter&&this._forceRecompute&&(this._handleValue?this._handleValue(e.get()):e.reportChanges()),this._counter--}handlePossibleChange(e){}handleChange(e,t){}},an=class{constructor(e,t){this._map=e,this._keySelector=t,this._cache=new Map,this._items=[]}dispose(){this._cache.forEach(e=>e.store.dispose()),this._cache.clear()}setItems(e){const t=[],i=new Set(this._cache.keys());for(const n of e){const e=this._keySelector?this._keySelector(n):n;let o=this._cache.get(e);if(o)i.delete(e);else{const t=new De;o={out:this._map(n,t),store:t},this._cache.set(e,o)}t.push(o.out)}for(const n of i)this._cache.get(n).store.dispose(),this._cache.delete(n);this._items=t}getItems(){return this._items}},ln=class e{static createClient(t,i){return new e(t,i)}constructor(e,t){this._channelFactory=e,this._getHandler=t,this._channel=this._channelFactory({handleNotification:e=>{const t=e,i=this._getHandler().notifications[t[0]];if(!i)throw new Error(`Unknown notification "${t[0]}"!`);i(...t[1])},handleRequest:e=>{const t=e;try{return{type:"result",value:this._getHandler().requests[t[0]](...t[1])}}catch(Fae){return{type:"error",value:Fae}}}});const i=new Proxy({},{get:(e,t)=>async(...e)=>{const i=await this._channel.sendRequest([t,e]);if("error"===i.type)throw i.value;return i.value}});this.api={notifications:new Proxy({},{get:(e,t)=>(...e)=>{this._channel.sendNotification([t,e])}}),requests:i}}},dn=class{constructor(){this._timeout=void 0}throttle(e,t){void 0===this._timeout&&(this._timeout=setTimeout(()=>{this._timeout=void 0,e()},t))}dispose(){void 0!==this._timeout&&clearTimeout(this._timeout)}},cn=class extends Xi{get debugName(){return this._debugNameData.getDebugName(this)??"ObservableValue"}constructor(e,t,i,n){super(n),this._debugNameData=e,this._equalityComparator=i,this._value=t,vce()?.handleObservableUpdated(this,{hadValue:!1,newValue:t,change:void 0,didChange:!0,oldValue:void 0})}get(){return this._value}set(e,t,i){if(void 0===i&&this._equalityComparator(this._value,e))return;let n;t||(t=n=new on(()=>{},()=>`Setting ${this.debugName}`));try{const n=this._value;this._setValue(e),vce()?.handleObservableUpdated(this,{oldValue:n,newValue:e,change:i,didChange:!0,hadValue:!0});for(const e of this._observers)t.updateObserver(e,this),e.handleChange(this,i)}finally{n&&n.finish()}}toString(){return`${this.debugName}: ${this._value}`}_setValue(e){this._value=e}debugGetState(){return{value:this._value}}debugSetValue(e){this._value=e}},hn=class extends cn{_setValue(e){this._value!==e&&(this._value&&this._value.dispose(),this._value=e)}dispose(){this._value?.dispose()}},un=class e{static getInstance(){return void 0===e._instance&&(e._instance=new e),e._instance}getTransactionState(){const e=[],t=[...this._activeTransactions];if(0===t.length)return;const i=t.flatMap(e=>e.debugGetUpdatingObservers()??[]).map(e=>e.observer),n=new Set;for(;i.length>0;){const t=i.shift();if(n.has(t))continue;n.add(t);const o=this._getInfo(t,e=>{n.has(e)||i.push(e)});o&&e.push(o)}return{names:t.map(e=>e.getDebugName()??"tx"),affected:e}}_getObservableInfo(e){const t=this._instanceInfos.get(e);if(t)return t;$ae(new y("No info found"))}_getAutorunInfo(e){const t=this._instanceInfos.get(e);if(t)return t;$ae(new y("No info found"))}_getInfo(e,t){if(e instanceof Ji){const i=[...e.debugGetObservers()];for(const e of i)t(e);const n=this._getObservableInfo(e);if(!n)return;const o=e.debugGetState(),s={name:e.debugName,instanceId:n.instanceId,updateCount:o.updateCount},r=[...n.changedObservables].map(e=>this._instanceInfos.get(e)?.instanceId).filter(ule);if(o.isComputing)return{...s,type:"observable/derived",state:"updating",changedDependencies:r,initialComputation:!1};switch(o.state){case 0:return{...s,type:"observable/derived",state:"noValue"};case 3:return{...s,type:"observable/derived",state:"upToDate"};case 2:return{...s,type:"observable/derived",state:"stale",changedDependencies:r};case 1:return{...s,type:"observable/derived",state:"possiblyStale"}}}else if(e instanceof tn){const t=this._getAutorunInfo(e);if(!t)return;const i={name:e.debugName,instanceId:t.instanceId,updateCount:t.updateCount},n=[...t.changedObservables].map(e=>this._instanceInfos.get(e).instanceId);if(e.debugGetState().isRunning)return{...i,type:"autorun",state:"updating",changedDependencies:n};switch(e.debugGetState().state){case 3:return{...i,type:"autorun",state:"upToDate"};case 2:return{...i,type:"autorun",state:"stale",changedDependencies:n};case 1:return{...i,type:"autorun",state:"possiblyStale"}}}}_formatObservable(e){const t=this._getObservableInfo(e);if(t)return{name:e.debugName,instanceId:t.instanceId}}_formatObserver(e){if(e instanceof Ji)return{name:e.toString(),instanceId:this._getObservableInfo(e)?.instanceId};const t=this._getAutorunInfo(e);return t?{name:e.toString(),instanceId:t.instanceId}:void 0}constructor(){this._declarationId=0,this._instanceId=0,this._declarations=new Map,this._instanceInfos=new WeakMap,this._aliveInstances=new Map,this._activeTransactions=new Set,this._channel=Gce("observableDevTools",()=>({notifications:{setDeclarationIdFilter:e=>{},logObservableValue:e=>{console.log("logObservableValue",e)},flushUpdates:()=>{this._flushUpdates()},resetUpdates:()=>{this._pendingChanges=null,this._channel.api.notifications.handleChange(this._fullState,!0)}},requests:{getDeclarations:()=>{const e={};for(const t of this._declarations.values())e[t.id]=t;return{decls:e}},getSummarizedInstances:()=>null,getObservableValueInfo:e=>({observers:[...this._aliveInstances.get(e).debugGetObservers()].map(e=>this._formatObserver(e)).filter(ule)}),getDerivedInfo:e=>{const t=this._aliveInstances.get(e);return{dependencies:[...t.debugGetState().dependencies].map(e=>this._formatObservable(e)).filter(ule),observers:[...t.debugGetObservers()].map(e=>this._formatObserver(e)).filter(ule)}},getAutorunInfo:e=>({dependencies:[...this._aliveInstances.get(e).debugGetState().dependencies].map(e=>this._formatObservable(e)).filter(ule)}),getTransactionState:()=>this.getTransactionState(),setValue:(e,t)=>{const i=this._aliveInstances.get(e);if(i instanceof Ji)i.debugSetValue(t);else if(i instanceof cn)i.debugSetValue(t);else{if(!(i instanceof sn))throw new y("Observable is not supported");i.debugSetValue(t)}const n=[...i.debugGetObservers()];for(const o of n)o.beginUpdate(i);for(const o of n)o.handleChange(i,void 0);for(const o of n)o.endUpdate(i)},getValue:e=>{const t=this._aliveInstances.get(e);return t instanceof Ji||t instanceof cn?$ce(t.debugGetState().value,200):void 0},logValue:e=>{const t=this._aliveInstances.get(e);if(!t||!("get"in t))throw new y("Observable is not supported");console.log("Logged Value:",t.get())},rerun:e=>{const t=this._aliveInstances.get(e);if(t instanceof Ji)t.debugRecompute();else{if(!(t instanceof tn))throw new y("Observable is not supported");t.debugRerun()}}}})),this._pendingChanges=null,this._changeThrottler=new dn,this._fullState={},this._flushUpdates=()=>{null!==this._pendingChanges&&(this._channel.api.notifications.handleChange(this._pendingChanges,!1),this._pendingChanges=null)},Hi.enable()}_handleChange(e){Yce(this._fullState,e),null===this._pendingChanges?this._pendingChanges=e:Zce(this._pendingChanges,e),this._changeThrottler.throttle(this._flushUpdates,10)}_getDeclarationId(e,t){if(!t)return-1;let i=this._declarations.get(t.id);return void 0===i&&(i={id:this._declarationId++,type:e,url:t.fileName,line:t.line,column:t.column},this._declarations.set(t.id,i),this._handleChange({decls:{[i.id]:i}})),i.id}handleObservableCreated(e,t){const i={declarationId:this._getDeclarationId("observable/value",t),instanceId:this._instanceId++,listenerCount:0,lastValue:void 0,updateCount:0,changedObservables:new Set};this._instanceInfos.set(e,i)}handleOnListenerCountChanged(e,t){const i=this._getObservableInfo(e);if(i){if(0===i.listenerCount&&t>0){const t=e instanceof Ji?"observable/derived":"observable/value";this._aliveInstances.set(i.instanceId,e),this._handleChange({instances:{[i.instanceId]:{instanceId:i.instanceId,declarationId:i.declarationId,formattedValue:i.lastValue,type:t,name:e.debugName}}})}else i.listenerCount>0&&0===t&&(this._handleChange({instances:{[i.instanceId]:null}}),this._aliveInstances.delete(i.instanceId));i.listenerCount=t}}handleObservableUpdated(e,t){if(e instanceof Ji)return void this._handleDerivedRecomputed(e,t);const i=this._getObservableInfo(e);i&&t.didChange&&(i.lastValue=$ce(t.newValue,30),i.listenerCount>0&&this._handleChange({instances:{[i.instanceId]:{formattedValue:i.lastValue}}}))}handleAutorunCreated(e,t){const i={declarationId:this._getDeclarationId("autorun",t),instanceId:this._instanceId++,updateCount:0,changedObservables:new Set};this._instanceInfos.set(e,i),this._aliveInstances.set(i.instanceId,e),i&&this._handleChange({instances:{[i.instanceId]:{instanceId:i.instanceId,declarationId:i.declarationId,runCount:0,type:"autorun",name:e.debugName}}})}handleAutorunDisposed(e){const t=this._getAutorunInfo(e);t&&(this._handleChange({instances:{[t.instanceId]:null}}),this._instanceInfos.delete(e),this._aliveInstances.delete(t.instanceId))}handleAutorunDependencyChanged(e,t,i){const n=this._getAutorunInfo(e);n&&n.changedObservables.add(t)}handleAutorunStarted(e){}handleAutorunFinished(e){const t=this._getAutorunInfo(e);t&&(t.changedObservables.clear(),t.updateCount++,this._handleChange({instances:{[t.instanceId]:{runCount:t.updateCount}}}))}handleDerivedDependencyChanged(e,t,i){const n=this._getObservableInfo(e);n&&n.changedObservables.add(t)}_handleDerivedRecomputed(e,t){const i=this._getObservableInfo(e);if(!i)return;const n=$ce(t.newValue,30);i.updateCount++,i.changedObservables.clear(),i.lastValue=n,i.listenerCount>0&&this._handleChange({instances:{[i.instanceId]:{formattedValue:n,recomputationCount:i.updateCount}}})}handleDerivedCleared(e){const t=this._getObservableInfo(e);t&&(t.lastValue=void 0,t.changedObservables.clear(),t.listenerCount>0&&this._handleChange({instances:{[t.instanceId]:{formattedValue:void 0}}}))}handleBeginTransaction(e){this._activeTransactions.add(e)}handleEndTransaction(e){this._activeTransactions.delete(e)}},un._instance=void 0,Ut&&Ut.VSCODE_DEV_DEBUG_OBSERVABLES&&(t=un.getInstance(),Bi?Bi instanceof Vi?Bi.loggers.push(t):Bi=new Vi([Bi,t]):Bi=t),({getWindow:pn,getDocument:mn,getWindows:fn,getWindowsCount:_n,getWindowId:bn,getWindowById:vn,onDidRegisterWindow:wn,onWillUnregisterWindow:Cn,onDidUnregisterWindow:yn}=function(){const e=new Map;!function(e,t){const i=e;"number"!=typeof i.vscodeWindowId&&Object.defineProperty(i,"vscodeWindowId",{get:()=>t})}(r,1);const t={window:r,disposables:new De};e.set(r.vscodeWindowId,t);const i=new je,n=new je,o=new je;return{onDidRegisterWindow:i.event,onWillUnregisterWindow:o.event,onDidUnregisterWindow:n.event,registerWindow(t){if(e.has(t.vscodeWindowId))return Ie.None;const s=new De,r={window:t,disposables:s.add(new De)};return e.set(t.vscodeWindowId,r),s.add(Dle(()=>{e.delete(t.vscodeWindowId),n.fire(t)})),s.add(ehe(t,On.BEFORE_UNLOAD,()=>{o.fire(t)})),i.fire(r),s},getWindows:()=>e.values(),getWindowsCount:()=>e.size,getWindowId:e=>e.vscodeWindowId,hasWindow:t=>e.has(t),getWindowById:function(i,n){return("number"==typeof i?e.get(i):void 0)??(n?t:void 0)},getWindow(e){const t=e;if(t?.ownerDocument?.defaultView)return t.ownerDocument.defaultView.window;const i=e;return i?.view?i.view.window:r},getDocument:e=>pn(e).document}}()),Sn=class{constructor(e,t,i,n){this._node=e,this._type=t,this._handler=i,this._options=n||!1,this._node.addEventListener(this._type,this._handler,this._options)}dispose(){this._handler&&(this._node.removeEventListener(this._type,this._handler,this._options),this._node=null,this._handler=null)}},xn=function(e,t,i,n){let o=i;return"click"===t||"mousedown"===t||"contextmenu"===t?o=the(pn(e),i):"keydown"!==t&&"keypress"!==t&&"keyup"!==t||(o=function(e){return function(t){return e(new we(t))}}(i)),ehe(e,t,o,n)},kn=function(e,t,i){return ihe(e,the(pn(e),t),i)},Ln=class extends vt{constructor(e,t){super(e,t)}},Nn=class extends mt{constructor(e){super(),this.defaultTarget=e&&pn(e)}cancelAndSet(e,t,i){return super.cancelAndSet(e,t,i??this.defaultTarget)}},En=class{constructor(e,t=0){this._runner=e,this.priority=t,this._canceled=!1}dispose(){this._canceled=!0}execute(){if(!this._canceled)try{this._runner()}catch(Fae){$ae(Fae)}}static sort(e,t){return t.priority-e.priority}},function(){const e=new Map,t=new Map,i=new Map,n=new Map;In=(o,s,r=0)=>{const a=bn(o),l=new En(s,r);let d=e.get(a);return d||(d=[],e.set(a,d)),d.push(l),i.get(a)||(i.set(a,!0),o.requestAnimationFrame(()=>(o=>{i.set(o,!1);const s=e.get(o)??[];for(t.set(o,s),e.set(o,[]),n.set(o,!0);s.length>0;)s.sort(En.sort),s.shift().execute();n.set(o,!1)})(a))),l},Dn=(e,i,o)=>{const s=bn(e);if(n.get(s)){const e=new En(i,o);let n=t.get(s);return n||(n=[],t.set(s,n)),n.push(e),e}return In(e,i,o)}}(),Mn=class e{static convertToPixels(e,t){return parseFloat(t)||0}static getDimension(t,i){const n=she(t),o=n?n.getPropertyValue(i):"0";return e.convertToPixels(t,o)}static getBorderLeftWidth(t){return e.getDimension(t,"border-left-width")}static getBorderRightWidth(t){return e.getDimension(t,"border-right-width")}static getBorderTopWidth(t){return e.getDimension(t,"border-top-width")}static getBorderBottomWidth(t){return e.getDimension(t,"border-bottom-width")}static getPaddingLeft(t){return e.getDimension(t,"padding-left")}static getPaddingRight(t){return e.getDimension(t,"padding-right")}static getPaddingTop(t){return e.getDimension(t,"padding-top")}static getPaddingBottom(t){return e.getDimension(t,"padding-bottom")}static getMarginLeft(t){return e.getDimension(t,"margin-left")}static getMarginTop(t){return e.getDimension(t,"margin-top")}static getMarginRight(t){return e.getDimension(t,"margin-right")}static getMarginBottom(t){return e.getDimension(t,"margin-bottom")}},Tn=class e{constructor(e,t){this.width=e,this.height=t}with(t=this.width,i=this.height){return t!==this.width||i!==this.height?new e(t,i):this}static is(e){return"object"==typeof e&&"number"==typeof e.height&&"number"==typeof e.width}static lift(t){return t instanceof e?t:new e(t.width,t.height)}static equals(e,t){return e===t||!(!e||!t)&&e.width===t.width&&e.height===t.height}},(gn=Tn).None=new gn(0,0),Rn=new class{constructor(){this.mutationObservers=new Map}observe(e,t,i){let n=this.mutationObservers.get(e);n||(n=new Map,this.mutationObservers.set(e,n));const o=Ude(i);let s=n.get(o);if(s)s.users+=1;else{const r=new je,a=new MutationObserver(e=>r.fire(e));a.observe(e,i);const l=s={users:1,observer:a,onDidMutate:r.event};t.add(Dle(()=>{l.users-=1,0===l.users&&(r.dispose(),a.disconnect(),n?.delete(o),0===n?.size&&this.mutationObservers.delete(e))})),n.set(o,s)}return s.onDidMutate}},On={CLICK:"click",AUXCLICK:"auxclick",DBLCLICK:"dblclick",MOUSE_UP:"mouseup",MOUSE_DOWN:"mousedown",MOUSE_OVER:"mouseover",MOUSE_MOVE:"mousemove",MOUSE_OUT:"mouseout",MOUSE_ENTER:"mouseenter",MOUSE_LEAVE:"mouseleave",MOUSE_WHEEL:"wheel",POINTER_UP:"pointerup",POINTER_DOWN:"pointerdown",POINTER_MOVE:"pointermove",POINTER_LEAVE:"pointerleave",CONTEXT_MENU:"contextmenu",KEY_DOWN:"keydown",KEY_UP:"keyup",BEFORE_UNLOAD:"beforeunload",FOCUS:"focus",FOCUS_IN:"focusin",FOCUS_OUT:"focusout",BLUR:"blur",INPUT:"input",DRAG_START:"dragstart",DRAG:"drag",DRAG_ENTER:"dragenter",DRAG_LEAVE:"dragleave",DRAG_OVER:"dragover",DROP:"drop",DRAG_END:"dragend"},An={stop:(e,t)=>(e.preventDefault(),t&&e.stopPropagation(),e)},Pn=class e extends Ie{get onDidFocus(){return this._onDidFocus.event}get onDidBlur(){return this._onDidBlur.event}static hasFocusWithin(e){if(xhe(e)){const t=bhe(e);return phe(t?t.activeElement:e.ownerDocument.activeElement,e)}{const t=e;return phe(t.document.activeElement,t.document)}}constructor(t){super(),this._onDidFocus=this._register(new je),this._onDidBlur=this._register(new je);let i=e.hasFocusWithin(t),n=!1;const o=()=>{n=!1,i||(i=!0,this._onDidFocus.fire())},s=()=>{i&&(n=!0,(xhe(t)?pn(t):t).setTimeout(()=>{n&&(n=!1,i=!1,this._onDidBlur.fire())},0))};this._refreshStateHandler=()=>{e.hasFocusWithin(t)!==i&&(i?s():o())},this._register(ehe(t,On.FOCUS,o,!0)),this._register(ehe(t,On.BLUR,s,!0)),xhe(t)&&(this._register(ehe(t,On.FOCUS_IN,()=>this._refreshStateHandler())),this._register(ehe(t,On.FOCUS_OUT,()=>this._refreshStateHandler())))}},Fn=/([\w\-]+)?(#([\w\-]+))?((\.([\w\-]+))*)/,function(e){e.HTML="http://www.w3.org/1999/xhtml",e.SVG="http://www.w3.org/2000/svg"}(Wn||(Wn={})),Ahe.SVG=function(e,t,...i){return Ohe(Wn.SVG,e,t,...i)},Si.setPreferredWebSchema(/^https:/.test(r.location.href)?"https":"http"),Bn=class e extends je{constructor(){super(),this._subscriptions=new De,this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1},this._subscriptions.add(Be.runAndSubscribe(wn,({window:e,disposables:t})=>this.registerListeners(e,t),{window:r,disposables:this._subscriptions}))}registerListeners(e,t){t.add(ehe(e,"keydown",e=>{if(e.defaultPrevented)return;const t=new we(e);if(6!==t.keyCode||!e.repeat){if(e.altKey&&!this._keyStatus.altKey)this._keyStatus.lastKeyPressed="alt";else if(e.ctrlKey&&!this._keyStatus.ctrlKey)this._keyStatus.lastKeyPressed="ctrl";else if(e.metaKey&&!this._keyStatus.metaKey)this._keyStatus.lastKeyPressed="meta";else if(e.shiftKey&&!this._keyStatus.shiftKey)this._keyStatus.lastKeyPressed="shift";else{if(6===t.keyCode)return;this._keyStatus.lastKeyPressed=void 0}this._keyStatus.altKey=e.altKey,this._keyStatus.ctrlKey=e.ctrlKey,this._keyStatus.metaKey=e.metaKey,this._keyStatus.shiftKey=e.shiftKey,this._keyStatus.lastKeyPressed&&(this._keyStatus.event=e,this.fire(this._keyStatus))}},!0)),t.add(ehe(e,"keyup",e=>{e.defaultPrevented||(!e.altKey&&this._keyStatus.altKey?this._keyStatus.lastKeyReleased="alt":!e.ctrlKey&&this._keyStatus.ctrlKey?this._keyStatus.lastKeyReleased="ctrl":!e.metaKey&&this._keyStatus.metaKey?this._keyStatus.lastKeyReleased="meta":!e.shiftKey&&this._keyStatus.shiftKey?this._keyStatus.lastKeyReleased="shift":this._keyStatus.lastKeyReleased=void 0,this._keyStatus.lastKeyPressed!==this._keyStatus.lastKeyReleased&&(this._keyStatus.lastKeyPressed=void 0),this._keyStatus.altKey=e.altKey,this._keyStatus.ctrlKey=e.ctrlKey,this._keyStatus.metaKey=e.metaKey,this._keyStatus.shiftKey=e.shiftKey,this._keyStatus.lastKeyReleased&&(this._keyStatus.event=e,this.fire(this._keyStatus)))},!0)),t.add(ehe(e.document.body,"mousedown",()=>{this._keyStatus.lastKeyPressed=void 0},!0)),t.add(ehe(e.document.body,"mouseup",()=>{this._keyStatus.lastKeyPressed=void 0},!0)),t.add(ehe(e.document.body,"mousemove",e=>{e.buttons&&(this._keyStatus.lastKeyPressed=void 0)},!0)),t.add(ehe(e,"blur",()=>{this.resetKeyStatus()}))}get keyStatus(){return this._keyStatus}resetKeyStatus(){this.doResetKeyStatus(),this.fire(this._keyStatus)}doResetKeyStatus(){this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1}}static getInstance(){return e.instance||(e.instance=new e),e.instance}dispose(){super.dispose(),this._subscriptions.dispose()}},Vn=class extends Ie{constructor(e,t){super(),this.element=e,this.callbacks=t,this.counter=0,this.dragStartTime=0,this.registerListeners()}registerListeners(){this.callbacks.onDragStart&&this._register(ehe(this.element,On.DRAG_START,e=>{this.callbacks.onDragStart?.(e)})),this.callbacks.onDrag&&this._register(ehe(this.element,On.DRAG,e=>{this.callbacks.onDrag?.(e)})),this._register(ehe(this.element,On.DRAG_ENTER,e=>{this.counter++,this.dragStartTime=e.timeStamp,this.callbacks.onDragEnter?.(e)})),this._register(ehe(this.element,On.DRAG_OVER,e=>{e.preventDefault(),this.callbacks.onDragOver?.(e,e.timeStamp-this.dragStartTime)})),this._register(ehe(this.element,On.DRAG_LEAVE,e=>{this.counter--,0===this.counter&&(this.dragStartTime=0,this.callbacks.onDragLeave?.(e))})),this._register(ehe(this.element,On.DRAG_END,e=>{this.counter=0,this.dragStartTime=0,this.callbacks.onDragEnd?.(e)})),this._register(ehe(this.element,On.DROP,e=>{this.counter=0,this.dragStartTime=0,this.callbacks.onDrop?.(e)}))}},Hn=/(?[\w\-]+)?(?:#(?[\w\-]+))?(?(?:\.(?:[\w\-]+))*)(?:@(?(?:[\w\_])+))?/,function(e){function t(e=void 0){return(t,i,n)=>{const o=i.class;delete i.class;const s=i.ref;delete i.ref;const r=i.obsRef;return delete i.obsRef,new qn(t,s,r,e,o,i,n)}}function i(e,i=void 0){const n=t(i);return(t,i)=>n(e,t,i)}e.div=i("div"),e.elem=t(void 0),e.svg=i("svg","http://www.w3.org/2000/svg"),e.svgElem=t("http://www.w3.org/2000/svg"),e.ref=function(){let e;const t=function(t){e=t};return Object.defineProperty(t,"element",{get(){if(!e)throw new y("Make sure the ref is set before accessing the element. Maybe wrong initialization order?");return e}}),t}}(zn||(zn={})),Un=class e{constructor(t,i,n,o,s,r,a){this._deriveds=[],this._element=o?document.createElementNS(o,t):document.createElement(t),i&&i(this._element),n&&this._deriveds.push(Dce(e=>{n(this),e.store.add({dispose:()=>{n(null)}})})),s&&(jhe(s)?this._deriveds.push(Dce(this,e=>{Uhe(this._element,qhe(s,e))})):Uhe(this._element,qhe(s,void 0)));for(const[l,d]of Object.entries(r))if("style"===l)for(const[c,h]of Object.entries(d)){const u=Hhe(c);Yhe(h)?this._deriveds.push(Nce({owner:this,debugName:()=>`set.style.${u}`},e=>{this._element.style.setProperty(u,$he(h.read(e)))})):this._element.style.setProperty(u,$he(h))}else"tabIndex"===l?Yhe(d)?this._deriveds.push(Dce(this,e=>{this._element.tabIndex=d.read(e)})):this._element.tabIndex=d:l.startsWith("on")?this._element[l]=d:Yhe(d)?this._deriveds.push(Nce({owner:this,debugName:()=>`set.${l}`},e=>{Zhe(this._element,l,d.read(e))})):Zhe(this._element,l,d);if(a){function g(t,i){return Yhe(i)?g(t,i.read(t)):Array.isArray(i)?i.flatMap(e=>g(t,e)):i instanceof e?(t&&i.readEffect(t),[i._element]):i?[i]:[]}const p=Dce(this,e=>{this._element.replaceChildren(...g(e,a))});this._deriveds.push(p),Ghe(a)||p.get()}}readEffect(e){for(const t of this._deriveds)t.read(e)}keepUpdated(e){return Dce(e=>{this.readEffect(e)}).recomputeInitiallyAndOnChange(e),this}toDisposableLiveElement(){const e=new De;return this.keepUpdated(e),new Kn(this._element,e)}},Kn=class{constructor(e,t){this.element=e,this._disposable=t}dispose(){this._disposable.dispose()}},qn=class extends Un{constructor(){super(...arguments),this._isHovered=void 0,this._didMouseMoveDuringHover=void 0}get element(){return this._element}get isHovered(){if(!this._isHovered){const e=Qce("hovered",!1);this._element.addEventListener("mouseenter",t=>e.set(!0,void 0)),this._element.addEventListener("mouseleave",t=>e.set(!1,void 0)),this._isHovered=e}return this._isHovered}get didMouseMoveDuringHover(){if(!this._didMouseMoveDuringHover){let e=!1;const t=Qce("didMouseMoveDuringHover",!1);this._element.addEventListener("mouseenter",t=>{e=!0}),this._element.addEventListener("mousemove",i=>{e&&t.set(!0,void 0)}),this._element.addEventListener("mouseleave",i=>{e=!1,t.set(!1,void 0)}),this._didMouseMoveDuringHover=t}return this._didMouseMoveDuringHover}},jn=2e4,function(e){e.serviceIds=new Map,e.DI_TARGET="$di$target",e.DI_DEPENDENCIES="$di$dependencies",e.getServiceDependencies=function(t){return t[e.DI_DEPENDENCIES]||[]}}(Xn||(Xn={})),Jn=eue("instantiationService"),eo=eue("codeEditorService"),to=class e{constructor(e,t){this.lineNumber=e,this.column=t}with(t=this.lineNumber,i=this.column){return t===this.lineNumber&&i===this.column?this:new e(t,i)}delta(e=0,t=0){return this.with(Math.max(1,this.lineNumber+e),Math.max(1,this.column+t))}equals(t){return e.equals(this,t)}static equals(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(t){return e.isBefore(this,t)}static isBefore(e,t){return e.lineNumber{o(),this._commands.get(i)?.isEmpty()&&this._commands.delete(i)});return this._onDidRegisterCommand.fire(i),s}registerCommandAlias(e,t){return _o.registerCommand(e,(e,...i)=>e.get(fo).executeCommand(t,...i))}getCommand(e){const t=this._commands.get(e);if(t&&!t.isEmpty())return ke.first(t)}getCommands(){const e=new Map;for(const t of this._commands.keys()){const i=this.getCommand(t);i&&e.set(t,i)}return e}},_o.registerCommand("noop",()=>{}),vo=Vae(1696,"Did you forget to open or close the quote?"),wo=Vae(1697,"Did you forget to escape the '/' (slash) character? Put two backslashes before it to escape, e.g., '\\\\/'."),Co=class e{constructor(){this._input="",this._start=0,this._current=0,this._tokens=[],this._errors=[],this.stringRe=/[a-zA-Z0-9_<>\-\./\\:\*\?\+\[\]\^,#@;"%\$\p{L}-]+/uy}static getLexeme(e){switch(e.type){case 0:return"(";case 1:return")";case 2:return"!";case 3:return e.isTripleEq?"===":"==";case 4:return e.isTripleEq?"!==":"!=";case 5:return"<";case 6:return"<=";case 7:case 8:return">=";case 9:return"=~";case 10:case 17:case 18:case 19:return e.lexeme;case 11:return"true";case 12:return"false";case 13:return"in";case 14:return"not";case 15:return"&&";case 16:return"||";case 20:return"EOF";default:throw Xae(`unhandled token type: ${JSON.stringify(e)}; have you forgotten to add a case?`)}}reset(e){return this._input=e,this._start=0,this._current=0,this._tokens=[],this._errors=[],this}scan(){for(;!this._isAtEnd();)switch(this._start=this._current,this._advance()){case 40:this._addToken(0);break;case 41:this._addToken(1);break;case 33:if(this._match(61)){const e=this._match(61);this._tokens.push({type:4,offset:this._start,isTripleEq:e})}else this._addToken(2);break;case 39:this._quotedString();break;case 47:this._regex();break;case 61:if(this._match(61)){const e=this._match(61);this._tokens.push({type:3,offset:this._start,isTripleEq:e})}else this._match(126)?this._addToken(9):this._error(oue("==","=~"));break;case 60:this._addToken(this._match(61)?6:5);break;case 62:this._addToken(this._match(61)?8:7);break;case 38:this._match(38)?this._addToken(15):this._error(oue("&&"));break;case 124:this._match(124)?this._addToken(16):this._error(oue("||"));break;case 32:case 13:case 9:case 10:case 160:break;default:this._string()}return this._start=this._current,this._addToken(20),Array.from(this._tokens)}_match(e){return!this._isAtEnd()&&this._input.charCodeAt(this._current)===e&&(this._current++,!0)}_advance(){return this._input.charCodeAt(this._current++)}_peek(){return this._isAtEnd()?0:this._input.charCodeAt(this._current)}_addToken(e){this._tokens.push({type:e,offset:this._start})}_error(e){const t=this._start,i=this._input.substring(this._start,this._current),n={type:19,offset:this._start,lexeme:i};this._errors.push({offset:t,lexeme:i,additionalInfo:e}),this._tokens.push(n)}_string(){this.stringRe.lastIndex=this._start;const t=this.stringRe.exec(this._input);if(t){this._current=this._start+t[0].length;const i=this._input.substring(this._start,this._current),n=e._keywords.get(i);n?this._addToken(n):this._tokens.push({type:17,lexeme:i,offset:this._start})}}_quotedString(){for(;39!==this._peek()&&!this._isAtEnd();)this._advance();this._isAtEnd()?this._error(vo):(this._advance(),this._tokens.push({type:18,lexeme:this._input.substring(this._start+1,this._current-1),offset:this._start+1}))}_regex(){let t=this._current,i=!1,n=!1;for(;;){if(t>=this._input.length)return this._current=t,void this._error(wo);const e=this._input.charCodeAt(t);if(i)i=!1;else{if(47===e&&!n){t++;break}91===e?n=!0:92===e?i=!0:93===e&&(n=!1)}t++}for(;t=this._input.length}},(bo=Co)._regexFlags=new Set(["i","g","s","m","y","u"].map(e=>e.charCodeAt(0))),bo._keywords=new Map([["not",14],["in",13],["false",12],["true",11]]),(xo=new Map).set("false",!1),xo.set("true",!0),xo.set("isMac",F),xo.set("isLinux",W),xo.set("isWindows",P),xo.set("isWeb",V),xo.set("isMacNative",F&&!V),xo.set("isEdge",ie),xo.set("isFirefox",ee),xo.set("isChrome",J),xo.set("isSafari",te),ko=Object.prototype.hasOwnProperty,Lo={regexParsingWithErrorRecovery:!0},Do=Vae(1675,"Empty context key expression"),Io=Vae(1676,"Did you forget to write an expression? You can also put 'false' or 'true' to always evaluate to false or true, respectively."),No=Vae(1677,"'in' after 'not'."),Eo=Vae(1678,"closing parenthesis ')'"),Mo=Vae(1679,"Unexpected token"),To=Vae(1680,"Did you forget to put && or || before the token?"),Ro=Vae(1681,"Unexpected end of expression"),Oo=Vae(1682,"Did you forget to put a context key?"),Ao=class e{constructor(e=Lo){this._config=e,this._scanner=new Co,this._tokens=[],this._current=0,this._parsingErrors=[],this._flagsGYRe=/g|y/g}parse(t){if(""!==t){this._tokens=this._scanner.reset(t).scan(),this._current=0,this._parsingErrors=[];try{const t=this._expr();if(!this._isAtEnd()){const t=this._peek(),i=17===t.type?To:void 0;throw this._parsingErrors.push({message:Mo,offset:t.offset,lexeme:Co.getLexeme(t),additionalInfo:i}),e._parseError}return t}catch(Fae){if(Fae!==e._parseError)throw Fae;return}}else this._parsingErrors.push({message:Do,offset:0,lexeme:"",additionalInfo:Io})}_expr(){return this._or()}_or(){const e=[this._and()];for(;this._matchOne(16);){const t=this._and();e.push(t)}return 1===e.length?e[0]:Po.or(...e)}_and(){const e=[this._term()];for(;this._matchOne(15);){const t=this._term();e.push(t)}return 1===e.length?e[0]:Po.and(...e)}_term(){if(this._matchOne(2)){const e=this._peek();switch(e.type){case 11:return this._advance(),Fo.INSTANCE;case 12:return this._advance(),Wo.INSTANCE;case 0:{this._advance();const e=this._expr();return this._consume(1,Eo),e?.negate()}case 17:return this._advance(),Ko.create(e.lexeme);default:throw this._errExpectedButGot("KEY | true | false | '(' expression ')'",e)}}return this._primary()}_primary(){const t=this._peek();switch(t.type){case 11:return this._advance(),Po.true();case 12:return this._advance(),Po.false();case 0:{this._advance();const e=this._expr();return this._consume(1,Eo),e}case 17:{const e=t.lexeme;if(this._advance(),this._matchOne(9)){const t=this._peek();if(!this._config.regexParsingWithErrorRecovery){if(this._advance(),10!==t.type)throw this._errExpectedButGot("REGEX",t);const i=t.lexeme,n=i.lastIndexOf("/"),o=n===i.length-1?void 0:this._removeFlagsGY(i.substring(n+1));let s;try{s=new RegExp(i.substring(1,n),o)}catch(Fae){throw this._errExpectedButGot("REGEX",t)}return Zo.create(e,s)}switch(t.type){case 10:case 19:{const i=[t.lexeme];this._advance();let n=this._peek(),o=0;for(let e=0;e=0){const r=n.slice(e+1,s),a="i"===n[s+1]?"i":"";try{o=new RegExp(r,a)}catch(i){throw this._errExpectedButGot("REGEX",t)}}}if(null===o)throw this._errExpectedButGot("REGEX",t);return Zo.create(e,o)}default:throw this._errExpectedButGot("REGEX",this._peek())}}if(this._matchOne(14)){this._consume(13,No);const t=this._value();return Po.notIn(e,t)}switch(this._peek().type){case 3:{this._advance();const t=this._value();if(18===this._previous().type)return Po.equals(e,t);switch(t){case"true":return Po.has(e);case"false":return Po.not(e);default:return Po.equals(e,t)}}case 4:{this._advance();const t=this._value();if(18===this._previous().type)return Po.notEquals(e,t);switch(t){case"true":return Po.not(e);case"false":return Po.has(e);default:return Po.notEquals(e,t)}}case 5:return this._advance(),$o.create(e,this._value());case 6:return this._advance(),Go.create(e,this._value());case 7:return this._advance(),qo.create(e,this._value());case 8:return this._advance(),jo.create(e,this._value());case 13:return this._advance(),Po.in(e,this._value());default:return Po.has(e)}}case 20:throw this._parsingErrors.push({message:Ro,offset:t.offset,lexeme:"",additionalInfo:Oo}),e._parseError;default:throw this._errExpectedButGot("true | false | KEY \n\t| KEY '=~' REGEX \n\t| KEY ('==' | '!=' | '<' | '<=' | '>' | '>=' | 'in' | 'not' 'in') value",this._peek())}}_value(){const e=this._peek();switch(e.type){case 17:case 18:return this._advance(),e.lexeme;case 11:return this._advance(),"true";case 12:return this._advance(),"false";case 13:return this._advance(),"in";default:return""}}_removeFlagsGY(e){return e.replaceAll(this._flagsGYRe,"")}_previous(){return this._tokens[this._current-1]}_matchOne(e){return!!this._check(e)&&(this._advance(),!0)}_advance(){return this._isAtEnd()||this._current++,this._previous()}_consume(e,t){if(this._check(e))return this._advance();throw this._errExpectedButGot(t,this._peek())}_errExpectedButGot(t,i,n){const o=Vae(1683,"Expected: {0}\nReceived: '{1}'.",t,Co.getLexeme(i)),s=i.offset,r=Co.getLexeme(i);return this._parsingErrors.push({message:o,offset:s,lexeme:r,additionalInfo:n}),e._parseError}_check(e){return this._peek().type===e}_peek(){return this._tokens[this._current]}_isAtEnd(){return 20===this._peek().type}},Ao._parseError=new Error,(Po=class{static false(){return Fo.INSTANCE}static true(){return Wo.INSTANCE}static has(e){return Bo.create(e)}static equals(e,t){return Vo.create(e,t)}static notEquals(e,t){return Uo.create(e,t)}static regex(e,t){return Zo.create(e,t)}static in(e,t){return Ho.create(e,t)}static notIn(e,t){return zo.create(e,t)}static not(e){return Ko.create(e)}static and(...e){return Qo.create(e,null,!0)}static or(...e){return Xo.create(e,null,!0)}static deserialize(e){if(null!=e)return this._parser.parse(e)}})._parser=new Ao({regexParsingWithErrorRecovery:!1}),(yo=Fo=class{constructor(){this.type=0}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!1}serialize(){return"false"}keys(){return[]}negate(){return Wo.INSTANCE}}).INSTANCE=new yo,(So=Wo=class{constructor(){this.type=1}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!0}serialize(){return"true"}keys(){return[]}negate(){return Fo.INSTANCE}}).INSTANCE=new So,Bo=class e{static create(t,i=null){const n=xo.get(t);return"boolean"==typeof n?n?Wo.INSTANCE:Fo.INSTANCE:new e(t,i)}constructor(e,t){this.key=e,this.negated=t,this.type=2}cmp(e){return e.type!==this.type?this.type-e.type:lue(this.key,e.key)}equals(e){return e.type===this.type&&this.key===e.key}substituteConstants(){const e=xo.get(this.key);return"boolean"==typeof e?e?Wo.INSTANCE:Fo.INSTANCE:this}evaluate(e){return!!e.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=Ko.create(this.key,this)),this.negated}},Vo=class e{static create(t,i,n=null){if("boolean"==typeof i)return i?Bo.create(t,n):Ko.create(t,n);const o=xo.get(t);return"boolean"==typeof o?i===(o?"true":"false")?Wo.INSTANCE:Fo.INSTANCE:new e(t,i,n)}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=4}cmp(e){return e.type!==this.type?this.type-e.type:due(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&this.key===e.key&&this.value===e.value}substituteConstants(){const e=xo.get(this.key);if("boolean"==typeof e){const t=e?"true":"false";return this.value===t?Wo.INSTANCE:Fo.INSTANCE}return this}evaluate(e){return e.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=Uo.create(this.key,this.value,this)),this.negated}},Ho=class e{static create(t,i){return new e(t,i)}constructor(e,t){this.key=e,this.valueKey=t,this.type=10,this.negated=null}cmp(e){return e.type!==this.type?this.type-e.type:due(this.key,this.valueKey,e.key,e.valueKey)}equals(e){return e.type===this.type&&this.key===e.key&&this.valueKey===e.valueKey}substituteConstants(){return this}evaluate(e){const t=e.getValue(this.valueKey),i=e.getValue(this.key);return Array.isArray(t)?t.includes(i):"string"==typeof i&&"object"==typeof t&&null!==t&&ko.call(t,i)}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=zo.create(this.key,this.valueKey)),this.negated}},zo=class e{static create(t,i){return new e(t,i)}constructor(e,t){this.key=e,this.valueKey=t,this.type=11,this._negated=Ho.create(e,t)}cmp(e){return e.type!==this.type?this.type-e.type:this._negated.cmp(e._negated)}equals(e){return e.type===this.type&&this._negated.equals(e._negated)}substituteConstants(){return this}evaluate(e){return!this._negated.evaluate(e)}serialize(){return`${this.key} not in '${this.valueKey}'`}keys(){return this._negated.keys()}negate(){return this._negated}},Uo=class e{static create(t,i,n=null){if("boolean"==typeof i)return i?Ko.create(t,n):Bo.create(t,n);const o=xo.get(t);return"boolean"==typeof o?i===(o?"true":"false")?Fo.INSTANCE:Wo.INSTANCE:new e(t,i,n)}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=5}cmp(e){return e.type!==this.type?this.type-e.type:due(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&this.key===e.key&&this.value===e.value}substituteConstants(){const e=xo.get(this.key);if("boolean"==typeof e){const t=e?"true":"false";return this.value===t?Fo.INSTANCE:Wo.INSTANCE}return this}evaluate(e){return e.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=Vo.create(this.key,this.value,this)),this.negated}},Ko=class e{static create(t,i=null){const n=xo.get(t);return"boolean"==typeof n?n?Fo.INSTANCE:Wo.INSTANCE:new e(t,i)}constructor(e,t){this.key=e,this.negated=t,this.type=3}cmp(e){return e.type!==this.type?this.type-e.type:lue(this.key,e.key)}equals(e){return e.type===this.type&&this.key===e.key}substituteConstants(){const e=xo.get(this.key);return"boolean"==typeof e?e?Fo.INSTANCE:Wo.INSTANCE:this}evaluate(e){return!e.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=Bo.create(this.key,this)),this.negated}},qo=class e{static create(t,i,n=null){return rue(i,i=>new e(t,i,n))}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=12}cmp(e){return e.type!==this.type?this.type-e.type:due(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&this.key===e.key&&this.value===e.value}substituteConstants(){return this}evaluate(e){return"string"!=typeof this.value&&parseFloat(e.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=Go.create(this.key,this.value,this)),this.negated}},jo=class e{static create(t,i,n=null){return rue(i,i=>new e(t,i,n))}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=13}cmp(e){return e.type!==this.type?this.type-e.type:due(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&this.key===e.key&&this.value===e.value}substituteConstants(){return this}evaluate(e){return"string"!=typeof this.value&&parseFloat(e.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=$o.create(this.key,this.value,this)),this.negated}},$o=class e{static create(t,i,n=null){return rue(i,i=>new e(t,i,n))}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=14}cmp(e){return e.type!==this.type?this.type-e.type:due(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&this.key===e.key&&this.value===e.value}substituteConstants(){return this}evaluate(e){return"string"!=typeof this.value&&parseFloat(e.getValue(this.key))new e(t,i,n))}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=15}cmp(e){return e.type!==this.type?this.type-e.type:due(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&this.key===e.key&&this.value===e.value}substituteConstants(){return this}evaluate(e){return"string"!=typeof this.value&&parseFloat(e.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=qo.create(this.key,this.value,this)),this.negated}},Zo=class e{static create(t,i){return new e(t,i)}constructor(e,t){this.key=e,this.regexp=t,this.type=7,this.negated=null}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.keye.key)return 1;const t=this.regexp?this.regexp.source:"",i=e.regexp?e.regexp.source:"";return ti?1:0}equals(e){if(e.type===this.type){const t=this.regexp?this.regexp.source:"",i=e.regexp?e.regexp.source:"";return this.key===e.key&&t===i}return!1}substituteConstants(){return this}evaluate(e){const t=e.getValue(this.key);return!!this.regexp&&this.regexp.test(t)}serialize(){const e=this.regexp?`/${this.regexp.source}/${this.regexp.flags}`:"/invalid/";return`${this.key} =~ ${e}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=Yo.create(this)),this.negated}},Yo=class e{static create(t){return new e(t)}constructor(e){this._actual=e,this.type=8}cmp(e){return e.type!==this.type?this.type-e.type:this._actual.cmp(e._actual)}equals(e){return e.type===this.type&&this._actual.equals(e._actual)}substituteConstants(){return this}evaluate(e){return!this._actual.evaluate(e)}serialize(){return`!(${this._actual.serialize()})`}keys(){return this._actual.keys()}negate(){return this._actual}},Qo=class e{static create(t,i,n){return e._normalizeArr(t,i,n)}constructor(e,t){this.expr=e,this.negated=t,this.type=6}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.lengthe.expr.length)return 1;for(let t=0,i=this.expr.length;t1;){const t=o[o.length-1];if(9!==t.type)break;o.pop();const i=o.pop(),s=0===o.length,r=Xo.create(t.expr.map(t=>e.create([t,i],null,n)),null,s);r&&(o.push(r),o.sort(sue))}if(1===o.length)return o[0];if(n){for(let e=0;ee.serialize()).join(" && ")}keys(){const e=[];for(const t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){const e=[];for(const t of this.expr)e.push(t.negate());this.negated=Xo.create(e,this,!0)}return this.negated}},Xo=class e{static create(t,i,n){return e._normalizeArr(t,i,n)}constructor(e,t){this.expr=e,this.negated=t,this.type=9}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.lengthe.expr.length)return 1;for(let t=0,i=this.expr.length;te.serialize()).join(" || ")}keys(){const e=[];for(const t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){const t=[];for(const e of this.expr)t.push(e.negate());for(;t.length>1;){const i=t.shift(),n=t.shift(),o=[];for(const e of uue(i))for(const t of uue(n))o.push(Qo.create([e,t],null,!1));t.unshift(e.create(o,null,!1))}this.negated=e.create(t,this,!0)}return this.negated}},(Jo=class e extends Bo{static all(){return e._info.values()}constructor(t,i,n){super(t,null),this._defaultValue=i,"object"==typeof n?e._info.push({...n,key:t}):!0!==n&&e._info.push({key:t,description:n,type:null!=i?typeof i:void 0})}bindTo(e){return e.createKey(this.key,this._defaultValue)}getValue(e){return e.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(e){return Vo.create(this.key,e)}})._info=[],es=eue("contextKeyService"),ts=new class{constructor(){this.data=new Map}add(e,t){Jae(sle(e)),Jae(rle(t)),Jae(!this.data.has(e),"There is already an extension with this id"),this.data.set(e,t)}as(e){return this.data.get(e)||null}dispose(){this.data.forEach(e=>{fle(e.dispose)&&e.dispose()}),this.data.clear()}},is=class e{constructor(){this._coreKeybindings=new Ae,this._extensionKeybindings=[],this._cachedMergedKeybindings=null}static bindToCurrentPlatform(e){if(1===Y){if(e&&e.win)return e.win}else if(2===Y){if(e&&e.mac)return e.mac}else if(e&&e.linux)return e.linux;return e}registerKeybindingRule(t){const i=e.bindToCurrentPlatform(t),n=new De;if(i&&i.primary){const e=wle(i.primary,Y);e&&n.add(this._registerDefaultKeybinding(e,t.id,t.args,t.weight,0,t.when))}if(i&&Array.isArray(i.secondary))for(let e=0,o=i.secondary.length;e{r(),this._cachedMergedKeybindings=null})}getDefaultKeybindings(){return this._cachedMergedKeybindings||(this._cachedMergedKeybindings=Array.from(this._coreKeybindings).concat(this._extensionKeybindings),this._cachedMergedKeybindings.sort(gue)),this._cachedMergedKeybindings.slice(0)}},ns=new is,os={EditorModes:"platform.keybindingsRegistry"},ts.add(os.EditorModes,ns),rs=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},as=function(e,t){return function(i,n){t(i,n,e)}},(ss=ds=class e{constructor(t){if(e._instances.has(t))throw new TypeError(`MenuId with identifier '${t}' already exists. Use MenuId.for(ident) or a unique identifier`);e._instances.set(t,this),this.id=t}})._instances=new Map,ss.CommandPalette=new ss("CommandPalette"),ss.DebugBreakpointsContext=new ss("DebugBreakpointsContext"),ss.DebugCallStackContext=new ss("DebugCallStackContext"),ss.DebugConsoleContext=new ss("DebugConsoleContext"),ss.DebugVariablesContext=new ss("DebugVariablesContext"),ss.NotebookVariablesContext=new ss("NotebookVariablesContext"),ss.DebugHoverContext=new ss("DebugHoverContext"),ss.DebugWatchContext=new ss("DebugWatchContext"),ss.DebugToolBar=new ss("DebugToolBar"),ss.DebugToolBarStop=new ss("DebugToolBarStop"),ss.DebugDisassemblyContext=new ss("DebugDisassemblyContext"),ss.DebugCallStackToolbar=new ss("DebugCallStackToolbar"),ss.DebugCreateConfiguration=new ss("DebugCreateConfiguration"),ss.EditorContext=new ss("EditorContext"),ss.SimpleEditorContext=new ss("SimpleEditorContext"),ss.EditorContent=new ss("EditorContent"),ss.EditorLineNumberContext=new ss("EditorLineNumberContext"),ss.EditorContextCopy=new ss("EditorContextCopy"),ss.EditorContextPeek=new ss("EditorContextPeek"),ss.EditorContextShare=new ss("EditorContextShare"),ss.EditorTitle=new ss("EditorTitle"),ss.CompactWindowEditorTitle=new ss("CompactWindowEditorTitle"),ss.EditorTitleRun=new ss("EditorTitleRun"),ss.EditorTitleContext=new ss("EditorTitleContext"),ss.EditorTitleContextShare=new ss("EditorTitleContextShare"),ss.EmptyEditorGroup=new ss("EmptyEditorGroup"),ss.EmptyEditorGroupContext=new ss("EmptyEditorGroupContext"),ss.EditorTabsBarContext=new ss("EditorTabsBarContext"),ss.EditorTabsBarShowTabsSubmenu=new ss("EditorTabsBarShowTabsSubmenu"),ss.EditorTabsBarShowTabsZenModeSubmenu=new ss("EditorTabsBarShowTabsZenModeSubmenu"),ss.EditorActionsPositionSubmenu=new ss("EditorActionsPositionSubmenu"),ss.EditorSplitMoveSubmenu=new ss("EditorSplitMoveSubmenu"),ss.ExplorerContext=new ss("ExplorerContext"),ss.ExplorerContextShare=new ss("ExplorerContextShare"),ss.ExtensionContext=new ss("ExtensionContext"),ss.ExtensionEditorContextMenu=new ss("ExtensionEditorContextMenu"),ss.GlobalActivity=new ss("GlobalActivity"),ss.CommandCenter=new ss("CommandCenter"),ss.CommandCenterCenter=new ss("CommandCenterCenter"),ss.LayoutControlMenuSubmenu=new ss("LayoutControlMenuSubmenu"),ss.LayoutControlMenu=new ss("LayoutControlMenu"),ss.MenubarMainMenu=new ss("MenubarMainMenu"),ss.MenubarAppearanceMenu=new ss("MenubarAppearanceMenu"),ss.MenubarDebugMenu=new ss("MenubarDebugMenu"),ss.MenubarEditMenu=new ss("MenubarEditMenu"),ss.MenubarCopy=new ss("MenubarCopy"),ss.MenubarFileMenu=new ss("MenubarFileMenu"),ss.MenubarGoMenu=new ss("MenubarGoMenu"),ss.MenubarHelpMenu=new ss("MenubarHelpMenu"),ss.MenubarLayoutMenu=new ss("MenubarLayoutMenu"),ss.MenubarNewBreakpointMenu=new ss("MenubarNewBreakpointMenu"),ss.PanelAlignmentMenu=new ss("PanelAlignmentMenu"),ss.PanelPositionMenu=new ss("PanelPositionMenu"),ss.ActivityBarPositionMenu=new ss("ActivityBarPositionMenu"),ss.MenubarPreferencesMenu=new ss("MenubarPreferencesMenu"),ss.MenubarRecentMenu=new ss("MenubarRecentMenu"),ss.MenubarSelectionMenu=new ss("MenubarSelectionMenu"),ss.MenubarShare=new ss("MenubarShare"),ss.MenubarSwitchEditorMenu=new ss("MenubarSwitchEditorMenu"),ss.MenubarSwitchGroupMenu=new ss("MenubarSwitchGroupMenu"),ss.MenubarTerminalMenu=new ss("MenubarTerminalMenu"),ss.MenubarTerminalSuggestStatusMenu=new ss("MenubarTerminalSuggestStatusMenu"),ss.MenubarViewMenu=new ss("MenubarViewMenu"),ss.MenubarHomeMenu=new ss("MenubarHomeMenu"),ss.OpenEditorsContext=new ss("OpenEditorsContext"),ss.OpenEditorsContextShare=new ss("OpenEditorsContextShare"),ss.ProblemsPanelContext=new ss("ProblemsPanelContext"),ss.SCMInputBox=new ss("SCMInputBox"),ss.SCMChangeContext=new ss("SCMChangeContext"),ss.SCMResourceContext=new ss("SCMResourceContext"),ss.SCMResourceContextShare=new ss("SCMResourceContextShare"),ss.SCMResourceFolderContext=new ss("SCMResourceFolderContext"),ss.SCMResourceGroupContext=new ss("SCMResourceGroupContext"),ss.SCMSourceControl=new ss("SCMSourceControl"),ss.SCMSourceControlInline=new ss("SCMSourceControlInline"),ss.SCMSourceControlTitle=new ss("SCMSourceControlTitle"),ss.SCMHistoryTitle=new ss("SCMHistoryTitle"),ss.SCMHistoryItemContext=new ss("SCMHistoryItemContext"),ss.SCMHistoryItemChangeContext=new ss("SCMHistoryItemChangeContext"),ss.SCMHistoryItemRefContext=new ss("SCMHistoryItemRefContext"),ss.SCMArtifactGroupContext=new ss("SCMArtifactGroupContext"),ss.SCMArtifactContext=new ss("SCMArtifactContext"),ss.SCMQuickDiffDecorations=new ss("SCMQuickDiffDecorations"),ss.SCMTitle=new ss("SCMTitle"),ss.SearchContext=new ss("SearchContext"),ss.SearchActionMenu=new ss("SearchActionContext"),ss.StatusBarWindowIndicatorMenu=new ss("StatusBarWindowIndicatorMenu"),ss.StatusBarRemoteIndicatorMenu=new ss("StatusBarRemoteIndicatorMenu"),ss.StickyScrollContext=new ss("StickyScrollContext"),ss.TestItem=new ss("TestItem"),ss.TestItemGutter=new ss("TestItemGutter"),ss.TestProfilesContext=new ss("TestProfilesContext"),ss.TestMessageContext=new ss("TestMessageContext"),ss.TestMessageContent=new ss("TestMessageContent"),ss.TestPeekElement=new ss("TestPeekElement"),ss.TestPeekTitle=new ss("TestPeekTitle"),ss.TestCallStack=new ss("TestCallStack"),ss.TestCoverageFilterItem=new ss("TestCoverageFilterItem"),ss.TouchBarContext=new ss("TouchBarContext"),ss.TitleBar=new ss("TitleBar"),ss.TitleBarContext=new ss("TitleBarContext"),ss.TitleBarTitleContext=new ss("TitleBarTitleContext"),ss.TunnelContext=new ss("TunnelContext"),ss.TunnelPrivacy=new ss("TunnelPrivacy"),ss.TunnelProtocol=new ss("TunnelProtocol"),ss.TunnelPortInline=new ss("TunnelInline"),ss.TunnelTitle=new ss("TunnelTitle"),ss.TunnelLocalAddressInline=new ss("TunnelLocalAddressInline"),ss.TunnelOriginInline=new ss("TunnelOriginInline"),ss.ViewItemContext=new ss("ViewItemContext"),ss.ViewContainerTitle=new ss("ViewContainerTitle"),ss.ViewContainerTitleContext=new ss("ViewContainerTitleContext"),ss.ViewTitle=new ss("ViewTitle"),ss.ViewTitleContext=new ss("ViewTitleContext"),ss.CommentEditorActions=new ss("CommentEditorActions"),ss.CommentThreadTitle=new ss("CommentThreadTitle"),ss.CommentThreadActions=new ss("CommentThreadActions"),ss.CommentThreadAdditionalActions=new ss("CommentThreadAdditionalActions"),ss.CommentThreadTitleContext=new ss("CommentThreadTitleContext"),ss.CommentThreadCommentContext=new ss("CommentThreadCommentContext"),ss.CommentTitle=new ss("CommentTitle"),ss.CommentActions=new ss("CommentActions"),ss.CommentsViewThreadActions=new ss("CommentsViewThreadActions"),ss.InteractiveToolbar=new ss("InteractiveToolbar"),ss.InteractiveCellTitle=new ss("InteractiveCellTitle"),ss.InteractiveCellDelete=new ss("InteractiveCellDelete"),ss.InteractiveCellExecute=new ss("InteractiveCellExecute"),ss.InteractiveInputExecute=new ss("InteractiveInputExecute"),ss.InteractiveInputConfig=new ss("InteractiveInputConfig"),ss.ReplInputExecute=new ss("ReplInputExecute"),ss.IssueReporter=new ss("IssueReporter"),ss.NotebookToolbar=new ss("NotebookToolbar"),ss.NotebookToolbarContext=new ss("NotebookToolbarContext"),ss.NotebookStickyScrollContext=new ss("NotebookStickyScrollContext"),ss.NotebookCellTitle=new ss("NotebookCellTitle"),ss.NotebookCellDelete=new ss("NotebookCellDelete"),ss.NotebookCellInsert=new ss("NotebookCellInsert"),ss.NotebookCellBetween=new ss("NotebookCellBetween"),ss.NotebookCellListTop=new ss("NotebookCellTop"),ss.NotebookCellExecute=new ss("NotebookCellExecute"),ss.NotebookCellExecuteGoTo=new ss("NotebookCellExecuteGoTo"),ss.NotebookCellExecutePrimary=new ss("NotebookCellExecutePrimary"),ss.NotebookDiffCellInputTitle=new ss("NotebookDiffCellInputTitle"),ss.NotebookDiffDocumentMetadata=new ss("NotebookDiffDocumentMetadata"),ss.NotebookDiffCellMetadataTitle=new ss("NotebookDiffCellMetadataTitle"),ss.NotebookDiffCellOutputsTitle=new ss("NotebookDiffCellOutputsTitle"),ss.NotebookOutputToolbar=new ss("NotebookOutputToolbar"),ss.NotebookOutlineFilter=new ss("NotebookOutlineFilter"),ss.NotebookOutlineActionMenu=new ss("NotebookOutlineActionMenu"),ss.NotebookEditorLayoutConfigure=new ss("NotebookEditorLayoutConfigure"),ss.NotebookKernelSource=new ss("NotebookKernelSource"),ss.BulkEditTitle=new ss("BulkEditTitle"),ss.BulkEditContext=new ss("BulkEditContext"),ss.TimelineItemContext=new ss("TimelineItemContext"),ss.TimelineTitle=new ss("TimelineTitle"),ss.TimelineTitleContext=new ss("TimelineTitleContext"),ss.TimelineFilterSubMenu=new ss("TimelineFilterSubMenu"),ss.AccountsContext=new ss("AccountsContext"),ss.SidebarTitle=new ss("SidebarTitle"),ss.PanelTitle=new ss("PanelTitle"),ss.AuxiliaryBarTitle=new ss("AuxiliaryBarTitle"),ss.TerminalInstanceContext=new ss("TerminalInstanceContext"),ss.TerminalEditorInstanceContext=new ss("TerminalEditorInstanceContext"),ss.TerminalNewDropdownContext=new ss("TerminalNewDropdownContext"),ss.TerminalTabContext=new ss("TerminalTabContext"),ss.TerminalTabEmptyAreaContext=new ss("TerminalTabEmptyAreaContext"),ss.TerminalStickyScrollContext=new ss("TerminalStickyScrollContext"),ss.WebviewContext=new ss("WebviewContext"),ss.InlineCompletionsActions=new ss("InlineCompletionsActions"),ss.InlineEditsActions=new ss("InlineEditsActions"),ss.NewFile=new ss("NewFile"),ss.MergeInput1Toolbar=new ss("MergeToolbar1Toolbar"),ss.MergeInput2Toolbar=new ss("MergeToolbar2Toolbar"),ss.MergeBaseToolbar=new ss("MergeBaseToolbar"),ss.MergeInputResultToolbar=new ss("MergeToolbarResultToolbar"),ss.InlineSuggestionToolbar=new ss("InlineSuggestionToolbar"),ss.InlineEditToolbar=new ss("InlineEditToolbar"),ss.ChatContext=new ss("ChatContext"),ss.ChatCodeBlock=new ss("ChatCodeblock"),ss.ChatCompareBlock=new ss("ChatCompareBlock"),ss.ChatMessageTitle=new ss("ChatMessageTitle"),ss.ChatHistory=new ss("ChatHistory"),ss.ChatWelcomeContext=new ss("ChatWelcomeContext"),ss.ChatMessageFooter=new ss("ChatMessageFooter"),ss.ChatExecute=new ss("ChatExecute"),ss.ChatInput=new ss("ChatInput"),ss.ChatInputSide=new ss("ChatInputSide"),ss.ChatModePicker=new ss("ChatModePicker"),ss.ChatEditingWidgetToolbar=new ss("ChatEditingWidgetToolbar"),ss.ChatEditingEditorContent=new ss("ChatEditingEditorContent"),ss.ChatEditingEditorHunk=new ss("ChatEditingEditorHunk"),ss.ChatEditingDeletedNotebookCell=new ss("ChatEditingDeletedNotebookCell"),ss.ChatInputAttachmentToolbar=new ss("ChatInputAttachmentToolbar"),ss.ChatEditingWidgetModifiedFilesToolbar=new ss("ChatEditingWidgetModifiedFilesToolbar"),ss.ChatInputResourceAttachmentContext=new ss("ChatInputResourceAttachmentContext"),ss.ChatInputSymbolAttachmentContext=new ss("ChatInputSymbolAttachmentContext"),ss.ChatInlineResourceAnchorContext=new ss("ChatInlineResourceAnchorContext"),ss.ChatInlineSymbolAnchorContext=new ss("ChatInlineSymbolAnchorContext"),ss.ChatMessageCheckpoint=new ss("ChatMessageCheckpoint"),ss.ChatMessageRestoreCheckpoint=new ss("ChatMessageRestoreCheckpoint"),ss.ChatNewMenu=new ss("ChatNewMenu"),ss.ChatEditingCodeBlockContext=new ss("ChatEditingCodeBlockContext"),ss.ChatTitleBarMenu=new ss("ChatTitleBarMenu"),ss.ChatAttachmentsContext=new ss("ChatAttachmentsContext"),ss.ChatToolOutputResourceToolbar=new ss("ChatToolOutputResourceToolbar"),ss.ChatTextEditorMenu=new ss("ChatTextEditorMenu"),ss.ChatToolOutputResourceContext=new ss("ChatToolOutputResourceContext"),ss.ChatMultiDiffContext=new ss("ChatMultiDiffContext"),ss.ChatSessionsMenu=new ss("ChatSessionsMenu"),ss.ChatSessionsCreateSubMenu=new ss("ChatSessionsCreateSubMenu"),ss.ChatConfirmationMenu=new ss("ChatConfirmationMenu"),ss.ChatEditorInlineExecute=new ss("ChatEditorInputExecute"),ss.ChatEditorInlineInputSide=new ss("ChatEditorInputSide"),ss.AccessibleView=new ss("AccessibleView"),ss.MultiDiffEditorFileToolbar=new ss("MultiDiffEditorFileToolbar"),ss.DiffEditorHunkToolbar=new ss("DiffEditorHunkToolbar"),ss.DiffEditorSelectionToolbar=new ss("DiffEditorSelectionToolbar"),cs=eue("menuService"),(hs=class e{static for(t){let i=this._all.get(t);return i||(i=new e(t),this._all.set(t,i)),i}static merge(t){const i=new Set;for(const n of t)n instanceof e&&i.add(n.id);return i}constructor(e){this.id=e,this.has=t=>t===e}})._all=new Map,us=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new Qe({merge:hs.merge}),this.onDidChangeMenu=this._onDidChangeMenu.event}addCommand(e){return this._commands.set(e.id,e),this._onDidChangeMenu.fire(hs.for(ds.CommandPalette)),Dle(()=>{this._commands.delete(e.id)&&this._onDidChangeMenu.fire(hs.for(ds.CommandPalette))})}getCommand(e){return this._commands.get(e)}getCommands(){const e=new Map;return this._commands.forEach((t,i)=>e.set(i,t)),e}appendMenuItem(e,t){let i=this._menuItems.get(e);i||(i=new Ae,this._menuItems.set(e,i));const n=i.push(t);return this._onDidChangeMenu.fire(hs.for(e)),Dle(()=>{n(),this._onDidChangeMenu.fire(hs.for(e))})}appendMenuItems(e){const t=new De;for(const{id:i,item:n}of e)t.add(this.appendMenuItem(i,n));return t}getMenuItems(e){let t;return t=this._menuItems.has(e)?[...this._menuItems.get(e)]:[],e===ds.CommandPalette&&this._appendImplicitItems(t),t}_appendImplicitItems(e){const t=new Set;for(const i of e)pue(i)&&(t.add(i.command.id),i.alt&&t.add(i.alt.id));this._commands.forEach((i,n)=>{t.has(n)||e.push({command:i})})}},gs=class extends ao{constructor(e,t,i){super(`submenuitem.${e.submenu.id}`,"string"==typeof e.title?e.title:e.title.value,i,"submenu"),this.item=e,this.hideActions=t}},ps=ls=class{static label(e,t){return t?.renderShortTitle&&e.shortTitle?"string"==typeof e.shortTitle?e.shortTitle:e.shortTitle.value:"string"==typeof e.title?e.title:e.title.value}constructor(e,t,i,n,o,s,r){let a;if(this.hideActions=n,this.menuKeybinding=o,this._commandService=r,this.id=e.id,this.label=ls.label(e,i),this.tooltip=("string"==typeof e.tooltip?e.tooltip:e.tooltip?.value)??"",this.enabled=!e.precondition||s.contextMatchesRules(e.precondition),this.checked=void 0,e.toggled){const t=e.toggled.condition?e.toggled:{condition:e.toggled};this.checked=s.contextMatchesRules(t.condition),this.checked&&t.tooltip&&(this.tooltip="string"==typeof t.tooltip?t.tooltip:t.tooltip.value),this.checked&&mo.isThemeIcon(t.icon)&&(a=t.icon),this.checked&&t.title&&(this.label="string"==typeof t.title?t.title:t.title.value)}a||(a=mo.isThemeIcon(e.icon)?e.icon:void 0),this.item=e,this.alt=t?new ls(t,void 0,i,n,void 0,s,r):void 0,this._options=i,this.class=a&&mo.asClassName(a)}run(...e){let t=[];return this._options?.arg&&(t=[...t,this._options.arg]),this._options?.shouldForwardArgs&&(t=[...t,...e]),this._commandService.executeCommand(this.id,...t)}},ps=ls=rs([as(5,es),as(6,fo)],ps),ms=class{constructor(e){this.desc=e}},fs=eue("telemetryService"),Cs=class{constructor(e,t){this.uri=e,this.value=t}},bs=Symbol.toStringTag,_s=Symbol.iterator,(ys=class e{constructor(t,i){if(this[bs]="ResourceMap",t instanceof e)this.map=new Map(t.map),this.toKey=i??e.defaultToKey;else if(function(e){return Array.isArray(e)}(t)){this.map=new Map,this.toKey=i??e.defaultToKey;for(const[e,i]of t)this.set(e,i)}else this.map=new Map,this.toKey=t??e.defaultToKey}set(e,t){return this.map.set(this.toKey(e),new Cs(e,t)),this}get(e){return this.map.get(this.toKey(e))?.value}has(e){return this.map.has(this.toKey(e))}get size(){return this.map.size}clear(){this.map.clear()}delete(e){return this.map.delete(this.toKey(e))}forEach(e,t){void 0!==t&&(e=e.bind(t));for(const[i,n]of this.map)e(n.value,n.uri,this)}*values(){for(const e of this.map.values())yield e.value}*keys(){for(const e of this.map.values())yield e.uri}*entries(){for(const e of this.map.values())yield[e.uri,e.value]}*[_s](){for(const[,e]of this.map)yield[e.uri,e.value]}}).defaultToKey=e=>e.toString(),Ss=class{constructor(e,t){this[vs]="ResourceSet",e&&"function"!=typeof e?(this._map=new ys(t),e.forEach(this.add,this)):this._map=new ys(e)}get size(){return this._map.size}add(e){return this._map.set(e,e),this}clear(){this._map.clear()}delete(e){return this._map.delete(e)}forEach(e,t){this._map.forEach((i,n)=>e.call(t,n,n,this))}has(e){return this._map.has(e)}entries(){return this._map.entries()}keys(){return this._map.keys()}values(){return this._map.keys()}[(vs=Symbol.toStringTag,Symbol.iterator)](){return this.keys()}},xs=class{constructor(){this[ws]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}has(e){return this._map.has(e)}get(e,t=0){const i=this._map.get(e);if(i)return 0!==t&&this.touch(i,t),i.value}set(e,t,i=0){let n=this._map.get(e);if(n)n.value=t,0!==i&&this.touch(n,i);else{switch(n={key:e,value:t,next:void 0,previous:void 0},i){case 0:case 2:default:this.addItemLast(n);break;case 1:this.addItemFirst(n)}this._map.set(e,n),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){const i=this._state;let n=this._head;for(;n;){if(t?e.bind(t)(n.value,n.key,this):e(n.value,n.key,this),this._state!==i)throw new Error("LinkedMap got modified during iteration.");n=n.next}}keys(){const e=this,t=this._state;let i=this._head;const n={[Symbol.iterator]:()=>n,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(i){const e={value:i.key,done:!1};return i=i.next,e}return{value:void 0,done:!0}}};return n}values(){const e=this,t=this._state;let i=this._head;const n={[Symbol.iterator]:()=>n,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(i){const e={value:i.value,done:!1};return i=i.next,e}return{value:void 0,done:!0}}};return n}entries(){const e=this,t=this._state;let i=this._head;const n={[Symbol.iterator]:()=>n,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(i){const e={value:[i.key,i.value],done:!1};return i=i.next,e}return{value:void 0,done:!0}}};return n}[(ws=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(0===e)return void this.clear();let t=this._head,i=this.size;for(;t&&i>e;)this._map.delete(t.key),t=t.next,i--;this._head=t,this._size=i,t&&(t.previous=void 0),this._state++}trimNew(e){if(e>=this.size)return;if(0===e)return void this.clear();let t=this._tail,i=this.size;for(;t&&i>e;)this._map.delete(t.key),t=t.previous,i--;this._tail=t,this._size=i,t&&(t.next=void 0),this._state++}addItemFirst(e){if(this._head||this._tail){if(!this._head)throw new Error("Invalid list");e.next=this._head,this._head.previous=e}else this._tail=e;this._head=e,this._state++}addItemLast(e){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list");e.previous=this._tail,this._tail.next=e}else this._head=e;this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{const t=e.next,i=e.previous;if(!t||!i)throw new Error("Invalid list");t.previous=i,i.next=t}e.next=void 0,e.previous=void 0,this._state++}touch(e,t){if(!this._head||!this._tail)throw new Error("Invalid list");if(1===t||2===t)if(1===t){if(e===this._head)return;const t=e.next,i=e.previous;e===this._tail?(i.next=void 0,this._tail=i):(t.previous=i,i.next=t),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(2===t){if(e===this._tail)return;const t=e.next,i=e.previous;e===this._head?(t.previous=void 0,this._head=t):(t.previous=i,i.next=t),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}toJSON(){const e=[];return this.forEach((t,i)=>{e.push([i,t])}),e}fromJSON(e){this.clear();for(const[t,i]of e)this.set(t,i)}},ks=class extends xs{constructor(e,t=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get(e,t=2){return super.get(e,t)}peek(e){return super.get(e,0)}set(e,t){return super.set(e,t,2),this}checkTrim(){this.size>this._limit&&this.trim(Math.round(this._limit*this._ratio))}},Ls=class extends ks{constructor(e,t=1){super(e,t)}trim(e){this.trimOld(e)}set(e,t){return super.set(e,t),this.checkTrim(),this}},Ds=class{constructor(e){if(this._m1=new Map,this._m2=new Map,e)for(const[t,i]of e)this.set(t,i)}clear(){this._m1.clear(),this._m2.clear()}set(e,t){this._m1.set(e,t),this._m2.set(t,e)}get(e){return this._m1.get(e)}getKey(e){return this._m2.get(e)}delete(e){const t=this._m1.get(e);return void 0!==t&&(this._m1.delete(e),this._m2.delete(t),!0)}keys(){return this._m1.keys()}values(){return this._m1.values()}},Is=class{constructor(){this.map=new Map}add(e,t){let i=this.map.get(e);i||(i=new Set,this.map.set(e,i)),i.add(t)}delete(e,t){const i=this.map.get(e);i&&(i.delete(t),0===i.size&&this.map.delete(e))}forEach(e,t){const i=this.map.get(e);i&&i.forEach(t)}},Ns=class{constructor(){this._data=new Map}set(e,...t){let i=this._data;for(let n=0;n{let n="";for(const[o,s]of t)n+=`${" ".repeat(i)}${o}: `,s instanceof Map?n+="\n"+e(s,i+1):n+=`${s}\n`;return n};return e(this._data,0)}},Es=class{constructor(e){this._ignorePathCasing=e}compare(e,t,i=!1){return e===t?0:Zle(this.getComparisonKey(e,i),this.getComparisonKey(t,i))}isEqual(e,t,i=!1){return e===t||!(!e||!t)&&this.getComparisonKey(e,i)===this.getComparisonKey(t,i)}getComparisonKey(e,t=!1){return e.with({path:this._ignorePathCasing(e)?e.path.toLowerCase():void 0,fragment:t?null:void 0}).toString()}isEqualOrParent(e,t,i=!1){if(e.scheme===t.scheme){if(e.scheme===yi.file)return vue(Cue(e),Cue(t),this._ignorePathCasing(e))&&e.query===t.query&&(i||e.fragment===t.fragment);if(Hs(e.authority,t.authority))return vue(e.path,t.path,this._ignorePathCasing(e),"/")&&e.query===t.query&&(i||e.fragment===t.fragment)}return!1}joinPath(e,...t){return _i.joinPath(e,...t)}basenameOrAuthority(e){return Os(e)||e.authority}basename(e){return ni.basename(e.path)}extname(e){return ni.extname(e.path)}dirname(e){if(0===e.path.length)return e;let t;return e.scheme===yi.file?t=_i.file(ai(Cue(e))).path:(t=ni.dirname(e.path),e.authority&&t.length&&47!==t.charCodeAt(0)&&(console.error(`dirname("${e.toString})) resulted in a relative path`),t="/")),e.with({path:t})}normalizePath(e){if(!e.path.length)return e;let t;return t=e.scheme===yi.file?_i.file(oi(Cue(e))).path:ni.normalize(e.path),e.with({path:t})}relativePath(e,t){if(e.scheme!==t.scheme||!Hs(e.authority,t.authority))return;if(e.scheme===yi.file){const i=ri(Cue(e),Cue(t));return P?_ue(i):i}let i=e.path||"/";const n=t.path||"/";if(this._ignorePathCasing(e)){let e=0;for(const t=Math.min(i.length,n.length);ebue(i).length&&i[i.length-1]===t}{const t=e.path;return t.length>1&&47===t.charCodeAt(t.length-1)&&!/^[a-zA-Z]:(\/$|\\$)/.test(e.fsPath)}}removeTrailingPathSeparator(e,t=ci){return zs(e,t)?e.with({path:e.path.substr(0,e.path.length-1)}):e}addTrailingPathSeparator(e,t=ci){let i=!1;if(e.scheme===yi.file){const n=Cue(e);i=void 0!==n&&n.length===bue(n).length&&n[n.length-1]===t}else{t="/";const n=e.path;i=1===n.length&&47===n.charCodeAt(n.length-1)}return i||zs(e,t)?e:e.with({path:e.path+"/"})}},Ms=new Es(()=>!1),Ts=Ms.isEqual.bind(Ms),Ms.isEqualOrParent.bind(Ms),Ms.getComparisonKey.bind(Ms),Rs=Ms.basenameOrAuthority.bind(Ms),Os=Ms.basename.bind(Ms),As=Ms.extname.bind(Ms),Ps=Ms.dirname.bind(Ms),Fs=Ms.joinPath.bind(Ms),Ws=Ms.normalizePath.bind(Ms),Bs=Ms.relativePath.bind(Ms),Vs=Ms.resolvePath.bind(Ms),Ms.isAbsolutePath.bind(Ms),Hs=Ms.isEqualAuthority.bind(Ms),zs=Ms.hasTrailingPathSeparator.bind(Ms),Ms.removeTrailingPathSeparator.bind(Ms),Ms.addTrailingPathSeparator.bind(Ms),function(e){e.META_DATA_LABEL="label",e.META_DATA_DESCRIPTION="description",e.META_DATA_SIZE="size",e.META_DATA_MIME="mime",e.parseMetaData=function(t){const i=new Map;t.path.substring(t.path.indexOf(";")+1,t.path.lastIndexOf(";")).split(";").forEach(e=>{const[t,n]=e.split(":");t&&n&&i.set(t,n)});const n=t.path.substring(0,t.path.indexOf(";"));return n&&i.set(e.META_DATA_MIME,n),i}}(Us||(Us={})),Ks=eue("logService"),qs=eue("loggerService"),function(e){e[e.Off=0]="Off",e[e.Trace=1]="Trace",e[e.Debug=2]="Debug",e[e.Info=3]="Info",e[e.Warning=4]="Warning",e[e.Error=5]="Error"}(js||(js={})),$s=js.Info,Gs=class extends Ie{constructor(){super(...arguments),this.level=$s,this._onDidChangeLogLevel=this._register(new je)}get onDidChangeLogLevel(){return this._onDidChangeLogLevel.event}setLevel(e){this.level!==e&&(this.level=e,this._onDidChangeLogLevel.fire(this.level))}getLevel(){return this.level}checkLogLevel(e){return yue(this.level,e)}canLog(e){return!this._store.isDisposed&&this.checkLogLevel(e)}},Zs=class extends Gs{constructor(e=$s,t=!0){super(),this.useColors=t,this.setLevel(e)}trace(e,...t){this.canLog(js.Trace)&&(this.useColors?console.log("%cTRACE","color: #888",e,...t):console.log(e,...t))}debug(e,...t){this.canLog(js.Debug)&&(this.useColors?console.log("%cDEBUG","background: #eee; color: #888",e,...t):console.log(e,...t))}info(e,...t){this.canLog(js.Info)&&(this.useColors?console.log("%c INFO","color: #33f",e,...t):console.log(e,...t))}warn(e,...t){this.canLog(js.Warning)&&(this.useColors?console.warn("%c WARN","color: #993",e,...t):console.log(e,...t))}error(e,...t){this.canLog(js.Error)&&(this.useColors?console.error("%c ERR","color: #f33",e,...t):console.error(e,...t))}},Ys=class extends Gs{constructor(e){super(),this.loggers=e,e.length&&this.setLevel(e[0].getLevel())}setLevel(e){for(const t of this.loggers)t.setLevel(e);super.setLevel(e)}trace(e,...t){for(const i of this.loggers)i.trace(e,...t)}debug(e,...t){for(const i of this.loggers)i.debug(e,...t)}info(e,...t){for(const i of this.loggers)i.info(e,...t)}warn(e,...t){for(const i of this.loggers)i.warn(e,...t)}error(e,...t){for(const i of this.loggers)i.error(e,...t)}dispose(){for(const e of this.loggers)e.dispose();super.dispose()}},Qs=class extends Ie{constructor(e,t,i){if(super(),this.logLevel=e,this.logsHome=t,this._loggers=new ys,this._onDidChangeLoggers=this._register(new je),this._onDidChangeVisibility=this._register(new je),i)for(const n of i)this._loggers.set(n.resource,{logger:void 0,info:n})}getLoggerEntry(e){return sle(e)?[...this._loggers.values()].find(t=>t.info.id===e):this._loggers.get(e)}createLogger(e,t){const i=this.toResource(e),n=sle(e)?e:t?.id??Ude(i.toString()).toString(16);let o=this._loggers.get(i)?.logger;const s="always"===t?.logLevel?js.Trace:t?.logLevel;o||(o=this.doCreateLogger(i,s??this.getLogLevel(i)??this.logLevel,{...t,id:n}));const r={logger:o,info:{resource:i,id:n,logLevel:s,name:t?.name,hidden:t?.hidden,group:t?.group,extensionId:t?.extensionId,when:t?.when}};return this.registerLogger(r.info),this._loggers.set(i,r),o}toResource(e){return sle(e)?Fs(this.logsHome,`${e}.log`):e}setVisibility(e,t){const i=this.getLoggerEntry(e);i&&t!==!i.info.hidden&&(i.info.hidden=!t,this._loggers.set(i.info.resource,i),this._onDidChangeVisibility.fire([i.info.resource,t]))}getLogLevel(e){let t;return e&&(t=this._loggers.get(e)?.info.logLevel),t??this.logLevel}registerLogger(e){const t=this._loggers.get(e.resource);t?t.info.hidden!==e.hidden&&this.setVisibility(e.resource,!e.hidden):(this._loggers.set(e.resource,{info:e,logger:void 0}),this._onDidChangeLoggers.fire({added:[e],removed:[]}))}dispose(){this._loggers.forEach(e=>e.logger?.dispose()),this._loggers.clear(),super.dispose()}},Xs=class{constructor(){this.onDidChangeLogLevel=(new je).event}setLevel(e){}getLevel(){return js.Info}trace(e,...t){}debug(e,...t){}info(e,...t){}warn(e,...t){}error(e,...t){}dispose(){}},Js=class extends Qs{constructor(){super(js.Off,_i.parse("log:///log"))}doCreateLogger(e,t,i){return new Xs}},new Jo("logLevel",function(e){switch(e){case js.Trace:return"trace";case js.Debug:return"debug";case js.Info:return"info";case js.Warning:return"warn";case js.Error:return"error";case js.Off:return"off"}}(js.Info)),(er=class e{static getRegisteredCommands(){return[...e.REGISTERED_COMMANDS]}static registerCommand(t){e.REGISTERED_COMMANDS.add(t)}}).REGISTERED_COMMANDS=new Set,ir=class{constructor(e){this.id=e.id,this.precondition=e.precondition,this._kbOpts=e.kbOpts,this._menuOpts=e.menuOpts,this.metadata=e.metadata,this.canTriggerInlineEdits=e.canTriggerInlineEdits}register(){if(Array.isArray(this._menuOpts)?this._menuOpts.forEach(this._registerMenuItem,this):this._menuOpts&&this._registerMenuItem(this._menuOpts),this._kbOpts){const e=Array.isArray(this._kbOpts)?this._kbOpts:[this._kbOpts];for(const t of e){let e=t.kbExpr;this.precondition&&(e=e?Po.and(e,this.precondition):this.precondition);const i={id:this.id,weight:t.weight,args:t.args,when:e,primary:t.primary,secondary:t.secondary,win:t.win,linux:t.linux,mac:t.mac};ns.registerKeybindingRule(i)}}_o.registerCommand({id:this.id,handler:(e,t)=>this.runCommand(e,t),metadata:this.metadata}),this.canTriggerInlineEdits&&er.registerCommand(this.id)}_registerMenuItem(e){us.appendMenuItem(e.menuId,{group:e.group,command:{id:this.id,title:e.title,icon:e.icon,precondition:this.precondition},when:e.when,order:e.order})}},nr=class extends ir{constructor(){super(...arguments),this._implementations=[]}addImplementation(e,t,i,n){return this._implementations.push({priority:e,name:t,implementation:i,when:n}),this._implementations.sort((e,t)=>t.priority-e.priority),{dispose:()=>{for(let e=0;e{if(e.get(es).contextMatchesRules(i??void 0))return n(e,s,t)})}runCommand(t,i){return e.runEditorCommand(t,i,this.precondition,(e,t,i)=>this.runEditorCommand(e,t,i))}},rr=class e extends sr{static convertOptions(e){let t;function i(t){return t.menuId||(t.menuId=ds.EditorContext),t.title||(t.title="string"==typeof e.label?e.label:e.label.value),t.when=Po.and(e.precondition,t.when),t}return t=Array.isArray(e.menuOpts)?e.menuOpts:e.menuOpts?[e.menuOpts]:[],Array.isArray(e.contextMenuOpts)?t.push(...e.contextMenuOpts.map(i)):e.contextMenuOpts&&t.push(i(e.contextMenuOpts)),e.menuOpts=t,e}constructor(t){super(e.convertOptions(t)),"string"==typeof t.label?(this.label=t.label,this.alias=t.alias??t.label):(this.label=t.label.value,this.alias=t.alias??t.label.original)}runEditorCommand(e,t,i){return this.reportTelemetry(e,t),this.run(e,t,i||{})}reportTelemetry(e,t){e.get(fs).publicLog2("editorActionInvoked",{name:this.label,id:this.id})}},ar=class extends rr{constructor(){super(...arguments),this._implementations=[]}addImplementation(e,t){return this._implementations.push([e,t]),this._implementations.sort((e,t)=>t[0]-e[0]),{dispose:()=>{for(let e=0;e{const i=e.get(es),o=e.get(Ks);if(i.contextMatchesRules(this.desc.precondition??void 0))return this.runEditorCommand(e,n,...t);o.debug("[EditorAction2] NOT running command because its precondition is FALSE",this.desc.id,this.desc.precondition?.serialize())})}},function(e){e.getEditorCommand=function(e){return hr.INSTANCE.getEditorCommand(e)},e.getEditorActions=function(){return hr.INSTANCE.getEditorActions()},e.getEditorContributions=function(){return hr.INSTANCE.getEditorContributions()},e.getSomeEditorContributions=function(e){return hr.INSTANCE.getEditorContributions().filter(t=>e.indexOf(t.id)>=0)},e.getDiffEditorContributions=function(){return hr.INSTANCE.getDiffEditorContributions()}}(dr||(dr={})),cr={EditorCommonContributions:"editor.contributions"},(tr=hr=class{constructor(){this.editorContributions=[],this.diffEditorContributions=[],this.editorActions=[],this.editorCommands=Object.create(null)}registerEditorContribution(e,t,i){this.editorContributions.push({id:e,ctor:t,instantiation:i})}getEditorContributions(){return this.editorContributions.slice(0)}getDiffEditorContributions(){return this.diffEditorContributions.slice(0)}registerEditorAction(e){e.register(),this.editorActions.push(e)}getEditorActions(){return this.editorActions}registerEditorCommand(e){e.register(),this.editorCommands[e.id]=e}getEditorCommand(e){return this.editorCommands[e]||null}}).INSTANCE=new tr,ts.add(cr.EditorCommonContributions,hr.INSTANCE),ur=Nue(new nr({id:"undo",precondition:void 0,kbOpts:{weight:0,primary:2104},menuOpts:[{menuId:ds.MenubarEditMenu,group:"1_do",title:Vae(69,"&&Undo"),order:1},{menuId:ds.CommandPalette,group:"",title:Vae(70,"Undo"),order:1},{menuId:ds.SimpleEditorContext,group:"1_do",title:Vae(71,"Undo"),order:1}]})),Nue(new or(ur,{id:"default:undo",precondition:void 0})),gr=Nue(new nr({id:"redo",precondition:void 0,kbOpts:{weight:0,primary:2103,secondary:[3128],mac:{primary:3128}},menuOpts:[{menuId:ds.MenubarEditMenu,group:"1_do",title:Vae(72,"&&Redo"),order:2},{menuId:ds.CommandPalette,group:"",title:Vae(73,"Redo"),order:1},{menuId:ds.SimpleEditorContext,group:"1_do",title:Vae(74,"Redo"),order:2}]})),Nue(new or(gr,{id:"default:redo",precondition:void 0})),pr=Nue(new nr({id:"editor.action.selectAll",precondition:void 0,kbOpts:{weight:0,kbExpr:null,primary:2079},menuOpts:[{menuId:ds.MenubarSelectionMenu,group:"1_basic",title:Vae(75,"&&Select All"),order:1},{menuId:ds.CommandPalette,group:"",title:Vae(76,"Select All"),order:1},{menuId:ds.SimpleEditorContext,group:"9_select",title:Vae(77,"Select All"),order:1}]})),mr=class e{constructor(e,t,i,n){e>i||e===i&&t>n?(this.startLineNumber=i,this.startColumn=n,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=i,this.endColumn=n)}isEmpty(){return e.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(t){return e.containsPosition(this,t)}static containsPosition(e,t){return!(t.lineNumbere.endLineNumber||t.lineNumber===e.startLineNumber&&t.columne.endColumn)}static strictContainsPosition(e,t){return!(t.lineNumbere.endLineNumber||t.lineNumber===e.startLineNumber&&t.column<=e.startColumn||t.lineNumber===e.endLineNumber&&t.column>=e.endColumn)}containsRange(t){return e.containsRange(this,t)}static containsRange(e,t){return!(t.startLineNumbere.endLineNumber||t.endLineNumber>e.endLineNumber||t.startLineNumber===e.startLineNumber&&t.startColumne.endColumn)}strictContainsRange(t){return e.strictContainsRange(this,t)}static strictContainsRange(e,t){return!(t.startLineNumbere.endLineNumber||t.endLineNumber>e.endLineNumber||t.startLineNumber===e.startLineNumber&&t.startColumn<=e.startColumn||t.endLineNumber===e.endLineNumber&&t.endColumn>=e.endColumn)}plusRange(t){return e.plusRange(this,t)}static plusRange(t,i){let n,o,s,r;return i.startLineNumbert.endLineNumber?(s=i.endLineNumber,r=i.endColumn):i.endLineNumber===t.endLineNumber?(s=i.endLineNumber,r=Math.max(i.endColumn,t.endColumn)):(s=t.endLineNumber,r=t.endColumn),new e(n,o,s,r)}intersectRanges(t){return e.intersectRanges(this,t)}static intersectRanges(t,i){let n=t.startLineNumber,o=t.startColumn,s=t.endLineNumber,r=t.endColumn;const a=i.startLineNumber,l=i.startColumn,d=i.endLineNumber,c=i.endColumn;return nd?(s=d,r=c):s===d&&(r=Math.min(r,c)),n>s||n===s&&o>r?null:new e(n,o,s,r)}equalsRange(t){return e.equalsRange(this,t)}static equalsRange(e,t){return!e&&!t||!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn}getEndPosition(){return e.getEndPosition(this)}static getEndPosition(e){return new to(e.endLineNumber,e.endColumn)}getStartPosition(){return e.getStartPosition(this)}static getStartPosition(e){return new to(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(t,i){return new e(this.startLineNumber,this.startColumn,t,i)}setStartPosition(t,i){return new e(t,i,this.endLineNumber,this.endColumn)}collapseToStart(){return e.collapseToStart(this)}static collapseToStart(t){return new e(t.startLineNumber,t.startColumn,t.startLineNumber,t.startColumn)}collapseToEnd(){return e.collapseToEnd(this)}static collapseToEnd(t){return new e(t.endLineNumber,t.endColumn,t.endLineNumber,t.endColumn)}delta(t){return new e(this.startLineNumber+t,this.startColumn,this.endLineNumber+t,this.endColumn)}isSingleLine(){return this.startLineNumber===this.endLineNumber}static fromPositions(t,i=t){return new e(t.lineNumber,t.column,i.lineNumber,i.column)}static lift(t){return t?new e(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):null}static isIRange(e){return!!e&&"number"==typeof e.startLineNumber&&"number"==typeof e.startColumn&&"number"==typeof e.endLineNumber&&"number"==typeof e.endColumn}static areIntersectingOrTouching(e,t){return!(e.endLineNumbere.startLineNumber}toJSON(){return this}},fr=class e extends mr{constructor(e,t,i,n){super(e,t,i,n),this.selectionStartLineNumber=e,this.selectionStartColumn=t,this.positionLineNumber=i,this.positionColumn=n}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(t){return e.selectionsEqual(this,t)}static selectionsEqual(e,t){return e.selectionStartLineNumber===t.selectionStartLineNumber&&e.selectionStartColumn===t.selectionStartColumn&&e.positionLineNumber===t.positionLineNumber&&e.positionColumn===t.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(t,i){return 0===this.getDirection()?new e(this.startLineNumber,this.startColumn,t,i):new e(t,i,this.startLineNumber,this.startColumn)}getPosition(){return new to(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new to(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(t,i){return 0===this.getDirection()?new e(t,i,this.endLineNumber,this.endColumn):new e(this.endLineNumber,this.endColumn,t,i)}static fromPositions(t,i=t){return new e(t.lineNumber,t.column,i.lineNumber,i.column)}static fromRange(t,i){return 0===i?new e(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):new e(t.endLineNumber,t.endColumn,t.startLineNumber,t.startColumn)}static liftSelection(t){return new e(t.selectionStartLineNumber,t.selectionStartColumn,t.positionLineNumber,t.positionColumn)}static selectionsArrEqual(e,t){if(e&&!t||!e&&t)return!1;if(!e&&!t)return!0;if(e.length!==t.length)return!1;for(let i=0,n=e.length;i=t)return l-t!0,Cr=()=>!1,yr=e=>" "===e||"\t"===e,Sr=class{static shouldRecreate(e){return e.hasChanged(165)||e.hasChanged(148)||e.hasChanged(45)||e.hasChanged(85)||e.hasChanged(88)||e.hasChanged(89)||e.hasChanged(10)||e.hasChanged(11)||e.hasChanged(15)||e.hasChanged(13)||e.hasChanged(14)||e.hasChanged(20)||e.hasChanged(145)||e.hasChanged(141)||e.hasChanged(59)||e.hasChanged(104)||e.hasChanged(147)||e.hasChanged(93)}constructor(e,t,i,n){this.languageConfigurationService=n,this._cursorMoveConfigurationBrand=void 0,this._languageId=e;const o=i.options,s=o.get(165),r=o.get(59);this.readOnly=o.get(104),this.tabSize=t.tabSize,this.indentSize=t.indentSize,this.insertSpaces=t.insertSpaces,this.stickyTabStops=o.get(132),this.lineHeight=r.lineHeight,this.typicalHalfwidthCharacterWidth=r.typicalHalfwidthCharacterWidth,this.pageSize=Math.max(1,Math.floor(s.height/this.lineHeight)-2),this.useTabStops=o.get(145),this.trimWhitespaceOnDelete=o.get(141),this.wordSeparators=o.get(148),this.emptySelectionClipboard=o.get(45),this.copyWithSyntaxHighlighting=o.get(31),this.multiCursorMergeOverlapping=o.get(85),this.multiCursorPaste=o.get(88),this.multiCursorLimit=o.get(89),this.autoClosingBrackets=o.get(10),this.autoClosingComments=o.get(11),this.autoClosingQuotes=o.get(15),this.autoClosingDelete=o.get(13),this.autoClosingOvertype=o.get(14),this.autoSurround=o.get(20),this.autoIndent=o.get(16),this.wordSegmenterLocales=o.get(147),this.overtypeOnPaste=o.get(93),this.surroundingPairs={},this._electricChars=null,this.shouldAutoCloseBefore={quote:this._getShouldAutoClose(e,this.autoClosingQuotes,!0),comment:this._getShouldAutoClose(e,this.autoClosingComments,!1),bracket:this._getShouldAutoClose(e,this.autoClosingBrackets,!1)},this.autoClosingPairs=this.languageConfigurationService.getLanguageConfiguration(e).getAutoClosingPairs();const a=this.languageConfigurationService.getLanguageConfiguration(e).getSurroundingPairs();if(a)for(const l of a)this.surroundingPairs[l.open]=l.close;this.blockCommentStartToken=this.languageConfigurationService.getLanguageConfiguration(e).comments?.blockCommentStartToken??null}get electricChars(){if(!this._electricChars){this._electricChars={};const e=this.languageConfigurationService.getLanguageConfiguration(this._languageId).electricCharacter?.getElectricCharacters();if(e)for(const t of e)this._electricChars[t]=!0}return this._electricChars}get inputMode(){return vr.getInputMode()}onElectricCharacter(e,t,i){const n=Eue(t,i-1),o=this.languageConfigurationService.getLanguageConfiguration(n.languageId).electricCharacter;return o?o.onElectricCharacter(e,n,i-n.firstCharOffset):null}normalizeIndentation(e){return Tue(e,this.indentSize,this.insertSpaces)}_getShouldAutoClose(e,t,i){switch(t){case"beforeWhitespace":return yr;case"languageDefined":return this._getLanguageDefinedShouldAutoClose(e,i);case"always":return wr;case"never":return Cr}}_getLanguageDefinedShouldAutoClose(e,t){const i=this.languageConfigurationService.getLanguageConfiguration(e).getAutoCloseBeforeSet(t);return e=>-1!==i.indexOf(e)}visibleColumnFromColumn(e,t){return br.visibleColumnFromColumn(e.getLineContent(t.lineNumber),t.column,this.tabSize)}columnFromVisibleColumn(e,t,i){const n=br.columnFromVisibleColumn(e.getLineContent(t),i,this.tabSize),o=e.getLineMinColumn(t);if(ns?s:n}},xr=class e{static fromModelState(e){return new kr(e)}static fromViewState(e){return new Lr(e)}static fromModelSelection(t){const i=fr.liftSelection(t),n=new Dr(mr.fromPositions(i.getSelectionStart()),0,0,i.getPosition(),0);return e.fromModelState(n)}static fromModelSelections(e){const t=[];for(let i=0,n=e.length;io,l=n>s,d=ns)continue;if(pn)continue;if(g0&&o--,e.columnSelect(t,i,n.fromViewLineNumber,n.fromViewVisualColumn,n.toViewLineNumber,o)}static columnSelectRight(e,t,i){let n=0;const o=Math.min(i.fromViewLineNumber,i.toViewLineNumber),s=Math.max(i.fromViewLineNumber,i.toViewLineNumber);for(let a=o;a<=s;a++){const i=t.getLineMaxColumn(a),o=e.visibleColumnFromColumn(t,new to(a,i));n=Math.max(n,o)}let r=i.toViewVisualColumn;return ro&&(s=new to(o,e.getLineMaxColumn(o)));const r=mr.fromPositions(i,s);t.addTrackedEditOperation(r,this._text)}computeCursorState(e,t){const i=t.getInverseEditOperations()[0].range;return fr.fromPositions(i.getEndPosition())}},Tr=class{constructor(e,t){this._range=e,this._text=t}getEditOperations(e,t){t.addTrackedEditOperation(this._range,this._text)}computeCursorState(e,t){const i=t.getInverseEditOperations()[0].range;return fr.fromRange(i,0)}},Rr=class{constructor(e,t,i=!1){this._range=e,this._text=t,this.insertsAutoWhitespace=i}getEditOperations(e,t){t.addTrackedEditOperation(this._range,this._text)}computeCursorState(e,t){const i=t.getInverseEditOperations()[0].range;return fr.fromPositions(i.getStartPosition())}},Or=class{constructor(e,t,i,n,o=!1){this._range=e,this._text=t,this._columnDeltaOffset=n,this._lineNumberDeltaOffset=i,this.insertsAutoWhitespace=o}getEditOperations(e,t){t.addTrackedEditOperation(this._range,this._text)}computeCursorState(e,t){const i=t.getInverseEditOperations()[0].range;return fr.fromPositions(i.getEndPosition().delta(this._lineNumberDeltaOffset,this._columnDeltaOffset))}},Ar=class{constructor(e){this._range=e}getEditOperations(e,t){const i=e.getValueInRange(this._range),n=this._range.getEndPosition(),o=n.lineNumber;let s=Oue(e,n,i.length);s.lineNumber>o&&(s=new to(o,e.getLineMaxColumn(o)));const r=mr.fromPositions(n,s);t.addTrackedEditOperation(r,"")}computeCursorState(e,t){const i=t.getInverseEditOperations()[0].range;return fr.fromPositions(i.getEndPosition())}},Pr=class{constructor(e,t,i,n=!1){this._range=e,this._text=t,this._initialSelection=i,this._forceMoveMarkers=n,this._selectionId=null}getEditOperations(e,t){t.addTrackedEditOperation(this._range,this._text,this._forceMoveMarkers),this._selectionId=t.trackSelection(this._initialSelection)}computeCursorState(e,t){return t.getTrackedSelection(this._selectionId)}},Fr=class e{static whitespaceVisibleColumn(e,t,i){const n=e.length;let o=0,s=-1,r=-1;for(let a=0;ae.getLineMinColumn(t.lineNumber))return t.delta(void 0,-ude(e.getLineContent(t.lineNumber),t.column-1));if(t.lineNumber>1){const i=t.lineNumber-1;return new to(i,e.getLineMaxColumn(i))}return t}static leftPositionAtomicSoftTabs(e,t,i){if(t.column<=e.getLineIndentColumn(t.lineNumber)){const n=e.getLineMinColumn(t.lineNumber),o=e.getLineContent(t.lineNumber),s=Fr.atomicPosition(o,t.column-1,i,0);if(-1!==s&&s+1>=n)return new to(t.lineNumber,s+1)}return this.leftPosition(e,t)}static left(t,i,n){const o=t.stickyTabStops?e.leftPositionAtomicSoftTabs(i,n,t.tabSize):e.leftPosition(i,n);return new Wr(o.lineNumber,o.column,0)}static moveLeft(t,i,n,o,s){let r,a;if(n.hasSelection()&&!o)r=n.selection.startLineNumber,a=n.selection.startColumn;else{const o=n.position.delta(void 0,-(s-1)),l=i.normalizePosition(e.clipPositionColumn(o,i),0),d=e.left(t,i,l);r=d.lineNumber,a=d.column}return n.move(o,r,a,0)}static clipPositionColumn(t,i){return new to(t.lineNumber,e.clipRange(t.column,i.getLineMinColumn(t.lineNumber),i.getLineMaxColumn(t.lineNumber)))}static clipRange(e,t,i){return ei?i:e}static rightPosition(e,t,i){return id?(i=d,n=r?t.getLineMaxColumn(i):Math.min(t.getLineMaxColumn(i),n)):n=e.columnFromVisibleColumn(t,i,l),o=u?0:l-br.visibleColumnFromColumn(t.getLineContent(i),n,e.tabSize),void 0!==a){const e=new to(i,n),s=t.normalizePosition(e,a);o+=n-s.column,i=s.lineNumber,n=s.column}return new Wr(i,n,o)}static down(e,t,i,n,o,s,r){return this.vertical(e,t,i,n,o,i+s,r,4)}static moveDown(t,i,n,o,s){let r,a;n.hasSelection()&&!o?(r=n.selection.endLineNumber,a=n.selection.endColumn):(r=n.position.lineNumber,a=n.position.column);let l,d=0;do{if(l=e.down(t,i,r+d,a,n.leftoverVisibleColumns,s,!0),i.normalizePosition(new to(l.lineNumber,l.column),2).lineNumber>r)break}while(d++<10&&r+d1&&this._isBlankLine(t,o);)o--;for(;o>1&&!this._isBlankLine(t,o);)o--;return i.move(n,o,t.getLineMinColumn(o),0)}static moveToNextBlankLine(e,t,i,n){const o=t.getLineCount();let s=i.position.lineNumber;for(;s0,i=t.getLineFirstNonWhitespaceColumn(o.lineNumber);if(e&&i>0)return new mr(o.lineNumber,i,n.lineNumber,n.column)}return new mr(o.lineNumber,o.column,n.lineNumber,n.column)}static isAutoClosingPairDelete(e,t,i,n,o,s,r){if("never"===t&&"never"===i)return!1;if("never"===e)return!1;for(let a=0,l=s.length;a=c.length+1)return!1;const h=c.charAt(d.column-2),u=n.get(h);if(!u)return!1;if(Rue(h)){if("never"===i)return!1}else if("never"===t)return!1;const g=c.charAt(d.column-1);let p=!1;for(const e of u)e.open===h&&e.close===g&&(p=!0);if(!p)return!1;if("auto"===e){let e=!1;for(let t=0,i=r.length;t1){const e=i.getLineContent(o.lineNumber),t=jle(e),s=-1===t?e.length+1:t+1;if(o.column<=s){const e=n.visibleColumnFromColumn(i,o),t=br.prevIndentTabStop(e,n.indentSize),s=n.columnFromVisibleColumn(i,o.lineNumber,t);return new mr(o.lineNumber,s,o.lineNumber,o.column)}}return mr.fromPositions(e.getPositionAfterDeleteLeft(o,i),o)}static getPositionAfterDeleteLeft(e,t){if(e.column>1){const i=Cde(e.column-1,t.getLineContent(e.lineNumber));return e.with(void 0,i+1)}if(e.lineNumber>1){const i=e.lineNumber-1;return new to(i,t.getLineMaxColumn(i))}return e}static cut(e,t,i){const n=[];let o=null;i.sort((e,t)=>to.compare(e.getStartPosition(),t.getEndPosition()));for(let s=0,r=i.length;s1&&o?.endLineNumber!==e.lineNumber?(i=e.lineNumber-1,a=t.getLineMaxColumn(e.lineNumber-1),l=e.lineNumber,d=t.getLineMaxColumn(e.lineNumber)):(i=e.lineNumber,a=1,l=e.lineNumber,d=t.getLineMaxColumn(e.lineNumber));const c=new mr(i,a,l,d);o=c,c.isEmpty()?n[s]=null:n[s]=new Er(c,"")}else n[s]=null;else n[s]=new Er(r,"")}return new Ir(0,n,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}},Hr={DateTimeFormat:(e,t)=>new Nt(()=>{try{return new Intl.DateTimeFormat(e,t)}catch{return new Intl.DateTimeFormat(void 0,t)}}),Collator:(e,t)=>new Nt(()=>{try{return new Intl.Collator(e,t)}catch{return new Intl.Collator(void 0,t)}}),Segmenter:(e,t)=>new Nt(()=>{try{return new Intl.Segmenter(e,t)}catch{return new Intl.Segmenter(void 0,t)}}),Locale:(e,t)=>new Nt(()=>{try{return new Intl.Locale(e,t)}catch{return new Intl.Locale("en",t)}}),NumberFormat:(e,t)=>new Nt(()=>{try{return new Intl.NumberFormat(e,t)}catch{return new Intl.NumberFormat(void 0,t)}})},zr=class e{constructor(t){const i=Aue(t);this._defaultValue=i,this._asciiMap=e._createAsciiMap(i),this._map=new Map}static _createAsciiMap(e){const t=new Uint8Array(256);return t.fill(e),t}set(e,t){const i=Aue(t);e>=0&&e<256?this._asciiMap[e]=i:this._map.set(e,i)}get(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}},Ur=class{constructor(){this._actual=new zr(0)}add(e){this._actual.set(e,1)}has(e){return 1===this._actual.get(e)}clear(){return this._actual.clear()}},Kr=class extends zr{constructor(e,t){super(0),this._segmenter=null,this._cachedLine=null,this._cachedSegments=[],this.intlSegmenterLocales=t,this.intlSegmenterLocales.length>0?this._segmenter=Hr.Segmenter(this.intlSegmenterLocales,{granularity:"word"}):this._segmenter=null;for(let i=0,n=e.length;it)break;i=n}return i}findNextIntlWordAtOrAfterOffset(e,t){for(const i of this._getIntlSegmenterWordsOnLine(e))if(!(i.index=0;s--){const i=e.charCodeAt(s),r=t.get(i);if(o&&s===o.index)return this._createIntlWord(o,r);if(0===r){if(2===n)return this._createWord(e,n,r,s+1,this._findEndOfWord(e,t,n,s+1));n=1}else if(2===r){if(1===n)return this._createWord(e,n,r,s+1,this._findEndOfWord(e,t,n,s+1));n=2}else if(1===r&&0!==n)return this._createWord(e,n,r,s+1,this._findEndOfWord(e,t,n,s+1))}return 0!==n?this._createWord(e,n,1,0,this._findEndOfWord(e,t,n,0)):null}static _findEndOfWord(e,t,i,n){const o=t.findNextIntlWordAtOrAfterOffset(e,n),s=e.length;for(let r=n;r=0;s--){const n=e.charCodeAt(s),r=t.get(n);if(o&&s===o.index)return s;if(1===r)return s+1;if(1===i&&2===r)return s+1;if(2===i&&0===r)return s+1}return 0}static moveWordLeft(t,i,n,o,s){let r=n.lineNumber,a=n.column;1===a&&r>1&&(r-=1,a=i.getLineMaxColumn(r));let l=e._findPreviousWordOnLine(t,i,new to(r,a));if(0===o)return new to(r,l?l.start+1:1);if(1===o)return!s&&l&&2===l.wordType&&l.end-l.start===1&&0===l.nextCharClass&&(l=e._findPreviousWordOnLine(t,i,new to(r,l.start+1))),new to(r,l?l.start+1:1);if(3===o){for(;l&&2===l.wordType;)l=e._findPreviousWordOnLine(t,i,new to(r,l.start+1));return new to(r,l?l.start+1:1)}return l&&a<=l.end+1&&(l=e._findPreviousWordOnLine(t,i,new to(r,l.start+1))),new to(r,l?l.end+1:1)}static _moveWordPartLeft(e,t){const i=t.lineNumber,n=e.getLineMaxColumn(i);if(1===t.column)return i>1?new to(i-1,e.getLineMaxColumn(i-1)):t;const o=e.getLineContent(i);for(let s=t.column-1;s>1;s--){const e=o.charCodeAt(s-2),t=o.charCodeAt(s-1);if(95===e&&95!==t)return new to(i,s);if(45===e&&45!==t)return new to(i,s);if((ede(e)||Jle(e))&&tde(t))return new to(i,s);if(tde(e)&&tde(t)&&s+1=l.start+1&&(l=e._findNextWordOnLine(t,i,new to(s,l.end+1))),r=l?l.start+1:i.getLineMaxColumn(s);return new to(s,r)}static _moveWordPartRight(e,t){const i=t.lineNumber,n=e.getLineMaxColumn(i);if(t.column===n)return i1?d=1:(l--,d=o.getLineMaxColumn(l)):(c&&d<=c.end+1&&(c=e._findPreviousWordOnLine(n,o,new to(l,c.start+1))),c?d=c.end+1:d>1?d=1:(l--,d=o.getLineMaxColumn(l))),new mr(l,d,a.lineNumber,a.column)}static deleteInsideWord(e,t,i){if(!i.isEmpty())return i;const n=new to(i.positionLineNumber,i.positionColumn),o=this._deleteInsideWordWhitespace(t,n);return o||this._deleteInsideWordDetermineDeleteRange(e,t,n)}static _charAtIsWhitespace(e,t){const i=e.charCodeAt(t);return 32===i||9===i}static _deleteInsideWordWhitespace(e,t){const i=e.getLineContent(t.lineNumber),n=i.length;if(0===n)return null;let o=Math.max(t.column-2,0);if(!this._charAtIsWhitespace(i,o))return null;let s=Math.min(t.column-1,n-1);if(!this._charAtIsWhitespace(i,s))return null;for(;o>0&&this._charAtIsWhitespace(i,o-1);)o--;for(;s+11?new mr(n.lineNumber-1,i.getLineMaxColumn(n.lineNumber-1),n.lineNumber,1):n.lineNumbere.start+1<=n.column&&n.column<=e.end+1,a=(e,t)=>(e=Math.min(e,n.column),t=Math.max(t,n.column),new mr(n.lineNumber,e,n.lineNumber,t)),l=e=>{let t=e.start+1,i=e.end+1,n=!1;for(;i-11&&this._charAtIsWhitespace(o,t-2);)t--;return a(t,i)},d=e._findPreviousWordOnLine(t,i,n);if(d&&r(d))return l(d);const c=e._findNextWordOnLine(t,i,n);return c&&r(c)?l(c):d&&c?a(d.end+1,c.start+1):d?a(d.start+1,d.end+1):c?a(c.start+1,c.end+1):a(1,s+1)}static _deleteWordPartLeft(t,i){if(!i.isEmpty())return i;const n=i.getPosition(),o=e._moveWordPartLeft(t,n);return new mr(n.lineNumber,n.column,o.lineNumber,o.column)}static _findFirstNonWhitespaceChar(e,t){const i=e.length;for(let n=t;n=u.start+1&&(u=e._findNextWordOnLine(n,o,new to(l,u.end+1))),u?d=u.start+1:dt&&(i=t,n=e.model.getLineMaxColumn(i)),xr.fromModelState(new Dr(new mr(s.lineNumber,1,i,n),2,0,new to(i,n),0))}const a=t.modelState.selectionStart.getStartPosition().lineNumber;if(s.lineNumbera){const i=e.getLineCount();let n=r.lineNumber+1,o=1;return n>i&&(n=i,o=e.getLineMaxColumn(n)),xr.fromViewState(t.viewState.move(!0,n,o,0))}{const e=t.modelState.selectionStart.getEndPosition();return xr.fromModelState(t.modelState.move(!0,e.lineNumber,e.column,0))}}static word(e,t,i,n){const o=e.model.validatePosition(n);return xr.fromModelState(jr.word(e.cursorConfig,e.model,t.modelState,i,o))}static cancelSelection(e,t){if(!t.modelState.hasSelection())return new xr(t.modelState,t.viewState);const i=t.viewState.position.lineNumber,n=t.viewState.position.column;return xr.fromViewState(new Dr(new mr(i,n,i,n),0,0,new to(i,n),0))}static moveTo(e,t,i,n,o){if(i){if(1===t.modelState.selectionStartKind)return this.word(e,t,i,n);if(2===t.modelState.selectionStartKind)return this.line(e,t,i,n,o)}const s=e.model.validatePosition(n),r=o?e.coordinatesConverter.validateViewPosition(new to(o.lineNumber,o.column),s):e.coordinatesConverter.convertModelPositionToViewPosition(s);return xr.fromViewState(t.viewState.move(i,r.lineNumber,r.column,0))}static simpleMove(e,t,i,n,o,s){switch(i){case 0:return 4===s?this._moveHalfLineLeft(e,t,n):this._moveLeft(e,t,n,o);case 1:return 4===s?this._moveHalfLineRight(e,t,n):this._moveRight(e,t,n,o);case 2:return 2===s?this._moveUpByViewLines(e,t,n,o):this._moveUpByModelLines(e,t,n,o);case 3:return 2===s?this._moveDownByViewLines(e,t,n,o):this._moveDownByModelLines(e,t,n,o);case 4:return 2===s?t.map(t=>xr.fromViewState(Br.moveToPrevBlankLine(e.cursorConfig,e,t.viewState,n))):t.map(t=>xr.fromModelState(Br.moveToPrevBlankLine(e.cursorConfig,e.model,t.modelState,n)));case 5:return 2===s?t.map(t=>xr.fromViewState(Br.moveToNextBlankLine(e.cursorConfig,e,t.viewState,n))):t.map(t=>xr.fromModelState(Br.moveToNextBlankLine(e.cursorConfig,e.model,t.modelState,n)));case 6:return this._moveToViewMinColumn(e,t,n);case 7:return this._moveToViewFirstNonWhitespaceColumn(e,t,n);case 8:return this._moveToViewCenterColumn(e,t,n);case 9:return this._moveToViewMaxColumn(e,t,n);case 10:return this._moveToViewLastNonWhitespaceColumn(e,t,n);default:return null}}static viewportMove(e,t,i,n,o){const s=e.getCompletelyVisibleViewRange(),r=e.coordinatesConverter.convertViewRangeToModelRange(s);switch(i){case 11:{const i=this._firstLineNumberInRange(e.model,r,o),s=e.model.getLineFirstNonWhitespaceColumn(i);return[this._moveToModelPosition(e,t[0],n,i,s)]}case 13:{const i=this._lastLineNumberInRange(e.model,r,o),s=e.model.getLineFirstNonWhitespaceColumn(i);return[this._moveToModelPosition(e,t[0],n,i,s)]}case 12:{const i=Math.round((r.startLineNumber+r.endLineNumber)/2),o=e.model.getLineFirstNonWhitespaceColumn(i);return[this._moveToModelPosition(e,t[0],n,i,o)]}case 14:{const i=[];for(let o=0,r=t.length;oi.endLineNumber-1?i.endLineNumber-1:o{const o=e.getTextDirection(t.viewState.position.lineNumber)===Qr.RTL;return xr.fromViewState(o?Br.moveRight(e.cursorConfig,e,t.viewState,i,n):Br.moveLeft(e.cursorConfig,e,t.viewState,i,n))})}static _moveHalfLineLeft(e,t,i){const n=[];for(let o=0,s=t.length;o{const o=e.getTextDirection(t.viewState.position.lineNumber)===Qr.RTL;return xr.fromViewState(o?Br.moveLeft(e.cursorConfig,e,t.viewState,i,n):Br.moveRight(e.cursorConfig,e,t.viewState,i,n))})}static _moveHalfLineRight(e,t,i){const n=[];for(let o=0,s=t.length;o/?",ca=function(e=""){let t="(-?\\d*\\.\\d\\w*)|([^";for(const i of da)e.indexOf(i)>=0||(t+="\\"+i);return t+="\\s]+)",new RegExp(t,"g")}(),(ha=new Ae).unshift({maxLen:1e3,windowSize:15,timeBudget:150}),(ua=ga=class e{constructor(t){if(t.autoClosingPairs?this._autoClosingPairs=t.autoClosingPairs.map(e=>new aa(e)):t.brackets?this._autoClosingPairs=t.brackets.map(e=>new aa({open:e[0],close:e[1]})):this._autoClosingPairs=[],t.__electricCharacterSupport&&t.__electricCharacterSupport.docComment){const e=t.__electricCharacterSupport.docComment;this._autoClosingPairs.push(new aa({open:e.open,close:e.close||""}))}this._autoCloseBeforeForQuotes="string"==typeof t.autoCloseBefore?t.autoCloseBefore:e.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES,this._autoCloseBeforeForBrackets="string"==typeof t.autoCloseBefore?t.autoCloseBefore:e.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS,this._surroundingPairs=t.surroundingPairs||this._autoClosingPairs}getAutoClosingPairs(){return this._autoClosingPairs}getAutoCloseBeforeSet(e){return e?this._autoCloseBeforeForQuotes:this._autoCloseBeforeForBrackets}getSurroundingPairs(){return this._surroundingPairs}}).DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES=";:.,=}])> \n\t",ua.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS="'\"`;:.,=}])> \n\t",_a=class{constructor(e){this._capacity=0|e,this._buffer=new Uint16Array(this._capacity),this._completedStrings=null,this._bufferLength=0}reset(){this._completedStrings=null,this._bufferLength=0}build(){return null!==this._completedStrings?(this._flushBuffer(),this._completedStrings.join("")):this._buildBuffer()}_buildBuffer(){if(0===this._bufferLength)return"";const e=new Uint16Array(this._buffer.buffer,0,this._bufferLength);return Yue().decode(e)}_flushBuffer(){const e=this._buildBuffer();this._bufferLength=0,null===this._completedStrings?this._completedStrings=[e]:this._completedStrings[this._completedStrings.length]=e}appendCharCode(e){const t=this._capacity-this._bufferLength;t<=1&&(0===t||ade(e))&&this._flushBuffer(),this._buffer[this._bufferLength++]=e}appendASCIICharCode(e){this._bufferLength===this._capacity&&this._flushBuffer(),this._buffer[this._bufferLength++]=e}appendString(e){const t=e.length;if(this._bufferLength+t>=this._capacity)return this._flushBuffer(),void(this._completedStrings[this._completedStrings.length]=e);for(let i=0;i[e[0].toLowerCase(),e[1].toLowerCase()]);const i=[];for(let r=0;r{const[i,n]=e,[o,s]=t;return i===o||i===s||n===o||n===s},o=(e,n)=>{const o=Math.min(e,n),s=Math.max(e,n);for(let r=0;r0&&s.push({open:n,close:o})}return s}(t);this.brackets=i.map((t,n)=>new ba(e,n,t.open,t.close,function(e,t,i,n){let o=[];o=o.concat(e),o=o.concat(t);for(let s=0,r=o.length;s=0;n--)t[i++]=e.charCodeAt(n);return Yue().decode(t)}(e)),t}}(),Ca=class{static _findPrevBracketInText(e,t,i,n){const o=i.match(e);if(!o)return null;const s=i.length-(o.index||0),r=o[0].length,a=n+s;return new mr(t,a-r+1,t,a+1)}static findPrevBracketInRange(e,t,i,n,o){const s=wa(i).substring(i.length-o,i.length-n);return this._findPrevBracketInText(e,t,s,n)}static findNextBracketInText(e,t,i,n){const o=i.match(e);if(!o)return null;const s=o.index||0,r=o[0].length;if(0===r)return null;const a=n+s;return new mr(t,a+1,t,a+1+r)}static findNextBracketInRange(e,t,i,n,o){const s=i.substring(n,o);return this.findNextBracketInText(e,t,s,n)}},ya=class{constructor(e){this._richEditBrackets=e}getElectricCharacters(){const e=[];if(this._richEditBrackets)for(const t of this._richEditBrackets.brackets)for(const i of t.close){const t=i.charAt(i.length-1);e.push(t)}return rce(e)}onElectricCharacter(e,t,i){if(!this._richEditBrackets||0===this._richEditBrackets.brackets.length)return null;const n=t.findTokenIndexAtOffset(i-1);if(Mue(t.getStandardTokenType(n)))return null;const o=this._richEditBrackets.reversedRegex,s=t.getLineContent().substring(0,i-1)+e,r=Ca.findPrevBracketInRange(o,1,s,0,s.length);if(!r)return null;const a=s.substring(r.startColumn-1,r.endColumn-1).toLowerCase();if(this._richEditBrackets.textIsOpenBracket[a])return null;const l=t.getActualLineContentBefore(r.startColumn-1);return/^\s*$/.test(l)?{matchOpenBracket:a}:null}},Sa=class{constructor(e){this._indentationRules=e}shouldIncrease(e){return!!(this._indentationRules&&this._indentationRules.increaseIndentPattern&&nge(this._indentationRules.increaseIndentPattern)&&this._indentationRules.increaseIndentPattern.test(e))}shouldDecrease(e){return!!(this._indentationRules&&this._indentationRules.decreaseIndentPattern&&nge(this._indentationRules.decreaseIndentPattern)&&this._indentationRules.decreaseIndentPattern.test(e))}shouldIndentNextLine(e){return!!(this._indentationRules&&this._indentationRules.indentNextLinePattern&&nge(this._indentationRules.indentNextLinePattern)&&this._indentationRules.indentNextLinePattern.test(e))}shouldIgnore(e){return!!(this._indentationRules&&this._indentationRules.unIndentedLinePattern&&nge(this._indentationRules.unIndentedLinePattern)&&this._indentationRules.unIndentedLinePattern.test(e))}getIndentMetadata(e){let t=0;return this.shouldIncrease(e)&&(t+=1),this.shouldDecrease(e)&&(t+=2),this.shouldIndentNextLine(e)&&(t+=4),this.shouldIgnore(e)&&(t+=8),t}},xa=class e{constructor(t){(t=t||{}).brackets=t.brackets||[["(",")"],["{","}"],["[","]"]],this._brackets=[],t.brackets.forEach(t=>{const i=e._createOpenBracketRegExp(t[0]),n=e._createCloseBracketRegExp(t[1]);i&&n&&this._brackets.push({open:t[0],openRegExp:i,close:t[1],closeRegExp:n})}),this._regExpRules=t.onEnterRules||[]}onEnter(e,t,i,n){if(e>=3)for(let o=0,s=this._regExpRules.length;o!e.reg||(e.reg.lastIndex=0,e.reg.test(e.text))))return e.action}if(e>=2&&i.length>0&&n.length>0)for(let o=0,s=this._brackets.length;o=2&&i.length>0)for(let o=0,s=this._brackets.length;o0&&"#"===o.charAt(o.length-1)?o.substring(0,o.length-1):o;var o;this.schemasById[n]=t,this._onDidChangeSchema.fire(e),i&&i.add(Dle(()=>{delete this.schemasById[n],this._onDidChangeSchema.fire(e)}))}notifySchemaChanged(e){this._onDidChangeSchema.fire(e)}},Ta=new Ma,ts.add(Ea.JSONContribution,Ta),void 0!==(Oa=globalThis.vscode)&&void 0!==Oa.context){const e=Oa.context.configuration();if(!e)throw new Error("Sandbox: unable to resolve product configuration from preload script.");Ra=e.product}else if(globalThis._VSCODE_PRODUCT_JSON&&globalThis._VSCODE_PACKAGE_JSON){if(Ra=globalThis._VSCODE_PRODUCT_JSON,Ut.VSCODE_DEV&&Object.assign(Ra,{nameShort:`${Ra.nameShort} Dev`,nameLong:`${Ra.nameLong} Dev`,dataFolderName:`${Ra.dataFolderName}-dev`,serverDataFolderName:Ra.serverDataFolderName?`${Ra.serverDataFolderName}-dev`:void 0}),!Ra.version){const e=globalThis._VSCODE_PACKAGE_JSON;Object.assign(Ra,{version:e.version})}}else Ra={},0===Object.keys(Ra).length&&Object.assign(Ra,{version:"1.104.0-dev",nameShort:"Code - OSS Dev",nameLong:"Code - OSS Dev",applicationName:"code-oss",dataFolderName:".vscode-oss",urlProtocol:"code-oss",reportIssueUrl:"https://github.com/microsoft/vscode/issues/new",licenseName:"MIT",licenseUrl:"https://github.com/microsoft/vscode/blob/main/LICENSE.txt",serverLicenseUrl:"https://github.com/microsoft/vscode/blob/main/LICENSE.txt"});Aa=Ra,Pa={Configuration:"base.contributions.configuration"},Fa="vscode://schemas/settings/resourceLanguage",Wa=ts.as(Ea.JSONContribution),Ba=class extends Ie{constructor(){super(),this.registeredConfigurationDefaults=[],this.overrideIdentifiers=new Set,this._onDidSchemaChange=this._register(new je),this._onDidUpdateConfiguration=this._register(new je),this.configurationDefaultsOverrides=new Map,this.defaultLanguageConfigurationOverridesNode={id:"defaultOverrides",title:Vae(1664,"Default Language Configuration Overrides"),properties:{}},this.configurationContributors=[this.defaultLanguageConfigurationOverridesNode],this.resourceLanguageSettingsSchema={properties:{},patternProperties:{},additionalProperties:!0,allowTrailingCommas:!0,allowComments:!0},this.configurationProperties={},this.policyConfigurations=new Map,this.excludedConfigurationProperties={},Wa.registerSchema(Fa,this.resourceLanguageSettingsSchema),this.registerOverridePropertyPatternKey()}registerConfiguration(e,t=!0){return this.registerConfigurations([e],t),e}registerConfigurations(e,t=!0){const i=new Set;this.doRegisterConfigurations(e,t,i),Wa.registerSchema(Fa,this.resourceLanguageSettingsSchema),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:i})}registerDefaultConfigurations(e){const t=new Set;this.doRegisterDefaultConfigurations(e,t),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:t,defaultsOverrides:!0})}doRegisterDefaultConfigurations(e,t){this.registeredConfigurationDefaults.push(...e);const i=[];for(const{overrides:n,source:o}of e)for(const e in n){t.add(e);const s=this.configurationDefaultsOverrides.get(e)??this.configurationDefaultsOverrides.set(e,{configurationDefaultOverrides:[]}).get(e),r=n[e];if(s.configurationDefaultOverrides.push({value:r,source:o}),za.test(e)){const t=this.mergeDefaultConfigurationsForOverrideIdentifier(e,r,o,s.configurationDefaultOverrideValue);if(!t)continue;s.configurationDefaultOverrideValue=t,this.updateDefaultOverrideProperty(e,t,o),i.push(...hge(e))}else{const t=this.mergeDefaultConfigurationsForConfigurationProperty(e,r,o,s.configurationDefaultOverrideValue);if(!t)continue;s.configurationDefaultOverrideValue=t;const i=this.configurationProperties[e];i&&(this.updatePropertyDefaultValue(e,i),this.updateSchema(e,i))}}this.doRegisterOverrideIdentifiers(i)}updateDefaultOverrideProperty(e,t,i){const n={section:{id:this.defaultLanguageConfigurationOverridesNode.id,title:this.defaultLanguageConfigurationOverridesNode.title,order:this.defaultLanguageConfigurationOverridesNode.order,extensionInfo:this.defaultLanguageConfigurationOverridesNode.extensionInfo},type:"object",default:t.value,description:Vae(1665,"Configure settings to be overridden for {0}.",(o=e,o.replace(/^\[/,"").replace(/]$/g,"").replace(/\]\[/g,", "))),$ref:Fa,defaultDefaultValue:t.value,source:i,defaultValueSource:i};var o;this.configurationProperties[e]=n,this.defaultLanguageConfigurationOverridesNode.properties[e]=n}mergeDefaultConfigurationsForOverrideIdentifier(e,t,i,n){const o=n?.value||{},s=n?.source??new Map;if(s instanceof Map){for(const e of Object.keys(t)){const n=t[e];if(rle(n)&&(hle(o[e])||rle(o[e]))){if(o[e]={...o[e]??{},...n},i)for(const t in n)s.set(`${e}.${t}`,i)}else o[e]=n,i?s.set(e,i):s.delete(e)}return{value:o,source:s}}console.error("objectConfigurationSources is not a Map")}mergeDefaultConfigurationsForConfigurationProperty(e,t,i,n){const o=this.configurationProperties[e],s=n?.value??o?.defaultDefaultValue;let r=i;if(rle(t)&&(void 0!==o&&"object"===o.type||void 0===o&&(hle(s)||rle(s)))){if(r=n?.source??new Map,!(r instanceof Map))return void console.error("defaultValueSource is not a Map");for(const n in t)i&&r.set(`${e}.${n}`,i);t={...rle(s)?s:{},...t}}return{value:t,source:r}}registerOverrideIdentifiers(e){this.doRegisterOverrideIdentifiers(e),this._onDidSchemaChange.fire()}doRegisterOverrideIdentifiers(e){for(const t of e)this.overrideIdentifiers.add(t);this.updateOverridePropertyPatternKey()}doRegisterConfigurations(e,t,i){e.forEach(e=>{this.validateAndRegisterProperties(e,t,e.extensionInfo,e.restrictedProperties,void 0,i),this.configurationContributors.push(e),this.registerJSONConfiguration(e)})}validateAndRegisterProperties(e,t=!0,i,n,o=4,s){o=gle(e.scope)?o:e.scope;const r=e.properties;if(r)for(const l in r){const a=r[l];if(a.section={id:e.id,title:e.title,order:e.order,extensionInfo:e.extensionInfo},t&&uge(l,a,i?.id)){delete r[l];continue}a.source=i,a.defaultDefaultValue=r[l].default,this.updatePropertyDefaultValue(l,a),za.test(l)?a.scope=void 0:(a.scope=gle(a.scope)?o:a.scope,a.restricted=gle(a.restricted)?!!n?.includes(l):a.restricted),a.experiment?a.tags?.some(e=>"onexp"===e.toLowerCase())||(a.tags=a.tags??[],a.tags.push("onExP")):a.tags?.some(e=>"onexp"===e.toLowerCase())&&(console.error(`Invalid tag 'onExP' found for property '${l}'. Please use 'experiment' property instead.`),a.experiment={mode:"startup"});const d=r[l].hasOwnProperty("included")&&!r[l].included,c=r[l].policy?.name;d?(this.excludedConfigurationProperties[l]=r[l],c&&(this.policyConfigurations.set(c,l),s.add(l)),delete r[l]):(s.add(l),c&&this.policyConfigurations.set(c,l),this.configurationProperties[l]=r[l],!r[l].deprecationMessage&&r[l].markdownDeprecationMessage&&(r[l].deprecationMessage=r[l].markdownDeprecationMessage))}const a=e.allOf;if(a)for(const l of a)this.validateAndRegisterProperties(l,t,i,n,o,s)}getConfigurationProperties(){return this.configurationProperties}getPolicyConfigurations(){return this.policyConfigurations}getExcludedConfigurationProperties(){return this.excludedConfigurationProperties}registerJSONConfiguration(e){const t=e=>{const i=e.properties;if(i)for(const t in i)this.updateSchema(t,i[t]);e.allOf?.forEach(t)};t(e)}updateSchema(e,t){switch(t.scope){case 1:case 2:case 3:case 7:case 4:case 5:break;case 6:this.resourceLanguageSettingsSchema.properties[e]=t}}updateOverridePropertyPatternKey(){for(const e of this.overrideIdentifiers.values()){const t=`[${e}]`,i={type:"object",description:Vae(1666,"Configure editor settings to be overridden for a language."),errorMessage:Vae(1667,"This setting does not support per-language configuration."),$ref:Fa};this.updatePropertyDefaultValue(t,i)}}registerOverridePropertyPatternKey(){Vae(1668,"Configure editor settings to be overridden for a language."),Vae(1669,"This setting does not support per-language configuration."),this._onDidSchemaChange.fire()}updatePropertyDefaultValue(e,t){const i=this.configurationDefaultsOverrides.get(e)?.configurationDefaultOverrideValue;let n,o;!i||t.disallowConfigurationDefault&&i.source||(n=i.value,o=i.source),hle(n)&&(n=t.defaultDefaultValue,o=void 0),hle(n)&&(n=function(e){switch(Array.isArray(e)?e[0]:e){case"boolean":return!1;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null}}(t.type)),t.default=n,t.defaultValueSource=o}},Va="\\[([^\\]]+)\\]",Ha=new RegExp(Va,"g"),za=new RegExp(`^(${Va})+$`),Ua=new Ba,ts.add(Pa.Configuration,Ua),Ka=new Set(Aa.defaultChatAgent?[Aa.defaultChatAgent.extensionId,Aa.defaultChatAgent.chatExtensionId].map(e=>e.toLowerCase()):[]),qa={ModesRegistry:"editor.modesRegistry"},ja=class extends Ie{constructor(){super(),this._onDidChangeLanguages=this._register(new je),this.onDidChangeLanguages=this._onDidChangeLanguages.event,this._languages=[]}registerLanguage(e){return this._languages.push(e),this._onDidChangeLanguages.fire(void 0),{dispose:()=>{for(let t=0,i=this._languages.length;t{const t=new Set;return{info:new Qa(this,e,t),closing:t}}),o=new Dt(e=>{const t=new Set,i=new Set;return{info:new Xa(this,e,t,i),opening:t,openingColorized:i}});for(const[r,a]of i){const e=n.get(r),t=o.get(a);e.closing.add(t.info),t.opening.add(e.info)}const s=t.colorizedBracketPairs?gge(t.colorizedBracketPairs):i.filter(e=>!("<"===e[0]&&">"===e[1]));for(const[r,a]of s){const e=n.get(r),t=o.get(a);e.closing.add(t.info),t.openingColorized.add(e.info),t.opening.add(e.info)}this._openingBrackets=new Map([...n.cachedValues].map(([e,t])=>[e,t.info])),this._closingBrackets=new Map([...o.cachedValues].map(([e,t])=>[e,t.info]))}get openingBrackets(){return[...this._openingBrackets.values()]}get closingBrackets(){return[...this._closingBrackets.values()]}getOpeningBracketInfo(e){return this._openingBrackets.get(e)}getClosingBracketInfo(e){return this._closingBrackets.get(e)}getBracketInfo(e){return this.getOpeningBracketInfo(e)||this.getClosingBracketInfo(e)}getBracketRegExp(e){return ige(Array.from([...this._openingBrackets.keys(),...this._closingBrackets.keys()]),e)}},Ya=class{constructor(e,t){this.config=e,this.bracketText=t}get languageId(){return this.config.languageId}},Qa=class extends Ya{constructor(e,t,i){super(e,t),this.openedBrackets=i,this.isOpeningBracket=!0}},Xa=class extends Ya{constructor(e,t,i,n){super(e,t),this.openingBrackets=i,this.openingColorizedBrackets=n,this.isOpeningBracket=!1}closes(e){return e.config===this.config&&this.openingBrackets.has(e)}closesColorized(e){return e.config===this.config&&this.openingColorizedBrackets.has(e)}getOpeningBrackets(){return[...this.openingBrackets]}},Ja=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},el=function(e,t){return function(i,n){t(i,n,e)}},tl=class{constructor(e){this.languageId=e}affects(e){return!this.languageId||this.languageId===e}},il=eue("languageConfigurationService"),nl=class extends Ie{constructor(e,t){super(),this.configurationService=e,this.languageService=t,this._registry=this._register(new ll),this.onDidChangeEmitter=this._register(new je),this.onDidChange=this.onDidChangeEmitter.event,this.configurations=new Map;const i=new Set(Object.values(ol));this._register(this.configurationService.onDidChangeConfiguration(e=>{const t=e.change.keys.some(e=>i.has(e)),n=e.change.overrides.filter(([e,t])=>t.some(e=>i.has(e))).map(([e])=>e);if(t)this.configurations.clear(),this.onDidChangeEmitter.fire(new tl(void 0));else for(const i of n)this.languageService.isRegisteredLanguageId(i)&&(this.configurations.delete(i),this.onDidChangeEmitter.fire(new tl(i)))})),this._register(this._registry.onDidChange(e=>{this.configurations.delete(e.languageId),this.onDidChangeEmitter.fire(new tl(e.languageId))}))}register(e,t,i){return this._registry.register(e,t,i)}getLanguageConfiguration(e){let t=this.configurations.get(e);return t||(t=pge(e,this._registry,this.configurationService,this.languageService),this.configurations.set(e,t)),t}},nl=Ja([el(0,ka),el(1,La)],nl),ol={brackets:"editor.language.brackets",colorizedBracketPairs:"editor.language.colorizedBracketPairs"},sl=class{constructor(e){this.languageId=e,this._resolved=null,this._entries=[],this._order=0,this._resolved=null}register(e,t){const i=new rl(e,t,++this._order);return this._entries.push(i),this._resolved=null,Dle(()=>{for(let e=0;ee.configuration)))}},rl=class{constructor(e,t,i){this.configuration=e,this.priority=t,this.order=i}static cmp(e,t){return e.priority===t.priority?e.order-t.order:e.priority-t.priority}},al=class{constructor(e){this.languageId=e}},ll=class extends Ie{constructor(){super(),this._entries=new Map,this._onDidChange=this._register(new je),this.onDidChange=this._onDidChange.event,this._register(this.register(Ga,{brackets:[["(",")"],["[","]"],["{","}"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],colorizedBracketPairs:[],folding:{offSide:!0}},0))}register(e,t,i=0){let n=this._entries.get(e);n||(n=new sl(e),this._entries.set(e,n));const o=n.register(t,i);return this._onDidChange.fire(new al(e)),Dle(()=>{o.dispose(),this._onDidChange.fire(new al(e))})}getLanguageConfiguration(e){return this._entries.get(e)?.getResolvedConfiguration()||null}},dl=class e{constructor(t,i){this.languageId=t,this.underlyingConfig=i,this._brackets=null,this._electricCharacter=null,this._onEnterSupport=this.underlyingConfig.brackets||this.underlyingConfig.indentationRules||this.underlyingConfig.onEnterRules?new xa(this.underlyingConfig):null,this.comments=e._handleComments(this.underlyingConfig),this.characterPair=new ga(this.underlyingConfig),this.wordDefinition=this.underlyingConfig.wordPattern||ca,this.indentationRules=this.underlyingConfig.indentationRules,this.underlyingConfig.indentationRules?this.indentRulesSupport=new Sa(this.underlyingConfig.indentationRules):this.indentRulesSupport=null,this.foldingRules=this.underlyingConfig.folding||{},this.bracketsNew=new Za(t,this.underlyingConfig)}getWordDefinition(){return jue(this.wordDefinition)}get brackets(){return!this._brackets&&this.underlyingConfig.brackets&&(this._brackets=new va(this.languageId,this.underlyingConfig.brackets)),this._brackets}get electricCharacter(){return this._electricCharacter||(this._electricCharacter=new ya(this.brackets)),this._electricCharacter}onEnter(e,t,i,n){return this._onEnterSupport?this._onEnterSupport.onEnter(e,t,i,n):null}getAutoClosingPairs(){return new la(this.characterPair.getAutoClosingPairs())}getAutoCloseBeforeSet(e){return this.characterPair.getAutoCloseBeforeSet(e)}getSurroundingPairs(){return this.characterPair.getSurroundingPairs()}static _handleComments(e){const t=e.comments;if(!t)return null;const i={};if(t.lineComment&&("string"==typeof t.lineComment?i.lineCommentToken=t.lineComment:(i.lineCommentToken=t.lineComment.comment,i.lineCommentNoIndent=t.lineComment.noIndent)),t.blockComment){const[e,n]=t.blockComment;i.blockCommentStartToken=e,i.blockCommentEndToken=n}return i}},dge(il,nl,1),cl=class{static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static containsBalancedBrackets(e){return!!(1024&e)}static getFontStyle(e){return(30720&e)>>>11}static getForeground(e){return(16744448&e)>>>15}static getBackground(e){return(4278190080&e)>>>24}static getClassNameFromMetadata(e){let t="mtk"+this.getForeground(e);const i=this.getFontStyle(e);return 1&i&&(t+=" mtki"),2&i&&(t+=" mtkb"),4&i&&(t+=" mtku"),8&i&&(t+=" mtks"),t}static getInlineStyleFromMetadata(e,t){const i=this.getForeground(e),n=this.getFontStyle(e);let o=`color: ${t[i]};`;1&n&&(o+="font-style: italic;"),2&n&&(o+="font-weight: bold;");let s="";return 4&n&&(s+=" underline"),8&n&&(s+=" line-through"),s&&(o+=`text-decoration:${s};`),o}static getPresentationFromMetadata(e){const t=this.getForeground(e),i=this.getFontStyle(e);return{foreground:t,italic:Boolean(1&i),bold:Boolean(2&i),underline:Boolean(4&i),strikethrough:Boolean(8&i)}}},hl=class e{static fromTo(t,i){return new e(t,i)}static addRange(t,i){let n=0;for(;ni))return new e(t,i)}static ofLength(t){return new e(0,t)}static ofStartAndLength(t,i){return new e(t,t+i)}static emptyAt(t){return new e(t,t)}constructor(e,t){if(this.start=e,this.endExclusive=t,e>t)throw new y(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(t){return new e(this.start+t,this.endExclusive+t)}deltaStart(t){return new e(this.start+t,this.endExclusive)}deltaEnd(t){return new e(this.start,this.endExclusive+t)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}equals(e){return this.start===e.start&&this.endExclusive===e.endExclusive}contains(e){return this.start<=e&&e=e.endExclusive}slice(e){return e.slice(this.start,this.endExclusive)}substring(e){return e.substring(this.start,this.endExclusive)}clip(e){if(this.isEmpty)throw new y(`Invalid clipping range: ${this.toString()}`);return Math.max(this.start,Math.min(this.endExclusive-1,e))}clipCyclic(e){if(this.isEmpty)throw new y(`Invalid clipping range: ${this.toString()}`);return e=this.endExclusive?this.start+(e-this.start)%this.length:e}forEach(e){for(let t=this.start;te.toString()).join(", ")}intersectsStrict(e){let t=0;for(;te+t.length,0)}},gl=class e{static createEmpty(t,i){const n=e.defaultTokenMetadata,o=new Uint32Array(2);return o[0]=t.length,o[1]=n,new e(o,t,i)}static createFromTextAndMetadata(t,i){let n=0,o="";const s=new Array;for(const{text:e,metadata:r}of t)s.push(n+e.length,r),n+=e.length,o+=e;return new e(new Uint32Array(s),o,i)}static convertToEndOffset(e,t){const i=(e.length>>>1)-1;for(let n=0;n>>1)-1;for(;it&&(n=o)}return i}constructor(e,t,i){this._lineTokensBrand=void 0,(e.length>1?e[e.length-2]:0)!==t.length&&$ae(new Error("Token length and text length do not match!")),this._tokens=e,this._tokensCount=this._tokens.length>>>1,this._text=t,this.languageIdCodec=i}getTextLength(){return this._text.length}equals(t){return t instanceof e&&this.slicedEquals(t,0,this._tokensCount)}slicedEquals(e,t,i){if(this._text!==e._text)return!1;if(this._tokensCount!==e._tokensCount)return!1;const n=t<<1,o=n+(i<<1);for(let s=n;s0?this._tokens[e-1<<1]:0}getMetadata(e){return this._tokens[1+(e<<1)]}getLanguageId(e){const t=this._tokens[1+(e<<1)],i=cl.getLanguageId(t);return this.languageIdCodec.decodeLanguageId(i)}getStandardTokenType(e){const t=this._tokens[1+(e<<1)];return cl.getTokenType(t)}getForeground(e){const t=this._tokens[1+(e<<1)];return cl.getForeground(t)}getClassName(e){const t=this._tokens[1+(e<<1)];return cl.getClassNameFromMetadata(t)}getInlineStyle(e,t){const i=this._tokens[1+(e<<1)];return cl.getInlineStyleFromMetadata(i,t)}getPresentation(e){const t=this._tokens[1+(e<<1)];return cl.getPresentationFromMetadata(t)}getEndOffset(e){return this._tokens[e<<1]}findTokenIndexAtOffset(t){return e.findIndexInTokensArray(this._tokens,t)}inflate(){return this}sliceAndInflate(e,t,i){return new pl(this,e,t,i)}sliceZeroCopy(e){return this.sliceAndInflate(e.start,e.endExclusive,0)}withInserted(t){if(0===t.length)return this;let i=0,n=0,o="";const s=new Array;let r=0;for(;;){const e=ir){o+=this._text.substring(r,a.offset);const e=this._tokens[1+(i<<1)];s.push(o.length,e),r=a.offset}o+=a.text,s.push(o.length,a.tokenMetadata),n++}}return new e(new Uint32Array(s),o,this.languageIdCodec)}getTokensInRange(e){const t=new _l,i=this.findTokenIndexAtOffset(e.start),n=this.findTokenIndexAtOffset(e.endExclusive);for(let o=i;o<=n;o++){const i=new hl(this.getStartOffset(o),this.getEndOffset(o)).intersectionLength(e);i>0&&t.add(i,this.getMetadata(o))}return t.build()}getTokenText(e){const t=this.getStartOffset(e),i=this.getEndOffset(e);return this._text.substring(t,i)}forEach(e){const t=this.getCount();for(let i=0;i{e+=`[${this.getTokenText(t)}]{${this.getClassName(t)}}`}),e}},gl.defaultTokenMetadata=33587200,pl=class e{constructor(e,t,i,n){this._source=e,this._startOffset=t,this._endOffset=i,this._deltaOffset=n,this._firstTokenIndex=e.findTokenIndexAtOffset(t),this.languageIdCodec=e.languageIdCodec,this._tokensCount=0;for(let o=this._firstTokenIndex,s=e.getCount();o=i);o++)this._tokensCount++}getMetadata(e){return this._source.getMetadata(this._firstTokenIndex+e)}getLanguageId(e){return this._source.getLanguageId(this._firstTokenIndex+e)}getLineContent(){return this._source.getLineContent().substring(this._startOffset,this._endOffset)}equals(t){return t instanceof e&&this._startOffset===t._startOffset&&this._endOffset===t._endOffset&&this._deltaOffset===t._deltaOffset&&this._source.slicedEquals(t._source,this._firstTokenIndex,this._tokensCount)}getCount(){return this._tokensCount}getStandardTokenType(e){return this._source.getStandardTokenType(this._firstTokenIndex+e)}getForeground(e){return this._source.getForeground(this._firstTokenIndex+e)}getEndOffset(e){const t=this._source.getEndOffset(this._firstTokenIndex+e);return Math.min(this._endOffset,t)-this._startOffset+this._deltaOffset}getClassName(e){return this._source.getClassName(this._firstTokenIndex+e)}getInlineStyle(e,t){return this._source.getInlineStyle(this._firstTokenIndex+e,t)}getPresentation(e){return this._source.getPresentation(this._firstTokenIndex+e)}findTokenIndexAtOffset(e){return this._source.findTokenIndexAtOffset(e+this._startOffset-this._deltaOffset)-this._firstTokenIndex}getTokenText(e){const t=this._firstTokenIndex+e,i=this._source.getStartOffset(t),n=this._source.getEndOffset(t);let o=this._source.getTokenText(t);return ithis._endOffset&&(o=o.substring(0,o.length-(n-this._endOffset))),o}forEach(e){for(let t=0;t({text:t.substring(e),metadata:i.metadata})),t)}forEach(e){let t=0;for(const i of this._tokenInfo)e(new hl(t,t+i.length),i),t+=i.length}map(e){const t=[];let i=0;for(const n of this._tokenInfo){const o=new hl(i,i+n.length);t.push(e(o,n)),i+=n.length}return t}slice(t){const i=[];let n=0;for(const e of this._tokenInfo){const o=n,s=o+e.length;if(s>t.start){if(o>=t.endExclusive)break;const n=Math.max(0,t.start-o),r=Math.max(0,s-t.endExclusive);i.push(new fl(e.length-n-r,e.metadata))}n+=e.length}return e.create(i)}},fl=class{constructor(e,t){this.length=e,this.metadata=t}},_l=class{constructor(){this._tokens=[]}add(e,t){this._tokens.push(new fl(e,t))}build(){return ml.create(this._tokens)}},bl=class{constructor(e,t,i){this._indentRulesSupport=t,this._indentationLineProcessor=new wl(e,i)}shouldIncrease(e,t){const i=this._indentationLineProcessor.getProcessedLine(e,t);return this._indentRulesSupport.shouldIncrease(i)}shouldDecrease(e,t){const i=this._indentationLineProcessor.getProcessedLine(e,t);return this._indentRulesSupport.shouldDecrease(i)}shouldIgnore(e,t){const i=this._indentationLineProcessor.getProcessedLine(e,t);return this._indentRulesSupport.shouldIgnore(i)}shouldIndentNextLine(e,t){const i=this._indentationLineProcessor.getProcessedLine(e,t);return this._indentRulesSupport.shouldIndentNextLine(i)}},vl=class{constructor(e,t){this.model=e,this.indentationLineProcessor=new wl(e,t)}getProcessedTokenContextAroundRange(e){return{beforeRangeProcessedTokens:this._getProcessedTokensBeforeRange(e),afterRangeProcessedTokens:this._getProcessedTokensAfterRange(e),previousLineProcessedTokens:this._getProcessedPreviousLineTokens(e)}}_getProcessedTokensBeforeRange(e){this.model.tokenization.forceTokenization(e.startLineNumber);const t=this.model.tokenization.getLineTokens(e.startLineNumber),i=Eue(t,e.startColumn-1);let n;if(bge(this.model,e.getStartPosition())){const o=e.startColumn-1-i.firstCharOffset,s=i.firstCharOffset,r=s+o;n=t.sliceAndInflate(s,r,0)}else{const i=e.startColumn-1;n=t.sliceAndInflate(0,i,0)}return this.indentationLineProcessor.getProcessedTokens(n)}_getProcessedTokensAfterRange(e){const t=e.isEmpty()?e.getStartPosition():e.getEndPosition();this.model.tokenization.forceTokenization(t.lineNumber);const i=this.model.tokenization.getLineTokens(t.lineNumber),n=Eue(i,t.column-1),o=t.column-1-n.firstCharOffset,s=n.firstCharOffset+o,r=n.firstCharOffset+n.getLineLength(),a=i.sliceAndInflate(s,r,0);return this.indentationLineProcessor.getProcessedTokens(a)}_getProcessedPreviousLineTokens(e){this.model.tokenization.forceTokenization(e.startLineNumber);const t=Eue(this.model.tokenization.getLineTokens(e.startLineNumber),e.startColumn-1),i=gl.createEmpty("",t.languageIdCodec),n=e.startLineNumber-1;if(0===n)return i;if(0!==t.firstCharOffset)return i;const o=(e=>(this.model.tokenization.forceTokenization(e),Eue(this.model.tokenization.getLineTokens(e),this.model.getLineMaxColumn(e)-1)))(n);if(t.languageId!==o.languageId)return i;const s=o.toIViewLineTokens();return this.indentationLineProcessor.getProcessedTokens(s)}},wl=class{constructor(e,t){this.model=e,this.languageConfigurationService=t}getProcessedLine(e,t){this.model.tokenization.forceTokenization?.(e);const i=this.model.tokenization.getLineTokens(e);let n=this.getProcessedTokens(i).getLineContent();return void 0!==t&&(n=((e,t)=>{const i=$le(e);return t+e.substring(i.length)})(n,t)),n}getProcessedTokens(e){const t=e.getLanguageId(0),i=this.languageConfigurationService.getLanguageConfiguration(t).bracketsNew.getBracketRegExp({global:!0}),n=[];return e.forEach(t=>{const o=e.getStandardTokenType(t);let s=e.getTokenText(t);(e=>2===e||3===e||1===e)(o)&&(s=s.replace(i,""));const r=e.getMetadata(t);n.push({text:s,metadata:r})}),gl.createFromTextAndMetadata(n,e.languageIdCodec)}},Cl=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},yl=function(e,t){return function(i,n){t(i,n,e)}},xl=Object.create(null),kl=Sl=class{static unshiftIndent(e,t,i,n,o){const s=br.visibleColumnFromColumn(e,t,i);return o?wge(wge(" ",n),br.prevIndentTabStop(s,n)/n):wge("\t",br.prevRenderTabStop(s,i)/i)}static shiftIndent(e,t,i,n,o){const s=br.visibleColumnFromColumn(e,t,i);return o?wge(wge(" ",n),br.nextIndentTabStop(s,n)/n):wge("\t",br.nextRenderTabStop(s,i)/i)}constructor(e,t,i){this._languageConfigurationService=i,this._opts=t,this._selection=e,this._selectionId=null,this._useLastEditRangeForCursorEndPosition=!1,this._selectionStartColumnStaysPut=!1}_addEditOperation(e,t,i){this._useLastEditRangeForCursorEndPosition?e.addTrackedEditOperation(t,i):e.addEditOperation(t,i)}getEditOperations(e,t){const i=this._selection.startLineNumber;let n=this._selection.endLineNumber;1===this._selection.endColumn&&i!==n&&(n-=1);const{tabSize:o,indentSize:s,insertSpaces:r}=this._opts,a=i===n;if(this._opts.useTabStops){this._selection.isEmpty()&&/^\s*$/.test(e.getLineContent(i))&&(this._useLastEditRangeForCursorEndPosition=!0);let l=0,d=0;for(let c=i;c<=n;c++,l=d){d=0;const n=e.getLineContent(c);let h,u=jle(n);if((!this._opts.isUnshift||0!==n.length&&0!==u)&&(a||this._opts.isUnshift||0!==n.length)){if(-1===u&&(u=n.length),c>1&&br.visibleColumnFromColumn(n,u+1,o)%s!==0&&e.tokenization.isCheapToTokenize(c-1)){const t=vge(this._opts.autoIndent,e,new mr(c-1,e.getLineMaxColumn(c-1),c-1,e.getLineMaxColumn(c-1)),this._languageConfigurationService);if(t){if(d=l,t.appendText)for(let e=0,i=t.appendText.length;e0){const a=t.getLineContent(p);if(l.shouldIndentNextLine(a)&&l.shouldIncrease(g)){const a=Cge(r,t,i.startLineNumber,!1,s)?.indentation;if(void 0!==a){const s=$le(t.getLineContent(i.startLineNumber)),r=o.shiftIndent(a)===s,l=/^\s*$/.test(u),d=e.autoClosingPairs.autoClosingPairsOpenByEnd.get(n),c=d&&d.length>0&&l;if(r&&c)return a}}}return null}(e,t,i,n,{shiftIndent:t=>Ege(e,t),unshiftIndent:t=>Mge(e,t)},e.languageConfigurationService);if(null===o)return null;const s=fge(t,i.startLineNumber,i.startColumn);return o===e.normalizeIndentation(s)?null:o}static _getIndentationAndAutoClosingPairEdits(e,t,i,n,o){return new Ir(4,i.map(({selection:i,indentation:s})=>{if(null!==o)return new Ul(this._getEditFromIndentationAndSelection(e,t,s,i,n,!1),i,n,o);{const o=this._getEditFromIndentationAndSelection(e,t,s,i,n,!0);return Nge(o.range,o.text,!1)}}),{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}static _getEditFromIndentationAndSelection(e,t,i,n,o,s=!0){const r=n.startLineNumber,a=t.getLineFirstNonWhitespaceColumn(r);let l=e.normalizeIndentation(i);return 0!==a&&(l+=t.getLineContent(r).substring(a-1,n.startColumn-1)),l+=s?o:"",{range:new mr(r,1,n.endLineNumber,n.endColumn),text:l}}},Nl=class{static getEdits(e,t,i,n,o,s){if(Ige(t,i,n,o,s))return this._runAutoClosingOvertype(e,n,s)}static _runAutoClosingOvertype(e,t,i){const n=[];for(let o=0,s=t.length;onew Er(new mr(e.positionLineNumber,e.positionColumn,e.positionLineNumber,e.positionColumn+1),"",!1)),{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}},Ml=class{static getEdits(e,t,i,n,o,s){if(!s){const s=this.getAutoClosingPairClose(e,t,i,n,o);if(null!==s)return this._runAutoClosingOpenCharType(i,n,o,s)}}static _runAutoClosingOpenCharType(e,t,i,n){const o=[];for(let s=0,r=e.length;s{const t=e.getPosition();return o?{lineNumber:t.lineNumber,beforeColumn:t.column-n.length,afterColumn:t.column}:{lineNumber:t.lineNumber,beforeColumn:t.column,afterColumn:t.column}}),r=this._findAutoClosingPairOpen(e,t,s.map(e=>new to(e.lineNumber,e.beforeColumn)),n);if(!r)return null;let a,l;if(Rue(n)?(a=e.autoClosingQuotes,l=e.shouldAutoCloseBefore.quote):e.blockCommentStartToken&&r.open.includes(e.blockCommentStartToken)?(a=e.autoClosingComments,l=e.shouldAutoCloseBefore.comment):(a=e.autoClosingBrackets,l=e.shouldAutoCloseBefore.bracket),"never"===a)return null;const d=this._findContainedAutoClosingPair(e,r),c=d?d.close:"";let h=!0;for(const u of s){const{lineNumber:i,beforeColumn:o,afterColumn:s}=u,d=t.getLineContent(i),g=d.substring(0,o-1),p=d.substring(s-1);if(p.startsWith(c)||(h=!1),p.length>0){const t=p.charAt(0);if(!this._isBeforeClosingBrace(e,p)&&!l(t))return null}if(1===r.open.length&&("'"===n||'"'===n)&&"always"!==a){const t=Fue(e.wordSeparators,[]);if(g.length>0){const e=g.charCodeAt(g.length-1);if(0===t.get(e))return null}}if(!t.tokenization.isCheapToTokenize(i))return null;t.tokenization.forceTokenization(i);const m=Eue(t.tokenization.getLineTokens(i),o-1);if(!r.shouldAutoClose(m,o-m.firstCharOffset))return null;const f=r.findNeutralCharacter();if(f){const e=t.tokenization.getTokenTypeIfInsertingCharacter(i,o,f);if(!r.isOK(e))return null}}return h?r.close.substring(0,r.close.length-c.length):r.close}static _findContainedAutoClosingPair(e,t){if(t.open.length<=1)return null;const i=t.close.charAt(t.close.length-1),n=e.autoClosingPairs.autoClosingPairsCloseByEnd.get(i)||[];let o=null;for(const s of n)s.open!==t.open&&t.open.includes(s.open)&&t.close.endsWith(s.close)&&(!o||s.open.length>o.open.length)&&(o=s);return o}static _findAutoClosingPairOpen(e,t,i,n){const o=e.autoClosingPairs.autoClosingPairsOpenByEnd.get(n);if(!o)return null;let s=null;for(const r of o)if(null===s||r.open.length>s.open.length){let e=!0;for(const o of i)if(t.getValueInRange(new mr(o.lineNumber,o.column-r.open.length+1,o.lineNumber,o.column))+n!==r.open){e=!1;break}e&&(s=r)}return s}static _isBeforeClosingBrace(e,t){const i=t.charAt(0),n=e.autoClosingPairs.autoClosingPairsOpenByStart.get(i)||[],o=e.autoClosingPairs.autoClosingPairsCloseByStart.get(i)||[],s=n.some(e=>t.startsWith(e.open)),r=o.some(e=>t.startsWith(e.close));return!s&&r}},Tl=class{static getEdits(e,t){return"overtype"!==e.inputMode?null:new Ir(4,t.map(e=>new Ar(e.insertedTextRange)),{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}},Rl=class{static getEdits(e,t,i,n,o){if(!o&&this._isSurroundSelectionType(e,t,i,n))return this._runSurroundSelectionType(e,i,n)}static _runSurroundSelectionType(e,t,i){const n=[];for(let o=0,s=t.length;o=4){const o=function(e,t,i,n,o){if(e<4)return null;const s=t.getLanguageIdAtPosition(i.startLineNumber,i.startColumn),r=o.getLanguageConfiguration(s).indentRulesSupport;if(!r)return null;t.tokenization.forceTokenization(i.startLineNumber);const a=new vl(t,o).getProcessedTokenContextAroundRange(i),l=a.afterRangeProcessedTokens,d=a.beforeRangeProcessedTokens,c=$le(d.getLineContent()),h=function(e,t,i){return{tokenization:{getLineTokens:n=>n===t?i:e.tokenization.getLineTokens(n),getLanguageId:()=>e.getLanguageId(),getLanguageIdAtPosition:(t,i)=>e.getLanguageIdAtPosition(t,i)},getLineContent:n=>n===t?i.getLineContent():e.getLineContent(n)}}(t,i.startLineNumber,d),u=bge(t,i.getStartPosition()),g=$le(t.getLineContent(i.startLineNumber)),p=Cge(e,h,i.startLineNumber+1,void 0,o);if(!p){const e=u?g:c;return{beforeEnter:e,afterEnter:e}}let m=u?g:p.indentation;return p.action===ra.Indent&&(m=n.shiftIndent(m)),r.shouldDecrease(l.getLineContent())&&(m=n.unshiftIndent(m)),{beforeEnter:u?g:c,afterEnter:m}}(e.autoIndent,t,n,{unshiftIndent:t=>Mge(e,t),shiftIndent:t=>Ege(e,t),normalizeIndentation:t=>e.normalizeIndentation(t)},e.languageConfigurationService);if(o){let s=e.visibleColumnFromColumn(t,n.getEndPosition());const r=n.endColumn,a=jle(t.getLineContent(n.endLineNumber));if(n=a>=0?n.setEndPosition(n.endLineNumber,Math.max(n.endColumn,a+1)):n.setEndPosition(n.endLineNumber,t.getLineMaxColumn(n.endLineNumber)),i)return new Rr(n,"\n"+e.normalizeIndentation(o.afterEnter),!0);{let t=0;return r<=a+1&&(e.insertSpaces||(s=Math.ceil(s/e.indentSize)),t=Math.min(s+1-e.normalizeIndentation(o.afterEnter).length-1,0)),new Or(n,"\n"+e.normalizeIndentation(o.afterEnter),0,t,!0)}}}return Nge(n,"\n"+e.normalizeIndentation(s),i)}static lineInsertBefore(e,t,i){if(null===t||null===i)return[];const n=[];for(let o=0,s=i.length;othis._compositionType(i,e,o,s,r,a)),{shouldPushStackElementBefore:kge(e,4),shouldPushStackElementAfter:!1})}static _compositionType(e,t,i,n,o,s){if(!t.isEmpty())return null;const r=t.getPosition(),a=Math.max(1,r.column-n),l=Math.min(e.getLineMaxColumn(r.lineNumber),r.column+o);return new Or(new mr(r.lineNumber,a,r.lineNumber,l),i,0,s)}},Bl=class{static getEdits(e,t,i){const n=[];for(let s=0,r=t.length;s1){let n;for(n=i-1;n>=1&&!(Gle(t.getLineContent(n))>=0);n--);if(n<1)return null;const s=t.getLineMaxColumn(n),r=vge(e.autoIndent,t,new mr(n,s,n,s),e.languageConfigurationService);r&&(o=r.indentation+r.appendText)}return n&&(n===ra.Indent&&(o=Ege(e,o)),n===ra.Outdent&&(o=Mge(e,o)),o=e.normalizeIndentation(o)),o||null}static _replaceJumpToNextIndent(e,t,i,n){let o="";const s=i.getStartPosition();if(e.insertSpaces){const i=e.visibleColumnFromColumn(t,s),n=e.indentSize,r=n-i%n;for(let e=0;e{const i=e.get(eo).getFocusedCodeEditor();return!(!i||!i.hasTextFocus())&&this._runEditorCommand(e,i,t)}),e.addImplementation(1e3,"generic-dom-input-textarea",(e,t)=>{const i=vhe();return!(!i||!zhe(i)||(this.runDOMCommand(i),0))}),e.addImplementation(0,"generic-dom",(e,t)=>{const i=e.get(eo).getActiveCodeEditor();return!!i&&(i.focus(),this._runEditorCommand(e,i,t))})}_runEditorCommand(e,t,i){const n=this.runEditorCommand(e,t,i);return n||!0}},function(e){class t extends Gl{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){t.position&&(e.model.pushStackElement(),e.setCursorStates(t.source,3,[oa.moveTo(e,e.getPrimaryCursorState(),this._inSelectionMode,t.position,t.viewPosition)])&&2!==t.revealType&&e.revealAllCursors(t.source,!0,!0))}}e.MoveTo=xue(new t({id:"_moveTo",inSelectionMode:!1,precondition:void 0})),e.MoveToSelect=xue(new t({id:"_moveToSelect",inSelectionMode:!0,precondition:void 0}));class i extends Gl{runCoreEditorCommand(e,t){e.model.pushStackElement();const i=this._getColumnSelectResult(e,e.getPrimaryCursorState(),e.getCursorColumnSelectData(),t);null!==i&&(e.setCursorStates(t.source,3,i.viewStates.map(e=>xr.fromViewState(e))),e.setCursorColumnSelectData({isReal:!0,fromViewLineNumber:i.fromLineNumber,fromViewVisualColumn:i.fromVisualColumn,toViewLineNumber:i.toLineNumber,toViewVisualColumn:i.toVisualColumn}),i.reversed?e.revealTopMostCursor(t.source):e.revealBottomMostCursor(t.source))}}e.ColumnSelect=xue(new class extends i{constructor(){super({id:"columnSelect",precondition:void 0})}_getColumnSelectResult(e,t,i,n){if(void 0===n.position||void 0===n.viewPosition||void 0===n.mouseColumn)return null;const o=e.model.validatePosition(n.position),s=e.coordinatesConverter.validateViewPosition(new to(n.viewPosition.lineNumber,n.viewPosition.column),o),r=n.doColumnSelect?i.fromViewLineNumber:s.lineNumber,a=n.doColumnSelect?i.fromViewVisualColumn:n.mouseColumn-1;return Nr.columnSelect(e.cursorConfig,e,r,a,s.lineNumber,n.mouseColumn-1)}}),e.CursorColumnSelectLeft=xue(new class extends i{constructor(){super({id:"cursorColumnSelectLeft",precondition:void 0,kbOpts:{weight:$l,kbExpr:jl.textInputFocus,primary:3599,linux:{primary:0}}})}_getColumnSelectResult(e,t,i,n){return Nr.columnSelectLeft(e.cursorConfig,e,i)}}),e.CursorColumnSelectRight=xue(new class extends i{constructor(){super({id:"cursorColumnSelectRight",precondition:void 0,kbOpts:{weight:$l,kbExpr:jl.textInputFocus,primary:3601,linux:{primary:0}}})}_getColumnSelectResult(e,t,i,n){return Nr.columnSelectRight(e.cursorConfig,e,i)}});class n extends i{constructor(e){super(e),this._isPaged=e.isPaged}_getColumnSelectResult(e,t,i,n){return Nr.columnSelectUp(e.cursorConfig,e,i,this._isPaged)}}e.CursorColumnSelectUp=xue(new n({isPaged:!1,id:"cursorColumnSelectUp",precondition:void 0,kbOpts:{weight:$l,kbExpr:jl.textInputFocus,primary:3600,linux:{primary:0}}})),e.CursorColumnSelectPageUp=xue(new n({isPaged:!0,id:"cursorColumnSelectPageUp",precondition:void 0,kbOpts:{weight:$l,kbExpr:jl.textInputFocus,primary:3595,linux:{primary:0}}}));class o extends i{constructor(e){super(e),this._isPaged=e.isPaged}_getColumnSelectResult(e,t,i,n){return Nr.columnSelectDown(e.cursorConfig,e,i,this._isPaged)}}e.CursorColumnSelectDown=xue(new o({isPaged:!1,id:"cursorColumnSelectDown",precondition:void 0,kbOpts:{weight:$l,kbExpr:jl.textInputFocus,primary:3602,linux:{primary:0}}})),e.CursorColumnSelectPageDown=xue(new o({isPaged:!0,id:"cursorColumnSelectPageDown",precondition:void 0,kbOpts:{weight:$l,kbExpr:jl.textInputFocus,primary:3596,linux:{primary:0}}}));class s extends Gl{constructor(){super({id:"cursorMove",precondition:void 0,metadata:sa.metadata})}runCoreEditorCommand(e,t){const i=sa.parse(t);i&&this._runCursorMove(e,t.source,i)}_runCursorMove(e,t,i){const n=i.noHistory?"api":t;e.model.pushStackElement(),e.setCursorStates(n,3,s._move(e,e.getCursorStates(),i)),e.revealAllCursors(n,!0)}static _move(e,t,i){const n=i.select,o=i.value;switch(i.direction){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:return oa.simpleMove(e,t,i.direction,n,o,i.unit);case 11:case 13:case 12:case 14:return oa.viewportMove(e,t,i.direction,n,o);default:return null}}}e.CursorMoveImpl=s,e.CursorMove=xue(new s);class r extends Gl{constructor(e){super(e),this._staticArgs=e.args}runCoreEditorCommand(e,t){let i=this._staticArgs;-1===this._staticArgs.value&&(i={direction:this._staticArgs.direction,unit:this._staticArgs.unit,select:this._staticArgs.select,value:t.pageSize||e.cursorConfig.pageSize}),e.model.pushStackElement(),e.setCursorStates(t.source,3,oa.simpleMove(e,e.getCursorStates(),i.direction,i.select,i.value,i.unit)),e.revealAllCursors(t.source,!0)}}e.CursorLeft=xue(new r({args:{direction:0,unit:0,select:!1,value:1},id:"cursorLeft",precondition:void 0,kbOpts:{weight:$l,kbExpr:jl.textInputFocus,primary:15,mac:{primary:15,secondary:[288]}}})),e.CursorLeftSelect=xue(new r({args:{direction:0,unit:0,select:!0,value:1},id:"cursorLeftSelect",precondition:void 0,kbOpts:{weight:$l,kbExpr:jl.textInputFocus,primary:1039}})),e.CursorRight=xue(new r({args:{direction:1,unit:0,select:!1,value:1},id:"cursorRight",precondition:void 0,kbOpts:{weight:$l,kbExpr:jl.textInputFocus,primary:17,mac:{primary:17,secondary:[292]}}})),e.CursorRightSelect=xue(new r({args:{direction:1,unit:0,select:!0,value:1},id:"cursorRightSelect",precondition:void 0,kbOpts:{weight:$l,kbExpr:jl.textInputFocus,primary:1041}})),e.CursorUp=xue(new r({args:{direction:2,unit:2,select:!1,value:1},id:"cursorUp",precondition:void 0,kbOpts:{weight:$l,kbExpr:jl.textInputFocus,primary:16,mac:{primary:16,secondary:[302]}}})),e.CursorUpSelect=xue(new r({args:{direction:2,unit:2,select:!0,value:1},id:"cursorUpSelect",precondition:void 0,kbOpts:{weight:$l,kbExpr:jl.textInputFocus,primary:1040,secondary:[3088],mac:{primary:1040},linux:{primary:1040}}})),e.CursorPageUp=xue(new r({args:{direction:2,unit:2,select:!1,value:-1},id:"cursorPageUp",precondition:void 0,kbOpts:{weight:$l,kbExpr:jl.textInputFocus,primary:11}})),e.CursorPageUpSelect=xue(new r({args:{direction:2,unit:2,select:!0,value:-1},id:"cursorPageUpSelect",precondition:void 0,kbOpts:{weight:$l,kbExpr:jl.textInputFocus,primary:1035}})),e.CursorDown=xue(new r({args:{direction:3,unit:2,select:!1,value:1},id:"cursorDown",precondition:void 0,kbOpts:{weight:$l,kbExpr:jl.textInputFocus,primary:18,mac:{primary:18,secondary:[300]}}})),e.CursorDownSelect=xue(new r({args:{direction:3,unit:2,select:!0,value:1},id:"cursorDownSelect",precondition:void 0,kbOpts:{weight:$l,kbExpr:jl.textInputFocus,primary:1042,secondary:[3090],mac:{primary:1042},linux:{primary:1042}}})),e.CursorPageDown=xue(new r({args:{direction:3,unit:2,select:!1,value:-1},id:"cursorPageDown",precondition:void 0,kbOpts:{weight:$l,kbExpr:jl.textInputFocus,primary:12}})),e.CursorPageDownSelect=xue(new r({args:{direction:3,unit:2,select:!0,value:-1},id:"cursorPageDownSelect",precondition:void 0,kbOpts:{weight:$l,kbExpr:jl.textInputFocus,primary:1036}})),e.CreateCursor=xue(new class extends Gl{constructor(){super({id:"createCursor",precondition:void 0})}runCoreEditorCommand(e,t){if(!t.position)return;let i;i=t.wholeLine?oa.line(e,e.getPrimaryCursorState(),!1,t.position,t.viewPosition):oa.moveTo(e,e.getPrimaryCursorState(),!1,t.position,t.viewPosition);const n=e.getCursorStates();if(n.length>1){const o=i.modelState?i.modelState.position:null,s=i.viewState?i.viewState.position:null;for(let i=0,r=n.length;is&&(o=s);const r=new mr(o,1,o,e.model.getLineMaxColumn(o));let a=0;if(i.at)switch(i.at){case Yl.RawAtArgument.Top:a=3;break;case Yl.RawAtArgument.Center:a=1;break;case Yl.RawAtArgument.Bottom:a=4}const l=e.coordinatesConverter.convertModelRangeToViewRange(r);e.revealRange(t.source,!1,l,a,0)}}),e.SelectAll=new class extends Ql{constructor(){super(pr)}runDOMCommand(e){c&&(e.focus(),e.select()),e.ownerDocument.execCommand("selectAll")}runEditorCommand(e,t,i){const n=t._getViewModel();n&&this.runCoreEditorCommand(n,i)}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates("keyboard",3,[oa.selectAll(e,e.getPrimaryCursorState())])}},e.SetSelection=xue(new class extends Gl{constructor(){super({id:"setSelection",precondition:void 0})}runCoreEditorCommand(e,t){t.selection&&(e.model.pushStackElement(),e.setCursorStates(t.source,3,[xr.fromModelSelection(t.selection)]))}})}(Xl||(Xl={})),Jl=Po.and(jl.textInputFocus,jl.columnSelection),Rge(Xl.CursorColumnSelectLeft.id,1039),Rge(Xl.CursorColumnSelectRight.id,1041),Rge(Xl.CursorColumnSelectUp.id,1040),Rge(Xl.CursorColumnSelectPageUp.id,1035),Rge(Xl.CursorColumnSelectDown.id,1042),Rge(Xl.CursorColumnSelectPageDown.id,1036),function(e){class t extends sr{runEditorCommand(e,t,i){const n=t._getViewModel();n&&this.runCoreEditingCommand(t,n,i||{})}}e.CoreEditingCommand=t,e.LineBreakInsert=xue(new class extends t{constructor(){super({id:"lineBreakInsert",precondition:jl.writable,kbOpts:{weight:$l,kbExpr:jl.textInputFocus,primary:0,mac:{primary:301}}})}runCoreEditingCommand(e,t,i){e.pushUndoStop(),e.executeCommands(this.id,Pl.lineBreakInsert(t.cursorConfig,t.model,t.getCursorStates().map(e=>e.modelState.selection)))}}),e.Outdent=xue(new class extends t{constructor(){super({id:"outdent",precondition:jl.writable,kbOpts:{weight:$l,kbExpr:Po.and(jl.editorTextFocus,jl.tabDoesNotMoveFocus),primary:1026}})}runCoreEditingCommand(e,t,i){e.pushUndoStop(),e.executeCommands(this.id,Kl.outdent(t.cursorConfig,t.model,t.getCursorStates().map(e=>e.modelState.selection))),e.pushUndoStop()}}),e.Tab=xue(new class extends t{constructor(){super({id:"tab",precondition:jl.writable,kbOpts:{weight:$l,kbExpr:Po.and(jl.editorTextFocus,jl.tabDoesNotMoveFocus),primary:2}})}runCoreEditingCommand(e,t,i){e.pushUndoStop(),e.executeCommands(this.id,Kl.tab(t.cursorConfig,t.model,t.getCursorStates().map(e=>e.modelState.selection))),e.pushUndoStop()}}),e.DeleteLeft=xue(new class extends t{constructor(){super({id:"deleteLeft",precondition:void 0,kbOpts:{weight:$l,kbExpr:jl.textInputFocus,primary:1,secondary:[1025],mac:{primary:1,secondary:[1025,294,257]}}})}runCoreEditingCommand(e,t,i){const[n,o]=Vr.deleteLeft(t.getPrevEditOperationType(),t.cursorConfig,t.model,t.getCursorStates().map(e=>e.modelState.selection),t.getCursorAutoClosedCharacters());n&&e.pushUndoStop(),e.executeCommands(this.id,o),t.setPrevEditOperationType(2)}}),e.DeleteRight=xue(new class extends t{constructor(){super({id:"deleteRight",precondition:void 0,kbOpts:{weight:$l,kbExpr:jl.textInputFocus,primary:20,mac:{primary:20,secondary:[290,276]}}})}runCoreEditingCommand(e,t,i){const[n,o]=Vr.deleteRight(t.getPrevEditOperationType(),t.cursorConfig,t.model,t.getCursorStates().map(e=>e.modelState.selection));n&&e.pushUndoStop(),e.executeCommands(this.id,o),t.setPrevEditOperationType(3)}}),e.Undo=new class extends Ql{constructor(){super(ur)}runDOMCommand(e){e.ownerDocument.execCommand("undo")}runEditorCommand(e,t,i){if(t.hasModel()&&!0!==t.getOption(104))return t.getModel().undo()}},e.Redo=new class extends Ql{constructor(){super(gr)}runDOMCommand(e){e.ownerDocument.execCommand("redo")}runEditorCommand(e,t,i){if(t.hasModel()&&!0!==t.getOption(104))return t.getModel().redo()}}}(ed||(ed={})),td=class extends ir{constructor(e,t,i){super({id:e,precondition:void 0,metadata:i}),this._handlerId=t}runCommand(e,t){const i=e.get(eo).getFocusedCodeEditor();i&&i.trigger("keyboard",this._handlerId,t)}},Age("type",{description:"Type",args:[{name:"args",schema:{type:"object",required:["text"],properties:{text:{type:"string"}}}}]}),Age("replacePreviousChar"),Age("compositionType"),Age("compositionStart"),Age("compositionEnd"),Age("paste"),Age("cut"),id=eue("markerDecorationsService"),od=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},sd=function(e,t){return function(i,n){t(i,n,e)}},(nd=class{constructor(e,t){}dispose(){}}).ID="editor.contrib.markerDecorations",rd=nd,Iue((rd=od([sd(1,id)],rd)).ID,rd,0),ad=class{constructor(e){this.domNode=e,this._maxWidth="",this._width="",this._height="",this._top="",this._left="",this._bottom="",this._right="",this._paddingLeft="",this._fontFamily="",this._fontWeight="",this._fontSize="",this._fontStyle="",this._fontFeatureSettings="",this._fontVariationSettings="",this._textDecoration="",this._lineHeight="",this._letterSpacing="",this._className="",this._display="",this._position="",this._visibility="",this._color="",this._backgroundColor="",this._layerHint=!1,this._contain="none",this._boxShadow=""}focus(){this.domNode.focus()}setMaxWidth(e){const t=Pge(e);this._maxWidth!==t&&(this._maxWidth=t,this.domNode.style.maxWidth=this._maxWidth)}setWidth(e){const t=Pge(e);this._width!==t&&(this._width=t,this.domNode.style.width=this._width)}setHeight(e){const t=Pge(e);this._height!==t&&(this._height=t,this.domNode.style.height=this._height)}setTop(e){const t=Pge(e);this._top!==t&&(this._top=t,this.domNode.style.top=this._top)}setLeft(e){const t=Pge(e);this._left!==t&&(this._left=t,this.domNode.style.left=this._left)}setBottom(e){const t=Pge(e);this._bottom!==t&&(this._bottom=t,this.domNode.style.bottom=this._bottom)}setRight(e){const t=Pge(e);this._right!==t&&(this._right=t,this.domNode.style.right=this._right)}setPaddingLeft(e){const t=Pge(e);this._paddingLeft!==t&&(this._paddingLeft=t,this.domNode.style.paddingLeft=this._paddingLeft)}setFontFamily(e){this._fontFamily!==e&&(this._fontFamily=e,this.domNode.style.fontFamily=this._fontFamily)}setFontWeight(e){this._fontWeight!==e&&(this._fontWeight=e,this.domNode.style.fontWeight=this._fontWeight)}setFontSize(e){const t=Pge(e);this._fontSize!==t&&(this._fontSize=t,this.domNode.style.fontSize=this._fontSize)}setFontStyle(e){this._fontStyle!==e&&(this._fontStyle=e,this.domNode.style.fontStyle=this._fontStyle)}setFontFeatureSettings(e){this._fontFeatureSettings!==e&&(this._fontFeatureSettings=e,this.domNode.style.fontFeatureSettings=this._fontFeatureSettings)}setFontVariationSettings(e){this._fontVariationSettings!==e&&(this._fontVariationSettings=e,this.domNode.style.fontVariationSettings=this._fontVariationSettings)}setTextDecoration(e){this._textDecoration!==e&&(this._textDecoration=e,this.domNode.style.textDecoration=this._textDecoration)}setLineHeight(e){const t=Pge(e);this._lineHeight!==t&&(this._lineHeight=t,this.domNode.style.lineHeight=this._lineHeight)}setLetterSpacing(e){const t=Pge(e);this._letterSpacing!==t&&(this._letterSpacing=t,this.domNode.style.letterSpacing=this._letterSpacing)}setClassName(e){this._className!==e&&(this._className=e,this.domNode.className=this._className)}toggleClassName(e,t){this.domNode.classList.toggle(e,t),this._className=this.domNode.className}setDisplay(e){this._display!==e&&(this._display=e,this.domNode.style.display=this._display)}setPosition(e){this._position!==e&&(this._position=e,this.domNode.style.position=this._position)}setVisibility(e){this._visibility!==e&&(this._visibility=e,this.domNode.style.visibility=this._visibility)}setColor(e){this._color!==e&&(this._color=e,this.domNode.style.color=this._color)}setBackgroundColor(e){this._backgroundColor!==e&&(this._backgroundColor=e,this.domNode.style.backgroundColor=this._backgroundColor)}setLayerHinting(e){this._layerHint!==e&&(this._layerHint=e,this.domNode.style.transform=this._layerHint?"translate3d(0px, 0px, 0px)":"")}setBoxShadow(e){this._boxShadow!==e&&(this._boxShadow=e,this.domNode.style.boxShadow=e)}setContain(e){this._contain!==e&&(this._contain=e,this.domNode.style.contain=this._contain)}setAttribute(e,t){this.domNode.setAttribute(e,t)}removeAttribute(e){this.domNode.removeAttribute(e)}appendChild(e){this.domNode.appendChild(e.domNode)}removeChild(e){this.domNode.removeChild(e.domNode)}},ld=class extends Ie{constructor(e,t){super(),this._onDidChange=this._register(new je),this.onDidChange=this._onDidChange.event,this._referenceDomElement=e,this._width=-1,this._height=-1,this._resizeObserver=null,this.measureReferenceDomElement(!1,t)}dispose(){this.stopObserving(),super.dispose()}getWidth(){return this._width}getHeight(){return this._height}startObserving(){if(!this._resizeObserver&&this._referenceDomElement){let e=null;const t=()=>{e?this.observe({width:e.width,height:e.height}):this.observe()};let i=!1,n=!1;const o=()=>{if(i&&!n)try{i=!1,n=!0,t()}finally{In(pn(this._referenceDomElement),()=>{n=!1,o()})}};this._resizeObserver=new ResizeObserver(t=>{e=t&&t[0]&&t[0].contentRect?{width:t[0].contentRect.width,height:t[0].contentRect.height}:null,i=!0,o()}),this._resizeObserver.observe(this._referenceDomElement)}}stopObserving(){this._resizeObserver&&(this._resizeObserver.disconnect(),this._resizeObserver=null)}observe(e){this.measureReferenceDomElement(!0,e)}measureReferenceDomElement(e,t){let i=0,n=0;t?(i=t.width,n=t.height):this._referenceDomElement&&(i=this._referenceDomElement.clientWidth,n=this._referenceDomElement.clientHeight),i=Math.max(5,i),n=Math.max(5,n),this._width===i&&this._height===n||(this._width=i,this._height=n,e&&this._onDidChange.fire())}},dd=class extends Ie{constructor(e){super(),this._onDidChange=this._register(new je),this.onDidChange=this._onDidChange.event,this._listener=()=>this._handleChange(e,!0),this._mediaQueryList=null,this._handleChange(e,!1)}_handleChange(e,t){this._mediaQueryList?.removeEventListener("change",this._listener),this._mediaQueryList=e.matchMedia(`(resolution: ${e.devicePixelRatio}dppx)`),this._mediaQueryList.addEventListener("change",this._listener),t&&this._onDidChange.fire()}},cd=class extends Ie{get value(){return this._value}constructor(e){super(),this._onDidChange=this._register(new je),this.onDidChange=this._onDidChange.event,this._value=this._getPixelRatio(e);const t=this._register(new dd(e));this._register(t.onDidChange(()=>{this._value=this._getPixelRatio(e),this._onDidChange.fire(this._value)}))}_getPixelRatio(e){const t=document.createElement("canvas").getContext("2d");return(e.devicePixelRatio||1)/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1)}},hd=new class{constructor(){this.mapWindowIdToPixelRatioMonitor=new Map}_getOrCreatePixelRatioMonitor(e){const t=bn(e);let i=this.mapWindowIdToPixelRatioMonitor.get(t);return i||(i=new cd(e),this.mapWindowIdToPixelRatioMonitor.set(t,i),Be.once(yn)(({vscodeWindowId:e})=>{e===t&&(i?.dispose(),this.mapWindowIdToPixelRatioMonitor.delete(t))})),i}getInstance(e){return this._getOrCreatePixelRatioMonitor(e)}},ud=class{constructor(e,t){this.chr=e,this.type=t,this.width=0}fulfill(e){this.width=e}},gd=class e{constructor(e,t){this._bareFontInfo=e,this._requests=t,this._container=null,this._testElements=null}read(e){this._createDomElements(),e.document.body.appendChild(this._container),this._readFromDomElements(),this._container?.remove(),this._container=null,this._testElements=null}_createDomElements(){const t=document.createElement("div");t.style.position="absolute",t.style.top="-50000px",t.style.width="50000px";const i=document.createElement("div");Wge(i,this._bareFontInfo),t.appendChild(i);const n=document.createElement("div");Wge(n,this._bareFontInfo),n.style.fontWeight="bold",t.appendChild(n);const o=document.createElement("div");Wge(o,this._bareFontInfo),o.style.fontStyle="italic",t.appendChild(o);const s=[];for(const r of this._requests){let t;0===r.type&&(t=i),2===r.type&&(t=n),1===r.type&&(t=o),t.appendChild(document.createElement("br"));const a=document.createElement("span");e._render(a,r),t.appendChild(a),s.push(a)}this._container=t,this._testElements=s}static _render(e,t){if(" "===t.chr){let t=" ";for(let e=0;e<8;e++)t+=t;e.innerText=t}else{let i=t.chr;for(let e=0;e<8;e++)i+=i;e.textContent=i}}_readFromDomElements(){for(let e=0,t=this._requests.length;ei?i:e}static float(e,t){return"string"==typeof e&&(e=parseFloat(e)),"number"!=typeof e||isNaN(e)?t:e}constructor(e,t,i,n,o,s,r){void 0!==o&&(o.type="number",o.default=i,o.minimum=s,o.maximum=r),super(e,t,i,o),this.validationFn=n,this.minimum=s,this.maximum=r}validate(t){return this.validationFn(e.float(t,this.defaultValue))}},Rd=class e extends Nd{static string(e,t){return"string"!=typeof e?t:e}constructor(e,t,i,n=void 0){void 0!==n&&(n.type="string",n.default=i),super(e,t,i,n)}validate(t){return e.string(t,this.defaultValue)}},Od=class extends Nd{constructor(e,t,i,n,o=void 0){void 0!==o&&(o.type="string",o.enum=n.slice(0),o.default=i),super(e,t,i,o),this._allowedValues=n}validate(e){return Uge(e,this.defaultValue,this._allowedValues)}},Ad=class extends Ld{constructor(e,t,i,n,o,s,r=void 0){void 0!==r&&(r.type="string",r.enum=o,r.default=n),super(e,t,i,r),this._allowedValues=o,this._convert=s}validate(e){return"string"!=typeof e||-1===this._allowedValues.indexOf(e)?this.defaultValue:this._convert(e)}},Pd=class extends Ld{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[Vae(201,"Use platform APIs to detect when a Screen Reader is attached."),Vae(202,"Optimize for usage with a Screen Reader."),Vae(203,"Assume a screen reader is not attached.")],default:"auto",tags:["accessibility"],description:Vae(204,"Controls if the UI should run in a mode where it is optimized for screen readers.")})}validate(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(e,t,i){return 0===i?e.accessibilitySupport:i}},Fd=class extends Ld{constructor(){const e={insertSpace:!0,ignoreEmptyLines:!0};super(29,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:Vae(205,"Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:Vae(206,"Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{insertSpace:Vge(t.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:Vge(t.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}},function(e){e[e.Line=1]="Line",e[e.Block=2]="Block",e[e.Underline=3]="Underline",e[e.LineThin=4]="LineThin",e[e.BlockOutline=5]="BlockOutline",e[e.UnderlineThin=6]="UnderlineThin"}(Wd||(Wd={})),Bd=class extends Id{constructor(){super(162,"")}compute(e,t,i){const n=["monaco-editor"];return t.get(48)&&n.push(t.get(48)),e.extraEditorClassName&&n.push(e.extraEditorClassName),"default"===t.get(82)?n.push("mouse-default"):"copy"===t.get(82)&&n.push("mouse-copy"),t.get(127)&&n.push("showUnused"),t.get(157)&&n.push("showDeprecated"),n.join(" ")}},Vd=class extends Ed{constructor(){super(45,"emptySelectionClipboard",!0,{description:Vae(207,"Controls whether copying without a selection copies the current line.")})}compute(e,t,i){return i&&e.emptySelectionClipboard}},Hd=class extends Ld{constructor(){const e={cursorMoveOnType:!0,findOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0,history:"workspace",replaceHistory:"workspace"};super(50,"find",e,{"editor.find.cursorMoveOnType":{type:"boolean",default:e.cursorMoveOnType,description:Vae(208,"Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:e.seedSearchStringFromSelection,enumDescriptions:[Vae(209,"Never seed search string from the editor selection."),Vae(210,"Always seed search string from the editor selection, including word at cursor position."),Vae(211,"Only seed search string from the editor selection.")],description:Vae(212,"Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:e.autoFindInSelection,enumDescriptions:[Vae(213,"Never turn on Find in Selection automatically (default)."),Vae(214,"Always turn on Find in Selection automatically."),Vae(215,"Turn on Find in Selection automatically when multiple lines of content are selected.")],description:Vae(216,"Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:Vae(217,"Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:F},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:Vae(218,"Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")},"editor.find.loop":{type:"boolean",default:e.loop,description:Vae(219,"Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")},"editor.find.history":{type:"string",enum:["never","workspace"],default:"workspace",enumDescriptions:[Vae(220,"Do not store search history from the find widget."),Vae(221,"Store search history across the active workspace")],description:Vae(222,"Controls how the find widget history should be stored")},"editor.find.replaceHistory":{type:"string",enum:["never","workspace"],default:"workspace",enumDescriptions:[Vae(223,"Do not store history from the replace widget."),Vae(224,"Store replace history across the active workspace")],description:Vae(225,"Controls how the replace widget history should be stored")},"editor.find.findOnType":{type:"boolean",default:e.findOnType,description:Vae(226,"Controls whether the Find Widget should search as you type.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{cursorMoveOnType:Vge(t.cursorMoveOnType,this.defaultValue.cursorMoveOnType),findOnType:Vge(t.findOnType,this.defaultValue.findOnType),seedSearchStringFromSelection:"boolean"==typeof t.seedSearchStringFromSelection?t.seedSearchStringFromSelection?"always":"never":Uge(t.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:"boolean"==typeof t.autoFindInSelection?t.autoFindInSelection?"always":"never":Uge(t.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:Vge(t.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:Vge(t.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:Vge(t.loop,this.defaultValue.loop),history:Uge(t.history,this.defaultValue.history,["never","workspace"]),replaceHistory:Uge(t.replaceHistory,this.defaultValue.replaceHistory,["never","workspace"])}}},(Cd=zd=class e extends Ld{constructor(){super(60,"fontLigatures",e.OFF,{anyOf:[{type:"boolean",description:Vae(227,"Enables/Disables font ligatures ('calt' and 'liga' font features). Change this to a string for fine-grained control of the 'font-feature-settings' CSS property.")},{type:"string",description:Vae(228,"Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:Vae(229,"Configures font ligatures or font features. Can be either a boolean to enable/disable ligatures or a string for the value of the CSS 'font-feature-settings' property."),default:!1})}validate(t){return void 0===t?this.defaultValue:"string"==typeof t?"false"===t||0===t.length?e.OFF:"true"===t?e.ON:t:Boolean(t)?e.ON:e.OFF}}).OFF='"liga" off, "calt" off',Cd.ON='"liga" on, "calt" on',Ud=class e extends Ld{constructor(){super(63,"fontVariations",e.OFF,{anyOf:[{type:"boolean",description:Vae(230,"Enables/Disables the translation from font-weight to font-variation-settings. Change this to a string for fine-grained control of the 'font-variation-settings' CSS property.")},{type:"string",description:Vae(231,"Explicit 'font-variation-settings' CSS property. A boolean can be passed instead if one only needs to translate font-weight to font-variation-settings.")}],description:Vae(232,"Configures font variations. Can be either a boolean to enable/disable the translation from font-weight to font-variation-settings or a string for the value of the CSS 'font-variation-settings' property."),default:!1})}validate(t){return void 0===t?this.defaultValue:"string"==typeof t?"false"===t?e.OFF:"true"===t?e.TRANSLATE:t:Boolean(t)?e.TRANSLATE:e.OFF}compute(e,t,i){return e.fontInfo.fontVariationSettings}},(yd=Ud).OFF=bd,yd.TRANSLATE="translate",Kd=class extends Id{constructor(){super(59,new _d({pixelRatio:0,fontFamily:"",fontWeight:"",fontSize:0,fontFeatureSettings:"",fontVariationSettings:"",lineHeight:0,letterSpacing:0,isMonospace:!1,typicalHalfwidthCharacterWidth:0,typicalFullwidthCharacterWidth:0,canUseHalfwidthRightwardsArrow:!1,spaceWidth:0,middotWidth:0,wsmiddotWidth:0,maxDigitWidth:0},!1))}compute(e,t,i){return e.fontInfo}},qd=class extends Id{constructor(){super(161,Wd.Line)}compute(e,t,i){return"overtype"===e.inputMode?t.get(92):t.get(34)}},jd=class extends Id{constructor(){super(170,!1)}compute(e,t){return e.editContextSupported&&t.get(44)}},$d=class extends Id{constructor(){super(172,!1)}compute(e,t){return 2===e.accessibilitySupport?t.get(7):t.get(6)}},Gd=class extends Nd{constructor(){super(61,"fontSize",vd.fontSize,{type:"number",minimum:6,maximum:100,default:vd.fontSize,description:Vae(233,"Controls the font size in pixels.")})}validate(e){const t=Td.float(e,this.defaultValue);return 0===t?vd.fontSize:Td.clamp(t,6,100)}compute(e,t,i){return e.fontInfo.fontSize}},(Sd=Zd=class e extends Ld{constructor(){super(62,"fontWeight",vd.fontWeight,{anyOf:[{type:"number",minimum:e.MINIMUM_VALUE,maximum:e.MAXIMUM_VALUE,errorMessage:Vae(234,'Only "normal" and "bold" keywords or numbers between 1 and 1000 are allowed.')},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:e.SUGGESTION_VALUES}],default:vd.fontWeight,description:Vae(235,'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(t){return"normal"===t||"bold"===t?t:String(Md.clampedInt(t,vd.fontWeight,e.MINIMUM_VALUE,e.MAXIMUM_VALUE))}}).SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"],Sd.MINIMUM_VALUE=1,Sd.MAXIMUM_VALUE=1e3,Yd=class extends Ld{constructor(){const e={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",multipleTests:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:"",alternativeTestsCommand:""},t={type:"string",enum:["peek","gotoAndPeek","goto"],default:e.multiple,enumDescriptions:[Vae(236,"Show Peek view of the results (default)"),Vae(237,"Go to the primary result and show a Peek view"),Vae(238,"Go to the primary result and enable Peek-less navigation to others")]},i=["","editor.action.referenceSearch.trigger","editor.action.goToReferences","editor.action.peekImplementation","editor.action.goToImplementation","editor.action.peekTypeDefinition","editor.action.goToTypeDefinition","editor.action.peekDeclaration","editor.action.revealDeclaration","editor.action.peekDefinition","editor.action.revealDefinitionAside","editor.action.revealDefinition"];super(67,"gotoLocation",e,{"editor.gotoLocation.multiple":{deprecationMessage:Vae(239,"This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":{description:Vae(240,"Controls the behavior the 'Go to Definition'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleTypeDefinitions":{description:Vae(241,"Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleDeclarations":{description:Vae(242,"Controls the behavior the 'Go to Declaration'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleImplementations":{description:Vae(243,"Controls the behavior the 'Go to Implementations'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleReferences":{description:Vae(244,"Controls the behavior the 'Go to References'-command when multiple target locations exist."),...t},"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:e.alternativeDefinitionCommand,enum:i,description:Vae(245,"Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:e.alternativeTypeDefinitionCommand,enum:i,description:Vae(246,"Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:e.alternativeDeclarationCommand,enum:i,description:Vae(247,"Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:e.alternativeImplementationCommand,enum:i,description:Vae(248,"Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:e.alternativeReferenceCommand,enum:i,description:Vae(249,"Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{multiple:Uge(t.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:Uge(t.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:Uge(t.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:Uge(t.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:Uge(t.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:Uge(t.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),multipleTests:Uge(t.multipleTests,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:Rd.string(t.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:Rd.string(t.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:Rd.string(t.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:Rd.string(t.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:Rd.string(t.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand),alternativeTestsCommand:Rd.string(t.alternativeTestsCommand,this.defaultValue.alternativeTestsCommand)}}},Qd=class extends Ld{constructor(){const e={enabled:!0,delay:300,hidingDelay:300,sticky:!0,above:!0};super(69,"hover",e,{"editor.hover.enabled":{type:"boolean",default:e.enabled,description:Vae(250,"Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,minimum:0,maximum:1e4,description:Vae(251,"Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:Vae(252,"Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.hidingDelay":{type:"integer",minimum:0,default:e.hidingDelay,markdownDescription:Vae(253,"Controls the delay in milliseconds after which the hover is hidden. Requires `#editor.hover.sticky#` to be enabled.")},"editor.hover.above":{type:"boolean",default:e.above,description:Vae(254,"Prefer showing hovers above the line, if there's space.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{enabled:Vge(t.enabled,this.defaultValue.enabled),delay:Md.clampedInt(t.delay,this.defaultValue.delay,0,1e4),sticky:Vge(t.sticky,this.defaultValue.sticky),hidingDelay:Md.clampedInt(t.hidingDelay,this.defaultValue.hidingDelay,0,6e5),above:Vge(t.above,this.defaultValue.above)}}},Xd=class e extends Id{constructor(){super(165,{width:0,height:0,glyphMarginLeft:0,glyphMarginWidth:0,glyphMarginDecorationLaneCount:0,lineNumbersLeft:0,lineNumbersWidth:0,decorationsLeft:0,decorationsWidth:0,contentLeft:0,contentWidth:0,minimap:{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:0,minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:0},viewportColumn:0,isWordWrapMinified:!1,isViewportWrapping:!1,wrappingColumn:-1,verticalScrollbarWidth:0,horizontalScrollbarHeight:0,overviewRuler:{top:0,width:0,height:0,right:0}})}compute(t,i,n){return e.computeLayout(i,{memory:t.memory,outerWidth:t.outerWidth,outerHeight:t.outerHeight,isDominatedByLongLines:t.isDominatedByLongLines,lineHeight:t.fontInfo.lineHeight,viewLineCount:t.viewLineCount,lineNumbersDigitCount:t.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:t.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:t.fontInfo.maxDigitWidth,pixelRatio:t.pixelRatio,glyphMarginDecorationLaneCount:t.glyphMarginDecorationLaneCount})}static computeContainedMinimapLineCount(e){const t=e.height/e.lineHeight,i=Math.floor(e.paddingTop/e.lineHeight);let n=Math.floor(e.paddingBottom/e.lineHeight);e.scrollBeyondLastLine&&(n=Math.max(n,t-1));const o=(i+e.viewLineCount+n)/(e.pixelRatio*e.height);return{typicalViewportLineCount:t,extraLinesBeforeFirstLine:i,extraLinesBeyondLastLine:n,desiredRatio:o,minimapLineCount:Math.floor(e.viewLineCount/o)}}static _computeMinimapLayout(t,i){const n=t.outerWidth,o=t.outerHeight,s=t.pixelRatio;if(!t.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(s*o),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:o};const r=i.stableMinimapLayoutInput,a=r&&t.outerHeight===r.outerHeight&&t.lineHeight===r.lineHeight&&t.typicalHalfwidthCharacterWidth===r.typicalHalfwidthCharacterWidth&&t.pixelRatio===r.pixelRatio&&t.scrollBeyondLastLine===r.scrollBeyondLastLine&&t.paddingTop===r.paddingTop&&t.paddingBottom===r.paddingBottom&&t.minimap.enabled===r.minimap.enabled&&t.minimap.side===r.minimap.side&&t.minimap.size===r.minimap.size&&t.minimap.showSlider===r.minimap.showSlider&&t.minimap.renderCharacters===r.minimap.renderCharacters&&t.minimap.maxColumn===r.minimap.maxColumn&&t.minimap.scale===r.minimap.scale&&t.verticalScrollbarWidth===r.verticalScrollbarWidth&&t.isViewportWrapping===r.isViewportWrapping,l=t.lineHeight,d=t.typicalHalfwidthCharacterWidth,c=t.scrollBeyondLastLine,h=t.minimap.renderCharacters;let u=s>=2?Math.round(2*t.minimap.scale):t.minimap.scale;const g=t.minimap.maxColumn,p=t.minimap.size,m=t.minimap.side,f=t.verticalScrollbarWidth,_=t.viewLineCount,b=t.remainingWidth,v=t.isViewportWrapping,w=h?2:3;let C=Math.floor(s*o);const y=C/s;let S=!1,x=!1,k=w*u,L=u/s,D=1;if("fill"===p||"fit"===p){const{typicalViewportLineCount:n,extraLinesBeforeFirstLine:r,extraLinesBeyondLastLine:d,desiredRatio:h,minimapLineCount:g}=e.computeContainedMinimapLineCount({viewLineCount:_,scrollBeyondLastLine:c,paddingTop:t.paddingTop,paddingBottom:t.paddingBottom,height:o,lineHeight:l,pixelRatio:s});if(_/g>1)S=!0,x=!0,u=1,k=1,L=u/s;else{let e=!1,o=u+1;if("fit"===p){const t=Math.ceil((r+_+d)*k);v&&a&&b<=i.stableFitRemainingWidth?(e=!0,o=i.stableFitMaxMinimapScale):e=t>C}if("fill"===p||e){S=!0;const e=u;k=Math.min(l*s,Math.max(1,Math.floor(1/h))),v&&a&&b<=i.stableFitRemainingWidth&&(o=i.stableFitMaxMinimapScale),u=Math.min(o,Math.max(1,Math.floor(k/w))),u>e&&(D=Math.min(2,u/e)),L=u/s/D,C=Math.ceil(Math.max(n,r+_+d)*k),v?(i.stableMinimapLayoutInput=t,i.stableFitRemainingWidth=b,i.stableFitMaxMinimapScale=u):(i.stableMinimapLayoutInput=null,i.stableFitRemainingWidth=0)}}}const I=Math.floor(g*L),N=Math.min(I,Math.max(0,Math.floor((b-f-2)*L/(d+L)))+8);let E=Math.floor(s*N);const M=E/s;return E=Math.floor(E*D),{renderMinimap:h?1:2,minimapLeft:"left"===m?0:n-N-f,minimapWidth:N,minimapHeightIsEditorHeight:S,minimapIsSampling:x,minimapScale:u,minimapLineHeight:k,minimapCanvasInnerWidth:E,minimapCanvasInnerHeight:C,minimapCanvasOuterWidth:M,minimapCanvasOuterHeight:y}}static computeLayout(t,i){const n=0|i.outerWidth,o=0|i.outerHeight,s=0|i.lineHeight,r=0|i.lineNumbersDigitCount,a=i.typicalHalfwidthCharacterWidth,l=i.maxDigitWidth,d=i.pixelRatio,c=i.viewLineCount,h=t.get(154),u="inherit"===h?t.get(153):h,g="inherit"===u?t.get(149):u,p=t.get(152),m=i.isDominatedByLongLines,f=t.get(66),_=0!==t.get(76).renderType,b=t.get(77),v=t.get(119),w=t.get(96),C=t.get(81),y=t.get(117),S=y.verticalScrollbarSize,x=y.verticalHasArrows,k=y.arrowSize,L=y.horizontalScrollbarSize,D=t.get(52),I="never"!==t.get(126);let N=t.get(74);D&&I&&(N+=16);let E=0;if(_){const e=Math.max(r,b);E=Math.round(e*l)}let M=0;f&&(M=s*i.glyphMarginDecorationLaneCount);let T=0,R=T+M,O=R+E,A=O+N;const P=n-M-E-N;let F=!1,W=!1,B=-1;2===t.get(2)&&"inherit"===u&&m?(F=!0,W=!0):"on"===g||"bounded"===g?W=!0:"wordWrapColumn"===g&&(B=p);const V=e._computeMinimapLayout({outerWidth:n,outerHeight:o,lineHeight:s,typicalHalfwidthCharacterWidth:a,pixelRatio:d,scrollBeyondLastLine:v,paddingTop:w.top,paddingBottom:w.bottom,minimap:C,verticalScrollbarWidth:S,viewLineCount:c,remainingWidth:P,isViewportWrapping:W},i.memory||new kd);0!==V.renderMinimap&&0===V.minimapLeft&&(T+=V.minimapWidth,R+=V.minimapWidth,O+=V.minimapWidth,A+=V.minimapWidth);const H=P-V.minimapWidth,z=Math.max(1,Math.floor((H-S-2)/a)),U=x?k:0;return W&&(B=Math.max(1,z),"bounded"===g&&(B=Math.min(B,p))),{width:n,height:o,glyphMarginLeft:T,glyphMarginWidth:M,glyphMarginDecorationLaneCount:i.glyphMarginDecorationLaneCount,lineNumbersLeft:R,lineNumbersWidth:E,decorationsLeft:O,decorationsWidth:N,contentLeft:A,contentWidth:H,minimap:V,viewportColumn:z,isWordWrapMinified:F,isViewportWrapping:W,wrappingColumn:B,verticalScrollbarWidth:S,horizontalScrollbarHeight:L,overviewRuler:{top:U,width:S,height:o-2*U,right:0}}}},Jd=class extends Ld{constructor(){super(156,"wrappingStrategy","simple",{"editor.wrappingStrategy":{enumDescriptions:[Vae(255,"Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width."),Vae(256,"Delegates wrapping points computation to the browser. This is a slow algorithm, that might cause freezes for large files, but it works correctly in all cases.")],type:"string",enum:["simple","advanced"],default:"simple",description:Vae(257,"Controls the algorithm that computes wrapping points. Note that when in accessibility mode, advanced will be used for the best experience.")}})}validate(e){return Uge(e,"simple",["simple","advanced"])}compute(e,t,i){return 2===t.get(2)?"advanced":i}},function(e){e.Off="off",e.OnCode="onCode",e.On="on"}(ec||(ec={})),tc=class extends Ld{constructor(){const e={enabled:ec.OnCode};super(73,"lightbulb",e,{"editor.lightbulb.enabled":{type:"string",enum:[ec.Off,ec.OnCode,ec.On],default:e.enabled,enumDescriptions:[Vae(258,"Disable the code action menu."),Vae(259,"Show the code action menu when the cursor is on lines with code."),Vae(260,"Show the code action menu when the cursor is on lines with code or on empty lines.")],description:Vae(261,"Enables the Code Action lightbulb in the editor.")}})}validate(e){return e&&"object"==typeof e?{enabled:Uge(e.enabled,this.defaultValue.enabled,[ec.Off,ec.OnCode,ec.On])}:this.defaultValue}},ic=class extends Ld{constructor(){const e={enabled:!0,maxLineCount:5,defaultModel:"outlineModel",scrollWithEditor:!0};super(131,"stickyScroll",e,{"editor.stickyScroll.enabled":{type:"boolean",default:e.enabled,description:Vae(262,"Shows the nested current scopes during the scroll at the top of the editor.")},"editor.stickyScroll.maxLineCount":{type:"number",default:e.maxLineCount,minimum:1,maximum:20,description:Vae(263,"Defines the maximum number of sticky lines to show.")},"editor.stickyScroll.defaultModel":{type:"string",enum:["outlineModel","foldingProviderModel","indentationModel"],default:e.defaultModel,description:Vae(264,"Defines the model to use for determining which lines to stick. If the outline model does not exist, it will fall back on the folding provider model which falls back on the indentation model. This order is respected in all three cases.")},"editor.stickyScroll.scrollWithEditor":{type:"boolean",default:e.scrollWithEditor,description:Vae(265,"Enable scrolling of Sticky Scroll with the editor's horizontal scrollbar.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{enabled:Vge(t.enabled,this.defaultValue.enabled),maxLineCount:Md.clampedInt(t.maxLineCount,this.defaultValue.maxLineCount,1,20),defaultModel:Uge(t.defaultModel,this.defaultValue.defaultModel,["outlineModel","foldingProviderModel","indentationModel"]),scrollWithEditor:Vge(t.scrollWithEditor,this.defaultValue.scrollWithEditor)}}},nc=class extends Ld{constructor(){const e={enabled:"on",fontSize:0,fontFamily:"",padding:!1,maximumLength:43};super(159,"inlayHints",e,{"editor.inlayHints.enabled":{type:"string",default:e.enabled,description:Vae(266,"Enables the inlay hints in the editor."),enum:["on","onUnlessPressed","offUnlessPressed","off"],markdownEnumDescriptions:[Vae(267,"Inlay hints are enabled"),Vae(268,"Inlay hints are showing by default and hide when holding {0}",F?"Ctrl+Option":"Ctrl+Alt"),Vae(269,"Inlay hints are hidden by default and show when holding {0}",F?"Ctrl+Option":"Ctrl+Alt"),Vae(270,"Inlay hints are disabled")]},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:Vae(271,"Controls font size of inlay hints in the editor. As default the {0} is used when the configured value is less than {1} or greater than the editor font size.","`#editor.fontSize#`","`5`")},"editor.inlayHints.fontFamily":{type:"string",default:e.fontFamily,markdownDescription:Vae(272,"Controls font family of inlay hints in the editor. When set to empty, the {0} is used.","`#editor.fontFamily#`")},"editor.inlayHints.padding":{type:"boolean",default:e.padding,description:Vae(273,"Enables the padding around the inlay hints in the editor.")},"editor.inlayHints.maximumLength":{type:"number",default:e.maximumLength,markdownDescription:Vae(274,"Maximum overall length of inlay hints, for a single line, before they get truncated by the editor. Set to `0` to never truncate")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return"boolean"==typeof t.enabled&&(t.enabled=t.enabled?"on":"off"),{enabled:Uge(t.enabled,this.defaultValue.enabled,["on","off","offUnlessPressed","onUnlessPressed"]),fontSize:Md.clampedInt(t.fontSize,this.defaultValue.fontSize,0,100),fontFamily:Rd.string(t.fontFamily,this.defaultValue.fontFamily),padding:Vge(t.padding,this.defaultValue.padding),maximumLength:Md.clampedInt(t.maximumLength,this.defaultValue.maximumLength,0,Number.MAX_SAFE_INTEGER)}}},oc=class extends Ld{constructor(){super(74,"lineDecorationsWidth",10)}validate(e){return"string"==typeof e&&/^\d+(\.\d+)?ch$/.test(e)?-parseFloat(e.substring(0,e.length-2)):Md.clampedInt(e,this.defaultValue,0,1e3)}compute(e,t,i){return i<0?Md.clampedInt(-i*e.fontInfo.typicalHalfwidthCharacterWidth,this.defaultValue,0,1e3):i}},sc=class extends Td{constructor(){super(75,"lineHeight",vd.lineHeight,e=>Td.clamp(e,0,150),{markdownDescription:Vae(275,"Controls the line height. \n - Use 0 to automatically compute the line height from the font size.\n - Values between 0 and 8 will be used as a multiplier with the font size.\n - Values greater than or equal to 8 will be used as effective values.")},0,150)}compute(e,t,i){return e.fontInfo.lineHeight}},rc=class extends Ld{constructor(){const e={enabled:!0,size:"proportional",side:"right",showSlider:"mouseover",autohide:"none",renderCharacters:!0,maxColumn:120,scale:1,showRegionSectionHeaders:!0,showMarkSectionHeaders:!0,markSectionHeaderRegex:"\\bMARK:\\s*(?-?)\\s*(?