Ë
    u™ãj‹ ã                  óD  — d dl mZ d dlmZmZ d dlmZ d dlmZ d dlm	Z	m
Z
mZmZmZmZmZmZ d dlZd dlZd dlmZ d dlmZ d d	lmZmZ d d
lmZ d dlmZ d dlm Z m!Z!m"Z" d dl#m$Z$ d dl%m&Z& d dl'm(Z( d dl)m*Z*m+Z+m,Z, d dl-m.Z.m/Z/ d dl0m1Z1m2Z2m3Z3m4Z4m5Z5m6Z6m7Z7m8Z8 d dl9m:Z: d dl;m<Z< d dl=m>Z>m?Z?m@Z@mAZAmBZB d dlCmDZD d dlEmFZFmGZGmHZH d dlImJZJ e	r0d dlKmLZLmMZMmNZN d dlOmPZP d dlQmRZRmSZSmTZTmUZUmVZVmWZWmXZXmYZYmZZZm[Z[m\Z\ d dl]m^Z^  eded   ¬«      Z_dKd „Z`e	 	 	 	 	 	 	 	 	 	 	 	 dL	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 dMd"„«       Zae	 	 	 	 	 	 	 	 	 	 	 	 dL	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 dNd#„«       Za	 	 	 	 	 	 	 	 	 	 	 	 dO	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 dPd&„Za G d'„ d(e«      Zb G d)„ d*eb«      Zc G d+„ d,eb«      Zd G d-„ d.ed«      Ze	 	 dQd/„Zfed!d!d!d!d!d!d!d!d!d!d!d!d!d!d!d!d0œ	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 dRd1„«       Zged!d!d!d!d!d!d!d!d!d!d!d!d!d!d!d2œ	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 dSd3„«       Zged!d!d!d!d!d!d!d!d!d!d!d!d!d!d!d!d4œ	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 dTd5„«       Zged!d!d!d!d!d!d!d!d!d!d!d!d!d!d!d!d!d6œ	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 dUd7„«       Zg e$d8«      dd9ddejÐ                  ejÐ                  d$ddd:d$dd%ddejÐ                  d;d6œ	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 dVd<„«       Zg e$d=«       G d>„ d?ejÒ                  e2e5z     ee_   «      «       Zj G d@„ dA«      ZkdWdB„ZldXdC„Zmd$dDœ	 	 	 	 	 dYdE„Zn G dF„ dGek«      Zo G dH„ dIek«      Zp	 	 	 	 	 	 	 	 dZdJ„Zqy)[é    )Úannotations)ÚABCÚabstractmethod)Úabc)Úislice)ÚTYPE_CHECKINGÚAnyÚGenericÚLiteralÚSelfÚTypeVarÚfinalÚoverloadN)Úoption_context)Úlib)Úujson_dumpsÚujson_loads)ÚiNaT)Úimport_optional_dependency)ÚAbstractMethodErrorÚOutOfBoundsDatetimeÚPandas4Warning)Ú
set_module)Úfind_stack_level)Úcheck_dtype_backend)Ú
ensure_strÚis_string_dtypeÚpandas_dtype)ÚPeriodDtypeÚSparseDtype)Ú
ArrowDtypeÚ	DataFrameÚIndexÚ
MultiIndexÚSeriesÚisnaÚnotnaÚto_datetime)Úconcat)Úarrow_table_to_pandas)Ú	IOHandlesÚdedup_namesÚ
get_handleÚis_potential_multi_indexÚstringify_path)Úconvert_to_line_delimits)Úbuild_table_schemaÚparse_table_schemaÚset_default_names)Úvalidate_integer)ÚCallableÚHashableÚMapping)ÚTracebackType)ÚCompressionOptionsÚDtypeArgÚDtypeBackendÚDtypeObjÚFilePathÚ
IndexLabelÚ
JSONEngineÚJSONSerializableÚ
ReadBufferÚStorageOptionsÚWriteBuffer)ÚNDFrameÚFrameSeriesStrT)ÚframeÚseries)Úboundc                óD   — | j                   dv xr t        | t        «       S )al  
    Whether this dtype takes the ``.dt.as_unit`` conversion below.

    SparseDtype reports the subtype's kind, so the kind check alone is not
    enough. This is not an exhaustive test for a usable ``.dt.as_unit`` -- it
    only rules out what is known to reach here. Datetime-likes it returns False
    for are scaled to date_unit by the C encoder instead.
    ÚMm)ÚkindÚ
isinstancer    ©Údtypes    ú_/var/www/html/python-recuperauto-other/env/lib/python3.12/site-packages/pandas/io/json/_json.pyÚ_has_dt_accessorrP   j   s"   € ð �:‰:˜ÐÒD¤j°¼Ó&DÐ"DÐDó    .c                 ó   — y ©N© ©Úpath_or_bufÚobjÚorientÚdate_formatÚdouble_precisionÚforce_asciiÚ	date_unitÚdefault_handlerÚlinesÚcompressionÚindexÚindentÚstorage_optionsÚmodes                 rO   Úto_jsonrd   w   s   € ð  rQ   c                 ó   — y rS   rT   rU   s                 rO   rd   rd   Š   s   € ð  rQ   FÚinferc                ó`  — |dv r|
du rt        d«      ‚|dv r|
du rt        d«      ‚|
€d}
|r|dk7  rt        d«      ‚|d	vrd
|› d�}t        |«      ‚|dk(  r|r|dk7  rd}t        |«      ‚|dk(  r0t        |t        «      r |j                  |j                  xs d¬«      }|dk(  �rE|dvrt        d|› d�«      ‚t        |t
        «      �rkd}t        j                  |j                  j                  t        «      «      d   }t        |«      rW|j                  d¬«      }d}|D ]>  }|j                  ||j                  d d …|f   j                  j!                  |«      «       Œ@ t        |j"                  j$                  «      rI|s|j                  d¬«      }d}t        |j"                  «      j                  j!                  |«      |_        t        |j&                  j$                  «      �r |s|j                  d¬«      }d}t        |j&                  «      j                  j!                  |«      |_        n¶t        |t        «      r¦t        |j$                  «      r-|j                  d¬«      }|j                  j!                  |«      }t        |j"                  j$                  «      rE|j                  d¬«      }t        |j"                  «      j                  j!                  |«      |_        |dk(  rt        |t
        «      rt(        }n9t        |t        «      rt*        }n"t        |t
        «      rt,        }nt/        d«      ‚ |||||||||
|¬«	      j1                  «       }|rt3        |«      }| �4t5        | ||	|¬«      5 }|j6                  j1                  |«       d d d «       y |S # 1 sw Y   y xY w)N)ÚrecordsÚvaluesTzT'index=True' is only valid when 'orient' is 'split', 'table', 'index', or 'columns'.©r`   ÚcolumnsFzV'index=False' is only valid when 'orient' is 'split', 'table', 'records', or 'values'.rh   z3'lines' keyword only valid when 'orient' is records)ÚaÚwzmode=z@ is not a valid option.Only 'w' and 'a' are currently supported.rl   zNmode='a' (append) is only supported when lines is True and orient is 'records'Útableri   )ÚnameÚepoch©ÚsÚmsÚusÚnszInvalid value 'z' for option 'date_unit'r   ©Údeepz''obj' should be a Series or a DataFrame)rX   rY   rZ   Úensure_asciir\   r]   r`   ra   )r_   rb   )Ú
ValueErrorrL   r%   Úto_framero   r"   ÚnpÚnonzeroÚdtypesÚmaprP   ÚlenÚcopyÚisetitemÚilocÚdtÚas_unitr`   rN   rk   ÚJSONTableWriterÚSeriesWriterÚFrameWriterÚNotImplementedErrorÚwriter0   r-   Úhandle)rV   rW   rX   rY   rZ   r[   r\   r]   r^   r_   r`   ra   rb   rc   ÚmsgÚcopiedÚcolsÚcolÚwriterrr   Úhandless                        rO   rd   rd   �   sq  € ð  Ð&Ñ&¨5°D©=Üð%ó
ð 	
ð 
Ð'Ñ	'¨E°U©NÜð&ó
ð 	
ð 
ˆàˆá�˜9Ò$ÜÐNÓOÐOà�:Ñà�D�6ð 8ð 8ð 	ô ˜‹oÐàˆs‚{™E V¨yÒ%8ð4ð 	ô ˜‹oÐà�ÒœZ¨¬VÔ4Ø�l‰l §¡Ò 4¨HˆlÓ5ˆà�gÓð Ð3Ñ3Ü˜¨y¨kÐ9QÐRÓSÐSÜ�cœ9Õ%ØˆFÜ—:‘:˜cŸj™jŸn™nÔ-=Ó>Ó?ÀÑBˆDÜ�4ŒyØ—h‘h E�hÓ*�Ø�Øò N�CØ—L‘L  c§h¡hªq°#¨vÑ&6×&9Ñ&9×&AÑ&AÀ)Ó&LÕMðNä §	¡	§¡Ô0ÙØŸ(™(¨˜(Ó.�CØ!�FÜ" 3§9¡9Ó-×0Ñ0×8Ñ8¸ÓC�”	Ü §¡× 1Ñ 1Õ2ÙØŸ(™(¨˜(Ó.�CØ!�FÜ$ S§[¡[Ó1×4Ñ4×<Ñ<¸YÓG�•Ü˜œVÔ$Ü §	¡	Ô*Ø—h‘h E�hÓ*�Ø—f‘f—n‘n YÓ/�Ü §	¡	§¡Ô0Ø—h‘h E�hÓ*�Ü" 3§9¡9Ó-×0Ñ0×8Ñ8¸ÓC�”	ð �ÒœZ¨¬YÔ7Ü ‰Ü	�CœÔ	 Ü‰Ü	�CœÔ	#Ü‰ä!Ð"KÓLÐLáØØØØ)Ø ØØ'ØØô
	÷ �eƒgð ñ Ü$ QÓ'ˆàÐäØ˜¨;Èô
ð 	$àØ�N‰N× Ñ  Ô#÷	$ð ð ˆ÷	$ð ús   Í=N$Î$N-c                  óx   — e Zd ZU ded<   	 	 d	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 d	d„Zd
d„Zdd„Zeedd„«       «       Z	y)ÚWriterÚstrÚ_default_orientNc
                ó¾   — || _         |€| j                  }|| _        || _        || _        || _        || _        || _        || _        |	| _	        | j                  «        y rS   )rW   r”   rX   rY   rZ   rx   r\   r]   r`   ra   Ú_format_axes)
ÚselfrW   rX   rY   rZ   rx   r\   r`   r]   ra   s
             rO   Ú__init__zWriter.__init__  sc   € ð ˆŒàˆ>Ø×)Ñ)ˆFàˆŒØ&ˆÔØ 0ˆÔØ(ˆÔØ"ˆŒØ.ˆÔØˆŒ
ØˆŒØ×ÑÕrQ   c                ó   — t        | «      ‚rS   ©r   ©r—   s    rO   r–   zWriter._format_axes1  ó   € Ü! $Ó'Ð'rQ   c           
     ó*  — | j                   dk(  }	 t        | j                  | j                  | j                  | j
                  | j                  || j                  | j                  ¬«      S # t        $ r}dt        |«      vr‚ t        d«      |‚d }~ww xY w)NÚiso)rX   rZ   rx   r\   Ú	iso_datesr]   ra   zMaximum recursion level reachedz•Unable to serialize object to JSON: encountered an unsupported object type; convert the column to a supported type (e.g. str) before calling to_json.)rY   r   Úobj_to_writerX   rZ   rx   r\   r]   ra   ÚOverflowErrorr“   ry   )r—   rŸ   Úerrs      rO   r‰   zWriter.write4  sš   € Ø×$Ñ$¨Ñ-ˆ	ð	ÜØ×!Ñ!Ø—{‘{Ø!%×!6Ñ!6Ø!×.Ñ.ØŸ.™.Ø#Ø $× 4Ñ 4Ø—{‘{ô	ð 	øô ò 		ð 1¼¸C»Ñ@ØÜð:óð ð	ûð		ús   ‘AA* Á*	BÁ3BÂBc                 ó   — y)zObject to write in JSON format.NrT   r›   s    rO   r    zWriter.obj_to_writeL  s   � rQ   ©Nr   )rW   rD   rX   ú
str | NonerY   r“   rZ   Úintrx   Úboolr\   r“   r`   r§   r]   ú(Callable[[Any], JSONSerializable] | Nonera   r¦   ÚreturnÚNone©r©   rª   ©r©   r“   ©r©   z"NDFrame | Mapping[IndexLabel, Any])
Ú__name__Ú
__module__Ú__qualname__Ú__annotations__r˜   r–   r‰   Úpropertyr   r    rT   rQ   rO   r’   r’     s    … ØÓð EIØðàðð ðð ð	ð
 ðð ðð ðð ðð Bðð ðð 
óó6(óð0 Øò.ó ó ñ.rQ   r’   c                  ó*   — e Zd ZdZedd„«       Zdd„Zy)r†   r`   c                óª   — | j                   s<| j                  dk(  r-| j                  j                  | j                  j                  dœS | j                  S )NÚsplit)ro   Údata)r`   rX   rW   ro   ri   r›   s    rO   r    zSeriesWriter.obj_to_writeU  s8   € à�zŠz˜dŸk™k¨WÒ4Ø ŸH™HŸM™M°4·8±8·?±?ÑCÐCà—8‘8ˆOrQ   c                ó–   — | j                   j                  j                  s)| j                  dk(  rt	        d| j                  › d�«      ‚y y )Nr`   z(Series index must be unique for orient='ú')rW   r`   Ú	is_uniquerX   ry   r›   s    rO   r–   zSeriesWriter._format_axes\  sA   € Ø�x‰x�~‰~×'Ò'¨D¯K©K¸7Ò,BÜÐGÈÏÉÀ}ÐTUÐVÓWÐWð -CÐ'rQ   Nr­   r«   ©r®   r¯   r°   r”   r²   r    r–   rT   rQ   rO   r†   r†   R  s   „ Ø€Oàòó ðôXrQ   r†   c                  ó*   — e Zd ZdZedd„«       Zdd„Zy)r‡   rk   c                ó–   — | j                   s0| j                  dk(  r!| j                  j                  d¬«      }|d= |S | j                  }|S )Nrµ   )rX   r`   )r`   rX   rW   Úto_dict)r—   r    s     rO   r    zFrameWriter.obj_to_writed  sL   € à�zŠz˜dŸk™k¨WÒ4ØŸ8™8×+Ñ+°7Ð+Ó;ˆLØ˜WÐ%ð Ðð  Ÿ8™8ˆLØÐrQ   c                ó"  — | j                   j                  j                  s'| j                  dv rt	        d| j                  › d�«      ‚| j                   j
                  j                  s(| j                  dv rt	        d| j                  › d�«      ‚yy)z:
        Try to format axes if they are datelike.
        rj   z+DataFrame index must be unique for orient='z'.)r`   rk   rh   z-DataFrame columns must be unique for orient='N)rW   r`   r¹   rX   ry   rk   r›   s    rO   r–   zFrameWriter._format_axesm  sŠ   € ð �x‰x�~‰~×'Ò'¨D¯K©KÐ;OÑ,OÜØ=¸d¿k¹k¸]È"ÐMóð ð �x‰x×Ñ×)Ò)¨d¯k©kð >
