1edeb76eed94a1222bf3c294ecd83243.json 10 KB

1
  1. {"ast":null,"code":"'use strict';\n\nvar $ = require('./export');\n\nvar global = require('../internals/global');\n\nvar InternalMetadataModule = require('../internals/internal-metadata');\n\nvar fails = require('../internals/fails');\n\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\n\nvar iterate = require('../internals/iterate');\n\nvar anInstance = require('../internals/an-instance');\n\nvar isObject = require('../internals/is-object');\n\nvar setToStringTag = require('../internals/set-to-string-tag');\n\nvar defineProperty = require('../internals/object-define-property').f;\n\nvar forEach = require('../internals/array-iteration').forEach;\n\nvar DESCRIPTORS = require('../internals/descriptors');\n\nvar InternalStateModule = require('../internals/internal-state');\n\nvar setInternalState = InternalStateModule.set;\nvar internalStateGetterFor = InternalStateModule.getterFor;\n\nmodule.exports = function (CONSTRUCTOR_NAME, wrapper, common) {\n var IS_MAP = CONSTRUCTOR_NAME.indexOf('Map') !== -1;\n var IS_WEAK = CONSTRUCTOR_NAME.indexOf('Weak') !== -1;\n var ADDER = IS_MAP ? 'set' : 'add';\n var NativeConstructor = global[CONSTRUCTOR_NAME];\n var NativePrototype = NativeConstructor && NativeConstructor.prototype;\n var exported = {};\n var Constructor;\n\n if (!DESCRIPTORS || typeof NativeConstructor != 'function' || !(IS_WEAK || NativePrototype.forEach && !fails(function () {\n new NativeConstructor().entries().next();\n }))) {\n // create collection constructor\n Constructor = common.getConstructor(wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER);\n InternalMetadataModule.REQUIRED = true;\n } else {\n Constructor = wrapper(function (target, iterable) {\n setInternalState(anInstance(target, Constructor, CONSTRUCTOR_NAME), {\n type: CONSTRUCTOR_NAME,\n collection: new NativeConstructor()\n });\n if (iterable != undefined) iterate(iterable, target[ADDER], {\n that: target,\n AS_ENTRIES: IS_MAP\n });\n });\n var getInternalState = internalStateGetterFor(CONSTRUCTOR_NAME);\n forEach(['add', 'clear', 'delete', 'forEach', 'get', 'has', 'set', 'keys', 'values', 'entries'], function (KEY) {\n var IS_ADDER = KEY == 'add' || KEY == 'set';\n\n if (KEY in NativePrototype && !(IS_WEAK && KEY == 'clear')) {\n createNonEnumerableProperty(Constructor.prototype, KEY, function (a, b) {\n var collection = getInternalState(this).collection;\n if (!IS_ADDER && IS_WEAK && !isObject(a)) return KEY == 'get' ? undefined : false;\n var result = collection[KEY](a === 0 ? 0 : a, b);\n return IS_ADDER ? this : result;\n });\n }\n });\n IS_WEAK || defineProperty(Constructor.prototype, 'size', {\n configurable: true,\n get: function () {\n return getInternalState(this).collection.size;\n }\n });\n }\n\n setToStringTag(Constructor, CONSTRUCTOR_NAME, false, true);\n exported[CONSTRUCTOR_NAME] = Constructor;\n $({\n global: true,\n forced: true\n }, exported);\n if (!IS_WEAK) common.setStrong(Constructor, CONSTRUCTOR_NAME, IS_MAP);\n return Constructor;\n};","map":{"version":3,"sources":["/Users/jane/Documents/Курс Front-end/HW8/myproject/node_modules/core-js-pure/internals/collection.js"],"names":["$","require","global","InternalMetadataModule","fails","createNonEnumerableProperty","iterate","anInstance","isObject","setToStringTag","defineProperty","f","forEach","DESCRIPTORS","InternalStateModule","setInternalState","set","internalStateGetterFor","getterFor","module","exports","CONSTRUCTOR_NAME","wrapper","common","IS_MAP","indexOf","IS_WEAK","ADDER","NativeConstructor","NativePrototype","prototype","exported","Constructor","entries","next","getConstructor","REQUIRED","target","iterable","type","collection","undefined","that","AS_ENTRIES","getInternalState","KEY","IS_ADDER","a","b","result","configurable","get","size","forced","setStrong"],"mappings":"AAAA;;AACA,IAAIA,CAAC,GAAGC,OAAO,CAAC,UAAD,CAAf;;AACA,IAAIC,MAAM,GAAGD,OAAO,CAAC,qBAAD,CAApB;;AACA,IAAIE,sBAAsB,GAAGF,OAAO,CAAC,gCAAD,CAApC;;AACA,IAAIG,KAAK,GAAGH,OAAO,CAAC,oBAAD,CAAnB;;AACA,IAAII,2BAA2B,GAAGJ,OAAO,CAAC,6CAAD,CAAzC;;AACA,IAAIK,OAAO,GAAGL,OAAO,C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AC,IAAD,CAAhB,CAAuBJ,UAAxC;AACA,cAAI,CAACM,QAAD,IAAapB,OAAb,IAAwB,CAAClB,QAAQ,CAACuC,CAAD,CAArC,EAA0C,OAAOF,GAAG,IAAI,KAAP,GAAeJ,SAAf,GAA2B,KAAlC;AAC1C,cAAIQ,MAAM,GAAGT,UAAU,CAACK,GAAD,CAAV,CAAgBE,CAAC,KAAK,CAAN,GAAU,CAAV,GAAcA,CAA9B,EAAiCC,CAAjC,CAAb;AACA,iBAAOF,QAAQ,GAAG,IAAH,GAAUG,MAAzB;AACD,SAL0B,CAA3B;AAMD;AACF,KAVM,CAAP;AAYAvB,IAAAA,OAAO,IAAIhB,cAAc,CAACsB,WAAW,CAACF,SAAb,EAAwB,MAAxB,EAAgC;AACvDoB,MAAAA,YAAY,EAAE,IADyC;AAEvDC,MAAAA,GAAG,EAAE,YAAY;AACf,eAAOP,gBAAgB,CAAC,IAAD,CAAhB,CAAuBJ,UAAvB,CAAkCY,IAAzC;AACD;AAJsD,KAAhC,CAAzB;AAMD;;AAED3C,EAAAA,cAAc,CAACuB,WAAD,EAAcX,gBAAd,EAAgC,KAAhC,EAAuC,IAAvC,CAAd;AAEAU,EAAAA,QAAQ,CAACV,gBAAD,CAAR,GAA6BW,WAA7B;AACAhC,EAAAA,CAAC,CAAC;AAAEE,IAAAA,MAAM,EAAE,IAAV;AAAgBmD,IAAAA,MAAM,EAAE;AAAxB,GAAD,EAAiCtB,QAAjC,CAAD;AAEA,MAAI,CAACL,OAAL,EAAcH,MAAM,CAAC+B,SAAP,CAAiBtB,WAAjB,EAA8BX,gBAA9B,EAAgDG,MAAhD;AAEd,SAAOQ,WAAP;AACD,CAtDD","sourcesContent":["'use strict';\nvar $ = require('./export');\nvar global = require('../internals/global');\nvar InternalMetadataModule = require('../internals/internal-metadata');\nvar fails = require('../internals/fails');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar iterate = require('../internals/iterate');\nvar anInstance = require('../internals/an-instance');\nvar isObject = require('../internals/is-object');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar defineProperty = require('../internals/object-define-property').f;\nvar forEach = require('../internals/array-iteration').forEach;\nvar DESCRIPTORS = require('../internals/descriptors');\nvar InternalStateModule = require('../internals/internal-state');\n\nvar setInternalState = InternalStateModule.set;\nvar internalStateGetterFor = InternalStateModule.getterFor;\n\nmodule.exports = function (CONSTRUCTOR_NAME, wrapper, common) {\n var IS_MAP = CONSTRUCTOR_NAME.indexOf('Map') !== -1;\n var IS_WEAK = CONSTRUCTOR_NAME.indexOf('Weak') !== -1;\n var ADDER = IS_MAP ? 'set' : 'add';\n var NativeConstructor = global[CONSTRUCTOR_NAME];\n var NativePrototype = NativeConstructor && NativeConstructor.prototype;\n var exported = {};\n var Constructor;\n\n if (!DESCRIPTORS || typeof NativeConstructor != 'function'\n || !(IS_WEAK || NativePrototype.forEach && !fails(function () { new NativeConstructor().entries().next(); }))\n ) {\n // create collection constructor\n Constructor = common.getConstructor(wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER);\n InternalMetadataModule.REQUIRED = true;\n } else {\n Constructor = wrapper(function (target, iterable) {\n setInternalState(anInstance(target, Constructor, CONSTRUCTOR_NAME), {\n type: CONSTRUCTOR_NAME,\n collection: new NativeConstructor()\n });\n if (iterable != undefined) iterate(iterable, target[ADDER], { that: target, AS_ENTRIES: IS_MAP });\n });\n\n var getInternalState = internalStateGetterFor(CONSTRUCTOR_NAME);\n\n forEach(['add', 'clear', 'delete', 'forEach', 'get', 'has', 'set', 'keys', 'values', 'entries'], function (KEY) {\n var IS_ADDER = KEY == 'add' || KEY == 'set';\n if (KEY in NativePrototype && !(IS_WEAK && KEY == 'clear')) {\n createNonEnumerableProperty(Constructor.prototype, KEY, function (a, b) {\n var collection = getInternalState(this).collection;\n if (!IS_ADDER && IS_WEAK && !isObject(a)) return KEY == 'get' ? undefined : false;\n var result = collection[KEY](a === 0 ? 0 : a, b);\n return IS_ADDER ? this : result;\n });\n }\n });\n\n IS_WEAK || defineProperty(Constructor.prototype, 'size', {\n configurable: true,\n get: function () {\n return getInternalState(this).collection.size;\n }\n });\n }\n\n setToStringTag(Constructor, CONSTRUCTOR_NAME, false, true);\n\n exported[CONSTRUCTOR_NAME] = Constructor;\n $({ global: true, forced: true }, exported);\n\n if (!IS_WEAK) common.setStrong(Constructor, CONSTRUCTOR_NAME, IS_MAP);\n\n return Constructor;\n};\n"]},"metadata":{},"sourceType":"script"}