����JFIFXX�����    $.' ",#(7),01444'9=82<.342  2!!22222222222222222222222222222222222222222222222222����"��4�� ���,�PG"Z_�4�˷����kjز�Z�,F+��_z�,�© �����zh6�٨�ic�fu���#ډb���_�N�?��wQ���5-�~�I���8����TK<5o�Iv-�����k�_U_�����~b�M��d����Ӝ�U�Hh��?]��E�w��Q���k�{��_}qFW7HTՑ��Y��F�?_�'ϔ��_�Ջt��=||I ��6�έ"�����D���/[�k�9���Y�8ds|\���Ҿp6�Ҵ���]��.����6�z<�v��@]�i%��$j��~�g��J>��no����pM[me�i$[����s�o�ᘨ�˸ nɜG-�ĨU�ycP�3.DB�li�;��hj���x7Z^�N�h������N3u{�:j�x�힞��#M&��jL P@_���� P��&��o8������9�����@Sz6�t7#O�ߋ �s}Yf�T���lmr����Z)'N��k�۞p����w\�Tȯ?�8`�O��i{wﭹW�[�r�� ��Q4F�׊���3m&L�=��h3����z~��#�\�l :�F,j@�� ʱ�wQT����8�"kJO���6�֚l����}���R�>ډK���]��y����&����p�}b��;N�1�m�r$�|��7�>e�@B�TM*-iH��g�D�)� E�m�|�ؘbҗ�a��Ҿ����t4���o���G��*oCN�rP���Q��@z,|?W[0�����:�n,jWiE��W��$~/�hp\��?��{(�0���+�Y8rΟ�+����>S-S����VN;�}�s?.����� w�9��˟<���Mq4�Wv'��{)0�1mB��V����W[�����8�/<� �%���wT^�5���b��)iM� pg�N�&ݝ��VO~�q���u���9� ����!��J27����$O-���! �:�%H��� ـ����y�ΠM=t{!S�� oK8������t<����è:a������[�����ա�H���~��w��Qz`�po�^ ����Q��n� �,uu�C�$ ^���,������8�#��:�6��e�|~���!�3�3.�\0��q��o�4`.|� ����y�Q�`~;�d�ׯ,��O�Zw�������`73�v�܋�<���Ȏ�� ـ4k��5�K�a�u�=9Yd��$>x�A�&�� j0� ���vF��� Y�|�y��� ~�6�@c��1vOp�Ig����4��l�OD���L����� R���c���j�_�uX6��3?nk��Wy�f;^*B� ��@�~a�`��Eu������+���6�L��.ü>��}y���}_�O�6�͐�:�YrG�X��kG�����l^w���~㒶sy��Iu�!� W ��X��N�7BV��O��!X�2����wvG�R�f�T#�����t�/?���%8�^�W�aT��G�cL�M���I��(J����1~�8�?aT ���]����AS�E��(��*E}� 2��#I/�׍qz��^t�̔���b�Yz4x���t�){ OH��+(E��A&�N�������XT��o��"�XC��'���)}�J�z�p� ��~5�}�^����+�6����w��c��Q�|Lp�d�H��}�(�.|����k��c4^�"�����Z?ȕ ��a<�L�!039C� �Eu�C�F�Ew�ç ;�n?�*o���B�8�bʝ���'#Rqf���M}7����]����s2tcS{�\icTx;�\��7K���P���ʇ Z O-��~��c>"��?�������P��E��O�8��@�8��G��Q�g�a�Վ���󁶠�䧘��_%#r�>�1�z�a��eb��qcPѵ��n���#L��� =��׀t� L�7�`��V���A{�C:�g���e@�w1 Xp3�c3�ġ����p��M"'-�@n4���fG��B3�DJ�8[Jo�ߐ���gK)ƛ��$���� ���8�3�����+���� �����6�ʻ���� ���S�kI�*KZlT _`���?��K����QK�d����B`�s}�>���`��*�>��,*@J�d�oF*����弝��O}�k��s��]��y�ߘ��c1G�V���<=�7��7����6�q�PT��tXԀ�!9*4�4Tހ3XΛex�46���Y��D ����� �BdemDa����\�_l,��G�/���֌7���Y�](�xTt^%�GE�����4�}bT���ڹ�����;Y)���B�Q��u��>J/J �⮶.�XԄ��j�ݳ�+E��d ��r�5�_D�1 ��o�� �B�x�΢�#���<��W�����8���R6�@g�M�.��� dr�D��>(otU��@x=��~v���2� ӣ�d�oBd��3�eO�6�㣷�����ݜ6��6Y��Qz`��S��{���\P�~z m5{J/L��1������<�e�ͅPu�b�]�ϔ���'������f�b� Zpw��c`"��i���BD@:)ִ�:�]��hv�E�w���T�l��P���"Ju�}��وV J��G6��. J/�Qgl߭�e�����@�z�Zev2u�)]կ�����7x���s�M�-<ɯ�c��r�v�����@��$�ޮ}lk���a���'����>x��O\�ZFu>�����ck#��&:��`�$�ai�>2Δ����l���oF[h��lE�ܺ�Πk:)���`�� $[6�����9�����kOw�\|���8}������ބ:��񶐕��I�A1/�=�2[�,�!��.}gN#�u����b��� ~��݊��}34q����d�E��Lc��$��"�[q�U�硬g^��%B �z���r�pJ�ru%v\h1Y�ne`ǥ:g���pQM~�^�Xi� ��`S�:V29.�P���V�?B�k�� AEvw%�_�9C�Q����wKekPؠ�\�;Io d�{ ߞo�c1eP����\� `����E=���@K<�Y���eڼ�J���w����{av�F�'�M�@/J��+9p���|]�����Iw &`��8���&M�hg��[�{��Xj��%��Ӓ�$��(����ʹN���<>�I���RY���K2�NPlL�ɀ)��&e����B+ь����( � �JTx���_?EZ� }@ 6�U���뙢ط�z��dWI�n` D����噥�[��uV��"�G&Ú����2g�}&m��?ċ�"����Om#��������� ��{�ON��"S�X��Ne��ysQ���@Fn��Vg���dX�~nj�]J�<�K]:��FW��b�������62�=��5f����JKw��bf�X�55��~J �%^����:�-�QIE��P��v�nZum� z � ~ə ���� ���ة����;�f��\v���g�8�1��f24;�V���ǔ�)����9���1\��c��v�/'Ƞ�w�������$�4�R-��t���� e�6�/�ġ �̕Ecy�J���u�B���<�W�ַ~�w[B1L۲�-JS΂�{���΃������A��20�c#��@ 0!1@AP"#2Q`$3V�%45a6�FRUq��� ����^7ׅ,$n�������+��F�`��2X'��0vM��p�L=������5��8������u�p~���.�`r�����\���O��,ư�0oS ��_�M�����l���4�kv\JSd���x���SW�<��Ae�IX����������$I���w�:S���y���›R��9�Q[���,�5�;�@]�%���u�@ *ro�lbI �� ��+���%m:�͇ZV�����u�̉����θau<�fc�.����{�4Ա� �Q����*�Sm��8\ujqs]{kN���)qO�y�_*dJ�b�7���yQqI&9�ԌK!�M}�R�;������S�T���1���i[U�ɵz�]��U)V�S6���3$K{�ߊ<�(� E]Զ[ǼENg�����'�\?#)Dkf��J���o��v���'�%ƞ�&K�u�!��b�35LX�Ϸ��63$K�a�;�9>,R��W��3�3� d�JeTYE.Mϧ��-�o�j3+y��y^�c�������VO�9NV\nd�1 ��!͕_)a�v;����թ�M�lWR1��)El��P;��yوÏ�u 3�k�5Pr6<�⒲l�!˞*��u־�n�!�l:����UNW ��%��Chx8vL'��X�@��*��)���̮��ˍ��� ���D-M�+J�U�kvK����+�x8��cY������?�Ԡ��~3mo��|�u@[XeY�C�\Kp�x8�oC�C�&����N�~3-H���� ��MX�s�u<`���~"WL��$8ξ��3���a�)|:@�m�\���^�`�@ҷ)�5p+��6���p�%i)P M���ngc�����#0Aruz���RL+xSS?���ʮ}()#�t��mˇ!��0}}y����<�e� �-ή�Ԩ��X������ MF���ԙ~l L.3���}�V뽺�v�����멬��Nl�)�2����^�Iq��a��M��qG��T�����c3#������3U�Ǎ���}��לS�|qa��ڃ�+���-��2�f����/��bz��ڐ�� �ݼ[2�ç����k�X�2�* �Z�d���J�G����M*9W���s{��w���T��x��y,�in�O�v��]���n����P�$�JB@=4�OTI�n��e�22a\����q�d���%�$��(���:���: /*�K[PR�fr\nڙdN���F�n�$�4�[�� U�zƶ����� �mʋ���,�ao�u 3�z� �x��Kn����\[��VFmbE;�_U��&V�Gg�]L�۪&#n%�$ɯ�dG���D�TI=�%+AB�Ru#��b4�1�»x�cs�YzڙJG��f��Il��d�eF'T� iA��T���uC�$����Y��H?����[!G`}���ͪ� �纤Hv\������j�Ex�K���!���OiƸ�Yj�+u-<���'q����uN�*�r\��+�]���<�wOZ.fp�ێ��,-*)V?j-kÊ#�`�r��dV����(�ݽBk�����G�ƛk�QmUڗe��Z���f}|����8�8��a���i��3'J�����~G_�^���d�8w������ R�`(�~�.��u���l�s+g�bv���W���lGc}��u���afE~1�Ue������Z�0�8�=e�� f@/�jqEKQQ�J��oN��J���W5~M>$6�Lt�;$ʳ{���^��6�{����v6���ķܰg�V�cnn �~z�x�«�,2�u�?cE+Ș�H؎�%�Za�)���X>uW�Tz�Nyo����s���FQƤ��$��*�&�LLXL)�1�" L��eO��ɟ�9=���:t��Z���c��Ž���Y?�ӭV�wv�~,Y��r�ۗ�|�y��GaF�����C�����.�+� ���v1���fήJ�����]�S��T��B��n5sW}y�$��~z�'�c ��8 ��� ,! �p��VN�S��N�N�q��y8z˱�A��4��*��'������2n<�s���^ǧ˭P�Jޮɏ�U�G�L�J�*#��<�V��t7�8����TĜ>��i}K%,���)[��z�21z ?�N�i�n1?T�I�R#��m-�����������������1����lA�`��fT5+��ܐ�c�q՝��ʐ��,���3�f2U�եmab��#ŠdQ�y>\��)�SLY����w#��.���ʑ�f��� ,"+�w�~�N�'�c�O�3F�������N<���)j��&��,-� �љ���֊�_�zS���TǦ����w�>��?�������n��U仆�V���e�����0���$�C�d���rP �m�׈e�Xm�Vu� �L��.�bֹ��� �[Դaզ���*��\y�8�Է:�Ez\�0�Kq�C b��̘��cө���Q��=0Y��s�N��S.���3.���O�o:���#���v7�[#߫ ��5�܎�L���Er4���9n��COWlG�^��0k�%<���ZB���aB_���������'=��{i�v�l�$�uC���mƎҝ{�c㱼�y]���W�i ��ߧc��m�H� m�"�"�����;Y�ߝ�Z�Ǔ�����:S#��|}�y�,/k�Ld� TA�(�AI$+I3��;Y*���Z��}|��ӧO��d�v��..#:n��f>�>���ȶI�TX��� 8��y����"d�R�|�)0���=���n4��6ⲑ�+��r<�O�܂~zh�z����7ܓ�HH�Ga롏���nCo�>������a ���~]���R���̲c?�6(�q�;5%� |�uj�~z8R=X��I�V=�|{v�Gj\gc��q����z�؋%M�ߍ����1y��#��@f^���^�>N�����#x#۹��6�Y~�?�dfPO��{��P�4��V��u1E1J �*|���%���JN��`eWu�zk M6���q t[�� ��g�G���v��WIG��u_ft����5�j�"�Y�:T��ɐ���*�;� e5���4����q$C��2d�}���� _S�L#m�Yp��O�.�C�;��c����Hi#֩%+) �Ӎ��ƲV���SYź��g |���tj��3�8���r|���V��1#;.SQ�A[���S������#���`n�+���$��$I �P\[�@�s��(�ED�z���P��])8�G#��0B��[ى��X�II�q<��9�~[Z멜�Z�⊔IWU&A>�P~�#��dp<�?����7���c��'~���5 ��+$���lx@�M�dm��n<=e�dyX��?{�|Aef ,|n3�<~z�ƃ�uۧ�����P��Y,�ӥQ�*g�#먙R�\���;T��i,��[9Qi歉����c>]9�� ��"�c��P�� �Md?٥��If�ت�u��k��/����F��9�c*9��Ǎ:�ØF���z�n*�@|I�ށ9����N3{'��[�'ͬ�Ҳ4��#}��!�V� Fu��,�,mTIk���v C�7v���B�6k�T9��1�*l� '~��ƞF��lU��'�M ����][ΩũJ_�{�i�I�n��$���L�� j��O�dx�����kza۪��#�E��Cl����x˘�o�����V���ɞ�ljr��)�/,�߬h�L��#��^��L�ф�,íMƁe�̩�NB�L�����iL����q�}��(��q��6IçJ$�W�E$��:������=#����(�K�B����zђ <��K(�N�۫K�w��^O{!����)�H���>x�������lx�?>Պ�+�>�W���,Ly!_�D���Ō�l���Q�!�[ �S����J��1��Ɛ�Y}��b,+�Lo�x�ɓ)����=�y�oh�@�꥟/��I��ѭ=��P�y9��� �ۍYӘ�e+�p�Jnϱ?V\SO%�(�t� ���=?MR�[Ș�����d�/ ��n�l��B�7j� ��!�;ӥ�/�[-���A�>�dN�sLj ��,ɪv��=1c�.SQ�O3�U���ƀ�ܽ�E����������̻��9G�ϷD�7(�}��Ävӌ\�y�_0[w ���<΍>����a_��[0+�L��F.�޺��f�>oN�T����q;���y\��bՃ��y�jH�<|q-eɏ�_?_9+P���Hp$�����[ux�K w�Mw��N�ی'$Y2�=��q���KB��P��~������Yul:�[<����F1�2�O���5=d����]Y�sw:���Ϯ���E��j,_Q��X��z`H1,#II ��d�wr��P˂@�ZJV����y$�\y�{}��^~���[:N����ߌ�U�������O��d�����ؾe��${p>G��3c���Ė�lʌ�� ת��[��`ϱ�-W����dg�I��ig2��� ��}s ��ؤ(%#sS@���~���3�X�nRG�~\jc3�v��ӍL��M[JB�T��s3}��j�Nʖ��W����;7��ç?=X�F=-�=����q�ߚ���#���='�c��7���ڑW�I(O+=:uxq�������������e2�zi+�kuG�R��������0�&e�n���iT^J����~\jy���p'dtG��s����O��3����9* �b#Ɋ�� p������[Bws�T�>d4�ۧs���nv�n���U���_�~,�v����ƜJ1��s�� �QIz��)�(lv8M���U=�;����56��G���s#�K���MP�=��LvyGd��}�VwWBF�'�à �?MH�U�g2�� ����!�p�7Q��j��ڴ����=��j�u��� Jn�A s���uM������e��Ɔ�Ҕ�!)'��8Ϣ�ٔ��ޝ(��Vp���צ֖d=�IC�J�Ǡ{q������kԭ�߸���i��@K����u�|�p=..�*+����x�����z[Aqġ#s2a�Ɗ���RR�)*HRsi�~�a &f��M��P����-K�L@��Z��Xy�'x�{}��Zm+���:�)�) IJ�-i�u���� ���ܒH��'�L(7�y�GӜq���� j��� 6ߌg1�g�o���,kر���tY�?W,���p���e���f�OQS��!K�۟cҒA�|ս�j�>��=⬒��˧L[�� �߿2JaB~R��u�:��Q�] �0H~���]�7��Ƽ�I���(}��cq '�ήET���q�?f�ab���ӥvr� �)o��-Q��_'����ᴎo��K������;��V���o��%���~OK ����*��b�f:���-ťIR��`B�5!RB@���ï�� �u �̯e\�_U�_������� g�ES��3�������QT��a����x����U<~�c?�*�#]�MW,[8O�a�x��]�1bC|踤�P��lw5V%�)�{t�<��d��5���0i�XSU��m:��Z�┵�i�"��1�^B�-��P�hJ��&)O��*�D��c�W��vM��)����}���P��ܗ-q����\mmζZ-l@�}��a��E�6��F�@��&Sg@���ݚ�M����� ȹ 4����#p�\H����dYDo�H���"��\��..R�B�H�z_�/5˘����6��KhJR��P�mƶi�m���3�,#c�co��q�a)*Pt����R�m�k�7x�D�E�\Y�閣_X�<���~�)���c[[�BP����6�Yq���S��0����%_����;��Àv�~�| VS؇ ��'O0��F0��\���U�-�d@�����7�SJ*z��3n��y��P����O���������m�~�P�3|Y��ʉr#�C�<�G~�.,! ���bqx���h~0=��!ǫ�jy����l�O,�[B��~��|9��ٱ����Xly�#�i�B��g%�S��������tˋ���e���ې��\[d�t)��.+u�|1 ������#�~Oj����hS�%��i.�~X���I�H�m��0n���c�1uE�q��cF�RF�o���7� �O�ꮧ� ���ۛ{��ʛi5�rw?׌#Qn�TW��~?y$��m\�\o����%W� ?=>S�N@�� �Ʈ���R����N�)�r"C�:��:����� �����#��qb��Y�. �6[��2K����2u�Ǧ�HYR��Q�MV��� �G�$��Q+.>�����nNH��q�^��� ����q��mM��V��D�+�-�#*�U�̒ ���p욳��u:�������IB���m���PV@O���r[b= �� ��1U�E��_Nm�yKbN�O���U�}�the�`�|6֮P>�\2�P�V���I�D�i�P�O;�9�r�mAHG�W�S]��J*�_�G��+kP�2����Ka�Z���H�'K�x�W�MZ%�O�YD�Rc+o��?�q��Ghm��d�S�oh�\�D�|:W������UA�Qc yT�q������~^�H��/��#p�CZ���T�I�1�ӏT����4��"�ČZ�����}��`w�#�*,ʹ�� ��0�i��課�Om�*�da��^gJ݅{���l�e9uF#T�ֲ��̲�ٞC"�q���ߍ ոޑ�o#�XZTp����@ o�8��(jd��xw�]�,f���`~�|,s��^����f�1���t��|��m�򸄭/ctr��5s��7�9Q�4�H1꠲BB@l9@���C�����+�wp�xu�£Yc�9��?`@#�o�mH�s2��)�=��2�.�l����jg�9$�Y�S�%*L������R�Y������7Z���,*=�䷘$�������arm�o�ϰ���UW.|�r�uf����IGw�t����Zwo��~5 ��YյhO+=8fF�)�W�7�L9lM�̘·Y���֘YLf�큹�pRF���99.A �"wz��=E\Z���'a� 2��Ǚ�#;�'}�G���*��l��^"q��+2FQ� hj��kŦ��${���ޮ-�T�٭cf�|�3#~�RJ����t��$b�(R��(����r���dx� >U b�&9,>���%E\� Ά�e�$��'�q't��*�א���ެ�b��-|d���SB�O�O��$�R+�H�)�܎�K��1m`;�J�2�Y~9��O�g8=vqD`K[�F)k�[���1m޼c��n���]s�k�z$@��)!I �x՝"v��9=�ZA=`Ɠi �:�E��)`7��vI��}d�YI�_ �o�:ob���o ���3Q��&D&�2=�� �Ά��;>�h����y.*ⅥS������Ӭ�+q&����j|UƧ����}���J0��WW< ۋS�)jQR�j���Ư��rN)�Gű�4Ѷ(�S)Ǣ�8��i��W52���No˓� ۍ%�5brOn�L�;�n��\G����=�^U�dI���8$�&���h��'���+�(������cȁ߫k�l��S^���cƗjԌE�ꭔ��gF���Ȓ��@���}O���*;e�v�WV���YJ\�]X'5��ղ�k�F��b 6R�o՜m��i N�i����>J����?��lPm�U��}>_Z&�KK��q�r��I�D�Չ~�q�3fL�:S�e>���E���-G���{L�6p�e,8��������QI��h��a�Xa��U�A'���ʂ���s�+טIjP�-��y�8ۈZ?J$��W�P� ��R�s�]��|�l(�ԓ��sƊi��o(��S0��Y� 8�T97.�����WiL��c�~�dxc�E|�2!�X�K�Ƙਫ਼�$((�6�~|d9u+�qd�^3�89��Y�6L�.I�����?���iI�q���9�)O/뚅����O���X��X�V��ZF[�یgQ�L��K1���RҖr@v�#��X�l��F���Нy�S�8�7�kF!A��sM���^rkp�jP�DyS$N���q��nxҍ!U�f�!eh�i�2�m���`�Y�I�9r�6� �TF���C}/�y�^���Η���5d�'��9A-��J��>{�_l+�`��A���[�'��յ�ϛ#w:݅�%��X�}�&�PSt�Q�"�-��\縵�/����$Ɨh�Xb�*�y��BS����;W�ջ_mc�����vt?2}1�;qS�d�d~u:2k5�2�R�~�z+|HE!)�Ǟl��7`��0�<�,�2*���Hl-��x�^����'_TV�gZA�'j� ^�2Ϊ��N7t�����?w�� �x1��f��Iz�C-Ȗ��K�^q�;���-W�DvT�7��8�Z�������� hK�(P:��Q- �8�n�Z���܃e貾�<�1�YT<�,�����"�6{/ �?�͟��|1�:�#g��W�>$����d��J��d�B��=��jf[��%rE^��il:��B���x���Sּ�1հ��,�=��*�7 fcG��#q� �eh?��2�7�����,�!7x��6�n�LC�4x��},Geǝ�tC.��vS �F�43��zz\��;QYC,6����~;RYS/6���|2���5���v��T��i����������mlv��������&� �nRh^ejR�LG�f���? �ۉҬܦƩ��|��Ȱ����>3����!v��i�ʯ�>�v��オ�X3e���_1z�Kȗ\<������!�8���V��]��?b�k41�Re��T�q��mz��TiOʦ�Z��Xq���L������q"+���2ۨ��8}�&N7XU7Ap�d�X��~�׿��&4e�o�F��� �H����O���č�c�� 懴�6���͉��+)��v;j��ݷ�� �UV�� i��� j���Y9GdÒJ1��詞�����V?h��l����l�cGs�ځ�������y�Ac�����\V3�? �� ܙg�>qH�S,�E�W�[�㺨�uch�⍸�O�}���a��>�q�6�n6����N6�q������N ! 1AQaq�0@����"2BRb�#Pr���3C`��Scst���$4D���%Td�� ?���N����a��3��m���C���w��������xA�m�q�m���m������$����4n淿t'��C"w��zU=D�\R+w�p+Y�T�&�պ@��ƃ��3ޯ?�Aﶂ��aŘ���@-�����Q�=���9D��ռ�ѻ@��M�V��P��܅�G5�f�Y<�u=,EC)�<�Fy'�"�&�չ�X~f��l�KԆV��?�� �W�N����=(� �;���{�r����ٌ�Y���h{�١������jW����P���Tc�����X�K�r��}���w�R��%��?���E��m�� �Y�q|����\lEE4���r���}�lsI�Y������f�$�=�d�yO����p�����yBj8jU�o�/�S��?�U��*������ˍ�0������u�q�m [�?f����a�� )Q�>����6#������� ?����0UQ����,IX���(6ڵ[�DI�MNލ�c&���υ�j\��X�R|,4��� j������T�hA�e��^���d���b<����n�� �즇�=!���3�^�`j�h�ȓr��jẕ�c�,ٞX����-����a�ﶔ���#�$��]w�O��Ӫ�1y%��L�Y<�wg#�ǝ�̗`�x�xa�t�w��»1���o7o5��>�m뭛C���Uƃߜ}�C���y1Xνm�F8�jI���]����H���ۺиE@I�i;r�8ӭ����V�F�Շ| ��&?�3|x�B�MuS�Ge�=Ӕ�#BE5G�����Y!z��_e��q�р/W>|-�Ci߇�t�1ޯќd�R3�u��g�=0 5��[?�#͏��q�cf���H��{ ?u�=?�?ǯ���}Z��z���hmΔ�BFTW�����<�q�(v� ��!��z���iW]*�J�V�z��gX֧A�q�&��/w���u�gYӘa���; �i=����g:��?2�dž6�ى�k�4�>�Pxs����}������G�9��3 ���)gG�R<>r h�$��'nc�h�P��Bj��J�ҧH� -��N1���N��?��~��}-q!=��_2hc�M��l�vY%UE�@|�v����M2�.Y[|y�"Eï��K�ZF,�ɯ?,q�?v�M 80jx�"�;�9vk�����+ ֧�� �ȺU��?�%�vcV��mA�6��Qg^M����A}�3�nl� QRN�l8�kkn�'�����(��M�7m9و�q���%ޟ���*h$Zk"��$�9��: �?U8�Sl��,,|ɒ��xH(ѷ����Gn�/Q�4�P��G�%��Ա8�N��!� �&�7�;���eKM7�4��9R/%����l�c>�x;������>��C�:�����t��h?aKX�bhe�ᜋ^�$�Iհ �hr7%F$�E��Fd���t��5���+�(M6�t����Ü�UU|zW�=a�Ts�Tg������dqP�Q����b'�m���1{|Y����X�N��b �P~��F^F:����k6�"�j!�� �I�r�`��1&�-$�Bevk:y���#yw��I0��x��=D�4��tU���P�ZH��ڠ底taP��6����b>�xa����Q�#� WeF��ŮNj�p�J* mQ�N����*I�-*�ȩ�F�g�3 �5��V�ʊ�ɮ�a��5F���O@{���NX��?����H�]3��1�Ri_u��������ѕ�� ����0��� F��~��:60�p�͈�S��qX#a�5>���`�o&+�<2�D����: �������ڝ�$�nP���*)�N�|y�Ej�F�5ټ�e���ihy�Z �>���k�bH�a�v��h�-#���!�Po=@k̆IEN��@��}Ll?j�O������߭�ʞ���Q|A07x���wt!xf���I2?Z��<ץ�T���cU�j��]��陎Ltl �}5�ϓ��$�,��O�mˊ�;�@O��jE��j(�ا,��LX���LO���Ц�90�O �.����a��nA���7������j4 ��W��_ٓ���zW�jcB������y՗+EM�)d���N�g6�y1_x��p�$Lv:��9�"z��p���ʙ$��^��JԼ*�ϭ����o���=x�Lj�6�J��u82�A�H�3$�ٕ@�=Vv�]�'�qEz�;I˼��)��=��ɯ���x �/�W(V���p�����$ �m�������u�����񶤑Oqˎ�T����r��㠚x�sr�GC��byp�G��1ߠ�w e�8�$⿄����/�M{*}��W�]˷.�CK\�ުx���/$�WPw���r� |i���&�}�{�X� �>��$-��l���?-z���g����lΆ���(F���h�vS*���b���߲ڡn,|)mrH[���a�3�ר�[1��3o_�U�3�TC�$��(�=�)0�kgP���� ��u�^=��4 �WYCҸ:��vQ�ר�X�à��tk�m,�t*��^�,�}D*� �"(�I��9R����>`�`��[~Q]�#af��i6l��8���6�:,s�s�N6�j"�A4���IuQ��6E,�GnH��zS�HO�uk�5$�I�4��ؤ�Q9�@��C����wp�BGv[]�u�Ov���0I4���\��y�����Q�Ѹ��~>Z��8�T��a��q�ޣ;z��a���/��S��I:�ܫ_�|������>=Z����8:�S��U�I�J��"IY���8%b8���H��:�QO�6�;7�I�S��J��ҌAά3��>c���E+&jf$eC+�z�;��V����� �r���ʺ������my�e���aQ�f&��6�ND��.:��NT�vm�<- u���ǝ\MvZY�N�NT��-A�>jr!S��n�O 1�3�Ns�%�3D@���`������ܟ 1�^c<���� �a�ɽ�̲�Xë#�w�|y�cW�=�9I*H8�p�^(4���՗�k��arOcW�tO�\�ƍR��8����'�K���I�Q�����?5�>[�}��yU�ײ -h��=��% q�ThG�2�)���"ו3]�!kB��*p�FDl�A���,�eEi�H�f�Ps�����5�H:�Փ~�H�0Dت�D�I����h�F3�������c��2���E��9�H��5�zԑ�ʚ�i�X�=:m�xg�hd(�v����׊�9iS��O��d@0ڽ���:�p�5�h-��t�&���X�q�ӕ,��ie�|���7A�2���O%P��E��htj��Y1��w�Ѓ!����  ���� ࢽ��My�7�\�a�@�ţ�J �4�Ȼ�F�@o�̒?4�wx��)��]�P��~�����u�����5�����7X ��9��^ܩ�U;Iꭆ 5 �������eK2�7(�{|��Y׎ �V��\"���Z�1� Z�����}��(�Ǝ"�1S���_�vE30>���p;� ΝD��%x�W�?W?v����o�^V�i�d��r[��/&>�~`�9Wh��y�;���R��� ;;ɮT��?����r$�g1�K����A��C��c��K��l:�'��3 c�ﳯ*"t8�~l��)���m��+U,z��`(�>yJ�?����h>��]��v��ЍG*�{`��;y]��I�T� ;c��NU�fo¾h���/$���|NS���1�S�"�H��V���T���4��uhǜ�]�v;���5�͠x��'C\�SBpl���h}�N����� A�Bx���%��ޭ�l��/����T��w�ʽ]D�=����K���ž�r㻠l4�S�O?=�k �M:� ��c�C�a�#ha���)�ѐxc�s���gP�iG��{+���x���Q���I= �� z��ԫ+ �8"�k�ñ�j=|����c ��y��CF��/��*9ж�h{ �?4�o� ��k�m�Q�N�x��;�Y��4膚�a�w?�6�>e]�����Q�r�:����g�,i"�����ԩA�*M�<�G��b�if��l^M��5� �Ҩ�{����6J��ZJ�����P�*�����Y���ݛu�_4�9�I8�7���������,^ToR���m4�H��?�N�S�ѕw��/S��甍�@�9H�S�T��t�ƻ���ʒU��*{Xs�@����f�����֒Li�K{H�w^���������Ϥm�tq���s� ���ք��f:��o~s��g�r��ט� �S�ѱC�e]�x���a��) ���(b-$(�j>�7q�B?ӕ�F��hV25r[7 Y� }L�R��}����*sg+��x�r�2�U=�*'WS��ZDW]�WǞ�<��叓���{�$�9Ou4��y�90-�1�'*D`�c�^o?(�9��u���ݐ��'PI&� f�Jݮ�������:wS����jfP1F:X �H�9dԯ���˝[�_54 �}*;@�ܨ�� ð�yn�T���?�ןd�#���4rG�ͨ��H�1�|-#���Mr�S3��G�3�����)�.᧏3v�z֑��r����$G"�`j �1t��x0<Ɔ�Wh6�y�6��,œ�Ga��gA����y��b��)��h�D��ß�_�m��ü �gG;��e�v��ݝ�nQ� ��C����-�*��o���y�a��M��I�>�<���]obD��"�:���G�A��-\%LT�8���c�)��+y76���o�Q�#*{�(F�⽕�y����=���rW�\p���۩�c���A���^e6��K������ʐ�cVf5$�'->���ՉN"���F�"�UQ@�f��Gb~��#�&�M=��8�ט�JNu9��D��[̤�s�o�~������ G��9T�tW^g5y$b��Y'��س�Ǵ�=��U-2 #�MC�t(�i� �lj�@Q 5�̣i�*�O����s�x�K�f��}\��M{E�V�{�υ��Ƈ�����);�H����I��fe�Lȣr�2��>��W�I�Ȃ6������i��k�� �5�YOxȺ����>��Y�f5'��|��H+��98pj�n�.O�y�������jY��~��i�w'������l�;�s�2��Y��:'lg�ꥴ)o#'Sa�a�K��Z� �m��}�`169�n���"���x��I ��*+� }F<��cГ���F�P�������ֹ*�PqX�x۩��,� ��N�� �4<-����%����:��7����W���u�`����� $�?�I��&����o��o��`v�>��P��"��l���4��5'�Z�gE���8���?��[�X�7(��.Q�-��*���ތL@̲����v��.5���[��=�t\+�CNܛ��,g�SQnH����}*F�G16���&:�t��4ُ"A��̣��$�b �|����#rs��a�����T�� ]�<�j��BS�('$�ɻ� �wP;�/�n��?�ݜ��x�F��yUn�~mL*-�������Xf�wd^�a�}��f�,=t�׵i�.2/wpN�Ep8�OР���•��R�FJ� 55TZ��T �ɭ�<��]��/�0�r�@�f��V��V����Nz�G��^���7hZi����k��3�,kN�e|�vg�1{9]_i��X5y7� 8e]�U����'�-2,���e"����]ot�I��Y_��n�(JҼ��1�O ]bXc���Nu�No��pS���Q_���_�?i�~�x h5d'�(qw52] ��'ޤ�q��o1�R!���`ywy�A4u���h<קy���\[~�4�\ X�Wt/� 6�����n�F�a8��f���z �3$�t(���q��q�x��^�XWeN'p<-v�!�{�(>ӽDP7��ո0�y)�e$ٕv�Ih'Q�EA�m*�H��RI��=:��� ���4牢) �%_iN�ݧ�l]� �Nt���G��H�L��� ɱ�g<���1V�,�J~�ٹ�"K��Q�� 9�HS�9�?@��k����r�;we݁�]I�!{ �@�G�[�"��`���J:�n]�{�cA�E����V��ʆ���#��U9�6����j�#Y�m\��q�e4h�B�7��C�������d<�?J����1g:ٳ���=Y���D�p�ц� ׈ǔ��1�]26؜oS�'��9�V�FVu�P�h�9�xc�oq�X��p�o�5��Ա5$�9W�V(�[Ak�aY錎qf;�'�[�|���b�6�Ck��)��#a#a˙��8���=äh�4��2��C��4tm^ �n'c���]GQ$[Wҿ��i���vN�{Fu ��1�gx��1┷���N�m��{j-,��x�� Ūm�ЧS�[�s���Gna���䑴�� x�p 8<������97�Q���ϴ�v�aϚG��Rt�Һ׈�f^\r��WH�JU�7Z���y)�vg=����n��4�_)y��D'y�6�]�c�5̪�\� �PF�k����&�c;��cq�$~T�7j ���nç]�<�g ":�to�t}�159�<�/�8������m�b�K#g'I'.W�����6��I/��>v��\�MN��g���m�A�yQL�4u�Lj�j9��#44�t��l^�}L����n��R��!��t��±]��r��h6ٍ>�yҏ�N��fU�� ���� Fm@�8}�/u��jb9������he:A�y�ծw��GpΧh�5����l}�3p468��)U��d��c����;Us/�֔�YX�1�O2��uq�s��`hwg�r~�{ R��mhN��؎*q 42�*th��>�#���E����#��Hv�O����q�}�����6�e��\�,Wk�#���X��b>��p}�դ��3���T5��†��6��[��@�P�y*n��|'f�֧>�lư΂�̺����SU�'*�q�p�_S�����M�� '��c�6�����m�� ySʨ;M��r���Ƌ�m�Kxo,���Gm�P��A�G�:��i��w�9�}M(�^�V��$ǒ�ѽ�9���|���� �a����J�SQ�a���r�B;����}���ٻ֢�2�%U���c�#�g���N�a�ݕ�'�v�[�OY'��3L�3�;,p�]@�S��{ls��X�'���c�jw�k'a�.��}�}&�� �dP�*�bK=ɍ!����;3n�gΊU�ߴmt�'*{,=SzfD� A��ko~�G�aoq�_mi}#�m�������P�Xhύ����mxǍ�΂���巿zf��Q���c���|kc�����?���W��Y�$���_Lv����l߶��c���`?����l�j�ݲˏ!V��6����U�Ђ(A���4y)H���p�Z_�x��>���e��R��$�/�`^'3qˏ�-&Q�=?��CFVR �D�fV�9��{�8g�������n�h�(P"��6�[�D���< E�����~0<@�`�G�6����Hг�cc�� �c�K.5��D��d�B���`?�XQ��2��ٿyqo&+�1^� DW�0�ꊩ���G�#��Q�nL3��c���������/��x ��1�1[y�x�პCW��C�c�UĨ80�m�e�4.{�m��u���I=��f�����0QRls9���f���������9���~f�����Ǩ��a�"@�8���ȁ�Q����#c�ic������G��$���G���r/$W�(��W���V�"��m�7�[m�A�m����bo��D� j����۳� l���^�k�h׽����� ��#� iXn�v��eT�k�a�^Y�4�BN��ĕ��0 !01@Q"2AaPq3BR������?���@4�Q�����T3,���㺠�W�[=JK�Ϟ���2�r^7��vc�:�9 �E�ߴ�w�S#d���Ix��u��:��Hp��9E!�� V 2;73|F��9Y���*ʬ�F��D����u&���y؟��^EA��A��(ɩ���^��GV:ݜDy�`��Jr29ܾ�㝉��[���E;Fzx��YG��U�e�Y�C���� ����v-tx����I�sם�Ę�q��Eb�+P\ :>�i�C'�;�����k|z�رn�y]�#ǿb��Q��������w�����(�r|ӹs��[�D��2v-%��@;�8<a���[\o[ϧw��I!��*0�krs)�[�J9^��ʜ��p1)� "��/_>��o��<1����A�E�y^�C��`�x1'ܣn�p��s`l���fQ��):�l����b>�Me�jH^?�kl3(�z:���1ŠK&?Q�~�{�ٺ�h�y���/�[��V�|6��}�KbX����mn[-��7�5q�94�������dm���c^���h� X��5��<�eޘ>G���-�}�دB�ޟ� ��|�rt�M��V+�]�c?�-#ڛ��^ǂ}���Lkr���O��u�>�-D�ry� D?:ޞ�U��ǜ�7�V��?瓮�"�#���r��չģVR;�n���/_� ؉v�ݶe5d�b9��/O��009�G���5n�W����JpA�*�r9�>�1��.[t���s�F���nQ� V 77R�]�ɫ8����_0<՜�IF�u(v��4��F�k�3��E)��N:��yڮe��P�`�1}�$WS��J�SQ�N�j�ٺ��޵�#l���ј(�5=��5�lǏmoW�v-�1����v,W�mn��߀$x�<����v�j(����c]��@#��1������Ǔ���o'��u+����;G�#�޸��v-lη��/(`i⣍Pm^���ԯ̾9Z��F��������n��1��� ��]�[��)�'������:�֪�W��FC����� �B9،!?���]��V��A�Վ�M��b�w��G F>_DȬ0¤�#�QR�[V��kz���m�w�"��9ZG�7'[��=�Q����j8R?�zf�\a�=��O�U����*oB�A�|G���2�54 �p��.w7� �� ��&������ξxGHp� B%��$g�����t�Џ򤵍z���HN�u�Я�-�'4��0��;_��3 !01"@AQa2Pq#3BR������?��ʩca��en��^��8���<�u#��m*08r��y�N"�<�Ѳ0��@\�p��� �����Kv�D��J8�Fҽ� �f�Y��-m�ybX�NP����}�!*8t(�OqѢ��Q�wW�K��ZD��Δ^e��!� ��B�K��p~�����e*l}z#9ң�k���q#�Ft�o��S�R����-�w�!�S���Ӥß|M�l޶V��!eˈ�8Y���c�ЮM2��tk���� ������J�fS����Ö*i/2�����n]�k�\���|4yX�8��U�P.���Ы[���l��@"�t�<������5�lF���vU�����W��W��;�b�cД^6[#7@vU�xgZv��F�6��Q,K�v��� �+Ъ��n��Ǣ��Ft���8��0��c�@�!�Zq s�v�t�;#](B��-�nῃ~���3g������5�J�%���O������n�kB�ĺ�.r��+���#�N$?�q�/�s�6��p��a����a��J/��M�8��6�ܰ"�*������ɗud"\w���aT(����[��F��U՛����RT�b���n�*��6���O��SJ�.�ij<�v�MT��R\c��5l�sZB>F��<7�;EA��{��E���Ö��1U/�#��d1�a�n.1ě����0�ʾR�h��|�R��Ao�3�m3 ��%�� ���28Q� ��y��φ���H�To�7�lW>����#i`�q���c����a��� �m,B�-j����݋�'mR1Ήt�>��V��p���s�0IbI�C.���1R�ea�����]H�6����������4B>��o��](��$B���m�����a�!=��?�B� K�Ǿ+�Ծ"�n���K��*��+��[T#�{E�J�S����Q�����s�5�:�U�\wĐ�f�3����܆&�)����I���Ԇw��E T�lrTf6Q|R�h:��[K�� �z��c֧�G�C��%\��_�a�84��HcO�bi��ؖV��7H �)*ģK~Xhչ0��4?�0��� �E<���}3���#���u�?�� ��|g�S�6ꊤ�|�I#Hڛ� �ա��w�X��9��7���Ŀ%�SL��y6č��|�F�a 8���b��$�sק�h���b9RAu7�˨p�Č�_\*w��묦��F ����4D~�f����|(�"m���NK��i�S�>�$d7SlA��/�²����SL��|6N�}���S�˯���g��]6��; �#�.��<���q'Q�1|KQ$�����񛩶"�$r�b:���N8�w@��8$�� �AjfG|~�9F ���Y��ʺ��Bwؒ������M:I岎�G��`s�YV5����6��A �b:�W���G�q%l�����F��H���7�������Fsv7��k�� 403WebShell
403Webshell
Server IP : 97.74.90.209  /  Your IP : 216.73.216.15
Web Server : Apache
System : Linux live.indianstaffingfederation.org 4.18.0-553.54.1.el8_10.x86_64 #1 SMP Tue May 27 22:49:52 EDT 2025 x86_64
User : indianstaffing ( 1003)
PHP Version : 8.3.22
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/opt/nydus/ops/mysql/connector/aio/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/opt/nydus/ops/mysql/connector/aio/__pycache__/cursor.cpython-39.pyc
a

