o bc9@sz ddlZddlZddlZddlZgdZddlmZejZ[ddZ ej dddd d Z d d Z d dZ ddZdS)N)filterfnmatch fnmatchcase translate)countcCs$ tj|}tj|}t||SN)ospathnormcaser)namepatr h/home/lily/lilypond-2.24.1/release/binaries/dependencies/install/Python-3.10.8/lib/python3.10/fnmatch.pyrs   rT)maxsizetypedcCs<t|trt|d}t|}t|d}nt|}t|jS)Nz ISO-8859-1) isinstancebytesstrrrecompilematch)r Zpat_strZres_strresr r r_compile_pattern,s    rcCsl g}tj|}t|}tjtur"|D] }||r||q|S|D]}|tj|r3||q$|Sr)rr r r posixpathappend)namesr resultrr r r rr6s    rcCs t|}||duSr)r)r r rr r rrFs rcCs t}g}|j}dt|}}||kr^||}|d}|dkr/|r)|d|ur-||n+|dkr9|dn!|dkrS|}||krN||dkrN|d}||kr\||d kr\|d}||krt||d krt|d}||krt||d ksf||kr}|d n|||}d |vr|d d }ng} ||dkr|dn|d} |d | |} | dkrn| ||| | d}| d} q|||} | r| | n| dd 7<tt| dddD]*} | | dd| | dkr| | ddd| | dd| | d<| | =qd dd| D}tdd|}|d}|s%|dn5|dkr/|dn+|ddkr?d|dd}n |ddvrJd |}|d|d n|t |||ks|} g}|j}dt| }}||kr| ||ur|| ||d7}||kr| ||usx||kr|d7}||kr|dnNg} ||kr| ||ur| | ||d7}||kr| ||usd| } ||kr|d|| nt }|d|d| d|d||ksd|}d|dS) Nr*?.[!]z\[-\\\Tcss$|] }|ddddVqdS)r'r(r&z\-N)replace).0sr r r sztranslate..z([&~|])z\\\1z(?!)^)r/r#z.*z(?=(?P.*?z))(?P=g)z(?s:z)\Z) objectrlenr+findrangejoinrsubescape _nextgroupnum)r STARraddincjZstuffZchunkskchunkZinpZfixedZgroupnumr r rrPs       ,    C        r)rrr functools__all__ itertoolsr__next__r9r lru_cacherrrrr r r rs