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>dZ?dGZ@dZAdZBdZCdZDdZEdZFdZGdZHdZIdZJi ZKi ZLi ZMdHZNdZOdIdJ ZPdZQdaRdZSdZTdZUdZVdZWdZXdKZYdLgZZdZ[dZ\g a]d'gZ^dZ_dMZ`dZag dNZbi ZcdZddFZeej/ndOdZfdPZgdQgZhg ZidZjdMZkd+Zlh dRZmdZndSZodZpdZqdTgZrdZsdZtdZudZvd Zwd ZxdZydZzdZ{i Z|dZ}dUZ~dZdZdVZi Zi ZdWZdZdZdXdYgZdZdZdZd7ZdZdZdZdZdZdZdZdZg ZdZdZdZdZg ZdZdZdZej/ndZdZdZdZdZdZ[[d[d\ ZdS )]    )divisionabsolute_importwith_statementprint_functionunicode_literals)PY2
basestringbchrbordchropenpystrrangeroundstrtobytesunicode)OptionalListNFi   iX  T   d   i,      ZRENPY_DEBUG_IMAGE_CACHE   i  g        )master	transientscreensoverlayr   r   r   i         
   ZRENPY_AUTOSAVE_FREQUENCYZ200          autotl)g333333?gQ?g      ?   g?)z.rpycz.rpymcz.rpybz.pycz.pyoZRENPY_RAW_TRACEBACKSZvoice   Zn_s_w_e_w_eZprogress_screeng?g?ZRENPY_LOG_TO_STDOUT0)helpquitZ_confirm_quitZRENPY_USE_DRAWABLE_RESOLUTION1ZRENPY_DRAWABLE_RESOLUTION_TEXTZRENPY_DRAW_VIRTUAL_TEXT_BOXzimages/r   N   g      ?Z_game_menu_screenZpreferencesZmusicaudio)Zsfxr#   r#   i    z#000g      @g{Gz?flip)ia  r   r   i	  ZRENPY_GC_PRINT_UNREACHABLE)showreplaceupdatei  Zsidezrenpy.geometryc                  G   s   t jjt jjfS )a(  
    :args: (tag, attrs, mode)

    Returns the say attribute transition to use, and the layer the transition
    should be applied to (with None being a valid layer.

    Attrs is the list of tags/attributes of the incoming image.

    Mode is one of "permanent", "temporary", or "restore".
    )renpyconfigsay_attribute_transitionsay_attribute_transition_layer)args r7   2C:\Users\PahaGest\Downloads\Selene\renpy\config.py!say_attribute_transition_callback  s    r9      notifyg      ?)ZnoaltZrtZartZRENPY_TOUCH_KEYBOARD)   r<   z	gui.about>   negZpresspos   Z030000007e0500000920)g      Y@g     @@g     j@g         z	audio/oggz	audio/mp3ZRENPY_OPEN_FILE_ENCODINGc                  C   s   dd l } | jja| jja| jja| jjja| jj	a
d| jjfd| jjjfgaddlm}m}m}m}m}m}m} ||||||ftd< ||||||ftd< ||||||ftd< ||||||ftd< ||||||ftd	< d S )
Nr   z'\.(png|jpg|jpeg|webp|gif|tif|tiff|bmp)$z\.(mp2|mp3|ogg|opus|wav)$)GL_FUNC_ADDGL_ONEGL_ONE_MINUS_SRC_ALPHAGL_ZEROGL_DST_COLORGL_MINGL_MAXZnormaladdZmultiplyminmax)r2   exportsscener/   hidedisplayttsZdefault_tts_functiontts_functionZdisplay_notifyr;   Zflush_cache_filer-   
autoreloadautoreload_functionsZ
renpy.uguurA   rB   rC   rD   rE   rF   rG   gl_blend_func)r2   rA   rB   rC   rD   rE   rF   rG   r7   r7   r8   init  s    

$rT   (  
__future__r   r   r   r   r   renpy.compatr   r   r	   r
   r   r   r   r   r   r   r   r   typingr   r   collectionsosr2   lockedr)   Zwindow_titleZwindow_iconZwindows_iconZscreen_widthZscreen_heightZsounddebugZdebug_soundZrollback_enabledZrollback_lengthZkeep_rollback_dataZfix_rollback_without_choiceZhard_rollback_limitZoverlay_functionsZunderlayZprofileZsavedirZimage_cache_sizeZimage_cache_size_mbZpredict_statementsenvironZdebug_image_cacheZallow_skippingZfast_skippingZskippingZ