ñ /
ô
 Ø?ÀÇÁ¸}ÈBÐOóð ð/
Ð)rQ   Nr­   r«   rº   rT   rQ   rO   r‡   r‡   a  s   „ Ø€Oàòó ðôrQ   r‡   c                  ó^   ‡ — e Zd ZdZ	 	 d	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 dˆ fd„Zedd„«       Zˆ xZS )r…   rh   c
                ó$  •— t         ‰| �  |||||||||	¬«	       |dk7  rd|› d�}
t        |
«      ‚t        || j                  ¬«      | _        | j                  rt        |«      }|j                  dk(  r%t        |j                  t        «      rt        d«      ‚|j                  dk(  r+|j                  t        |j                  j                  «      v s8t        |j                  j!                  |j                  j                  «      «      rd	}
t        |
«      ‚|j#                  d
g¬«      j                  }d}t        |«      r*|j%                  «       }d}||   j'                  d„ «      ||<   | j                  s|j)                  d¬«      | _        nnt        |j                  j,                  t.        «      r3|s|j%                  d¬«      }|j                  j1                  «       |_        |j)                  d¬«      | _        d| _        d| _        || _        y)zù
        Adds a `schema` attribute with the Table Schema, resets
        the index (can't do in caller, because the schema inference needs
        to know what the index is, forces orient to records, and forces
        date_format to 'iso'.
        )r]   ra   rž   z8Trying to write with `orient='table'` and `date_format='zH'`. Table Schema requires dates to be formatted with `date_format='iso'`)r`   é   z6orient='table' is not supported for MultiIndex columnsé   z/Overlapping names between the index and columnsÚ	timedelta)ÚincludeFTc                ó"   — | j                  «       S rS   )Ú	isoformat)Úxs    rO   ú<lambda>z*JSONTableWriter.__init__.<locals>.<lambda>¾  s   € ¸A¿K¹K»M€ rQ   )Údroprv   rh   N)Úsuperr˜   ry   r1   r`   Úschemar3   ÚndimrL   rk   r$   rˆ   ro   ÚsetÚnamesr   ÚintersectionÚselect_dtypesr€   r~   Úreset_indexrW   rN   r   Úto_timestamprY   rX   )r—   rW   rX   rY   rZ   rx   r\   r`   r]   ra   r‹   Ú
timedeltasrŒ   Ú	__class__s                €rO   r˜   zJSONTableWriter.__init__‚  sÕ  ø€ ô$ 	‰ÑØØØØØØØØ+Øð 	ô 
	
ð ˜%Òð!Ø!, ð .;ð;ð ô
 ˜S“/Ð!ä(¨°D·J±JÔ?ˆŒØ�:Š:Ü# CÓ(ˆCð �8‰8�qŠ=œZ¨¯©´ZÔ@Ü%ØHóð ð
 �X‰X˜Š] §¡¬S°·±·±Ó-AÑ!AÄsØ�K‰K×$Ñ$ S§Y¡Y§_¡_Ó5ôH
ð DˆCÜ˜S“/Ð!à×&Ñ&°¨}Ð&Ó=×EÑEˆ
ØˆÜˆzŒ?Ø—(‘(“*ˆCØˆFØ! *™o×1Ñ1Ñ2IÓJˆC�
‰Oð �zŠzØ—‘¨D�Ó1ˆD�Hô ˜#Ÿ)™)Ÿ/™/¬;Ô7ÙØŸ(™(¨˜(Ó.�CØŸI™I×2Ñ2Ó4�”	Ø—‘¨E�Ó2ˆDŒHØ ˆÔØˆŒØˆ�
rQ   c                ó4   — | j                   | j                  dœS )N)rË   r¶   )rË   rW   r›   s    rO   r    zJSONTableWriter.obj_to_writeÎ  s   € àŸ+™+¨t¯x©xÑ8Ð8rQ   r¤   )rX   r¥   rY   r“   rZ   r¦   rx   r§   r\   r“   r`   r§   r]   r¨   ra   r¦   r©   rª   r­   )r®   r¯   r°   r”   r˜   r²   r    Ú__classcell__)rÔ   s   @rO   r…   r…     s‘   ø„ Ø€Oð EIØðJð ðJð ð	Jð
 ðJð ðJð ðJð ðJð BðJð ðJð 
õJðX ò9ó ô9rQ   r…   c                ó  — dd„}| dk7  r |d«       |� |d«       |dur|t         j                  ur |d«       |dur|t         j                  ur |d«       |d	ur |d
«       |� |d«       |
� |d«       |	dk7  r |d«       |�|j                  «       dvr |d«       |�|dk7  r |d«       t        |t        «      rC|j                  «       D ]/  \  }}t        t        |«      t        «      rŒ t        d|›d|›�«      ‚ y|�	 |d«       yy)a=  
    Reject ``read_json`` arguments the ``"pyarrow"`` engine cannot honor.

    The pyarrow engine hands the input straight to ``pyarrow.json.read_json``,
    so any argument that pandas would otherwise apply itself is silently
    ignored, producing a wrong result rather than an error. Raise instead.

    Called from ``read_json`` before ``convert_axes`` and ``dtype`` are
    resolved from ``None`` to ``True`` (and ``convert_dates`` /
    ``keep_default_dates`` from ``lib.no_default``), so that an
    explicitly-passed value is distinguishable from the default.
    c                ó    — t        d| ›d�«      ‚)NzThe z2 option is not supported with the 'pyarrow' engine)ry   )Úargnames    rO   Úraise_unsupportedz;_validate_pyarrow_engine_options.<locals>.raise_unsupportedî  s   € ÜØ�7�+ÐOÐPó
