+
     Bi                     	   ^ RI t ^ RIt^ RIt^ RIt^ RIt^ RIt ^ RItARt ^ RI	t	A	Rt
 ^ RItARt ^ RIHt ARt] P                   R8H  tR;tt] P                   R8X  d   ^ RItM]'       d   ^ RIt]P(                  R8X  d   ^ RItMRt]'       d   RqMRrt]! ] R4      ;'       d    ]P(                  P1                  Rs4      s]! ] R	4      t];'       d
    ]! ]R
4      tRt. RtOt ! R R]4      t ! R R]4      t  ! R R]4      t! ! R R]4      t" ! R R]#4      t$ ! R R]#4      t%R t&R t'R t(R t)]3R lt*RuR lt+R t,R t-R  t.R!R/R" lt/R!R/R# lt0]! ] R$4      '       d	   R!R/R% lt1MR& t1R!R/R' lt2R!R/R( lt3R!R/R) lt4R* t5RvR+ lt6RR]4RR3R, lt7]! ] Pp                  R-4      '       d   R. t9MR/ t9R0 t:R1 t;R2 t<] Pz                  ] P                  ] P|                  ] P~                  0] P                  8*  ;'       d;    ] P                  ] P                  9   ;'       d    ] P                  ] P                  9   tD]D'       d   ];M]:tERwR3RR4R/R5 lltF]D]FnG        R6 tH]43R7 ltIR8 tJR9 tKR: tLR; tMRxR< ltNRyR= ltOR]NnP        R]OnP        R>]NRz.R?3/tQ]'       d   ]NR{.R@3]QRA&   ]O. RB3]QRC&   ]
'       d
   ]NR|.RD3]QRE&   ]'       d
   ]NR}.RF3]QRG&   ]'       d
   ]NR~.RH3]QRI&   RJ tRRRK ltSRL tTRRM ltURN tVRO tWRRP ltXRQ tYRR tZRS t[RTR/RU lt\R>RV.]\. R?3RCRW.][. RB3/t]]'       d   RXRY.]\. R@3]]RA&   ]
'       d   RZR[.]\. RD3]]RE&   ]'       d   R\R].]\. RF3]]RG&   ]'       d   R^R_.]\. RH3]]RI&   R` t^RRTR/Ra llt_]! ] Rb4      '       d\   ]P                  Rc4       ]P                  ! RdRe4      tbRf]bP                  nd        Rg]bP                  nd        Rh]bP                  nd        Ri tgM/]'       d(   ]P                  Rc4       ]P                  ! RdRe4      tbRj tgRR4RR!R/Rk llthRRl ltiRm tjRn tk] P                  ] P                  ,          R3Ro ltnRp toR#   ] d    Rt EL,i ; i  ] d    Rt
 EL4i ; i  ] d    Rt EL<i ; i  ] d    Rt ELBi ; i)    NTF)zstdntposixwin32sendfilecopy_file_range
_fcopyfilez%.COM;.EXE;.BAT;.CMD;.VBS;.JS;.WS;.MSCErrorSpecialFileErrorSameFileErrorc                       ] tR t^KtRtR# )r
    N__name__
__module____qualname____firstlineno____static_attributes__r       /usr/lib/python3.14/shutil.pyr
   r
   K       r   c                       ] tR t^NtRtR# )r   r   Nr   r   r   r   r   r   N   r   r   c                       ] tR t^QtRtR# )r   r   Nr   r   r   r   r   r   Q   r   r   c                       ] tR t^VtRtR# )	ReadErrorr   Nr   r   r   r   r   r   V   r   r   r   c                       ] tR t^YtRtR# )RegistryErrorr   Nr   r   r   r   r   r   Y   r   r   r   c                       ] tR t^]tRtR# )_GiveupOnFastCopyr   Nr   r   r   r   r   r   ]   r   r   r   c                     V P                  4       pVP                  4       p \        P                  ! Y4T4       R #   \         d   p\        T4      hR p?ii ; i  \
         de   pT P                  Tn        TP                  Tn        TP                  \        P                  \        P                  09   d   \        T4      hTR hR p?ii ; iN)fileno	Exceptionr   r   r	   OSErrornamefilename	filename2errnoEINVALENOTSUP)fsrcfdstflagsinfdoutfderrs   &&&   r   _fastcopy_fcopyfiler1   b   s    %{{} e,	  %$$%
   yy		99u}}55#C((4 s-    < A AAAC	%ACC	c                      \        \        P                  ! V 4      P                  R4      p\
        P                  R8  d   \        VR4      pV#   \         d    Rp L2i ; i)   i   i   l        i   @)maxosfstatst_sizer$   sysmaxsizemin)r.   	blocksizes   & r   #_determine_linux_fastcopy_blocksizer<   v   sW    ..8	
 {{W	7+	  	s   *A AAc                 B    V P                  4       pVP                  4       p\        T4      p^ p  \        P
                  ! Y#YVR7      pT^ 8X  d   T^ 8X  d   \        4       hR # Yg,          pK>    \         d   p\        T4      hR p?ii ; i  \         d   pT P                  Tn        TP                  Tn	        TP                  \        P                  8X  d   TR hT^ 8X  d7   \        P                  ! T^ \        P                  4      ^ 8X  d   \        T4      hThR p?ii ; i)N)
offset_dst)r"   r#   r   r<   r5   r   r$   r%   r&   r'   r(   ENOSPClseekSEEK_CUR)r+   r,   r.   r/   r0   r;   offsetn_copieds   &&      r   _fastcopy_copy_file_rangerD      s    %{{} 4D9IF
	))$yTH 1} Q;+--F;  %$$%  	99CL IICMyyELL(t# {rxxq"++>!C',,I	s/    A- B -B8BBDBDDc                 v    V P                  4       pVP                  4       p\        T4      p^ p  \        P
                  ! Y2Ye4      pT^ 8X  d   R # Yg,          pK,    \         d   p\        T4      hR p?ii ; i  \         d   pT P                  Tn        TP                  Tn	        TP                  \        P                  8X  d   Rs\        T4      hTP                  \        P                  8X  d   TR hT^ 8X  d7   \        P                  ! T^ \        P                  4      ^ 8X  d   \        T4      hThR p?ii ; i)NF)r"   r#   r   r<   r5   r   r$   r%   r&   r'   r(   ENOTSOCK_USE_CP_SENDFILEr?   r@   rA   )r+   r,   r.   r/   r0   r;   rB   sents   &&      r   _fastcopy_sendfilerI      s	   %{{} 4D9IF
	;;uF>D, qyNF?  %$$%  	99CL IICMyyENN* $) ',,yyELL(t# {rxxq"++>!C',,I'	s/    A A9 A6&A11A69D8B/D33D8c           	      P   V P                   pVP                  p\        \        V4      4      ;_uu_ 4       p V! V4      pV'       g   M/Wb8  d    VRV ;_uu_ 4       pV! V4       RRR4       M
