§
    	^µc‡e  ã                   ó,  — d Z ddlZddlZddlZddl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mZmZmZmZmZmZmZmZ ddlmZ ddlmZ d	Zed
z   ZdZej         d>d„¦   «         Z!d?d„Z"d„ Z#d„ Z$efd„Z%d„ Z&d„ Z' G d„ dej        ¦  «        Z(d>d„Z)d„ Z*d@d„Z+dAd„Z,dAd„Z-d„ Z.d„ Z/d„ Z0d „ Z1d!„ Z2d"„ Z3dBd#„Z4d$„ Z5d%„ Z6d&„ Z7d'„ Z8d(„ Z9d)„ Z:d*„ Z;d+„ Z<d,„ Z=d-„ Z>d.„ Z?d/„ Z@d0„ ZAd1„ ZBd2„ ZC G d3„ d4eD¦  «        ZEd5„ ZFd6„ ZGd7„ ZHd8„ ZId9„ ZJd:„ ZK G d;„ d<¦  «        ZLdBd=„ZMdS )CzGlargefiles utility code: must not import other modules in this package.é    N)Ú_)Úhex)Úopen)ÚdirstateÚencodingÚerrorÚhttpconnectionÚmatchÚpycompatÚrequirementsÚscmutilÚsparseÚutilÚvfs)Úhashutil)Ú	timestamps   .hglfó   /ó
   largefilesTc              #   ój   K  — t          | dd¦  «        }|| _        	 d V — || _        d S # || _        w xY w)NÚlfstatusF)Úgetattrr   )ÚrepoÚvalueÚoldvalues      ú9/usr/lib/python3/dist-packages/hgext/largefiles/lfutil.pyr   r   +   sJ   è è € å�t˜Z¨Ñ/Ô/€HØ€D„Mð!Øˆˆˆà ˆŒˆˆø˜ˆŒÐ Ð Ð Ð s   œ) ©	2é
   c                 ó  — |}|s|r|                       t          d|¬¦  «        }|rC	 t          |¦  «        }n2# t          $ r% t	          j        t          d¦  «        |z  ¦  «        ‚w xY w|€!t	          j        t          d¦  «        ¦  «        ‚|S )Ns   minsize)Údefaults)   largefiles: size must be number (not %s)
s-   minimum size for largefiles must be specified)ÚconfigÚlongnameÚfloatÚ
ValueErrorr   ÚAbortr   )ÚuiÚassumelfilesÚoptr   Úlfsizes        r   Ú
getminsizer(   5   s®   € Ø€FØð B�lð BØ—’�8 Z¸�ÑAÔAˆØð ð	Ý˜6‘]”]ˆFˆFøÝð 	ð 	ð 	Ý”+ÝÐ?Ñ@Ô@À6ÑIñô ð ð	øøøð €~ÝŒk�!ÐLÑMÔMÑNÔNÐNØ€Ms	   §7 ·/A&c                 ó  — t          j        t          j                             |¦  «        ¦  «         	 t          j        | |¦  «         dS # t          $ r± t          | d¦  «        5 }t          j        |¦  «        5 }t          j	        |¦  «        D ]}| 
                    |¦  «         Œ	 ddd¦  «         n# 1 swxY w Y   ddd¦  «         n# 1 swxY w Y   t          j        |t          j        | ¦  «        j        ¦  «         Y dS w xY w)z@Try to create hardlink - if that fails, efficiently make a copy.ó   rbN)r   ÚmakedirsÚosÚpathÚdirnameÚoslinkÚOSErrorr   ÚatomictempfileÚfilechunkiterÚwriteÚchmodÚstatÚst_mode)ÚsrcÚdestÚsrcfÚdstfÚchunks        r   Úlinkr<   E   sx  € å„M•"”'—/’/ $Ñ'Ô'Ñ(Ô(Ð(ð-ÝŒ�C˜ÑÔÐÐÐøÝð -ð -ð -å�#�uÑÔð 	" ¥tÔ':¸4Ñ'@Ô'@ð 	"ÀDÝÔ+¨DÑ1Ô1ð "ð "�Ø—
’
˜5Ñ!Ô!Ð!Ð!ð"ð	"ð 	"ð 	"ñ 	"ô 	"ð 	"ð 	"ð 	"ð 	"ð 	"ð 	"øøøð 	"ð 	"ð 	"ð 	"ð 	"ð 	"ð 	"ñ 	"ô 	"ð 	"ð 	"ð 	"ð 	"ð 	"ð 	"øøøð 	"ð 	"ð 	"ð 	"õ 	Œ�•r”w˜s‘|”|Ô+Ñ,Ô,Ð,Ð,Ð,Ð,ð-øøøsY   ³A
 Á
DÁ$C
Á9-B3Â'C
Â3B7Â7C
Â:B7Â;C
Â>DÃ
C	ÃDÃC	Ã/DÄDc                 ó\   — t           j                             t          | ¦  «        |¦  «        S )zâReturn the correct location in the "global" largefiles cache for a file
    with the given hash.
    This cache is used for sharing of largefiles across repositories - both
    to preserve download bandwidth and storage space.)r,   r-   ÚjoinÚ_usercachedir)r$   Úhashs     r   ÚusercachepathrA   R   s"   € õ
 Œ7�<Š<� bÑ)Ô)¨4Ñ0Ô0Ð0ó    c                 óø  — |                       |d¦  «        }|r|S d}t          j        rvt          j                             dt          j                             d¦  «        ¦  «        }|r t          j                             ||¦  «        S t          d¦  «        dd|fz  }�n7t          j
        rXt          j                             d¦  «        }|r"t          j                             |dd|¦  «        S t          d	¦  «        d|fz  }nÓt          j        r™t          j                             d
¦  «        }|r t          j                             ||¦  «        S t          j                             d¦  «        }|r!t          j                             |d|¦  «        S t          d¦  «        d
d|fz  }n.t          j        t          d¦  «        t          j        z  ¦  «        ‚t          j        t          d¦  «        |z  |¬¦  «        ‚)z5Return the location of the "global" largefiles cache.s	   usercacheNs   LOCALAPPDATAs   APPDATAs7   define %s or %s in the environment, or set %s.usercaches   HOMEs   Librarys   Cachess1   define %s in the environment, or set %s.usercaches   XDG_CACHE_HOMEs   .caches   unknown operating system: %s
s   unknown %s usercache location)Úhint)Ú
configpathr   Ú	iswindowsr   ÚenvironÚgetr,   r-   r>   r   ÚisdarwinÚisposixr   r#   Úosname)r$   Únamer-   rD   ÚappdataÚhomes         r   r?   r?   Z   sõ  € à�=Š=˜˜|Ñ,Ô,€DØð Øˆà€DåÔð %
ÝÔ"×&Ò&Ø�XÔ-×1Ò1°*Ñ=Ô=ñ
ô 
ˆð ð 	/Ý”7—<’< ¨Ñ.Ô.Ð.åÐKÑLÔLØØØðP
ñ 
ˆ‰õ
 