ð 	
rQ   rF   ÚtypNÚconvert_axesTÚconvert_datesÚkeep_default_datesFÚprecise_floatr\   rb   rf   r_   )zutf-8Úutf8ÚencodingÚstrictÚencoding_errorszQThe 'pyarrow' engine only supports ArrowDtype values in the 'dtype' mapping, got z for column rN   )rÙ   r“   r©   rª   )	r   Ú
no_defaultÚlowerrL   ÚdictÚitemsr   r!   ry   )rÛ   rN   rÜ   rÝ   rÞ   rß   r\   rá   rã   r_   rb   rÚ   ÚfieldÚfield_dtypes                 rO   Ú _validate_pyarrow_engine_optionsrê   Ó  s?  € ó6
ð
 ˆg‚~Ù˜%Ô ØÐÙ˜.Ô)Ø˜DÑ  ]¼#¿.¹.Ñ%HÙ˜/Ô*Ø Ñ%Ð*<ÄCÇNÁNÑ*RÙÐ.Ô/Ø˜EÑ!Ù˜/Ô*ØÐÙ˜+Ô&ØÐ"ÙÐ+Ô,Ø�gÒñ 	˜-Ô(ØÐ §¡Ó 0Ð8IÑ Iá˜*Ô%ØÐ" ¸(Ò'BÙÐ+Ô,ä�%œÔð #(§+¡+£-ò 	ÑˆE�;Üœl¨;Ó7¼ÕDÜ ð0Ø0;¨¸lØ�ið!óð ñ	ð 
Ð	ñ 	˜'Õ"ð 
rQ   )rX   rÛ   rN   rÜ   rÝ   rÞ   rß   r\   rá   rã   r^   r_   Únrowsrb   Údtype_backendÚenginec                ó   — y rS   rT   ©rV   rX   rÛ   rN   rÜ   rÝ   rÞ   rß   r\   rá   rã   r^   Ú	chunksizer_   rë   rb   rì   rí   s                     rO   Ú	read_jsonrñ     s   € ð* $'rQ   )rX   rN   rÜ   rÝ   rÞ   rß   r\   rá   rã   r^   r_   rë   rb   rì   rí   c                ó   — y rS   rT   rï   s                     rO   rñ   rñ   3  s   € ð* %(rQ   )rX   rN   rÜ   rÝ   rÞ   rß   r\   rá   rã   r^   rð   r_   rë   rb   rì   rí   c                ó   — y rS   rT   rï   s                     rO   rñ   rñ   K  s   € ð* rQ   )rX   rÛ   rN   rÜ   rÝ   rÞ   rß   r\   rá   rã   r^   rð   r_   rë   rb   rì   rí   c                ó   — y rS   rT   rï   s                     rO   rñ   rñ   c  s   € ð* rQ   ÚpandasrF   râ   Úujsonc               ó@  — |dk(  r|rt        d«      ‚|dk(  r|rt        d«      ‚t        |«       |dk(  rt        ||||||||	|
||¬«       |t        j                  ur%t        j                  dt        t        «       ¬«       nd}|t        j                  ur%t        j                  d	t        t        «       ¬«       nd}|€|dk7  rd}|€|dk7  rd}t        | fi d
|“d|“d|“d|“d|“d|“d|“d|“d|	“d|“d|“d|“d|“d|“d|
“d|“d|“Ž}|r|S |j                  «       S )aV.  
    Convert a JSON string to pandas object.

    This method reads JSON files or JSON-like data and converts them into pandas
    objects. It supports a variety of input formats, including line-delimited JSON,
    compressed files, and various data representations (table, records, index-based,
    etc.). When `chunksize` is specified, an iterator is returned instead of loading
    the entire data into memory.

    Parameters
    ----------
    path_or_buf : a str path, path object or file-like object
        Any valid string path is acceptable. The string could be a URL. Valid
        URL schemes include http, ftp, s3, and file. For file URLs, a host is
        expected. A local file could be:
        ``file://localhost/path/to/table.json``.

        Certain URL schemes may require additional packages. For example, S3
        URLs require the ``s3fs`` library. See
        :ref:`install.optional_dependencies` for a full list.

        If you want to pass in a path object, pandas accepts any
        ``os.PathLike``.

        By file-like object, we refer to objects with a ``read()`` method,
        such as a file handle (e.g. via builtin ``open`` function)
        or ``StringIO``.

    orient : str, optional
        Indication of expected JSON string format.
        Compatible JSON strings can be produced by ``to_json()`` with a
        corresponding orient value.
        When ``typ == 'frame'``, the set of possible orients is:

        - ``'split'`` : dict like
          ``{index -> [index], columns -> [columns], data -> [values]}``
        - ``'records'`` : list like
          ``[{column -> value}, ... , {column -> value}]``
        - ``'index'`` : dict like ``{index -> {column -> value}}``
        - ``'columns'`` : dict like ``{column -> {index -> value}}``
        - ``'values'`` : just the values array
        - ``'table'`` : dict like ``{'schema': {schema}, 'data': {data}}``

        When ``typ == 'series'``, the shapes differ, since a Series has no
        columns:

        - ``'split'`` : dict like
          ``{name -> name, index -> [index], data -> [values]}``
        - ``'records'`` : list like ``[value, ... , value]``
        - ``'index'`` : dict like ``{index -> value}``

        The allowed and default values depend on the value
        of the `typ` parameter.

        * when ``typ == 'series'``,

          - allowed orients are ``{'split','records','index'}``
          - default is ``'index'``
          - The Series index must be unique for orient ``'index'``.

        * when ``typ == 'frame'``,

          - allowed orients are ``{'split','records','index',
            'columns','values', 'table'}``
          - default is ``'columns'``
          - The DataFrame index must be unique for orients ``'index'`` and
            ``'columns'``.
          - The DataFrame columns must be unique for orients ``'index'``,
            ``'columns'``, and ``'records'``.

    typ : {'frame', 'series'}, default 'frame'
        The type of object to recover.

    dtype : bool or dict, default None
        If True, infer dtypes; if a dict of column to dtype, then use those;
        if False, then don't infer dtypes at all, applies only to the data.

        For all ``orient`` values except ``'table'``, default is True.

    convert_axes : bool, default None
        Try to convert the axes to the proper dtypes.

        For all ``orient`` values except ``'table'``, default is True.

    convert_dates : bool or list of str, default True
        If True then default datelike columns may be converted (depending on
        keep_default_dates).
        If False, no dates will be converted.
        If a list of column names, then those columns will be converted and
        default datelike columns may also be converted (depending on
        keep_default_dates).

        .. deprecated:: 3.1.0
            Pass ``dtype=False`` to disable type conversion, or parse date
            columns with :func:`~pandas.to_datetime` after reading.

    keep_default_dates : bool, default True
        If parsing dates (convert_dates is not False), then try to parse the
        default datelike columns.
        A column label is datelike if

        * it ends with ``'_at'``,

        * it ends with ``'_time'``,

        * it begins with ``'timestamp'``,

        * it is ``'modified'``, or

        * it is ``'date'``.

        .. deprecated:: 3.1.0
            Pass ``dtype=False`` to disable type conversion, or parse date
            columns with :func:`~pandas.to_datetime` after reading.

    precise_float : bool, default False
        Set to enable usage of higher precision (strtod) function when
        decoding string to double values. Default (False) is to use fast but
        less precise builtin functionality.

    date_unit : str, default None
        The timestamp unit to detect if converting dates. The default behaviour
        is to try and detect the correct precision, but if this is not desired
        then pass one of 's', 'ms', 'us' or 'ns' to force parsing only seconds,
        milliseconds, microseconds or nanoseconds respectively.

    encoding : str, default is 'utf-8'
        The encoding to use to decode py3 bytes.

    encoding_errors : str, optional, default "strict"
        How encoding errors are treated. `List of possible values
        <https://docs.python.org/3/library/codecs.html#error-handlers>`_ .

    lines : bool, default False
        Read the file as a json object per line.

    chunksize : int, optional
        Return JsonReader object for iteration.
        See the `line-delimited json docs
        <https://pandas.pydata.org/pandas-docs/stable/user_guide/io.html#line-delimited-json>`_
        for more information on ``chunksize``.
        This can only be passed if `lines=True`.
        If this is None, the file will be read into memory all at once.

    compression : str or dict, default 'infer'
        For on-the-fly decompression of on-disk data. If 'infer' and 'path_or_buf' is
        path-like, then detect compression from the following extensions: '.gz',
        '.bz2', '.zip', '.xz', '.zst', '.tar', '.tar.gz', '.tar.xz' or '.tar.bz2'
        (otherwise no compression).
        If using 'zip' or 'tar', the ZIP file must contain only one data file to be
        read in.
        Set to ``None`` for no decompression.
        Can also be a dict with key ``'method'`` set
        to one of {``'zip'``, ``'gzip'``, ``'bz2'``, ``'zstd'``, ``'xz'``, ``'tar'``}
        and other key-value pairs are forwarded to
        ``zipfile.ZipFile``, ``gzip.GzipFile``,
        ``bz2.BZ2File``, ``zstandard.ZstdDecompressor``, ``lzma.LZMAFile`` or
        ``tarfile.TarFile``, respectively.
        As an example, the following could be passed for Zstandard decompression using a
        custom compression dictionary:
        ``compression={'method': 'zstd', 'dict_data': my_compression_dict}``.

    nrows : int, optional
        The number of lines from the line-delimited jsonfile that has to be read.
        This can only be passed if `lines=True`.
        If this is None, all the rows will be returned.

    storage_options : dict, optional
        Extra options that make sense for a particular storage connection, e.g.
        host, port, username, password, etc. For HTTP(S) URLs the key-value pairs
        are forwarded to ``urllib.request.Request`` as header options. For other
        URLs (e.g. starting with "s3://", and "gcs://") the key-value pairs are
        forwarded to ``fsspec.open``. Please see ``fsspec`` and ``urllib`` for more
        details, and for more examples on storage options refer `here
        <https://pandas.pydata.org/docs/user_guide/io.html?
        highlight=storage_options#reading-writing-remote-files>`_.

    dtype_backend : {'numpy_nullable', 'pyarrow'}
        Back-end data type applied to the resultant :class:`DataFrame`
        (still experimental). If not specified, the default behavior
        is to not use nullable data types. If specified, the behavior
        is as follows:

        * ``"numpy_nullable"``: returns nullable-dtype-backed :class:`DataFrame`
        * ``"pyarrow"``: returns pyarrow-backed nullable
          :class:`ArrowDtype` :class:`DataFrame`

        .. versionadded:: 2.0

    engine : {"ujson", "pyarrow"}, default "ujson"
        Parser engine to use. The ``"pyarrow"`` engine is only available when
        ``lines=True``, and only supports ``typ="frame"`` with default parsing
        options; passing an option it cannot apply (for example ``convert_dates``,
        ``date_unit``, ``precise_float``, ``encoding``, or a non-``ArrowDtype``
        ``dtype``) raises ``ValueError``.

        .. versionadded:: 2.0

    Returns
    -------
    Series, DataFrame, or pandas.api.typing.JsonReader
        A JsonReader is returned when ``chunksize`` is not ``0`` or ``None``.
        Otherwise, the type returned depends on the value of ``typ``.

    See Also
    --------
    DataFrame.to_json : Convert a DataFrame to a JSON string.
    Series.to_json : Convert a Series to a JSON string.
    json_normalize : Normalize semi-structured JSON data into a flat table.

    Notes
    -----
    Specific to ``orient='table'``, if a :class:`DataFrame` with a literal
    :class:`Index` name of `index` gets written with :func:`to_json`, the
    subsequent read operation will incorrectly set the :class:`Index` name to
    ``None``. This is because `index` is also used by :func:`DataFrame.to_json`
    to denote a missing :class:`Index` name, and the subsequent
    :func:`read_json` operation cannot distinguish between the two. The same
    limitation is encountered with a :class:`MultiIndex` and any names
    beginning with ``'level_'``.

    Examples
    --------
    >>> from io import StringIO
    >>> df = pd.DataFrame(
    ...     [["a", "b"], ["c", "d"]],
    ...     index=["row 1", "row 2"],
    ...     columns=["col 1", "col 2"],
    ... )

    Encoding/decoding a Dataframe using ``'split'`` formatted JSON:

    >>> df.to_json(orient="split")
    '{"columns":["col 1","col 2"],"index":["row 1","row 2"],"data":[["a","b"],["c","d"]]}'

    >>> pd.read_json(StringIO(_), orient="split")  # noqa: F821
          col 1 col 2
    row 1     a     b
    row 2     c     d

    Encoding/decoding a Dataframe using ``'index'`` formatted JSON:

    >>> df.to_json(orient="index")
    '{"row 1":{"col 1":"a","col 2":"b"},"row 2":{"col 1":"c","col 2":"d"}}'

    >>> pd.read_json(StringIO(_), orient="index")  # noqa: F821
          col 1 col 2
    row 1     a     b
    row 2     c     d

    Encoding/decoding a Dataframe using ``'records'`` formatted JSON.
    Note that index labels are not preserved with this encoding.

    >>> df.to_json(orient="records")
    '[{"col 1":"a","col 2":"b"},{"col 1":"c","col 2":"d"}]'

    >>> pd.read_json(StringIO(_), orient="records")  # noqa: F821
      col 1 col 2
    0     a     b
    1     c     d

    Encoding with Table Schema

    >>> df.to_json(orient="table")
    '{"schema":{"fields":[{"name":"index","type":"string","extDtype":"str"},{"name":"col 1","type":"string","extDtype":"str"},{"name":"col 2","type":"string","extDtype":"str"}],"primaryKey":["index"],"pandas_version":"1.4.0"},"data":[{"index":"row 1","col 1":"a","col 2":"b"},{"index":"row 2","col 1":"c","col 2":"d"}]}'

    The following example uses ``dtype_backend="numpy_nullable"``

    >>> data = '''{"index": {"0": 0, "1": 1},
    ...        "a": {"0": 1, "1": null},
    ...        "b": {"0": 2.5, "1": 4.5},
    ...        "c": {"0": true, "1": false},
    ...        "d": {"0": "a", "1": "b"},
    ...        "e": {"0": 1577.2, "1": 1577.1}}'''
    >>> pd.read_json(StringIO(data), dtype_backend="numpy_nullable")
       index     a    b      c  d       e
    0      0     1  2.5   True  a  1577.2
    1      1  <NA>  4.5  False  b  1577.1
    rn   z)cannot pass both dtype and orient='table'z0cannot pass both convert_axes and orient='table'Úpyarrow)rÛ   rN   rÜ   rÝ   rÞ   rß   r\   rá   rã   r_   rb   zÅThe 'convert_dates' keyword in read_json is deprecated and will be removed in a future version. Pass dtype=False to disable type conversion, or parse date columns with pd.to_datetime after reading.©Ú
