+
    øíj¦*  ã                   ó8  € R t ^ RIt^ RIt]P                  P	                  ^ ]P                  P                  ]P                  P                  ]P                  P                  ]4      4      RR4      4       ^ RI	H
tHtHt ]P                  P                  ]P                  P                  ]P                  P                  ]4      4      RRRRR4      t]P                  P                  ]R4      tRR	R
RRRRRRRRRRRRRRRRR/
t
]
 U u/ uF%  q V R8X  d   RMRV P#                  RR4      ,           bK'  	  up tRtR tR!],           R",           ],           R#,           tR$t]R%,           tR&tR'tR(tR)P7                  ]P7                  R*4      ]P7                  R+4      4      tR,]P7                  R-4      3R.]3R/]P7                  R04      33tR1]P7                  R24      3R.]3R/]P7                  R04      33tR3tR4t R5t!RER6 lt"R7 t#R8t$R9t%R: t&R; t'R< t(R= t)R> t*]+R?8X  dr   ],! ]R@RARB7      ;_uu_ 4       t-]-P]                  ]*! 4       4       RRR4       ]/! RC]P                  Pa                  ]4      ]1! ]*! 4       Pe                  4       4      RD4       R# R# u up i   + '       g   i     LV; i)FuZ  Generate resources/skin.milionar/xml/Includes_MilionarSlots.xml (docs/plan/milionar-library/070 Â§2).

