| x{[c           @   sL   d  d l  Z  d  d l Z d  d l Z d   Z d   Z d   Z d   Z d S(   iÿÿÿÿNc         C   s   t  |  s t |   d  St  |  d k rG t |  t | d   d  St  |  d k r t |  t | d  t | d   n  t S(   Ni   i    i   (   t   lent   __DoLogic_ClearAllItemt   __DoLogic_ClearSingItemt   intt   __DoLogic_ClearSingItem_Countt   True(   t     |