stacklevelTzÊThe 'keep_default_dates' keyword in read_json is deprecated and will be removed in a future version. Pass dtype=False to disable type conversion, or parse date columns with pd.to_datetime after reading.rX   rÛ   rN   rÜ   rÝ   rÞ   rß   r\   rá   r^   rð   r_   rë   rb   rã   rì   rí   )ry   r   rê   r   rä   ÚwarningsÚwarnr   r   Ú
JsonReaderÚread)rV   rX   rÛ   rN   rÜ   rÝ   rÞ   rß   r\   rá   rã   r^   rð   r_   rë   rb   rì   rí   Újson_readers                      rO   rñ   rñ   {  sÃ  € ðZ	 �Ò™UÜÐDÓEÐEØ�Ò™\ÜÐKÓLÐLä˜Ô&à�Òô 	)ØØØ%Ø'Ø1Ø'ØØØ+Ø#Ø+õ	
ð œCŸN™NÑ*Ü�‰ðSô Ü'Ó)ö	
ð ˆà¤§¡Ñ/Ü�‰ðSô Ü'Ó)ö	
ð "Ðà€}˜ 7Ò*ð ˆØÐ ¨'Ò 1ØˆäØòáðñ ðñ ð	ñ
 "ðñ $ðñ .ðñ $ðñ ðñ ðñ ðñ ðñ  ðñ ðñ (ðñ  (ð!ñ" $ð#ñ$ ð%€Kñ* ØÐà×ÑÓ!Ð!rQ   zpandas.api.typingc                  óB  — e Zd ZdZddej
                  df	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 dd„Zd„ Zdd„Ze	dd„«       Z
e	dd	„«       Z
e	dd
„«       Z
dd„Z
dd„Zdd„Zdd„Zdd„Zd d„Ze	dd„«       Ze	dd„«       Ze		 	 	 	 dd„«       Zdd„Zd d„Z	 	 	 	 	 	 	 	 d!d„Zy)"rý   a)  
    JsonReader provides an interface for reading in a JSON file.

    If initialized with ``lines=True`` and ``chunksize``, can be iterated over
    ``chunksize`` lines at a time. Otherwise, calling ``read`` reads in the
    whole document.

    A ``JsonReader`` is returned by :func:`~pandas.read_json` when
    ``chunksize`` is passed; it is not usually instantiated directly.

    Parameters
    ----------
    filepath_or_buffer : a str path, path object or file-like object
        Any valid string path is acceptable. The string could be a URL. Valid
        URL schemes include http, ftp, s3, and file. pandas accepts any
        ``os.PathLike``, or file-like object with a ``read()`` method, such
        as a file handle or ``StringIO``.
    orient : str
        Indication of expected JSON string format. Compatible JSON strings
        can be produced by ``to_json()`` with a corresponding orient value.
        See :func:`~pandas.read_json` for the set of possible orients.
    typ : {"frame", "series"}
        The type of object to recover.
    dtype : bool or dict
        If True, infer dtypes; if a dict of column to dtype, then use those;
        if False, then don't infer dtypes at all, applies only to the data.
    convert_axes : bool or None
        Try to convert the axes to the proper dtypes.
    convert_dates : bool or list of str
        If True then default datelike columns may be converted (depending on
        ``keep_default_dates``). If False, no dates will be converted. If a
        list of column names, then those columns will be converted and
        default datelike columns may also be converted (depending on
        ``keep_default_dates``).
    keep_default_dates : bool
        If parsing dates (``convert_dates`` is not False), then try to parse
        the default datelike columns. See :func:`~pandas.read_json` for the
        criteria used to determine whether a column label is datelike.
    precise_float : bool
        Set to enable usage of higher precision (strtod) function when
        decoding string to double values.
    date_unit : str or None
        The timestamp unit to detect if converting dates. The default
        behaviour is to try and detect the correct precision, but if this
        is not desired then pass one of 's', 'ms', 'us' or 'ns' to force
        parsing only seconds, milliseconds, microseconds or nanoseconds
        respectively.
    encoding : str or None
        The encoding to use to decode py3 bytes.
    lines : bool
        Read the file as a json object per line.
    chunksize : int or None
        Return a ``JsonReader`` for iteration, yielding ``chunksize`` lines
        at a time. Can only be passed if ``lines=True``. If this is None,
        the file will be read into memory all at once.
    compression : str or dict
        For on-the-fly decompression of on-disk data, see
        :func:`~pandas.read_json` for the accepted values.
    nrows : int or None
        The number of lines from the line-delimited json file that has to
        be read. Can only be passed if ``lines=True``. If this is None, all
        the rows will be returned.
    storage_options : dict, optional
        Extra options that make sense for a particular storage connection,
        e.g. host, port, username, password, etc. See
        :func:`~pandas.read_json` for more details.
    encoding_errors : str, optional, default "strict"
        How encoding errors are treated. `List of possible values
        <https://docs.python.org/3/library/codecs.html#error-handlers>`_ .
    dtype_backend : {"numpy_nullable", "pyarrow"}
        Back-end data type applied to the resultant :class:`DataFrame`
        (still experimental). See :func:`~pandas.read_json` for more
        details.
    engine : {"ujson", "pyarrow"}, default "ujson"
        Parser engine to use. See :func:`~pandas.read_json` for the
        restrictions on the ``"pyarrow"`` engine.

    See Also
    --------
    read_json : Convert a JSON string to pandas object.

    Examples
    --------
    >>> from io import StringIO
    >>> df = pd.DataFrame({"a": [1, 2], "b": [3, 4]})
    >>> reader = pd.read_json(
    ...     StringIO(df.to_json(orient="records", lines=True)),
    ...     lines=True,
    ...     chunksize=1,
    ... )
    >>> for chunk in reader:
    ...     print(chunk)
       a  b
    0  1  3
       a  b
    1  2  4
    Nrâ   rö   c                óö  — || _         || _        || _        || _        || _        || _        || _        |	| _        |
