� k\�gI���^�dZddlmZddlZddlZddlmZddlmZddlmZddlmZddlm Z dd lm Z dd lm Z d d l mZd d lmZd dlmZd dlmZd dlmZddl mZddl mZddlmZddlmZddlmZejrTd dlmZd dlmZd dlmZd dl m!Z!d dl m"Z"d dl m#Z#d d l m Z d dl m$Z$d dl%m&Z&ddl'm(Z(dd l)m*Z*dd!l)m+Z+dd"l)m,Z,dd#l)m-Z-Gd$�d%e��Z.Gd&�d'e��Z/Gd(�d)ej0��Z1Gd*�d+ej2ee.��Z3e3Z4 Gd,�d-e3��Z5Gd.�d/e3��Z6Gd0�d1e6��Z7Gd2�d3e6��Z8Gd4�d5e7��Z9Gd6�d7e8��Z:Gd8�d9e7��Z;Gd:�d;e8��Z<Gd<�d=e.��Z=Gd>�d?e.��Z>Gd@�dAe8��Z?GdB�dCe7��Z@GdD�dEe8��ZAGdF�dGe7��ZBGdH�dIe8��ZCGdJ�dKe7��ZDGdL�dMe8��ZEGdN�dOe6��ZFGdP�dQe6��ZGGdR�dSe6��ZHGdT�dUe6��ZIGdV�dWe6��ZJGdX�dYe6��ZKGdZ�d[e��ZLGd\�d]eL��ZMGd^�d_eL��ZNGd`�daeM��ZOGdb�dceN��ZP dodpdl�ZQ dqdn�ZRdS)rzq Provides the hierarchy of DDL-defining schema items as well as routines to invoke them for a create/drop call. �)� annotationsN)�Any)�Callable)�Iterable)�List)�Optional)�Sequence)�Tuple�)�roles)� _generative)� Executable)� SchemaVisitor)� ClauseElement�)�exc)�util)� topological)�Protocol)�Self)�Compiled)� DDLCompiler)� BindParameter)� Constraint)�ForeignKeyConstraint)� SchemaItem)�Table)� TableClause)� Connection)� CacheStats)�CompiledCacheType)�Dialect)�SchemaTranslateMapTypec�.�eZdZdZdZ d�Zddd�dd�ZdS)�BaseDDLElementz�The root of DDL constructs, including those that are sub-elements within the "create table" and other processes. .. versionadded:: 2.0 Fc � �|j||fi|��S)zNReturn a compiler appropriate for this ClauseElement, given a Dialect.)� ddl_compiler)�self�dialect�kws �b/home/asafur/pinokio/api/open-webui.git/app/env/lib/python3.11/site-packages/sqlalchemy/sql/ddl.py� _compilerzBaseDDLElement._compilerAs!��$�w�#�G�T�8�8�R�8�8�8�N)�for_executemany�schema_translate_mapr)r"�compiled_cache�Optional[CompiledCacheType]� column_keys� List[str]r.�boolr/� Optional[SchemaTranslateMapType]r*r�return�JTuple[Compiled, Optional[typing_Sequence[BindParameter[Any]]], CacheStats]c ��t����N��NotImplementedError)r(r)r0r2r.r/r*s r+�_compile_w_cachezBaseDDLElement._compile_w_cacheGs��"�#�#�#r-)r)r"r0r1r2r3r.r4r/r5r*rr6r7)�__name__� __module__� __qualname__�__doc__�_hierarchy_supports_cachingr,r<�r-r+r%r%6s^��������#(��B�9�9�9�!&�AE� $� $� $� $� $� $� $� $r-r%c�"�eZdZ ddd�dd�ZdS)� DDLIfCallableN.)�compiler�ddlr%�targetr�bind�Optional[Connection]�tables�Optional[List[Table]]�state� Optional[Any]r)r"rE�Optional[DDLCompiler]� checkfirstr4r6c��dSr9rB) r(rFrGrHrJrLr)rErOs r+�__call__zDDLIfCallable.__call__Ws ���sr-�NN)rFr%rGrrHrIrJrKrLrMr)r"rErNrOr4r6r4)r=r>r?rQrBr-r+rDrDVsD������ )-�#� �+.� � � � � � � � r-rDc�:�eZdZUded<ded<ded< ddd�ZdS)�DDLIf� Optional[str]r)�Optional[DDLIfCallable]� callable_rMrLNrFr%rGrrHrIrErNr*rr6r4c �N�|�|j}n|�|j}n Jd���t|jt��r|j|jkrdSn7t|jtt t f��r|j|jvrdS|j�|j|||f|j||d�|��sdSdS)NFzcompiler or dialect is required)rLr)rET) r)� isinstance�str�name�tuple�list�setrWrL)r(rFrGrHrEr*r)s r+�_should_executezDDLIf._should_executejs��� � ��l�G�G� � !��&�G�G� ;�;� ;� ;�5� �d�l�C� (� (� ��|�w�|�+�+��u�,� �� �u�d�C�&8� 9� 9� ��|�4�<�/�/��u� �>� %�n�d�n� � � �/ ��*��� / �/ ��/ �/ � %��5��tr-r9) rFr%rGrrHrIrErNr*rr6r4)r=r>r?�__annotations__r_rBr-r+rTrTesX�����������&�&�&�&�����+/� � � � � � � r-rTc��eZdZUdZdZded<dZded<d�Zedd ���Z e ddd���Z d�Z d�Z d�Z d�ZdS)�ExecutableDDLElementa�Base class for standalone executable DDL expression constructs. This class is the base for the general purpose :class:`.DDL` class, as well as the various create/drop clause constructs such as :class:`.CreateTable`, :class:`.DropTable`, :class:`.AddConstraint`, etc. .. versionchanged:: 2.0 :class:`.ExecutableDDLElement` is renamed from :class:`.DDLElement`, which still exists for backwards compatibility. :class:`.ExecutableDDLElement` integrates closely with SQLAlchemy events, introduced in :ref:`event_toplevel`. An instance of one is itself an event receiving callable:: event.listen( users, "after_create", AddConstraint(constraint).execute_if(dialect="postgresql"), ) .. seealso:: :class:`.DDL` :class:`.DDLEvents` :ref:`event_toplevel` :ref:`schema_ddl_sequences` NzOptional[DDLIf]�_ddl_ifzOptional[SchemaItem]rGc�0�|�|||��Sr9)� _execute_ddl)r(� connection�distilled_params�execution_optionss r+�_execute_on_connectionz+ExecutableDDLElement._execute_on_connection�s%���&�&� �"�$5� � � r-rr6rc��||_|S)a�Return a copy of this :class:`_schema.ExecutableDDLElement` which will include the given target. This essentially applies the given item to the ``.target`` attribute of the returned :class:`_schema.ExecutableDDLElement` object. This target is then usable by event handlers and compilation routines in order to provide services such as tokenization of a DDL string in terms of a particular :class:`_schema.Table`. When a :class:`_schema.ExecutableDDLElement` object is established as an event handler for the :meth:`_events.DDLEvents.before_create` or :meth:`_events.DDLEvents.after_create` events, and the event then occurs for a given target such as a :class:`_schema.Constraint` or :class:`_schema.Table`, that target is established with a copy of the :class:`_schema.ExecutableDDLElement` object using this method, which then proceeds to the :meth:`_schema.ExecutableDDLElement.execute` method in order to invoke the actual DDL instruction. :param target: a :class:`_schema.SchemaItem` that will be the subject of a DDL operation. :return: a copy of this :class:`_schema.ExecutableDDLElement` with the ``.target`` attribute assigned to the given :class:`_schema.SchemaItem`. .. seealso:: :class:`_schema.DDL` - uses tokenization against the "target" when processing the DDL string. )rG)r(rGs r+�againstzExecutableDDLElement.against�s��B�� �� r-r)rUrWrVrLrMc�2�t|||��|_|S)aA Return a callable that will execute this :class:`_ddl.ExecutableDDLElement` conditionally within an event handler. Used to provide a wrapper for event listening:: event.listen( metadata, "before_create", DDL("my_ddl").execute_if(dialect="postgresql"), ) :param dialect: May be a string or tuple of strings. If a string, it will be compared to the name of the executing database dialect:: DDL("something").execute_if(dialect="postgresql") If a tuple, specifies multiple dialect names:: DDL("something").execute_if(dialect=("postgresql", "mysql")) :param callable\_: A callable, which will be invoked with three positional arguments as well as optional keyword arguments: :ddl: This DDL element. :target: The :class:`_schema.Table` or :class:`_schema.MetaData` object which is the target of this event. May be None if the DDL is executed explicitly. :bind: The :class:`_engine.Connection` being used for DDL execution. May be None if this construct is being created inline within a table, in which case ``compiler`` will be present. :tables: Optional keyword argument - a list of Table objects which are to be created/ dropped within a MetaData.create_all() or drop_all() method call. :dialect: keyword argument, but always present - the :class:`.Dialect` involved in the operation. :compiler: keyword argument. Will be ``None`` for an engine level DDL invocation, but will refer to a :class:`.DDLCompiler` if this DDL element is being created inline within a table. :state: Optional keyword argument - will be the ``state`` argument passed to this function. :checkfirst: Keyword argument, will be True if the 'checkfirst' flag was set during the call to ``create()``, ``create_all()``, ``drop()``, ``drop_all()``. If the callable returns a True value, the DDL statement will be executed. :param state: any value which will be passed to the callable\_ as the ``state`` keyword argument. .. seealso:: :meth:`.SchemaItem.ddl_if` :class:`.DDLEvents` :ref:`event_toplevel` )rTrc)r(r)rWrLs r+� execute_ifzExecutableDDLElement.execute_if�s��f�W�i��7�7�� �� r-c �>�|j�dS|jj|||fi|��S�NT)rcr_�r(rGrHr*s r+r_z$ExecutableDDLElement._should_execute2s0�� �<� ��4�/�4�<�/��f�d�I�I�b�I�I� Ir-c�f�|�|j|��r|�|��SdSr9)r_rG�execute)r(rHs r+� _invoke_withz!ExecutableDDLElement._invoke_with8s8�� � � �� �T� 2� 2� &��<�<��%�%� %� &� &r-c �V�|�|���|��dS)z"Execute the DDL as a ddl_listener.N)rkrsrps r+rQzExecutableDDLElement.__call__<s*�� � � �V���)�)�$�/�/�/�/�/r-c��|j�|j��}|j���|_|Sr9)� __class__�__new__�__dict__�copy)r(�ss r+� _generatezExecutableDDLElement._generateAs3�� �N� "� "�4�>� 2� 2���]�'�'�)�)�� ��r-)rGrr6r)NNN)r)rUrWrVrLrMr6r)r=r>r?r@rcr`rGrir rkrmr_rsrQr{rBr-r+rbrb�s����������@ $�G�#�#�#�#�#'�F�'�'�'�'� � � ��!�!�!��[�!�F�"&�-1�#� S�S�S�S��[�S�jJ�J�J� &�&�&�0�0�0� ����r-rbc�$�eZdZdZdZdd�Zd�ZdS)�DDLaZA literal DDL statement. Specifies literal SQL DDL to be executed by the database. DDL objects function as DDL event listeners, and can be subscribed to those events listed in :class:`.DDLEvents`, using either :class:`_schema.Table` or :class:`_schema.MetaData` objects as targets. Basic templating support allows a single DDL instance to handle repetitive tasks for multiple tables. Examples:: from sqlalchemy import event, DDL tbl = Table("users", metadata, Column("uid", Integer)) event.listen(tbl, "before_create", DDL("DROP TRIGGER users_trigger")) spow = DDL("ALTER TABLE %(table)s SET secretpowers TRUE") event.listen(tbl, "after_create", spow.execute_if(dialect="somedb")) drop_spow = DDL("ALTER TABLE users SET secretpowers FALSE") connection.execute(drop_spow) When operating on Table events, the following ``statement`` string substitutions are available: .. sourcecode:: text %(table)s - the Table name, with any required quoting applied %(schema)s - the schema name, with any required quoting applied %(fullname)s - the Table name including schema, quoted if needed The DDL's "context", if any, will be combined with the standard substitutions noted above. Keys present in the context will override the standard substitutions. rFNc�~�t|t��stjd|z���||_|pi|_dS)a�Create a DDL statement. :param statement: A string or unicode string to be executed. Statements will be processed with Python's string formatting operator using a fixed set of string substitutions, as well as additional substitutions provided by the optional :paramref:`.DDL.context` parameter. A literal '%' in a statement must be escaped as '%%'. SQL bind parameters are not available in DDL statements. :param context: Optional dictionary, defaults to None. These values will be available for use in string substitutions on the DDL statement. .. seealso:: :class:`.DDLEvents` :ref:`event_toplevel` z4Expected a string or unicode SQL statement, got '%r'N)rYrZr� ArgumentError� statement�context)r(r�r�s r+�__init__z DDL.__init__ssN��4�)�S�)�)� ��#�F����� � #����}�"�� � � r-c���t|j��g}|jr|�d|j����dt |��j�dt |���dd�|���d�S)Nzcontext=�<�@z; �, �>)�reprr�r��append�typer=�id�join)r(�partss r+�__repr__z DDL.__repr__�s|���d�n�%�%�&�� �<� 4� �L�L�2�D�L�2�2� 3� 3� 3�� ��J�J� � � � �t�H�H�H�H� �I�I�e� � � � � � r-r9)r=r>r?r@�__visit_name__r�r�rBr-r+r}r}KsJ������#�#�J�N�!%�!%�!%�!%�F  �  �  �  �  r-r}c�4�eZdZdZd�Zed���Zd�ZdS)�_CreateDropBasez�Base class for DDL constructs that represent CREATE and DROP or equivalents. The common theme of _CreateDropBase is a single ``element`` attribute which refers to the element to be created or dropped. c�N�|x|_|_t|dd��|_dS)Nrc)�elementrG�getattrrc�r(r�s r+r�z_CreateDropBase.__init__�s)��&-�,�� �t�{��w� �4�8�8�� � � r-c��|jjSr9)r��create_drop_stringify_dialect)r(s r+�stringify_dialectz!_CreateDropBase.stringify_dialect�s ���|�9�9r-c��dS)z�Allow disable of _create_rule using a callable. Pass to _create_rule using util.portable_instancemethod(self._create_rule_disable) to retain serializability. FrB)r(rEs r+�_create_rule_disablez$_CreateDropBase._create_rule_disable�s ���ur-N)r=r>r?r@r��propertyr�r�rBr-r+r�r��sW��������9�9�9��:�:��X�:�����r-r�c� ��eZdZd�fd� Z�xZS)� _CreateBaseFc�X��t���|��||_dSr9)�superr�� if_not_exists�r(r�r�rvs �r+r�z_CreateBase.__init__�s)��� ������!�!�!�*����r-�F�r=r>r?r�� __classcell__�rvs@r+r�r��s=�������+�+�+�+�+�+�+�+�+�+r-r�c� ��eZdZd�fd� Z�xZS)� _DropBaseFc�X��t���|��||_dSr9)r�r�� if_exists�r(r�r�rvs �r+r�z_DropBase.__init__�s&��� ������!�!�!�"����r-r�r�r�s@r+r�r��s=�������#�#�#�#�#�#�#�#�#�#r-r�c�0��eZdZdZdZdZ d d �fd � Z�xZS) � CreateSchemazcRepresent a CREATE SCHEMA statement. The argument here is the string name of the schema. � create_schema�defaultFr[rZr�r4c�N��t���||���dS)z.Create a new :class:`.CreateSchema` construct.)r�r�N�r�r�)r(r[r�rvs �r+r�zCreateSchema.__init__�s(��� ������]��C�C�C�C�Cr-r�)r[rZr�r4�r=r>r?r@r�r�r�r�r�s@r+r�r��si��������� %�N�!�� $�D�D�D�D�D�D�D�D�D�D�Dr-r�c�2��eZdZdZdZdZ d d �fd � Z�xZS) � DropSchemazaRepresent a DROP SCHEMA statement. The argument here is the string name of the schema. � drop_schemar�Fr[rZ�cascader4r�c�\��t���||���||_dS)z,Create a new :class:`.DropSchema` construct.)r�r�N)r�r�r�)r(r[r�r�rvs �r+r�zDropSchema.__init__�s-��� ��������;�;�;��� � � r-�FF)r[rZr�r4r�r4r�r�s@r+r�r��sa��������� #�N�!�� �� � � � � � � � � � � r-r�c�.��eZdZdZdZ d d �fd � Z�xZS)� CreateTablez#Represent a CREATE TABLE statement.� create_tableNFr�r�include_foreign_key_constraints�/Optional[typing_Sequence[ForeignKeyConstraint]]r�r4c���t���||���d�|jD��|_||_dS)a�Create a :class:`.CreateTable` construct. :param element: a :class:`_schema.Table` that's the subject of the CREATE :param on: See the description for 'on' in :class:`.DDL`. :param include_foreign_key_constraints: optional sequence of :class:`_schema.ForeignKeyConstraint` objects that will be included inline within the CREATE construct; if omitted, all foreign key constraints that do not specify use_alter=True are included. :param if_not_exists: if True, an IF NOT EXISTS operator will be applied to the construct. .. versionadded:: 1.4.0b2 �r�c�,�g|]}t|����SrB)� CreateColumn)�.0�columns r+� <listcomp>z(CreateTable.__init__.<locals>.<listcomp>s ��K�K�K�� �V�,�,�K�K�Kr-N)r�r��columnsr�)r(r�r�r�rvs �r+r�zCreateTable.__init__�sG���0 ������ ��>�>�>�K�K�7�?�K�K�K�� �/N��,�,�,r-�NF)r�rr�r�r�r4�r=r>r?r@r�r�r�r�s@r+r�r��s`�������-�-�#�N� �#� O�O�O�O�O�O�O�O�O�O�Or-r�c��eZdZdZdZdS)� _DropViewz�Semi-public 'DROP VIEW' construct. Used by the test suite for dialect-agnostic drops of views. This object will eventually be part of a public "view" API. � drop_viewN�r=r>r?r@r�rBr-r+r�r�s��������!�N�N�Nr-r�c��eZdZdd�ZdS)�CreateConstraintr�rc��||_dSr9�r�r�s r+r�zCreateConstraint.__init__(� ���� � � r-N)r�r)r=r>r?r�rBr-r+r�r�'s(�����������r-r�c��eZdZdZdZd�ZdS)r�a�Represent a :class:`_schema.Column` as rendered in a CREATE TABLE statement, via the :class:`.CreateTable` construct. This is provided to support custom column DDL within the generation of CREATE TABLE statements, by using the compiler extension documented in :ref:`sqlalchemy.ext.compiler_toplevel` to extend :class:`.CreateColumn`. Typical integration is to examine the incoming :class:`_schema.Column` object, and to redirect compilation if a particular flag or condition is found:: from sqlalchemy import schema from sqlalchemy.ext.compiler import compiles @compiles(schema.CreateColumn) def compile(element, compiler, **kw): column = element.element if "special" not in column.info: return compiler.visit_create_column(element, **kw) text = "%s SPECIAL DIRECTIVE %s" % ( column.name, compiler.type_compiler.process(column.type), ) default = compiler.get_column_default_string(column) if default is not None: text += " DEFAULT " + default if not column.nullable: text += " NOT NULL" if column.constraints: text += " ".join( compiler.process(const) for const in column.constraints ) return text The above construct can be applied to a :class:`_schema.Table` as follows:: from sqlalchemy import Table, Metadata, Column, Integer, String from sqlalchemy import schema metadata = MetaData() table = Table( "mytable", MetaData(), Column("x", Integer, info={"special": True}, primary_key=True), Column("y", String(50)), Column("z", String(20), info={"special": True}), ) metadata.create_all(conn) Above, the directives we've added to the :attr:`_schema.Column.info` collection will be detected by our custom compilation scheme: .. sourcecode:: sql CREATE TABLE mytable ( x SPECIAL DIRECTIVE INTEGER NOT NULL, y VARCHAR(50), z SPECIAL DIRECTIVE VARCHAR(20), PRIMARY KEY (x) ) The :class:`.CreateColumn` construct can also be used to skip certain columns when producing a ``CREATE TABLE``. This is accomplished by creating a compilation rule that conditionally returns ``None``. This is essentially how to produce the same effect as using the ``system=True`` argument on :class:`_schema.Column`, which marks a column as an implicitly-present "system" column. For example, suppose we wish to produce a :class:`_schema.Table` which skips rendering of the PostgreSQL ``xmin`` column against the PostgreSQL backend, but on other backends does render it, in anticipation of a triggered rule. A conditional compilation rule could skip this name only on PostgreSQL:: from sqlalchemy.schema import CreateColumn @compiles(CreateColumn, "postgresql") def skip_xmin(element, compiler, **kw): if element.element.name == "xmin": return None else: return compiler.visit_create_column(element, **kw) my_table = Table( "mytable", metadata, Column("id", Integer, primary_key=True), Column("xmin", Integer), ) Above, a :class:`.CreateTable` construct will generate a ``CREATE TABLE`` which only includes the ``id`` column in the string; the ``xmin`` column will be omitted, but only against the PostgreSQL backend. � create_columnc��||_dSr9r�r�s r+r�zCreateColumn.__init__�r�r-N)r=r>r?r@r�r�rBr-r+r�r�,s7������l�l�\%�N�����r-r�c�*��eZdZdZdZd d �fd� Z�xZS) � DropTablez!Represent a DROP TABLE statement.� drop_tableFr�rr�r4c�N��t���||���dS)aVCreate a :class:`.DropTable` construct. :param element: a :class:`_schema.Table` that's the subject of the DROP. :param on: See the description for 'on' in :class:`.DDL`. :param if_exists: if True, an IF EXISTS operator will be applied to the construct. .. versionadded:: 1.4.0b2 �r�Nr�r�s �r+r�zDropTable.__init__�s(��� ������I��6�6�6�6�6r-r�)r�rr�r4r�r�s@r+r�r��sM�������+�+�!�N� 7� 7� 7� 7� 7� 7� 7� 7� 7� 7� 7r-r�c�*��eZdZdZdZd d �fd� Z�xZS) �CreateSequencez&Represent a CREATE SEQUENCE statement.�create_sequenceFr�r r�r4c�N��t���||���dS)Nr�r�r�s �r+r�zCreateSequence.__init__�s&��� ������ ��>�>�>�>�>r-r�)r�r r�r4r�r�s@r+r�r��sM�������0�0�&�N�?�?�?�?�?�?�?�?�?�?�?r-r�c�*��eZdZdZdZd d �fd� Z�xZS) � DropSequencez$Represent a DROP SEQUENCE statement.� drop_sequenceFr�r r�r4c�N��t���||���dS)Nr�r�r�s �r+r�zDropSequence.__init__�s&��� ������I��6�6�6�6�6r-r�)r�r r�r4r�r�s@r+r�r��sM�������.�.�$�N�7�7�7�7�7�7�7�7�7�7�7r-r�c�(��eZdZdZdZd�fd� Z�xZS)� CreateIndexz#Represent a CREATE INDEX statement.� create_indexFc�N��t���||���dS)a Create a :class:`.Createindex` construct. :param element: a :class:`_schema.Index` that's the subject of the CREATE. :param if_not_exists: if True, an IF NOT EXISTS operator will be applied to the construct. .. versionadded:: 1.4.0b2 r�Nr�r�s �r+r�zCreateIndex.__init__�s(��� ������ ��>�>�>�>�>r-r�r�r�s@r+r�r��sH�������-�-�#�N� ?� ?� ?� ?� ?� ?� ?� ?� ?� ?r-r�c�(��eZdZdZdZd�fd� Z�xZS)� DropIndexz!Represent a DROP INDEX statement.� drop_indexFc�N��t���||���dS)aCreate a :class:`.DropIndex` construct. :param element: a :class:`_schema.Index` that's the subject of the DROP. :param if_exists: if True, an IF EXISTS operator will be applied to the construct. .. versionadded:: 1.4.0b2 r�Nr�r�s �r+r�zDropIndex.__init__�s(��� ������I��6�6�6�6�6r-r�r�r�s@r+r�r��sH�������+�+�!�N� 7� 7� 7� 7� 7� 7� 7� 7� 7� 7r-r�c�&��eZdZdZdZ�fd�Z�xZS)� AddConstraintz2Represent an ALTER TABLE ADD CONSTRAINT statement.�add_constraintc���t���|��tj|j��|_dSr9)r�r�r�portable_instancemethodr�� _create_rule)r(r�rvs �r+r�zAddConstraint.__init__�s<��� ������!�!�!�#�;� � %� � ����r-r�r�s@r+r�r��sC�������<�<�%�N� � � � � � � � � r-r�c�(��eZdZdZdZd�fd� Z�xZS)�DropConstraintz3Represent an ALTER TABLE DROP CONSTRAINT statement.�drop_constraintFc ���||_t��j|fd|i|��tj|j��|_dS)Nr�)r�r�r�rr�r�r�)r(r�r�r�r*rvs �r+r�zDropConstraint.__init__�sO����� �������<�<�I�<��<�<�<�#�;� � %� � ����r-r�r�r�s@r+r�r��sH�������=�=�&�N� � � � � � � � � � r-r�c��eZdZdZdZdS)�SetTableCommentz*Represent a COMMENT ON TABLE IS statement.�set_table_commentNr�rBr-r+r�r�s������4�4�(�N�N�Nr-r�c��eZdZdZdZdS)�DropTableCommentzfRepresent a COMMENT ON TABLE '' statement. Note this varies a lot across database backends. �drop_table_commentNr�rBr-r+r�r� s�������� *�N�N�Nr-r�c��eZdZdZdZdS)�SetColumnCommentz+Represent a COMMENT ON COLUMN IS statement.�set_column_commentNr�rBr-r+r�r�s������5�5�)�N�N�Nr-r�c��eZdZdZdZdS)�DropColumnCommentz0Represent a COMMENT ON COLUMN IS NULL statement.�drop_column_commentNr�rBr-r+r�r�s������:�:�*�N�N�Nr-r�c��eZdZdZdZdS)�SetConstraintCommentz/Represent a COMMENT ON CONSTRAINT IS statement.�set_constraint_commentNr�rBr-r+r�r�"s������9�9�-�N�N�Nr-r�c��eZdZdZdZdS)�DropConstraintCommentz4Represent a COMMENT ON CONSTRAINT IS NULL statement.�drop_constraint_commentNr�rBr-r+rr(s������>�>�.�N�N�Nr-rc�4�eZdZd�Zejd���ZdS)� InvokeDDLBasec��||_dSr9)rf)r(rfs r+r�zInvokeDDLBase.__init__/s ��$����r-c ��t���)�dhelper context manager that will apply appropriate DDL events to a CREATE or DROP operation.r:�r(rGr*s r+�with_ddl_eventszInvokeDDLBase.with_ddl_events2s�� "�#�#�#r-N)r=r>r?r�� contextlib�contextmanagerr rBr-r+rr.sB������%�%�%���$�$���$�$�$r-rc�.�eZdZejd���ZdS)�InvokeCreateDDLBasec+�~K�|jj||jfd|i|��dV�|jj||jfd|i|��dS�r� _ddl_runnerN)�dispatch� before_createrf� after_creater s r+r z#InvokeCreateDDLBase.with_ddl_events;s����� &���%� �D�O� � �15� �9;� � � � ����$���$� �D�O� � �15� �9;� � � � � r-N�r=r>r?r r r rBr-r+rr:�1��������  �  ���  �  �  r-rc�.�eZdZejd���ZdS)�InvokeDropDDLBasec+�~K�|jj||jfd|i|��dV�|jj||jfd|i|��dSr)r� before_droprf� after_dropr s r+r z!InvokeDropDDLBase.with_ddl_eventsJs����� $���#� �D�O� � �15� �9;� � � � ����"���"� �D�O� � �15� �9;� � � � � r-NrrBr-r+rrIrr-rc�^��eZdZ d �fd� Zd�Zd�Zd�Zd�Z d d�Zd �Z dd �Z dd �Z �xZ S)�SchemaGeneratorFNc ���t��j|fi|��||_||_|j|_||_i|_dSr9�r�r�rOrJ�identifier_preparer�preparerr)�memo�r(r)rfrOrJ�kwargsrvs �r+r�zSchemaGenerator.__init__Y�N��� ������.�.�v�.�.�.�$����� ��3�� ��� ��� � � r-c� �|j�|j��|j�|��}|r|j�|��|j p'|j�|j|j|��� S�N)�schema�r)�validate_identifierr[rf�schema_for_objectrO� has_table�r(�table�effective_schemas r+�_can_create_tablez!SchemaGenerator._can_create_tablecs��� � �(�(���4�4�4��?�<�<�U�C�C�� � ?� �L� ,� ,�-=� >� >� >��?�"� �$�,�*@�*@� �O�U�Z�0@�+A�+ �+ �' � r-c���|j�|j��}|r|j�|��|j p2|j�|j|jj|j|��� Sr'�rfr+r.r)r*rO� has_indexr[�r(�indexr/s r+�_can_create_indexz!SchemaGenerator._can_create_indexls���?�<�<�U�[�I�I�� � ?� �L� ,� ,�-=� >� >� >��?�"� �$�,�*@�*@� �O� �K� � �J�#� +A�+ �+ �' � r-c���|j�|��}|jjoD|jj s|j o/|j p'|j�|j|j|��� Sr'� rfr+r)�supports_sequences�sequences_optional�optionalrO� has_sequencer[�r(�sequencer/s r+�_can_create_sequencez$SchemaGenerator._can_create_sequencews}���?�<�<�X�F�F���|�.� ���0� 0� I��8I�4I� ��O�#���|�0�0��O�X�]�;K�1����  r-c�,���j��j}n&t|j�����}t�fd�|D����}�fd�|j���D��}d�|D��}��||�j���5|D]}��|d����|D];\}}|���|d|d����!|D]} ��| ����< ddd��dS#1swxYwYdS)Nc�>��g|]}��|���|��SrB)r0�r��tr(s �r+r�z2SchemaGenerator.visit_metadata.<locals>.<listcomp>�s,��� <� <� <�1�$�"8�"8��";�";� <�Q� <� <� <r-c�L��g|] }|j� ��|���|��!Sr9)r�r?�r�rzr(s �r+r�z2SchemaGenerator.visit_metadata.<locals>.<listcomp>�s>��� � � ���x��D�$=�$=�a�$@�$@�� ���r-c��g|] \}}|�|�� Sr9rB�r�rC�fkss r+r�z2SchemaGenerator.visit_metadata.<locals>.<listcomp>����J�J�J�(�1�c�A�M�A�M�M�Mr-�rJrOT�� create_ok)rLr��_is_metadata_operation)rJr]�values�sort_tables_and_constraints� _sequencesr rO�traverse_single) r(�metadatarJ� collection�seq_coll�event_collection�seqr.�fkcs�fkcs ` r+�visit_metadatazSchemaGenerator.visit_metadata�s���� �;� "��[�F�F��(�/�0�0�2�2�3�3�F�0� <� <� <� <�� <� <� <� � � � � � � ��(�/�/�1�1� � � �� K�J�j�J�J�J�� � !� !� �#���"� � � 2� 2�  � :� :���$�$�S�D�$�9�9�9�9�)� 2� 2� ��t��$��(�(��"&�8<�/3� )����� $�2�2���,�,�S�1�1�1�1�2� 2� 2� 2� 2� 2� 2� 2� 2� 2� 2� 2� 2� 2���� 2� 2� 2� 2� 2� 2s� AD � D �D c�N�|s|�|��sdS|�||j|���5|jD]#}|j�|�|j���$|jjsd}t||���� |j ��t|d��r!|j D]}|�|d����|jj r�|jjs�|j�'t!|��� |j ��|jD]0}|j�'t#|��� |j ���1|jjr8|jD]0}|j�'|j �t+|�����1ddd��dS#1swxYwYdS)N�rOrM)r��indexesTrK)r0r rOr�r�rQr)�supports_alterr�rsrf�hasattrr\�supports_comments�inline_comments�commentr�r��supports_constraint_comments� constraintsrrr�)r(r.rLr�rMr�r5� constraints r+� visit_tablezSchemaGenerator.visit_table�s0��� ��!7�!7��!>�!>� � �F� � !� !� ���#9�"� � �( �( �  �-� 9� 9���>�-��(�(���8�8�8���<�.� 7�26�/� ��3� � � � �l�4�?�+�+�+��u�i�(�(� @�"�]�@�@�E��(�(��$�(�?�?�?�?�� �.� �� �4� ��=�,�#�E�*�*�7�7���H�H�H�#�m�O�O�F��~�1�(��0�0�=�=�d�o�N�N�N���<�<��&+�&7��� �%�-�9� �O�3�3� 4�Z� @� @�����M( �( �( �( �( �( �( �( �( �( �( �( ����( �( �( �( �( �( s�EF�F�!Fc���|jjsdS|�|��5t|���|j��ddd��dS#1swxYwYdSr9)r)r]r r�rsrf�r(rds r+�visit_foreign_key_constraintz,SchemaGenerator.visit_foreign_key_constraint�s����|�*� � �F� � !� !�*� -� -� D� D� �*� %� %� 2� 2�4�?� C� C� C� D� D� D� D� D� D� D� D� D� D� D� D���� D� D� D� D� D� D��(A�A� Ac���|s|�|��sdS|�|��5t|���|j��ddd��dS#1swxYwYdSr9)r?r r�rsrf)r(r>rLs r+�visit_sequencezSchemaGenerator.visit_sequence�s���� ��!:�!:�8�!D�!D� � �F� � !� !�(� +� +� C� C� �8� $� $� 1� 1�$�/� B� B� B� C� C� C� C� C� C� C� C� C� C� C� C���� C� C� C� C� C� C��(A$�$A(�+A(c���|s|�|��sdS|�|��5t|���|j��ddd��dS#1swxYwYdSr9)r6r r�rsrf)r(r5rLs r+� visit_indexzSchemaGenerator.visit_index�s���� ��!7�!7��!>�!>� � �F� � !� !�%� (� (� =� =� �� � � +� +�D�O� <� <� <� =� =� =� =� =� =� =� =� =� =� =� =���� =� =� =� =� =� =rl�FN)FNFr�) r=r>r?r�r0r6r?rYrerhrkrnr�r�s@r+rrXs��������<@������� � � �  �  �  �  �  �  �$2�$2�$2�R�(,�$� 2�2�2�2�hD�D�D�C�C�C�C� =�=�=�=�=�=�=�=r-rc�^��eZdZ d �fd� Zd�Zd�Zd�Zd�Zdd�Z dd �Z d �Z dd �Z �xZ S)� SchemaDropperFNc ���t��j|fi|��||_||_|j|_||_i|_dSr9rr#s �r+r�zSchemaDropper.__init__�r%r-c �6���j��j}n&t|j�����} �fd�|D��}ttt |�fd��������}n�#t j$r�}�jjsStj dd� td�|j D������z��d�|D��}n`t j|jd|j |jd d� td �|j D������z� ��|�Yd}~nd}~wwxYw�fd �|j���D��}d �|D��}��||�j���5|D];\}} |���|dd|����!| D]} ��| ����<|D] } ��| | jdu����! ddd��dS#1swxYwYdS)Nc�>��g|]}��|���|��SrB)�_can_drop_tablerBs �r+r�z0SchemaDropper.visit_metadata.<locals>.<listcomp>s,���L�L�L�Q�D�4H�4H��4K�4K�L�q�L�L�Lr-c�2���jjr|j�dndSr�)r)r]r[)rdr(s �r+�<lambda>z.SchemaDropper.visit_metadata.<locals>.<lambda> s)���#'�<�#>�&�)��6�"�E�"&� r-)� filter_fna4Can't sort tables for DROP; an unresolvable foreign key dependency exists between tables: %s; and backend does not support ALTER. To restore at least a partial sort, apply use_alter=True to ForeignKey and ForeignKeyConstraint objects involved in the cycle to mark these as known cycles that will be ignored.r�c��g|] }|j�� SrB��fullname�r�rCs r+r�z0SchemaDropper.visit_metadata.<locals>.<listcomp>���(I�(I�(I����(I�(I�(Ir-c��g|]}|df��S)rBrBr|s r+r�z0SchemaDropper.visit_metadata.<locals>.<listcomp>s��?�?�?�!�q�"�g�?�?�?r-rz�Can't sort tables for DROP; an unresolvable foreign key dependency exists between tables: %s. Please ensure that the ForeignKey and ForeignKeyConstraint objects involved in the cycle have names so that they can be dropped using DROP CONSTRAINT.c��g|] }|j�� SrBrzr|s r+r�z0SchemaDropper.visit_metadata.<locals>.<listcomp>,r}r-)�msgc�>��g|]}��|���|��SrB)�_can_drop_sequencerEs �r+r�z0SchemaDropper.visit_metadata.<locals>.<listcomp>/s=��� � � ���&�&�q�)�)� � � � � r-c��g|] \}}|�|�� Sr9rBrGs r+r�z0SchemaDropper.visit_metadata.<locals>.<listcomp>5rIr-rJT)�drop_okrM�_ignore_sequences)r�)rJr]rN�reversedrOr�CircularDependencyErrorr)r]r�warnr��sorted�cycles�args�edgesrPr rOrQr�) r(rRrJ�unsorted_tablesrS�err2rTrUr.rWrXrVs ` r+rYzSchemaDropper.visit_metadata�s8��� �;� "��[�F�F��(�/�0�0�2�2�3�3�F�* �L�L�L�L�&�L�L�L�O���/�'�#�#�#�#���� � � � �J�J���*� � � ��<�.� �� �3��y�y��(I�(I�T�[�(I�(I�(I�!J�!J�K�K�M� � � �@�?��?�?�?� � ��1��I�a�L��K��J�'��y�y��(I�(I�T�[�(I�(I�(I�!J�!J�K�K�M� � � �� �� � � � ����� ����: � � � ��(�/�/�1�1� � � �� K�J�j�J�J�J�� � !� !� �#���"� � � F� F� *� 2� 2� ��t��$��(�(�� $�/3�*2� )����� $�2�2���,�,�S�1�1�1�1�2� � F� F���$�$�S�#�*��2D�$�E�E�E�E� F�# F� F� F� F� F� F� F� F� F� F� F� F���� F� F� F� F� F� Fs+�<A5�5E �B?E�E �A"H�H�Hc� �|j�|j��|j�|��}|r|j�|��|j p&|j�|j|j|���Sr'r)r-s r+ruzSchemaDropper._can_drop_tableKs��� � �(�(���4�4�4��?�<�<�U�C�C�� � ?� �L� ,� ,�-=� >� >� >��?�"� �d�l�&<�&<� �O�U�Z�0@�'=�' �' � r-c���|j�|j��}|r|j�|��|j p1|j�|j|jj|j|���Sr'r2r4s r+�_can_drop_indexzSchemaDropper._can_drop_indexTsy���?�<�<�U�[�I�I�� � ?� �L� ,� ,�-=� >� >� >��?�"� �d�l�&<�&<� �O� �K� � �J�#� '=�' �' � r-c���|j�|��}|jjoC|jj s|j o.|j p&|j�|j|j|���Sr'r8r=s r+r�z SchemaDropper._can_drop_sequence_sx���?�<�<�X�F�F���|�.� ���0� 0� I��8I�4I� ��O�#���<�,�,��O�X�]�;K�-���  r-c���|s|�|��sdS|�|��5t|��||j��ddd��dS#1swxYwYdSr9)r�r r�rf)r(r5r�s r+rnzSchemaDropper.visit_indexks���� �t�3�3�E�:�:� � �F� � !� !�%� (� (� 5� 5� �I�e� � �U�D�O� 4� 4� 4� 5� 5� 5� 5� 5� 5� 5� 5� 5� 5� 5� 5���� 5� 5� 5� 5� 5� 5s�A�A�"ArBc�\�|s|�|��sdS|�||j|���5t|���|j��|jD],}|j�#|j|vr|�|j���- ddd��dS#1swxYwYdS)Nr[) rur rOr�rsrfr�r�rQ)r(r.r�rMr�r�s r+rezSchemaDropper.visit_tablers��� �t�3�3�E�:�:� � �F� � !� !� ���#9�"� � � 9� 9� �e� � � )� )�$�/� :� :� :� �-� 9� 9���N�.���.?�?�?��(�(���8�8�8��  9� 9� 9� 9� 9� 9� 9� 9� 9� 9� 9� 9� 9���� 9� 9� 9� 9� 9� 9s�AB!�!B%�(B%c���|jjsdS|�|��5t|���|j��ddd��dS#1swxYwYdSr9)r)r]r r�rsrfrgs r+rhz*SchemaDropper.visit_foreign_key_constraint�s����|�*� � �F� � !� !�*� -� -� E� E� �:� &� &� 3� 3�D�O� D� D� D� E� E� E� E� E� E� E� E� E� E� E� E���� E� E� E� E� E� Eric���|s|�|��sdS|�|��5t|���|j��ddd��dS#1swxYwYdSr9)r�r r�rsrf)r(r>r�s r+rkzSchemaDropper.visit_sequence�s���� �t�6�6�x�@�@� � �F� � !� !�(� +� +� A� A� �� "� "� /� /��� @� @� @� A� A� A� A� A� A� A� A� A� A� A� A���� A� A� A� A� A� Arlror�)FFrB) r=r>r?r�rYrur�r�rnrerhrkr�r�s@r+rqrq�s��������<@�������LF�LF�LF�\ � � �  �  �  �  �  �  �5�5�5�5��$�� 9�9�9�9�>E�E�E� A�A�A�A�A�A�A�Ar-rqrJ�Iterable[TableClause]�skip_fn�0Optional[Callable[[ForeignKeyConstraint], bool]]�extra_dependencies�:Optional[typing_Sequence[Tuple[TableClause, TableClause]]]r6� List[Table]c�V��|�|��fd�}nd}d�t|||d���D��S)a Sort a collection of :class:`_schema.Table` objects based on dependency. This is a dependency-ordered sort which will emit :class:`_schema.Table` objects such that they will follow their dependent :class:`_schema.Table` objects. Tables are dependent on another based on the presence of :class:`_schema.ForeignKeyConstraint` objects as well as explicit dependencies added by :meth:`_schema.Table.add_is_dependent_on`. .. warning:: The :func:`._schema.sort_tables` function cannot by itself accommodate automatic resolution of dependency cycles between tables, which are usually caused by mutually dependent foreign key constraints. When these cycles are detected, the foreign keys of these tables are omitted from consideration in the sort. A warning is emitted when this condition occurs, which will be an exception raise in a future release. Tables which are not part of the cycle will still be returned in dependency order. To resolve these cycles, the :paramref:`_schema.ForeignKeyConstraint.use_alter` parameter may be applied to those constraints which create a cycle. Alternatively, the :func:`_schema.sort_tables_and_constraints` function will automatically return foreign key constraints in a separate collection when cycles are detected so that they may be applied to a schema separately. .. versionchanged:: 1.3.17 - a warning is emitted when :func:`_schema.sort_tables` cannot perform a proper sort due to cyclical dependencies. This will be an exception in a future release. Additionally, the sort will continue to return other tables not involved in the cycle in dependency order which was not the case previously. :param tables: a sequence of :class:`_schema.Table` objects. :param skip_fn: optional callable which will be passed a :class:`_schema.ForeignKeyConstraint` object; if it returns True, this constraint will not be considered as a dependency. Note this is **different** from the same parameter in :func:`.sort_tables_and_constraints`, which is instead passed the owning :class:`_schema.ForeignKeyConstraint` object. :param extra_dependencies: a sequence of 2-tuples of tables which will also be considered as dependent on each other. .. seealso:: :func:`.sort_tables_and_constraints` :attr:`_schema.MetaData.sorted_tables` - uses this function to sort Nc�8��|jD]}�|��rdS�dSro)�elements)rX�fk� fixed_skip_fns �r+�_skip_fnzsort_tables.<locals>._skip_fn�s9����l� � �� �=��$�$� ��4�4� ��tr-c��g|] \}}|�|�� Sr9rB)r�rCrWs r+r�zsort_tables.<locals>.<listcomp>�s-�� � � � �Q�� �=� � �=�=r-T)rxr��_warn_for_cycles)rO)rJr�r�r�r�s @r+� sort_tablesr��sr���B��� � � � � � � ��� � �4� ��1�!�  � � � � � � r-Fc ��� ��t��}t��}|�|�|��t��� |D]���jD]j}|jdur� �|���!�r%�|��}|dur� �|���H|j}|�ur|�|�f���k|��fd��jD������ ttj |� |��|����} �n #tj $r�} |rGtjdd�t!d�| jD�������d���| jD]g} | |vra| d��| jvr��fd ��jD��} � �| ��| D]$}|j}|�ur|�|�f���%�httj |� |��|����} Yd} ~ nd} ~ wwxYw� fd �| D��dt� ��fgzS) a�Sort a collection of :class:`_schema.Table` / :class:`_schema.ForeignKeyConstraint` objects. This is a dependency-ordered sort which will emit tuples of ``(Table, [ForeignKeyConstraint, ...])`` such that each :class:`_schema.Table` follows its dependent :class:`_schema.Table` objects. Remaining :class:`_schema.ForeignKeyConstraint` objects that are separate due to dependency rules not satisfied by the sort are emitted afterwards as ``(None, [ForeignKeyConstraint ...])``. Tables are dependent on another based on the presence of :class:`_schema.ForeignKeyConstraint` objects, explicit dependencies added by :meth:`_schema.Table.add_is_dependent_on`, as well as dependencies stated here using the :paramref:`~.sort_tables_and_constraints.skip_fn` and/or :paramref:`~.sort_tables_and_constraints.extra_dependencies` parameters. :param tables: a sequence of :class:`_schema.Table` objects. :param filter_fn: optional callable which will be passed a :class:`_schema.ForeignKeyConstraint` object, and returns a value based on whether this constraint should definitely be included or excluded as an inline constraint, or neither. If it returns False, the constraint will definitely be included as a dependency that cannot be subject to ALTER; if True, it will **only** be included as an ALTER result at the end. Returning None means the constraint is included in the table-based result unless it is detected as part of a dependency cycle. :param extra_dependencies: a sequence of 2-tuples of tables which will also be considered as dependent on each other. .. seealso:: :func:`.sort_tables` NTc3� �K�|]}|�fV�� dSr9rB)r��parentr.s �r+� <genexpr>z.sort_tables_and_constraints.<locals>.<genexpr>>s8�����" �" � &�V�U�O�" �" �" �" �" �" r-zLCannot correctly sort tables; there are unresolvable cycles between tables "r�c3�$K�|] }|jV�� dSr9rzr|s r+r�z.sort_tables_and_constraints.<locals>.<genexpr>Qs$����#C�#C�1�A�J�#C�#C�#C�#C�#C�#Cr-z�", which is usually caused by mutually dependent foreign key constraints. Foreign key constraints involving these tables will not be considered; this warning may raise an error in a future release.r c�2��g|]}�� �|��du�|��Sr�rB)r�rXrxs �r+r�z/sort_tables_and_constraints.<locals>.<listcomp>Xs;������� �(�I�I�c�N�N�%�,G�,G��,G�,G�,Gr-c�H��g|]}||j����f��SrB)�foreign_key_constraints� difference)r�r.�remaining_fkcss �r+r�z/sort_tables_and_constraints.<locals>.<listcomp>is?��� � � � � ��-�8�8��H�H�I� � � r-)r^�updater�� use_alter�add�referred_table�_extra_dependenciesr]r�sort�unionrr�rr�r�r�r�r��discard)rJrxr�r��fixed_dependencies�mutable_dependenciesrX�filtered� dependent_on�candidate_sort�err�edge� can_remover�r.s ` @@r+rOrO�s"�����\�����5�5���%��!�!�"4�5�5�5��U�U�N�� � ���0� @� @�C��}��$�$��"�"�3�'�'�'��� �$�9�S�>�>���t�#�#�"�&�&�s�+�+�+���-�L��5�(�(�$�(�(�,��)>�?�?�?���!�!�" �" �" �" �*/�*C�" �" �" � � � � �% �� � �"�(�(�)=�>�>�� � � � ���� � &� � � � � � �I�I� �9�9�V�#C�#C�� �#C�#C�#C�C�C�D�D�D�D� G� � � ��I� L� L�D��+�+�+��Q����� �*�*������$�<���� � �%�%�j�1�1�1�%�L�L�C�#&�#5�L�#�5�0�0�,�4�4�l�E�5J�K�K�K���� � �"�(�(�)=�>�>�� � � � �����������3 ����@ � � � �#� � � � ��^�$�$� %�&� '�'s�#5D�H �)C-H�H rR)rJr�r�r�r�r�r6r�)NNF)Sr@� __future__rr �typingrrrrrr �typing_Sequencer �r �baser rrr�rrrr� util.typingrr� TYPE_CHECKINGrErrrr(rrrr� selectabler� engine.baser�engine.interfacesr r!r"r#r%rD� NamedTuplerT�DDLRolerb� DDLElementr}r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�rrrrrrqr�rOrBr-r+�<module>r�sg���� #�"�"�"�"�"����� � � � �������������������������������.�.�.�.�.�.�������������������������������#�#�#�#�#�#�������������������"�"�"�"�"�"������� ��;�"�"�"�"�"�"�%�%�%�%�%�%�'�'�'�'�'�'�"�"�"�"�"�"�,�,�,�,�,�,�"�"�"�"�"�"� � � � � � �������'�'�'�'�'�'�(�(�(�(�(�(�.�.�.�.�.�.�5�5�5�5�5�5�+�+�+�+�+�+�:�:�:�:�:�:�$�$�$�$�$�]�$�$�$�@ � � � � �H� � � �%�%�%�%�%�F� �%�%�%�Pw�w�w�w�w�5�=�*�n�w�w�w�t"� �H�T �T �T �T �T � �T �T �T �n�����*����@+�+�+�+�+�/�+�+�+� #�#�#�#�#��#�#�#� D�D�D�D�D�;�D�D�D�*���������.O�O�O�O�O�+�O�O�O�D!�!�!�!�!� �!�!�!������~���� r�r�r�r�r�>�r�r�r�j7�7�7�7�7� �7�7�7�(?�?�?�?�?�[�?�?�?�7�7�7�7�7�9�7�7�7�?�?�?�?�?�+�?�?�?�&7�7�7�7�7� �7�7�7�&  �  �  �  �  �K�  �  �  �  �  �  �  �  �Y�  �  �  �)�)�)�)�)�o�)�)�)� *�*�*�*�*��*�*�*�*�*�*�*�*��*�*�*� +�+�+�+�+��+�+�+� .�.�.�.�.�?�.�.�.� /�/�/�/�/�O�/�/�/� $� $� $� $� $�M� $� $� $�  �  �  �  �  �-�  �  �  �  �  �  �  �  � �  �  �  �W=�W=�W=�W=�W=�)�W=�W=�W=�tiA�iA�iA�iA�iA�%�iA�iA�iA�\AE� � W�W�W�W�W�vGL�t'�t'�t'�t'�t'�t'r-
Memory