
    /_i                    H    d dl mZ d dlmZ erd dlmZ d dlmZ ddZddZ	y)	    )annotations)TYPE_CHECKING)PagesManager)PageInfoc                    | j                  d      } |j                         j                         D ];  }|j                  dd      }|s| j	                  |      s*| j                  |      c S  | S )z-Trim the page path from the URL if it exists./url_pathname )removesuffix	get_pagesvaluesgetendswith)urlpage_managerpagepage_urls       ]/var/www/html/land_sniper/venv/lib/python3.12/site-packages/streamlit/runtime/context_util.pymaybe_trim_page_pathr      si    


3
C&&(//1 .88NB/X.##H--.
 J    c                    | j                  d      } |j                  }|j                         j                  |d      }||j                  dd      }|r|  d| S | S )z*Add the page path to the URL if it exists.r   Nr	   r
   )r   current_page_script_hashr   r   )r   r   r   current_page_infor   s        r   maybe_add_page_pathr   $   sp    


3
C+DD)5)?)?)A)E)E $* $$((<U!H:&&Jr   N)r   strr   r   returnr   )

__future__r   typingr   streamlit.runtime.pages_managerr   streamlit.source_utilr   r   r    r   r   <module>r"      s     #  <.	r   