| _        || _	        || _
        || _        || _        || _        d| _        || _        || _        d | _        || _        | j                  dvrt'        d| j                  › d�«      ‚| j                  �Mt)        d| j                  d«      | _        | j                  st'        d«      ‚| j                  dk(  rt'        d	«      ‚| j                  �Mt)        d
| j                  d«      | _        | j                  st'        d«      ‚| j                  dk(  rt+        d«      ‚| j                  dk(  r| j                  st'        d«      ‚|| _        y | j                  dk(  rR| j/                  |«      }| j                  €-| j                  €!| 5  |j1                  «       | _        d d d «       y || _        y y # 1 sw Y   y xY w)Nr   >   rö   rø   zThe engine type z is currently not supported.rð   rÂ   z*chunksize can only be passed if lines=Truerø   z<currently pyarrow engine doesn't support chunksize parameterrë   z&nrows can only be passed if lines=Truez8currently pyarrow engine doesn't support nrows parameterzEcurrently pyarrow engine only supports the line-delimited JSON formatrö   )rX   rÛ   rN   rÜ   rÝ   rÞ   rß   r\   rá   rí   r_   rb   r^   rð   Ú
nrows_seenrë   rã   r�   rì   ry   r4   rˆ   r¶   Ú_get_data_from_filepathrþ   )r—   Úfilepath_or_bufferrX   rÛ   rN   rÜ   rÝ   rÞ   rß   r\   rá   r^   rð   r_   rë   rb   rã   rì   rí   r¶   s                       rO   r˜   zJsonReader.__init__`  sô  € ð* ˆŒØˆŒØˆŒ
Ø(ˆÔØ*ˆÔØ"4ˆÔØ*ˆÔØ"ˆŒØ ˆŒØˆŒØ&ˆÔØ.ˆÔØˆŒ
Ø"ˆŒØˆŒØˆŒ
Ø.ˆÔØ.2ˆŒØ*ˆÔà�;‰;Ð2Ñ2ÜØ" 4§;¡; -Ð/KÐLóð ð �>‰>Ð%Ü-¨k¸4¿>¹>È1ÓMˆDŒNØ—:’:Ü Ð!MÓNÐNØ�{‰{˜iÒ'Ü ØRóð ð �:‰:Ð!Ü)¨'°4·:±:¸qÓAˆDŒJØ—:’:Ü Ð!IÓJÐJØ�{‰{˜iÒ'Ü)ØNóð ð �;‰;˜)Ò#Ø—:’:Ü ð5óð ð +ˆD�IØ�[‰[˜GÒ#Ø×/Ñ/Ð0BÓCˆDð �~‰~Ð%¨$¯*©*Ð*<Øñ ,Ø $§	¡	£�D”I÷,ð ,ð !�•	ð $÷
,ð ,ús   ÇG/Ç/G8c                óÄ   — t        |«      }t        |d| j                  | j                  | j                  | j
                  ¬«      | _        | j                  j                  }|S )z«
        The function read_json accepts three input types:
            1. filepath (string-like)
            2. file-like object (e.g. open file object, StringIO)
        Úr)rá   r_   rb   Úerrors)r/   r-   rá   r_   rb   rã   r�   rŠ   )r—   r  s     rO   r  z"JsonReader._get_data_from_filepath®  s\   € ô ,Ð,>Ó?ÐÜ!ØØØ—]‘]Ø×(Ñ(Ø ×0Ñ0Ø×'Ñ'ô
ˆŒð "Ÿ\™\×0Ñ0ÐØ!Ð!rQ   c                óf   — ddj                  d„ |D «       D �cg c]  }|sŒ|‘Œ	 c}«      › d�S c c}w )zG
        Combines a list of JSON objects into one JSON object.
        ú[ú,c              3  ó<   K  — | ]  }|j                  «       –— Œ y ­wrS   )Ústrip)Ú.0Úlines     rO   ú	<genexpr>z,JsonReader._combine_lines.<locals>.<genexpr>Å  s   è ø€ Ò+K¸T¨D¯J©J¯LÑ+Kùs   ‚ú])Újoin)r—   r^   r  s      rO   Ú_combine_lineszJsonReader._combine_linesÀ  s6   € ð
 �—‘Ñ+KÀUÔ+KÖT 4Êtš$ÒTÓUÐVÐVWÐXð	
ùÚTs   ˜.
 .
c                 ó   — y rS   rT   r›   s    rO   rþ   zJsonReader.readÈ  s   € Ø?BrQ   c                 ó   — y rS   rT   r›   s    rO   rþ   zJsonReader.readË  s   € Ø=@rQ   c                 ó   — y rS   rT   r›   s    rO   rþ   zJsonReader.readÎ  s   € ØRUrQ   c                ó´   — | 5  | j                   dk(  r| j                  «       }n| j                   dk(  r| j                  «       }ddd«       S # 1 sw Y   S xY w)a�  
        Read the whole JSON input into a pandas object.

        Unlike iterating over the reader, this reads the entire underlying
        JSON input in a single call, regardless of whether ``chunksize``
        was specified when this reader was created.

        Returns
        -------
        DataFrame or Series
            The parsed pandas object, depending on the ``typ`` passed when
            this reader was created.

        See Also
        --------
        read_json : Convert a JSON string to pandas object.

        Examples
        --------
        >>> from io import StringIO
        >>> df = pd.DataFrame({"a": [1, 2], "b": [3, 4]})
        >>> reader = pd.read_json(
        ...     StringIO(df.to_json(orient="records", lines=True)),
        ...     lines=True,
        ...     chunksize=2,
        ... )
        >>> reader.read()
           a  b
        0  1  3
        1  2  4
        rø   rö   N)rí   Ú_read_pyarrowÚ_read_ujson©r—   rW   s     rO   rþ   zJsonReader.readÑ  sZ   € ðB ñ 	)Ø�{‰{˜iÒ'Ø×(Ñ(Ó*‘Ø—‘ Ò'Ø×&Ñ&Ó(�÷		)ð ˆ
÷	)ð ˆ
ús   ƒA AÁAc                óÔ  — t        d«      }d}t        | j                  t        «      rŒt        d«      }g }| j                  j	                  «       D ]>  \  }}t        |«      }t        |t        «      sŒ"|j                  ||j                  f«       Œ@ |j                  |«      }|j                  |d¬«      }|j                  | j                  |¬«      }	t        |	| j                  ¬«      }
|
S )z5
        Read JSON using the pyarrow engine.
        zpyarrow.jsonNrø   rf   )Úexplicit_schemaÚunexpected_field_behavior)Úparse_options©rì   )r   rL   rN   ræ   rç   r   r!   ÚappendÚpyarrow_dtyperË   ÚParseOptionsrñ   r¶   r*   rì   )r—   Úpyarrow_jsonÚoptionsÚpaÚfieldsrè   rN   Úpd_dtyperË   Úpa_tableÚdfs              rO   r  zJsonReader._read_pyarrowú  sÙ   € ô 2°.ÓAˆØˆä�d—j‘j¤$Ô'Ü+¨IÓ6ˆBØˆFØ $§
¡
× 0Ñ 0Ó 2ò C‘��uÜ'¨Ó.�Ü˜h¬
Õ3Ø—M‘M 5¨(×*@Ñ*@Ð"AÕBðCð
 —Y‘Y˜vÓ&ˆFØ"×/Ñ/Ø &À'ð 0ó ˆGð  ×)Ñ)¨$¯)©)À7Ð)ÓKˆÜ" 8¸4×;MÑ;MÔNˆàˆ	rQ   c                óÒ  — | j                   rå| j                  r:t        | «      }|rt        |«      }nÛ| j	                  | j                  g «      «      }nº| j                  �Lt        t        | j                  | j                  «      «      }| j                  |«      }| j	                  |«      }nbt        | j                  «      }|j                  d«      }| j	                  | j                  |«      «      }n| j	                  | j                  «      }| j                  t        j                  ur2t        dd«      5  |j                  | j                  ¬«      cddd«       S |S # 1 sw Y   yxY w)z3
        Read JSON using the ujson engine.
        Nú
úfuture.distinguish_nan_and_naFr  )r^   rð   Úlistr)   Ú_get_object_parserr  rë   r   r¶   r   rµ   rì   r   rä   r   Úconvert_dtypes)r—   ÚchunksrW   r^   Ú
lines_jsonr¶   Ú
data_liness          rO   r  zJsonReader._read_ujson  s*  € ð
 �:Š:Ø�~Š~Ü˜d›�ÙÜ  ›.‘Cà×1Ñ1°$×2EÑ2EÀbÓ2IÓJ‘CØ—‘Ð'ÜœV D§I¡I¨t¯z©zÓ:Ó;�Ø!×0Ñ0°Ó7�
Ø×-Ñ-¨jÓ9‘ä! $§)¡)Ó,�Ø!ŸZ™Z¨Ó-�
Ø×-Ñ-¨d×.AÑ.AÀ*Ó.MÓN‘à×)Ñ)¨$¯)©)Ó4ˆCØ×Ñ¤S§^¡^Ñ3ÜÐ ?ÀÓGñ LØ×)Ñ)¸×8JÑ8JÐ)ÓK÷Lñ Lð ˆJ÷Lð Lús   Ä5EÅE&c           	     ó¬  — | j                   }| j                  }| j                  | j                  | j                  | j                  | j
                  | j                  | j                  | j                  dœ}|dk(  rt        |fi |¤Žj                  «       S |dk(  r/t        |t        «      s||d<   t        |fi |¤Žj                  «       S t        d|›d�«      ‚)z>
        Parses a json document into a pandas object.
        )rX   rN   rÜ   rÝ   rÞ   rß   r\   rì   rF   rG   rN   ztyp=z must be 'frame' or 'series'.)rÛ   rN   rX   rÜ   rÝ   rÞ   rß   r\   rì   ÚFrameParserÚparserL   r§   ÚSeriesParserry   )r—   ÚjsonrÛ   rN   Úkwargss        rO   r-  zJsonReader._get_object_parser/  sÉ   € ð �h‰hˆØ—
‘
ˆà—k‘kØ—Z‘ZØ ×-Ñ-Ø!×/Ñ/Ø"&×"9Ñ"9Ø!×/Ñ/ØŸ™Ø!×/Ñ/ñ	
ˆð �'Š>Ü˜tÑ. vÑ.×4Ñ4Ó6Ð6Ø�HŠ_Ü˜e¤TÔ*Ø"'��w‘Ü Ñ/¨Ñ/×5Ñ5Ó7Ð7ä  ˜vÐ%BÐCÓDÐDrQ   c                óR   — | j                   �| j                   j                  «        yy)aœ  
        Close the underlying file handle, if one was opened by the reader.

        If an open stream or file-like object was passed to the reader
        rather than a path, it is left open and this method does not
        close it.

        See Also
        --------
        read_json : Convert a JSON string to pandas object.

        Examples
        --------
        >>> from io import StringIO
        >>> df = pd.DataFrame({"a": [1, 2], "b": [3, 4]})
        >>> reader = pd.read_json(
        ...     StringIO(df.to_json(orient="records", lines=True)),
        ...     lines=True,
        ...     chunksize=1,
        ... )
        >>> reader.close()
        N)r�   Úcloser›   s    rO   r9  zJsonReader.closeH  s#   € ð. �<‰<Ð#Ø�L‰L×ÑÕ ð $rQ   c                ó   — | S rS   rT   r›   s    rO   Ú__iter__zJsonReader.__iter__b  ó   € ØˆrQ   c                 ó   — y rS   rT   r›   s    rO   Ú__next__zJsonReader.__next__e  s   € ØCFrQ   c                 ó   — y rS   rT   r›   s    rO   r>  zJsonReader.__next__h  s   € ØADrQ   c                 ó   — y rS   rT   r›   s    rO   r>  zJsonReader.__next__k  s   € ð !rQ   c                ó6  — | j                   �Z| j                   | j                  z
  }|dk  r| j                  «        t        ‚| j                  €|}n#t        | j                  |«      }n| j                  }t        t        | j                  |«      «      }|s| j                  «        t        ‚	 | j                  |«      }| j                  |«      }t        | j                  | j                  t        |«      z   «      |_        | xj                  t        |«      z  c_        | j                  t         j"                  ur2t%        dd«      5  |j'                  | j                  ¬«      cd d d «       S |S # t        $ r}| j                  «        |‚d }~ww xY w# 1 sw Y   y xY w)Nr   r+  Fr  )rë   r  r9  ÚStopIterationrð   Úminr,  r   r¶   r  r-  Úranger   r`   Ú	Exceptionrì   r   rä   r   r.  )r—   Ú	remainingÚ
