+
    ĜiV                        ^ RI Ht ^ RIHtHtHtHtHt ^ RIH	t	 ^ RI
Ht ^RIHtHt ^RIHt ^RIHt ^RIHt ^R	IHt ^R
IHtHtHt ^RIHtHt  ! R R]4      t ! R R]4      t  ! R R]4      t! ! R R]4      t"R# )    )safe_string)TypedIntegerBoolStringSequence)ExtensionList)Serialisable)PatternFillFill)Font)Border)	Alignment)
Protection)NumberFormatDescriptorBUILTIN_FORMATS_MAX_SIZEBUILTIN_FORMATS_REVERSE)
StyleArray	CellStylec                     a a ] tR t^t oRt]! ]R7      t]! ]R7      t	]! ]
R7      t]! ]R7      t]! 4       t]! ]R7      t]! RR7      t]! RR7      t]! 4       tRt]! 4       tRR ltV 3R ltR tR	 tR
 tR t R t!R t"Rt#Vt$V ;t%# )
NamedStylez
Named and editable styles
expected_typeT
allow_noneNc
                \   Wn         T;'       g    \        4       V n        T;'       g    \        4       V n        T;'       g    \        4       V n        T;'       g    \        4       V n        W`n	        T;'       g    \        4       V n        Wn        Wn        R V n        \        4       V n        R # N)namer   fontr   fillr   borderr   	alignmentnumber_formatr   
protection	builtinIdhidden_wbr   _style)
selfr   r   r    r!   r"   r#   r$   r%   r&   s
   &&&&&&&&&&e/Users/mibo/.openclaw/workspace/.venv-ak/lib/python3.14/site-packages/openpyxl/styles/named_styles.py__init__NamedStyle.__init__2   s|     	NNDF	))KM	(("11ik*$44
" l    c                   < \         SV `  W4       \        V R R4      '       d   VR9   d   V P                  4        R# R# R# )r'   N)r   r    r!   r"   r#   r$   )super__setattr__getattr_recalculate)r)   attrvalue	__class__s   &&&r*   r0   NamedStyle.__setattr__J   sA    D(4%%$ 3 + +%r-   c              #  b   "   R F$  p\        WR4      pVf   K  V\        V4      3x  K&  	  R# 5i)r   Nr   r%   r&   xfId)r1   r   )r)   keyr4   s   &  r*   __iter__NamedStyle.__iter__R   s1     :CDt,E ;u--- ;s   //c                2    Wn         V P                  4        R# )z"
Bind a named style to a workbook
N)r'   r2   )r)   wbs   &&r*   bindNamedStyle.bindY   s     r-   c                P   V P                   P                  P                  V P                  4      V P                  n        V P                   P                  P                  V P                  4      V P                  n        V P                   P                  P                  V P                  4      V P                  n        V P                   P                  P                  V P                  4      V P                  n        V P                   P                  P                  V P                   4      V P                  n        V P$                  pV\&        9   d   \&        V,          pM:V P                   P(                  P                  V P$                  4      \*        ,           pWP                  n        R # r   )r'   _fontsaddr   r(   fontId_bordersr!   borderId_fillsr    fillId_protectionsr$   protectionId_alignmentsr"   alignmentIdr#   r   _number_formatsr   numFmtId)r)   fmts   & r*   r2   NamedStyle._recalculatea   s   "hhoo11$))<#xx0044T[[A"hhoo11$))<#'88#8#8#<#<T__#M "&(("6"6":":4>>"J  )))#.C((**..t/A/AB*,C"r-   c                    V P                   # )z3Return a style array representing the current style)r(   r)   s   &r*   as_tupleNamedStyle.as_tuplep   s    {{r-   c                   \         P                  ! V P                  4      pRVn        RVn        RVn        V P                  \        4       8w  d   V P                  Vn        V P                  \        4       8w  d   V P                  Vn        V# )z
Return equivalent XfStyle
N)
r   
from_arrayr(   r9   pivotButtonquotePrefixr"   r   r$   r   )r)   xfs   & r*   as_xfNamedStyle.as_xfu   sd     !!$++.>>Y[(>>BL??jl* OOBM	r-   c                    \        V P                  V P                  V P                  V P                  P
                  R7      pV# )z
Return relevant named style

r8   )_NamedCellStyler   r%   r&   r(   r9   )r)   nameds   & r*   as_nameNamedStyle.as_name   s7    
  nn;;!!	
 r-   )r(   r'   r"   r!   r%   r    r   r&   r   r#   r$   )	NormalNNNNNNNF)&__name__
__module____qualname____firstlineno____doc__r   r   r   r   r    r   r!   r   r"   r   r#   r   r$   r   r%   r   r&   r   r   r'   r   r(   r+   r0   r;   r?   r2   rS   rZ   r_   __static_attributes____classdictcell____classcell__r5   __classdict__s   @@r*   r   r      s      t$Dt$D(FI.I*,MZ0J4(IT"F8D
C\F#0 .#
 r-   r   c                   b   a a ] tR t^t oRtRV 3R llt]R 4       tV 3R ltV 3R lt	Rt
