code: from ..utils import deprecate
  from .attention_processor import (  # noqa: F401
      Attention,
      AttentionProcessor,
      AttnAddedKVProcessor,
      AttnProcessor2_0,
      LoRAAttnProcessor,
      LoRALinearLayer,
      LoRAXFormersAttnProcessor,
      SlicedAttnAddedKVProcessor,
      SlicedAttnProcessor,
      XFormersAttnProcessor,
  )
  from .attention_processor import AttnProcessor as AttnProcessorRename  # noqa: F401
  
  
  deprecate(
      'cross_attention',
      '0.20.0',
      'Importing from cross_attention is deprecated. Please import from diffusers.models.attention_processor instead.',
      standard_warn=False,
  )
  
  
  A_:      Any        =			AttentionProcessor
  
  
  class _lowercase					(       _UpperCAmelCase						):
  
  
  
  
  
  							"""simple docstring"""
  
  
  
  
  							def __init__(    self     ,   *UpperCAmelCase     ,   **UpperCAmelCase  ):
  
  
  
  
  
  
  
  														'''simple docstring'''
  
  
  
  
  
  
  														_lowercase				=	F'''{self.__class__.__name__} is deprecated and will be removed in `0.20.0`. Please use `from diffusers.models.attention_processor import {"".join(self.__class__.__name__.split("Cross"  )  )} instead.'''
  														deprecate("""cross_attention"""     ,   """0.20.0"""     ,   UpperCAmelCase     ,   standard_warn=UpperCAmelCase  )
  														super().__init__(*UpperCAmelCase     ,   **UpperCAmelCase  )
  
  
  
  
  
  
  class _lowercase					(       _UpperCAmelCase						):
  
  
  
  
  
  							"""simple docstring"""
  
  
  
  
  							def __init__(    self     ,   *UpperCAmelCase     ,   **UpperCAmelCase  ):
  
  
  
  
  
  
  
  														'''simple docstring'''
  
  
  
  
  
  
  														_lowercase				=	F'''{self.__class__.__name__} is deprecated and will be removed in `0.20.0`. Please use `from diffusers.models.attention_processor import {"".join(self.__class__.__name__.split("Cross"  )  )} instead.'''
  														deprecate("""cross_attention"""     ,   """0.20.0"""     ,   UpperCAmelCase     ,   standard_warn=UpperCAmelCase  )
  														super().__init__(*UpperCAmelCase     ,   **UpperCAmelCase  )
  
  
  
  
  
  
  class _lowercase					(       _UpperCAmelCase						):
  
  
  
  
  
  							"""simple docstring"""
  
  
  
  
  							def __init__(    self     ,   *UpperCAmelCase     ,   **UpperCAmelCase  ):
  
  
  
  
  
  
  
  														'''simple docstring'''
  
  
  
  
  
  
  														_lowercase				=	F'''{self.__class__.__name__} is deprecated and will be removed in `0.20.0`. Please use `from diffusers.models.attention_processor import {"".join(self.__class__.__name__.split("Cross"  )  )} instead.'''
  														deprecate("""cross_attention"""     ,   """0.20.0"""     ,   UpperCAmelCase     ,   standard_warn=UpperCAmelCase  )
  														super().__init__(*UpperCAmelCase     ,   **UpperCAmelCase  )
  
  
  
  
  
  
  class _lowercase					(       _UpperCAmelCase						):
  
  
  
  
  
  							"""simple docstring"""
  
  
  
  
  							def __init__(    self     ,   *UpperCAmelCase     ,   **UpperCAmelCase  ):
  
  
  
  
  
  
  
  														'''simple docstring'''
  
  
  
  
  
  
  														_lowercase				=	F'''{self.__class__.__name__} is deprecated and will be removed in `0.20.0`. Please use `from diffusers.models.attention_processor import {"".join(self.__class__.__name__.split("Cross"  )  )} instead.'''
  														deprecate("""cross_attention"""     ,   """0.20.0"""     ,   UpperCAmelCase     ,   standard_warn=UpperCAmelCase  )
  														super().__init__(*UpperCAmelCase     ,   **UpperCAmelCase  )
  
  
  
  
  
  
  class _lowercase					(       _UpperCAmelCase						):
  
  
  
  
  
  							"""simple docstring"""
  
  
  
  
  							def __init__(    self     ,   *UpperCAmelCase     ,   **UpperCAmelCase  ):
  
  
  
  
  
  
  
  														'''simple docstring'''
  
  
  
  
  
  
  														_lowercase				=	F'''{self.__class__.__name__} is deprecated and will be removed in `0.20.0`. Please use `from diffusers.models.attention_processor import {"".join(self.__class__.__name__.split("Cross"  )  )} instead.'''
  														deprecate("""cross_attention"""     ,   """0.20.0"""     ,   UpperCAmelCase     ,   standard_warn=UpperCAmelCase  )
  														super().__init__(*UpperCAmelCase     ,   **UpperCAmelCase  )
  
  
  
  
  
  
  class _lowercase					(       _UpperCAmelCase						):
  
  
  
  
  
  							"""simple docstring"""
  
  
  
  
  							def __init__(    self     ,   *UpperCAmelCase     ,   **UpperCAmelCase  ):
  
  
  
  
  
  
  
  														'''simple docstring'''
  
  
  
  
  
  
  														_lowercase				=	F'''{self.__class__.__name__} is deprecated and will be removed in `0.20.0`. Please use `from diffusers.models.attention_processor import {"".join(self.__class__.__name__.split("Cross"  )  )} instead.'''
  														deprecate("""cross_attention"""     ,   """0.20.0"""     ,   UpperCAmelCase     ,   standard_warn=UpperCAmelCase  )
  														super().__init__(*UpperCAmelCase     ,   **UpperCAmelCase  )
  
  
  
  
  
  
  class _lowercase					(       _UpperCAmelCase						):
  
  
  
  
  
  							"""simple docstring"""
  
  
  
  
  							def __init__(    self     ,   *UpperCAmelCase     ,   **UpperCAmelCase  ):
  
  
  
  
  
  
  
  														'''simple docstring'''
  
  
  
  
  
  
  														_lowercase				=	F'''{self.__class__.__name__} is deprecated and will be removed in `0.20.0`. Please use `from diffusers.models.attention_processor import {"".join(self.__class__.__name__.split("Cross"  )  )} instead.'''
  														deprecate("""cross_attention"""     ,   """0.20.0"""     ,   UpperCAmelCase     ,   standard_warn=UpperCAmelCase  )
  														super().__init__(*UpperCAmelCase     ,   **UpperCAmelCase  )
  
  
  
  
  
  
  class _lowercase					(       _UpperCAmelCase						):
  
  
  
  
  
  							"""simple docstring"""
  
  
  
  
  							def __init__(    self     ,   *UpperCAmelCase     ,   **UpperCAmelCase  ):
  
  
  
  
  
  
  
  														'''simple docstring'''
  
  
  
  
  
  
  														_lowercase				=	F'''{self.__class__.__name__} is deprecated and will be removed in `0.20.0`. Please use `from diffusers.models.attention_processor import {"".join(self.__class__.__name__.split("Cross"  )  )} instead.'''
  														deprecate("""cross_attention"""     ,   """0.20.0"""     ,   UpperCAmelCase     ,   standard_warn=UpperCAmelCase  )
  														super().__init__(*UpperCAmelCase     ,   **UpperCAmelCase  )
  
  
  
style_context: def 					__lowerCAmelCase			(  _A					):
  
  
  
  							"""simple docstring"""
  
  
  							if len(_A					) <= 1:
  														return data
  							else:
  														return [
  														    *quick_sort([e for e in data[1:] if e <= data[0]]					),
  														    data[0],
  														    *quick_sort([e for e in data[1:] if e > data[0]]					),
  														]
  
  
  if __name__ == "__main__":
  				import doctest
  
  				doctest.testmod()
  
  
  