chunk_sizer^   r0  rW   Úexs          rO   r>  zJsonReader.__next__p  sW  € à�:‰:Ð!ØŸ
™
 T§_¡_Ñ4ˆIØ˜AŠ~Ø—
‘
”Ü#Ð#Ø�~‰~Ð%Ø&‘
ä  §¡°Ó;‘
àŸ™ˆJä”V˜DŸI™I zÓ2Ó3ˆÙØ�J‰JŒLÜÐð		Ø×,Ñ,¨UÓ3ˆJØ×)Ñ)¨*Ó5ˆCô ˜dŸo™o¨t¯©ÄÀSÃÑ/IÓJˆCŒIØ�OŠOœs 3›xÑ'�Oð
 ×Ñ¤S§^¡^Ñ3ÜÐ ?ÀÓGñ LØ×)Ñ)¸×8JÑ8JÐ)ÓK÷Lñ Lð ˆJøô ò 	Ø�J‰JŒLØˆHûð	ú÷
Lð Lús%   Â+A1E, ÅFÅ,	FÅ5FÆFÆFc                ó   — | S rS   rT   r›   s    rO   Ú	__enter__zJsonReader.__enter__”  r<  rQ   c                ó$   — | j                  «        y rS   )r9  )r—   Úexc_typeÚ	exc_valueÚ	tracebacks       rO   Ú__exit__zJsonReader.__exit__—  s   € ð 	�
‰
�rQ   )rÛ   rE   rÜ   úbool | NonerÞ   r§   rß   r§   r^   r§   rð   ú
int | Noner_   r9   rë   rQ  rb   úStorageOptions | Nonerã   r¥   rì   úDtypeBackend | lib.NoDefaultrí   r?   r©   rª   r¬   )r—   úJsonReader[Literal['frame']]r©   r"   )r—   úJsonReader[Literal['series']]r©   r%   )r—   z&JsonReader[Literal['frame', 'series']]r©   úDataFrame | Series©r©   rV  ©r©   r"   )r6  r“   r©   rV  r«   )r©   r   )rL  ztype[BaseException] | NonerM  zBaseException | NonerN  zTracebackType | Noner©   rª   )r®   r¯   r°   Ú__doc__r   rä   r˜   r  r  r   rþ   r  r  r-  r9  r;  r>  rJ  rO  rT   rQ   rO   rý   rý   ü  s}  „ ñ`ðd 26Ø&.Ø69·n±nØ$ð'L!ð ð	L!ð "ðL!ð !ðL!ð ðL!ð ðL!ð ðL!ð (ðL!ð ðL!ð  /ð!L!ð" $ð#L!ð$ 4ð%L!ð& ð'L!ð( 
ó)L!ò\"ó$
ð ÚBó ØBàÚ@ó Ø@àÚUó ØUó'óRó2ó8Eó2!ó4ð ÚFó ØFàÚDó ØDàð!Ø4ð!à	ò!ó ð!ó"óHðà,ðð (ðð (ð	ð
 
ôrQ   rý   c                  ó  — e Zd ZU ded<   ded<   dZdddd	dœZded
<   ddddddej                  f	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 dd„Ze	dd„«       Z
e	dd„«       Zdd„Ze	dd„«       Zd„ Ze		 	 	 d	 	 	 	 	 	 	 	 	 	 	 dd„«       Ze	dd„«       Zy)ÚParserztuple[str, ...]Ú_split_keysr“   r”   rq   i€3ál    ,b/ l    `'ºrl     F[L'€r6  NTFc
                ó`  — || _         |€| j                  }|| _        || _        |�K|j	                  «       }|| j
                  vrt        d| j
                  › �«      ‚| j                  |   | _        n| j                  d   | _        || _	        || _
        || _        || _        || _        |	| _        y )Nzdate_unit must be one of rr   )r6  r”   rX   rN   rå   Ú_STAMP_UNITSry   Ú_MIN_STAMPSÚ	min_stamprß   rÜ   rÝ   r\   rÞ   rì   )
r—   r6  rX   rN   rÜ   rÝ   rÞ   rß   r\   rì   s
             rO   r˜   zParser.__init__­  s¶   € ð ˆŒ	àˆ>Ø×)Ñ)ˆFàˆŒàˆŒ
àÐ Ø!Ÿ™Ó)ˆIØ × 1Ñ 1Ñ1Ü Ð#<¸T×=NÑ=NÐ<OÐ!PÓQÐQØ!×-Ñ-¨iÑ8ˆD�Nà!×-Ñ-¨cÑ2ˆDŒNà*ˆÔØ(ˆÔØ*ˆÔØ"ˆŒØ"4ˆÔØ*ˆÕrQ   c                ó¼   — t        |j                  «       «      j                  t        | j                  «      «      }|rdj	                  |«      }t        d|› �«      ‚y)zT
        Checks that dict has only the appropriate keys for orient='split'.
        z, z!JSON data had unexpected key(s): N)rÍ   ÚkeysÚ
differencer\  r  ry   )r—   ÚdecodedÚbad_keysÚbad_keys_joineds       rO   Úcheck_keys_splitzParser.check_keys_splitÑ  sT   € ô
 �w—|‘|“~Ó&×1Ñ1´#°d×6FÑ6FÓ2GÓHˆÙØ"Ÿi™i¨Ó1ˆOÜÐ@ÀÐ@QÐRÓSÐSð rQ   c                ó‚   — | j                  «       }| j                  r| j                  |«      }| j                  |«      }|S rS   )Ú_parserÜ   Ú_convert_axesÚ_try_convert_typesr  s     rO   r4  zParser.parseÛ  s;   € à�k‰k‹mˆà×ÒØ×$Ñ$ SÓ)ˆCØ×%Ñ% cÓ*ˆØˆ
rQ   c                ó   — t        | «      ‚rS   rš   r›   s    rO   ri  zParser._parseä  rœ   rQ   c                óü   — |j                   D ]l  }|j                  |«      }t        ||j                  d¬«      }| j	                  ||ddd¬«      \  }}|sŒHt        ||j                  d¬«      }t        |||«       Œn |S )z&
        Try to convert axes.
        F)rN   r€   T)ro   r¶   Ú
use_dtypesrÝ   Úis_axis)Ú_AXIS_ORDERSÚ	_get_axisr%   rN   Ú_try_convert_datar#   Úsetattr)r—   rW   Ú	axis_nameÚaxÚserÚnew_serÚresultÚnew_axiss           rO   rj  zParser._convert_axesç  s‹   € ð
 ×)Ñ)ò 	2ˆIØ—‘˜yÓ)ˆBÜ˜ 2§8¡8°%Ô8ˆCØ"×4Ñ4ØØØ Ø"Øð 5ó ‰OˆG�Vò Ü  °·±ÀEÔJ�Ü˜˜Y¨Õ1ð	2ð ˆ
rQ   c                ó   — t        | «      ‚rS   rš   r  s     rO   rk  zParser._try_convert_typesû  rœ   rQ   c                óö  — |}|rÄ| j                   s;t        t        |«      «      r|dfS |j                  t        j
                  «      }|dfS | j                   du rnnt        || j                  |«      sWt        | j                   t        «      r| j                   j                  |«      n| j                   }|�	 |j                  |«      dfS |r| j                  |«      }	|	|ur|	dfS d}
| j                  t         j"                  ur|s|dfS t%        |j                   «      r	 |j                  d«      }d}
|j                   j&                  dk(  r#|j                   dk7  r	 |j                  d«      }d}
t)        |«      r7|j                   dv r)	 |j                  d«      }	|	|k(  j                  «       r|	}d}
|j                   dk(  r#|j                   dk7  r	 |j                  d«      }d}
|dk(  rt)        |«      r| j,                  d	k(  r|dfS ||
fS # t        t        f$ r |dfcY S w xY w# t        t        f$ r Y �Œw xY w# t        t        f$ r Y ŒÛw xY w# t        t        t*        f$ r Y Œ³w xY w# t        t        f$ r Y Œ–w xY w)
zI
        Try to parse a Series into a column by inferring dtype.
        FTÚfloat64Úf)ÚfloatÚobjectÚint64r¦   r`   rµ   )rN   Úallr'   Úfillnar{   ÚnanÚ_should_convert_datesrÞ   rL   ræ   ÚgetÚastypeÚ	TypeErrorry   Ú_try_convert_to_daterì   r   rä   r   rK   r   r¡   rX   )r—   ro   r¶   rn  rÝ   ro  Úorg_dataÚfilledrN   Únew_dataÚ	converteds              rO   rr  zParser._try_convert_dataþ  s  € ð ˆáØ—:’:Ü”u˜T“{Ô#Ø ˜;Ð&àŸ™¤R§V¡VÓ,�à˜t�|Ð#ð
 —‘˜tÑ#ØÜ*Ø˜t×6Ñ6¸ôô
 -7°t·z±zÄ4Ô,H�D—J‘J—N‘N 4Ô(ÈdÏjÉjð ð Ð$ð+Ø#Ÿ{™{¨5Ó1°4Ð7Ð7ñ Ø×0Ñ0°Ó6ˆHØ˜tÑ#Ø �~Ð%àˆ	Ø×Ñ¤S§^¡^Ñ3¹Gà˜�:ÐÜ˜TŸZ™ZÔ(ðØ—{‘{ 9Ó-�Ø �	ð �:‰:�?‰?˜cÒ! d§j¡j°IÒ&=ðØ—{‘{ 9Ó-�Ø �	ô
 ˆtŒ9˜Ÿ™Ð':Ñ:ðØ#Ÿ?™?¨7Ó3�Ø Ñ$×)Ñ)Ô+Ø#�DØ $�Ið �:‰:˜Ò 4§:¡:°Ò#8ðØ—{‘{ 7Ó+�Ø �	ð
 �7Š?œs 4œyØ�{‰{˜gÒ%Ø˜U�{Ð"à�YˆÐøôi &¤zÐ2ò +Ø# U˜{Ò*ð+ûô" œzÐ*ò Úðûô œzÐ*ò Ùðûô œz¬=Ð9ò Ùðûô œzÐ*ò ÙðúsZ   Â6H ÄH! ÅH7 Æ(I ÇI& ÈHÈHÈ!H4È3H4È7I	ÉI	ÉI#É"I#É&I8É7I8c                óà  — t        |«      s|S |}|j                  dk(  s|j                  dk(  r	 |j                  d«      }t        |j                  j                  t        j                  «      rKt        |j                  «      || j                  kD  z  |j                  t        k(  z  }|j                  «       s|S |j                  dk(  rrdD ]k  }d}t        j                   d¬«      5 }t        j"                  d«       	 t%        |d	|¬
«      }ddd«       |€ŒK|dk7  rt)        |«      rŒ\t+        d¬«       |c S  |S | j,                  r| j,                  fn| j.                  }d}d}|D ]w  }	t        j                   d¬«      5 }t        j"                  d«       	 t%        |d	|	¬«      }|j0                  j3                  d«      }
d}ddd«       |€Œf|sŒit+        «       |} |S  |�#t)        |«      rt7        |«      rt+        «       |}|S # t        $ r |cY S t        t
        f$ r Y �Œäw xY w# t&        $ r Y �Œ*w xY w# 1 sw Y   �Œ0xY w# t4        t
        t        t        f$ r Y Œ w xY w# 1 sw Y   Œ¥xY w)z¡
        Try to parse an ndarray like into a date column.

        Try to coerce object in epoch/iso formats and integer/float in epoch
        formats.
        r  Ústringr€  )NÚISO8601ÚmixedNT)ÚrecordÚalwaysÚraise©r  Úformatr�  ©Úignore_user_warningsF)r  Úunitru   )r   rN   r†  r¡   r‡  ry   Ú
