;ò éU‡>c@s£dZdkZdkZdklZlZdkZdkZdk l Z dk l Z ydk lZWn ej odklZnXyeefWnej odZdZnXdZd Zd Zd Zd Zd d ZdZdZdZdZdZe dƒZe dƒZ ei!dei"ei#BƒZ$ei!dƒZ%ei!dƒZ&ei'i(Z(d„Z)e*e*d d„Z+dfd„ƒYZ,d„Z-d„Z.dS(s+Header encoding and decoding functionality.N(s StringTypes UnicodeType(sHeaderParseError(sCharset(s _floordiviis s s s u isuiLisus-asciisutf-8si =\? # literal =? (?P[^?]*?) # non-greedy up to the next ? is the charset \? # literal ? (?P[qb]) # either a "q" or a "b", case insensitive \? # literal ? (?P.*?) # non-greedy up to the next ?= is the encoded string \?= # literal ?= s([,;])s[\041-\176]+:$c CsKt|ƒ}ti|ƒ o|tfgSng}d} x|iƒD]ø} ti| ƒ o|i | tfƒqGnti | ƒ}xµ|o­|i dƒi ƒ}|oW|o|ddtjo$|ddt|tf|d