+
    Ĝi                         ^ RI Ht ^ RIHt ^ RIHt ^RIHtHtH	t	 ^RI
Ht  ! R R]4      t ! R R	]4      t ! R
 R]4      t ! R R]4      t ! R R]4      t ! R R]4      tR# )    )safe_string)Element)IndexedList)
DescriptorAlias_convert)
namespacedc                   d   a a ] tR t^t oRt]! R4      t]]3t	^ t
Rt]tV 3R ltRR ltRtVtV ;t# )SequencezO
A sequence (list or tuple) that may only contain objects of the declared
type
NFc                   <a  \        VS P                  4      '       g   \        R 4      hS P                  V 3R lV 4       4      pS P                  '       d   \        V4      p\        SS `  W4       R# )Value must be a sequencec              3   P   <"   T F  p\        SP                  V4      x  K  	  R # 5iN)r   expected_type).0valueselfs   & f/Users/mibo/.openclaw/workspace/.venv-ak/lib/python3.14/site-packages/openpyxl/descriptors/sequence.py	<genexpr>#Sequence.__set__.<locals>.<genexpr>   s!     RcUXd&8&8%@@cs   #&N)
isinstance	seq_types	TypeError	containeruniquer   super__set__)r   instanceseq	__class__s   f&&r   r   Sequence.__set__   sS    #t~~..677nnRcRR;;;c"C&    c              #     "   \        W P                  4       FT  w  rE\        VR4      '       d   VP                  W4      pM'\	        W!V4      p\        V4      p\        V4      Vn        Vx  KV  	  R# 5i)F
Convert the sequence represented by the descriptor to an XML element
to_treeN)	enumerateidx_basehasattrr%   r	   r   r   text)r   tagnameobj	namespaceidxvels   &&&&   r   r%   Sequence.to_tree"   s]       ]]3FCq)$$YYw,$S9=W%%a.H 4s   A0A2 r   )__name__
__module____qualname____firstlineno____doc__typer   listtupler   r'   r   r   r   r%   __static_attributes____classdictcell____classcell__)r    __classdict__s   @@r   r   r      s<     
 JMuIHFI' r"   r   c                   (    ] tR t^0tRt]]]3t]t	Rt
R# )UniqueSequencez!
Use a set to keep values unique
r1   N)r2   r3   r4   r5   r6   r8   r9   setr   r   r:   r1   r"   r   r?   r?   0   s     uc"IIr"   r?   c                   8   a  ] tR t^8t o RtRtRR ltR tRtV t	R# )ValueSequenceze
A sequence of primitive types that are stored as a single attribute.
"val" is the default attribute
valNc              #  |   "   \        WV4      pV F%  p\        WP                  \        V4      /4      x  K'  	  R # 5ir   )r	   r   	attributer   )r   r*   r+   r,   r.   s   &&&& r   r%   ValueSequence.to_treeA   s3     TI6A'NN;q>#BCC s   :<c                8    VP                  V P                  4      # r   )getrE   )r   nodes   &&r   	from_treeValueSequence.from_treeG   s    xx''r"   r1   r   )
r2   r3   r4   r5   r6   rE   r%   rJ   r:   r;   r=   s   @r   rB   rB   8   s!     
 ID( (r"   rB   c                   8   a  ] tR t^Lt o RtRtRR ltR tRtV t	R# )NestedSequencez)
Wrap a sequence in an containing object
FNc                    \        WV4      p\        V4      pV P                  '       d%   VP                  R \	        \        V4      4      4       V F"  pVP                  VP                  4       4       K$  	  V# )count)r	   r   rP   r@   strlenappendr%   )r   r*   r+   r,   r   r.   s   &&&&  r   r%   NestedSequence.to_treeS   s[    TI6G$	:::MM'3s3x=1AQYY[) r"   c                `    V Uu. uF  q P                   P                  V4      NK  	  up# u upi r   )r   rJ   )r   rI   r/   s   && r   rJ   NestedSequence.from_tree]   s)    ;?@4R"",,R04@@@s   #+r1   r   )
r2   r3   r4   r5   r6   rP   r%   rJ   r:   r;   rL   s   @r   rN   rN   L   s"      EA Ar"   rN   c                   4   a  ] tR t^at o RtR tRR ltRtV tR# )MultiSequencez3
Sequences can contain objects with different tags
c                    \        V\        \        34      '       g   \        R 4      h\        V4      p\        P
                  ! WV4       R# )r   N)r   r9   r8   
ValueErrorr   r   )r   r   r   s   &&&r   r   MultiSequence.__set__f   s8    #t}--7883i43/r"   Nc              #  L   "   V F  pVP                  VR7      pVx  K  	  R# 5i)r$   )r,   N)r%   )r   r*   r+   r,   r.   r/   s   &&&&  r   r%   MultiSequence.to_treem   s&      AY/BH s   "$r1   r   )	r2   r3   r4   r5   r6   r   r%   r:   r;   rL   s   @r   rX   rX   a   s     0 r"   rX   c                   6   a  ] tR t^vt o RtR tR tR tRtV t	R# )MultiSequencePartz
Allow a multisequence to be built up from parts

Excluded from the instance __elements__ or __attrs__ as is effectively an Alias
c                    Wn         W n        R # r   r   store)r   r   rb   s   &&&r   __init__MultiSequencePart.__init__}   s    *
r"   c                    \        V P                  V4      pVP                  V P                  ,          P	                  V4       R # r   )r   r   __dict__rb   rS   )r   r   r   s   &&&r   r   MultiSequencePart.__set__   s1    ++U3$**%,,U3r"   c                    V # r   r1   )r   r   clss   &&&r   __get__MultiSequencePart.__get__   s    r"   ra   N)
r2   r3   r4   r5   r6   rc   r   rj   r:   r;   rL   s   @r   r_   r_   v   s     
4
 r"   r_   N)openpyxl.compatr   openpyxl.xml.functionsr   openpyxl.utils.indexed_listr   baser   r   r   r,   r	   r   r?   rB   rN   rX   r_   r1   r"   r   <module>rp      sd    ( * 3 - - !"z "JX (H ((AX A*H * r"   