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XkpY-yii5YedybDTa-4blEjKMqvo6GBJm00Sjr_TrD-x7iCCvkrulryFvv6sfRptQcNBdfxCMJ5Sz_68ZgTJ=HNWXLrTOK_ZaNrLzxReTeVaGoG9zr4KyPyfcoV5WHKKZ9bjJIe2sNuTrAaIyyyVot6OjYpDmnrJOTb09XrfJDz94LdNp5_Ld6jZHshN6GM4QWPx9JRndrOcEy_=KXx4p6yPa3JWodSmNcV8WP6WBHuevf8QkTLJ8VXQqauBzrobs4MdOwsJWAz3PYaY34ssyKuDJ_V1m9yxEKMr9_4xDo8VgoBPxCEhzoti3VIGZ8G0=a9QuFGb-=-HJuuhfuf2cD_cZl57kIkHQitPD3aVIBgcrBt4oPYLeRlezvB8Ja7EptY7CnP=T0ooIeE=-SLG3NOnkraQ2ezC8fK_2HDY4JsFvYA_Q6O5Ol=e6MPwX=qJV90d2ZBLwqX4ZLQ3_gwhhG0KtOc5pNorXK=gj6OdoaOxKXLroMmH3L4=tHl-xsDGzKuBa-yQifjgrIxsB6E0jxmHHA_V=XyPO5EwYMmMK6yVi6naBcRdABu3STQ3ABVoJRY0bEhiTuu4gSbz=BKwtvBZMfEbupkB8NKCB1sjrS6_XM=xOh5kW=SyId1x_XZJCb47wuHndX_4tk5Thz8sNsgtFIMzcliPyZ9wmCCVdHOOxQfdm6Z1wpJM-a1zLLEasdhhrjCVAeI=Eo_YmCj'
s = '5ijT4T7zVmn7-y1dR1snoCNa1aGxK2-dplkeQSnRxy40onfQOPuhkFM_ntL-Wc7F72sAWrnuBmaOdsZbqCIBnM0gdMvAIJylJG61fFgBMwZh7rTZZOQIss_FqBQfShcJgDOI_kLMfbPgcNA0vuw_59lMV6gC2cKC0a88EB5R8YVw2FfSz5OLdX-S-IIbyjtEE=SEmR33i'
res = []
for i in s:
    res.append(bases.index(i))
print(res)

import struct
keys = [
   3621878001,  1246704098,
  -1612094017,   529399774,
   3097799895,  2467146295,
    528884734,  1852669328,
   -278555461,  -170482350,
    183697865,  2252209194,
   1216198928, -1693954187,
    829512098,  -344800391
]

res = []
for k in keys:
    res.extend(list(bytearray(struct.pack('l', k)))[:4])

print(res)
r = [
   64, 139, 172, 137,  50, 200, 180, 198, 211,  52,  56,
  134,  89, 116, 143,  46, 124,  45, 164, 251, 144, 152,
   86,  49,  73, 213, 110,  34, 171,   7,   9, 157, 135,
  160, 248,  17, 196, 158, 106,  39,   1, 101, 245, 126,
  117, 126,   1,  73, 255,  50,  12, 194, 158, 142, 195,
   80, 110, 218, 250, 167,  27,  39, 220,  96
]

# self.devicedata = {
#     "parameters": {"antialias": True, "maxAnisotropy": 16, "dimensions": ["11", "11024", "3276732767"],
#                                   "params": {"alphaBits": 8, "blueBits": 8, "greenBits": 8, "redBits": 8,
#                                              "depthBits": 24, "maxCombinedTextureImageUnits": 32,
#                                              "maxCubeMapTextureSize": 16384, "maxFragmentUniformVectors": 1024,
#                                              "maxRenderbufferSize": 16384, "maxTextureImageUnits": 16,
#                                              "maxTextureSize": 16384, "maxVaryingVectors": 30, "maxVertexAttribs": 16,
#                                              "maxVertexTextureImageUnits": 16, "maxVertexUniformVectors": 4096,
#                                              "renderer": "WebKit WebGL",
#                                              "shadingLanguageVersion": "WebGL GLSL ES 1.0 (OpenGL ES GLSL ES 1.0 Chromium)",
#                                              "stencilBits": 0, "vendor": "WebKit",
#                                              "version": "WebGL 1.0 (OpenGL ES 2.0 Chromium)"},
#                                   "debugInfo": {"vendor": "Google Inc.", "renderer": random.choice(GRAPHICSDRIVER)}},
#                    "shaderPrecisions": ["23127127", "23127127", "23127127", "23127127", "23127127", "23127127", "03130",
#                                         "03130", "03130", "03130", "03130", "03130"],
#                    "supportedExtensions": ["ANGLE_instanced_arrays", "EXT_blend_minmax", "EXT_color_buffer_half_float",
#                                            "EXT_disjoint_timer_query", "EXT_float_blend", "EXT_frag_depth",
#                                            "EXT_shader_texture_lod", "EXT_texture_filter_anisotropic",
#                                            "WEBKIT_EXT_texture_filter_anisotropic", "EXT_sRGB",
#                                            "KHR_parallel_shader_compile", "OES_element_index_uint",
#                                            "OES_standard_derivatives", "OES_texture_float", "OES_texture_float_linear",
#                                            "OES_texture_half_float", "OES_texture_half_float_linear",
#                                            "OES_vertex_array_object", "WEBGL_color_buffer_float",
#                                            "WEBGL_compressed_texture_s3tc", "WEBKIT_WEBGL_compressed_texture_s3tc",
#                                            "WEBGL_compressed_texture_s3tc_srgb", "WEBGL_debug_renderer_info",
#                                            "WEBGL_debug_shaders", "WEBGL_depth_texture", "WEBKIT_WEBGL_depth_texture",
#                                            "WEBGL_draw_buffers", "WEBGL_lose_context", "WEBKIT_WEBGL_lose_context"],
#                    "contextProperties": -368668372}