Oh#h��@s�dZdgZddlZddlZddlmZddlmZddlm	Z	m
Z
mZmZm
Z
mZmZmZmZmZddlmZdd	lmZmZmZmZmZmZmZmZmZmZm Z m!Z!dd
l"m#Z#m$Z$m%Z%m&Z&m'Z'ddl(m)Z)m*Z*m+Z+m,Z,m-Z-m.Z.m/Z/m0Z0m1Z1m2Z2dd
l3m4Z4m5Z5m6Z6dZ7Gdd�d�Z8e9ee9e9fe9d�dd�Z:Gdd�de6�Z;Gdd�de;�Z<Gdd�de;�Z=Gdd�de<�Z>Gdd�de;�Z?Gdd�de;�Z@Gdd �d e?e<�ZAGd!d"�d"e@e<�ZBGd#d$�d$e;�ZCGd%d&�d&e?eC�ZDGd'd(�d(e@eC�ZEGd)d*�d*eC�ZFdS)+z0Implementation of cursor classes in pure Python.�MySQLCursor�N)�
namedtuple)�Decimal)
�Any�AsyncGenerator�Dict�Iterator�List�NoReturn�Optional�Sequence�Tuple�Union�)�
ServerFlag)�MAX_RESULTS�RE_PY_MAPPING_PARAM�RE_PY_PARAM�RE_SQL_COMMENT�RE_SQL_FIND_PARAM�RE_SQL_INSERT_STMT�RE_SQL_INSERT_VALUES�RE_SQL_ON_DUPLICATE� RE_SQL_PYTHON_CAPTURE_PARAM_NAME�RE_SQL_PYTHON_REPLACE_PARAM�is_eol_comment�parse_multi_statement_query)�Error�InterfaceError�NotSupportedError�ProgrammingError�get_mysql_exception)
�DescriptionType�
EofPacketType�ParamsDictType�ParamsSequenceOrDictType�ParamsSequenceType�
ResultType�RowItemType�RowType�
StrOrBytes�WarningType�)�NAMED_TUPLE_CACHE�MySQLConnectionAbstract�MySQLCursorAbstractzNo result set to fetch fromc@sHeZdZdZeedd�dd�Zejed�dd�Z	e
ed	�d
d��ZdS)�_ParamSubstitutorz+Substitute parameters into a SQL statement.N��params�returncCs||_d|_dS�Nr)r2�index)�selfr2�r7�K/opt/nydus/tmp/pip-target-wgfnss67/lib/python/mysql/connector/aio/cursor.py�__init___sz_ParamSubstitutor.__init__��matchobjr3cCsF|j}|jd7_zt|j|�WSty@td�d�Yn0dS)Nr,z+Not enough parameters for the SQL statement)r5�bytesr2�
IndexErrorr )r6r;r5r7r7r8�__call__cs��z_ParamSubstitutor.__call__�r3cCst|j�|jS)z<Return the number of parameters remaining to be substituted.)�lenr2r5�r6r7r7r8�	remainingmsz_ParamSubstitutor.remaining)
�__name__�
__module__�__qualname__�__doc__rr<r9�re�Matchr>�property�intrBr7r7r7r8r0\s

