
    ia              
         d 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	 ddl
mZmZmZmZ dd	lmZ dd
lmZmZmZmZmZmZ ddlZddlmZ ddlmZmZmZm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. dZ/ e-de0e1e2e.e0e1e2f                   Z3dAdZ4e+rPddl5m6Z7m8Z8m9Z9m:Z:m;Z; ddl<m=Z=m>Z> ddl?m@Z@mAZA ddlBmCZC ddlDmEZE ddlFmGZGmHZH ddlImJZJmKZKmLZL dd lMmNZN dd!lOmPZP e.d"         ZQ G d# d$          ZRdBd(ZS G d) d*e          ZT G d+ d,e)e3                   ZU G d- d.e          ZV G d/ d0e          ZW G d1 d2          ZX G d3 d4          ZY G d5 d6          ZZ G d7 d8          Z[dd9dCd@Z\dS )Da:  
The MIT License (MIT)

Copyright (c) 2015-present Rapptz

Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
    )annotations)datetime   )MissingApplicationID   )AppCommandContextAppInstallationTypeChannelFlags)TranslationContextLocationTranslationContext
locale_str
Translator)Permissions)AppCommandOptionTypeAppCommandTypeAppCommandPermissionTypeChannelTypeLocaletry_enumN)Hashable)_get_as_snowflake
parse_timesnowflake_timeMISSING)Object)Role)Member)AnyDictGenericListTYPE_CHECKINGOptionalTypeVarUnion)	
AppCommandAppCommandGroupAppCommandChannelAppCommandThreadAppCommandPermissionsGuildAppCommandPermissionsArgumentChoiceAllChannelsChoiceTvalueintreturnboolc                "    d| cxk    odk    nc S )N       r0   s    \/usr/local/lib/hermes-agent/venv/lib/python3.11/site-packages/discord/app_commands/models.pyis_app_command_argument_typer:   @   s$    !    )ApplicationCommandApplicationCommandOptionApplicationCommandOptionChoiceApplicationCommandPermissions"GuildApplicationCommandPermissions)PartialChannelPartialThread)ThreadMetadataThreadArchiveDuration)	Snowflake)ConnectionState)GuildChannelGuild)TextChannelForumChannelForumTag)Thread)User)r&   r'   c                  >    e Zd ZdZdZddZedd            Zdd
ZdS )r.   zRepresents all channels for application command permissions.

    .. versionadded:: 2.0

    Attributes
    -----------
    guild: :class:`~discord.Guild`
        The guild the application command permission is for.
    guildrP   rH   c                    || _         d S NrO   selfrP   s     r9   __init__zAllChannels.__init__l   s    !


r;   r2   r1   c                     | j         j        dz
  S )zc:class:`int`: The ID sentinel used to represent all channels. Equivalent to the guild's ID minus 1.r   )rP   idrT   s    r9   rW   zAllChannels.ido   s     z}q  r;   strc                    d| j          dS )Nz<AllChannels guild=>rO   rX   s    r9   __repr__zAllChannels.__repr__t   s    2TZ2222r;   N)rP   rH   r2   r1   r2   rY   )	__name__
__module____qualname____doc__	__slots__rU   propertyrW   r\   r7   r;   r9   r.   r.   _   sm          I" " " " ! ! ! X!3 3 3 3 3 3r;   r.   dataDict[str, str]Dict[Locale, str]c                >    d |                                  D             S )Nc                @    i | ]\  }}t          t          |          |S r7   )r   r   ).0keyr0   s      r9   
<dictcomp>z#_to_locale_dict.<locals>.<dictcomp>y   s(    HHHZS%HVS!!5HHHr;   )items)re   s    r9   _to_locale_dictrn   x   s    HH4::<<HHHHr;   c                      e Zd ZdZdZd"d	Zd#d
Zd$dZd%dZd%dZ	e
d%d            Ze
d&d            Zd'dZeeeeedd(dZd)d Zd!S )*r&   a  Represents an application command.

    In common parlance this is referred to as a "Slash Command" or a
    "Context Menu Command".

    .. versionadded:: 2.0

    .. container:: operations

        .. describe:: x == y

            Checks if two application commands are equal.

        .. describe:: x != y

            Checks if two application commands are not equal.

        .. describe:: hash(x)

            Returns the application command's hash.

        .. describe:: str(x)

            Returns the application command's name.

    Attributes
    -----------
    id: :class:`int`
        The application command's ID.
    application_id: :class:`int`
        The application command's application's ID.
    type: :class:`~discord.AppCommandType`
        The application command's type.
    name: :class:`str`
        The application command's name.
    description: :class:`str`
        The application command's description.
    name_localizations: Dict[:class:`~discord.Locale`, :class:`str`]
        The localised names of the application command. Used for display purposes.
    description_localizations: Dict[:class:`~discord.Locale`, :class:`str`]
        The localised descriptions of the application command. Used for display purposes.
    options: List[Union[:class:`Argument`, :class:`AppCommandGroup`]]
        A list of options.
    default_member_permissions: Optional[:class:`~discord.Permissions`]
        The default member permissions that can run this command.
    dm_permission: :class:`bool`
        A boolean that indicates whether this command can be run in direct messages.
    allowed_contexts: Optional[:class:`~discord.app_commands.AppCommandContext`]
        The contexts that this command is allowed to be used in. Overrides the ``dm_permission`` attribute.

        .. versionadded:: 2.4
    allowed_installs: Optional[:class:`~discord.app_commands.AppInstallationType`]
        The installation contexts that this command is allowed to be installed in.

        .. versionadded:: 2.4
    guild_id: Optional[:class:`int`]
        The ID of the guild this command is registered in. A value of ``None``
        denotes that it is a global command.
    nsfw: :class:`bool`
        Whether the command is NSFW and should only work in NSFW channels.
    )rW   typeapplication_idnamedescriptionname_localizationsdescription_localizationsguild_idoptionsdefault_member_permissionsdm_permissionallowed_contextsallowed_installsnsfw_statere   ApplicationCommandPayloadstaterF   r2   Nonec               >    || _         |                     |           d S rR   )r}   
