foxhound 1.0.41 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,18 @@
1
+ !function(r){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=r();else if("function"==typeof define&&define.amd)define([],r);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).Foxhound=r()}}((function(){return function r(e,n,t){function u(o,a){if(!n[o]){if(!e[o]){var f="function"==typeof require&&require;if(!a&&f)return f(o,!0);if(i)return i(o,!0);var l=new Error("Cannot find module '"+o+"'");throw l.code="MODULE_NOT_FOUND",l}var c=n[o]={exports:{}};e[o][0].call(c.exports,(function(r){return u(e[o][1][r]||r)}),c,c.exports,r,e,n,t)}return n[o].exports}for(var i="function"==typeof require&&require,o=0;o<t.length;o++)u(t[o]);return u}({1:[function(r,e,n){(function(r){(function(){!function(r,t){"object"==typeof n&&void 0!==e?e.exports=t():(r="undefined"!=typeof globalThis?globalThis:r||self,function(){var e=r._,n=r._=t();n.noConflict=function(){return r._=e,n}}())}(this,(function(){var e="1.13.6",n="object"==typeof self&&self.self===self&&self||"object"==typeof r&&r.global===r&&r||Function("return this")()||{},t=Array.prototype,u=Object.prototype,i="undefined"!=typeof Symbol?Symbol.prototype:null,o=t.push,a=t.slice,f=u.toString,l=u.hasOwnProperty,c="undefined"!=typeof ArrayBuffer,s="undefined"!=typeof DataView,p=Array.isArray,d=Object.keys,y=Object.create,v=c&&ArrayBuffer.isView,h=isNaN,g=isFinite,m=!{toString:null}.propertyIsEnumerable("toString"),b=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],j=Math.pow(2,53)-1;function U(r,e){return e=null==e?r.length-1:+e,function(){for(var n=Math.max(arguments.length-e,0),t=Array(n),u=0;u<n;u++)t[u]=arguments[u+e];switch(e){case 0:return r.call(this,t);case 1:return r.call(this,arguments[0],t);case 2:return r.call(this,arguments[0],arguments[1],t)}var i=Array(e+1);for(u=0;u<e;u++)i[u]=arguments[u];return i[e]=t,r.apply(this,i)}}function D(r){var e=typeof r;return"function"===e||"object"===e&&!!r}function w(r){return void 0===r}function q(r){return!0===r||!1===r||"[object Boolean]"===f.call(r)}function A(r){var e="[object "+r+"]";return function(r){return f.call(r)===e}}var I=A("String"),x=A("Number"),_=A("Date"),O=A("RegExp"),S=A("Error"),E=A("Symbol"),T=A("ArrayBuffer"),F=A("Function"),M=n.document&&n.document.childNodes;"function"!=typeof/./&&"object"!=typeof Int8Array&&"function"!=typeof M&&(F=function(r){return"function"==typeof r||!1});var B=F,N=A("Object"),P=s&&N(new DataView(new ArrayBuffer(8))),C="undefined"!=typeof Map&&N(new Map),R=A("DataView");var k=P?function(r){return null!=r&&B(r.getInt8)&&T(r.buffer)}:R,V=p||A("Array");function L(r,e){return null!=r&&l.call(r,e)}var Q=A("Arguments");!function(){Q(arguments)||(Q=function(r){return L(r,"callee")})}();var W=Q;function z(r){return x(r)&&h(r)}function J(r){return function(){return r}}function $(r){return function(e){var n=r(e);return"number"==typeof n&&n>=0&&n<=j}}function K(r){return function(e){return null==e?void 0:e[r]}}var H=K("byteLength"),Y=$(H),G=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;var X=c?function(r){return v?v(r)&&!k(r):Y(r)&&G.test(f.call(r))}:J(!1),Z=K("length");function rr(r,e){e=function(r){for(var e={},n=r.length,t=0;t<n;++t)e[r[t]]=!0;return{contains:function(r){return!0===e[r]},push:function(n){return e[n]=!0,r.push(n)}}}(e);var n=b.length,t=r.constructor,i=B(t)&&t.prototype||u,o="constructor";for(L(r,o)&&!e.contains(o)&&e.push(o);n--;)(o=b[n])in r&&r[o]!==i[o]&&!e.contains(o)&&e.push(o)}function er(r){if(!D(r))return[];if(d)return d(r);var e=[];for(var n in r)L(r,n)&&e.push(n);return m&&rr(r,e),e}function nr(r,e){var n=er(e),t=n.length;if(null==r)return!t;for(var u=Object(r),i=0;i<t;i++){var o=n[i];if(e[o]!==u[o]||!(o in u))return!1}return!0}function tr(r){return r instanceof tr?r:this instanceof tr?void(this._wrapped=r):new tr(r)}function ur(r){return new Uint8Array(r.buffer||r,r.byteOffset||0,H(r))}tr.VERSION=e,tr.prototype.value=function(){return this._wrapped},tr.prototype.valueOf=tr.prototype.toJSON=tr.prototype.value,tr.prototype.toString=function(){return String(this._wrapped)};var ir="[object DataView]";function or(r,e,n,t){if(r===e)return 0!==r||1/r==1/e;if(null==r||null==e)return!1;if(r!=r)return e!=e;var u=typeof r;return("function"===u||"object"===u||"object"==typeof e)&&ar(r,e,n,t)}function ar(r,e,n,t){r instanceof tr&&(r=r._wrapped),e instanceof tr&&(e=e._wrapped);var u=f.call(r);if(u!==f.call(e))return!1;if(P&&"[object Object]"==u&&k(r)){if(!k(e))return!1;u=ir}switch(u){case"[object RegExp]":case"[object String]":return""+r==""+e;case"[object Number]":return+r!=+r?+e!=+e:0==+r?1/+r==1/e:+r==+e;case"[object Date]":case"[object Boolean]":return+r==+e;case"[object Symbol]":return i.valueOf.call(r)===i.valueOf.call(e);case"[object ArrayBuffer]":case ir:return ar(ur(r),ur(e),n,t)}var o="[object Array]"===u;if(!o&&X(r)){if(H(r)!==H(e))return!1;if(r.buffer===e.buffer&&r.byteOffset===e.byteOffset)return!0;o=!0}if(!o){if("object"!=typeof r||"object"!=typeof e)return!1;var a=r.constructor,l=e.constructor;if(a!==l&&!(B(a)&&a instanceof a&&B(l)&&l instanceof l)&&"constructor"in r&&"constructor"in e)return!1}t=t||[];for(var c=(n=n||[]).length;c--;)if(n[c]===r)return t[c]===e;if(n.push(r),t.push(e),o){if((c=r.length)!==e.length)return!1;for(;c--;)if(!or(r[c],e[c],n,t))return!1}else{var s,p=er(r);if(c=p.length,er(e).length!==c)return!1;for(;c--;)if(!L(e,s=p[c])||!or(r[s],e[s],n,t))return!1}return n.pop(),t.pop(),!0}function fr(r){if(!D(r))return[];var e=[];for(var n in r)e.push(n);return m&&rr(r,e),e}function lr(r){var e=Z(r);return function(n){if(null==n)return!1;var t=fr(n);if(Z(t))return!1;for(var u=0;u<e;u++)if(!B(n[r[u]]))return!1;return r!==yr||!B(n[cr])}}var cr="forEach",sr=["clear","delete"],pr=["get","has","set"],dr=sr.concat(cr,pr),yr=sr.concat(pr),vr=["add"].concat(sr,cr,"has"),hr=C?lr(dr):A("Map"),gr=C?lr(yr):A("WeakMap"),mr=C?lr(vr):A("Set"),br=A("WeakSet");function jr(r){for(var e=er(r),n=e.length,t=Array(n),u=0;u<n;u++)t[u]=r[e[u]];return t}function Ur(r){for(var e={},n=er(r),t=0,u=n.length;t<u;t++)e[r[n[t]]]=n[t];return e}function Dr(r){var e=[];for(var n in r)B(r[n])&&e.push(n);return e.sort()}function wr(r,e){return function(n){var t=arguments.length;if(e&&(n=Object(n)),t<2||null==n)return n;for(var u=1;u<t;u++)for(var i=arguments[u],o=r(i),a=o.length,f=0;f<a;f++){var l=o[f];e&&void 0!==n[l]||(n[l]=i[l])}return n}}var qr=wr(fr),Ar=wr(er),Ir=wr(fr,!0);function xr(r){if(!D(r))return{};if(y)return y(r);var e=function(){};e.prototype=r;var n=new e;return e.prototype=null,n}function _r(r){return V(r)?r:[r]}function Or(r){return tr.toPath(r)}function Sr(r,e){for(var n=e.length,t=0;t<n;t++){if(null==r)return;r=r[e[t]]}return n?r:void 0}function Er(r,e,n){var t=Sr(r,Or(e));return w(t)?n:t}function Tr(r){return r}function Fr(r){return r=Ar({},r),function(e){return nr(e,r)}}function Mr(r){return r=Or(r),function(e){return Sr(e,r)}}function Br(r,e,n){if(void 0===e)return r;switch(null==n?3:n){case 1:return function(n){return r.call(e,n)};case 3:return function(n,t,u){return r.call(e,n,t,u)};case 4:return function(n,t,u,i){return r.call(e,n,t,u,i)}}return function(){return r.apply(e,arguments)}}function Nr(r,e,n){return null==r?Tr:B(r)?Br(r,e,n):D(r)&&!V(r)?Fr(r):Mr(r)}function Pr(r,e){return Nr(r,e,1/0)}function Cr(r,e,n){return tr.iteratee!==Pr?tr.iteratee(r,e):Nr(r,e,n)}function Rr(){}function kr(r,e){return null==e&&(e=r,r=0),r+Math.floor(Math.random()*(e-r+1))}tr.toPath=_r,tr.iteratee=Pr;var Vr=Date.now||function(){return(new Date).getTime()};function Lr(r){var e=function(e){return r[e]},n="(?:"+er(r).join("|")+")",t=RegExp(n),u=RegExp(n,"g");return function(r){return r=null==r?"":""+r,t.test(r)?r.replace(u,e):r}}var Qr={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},Wr=Lr(Qr),zr=Lr(Ur(Qr)),Jr=tr.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},$r=/(.)^/,Kr={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Hr=/\\|'|\r|\n|\u2028|\u2029/g;function Yr(r){return"\\"+Kr[r]}var Gr=/^\s*(\w|\$)+\s*$/;var Xr=0;function Zr(r,e,n,t,u){if(!(t instanceof e))return r.apply(n,u);var i=xr(r.prototype),o=r.apply(i,u);return D(o)?o:i}var re=U((function(r,e){var n=re.placeholder,t=function(){for(var u=0,i=e.length,o=Array(i),a=0;a<i;a++)o[a]=e[a]===n?arguments[u++]:e[a];for(;u<arguments.length;)o.push(arguments[u++]);return Zr(r,t,this,this,o)};return t}));re.placeholder=tr;var ee=U((function(r,e,n){if(!B(r))throw new TypeError("Bind must be called on a function");var t=U((function(u){return Zr(r,t,e,this,n.concat(u))}));return t})),ne=$(Z);function te(r,e,n,t){if(t=t||[],e||0===e){if(e<=0)return t.concat(r)}else e=1/0;for(var u=t.length,i=0,o=Z(r);i<o;i++){var a=r[i];if(ne(a)&&(V(a)||W(a)))if(e>1)te(a,e-1,n,t),u=t.length;else for(var f=0,l=a.length;f<l;)t[u++]=a[f++];else n||(t[u++]=a)}return t}var ue=U((function(r,e){var n=(e=te(e,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var t=e[n];r[t]=ee(r[t],r)}return r}));var ie=U((function(r,e,n){return setTimeout((function(){return r.apply(null,n)}),e)})),oe=re(ie,tr,1);function ae(r){return function(){return!r.apply(this,arguments)}}function fe(r,e){var n;return function(){return--r>0&&(n=e.apply(this,arguments)),r<=1&&(e=null),n}}var le=re(fe,2);function ce(r,e,n){e=Cr(e,n);for(var t,u=er(r),i=0,o=u.length;i<o;i++)if(e(r[t=u[i]],t,r))return t}function se(r){return function(e,n,t){n=Cr(n,t);for(var u=Z(e),i=r>0?0:u-1;i>=0&&i<u;i+=r)if(n(e[i],i,e))return i;return-1}}var pe=se(1),de=se(-1);function ye(r,e,n,t){for(var u=(n=Cr(n,t,1))(e),i=0,o=Z(r);i<o;){var a=Math.floor((i+o)/2);n(r[a])<u?i=a+1:o=a}return i}function ve(r,e,n){return function(t,u,i){var o=0,f=Z(t);if("number"==typeof i)r>0?o=i>=0?i:Math.max(i+f,o):f=i>=0?Math.min(i+1,f):i+f+1;else if(n&&i&&f)return t[i=n(t,u)]===u?i:-1;if(u!=u)return(i=e(a.call(t,o,f),z))>=0?i+o:-1;for(i=r>0?o:f-1;i>=0&&i<f;i+=r)if(t[i]===u)return i;return-1}}var he=ve(1,pe,ye),ge=ve(-1,de);function me(r,e,n){var t=(ne(r)?pe:ce)(r,e,n);if(void 0!==t&&-1!==t)return r[t]}function be(r,e,n){var t,u;if(e=Br(e,n),ne(r))for(t=0,u=r.length;t<u;t++)e(r[t],t,r);else{var i=er(r);for(t=0,u=i.length;t<u;t++)e(r[i[t]],i[t],r)}return r}function je(r,e,n){e=Cr(e,n);for(var t=!ne(r)&&er(r),u=(t||r).length,i=Array(u),o=0;o<u;o++){var a=t?t[o]:o;i[o]=e(r[a],a,r)}return i}function Ue(r){var e=function(e,n,t,u){var i=!ne(e)&&er(e),o=(i||e).length,a=r>0?0:o-1;for(u||(t=e[i?i[a]:a],a+=r);a>=0&&a<o;a+=r){var f=i?i[a]:a;t=n(t,e[f],f,e)}return t};return function(r,n,t,u){var i=arguments.length>=3;return e(r,Br(n,u,4),t,i)}}var De=Ue(1),we=Ue(-1);function qe(r,e,n){var t=[];return e=Cr(e,n),be(r,(function(r,n,u){e(r,n,u)&&t.push(r)})),t}function Ae(r,e,n){e=Cr(e,n);for(var t=!ne(r)&&er(r),u=(t||r).length,i=0;i<u;i++){var o=t?t[i]:i;if(!e(r[o],o,r))return!1}return!0}function Ie(r,e,n){e=Cr(e,n);for(var t=!ne(r)&&er(r),u=(t||r).length,i=0;i<u;i++){var o=t?t[i]:i;if(e(r[o],o,r))return!0}return!1}function xe(r,e,n,t){return ne(r)||(r=jr(r)),("number"!=typeof n||t)&&(n=0),he(r,e,n)>=0}var _e=U((function(r,e,n){var t,u;return B(e)?u=e:(e=Or(e),t=e.slice(0,-1),e=e[e.length-1]),je(r,(function(r){var i=u;if(!i){if(t&&t.length&&(r=Sr(r,t)),null==r)return;i=r[e]}return null==i?i:i.apply(r,n)}))}));function Oe(r,e){return je(r,Mr(e))}function Se(r,e,n){var t,u,i=-1/0,o=-1/0;if(null==e||"number"==typeof e&&"object"!=typeof r[0]&&null!=r)for(var a=0,f=(r=ne(r)?r:jr(r)).length;a<f;a++)null!=(t=r[a])&&t>i&&(i=t);else e=Cr(e,n),be(r,(function(r,n,t){((u=e(r,n,t))>o||u===-1/0&&i===-1/0)&&(i=r,o=u)}));return i}var Ee=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function Te(r){return r?V(r)?a.call(r):I(r)?r.match(Ee):ne(r)?je(r,Tr):jr(r):[]}function Fe(r,e,n){if(null==e||n)return ne(r)||(r=jr(r)),r[kr(r.length-1)];var t=Te(r),u=Z(t);e=Math.max(Math.min(e,u),0);for(var i=u-1,o=0;o<e;o++){var a=kr(o,i),f=t[o];t[o]=t[a],t[a]=f}return t.slice(0,e)}function Me(r,e){return function(n,t,u){var i=e?[[],[]]:{};return t=Cr(t,u),be(n,(function(e,u){var o=t(e,u,n);r(i,e,o)})),i}}var Be=Me((function(r,e,n){L(r,n)?r[n].push(e):r[n]=[e]})),Ne=Me((function(r,e,n){r[n]=e})),Pe=Me((function(r,e,n){L(r,n)?r[n]++:r[n]=1})),Ce=Me((function(r,e,n){r[n?0:1].push(e)}),!0);function Re(r,e,n){return e in n}var ke=U((function(r,e){var n={},t=e[0];if(null==r)return n;B(t)?(e.length>1&&(t=Br(t,e[1])),e=fr(r)):(t=Re,e=te(e,!1,!1),r=Object(r));for(var u=0,i=e.length;u<i;u++){var o=e[u],a=r[o];t(a,o,r)&&(n[o]=a)}return n})),Ve=U((function(r,e){var n,t=e[0];return B(t)?(t=ae(t),e.length>1&&(n=e[1])):(e=je(te(e,!1,!1),String),t=function(r,n){return!xe(e,n)}),ke(r,t,n)}));function Le(r,e,n){return a.call(r,0,Math.max(0,r.length-(null==e||n?1:e)))}function Qe(r,e,n){return null==r||r.length<1?null==e||n?void 0:[]:null==e||n?r[0]:Le(r,r.length-e)}function We(r,e,n){return a.call(r,null==e||n?1:e)}var ze=U((function(r,e){return e=te(e,!0,!0),qe(r,(function(r){return!xe(e,r)}))})),Je=U((function(r,e){return ze(r,e)}));function $e(r,e,n,t){q(e)||(t=n,n=e,e=!1),null!=n&&(n=Cr(n,t));for(var u=[],i=[],o=0,a=Z(r);o<a;o++){var f=r[o],l=n?n(f,o,r):f;e&&!n?(o&&i===l||u.push(f),i=l):n?xe(i,l)||(i.push(l),u.push(f)):xe(u,f)||u.push(f)}return u}var Ke=U((function(r){return $e(te(r,!0,!0))}));function He(r){for(var e=r&&Se(r,Z).length||0,n=Array(e),t=0;t<e;t++)n[t]=Oe(r,t);return n}var Ye=U(He);function Ge(r,e){return r._chain?tr(e).chain():e}function Xe(r){return be(Dr(r),(function(e){var n=tr[e]=r[e];tr.prototype[e]=function(){var r=[this._wrapped];return o.apply(r,arguments),Ge(this,n.apply(tr,r))}})),tr}be(["pop","push","reverse","shift","sort","splice","unshift"],(function(r){var e=t[r];tr.prototype[r]=function(){var n=this._wrapped;return null!=n&&(e.apply(n,arguments),"shift"!==r&&"splice"!==r||0!==n.length||delete n[0]),Ge(this,n)}})),be(["concat","join","slice"],(function(r){var e=t[r];tr.prototype[r]=function(){var r=this._wrapped;return null!=r&&(r=e.apply(r,arguments)),Ge(this,r)}}));var Ze={__proto__:null,VERSION:e,restArguments:U,isObject:D,isNull:function(r){return null===r},isUndefined:w,isBoolean:q,isElement:function(r){return!(!r||1!==r.nodeType)},isString:I,isNumber:x,isDate:_,isRegExp:O,isError:S,isSymbol:E,isArrayBuffer:T,isDataView:k,isArray:V,isFunction:B,isArguments:W,isFinite:function(r){return!E(r)&&g(r)&&!isNaN(parseFloat(r))},isNaN:z,isTypedArray:X,isEmpty:function(r){if(null==r)return!0;var e=Z(r);return"number"==typeof e&&(V(r)||I(r)||W(r))?0===e:0===Z(er(r))},isMatch:nr,isEqual:function(r,e){return or(r,e)},isMap:hr,isWeakMap:gr,isSet:mr,isWeakSet:br,keys:er,allKeys:fr,values:jr,pairs:function(r){for(var e=er(r),n=e.length,t=Array(n),u=0;u<n;u++)t[u]=[e[u],r[e[u]]];return t},invert:Ur,functions:Dr,methods:Dr,extend:qr,extendOwn:Ar,assign:Ar,defaults:Ir,create:function(r,e){var n=xr(r);return e&&Ar(n,e),n},clone:function(r){return D(r)?V(r)?r.slice():qr({},r):r},tap:function(r,e){return e(r),r},get:Er,has:function(r,e){for(var n=(e=Or(e)).length,t=0;t<n;t++){var u=e[t];if(!L(r,u))return!1;r=r[u]}return!!n},mapObject:function(r,e,n){e=Cr(e,n);for(var t=er(r),u=t.length,i={},o=0;o<u;o++){var a=t[o];i[a]=e(r[a],a,r)}return i},identity:Tr,constant:J,noop:Rr,toPath:_r,property:Mr,propertyOf:function(r){return null==r?Rr:function(e){return Er(r,e)}},matcher:Fr,matches:Fr,times:function(r,e,n){var t=Array(Math.max(0,r));e=Br(e,n,1);for(var u=0;u<r;u++)t[u]=e(u);return t},random:kr,now:Vr,escape:Wr,unescape:zr,templateSettings:Jr,template:function(r,e,n){!e&&n&&(e=n),e=Ir({},e,tr.templateSettings);var t=RegExp([(e.escape||$r).source,(e.interpolate||$r).source,(e.evaluate||$r).source].join("|")+"|$","g"),u=0,i="__p+='";r.replace(t,(function(e,n,t,o,a){return i+=r.slice(u,a).replace(Hr,Yr),u=a+e.length,n?i+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":t?i+="'+\n((__t=("+t+"))==null?'':__t)+\n'":o&&(i+="';\n"+o+"\n__p+='"),e})),i+="';\n";var o,a=e.variable;if(a){if(!Gr.test(a))throw new Error("variable is not a bare identifier: "+a)}else i="with(obj||{}){\n"+i+"}\n",a="obj";i="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+i+"return __p;\n";try{o=new Function(a,"_",i)}catch(r){throw r.source=i,r}var f=function(r){return o.call(this,r,tr)};return f.source="function("+a+"){\n"+i+"}",f},result:function(r,e,n){var t=(e=Or(e)).length;if(!t)return B(n)?n.call(r):n;for(var u=0;u<t;u++){var i=null==r?void 0:r[e[u]];void 0===i&&(i=n,u=t),r=B(i)?i.call(r):i}return r},uniqueId:function(r){var e=++Xr+"";return r?r+e:e},chain:function(r){var e=tr(r);return e._chain=!0,e},iteratee:Pr,partial:re,bind:ee,bindAll:ue,memoize:function(r,e){var n=function(t){var u=n.cache,i=""+(e?e.apply(this,arguments):t);return L(u,i)||(u[i]=r.apply(this,arguments)),u[i]};return n.cache={},n},delay:ie,defer:oe,throttle:function(r,e,n){var t,u,i,o,a=0;n||(n={});var f=function(){a=!1===n.leading?0:Vr(),t=null,o=r.apply(u,i),t||(u=i=null)},l=function(){var l=Vr();a||!1!==n.leading||(a=l);var c=e-(l-a);return u=this,i=arguments,c<=0||c>e?(t&&(clearTimeout(t),t=null),a=l,o=r.apply(u,i),t||(u=i=null)):t||!1===n.trailing||(t=setTimeout(f,c)),o};return l.cancel=function(){clearTimeout(t),a=0,t=u=i=null},l},debounce:function(r,e,n){var t,u,i,o,a,f=function(){var l=Vr()-u;e>l?t=setTimeout(f,e-l):(t=null,n||(o=r.apply(a,i)),t||(i=a=null))},l=U((function(l){return a=this,i=l,u=Vr(),t||(t=setTimeout(f,e),n&&(o=r.apply(a,i))),o}));return l.cancel=function(){clearTimeout(t),t=i=a=null},l},wrap:function(r,e){return re(e,r)},negate:ae,compose:function(){var r=arguments,e=r.length-1;return function(){for(var n=e,t=r[e].apply(this,arguments);n--;)t=r[n].call(this,t);return t}},after:function(r,e){return function(){if(--r<1)return e.apply(this,arguments)}},before:fe,once:le,findKey:ce,findIndex:pe,findLastIndex:de,sortedIndex:ye,indexOf:he,lastIndexOf:ge,find:me,detect:me,findWhere:function(r,e){return me(r,Fr(e))},each:be,forEach:be,map:je,collect:je,reduce:De,foldl:De,inject:De,reduceRight:we,foldr:we,filter:qe,select:qe,reject:function(r,e,n){return qe(r,ae(Cr(e)),n)},every:Ae,all:Ae,some:Ie,any:Ie,contains:xe,includes:xe,include:xe,invoke:_e,pluck:Oe,where:function(r,e){return qe(r,Fr(e))},max:Se,min:function(r,e,n){var t,u,i=1/0,o=1/0;if(null==e||"number"==typeof e&&"object"!=typeof r[0]&&null!=r)for(var a=0,f=(r=ne(r)?r:jr(r)).length;a<f;a++)null!=(t=r[a])&&t<i&&(i=t);else e=Cr(e,n),be(r,(function(r,n,t){((u=e(r,n,t))<o||u===1/0&&i===1/0)&&(i=r,o=u)}));return i},shuffle:function(r){return Fe(r,1/0)},sample:Fe,sortBy:function(r,e,n){var t=0;return e=Cr(e,n),Oe(je(r,(function(r,n,u){return{value:r,index:t++,criteria:e(r,n,u)}})).sort((function(r,e){var n=r.criteria,t=e.criteria;if(n!==t){if(n>t||void 0===n)return 1;if(n<t||void 0===t)return-1}return r.index-e.index})),"value")},groupBy:Be,indexBy:Ne,countBy:Pe,partition:Ce,toArray:Te,size:function(r){return null==r?0:ne(r)?r.length:er(r).length},pick:ke,omit:Ve,first:Qe,head:Qe,take:Qe,initial:Le,last:function(r,e,n){return null==r||r.length<1?null==e||n?void 0:[]:null==e||n?r[r.length-1]:We(r,Math.max(0,r.length-e))},rest:We,tail:We,drop:We,compact:function(r){return qe(r,Boolean)},flatten:function(r,e){return te(r,e,!1)},without:Je,uniq:$e,unique:$e,union:Ke,intersection:function(r){for(var e=[],n=arguments.length,t=0,u=Z(r);t<u;t++){var i=r[t];if(!xe(e,i)){var o;for(o=1;o<n&&xe(arguments[o],i);o++);o===n&&e.push(i)}}return e},difference:ze,unzip:He,transpose:He,zip:Ye,object:function(r,e){for(var n={},t=0,u=Z(r);t<u;t++)e?n[r[t]]=e[t]:n[r[t][0]]=r[t][1];return n},range:function(r,e,n){null==e&&(e=r||0,r=0),n||(n=e<r?-1:1);for(var t=Math.max(Math.ceil((e-r)/n),0),u=Array(t),i=0;i<t;i++,r+=n)u[i]=r;return u},chunk:function(r,e){if(null==e||e<1)return[];for(var n=[],t=0,u=r.length;t<u;)n.push(a.call(r,t,t+=e));return n},mixin:Xe,default:tr},rn=Xe(Ze);return rn._=rn,rn}))}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(r,e,n){
2
+ /**
3
+ * Simple browser shim loader - assign the npm module to a window global automatically
4
+ *
5
+ * @license MIT
6
+ * @author <steven@velozo.com>
7
+ */
8
+ var t=r("./Foxhound.js");"object"!=typeof window||window.hasOwnProperty("Foxhound")||(window.Foxhound=t),e.exports=t},{"./Foxhound.js":3}],3:[function(r,e,n){
9
+ /**
10
+ * FoxHound Query Generation Library
11
+ *
12
+ * @license MIT
13
+ *
14
+ * @author Steven Velozo <steven@velozo.com>
15
+ * @module FoxHound
16
+ */
17
+ var t=r("underscore"),u=r("./Parameters.js");e.exports=new function(){return function e(n,i){if("object"!=typeof n||!("fable"in n))return{new:e};var o=n,a=void 0===i?{}:i,f=!1,l=o.getUUID(),c=0,s=!1,p=function(){return(f=t.extend({},u,a)).query={disableAutoIdentity:!1,disableAutoDateStamp:!1,disableAutoUserStamp:!1,disableDeleteTracking:!1,body:!1,schema:!1,IDUser:0,UUID:o.getUUID(),records:!1,parameters:{}},f.result={executed:!1,value:!1,error:!1},this};p();var d=function(r,e,n,t){if("string"!=typeof r)return o.log.warn("Tried to add an invalid query join table",{queryUUID:l,parameters:f}),this;if(void 0===e||void 0===n)return o.log.warn("Tried to add an invalid query join field",{queryUUID:l,parameters:f}),this;if(0!=e.indexOf(r))return o.log.warn("Tried to add an invalid query join field, join must come FROM the join table!",{queryUUID:l,parameters:f,invalidField:e}),this;if(n.indexOf(".")<=0)return o.log.warn("Tried to add an invalid query join field, join must go TO a field on another table ([table].[field])!",{queryUUID:l,parameters:f,invalidField:n}),this;var u={Type:void 0===t?"INNER JOIN":t,Table:r,From:e,To:n};return Array.isArray(f.join)?f.join.push(u):f.join=[u],c>2&&o.log.info("Added a join",{queryUUID:l,parameters:f}),this},y=function(e){if("string"!=typeof e)return o.log.warn("Dialect set to English - invalid name",{queryUUID:l,parameters:f,invalidDialect:e}),y("English");var n="./dialects/"+e+"/FoxHound-Dialect-"+e+".js";try{var t=r(n);s=t,c>2&&o.log.info("Dialog set to: "+e,{queryUUID:l,parameters:f,dialectModuleFile:n})}catch(r){o.log.error("Dialect not set - require load problem",{queryUUID:l,parameters:f,dialectModuleFile:n,invalidDialect:e,error:r}),y("English")}return this},v=function(){!1===s&&y("English")},h={resetParameters:p,mergeParameters:function(r){return f=t.extend({},f,r),this},setLogLevel:function(r){var e=0;return"number"==typeof r&&r%1==0&&(e=r),c=e,this},setScope:function(r){var e=!1;return"string"==typeof r?e=r:!1!==r&&o.log.error("Scope set failed. You must pass in a string or array.",{queryUUID:l,parameters:f,invalidScope:r}),f.scope=e,c>2&&o.log.info("Scope set: "+e,{queryUUID:l,parameters:f}),this},setDistinct:function(r){return f.distinct=!!r,c>2&&o.log.info("Distinct set: "+f.distinct,{queryUUID:l,parameters:f}),this},setIDUser:function(r){var e=0;return"number"==typeof r&&r%1==0&&r>=0?e=r:!1!==r&&o.log.error("User set failed; non-positive or non-numeric argument.",{queryUUID:l,parameters:f,invalidIDUser:r}),f.userID=e,f.query.IDUser=e,c>2&&o.log.info("IDUser set to: "+e,{queryUUID:l,parameters:f}),this},setDataElements:function(r){var e=!1;return Array.isArray(r)&&(e=r),"string"==typeof r&&(e=[r]),f.dataElements=e,c>2&&o.log.info("Data Elements set",{queryUUID:l,parameters:f}),this},setBegin:function(r){var e=!1;return"number"==typeof r&&r%1==0&&r>=0?e=r:!1!==r&&o.log.error("Begin set failed; non-positive or non-numeric argument.",{queryUUID:l,parameters:f,invalidBeginAmount:r}),f.begin=e,c>2&&o.log.info("Begin set: "+r,{queryUUID:l,parameters:f}),this},setCap:function(r){var e=!1;return"number"==typeof r&&r%1==0&&r>=0?e=r:!1!==r&&o.log.error("Cap set failed; non-positive or non-numeric argument.",{queryUUID:l,parameters:f,invalidCapAmount:r}),f.cap=e,c>2&&o.log.info("Cap set to: "+e,{queryUUID:l,parameters:f}),this},setFilter:function(r){var e=!1;return Array.isArray(r)?e=r:"object"==typeof r&&(e=[r]),f.filter=e,c>2&&o.log.info("Filter set",{queryUUID:l,parameters:f}),this},addFilter:function(r,e,n,t,u){if("string"!=typeof r)return o.log.warn("Tried to add an invalid query filter column",{queryUUID:l,parameters:f}),this;if(void 0===e)return o.log.warn("Tried to add an invalid query filter value",{queryUUID:l,parameters:f,invalidColumn:r}),this;var i=void 0===u?r:u,a={Column:r,Operator:void 0===n?"=":n,Value:e,Connector:void 0===t?"AND":t,Parameter:i=i.replace(".","_")};return Array.isArray(f.filter)?f.filter.push(a):f.filter=[a],c>2&&o.log.info("Added a filter",{queryUUID:l,parameters:f,newFilter:a}),this},setSort:function(r){var e=!1;return Array.isArray(r)?e=r:"string"==typeof r?e=[{Column:r,Direction:"Ascending"}]:"object"==typeof r&&(e=[r]),f.sort=e,c>2&&o.log.info("Sort set",{queryUUID:l,parameters:f}),this},addSort:function(r){var e=!1;return"string"==typeof r&&(e={Column:r,Direction:"Ascending"}),"object"==typeof r&&(e=r),f.sort||(f.sort=[]),f.sort.push(e),c>2&&o.log.info("Sort set",{queryUUID:l,parameters:f}),this},setJoin:function(r){return f.join=[],Array.isArray(r)?r.forEach((function(r){d(r.Table,r.From,r.To,r.Type)})):"object"==typeof r&&d(r.Table,r.From,r.To,r.Type),this},addJoin:d,addRecord:function(r){return"object"!=typeof r?(o.log.warn("Tried to add an invalid record to the query -- records must be an object",{queryUUID:l,parameters:f}),this):(Array.isArray(f.query.records)?f.query.records.push(r):f.query.records=[r],c>2&&o.log.info("Added a record to the query",{queryUUID:l,parameters:f,newRecord:r}),this)},setDisableAutoIdentity:function(r){return f.query.disableAutoIdentity=r,this},setDisableAutoDateStamp:function(r){return f.query.disableAutoDateStamp=r,this},setDisableAutoUserStamp:function(r){return f.query.disableAutoUserStamp=r,this},setDisableDeleteTracking:function(r){return f.query.disableDeleteTracking=r,this},setDialect:y,buildCreateQuery:function(){return v(),f.query.body=s.Create(f),this},buildReadQuery:function(){return v(),f.query.body=s.Read(f),this},buildUpdateQuery:function(){return v(),f.query.body=s.Update(f),this},buildDeleteQuery:function(){return v(),f.query.body=s.Delete(f),this},buildUndeleteQuery:function(){return v(),f.query.body=s.Undelete(f),this},buildCountQuery:function(){return v(),f.query.body=s.Count(f),this},clone:function(){var r=e(o,u).setScope(f.scope).setBegin(f.begin).setCap(f.cap);return r.query.schema=f.query.schema,f.dataElements&&(r.parameters.dataElements=f.dataElements.slice()),f.sort&&(r.parameters.sort=f.sort.slice()),f.filter&&(r.parameters.filter=f.filter.slice()),r},new:e};return Object.defineProperty(h,"query",{get:function(){return f.query},set:function(r){f.query=r},enumerable:!0}),Object.defineProperty(h,"result",{get:function(){return f.result},set:function(r){f.result=r},enumerable:!0}),Object.defineProperty(h,"parameters",{get:function(){return f},set:function(r){f=r},enumerable:!0}),Object.defineProperty(h,"dialect",{get:function(){return s},enumerable:!0}),Object.defineProperty(h,"uuid",{get:function(){return l},enumerable:!0}),Object.defineProperty(h,"logLevel",{get:function(){return c},enumerable:!0}),h}()}},{"./Parameters.js":4,underscore:1}],4:[function(r,e,n){e.exports={scope:!1,dataElements:!1,begin:!1,cap:!1,filter:!1,sort:!1,join:!1,queryOverride:!1,query:!1,userID:0,result:!1}},{}]},{},[2])(2)}));
18
+ //# sourceMappingURL=foxhound.min.js.map