V! V4       KA  RRR4       R#   + '       g   i     L%; i  + '       g   i     R# ; i)TN)readintowrite
memoryview	bytearray)r+   r,   lengthfsrc_readinto
fdst_writemvnsmvs   &&&     r   _copyfileobj_readintorU      s     MMMJ	If%	&	&"b!AVVssO 2 
'	& V 
'	&	&s)   BB	B	$BBBB%	c                     V'       g   \         pV P                  pVP                  pV! V4      ;p'       d   V! V4       K  R # r!   )COPY_BUFSIZEreadrL   )r+   r,   rO   	fsrc_readrQ   bufs   &&&   r   copyfileobjr[      s8    		IJ6"
"#
"3 #r   c                    \        V \        P                  4      '       dd   \        \        P                  R 4      '       dD    \        P                  P                  V P                  4       \        P                  ! V4      4      # \        \        P                  R4      '       d!    \        P                  P                  W4      # \        P                  P                  \        P                  P                  V 4      4      \        P                  P                  \        P                  P                  V4      4      8H  #   \         d     R# i ; i  \         d     R# i ; i)samestatFsamefile)
isinstancer5   DirEntryhasattrpathr]   statr$   r^   normcaseabspathsrcdsts   &&r   	_samefileri     s    #r{{##(D(D	77##CHHJ== rww
##	77##C--
 GGRWW__S12GGRWW__S123 4  		  		s%   AD= %E =EEEEc                     \        V \        P                  4      '       d   V P                  4       # \        P                  ! V 4      # r!   )r_   r5   r`   rc   fns   &r   _statrm     s+    "2r{{332779DDr   c                     \        V \        P                  4      '       d   V P                  4       # \        P                  P                  V 4      # r!   )r_   r5   r`   
is_symlinkrb   islinkrk   s   &r   _islinkrq     s0    (R[[992==?Qrww~~b?QQr   follow_symlinksc                N   \         P                  ! R W4       \        W4      '       d   \        RP	                  W4      4      h^ p\        W.4       F  w  rE \        V4      p\        P                  ! VP                  4      '       dA   \        V\        P                  4      '       d   VP                  MTp\        RV,          4      h\        '       d   V^ 8X  d   VP                   pK  K  K  	  V'       g?   \%        V 4      '       d.   \        P&                  ! \        P(                  ! V 4      V4       V# \+        V R4      ;_uu_ 4       p \+        VR4      ;_uu_ 4       p\,        '       d2    \/        Wx\0        P2                  4       VuuRRR4       uuRRR4       # \6        '       g   \8        '       d^   \8        '       d#    \;        Wx4       VuuRRR4       uuRRR4       # \6        '       d#    \=        Wx4       VuuRRR4       uuRRR4       # MC\        '       d8   V^ 8  d1   \?        Wx\A        V\B        4      4       VuuRRR4       uuRRR4       # \E        Wx4       RRR4       RRR4       T#   \"         d     EK0  i ; i  \4         d     L=i ; i  \4         d     Li ; i  \4         d     L_i ; i  + '       g   i     L`; i  \F         d;   p	\        P                  PI                  T4      '       g   \K        RT 24      T	hh Rp	?	ii ; i  + '       g   i     T# ; i)zshutil.copyfilez{!r} and {!r} are the same filez`%s` is a named piperbwbNzDirectory does not exist: )&r8   auditri   r   format	enumeraterm   rc   S_ISFIFOst_moder_   r5   r`   rb   r   _WINDOWSr7   r$   rq   symlinkreadlinkopen_HAS_FCOPYFILEr1   r   _COPYFILE_DATAr   rG   _USE_CP_COPY_FILE_RANGErD   rI   rU   r:   rW   r[   IsADirectoryErrorexistsFileNotFoundError)
rg   rh   rr   	file_sizeirl   str+   r,   es
   &&$       r   copyfiler     s}    II*=DDSNOOIC:&	'rB }}RZZ(( *2r{{ ; ;RWW&'='BCCxAFJJ	 #x ' ws||


2;;s#S)T JQ #t__%#t__%~!/E<P<PQ#& %_ _ *)-D-D22% 9$ E'* %_ _& ,+% 24 >'*) %_ _& , "i!m-d#i:VW"7 %_ _>  +; % P Jm  		,  1 ! ! $5 % $% $5 % $%+ %_@ % ww~~c**+.H,NOUVV	E _P Js   I2	LKJ8	-J
KJ8	)J8	5J8	J
K#J8	0J'<
KJ8	"J8	 
KJ8	 K2JJJJ8	JJ8	J$!J8	#J$$J8	'J52J8	4J55J8	8KKLKL5LLLL$	c                &   \         P                  ! R W4       V'       go   \        V 4      '       d^   \        P                  P                  V4      '       d9   \        \        R4      '       d!   \        P                  \        P                  rCMVR# \        p\        P                  R8X  d*   \        P                  P                  V4      '       d   R pM\        P                  pV! V 4      pV! V\        P                  ! VP                  4      4       R# )zshutil.copymodelchmodNr   c                  2    \         P                  ! V R R/  R# )rr   TN)r5   chmodargss   *r   
chmod_funccopymode.<locals>.chmod_funcu  s    $55r   )r8   rv   rq   r5   rb   rp   ra   lstatr   rm   r%   r   rc   S_IMODErz   )rg   rh   rr   	stat_funcr   r   s   &&$   r   copymoder   c  s     II*ws||s0C0C2x  $&HHbiiz	77d?rww~~c226 J	3BsDLL,-r   	listxattrc                H    \         P                  ! WR 7      pT F4  p \         P                  ! YTR 7      p\         P                  ! YYbR 7       K6  	  R#   \         dK   pTP                  \        P                  \        P
                  \        P                  39  d   h  Rp?R# Rp?ii ; i  \         dj   pTP                  \        P                  \        P                  \        P
                  \        P                  \        P                  39  d   h  Rp?EK  Rp?ii ; i)rr   N)r5   r   r$   r(   r*   ENODATAr)   getxattrsetxattrEPERMEACCES)rg   rh   rr   namesr   r%   values   &&$    r   