r0)�bytestr�
value_dictr3cs&tjtd��fdd�}t�||�}|S)ah
    >>> _bytestr_format_dict(b'%(a)s', {b'a': b'foobar'})
    b'foobar
    >>> _bytestr_format_dict(b'%%(a)s', {b'a': b'foobar'})
    b'%%(a)s'
    >>> _bytestr_format_dict(b'%%%(a)s', {b'a': b'foobar'})
    b'%%foobar'
    >>> _bytestr_format_dict(b'%(x)s %(y)s',
    ...                      {b'x': b'x=%(y)s', b'y': b'y=%(x)s'})
    b'x=%(y)s y=%(x)s'
    r:csVd}|��}|ddkrd}|ddkr8|d}�|}|durRtd|d����|S)zReplace pattern.NZconversion_type�%�sZmapping_keyzUnsupported conversion_type: )�	groupdict�
ValueError)r;�value�groups�key�rLr7r8�replace�s�z%_bytestr_format_dict.<locals>.replace)rGrHr<r�sub)rKrLrU�stmtr7rTr8�_bytestr_format_dictss
rXc@s\eZdZdZed�dd�Zed�dd�Zee	e
ee
effd�dd	�Z
eeee
efd
fd�dd�Zeed
feed
fd�dd�ZdDeeed�dd�Zed
d�dd�Zd
d�dd�Zed
d�dd�Zd
d�dd�Zed
d�d d!�Zd
d�d"d#�Zed�d$d%�Zd
d�d&d'�ZdEe ee!e"e	e#e"ffe
d)�d*d+�Z$ee%e&d�d,d-�Z'e#e!e(ee
d.�d/d0�Z)e*ed�d1d2�Z+dFe#e!e"eee	e#e,fefd3�d4d5�Z-dGe ee!e"e	e#e"ffed
d6�d7d8�Z.dHe ee!e"e	e#e"ffeed
fd)�d9d:�Z/e#e!ed
d.�d;d<�Z0eed�d=d>�Z1e%ed�d?d@�Z2dIee3e%edA�dBdC�Z4d
S)Jra�Default cursor for interacting with MySQL.

    This cursor will execute statements and handle the result. It will not automatically
    fetch all rows.

    MySQLCursor should be inherited whenever other functionallity is required.
    An example would to change the fetch* member functions to return dictionaries instead
    of lists of values.

    Implements the Python Database API Specification v2.0 (PEP-249).
    r?c�s"|��IdH}|dur|St�dS�N)�fetchone�StopAsyncIteration�r6�resr7r7r8�	__anext__�szMySQLCursor.__anext__c�s>|js