Every MilionÃ¡Å™ Home section has 7 slots. A slot is up to three Estuary widget includes (poster / episode / categories;
vinyl: square / episode / categories) of which at most one is active: the include conditions read the slot's skin strings
(`mil.<sec>.<n>.type` / `.style`), so the choice made in the slot editor applies at once and the other variants load nothing.
Header, counts and content also come from those strings. The cinematic sections (CINEMA) get their rows from
gen_cinema.py instead. Every section loads
`MilionarContent_<sec>_<n>`: the placeholder playlist until Window(Home).Property(milionar.go.<sec>) is set (wcs/skin/warm.py)
or the section's menu item is focused. Run after changing SECTIONS; never edit the generated file by hand.
Nz..)ÚSECTIONSÚlist_idÚ
slot_countÚ	resourceszskin.milionarÚxmlzIncludes_MilionarSlots.xmlÚmytviðU  ÚmycinemaiØY  ÚcontiÀ]  Úgamei¨a  Úaii�e  Útmdbi`m  Ú	my_moviesiHq  Ú	my_seriesi0u  Úvinyliy  Úforyoui }  Úmil_continueÚmil_Ú_Ú z Skin.String(mil.{sec}.{n}.cards)zŒ[String.IsEmpty(Window(Home).Property(milionar.go.{sec})) + !String.IsEqual(Container(9000).ListItem.Property(id),{menu})] | String.IsEmpty(z) | String.IsEqual(z,0)z8special://profile/addon_data/plugin.video.milionar/rows/zf{sec}.{n}$INFO[Skin.String(mil.{sec}.mode)]$INFO[Window(Home).Property(milionar.rowrev.{sec}.{n})].m3uzxString.IsEmpty(Window(Home).Property(milionar.go.{sec})) + !String.IsEqual(Container(9000).ListItem.Property(id),{menu})a†  plugin://plugin.video.milionar/?action=widget_row&amp;row=$INFO[Skin.String(mil.{sec}.{n}.type)]&amp;sec={sec}&amp;slot={n}&amp;limit=$INFO[Skin.String(mil.{sec}.{n}.limit)]&amp;sort=$INFO[Skin.String(mil.{sec}.{n}.sort)]&amp;style=$INFO[Skin.String(mil.{sec}.{n}.style)]&amp;click=$INFO[Skin.String(mil.{sec}.{n}.click)]&amp;hw=$INFO[Skin.String(mil.{sec}.hidewatched)]&amp;up=$INFO[Skin.String(mil.{sec}.upcoming)]&amp;reload=$INFO[Window(Home).Property(milionar.rowrev.{sec}.{n})]&amp;format=2&amp;profile=$INFO[Window(Home).Property(milionar.low_power)]&amp;hb=$INFO[Skin.String(mil.{sec}.herorev)]&amp;mode=$INFO[Skin.String(mil.{sec}.mode)]z7String.IsEqual(Skin.String(mil.{{sec}}.{{n}}.style),{})z	[{} | {}]ÚepisodeÚ	landscapeÚWidgetListPosterÚposterÚWidgetListEpisodesÚWidgetListCategoriesÚ
categoriesÚWidgetListSquareÚsquarezg!String.IsEmpty(Skin.String(mil.{sec}.{n}.type)) + !String.IsEqual(Skin.String(mil.{sec}.{n}.type),off)z8!String.IsEmpty(Window(Home).Property(milionar.service))z'NotifyAll(plugin.video.milionar,run:{})c           	     ó°   € V'       d
   VR,           MRpRP                  WV\        \        P                  V 4      V4      RP                  WV\        W4      .# )z_The two XML lines that run `command`: through the service, or directly when it does not listen.ú + r   z{}<{} condition="{}{}">{}</{}>z{}<{} condition="{}!{}">{}</{}>)ÚformatÚALIVEÚRUN)ÚcommandÚindentÚtagÚ	conditionÚprefixs   &&&& Úl/Users/chudy/Library/Application Support/Kodi/addons/plugin.video.milionar/scripts/skin_harness/gen_slots.pyÚ	run_linesr)   =   sU   € ç"+ˆY˜Ö°€FØ,×3Ñ3°FÀÌÔPS×PZÑPZÐ[bÓPcÐehÓiØ-×4Ñ4°VÀ&Ì%ÐQXÓ^ð`ð `ó    c                óä   € RP                  \        \        V ,          V4      4      pRP                  W4      RP                  \        \        P                  V4      4      RP                  V4      R.# )zPWhat a click on a card of an Estuary widget runs (its include takes one action).z5$INFO[Container({}).ListItem.Property(milionar.exec)]z&	<variable name="MilionarClick_{}_{}">z"		<value condition="{}">{}</value>ú		<value>{}</value>ú	</variable>)r    Úsection_list_idr   r!   r"   )ÚsecÚnr#   s   && r(   Úclick_variabler1   D   sd   € àE×LÑLÌ_Ô]eÐfiÕ]jÐlmÓMnÓo€GØ5×<Ñ<¸SÓDØ2×9Ñ9¼%ÄÇÁÈGÓATÓUØ#×*Ñ*¨7Ó3°_ðFð Fr*   a   	<include name="MilionarSpinner">
		<definition>
			<control type="image">
				<centerleft>50%</centerleft>
				<centertop>50%</centertop>
				<width>$PARAM[size]</width>
				<height>$PARAM[size]</height>
				<aspectratio>keep</aspectratio>
				<animation effect="rotate" end="-45" center="auto" time="200" delay="600" loop="true" reversible="false" condition="true">Conditional</animation>
				<texture colordiffuse="button_focus">spinner.png</texture>
			</control>
			<control type="image">
				<centerleft>50%</centerleft>
				<centertop>50%</centertop>
				<width>$PARAM[inner]</width>
				<height>$PARAM[inner]</height>
				<aspectratio>keep</aspectratio>
				<animation effect="rotate" end="45" center="auto" time="200" delay="600" loop="true" reversible="false" condition="true">Conditional</animation>
				<texture flipx="true" colordiffuse="button_focus">spinner.png</texture>
			</control>
		</definition>
	</include>a’  	<include name="MilionarSectionLoading">
		<definition>
			<control type="group">
				<centerleft>50%</centerleft>
				<centertop>50%</centertop>
				<width>80</width>
				<height>80</height>
				<visible>$PARAM[visible]</visible>
				<include content="MilionarSpinner">
					<param name="size" value="80"/>
					<param name="inner" value="50"/>
				</include>
			</control>
		</definition>
	</include>c                 ó0   € V \         8X  d   \        # \        # ©N)ÚMUSICÚMUSIC_VARIANTSÚVARIANTS)r/   s   &r(   Úvariantsr7   s   s   € Ø ¤Eœ\Œ>Ð7¬xÐ7r*   c           	      ó  € V \         9   pR P                  W4      RP                  V'       d   \        M\        P                  V \        V ,          VR7      4      RP                  V'       d   \
        M\        P                  WR7      4      R.# )z(	<variable name="MilionarContent_{}_{}">zK		<value condition="{}">special://skin/playlists/milionar-empty.xsp</value>)r/   Úmenur0   r,   ©r/   r0   r-   )ÚCINEMAr    ÚCONTENT_EMPTY_CONDITIONÚGATEÚMENU_IDSÚCONTENTÚPLUGIN_CONTENT)r/   r0   Únatives   && r(   ÚvariablerB   w   sx   € Ø”F‰]€FØ7×>Ñ>¸sÓFØ[×bÑbß,2Õ(¼×DÑDÈÔS[Ð\_ÕS`ÐdeÐDÓfóhà#×*Ñ*·v­GÄ>×+YÑ+YÐ^aÐ+YÓ+gÓhØð	ð r*   c                ó  € \        ^\        V 4      ^,           4      pV Uu. uF  p\        \        V ,          V4      NK  	  ppV Uu. uFJ  pV \        9   g   K  RP                  \        P                  WR7      \        P                  WR7      4      NKL  	  ppRP                  T RP                  V Uu. uF  pRP                  V4      NK  	  upV,           4      RP                  R V 4       4      4      # u upi u upi u upi )z_The section has nothing to show yet: a row is still loading or its file is still being written.z[{} + String.IsEmpty({})]r:   z=	<expression name="MilionarLoading_{}">[{}] + {}</expression>z | zContainer({}).IsUpdatingr   c              3   óD   "  € T F  pR P                  V4      x € K  	  R# 5i)z,!Integer.IsGreater(Container({}).NumItems,0)N)r    )Ú.0Úis   & r(   Ú	<genexpr>Úloading.<locals>.<genexpr>ˆ   s"   é € ÐYÑUXÐPQÐA×HÑHÈ×KÐKÓUXùs   ‚ )	Úranger   r.   r   r;   r    ÚACTIVEÚCARDSÚjoin)r/   Únumbersr0   ÚidsÚpendingrF   s   &     r(   ÚloadingrP   €   sé   € ä�A”z #“¨Õ*Ó+€GÙ6=Ó
