+
    yȇi4&                     ~    ^ RI t^ RIt^ RIHt ^ RIt^ RIHtHtH	t	 ^ RI
Ht ^ RIHt  ! R R4      t ! R R4      tR# )	    N)Pandas4Warning)IndexTimedeltaIndextimedelta_range)Hourc                   b  a  ] tR t^t o R tR tR tR tR tR t	R t
R tR	 t]P                  P                  R
RR.4      R 4       tR t]P                  P                  R]! R^RRR7      ]! R^RRR7      3]! R^RRR7      ]! R^RRR7      3]! R^
RRR7      R,          ]! . RRRR7      3.4      R 4       t]P                  P                  R]! . R ORR7      ]! RR.RR7      3]! . R!ORR7      ]! RR.RR7      3]! . R"ORR7      RRR#1,          ]! . R"ORR7      3.4      R 4       tRtV tR# )$TestTimedeltaIndexc           	     d   \        R ^R7      p\        R^R7      pVP                  V4      p\        R ^R7      p\        P                  ! W44       \	        \
        P                  ! ^ ^^\
        P                  R7      4      p\        R^
RR7      pVP                  V4       VP                  V4       R# )1dayperiods3day)dtype1 dayD)startr   freqN)r   uniontmassert_index_equalr   nparangeint64)selfi1i2resultexpecteds   &    {/Users/max/.openclaw/workspace/postharvest/venv/lib/python3.14/site-packages/pandas/tests/indexes/timedeltas/test_setops.py
test_unionTestTimedeltaIndex.test_union   s    VQ/VQ/""615
f/299QARXX677BSA

    c                0   \        R ^R7      pVR,          pVR,          pVP                  V4      '       g   Q hVP                  V4      p\        P                  ! WA4       VP                  VRR7      p\        . RO4      p\        P                  ! WE4       R# )r   r   :   NN:Nr$   NFsortN)z4 Daysz5 Daysz1 Daysz2 Dayz3 Days)r   _can_fast_unionr   r   r   r   )r   tdileftrightr   r   s   &     r   test_union_sort_false(TestTimedeltaIndex.test_union_sort_false   s    fa02wB ##E****E"