dS|j�|�|j��IdH|��IdHd|_dS)NFT)�_connectionZ
remove_cursor�handle_unread_result�
_reset_resultrAr7r7r8�close�szMySQLCursor.closer1c

Cs�i}zf|jjj}|jjj}|jjj}|��D]:\}}|}||�}||�}t|t�sZ||�}|||��<q,Wn4t	y�}	zt
d|	���|	�WYd}	~	n
d}	~	00|S)z-Process query parameters given as dictionary.z'Failed processing pyformat-parameters; N)r_�	converter�to_mysql�escape�quote�items�
isinstancer�encode�	Exceptionr )
r6r2r]rdrerfrSrQ�conv�errr7r7r8�_process_params_dict�s&



��z MySQLCursor._process_params_dict.c
s��dd�}z^|jjj�|jjj�|jjj��fdd�|D�}�fdd�|D�}��fdd�t|�D�}Wn4ty�}ztd|���|�WYd}~n
d}~00t|�S)zProcess query parameters.Ncsg|]}�|��qSr7r7��.0rQ)rdr7r8�
<listcomp>��z/MySQLCursor._process_params.<locals>.<listcomp>csg|]}�|��qSr7r7rn)rer7r8rp�rqcs*g|]"\}}t�|t�s"�|�n|�qSr7)rhr)ro�irQ)r2rfr7r8rp�s�z%Failed processing format-parameters; )	r_rcrdrerf�	enumeraterjr �tuple)r6r2�resultrlr7)rer2rfrdr8�_process_params�s"


