ó
    %Ÿ j8  ã            	       ó€   • S r SSKrSSKJr  \R                  " S5      rS\S\\\	\4      4S jr
SS\	S	\S
\	S\4S jjrg)z`Shared helper: a line-item chunk for a resolved row, with the table's row-label column appended.é    N)ÚRetrievedChunkz"<td id="t(\d+)-(\d+)-0">(.*?)</td>Útable_contentÚreturnc                 óH  • / n[        5       n[        R                  U 5       H|  n[        UR	                  S5      5      n[
        R                  " SSUR	                  S5      5      R                  5       nXB;   a  MY  UR                  U5        UR                  XE45        M~     U$ )Né   z<[^>]+>Ú é   )
ÚsetÚLABELÚfinditerÚintÚgroupÚreÚsubÚstripÚaddÚappend)r   ÚoutÚseenÚmÚrÚts         Úa/tmp/claude-1000/-home-mande-repo-quber/bc2f817a-5c6c-4515-9621-2302b82f7f68/scratchpad/rowctx.pyÚ
row_labelsr      sy   € Ø
€C”“ˆDÜ�^‰^˜MÖ*ˆÜ
ˆa�g‰g�a‹j‹/ˆœRŸVšV J¨r°!·'±'¸!³*Ó=×CÑCÓE˜1Ø‹9‘hØ�‰�Œ�S—Z‘Z  Ö&ñ +ð €Jó    Údoc_idÚtable_idÚrowÚwith_labelsc           	      ó¶  • UR                  S5      S   nSU SU 3nU R                  SX45      R                  5       nUc  g US   nU(       ap  U R                  SX45      R                  5       S   n	[        U	5       V
Vs/ s H  u  p«U(       d  M  S	U
 S
U 3PM     nn
nU(       a  USSR	                  U5      -   -  n[        US   US   US   USUS9$ s  snn
f )NÚ/éÿÿÿÿr   z-line-zjselect chunk_id, chunk_type, page, content from ade_playground.chunks where document_id=%s and chunk_id=%sr	   zNselect content from ade_playground.chunks where document_id=%s and chunk_id=%sr   zrow z: zT

This chunk is ONE row of the table. All rows of that table, for orientation only:
Ú
é   r   g        )Úchunk_idÚ
chunk_typeÚpageÚcontentÚscoreÚparent_chunk_id)ÚsplitÚexecuteÚfetchoner   Újoinr   )Úconnr   r   r   r   r   Úcidr   r(   ÚtcÚnÚlabÚlabelss                r   Ú	row_chunkr5      s)  € Ø‡n�n�SÓ˜"Ñ€A Q q c¨°¨uÐ#5˜sØ
‡l�lÐð  BHð  AMó  N÷  Wñ  Wó  Y€AØ�y˜Øˆa‰D€GÞØ�<‰<ÐhÐjpÐizÓ{÷  Eñ  Eó  Gð  HIñ  JˆÜ/9¸"¬~ÔEª~¡e aÄÓ!�$�q�c˜˜C˜5Ó!©~ˆÑEÞ�7ÐwÐz~÷  {Dñ  {Dð  EKó  {Lñ  Lñ  L�7Ü 1 Q¡4°A°a±D¸qÀ¹tÈWÐ\_ÐqyÑzÐzùó Fs   Â CÂC)T)Ú__doc__r   Úquber.playground.retrievalr   Úcompiler   ÚstrÚlistÚtupler   r   Úboolr5   © r   r   Ú<module>r>      sc   ðÙ fÛ 	Ý 5Ø‡j‚jÐ6Ó7€ð˜cð  d¨5°°c°©?Ñ&;ô ñ	{˜Cð 	{¨3ð 	{°Sð 	{Àtö 	{r   