_from_data)rT   re   r   s      r9   rU   zAppCommand.__init__   s!    ',r;   c                    t          |d                    _        t          |d                    _        |d          _        |d          _        t          |d           _        t          t          |	                    dd                     _
         fd|	                    d	g           D              _          |	                    d
          }|d  _        n!t          t          |                     _        |	                    d          }|d}| _        |	                    d          }|d  _        nt!          j        |           _        |	                    d          }|d  _        nt'          j        |           _        |	                    dd           _        t+          |	                    d          pi            _        t+          |	                    d          pi            _        d S )NrW   rq   rr   rs   rv   rp   r   c                >    g | ]}t          |j                   S )re   parentr   app_command_option_factoryr}   rj   drT   s     r9   
<listcomp>z)AppCommand._from_data.<locals>.<listcomp>   >     @
 @
 @
ST&Ad$+NNN@
 @
 @
r;   rw   rx   ry   Tcontextsintegration_typesr|   Frt   ru   )r1   rW   rq   rr   rs   r   rv   r   r   getrp   rw   rx   r   ry   rz   r   _from_valuer{   r	   r|   rn   rt   ru   )rT   re   permissionsry   rz   r{   s   `     r9   r   zAppCommand._from_data   s   4:#&t,<'=#>#>f	 $] 3'8z'J'J$,^TXXfa=P=P$Q$Q	@
 @
 @
 @
X\X`X`ajlnXoXo@
 @
 @
 	>hh;<<.2D++.9#k:J:J.K.KD+11  M#088J//#AED!!$5$ABR$S$SD!88$788#CGD!!$7$CDT$U$UD!((6511	5DTXXNbEcEcEigi5j5j<KDHHUpLqLqLwuw<x<x&&&r;   c                z   | j         | j        j        | j        | j        | j        d | j                                        D             d | j                                        D             | j	        | j	        
                                nd | j        | j        
                                nd d | j        D             d
S )Nc                4    i | ]\  }}t          |          |S r7   rY   rj   kvs      r9   rl   z&AppCommand.to_dict.<locals>.<dictcomp>   $    "Y"Y"YA3q661"Y"Y"Yr;   c                4    i | ]\  }}t          |          |S r7   r   r   s      r9   rl   z&AppCommand.to_dict.<locals>.<dictcomp>  $    )g)g)g1#a&&!)g)g)gr;   c                6    g | ]}|                                 S r7   to_dict)rj   opts     r9   r   z&AppCommand.to_dict.<locals>.<listcomp>       >>>#>>>r;   )
rW   rp   rq   rr   rs   rt   ru   r   r   rw   )rW   rp   r0   rq   rr   rs   rt   rm   ru   rz   to_arrayr{   rw   rX   s    r9   r   zAppCommand.to_dict   s    'IO"1I+"Y"Y9P9V9V9X9X"Y"Y"Y)g)g@^@d@d@f@f)g)g)g<@<Q<]-66888cgEIEZEf!6!?!?!A!A!Alp>>>>>
 
 	
r;   rY   c                    | j         S rR   rr   rX   s    r9   __str__zAppCommand.__str__  
    yr;   c           	     R    d| j         j         d| j        d| j        d| j        d	S N< id= name= type=r[   	__class__r_   rW   rr   rp   rX   s    r9   r\   zAppCommand.__repr__
  8    b4>*bbbbbbTXT]bbbbr;   c                (    d| j          d| j         dS )zO:class:`str`: Returns a string that allows you to mention the given AppCommand.</:r[   )rr   rW   rX   s    r9   mentionzAppCommand.mention  s!     +DI******r;   Optional[Guild]c                @    | j                             | j                  S )zqOptional[:class:`~discord.Guild`]: Returns the guild this command is registered to
        if it exists.
        r}   
_get_guildrv   rX   s    r9   rP   zAppCommand.guild  s    
 {%%dm444r;   c                   K   | j         }|j        st          | j        r3|j                            |j        | j        | j                   d{V  dS |j                            |j        | j                   d{V  dS )a  |coro|

        Deletes the application command.

        Raises
        -------
        NotFound
            The application command was not found.
        Forbidden
            You do not have permission to delete this application command.
        HTTPException
            Deleting the application command failed.
        MissingApplicationID
            The client does not have an application ID.
        N)r}   rq   r   rv   httpdelete_guild_commandrW   delete_global_command)rT   r   s     r9   deletezAppCommand.delete  s        # 	'&&= 
	*11$           *22$          r;   )rr   rs   rx   ry   rw   rr   rs   rx   Optional[Permissions]ry   r3   rw   &List[Union[Argument, AppCommandGroup]]c                 K   | j         }|j        st          i }|t          ur||d<   |t          ur||d<   |t          ur||j        |d<   nd|d<   | j        |t          ur||d<   |t          urd |D             |d<   |s| S | j        r3|j                            |j        | j        | j        |           d{V }n,|j        	                    |j        | j        |           d{V }t          ||          S )	a  |coro|

        Edits the application command.

        Parameters
        -----------
        name: :class:`str`
            The new name for the application command.
        description: :class:`str`
            The new description for the application command.
        default_member_permissions: Optional[:class:`~discord.Permissions`]
            The new default permissions needed to use this application command.
            Pass value of ``None`` to remove any permission requirements.
        dm_permission: :class:`bool`
            Indicates if the application command can be used in DMs.
        options: List[Union[:class:`Argument`, :class:`AppCommandGroup`]]
            List of new options for this application command.

        Raises
        -------
        NotFound
            The application command was not found.
        Forbidden
            You do not have permission to edit this application command.
        HTTPException
            Editing the application command failed.
        MissingApplicationID
            The client does not have an application ID.

        Returns
        --------
        :class:`AppCommand`
            The newly edited application command.
        rr   rs   Nrx   ry   c                6    g | ]}|                                 S r7   r   )rj   options     r9   r   z#AppCommand.edit.<locals>.<listcomp>z  s"    !I!I!Iv&.."2"2!I!I!Ir;   rw   )re   r   )r}   rq   r   r   r0   rv   r   edit_guild_commandrW   edit_global_commandr&   )	rT   rr   rs   rx   ry   rw   r   payloadre   s	            r9   editzAppCommand.edit9  sv     V # 	'&&w"GFOg%%%0GM"%W44)58R8X4558<45= ]'%A%A'4GO$'!!!I!I!I!I!IGI 	K= 	66$	       DD 77$       D
 t51111r;   rP   rE   r+   c                   K   | j         }|j        st          |j                            |j        |j        | j                   d{V }t          |||           S )a  |coro|

        Retrieves this command's permission in the guild.

        Parameters
        -----------
        guild: :class:`~discord.abc.Snowflake`
            The guild to retrieve the permissions from.

        Raises
        -------
        Forbidden
            You do not have permission to fetch the application command's permissions.
        HTTPException
            Fetching the application command's permissions failed.
        MissingApplicationID
            The client does not have an application ID.
        NotFound
            The application command's permissions could not be found.
            This can also indicate that the permissions are synced with the guild
            (i.e. they are unchanged from the default).

        Returns
        --------
        :class:`GuildAppCommandPermissions`
            An object representing the application command's permissions in the guild.
        N)re   r   command)r}   rq   r   r   #get_application_command_permissionsrW   r+   )rT   rP   r   re   s       r9   fetch_permissionszAppCommand.fetch_permissions  s|      8 # 	'&&ZCC HG
 
 
 
 
 
 
 

 *t5$OOOOr;   N)re   r~   r   rF   r2   r   )re   r~   r2   r   )r2   r~   r^   r2   r   )r2   r   )rr   rY   rs   rY   rx   r   ry   r3   rw   r   r2   r&   )rP   rE   r2   r+   )r_   r`   ra   rb   rc   rU   r   r   r   r\   rd   r   rP   r   r   r   r   r7   r;   r9   r&   r&   |   s8       < <|I$   &y &y &y &yP
 
 
 
   c c c c + + + X+ 5 5 5 X5   F "<C%:AS2 S2 S2 S2 S2 S2j%P %P %P %P %P %Pr;   r&   c                  ~    e Zd ZdZdZd dZed!d            Zd"dZd#dZ	d$dZ
ed%d            Zd&dZd'dZd(dZdS ))r-   a9  Represents an application command argument choice.

    .. versionadded:: 2.0

    .. container:: operations

        .. describe:: x == y

            Checks if two choices are equal.

        .. describe:: x != y

            Checks if two choices are not equal.

        .. describe:: hash(x)

            Returns the choice's hash.

    Parameters
    -----------
    name: Union[:class:`str`, :class:`locale_str`]
        The name of the choice. Used for display purposes.
        Can only be up to 100 characters.
    name_localizations: Dict[:class:`~discord.Locale`, :class:`str`]
        The localised names of the choice. Used for display purposes.
    value: Union[:class:`int`, :class:`str`, :class:`float`]
        The value of the choice. If it's a string, it can only be
        up to 100 characters long.
    )rr   r0   _locale_namert   rr   Union[str, locale_str]r0   r/   c                   t          |t                    r	|j        |fn|d f\  }}|| _        || _        || _        i | _        d S rR   )
