§
    C—¶f  ã                   óJ   — d Z ddlZddlmZmZmZmZmZ  G d„ de¦  «        Z	dS )z½
    flaskext.session
    ~~~~~~~~~~~~~~~~

    Adds server session support to your application.

    :copyright: (c) 2014 by Shipeng Feng.
    :license: BSD, see LICENSE for more details.
é    Né   )ÚNullSessionInterfaceÚRedisSessionInterfaceÚMemcachedSessionInterfaceÚFileSystemSessionInterfaceÚMongoDBSessionInterfacec                   ó&   — e Zd ZdZdd„Zd„ Zd„ ZdS )ÚSessionaM  This class is used to add Server-side Session to one or more Flask
    applications.

    There are two usage modes.  One is initialize the instance with a very
    specific Flask application::

        app = Flask(__name__)
        Session(app)

    The second possibility is to create the object once and configure the
    application later::

        sess = Session()

        def create_app():
            app = Flask(__name__)
            sess.init_app(app)
            return app

    By default Flask-Session will use :class:`NullSessionInterface`, you
    really should configurate your app to use a different SessionInterface.

    .. note::

        You can not use ``Session`` instance directly, what ``Session`` does
        is just change the :attr:`~flask.Flask.session_interface` attribute on
        your Flask applications.
    Nc                 óF   — || _         |�|                      |¦  «         d S d S ©N)ÚappÚinit_app©Úselfr   s     úK/var/www/piapp/venv/lib/python3.11/site-packages/flask_sessions/__init__.pyÚ__init__zSession.__init__0   s-   € ØˆŒØˆ?Ø�MŠM˜#ÑÔÐÐÐð ˆ?ó    c                 ó:   — |                       |¦  «        |_        dS )z�This is used to set up session for your app object.

        :param app: the Flask app object with proper configuration.
        N)Ú_get_interfaceÚsession_interfacer   s     r   r   zSession.init_app5   s    € ð
 !%× 3Ò 3°CÑ 8Ô 8ˆÔÐÐr   c                 óê  — |j                              ¦   «         }|                     dd¦  «         |                     dd¦  «         |                     dd ¦  «         |                     dd ¦  «         |                     dt          j                             t          j        ¦   «         d¦  «        ¦  «         |                     d	d
¦  «         |                     dd¦  «         |                     dd ¦  «         |                     dd¦  «         |                     dd¦  «         |d         dk    rt          |d         |d         ¦  «        }n¥|d         dk    rt          |d         |d         ¦  «        }n||d         dk    r+t          |d         |d	         |d         |d         ¦  «        }nE|d         dk    r+t          |d         |d         |d         |d         ¦  «        }nt          ¦   «         }|S )NÚSESSION_TYPEÚnullÚSESSION_KEY_PREFIXzsession:ÚSESSION_REDISÚSESSION_MEMCACHEDÚSESSION_FILE_DIRÚflask_sessionÚSESSION_FILE_THRESHOLDiô  ÚSESSION_FILE_MODEi€  ÚSESSION_MONGODBÚSESSION_MONGODB_DBÚSESSION_MONGODB_COLLECTÚsessionsÚredisÚ	memcachedÚ
filesystemÚmongodb)ÚconfigÚcopyÚ
setdefaultÚosÚpathÚjoinÚgetcwdr   r   r   r   r   )r   r   r)   r   s       r   r   zSession._get_interface<   s,  € Ø”—’Ñ"Ô"ˆØ×Ò˜.¨&Ñ1Ô1Ð1Ø×ÒÐ.°
Ñ;Ô;Ð;Ø×Ò˜/¨4Ñ0Ô0Ð0Ø×ÒÐ-¨tÑ4Ô4Ð4Ø×ÒÐ,­b¬g¯lªl½2¼9¹;¼;Ø;Jñ/Lô /Lñ 	Mô 	Mð 	Mà×ÒÐ2°CÑ8Ô8Ð8Ø×ÒÐ-¨sÑ3Ô3Ð3Ø×ÒÐ+¨TÑ2Ô2Ð2Ø×ÒÐ.°Ñ@Ô@Ð@Ø×ÒÐ3°ZÑ@Ô@Ð@à�.Ô! WÒ,Ð,Ý 5°f¸_Ô6MØ17Ð8LÔ1Mñ!Oô !OÐÐà�NÔ# {Ò2Ð2Ý 9ØÐ(Ô)¨6Ð2FÔ+Gñ!Iô !IÐÐà�NÔ# |Ò3Ð3Ý :ØÐ'Ô(¨&Ð1IÔ*JØÐ(Ô)¨6Ð2FÔ+Gñ!Iô !IÐÐð �NÔ# yÒ0Ð0Ý 7ØÐ&Ô'¨Ð0DÔ)EØÐ.Ô/°Ð8LÔ1Mñ!Oô !OÐÐõ !5Ñ 6Ô 6Ðà Ð r   r   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   © r   r   r
   r
      sP   € € € € € ðð ð:ð ð ð ð
9ð 9ð 9ð!ð !ð !ð !ð !r   r
   )
r3   r,   r$   r   r   r   r   r   Úobjectr
   r4   r   r   ú<module>r6      sž   ððð ð 
€	€	€	ðð ð ð ð ð ð ð ð ð ð ð ð ð ð
I!ð I!ð I!ð I!ð I!ˆfñ I!ô I!ð I!ð I!ð I!r   