{"version":3,"sources":["webpack:///./node_modules/core-js/internals/function-bind.js","webpack:///./node_modules/core-js/internals/array-method-has-species-support.js","webpack:///./node_modules/core-js/internals/create-property.js","webpack:///./node_modules/core-js/modules/es.array.map.js","webpack:///./src/js/utils/index.js","webpack:///./node_modules/core-js/modules/es.array.index-of.js","webpack:///./node_modules/core-js/modules/es.array.includes.js","webpack:///./node_modules/core-js/modules/es.string.includes.js","webpack:///./node_modules/core-js/internals/validate-string-method-arguments.js","webpack:///./node_modules/core-js/internals/correct-is-regexp-logic.js","webpack:///./node_modules/js-cookie/src/js.cookie.js","webpack:///./node_modules/core-js/modules/es.array.every.js","webpack:///./node_modules/core-js/modules/es.array.flat.js","webpack:///./node_modules/core-js/internals/flatten-into-array.js","webpack:///./node_modules/core-js/modules/es.array.unscopables.flat.js","webpack:///./src/js/modules/Checkout.js","webpack:///./node_modules/core-js/modules/es.object.get-prototype-of.js","webpack:///./node_modules/core-js/modules/es.reflect.construct.js"],"names":["aFunction","isObject","arraySlice","slice","factories","construct","C","argsLength","args","list","i","Function","join","module","exports","bind","that","fn","this","partArgs","call","arguments","boundFunction","concat","length","apply","prototype","fails","SPECIES","METHOD_NAME","array","constructor","foo","Boolean","toPrimitive","definePropertyModule","createPropertyDescriptor","object","key","value","propertyKey","f","internalMap","SPECIES_SUPPORT","target","proto","forced","map","callbackfn","getCookie","name","parts","document","cookie","split","pop","shift","setTrackDataLayer","eventName","custom","window","dataLayer","push","event","getQueryParams","URLSearchParams","location","search","get","internalIndexOf","nativeIndexOf","indexOf","NEGATIVE_ZERO","SLOPPY_METHOD","searchElement","internalIncludes","includes","el","undefined","validateArguments","CORRECT_IS_REGEXP_LOGIC","searchString","isRegExp","requireObjectCoercible","NAME","TypeError","String","MATCH","regexp","e","factory","OldCookies","Cookies","api","noConflict","extend","result","attributes","decode","s","replace","decodeURIComponent","init","converter","set","path","defaults","expires","Date","toUTCString","JSON","stringify","test","write","encodeURIComponent","escape","stringifiedAttributes","attributeName","json","jar","cookies","charAt","read","parse","getJSON","remove","withConverter","internalEvery","every","flattenIntoArray","toObject","toLength","toInteger","arraySpeciesCreate","flat","depthArg","O","sourceLen","A","isArray","original","source","start","depth","mapper","thisArg","element","targetIndex","sourceIndex","mapFn","Checkout","dom","cartItemSkus","$el","data","userId","redirectUrl","setCookie","ceraplusSkusCookie","additionalProducts","removedProducts","accessoriesRemoved","onlyRemovedProducts","cartItemsSkus","toString","ceraplusSkus","forEach","item","notEqualItems","sku","removeProductsCookie","filter","accessoriesArray","accessories","accessoriesAdded","finalRemovedResult","num","cart_ID","products_list","remove_products","add_products","products_added","products_removed","accessories_added","accessories_removed","href","Component","nativeGetPrototypeOf","CORRECT_PROTOTYPE_GETTER","FAILS_ON_PRIMITIVES","stat","sham","getPrototypeOf","it","create","anObject","nativeConstruct","Reflect","NEW_TARGET_BUG","F","ARGS_BUG","FORCED","Target","newTarget","$args","instance","Object"],"mappings":"2FACA,IAAIA,EAAY,EAAQ,GACpBC,EAAW,EAAQ,GACnBC,EAAa,GAAGC,MAChBC,EAAY,GAEZC,EAAY,SAAUC,EAAGC,EAAYC,GACvC,KAAMD,KAAcH,GAAY,CAC9B,IAAK,IAAIK,EAAO,GAAIC,EAAI,EAAGA,EAAIH,EAAYG,IAAKD,EAAKC,GAAK,KAAOA,EAAI,IAErEN,EAAUG,GAAcI,SAAS,MAAO,gBAAkBF,EAAKG,KAAK,KAAO,KAC3E,OAAOR,EAAUG,GAAYD,EAAGE,IAKpCK,EAAOC,QAAUH,SAASI,MAAQ,SAAcC,GAC9C,IAAIC,EAAKjB,EAAUkB,MACfC,EAAWjB,EAAWkB,KAAKC,UAAW,GACtCC,EAAgB,WAClB,IAAId,EAAOW,EAASI,OAAOrB,EAAWkB,KAAKC,YAC3C,OAAOH,gBAAgBI,EAAgBjB,EAAUY,EAAIT,EAAKgB,OAAQhB,GAAQS,EAAGQ,MAAMT,EAAMR,IAG3F,OADIP,EAASgB,EAAGS,aAAYJ,EAAcI,UAAYT,EAAGS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OAAO,IAAIkL,EACnB,KAAK,EAAG,OAAO,IAAIA,EAAOlM,EAAK,IAC/B,KAAK,EAAG,OAAO,IAAIkM,EAAOlM,EAAK,GAAIA,EAAK,IACxC,KAAK,EAAG,OAAO,IAAIkM,EAAOlM,EAAK,GAAIA,EAAK,GAAIA,EAAK,IACjD,KAAK,EAAG,OAAO,IAAIkM,EAAOlM,EAAK,GAAIA,EAAK,GAAIA,EAAK,GAAIA,EAAK,IAG5D,IAAIoM,EAAQ,CAAC,MAEb,OADAA,EAAM9I,KAAKrC,MAAMmL,EAAOpM,GACjB,IAAKO,EAAKU,MAAMiL,EAAQE,IAGjC,IAAI/J,EAAQ8J,EAAUjL,UAClBmL,EAAWX,EAAOjM,EAAS4C,GAASA,EAAQiK,OAAOpL,WACnDsE,EAASrF,SAASc,MAAML,KAAKsL,EAAQG,EAAUrM,GACnD,OAAOP,EAAS+F,GAAUA,EAAS6G","file":"10.bundle.js","sourcesContent":["'use strict';\nvar aFunction = require('../internals/a-function');\nvar isObject = require('../internals/is-object');\nvar arraySlice = [].slice;\nvar factories = {};\n\nvar construct = function (C, argsLength, args) {\n if (!(argsLength in factories)) {\n for (var list = [], i = 0; i < argsLength; i++) list[i] = 'a[' + i + ']';\n // eslint-disable-next-line no-new-func\n factories[argsLength] = Function('C,a', 'return new C(' + list.join(',') + ')');\n } return factories[argsLength](C, args);\n};\n\n// `Function.prototype.bind` method implementation\n// https://tc39.github.io/ecma262/#sec-function.prototype.bind\nmodule.exports = Function.bind || function bind(that /* , ...args */) {\n var fn = aFunction(this);\n var partArgs = arraySlice.call(arguments, 1);\n var boundFunction = function bound(/* args... */) {\n var args = partArgs.concat(arraySlice.call(arguments));\n return this instanceof boundFunction ? construct(fn, args.length, args) : fn.apply(that, args);\n };\n if (isObject(fn.prototype)) boundFunction.prototype = fn.prototype;\n return boundFunction;\n};\n","var fails = require('../internals/fails');\nvar SPECIES = require('../internals/well-known-symbol')('species');\n\nmodule.exports = function (METHOD_NAME) {\n return !fails(function () {\n var array = [];\n var constructor = array.constructor = {};\n constructor[SPECIES] = function () {\n return { foo: 1 };\n };\n return array[METHOD_NAME](Boolean).foo !== 1;\n });\n};\n","'use strict';\nvar toPrimitive = require('../internals/to-primitive');\nvar definePropertyModule = require('../internals/object-define-property');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\n\nmodule.exports = function (object, key, value) {\n var propertyKey = toPrimitive(key);\n if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value));\n else object[propertyKey] = value;\n};\n","'use strict';\nvar internalMap = require('../internals/array-methods')(1);\n\nvar SPECIES_SUPPORT = require('../internals/array-method-has-species-support')('map');\n\n// `Array.prototype.map` method\n// https://tc39.github.io/ecma262/#sec-array.prototype.map\n// with adding support of @@species\nrequire('../internals/export')({ target: 'Array', proto: true, forced: !SPECIES_SUPPORT }, {\n map: function map(callbackfn /* , thisArg */) {\n return internalMap(this, callbackfn, arguments[1]);\n }\n});\n","export const isMobile = () => matchMedia('(max-width: 768px)').matches;\n\nexport const isTablet = () =>\n matchMedia('(min-width: 768px) and (max-width: 1024px)').matches;\n\nexport const isDesktop = () => matchMedia('(min-width: 1024px)').matches;\n\nexport const nextFrameAsync = () =>\n new Promise(resolve => requestAnimationFrame(() => resolve()));\n\nexport const getCookie = name => {\n const value = `; ${document.cookie}`;\n const parts = value.split(`; ${name}=`);\n\n if (parts.length === 2) {\n return parts.pop().split(';').shift();\n }\n};\n\nexport const setTrackDataLayer = ({ eventName, custom = {} }) => {\n window.dataLayer = window.dataLayer || [];\n window.dataLayer.push({\n event: eventName,\n ...custom\n });\n};\n\nexport const getQueryParams = () => {\n // eslint-disable-next-line no-undef\n const urlParams = new URLSearchParams(window.location.search);\n return urlParams.get('q');\n};\n","'use strict';\nvar internalIndexOf = require('../internals/array-includes')(false);\nvar nativeIndexOf = [].indexOf;\n\nvar NEGATIVE_ZERO = !!nativeIndexOf && 1 / [1].indexOf(1, -0) < 0;\nvar SLOPPY_METHOD = require('../internals/sloppy-array-method')('indexOf');\n\n// `Array.prototype.indexOf` method\n// https://tc39.github.io/ecma262/#sec-array.prototype.indexof\nrequire('../internals/export')({ target: 'Array', proto: true, forced: NEGATIVE_ZERO || SLOPPY_METHOD }, {\n indexOf: function indexOf(searchElement /* , fromIndex = 0 */) {\n return NEGATIVE_ZERO\n // convert -0 to +0\n ? nativeIndexOf.apply(this, arguments) || 0\n : internalIndexOf(this, searchElement, arguments[1]);\n }\n});\n","'use strict';\nvar internalIncludes = require('../internals/array-includes')(true);\n\n// `Array.prototype.includes` method\n// https://tc39.github.io/ecma262/#sec-array.prototype.includes\nrequire('../internals/export')({ target: 'Array', proto: true }, {\n includes: function includes(el /* , fromIndex = 0 */) {\n return internalIncludes(this, el, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n\n// https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables\nrequire('../internals/add-to-unscopables')('includes');\n","'use strict';\nvar validateArguments = require('../internals/validate-string-method-arguments');\nvar INCLUDES = 'includes';\n\nvar CORRECT_IS_REGEXP_LOGIC = require('../internals/correct-is-regexp-logic')(INCLUDES);\n\n// `String.prototype.includes` method\n// https://tc39.github.io/ecma262/#sec-string.prototype.includes\nrequire('../internals/export')({ target: 'String', proto: true, forced: !CORRECT_IS_REGEXP_LOGIC }, {\n includes: function includes(searchString /* , position = 0 */) {\n return !!~validateArguments(this, searchString, INCLUDES)\n .indexOf(searchString, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n","// helper for String#{startsWith, endsWith, includes}\nvar isRegExp = require('../internals/is-regexp');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\n\nmodule.exports = function (that, searchString, NAME) {\n if (isRegExp(searchString)) {\n throw TypeError('String.prototype.' + NAME + \" doesn't accept regex\");\n } return String(requireObjectCoercible(that));\n};\n","var MATCH = require('../internals/well-known-symbol')('match');\n\nmodule.exports = function (METHOD_NAME) {\n var regexp = /./;\n try {\n '/./'[METHOD_NAME](regexp);\n } catch (e) {\n try {\n regexp[MATCH] = false;\n return '/./'[METHOD_NAME](regexp);\n } catch (f) { /* empty */ }\n } return false;\n};\n","/*!\n * JavaScript Cookie v2.2.1\n * https://github.com/js-cookie/js-cookie\n *\n * Copyright 2006, 2015 Klaus Hartl & Fagner Brack\n * Released under the MIT license\n */\n;(function (factory) {\n\tvar registeredInModuleLoader;\n\tif (typeof define === 'function' && define.amd) {\n\t\tdefine(factory);\n\t\tregisteredInModuleLoader = true;\n\t}\n\tif (typeof exports === 'object') {\n\t\tmodule.exports = factory();\n\t\tregisteredInModuleLoader = true;\n\t}\n\tif (!registeredInModuleLoader) {\n\t\tvar OldCookies = window.Cookies;\n\t\tvar api = window.Cookies = factory();\n\t\tapi.noConflict = function () {\n\t\t\twindow.Cookies = OldCookies;\n\t\t\treturn api;\n\t\t};\n\t}\n}(function () {\n\tfunction extend () {\n\t\tvar i = 0;\n\t\tvar result = {};\n\t\tfor (; i < arguments.length; i++) {\n\t\t\tvar attributes = arguments[ i ];\n\t\t\tfor (var key in attributes) {\n\t\t\t\tresult[key] = attributes[key];\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}\n\n\tfunction decode (s) {\n\t\treturn s.replace(/(%[0-9A-Z]{2})+/g, decodeURIComponent);\n\t}\n\n\tfunction init (converter) {\n\t\tfunction api() {}\n\n\t\tfunction set (key, value, attributes) {\n\t\t\tif (typeof document === 'undefined') {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tattributes = extend({\n\t\t\t\tpath: '/'\n\t\t\t}, api.defaults, attributes);\n\n\t\t\tif (typeof attributes.expires === 'number') {\n\t\t\t\tattributes.expires = new Date(new Date() * 1 + attributes.expires * 864e+5);\n\t\t\t}\n\n\t\t\t// We're using \"expires\" because \"max-age\" is not supported by IE\n\t\t\tattributes.expires = attributes.expires ? attributes.expires.toUTCString() : '';\n\n\t\t\ttry {\n\t\t\t\tvar result = JSON.stringify(value);\n\t\t\t\tif (/^[\\{\\[]/.test(result)) {\n\t\t\t\t\tvalue = result;\n\t\t\t\t}\n\t\t\t} catch (e) {}\n\n\t\t\tvalue = converter.write ?\n\t\t\t\tconverter.write(value, key) :\n\t\t\t\tencodeURIComponent(String(value))\n\t\t\t\t\t.replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g, decodeURIComponent);\n\n\t\t\tkey = encodeURIComponent(String(key))\n\t\t\t\t.replace(/%(23|24|26|2B|5E|60|7C)/g, decodeURIComponent)\n\t\t\t\t.replace(/[\\(\\)]/g, escape);\n\n\t\t\tvar stringifiedAttributes = '';\n\t\t\tfor (var attributeName in attributes) {\n\t\t\t\tif (!attributes[attributeName]) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tstringifiedAttributes += '; ' + attributeName;\n\t\t\t\tif (attributes[attributeName] === true) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t// Considers RFC 6265 section 5.2:\n\t\t\t\t// ...\n\t\t\t\t// 3. If the remaining unparsed-attributes contains a %x3B (\";\")\n\t\t\t\t// character:\n\t\t\t\t// Consume the characters of the unparsed-attributes up to,\n\t\t\t\t// not including, the first %x3B (\";\") character.\n\t\t\t\t// ...\n\t\t\t\tstringifiedAttributes += '=' + attributes[attributeName].split(';')[0];\n\t\t\t}\n\n\t\t\treturn (document.cookie = key + '=' + value + stringifiedAttributes);\n\t\t}\n\n\t\tfunction get (key, json) {\n\t\t\tif (typeof document === 'undefined') {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tvar jar = {};\n\t\t\t// To prevent the for loop in the first place assign an empty array\n\t\t\t// in case there are no cookies at all.\n\t\t\tvar cookies = document.cookie ? document.cookie.split('; ') : [];\n\t\t\tvar i = 0;\n\n\t\t\tfor (; i < cookies.length; i++) {\n\t\t\t\tvar parts = cookies[i].split('=');\n\t\t\t\tvar cookie = parts.slice(1).join('=');\n\n\t\t\t\tif (!json && cookie.charAt(0) === '\"') {\n\t\t\t\t\tcookie = cookie.slice(1, -1);\n\t\t\t\t}\n\n\t\t\t\ttry {\n\t\t\t\t\tvar name = decode(parts[0]);\n\t\t\t\t\tcookie = (converter.read || converter)(cookie, name) ||\n\t\t\t\t\t\tdecode(cookie);\n\n\t\t\t\t\tif (json) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tcookie = JSON.parse(cookie);\n\t\t\t\t\t\t} catch (e) {}\n\t\t\t\t\t}\n\n\t\t\t\t\tjar[name] = cookie;\n\n\t\t\t\t\tif (key === name) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t} catch (e) {}\n\t\t\t}\n\n\t\t\treturn key ? jar[key] : jar;\n\t\t}\n\n\t\tapi.set = set;\n\t\tapi.get = function (key) {\n\t\t\treturn get(key, false /* read as raw */);\n\t\t};\n\t\tapi.getJSON = function (key) {\n\t\t\treturn get(key, true /* read as json */);\n\t\t};\n\t\tapi.remove = function (key, attributes) {\n\t\t\tset(key, '', extend(attributes, {\n\t\t\t\texpires: -1\n\t\t\t}));\n\t\t};\n\n\t\tapi.defaults = {};\n\n\t\tapi.withConverter = init;\n\n\t\treturn api;\n\t}\n\n\treturn init(function () {});\n}));\n","'use strict';\nvar internalEvery = require('../internals/array-methods')(4);\n\nvar SLOPPY_METHOD = require('../internals/sloppy-array-method')('every');\n\n// `Array.prototype.every` method\n// https://tc39.github.io/ecma262/#sec-array.prototype.every\nrequire('../internals/export')({ target: 'Array', proto: true, forced: SLOPPY_METHOD }, {\n every: function every(callbackfn /* , thisArg */) {\n return internalEvery(this, callbackfn, arguments[1]);\n }\n});\n","'use strict';\nvar flattenIntoArray = require('../internals/flatten-into-array');\nvar toObject = require('../internals/to-object');\nvar toLength = require('../internals/to-length');\nvar toInteger = require('../internals/to-integer');\nvar arraySpeciesCreate = require('../internals/array-species-create');\n\n// `Array.prototype.flat` method\n// https://github.com/tc39/proposal-flatMap\nrequire('../internals/export')({ target: 'Array', proto: true }, {\n flat: function flat(/* depthArg = 1 */) {\n var depthArg = arguments[0];\n var O = toObject(this);\n var sourceLen = toLength(O.length);\n var A = arraySpeciesCreate(O, 0);\n A.length = flattenIntoArray(A, O, O, sourceLen, 0, depthArg === undefined ? 1 : toInteger(depthArg));\n return A;\n }\n});\n","'use strict';\nvar isArray = require('../internals/is-array');\nvar toLength = require('../internals/to-length');\nvar bind = require('../internals/bind-context');\n\n// `FlattenIntoArray` abstract operation\n// https://tc39.github.io/proposal-flatMap/#sec-FlattenIntoArray\nvar flattenIntoArray = function (target, original, source, sourceLen, start, depth, mapper, thisArg) {\n var targetIndex = start;\n var sourceIndex = 0;\n var mapFn = mapper ? bind(mapper, thisArg, 3) : false;\n var element;\n\n while (sourceIndex < sourceLen) {\n if (sourceIndex in source) {\n element = mapFn ? mapFn(source[sourceIndex], sourceIndex, original) : source[sourceIndex];\n\n if (depth > 0 && isArray(element)) {\n targetIndex = flattenIntoArray(target, original, element, toLength(element.length), targetIndex, depth - 1) - 1;\n } else {\n if (targetIndex >= 0x1FFFFFFFFFFFFF) throw TypeError('Exceed the acceptable array length');\n target[targetIndex] = element;\n }\n\n targetIndex++;\n }\n sourceIndex++;\n }\n return targetIndex;\n};\n\nmodule.exports = flattenIntoArray;\n","// this method was added to unscopables after implementation\n// in popular engines, so it's moved to a separate module\nrequire('../internals/add-to-unscopables')('flat');\n","import { Component } from '@verndale/core';\nimport { setTrackDataLayer, getCookie } from '../utils/index';\nimport Cookies from 'js-cookie';\n\nclass Checkout extends Component {\n setupDefaults() {\n this.dom = {\n cartItemSkus: this.$el.data().cartItemSkus,\n userId: this.$el.data().userId,\n redirectUrl: this.$el.data().redirectUrl\n };\n\n this.setCookie();\n }\n\n setCookie() {\n const ceraplusSkusCookie = getCookie('ceraplusSkus');\n let additionalProducts = false, removedProducts = false, accessoriesRemoved = false, onlyRemovedProducts = false;\n\n if (this.dom.userId && ceraplusSkusCookie) {\n const cartItemsSkus =\n this.dom.cartItemSkus.toString().indexOf(',') > -1\n ? this.dom.cartItemSkus.split(',')\n : [this.dom.cartItemSkus.toString()];\n const ceraplusSkus = ceraplusSkusCookie.split('%2C');\n\n for (let i = 0; i < cartItemsSkus.length; i++) {\n if (!ceraplusSkus.includes(cartItemsSkus[i])) {\n additionalProducts = true;\n }\n }\n\n const result = [];\n\n if (cartItemsSkus.length) {\n cartItemsSkus.forEach(item => {\n const notEqualItems = ceraplusSkus.map(sku => sku !== item && true);\n result.push(notEqualItems);\n });\n }\n\n const removeProductsCookie = getCookie('removedProducts');\n\n if (removeProductsCookie) {\n removedProducts = JSON.parse(removeProductsCookie);\n accessoriesRemoved = removedProducts.filter(sku => accessoriesArray.includes(sku.toString()));\n onlyRemovedProducts = removedProducts.filter(sku => !accessoriesArray.includes(sku.toString()));\n }\n const accessories = getCookie('ceraplusAccessories');\n const accessoriesArray = accessories ? accessories.split(',') : [];\n const accessoriesAdded = cartItemsSkus.filter(sku => accessoriesArray.includes(sku.toString()));\n\n const finalRemovedResult = result.flat().every(num => num === true);\n\n setTrackDataLayer({\n eventName: 'ceraplus_request_sample',\n custom: {\n cart_ID: this.dom.userId,\n products_list: ceraplusSkus.toString(),\n remove_products: finalRemovedResult,\n add_products: additionalProducts,\n products_added: cartItemsSkus.toString(),\n products_removed: onlyRemovedProducts.toString(),\n accessories: accessoriesAdded.length > 0,\n accessories_added: accessoriesAdded.toString(),\n accessories_removed: accessoriesRemoved.toString()\n }\n });\n\n\n if (Cookies.get('ceraplusAccessories')) {\n Cookies.remove('ceraplusAccessories', { path: '/' });\n }\n\n if (Cookies.get('removedProducts')) {\n Cookies.remove('removedProducts', { path: '/' });\n }\n\n if (Cookies.get('ceraplusSkus')) {\n Cookies.remove('ceraplusSkus', { path: '/' });\n }\n }\n\n if (this.dom.redirectUrl) {\n window.location.href = this.dom.redirectUrl;\n }\n }\n}\n\nexport default Checkout;\n","var toObject = require('../internals/to-object');\nvar nativeGetPrototypeOf = require('../internals/object-get-prototype-of');\nvar CORRECT_PROTOTYPE_GETTER = require('../internals/correct-prototype-getter');\nvar FAILS_ON_PRIMITIVES = require('../internals/fails')(function () { nativeGetPrototypeOf(1); });\n\n// `Object.getPrototypeOf` method\n// https://tc39.github.io/ecma262/#sec-object.getprototypeof\nrequire('../internals/export')({\n target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES, sham: !CORRECT_PROTOTYPE_GETTER\n}, {\n getPrototypeOf: function getPrototypeOf(it) {\n return nativeGetPrototypeOf(toObject(it));\n }\n});\n\n","var create = require('../internals/object-create');\nvar aFunction = require('../internals/a-function');\nvar anObject = require('../internals/an-object');\nvar isObject = require('../internals/is-object');\nvar fails = require('../internals/fails');\nvar bind = require('../internals/function-bind');\nvar nativeConstruct = (require('../internals/global').Reflect || {}).construct;\n\n// `Reflect.construct` method\n// https://tc39.github.io/ecma262/#sec-reflect.construct\n// MS Edge supports only 2 arguments and argumentsList argument is optional\n// FF Nightly sets third argument as `new.target`, but does not create `this` from it\nvar NEW_TARGET_BUG = fails(function () {\n function F() { /* empty */ }\n return !(nativeConstruct(function () { /* empty */ }, [], F) instanceof F);\n});\nvar ARGS_BUG = !fails(function () {\n nativeConstruct(function () { /* empty */ });\n});\nvar FORCED = NEW_TARGET_BUG || ARGS_BUG;\n\nrequire('../internals/export')({ target: 'Reflect', stat: true, forced: FORCED, sham: FORCED }, {\n construct: function construct(Target, args /* , newTarget */) {\n aFunction(Target);\n anObject(args);\n var newTarget = arguments.length < 3 ? Target : aFunction(arguments[2]);\n if (ARGS_BUG && !NEW_TARGET_BUG) return nativeConstruct(Target, args, newTarget);\n if (Target == newTarget) {\n // w/o altered newTarget, optimization for 0-4 arguments\n switch (args.length) {\n case 0: return new Target();\n case 1: return new Target(args[0]);\n case 2: return new Target(args[0], args[1]);\n case 3: return new Target(args[0], args[1], args[2]);\n case 4: return new Target(args[0], args[1], args[2], args[3]);\n }\n // w/o altered newTarget, lot of arguments case\n var $args = [null];\n $args.push.apply($args, args);\n return new (bind.apply(Target, $args))();\n }\n // with altered newTarget, not support built-in constructors\n var proto = newTarget.prototype;\n var instance = create(isObject(proto) ? proto : Object.prototype);\n var result = Function.apply.call(Target, instance, args);\n return isObject(result) ? result : instance;\n }\n});\n"],"sourceRoot":""}