+
    7*i#  c                  s   a  0 t $ ^ RIHt ^ RIHtHt ^ RIHt ^ RIH	t	H
t
HtHt ^ RIHt RtR]R&    ! R	 R
]4      t ! R R]4      t] ! R R4      4       tR R ltR R ltR R ltR R ltR# )i    )annotations)	dataclassfield)	TypedDict)ComputedField
CoreSchemaDefinitionReferenceSchema	SerSchema)	TypeAliasz&CoreSchema | SerSchema | ComputedFieldr   
AllSchemasc                  s2    ] tR t^t$ RtR]R&    R]R&   RtR# )GatherResultzSchema traversing result.+dict[str, DefinitionReferenceSchema | None]collected_referenceslist[CoreSchema]deferred_discriminator_schemas N)__name__
__module____qualname____firstlineno____doc____annotations____static_attributes__r       F/usr/lib/python3.14/site-packages/pydantic/_internal/_schema_gather.pyr
   r
      s    #EE %54Qr   r
   c                  s&    ] tR t^tRtR R ltRtR# )MissingDefinitionErrorz7A reference was pointing to a non-existing core schema.c               s     V ^8  d   QhRRRR/# )   schema_referenceZstrreturnNoner   Zformat   "r   __annotate__Z#MissingDefinitionError.__annotate__   s     1 1 1D 1r   c               	s    Wn         R # )Nr   )Zselfr   s   ""r   __init__ZMissingDefinitionError.__init__   s     0r   r!   N)r   r   r   r   r   r"   r   r   r   r   r   r      s    A1 1r   r   c                  sf    ] tR t^#t$ RtR]R&    ]! R]R7      tR]R&    ]! R]	R7      t
R]R	&   R
tR# )GatherContextzyThe current context used during core schema traversing.

Context instances should only be used during schema traversing.
dict[str, CoreSchema]definitionsF)ZinitZdefault_factoryr   r   r   r   r   N)r   r   r   r   r   r   r   listr   dictr   r   r   r   r   r#   r#   #   sI    
 '&$7<%Y]7^"$4^
 INSXjnHoEor   r#   c               $    V ^8  d   QhRRRRRR/# )r   schemar	   ctxr#   r   r   r   r   r   r   r    r    ?   s!     : :j :} : :r   c                s|    V P                  R 4      pVe'   RV9   d   VP                  P                  V 4       R# R# R# )ZmetadataNZ%pydantic_internal_union_discriminator)getr   Zappend)r)   r*   Zmeta   && r   traverse_metadatar-   ?   s;    ::j!DCtK**11&9 Lr   c               r(   )r   def_ref_schemar   r*   r#   r   r   r   r   r   r   r    r    E   s#     4 4,E 4M 4^b 4r   c                s*   V R ,          pW!P                   9  dk   VP                  P                  V4      pVf   \        V4      hWP                   V&   \	        W14       RV 9   d   \	        V R,          V4       \        W4       R# RVP                   V&   R# )
