Its working perfectly but i have searched alot but cant generate similar array when using gzip.
its giving me array with different values.
after
compression: (HEX format) 789ccd586d73e23610fe2baeae73d88303e1daf45ac0c910c235b4145220cd4ca73319618be089915c4986bb66f2dfbb925f30d8e4e0d29be9175eacd5b38ff6cdab9d47d4953ea386cb02c6bb0116c224d69358fbd25d98c41946cb19e1f0c87a72b12046f77e7a3bfefd76d49ff49a9cc88853041f7f47cc1704b51291de6fbd716770950a9025e138f0b2e59bdeb4371ef7ffe88d53899048c2b9bf223c13baeb4d3b939bebce609a0aad89c4225ce040664293dbe187c1e86e0324223a0fd83a87d3ed8cc7a30cc3c59cb3cdfecea0ff6767dc1fa6cb38f0ffc1dca799c07034ec353d32c751205321f4fc3c4fad2624e6d2b49ed6642698fbe850b236eec86c02bf8934d15a34eb75545dfbd463eb5ac05cac76d5164c488a97a48aea6b812c3bd95d639485843a29ba7284cba8600181bd0f0017cb194a0ab67d6ba237b03e9158460053c39e173b1069679e3c70522a27c947e0d665941257120f59cf39066ec004f93c052d5682cdc992adc8413476e97245650fd91eb88d1b7563c88c843790db264e94c85ee2e4ff44754984c00ffbad4cacd60a73c3757e998c86b51073414c52f3b0c496cd1cd3636eb42454d666ccfb642364b59274756bf25348924cbdeddf4ffbd3dea099894b5f06c4716b019e9140b35f629f5e13ec41be58b5855c0666b26ab5669ce0c7568a34e85c0292dac2d95a19248410f44cd4f6fc15c40298c6a9c8355355245a5261409e798674412be106aae68a8b5bd37fac2aaa9cb7176786ef391510a8f99e7aa27e690255d4ae2fce40024c79de1621a65a32c84453ad5adad09f276b8ec31863858388280cb5f3bc5d079ae768f75097b7d3e968f8995341601d7faab273c031669194503420005824089404ea54e2676ee0bb8f667a38db903c225625958cc27d72731c082558b462668178636603edf758d48250349f248bdc85ae63cd7c3c925ac8c90a8e7a15573fd3b2f314d47efb9b53ebf9790f2218f278bc86c2dbf1d2e4ae3fed5e43895729211cd48e3dae4e2c8ae110678201faa1027b600a9b3a5bfef42978c8a761240d952c4e458bced8c7d8886283c86857514b31e12d98d99d464100564fb4a4b66da153e43889e9dfbe350f24fb95496e7bbe24d0b762e72b843daa8a2a550ff4cabe64ecde74ae9a0ccc80530a5011e73e5f56b6f325c45e1c31ddde10da08db7829695e104e3367c1c9dca9bc890d1bba9b249a4c4737ed3a3e471945c5f02b94c03dc582e255ce1292b300a423b05fe09f8391ca8df26174a8457624cbcd31df98e3afe8ddd9e53b651070a4ff328b71ffe7ebe9813c0ab2e54cf8973119f43e1c4a6457b49c47f0653c2e3bdd5f0fe4b12b5ace63b69f471d820455990a2688a1edf44f3d7a6ce9df0a9bddda5f027a40f52f816c6c208357f2d4de2c102da21e4334879963ca5fc9344e8002d522ec3154f3a039aeb35772d5b159a05a443d866a0e33c7d47d25d3a4e017b816718fe1ba855a6c566eae3ad35eae57cec22d69ad756350b625eb71f21dc445f64ad7fa4eade6f68346a1531af4af00e30b5f51eacf89087cef3fe9d8d3c6a2a4ebe18fcb4c51fc75e2f9c285db3549ffefd79f6f8a38a60fa4622c7da8b4a7f08d3f3a95c629fcd2e68b49266d702529832ff54240c10fe5b9a277afa1279a8c5979933b84d56aff554f2451a92b6327c407b957374c53e94a212c3be16423a08a54142520e99421bd08eafbac896ee9238577893eb201174b1d9a709dcc0d21f27d34b15db8ff5da4774da18f36536fa326aa12abb9b31085faf1062b0b7500b2d96610948e7f740234d98e82d04d34b8bb1a4257ab70b74c0515bf0831df0b312f815055a38831db8b312bc150f5bc8811ecc5084a3074a12d82f0bd203c01c90f91d2b4d6ce536d3bd4800b1d35ca39355f98a899dc359075616e230a0c282ba2fd68a7a146b66616e956abb9bbd7a77b766f0f4736000d45cd7c594d1e27e42cdc2ca9526c354f0103ae479fd5f6124ec3b29e55a6c86ccee19cdae9a0c269d8d9f5de7967e72e91ce7776dcc83bdfdbc9a5c339b3f385dbf9c1de29cace7b3b2baece8ff6569e3b3fd910cca05ac523a85521051a755480ae385d40576e6c0ac2d9841476e4c7a1b0333ff854009b11a74689a799407933bb04c2f19cd279afa74689875bff020d6e1b71
Size: 1557
['x', '\x9c', '\xcd', 'X', 'm', 's', '\xe2', '6', '\x10', '\xfe', '+', '\xae', '\xae', 's', '\xd8', '\x83', '\x03', '\xe1', '\xda', '\xf4', 'Z', '\xc0', '\xc9', '\x10', '\xc2', '5', '\xb4', '\x14', 'R', ' ', '\xcd', 'L', '\xa7', '3', '\x19', 'a', '\x8b', '\xe0', '\x89', '\x91', '\', 'I', '\x86', '\xbb', 'f', '\xf2', '\xdf', '\xbb', '\x92', '', '0', '\xd8', '\xe4', '\xe0', '\xd2', '\x9b', '\xe9', '\x17', '^', '\xac', '\xd5', '\xb3', '\x8f', '\xf6', '\xcd', '\xab', '\x9d', 'G', '\xd4', '\x95', '>', '\xa3', '\x86', '\xcb', '\x02', '\xc6', '\xbb', '\x01', '\x16', '\xc2', '$', '\xd6', '\x93', 'X', '\xfb', '\xd2', ']', '\x98', '\xc4', '\x19', 'F', '\xcb', '\x19', '\xe1', '\xf0', '\xc8', 'z', 'r', '\xb1', ' ', 'F', '\xf7', '', 'z', ';', '\xfe', '\xfd', 'v', '\xd4', '\x9f', '\xf4', '\x9a', '\x9c', '\xc8', '\x88', 'S', '\x04', '\x1f', '\x7f', 'G', '\xcc', '\x17', '\x04', '\xb5', '\x12', '\x91', '\xde', 'o', '\xbd', 'q', 'g', 'p', '\x95', '\n', '\x90', '%', '\xe1', '8', '\xf0', '\xb2', '\xe5', '\x9b', '\xde', '\xb4', '7', '\x1e', '\xf7', '\xff', '\xe8', '\x8d', 'S', '\x89', '\x90', 'H', '\xc2', '\xb9', '\xbf', '"', '<', '\x13', '\xba', '\xeb', 'M', ';', '\x93', '\x9b', '\xeb', '\xce', '', '\x9a', '\n', '\xad', '\x89', '\xc4', '"', '\\', '\xe0', '@', 'f', 'B', '\x93', '\xdb', '\xe1', '\x87', '\xc1', '\xe8', 'n', '\x03', '$', '"', ':', '\x0f', '\xd8', ':', '\x87', '\xd3', '\xed', '\x8c', '\xc7', '\xa3', '\x0c', '\xc3', '\xc5', '\x9c', '\xb3', '\xcd', '\xfe', '\xce', '\xa0', '\xff', 'g', 'g', '\xdc', '\x1f', '\xa6', '\xcb', '8', '\xf0', '\xff', '\xc1', '\xdc', '\xa7', '\x99', '\xc0', 'p', '4', '\xec', '5', '=', '2', '\xc7', 'Q', ' ', 'S', '!', '\xf4', '\xfc', '<', 'O', '\xad', '&', '$', '\xe6', '\xd2', '\xb4', '\x9e', '\xd6', 'd', '&', '\x98', '\xfb', '\xe8', 'P', '\xb2', '6', '\xee', '\xc8', 'l', '\x02', '\xbf', '\x89', '4', '\xd1', 'Z', '4', '\xeb', 'u', 'T', ']', '\xfb', '\xd4', 'c', '\xeb', 'Z', '\xc0', '\\', '\xac', 'v', '\xd5', '\x16', 'L', 'H', '\x8a', '\x97', '\xa4', '\x8a', '\xea', 'k', '\x81', ',', ';', '\xd9', ']', 'c', '\x94', '\x85', '\x84', ':', ')', '\xba', 'r', '\x84', '\xcb', '\xa8', '
', '\x01', '\x81', '\xbd', '\x0f', '\x00', '\x17', '\xcb', '\x19', 'J', '\n', '\xb6', '}', 'k', '\xa2', '7', '\xb0', '>', '\x91', 'X', 'F', '\x00', 'S', '\xc3', '\x9e', '\x17', ';', '\x10', 'i', 'g', '\x9e', '<', 'p', 'R', '*', "'", '\xc9', 'G', '\xe0', '\xd6', 'e', '\x94', '\x12', 'W', '\x12', '\x0f', 'Y', '\xcf', '9', '\x06', 'n', '\xc0', '\x04', '\xf9', '<', '\x05', '-', 'V', '\x82', '\xcd', '\xc9', '\x92', '\xad', '\xc8', 'A', '4', 'v', '\xe9', 'r', 'E', 'e', '\x0f', '\xd9', '\x1e', '\xb8', '\x8d', '\x1b', 'u', 'c', '\xc8', '\x8c', '\x84', '7', '\x90', '\xdb', '&', 'N', '\x94', '\xc8', '^', '\xe2', '\xe4', '\xff', 'D', 'u', 'I', '\x84', '\xc0', '\x0f', '\xfb', '\xad', 'L', '\xac', '\xd6', '\n', 's', '\xc3', 'u', '', '\x99', '\x8c', '\x86', '\xb5', '\x10', 's', 'A', 'L', 'R', '\xf3', '\xb0', '\xc4', '\x96', '\xcd', '\x1c', '\xd3', 'c', 'n', '\xb4', '$', 'T', '\xd6', 'f', '\xcc', '\xfb', 'd', '#', 'd', '\xb5', '\x92', 't', 'u', 'k', '\xf2', 'S', 'H', '\x92', 'L', '\xbd', '\xed', '\xdf', 'O', '\xfb', '\xd3', '\xde', '\xa0', '\x99', '\x89', 'K', '', '\x06', '\xc4', 'q', 'k', '\x01', '\x9e', '\x91', '@', '\xb3', '', 'b', '\x9f', '^', '\x13', '\xec', 'A', '\xbe', 'X', '\xb5', '\x85', '\', '\x06', 'f', '\xb2', 'j', '\xb5', 'f', '\x9c', '\xe0', '\xc7', 'V', '\x8a', '4', '\xe8', '\', '\x02', '\x92', '\xda', '\xc2', '\xd9', 'Z', '\x19', '$', '\x84', '\x10', '\xf4', 'L', '\xd4', '\xf6', '\xfc', '\x15', '\xc4', '\x02', '\x98', '\xc6', '\xa9', '\xc8', '5', 'S', 'U', '$', 'Z', 'R', 'a', '@', '\x9e', 'y', '\x86', 't', 'A', '+', '\xe1', '\x06', '\xaa', '\xe6', '\x8a', '\x8b', '[', '\xd3', '\x7f', '\xac', '', '\xaa', '\x9c', '\xb7', '\x17', 'g', '\x86', '\xef', '9', '\x15', '\x10', '\xa8', '\xf9', '\x9e', 'z', '\xa2', '~', 'i', '\x02', 'U', '\xd4', '\xae', '/', '\xce', '@', '\x02', 'L', 'y', '\xde', '\x16', '!', '\xa6', 'Z', '2', '\xc8', 'D', 'S', '\xad', 'Z', '\xda', '\xd0', '\x9f', "'", 'k', '\x8e', '\xc3', '\x18', 'c', '\x85', '\x83', '\x88', '(', '\x0c', '\xb5', '\xf3', '\xbc', ']', '\x07', '\x9a', '\xe7', 'h', '\xf7', 'P', '\x97', '\xb7', '\xd3', '\xe9', 'h', '\xf8', '\x99', 'S', 'A', '', '\x1d', '\x7f', '\xaa', '\xb2', 's', '\xc0', '1', 'f', '\x91', '\x94', 'P', '4', ' ', '\x00', 'X', '$', '\x08', '\x94', '\x04', '\xea', 'T', '\xe2', 'g', 'n', '\xe0', '\xbb', '\x8f', 'f', 'z', '8', '\xdb', '\x90', '<', '"', 'V', '%', '\x95', '\x8c', '\xc2', '}', 'r', 's', '\x1c', '\x08', '%', 'X', '\xb4', 'b', 'f', '\x81', 'x', 'c', 'f', '\x03', '\xed', '\xf7', 'X', '\xd4', '\x82', 'P', '4', '\x9f', '$', '\x8b', '\xdc', '\x85', '\xae', 'c', '\xcd', '|', '<', '\x92', 'Z', '\xc8', '\xc9', '\n', '\x8e', 'z', '\x15', 'W', '?', '\xd3', '\xb2', '\xf3', '\x14', '\xd4', '~', '\xfb', '\x9b', 'S', '\xeb', '\xf9', 'y', '\x0f', '"', '\x18', '\xf2', 'x', '\xbc', '\x86', '\xc2', '\xdb', '\xf1', '\xd2', '\xe4', '\xae', '?', '\xed', '^', 'C', '\x89', 'W', ')', '!', '\x1c', '\xd4', '\x8e', '=', '\xae', 'N', ',', '\x8a', '\xe1', '\x10', 'g', '\x82', '\x01', '\xfa', '\xa1', '\x02', '{', '
', '\n', '\x9b', ':', '[', '\xfe', '\xf4', ')', 'x', '\xc8', '\xa7', 'a', '$', '\r', '\x95', ',', 'N', 'E', '\x8b', '\xce', '\xd8', '\xc7', '\xd8', '\x88', 'b', '\x83', '\xc8', 'h', 'W', 'Q', 'K', '1', '\xe1', '-', '\x98', '\xd9', '\x9d', 'F', 'A', '\x00', 'V', 'O', '\xb4', '\xa4', '\xb6', 'm', '\xa1', 'S', '\xe4', '8', '\x89', '\xe9', '\xdf', '\xbe', '5', '\x0f', '$', '\xfb', '\x95', 'I', 'n', '{', '\xbe', '$', '\xd0', '\xb7', 'b', '\xe7', '+', '\x84', '=', '\xaa', '\x8a', '', 'U', '\x0f', '\xf4', '\xca', '\xbe', 'd', '\xec', '\xde', 't', '\xae', '\x9a', '\x0c', '\xcc', '\x80', 'S', '\n', 'P', '\x11', '\xe7', '>', '', 'V', '\xb6', '\xf3', '%', '\xc4', '^', '\x1c', '1', '\xdd', '\xde', '\x10', '\xda', '\x08', '\xdb', 'x', ')', 'i', '^', '\x10', 'N', '3', 'g', '\xc1', '\xc9', '\xdc', '\xa9', '\xbc', '\x89', '\r', '\x1b', '\xba', '\x9b', '$', '\x9a', 'L', 'G', '7', '\xed', ':', '>', 'G', '\x19', 'E', '\xc5', '\xf0', '+', '\x94', '\xc0', '=', '\xc5', '\x82', '\xe2', 'U', '\xce', '\x12', '\x92', '\xb3', '\x00', '\xa4', '#', '\xb0', '', '\xe0', '\x9f', '\x83', '\x91', '\xca', '\x8d', '\xf2', 'a', 't', '\xa8', 'E', 'v', '$', '\xcb', '\xcd', '1', '\xdf', '\x98', '\xe3', '\xaf', '\xe8', '\xdd', '\xd9', '\xe5', ';', 'e', '\x10', 'p', '\xa4', '\xff', '2', '\x8b', 'q', '\xff', '\xe7', '\xeb', '\xe9', '\x81', '<', '\n', '\xb2', '\xe5', 'L', '\xf8', '\x97', '1', '\x19', '\xf4', '>', '\x1c', 'J', 'd', 'W', '\xb4', '\x9c', 'G', '\xf0', 'e', '<', '.', ';', '\xdd', '', '\x0f', '\xe4', '\xb1', '+', 'Z', '\xce', 'c', '\xb6', '\x9f', 'G', '\x1d', '\x82', '\x04', 'U', '\x99', '\n', '&', '\x88', '\xa1', '\xed', '\xf4', 'O', '=', 'z', 'l', '\xe9', '\xdf', '\n', '\x9b', '\xdd', '\xda', '', '\x02', 'z', '@', '\xf5', '/', '\x81', 'l', 'l', ' ', '\x83', 'W', '\xf2', '\xd4', '\xde', ',', '\x10', '-', '\xa2', '\x1e', 'C', '4', '\x87', '\x99', 'c', '\xca', '', '\xc9', '4', 'N', '\x80', '\x02', '\xd5', '"', '\xec', '1', 'T', '\xf3', '\xa0', '9', '\xae', '\xb3', 'W', 'r', '\xd5', '\xb1', 'Y', '\xa0', 'Z', 'D', '=', '\x86', 'j', '\x0e', '3', '\xc7', '\xd4', '}', '%', '\xd3', '\xa4', '\xe0', '\x17', '\xb8', '\x16', 'q', '\x8f', '\xe1', '\xba', '\x85', 'Z', 'l', 'V', 'n', '\xae', ':', '\xd3', '^', '\xae', 'W', '\xce', '\xc2', '-', 'i', '\xad', 'u', 'c', 'P', '\xb6', '%', '\xeb', 'q', '\xf2', '\x1d', '\xc4', 'E', '\xf6', 'J', '\xd7', '\xfa', 'N', '\xad', '\xe6', '\xf6', '\x83', 'F', '\xa1', 'S', '\x1a', '\xf4', '\xaf', '\x00', '\xe3', '\x0b', '', 'Q', '\xea', '\xcf', '\x89', '\x08', '|', '\xef', '?', '\xe9', '\xd8', '\xd3', '\xc6', '\xa2', '\xa4', '\xeb', '\xe1', '\x8f', '\xcb', 'L', 'Q', '\xfc', 'u', '\xe2', '\xf9', '\xc2', '\x85', '\xdb', '5', 'I', '\xff', '\xef', '\xd7', '\x9f', 'o', '\x8a', '8', '\xa6', '\x0f', '\xa4', 'b', ',', '}', '\xa8', '\xb4', '\xa7', '\xf0', '\x8d', '?', ':', '\x95', '\xc6', ')', '\xfc', '\xd2', '\xe6', '\x8b', 'I', '&', 'm', 'p', '%', ')', '\x83', '/', '\xf5', 'B', '@', '\xc1', '\x0f', '\xe5', '\xb9', '\xa2', 'w', '\xaf', '\xa1', "'", '\x9a', '\x8c', 'Y', 'y', '\x93', ';', '\x84', '\xd5', 'j', '\xff', 'U', 'O', '$', 'Q', '\xa9', '+', 'c', "'", '\xc4', '\x07', '\xb9', 'W', '7', 'L', 'S', '\xe9', 'J', '!', ',', ';', '\xe1', 'd', '#', '\xa0', '\x8a', 'T', '\x14', '%', ' ', '\xe9', '\x94', '!', '\xbd', '\x08', '\xea', '\xfb', '\xac', '\x89', 'n', '\xe9', '#', '\x85', 'w', '\x89', '>', '\xb2', '\x01', '\x17', 'K', '\x1d', '\x9a', 'p', '\x9d', '\xcc', '\r', '!', '\xf2', '}', '4', '\xb1', ']', '\xb8', '\xff', ']', '\xa4', 'w', 'M', '\xa1', '\x8f', '6', 'S', 'o', '\xa3', '&', '\xaa', '\x12', '\xab', '\xb9', '\xb3', '\x10', '\x85', '\xfa', '\xf1', '\x06', '+', '\x0b', 'u', '\x00', '\xb2', '\xd9', 'f', '\x10', '\x94', '\x8e', '\x7f', 't', '\x02', '4', '\xd9', '\x8e', '\x82', '\xd0', 'M', '4', '\xb8', '\xbb', '\x1a', 'B', 'W', '\xab', 'p', '\xb7', 'L', '\x05', '\x15', '\xbf', '\x08', '1', '\xdf', '\x0b', '1', '/', '\x81', 'P', 'U', '\xa3', '\x88', '1', '\xdb', '\x8b', '1', '+', '\xc1', 'P', '\xf5', '\xbc', '\x88', '\x11', '\xec', '\xc5', '\x08', 'J', '0', 't', '\xa1', '-', '\x82', '\xf0', '\xbd', ' ', '<', '\x01', '\xc9', '\x0f', '\x91', '\xd2', '\xb4', '\xd6', '\xce', 'S', 'm', ';', '\xd4', '\x80', '\x0b', '\x1d', '5', '\xca', '9', '5', '', '\x98', '\xa8', '\x99', '\xdc', '5', '\x90', 'u', 'a', 'n', '#', '\n', '\x0c', '(', '+', '\xa2', '\xfd', 'h', '\xa7', '\xa1', 'F', '\xb6', 'f', '\x16', '\xe9', 'V', '\xab', '\xb9', '\xbb', '\xd7', '\xa7', '{', 'v', 'o', '\x0f', 'G', '6', '\x00', '\r', 'E', '\xcd', '|', 'Y', 'M', '\x1e', "'", '\xe4', ',', '\xdc', ',', '\xa9', 'R', 'l', '5', 'O', '\x01', '\x03', '\xae', 'G', '\x9f', '\xd5', '\xf6', '\x12', 'N', '\xc3', '\xb2', '\x9e', 'U', '\xa6', '\xc8', 'l', '\xce', '\xe1', '\x9c', '\xda', '\xe9', '\xa0', '\xc2', 'i', '\xd8', '\xd9', '\xf5', '\xde', 'y', 'g', '\xe7', '.', '\x91', '\xce', 'w', 'v', '\xdc', '\xc8', ';', '\xdf', '\xdb', '\xc9', '\xa5', '\xc3', '9', '\xb3', '\xf3', '\x85', '\xdb', '\xf9', '\xc1', '\xde', ')', '\xca', '\xce', '{', ';', '+', '\xae', '\xce', '\x8f', '\xf6', 'V', '\x9e', ';', '?', '\xd9', '\x10', '\xcc', '\xa0', 'Z', '\xc5', '#', '\xa8', 'U', '!', '\x05', '\x1a', 'u', 'T', '\x80', '\xae', '8', ']', '@', 'W', 'n', 'l', '\n', '\xc2', '\xd9', '\x84', '\x14', 'v', '\xe4', '\xc7', '\xa1', '\xb0', '3', '?', '\xf8', 'T', '\x00', '\x9b', '\x11', '\xa7', 'F', '\x89', '\xa7', '\x99', '@', 'y', '3', '\xbb', '\x04', '\xc2', '\xf1', '\x9c', '\xd2', 'y', '\xaf', '\xa7', 'F', '\x89', '\x87', '[', '\xff', '\x02', '\r', 'n', '\x1b', 'q']
after decompression: (HEX format) 66756e6374696f6e20636f6c6f72436c6173732865297b73776974636828653d4e756d626572286529297b6361736520435f54555251554f4953453a72657475726e2274757271756f697365223b6361736520435f454d4552414c443a72657475726e22656d6572616c64223b6361736520435f504554455252495645523a72657475726e2270657465727269766572223b6361736520435f57455441535048414c543a72657475726e2277657461737068616c74223b6361736520435f53554e464c4f5745523a72657475726e2273756e666c6f776572223b6361736520435f434152524f543a72657475726e22636172726f74223b6361736520435f414c495a4152494e3a72657475726e22616c697a6172696e223b6361736520435f4e4f4e453a64656661756c743a72657475726e22227d7d66756e6374696f6e20737461727428297b776562736f636b3d6e657720576562536f636b6574282277733a2f2f222b77696e646f772e6c6f636174696f6e2e686f73746e616d652b222f777322292c776562736f636b2e6f6e6f70656e3d66756e6374696f6e2865297b636f6e736f6c652e6c6f672822776562736f636b206f70656e22292c24282223636f6e53746174757322292e616464436c6173732822636f6c6f722d677265656e22292c24282223636f6e53746174757322292e746578742822436f6e6e656374656422297d2c776562736f636b2e6f6e636c6f73653d66756e6374696f6e2865297b636f6e736f6c652e6c6f672822776562736f636b20636c6f736522292c24282223636f6e53746174757322292e72656d6f7665436c6173732822636f6c6f722d677265656e22292c24282223636f6e53746174757322292e616464436c6173732822636f6c6f722d72656422292c24282223636f6e53746174757322292e7465787428224572726f72202f204e6f20436f6e6e656374696f6e22297d2c776562736f636b2e6f6e6572726f723d66756e6374696f6e2865297b636f6e736f6c652e6c6f672865292c24282223636f6e53746174757322292e72656d6f7665436c6173732822636f6c6f722d677265656e22292c24282223636f6e53746174757322292e616464436c6173732822636f6c6f722d72656422292c24282223636f6e53746174757322292e7465787428224572726f72202f204e6f20436f6e6e656374696f6e22297d2c776562736f636b2e6f6e6d6573736167653d66756e6374696f6e2865297b636f6e736f6c652e6c6f672865293b76617220633d4a534f4e2e706172736528652e64617461292c6f3d28646f63756d656e742e626f64792c2222293b73776974636828632e74797065297b636173652055495f544954454c3a646f63756d656e742e7469746c653d632e6c6162656c2c242822236d61696e48656164657222292e68746d6c28632e6c6162656c293b627265616b3b636173652055495f4c4142454c3a24282223726f7722292e617070656e6428223c64697620636c6173733d2774776f20636f6c756d6e732063617264207463656e74657220222b636f6c6f72436c61737328632e636f6c6f72292b22273e3c68352069643d27222b632e69642b22273e222b632e6c6162656c2b223c2f68353e3c6872202f3e3c7370616e2069643d276c222b632e69642b222720636c6173733d276c6162656c206c6162656c2d77726170273e222b632e76616c75652b223c2f7370616e3e3c2f6469763e22293b627265616b3b636173652055495f425554544f4e3a24282223726f7722292e617070656e6428223c64697620636c6173733d276f6e6520636f6c756d6e732063617264207463656e74657220222b636f6c6f72436c61737328632e636f6c6f72292b22273e3c68353e222b632e6c6162656c2b223c2f68353e3c68722f3e3c627574746f6e206f6e6d6f757365646f776e3d27627574746f6e636c69636b28222b632e69642b222c20747275652927206f6e6d6f75736575703d27627574746f6e636c69636b28222b632e69642b222c2066616c736529272069643d27222b632e69642b22273e222b632e76616c75652b223c2f627574746f6e3e3c2f6469763e22292c24282223222b632e6964292e6f6e287b746f75636873746172743a66756e6374696f6e2865297b652e70726576656e7444656661756c7428292c627574746f6e636c69636b28632e69642c2130297d7d292c24282223222b632e6964292e6f6e287b746f756368656e643a66756e6374696f6e2865297b652e70726576656e7444656661756c7428292c627574746f6e636c69636b28632e69642c2131297d7d293b627265616b3b636173652055495f53574954434845523a76617220733d223c6c6162656c2069643d27736c222b632e69642b222720636c6173733d2773776974636820636865636b6564273e222c6e3d223c64697620636c6173733d27696e273e3c696e70757420747970653d27636865636b626f78272069643d2773222b632e69642b2227206f6e436c69636b3d27737769746368657228222b632e69642b222c6e756c6c292720636865636b65643e3c2f6469763e223b2230223d3d632e76616c7565262628733d223c6c6162656c2069643d27736c222b632e69642b222720636c6173733d27737769746368273e222c6e3d223c64697620636c6173733d27696e273e3c696e70757420747970653d27636865636b626f78272069643d2773222b632e69642b2227206f6e436c69636b3d27737769746368657228222b632e69642b222c6e756c6c2927203e3c2f6469763e22292c24282223726f7722292e617070656e6428223c6469762069643d27222b632e69642b222720636c6173733d276f6e6520636f6c756d6e732063617264207463656e74657220222b636f6c6f72436c61737328632e636f6c6f72292b22273e3c68353e222b632e6c6162656c2b223c2f68353e3c68722f3e222b732b6e2b223c2f6c6162656c3e3c2f6469763e22293b627265616b3b636173652055495f435041443a6f3d223c6120636c6173733d27636f6e6669726d27206f6e6d6f757365646f776e3d27706164636c69636b2843454e5445522c20222b632e69642b222c20747275652927206f6e6d6f75736575703d27706164636c69636b2843454e5445522c20222b632e69642b222c2066616c7365292720687265663d2723272069643d277063222b632e69642b22273e53544f503c2f613e223b636173652055495f5041443a24282223726f7722292e617070656e6428223c64697620636c6173733d2774776f20636f6c756d6e732063617264207463656e74657220222b636f6c6f72436c61737328632e636f6c6f72292b22273e3c68353e222b632e6c6162656c2b223c2f68353e3c68722f3e3c6e617620636c6173733d27636f6e74726f6c273e3c756c3e3c6c693e3c61206f6e6d6f757365646f776e3d27706164636c69636b28464f522c20222b632e69642b222c20747275652927206f6e6d6f75736575703d27706164636c69636b28464f522c20222b632e69642b222c2066616c7365292720687265663d2723272069643d277066222b632e69642b22273e5c75323542323c2f613e3c2f6c693e3c6c693e3c61206f6e6d6f757365646f776e3d27706164636c69636b2852494748542c20222b632e69642b222c20747275652927206f6e6d6f75736575703d27706164636c69636b2852494748542c20222b632e69642b222c2066616c7365292720687265663d2723272069643d277072222b632e69642b22273e5c75323542323c2f613e3c2f6c693e3c6c693e3c61206f6e6d6f757365646f776e3d27706164636c69636b284c4546542c20222b632e69642b222c20747275652927206f6e6d6f75736575703d27706164636c69636b284c4546542c20222b632e69642b222c2066616c7365292720687265663d2723272069643d27706c222b632e69642b22273e5c75323542323c2f613e3c2f6c693e3c6c693e3c61206f6e6d6f757365646f776e3d27706164636c69636b284241434b2c20222b632e69642b222c20747275652927206f6e6d6f75736575703d27706164636c69636b284241434b2c20222b632e69642b222c2066616c7365292720687265663d2723272069643d277062222b632e69642b22273e5c75323542323c2f613e3c2f6c693e3c2f756c3e222b6f2b223c2f6e61763e3c2f6469763e22292c242822237066222b632e6964292e6f6e287b746f75636873746172743a66756e6374696f6e2865297b652e70726576656e7444656661756c7428292c706164636c69636b28464f522c632e69642c2130297d7d292c242822237066222b632e6964292e6f6e287b746f756368656e643a66756e6374696f6e2865297b652e70726576656e7444656661756c7428292c706164636c69636b28464f522c632e69642c2131297d7d292c24282223706c222b632e6964292e6f6e287b746f75636873746172743a66756e6374696f6e2865297b652e70726576656e7444656661756c7428292c706164636c69636b284c4546542c632e69642c2130297d7d292c24282223706c222b632e6964292e6f6e287b746f756368656e643a66756e6374696f6e2865297b652e70726576656e7444656661756c7428292c706164636c69636b284c4546542c632e69642c2131297d7d292c242822237072222b632e6964292e6f6e287b746f75636873746172743a66756e6374696f6e2865297b652e70726576656e7444656661756c7428292c706164636c69636b2852494748542c632e69642c2130297d7d292c242822237072222b632e6964292e6f6e287b746f756368656e643a66756e6374696f6e2865297b652e70726576656e7444656661756c7428292c706164636c69636b2852494748542c632e69642c2131297d7d292c242822237062222b632e6964292e6f6e287b746f75636873746172743a66756e6374696f6e2865297b652e70726576656e7444656661756c7428292c706164636c69636b284241434b2c632e69642c2130297d7d292c242822237062222b632e6964292e6f6e287b746f756368656e643a66756e6374696f6e2865297b652e70726576656e7444656661756c7428292c706164636c69636b284241434b2c632e69642c2131297d7d292c242822237063222b632e6964292e6f6e287b746f75636873746172743a66756e6374696f6e2865297b652e70726576656e7444656661756c7428292c706164636c69636b2843454e5445522c632e69642c2130297d7d292c242822237063222b632e6964292e6f6e287b746f756368656e643a66756e6374696f6e2865297b652e70726576656e7444656661756c7428292c706164636c69636b2843454e5445522c632e69642c2131297d7d293b627265616b3b63617365205550444154455f4c4142454c3a242822236c222b632e6964292e68746d6c28632e76616c7565293b627265616b3b63617365205550444154455f53574954434845523a2230223d3d632e76616c75653f737769746368657228632e69642c30293a737769746368657228632e69642c31293b627265616b3b636173652055495f534c494445523a24282223726f7722292e617070656e6428223c64697620636c6173733d2774776f20636f6c756d6e732063617264207463656e74657220636172642d736c6964657220222b636f6c6f72436c61737328632e636f6c6f72292b22273e3c68352069643d27222b632e69642b22273e222b632e6c6162656c2b223c2f68353e3c6872202f3e3c6469762069643d27736c222b632e69642b222720636c6173733d27726b6d642d736c6964657220736c696465722d646973637265746520736c696465722d222b636f6c6f72436c61737328632e636f6c6f72292b22273e3c696e70757420747970653d2772616e676527206d696e3d273027206d61783d27313030272076616c75653d27222b632e76616c75652b22273e3c2f6469763e3c2f6469763e22292c24282223726f7722292e617070656e6428223c7363726970743e726b6d645f72616e6765536c69646572282723736c222b632e69642b2227293b3c5c2f7363726970743e22293b627265616b3b63617365205550444154455f534c494445523a736c696465725f6d6f76652824282223736c222b632e6964292c632e76616c75652c22313030222c2131293b627265616b3b64656661756c743a636f6e736f6c652e6572726f722822556e6b6e6f776e2074797065206f72206576656e7422297d7d7d66756e6374696f6e20627574746f6e636c69636b28652c63297b633f776562736f636b2e73656e64282262646f776e3a222b65293a776562736f636b2e73656e6428226275703a222b65297d66756e6374696f6e20706164636c69636b28652c632c6f297b7377697463682865297b636173652043454e5445523a6f3f776562736f636b2e73656e6428227063646f776e3a222b63293a776562736f636b2e73656e642822706375703a222b63293b627265616b3b6361736520464f523a6f3f776562736f636b2e73656e6428227066646f776e3a222b63293a776562736f636b2e73656e642822706675703a222b63293b627265616b3b63617365204241434b3a6f3f776562736f636b2e73656e6428227062646f776e3a222b63293a776562736f636b2e73656e642822706275703a222b63293b627265616b3b63617365204c4546543a6f3f776562736f636b2e73656e642822706c646f776e3a222b63293a776562736f636b2e73656e642822706c75703a222b63293b627265616b3b636173652052494748543a6f3f776562736f636b2e73656e6428227072646f776e3a222b63293a776562736f636b2e73656e642822707275703a222b63297d7d66756e6374696f6e20737769746368657228652c63297b6e756c6c3d3d633f2428222373222b65292e697328223a636865636b656422293f28776562736f636b2e73656e642822736163746976653a222b65292c24282223736c222b65292e616464436c6173732822636865636b65642229293a28776562736f636b2e73656e64282273696e6163746976653a222b65292c24282223736c222b65292e72656d6f7665436c6173732822636865636b65642229293a313d3d633f2824282223736c222b65292e616464436c6173732822636865636b656422292c24282223736c222b65292e70726f702822636865636b6564222c213029293a303d3d6326262824282223736c222b65292e72656d6f7665436c6173732822636865636b656422292c24282223736c222b65292e70726f702822636865636b6564222c213129297d636f6e73742055495f544954454c3d302c55495f4c4142454c3d312c55495f425554544f4e3d322c55495f53574954434845523d332c55495f5041443d342c55495f435041443d352c5550444154455f4c4142454c3d362c5550444154455f53574954434845523d372c55495f534c494445523d382c5550444154455f534c494445523d392c464f523d302c4241434b3d312c4c4546543d322c52494748543d332c43454e5445523d342c435f54555251554f4953453d302c435f454d4552414c443d312c435f504554455252495645523d322c435f57455441535048414c543d332c435f53554e464c4f5745523d342c435f434152524f543d352c435f414c495a4152494e3d362c435f4e4f4e453d373b76617220776562736f636b3b
(ASCII format)
function colorClass(e){switch(e=Number(e)){case C_TURQUOISE:return"turquoise";case C_EMERALD:return"emerald";case C_PETERRIVER:return"peterriver";case C_WETASPHALT:return"wetasphalt";case C_SUNFLOWER:return"sunflower";case C_CARROT:return"carrot";case C_ALIZARIN:return"alizarin";case C_NONE:default:return""}}function start(){websock=new WebSocket("ws://"+window.location.hostname+"/ws"),websock.onopen=function(e){console.log("websock open"),$("#conStatus").addClass("color-green"),$("#conStatus").text("Connected")},websock.onclose=function(e){console.log("websock close"),$("#conStatus").removeClass("color-green"),$("#conStatus").addClass("color-red"),$("#conStatus").text("Error / No Connection")},websock.onerror=function(e){console.log(e),$("#conStatus").removeClass("color-green"),$("#conStatus").addClass("color-red"),$("#conStatus").text("Error / No Connection")},websock.onmessage=function(e){console.log(e);var c=JSON.parse(e.data),o=(document.body,"");switch(c.type){case UI_TITEL:document.title=c.label,$("#mainHeader").html(c.label);break;case UI_LABEL:$("#row").append("
"+c.label+"
"+c.value+"");break;case UI_BUTTON:$("#row").append("
"+c.label+"
"+c.value+""),$("#"+c.id).on({touchstart:function(e){e.preventDefault(),buttonclick(c.id,!0)}}),$("#"+c.id).on({touchend:function(e){e.preventDefault(),buttonclick(c.id,!1)}});break;case UI_SWITCHER:var s="",n="
";"0"==c.value&&(s="",n="
"),$("#row").append("
"+c.label+"
"+s+n+"");break;case UI_CPAD:o="
STOP";case UI_PAD:$("#row").append("
"),$("#pf"+c.id).on({touchstart:function(e){e.preventDefault(),padclick(FOR,c.id,!0)}}),$("#pf"+c.id).on({touchend:function(e){e.preventDefault(),padclick(FOR,c.id,!1)}}),$("#pl"+c.id).on({touchstart:function(e){e.preventDefault(),padclick(LEFT,c.id,!0)}}),$("#pl"+c.id).on({touchend:function(e){e.preventDefault(),padclick(LEFT,c.id,!1)}}),$("#pr"+c.id).on({touchstart:function(e){e.preventDefault(),padclick(RIGHT,c.id,!0)}}),$("#pr"+c.id).on({touchend:function(e){e.preventDefault(),padclick(RIGHT,c.id,!1)}}),$("#pb"+c.id).on({touchstart:function(e){e.preventDefault(),padclick(BACK,c.id,!0)}}),$("#pb"+c.id).on({touchend:function(e){e.preventDefault(),padclick(BACK,c.id,!1)}}),$("#pc"+c.id).on({touchstart:function(e){e.preventDefault(),padclick(CENTER,c.id,!0)}}),$("#pc"+c.id).on({touchend:function(e){e.preventDefault(),padclick(CENTER,c.id,!1)}});break;case UPDATE_LABEL:$("#l"+c.id).html(c.value);break;case UPDATE_SWITCHER:"0"==c.value?switcher(c.id,0):switcher(c.id,1);break;case UI_SLIDER:$("#row").append("
"),$("#row").append("<script>rkmd_rangeSlider('#sl"+c.id+"');</script>");break;case UPDATE_SLIDER:slider_move($("#sl"+c.id),c.value,"100",!1);break;default:console.error("Unknown type or event")}}}function buttonclick(e,c){c?websock.send("bdown:"+e):websock.send("bup:"+e)}function padclick(e,c,o){switch(e){case CENTER:o?websock.send("pcdown:"+c):websock.send("pcup:"+c);break;case FOR:o?websock.send("pfdown:"+c):websock.send("pfup:"+c);break;case BACK:o?websock.send("pbdown:"+c):websock.send("pbup:"+c);break;case LEFT:o?websock.send("pldown:"+c):websock.send("plup:"+c);break;case RIGHT:o?websock.send("prdown:"+c):websock.send("prup:"+c)}}function switcher(e,c){null==c?$("#s"+e).is(":checked")?(websock.send("sactive:"+e),$("#sl"+e).addClass("checked")):(websock.send("sinactive:"+e),$("#sl"+e).removeClass("checked")):1==c?($("#sl"+e).addClass("checked"),$("#sl"+e).prop("checked",!0)):0==c&&($("#sl"+e).removeClass("checked"),$("#sl"+e).prop("checked",!1))}const UI_TITEL=0,UI_LABEL=1,UI_BUTTON=2,UI_SWITCHER=3,UI_PAD=4,UI_CPAD=5,UPDATE_LABEL=6,UPDATE_SWITCHER=7,UI_SLIDER=8,UPDATE_SLIDER=9,FOR=0,BACK=1,LEFT=2,RIGHT=3,CENTER=4,C_TURQUOISE=0,C_EMERALD=1,C_PETERRIVER=2,C_WETASPHALT=3,C_SUNFLOWER=4,C_CARROT=5,C_ALIZARIN=6,C_NONE=7;var websock;