Dashboard sipadu mbip
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

collect.js 116KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445
  1. var collect =
  2. /******/ (function(modules) { // webpackBootstrap
  3. /******/ // The module cache
  4. /******/ var installedModules = {};
  5. /******/
  6. /******/ // The require function
  7. /******/ function __webpack_require__(moduleId) {
  8. /******/
  9. /******/ // Check if module is in cache
  10. /******/ if(installedModules[moduleId]) {
  11. /******/ return installedModules[moduleId].exports;
  12. /******/ }
  13. /******/ // Create a new module (and put it into the cache)
  14. /******/ var module = installedModules[moduleId] = {
  15. /******/ i: moduleId,
  16. /******/ l: false,
  17. /******/ exports: {}
  18. /******/ };
  19. /******/
  20. /******/ // Execute the module function
  21. /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
  22. /******/
  23. /******/ // Flag the module as loaded
  24. /******/ module.l = true;
  25. /******/
  26. /******/ // Return the exports of the module
  27. /******/ return module.exports;
  28. /******/ }
  29. /******/
  30. /******/
  31. /******/ // expose the modules object (__webpack_modules__)
  32. /******/ __webpack_require__.m = modules;
  33. /******/
  34. /******/ // expose the module cache
  35. /******/ __webpack_require__.c = installedModules;
  36. /******/
  37. /******/ // define getter function for harmony exports
  38. /******/ __webpack_require__.d = function(exports, name, getter) {
  39. /******/ if(!__webpack_require__.o(exports, name)) {
  40. /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
  41. /******/ }
  42. /******/ };
  43. /******/
  44. /******/ // define __esModule on exports
  45. /******/ __webpack_require__.r = function(exports) {
  46. /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
  47. /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
  48. /******/ }
  49. /******/ Object.defineProperty(exports, '__esModule', { value: true });
  50. /******/ };
  51. /******/
  52. /******/ // create a fake namespace object
  53. /******/ // mode & 1: value is a module id, require it
  54. /******/ // mode & 2: merge all properties of value into the ns
  55. /******/ // mode & 4: return value when already ns object
  56. /******/ // mode & 8|1: behave like require
  57. /******/ __webpack_require__.t = function(value, mode) {
  58. /******/ if(mode & 1) value = __webpack_require__(value);
  59. /******/ if(mode & 8) return value;
  60. /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
  61. /******/ var ns = Object.create(null);
  62. /******/ __webpack_require__.r(ns);
  63. /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
  64. /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
  65. /******/ return ns;
  66. /******/ };
  67. /******/
  68. /******/ // getDefaultExport function for compatibility with non-harmony modules
  69. /******/ __webpack_require__.n = function(module) {
  70. /******/ var getter = module && module.__esModule ?
  71. /******/ function getDefault() { return module['default']; } :
  72. /******/ function getModuleExports() { return module; };
  73. /******/ __webpack_require__.d(getter, 'a', getter);
  74. /******/ return getter;
  75. /******/ };
  76. /******/
  77. /******/ // Object.prototype.hasOwnProperty.call
  78. /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
  79. /******/
  80. /******/ // __webpack_public_path__
  81. /******/ __webpack_require__.p = "";
  82. /******/
  83. /******/
  84. /******/ // Load entry module and return exports
  85. /******/ return __webpack_require__(__webpack_require__.s = "./dist/index.js");
  86. /******/ })
  87. /************************************************************************/
  88. /******/ ({
  89. /***/ "./dist/helpers/clone.js":
  90. /*!*******************************!*\
  91. !*** ./dist/helpers/clone.js ***!
  92. \*******************************/
  93. /*! no static exports found */
  94. /***/ (function(module, exports, __webpack_require__) {
  95. "use strict";
  96. eval("\n\n/**\n * Clone helper\n *\n * Clone an array or object\n *\n * @param items\n * @returns {*}\n */\n\nfunction _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }\n\nmodule.exports = function clone(items) {\n var cloned = void 0;\n\n if (Array.isArray(items)) {\n var _cloned;\n\n cloned = [];\n\n (_cloned = cloned).push.apply(_cloned, _toConsumableArray(items));\n } else {\n cloned = {};\n\n Object.keys(items).forEach(function (prop) {\n cloned[prop] = items[prop];\n });\n }\n\n return cloned;\n};\n\n//# sourceURL=webpack://collect/./dist/helpers/clone.js?");
  97. /***/ }),
  98. /***/ "./dist/helpers/is.js":
  99. /*!****************************!*\
  100. !*** ./dist/helpers/is.js ***!
  101. \****************************/
  102. /*! no static exports found */
  103. /***/ (function(module, exports, __webpack_require__) {
  104. "use strict";
  105. eval("\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\nmodule.exports = {\n /**\n * @returns {boolean}\n */\n isArray: function isArray(item) {\n return Array.isArray(item);\n },\n\n /**\n * @returns {boolean}\n */\n isObject: function isObject(item) {\n return (typeof item === 'undefined' ? 'undefined' : _typeof(item)) === 'object' && item !== null;\n },\n\n /**\n * @returns {boolean}\n */\n isFunction: function isFunction(item) {\n return typeof item === 'function';\n }\n};\n\n//# sourceURL=webpack://collect/./dist/helpers/is.js?");
  106. /***/ }),
  107. /***/ "./dist/helpers/nestedValue.js":
  108. /*!*************************************!*\
  109. !*** ./dist/helpers/nestedValue.js ***!
  110. \*************************************/
  111. /*! no static exports found */
  112. /***/ (function(module, exports, __webpack_require__) {
  113. "use strict";
  114. eval("\n\n/**\n * Get value of a nested property\n *\n * @param mainObject\n * @param key\n * @returns {*}\n */\n\nmodule.exports = function nestedValue(mainObject, key) {\n try {\n return key.split('.').reduce(function (obj, property) {\n return obj[property];\n }, mainObject);\n } catch (err) {\n return null;\n }\n};\n\n//# sourceURL=webpack://collect/./dist/helpers/nestedValue.js?");
  115. /***/ }),
  116. /***/ "./dist/helpers/values.js":
  117. /*!********************************!*\
  118. !*** ./dist/helpers/values.js ***!
  119. \********************************/
  120. /*! no static exports found */
  121. /***/ (function(module, exports, __webpack_require__) {
  122. "use strict";
  123. eval("\n\n\n/**\n * Values helper\n *\n * Retrieve values from [this.items] when it is an array, object or Collection\n *\n * @returns {*}\n * @param items\n */\n\nfunction _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }\n\nmodule.exports = function values(items) {\n var valuesArray = [];\n\n if (Array.isArray(items)) {\n valuesArray.push.apply(valuesArray, _toConsumableArray(items));\n } else if (items.constructor.name === 'Collection') {\n valuesArray.push.apply(valuesArray, _toConsumableArray(items.all()));\n } else {\n Object.keys(items).forEach(function (prop) {\n return valuesArray.push(items[prop]);\n });\n }\n\n return valuesArray;\n};\n\n//# sourceURL=webpack://collect/./dist/helpers/values.js?");
  124. /***/ }),
  125. /***/ "./dist/helpers/variadic.js":
  126. /*!**********************************!*\
  127. !*** ./dist/helpers/variadic.js ***!
  128. \**********************************/
  129. /*! no static exports found */
  130. /***/ (function(module, exports, __webpack_require__) {
  131. "use strict";
  132. eval("\n\n/**\n * Variadic helper function\n *\n * @param args\n * @returns {*}\n */\n\nmodule.exports = function variadic(args) {\n if (Array.isArray(args[0])) {\n return args[0];\n }\n\n return args;\n};\n\n//# sourceURL=webpack://collect/./dist/helpers/variadic.js?");
  133. /***/ }),
  134. /***/ "./dist/index.js":
  135. /*!***********************!*\
  136. !*** ./dist/index.js ***!
  137. \***********************/
  138. /*! no static exports found */
  139. /***/ (function(module, exports, __webpack_require__) {
  140. "use strict";
  141. eval("\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\nfunction Collection(collection) {\n if (collection !== undefined && !Array.isArray(collection) && (typeof collection === 'undefined' ? 'undefined' : _typeof(collection)) !== 'object') {\n this.items = [collection];\n } else if (collection instanceof this.constructor) {\n this.items = collection.all();\n } else {\n this.items = collection || [];\n }\n}\n\n/**\n * Symbol.iterator\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/iterator\n */\nvar SymbolIterator = __webpack_require__(/*! ./methods/symbol.iterator */ \"./dist/methods/symbol.iterator.js\");\n\nif (typeof Symbol !== 'undefined') {\n Collection.prototype[Symbol.iterator] = SymbolIterator;\n}\n\n/**\n * Support JSON.stringify\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify\n */\nCollection.prototype.toJSON = function toJSON() {\n return this.items;\n};\n\nCollection.prototype.all = __webpack_require__(/*! ./methods/all */ \"./dist/methods/all.js\");\nCollection.prototype.average = __webpack_require__(/*! ./methods/average */ \"./dist/methods/average.js\");\nCollection.prototype.avg = __webpack_require__(/*! ./methods/average */ \"./dist/methods/average.js\");\nCollection.prototype.chunk = __webpack_require__(/*! ./methods/chunk */ \"./dist/methods/chunk.js\");\nCollection.prototype.collapse = __webpack_require__(/*! ./methods/collapse */ \"./dist/methods/collapse.js\");\nCollection.prototype.combine = __webpack_require__(/*! ./methods/combine */ \"./dist/methods/combine.js\");\nCollection.prototype.concat = __webpack_require__(/*! ./methods/concat */ \"./dist/methods/concat.js\");\nCollection.prototype.contains = __webpack_require__(/*! ./methods/contains */ \"./dist/methods/contains.js\");\nCollection.prototype.count = __webpack_require__(/*! ./methods/count */ \"./dist/methods/count.js\");\nCollection.prototype.countBy = __webpack_require__(/*! ./methods/countBy */ \"./dist/methods/countBy.js\");\nCollection.prototype.crossJoin = __webpack_require__(/*! ./methods/crossJoin */ \"./dist/methods/crossJoin.js\");\nCollection.prototype.dd = __webpack_require__(/*! ./methods/dd */ \"./dist/methods/dd.js\");\nCollection.prototype.diff = __webpack_require__(/*! ./methods/diff */ \"./dist/methods/diff.js\");\nCollection.prototype.diffAssoc = __webpack_require__(/*! ./methods/diffAssoc */ \"./dist/methods/diffAssoc.js\");\nCollection.prototype.diffKeys = __webpack_require__(/*! ./methods/diffKeys */ \"./dist/methods/diffKeys.js\");\nCollection.prototype.dump = __webpack_require__(/*! ./methods/dump */ \"./dist/methods/dump.js\");\nCollection.prototype.duplicates = __webpack_require__(/*! ./methods/duplicates */ \"./dist/methods/duplicates.js\");\nCollection.prototype.each = __webpack_require__(/*! ./methods/each */ \"./dist/methods/each.js\");\nCollection.prototype.eachSpread = __webpack_require__(/*! ./methods/eachSpread */ \"./dist/methods/eachSpread.js\");\nCollection.prototype.every = __webpack_require__(/*! ./methods/every */ \"./dist/methods/every.js\");\nCollection.prototype.except = __webpack_require__(/*! ./methods/except */ \"./dist/methods/except.js\");\nCollection.prototype.filter = __webpack_require__(/*! ./methods/filter */ \"./dist/methods/filter.js\");\nCollection.prototype.first = __webpack_require__(/*! ./methods/first */ \"./dist/methods/first.js\");\nCollection.prototype.firstWhere = __webpack_require__(/*! ./methods/firstWhere */ \"./dist/methods/firstWhere.js\");\nCollection.prototype.flatMap = __webpack_require__(/*! ./methods/flatMap */ \"./dist/methods/flatMap.js\");\nCollection.prototype.flatten = __webpack_require__(/*! ./methods/flatten */ \"./dist/methods/flatten.js\");\nCollection.prototype.flip = __webpack_require__(/*! ./methods/flip */ \"./dist/methods/flip.js\");\nCollection.prototype.forPage = __webpack_require__(/*! ./methods/forPage */ \"./dist/methods/forPage.js\");\nCollection.prototype.forget = __webpack_require__(/*! ./methods/forget */ \"./dist/methods/forget.js\");\nCollection.prototype.get = __webpack_require__(/*! ./methods/get */ \"./dist/methods/get.js\");\nCollection.prototype.groupBy = __webpack_require__(/*! ./methods/groupBy */ \"./dist/methods/groupBy.js\");\nCollection.prototype.has = __webpack_require__(/*! ./methods/has */ \"./dist/methods/has.js\");\nCollection.prototype.implode = __webpack_require__(/*! ./methods/implode */ \"./dist/methods/implode.js\");\nCollection.prototype.intersect = __webpack_require__(/*! ./methods/intersect */ \"./dist/methods/intersect.js\");\nCollection.prototype.intersectByKeys = __webpack_require__(/*! ./methods/intersectByKeys */ \"./dist/methods/intersectByKeys.js\");\nCollection.prototype.isEmpty = __webpack_require__(/*! ./methods/isEmpty */ \"./dist/methods/isEmpty.js\");\nCollection.prototype.isNotEmpty = __webpack_require__(/*! ./methods/isNotEmpty */ \"./dist/methods/isNotEmpty.js\");\nCollection.prototype.join = __webpack_require__(/*! ./methods/join */ \"./dist/methods/join.js\");\nCollection.prototype.keyBy = __webpack_require__(/*! ./methods/keyBy */ \"./dist/methods/keyBy.js\");\nCollection.prototype.keys = __webpack_require__(/*! ./methods/keys */ \"./dist/methods/keys.js\");\nCollection.prototype.last = __webpack_require__(/*! ./methods/last */ \"./dist/methods/last.js\");\nCollection.prototype.macro = __webpack_require__(/*! ./methods/macro */ \"./dist/methods/macro.js\");\nCollection.prototype.make = __webpack_require__(/*! ./methods/make */ \"./dist/methods/make.js\");\nCollection.prototype.map = __webpack_require__(/*! ./methods/map */ \"./dist/methods/map.js\");\nCollection.prototype.mapSpread = __webpack_require__(/*! ./methods/mapSpread */ \"./dist/methods/mapSpread.js\");\nCollection.prototype.mapToDictionary = __webpack_require__(/*! ./methods/mapToDictionary */ \"./dist/methods/mapToDictionary.js\");\nCollection.prototype.mapInto = __webpack_require__(/*! ./methods/mapInto */ \"./dist/methods/mapInto.js\");\nCollection.prototype.mapToGroups = __webpack_require__(/*! ./methods/mapToGroups */ \"./dist/methods/mapToGroups.js\");\nCollection.prototype.mapWithKeys = __webpack_require__(/*! ./methods/mapWithKeys */ \"./dist/methods/mapWithKeys.js\");\nCollection.prototype.max = __webpack_require__(/*! ./methods/max */ \"./dist/methods/max.js\");\nCollection.prototype.median = __webpack_require__(/*! ./methods/median */ \"./dist/methods/median.js\");\nCollection.prototype.merge = __webpack_require__(/*! ./methods/merge */ \"./dist/methods/merge.js\");\nCollection.prototype.mergeRecursive = __webpack_require__(/*! ./methods/mergeRecursive */ \"./dist/methods/mergeRecursive.js\");\nCollection.prototype.min = __webpack_require__(/*! ./methods/min */ \"./dist/methods/min.js\");\nCollection.prototype.mode = __webpack_require__(/*! ./methods/mode */ \"./dist/methods/mode.js\");\nCollection.prototype.nth = __webpack_require__(/*! ./methods/nth */ \"./dist/methods/nth.js\");\nCollection.prototype.only = __webpack_require__(/*! ./methods/only */ \"./dist/methods/only.js\");\nCollection.prototype.pad = __webpack_require__(/*! ./methods/pad */ \"./dist/methods/pad.js\");\nCollection.prototype.partition = __webpack_require__(/*! ./methods/partition */ \"./dist/methods/partition.js\");\nCollection.prototype.pipe = __webpack_require__(/*! ./methods/pipe */ \"./dist/methods/pipe.js\");\nCollection.prototype.pluck = __webpack_require__(/*! ./methods/pluck */ \"./dist/methods/pluck.js\");\nCollection.prototype.pop = __webpack_require__(/*! ./methods/pop */ \"./dist/methods/pop.js\");\nCollection.prototype.prepend = __webpack_require__(/*! ./methods/prepend */ \"./dist/methods/prepend.js\");\nCollection.prototype.pull = __webpack_require__(/*! ./methods/pull */ \"./dist/methods/pull.js\");\nCollection.prototype.push = __webpack_require__(/*! ./methods/push */ \"./dist/methods/push.js\");\nCollection.prototype.put = __webpack_require__(/*! ./methods/put */ \"./dist/methods/put.js\");\nCollection.prototype.random = __webpack_require__(/*! ./methods/random */ \"./dist/methods/random.js\");\nCollection.prototype.reduce = __webpack_require__(/*! ./methods/reduce */ \"./dist/methods/reduce.js\");\nCollection.prototype.reject = __webpack_require__(/*! ./methods/reject */ \"./dist/methods/reject.js\");\nCollection.prototype.replace = __webpack_require__(/*! ./methods/replace */ \"./dist/methods/replace.js\");\nCollection.prototype.replaceRecursive = __webpack_require__(/*! ./methods/replaceRecursive */ \"./dist/methods/replaceRecursive.js\");\nCollection.prototype.reverse = __webpack_require__(/*! ./methods/reverse */ \"./dist/methods/reverse.js\");\nCollection.prototype.search = __webpack_require__(/*! ./methods/search */ \"./dist/methods/search.js\");\nCollection.prototype.shift = __webpack_require__(/*! ./methods/shift */ \"./dist/methods/shift.js\");\nCollection.prototype.shuffle = __webpack_require__(/*! ./methods/shuffle */ \"./dist/methods/shuffle.js\");\nCollection.prototype.slice = __webpack_require__(/*! ./methods/slice */ \"./dist/methods/slice.js\");\nCollection.prototype.some = __webpack_require__(/*! ./methods/contains */ \"./dist/methods/contains.js\");\nCollection.prototype.sort = __webpack_require__(/*! ./methods/sort */ \"./dist/methods/sort.js\");\nCollection.prototype.sortBy = __webpack_require__(/*! ./methods/sortBy */ \"./dist/methods/sortBy.js\");\nCollection.prototype.sortByDesc = __webpack_require__(/*! ./methods/sortByDesc */ \"./dist/methods/sortByDesc.js\");\nCollection.prototype.sortKeys = __webpack_require__(/*! ./methods/sortKeys */ \"./dist/methods/sortKeys.js\");\nCollection.prototype.sortKeysDesc = __webpack_require__(/*! ./methods/sortKeysDesc */ \"./dist/methods/sortKeysDesc.js\");\nCollection.prototype.splice = __webpack_require__(/*! ./methods/splice */ \"./dist/methods/splice.js\");\nCollection.prototype.split = __webpack_require__(/*! ./methods/split */ \"./dist/methods/split.js\");\nCollection.prototype.sum = __webpack_require__(/*! ./methods/sum */ \"./dist/methods/sum.js\");\nCollection.prototype.take = __webpack_require__(/*! ./methods/take */ \"./dist/methods/take.js\");\nCollection.prototype.tap = __webpack_require__(/*! ./methods/tap */ \"./dist/methods/tap.js\");\nCollection.prototype.times = __webpack_require__(/*! ./methods/times */ \"./dist/methods/times.js\");\nCollection.prototype.toArray = __webpack_require__(/*! ./methods/toArray */ \"./dist/methods/toArray.js\");\nCollection.prototype.toJson = __webpack_require__(/*! ./methods/toJson */ \"./dist/methods/toJson.js\");\nCollection.prototype.transform = __webpack_require__(/*! ./methods/transform */ \"./dist/methods/transform.js\");\nCollection.prototype.unless = __webpack_require__(/*! ./methods/unless */ \"./dist/methods/unless.js\");\nCollection.prototype.unlessEmpty = __webpack_require__(/*! ./methods/whenNotEmpty */ \"./dist/methods/whenNotEmpty.js\");\nCollection.prototype.unlessNotEmpty = __webpack_require__(/*! ./methods/whenEmpty */ \"./dist/methods/whenEmpty.js\");\nCollection.prototype.union = __webpack_require__(/*! ./methods/union */ \"./dist/methods/union.js\");\nCollection.prototype.unique = __webpack_require__(/*! ./methods/unique */ \"./dist/methods/unique.js\");\nCollection.prototype.unwrap = __webpack_require__(/*! ./methods/unwrap */ \"./dist/methods/unwrap.js\");\nCollection.prototype.values = __webpack_require__(/*! ./methods/values */ \"./dist/methods/values.js\");\nCollection.prototype.when = __webpack_require__(/*! ./methods/when */ \"./dist/methods/when.js\");\nCollection.prototype.whenEmpty = __webpack_require__(/*! ./methods/whenEmpty */ \"./dist/methods/whenEmpty.js\");\nCollection.prototype.whenNotEmpty = __webpack_require__(/*! ./methods/whenNotEmpty */ \"./dist/methods/whenNotEmpty.js\");\nCollection.prototype.where = __webpack_require__(/*! ./methods/where */ \"./dist/methods/where.js\");\nCollection.prototype.whereBetween = __webpack_require__(/*! ./methods/whereBetween */ \"./dist/methods/whereBetween.js\");\nCollection.prototype.whereIn = __webpack_require__(/*! ./methods/whereIn */ \"./dist/methods/whereIn.js\");\nCollection.prototype.whereInstanceOf = __webpack_require__(/*! ./methods/whereInstanceOf */ \"./dist/methods/whereInstanceOf.js\");\nCollection.prototype.whereNotBetween = __webpack_require__(/*! ./methods/whereNotBetween */ \"./dist/methods/whereNotBetween.js\");\nCollection.prototype.whereNotIn = __webpack_require__(/*! ./methods/whereNotIn */ \"./dist/methods/whereNotIn.js\");\nCollection.prototype.wrap = __webpack_require__(/*! ./methods/wrap */ \"./dist/methods/wrap.js\");\nCollection.prototype.zip = __webpack_require__(/*! ./methods/zip */ \"./dist/methods/zip.js\");\n\nvar collect = function collect(collection) {\n return new Collection(collection);\n};\n\nmodule.exports = collect;\nmodule.exports.collect = collect;\nmodule.exports.default = collect;\n\n//# sourceURL=webpack://collect/./dist/index.js?");
  142. /***/ }),
  143. /***/ "./dist/methods/all.js":
  144. /*!*****************************!*\
  145. !*** ./dist/methods/all.js ***!
  146. \*****************************/
  147. /*! no static exports found */
  148. /***/ (function(module, exports, __webpack_require__) {
  149. "use strict";
  150. eval("\n\nmodule.exports = function all() {\n return this.items;\n};\n\n//# sourceURL=webpack://collect/./dist/methods/all.js?");
  151. /***/ }),
  152. /***/ "./dist/methods/average.js":
  153. /*!*********************************!*\
  154. !*** ./dist/methods/average.js ***!
  155. \*********************************/
  156. /*! no static exports found */
  157. /***/ (function(module, exports, __webpack_require__) {
  158. "use strict";
  159. eval("\n\nmodule.exports = function average(key) {\n if (key === undefined) {\n return this.sum() / this.items.length;\n }\n\n return new this.constructor(this.items).pluck(key).sum() / this.items.length;\n};\n\n//# sourceURL=webpack://collect/./dist/methods/average.js?");
  160. /***/ }),
  161. /***/ "./dist/methods/chunk.js":
  162. /*!*******************************!*\
  163. !*** ./dist/methods/chunk.js ***!
  164. \*******************************/
  165. /*! no static exports found */
  166. /***/ (function(module, exports, __webpack_require__) {
  167. "use strict";
  168. eval("\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\nmodule.exports = function chunk(size) {\n var _this = this;\n\n var chunks = [];\n var index = 0;\n\n if (Array.isArray(this.items)) {\n do {\n var items = this.items.slice(index, index + size);\n var collection = new this.constructor(items);\n\n chunks.push(collection);\n index += size;\n } while (index < this.items.length);\n } else if (_typeof(this.items) === 'object') {\n var keys = Object.keys(this.items);\n\n var _loop = function _loop() {\n var keysOfChunk = keys.slice(index, index + size);\n var collection = new _this.constructor({});\n\n keysOfChunk.forEach(function (key) {\n return collection.put(key, _this.items[key]);\n });\n\n chunks.push(collection);\n index += size;\n };\n\n do {\n _loop();\n } while (index < keys.length);\n } else {\n chunks.push(new this.constructor([this.items]));\n }\n\n return new this.constructor(chunks);\n};\n\n//# sourceURL=webpack://collect/./dist/methods/chunk.js?");
  169. /***/ }),
  170. /***/ "./dist/methods/collapse.js":
  171. /*!**********************************!*\
  172. !*** ./dist/methods/collapse.js ***!
  173. \**********************************/
  174. /*! no static exports found */
  175. /***/ (function(module, exports, __webpack_require__) {
  176. "use strict";
  177. eval("\n\nfunction _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }\n\nmodule.exports = function collapse() {\n var _ref;\n\n return new this.constructor((_ref = []).concat.apply(_ref, _toConsumableArray(this.items)));\n};\n\n//# sourceURL=webpack://collect/./dist/methods/collapse.js?");
  178. /***/ }),
  179. /***/ "./dist/methods/combine.js":
  180. /*!*********************************!*\
  181. !*** ./dist/methods/combine.js ***!
  182. \*********************************/
  183. /*! no static exports found */
  184. /***/ (function(module, exports, __webpack_require__) {
  185. "use strict";
  186. eval("\n\nvar _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"]) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError(\"Invalid attempt to destructure non-iterable instance\"); } }; }();\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\nmodule.exports = function combine(array) {\n var _this = this;\n\n var values = array;\n\n if (values instanceof this.constructor) {\n values = array.all();\n }\n\n var collection = {};\n\n if (Array.isArray(this.items) && Array.isArray(values)) {\n this.items.forEach(function (key, iterator) {\n collection[key] = values[iterator];\n });\n } else if (_typeof(this.items) === 'object' && (typeof values === 'undefined' ? 'undefined' : _typeof(values)) === 'object') {\n Object.keys(this.items).forEach(function (key, index) {\n collection[_this.items[key]] = values[Object.keys(values)[index]];\n });\n } else if (Array.isArray(this.items)) {\n collection[this.items[0]] = values;\n } else if (typeof this.items === 'string' && Array.isArray(values)) {\n var _values = values;\n\n var _values2 = _slicedToArray(_values, 1);\n\n collection[this.items] = _values2[0];\n } else if (typeof this.items === 'string') {\n collection[this.items] = values;\n }\n\n return new this.constructor(collection);\n};\n\n//# sourceURL=webpack://collect/./dist/methods/combine.js?");
  187. /***/ }),
  188. /***/ "./dist/methods/concat.js":
  189. /*!********************************!*\
  190. !*** ./dist/methods/concat.js ***!
  191. \********************************/
  192. /*! no static exports found */
  193. /***/ (function(module, exports, __webpack_require__) {
  194. "use strict";
  195. eval("\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\nvar clone = __webpack_require__(/*! ../helpers/clone */ \"./dist/helpers/clone.js\");\n\nmodule.exports = function concat(collectionOrArrayOrObject) {\n var list = collectionOrArrayOrObject;\n\n if (collectionOrArrayOrObject instanceof this.constructor) {\n list = collectionOrArrayOrObject.all();\n } else if ((typeof collectionOrArrayOrObject === 'undefined' ? 'undefined' : _typeof(collectionOrArrayOrObject)) === 'object') {\n list = [];\n Object.keys(collectionOrArrayOrObject).forEach(function (property) {\n list.push(collectionOrArrayOrObject[property]);\n });\n }\n\n var collection = clone(this.items);\n\n list.forEach(function (item) {\n if ((typeof item === 'undefined' ? 'undefined' : _typeof(item)) === 'object') {\n Object.keys(item).forEach(function (key) {\n return collection.push(item[key]);\n });\n } else {\n collection.push(item);\n }\n });\n\n return new this.constructor(collection);\n};\n\n//# sourceURL=webpack://collect/./dist/methods/concat.js?");
  196. /***/ }),
  197. /***/ "./dist/methods/contains.js":
  198. /*!**********************************!*\
  199. !*** ./dist/methods/contains.js ***!
  200. \**********************************/
  201. /*! no static exports found */
  202. /***/ (function(module, exports, __webpack_require__) {
  203. "use strict";
  204. eval("\n\nfunction _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }\n\nvar values = __webpack_require__(/*! ../helpers/values */ \"./dist/helpers/values.js\");\n\nmodule.exports = function contains(key, value) {\n if (value !== undefined) {\n if (Array.isArray(this.items)) {\n return this.items.filter(function (items) {\n return items[key] !== undefined && items[key] === value;\n }).length > 0;\n }\n\n return this.items[key] !== undefined && this.items[key] === value;\n }\n\n if (typeof key === 'function') {\n return this.items.filter(function (item, index) {\n return key(item, index);\n }).length > 0;\n }\n\n if (Array.isArray(this.items)) {\n return this.items.indexOf(key) !== -1;\n }\n\n var keysAndValues = values(this.items);\n keysAndValues.push.apply(keysAndValues, _toConsumableArray(Object.keys(this.items)));\n\n return keysAndValues.indexOf(key) !== -1;\n};\n\n//# sourceURL=webpack://collect/./dist/methods/contains.js?");
  205. /***/ }),
  206. /***/ "./dist/methods/count.js":
  207. /*!*******************************!*\
  208. !*** ./dist/methods/count.js ***!
  209. \*******************************/
  210. /*! no static exports found */
  211. /***/ (function(module, exports, __webpack_require__) {
  212. "use strict";
  213. eval("\n\nmodule.exports = function count() {\n var arrayLength = 0;\n\n if (Array.isArray(this.items)) {\n arrayLength = this.items.length;\n }\n\n return Math.max(Object.keys(this.items).length, arrayLength);\n};\n\n//# sourceURL=webpack://collect/./dist/methods/count.js?");
  214. /***/ }),
  215. /***/ "./dist/methods/countBy.js":
  216. /*!*********************************!*\
  217. !*** ./dist/methods/countBy.js ***!
  218. \*********************************/
  219. /*! no static exports found */
  220. /***/ (function(module, exports, __webpack_require__) {
  221. "use strict";
  222. eval("\n\nmodule.exports = function countBy() {\n var fn = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : function (value) {\n return value;\n };\n\n return new this.constructor(this.items).groupBy(fn).map(function (value) {\n return value.count();\n });\n};\n\n//# sourceURL=webpack://collect/./dist/methods/countBy.js?");
  223. /***/ }),
  224. /***/ "./dist/methods/crossJoin.js":
  225. /*!***********************************!*\
  226. !*** ./dist/methods/crossJoin.js ***!
  227. \***********************************/
  228. /*! no static exports found */
  229. /***/ (function(module, exports, __webpack_require__) {
  230. "use strict";
  231. eval("\n\nmodule.exports = function crossJoin() {\n function join(collection, constructor, args) {\n var current = args[0];\n\n if (current instanceof constructor) {\n current = current.all();\n }\n\n var rest = args.slice(1);\n var last = !rest.length;\n var result = [];\n\n for (var i = 0; i < current.length; i += 1) {\n var collectionCopy = collection.slice();\n collectionCopy.push(current[i]);\n\n if (last) {\n result.push(collectionCopy);\n } else {\n result = result.concat(join(collectionCopy, constructor, rest));\n }\n }\n\n return result;\n }\n\n for (var _len = arguments.length, values = Array(_len), _key = 0; _key < _len; _key++) {\n values[_key] = arguments[_key];\n }\n\n return new this.constructor(join([], this.constructor, [].concat([this.items], values)));\n};\n\n//# sourceURL=webpack://collect/./dist/methods/crossJoin.js?");
  232. /***/ }),
  233. /***/ "./dist/methods/dd.js":
  234. /*!****************************!*\
  235. !*** ./dist/methods/dd.js ***!
  236. \****************************/
  237. /*! no static exports found */
  238. /***/ (function(module, exports, __webpack_require__) {
  239. "use strict";
  240. eval("/* WEBPACK VAR INJECTION */(function(process) {\n\nmodule.exports = function dd() {\n this.dump();\n\n if (typeof process !== 'undefined') {\n process.exit(1);\n }\n};\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../node_modules/process/browser.js */ \"./node_modules/process/browser.js\")))\n\n//# sourceURL=webpack://collect/./dist/methods/dd.js?");
  241. /***/ }),
  242. /***/ "./dist/methods/diff.js":
  243. /*!******************************!*\
  244. !*** ./dist/methods/diff.js ***!
  245. \******************************/
  246. /*! no static exports found */
  247. /***/ (function(module, exports, __webpack_require__) {
  248. "use strict";
  249. eval("\n\nmodule.exports = function diff(values) {\n var valuesToDiff = void 0;\n\n if (values instanceof this.constructor) {\n valuesToDiff = values.all();\n } else {\n valuesToDiff = values;\n }\n\n var collection = this.items.filter(function (item) {\n return valuesToDiff.indexOf(item) === -1;\n });\n\n return new this.constructor(collection);\n};\n\n//# sourceURL=webpack://collect/./dist/methods/diff.js?");
  250. /***/ }),
  251. /***/ "./dist/methods/diffAssoc.js":
  252. /*!***********************************!*\
  253. !*** ./dist/methods/diffAssoc.js ***!
  254. \***********************************/
  255. /*! no static exports found */
  256. /***/ (function(module, exports, __webpack_require__) {
  257. "use strict";
  258. eval("\n\nmodule.exports = function diffAssoc(values) {\n var _this = this;\n\n var diffValues = values;\n\n if (values instanceof this.constructor) {\n diffValues = values.all();\n }\n\n var collection = {};\n\n Object.keys(this.items).forEach(function (key) {\n if (diffValues[key] === undefined || diffValues[key] !== _this.items[key]) {\n collection[key] = _this.items[key];\n }\n });\n\n return new this.constructor(collection);\n};\n\n//# sourceURL=webpack://collect/./dist/methods/diffAssoc.js?");
  259. /***/ }),
  260. /***/ "./dist/methods/diffKeys.js":
  261. /*!**********************************!*\
  262. !*** ./dist/methods/diffKeys.js ***!
  263. \**********************************/
  264. /*! no static exports found */
  265. /***/ (function(module, exports, __webpack_require__) {
  266. "use strict";
  267. eval("\n\nmodule.exports = function diffKeys(object) {\n var objectToDiff = void 0;\n\n if (object instanceof this.constructor) {\n objectToDiff = object.all();\n } else {\n objectToDiff = object;\n }\n\n var objectKeys = Object.keys(objectToDiff);\n\n var remainingKeys = Object.keys(this.items).filter(function (item) {\n return objectKeys.indexOf(item) === -1;\n });\n\n return new this.constructor(this.items).only(remainingKeys);\n};\n\n//# sourceURL=webpack://collect/./dist/methods/diffKeys.js?");
  268. /***/ }),
  269. /***/ "./dist/methods/dump.js":
  270. /*!******************************!*\
  271. !*** ./dist/methods/dump.js ***!
  272. \******************************/
  273. /*! no static exports found */
  274. /***/ (function(module, exports, __webpack_require__) {
  275. "use strict";
  276. eval("\n\nmodule.exports = function dump() {\n // eslint-disable-next-line\n console.log(this);\n\n return this;\n};\n\n//# sourceURL=webpack://collect/./dist/methods/dump.js?");
  277. /***/ }),
  278. /***/ "./dist/methods/duplicates.js":
  279. /*!************************************!*\
  280. !*** ./dist/methods/duplicates.js ***!
  281. \************************************/
  282. /*! no static exports found */
  283. /***/ (function(module, exports, __webpack_require__) {
  284. "use strict";
  285. eval("\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\nmodule.exports = function duplicates() {\n var _this = this;\n\n var occuredValues = [];\n var duplicateValues = {};\n\n var stringifiedValue = function stringifiedValue(value) {\n if (Array.isArray(value) || (typeof value === 'undefined' ? 'undefined' : _typeof(value)) === 'object') {\n return JSON.stringify(value);\n }\n\n return value;\n };\n\n if (Array.isArray(this.items)) {\n this.items.forEach(function (value, index) {\n var valueAsString = stringifiedValue(value);\n\n if (occuredValues.indexOf(valueAsString) === -1) {\n occuredValues.push(valueAsString);\n } else {\n duplicateValues[index] = value;\n }\n });\n } else if (_typeof(this.items) === 'object') {\n Object.keys(this.items).forEach(function (key) {\n var valueAsString = stringifiedValue(_this.items[key]);\n\n if (occuredValues.indexOf(valueAsString) === -1) {\n occuredValues.push(valueAsString);\n } else {\n duplicateValues[key] = _this.items[key];\n }\n });\n }\n\n return new this.constructor(duplicateValues);\n};\n\n//# sourceURL=webpack://collect/./dist/methods/duplicates.js?");
  286. /***/ }),
  287. /***/ "./dist/methods/each.js":
  288. /*!******************************!*\
  289. !*** ./dist/methods/each.js ***!
  290. \******************************/
  291. /*! no static exports found */
  292. /***/ (function(module, exports, __webpack_require__) {
  293. "use strict";
  294. eval("\n\nmodule.exports = function each(fn) {\n var stop = false;\n\n if (Array.isArray(this.items)) {\n var length = this.items.length;\n\n\n for (var index = 0; index < length && !stop; index += 1) {\n stop = fn(this.items[index], index, this.items) === false;\n }\n } else {\n var keys = Object.keys(this.items);\n var _length = keys.length;\n\n\n for (var _index = 0; _index < _length && !stop; _index += 1) {\n var key = keys[_index];\n\n stop = fn(this.items[key], key, this.items) === false;\n }\n }\n\n return this;\n};\n\n//# sourceURL=webpack://collect/./dist/methods/each.js?");
  295. /***/ }),
  296. /***/ "./dist/methods/eachSpread.js":
  297. /*!************************************!*\
  298. !*** ./dist/methods/eachSpread.js ***!
  299. \************************************/
  300. /*! no static exports found */
  301. /***/ (function(module, exports, __webpack_require__) {
  302. "use strict";
  303. eval("\n\nfunction _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }\n\nmodule.exports = function eachSpread(fn) {\n this.each(function (values, key) {\n fn.apply(undefined, _toConsumableArray(values).concat([key]));\n });\n\n return this;\n};\n\n//# sourceURL=webpack://collect/./dist/methods/eachSpread.js?");
  304. /***/ }),
  305. /***/ "./dist/methods/every.js":
  306. /*!*******************************!*\
  307. !*** ./dist/methods/every.js ***!
  308. \*******************************/
  309. /*! no static exports found */
  310. /***/ (function(module, exports, __webpack_require__) {
  311. "use strict";
  312. eval("\n\nvar values = __webpack_require__(/*! ../helpers/values */ \"./dist/helpers/values.js\");\n\nmodule.exports = function every(fn) {\n var items = values(this.items);\n\n return items.map(function (item, index) {\n return fn(item, index);\n }).indexOf(false) === -1;\n};\n\n//# sourceURL=webpack://collect/./dist/methods/every.js?");
  313. /***/ }),
  314. /***/ "./dist/methods/except.js":
  315. /*!********************************!*\
  316. !*** ./dist/methods/except.js ***!
  317. \********************************/
  318. /*! no static exports found */
  319. /***/ (function(module, exports, __webpack_require__) {
  320. "use strict";
  321. eval("\n\nvar variadic = __webpack_require__(/*! ../helpers/variadic */ \"./dist/helpers/variadic.js\");\n\nmodule.exports = function except() {\n var _this = this;\n\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n var properties = variadic(args);\n\n if (Array.isArray(this.items)) {\n var _collection = this.items.filter(function (item) {\n return properties.indexOf(item) === -1;\n });\n\n return new this.constructor(_collection);\n }\n\n var collection = {};\n\n Object.keys(this.items).forEach(function (property) {\n if (properties.indexOf(property) === -1) {\n collection[property] = _this.items[property];\n }\n });\n\n return new this.constructor(collection);\n};\n\n//# sourceURL=webpack://collect/./dist/methods/except.js?");
  322. /***/ }),
  323. /***/ "./dist/methods/filter.js":
  324. /*!********************************!*\
  325. !*** ./dist/methods/filter.js ***!
  326. \********************************/
  327. /*! no static exports found */
  328. /***/ (function(module, exports, __webpack_require__) {
  329. "use strict";
  330. eval("\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\nfunction falsyValue(item) {\n if (Array.isArray(item)) {\n if (item.length) {\n return false;\n }\n } else if (item !== undefined && item !== null && (typeof item === 'undefined' ? 'undefined' : _typeof(item)) === 'object') {\n if (Object.keys(item).length) {\n return false;\n }\n } else if (item) {\n return false;\n }\n\n return true;\n}\n\nfunction filterObject(func, items) {\n var result = {};\n Object.keys(items).forEach(function (key) {\n if (func) {\n if (func(items[key], key)) {\n result[key] = items[key];\n }\n } else if (!falsyValue(items[key])) {\n result[key] = items[key];\n }\n });\n\n return result;\n}\n\nfunction filterArray(func, items) {\n if (func) {\n return items.filter(func);\n }\n var result = [];\n for (var i = 0; i < items.length; i += 1) {\n var item = items[i];\n if (!falsyValue(item)) {\n result.push(item);\n }\n }\n\n return result;\n}\n\nmodule.exports = function filter(fn) {\n var func = fn || false;\n var filteredItems = null;\n if (Array.isArray(this.items)) {\n filteredItems = filterArray(func, this.items);\n } else {\n filteredItems = filterObject(func, this.items);\n }\n\n return new this.constructor(filteredItems);\n};\n\n//# sourceURL=webpack://collect/./dist/methods/filter.js?");
  331. /***/ }),
  332. /***/ "./dist/methods/first.js":
  333. /*!*******************************!*\
  334. !*** ./dist/methods/first.js ***!
  335. \*******************************/
  336. /*! no static exports found */
  337. /***/ (function(module, exports, __webpack_require__) {
  338. "use strict";
  339. eval("\n\nmodule.exports = function first(fn, defaultValue) {\n if (typeof fn === 'function') {\n for (var i = 0, length = this.items.length; i < length; i += 1) {\n var item = this.items[i];\n if (fn(item)) {\n return item;\n }\n }\n\n if (typeof defaultValue === 'function') {\n return defaultValue();\n }\n\n return defaultValue;\n }\n\n if (Array.isArray(this.items) && this.items.length || Object.keys(this.items).length) {\n if (Array.isArray(this.items)) {\n return this.items[0];\n }\n\n var firstKey = Object.keys(this.items)[0];\n\n return this.items[firstKey];\n }\n\n if (typeof defaultValue === 'function') {\n return defaultValue();\n }\n\n return defaultValue;\n};\n\n//# sourceURL=webpack://collect/./dist/methods/first.js?");
  340. /***/ }),
  341. /***/ "./dist/methods/firstWhere.js":
  342. /*!************************************!*\
  343. !*** ./dist/methods/firstWhere.js ***!
  344. \************************************/
  345. /*! no static exports found */
  346. /***/ (function(module, exports, __webpack_require__) {
  347. "use strict";
  348. eval("\n\nmodule.exports = function firstWhere(key, operator, value) {\n return this.where(key, operator, value).first() || null;\n};\n\n//# sourceURL=webpack://collect/./dist/methods/firstWhere.js?");
  349. /***/ }),
  350. /***/ "./dist/methods/flatMap.js":
  351. /*!*********************************!*\
  352. !*** ./dist/methods/flatMap.js ***!
  353. \*********************************/
  354. /*! no static exports found */
  355. /***/ (function(module, exports, __webpack_require__) {
  356. "use strict";
  357. eval("\n\nmodule.exports = function flatMap(fn) {\n return this.map(fn).collapse();\n};\n\n//# sourceURL=webpack://collect/./dist/methods/flatMap.js?");
  358. /***/ }),
  359. /***/ "./dist/methods/flatten.js":
  360. /*!*********************************!*\
  361. !*** ./dist/methods/flatten.js ***!
  362. \*********************************/
  363. /*! no static exports found */
  364. /***/ (function(module, exports, __webpack_require__) {
  365. "use strict";
  366. eval("\n\nvar _require = __webpack_require__(/*! ../helpers/is */ \"./dist/helpers/is.js\"),\n isArray = _require.isArray,\n isObject = _require.isObject;\n\nmodule.exports = function flatten(depth) {\n var flattenDepth = depth || Infinity;\n\n var fullyFlattened = false;\n var collection = [];\n\n var flat = function flat(items) {\n collection = [];\n\n if (isArray(items)) {\n items.forEach(function (item) {\n if (isArray(item)) {\n collection = collection.concat(item);\n } else if (isObject(item)) {\n Object.keys(item).forEach(function (property) {\n collection = collection.concat(item[property]);\n });\n } else {\n collection.push(item);\n }\n });\n } else {\n Object.keys(items).forEach(function (property) {\n if (isArray(items[property])) {\n collection = collection.concat(items[property]);\n } else if (isObject(items[property])) {\n Object.keys(items).forEach(function (prop) {\n collection = collection.concat(items[prop]);\n });\n } else {\n collection.push(items[property]);\n }\n });\n }\n\n fullyFlattened = collection.filter(function (item) {\n return isObject(item);\n });\n fullyFlattened = fullyFlattened.length === 0;\n\n flattenDepth -= 1;\n };\n\n flat(this.items);\n\n while (!fullyFlattened && flattenDepth > 0) {\n flat(collection);\n }\n\n return new this.constructor(collection);\n};\n\n//# sourceURL=webpack://collect/./dist/methods/flatten.js?");
  367. /***/ }),
  368. /***/ "./dist/methods/flip.js":
  369. /*!******************************!*\
  370. !*** ./dist/methods/flip.js ***!
  371. \******************************/
  372. /*! no static exports found */
  373. /***/ (function(module, exports, __webpack_require__) {
  374. "use strict";
  375. eval("\n\nmodule.exports = function flip() {\n var _this = this;\n\n var collection = {};\n\n if (Array.isArray(this.items)) {\n Object.keys(this.items).forEach(function (key) {\n collection[_this.items[key]] = Number(key);\n });\n } else {\n Object.keys(this.items).forEach(function (key) {\n collection[_this.items[key]] = key;\n });\n }\n\n return new this.constructor(collection);\n};\n\n//# sourceURL=webpack://collect/./dist/methods/flip.js?");
  376. /***/ }),
  377. /***/ "./dist/methods/forPage.js":
  378. /*!*********************************!*\
  379. !*** ./dist/methods/forPage.js ***!
  380. \*********************************/
  381. /*! no static exports found */
  382. /***/ (function(module, exports, __webpack_require__) {
  383. "use strict";
  384. eval("\n\nmodule.exports = function forPage(page, chunk) {\n var _this = this;\n\n var collection = {};\n\n if (Array.isArray(this.items)) {\n collection = this.items.slice(page * chunk - chunk, page * chunk);\n } else {\n Object.keys(this.items).slice(page * chunk - chunk, page * chunk).forEach(function (key) {\n collection[key] = _this.items[key];\n });\n }\n\n return new this.constructor(collection);\n};\n\n//# sourceURL=webpack://collect/./dist/methods/forPage.js?");
  385. /***/ }),
  386. /***/ "./dist/methods/forget.js":
  387. /*!********************************!*\
  388. !*** ./dist/methods/forget.js ***!
  389. \********************************/
  390. /*! no static exports found */
  391. /***/ (function(module, exports, __webpack_require__) {
  392. "use strict";
  393. eval("\n\nmodule.exports = function forget(key) {\n if (Array.isArray(this.items)) {\n this.items.splice(key, 1);\n } else {\n delete this.items[key];\n }\n\n return this;\n};\n\n//# sourceURL=webpack://collect/./dist/methods/forget.js?");
  394. /***/ }),
  395. /***/ "./dist/methods/get.js":
  396. /*!*****************************!*\
  397. !*** ./dist/methods/get.js ***!
  398. \*****************************/
  399. /*! no static exports found */
  400. /***/ (function(module, exports, __webpack_require__) {
  401. "use strict";
  402. eval("\n\nmodule.exports = function get(key) {\n var defaultValue = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n\n if (this.items[key] !== undefined) {\n return this.items[key];\n }\n\n if (typeof defaultValue === 'function') {\n return defaultValue();\n }\n\n if (defaultValue !== null) {\n return defaultValue;\n }\n\n return null;\n};\n\n//# sourceURL=webpack://collect/./dist/methods/get.js?");
  403. /***/ }),
  404. /***/ "./dist/methods/groupBy.js":
  405. /*!*********************************!*\
  406. !*** ./dist/methods/groupBy.js ***!
  407. \*********************************/
  408. /*! no static exports found */
  409. /***/ (function(module, exports, __webpack_require__) {
  410. "use strict";
  411. eval("\n\nvar nestedValue = __webpack_require__(/*! ../helpers/nestedValue */ \"./dist/helpers/nestedValue.js\");\n\nmodule.exports = function groupBy(key) {\n var _this = this;\n\n var collection = {};\n\n this.items.forEach(function (item, index) {\n var resolvedKey = void 0;\n\n if (typeof key === 'function') {\n resolvedKey = key(item, index);\n } else if (nestedValue(item, key) || nestedValue(item, key) === 0) {\n resolvedKey = nestedValue(item, key);\n } else {\n resolvedKey = '';\n }\n\n if (collection[resolvedKey] === undefined) {\n collection[resolvedKey] = new _this.constructor([]);\n }\n\n collection[resolvedKey].push(item);\n });\n\n return new this.constructor(collection);\n};\n\n//# sourceURL=webpack://collect/./dist/methods/groupBy.js?");
  412. /***/ }),
  413. /***/ "./dist/methods/has.js":
  414. /*!*****************************!*\
  415. !*** ./dist/methods/has.js ***!
  416. \*****************************/
  417. /*! no static exports found */
  418. /***/ (function(module, exports, __webpack_require__) {
  419. "use strict";
  420. eval("\n\nvar variadic = __webpack_require__(/*! ../helpers/variadic */ \"./dist/helpers/variadic.js\");\n\nmodule.exports = function has() {\n var _this = this;\n\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n var properties = variadic(args);\n\n return properties.filter(function (key) {\n return _this.items[key];\n }).length === properties.length;\n};\n\n//# sourceURL=webpack://collect/./dist/methods/has.js?");
  421. /***/ }),
  422. /***/ "./dist/methods/implode.js":
  423. /*!*********************************!*\
  424. !*** ./dist/methods/implode.js ***!
  425. \*********************************/
  426. /*! no static exports found */
  427. /***/ (function(module, exports, __webpack_require__) {
  428. "use strict";
  429. eval("\n\nmodule.exports = function implode(key, glue) {\n if (glue === undefined) {\n return this.items.join(key);\n }\n\n return new this.constructor(this.items).pluck(key).all().join(glue);\n};\n\n//# sourceURL=webpack://collect/./dist/methods/implode.js?");
  430. /***/ }),
  431. /***/ "./dist/methods/intersect.js":
  432. /*!***********************************!*\
  433. !*** ./dist/methods/intersect.js ***!
  434. \***********************************/
  435. /*! no static exports found */
  436. /***/ (function(module, exports, __webpack_require__) {
  437. "use strict";
  438. eval("\n\nmodule.exports = function intersect(values) {\n var intersectValues = values;\n\n if (values instanceof this.constructor) {\n intersectValues = values.all();\n }\n\n var collection = this.items.filter(function (item) {\n return intersectValues.indexOf(item) !== -1;\n });\n\n return new this.constructor(collection);\n};\n\n//# sourceURL=webpack://collect/./dist/methods/intersect.js?");
  439. /***/ }),
  440. /***/ "./dist/methods/intersectByKeys.js":
  441. /*!*****************************************!*\
  442. !*** ./dist/methods/intersectByKeys.js ***!
  443. \*****************************************/
  444. /*! no static exports found */
  445. /***/ (function(module, exports, __webpack_require__) {
  446. "use strict";
  447. eval("\n\nmodule.exports = function intersectByKeys(values) {\n var _this = this;\n\n var intersectKeys = Object.keys(values);\n\n if (values instanceof this.constructor) {\n intersectKeys = Object.keys(values.all());\n }\n\n var collection = {};\n\n Object.keys(this.items).forEach(function (key) {\n if (intersectKeys.indexOf(key) !== -1) {\n collection[key] = _this.items[key];\n }\n });\n\n return new this.constructor(collection);\n};\n\n//# sourceURL=webpack://collect/./dist/methods/intersectByKeys.js?");
  448. /***/ }),
  449. /***/ "./dist/methods/isEmpty.js":
  450. /*!*********************************!*\
  451. !*** ./dist/methods/isEmpty.js ***!
  452. \*********************************/
  453. /*! no static exports found */
  454. /***/ (function(module, exports, __webpack_require__) {
  455. "use strict";
  456. eval("\n\nmodule.exports = function isEmpty() {\n return !this.items.length;\n};\n\n//# sourceURL=webpack://collect/./dist/methods/isEmpty.js?");
  457. /***/ }),
  458. /***/ "./dist/methods/isNotEmpty.js":
  459. /*!************************************!*\
  460. !*** ./dist/methods/isNotEmpty.js ***!
  461. \************************************/
  462. /*! no static exports found */
  463. /***/ (function(module, exports, __webpack_require__) {
  464. "use strict";
  465. eval("\n\nmodule.exports = function isNotEmpty() {\n return !!this.items.length;\n};\n\n//# sourceURL=webpack://collect/./dist/methods/isNotEmpty.js?");
  466. /***/ }),
  467. /***/ "./dist/methods/join.js":
  468. /*!******************************!*\
  469. !*** ./dist/methods/join.js ***!
  470. \******************************/
  471. /*! no static exports found */
  472. /***/ (function(module, exports, __webpack_require__) {
  473. "use strict";
  474. eval("\n\nmodule.exports = function join(glue, finalGlue) {\n var collection = this.values();\n\n if (finalGlue === undefined) {\n return collection.implode(glue);\n }\n\n var count = collection.count();\n\n if (count === 0) {\n return '';\n }\n\n if (count === 1) {\n return collection.last();\n }\n\n var finalItem = collection.pop();\n\n return collection.implode(glue) + finalGlue + finalItem;\n};\n\n//# sourceURL=webpack://collect/./dist/methods/join.js?");
  475. /***/ }),
  476. /***/ "./dist/methods/keyBy.js":
  477. /*!*******************************!*\
  478. !*** ./dist/methods/keyBy.js ***!
  479. \*******************************/
  480. /*! no static exports found */
  481. /***/ (function(module, exports, __webpack_require__) {
  482. "use strict";
  483. eval("\n\nvar nestedValue = __webpack_require__(/*! ../helpers/nestedValue */ \"./dist/helpers/nestedValue.js\");\n\nmodule.exports = function keyBy(key) {\n var collection = {};\n\n if (typeof key === 'function') {\n this.items.forEach(function (item) {\n collection[key(item)] = item;\n });\n } else {\n this.items.forEach(function (item) {\n var keyValue = nestedValue(item, key);\n\n collection[keyValue || ''] = item;\n });\n }\n\n return new this.constructor(collection);\n};\n\n//# sourceURL=webpack://collect/./dist/methods/keyBy.js?");
  484. /***/ }),
  485. /***/ "./dist/methods/keys.js":
  486. /*!******************************!*\
  487. !*** ./dist/methods/keys.js ***!
  488. \******************************/
  489. /*! no static exports found */
  490. /***/ (function(module, exports, __webpack_require__) {
  491. "use strict";
  492. eval("\n\nmodule.exports = function keys() {\n var collection = Object.keys(this.items);\n\n if (Array.isArray(this.items)) {\n collection = collection.map(Number);\n }\n\n return new this.constructor(collection);\n};\n\n//# sourceURL=webpack://collect/./dist/methods/keys.js?");
  493. /***/ }),
  494. /***/ "./dist/methods/last.js":
  495. /*!******************************!*\
  496. !*** ./dist/methods/last.js ***!
  497. \******************************/
  498. /*! no static exports found */
  499. /***/ (function(module, exports, __webpack_require__) {
  500. "use strict";
  501. eval("\n\nmodule.exports = function last(fn, defaultValue) {\n var items = this.items;\n\n\n if (typeof fn === 'function') {\n items = this.filter(fn).all();\n }\n\n if (Array.isArray(items) && !items.length || !Object.keys(items).length) {\n if (typeof defaultValue === 'function') {\n return defaultValue();\n }\n\n return defaultValue;\n }\n\n if (Array.isArray(items)) {\n return items[items.length - 1];\n }\n var keys = Object.keys(items);\n\n return items[keys[keys.length - 1]];\n};\n\n//# sourceURL=webpack://collect/./dist/methods/last.js?");
  502. /***/ }),
  503. /***/ "./dist/methods/macro.js":
  504. /*!*******************************!*\
  505. !*** ./dist/methods/macro.js ***!
  506. \*******************************/
  507. /*! no static exports found */
  508. /***/ (function(module, exports, __webpack_require__) {
  509. "use strict";
  510. eval("\n\nmodule.exports = function macro(name, fn) {\n this.constructor.prototype[name] = fn;\n};\n\n//# sourceURL=webpack://collect/./dist/methods/macro.js?");
  511. /***/ }),
  512. /***/ "./dist/methods/make.js":
  513. /*!******************************!*\
  514. !*** ./dist/methods/make.js ***!
  515. \******************************/
  516. /*! no static exports found */
  517. /***/ (function(module, exports, __webpack_require__) {
  518. "use strict";
  519. eval("\n\nmodule.exports = function make() {\n var items = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n\n return new this.constructor(items);\n};\n\n//# sourceURL=webpack://collect/./dist/methods/make.js?");
  520. /***/ }),
  521. /***/ "./dist/methods/map.js":
  522. /*!*****************************!*\
  523. !*** ./dist/methods/map.js ***!
  524. \*****************************/
  525. /*! no static exports found */
  526. /***/ (function(module, exports, __webpack_require__) {
  527. "use strict";
  528. eval("\n\nmodule.exports = function map(fn) {\n var _this = this;\n\n if (Array.isArray(this.items)) {\n return new this.constructor(this.items.map(fn));\n }\n\n var collection = {};\n\n Object.keys(this.items).forEach(function (key) {\n collection[key] = fn(_this.items[key], key);\n });\n\n return new this.constructor(collection);\n};\n\n//# sourceURL=webpack://collect/./dist/methods/map.js?");
  529. /***/ }),
  530. /***/ "./dist/methods/mapInto.js":
  531. /*!*********************************!*\
  532. !*** ./dist/methods/mapInto.js ***!
  533. \*********************************/
  534. /*! no static exports found */
  535. /***/ (function(module, exports, __webpack_require__) {
  536. "use strict";
  537. eval("\n\nmodule.exports = function mapInto(ClassName) {\n return this.map(function (value, key) {\n return new ClassName(value, key);\n });\n};\n\n//# sourceURL=webpack://collect/./dist/methods/mapInto.js?");
  538. /***/ }),
  539. /***/ "./dist/methods/mapSpread.js":
  540. /*!***********************************!*\
  541. !*** ./dist/methods/mapSpread.js ***!
  542. \***********************************/
  543. /*! no static exports found */
  544. /***/ (function(module, exports, __webpack_require__) {
  545. "use strict";
  546. eval("\n\nfunction _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }\n\nmodule.exports = function mapSpread(fn) {\n return this.map(function (values, key) {\n return fn.apply(undefined, _toConsumableArray(values).concat([key]));\n });\n};\n\n//# sourceURL=webpack://collect/./dist/methods/mapSpread.js?");
  547. /***/ }),
  548. /***/ "./dist/methods/mapToDictionary.js":
  549. /*!*****************************************!*\
  550. !*** ./dist/methods/mapToDictionary.js ***!
  551. \*****************************************/
  552. /*! no static exports found */
  553. /***/ (function(module, exports, __webpack_require__) {
  554. "use strict";
  555. eval("\n\nvar _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"]) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError(\"Invalid attempt to destructure non-iterable instance\"); } }; }();\n\nmodule.exports = function mapToDictionary(fn) {\n var collection = {};\n\n this.items.forEach(function (item, k) {\n var _fn = fn(item, k),\n _fn2 = _slicedToArray(_fn, 2),\n key = _fn2[0],\n value = _fn2[1];\n\n if (collection[key] === undefined) {\n collection[key] = [value];\n } else {\n collection[key].push(value);\n }\n });\n\n return new this.constructor(collection);\n};\n\n//# sourceURL=webpack://collect/./dist/methods/mapToDictionary.js?");
  556. /***/ }),
  557. /***/ "./dist/methods/mapToGroups.js":
  558. /*!*************************************!*\
  559. !*** ./dist/methods/mapToGroups.js ***!
  560. \*************************************/
  561. /*! no static exports found */
  562. /***/ (function(module, exports, __webpack_require__) {
  563. "use strict";
  564. eval("\n\nvar _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"]) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError(\"Invalid attempt to destructure non-iterable instance\"); } }; }();\n\nmodule.exports = function mapToGroups(fn) {\n var collection = {};\n\n this.items.forEach(function (item, key) {\n var _fn = fn(item, key),\n _fn2 = _slicedToArray(_fn, 2),\n keyed = _fn2[0],\n value = _fn2[1];\n\n if (collection[keyed] === undefined) {\n collection[keyed] = [value];\n } else {\n collection[keyed].push(value);\n }\n });\n\n return new this.constructor(collection);\n};\n\n//# sourceURL=webpack://collect/./dist/methods/mapToGroups.js?");
  565. /***/ }),
  566. /***/ "./dist/methods/mapWithKeys.js":
  567. /*!*************************************!*\
  568. !*** ./dist/methods/mapWithKeys.js ***!
  569. \*************************************/
  570. /*! no static exports found */
  571. /***/ (function(module, exports, __webpack_require__) {
  572. "use strict";
  573. eval("\n\nvar _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"]) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError(\"Invalid attempt to destructure non-iterable instance\"); } }; }();\n\nmodule.exports = function mapWithKeys(fn) {\n var _this = this;\n\n var collection = {};\n\n if (Array.isArray(this.items)) {\n this.items.forEach(function (item) {\n var _fn = fn(item),\n _fn2 = _slicedToArray(_fn, 2),\n keyed = _fn2[0],\n value = _fn2[1];\n\n collection[keyed] = value;\n });\n } else {\n Object.keys(this.items).forEach(function (key) {\n var _fn3 = fn(_this.items[key]),\n _fn4 = _slicedToArray(_fn3, 2),\n keyed = _fn4[0],\n value = _fn4[1];\n\n collection[keyed] = value;\n });\n }\n\n return new this.constructor(collection);\n};\n\n//# sourceURL=webpack://collect/./dist/methods/mapWithKeys.js?");
  574. /***/ }),
  575. /***/ "./dist/methods/max.js":
  576. /*!*****************************!*\
  577. !*** ./dist/methods/max.js ***!
  578. \*****************************/
  579. /*! no static exports found */
  580. /***/ (function(module, exports, __webpack_require__) {
  581. "use strict";
  582. eval("\n\nfunction _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }\n\nmodule.exports = function max(key) {\n if (typeof key === 'string') {\n return Math.max.apply(Math, _toConsumableArray(this.pluck(key).all()));\n }\n\n return Math.max.apply(Math, _toConsumableArray(this.items));\n};\n\n//# sourceURL=webpack://collect/./dist/methods/max.js?");
  583. /***/ }),
  584. /***/ "./dist/methods/median.js":
  585. /*!********************************!*\
  586. !*** ./dist/methods/median.js ***!
  587. \********************************/
  588. /*! no static exports found */
  589. /***/ (function(module, exports, __webpack_require__) {
  590. "use strict";
  591. eval("\n\nmodule.exports = function median(key) {\n var length = this.items.length;\n\n\n if (key === undefined) {\n if (length % 2 === 0) {\n return (this.items[length / 2 - 1] + this.items[length / 2]) / 2;\n }\n\n return this.items[Math.floor(length / 2)];\n }\n\n if (length % 2 === 0) {\n return (this.items[length / 2 - 1][key] + this.items[length / 2][key]) / 2;\n }\n\n return this.items[Math.floor(length / 2)][key];\n};\n\n//# sourceURL=webpack://collect/./dist/methods/median.js?");
  592. /***/ }),
  593. /***/ "./dist/methods/merge.js":
  594. /*!*******************************!*\
  595. !*** ./dist/methods/merge.js ***!
  596. \*******************************/
  597. /*! no static exports found */
  598. /***/ (function(module, exports, __webpack_require__) {
  599. "use strict";
  600. eval("\n\nmodule.exports = function merge(value) {\n var arrayOrObject = value;\n\n if (typeof arrayOrObject === 'string') {\n arrayOrObject = [arrayOrObject];\n }\n\n if (Array.isArray(this.items) && Array.isArray(arrayOrObject)) {\n return new this.constructor(this.items.concat(arrayOrObject));\n }\n\n var collection = JSON.parse(JSON.stringify(this.items));\n\n Object.keys(arrayOrObject).forEach(function (key) {\n collection[key] = arrayOrObject[key];\n });\n\n return new this.constructor(collection);\n};\n\n//# sourceURL=webpack://collect/./dist/methods/merge.js?");
  601. /***/ }),
  602. /***/ "./dist/methods/mergeRecursive.js":
  603. /*!****************************************!*\
  604. !*** ./dist/methods/mergeRecursive.js ***!
  605. \****************************************/
  606. /*! no static exports found */
  607. /***/ (function(module, exports, __webpack_require__) {
  608. "use strict";
  609. eval("\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\nmodule.exports = function mergeRecursive(items) {\n var merge = function merge(target, source) {\n var merged = {};\n\n var mergedKeys = Object.keys(Object.assign({}, target, source));\n\n mergedKeys.forEach(function (key) {\n if (target[key] === undefined && source[key] !== undefined) {\n merged[key] = source[key];\n } else if (target[key] !== undefined && source[key] === undefined) {\n merged[key] = target[key];\n } else if (target[key] !== undefined && source[key] !== undefined) {\n if (target[key] === source[key]) {\n merged[key] = target[key];\n } else if (!Array.isArray(target[key]) && _typeof(target[key]) === 'object' && !Array.isArray(source[key]) && _typeof(source[key]) === 'object') {\n merged[key] = merge(target[key], source[key]);\n } else {\n merged[key] = [].concat(target[key], source[key]);\n }\n }\n });\n\n return merged;\n };\n\n if (!items) {\n return this;\n }\n\n if (items.constructor.name === 'Collection') {\n return new this.constructor(merge(this.items, items.all()));\n }\n\n return new this.constructor(merge(this.items, items));\n};\n\n//# sourceURL=webpack://collect/./dist/methods/mergeRecursive.js?");
  610. /***/ }),
  611. /***/ "./dist/methods/min.js":
  612. /*!*****************************!*\
  613. !*** ./dist/methods/min.js ***!
  614. \*****************************/
  615. /*! no static exports found */
  616. /***/ (function(module, exports, __webpack_require__) {
  617. "use strict";
  618. eval("\n\nfunction _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }\n\nmodule.exports = function min(key) {\n if (key !== undefined) {\n return Math.min.apply(Math, _toConsumableArray(this.pluck(key).all()));\n }\n\n return Math.min.apply(Math, _toConsumableArray(this.items));\n};\n\n//# sourceURL=webpack://collect/./dist/methods/min.js?");
  619. /***/ }),
  620. /***/ "./dist/methods/mode.js":
  621. /*!******************************!*\
  622. !*** ./dist/methods/mode.js ***!
  623. \******************************/
  624. /*! no static exports found */
  625. /***/ (function(module, exports, __webpack_require__) {
  626. "use strict";
  627. eval("\n\nmodule.exports = function mode(key) {\n var values = [];\n var highestCount = 1;\n\n if (!this.items.length) {\n return null;\n }\n\n this.items.forEach(function (item) {\n var tempValues = values.filter(function (value) {\n if (key !== undefined) {\n return value.key === item[key];\n }\n\n return value.key === item;\n });\n\n if (!tempValues.length) {\n if (key !== undefined) {\n values.push({ key: item[key], count: 1 });\n } else {\n values.push({ key: item, count: 1 });\n }\n } else {\n tempValues[0].count += 1;\n var count = tempValues[0].count;\n\n\n if (count > highestCount) {\n highestCount = count;\n }\n }\n });\n\n return values.filter(function (value) {\n return value.count === highestCount;\n }).map(function (value) {\n return value.key;\n });\n};\n\n//# sourceURL=webpack://collect/./dist/methods/mode.js?");
  628. /***/ }),
  629. /***/ "./dist/methods/nth.js":
  630. /*!*****************************!*\
  631. !*** ./dist/methods/nth.js ***!
  632. \*****************************/
  633. /*! no static exports found */
  634. /***/ (function(module, exports, __webpack_require__) {
  635. "use strict";
  636. eval("\n\nvar values = __webpack_require__(/*! ../helpers/values */ \"./dist/helpers/values.js\");\n\nmodule.exports = function nth(n) {\n var offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n\n var items = values(this.items);\n\n var collection = items.slice(offset).filter(function (item, index) {\n return index % n === 0;\n });\n\n return new this.constructor(collection);\n};\n\n//# sourceURL=webpack://collect/./dist/methods/nth.js?");
  637. /***/ }),
  638. /***/ "./dist/methods/only.js":
  639. /*!******************************!*\
  640. !*** ./dist/methods/only.js ***!
  641. \******************************/
  642. /*! no static exports found */
  643. /***/ (function(module, exports, __webpack_require__) {
  644. "use strict";
  645. eval("\n\nvar variadic = __webpack_require__(/*! ../helpers/variadic */ \"./dist/helpers/variadic.js\");\n\nmodule.exports = function only() {\n var _this = this;\n\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n var properties = variadic(args);\n\n if (Array.isArray(this.items)) {\n var _collection = this.items.filter(function (item) {\n return properties.indexOf(item) !== -1;\n });\n\n return new this.constructor(_collection);\n }\n\n var collection = {};\n\n Object.keys(this.items).forEach(function (prop) {\n if (properties.indexOf(prop) !== -1) {\n collection[prop] = _this.items[prop];\n }\n });\n\n return new this.constructor(collection);\n};\n\n//# sourceURL=webpack://collect/./dist/methods/only.js?");
  646. /***/ }),
  647. /***/ "./dist/methods/pad.js":
  648. /*!*****************************!*\
  649. !*** ./dist/methods/pad.js ***!
  650. \*****************************/
  651. /*! no static exports found */
  652. /***/ (function(module, exports, __webpack_require__) {
  653. "use strict";
  654. eval("\n\nvar clone = __webpack_require__(/*! ../helpers/clone */ \"./dist/helpers/clone.js\");\n\nmodule.exports = function pad(size, value) {\n var abs = Math.abs(size);\n var count = this.count();\n\n if (abs <= count) {\n return this;\n }\n\n var diff = abs - count;\n var items = clone(this.items);\n var isArray = Array.isArray(this.items);\n var prepend = size < 0;\n\n for (var iterator = 0; iterator < diff;) {\n if (!isArray) {\n if (items[iterator] !== undefined) {\n diff += 1;\n } else {\n items[iterator] = value;\n }\n } else if (prepend) {\n items.unshift(value);\n } else {\n items.push(value);\n }\n\n iterator += 1;\n }\n\n return new this.constructor(items);\n};\n\n//# sourceURL=webpack://collect/./dist/methods/pad.js?");
  655. /***/ }),
  656. /***/ "./dist/methods/partition.js":
  657. /*!***********************************!*\
  658. !*** ./dist/methods/partition.js ***!
  659. \***********************************/
  660. /*! no static exports found */
  661. /***/ (function(module, exports, __webpack_require__) {
  662. "use strict";
  663. eval("\n\nmodule.exports = function partition(fn) {\n var _this = this;\n\n var arrays = void 0;\n\n if (Array.isArray(this.items)) {\n arrays = [new this.constructor([]), new this.constructor([])];\n\n this.items.forEach(function (item) {\n if (fn(item) === true) {\n arrays[0].push(item);\n } else {\n arrays[1].push(item);\n }\n });\n } else {\n arrays = [new this.constructor({}), new this.constructor({})];\n\n Object.keys(this.items).forEach(function (prop) {\n var value = _this.items[prop];\n\n if (fn(value) === true) {\n arrays[0].put(prop, value);\n } else {\n arrays[1].put(prop, value);\n }\n });\n }\n\n return new this.constructor(arrays);\n};\n\n//# sourceURL=webpack://collect/./dist/methods/partition.js?");
  664. /***/ }),
  665. /***/ "./dist/methods/pipe.js":
  666. /*!******************************!*\
  667. !*** ./dist/methods/pipe.js ***!
  668. \******************************/
  669. /*! no static exports found */
  670. /***/ (function(module, exports, __webpack_require__) {
  671. "use strict";
  672. eval("\n\nmodule.exports = function pipe(fn) {\n return fn(this);\n};\n\n//# sourceURL=webpack://collect/./dist/methods/pipe.js?");
  673. /***/ }),
  674. /***/ "./dist/methods/pluck.js":
  675. /*!*******************************!*\
  676. !*** ./dist/methods/pluck.js ***!
  677. \*******************************/
  678. /*! no static exports found */
  679. /***/ (function(module, exports, __webpack_require__) {
  680. "use strict";
  681. eval("\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\nvar nestedValue = __webpack_require__(/*! ../helpers/nestedValue */ \"./dist/helpers/nestedValue.js\");\n\nvar buildKeyPathMap = function buildKeyPathMap(items) {\n var keyPaths = {};\n\n items.forEach(function (item, index) {\n function buildKeyPath(val, keyPath) {\n if ((typeof val === 'undefined' ? 'undefined' : _typeof(val)) === 'object') {\n Object.keys(val).forEach(function (prop) {\n buildKeyPath(val[prop], keyPath + '.' + prop);\n });\n }\n\n keyPaths[keyPath] = val;\n }\n\n buildKeyPath(item, index);\n });\n\n return keyPaths;\n};\n\nmodule.exports = function pluck(value, key) {\n if (value.indexOf('*') !== -1) {\n var keyPathMap = buildKeyPathMap(this.items);\n\n var keyMatches = [];\n\n if (key !== undefined) {\n var keyRegex = new RegExp('0.' + key, 'g');\n var keyNumberOfLevels = ('0.' + key).split('.').length;\n\n Object.keys(keyPathMap).forEach(function (k) {\n var matchingKey = k.match(keyRegex);\n\n if (matchingKey) {\n var match = matchingKey[0];\n\n if (match.split('.').length === keyNumberOfLevels) {\n keyMatches.push(keyPathMap[match]);\n }\n }\n });\n }\n\n var valueMatches = [];\n var valueRegex = new RegExp('0.' + value, 'g');\n var valueNumberOfLevels = ('0.' + value).split('.').length;\n\n Object.keys(keyPathMap).forEach(function (k) {\n var matchingValue = k.match(valueRegex);\n\n if (matchingValue) {\n var match = matchingValue[0];\n\n if (match.split('.').length === valueNumberOfLevels) {\n valueMatches.push(keyPathMap[match]);\n }\n }\n });\n\n if (key !== undefined) {\n var collection = {};\n\n this.items.forEach(function (item, index) {\n collection[keyMatches[index] || ''] = valueMatches;\n });\n\n return new this.constructor(collection);\n }\n\n return new this.constructor([valueMatches]);\n }\n\n if (key !== undefined) {\n var _collection = {};\n\n this.items.forEach(function (item) {\n if (nestedValue(item, value) !== undefined) {\n _collection[item[key] || ''] = nestedValue(item, value);\n } else {\n _collection[item[key] || ''] = null;\n }\n });\n\n return new this.constructor(_collection);\n }\n\n return this.map(function (item) {\n if (nestedValue(item, value) !== undefined) {\n return nestedValue(item, value);\n }\n\n return null;\n });\n};\n\n//# sourceURL=webpack://collect/./dist/methods/pluck.js?");
  682. /***/ }),
  683. /***/ "./dist/methods/pop.js":
  684. /*!*****************************!*\
  685. !*** ./dist/methods/pop.js ***!
  686. \*****************************/
  687. /*! no static exports found */
  688. /***/ (function(module, exports, __webpack_require__) {
  689. "use strict";
  690. eval("\n\nmodule.exports = function pop() {\n if (Array.isArray(this.items)) {\n return this.items.pop();\n }\n\n var keys = Object.keys(this.items);\n var key = keys[keys.length - 1];\n var last = this.items[key];\n\n delete this.items[key];\n\n return last;\n};\n\n//# sourceURL=webpack://collect/./dist/methods/pop.js?");
  691. /***/ }),
  692. /***/ "./dist/methods/prepend.js":
  693. /*!*********************************!*\
  694. !*** ./dist/methods/prepend.js ***!
  695. \*********************************/
  696. /*! no static exports found */
  697. /***/ (function(module, exports, __webpack_require__) {
  698. "use strict";
  699. eval("\n\nmodule.exports = function prepend(value, key) {\n if (key !== undefined) {\n return this.put(key, value);\n }\n\n this.items.unshift(value);\n\n return this;\n};\n\n//# sourceURL=webpack://collect/./dist/methods/prepend.js?");
  700. /***/ }),
  701. /***/ "./dist/methods/pull.js":
  702. /*!******************************!*\
  703. !*** ./dist/methods/pull.js ***!
  704. \******************************/
  705. /*! no static exports found */
  706. /***/ (function(module, exports, __webpack_require__) {
  707. "use strict";
  708. eval("\n\nmodule.exports = function pull(key, defaultValue) {\n var returnValue = this.items[key] || null;\n\n if (!returnValue && defaultValue !== undefined) {\n if (typeof defaultValue === 'function') {\n returnValue = defaultValue();\n } else {\n returnValue = defaultValue;\n }\n }\n\n delete this.items[key];\n\n return returnValue;\n};\n\n//# sourceURL=webpack://collect/./dist/methods/pull.js?");
  709. /***/ }),
  710. /***/ "./dist/methods/push.js":
  711. /*!******************************!*\
  712. !*** ./dist/methods/push.js ***!
  713. \******************************/
  714. /*! no static exports found */
  715. /***/ (function(module, exports, __webpack_require__) {
  716. "use strict";
  717. eval("\n\nmodule.exports = function push() {\n var _items;\n\n (_items = this.items).push.apply(_items, arguments);\n\n return this;\n};\n\n//# sourceURL=webpack://collect/./dist/methods/push.js?");
  718. /***/ }),
  719. /***/ "./dist/methods/put.js":
  720. /*!*****************************!*\
  721. !*** ./dist/methods/put.js ***!
  722. \*****************************/
  723. /*! no static exports found */
  724. /***/ (function(module, exports, __webpack_require__) {
  725. "use strict";
  726. eval("\n\nmodule.exports = function put(key, value) {\n this.items[key] = value;\n\n return this;\n};\n\n//# sourceURL=webpack://collect/./dist/methods/put.js?");
  727. /***/ }),
  728. /***/ "./dist/methods/random.js":
  729. /*!********************************!*\
  730. !*** ./dist/methods/random.js ***!
  731. \********************************/
  732. /*! no static exports found */
  733. /***/ (function(module, exports, __webpack_require__) {
  734. "use strict";
  735. eval("\n\nvar values = __webpack_require__(/*! ../helpers/values */ \"./dist/helpers/values.js\");\n\nmodule.exports = function random() {\n var length = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n\n var items = values(this.items);\n\n var collection = new this.constructor(items).shuffle();\n\n // If not a length was specified\n if (length !== parseInt(length, 10)) {\n return collection.first();\n }\n\n return collection.take(length);\n};\n\n//# sourceURL=webpack://collect/./dist/methods/random.js?");
  736. /***/ }),
  737. /***/ "./dist/methods/reduce.js":
  738. /*!********************************!*\
  739. !*** ./dist/methods/reduce.js ***!
  740. \********************************/
  741. /*! no static exports found */
  742. /***/ (function(module, exports, __webpack_require__) {
  743. "use strict";
  744. eval("\n\nmodule.exports = function reduce(fn, carry) {\n var _this = this;\n\n var reduceCarry = null;\n\n if (carry !== undefined) {\n reduceCarry = carry;\n }\n\n if (Array.isArray(this.items)) {\n this.items.forEach(function (item) {\n reduceCarry = fn(reduceCarry, item);\n });\n } else {\n Object.keys(this.items).forEach(function (key) {\n reduceCarry = fn(reduceCarry, _this.items[key], key);\n });\n }\n\n return reduceCarry;\n};\n\n//# sourceURL=webpack://collect/./dist/methods/reduce.js?");
  745. /***/ }),
  746. /***/ "./dist/methods/reject.js":
  747. /*!********************************!*\
  748. !*** ./dist/methods/reject.js ***!
  749. \********************************/
  750. /*! no static exports found */
  751. /***/ (function(module, exports, __webpack_require__) {
  752. "use strict";
  753. eval("\n\nmodule.exports = function reject(fn) {\n return new this.constructor(this.items).filter(function (item) {\n return !fn(item);\n });\n};\n\n//# sourceURL=webpack://collect/./dist/methods/reject.js?");
  754. /***/ }),
  755. /***/ "./dist/methods/replace.js":
  756. /*!*********************************!*\
  757. !*** ./dist/methods/replace.js ***!
  758. \*********************************/
  759. /*! no static exports found */
  760. /***/ (function(module, exports, __webpack_require__) {
  761. "use strict";
  762. eval("\n\nmodule.exports = function replace(items) {\n if (!items) {\n return this;\n }\n\n if (Array.isArray(items)) {\n var _replaced = this.items.map(function (value, index) {\n return items[index] || value;\n });\n\n return new this.constructor(_replaced);\n }\n\n if (items.constructor.name === 'Collection') {\n var _replaced2 = Object.assign({}, this.items, items.all());\n\n return new this.constructor(_replaced2);\n }\n\n var replaced = Object.assign({}, this.items, items);\n\n return new this.constructor(replaced);\n};\n\n//# sourceURL=webpack://collect/./dist/methods/replace.js?");
  763. /***/ }),
  764. /***/ "./dist/methods/replaceRecursive.js":
  765. /*!******************************************!*\
  766. !*** ./dist/methods/replaceRecursive.js ***!
  767. \******************************************/
  768. /*! no static exports found */
  769. /***/ (function(module, exports, __webpack_require__) {
  770. "use strict";
  771. eval("\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\nmodule.exports = function replaceRecursive(items) {\n var replace = function replace(target, source) {\n var replaced = Object.assign({}, target);\n\n var mergedKeys = Object.keys(Object.assign({}, target, source));\n\n mergedKeys.forEach(function (key) {\n if (!Array.isArray(source[key]) && _typeof(source[key]) === 'object') {\n replaced[key] = replace(target[key], source[key]);\n } else if (target[key] === undefined && source[key] !== undefined) {\n if (_typeof(target[key]) === 'object') {\n replaced[key] = Object.assign({}, source[key]);\n } else {\n replaced[key] = source[key];\n }\n } else if (target[key] !== undefined && source[key] === undefined) {\n if (_typeof(target[key]) === 'object') {\n replaced[key] = Object.assign({}, target[key]);\n } else {\n replaced[key] = target[key];\n }\n } else if (target[key] !== undefined && source[key] !== undefined) {\n if (_typeof(source[key]) === 'object') {\n replaced[key] = Object.assign({}, source[key]);\n } else {\n replaced[key] = source[key];\n }\n }\n });\n\n return replaced;\n };\n\n if (!items) {\n return this;\n }\n\n if (!Array.isArray(items) && (typeof items === 'undefined' ? 'undefined' : _typeof(items)) !== 'object') {\n return new this.constructor(replace(this.items, [items]));\n }\n\n if (items.constructor.name === 'Collection') {\n return new this.constructor(replace(this.items, items.all()));\n }\n\n return new this.constructor(replace(this.items, items));\n};\n\n//# sourceURL=webpack://collect/./dist/methods/replaceRecursive.js?");
  772. /***/ }),
  773. /***/ "./dist/methods/reverse.js":
  774. /*!*********************************!*\
  775. !*** ./dist/methods/reverse.js ***!
  776. \*********************************/
  777. /*! no static exports found */
  778. /***/ (function(module, exports, __webpack_require__) {
  779. "use strict";
  780. eval("\n\nmodule.exports = function reverse() {\n var collection = [].concat(this.items).reverse();\n\n return new this.constructor(collection);\n};\n\n//# sourceURL=webpack://collect/./dist/methods/reverse.js?");
  781. /***/ }),
  782. /***/ "./dist/methods/search.js":
  783. /*!********************************!*\
  784. !*** ./dist/methods/search.js ***!
  785. \********************************/
  786. /*! no static exports found */
  787. /***/ (function(module, exports, __webpack_require__) {
  788. "use strict";
  789. eval("\n\nmodule.exports = function search(valueOrFunction, strict) {\n var _this = this;\n\n var valueFn = valueOrFunction;\n\n if (typeof valueOrFunction === 'function') {\n valueFn = this.items.find(function (value, key) {\n return valueOrFunction(value, key);\n });\n }\n\n var index = false;\n\n if (Array.isArray(this.items)) {\n var itemKey = this.items.filter(function (item) {\n if (strict === true) {\n return item === valueFn;\n }\n\n return item === Number(valueFn) || item === String(valueFn);\n })[0];\n\n index = this.items.indexOf(itemKey);\n } else {\n return Object.keys(this.items).filter(function (prop) {\n if (strict === true) {\n return _this.items[prop] === valueFn;\n }\n\n return _this.items[prop] === Number(valueFn) || _this.items[prop] === valueFn.toString();\n })[0] || false;\n }\n\n if (index === -1) {\n return false;\n }\n\n return index;\n};\n\n//# sourceURL=webpack://collect/./dist/methods/search.js?");
  790. /***/ }),
  791. /***/ "./dist/methods/shift.js":
  792. /*!*******************************!*\
  793. !*** ./dist/methods/shift.js ***!
  794. \*******************************/
  795. /*! no static exports found */
  796. /***/ (function(module, exports, __webpack_require__) {
  797. "use strict";
  798. eval("\n\nmodule.exports = function shift() {\n if (Array.isArray(this.items)) {\n return this.items.shift();\n }\n\n var key = Object.keys(this.items)[0];\n var value = this.items[key] || null;\n delete this.items[key];\n\n return value;\n};\n\n//# sourceURL=webpack://collect/./dist/methods/shift.js?");
  799. /***/ }),
  800. /***/ "./dist/methods/shuffle.js":
  801. /*!*********************************!*\
  802. !*** ./dist/methods/shuffle.js ***!
  803. \*********************************/
  804. /*! no static exports found */
  805. /***/ (function(module, exports, __webpack_require__) {
  806. "use strict";
  807. eval("\n\nvar values = __webpack_require__(/*! ../helpers/values */ \"./dist/helpers/values.js\");\n\nmodule.exports = function shuffle() {\n var items = values(this.items);\n\n var j = void 0;\n var x = void 0;\n var i = void 0;\n\n for (i = items.length; i; i -= 1) {\n j = Math.floor(Math.random() * i);\n x = items[i - 1];\n items[i - 1] = items[j];\n items[j] = x;\n }\n\n this.items = items;\n\n return this;\n};\n\n//# sourceURL=webpack://collect/./dist/methods/shuffle.js?");
  808. /***/ }),
  809. /***/ "./dist/methods/slice.js":
  810. /*!*******************************!*\
  811. !*** ./dist/methods/slice.js ***!
  812. \*******************************/
  813. /*! no static exports found */
  814. /***/ (function(module, exports, __webpack_require__) {
  815. "use strict";
  816. eval("\n\nmodule.exports = function slice(remove, limit) {\n var collection = this.items.slice(remove);\n\n if (limit !== undefined) {\n collection = collection.slice(0, limit);\n }\n\n return new this.constructor(collection);\n};\n\n//# sourceURL=webpack://collect/./dist/methods/slice.js?");
  817. /***/ }),
  818. /***/ "./dist/methods/sort.js":
  819. /*!******************************!*\
  820. !*** ./dist/methods/sort.js ***!
  821. \******************************/
  822. /*! no static exports found */
  823. /***/ (function(module, exports, __webpack_require__) {
  824. "use strict";
  825. eval("\n\nmodule.exports = function sort(fn) {\n var collection = [].concat(this.items);\n\n if (fn === undefined) {\n if (this.every(function (item) {\n return typeof item === 'number';\n })) {\n collection.sort(function (a, b) {\n return a - b;\n });\n } else {\n collection.sort();\n }\n } else {\n collection.sort(fn);\n }\n\n return new this.constructor(collection);\n};\n\n//# sourceURL=webpack://collect/./dist/methods/sort.js?");
  826. /***/ }),
  827. /***/ "./dist/methods/sortBy.js":
  828. /*!********************************!*\
  829. !*** ./dist/methods/sortBy.js ***!
  830. \********************************/
  831. /*! no static exports found */
  832. /***/ (function(module, exports, __webpack_require__) {
  833. "use strict";
  834. eval("\n\nvar nestedValue = __webpack_require__(/*! ../helpers/nestedValue */ \"./dist/helpers/nestedValue.js\");\n\nmodule.exports = function sortBy(valueOrFunction) {\n var collection = [].concat(this.items);\n var isFunction = typeof valueOrFunction === 'function';\n var getValue = function getValue(item) {\n if (isFunction) {\n return valueOrFunction(item);\n }\n\n return nestedValue(item, valueOrFunction);\n };\n\n collection.sort(function (a, b) {\n var valueA = getValue(a);\n var valueB = getValue(b);\n\n if (valueA === null || valueA === undefined) {\n return 1;\n }\n if (valueB === null || valueB === undefined) {\n return -1;\n }\n\n if (valueA < valueB) {\n return -1;\n }\n if (valueA > valueB) {\n return 1;\n }\n\n return 0;\n });\n\n return new this.constructor(collection);\n};\n\n//# sourceURL=webpack://collect/./dist/methods/sortBy.js?");
  835. /***/ }),
  836. /***/ "./dist/methods/sortByDesc.js":
  837. /*!************************************!*\
  838. !*** ./dist/methods/sortByDesc.js ***!
  839. \************************************/
  840. /*! no static exports found */
  841. /***/ (function(module, exports, __webpack_require__) {
  842. "use strict";
  843. eval("\n\nmodule.exports = function sortByDesc(valueOrFunction) {\n return this.sortBy(valueOrFunction).reverse();\n};\n\n//# sourceURL=webpack://collect/./dist/methods/sortByDesc.js?");
  844. /***/ }),
  845. /***/ "./dist/methods/sortKeys.js":
  846. /*!**********************************!*\
  847. !*** ./dist/methods/sortKeys.js ***!
  848. \**********************************/
  849. /*! no static exports found */
  850. /***/ (function(module, exports, __webpack_require__) {
  851. "use strict";
  852. eval("\n\nmodule.exports = function sortKeys() {\n var _this = this;\n\n var ordered = {};\n\n Object.keys(this.items).sort().forEach(function (key) {\n ordered[key] = _this.items[key];\n });\n\n return new this.constructor(ordered);\n};\n\n//# sourceURL=webpack://collect/./dist/methods/sortKeys.js?");
  853. /***/ }),
  854. /***/ "./dist/methods/sortKeysDesc.js":
  855. /*!**************************************!*\
  856. !*** ./dist/methods/sortKeysDesc.js ***!
  857. \**************************************/
  858. /*! no static exports found */
  859. /***/ (function(module, exports, __webpack_require__) {
  860. "use strict";
  861. eval("\n\nmodule.exports = function sortKeysByDesc(valueOrFunction) {\n return this.sortKeys(valueOrFunction).reverse();\n};\n\n//# sourceURL=webpack://collect/./dist/methods/sortKeysDesc.js?");
  862. /***/ }),
  863. /***/ "./dist/methods/splice.js":
  864. /*!********************************!*\
  865. !*** ./dist/methods/splice.js ***!
  866. \********************************/
  867. /*! no static exports found */
  868. /***/ (function(module, exports, __webpack_require__) {
  869. "use strict";
  870. eval("\n\nmodule.exports = function splice(index, limit, replace) {\n var slicedCollection = this.slice(index, limit);\n\n this.items = this.diff(slicedCollection.all()).all();\n\n if (Array.isArray(replace)) {\n for (var iterator = 0, length = replace.length; iterator < length; iterator += 1) {\n this.items.splice(index + iterator, 0, replace[iterator]);\n }\n }\n\n return slicedCollection;\n};\n\n//# sourceURL=webpack://collect/./dist/methods/splice.js?");
  871. /***/ }),
  872. /***/ "./dist/methods/split.js":
  873. /*!*******************************!*\
  874. !*** ./dist/methods/split.js ***!
  875. \*******************************/
  876. /*! no static exports found */
  877. /***/ (function(module, exports, __webpack_require__) {
  878. "use strict";
  879. eval("\n\nmodule.exports = function split(numberOfGroups) {\n var itemsPerGroup = Math.round(this.items.length / numberOfGroups);\n\n var items = JSON.parse(JSON.stringify(this.items));\n var collection = [];\n\n for (var iterator = 0; iterator < numberOfGroups; iterator += 1) {\n collection.push(new this.constructor(items.splice(0, itemsPerGroup)));\n }\n\n return new this.constructor(collection);\n};\n\n//# sourceURL=webpack://collect/./dist/methods/split.js?");
  880. /***/ }),
  881. /***/ "./dist/methods/sum.js":
  882. /*!*****************************!*\
  883. !*** ./dist/methods/sum.js ***!
  884. \*****************************/
  885. /*! no static exports found */
  886. /***/ (function(module, exports, __webpack_require__) {
  887. "use strict";
  888. eval("\n\nvar values = __webpack_require__(/*! ../helpers/values */ \"./dist/helpers/values.js\");\n\nmodule.exports = function sum(key) {\n var items = values(this.items);\n\n var total = 0;\n\n if (key === undefined) {\n for (var i = 0, length = items.length; i < length; i += 1) {\n total += items[i];\n }\n } else if (typeof key === 'function') {\n for (var _i = 0, _length = items.length; _i < _length; _i += 1) {\n total += key(items[_i]);\n }\n } else {\n for (var _i2 = 0, _length2 = items.length; _i2 < _length2; _i2 += 1) {\n total += items[_i2][key];\n }\n }\n\n return total;\n};\n\n//# sourceURL=webpack://collect/./dist/methods/sum.js?");
  889. /***/ }),
  890. /***/ "./dist/methods/symbol.iterator.js":
  891. /*!*****************************************!*\
  892. !*** ./dist/methods/symbol.iterator.js ***!
  893. \*****************************************/
  894. /*! no static exports found */
  895. /***/ (function(module, exports, __webpack_require__) {
  896. "use strict";
  897. eval("\n\nmodule.exports = function SymbolIterator() {\n var _this = this;\n\n var index = -1;\n\n return {\n next: function next() {\n index += 1;\n\n return {\n value: _this.items[index],\n done: index >= _this.items.length\n };\n }\n };\n};\n\n//# sourceURL=webpack://collect/./dist/methods/symbol.iterator.js?");
  898. /***/ }),
  899. /***/ "./dist/methods/take.js":
  900. /*!******************************!*\
  901. !*** ./dist/methods/take.js ***!
  902. \******************************/
  903. /*! no static exports found */
  904. /***/ (function(module, exports, __webpack_require__) {
  905. "use strict";
  906. eval("\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\nmodule.exports = function take(length) {\n var _this = this;\n\n if (!Array.isArray(this.items) && _typeof(this.items) === 'object') {\n var keys = Object.keys(this.items);\n var slicedKeys = void 0;\n\n if (length < 0) {\n slicedKeys = keys.slice(length);\n } else {\n slicedKeys = keys.slice(0, length);\n }\n\n var collection = {};\n\n keys.forEach(function (prop) {\n if (slicedKeys.indexOf(prop) !== -1) {\n collection[prop] = _this.items[prop];\n }\n });\n\n return new this.constructor(collection);\n }\n\n if (length < 0) {\n return new this.constructor(this.items.slice(length));\n }\n\n return new this.constructor(this.items.slice(0, length));\n};\n\n//# sourceURL=webpack://collect/./dist/methods/take.js?");
  907. /***/ }),
  908. /***/ "./dist/methods/tap.js":
  909. /*!*****************************!*\
  910. !*** ./dist/methods/tap.js ***!
  911. \*****************************/
  912. /*! no static exports found */
  913. /***/ (function(module, exports, __webpack_require__) {
  914. "use strict";
  915. eval("\n\nmodule.exports = function tap(fn) {\n fn(this);\n\n return this;\n};\n\n//# sourceURL=webpack://collect/./dist/methods/tap.js?");
  916. /***/ }),
  917. /***/ "./dist/methods/times.js":
  918. /*!*******************************!*\
  919. !*** ./dist/methods/times.js ***!
  920. \*******************************/
  921. /*! no static exports found */
  922. /***/ (function(module, exports, __webpack_require__) {
  923. "use strict";
  924. eval("\n\nmodule.exports = function times(n, fn) {\n for (var iterator = 1; iterator <= n; iterator += 1) {\n this.items.push(fn(iterator));\n }\n\n return this;\n};\n\n//# sourceURL=webpack://collect/./dist/methods/times.js?");
  925. /***/ }),
  926. /***/ "./dist/methods/toArray.js":
  927. /*!*********************************!*\
  928. !*** ./dist/methods/toArray.js ***!
  929. \*********************************/
  930. /*! no static exports found */
  931. /***/ (function(module, exports, __webpack_require__) {
  932. "use strict";
  933. eval("\n\nmodule.exports = function toArray() {\n var collectionInstance = this.constructor;\n\n function iterate(list, collection) {\n var childCollection = [];\n\n if (list instanceof collectionInstance) {\n list.items.forEach(function (i) {\n return iterate(i, childCollection);\n });\n collection.push(childCollection);\n } else if (Array.isArray(list)) {\n list.forEach(function (i) {\n return iterate(i, childCollection);\n });\n collection.push(childCollection);\n } else {\n collection.push(list);\n }\n }\n\n if (Array.isArray(this.items)) {\n var collection = [];\n\n this.items.forEach(function (items) {\n iterate(items, collection);\n });\n\n return collection;\n }\n\n return this.values().all();\n};\n\n//# sourceURL=webpack://collect/./dist/methods/toArray.js?");
  934. /***/ }),
  935. /***/ "./dist/methods/toJson.js":
  936. /*!********************************!*\
  937. !*** ./dist/methods/toJson.js ***!
  938. \********************************/
  939. /*! no static exports found */
  940. /***/ (function(module, exports, __webpack_require__) {
  941. "use strict";
  942. eval("\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\nmodule.exports = function toJson() {\n if (_typeof(this.items) === 'object' && !Array.isArray(this.items)) {\n return JSON.stringify(this.all());\n }\n\n return JSON.stringify(this.toArray());\n};\n\n//# sourceURL=webpack://collect/./dist/methods/toJson.js?");
  943. /***/ }),
  944. /***/ "./dist/methods/transform.js":
  945. /*!***********************************!*\
  946. !*** ./dist/methods/transform.js ***!
  947. \***********************************/
  948. /*! no static exports found */
  949. /***/ (function(module, exports, __webpack_require__) {
  950. "use strict";
  951. eval("\n\nmodule.exports = function transform(fn) {\n var _this = this;\n\n if (Array.isArray(this.items)) {\n this.items = this.items.map(fn);\n } else {\n var collection = {};\n\n Object.keys(this.items).forEach(function (key) {\n collection[key] = fn(_this.items[key], key);\n });\n\n this.items = collection;\n }\n\n return this;\n};\n\n//# sourceURL=webpack://collect/./dist/methods/transform.js?");
  952. /***/ }),
  953. /***/ "./dist/methods/union.js":
  954. /*!*******************************!*\
  955. !*** ./dist/methods/union.js ***!
  956. \*******************************/
  957. /*! no static exports found */
  958. /***/ (function(module, exports, __webpack_require__) {
  959. "use strict";
  960. eval("\n\nmodule.exports = function union(object) {\n var _this = this;\n\n var collection = JSON.parse(JSON.stringify(this.items));\n\n Object.keys(object).forEach(function (prop) {\n if (_this.items[prop] === undefined) {\n collection[prop] = object[prop];\n }\n });\n\n return new this.constructor(collection);\n};\n\n//# sourceURL=webpack://collect/./dist/methods/union.js?");
  961. /***/ }),
  962. /***/ "./dist/methods/unique.js":
  963. /*!********************************!*\
  964. !*** ./dist/methods/unique.js ***!
  965. \********************************/
  966. /*! no static exports found */
  967. /***/ (function(module, exports, __webpack_require__) {
  968. "use strict";
  969. eval("\n\nmodule.exports = function unique(key) {\n var collection = void 0;\n\n if (key === undefined) {\n collection = this.items.filter(function (element, index, self) {\n return self.indexOf(element) === index;\n });\n } else {\n collection = [];\n\n var usedKeys = [];\n\n for (var iterator = 0, length = this.items.length; iterator < length; iterator += 1) {\n var uniqueKey = void 0;\n if (typeof key === 'function') {\n uniqueKey = key(this.items[iterator]);\n } else {\n uniqueKey = this.items[iterator][key];\n }\n\n if (usedKeys.indexOf(uniqueKey) === -1) {\n collection.push(this.items[iterator]);\n usedKeys.push(uniqueKey);\n }\n }\n }\n\n return new this.constructor(collection);\n};\n\n//# sourceURL=webpack://collect/./dist/methods/unique.js?");
  970. /***/ }),
  971. /***/ "./dist/methods/unless.js":
  972. /*!********************************!*\
  973. !*** ./dist/methods/unless.js ***!
  974. \********************************/
  975. /*! no static exports found */
  976. /***/ (function(module, exports, __webpack_require__) {
  977. "use strict";
  978. eval("\n\nmodule.exports = function when(value, fn, defaultFn) {\n if (!value) {\n fn(this);\n } else {\n defaultFn(this);\n }\n};\n\n//# sourceURL=webpack://collect/./dist/methods/unless.js?");
  979. /***/ }),
  980. /***/ "./dist/methods/unwrap.js":
  981. /*!********************************!*\
  982. !*** ./dist/methods/unwrap.js ***!
  983. \********************************/
  984. /*! no static exports found */
  985. /***/ (function(module, exports, __webpack_require__) {
  986. "use strict";
  987. eval("\n\nmodule.exports = function unwrap(value) {\n if (value instanceof this.constructor) {\n return value.all();\n }\n\n return value;\n};\n\n//# sourceURL=webpack://collect/./dist/methods/unwrap.js?");
  988. /***/ }),
  989. /***/ "./dist/methods/values.js":
  990. /*!********************************!*\
  991. !*** ./dist/methods/values.js ***!
  992. \********************************/
  993. /*! no static exports found */
  994. /***/ (function(module, exports, __webpack_require__) {
  995. "use strict";
  996. eval("\n\nvar getValues = __webpack_require__(/*! ../helpers/values */ \"./dist/helpers/values.js\");\n\nmodule.exports = function values() {\n return new this.constructor(getValues(this.items));\n};\n\n//# sourceURL=webpack://collect/./dist/methods/values.js?");
  997. /***/ }),
  998. /***/ "./dist/methods/when.js":
  999. /*!******************************!*\
  1000. !*** ./dist/methods/when.js ***!
  1001. \******************************/
  1002. /*! no static exports found */
  1003. /***/ (function(module, exports, __webpack_require__) {
  1004. "use strict";
  1005. eval("\n\nmodule.exports = function when(value, fn, defaultFn) {\n if (value) {\n return fn(this, value);\n }\n\n if (defaultFn) {\n return defaultFn(this, value);\n }\n\n return this;\n};\n\n//# sourceURL=webpack://collect/./dist/methods/when.js?");
  1006. /***/ }),
  1007. /***/ "./dist/methods/whenEmpty.js":
  1008. /*!***********************************!*\
  1009. !*** ./dist/methods/whenEmpty.js ***!
  1010. \***********************************/
  1011. /*! no static exports found */
  1012. /***/ (function(module, exports, __webpack_require__) {
  1013. "use strict";
  1014. eval("\n\nmodule.exports = function whenEmpty(fn, defaultFn) {\n if (Array.isArray(this.items) && !this.items.length) {\n return fn(this);\n }if (!Object.keys(this.items).length) {\n return fn(this);\n }\n\n if (defaultFn !== undefined) {\n if (Array.isArray(this.items) && this.items.length) {\n return defaultFn(this);\n }if (Object.keys(this.items).length) {\n return defaultFn(this);\n }\n }\n\n return this;\n};\n\n//# sourceURL=webpack://collect/./dist/methods/whenEmpty.js?");
  1015. /***/ }),
  1016. /***/ "./dist/methods/whenNotEmpty.js":
  1017. /*!**************************************!*\
  1018. !*** ./dist/methods/whenNotEmpty.js ***!
  1019. \**************************************/
  1020. /*! no static exports found */
  1021. /***/ (function(module, exports, __webpack_require__) {
  1022. "use strict";
  1023. eval("\n\nmodule.exports = function whenNotEmpty(fn, defaultFn) {\n if (Array.isArray(this.items) && this.items.length) {\n return fn(this);\n }if (Object.keys(this.items).length) {\n return fn(this);\n }\n\n if (defaultFn !== undefined) {\n if (Array.isArray(this.items) && !this.items.length) {\n return defaultFn(this);\n }if (!Object.keys(this.items).length) {\n return defaultFn(this);\n }\n }\n\n return this;\n};\n\n//# sourceURL=webpack://collect/./dist/methods/whenNotEmpty.js?");
  1024. /***/ }),
  1025. /***/ "./dist/methods/where.js":
  1026. /*!*******************************!*\
  1027. !*** ./dist/methods/where.js ***!
  1028. \*******************************/
  1029. /*! no static exports found */
  1030. /***/ (function(module, exports, __webpack_require__) {
  1031. "use strict";
  1032. eval("\n\nvar values = __webpack_require__(/*! ../helpers/values */ \"./dist/helpers/values.js\");\nvar nestedValue = __webpack_require__(/*! ../helpers/nestedValue */ \"./dist/helpers/nestedValue.js\");\n\nmodule.exports = function where(key, operator, value) {\n var comparisonOperator = operator;\n var comparisonValue = value;\n\n var items = values(this.items);\n\n if (operator === undefined || operator === true) {\n return new this.constructor(items.filter(function (item) {\n return nestedValue(item, key);\n }));\n }\n\n if (operator === false) {\n return new this.constructor(items.filter(function (item) {\n return !nestedValue(item, key);\n }));\n }\n\n if (value === undefined) {\n comparisonValue = operator;\n comparisonOperator = '===';\n }\n\n var collection = items.filter(function (item) {\n switch (comparisonOperator) {\n case '==':\n return nestedValue(item, key) === Number(comparisonValue) || nestedValue(item, key) === comparisonValue.toString();\n\n default:\n case '===':\n return nestedValue(item, key) === comparisonValue;\n\n case '!=':\n case '<>':\n return nestedValue(item, key) !== Number(comparisonValue) && nestedValue(item, key) !== comparisonValue.toString();\n\n case '!==':\n return nestedValue(item, key) !== comparisonValue;\n\n case '<':\n return nestedValue(item, key) < comparisonValue;\n\n case '<=':\n return nestedValue(item, key) <= comparisonValue;\n\n case '>':\n return nestedValue(item, key) > comparisonValue;\n\n case '>=':\n return nestedValue(item, key) >= comparisonValue;\n }\n });\n\n return new this.constructor(collection);\n};\n\n//# sourceURL=webpack://collect/./dist/methods/where.js?");
  1033. /***/ }),
  1034. /***/ "./dist/methods/whereBetween.js":
  1035. /*!**************************************!*\
  1036. !*** ./dist/methods/whereBetween.js ***!
  1037. \**************************************/
  1038. /*! no static exports found */
  1039. /***/ (function(module, exports, __webpack_require__) {
  1040. "use strict";
  1041. eval("\n\nmodule.exports = function whereBetween(key, values) {\n return this.where(key, '>=', values[0]).where(key, '<=', values[values.length - 1]);\n};\n\n//# sourceURL=webpack://collect/./dist/methods/whereBetween.js?");
  1042. /***/ }),
  1043. /***/ "./dist/methods/whereIn.js":
  1044. /*!*********************************!*\
  1045. !*** ./dist/methods/whereIn.js ***!
  1046. \*********************************/
  1047. /*! no static exports found */
  1048. /***/ (function(module, exports, __webpack_require__) {
  1049. "use strict";
  1050. eval("\n\nvar extractValues = __webpack_require__(/*! ../helpers/values */ \"./dist/helpers/values.js\");\nvar nestedValue = __webpack_require__(/*! ../helpers/nestedValue */ \"./dist/helpers/nestedValue.js\");\n\nmodule.exports = function whereIn(key, values) {\n var items = extractValues(values);\n\n var collection = this.items.filter(function (item) {\n return items.indexOf(nestedValue(item, key)) !== -1;\n });\n\n return new this.constructor(collection);\n};\n\n//# sourceURL=webpack://collect/./dist/methods/whereIn.js?");
  1051. /***/ }),
  1052. /***/ "./dist/methods/whereInstanceOf.js":
  1053. /*!*****************************************!*\
  1054. !*** ./dist/methods/whereInstanceOf.js ***!
  1055. \*****************************************/
  1056. /*! no static exports found */
  1057. /***/ (function(module, exports, __webpack_require__) {
  1058. "use strict";
  1059. eval("\n\nmodule.exports = function whereInstanceOf(type) {\n return this.filter(function (item) {\n return item instanceof type;\n });\n};\n\n//# sourceURL=webpack://collect/./dist/methods/whereInstanceOf.js?");
  1060. /***/ }),
  1061. /***/ "./dist/methods/whereNotBetween.js":
  1062. /*!*****************************************!*\
  1063. !*** ./dist/methods/whereNotBetween.js ***!
  1064. \*****************************************/
  1065. /*! no static exports found */
  1066. /***/ (function(module, exports, __webpack_require__) {
  1067. "use strict";
  1068. eval("\n\nvar nestedValue = __webpack_require__(/*! ../helpers/nestedValue */ \"./dist/helpers/nestedValue.js\");\n\nmodule.exports = function whereNotBetween(key, values) {\n return this.filter(function (item) {\n return nestedValue(item, key) < values[0] || nestedValue(item, key) > values[values.length - 1];\n });\n};\n\n//# sourceURL=webpack://collect/./dist/methods/whereNotBetween.js?");
  1069. /***/ }),
  1070. /***/ "./dist/methods/whereNotIn.js":
  1071. /*!************************************!*\
  1072. !*** ./dist/methods/whereNotIn.js ***!
  1073. \************************************/
  1074. /*! no static exports found */
  1075. /***/ (function(module, exports, __webpack_require__) {
  1076. "use strict";
  1077. eval("\n\nvar extractValues = __webpack_require__(/*! ../helpers/values */ \"./dist/helpers/values.js\");\nvar nestedValue = __webpack_require__(/*! ../helpers/nestedValue */ \"./dist/helpers/nestedValue.js\");\n\nmodule.exports = function whereNotIn(key, values) {\n var items = extractValues(values);\n\n var collection = this.items.filter(function (item) {\n return items.indexOf(nestedValue(item, key)) === -1;\n });\n\n return new this.constructor(collection);\n};\n\n//# sourceURL=webpack://collect/./dist/methods/whereNotIn.js?");
  1078. /***/ }),
  1079. /***/ "./dist/methods/wrap.js":
  1080. /*!******************************!*\
  1081. !*** ./dist/methods/wrap.js ***!
  1082. \******************************/
  1083. /*! no static exports found */
  1084. /***/ (function(module, exports, __webpack_require__) {
  1085. "use strict";
  1086. eval("\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\nmodule.exports = function wrap(value) {\n if (value instanceof this.constructor) {\n return value;\n }\n\n if ((typeof value === 'undefined' ? 'undefined' : _typeof(value)) === 'object') {\n return new this.constructor(value);\n }\n\n return new this.constructor([value]);\n};\n\n//# sourceURL=webpack://collect/./dist/methods/wrap.js?");
  1087. /***/ }),
  1088. /***/ "./dist/methods/zip.js":
  1089. /*!*****************************!*\
  1090. !*** ./dist/methods/zip.js ***!
  1091. \*****************************/
  1092. /*! no static exports found */
  1093. /***/ (function(module, exports, __webpack_require__) {
  1094. "use strict";
  1095. eval("\n\nmodule.exports = function zip(array) {\n var _this = this;\n\n var values = array;\n\n if (values instanceof this.constructor) {\n values = values.all();\n }\n\n var collection = this.items.map(function (item, index) {\n return new _this.constructor([item, values[index]]);\n });\n\n return new this.constructor(collection);\n};\n\n//# sourceURL=webpack://collect/./dist/methods/zip.js?");
  1096. /***/ }),
  1097. /***/ "./node_modules/process/browser.js":
  1098. /*!*****************************************!*\
  1099. !*** ./node_modules/process/browser.js ***!
  1100. \*****************************************/
  1101. /*! no static exports found */
  1102. /***/ (function(module, exports) {
  1103. eval("// shim for using process in browser\nvar process = module.exports = {};\n\n// cached from whatever global is present so that test runners that stub it\n// don't break things. But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals. It's inside a\n// function because try/catches deoptimize in certain engines.\n\nvar cachedSetTimeout;\nvar cachedClearTimeout;\n\nfunction defaultSetTimout() {\n throw new Error('setTimeout has not been defined');\n}\nfunction defaultClearTimeout () {\n throw new Error('clearTimeout has not been defined');\n}\n(function () {\n try {\n if (typeof setTimeout === 'function') {\n cachedSetTimeout = setTimeout;\n } else {\n cachedSetTimeout = defaultSetTimout;\n }\n } catch (e) {\n cachedSetTimeout = defaultSetTimout;\n }\n try {\n if (typeof clearTimeout === 'function') {\n cachedClearTimeout = clearTimeout;\n } else {\n cachedClearTimeout = defaultClearTimeout;\n }\n } catch (e) {\n cachedClearTimeout = defaultClearTimeout;\n }\n} ())\nfunction runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n //normal enviroments in sane situations\n return setTimeout(fun, 0);\n }\n // if setTimeout wasn't available but was latter defined\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedSetTimeout(fun, 0);\n } catch(e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedSetTimeout.call(null, fun, 0);\n } catch(e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n return cachedSetTimeout.call(this, fun, 0);\n }\n }\n\n\n}\nfunction runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n //normal enviroments in sane situations\n return clearTimeout(marker);\n }\n // if clearTimeout wasn't available but was latter defined\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedClearTimeout(marker);\n } catch (e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedClearTimeout.call(null, marker);\n } catch (e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return cachedClearTimeout.call(this, marker);\n }\n }\n\n\n\n}\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n draining = false;\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n if (queue.length) {\n drainQueue();\n }\n}\n\nfunction drainQueue() {\n if (draining) {\n return;\n }\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n\n var len = queue.length;\n while(len) {\n currentQueue = queue;\n queue = [];\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n queueIndex = -1;\n len = queue.length;\n }\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n}\n\nprocess.nextTick = function (fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n queue.push(new Item(fun, args));\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n};\n\n// v8 likes predictible objects\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\nprocess.versions = {};\n\nfunction noop() {}\n\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\nprocess.prependListener = noop;\nprocess.prependOnceListener = noop;\n\nprocess.listeners = function (name) { return [] }\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n};\n\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\nprocess.umask = function() { return 0; };\n\n\n//# sourceURL=webpack://collect/./node_modules/process/browser.js?");
  1104. /***/ })
  1105. /******/ });