schema_refNserialization)r   r%   r+   r   traverse_schemar-   )r.   r*   r/   
definitions   &&  r   traverse_definition_refr3   E   s    -J111__((4
(44 0>  ,
(n,N?;SA.. 04  ,r   c               r(   )r   r)   r	   contextr#   r   r   r   r   r   r   r    r    Z   s&     c' c'J c' c'4 c'r   c                s	   V R ,          pVR8X  d   \        W4       R# VR8X  d1   \        V R,          V4       V R,           F  p\        W14       K  	  EMVR&9   d   RV 9   d   \        V R,          V4       EMVR8X  d%   RV 9   d   V R,           F  p\        WA4       K  	  EMVR8X  d7   RV 9   d   \        V R,          V4       R	V 9   d   \        V R	,          V4       EM|VR
8X  dI   V R,           F9  p\        V\        4      '       d   \        V^ ,          V4       K.  \        WQ4       K;  	  EM-VR8X  d,   V R,          P	                  4        F  p\        Wa4       K  	  EMVR8X  d   V R,           F  p\        Wq4       K  	  EMVR8X  d)   \        V R,          V4       \        V R,          V4       EMVR8X  d)   \        V R,          V4       \        V R,          V4       EMyVR'9   dh   RV 9   d   \        V R,          V4       RV 9   d   V R,           F  p\        WA4       K  	  V R,          P	                  4        F  p\        WA4       K  	  EMVR8X  d@   RV 9   d   V R,           F  p\        WA4       K  	  V R,           F  p\        WA4       K  	  EMVR8X  dZ   V R,           F  p\        VR,          V4       K  	  RV 9   d   \        V R,          V4       RV 9   d   \        V R,          V4       EMeVR8X  d&   V R,           F  p\        VR,          V4       K  	  EM9VR8X  d0   \        V R,          V4       RV 9   d   \        V R,          V4       EMVR 8X  d   \        V R,          V4       MVR!8X  d6   RV 9   d   \        V R,          V4       R"V 9   d   \        V R",          V4       MVR#8X  d6   RV 9   d   \        V R,          V4       R"V 9   d   \        V R",          V4       MpVR$8X  dP   RV 9   d   \        V R,          V4       RV 9   d   \        V R,          V4       R"V 9   d   \        V R",          V4       MRV 9   d   \        V R,          V4       R%V 9   d   \        V R%,          V4       \        W4       R# )(Ztypezdefinition-refNr%   r)   Zitems_schematupler'   Zkeys_schemaZvalues_schemaZunionZchoicesztagged-unionZchainZstepszlax-or-strictZ
lax_schemaZstrict_schemazjson-or-pythonZjson_schemaZpython_schemaZextras_schemaZcomputed_fieldsZfieldszdataclass-argsZ	argumentsZarguments_schemaZvar_args_schemaZvar_kwargs_schemazarguments-v3ZcallZreturn_schemazcomputed-fieldzfunction-beforeZjson_schema_input_schemazfunction-plainzfunction-wrapr0   >   Zsetr&   Z	frozensetZ	generator>   z
typed-dictzmodel-fields)r3   r1   Z
isinstancer5   Zvaluesr-   )r)   r4   Zschema_typer2   ZsZchoiceZvZsteps   &&      r   r1   r1   Z   s    .K&&0		%x('2 //JJ0 0	A	AV#F>2G<		V#N+++ ,		F"F=17;f$F?3W=		Y''F&%((q	730	 (
 
	&	"))+AA' ,		7OODD* $		'|,g6/9	(	(}-w7/9	6	6f$F?3W=&-..+ /!((*AA' +	(	(&-..+ /!!AA' "		#*++AAhK1 ,&F#45w?&(F#67A		&*++AAhK1 ,		12G<f$F?3W=	(	(/9	)	)vF8,g6%/F#=>H	(	(f$F?3W=%/F#=>H		'f$F?3W=vF8,g6%/F#=>HvF8,g6& /9f&r   c               r(   )r   r)   r   r%   r$   r   r
   r   r   r   r   r    r       s#      
 AV [g r   c                sb    \        V4      p\        W4       RVP                  RVP                  /# )aA  Traverse the core schema and definitions and return the necessary information for schema cleaning.

During the core schema traversing, any `'definition-ref'` schema is:

- Validated: the reference must point to an existing definition. If this is not the case, a
  `MissingDefinitionError` exception is raised.
- Stored in the context: the actual reference is stored in the context. Depending on whether
  the `'definition-ref'` schema is encountered more that once, the schema itself is also
  saved in the context to be inlined (i.e. replaced by the definition it points to).
r   r   )r#   r1   r   r   )r)   r%   r4   r,   r   gather_schemas_for_cleaningr6      s8     K(GF$ 	 < <('*P*P r   N)__conditional_annotations__Z
__future__r    Zdataclassesr   r   Ztypingr   Zpydantic_core.core_schemar   r   r   r   Ztyping_extensionsr   r	   r   r
   ZLookupErrorr   r#   r-   r3   r1   r6   )r7   s   @r   <module>r8      sn    " " (  e e '@
I @R9 R1[ 1   6:4*c'Lr   