mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 11:11:01 +00:00
1 line
14 KiB
Plaintext
1 line
14 KiB
Plaintext
{"dependencies":[{"name":"rxjs","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":8,"column":15,"index":299},"end":{"line":8,"column":30,"index":314}}],"key":"atDzfUGaJNRNtwyVumomzH/5ygw=","exportNames":["*"],"imports":1}},{"name":"@polkadot/util","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":9,"column":15,"index":331},"end":{"line":9,"column":40,"index":356}}],"key":"u0mzEw2nilnHoUWtEdZl0JKHutA=","exportNames":["*"],"imports":1}},{"name":"../util/index.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":10,"column":19,"index":377},"end":{"line":10,"column":46,"index":404}}],"key":"H94lp+EitftSFqDHaenrSs5zKB0=","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.filterEras = filterEras;\n exports.erasHistoricApply = erasHistoricApply;\n exports.erasHistoricApplyAccount = erasHistoricApplyAccount;\n exports.singleEra = singleEra;\n exports.combineEras = combineEras;\n var rxjs_1 = require(_dependencyMap[0], \"rxjs\");\n var util_1 = require(_dependencyMap[1], \"@polkadot/util\");\n var index_js_1 = require(_dependencyMap[2], \"../util/index.js\");\n var ERA_CHUNK_SIZE = 14;\n function chunkEras(eras, fn) {\n var chunked = (0, util_1.arrayChunk)(eras, ERA_CHUNK_SIZE);\n var index = 0;\n var subject = new rxjs_1.BehaviorSubject(chunked[index]);\n return subject.pipe((0, rxjs_1.switchMap)(fn), (0, rxjs_1.tap)(() => {\n (0, util_1.nextTick)(() => {\n index++;\n index === chunked.length ? subject.complete() : subject.next(chunked[index]);\n });\n }), (0, rxjs_1.toArray)(), (0, rxjs_1.map)(util_1.arrayFlatten));\n }\n function filterEras(eras, list) {\n return eras.filter(e => !list.some(_ref => {\n var era = _ref.era;\n return e.eq(era);\n }));\n }\n function erasHistoricApply(fn) {\n return (instanceId, api) =>\n // Cannot quite get the typing right, but it is right in the code\n // eslint-disable-next-line @typescript-eslint/no-unsafe-return\n (0, index_js_1.memo)(instanceId, function () {\n var withActive = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n return api.derive.staking.erasHistoric(withActive).pipe((0, rxjs_1.switchMap)(e => api.derive.staking[fn](e, withActive)));\n });\n }\n function erasHistoricApplyAccount(fn) {\n return (instanceId, api) =>\n // Cannot quite get the typing right, but it is right in the code\n // eslint-disable-next-line @typescript-eslint/no-unsafe-return\n (0, index_js_1.memo)(instanceId, function (accountId) {\n var withActive = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n var page = arguments.length > 2 ? arguments[2] : undefined;\n return api.derive.staking.erasHistoric(withActive).pipe((0, rxjs_1.switchMap)(e => api.derive.staking[fn](accountId, e, withActive, page || 0)));\n });\n }\n function singleEra(fn) {\n return (instanceId, api) =>\n // Cannot quite get the typing right, but it is right in the code\n // eslint-disable-next-line @typescript-eslint/no-unsafe-return\n (0, index_js_1.memo)(instanceId, era => api.derive.staking[fn](era, true));\n }\n function combineEras(fn) {\n return (instanceId, api) =>\n // Cannot quite get the typing right, but it is right in the code\n // eslint-disable-next-line @typescript-eslint/no-unsafe-return\n (0, index_js_1.memo)(instanceId, (eras, withActive) => !eras.length ? (0, rxjs_1.of)([]) : chunkEras(eras, eras => (0, rxjs_1.combineLatest)(eras.map(e => api.derive.staking[fn](e, withActive)))));\n }\n});","lineCount":64,"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,"filterEras"],[7,20,3,18],[7,23,3,21,"filterEras"],[7,33,3,31],[8,2,4,0,"exports"],[8,9,4,7],[8,10,4,8,"erasHistoricApply"],[8,27,4,25],[8,30,4,28,"erasHistoricApply"],[8,47,4,45],[9,2,5,0,"exports"],[9,9,5,7],[9,10,5,8,"erasHistoricApplyAccount"],[9,34,5,32],[9,37,5,35,"erasHistoricApplyAccount"],[9,61,5,59],[10,2,6,0,"exports"],[10,9,6,7],[10,10,6,8,"singleEra"],[10,19,6,17],[10,22,6,20,"singleEra"],[10,31,6,29],[11,2,7,0,"exports"],[11,9,7,7],[11,10,7,8,"combineEras"],[11,21,7,19],[11,24,7,22,"combineEras"],[11,35,7,33],[12,2,8,0],[12,6,8,6,"rxjs_1"],[12,12,8,12],[12,15,8,15,"require"],[12,22,8,22],[12,23,8,22,"_dependencyMap"],[12,37,8,22],[12,48,8,29],[12,49,8,30],[13,2,9,0],[13,6,9,6,"util_1"],[13,12,9,12],[13,15,9,15,"require"],[13,22,9,22],[13,23,9,22,"_dependencyMap"],[13,37,9,22],[13,58,9,39],[13,59,9,40],[14,2,10,0],[14,6,10,6,"index_js_1"],[14,16,10,16],[14,19,10,19,"require"],[14,26,10,26],[14,27,10,26,"_dependencyMap"],[14,41,10,26],[14,64,10,45],[14,65,10,46],[15,2,11,0],[15,6,11,6,"ERA_CHUNK_SIZE"],[15,20,11,20],[15,23,11,23],[15,25,11,25],[16,2,12,0],[16,11,12,9,"chunkEras"],[16,20,12,18,"chunkEras"],[16,21,12,19,"eras"],[16,25,12,23],[16,27,12,25,"fn"],[16,29,12,27],[16,31,12,29],[17,4,13,4],[17,8,13,10,"chunked"],[17,15,13,17],[17,18,13,20],[17,19,13,21],[17,20,13,22],[17,22,13,24,"util_1"],[17,28,13,30],[17,29,13,31,"arrayChunk"],[17,39,13,41],[17,41,13,43,"eras"],[17,45,13,47],[17,47,13,49,"ERA_CHUNK_SIZE"],[17,61,13,63],[17,62,13,64],[18,4,14,4],[18,8,14,8,"index"],[18,13,14,13],[18,16,14,16],[18,17,14,17],[19,4,15,4],[19,8,15,10,"subject"],[19,15,15,17],[19,18,15,20],[19,22,15,24,"rxjs_1"],[19,28,15,30],[19,29,15,31,"BehaviorSubject"],[19,44,15,46],[19,45,15,47,"chunked"],[19,52,15,54],[19,53,15,55,"index"],[19,58,15,60],[19,59,15,61],[19,60,15,62],[20,4,16,4],[20,11,16,11,"subject"],[20,18,16,18],[20,19,16,19,"pipe"],[20,23,16,23],[20,24,16,24],[20,25,16,25],[20,26,16,26],[20,28,16,28,"rxjs_1"],[20,34,16,34],[20,35,16,35,"switchMap"],[20,44,16,44],[20,46,16,46,"fn"],[20,48,16,48],[20,49,16,49],[20,51,16,51],[20,52,16,52],[20,53,16,53],[20,55,16,55,"rxjs_1"],[20,61,16,61],[20,62,16,62,"tap"],[20,65,16,65],[20,67,16,67],[20,73,16,73],[21,6,17,8],[21,7,17,9],[21,8,17,10],[21,10,17,12,"util_1"],[21,16,17,18],[21,17,17,19,"nextTick"],[21,25,17,27],[21,27,17,29],[21,33,17,35],[22,8,18,12,"index"],[22,13,18,17],[22,15,18,19],[23,8,19,12,"index"],[23,13,19,17],[23,18,19,22,"chunked"],[23,25,19,29],[23,26,19,30,"length"],[23,32,19,36],[23,35,20,18,"subject"],[23,42,20,25],[23,43,20,26,"complete"],[23,51,20,34],[23,52,20,35],[23,53,20,36],[23,56,21,18,"subject"],[23,63,21,25],[23,64,21,26,"next"],[23,68,21,30],[23,69,21,31,"chunked"],[23,76,21,38],[23,77,21,39,"index"],[23,82,21,44],[23,83,21,45],[23,84,21,46],[24,6,22,8],[24,7,22,9],[24,8,22,10],[25,4,23,4],[25,5,23,5],[25,6,23,6],[25,8,23,8],[25,9,23,9],[25,10,23,10],[25,12,23,12,"rxjs_1"],[25,18,23,18],[25,19,23,19,"toArray"],[25,26,23,26],[25,28,23,28],[25,29,23,29],[25,31,23,31],[25,32,23,32],[25,33,23,33],[25,35,23,35,"rxjs_1"],[25,41,23,41],[25,42,23,42,"map"],[25,45,23,45],[25,47,23,47,"util_1"],[25,53,23,53],[25,54,23,54,"arrayFlatten"],[25,66,23,66],[25,67,23,67],[25,68,23,68],[26,2,24,0],[27,2,25,0],[27,11,25,9,"filterEras"],[27,21,25,19,"filterEras"],[27,22,25,20,"eras"],[27,26,25,24],[27,28,25,26,"list"],[27,32,25,30],[27,34,25,32],[28,4,26,4],[28,11,26,11,"eras"],[28,15,26,15],[28,16,26,16,"filter"],[28,22,26,22],[28,23,26,24,"e"],[28,24,26,25],[28,28,26,30],[28,29,26,31,"list"],[28,33,26,35],[28,34,26,36,"some"],[28,38,26,40],[28,39,26,41,"_ref"],[28,43,26,41],[29,6,26,41],[29,10,26,44,"era"],[29,13,26,47],[29,16,26,47,"_ref"],[29,20,26,47],[29,21,26,44,"era"],[29,24,26,47],[30,6,26,47],[30,13,26,54,"e"],[30,14,26,55],[30,15,26,56,"eq"],[30,17,26,58],[30,18,26,59,"era"],[30,21,26,62],[30,22,26,63],[31,4,26,63],[31,6,26,64],[31,7,26,65],[32,2,27,0],[33,2,28,0],[33,11,28,9,"erasHistoricApply"],[33,28,28,26,"erasHistoricApply"],[33,29,28,27,"fn"],[33,31,28,29],[33,33,28,31],[34,4,29,4],[34,11,29,11],[34,12,29,12,"instanceId"],[34,22,29,22],[34,24,29,24,"api"],[34,27,29,27],[35,4,30,4],[36,4,31,4],[37,4,32,4],[37,5,32,5],[37,6,32,6],[37,8,32,8,"index_js_1"],[37,18,32,18],[37,19,32,19,"memo"],[37,23,32,23],[37,25,32,25,"instanceId"],[37,35,32,35],[37,37,32,37],[38,6,32,37],[38,10,32,38,"withActive"],[38,20,32,48],[38,23,32,48,"arguments"],[38,32,32,48],[38,33,32,48,"length"],[38,39,32,48],[38,47,32,48,"arguments"],[38,56,32,48],[38,64,32,48,"undefined"],[38,73,32,48],[38,76,32,48,"arguments"],[38,85,32,48],[38,91,32,51],[38,96,32,56],[39,6,32,56],[39,13,32,61,"api"],[39,16,32,64],[39,17,32,65,"derive"],[39,23,32,71],[39,24,32,72,"staking"],[39,31,32,79],[39,32,32,80,"erasHistoric"],[39,44,32,92],[39,45,32,93,"withActive"],[39,55,32,103],[39,56,32,104],[39,57,32,105,"pipe"],[39,61,32,109],[39,62,32,110],[39,63,32,111],[39,64,32,112],[39,66,32,114,"rxjs_1"],[39,72,32,120],[39,73,32,121,"switchMap"],[39,82,32,130],[39,84,32,133,"e"],[39,85,32,134],[39,89,32,139,"api"],[39,92,32,142],[39,93,32,143,"derive"],[39,99,32,149],[39,100,32,150,"staking"],[39,107,32,157],[39,108,32,158,"fn"],[39,110,32,160],[39,111,32,161],[39,112,32,162,"e"],[39,113,32,163],[39,115,32,165,"withActive"],[39,125,32,175],[39,126,32,176],[39,127,32,177],[39,128,32,178],[40,4,32,178],[40,6,32,179],[41,2,33,0],[42,2,34,0],[42,11,34,9,"erasHistoricApplyAccount"],[42,35,34,33,"erasHistoricApplyAccount"],[42,36,34,34,"fn"],[42,38,34,36],[42,40,34,38],[43,4,35,4],[43,11,35,11],[43,12,35,12,"instanceId"],[43,22,35,22],[43,24,35,24,"api"],[43,27,35,27],[44,4,36,4],[45,4,37,4],[46,4,38,4],[46,5,38,5],[46,6,38,6],[46,8,38,8,"index_js_1"],[46,18,38,18],[46,19,38,19,"memo"],[46,23,38,23],[46,25,38,25,"instanceId"],[46,35,38,35],[46,37,38,37],[46,47,38,38,"accountId"],[46,56,38,47],[47,6,38,47],[47,10,38,49,"withActive"],[47,20,38,59],[47,23,38,59,"arguments"],[47,32,38,59],[47,33,38,59,"length"],[47,39,38,59],[47,47,38,59,"arguments"],[47,56,38,59],[47,64,38,59,"undefined"],[47,73,38,59],[47,76,38,59,"arguments"],[47,85,38,59],[47,91,38,62],[47,96,38,67],[48,6,38,67],[48,10,38,69,"page"],[48,14,38,73],[48,17,38,73,"arguments"],[48,26,38,73],[48,27,38,73,"length"],[48,33,38,73],[48,40,38,73,"arguments"],[48,49,38,73],[48,55,38,73,"undefined"],[48,64,38,73],[49,6,38,73],[49,13,38,78,"api"],[49,16,38,81],[49,17,38,82,"derive"],[49,23,38,88],[49,24,38,89,"staking"],[49,31,38,96],[49,32,38,97,"erasHistoric"],[49,44,38,109],[49,45,38,110,"withActive"],[49,55,38,120],[49,56,38,121],[49,57,38,122,"pipe"],[49,61,38,126],[49,62,38,127],[49,63,38,128],[49,64,38,129],[49,66,38,131,"rxjs_1"],[49,72,38,137],[49,73,38,138,"switchMap"],[49,82,38,147],[49,84,38,150,"e"],[49,85,38,151],[49,89,38,156,"api"],[49,92,38,159],[49,93,38,160,"derive"],[49,99,38,166],[49,100,38,167,"staking"],[49,107,38,174],[49,108,38,175,"fn"],[49,110,38,177],[49,111,38,178],[49,112,38,179,"accountId"],[49,121,38,188],[49,123,38,190,"e"],[49,124,38,191],[49,126,38,193,"withActive"],[49,136,38,203],[49,138,38,205,"page"],[49,142,38,209],[49,146,38,213],[49,147,38,214],[49,148,38,215],[49,149,38,216],[49,150,38,217],[50,4,38,217],[50,6,38,218],[51,2,39,0],[52,2,40,0],[52,11,40,9,"singleEra"],[52,20,40,18,"singleEra"],[52,21,40,19,"fn"],[52,23,40,21],[52,25,40,23],[53,4,41,4],[53,11,41,11],[53,12,41,12,"instanceId"],[53,22,41,22],[53,24,41,24,"api"],[53,27,41,27],[54,4,42,4],[55,4,43,4],[56,4,44,4],[56,5,44,5],[56,6,44,6],[56,8,44,8,"index_js_1"],[56,18,44,18],[56,19,44,19,"memo"],[56,23,44,23],[56,25,44,25,"instanceId"],[56,35,44,35],[56,37,44,38,"era"],[56,40,44,41],[56,44,44,46,"api"],[56,47,44,49],[56,48,44,50,"derive"],[56,54,44,56],[56,55,44,57,"staking"],[56,62,44,64],[56,63,44,65,"fn"],[56,65,44,67],[56,66,44,68],[56,67,44,69,"era"],[56,70,44,72],[56,72,44,74],[56,76,44,78],[56,77,44,79],[56,78,44,80],[57,2,45,0],[58,2,46,0],[58,11,46,9,"combineEras"],[58,22,46,20,"combineEras"],[58,23,46,21,"fn"],[58,25,46,23],[58,27,46,25],[59,4,47,4],[59,11,47,11],[59,12,47,12,"instanceId"],[59,22,47,22],[59,24,47,24,"api"],[59,27,47,27],[60,4,48,4],[61,4,49,4],[62,4,50,4],[62,5,50,5],[62,6,50,6],[62,8,50,8,"index_js_1"],[62,18,50,18],[62,19,50,19,"memo"],[62,23,50,23],[62,25,50,25,"instanceId"],[62,35,50,35],[62,37,50,37],[62,38,50,38,"eras"],[62,42,50,42],[62,44,50,44,"withActive"],[62,54,50,54],[62,59,50,59],[62,60,50,60,"eras"],[62,64,50,64],[62,65,50,65,"length"],[62,71,50,71],[62,74,51,10],[62,75,51,11],[62,76,51,12],[62,78,51,14,"rxjs_1"],[62,84,51,20],[62,85,51,21,"of"],[62,87,51,23],[62,89,51,25],[62,91,51,27],[62,92,51,28],[62,95,52,10,"chunkEras"],[62,104,52,19],[62,105,52,20,"eras"],[62,109,52,24],[62,111,52,27,"eras"],[62,115,52,31],[62,119,52,36],[62,120,52,37],[62,121,52,38],[62,123,52,40,"rxjs_1"],[62,129,52,46],[62,130,52,47,"combineLatest"],[62,143,52,60],[62,145,52,62,"eras"],[62,149,52,66],[62,150,52,67,"map"],[62,153,52,70],[62,154,52,72,"e"],[62,155,52,73],[62,159,52,78,"api"],[62,162,52,81],[62,163,52,82,"derive"],[62,169,52,88],[62,170,52,89,"staking"],[62,177,52,96],[62,178,52,97,"fn"],[62,180,52,99],[62,181,52,100],[62,182,52,101,"e"],[62,183,52,102],[62,185,52,104,"withActive"],[62,195,52,114],[62,196,52,115],[62,197,52,116],[62,198,52,117],[62,199,52,118],[62,200,52,119],[63,2,53,0],[64,0,53,1],[64,3]],"functionMap":{"names":["<global>","chunkEras","<anonymous>","filterEras","eras.filter$argument_0","list.some$argument_0","erasHistoricApply","erasHistoricApplyAccount","singleEra","combineEras","chunkEras$argument_1","eras.map$argument_0"],"mappings":"AAA;ACW;mECI;KDO;CDC;AGC;uBCC,kBC,sBD,CD;CHC;AMC;WJC;mLIG;CNC;AOC;WLC;0NKG;CPC;AQC;WNC;gFMG;CRC;ASC;WPC;0BQK,6CC,4CD,ER,EO;CTC"},"hasCjsExports":true},"type":"js/module"}]} |