+
     h  c            	       s   ^ RI Ht ^ RIHtHt ^ RIHtHtHtH	t	 ^RI
Ht ^RIHtHt  ! R R4      t]R8X  d   ^ R	It^ R	It]P&                  ! R
R7      t]P+                  RRRR7       ]P+                  RRR]R^R7       ]P/                  4       t^ RIHt ]! 4       t]! RR7      t ]P:                  R8X  d   ]P<                  P?                  4       t M!]! ]P:                  4      PC                  4       t  ]PI                  ]! ] ]PL                  R7      RR7       R	# R	#   ]" d?   t#]PI                  R]P:                  : R]# 24       ]PJ                  ! R4        R	t#A#LiR	t#A#ii ; i)i    )Path)loadsdumps)AnyCallableOptionalUnionText)JSONHighlighterNullHighlighterc                   sl   a  ] tR t^	t o RtR
V 3R lR llt]R
V 3R lR ll4       tV 3R lR ltR	t	V t
R# )JSONa/  A renderable which pretty prints JSON.

Args:
    json (str): JSON encoded data.
    indent (Union[None, int, str], optional): Number of characters to indent by. Defaults to 2.
    highlight (bool, optional): Enable highlighting. Defaults to True.
    skip_keys (bool, optional): Skip keys not of a basic type. Defaults to False.
    ensure_ascii (bool, optional): Escape all non-ascii characters. Defaults to False.
    check_circular (bool, optional): Check for circular references. Defaults to True.
    allow_nan (bool, optional): Allow NaN and Infinity values. Defaults to True.
    default (Callable, optional): A callable that converts values that can not be encoded
        in to something that can be JSON encoded. Defaults to None.
    sort_keys (bool, optional): Sort dictionary keys. Defaults to False.
Nc                s   < V ^8  d   QhRS[ RS[RS[S[ 3,          RS[RS[RS[RS[RS[R	S[S[S[.S[3,          ,          R
S[RR/
# )   jsonindentN	highlight	skip_keysensure_asciicheck_circular	allow_nandefault	sort_keysreturn)strr   intboolr   r   r   Zformat__classdict__   ":/usr/lib/python3.14/site-packages/pip/_vendor/rich/json.py__annotate__JSON.__annotate__   s     " "" dCn%" 	"
 " " " " (C5#:./" " 
"    c
                s    \        V4      p
\        V
VVVVVVV	R 7      pV'       d   \        4       M	\        4       pV! V4      V n        RV P                  n        RV P                  n        R# )r   Zskipkeysr   r   r   r   r   TN)r   r   r	   r
   textno_wrapoverflow)selfr   r   r   r   r   r   r   r   r   datahighlighters   &&&&&&&&&&  r   __init__ZJSON.__init__   sd     T{%)	
 ,5o'/:K%	 		!		r    c                s   < V ^8  d   QhRS[ RS[RS[S[3,          RS[RS[RS[RS[RS[R	S[S[S[ .S[ 3,          ,          R
S[RR/
# )r   r&   r   Nr   r   r   r   r   r   r   r   r   )r   r   r   r   r   r   r   r   r   r   r   r   6   s     - -- dCn%- 	-
 - - - - (C5#:./- - 
-r    c
                s    V P                  V 4      p
\        VVVVVVVV	R7      pV'       d   \        4       M	\        4       pV! V4      V
n        RV
P                  n        RV
P                  n        V
# )a  Encodes a JSON object from arbitrary data.

Args:
    data (Any): An object that may be encoded in to JSON
    indent (Union[None, int, str], optional): Number of characters to indent by. Defaults to 2.
    highlight (bool, optional): Enable highlighting. Defaults to True.
    default (Callable, optional): Optional callable which will be called for objects that cannot be serialized. Defaults to None.
    skip_keys (bool, optional): Skip keys not of a basic type. Defaults to False.
    ensure_ascii (bool, optional): Escape all non-ascii characters. Defaults to False.
    check_circular (bool, optional): Check for circular references. Defaults to True.
    allow_nan (bool, optional): Allow NaN and Infinity values. Defaults to True.
    default (Callable, optional): A callable that converts values that can not be encoded
        in to something that can be JSON encoded. Defaults to None.
    sort_keys (bool, optional): Sort dictionary keys. Defaults to False.

Returns:
    JSON: New JSON object from the given data.
r!   TN)Z__new__r   r	   r
   r"   r#   r$   )Zclsr&   r   r   r   r   r   r   r   r   Zjson_instancer   r'   s   &&&&&&&&&&   r   	from_dataZJSON.from_data5   st    > !$C 0%)	
 ,5o'/:K(.%)"&*#r    c                s    < V ^8  d   QhRS[ /# )r   r   r   r   r   r   r   r   e   s      $ r    c                s    V P                   # )Nr"   )r%   s   &r   __rich__ZJSON.__rich__e   s    yyr    r*   )r   TFFTTNF)__name__Z
__module__Z__qualname__Z__firstlineno__Z__doc__r(   Zclassmethodr)   r+   Z__static_attributes__Z__classdictcell__)r   s   @r   r   r   	   s8     " "8 - - -^ r    r   Z__main__NzPretty print json)ZdescriptionpathZPATHzpath to file, or - for stdin)metavarhelpz-iz--indentZSPACESzNumber of spaces in an indent)r.   Ztyper/   r   )ConsoleT)ZstderrZ-zUnable to read z; )r   )Z	soft_wrapi)'Zpathlibr    r   r   r   Ztypingr   r   r   r   r"   r   r'   r	   r
   r   r,   ZargparseZsysZArgumentParserZparserZadd_argumentr   Z
parse_argsZargsZpip._vendor.rich.consoler0   ZconsoleZerror_consoler-   ZstdinZreadZ	json_dataZ	read_textZ	ExceptionZerrorZprintZexitr   ) r    r   <module>r1      sD     1 1  9] ]@ z$$1DEF
+  
 ,   D0iG4(M99		(ITYY113I
 MM$y5MFE <  odii]"UGDEs   '+D  D E"$4EE"