Add fp files.

This commit is contained in:
John-David Dalton
2015-10-19 21:21:21 -07:00
parent 661e9b08b6
commit bdb5e4642f
14 changed files with 901 additions and 1 deletions

3671
dist/lodash.core.js vendored Normal file

File diff suppressed because it is too large Load Diff

30
dist/lodash.core.min.js vendored Normal file
View File

@@ -0,0 +1,30 @@
/**
* @license
* lodash 3.10.1 (Custom Build) lodash.com/license | Underscore.js 1.8.3 underscorejs.org/LICENSE
* Build: `lodash core exports="global,amd" -o ./lodash.core.js`
*/
;(function(){function n(n,t,r,e){for(var u=-1,o=n.length,i=e,c=i;++u<o;){var f=n[u],a=+t(f);(r(a,i)||a===e&&a===c)&&(i=a,c=f)}return c}function t(n,t){for(var r=-1,e=t.length,u=n.length;++r<e;)n[u+r]=t[r];return n}function r(n,t,r){var e;return r(n,function(n,r,u){return t(n,r,u)?(e=n,false):void 0}),e}function e(n,t,r,e,u){return u(n,function(n,u,o){r=e?(e=false,n):t(r,n,u,o)}),r}function u(n,t){return O(t,function(t){return n[t]})}function o(n){return n&&n.Object===Object?n:null}function i(n,t,r,e){r||(r={});
for(var u=-1,o=t.length;++u<o;){var i=t[u],c=e?e(r[i],n[i],i,r,n):n[i],f=r[i];(c===c?c===f:f!==f)&&(c!==en||i in r)||(r[i]=c)}return r}function c(n){return ln[n]}function f(n,t){return n===en?t:n}function a(n){var t=false;if(null!=n&&typeof n.toString!="function")try{t=!!(n+"")}catch(r){}return t}function l(n,t){return n=typeof n=="number"||an.test(n)?+n:-1,n>-1&&0==n%1&&(null==t?9007199254740991:t)>n}function p(n){return typeof n=="number"&&n>-1&&0==n%1&&9007199254740991>=n}function s(n){if(K(n)&&!qn(n)){
if(n instanceof h)return n;if(mn.call(n,"__wrapped__")){var t=new h(n.__wrapped__,n.__chain__);return t.__actions__=Dn(n.__actions__),t}}return new h(n)}function h(n,t){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!t}function y(n,t,r){if(typeof n!="function")throw new TypeError("Expected a function");return setTimeout(function(){n.apply(en,r)},t)}function v(n,t){var r=true;return Fn(n,function(n,e,u){return r=!!t(n,e,u)}),r}function _(n,t){var r=[];return Fn(n,function(n,e,u){t(n,e,u)&&r.push(n);
}),r}function g(n,r,e,u){u||(u=[]);for(var o=-1,i=n.length;++o<i;){var c=n[o];H(c)&&V(c)&&(e||qn(c)||U(c))?r?g(c,r,e,u):t(u,c):e||(u[u.length]=c)}return u}function b(n,t){return n&&Bn(n,t,X)}function j(n,t){return _(t,function(t){return G(n[t])})}function m(n,t,r,e,u,o){if(n===t)n=true;else if(null==n||null==t||!H(n)&&!K(t))n=n!==n&&t!==t;else n:{var i=qn(n),c=qn(t),f="[object Array]",l="[object Array]";i||(f=wn.call(n),"[object Arguments]"==f&&(f="[object Object]")),c||(l=wn.call(t),"[object Arguments]"==l&&(l="[object Object]"));
var p="[object Object]"==f&&!a(n),c="[object Object]"==l&&!a(t),l=f==l;if(!l||i||p){if(!(2&e)&&(f=p&&mn.call(n,"__wrapped__"),c=c&&mn.call(t,"__wrapped__"),f||c)){n=m(f?n.value():n,c?t.value():t,r,e,u,o);break n}if(l){for(u||(u=[]),o||(o=[]),f=u.length;f--;)if(u[f]==n){n=o[f]==t;break n}u.push(n),o.push(t),n=(i?D:I)(n,t,m,r,e,u,o),u.pop(),o.pop()}else n=false}else n=R(n,t,f)}return n}function d(n){var t=typeof n;return"function"==t?n:null==n?tn:("object"==t?E:A)(n)}function w(n){n=null==n?n:Object(n);
var t,r=[];for(t in n)r.push(t);return r}function O(n,t){var r=-1,e=V(n)?Array(n.length):[];return Fn(n,function(n,u,o){e[++r]=t(n,u,o)}),e}function E(n){var t=X(n),r=t.length;return function(e){if(null==e)return!r;for(e=Object(e);r--;){var u=t[r];if(!(u in e&&m(n[u],e[u],en,true)))return false}return true}}function x(n,t){return n=Object(n),e(t,function(t,r){return r in n&&(t[r]=n[r]),t},{})}function A(n){return function(t){return null==t?en:t[n]}}function k(n,t,r){var e=-1,u=n.length;for(t=null==t?0:An(t)||0,
0>t&&(t=-t>u?0:u+t),r=r===en||r>u?u:An(r)||0,0>r&&(r+=u),u=t>r?0:r-t>>>0,t>>>=0,r=Array(u);++e<u;)r[e]=n[e+t];return r}function N(n,t){var r;return Fn(n,function(n,e,u){return r=t(n,e,u),!r}),!!r}function S(n,r){return e(r,function(n,r){return r.func.apply(r.thisArg,t([n],r.args))},n)}function T(n){return J(function(t,r){var e=-1,u=null==t?0:r.length,o=u>1?r[u-1]:en,o=typeof o=="function"?(u--,o):en;for(t=Object(t);++e<u;){var i=r[e];i&&n(t,i,o)}return t})}function F(n){return function(){var t=arguments,r=Tn(n.prototype),t=n.apply(r,t);
return H(t)?t:r}}function B(n,t,r){function e(){for(var o=-1,i=arguments.length,c=-1,f=r.length,a=Array(f+i);++c<f;)a[c]=r[c];for(;i--;)a[c++]=arguments[++o];return(this&&this!==_n&&this instanceof e?u:n).apply(t,a)}if(typeof n!="function")throw new TypeError("Expected a function");var u=F(n);return e}function D(n,t,r,e,u,o,i){var c=-1,f=1&u,a=n.length,l=t.length;if(a!=l&&!(2&u&&l>a))return false;for(;++c<a;){var p=n[c],l=t[c];if(Z!==en){if(Z)continue;return false}if(f){if(!N(t,function(n){return p===n||r(p,n,e,u,o,i);
}))return false}else if(p!==l&&!r(p,l,e,u,o,i))return false}return true}function R(n,t,r){switch(r){case"[object Boolean]":case"[object Date]":return+n==+t;case"[object Error]":return n.name==t.name&&n.message==t.message;case"[object Number]":return n!=+n?t!=+t:n==+t;case"[object RegExp]":case"[object String]":return n==t+""}return false}function I(n,t,r,e,u,o,i){var c=2&u,f=1&u,a=X(n),l=a.length,p=X(t);if(l!=p.length&&!c)return false;for(var s=l;s--;){var h=a[s];if(!(c?h in t:mn.call(t,h))||!f&&h!=p[s])return false}for(;++s<l;){
if(h=a[s],f=n[h],p=t[h],Z===en?f!==p&&!r(f,p,e,u,o,i):!Z)return false;c||(c="constructor"==h)}return c||(r=n.constructor,e=t.constructor,!(r!=e&&"constructor"in n&&"constructor"in t)||typeof r=="function"&&r instanceof r&&typeof e=="function"&&e instanceof e)?true:false}function $(n){var t=n?n.length:0;n=t=t&&p(t)&&(qn(n)||U(n)||Q(n))&&t||0;for(var t=String,r=-1,e=Array(n);++r<n;)e[r]=t(r);return e}function q(n){var t=n&&n.constructor;return n===(typeof t=="function"&&t.prototype||bn)}function M(n,t){return Fn(n,typeof t=="function"?t:tn);
}function z(n){return null==n?0:(n=V(n)?n:X(n),n.length)}function C(n,t){var r;if(typeof t!="function")throw new TypeError("Expected a function");return n=An(n)||0,function(){return 0<--n&&(r=t.apply(this,arguments)),1>=n&&(t=en),r}}function J(n){var t;if(typeof n!="function")throw new TypeError("Expected a function");return t=Sn(t===en?n.length-1:An(t)||0,0),function(){for(var r=arguments,e=-1,u=Sn(r.length-t,0),o=Array(u);++e<u;)o[e]=r[t+e];for(u=Array(t+1),e=-1;++e<t;)u[e]=r[e];return u[t]=o,n.apply(this,u);
}}function P(n,t){return n>t}function U(n){return K(n)&&V(n)&&mn.call(n,"callee")&&(!xn.call(n,"callee")||"[object Arguments]"==wn.call(n))}function V(n){return null!=n&&!(typeof n=="function"&&"[object Function]"==wn.call(n))&&p(Rn(n))}function G(n){return H(n)&&"[object Function]"==wn.call(n)}function H(n){var t=typeof n;return!!n&&("object"==t||"function"==t)}function K(n){return!!n&&typeof n=="object"}function L(n){return typeof n=="number"||K(n)&&"[object Number]"==wn.call(n)}function Q(n){return typeof n=="string"||K(n)&&"[object String]"==wn.call(n);
}function W(n,t){return t>n}function X(n){var t=q(n);if(!t&&!V(n))return Nn(Object(n));var r,e=$(n),u=e.length,o=!!u;for(r in n)!mn.call(n,r)||o&&l(r,u)||t&&"constructor"==r||e.push(r);return e}function Y(n){for(var t=-1,r=q(n),e=w(n),u=e.length,o=$(n),i=o.length,c=!!i;++t<u;){var f=e[t];c&&l(f,i)||"constructor"==f&&(r||!mn.call(n,f))||o.push(f)}return o}function Z(n,t,r){return t=null==n?en:n[t],t===en&&(t=r),G(t)?t.call(n):t}function nn(n){return n?u(n,X(n)):[]}function tn(n){return n}function rn(n,r,e){
var u=X(r),o=j(r,u);null!=e||H(r)&&(o.length||!u.length)||(e=r,r=n,n=this,o=j(r,X(r)));var i=H(e)&&"chain"in e?e.chain:true,c=G(n);return Fn(o,function(e){var u=r[e];n[e]=u,c&&(n.prototype[e]=function(){var r=this.__chain__;if(i||r){var e=n(this.__wrapped__);return(e.__actions__=Dn(this.__actions__)).push({func:u,args:arguments,thisArg:n}),e.__chain__=r,e}return u.apply(n,t([this.value()],arguments))})}),n}var en,un=1/-0,on=1/0,cn=/[&<>"'`]/g,fn=RegExp(cn.source),an=/^\d+$/,ln={"&":"&amp;","<":"&lt;",
">":"&gt;",'"':"&quot;","'":"&#39;","`":"&#96;"},pn={"function":true,object:true},sn=pn[typeof module]&&module&&!module.nodeType?module:null,hn=o(pn[typeof self]&&self),yn=o(pn[typeof window]&&window),vn=o(pn[typeof this]&&this),_n=o((pn[typeof exports]&&exports&&!exports.nodeType?exports:null)&&sn&&typeof global=="object"&&global)||yn!==(vn&&vn.window)&&yn||hn||vn||Function("return this")(),gn=Array.prototype,bn=Object.prototype,jn=String.prototype,mn=bn.hasOwnProperty,dn=0,wn=bn.toString,On=_n._,En=(pn=_n.f)?pn.g:en,xn=bn.propertyIsEnumerable,An=Math.floor,kn=_n.isFinite,Nn=Object.keys,Sn=Math.max,Tn=function(){
function n(){}return function(t){if(H(t)){n.prototype=t;var r=new n;n.prototype=en}return r||{}}}(),Fn=function(n,t){return function(r,e){if(null==r)return r;if(!V(r))return n(r,e);for(var u=r.length,o=t?u:-1,i=Object(r);(t?o--:++o<u)&&false!==e(i[o],o,i););return r}}(b),Bn=function(n){return function(t,r,e){var u=Object(t);e=e(t);for(var o=e.length,i=n?o:-1;n?i--:++i<o;){var c=e[i];if(false===r(u[c],c,u))break}return t}}();En&&!xn.call({valueOf:1},"valueOf")&&(w=function(n){n=En(n);for(var t,r=[];!(t=n.next()).done;)r.push(t.value);
return r});var Dn=k,Rn=A("length");J(function(n){return n=g(n),this.thru(function(n){return n=qn(n)?n:[Object(n)],t(Dn(n),nn)})});var pn=J(function(n,t,r){var e=typeof t=="function";return O(n,function(n){var u=e?t:n[t];return null==u?u:u.apply(n,r)})}),sn=Date.now,vn=J(function(n,t,r){return B(n,t,r)}),In=J(function(n,t){return y(n,1,t)}),$n=J(function(n,t,r){return y(n,t,r)}),qn=Array.isArray,Mn=J(function(n){return n.push(en,f),Cn.apply(en,n)}),zn=T(function(n,t){var r=Y(t);i(t,r,n)}),Cn=T(function(n,t,r){
i(t,Y(t),n,r)}),Jn=J(function(n,t){return null==n?{}:x(n,g(t))});h.prototype=Tn(s.prototype),h.prototype.constructor=h,s.before=C,s.bind=vn,s.chain=function(n){return n=s(n),n.__chain__=true,n},s.compact=function(n){return _(n,Boolean)},s.defaults=Mn,s.defer=In,s.delay=$n,s.extend=zn,s.filter=function(n,t){return _(n,d(t))},s.flatten=function(n){return n&&n.length?g(n):[]},s.flattenDeep=function(n){return n&&n.length?g(n,true):[]},s.functions=function(n){return null==n?[]:j(n,Y(n))},s.invoke=pn,s.iteratee=d,
s.keys=X,s.keysIn=Y,s.map=function(n,t){return O(n,d(t))},s.mixin=rn,s.negate=function(n){if(typeof n!="function")throw new TypeError("Expected a function");return function(){return!n.apply(this,arguments)}},s.once=function(n){return C(2,n)},s.pick=Jn,s.slice=function(n,t,r){return n&&n.length?k(n,t,r):[]},s.sortBy=function(n,t){var r=0;return t=d(t),O(O(n,function(n,e,u){return{c:n,b:r++,a:t(n,e,u)}}).sort(function(n,t){var r;n:{r=n.a;var e=t.a;if(r!==e){var u=null===r,o=r===en,i=r===r,c=null===e,f=e===en,a=e===e;
if(r>e&&!c||!i||u&&!f&&a||o&&a){r=1;break n}if(e>r&&!u||!a||c&&!o&&i||f&&i){r=-1;break n}}r=0}return r||n.b-t.b}),A("c"))},s.tap=function(n,t){return t(n),n},s.thru=function(n,t){return t(n)},s.toArray=function(n){return V(n)?n.length?Dn(n):[]:nn(n)},s.values=nn,s.each=M,rn(s,s),s.clone=function(n){if(H(n))if(qn(n))n=Dn(n);else{var t=X(n);n=i(n,t,void 0)}return n},s.escape=function(n){return(n=null==n?"":n+"")&&fn.test(n)?n.replace(cn,c):n},s.every=function(n,t,r){return t=r?en:t,v(n,d(t))},s.find=function(n,t){
return r(n,d(t),Fn)},s.first=function(n){return n?n[0]:en},s.forEach=M,s.has=function(n,t){return null!=n&&mn.call(n,t)},s.identity=tn,s.indexOf=function(n,t,r){var e=n?n.length:0;r=typeof r=="number"?0>r?Sn(e+r,0):r:0,r=(r||0)-1;for(var u=t===t;++r<e;){var o=n[r];if(u?o===t:o!==o)return r}return-1},s.isArguments=U,s.isArray=qn,s.isBoolean=function(n){return true===n||false===n||K(n)&&"[object Boolean]"==wn.call(n)},s.isDate=function(n){return K(n)&&"[object Date]"==wn.call(n)},s.isEmpty=function(n){return!K(n)||G(n.splice)?!z(n):!X(n).length;
},s.isEqual=function(n,t){return m(n,t)},s.isError=function(n){return K(n)&&typeof n.message=="string"&&"[object Error]"==wn.call(n)},s.isFinite=function(n){return typeof n=="number"&&kn(n)},s.isFunction=G,s.isNaN=function(n){return L(n)&&n!=+n},s.isNil=function(n){return null==n},s.isNull=function(n){return null===n},s.isNumber=L,s.isObject=H,s.isRegExp=function(n){return H(n)&&"[object RegExp]"==wn.call(n)},s.isString=Q,s.isUndefined=function(n){return n===en},s.last=function(n){var t=n?n.length:0;
return t?n[t-1]:en},s.max=function(t){return t&&t.length?n(t,tn,P,un):un},s.min=function(t){return t&&t.length?n(t,tn,W,on):on},s.noConflict=function(){return _n._=On,this},s.noop=function(){},s.now=sn,s.reduce=function(n,t,r){return e(n,d(t),r,3>arguments.length,Fn)},s.result=Z,s.size=z,s.some=function(n,t,r){return t=r?en:t,N(n,d(t))},s.uniqueId=function(n){var t=++dn;return(null==n?"":n+"")+t},rn(s,function(){var n={};return b(s,function(t,r){s.prototype[r]||(n[r]=t)}),n}(),{chain:false}),s.VERSION="3.10.1",
Fn("join pop push replace reverse shift sort splice split unshift".split(" "),function(n){var t=(/^(?:replace|split)$/.test(n)?jn:gn)[n],r=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",e=/^(?:join|pop|replace|shift)$/.test(n);s.prototype[n]=function(){var n=arguments;return e&&!this.__chain__?t.apply(this.value(),n):this[r](function(r){return t.apply(r,n)})}}),s.prototype.run=s.prototype.toJSON=s.prototype.valueOf=s.prototype.value=function(){return S(this.__wrapped__,this.__actions__)},(yn||hn||{})._=s,
typeof define=="function"&&typeof define.amd=="object"&&define.amd? define(function(){return s}):_n._=s}).call(this);

425
dist/lodash.fp.js vendored Normal file
View File

@@ -0,0 +1,425 @@
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define([], factory);
else if(typeof exports === 'object')
exports["fp"] = factory();
else
root["fp"] = factory();
})(this, function() {
return /******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ return installedModules[moduleId].exports;
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ exports: {},
/******/ id: moduleId,
/******/ loaded: false
/******/ };
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/ // Flag the module as loaded
/******/ module.loaded = true;
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "";
/******/ // Load entry module and return exports
/******/ return __webpack_require__(0);
/******/ })
/************************************************************************/
/******/ ([
/* 0 */
/***/ function(module, exports, __webpack_require__) {
var baseConvert = __webpack_require__(1);
/**
* Converts `lodash` to an auto-curried iteratee-first data-last version.
*
* @param {Function} lodash The lodash function.
* @returns {Function} Returns the converted lodash function.
*/
function bowerConvert(lodash) {
return baseConvert(lodash, lodash);
}
module.exports = bowerConvert;
/***/ },
/* 1 */
/***/ function(module, exports, __webpack_require__) {
var mapping = __webpack_require__(2),
mutateMap = mapping.mutateMap;
/**
* The base implementation of `convert` which accepts a `util` object of methods
* required to perform conversions.
*
* @param {Object} util The util object.
* @param {string} name The name of the function to wrap.
* @param {Function} func The function to wrap.
* @returns {Function|Object} Returns the converted function or object.
*/
function baseConvert(util, name, func) {
if (!func) {
func = name;
name = null;
}
if (func == null) {
throw new TypeError;
}
var isLib = name == null && typeof func.VERSION == 'string';
var _ = isLib ? func : {
'ary': util.ary,
'curry': util.curry,
'forEach': util.forEach,
'isFunction': util.isFunction,
'iteratee': util.iteratee,
'keys': util.keys,
'rearg': util.rearg
};
var ary = _.ary,
curry = _.curry,
each = _.forEach,
isFunction = _.isFunction,
keys = _.keys,
rearg = _.rearg;
var baseAry = function(func, n) {
return function() {
var args = arguments,
length = Math.min(args.length, n);
switch (length) {
case 1: return func(args[0]);
case 2: return func(args[0], args[1]);
}
args = Array(length);
while (length--) {
args[length] = arguments[length];
}
return func.apply(undefined, args);
};
};
var immutArrayWrap = function(func) {
return function() {
var index = -1,
length = arguments.length,
args = Array(length);
while (length--) {
args[length] = arguments[length];
}
var array = args[0];
length = array ? array.length : 0;
args[0] = Array(length);
while (++index < length) {
args[0][index] = array[index];
}
func.apply(undefined, args);
return args[0];
};
};
var immutObjectWrap = function(func) {
return function() {
var index = -1,
length = arguments.length,
args = Array(length);
while (++index < length) {
args[index] = arguments[index];
}
args[0] = func({}, args[0]);
func.apply(undefined, args);
return args[0];
};
};
var iterateeAry = function(func, n) {
return function() {
var length = arguments.length,
args = Array(length);
while (length--) {
args[length] = arguments[length];
}
args[0] = baseAry(args[0], n);
return func.apply(undefined, args);
};
};
var wrappers = {
'iteratee': function(iteratee) {
return function(func, arity) {
arity = arity > 2 ? (arity - 2) : 1;
func = iteratee(func);
var length = func.length;
return length <= arity ? func : baseAry(func, arity);
};
},
'mixin': function(mixin) {
return function(source) {
var func = this;
if (!isFunction(func)) {
return mixin(func, Object(source));
}
var methods = [],
methodNames = [];
each(keys(source), function(key) {
var value = source[key];
if (isFunction(value)) {
methodNames.push(key);
methods.push(func.prototype[key]);
}
});
mixin(func, Object(source));
each(methodNames, function(methodName, index) {
var method = methods[index];
if (isFunction(method)) {
func.prototype[methodName] = method;
} else {
delete func.prototype[methodName];
}
});
return func;
};
},
'runInContext': function(runInContext) {
return function(context) {
return baseConvert(util, runInContext(context));
};
}
};
var wrap = function(name, func) {
var wrapper = wrappers[name];
if (wrapper) {
return wrapper(func);
}
if (mutateMap.array[name]) {
func = immutArrayWrap(func);
}
else if (mutateMap.object[name]) {
func = immutObjectWrap(func);
}
var result;
each(mapping.caps, function(cap) {
each(mapping.aryMethodMap[cap], function(otherName) {
if (name == otherName) {
result = ary(func, cap);
if (cap > 1 && !mapping.skipReargMap[name]) {
result = rearg(result, mapping.methodReargMap[name] || mapping.aryReargMap[cap]);
}
var n = !isLib && mapping.aryIterateeMap[name];
if (n) {
result = iterateeAry(result, n);
}
if (cap > 1) {
result = curry(result, cap);
}
return false;
}
});
return !result;
});
return result || func;
};
if (!isLib) {
return wrap(name, func);
}
// Iterate over methods for the current ary cap.
var pairs = [];
each(mapping.caps, function(cap) {
each(mapping.aryMethodMap[cap], function(name) {
var func = _[mapping.keyMap[name] || name];
if (func) {
// Wrap the lodash method and its aliases.
var wrapped = wrap(name, func);
pairs.push([name, wrapped]);
each(mapping.aliasMap[name] || [], function(alias) { pairs.push([alias, wrapped]); });
}
});
});
// Assign to `_` leaving `_.prototype` unchanged to allow chaining.
each(pairs, function(pair) { _[pair[0]] = pair[1]; });
return _;
}
module.exports = baseConvert;
/***/ },
/* 2 */
/***/ function(module, exports) {
module.exports = {
/** Used to map method names to their aliases. */
'aliasMap': {
'forEach': ['each'],
'forEachRight': ['eachRight'],
'first': ['head']
},
/** Used to map method names to their iteratee ary. */
'aryIterateeMap': {
'assignWith': 2,
'cloneDeepWith': 1,
'cloneWith': 1,
'dropRightWhile': 1,
'dropWhile': 1,
'every': 1,
'extendWith': 2,
'filter': 1,
'find': 1,
'findIndex': 1,
'findKey': 1,
'findLast': 1,
'findLastIndex': 1,
'findLastKey': 1,
'forEach': 1,
'forEachRight': 1,
'forIn': 1,
'forInRight': 1,
'forOwn': 1,
'forOwnRight': 1,
'isEqualWith': 2,
'isMatchWith': 2,
'map': 1,
'mapKeys': 1,
'mapValues': 1,
'partition': 1,
'reduce': 2,
'reduceRight': 2,
'reject': 1,
'remove': 1,
'some': 1,
'takeRightWhile': 1,
'takeWhile': 1,
'times': 1,
'transform': 2
},
/** Used to map ary to method names. */
'aryMethodMap': {
1: (
'attempt,ceil,create,curry,floor,iteratee,invert,memoize,method,methodOf,' +
'mixin,restParam,reverse,round,runInContext,template,trim,trimLeft,trimRight,' +
'words,zipObject').split(','),
2: (
'ary,assign,at,bind,bindKey,cloneDeepWith,cloneWith,countBy,curryN,debounce,' +
'defaults,defaultsDeep,delay,difference,drop,dropRight,dropRightWhile,' +
'dropWhile,endsWith,every,extend,filter,find,find,findIndex,findKey,findLast,' +
'findLastIndex,findLastKey,forEach,forEachRight,forIn,forInRight,forOwn,' +
'forOwnRight,get,groupBy,includes,indexBy,indexOf,intersection,invoke,' +
'isMatch,lastIndexOf,map,mapKeys,mapValues,maxBy,minBy,merge,omit,pad,padLeft,' +
'padRight,parseInt,partition,pick,pull,pullAll,pullAt,random,range,rearg,reject,' +
'remove,repeat,result,sampleSize,set,some,sortBy,sortByOrder,sortedIndexBy,' +
'sortedLastIndexBy,sortedUniqBy,startsWith,sumBy,take,takeRight,takeRightWhile,' +
'takeWhile,throttle,times,trunc,union,uniqBy,uniqueId,without,wrap,xor,zip').split(','),
3: (
'assignWith,differenceBy,extendWith,inRange,intersectionBy,isEqualWith,' +
'isMatchWith,mergeWith,omitBy,pickBy,pullAllBy,reduce,reduceRight,slice,' +
'transform,unionBy,xorBy,zipWith').split(','),
4:
['fill']
},
/** Used to map ary to rearg configs by method ary. */
'aryReargMap': {
2: [1, 0],
3: [2, 1, 0],
4: [3, 2, 0, 1]
},
/** Used to map ary to rearg configs by method names. */
'methodReargMap': {
'reduce': [2, 0, 1],
'reduceRight': [2, 0, 1],
'slice': [2, 0, 1],
'transform': [2, 0, 1]
},
/** Used to iterate `mapping.aryMethodMap` keys. */
'caps': ['1', '2', '3', '4'],
/** Used to map keys to other keys. */
'keyMap': {
'curryN': 'curry',
'curryRightN': 'curryRight',
'debounceOpt': 'debounce',
'throttleOpt': 'throttle'
},
/** Used to identify methods which mutate arrays or objects. */
'mutateMap': {
'array': {
'fill': true,
'pull': true,
'pullAll': true,
'pullAllBy': true,
'pullAt': true,
'remove': true,
'reverse': true
},
'object': {
'assign': true,
'assignWith': true,
'defaults': true,
'defaultsDeep': true,
'extend': true,
'extendWith': true,
'merge': true,
'mergeWith': true
}
},
/** Used to track methods that skip `_.rearg`. */
'skipReargMap': {
'difference': true,
'random': true,
'range': true,
'zipObject': true
}
};
/***/ }
/******/ ])
});
;