issubclassÚtyper{   Únumberr&   Ú_valuesr`  r   r�  rû   Úcatch_warningsÚsimplefilterr(   rE  Ú_is_default_filledÚ_reemit_parse_warningsr\   r^  rƒ   r„   r   Ú_parses_strict_iso8601)r—   r¶   r‹  Úin_ranger•  rŒ  r‘  Ú
date_unitsÚin_ns_boundsr\   Ú_s              rO   rˆ  zParser._try_convert_to_dateZ  s‡  € ô �4ŒyØˆKàˆà�>‰>˜XÒ%¨¯©¸8Ò)CðØŸ;™; wÓ/�ô �h—n‘n×)Ñ)¬2¯9©9Ô5ä�X×%Ñ%Ó&Ø˜dŸn™nÑ,ñ.à×#Ñ#¤tÑ+ñ-ð ð
 —<‘<”>Ø�à�>‰>˜XÒ%Ø4ò !�Ø �	Ü×,Ñ,°DÔ9ð ¸VÜ×)Ñ)¨(Ô3ðÜ$/°ÀÐQWÔ$X˜	÷ð Ð$ØØ˜YÒ&Ô+=¸iÔ+Hð Ü& vÀDÕIØ Ò ð!!ðp ˆðK /3¯nªn˜$Ÿ.™.Ñ*À$×BSÑBSˆJØˆIØ ˆLØ'ò !%�	Ü×,Ñ,°DÔ9ð ¸VÜ×)Ñ)¨(Ô3ðô
 %0Ø$¨W¸9ô%˜	ð &ŸL™L×0Ñ0°Ó6˜Ø'+˜÷ð& Ñ(ª\Ü*¨6Ô2Ø$�DØð ˆðE!%ð2 Ð(Ü*¨9Ô5Ü-¨hÔ7ô
 +¨6Ô2Ø$�DØˆøôQ !ò Ø’ÜœzÐ*ò Úðûô( %ò Úðú÷	ñ ûôD ,Ü"Ü%Ü!ð	ò ñ ðú÷ð úsk   ¯H Ã%H8Ã<H(Å>I$Æ+IÈH%ÈH%È$H%È(	H5È1H8È4H5È5H8È8I	ÉI!ÉI$É I!É!I$É$I-	)r6  r“   rN   úDtypeArg | NonerÜ   r§   rÝ   úbool | list[str]rÞ   r§   rß   r§   rì   rS  r©   rª   )rd  zdict[str, Any]r©   rª   rW  )rW   rV  r©   rV  )TTF)ro   r6   r¶   r%   rn  r§   rÝ   r§  ro  r§   r©   ztuple[Series, bool])r¶   r%   r©   r%   )r®   r¯   r°   r±   r^  r_  r   rä   r˜   r   rg  r4  ri  rj  rk  rr  rˆ  rT   rQ   rO   r[  r[     s\  … Ø Ó ØÓà*€LàØØØñ	€Kð ƒIð "&Ø!Ø*.Ø#(Ø#ØØ69·n±nð"+àð"+ð ð	"+ð
 ð"+ð (ð"+ð !ð"+ð ð"+ð 4ð"+ð 
ó"+ðH òTó ðTð òó ðó(ð òó ðò&(ð ð
  Ø*.ØðYàðYð ðYð ð	Yð
 (ðYð ðYð 
òYó ðYðv òXó ñXrQ   r[  c                ó–   — | j                   j                  dk7  ryt        | j                  j                  dk(  j                  «       «      S )a  
    Whether a speculative string date parse only succeeded by filling in defaults.

    GH#63473: ``to_datetime`` falls back to ``dateutil`` for strings it cannot
    match against a format, and ``dateutil`` takes the year absent from the
    string from ``datetime(1, 1, 1)``. Strings like ``"Jan"`` or ``"1st"`` parse
    that way, so accepting the result would silently turn ordinary labels into
    year 1 timestamps. Strings carrying only a time of day are filled from
    *today* instead and so are not caught here.

    A year-1 result is genuine when the strings parse under a strict ISO8601
    format, which rejects ``"Jan"`` outright; callers check that separately,
    either by having attempted ``format="ISO8601"`` themselves or via
    ``_parses_strict_iso8601``.
    ÚMFrÂ   )rN   rK   r§   rƒ   ÚyearÚany)rŒ  s    rO   rŸ  rŸ  ¶  s<   € ð  ‡�×Ñ˜sÒ"àÜ�—‘×"Ñ" aÑ'×,Ñ,Ó.Ó/Ð/rQ   c                óÎ   — t        j                  «       5  t        j                  d«       	 t        | dd¬«       	 ddd«       y# t        $ r Y ddd«       yw xY w# 1 sw Y   yxY w)a$  
    Whether every entry of ``data`` parses under a strict ISO8601 format.

    Used to tell a genuine out-of-nanosecond-bounds date apart from a
    default-filled parse on the object-dtype path, which -- unlike the
    string-dtype path -- does not attempt ``format="ISO8601"`` itself.
    Úignorer“  r�  r”  NFT)rû   r�  rž  r(   rE  )r¶   s    rO   r¡  r¡  Ì  si   € ô 
×	 Ñ	 Ó	"ñ ô 	×Ñ˜hÔ'ð	Ü˜ W°YÖ?÷ð øô ò 	Ø÷ð ð	ú÷ð ús(   •A¬AÁ	AÁAÁAÁAÁA$r–  c               ó´   — | D ]S  }|rt        |j                  t        «      rŒ t        j                  |j
                  |j                  t        «       ¬«       ŒU y)aˆ  
    Re-emit the warnings captured from a date parse ``_try_convert_to_date`` may
    discard.

    GH#50907: it parses the same values several ways and keeps at most one
    result. The quarterly-string deprecation asks the user to change a call, so
    it may only be emitted for the parse whose result they actually receive.
    Unrelated warnings keep the visibility they had before.
    rù   N)r™  ÚcategoryÚUserWarningrû   rü   Úmessager   )r‘  r—  Úwarnings      rO   r   r   ß  sJ   € ð ò 
ˆÙ¤J¨w×/?Ñ/?ÄÔ$MàÜ�‰Ø�O‰OØ×ÑÜ'Ó)ö	
ñ	
rQ   c                  ó$   — e Zd ZdZdZdd„Zdd„Zy)r5  r`   )ro   r`   r¶   c                ó  — t        | j                  | j                  ¬«      }| j                  dk(  rH|j	                  «       D ��ci c]  \  }}t        |«      |“Œ }}}| j                  |«       t        di |¤ŽS t        |«      S c c}}w )N©rß   rµ   rT   )r   r6  rß   rX   rç   r“   rg  r%   )r—   r¶   ÚkÚvrd  s        rO   ri  zSeriesParser._parseü  st   € Ü˜4Ÿ9™9°D×4FÑ4FÔGˆà�;‰;˜'Ò!Ø-1¯Z©Z«\×:¡T Q¨”s˜1“v˜q‘yÐ:ˆGÑ:Ø×!Ñ! 'Ô*ÜÑ$˜GÑ$Ð$ä˜$“<Ðùó	 ;s   ÁBc                óH   — | j                  d|| j                  ¬«      \  }}|S )Nr¶   ©rÝ   )rr  rÝ   )r—   rW   r¥  s      rO   rk  zSeriesParser._try_convert_types  s(   € Ø×'Ñ'¨°À4×CUÑCUÐ'ÓV‰ˆˆQØˆ
rQ   N)r©   r%   )rW   r%   r©   r%   ©r®   r¯   r°   r”   r\  ri  rk  rT   rQ   rO   r5  r5  ø  s   „ Ø€OØ+€Kó ôrQ   r5  c                  ó$   — e Zd ZdZdZdd„Zdd„Zy)r3  rk   )rk   r`   r¶   c                ó|  — | j                   }| j                  }|dk(  r¥t        || j                  ¬«      j	                  «       D ��ci c]  \  }}t        |«      |“Œ }}}| j                  |«       |d   D �cg c]  }t        |t        «      rt        |«      n|‘Œ! }}t        |t        |d «      «      |d<   t        d	dd i|¤ŽS |dk(  r-t        j                  t        || j                  ¬«      d d¬«      S |dk(  rt        || j                  ¬«      S t        t        || j                  ¬«      d ¬«      S c c}}w c c}w )
Nrµ   rµ  rk   rN   r`   )rN   rX   rn   rM   rT   )r6  rX   r   rß   rç   r“   rg  rL   r,  Útupler,   r.   r"   Ú	from_dictr2   )r—   r6  rX   r¶  r·  rd  rŽ   Ú
orig_namess           rO   ri  zFrameParser._parse  sO  € Ø�y‰yˆØ—‘ˆà�WÒô (¨¸D×<NÑ<NÔO×UÑUÓW÷á�A�qô �A“˜‘	ðˆGñ ð ×!Ñ! 'Ô*ð # 9Ñ-öàô  *¨#¬tÔ4”�s”¸#Ñ=ðˆJð ô "-ØÜ(¨°TÓ:ó"ˆG�IÑô Ñ3 4Ð3¨7Ñ3Ð3Ø�wÒÜ×&Ñ&Ü˜D°×0BÑ0BÔCØØôð ð
 �wÒÜ% d¸$×:LÑ:LÔMÐMô Ü˜D°×0BÑ0BÔCÈ4ôð ùó1ùò
s   ÁD3Á7$D9c           
     ó4  — g }|j                  «       D ]W  \  }}| j                  ||t        | j                  | j                  |¬«      ¬«      \  }}|j                  |j                  «       ŒY t        j                  ||j                  |j                  d¬«      S )N)rÞ   rŽ   r¹  F)Úverify_integrity)rç   rr  r„  rÝ   rÞ   r  Úarrayr"   Ú_from_arraysrk   r`   )r—   rW   ÚarraysÚ	col_labelrG   rx  r¥  s          rO   rk  zFrameParser._try_convert_types0  s•   € ØˆØ!$§¡£ò 
	(ÑˆI�vØ×.Ñ.ØØÜ3Ø×&Ñ&Ø'+×'>Ñ'>Ø!ôð /ó ‰IˆF�Að �M‰M˜&Ÿ,™,Õ'ð
	(ô ×%Ñ%Ø�C—K‘K §¡¸Uô
ð 	
rQ   NrX  )rW   r"   r©   r"   rº  rT   rQ   rO   r3  r3    s   „ Ø€OØ.€KóôB
rQ   r3  c                óà   — | du ryt        | t        «      s|t        | «      v ry|syt        |t        «      sy|j	                  «       }|j                  d«      s|dv s|j                  d«      ryy)zL
    Return bool whether a DataFrame column should be cast to datetime.
    FT)Ú_atÚ_time>   ÚdateÚdatetimeÚmodifiedÚ	timestamp)rL   r§   rÍ   r“   rå   ÚendswithÚ