�
��zMySQLCursor._process_paramsN)�
query_iterr3cCs�t|jd�}d|_|r|��nd}|2zj3dHW}|��IdH|�|�IdHt|�rZq&|��|_|V|���d�r�d|vr&|r�|��nd}q&6dS)a�	Generator returns MySQLCursor objects for multiple statements

        This method is only used when multiple statements are executed
        by the `cursor.execute(multi_stmt_query, multi=True)` method.

        It matches the given `query_iter` (result of `MySQLConnection.cmd_query_iter()`)
        and the list of statements that were executed.

        How does this method work? To properly map each statement (stmt) to a result,
        the following facts must be considered:

        1. Read operations such as `SELECT` produce a non-empty result
            (calling `next(query_iter)` gets a result that includes at least one column).
        2. Write operatios such as `INSERT` produce an empty result
            (calling `next(query_iter)` gets a result with no columns - aka empty).
        3. End-of-line (EOL) comments do not produce a result, unless is the last stmt
            in which case produces an empty result.
        4. Calling procedures such as `CALL my_proc` produce a sequence `(1)*0` which
            means it may produce zero or more non-empty results followed by just one
            empty result. In other words, a callproc stmt always terminates with an
            empty result. E.g., `my_proc` includes an update + select + select + update,
            then the result sequence will be `110` - note how the write ops results get
            annulated, just the read ops results are produced. Other examples:
                * insert + insert -> 0
                * select + select + insert + select -> 1110
                * select -> 10
            Observe how 0 indicates the end of the result sequence. This property is
            vital to know what result corresponds to what callproc stmt.

        In this regard, the implementation is composed of:
        1. Parsing: the multi-statement is broken down into single statements, and then
            for each of these, leading white spaces are removed (including
            jumping line, vertical line, tab, etc.). Also, EOL comments are removed from
            the stream, except when the comment is the last statement of the
            multi-statement string.
        2. Mapping: the facts described above as used as "game rules" to properly match
        statements and results. In case, if we run out of statements before running out
        of results we use a sentinel named "stmt_overflow!" to indicate that the mapping
        went wrong.

        Acronyms
            1: a non-empty result
            2: an empty result
        )Z