VtV ;t# )NamedStyleListz
Named styles are editable and can be applied to multiple objects

As only the index is stored in referencing objects the order mus
be preserved.

Returns a list of NamedStyles
c                   < \        V\        V 4      4       F  w  r#W#P                  n        K  	  \        SV `  V4       R# )z>
Allow a list of named styles to be passed in and index them.
N)	enumeratelenr(   r9   r/   r+   )r)   iterableidxsr5   s   &&  r*   r+   NamedStyleList.__init__   s2    
  #d)4FCHHM 5"r-   c                B    V  Uu. uF  qP                   NK  	  up# u upi r   )r   )r)   rs   s   & r*   namesNamedStyleList.names   s     $%1%%%s   c                   < \        V\        4      '       d   \        SV `  V4      # \	        V P
                  4       F  w  r#W18X  g   K  W,          u # 	  \        R P                  V4      4      h)z&No named style with the name{0} exists)
isinstanceintr/   __getitem__ro   rv   KeyErrorformat)r)   r:   rr   r   r5   s   &&  r*   r{   NamedStyleList.__getitem__   s]    c37&s++ #4::.IC{y  / ?FFsKLLr-   c                  < \        V\        4      '       g   \        R 4      hVP                  V P                  9   d%   \        RP                  VP                  4      4      h\        V 4      VP                  n	        \        SV `-  V4       R# )z&Only NamedStyle instances can be addedzStyle {0} exists alreadyN)ry   r   	TypeErrorr   rv   
ValueErrorr}   rp   r(   r9   r/   append)r)   styler5   s   &&r*   r   NamedStyleList.append   sc    %,,HIIZZ4::%;BB5::NOO Yur-    )r   )rb   rc   rd   re   rf   r+   propertyrv   r{   r   rg   rh   ri   rj   s   @@r*   rm   rm      s3     # & &	M r-   rm   c                      a  ] tR t^t o RtRt]! 4       t]! 4       t	]! RR7      t
]! RR7      t]! RR7      t]! RR7      t]! ]RR7      tR	tR
R ltRtV tR# )r]   z}
Pointer-based representation of named styles in XML
xfId refers to the corresponding CellStyleXfs

Not used in client code.
	cellStyleTr   )r   r   Nc                N    Wn         W n        W0n        W@n        WPn        W`n        R # r   )r   r9   r%   iLevelr&   customBuiltin)r)   r   r9   r%   r   r&   r   extLsts   &&&&&&&&r*   r+   _NamedCellStyle.__init__   s#     		"*r-   )r%   r   r&   r   r   r9   r   )NNNNNNN)rb   rc   rd   re   rf   tagnamer   r   r   r9   r%   r   r   r&   r   r   r	   r   __elements__r+   rg   rh   rk   s   @r*   r]   r]      sb      G8D9D4(I%FT"FD)M4@FL+ +r-   r]   c                   p   a  ] tR t^t o RtRt]! RR7      t]! ]	R7      t
RtRR lt]R 4       tR	 tR
tV tR# )_NamedCellStyleListzA
Container for named cell style objects

Not used in client code

cellStylesTr   r   Nc                    W n         R # r   r   )r)   countr   s   &&&r*   r+   _NamedCellStyleList.__init__   s	     #r-   c                ,    \        V P                  4      # r   )rp   r   rR   s   &r*   r   _NamedCellStyleList.count   s    4>>""r-   c                J   R p. p\        4       p\        4       p\        V P                  VR7       Fn  pVP                  V9   g   VP                  V9   d   K'  VP                  VP                  4       VP                  VP                  4       VP                  V4       Kp  	  V# )z
Some applications contain duplicate definitions either by name or
referenced style.

As the references are 0-based indices, styles are sorted by
index.

Returns a list of style references with duplicates removed
c                     V P                   # r   )r9   )vs   &r*   sort_fn6_NamedCellStyleList.remove_duplicates.<locals>.sort_fn  s    66Mr-   )r:   )setsortedr   r9   r   rC   r   )r)   r   stylesrv   idsnss   &     r*   remove_duplicates%_NamedCellStyleList.remove_duplicates   s}    	 eW5Bww#~E!1GGBGGIIbggMM" 6 r-   r   )r   )Nr   )rb   rc   rd   re   rf   r   r   r   r   r]   r   	__attrs__r+   r   r   rg   rh   r   s   @r*   r   r      sM      Gt$E7II# # # r-   r   N)#openpyxl.compatr   openpyxl.descriptorsr   r   r   r   r   openpyxl.descriptors.excelr	   !openpyxl.descriptors.serialisabler
   fillsr   r   fontsr   bordersr   r"   r   r$   r   numbersr   r   r   
cell_styler   r   r   listrm   r]   r   r   r-   r*   <module>r      so    (  5 : $     " 
p pf*T *Z$+l $+N4, 4r-   