isinstancer   messagerr   r   r0   rt   )rT   rr   r0   locales       r9   rU   zChoice.__init__  sQ    /9$
/K/K]d++RVX\Q]f	28#
57r;   re   r>   r2   Choice[ChoiceT]c                    |                      |           }|d         |_        |d         |_        t          |                    d          pi           |_        |S )Nrr   r0   rt   )__new__rr   r0   rn   r   rt   )clsre   rT   s      r9   	from_dictzChoice.from_dict  sQ    {{3L	']
"1$((;O2P2P2VTV"W"Wr;   oobjectr3   c                l    t          |t                    o| j        |j        k    o| j        |j        k    S rR   )r   r-   rr   r0   )rT   r   s     r9   __eq__zChoice.__eq__  s.    !V$$Vaf)<VqwAVVr;   r1   c                8    t          | j        | j        f          S rR   )hashrr   r0   rX   s    r9   __hash__zChoice.__hash__  s    TY
+,,,r;   rY   c                @    | j         j         d| j        d| j        dS )Nz(name=z, value=))r   r_   rr   r0   rX   s    r9   r\   zChoice.__repr__  s*    .)UUUUdjUUUUr;   r   c                (   t          | j        t                    rt          j        S t          | j        t
                    rt          j        S t          | j        t                    rt          j        S t          d| j        j
        j                   )NzJinvalid Choice value type given, expected int, str, or float but received )r   r0   r1   r   integerfloatnumberrY   string	TypeErrorr   r_   rX   s    r9   _option_typezChoice._option_type  s    dj#&& 		'//
E** 	'..
C(( 	'..|]a]g]q]z||  r;   
translatorr   Dict[str, Any]c                   K   |                                  }i }t          t          j        |           }| j        r8t
          D ]0}|                    | j        ||           d {V }|
|||j        <   1|r||d<   |S )Nlocationre   rt   )r   r   r   choice_namer   r   _checked_translater0   )rT   r   basert   contextr   translations          r9   get_translated_payloadzChoice.get_translated_payload  s      ||~~-/$.H.T[_``` 	C  C C$.$A$A$BSU[]d$e$eeeeeee*7B&v|4 	<);D%&r;   r   r   c                   K   |                                  }| j        rDt          t          j        |           }|                    | j        ||           d {V }|||d<   |S )Nr   rr   )r   r   r   r   r   r   )rT   r   r   r   r   r   s         r9   !get_translated_payload_for_localez(Choice.get_translated_payload_for_locale  sw      ||~~ 	+(2L2X_cdddG * = =d>OQWY` a aaaaaaaK&*Vr;   c                ~    | j         | j        d}| j        r&d | j                                        D             |d<   |S )N)rr   r0   c                4    i | ]\  }}t          |          |S r7   r   r   s      r9   rl   z"Choice.to_dict.<locals>.<dictcomp>  s$    )`)`)`1#a&&!)`)`)`r;   rt   )rr   r0   rt   rm   )rT   r   s     r9   r   zChoice.to_dict  sS    IZ
 
 " 	a)`)`@W@]@]@_@_)`)`)`D%&r;   N)rr   r   r0   r/   )re   r>   r2   r   )r   r   r2   r3   r]   r^   )r2   r   )r   r   r2   r   )r   r   r   r   r2   r   r2   r   )r_   r`   ra   rb   rc   rU   classmethodr   r   r   r\   rd   r   r   r   r   r7   r;   r9   r-   r-     s         < HI8 8 8 8    [W W W W- - - -V V V V 
 
 
 X
           r;   r-   c                      e Zd ZdZdZdd	ZddZddZed d            Z	ed!d            Z