_copyxattrr   ~  s    	LLFE
 DCOCuN 	  	wwu}}emmU\\JJ	  775;;u}}#(<<#? ??s/   A 0B-B* ?B%%B*-D!8ADD!c                      R # r!   r   )r   kwargss   *,r   r   r         r   c                v  a	 \         P                  ! R W4       RRRR/R lo	T;'       g8    \        V 4      ;'       d     \        P                  P                  V4      '       * pV'       d   V	3R lpMV	3R lp\        V \        P                  4      '       d   V P                  VR7      pMV! R4      ! WR7      p\        P                  ! VP                  4      pV! R	4      ! WP                  VP                  3VR
7       \        WVR7        V! R4      ! WVR7       \        VR4      '       d    V! R4      ! WP                   VR7       R# R#   \         d     L>i ; i  \"         dN   pR FA  p\        \$        T4      '       g   K  TP$                  \'        \$        T4      8X  g   K<    Rp?R# 	  h Rp?ii ; i)zshutil.copystatnsNrr   c                     R # r!   r   )r   rr   r   s   $$*r   _nopcopystat.<locals>._nop  r   r   c                 &   < \        \        V S4      # r!   )getattrr5   )r%   r   s   &r   lookupcopystat.<locals>.lookup  s    2tT**r   c                 X   < \        \        V S4      pV\        P                  9   d   V# S# r!   )r   r5   supports_follow_symlinks)r%   rl   r   s   & r   r   r     s)    T4(BR000	Kr   r   rc   utime)r   rr   r   st_flagschflags)
EOPNOTSUPPr*   )r8   rv   rq   r5   rb   rp   r_   r`   rc   r   rz   st_atime_nsst_mtime_nsr   NotImplementedErrorra   r   r$   r(   r   )
rg   rh   rr   followr   r   modewhyr0   r   s
   &&$      @r   copystatr     sc    II*t T  JJWS\%I%IbggnnS6I JF	+
	 #r{{##XXfX-F^C8<<

#D
7OC^^R^^<  s0w6: r:	9c;;G    	  	.5#&&399s8K+K / 	s<   E 1E  EE F8+F3F3)F30F33F8c                    \         P                  P                  V4      '       d>   \         P                  P                  V\         P                  P	                  V 4      4      p\        WVR 7       \        WVR 7       V# )r   )r5   rb   isdirjoinbasenamer   r   )rg   rh   rr   s   &&$r   copyr     sS     
ww}}Sggll3 0 0 56S7S7Jr   c                   \         P                  P                  V4      '       d>   \         P                  P                  V\         P                  P	                  V 4      4      p\        \        R 4      '       dv   \         P                  ! V 4      p\         P                  ! V4      p\        P                  pV'       g   V\        P                  ,          p \        P                  ! W4V4       V# \        WVR7       \!        WVR7       V#   \         dW   pTP                  \        P                  8X  d   T'       g    Rp?LSTP                  \        P                  8X  d    Rp?Lwh Rp?ii ; i)	CopyFile2Nr   )r5   rb   r   r   r   ra   _winapifsdecode%COPY_FILE_ALLOW_DECRYPTED_DESTINATIONCOPY_FILE_COPY_SYMLINKr   r$   winerrorERROR_PRIVILEGE_NOT_HELDERROR_ACCESS_DENIEDr   r   )rg   rh   rr   src_dst_r-   excs   &&$    r   copy2r     s     
ww}}Sggll3 0 0 56w$${{3{{3==W333E	d%0J S7S7J  	 @ @@' !<!<< 	s$   D
 
E+&E&E&%E&&E+c                     a  V 3R  lpV# )c                 z   < . pS F(  pVP                  \        P                  ! W4      4       K*  	  \        V4      # r!   )extendfnmatchfilterset)rb   r   ignored_namespatternpatternss   &&  r   _ignore_patterns)ignore_patterns.<locals>._ignore_patterns  s4    G  !?@  =!!r   r   )r   r   s   j r   ignore_patternsr     s    
"
 r   c           
      
   Ve8   T! \         P                  ! V4      V  Uu. uF  qP                  NK  	  up4      p	MRp	\         P                  ! W'R7       . p
V\        J ;'       g	    V\
        J pV  EF  pVP                  V	9   d   K  \         P                  P                  WP                  4      p\         P                  P                  W,P                  4      pV'       d   TMTp VP                  4       pV'       dI   \         P                  R8X  d4   VP                  RR7      pVP                  \        P                  8X  d   RpV'       d   \         P                  ! V4      pV'       d-   \         P                  ! VV4       \        WV'       * R7       EK(  \         P                  P                  V4      '       g   V'       d   EKX  VP!                  4       '       d   \#        WW4WVV4       EK  V! W4       EK  VP!                  4       '       d   \#        WW4VWg4       EK  V! W4       EK  	   \        W4       V
'       d   \%        V
4      hV# u upi   \$         d/   pT
P'                  TP(                  ^ ,          4        R p?EK  R p?i\*         d)   pT
P-                  Y\/        T4      34        R p?EKI  R p?ii ; i  \*         d6   p\1        TRR 4      f   T
P-                  Y\/        T4      34        R p?LR p?ii ; i)N)exist_okr   Fr   r   r   )r5   fspathr%   makedirsr   r   rb   r   ro   rc   st_reparse_tagIO_REPARSE_TAG_MOUNT_POINTr}   r|   r   r   is_dircopytreer
   r   r   r$   appendstrr   )entriesrg   rh   symlinksignorecopy_functionignore_dangling_symlinksdirs_exist_okxr   errorsuse_srcentrysrcentrysrcnamedstnamesrcobjro   r   linktor0   r   s   &&&&&&&&             r   	_copytreer   !  s>   ryy~/H1/HIKK,F E)BB]d-BL==M)'',,sMM2'',,sMM2)w&	8!,,.Jbggo !e<''4+J+JJ!&JW- JJvw/V(lKK 77>>&116N (( (!.!.0 &f6""(M1B f.M Z0
 FmJ{ 0Ib  	'MM#((1+&& 	8MM7SX677	8  03
D)1MM3SX./0s   I
'I?AII-)I$I>I	II0I;II"I0K J? "J		J?J?J::J?L+K==Lc                     \         P                  ! R W4       \        P                  ! V 4      ;_uu_ 4       p\	        V4      pRRR4       \        XWVW4VVR7      #   + '       g   i     L!; i)zshutil.copytreeN)r   rg   rh   r   r   r   r   r   )r8   rv   r5   scandirlistr   )	rg   rh   r   r   r   r   r   itrr   s	   &&&&&&&  r   r   r   c  sU    P II*	CCs) 
W#".F#02 2 
s   AA+	st_file_attributesc                     \         P                  ! V P                  4      ;'       gG    V P                  \         P                  ,          ;'       d    V P
                  \         P                  8H  # r!   )rc   S_ISLNKrz   r   FILE_ATTRIBUTE_REPARSE_POINTr   r   r   s   &r   _rmtree_islinkr     sX    RZZ( J J""T%F%FF I I%%)H)HH	Kr   c                 B    \         P                  ! V P                  4      # r!   )rc   r   rz   r   s   &r   r   r     s    ||BJJ''r   c                 x  a Ve   \        R4      h \        P                  ! V 4      p \	        T4      '       d   \        R4      h T3R lp\        P                  ! T RT\        P                  R7      pT F  w  rxp	T F9  p
\        P
                  P                  Yz4      p \        P                  ! T4       K;  	  T	 F9  p
\        P
                  P                  Yz4      p \        P                  ! T4       K;  	  K  	   \        P                  ! T 4       R #   \         d#   pS! \        P                  Y4        R p?R # R p?ii ; i  \         d-   pS! \        P
                  P                  Y4        R p?R # R p?ii ; i  \         d     EK  \         d$   pS! \        P                  Y4        R p?EK:  R p?ii ; i  \         d     EK  \         d$   pS! \        P                  Y4        R p?EK:  R p?ii ; i  \         d     R # \         d#   pS! \        P                  Y4        R p?R # R p?ii ; i)Nz#dir_fd unavailable on this platform%Cannot call rmtree on a symbolic linkc                 |   < \        V \        4      '       g%   S! \        P                  V P                  V 4       R # R # r!   )r_   r   r5   r   r&   )r0   onexcs   &r   onerror_rmtree_unsafe.<locals>.onerror  s*    #011"**cllC0 2r   F)topdownr   followlinks)r   r5   r   r$   r   rb   rp   walk_walk_symlinks_as_filesr   rmdirr   unlink)rb   dir_fdr   r   r0   r   resultsdirpathdirnames	filenamesr%   fullnames   &&f         r   _rmtree_unsafer    s   !"GHHXXd^"ABB 1 ggdE7HbHbcG(/$9Dww||G2H/"  Dww||G2H0		(#  )0"#
C  bhh"  bggnnd( %  /bhh../ %  0bii//0   #bhh""#s   D E !F G ?G? E"D??EE>!E99E>F=F=F=F88F= G<G<G<G77G<?H9H9H9H44H9c                    \        V \        4      '       d   \        P                  ! V 4      p \        P                  WR 3.p V'       d   \        W24       K   V'       dC   VP                  4       w  rErV\        P                  Jd   K1   \        P                  ! V4       KJ  R #   \         d#   pT! \        P                  Y4        R p?Kt  R p?ii ; i  T'       ds   TP                  4       w  rErT\        P                  Jd   K1   \        P                  ! T4       KJ    \         d#   pT! \        P                  Y4        R p?Kr  R p?ii ; ii ; ir!   )	r_   bytesr5   r   r   _rmtree_safe_fd_steppopcloser$   )rb   r  r   stackfuncfdentryr0   s   &&&     r   _rmtree_safe_fdr    s    ${{4 hhd+,E+ .  $)IIK!Dd288#+   +bhh**+ $)IIK!Dd288#+ +bhh**+ sZ   C 
C 
B$ $C/CCE)EDEE*EEEEc                    V P                  4       w  r#rEVf   TMVP                  p V\        P                  J d   \        P                  ! V4       R # V\        P                  J d   \        P                  ! WcR7       R # Vf   \        P
                  ! WcR7      pMVP                  RR7      p\        P                  p\        P                  ! V\        P                  \        P                  ,          VR7      p\        P                  P                  p \        P                  P                  V\        P                  ! V4      4      '       g   \        R4      hV P                  \        P                  W4V34       V P                  \        P                  WV34       \        P                   p\        P                   ! V4      ;_uu_ 4       p	\#        V	4      p
R R R 4       X
 F  p\        P                  P%                  WKP                  4      p VP'                  RR7      '       d%   V P                  \        P
                  WV34       Ki    \        P*                  ! TP                  TR7       K  	  R #   T P                  \        P                  YT34       i ; i  + '       g   i     L; i  \(         d     K  \         d     L}i ; i  \(         d     K  \         d$   pT! \        P*                  Y4        R p?EK!  R p?ii ; i  \(         d9   pTe   T\        P                  J d   YMn        T! Y$T4        R p?R #  R p?R # R p?i\         d   pYMn        T! Y$T4        R p?R # R p?ii ; i)N)r  Fr   r   )r  r%   r5   r  r  r   rc   r~   O_RDONLY
O_NONBLOCKrb   rp   r]   r6   r$   r   r   r   r   r   r   r  r&   )r  r   r  dirfdrb   
orig_entryr%   orig_sttopfd
scandir_itr   r  r  r0   s   &&            r   r  r    so    %*IIK!D%4:??D6288HHUO288HHT(
 hht2G ooeo<GwwbkkBMM9%Hww~~	>77##GRXXe_==EFFLL"((E<=LL"((E<=zzZZ*:&G Eww||D**5H<<<66LL"((EU!CD 70		%**U3  LL"((E<=  %   %  0bii//0 #!1L$c"" "2  d#s   *L +L  BL 9I5 -I5 <AL J6L :J/	L "K/L 5$JL J,	'L /K
:L =K
K
L 	K

L LL L$L%L<L LL M1'M		M1M1M,,M1r   r  c                   a \         P                  ! R W4       V'       d   R pMSf	   Vf   R pMVf   Sf   R pMV3R lp\        WV4       R# )zshutil.rmtreec                      R # r!   r   r   s   *r   r   rmtree.<locals>.onexcA  s    r   Nc                      h r!   r   r   s   *r   r   r#  D  s    r   c                      h r!   r   r   s   *r   r   r#  H  s    r   c                  \   < V w  rpVf   RpM\        V4      W3P                  3pS! WV4      # )N)NNN)type__traceback__)r   r  rb   r   exc_infor   s   *    r   r   r#  L  s7    "&C;/H#Cy#/@/@@Ht844r   )r8   rv   _rmtree_impl)rb   ignore_errorsr   r   r  s   &&f$$r   rmtreer,  *  sI    * IIot,		U]		?5 u%r   c                    \         P                  ! V 4      p \         P                  P                  \         P                  P                  ;'       g    R ,           p\         P                  P                  V P                  V4      4      # ) )r5   r   rb   sepaltsepr   rstrip)rb   r/  s   & r   	_basenamer2  Z  sQ     99T?D
''++--2
.C77DKK,--r   c                    \         P                  ! R W4       Tp\        P                  P	                  V4      '       d   \        W4      '       d>   \        P                  P                  V 4      '       g   \        P                  ! W4       R# \        P                  P                  V\        V 4      4      p\        P                  P                  V4      '       d   \        RV,          4      h \        P                  ! W4       V#   \         Edt    \        P                  P                  T 4      '       dF   \        P                  ! T 4      p\        P                  ! YC4       \        P                  ! T 4        T# \        P                  P	                  T 4      '       d   \!        Y4      '       d   \        RT : RT: R24      h\#        T 4      '       g]   \        P$                  ! T \        P&                  4      '       gF   \        P(                  ! T 4      '       d*   \         P*                  R8X  d   \-        RT : RT : R24      h\/        YTR	R
7       \1        T 4        T# T! Y4       \        P                  ! T 4        T# i ; i)zshutil.moveNz$Destination path '%s' already existszCannot move a directory 'z' into itself 'z'.darwinz%Cannot move the non-empty directory 'z ': Lacking write permission to 'T)r   r   )r8   rv   r5   rb   r   ri   rp   renamer   r2  r   r
   r$   r}   r|   r  
_destinsrc_is_immutableaccessW_OKlistdirplatformPermissionErrorr   r,  )rg   rh   r   real_dstr   s   &&&  r   mover>  l  s   4 IImS&H	ww}}SSrww~~c':': IIc 77<<Ys^477>>(##>IJJ
		# , O+  77>>#[[%FJJv(IIcN" O! WW]]3###(+S2 3 3c""IIc27733

3LLH4%),c'3 4 4 S-"$3K O #(IIcNO+s9   .D 0J7AJ<$J!A JJAJ#JJc                    \         P                  P                  V 4      p \         P                  P                  V4      pV P                  \         P                  P                  4      '       g"   V \         P                  P                  ,          p VP                  \         P                  P                  4      '       g"   V\         P                  P                  ,          pVP                  V 4      # r!   )r5   rb   re   endswithr/  
startswithrf   s   &&r   r6  r6    s    
''//#
C
''//#
C<<$$rww{{<<$$rww{{>>#r   c                     \        V 4      p\        P                  \        P                  .p\	        VR 4      ;'       d    VP
                  V9   # )r   )rm   rc   UF_IMMUTABLESF_IMMUTABLEra   r   )rg   r   immutable_statess   &  r   r7  r7    sA    	sB))4+<+<=2z"FFr{{6F'FFr   c                     V f   R #  ^ RI Hp  T! T 4      pTe
   T^,          # R #   \         d     R # i ; i  \         d    R p L0i ; i)N)getgrnam)grprG  ImportErrorKeyError)r%   rG  results   &  r   _get_gidrL    ^    | $ ay  
     & 8 55AAc                     V f   R #  ^ RI Hp  T! T 4      pTe
   T^,          # R #   \         d     R # i ; i  \         d    R p L0i ; i)N)getpwnam)pwdrP  rI  rJ  )r%   rP  rK  s   &  r   _get_uidrR    rM  rN  c	                   aaaa Vf   Rp	Mr\         '       d   VR8X  d   Rp	M\\        '       d   VR8X  d   Rp	MF\        '       d   VR8X  d   Rp	M0\        '       d   VR8X  d   Rp	M\	        RP                  V4      4      h^ R Ip
V'       d
   R	V	,           MRpV R
,           V,           p\        P                  P                  V4      pV'       dZ   \        P                  P                  V4      '       g5   Ve   VP                  RV4       V'       g   \        P                  ! V4       Ve   VP                  R4       \        S4      o\        S4      oVVVV3R lpV'       gd   V
P                  VRV	,          4      pTpVe    \        P                  P!                  W4      p VP#                  VVVR7       VP%                  4        Ve    \        P                  P'                  V4      pV#   TP%                  4        i ; i)Nr.  gzipgzbzip2bz2xzzstzCbad value for 'compress', or compression format not supported : {0}..tarcreating %szCreating tar archivec                 P   < Se   SV n         SV n        Se   SV n        SV n        V # r!   )gidgnameuiduname)tarinfor^  groupownerr`  s   &r   _set_uid_gid#_make_tarball.<locals>._set_uid_gid  s.    ?GK!GM?GK!GMr   zw|%sr   )_ZLIB_SUPPORTED_BZ2_SUPPORTED_LZMA_SUPPORTED_ZSTD_SUPPORTED
ValueErrorrw   tarfiler5   rb   dirnamer   infor   rR  rL  r~   r   addr  re   )	base_namebase_dircompressverbosedry_runrd  rc  loggerroot_dirtar_compressionrm  compress_extarchive_namearchive_dirre  tararcnamer^  r`  s   &&&&&ff&&        @@r   _make_tarballr~    s     	X/	H/	X-	X. ++16(+;= 	= ,43("Lv%4L''//,/K277>>+66KK{3KK$ *+
5/C
5/C  ll</)ABww||H7H	GGHglG;IIKww|4	 IIKs    G) )G;c                    ^ RI pV R,           p	\        P                  P                  V 4      p
V
'       dZ   \        P                  P	                  V
4      '       g5   Ve   VP                  RV
4       V'       g   \        P                  ! V
4       Ve   VP                  RW4       V'       Egi   VP                  V	RVP                  R7      ;_uu_ 4       p\        P                  P                  V4      pVe    \        P                  P                  Wq4      p\        P                  P                  V4      pV\        P                  8w  d(   VP                  W4       Ve   VP                  RV4       \        P                  ! V4       EF  w  rpTpVe!   \        P                  P                  VV4      p\        P                  P                  V4      p\        V4       Fm  p\        P                  P                  VV4      p\        P                  P                  VV4      pVP                  VV4       Vf   K[  VP                  RV4       Ko  	  V F  p\        P                  P                  VV4      p\        P                  P                  V4      p\        P                  P!                  V4      '       g   Ki  \        P                  P                  VV4      pVP                  VV4       Vf   K  VP                  RV4       K  	  EK  	  RRR4       Ve    \        P                  P#                  V	4      p	V	#   + '       g   i     L5; i)r   N.zipr\  z#creating '%s' and adding '%s' to itw)compressionzadding '%s')zipfiler5   rb   rn  r   ro  r   ZipFileZIP_DEFLATEDnormpathr   curdirrL   r  relpathsortedisfilere   )rq  rr  rt  ru  rv  rd  rc  rw  r  zip_filenamer{  zfr}  r
  r  r  
arcdirpathr%   rb   s   &&&&&&&&           r   _make_zipfiler  (  s_    v%L''//),K277>>+66KK{3KK$9 	, 7__\3)0)=)=  ? ?BDgg&&x0G#77<<;ww''1H"))#+%KKx8020A,9$
'!#X!FJWW--j9
"8,D77<<6D ggll:t<GHHT7+)M48 - &D77<<6D77++D1Dww~~d++"$'',,z4"@w/!-"KKt< & 1B?< ww|4A? ?s    E!L:9A<L::3L:2L::M
	r|  zuncompressed tar filezgzip'ed tar-filegztarzZIP filezipzbzip2'ed tar-filebztarzxz'ed tar-filexztarzzstd'ed tar-filezstdtarc                      \         P                  4        U Uu. uF  w  rW^,          3NK  	  pp pVP                  4        V# u upp i )r3   )_ARCHIVE_FORMATSitemssort)r%   registryformatss      r   get_archive_formatsr  ~  sI      %%')' (6tqk"'  )LLNN)s   Ac                 <   Vf   . p\        V4      '       g   \        RV,          4      h\        V\        \        34      '       g   \        R4      hV F:  p\        V\        \        34      '       d   \        V4      ^8w  g   K1  \        R4      h	  WV3\        V &   R # )NzThe %s object is not callablez!extra_args needs to be a sequencez+extra_args elements are : (arg_name, value))callable	TypeErrorr_   tupler   lenr  )r%   function
extra_argsdescriptionelements   &&&& r   register_archive_formatr    s     
H7(BCCj5$-00;<<'E4=11S\A5EIJJ  'K@Tr   c                     \         V  R # r!   )r  r%   s   &r   unregister_archive_formatr    s
    r   c	                    \         P                  ! R WW#4        \        V,          p	RTRTRTRT/p
T	^ ,          pT	^,           F	  w  rYT&   K  	  Tf   \
        P                  p\        TRR4      pRpTe   \
        P                  ! T4      P                  p\        P                  ! T4      '       g   \        \        P                  R	T4      hT'       d   \
        P                  ! T 4      p Y*R
&   Mh\
        P                  ! 4       pTe   TP!                  RT4       \
        P"                  P%                  T 4      p T'       g   \
        P&                  ! T4        T! Y3/ T
B pTe-   Te   TP!                  RT4       \
        P&                  ! T4       T#   \         d    \	        RT,          4      Rhi ; i  Te.   Te   TP!                  RT4       \
        P&                  ! T4       i i ; i)zshutil.make_archivezunknown archive format '%s'Nru  rv  rd  rc  supports_root_dirFzNot a directoryrw  zchanging into '%s'zchanging back to '%s')r8   rv   r  rJ  rl  r5   r  r   rc   rz   S_ISDIRNotADirectoryErrorr(   ENOTDIRr   getcwddebugrb   re   chdir)rq  rw   rw  rr  rt  ru  rd  rc  rv  format_infor   r  argvalr  save_cwdstmdr&   s   &&&&&&&&&         r   make_archiver    s   $ II#YKK&v. (Fugu.F q>DNNs # 99&95AHwwx ((||D!!$U]]4ExPP		),I!):yy{H!18<	2I"	6v6!4h?HHXOQ  K6?@dJKF !4h?HHX  s   F 	F7 F473G*c                      \         P                  4        U Uu. uF  w  rW^ ,          V^,          3NK  	  pp pVP                  4        V# u upp i r   )_UNPACK_FORMATSr  r  )r%   ro  r  s      r   get_unpack_formatsr    sO     $$&(& -7D1gtAw'&  (LLNN(s   A
c                     / p\         P                  4        F  w  rEV^ ,           F  pWCV&   K	  	  K  	  V  F$  pWs9   g   K  Rp\        WW7,          3,          4      h	  \        V4      '       g   \	        R4      hR# )r   z!%s is already registered for "%s"z*The registered function must be a callableN)r  r  r   r  r  )	
extensionsr  r  existing_extensionsr%   ro  ext	extensionmsgs	   &&&      r   _check_unpack_optionsr    s     %++-
77C'+$  .  	+5C':'E'G !G H H   HDEE r   c                 @    Vf   . p\        WV4       WW43\        V &   R # r!   )r  r  )r%   r  r  r  r  s   &&&&&r   register_unpack_formatr    s(    " 
*
;&*IODr   c                     \         V  R # r!   )r  r  s   &r   unregister_unpack_formatr    s
    r   c                     \         P                  P                  V 4      p\         P                  P                  V4      '       g   \         P                  ! V4       R # R # r!   )r5   rb   rn  r   r   )rb   rn  s   & r   _ensure_directoryr    s8    ggood#G77==!!
G "r   c           
         ^ RI pVP                  V 4      '       g   \        RV ,          4      hVP                  V 4      p VP	                  4        F  pVP
                  pVP                  R4      '       g   RV9   d   K/  \        P                  P                  ! V.VP                  R4      O5!  pV'       g   Kj  \        V4       VP                  R4      '       d   K  VP                  VR4      ;_uu_ 4       p\        VR4      ;_uu_ 4       p\        Wx4       RRR4       RRR4       K  	  VP                  4        R#   + '       g   i     L.; i  + '       g   i     EK  ; i  TP                  4        i ; i)r   Nz%s is not a zip file/z..rru   )r  
is_zipfiler   r  infolistr&   rA  r5   rb   r   splitr  r@  r~   r[   r  )	r&   extract_dirr  r  ro  r%   
targetpathsourcetargets	   &&       r   _unpack_zipfiler    s    h''.9::
//(
#CLLND==D s##tt|kDDJJsODJj)==%%XXdC((FZ..&/ / )( #$ 			 /. )(( 			sI    A7E' 8!E' E' 8ED?E!E' ?E
EE$
E' 'E9r   c                    ^ RI p VP                  V 4      p TP	                  YR7       TP                  4        R#   TP                   d    \        RT ,          4      hi ; i  TP                  4        i ; i)r   Nz/%s is not a compressed or uncompressed tar filerg  )rm  r~   TarErrorr   
extractallr  )r&   r  r   rm  tarobjs   &&$  r   _unpack_tarfiler  ;  sv     Jh'+5  J=HJ 	JJ 	s   < A# $A #A5r[  r  z.tar.gzz.tgzz.tar.bz2z.tbz2z.tar.xzz.txzz.tar.zstz.tzstc                     \         P                  4        F2  w  rV^ ,           F   pV P                  V4      '       g   K  Vu u # 	  K4  	  R# )r   N)r  r  r@  )r&   r%   ro  r  s   &   r   _find_unpack_formatr  c  sB    %++-
aI  ++ ! . r   c                n   \         P                  ! R WV4       Vf   \        P                  ! 4       p\        P                  ! V4      p\        P                  ! V 4      p Vf   / pMRV/pVe5    \
        V,          pT^,          pT! Y3/ \        T^,          4      BTB  R# \        V 4      pVf   \        RP                  V 4      4      h\
        V,          ^,          p\        \
        V,          ^,          4      V,          pV! W3/ VB  R#   \         d    \        RP                  T4      4      Rhi ; i)zshutil.unpack_archiveNr   zUnknown unpack format '{0}'zUnknown archive format '{0}')r8   rv   r5   r  r   r  rJ  rl  rw   dictr  r   )r&   r  rw   r   filter_kwargsr  r  r   s   &&&$    r   unpack_archiver  j  s   $ II%xfEiik))K(Kyy"H~!6*	U)&1K 1~XLd;q>&:LmL %X.>:AA(KLLv&q)of-a01MAX-f-  	U:AA&IJPTT	Us   .D 'D4statvfs
disk_usageusageztotal used freezTotal space in byteszUsed space in byteszFree space in bytesc                    \         P                  ! V 4      pVP                  VP                  ,          pVP                  VP                  ,          pVP                  VP
                  ,
          VP                  ,          p\        W4V4      # r!   )r5   r  f_bavailf_frsizef_blocksf_bfree_ntuple_diskusage)rb   r   freetotaluseds   &    r   r  r    s^     ZZ{{R[[(bkk)bjj(BKK7 d33r   c                 Z    \         P                  ! V 4      w  rW,
          p\        WV4      # r!   )r   _getdiskusager  )rb   r  r  r  s   &   r   r  r    s*     &&t,| d33r   c                   \         P                  ! R WV4       Vf   Vf   \        R4      hTpTpVf   RpM?\        V\        4      '       d*   \        V4      pVf   \        RP                  V4      4      hVf   RpM?\        V\        4      '       g*   \        V4      pVf   \        RP                  V4      4      h\        P                  ! WWcVR7       R# )zshutil.chownNzuser and/or group must be setzno such user: {!r}zno such group: {!r})r  rr   )r8   rv   rl  r_   r   rR  LookupErrorrw   intrL  r5   chown)rb   userrc  r  rr   _user_groups   &&&$$  r   r  r    s     IInd%0|899EF |	D#		=299$?@@}s##%>3::5ABBHHT&,.r   c                     \        \        P                  R ,          4      p \        \        P                  R,          4      pV^ 8:  g   V^ 8:  d|    \        P
                  ! \        P                  P                  4       4      pV^ 8:  d   VP                  ;'       g
    V ^ ,          pV^ 8:  d   VP                  ;'       g
    V ^,          p\        P                  ! W34      #   \        \        3 d    ^ p Li ; i  \        \        3 d    ^ p Li ; i  \        \        \        3 d    \        P                  ! T 4      p Li ; i)COLUMNSLINES)r  r5   environrJ  rl  get_terminal_sizer8   
__stdout__r"   AttributeErrorr$   terminal_sizecolumnslines)fallbackr  r  sizes   &   r   r  r    s   (bjj+,BJJw'(
 !|uz	.''(=(=(?@D
 a<ll11hqkGA:JJ--(1+EW,--+ j! 
 j!  
G4 	. ##H-D	.s4    C#  C< 2D #C98C9<DD,EEc                     \         P                  P                  V 4      ;'       dC    \         P                  ! W4      ;'       d%    \         P                  P	                  V 4      '       * # r!   )r5   rb   r   r8  r   )rl   r   s   &&r   _access_checkr     sI    GGNN2 & &299R#6 & &GGMM"%%'r   c                     V\         P                  ,          '       * ;'       g+    \        P                  ! \         P                  ! V 4      4      # r!   )r5   X_OKr   NeedCurrentDirectoryForExePathr   )cmdr   s   &&r   _win_path_needs_curdirr    s:       " "W%K%KC &" "r   c                   a \        V \        4      p\        P                  P	                  V 4      w  r@V'       d   V.pEM6Vf<   \        P
                  P                  RR 4      pVf    \        P                  ! R4      pV'       g   R # V'       dK   \        P                  ! V4      pVP	                  \        P                  ! \        P                  4      4      pM5\        P                  ! V4      pVP	                  \        P                  4      p\        P                  R8X  dR   \!        W4      '       dA   \        P"                  pV'       d   \        P                  ! V4      pVP%                  ^ V4       \        P                  R8X  Ed1   \        P&                  ! R4      ;'       g    \(        pVP	                  \        P                  4      pV Uu. uF  q'       g   K  VP+                  R4      NK  	  ppV'       d&   V Uu. uF  p\        P                  ! V4      NK  	  ppV Uu. uF  qV,           NK  	  p	pV P-                  4       oV\        P.                  ,          '       dA   \0        ;QJ d    V3R lV 4       F  '       g   K   RM	  RM! V3R lV 4       4      '       d   V	P%                  ^ V 4       MV .p	\3        4       p
V Fz  p\        P                  P5                  V4      pW9  g   K*  V
P7                  V4       V	 F9  p\        P                  P9                  W4      p\;        W4      '       g   K5  Vu u # 	  K|  	  R #   \        \        3 d    \        P                  p ELi ; iu upi u upi u upi )	NPATHCS_PATHr   PATHEXTrZ  c              3   b   <"   T F$  pSP                  VP                  4       4      x  K&  	  R # 5ir!   )r@  upper).0r  normcmds   & r   	<genexpr>which.<locals>.<genexpr>g  s'     &XPWw'7'7		'D'DPWs   ,/TF)r_   r  r5   rb   r  r  getconfstrr  rl  defpathfsencodepathsepr   r8   r;  r  r  insertgetenv_WIN_DEFAULT_PATHEXTr1  r  r  anyr   rd   rp  r   r   )r  r   rb   	use_bytesrn  r  pathext_sourcepathextr  filesseendirnormdirthefiler%   r  s   &&&            @r   whichr!  '  sl    3&I
 77==%LGy<::>>&$/D|&::i0D ;;t$D::bkk"**56D;;t$D::bjj)D<<7"'=c'H'HYYFV,KK6"
||w9-EE1E &&rzz2.5=gs?3::c?g=3:;7Cr{{3'7G;&-.gssg. ))+rww33&XPW&X333&XPW&X#X#XLLC  5D''""3'HHW ww||C1 ,,K !	  q '
3 &::D&8 > <.s*   )M 	M3!M3M8)M=!M0/M0c                     V R 8X  d,   ^ RI pVP                  RVP                   R2RR7       \        # \	        R\
        : RV : 24      h)	ExecErrorNzshutil.ExecErrorz); it isn't raised by any shutil function.)removezmodule z has no attribute )      )warnings_deprecated_DEPRECATED_MSGRuntimeErrorr  r   )r%   r'  s   & r   __getattr__r+  y  s]    {''( )3 3	 	 	
 
78,.@I
JJr   i   i   )linuxandroidsunos)r[   r   r   r   r   r   r   r>  r,  r
   r   r  r  r  r  r  r  r  r  r   r  r!  r  r   r  )F)FN)rT  r   r   NNNN)r   r   NNNN)rs  N)rs  rT  )rs  rV  )rs  rX  )rs  rY  )Nr.  )NNr   r   NNN)NN))P      )pr5   r8   rc   r   collectionsr(   zlibrh  rI  rW  ri  lzmarj  r  r   rk  r%   r{   r   r   r;  r   rW   ra   rA  rG   r   r   r  __all__r$   r
   r   r   r   r#   r   r   r1   r<   rD   rI   rU   r[   ri   rm   rq   r   r   r   r   r   r   r   r   r   stat_resultr   r  r  r  r~   r  r  supports_dir_fdr   supports_fdr   _use_fd_functionsr*  r,  avoids_symlink_attacksr2  r>  r6  r7  rL  rR  r~  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r   
namedtupler  r  __doc__r  r  r  r  r  r   r  F_OKr  r!  r+  r   r   r   <module>r=     s   
 
    ONO O 77d? 77g<<7G&{J B
+ O O//0MN !"&78 7775,7 ? 	G 	@E @;w ;
0 0&I &	 
 (&'R1f .: (4$ERF$ FP.$ .4 2{ 0@$ @Dd $&t &P
@D !&d%&+5.2` 2>>/00K
(*#Z+&EN ggrww		288<''( < <ZZ2>>1< < WW ; ;;  #4*&T *&$ *&\ !2 .$ "' @DG
$$FP7r #' "&  
m01%' 
 !.1E0F 2!4W,b*=U!.1F0G 3!5W !.1C0D 0!2W #03F2G"4#6YA*=@	F$J,<T ( 
vh-DE	vhZ8
 !*F 3_b 2 4OG !+W 5 3 5OG !*F 3_b 0 2OG #-w"7""4"6OI..d ..b 2yNN< #..w8IJ&<#%:"%:"
4 NN< #..w8IJ4&. &.t &.P+.b'
" GGbgg%D Pd
KO3  O  N  O  OsD   Q Q Q! 	Q1 	QQ	QQ!	Q.-Q.1	Q>=Q>