f*E.!"ST
f/r"   c                   R p\         P                  ! \        VR7      ;_uu_ 4        \        . RO4      pRRR4       \        XP	                  4       RR7      pVP                  V4      p\         P                  ! WC4       VR,          P                  V4      p\         P                  ! WC4       VP                  VP                  8X  g   Q hR#   + '       g   i     L; i)z:'d' is deprecated and will be removed in a future version.)matchNinferr   :Nr   N)3d1d2d)r   assert_produces_warningr   r   sort_valuesr   r   r   )r   msgidxorderedr   s   &    r   test_union_coverage&TestTimedeltaIndex.test_union_coverage.   s    J''cBB !34C C !2As#
f.""7+
f.{{gll*** CBs   CC	c                    \        R ^RR7      p\        R ^RR7      pVP                  V4      p\        \        \	        V4      \	        V4      ,          4      4      p\
        P                  ! W44       R# )r   3hr   r   4hN)r   r   r   sortedsetr   r   )r   rng_arng_br   exps   &    r   test_union_bug_1730&TestTimedeltaIndex.test_union_bug_1730;   sV    >>U#VCJU$;<=
f*r"   c                    \        R .4      p\        . RO4      pVP                  V4      p\        \        \        V4      \        V4      ,          4      4      p\        P
                  ! W44       R# )z1 day 15:19:49.695000N)z2 day 13:04:21.322000z1 day 15:27:24.873000z1 day 15:31:05.350000)r   r   r?   r@   r   r   r   r)   r*   r   rC   s   &    r   test_union_bug_1745&TestTimedeltaIndex.test_union_bug_1745C   sW    678W
 E"VCIE
$:;<
f*r"   c                   \        R R4      pV\        P                  P                  ^4      ,           pVP	                  V4      p\        \        \        V4      \        V4      ,          4      4      p\        P                  ! W44       R# )r   30DN)
r   pdoffsetsMinuter   r   r?   r@   r   r   rG   s   &    r   test_union_bug_4564&TestTimedeltaIndex.test_union_bug_4564M   s_    w.rzz((,,E"VCIE
$:;<
f*r"   c                    \        R ^R7      pV. RO,          pV. RO,          pVP                  e   Q hVP                  e   Q hVP                  V4      p\        P                  ! WA4       VP                  R8X  g   Q hR# )z1 Dayr   Nr   )r      r$      )   r$   rR   )r   r   r   r   r   )r   r(   r)   r*   r   s   &    r   test_union_freq_infer(TestTimedeltaIndex.test_union_freq_inferU   sq     gq1< Iyy   zz!!!E"
f*{{c!!!r"   c                   \        R ^RR7      pV\        P                  P                  ^4      ,           pVP	                  V4      p\        V4      ^ 8X  g   Q h\        R ^RR7      pV\        P                  P                  ^4      ,           pVP	                  V4      p\        R^RR7      p\        P                  ! W44       VP                  VP                  8X  g   Q hR# )r   hr=   z1 day 01:00:00N)	r   rL   rM   r   intersectionlenr   r   r   )r   index_1index_2r   r   s   &    r   test_intersection_bug_1708-TestTimedeltaIndex.test_intersection_bug_1708d   s    !'13?BJJOOA..%%g.6{a!'13?BJJOOA..%%g."#3QSI
f/{{hmm+++r"   c                <   \        R ^RR7      p\        R ^RR7      pVP                  W1R7      pVf%   \        P                  ! WCP	                  4       4       \        P                  ! WC4       VP                  W!R7      pWRJg   Q h\        P                  ! WR4       R# r   rX   r=   r%   N)r   rY   r   r   r5   )r   r&   firstsecond	intersectinters   &&    r   test_intersection_equal*TestTimedeltaIndex.test_intersection_equals   s      = !#>&&v&9	<!!)-?-?-AB
i0 ""5"4!!!
e+r"   zperiod_1, period_2c                    \        R VRR7      p\        R VRR7      p\        R ^ RR7      pVP                  WSR7      p\        P                  ! Wv4       R# r`   )r   rY   r   r   )r   period_1period_2r&   r[   r\   r   r   s   &&&&    r   test_intersection_zero_length0TestTimedeltaIndex.test_intersection_zero_length   sO     "'8#F!'8#F"7AC@%%g%9
f/r"   c                    \        R ^ RR7      p\        R ^RR7      pVP                  W1R7      pW$Jg   Q hW4Jg   Q h\        P                  ! WB4       R# r`   )r   rY   r   assert_copy)r   r&   r[   r\   r   s   &&   r   test_zero_length_input_index/TestTimedeltaIndex.test_zero_length_input_index   sU    !'13?!'13?%%g%9$$$$$$
v'r"   zrng, expectedr   rX   r7   r   r   nameotherN:   NNzm8[us])r   rq   r   c                   \        R ^RRR7      pVP                  WR7      pVf   VP                  4       p\        P                  ! WR4       VP
                  VP
                  8X  g   Q hVP                  VP                  8X  g   Q hR# )r   rX   r7   rp   r%   N)r   rY   r5   r   r   rq   r   r   rngr   r&   baser   s   &&&&  r   test_intersection$TestTimedeltaIndex.test_intersection   st    , w%H""3"2<++-H
f/{{hmm+++{{hmm+++r"   2 hour4 hourrq   1 hourc                   \        . RORR7      pVP                  WR7      pVf   VP                  4       p\        P                  ! WR4       VP
                  VP
                  8X  g   Q h\        WARRR1,          8H  4      '       d)   Vf%   \        VP                  \        4      '       g   Q hR# VP                  e   Q hR# )r}   r7   r|   r%   Nr}   rz   r{   z3 hour)
r   rY   r5   r   r   rq   all
isinstancer   r   ru   s   &&&&  r   test_intersection_non_monotonic2TestTimedeltaIndex.test_intersection_non_monotonic   s    0 FUS""3"2<++-H
f/{{hmm+++ t4R4y !!dlfkk40000;;&&&r"    )r   rS   )rS   r   )5 hourrz   r{   z9 hour)rz   r   r   r}   r   r   )__name__
__module____qualname____firstlineno__r    r+   r9   rD   rH   rO   rU   r]   re   pytestmarkparametrizerj   rn   r   r   rx   r   __static_attributes____classdictcell____classdict__s   @r   r	   r	      s    
0 ++++",, [[1FF3CD0 E0( [[  5I5I  7K4H  #EJ2Nr%xH	
(,)(, [[ GeT(3%@ GgV(3$? GeTbD GeT		
,'-,'r"   r	   c                   ,   a  ] tR t^t o R tR tRtV tR# )TestTimedeltaIndexDifferencec                   \        R RRR7      p\        RRRR7      p\        R R.RR7      pVP                  W14      p\        P                  ! WT4       \        P
                  ! RWT4       \        RRRR7      pVP                  W14      p\        R R.RR7      p\        P                  ! WT4       \        P
                  ! RWT4       R# )	0 days5 daysr   r0   1 days4 daysNr   2 days)r   r   
differencer   r   assert_attr_equal)r   r&   indexrr   r   idx_diffs   &&    r   test_difference_freq1TestTimedeltaIndexDifference.test_difference_freq   s      (=(=!8X"6TB##E0
h1
VX8  (=##E0!8X"6SA
h1
VX8r"   c                   \        . R	O4      p\        RRRR7      pVP                  W14      p\        R R.RR7      pVf   VP                  4       p\        P
                  ! WE4       \        P                  ! RWE4       \        RR RR7      pVP                  W14      p\        RR.RR7      pVf   VP                  4       p\        P
                  ! WE4       \        P                  ! RWE4       R# )
r   r   r   r   r   r   r0   Nr   )r   z3 daysr   r   r   r   )r   r   r   r5   r   r   r   )r   r&   r   rr   r   r   s   &&    r   test_difference_sort1TestTimedeltaIndexDifference.test_difference_sort   s    H
  (=##E0!8X"6TB<++-H
h1
VX8(=##E0!8X"6TB<++-H
h1
VX8r"   r   N)r   r   r   r   r   r   r   r   r   s   @r   r   r      s     9&9 9r"   r   )numpyr   r   pandas.errorsr   pandasrL   r   r   r   pandas._testing_testingr   pandas.tseries.offsetsr   r	   r   r   r"   r   <module>r      s:      (  
  'D' D'N,9 ,9r"   