d"dZd"dZd#dZd$dZedd            Zedd            Zed%d            ZdS )&r(   a  Represents an application command partially resolved channel object.

    .. versionadded:: 2.0

    .. container:: operations

        .. describe:: x == y

            Checks if two channels are equal.

        .. describe:: x != y

            Checks if two channels are not equal.

        .. describe:: hash(x)

            Returns the channel's hash.

        .. describe:: str(x)

            Returns the channel's name.

    Attributes
    -----------
    id: :class:`int`
        The ID of the channel.
    type: :class:`~discord.ChannelType`
        The type of channel.
    name: :class:`str`
        The name of the channel.
    permissions: :class:`~discord.Permissions`
        The resolved permissions of the user who invoked
        the application command in that channel.
    guild_id: :class:`int`
        The guild ID this channel belongs to.
    category_id: Optional[:class:`int`]
        The category channel ID this channel belongs to, if applicable.

        .. versionadded:: 2.6
    topic: Optional[:class:`str`]
        The channel's topic. ``None`` if it doesn't exist.

        .. versionadded:: 2.6
    position: :class:`int`
        The position in the channel list. This is a number that starts at 0. e.g. the
        top channel is position 0.

        .. versionadded:: 2.6
    last_message_id: Optional[:class:`int`]
        The last message ID of the message sent to this channel. It may
        *not* point to an existing or valid message.

        .. versionadded:: 2.6
    slowmode_delay: :class:`int`
        The number of seconds a member must wait between sending messages
        in this channel. A value of ``0`` denotes that it is disabled.
        Bots and users with :attr:`~discord.Permissions.bypass_slowmode` bypass slowmode.

        .. versionadded:: 2.6
    nsfw: :class:`bool`
        If the channel is marked as "not safe for work" or "age restricted".

        .. versionadded:: 2.6
    )rW   rp   rr   r   rv   topicr|   positioncategory_idslowmode_delaylast_message_id	_last_pin_flagsr}   r   rF   re   rA   rv   r1   c                  || _         || _        t          |d                   | _        t	          t
          |d                   | _        |d         | _        t          t          |d                             | _	        |
                    d          | _        |
                    d          pd| _        |
                    d          pd	| _        t          |d
          | _        |
                    d          pd| _        t          |d          | _        t%          |
                    d                    | _        |
                    dd          | _        d S )NrW   rp   rr   r   r   r   r   r|   F	parent_idrate_limit_per_userr   last_pin_timestampflags)r}   rv   r1   rW   r   r   rp   rr   r   r   r   r   r   r|   r   r   r   r   r   r   r   rT   r   re   rv   s       r9   rU   zAppCommandChannel.__init__r  s    (-%4:!)+tF|!D!D	f	(3C]8K4L4L(M(M$(HHW$5$5
!XXj116Q((6**3e	*;D+*N*N#'88,A#B#B#Ga.?FW.X.X-7AU8V8V-W-W88GQ//r;   r2   rY   c                    | j         S rR   r   rX   s    r9   r   zAppCommandChannel.__str__  r   r;   c           	     R    d| j         j         d| j        d| j        d| j        d	S r   r   rX   s    r9   r\   zAppCommandChannel.__repr__  r   r;   r   c                @    | j                             | j                  S zMOptional[:class:`~discord.Guild`]: The channel's guild, from cache, if found.r   rX   s    r9   rP   zAppCommandChannel.guild       {%%dm444r;   r
   c                4    t          j        | j                  S )zv:class:`~discord.ChannelFlags`: The flags associated with this channel object.

        .. versionadded:: 2.6
        r
   r   r   rX   s    r9   r  zAppCommandChannel.flags       '444r;   r3   c                    | j         S )zU:class:`bool`: Checks if the channel is NSFW.

        .. versionadded:: 2.6
        )r|   rX   s    r9   is_nsfwzAppCommandChannel.is_nsfw  s    
 yr;   c                ,    | j         t          j        k    S )z_:class:`bool`: Checks if the channel is a news channel.

        .. versionadded:: 2.6
        )rp   r   newsrX   s    r9   is_newszAppCommandChannel.is_news  s    
 yK,,,r;   Optional[GuildChannel]c                |    | j                             | j                  }||                    | j                  S dS a  Resolves the application command channel to the appropriate channel
        from cache if found.

        Returns
        --------
        Optional[:class:`.abc.GuildChannel`]
            The resolved guild channel or ``None`` if not found in cache.
        N)r}   r   rv   get_channelrW   rS   s     r9   resolvezAppCommandChannel.resolve  s<     &&t}55$$TW---tr;   rG   c                x   K   | j                                         }|                    | j                   d{V S )a  |coro|

        Fetches the partial channel to a full :class:`.abc.GuildChannel`.

        Raises
        --------
        NotFound
            The channel was not found.
        Forbidden
            You do not have the permissions required to get a channel.
        HTTPException
            Retrieving the channel failed.

        Returns
        --------
        :class:`.abc.GuildChannel`
            The full channel.
        Nr}   _get_clientfetch_channelrW   rT   clients     r9   fetchzAppCommandChannel.fetch  C      & ((**))$'222222222r;   c                    d| j          dS )z@:class:`str`: The string that allows you to mention the channel.<#r[   rW   rX   s    r9   r   zAppCommandChannel.mention       DGr;   c                &    d| j          d| j         S )zr:class:`str`: Returns a URL that allows the client to jump to the channel.

        .. versionadded:: 2.6
        https://discord.com/channels//rv   rW   rX   s    r9   jump_urlzAppCommandChannel.jump_url       It}HHtwHHHr;   r   c                *    t          | j                  S )zW:class:`datetime.datetime`: An aware timestamp of when this channel was created in UTC.)r   rW   rX   s    r9   