Ô	ð 
ÝÔ×#Ò# GÑ,Ô,ˆØð 	CÝ”7—<’<  j°)¸TÑBÔBÐBåÐEÑFÔFØØðJ
ñ 
ˆˆõ 
Ô	ð 
ÝÔ×#Ò#Ð$5Ñ6Ô6ˆØð 	,Ý”7—<’<  dÑ+Ô+Ð+ÝÔ×#Ò# GÑ,Ô,ˆØð 	7Ý”7—<’<  i°Ñ6Ô6Ð6åÐKÑLÔLØØØðP
ñ 
ˆˆõ ŒkÝÐ/Ñ0Ô0µ8´?ÑBñ
ô 
ð 	
õ Œ+•aÐ8Ñ9Ô9¸DÑ@ÀtÐ
LÑ
LÔ
LÐLrB   c                 ó`   — t          | |¦  «        }t          j                             |¦  «        S ©N)rA   r,   r-   Úexists)r$   r@   r-   s      r   ÚinusercacherR   Œ   s%   € Ý˜˜TÑ"Ô"€DÝŒ7�>Š>˜$ÑÔÐrB   c                 óp  — t          | |¦  «        \  }}|r,| j                             t          d¦  «        |z  ¦  «         |S t	          | j        |¦  «        r_| j                             t          d¦  «        |z  ¦  «         t          | |¦  «        }t          t          | j        |¦  «        |¦  «         |S dS )z¯Return store path of the largefile with the specified hash.
    As a side effect, the file might be linked from user cache.
    Return None if the file can't be found locally.s   found %s in store
s   found %s in system cache
N)Úfindstorepathr$   Únoter   rR   Ú	storepathr<   rA   )r   r@   r-   rQ   s       r   ÚfindfilerW   ‘   s±   € õ !  tÑ,Ô,�L€Dˆ&Øð ØŒ�Š•QÐ-Ñ.Ô.°Ñ5Ñ6Ô6Ð6ØˆÝ	�T”W˜dÑ	#Ô	#ð ØŒ�Š•QÐ4Ñ5Ô5¸Ñ<Ñ=Ô=Ð=Ý˜˜tÑ$Ô$ˆÝ�]˜4œ7 DÑ)Ô)¨4Ñ0Ô0Ð0ØˆØˆ4rB   c                   ó€   ‡ — e Zd Zˆ fd„Zˆ fd„Zˆ fd„Zdˆ fd„	Zˆ fd„Zˆ fd„Zˆ fd„Z	ˆ fd	„Z
ˆ fd
„Zd„ Zˆ fd„Zˆ xZS )Úlargefilesdirstatec                 ón   •— t          t          | ¦  «                             t          |¦  «        ¦  «        S rP   )ÚsuperrY   Ú__getitem__Úunixpath)ÚselfÚkeyÚ	__class__s     €r   r\   zlargefilesdirstate.__getitem__¢   s(   ø€ ÝÕ'¨Ñ.Ô.×:Ò:½8ÀC¹=¼=ÑIÔIÐIrB   c                 ón   •— t          t          | ¦  «                             t          |¦  «        ¦  «        S rP   )r[   rY   Úset_trackedr]   ©r^   Úfr`   s     €r   rb   zlargefilesdirstate.set_tracked¥   s(   ø€ ÝÕ'¨Ñ.Ô.×:Ò:½8ÀA¹;¼;ÑGÔGÐGrB   c                 ón   •— t          t          | ¦  «                             t          |¦  «        ¦  «        S rP   )r[   rY   Úset_untrackedr]   rc   s     €r   rf   z largefilesdirstate.set_untracked¨   s(   ø€ ÝÕ'¨Ñ.Ô.×<Ò<½XÀa¹[¼[ÑIÔIÐIrB   Nc                 ón   •— t          t          | ¦  «                             t          |¦  «        ¦  «        S rP   )r[   rY   Únormalr]   )r^   rd   Úparentfiledatar`   s      €r   rh   zlargefilesdirstate.normal«   s*   ø€ õ Õ'¨Ñ.Ô.×5Ò5µh¸q±k´kÑBÔBÐBrB   c                 ón   •— t          t          | ¦  «                             t          |¦  «        ¦  «        S rP   )r[   rY   Úremover]   rc   s     €r   rk   zlargefilesdirstate.remove°   ó(   ø€ ÝÕ'¨Ñ.Ô.×5Ò5µh¸q±k´kÑBÔBÐBrB   c                 ón   •— t          t          | ¦  «                             t          |¦  «        ¦  «        S rP   )r[   rY   Úaddr]   rc   s     €r   rn   zlargefilesdirstate.add³   s(   ø€ ÝÕ'¨Ñ.Ô.×2Ò2µ8¸A±;´;Ñ?Ô?Ð?rB   c                 ón   •— t          t          | ¦  «                             t          |¦  «        ¦  «        S rP   )r[   rY   Údropr]   rc   s     €r   rp   zlargefilesdirstate.drop¶   s(   ø€ ÝÕ'¨Ñ.Ô.×3Ò3µH¸Q±K´KÑ@Ô@Ð@rB   c                 ón   •— t          t          | ¦  «                             t          |¦  «        ¦  «        S rP   )r[   rY   Úforgetr]   rc   s     €r   rr   zlargefilesdirstate.forget¹   rl   rB   c                 ón   •— t          t          | ¦  «                             t          |¦  «        ¦  «        S rP   )r[   rY   Únormallookupr]   rc   s     €r   rt   zlargefilesdirstate.normallookup¼   s(   ø€ ÝÕ'¨Ñ.Ô.×;Ò;½HÀQ¹K¼KÑHÔHÐHrB   c                 ó   — dS ©NF© )r^   rd   s     r   Ú_ignorezlargefilesdirstate._ignore¿   s   € ØˆurB   c                 óŠ   •— |r|                      dd¬¦  «         t          t          | ¦  «                             d ¦  «         d S )Ns   largefiles/dirstates   plain)Úlocation)Ú	addbackupr[   rY   r3   )r^   Útrr`   s     €r   r3   zlargefilesdirstate.writeÂ   sJ   ø€ ð ð 	DØ�LŠLÐ/¸(ˆLÑCÔCÐCÝÕ  $Ñ'Ô'×-Ò-¨dÑ3Ô3Ð3Ð3Ð3rB   rP   )Ú__name__Ú
__module__Ú__qualname__r\   rb   rf   rh   rk   rn   rp   rr   rt   rx   r3   Ú__classcell__)r`   s   @r   rY   rY   ¡   s[  ø€ € € € € ðJð Jð Jð Jð JðHð Hð Hð Hð HðJð Jð Jð Jð JðCð Cð Cð Cð Cð Cð
Cð Cð Cð Cð Cð@ð @ð @ð @ð @ðAð Að Að Að AðCð Cð Cð Cð CðIð Ið Ið Ið Iðð ð ð4ð 4ð 4ð 4ð 4ð 4ð 4ð 4ð 4rB   rY   c           	      ó¤  ‡— ‰j         }t          }t          j         |                     |¦  «        ¦  «        }t          j        ‰j        v }t          || ‰j        ‰j        j	        ˆfd„‰j
        |¦  «        }|rØ|                     |                     |d¦  «        ¦  «        s¯t          ‰¦  «        }‰j                             |g dd¬¦  «        }	t          |	¦  «        dk    r|                     |¦  «         |                     ¦   «         5  |	D ]*}
t#          |
¦  «        }|                     |ddd¬¦  «         Œ+	 ddd¦  «         n# 1 swxY w Y   |S )	zŠ
    Return a dirstate object that tracks largefiles: i.e. its root is
    the repo root, but it is saved in .hg/largefiles/dirstate.
    c                  ó,   •— t          j        ‰ ¦  «        S rP   )r   Úmatcher©r   s   €r   ú<lambda>z openlfdirstate.<locals>.<lambda>Ù   s   ø€ •”˜tÑ$Ô$€ rB   s   dirstateF©ÚsubreposÚunknownÚignoredr   T)Ú
p1_trackedÚ
wc_trackedÚpossibly_dirtyN)r   r    Úvfsmodr>   r   ÚDIRSTATE_V2_REQUIREMENTrY   Úrootr   Ú	_validateÚnodeconstantsrQ   ÚgetstandinmatcherÚwalkÚlenr+   ÚparentchangeÚsplitstandinÚupdate_file)r$   r   Úcreater   Ú
lfstoredirÚopenerÚuse_dirstate_v2Ú
lfdirstaterƒ   ÚstandinsÚstandinÚlfiles    `          r   Úopenlfdirstater    Ë   s°  ø€ ð
 Œ(€CÝ€JÝŒZ˜Ÿš Ñ,Ô,Ñ-Ô-€FÝ"Ô:¸dÔ>OÐO€OÝ#ØØ
ØŒ	ØŒÔØ$Ð$Ð$Ð$ØÔØñô €Jð ð �c—j’j §¢¨*°kÑ!BÔ!BÑCÔCð Ý# DÑ)Ô)ˆØ”=×%Ò%Ø˜b¨%¸ð &ñ 
ô 
ˆõ ˆx‰=Œ=˜1ÒÐØ�LŠL˜Ñ$Ô$Ð$à×$Ò$Ñ&Ô&ð 	ð 	Ø#ð ð �Ý$ WÑ-Ô-�Ø×&Ò&Ø d°tÈDð 'ñ ô ð ð ðð	ð 	ð 	ñ 	ô 	ð 	ð 	ð 	ð 	ð 	ð 	øøøð 	ð 	ð 	ð 	ð Ðs   Ä
.EÅE	ÅE	c                 ót  — |d         }t          j        ¦   «         }|                      |g ddd¬¦  «        \  }}}|j        |j        }}|d          }	|D ]å}
	 |t          |
