mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 19:11:02 +00:00
1 line
5.9 KiB
Plaintext
1 line
5.9 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":[[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,"lazyMethod"],[7,20,3,18],[7,23,3,21,"lazyMethod"],[7,33,3,31],[8,2,4,0,"exports"],[8,9,4,7],[8,10,4,8,"lazyMethods"],[8,21,4,19],[8,24,4,22,"lazyMethods"],[8,35,4,33],[9,2,5,0],[10,0,6,0],[11,0,7,0],[12,0,8,0],[13,0,9,0],[14,2,10,0],[14,11,10,9,"lazyMethod"],[14,21,10,19,"lazyMethod"],[14,22,10,20,"result"],[14,28,10,26],[14,30,10,28,"item"],[14,34,10,32],[14,36,10,34,"creator"],[14,43,10,41],[14,45,10,43,"getName"],[14,52,10,50],[14,54,10,52,"index"],[14,59,10,57],[14,62,10,60],[14,63,10,61],[14,65,10,63],[15,4,11,4],[15,10,11,10,"name"],[15,14,11,14],[15,17,11,17,"getName"],[15,24,11,24],[15,27,12,10,"getName"],[15,34,12,17],[15,35,12,18,"item"],[15,39,12,22],[15,41,12,24,"index"],[15,46,12,29],[15,47,12,30],[15,50,13,10,"item"],[15,54,13,14],[15,55,13,15,"toString"],[15,63,13,23],[15,64,13,24],[15,65,13,25],[16,4,14,4],[16,8,14,8,"value"],[16,13,14,13],[17,4,15,4,"Object"],[17,10,15,10],[17,11,15,11,"defineProperty"],[17,25,15,25],[17,26,15,26,"result"],[17,32,15,32],[17,34,15,34,"name"],[17,38,15,38],[17,40,15,40],[18,6,16,8],[19,6,17,8],[20,6,18,8],[21,6,19,8,"configurable"],[21,18,19,20],[21,20,19,22],[21,24,19,26],[22,6,20,8,"enumerable"],[22,16,20,18],[22,18,20,20],[22,22,20,24],[23,6,21,8],[24,6,22,8],[25,6,23,8,"get"],[25,9,23,11],[25,11,23,13],[25,20,23,13,"get"],[25,21,23,13],[25,23,23,25],[26,8,24,12],[27,8,25,12],[28,8,26,12],[29,8,27,12],[29,12,27,16,"value"],[29,17,27,21],[29,22,27,26,"undefined"],[29,31,27,35],[29,33,27,37],[30,10,28,16,"value"],[30,15,28,21],[30,18,28,24,"creator"],[30,25,28,31],[30,26,28,32,"item"],[30,30,28,36],[30,32,28,38,"index"],[30,37,28,43],[30,39,28,45],[30,43,28,49],[30,44,28,50],[31,10,29,16],[31,14,29,20],[32,12,30,20],[33,12,31,20],[34,12,32,20,"Object"],[34,18,32,26],[34,19,32,27,"defineProperty"],[34,33,32,41],[34,34,32,42],[34,38,32,46],[34,40,32,48,"name"],[34,44,32,52],[34,46,32,54],[35,14,32,56,"value"],[36,12,32,62],[36,13,32,63],[36,14,32,64],[37,10,33,16],[37,11,33,17],[37,12,34,16],[37,18,34,22],[38,12,35,20],[39,12,36,20],[40,12,37,20],[41,12,38,20],[42,10,38,20],[43,8,40,12],[44,8,41,12],[44,15,41,19,"value"],[44,20,41,24],[45,6,42,8],[46,4,43,4],[46,5,43,5],[46,6,43,6],[47,2,44,0],[48,2,45,0],[49,0,46,0],[50,0,47,0],[51,0,48,0],[52,0,49,0],[53,2,50,0],[53,11,50,9,"lazyMethods"],[53,22,50,20,"lazyMethods"],[53,23,50,21,"result"],[53,29,50,27],[53,31,50,29,"items"],[53,36,50,34],[53,38,50,36,"creator"],[53,45,50,43],[53,47,50,45,"getName"],[53,54,50,52],[53,56,50,54],[54,4,51,4],[54,9,51,9],[54,13,51,13,"i"],[54,14,51,14],[54,17,51,17],[54,18,51,18],[54,20,51,20,"count"],[54,25,51,25],[54,28,51,28,"items"],[54,33,51,33],[54,34,51,34,"length"],[54,40,51,40],[54,42,51,42,"i"],[54,43,51,43],[54,46,51,46,"count"],[54,51,51,51],[54,53,51,53,"i"],[54,54,51,54],[54,56,51,56],[54,58,51,58],[55,6,52,8,"lazyMethod"],[55,16,52,18],[55,17,52,19,"result"],[55,23,52,25],[55,25,52,27,"items"],[55,30,52,32],[55,31,52,33,"i"],[55,32,52,34],[55,33,52,35],[55,35,52,37,"creator"],[55,42,52,44],[55,44,52,46,"getName"],[55,51,52,53],[55,53,52,55,"i"],[55,54,52,56],[55,55,52,57],[56,4,53,4],[57,4,54,4],[57,11,54,11,"result"],[57,17,54,17],[58,2,55,0],[59,0,55,1],[59,3]],"functionMap":{"names":["<global>","lazyMethod","Object.defineProperty$argument_2.get","lazyMethods"],"mappings":"AAA;ACS;aCa;SDmB;CDE;AGM;CHK"},"hasCjsExports":true},"type":"js/module"}]} |