created_atzAppCommandChannel.created_at  s     dg&&&r;   N)r   rF   re   rA   rv   r1   r^   r   r2   r
   )r2   r3   )r2   r  )r2   rG   )r2   r   )r_   r`   ra   rb   rc   rU   r   r\   rd   rP   r  r  r  r  r  r   r&  r)  r7   r;   r9   r(   r(     sZ       ? ?BI"0 0 0 0,   c c c c 5 5 5 X5 5 5 5 X5   - - - -   3 3 3 3,    X I I I XI ' ' ' X' ' 'r;   r(   c                     e Zd ZdZdZd$d	Zd%dZd%dZed&d            Z	d'dZ
ed(d            Zed)d            Zed*d            Zed+d            Zed%d            Zed%d            Zed,d            Zd-d Zd.d"Zd#S )/r)   aW
  Represents an application command partially resolved thread object.

    .. versionadded:: 2.0

    .. container:: operations

        .. describe:: x == y

            Checks if two thread are equal.

        .. describe:: x != y

            Checks if two thread are not equal.

        .. describe:: hash(x)

            Returns the thread's hash.

        .. describe:: str(x)

            Returns the thread's name.

    Attributes
    -----------
    id: :class:`int`
        The ID of the thread.
    type: :class:`~discord.ChannelType`
        The type of thread.
    name: :class:`str`
        The name of the thread.
    parent_id: :class:`int`
        The parent text channel ID this thread belongs to.
    owner_id: :class:`int`
        The user's ID that created this thread.

        .. versionadded:: 2.6
    last_message_id: Optional[:class:`int`]
        The last message ID of the message sent to this thread. It may
        *not* point to an existing or valid message.

        .. versionadded:: 2.6
    slowmode_delay: :class:`int`
        The number of seconds a member must wait between sending messages
        in this thread. A value of ``0`` denotes that it is disabled.
        Bots and users with :attr:`~discord.Permissions.bypass_slowmode` bypass slowmode.

        .. versionadded:: 2.6
    message_count: :class:`int`
        An approximate number of messages in this thread.

        .. versionadded:: 2.6
    member_count: :class:`int`
        An approximate number of members in this thread. This caps at 50.

        .. versionadded:: 2.6
    total_message_sent: :class:`int`
        The total number of messages sent, including deleted messages.

        .. versionadded:: 2.6
    permissions: :class:`~discord.Permissions`
        The resolved permissions of the user who invoked
        the application command in that thread.
    guild_id: :class:`int`
        The guild ID this thread belongs to.
    archived: :class:`bool`
        Whether the thread is archived.
    locked: :class:`bool`
        Whether the thread is locked.
    invitable: :class:`bool`
        Whether non-moderators can add other non-moderators to this thread.
        This is always ``True`` for public threads.
    archiver_id: Optional[:class:`int`]
        The user's ID that archived this thread.
    auto_archive_duration: :class:`int`
        The duration in minutes until the thread is automatically hidden from the channel list.
        Usually a value of 60, 1440, 4320 and 10080.
    archive_timestamp: :class:`datetime.datetime`
        An aware timestamp of when the thread's archived status was last updated in UTC.
    )rW   rp   rr   r   rv   r   archivedarchiver_idauto_archive_durationarchive_timestamplocked	invitableowner_idmessage_countmember_countr   r   total_message_sent_applied_tagsr   _created_atr}   r   rF   re   rB   rv   r1   c          
     R   || _         || _        t          |d                   | _        t          |d                   | _        t          t          |d                   | _        |d         | _        t          t          |d                             | _
        t          |d                   | _        t          |d                   | _        t          |d                   | _        t          |d	          | _        |                    d
d          | _        |                    dd          | _        t'          j        dt)          t          |                    dg                               | _        |                    dd          | _        |                     |d                    d S )NrW   r   rp   rr   r   r2  r4  r3  r   r   r   r5  Qapplied_tagsr  thread_metadata)r}   rv   r1   rW   r   r   r   rp   rr   r   r   r2  r4  r3  r   r   r   r   r5  arraymapr6  r   _unroll_metadatar  s       r9   rU   zAppCommandThread.__init__J  sV    (-%4:!${"344!)+tF|!D!D	f	(3C]8K4L4L(M(M j!122!$T.%9!:!:"%d?&;"<"<.?FW.X.X#'88,A1#E#E'+xx0Da'H'H/4{3CR`bdIeIe@f@f/g/g88GQ//d#4566666r;   r2   rY   c                    | j         S rR   r   rX   s    r9   r   zAppCommandThread.__str__b  r   r;   c                b    d| j         j         d| j        d| j        d| j         d| j        dS )Nr   r   r   z
 archived=r   r[   )r   r_   rW   rr   r,  rp   rX   s    r9   r\   zAppCommandThread.__repr__e  sD    {4>*{{{{{{X\Xe{{mqmv{{{{r;   r   c                @    | j                             | j                  S r  r   rX   s    r9   rP   zAppCommandThread.guildh  r  r;   rC   r   c                R   |d         | _         t          |d          | _        |d         | _        t	          |d                   | _        |                    dd          | _        |                    dd          | _        t	          |                    d	                    | _	        d S )
Nr,  r-  r.  r/  r0  Fr1  Tcreate_timestamp)
r,  r   r-  r.  r   r/  r   r0  r1  r7  rT   re   s     r9   r>  z!AppCommandThread._unroll_metadatam  s    ":.*;D-*P*P<@AX<Y"+5d;N6O+P+P HHXu55#xxT::/9$((CU:V:V/W/Wr;   List[ForumTag]c                    g }| j         $| j         j        t          j        t          j        fvr|S | j         }| j        D ].}|                    |          }||                    |           /|S )zpList[:class:`~discord.ForumTag`]: A list of tags applied to this thread.

        .. versionadded:: 2.6
        )r   rp   r   forummediar6  get_tagappend)rT   tagsr   tag_idtags        r9   r:  zAppCommandThread.applied_tagsv  sw     ;$+"2;;LkN_:`"`"`K( 	! 	!F..((CC   r;   *Optional[Union[ForumChannel, TextChannel]]c                N    | j         o| j                             | j                  S )zOptional[Union[:class:`~discord.ForumChannel`, :class:`~discord.TextChannel`]]: The parent channel
        this thread belongs to.)rP   r  r   rX   s    r9   r   zAppCommandThread.parent  s#     zDdj44T^DDDr;   r
   c                4    t          j        | j                  S )zn:class:`~discord.ChannelFlags`: The flags associated with this thread.

        .. versionadded:: 2.6
        r
  rX   s    r9   r  zAppCommandThread.flags  r  r;   Optional[Member]c                N    | j         o| j                             | j                  S )znOptional[:class:`~discord.Member`]: The member this thread belongs to.

        .. versionadded:: 2.6
        )rP   
get_memberr2  rX   s    r9   ownerzAppCommandThread.owner  s#     zBdj33DMBBBr;   c                    d| j          dS )z?:class:`str`: The string that allows you to mention the thread.r  r[   r   rX   s    r9   r   zAppCommandThread.mention  r!  r;   c                &    d| j          d| j         S )zq:class:`str`: Returns a URL that allows the client to jump to the thread.

        .. versionadded:: 2.6
        r#  r$  r%  rX   s    r9   r&  zAppCommandThread.jump_url  r'  r;   Optional[datetime]c                    | j         S )zAn aware timestamp of when the thread was created in UTC.

        .. note::

            This timestamp only exists for threads created after 9 January 2022, otherwise returns ``None``.
        )r7  rX   s    r9   r)  zAppCommandThread.created_at  s     r;   Optional[Thread]c                |    | j                             | j                  }||                    | j                  S dS r  )r}   r   rv   
get_threadrW   rS   s     r9   r  zAppCommandThread.resolve  s<     &&t}55##DG,,,tr;   rL   c                x   K   | j                                         }|                    | j                   d{V S )a  |coro|

        Fetches the partial channel to a full :class:`~discord.Thread`.

        Raises
        --------
        NotFound
            The thread was not found.
        Forbidden
            You do not have the permissions required to get a thread.
        HTTPException
            Retrieving the thread failed.

        Returns
        --------
        :class:`~discord.Thread`
            The full thread.
        Nr  r  s     r9   r  zAppCommandThread.fetch  r  r;   N)r   rF   re   rB   rv   r1   r^   r   )re   rC   r2   r   )r2   rE  )r2   rN  r*  )r2   rQ  )r2   rW  )r2   rY  )r2   rL   )r_   r`   ra   rb   rc   rU   r   r\   rd   rP   r>  r:  r   r  rT  r   r&  r)  r  r  r7   r;   r9   r)   r)     s       N N`I27 7 7 70   | | | | 5 5 5 X5X X X X    X" E E E XE
 5 5 5 X5 C C C XC    X I I I XI       X    3 3 3 3 3 3r;   r)   c                  <    e Zd ZdZdZddddZddZddZddZdS )r,   a  Represents an application command argument.

    .. versionadded:: 2.0

    Attributes
    ------------
    type: :class:`~discord.AppCommandOptionType`
        The type of argument.
    name: :class:`str`
        The name of the argument.
    description: :class:`str`
        The description of the argument.
    name_localizations: Dict[:class:`~discord.Locale`, :class:`str`]
        The localised names of the argument. Used for display purposes.
    description_localizations: Dict[:class:`~discord.Locale`, :class:`str`]
        The localised descriptions of the argument. Used for display purposes.
    required: :class:`bool`
        Whether the argument is required.
    choices: List[:class:`Choice`]
        A list of choices for the command to choose from for this argument.
    parent: Union[:class:`AppCommand`, :class:`AppCommandGroup`]
        The parent application command that has this argument.
    channel_types: List[:class:`~discord.ChannelType`]
        The channel types that are allowed for this parameter.
    min_value: Optional[Union[:class:`int`, :class:`float`]]
        The minimum supported value for this parameter.
    max_value: Optional[Union[:class:`int`, :class:`float`]]
        The maximum supported value for this parameter.
    min_length: Optional[:class:`int`]
        The minimum allowed length for this parameter.
    max_length: Optional[:class:`int`]
        The maximum allowed length for this parameter.
    autocomplete: :class:`bool`
        Whether the argument has autocomplete.
    )rp   rr   rs   rt   ru   requiredchoiceschannel_types	min_value	max_value
