
    Wh;                        d dl Zd dlZd dlmZmZmZmZmZm	Z	 d dlm
Z
mZmZmZmZ d dlmZmZ 	 d dlmZ n# e$ r  G d de          ZY nw xY wd Zg d	d
defffdddefffdddefffdddefffdddefffdddefffdddefffdddefffdddefffdddefffdddefffdddefffd d!defffd"d#defffd$d%defffd&d%defffd'd(defffd)d(defffd*d+defffd,d+defffd-d.defffd/d0defffd1d2defffd3d4defffd5d6defffd7d8defffd9d4defffd:d4defffd;ddefffd<ddefffd=ddefffd>ddefffd?d@defffdAdBdefffdCdDdefffdEdFdefffdGd(defffdHdIdefffdJdKdefffdLdMdefffdNdMdefffdOdPdefffdQdMdefffdRddefffdSddefffdTddefffdUdVdefffdWdXdefffdYddefffdZd[defffd\d]defffd^d_defffd`dadefffdbdcdefffdddedefffdfdgdefffdhdidefffdjdidefffdkddefffdlddefffdmddefffdnddefffdoddefffdpddefffdqdrde
fffdsddefffdtddefffdudde	fffdvdde	fffdwdde	fffdxdde	fffdydde	fffdzdde	fffd{dde	fffd|dde	fffd}dde	fffd~dde	fffddde	fffddde	fffddde	fffdddeefffdddeefffdddeefffdddeefffdddefffdddefffdddefffdddefffdddefffdddefffdddefffdddefffdddefffdddefffdddefffdddefffdddefffdddefffdddefffdddefffdddefffR ZeD ]\  ZZ eegeR   ej        j        dk    rddlmZmZ ej        j        dk    rddlmZmZ d Zd ZddZd Z d Z!ddZ"dS )    N)boolopcmpopexcepthandlerexprexpr_contextoperator)slicestmtunaryopmodAST)iter_child_nodeswalk)
TypeIgnorec                       e Zd ZdS )r   N)__name__
__module____qualname__     O/var/www/html/movieo_spanner_bot/venv/lib/python3.11/site-packages/gast/gast.pyr   r   
   s        r   r   c           
            fd}t          t          j        t                    t	           |d|i                     d S )Nc                    t          |          t          |          z   }|dt                    fv s,J d                    |t                                          | _        | _        t	          | j        |          D ]\  }}t          | ||           |                                D ]8\  }}|v sJ d                    |                      t          | ||           9d S )Nr   z,Bad argument number for {}: {}, expecting {}z#Invalid Keyword argument for {}: {})lenformat_fields_attributeszipsetattritems)	selfargskwargsnbparamargnameargval
AttributesFieldsNames	         r   create_nodez_make_node.<locals>.create_node   s   d))c&kk)1c&kk****:F4#f++.. +** %"4<66 	+ 	+OGVD'6****%||~~ 	+ 	+OGVf$$$9@@wOO %$$D'6****	+ 	+r   __init__)r   _sysmodulesr   type)r)   r(   r'   Basesr*   s   ```  r   
_make_noder0      sl    + + + + + + + DL"k*, ,- - - - -r   Module)bodytype_ignoresr   Interactive)r2   
ExpressionFunctionType)argtypesreturnsSuiteFunctionDef)namer"   r2   decorator_listr8   type_commentlineno
col_offset
end_linenoend_col_offsetAsyncFunctionDefClassDef)r;   baseskeywordsr2   r<   Return)valueDelete)targetsAssign)rJ   rH   	AugAssign)targetoprH   	AnnAssign)rM   
annotationrH   simplePrint)destvaluesnlFor)rM   iterr2   orelser=   AsyncForWhile)testr2   rX   IfWith)r    r2   r=   	AsyncWithRaise)exccauseTry)r2   handlersrX   	finalbodyAssert)r[   msgImport)names
ImportFrom)modulerh   levelExec)r2   globalslocalsGlobalNonlocalExprPassBreakContinueBoolOp)rN   rT   BinOp)leftrN   rightUnaryOp)rN   operandLambda)r"   r2   IfExpDict)keysrT   Set)eltsListComp)elt
generatorsSetCompDictComp)keyrH   r   GeneratorExpAwaitYield	YieldFromCompare)rw   opscomparatorsCall)funcr"   rF   ReprFormattedValue)rH   
conversionformat_spec	JoinedStr)rT   Constant)rH   kind	Attribute)rH   attrctx	Subscript)rH   r	   r   Starred)rH   r   r)   )idr   rP   r=   List)r   r   TupleLoadStoreDelAugLoadAugStoreParamSlice)lowerupperstepAndOrAddSubMultMatMultDivModPowLShiftRShiftBitOrBitXorBitAndFloorDivInvertNotUAddUSubEqNotEqLtLtEGtGtEIsIsNotInNotIncomprehension)rM   rW   ifsis_asyncExceptHandler)r.   r;   r2   	arguments)r"   posonlyargsvararg
kwonlyargskw_defaultskwargdefaultskeyword)argrH   alias)r;   asnamewithitem)context_exproptional_varstype_ignore)r?   tag      )ast_to_gastgast_to_ast   c                  >    t          t          j        | i |          S N)r   _astparse)r"   r#   s     r   r   r   +  s    tz42622333r   c                 r    t          | t                    rt          |           } t          j        |           S r   )
isinstancer   r   r   literal_eval)node_or_strings    r   r   r   /  s2    .#&& 5$^44^,,,r   Tc                    t          | t          t          t          f          st	          d| j        j        z            | j        rt          | j        d         t                    rt          | j        d         j	        t                    ra|rDdd l}| j        d         j	        }|                    t          ||j        d                             S | j        d         j	        j        S d S d S d S )Nz%r can't have docstringsr   )r   r:   rD   r1   	TypeError	__class__r   r2   rq   rH   r   inspectcleandocgetattrr   s)nodecleanr   holders       r   get_docstringr   5  s    d[(F;<< N2T^5LLMMMy $Z	!d33 $$)A,$h//$ 	HNNNYq\'F##GFFN14E$F$FGGGy|!##$ $ $ $ $ $r   c           	          dD ]C}||j         v r8|| j         v r/t          ||          rt          | |t          ||                     D| S )z
    Copy source location (`lineno`, `col_offset`, `end_lineno`, and
    `end_col_offset` attributes) from *old_node* to *new_node* if possible,
    and return *new_node*.
    r>   )r   hasattrr   r   )new_nodeold_noder   s      r   copy_locationr   C  sd     G = =8'''DH4H,H,Hx&& -IHdGHd$;$;<<<Or   c                 0    fd | dddd           | S )a{  
    When you compile a node tree with compile(), the compiler expects lineno
    and col_offset attributes for every node that supports them.  This is
    rather tedious to fill in for generated nodes, so this helper adds these
    attributes recursively where not already set, by setting them to the values
    of the parent node.  It works recursively starting at *node*.
    c                    d| j         v rt          | d          s|| _        n| j        }d| j         v rt          | d          s|| _        n| j        }d| j         v rt          | d          s|| _        n| j        }d| j         v rt          | d          s|| _        n| j        }t          |           D ]} |||||           d S )Nr?   rA   r@   rB   )r   r   r?   rA   r@   rB   r   )r   r?   r@   rA   rB   child_fixs         r   r   z#fix_missing_locations.<locals>._fixX  s   t'''4** %$4+++4.. -",!_
