(q,K,_)
| 8052 | `),$=Y?z.slice(0,-1):z;if(Y){let O=_.text.split(` |
| 8053 | `),{line:w}=_.cursor.getPosition(),j=q?w+1:w,H=$.split(` |
| 8054 | `),J=[];for(let P=0;P<K;P++)J.push(...H);let M=[...O.slice(0,j),...J,...O.slice(j)],X=M.join(` |
| 8055 | `);_.setText(X),_.setOffset($c8(M,j))}else{let A=$.repeat(K),O=q&&_.cursor.offset<_.text.length?_.cursor.measuredText.nextOffset(_.cursor.offset):_.cursor.offset,w=_.text.slice(0,O)+A+_.text.slice(O),j=xc(A),H=O+A.length-(j.length||1);_.setText(w),_.setOffset(Math.max(O,H))}}function Yc8(q,K,_){let Y=_.text.split(` |
| 8056 | `),{line:$}=_.cursor.getPosition(),A=Math.min(K,Y.length-$),O=" ";for(let J=0;J<A;J++){let M=$+J,X=Y[M]??"";if(q===">")Y[M]=" "+X;else if(X.startsWith(" "))Y[M]=X.slice(2);else if(X.startsWith("\t"))Y[M]=X.slice(1);else{let P=0,W=0;while(W<X.length&&P<2&&/\s/.test(X[W]))P++,W++;Y[M]=X.slice(W)}}let w=Y.join(` |
| 8057 | `),H=((Y[$]??"").match(/^\s*/)?.[0]??"").length;_.setText(w),_.setOffset($c8(Y,$)+H),_.recordChange({type:"indent",dir:q,count:K})}function S48(q,K){let z=K.text.split(` |
| 8058 | `),{line:Y}=K.cursor.getPosition(),$=q==="below"?Y+1:Y,A=[...z.slice(0,$),"",...z.slice($)],O=A.join(` |
| 8059 | `);K.setText(O),K.enterInsert($c8(A,$)),K.recordChange({type:"openLine",direction:q})}function $c8(q,K){return q.slice(0,K).join(` |
no test coverage detected