mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 21:31:02 +00:00
1 line
3.6 KiB
Plaintext
1 line
3.6 KiB
Plaintext
{"dependencies":[{"name":"./extractPath.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":4,"column":25,"index":143},"end":{"line":4,"column":52,"index":170}}],"key":"M/x5i2tCq4z1S2kCVUuh5HHvWJw=","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.keyExtractSuri = keyExtractSuri;\n const extractPath_js_1 = require(_dependencyMap[0], \"./extractPath.js\");\n const RE_CAPTURE = /^((0x[a-fA-F0-9]+|[\\p{L}\\d]+(?: [\\p{L}\\d]+)*))((\\/\\/?[^/]+)*)(\\/\\/\\/(.*))?$/u;\n /**\n * @description Extracts the phrase, path and password from a SURI format for specifying secret keys `<secret>/<soft-key>//<hard-key>///<password>` (the `///password` may be omitted, and `/<soft-key>` and `//<hard-key>` maybe repeated and mixed).\n */\n function keyExtractSuri(suri) {\n // Normalize Unicode to NFC to avoid accent-related mismatches\n const normalizedSuri = suri.normalize('NFC');\n // eslint-disable-next-line @typescript-eslint/prefer-regexp-exec\n const matches = normalizedSuri.match(RE_CAPTURE);\n if (matches === null) {\n throw new Error('Unable to match provided value to a secret URI');\n }\n const [, phrase,, derivePath,,, password] = matches;\n const {\n path\n } = (0, extractPath_js_1.keyExtractPath)(derivePath);\n return {\n derivePath,\n password,\n path,\n phrase\n };\n }\n});","lineCount":32,"map":[[2,2,1,0],[2,14,1,12],[4,2,2,0,"Object"],[4,8,2,6],[4,9,2,7,"defineProperty"],[4,23,2,21],[4,24,2,22,"exports"],[4,31,2,29],[4,33,2,31],[4,45,2,43],[4,47,2,45],[5,4,2,47,"value"],[5,9,2,52],[5,11,2,54],[6,2,2,59],[6,3,2,60],[6,4,2,61],[7,2,3,0,"exports"],[7,9,3,7],[7,10,3,8,"keyExtractSuri"],[7,24,3,22],[7,27,3,25,"keyExtractSuri"],[7,41,3,39],[8,2,4,0],[8,8,4,6,"extractPath_js_1"],[8,24,4,22],[8,27,4,25,"require"],[8,34,4,32],[8,35,4,32,"_dependencyMap"],[8,49,4,32],[8,72,4,51],[8,73,4,52],[9,2,5,0],[9,8,5,6,"RE_CAPTURE"],[9,18,5,16],[9,21,5,19],[9,99,5,97],[10,2,6,0],[11,0,7,0],[12,0,8,0],[13,2,9,0],[13,11,9,9,"keyExtractSuri"],[13,25,9,23,"keyExtractSuri"],[13,26,9,24,"suri"],[13,30,9,28],[13,32,9,30],[14,4,10,4],[15,4,11,4],[15,10,11,10,"normalizedSuri"],[15,24,11,24],[15,27,11,27,"suri"],[15,31,11,31],[15,32,11,32,"normalize"],[15,41,11,41],[15,42,11,42],[15,47,11,47],[15,48,11,48],[16,4,12,4],[17,4,13,4],[17,10,13,10,"matches"],[17,17,13,17],[17,20,13,20,"normalizedSuri"],[17,34,13,34],[17,35,13,35,"match"],[17,40,13,40],[17,41,13,41,"RE_CAPTURE"],[17,51,13,51],[17,52,13,52],[18,4,14,4],[18,8,14,8,"matches"],[18,15,14,15],[18,20,14,20],[18,24,14,24],[18,26,14,26],[19,6,15,8],[19,12,15,14],[19,16,15,18,"Error"],[19,21,15,23],[19,22,15,24],[19,70,15,72],[19,71,15,73],[20,4,16,4],[21,4,17,4],[21,10,17,10],[21,13,17,13,"phrase"],[21,19,17,19],[21,22,17,23,"derivePath"],[21,32,17,33],[21,36,17,39,"password"],[21,44,17,47],[21,45,17,48],[21,48,17,51,"matches"],[21,55,17,58],[22,4,18,4],[22,10,18,10],[23,6,18,12,"path"],[24,4,18,17],[24,5,18,18],[24,8,18,21],[24,9,18,22],[24,10,18,23],[24,12,18,25,"extractPath_js_1"],[24,28,18,41],[24,29,18,42,"keyExtractPath"],[24,43,18,56],[24,45,18,58,"derivePath"],[24,55,18,68],[24,56,18,69],[25,4,19,4],[25,11,19,11],[26,6,20,8,"derivePath"],[26,16,20,18],[27,6,21,8,"password"],[27,14,21,16],[28,6,22,8,"path"],[28,10,22,12],[29,6,23,8,"phrase"],[30,4,24,4],[30,5,24,5],[31,2,25,0],[32,0,25,1],[32,3]],"functionMap":{"names":["<global>","keyExtractSuri"],"mappings":"AAA;ACQ;CDgB"},"hasCjsExports":true},"type":"js/module"}]} |