+
    i                        ^ RI Ht ^ RIHt ^ RIHt ^ RIHt ^ RIHt ^ RIH	t	  ! R R4      t
 ! R	 R
4      t ! R R]4      tR# )    )annotations)copy)Any)
ParseError)UnexpectedCharError)TOMLCharc                  8    ] tR t^tRR R lltR R ltR tRtR# )	_Statec               (    V ^8  d   QhRRRRRRRR/# )   sourceSourcesave_markerzbool | NonerestorereturnNone )formats   ".lib/python3.14/site-packages/tomlkit/source.py__annotate___State.__annotate__   s2       ! 	
 
    c                	*    Wn         W n        W0n        R # N)_source_save_markerr   )selfr   r   r   s   &&&&r   __init___State.__init__   s     'r   c                   V ^8  d   QhRR/# r   r   r
   r   )r   s   "r   r   r      s      6 r   c                	    \        V P                  P                  4      V n        V P                  P                  V n        V P                  P                  V n        V P                  P
                  V n        V # r   )r   r   _chars_idx_current_markerr   s   &r   	__enter___State.__enter__   sP    4<<../LL%%	--||++r   c                	>   V P                   '       g	   V'       d   V P                  V P                  n        V P                  V P                  n        V P                  V P                  n        V P
                  '       d   V P                  V P                  n        R # R # R # r   )r   r#   r   r$   r%   r   r&   )r   exception_typeexception_valtraces   &&&&r   __exit___State.__exit__   sc    <<<>"&++DLL $		DLL$(MMDLL!   '+||$ !	 *r   )r#   r%   r$   r&   r   r   r   N)FF)__name__
__module____qualname____firstlineno__r   r(   r.   __static_attributes__r   r   r   r
   r
      s    4r   r
   c                  >    ] tR t^)tRtR R ltR tR R ltR tRt	R	# )
_StateHandlerz!
State preserver for the Parser.
c                    V ^8  d   QhRRRR/# )r   r   r   r   r   r   )r   s   "r   r   _StateHandler.__annotate__.   s      v $ r   c                	     Wn         . V n        R # r   r   _states)r   r   s   &&r   r   _StateHandler.__init__.   s    r   c                	4    \        V P                  .VO5/ VB # r   )r
   r   )r   argskwargss   &*,r   __call___StateHandler.__call__2   s    dll4T4V44r   c                   V ^8  d   QhRR/# r!   r   )r   s   "r   r   r8   5   s     ! !6 !r   c                	f    V ! 4       pV P                   P                  V4       VP                  4       # r   )r;   appendr(   )r   states   & r   r(   _StateHandler.__enter__5   s(    E"  r   c                	Z    V P                   P                  4       pVP                  WV4      # r   )r;   popr.   )r   r+   r,   r-   rE   s   &&&& r   r.   _StateHandler.__exit__:   s%      "~~nUCCr   r:   N)
r0   r1   r2   r3   __doc__r   r@   r(   r.   r4   r   r   r   r6   r6   )   s    5!
Dr   r6   c                    a  ] tR t^?t]! R4      tR V 3R lltR t]R R l4       t	]R R l4       t
]R	 R
 l4       t]R R l4       tR R ltRR R lltRR R lltRR ltR R ltR R lt]3R R lltR R ltRtV ;t# )r    c                    V ^8  d   QhRRRR/# )r   _strr   r   r   )r   s   "r   r   Source.__annotate__B   s      # $ r   c           
     	  < \         SV `  4        \        \        V 4       UUu. uF  w  r#V\	        V4      3NK  	  upp4      V n        ^ V n        ^ V n        \	        R4      V n        \        V 4      V n
        V P                  4        R# u uppi )r    N)superr   iter	enumerater   r#   r$   r&   r%   r6   _stateinc)r   rN   ic	__class__s   &&  r   r   Source.__init__B   sn     4IQ,IJ	 #D)
 Js   B
c                	F    V P                  4        V P                  4        R # r   )rW   markr'   s   &r   resetSource.resetP   s    
 			r   c                   V ^8  d   QhRR/# )r   r   r6   r   )r   s   "r   r   rP   X   s      } r   c                	    V P                   # r   )rV   r'   s   &r   rE   Source.stateW   s    {{r   c                   V ^8  d   QhRR/# r   r   intr   )r   s   "r   r   rP   \   s      S r   c                	    V P                   # r   )r$   r'   s   &r   idx
Source.idx[   s    yyr   c                   V ^8  d   QhRR/# )r   r   r   r   )r   s   "r   r   rP   `   s       r   c                	    V P                   # r   )r%   r'   s   &r   currentSource.current_   s    }}r   c                   V ^8  d   QhRR/# rd   r   )r   s   "r   r   rP   d   s       r   c                	    V P                   # r   )r&   r'   s   &r   markerSource.markerc   s    ||r   c                   V ^8  d   QhRR/# )r   r   rO   r   )r   s   "r   r   rP   g   s     . . .r   c                2    W P                   V P                   # )z-
Extracts the value between marker and index
)r&   r$   r'   s   &r   extractSource.extractg   s     LL499--r   c                    V ^8  d   QhRRRR/# )r   	exceptiontype[ParseError] | Noner   boolr   )r   s   "r   r   rP   m   s      4  r   c                     \        V P                  4      w  V n        V n        R#   \         d@    \        T 4      T n        T P                  T n        T'       d   T P                  T4      Rh R# i ; i)zt
Increments the parser if the end of the input has not been reached.
Returns whether or not it was able to advance.
TNF)nextr#   r$   r%   StopIterationlenEOFparse_error)r   rv   s   &&r   rW   
Source.incm   s_    

	'+DKK'8$DIt} 	D	DI HHDM&&y1t;	s   "& AA0/A0c               $    V ^8  d   QhRRRRRR/# )r   nre   rv   rw   r   rx   r   )r   s   "r   r   rP   ~   s'     D Ds D'> D$ Dr   c                   a a \         ;QJ d)    VV 3R l\        V4       4       F  '       d   K   R# 	  R# ! VV 3R l\        V4       4       4      # )zU
