
    )i
                     \    S SK JrJrJrJr  S SKJrJr  S SKJ	r	J
r
Jr  S\\   S\SS4S jrg)	    )IterableSequenceTuplecast)LegacyWindowsTermWindowsCoordinates)ControlCodeControlTypeSegmentbuffertermreturnNc           	         U  GH  u  p#nU(       d-  U(       a  UR                  X#5        M(  UR                  U5        M;  UnU GH  nUS   nU[        R                  :X  aF  [	        [
        [        [        [        4   U5      u  pn
UR                  [        U
S-
  U	S-
  S95        Mc  U[        R                  :X  a  UR                  S5        M  U[        R                  :X  a  UR                  [        SS5      5        M  U[        R                  :X  a  UR                  5         M  U[        R                  :X  a  UR                  5         GM  U[        R                  :X  a  UR!                  5         GM/  U[        R"                  :X  a  UR%                  5         GMV  U[        R&                  :X  a6  [	        [
        [        [        4   U5      u  pUR)                  US-
  5        GM  U[        R*                  :X  a  UR-                  5         GM  U[        R.                  :X  a  UR1                  5         GM  U[        R2                  :X  am  [	        [
        [        [        4   U5      u  pUS:X  a  UR5                  5         GM:  US:X  a  UR7                  5         GMS  US:X  a  UR9                  5         GMl  GMo  U[        R:                  :X  d  GM  [	        [
        [        [<        4   U5      u  pUR?                  U5        GM     GM     g)zMakes appropriate Windows Console API calls based on the segments in the buffer.

Args:
    buffer (Iterable[Segment]): Iterable of Segments to convert to Win32 API calls.
    term (LegacyWindowsTerm): Used to call the Windows Console API.
r      )rowcol   N) write_styled
write_textr
   CURSOR_MOVE_TOr   r   intmove_cursor_tor   CARRIAGE_RETURNHOME	CURSOR_UPmove_cursor_upCURSOR_DOWNmove_cursor_downCURSOR_FORWARDmove_cursor_forwardCURSOR_BACKWARDmove_cursor_backwardCURSOR_MOVE_TO_COLUMNmove_cursor_to_columnHIDE_CURSORhide_cursorSHOW_CURSORshow_cursorERASE_IN_LINEerase_end_of_lineerase_start_of_line
erase_lineSET_WINDOW_TITLEstr	set_title)r   r   textstylecontrolcontrol_codescontrol_codecontrol_type_xycolumnmodetitles                 V/var/www/html/land-doc-ocr/venv/lib/python3.13/site-packages/rich/_windows_renderer.pylegacy_windows_renderr>      s:    !'W!!$.%3:M -+A;#=#=="5c3)>#?NGA!''(:q1u!a%(PQ![%@%@@OOD)![%5%55''(:1a(@A![%:%::'')![%<%<<))+![%?%??,,.![%@%@@--/![%F%FF $U;+;%<l KIA..vz:![%<%<<$$&![%<%<<$$&![%>%>>"5c)9#:LIGAqy..0002) #![%A%AA#E+s*:$;\JHANN5)E !. !'    )typingr   r   r   r   rich._win32_consoler   r   rich.segmentr	   r
   r   r>    r?   r=   <module>rD      s5    2 2 E : :1*(7"3 1*;L 1*QU 1*r?   