
    ͆hI#                    D   S SK Jr  S SKrS SKJrJrJr  S SKJr  S SK	J
r
  S SKJr  S SKJr  S SKJrJr  S S	KJr  \(       a  S S
KJr  S SKJr  \R.                  " \5      r " S S5      r " S S\5      r " S S\5      rSS jrSS jr\" S5      rSS jr SS jr!SS jr"g)    )annotationsN)TYPE_CHECKINGIteratorTypeVar)urlsplit)
BuildError)StructureItem)file_sort_key)Page_AbsoluteLinksValidationValue)
nest_paths)MkDocsConfig)Filesc                  V    \ rS rSr% SS jrS\S'    S\S'    SS jrSS jrSS	 jrS
r	g)
Navigation   pages
list[Page]c                n    Xl         X l        S U l        U H  nUR                  (       d  M  X0l          g    g N)itemsr   homepageis_homepage)selfr   r   pages       L/opt/services/DDDS/venv/lib/python3.13/site-packages/mkdocs/structure/nav.py__init__Navigation.__init__   s1    

D $     zPage | Noner   c                2    SR                  S U  5       5      $ )N
c              3  @   #    U  H  oR                  5       v   M     g 7fr   )_indent_print).0items     r   	<genexpr>%Navigation.__str__.<locals>.<genexpr>'   s     ?$$++--$s   )joinr   s    r   __str__Navigation.__str__&   s    yy?$???r   c                ,    [        U R                  5      $ r   )iterr   r)   s    r   __iter__Navigation.__iter__)   s    DJJr   c                ,    [        U R                  5      $ r   )lenr   r)   s    r   __len__Navigation.__len__,   s    4::r   )r   r   r   N)r   listr   r   returnNone)r5   str)r5   r   )r5   int)
__name__
__module____qualname____firstlineno__r   __annotations__r*   r.   r2   __static_attributes__ r   r   r   r      s+     Ve@ r   r   c                     ^  \ rS rSr% SS jrS rS\S'    S\S'    \SS	 j5       r\R                  SS
 j5       rSr
S\S'    SrS\S'    SrS\S'    SSU 4S jjjrSrU =r$ )Section0   titler7   childrenlist[StructureItem]c                *    Xl         X l        SU l        g )NF)rC   rD   active)r   rC   rD   s      r   r   Section.__init__1   s    
 r   c                T    U R                   R                  nU SU R                  < S3$ )N(title=))	__class__r9   rC   )r   names     r   __repr__Section.__repr__7   s(    ~~&&wtzznA..r   boolc                    U R                   $ )z
