Files
pezkuwi-mobile-app/frontend/.metro-cache/cache/f0/363a7dd0513256f838dd2f482eaea63a02f9b78c4ba3825db4ead991679c9a663e80d5
T
2025-11-08 10:07:13 +00:00

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)(function () {\n (0, util_1.nextTick)(function () {\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(function (e) {\n return !list.some(function (_ref) {\n var era = _ref.era;\n return e.eq(era);\n });\n });\n }\n function erasHistoricApply(fn) {\n return function (instanceId, api) {\n return (\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)(function (e) {\n return api.derive.staking[fn](e, withActive);\n }));\n })\n );\n };\n }\n function erasHistoricApplyAccount(fn) {\n return function (instanceId, api) {\n return (\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)(function (e) {\n return api.derive.staking[fn](accountId, e, withActive, page || 0);\n }));\n })\n );\n };\n }\n function singleEra(fn) {\n return function (instanceId, api) {\n return (\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 (era) {\n return api.derive.staking[fn](era, true);\n })\n );\n };\n }\n function combineEras(fn) {\n return function (instanceId, api) {\n return (\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 (eras, withActive) {\n return !eras.length ? (0, rxjs_1.of)([]) : chunkEras(eras, function (eras) {\n return (0, rxjs_1.combineLatest)(eras.map(function (e) {\n return api.derive.staking[fn](e, withActive);\n }));\n });\n })\n );\n };\n }\n});","lineCount":90,"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,79,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,39,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,23],[28,33,26,24,"e"],[28,34,26,25],[29,6,26,25],[29,13,26,30],[29,14,26,31,"list"],[29,18,26,35],[29,19,26,36,"some"],[29,23,26,40],[29,24,26,41],[29,34,26,41,"_ref"],[29,38,26,41],[30,8,26,41],[30,12,26,44,"era"],[30,15,26,47],[30,18,26,47,"_ref"],[30,22,26,47],[30,23,26,44,"era"],[30,26,26,47],[31,8,26,47],[31,15,26,54,"e"],[31,16,26,55],[31,17,26,56,"eq"],[31,19,26,58],[31,20,26,59,"era"],[31,23,26,62],[31,24,26,63],[32,6,26,63],[32,8,26,64],[33,4,26,64],[33,6,26,65],[34,2,27,0],[35,2,28,0],[35,11,28,9,"erasHistoricApply"],[35,28,28,26,"erasHistoricApply"],[35,29,28,27,"fn"],[35,31,28,29],[35,33,28,31],[36,4,29,4],[36,11,29,11],[36,21,29,12,"instanceId"],[36,31,29,22],[36,33,29,24,"api"],[36,36,29,27],[37,6,29,27],[38,8,30,4],[39,8,31,4],[40,8,32,4],[40,9,32,5],[40,10,32,6],[40,12,32,8,"index_js_1"],[40,22,32,18],[40,23,32,19,"memo"],[40,27,32,23],[40,29,32,25,"instanceId"],[40,39,32,35],[40,41,32,37],[41,10,32,37],[41,14,32,38,"withActive"],[41,24,32,48],[41,27,32,48,"arguments"],[41,36,32,48],[41,37,32,48,"length"],[41,43,32,48],[41,51,32,48,"arguments"],[41,60,32,48],[41,68,32,48,"undefined"],[41,77,32,48],[41,80,32,48,"arguments"],[41,89,32,48],[41,95,32,51],[41,100,32,56],[42,10,32,56],[42,17,32,61,"api"],[42,20,32,64],[42,21,32,65,"derive"],[42,27,32,71],[42,28,32,72,"staking"],[42,35,32,79],[42,36,32,80,"erasHistoric"],[42,48,32,92],[42,49,32,93,"withActive"],[42,59,32,103],[42,60,32,104],[42,61,32,105,"pipe"],[42,65,32,109],[42,66,32,110],[42,67,32,111],[42,68,32,112],[42,70,32,114,"rxjs_1"],[42,76,32,120],[42,77,32,121,"switchMap"],[42,86,32,130],[42,88,32,132],[42,98,32,133,"e"],[42,99,32,134],[43,12,32,134],[43,19,32,139,"api"],[43,22,32,142],[43,23,32,143,"derive"],[43,29,32,149],[43,30,32,150,"staking"],[43,37,32,157],[43,38,32,158,"fn"],[43,40,32,160],[43,41,32,161],[43,42,32,162,"e"],[43,43,32,163],[43,45,32,165,"withActive"],[43,55,32,175],[43,56,32,176],[44,10,32,176],[44,12,32,177],[44,13,32,178],[45,8,32,178],[46,6,32,179],[47,4,32,179],[48,2,33,0],[49,2,34,0],[49,11,34,9,"erasHistoricApplyAccount"],[49,35,34,33,"erasHistoricApplyAccount"],[49,36,34,34,"fn"],[49,38,34,36],[49,40,34,38],[50,4,35,4],[50,11,35,11],[50,21,35,12,"instanceId"],[50,31,35,22],[50,33,35,24,"api"],[50,36,35,27],[51,6,35,27],[52,8,36,4],[53,8,37,4],[54,8,38,4],[54,9,38,5],[54,10,38,6],[54,12,38,8,"index_js_1"],[54,22,38,18],[54,23,38,19,"memo"],[54,27,38,23],[54,29,38,25,"instanceId"],[54,39,38,35],[54,41,38,37],[54,51,38,38,"accountId"],[54,60,38,47],[55,10,38,47],[55,14,38,49,"withActive"],[55,24,38,59],[55,27,38,59,"arguments"],[55,36,38,59],[55,37,38,59,"length"],[55,43,38,59],[55,51,38,59,"arguments"],[55,60,38,59],[55,68,38,59,"undefined"],[55,77,38,59],[55,80,38,59,"arguments"],[55,89,38,59],[55,95,38,62],[55,100,38,67],[56,10,38,67],[56,14,38,69,"page"],[56,18,38,73],[56,21,38,73,"arguments"],[56,30,38,73],[56,31,38,73,"length"],[56,37,38,73],[56,44,38,73,"arguments"],[56,53,38,73],[56,59,38,73,"undefined"],[56,68,38,73],[57,10,38,73],[57,17,38,78,"api"],[57,20,38,81],[57,21,38,82,"derive"],[57,27,38,88],[57,28,38,89,"staking"],[57,35,38,96],[57,36,38,97,"erasHistoric"],[57,48,38,109],[57,49,38,110,"withActive"],[57,59,38,120],[57,60,38,121],[57,61,38,122,"pipe"],[57,65,38,126],[57,66,38,127],[57,67,38,128],[57,68,38,129],[57,70,38,131,"rxjs_1"],[57,76,38,137],[57,77,38,138,"switchMap"],[57,86,38,147],[57,88,38,149],[57,98,38,150,"e"],[57,99,38,151],[58,12,38,151],[58,19,38,156,"api"],[58,22,38,159],[58,23,38,160,"derive"],[58,29,38,166],[58,30,38,167,"staking"],[58,37,38,174],[58,38,38,175,"fn"],[58,40,38,177],[58,41,38,178],[58,42,38,179,"accountId"],[58,51,38,188],[58,53,38,190,"e"],[58,54,38,191],[58,56,38,193,"withActive"],[58,66,38,203],[58,68,38,205,"page"],[58,72,38,209],[58,76,38,213],[58,77,38,214],[58,78,38,215],[59,10,38,215],[59,12,38,216],[59,13,38,217],[60,8,38,217],[61,6,38,218],[62,4,38,218],[63,2,39,0],[64,2,40,0],[64,11,40,9,"singleEra"],[64,20,40,18,"singleEra"],[64,21,40,19,"fn"],[64,23,40,21],[64,25,40,23],[65,4,41,4],[65,11,41,11],[65,21,41,12,"instanceId"],[65,31,41,22],[65,33,41,24,"api"],[65,36,41,27],[66,6,41,27],[67,8,42,4],[68,8,43,4],[69,8,44,4],[69,9,44,5],[69,10,44,6],[69,12,44,8,"index_js_1"],[69,22,44,18],[69,23,44,19,"memo"],[69,27,44,23],[69,29,44,25,"instanceId"],[69,39,44,35],[69,41,44,37],[69,51,44,38,"era"],[69,54,44,41],[70,10,44,41],[70,17,44,46,"api"],[70,20,44,49],[70,21,44,50,"derive"],[70,27,44,56],[70,28,44,57,"staking"],[70,35,44,64],[70,36,44,65,"fn"],[70,38,44,67],[70,39,44,68],[70,40,44,69,"era"],[70,43,44,72],[70,45,44,74],[70,49,44,78],[70,50,44,79],[71,8,44,79],[72,6,44,80],[73,4,44,80],[74,2,45,0],[75,2,46,0],[75,11,46,9,"combineEras"],[75,22,46,20,"combineEras"],[75,23,46,21,"fn"],[75,25,46,23],[75,27,46,25],[76,4,47,4],[76,11,47,11],[76,21,47,12,"instanceId"],[76,31,47,22],[76,33,47,24,"api"],[76,36,47,27],[77,6,47,27],[78,8,48,4],[79,8,49,4],[80,8,50,4],[80,9,50,5],[80,10,50,6],[80,12,50,8,"index_js_1"],[80,22,50,18],[80,23,50,19,"memo"],[80,27,50,23],[80,29,50,25,"instanceId"],[80,39,50,35],[80,41,50,37],[80,51,50,38,"eras"],[80,55,50,42],[80,57,50,44,"withActive"],[80,67,50,54],[81,10,50,54],[81,17,50,59],[81,18,50,60,"eras"],[81,22,50,64],[81,23,50,65,"length"],[81,29,50,71],[81,32,51,10],[81,33,51,11],[81,34,51,12],[81,36,51,14,"rxjs_1"],[81,42,51,20],[81,43,51,21,"of"],[81,45,51,23],[81,47,51,25],[81,49,51,27],[81,50,51,28],[81,53,52,10,"chunkEras"],[81,62,52,19],[81,63,52,20,"eras"],[81,67,52,24],[81,69,52,26],[81,79,52,27,"eras"],[81,83,52,31],[82,12,52,31],[82,19,52,36],[82,20,52,37],[82,21,52,38],[82,23,52,40,"rxjs_1"],[82,29,52,46],[82,30,52,47,"combineLatest"],[82,43,52,60],[82,45,52,62,"eras"],[82,49,52,66],[82,50,52,67,"map"],[82,53,52,70],[82,54,52,71],[82,64,52,72,"e"],[82,65,52,73],[83,14,52,73],[83,21,52,78,"api"],[83,24,52,81],[83,25,52,82,"derive"],[83,31,52,88],[83,32,52,89,"staking"],[83,39,52,96],[83,40,52,97,"fn"],[83,42,52,99],[83,43,52,100],[83,44,52,101,"e"],[83,45,52,102],[83,47,52,104,"withActive"],[83,57,52,114],[83,58,52,115],[84,12,52,115],[84,14,52,116],[84,15,52,117],[85,10,52,117],[85,12,52,118],[86,8,52,118],[87,6,52,119],[88,4,52,119],[89,2,53,0],[90,0,53,1],[90,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"}]}