min_length
max_lengthautocompleter   r}   Nr   r   ApplicationCommandParentre   r=   r   Optional[ConnectionState]r2   r   c               L    || _         || _        |                     |           d S rR   )r}   r   r   rT   r   re   r   s       r9   rU   zArgument.__init__  s*     2706r;   rY   c           	     R    d| j         j         d| j        d| j        d| j         d	S )Nr   r   r   z
 required=r[   )r   r_   rr   rp   r^  rX   s    r9   r\   zArgument.__repr__  s8    l4>*ll$)llTYll\`\illllr;   c                   t          t          |d                   | _        |d         | _        |d         | _        |                    dd          | _        |                    d          | _        |                    d          | _        |                    d          | _	        |                    d	          | _
        |                    d
d          | _        d |                    dg           D             | _        d |                    dg           D             | _        t          |                    d          pi           | _        t          |                    d          pi           | _        d S )Nrp   rr   rs   r^  Fra  rb  rc  rd  re  c                8    g | ]}t          t          |          S r7   )r   r   rj   r   s     r9   r   z'Argument._from_data.<locals>.<listcomp>%  s"    0q0q0qa+q1I1I0q0q0qr;   r`  c                B    g | ]}t                               |          S r7   )r-   r   rn  s     r9   r   z'Argument._from_data.<locals>.<listcomp>&  s'    =s=s=sVWf>N>Nq>Q>Q=s=s=sr;   r_  rt   ru   )r   r   rp   rr   rs   r   r^  ra  rb  rc  rd  re  r`  r_  rn   rt   ru   rD  s     r9   r   zArgument._from_data  sD   *23Gf*V*V	f	 $] 3"hhz5996:hh{6K6K6:hh{6K6K)-,)?)?)-,)?)?"&((>5"A"A0q0qSWS[S[\kmoSpSp0q0q0q=s=s[_[c[cdmoq[r[r=s=s=s5DTXXNbEcEcEigi5j5j<KDHHUpLqLqLwuw<x<x&&&r;   c                H   | j         | j        j        | j        | j        d | j        D             d | j        D             | j        | j        | j	        | j
        | j        g d | j                                        D             d | j                                        D             dS )Nc                6    g | ]}|                                 S r7   r   )rj   choices     r9   r   z$Argument.to_dict.<locals>.<listcomp>0  s"    DDDV((DDDr;   c                    g | ]	}|j         
S r7   r8   )rj   channel_types     r9   r   z$Argument.to_dict.<locals>.<listcomp>1  s    XXX\l0XXXr;   c                4    i | ]\  }}t          |          |S r7   r   r   s      r9   rl   z$Argument.to_dict.<locals>.<dictcomp>8  r   r;   c                4    i | ]\  }}t          |          |S r7   r   r   s      r9   rl   z$Argument.to_dict.<locals>.<dictcomp>9  r   r;   )rr   rp   rs   r^  r_  r`  ra  rb  rc  rd  re  rw   rt   ru   )rr   rp   r0   rs   r^  r_  r`  ra  rb  rc  rd  re  rt   rm   ru   rX   s    r9   r   zArgument.to_dict*  s    IIO+DDt|DDDXXTEWXXX// -"Y"Y9P9V9V9X9X"Y"Y"Y)g)g@^@d@d@f@f)g)g)g
 
 	
r;   r   rg  re   r=   r   rh  r2   r   r^   re   r=   r2   r   )r2   r=   )	r_   r`   ra   rb   rc   rU   r\   r   r   r7   r;   r9   r,   r,     s        " "HI& w{     m m m my y y y
 
 
 
 
 
r;   r,   c                  l    e Zd ZdZdZddddZddZedd            Zedd            Z	ddZ
ddZdS )r'   a9  Represents an application command subcommand.

    .. versionadded:: 2.0

    Attributes
    ------------
    type: :class:`~discord.AppCommandOptionType`
        The type of subcommand.
    name: :class:`str`
        The name of the subcommand.
    description: :class:`str`
        The description of the subcommand.
    name_localizations: Dict[:class:`~discord.Locale`, :class:`str`]
        The localised names of the subcommand. Used for display purposes.
    description_localizations: Dict[:class:`~discord.Locale`, :class:`str`]
        The localised descriptions of the subcommand. Used for display purposes.
    options: List[Union[:class:`Argument`, :class:`AppCommandGroup`]]
        A list of options.
    parent: Union[:class:`AppCommand`, :class:`AppCommandGroup`]
        The parent application command.
    )rp   rr   rs   rt   ru   rw   r   r}   Nrf  r   rg  re   r=   r   rh  r2   r   c               L    || _         || _        |                     |           d S rR   )r   r}   r   rj  s       r9   rU   zAppCommandGroup.__init___  s*     1716r;   rY   c                B    d| j         j         d| j        d| j        dS )Nr   r   r   r[   )r   r_   rr   rp   rX   s    r9   r\   zAppCommandGroup.__repr__f  s,    S4>*SS$)SSTYSSSSr;   c                    | j         | j        j         g}t          | j        t                    r$|                    | j        j        j                    d                    t          |                    S )z:class:`str`: Returns the fully qualified command name.

        The qualified name includes the parent name as well. For example,
        in a command like ``/foo bar`` the qualified name is ``foo bar``.
         )rr   r   r   r'   rJ  joinreversed)rT   namess     r9   qualified_namezAppCommandGroup.qualified_namei  s[     DK,-dk?33 	2LL+0111xx(((r;   c                    t          | j        t                    r| j        }n| j        j        }d| j         d|j         dS )zT:class:`str`: Returns a string that allows you to mention the given AppCommandGroup.r   r   r[   )r   r   r&   r  rW   )rT   base_commands     r9   r   zAppCommandGroup.mentionz  sI     dk:.. 	.;LL;-L<D'<<,/<<<<r;   c                n    t          t          |d                    _        |d          _        |d          _         fd|                    dg           D              _        t          |                    d          pi            _        t          |                    d          pi            _	        d S )Nrp   rr   rs   c                >    g | ]}t          |j                   S r   r   r   s     r9   r   z.AppCommandGroup._from_data.<locals>.<listcomp>  r   r;   rw   rt   ru   )