4+++4.. -",!_
t///4!122 5&4##!%!4%d++ 	H 	HED
JGGGG	H 	Hr   r   r   r   )r   r   s    @r   fix_missing_locationsr   P  s@    H H H H H. 	Dq!QKr   c                     t          |           D ]J}d|j        v rt          |dd          pd|z   |_        d|j        v rt          |dd          pd|z   |_        K| S )z
    Increment the line number and end line number of each node in the tree
    starting at *node* by *n*. This is useful to "move code" to a different
    location in a file.
    r?   r   rA   )r   r   r   r?   rA   )r   nr   s      r   increment_linenor   s  sx     d J Ju(((#E8Q77<1AEL5,,, '|Q ? ? D1IEKr   )T)r   )#sysr,   astr   r   r   r   r   r   r   r	   r
   r   r   r   r   r   r   ImportErrorr0   _nodesr;   descrversion_infomajorast2r   r   ast3r   r   r   r   r   r   r   r   r   <module>r     s2           J J J J J J J J J J J J J J J J . . . . . . . . . . . . . . & & & & & & & &       S     
- - -,|
("sf56|
 YSF+,|
 IrC6*+	|

 -rC6:;|
 y"sf%&|
  &NW |
  +<'# $|
& JK' '|
, 
I -|
2 I 3|
8 %I 9|
> -L7 ?|
D ?L7 E|
J (Hw K|
P AFW Q|
V FK' W|
\ *Hw ]|
b 
'EG c|
h /Gg i|
n 4L7 o|
t  Hw u|
z 9FW {|
@  I A|
F 
I G|
L 1MG M|
R ,Gg S|
X 
I Y|
^ *K' _|
d jGg e|
j bKg k|
n rLw o|
r "K' s|
~ !I |
D 'Hw E|
J #J K|
P !I Q|
V *Hw W|
\ !Gg ]|
b YFW c|
h (K' i|
n 'J o|
t 1K' u|
z ,8g  {|
B zHw C|
H zHw I|
N :L7 O|
T 0J U|
Z +Gg [|
` jGg a|
f ?:! "g|
n ;L7 o|
t #K' u|
z ,L7 {|
@ -L7 A|
F "J G|
L 9Gg M|
R Gg S|
X Hw Y|
b b"|o&'c|
d r2'(e|
f Rl_%&g|
h R,)*i|
j "b</*+k|
l r2'(m|
r )Hx s|
| RfY }|
~ 
BVI|
D Rh[!"E|
F Rh[!"G|
H b"xk"#I|
J R(%&K|
L Rh[!"M|
N Rh[!"O|
P Rh[!"Q|
R B$%S|
T B$%U|
V r2{#$W|
X B$%Y|
Z B$%[|
\ "b8+&']|
b B#()c|
d Rgs_%&e|
f b"wo&'g|
h b"wo&'i|
n 
BUHo|
p r2x !q|
r 
BUHs|
t ReXu|
v 
BUHw|
x ReXy|
z 
BUH{|
| r2x !}|
~ 
BUH|
@ r2x !A|
F <b3&IJG|
L /8%') *M|
X  89;cVE FY|
` !I a|
j !2v./k|
p 3R#@Aq|
v R*ZM:;w|
 |
|   KD%Jtea........a........4 4 4- - -	$ 	$ 	$ 	$
 
 
     F     s   7 AA