my-idlers/node_modules/collect.js/build/collect.min.js

1 line
41 KiB
JavaScript
Raw Normal View History

var collect=function(t){var r={};function e(n){if(r[n])return r[n].exports;var i=r[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,e),i.l=!0,i.exports}return e.m=t,e.c=r,e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{enumerable:!0,get:n})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,r){if(1&r&&(t=e(t)),8&r)return t;if(4&r&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(e.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&r&&"string"!=typeof t)for(var i in t)e.d(n,i,function(r){return t[r]}.bind(null,i));return n},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,r){return Object.prototype.hasOwnProperty.call(t,r)},e.p="",e(e.s=10)}([function(t,r,e){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports={isArray:function(t){return Array.isArray(t)},isObject:function(t){return"object"===(void 0===t?"undefined":n(t))&&!1===Array.isArray(t)&&null!==t},isFunction:function(t){return"function"==typeof t}}},function(t,r,e){"use strict";function n(t){if(Array.isArray(t)){for(var r=0,e=Array(t.length);r<t.length;r++)e[r]=t[r];return e}return Array.from(t)}t.exports=function(t){var r=[];return Array.isArray(t)?r.push.apply(r,n(t)):"Collection"===t.constructor.name?r.push.apply(r,n(t.all())):Object.keys(t).forEach((function(e){return r.push(t[e])})),r}},function(t,r,e){"use strict";t.exports=function(t,r){try{return r.split(".").reduce((function(t,r){return t[r]}),t)}catch(r){return t}}},function(t,r,e){"use strict";t.exports=function(t){return Array.isArray(t[0])?t[0]:t}},function(t,r,e){"use strict";var n=e(0).isFunction;t.exports=function(t){return void 0===t?this.sum()/this.items.length:n(t)?new this.constructor(this.items).sum(t)/this.items.length:new this.constructor(this.items).pluck(t).sum()/this.items.length}},function(t,r,e){"use strict";t.exports=function(t){var r,e=void 0;Array.isArray(t)?(r=e=[]).push.apply(r,function(t){if(Array.isArray(t)){for(var r=0,e=Array(t.length);r<t.length;r++)e[r]=t[r];return e}return Array.from(t)}(t)):(e={},Object.keys(t).forEach((function(r){e[r]=t[r]})));return e}},function(t,r,e){"use strict";var n=e(1),i=e(0).isFunction;t.exports=function(t,r){if(void 0!==r)return Array.isArray(this.items)?this.items.filter((function(e){return void 0!==e[t]&&e[t]===r})).length>0:void 0!==this.items[t]&&this.items[t]===r;if(i(t))return this.items.filter((function(r,e){return t(r,e)})).length>0;if(Array.isArray(this.items))return-1!==this.items.indexOf(t);var e=n(this.items);return e.push.apply(e,function(t){if(Array.isArray(t)){for(var r=0,e=Array(t.length);r<t.length;r++)e[r]=t[r];return e}return Array.from(t)}(Object.keys(this.items))),-1!==e.indexOf(t)}},function(t,r,e){"use strict";var n=e(3);t.exports=function(t){for(var r=arguments.length,e=Array(r>1?r-1:0),i=1;i<r;i++)e[i-1]=arguments[i];n(e).forEach((function(r){delete t[r]}))}},function(t,r,e){"use strict";t.exports=function(t,r){if(Array.isArray(this.items)&&this.items.length)return t(this);if(Object.keys(this.items).length)return t(this);if(void 0!==r){if(Array.isArray(this.items)&&!this.items.length)return r(this);if(!Object.keys(this.items).length)return r(this)}return this}},function(t,r,e){"use strict";t.exports=function(t,r){if(Array.isArray(this.items)&&!this.items.length)return t(this);if(!Object.keys(this.items).length)return t(this);if(void 0!==r){if(Array.isArray(this.items)&&this.items.length)return r(this);if(Object.keys(this.items).length)return r(this)}return this}},function(t,r,e){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.pr