9
dist/lodash.fp.min.js vendored Normal file
View File

@@ -0,0 +1,9 @@
!function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t():"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports.fp=t():e.fp=t()}(this,function(){return function(e){function t(n){if(r[n])return r[n].exports;var i=r[n]={exports:{},id:n,loaded:!1};return e[n].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var r={};return t.m=e,t.c=r,t.p="",t(0)}([function(e,t,r){function n(e){return i(e,e)}var i=r(1);e.exports=n},function(e,t,r){function n(e,t,r){
if(r||(r=t,t=null),null==r)throw new TypeError;var o=null==t&&"string"==typeof r.VERSION,u=o?r:{ary:e.ary,curry:e.curry,forEach:e.forEach,isFunction:e.isFunction,iteratee:e.iteratee,keys:e.keys,rearg:e.rearg},f=u.ary,p=u.curry,s=u.forEach,c=u.isFunction,l=u.keys,d=u.rearg,h=function(e,t){return function(){var r=arguments,n=Math.min(r.length,t);switch(n){case 1:return e(r[0]);case 2:return e(r[0],r[1])}for(r=Array(n);n--;)r[n]=arguments[n];return e.apply(void 0,r)}},y=function(e){return function(){
for(var t=-1,r=arguments.length,n=Array(r);r--;)n[r]=arguments[r];var i=n[0];for(r=i?i.length:0,n[0]=Array(r);++t<r;)n[0][t]=i[t];return e.apply(void 0,n),n[0]}},g=function(e){return function(){for(var t=-1,r=arguments.length,n=Array(r);++t<r;)n[t]=arguments[t];return n[0]=e({},n[0]),e.apply(void 0,n),n[0]}},m=function(e,t){return function(){for(var r=arguments.length,n=Array(r);r--;)n[r]=arguments[r];return n[0]=h(n[0],t),e.apply(void 0,n)}},v={iteratee:function(e){return function(t,r){r=r>2?r-2:1,
t=e(t);var n=t.length;return n>r?h(t,r):t}},mixin:function(e){return function(t){var r=this;if(!c(r))return e(r,Object(t));var n=[],i=[];return s(l(t),function(e){var a=t[e];c(a)&&(i.push(e),n.push(r.prototype[e]))}),e(r,Object(t)),s(i,function(e,t){var i=n[t];c(i)?r.prototype[e]=i:delete r.prototype[e]}),r}},runInContext:function(t){return function(r){return n(e,t(r))}}},x=function(e,t){var r=v[e];if(r)return r(t);a.array[e]?t=y(t):a.object[e]&&(t=g(t));var n;return s(i.caps,function(r){return s(i.aryMethodMap[r],function(a){
if(e==a){n=f(t,r),r>1&&!i.skipReargMap[e]&&(n=d(n,i.methodReargMap[e]||i.aryReargMap[r]));var u=!o&&i.aryIterateeMap[e];return u&&(n=m(n,u)),r>1&&(n=p(n,r)),!1}}),!n}),n||t};if(!o)return x(t,r);var R=[];return s(i.caps,function(e){s(i.aryMethodMap[e],function(e){var t=u[i.keyMap[e]||e];if(t){var r=x(e,t);R.push([e,r]),s(i.aliasMap[e]||[],function(e){R.push([e,r])})}})}),s(R,function(e){u[e[0]]=e[1]}),u}var i=r(2),a=i.mutateMap;e.exports=n},function(e,t){e.exports={aliasMap:{forEach:["each"],forEachRight:["eachRight"],
first:["head"]},aryIterateeMap:{assignWith:2,cloneDeepWith:1,cloneWith:1,dropRightWhile:1,dropWhile:1,every:1,extendWith:2,filter:1,find:1,findIndex:1,findKey:1,findLast:1,findLastIndex:1,findLastKey:1,forEach:1,forEachRight:1,forIn:1,forInRight:1,forOwn:1,forOwnRight:1,isEqualWith:2,isMatchWith:2,map:1,mapKeys:1,mapValues:1,partition:1,reduce:2,reduceRight:2,reject:1,remove:1,some:1,takeRightWhile:1,takeWhile:1,times:1,transform:2},aryMethodMap:{1:"attempt,ceil,create,curry,floor,iteratee,invert,memoize,method,methodOf,mixin,restParam,reverse,round,runInContext,template,trim,trimLeft,trimRight,words,zipObject".split(","),
2:"ary,assign,at,bind,bindKey,cloneDeepWith,cloneWith,countBy,curryN,debounce,defaults,defaultsDeep,delay,difference,drop,dropRight,dropRightWhile,dropWhile,endsWith,every,extend,filter,find,find,findIndex,findKey,findLast,findLastIndex,findLastKey,forEach,forEachRight,forIn,forInRight,forOwn,forOwnRight,get,groupBy,includes,indexBy,indexOf,intersection,invoke,isMatch,lastIndexOf,map,mapKeys,mapValues,maxBy,minBy,merge,omit,pad,padLeft,padRight,parseInt,partition,pick,pull,pullAll,pullAt,random,range,rearg,reject,remove,repeat,result,sampleSize,set,some,sortBy,sortByOrder,sortedIndexBy,sortedLastIndexBy,sortedUniqBy,startsWith,sumBy,take,takeRight,takeRightWhile,takeWhile,throttle,times,trunc,union,uniqBy,uniqueId,without,wrap,xor,zip".split(","),
3:"assignWith,differenceBy,extendWith,inRange,intersectionBy,isEqualWith,isMatchWith,mergeWith,omitBy,pickBy,pullAllBy,reduce,reduceRight,slice,transform,unionBy,xorBy,zipWith".split(","),4:["fill"]},aryReargMap:{2:[1,0],3:[2,1,0],4:[3,2,0,1]},methodReargMap:{reduce:[2,0,1],reduceRight:[2,0,1],slice:[2,0,1],transform:[2,0,1]},caps:["1","2","3","4"],keyMap:{curryN:"curry",curryRightN:"curryRight",debounceOpt:"debounce",throttleOpt:"throttle"},mutateMap:{array:{fill:!0,pull:!0,pullAll:!0,pullAllBy:!0,
pullAt:!0,remove:!0,reverse:!0},object:{assign:!0,assignWith:!0,defaults:!0,defaultsDeep:!0,extend:!0,extendWith:!0,merge:!0,mergeWith:!0}},skipReargMap:{difference:!0,random:!0,range:!0,zipObject:!0}}}])});

