+
    „°ñjI  ã                   óŽ   € ^ RI Ht ^ RIt^ RIt^ RIt^ RIt^ RIHtH	t	  ! R R]	P                  4      t ! R R]4      tR R	 ltR# )
é    )ÚoverrideN)ÚComfyExtensionÚioc                   óP   a € ] tR t^
t o ]R 4       t]RV 3R lR ll4       tRtV tR# )ÚTextEncodeMageFlowEditc                óÈ  € \         P                  ! R RR\         P                  P                  R4      \         P                  P                  RRRR7      \         P                  P                  RRRRR7      \         P
                  P                  R	RR
7      \         P                  P                  R\         P                  P                  \         P                  P                  R4      \        ^^4       Uu. uF  pRV 2NK
  	  up^ R7      RR7      \         P                  P                  R^ ^ R^RR7      \         P                  P                  R^ ^ R^RR7      \         P                  P                  R^^RR7      .\         P                  P                  RR7      \         P                  P                  RR7      \         P                  P                  RR7      .R7      # u upi )r   zmodel/conditioning/magez÷Encode an edit instruction with one or more reference images for Mage-Flow-Edit. Reference latents are resized to the output resolution (width/height, or the first image's size when 0). Use the latent output for sampling so the sizes always match.ÚclipÚpromptT)Ú	multilineÚdynamic_promptsÚnegative_prompt)r   r   ÚadvancedÚvae)ÚoptionalÚimagesÚimageÚimage_)ÚnamesÚminz`Reference image(s) to edit. All references are resized to the output resolution before encoding.)ÚtemplateÚtooltipÚwidthi    z7Output width. 0 = use the first reference image's size.)Údefaultr   ÚmaxÚstepr   Úheightz8Output height. 0 = use the first reference image's size.Ú
