�
K�gT � � � d dl Z d dlZej d dk ZerefZnefZddlmZ d� Z d� Z
di fd�Z G d � d
e� � Z
di fd�Zd� Zd
� Zdd�Zd� ZdS )� N� � ��FunctionWrapperc �
� t | t � � r!t | � � t j | } | }|� d� � }|d }d� } |||� � }|dd � D ]}|} |||� � }�|||fS )N�.r c �� � t j | � � rOt j | � � D ]*}|t |� � v rt |� � | c S �+t | |� � S t | |� � S �N)�inspect�isclass�getmro�vars�getattr)�parent� attribute�clss �]/home/asafur/pinokio/api/open-webui.git/app/env/lib/python3.11/site-packages/wrapt/patches.py�lookup_attributez&resolve_path.<locals>.lookup_attribute&