PNG  IHDR;IDATxܻn0K )(pA 7LeG{ §㻢|ذaÆ 6lذaÆ 6lذaÆ 6lom$^yذag5bÆ 6lذaÆ 6lذa{ 6lذaÆ `}HFkm,mӪôô! x|'ܢ˟;E:9&ᶒ}{v]n&6 h_tڠ͵-ҫZ;Z$.Pkž)!o>}leQfJTu іچ\X=8Rن4`Vwl>nG^is"ms$ui?wbs[m6K4O.4%/bC%t Mז -lG6mrz2s%9s@-k9=)kB5\+͂Zsٲ Rn~GRC wIcIn7jJhۛNCS|j08yiHKֶۛkɈ+;SzL/F*\Ԕ#"5m2[S=gnaPeғL lذaÆ 6l^ḵaÆ 6lذaÆ 6lذa; _ذaÆ 6lذaÆ 6lذaÆ RIENDB`  wSc@skddlmZmZmZddlmZddlZddlmZddZ dddYZ dS( i(t constantst exceptionstutil(t BaseImageN(t bisect_leftcKs#t|}|j||jS(N(tQRCodetadd_datat make_image(tdatatkwargstqr((s//usr/lib/python2.7/site-packages/qrcode/main.pytmakes  RcBseZdejddddZdZddZedZ dZ dZ dd Z d Z dd Zdeed Zdd ZdZdZdZdZdZdZRS(i icCs}|ot||_t||_t||_t||_||_|dk rot|tsot n|j dS(N( tinttversionterror_correctiontbox_sizetbordert image_factorytNonet issubclassRtAssertionErrortclear(tselfR RRRR((s//usr/lib/python2.7/site-packages/qrcode/main.pyt__init__s  cCs(d|_d|_d|_g|_dS(s* Reset the internal data. iN(Rtmodulest modules_countt data_cachet data_list(R((s//usr/lib/python2.7/site-packages/qrcode/main.pyRs   icCsmt|tjr%|jj|n;|rG|jjtj|n|jjtj|d|_dS(s Add data to this QR Code. :param optimize: Data will be split into multiple chunks to optimize the QR size by finding to more compressed modes of at least this length. Set to ``0`` to avoid optimizing at all. N( t isinstanceRtQRDataRtappendtextendtoptimal_data_chunksRR(RRtoptimize((s//usr/lib/python2.7/site-packages/qrcode/main.pyR(s cCs@|s|j r&|jd|jn|jt|jdS(s Compile the data into a QR Code array. :param fit: If ``True`` (or if a size has not been provided), find the best fit for the data to avoid data overflow errors. tstartN(R tbest_fittmakeImpltFalsetbest_mask_pattern(Rtfit((s//usr/lib/python2.7/site-packages/qrcode/main.pyR 9scCsN|jdd|_dg|j|_xYt|jD]H}dg|j|j|} |j|| qMW|r|jdn|jdqW|jdS(s Output the QR Code using ASCII characters. :param tty: use fixed TTY color codes (forces invert=True) :param invert: invert the ASCII characters (solid <-> transparent) iNs Not a ttyiiiitcp437cslr/jr/t||jkr/dSt||dksYt||kr]dSj||S(Nii(RtmaxtminR(txty(tinvertRNR(s//usr/lib/python2.7/site-packages/qrcode/main.pyt get_modules *iis s ss (iiii(RRHRIRJRKRR RtchrtdecodeR4treverseR(RR=RL( RRMtttyRURHtcodetcodesRVR5R6tpos((RURNRs//usr/lib/python2.7/site-packages/qrcode/main.pyt print_asciis4     (  $!$cKs|jdkr|jn|dk r@t|tsntn.|j}|dkrnddlm}|}n||j |j |j |}xUt |j D]D}x;t |j D]*}|j ||r|j||qqWqW|S(su Make an image from the QR Code data. If the data has not been compiled yet, make it first. i(tPilImageN(RRR RRRRtqrcode.image.pilR_RRRR(Rtdrawrect(RRR R_timR5R6((s//usr/lib/python2.7/site-packages/qrcode/main.pyRs     cCsxVtd|jdD]>}|j|ddk r:qn|ddk|j|d}|jd|dk rqpn|ddk|jd|nxtddD]}xtddD]}|dks|dks|dks|dks|dkr|dkrt|j||||Wq%WdS(Niiii( Rtpattern_positionR R(R<RRR4R%(RR]RFtjR2R3R5R6((s//usr/lib/python2.7/site-packages/qrcode/main.pyR*s  0cCstj|j}xWtdD]I}| o=||?d@dk}||j|d|d|jdd|B}tj|}xtdD]}| oK||?d@dk}|dkrn||j|ds