/** * [js-crc]{@link https://github.com/emn178/js-crc} * * @namespace crc * @version 0.3.0 * @author Chen, Yi-Cyuan [emn178@gmail.com] * @copyright Chen, Yi-Cyuan 2015-2024 * @license MIT */ (()=>{var r,n=[{width:3,poly:3,init:0,refin:!1,refout:!1,xorout:7,name:"CRC-3/GSM"},{width:3,poly:3,init:7,refin:!0,refout:!0,xorout:0,name:"CRC-3/ROHC"},{width:4,poly:3,init:0,refin:!0,refout:!0,xorout:0,name:"CRC-4/G-704",alias:["CRC-4/ITU"]},{width:4,poly:3,init:15,refin:!1,refout:!1,xorout:15,name:"CRC-4/INTERLAKEN"},{width:5,poly:9,init:9,refin:!1,refout:!1,xorout:0,name:"CRC-5/EPC-C1G2",alias:["CRC-5/EPC"]},{width:5,poly:21,init:0,refin:!0,refout:!0,xorout:0,name:"CRC-5/G-704",alias:["CRC-5/ITU"]},{width:5,poly:5,init:31,refin:!0,refout:!0,xorout:31,name:"CRC-5/USB"},{width:6,poly:39,init:63,refin:!1,refout:!1,xorout:0,name:"CRC-6/CDMA2000-A"},{width:6,poly:7,init:63,refin:!1,refout:!1,xorout:0,name:"CRC-6/CDMA2000-B"},{width:6,poly:25,init:0,refin:!0,refout:!0,xorout:0,name:"CRC-6/DARC"},{width:6,poly:3,init:0,refin:!0,refout:!0,xorout:0,name:"CRC-6/G-704",alias:["CRC-6/ITU"]},{width:6,poly:47,init:0,refin:!1,refout:!1,xorout:63,name:"CRC-6/GSM"},{width:7,poly:9,init:0,refin:!1,refout:!1,xorout:0,name:"CRC-7/MMC",alias:["CRC-7"]},{width:7,poly:79,init:127,refin:!0,refout:!0,xorout:0,name:"CRC-7/ROHC"},{width:7,poly:69,init:0,refin:!1,refout:!1,xorout:0,name:"CRC-7/UMTS"},{width:8,poly:47,init:255,refin:!1,refout:!1,xorout:255,name:"CRC-8/AUTOSAR"},{width:8,poly:167,init:0,refin:!0,refout:!0,xorout:0,name:"CRC-8/BLUETOOTH"},{width:8,poly:155,init:255,refin:!1,refout:!1,xorout:0,name:"CRC-8/CDMA2000"},{width:8,poly:57,init:0,refin:!0,refout:!0,xorout:0,name:"CRC-8/DARC"},{width:8,poly:213,init:0,refin:!1,refout:!1,xorout:0,name:"CRC-8/DVB-S2"},{width:8,poly:29,init:0,refin:!1,refout:!1,xorout:0,name:"CRC-8/GSM-A"},{width:8,poly:73,init:0,refin:!1,refout:!1,xorout:255,name:"CRC-8/GSM-B"},{width:8,poly:29,init:255,refin:!1,refout:!1,xorout:0,name:"CRC-8/HITAG"},{width:8,poly:7,init:0,refin:!1,refout:!1,xorout:85,name:"CRC-8/I-432-1",alias:["CRC-8/ITU"]},{width:8,poly:29,init:253,refin:!1,refout:!1,xorout:0,name:"CRC-8/I-CODE"},{width:8,poly:155,init:0,refin:!1,refout:!1,xorout:0,name:"CRC-8/LTE"},{width:8,poly:49,init:0,refin:!0,refout:!0,xorout:0,name:"CRC-8/MAXIM-DOW",alias:["CRC-8/MAXIM","DOW-CRC"]},{width:8,poly:29,init:199,refin:!1,refout:!1,xorout:0,name:"CRC-8/MIFARE-MAD"},{width:8,poly:49,init:255,refin:!1,refout:!1,xorout:0,name:"CRC-8/NRSC-5"},{width:8,poly:47,init:0,refin:!1,refout:!1,xorout:0,name:"CRC-8/OPENSAFETY"},{width:8,poly:7,init:255,refin:!0,refout:!0,xorout:0,name:"CRC-8/ROHC"},{width:8,poly:29,init:255,refin:!1,refout:!1,xorout:255,name:"CRC-8/SAE-J1850"},{width:8,poly:7,init:0,refin:!1,refout:!1,xorout:0,name:"CRC-8/SMBUS",alias:["CRC-8"]},{width:8,poly:29,init:255,refin:!0,refout:!0,xorout:0,name:"CRC-8/TECH-3250",alias:["CRC-8/AES","CRC-8/EBU"]},{width:8,poly:155,init:0,refin:!0,refout:!0,xorout:0,name:"CRC-8/WCDMA"},{width:10,poly:563,init:0,refin:!1,refout:!1,xorout:0,name:"CRC-10/ATM",alias:["CRC-10","CRC-10/I-610"]},{width:10,poly:985,init:1023,refin:!1,refout:!1,xorout:0,name:"CRC-10/CDMA2000"},{width:10,poly:373,init:0,refin:!1,refout:!1,xorout:1023,name:"CRC-10/GSM"},{width:11,poly:901,init:26,refin:!1,refout:!1,xorout:0,name:"CRC-11/FLEXRAY",alias:["CRC-11"]},{width:11,poly:775,init:0,refin:!1,refout:!1,xorout:0,name:"CRC-11/UMTS"},{width:12,poly:3859,init:4095,refin:!1,refout:!1,xorout:0,name:"CRC-12/CDMA2000"},{width:12,poly:2063,init:0,refin:!1,refout:!1,xorout:0,name:"CRC-12/DECT",alias:["X-CRC-12"]},{width:12,poly:3377,init:0,refin:!1,refout:!1,xorout:4095,name:"CRC-12/GSM"},{width:12,poly:2063,init:0,refin:!1,refout:!0,xorout:0,name:"CRC-12/UMTS",alias:["CRC-12/3GPP"]},{width:13,poly:7413,init:0,refin:!1,refout:!1,xorout:0,name:"CRC-13/BBC"},{width:14,poly:2053,init:0,refin:!0,refout:!0,xorout:0,name:"CRC-14/DARC"},{width:14,poly:8237,init:0,refin:!1,refout:!1,xorout:16383,name:"CRC-14/GSM"},{width:15,poly:17817,init:0,refin:!1,refout:!1,xorout:0,name:"CRC-15/CAN",alias:["CRC-15"]},{width:15,poly:26645,init:0,refin:!1,refout:!1,xorout:1,name:"CRC-15/MPT1327"},{width:16,poly:32773,init:0,refin:!0,refout:!0,xorout:0,name:"CRC-16/ARC",alias:["ARC","CRC-16","CRC-16/LHA","CRC-IBM"]},{width:16,poly:51303,init:65535,refin:!1,refout:!1,xorout:0,name:"CRC-16/CDMA2000"},{width:16,poly:32773,init:65535,refin:!1,refout:!1,xorout:0,name:"CRC-16/CMS"},{width:16,poly:32773,init:32781,refin:!1,refout:!1,xorout:0,name:"CRC-16/DDS-110"},{width:16,poly:1417,init:0,refin:!1,refout:!1,xorout:1,name:"CRC-16/DECT-R",alias:["R-CRC-16"]},{width:16,poly:1417,init:0,refin:!1,refout:!1,xorout:0,name:"CRC-16/DECT-X",alias:["X-CRC-16"]},{width:16,poly:15717,init:0,refin:!0,refout:!0,xorout:65535,name:"CRC-16/DNP"},{width:16,poly:15717,init:0,refin:!1,refout:!1,xorout:65535,name:"CRC-16/EN-13757"},{width:16,poly:4129,init:65535,refin:!1,refout:!1,xorout:65535,name:"CRC-16/GENIBUS",alias:["CRC-16/DARC","CRC-16/EPC","CRC-16/EPC-C1G2","CRC-16/I-CODE"]},{width:16,poly:4129,init:0,refin:!1,refout:!1,xorout:65535,name:"CRC-16/GSM"},{width:16,poly:4129,init:65535,refin:!1,refout:!1,xorout:0,name:"CRC-16/IBM-3740",alias:["CRC-16/AUTOSAR","CRC-16/CCITT-FALSE"]},{width:16,poly:4129,init:65535,refin:!0,refout:!0,xorout:65535,name:"CRC-16/IBM-SDLC",alias:["CRC-16/ISO-HDLC","CRC-16/ISO-IEC-14443-3-B","CRC-16/X-25","CRC-B","X-25"]},{width:16,poly:4129,init:50886,refin:!0,refout:!0,xorout:0,name:"CRC-16/ISO-IEC-14443-3-A",alias:["CRC-A"]},{width:16,poly:4129,init:0,refin:!0,refout:!0,xorout:0,name:"CRC-16/KERMIT",alias:["CRC-16/BLUETOOTH","CRC-16/CCITT","CRC-16/CCITT-TRUE","CRC-16/V-41-LSB","CRC-CCITT","KERMIT"]},{width:16,poly:28515,init:0,refin:!1,refout:!1,xorout:0,name:"CRC-16/LJ1200"},{width:16,poly:22837,init:65535,refin:!1,refout:!1,xorout:0,name:"CRC-16/M17"},{width:16,poly:32773,init:0,refin:!0,refout:!0,xorout:65535,name:"CRC-16/MAXIM-DOW",alias:["CRC-16/MAXIM"]},{width:16,poly:4129,init:65535,refin:!0,refout:!0,xorout:0,name:"CRC-16/MCRF4XX"},{width:16,poly:32773,init:65535,refin:!0,refout:!0,xorout:0,name:"CRC-16/MODBUS",alias:["MODBUS"]},{width:16,poly:2059,init:65535,refin:!0,refout:!0,xorout:0,name:"CRC-16/NRSC-5"},{width:16,poly:22837,init:0,refin:!1,refout:!1,xorout:0,name:"CRC-16/OPENSAFETY-A"},{width:16,poly:30043,init:0,refin:!1,refout:!1,xorout:0,name:"CRC-16/OPENSAFETY-B"},{width:16,poly:7631,init:65535,refin:!1,refout:!1,xorout:65535,name:"CRC-16/PROFIBUS",alias:["CRC-16/IEC-61158-2"]},{width:16,poly:4129,init:45738,refin:!0,refout:!0,xorout:0,name:"CRC-16/RIELLO"},{width:16,poly:4129,init:7439,refin:!1,refout:!1,xorout:0,name:"CRC-16/SPI-FUJITSU",alias:["CRC-16/AUG-CCITT"]},{width:16,poly:35767,init:0,refin:!1,refout:!1,xorout:0,name:"CRC-16/T10-DIF"},{width:16,poly:41111,init:0,refin:!1,refout:!1,xorout:0,name:"CRC-16/TELEDISK"},{width:16,poly:4129,init:35308,refin:!0,refout:!0,xorout:0,name:"CRC-16/TMS37157"},{width:16,poly:32773,init:0,refin:!1,refout:!1,xorout:0,name:"CRC-16/UMTS",alias:["CRC-16/BUYPASS","CRC-16/VERIFONE"]},{width:16,poly:32773,init:65535,refin:!0,refout:!0,xorout:65535,name:"CRC-16/USB"},{width:16,poly:4129,init:0,refin:!1,refout:!1,xorout:0,name:"CRC-16/XMODEM",alias:["CRC-16/ACORN","CRC-16/LTE","CRC-16/V-41-MSB","XMODEM","ZMODEM"]},{width:17,poly:92251,init:0,refin:!1,refout:!1,xorout:0,name:"CRC-17/CAN-FD"},{width:21,poly:1058969,init:0,refin:!1,refout:!1,xorout:0,name:"CRC-21/CAN-FD"},{width:24,poly:1627,init:5592405,refin:!0,refout:!0,xorout:0,name:"CRC-24/BLE"},{width:24,poly:6122955,init:16702650,refin:!1,refout:!1,xorout:0,name:"CRC-24/FLEXRAY-A"},{width:24,poly:6122955,init:11259375,refin:!1,refout:!1,xorout:0,name:"CRC-24/FLEXRAY-B"},{width:24,poly:3312483,init:16777215,refin:!1,refout:!1,xorout:16777215,name:"CRC-24/INTERLAKEN"},{width:24,poly:8801531,init:0,refin:!1,refout:!1,xorout:0,name:"CRC-24/LTE-A"},{width:24,poly:8388707,init:0,refin:!1,refout:!1,xorout:0,name:"CRC-24/LTE-B"},{width:24,poly:8801531,init:11994318,refin:!1,refout:!1,xorout:0,name:"CRC-24/OPENPGP",alias:["CRC-24"]},{width:24,poly:8388707,init:16777215,refin:!1,refout:!1,xorout:16777215,name:"CRC-24/OS-9"},{width:30,poly:540064199,init:1073741823,refin:!1,refout:!1,xorout:1073741823,name:"CRC-30/CDMA"},{width:31,poly:79764919,init:2147483647,refin:!1,refout:!1,xorout:2147483647,name:"CRC-31/PHILIPS"},{width:32,poly:2168537515,init:0,refin:!1,refout:!1,xorout:0,name:"CRC-32/AIXM",alias:["CRC-32Q"]},{width:32,poly:4104977171,init:4294967295,refin:!0,refout:!0,xorout:4294967295,name:"CRC-32/AUTOSAR"},{width:32,poly:2821953579,init:4294967295,refin:!0,refout:!0,xorout:4294967295,name:"CRC-32/BASE91-D",alias:["CRC-32D"]},{width:32,poly:79764919,init:4294967295,refin:!1,refout:!1,xorout:4294967295,name:"CRC-32/BZIP2",alias:["CRC-32/AAL5","CRC-32/DECT-B","B-CRC-32"]},{width:32,poly:2147581979,init:0,refin:!0,refout:!0,xorout:0,name:"CRC-32/CD-ROM-EDC"},{width:32,poly:79764919,init:0,refin:!1,refout:!1,xorout:4294967295,name:"CRC-32/CKSUM",alias:["CKSUM","CRC-32/POSIX"]},{width:32,poly:517762881,init:4294967295,refin:!0,refout:!0,xorout:4294967295,name:"CRC-32/ISCSI",alias:["CRC-32/BASE91-C","CRC-32/CASTAGNOLI","CRC-32/INTERLAKEN","CRC-32C","CRC-32/NVME"]},{width:32,poly:79764919,init:4294967295,refin:!0,refout:!0,xorout:4294967295,name:"CRC-32/ISO-HDLC",alias:["CRC-32","CRC-32/ADCCP","CRC-32/V-42","CRC-32/XZ","PKZIP"]},{width:32,poly:79764919,init:4294967295,refin:!0,refout:!0,xorout:0,name:"CRC-32/JAMCRC",alias:["JAMCRC"]},{width:32,poly:1947962583,init:4294967295,refin:!0,refout:!0,xorout:0,name:"CRC-32/MEF"},{width:32,poly:79764919,init:4294967295,refin:!1,refout:!1,xorout:0,name:"CRC-32/MPEG-2"},{width:32,poly:175,init:0,refin:!1,refout:!1,xorout:0,name:"CRC-32/XFER",alias:["XFER"]},{width:40,poly:[0,75628553],init:[0,0],refin:!1,refout:!1,xorout:[255,4294967295],name:"CRC-40/GSM"},{width:64,poly:[1123082731,2850698899],init:[0,0],refin:!1,refout:!1,xorout:[0,0],name:"CRC-64/ECMA-182",alias:["CRC-64"]},{width:64,poly:[0,27],init:[4294967295,4294967295],refin:!0,refout:!0,xorout:[4294967295,4294967295],name:"CRC-64/GO-ISO"},{width:64,poly:[631014603,2789368649],init:[4294967295,4294967295],refin:!0,refout:!0,xorout:[0,0],name:"CRC-64/MS"},{width:64,poly:[2912145973,2496214617],init:[4294967295,4294967295],refin:!0,refout:!0,xorout:[4294967295,4294967295],name:"CRC-64/NVME"},{width:64,poly:[2912145973,2496214441],init:[0,0],refin:!0,refout:!0,xorout:[0,0],name:"CRC-64/REDIS"},{width:64,poly:[1123082731,2850698899],init:[4294967295,4294967295],refin:!1,refout:!1,xorout:[4294967295,4294967295],name:"CRC-64/WE"},{width:64,poly:[1123082731,2850698899],init:[4294967295,4294967295],refin:!0,refout:!0,xorout:[4294967295,4294967295],name:"CRC-64/XZ",alias:["CRC-64/GO-ECMA"]},{width:82,poly:[12428,17891604,21234705],init:[0,0,0],refin:!0,refout:!0,xorout:[0,0,0],name:"CRC-82/DARC"}],i=(o="object"==typeof window)?window:{},o=!(o=i.JS_CRC_NO_WINDOW?!1:o)&&"object"==typeof self,o=(!i.JS_CRC_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node?i=global:o&&(i=self),!i.JS_CRC_NO_COMMON_JS&&"object"==typeof module&&module.exports),t="function"==typeof define&&define.amd;function C(i){for(var o=0;o