startswith)rÝ   rÞ   rŽ   Ú	col_lowers       rO   r„  r„  B  sr   € ð ˜ÑàÜ˜¤tÔ,°¼¸MÓ8JÑ1JØÙØÜ˜œSÔ!ØØ—	‘	“€Ià×ÑÐ+Ô,ØÐ8Ñ8Ø×Ñ Ô,àØrQ   )rN   r<   r©   r§   )............)rV   z0FilePath | WriteBuffer[str] | WriteBuffer[bytes]rW   rD   rX   r¥   rY   r“   rZ   r¦   r[   r§   r\   r“   r]   r¨   r^   r§   r_   r9   r`   rP  ra   r¦   rb   rB   rc   úLiteral['a', 'w']r©   rª   )rV   rª   rW   rD   rX   r¥   rY   r“   rZ   r¦   r[   r§   r\   r“   r]   r¨   r^   r§   r_   r9   r`   rP  ra   r¦   rb   rB   rc   rÐ  r©   r“   )Nrp   é
   Trs   NFrf   Nr   Nrm   )rV   z7FilePath | WriteBuffer[str] | WriteBuffer[bytes] | NonerW   rD   rX   r¥   rY   r“   rZ   r¦   r[   r§   r\   r“   r]   r¨   r^   r§   r_   r9   r`   rP  ra   r¦   rb   rR  rc   rÐ  r©   r¥   r«   )&rV   ú.FilePath | ReadBuffer[str] | ReadBuffer[bytes]rX   r¥   rÛ   úLiteral['frame']rN   r¦  rÜ   rP  rÝ   ú bool | list[str] | lib.NoDefaultrÞ   úbool | lib.NoDefaultrß   r§   r\   r¥   rá   r¥   rã   r¥   r^   r§   rð   r¦   r_   r9   rë   rQ  rb   rB   rì   rS  rí   r?   r©   rT  )&rV   rÒ  rX   r¥   rÛ   úLiteral['series']rN   r¦  rÜ   rP  rÝ   rÔ  rÞ   rÕ  rß   r§   r\   r¥   rá   r¥   rã   r¥   r^   r§   rð   r¦   r_   r9   rë   rQ  rb   rB   rì   rS  rí   r?   r©   rU  )&rV   rÒ  rX   r¥   rÛ   rÖ  rN   r¦  rÜ   rP  rÝ   rÔ  rÞ   rÕ  rß   r§   r\   r¥   rá   r¥   rã   r¥   r^   r§   rð   rª   r_   r9   rë   rQ  rb   rB   rì   rS  rí   r?   r©   r%   )&rV   rÒ  rX   r¥   rÛ   rÓ  rN   r¦  rÜ   rP  rÝ   rÔ  rÞ   rÕ  rß   r§   r\   r¥   rá   r¥   rã   r¥   r^   r§   rð   rª   r_   r9   rë   rQ  rb   rB   rì   rS  rí   r?   r©   r"   )&rV   rÒ  rX   r¥   rÛ   zLiteral['frame', 'series']rN   r¦  rÜ   rP  rÝ   rÔ  rÞ   rÕ  rß   r§   r\   r¥   rá   r¥   rã   r¥   r^   r§   rð   rQ  r_   r9   rë   rQ  rb   rR  rì   rS  rí   r?   r©   z$DataFrame | Series | JsonReader[Any])rŒ  r%   r©   r§   )r¶   r%   r©   r§   )r‘  zlist[warnings.WarningMessage]r—  r§   r©   rª   )rÝ   r§  rÞ   r§   rŽ   r6   r©   r§   )rÚ
__future__r   r   r   r   ÚcollectionsÚ	itertoolsr   Útypingr   r	   r
   r   r   r   r   r   rû   Únumpyr{   Úpandas._configr   Úpandas._libsr   Úpandas._libs._ujsonr   r   Úpandas._libs.tslibsr   Úpandas.compat._optionalr   Úpandas.errorsr   r   r   Úpandas.util._decoratorsr   Úpandas.util._exceptionsr   Úpandas.util._validatorsr   Úpandas.core.dtypes.commonr   r   r   Úpandas.core.dtypes.dtypesr   r    rõ   r!   r"   r#   r$   r%   r&   r'   r(   Úpandas.core.reshape.concatr)   Úpandas.io._utilr*   Úpandas.io.commonr+   r,   r-   r.   r/   Úpandas.io.json._normalizer0   Úpandas.io.json._table_schemar1   r2   r3   Úpandas.io.parsers.readersr4   Úcollections.abcr5   r6   r7   Útypesr8   Úpandas._typingr9   r:   r;   r<   r=   r>   r?   r@   rA   rB   rC   Úpandas.core.genericrD   rE   rP   rd   r’   r†   r‡   r…   rê   rñ   rä   ÚIteratorrý   r[  rŸ  r¡  r   r5  r3  r„  rT   rQ   rO   ú<module>rò     sw	  ðÝ "÷õ Ý ÷	÷ 	ó 	ó ã å )å ÷õ %Ý >÷ñ õ
 /Ý 4Ý 7÷ñ ÷
÷
	÷ 	ó 	õ .å 1÷õ õ ?÷ñ õ
 7á÷ñ õ
 $÷÷ ÷ ñ õ ,áÐ+°7Ð;LÑ3MÔN€ó	Eð 
ð ØØØØØ@CØØ&)ØØØ&)Ø!ðØAðà	ðð ðð ð	ð
 ðð ðð ðð >ðð ðð $ðð ðð ðð $ðð ðð 
òó 
ðð$ 
ð ØØØØØ@CØØ&)ØØØ&)Ø!ðØðà	ðð ðð ð	ð
 ðð ðð ðð >ðð ðð $ðð ðð ðð $ðð ðð 	òó 
ðð* ØØØØØ@DØØ&-ØØØ-1Ø!ðsØHðsà	ðsð ðsð ð	sð
 ðsð ðsð ðsð >ðsð ðsð $ðsð ðsð ðsð +ðsð ðsð ósôl<.ˆSô <.ô~X�6ô Xô�&ô ô<Q9�kô Q9ðhE#ð 
óE#ðP 
ð ØØ Ø #Ø69Ø/2ØØØØ"%Øà&)ØØ&)Ø25Øñ''Ø?ð'ð ð'ð 
ð	'ð
 ð'ð ð'ð 4ð'ð -ð'ð ð'ð ð'ð ð'ð  ð'ð ð'ð ð'ð $ð'ð  ð!'ð" $ð#'ð$ 0ð%'ð& ð''ð( "ò)'ó 
ð'ð. 
ð à Ø #Ø69Ø/2ØØØØ"%Øà&)ØØ&)Ø25Øñ'(Ø?ð(ð ð(ð 
ð	(ð
 ð(ð ð(ð 4ð(ð -ð(ð ð(ð ð(ð ð(ð  ð(ð ð(ð ð(ð $ð(ð  ð!(ð" $ð#(ð$ 0ð%(ð& ð'(ð( #ò)(ó 
ð(ð. 
ð à Ø #Ø69Ø/2ØØØØ"%ØØØ&)ØØ&)Ø25Øñ'Ø?ðð ðð 
ð	ð
 ðð ðð 4ðð -ðð ðð ðð ðð  ðð ðð ðð $ðð  ð!ð" $ð#ð$ 0ð%ð& ð'ð( ò)ó 
ðð. 
ð ØØ Ø #Ø69Ø/2ØØØØ"%ØØØ&)ØØ&)Ø25Øñ'Ø?ðð ðð 
ð	ð
 ðð ðð 4ðð -ðð ðð ðð ðð  ðð ðð ðð $ðð  ð!ð" $ð#ð$ 0ð%ð& ð'ð( ò)ó 
ðñ. ˆHÓð Ø&-Ø!Ø $Ø69·n±nØ/2¯~©~ØØ ØØ"*ØØ Ø&-ØØ-1Ø25·.±.Ø ñ'}"Ø?ð}"ð ð}"ð 
$ð	}"ð
 ð}"ð ð}"ð 4ð}"ð -ð}"ð ð}"ð ð}"ð ð}"ð  ð}"ð ð}"ð ð}"ð $ð}"ð  ð!}"ð" +ð#}"ð$ 0ð%}"ð& ð'}"ð( *ò)}"ó ð}"ñ@ ÐÓ ô`�—‘˜i¨&Ñ0Ñ1°7¸?Ñ3Kó `ó !ð`÷FSñ Sól0ó,ð, "'ñ
Ø)ð
ð ð
ð 
ó	
ô2�6ô ô&4
�&ô 4
ðnØ#ðàðð 
ðð 
ô	rQ   