When `True`, indicates that a child page of this section is the current page and
can be used to highlight the section as the currently viewed section. Defaults
to `False`.
)_Section__activer)   s    r   rG   Section.activeA   s     }}r   c                t    [        U5      U l        U R                  b  [        U5      U R                  l        gg)z+Set active status of section and ancestors.N)rP   rR   parentrG   )r   values     r   rG   rS   J   s.     U;;"!%eDKK #r   T
is_sectionFis_pageis_linkc                   > [         TU ]  U5      /nU R                   H&  nUR                  UR                  US-   5      5        M(     SR	                  U5      $ )N   r!   )superr#   rD   appendr(   )r   depthretr%   rL   s       r   r#   Section._indent_printZ   sL    w$U+,MMDJJt))%!)45 "yy~r   )__activerG   rD   rC   )rC   r7   rD   rE   r5   r6   )r5   rP   )rV   rP   )r   )r^   r8   r5   r7   )r9   r:   r;   r<   r   rN   r=   propertyrG   setterrW   rX   rY   r#   r>   __classcell__)rL   s   @r   rA   rA   0   s}    / J#!!m  ]]- - JhGTfGTf r   rA   c                      \ rS rSr% SS jrS rS\S'    S\S'    SrS\S	'    S
rS\S'    S
r	S\S'    S
r
S\S'    SrS\S'   Srg)Linka   rC   r7   urlc                    Xl         X l        g r   rC   rh   )r   rC   rh   s      r   r   Link.__init__b   s    
r   c                    U R                   R                  nU R                  b  U R                  < OSnU SU SU R                  < S3$ )Nz[blank]rJ   z, url=rK   )rL   r9   rC   rh   )r   rM   rC   s      r   rN   Link.__repr__f   sD    ~~&&%)ZZ%;4::.wugVDHH<q99r   Nr6   rD   FrP   rG   rW   rX   TrY   rj   )rC   r7   rh   r7   )r9   r:   r;   r<   r   rN   r=   rD   rG   rW   rX   rY   r>   r?   r   r   rf   rf   a   sc    :
 JW	H5 HdKFDPJfGTcGTbr   rf   c                   U R                  5       nUS   nUc   [        U[        S9n[        S U 5       5      n[	        X0U5      n[        U[        5      (       d  U/n[        U[        5      n[        U5        [        U5        / nU HZ  nUR                  b  M  [        SXq5        UR                  R                  5       (       d  M?  UR                  UR                  5        M\     U(       aF  [         R!                  UR"                  R$                  R&                  SSR)                  U5      -   5        [        U[*        5      nU GH'  n	[-        U	R.                  5      u  ppnU
(       d  U(       a%  [         R1                  SU	R.                   S35        MP  U	R.                  R3                  S	5      (       au  UR"                  R$                  R4                  [6        R8                  LaD  [         R!                  UR"                  R$                  R4                  S
U	R.                   S35        M  [         R!                  UR"                  R$                  R:                  SU	R.                   S35        GM*     [=        XE5      $ )z,Build site navigation from config and files.navN)keyc              3  z   #    U  H1  oR                   R                  5       (       d  M#  UR                  v   M3     g 7fr   )	inclusion	is_in_navsrc_uri)r$   fs     r   r&   !get_navigation.<locals>.<genexpr>   s%     b3Fa++J_J_Ja			3Fs   ";;zfThe following pages exist in the docs directory, but are not included in the "nav" configuration:
  - z
  - zAn external link to 'z)' is included in the 'nav' configuration./zAn absolute path to 'zZ' is included in the 'nav' configuration, which presumably points to an external resource.A reference to 'zX' is included in the 'nav' configuration, which is not found in the documentation files.)documentation_pagessortedr
   r   _data_to_navigation
isinstancer4   _get_by_typer   _add_previous_and_next_links_add_parent_linksr   rr   rs   r]   src_pathlog
validationro   omitted_filesr(   rf   r   rh   debug
startswithabsolute_linksr   RELATIVE_TO_DOCS	not_foundr   )filesconfigry   
nav_configr   r   missing_from_configfilelinkslinkschemenetlocpathqueryfragments                  r   get_navigationr      s   335J$%8mLb3Fbb

6:EeT"" %E !'e#99 t$~~''))#**4==9 $ !!//9;C==I\;]^	
 %E080B-XVII-dhhZ7`abHH$$!!%%440AAB GG!!%%44'z 2R R GG!!%%//"488* -P P ( e##r   c                ^   [        U [        5      (       aY  U R                  5        VVs/ s H;  u  p4[        U[        5      (       a  [	        X44X5      O[        U[	        XAU5      S9PM=     snn$ [        U [        5      (       aP  U  Vs/ s HB  n[        U[        5      (       a  [        U5      S:X  a  [	        XQU5      S   O[	        XQU5      PMD     sn$ [        U [        5      (       a  U OS U 4u  pgUnUR                  S5      (       aB  UR                  R                  R                  [        R                  L a  UR                  S5      nUR!                  U5      =n	(       a  U	R"                  R%                  5       (       aZ  [&        R'                  [)        [*        R,                  UR                  R                  R.                  5      SU	R0                   S35        U	R2                  n
U
b"  [        U
[4        5      (       d  [7        S5      eU
$ [5        XiU5      $ [9        Xg5      $ s  snnf s  snf )N)rC   rD   r[   r   rw   rx   zX' is included in the 'nav' configuration, but this file is excluded from the built site.z5A plugin has set File.page to a type other than Page.)r|   dictr   r7   r{   rA   r4   r1   tupler   r   ro   r   r   r   lstripget_file_from_pathrr   is_excludedr   minloggingINFOr   r   r   r   r   rf   )datar   r   rp   rV   r%   rC   r   lookup_pathr   r   s              r   r{   r{      s   $
 #jjl	
 +
 %%%  e<s-@v-VWX +	
 	
 
D$		
 	
  $%%#d)q.  V4Q7$T&9: 	
 	
 %T511$d|KEKs##!!004Q4b4bb!((-''44t4>>%%''GGGLL&"3"3"7"7"A"AB"4==/ 2P P
 yydD)) !XYYKE((C

s   AH$A	H*Tc                    / nU  H\  n[        X15      (       a  UR                  U5        UR                  (       d  M7  UR                  [	        UR                  U5      5        M^     U$ r   )r|   r]   rD   extendr}   )ro   tr_   r%   s       r   r}   r}      sO    
CdJJt===JJ|DMM156	 
 Jr   c                    U  HD  nUR                   (       d  M  UR                   H	  nXl        M     [        UR                  5        MF     g r   )rW   rD   rU   r   )ro   r%   childs      r   r   r      s4    ???# 'dmm,	 r   c                j    S /U QS Pn[        US S XSS  5      nU H  u  p4nX5sUl        Ul        M     g )N   )zipprevious_page	next_page)r   	bookendedzippedpage0page1page2s         r   r~   r~      sJ    $$t$I3B!"6F%e/4,U_  &r   )r   r   r   r   r5   r   )r   r   r   r   )r   ztype[T]r5   zlist[T])r5   r6   )r   r   r5   r6   )#
__future__r   r   typingr   r   r   urllib.parser   mkdocs.exceptionsr   mkdocs.structurer	   mkdocs.structure.filesr
   mkdocs.structure.pagesr   r   mkdocs.utilsr   mkdocs.config.defaultsr   r   	getLoggerr9   r   r   rA   rf   r   r{   r   r}   r   r~   r?   r   r   <module>r      s    "  3 3 ! ( * 0 F #3, ! 6.m .bc= cB7$t#L CL-<r   