multi_stmtNsstmt_overflow!sCALL�columns)	r�	_executed�popleftra�_handle_resultr�rstrip�upper�
startswith)r6rwZ
executed_listrWrur7r7r8�
_execute_iter�s/
zMySQLCursor._execute_iterF��rawr3c�s�|jjsdSd}|jdkr<|jj|j|j|d�IdH\}}n
|j\}}|r�|jj|j|j|d�IdH|_|jd}|dur�|�|�IdH|jdkr�d|_n|jd7_|r�|�|�IdH|S)�&Return the next row in the result set.N�NN)�binaryrxr�r,���)r_�
unread_result�_nextrowZget_row�_binary�description�_handle_eof�	_rowcount)r6r��row�eofr7r7r8�
_fetch_rows*

�

�

zMySQLCursor._fetch_row�rur3c�sjt|t�std��d|vr<|d|_d|j_|��IdHn*d|vr^d|j_|�|�IdHntd��dS)z�Handle the result after a command was send.

        The result can be either an OK-packet or a dictionary containing column/eof
        information.

        Raises:
            InterfaceError: When result is not a dict() or result is invalid.
        zResult was not a dict()rxTN�
affected_rowsFzInvalid result)rh�dictr�_descriptionr_r��_handle_resultset�_handle_noresultset�r6rur7r7r8r{6s	

zMySQLCursor._handle_resultc�sdS)��Handle the result set.

        This method handles the result set and is called after reading and storing
        column information in _handle_result(). For non-buffering cursors, this method
        is usually doing nothing.
        Nr7rAr7r7r8r�NszMySQLCursor._handle_resultset�r]r3c
�snz"|d|_|d|_|d|_Wn8ttfyZ}ztd|���d�WYd}~n
d}~00|��IdHdS)z�Handle result of execute() when there is no result set.

        Raises:
            ProgrammingError: When failing handling a non-resultset.
        r�Z	insert_id�
warning_countzFailed handling non-resultset; N)r�Z_last_insert_id�_warning_count�KeyError�	TypeErrorr �_handle_warnings)r6r]rlr7r7r8r�Vs

&zMySQLCursor._handle_noresultsetc�sn|jjr|jr|��IdH|_|js(dSt|jdd|jdd|jjd�}|jjr\|�tj|dd�dS)z�Handle possible warnings after all results are consumed.

        Raises:
            Error: Also raises exceptions if raise_on_warnings is set.
        Nrr,r)�warning�)�
stacklevel)	r_Zget_warningsr��_fetch_warnings�	_warningsr!Zraise_on_warnings�warnings�warn)r6rlr7r7r8r�es�zMySQLCursor._handle_warnings�r�r3c�s*d|j_d|_|d|_|��IdHdS)zHandle EOF packet.Fr�r�N)r_r�r�r�r��r6r�r7r7r8r�|s
zMySQLCursor._handle_eofc�sBd|_d|_d|_d|_g|_g|_d|_d|_|��IdHdS)�Reset the cursor to default.Nrr�r�)	r�r�r�ry�_executed_list�_stored_resultsr�r��resetrAr7r7r8ra�szMySQLCursor._reset_resultcCs$z
|jjWStyYdS0dS)z(Check whether there is an unread result.FN)r_r��AttributeErrorrAr7r7r8�_have_unread_result�s
zMySQLCursor._have_unread_resultcCs|jdurtt��dS)z�Check if the statement has been executed.

        Raises:
            InterfaceError: If the statement has not been executed.
        N)ryr�ERR_NO_RESULT_TO_FETCHrAr7r7r8�_check_executed�s
zMySQLCursor._check_executedr7��	operationr2r3c
Cs�z$t|ttf�r|n|�|jj�}Wn6ttfyZ}ztt	|��|�WYd}~n
d}~00|r�t|t
�r|t||�|��}nXt|t
tf�r�t|�|��}t�||�}|jdkr�td��ntdt|�j�d|�d���|S)a'Prepare SQL statement for execution.

        Converts the SQL statement to bytes and replaces the parameters in the
        placeholders.

        Raises:
            ProgrammingError: On converting to bytes, missing parameters or invalid
                              parameters type.
        Nr�1Not all parameters were used in the SQL statementzCould not process parameters: �(z)), it must be of type list, tuple or dict)rhr<�	bytearrayrir_�python_charset�UnicodeDecodeError�UnicodeEncodeErrorr �strr�rXrm�listrtr0rvrrVrB�typerC)r6r�r2rWrl�psubr7r7r8�_prepare_statement�s*��$

��zMySQLCursor._prepare_statementc	�svg}|jjdd�IdH4IdH�4}|�d�IdH|��IdH}Wd�IdHqj1IdHs`0Y|rr|SdS)z%Fetch warnings doing a SHOW WARNINGS.F�r�Nz
SHOW WARNINGS)r_�cursor�execute�fetchall)r6ru�curr7r7r8r��s
8zMySQLCursor._fetch_warnings�r��
seq_paramsr3c
Cs|tjtd�dd�}t�tdt�t||��}t�t|�}|sBtd��|�	d��
|jj�}g}z�|�
|jj�}|D]Z}	|}t
|	t�r�t||�|	��}n,t|�|	��}
t�|
|�}|
jdkr�td��|�|�qn||vr�|�|d	�|�d�}||_|WSWd
Sttf�y.}ztt|��|�WYd
}~nRd
}~0t�yB�Yn6t�yv}ztd|���d
�WYd
}~n
d
}~00d
S)zImplements multi row insert)�matchr3cSs|�d�rdS|�d�S)aRemove comments from INSERT statements.

            This function is used while removing comments from INSERT
            statements. If the matched string is a comment not enclosed
            by quotes, it returns an empty string, else the string itself.
            r,�r)�group)r�r7r7r8�remove_comments�s
z2MySQLCursor._batch_insert.<locals>.remove_commentsr�zAFailed rewriting statement for multi-row INSERT. Check SQL syntaxr,rr��,N� Failed executing the operation; )rGrHr�rVrr�searchrrr�rir_r�rhr�rXrmr0rvrrBr �appendrU�joinryr�r�rrj)r6r�r�r��tmp�matches�fmt�valuesrWr2r�rlr7r7r8�
_batch_insert�sJ��

�"zMySQLCursor._batch_insertcCs
t|j�S)z�Returns an iterator for stored results.

        This method returns an iterator over results which are stored when callproc()
        is called. The iterator will provide MySQLCursorBuffered instances.
        )�iterr�rAr7r7r8�stored_resultsszMySQLCursor.stored_results��procname�argsr3c
�s�|rt|t�std��t|ttf�s,td��g|_g}�zg}g}|�d�d}|r�g}t|�D]p\}}	d|�d|d��}
|�|
�t|	t�r�|�d|
�d	|	d�d
��|�|	d�q`|�|
�|�|	�q`d�	d
d�|D��}|�
d|��|�IdHd|�dd�	|��d
�}|jj}
|j�
|�2z�3dHW}d|j_t|ttf��rTt}n(t|ttf��rjt}n|j�rxt}nt}||j���}d|�d
�|_|�|�IdH|jdu�r�|j|_d|v�r*|�|��q*6|
|j_|�r8dd�t|dd�|D��D�}dd�	|���}|�
|�IdH||_|��IdHWS||_t�WSt�yZ�Yn6t�y�}ztd|���d�WYd}~n
d}~00dS)a�Calls a stored procedure with the given arguments

        The arguments will be set during this session, meaning
        they will be called like  _<procname>__arg<nr> where
        <nr> is an enumeration (+1) of the arguments.

        Coding Example:
          1) Defining the Stored Routine in MySQL:
          CREATE PROCEDURE multiply(IN pFac1 INT, IN pFac2 INT, OUT pProd INT)
          BEGIN
            SET pProd := pFac1 * pFac2;
          END

          2) Executing in Python:
          args = (5, 5, 0)  # 0 is to hold pprod
          await cursor.callproc('multiply', args)
          print(await cursor.fetchone())

        For OUT and INOUT parameters the user should provide the
        type of the parameter as well. The argument should be a
        tuple with first item as the value of the parameter to pass
        and second argument the type of the argument.

        In the above example, one can call callproc method like:
          args = (5, 5, (0, 'INT'))
          await cursor.callproc('multiply', args)

        The type of the argument given in the tuple will be used by
        the MySQL CAST function to convert the values in the corresponding
        MySQL type (See CAST in MySQL Reference for more information)

        Does not return a value, but a result set will be
        available when the CALL-statement execute successfully.
        Raises exceptions when something is wrong.
        zprocname must be a stringzargs must be a sequence�.r��@_Z_argr,z CAST(� AS �)r�,css|]}|�d�VqdS)z=%sNr7�ro�argr7r7r8�	<genexpr>Urqz'MySQLCursor.callproc.<locals>.<genexpr>zSET NzCALL r�Fz
(a result of rxcSsg|]\}}|�d|���qS)r�r7)ro�name�aliasr7r7r8rpys�z(MySQLCursor.callproc.<locals>.<listcomp>cSsg|]}|�d��qS)r�)�lstripr�r7r7r8rp|rqzSELECT zFailed calling stored routine; )rhr�rPrtr�r��splitrsr�r�r�r_�can_consume_results�cmd_query_iter�MySQLCursorDict�MySQLCursorBufferedDict�MySQLCursorNamedTuple�MySQLCursorBufferedNamedTuple�_raw�MySQLCursorBufferedRaw�MySQLCursorBufferedZget_selfryr{r�r��ziprZrrjr)r6r�r��results�argnames�argtypesZprocname_absZ	argvalues�idxr��argnameZplaceholders�callr�ruZcursor_classr��selectrlr7r7r8�callprocsx(


�
��zMySQLCursor.callproc�r�r2�multir3c
�s�|jstd��|sdS|r"td��|j��IdH|��IdH|�||�}||_z"|�|j�|�IdH�IdHWn8ty�}z |jj	r�td�|��WYd}~n
d}~00dS)amExecutes the given operation.

        Executes the given operation substituting any markers with the given parameters.

        For example, getting all rows where id is 5:
          await cursor.execute("SELECT * FROM t1 WHERE id = %s", (5,))

        If the `multi`` parameter is used a `ProgrammingError` is raised. The method for
        executing multiple statements is `executemulti()`.

        If warnings where generated, and connection.get_warnings is True, then
        self._warnings will be a list containing these warnings.

        Raises:
            ProgramingError: If multi parameter is used.
        �Cursor is not connectedNz�The `multi` parameter cannot be used in the Connector/Python Asyncio implementation. Please use `executemulti()` for executing multiple statementsz7Use `executemulti()` when executing multiple statements)