¦  «                 }n# t          $ r d }Y nw xY w|r3t          |¦  «        t          | 	                    |
¦  «        ¦  «        k    r| 
                    |
¦  «         Œv| 
                    |
¦  «         |	|
                              ¦   «         }|j        }|j        }t          j        ||¦  «        }|�|||f}|                      |
|¦  «         Œæ|S )Nó   .F©r‡   r‰   Úcleanrˆ   )ÚmatchmodÚalwaysÚstatusÚmodifiedr¤   rž   ÚLookupErrorÚreadasstandinÚhashfileÚwjoinÚappendÚlstatr6   Úst_sizer   Úreliable_mtime_ofÚ	set_clean)rœ   r   Úpctxr
   ÚunsureÚsÚmtime_boundaryr¨   r¤   ÚwctxrŸ   ÚfctxÚstÚmodeÚsizeÚmtimeÚ
cache_datas                    r   Úlfdirstatestatusr½   ó   s^  € Ø�Œ:€DÝŒOÑÔ€EØ *× 1Ò 1Ø˜ E°Àð !2ñ !ô !Ñ€FˆAˆ~ð ”j !¤'ˆe€HØ�Œ:€DØð 8ð 8ˆð	Ø� ™œÔ'ˆDˆDøÝð 	ð 	ð 	ØˆDˆDˆDð	øøøàð 
	8•} TÑ*Ô*­h°t·z²zÀ%Ñ7HÔ7HÑ.IÔ.IÒIÐIØ�OŠO˜EÑ"Ô"Ð"Ð"à�LŠL˜ÑÔÐØ�e”×"Ò"Ñ$Ô$ˆBØ”:ˆDØ”:ˆDÝÔ/°°NÑCÔCˆEØÐ Ø" D¨%Ð0�
Ø×$Ò$ U¨JÑ7Ô7Ð7øØ€Hs   ÁA+Á+A:Á9A:c                 óx   ‡ ‡— |€t          ‰ ¦  «        }ˆ ˆfd„‰ ‰                              |¦  «        D ¦   «         S )zNreturn a list of largefiles in the working copy or the
    specified changesetNc                 óp   •— g | ]2}‰€‰j                              |¦  «        j        ¯#t          |¦  «        ‘Œ3S rP   )r   Ú	get_entryÚany_trackedr–   )Ú.0rd   r   Úrevs     €€r   ú
<listcomp>zlistlfiles.<locals>.<listcomp>  sC   ø€ ð ð ð àØˆ?˜dœm×5Ò5°aÑ8Ô8ÔDˆ?õ 	�Q‰Œàˆ?ˆ?rB   )r’   r“   )r   rÃ   rƒ   s   `` r   Ú
listlfilesrÅ     sX   øø€ ð €Ý# DÑ)Ô)ˆðð ð ð ð à�c”—’ Ñ(Ô(ðñ ô ð rB   Fc                 ó^   — t           j                             t          | ||¦  «        ¦  «        S )zBReturn true if a largefile with the given hash exists in the store)r,   r-   rQ   rV   ©r   r@   Ú
forcelocals      r   ÚinstorerÉ     s"   € åŒ7�>Š>�) D¨$°
Ñ;Ô;Ñ<Ô<Ð<rB   c                 óº   — |s:|                       ¦   «         r&| j                             | j        t          |¦  «        S | j                             t          |¦  «        S )zbReturn the correct location in the repository largefiles store for a
    file with the given hash.)Úsharedr   ÚreljoinÚ
