§
    fŠtj~&  ã                   ó¢   — d dl mZmZ d dlZd dlZd dlmZ d dlmZ dgZ	 e
¦   «         Zdddœd„Zdd
„Z G d„ d¦  «        Zdd„Zdddddœd„ZdS )é    )Ú	ParameterÚ	signatureN)Úimport_module)ÚFunctionDocÚ_deprecatedz1.16.0)Úcorrect_moduleÚdep_versionc                 óê  — |�	d| › d|› �}nd| › �}||vrt          d| › d|› d|› d| › d|› d�¦  «        ‚t          t          |¦  «        |d¦  «        }|�d|› d	|› d
| › d|› d�	}	n$d| › d|› d|› d| › d|› d| › d|› d|› d|› d| › d|› d�}	t          j        |	t
          d¬¦  «         |D ]L}	 t          t          d| › d|› �¦  «        |¦  «        c S # t           $ r}
||d         k    r|
‚Y d}
~
ŒEd}
~
ww xY wdS )aM  Helper function for deprecating modules that are public but were
    intended to be private.

    Parameters
    ----------
    sub_package : str
        Subpackage the module belongs to eg. stats
    module : str
        Public but intended private module to deprecate
    private_modules : list
        Private replacement(s) for `module`; should contain the
        content of ``all``, possibly spread over several modules.
    all : list
        ``__all__`` belonging to `module`
    attribute : str
        The attribute in `module` being accessed
    correct_module : str, optional
        Module in `sub_package` that `attribute` should be imported from.
        Default is that `attribute` should be imported from ``scipy.sub_package``.
    dep_version : str, optional
        Version in which deprecated attributes will be removed.
    Nzscipy.ú.z`scipy.z` has no attribute `z`; furthermore, `scipy.z3` is deprecated and will be removed in SciPy 2.0.0.zPlease import `z` from the `z` namespace; the `scipy.z=` namespace is deprecated and will be removed in SciPy 2.0.0.z&` is deprecated along with the `scipy.z` namespace. `scipy.z` will be removed in SciPy z, and the `scipy.z+` namespace will be removed in SciPy 2.0.0.é   ©ÚcategoryÚ
stackleveléÿÿÿÿ)ÚAttributeErrorÚgetattrr   ÚwarningsÚwarnÚDeprecationWarning)Úsub_packageÚmoduleÚprivate_modulesÚallÚ	attributer   r	   Úcorrect_importÚattrÚmessageÚes              úT/var/www/html/CA-Chatbot/venv/lib/python3.11/site-packages/scipy/_lib/deprecation.pyÚ_sub_module_deprecationr       sC  € ð0 Ð!Ø@ +Ð@Ð@°Ð@Ð@ˆˆà/ +Ð/Ð/ˆà˜ÐÐÝð3�kð 3ð 3 Fð 3ð 3À	ð 3ð 3Ø#.ð3ð 3Ø17ð3ð 3ð 3ñ
ô 
ð 	
õ •= Ñ0Ô0°)¸TÑBÔB€DàÐð3˜ið 3ð 3°^ð 3ð 3Ø%ð3ð 3Ø(.ð3ð 3ð 3ð 	ˆð/�kð /ð / Fð /ð /¨Yð /ð /Ø%ð/ð /Ø(.ð/ð /à!ð/ð /à$*ð/ð /à-6ð/ð /ð $ð/ð /ð 7Bð/ð /ð EKð/ð /ð /ð 	õ „M�'Õ$6À1ÐEÑEÔEÐEà!ð ð ˆð	Ý�=Ð)H°+Ð)HÐ)HÀÐ)HÐ)HÑIÔIÈ9ÑUÔUÐUÐUÐUøÝð 	ð 	ð 	ð ˜¨Ô,Ò,Ð,Ø�ØˆHˆHˆHˆHøøøøð	øøøðð s   Â)"CÃ
C0ÃC+Ã+C0é   c                 ó   ‡ ‡— ˆ ˆfd„}|S )z2Deprecate a function by emitting a warning on use.c                 óÐ   •‡ — t          ‰ t          ¦  «        r!t          j        d‰ ›�t          d¬¦  «         ‰ S t          j        ‰ ¦  «        ˆ ˆˆfd„¦   «         }‰ j        |_        |S )NzTrying to deprecate class r!   r   c                  óL   •— t          j        ‰t          ‰¬¦  «          ‰| i |¤ŽS )Nr   )r   r   r   )ÚargsÚkwargsÚfunÚmsgr   s     €€€r   Úcallz'_deprecated.<locals>.wrap.<locals>.callZ   s9   ø€ åŒM˜#Õ(:Ø%/ð1ñ 1ô 1ð 1à�3˜Ð' Ð'Ð'Ð'ó    )Ú
isinstanceÚtyper   r   ÚRuntimeWarningÚ	functoolsÚwrapsÚ__doc__)r'   r)   r(   r   s   ` €€r   Úwrapz_deprecated.<locals>.wrapS   sŽ   øø€ Ý�c�4Ñ Ô ð 	ÝŒMØ4¨SÐ4Ð4Ý'°Að7ñ 7ô 7ð 7ð ˆJå	Œ˜Ñ	Ô	ð	(ð 	(ð 	(ð 	(ð 	(ð 	(ñ 
Ô	ð	(ð ”{ˆŒØˆr*   © )r(   r   r1   s   `` r   r   r   Q   s)   øø€ ðð ð ð ð ð ð €Kr*   c                   ó$   — e Zd ZdZd„ Zd„ Zd„ ZdS )Ú_DeprecationHelperStrz3
    Helper class used by deprecate_cython_api
    c                 ó"   — || _         || _        d S ©N)Ú_contentÚ_message)ÚselfÚcontentr   s      r   Ú__init__z_DeprecationHelperStr.__init__i   s   € ØˆŒØˆŒˆˆr*   c                 ó*   — t          | j        ¦  «        S r6   )Úhashr7   )r9   s    r   Ú__hash__z_DeprecationHelperStr.__hash__m   s   € Ý�D”MÑ"Ô"Ð"r*   c                 ób   — | j         |k    }|r!t          j        | j        t          d¬¦  «         |S )Nr!   r   )r7   r   r   r8   r   )r9   ÚotherÚress      r   Ú__eq__z_DeprecationHelperStr.__eq__p   s>   € ØŒ} Ò%ˆØð 	(ÝŒM˜$œ-Õ2DØ%&ð(ñ (ô (ð (àˆ
r*   N)Ú__name__Ú
__module__Ú__qualname__r0   r;   r>   rB   r2   r*   r   r4   r4   e   sK   € € € € € ðð ð ð  ð  ð#ð #ð #ðð ð ð ð r*   r4   c                 ó8  — | j         › d|› �}|€d|› d�}n	d|› d|› d�}|�|d|z   z  }| j        }d}d	}	 d|› |› �}	|	|v r.d
}|                     |	¦  «        |t          |	|¦  «        <   |dz  }nnŒ;|s(|                     |¦  «        |t          ||¦  «        <   dS dS )a>  
    Deprecate an exported cdef function in a public Cython API module.

    Only functions can be deprecated; typedefs etc. cannot.

    Parameters
    ----------
    module : module
        Public Cython API module (e.g. scipy.linalg.cython_blas).
    routine_name : str
        Name of the routine to deprecate. May also be a fused-type
        routine (in which case its all specializations are deprecated).
    new_name : str
        New name to include in the deprecation warning message
    message : str
        Additional text in the deprecation warning message

    Examples
    --------
    Usually, this function would be used in the top-level of the
    module ``.pyx`` file:

    >>> from scipy._lib.deprecation import deprecate_cython_api
    >>> import scipy.linalg.cython_blas as mod
    >>> deprecate_cython_api(mod, "dgemm", "dgemm_new",
    ...                      message="Deprecated in Scipy 1.5.0")
    >>> del deprecate_cython_api, mod

    After this, Cython modules that use the deprecated function emit a
    deprecation warning when they are imported.

    r   Nú`z` is deprecated!z` is deprecated, use `z
` instead!ú
r   FTÚ__pyx_fuse_é   )rC   Ú__pyx_capi__Úpopr4   )
r   Úroutine_nameÚnew_namer   Úold_nameÚdepdocÚdÚjÚ	has_fusedÚ
fused_names
             r   Údeprecate_cython_apirU   x   s	  € ðB ”/Ð2Ð2 LÐ2Ð2€HàÐØ/�XÐ/Ð/Ð/ˆˆàI�XÐIÐI°XÐIÐIÐIˆàÐØ�$˜‘.Ñ ˆàÔ€Að 	
€AØ€IðØ4 1Ð4 lÐ4Ð4ˆ
Ø˜ˆ?ˆ?ØˆIØ;<¿5º5ÀÑ;LÔ;LˆAÕ# J°Ñ7Ô7Ñ8Ø�‰FˆAˆAàðð ð MØ9:¿º¸|Ñ9LÔ9LˆÕ
 ¨fÑ
5Ô
5Ñ6Ð6Ð6ðMð Mr*   Ú )ÚversionÚdeprecated_argsÚcustom_messagec                ó˜   ‡‡‡— ‰€d}t          |¦  «        ‚‰€t          ¦   «         nt          ‰¦  «        Šˆˆˆfd„}| � || ¦  «        S |S )a‡  Decorator for methods that issues warnings for positional arguments.

    Using the keyword-only argument syntax in pep 3102, arguments after the
    * will issue a warning when passed as a positional argument.

    Parameters
    ----------
    func : callable, default=None
        Function to check arguments on.
    version : callable, default=None
        The version when positional arguments will result in error.
    deprecated_args : set of str, optional
        Arguments to deprecate - whether passed by position or keyword.
    custom_message : str, optional
        Custom message to add to deprecation warning and documentation.
    Nz9Need to specify a version where signature will be changedc                 óº  •‡ ‡‡‡	‡
— t          ‰ ¦  «        Š	g Šg Š‰	j                             ¦   «         D ]Z\  }}|j        t          j        k    r‰                     |¦  «         Œ0|j        t          j        k    r‰                     |¦  «         Œ[ˆˆˆfd„Š
t          j	        ‰ ¦  «        ˆˆˆ ˆˆ	ˆˆ
fd„¦   «         }t          |¦  «        }t          ‰¦  «        ‰z
  }d‰› d|› d‰› d�}‰r|d‰› d‰› d	�z  }|‰z  }|d
xx         |gz  cc<   t          |¦  «                             dd¦  «        d                              d¦  «        }t          |¦  «        |_        |S )Nc                 óŽ   •— ‰                      | ¦  «        }|r,d|› d‰› d�}|‰z  }t          j        |t          d¬¦  «         d S d S )Nz
Arguments zV are deprecated, whether passed by position or keyword. They will be removed in SciPy ú. r   r   )Úintersectionr   r   r   )r&   r^   r   rY   rX   rW   s      €€€r   Úwarn_deprecated_argszb_deprecate_positional_args.<locals>._inner_deprecate_positional_args.<locals>.warn_deprecated_argsÛ   sz   ø€ Ø*×7Ò7¸Ñ?Ô?ˆLØð Rð*¨ð *ð *à%ð*ð *ð *�ð ˜>Ñ)�Ý”˜gÕ0BÈqÐQÑQÔQÐQÐQÐQðRð Rr*   c                  óŽ  •— t          | ¦  «        t          ‰¦  «        z
  }|dk    r ‰|¦  «          ‰| i |¤ŽS t          ‰d |…         ¦  «        ‰z
  }d                     |¦  «        }t          j        d|› d‰
› d�t
          d¬¦  «         |                     t          ‰	j        | ¦  «        ¦  «          ‰|¦  «          ‰di |¤ŽS )	Nr   z, z)You are passing as positional arguments: zE. Please change your invocation to use keyword arguments. From SciPy z@, passing these as positional arguments will result in an error.r!   )r   r2   )	ÚlenÚsetÚjoinr   r   r   ÚupdateÚzipÚ
parameters)r%   r&   Ú
extra_argsÚkwonly_extra_argsÚargs_msgÚall_argsrX   ÚfÚkwonly_argsÚsigrW   r_   s        €€€€€€€r   Úinner_fzU_deprecate_positional_args.<locals>._inner_deprecate_positional_args.<locals>.inner_fä   s  ø€ õ ˜T™œ¥S¨¡]¤]Ñ2ˆJØ˜QŠˆØ$Ð$ VÑ,Ô,Ð,Ø�q˜$Ð) &Ð)Ð)Ð)õ !$ K°°°Ô$<Ñ =Ô =ÀÑ OÐØ—y’yÐ!2Ñ3Ô3ˆHÝŒMð9Àð 9ð 9à")ð9ð 9ð 9õ
 #Øð	ñ 	ô 	ð 	ð �MŠM�#˜cœn¨dÑ3Ô3Ñ4Ô4Ð4Ø Ð  Ñ(Ô(Ð(Ø�1�;�;�v�;�;Ðr*   z
.. deprecated:: z
    Use of argument(s) ``z6`` by position is deprecated; beginning in 
    SciPy z, these will be keyword-only. zArgument(s) ``zX`` are deprecated, whether passed by position or keyword; they will be removed in SciPy r]   zExtended SummaryrH   rJ   z 
)r   rf   ÚitemsÚkindr   ÚPOSITIONAL_OR_KEYWORDÚappendÚKEYWORD_ONLYr.   r/   r   rb   ÚstrÚsplitÚlstripr0   )rk   ÚnameÚparamrn   Údocrh   Ú
admonitionrj   rl   rm   r_   rY   rX   rW   s   `      @@@@€€€r   Ú _inner_deprecate_positional_argszD_deprecate_positional_args.<locals>._inner_deprecate_positional_argsÐ   s÷  øøøøøø€ Ý˜‰lŒlˆØˆØˆàœ>×/Ò/Ñ1Ô1ð 	)ð 	)‰KˆD�%ØŒz�YÔ<Ò<Ð<Ø—’ Ñ%Ô%Ð%Ð%Ø”�yÔ5Ò5Ð5Ø×"Ò" 4Ñ(Ô(Ð(øð	Rð 	Rð 	Rð 	Rð 	Rð 	Rð 	Rõ 
Œ˜Ñ	Ô	ð	ð 	ð 	ð 	ð 	ð 	ð 	ð 	ð 	ð 	ñ 
Ô	ð	õ0 ˜'Ñ"Ô"ˆÝ Ñ,Ô,¨Ñ>Ðð5Øð5ð 5à+ð5ð 5ð ð5ð 5ð 5ˆ
ð ð 	1Øð 0¨Oð 0ð 0à$+ð0ð 0ð 0ñ 1ˆJð 	�nÑ$ˆ
ØÐÐÐÔ J <Ñ/ÐÐÑå�#‰hŒh�nŠn˜T 1Ñ%Ô% aÔ(×/Ò/°Ñ6Ô6ˆÝ˜c™(œ(ˆŒàˆr*   )Ú
ValueErrorrb   )ÚfuncrW   rX   rY   r(   r{   s    ```  r   Ú_deprecate_positional_argsr~   ¸   sz   øøø€ ð$ €ØIˆÝ˜‰oŒoÐà.Ð6•c‘e”e�e½CÀÑ<PÔ<P€Oð=ð =ð =ð =ð =ð =ð =ð~ ÐØ/Ð/°Ñ5Ô5Ð5à+Ð+r*   )r!   )NNr6   )Úinspectr   r   r.   r   Ú	importlibr   Úscipy._lib._docscraper   Ú__all__ÚobjectÚ_NoValuer    r   r4   rU   r~   r2   r*   r   ú<module>r…      s  ðØ (Ð (Ð (Ð (Ð (Ð (Ð (Ð (Ø Ð Ð Ð Ø €€€Ø #Ð #Ð #Ð #Ð #Ð #Ø -Ð -Ð -Ð -Ð -Ð -ð ˆ/€ð
 ˆ6‰8Œ8€ð 7;Èð?ð ?ð ?ð ?ð ?ðDð ð ð ð(ð ð ð ð ñ ô ð ð&;Mð ;Mð ;Mð ;Mð@Z,°TØ/3ÀBðZ,ð Z,ð Z,ð Z,ð Z,ð Z,ð Z,r*   