mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 04:11:02 +00:00
1 line
5.6 KiB
Plaintext
1 line
5.6 KiB
Plaintext
{"dependencies":[],"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.lazyMethod = lazyMethod;\n exports.lazyMethods = lazyMethods;\n /**\n * @name lazyMethod\n * @description\n * Creates a lazy, on-demand getter for the specific value. Upon get the value will be evaluated.\n */\n function lazyMethod(result, item, creator, getName, index = 0) {\n const name = getName ? getName(item, index) : item.toString();\n let value;\n Object.defineProperty(result, name, {\n // This allows for re-configuration with the embedded defineProperty below\n // and ensures that on tested browsers and Node, it _will_ be redefined\n // and thus short-circuited for future access\n configurable: true,\n enumerable: true,\n // Use a function here, we don't want to capture the outer this, i.e.\n // don't use arrow functions in this context since we have a this inside\n get: function () {\n // This check should _always_ be false and unneeded, since we override\n // with a value below ... however we ensure we are quire vigilant against\n // all environment failures, so we are rather be safe than sorry\n if (value === undefined) {\n value = creator(item, index, this);\n try {\n // re-define the property as a value, next time around this\n // getter will only return the computed value\n Object.defineProperty(this, name, {\n value\n });\n } catch {\n // ignore any errors, since this _should_ not happen due to\n // the \"configurable\" property above. But if it ever does\n // from here-on we will be the cached value the next time\n // around (with a very slight dip in performance)\n }\n }\n return value;\n }\n });\n }\n /**\n * @name lazyMethods\n * @description\n * Creates lazy, on-demand getters for the specific values.\n */\n function lazyMethods(result, items, creator, getName) {\n for (let i = 0, count = items.length; i < count; i++) {\n lazyMethod(result, items[i], creator, getName, i);\n }\n return result;\n }\n});","lineCount":59,"map":[[7,2,6,0,"exports"],[7,9,6,0],[7,10,6,0,"lazyMethod"],[7,20,6,0],[7,23,6,0,"lazyMethod"],[7,33,6,0],[8,2,46,0,"exports"],[8,9,46,0],[8,10,46,0,"lazyMethods"],[8,21,46,0],[8,24,46,0,"lazyMethods"],[8,35,46,0],[9,2,1,0],[10,0,2,0],[11,0,3,0],[12,0,4,0],[13,0,5,0],[14,2,6,7],[14,11,6,16,"lazyMethod"],[14,21,6,26,"lazyMethod"],[14,22,6,27,"result"],[14,28,6,33],[14,30,6,35,"item"],[14,34,6,39],[14,36,6,41,"creator"],[14,43,6,48],[14,45,6,50,"getName"],[14,52,6,57],[14,54,6,59,"index"],[14,59,6,64],[14,62,6,67],[14,63,6,68],[14,65,6,70],[15,4,7,4],[15,10,7,10,"name"],[15,14,7,14],[15,17,7,17,"getName"],[15,24,7,24],[15,27,8,10,"getName"],[15,34,8,17],[15,35,8,18,"item"],[15,39,8,22],[15,41,8,24,"index"],[15,46,8,29],[15,47,8,30],[15,50,9,10,"item"],[15,54,9,14],[15,55,9,15,"toString"],[15,63,9,23],[15,64,9,24],[15,65,9,25],[16,4,10,4],[16,8,10,8,"value"],[16,13,10,13],[17,4,11,4,"Object"],[17,10,11,10],[17,11,11,11,"defineProperty"],[17,25,11,25],[17,26,11,26,"result"],[17,32,11,32],[17,34,11,34,"name"],[17,38,11,38],[17,40,11,40],[18,6,12,8],[19,6,13,8],[20,6,14,8],[21,6,15,8,"configurable"],[21,18,15,20],[21,20,15,22],[21,24,15,26],[22,6,16,8,"enumerable"],[22,16,16,18],[22,18,16,20],[22,22,16,24],[23,6,17,8],[24,6,18,8],[25,6,19,8,"get"],[25,9,19,11],[25,11,19,13],[25,20,19,13,"get"],[25,21,19,13],[25,23,19,25],[26,8,20,12],[27,8,21,12],[28,8,22,12],[29,8,23,12],[29,12,23,16,"value"],[29,17,23,21],[29,22,23,26,"undefined"],[29,31,23,35],[29,33,23,37],[30,10,24,16,"value"],[30,15,24,21],[30,18,24,24,"creator"],[30,25,24,31],[30,26,24,32,"item"],[30,30,24,36],[30,32,24,38,"index"],[30,37,24,43],[30,39,24,45],[30,43,24,49],[30,44,24,50],[31,10,25,16],[31,14,25,20],[32,12,26,20],[33,12,27,20],[34,12,28,20,"Object"],[34,18,28,26],[34,19,28,27,"defineProperty"],[34,33,28,41],[34,34,28,42],[34,38,28,46],[34,40,28,48,"name"],[34,44,28,52],[34,46,28,54],[35,14,28,56,"value"],[36,12,28,62],[36,13,28,63],[36,14,28,64],[37,10,29,16],[37,11,29,17],[37,12,30,16],[37,18,30,22],[38,12,31,20],[39,12,32,20],[40,12,33,20],[41,12,34,20],[42,10,34,20],[43,8,36,12],[44,8,37,12],[44,15,37,19,"value"],[44,20,37,24],[45,6,38,8],[46,4,39,4],[46,5,39,5],[46,6,39,6],[47,2,40,0],[48,2,41,0],[49,0,42,0],[50,0,43,0],[51,0,44,0],[52,0,45,0],[53,2,46,7],[53,11,46,16,"lazyMethods"],[53,22,46,27,"lazyMethods"],[53,23,46,28,"result"],[53,29,46,34],[53,31,46,36,"items"],[53,36,46,41],[53,38,46,43,"creator"],[53,45,46,50],[53,47,46,52,"getName"],[53,54,46,59],[53,56,46,61],[54,4,47,4],[54,9,47,9],[54,13,47,13,"i"],[54,14,47,14],[54,17,47,17],[54,18,47,18],[54,20,47,20,"count"],[54,25,47,25],[54,28,47,28,"items"],[54,33,47,33],[54,34,47,34,"length"],[54,40,47,40],[54,42,47,42,"i"],[54,43,47,43],[54,46,47,46,"count"],[54,51,47,51],[54,53,47,53,"i"],[54,54,47,54],[54,56,47,56],[54,58,47,58],[55,6,48,8,"lazyMethod"],[55,16,48,18],[55,17,48,19,"result"],[55,23,48,25],[55,25,48,27,"items"],[55,30,48,32],[55,31,48,33,"i"],[55,32,48,34],[55,33,48,35],[55,35,48,37,"creator"],[55,42,48,44],[55,44,48,46,"getName"],[55,51,48,53],[55,53,48,55,"i"],[55,54,48,56],[55,55,48,57],[56,4,49,4],[57,4,50,4],[57,11,50,11,"result"],[57,17,50,17],[58,2,51,0],[59,0,51,1],[59,3]],"functionMap":{"names":["<global>","lazyMethod","Object.defineProperty$argument_2.get","lazyMethods"],"mappings":"AAA;OCK;aCa;SDmB;CDE;OGM;CHK"},"hasCjsExports":false},"type":"js/module"}]} |