Increments the parser by n characters
if the end of the input has not been reached.
c              3  H   <"   T F  pSP                  SR 7      x  K  	  R# 5i))rv   N)rW   ).0rN   rv   r   s   & r   	<genexpr>Source.inc_n.<locals>.<genexpr>   s     C(Q488i800(s   "FT)allrange)r   r   rv   s   f&fr   inc_nSource.inc_n~   s6    
 sC%(CssCsCsC%(CCCr   c                    V P                   V9   d3   V^ 8w  d,   V^,          pV^,          pV P                  4       '       d   KB   V^ 8  d!   V P                  \        V P                   4      hR# )z4
Consume chars until min/max is satisfied is valid.
N)rk   rW   r~   r   )r   charsminmaxs   &&&&r   consumeSource.consume   s\     lle#q1HC1HC88:: 7""#6EE r   c                   V ^8  d   QhRR/# )r   r   rx   r   )r   s   "r   r   rP      s     ) )T )r   c                2    V P                   V P                  J # )z>
Returns True if the parser has reached the end of the input.
)r%   r}   r'   s   &r   end
Source.end   s     }}((r   c                   V ^8  d   QhRR/# )r   r   r   r   )r   s   "r   r   rP      s     ! !d !r   c                (    V P                   V n        R# )z1
Sets the marker to the index's current position
N)r$   r&   r'   s   &r   r]   Source.mark   s     yyr   c               (    V ^8  d   QhRRRRRRRR/# )r   rv   ztype[ParseError]r>   r   r?   r   r   r   )r   s   "r   r   rP      s2     5 5#5 5 	5
 
5r   c                >    V P                  4       w  rEV! WE.VO5/ VB # )z:
Creates a generic "parse error" at the current position.
)_to_linecol)r   rv   r>   r?   linecols   &&*,  r   r~   Source.parse_error   s)     $$&	4T4V44r   c                   V ^8  d   QhRR/# )r   r   ztuple[int, int]r   )r   s   "r   r   rP      s     ) )_ )r   c                	>   ^ p\        V P                  4       4       Fd  w  r#V\        V4      ,           ^,           V P                  8  d   V^,           V P                  V,
          3u # V\        V4      ^,           ,          pKf  	  \        V P                  4       4      ^ 3# )r   )rU   
splitlinesr|   rg   )r   currX   r   s   &   r   r   Source._to_linecol   sz     !23GASY"TXX-Atxx#~..3t9q= C	 4 4??$%q((r   )r#   r%   r$   r&   rV   r   )r   )r0   r1   r2   r3   r   r}   r   r^   propertyrE   rg   rk   ro   rs   rW   r   r   r   r]   r   r~   r   r4   __classcell__)rZ   s   @r   r   r   ?   s    
4.C         ."DF)! '15) )r   r   N)
__future__r   r   typingr   tomlkit.exceptionsr   r   tomlkit.toml_charr   r
   r6   rO   r   r   r   r   <module>r      s;    "   ) 2 &4 4<D D,u)S u)r   