Your IP : 3.140.188.174
3
�Qg�] � @ s d dl Z dZddddg\ZZZZeZeZ G dd� de
�Zd d
� Zdd� Z
d
d� Zdd� Zdd� Zdd� Zdd� Zdd� Zdd� Zd ZZy�d dlZd dlZd dlZdgZejjd�s�ejd� xLeD ]DZyejej j!e��Z"W n e#k
r� w�Y nX e$e"d�r�e"j%ZP q�W [ejdk�r<ee j&� j'j(d �d �d!k�r<dZyej)j*Z"W n dZ"Y nX e+e"d"e+e"d#d��ZW n Y nX d$d%� Z,d&d'� Z-d(d)� Z.da/e-eegZ0e,eeeeegZ1d*d+� Z2da3d8d,d-�Z4d.d/� Z5d0d1� Z6d2d3� Z7ed4�Z8ed5�Z9ed6�Z:ed7�Z;dS )9� NzKa-Ping Yee <ping@zesty.ca>zreserved for NCS compatibilityzspecified in RFC 4122z$reserved for Microsoft compatibilityzreserved for future definitionc @ s e Zd Zd6dd�Zdd� Zdd� Zdd � Zd
d� Zdd
� Zdd� Z dd� Z
dd� Zdd� Zdd� Z
edd� �Zedd� �Zedd� �Zedd� �Zed d!� �Zed"d#� �Zed$d%� �Zed&d'� �Zed(d)� �Zed*d+� �Zed,d-� �Zed.d/� �Zed0d1� �Zed2d3� �Zed4d5� �ZdS )7�UUIDNc C s� |||||gj d �dkr td��|d k rl|jdd�jdd�}|jd�jdd�}t|�dkrbtd ��t|d
�}|d k r�t|�d
kr�td��|d'd d(� |d)d*d+� |d,d-d.� |dd � }|d k � r�t|�d
kr�td��tj|dd�}|d k �r"t|�d
k�r
td��|\}}} }
}}d| k�o.d/k n �s>td��d| k�oRd0k n �sbtd��d| k�ovd1k n �s�td��d|
k�o�d2k n �s�td��d| k�o�d3k n �s�td��d| k�o�d4k n �s�td��|
d>