sharedpathr    r>   rÇ   s      r   rV   rV   "  sO   € ð ð A˜$Ÿ+š+™-œ-ð AØŒx×Ò ¤µ¸4Ñ@Ô@Ð@ØŒ8�=Š=� 4Ñ(Ô(Ð(rB   c                 óÄ   — t          | |d¦  «        }t          | |¦  «        r|dfS |                      ¦   «         r$t          | |d¦  «        rt          | |d¦  «        dfS |dfS )zÓSearch through the local store path(s) to find the file for the given
    hash.  If the file is not found, its path in the primary store is returned.
    The return value is a tuple of (path, exists(path)).
    FT)rV   rÉ   rË   ©r   r@   r-   s      r   rT   rT   *  su   € õ �T˜4 Ñ'Ô'€Dåˆt�TÑÔð 1Ø�dˆ|ÐØ	�Š‰Œð 1�7 4¨¨tÑ4Ô4ð 1Ý˜˜t TÑ*Ô*¨DÐ0Ð0à�%ˆ=ÐrB   c                 ó"  — | j         }t          | |¦  «        }|€dS |                     |                     |                     |¦  «        ¦  «        ¦  «         t          |d¦  «        5 } ||d¦  «        5 }t          t          j        |¦  «        |¦  «        }ddd¦  «         n# 1 swxY w Y   ddd¦  «         n# 1 swxY w Y   ||k    rD| j	         
                    t          d¦  «        |||fz  ¦  «         |                     |¦  «         dS dS )a.  Copy the specified largefile from the repo or system cache to
    filename in the repository. Return true on success or false if the
    file was not found in either cache (which should not happened:
    this is meant to be called only after ensuring that the needed
    largefile exists in the cache).NFr*   s   wbs'   %s: data corruption in %s with hash %s
T)ÚwvfsrW   r+   r.   r>   r   Úcopyandhashr   r2   r$   Úwarnr   Úunlink)r   r@   ÚfilenamerÑ   r-   ÚsrcfdÚdestfdÚgothashs           r   ÚcopyfromcacherÙ   <  s©  € ð Œ9€DÝ�D˜$ÑÔ€DØ€|ØˆuØ‡M‚M�$—,’,˜tŸyšy¨Ñ2Ô2Ñ3Ô3Ñ4Ô4Ð4õ 
ˆd�EÑ	Ô	ð A˜e T T¨(°EÑ%:Ô%:ð A¸fÝ�dÔ0°Ñ7Ô7¸Ñ@Ô@ˆðAð Að Añ Aô Að Að Að Að Að Að Aøøøð Að Að Að Að Að Að Añ Aô Að Að Að Að Að Að Aøøøð Að Að Að Aà�$‚€ØŒ�ŠÝÐ9Ñ:Ô:Ø˜˜wÐ'ñ(ñ	
ô 	
ð 	
ð 	�Š�HÑÔÐØˆuØˆ4s6   Á'B:Á4#B#ÂB:Â#B'	Â'B:Â*B'	Â+B:Â:B>ÃB>c                 ó0  — | j         }t          ||         ¦  «        }t          | |¦  «        rd S |                     |¦  «        r&t	          | |                     |¦  «        |¦  «         d S | j                             t          d¦  «        ||fz  ¦  «         d S )Ns0   %s: largefile %s not available from local store
)	rÑ   rª   rÉ   rQ   Úcopytostoreabsoluter>   r$   rÓ   r   )r   ÚctxÚfileÚfstandinrÑ   r@   s         r   Úcopytostorerß   U  s¡   € ØŒ9€DÝ˜˜XœÑ'Ô'€DÝˆt�TÑÔð ØˆØ‡{‚{�4ÑÔð 
Ý˜D $§)¢)¨D¡/¤/°4Ñ8Ô8Ð8Ð8Ð8àŒ�ŠÝÐBÑCÔCØ�Tˆlññ	
ô 	
ð 	
ð 	
ð 	
rB   c                 ó¶   — | |         }|                      ¦   «         D ];}t          |¦  «        }|�(||                     ¦   «         v rt          | |||¦  «         Œ<dS )z4Copy all largefiles in a given revision to the storeN)Úfilesr–   Úmanifestrß   )r   ÚnoderÜ   rÕ   Úrealfiles        r   Úcopyalltostorerå   c  sh   € ð ˆtŒ*€CØ—I’I‘K”Kð 7ð 7ˆÝ Ñ)Ô)ˆØÐ H°·²±´Ð$>Ð$>Ý˜˜c 8¨XÑ6Ô6Ð6øð7ð 7rB   c                 ój  — t          | j        |¦  «        r3t          t          | j        |¦  «        t	          | |¦  «        ¦  «         d S t          j        t          j         	                    t	          | |¦  «        ¦  «        ¦  «         t          |d¦  «        5 }t          j        t	          | |¦  «        | j        j        ¬¦  «        5 }t          j        |¦  «        D ]}|                     |¦  «         Œ	 d d d ¦  «         n# 1 swxY w Y   d d d ¦  «         n# 1 swxY w Y   t!          | |¦  «         d S )Nr*   )Ú
createmode)rR   r$   r<   rA   rV   r   r+   r,   r-   r.   r   r1   Ústorerç   r2   r3   Úlinktousercache)r   rÝ   r@   r9   r:   r;   s         r   rÛ   rÛ   m  s—  € Ý�4”7˜DÑ!Ô!ð 
$Ý�]˜4œ7 DÑ)Ô)­9°T¸4Ñ+@Ô+@ÑAÔAÐAÐAÐAåŒ•b”g—o’o¥i°°dÑ&;Ô&;Ñ<Ô<Ñ=Ô=Ð=Ý�$˜ÑÔð 	& $ÝÔ$Ý˜$ Ñ%Ô%°$´*Ô2Gðñ ô ð &àÝ!Ô/°Ñ5Ô5ð &ð &�EØ—J’J˜uÑ%Ô%Ð%Ð%ð&ð&ð &ð &ñ &ô &ð &ð &ð &ð &ð &ð &øøøð &ð &ð &ð &ð	&ð 	&ð 	&ñ 	&ô 	&ð 	&ð 	&ð 	&ð 	&ð 	&ð 	&øøøð 	&ð 	&ð 	&ð 	&õ 	˜˜dÑ#Ô#Ð#Ð#Ð#s6   Â/DÃ-DÃ5DÄD	ÄDÄD	Ä	DÄDÄDc                 ól   — t          | j        |¦  «        }t          t          | |¦  «        |¦  «         dS )zRLink / copy the largefile with the specified hash from the store
    to the cache.N)rA   r$   r<   rV   rÏ   s      r   ré   ré   {  s5   € õ ˜œ $Ñ'Ô'€DÝ��4˜Ñ	Ô	 Ñ%Ô%Ð%Ð%Ð%rB   c                 óh  ‡‡— | j         Št          Šd„ }|rk|                     ¦   «         sWˆˆfd„|                     ¦   «         D ¦   «         }|s‰                     ‰¦  «        g}t          j        | d         ||¬¦  «        }n1t          j        | d         ‰                     ‰¦  «        g|¬¦  «        }|S )zDReturn a match object that applies rmatcher to the standin directoryc                 ó   — d S rP   rw   )rd   Úmsgs     r   r…   z#getstandinmatcher.<locals>.<lambda>ˆ  s   € ˜4€ rB   c                 ó<   •— g | ]}‰                      ‰|¦  «        ‘ŒS rw   )r>   )rÂ   ÚpatÚ