r_r r`rar�ryr{Z	cmd_queryrZhave_next_result)r6r�r2r�rWrlr7r7r8r��s.�"��zMySQLCursor.executecCsx|jstd��|st�|j��IdH|��IdH|�||�}||_g|_|�|j�	|��2z3dHW}|Vq^6dS)��Execute multiple statements.

        Executes the given operation substituting any markers with the given
        parameters.
        r�N)
r_r r[r`rar�ryr�rr�)r6r�r2rWrur7r7r8�executemulti�szMySQLCursor.executemultic
�s,|r|sdS|j��IdHzt|�}Wn.tyV}ztd�|�WYd}~n
d}~00t�t|�r�|srd|_dS|�	||�}|dur�||_
|�|�IdHSd}zF|D]<}|�||�IdH|jr�|�
�r�|��IdH||j7}q�Wn:ttf�y }ztd|���d�WYd}~n
d}~00||_dS)aPrepare and execute a MySQL Prepared Statement many times.

        This method will prepare the given operation and execute with each tuple found
        the list seq_params.

        If the cursor instance already had a prepared statement, it is first closed.
        N�(Parameters for query must be an Iterablerr�)r_r`r�r�r rGr�rr�r�ryr��	with_rowsr�r�rP)r6r�r��_rlrW�rowcntr2r7r7r8�executemany�s2 &zMySQLCursor.executemanyc�s |jdurtt��|��IdHS)z�Return next row of a query result set.

        Raises:
            InterfaceError: If there is no result to fetch.

        Returns:
            tuple or None: A row from query result set.
        N)ryrr�r�rAr7r7r8rZs	
zMySQLCursor.fetchonec�s�|jdurtt��|jjsgS|j��IdH\}}|jdrN|�d|jd�|�|�IdHt	|�}|dkr~|j
dkr~d|_
|j
|7_
|S)��Return all rows of a query result set.

        Returns:
            list: A list of tuples with all rows of a query result set.
        Nrr�)ryrr�r_r��get_rowsr��insertr�r@r��r6�rowsr�Zrowcountr7r7r8r�s

zMySQLCursor.fetchall��sizer3c�sH|��g}|p|j}|dkrD|d8}|��IdH}|r|�|�q|S)a<Return the next set of rows of a query result set.

        When no more rows are available, it returns an empty list.
        The number of rows returned can be specified using the size argument, which
        defaults to one.

        Returns:
            list: The next set of rows of a query result set.
        rr,N)r��	arraysizerZr��r6rr]Zcntr�r7r7r8�	fetchmany's

zMySQLCursor.fetchmany)F)r7)r7)r7F)r7)N)5rCrDrErFr)r^�boolrbr$rr<rrrmr&r
rvrr'r/rrr�r{r�r�r�r#r�rar�r�r*rrr�r�r	r+r�r%r�rr�r(r�r�r�r�rZr�rJrr7r7r7r8r�sv
��

�?��)	�8��~��6�
��*
cs�eZdZdZedd��fdd�Zdd�dd�Zdeee	d
�dd�Z
dedd�dd�Zee	d�dd�Ze
e	d�dd�Zeed�dd��Z�ZS)r�z+Cursor which fetches rows within execute().N��
connectionr3cst��|�d|_d|_dSr4)�superr9�_rows�	_next_row�r6r	��	__class__r7r8r9@szMySQLCursorBuffered.__init__r?c�sD|j��IdH\|_}t|j�|_|�|�IdHd|_d|j_dS)r�NrF)r_r�rr@r�r�rr�r�r7r7r8r�Es
z%MySQLCursorBuffered._handle_resultsetFr�c	�s@d}z|j|j}Wnttfy,YdS0|jd7_|S)r�Nr,)rrr=r�)r6r�r�r7r7r8r�RszMySQLCursorBuffered._fetch_rowT��freer3c�s
d|_dS)r�N�r�r6rr7r7r8r�\szMySQLCursorBuffered.resetc�s|��|��IdHS��yReturn next row of a query result set.

        Returns:
            tuple or None: A row from query result set.
        N�r�r�rAr7r7r8rZ`szMySQLCursorBuffered.fetchonec�s@|jdus|jdurtt��g}|j|jd�}t|j�|_|S�r�N)ryrrr�rr@r\r7r7r8r�iszMySQLCursorBuffered.fetchallcCs
|jduSrYrrAr7r7r8r�vszMySQLCursorBuffered.with_rows)F)T)rCrDrErFr.r9r�rrr)r�r�rZr	r�rIr��
__classcell__r7r7rr8r�=s

	
r�csLeZdZdZedd��fdd�Zeed�dd�Ze	ed�d	d
�Z
�ZS)�MySQLCursorRawzHSkip conversion from MySQL datatypes to Python types when fetching rows.Nrcst��|�d|_dS)NT)r
r9r�r
rr7r8r9~szMySQLCursorRaw.__init__r?c�s|��|jdd�IdHS)rTr�NrrAr7r7r8rZ�szMySQLCursorRaw.fetchonec�s�|��|��sgS|jjdd�IdH\}}|jdrH|�d|jd�|�|�IdHt|�}|dkrx|jdkrxd|_|j|7_|S)r�Tr�Nrr�)	r�r�r_r�r�r�r�r@r�rr7r7r8r��s
zMySQLCursorRaw.fetchall)rCrDrErFr.r9rr)rZr	r�rr7r7rr8r{s	rc@s0eZdZUdZdZeed<eed�dd��ZdS)r�z�
    Cursor which skips conversion from MySQL datatypes to Python types when
    fetching rows and fetches rows within execute().
    Tr�r?cCs
|jduSrYrrAr7r7r8r��sz MySQLCursorBufferedRaw.with_rowsN)	rCrDrErFr�r�__annotations__rIr�r7r7r7r8r��s
r�cs|eZdZdZdeeeeeee	e
fd�dd�Zeee	e
fd��fdd�Zeeee	e
fd��fd	d
�Z
�ZS)r�z�
    Cursor fetching rows as dictionaries.

    The fetch methods of this class will return dictionaries instead of tuples.
    Each row is a dictionary that looks like:
        row = {
            "col1": value1,
            "col2": value2
        }
    N��rowdata�descr3cCs|rtt|j|��SdS)zWConvert a MySQL text result row to Python types

        Returns a dictionary.
        N)r�r��column_names�r6rrr7r7r8�_row_to_python�s	zMySQLCursorDict._row_to_pythonr?c�s|�t���IdH|j�S)zyReturn next row of a query result set.

        Returns:
            dict or None: A dict from query result set.
        N)r r
rZr�rArr7r8rZ�szMySQLCursorDict.fetchonec�s�fdd�t���IdHD�S)z�Return all rows of a query result set.

        Returns:
            list: A list of dictionaries with all rows of a query
                  result set where column names are used as keys.
        csg|]}|r��|�j��qSr7�r r��ror�rAr7r8rp�s�z,MySQLCursorDict.fetchall.<locals>.<listcomp>N�r
r�rArrAr8r��s
�zMySQLCursorDict.fetchall)N)rCrDrErFr)rr	r"rr�r(r rZr�rr7r7rr8r��s�
�r�csdeZdZdZdeeeeeed�dd�Zeed��fdd�Z	eeed��fd	d
�Z
�ZS)r�z�
    Cursor fetching rows as named tuple.

    The fetch methods of this class will return namedtuples instead of tuples.
    Each row is returned as a namedtuple and the values can be accessed as:
    row.col1, row.col2
    NrcCsP|}|rLt|j�}zt|}Wn$tyBtd|�}|t|<Yn0||�SdS)zXConvert a MySQL text result row to Python types

        Returns a named tuple.
        ZRowN)rtrr-r�r)r6rrr�rxZnamed_tupler7r7r8r �s	

