Ë
    ?—ÖjT  ã                  óê   — d Z ddlmZ ddlZddlmZmZ ddlmZ	 ddl
Z
erddlmZ ej                  j                  ej                  j                  e
j                   «      «      Z G d„ de	«      Zd
d	„Zy)a…  Module for loading various model files along with any `moto-extras`

Heavily leverages the existing botocore loading mechanism, which expects
a particular directory layout and file naming convention:

    <MOTO_ROOT>
      |
      |-- service_name
      |   |-- YYYY-MM-DD (matching API version for service_name)
      |       |-- service-2.moto-extras.json
      |       |-- paginators-1.moto-extras.json

The ``moto-extras`` files represent extra data to be applied to the model
after it is loaded. Data in these files could augment or modify the AWS
service model by supplying additional error shapes or default input
values for use by Moto.
é    )ÚannotationsN)ÚTYPE_CHECKINGÚAny)ÚLoader)ÚIteratorc                  ó6   ‡ — e Zd ZdgZ	 	 	 	 	 	 	 	 dˆ fd„Zˆ xZS )r   Úmotoc              #  óh   •K  — |j                  dd«      }t        ‰| �	  |||«      E d {  –—†  y 7 Œ­w)Nú-Ú )ÚreplaceÚsuperÚ_find_extras)ÚselfÚservice_nameÚ	type_nameÚapi_versionÚmoto_service_nameÚ	__class__s        €úN/var/www/photos/backend/venv/lib/python3.12/site-packages/moto/core/loaders.pyr   zLoader._find_extras%   s4   øè ø€ ð )×0Ñ0°°bÓ9ÐÜ‘7Ñ'Ð(9¸9ÀkÓR×RÒRús   ƒ'2ª0«2)r   Ústrr   r   r   r   ÚreturnzIterator[dict[str, Any]])Ú__name__Ú
__module__Ú__qualname__ÚBUILTIN_EXTRAS_TYPESr   Ú__classcell__)r   s   @r   r   r   "   s;   ø„ Ø"˜8ÐðSØðSØ,/ðSØ>AðSà	!÷Sñ Só    r   c                 ó$   — t        t        g¬«      S )N)Úextra_search_paths)r   Ú	moto_root© r   r   Úcreate_loaderr#   ,   s   € Ü¤i [Ô1Ð1r   )r   r   )Ú__doc__Ú
__future__r   ÚosÚtypingr   r   Úbotocore.loadersr   ÚBotocoreLoaderr	   Úcollections.abcr   ÚpathÚdirnameÚabspathÚ__file__r!   r#   r"   r   r   ú<module>r/      sW   ðñõ$ #ã 	ß %å 5ã áÝ(à�G‰G�O‰O˜BŸG™GŸO™O¨D¯M©MÓ:Ó;€	ôSˆ^ô Sô2r   