skip_delayZarchivesZ
searchpathZforce_archivesmouseZsound_sample_rateZ
fade_musicZsticky_positionslayersZtransient_layersZoverlay_layersZcontext_clear_layersZ
top_layersZoverlay_during_withZenable_fast_dissolveZfocus_crossrange_penaltyZload_before_transitionZkeymapZdefault_keymapjoystickZinteract_callbacksZstart_interact_callbacksZsay_sustain_callbacksZsay_allow_dismissZtext_tokenizerZafm_charactersZ	afm_bonusZafm_callbackZauto_choice_delayZfont_replacement_mapZwith_callback	framerateZframeseditorZeditor_transientZeditor_file_separatorZ	developerZoriginal_developerZdefault_developerlogZ
lint_hooksZhyperlink_stylerZhyperlink_callbackZhyperlink_focusZrecolor_sfontsZtext_layoutZperiodic_callbackZperiodic_callbacksZcheck_propertiesZimplicit_with_noneZlayer_clippingZdisable_fullscreen_optZreject_midiZcharacter_callbackZall_character_callbacksZhas_autosaveZautosave_slotsintgetZautosave_frequencyrL   r/   rM   Zuse_cpickleZ	inspectorZreject_backslashZmouse_hide_timeZmissing_image_callbackZsay_menu_text_filterZlabel_overridesZauto_save_extra_infosave_directoryZmissing_sceneZmissing_showZmissing_hideZlabel_callbackZempty_windowZwindow_overlay_functionsZrtlZfile_open_callbackZthumbnail_widthZthumbnail_heightZend_game_transitionZdefault_transformZtransform_uses_child_positionZquit_actionZscreenshot_cropgamedirbasedir
renpy_baseZ	commondirlogdirZ	gl_enableZmode_callbacksZmovetransition_respects_offsetsZ imagereference_respects_positionZsimulate_androidZimagemap_cacheZpredict_callbacksZexpensive_predict_callbacksZpredict_screensZchoice_screen_chosenZnarrator_menuZvariantsZimagemap_auto_functionZkeep_running_transformZimage_attributesZnew_character_image_argumentr4   r5   nameversionZ
log_enableZdebug_text_overflowZallow_underfull_gridsZsave_physical_sizeZnew_substitutionsZold_substitutionsZrendererZ
translatorZbroken_line_spacingZpython_callbacksZ	save_dumpZ	gl_resizeZchange_language_callbacksZtl_directoryZ
key_repeatZvoice_tag_callbackZsave_json_callbacksZlongpress_durationZlongpress_radiusZlongpress_vibrateZstatement_callbacksZautoreload_blacklistreload_modulesZ	say_layerZchoice_layerraw_tracebacksrP   Ztts_voice_channelsZscreen_cache_sizeZadjust_view_sizeZautosave_on_choiceZautosave_on_inputZemphasize_audio_channelsZemphasize_audio_volumeZemphasize_audio_timeZtransition_screensZpredict_statements_callbackZhw_videoZdispatch_gestureZgesturesZgesture_component_sizeZgesture_stroke_sizeboolZlog_to_stdoutZcustom_text_tagsZself_closing_custom_text_tagsZreplace_textZmissing_label_callbackZpreserve_zorderZlint_ignore_replacesZminimum_presplash_timeZnearest_neighborZuse_drawable_resolutionZdrawable_resolution_textZdraw_virtual_text_boxZpad_bindingsZpygame_eventsZmap_pad_eventZafter_replay_callbackZwrap_shown_transformsZsearch_prefixesZclear_linesZspecial_namespacesZline_logZdynamic_imagesZsave_on_mobile_backgroundZquit_on_mobile_backgroundZpass_joystick_eventsZoverlay_screensZalways_shown_screensZ	tag_layerZdefault_tag_layerZtag_transformZ
tag_zorderZ	log_widthZrollback_side_sizeZde_minimus_dpi_scaleZwindows_dpi_scale_headZenable_rollback_sideZreplay_scopeZmovie_mixerZauto_channelsZplay_channelZspeaking_attributeZlist_compression_lengthZhistory_lengthZhistory_callbacksZnew_translate_orderZdefer_stylesZtranslate_clean_storesZtranslate_filesZtranslate_commentsZenable_language_autodetectZlocale_to_language_functionZold_say_argsZ	tts_voiceZmax_fit_sizeZenforce_window_max_sizeZtranslate_launcherdefaultdictlistZlanguage_callbacksZinit_system_stylesZbuild_styles_callbacksZauto_movie_channelZignore_duplicate_labelsZline_log_callbacksZprofile_screensZallow_sysfontsZtight_loop_defaultZ prefix_viewport_scrollbar_stylesZneeds_redraw_callbacksZhyperlink_inherit_sizeZstdout_callbacksZstderr_callbacksZautomatic_polar_motionZlint_stats_callbacksZposition_viewport_sideZcharacter_id_prefixesZnw_voiceZsay_arguments_callbackZatl_one_frameZatl_function_always_blocksZkeep_show_layer_stateZfast_skipping_callbacksZaudio_periodic_thread
emscriptenZpreload_fontsZatl_multiple_eventsZloadable_callbackZfast_redraw_framesZgl_clear_colorZper_frame_screensZperformance_windowZprofile_timeZprofile_to_eventZfast_unhandled_eventZfast_empty_windowZall_nodes_rollbackZ	manage_gcZgc_thresholdsZidle_gc_countZgc_print_unreachableZ
idle_frameZtake_state_from_targetZscrollbar_child_sizeZcache_surfacesZoptimize_texture_boundsZconditionswitch_predict_allZrepeat_transform_eventsZ
warp_limitZdissolve_force_alphaZdisplayable_prefixZreplay_movie_spritesZcontext_callbackZreject_relativeZside_image_prefix_tagZsay_attributes_use_side_imageZmenu_showed_windowZmenu_actionsZmenu_include_disabledZreport_extraneous_attributesZskip_soundsZlint_screens_without_parametersZmenu_arguments_callbackZauto_clear_screenshotZallow_duplicate_labelsZfont_transformsZftfont_scaleZftfont_vertical_extent_scaleZdefault_shaderZpreserve_volume_when_mutedr9   Z'say_attribute_transition_callback_attrsr;   Zkeyword_after_pythonZload_failed_labelZ
equal_monoZdisable_inputZkeep_side_render_orderZgl2Z
depth_sizeZcontext_copy_remove_screensZexception_handlerZreturn_not_found_labelrR   Zvoice_mixersZdebug_text_alignmentZprofile_initZlive2d_interpolateZtts_filter_tagsZmerge_uniformsZside_image_requires_attributesZmax_mipmap_levelZtouch_keyboardZfbo_sizeZlint_ignore_redefineZquit_callbacksZsteam_appidZcontroller_first_repeatZcontroller_repeatZcontroller_repeat_statesZside_image_only_not_showingZexpand_texture_boundsZmodal_timeeventZgl_set_attributesZcontroller_blocklistZmipmap_dissolvesZmipmap_moviesZmipmap_textZallow_screensaverZcontext_fadein_musicZcontext_fadeout_musicZdismiss_blocking_transitionsZlog_gl_extensionsZlog_gl_shadersrS   Zpause_after_rollbackZperspectiveZscene_clears_layer_at_listZmouse_displayableZgl_lod_biasZadjust_attributesZdefault_attribute_callbacksZwho_what_sub_compatZcompat_viewport_minimumZwebaudioZwebaudio_required_typesZaudio_filename_callbackZadjust_minimumsZatl_start_on_showZinput_caret_blinkZsingle_movie_channelZraise_image_exceptionsZrelative_transform_sizeZtts_front_to_backZlog_live2d_loadingZdebug_predictionZmouse_focus_clickthroughZalways_unfocusZat_exit_callbacksZlint_character_statisticsZallow_unfull_vpgridsZbox_skipZcrop_relative_defaultZnointeract_callbacksZlayeredimage_offer_screenZcall_screen_roll_forwardZchoice_empty_windowZopen_file_encodingZgl2_modify_window_flagsZskip_during_textZalternate_unelide_pathZmodal_blocks_pauserT   r7   r7   r7   r8   <module>   s  8







