1 |
- {"ast":null,"code":"'use strict';\n\nvar DESCRIPTORS = require('../internals/descriptors');\n\nvar fails = require('../internals/fails');\n\nvar objectKeys = require('../internals/object-keys');\n\nvar getOwnPropertySymbolsModule = require('../internals/object-get-own-property-symbols');\n\nvar propertyIsEnumerableModule = require('../internals/object-property-is-enumerable');\n\nvar toObject = require('../internals/to-object');\n\nvar IndexedObject = require('../internals/indexed-object'); // eslint-disable-next-line es/no-object-assign -- safe\n\n\nvar $assign = Object.assign; // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n\nvar defineProperty = Object.defineProperty; // `Object.assign` method\n// https://tc39.es/ecma262/#sec-object.assign\n\nmodule.exports = !$assign || fails(function () {\n // should have correct order of operations (Edge bug)\n if (DESCRIPTORS && $assign({\n b: 1\n }, $assign(defineProperty({}, 'a', {\n enumerable: true,\n get: function () {\n defineProperty(this, 'b', {\n value: 3,\n enumerable: false\n });\n }\n }), {\n b: 2\n })).b !== 1) return true; // should work with symbols and should have deterministic property order (V8 bug)\n\n var A = {};\n var B = {}; // eslint-disable-next-line es/no-symbol -- safe\n\n var symbol = Symbol();\n var alphabet = 'abcdefghijklmnopqrst';\n A[symbol] = 7;\n alphabet.split('').forEach(function (chr) {\n B[chr] = chr;\n });\n return $assign({}, A)[symbol] != 7 || objectKeys($assign({}, B)).join('') != alphabet;\n}) ? function assign(target, source) {\n // eslint-disable-line no-unused-vars -- required for `.length`\n var T = toObject(target);\n var argumentsLength = arguments.length;\n var index = 1;\n var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;\n var propertyIsEnumerable = propertyIsEnumerableModule.f;\n\n while (argumentsLength > index) {\n var S = IndexedObject(arguments[index++]);\n var keys = getOwnPropertySymbols ? objectKeys(S).concat(getOwnPropertySymbols(S)) : objectKeys(S);\n var length = keys.length;\n var j = 0;\n var key;\n\n while (length > j) {\n key = keys[j++];\n if (!DESCRIPTORS || propertyIsEnumerable.call(S, key)) T[key] = S[key];\n }\n }\n\n return T;\n} : $assign;","map":{"version":3,"sources":["/Users/jane/Documents/Курс Front-end/HW8/myproject/node_modules/core-js-pure/internals/object-assign.js"],"names":["DESCRIPTORS","require","fails","objectKeys","getOwnPropertySymbolsModule","propertyIsEnumerableModule","toObject","IndexedObject","$assign","Object","assign","defineProperty","module","exports","b","enumerable","get","value","A","B","symbol","Symbol","alphabet","split","forEach","chr","join","target","source","T","argumentsLength","arguments","length","index","getOwnPropertySymbols","f","propertyIsEnumerable","S","keys","concat","j","key","call"],"mappings":"AAAA;;AACA,IAAIA,WAAW,GAAGC,OAAO,CAAC,0BAAD,CAAzB;;AACA,IAAIC,KAAK,GAAGD,OAAO,CAAC,oBAAD,CAAnB;;AACA,IAAIE,UAAU,GAAGF,OAAO,CAAC,0BAAD,CAAxB;;AACA,IAAIG,2BAA2B,GAAGH,OAAO,CAAC,8CAAD,CAAzC;;AACA,IAAII,0BAA0B,GAAGJ,OAAO,CAAC,4CAAD,CAAxC;;AACA,IAAIK,QAAQ,GAAGL,OAAO,CAAC,wBAAD,CAAtB;;AACA,IAAIM,aAAa,GAAGN,OAAO,CAAC,6BAAD,CAA3B,C,CAEA;;;AACA,IAAIO,OAAO,GAAGC,MAAM,CAACC,MAArB,C,CACA;;AACA,IAAIC,cAAc,GAAGF,MAAM,CAACE,cAA5B,C,CAEA;AACA;;AACAC,MAAM,CAACC,OAAP,GAAiB,CAACL,OAAD,IAAYN,KAAK,CAAC,YAAY;AAC7C;AACA,MAAIF,WAAW,IAAIQ,OAAO,CAAC;AAAEM,IAAAA,CAAC,EAAE;AAAL,GAAD,EAAWN,OAAO,CAACG,cAAc,CAAC,EAAD,EAAK,GAAL,EAAU;AACnEI,IAAAA,UAAU,EAAE,IADuD;AAEnEC,IAAAA,GAAG,EAAE,YAAY;AACfL,MAAAA,cAAc,CAAC,IAAD,EAAO,GAAP,EAAY;AACxBM,QAAAA,KAAK,EAAE,CADiB;AAExBF,QAAAA,UAAU,EAAE;AAFY,OAAZ,CAAd;AAID;AAPkE,GAAV,CAAf,E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U,CAACkC,CAAD,CAA9F;AACA,QAAIL,MAAM,GAAGM,IAAI,CAACN,MAAlB;AACA,QAAIQ,CAAC,GAAG,CAAR;AACA,QAAIC,GAAJ;;AACA,WAAOT,MAAM,GAAGQ,CAAhB,EAAmB;AACjBC,MAAAA,GAAG,GAAGH,IAAI,CAACE,CAAC,EAAF,CAAV;AACA,UAAI,CAACxC,WAAD,IAAgBoC,oBAAoB,CAACM,IAArB,CAA0BL,CAA1B,EAA6BI,GAA7B,CAApB,EAAuDZ,CAAC,CAACY,GAAD,CAAD,GAASJ,CAAC,CAACI,GAAD,CAAV;AACxD;AACF;;AAAC,SAAOZ,CAAP;AACH,CArCgB,GAqCbrB,OArCJ","sourcesContent":["'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\nvar objectKeys = require('../internals/object-keys');\nvar getOwnPropertySymbolsModule = require('../internals/object-get-own-property-symbols');\nvar propertyIsEnumerableModule = require('../internals/object-property-is-enumerable');\nvar toObject = require('../internals/to-object');\nvar IndexedObject = require('../internals/indexed-object');\n\n// eslint-disable-next-line es/no-object-assign -- safe\nvar $assign = Object.assign;\n// eslint-disable-next-line es/no-object-defineproperty -- required for testing\nvar defineProperty = Object.defineProperty;\n\n// `Object.assign` method\n// https://tc39.es/ecma262/#sec-object.assign\nmodule.exports = !$assign || fails(function () {\n // should have correct order of operations (Edge bug)\n if (DESCRIPTORS && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {\n enumerable: true,\n get: function () {\n defineProperty(this, 'b', {\n value: 3,\n enumerable: false\n });\n }\n }), { b: 2 })).b !== 1) return true;\n // should work with symbols and should have deterministic property order (V8 bug)\n var A = {};\n var B = {};\n // eslint-disable-next-line es/no-symbol -- safe\n var symbol = Symbol();\n var alphabet = 'abcdefghijklmnopqrst';\n A[symbol] = 7;\n alphabet.split('').forEach(function (chr) { B[chr] = chr; });\n return $assign({}, A)[symbol] != 7 || objectKeys($assign({}, B)).join('') != alphabet;\n}) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`\n var T = toObject(target);\n var argumentsLength = arguments.length;\n var index = 1;\n var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;\n var propertyIsEnumerable = propertyIsEnumerableModule.f;\n while (argumentsLength > index) {\n var S = IndexedObject(arguments[index++]);\n var keys = getOwnPropertySymbols ? objectKeys(S).concat(getOwnPropertySymbols(S)) : objectKeys(S);\n var length = keys.length;\n var j = 0;\n var key;\n while (length > j) {\n key = keys[j++];\n if (!DESCRIPTORS || propertyIsEnumerable.call(S, key)) T[key] = S[key];\n }\n } return T;\n} : $assign;\n"]},"metadata":{},"sourceType":"script"}
|