
    h                         d dl Z d dlmZ d dlmZ d dlmZ d dlmZ d dl	m
Z
 d dlmZ  e e j                  d            Zd	 Zd
 Zy)    N)Sequence)Integral)urlparse)settings)checks)conf c                    g }t        t        j                  t              s&|j	                  t        j                  dd             t        t        j                  t              s&|j	                  t        j                  dd             t        t        j                  t              s&|j	                  t        j                  dd             t        t        j                  t              rt        j                  dk  r&|j	                  t        j                  d	d
             t        t        j                  t              sJt        t        d      rd}nd}|j	                  t        j                  dj!                  |      d             t        t        d      rd}nd}t        t        j"                  t              s6|j	                  t        j                  dj!                  |      d             nd}t        j"                  D ]  }||v rt%        |      }|j&                  dk(  s|j(                  dk(  rA|j	                  t        j                  dj!                  t+        |      |      dd             rdD ]R  }t-        ||      dk7  s|j	                  t        j                  dj!                  t+        |      ||      d             T  t        t        d      rd}	nd}	t        t        j.                  t        t0        f      s5|j	                  t        j                  dj!                  |	      d             t        t        j2                  t              s&|j	                  t        j                  d d!             t        t        j4                  t        t0        f      s&|j	                  t        j                  d"d#             t        t        j6                  t              s&|j	                  t        j                  d$d%             t        t        d&      r&|j	                  t        j                  d'd(             |S ))Nz3CORS_ALLOW_HEADERS should be a sequence of strings.zcorsheaders.E001)idz3CORS_ALLOW_METHODS should be a sequence of strings.zcorsheaders.E002z(CORS_ALLOW_CREDENTIALS should be a bool.zcorsheaders.E003r   zJCORS_PREFLIGHT_MAX_AGE should be an integer greater than or equal to zero.zcorsheaders.E004CORS_ALLOW_ALL_ORIGINSCORS_ORIGIN_ALLOW_ALLz{} should be a bool.zcorsheaders.E005CORS_ALLOWED_ORIGINSCORS_ORIGIN_WHITELISTz#{} should be a sequence of strings.zcorsheaders.E006)nullzfile://r	   z+Origin {} in {} is missing scheme or netloczcorsheaders.E013z:Add a scheme (e.g. https://) or netloc (e.g. example.com).)r   hint)pathparamsqueryfragmentz"Origin {} in {} should not have {}zcorsheaders.E014CORS_ALLOWED_ORIGIN_REGEXESCORS_ORIGIN_REGEX_WHITELISTz;{} should be a sequence of strings and/or compiled regexes.zcorsheaders.E007z)CORS_EXPOSE_HEADERS should be a sequence.zcorsheaders.E008z,CORS_URLS_REGEX should be a string or regex.zcorsheaders.E009z,CORS_REPLACE_HTTPS_REFERER should be a bool.zcorsheaders.E011
CORS_MODELzKThe CORS_MODEL setting has been removed - see django-cors-headers' HISTORY.zcorsheaders.E012)is_sequencer   CORS_ALLOW_HEADERSstrappendr   ErrorCORS_ALLOW_METHODS
isinstanceCORS_ALLOW_CREDENTIALSboolCORS_PREFLIGHT_MAX_AGEr   r   hasattrr   formatr   r   schemenetlocreprgetattrr   re_typeCORS_EXPOSE_HEADERSCORS_URLS_REGEXCORS_REPLACE_HTTPS_REFERER)
app_configskwargserrorsallow_all_aliasallowed_origins_aliasspecial_origin_valuesoriginparsedpartallowed_regexes_aliass
             U/var/www/html/ranktracker/api/venv/lib/python3.12/site-packages/corsheaders/checks.pycheck_settingsr8      s|   Ft..4LLE%	
 t..4LLE%	
 d1148LL:?Q	
 t22H=&&*LL* &	
 d11488566O5OLL&--o>%	
 x/0 6 7t00#6LL5<<=RS%	
!
 // 	F..f%F}}"fmmr&9LLELL L*? ..	 D 	Dvt,2"LL D K K$(L2G!" $6		)	> x67 = =t77#wHLLMTT) &		
 t//5LL;@R	
 d**S'N;LL>CU	
 d55t<LL>CU	
 x&LL6 &	
 M    c                 P    t        | t              xr t        fd| D              S )Nc              3   6   K   | ]  }t        |        y w)N)r   ).0xtype_or_typess     r7   	<genexpr>zis_sequence.<locals>.<genexpr>   s      /)*
1m$/s   )r   r   all)thingr>   s    `r7   r   r      s+    eX& 3 /.3/ , r9   )recollections.abcr   numbersr   urllib.parser   django.confr   django.corer   corsheaders.confr   typecompiler)   r8   r    r9   r7   <module>rL      s:    	 $  !    !
zrzz"~
Upr9   