>±g°Œ?œ8 C�=¨!Ö,±g€CÐ
>Ùt{ó !Ñt{ÐopØœ‘-ô kÐ*×1Ñ1´&·-±-ÀC°-Ó2MÌuÏ|É|Ð`cÈ|ÓOiÖjÑt{€Gð !àK×RÑRØˆU�Z‰ZÁsÓKÁsÀ!Ð3×:Ñ:¸1Ö=ÁsÑKÈgÕUÓVØ�
‰
ÑYÑUXÓYÓYó[ð [ùò ?ùò!ùò Ls   ¡ C7ÁC<Á>C<Â4Dc                 ó&  € \        \        V ,          V4      pR P                  \        V4      P                  WR7      pRP                  W%4      .pVP	                  RP                  W4      4       VP	                  RP                  W4      4       TP	                  RP                  V \
        8X  d   RMR4      4       VR8X  d#   VP	                  R	4       VP	                  R
4       VP	                  RP                  V4      4       VP	                  RP                  W4      4       VP	                  R4       VP	                  RP                  V4      4       TP	                  RP                  VR8X  d   RMR4      4       VP	                  R4       V# )z{} + {}r:   z'		<include content="{}" condition="{}">zC			<param name="content_path" value="$VAR[MilionarContent_{}_{}]"/>zL			<param name="widget_header" value="$INFO[Skin.String(mil.{}.{}.title)]"/>z+			<param name="widget_target" value="{}"/>ÚmusicÚvideosr   z;			<param name="main_label" value="$INFO[ListItem.Label]"/>z;			<param name="sub_label" value="$INFO[ListItem.Label2]"/>zl			<param name="onclick_condition" value="!String.IsEmpty(Container({}).ListItem.Property(milionar.exec))"/>zC			<param name="onclick_action" value="$VAR[MilionarClick_{}_{}]"/>z,			<param name="browse_mode" value="never"/>z%			<param name="list_id" value="{}"/>z 			<param name="{}" value="50"/>r   Ú
item_limitÚwidget_limitz		</include>)r.   r   r    rJ   Úappendr4   )r/   r0   ÚincludeÚstyle_conditionr   r&   Úliness   &&&&   r(   ÚwidgetrZ   ‹   sg  € Üœh s�m¨QÓ/€GØ× Ñ ¤¨Ó9×@Ñ@ÀSÐ@ÓN€IØ8×?Ñ?ÀÓSÐT€EØ	‡L�LÐY×`Ñ`ÐadÓhÔiØ	‡L�LÐb×iÑiÐjmÓqÔrØ	‡L�LÐA×HÑHÐTWÔ[`ÔT`ÉÐfnÓoÔpØÐ$Ô$Ø�‰ÐUÔVØ�‰ÐUÔVØ	‡L�Lð  C÷  Jñ  Jð  KRó  Sô  TØ	‡L�LÐY×`Ñ`ÐadÓhÔiØ	‡L�LÐBÔCØ	‡L�LÐ;×BÑBÀ7ÓKÔLØ	‡L�LÐ6×=Ñ=ÈgÐYoÔNo¹lð  vDó  Eô  FØ	‡L�LÐ!Ô"Ø€Lr*   c                  ó:  € . ROp \          F@  p\        ^\        V4      ^,           4       F  pV P                  \	        W4      4       K  	  KB  	  V P                  \        4       \          FM  pV\        9  g   K  \        ^\        V4      ^,           4       F  pV P                  \        W4      4       K  	  KO  	  V P                  R \          4       4       \          F“  pV\        9   d   K  V P                  RP                  V4      4       \        ^\        V4      ^,           4       F2  p\        V4       F   w  r4V P                  \        WW44      4       K"  	  K4  	  V P                  R4       K•  	  V P                  R4       RP                  V 4      R,           # )ú&<?xml version="1.0" encoding="UTF-8"?>c              3   óP   "  € T F  q\         9  g   K  \        V4      x € K  	  R # 5ir3   )r;   rP   )rE   r/   s   & r(   rG   Úbuild.<locals>.<genexpr>©   s   é € ÐG© #ÄÑ5F””˜—�«ùs   ‚&“&z"	<include name="MilionarSlots_{}">z	</include>z</includes>Ú
)r\   zD<!-- generated by scripts/skin_harness/gen_slots.py: do not edit -->z
<includes>)r   rI   r   ÚextendrB   rV   ÚSECTION_LOADINGr;   r1   r    r7   rZ   rL   )rY   r/   r0   rW   rX   s        r(   Úbuildrb   ž   s7  € ò€EçˆÜ�qœ* S›/¨AÕ-Ö.ˆAØ�L‰Lœ #Ó)Ö*ó /ñ ð 
‡L�L”Ô!ßˆØ”fÖÜ˜1œj¨›o°Õ1Ö2�Ø—‘œ^¨CÓ3Ö4ó 3ñ ð 
‡L�LÑG­ÓGÔGßˆØ”&Œ=ÙØ�‰Ð:×AÑAÀ#ÓFÔGÜ�qœ* S›/¨AÕ-Ö.ˆAÜ,4°S®MÑ(�Ø—‘œV C¨GÓEÖFó -:ñ /ð 	�‰�^Ö$ñ ð 
‡L�L�ÔØ�9‰9�UÓ˜dÕ"Ð"r*   Ú__main__Úwzutf-8)ÚencodingÚwroterY   )Úonclickr   )3Ú__doc__ÚosÚsysÚpathÚinsertrL   ÚdirnameÚabspathÚ__file__Úwcs.skin.hero_contractr   r;   r   r.   r   ÚROOTÚOUTÚreplacer>   r4   rK   r<   Ú	ROW_FILESr?   r=   r@   ÚSTYLEr    ÚEPISODEr6   r5   rJ   r!   r"   r)   r1   ÚSPINNERra   r7   rB   rP   rZ   rb   Ú__name__ÚopenÚhandleÚwriteÚprintÚrelpathÚlenÚ
splitlines)Úsections   0r(   Ú<module>r�      s²  ðñ	ó 
Û 
à ‡�‡���2—7‘7—<‘< §¡§¡°·±·±ÀÓ0IÓ JÈDÐRVÓWÔ Xß ]Ñ ]à	‡w�w‡|�|�B—G‘G—O‘O B§G¡G§O¡O°HÓ$=Ó>ÀÀdÈKÐYhÐjoÓp€Ø‡g�g‡l�l�4Ð5Ó6€ð �E˜: u¨f°e¸VÀUÈDÐRWÐY_ÐafØ˜ ¨U°G¸UÀHÈeðU€ñ pxÓxÑowÐdk w°&Ô'8‘^¸fÀwÇÁÐWZÐ\^ÓG_Õ>_Ò_ÑowÑx€Ø€à*€ð-à/4õ5à7LõMàOTõUàW\õ]Ð ð G€	ØÐÕ€ð	H€ðn€ð 	B€Ø
×
Ñ
˜UŸ\™\¨)Ó4°e·l±lÀ;Ó6OÓ
P€Ø §¡¨hÓ!7Ð8Ð;OÐQXÐ:YØ# U§\¡\°,Ó%?Ð@ðB€à% u§|¡|°HÓ'=Ð>ÐAUÐW^Ð@_Ø)¨5¯<©<¸Ó+EÐFðH€à	r€ð 	C€Ø/€ô`òFð€ð,€ò"8òò[òò&#ð0 ˆzÔÙ	ˆc�3 ×	)Õ	)¨VØ�‰‘U“WÔ÷ 
*á	ˆ'�2—7‘7—?‘? 3Ó'©©U«W×-?Ñ-?Ó-AÓ)BÀGÖLñ ùò{ y÷| 
*×	)ús   Ä+JÈ$J	Ê	J	