standindirrÑ   s     €€r   rÄ   z%getstandinmatcher.<locals>.<listcomp>‹  s'   ø€ ÐGÐGÐG¨s�—	’	˜* cÑ*Ô*ÐGÐGÐGrB   N)Úbadfn)rÑ   Ú	shortnamer¦   rá   r>   r   r
   )r   Úrmatcherrñ   Úpatsr
   rð   rÑ   s        @@r   r’   r’   ‚  sÃ   øø€ àŒ9€DÝ€Jð  Ð€Eàð P˜ŸšÑ)Ô)ð PØGÐGÐGÐGÐG°h·n²nÑ6FÔ6FÐGÑGÔGˆØð 	+Ø—I’I˜jÑ)Ô)Ð*ˆDÝ”˜d 4œj¨$°eÐ<Ñ<Ô<ˆˆõ ”˜d 4œj¨4¯9ª9°ZÑ+@Ô+@Ð*AÈÐOÑOÔOˆØ€LrB   c                 óR   ‡‡— t          | ‰¦  «        }|j        Šˆˆfd„}||_        |S )z©Return a matcher that accepts standins corresponding to the
    files accepted by rmatcher. Pass the list of files in the matcher
    as the paths specified by the user.c                 ó^   •—  ‰| ¦  «        o!‰                      t          | ¦  «        ¦  «        S rP   )Úmatchfnr–   )rd   Ú	isstandinró   s    €€r   Úcomposedmatchfnz.composestandinmatcher.<locals>.composedmatchfnœ  s*   ø€ Øˆy˜‰|Œ|ÐA × 0Ò 0µ¸a±´Ñ AÔ AÐArB   )r’   r÷   )r   ró   Úsmatcherrù   rø   s    `  @r   Úcomposestandinmatcherrû   •  sP   øø€ õ !  xÑ0Ô0€HØÔ €IðBð Bð Bð Bð Bð Bð '€HÔà€OrB   c                 ó:   — t           t          j        | ¦  «        z   S )zLReturn the repo-relative path to the standin for the specified big
    file.)Úshortnameslashr   Úpconvert©rÕ   s    r   rž   rž   ¤  s   € õ �DœM¨(Ñ3Ô3Ñ3Ð3rB   c                 ó6   — |                       t          ¦  «        S )zsReturn true if filename is a big file standin. filename must be
    in Mercurial's internal form (slash-separated).)Ú
startswithrý   rÿ   s    r   rø   rø   ±  s   € ð ×Ò�~Ñ.Ô.Ð.rB   c                 ó®   — t          j        | ¦  «                             dd¦  «        }t          |¦  «        dk    r|d         t          k    r|d         S d S )Nr   é   é   r   )r   rþ   Úsplitr”   rò   )rÕ   Úbitss     r   r–   r–   ·  sN   € õ Œ=˜Ñ"Ô"×(Ò(¨¨qÑ1Ô1€DÝ
ˆ4�y„y�A‚~€~˜$˜qœ'¥YÒ.Ð.Ø�AŒwˆàˆtrB   c                 ó  — |                       |¦  «        }| j                             |¦  «        r2t          |¦  «        }t	          |¦  «        }t          | |||¦  «         dS t          j        t          d¦  «        |z  ¦  «        ‚)zŠRe-calculate hash value of lfile and write it into standin

    This assumes that "lfutil.standin(lfile) == standin", for efficiency.
    s   %s: file not found!N)	r¬   rÑ   rQ   r«   ÚgetexecutableÚwritestandinr   r#   r   )r   rŸ   rž   rÝ   r@   Ú
executables         r   Úupdatestandinr  Â  s}   € ð
 �:Š:�eÑÔ€DØ„y×Ò˜ÑÔð =Ý˜‰~Œ~ˆÝ" 4Ñ(Ô(ˆ
Ý�T˜7 D¨*Ñ5Ô5Ð5Ð5Ð5åŒk�!Ð2Ñ3Ô3°eÑ;Ñ<Ô<Ð<rB   c                 óN   — |                       ¦   «                              ¦   «         S )zxread hex hash from given filectx of standin file

    This encapsulates how "standin" data is stored into storage layer.)ÚdataÚstrip)r·   s    r   rª   rª   Ð  s   € ð �9Š9‰;Œ;×ÒÑÔÐrB   c                 óB   — |                       ||dz   |rdpd¦  «         dS )z#write hash to <repo.root>/<standin>ó   
ó   xrB   N)Úwwrite)r   rž   r@   r
  s       r   r	  r	  ×  s,   € à‡K‚K�˜ ™ zÐ':°dÐ'A¸cÑBÔBÐBÐBÐBrB   c                 óÊ   — t          j        d¦  «        }| D ],}|                     |¦  «         |                     |¦  «         Œ-t	          |                     ¦   «         ¦  «        S )z‡Read bytes from instream (iterable) and write them to outfile,
    computing the SHA-1 hash of the data along the way. Return the hash.rB   )r   Úsha1Úupdater3   r   Údigest)ÚinstreamÚoutfileÚhasherr  s       r   rÒ   rÒ   Ü  s_   € õ Œ]˜3ÑÔ€FØð ð ˆØ�Š�dÑÔÐØ�Š�dÑÔÐÐÝˆv�}Š}‰ŒÑÔÐrB   c                 ó¶   — t           j                             | ¦  «        sdS t          | d¦  «        5 }t	          |¦  «        cd d d ¦  «         S # 1 swxY w Y   d S )NrB   r*   )r,   r-   rQ   r   Úhexsha1)rÝ   Úfds     r   r«   r«   æ  s—   € ÝŒ7�>Š>˜$ÑÔð ØˆsÝ	ˆd�EÑ	Ô	ð ˜bÝ�r‰{Œ{ðð ð ð ñ ô ð ð ð ð ð ð øøøð ð ð ð ð ð s   ²AÁAÁAc                 óŽ   — t          j        | ¦  «        j        }|t          j        z  o|t          j        z  o|t          j        z  S rP   )r,   r5   r6   ÚS_IXUSRÚS_IXGRPÚS_IXOTH)rÕ   r¹   s     r   r  r  í  sA   € ÝŒ7�8ÑÔÔ$€Dà	•”Ñ	ð 	"Ø•D”LÑ ð	"à•D”LÑ ðrB   c                 óF   — d„ } || |¦  «        }|D ]} |||¦  «        }Œ|S )Nc                 ó~   — |                       d¦  «        s| dz  } |                     d¦  «        r
|dd …         }| |z   S )Nr   r  )Úendswithr  )ÚleftÚrights     r   r>   zurljoin.<locals>.join÷  sL   € Ø�}Š}˜TÑ"Ô"ð 	Ø�D‰LˆDØ×Ò˜DÑ!Ô!ð 	Ø˜!˜"˜"”IˆEØ�e‰|ÐrB   rw   )ÚfirstÚsecondÚargr>   ÚurlÚas         r   Úurljoinr+  ö  sI   € ðð ð ð ˆ$ˆu�fÑ
Ô
€CØð ð ˆØˆd�3˜‰lŒlˆˆØ€JrB   c                 óÂ   — t          j        ¦   «         }t          j        | ¦  «        D ]}|                     |¦  «         Œt          |                     ¦   «         ¦  «        S )zUhexsha1 returns the hex-encoded sha1 sum of the data in the file-like
    object data)r   r  r   r2   r  r   r  )ÚfileobjÚhr;   s      r   r  r    sN   € õ 	Œ‰Œ€AÝÔ# GÑ,Ô,ð ð ˆØ	�Š�‰ŒˆˆÝˆq�xŠx‰zŒz‰?Œ?ÐrB   c                 ó.   — t          j        | |d¦  «        S )Nr*   )r	   Úhttpsendfile)r$   rÕ   s     r   r0  r0    s   € ÝÔ& r¨8°UÑ;Ô;Ð;rB   c                 ód   — t          j        t          j                             | ¦  «        ¦  «        S )z@Return a version of path normalized for use with the lfdirstate.)r   rþ   r,   r-   Únormpath)r-   s    r   r]   r]     s"   € åŒ=�œ×)Ò)¨$Ñ/Ô/Ñ0Ô0Ð0rB   c                 ó¾   — d| j         v r2t          d„ | j                             ¦   «         D ¦   «         ¦  «        rdS t          t	          | j        | d¦  «        ¦  «        S )z,Return true if the repo is a largefile repo.r   c              3   ó4   K  — | ]}t           |d          v V — ŒdS )r  N)rý   )rÂ   rd   s     r   ú	<genexpr>zislfilesrepo.<locals>.<genexpr>  s<   è è € ð 2ð 2Ø#$�˜!˜Aœ$Ðð2ð 2ð 2ð 2ð 2ð 2rB   TF)r   Úanyrè   Ú	datafilesr    r$   r„   s    r   Úislfilesrepor8    sl   € à˜Ô)Ð)Ð)­cð 2ð 2Ø(,¬
×(<Ò(<Ñ(>Ô(>ð2ñ 2ô 2ñ /ô /Ð)ð ˆtå�~˜dœg t¨UÑ3Ô3Ñ4Ô4Ð4rB   c                   ó   — e Zd Zd„ ZdS )Ústoreprotonotcapablec                 ó   — || _         d S rP   )Ú
storetypes)r^   r<  s     r   Ú__init__zstoreprotonotcapable.__init__!  s   € Ø$ˆŒˆˆrB   N)r}   r~   r   r=  rw   rB   r   r:  r:     s#   € € € € € ð%ð %ð %ð %ð %rB   r:  c                 ó  — g }t          | ¦  «        }| d          }| j                             |g dd¬¦  «        D ]Q}t          |¦  «        }	 t	          ||         ¦  «        }n# t
          $ r d }Y nw xY w|                     ||f¦  «         ŒR|S )NFr†   )r’   r   r“   r–   rª   ÚIOErrorr­   )r   r�   rƒ   r¶   rž   rŸ   r@   s          r   Úgetstandinsstater@  %  sµ   € Ø€HÝ Ñ%Ô%€GØ�Œ:€DØ”=×%Ò%Ø˜" e°Uð &ñ ô ð 'ð 'ˆõ ˜WÑ%Ô%ˆð	Ý   g¤Ñ/Ô/ˆDˆDøÝð 	ð 	ð 	ØˆDˆDˆDð	øøøà�Š˜ ˜Ñ&Ô&Ð&Ð&Ø€Os   Á
A Á A/Á.A/c                 óð   — t          |¦  «        }|| j        vr|                     |dd¬¦  «         d S | j                             |¦  «        }|                     ||j        |j        |j        d¬¦  «         d S )NF)rŠ   r‹   T)r‹   rŠ   Úp2_inforŒ   )rž   r   r—   rÀ   ÚtrackedrŠ   rB  )r   rœ   rŸ   rt   Ú	lfstandinÚentrys         r   ÚsynclfdirstaterF  5  s�   € Ý˜‘”€IØ˜œÐ%Ð%Ø×Ò˜u°À5ÐÑIÔIÐIÐIÐIà”×'Ò'¨	Ñ2Ô2ˆØ×ÒØØ”}ØÔ'Ø”MØð 	ñ 	
ô 	
ð 	
ð 	
ð 	
rB   c                 óª  — |                      ¦   «         }t          |j        |¦  «        }|                     ¦   «         5   | |¦  «         |                     ¦   «         D ]%}t          |¦  «        }|�t          |||d¦  «         Œ&	 d d d ¦  «         n# 1 swxY w Y   |                     |                     ¦   «         ¦  «         t          ||¦  «         d S rv   )
r   r    r$   r•   rá   r–   rF  r3   Úcurrenttransactionrå   )ÚorigrÜ   rã   r   rœ   rd   rŸ   s          r   ÚmarkcommittedrJ  D  s  € Ø�8Š8‰:Œ:€Då ¤¨Ñ.Ô.€JØ	×	 Ò	 Ñ	"Ô	"ð ?ð ?ØˆˆT‰
Œ
ˆ
ð —’‘”ð 	?ð 	?ˆAÝ  ‘O”OˆEØÐ Ý˜t Z°¸Ñ>Ô>Ð>øð	?ð?ð ?ð ?ñ ?ô ?ð ?ð ?ð ?ð ?ð ?ð ?øøøð ?ð ?ð ?ð ?ð  ×Ò�T×,Ò,Ñ.Ô.Ñ/Ô/Ð/õ �4˜ÑÔÐÐÐs   ¾ABÂBÂBc                 ó¼   — t          | ¦  «                             t          |¦  «        ¦  «        }g }|D ]'}|d         |vr|                     |d         ¦  «         Œ(|S )Nr   )ÚsetÚsymmetric_differencer­   )ÚoldstandinsÚnewstandinsÚchangedstandinsÚfilelistrd   s        r   ÚgetlfilestoupdaterR  c  sd   € Ý˜+Ñ&Ô&×;Ò;½CÀÑ<LÔ<LÑMÔM€OØ€HØð "ð "ˆØˆQŒ4�xÐÐØ�OŠO˜A˜aœDÑ!Ô!Ð!øØ€OrB   c           
      ó†  ‡ — ‰ j         j        } |t          d¦  «        t          d¦  «        t          |¦  «        ¬¦  «        5 }t	          |¦  «        D �]Ó\  }}|                     |¦  «         ˆ fd„‰ |                              ¦   «         D ¦   «         }t          ‰ d¬¦  «        5  ‰ |         }d d d ¦  «         n# 1 swxY w Y   t          | 	                    ¦   «         ¦  «        }	t          |¦  «        dk    rö| 
                    ¦   «         }
|                     ¦   «          
                    ¦   «         }|                     ¦   «          
                    ¦   «         }|D ]}||
vr|	                     |¦  «         Œ|D ]}||
vr|	                     |¦  «         Œ|
D ]W}|
|         |                     |d ¦  «        k    s |
|         |                     |d ¦  «        k    r|	                     |¦  «         ŒX|	D ]4}t          |¦  «        r#||v r ||t!          ||         ¦  «        ¦  «         Œ5�ŒÕ	 d d d ¦  «         d S # 1 swxY w Y   d S )Ns   finding outgoing largefiless	   revisions)ÚunitÚtotalc                 ó*   •— g | ]}|‰j         k    ¯|‘ŒS rw   )Únullid)rÂ   Úpr   s     €r   rÄ   z%getlfilestoupload.<locals>.<listcomp>u  s%   ø€ ÐHÐHÐH˜Q°q¸D¼KÒ7GÐ7G�qÐ7GÐ7GÐ7GrB   F)r   r  )r$   Úmakeprogressr   r”   Ú	enumerater  Úparentsr   rL  rá   râ   Úp1Úp2rn   rH   rø   rª   )r   ÚmissingÚaddfuncrY  ÚprogressÚiÚnr[  rÜ   rá   ÚmcÚmp1Úmp2rd   Úfns   `              r   Úgetlfilestouploadrg  l  sÈ  ø€ Ø”7Ô'€LØ	ˆÝ	Ð
(Ñ)Ô)Ýˆ|‰_Œ_Ý�'‰lŒlð
ñ 
ô 
ð 8ð 
Ý˜gÑ&Ô&ð 	8ñ 	8‰DˆAˆqØ�OŠO˜AÑÔÐØHÐHÐHÐH $ q¤'§/¢/Ñ"3Ô"3ÐHÑHÔHˆGå˜$ eÐ,Ñ,Ô,ð ð Ø˜1”g�ðð ð ñ ô ð ð ð ð ð ð øøøð ð ð ð õ ˜Ÿ	š	™œÑ$Ô$ˆEÝ�7‰|Œ|˜qÒ Ð Ø—\’\‘^”^�Ø—f’f‘h”h×'Ò'Ñ)Ô)�Ø—f’f‘h”h×'Ò'Ñ)Ô)�Øð %ð %�AØ �{�{ØŸ	š	 !™œ˜øØð %ð %�AØ �{�{ØŸ	š	 !™œ˜øØð %ð %�AØ˜!”u §¢¨¨4Ñ 0Ô 0Ò0Ð0°B°q´E¸S¿WºWÀQÈÑ=MÔ=MÒ4MÐ4MØŸ	š	 !™œ˜øØð 8ð 8�Ý˜R‘=”=ð 8 R¨3 Y YØ�G˜B¥¨c°"¬gÑ 6Ô 6Ñ7Ô7Ð7øñ8ð+	8ð8ð 8ð 8ñ 8ô 8ð 8ð 8ð 8ð 8ð 8ð 8ð 8øøøð 8ð 8ð 8ð 8ð 8ð 8s8   ÁA"H6Â%	B:Â.H6Â:B>Â>H6ÃB>ÃE&H6È6H:È=H:c                 ó  ‡‡‡— | j         }|�|                     ¦   «         rÉt          || ¦  «        }t          j        ¦   «         }|                     |g ddd¬¦  «        \  }}}||j        z   |j        z   |j        z   }t          | ¦  «        Š‰D ]Z}	|	|v rTt          |	¦  «        }
| j
                             |
