+
    i              	          ^ 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)    )Path)loadsdumps)AnyCallableOptionalUnionText)JSONHighlighterNullHighlighterc                   l   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                   < 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   )format__classdict__s   "\/home/wkmabra/.openclaw/workspace/venv/lib/python3.14/site-packages/pip/_vendor/rich/json.py__annotate__JSON.__annotate__   s     " "" dCn%" 	"
 " " " " (C5#:./" " 
"    c
                    \        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   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__JSON.__init__   sd     T{%)	
 ,5o'/:K%	 		!		r$   c                   < 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    s   "r!   r"   r#   6   s     - -- dCn%- 	-
 - - - - (C5#:./- - 
-r$   c
                    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)__new__r   r   r   r(   r)   r*   )clsr,   r   r   r   r   r   r   r   r   json_instancer   r-   s   &&&&&&&&&&   r!   	from_dataJSON.from_data5   st    > !$C 0%)	
 ,5o'/:K(.%)"&*#r$   c                    < V ^8  d   QhRS[ /# )r   r   r
   )r   r    s   "r!   r"   r#   e   s      $ r$   c                    V P                   # )Nr(   )r+   s   &r!   __rich__JSON.__rich__e   s    yyr$   r9   )r   TFFTTNF)__name__
__module____qualname____firstlineno____doc__r.   classmethodr5   r:   __static_attributes____classdictcell__)r    s   @r!   r   r   	   s8     " "8 - - -^ r$   r   __main__NzPretty print json)descriptionpathPATHzpath to file, or - for stdin)metavarhelpz-iz--indentSPACESzNumber of spaces in an indent)rH   typerI   r   )ConsoleT)stderr-zUnable to read z; )r   )	soft_wrap)'pathlibr   r   r   r   typingr   r   r   r	   r(   r   r-   r   r   r   r<   argparsesysArgumentParserparseradd_argumentr   
parse_argsargspip._vendor.rich.consolerL   consoleerror_consolerF   stdinread	json_data	read_text	Exceptionerrorprintexitr    r$   r!   <module>rf      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"