mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 01:51:03 +00:00
1 line
4.9 KiB
Plaintext
1 line
4.9 KiB
Plaintext
{"dependencies":[{"name":"./toU8a.js","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":38,"index":38}}],"key":"3bOyH77e/8Wc8K55bqHxvmXdM0A=","exportNames":["*"],"imports":1}}],"output":[{"data":{"code":"__d(function (global, require, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {\n \"use strict\";\n\n Object.defineProperty(exports, '__esModule', {\n value: true\n });\n exports.u8aEq = u8aEq;\n var _toU8aJs = require(_dependencyMap[0], \"./toU8a.js\");\n /**\n * @name u8aEq\n * @summary Compares two Uint8Arrays for equality.\n * @description\n * For `UInt8Array` (or hex string) input values true if there is a match.\n * @example\n * <BR>\n *\n * ```javascript\n * import { u8aEq } from '@polkadot/util';\n *\n * u8aEq(new Uint8Array([0x68, 0x65]), new Uint8Array([0x68, 0x65])); // true\n * ```\n */\n function u8aEq(a, b) {\n const u8aa = (0, _toU8aJs.u8aToU8a)(a);\n const u8ab = (0, _toU8aJs.u8aToU8a)(b);\n if (u8aa.length === u8ab.length) {\n const dvA = new DataView(u8aa.buffer, u8aa.byteOffset);\n const dvB = new DataView(u8ab.buffer, u8ab.byteOffset);\n const mod = u8aa.length % 4 | 0;\n const length = u8aa.length - mod | 0;\n for (let i = 0; i < length; i += 4) {\n if (dvA.getUint32(i) !== dvB.getUint32(i)) {\n return false;\n }\n }\n for (let i = length, count = u8aa.length; i < count; i++) {\n if (u8aa[i] !== u8ab[i]) {\n return false;\n }\n }\n return true;\n }\n return false;\n }\n});","lineCount":45,"map":[[7,2,16,0,"exports"],[7,9,16,0],[7,10,16,0,"u8aEq"],[7,15,16,0],[7,18,16,0,"u8aEq"],[7,23,16,0],[8,2,1,0],[8,6,1,0,"_toU8aJs"],[8,14,1,0],[8,17,1,0,"require"],[8,24,1,0],[8,25,1,0,"_dependencyMap"],[8,39,1,0],[9,2,2,0],[10,0,3,0],[11,0,4,0],[12,0,5,0],[13,0,6,0],[14,0,7,0],[15,0,8,0],[16,0,9,0],[17,0,10,0],[18,0,11,0],[19,0,12,0],[20,0,13,0],[21,0,14,0],[22,0,15,0],[23,2,16,7],[23,11,16,16,"u8aEq"],[23,16,16,21,"u8aEq"],[23,17,16,22,"a"],[23,18,16,23],[23,20,16,25,"b"],[23,21,16,26],[23,23,16,28],[24,4,17,4],[24,10,17,10,"u8aa"],[24,14,17,14],[24,17,17,17],[24,21,17,17,"u8aToU8a"],[24,29,17,25],[24,30,17,25,"u8aToU8a"],[24,38,17,25],[24,40,17,26,"a"],[24,41,17,27],[24,42,17,28],[25,4,18,4],[25,10,18,10,"u8ab"],[25,14,18,14],[25,17,18,17],[25,21,18,17,"u8aToU8a"],[25,29,18,25],[25,30,18,25,"u8aToU8a"],[25,38,18,25],[25,40,18,26,"b"],[25,41,18,27],[25,42,18,28],[26,4,19,4],[26,8,19,8,"u8aa"],[26,12,19,12],[26,13,19,13,"length"],[26,19,19,19],[26,24,19,24,"u8ab"],[26,28,19,28],[26,29,19,29,"length"],[26,35,19,35],[26,37,19,37],[27,6,20,8],[27,12,20,14,"dvA"],[27,15,20,17],[27,18,20,20],[27,22,20,24,"DataView"],[27,30,20,32],[27,31,20,33,"u8aa"],[27,35,20,37],[27,36,20,38,"buffer"],[27,42,20,44],[27,44,20,46,"u8aa"],[27,48,20,50],[27,49,20,51,"byteOffset"],[27,59,20,61],[27,60,20,62],[28,6,21,8],[28,12,21,14,"dvB"],[28,15,21,17],[28,18,21,20],[28,22,21,24,"DataView"],[28,30,21,32],[28,31,21,33,"u8ab"],[28,35,21,37],[28,36,21,38,"buffer"],[28,42,21,44],[28,44,21,46,"u8ab"],[28,48,21,50],[28,49,21,51,"byteOffset"],[28,59,21,61],[28,60,21,62],[29,6,22,8],[29,12,22,14,"mod"],[29,15,22,17],[29,18,22,21,"u8aa"],[29,22,22,25],[29,23,22,26,"length"],[29,29,22,32],[29,32,22,35],[29,33,22,36],[29,36,22,40],[29,37,22,41],[30,6,23,8],[30,12,23,14,"length"],[30,18,23,20],[30,21,23,24,"u8aa"],[30,25,23,28],[30,26,23,29,"length"],[30,32,23,35],[30,35,23,38,"mod"],[30,38,23,41],[30,41,23,45],[30,42,23,46],[31,6,24,8],[31,11,24,13],[31,15,24,17,"i"],[31,16,24,18],[31,19,24,21],[31,20,24,22],[31,22,24,24,"i"],[31,23,24,25],[31,26,24,28,"length"],[31,32,24,34],[31,34,24,36,"i"],[31,35,24,37],[31,39,24,41],[31,40,24,42],[31,42,24,44],[32,8,25,12],[32,12,25,16,"dvA"],[32,15,25,19],[32,16,25,20,"getUint32"],[32,25,25,29],[32,26,25,30,"i"],[32,27,25,31],[32,28,25,32],[32,33,25,37,"dvB"],[32,36,25,40],[32,37,25,41,"getUint32"],[32,46,25,50],[32,47,25,51,"i"],[32,48,25,52],[32,49,25,53],[32,51,25,55],[33,10,26,16],[33,17,26,23],[33,22,26,28],[34,8,27,12],[35,6,28,8],[36,6,29,8],[36,11,29,13],[36,15,29,17,"i"],[36,16,29,18],[36,19,29,21,"length"],[36,25,29,27],[36,27,29,29,"count"],[36,32,29,34],[36,35,29,37,"u8aa"],[36,39,29,41],[36,40,29,42,"length"],[36,46,29,48],[36,48,29,50,"i"],[36,49,29,51],[36,52,29,54,"count"],[36,57,29,59],[36,59,29,61,"i"],[36,60,29,62],[36,62,29,64],[36,64,29,66],[37,8,30,12],[37,12,30,16,"u8aa"],[37,16,30,20],[37,17,30,21,"i"],[37,18,30,22],[37,19,30,23],[37,24,30,28,"u8ab"],[37,28,30,32],[37,29,30,33,"i"],[37,30,30,34],[37,31,30,35],[37,33,30,37],[38,10,31,16],[38,17,31,23],[38,22,31,28],[39,8,32,12],[40,6,33,8],[41,6,34,8],[41,13,34,15],[41,17,34,19],[42,4,35,4],[43,4,36,4],[43,11,36,11],[43,16,36,16],[44,2,37,0],[45,0,37,1],[45,3]],"functionMap":{"names":["<global>","u8aEq"],"mappings":"AAA;OCe;CDqB"},"hasCjsExports":false},"type":"js/module"}]} |