98
dist/lodash.min.js vendored Normal file
View File

@@ -0,0 +1,98 @@
/**
* @license
* lodash 3.10.1 (Custom Build) lodash.com/license | Underscore.js 1.8.3 underscorejs.org/LICENSE
* Build: `lodash -p -o ./lodash.min.js`
*/
;(function(){function n(n,t,r){for(var e=n.length,u=r?e:-1;r?u--:++u<e;)if(t(n[u],u,n))return u;return-1}function t(n,t,r){if(t!==t)return s(n,r);--r;for(var e=n.length;++r<e;)if(n[r]===t)return r;return-1}function r(n){return typeof n=="function"||false}function e(n){return null==n?"":n+""}function u(n,t){for(var r=-1,e=n.length;++r<e&&-1<t.indexOf(n.charAt(r)););return r}function o(n,t){for(var r=n.length;r--&&-1<t.indexOf(n.charAt(r)););return r}function i(n){return n&&n.Object===Object?n:null}function c(n,t){
if(n!==t){var r=null===n,e=n===m,u=n===n,o=null===t,i=t===m,c=t===t;if(n>t&&!o||!u||r&&!i&&c||e&&c)return 1;if(t>n&&!r||!c||o&&!e&&u||i&&u)return-1}return 0}function f(n){return J[n]}function a(n){return X[n]}function l(n){return"\\"+nn[n]}function s(n,t,r){var e=n.length;for(t+=r?0:-1;r?t--:++t<e;){var u=n[t];if(u!==u)return t}return-1}function p(n){var t=false;if(null!=n&&typeof n.toString!="function")try{t=!!(n+"")}catch(r){}return t}function h(n){return!!n&&typeof n=="object"}function _(n){return 160>=n&&n>=9&&13>=n||32==n||160==n||5760==n||6158==n||n>=8192&&(8202>=n||8232==n||8233==n||8239==n||8287==n||12288==n||65279==n);
}function g(n,t){for(var r=-1,e=n.length,u=-1,o=[];++r<e;)n[r]===t&&(n[r]="__lodash_placeholder__",o[++u]=r);return o}function v(n){for(var t=-1,r=n.length;++t<r&&_(n.charCodeAt(t)););return t}function y(n){for(var t=n.length;t--&&_(n.charCodeAt(t)););return t}function d(n){return H[n]}function b(i){function _(n){if(h(n)&&!mu(n)&&!(n instanceof H)){if(n instanceof X)return n;if(ce.call(n,"__wrapped__"))return Ht(n)}return new X(n)}function J(){}function X(n,t,r){this.__wrapped__=n,this.__actions__=r||[],
this.__chain__=!!t}function H(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=false,this.__iteratees__=[],this.__takeCount__=Ne,this.__views__=[]}function Q(){this.__data__={}}function nn(n){var t=n?n.length:0;for(this.data={hash:Ee(null),set:new ge};t--;)this.push(n[t])}function tn(n,t){var r=n.data;return(typeof t=="string"||jr(t)?r.set.has(t):r.hash[t])?0:-1}function rn(n,t){for(var r=-1,e=n.length;++r<e&&false!==t(n[r],r,n););return n}function en(n,t){for(var r=-1,e=n.length;++r<e;)if(!t(n[r],r,n))return false;
return true}function un(n,t,r,e){for(var u=-1,o=n.length,i=e,c=i;++u<o;){var f=n[u],a=+t(f);r(a,i)&&(i=a,c=f)}for(u=c===e?-1:u;++u<o;)if(f=n[u],+t(f)===e)return f;return c}function on(n,t){for(var r=-1,e=n.length,u=-1,o=[];++r<e;){var i=n[r];t(i,r,n)&&(o[++u]=i)}return o}function cn(n,t){for(var r=-1,e=n.length,u=Zr(e);++r<e;)u[r]=t(n[r],r,n);return u}function ln(n,t){for(var r=-1,e=t.length,u=n.length;++r<e;)n[u+r]=t[r];return n}function sn(n,t,r,e){var u=-1,o=n.length;for(e&&o&&(r=n[++u]);++u<o;)r=t(r,n[u],u,n);
return r}function pn(n,t){for(var r=-1,e=n.length;++r<e;)if(t(n[r],r,n))return true;return false}function hn(n,t,r){var e=n[t];(r===r?r===e:e!==e)&&(r!==m||t in n)||(n[t]=r)}function _n(n,t,r){var e=n[t];(r!==m&&(r===r?r!==e:e===e)||typeof t=="number"&&r===m&&!(t in n))&&(n[t]=r)}function gn(n,t){return n&&lt(t,Br(t),n)}function vn(n,t){for(var r=-1,e=null==n,u=t.length,o=Zr(u);++r<u;)o[r]=e?m:Cr(n,t[r]);return o}function yn(n,t,r,e,u,o,i){var c;if(r&&(c=u?r(n,e,u,o,i):r(n)),c!==m)return c;if(!jr(n))return n;
if(e=mu(n)){if(c=St(n),!t)return at(n,c)}else{var f=le.call(n),a="[object Function]"==f;if("[object Object]"!=f&&"[object Arguments]"!=f&&(!a||u))return G[f]?$t(n,f,t):u?n:{};if(p(n))return u?n:{};if(c=Nt(a?{}:n),!t)return gn(c,n)}for(o||(o=[]),i||(i=[]),u=o.length;u--;)if(o[u]==n)return i[u];return o.push(n),i.push(c),(e?rn:On)(n,function(e,u){c[u]=yn(e,t,r,u,n,o,i)}),c}function dn(n,t,r){if(typeof n!="function")throw new re("Expected a function");return Ae(function(){n.apply(m,r)},t)}function bn(n,r){
var e=n?n.length:0,u=[];if(!e)return u;var o=-1,i=Ut(),c=i===t,f=c&&r.length>=200&&Ee&&ge?new nn(r):null,a=r.length;f&&(i=tn,c=false,r=f);n:for(;++o<e;)if(f=n[o],c&&f===f){for(var l=a;l--;)if(r[l]===f)continue n;u.push(f)}else 0>i(r,f,0)&&u.push(f);return u}function mn(n,t){var r=true;return De(n,function(n,e,u){return r=!!t(n,e,u)}),r}function jn(n,t){var r=[];return De(n,function(n,e,u){t(n,e,u)&&r.push(n)}),r}function wn(n,t,r,e){var u;return r(n,function(n,r,o){return t(n,r,o)?(u=e?r:n,false):void 0}),
u}function xn(n,t,r,e){e||(e=[]);for(var u=-1,o=n.length;++u<o;){var i=n[u];jr(i)&&Dt(i)&&(r||mu(i)||dr(i))?t?xn(i,t,r,e):ln(e,i):r||(e[e.length]=i)}return e}function An(n,t){return null==n?n:qe(n,t,Fr)}function On(n,t){return n&&qe(n,t,Br)}function In(n,t){return n&&Me(n,t,Br)}function En(n,t){return on(t,function(t){return mr(n[t])})}function kn(n,t){t=Mt(t,n)?[t+""]:Xt(t);for(var r=0,e=t.length;null!=n&&e>r;)n=n[t[r++]];return r&&r==e?n:m}function Rn(n,t){return null!=n&&ce.call(n,t)}function Un(n,t){
return null!=n&&t in Qr(n)}function Cn(n,t,r,e,u,o){if(n===t)return true;if(null==n||null==t||!jr(n)&&!h(t))return n!==n&&t!==t;n:{var i=mu(n),c=mu(t),f="[object Array]",a="[object Array]";i||(f=le.call(n),"[object Arguments]"==f?f="[object Object]":"[object Object]"!=f&&(i=Er(n))),c||(a=le.call(t),"[object Arguments]"==a?a="[object Object]":"[object Object]"!=a&&Er(t));var l="[object Object]"==f&&!p(n),c="[object Object]"==a&&!p(t),a=f==a;if(!a||i||l){if(!e&&(f=l&&ce.call(n,"__wrapped__"),c=c&&ce.call(t,"__wrapped__"),
f||c)){n=Cn(f?n.value():n,c?t.value():t,r,e,u,o);break n}if(a){for(u||(u=[]),o||(o=[]),f=u.length;f--;)if(u[f]==n){n=o[f]==t;break n}u.push(n),o.push(t),n=(i?Ot:Et)(n,t,Cn,r,e,u,o),u.pop(),o.pop()}else n=false}else n=It(n,t,f)}return n}function Wn(n,t,r,e){var u=r.length,o=u,i=!e;if(null==n)return!o;for(n=Qr(n);u--;){var c=r[u];if(i&&c[2]?c[1]!==n[c[0]]:!(c[0]in n))return false}for(;++u<o;){var c=r[u],f=c[0],a=n[f],l=c[1];if(i&&c[2]){if(a===m&&!(f in n))return false}else{var c=[],s=[],f=e?e(a,l,f,n,t,c,s):m;
if(f===m?!Cn(l,a,e,true,c,s):!f)return false}}return true}function Bn(n){var t=typeof n;return"function"==t?n:null==n?zr:"object"==t?mu(n)?$n(n[0],n[1]):Nn(n):Vr(n)}function Fn(n){n=null==n?n:Qr(n);var t,r=[];for(t in n)r.push(t);return r}function Sn(n,t){var r=-1,e=Dt(n)?Zr(n.length):[];return De(n,function(n,u,o){e[++r]=t(n,u,o)}),e}function Nn(n){var t=Wt(n);if(1==t.length&&t[0][2]){var r=t[0][0],e=t[0][1];return function(n){return null==n?false:n[r]===e&&(e!==m||r in Qr(n))}}return function(r){return Wn(r,n,t);
}}function $n(n,t){return function(r){var e=Cr(r,n);return e===m&&e===t?Wr(r,n):Cn(t,e,m,true)}}function Ln(n,t,r,e,u){var o=mu(t)||Er(t)?m:Fr(t);rn(o||t,function(i,c){if(o&&(c=i,i=t[c]),jr(i)){e||(e=[]),u||(u=[]);n:{for(var f=c,a=e,l=u,s=a.length,p=n[f],h=t[f];s--;){var _=a[s];if(_==h||_==p){_n(n,f,l[s]);break n}}s=r?r(p,h,f+"",n,t,a,l):m,(_=s===m)&&(s=h,mu(h)||Er(h)?s=mu(p)?p:jr(p)&&Dt(p)?at(p):[]:Ar(h)||dr(h)?s=dr(p)?Ur(p):jr(p)?p:{}:_=mr(h)),a.push(h),l.push(s),_&&Ln(s,h,r,a,l),_n(n,f,s)}}else f=r?r(n[c],i,c+"",n,t,e,u):m,
f===m&&(f=i),_n(n,c,f)})}function Tn(n,t){return n=Qr(n),sn(t,function(t,r){return r in n&&(t[r]=n[r]),t},{})}function Dn(n,t){var r={};return An(n,function(n,e){t(n)&&(r[e]=n)}),r}function zn(n){return function(t){return null==t?m:t[n]}}function qn(n){return function(t){return kn(t,n)}}function Mn(n,t){for(var r=n?t.length:0,e=r-1;r--;){var u=t[r];if(e==r||u!=o){var o=u;if(zt(u))Oe.call(n,u,1);else if(Mt(u,n))delete n[u];else{var u=Xt(u),i=Yt(n,u);null!=i&&delete i[rr(u)]}}}return n}function Pn(n,t){
return n+ke(Fe()*(t-n+1))}function Kn(n,t,r,e,u){return u(n,function(n,u,o){r=e?(e=false,n):t(r,n,u,o)}),r}function Vn(n,t,r,e){t=Mt(t,n)?[t+""]:Xt(t);for(var u=-1,o=t.length,i=o-1,c=n;null!=c&&++u<o;){var f=t[u];if(jr(c)){var a=r;if(u!=i){var l=c[f],a=e?e(l,f,c):m;a===m&&(a=null==l?zt(t[u+1])?[]:{}:l)}hn(c,f,a)}c=c[f]}return n}function Zn(n,t,r){var e=-1,u=n.length;for(t=null==t?0:Jt(t),0>t&&(t=-t>u?0:u+t),r=r===m||r>u?u:Jt(r),0>r&&(r+=u),u=t>r?0:r-t>>>0,t>>>=0,r=Zr(u);++e<u;)r[e]=n[e+t];return r}function Yn(n,t){
var r;return De(n,function(n,e,u){return r=t(n,e,u),!r}),!!r}function Gn(n,t){var r=n.length;for(n.sort(t);r--;)n[r]=n[r].c;return n}function Jn(n,t,r){var e=Ct(),u=-1;return t=cn(t.length?t:Zr(1),function(n){return e(n)}),n=Sn(n,function(n){return{a:cn(t,function(t){return t(n)}),b:++u,c:n}}),Gn(n,function(n,t){var e;n:{e=-1;for(var u=n.a,o=t.a,i=u.length,f=r.length;++e<i;){var a=c(u[e],o[e]);if(a){if(e>=f){e=a;break n}e=a*("asc"===r[e]?1:-1);break n}}e=n.b-t.b}return e})}function Xn(n,r){var e=n.length;
if(!e)return[];for(var u=0,o=Ut(),i=o===t,c=n[0],f=r?r(c):c,a=i?f:[f],l=0,s=[c];++u<e;)c=n[u],f=r?r(c):c,i?(a===a?a!==f:f===f)&&(a=f,s[++l]=c):0>o(a,f,0)&&(a[++l]=f,s[l]=c);return s}function Hn(n,t){for(var r=-1,e=n.length,u=0;++r<e;)u+=+t(n[r])||0;return u}function Qn(n,t){for(var r=-1,e=Zr(n);++r<n;)e[r]=t(r);return e}function nt(n,r){var e=-1,u=Ut(),o=n.length,i=u===t,c=i&&o>=200,f=c&&Ee&&ge?new nn(void 0):null,a=[];f?(u=tn,i=false):(c=false,f=r?[]:a);n:for(;++e<o;){var l=n[e],s=r?r(l):l;if(i&&s===s){
for(var p=f.length;p--;)if(f[p]===s)continue n;r&&f.push(s),a.push(l)}else 0>u(f,s,0)&&((r||c)&&f.push(s),a.push(l))}return a}function tt(n,t){return cn(t,function(t){return n[t]})}function rt(n,t,r,e){for(var u=n.length,o=e?u:-1;(e?o--:++o<u)&&t(n[o],o,n););return r?Zn(n,e?0:o,e?o+1:u):Zn(n,e?o+1:0,e?u:o)}function et(n,t){var r=n;return r instanceof H&&(r=r.value()),sn(t,function(n,t){return t.func.apply(t.thisArg,ln([n],t.args))},r)}function ut(n,t,r){var e=0,u=n?n.length:e;if(typeof t=="number"&&t===t&&2147483647>=u){
for(;u>e;){var o=e+u>>>1,i=n[o];(r?t>=i:t>i)&&null!==i?e=o+1:u=o}return u}return ot(n,t,zr,r)}function ot(n,t,r,e){t=r(t);for(var u=0,o=n?n.length:0,i=t!==t,c=null===t,f=t===m;o>u;){var a=ke((u+o)/2),l=r(n[a]),s=l!==m,p=l===l;(i?p||e:c?p&&s&&(e||null!=l):f?p&&(e||s):null==l?0:e?t>=l:t>l)?u=a+1:o=a}return We(o,4294967294)}function it(n){var t=new he(n.byteLength);return new ve(t).set(new ve(n)),t}function ct(n,t,r){for(var e=r.length,u=-1,o=Ce(n.length-e,0),i=-1,c=t.length,f=Zr(c+o);++i<c;)f[i]=t[i];
for(;++u<e;)f[r[u]]=n[u];for(;o--;)f[i++]=n[u++];return f}function ft(n,t,r){for(var e=-1,u=r.length,o=-1,i=Ce(n.length-u,0),c=-1,f=t.length,a=Zr(i+f);++o<i;)a[o]=n[o];for(i=o;++c<f;)a[i+c]=t[c];for(;++e<u;)a[i+r[e]]=n[o++];return a}function at(n,t){var r=-1,e=n.length;for(t||(t=Zr(e));++r<e;)t[r]=n[r];return t}function lt(n,t,r){return st(n,t,r)}function st(n,t,r,e){r||(r={});for(var u=-1,o=t.length;++u<o;){var i=t[u],c=e?e(r[i],n[i],i,r,n):n[i];hn(r,i,c)}return r}function pt(n,t){return function(r,e){
var u=t?t():{};if(e=Ct(e),mu(r))for(var o=-1,i=r.length;++o<i;){var c=r[o];n(u,c,e(c),r)}else De(r,function(t,r,o){n(u,t,e(t),o)});return u}}function ht(n){return vr(function(t,r){var e=-1,u=null==t?0:r.length,o=u>1?r[u-1]:m,i=u>2?r[2]:m,o=typeof o=="function"?(u--,o):m;for(i&&qt(r[0],r[1],i)&&(o=3>u?m:o,u=1),t=Qr(t);++e<u;)(i=r[e])&&n(t,i,o);return t})}function _t(n,t){return function(r,e){if(null==r)return r;if(!Dt(r))return n(r,e);for(var u=r.length,o=t?u:-1,i=Qr(r);(t?o--:++o<u)&&false!==e(i[o],o,i););
return r}}function gt(n){return function(t,r,e){var u=Qr(t);e=e(t);for(var o=e.length,i=n?o:-1;n?i--:++i<o;){var c=e[i];if(false===r(u[c],c,u))break}return t}}function vt(n,t){function r(){return(this&&this!==fn&&this instanceof r?e:n).apply(t,arguments)}var e=dt(n);return r}function yt(n){return function(t){return sn(Dr($r(t)),n,"")}}function dt(n){return function(){var t=arguments;switch(t.length){case 0:return new n;case 1:return new n(t[0]);case 2:return new n(t[0],t[1]);case 3:return new n(t[0],t[1],t[2]);
case 4:return new n(t[0],t[1],t[2],t[3]);case 5:return new n(t[0],t[1],t[2],t[3],t[4]);case 6:return new n(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new n(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=Te(n.prototype),t=n.apply(r,t);return jr(t)?t:r}}function bt(n){return function(){for(var t,r=arguments.length,e=n?r:-1,u=0,o=Zr(r);n?e--:++e<r;){var i=o[u++]=arguments[e];if(typeof i!="function")throw new re("Expected a function");!t&&X.prototype.thru&&"wrapper"==Rt(i)&&(t=new X([],true))}for(e=t?-1:r;++e<r;){
var i=o[e],u=Rt(i),c="wrapper"==u?Ke(i):m;t=c&&Pt(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?t[Rt(c[0])].apply(t,c[3]):1==i.length&&Pt(i)?t[u]():t.thru(i)}return function(){var n=arguments,e=n[0];if(t&&1==n.length&&mu(e)&&e.length>=200)return t.plant(e).value();for(var u=0,n=r?o[u].apply(this,n):e;++u<r;)n=o[u].call(this,n);return n}}}function mt(n,t,r,e,u,o,i,c,f,a){function l(){for(var b=arguments.length,j=b,w=Zr(b);j--;)w[j]=arguments[j];if(e&&(w=ct(w,e,u)),o&&(w=ft(w,o,i)),_||y){var j=l.placeholder,x=g(w,j),b=b-x.length;
if(a>b){var A=c?at(c):m,b=Ce(a-b,0),O=_?x:m,x=_?m:x,I=_?w:m,w=_?m:w;return t|=_?32:64,t&=~(_?64:32),v||(t&=-4),w=[n,t,r,I,O,w,x,A,f,b],A=mt.apply(m,w),Pt(n)&&Ze(A,w),A.placeholder=j,A}}if(j=p?r:this,A=h?j[n]:n,c)for(b=w.length,O=We(c.length,b),x=at(w);O--;)I=c[O],w[O]=zt(I,b)?x[I]:m;return s&&w.length>f&&(w.length=f),this&&this!==fn&&this instanceof l&&(A=d||dt(n)),A.apply(j,w)}var s=128&t,p=1&t,h=2&t,_=8&t,v=4&t,y=16&t,d=h?m:dt(n);return l}function jt(n,t,r){return n=n.length,t=Jt(t),t&&t>n?(t-=n,
r=r===m?" ":r+"",Lr(r,Ie(t/r.length)).slice(0,t)):""}function wt(n,t,r,e){function u(){for(var t=-1,c=arguments.length,f=-1,a=e.length,l=Zr(a+c);++f<a;)l[f]=e[f];for(;c--;)l[f++]=arguments[++t];return(this&&this!==fn&&this instanceof u?i:n).apply(o?r:this,l)}var o=1&t,i=dt(n);return u}function xt(n){var t=Xr[n];return function(n,r){return(r=r===m?0:Jt(r))?(r=we(10,r),t(n*r)/r):t(n)}}function At(n,t,r,e,u,o,i,c){var f=2&t;if(!f&&typeof n!="function")throw new re("Expected a function");var a=e?e.length:0;
if(a||(t&=-97,e=u=m),a-=u?u.length:0,64&t){var l=e,s=u;e=u=m}i=null==i?i:Ce(Jt(i),0),c=null==c?c:Jt(c);var p=f?m:Ke(n);return r=[n,t,r,e,u,l,s,o,i,c],p&&(e=r[1],t=p[1],c=e|t,u=128==t&&8==e||128==t&&256==e&&p[8]>=r[7].length||384==t&&8==e,(128>c||u)&&(1&t&&(r[2]=p[2],c|=1&e?0:4),(e=p[3])&&(u=r[3],r[3]=u?ct(u,e,p[4]):at(e),r[4]=u?g(r[3],"__lodash_placeholder__"):at(p[4])),(e=p[5])&&(u=r[5],r[5]=u?ft(u,e,p[6]):at(e),r[6]=u?g(r[5],"__lodash_placeholder__"):at(p[6])),(e=p[7])&&(r[7]=at(e)),128&t&&(r[8]=null==r[8]?p[8]:We(r[8],p[8])),
null==r[9]&&(r[9]=p[9]),r[0]=p[0],r[1]=c),t=r[1],c=r[9]),r[9]=null==c?f?0:n.length:Ce(c-a,0),n=1==t?vt(r[0],r[2]):32!=t&&33!=t||r[4].length?mt.apply(m,r):wt.apply(m,r),(p?Pe:Ze)(n,r)}function Ot(n,t,r,e,u,o,i){var c=-1,f=n.length,a=t.length;if(!(f==a||u&&a>f))return false;for(;++c<f;){var l=n[c],a=t[c];if(e)var s=u?e(a,l,c,t,n,o,i):e(l,a,c,n,t,o,i);if(s!==m){if(s)continue;return false}if(u){if(!pn(t,function(n){return l===n||r(l,n,e,u,o,i)}))return false}else if(l!==a&&!r(l,a,e,u,o,i))return false}return true}function It(n,t,r){
switch(r){case"[object Boolean]":case"[object Date]":return+n==+t;case"[object Error]":return n.name==t.name&&n.message==t.message;case"[object Number]":return n!=+n?t!=+t:n==+t;case"[object RegExp]":case"[object String]":return n==t+""}return false}function Et(n,t,r,e,u,o,i){var c=Br(n),f=c.length,a=Br(t).length;if(f!=a&&!u)return false;for(a=f;a--;){var l=c[a];if(!(u?l in t:ce.call(t,l)))return false}for(var s=u;++a<f;){var l=c[a],p=n[l],h=t[l];if(e)var _=u?e(h,p,l,t,n,o,i):e(p,h,l,n,t,o,i);if(_===m?!r(p,h,e,u,o,i):!_)return false;
s||(s="constructor"==l)}return s||(r=n.constructor,e=t.constructor,!(r!=e&&"constructor"in n&&"constructor"in t)||typeof r=="function"&&r instanceof r&&typeof e=="function"&&e instanceof e)?true:false}function kt(n,t){return n===m?t:n}function Rt(n){for(var t=n.name+"",r=Le[t],e=r?r.length:0;e--;){var u=r[e],o=u.func;if(null==o||o==n)return u.name}return t}function Ut(n,r,e){var u=_.indexOf||tr,u=u===tr?t:u;return n?u(n,r,e):u}function Ct(){var n=_.iteratee||qr,n=n===qr?Bn:n;return arguments.length?n(arguments[0],arguments[1]):n;
}function Wt(n){n=Sr(n);for(var t=n.length;t--;){var r,e=n[t];r=n[t][1],r=r===r&&!jr(r),e[2]=r}return n}function Bt(n,t){var r=null==n?m:n[t];return wr(r)?r:m}function Ft(n,t,r){if(null==n)return false;var e=r(n,t);return e||Mt(t)||(t=Xt(t),n=Yt(n,t),null!=n&&(t=rr(t),e=r(n,t))),e||Kt(n&&n.length)&&zt(t,n.length)&&(mu(n)||dr(n)||Ir(n))}function St(n){var t=n.length,r=new n.constructor(t);return t&&"string"==typeof n[0]&&ce.call(n,"index")&&(r.index=n.index,r.input=n.input),r}function Nt(n){return n=n.constructor,
typeof n=="function"&&n instanceof n?new n:{}}function $t(n,t,r){var e=n.constructor;switch(t){case"[object ArrayBuffer]":return it(n);case"[object Boolean]":case"[object Date]":return new e(+n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return t=n.buffer,new e(r?it(t):t,n.byteOffset,n.length);case"[object Number]":
case"[object String]":return new e(n);case"[object RegExp]":var u=new e(n.source,T.exec(n));u.lastIndex=n.lastIndex}return u}function Lt(n){var t=n?n.length:0,t=t&&Kt(t)&&(mu(n)||dr(n)||Ir(n))&&t||0;return Qn(t,te)}function Tt(n,t,r){return Mt(t,n)||(t=Xt(t),n=Yt(n,t),t=rr(t)),t=null==n?n:n[t],null==t?m:t.apply(n,r)}function Dt(n){return null!=n&&!(typeof n=="function"&&"[object Function]"==le.call(n))&&Kt(Ve(n))}function zt(n,t){return n=typeof n=="number"||q.test(n)?+n:-1,n>-1&&0==n%1&&(null==t?9007199254740991:t)>n;
}function qt(n,t,r){if(!jr(r))return false;var e=typeof t;return("number"==e?Dt(r)&&zt(t,r.length):"string"==e&&t in r)?(t=r[t],n===n?n===t:t!==t):false}function Mt(n,t){return typeof n=="number"?true:!mu(n)&&(W.test(n)||!C.test(n)||null!=t&&n in Qr(t))}function Pt(n){var t=Rt(n),r=_[t];return typeof r=="function"&&t in H.prototype?n===r?true:(t=Ke(r),!!t&&n===t[0]):false}function Kt(n){return typeof n=="number"&&n>-1&&0==n%1&&9007199254740991>=n}function Vt(n){var t=!!n&&n.constructor;return n===(typeof t=="function"&&t.prototype||ue);
}function Zt(n,t,r,e,u,o,i){return jr(n)&&(o.push(n),i.push(n),Ln(n,t,Zt,o,i)),n===m?t:n}function Yt(n,t){return 1==t.length?n:Cr(n,Zn(t,0,-1))}function Gt(n){return typeof n=="function"?n:zr}function Jt(n){return ke(n)||0}function Xt(n){if(mu(n))return n;var t=[];return e(n).replace(B,function(n,r,e,u){t.push(e?u.replace($,"$1"):r||n)}),t}function Ht(n){return n instanceof H?n.clone():new X(n.__wrapped__,n.__chain__,at(n.__actions__))}function Qt(n,t,r){return n&&n.length?(t=r||null==t?1:t,Zn(n,0>t?0:t)):[];
}function nr(n,t,r){var e=n?n.length:0;return e?(t=r||null==t?1:Jt(t),t=e-t,Zn(n,0,0>t?0:t)):[]}function tr(n,r,e){var u=n?n.length:0;return u?(e&&(e=Jt(e),e=0>e?Ce(u+e,0):e),t(n,r,e||0)):-1}function rr(n){var t=n?n.length:0;return t?n[t-1]:m}function er(n){if(!n||!n.length)return[];var t=0;return n=on(n,function(n){return jr(n)&&Dt(n)?(t=Ce(n.length,t),true):void 0}),Qn(t,function(t){return cn(n,zn(t))})}function ur(n,t){if(!n||!n.length)return[];var r=er(n);return null==t?r:cn(r,function(n){return sn(n,t,m,true);
})}function or(n){return n=_(n),n.__chain__=true,n}function ir(n,t){return t(n)}function cr(n,t){return typeof t=="function"&&mu(n)?rn(n,t):De(n,Gt(t))}function fr(n,t){var r;if(typeof t=="function"&&mu(n)){for(r=n.length;r--&&false!==t(n[r],r,n););r=n}else r=ze(n,Gt(t));return r}function ar(n,t,r){if(r||null==t)return n=Dt(n)?n:Nr(n),e=n.length,e>0?n[Pn(0,e-1)]:m;r=-1,n=Rr(n);var e=n.length,u=e-1;for(t=We(0>t?0:Jt(t),e);++r<t;){var e=Pn(r,u),o=n[e];n[e]=n[r],n[r]=o}return n.length=t,n}function lr(n){return null==n?0:(n=Dt(n)?n:Br(n),
n.length)}function sr(n,t){var r;if(typeof t!="function")throw new re("Expected a function");return n=Jt(n),function(){return 0<--n&&(r=t.apply(this,arguments)),1>=n&&(t=m),r}}function pr(n,t,r){return t=r?m:t,n=At(n,8,m,m,m,m,m,t),n.placeholder=pr.placeholder,n}function hr(n,t,r){return t=r?m:t,n=At(n,16,m,m,m,m,m,t),n.placeholder=hr.placeholder,n}function _r(n,t,r){function e(t,r){r&&de(r),f=p=h=m,t&&(_=fu(),a=n.apply(s,c),p||f||(c=s=m))}function u(){var n=t-(fu()-l);0>=n||n>t?e(h,f):p=Ae(u,n)}
function o(){e(y,p)}function i(){if(c=arguments,l=fu(),s=this,h=y&&(p||!g),false===v)var r=g&&!p;else{f||g||(_=l);var e=v-(l-_),i=0>=e||e>v;i?(f&&(f=de(f)),_=l,a=n.apply(s,c)):f||(f=Ae(o,e))}return i&&p?p=de(p):p||t===v||(p=Ae(u,t)),r&&(i=true,a=n.apply(s,c)),!i||p||f||(c=s=m),a}var c,f,a,l,s,p,h,_=0,g=false,v=false,y=true;if(typeof n!="function")throw new re("Expected a function");return t=0>t?0:+t||0,jr(r)&&(g=!!r.leading,v="maxWait"in r&&Ce(+r.maxWait||0,t),y="trailing"in r?!!r.trailing:y),i.cancel=function(){
p&&de(p),f&&de(f),_=0,f=p=h=m},i}function gr(n,t){if(typeof n!="function"||t&&typeof t!="function")throw new re("Expected a function");var r=function(){var e=arguments,u=t?t.apply(this,e):e[0],o=r.cache;return o.has(u)?o.get(u):(e=n.apply(this,e),r.cache=o.set(u,e),e)};return r.cache=new gr.Cache,r}function vr(n,t){if(typeof n!="function")throw new re("Expected a function");return t=Ce(t===m?n.length-1:Jt(t),0),function(){for(var r=arguments,e=-1,u=Ce(r.length-t,0),o=Zr(u);++e<u;)o[e]=r[t+e];switch(t){
case 0:return n.call(this,o);case 1:return n.call(this,r[0],o);case 2:return n.call(this,r[0],r[1],o)}for(u=Zr(t+1),e=-1;++e<t;)u[e]=r[e];return u[t]=o,n.apply(this,u)}}function yr(n,t){return n>t}function dr(n){return h(n)&&Dt(n)&&ce.call(n,"callee")&&!xe.call(n,"callee")}function br(n){return h(n)&&typeof n.message=="string"&&"[object Error]"==le.call(n)}function mr(n){return jr(n)&&"[object Function]"==le.call(n)}function jr(n){var t=typeof n;return!!n&&("object"==t||"function"==t)}function wr(n){
return null==n?false:mr(n)?pe.test(ie.call(n)):h(n)&&(p(n)?pe:z).test(n)}function xr(n){return typeof n=="number"||h(n)&&"[object Number]"==le.call(n)}function Ar(n){return!h(n)||"[object Object]"!=le.call(n)||p(n)?false:(n=typeof n.constructor=="function"?me(n):ue,null===n?true:(n=n.constructor,typeof n=="function"&&n instanceof n&&ie.call(n)==ae))}function Or(n){return jr(n)&&"[object RegExp]"==le.call(n)}function Ir(n){return typeof n=="string"||h(n)&&"[object String]"==le.call(n)}function Er(n){return h(n)&&Kt(n.length)&&!!Y[le.call(n)];
}function kr(n,t){return t>n}function Rr(n){return Dt(n)?n.length?at(n):[]:Nr(n)}function Ur(n){return lt(n,Fr(n))}function Cr(n,t,r){return n=null==n?m:kn(n,t),n===m?r:n}function Wr(n,t){return Ft(n,t,Un)}function Br(n){var t=Vt(n);if(!t&&!Dt(n))return Ue(Qr(n));var r,e=Lt(n),u=e.length,o=!!u;for(r in n)!ce.call(n,r)||o&&zt(r,u)||t&&"constructor"==r||e.push(r);return e}function Fr(n){for(var t=-1,r=Vt(n),e=Fn(n),u=e.length,o=Lt(n),i=o.length,c=!!i;++t<u;){var f=e[t];c&&zt(f,i)||"constructor"==f&&(r||!ce.call(n,f))||o.push(f);
}return o}function Sr(n){return cn(Br(n),function(t){return[t,n[t]]})}function Nr(n){return n?tt(n,Br(n)):[]}function $r(n){return(n=e(n))&&n.replace(M,f).replace(N,"")}function Lr(n,t){var r="";if(n=e(n),t=Jt(t),1>t||t==Ne||t==Se||!n)return r;do t%2&&(r+=n),t=ke(t/2),n+=n;while(t);return r}function Tr(n,t,r){return(n=e(n))?r||t===m?n.slice(v(n),y(n)+1):(t+="",n.slice(u(n,t),o(n,t)+1)):n}function Dr(n,t,r){return n=e(n),t=r?m:r,n.match(t||V)||[]}function zr(n){return n}function qr(n){return h(n)&&!mu(n)?Mr(n):Bn(n);
}function Mr(n){return Nn(yn(n,true))}function Pr(n,t,r){var e=Br(t),u=En(t,e);null!=r||jr(t)&&(u.length||!e.length)||(r=t,t=n,n=this,u=En(t,Br(t)));var o=jr(r)&&"chain"in r?r.chain:true,i=mr(n);return rn(u,function(r){var e=t[r];n[r]=e,i&&(n.prototype[r]=function(){var t=this.__chain__;if(o||t){var r=n(this.__wrapped__);return(r.__actions__=at(this.__actions__)).push({func:e,args:arguments,thisArg:n}),r.__chain__=t,r}return e.apply(n,ln([this.value()],arguments))})}),n}function Kr(){}function Vr(n){
return Mt(n)?zn(n):qn(n)}i=i?an.defaults(fn.Object(),i,an.pick(fn,Z)):fn;var Zr=i.Array,Yr=i.Date,Gr=i.Error,Jr=i.Function,Xr=i.Math,Hr=i.Number,Qr=i.Object,ne=i.RegExp,te=i.String,re=i.TypeError,ee=Zr.prototype,ue=Qr.prototype,oe=te.prototype,ie=Jr.prototype.toString,ce=ue.hasOwnProperty,fe=0,ae=ie.call(Qr),le=ue.toString,se=fn._,pe=ne("^"+ie.call(ce).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),he=i.ArrayBuffer,_e=i.Reflect,ge=Bt(i,"Set"),ve=i.Uint8Array,ye=Bt(i,"WeakMap"),de=i.clearTimeout,be=_e?_e.enumerate:m,me=Qr.getPrototypeOf,je=i.parseFloat,we=Xr.pow,xe=ue.propertyIsEnumerable,Ae=i.setTimeout,Oe=ee.splice,Ie=Xr.ceil,Ee=Bt(Qr,"create"),ke=Xr.floor,Re=i.isFinite,Ue=Qr.keys,Ce=Xr.max,We=Xr.min,Be=i.parseInt,Fe=Xr.random,Se=Hr.NEGATIVE_INFINITY,Ne=Hr.POSITIVE_INFINITY,$e=ye&&new ye,Le={};
_.templateSettings={escape:k,evaluate:R,interpolate:U,variable:"",imports:{_:_}};var Te=function(){function n(){}return function(t){if(jr(t)){n.prototype=t;var r=new n;n.prototype=m}return r||{}}}(),De=_t(On),ze=_t(In,true),qe=gt(),Me=gt(true);be&&!xe.call({valueOf:1},"valueOf")&&(Fn=function(n){for(var t=be(n),r=[];!(n=t.next()).done;)r.push(n.value);return r});var Pe=$e?function(n,t){return $e.set(n,t),n}:zr,Ke=$e?function(n){return $e.get(n)}:Kr,Ve=zn("length"),Ze=function(){var n=0,t=0;return function(r,e){
var u=fu(),o=16-(u-t);if(t=u,o>0){if(150<=++n)return r}else n=0;return Pe(r,e)}}(),Ye=vr(function(n,t){return jr(n)&&Dt(n)?bn(n,xn(t,false,true)):[]}),Ge=vr(function(n){for(var r=n.length,e=r,u=Zr(l),o=Ut(),i=o===t,c=[];e--;){var f=n[e]=Dt(f=n[e])?f:[];u[e]=i&&f.length>=120&&Ee&&ge?new nn(e&&f):null}var i=n[0],a=-1,l=i?i.length:0,s=u[0];n:for(;++a<l;)if(f=i[a],0>(s?tn(s,f):o(c,f,0))){for(e=r;--e;){var p=u[e];if(0>(p?tn(p,f):o(n[e],f,0)))continue n}s&&s.push(f),c.push(f)}return c}),Je=vr(function(n,t){
t=cn(xn(t),te);var r=vn(n,t);return Mn(n,t.sort(c)),r}),Xe=vr(function(n){return n=xn(n,false,true),nt(n)}),He=vr(function(n,t){return jr(n)&&Dt(n)?bn(n,t):[]}),Qe=vr(er),nu=vr(function(n){var t=n.length,t=t>1?n[t-1]:m,t=typeof t=="function"?(n.length--,t):m;return ur(n,t)}),tu=vr(function(n){return n=xn(n),this.thru(function(t){t=mu(t)?t:[Qr(t)];for(var r=n,e=-1,u=t.length,o=-1,i=r.length,c=Zr(u+i);++e<u;)c[e]=t[e];for(;++o<i;)c[e++]=r[o];return c})}),ru=pt(function(n,t,r){ce.call(n,r)?++n[r]:n[r]=1}),eu=pt(function(n,t,r){
ce.call(n,r)?n[r].push(t):n[r]=[t]}),uu=vr(function(n,t,r){var e=-1,u=typeof t=="function",o=Mt(t),i=Dt(n)?Zr(n.length):[];return De(n,function(n){var c=u?t:o&&null!=n?n[t]:m;i[++e]=c?c.apply(n,r):Tt(n,t,r)}),i}),ou=pt(function(n,t,r){n[r]=t}),iu=pt(function(n,t,r){n[r?0:1].push(t)},function(){return[[],[]]}),cu=vr(function(n,t){if(null==n)return[];var r=t.length;return r>1&&qt(n,t[0],t[1])?t=[]:r>2&&qt(t[0],t[1],t[2])&&(t.length=1),Jn(n,xn(t),[])}),fu=Yr.now,au=vr(function(n,t,r){var e=1;if(r.length)var u=g(r,au.placeholder),e=32|e;
return At(n,e,t,r,u)}),lu=vr(function(n,t){return rn(xn(t),function(t){n[t]=At(n[t],1,n)}),n}),su=vr(function(n,t,r){var e=3;if(r.length)var u=g(r,su.placeholder),e=32|e;return At(t,e,n,r,u)}),pu=vr(function(n,t){return dn(n,1,t)}),hu=vr(function(n,t,r){return dn(n,t,r)}),_u=bt(),gu=bt(true),vu=vr(function(n,t){if(t=xn(t),typeof n!="function"||!en(t,r))throw new re("Expected a function");var e=t.length;return vr(function(r){for(var u=We(r.length,e);u--;)r[u]=t[u](r[u]);return n.apply(this,r)})}),yu=vr(function(n,t){
var r=g(t,yu.placeholder);return At(n,32,m,t,r)}),du=vr(function(n,t){var r=g(t,du.placeholder);return At(n,64,m,t,r)}),bu=vr(function(n,t){return At(n,256,m,m,m,xn(t))}),mu=Zr.isArray,ju=ht(function(n,t){lt(t,Br(t),n)}),wu=ht(function(n,t,r){st(t,Br(t),n,r)}),xu=vr(function(n,t){return vn(n,xn(t))}),Au=vr(function(n){return n.push(m,kt),Eu.apply(m,n)}),Ou=vr(function(n){return n.push(m,Zt),Ru.apply(m,n)}),Iu=ht(function(n,t){lt(t,Fr(t),n)}),Eu=ht(function(n,t,r){st(t,Fr(t),n,r)}),ku=ht(function(n,t){
Ln(n,t)}),Ru=ht(function(n,t,r){Ln(n,t,r)}),Uu=vr(function(n,t){return null==n?{}:(t=cn(xn(t),te),Tn(n,bn(Fr(n),t)))}),Cu=vr(function(n,t){return null==n?{}:Tn(n,xn(t))}),Wu=yt(function(n,t,r){return t=t.toLowerCase(),n+(r?t.charAt(0).toUpperCase()+t.slice(1):t)}),Bu=yt(function(n,t,r){return n+(r?"-":"")+t.toLowerCase()}),Fu=yt(function(n,t,r){return n+(r?"_":"")+t.toLowerCase()}),Su=yt(function(n,t,r){return n+(r?" ":"")+(t.charAt(0).toUpperCase()+t.slice(1))}),Nu=vr(function(n,t){try{return n.apply(m,t);
}catch(r){return br(r)?r:new Gr(r)}}),$u=vr(function(n,t){return function(r){return Tt(r,n,t)}}),Lu=vr(function(n,t){return function(r){return Tt(n,r,t)}}),Tu=xt("ceil"),Du=xt("floor"),zu=xt("round");return _.prototype=J.prototype,X.prototype=Te(J.prototype),X.prototype.constructor=X,H.prototype=Te(J.prototype),H.prototype.constructor=H,Q.prototype["delete"]=function(n){return this.has(n)&&delete this.__data__[n]},Q.prototype.get=function(n){return"__proto__"==n?m:this.__data__[n]},Q.prototype.has=function(n){
return"__proto__"!=n&&ce.call(this.__data__,n)},Q.prototype.set=function(n,t){return"__proto__"!=n&&(this.__data__[n]=t),this},nn.prototype.push=function(n){var t=this.data;typeof n=="string"||jr(n)?t.set.add(n):t.hash[n]=true},gr.Cache=Q,_.after=function(n,t){if(typeof t!="function")throw new re("Expected a function");return n=Jt(n),function(){return 1>--n?t.apply(this,arguments):void 0}},_.ary=function(n,t,r){return t=r?m:t,t=n&&null==t?n.length:t,At(n,128,m,m,m,m,t)},_.assign=ju,_.assignWith=wu,
_.at=xu,_.before=sr,_.bind=au,_.bindAll=lu,_.bindKey=su,_.chain=or,_.chunk=function(n,t){t=Ce(Jt(t),0);var r=n?n.length:0;if(!r||1>t)return[];for(var e=0,u=-1,o=Zr(Ie(r/t));r>e;)o[++u]=Zn(n,e,e+=t);return o},_.compact=function(n){for(var t=-1,r=n?n.length:0,e=-1,u=[];++t<r;){var o=n[t];o&&(u[++e]=o)}return u},_.constant=function(n){return function(){return n}},_.countBy=ru,_.create=function(n,t){var r=Te(n);return t?gn(r,t):r},_.curry=pr,_.curryRight=hr,_.debounce=_r,_.defaults=Au,_.defaultsDeep=Ou,
_.defer=pu,_.delay=hu,_.difference=Ye,_.drop=Qt,_.dropRight=nr,_.dropRightWhile=function(n,t){return n&&n.length?rt(n,Ct(t,3),true,true):[]},_.dropWhile=function(n,t){return n&&n.length?rt(n,Ct(t,3),true):[]},_.extend=Iu,_.extendWith=Eu,_.fill=function(n,t,r,e){var u=n?n.length:0;if(!u)return[];for(r&&typeof r!="number"&&qt(n,t,r)&&(r=0,e=u),u=n.length,r=null==r?0:Jt(r),0>r&&(r=-r>u?0:u+r),e=e===m||e>u?u:Jt(e),0>e&&(e+=u),u=r>e?0:e>>>0,r>>>=0;u>r;)n[r++]=t;return n},_.filter=function(n,t){return(mu(n)?on:jn)(n,Ct(t,3));
},_.flatten=function(n){return n&&n.length?xn(n):[]},_.flattenDeep=function(n){return n&&n.length?xn(n,true):[]},_.flow=_u,_.flowRight=gu,_.functions=function(n){return null==n?[]:En(n,Fr(n))},_.groupBy=eu,_.initial=function(n){return nr(n,1)},_.intersection=Ge,_.invert=function(n,t,r){return sn(Br(n),function(e,u){var o=n[u];return t&&!r?ce.call(e,o)?e[o].push(u):e[o]=[u]:e[o]=u,e},{})},_.invoke=uu,_.iteratee=qr,_.keyBy=ou,_.keys=Br,_.keysIn=Fr,_.map=function(n,t){return(mu(n)?cn:Sn)(n,Ct(t,3))},_.mapKeys=function(n,t){
var r={};return t=Ct(t,3),On(n,function(n,e,u){r[t(n,e,u)]=n}),r},_.mapValues=function(n,t){var r={};return t=Ct(t,3),On(n,function(n,e,u){r[e]=t(n,e,u)}),r},_.matches=Mr,_.matchesProperty=function(n,t){return $n(n,yn(t,true))},_.memoize=gr,_.merge=ku,_.mergeWith=Ru,_.method=$u,_.methodOf=Lu,_.mixin=Pr,_.modArgs=vu,_.negate=function(n){if(typeof n!="function")throw new re("Expected a function");return function(){return!n.apply(this,arguments)}},_.omit=Uu,_.omitBy=function(n,t){return t=Ct(t),Dn(n,function(n){
return!t(n)})},_.once=function(n){return sr(2,n)},_.pairs=Sr,_.partial=yu,_.partialRight=du,_.partition=iu,_.pick=Cu,_.pickBy=function(n,t){return null==n?{}:Dn(n,Ct(t))},_.property=Vr,_.propertyOf=function(n){return function(t){return null==n?m:kn(n,t)}},_.pull=function(){var n=arguments,t=n[0];if(!t||!t.length)return t;for(var r=0,e=Ut(),u=n.length;++r<u;)for(var o=0,i=n[r];-1<(o=e(t,i,o));)Oe.call(t,o,1);return t},_.pullAt=Je,_.range=function(n,t,r){return r&&qt(n,t,r)&&(t=r=m),n=+n||0,r=null==r?1:+r||0,
null==t?(t=n,n=0):t=+t||0,t=Ce(Ie((t-n)/(r||1)),0),Qn(t,function(t){return t?n+=r:n})},_.rearg=bu,_.reject=function(n,t){var r=mu(n)?on:jn;return t=Ct(t,3),r(n,function(n,r,e){return!t(n,r,e)})},_.remove=function(n,t){var r=[];if(!n||!n.length)return r;var e=-1,u=[],o=n.length;for(t=Ct(t,3);++e<o;){var i=n[e];t(i,e,n)&&(r.push(i),u.push(e))}return Mn(n,u),r},_.rest=function(n){return Qt(n,1)},_.restParam=vr,_.set=function(n,t,r){return null==n?n:Vn(n,t,r)},_.setWith=function(n,t,r,e){return e=typeof e=="function"?e:m,
null==n?n:Vn(n,t,r,e)},_.shuffle=function(n){return ar(n,Ne)},_.slice=function(n,t,r){var e=n?n.length:0;return e?(r&&typeof r!="number"&&qt(n,t,r)&&(t=0,r=e),Zn(n,t,r)):[]},_.sortBy=cu,_.sortByOrder=function(n,t,r,e){return null==n?[]:(mu(t)||(t=null==t?[]:[t]),r=e?m:r,mu(r)||(r=null==r?[]:[r]),Jn(n,t,r))},_.sortedUniq=function(n){return n&&n.length?Xn(n):[]},_.sortedUniqBy=function(n,t){return n&&n.length?Xn(n,Ct(t)):[]},_.spread=function(n){if(typeof n!="function")throw new re("Expected a function");
return function(t){return n.apply(this,t)}},_.take=function(n,t,r){return n&&n.length?(t=r||null==t?1:t,Zn(n,0,0>t?0:t)):[]},_.takeRight=function(n,t,r){var e=n?n.length:0;return e?(t=r||null==t?1:Jt(t),t=e-t,Zn(n,0>t?0:t)):[]},_.takeRightWhile=function(n,t){return n&&n.length?rt(n,Ct(t,3),false,true):[]},_.takeWhile=function(n,t){return n&&n.length?rt(n,Ct(t,3)):[]},_.tap=function(n,t){return t(n),n},_.throttle=function(n,t,r){var e=true,u=true;if(typeof n!="function")throw new re("Expected a function");return jr(r)&&(e="leading"in r?!!r.leading:e,
u="trailing"in r?!!r.trailing:u),_r(n,t,{leading:e,maxWait:+t,trailing:u})},_.thru=ir,_.times=function(n,t){if(n=Jt(n),1>n||n==Ne||n==Se)return[];var r=4294967295,e=We(n,4294967295);for(t=Gt(t),n-=4294967295,e=Qn(e,t);++r<n;)t(r);return e},_.toArray=Rr,_.toPlainObject=Ur,_.transform=function(n,t,r){var e=mu(n)||Er(n);if(t=Ct(t,4),null==r)if(e||jr(n)){var u=n.constructor;r=e?mu(n)?new u:[]:Te(mr(u)?u.prototype:m)}else r={};return(e?rn:On)(n,function(n,e,u){return t(r,n,e,u)}),r},_.union=Xe,_.uniq=function(n){
return n&&n.length?nt(n):[]},_.uniqBy=function(n,t){return n&&n.length?nt(n,Ct(t)):[]},_.unzip=er,_.unzipWith=ur,_.values=Nr,_.valuesIn=function(n){return null==n?tt(n,Fr(n)):[]},_.without=He,_.wrap=function(n,t){return t=null==t?zr:t,At(t,32,m,[n],[])},_.xor=function(){for(var n=-1,t=arguments.length;++n<t;){var r=arguments[n];if(jr(r)&&Dt(r))var e=e?ln(bn(e,r),bn(r,e)):r}return e?nt(e):[]},_.zip=Qe,_.zipObject=function(n,t){var r=-1,e=n?n.length:0,u={};for(!e||t||mu(n[0])||(t=[]);++r<e;){var o=n[r];
t?u[o]=t[r]:o&&(u[o[0]]=o[1])}return u},_.zipWith=nu,_.each=cr,_.eachRight=fr,Pr(_,_),_.add=function(n,t){return(+n||0)+(+t||0)},_.attempt=Nu,_.camelCase=Wu,_.capitalize=function(n){return(n=e(n))&&n.charAt(0).toUpperCase()+n.slice(1)},_.ceil=Tu,_.clone=function(n){return yn(n)},_.cloneDeep=function(n){return yn(n,true)},_.cloneDeepWith=function(n,t){return yn(n,true,t)},_.cloneWith=function(n,t){return yn(n,false,t)},_.deburr=$r,_.endsWith=function(n,t,r){n=e(n),t+="";var u=n.length;return r=r===m?u:We(0>r?0:Jt(r),u),
r-=t.length,r>=0&&n.indexOf(t,r)==r},_.eq=function(n,t){return n===t||n!==n&&t!==t},_.escape=function(n){return(n=e(n))&&E.test(n)?n.replace(O,a):n},_.escapeRegExp=function(n){return(n=e(n))&&S.test(n)?n.replace(F,"\\$&"):n},_.every=function(n,t,r){var e=mu(n)?en:mn;return r&&qt(n,t,r)&&(t=m),e(n,Ct(t,3))},_.find=function(t,r){if(r=Ct(r,3),mu(t)){var e=n(t,r);return e>-1?t[e]:m}return wn(t,r,De)},_.findIndex=function(t,r){return t&&t.length?n(t,Ct(r,3)):-1},_.findKey=function(n,t){return wn(n,Ct(t,3),On,true);
},_.findLast=function(t,r){if(r=Ct(r,3),mu(t)){var e=n(t,r,true);return e>-1?t[e]:m}return wn(t,r,ze)},_.findLastIndex=function(t,r){return t&&t.length?n(t,Ct(r,3),true):-1},_.findLastKey=function(n,t){return wn(n,Ct(t,3),In,true)},_.first=function(n){return n?n[0]:m},_.floor=Du,_.forEach=cr,_.forEachRight=fr,_.forIn=function(n,t){return null==n?n:qe(n,Gt(t),Fr)},_.forInRight=function(n,t){return null==n?n:Me(n,Gt(t),Fr)},_.forOwn=function(n,t){return n&&On(n,Gt(t))},_.forOwnRight=function(n,t){return n&&In(n,Gt(t));
},_.get=Cr,_.gt=yr,_.gte=function(n,t){return n>=t},_.has=function(n,t){return Ft(n,t,Rn)},_.hasIn=Wr,_.identity=zr,_.includes=function(n,t,r,e){n=Dt(n)?n:Nr(n);var u=n.length;return e||!r?r=0:(r=Jt(r),r=0>r?Ce(u+r,0):r),typeof n=="string"||!mu(n)&&Ir(n)?u>=r&&-1<n.indexOf(t,r):!!u&&-1<Ut(n,t,r)},_.indexOf=tr,_.inRange=function(n,t,r){return t=+t||0,r===m?(r=t,t=0):r=+r||0,n>=We(t,r)&&n<Ce(t,r)},_.isArguments=dr,_.isArray=mu,_.isBoolean=function(n){return true===n||false===n||h(n)&&"[object Boolean]"==le.call(n);
},_.isDate=function(n){return h(n)&&"[object Date]"==le.call(n)},_.isElement=function(n){return!!n&&1===n.nodeType&&h(n)&&!Ar(n)},_.isEmpty=function(n){return!h(n)||mr(n.splice)?!lr(n):!Br(n).length},_.isEqual=function(n,t){return Cn(n,t)},_.isEqualWith=function(n,t,r){var e=(r=typeof r=="function"?r:m)?r(n,t):m;return e===m?Cn(n,t,r):!!e},_.isError=br,_.isFinite=function(n){return typeof n=="number"&&Re(n)},_.isFunction=mr,_.isMatch=function(n,t){return Wn(n,t,Wt(t))},_.isMatchWith=function(n,t,r){
return r=typeof r=="function"?r:m,Wn(n,t,Wt(t),r)},_.isNaN=function(n){return xr(n)&&n!=+n},_.isNative=wr,_.isNil=function(n){return null==n},_.isNull=function(n){return null===n},_.isNumber=xr,_.isObject=jr,_.isPlainObject=Ar,_.isRegExp=Or,_.isString=Ir,_.isTypedArray=Er,_.isUndefined=function(n){return n===m},_.kebabCase=Bu,_.last=rr,_.lastIndexOf=function(n,t,r){var e=n?n.length:0;if(!e)return-1;var u=e;if(r!==m&&(u=Jt(r),u=(0>u?Ce(e+u,0):We(u,e-1))+1),t!==t)return s(n,u,true);for(;u--;)if(n[u]===t)return u;
return-1},_.lt=kr,_.lte=function(n,t){return t>=n},_.max=function(n){return n&&n.length?un(n,zr,yr,Se):Se},_.maxBy=function(n,t){return n&&n.length?un(n,Ct(t),yr,Se):Se},_.min=function(n){return n&&n.length?un(n,zr,kr,Ne):Ne},_.minBy=function(n,t){return n&&n.length?un(n,Ct(t),kr,Ne):Ne},_.noConflict=function(){return fn._=se,this},_.noop=Kr,_.now=fu,_.pad=function(n,t,r){n=e(n),t=Jt(t);var u=n.length;return t&&t>u?(u=(t-u)/2,t=ke(u),u=Ie(u),r=jt("",u,r),r.slice(0,t)+n+r):n},_.padLeft=function(n,t,r){
return n=e(n),jt(n,t,r)+n},_.padRight=function(n,t,r){return n=e(n),n+jt(n,t,r)},_.parseInt=function(n,t,r){return r||null==t?t=0:t&&(t=+t),n=Tr(n),Be(n,t||(D.test(n)?16:10))},_.random=function(n,t,r){r&&qt(n,t,r)&&(t=r=m);var e=null==n,u=null==t;return null==r&&(u&&typeof n=="boolean"?(r=n,n=1):typeof t=="boolean"&&(r=t,u=true)),e&&u&&(t=1,u=false),n=+n||0,u?(t=n,n=0):t=+t||0,r||n%1||t%1?(r=Fe(),We(n+r*(t-n+je("1e-"+((r+"").length-1))),t)):Pn(n,t)},_.reduce=function(n,t,r){var e=3>arguments.length;return typeof t=="function"&&mu(n)?sn(n,t,r,e):Kn(n,Ct(t,4),r,e,De);
},_.reduceRight=function(n,t,r){var e=3>arguments.length;if(typeof t=="function"&&mu(n)){var u=r,o=n.length;for(e&&o&&(u=n[--o]);o--;)u=t(u,n[o],o,n);e=u}else e=Kn(n,Ct(t,4),r,e,ze);return e},_.repeat=Lr,_.result=function(n,t,r){if(Mt(t,n))e=null==n?m:n[t];else{t=Xt(t);var e=Cr(n,t);n=Yt(n,t)}return e===m&&(e=r),mr(e)?e.call(n):e},_.round=zu,_.runInContext=b,_.size=lr,_.snakeCase=Fu,_.some=function(n,t,r){var e=mu(n)?pn:Yn;return r&&qt(n,t,r)&&(t=m),e(n,Ct(t,3))},_.sortedIndex=function(n,t){return ut(n,t);
},_.sortedIndexBy=function(n,t,r){return ot(n,t,Ct(r))},_.sortedIndexOf=function(n,t){var r=n?n.length:0;if(r){var e=ut(n,t);if(r>e&&(t===t?t===n[e]:n[e]!==n[e]))return e}return-1},_.sortedLastIndex=function(n,t){return ut(n,t,true)},_.sortedLastIndexBy=function(n,t,r){return ot(n,t,Ct(r),true)},_.sortedLastIndexOf=function(n,t){if(n&&n.length){var r=ut(n,t,true)-1,e=n[r];if(t===t?t===e:e!==e)return r}return-1},_.startCase=Su,_.startsWith=function(n,t,r){return n=e(n),r=null==r?0:We(0>r?0:Jt(r),n.length),
n.lastIndexOf(t,r)==r},_.sum=function(n){return n?Hn(n,zr):0},_.sumBy=function(n,t){return n&&n.length?Hn(n,Ct(t)):0},_.template=function(n,t,r){var u=_.templateSettings;r&&qt(n,t,r)&&(t=r=m),n=e(n),t=Eu({},r||t,u,kt),r=Eu({},t.imports,u.imports,kt);var o,i,c=Br(r),f=tt(r,c),a=0;r=t.interpolate||P;var s="__p+='";r=ne((t.escape||P).source+"|"+r.source+"|"+(r===U?L:P).source+"|"+(t.evaluate||P).source+"|$","g");var p="sourceURL"in t?"//# sourceURL="+t.sourceURL+"\n":"";if(n.replace(r,function(t,r,e,u,c,f){
return e||(e=u),s+=n.slice(a,f).replace(K,l),r&&(o=true,s+="'+__e("+r+")+'"),c&&(i=true,s+="';"+c+";\n__p+='"),e&&(s+="'+((__t=("+e+"))==null?'':__t)+'"),a=f+t.length,t}),s+="';",(t=t.variable)||(s="with(obj){"+s+"}"),s=(i?s.replace(j,""):s).replace(w,"$1").replace(x,"$1;"),s="function("+(t||"obj")+"){"+(t?"":"obj||(obj={});")+"var __t,__p=''"+(o?",__e=_.escape":"")+(i?",__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}":";")+s+"return __p}",t=Nu(function(){return Jr(c,p+"return "+s).apply(m,f);
}),t.source=s,br(t))throw t;return t},_.trim=Tr,_.trimLeft=function(n,t,r){return(n=e(n))?n.slice(r||t===m?v(n):u(n,t+"")):n},_.trimRight=function(n,t,r){return(n=e(n))?r||t===m?n.slice(0,y(n)+1):n.slice(0,o(n,t+"")+1):n},_.trunc=function(n,t,r){var u=30;if(r="...",jr(t)){var o="separator"in t?t.separator:o,u="length"in t?Jt(t.length):u;r="omission"in t?e(t.omission):r}if(n=e(n),u>=n.length)return n;if(u-=r.length,1>u)return r;if(t=n.slice(0,u),o===m)return t+r;if(Or(o)){if(n.slice(u).search(o)){
var i,c=n.slice(0,u);for(o.global||(o=ne(o.source,(T.exec(o)||"")+"g")),o.lastIndex=0;n=o.exec(c);)i=n.index;t=t.slice(0,null==i?u:i)}}else n.indexOf(o,u)!=u&&(o=t.lastIndexOf(o),o>-1&&(t=t.slice(0,o)));return t+r},_.unescape=function(n){return(n=e(n))&&I.test(n)?n.replace(A,d):n},_.uniqueId=function(n){var t=++fe;return e(n)+t},_.words=Dr,Pr(_,function(){var n={};return On(_,function(t,r){_.prototype[r]||(n[r]=t)}),n}(),{chain:false}),_.sample=ar,_.prototype.sample=function(n){return this.__chain__||null!=n?this.thru(function(t){
return ar(t,n)}):ar(this.value())},_.VERSION="3.10.1",rn("bind bindKey curry curryRight partial partialRight".split(" "),function(n){_[n].placeholder=_}),rn(["drop","take"],function(n,t){H.prototype[n]=function(r){var e=this.__filtered__;if(e&&!t)return new H(this);r=null==r?1:Ce(Jt(r),0);var u=this.clone();return e?u.__takeCount__=We(u.__takeCount__,r):u.__views__.push({size:r,type:n+(0>u.__dir__?"Right":"")}),u},H.prototype[n+"Right"]=function(t){return this.reverse()[n](t).reverse()}}),rn(["filter","map","takeWhile"],function(n,t){
var r=t+1,e=2!=r;H.prototype[n]=function(n){var t=this.clone();return t.__iteratees__.push({iteratee:Ct(n,3),type:r}),t.__filtered__=t.__filtered__||e,t}}),rn(["first","last"],function(n,t){var r="take"+(t?"Right":"");H.prototype[n]=function(){return this[r](1).value()[0]}}),rn(["initial","rest"],function(n,t){var r="drop"+(t?"":"Right");H.prototype[n]=function(){return this.__filtered__?new H(this):this[r](1)}}),H.prototype.compact=function(){return this.filter(zr)},H.prototype.find=function(n){
return this.filter(n).first()},H.prototype.findLast=function(n){return this.reverse().find(n)},H.prototype.reject=function(n){return n=Ct(n,3),this.filter(function(t){return!n(t)})},H.prototype.slice=function(n,t){n=null==n?0:Jt(n);var r=this;return r.__filtered__&&(n>0||0>t)?new H(r):(0>n?r=r.takeRight(-n):n&&(r=r.drop(n)),t!==m&&(t=Jt(t),r=0>t?r.dropRight(-t):r.take(t-n)),r)},H.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},H.prototype.toArray=function(){return this.take(Ne);
},On(H.prototype,function(n,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),e=/^(?:first|last)$/.test(t),u=e||/^find/.test(t),o=_[e?"take"+("last"==t?"Right":""):t];o&&(_.prototype[t]=function(){var t=e?[1]:arguments,i=this.__wrapped__,c=i instanceof H,f=t[0],a=c||mu(i),l=function(n){return n=o.apply(_,ln([n],t)),e&&s?n[0]:n};a&&r&&typeof f=="function"&&1!=f.length&&(c=a=false);var f={func:ir,args:[l],thisArg:m},s=this.__chain__,p=!!this.__actions__.length,h=u&&!s,c=c&&!p;return!u&&a?(i=c?i:new H(this),
i=n.apply(i,t),i.__actions__.push(f),new X(i,s)):h&&c?n.apply(this,t):(i=this.thru(l),h?e?i.value()[0]:i.value():i)})}),rn("join pop push replace shift sort splice split unshift".split(" "),function(n){var t=(/^(?:replace|split)$/.test(n)?oe:ee)[n],r=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",e=/^(?:join|pop|replace|shift)$/.test(n);_.prototype[n]=function(){var n=arguments;return e&&!this.__chain__?t.apply(this.value(),n):this[r](function(r){return t.apply(r,n)})}}),On(H.prototype,function(n,t){
var r=_[t];if(r){var e=r.name+"";(Le[e]||(Le[e]=[])).push({name:t,func:r})}}),Le[mt(m,2).name]=[{name:"wrapper",func:m}],H.prototype.clone=function(){var n=new H(this.__wrapped__);return n.__actions__=at(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=at(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=at(this.__views__),n},H.prototype.reverse=function(){if(this.__filtered__){var n=new H(this);n.__dir__=-1,n.__filtered__=true}else n=this.clone(),
n.__dir__*=-1;return n},H.prototype.value=function(){var n,t=this.__wrapped__.value(),r=this.__dir__,e=mu(t),u=0>r,o=e?t.length:0;n=0;for(var i=o,c=this.__views__,f=-1,a=c.length;++f<a;){var l=c[f],s=l.size;switch(l.type){case"drop":n+=s;break;case"dropRight":i-=s;break;case"take":i=We(i,n+s);break;case"takeRight":n=Ce(n,i-s)}}if(n={start:n,end:i},i=n.start,c=n.end,n=c-i,u=u?c:i-1,i=this.__iteratees__,c=i.length,f=0,a=We(n,this.__takeCount__),!e||200>o||o==n&&a==n)return et(t,this.__actions__);e=[];
n:for(;n--&&a>f;){for(u+=r,o=-1,l=t[u];++o<c;){var p=i[o],s=p.type,p=p.iteratee(l);if(2==s)l=p;else if(!p){if(1==s)continue n;break n}}e[f++]=l}return e},_.prototype.chain=function(){return or(this)},_.prototype.commit=function(){return new X(this.value(),this.__chain__)},_.prototype.concat=tu,_.prototype.plant=function(n){for(var t,r=this;r instanceof J;){var e=Ht(r);t?u.__wrapped__=e:t=e;var u=e,r=r.__wrapped__}return u.__wrapped__=n,t},_.prototype.reverse=function(){var n=this.__wrapped__,t=function(n){
return n.reverse()};return n instanceof H?(this.__actions__.length&&(n=new H(this)),n=n.reverse(),n.__actions__.push({func:ir,args:[t],thisArg:m}),new X(n,this.__chain__)):this.thru(t)},_.prototype.toString=function(){return this.value()+""},_.prototype.run=_.prototype.toJSON=_.prototype.valueOf=_.prototype.value=function(){return et(this.__wrapped__,this.__actions__)},_}var m,j=/\b__p\+='';/g,w=/\b(__p\+=)''\+/g,x=/(__e\(.*?\)|\b__t\))\+'';/g,A=/&(?:amp|lt|gt|quot|#39|#96);/g,O=/[&<>"'`]/g,I=RegExp(A.source),E=RegExp(O.source),k=/<%-([\s\S]+?)%>/g,R=/<%([\s\S]+?)%>/g,U=/<%=([\s\S]+?)%>/g,C=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,W=/^\w*$/,B=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]/g,F=/[\\^$.*+?()[\]{}|]/g,S=RegExp(F.source),N=/[\u0300-\u036f\ufe20-\ufe23]/g,$=/\\(\\)?/g,L=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,T=/\w*$/,D=/^0[xX]/,z=/^\[object .+?Constructor\]$/,q=/^\d+$/,M=/[\xc0-\xd6\xd8-\xde\xdf-\xf6\xf8-\xff]/g,P=/($^)/,K=/['\n\r\u2028\u2029\\]/g,V=RegExp("[A-Z\\xc0-\\xd6\\xd8-\\xde]+(?=[A-Z\\xc0-\\xd6\\xd8-\\xde][a-z\\xdf-\\xf6\\xf8-\\xff]+)|[A-Z\\xc0-\\xd6\\xd8-\\xde]?[a-z\\xdf-\\xf6\\xf8-\\xff]+|[A-Z\\xc0-\\xd6\\xd8-\\xde]+|[0-9]+","g"),Z="Array ArrayBuffer Date Error Float32Array Float64Array Function Int8Array Int16Array Int32Array Math Number Object Reflect RegExp Set String TypeError Uint8Array Uint8ClampedArray Uint16Array Uint32Array WeakMap _ clearTimeout isFinite parseFloat parseInt setTimeout".split(" "),Y={};
Y["[object Float32Array]"]=Y["[object Float64Array]"]=Y["[object Int8Array]"]=Y["[object Int16Array]"]=Y["[object Int32Array]"]=Y["[object Uint8Array]"]=Y["[object Uint8ClampedArray]"]=Y["[object Uint16Array]"]=Y["[object Uint32Array]"]=true,Y["[object Arguments]"]=Y["[object Array]"]=Y["[object ArrayBuffer]"]=Y["[object Boolean]"]=Y["[object Date]"]=Y["[object Error]"]=Y["[object Function]"]=Y["[object Map]"]=Y["[object Number]"]=Y["[object Object]"]=Y["[object RegExp]"]=Y["[object Set]"]=Y["[object String]"]=Y["[object WeakMap]"]=false;
var G={};G["[object Arguments]"]=G["[object Array]"]=G["[object ArrayBuffer]"]=G["[object Boolean]"]=G["[object Date]"]=G["[object Float32Array]"]=G["[object Float64Array]"]=G["[object Int8Array]"]=G["[object Int16Array]"]=G["[object Int32Array]"]=G["[object Number]"]=G["[object Object]"]=G["[object RegExp]"]=G["[object String]"]=G["[object Uint8Array]"]=G["[object Uint8ClampedArray]"]=G["[object Uint16Array]"]=G["[object Uint32Array]"]=true,G["[object Error]"]=G["[object Function]"]=G["[object Map]"]=G["[object Set]"]=G["[object WeakMap]"]=false;
var J={"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o",
"\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss"},X={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","`":"&#96;"},H={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'","&#96;":"`"},Q={"function":true,object:true},nn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},tn=Q[typeof exports]&&exports&&!exports.nodeType?exports:null,rn=Q[typeof module]&&module&&!module.nodeType?module:null,en=i(tn&&rn&&typeof global=="object"&&global),un=i(Q[typeof self]&&self),on=i(Q[typeof window]&&window),cn=rn&&rn.exports===tn?tn:null,Q=i(Q[typeof this]&&this),fn=en||on!==(Q&&Q.window)&&on||un||Q||Function("return this")(),an=b();
(on||un||{})._=an,typeof define=="function"&&typeof define.amd=="object"&&define.amd? define(function(){return an}):tn&&rn?cn?(rn.exports=an)._=an:tn._=an:fn._=an}).call(this);