¦  «        r+| j
                             |	¦  «        rt          | |	|
¦  «         Œ[|S t          | ¦  «        Š|                      |                     ¦   «         ‰¦  «        |_        t!          | |¦  «        }| j                             |g dd¬¦  «        Š‰s|S t          || ¦  «        }‰D ]<}
t'          |
¦  «        }	|                     |	¦  «        j        rt          | |	|
¦  «         Œ=t-          j        |¦  «        }|j        Š|xj        t1          ‰¦  «        z  c_        g }|j        D ]Ž}t          |¦  «        }
|‰v s|
‰v r`| j                             |
¦  «        j        s!| j                             |¦  «        j        sŒXn | j                             |¦  «        j        sŒy|                     |¦  «         Œ�||_        ˆˆˆfd„}||_        |S )z¯Update standins in the working directory according to specified match

    This returns (possibly modified) ``match`` object to be used for
    subsequent commit process.
    NFr£   r†   c                 ó*   •—  ‰| ¦  «        r| ‰vS | ‰v S rP   rw   )rd   ÚlfilesÚorigmatchfnr�   s    €€€r   r÷   z&updatestandinsbymatch.<locals>.matchfnì  s'   ø€ Øˆ;�q‰>Œ>ð 	!Ø˜F�?Ð"à˜�=Ð rB   )r$   r¦   r    r¥   r§   r¨   ÚaddedÚremovedrÅ   rž   rÑ   rQ   r  Ú
_subdirlfsrá   Ú_filesrû   r   r“   r–   rÀ   rC  Úcopyr÷   ÚsortedrÁ   r­   )r   r
   r$   rœ   Ú
dirtymatchr³   r´   rµ   ÚmodifiedfilesrŸ   rÞ   rú   Úactualfilesrd   r÷   rj  rk  r�   s                  @@@r   Úupdatestandinsbymatchru  �  sà  øøø€ ð 
Œ€Bð
 €}˜Ÿš™œ€}õ $ B¨Ñ-Ô-ˆ
Ý”_Ñ&Ô&ˆ
Ø$.×$5Ò$5Ø ¨U¸%Èð %6ñ %
ô %
Ñ!ˆ��>ð  ¤Ñ+¨a¬gÑ5¸¼	ÑAˆÝ˜DÑ!Ô!ˆð ð 	=ð 	=ˆEØ˜Ð%Ð%Ý" 5™>œ>�Ø”9×#Ò# HÑ-Ô-ð =ð ”y×'Ò'¨Ñ.Ô.ð =Ý% d¨E°8Ñ<Ô<Ð<øàˆå˜ÑÔ€FØ—?’? 5§;¢;¡=¤=°&Ñ9Ô9€E„Lõ % T¨5Ñ1Ô1€HØŒ}×!Ò!Ø˜2 u°eð "ñ ô €Hð ð Øˆõ    DÑ)Ô)€JØð 1ð 1ˆÝ˜XÑ&Ô&ˆØ×Ò Ñ&Ô&Ô.ð 	1Ý˜$  xÑ0Ô0Ð0øõ ŒI�eÑÔ€EØ”-€Kð
 
€L„L•F˜8Ñ$Ô$Ñ$€L„Là€KØŒ\ð ð ˆÝ˜1‘:”:ˆð �ˆ;ˆ;˜( hÐ.Ð.Ø”=×*Ò*¨8Ñ4Ô4Ô<ð Ø”}×.Ò.¨qÑ1Ô1Ô9ð Øðà”]×,Ò,¨QÑ/Ô/Ô;ð Øà×Ò˜1ÑÔÐÐØ€E„Lð!ð !ð !ð !ð !ð !ð !ð €E„Mà€LrB   c                   ó   — e Zd ZdZd„ Zd„ ZdS )Úautomatedcommithooka®  Stateful hook to update standins at the 1st commit of resuming

    For efficiency, updating standins in the working directory should
    be avoided while automated committing (like rebase, transplant and
    so on), because they should be updated before committing.

    But the 1st commit of resuming automated committing (e.g. ``rebase
    --continue``) should update them, because largefiles may be
    modified manually.
    c                 ó   — || _         d S rP   )Úresuming)r^   ry  s     r   r=  zautomatedcommithook.__init__  s   € Ø ˆŒˆˆrB   c                 óB   — | j         rd| _         t          ||¦  «        S |S rv   )ry  ru  )r^   r   r
   s      r   Ú__call__zautomatedcommithook.__call__  s(   € ØŒ=ð 	Ø!ˆDŒMÝ(¨¨uÑ5Ô5Ð5àˆLrB   N)r}   r~   r   Ú__doc__r=  r{  rw   rB   r   rw  rw  ÷  s<   € € € € € ð	ð 	ð!ð !ð !ðð ð ð ð rB   rw  c                 ób   — |€"t          j        |d¦  «        r|j        d         S |r| j        S d„ S )a)  Return the function to write largefiles specific status out

    If ``forcibly`` is ``None``, this returns the last element of
    ``repo._lfstatuswriters`` as "default" writer function.

    Otherwise, this returns the function to always write out (or
    ignore if ``not forcibly``) status.
    Ns   _largefilesenabledéÿÿÿÿc                  ó   — d S rP   rw   )rí   Úoptss     r   r…   z!getstatuswriter.<locals>.<lambda>  s   € ¨€ rB   )r   ÚsafehasattrÚ_lfstatuswritersr§   )r$   r   Úforciblys      r   Úgetstatuswriterr„    sD   € ð Ð�DÔ,¨TÐ3HÑIÔIÐØÔ$ RÔ(Ð(àð 	-Ø”9Ðà,Ð,Ð,rB   )T)r   )NN)FrP   )Nr|  Ú
contextlibrp  r,   r5   Úmercurial.i18nr   Úmercurial.noder   Úmercurial.pycompatr   Ú	mercurialr   r   r   r	   r
   r¥   r   r   r   r   r   r   r�   Úmercurial.utilsr   Úmercurial.dirstateutilsr   rò   rý   r    Úcontextmanagerr   r(   r<   rA   r?   rR   rW   rY   r    r½   rÅ   rÉ   rV   rT   rÙ   rß   rå   rÛ   ré   r’   rû   rž   rø   r–   r  rª   r	  rÒ   r«   r  r+  r  r0  r]   r8  Ú	Exceptionr:  r@  rF  rJ  rR  rg  ru  rw  r„  rw   rB   r   ú<module>rŽ     sh  ðð NÐ Mà Ð Ð Ð Ø €€€Ø 	€	€	€	Ø €€€à Ð Ð Ð Ð Ð Ø Ð Ð Ð Ð Ð Ø #Ð #Ð #Ð #Ð #Ð #ðð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð %Ð $Ð $Ð $Ð $Ð $Ø -Ð -Ð -Ð -Ð -Ð -à€	Ø˜TÑ!€Ø€ð
 Ôð!ð !ð !ñ Ôð!ðð ð ð ð 
-ð 
-ð 
-ð1ð 1ð 1ð $ð /Mð /Mð /Mð /Mðd ð  ð  ð
ð ð ð '4ð '4ð '4ð '4ð '4˜Ô*ñ '4ô '4ð '4ðT%ð %ð %ð %ðPð ð ð6ð ð ð ð=ð =ð =ð =ð
)ð )ð )ð )ðð ð ð$ð ð ð2
ð 
ð 
ð7ð 7ð 7ð$ð $ð $ð&ð &ð &ðð ð ð ð&ð ð ð
4ð 
4ð 
4ð/ð /ð /ðð ð ð=ð =ð =ðð ð ðCð Cð Cð
 ð  ð  ðð ð ðð ð ðð ð ðð ð ð<ð <ð <ð1ð 1ð 1ð
5ð 5ð 5ð%ð %ð %ð %ð %˜9ñ %ô %ð %ð
ð ð ð 
ð 
ð 
ðð ð ð>ð ð ð8ð 8ð 8ðBgð gð gðTð ð ð ð ñ ô ð ð.-ð -ð -ð -ð -ð -rB   