r   r   rp   rr   rs   r   rw   rn   rt   ru   rD  s   ` r9   r   zAppCommandGroup._from_data  s    *23Gf*V*V	f	 $] 3@
 @
 @
 @
X\X`X`ajlnXoXo@
 @
 @
 6ETXXNbEcEcEigi5j5j<KDHHUpLqLqLwuw<x<x&&&r;   'ApplicationCommandOption'c                    | j         | j        j        | j        d | j        D             d | j                                        D             d | j                                        D             dS )Nc                6    g | ]}|                                 S r7   r   )rj   args     r9   r   z+AppCommandGroup.to_dict.<locals>.<listcomp>  r   r;   c                4    i | ]\  }}t          |          |S r7   r   r   s      r9   rl   z+AppCommandGroup.to_dict.<locals>.<dictcomp>  r   r;   c                4    i | ]\  }}t          |          |S r7   r   r   s      r9   rl   z+AppCommandGroup.to_dict.<locals>.<dictcomp>  r   r;   )rr   rp   rs   rw   rt   ru   )rr   rp   r0   rs   rw   rt   rm   ru   rX   s    r9   r   zAppCommandGroup.to_dict  sv    IIO+>>>>>"Y"Y9P9V9V9X9X"Y"Y"Y)g)g@^@d@d@f@f)g)g)g
 
 	
r;   rw  r^   rx  )r2   r  )r_   r`   ra   rb   rc   rU   r\   rd   r  r   r   r   r7   r;   r9   r'   r'   =  s         ,	I w{     T T T T ) ) ) X)  = = = X=y y y y
 
 
 
 
 
r;   r'   c                  .    e Zd ZdZdZddZddZddZdS )r*   a  Represents the permissions for an application command.

    .. versionadded:: 2.0

    Attributes
    -----------
    guild: :class:`~discord.Guild`
        The guild associated with this permission.
    id: :class:`int`
        The ID of the permission target, such as a role, channel, or guild.
        The special ``guild_id - 1`` sentinel is used to represent "all channels".
    target: Any
        The role, user, or channel associated with this permission. This could also be the :class:`AllChannels` sentinel type.
        Falls back to :class:`~discord.Object` if the target could not be found in the cache.
    type: :class:`.AppCommandPermissionType`
        The type of permission.
    permission: :class:`bool`
        The permission value. ``True`` for allow, ``False`` for deny.
    )rW   rp   
