





"""simple docstring"""




def 	a_    (							_lowercase	,						_lowercase       ):
						_UpperCamelCase      : int         =   [1]
						for i in range(2	,						_lowercase       ):
												factorials.append(factorials[-1] * i       )
						assert 0 <= k < factorials[-1] * n, "k out of bounds"

						_UpperCamelCase      : str         =   []
						_UpperCamelCase      : List[Any]         =   list(range(_lowercase       )       )

						# Find permutation
						while factorials:
												_UpperCamelCase      : Optional[Any]         =   factorials.pop()
												_UpperCamelCase       ,							_UpperCamelCase      : Dict         =   divmod(_lowercase	,						_lowercase       )
												permutation.append(elements[number]       )
												elements.remove(elements[number]       )
						permutation.append(elements[0]       )

						return permutation


if __name__ == "__main__":
						import doctest

						doctest.testmod()










"""simple docstring"""




UpperCamelCase_									=[
    """DownloadConfig""",
    """DownloadManager""",
    """DownloadMode""",
    """StreamingDownloadManager""",
]

from .download_config import DownloadConfig
from .download_manager import DownloadManager, DownloadMode
from .streaming_download_manager import StreamingDownloadManager



