
    8tf                     2    d Z dgZd ZddZ G d de      Zy)z!Error classes used by simplejson
JSONDecodeErrorc                 ~    | j                  dd|      dz   }|dk(  r	|dz   }||fS || j                  dd|      z
  }||fS )N
       )countrindex)docposlinenocolnos       [/var/www/html/software/conda/envs/higlass/lib/python3.12/site-packages/simplejson/errors.pylinecolr      sX    YYtQ$q(F{a 5= cjjq#..5=    Nc           	          t        ||      \  }}| j                  dt        |||dz                } |d}|| |||fz  S t        ||      \  }}d}|| ||||||fz  S )Nz%rr   z%s: line %d column %d (char %d)z8%s: line %d column %d - line %d column %d (char %d - %d))r   replacerepr)	msgr	   r
   endr   r   fmt	endlinenoendcolnos	            r   errmsgr      s    C%MFE
++dDSq!12
3C
{/c65#...!#s+Ix
DC#vui3DDDr   c                       e Zd ZdZddZd Zy)r   a  Subclass of ValueError with the following additional properties:

    msg: The unformatted error message
    doc: The JSON document being parsed
    pos: The start index of doc where parsing failed
    end: The end index of doc where parsing failed (may be None)
    lineno: The line corresponding to pos
    colno: The column corresponding to pos
    endlineno: The line corresponding to end (may be None)
    endcolno: The column corresponding to end (may be None)

    Nc           	      
   t         j                  | t        ||||             || _        || _        || _        || _        t        ||      \  | _        | _	        |t        ||      \  | _
        | _        y d\  | _
        | _        y )N)r   )NN)
ValueError__init__r   r   r	   r
   r   r   r   r   r   r   )selfr   r	   r
   r   s        r   r   zJSONDecodeError.__init__(   sv    D&c3C"@A")#s"3TZ?,3C,=)DNDM,6)DNDMr   c                 v    | j                   | j                  | j                  | j                  | j                  ffS N)	__class__r   r	   r
   r   )r   s    r   
__reduce__zJSONDecodeError.__reduce__4   s*    ~~$((DHHdhhGGGr   r   )__name__
__module____qualname____doc__r   r!    r   r   r   r      s    
7Hr   r   )r%   __all__r   r   r   r   r&   r   r   <module>r(      s+   
EHj Hr   