permissiontargetrP   r}   re   r?   rP   rH   r   rF   r2   r   c                  || _         || _        t          |d                   | _        t	          t
          |d                   | _        |d         | _        d }t          }| j        t
          j	        u rA|
                    | j                  p| j                             | j                  }t          }n| j        t
          j        u r>| j        |j        dz
  k    rt          |          }nO|                    | j                  }n4| j        t
          j        u r!|                    | j                  }t$          }|t'          | j        |          }|| _        d S )NrW   rp   r  r   )rW   rp   )r}   rP   r1   rW   r   r   rp   r  r   userrS  get_userr   channelr.   r  roleget_roler   r   r  )rT   re   rP   r   _object_types         r9   rU   zAppCommandPermissions.__init__  s+   ',!
4:.67OQUV\Q].^.^	 $\ 290555&&tw//P4;3G3G3P3PGEEY2:::w58a<((%e,,++DG44Y2777nnTW--GE?e444GT[r;   rY   c           	     H    d| j          d| j        d| j        d| j         d	S )Nz<AppCommandPermissions id=r   z guild=z permission=r[   )rW   rp   rP   r  rX   s    r9   r\   zAppCommandPermissions.__repr__  s5    {DG{{49{{tz{{imix{{{{r;   c                @    | j         j        | j        j        | j        dS )N)rW   rp   r  )r  rW   rp   r0   r  rX   s    r9   r   zAppCommandPermissions.to_dict  s$    +.IO/
 
 	
r;   N)re   r?   rP   rH   r   rF   r2   r   r^   )r2   r?   )r_   r`   ra   rb   rc   rU   r\   r   r7   r;   r9   r*   r*     sj         ( JI\ \ \ \8| | | |
 
 
 
 
 
r;   r*   c                  F    e Zd ZdZdZddZddZddZedd            Z	dS )r+   a  Represents the permissions for an application command in a guild.

    .. versionadded:: 2.0

    Attributes
    -----------
    application_id: :class:`int`
        The application ID.
    command: :class:`.AppCommand`
        The application command associated with the permissions.
    id: :class:`int`
        ID of the command or the application ID.
        When this is the application ID instead of a command ID,
        the permissions apply to all commands that do not contain explicit overwrites.
    guild_id: :class:`int`
        The guild ID associated with the permissions.
    permissions: List[:class:`AppCommandPermissions`]
       The permissions, this is a max of 100.
    )rW   rq   r   rv   r   r}   re   r@   r   rF   r   r&   r2   r   c                   | _         | _        t          |d                    _        t          |d                    _        t          |d                    _         j         fd|d         D              _        d S )NrW   rq   rv   c                >    g | ]}t          |j                   S ))re   rP   r   )r*   r}   )rj   r0   rP   rT   s     r9   r   z7GuildAppCommandPermissions.__init__.<locals>.<listcomp>  s8     9
 9
 9
RW!uEMMM9
 9
 9
r;   r   )r}   r   r1   rW   rq   rv   rP   r   )rT   re   r   r   rP   s   `   @r9   rU   z#GuildAppCommandPermissions.__init__  s    ',#*4:#&t,<'=#>#> j!122
9
 9
 9
 9
 9
[_`m[n9
 9
 9
r;   rY   c                8    d| j         d| j        d| j        dS )Nz<GuildAppCommandPermissions id=z
 guild_id=z permissions=r[   )rW   rv   r   rX   s    r9   r\   z#GuildAppCommandPermissions.__repr__  s+    yyydmyydhdtyyyyr;   r   c                (    dd | j         D             iS )Nr   c                6    g | ]}|                                 S r7   r   )rj   ps     r9   r   z6GuildAppCommandPermissions.to_dict.<locals>.<listcomp>  s     FFF		FFFr;   )r   rX   s    r9   r   z"GuildAppCommandPermissions.to_dict  s    FFT5EFFFGGr;   rH   c                @    | j                             | j                  S )zC:class:`~discord.Guild`: The guild associated with the permissions.)r}    _get_or_create_unavailable_guildrv   rX   s    r9   rP   z GuildAppCommandPermissions.guild  s     {;;DMJJJr;   N)re   r@   r   rF   r   r&   r2   r   r^   r   )r2   rH   )
r_   r`   ra   rb   rc   rU   r\   r   rd   rP   r7   r;   r9   r+   r+     s         ( YI

 

 

 

z z z zH H H H K K K XK K Kr;   r+   rf  r   rg  r=   r   rh   Union[Argument, AppCommandGroup]c               t    t          |d                   rt          | ||          S t          | ||          S )Nrp   r   re   r   )r:   r,   r'   r  s      r9   r   r     sC     $DL11 FvD>>>>f4uEEEEr;   )r0   r1   r2   r3   )re   rf   r2   rg   )r   rg  re   r=   r   rh  r2   r  )]rb   
__future__r   r   errorsr   r  r   r	   r
   r   r   r   r   r   r   r   enumsr   r   r   r   r   r   r<  mixinsr   utilsr   r   r   r   r   r   r  r   memberr   typingr   r   r    r!   r"   r#   r$   r%   __all__rY   r1   r   r/   r:   types.commandr<   r~   r=   r>   r?   r@   types.interactionsrA   rB   types.threadsrC   rD   abcrE   r   rF   rP   rG   rH   r  rI   rJ   rK   threadsrL   r  rM   rg  r.   rn   r&   r-   r(   r)   r,   r'   r*   r+   r   r7   r;   r9   <module>r     s   0 # " " " " "       ( ( ( ( ( ( H H H H H H H H H H ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ % % % % % %                       J J J J J J J J J J J J                   T T T T T T T T T T T T T T T T T T T T
 ')S#ueCeO.D
E
E     F                           
  ''''''++++++++==========      $%DE3 3 3 3 3 3 3 32I I I IwP wP wP wP wP wP wP wPt	f f f f fWW f f fR~' ~' ~' ~' ~' ~' ~' ~'Bw3 w3 w3 w3 w3x w3 w3 w3t`
 `
 `
 `
 `
 `
 `
 `
FX
 X
 X
 X
 X
 X
 X
 X
v;
 ;
 ;
 ;
 ;
 ;
 ;
 ;
|,K ,K ,K ,K ,K ,K ,K ,K` mqF F F F F F F Fr;   