z$MySQLCursorNamedTuple._row_to_pythonr?c�s6t���IdH}|sdSt|jd�r2|�||j�S|S)rNrc)r
rZ�hasattrr_r r��r6r�rr7r8rZ�s
��zMySQLCursorNamedTuple.fetchonec�s�fdd�t���IdHD�S)r�csg|]}|r��|�j��qSr7r!r"rAr7r8rps�z2MySQLCursorNamedTuple.fetchall.<locals>.<listcomp>Nr#rArrAr8r�s
�zMySQLCursorNamedTuple.fetchall)N)rCrDrErFr)rr	r"r rZr�rr7r7rr8r��s�
�r�c@sHeZdZdZeeeefd�dd�Ze	eeeefd�dd�Z
dS)r�z8
    Buffered Cursor fetching rows as dictionaries.
    r?c�s,|��|��IdH}|r(|�||j�SdSr�r�r�r r�r%r7r7r8rZs
z MySQLCursorBufferedDict.fetchonec�sZ|jdus|jdurtt��g}|j|jd�D]}|�|�||j��q0t|j�|_|Sr�	ryrrr�rr�r r�r@�r6r]r�r7r7r8r�$sz MySQLCursorBufferedDict.fetchallN)rCrDrErFrrr�r(rZr	r�r7r7r7r8r�sr�c@s8eZdZdZeed�dd�Zeeed�dd�ZdS)r�z7
    Buffered Cursor fetching rows as named tuple.
    r?c�s,|��|��IdH}|r(|�||j�SdSrr&r%r7r7r8rZ8s
z&MySQLCursorBufferedNamedTuple.fetchonec�sZ|jdus|jdurtt��g}|j|jd�D]}|�|�||j��q0t|j�|_|Srr'r(r7r7r8r�Dsz&MySQLCursorBufferedNamedTuple.fetchallN)	rCrDrErFrr)rZr	r�r7r7r7r8r�3sr�csXeZdZdZed��fdd�Zd1edd�dd	�Zedd
��fdd�Z	e
dd
�dd�Zedd��fdd�Z
d2eeed�dd�Zd3eeeeeeeffeedfd�dd�Zdd��fdd�Zd4eeed�dd�Zedd �d!d"�Zd5eeeedd$�d%d&�Zeeedd'�d(d)�Z ee!d�d*d+�Z"d6ee
e#e!d,�d-d.�Z$e#e!d�d/d0�Z%�Z&S)7�MySQLCursorPreparedz&Cursor using MySQL Prepared Statements)r	cs:t��|�d|_d|_d|_d|_d|_d|_d|_dS)NrTF)	r
r9rr�	_preparedr��_have_result�_last_row_sent�_cursor_existsr
rr7r8r9VszMySQLCursorPrepared.__init__TNrc�sL|jr<z|j�|jd�IdHWnty4Yn0d|_d|_d|_dS)N�statement_idF)r*r_�cmd_stmt_closerr,r-rr7r7r8r�`szMySQLCursorPrepared.resetr�c	�s0|�|�d|�dd���t��|�IdHdS�N�status_flag�
server_statusr)�_handle_server_status�getr
r�r\rr7r8r�ks�z'MySQLCursorPrepared._handle_noresultset)�flagsr3cCs$|tj@dk|_|tj@dk|_dSr4)rZSTATUS_CURSOR_EXISTSr-ZSTATUS_LAST_ROW_SENTr,)r6r5r7r7r8r3qsz)MySQLCursorPrepared._handle_server_statusr�c	�s0|�|�d|�dd���t��|�IdHdSr0)r3r4r
r�r�rr7r8r�us�zMySQLCursorPrepared._handle_eofr7r�c�s
t��dS)zQCalls a stored procedue

        Not supported with MySQLCursorPrepared.
        N�r)r6r�r�r7r7r8r�{szMySQLCursorPrepared.callprocr�c�s
t��dS)r�Nr6)r6r�r2r7r7r8r��s
z MySQLCursorPrepared.executemultir?c�s"|��IdHt���IdHdS)zzClose the cursor

        This method will try to deallocate the prepared statement and close
        the cursor.
        N)r�r
rbrArr7r8rb�szMySQLCursorPrepared.closercCsdS)z�Convert row data from MySQL to Python types

        The conversion is done while reading binary data in the protocol module.
        Nr7rr7r7r8r �sz"MySQLCursorPrepared._row_to_pythonr�c�s�t|t�r*d|j_d|_|�|�IdHnV|d|_d|j_d|_d|dvrb|�|dd�nd|dvr�|�|dd�dS)zHandle result after executionFNr,Tr1rr2)rhr�r_r�r+r�r�r3r�r7r7r8r{�s

z"MySQLCursorPrepared._handle_resultFr�c
�sv|jstd��|sdS|jj}|dkr*d}t|t�svz|�|�}Wn2tyt}ztt|��|�WYd}~n
d}~00t�t�r�t�	t
|�}zt�fdd�|D���Wn.ty�}ztd�|�WYd}~n
d}~00t�
td|�}||ju�r�|j�r|j�|jd	�IdH||_z|�|�}Wn4t�yX}ztt|��|�WYd}~n
d}~00d
|v�rrt�
td|�}z|j�|�IdH|_Wnt�y�d|_�Yn0|j�|jd	�IdH|jd�rֈ�s�dS��r0t�ttf��std
dt��j�d��d�d��t|jd�t��k�r0td
dd���du�r>d�|jj|jd	�|jdd�IdH}|�|�IdHdS)a4Prepare and execute a MySQL Prepared Statement

        This method will prepare the given operation and execute it using
        the optionally given parameters.

        If the cursor instance already had a prepared statement, it is
        first closed.

        Note: argument "multi" is unused.
        r�NZutf8mb4�utf8c3s|]}�|VqdSrYr7)rorS�r2r7r8r��rqz.MySQLCursorPrepared.execute.<locals>.<genexpr>z6Not all placeholders were found in the parameters dict�?r.s%s�?�
parametersi�zIncorrect type of argument: r�zP), it must be of type tuple or list the argument given to the prepared statement)�errno�msgz:Incorrect number of arguments executing prepared statementr7)�datar;)r_r �charsetrhr��decoder�r�rG�findallrrtr�rVrryr*r/rir�rZcmd_stmt_preparerZcmd_stmt_resetr�r�rCr@Zcmd_stmt_executer{)r6r�r2r�r?rlZreplacement_keysr]r7r8r8r��s�
$
��$
����
�zMySQLCursorPrepared.executer�c
�s�|r|sdS|j��IdHzt|�}Wn.tyV}ztd�|�WYd}~n
d}~00d}zF|D]<}|�||�IdH|jr�|��r�|��IdH||j	7}qbWn8t
tfy�}ztd|���d�WYd}~n
d}~00||_	dS)aDPrepare and execute a MySQL Prepared Statement many times

        This method will prepare the given operation and execute with each
        tuple found the list seq_params.

        If the cursor instance already had a prepared statement, it is
        first closed.

        executemany() simply calls execute().
        Nr�rr�)r_r`r�r�r r�r�r�r�r�rPr)r6r�r�r�rlr�r2r7r7r8r�s" &zMySQLCursorPrepared.executemanyc�s8|��|jr&|j�|jd�IdH|��IdHp6dS)rr.N)r�r-r_�cmd_stmt_fetchr*r�rAr7r7r8rZ+szMySQLCursorPrepared.fetchonerc�sP|��g}|p|j}|dkrL|��rL|d8}|��IdH}|r|�|�q|S)�<Return the next set of rows of a query result set.

        When no more rows are available, it returns an empty list.
        The number of rows returned can be specified using the size argument,
        which defaults to one.

        Returns:
            list: The next set of rows of a query result set.
        rr,N)r�rr�r�r�rr7r7r8r6s

zMySQLCursorPrepared.fetchmanyc�s�|��g}|jdr&|�|jd�|��r�|jrN|j�|jdt�IdH|jj	|j
|jd�IdH\}}|�|�|�
|�IdHq&t|�|_|S)r�rr.N)r�rx)r�r�r�r�r-r_rBr*rr�r�r��extendr�r@r��r6rr�r�r7r7r8r�Js 

�
�

zMySQLCursorPrepared.fetchall)T)r7)r7)N)NF)N)'rCrDrErFr.r9rr�r'r�rJr3r#r�rr
r�r*rrrr�rr/r�rbr r{rr%r�r&r�r)rZr	rr�rr7r7rr8r)Ss>

�
�	��^�#r)cs:eZdZdZdeeeeee	fd��fdd�
Z
�ZS)�MySQLCursorPreparedDicta�
    This class is a blend of features from MySQLCursorDict and MySQLCursorPrepared

    Multiple inheritance in python is allowed but care must be taken
    when assuming methods resolution. In the case of multiple
    inheritance, a given attribute is first searched in the current
    class if it's not found then it's searched in the parent classes.
    The parent classes are searched in a left-right fashion and each
    class is searched once.
    Based on python's attribute resolution, in this case, attributes
    are searched as follows:
    1. MySQLCursorPreparedDict (current class)
    2. MySQLCursorDict (left parent class)
    3. MySQLCursorPrepared (right parent class)
    4. MySQLCursor (base class)
    Nrc�s"�fdd�t�j|d�IdHD�S)a�Return the next set of rows of a query result set.

        When no more rows are available, it returns an empty list.
        The number of rows returned can be specified using the size argument,
        which defaults to one.

        Returns:
            list: The next set of rows of a query result set represented
                  as a list of dictionaries where column names are used as keys.
        csg|]}|r��|�j��qSr7r!r"rAr7r8rp�s�z5MySQLCursorPreparedDict.fetchmany.<locals>.<listcomp>�rN�r
r�r6rrrAr8rts
�z!MySQLCursorPreparedDict.fetchmany)N)rCrDrErFrrJr	rr�r(rrr7r7rr8rFbs��rFcs2eZdZdZdeeeed��fdd�
Z�Z	S)�MySQLCursorPreparedNamedTuplez^
    This class is a blend of features from MySQLCursorNamedTuple and MySQLCursorPrepared
    Nrc�s"�fdd�t�j|d�IdHD�S)a�Return the next set of rows of a query result set.

        When no more rows are available, it returns an empty list.
        The number of rows returned can be specified using the size argument,
        which defaults to one.

        Returns:
            list: The next set of rows of a query result set represented
                  as a list of named tuples where column names are used as names.
        csg|]}|r��|�j��qSr7r!r"rAr7r8rp�s�z;MySQLCursorPreparedNamedTuple.fetchmany.<locals>.<listcomp>rGNrHrIrrAr8r�s
�z'MySQLCursorPreparedNamedTuple.fetchmany)N)
rCrDrErFrrJr	r)rrr7r7rr8rJ�srJc@s\eZdZUdZdZeed<eed�dd�Z	d
ee
eed�d	d
�Zeed�dd�Z
dS)�MySQLCursorPreparedRawzW
    This class is a blend of features from MySQLCursorRaw and MySQLCursorPrepared
    Tr�r?c�s>|��|jr&|j�|jd�IdH|j|jd�IdHp<dS)rr.Nr�)r�r-r_rBr*r�r�rAr7r7r8rZ�szMySQLCursorPreparedRaw.fetchoneNrc�sV|��g}|p|j}|dkrR|��rR|d8}|j|jd�IdH}|r|�|�q|S)rCrr,r�N)r�rr�r�r�r�rr7r7r8r�s

z MySQLCursorPreparedRaw.fetchmanyc�s�|��g}|jdr&|�|jd�|��r�|jrN|j�|jdt�IdH|jj	|j
|j|jd�IdH\}}|�
|�|�|�IdHq&t|�|_|S)r�rr.N)r�r�rx)r�r�r�r�r-r_rBr*rr�r�r�r�rDr�r@r�rEr7r7r8r��s 

�
�

zMySQLCursorPreparedRaw.fetchall)N)rCrDrErFr�rrrr)rZrJr	rr�r7r7r7r8rK�s

rK)GrF�__all__rGr��collectionsr�decimalr�typingrrrrr	r
rrr
r�	constantsrr�rrrrrrrrrrrr�errorsrrrr r!�typesr"r#r$r%r&r'r(r)r*r+Z	abstractsr-r.r/r�r0r<rXrr�rr�r�r�r�r�r)rFrJrKr7r7r7r8�<module>sB0
80 />$
-:  &

Youez - 2016 - github.com/yon3zu
LinuXploit