batch_sizei   )r   r   r   Úpositive)Údisplay_nameÚnegativeÚlatent)Únode_idÚcategoryÚdescriptionÚinputsÚoutputs)r   ÚSchemaÚClipÚInputÚStringÚVaeÚAutogrowÚTemplateNamesÚImageÚrangeÚIntÚConditioningÚOutputÚLatent)ÚclsÚis   & Ú;C:\Ai_Coding\apps\studio\ComfyUI\comfy_extras\nodes_mage.pyÚdefine_schemaÚ$TextEncodeMageFlowEdit.define_schema   s�  € ä�yŠyØ,Ø.ð Rä—‘—‘˜fÓ%Ü—	‘	—‘ °DÈ$�ÓOÜ—	‘	—‘Ð 1¸TÐSWÐbf�ÓgÜ—‘—‘˜U¨T�Ó2Ü—‘×!Ñ!ØÜŸ[™[×6Ñ6ÜŸ™Ÿ™ wÓ/Ü5:¸1¸b´\ÓB±\° ¨ s›|±\ÑBØð 7ó ð
 ð "ó ô —‘—‘˜W¨a°Q¸DÀrð  TM�ó  NÜ—‘—‘˜X¨q°a¸TÈð  UO�ó  PÜ—‘—‘˜\°1¸!À�ÓFð!ô& —‘×&Ñ&°JÐ&Ó?Ü—‘×&Ñ&°JÐ&Ó?Ü—	‘	× Ñ ¨hÐ Ó7ðô-
ð 	
ùò Cs   Ã4G"Nc                ób   <€ V ^8„  d   QhRS[ P                  P                  RS[ P                  /# )é   r   Úreturn)r   r,   ÚTypeÚ
NodeOutput)ÚformatÚ__classdict__s   "€r6   Ú__annotate__Ú#TextEncodeMageFlowEdit.__annotate__,   s<   ø€ ÷ /Fñ /FÉÏÉ×IYÑIYð /Fñ  GI÷  GTñ  GTñ /Fó    c	                óæ  € . p	T;'       g    / p\        VR  R7       U
u. uF  q¥V
,          f   K  WZ,          NK  	  pp
. pV^ 8X  g   V^ 8X  d`   \        V4      ^ 8”  d5   V^ ,          P                  ^,          V^ ,          P                  ^,          rÜMRRrÜT;'       g    TpT;'       g    Tp\        ^V^,          ^,          4      p\        ^V^,          ^,          4      pV EF“  pVP	                  R^4      p\        VP                  ^,          VP                  ^,          4      pVR8”  d¥   RV,          p\
        P                  P                  V\        ^\        VP                  ^,          V,          4      4      \        ^\        VP                  ^,          V,          4      4      RR4      pVP                  VP	                  ^R4      4       MVP                  V4       Vf   EK  VP                  ^,          V8w  g   VP                  ^,          V8w  d$   \
        P                  P                  WöVRR4      pMTpV	P                  VP                  VP	                  ^R4      R,          4      4       EK–  	  VP                  VP                  W+R7      4      pTP                  TP                  V'       d   TMRVR7      4      p\        V	4      ^ 8”  d7   \        P                  ! VRV	/R	R
7      p\        P                  ! VRV	/R	R
7      p\        P                   ! V^€V^,          V^,          .\
        P"                  P%                  4       R7      p\&        P(                  ! VVRV/4      # u up
i )c                 óF   € \        V P                  R ^4      R,          4      # )Ú_éÿÿÿÿ)ÚintÚrsplit)Úns   &r6   Ú<lambda>Ú0TextEncodeMageFlowEdit.execute.<locals>.<lambda>/   s   € ÌÈAÏHÉHÐUXÐZ[ÓL\Ð]_ÕL`ÔHarB   )Úkeyi   i€  ÚbicubicÚdisabled)r   Ú Úreference_latentsT)Úappend)ÚdeviceÚsamplesrF   )ºNNNrT   rT   :Né   N)ÚsortedÚlenÚshaper   ÚmovedimÚcomfyÚutilsÚcommon_upscaleÚroundrQ   ÚencodeÚencode_from_tokens_scheduledÚtokenizeÚnode_helpersÚconditioning_set_valuesÚtorchÚzerosÚmodel_managementÚintermediate_devicer   r=   )r4   r	   r
   r   r   r   r   r   r   Úref_latentsÚnameÚ	images_vlÚref_hÚref_wr   rS   Ú	long_edgeÚscale_byÚsr   r    r!   s   &&&&&&&&&             r6   ÚexecuteÚTextEncodeMageFlowEdit.execute+   s   € àˆØ—�˜2ˆÜ+1°&Ñ>aÕ+bÓÑ+b 4ÐmqÕfr”,�&—,�,Ñ+bˆÐØˆ	ð �AŒ:˜ 1œÜ�6‹{˜QŒØ% a�yŸ™¨qÕ1°6¸!µ9·?±?À1Õ3E‘uà# T�uØ—_�_˜uˆFØ—N�N˜UˆEÜ�B˜ "�¨Õ*Ó+ˆÜ�R˜& B�,¨"Õ,Ó-ˆäˆEØ—m‘m B¨Ó*ˆGô ˜GŸM™M¨!Õ,¨g¯m©m¸AÕ.>Ó?ˆIØ˜3ŒØ �?�Ü—K‘K×.Ñ.¨w¼¸A¼uÀWÇ]Á]ÐSTÕEUÐX`ÕE`Ó?aÓ8bÔdgÐhiÔkpÐqx×q~Ñq~ð  @Aõ  rBð  EMõ  rMó  lNó  eOð  QZð  \fó  g�Ø× Ñ  §¡¨1¨bÓ!1Õ2à× Ñ  Ô'à�à—=‘= Õ# uÔ,°·±¸aÕ0@ÀFÔ0JÜŸ™×2Ñ2°7À6È9ÐV`Óa‘Aà�AØ×"Ñ" 3§:¡:¨a¯i©i¸¸2Ó.>¸{Õ.KÓ#L×Mñ% ð* ×4Ñ4°T·]±]À6°]Ó5\Ó]ˆØ×4Ñ4°T·]±]×VeÁ?Ðknð  xA°]ó  6Bó  Cˆäˆ{Ó˜aÔÜ#×;Ò;¸HÐGZÐ\gÐFhÐquÔvˆHÜ#×;Ò;¸HÐGZÐ\gÐFhÐquÔvˆHä—’˜j¨#¨v¸­|¸UÀb½[ÐIÔRW×RhÑRh×R|ÑR|ÓR~ÔˆÜ�}Š}˜X x°)¸VÐ1DÓEÐEùòY @s
   ŸM.°M.© )Ú NNr   r   é   )	Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Úclassmethodr7   ro   Ú__static_attributes__Ú__classdictcell__©r?   s   @r6   r   r   
   s3   ø‡ € àñ
ó ð
ð< ÷/Fñ /Fó ö/FrB   r   c                   ó<   a € ] tR t^^t o ]V 3R lR l4       tRtV tR# )ÚMageExtensionc                óT   <€ V ^8„  d   QhRS[ S[S[P                  ,          ,          /# ©r:   r;   )ÚlistÚtyper   Ú	ComfyNode)r>   r?   s   "€r6   r@   ÚMageExtension.__annotate__`   s"   ø€ ÷ 
ñ 
¡T©$©r¯|©|Õ*<Õ%=ñ 
rB   c              ƒ  ó   "  € \         .# 5i©N)r   )Úselfs   &r6   Úget_node_listÚMageExtension.get_node_list_   s   é € ô #ð
ð 	
ùs   ‚
rq   N)rt   ru   rv   rw   r   r‡   ry   rz   r{   s   @r6   r}   r}   ^   s   ø‡ € Ø÷
ó ö
rB   r}   c                ó$   € V ^8„  d   QhR\         /# r   ©r}   )r>   s   "r6   r@   r@   f   s   € ÷ ñ ¤ñ rB   c               ƒ   ó   "  € \        4       # 5ir…   rŠ   rq   rB   r6   Úcomfy_entrypointrŒ   f   s   é € Ü‹?Ðùs   ‚)Útyping_extensionsr   Úcomfy.utilsrZ   ra   rc   Úcomfy.model_managementÚcomfy_api.latestr   r   r‚   r   r}   rŒ   rq   rB   r6   Ú<module>r‘      s=   ðÝ &ã Û Û Û ß /ôQF˜RŸ\™\ô QFôh
�Nô 
÷rB   